@templatical/editor 0.0.5 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/LICENSE +56 -0
  2. package/README.md +69 -0
  3. package/dist/{AiChatSidebar-DwME3f-a.js → AiChatSidebar-DSbBLDkW.js} +9 -9
  4. package/dist/{AiFeatureMenu-DJvWL1GZ.js → AiFeatureMenu-d04gmgud.js} +5 -5
  5. package/dist/{CloudEditor-Fe0ssRgi.js → CloudEditor-CjO4tzbV.js} +218 -227
  6. package/dist/{CollaboratorBar-DTT0EkZn.js → CollaboratorBar-DYBSTuMW.js} +3 -3
  7. package/dist/{CommentsSidebar-DrJhQRXK.js → CommentsSidebar-CQvUh5xt.js} +9 -9
  8. package/dist/CountdownBlock-D3olfssJ.js +92 -0
  9. package/dist/CountdownToolbar-ClpBwFoX.js +210 -0
  10. package/dist/{DesignReferenceSidebar-DdOht5zn.js → DesignReferenceSidebar-BOfeETis.js} +5 -5
  11. package/dist/{LoadingTrack-vK8W2PJf.js → LoadingTrack-CdqDYVR-.js} +1 -1
  12. package/dist/{ModuleBrowserModal-CiV_jOEM.js → ModuleBrowserModal-DKSSQonv.js} +7 -7
  13. package/dist/{ModulePreviewCanvas-Bmy6Y1WE.js → ModulePreviewCanvas-CoLNuu1o.js} +32 -32
  14. package/dist/NumberWithSuffix-_0l3Q4jq.js +424 -0
  15. package/dist/{ParagraphEditor-CoQ3NlS7.js → ParagraphEditor-C9R2ou7x.js} +57 -56
  16. package/dist/{RichTextEditorContent-CHJlh7HJ.js → RichTextEditorContent-BcY3Rcp4.js} +2 -2
  17. package/dist/{SaveModuleDialog-CD2ZYq1o.js → SaveModuleDialog-DmFe4VUc.js} +3 -3
  18. package/dist/{SnapshotHistory-DltsKvhP.js → SnapshotHistory-CAhikAOr.js} +7 -7
  19. package/dist/{TemplateScoringPanel-DmnmUE3y.js → TemplateScoringPanel-b5DnyIll.js} +10 -10
  20. package/dist/{TestEmailModal-Dl633j9o.js → TestEmailModal-BmDIzGYz.js} +3 -3
  21. package/dist/{TitleEditor-C7fds2Nc.js → TitleEditor-DtRYx-LS.js} +11 -11
  22. package/dist/{TplModal-C5_CF-qn.js → TplModal-BLbMDMd6.js} +4 -4
  23. package/dist/{_plugin-vue_export-helper-B1-bu7yR.js → _plugin-vue_export-helper-BHUPLLh1.js} +2 -2
  24. package/dist/{blockTypeIcons-BrKZB10B.js → blockTypeIcons-CEU2dMe1.js} +2 -2
  25. package/dist/cdn/chunks/{AiFeatureMenu-C5UQmEgV.js → AiFeatureMenu-DWMSYD2J.js} +4 -4
  26. package/dist/cdn/chunks/{AiFeatureMenu-C5UQmEgV.js.map → AiFeatureMenu-DWMSYD2J.js.map} +1 -1
  27. package/dist/cdn/chunks/{CloudEditor-DeTolKnf.js → CloudEditor-HrfSfr3G.js} +179 -188
  28. package/dist/cdn/chunks/CloudEditor-HrfSfr3G.js.map +1 -0
  29. package/dist/cdn/chunks/{CollaboratorBar-DO1nxSrr.js → CollaboratorBar-Cfok52TZ.js} +4 -4
  30. package/dist/cdn/chunks/{CollaboratorBar-DO1nxSrr.js.map → CollaboratorBar-Cfok52TZ.js.map} +1 -1
  31. package/dist/cdn/chunks/CountdownBlock-CkV21NEM.js +93 -0
  32. package/dist/cdn/chunks/CountdownBlock-CkV21NEM.js.map +1 -0
  33. package/dist/cdn/chunks/CountdownToolbar-CEmbR7kt.js +212 -0
  34. package/dist/cdn/chunks/CountdownToolbar-CEmbR7kt.js.map +1 -0
  35. package/dist/cdn/chunks/{ModuleBrowserModal-ChBr3aXj.js → ModuleBrowserModal-sASaPRot.js} +7 -7
  36. package/dist/cdn/chunks/{ModuleBrowserModal-ChBr3aXj.js.map → ModuleBrowserModal-sASaPRot.js.map} +1 -1
  37. package/dist/cdn/chunks/{ModulePreviewCanvas-DkSvri9H.js → ModulePreviewCanvas-D8zsajMf.js} +19 -19
  38. package/dist/cdn/chunks/{ModulePreviewCanvas-DkSvri9H.js.map → ModulePreviewCanvas-D8zsajMf.js.map} +1 -1
  39. package/dist/cdn/chunks/NumberWithSuffix-k5Te7Tuw.js +425 -0
  40. package/dist/cdn/chunks/NumberWithSuffix-k5Te7Tuw.js.map +1 -0
  41. package/dist/cdn/chunks/{ParagraphEditor-DU3oUKA7.js → ParagraphEditor-C1vQWGzW.js} +37 -37
  42. package/dist/cdn/chunks/ParagraphEditor-C1vQWGzW.js.map +1 -0
  43. package/dist/cdn/chunks/{RichTextEditorContent-BrsW1p9s.js → RichTextEditorContent-CT8dBB0R.js} +5 -5
  44. package/dist/cdn/chunks/{RichTextEditorContent-BrsW1p9s.js.map → RichTextEditorContent-CT8dBB0R.js.map} +1 -1
  45. package/dist/cdn/chunks/{SaveModuleDialog-CjqKkTEc.js → SaveModuleDialog-BkwKrB0N.js} +5 -5
  46. package/dist/cdn/chunks/{SaveModuleDialog-CjqKkTEc.js.map → SaveModuleDialog-BkwKrB0N.js.map} +1 -1
  47. package/dist/cdn/chunks/{TitleEditor-C8FYbadT.js → TitleEditor-BXqt42Px.js} +11 -11
  48. package/dist/cdn/chunks/{TitleEditor-C8FYbadT.js.map → TitleEditor-BXqt42Px.js.map} +1 -1
  49. package/dist/cdn/chunks/{blockTypeIcons-5QwYklNq.js → blockTypeIcons-BS6pWyGO.js} +3 -3
  50. package/dist/cdn/chunks/{blockTypeIcons-5QwYklNq.js.map → blockTypeIcons-BS6pWyGO.js.map} +1 -1
  51. package/dist/cdn/chunks/{de-BvYD17KT.js → de-3exf7MYE.js} +1 -1
  52. package/dist/cdn/chunks/{de-BvYD17KT.js.map → de-3exf7MYE.js.map} +1 -1
  53. package/dist/cdn/chunks/{de-BB3dgVOc.js → de-C8LxVUsb.js} +1 -1
  54. package/dist/cdn/chunks/de-C8LxVUsb.js.map +1 -0
  55. package/dist/cdn/chunks/{dist-KYv9v_1z2.js → dist-BpOx-ugr.js} +10 -3
  56. package/dist/cdn/chunks/dist-BpOx-ugr.js.map +1 -0
  57. package/dist/cdn/chunks/{draggable-BQNU47zu.js → draggable-Bcb86AsV.js} +1591 -1563
  58. package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +1 -0
  59. package/dist/cdn/chunks/{emojiData-BVEJHcNH.js → emojiData-DUHzsh4j.js} +1 -1
  60. package/dist/cdn/chunks/{emojiData-BVEJHcNH.js.map → emojiData-DUHzsh4j.js.map} +1 -1
  61. package/dist/cdn/chunks/{en-DeDcpnoS.js → en-BoEycuqw.js} +1 -1
  62. package/dist/cdn/chunks/en-BoEycuqw.js.map +1 -0
  63. package/dist/cdn/chunks/{en-CpotcOPr.js → en-KNPUKxYp.js} +1 -1
  64. package/dist/cdn/chunks/{en-CpotcOPr.js.map → en-KNPUKxYp.js.map} +1 -1
  65. package/dist/cdn/chunks/{extensions-Bj7USRLr.js → extensions-DBxH6pz0.js} +21 -21
  66. package/dist/cdn/chunks/{extensions-Bj7USRLr.js.map → extensions-DBxH6pz0.js.map} +1 -1
  67. package/dist/cdn/chunks/{features-Ds0XUfte.js → features-C3n7AeUc.js} +1338 -1422
  68. package/dist/cdn/chunks/features-C3n7AeUc.js.map +1 -0
  69. package/dist/cdn/chunks/{icons-fWsuSvgd.js → icons-Hmpb0_8s.js} +2 -2
  70. package/dist/cdn/chunks/icons-Hmpb0_8s.js.map +1 -0
  71. package/dist/cdn/chunks/{liquid.browser-C1VIYISn.js → liquid.browser-CEMn-ZqL.js} +24 -17
  72. package/dist/cdn/chunks/liquid.browser-CEMn-ZqL.js.map +1 -0
  73. package/dist/cdn/chunks/{media-library-BGQm_OyC.js → media-library-C1wCpRY1.js} +114 -110
  74. package/dist/cdn/chunks/media-library-C1wCpRY1.js.map +1 -0
  75. package/dist/cdn/chunks/{pusher-DJPhQnE8.js → pusher-DwSQn6BA.js} +11 -8
  76. package/dist/cdn/chunks/pusher-DwSQn6BA.js.map +1 -0
  77. package/dist/cdn/chunks/readableTextColor-Cd_cgWO_.js.map +1 -1
  78. package/dist/cdn/chunks/{rolldown-runtime-DPITmOBR.js → rolldown-runtime-BNuo_Jkg.js} +1 -1
  79. package/dist/cdn/chunks/{src-3i8rPuqd.js → src-BUszJqfd.js} +8 -8
  80. package/dist/cdn/chunks/{src-3i8rPuqd.js.map → src-BUszJqfd.js.map} +1 -1
  81. package/dist/cdn/chunks/{styleConstants-DFe3I4Op.js → styleConstants-DP1VOca8.js} +1 -1
  82. package/dist/cdn/chunks/{styleConstants-DFe3I4Op.js.map → styleConstants-DP1VOca8.js.map} +1 -1
  83. package/dist/cdn/chunks/{styles-Dgijy53u.js → styles-U2VFFgxC.js} +623 -1239
  84. package/dist/cdn/chunks/styles-U2VFFgxC.js.map +1 -0
  85. package/dist/cdn/chunks/{tiptap-BhxaWR8R.js → tiptap-w5IqC8oW.js} +1610 -1364
  86. package/dist/cdn/chunks/tiptap-w5IqC8oW.js.map +1 -0
  87. package/dist/cdn/editor.css +1 -1
  88. package/dist/cdn/editor.js +92 -97
  89. package/dist/cdn/editor.js.map +1 -1
  90. package/dist/{check-B7kDuZmP.js → check-BDE2uFIC.js} +1 -1
  91. package/dist/{chevron-down-DJLW2Q9Z.js → chevron-down-BL1DcOiT.js} +1 -1
  92. package/dist/{circle-alert-E2vYPs5r.js → circle-alert-1tetIFJU.js} +1 -1
  93. package/dist/{clock-lWIIQA3C.js → clock-CNc3isoG.js} +1 -1
  94. package/dist/{dist-DysAFIPy.js → dist-7SaUYnxo.js} +385 -357
  95. package/dist/{dist-DmOE-Ubp.js → dist-BKZ5gvJf.js} +5 -5
  96. package/dist/{dist-CG-vEqSU.js → dist-CLg2qE0p.js} +2 -2
  97. package/dist/dist-CdzaZZSx.js +5 -0
  98. package/dist/dist-Cl9giA3B.js +5 -0
  99. package/dist/{dist-C_ymrGFi.js → dist-CpHKN3mI.js} +541 -508
  100. package/dist/{dist-4LiM9FDd.js → dist-DMuaebdo.js} +2 -2
  101. package/dist/{dist-ChAGLpWo.js → dist-DW_4_uv3.js} +2 -2
  102. package/dist/{dist-C1BIRHCQ.js → dist-DYG6FL7b.js} +2 -2
  103. package/dist/{dist-DrvKRSU6.js → dist-DbFMBx8E.js} +2 -2
  104. package/dist/{dist-D_HQYSY-.js → dist-Dn9cOicG.js} +2 -2
  105. package/dist/{dist-Ci5lFuUy.js → dist-ENKQZrNg.js} +138 -132
  106. package/dist/{dist-Bu7veieH.js → dist-fEtcLxee.js} +15 -15
  107. package/dist/{extensions-DWx_jj8v.js → extensions-Y880c0sP.js} +3 -3
  108. package/dist/{image-up-X4xIq4ea.js → image-up-4ZmaHFga.js} +1 -1
  109. package/dist/index.d.ts +234 -0
  110. package/dist/{liquid.browser-BemTg3sZ.js → liquid.browser-DZ62L7up.js} +20 -15
  111. package/dist/{loader-circle-BTQQxC3l.js → loader-circle-C7YEH4do.js} +1 -1
  112. package/dist/{message-circle-Blgm6V_h.js → message-circle-B_lxRh4z.js} +1 -1
  113. package/dist/{refresh-cw-Bb4PEeW1.js → refresh-cw-DmZNoimV.js} +1 -1
  114. package/dist/rolldown-runtime-gEudmnaM.js +23 -0
  115. package/dist/{scan-line-7lZPfOdm.js → scan-line-Cc9KlXo5.js} +1 -1
  116. package/dist/{send-C0ltAQrv.js → send-CMwNWTPX.js} +1 -1
  117. package/dist/{shield-check-f-qv4RKs.js → shield-check-DZFf4LTh.js} +1 -1
  118. package/dist/{sparkles-KhBCGlqB.js → sparkles-D80W88H8.js} +1 -1
  119. package/dist/{styleConstants-Cxw88naD.js → styleConstants-Codo7aUT.js} +6 -45
  120. package/dist/styles-unyYKihg.js +2942 -0
  121. package/dist/templatical-editor.css +1 -1
  122. package/dist/templatical-editor.js +85 -90
  123. package/dist/text-align-start-Cje6pwo4.js +43 -0
  124. package/dist/{trash-2-OwjZ-guZ.js → trash-2-BWvxOB4Q.js} +1 -1
  125. package/dist/{triangle-alert-DOSRIUYZ.js → triangle-alert-C6y94qVX.js} +1 -1
  126. package/dist/{useEditorCore-DUGD6pq_.js → useEditorCore-CQwWl2js.js} +1143 -1247
  127. package/dist/{x-CGlq2XQe.js → x-IyhJ6V90.js} +1 -1
  128. package/package.json +70 -52
  129. package/dist/cdn/chunks/AiChatSidebar-X_Bv3Qys.js +0 -2
  130. package/dist/cdn/chunks/CloudEditor-DeTolKnf.js.map +0 -1
  131. package/dist/cdn/chunks/CommentsSidebar-4MTw_hue.js +0 -2
  132. package/dist/cdn/chunks/DesignReferenceSidebar-Bswh4Yx4.js +0 -2
  133. package/dist/cdn/chunks/ParagraphEditor-DU3oUKA7.js.map +0 -1
  134. package/dist/cdn/chunks/SnapshotHistory-KME4xmn_.js +0 -2
  135. package/dist/cdn/chunks/TemplateScoringPanel-DgB3xDN6.js +0 -2
  136. package/dist/cdn/chunks/TestEmailModal-DdpvRbYf.js +0 -2
  137. package/dist/cdn/chunks/de-BB3dgVOc.js.map +0 -1
  138. package/dist/cdn/chunks/dist-BF5c3Dr-.js +0 -2
  139. package/dist/cdn/chunks/dist-BGzvIxcJ.js +0 -2
  140. package/dist/cdn/chunks/dist-CFemF8rI.js +0 -2
  141. package/dist/cdn/chunks/dist-Co6uFhFK.js +0 -2
  142. package/dist/cdn/chunks/dist-DCikBY9K.js +0 -2
  143. package/dist/cdn/chunks/dist-DUILafAC.js +0 -2
  144. package/dist/cdn/chunks/dist-DghiKH0A.js +0 -2
  145. package/dist/cdn/chunks/dist-Dw8ckvfK.js +0 -2
  146. package/dist/cdn/chunks/dist-H07p0KAw.js +0 -2
  147. package/dist/cdn/chunks/dist-KYv9v_1z2.js.map +0 -1
  148. package/dist/cdn/chunks/dist-MjnKIc0W.js +0 -2
  149. package/dist/cdn/chunks/dist-odp0vGRv.js +0 -2
  150. package/dist/cdn/chunks/draggable-BQNU47zu.js.map +0 -1
  151. package/dist/cdn/chunks/en-DeDcpnoS.js.map +0 -1
  152. package/dist/cdn/chunks/features-Ds0XUfte.js.map +0 -1
  153. package/dist/cdn/chunks/icons-fWsuSvgd.js.map +0 -1
  154. package/dist/cdn/chunks/liquid.browser-C1VIYISn.js.map +0 -1
  155. package/dist/cdn/chunks/media-library-BGQm_OyC.js.map +0 -1
  156. package/dist/cdn/chunks/pusher-DJPhQnE8.js.map +0 -1
  157. package/dist/cdn/chunks/styles-Dgijy53u.js.map +0 -1
  158. package/dist/cdn/chunks/tiptap-BhxaWR8R.js.map +0 -1
  159. package/dist/dist-DkypH7qG.js +0 -5
  160. package/dist/dist-Dxnd0GRf.js +0 -5
  161. package/dist/styles-fdXNRqI3.js +0 -3556
  162. package/dist/templatical-editor.umd.cjs +0 -179
  163. /package/dist/cdn/chunks/{_rolldown_dynamic_import_helper-DMEI4TQ3.js → _rolldown_dynamic_import_helper-BRcA6nWq.js} +0 -0
  164. /package/dist/{de-D7TLGIPA.js → de-DCRASLfd.js} +0 -0
  165. /package/dist/{emojiData-BfWQS72m.js → emojiData-CyACq8qV.js} +0 -0
  166. /package/dist/{en-DvtiEMwP.js → en-BC0igPeg.js} +0 -0
  167. /package/dist/{formatRelativeTime-DX3FgqN9.js → formatRelativeTime-mRxw8HK8.js} +0 -0
  168. /package/dist/{readableTextColor-LDlmVEUv.js → readableTextColor-B809bF5J.js} +0 -0
  169. /package/dist/{useMergeTag-BZ3X0bNr.js → useMergeTag-CSXcnFBc.js} +0 -0
@@ -1,24 +1,26 @@
1
- import { a as e } from "./rolldown-runtime-DPITmOBR.js";
2
- import { $ as t, B as n, E as r, F as i, H as a, I as o, N as s, R as c, S as l, U as u, Z as d, _ as f, at as p, b as m, c as h, ct as g, d as _, g as v, h as y, k as b, l as x, lt as S, m as C, n as w, p as T, s as E, st as D, t as O, u as k, y as A } from "./draggable-BQNU47zu.js";
3
- import { $ as j, A as ee, At as M, B as te, Bt as N, Dt as ne, F as P, Ft as re, G as ie, Gt as F, H as ae, Ht as oe, I as se, It as ce, K as le, L as ue, Lt as de, M as fe, N as pe, Nt as me, Ot as he, P as ge, R as _e, St as ve, U as ye, Ut as be, V as xe, Vt as Se, W as Ce, Wt as we, Xt as Te, Z as Ee, Zt as De, _n as Oe, _t as ke, an as Ae, at as je, bt as Me, cn as Ne, dn as Pe, et as Fe, gt as Ie, hn as I, ht as Le, in as Re, j as ze, jt as L, ln as Be, lt as Ve, mn as He, mt as Ue, pn as We, rt as Ge, sn as Ke, tt as qe, vt as Je, wt as Ye, yt as Xe, zt as Ze } from "./features-Ds0XUfte.js";
4
- import { A as Qe, B as $e, F as et, I as tt, M as nt, N as rt, O as it, P as R, T as z, _ as at, a as ot, b as st, c as ct, h as lt, m as ut, o as dt, q as ft, s as pt, u as mt, v as ht } from "./icons-fWsuSvgd.js";
5
- import { t as gt } from "./readableTextColor-Cd_cgWO_.js";
6
- import { t as _t } from "./blockTypeIcons-5QwYklNq.js";
7
- import { _ as vt, c as yt, f as B, g as bt, h as V, i as xt, l as St, m as H, p as U, t as Ct, u as wt } from "./styleConstants-DFe3I4Op.js";
1
+ import { a as e } from "./rolldown-runtime-BNuo_Jkg.js";
2
+ import { $ as t, B as n, E as r, F as i, H as a, I as o, N as s, R as c, S as l, U as u, Z as d, _ as f, at as p, b as m, c as h, ct as g, d as _, g as v, h as y, k as b, l as x, lt as S, m as C, n as w, p as T, s as E, st as D, t as O, u as k, x as A, y as j } from "./draggable-Bcb86AsV.js";
3
+ import { $ as M, A as N, At as P, B as ee, Bt as te, Dt as F, F as I, Ft as ne, G as re, H as L, Ht as R, I as ie, It as ae, K as oe, L as se, M as ce, Mt as le, N as ue, P as de, Pt as fe, R as pe, Rt as me, St as he, U as ge, Ut as _e, V as ve, Vt as ye, W as be, Wt as xe, Yt as Se, Z as Ce, _n as we, _t as Te, an as Ee, at as De, bt as Oe, cn as ke, dn as Ae, et as je, gt as Me, hn as z, ht as Ne, in as Pe, j as Fe, kt as Ie, ln as Le, lt as Re, mn as ze, mt as Be, pn as Ve, rt as He, sn as Ue, tt as We, vt as Ge, wt as Ke, yt as qe, zt as Je } from "./features-C3n7AeUc.js";
4
+ import { A as Ye, B as Xe, F as Ze, I as Qe, M as $e, N as et, O as tt, P as B, T as V, _ as nt, a as rt, b as it, c as at, h as ot, m as st, o as ct, q as lt, s as ut, u as dt, v as ft } from "./icons-Hmpb0_8s.js";
5
+ import { t as pt } from "./readableTextColor-Cd_cgWO_.js";
6
+ import { t as mt } from "./CountdownBlock-CkV21NEM.js";
7
+ import { t as ht } from "./blockTypeIcons-BS6pWyGO.js";
8
+ import { _ as gt, c as _t, f as H, g as vt, h as U, l as yt, m as W, p as G, t as bt } from "./styleConstants-DP1VOca8.js";
9
+ import { i as K, n as q, r as J, t as xt } from "./NumberWithSuffix-k5Te7Tuw.js";
8
10
  //#region src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
9
- var Tt = /* @__PURE__ */ e(O(), 1), Et = ["aria-label"], Dt = { class: "tpl:relative" }, Ot = {
11
+ var St = /* @__PURE__ */ e(O(), 1), Ct = ["aria-label"], wt = { class: "tpl:relative" }, Tt = {
10
12
  class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
11
13
  style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
12
- }, kt = {
14
+ }, Et = {
13
15
  key: 0,
14
16
  class: "tpl-canvas-empty tpl:m-6 tpl:flex tpl:min-h-[400px] tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-xl tpl:border-2 tpl:border-dashed tpl:px-10 tpl:py-12 tpl:text-center tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg-elevated)] tpl:font-[var(--tpl-font-family)]"
15
- }, At = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, jt = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, Mt = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, Nt = {
17
+ }, Dt = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, Ot = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, kt = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, At = {
16
18
  key: 0,
17
19
  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)]"
18
- }, Pt = {
20
+ }, jt = {
19
21
  key: 1,
20
22
  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)]"
21
- }, Ft = /* @__PURE__ */ j(/* @__PURE__ */ l({
23
+ }, Mt = /* @__PURE__ */ M(/* @__PURE__ */ l({
22
24
  __name: "Canvas",
23
25
  props: {
24
26
  viewport: {},
@@ -35,21 +37,21 @@ var Tt = /* @__PURE__ */ e(O(), 1), Et = ["aria-label"], Dt = { class: "tpl:rela
35
37
  ],
36
38
  setup(e, { emit: t }) {
37
39
  let n = {
38
- section: se,
39
- title: ue,
40
- paragraph: xe,
41
- image: ye,
42
- button: he,
43
- divider: ie,
44
- spacer: fe,
45
- html: Ce,
46
- social: pe,
47
- menu: ae,
48
- table: ze,
49
- video: ee,
50
- countdown: ne,
51
- custom: le
52
- }, i = e, o = t, { t: l } = L(), d = Te(oe, "Canvas"), _ = r(Ze, null), b = r(ce, null), x = r(de, {}), w = T(() => (x.plan?.hasFeature("ai_generation") ?? !1) && (x.ai?.isFeatureEnabled("chat") ?? !1)), E = T(() => (x.plan?.hasFeature("ai_generation") ?? !1) && (x.ai?.isFeatureEnabled("designToTemplate") ?? !1)), O = T({
40
+ section: ie,
41
+ title: se,
42
+ paragraph: ve,
43
+ image: ge,
44
+ button: F,
45
+ divider: re,
46
+ spacer: ce,
47
+ html: be,
48
+ social: ue,
49
+ menu: L,
50
+ table: Fe,
51
+ video: N,
52
+ countdown: mt,
53
+ custom: oe
54
+ }, i = e, o = t, { t: l } = P(), d = Se(ye, "Canvas"), _ = r(me, null), b = r(ne, null), x = r(ae, {}), w = T(() => (x.plan?.hasFeature("ai_generation") ?? !1) && (x.ai?.isFeatureEnabled("chat") ?? !1)), E = T(() => (x.plan?.hasFeature("ai_generation") ?? !1) && (x.ai?.isFeatureEnabled("designToTemplate") ?? !1)), O = T({
53
55
  get: () => i.content.blocks,
54
56
  set: (e) => {
55
57
  d.setContent({
@@ -63,20 +65,20 @@ var Tt = /* @__PURE__ */ e(O(), 1), Et = ["aria-label"], Dt = { class: "tpl:rela
63
65
  case "tablet": return 768;
64
66
  default: return i.content.settings.width;
65
67
  }
66
- }), j = T(() => ({
68
+ }), A = T(() => ({
67
69
  backgroundColor: i.content.settings.backgroundColor,
68
70
  fontFamily: i.content.settings.fontFamily
69
71
  }));
70
72
  function M(e) {
71
73
  i.previewMode || e.target === e.currentTarget && o("select-block", null);
72
74
  }
73
- function N(e) {
74
- return te(e, b, n);
75
+ function te(e) {
76
+ return ee(e, b, n);
75
77
  }
76
- function P(e) {
78
+ function I(e) {
77
79
  return i.lockedBlocks?.get(e) ?? null;
78
80
  }
79
- function re(e, t) {
81
+ function R(e, t) {
80
82
  e.type === "custom" && d.updateBlock(e.id, {
81
83
  fieldValues: t.fieldValues,
82
84
  dataSourceFetched: t.dataSourceFetched
@@ -99,9 +101,9 @@ var Tt = /* @__PURE__ */ e(O(), 1), Et = ["aria-label"], Dt = { class: "tpl:rela
99
101
  "tpl-canvas--dark-mode": e.darkMode,
100
102
  "tpl-preview-mode": e.previewMode
101
103
  }]),
102
- style: g(j.value),
104
+ style: g(A.value),
103
105
  onClick: M
104
- }, [m(p(Tt.default), {
106
+ }, [m(p(St.default), {
105
107
  modelValue: O.value,
106
108
  "onUpdate:modelValue": n[2] ||= (e) => O.value = e,
107
109
  group: "blocks",
@@ -115,30 +117,30 @@ var Tt = /* @__PURE__ */ e(O(), 1), Et = ["aria-label"], Dt = { class: "tpl:rela
115
117
  disabled: e.previewMode,
116
118
  class: "tpl-canvas-blocks"
117
119
  }, {
118
- item: a(({ element: t }) => [u(C("div", null, [C("div", Dt, [P(t.id) ? (s(), f("div", {
120
+ item: a(({ element: t }) => [u(C("div", null, [C("div", wt, [I(t.id) ? (s(), f("div", {
119
121
  key: 0,
120
122
  class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
121
123
  style: g({
122
- outline: `2px solid ${P(t.id).color}`,
124
+ outline: `2px solid ${I(t.id).color}`,
123
125
  outlineOffset: "-1px"
124
126
  })
125
127
  }, [C("span", {
126
128
  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",
127
129
  style: g({
128
- backgroundColor: P(t.id).color,
129
- color: p(gt)(P(t.id).color)
130
+ backgroundColor: I(t.id).color,
131
+ color: p(pt)(I(t.id).color)
130
132
  })
131
- }, [C("span", Ot, S(P(t.id).name.charAt(0)), 1), A(" " + S(P(t.id).name), 1)], 4)], 4)) : v("", !0), m(_e, {
133
+ }, [C("span", Tt, S(I(t.id).name.charAt(0)), 1), j(" " + S(I(t.id).name), 1)], 4)], 4)) : v("", !0), m(pe, {
132
134
  block: t,
133
- "is-selected": !e.previewMode && e.selectedBlockId === t.id && !P(t.id),
135
+ "is-selected": !e.previewMode && e.selectedBlockId === t.id && !I(t.id),
134
136
  viewport: e.viewport,
135
137
  "preview-mode": e.previewMode,
136
- onSelect: (n) => e.previewMode || P(t.id) ? void 0 : o("select-block", t.id)
138
+ onSelect: (n) => e.previewMode || I(t.id) ? void 0 : o("select-block", t.id)
137
139
  }, {
138
- default: a(() => [(s(), y(c(N(t)), {
140
+ default: a(() => [(s(), y(c(te(t)), {
139
141
  block: t,
140
142
  viewport: e.viewport,
141
- onFetchData: (e) => re(t, e),
143
+ onFetchData: (e) => R(t, e),
142
144
  onUpdate: (e) => p(d).updateBlock(t.id, e)
143
145
  }, null, 40, [
144
146
  "block",
@@ -154,60 +156,60 @@ var Tt = /* @__PURE__ */ e(O(), 1), Et = ["aria-label"], Dt = { class: "tpl:rela
154
156
  "preview-mode",
155
157
  "onSelect"
156
158
  ])])], 512), [[h, !p(_)?.isHidden(t.id)]])]),
157
- footer: a(() => [O.value.length === 0 && !e.previewMode ? (s(), f("div", kt, [
158
- C("div", At, [m(p(lt), {
159
+ footer: a(() => [O.value.length === 0 && !e.previewMode ? (s(), f("div", Et, [
160
+ C("div", Dt, [m(p(ot), {
159
161
  size: 48,
160
162
  "stroke-width": 1
161
163
  })]),
162
- C("p", jt, S(p(l).canvas.noBlocks), 1),
163
- C("p", Mt, S(p(l).canvas.dragHint), 1),
164
- w.value ? (s(), f("p", Nt, [
165
- A(S(p(l).canvas.aiHintChat) + " ", 1),
164
+ C("p", Ot, S(p(l).canvas.noBlocks), 1),
165
+ C("p", kt, S(p(l).canvas.dragHint), 1),
166
+ w.value ? (s(), f("p", At, [
167
+ j(S(p(l).canvas.aiHintChat) + " ", 1),
166
168
  C("button", {
167
169
  class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
168
170
  onClick: n[0] ||= (e) => o("open-ai-chat")
169
- }, [m(p(je), {
171
+ }, [m(p(De), {
170
172
  size: 14,
171
173
  "stroke-width": 2
172
- }), A(" " + S(p(l).aiMenu.aiAssistant), 1)]),
173
- A(" " + S(p(l).canvas.aiHintChatSuffix), 1)
174
+ }), j(" " + S(p(l).aiMenu.aiAssistant), 1)]),
175
+ j(" " + S(p(l).canvas.aiHintChatSuffix), 1)
174
176
  ])) : v("", !0),
175
- E.value ? (s(), f("p", Pt, [
176
- A(S(p(l).canvas.aiHintDesign) + " ", 1),
177
+ E.value ? (s(), f("p", jt, [
178
+ j(S(p(l).canvas.aiHintDesign) + " ", 1),
177
179
  C("button", {
178
180
  class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
179
181
  onClick: n[1] ||= (e) => o("open-design-reference")
180
- }, [m(p(Ie), {
182
+ }, [m(p(Me), {
181
183
  size: 14,
182
184
  "stroke-width": 2
183
- }), A(" " + S(p(l).aiMenu.designToTemplate), 1)]),
184
- A(" " + S(p(l).canvas.aiHintDesignSuffix), 1)
185
+ }), j(" " + S(p(l).aiMenu.designToTemplate), 1)]),
186
+ j(" " + S(p(l).canvas.aiHintDesignSuffix), 1)
185
187
  ])) : v("", !0)
186
188
  ])) : v("", !0)]),
187
189
  _: 1
188
- }, 8, ["modelValue", "disabled"])], 6)], 12, Et));
190
+ }, 8, ["modelValue", "disabled"])], 6)], 12, Ct));
189
191
  }
190
- }), [["__scopeId", "data-v-43f4b3a0"]]), It = ["aria-label"], Lt = {
192
+ }), [["__scopeId", "data-v-43f4b3a0"]]), Nt = ["aria-label"], Pt = {
191
193
  key: 0,
192
194
  class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
193
- }, Rt = ["aria-label"], zt = {
195
+ }, Ft = ["aria-label"], It = {
194
196
  key: 0,
195
197
  class: "tpl:flex-1 tpl:truncate tpl:text-sm tpl:font-medium"
196
- }, Bt = {
198
+ }, Lt = {
197
199
  key: 1,
198
200
  class: "tpl:shrink-0 tpl:rounded-full tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]"
199
- }, Vt = [
201
+ }, Rt = [
200
202
  "data-palette-type",
201
203
  "aria-label",
202
204
  "onClick",
203
205
  "onKeydown"
204
- ], Ht = { 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)] hover:tpl:scale-105" }, Ut = {
206
+ ], zt = { 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)] hover:tpl:scale-105" }, Bt = {
205
207
  key: 0,
206
208
  class: "tpl:truncate tpl:text-sm tpl:font-medium"
207
- }, Wt = /* @__PURE__ */ l({
209
+ }, Vt = /* @__PURE__ */ l({
208
210
  __name: "Sidebar",
209
211
  setup(e) {
210
- let { t: n, format: i } = L(), o = r(N, []), l = r(re, void 0), u = r(oe, null), d = r(de, {}), h = T(() => (d.savedModules?.moduleCount.value ?? 0) > 0), _ = t(!1), b = [
212
+ let { t: n, format: i } = P(), o = r(Je, []), l = r(fe, void 0), u = r(ye, null), d = r(ae, {}), h = T(() => (d.savedModules?.moduleCount.value ?? 0) > 0), _ = t(!1), b = [
211
213
  "section",
212
214
  "image",
213
215
  "title",
@@ -223,11 +225,11 @@ var Tt = /* @__PURE__ */ e(O(), 1), Et = ["aria-label"], Dt = { class: "tpl:rela
223
225
  ], x = T(() => {
224
226
  let e = b.map((e) => ({
225
227
  type: e,
226
- label: M(e, n)
228
+ label: Ie(e, n)
227
229
  }));
228
230
  return d.plan && e.splice(-1, 0, {
229
231
  type: "countdown",
230
- label: M("countdown", n)
232
+ label: Ie("countdown", n)
231
233
  }), e;
232
234
  }), w = T(() => o.map((e) => ({
233
235
  type: `custom:${e.type}`,
@@ -238,9 +240,9 @@ var Tt = /* @__PURE__ */ e(O(), 1), Et = ["aria-label"], Dt = { class: "tpl:rela
238
240
  function D(e) {
239
241
  if (e.isCustom) {
240
242
  let t = e.type.replace("custom:", ""), n = o.find((e) => e.type === t);
241
- if (n) return He(n);
243
+ if (n) return ze(n);
242
244
  }
243
- return We(e.type, l);
245
+ return Ve(e.type, l);
244
246
  }
245
247
  function O(e) {
246
248
  if (!u) return;
@@ -264,21 +266,21 @@ var Tt = /* @__PURE__ */ e(O(), 1), Et = ["aria-label"], Dt = { class: "tpl:rela
264
266
  onMouseleave: t[2] ||= (e) => _.value = !1,
265
267
  onFocusin: t[3] ||= (e) => _.value = !0,
266
268
  onFocusout: t[4] ||= (e) => _.value = !1
267
- }, [h.value ? (s(), f("div", Lt, [C("button", {
269
+ }, [h.value ? (s(), f("div", Pt, [C("button", {
268
270
  type: "button",
269
271
  "aria-label": p(n).sidebarNav.browseModules,
270
272
  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] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)]",
271
273
  style: g({ justifyContent: _.value ? "flex-start" : "center" }),
272
274
  onClick: t[0] ||= (e) => p(d).savedModules?.openBrowser()
273
275
  }, [
274
- m(p(Qe), {
276
+ m(p(Ye), {
275
277
  size: 20,
276
278
  "stroke-width": 1.5,
277
279
  class: "tpl:shrink-0"
278
280
  }),
279
- _.value ? (s(), f("span", zt, S(p(n).modules.title), 1)) : v("", !0),
280
- _.value ? (s(), f("span", Bt, S(p(d).savedModules?.moduleCount.value ?? 0), 1)) : v("", !0)
281
- ], 12, Rt)])) : v("", !0), m(p(Tt.default), {
281
+ _.value ? (s(), f("span", It, S(p(n).modules.title), 1)) : v("", !0),
282
+ _.value ? (s(), f("span", Lt, S(p(d).savedModules?.moduleCount.value ?? 0), 1)) : v("", !0)
283
+ ], 12, Ft)])) : v("", !0), m(p(St.default), {
282
284
  list: E.value,
283
285
  group: {
284
286
  name: "blocks",
@@ -300,354 +302,23 @@ var Tt = /* @__PURE__ */ e(O(), 1), Et = ["aria-label"], Dt = { class: "tpl:rela
300
302
  style: g({ justifyContent: _.value ? "flex-start" : "center" }),
301
303
  onClick: (t) => O(e),
302
304
  onKeydown: (t) => k(t, e)
303
- }, [C("div", Ht, [p(_t)[e.type] ? (s(), y(c(p(_t)[e.type]), {
305
+ }, [C("div", zt, [p(ht)[e.type] ? (s(), y(c(p(ht)[e.type]), {
304
306
  key: 0,
305
307
  size: 20,
306
308
  "stroke-width": 1.5
307
- })) : e.isCustom ? (s(), y(Fe, {
309
+ })) : e.isCustom ? (s(), y(je, {
308
310
  key: 1,
309
311
  icon: e.icon,
310
312
  size: 20
311
- }, null, 8, ["icon"])) : v("", !0)]), _.value ? (s(), f("span", Ut, S(e.label), 1)) : v("", !0)], 44, Vt)]),
313
+ }, null, 8, ["icon"])) : v("", !0)]), _.value ? (s(), f("span", Bt, S(e.label), 1)) : v("", !0)], 44, Rt)]),
312
314
  _: 1
313
- }, 8, ["list"])], 44, It));
314
- }
315
- }), W = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, G = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
316
- 360 / (Math.PI * 2);
317
- var Gt = (e) => $t(Kt(e)), Kt = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
318
- r: parseInt(e[0] + e[0], 16),
319
- g: parseInt(e[1] + e[1], 16),
320
- b: parseInt(e[2] + e[2], 16),
321
- a: e.length === 4 ? G(parseInt(e[3] + e[3], 16) / 255, 2) : 1
322
- } : {
323
- r: parseInt(e.substring(0, 2), 16),
324
- g: parseInt(e.substring(2, 4), 16),
325
- b: parseInt(e.substring(4, 6), 16),
326
- a: e.length === 8 ? G(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
327
- }), qt = (e) => Qt(Xt(e)), Jt = ({ h: e, s: t, v: n, a: r }) => {
328
- let i = (200 - t) * n / 100;
329
- return {
330
- h: G(e),
331
- s: G(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
332
- l: G(i / 2),
333
- a: G(r, 2)
334
- };
335
- }, Yt = (e) => {
336
- let { h: t, s: n, l: r } = Jt(e);
337
- return `hsl(${t}, ${n}%, ${r}%)`;
338
- }, Xt = ({ h: e, s: t, v: n, a: r }) => {
339
- e = e / 360 * 6, t /= 100, n /= 100;
340
- let i = Math.floor(e), a = n * (1 - t), o = n * (1 - (e - i) * t), s = n * (1 - (1 - e + i) * t), c = i % 6;
341
- return {
342
- r: G([
343
- n,
344
- o,
345
- a,
346
- a,
347
- s,
348
- n
349
- ][c] * 255),
350
- g: G([
351
- s,
352
- n,
353
- n,
354
- o,
355
- a,
356
- a
357
- ][c] * 255),
358
- b: G([
359
- a,
360
- a,
361
- s,
362
- n,
363
- n,
364
- o
365
- ][c] * 255),
366
- a: G(r, 2)
367
- };
368
- }, Zt = (e) => {
369
- let t = e.toString(16);
370
- return t.length < 2 ? "0" + t : t;
371
- }, Qt = ({ r: e, g: t, b: n, a: r }) => {
372
- let i = r < 1 ? Zt(G(r * 255)) : "";
373
- return "#" + Zt(e) + Zt(t) + Zt(n) + i;
374
- }, $t = ({ r: e, g: t, b: n, a: r }) => {
375
- let i = Math.max(e, t, n), a = i - Math.min(e, t, n), o = a ? i === e ? (t - n) / a : i === t ? 2 + (n - e) / a : 4 + (e - t) / a : 0;
376
- return {
377
- h: G(60 * (o < 0 ? o + 6 : o)),
378
- s: G(i ? a / i * 100 : 0),
379
- v: G(i / 255 * 100),
380
- a: r
381
- };
382
- }, en = (e, t) => {
383
- if (e === t) return !0;
384
- for (let n in e) if (e[n] !== t[n]) return !1;
385
- return !0;
386
- }, tn = (e, t) => e.toLowerCase() === t.toLowerCase() ? !0 : en(Kt(e), Kt(t)), nn = {}, rn = (e) => {
387
- let t = nn[e];
388
- return t || (t = document.createElement("template"), t.innerHTML = e, nn[e] = t), t;
389
- }, an = (e, t, n) => {
390
- e.dispatchEvent(new CustomEvent(t, {
391
- bubbles: !0,
392
- detail: n
393
- }));
394
- }, K = !1, on = (e) => "touches" in e, sn = (e) => K && !on(e) ? !1 : (K ||= on(e), !0), cn = (e, t) => {
395
- let n = on(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
396
- an(e.el, "move", e.getMove({
397
- x: W((n.pageX - (r.left + window.pageXOffset)) / r.width),
398
- y: W((n.pageY - (r.top + window.pageYOffset)) / r.height)
399
- }));
400
- }, ln = (e, t) => {
401
- let n = t.keyCode;
402
- n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), an(e.el, "move", e.getMove({
403
- x: n === 39 ? .01 : n === 37 ? -.01 : n === 34 ? .05 : n === 33 ? -.05 : n === 35 ? 1 : n === 36 ? -1 : 0,
404
- y: n === 40 ? .01 : n === 38 ? -.01 : 0
405
- }, !0)));
406
- }, un = class {
407
- constructor(e, t, n, r) {
408
- let i = rn(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
409
- e.appendChild(i.content.cloneNode(!0));
410
- let a = e.querySelector(`[part=${t}]`);
411
- a.addEventListener("mousedown", this), a.addEventListener("touchstart", this), a.addEventListener("keydown", this), this.el = a, this.xy = r, this.nodes = [a.firstChild, a];
412
- }
413
- set dragging(e) {
414
- let t = e ? document.addEventListener : document.removeEventListener;
415
- t(K ? "touchmove" : "mousemove", this), t(K ? "touchend" : "mouseup", this);
416
- }
417
- handleEvent(e) {
418
- switch (e.type) {
419
- case "mousedown":
420
- case "touchstart":
421
- if (e.preventDefault(), !sn(e) || !K && e.button != 0) return;
422
- this.el.focus(), cn(this, e), this.dragging = !0;
423
- break;
424
- case "mousemove":
425
- case "touchmove":
426
- e.preventDefault(), cn(this, e);
427
- break;
428
- case "mouseup":
429
- case "touchend":
430
- this.dragging = !1;
431
- break;
432
- case "keydown":
433
- ln(this, e);
434
- break;
435
- }
436
- }
437
- style(e) {
438
- e.forEach((e, t) => {
439
- for (let n in e) this.nodes[t].style.setProperty(n, e[n]);
440
- });
441
- }
442
- }, dn = class extends un {
443
- constructor(e) {
444
- super(e, "hue", "aria-label=\"Hue\" aria-valuemin=\"0\" aria-valuemax=\"360\"", !1);
445
- }
446
- update({ h: e }) {
447
- this.h = e, this.style([{
448
- left: `${e / 360 * 100}%`,
449
- color: Yt({
450
- h: e,
451
- s: 100,
452
- v: 100,
453
- a: 1
454
- })
455
- }]), this.el.setAttribute("aria-valuenow", `${G(e)}`);
456
- }
457
- getMove(e, t) {
458
- return { h: t ? W(this.h + e.x * 360, 0, 360) : 360 * e.x };
459
- }
460
- }, fn = class extends un {
461
- constructor(e) {
462
- super(e, "saturation", "aria-label=\"Color\"", !0);
463
- }
464
- update(e) {
465
- this.hsva = e, this.style([{
466
- top: `${100 - e.v}%`,
467
- left: `${e.s}%`,
468
- color: Yt(e)
469
- }, { "background-color": Yt({
470
- h: e.h,
471
- s: 100,
472
- v: 100,
473
- a: 1
474
- }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${G(e.s)}%, Brightness ${G(e.v)}%`);
475
- }
476
- getMove(e, t) {
477
- return {
478
- s: t ? W(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
479
- v: t ? W(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
480
- };
481
- }
482
- }, pn = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", mn = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", hn = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", gn = Symbol("same"), _n = Symbol("color"), vn = Symbol("hsva"), yn = Symbol("update"), bn = Symbol("parts"), xn = Symbol("css"), Sn = Symbol("sliders"), Cn = class extends HTMLElement {
483
- static get observedAttributes() {
484
- return ["color"];
485
- }
486
- get [xn]() {
487
- return [
488
- pn,
489
- mn,
490
- hn
491
- ];
492
- }
493
- get [Sn]() {
494
- return [fn, dn];
495
- }
496
- get color() {
497
- return this[_n];
498
- }
499
- set color(e) {
500
- if (!this[gn](e)) {
501
- let t = this.colorModel.toHsva(e);
502
- this[yn](t), this[_n] = e;
503
- }
504
- }
505
- constructor() {
506
- super();
507
- let e = rn(`<style>${this[xn].join("")}</style>`), t = this.attachShadow({ mode: "open" });
508
- t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[bn] = this[Sn].map((e) => new e(t));
509
- }
510
- connectedCallback() {
511
- if (this.hasOwnProperty("color")) {
512
- let e = this.color;
513
- delete this.color, this.color = e;
514
- } else this.color ||= this.colorModel.defaultColor;
515
- }
516
- attributeChangedCallback(e, t, n) {
517
- let r = this.colorModel.fromAttr(n);
518
- this[gn](r) || (this.color = r);
519
- }
520
- handleEvent(e) {
521
- let t = this[vn], n = {
522
- ...t,
523
- ...e.detail
524
- };
525
- this[yn](n);
526
- let r;
527
- !en(n, t) && !this[gn](r = this.colorModel.fromHsva(n)) && (this[_n] = r, an(this, "color-changed", { value: r }));
528
- }
529
- [gn](e) {
530
- return this.color && this.colorModel.equal(e, this.color);
531
- }
532
- [yn](e) {
533
- this[vn] = e, this[bn].forEach((t) => t.update(e));
534
- }
535
- }, wn = {
536
- defaultColor: "#000",
537
- toHsva: Gt,
538
- fromHsva: ({ h: e, s: t, v: n }) => qt({
539
- h: e,
540
- s: t,
541
- v: n,
542
- a: 1
543
- }),
544
- equal: tn,
545
- fromAttr: (e) => e
546
- }, Tn = class extends Cn {
547
- get colorModel() {
548
- return wn;
549
- }
550
- };
551
- customElements.define("hex-color-picker", class extends Tn {});
552
- //#endregion
553
- //#region src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
554
- var En = [
555
- "disabled",
556
- "aria-label",
557
- "aria-expanded"
558
- ], Dn = [
559
- "value",
560
- "placeholder",
561
- "disabled",
562
- "aria-label"
563
- ], On = ["color", "aria-label"], q = /* @__PURE__ */ l({
564
- __name: "ColorPicker",
565
- props: {
566
- modelValue: {},
567
- placeholder: { default: xt },
568
- size: { default: "default" },
569
- swatchOnly: {
570
- type: Boolean,
571
- default: !1
572
- },
573
- disabled: {
574
- type: Boolean,
575
- default: !1
576
- }
577
- },
578
- emits: ["update:modelValue"],
579
- setup(e, { emit: n }) {
580
- let r = e, i = n, { t: o } = L(), c = t(!1), l = t(), u = t();
581
- De(l, () => {
582
- c.value = !1;
583
- }, { ignore: [u] });
584
- let d = T({
585
- get: () => r.modelValue || "#000000",
586
- set: (e) => i("update:modelValue", e)
587
- });
588
- function h(e) {
589
- d.value = e.detail.value;
590
- }
591
- function _(e) {
592
- d.value = e.target.value;
593
- }
594
- return (t, n) => (s(), f("div", { class: D(["tpl:flex tpl:gap-2 tpl:relative", e.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
595
- C("button", {
596
- ref_key: "swatchRef",
597
- ref: u,
598
- type: "button",
599
- disabled: e.disabled,
600
- "aria-label": p(o).colorPicker.pickColor,
601
- "aria-expanded": c.value,
602
- class: D([
603
- "tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-0.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
604
- e.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
605
- c.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !e.disabled && "hover:tpl:border-[var(--tpl-text-dim)]",
606
- e.size === "large" ? "tpl:size-12" : "tpl:size-10"
607
- ]),
608
- onClick: n[0] ||= (t) => !e.disabled && (c.value = !c.value)
609
- }, [C("span", {
610
- class: "tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]",
611
- style: g({ backgroundColor: d.value })
612
- }, null, 4)], 10, En),
613
- e.swatchOnly ? v("", !0) : (s(), f("input", {
614
- key: 0,
615
- type: "text",
616
- class: D(p(wt)),
617
- value: e.modelValue,
618
- placeholder: e.placeholder,
619
- disabled: e.disabled,
620
- "aria-label": p(o).colorPicker.hexValue,
621
- onInput: _
622
- }, null, 42, Dn)),
623
- m(w, {
624
- "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
625
- "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
626
- "enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
627
- "leave-active-class": "tpl:transition-all tpl:duration-[80ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
628
- "leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
629
- "leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
630
- }, {
631
- default: a(() => [c.value ? (s(), f("div", {
632
- key: 0,
633
- ref_key: "popoverRef",
634
- ref: l,
635
- class: "tpl:absolute tpl:left-0 tpl:top-full tpl:z-50 tpl:mt-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-3 tpl:shadow-lg"
636
- }, [C("hex-color-picker", {
637
- color: d.value,
638
- "aria-label": p(o).colorPicker.pickColor,
639
- onColorChanged: h,
640
- onKeydown: n[1] ||= x((e) => c.value = !1, ["escape"])
641
- }, null, 40, On)], 512)) : v("", !0)]),
642
- _: 1
643
- })
644
- ], 2));
315
+ }, 8, ["list"])], 44, Nt));
645
316
  }
646
317
  });
647
318
  //#endregion
648
319
  //#region src/composables/useMergeTagField.ts
649
- function kn(e) {
650
- let { modelValue: n, emit: r, elementRef: i } = e, { isEnabled: a, isRequesting: o, isMergeTagValue: s, getMergeTagLabel: c, requestMergeTag: l, syntax: u } = Ee(), d = t(!1), f = !1, p = T(() => {
320
+ function Ht(e) {
321
+ let { modelValue: n, emit: r, elementRef: i } = e, { isEnabled: a, isRequesting: o, isMergeTagValue: s, getMergeTagLabel: c, requestMergeTag: l, syntax: u } = Ce(), d = t(!1), f = !1, p = T(() => {
651
322
  let e = n();
652
323
  if (!e) return [];
653
324
  let t = [], r = `(${u.value.source}|${u.logic.source})`, i = new RegExp(r, "g"), a = 0, o;
@@ -661,10 +332,10 @@ function kn(e) {
661
332
  type: "mergeTag",
662
333
  value: n,
663
334
  label: c(n)
664
- }) : Pe(n, u) ? t.push({
335
+ }) : Ae(n, u) ? t.push({
665
336
  type: "logicMergeTag",
666
337
  value: n,
667
- keyword: Be(n, u)
338
+ keyword: Le(n, u)
668
339
  }) : t.push({
669
340
  type: "text",
670
341
  value: n
@@ -718,10 +389,10 @@ function kn(e) {
718
389
  }
719
390
  //#endregion
720
391
  //#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
721
- var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip"], Nn = {
392
+ var Ut = ["aria-label", "onKeydown"], Wt = ["data-tooltip"], Gt = ["data-tooltip"], Kt = {
722
393
  key: 2,
723
394
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
724
- }, Pn = ["aria-label", "title"], Fn = /* @__PURE__ */ l({
395
+ }, qt = ["aria-label", "title"], Jt = /* @__PURE__ */ l({
725
396
  __name: "MergeTagSegments",
726
397
  props: {
727
398
  segments: {},
@@ -730,7 +401,7 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
730
401
  },
731
402
  emits: ["edit", "clear"],
732
403
  setup(e, { emit: t }) {
733
- let n = t, { t: r } = L();
404
+ let n = t, { t: r } = P();
734
405
  function a() {
735
406
  n("edit");
736
407
  }
@@ -749,7 +420,7 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
749
420
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
750
421
  color: "var(--tpl-primary)"
751
422
  }
752
- }, S(e.label), 9, jn)) : e.type === "logicMergeTag" ? (s(), f("span", {
423
+ }, S(e.label), 9, Wt)) : e.type === "logicMergeTag" ? (s(), f("span", {
753
424
  key: 1,
754
425
  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",
755
426
  "data-tooltip": e.value,
@@ -758,44 +429,44 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
758
429
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
759
430
  color: "var(--tpl-primary)"
760
431
  }
761
- }, S(e.keyword), 9, Mn)) : (s(), f("span", Nn, S(e.value), 1))], 64))), 128)), C("button", {
432
+ }, S(e.keyword), 9, Gt)) : (s(), f("span", Kt, S(e.value), 1))], 64))), 128)), C("button", {
762
433
  type: "button",
763
434
  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 hover:tpl:text-[var(--tpl-danger)] hover:tpl:opacity-100",
764
435
  "aria-label": p(r).mergeTag.remove,
765
436
  title: p(r).mergeTag.remove,
766
437
  onClick: o[0] ||= k((e) => n("clear"), ["stop"])
767
- }, [m(p(qe), {
438
+ }, [m(p(We), {
768
439
  size: 12,
769
440
  "stroke-width": 2.5
770
- })], 8, Pn)], 42, An));
441
+ })], 8, qt)], 42, Ut));
771
442
  }
772
- }), In = [
443
+ }), Yt = [
773
444
  "aria-label",
774
445
  "title",
775
446
  "disabled"
776
- ], Ln = "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] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] hover:tpl:border-[var(--tpl-primary)]", Rn = /* @__PURE__ */ l({
447
+ ], Xt = "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] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] hover:tpl:border-[var(--tpl-primary)]", Y = /* @__PURE__ */ l({
777
448
  __name: "MergeTagInsertButton",
778
449
  props: { disabled: { type: Boolean } },
779
450
  emits: ["insert"],
780
451
  setup(e) {
781
- let { t } = L();
452
+ let { t } = P();
782
453
  return (n, r) => (s(), f("button", {
783
454
  type: "button",
784
- class: D([Ln, "tpl:mt-1.5"]),
455
+ class: D([Xt, "tpl:mt-1.5"]),
785
456
  "aria-label": p(t).mergeTag.insert,
786
457
  title: p(t).mergeTag.insert,
787
458
  disabled: e.disabled,
788
459
  onClick: r[0] ||= (e) => n.$emit("insert")
789
- }, [m(p(st), {
460
+ }, [m(p(it), {
790
461
  size: 12,
791
462
  "stroke-width": 2
792
- }), A(" " + S(p(t).mergeTag.insert), 1)], 10, In));
463
+ }), j(" " + S(p(t).mergeTag.insert), 1)], 10, Yt));
793
464
  }
794
- }), zn = { key: 0 }, Bn = { key: 1 }, Vn = [
465
+ }), Zt = { key: 0 }, Qt = { key: 1 }, $t = [
795
466
  "value",
796
467
  "placeholder",
797
468
  "rows"
798
- ], Hn = "tpl:w-full tpl:resize-y tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs 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)]", Un = "tpl:flex tpl:w-full tpl:min-h-[5rem] tpl:cursor-pointer tpl:items-start tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs 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)]", Wn = /* @__PURE__ */ l({
469
+ ], en = "tpl:w-full tpl:resize-y tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs 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)]", tn = "tpl:flex tpl:w-full tpl:min-h-[5rem] tpl:cursor-pointer tpl:items-start tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs 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)]", nn = /* @__PURE__ */ l({
799
470
  __name: "MergeTagTextarea",
800
471
  props: {
801
472
  modelValue: {},
@@ -804,46 +475,46 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
804
475
  },
805
476
  emits: ["update:modelValue"],
806
477
  setup(e, { emit: n }) {
807
- let r = e, i = n, a = t(null), { segments: o, hasMergeTags: c, mergeTagEnabled: l, isRequestingMergeTag: u, isEditing: d, startEditing: h, stopEditing: g, handleInput: _, clearValue: b, insertMergeTag: S } = kn({
478
+ let r = e, i = n, a = t(null), { segments: o, hasMergeTags: c, mergeTagEnabled: l, isRequestingMergeTag: u, isEditing: d, startEditing: h, stopEditing: g, handleInput: _, clearValue: b, insertMergeTag: S } = Ht({
808
479
  modelValue: () => r.modelValue,
809
480
  emit: (e) => i("update:modelValue", e),
810
481
  elementRef: a
811
482
  });
812
- return (t, n) => p(c) && !p(d) ? (s(), f("div", zn, [m(Fn, {
483
+ return (t, n) => p(c) && !p(d) ? (s(), f("div", Zt, [m(Jt, {
813
484
  segments: p(o),
814
- "display-class": Un,
485
+ "display-class": tn,
815
486
  onEdit: p(h),
816
487
  onClear: p(b)
817
488
  }, null, 8, [
818
489
  "segments",
819
490
  "onEdit",
820
491
  "onClear"
821
- ]), p(l) ? (s(), y(Rn, {
492
+ ]), p(l) ? (s(), y(Y, {
822
493
  key: 0,
823
494
  disabled: p(u),
824
495
  onInsert: p(S)
825
- }, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : (s(), f("div", Bn, [C("textarea", {
496
+ }, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : (s(), f("div", Qt, [C("textarea", {
826
497
  ref_key: "textareaRef",
827
498
  ref: a,
828
- class: D(Hn),
499
+ class: D(en),
829
500
  value: e.modelValue,
830
501
  placeholder: e.placeholder,
831
502
  rows: e.rows,
832
503
  onInput: n[0] ||= (...e) => p(_) && p(_)(...e),
833
504
  onBlur: n[1] ||= (...e) => p(g) && p(g)(...e),
834
505
  onKeydown: n[2] ||= x((...e) => p(g) && p(g)(...e), ["escape"])
835
- }, null, 40, Vn), p(l) ? (s(), y(Rn, {
506
+ }, null, 40, $t), p(l) ? (s(), y(Y, {
836
507
  key: 0,
837
508
  disabled: p(u),
838
509
  onInsert: p(S)
839
510
  }, null, 8, ["disabled", "onInsert"])) : v("", !0)]));
840
511
  }
841
- }), Gn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, Kn = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, qn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Jn = { class: "tpl:mb-3.5" }, Yn = { 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)]" }, Xn = ["onClick"], Zn = { class: "tpl:flex tpl:items-stretch" }, Qn = ["value"], $n = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, er = { class: "tpl:mb-3.5" }, tr = ["value"], nr = ["value"], rr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ir = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, ar = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, or = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, sr = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, cr = { 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)]" }, lr = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, ur = { class: "tpl:mb-1 tpl:last:mb-0" }, dr = { class: "tpl:mb-1 tpl:last:mb-0" }, fr = { class: "tpl:mb-1 tpl:last:mb-0" }, pr = 150, mr = /* @__PURE__ */ l({
512
+ }), rn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, an = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, on = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, sn = { class: "tpl:mb-3.5" }, cn = { 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)]" }, ln = ["onClick"], un = { class: "tpl:flex tpl:items-stretch" }, dn = ["value"], fn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, pn = { class: "tpl:mb-3.5" }, mn = ["value"], hn = ["value"], gn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, _n = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, vn = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, yn = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, bn = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, xn = { 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)]" }, Sn = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Cn = { class: "tpl:mb-1 tpl:last:mb-0" }, wn = { class: "tpl:mb-1 tpl:last:mb-0" }, Tn = { class: "tpl:mb-1 tpl:last:mb-0" }, En = 150, Dn = /* @__PURE__ */ l({
842
513
  __name: "TemplateSettings",
843
514
  props: { settings: {} },
844
515
  emits: ["update"],
845
516
  setup(e, { emit: t }) {
846
- let n = e, r = t, { t: a } = L(), o = Te(be, "TemplateSettings"), c = T(() => o.fonts.value), l = T(() => c.value.some((e) => e.value === n.settings.fontFamily) ? n.settings.fontFamily : o.defaultFont.value), u = [
517
+ let n = e, r = t, { t: a } = P(), o = Se(R, "TemplateSettings"), c = T(() => o.fonts.value), l = T(() => c.value.some((e) => e.value === n.settings.fontFamily) ? n.settings.fontFamily : o.defaultFont.value), u = [
847
518
  {
848
519
  value: 480,
849
520
  label: "480px"
@@ -861,14 +532,14 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
861
532
  label: "800px"
862
533
  }
863
534
  ];
864
- return (t, n) => (s(), f("aside", Gn, [C("div", Kn, [
865
- C("div", { class: D(p(St)) }, [
866
- C("div", qn, [m(p(ut), {
535
+ return (t, n) => (s(), f("aside", rn, [C("div", an, [
536
+ C("div", { class: D(p(yt)) }, [
537
+ C("div", on, [m(p(st), {
867
538
  class: "tpl:text-[var(--tpl-text-muted)]",
868
539
  size: 14,
869
540
  "stroke-width": 2
870
541
  }), C("span", null, S(p(a).templateSettings.layout), 1)]),
871
- C("div", Jn, [C("label", { class: D(p(V)) }, S(p(a).templateSettings.widthPreset), 3), C("div", Yn, [(s(), f(_, null, i(u, (t) => C("button", {
542
+ C("div", sn, [C("label", { class: D(p(U)) }, S(p(a).templateSettings.widthPreset), 3), C("div", cn, [(s(), f(_, null, i(u, (t) => C("button", {
872
543
  key: t.value,
873
544
  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)]",
874
545
  style: g({
@@ -877,61 +548,61 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
877
548
  boxShadow: e.settings.width === t.value ? "var(--tpl-shadow)" : "none"
878
549
  }),
879
550
  onClick: (e) => r("update", { width: t.value })
880
- }, S(t.label), 13, Xn)), 64))])]),
881
- C("div", null, [C("label", { class: D(p(V)) }, S(p(a).templateSettings.customWidth), 3), C("div", Zn, [C("input", {
551
+ }, S(t.label), 13, ln)), 64))])]),
552
+ C("div", null, [C("label", { class: D(p(U)) }, S(p(a).templateSettings.customWidth), 3), C("div", un, [C("input", {
882
553
  type: "number",
883
- class: D(p(U)),
554
+ class: D(p(G)),
884
555
  value: e.settings.width,
885
556
  min: "300",
886
557
  max: "900",
887
558
  onInput: n[0] ||= (e) => r("update", { width: Number(e.target.value) })
888
- }, null, 42, Qn), C("span", { class: D(p(H)) }, "px", 2)])])
559
+ }, null, 42, dn), C("span", { class: D(p(W)) }, "px", 2)])])
889
560
  ], 2),
890
- C("div", { class: D(p(St)) }, [
891
- C("div", $n, [m(p(ft), {
561
+ C("div", { class: D(p(yt)) }, [
562
+ C("div", fn, [m(p(lt), {
892
563
  class: "tpl:text-[var(--tpl-text-muted)]",
893
564
  size: 14,
894
565
  "stroke-width": 2
895
566
  }), C("span", null, S(p(a).templateSettings.appearance), 1)]),
896
- C("div", er, [C("label", { class: D(p(V)) }, S(p(a).templateSettings.backgroundColor), 3), m(q, {
567
+ C("div", pn, [C("label", { class: D(p(U)) }, S(p(a).templateSettings.backgroundColor), 3), m(K, {
897
568
  "model-value": e.settings.backgroundColor,
898
- placeholder: p(Ct),
569
+ placeholder: p(bt),
899
570
  "onUpdate:modelValue": n[1] ||= (e) => r("update", { backgroundColor: e })
900
571
  }, null, 8, ["model-value", "placeholder"])]),
901
- C("div", null, [C("label", { class: D(p(V)) }, S(p(a).templateSettings.fontFamily), 3), C("select", {
902
- class: D(p(B)),
572
+ C("div", null, [C("label", { class: D(p(U)) }, S(p(a).templateSettings.fontFamily), 3), C("select", {
573
+ class: D(p(H)),
903
574
  value: l.value,
904
575
  onChange: n[2] ||= (e) => r("update", { fontFamily: e.target.value })
905
576
  }, [(s(!0), f(_, null, i(c.value, (e) => (s(), f("option", {
906
577
  key: e.value,
907
578
  value: e.value
908
- }, S(e.label), 9, nr))), 128))], 42, tr)])
579
+ }, S(e.label), 9, hn))), 128))], 42, mn)])
909
580
  ], 2),
910
- C("div", { class: D(p(St)) }, [C("div", rr, [m(p(ke), {
581
+ C("div", { class: D(p(yt)) }, [C("div", gn, [m(p(Te), {
911
582
  class: "tpl:text-[var(--tpl-text-muted)]",
912
583
  size: 14,
913
584
  "stroke-width": 2
914
- }), C("span", null, S(p(a).templateSettings.preheaderText), 1)]), C("div", null, [m(Wn, {
585
+ }), C("span", null, S(p(a).templateSettings.preheaderText), 1)]), C("div", null, [m(nn, {
915
586
  "model-value": e.settings.preheaderText ?? "",
916
587
  placeholder: p(a).templateSettings.preheaderTextPlaceholder,
917
588
  rows: 2,
918
589
  "onUpdate:modelValue": n[3] ||= (e) => r("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
919
- }, null, 8, ["model-value", "placeholder"]), C("div", ir, [C("span", ar, S(p(a).templateSettings.preheaderTextHint), 1), C("span", or, S((e.settings.preheaderText ?? "").length) + "/" + S(pr), 1)])])], 2),
920
- C("div", sr, [C("div", cr, [m(p(Ue), {
590
+ }, null, 8, ["model-value", "placeholder"]), C("div", _n, [C("span", vn, S(p(a).templateSettings.preheaderTextHint), 1), C("span", yn, S((e.settings.preheaderText ?? "").length) + "/" + S(En), 1)])])], 2),
591
+ C("div", bn, [C("div", xn, [m(p(Be), {
921
592
  size: 14,
922
593
  "stroke-width": 2
923
- }), C("span", null, S(p(a).templateSettings.tips), 1)]), C("ul", lr, [
924
- C("li", ur, S(p(a).templateSettings.tip1), 1),
925
- C("li", dr, S(p(a).templateSettings.tip2), 1),
926
- C("li", fr, S(p(a).templateSettings.tip3), 1)
594
+ }), C("span", null, S(p(a).templateSettings.tips), 1)]), C("ul", Sn, [
595
+ C("li", Cn, S(p(a).templateSettings.tip1), 1),
596
+ C("li", wn, S(p(a).templateSettings.tip2), 1),
597
+ C("li", Tn, S(p(a).templateSettings.tip3), 1)
927
598
  ])])
928
599
  ])]));
929
600
  }
930
- }), hr = { key: 0 }, gr = { key: 1 }, _r = [
601
+ }), On = { key: 0 }, kn = { key: 1 }, An = [
931
602
  "type",
932
603
  "value",
933
604
  "placeholder"
934
- ], vr = "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-xs 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)]", J = /* @__PURE__ */ j(/* @__PURE__ */ l({
605
+ ], jn = "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-xs 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)]", X = /* @__PURE__ */ M(/* @__PURE__ */ l({
935
606
  __name: "MergeTagInput",
936
607
  props: {
937
608
  modelValue: {},
@@ -944,14 +615,14 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
944
615
  },
945
616
  emits: ["update:modelValue"],
946
617
  setup(e, { emit: n }) {
947
- let r = e, i = n, a = t(null), { segments: o, hasMergeTags: c, mergeTagEnabled: l, isRequestingMergeTag: u, isEditing: d, startEditing: h, stopEditing: g, handleInput: _, clearValue: b, insertMergeTag: S } = kn({
618
+ let r = e, i = n, a = t(null), { segments: o, hasMergeTags: c, mergeTagEnabled: l, isRequestingMergeTag: u, isEditing: d, startEditing: h, stopEditing: g, handleInput: _, clearValue: b, insertMergeTag: S } = Ht({
948
619
  modelValue: () => r.modelValue,
949
620
  emit: (e) => i("update:modelValue", e),
950
621
  elementRef: a
951
622
  });
952
- return (t, n) => p(c) && !p(d) ? (s(), f("div", hr, [m(Fn, {
623
+ return (t, n) => p(c) && !p(d) ? (s(), f("div", On, [m(Jt, {
953
624
  segments: p(o),
954
- "display-class": vr,
625
+ "display-class": jn,
955
626
  pulse: e.pulse,
956
627
  onEdit: p(h),
957
628
  onClear: p(b)
@@ -960,30 +631,30 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
960
631
  "pulse",
961
632
  "onEdit",
962
633
  "onClear"
963
- ]), p(l) ? (s(), y(Rn, {
634
+ ]), p(l) ? (s(), y(Y, {
964
635
  key: 0,
965
636
  disabled: p(u),
966
637
  onInsert: p(S)
967
- }, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : (s(), f("div", gr, [C("input", {
638
+ }, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : (s(), f("div", kn, [C("input", {
968
639
  ref_key: "inputRef",
969
640
  ref: a,
970
641
  type: e.type,
971
- class: D([p(B), { "tpl-pulse-fill": e.pulse }]),
642
+ class: D([p(H), { "tpl-pulse-fill": e.pulse }]),
972
643
  value: e.modelValue,
973
644
  placeholder: e.placeholder,
974
645
  onInput: n[0] ||= (...e) => p(_) && p(_)(...e),
975
646
  onBlur: n[1] ||= (...e) => p(g) && p(g)(...e),
976
647
  onKeydown: n[2] ||= x((...e) => p(g) && p(g)(...e), ["escape"])
977
- }, null, 42, _r), p(l) ? (s(), y(Rn, {
648
+ }, null, 42, An), p(l) ? (s(), y(Y, {
978
649
  key: 0,
979
650
  disabled: p(u),
980
651
  onInsert: p(S)
981
652
  }, null, 8, ["disabled", "onInsert"])) : v("", !0)]));
982
653
  }
983
- }), [["__scopeId", "data-v-b982cc87"]]), yr = { class: "tpl:mb-3.5" }, br = ["value"], xr = { value: "" }, Sr = ["value"], Cr = { class: "tpl:mb-3.5" }, wr = { class: "tpl:mb-3.5" }, Tr = {
654
+ }), [["__scopeId", "data-v-b982cc87"]]), Mn = { class: "tpl:mb-3.5" }, Nn = ["value"], Pn = { value: "" }, Fn = ["value"], In = { class: "tpl:mb-3.5" }, Ln = { class: "tpl:mb-3.5" }, Rn = {
984
655
  key: 0,
985
656
  class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
986
- }, Er = ["checked"], Dr = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Or = { class: "tpl:mb-3.5" }, kr = { class: "tpl:mb-3.5" }, Ar = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, jr = { class: "tpl:mb-3.5" }, Mr = { class: "tpl:flex tpl:items-stretch" }, Nr = ["value"], Pr = { class: "tpl:mb-3.5" }, Fr = { class: "tpl:flex tpl:items-stretch" }, Ir = ["value"], Lr = /* @__PURE__ */ l({
657
+ }, zn = ["checked"], Bn = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Vn = { class: "tpl:mb-3.5" }, Hn = { class: "tpl:mb-3.5" }, Un = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Wn = { class: "tpl:mb-3.5" }, Gn = { class: "tpl:flex tpl:items-stretch" }, Kn = ["value"], qn = { class: "tpl:mb-3.5" }, Jn = { class: "tpl:flex tpl:items-stretch" }, Yn = ["value"], Xn = /* @__PURE__ */ l({
987
658
  __name: "ButtonToolbar",
988
659
  props: {
989
660
  block: {},
@@ -991,64 +662,64 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
991
662
  },
992
663
  emits: ["update"],
993
664
  setup(e, { emit: t }) {
994
- let n = t, { t: r } = L();
665
+ let n = t, { t: r } = P();
995
666
  function a(e, t) {
996
667
  n("update", { [e]: t });
997
668
  }
998
669
  return (t, n) => (s(), f(_, null, [
999
- C("div", yr, [C("label", { class: D(p(V)) }, S(p(r).button.fontFamily), 3), C("select", {
1000
- class: D(p(B)),
670
+ C("div", Mn, [C("label", { class: D(p(U)) }, S(p(r).button.fontFamily), 3), C("select", {
671
+ class: D(p(H)),
1001
672
  value: e.block.fontFamily || "",
1002
673
  onChange: n[0] ||= (e) => a("fontFamily", e.target.value || void 0)
1003
- }, [C("option", xr, S(p(r).button.inheritFont), 1), (s(!0), f(_, null, i(e.fontFamilies, (e) => (s(), f("option", {
674
+ }, [C("option", Pn, S(p(r).button.inheritFont), 1), (s(!0), f(_, null, i(e.fontFamilies, (e) => (s(), f("option", {
1004
675
  key: e.value,
1005
676
  value: e.value
1006
- }, S(e.label), 9, Sr))), 128))], 42, br)]),
1007
- C("div", Cr, [C("label", { class: D(p(V)) }, S(p(r).button.text), 3), m(J, {
677
+ }, S(e.label), 9, Fn))), 128))], 42, Nn)]),
678
+ C("div", In, [C("label", { class: D(p(U)) }, S(p(r).button.text), 3), m(X, {
1008
679
  "model-value": e.block.text,
1009
680
  type: "text",
1010
681
  "onUpdate:modelValue": n[1] ||= (e) => a("text", e)
1011
682
  }, null, 8, ["model-value"])]),
1012
- C("div", wr, [
1013
- C("label", { class: D(p(V)) }, S(p(r).button.url), 3),
1014
- m(J, {
683
+ C("div", Ln, [
684
+ C("label", { class: D(p(U)) }, S(p(r).button.url), 3),
685
+ m(X, {
1015
686
  "model-value": e.block.url,
1016
687
  type: "url",
1017
688
  placeholder: p(r).button.urlPlaceholder,
1018
689
  "onUpdate:modelValue": n[2] ||= (e) => a("url", e)
1019
690
  }, null, 8, ["model-value", "placeholder"]),
1020
- e.block.url ? (s(), f("label", Tr, [C("input", {
691
+ e.block.url ? (s(), f("label", Rn, [C("input", {
1021
692
  type: "checkbox",
1022
693
  class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
1023
694
  checked: e.block.openInNewTab ?? !1,
1024
695
  onChange: n[3] ||= (e) => a("openInNewTab", e.target.checked)
1025
- }, null, 40, Er), A(" " + S(p(r).button.openInNewTab), 1)])) : v("", !0)
696
+ }, null, 40, zn), j(" " + S(p(r).button.openInNewTab), 1)])) : v("", !0)
1026
697
  ]),
1027
- C("div", Dr, [C("div", Or, [C("label", { class: D(p(V)) }, S(p(r).button.background), 3), m(q, {
698
+ C("div", Bn, [C("div", Vn, [C("label", { class: D(p(U)) }, S(p(r).button.background), 3), m(K, {
1028
699
  "model-value": e.block.backgroundColor,
1029
700
  "onUpdate:modelValue": n[4] ||= (e) => a("backgroundColor", e)
1030
- }, null, 8, ["model-value"])]), C("div", kr, [C("label", { class: D(p(V)) }, S(p(r).button.textColor), 3), m(q, {
701
+ }, null, 8, ["model-value"])]), C("div", Hn, [C("label", { class: D(p(U)) }, S(p(r).button.textColor), 3), m(K, {
1031
702
  "model-value": e.block.textColor,
1032
703
  "onUpdate:modelValue": n[5] ||= (e) => a("textColor", e)
1033
704
  }, null, 8, ["model-value"])])]),
1034
- C("div", Ar, [C("div", jr, [C("label", { class: D(p(V)) }, S(p(r).button.borderRadius), 3), C("div", Mr, [C("input", {
705
+ C("div", Un, [C("div", Wn, [C("label", { class: D(p(U)) }, S(p(r).button.borderRadius), 3), C("div", Gn, [C("input", {
1035
706
  type: "number",
1036
- class: D(p(U)),
707
+ class: D(p(G)),
1037
708
  value: e.block.borderRadius,
1038
709
  min: "0",
1039
710
  max: "50",
1040
711
  onInput: n[6] ||= (e) => a("borderRadius", Number(e.target.value))
1041
- }, null, 42, Nr), C("span", { class: D(p(H)) }, "px", 2)])]), C("div", Pr, [C("label", { class: D(p(V)) }, S(p(r).button.fontSize), 3), C("div", Fr, [C("input", {
712
+ }, null, 42, Kn), C("span", { class: D(p(W)) }, "px", 2)])]), C("div", qn, [C("label", { class: D(p(U)) }, S(p(r).button.fontSize), 3), C("div", Jn, [C("input", {
1042
713
  type: "number",
1043
- class: D(p(U)),
714
+ class: D(p(G)),
1044
715
  value: e.block.fontSize,
1045
716
  min: "10",
1046
717
  max: "36",
1047
718
  onInput: n[7] ||= (e) => a("fontSize", Number(e.target.value))
1048
- }, null, 42, Ir), C("span", { class: D(p(H)) }, "px", 2)])])])
719
+ }, null, 42, Yn), C("span", { class: D(p(W)) }, "px", 2)])])])
1049
720
  ], 64));
1050
721
  }
1051
- }), Rr = { class: "spacing-control" }, zr = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Br = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Vr = { class: "tpl:flex tpl:items-center" }, Hr = ["aria-label"], Ur = ["value", "aria-label"], Wr = ["aria-label"], Gr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Kr = { class: "tpl:flex tpl:items-center" }, qr = ["aria-label"], Jr = ["value", "aria-label"], Yr = ["aria-label"], Xr = ["aria-label", "title"], Zr = { class: "tpl:flex tpl:items-center" }, Qr = ["aria-label"], $r = ["value", "aria-label"], ei = ["aria-label"], ti = { class: "tpl:flex tpl:items-center" }, ni = ["aria-label"], ri = ["value", "aria-label"], ii = ["aria-label"], Y = "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)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] active:tpl:bg-[var(--tpl-bg-active)]", ai = "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] focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)]", oi = /* @__PURE__ */ j(/* @__PURE__ */ l({
722
+ }), Zn = { class: "spacing-control" }, Qn = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, $n = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, er = { class: "tpl:flex tpl:items-center" }, tr = ["aria-label"], nr = ["value", "aria-label"], rr = ["aria-label"], ir = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ar = { class: "tpl:flex tpl:items-center" }, or = ["aria-label"], sr = ["value", "aria-label"], cr = ["aria-label"], lr = ["aria-label", "title"], ur = { class: "tpl:flex tpl:items-center" }, dr = ["aria-label"], fr = ["value", "aria-label"], pr = ["aria-label"], mr = { class: "tpl:flex tpl:items-center" }, hr = ["aria-label"], gr = ["value", "aria-label"], _r = ["aria-label"], Z = "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)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] active:tpl:bg-[var(--tpl-bg-active)]", vr = "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] focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)]", yr = /* @__PURE__ */ M(/* @__PURE__ */ l({
1052
723
  __name: "SpacingControl",
1053
724
  props: {
1054
725
  modelValue: {},
@@ -1056,7 +727,7 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1056
727
  },
1057
728
  emits: ["update:modelValue"],
1058
729
  setup(e, { emit: r }) {
1059
- let i = e, a = r, { t: o } = L(), c = T(() => i.modelValue.top === i.modelValue.right && i.modelValue.right === i.modelValue.bottom && i.modelValue.bottom === i.modelValue.left), l = t(c.value);
730
+ let i = e, a = r, { t: o } = P(), c = T(() => i.modelValue.top === i.modelValue.right && i.modelValue.right === i.modelValue.bottom && i.modelValue.bottom === i.modelValue.left), l = t(c.value);
1060
731
  n(c, (e) => {
1061
732
  !e && l.value && (l.value = !1);
1062
733
  });
@@ -1095,130 +766,130 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1095
766
  });
1096
767
  }
1097
768
  }
1098
- return (t, n) => (s(), f("div", Rr, [C("label", zr, S(e.label), 1), C("div", Br, [
1099
- C("div", Vr, [
769
+ return (t, n) => (s(), f("div", Zn, [C("label", Qn, S(e.label), 1), C("div", $n, [
770
+ C("div", er, [
1100
771
  C("button", {
1101
772
  "aria-label": p(o).spacingControl.decreaseTop,
1102
- class: D([Y, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
773
+ class: D([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1103
774
  onClick: n[0] ||= (e) => u("top", -1)
1104
- }, [m(p(R), {
775
+ }, [m(p(B), {
1105
776
  size: 12,
1106
777
  "stroke-width": 2
1107
- })], 10, Hr),
778
+ })], 10, tr),
1108
779
  C("input", {
1109
780
  type: "number",
1110
- class: D(ai),
781
+ class: D(vr),
1111
782
  value: e.modelValue.top,
1112
783
  "aria-label": p(o).spacingControl.top,
1113
784
  min: "0",
1114
785
  onInput: n[1] ||= (e) => d("top", Number(e.target.value))
1115
- }, null, 40, Ur),
786
+ }, null, 40, nr),
1116
787
  C("button", {
1117
788
  "aria-label": p(o).spacingControl.increaseTop,
1118
- class: D([Y, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
789
+ class: D([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1119
790
  onClick: n[2] ||= (e) => u("top", 1)
1120
- }, [m(p(z), {
791
+ }, [m(p(V), {
1121
792
  size: 12,
1122
793
  "stroke-width": 2
1123
- })], 10, Wr)
794
+ })], 10, rr)
1124
795
  ]),
1125
- C("div", Gr, [
1126
- C("div", Kr, [
796
+ C("div", ir, [
797
+ C("div", ar, [
1127
798
  C("button", {
1128
799
  "aria-label": p(o).spacingControl.decreaseLeft,
1129
- class: D([Y, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
800
+ class: D([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1130
801
  onClick: n[3] ||= (e) => u("left", -1)
1131
- }, [m(p(R), {
802
+ }, [m(p(B), {
1132
803
  size: 12,
1133
804
  "stroke-width": 2
1134
- })], 10, qr),
805
+ })], 10, or),
1135
806
  C("input", {
1136
807
  type: "number",
1137
- class: D(ai),
808
+ class: D(vr),
1138
809
  value: e.modelValue.left,
1139
810
  "aria-label": p(o).spacingControl.left,
1140
811
  min: "0",
1141
812
  onInput: n[4] ||= (e) => d("left", Number(e.target.value))
1142
- }, null, 40, Jr),
813
+ }, null, 40, sr),
1143
814
  C("button", {
1144
815
  "aria-label": p(o).spacingControl.increaseLeft,
1145
- class: D([Y, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
816
+ class: D([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1146
817
  onClick: n[5] ||= (e) => u("left", 1)
1147
- }, [m(p(z), {
818
+ }, [m(p(V), {
1148
819
  size: 12,
1149
820
  "stroke-width": 2
1150
- })], 10, Yr)
821
+ })], 10, cr)
1151
822
  ]),
1152
823
  C("button", {
1153
824
  class: D(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", l.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)]"]),
1154
825
  "aria-label": l.value ? p(o).spacingControl.unlock : p(o).spacingControl.lockAll,
1155
826
  title: l.value ? p(o).spacingControl.unlock : p(o).spacingControl.lockAll,
1156
827
  onClick: h
1157
- }, [l.value ? (s(), y(p(et), {
828
+ }, [l.value ? (s(), y(p(Ze), {
1158
829
  key: 0,
1159
830
  size: 14,
1160
831
  "stroke-width": 2
1161
- })) : (s(), y(p(tt), {
832
+ })) : (s(), y(p(Qe), {
1162
833
  key: 1,
1163
834
  size: 14,
1164
835
  "stroke-width": 2
1165
- }))], 10, Xr),
1166
- C("div", Zr, [
836
+ }))], 10, lr),
837
+ C("div", ur, [
1167
838
  C("button", {
1168
839
  "aria-label": p(o).spacingControl.decreaseRight,
1169
- class: D([Y, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
840
+ class: D([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1170
841
  onClick: n[6] ||= (e) => u("right", -1)
1171
- }, [m(p(R), {
842
+ }, [m(p(B), {
1172
843
  size: 12,
1173
844
  "stroke-width": 2
1174
- })], 10, Qr),
845
+ })], 10, dr),
1175
846
  C("input", {
1176
847
  type: "number",
1177
- class: D(ai),
848
+ class: D(vr),
1178
849
  value: e.modelValue.right,
1179
850
  "aria-label": p(o).spacingControl.right,
1180
851
  min: "0",
1181
852
  onInput: n[7] ||= (e) => d("right", Number(e.target.value))
1182
- }, null, 40, $r),
853
+ }, null, 40, fr),
1183
854
  C("button", {
1184
855
  "aria-label": p(o).spacingControl.increaseRight,
1185
- class: D([Y, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
856
+ class: D([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1186
857
  onClick: n[8] ||= (e) => u("right", 1)
1187
- }, [m(p(z), {
858
+ }, [m(p(V), {
1188
859
  size: 12,
1189
860
  "stroke-width": 2
1190
- })], 10, ei)
861
+ })], 10, pr)
1191
862
  ])
1192
863
  ]),
1193
- C("div", ti, [
864
+ C("div", mr, [
1194
865
  C("button", {
1195
866
  "aria-label": p(o).spacingControl.decreaseBottom,
1196
- class: D([Y, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
867
+ class: D([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1197
868
  onClick: n[9] ||= (e) => u("bottom", -1)
1198
- }, [m(p(R), {
869
+ }, [m(p(B), {
1199
870
  size: 12,
1200
871
  "stroke-width": 2
1201
- })], 10, ni),
872
+ })], 10, hr),
1202
873
  C("input", {
1203
874
  type: "number",
1204
- class: D(ai),
875
+ class: D(vr),
1205
876
  value: e.modelValue.bottom,
1206
877
  "aria-label": p(o).spacingControl.bottom,
1207
878
  min: "0",
1208
879
  onInput: n[10] ||= (e) => d("bottom", Number(e.target.value))
1209
- }, null, 40, ri),
880
+ }, null, 40, gr),
1210
881
  C("button", {
1211
882
  "aria-label": p(o).spacingControl.increaseBottom,
1212
- class: D([Y, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
883
+ class: D([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1213
884
  onClick: n[11] ||= (e) => u("bottom", 1)
1214
- }, [m(p(z), {
885
+ }, [m(p(V), {
1215
886
  size: 12,
1216
887
  "stroke-width": 2
1217
- })], 10, ii)
888
+ })], 10, _r)
1218
889
  ])
1219
890
  ])]));
1220
891
  }
1221
- }), [["__scopeId", "data-v-9a9c8a07"]]), si = { class: "tpl:mt-3" }, X = /* @__PURE__ */ l({
892
+ }), [["__scopeId", "data-v-9a9c8a07"]]), br = { class: "tpl:mt-3" }, Q = /* @__PURE__ */ l({
1222
893
  __name: "CollapsibleSection",
1223
894
  props: {
1224
895
  title: {},
@@ -1231,25 +902,25 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1231
902
  type: "button",
1232
903
  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)]",
1233
904
  onClick: n[0] ||= (e) => t.$emit("toggle")
1234
- }, [m(p(Ye), {
905
+ }, [m(p(Ke), {
1235
906
  class: D(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
1236
907
  size: 12,
1237
908
  "stroke-width": 2
1238
- }, null, 8, ["class"]), C("span", null, S(e.title), 1)]), u(C("div", si, [o(t.$slots, "default")], 512), [[h, e.open]])], 2));
909
+ }, null, 8, ["class"]), C("span", null, S(e.title), 1)]), u(C("div", br, [o(t.$slots, "default")], 512), [[h, e.open]])], 2));
1239
910
  }
1240
- }), ci = { class: "tpl:mt-4" }, li = { class: "tpl:space-y-2" }, ui = ["checked", "onChange"], di = ["value", "placeholder"], fi = { class: "tpl:space-y-2" }, pi = ["value"], mi = { value: "" }, hi = ["label"], gi = ["value"], _i = ["value"], vi = {
911
+ }), xr = { class: "tpl:mt-4" }, Sr = { class: "tpl:space-y-2" }, Cr = ["checked", "onChange"], wr = ["value", "placeholder"], Tr = { class: "tpl:space-y-2" }, Er = ["value"], Dr = { value: "" }, Or = ["label"], kr = ["value"], Ar = ["value"], jr = {
1241
912
  key: 0,
1242
913
  value: "__custom__"
1243
- }, yi = {
914
+ }, Mr = {
1244
915
  key: 0,
1245
916
  class: "tpl:space-y-2"
1246
- }, bi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, xi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Si = { class: "tpl:flex tpl:justify-end" }, Ci = ["disabled"], wi = {
917
+ }, Nr = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Pr = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Fr = { class: "tpl:flex tpl:justify-end" }, Ir = ["disabled"], Lr = {
1247
918
  key: 0,
1248
919
  class: "tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]"
1249
- }, Ti = { class: "tpl:space-y-1" }, Ei = { class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]" }, Di = {
920
+ }, Rr = { class: "tpl:space-y-1" }, zr = { class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]" }, Br = {
1250
921
  key: 0,
1251
922
  class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
1252
- }, Oi = /* @__PURE__ */ l({
923
+ }, Vr = /* @__PURE__ */ l({
1253
924
  __name: "CommonBlockSettings",
1254
925
  props: {
1255
926
  block: {},
@@ -1257,43 +928,43 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1257
928
  },
1258
929
  emits: ["update"],
1259
930
  setup(e, { emit: o }) {
1260
- let l = e, h = o, { t: g } = L(), b = r(Se, []), x = r(me, !1), w = d(/* @__PURE__ */ new Set()), O = t(!1), k = t(""), j = t(""), ee = [
931
+ let l = e, h = o, { t: g } = P(), b = r(te, []), x = r(le, !1), w = d(/* @__PURE__ */ new Set()), O = t(!1), k = t(""), A = t(""), M = [
1261
932
  {
1262
933
  key: "desktop",
1263
- icon: rt,
934
+ icon: et,
1264
935
  labelKey: "showOnDesktop"
1265
936
  },
1266
937
  {
1267
938
  key: "tablet",
1268
- icon: ct,
939
+ icon: at,
1269
940
  labelKey: "showOnTablet"
1270
941
  },
1271
942
  {
1272
943
  key: "mobile",
1273
- icon: at,
944
+ icon: nt,
1274
945
  labelKey: "showOnMobile"
1275
946
  }
1276
947
  ];
1277
- function M(e) {
948
+ function N(e) {
1278
949
  w.has(e) ? w.delete(e) : w.add(e);
1279
950
  }
1280
- let te = T(() => b.length > 0 || x), N = T(() => l.block.displayCondition ? !b.some((e) => e.label === l.block.displayCondition?.label) : !1);
1281
- function ne() {
1282
- O.value = !0, N.value && l.block.displayCondition ? (k.value = l.block.displayCondition.before, j.value = l.block.displayCondition.after ?? "") : (k.value = "", j.value = "");
951
+ let ee = T(() => b.length > 0 || x), F = T(() => l.block.displayCondition ? !b.some((e) => e.label === l.block.displayCondition?.label) : !1);
952
+ function I() {
953
+ O.value = !0, F.value && l.block.displayCondition ? (k.value = l.block.displayCondition.before, A.value = l.block.displayCondition.after ?? "") : (k.value = "", A.value = "");
1283
954
  }
1284
- function P() {
955
+ function ne() {
1285
956
  k.value.trim() && (h("update", { displayCondition: {
1286
957
  label: g.blockSettings.customCondition,
1287
958
  before: k.value.trim(),
1288
- after: j.value.trim()
1289
- } }), O.value = !1, k.value = "", j.value = "");
959
+ after: A.value.trim()
960
+ } }), O.value = !1, k.value = "", A.value = "");
1290
961
  }
1291
962
  n(() => l.block.displayCondition, (e) => {
1292
963
  if (!e) {
1293
- O.value = !1, k.value = "", j.value = "";
964
+ O.value = !1, k.value = "", A.value = "";
1294
965
  return;
1295
966
  }
1296
- N.value && (k.value = e.before, j.value = e.after ?? "");
967
+ F.value && (k.value = e.before, A.value = e.after ?? "");
1297
968
  }, { immediate: !0 });
1298
969
  let re = T(() => {
1299
970
  let e = {};
@@ -1303,38 +974,38 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1303
974
  }
1304
975
  return e;
1305
976
  });
1306
- function ie(e, t) {
977
+ function L(e, t) {
1307
978
  h("update", { styles: {
1308
979
  ...l.block.styles,
1309
980
  [e]: t
1310
981
  } });
1311
982
  }
1312
- function F(e) {
983
+ function R(e) {
1313
984
  return l.block.visibility?.[e] !== !1;
1314
985
  }
1315
- function ae(e) {
986
+ function ie(e) {
1316
987
  let t = {
1317
- desktop: F("desktop"),
1318
- tablet: F("tablet"),
1319
- mobile: F("mobile")
988
+ desktop: R("desktop"),
989
+ tablet: R("tablet"),
990
+ mobile: R("mobile")
1320
991
  };
1321
992
  t[e] = !t[e], h("update", { visibility: t });
1322
993
  }
1323
994
  return (t, n) => (s(), f("div", { class: D(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
1324
- m(X, {
995
+ m(Q, {
1325
996
  title: p(g).blockSettings.spacing,
1326
997
  open: w.has("spacing"),
1327
998
  "no-border": e.isFirstSection,
1328
- onToggle: n[2] ||= (e) => M("spacing")
999
+ onToggle: n[2] ||= (e) => N("spacing")
1329
1000
  }, {
1330
- default: a(() => [m(oi, {
1001
+ default: a(() => [m(yr, {
1331
1002
  label: p(g).blockSettings.padding,
1332
1003
  "model-value": e.block.styles.padding,
1333
- "onUpdate:modelValue": n[0] ||= (e) => ie("padding", e)
1334
- }, null, 8, ["label", "model-value"]), C("div", ci, [m(oi, {
1004
+ "onUpdate:modelValue": n[0] ||= (e) => L("padding", e)
1005
+ }, null, 8, ["label", "model-value"]), C("div", xr, [m(yr, {
1335
1006
  label: p(g).blockSettings.margin,
1336
1007
  "model-value": e.block.styles.margin,
1337
- "onUpdate:modelValue": n[1] ||= (e) => ie("margin", e)
1008
+ "onUpdate:modelValue": n[1] ||= (e) => L("margin", e)
1338
1009
  }, null, 8, ["label", "model-value"])])]),
1339
1010
  _: 1
1340
1011
  }, 8, [
@@ -1342,68 +1013,68 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1342
1013
  "open",
1343
1014
  "no-border"
1344
1015
  ]),
1345
- m(X, {
1016
+ m(Q, {
1346
1017
  title: p(g).blockSettings.background,
1347
1018
  open: w.has("bg"),
1348
- onToggle: n[4] ||= (e) => M("bg")
1019
+ onToggle: n[4] ||= (e) => N("bg")
1349
1020
  }, {
1350
- default: a(() => [C("label", { class: D(p(V)) }, S(p(g).blockSettings.color), 3), m(q, {
1021
+ default: a(() => [C("label", { class: D(p(U)) }, S(p(g).blockSettings.color), 3), m(K, {
1351
1022
  size: "large",
1352
1023
  "model-value": e.block.styles.backgroundColor || p("#ffffff"),
1353
- "onUpdate:modelValue": n[3] ||= (e) => ie("backgroundColor", e)
1024
+ "onUpdate:modelValue": n[3] ||= (e) => L("backgroundColor", e)
1354
1025
  }, null, 8, ["model-value"])]),
1355
1026
  _: 1
1356
1027
  }, 8, ["title", "open"]),
1357
- m(X, {
1028
+ m(Q, {
1358
1029
  title: p(g).blockSettings.display,
1359
1030
  open: w.has("display"),
1360
- onToggle: n[5] ||= (e) => M("display")
1031
+ onToggle: n[5] ||= (e) => N("display")
1361
1032
  }, {
1362
- default: a(() => [C("div", li, [(s(), f(_, null, i(ee, (e) => C("label", {
1033
+ default: a(() => [C("div", Sr, [(s(), f(_, null, i(M, (e) => C("label", {
1363
1034
  key: e.key,
1364
1035
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]"
1365
1036
  }, [
1366
1037
  C("input", {
1367
1038
  type: "checkbox",
1368
1039
  class: "tpl:accent-[var(--tpl-primary)]",
1369
- checked: F(e.key),
1370
- onChange: (t) => ae(e.key)
1371
- }, null, 40, ui),
1040
+ checked: R(e.key),
1041
+ onChange: (t) => ie(e.key)
1042
+ }, null, 40, Cr),
1372
1043
  (s(), y(c(e.icon), {
1373
1044
  size: 14,
1374
1045
  "stroke-width": 1.5
1375
1046
  })),
1376
- A(" " + S(p(g).blockSettings[e.labelKey]), 1)
1047
+ j(" " + S(p(g).blockSettings[e.labelKey]), 1)
1377
1048
  ])), 64))])]),
1378
1049
  _: 1
1379
1050
  }, 8, ["title", "open"]),
1380
- m(X, {
1051
+ m(Q, {
1381
1052
  title: p(g).blockSettings.customCss,
1382
1053
  open: w.has("css"),
1383
- onToggle: n[7] ||= (e) => M("css")
1054
+ onToggle: n[7] ||= (e) => N("css")
1384
1055
  }, {
1385
- default: a(() => [C("label", { class: D(p(V)) }, S(p(g).blockSettings.css), 3), C("textarea", {
1056
+ default: a(() => [C("label", { class: D(p(U)) }, S(p(g).blockSettings.css), 3), C("textarea", {
1386
1057
  value: e.block.customCss || "",
1387
1058
  placeholder: p(g).blockSettings.cssPlaceholder,
1388
1059
  rows: "3",
1389
- class: D(p(bt)),
1060
+ class: D(p(vt)),
1390
1061
  onInput: n[6] ||= (e) => h("update", { customCss: e.target.value })
1391
- }, null, 42, di)]),
1062
+ }, null, 42, wr)]),
1392
1063
  _: 1
1393
1064
  }, 8, ["title", "open"]),
1394
- te.value ? (s(), y(X, {
1065
+ ee.value ? (s(), y(Q, {
1395
1066
  key: 0,
1396
1067
  title: p(g).blockSettings.displayCondition,
1397
1068
  open: w.has("condition"),
1398
- onToggle: n[11] ||= (e) => M("condition")
1069
+ onToggle: n[11] ||= (e) => N("condition")
1399
1070
  }, {
1400
- default: a(() => [C("div", fi, [C("select", {
1071
+ default: a(() => [C("div", Tr, [C("select", {
1401
1072
  class: D(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:duration-150 tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", e.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
1402
- value: O.value || N.value ? "__custom__" : e.block.displayCondition?.label ?? "",
1073
+ value: O.value || F.value ? "__custom__" : e.block.displayCondition?.label ?? "",
1403
1074
  onChange: n[8] ||= (e) => {
1404
1075
  let t = e.target.value;
1405
1076
  if (t === "__custom__") {
1406
- ne();
1077
+ I();
1407
1078
  return;
1408
1079
  }
1409
1080
  if (O.value = !1, !t) {
@@ -1414,335 +1085,48 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1414
1085
  n && h("update", { displayCondition: n });
1415
1086
  }
1416
1087
  }, [
1417
- C("option", mi, S(p(g).blockSettings.noCondition), 1),
1088
+ C("option", Dr, S(p(g).blockSettings.noCondition), 1),
1418
1089
  (s(!0), f(_, null, i(re.value, (e, t) => (s(), f(_, { key: t }, [t ? (s(), f("optgroup", {
1419
1090
  key: 0,
1420
1091
  label: String(t)
1421
1092
  }, [(s(!0), f(_, null, i(e, (e) => (s(), f("option", {
1422
1093
  key: e.label,
1423
1094
  value: e.label
1424
- }, S(e.label), 9, gi))), 128))], 8, hi)) : (s(!0), f(_, { key: 1 }, i(e, (e) => (s(), f("option", {
1095
+ }, S(e.label), 9, kr))), 128))], 8, Or)) : (s(!0), f(_, { key: 1 }, i(e, (e) => (s(), f("option", {
1425
1096
  key: e.label,
1426
1097
  value: e.label
1427
- }, S(e.label), 9, _i))), 128))], 64))), 128)),
1428
- p(x) ? (s(), f("option", vi, S(p(g).blockSettings.customCondition), 1)) : v("", !0)
1429
- ], 42, pi), O.value || N.value ? (s(), f("div", yi, [
1430
- C("div", null, [C("label", bi, S(p(g).blockSettings.customConditionBefore), 1), u(C("textarea", {
1098
+ }, S(e.label), 9, Ar))), 128))], 64))), 128)),
1099
+ p(x) ? (s(), f("option", jr, S(p(g).blockSettings.customCondition), 1)) : v("", !0)
1100
+ ], 42, Er), O.value || F.value ? (s(), f("div", Mr, [
1101
+ C("div", null, [C("label", Nr, S(p(g).blockSettings.customConditionBefore), 1), u(C("textarea", {
1431
1102
  "onUpdate:modelValue": n[9] ||= (e) => k.value = e,
1432
1103
  rows: "2",
1433
- class: D(p(bt))
1104
+ class: D(p(vt))
1434
1105
  }, null, 2), [[E, k.value]])]),
1435
- C("div", null, [C("label", xi, S(p(g).blockSettings.customConditionAfter), 1), u(C("textarea", {
1436
- "onUpdate:modelValue": n[10] ||= (e) => j.value = e,
1106
+ C("div", null, [C("label", Pr, S(p(g).blockSettings.customConditionAfter), 1), u(C("textarea", {
1107
+ "onUpdate:modelValue": n[10] ||= (e) => A.value = e,
1437
1108
  rows: "2",
1438
- class: D(p(bt))
1439
- }, null, 2), [[E, j.value]])]),
1440
- C("div", Si, [C("button", {
1109
+ class: D(p(vt))
1110
+ }, null, 2), [[E, A.value]])]),
1111
+ C("div", Fr, [C("button", {
1441
1112
  type: "button",
1442
1113
  class: "tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-[var(--tpl-primary)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-bg)] tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:opacity-50",
1443
1114
  disabled: !k.value.trim(),
1444
- onClick: P
1445
- }, S(p(g).blockSettings.applyCondition), 9, Ci)])
1446
- ])) : e.block.displayCondition && !N.value ? (s(), f(_, { key: 1 }, [e.block.displayCondition.description ? (s(), f("p", wi, S(e.block.displayCondition.description), 1)) : v("", !0), C("div", Ti, [C("pre", Ei, S(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (s(), f("pre", Di, S(e.block.displayCondition.after), 1)) : v("", !0)])], 64)) : v("", !0)])]),
1115
+ onClick: ne
1116
+ }, S(p(g).blockSettings.applyCondition), 9, Ir)])
1117
+ ])) : e.block.displayCondition && !F.value ? (s(), f(_, { key: 1 }, [e.block.displayCondition.description ? (s(), f("p", Lr, S(e.block.displayCondition.description), 1)) : v("", !0), C("div", Rr, [C("pre", zr, S(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (s(), f("pre", Br, S(e.block.displayCondition.after), 1)) : v("", !0)])], 64)) : v("", !0)])]),
1447
1118
  _: 1
1448
1119
  }, 8, ["title", "open"])) : v("", !0)
1449
1120
  ], 2));
1450
1121
  }
1451
- }), ki = [
1452
- "aria-checked",
1453
- "aria-label",
1454
- "title",
1455
- "onClick"
1456
- ], Ai = { key: 1 }, Z = /* @__PURE__ */ l({
1457
- __name: "SlidingPillSelect",
1458
- props: {
1459
- options: {},
1460
- modelValue: {}
1461
- },
1462
- emits: ["update:modelValue"],
1463
- setup(e, { emit: t }) {
1464
- let n = e, r = t, a = T(() => {
1465
- let e = n.options.findIndex((e) => e.value === n.modelValue);
1466
- return `translateX(${Math.max(e, 0) * 100}%)`;
1467
- });
1468
- return (t, n) => (s(), f("div", {
1469
- role: "radiogroup",
1470
- class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
1471
- style: g({
1472
- gridTemplateColumns: `repeat(${e.options.length}, 1fr)`,
1473
- backgroundColor: "var(--tpl-bg-hover)"
1474
- })
1475
- }, [C("div", {
1476
- class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
1477
- style: g({
1478
- left: "4px",
1479
- width: `calc((100% - 8px) / ${e.options.length})`,
1480
- transform: a.value,
1481
- backgroundColor: "var(--tpl-bg)",
1482
- boxShadow: "var(--tpl-shadow)",
1483
- transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
1484
- })
1485
- }, null, 4), (s(!0), f(_, null, i(e.options, (t) => (s(), f("button", {
1486
- key: t.value,
1487
- role: "radio",
1488
- "aria-checked": e.modelValue === t.value,
1489
- "aria-label": t.label,
1490
- class: "tpl:relative tpl:z-10 tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:py-[5px] tpl:text-xs tpl:font-medium",
1491
- style: g({
1492
- color: e.modelValue === t.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
1493
- transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
1494
- }),
1495
- title: t.label,
1496
- onClick: (e) => r("update:modelValue", t.value)
1497
- }, [t.icon ? (s(), y(c(t.icon), {
1498
- key: 0,
1499
- size: 14,
1500
- "stroke-width": 2
1501
- })) : (s(), f("span", Ai, S(t.label), 1))], 12, ki))), 128))], 4));
1502
- }
1503
- }), ji = { class: "tpl:mb-3.5" }, Q = /* @__PURE__ */ l({
1504
- __name: "FieldRow",
1505
- props: { label: {} },
1506
- setup(e) {
1507
- return (t, n) => (s(), f("div", ji, [e.label ? (s(), f("label", {
1508
- key: 0,
1509
- class: D(p(V))
1510
- }, S(e.label), 3)) : v("", !0), o(t.$slots, "default")]));
1511
- }
1512
- }), Mi = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, Ni = ["checked"], Pi = /* @__PURE__ */ l({
1513
- __name: "CheckboxItem",
1514
- props: {
1515
- modelValue: { type: Boolean },
1516
- label: {}
1517
- },
1518
- emits: ["update:modelValue"],
1519
- setup(e, { emit: t }) {
1520
- let n = t;
1521
- return (t, r) => (s(), f("label", Mi, [C("input", {
1522
- type: "checkbox",
1523
- class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
1524
- checked: e.modelValue,
1525
- onChange: r[0] ||= (e) => n("update:modelValue", e.target.checked)
1526
- }, null, 40, Ni), A(" " + S(e.label), 1)]));
1527
- }
1528
- }), Fi = { class: "tpl:flex tpl:items-stretch" }, Ii = [
1529
- "value",
1530
- "min",
1531
- "max"
1532
- ], Li = /* @__PURE__ */ l({
1533
- __name: "NumberWithSuffix",
1534
- props: {
1535
- modelValue: {},
1536
- min: {},
1537
- max: {},
1538
- suffix: {}
1539
- },
1540
- emits: ["update:modelValue"],
1541
- setup(e, { emit: t }) {
1542
- let n = t;
1543
- return (t, r) => (s(), f("div", Fi, [C("input", {
1544
- type: "number",
1545
- class: D(p(U)),
1546
- value: e.modelValue,
1547
- min: e.min,
1548
- max: e.max,
1549
- onInput: r[0] ||= (e) => n("update:modelValue", Number(e.target.value))
1550
- }, null, 42, Ii), C("span", { class: D(p(H)) }, S(e.suffix), 3)]));
1551
- }
1552
- }), Ri = ["value"], zi = ["value"], Bi = ["value"], Vi = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, Hi = ["value"], Ui = { value: "" }, Wi = ["value"], Gi = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Ki = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, qi = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, Ji = [
1553
- "value",
1554
- "placeholder",
1555
- "onInput"
1556
- ], Yi = ["value", "placeholder"], Xi = ["value"], Zi = /* @__PURE__ */ l({
1557
- __name: "CountdownToolbar",
1558
- props: {
1559
- block: {},
1560
- fontFamilies: {}
1561
- },
1562
- emits: ["update"],
1563
- setup(e, { emit: t }) {
1564
- let n = t, { t: r } = L(), o = [
1565
- "UTC",
1566
- "America/New_York",
1567
- "America/Chicago",
1568
- "America/Denver",
1569
- "America/Los_Angeles",
1570
- "Europe/London",
1571
- "Europe/Berlin",
1572
- "Europe/Paris",
1573
- "Europe/Moscow",
1574
- "Asia/Dubai",
1575
- "Asia/Kolkata",
1576
- "Asia/Shanghai",
1577
- "Asia/Tokyo",
1578
- "Australia/Sydney",
1579
- "Pacific/Auckland"
1580
- ], c = [
1581
- {
1582
- value: ":",
1583
- label: ":"
1584
- },
1585
- {
1586
- value: "-",
1587
- label: "-"
1588
- },
1589
- {
1590
- value: " ",
1591
- label: "␣"
1592
- }
1593
- ], l = [
1594
- "Days",
1595
- "Hours",
1596
- "Minutes",
1597
- "Seconds"
1598
- ], u = T(() => l.map((e) => ({
1599
- unit: e,
1600
- showKey: `show${e}`,
1601
- labelKey: `label${e}`,
1602
- translationKey: e.toLowerCase()
1603
- })));
1604
- function d(e, t) {
1605
- n("update", { [e]: t });
1606
- }
1607
- return (t, n) => (s(), f(_, null, [
1608
- m(Q, { label: p(r).countdown.targetDate }, {
1609
- default: a(() => [C("input", {
1610
- type: "datetime-local",
1611
- class: D(p(B)),
1612
- value: e.block.targetDate,
1613
- onInput: n[0] ||= (e) => d("targetDate", e.target.value)
1614
- }, null, 42, Ri)]),
1615
- _: 1
1616
- }, 8, ["label"]),
1617
- m(Q, { label: p(r).countdown.timezone }, {
1618
- default: a(() => [C("select", {
1619
- class: D(p(B)),
1620
- value: e.block.timezone,
1621
- onChange: n[1] ||= (e) => d("timezone", e.target.value)
1622
- }, [(s(), f(_, null, i(o, (e) => C("option", {
1623
- key: e,
1624
- value: e
1625
- }, S(e), 9, Bi)), 64))], 42, zi)]),
1626
- _: 1
1627
- }, 8, ["label"]),
1628
- m(Q, { label: p(r).countdown.display }, {
1629
- default: a(() => [C("div", Vi, [(s(!0), f(_, null, i(u.value, (t) => (s(), y(Pi, {
1630
- key: t.unit,
1631
- "model-value": e.block[t.showKey],
1632
- label: p(r).countdown[t.translationKey],
1633
- "onUpdate:modelValue": (e) => d(t.showKey, e)
1634
- }, null, 8, [
1635
- "model-value",
1636
- "label",
1637
- "onUpdate:modelValue"
1638
- ]))), 128))])]),
1639
- _: 1
1640
- }, 8, ["label"]),
1641
- m(Q, { label: p(r).countdown.separator }, {
1642
- default: a(() => [m(Z, {
1643
- options: c,
1644
- "model-value": e.block.separator,
1645
- "onUpdate:modelValue": n[2] ||= (e) => d("separator", e)
1646
- }, null, 8, ["model-value"])]),
1647
- _: 1
1648
- }, 8, ["label"]),
1649
- m(Q, { label: p(r).countdown.fontFamily }, {
1650
- default: a(() => [C("select", {
1651
- class: D(p(B)),
1652
- value: e.block.fontFamily || "",
1653
- onChange: n[3] ||= (e) => d("fontFamily", e.target.value || void 0)
1654
- }, [C("option", Ui, S(p(r).countdown.inheritFont), 1), (s(!0), f(_, null, i(e.fontFamilies, (e) => (s(), f("option", {
1655
- key: e.value,
1656
- value: e.value
1657
- }, S(e.label), 9, Wi))), 128))], 42, Hi)]),
1658
- _: 1
1659
- }, 8, ["label"]),
1660
- C("div", Gi, [m(Q, { label: p(r).countdown.digitFontSize }, {
1661
- default: a(() => [m(Li, {
1662
- "model-value": e.block.digitFontSize,
1663
- min: 12,
1664
- max: 72,
1665
- suffix: "px",
1666
- "onUpdate:modelValue": n[4] ||= (e) => d("digitFontSize", e)
1667
- }, null, 8, ["model-value"])]),
1668
- _: 1
1669
- }, 8, ["label"]), m(Q, { label: p(r).countdown.labelFontSize }, {
1670
- default: a(() => [m(Li, {
1671
- "model-value": e.block.labelFontSize,
1672
- min: 8,
1673
- max: 24,
1674
- suffix: "px",
1675
- "onUpdate:modelValue": n[5] ||= (e) => d("labelFontSize", e)
1676
- }, null, 8, ["model-value"])]),
1677
- _: 1
1678
- }, 8, ["label"])]),
1679
- C("div", Ki, [m(Q, { label: p(r).countdown.digitColor }, {
1680
- default: a(() => [m(q, {
1681
- "model-value": e.block.digitColor,
1682
- "onUpdate:modelValue": n[6] ||= (e) => d("digitColor", e)
1683
- }, null, 8, ["model-value"])]),
1684
- _: 1
1685
- }, 8, ["label"]), m(Q, { label: p(r).countdown.labelColor }, {
1686
- default: a(() => [m(q, {
1687
- "model-value": e.block.labelColor,
1688
- "onUpdate:modelValue": n[7] ||= (e) => d("labelColor", e)
1689
- }, null, 8, ["model-value"])]),
1690
- _: 1
1691
- }, 8, ["label"])]),
1692
- m(Q, { label: p(r).countdown.background }, {
1693
- default: a(() => [m(q, {
1694
- "model-value": e.block.backgroundColor,
1695
- "onUpdate:modelValue": n[8] ||= (e) => d("backgroundColor", e)
1696
- }, null, 8, ["model-value"])]),
1697
- _: 1
1698
- }, 8, ["label"]),
1699
- m(Q, { label: p(r).countdown.labels }, {
1700
- default: a(() => [C("div", qi, [(s(!0), f(_, null, i(u.value, (t) => (s(), f("input", {
1701
- key: t.unit,
1702
- type: "text",
1703
- class: D(p(B)),
1704
- value: e.block[t.labelKey],
1705
- placeholder: p(r).countdown[t.translationKey],
1706
- onInput: (e) => d(t.labelKey, e.target.value)
1707
- }, null, 42, Ji))), 128))])]),
1708
- _: 1
1709
- }, 8, ["label"]),
1710
- m(Q, { label: p(r).countdown.expiry }, {
1711
- default: a(() => [C("input", {
1712
- type: "text",
1713
- class: D(p(B)),
1714
- value: e.block.expiredMessage,
1715
- placeholder: p(r).countdown.expiredMessagePlaceholder,
1716
- onInput: n[9] ||= (e) => d("expiredMessage", e.target.value)
1717
- }, null, 42, Yi)]),
1718
- _: 1
1719
- }, 8, ["label"]),
1720
- m(Q, { label: p(r).countdown.expiredImageUrl }, {
1721
- default: a(() => [C("input", {
1722
- type: "url",
1723
- class: D(p(B)),
1724
- value: e.block.expiredImageUrl,
1725
- placeholder: "https://...",
1726
- onInput: n[10] ||= (e) => d("expiredImageUrl", e.target.value)
1727
- }, null, 42, Xi)]),
1728
- _: 1
1729
- }, 8, ["label"]),
1730
- m(Pi, {
1731
- "model-value": e.block.hideOnExpiry,
1732
- label: p(r).countdown.hideOnExpiry,
1733
- class: "tpl:mb-3.5",
1734
- "onUpdate:modelValue": n[11] ||= (e) => d("hideOnExpiry", e)
1735
- }, null, 8, ["model-value", "label"])
1736
- ], 64));
1737
- }
1738
- }), Qi = ["title"], $i = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ea = {
1122
+ }), Hr = ["title"], Ur = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Wr = {
1739
1123
  key: 1,
1740
1124
  class: "tpl:text-[var(--tpl-danger)]"
1741
- }, ta = [
1125
+ }, Gr = [
1742
1126
  "aria-checked",
1743
1127
  "aria-label",
1744
1128
  "disabled"
1745
- ], na = /* @__PURE__ */ l({
1129
+ ], Kr = /* @__PURE__ */ l({
1746
1130
  __name: "BooleanField",
1747
1131
  props: {
1748
1132
  field: {},
@@ -1751,18 +1135,18 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1751
1135
  },
1752
1136
  emits: ["update:modelValue"],
1753
1137
  setup(e, { emit: t }) {
1754
- let n = t, { t: r } = L();
1138
+ let n = t, { t: r } = P();
1755
1139
  return (t, i) => (s(), f("div", {
1756
1140
  class: "tpl:mb-3.5",
1757
1141
  title: e.readOnly ? p(r).customBlocks.dataSource.readOnlyTooltip : void 0
1758
- }, [C("label", { class: D(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", e.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [C("span", $i, [
1759
- A(S(e.field.label) + " ", 1),
1760
- e.readOnly ? (s(), y(p(et), {
1142
+ }, [C("label", { class: D(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", e.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [C("span", Ur, [
1143
+ j(S(e.field.label) + " ", 1),
1144
+ e.readOnly ? (s(), y(p(Ze), {
1761
1145
  key: 0,
1762
1146
  size: 12,
1763
1147
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
1764
1148
  })) : v("", !0),
1765
- e.field.required ? (s(), f("span", ea, " * ")) : v("", !0)
1149
+ e.field.required ? (s(), f("span", Wr, " * ")) : v("", !0)
1766
1150
  ]), C("button", {
1767
1151
  type: "button",
1768
1152
  role: "switch",
@@ -1775,9 +1159,9 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1775
1159
  ]),
1776
1160
  disabled: e.readOnly,
1777
1161
  onClick: i[0] ||= (t) => !e.readOnly && n("update:modelValue", !e.modelValue)
1778
- }, [C("span", { class: D(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow tpl:transition-transform tpl:duration-200", e.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, ta)], 2)], 8, Qi));
1162
+ }, [C("span", { class: D(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow tpl:transition-transform tpl:duration-200", e.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, Gr)], 2)], 8, Hr));
1779
1163
  }
1780
- }), ra = { class: "tpl:mb-3.5" }, ia = {
1164
+ }), qr = { class: "tpl:mb-3.5" }, Jr = {
1781
1165
  key: 1,
1782
1166
  class: "tpl:text-[var(--tpl-danger)]"
1783
1167
  }, $ = /* @__PURE__ */ l({
@@ -1788,17 +1172,17 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1788
1172
  readOnly: { type: Boolean }
1789
1173
  },
1790
1174
  setup(e) {
1791
- return (t, n) => (s(), f("div", ra, [C("label", { class: D(p(V)) }, [
1792
- A(S(e.label) + " ", 1),
1793
- e.readOnly ? (s(), y(p(et), {
1175
+ return (t, n) => (s(), f("div", qr, [C("label", { class: D(p(U)) }, [
1176
+ j(S(e.label) + " ", 1),
1177
+ e.readOnly ? (s(), y(p(Ze), {
1794
1178
  key: 0,
1795
1179
  size: 12,
1796
1180
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
1797
1181
  })) : v("", !0),
1798
- e.required ? (s(), f("span", ia, "*")) : v("", !0)
1182
+ e.required ? (s(), f("span", Jr, "*")) : v("", !0)
1799
1183
  ], 2), o(t.$slots, "default")]));
1800
1184
  }
1801
- }), aa = /* @__PURE__ */ l({
1185
+ }), Yr = /* @__PURE__ */ l({
1802
1186
  __name: "ColorField",
1803
1187
  props: {
1804
1188
  field: {},
@@ -1807,13 +1191,13 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1807
1191
  },
1808
1192
  emits: ["update:modelValue"],
1809
1193
  setup(e, { emit: t }) {
1810
- let n = t, { t: r } = L();
1194
+ let n = t, { t: r } = P();
1811
1195
  return (t, i) => (s(), y($, {
1812
1196
  label: e.field.label,
1813
1197
  required: e.field.required,
1814
1198
  "read-only": e.readOnly
1815
1199
  }, {
1816
- default: a(() => [m(q, {
1200
+ default: a(() => [m(K, {
1817
1201
  "model-value": e.modelValue || p("#000000"),
1818
1202
  placeholder: e.field.placeholder || p("#000000"),
1819
1203
  disabled: e.readOnly,
@@ -1832,11 +1216,11 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1832
1216
  "read-only"
1833
1217
  ]));
1834
1218
  }
1835
- }), oa = [
1219
+ }), Xr = [
1836
1220
  "value",
1837
1221
  "placeholder",
1838
1222
  "title"
1839
- ], sa = ["value", "placeholder"], ca = /* @__PURE__ */ l({
1223
+ ], Zr = ["value", "placeholder"], Qr = /* @__PURE__ */ l({
1840
1224
  __name: "ImageField",
1841
1225
  props: {
1842
1226
  field: {},
@@ -1845,7 +1229,7 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1845
1229
  },
1846
1230
  emits: ["update:modelValue"],
1847
1231
  setup(e, { emit: t }) {
1848
- let n = t, { t: i } = L(), o = r(F, null), c = T(() => !!o);
1232
+ let n = t, { t: i } = P(), o = r(xe, null), c = T(() => !!o);
1849
1233
  async function l() {
1850
1234
  let e = await o?.({ accept: ["images"] });
1851
1235
  e && n("update:modelValue", e.url);
@@ -1858,26 +1242,26 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1858
1242
  default: a(() => [e.readOnly ? (s(), f("input", {
1859
1243
  key: 0,
1860
1244
  type: "url",
1861
- class: D([p(B), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1245
+ class: D([p(H), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1862
1246
  value: e.modelValue,
1863
1247
  placeholder: e.field.placeholder || "https://...",
1864
1248
  disabled: "",
1865
1249
  title: p(i).customBlocks.dataSource.readOnlyTooltip
1866
- }, null, 10, oa)) : (s(), f("input", {
1250
+ }, null, 10, Xr)) : (s(), f("input", {
1867
1251
  key: 1,
1868
1252
  type: "url",
1869
- class: D(p(B)),
1253
+ class: D(p(H)),
1870
1254
  value: e.modelValue,
1871
1255
  placeholder: e.field.placeholder || "https://...",
1872
1256
  onInput: r[0] ||= (e) => n("update:modelValue", e.target.value)
1873
- }, null, 42, sa)), c.value && !e.readOnly ? (s(), f("button", {
1257
+ }, null, 42, Zr)), c.value && !e.readOnly ? (s(), f("button", {
1874
1258
  key: 2,
1875
1259
  class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
1876
1260
  onClick: r[1] ||= (e) => l()
1877
- }, [m(p(Le), {
1261
+ }, [m(p(Ne), {
1878
1262
  size: 14,
1879
1263
  "stroke-width": 1.5
1880
- }), A(" " + S(p(i).image.browseMedia), 1)])) : v("", !0)]),
1264
+ }), j(" " + S(p(i).image.browseMedia), 1)])) : v("", !0)]),
1881
1265
  _: 1
1882
1266
  }, 8, [
1883
1267
  "label",
@@ -1885,7 +1269,7 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1885
1269
  "read-only"
1886
1270
  ]));
1887
1271
  }
1888
- }), la = [
1272
+ }), $r = [
1889
1273
  "value",
1890
1274
  "placeholder",
1891
1275
  "min",
@@ -1893,7 +1277,7 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1893
1277
  "step",
1894
1278
  "disabled",
1895
1279
  "title"
1896
- ], ua = /* @__PURE__ */ l({
1280
+ ], ei = /* @__PURE__ */ l({
1897
1281
  __name: "NumberField",
1898
1282
  props: {
1899
1283
  field: {},
@@ -1902,7 +1286,7 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1902
1286
  },
1903
1287
  emits: ["update:modelValue"],
1904
1288
  setup(e, { emit: t }) {
1905
- let n = t, { t: r } = L();
1289
+ let n = t, { t: r } = P();
1906
1290
  return (t, i) => (s(), y($, {
1907
1291
  label: e.field.label,
1908
1292
  required: e.field.required,
@@ -1910,7 +1294,7 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1910
1294
  }, {
1911
1295
  default: a(() => [C("input", {
1912
1296
  type: "number",
1913
- class: D([p(B), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1297
+ class: D([p(H), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1914
1298
  value: e.modelValue,
1915
1299
  placeholder: e.field.placeholder,
1916
1300
  min: e.field.min,
@@ -1919,7 +1303,7 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1919
1303
  disabled: e.readOnly,
1920
1304
  title: e.readOnly ? p(r).customBlocks.dataSource.readOnlyTooltip : void 0,
1921
1305
  onInput: i[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
1922
- }, null, 42, la)]),
1306
+ }, null, 42, $r)]),
1923
1307
  _: 1
1924
1308
  }, 8, [
1925
1309
  "label",
@@ -1927,10 +1311,10 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1927
1311
  "read-only"
1928
1312
  ]));
1929
1313
  }
1930
- }), da = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, fa = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, pa = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, ma = ["title", "onClick"], ha = {
1314
+ }), ti = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ni = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, ri = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, ii = ["title", "onClick"], ai = {
1931
1315
  key: 1,
1932
1316
  class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1933
- }, ga = /* @__PURE__ */ l({
1317
+ }, oi = /* @__PURE__ */ l({
1934
1318
  __name: "RepeatableField",
1935
1319
  props: {
1936
1320
  field: {},
@@ -1939,7 +1323,7 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1939
1323
  },
1940
1324
  emits: ["update:modelValue"],
1941
1325
  setup(e, { emit: t }) {
1942
- let n = e, r = t, { t: o } = L(), l = T(() => n.modelValue || []), u = T(() => !n.field.maxItems || l.value.length < n.field.maxItems), d = T(() => !n.field.minItems || l.value.length > n.field.minItems);
1326
+ let n = e, r = t, { t: o } = P(), l = T(() => n.modelValue || []), u = T(() => !n.field.maxItems || l.value.length < n.field.maxItems), d = T(() => !n.field.minItems || l.value.length > n.field.minItems);
1943
1327
  function h() {
1944
1328
  if (!u.value || n.readOnly) return;
1945
1329
  let e = {};
@@ -1962,20 +1346,20 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1962
1346
  required: e.field.required,
1963
1347
  "read-only": e.readOnly
1964
1348
  }, {
1965
- default: a(() => [C("div", da, [
1349
+ default: a(() => [C("div", ti, [
1966
1350
  (s(!0), f(_, null, i(l.value, (t, n) => (s(), f("div", {
1967
1351
  key: `${e.field.key}-${n}`,
1968
1352
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
1969
- }, [C("div", fa, [C("span", pa, " #" + S(n + 1), 1), d.value && !e.readOnly ? (s(), f("button", {
1353
+ }, [C("div", ni, [C("span", ri, " #" + S(n + 1), 1), d.value && !e.readOnly ? (s(), f("button", {
1970
1354
  key: 0,
1971
1355
  type: "button",
1972
1356
  class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
1973
1357
  title: p(o).customBlocks.fields.removeItem,
1974
1358
  onClick: (e) => g(n)
1975
- }, [m(p(Ge), {
1359
+ }, [m(p(He), {
1976
1360
  size: 12,
1977
1361
  "stroke-width": 2
1978
- })], 8, ma)) : v("", !0)]), (s(!0), f(_, null, i(e.field.fields, (r) => (s(), y(c(p(Ta)(r.type)), {
1362
+ })], 8, ii)) : v("", !0)]), (s(!0), f(_, null, i(e.field.fields, (r) => (s(), y(c(p(hi)(r.type)), {
1979
1363
  key: r.key,
1980
1364
  field: r,
1981
1365
  "model-value": t[r.key],
@@ -1990,13 +1374,13 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
1990
1374
  u.value && !e.readOnly ? (s(), f("button", {
1991
1375
  key: 0,
1992
1376
  type: "button",
1993
- class: D(p(yt)),
1377
+ class: D(p(_t)),
1994
1378
  onClick: h
1995
- }, [m(p(z), {
1379
+ }, [m(p(V), {
1996
1380
  size: 14,
1997
1381
  "stroke-width": 2
1998
- }), A(" " + S(p(o).customBlocks.fields.addItem), 1)], 2)) : v("", !0),
1999
- !u.value && !e.readOnly ? (s(), f("p", ha, S(p(o).customBlocks.fields.maxItemsReached), 1)) : v("", !0)
1382
+ }), j(" " + S(p(o).customBlocks.fields.addItem), 1)], 2)) : v("", !0),
1383
+ !u.value && !e.readOnly ? (s(), f("p", ai, S(p(o).customBlocks.fields.maxItemsReached), 1)) : v("", !0)
2000
1384
  ])]),
2001
1385
  _: 1
2002
1386
  }, 8, [
@@ -2005,11 +1389,11 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
2005
1389
  "read-only"
2006
1390
  ]));
2007
1391
  }
2008
- }), _a = [
1392
+ }), si = [
2009
1393
  "value",
2010
1394
  "disabled",
2011
1395
  "title"
2012
- ], va = ["value"], ya = /* @__PURE__ */ l({
1396
+ ], ci = ["value"], li = /* @__PURE__ */ l({
2013
1397
  __name: "SelectField",
2014
1398
  props: {
2015
1399
  field: {},
@@ -2018,14 +1402,14 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
2018
1402
  },
2019
1403
  emits: ["update:modelValue"],
2020
1404
  setup(e, { emit: t }) {
2021
- let n = t, { t: r } = L();
1405
+ let n = t, { t: r } = P();
2022
1406
  return (t, o) => (s(), y($, {
2023
1407
  label: e.field.label,
2024
1408
  required: e.field.required,
2025
1409
  "read-only": e.readOnly
2026
1410
  }, {
2027
1411
  default: a(() => [C("select", {
2028
- class: D([p(B), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1412
+ class: D([p(H), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
2029
1413
  value: e.modelValue,
2030
1414
  disabled: e.readOnly,
2031
1415
  title: e.readOnly ? p(r).customBlocks.dataSource.readOnlyTooltip : void 0,
@@ -2033,7 +1417,7 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
2033
1417
  }, [(s(!0), f(_, null, i(e.field.options, (e) => (s(), f("option", {
2034
1418
  key: e.value,
2035
1419
  value: e.value
2036
- }, S(e.label), 9, va))), 128))], 42, _a)]),
1420
+ }, S(e.label), 9, ci))), 128))], 42, si)]),
2037
1421
  _: 1
2038
1422
  }, 8, [
2039
1423
  "label",
@@ -2041,11 +1425,11 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
2041
1425
  "read-only"
2042
1426
  ]));
2043
1427
  }
2044
- }), ba = [
1428
+ }), ui = [
2045
1429
  "value",
2046
1430
  "placeholder",
2047
1431
  "title"
2048
- ], xa = /* @__PURE__ */ l({
1432
+ ], di = /* @__PURE__ */ l({
2049
1433
  __name: "TextField",
2050
1434
  props: {
2051
1435
  field: {},
@@ -2054,7 +1438,7 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
2054
1438
  },
2055
1439
  emits: ["update:modelValue"],
2056
1440
  setup(e, { emit: t }) {
2057
- let n = t, { t: r } = L();
1441
+ let n = t, { t: r } = P();
2058
1442
  return (t, i) => (s(), y($, {
2059
1443
  label: e.field.label,
2060
1444
  required: e.field.required,
@@ -2063,12 +1447,12 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
2063
1447
  default: a(() => [e.readOnly ? (s(), f("input", {
2064
1448
  key: 0,
2065
1449
  type: "text",
2066
- class: D([p(B), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1450
+ class: D([p(H), "tpl:opacity-60 tpl:cursor-not-allowed"]),
2067
1451
  value: e.modelValue,
2068
1452
  placeholder: e.field.placeholder,
2069
1453
  disabled: "",
2070
1454
  title: p(r).customBlocks.dataSource.readOnlyTooltip
2071
- }, null, 10, ba)) : (s(), y(J, {
1455
+ }, null, 10, ui)) : (s(), y(X, {
2072
1456
  key: 1,
2073
1457
  "model-value": e.modelValue,
2074
1458
  placeholder: e.field.placeholder,
@@ -2081,12 +1465,12 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
2081
1465
  "read-only"
2082
1466
  ]));
2083
1467
  }
2084
- }), Sa = [
1468
+ }), fi = [
2085
1469
  "value",
2086
1470
  "placeholder",
2087
1471
  "title"
2088
- ], Ca = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border 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:opacity-60 tpl:cursor-not-allowed", wa = {
2089
- text: xa,
1472
+ ], pi = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border 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:opacity-60 tpl:cursor-not-allowed", mi = {
1473
+ text: di,
2090
1474
  textarea: /* @__PURE__ */ l({
2091
1475
  __name: "TextareaField",
2092
1476
  props: {
@@ -2096,7 +1480,7 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
2096
1480
  },
2097
1481
  emits: ["update:modelValue"],
2098
1482
  setup(e, { emit: t }) {
2099
- let n = t, { t: r } = L();
1483
+ let n = t, { t: r } = P();
2100
1484
  return (t, i) => (s(), y($, {
2101
1485
  label: e.field.label,
2102
1486
  required: e.field.required,
@@ -2109,8 +1493,8 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
2109
1493
  rows: "3",
2110
1494
  disabled: "",
2111
1495
  title: p(r).customBlocks.dataSource.readOnlyTooltip,
2112
- class: D(Ca)
2113
- }, null, 8, Sa)) : (s(), y(Wn, {
1496
+ class: D(pi)
1497
+ }, null, 8, fi)) : (s(), y(nn, {
2114
1498
  key: 1,
2115
1499
  "model-value": e.modelValue,
2116
1500
  placeholder: e.field.placeholder,
@@ -2124,42 +1508,42 @@ var An = ["aria-label", "onKeydown"], jn = ["data-tooltip"], Mn = ["data-tooltip
2124
1508
  ]));
2125
1509
  }
2126
1510
  }),
2127
- image: ca,
2128
- color: aa,
2129
- number: ua,
2130
- select: ya,
2131
- boolean: na,
2132
- repeatable: ga
1511
+ image: Qr,
1512
+ color: Yr,
1513
+ number: ei,
1514
+ select: li,
1515
+ boolean: Kr,
1516
+ repeatable: oi
2133
1517
  };
2134
- function Ta(e) {
2135
- return wa[e] ?? xa;
1518
+ function hi(e) {
1519
+ return mi[e] ?? di;
2136
1520
  }
2137
1521
  //#endregion
2138
1522
  //#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
2139
- var Ea = {
1523
+ var gi = {
2140
1524
  key: 0,
2141
1525
  class: "tpl:p-4"
2142
- }, Da = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oa = { key: 1 }, ka = {
1526
+ }, _i = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, vi = { key: 1 }, yi = {
2143
1527
  key: 0,
2144
1528
  class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
2145
- }, Aa = {
1529
+ }, bi = {
2146
1530
  key: 1,
2147
1531
  class: "tpl:mb-4"
2148
- }, ja = {
1532
+ }, xi = {
2149
1533
  key: 1,
2150
1534
  class: "tpl:flex tpl:h-[32px] tpl:items-center"
2151
- }, Ma = {
1535
+ }, Si = {
2152
1536
  key: 0,
2153
1537
  class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
2154
- }, Na = {
1538
+ }, Ci = {
2155
1539
  key: 2,
2156
1540
  class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
2157
- }, Pa = /* @__PURE__ */ l({
1541
+ }, wi = /* @__PURE__ */ l({
2158
1542
  __name: "CustomBlockToolbar",
2159
1543
  props: { block: {} },
2160
1544
  emits: ["updateFieldValues", "updateDataSourceFetched"],
2161
1545
  setup(e, { emit: t }) {
2162
- let n = e, a = t, { t: o } = L(), l = r(N, []), u = T(() => l.find((e) => e.type === n.block.customType)), { isFetching: d, fetchError: h, fetch: g, hasDataSource: b, needsFetch: x } = Ae({
1546
+ let n = e, a = t, { t: o } = P(), l = r(Je, []), u = T(() => l.find((e) => e.type === n.block.customType)), { isFetching: d, fetchError: h, fetch: g, hasDataSource: b, needsFetch: x } = Ee({
2163
1547
  definition: u,
2164
1548
  block: T(() => n.block),
2165
1549
  onUpdate: (e, t) => {
@@ -2175,23 +1559,23 @@ var Ea = {
2175
1559
  [e]: t
2176
1560
  });
2177
1561
  }
2178
- return (t, n) => u.value ? (s(), f("div", Oa, [
2179
- u.value.description ? (s(), f("p", ka, S(u.value.description), 1)) : v("", !0),
2180
- p(b) ? (s(), f("div", Aa, [p(x) && !p(d) ? (s(), f("button", {
1562
+ return (t, n) => u.value ? (s(), f("div", vi, [
1563
+ u.value.description ? (s(), f("p", yi, S(u.value.description), 1)) : v("", !0),
1564
+ p(b) ? (s(), f("div", bi, [p(x) && !p(d) ? (s(), f("button", {
2181
1565
  key: 0,
2182
1566
  type: "button",
2183
1567
  class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded-md tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-bg)] tpl:transition-all tpl:duration-150 tpl:bg-[var(--tpl-primary)]",
2184
1568
  onClick: n[0] ||= (...e) => p(g) && p(g)(...e)
2185
- }, S(u.value?.dataSource?.label || p(o).customBlocks.dataSource.fetchButton), 1)) : (s(), f("div", ja, [p(d) ? (s(), f("div", Ma, S(p(o).customBlocks.dataSource.fetching), 1)) : (s(), f("button", {
1569
+ }, S(u.value?.dataSource?.label || p(o).customBlocks.dataSource.fetchButton), 1)) : (s(), f("div", xi, [p(d) ? (s(), f("div", Si, S(p(o).customBlocks.dataSource.fetching), 1)) : (s(), f("button", {
2186
1570
  key: 1,
2187
1571
  type: "button",
2188
1572
  class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]",
2189
1573
  onClick: n[1] ||= (...e) => p(g) && p(g)(...e)
2190
- }, [m(p(Ve), { size: 12 }), A(" " + S(p(o).customBlocks.dataSource.changeButton), 1)]))])), p(h) ? (s(), f("p", Na, [m(p(ve), {
1574
+ }, [m(p(Re), { size: 12 }), j(" " + S(p(o).customBlocks.dataSource.changeButton), 1)]))])), p(h) ? (s(), f("p", Ci, [m(p(he), {
2191
1575
  size: 14,
2192
1576
  class: "tpl:shrink-0"
2193
- }), A(" " + S(p(o).customBlocks.dataSource.fetchError), 1)])) : v("", !0)])) : v("", !0),
2194
- (s(!0), f(_, null, i(u.value.fields, (t) => (s(), y(c(p(Ta)(t.type)), {
1577
+ }), j(" " + S(p(o).customBlocks.dataSource.fetchError), 1)])) : v("", !0)])) : v("", !0),
1578
+ (s(!0), f(_, null, i(u.value.fields, (t) => (s(), y(c(p(hi)(t.type)), {
2195
1579
  key: t.key,
2196
1580
  field: t,
2197
1581
  "model-value": e.block.fieldValues[t.key],
@@ -2203,19 +1587,19 @@ var Ea = {
2203
1587
  "read-only",
2204
1588
  "onUpdate:modelValue"
2205
1589
  ]))), 128))
2206
- ])) : (s(), f("div", Ea, [C("p", Da, S(p(o).customBlocks.toolbar.noDefinition), 1)]));
1590
+ ])) : (s(), f("div", gi, [C("p", _i, S(p(o).customBlocks.toolbar.noDefinition), 1)]));
2207
1591
  }
2208
- }), Fa = { class: "tpl:mb-3.5" }, Ia = { class: "tpl:mb-3.5" }, La = { class: "tpl:mb-3.5" }, Ra = { class: "tpl:flex tpl:items-stretch" }, za = ["value"], Ba = /* @__PURE__ */ l({
1592
+ }), Ti = { class: "tpl:mb-3.5" }, Ei = { class: "tpl:mb-3.5" }, Di = { class: "tpl:mb-3.5" }, Oi = { class: "tpl:flex tpl:items-stretch" }, ki = ["value"], Ai = /* @__PURE__ */ l({
2209
1593
  __name: "DividerToolbar",
2210
1594
  props: { block: {} },
2211
1595
  emits: ["update"],
2212
1596
  setup(e, { emit: t }) {
2213
- let n = t, { t: r } = L();
1597
+ let n = t, { t: r } = P();
2214
1598
  function i(e, t) {
2215
1599
  n("update", { [e]: t });
2216
1600
  }
2217
1601
  return (t, n) => (s(), f(_, null, [
2218
- C("div", Fa, [C("label", { class: D(p(V)) }, S(p(r).divider.style), 3), m(Z, {
1602
+ C("div", Ti, [C("label", { class: D(p(U)) }, S(p(r).divider.style), 3), m(J, {
2219
1603
  options: [
2220
1604
  {
2221
1605
  value: "solid",
@@ -2233,53 +1617,53 @@ var Ea = {
2233
1617
  "model-value": e.block.lineStyle,
2234
1618
  "onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
2235
1619
  }, null, 8, ["options", "model-value"])]),
2236
- C("div", Ia, [C("label", { class: D(p(V)) }, S(p(r).divider.color), 3), m(q, {
1620
+ C("div", Ei, [C("label", { class: D(p(U)) }, S(p(r).divider.color), 3), m(K, {
2237
1621
  "model-value": e.block.color,
2238
1622
  "onUpdate:modelValue": n[1] ||= (e) => i("color", e)
2239
1623
  }, null, 8, ["model-value"])]),
2240
- C("div", La, [C("label", { class: D(p(V)) }, S(p(r).divider.thickness), 3), C("div", Ra, [C("input", {
1624
+ C("div", Di, [C("label", { class: D(p(U)) }, S(p(r).divider.thickness), 3), C("div", Oi, [C("input", {
2241
1625
  type: "number",
2242
- class: D(p(U)),
1626
+ class: D(p(G)),
2243
1627
  value: e.block.thickness,
2244
1628
  min: "1",
2245
1629
  max: "10",
2246
1630
  onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
2247
- }, null, 42, za), C("span", { class: D(p(H)) }, "px", 2)])])
1631
+ }, null, 42, ki), C("span", { class: D(p(W)) }, "px", 2)])])
2248
1632
  ], 64));
2249
1633
  }
2250
- }), Va = { class: "tpl:mb-3.5" }, Ha = ["value"], Ua = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Wa = /* @__PURE__ */ l({
1634
+ }), ji = { class: "tpl:mb-3.5" }, Mi = ["value"], Ni = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Pi = /* @__PURE__ */ l({
2251
1635
  __name: "HtmlToolbar",
2252
1636
  props: { block: {} },
2253
1637
  emits: ["update"],
2254
1638
  setup(e, { emit: t }) {
2255
- let n = t, { t: r } = L();
2256
- return (t, i) => (s(), f("div", Va, [
2257
- C("label", { class: D(p(V)) }, S(p(r).html.content), 3),
1639
+ let n = t, { t: r } = P();
1640
+ return (t, i) => (s(), f("div", ji, [
1641
+ C("label", { class: D(p(U)) }, S(p(r).html.content), 3),
2258
1642
  C("textarea", {
2259
1643
  value: e.block.content,
2260
1644
  placeholder: "<div>...</div>",
2261
1645
  rows: "10",
2262
- class: D(p(bt)),
1646
+ class: D(p(vt)),
2263
1647
  onInput: i[0] ||= (e) => n("update", { content: e.target.value })
2264
- }, null, 42, Ha),
2265
- C("p", Ua, [m(p(Ue), {
1648
+ }, null, 42, Mi),
1649
+ C("p", Ni, [m(p(Be), {
2266
1650
  size: 12,
2267
1651
  class: "tpl:mt-0.5 tpl:shrink-0"
2268
- }), A(" " + S(p(r).html.sanitizationHint), 1)])
1652
+ }), j(" " + S(p(r).html.sanitizationHint), 1)])
2269
1653
  ]));
2270
1654
  }
2271
- }), Ga = { class: "tpl:mb-3.5" }, Ka = {
1655
+ }), Fi = { class: "tpl:mb-3.5" }, Ii = {
2272
1656
  key: 0,
2273
1657
  class: "tpl:mb-3.5"
2274
- }, qa = ["value", "placeholder"], Ja = { class: "tpl:mb-3.5" }, Ya = { class: "tpl:mb-3.5" }, Xa = ["value"], Za = { value: "full" }, Qa = { class: "tpl:mb-3.5" }, $a = { class: "tpl:mb-3.5" }, eo = {
1658
+ }, Li = ["value", "placeholder"], Ri = { class: "tpl:mb-3.5" }, zi = { class: "tpl:mb-3.5" }, Bi = ["value"], Vi = { value: "full" }, Hi = { class: "tpl:mb-3.5" }, Ui = { class: "tpl:mb-3.5" }, Wi = {
2275
1659
  key: 0,
2276
1660
  class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
2277
- }, to = ["checked"], no = /* @__PURE__ */ l({
1661
+ }, Gi = ["checked"], Ki = /* @__PURE__ */ l({
2278
1662
  __name: "ImageToolbar",
2279
1663
  props: { block: {} },
2280
1664
  emits: ["update"],
2281
1665
  setup(e, { emit: n }) {
2282
- let i = n, { t: a } = L(), o = r(F, null), c = r(we, Ke.liquid), l = T(() => !!o), u = t(!1), d = t(!1), { start: h } = Re(() => {
1666
+ let i = n, { t: a } = P(), o = r(xe, null), c = r(_e, Ue.liquid), l = T(() => !!o), u = t(!1), d = t(!1), { start: h } = Pe(() => {
2283
1667
  u.value = !1;
2284
1668
  }, 1e3, { immediate: !1 });
2285
1669
  function g(e, t) {
@@ -2290,9 +1674,9 @@ var Ea = {
2290
1674
  e && (g("src", e.url), e.alt && (g("alt", e.alt), d.value = !0), u.value = !0, h());
2291
1675
  }
2292
1676
  return (t, n) => (s(), f(_, null, [
2293
- C("div", Ga, [
2294
- C("label", { class: D(p(V)) }, S(p(a).image.imageUrl), 3),
2295
- m(J, {
1677
+ C("div", Fi, [
1678
+ C("label", { class: D(p(U)) }, S(p(a).image.imageUrl), 3),
1679
+ m(X, {
2296
1680
  "model-value": e.block.src,
2297
1681
  type: "url",
2298
1682
  placeholder: p(a).image.imageUrlPlaceholder,
@@ -2312,19 +1696,19 @@ var Ea = {
2312
1696
  "background-color": "var(--tpl-bg)"
2313
1697
  },
2314
1698
  onClick: y
2315
- }, [m(p(Le), {
1699
+ }, [m(p(Ne), {
2316
1700
  size: 14,
2317
1701
  "stroke-width": 1.5
2318
- }), A(" " + S(p(a).image.browseMedia), 1)])) : v("", !0)
1702
+ }), j(" " + S(p(a).image.browseMedia), 1)])) : v("", !0)
2319
1703
  ]),
2320
- p(Ne)(e.block.src, p(c)) ? (s(), f("div", Ka, [C("label", { class: D(p(V)) }, [A(S(p(a).image.placeholderUrl) + " ", 1), n[7] ||= C("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, S("(optional)"), -1)], 2), C("input", {
1704
+ p(ke)(e.block.src, p(c)) ? (s(), f("div", Ii, [C("label", { class: D(p(U)) }, [j(S(p(a).image.placeholderUrl) + " ", 1), n[7] ||= C("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, S("(optional)"), -1)], 2), C("input", {
2321
1705
  type: "url",
2322
- class: D(p(B)),
1706
+ class: D(p(H)),
2323
1707
  value: e.block.placeholderUrl || "",
2324
1708
  placeholder: p(a).image.placeholderUrlPlaceholder,
2325
1709
  onInput: n[1] ||= (e) => g("placeholderUrl", e.target.value)
2326
- }, null, 42, qa)])) : v("", !0),
2327
- C("div", Ja, [C("label", { class: D(p(V)) }, S(p(a).image.altText), 3), m(J, {
1710
+ }, null, 42, Li)])) : v("", !0),
1711
+ C("div", Ri, [C("label", { class: D(p(U)) }, S(p(a).image.altText), 3), m(X, {
2328
1712
  "model-value": e.block.alt,
2329
1713
  type: "text",
2330
1714
  placeholder: p(a).image.altTextPlaceholder,
@@ -2335,17 +1719,17 @@ var Ea = {
2335
1719
  "placeholder",
2336
1720
  "pulse"
2337
1721
  ])]),
2338
- C("div", Ya, [C("label", { class: D(p(V)) }, S(p(a).image.width), 3), C("select", {
2339
- class: D(p(B)),
1722
+ C("div", zi, [C("label", { class: D(p(U)) }, S(p(a).image.width), 3), C("select", {
1723
+ class: D(p(H)),
2340
1724
  value: e.block.width,
2341
1725
  onChange: n[3] ||= (e) => g("width", e.target.value === "full" ? "full" : Number(e.target.value))
2342
1726
  }, [
2343
- C("option", Za, S(p(a).image.fullWidth), 1),
1727
+ C("option", Vi, S(p(a).image.fullWidth), 1),
2344
1728
  n[8] ||= C("option", { value: "300" }, "300px", -1),
2345
1729
  n[9] ||= C("option", { value: "400" }, "400px", -1),
2346
1730
  n[10] ||= C("option", { value: "500" }, "500px", -1)
2347
- ], 42, Xa)]),
2348
- C("div", Qa, [C("label", { class: D(p(V)) }, S(p(a).title.align), 3), m(Z, {
1731
+ ], 42, Bi)]),
1732
+ C("div", Hi, [C("label", { class: D(p(U)) }, S(p(a).title.align), 3), m(J, {
2349
1733
  options: [
2350
1734
  {
2351
1735
  value: "left",
@@ -2363,28 +1747,28 @@ var Ea = {
2363
1747
  "model-value": e.block.align,
2364
1748
  "onUpdate:modelValue": n[4] ||= (e) => g("align", e)
2365
1749
  }, null, 8, ["options", "model-value"])]),
2366
- C("div", $a, [
2367
- C("label", { class: D(p(V)) }, S(p(a).image.linkUrl), 3),
2368
- m(J, {
1750
+ C("div", Ui, [
1751
+ C("label", { class: D(p(U)) }, S(p(a).image.linkUrl), 3),
1752
+ m(X, {
2369
1753
  "model-value": e.block.linkUrl || "",
2370
1754
  type: "url",
2371
1755
  placeholder: p(a).image.imageUrlPlaceholder,
2372
1756
  "onUpdate:modelValue": n[5] ||= (e) => g("linkUrl", e)
2373
1757
  }, null, 8, ["model-value", "placeholder"]),
2374
- e.block.linkUrl ? (s(), f("label", eo, [C("input", {
1758
+ e.block.linkUrl ? (s(), f("label", Wi, [C("input", {
2375
1759
  type: "checkbox",
2376
1760
  class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
2377
1761
  checked: e.block.linkOpenInNewTab ?? !1,
2378
1762
  onChange: n[6] ||= (e) => g("linkOpenInNewTab", e.target.checked)
2379
- }, null, 40, to), A(" " + S(p(a).image.openInNewTab), 1)])) : v("", !0)
1763
+ }, null, 40, Gi), j(" " + S(p(a).image.openInNewTab), 1)])) : v("", !0)
2380
1764
  ])
2381
1765
  ], 64));
2382
1766
  }
2383
- }), ro = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, io = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ao = [
1767
+ }), qi = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ji = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Yi = [
2384
1768
  "value",
2385
1769
  "placeholder",
2386
1770
  "onInput"
2387
- ], oo = ["title", "onClick"], so = { class: "tpl:flex tpl:items-center tpl:gap-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, co = ["checked", "onChange"], lo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, uo = ["value"], fo = { value: "" }, po = ["value"], mo = ["value"], ho = /* @__PURE__ */ l({
1771
+ ], Xi = ["title", "onClick"], Zi = { class: "tpl:flex tpl:items-center tpl:gap-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Qi = ["checked", "onChange"], $i = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ea = ["value"], ta = { value: "" }, na = ["value"], ra = ["value"], ia = /* @__PURE__ */ l({
2388
1772
  __name: "MenuToolbar",
2389
1773
  props: {
2390
1774
  block: {},
@@ -2392,7 +1776,7 @@ var Ea = {
2392
1776
  },
2393
1777
  emits: ["update"],
2394
1778
  setup(e, { emit: t }) {
2395
- let n = e, r = t, { t: o } = L(), c = T(() => [
1779
+ let n = e, r = t, { t: o } = P(), c = T(() => [
2396
1780
  {
2397
1781
  key: "openInNewTab",
2398
1782
  label: o.menu.openInNewTab
@@ -2409,17 +1793,17 @@ var Ea = {
2409
1793
  {
2410
1794
  value: "left",
2411
1795
  label: o.title.alignLeft,
2412
- icon: ot
1796
+ icon: rt
2413
1797
  },
2414
1798
  {
2415
1799
  value: "center",
2416
1800
  label: o.title.alignCenter,
2417
- icon: pt
1801
+ icon: ut
2418
1802
  },
2419
1803
  {
2420
1804
  value: "right",
2421
1805
  label: o.title.alignRight,
2422
- icon: dt
1806
+ icon: ct
2423
1807
  }
2424
1808
  ]);
2425
1809
  function u(e, t) {
@@ -2427,7 +1811,7 @@ var Ea = {
2427
1811
  }
2428
1812
  function d() {
2429
1813
  let e = {
2430
- id: I(),
1814
+ id: z(),
2431
1815
  text: "",
2432
1816
  url: "",
2433
1817
  openInNewTab: !1,
@@ -2446,26 +1830,26 @@ var Ea = {
2446
1830
  r("update", { items: n.block.items.filter((t) => t.id !== e) });
2447
1831
  }
2448
1832
  return (t, n) => (s(), f(_, null, [
2449
- m(Q, { label: p(o).menu.items }, {
2450
- default: a(() => [C("div", ro, [(s(!0), f(_, null, i(e.block.items, (t) => (s(), f("div", {
1833
+ m(q, { label: p(o).menu.items }, {
1834
+ default: a(() => [C("div", qi, [(s(!0), f(_, null, i(e.block.items, (t) => (s(), f("div", {
2451
1835
  key: t.id,
2452
1836
  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"
2453
1837
  }, [
2454
- C("div", io, [C("input", {
1838
+ C("div", Ji, [C("input", {
2455
1839
  type: "text",
2456
- class: D([p(B), "tpl:flex-1"]),
1840
+ class: D([p(H), "tpl:flex-1"]),
2457
1841
  value: t.text,
2458
1842
  placeholder: p(o).menu.text,
2459
1843
  onInput: (e) => h(t.id, "text", e.target.value)
2460
- }, null, 42, ao), C("button", {
2461
- class: D(p(vt)),
1844
+ }, null, 42, Yi), C("button", {
1845
+ class: D(p(gt)),
2462
1846
  title: p(o).menu.removeItem,
2463
1847
  onClick: (e) => g(t.id)
2464
- }, [m(p(qe), {
1848
+ }, [m(p(We), {
2465
1849
  size: 14,
2466
1850
  "stroke-width": 2
2467
- })], 10, oo)]),
2468
- m(J, {
1851
+ })], 10, Xi)]),
1852
+ m(X, {
2469
1853
  "model-value": t.url,
2470
1854
  type: "url",
2471
1855
  placeholder: p(o).menu.urlPlaceholder,
@@ -2475,7 +1859,7 @@ var Ea = {
2475
1859
  "placeholder",
2476
1860
  "onUpdate:modelValue"
2477
1861
  ]),
2478
- C("div", so, [(s(!0), f(_, null, i(c.value, (e) => (s(), f("label", {
1862
+ C("div", Zi, [(s(!0), f(_, null, i(c.value, (e) => (s(), f("label", {
2479
1863
  key: e.key,
2480
1864
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1"
2481
1865
  }, [C("input", {
@@ -2483,34 +1867,34 @@ var Ea = {
2483
1867
  checked: t[e.key],
2484
1868
  class: "tpl:accent-[var(--tpl-primary)]",
2485
1869
  onChange: (n) => h(t.id, e.key, n.target.checked)
2486
- }, null, 40, co), A(" " + S(e.label), 1)]))), 128))]),
2487
- C("div", lo, [C("label", { class: D([p(V), "tpl:!mb-0"]) }, S(p(o).menu.color), 3), m(q, {
1870
+ }, null, 40, Qi), j(" " + S(e.label), 1)]))), 128))]),
1871
+ C("div", $i, [C("label", { class: D([p(U), "tpl:!mb-0"]) }, S(p(o).menu.color), 3), m(K, {
2488
1872
  "swatch-only": "",
2489
1873
  "model-value": t.color || e.block.linkColor || e.block.color,
2490
1874
  "onUpdate:modelValue": (e) => h(t.id, "color", e)
2491
1875
  }, null, 8, ["model-value", "onUpdate:modelValue"])])
2492
1876
  ]))), 128)), C("button", {
2493
- class: D(p(yt)),
1877
+ class: D(p(_t)),
2494
1878
  onClick: d
2495
- }, [m(p(z), {
1879
+ }, [m(p(V), {
2496
1880
  size: 14,
2497
1881
  "stroke-width": 2
2498
- }), A(" " + S(p(o).menu.addItem), 1)], 2)])]),
1882
+ }), j(" " + S(p(o).menu.addItem), 1)], 2)])]),
2499
1883
  _: 1
2500
1884
  }, 8, ["label"]),
2501
- m(Q, { label: p(o).menu.fontFamily }, {
1885
+ m(q, { label: p(o).menu.fontFamily }, {
2502
1886
  default: a(() => [C("select", {
2503
- class: D(p(B)),
1887
+ class: D(p(H)),
2504
1888
  value: e.block.fontFamily || "",
2505
1889
  onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
2506
- }, [C("option", fo, S(p(o).title.inheritFont), 1), (s(!0), f(_, null, i(e.fontFamilies, (e) => (s(), f("option", {
1890
+ }, [C("option", ta, S(p(o).title.inheritFont), 1), (s(!0), f(_, null, i(e.fontFamilies, (e) => (s(), f("option", {
2507
1891
  key: e.value,
2508
1892
  value: e.value
2509
- }, S(e.label), 9, po))), 128))], 42, uo)]),
1893
+ }, S(e.label), 9, na))), 128))], 42, ea)]),
2510
1894
  _: 1
2511
1895
  }, 8, ["label"]),
2512
- m(Q, { label: p(o).menu.fontSize }, {
2513
- default: a(() => [m(Li, {
1896
+ m(q, { label: p(o).menu.fontSize }, {
1897
+ default: a(() => [m(xt, {
2514
1898
  "model-value": e.block.fontSize,
2515
1899
  min: 8,
2516
1900
  max: 48,
@@ -2519,46 +1903,46 @@ var Ea = {
2519
1903
  }, null, 8, ["model-value"])]),
2520
1904
  _: 1
2521
1905
  }, 8, ["label"]),
2522
- m(Q, { label: p(o).menu.color }, {
2523
- default: a(() => [m(q, {
1906
+ m(q, { label: p(o).menu.color }, {
1907
+ default: a(() => [m(K, {
2524
1908
  "model-value": e.block.color,
2525
1909
  "onUpdate:modelValue": n[2] ||= (e) => u("color", e)
2526
1910
  }, null, 8, ["model-value"])]),
2527
1911
  _: 1
2528
1912
  }, 8, ["label"]),
2529
- m(Q, { label: p(o).menu.linkColor }, {
2530
- default: a(() => [m(q, {
1913
+ m(q, { label: p(o).menu.linkColor }, {
1914
+ default: a(() => [m(K, {
2531
1915
  "model-value": e.block.linkColor || e.block.color,
2532
1916
  "onUpdate:modelValue": n[3] ||= (e) => u("linkColor", e || void 0)
2533
1917
  }, null, 8, ["model-value"])]),
2534
1918
  _: 1
2535
1919
  }, 8, ["label"]),
2536
- m(Q, { label: p(o).menu.textAlign }, {
2537
- default: a(() => [m(Z, {
1920
+ m(q, { label: p(o).menu.textAlign }, {
1921
+ default: a(() => [m(J, {
2538
1922
  options: l.value,
2539
1923
  "model-value": e.block.textAlign,
2540
1924
  "onUpdate:modelValue": n[4] ||= (e) => u("textAlign", e)
2541
1925
  }, null, 8, ["options", "model-value"])]),
2542
1926
  _: 1
2543
1927
  }, 8, ["label"]),
2544
- m(Q, { label: p(o).menu.separator }, {
1928
+ m(q, { label: p(o).menu.separator }, {
2545
1929
  default: a(() => [C("input", {
2546
1930
  type: "text",
2547
- class: D(p(B)),
1931
+ class: D(p(H)),
2548
1932
  value: e.block.separator,
2549
1933
  onInput: n[5] ||= (e) => u("separator", e.target.value)
2550
- }, null, 42, mo)]),
1934
+ }, null, 42, ra)]),
2551
1935
  _: 1
2552
1936
  }, 8, ["label"]),
2553
- m(Q, { label: p(o).menu.separatorColor }, {
2554
- default: a(() => [m(q, {
1937
+ m(q, { label: p(o).menu.separatorColor }, {
1938
+ default: a(() => [m(K, {
2555
1939
  "model-value": e.block.separatorColor,
2556
1940
  "onUpdate:modelValue": n[6] ||= (e) => u("separatorColor", e)
2557
1941
  }, null, 8, ["model-value"])]),
2558
1942
  _: 1
2559
1943
  }, 8, ["label"]),
2560
- m(Q, { label: p(o).menu.spacing }, {
2561
- default: a(() => [m(Li, {
1944
+ m(q, { label: p(o).menu.spacing }, {
1945
+ default: a(() => [m(xt, {
2562
1946
  "model-value": e.block.spacing,
2563
1947
  min: 0,
2564
1948
  max: 50,
@@ -2569,12 +1953,12 @@ var Ea = {
2569
1953
  }, 8, ["label"])
2570
1954
  ], 64));
2571
1955
  }
2572
- }), go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = /* @__PURE__ */ l({
1956
+ }), aa = { class: "tpl:mb-3.5" }, oa = ["value"], sa = ["value"], ca = /* @__PURE__ */ l({
2573
1957
  __name: "SectionToolbar",
2574
1958
  props: { block: {} },
2575
1959
  emits: ["update"],
2576
1960
  setup(e, { emit: t }) {
2577
- let n = t, { t: r } = L(), a = T(() => [
1961
+ let n = t, { t: r } = P(), a = T(() => [
2578
1962
  {
2579
1963
  value: "1",
2580
1964
  label: r.section.column1
@@ -2596,27 +1980,27 @@ var Ea = {
2596
1980
  label: r.section.ratio21
2597
1981
  }
2598
1982
  ]);
2599
- return (t, o) => (s(), f("div", go, [C("label", { class: D(p(V)) }, S(p(r).section.columns), 3), C("select", {
2600
- class: D(p(B)),
1983
+ return (t, o) => (s(), f("div", aa, [C("label", { class: D(p(U)) }, S(p(r).section.columns), 3), C("select", {
1984
+ class: D(p(H)),
2601
1985
  value: e.block.columns,
2602
1986
  onChange: o[0] ||= (e) => n("update", { columns: e.target.value })
2603
1987
  }, [(s(!0), f(_, null, i(a.value, (e) => (s(), f("option", {
2604
1988
  key: e.value,
2605
1989
  value: e.value
2606
- }, S(e.label), 9, vo))), 128))], 42, _o)]));
1990
+ }, S(e.label), 9, sa))), 128))], 42, oa)]));
2607
1991
  }
2608
- }), bo = { class: "tpl:mb-3.5" }, xo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, So = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Co = ["value", "onChange"], wo = ["value"], To = ["title", "onClick"], Eo = { class: "tpl:mb-3.5" }, Do = { class: "tpl:mb-3.5" }, Oo = { class: "tpl:mb-3.5" }, ko = { class: "tpl:flex tpl:items-stretch" }, Ao = ["value"], jo = { class: "tpl:mb-3.5" }, Mo = /* @__PURE__ */ l({
1992
+ }), la = { class: "tpl:mb-3.5" }, ua = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, da = { class: "tpl:flex tpl:items-center tpl:gap-2" }, fa = ["value", "onChange"], pa = ["value"], ma = ["title", "onClick"], ha = { class: "tpl:mb-3.5" }, ga = { class: "tpl:mb-3.5" }, _a = { class: "tpl:mb-3.5" }, va = { class: "tpl:flex tpl:items-stretch" }, ya = ["value"], ba = { class: "tpl:mb-3.5" }, xa = /* @__PURE__ */ l({
2609
1993
  __name: "SocialToolbar",
2610
1994
  props: { block: {} },
2611
1995
  emits: ["update"],
2612
1996
  setup(e, { emit: t }) {
2613
- let n = e, r = t, { t: a } = L();
1997
+ let n = e, r = t, { t: a } = P();
2614
1998
  function o(e, t) {
2615
1999
  r("update", { [e]: t });
2616
2000
  }
2617
2001
  function c() {
2618
2002
  let e = {
2619
- id: I(),
2003
+ id: z(),
2620
2004
  platform: "facebook",
2621
2005
  url: ""
2622
2006
  };
@@ -2632,24 +2016,24 @@ var Ea = {
2632
2016
  r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
2633
2017
  }
2634
2018
  return (t, n) => (s(), f(_, null, [
2635
- C("div", bo, [C("label", { class: D(p(V)) }, S(p(a).social.icons), 3), C("div", xo, [(s(!0), f(_, null, i(e.block.icons, (e) => (s(), f("div", {
2019
+ C("div", la, [C("label", { class: D(p(U)) }, S(p(a).social.icons), 3), C("div", ua, [(s(!0), f(_, null, i(e.block.icons, (e) => (s(), f("div", {
2636
2020
  key: e.id,
2637
2021
  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"
2638
- }, [C("div", So, [C("select", {
2639
- class: D([p(B), "tpl:flex-1"]),
2022
+ }, [C("div", da, [C("select", {
2023
+ class: D([p(H), "tpl:flex-1"]),
2640
2024
  value: e.platform,
2641
2025
  onChange: (t) => l(e.id, "platform", t.target.value)
2642
- }, [(s(!0), f(_, null, i(p(P), (e) => (s(), f("option", {
2026
+ }, [(s(!0), f(_, null, i(p(I), (e) => (s(), f("option", {
2643
2027
  key: e,
2644
2028
  value: e
2645
- }, S(p(ge)[e].name), 9, wo))), 128))], 42, Co), C("button", {
2646
- class: D(p(vt)),
2029
+ }, S(p(de)[e].name), 9, pa))), 128))], 42, fa), C("button", {
2030
+ class: D(p(gt)),
2647
2031
  title: p(a).social.removeIcon,
2648
2032
  onClick: (t) => u(e.id)
2649
- }, [m(p(qe), {
2033
+ }, [m(p(We), {
2650
2034
  size: 14,
2651
2035
  "stroke-width": 2
2652
- })], 10, To)]), m(J, {
2036
+ })], 10, ma)]), m(X, {
2653
2037
  "model-value": e.url,
2654
2038
  type: "url",
2655
2039
  placeholder: p(a).social.urlPlaceholder,
@@ -2659,13 +2043,13 @@ var Ea = {
2659
2043
  "placeholder",
2660
2044
  "onUpdate:modelValue"
2661
2045
  ])]))), 128)), C("button", {
2662
- class: D(p(yt)),
2046
+ class: D(p(_t)),
2663
2047
  onClick: c
2664
- }, [m(p(z), {
2048
+ }, [m(p(V), {
2665
2049
  size: 14,
2666
2050
  "stroke-width": 2
2667
- }), A(" " + S(p(a).social.addIcon), 1)], 2)])]),
2668
- C("div", Eo, [C("label", { class: D(p(V)) }, S(p(a).social.style), 3), m(Z, {
2051
+ }), j(" " + S(p(a).social.addIcon), 1)], 2)])]),
2052
+ C("div", ha, [C("label", { class: D(p(U)) }, S(p(a).social.style), 3), m(J, {
2669
2053
  options: [
2670
2054
  {
2671
2055
  value: "solid",
@@ -2691,7 +2075,7 @@ var Ea = {
2691
2075
  "model-value": e.block.iconStyle,
2692
2076
  "onUpdate:modelValue": n[0] ||= (e) => o("iconStyle", e)
2693
2077
  }, null, 8, ["options", "model-value"])]),
2694
- C("div", Do, [C("label", { class: D(p(V)) }, S(p(a).social.size), 3), m(Z, {
2078
+ C("div", ga, [C("label", { class: D(p(U)) }, S(p(a).social.size), 3), m(J, {
2695
2079
  options: [
2696
2080
  {
2697
2081
  value: "small",
@@ -2709,30 +2093,30 @@ var Ea = {
2709
2093
  "model-value": e.block.iconSize,
2710
2094
  "onUpdate:modelValue": n[1] ||= (e) => o("iconSize", e)
2711
2095
  }, null, 8, ["options", "model-value"])]),
2712
- C("div", Oo, [C("label", { class: D(p(V)) }, S(p(a).social.spacing), 3), C("div", ko, [C("input", {
2096
+ C("div", _a, [C("label", { class: D(p(U)) }, S(p(a).social.spacing), 3), C("div", va, [C("input", {
2713
2097
  type: "number",
2714
- class: D(p(U)),
2098
+ class: D(p(G)),
2715
2099
  value: e.block.spacing,
2716
2100
  min: "0",
2717
2101
  max: "50",
2718
2102
  onInput: n[2] ||= (e) => o("spacing", Number(e.target.value))
2719
- }, null, 42, Ao), C("span", { class: D(p(H)) }, "px", 2)])]),
2720
- C("div", jo, [C("label", { class: D(p(V)) }, S(p(a).social.align), 3), m(Z, {
2103
+ }, null, 42, ya), C("span", { class: D(p(W)) }, "px", 2)])]),
2104
+ C("div", ba, [C("label", { class: D(p(U)) }, S(p(a).social.align), 3), m(J, {
2721
2105
  options: [
2722
2106
  {
2723
2107
  value: "left",
2724
2108
  label: p(a).title.alignLeft,
2725
- icon: p(ot)
2109
+ icon: p(rt)
2726
2110
  },
2727
2111
  {
2728
2112
  value: "center",
2729
2113
  label: p(a).title.alignCenter,
2730
- icon: p(pt)
2114
+ icon: p(ut)
2731
2115
  },
2732
2116
  {
2733
2117
  value: "right",
2734
2118
  label: p(a).title.alignRight,
2735
- icon: p(dt)
2119
+ icon: p(ct)
2736
2120
  }
2737
2121
  ],
2738
2122
  "model-value": e.block.align,
@@ -2740,22 +2124,22 @@ var Ea = {
2740
2124
  }, null, 8, ["options", "model-value"])])
2741
2125
  ], 64));
2742
2126
  }
2743
- }), No = { class: "tpl:mb-3.5" }, Po = { class: "tpl:flex tpl:items-stretch" }, Fo = ["value"], Io = ["value"], Lo = /* @__PURE__ */ l({
2127
+ }), Sa = { class: "tpl:mb-3.5" }, Ca = { class: "tpl:flex tpl:items-stretch" }, wa = ["value"], Ta = ["value"], Ea = /* @__PURE__ */ l({
2744
2128
  __name: "SpacerToolbar",
2745
2129
  props: { block: {} },
2746
2130
  emits: ["update"],
2747
2131
  setup(e, { emit: t }) {
2748
- let n = t, { t: r } = L();
2749
- return (t, i) => (s(), f("div", No, [
2750
- C("label", { class: D(p(V)) }, S(p(r).spacer.height), 3),
2751
- C("div", Po, [C("input", {
2132
+ let n = t, { t: r } = P();
2133
+ return (t, i) => (s(), f("div", Sa, [
2134
+ C("label", { class: D(p(U)) }, S(p(r).spacer.height), 3),
2135
+ C("div", Ca, [C("input", {
2752
2136
  type: "number",
2753
- class: D(p(U)),
2137
+ class: D(p(G)),
2754
2138
  value: e.block.height,
2755
2139
  min: "10",
2756
2140
  max: "100",
2757
2141
  onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
2758
- }, null, 42, Fo), C("span", { class: D(p(H)) }, "px", 2)]),
2142
+ }, null, 42, wa), C("span", { class: D(p(W)) }, "px", 2)]),
2759
2143
  C("input", {
2760
2144
  type: "range",
2761
2145
  class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
@@ -2763,13 +2147,13 @@ var Ea = {
2763
2147
  min: "10",
2764
2148
  max: "100",
2765
2149
  onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
2766
- }, null, 40, Io)
2150
+ }, null, 40, Ta)
2767
2151
  ]));
2768
2152
  }
2769
- }), Ro = { class: "tpl:mb-3.5" }, zo = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Bo = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Vo = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ho = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Uo = ["disabled"], Wo = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Go = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Ko = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, qo = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Jo = ["disabled"], Yo = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Xo = { class: "tpl:mb-3.5" }, Zo = { class: "tpl:mb-1.5 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Qo = ["checked"], $o = {
2153
+ }), Da = { class: "tpl:mb-3.5" }, Oa = { class: "tpl:flex tpl:items-center tpl:gap-3" }, ka = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Aa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ja = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ma = ["disabled"], Na = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Pa = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Fa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ia = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, La = ["disabled"], Ra = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, za = { class: "tpl:mb-3.5" }, Ba = { class: "tpl:mb-1.5 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Va = ["checked"], Ha = {
2770
2154
  key: 0,
2771
2155
  class: "tpl:mb-3.5"
2772
- }, es = { class: "tpl:mb-3.5" }, ts = { class: "tpl:mb-3.5" }, ns = { class: "tpl:flex tpl:items-stretch" }, rs = ["value"], is = { class: "tpl:mb-3.5" }, as = { class: "tpl:flex tpl:items-stretch" }, os = ["value"], ss = { class: "tpl:mb-3.5" }, cs = ["value"], ls = { value: "" }, us = ["value"], ds = { class: "tpl:mb-3.5" }, fs = { class: "tpl:flex tpl:items-stretch" }, ps = ["value"], ms = { class: "tpl:mb-3.5" }, hs = { class: "tpl:mb-3.5" }, gs = /* @__PURE__ */ l({
2156
+ }, Ua = { class: "tpl:mb-3.5" }, Wa = { class: "tpl:mb-3.5" }, Ga = { class: "tpl:flex tpl:items-stretch" }, Ka = ["value"], qa = { class: "tpl:mb-3.5" }, Ja = { class: "tpl:flex tpl:items-stretch" }, Ya = ["value"], Xa = { class: "tpl:mb-3.5" }, Za = ["value"], Qa = { value: "" }, $a = ["value"], eo = { class: "tpl:mb-3.5" }, to = { class: "tpl:flex tpl:items-stretch" }, no = ["value"], ro = { class: "tpl:mb-3.5" }, io = { class: "tpl:mb-3.5" }, ao = /* @__PURE__ */ l({
2773
2157
  __name: "TableToolbar",
2774
2158
  props: {
2775
2159
  block: {},
@@ -2777,15 +2161,15 @@ var Ea = {
2777
2161
  },
2778
2162
  emits: ["update"],
2779
2163
  setup(e, { emit: t }) {
2780
- let n = e, r = t, { t: a } = L(), o = T(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
2164
+ let n = e, r = t, { t: a } = P(), o = T(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
2781
2165
  function c(e, t) {
2782
2166
  r("update", { [e]: t });
2783
2167
  }
2784
2168
  function l() {
2785
2169
  let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
2786
- id: I(),
2170
+ id: z(),
2787
2171
  cells: Array.from({ length: e }, () => ({
2788
- id: I(),
2172
+ id: z(),
2789
2173
  content: ""
2790
2174
  }))
2791
2175
  };
@@ -2798,7 +2182,7 @@ var Ea = {
2798
2182
  r("update", { rows: n.block.rows.map((e) => ({
2799
2183
  ...e,
2800
2184
  cells: [...e.cells, {
2801
- id: I(),
2185
+ id: z(),
2802
2186
  content: ""
2803
2187
  }]
2804
2188
  })) });
@@ -2810,108 +2194,108 @@ var Ea = {
2810
2194
  })) });
2811
2195
  }
2812
2196
  return (t, n) => (s(), f(_, null, [
2813
- C("div", Ro, [C("label", { class: D(p(V)) }, S(p(a).table.dimensions), 3), C("div", zo, [C("div", Bo, [C("span", Vo, S(p(a).table.rows), 1), C("div", Ho, [
2197
+ C("div", Da, [C("label", { class: D(p(U)) }, S(p(a).table.dimensions), 3), C("div", Oa, [C("div", ka, [C("span", Aa, S(p(a).table.rows), 1), C("div", ja, [
2814
2198
  C("button", {
2815
2199
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:duration-150 tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
2816
2200
  disabled: e.block.rows.length <= 1,
2817
2201
  onClick: n[0] ||= (t) => u(e.block.rows[e.block.rows.length - 1].id)
2818
- }, [m(p(R), {
2202
+ }, [m(p(B), {
2819
2203
  size: 12,
2820
2204
  "stroke-width": 2
2821
- })], 8, Uo),
2822
- C("span", Wo, S(e.block.rows.length), 1),
2205
+ })], 8, Ma),
2206
+ C("span", Na, S(e.block.rows.length), 1),
2823
2207
  C("button", {
2824
2208
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:duration-150 tpl:hover:text-[var(--tpl-primary)]",
2825
2209
  onClick: l
2826
- }, [m(p(z), {
2210
+ }, [m(p(V), {
2827
2211
  size: 12,
2828
2212
  "stroke-width": 2
2829
2213
  })])
2830
- ])]), C("div", Go, [C("span", Ko, S(p(a).table.columns), 1), C("div", qo, [
2214
+ ])]), C("div", Pa, [C("span", Fa, S(p(a).table.columns), 1), C("div", Ia, [
2831
2215
  C("button", {
2832
2216
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:duration-150 tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
2833
2217
  disabled: o.value <= 1,
2834
2218
  onClick: n[1] ||= (e) => h(o.value - 1)
2835
- }, [m(p(R), {
2219
+ }, [m(p(B), {
2836
2220
  size: 12,
2837
2221
  "stroke-width": 2
2838
- })], 8, Jo),
2839
- C("span", Yo, S(o.value), 1),
2222
+ })], 8, La),
2223
+ C("span", Ra, S(o.value), 1),
2840
2224
  C("button", {
2841
2225
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:duration-150 tpl:hover:text-[var(--tpl-primary)]",
2842
2226
  onClick: d
2843
- }, [m(p(z), {
2227
+ }, [m(p(V), {
2844
2228
  size: 12,
2845
2229
  "stroke-width": 2
2846
2230
  })])
2847
2231
  ])])])]),
2848
- C("div", Xo, [C("label", Zo, [C("input", {
2232
+ C("div", za, [C("label", Ba, [C("input", {
2849
2233
  type: "checkbox",
2850
2234
  checked: e.block.hasHeaderRow,
2851
2235
  class: "tpl:accent-[var(--tpl-primary)]",
2852
2236
  onChange: n[2] ||= (e) => c("hasHeaderRow", e.target.checked)
2853
- }, null, 40, Qo), A(" " + S(p(a).table.hasHeaderRow), 1)])]),
2854
- e.block.hasHeaderRow ? (s(), f("div", $o, [C("label", { class: D(p(V)) }, S(p(a).table.headerBackgroundColor), 3), m(q, {
2237
+ }, null, 40, Va), j(" " + S(p(a).table.hasHeaderRow), 1)])]),
2238
+ e.block.hasHeaderRow ? (s(), f("div", Ha, [C("label", { class: D(p(U)) }, S(p(a).table.headerBackgroundColor), 3), m(K, {
2855
2239
  "model-value": e.block.headerBackgroundColor || p("#f2f2f2"),
2856
2240
  placeholder: p(a).table.noHeaderBg,
2857
2241
  "onUpdate:modelValue": n[3] ||= (e) => c("headerBackgroundColor", e || null)
2858
2242
  }, null, 8, ["model-value", "placeholder"])])) : v("", !0),
2859
- C("div", es, [C("label", { class: D(p(V)) }, S(p(a).table.borderColor), 3), m(q, {
2243
+ C("div", Ua, [C("label", { class: D(p(U)) }, S(p(a).table.borderColor), 3), m(K, {
2860
2244
  "model-value": e.block.borderColor,
2861
2245
  "onUpdate:modelValue": n[4] ||= (e) => c("borderColor", e)
2862
2246
  }, null, 8, ["model-value"])]),
2863
- C("div", ts, [C("label", { class: D(p(V)) }, S(p(a).table.borderWidth), 3), C("div", ns, [C("input", {
2247
+ C("div", Wa, [C("label", { class: D(p(U)) }, S(p(a).table.borderWidth), 3), C("div", Ga, [C("input", {
2864
2248
  type: "number",
2865
- class: D(p(U)),
2249
+ class: D(p(G)),
2866
2250
  value: e.block.borderWidth,
2867
2251
  min: "0",
2868
2252
  max: "10",
2869
2253
  onInput: n[5] ||= (e) => c("borderWidth", Number(e.target.value))
2870
- }, null, 42, rs), C("span", { class: D(p(H)) }, "px", 2)])]),
2871
- C("div", is, [C("label", { class: D(p(V)) }, S(p(a).table.cellPadding), 3), C("div", as, [C("input", {
2254
+ }, null, 42, Ka), C("span", { class: D(p(W)) }, "px", 2)])]),
2255
+ C("div", qa, [C("label", { class: D(p(U)) }, S(p(a).table.cellPadding), 3), C("div", Ja, [C("input", {
2872
2256
  type: "number",
2873
- class: D(p(U)),
2257
+ class: D(p(G)),
2874
2258
  value: e.block.cellPadding,
2875
2259
  min: "0",
2876
2260
  max: "30",
2877
2261
  onInput: n[6] ||= (e) => c("cellPadding", Number(e.target.value))
2878
- }, null, 42, os), C("span", { class: D(p(H)) }, "px", 2)])]),
2879
- C("div", ss, [C("label", { class: D(p(V)) }, S(p(a).table.fontFamily), 3), C("select", {
2880
- class: D(p(B)),
2262
+ }, null, 42, Ya), C("span", { class: D(p(W)) }, "px", 2)])]),
2263
+ C("div", Xa, [C("label", { class: D(p(U)) }, S(p(a).table.fontFamily), 3), C("select", {
2264
+ class: D(p(H)),
2881
2265
  value: e.block.fontFamily || "",
2882
2266
  onChange: n[7] ||= (e) => c("fontFamily", e.target.value || void 0)
2883
- }, [C("option", ls, S(p(a).title.inheritFont), 1), (s(!0), f(_, null, i(e.fontFamilies, (e) => (s(), f("option", {
2267
+ }, [C("option", Qa, S(p(a).title.inheritFont), 1), (s(!0), f(_, null, i(e.fontFamilies, (e) => (s(), f("option", {
2884
2268
  key: e.value,
2885
2269
  value: e.value
2886
- }, S(e.label), 9, us))), 128))], 42, cs)]),
2887
- C("div", ds, [C("label", { class: D(p(V)) }, S(p(a).table.fontSize), 3), C("div", fs, [C("input", {
2270
+ }, S(e.label), 9, $a))), 128))], 42, Za)]),
2271
+ C("div", eo, [C("label", { class: D(p(U)) }, S(p(a).table.fontSize), 3), C("div", to, [C("input", {
2888
2272
  type: "number",
2889
- class: D(p(U)),
2273
+ class: D(p(G)),
2890
2274
  value: e.block.fontSize,
2891
2275
  min: "10",
2892
2276
  max: "32",
2893
2277
  onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
2894
- }, null, 42, ps), C("span", { class: D(p(H)) }, "px", 2)])]),
2895
- C("div", ms, [C("label", { class: D(p(V)) }, S(p(a).table.color), 3), m(q, {
2278
+ }, null, 42, no), C("span", { class: D(p(W)) }, "px", 2)])]),
2279
+ C("div", ro, [C("label", { class: D(p(U)) }, S(p(a).table.color), 3), m(K, {
2896
2280
  "model-value": e.block.color,
2897
2281
  "onUpdate:modelValue": n[9] ||= (e) => c("color", e)
2898
2282
  }, null, 8, ["model-value"])]),
2899
- C("div", hs, [C("label", { class: D(p(V)) }, S(p(a).table.textAlign), 3), m(Z, {
2283
+ C("div", io, [C("label", { class: D(p(U)) }, S(p(a).table.textAlign), 3), m(J, {
2900
2284
  options: [
2901
2285
  {
2902
2286
  value: "left",
2903
2287
  label: p(a).title.alignLeft,
2904
- icon: p(ot)
2288
+ icon: p(rt)
2905
2289
  },
2906
2290
  {
2907
2291
  value: "center",
2908
2292
  label: p(a).title.alignCenter,
2909
- icon: p(pt)
2293
+ icon: p(ut)
2910
2294
  },
2911
2295
  {
2912
2296
  value: "right",
2913
2297
  label: p(a).title.alignRight,
2914
- icon: p(dt)
2298
+ icon: p(ct)
2915
2299
  }
2916
2300
  ],
2917
2301
  "model-value": e.block.textAlign,
@@ -2919,7 +2303,7 @@ var Ea = {
2919
2303
  }, null, 8, ["options", "model-value"])])
2920
2304
  ], 64));
2921
2305
  }
2922
- }), _s = { class: "tpl:mb-3.5" }, vs = ["value"], ys = { value: 1 }, bs = { value: 2 }, xs = { value: 3 }, Ss = { value: 4 }, Cs = { class: "tpl:mb-3.5" }, ws = ["value"], Ts = { value: "" }, Es = ["value"], Ds = { class: "tpl:mb-3.5" }, Os = { class: "tpl:mb-3.5" }, ks = /* @__PURE__ */ l({
2306
+ }), oo = { class: "tpl:mb-3.5" }, so = ["value"], co = { value: 1 }, lo = { value: 2 }, uo = { value: 3 }, fo = { value: 4 }, po = { class: "tpl:mb-3.5" }, mo = ["value"], ho = { value: "" }, go = ["value"], _o = { class: "tpl:mb-3.5" }, vo = { class: "tpl:mb-3.5" }, yo = /* @__PURE__ */ l({
2923
2307
  __name: "TitleToolbar",
2924
2308
  props: {
2925
2309
  block: {},
@@ -2927,49 +2311,49 @@ var Ea = {
2927
2311
  },
2928
2312
  emits: ["update"],
2929
2313
  setup(e, { emit: t }) {
2930
- let n = t, { t: r } = L();
2314
+ let n = t, { t: r } = P();
2931
2315
  function a(e, t) {
2932
2316
  n("update", { [e]: t });
2933
2317
  }
2934
2318
  return (t, n) => (s(), f(_, null, [
2935
- C("div", _s, [C("label", { class: D(p(V)) }, S(p(r).title.level), 3), C("select", {
2936
- class: D(p(B)),
2319
+ C("div", oo, [C("label", { class: D(p(U)) }, S(p(r).title.level), 3), C("select", {
2320
+ class: D(p(H)),
2937
2321
  value: e.block.level,
2938
2322
  onChange: n[0] ||= (e) => a("level", Number(e.target.value))
2939
2323
  }, [
2940
- C("option", ys, S(p(r).title.heading1), 1),
2941
- C("option", bs, S(p(r).title.heading2), 1),
2942
- C("option", xs, S(p(r).title.heading3), 1),
2943
- C("option", Ss, S(p(r).title.heading4), 1)
2944
- ], 42, vs)]),
2945
- C("div", Cs, [C("label", { class: D(p(V)) }, S(p(r).title.fontFamily), 3), C("select", {
2946
- class: D(p(B)),
2324
+ C("option", co, S(p(r).title.heading1), 1),
2325
+ C("option", lo, S(p(r).title.heading2), 1),
2326
+ C("option", uo, S(p(r).title.heading3), 1),
2327
+ C("option", fo, S(p(r).title.heading4), 1)
2328
+ ], 42, so)]),
2329
+ C("div", po, [C("label", { class: D(p(U)) }, S(p(r).title.fontFamily), 3), C("select", {
2330
+ class: D(p(H)),
2947
2331
  value: e.block.fontFamily || "",
2948
2332
  onChange: n[1] ||= (e) => a("fontFamily", e.target.value || void 0)
2949
- }, [C("option", Ts, S(p(r).title.inheritFont), 1), (s(!0), f(_, null, i(e.fontFamilies, (e) => (s(), f("option", {
2333
+ }, [C("option", ho, S(p(r).title.inheritFont), 1), (s(!0), f(_, null, i(e.fontFamilies, (e) => (s(), f("option", {
2950
2334
  key: e.value,
2951
2335
  value: e.value
2952
- }, S(e.label), 9, Es))), 128))], 42, ws)]),
2953
- C("div", Ds, [C("label", { class: D(p(V)) }, S(p(r).title.color), 3), m(q, {
2336
+ }, S(e.label), 9, go))), 128))], 42, mo)]),
2337
+ C("div", _o, [C("label", { class: D(p(U)) }, S(p(r).title.color), 3), m(K, {
2954
2338
  "model-value": e.block.color,
2955
2339
  "onUpdate:modelValue": n[2] ||= (e) => a("color", e)
2956
2340
  }, null, 8, ["model-value"])]),
2957
- C("div", Os, [C("label", { class: D(p(V)) }, S(p(r).title.align), 3), m(Z, {
2341
+ C("div", vo, [C("label", { class: D(p(U)) }, S(p(r).title.align), 3), m(J, {
2958
2342
  options: [
2959
2343
  {
2960
2344
  value: "left",
2961
2345
  label: p(r).title.alignLeft,
2962
- icon: p(ot)
2346
+ icon: p(rt)
2963
2347
  },
2964
2348
  {
2965
2349
  value: "center",
2966
2350
  label: p(r).title.alignCenter,
2967
- icon: p(pt)
2351
+ icon: p(ut)
2968
2352
  },
2969
2353
  {
2970
2354
  value: "right",
2971
2355
  label: p(r).title.alignRight,
2972
- icon: p(dt)
2356
+ icon: p(ct)
2973
2357
  }
2974
2358
  ],
2975
2359
  "model-value": e.block.textAlign,
@@ -2977,7 +2361,7 @@ var Ea = {
2977
2361
  }, null, 8, ["options", "model-value"])])
2978
2362
  ], 64));
2979
2363
  }
2980
- }), As = ["aria-label"], js = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Ms = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Ns = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ps = { class: "tpl:flex tpl:gap-1" }, Fs = ["title"], Is = ["title"], Ls = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Rs = /* @__PURE__ */ j(/* @__PURE__ */ l({
2364
+ }), bo = ["aria-label"], xo = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, So = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Co = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, wo = { class: "tpl:flex tpl:gap-1" }, To = ["title"], Eo = ["title"], Do = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Oo = /* @__PURE__ */ M(/* @__PURE__ */ l({
2981
2365
  __name: "Toolbar",
2982
2366
  props: { block: {} },
2983
2367
  emits: [
@@ -2986,116 +2370,116 @@ var Ea = {
2986
2370
  "duplicate"
2987
2371
  ],
2988
2372
  setup(e, { emit: t }) {
2989
- let n = e, i = t, { t: a } = L(), o = Te(be, "Toolbar"), l = r(N, []), u = T(() => n.block.type), d = T(() => Oe(n.block)), h = T(() => {
2990
- if (d.value) return l.find((e) => e.type === n.block.customType);
2991
- }), g = T(() => d.value ? h.value?.name ?? n.block.customType : M(u.value, a)), b = o.fonts;
2992
- function x(e) {
2993
- i("update", e);
2373
+ let n = A(() => import("./CountdownToolbar-CEmbR7kt.js")), i = e, a = t, { t: o } = P(), l = Se(R, "Toolbar"), u = r(Je, []), d = T(() => i.block.type), h = T(() => we(i.block)), g = T(() => {
2374
+ if (h.value) return u.find((e) => e.type === i.block.customType);
2375
+ }), b = T(() => h.value ? g.value?.name ?? i.block.customType : Ie(d.value, o)), x = l.fonts;
2376
+ function w(e) {
2377
+ a("update", e);
2994
2378
  }
2995
- return (t, n) => (s(), f("aside", {
2996
- "aria-label": p(a).landmarks.blockToolbar,
2379
+ return (t, r) => (s(), f("aside", {
2380
+ "aria-label": p(o).landmarks.blockToolbar,
2997
2381
  class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
2998
- }, [C("div", js, [C("div", Ms, [p(_t)[u.value] ? (s(), y(c(p(_t)[u.value]), {
2382
+ }, [C("div", xo, [C("div", So, [p(ht)[d.value] ? (s(), y(c(p(ht)[d.value]), {
2999
2383
  key: 0,
3000
2384
  size: 16,
3001
2385
  "stroke-width": 1.5
3002
- })) : d.value ? (s(), y(p(Me), {
2386
+ })) : h.value ? (s(), y(p(Oe), {
3003
2387
  key: 1,
3004
2388
  size: 16,
3005
2389
  "stroke-width": 1.5
3006
- })) : v("", !0), C("h3", Ns, S(g.value), 1)]), C("div", Ps, [C("button", {
2390
+ })) : v("", !0), C("h3", Co, S(b.value), 1)]), C("div", wo, [C("button", {
3007
2391
  class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-active)] tpl:hover:text-[var(--tpl-text)]",
3008
- title: p(a).toolbar.duplicate,
3009
- onClick: n[0] ||= (e) => i("duplicate")
3010
- }, [m(p(Xe), {
2392
+ title: p(o).toolbar.duplicate,
2393
+ onClick: r[0] ||= (e) => a("duplicate")
2394
+ }, [m(p(qe), {
3011
2395
  size: 14,
3012
2396
  "stroke-width": 2
3013
- })], 8, Fs), C("button", {
2397
+ })], 8, To), C("button", {
3014
2398
  class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
3015
- title: p(a).toolbar.delete,
3016
- onClick: n[1] ||= (e) => i("delete")
3017
- }, [m(p(Ge), {
2399
+ title: p(o).toolbar.delete,
2400
+ onClick: r[1] ||= (e) => a("delete")
2401
+ }, [m(p(He), {
3018
2402
  size: 14,
3019
2403
  "stroke-width": 2
3020
- })], 8, Is)])]), C("div", Ls, [d.value ? (s(), y(Pa, {
2404
+ })], 8, Eo)])]), C("div", Do, [h.value ? (s(), y(wi, {
3021
2405
  key: 0,
3022
2406
  block: e.block,
3023
- onUpdateFieldValues: n[2] ||= (e) => i("update", { fieldValues: e }),
3024
- onUpdateDataSourceFetched: n[3] ||= (e) => i("update", { dataSourceFetched: e })
3025
- }, null, 8, ["block"])) : u.value === "section" ? (s(), y(yo, {
2407
+ onUpdateFieldValues: r[2] ||= (e) => a("update", { fieldValues: e }),
2408
+ onUpdateDataSourceFetched: r[3] ||= (e) => a("update", { dataSourceFetched: e })
2409
+ }, null, 8, ["block"])) : d.value === "section" ? (s(), y(ca, {
3026
2410
  key: 1,
3027
2411
  block: e.block,
3028
- onUpdate: x
3029
- }, null, 8, ["block"])) : u.value === "title" ? (s(), y(ks, {
2412
+ onUpdate: w
2413
+ }, null, 8, ["block"])) : d.value === "title" ? (s(), y(yo, {
3030
2414
  key: 2,
3031
2415
  block: e.block,
3032
- "font-families": p(b),
3033
- onUpdate: x
3034
- }, null, 8, ["block", "font-families"])) : u.value === "paragraph" ? (s(), f(_, { key: 3 }, [], 64)) : u.value === "image" ? (s(), y(no, {
2416
+ "font-families": p(x),
2417
+ onUpdate: w
2418
+ }, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (s(), f(_, { key: 3 }, [], 64)) : d.value === "image" ? (s(), y(Ki, {
3035
2419
  key: 4,
3036
2420
  block: e.block,
3037
- onUpdate: x
3038
- }, null, 8, ["block"])) : u.value === "button" ? (s(), y(Lr, {
2421
+ onUpdate: w
2422
+ }, null, 8, ["block"])) : d.value === "button" ? (s(), y(Xn, {
3039
2423
  key: 5,
3040
2424
  block: e.block,
3041
- "font-families": p(b),
3042
- onUpdate: x
3043
- }, null, 8, ["block", "font-families"])) : u.value === "divider" ? (s(), y(Ba, {
2425
+ "font-families": p(x),
2426
+ onUpdate: w
2427
+ }, null, 8, ["block", "font-families"])) : d.value === "divider" ? (s(), y(Ai, {
3044
2428
  key: 6,
3045
2429
  block: e.block,
3046
- onUpdate: x
3047
- }, null, 8, ["block"])) : u.value === "social" ? (s(), y(Mo, {
2430
+ onUpdate: w
2431
+ }, null, 8, ["block"])) : d.value === "social" ? (s(), y(xa, {
3048
2432
  key: 7,
3049
2433
  block: e.block,
3050
- onUpdate: x
3051
- }, null, 8, ["block"])) : u.value === "menu" ? (s(), y(ho, {
2434
+ onUpdate: w
2435
+ }, null, 8, ["block"])) : d.value === "menu" ? (s(), y(ia, {
3052
2436
  key: 8,
3053
2437
  block: e.block,
3054
- "font-families": p(b),
3055
- onUpdate: x
3056
- }, null, 8, ["block", "font-families"])) : u.value === "table" ? (s(), y(gs, {
2438
+ "font-families": p(x),
2439
+ onUpdate: w
2440
+ }, null, 8, ["block", "font-families"])) : d.value === "table" ? (s(), y(ao, {
3057
2441
  key: 9,
3058
2442
  block: e.block,
3059
- "font-families": p(b),
3060
- onUpdate: x
3061
- }, null, 8, ["block", "font-families"])) : u.value === "spacer" ? (s(), y(Lo, {
2443
+ "font-families": p(x),
2444
+ onUpdate: w
2445
+ }, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (s(), y(Ea, {
3062
2446
  key: 10,
3063
2447
  block: e.block,
3064
- onUpdate: x
3065
- }, null, 8, ["block"])) : u.value === "html" ? (s(), y(Wa, {
2448
+ onUpdate: w
2449
+ }, null, 8, ["block"])) : d.value === "html" ? (s(), y(Pi, {
3066
2450
  key: 11,
3067
2451
  block: e.block,
3068
- onUpdate: x
3069
- }, null, 8, ["block"])) : u.value === "countdown" ? (s(), y(Zi, {
2452
+ onUpdate: w
2453
+ }, null, 8, ["block"])) : d.value === "countdown" ? (s(), y(p(n), {
3070
2454
  key: 12,
3071
2455
  block: e.block,
3072
- "font-families": p(b),
3073
- onUpdate: x
3074
- }, null, 8, ["block", "font-families"])) : v("", !0), m(Oi, {
2456
+ "font-families": p(x),
2457
+ onUpdate: w
2458
+ }, null, 8, ["block", "font-families"])) : v("", !0), m(Vr, {
3075
2459
  block: e.block,
3076
- "is-first-section": u.value === "paragraph",
3077
- onUpdate: x
3078
- }, null, 8, ["block", "is-first-section"])])], 8, As));
2460
+ "is-first-section": d.value === "paragraph",
2461
+ onUpdate: w
2462
+ }, null, 8, ["block", "is-first-section"])])], 8, bo));
3079
2463
  }
3080
- }), [["__scopeId", "data-v-fb6efed6"]]), zs = ["aria-label"], Bs = {
2464
+ }), [["__scopeId", "data-v-0f4a9227"]]), ko = ["aria-label"], Ao = {
3081
2465
  role: "tablist",
3082
2466
  class: "tpl:relative tpl:flex tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]"
3083
- }, Vs = ["aria-selected"], Hs = ["aria-selected"], Us = {
2467
+ }, jo = ["aria-selected"], Mo = ["aria-selected"], No = {
3084
2468
  key: 0,
3085
2469
  id: "tpl-tabpanel-content",
3086
2470
  role: "tabpanel",
3087
2471
  "aria-labelledby": "tpl-tab-content",
3088
2472
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3089
- }, Ws = {
2473
+ }, Po = {
3090
2474
  key: 1,
3091
2475
  class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:px-6 tpl:py-10 tpl:text-center tpl:text-[var(--tpl-text-muted)]"
3092
- }, Gs = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, Ks = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, qs = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, Js = {
2476
+ }, Fo = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, Io = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Lo = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, Ro = {
3093
2477
  key: 1,
3094
2478
  id: "tpl-tabpanel-settings",
3095
2479
  role: "tabpanel",
3096
2480
  "aria-labelledby": "tpl-tab-settings",
3097
2481
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3098
- }, Ys = /* @__PURE__ */ l({
2482
+ }, zo = /* @__PURE__ */ l({
3099
2483
  __name: "RightSidebar",
3100
2484
  props: {
3101
2485
  selectedBlock: {},
@@ -3109,14 +2493,14 @@ var Ea = {
3109
2493
  "update-settings"
3110
2494
  ],
3111
2495
  setup(e, { emit: r }) {
3112
- let i = e, a = r, { t: o } = L(), c = t("content"), l = T(() => c.value === "content" ? "tpl:translate-x-0" : "tpl:translate-x-full");
2496
+ let i = e, a = r, { t: o } = P(), c = t("content"), l = T(() => c.value === "content" ? "tpl:translate-x-0" : "tpl:translate-x-full");
3113
2497
  return n(() => i.selectedBlock, (e) => {
3114
2498
  e && (c.value = "content");
3115
2499
  }), (t, n) => (s(), f("aside", {
3116
2500
  "aria-label": p(o).landmarks.rightSidebar,
3117
2501
  class: D(["tpl-right-sidebar tpl:absolute tpl:top-14 tpl:bottom-0 tpl:z-40 tpl:flex tpl:w-[320px] tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)] tpl:transition-all tpl:duration-200 tpl:border-l tpl:border-[var(--tpl-border)]", e.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"])
3118
2502
  }, [
3119
- C("div", Bs, [
2503
+ C("div", Ao, [
3120
2504
  C("div", { class: D(["tpl:absolute tpl:bottom-0 tpl:left-0 tpl:h-full tpl:w-1/2 tpl:p-1.5 tpl:transition-transform tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", l.value]) }, [...n[6] ||= [C("div", { class: "tpl:h-full tpl:w-full tpl:rounded-[var(--tpl-radius-sm)] tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow)]" }, null, -1)]], 2),
3121
2505
  C("button", {
3122
2506
  id: "tpl-tab-content",
@@ -3125,10 +2509,10 @@ var Ea = {
3125
2509
  "aria-controls": "tpl-tabpanel-content",
3126
2510
  class: D(["tpl:relative tpl:z-10 tpl:flex tpl:flex-1 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:px-4 tpl:py-3 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-[120ms]", c.value === "content" ? "tpl:text-[var(--tpl-primary)]" : "tpl:text-[var(--tpl-text-muted)] hover:tpl:text-[var(--tpl-text)]"]),
3127
2511
  onClick: n[0] ||= (e) => c.value = "content"
3128
- }, [m(p(it), {
2512
+ }, [m(p(tt), {
3129
2513
  size: 14,
3130
2514
  "stroke-width": 2
3131
- }), A(" " + S(p(o).sidebar.content), 1)], 10, Vs),
2515
+ }), j(" " + S(p(o).sidebar.content), 1)], 10, jo),
3132
2516
  C("button", {
3133
2517
  id: "tpl-tab-settings",
3134
2518
  role: "tab",
@@ -3136,42 +2520,42 @@ var Ea = {
3136
2520
  "aria-controls": "tpl-tabpanel-settings",
3137
2521
  class: D(["tpl:relative tpl:z-10 tpl:flex tpl:flex-1 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:px-4 tpl:py-3 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-[120ms]", c.value === "settings" ? "tpl:text-[var(--tpl-primary)]" : "tpl:text-[var(--tpl-text-muted)] hover:tpl:text-[var(--tpl-text)]"]),
3138
2522
  onClick: n[1] ||= (e) => c.value = "settings"
3139
- }, [m(p(ht), {
2523
+ }, [m(p(ft), {
3140
2524
  size: 14,
3141
2525
  "stroke-width": 1.5
3142
- }), A(" " + S(p(o).sidebar.settings), 1)], 10, Hs)
2526
+ }), j(" " + S(p(o).sidebar.settings), 1)], 10, Mo)
3143
2527
  ]),
3144
- c.value === "content" ? (s(), f("div", Us, [e.selectedBlock ? (s(), y(Rs, {
2528
+ c.value === "content" ? (s(), f("div", No, [e.selectedBlock ? (s(), y(Oo, {
3145
2529
  key: 0,
3146
2530
  block: e.selectedBlock,
3147
2531
  onUpdate: n[2] ||= (e) => a("update-block", e),
3148
2532
  onDelete: n[3] ||= (e) => a("delete-block"),
3149
2533
  onDuplicate: n[4] ||= (e) => a("duplicate-block")
3150
- }, null, 8, ["block"])) : (s(), f("div", Ws, [
3151
- C("div", Gs, [m(p($e), {
2534
+ }, null, 8, ["block"])) : (s(), f("div", Po, [
2535
+ C("div", Fo, [m(p(Xe), {
3152
2536
  size: 40,
3153
2537
  "stroke-width": 1.5
3154
2538
  })]),
3155
- C("h3", Ks, S(p(o).sidebar.noSelection), 1),
3156
- C("p", qs, S(p(o).sidebar.noSelectionHint), 1)
2539
+ C("h3", Io, S(p(o).sidebar.noSelection), 1),
2540
+ C("p", Lo, S(p(o).sidebar.noSelectionHint), 1)
3157
2541
  ]))])) : v("", !0),
3158
- c.value === "settings" ? (s(), f("div", Js, [m(mr, {
2542
+ c.value === "settings" ? (s(), f("div", Ro, [m(Dn, {
3159
2543
  settings: e.settings,
3160
2544
  onUpdate: n[5] ||= (e) => a("update-settings", e)
3161
2545
  }, null, 8, ["settings"])])) : v("", !0)
3162
- ], 10, zs));
2546
+ ], 10, ko));
3163
2547
  }
3164
- }), Xs = ["aria-label"], Zs = [
2548
+ }), Bo = ["aria-label"], Vo = [
3165
2549
  "aria-checked",
3166
2550
  "aria-label",
3167
2551
  "title",
3168
2552
  "onClick"
3169
- ], Qs = /* @__PURE__ */ l({
2553
+ ], Ho = /* @__PURE__ */ l({
3170
2554
  __name: "ViewportToggle",
3171
2555
  props: { viewport: {} },
3172
2556
  emits: ["change"],
3173
2557
  setup(e, { emit: t }) {
3174
- let n = e, r = t, { t: a } = L(), o = T(() => [
2558
+ let n = e, r = t, { t: a } = P(), o = T(() => [
3175
2559
  {
3176
2560
  value: "desktop",
3177
2561
  label: a.viewport.desktop
@@ -3215,30 +2599,30 @@ var Ea = {
3215
2599
  }),
3216
2600
  title: t.label,
3217
2601
  onClick: (e) => r("change", t.value)
3218
- }, [t.value === "desktop" ? (s(), y(p(rt), {
2602
+ }, [t.value === "desktop" ? (s(), y(p(et), {
3219
2603
  key: 0,
3220
2604
  size: 18,
3221
2605
  "stroke-width": 1.5
3222
- })) : t.value === "tablet" ? (s(), y(p(ct), {
2606
+ })) : t.value === "tablet" ? (s(), y(p(at), {
3223
2607
  key: 1,
3224
2608
  size: 18,
3225
2609
  "stroke-width": 1.5
3226
- })) : (s(), y(p(at), {
2610
+ })) : (s(), y(p(nt), {
3227
2611
  key: 2,
3228
2612
  size: 18,
3229
2613
  "stroke-width": 1.5
3230
- })), C("span", null, S(t.label), 1)], 12, Zs))), 128))], 12, Xs));
2614
+ })), C("span", null, S(t.label), 1)], 12, Vo))), 128))], 12, Bo));
3231
2615
  }
3232
- }), $s = [
2616
+ }), Uo = [
3233
2617
  "aria-label",
3234
2618
  "title",
3235
2619
  "aria-pressed"
3236
- ], ec = /* @__PURE__ */ j(/* @__PURE__ */ l({
2620
+ ], Wo = /* @__PURE__ */ M(/* @__PURE__ */ l({
3237
2621
  __name: "PreviewToggle",
3238
2622
  props: { previewMode: { type: Boolean } },
3239
2623
  emits: ["change"],
3240
2624
  setup(e, { emit: t }) {
3241
- let n = t, { t: r } = L();
2625
+ let n = t, { t: r } = P();
3242
2626
  return (t, i) => (s(), f("button", {
3243
2627
  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 tpl:duration-150",
3244
2628
  style: g({
@@ -3256,28 +2640,28 @@ var Ea = {
3256
2640
  "leave-to-class": "tpl-icon-leave-to",
3257
2641
  mode: "out-in"
3258
2642
  }, {
3259
- default: a(() => [e.previewMode ? (s(), y(p(ke), {
2643
+ default: a(() => [e.previewMode ? (s(), y(p(Te), {
3260
2644
  key: "eye",
3261
2645
  size: 18,
3262
2646
  "stroke-width": 1.5
3263
- })) : (s(), y(p(Je), {
2647
+ })) : (s(), y(p(Ge), {
3264
2648
  key: "eye-off",
3265
2649
  size: 18,
3266
2650
  "stroke-width": 1.5
3267
2651
  }))]),
3268
2652
  _: 1
3269
- })], 12, $s));
2653
+ })], 12, Uo));
3270
2654
  }
3271
- }), [["__scopeId", "data-v-af87d02a"]]), tc = [
2655
+ }), [["__scopeId", "data-v-af87d02a"]]), Go = [
3272
2656
  "aria-label",
3273
2657
  "title",
3274
2658
  "aria-pressed"
3275
- ], nc = /* @__PURE__ */ j(/* @__PURE__ */ l({
2659
+ ], Ko = /* @__PURE__ */ M(/* @__PURE__ */ l({
3276
2660
  __name: "DarkModeToggle",
3277
2661
  props: { darkMode: { type: Boolean } },
3278
2662
  emits: ["change"],
3279
2663
  setup(e, { emit: t }) {
3280
- let n = t, { t: r } = L();
2664
+ let n = t, { t: r } = P();
3281
2665
  return (t, i) => (s(), f("button", {
3282
2666
  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 tpl:duration-150",
3283
2667
  style: g({
@@ -3295,37 +2679,37 @@ var Ea = {
3295
2679
  "leave-to-class": "tpl-icon-leave-to",
3296
2680
  mode: "out-in"
3297
2681
  }, {
3298
- default: a(() => [e.darkMode ? (s(), y(p(nt), {
2682
+ default: a(() => [e.darkMode ? (s(), y(p($e), {
3299
2683
  key: "moon",
3300
2684
  size: 18,
3301
2685
  "stroke-width": 1.5
3302
- })) : (s(), y(p(mt), {
2686
+ })) : (s(), y(p(dt), {
3303
2687
  key: "sun",
3304
2688
  size: 18,
3305
2689
  "stroke-width": 1.5
3306
2690
  }))]),
3307
2691
  _: 1
3308
- })], 12, tc));
2692
+ })], 12, Go));
3309
2693
  }
3310
- }), [["__scopeId", "data-v-f8694f76"]]), rc = {
2694
+ }), [["__scopeId", "data-v-f8694f76"]]), qo = {
3311
2695
  class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
3312
2696
  style: {
3313
2697
  "background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
3314
2698
  "backdrop-filter": "blur(8px)",
3315
2699
  "-webkit-backdrop-filter": "blur(8px)"
3316
2700
  }
3317
- }, ic = {
2701
+ }, Jo = {
3318
2702
  href: "https://github.com/templatical/sdk",
3319
2703
  target: "_blank",
3320
2704
  rel: "noopener noreferrer",
3321
2705
  class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
3322
2706
  style: { "text-decoration": "none" }
3323
- }, ac = /* @__PURE__ */ l({
2707
+ }, Yo = /* @__PURE__ */ l({
3324
2708
  __name: "EditorFooter",
3325
2709
  props: { positionClass: {} },
3326
2710
  setup(e) {
3327
- let { t } = L();
3328
- return (n, r) => (s(), f("footer", { class: D(["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]) }, [C("div", rc, [
2711
+ let { t } = P();
2712
+ return (n, r) => (s(), f("footer", { class: D(["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]) }, [C("div", qo, [
3329
2713
  C("span", null, S(p(t).footer.poweredBy), 1),
3330
2714
  r[0] ||= C("a", {
3331
2715
  href: "https://templatical.com",
@@ -3338,13 +2722,13 @@ var Ea = {
3338
2722
  height: "14",
3339
2723
  src: "https://templatical.com/logo.svg",
3340
2724
  alt: ""
3341
- }), A(" Templatical ")], -1),
2725
+ }), j(" Templatical ")], -1),
3342
2726
  r[1] ||= C("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
3343
- C("a", ic, S(p(t).footer.openSource), 1)
2727
+ C("a", Jo, S(p(t).footer.openSource), 1)
3344
2728
  ])], 2));
3345
2729
  }
3346
2730
  });
3347
2731
  //#endregion
3348
- export { Ys as a, Qs as i, nc as n, Wt as o, ec as r, Ft as s, ac as t };
2732
+ export { zo as a, Ho as i, Ko as n, Vt as o, Wo as r, Mt as s, Yo as t };
3349
2733
 
3350
- //# sourceMappingURL=styles-Dgijy53u.js.map
2734
+ //# sourceMappingURL=styles-U2VFFgxC.js.map