@templatical/editor 0.5.0 → 0.6.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 (156) hide show
  1. package/dist/AccessibilityPanel-CvQGLdu6.js +108 -0
  2. package/dist/{AiChatSidebar-Cg206ewI.js → AiChatSidebar-Br9dhkIB.js} +17 -16
  3. package/dist/{AiFeatureMenu-vatvCD-m.js → AiFeatureMenu-Ceewb3uB.js} +13 -13
  4. package/dist/BlockA11yBadge-CXDLqkcJ.js +34 -0
  5. package/dist/{CloudEditor-Bxe8Jt9u.js → CloudEditor-D_flODpm.js} +306 -217
  6. package/dist/{CollaboratorBar-Dv7VT09N.js → CollaboratorBar-BcSxXVY-.js} +4 -4
  7. package/dist/{CommentsSidebar-BAma2apG.js → CommentsSidebar-DceMRyIS.js} +26 -25
  8. package/dist/{CountdownBlock-Ce3RFNpM.js → CountdownBlock-BNSj1jvJ.js} +2 -2
  9. package/dist/{CountdownToolbar-Bo3Jaiky.js → CountdownToolbar-ClJr2GzL.js} +3 -3
  10. package/dist/{DesignReferenceSidebar-B8DDnLHQ.js → DesignReferenceSidebar-50qFipmW.js} +30 -29
  11. package/dist/{LoadingTrack-DhxulLPM.js → LoadingTrack-B0CWFHXQ.js} +1 -1
  12. package/dist/{ModuleBrowserModal-DAnqdlyq.js → ModuleBrowserModal-BnSdG4DE.js} +10 -10
  13. package/dist/{ModulePreviewCanvas-CXApEVEG.js → ModulePreviewCanvas-B78PuZdk.js} +2 -2
  14. package/dist/{NumberWithSuffix-BysfchFp.js → NumberWithSuffix-DkXUez9t.js} +3 -3
  15. package/dist/{ParagraphEditor-Bjdakcoz.js → ParagraphEditor-CPBYk2m3.js} +44 -43
  16. package/dist/{RichTextEditorContent-jxPxfbfZ.js → RichTextEditorContent-DYkIauIk.js} +4 -4
  17. package/dist/{SaveModuleDialog-CZXltahx.js → SaveModuleDialog-Df__VToK.js} +7 -7
  18. package/dist/{SnapshotHistory-OqEkaA0W.js → SnapshotHistory-QBTbVrEK.js} +9 -9
  19. package/dist/{TemplateScoringPanel-BmAHdgLF.js → TemplateScoringPanel-4GTNHej5.js} +29 -27
  20. package/dist/{TestEmailModal-CvEK6MTy.js → TestEmailModal-DaDMACHY.js} +4 -4
  21. package/dist/{TitleEditor-CxCD70Bs.js → TitleEditor-PHShl4tS.js} +11 -11
  22. package/dist/{TplModal-C2Hoz1it.js → TplModal-DzlNkBYQ.js} +2 -2
  23. package/dist/_plugin-vue_export-helper-B0hnzhyu.js +8 -0
  24. package/dist/accessibility-e8JYu_zd.js +27 -0
  25. package/dist/{blockTypeIcons-DpJa9awv.js → blockTypeIcons-D0wkSpP9.js} +2 -2
  26. package/dist/bundle-stats.json +8 -8
  27. package/dist/cdn/chunks/AccessibilityPanel-DmQIqpp1.js +97 -0
  28. package/dist/cdn/chunks/AccessibilityPanel-DmQIqpp1.js.map +1 -0
  29. package/dist/cdn/chunks/{AiFeatureMenu-BggCm6wN.js → AiFeatureMenu-D0kJ0FMv.js} +5 -5
  30. package/dist/cdn/chunks/{AiFeatureMenu-BggCm6wN.js.map → AiFeatureMenu-D0kJ0FMv.js.map} +1 -1
  31. package/dist/cdn/chunks/BlockA11yBadge-DWi7e6UQ.js +33 -0
  32. package/dist/cdn/chunks/BlockA11yBadge-DWi7e6UQ.js.map +1 -0
  33. package/dist/cdn/chunks/{CloudEditor-CTNhzoZ1.js → CloudEditor-ulKjC0Ag.js} +253 -166
  34. package/dist/cdn/chunks/CloudEditor-ulKjC0Ag.js.map +1 -0
  35. package/dist/cdn/chunks/{CollaboratorBar-De-3lvDy.js → CollaboratorBar-Bp9LwcWB.js} +6 -6
  36. package/dist/cdn/chunks/{CollaboratorBar-De-3lvDy.js.map → CollaboratorBar-Bp9LwcWB.js.map} +1 -1
  37. package/dist/cdn/chunks/{CountdownBlock-CUAl8R-c.js → CountdownBlock-XFPbUKXw.js} +2 -2
  38. package/dist/cdn/chunks/{CountdownBlock-CUAl8R-c.js.map → CountdownBlock-XFPbUKXw.js.map} +1 -1
  39. package/dist/cdn/chunks/{CountdownToolbar-3zLcGAcb.js → CountdownToolbar-DndLWUgz.js} +3 -3
  40. package/dist/cdn/chunks/{CountdownToolbar-3zLcGAcb.js.map → CountdownToolbar-DndLWUgz.js.map} +1 -1
  41. package/dist/cdn/chunks/{ModuleBrowserModal-CxICY31A.js → ModuleBrowserModal-ClY6A8bi.js} +7 -7
  42. package/dist/cdn/chunks/{ModuleBrowserModal-CxICY31A.js.map → ModuleBrowserModal-ClY6A8bi.js.map} +1 -1
  43. package/dist/cdn/chunks/{ModulePreviewCanvas-Cv0zciNS.js → ModulePreviewCanvas-eQExlHRD.js} +18 -18
  44. package/dist/cdn/chunks/{ModulePreviewCanvas-Cv0zciNS.js.map → ModulePreviewCanvas-eQExlHRD.js.map} +1 -1
  45. package/dist/cdn/chunks/{NumberWithSuffix-BaVxnNI4.js → NumberWithSuffix-Cf5C9rpj.js} +4 -4
  46. package/dist/cdn/chunks/{NumberWithSuffix-BaVxnNI4.js.map → NumberWithSuffix-Cf5C9rpj.js.map} +1 -1
  47. package/dist/cdn/chunks/{ParagraphEditor-BrzlI8vp.js → ParagraphEditor-B5AvuetS.js} +57 -57
  48. package/dist/cdn/chunks/ParagraphEditor-B5AvuetS.js.map +1 -0
  49. package/dist/cdn/chunks/{RichTextEditorContent-9vq4MRDp.js → RichTextEditorContent-hCk4SA8U.js} +4 -4
  50. package/dist/cdn/chunks/{RichTextEditorContent-9vq4MRDp.js.map → RichTextEditorContent-hCk4SA8U.js.map} +1 -1
  51. package/dist/cdn/chunks/{SaveModuleDialog-Lco3k1xX.js → SaveModuleDialog-Borv00Kh.js} +3 -3
  52. package/dist/cdn/chunks/{SaveModuleDialog-Lco3k1xX.js.map → SaveModuleDialog-Borv00Kh.js.map} +1 -1
  53. package/dist/cdn/chunks/{TitleEditor-BiiEtH7x.js → TitleEditor-BkzRNsEg.js} +12 -12
  54. package/dist/cdn/chunks/TitleEditor-BkzRNsEg.js.map +1 -0
  55. package/dist/cdn/chunks/blockTypeIcons-Dlw0LR_y.js +22 -0
  56. package/dist/cdn/chunks/{blockTypeIcons-DWhn7E7O.js.map → blockTypeIcons-Dlw0LR_y.js.map} +1 -1
  57. package/dist/cdn/chunks/{de-CGu9U1iv.js → de-Ce-LbJ2J.js} +1 -1
  58. package/dist/cdn/chunks/{de-CGu9U1iv.js.map → de-Ce-LbJ2J.js.map} +1 -1
  59. package/dist/{de-tDioEErp.js → cdn/chunks/de-D8CnZxV9.js} +24 -4
  60. package/dist/cdn/chunks/de-D8CnZxV9.js.map +1 -0
  61. package/dist/{de-CbSb23fl.js → cdn/chunks/de-RQrZR56a.js} +8 -0
  62. package/dist/cdn/chunks/{de-Db6I9YdS.js.map → de-RQrZR56a.js.map} +1 -1
  63. package/dist/cdn/chunks/{emojiData-Vv_m5TSB.js → emojiData-EMFlj6FJ.js} +1 -1
  64. package/dist/cdn/chunks/{emojiData-Vv_m5TSB.js.map → emojiData-EMFlj6FJ.js.map} +1 -1
  65. package/dist/{en-W2p7oPaa.js → cdn/chunks/en-8FHaQv4V.js} +24 -4
  66. package/dist/cdn/chunks/en-8FHaQv4V.js.map +1 -0
  67. package/dist/{en-2fvenFu0.js → cdn/chunks/en-Bl1ecfRF.js} +8 -0
  68. package/dist/cdn/chunks/{en-BbqBJ2Q3.js.map → en-Bl1ecfRF.js.map} +1 -1
  69. package/dist/cdn/chunks/{en-C3WMCISl.js → en-DiCWK5fG.js} +1 -1
  70. package/dist/cdn/chunks/{en-C3WMCISl.js.map → en-DiCWK5fG.js.map} +1 -1
  71. package/dist/cdn/chunks/{extensions-C6oPJqKD.js → extensions-Bseybosy.js} +48 -36
  72. package/dist/cdn/chunks/{extensions-C6oPJqKD.js.map → extensions-Bseybosy.js.map} +1 -1
  73. package/dist/cdn/chunks/{features-DV4PhoBs.js → features-C256qERn.js} +828 -765
  74. package/dist/cdn/chunks/features-C256qERn.js.map +1 -0
  75. package/dist/cdn/chunks/{icons-LJ8U8lWI.js → icons-BfGy6HC_.js} +99 -52
  76. package/dist/cdn/chunks/icons-BfGy6HC_.js.map +1 -0
  77. package/dist/cdn/chunks/{media-library-CWQAvfov.js → media-library-hjXJlR6s.js} +217 -217
  78. package/dist/cdn/chunks/{media-library-CWQAvfov.js.map → media-library-hjXJlR6s.js.map} +1 -1
  79. package/dist/cdn/chunks/quality-CqLOOUnE.js +1404 -0
  80. package/dist/cdn/chunks/quality-CqLOOUnE.js.map +1 -0
  81. package/dist/cdn/chunks/{readableTextColor-Cd_cgWO_.js → readableTextColor-DhoK4XiZ.js} +1 -1
  82. package/dist/cdn/chunks/{readableTextColor-Cd_cgWO_.js.map → readableTextColor-DhoK4XiZ.js.map} +1 -1
  83. package/dist/cdn/chunks/{dist-DFfcnJJB.js → renderer-Dbtez0lY.js} +178 -126
  84. package/dist/cdn/chunks/renderer-Dbtez0lY.js.map +1 -0
  85. package/dist/cdn/chunks/{src-CVBDXDBH.js → src-MOXq0pRK.js} +11 -11
  86. package/dist/cdn/chunks/{src-CVBDXDBH.js.map → src-MOXq0pRK.js.map} +1 -1
  87. package/dist/cdn/chunks/{styles-CFnn-xE6.js → styles-COCYlkQY.js} +577 -485
  88. package/dist/cdn/chunks/styles-COCYlkQY.js.map +1 -0
  89. package/dist/cdn/chunks/{tiptap-kGWe8qnA.js → tiptap-CX3vCeHQ.js} +2 -2
  90. package/dist/cdn/chunks/{tiptap-kGWe8qnA.js.map → tiptap-CX3vCeHQ.js.map} +1 -1
  91. package/dist/cdn/editor.css +1 -1
  92. package/dist/cdn/editor.js +87 -86
  93. package/dist/cdn/editor.js.map +1 -1
  94. package/dist/{check-Om8IxvJb.js → check-Da05j8yl.js} +1 -1
  95. package/dist/{chevron-down-SG7QNtDl.js → chevron-down-R2uY34iD.js} +1 -1
  96. package/dist/{circle-alert-De74azaX.js → circle-alert-DZuGWPX-.js} +1 -1
  97. package/dist/{clock-Dr7rX_PG.js → clock-CRp2sIub.js} +1 -1
  98. package/dist/{cloud-B1NAFg44.js → cloud-WfWdqZVK.js} +1 -1
  99. package/dist/{_plugin-vue_export-helper-GRmvIR5A.js → createLucideIcon-C3pa2siy.js} +2 -6
  100. package/dist/{cdn/chunks/de-DEg-6TsA.js → de-Brqvgr43.js} +22 -6
  101. package/dist/{cdn/chunks/de-Db6I9YdS.js → de-DCaaCE5s.js} +6 -2
  102. package/dist/{dist-CuyhAnuE.js → dist-B1IR0bpH.js} +65 -53
  103. package/dist/{dist-QoJxR1uP.js → dist-BFawx6IS.js} +1 -1
  104. package/dist/{dist-H7npgW0s.js → dist-BaQIYPsn.js} +1 -1
  105. package/dist/{dist-C4m7p7Wb.js → dist-Cp0zXPAD.js} +1 -1
  106. package/dist/{dist--8ZUsIQD.js → dist-D6uC2xhi.js} +1 -1
  107. package/dist/{dist-BMMiVjHs.js → dist-D90y8dvT.js} +3 -3
  108. package/dist/{dist--e2w6FN-.js → dist-DDJIWTRY.js} +1 -1
  109. package/dist/{dist-e0ylhlSV.js → dist-DJmnUmW9.js} +2 -1
  110. package/dist/{dist-BOSn1353.js → dist-DjviJBCi.js} +1 -1
  111. package/dist/{dist-BsiDC2rP.js → dist-KoBJjK1G.js} +1 -1
  112. package/dist/{dist-BNZS_qhu.js → dist-aRzjfSRN.js} +1 -1
  113. package/dist/{dist-3AzSJz2x.js → dist-us-RpCWN.js} +1 -1
  114. package/dist/{dist-DPsMHsAW.js → dist-wzMIGj-D.js} +1 -1
  115. package/dist/{cdn/chunks/en-BbqBJ2Q3.js → en-DXCyK4-X.js} +6 -2
  116. package/dist/{cdn/chunks/en-DpHxxBnH.js → en-WDVp87TE.js} +22 -6
  117. package/dist/{extensions-BQjnrlGT.js → extensions-CUcl9Ok4.js} +37 -25
  118. package/dist/{image-up-10kxuulB.js → image-up-MBZKKg9p.js} +1 -1
  119. package/dist/index.d.ts +25 -8
  120. package/dist/info-CJEC7piy.js +19 -0
  121. package/dist/{keys-BeW4IrXP.js → keys-ciNfSSGj.js} +3 -3
  122. package/dist/{loader-circle-IS16T05j.js → loader-circle-DsY5Yg33.js} +1 -1
  123. package/dist/{message-circle-3R472hDc.js → message-circle-yElBbR2C.js} +1 -1
  124. package/dist/{refresh-cw-CpmOfpPK.js → refresh-cw-CE_AGtn8.js} +3 -18
  125. package/dist/{scan-line-J_fzG2Wo.js → scan-line-D0vcUekt.js} +1 -1
  126. package/dist/{send-DRkFf4hP.js → send-DH4oDQqC.js} +1 -1
  127. package/dist/{shield-check-DtXk7JKN.js → shield-check-CfJgs2Hd.js} +1 -1
  128. package/dist/{sparkles-CD7TiNiC.js → sparkles-CvRXGqFs.js} +1 -1
  129. package/dist/style.css +1 -1
  130. package/dist/{styles-CdrFC7-K.js → styles-B58wYIn4.js} +590 -477
  131. package/dist/templatical-editor.js +90 -89
  132. package/dist/{text-align-start-B8M9hruh.js → text-align-start-BT9VUDxK.js} +1 -1
  133. package/dist/{trash-2-cEVwp-r_.js → trash-2-DbP2Y6t2.js} +1 -1
  134. package/dist/{triangle-alert-8CkexIzx.js → triangle-alert-aOXceTSe.js} +1 -1
  135. package/dist/{useCloudI18n-D0Fi0hBU.js → useCloudI18n-BuIwR6OE.js} +1 -1
  136. package/dist/{useEditorCore-JdLcaPeJ.js → useEditorCore-Dz-qbVXX.js} +2100 -2049
  137. package/dist/{useI18n-Jp3X6Q0t.js → useI18n-lb2DHDiu.js} +1 -1
  138. package/dist/{useMergeTag-BfFykpYl.js → useMergeTag-CBwKnnNB.js} +4 -4
  139. package/dist/{x-BNc1bVzp.js → x-u2oVmjN_.js} +1 -1
  140. package/package.json +10 -5
  141. package/dist/cdn/chunks/CloudEditor-CTNhzoZ1.js.map +0 -1
  142. package/dist/cdn/chunks/ParagraphEditor-BrzlI8vp.js.map +0 -1
  143. package/dist/cdn/chunks/TitleEditor-BiiEtH7x.js.map +0 -1
  144. package/dist/cdn/chunks/blockTypeIcons-DWhn7E7O.js +0 -22
  145. package/dist/cdn/chunks/de-DEg-6TsA.js.map +0 -1
  146. package/dist/cdn/chunks/dist-DFfcnJJB.js.map +0 -1
  147. package/dist/cdn/chunks/en-DpHxxBnH.js.map +0 -1
  148. package/dist/cdn/chunks/features-DV4PhoBs.js.map +0 -1
  149. package/dist/cdn/chunks/icons-LJ8U8lWI.js.map +0 -1
  150. package/dist/cdn/chunks/styles-CFnn-xE6.js.map +0 -1
  151. /package/dist/{dist-CmrXHeJS.js → dist-iLBdeBDR.js} +0 -0
  152. /package/dist/{emojiData-DcYt1YZ3.js → emojiData-PQyVa4bU.js} +0 -0
  153. /package/dist/{formatRelativeTime-MungD2xr.js → formatRelativeTime-WvH3Au71.js} +0 -0
  154. /package/dist/{liquid.browser-BohVA1YU.js → liquid.browser-CdMv1BTn.js} +0 -0
  155. /package/dist/{readableTextColor-Uc7ntzXo.js → readableTextColor-CY3SiRnt.js} +0 -0
  156. /package/dist/{styleConstants-Beu6EmBc.js → styleConstants-fWzlIIwN.js} +0 -0
@@ -1,33 +1,51 @@
1
1
  import { a as e } from "./rolldown-runtime-BZGGJVDF.js";
2
2
  import { Dt as t, E as n, F as r, H as i, L as a, M as o, Mt as s, O as c, Ot as l, P as u, Q as d, S as f, V as p, X as m, _ as h, b as g, c as _, d as v, g as y, h as b, it as x, l as S, m as C, p as w, s as T, t as E, u as D, x as O, y as k, z as A } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
3
- import { C as j, D as ee, E as M, S as N, a as P, l as te, n as ne, o as re } from "./dist-e0ylhlSV.js";
4
- import { A as ie, F, I as ae, M as oe, N as se, T as ce, _ as le, a as ue, c as de, d as fe, g as pe, h as me, i as he, j as ge, k as _e, l as ve, m as ye, n as be, o as xe, p as Se, r as Ce, s as we, u as Te, v as Ee, y as De } from "./useEditorCore-JdLcaPeJ.js";
5
- import { s as Oe } from "./dist-CuyhAnuE.js";
6
- import { D as ke, a as Ae, b as je, d as Me, f as Ne, m as Pe, n as Fe, o as Ie, p as Le, s as Re, u as ze, y as Be } from "./keys-BeW4IrXP.js";
7
- import { t as I } from "./useI18n-Jp3X6Q0t.js";
8
- import { n as L, t as R } from "./_plugin-vue_export-helper-GRmvIR5A.js";
9
- import { t as Ve } from "./chevron-down-SG7QNtDl.js";
10
- import { t as He } from "./circle-alert-De74azaX.js";
11
- import { n as Ue, r as z, t as B } from "./blockTypeIcons-DpJa9awv.js";
12
- import { n as We, r as Ge, t as Ke } from "./refresh-cw-CpmOfpPK.js";
13
- import { t as qe } from "./image-up-10kxuulB.js";
14
- import { t as Je } from "./scan-line-J_fzG2Wo.js";
15
- import { t as Ye } from "./sparkles-CD7TiNiC.js";
16
- import { n as Xe, r as Ze, t as Qe } from "./text-align-start-B8M9hruh.js";
17
- import { t as $e } from "./trash-2-cEVwp-r_.js";
18
- import { t as et } from "./x-BNc1bVzp.js";
19
- import { t as tt } from "./useCloudI18n-D0Fi0hBU.js";
20
- import { t as nt } from "./useMergeTag-BfFykpYl.js";
21
- import { t as rt } from "./readableTextColor-Uc7ntzXo.js";
22
- import { t as it } from "./CountdownBlock-Ce3RFNpM.js";
23
- import { _ as at, c as ot, f as V, g as st, h as H, l as ct, m as U, p as W, t as lt } from "./styleConstants-Beu6EmBc.js";
24
- import { i as G, n as K, r as q, t as ut } from "./NumberWithSuffix-BysfchFp.js";
25
- var dt = L("circle", [["circle", {
3
+ import { C as j, D as ee, E as M, S as N, a as P, l as te, n as ne, o as re } from "./dist-DJmnUmW9.js";
4
+ import { A as ie, F, I as ae, M as oe, N as se, T as ce, _ as le, a as ue, c as de, d as fe, g as pe, h as me, i as he, j as ge, k as _e, l as ve, m as ye, n as be, o as xe, p as Se, r as Ce, s as we, u as Te, v as Ee, y as De } from "./useEditorCore-Dz-qbVXX.js";
5
+ import { s as Oe } from "./dist-B1IR0bpH.js";
6
+ import { O as ke, b as Ae, c as je, d as Me, f as Ne, h as Pe, m as Fe, o as Ie, p as Le, r as Re, s as ze, t as Be, x as Ve } from "./keys-ciNfSSGj.js";
7
+ import { t as I } from "./useI18n-lb2DHDiu.js";
8
+ import { t as L } from "./createLucideIcon-C3pa2siy.js";
9
+ import { t as He } from "./accessibility-e8JYu_zd.js";
10
+ import { t as Ue } from "./chevron-down-R2uY34iD.js";
11
+ import { t as We } from "./circle-alert-DZuGWPX-.js";
12
+ import { n as Ge, r as R, t as Ke } from "./blockTypeIcons-D0wkSpP9.js";
13
+ import { n as qe, t as Je } from "./refresh-cw-CE_AGtn8.js";
14
+ import { t as Ye } from "./image-up-MBZKKg9p.js";
15
+ import { t as Xe } from "./info-CJEC7piy.js";
16
+ import { t as Ze } from "./scan-line-D0vcUekt.js";
17
+ import { t as Qe } from "./sparkles-CvRXGqFs.js";
18
+ import { n as z, r as $e, t as et } from "./text-align-start-BT9VUDxK.js";
19
+ import { t as tt } from "./trash-2-DbP2Y6t2.js";
20
+ import { t as nt } from "./x-u2oVmjN_.js";
21
+ import { t as B } from "./_plugin-vue_export-helper-B0hnzhyu.js";
22
+ import { t as rt } from "./useCloudI18n-BuIwR6OE.js";
23
+ import { t as it } from "./useMergeTag-CBwKnnNB.js";
24
+ import { t as at } from "./readableTextColor-CY3SiRnt.js";
25
+ import { t as ot } from "./CountdownBlock-BNSj1jvJ.js";
26
+ import { _ as st, c as ct, f as V, g as lt, h as H, l as ut, m as U, p as W, t as dt } from "./styleConstants-fWzlIIwN.js";
27
+ import { i as G, n as K, r as q, t as ft } from "./NumberWithSuffix-DkXUez9t.js";
28
+ var pt = L("circle", [["circle", {
26
29
  cx: "12",
27
30
  cy: "12",
28
31
  r: "10",
29
32
  key: "1mglay"
30
- }]]), ft = L("layout-template", [
33
+ }]]), mt = L("globe", [
34
+ ["circle", {
35
+ cx: "12",
36
+ cy: "12",
37
+ r: "10",
38
+ key: "1mglay"
39
+ }],
40
+ ["path", {
41
+ d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",
42
+ key: "13o1zl"
43
+ }],
44
+ ["path", {
45
+ d: "M2 12h20",
46
+ key: "9i4pu4"
47
+ }]
48
+ ]), ht = L("layout-template", [
31
49
  ["rect", {
32
50
  width: "18",
33
51
  height: "7",
@@ -52,7 +70,7 @@ var dt = L("circle", [["circle", {
52
70
  rx: "1",
53
71
  key: "q5h2i8"
54
72
  }]
55
- ]), pt = L("lock-open", [["rect", {
73
+ ]), gt = L("lock-open", [["rect", {
56
74
  width: "18",
57
75
  height: "11",
58
76
  x: "3",
@@ -63,7 +81,7 @@ var dt = L("circle", [["circle", {
63
81
  }], ["path", {
64
82
  d: "M7 11V7a5 5 0 0 1 9.9-1",
65
83
  key: "1mm8w8"
66
- }]]), mt = L("lock", [["rect", {
84
+ }]]), _t = L("lock", [["rect", {
67
85
  width: "18",
68
86
  height: "11",
69
87
  x: "3",
@@ -74,7 +92,7 @@ var dt = L("circle", [["circle", {
74
92
  }], ["path", {
75
93
  d: "M7 11V7a5 5 0 0 1 10 0v4",
76
94
  key: "fwvmzm"
77
- }]]), ht = L("monitor", [
95
+ }]]), vt = L("monitor", [
78
96
  ["rect", {
79
97
  width: "20",
80
98
  height: "14",
@@ -97,10 +115,10 @@ var dt = L("circle", [["circle", {
97
115
  y2: "21",
98
116
  key: "vw1qmm"
99
117
  }]
100
- ]), gt = L("moon", [["path", {
118
+ ]), yt = L("moon", [["path", {
101
119
  d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",
102
120
  key: "kfwtm"
103
- }]]), _t = L("panel-top", [["rect", {
121
+ }]]), bt = L("panel-top", [["rect", {
104
122
  width: "18",
105
123
  height: "18",
106
124
  x: "3",
@@ -116,13 +134,13 @@ var dt = L("circle", [["circle", {
116
134
  }], ["path", {
117
135
  d: "M12 5v14",
118
136
  key: "s699le"
119
- }]]), vt = L("rotate-ccw", [["path", {
137
+ }]]), xt = L("rotate-ccw", [["path", {
120
138
  d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
121
139
  key: "1357e3"
122
140
  }], ["path", {
123
141
  d: "M3 3v5h5",
124
142
  key: "1xhq8a"
125
- }]]), yt = L("settings", [["path", {
143
+ }]]), St = L("settings", [["path", {
126
144
  d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
127
145
  key: "1i5ecw"
128
146
  }], ["circle", {
@@ -130,7 +148,7 @@ var dt = L("circle", [["circle", {
130
148
  cy: "12",
131
149
  r: "3",
132
150
  key: "1v7zrd"
133
- }]]), bt = L("smartphone", [["rect", {
151
+ }]]), Ct = L("smartphone", [["rect", {
134
152
  width: "14",
135
153
  height: "20",
136
154
  x: "5",
@@ -141,7 +159,7 @@ var dt = L("circle", [["circle", {
141
159
  }], ["path", {
142
160
  d: "M12 18h.01",
143
161
  key: "mhygvu"
144
- }]]), xt = L("square-plus", [
162
+ }]]), wt = L("square-plus", [
145
163
  ["rect", {
146
164
  width: "18",
147
165
  height: "18",
@@ -158,14 +176,14 @@ var dt = L("circle", [["circle", {
158
176
  d: "M12 8v8",
159
177
  key: "napkw2"
160
178
  }]
161
- ]), St = L("square", [["rect", {
179
+ ]), Tt = L("square", [["rect", {
162
180
  width: "18",
163
181
  height: "18",
164
182
  x: "3",
165
183
  y: "3",
166
184
  rx: "2",
167
185
  key: "afitv7"
168
- }]]), Ct = L("sun", [
186
+ }]]), Et = L("sun", [
169
187
  ["circle", {
170
188
  cx: "12",
171
189
  cy: "12",
@@ -204,7 +222,7 @@ var dt = L("circle", [["circle", {
204
222
  d: "m19.07 4.93-1.41 1.41",
205
223
  key: "1shlcs"
206
224
  }]
207
- ]), wt = L("tablet", [["rect", {
225
+ ]), Dt = L("tablet", [["rect", {
208
226
  width: "16",
209
227
  height: "20",
210
228
  x: "4",
@@ -218,19 +236,30 @@ var dt = L("circle", [["circle", {
218
236
  y1: "18",
219
237
  y2: "18",
220
238
  key: "1dp563"
221
- }]]), Tt = /* @__PURE__ */ e(ve(), 1), Et = ["aria-label"], Dt = { class: "tpl:relative" }, Ot = {
239
+ }]]);
240
+ //#endregion
241
+ //#region src/utils/resolveAccessibilityOptions.ts
242
+ function Ot(e) {
243
+ return {
244
+ ...e.accessibility,
245
+ locale: e.locale
246
+ };
247
+ }
248
+ //#endregion
249
+ //#region src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
250
+ var kt = /* @__PURE__ */ e(ve(), 1), At = ["aria-label"], jt = { class: "tpl:relative" }, Mt = {
222
251
  class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
223
252
  style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
224
- }, kt = {
253
+ }, Nt = {
225
254
  key: 0,
226
255
  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)]"
227
- }, 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 = {
256
+ }, Pt = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, Ft = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, It = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, Lt = {
228
257
  key: 0,
229
258
  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)]"
230
- }, Pt = {
259
+ }, Rt = {
231
260
  key: 1,
232
261
  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)]"
233
- }, Ft = /* @__PURE__ */ R(/* @__PURE__ */ f({
262
+ }, zt = /* @__PURE__ */ B(/* @__PURE__ */ f({
234
263
  __name: "Canvas",
235
264
  props: {
236
265
  viewport: {},
@@ -259,9 +288,9 @@ var dt = L("circle", [["circle", {
259
288
  menu: me,
260
289
  table: Ce,
261
290
  video: be,
262
- countdown: it,
291
+ countdown: ot,
263
292
  custom: De
264
- }, u = e, d = r, { t: f } = I(), { t: m } = tt(), v = ke(Le, "Canvas"), S = n(ze, null), T = n(Ie, null), E = n(Re, {}), D = w(() => (E.plan?.hasFeature("ai_generation") ?? !1) && (E.ai?.isFeatureEnabled("chat") ?? !1)), O = w(() => (E.plan?.hasFeature("ai_generation") ?? !1) && (E.ai?.isFeatureEnabled("designToTemplate") ?? !1)), A = w({
293
+ }, u = e, d = r, { t: f } = I(), { t: m } = rt(), v = ke(Fe, "Canvas"), S = n(Me, null), T = n(ze, null), E = n(je, {}), D = w(() => (E.plan?.hasFeature("ai_generation") ?? !1) && (E.ai?.isFeatureEnabled("chat") ?? !1)), O = w(() => (E.plan?.hasFeature("ai_generation") ?? !1) && (E.ai?.isFeatureEnabled("designToTemplate") ?? !1)), A = w({
265
294
  get: () => u.content.blocks,
266
295
  set: (e) => {
267
296
  v.setContent({
@@ -313,7 +342,7 @@ var dt = L("circle", [["circle", {
313
342
  }]),
314
343
  style: l(ee.value),
315
344
  onClick: M
316
- }, [g(x(Tt.default), {
345
+ }, [g(x(kt.default), {
317
346
  modelValue: A.value,
318
347
  "onUpdate:modelValue": r[2] ||= (e) => A.value = e,
319
348
  group: "blocks",
@@ -327,7 +356,7 @@ var dt = L("circle", [["circle", {
327
356
  disabled: e.previewMode,
328
357
  class: "tpl-canvas-blocks"
329
358
  }, {
330
- item: p(({ element: t }) => [i(C("div", null, [C("div", Dt, [P(t.id) ? (o(), h("div", {
359
+ item: p(({ element: t }) => [i(C("div", null, [C("div", jt, [P(t.id) ? (o(), h("div", {
331
360
  key: 0,
332
361
  class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
333
362
  style: l({
@@ -338,9 +367,9 @@ var dt = L("circle", [["circle", {
338
367
  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",
339
368
  style: l({
340
369
  backgroundColor: P(t.id).color,
341
- color: x(rt)(P(t.id).color)
370
+ color: x(at)(P(t.id).color)
342
371
  })
343
- }, [C("span", Ot, s(P(t.id).name.charAt(0)), 1), k(" " + s(P(t.id).name), 1)], 4)], 4)) : y("", !0), g(fe, {
372
+ }, [C("span", Mt, s(P(t.id).name.charAt(0)), 1), k(" " + s(P(t.id).name), 1)], 4)], 4)) : y("", !0), g(fe, {
344
373
  block: t,
345
374
  "is-selected": !e.previewMode && e.selectedBlockId === t.id && !P(t.id),
346
375
  viewport: e.viewport,
@@ -366,30 +395,30 @@ var dt = L("circle", [["circle", {
366
395
  "preview-mode",
367
396
  "onSelect"
368
397
  ])])], 512), [[_, !x(S)?.isHidden(t.id)]])]),
369
- footer: p(() => [A.value.length === 0 && !e.previewMode ? (o(), h("div", kt, [
370
- C("div", At, [g(x(xt), {
398
+ footer: p(() => [A.value.length === 0 && !e.previewMode ? (o(), h("div", Nt, [
399
+ C("div", Pt, [g(x(wt), {
371
400
  size: 48,
372
401
  "stroke-width": 1
373
402
  })]),
374
- C("p", jt, s(x(f).canvas.noBlocks), 1),
375
- C("p", Mt, s(x(f).canvas.dragHint), 1),
376
- D.value && x(m) ? (o(), h("p", Nt, [
403
+ C("p", Ft, s(x(f).canvas.noBlocks), 1),
404
+ C("p", It, s(x(f).canvas.dragHint), 1),
405
+ D.value && x(m) ? (o(), h("p", Lt, [
377
406
  k(s(x(f).canvas.aiHintChat) + " ", 1),
378
407
  C("button", {
379
408
  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)]",
380
409
  onClick: r[0] ||= (e) => d("open-ai-chat")
381
- }, [g(x(Ye), {
410
+ }, [g(x(Qe), {
382
411
  size: 14,
383
412
  "stroke-width": 2
384
413
  }), k(" " + s(x(m).aiMenu.aiAssistant), 1)]),
385
414
  k(" " + s(x(f).canvas.aiHintChatSuffix), 1)
386
415
  ])) : y("", !0),
387
- O.value && x(m) ? (o(), h("p", Pt, [
416
+ O.value && x(m) ? (o(), h("p", Rt, [
388
417
  k(s(x(f).canvas.aiHintDesign) + " ", 1),
389
418
  C("button", {
390
419
  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)]",
391
420
  onClick: r[1] ||= (e) => d("open-design-reference")
392
- }, [g(x(qe), {
421
+ }, [g(x(Ye), {
393
422
  size: 14,
394
423
  "stroke-width": 2
395
424
  }), k(" " + s(x(m).aiMenu.designToTemplate), 1)]),
@@ -397,29 +426,29 @@ var dt = L("circle", [["circle", {
397
426
  ])) : y("", !0)
398
427
  ])) : y("", !0)]),
399
428
  _: 1
400
- }, 8, ["modelValue", "disabled"])], 6)], 12, Et));
429
+ }, 8, ["modelValue", "disabled"])], 6)], 12, At));
401
430
  }
402
- }), [["__scopeId", "data-v-5a826917"]]), It = ["aria-label"], Lt = {
431
+ }), [["__scopeId", "data-v-5a826917"]]), Bt = ["aria-label"], Vt = {
403
432
  key: 0,
404
433
  class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
405
- }, Rt = ["aria-label"], zt = {
434
+ }, Ht = ["aria-label"], Ut = {
406
435
  key: 0,
407
436
  class: "tpl:flex-1 tpl:truncate tpl:text-sm tpl:font-medium"
408
- }, Bt = {
437
+ }, Wt = {
409
438
  key: 1,
410
439
  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)]"
411
- }, Vt = [
440
+ }, Gt = [
412
441
  "data-palette-type",
413
442
  "aria-label",
414
443
  "onClick",
415
444
  "onKeydown"
416
- ], 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 = {
445
+ ], Kt = { 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" }, qt = {
417
446
  key: 0,
418
447
  class: "tpl:truncate tpl:text-sm tpl:font-medium"
419
- }, Wt = /* @__PURE__ */ f({
448
+ }, Jt = /* @__PURE__ */ f({
420
449
  __name: "Sidebar",
421
450
  setup(e) {
422
- let { t, format: r } = I(), { t: i } = tt(), c = n(Me, []), u = n(Ae, void 0), f = n(Le, null), m = n(Re, {}), _ = w(() => (m.savedModules?.moduleCount.value ?? 0) > 0), v = d(!1), S = [
451
+ let { t, format: r } = I(), { t: i } = rt(), c = n(Ne, []), u = n(Ie, void 0), f = n(Fe, null), m = n(je, {}), _ = w(() => (m.savedModules?.moduleCount.value ?? 0) > 0), v = d(!1), S = [
423
452
  "section",
424
453
  "image",
425
454
  "title",
@@ -476,21 +505,21 @@ var dt = L("circle", [["circle", {
476
505
  onMouseleave: n[2] ||= (e) => v.value = !1,
477
506
  onFocusin: n[3] ||= (e) => v.value = !0,
478
507
  onFocusout: n[4] ||= (e) => v.value = !1
479
- }, [_.value && x(i) ? (o(), h("div", Lt, [C("button", {
508
+ }, [_.value && x(i) ? (o(), h("div", Vt, [C("button", {
480
509
  type: "button",
481
510
  "aria-label": x(t).sidebarNav.browseModules,
482
511
  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)]",
483
512
  style: l({ justifyContent: v.value ? "flex-start" : "center" }),
484
513
  onClick: n[0] ||= (e) => x(m).savedModules?.openBrowser()
485
514
  }, [
486
- g(x(Ue), {
515
+ g(x(Ge), {
487
516
  size: 20,
488
517
  "stroke-width": 1.5,
489
518
  class: "tpl:shrink-0"
490
519
  }),
491
- v.value ? (o(), h("span", zt, s(x(i).modules.title), 1)) : y("", !0),
492
- v.value ? (o(), h("span", Bt, s(x(m).savedModules?.moduleCount.value ?? 0), 1)) : y("", !0)
493
- ], 12, Rt)])) : y("", !0), g(x(Tt.default), {
520
+ v.value ? (o(), h("span", Ut, s(x(i).modules.title), 1)) : y("", !0),
521
+ v.value ? (o(), h("span", Wt, s(x(m).savedModules?.moduleCount.value ?? 0), 1)) : y("", !0)
522
+ ], 12, Ht)])) : y("", !0), g(x(kt.default), {
494
523
  list: D.value,
495
524
  group: {
496
525
  name: "blocks",
@@ -512,7 +541,7 @@ var dt = L("circle", [["circle", {
512
541
  style: l({ justifyContent: v.value ? "flex-start" : "center" }),
513
542
  onClick: (t) => k(e),
514
543
  onKeydown: (t) => A(t, e)
515
- }, [C("div", Ht, [x(B)[e.type] ? (o(), b(a(x(B)[e.type]), {
544
+ }, [C("div", Kt, [x(Ke)[e.type] ? (o(), b(a(x(Ke)[e.type]), {
516
545
  key: 0,
517
546
  size: 20,
518
547
  "stroke-width": 1.5
@@ -520,15 +549,15 @@ var dt = L("circle", [["circle", {
520
549
  key: 1,
521
550
  icon: e.icon,
522
551
  size: 20
523
- }, null, 8, ["icon"])) : y("", !0)]), v.value ? (o(), h("span", Ut, s(e.label), 1)) : y("", !0)], 44, Vt)]),
552
+ }, null, 8, ["icon"])) : y("", !0)]), v.value ? (o(), h("span", qt, s(e.label), 1)) : y("", !0)], 44, Gt)]),
524
553
  _: 1
525
- }, 8, ["list"])], 44, It));
554
+ }, 8, ["list"])], 44, Bt));
526
555
  }
527
556
  });
528
557
  //#endregion
529
558
  //#region src/composables/useMergeTagField.ts
530
- function Gt(e) {
531
- let { modelValue: t, emit: n, elementRef: r } = e, { isEnabled: i, isRequesting: a, isMergeTagValue: o, getMergeTagLabel: s, requestMergeTag: l, syntax: u } = nt(), f = d(!1), p = !1, m = w(() => {
559
+ function Yt(e) {
560
+ let { modelValue: t, emit: n, elementRef: r } = e, { canRequestMergeTag: i, isRequesting: a, isMergeTagValue: o, getMergeTagLabel: s, requestMergeTag: l, syntax: u } = it(), f = d(!1), p = !1, m = w(() => {
532
561
  let e = t();
533
562
  if (!e) return [];
534
563
  let n = [], r = `(${u.value.source}|${u.logic.source})`, i = new RegExp(r, "g"), a = 0, c;
@@ -592,7 +621,7 @@ function Gt(e) {
592
621
  return {
593
622
  segments: m,
594
623
  hasMergeTags: h,
595
- mergeTagEnabled: i,
624
+ canRequestMergeTag: i,
596
625
  isRequestingMergeTag: a,
597
626
  isEditing: f,
598
627
  startEditing: g,
@@ -604,10 +633,10 @@ function Gt(e) {
604
633
  }
605
634
  //#endregion
606
635
  //#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
607
- var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip"], Yt = {
636
+ var Xt = ["aria-label", "onKeydown"], Zt = ["data-tooltip"], Qt = ["data-tooltip"], $t = {
608
637
  key: 2,
609
638
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
610
- }, Xt = ["aria-label", "title"], Zt = /* @__PURE__ */ f({
639
+ }, en = ["aria-label", "title"], tn = /* @__PURE__ */ f({
611
640
  __name: "MergeTagSegments",
612
641
  props: {
613
642
  segments: {},
@@ -635,7 +664,7 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
635
664
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
636
665
  color: "var(--tpl-primary)"
637
666
  }
638
- }, s(e.label), 9, qt)) : e.type === "logicMergeTag" ? (o(), h("span", {
667
+ }, s(e.label), 9, Zt)) : e.type === "logicMergeTag" ? (o(), h("span", {
639
668
  key: 1,
640
669
  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",
641
670
  "data-tooltip": e.value,
@@ -644,22 +673,22 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
644
673
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
645
674
  color: "var(--tpl-primary)"
646
675
  }
647
- }, s(e.keyword), 9, Jt)) : (o(), h("span", Yt, s(e.value), 1))], 64))), 128)), C("button", {
676
+ }, s(e.keyword), 9, Qt)) : (o(), h("span", $t, s(e.value), 1))], 64))), 128)), C("button", {
648
677
  type: "button",
649
678
  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",
650
679
  "aria-label": x(i).mergeTag.remove,
651
680
  title: x(i).mergeTag.remove,
652
681
  onClick: c[0] ||= D((e) => r("clear"), ["stop"])
653
- }, [g(x(et), {
682
+ }, [g(x(nt), {
654
683
  size: 12,
655
684
  "stroke-width": 2.5
656
- })], 8, Xt)], 42, Kt));
685
+ })], 8, en)], 42, Xt));
657
686
  }
658
- }), Qt = [
687
+ }), nn = [
659
688
  "aria-label",
660
689
  "title",
661
690
  "disabled"
662
- ], $t = "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)]", en = /* @__PURE__ */ f({
691
+ ], rn = "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__ */ f({
663
692
  __name: "MergeTagInsertButton",
664
693
  props: { disabled: { type: Boolean } },
665
694
  emits: ["insert"],
@@ -667,21 +696,21 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
667
696
  let { t: n } = I();
668
697
  return (r, i) => (o(), h("button", {
669
698
  type: "button",
670
- class: t([$t, "tpl:mt-1.5"]),
699
+ class: t([rn, "tpl:mt-1.5"]),
671
700
  "aria-label": x(n).mergeTag.insert,
672
701
  title: x(n).mergeTag.insert,
673
702
  disabled: e.disabled,
674
703
  onClick: i[0] ||= (e) => r.$emit("insert")
675
- }, [g(x(Je), {
704
+ }, [g(x(Ze), {
676
705
  size: 12,
677
706
  "stroke-width": 2
678
- }), k(" " + s(x(n).mergeTag.insert), 1)], 10, Qt));
707
+ }), k(" " + s(x(n).mergeTag.insert), 1)], 10, nn));
679
708
  }
680
- }), tn = { key: 0 }, nn = { key: 1 }, rn = [
709
+ }), an = { key: 0 }, on = { key: 1 }, sn = [
681
710
  "value",
682
711
  "placeholder",
683
712
  "rows"
684
- ], an = "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)]", on = "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)]", sn = /* @__PURE__ */ f({
713
+ ], cn = "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)]", ln = "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)]", un = /* @__PURE__ */ f({
685
714
  __name: "MergeTagTextarea",
686
715
  props: {
687
716
  modelValue: {},
@@ -690,41 +719,41 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
690
719
  },
691
720
  emits: ["update:modelValue"],
692
721
  setup(e, { emit: n }) {
693
- let r = e, i = n, a = d(null), { segments: s, hasMergeTags: c, mergeTagEnabled: l, isRequestingMergeTag: u, isEditing: f, startEditing: p, stopEditing: m, handleInput: _, clearValue: v, insertMergeTag: w } = Gt({
722
+ let r = e, i = n, a = d(null), { segments: s, hasMergeTags: c, canRequestMergeTag: l, isRequestingMergeTag: u, isEditing: f, startEditing: p, stopEditing: m, handleInput: _, clearValue: v, insertMergeTag: w } = Yt({
694
723
  modelValue: () => r.modelValue,
695
724
  emit: (e) => i("update:modelValue", e),
696
725
  elementRef: a
697
726
  });
698
- return (n, r) => x(c) && !x(f) ? (o(), h("div", tn, [g(Zt, {
727
+ return (n, r) => x(c) && !x(f) ? (o(), h("div", an, [g(tn, {
699
728
  segments: x(s),
700
- "display-class": on,
729
+ "display-class": ln,
701
730
  onEdit: x(p),
702
731
  onClear: x(v)
703
732
  }, null, 8, [
704
733
  "segments",
705
734
  "onEdit",
706
735
  "onClear"
707
- ]), x(l) ? (o(), b(en, {
736
+ ]), x(l) ? (o(), b(Y, {
708
737
  key: 0,
709
738
  disabled: x(u),
710
739
  onInsert: x(w)
711
- }, null, 8, ["disabled", "onInsert"])) : y("", !0)])) : (o(), h("div", nn, [C("textarea", {
740
+ }, null, 8, ["disabled", "onInsert"])) : y("", !0)])) : (o(), h("div", on, [C("textarea", {
712
741
  ref_key: "textareaRef",
713
742
  ref: a,
714
- class: t(an),
743
+ class: t(cn),
715
744
  value: e.modelValue,
716
745
  placeholder: e.placeholder,
717
746
  rows: e.rows,
718
747
  onInput: r[0] ||= (...e) => x(_) && x(_)(...e),
719
748
  onBlur: r[1] ||= (...e) => x(m) && x(m)(...e),
720
749
  onKeydown: r[2] ||= S((...e) => x(m) && x(m)(...e), ["escape"])
721
- }, null, 40, rn), x(l) ? (o(), b(en, {
750
+ }, null, 40, sn), x(l) ? (o(), b(Y, {
722
751
  key: 0,
723
752
  disabled: x(u),
724
753
  onInsert: x(w)
725
754
  }, null, 8, ["disabled", "onInsert"])) : y("", !0)]));
726
755
  }
727
- }), cn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, ln = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, un = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, dn = { class: "tpl:mb-3.5" }, fn = { 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)]" }, pn = ["onClick"], mn = { class: "tpl:flex tpl:items-stretch" }, 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:mb-3.5" }, vn = ["value"], yn = ["value"], bn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, xn = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Sn = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Cn = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, wn = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, Tn = { 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)]" }, En = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Dn = { class: "tpl:mb-1 tpl:last:mb-0" }, On = { class: "tpl:mb-1 tpl:last:mb-0" }, kn = { class: "tpl:mb-1 tpl:last:mb-0" }, An = 150, jn = /* @__PURE__ */ f({
756
+ }), dn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, fn = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, pn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, mn = { class: "tpl:mb-3.5" }, hn = { 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)]" }, gn = ["onClick"], _n = { class: "tpl:flex tpl:items-stretch" }, vn = ["value"], yn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, bn = { class: "tpl:mb-3.5" }, xn = ["value"], Sn = ["value"], Cn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, wn = ["value"], Tn = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, En = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Dn = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, On = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, kn = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, An = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, jn = { 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)]" }, Mn = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Nn = { class: "tpl:mb-1 tpl:last:mb-0" }, Pn = { class: "tpl:mb-1 tpl:last:mb-0" }, Fn = { class: "tpl:mb-1 tpl:last:mb-0" }, In = 150, Ln = /* @__PURE__ */ f({
728
757
  __name: "TemplateSettings",
729
758
  props: { settings: {} },
730
759
  emits: ["update"],
@@ -747,14 +776,14 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
747
776
  label: "800px"
748
777
  }
749
778
  ];
750
- return (n, r) => (o(), h("aside", cn, [C("div", ln, [
751
- C("div", { class: t(x(ct)) }, [
752
- C("div", un, [g(x(St), {
779
+ return (n, r) => (o(), h("aside", dn, [C("div", fn, [
780
+ C("div", { class: t(x(ut)) }, [
781
+ C("div", pn, [g(x(Tt), {
753
782
  class: "tpl:text-[var(--tpl-text-muted)]",
754
783
  size: 14,
755
784
  "stroke-width": 2
756
785
  }), C("span", null, s(x(a).templateSettings.layout), 1)]),
757
- C("div", dn, [C("label", { class: t(x(H)) }, s(x(a).templateSettings.widthPreset), 3), C("div", fn, [(o(), h(v, null, u(p, (t) => C("button", {
786
+ C("div", mn, [C("label", { class: t(x(H)) }, s(x(a).templateSettings.widthPreset), 3), C("div", hn, [(o(), h(v, null, u(p, (t) => C("button", {
758
787
  key: t.value,
759
788
  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)]",
760
789
  style: l({
@@ -763,25 +792,25 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
763
792
  boxShadow: e.settings.width === t.value ? "var(--tpl-shadow)" : "none"
764
793
  }),
765
794
  onClick: (e) => i("update", { width: t.value })
766
- }, s(t.label), 13, pn)), 64))])]),
767
- C("div", null, [C("label", { class: t(x(H)) }, s(x(a).templateSettings.customWidth), 3), C("div", mn, [C("input", {
795
+ }, s(t.label), 13, gn)), 64))])]),
796
+ C("div", null, [C("label", { class: t(x(H)) }, s(x(a).templateSettings.customWidth), 3), C("div", _n, [C("input", {
768
797
  type: "number",
769
798
  class: t(x(W)),
770
799
  value: e.settings.width,
771
800
  min: "300",
772
801
  max: "900",
773
802
  onInput: r[0] ||= (e) => i("update", { width: Number(e.target.value) })
774
- }, null, 42, hn), C("span", { class: t(x(U)) }, "px", 2)])])
803
+ }, null, 42, vn), C("span", { class: t(x(U)) }, "px", 2)])])
775
804
  ], 2),
776
- C("div", { class: t(x(ct)) }, [
777
- C("div", gn, [g(x(dt), {
805
+ C("div", { class: t(x(ut)) }, [
806
+ C("div", yn, [g(x(pt), {
778
807
  class: "tpl:text-[var(--tpl-text-muted)]",
779
808
  size: 14,
780
809
  "stroke-width": 2
781
810
  }), C("span", null, s(x(a).templateSettings.appearance), 1)]),
782
- C("div", _n, [C("label", { class: t(x(H)) }, s(x(a).templateSettings.backgroundColor), 3), g(G, {
811
+ C("div", bn, [C("label", { class: t(x(H)) }, s(x(a).templateSettings.backgroundColor), 3), g(G, {
783
812
  "model-value": e.settings.backgroundColor,
784
- placeholder: x(lt),
813
+ placeholder: x(dt),
785
814
  "onUpdate:modelValue": r[1] ||= (e) => i("update", { backgroundColor: e })
786
815
  }, null, 8, ["model-value", "placeholder"])]),
787
816
  C("div", null, [C("label", { class: t(x(H)) }, s(x(a).templateSettings.fontFamily), 3), C("select", {
@@ -791,33 +820,51 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
791
820
  }, [(o(!0), h(v, null, u(d.value, (e) => (o(), h("option", {
792
821
  key: e.value,
793
822
  value: e.value
794
- }, s(e.label), 9, yn))), 128))], 42, vn)])
823
+ }, s(e.label), 9, Sn))), 128))], 42, xn)])
795
824
  ], 2),
796
- C("div", { class: t(x(ct)) }, [C("div", bn, [g(x(Ge), {
825
+ C("div", { class: t(x(ut)) }, [C("div", Cn, [g(x(mt), {
797
826
  class: "tpl:text-[var(--tpl-text-muted)]",
798
827
  size: 14,
799
828
  "stroke-width": 2
800
- }), C("span", null, s(x(a).templateSettings.preheaderText), 1)]), C("div", null, [g(sn, {
829
+ }), C("span", null, s(x(a).templateSettings.language), 1)]), C("div", null, [
830
+ C("label", { class: t(x(H)) }, s(x(a).templateSettings.contentLocale), 3),
831
+ C("input", {
832
+ type: "text",
833
+ class: t(x(V)),
834
+ value: e.settings.locale ?? "",
835
+ placeholder: "en",
836
+ spellcheck: "false",
837
+ autocapitalize: "off",
838
+ autocomplete: "off",
839
+ onInput: r[3] ||= (e) => i("update", { locale: e.target.value.trim() || void 0 })
840
+ }, null, 42, wn),
841
+ C("p", Tn, s(x(a).templateSettings.contentLocaleHint), 1)
842
+ ])], 2),
843
+ C("div", { class: t(x(ut)) }, [C("div", En, [g(x(qe), {
844
+ class: "tpl:text-[var(--tpl-text-muted)]",
845
+ size: 14,
846
+ "stroke-width": 2
847
+ }), C("span", null, s(x(a).templateSettings.preheaderText), 1)]), C("div", null, [g(un, {
801
848
  "model-value": e.settings.preheaderText ?? "",
802
849
  placeholder: x(a).templateSettings.preheaderTextPlaceholder,
803
850
  rows: 2,
804
- "onUpdate:modelValue": r[3] ||= (e) => i("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
805
- }, null, 8, ["model-value", "placeholder"]), C("div", xn, [C("span", Sn, s(x(a).templateSettings.preheaderTextHint), 1), C("span", Cn, s((e.settings.preheaderText ?? "").length) + "/" + s(An), 1)])])], 2),
806
- C("div", wn, [C("div", Tn, [g(x(We), {
851
+ "onUpdate:modelValue": r[4] ||= (e) => i("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
852
+ }, null, 8, ["model-value", "placeholder"]), C("div", Dn, [C("span", On, s(x(a).templateSettings.preheaderTextHint), 1), C("span", kn, s((e.settings.preheaderText ?? "").length) + "/" + s(In), 1)])])], 2),
853
+ C("div", An, [C("div", jn, [g(x(Xe), {
807
854
  size: 14,
808
855
  "stroke-width": 2
809
- }), C("span", null, s(x(a).templateSettings.tips), 1)]), C("ul", En, [
810
- C("li", Dn, s(x(a).templateSettings.tip1), 1),
811
- C("li", On, s(x(a).templateSettings.tip2), 1),
812
- C("li", kn, s(x(a).templateSettings.tip3), 1)
856
+ }), C("span", null, s(x(a).templateSettings.tips), 1)]), C("ul", Mn, [
857
+ C("li", Nn, s(x(a).templateSettings.tip1), 1),
858
+ C("li", Pn, s(x(a).templateSettings.tip2), 1),
859
+ C("li", Fn, s(x(a).templateSettings.tip3), 1)
813
860
  ])])
814
861
  ])]));
815
862
  }
816
- }), Mn = { key: 0 }, Nn = { key: 1 }, Pn = [
863
+ }), Rn = { key: 0 }, zn = { key: 1 }, Bn = [
817
864
  "type",
818
865
  "value",
819
866
  "placeholder"
820
- ], Fn = "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)]", Y = /* @__PURE__ */ R(/* @__PURE__ */ f({
867
+ ], Vn = "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__ */ B(/* @__PURE__ */ f({
821
868
  __name: "MergeTagInput",
822
869
  props: {
823
870
  modelValue: {},
@@ -830,14 +877,14 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
830
877
  },
831
878
  emits: ["update:modelValue"],
832
879
  setup(e, { emit: n }) {
833
- let r = e, i = n, a = d(null), { segments: s, hasMergeTags: c, mergeTagEnabled: l, isRequestingMergeTag: u, isEditing: f, startEditing: p, stopEditing: m, handleInput: _, clearValue: v, insertMergeTag: w } = Gt({
880
+ let r = e, i = n, a = d(null), { segments: s, hasMergeTags: c, canRequestMergeTag: l, isRequestingMergeTag: u, isEditing: f, startEditing: p, stopEditing: m, handleInput: _, clearValue: v, insertMergeTag: w } = Yt({
834
881
  modelValue: () => r.modelValue,
835
882
  emit: (e) => i("update:modelValue", e),
836
883
  elementRef: a
837
884
  });
838
- return (n, r) => x(c) && !x(f) ? (o(), h("div", Mn, [g(Zt, {
885
+ return (n, r) => x(c) && !x(f) ? (o(), h("div", Rn, [g(tn, {
839
886
  segments: x(s),
840
- "display-class": Fn,
887
+ "display-class": Vn,
841
888
  pulse: e.pulse,
842
889
  onEdit: x(p),
843
890
  onClear: x(v)
@@ -846,11 +893,11 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
846
893
  "pulse",
847
894
  "onEdit",
848
895
  "onClear"
849
- ]), x(l) ? (o(), b(en, {
896
+ ]), x(l) ? (o(), b(Y, {
850
897
  key: 0,
851
898
  disabled: x(u),
852
899
  onInsert: x(w)
853
- }, null, 8, ["disabled", "onInsert"])) : y("", !0)])) : (o(), h("div", Nn, [C("input", {
900
+ }, null, 8, ["disabled", "onInsert"])) : y("", !0)])) : (o(), h("div", zn, [C("input", {
854
901
  ref_key: "inputRef",
855
902
  ref: a,
856
903
  type: e.type,
@@ -860,16 +907,16 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
860
907
  onInput: r[0] ||= (...e) => x(_) && x(_)(...e),
861
908
  onBlur: r[1] ||= (...e) => x(m) && x(m)(...e),
862
909
  onKeydown: r[2] ||= S((...e) => x(m) && x(m)(...e), ["escape"])
863
- }, null, 42, Pn), x(l) ? (o(), b(en, {
910
+ }, null, 42, Bn), x(l) ? (o(), b(Y, {
864
911
  key: 0,
865
912
  disabled: x(u),
866
913
  onInsert: x(w)
867
914
  }, null, 8, ["disabled", "onInsert"])) : y("", !0)]));
868
915
  }
869
- }), [["__scopeId", "data-v-b982cc87"]]), In = { class: "tpl:mb-3.5" }, Ln = ["value"], Rn = { value: "" }, zn = ["value"], Bn = { class: "tpl:mb-3.5" }, Vn = { class: "tpl:mb-3.5" }, Hn = {
916
+ }), [["__scopeId", "data-v-358207dd"]]), Hn = { class: "tpl:mb-3.5" }, Un = ["value"], Wn = { value: "" }, Gn = ["value"], Kn = { class: "tpl:mb-3.5" }, qn = { class: "tpl:mb-3.5" }, Jn = {
870
917
  key: 0,
871
918
  class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
872
- }, Un = ["checked"], Wn = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Gn = { class: "tpl:mb-3.5" }, Kn = { class: "tpl:mb-3.5" }, qn = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Jn = { class: "tpl:mb-3.5" }, Yn = { class: "tpl:flex tpl:items-stretch" }, Xn = ["value"], Zn = { class: "tpl:mb-3.5" }, Qn = { class: "tpl:flex tpl:items-stretch" }, $n = ["value"], er = /* @__PURE__ */ f({
919
+ }, Yn = ["checked"], Xn = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Zn = { class: "tpl:mb-3.5" }, Qn = { class: "tpl:mb-3.5" }, $n = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, er = { class: "tpl:mb-3.5" }, tr = { class: "tpl:flex tpl:items-stretch" }, nr = ["value"], rr = { class: "tpl:mb-3.5" }, ir = { class: "tpl:flex tpl:items-stretch" }, ar = ["value"], or = /* @__PURE__ */ f({
873
920
  __name: "ButtonToolbar",
874
921
  props: {
875
922
  block: {},
@@ -882,59 +929,59 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
882
929
  r("update", { [e]: t });
883
930
  }
884
931
  return (n, r) => (o(), h(v, null, [
885
- C("div", In, [C("label", { class: t(x(H)) }, s(x(i).button.fontFamily), 3), C("select", {
932
+ C("div", Hn, [C("label", { class: t(x(H)) }, s(x(i).button.fontFamily), 3), C("select", {
886
933
  class: t(x(V)),
887
934
  value: e.block.fontFamily || "",
888
935
  onChange: r[0] ||= (e) => a("fontFamily", e.target.value || void 0)
889
- }, [C("option", Rn, s(x(i).button.inheritFont), 1), (o(!0), h(v, null, u(e.fontFamilies, (e) => (o(), h("option", {
936
+ }, [C("option", Wn, s(x(i).button.inheritFont), 1), (o(!0), h(v, null, u(e.fontFamilies, (e) => (o(), h("option", {
890
937
  key: e.value,
891
938
  value: e.value
892
- }, s(e.label), 9, zn))), 128))], 42, Ln)]),
893
- C("div", Bn, [C("label", { class: t(x(H)) }, s(x(i).button.text), 3), g(Y, {
939
+ }, s(e.label), 9, Gn))), 128))], 42, Un)]),
940
+ C("div", Kn, [C("label", { class: t(x(H)) }, s(x(i).button.text), 3), g(X, {
894
941
  "model-value": e.block.text,
895
942
  type: "text",
896
943
  "onUpdate:modelValue": r[1] ||= (e) => a("text", e)
897
944
  }, null, 8, ["model-value"])]),
898
- C("div", Vn, [
945
+ C("div", qn, [
899
946
  C("label", { class: t(x(H)) }, s(x(i).button.url), 3),
900
- g(Y, {
947
+ g(X, {
901
948
  "model-value": e.block.url,
902
949
  type: "url",
903
950
  placeholder: x(i).button.urlPlaceholder,
904
951
  "onUpdate:modelValue": r[2] ||= (e) => a("url", e)
905
952
  }, null, 8, ["model-value", "placeholder"]),
906
- e.block.url ? (o(), h("label", Hn, [C("input", {
953
+ e.block.url ? (o(), h("label", Jn, [C("input", {
907
954
  type: "checkbox",
908
955
  class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
909
956
  checked: e.block.openInNewTab ?? !1,
910
957
  onChange: r[3] ||= (e) => a("openInNewTab", e.target.checked)
911
- }, null, 40, Un), k(" " + s(x(i).button.openInNewTab), 1)])) : y("", !0)
958
+ }, null, 40, Yn), k(" " + s(x(i).button.openInNewTab), 1)])) : y("", !0)
912
959
  ]),
913
- C("div", Wn, [C("div", Gn, [C("label", { class: t(x(H)) }, s(x(i).button.background), 3), g(G, {
960
+ C("div", Xn, [C("div", Zn, [C("label", { class: t(x(H)) }, s(x(i).button.background), 3), g(G, {
914
961
  "model-value": e.block.backgroundColor,
915
962
  "onUpdate:modelValue": r[4] ||= (e) => a("backgroundColor", e)
916
- }, null, 8, ["model-value"])]), C("div", Kn, [C("label", { class: t(x(H)) }, s(x(i).button.textColor), 3), g(G, {
963
+ }, null, 8, ["model-value"])]), C("div", Qn, [C("label", { class: t(x(H)) }, s(x(i).button.textColor), 3), g(G, {
917
964
  "model-value": e.block.textColor,
918
965
  "onUpdate:modelValue": r[5] ||= (e) => a("textColor", e)
919
966
  }, null, 8, ["model-value"])])]),
920
- C("div", qn, [C("div", Jn, [C("label", { class: t(x(H)) }, s(x(i).button.borderRadius), 3), C("div", Yn, [C("input", {
967
+ C("div", $n, [C("div", er, [C("label", { class: t(x(H)) }, s(x(i).button.borderRadius), 3), C("div", tr, [C("input", {
921
968
  type: "number",
922
969
  class: t(x(W)),
923
970
  value: e.block.borderRadius,
924
971
  min: "0",
925
972
  max: "50",
926
973
  onInput: r[6] ||= (e) => a("borderRadius", Number(e.target.value))
927
- }, null, 42, Xn), C("span", { class: t(x(U)) }, "px", 2)])]), C("div", Zn, [C("label", { class: t(x(H)) }, s(x(i).button.fontSize), 3), C("div", Qn, [C("input", {
974
+ }, null, 42, nr), C("span", { class: t(x(U)) }, "px", 2)])]), C("div", rr, [C("label", { class: t(x(H)) }, s(x(i).button.fontSize), 3), C("div", ir, [C("input", {
928
975
  type: "number",
929
976
  class: t(x(W)),
930
977
  value: e.block.fontSize,
931
978
  min: "10",
932
979
  max: "36",
933
980
  onInput: r[7] ||= (e) => a("fontSize", Number(e.target.value))
934
- }, null, 42, $n), C("span", { class: t(x(U)) }, "px", 2)])])])
981
+ }, null, 42, ar), C("span", { class: t(x(U)) }, "px", 2)])])])
935
982
  ], 64));
936
983
  }
937
- }), tr = { class: "spacing-control" }, nr = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, rr = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, ir = { class: "tpl:flex tpl:items-center" }, ar = ["aria-label"], or = ["value", "aria-label"], sr = ["aria-label"], cr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, lr = { class: "tpl:flex tpl:items-center" }, ur = ["aria-label"], dr = ["value", "aria-label"], fr = ["aria-label"], pr = ["aria-label", "title"], mr = { class: "tpl:flex tpl:items-center" }, hr = ["aria-label"], gr = ["value", "aria-label"], _r = ["aria-label"], vr = { class: "tpl:flex tpl:items-center" }, yr = ["aria-label"], br = ["value", "aria-label"], xr = ["aria-label"], X = "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)]", Z = "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)]", Sr = /* @__PURE__ */ R(/* @__PURE__ */ f({
984
+ }), sr = { class: "spacing-control" }, cr = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, lr = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, ur = { class: "tpl:flex tpl:items-center" }, dr = ["aria-label"], fr = ["value", "aria-label"], pr = ["aria-label"], mr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, hr = { class: "tpl:flex tpl:items-center" }, gr = ["aria-label"], _r = ["value", "aria-label"], vr = ["aria-label"], yr = ["aria-label", "title"], br = { class: "tpl:flex tpl:items-center" }, xr = ["aria-label"], Sr = ["value", "aria-label"], Cr = ["aria-label"], wr = { class: "tpl:flex tpl:items-center" }, Tr = ["aria-label"], Er = ["value", "aria-label"], Dr = ["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)]", Or = "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)]", kr = /* @__PURE__ */ B(/* @__PURE__ */ f({
938
985
  __name: "SpacingControl",
939
986
  props: {
940
987
  modelValue: {},
@@ -981,130 +1028,130 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
981
1028
  });
982
1029
  }
983
1030
  }
984
- return (n, r) => (o(), h("div", tr, [C("label", nr, s(e.label), 1), C("div", rr, [
985
- C("div", ir, [
1031
+ return (n, r) => (o(), h("div", sr, [C("label", cr, s(e.label), 1), C("div", lr, [
1032
+ C("div", ur, [
986
1033
  C("button", {
987
1034
  "aria-label": x(a).spacingControl.decreaseTop,
988
- class: t([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1035
+ class: t([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
989
1036
  onClick: r[0] ||= (e) => u("top", -1)
990
- }, [g(x(z), {
1037
+ }, [g(x(R), {
991
1038
  size: 12,
992
1039
  "stroke-width": 2
993
- })], 10, ar),
1040
+ })], 10, dr),
994
1041
  C("input", {
995
1042
  type: "number",
996
- class: t(Z),
1043
+ class: t(Or),
997
1044
  value: e.modelValue.top,
998
1045
  "aria-label": x(a).spacingControl.top,
999
1046
  min: "0",
1000
1047
  onInput: r[1] ||= (e) => f("top", Number(e.target.value))
1001
- }, null, 40, or),
1048
+ }, null, 40, fr),
1002
1049
  C("button", {
1003
1050
  "aria-label": x(a).spacingControl.increaseTop,
1004
- class: t([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1051
+ class: t([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1005
1052
  onClick: r[2] ||= (e) => u("top", 1)
1006
1053
  }, [g(x(J), {
1007
1054
  size: 12,
1008
1055
  "stroke-width": 2
1009
- })], 10, sr)
1056
+ })], 10, pr)
1010
1057
  ]),
1011
- C("div", cr, [
1012
- C("div", lr, [
1058
+ C("div", mr, [
1059
+ C("div", hr, [
1013
1060
  C("button", {
1014
1061
  "aria-label": x(a).spacingControl.decreaseLeft,
1015
- class: t([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1062
+ class: t([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1016
1063
  onClick: r[3] ||= (e) => u("left", -1)
1017
- }, [g(x(z), {
1064
+ }, [g(x(R), {
1018
1065
  size: 12,
1019
1066
  "stroke-width": 2
1020
- })], 10, ur),
1067
+ })], 10, gr),
1021
1068
  C("input", {
1022
1069
  type: "number",
1023
- class: t(Z),
1070
+ class: t(Or),
1024
1071
  value: e.modelValue.left,
1025
1072
  "aria-label": x(a).spacingControl.left,
1026
1073
  min: "0",
1027
1074
  onInput: r[4] ||= (e) => f("left", Number(e.target.value))
1028
- }, null, 40, dr),
1075
+ }, null, 40, _r),
1029
1076
  C("button", {
1030
1077
  "aria-label": x(a).spacingControl.increaseLeft,
1031
- class: t([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1078
+ class: t([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1032
1079
  onClick: r[5] ||= (e) => u("left", 1)
1033
1080
  }, [g(x(J), {
1034
1081
  size: 12,
1035
1082
  "stroke-width": 2
1036
- })], 10, fr)
1083
+ })], 10, vr)
1037
1084
  ]),
1038
1085
  C("button", {
1039
1086
  class: t(["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)]"]),
1040
1087
  "aria-label": l.value ? x(a).spacingControl.unlock : x(a).spacingControl.lockAll,
1041
1088
  title: l.value ? x(a).spacingControl.unlock : x(a).spacingControl.lockAll,
1042
1089
  onClick: p
1043
- }, [l.value ? (o(), b(x(mt), {
1090
+ }, [l.value ? (o(), b(x(_t), {
1044
1091
  key: 0,
1045
1092
  size: 14,
1046
1093
  "stroke-width": 2
1047
- })) : (o(), b(x(pt), {
1094
+ })) : (o(), b(x(gt), {
1048
1095
  key: 1,
1049
1096
  size: 14,
1050
1097
  "stroke-width": 2
1051
- }))], 10, pr),
1052
- C("div", mr, [
1098
+ }))], 10, yr),
1099
+ C("div", br, [
1053
1100
  C("button", {
1054
1101
  "aria-label": x(a).spacingControl.decreaseRight,
1055
- class: t([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1102
+ class: t([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1056
1103
  onClick: r[6] ||= (e) => u("right", -1)
1057
- }, [g(x(z), {
1104
+ }, [g(x(R), {
1058
1105
  size: 12,
1059
1106
  "stroke-width": 2
1060
- })], 10, hr),
1107
+ })], 10, xr),
1061
1108
  C("input", {
1062
1109
  type: "number",
1063
- class: t(Z),
1110
+ class: t(Or),
1064
1111
  value: e.modelValue.right,
1065
1112
  "aria-label": x(a).spacingControl.right,
1066
1113
  min: "0",
1067
1114
  onInput: r[7] ||= (e) => f("right", Number(e.target.value))
1068
- }, null, 40, gr),
1115
+ }, null, 40, Sr),
1069
1116
  C("button", {
1070
1117
  "aria-label": x(a).spacingControl.increaseRight,
1071
- class: t([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1118
+ class: t([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1072
1119
  onClick: r[8] ||= (e) => u("right", 1)
1073
1120
  }, [g(x(J), {
1074
1121
  size: 12,
1075
1122
  "stroke-width": 2
1076
- })], 10, _r)
1123
+ })], 10, Cr)
1077
1124
  ])
1078
1125
  ]),
1079
- C("div", vr, [
1126
+ C("div", wr, [
1080
1127
  C("button", {
1081
1128
  "aria-label": x(a).spacingControl.decreaseBottom,
1082
- class: t([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1129
+ class: t([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1083
1130
  onClick: r[9] ||= (e) => u("bottom", -1)
1084
- }, [g(x(z), {
1131
+ }, [g(x(R), {
1085
1132
  size: 12,
1086
1133
  "stroke-width": 2
1087
- })], 10, yr),
1134
+ })], 10, Tr),
1088
1135
  C("input", {
1089
1136
  type: "number",
1090
- class: t(Z),
1137
+ class: t(Or),
1091
1138
  value: e.modelValue.bottom,
1092
1139
  "aria-label": x(a).spacingControl.bottom,
1093
1140
  min: "0",
1094
1141
  onInput: r[10] ||= (e) => f("bottom", Number(e.target.value))
1095
- }, null, 40, br),
1142
+ }, null, 40, Er),
1096
1143
  C("button", {
1097
1144
  "aria-label": x(a).spacingControl.increaseBottom,
1098
- class: t([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1145
+ class: t([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1099
1146
  onClick: r[11] ||= (e) => u("bottom", 1)
1100
1147
  }, [g(x(J), {
1101
1148
  size: 12,
1102
1149
  "stroke-width": 2
1103
- })], 10, xr)
1150
+ })], 10, Dr)
1104
1151
  ])
1105
1152
  ])]));
1106
1153
  }
1107
- }), [["__scopeId", "data-v-9a9c8a07"]]), Cr = { class: "tpl:mt-3" }, Q = /* @__PURE__ */ f({
1154
+ }), [["__scopeId", "data-v-9a9c8a07"]]), Ar = { class: "tpl:mt-3" }, Q = /* @__PURE__ */ f({
1108
1155
  __name: "CollapsibleSection",
1109
1156
  props: {
1110
1157
  title: {},
@@ -1117,25 +1164,25 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1117
1164
  type: "button",
1118
1165
  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)]",
1119
1166
  onClick: a[0] ||= (e) => n.$emit("toggle")
1120
- }, [g(x(Ve), {
1167
+ }, [g(x(Ue), {
1121
1168
  class: t(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
1122
1169
  size: 12,
1123
1170
  "stroke-width": 2
1124
- }, null, 8, ["class"]), C("span", null, s(e.title), 1)]), i(C("div", Cr, [r(n.$slots, "default")], 512), [[_, e.open]])], 2));
1171
+ }, null, 8, ["class"]), C("span", null, s(e.title), 1)]), i(C("div", Ar, [r(n.$slots, "default")], 512), [[_, e.open]])], 2));
1125
1172
  }
1126
- }), wr = { class: "tpl:mt-4" }, Tr = { class: "tpl:space-y-2" }, Er = ["checked", "onChange"], Dr = ["value", "placeholder"], Or = { class: "tpl:space-y-2" }, kr = ["value"], Ar = { value: "" }, jr = ["label"], Mr = ["value"], Nr = ["value"], Pr = {
1173
+ }), jr = { class: "tpl:mt-4" }, Mr = { class: "tpl:space-y-2" }, Nr = ["checked", "onChange"], Pr = ["value", "placeholder"], Fr = { class: "tpl:space-y-2" }, Ir = ["value"], Lr = { value: "" }, Rr = ["label"], zr = ["value"], Br = ["value"], Vr = {
1127
1174
  key: 0,
1128
1175
  value: "__custom__"
1129
- }, Fr = {
1176
+ }, Hr = {
1130
1177
  key: 0,
1131
1178
  class: "tpl:space-y-2"
1132
- }, Ir = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Lr = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Rr = { class: "tpl:flex tpl:justify-end" }, zr = ["disabled"], Br = {
1179
+ }, Ur = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Wr = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Gr = { class: "tpl:flex tpl:justify-end" }, Kr = ["disabled"], qr = {
1133
1180
  key: 0,
1134
1181
  class: "tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]"
1135
- }, Vr = { class: "tpl:space-y-1" }, Hr = { 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)]" }, Ur = {
1182
+ }, Jr = { class: "tpl:space-y-1" }, Yr = { 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)]" }, Xr = {
1136
1183
  key: 0,
1137
1184
  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)]"
1138
- }, Wr = /* @__PURE__ */ f({
1185
+ }, Zr = /* @__PURE__ */ f({
1139
1186
  __name: "CommonBlockSettings",
1140
1187
  props: {
1141
1188
  block: {},
@@ -1143,20 +1190,20 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1143
1190
  },
1144
1191
  emits: ["update"],
1145
1192
  setup(e, { emit: r }) {
1146
- let c = e, l = r, { t: f } = I(), _ = n(Ne, []), S = n(Fe, !1), E = m(/* @__PURE__ */ new Set()), D = d(!1), O = d(""), j = d(""), ee = [
1193
+ let c = e, l = r, { t: f } = I(), _ = n(Le, []), S = n(Re, !1), E = m(/* @__PURE__ */ new Set()), D = d(!1), O = d(""), j = d(""), ee = [
1147
1194
  {
1148
1195
  key: "desktop",
1149
- icon: ht,
1196
+ icon: vt,
1150
1197
  labelKey: "showOnDesktop"
1151
1198
  },
1152
1199
  {
1153
1200
  key: "tablet",
1154
- icon: wt,
1201
+ icon: Dt,
1155
1202
  labelKey: "showOnTablet"
1156
1203
  },
1157
1204
  {
1158
1205
  key: "mobile",
1159
- icon: bt,
1206
+ icon: Ct,
1160
1207
  labelKey: "showOnMobile"
1161
1208
  }
1162
1209
  ];
@@ -1213,11 +1260,11 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1213
1260
  "no-border": e.isFirstSection,
1214
1261
  onToggle: r[2] ||= (e) => M("spacing")
1215
1262
  }, {
1216
- default: p(() => [g(Sr, {
1263
+ default: p(() => [g(kr, {
1217
1264
  label: x(f).blockSettings.padding,
1218
1265
  "model-value": e.block.styles.padding,
1219
1266
  "onUpdate:modelValue": r[0] ||= (e) => ie("padding", e)
1220
- }, null, 8, ["label", "model-value"]), C("div", wr, [g(Sr, {
1267
+ }, null, 8, ["label", "model-value"]), C("div", jr, [g(kr, {
1221
1268
  label: x(f).blockSettings.margin,
1222
1269
  "model-value": e.block.styles.margin,
1223
1270
  "onUpdate:modelValue": r[1] ||= (e) => ie("margin", e)
@@ -1245,7 +1292,7 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1245
1292
  open: E.has("display"),
1246
1293
  onToggle: r[5] ||= (e) => M("display")
1247
1294
  }, {
1248
- default: p(() => [C("div", Tr, [(o(), h(v, null, u(ee, (e) => C("label", {
1295
+ default: p(() => [C("div", Mr, [(o(), h(v, null, u(ee, (e) => C("label", {
1249
1296
  key: e.key,
1250
1297
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]"
1251
1298
  }, [
@@ -1254,7 +1301,7 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1254
1301
  class: "tpl:accent-[var(--tpl-primary)]",
1255
1302
  checked: F(e.key),
1256
1303
  onChange: (t) => ae(e.key)
1257
- }, null, 40, Er),
1304
+ }, null, 40, Nr),
1258
1305
  (o(), b(a(e.icon), {
1259
1306
  size: 14,
1260
1307
  "stroke-width": 1.5
@@ -1272,9 +1319,9 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1272
1319
  value: e.block.customCss || "",
1273
1320
  placeholder: x(f).blockSettings.cssPlaceholder,
1274
1321
  rows: "3",
1275
- class: t(x(st)),
1322
+ class: t(x(lt)),
1276
1323
  onInput: r[6] ||= (e) => l("update", { customCss: e.target.value })
1277
- }, null, 42, Dr)]),
1324
+ }, null, 42, Pr)]),
1278
1325
  _: 1
1279
1326
  }, 8, ["title", "open"]),
1280
1327
  N.value ? (o(), b(Q, {
@@ -1283,7 +1330,7 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1283
1330
  open: E.has("condition"),
1284
1331
  onToggle: r[11] ||= (e) => M("condition")
1285
1332
  }, {
1286
- default: p(() => [C("div", Or, [C("select", {
1333
+ default: p(() => [C("div", Fr, [C("select", {
1287
1334
  class: t(["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)]"]),
1288
1335
  value: D.value || P.value ? "__custom__" : e.block.displayCondition?.label ?? "",
1289
1336
  onChange: r[8] ||= (e) => {
@@ -1300,48 +1347,48 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1300
1347
  n && l("update", { displayCondition: n });
1301
1348
  }
1302
1349
  }, [
1303
- C("option", Ar, s(x(f).blockSettings.noCondition), 1),
1350
+ C("option", Lr, s(x(f).blockSettings.noCondition), 1),
1304
1351
  (o(!0), h(v, null, u(re.value, (e, t) => (o(), h(v, { key: t }, [t ? (o(), h("optgroup", {
1305
1352
  key: 0,
1306
1353
  label: String(t)
1307
1354
  }, [(o(!0), h(v, null, u(e, (e) => (o(), h("option", {
1308
1355
  key: e.label,
1309
1356
  value: e.label
1310
- }, s(e.label), 9, Mr))), 128))], 8, jr)) : (o(!0), h(v, { key: 1 }, u(e, (e) => (o(), h("option", {
1357
+ }, s(e.label), 9, zr))), 128))], 8, Rr)) : (o(!0), h(v, { key: 1 }, u(e, (e) => (o(), h("option", {
1311
1358
  key: e.label,
1312
1359
  value: e.label
1313
- }, s(e.label), 9, Nr))), 128))], 64))), 128)),
1314
- x(S) ? (o(), h("option", Pr, s(x(f).blockSettings.customCondition), 1)) : y("", !0)
1315
- ], 42, kr), D.value || P.value ? (o(), h("div", Fr, [
1316
- C("div", null, [C("label", Ir, s(x(f).blockSettings.customConditionBefore), 1), i(C("textarea", {
1360
+ }, s(e.label), 9, Br))), 128))], 64))), 128)),
1361
+ x(S) ? (o(), h("option", Vr, s(x(f).blockSettings.customCondition), 1)) : y("", !0)
1362
+ ], 42, Ir), D.value || P.value ? (o(), h("div", Hr, [
1363
+ C("div", null, [C("label", Ur, s(x(f).blockSettings.customConditionBefore), 1), i(C("textarea", {
1317
1364
  "onUpdate:modelValue": r[9] ||= (e) => O.value = e,
1318
1365
  rows: "2",
1319
- class: t(x(st))
1366
+ class: t(x(lt))
1320
1367
  }, null, 2), [[T, O.value]])]),
1321
- C("div", null, [C("label", Lr, s(x(f).blockSettings.customConditionAfter), 1), i(C("textarea", {
1368
+ C("div", null, [C("label", Wr, s(x(f).blockSettings.customConditionAfter), 1), i(C("textarea", {
1322
1369
  "onUpdate:modelValue": r[10] ||= (e) => j.value = e,
1323
1370
  rows: "2",
1324
- class: t(x(st))
1371
+ class: t(x(lt))
1325
1372
  }, null, 2), [[T, j.value]])]),
1326
- C("div", Rr, [C("button", {
1373
+ C("div", Gr, [C("button", {
1327
1374
  type: "button",
1328
1375
  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",
1329
1376
  disabled: !O.value.trim(),
1330
1377
  onClick: ne
1331
- }, s(x(f).blockSettings.applyCondition), 9, zr)])
1332
- ])) : e.block.displayCondition && !P.value ? (o(), h(v, { key: 1 }, [e.block.displayCondition.description ? (o(), h("p", Br, s(e.block.displayCondition.description), 1)) : y("", !0), C("div", Vr, [C("pre", Hr, s(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (o(), h("pre", Ur, s(e.block.displayCondition.after), 1)) : y("", !0)])], 64)) : y("", !0)])]),
1378
+ }, s(x(f).blockSettings.applyCondition), 9, Kr)])
1379
+ ])) : e.block.displayCondition && !P.value ? (o(), h(v, { key: 1 }, [e.block.displayCondition.description ? (o(), h("p", qr, s(e.block.displayCondition.description), 1)) : y("", !0), C("div", Jr, [C("pre", Yr, s(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (o(), h("pre", Xr, s(e.block.displayCondition.after), 1)) : y("", !0)])], 64)) : y("", !0)])]),
1333
1380
  _: 1
1334
1381
  }, 8, ["title", "open"])) : y("", !0)
1335
1382
  ], 2));
1336
1383
  }
1337
- }), Gr = ["title"], Kr = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, qr = {
1384
+ }), Qr = ["title"], $r = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ei = {
1338
1385
  key: 1,
1339
1386
  class: "tpl:text-[var(--tpl-danger)]"
1340
- }, Jr = [
1387
+ }, ti = [
1341
1388
  "aria-checked",
1342
1389
  "aria-label",
1343
1390
  "disabled"
1344
- ], Yr = /* @__PURE__ */ f({
1391
+ ], ni = /* @__PURE__ */ f({
1345
1392
  __name: "BooleanField",
1346
1393
  props: {
1347
1394
  field: {},
@@ -1354,14 +1401,14 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1354
1401
  return (n, a) => (o(), h("div", {
1355
1402
  class: "tpl:mb-3.5",
1356
1403
  title: e.readOnly ? x(i).customBlocks.dataSource.readOnlyTooltip : void 0
1357
- }, [C("label", { class: t(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", e.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [C("span", Kr, [
1404
+ }, [C("label", { class: t(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", e.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [C("span", $r, [
1358
1405
  k(s(e.field.label) + " ", 1),
1359
- e.readOnly ? (o(), b(x(mt), {
1406
+ e.readOnly ? (o(), b(x(_t), {
1360
1407
  key: 0,
1361
1408
  size: 12,
1362
1409
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
1363
1410
  })) : y("", !0),
1364
- e.field.required ? (o(), h("span", qr, " * ")) : y("", !0)
1411
+ e.field.required ? (o(), h("span", ei, " * ")) : y("", !0)
1365
1412
  ]), C("button", {
1366
1413
  type: "button",
1367
1414
  role: "switch",
@@ -1374,9 +1421,9 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1374
1421
  ]),
1375
1422
  disabled: e.readOnly,
1376
1423
  onClick: a[0] ||= (t) => !e.readOnly && r("update:modelValue", !e.modelValue)
1377
- }, [C("span", { class: t(["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, Jr)], 2)], 8, Gr));
1424
+ }, [C("span", { class: t(["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, ti)], 2)], 8, Qr));
1378
1425
  }
1379
- }), Xr = { class: "tpl:mb-3.5" }, Zr = {
1426
+ }), ri = { class: "tpl:mb-3.5" }, ii = {
1380
1427
  key: 1,
1381
1428
  class: "tpl:text-[var(--tpl-danger)]"
1382
1429
  }, $ = /* @__PURE__ */ f({
@@ -1387,17 +1434,17 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1387
1434
  readOnly: { type: Boolean }
1388
1435
  },
1389
1436
  setup(e) {
1390
- return (n, i) => (o(), h("div", Xr, [C("label", { class: t(x(H)) }, [
1437
+ return (n, i) => (o(), h("div", ri, [C("label", { class: t(x(H)) }, [
1391
1438
  k(s(e.label) + " ", 1),
1392
- e.readOnly ? (o(), b(x(mt), {
1439
+ e.readOnly ? (o(), b(x(_t), {
1393
1440
  key: 0,
1394
1441
  size: 12,
1395
1442
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
1396
1443
  })) : y("", !0),
1397
- e.required ? (o(), h("span", Zr, "*")) : y("", !0)
1444
+ e.required ? (o(), h("span", ii, "*")) : y("", !0)
1398
1445
  ], 2), r(n.$slots, "default")]));
1399
1446
  }
1400
- }), Qr = /* @__PURE__ */ f({
1447
+ }), ai = /* @__PURE__ */ f({
1401
1448
  __name: "ColorField",
1402
1449
  props: {
1403
1450
  field: {},
@@ -1431,11 +1478,11 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1431
1478
  "read-only"
1432
1479
  ]));
1433
1480
  }
1434
- }), $r = [
1481
+ }), oi = [
1435
1482
  "value",
1436
1483
  "placeholder",
1437
1484
  "title"
1438
- ], ei = ["value", "placeholder"], ti = /* @__PURE__ */ f({
1485
+ ], si = ["value", "placeholder"], ci = /* @__PURE__ */ f({
1439
1486
  __name: "ImageField",
1440
1487
  props: {
1441
1488
  field: {},
@@ -1444,7 +1491,7 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1444
1491
  },
1445
1492
  emits: ["update:modelValue"],
1446
1493
  setup(e, { emit: r }) {
1447
- let i = r, { t: a } = I(), c = n(je, null), l = w(() => !!c);
1494
+ let i = r, { t: a } = I(), c = n(Ve, null), l = w(() => !!c);
1448
1495
  async function u() {
1449
1496
  let e = await c?.({ accept: ["images"] });
1450
1497
  e && i("update:modelValue", e.url);
@@ -1462,14 +1509,14 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1462
1509
  placeholder: e.field.placeholder || "https://...",
1463
1510
  disabled: "",
1464
1511
  title: x(a).customBlocks.dataSource.readOnlyTooltip
1465
- }, null, 10, $r)) : (o(), h("input", {
1512
+ }, null, 10, oi)) : (o(), h("input", {
1466
1513
  key: 1,
1467
1514
  type: "url",
1468
1515
  class: t(x(V)),
1469
1516
  value: e.modelValue,
1470
1517
  placeholder: e.field.placeholder || "https://...",
1471
1518
  onInput: r[0] ||= (e) => i("update:modelValue", e.target.value)
1472
- }, null, 42, ei)), l.value && !e.readOnly ? (o(), h("button", {
1519
+ }, null, 42, si)), l.value && !e.readOnly ? (o(), h("button", {
1473
1520
  key: 2,
1474
1521
  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)]",
1475
1522
  onClick: r[1] ||= (e) => u()
@@ -1484,7 +1531,7 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1484
1531
  "read-only"
1485
1532
  ]));
1486
1533
  }
1487
- }), ni = [
1534
+ }), li = [
1488
1535
  "value",
1489
1536
  "placeholder",
1490
1537
  "min",
@@ -1492,7 +1539,7 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1492
1539
  "step",
1493
1540
  "disabled",
1494
1541
  "title"
1495
- ], ri = /* @__PURE__ */ f({
1542
+ ], ui = /* @__PURE__ */ f({
1496
1543
  __name: "NumberField",
1497
1544
  props: {
1498
1545
  field: {},
@@ -1518,7 +1565,7 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1518
1565
  disabled: e.readOnly,
1519
1566
  title: e.readOnly ? x(i).customBlocks.dataSource.readOnlyTooltip : void 0,
1520
1567
  onInput: a[0] ||= (t) => !e.readOnly && r("update:modelValue", Number(t.target.value))
1521
- }, null, 42, ni)]),
1568
+ }, null, 42, li)]),
1522
1569
  _: 1
1523
1570
  }, 8, [
1524
1571
  "label",
@@ -1526,10 +1573,10 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1526
1573
  "read-only"
1527
1574
  ]));
1528
1575
  }
1529
- }), ii = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ai = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, oi = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, si = ["title", "onClick"], ci = {
1576
+ }), di = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, fi = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, pi = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, mi = ["title", "onClick"], hi = {
1530
1577
  key: 1,
1531
1578
  class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1532
- }, li = /* @__PURE__ */ f({
1579
+ }, gi = /* @__PURE__ */ f({
1533
1580
  __name: "RepeatableField",
1534
1581
  props: {
1535
1582
  field: {},
@@ -1561,20 +1608,20 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1561
1608
  required: e.field.required,
1562
1609
  "read-only": e.readOnly
1563
1610
  }, {
1564
- default: p(() => [C("div", ii, [
1611
+ default: p(() => [C("div", di, [
1565
1612
  (o(!0), h(v, null, u(l.value, (t, n) => (o(), h("div", {
1566
1613
  key: `${e.field.key}-${n}`,
1567
1614
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
1568
- }, [C("div", ai, [C("span", oi, " #" + s(n + 1), 1), f.value && !e.readOnly ? (o(), h("button", {
1615
+ }, [C("div", fi, [C("span", pi, " #" + s(n + 1), 1), f.value && !e.readOnly ? (o(), h("button", {
1569
1616
  key: 0,
1570
1617
  type: "button",
1571
1618
  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)]",
1572
1619
  title: x(c).customBlocks.fields.removeItem,
1573
1620
  onClick: (e) => _(n)
1574
- }, [g(x($e), {
1621
+ }, [g(x(tt), {
1575
1622
  size: 12,
1576
1623
  "stroke-width": 2
1577
- })], 8, si)) : y("", !0)]), (o(!0), h(v, null, u(e.field.fields, (r) => (o(), b(a(x(vi)(r.type)), {
1624
+ })], 8, mi)) : y("", !0)]), (o(!0), h(v, null, u(e.field.fields, (r) => (o(), b(a(x(Ti)(r.type)), {
1578
1625
  key: r.key,
1579
1626
  field: r,
1580
1627
  "model-value": t[r.key],
@@ -1589,13 +1636,13 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1589
1636
  d.value && !e.readOnly ? (o(), h("button", {
1590
1637
  key: 0,
1591
1638
  type: "button",
1592
- class: t(x(ot)),
1639
+ class: t(x(ct)),
1593
1640
  onClick: m
1594
1641
  }, [g(x(J), {
1595
1642
  size: 14,
1596
1643
  "stroke-width": 2
1597
1644
  }), k(" " + s(x(c).customBlocks.fields.addItem), 1)], 2)) : y("", !0),
1598
- !d.value && !e.readOnly ? (o(), h("p", ci, s(x(c).customBlocks.fields.maxItemsReached), 1)) : y("", !0)
1645
+ !d.value && !e.readOnly ? (o(), h("p", hi, s(x(c).customBlocks.fields.maxItemsReached), 1)) : y("", !0)
1599
1646
  ])]),
1600
1647
  _: 1
1601
1648
  }, 8, [
@@ -1604,11 +1651,11 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1604
1651
  "read-only"
1605
1652
  ]));
1606
1653
  }
1607
- }), ui = [
1654
+ }), _i = [
1608
1655
  "value",
1609
1656
  "disabled",
1610
1657
  "title"
1611
- ], di = ["value"], fi = /* @__PURE__ */ f({
1658
+ ], vi = ["value"], yi = /* @__PURE__ */ f({
1612
1659
  __name: "SelectField",
1613
1660
  props: {
1614
1661
  field: {},
@@ -1632,7 +1679,7 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1632
1679
  }, [(o(!0), h(v, null, u(e.field.options, (e) => (o(), h("option", {
1633
1680
  key: e.value,
1634
1681
  value: e.value
1635
- }, s(e.label), 9, di))), 128))], 42, ui)]),
1682
+ }, s(e.label), 9, vi))), 128))], 42, _i)]),
1636
1683
  _: 1
1637
1684
  }, 8, [
1638
1685
  "label",
@@ -1640,11 +1687,11 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1640
1687
  "read-only"
1641
1688
  ]));
1642
1689
  }
1643
- }), pi = [
1690
+ }), bi = [
1644
1691
  "value",
1645
1692
  "placeholder",
1646
1693
  "title"
1647
- ], mi = /* @__PURE__ */ f({
1694
+ ], xi = /* @__PURE__ */ f({
1648
1695
  __name: "TextField",
1649
1696
  props: {
1650
1697
  field: {},
@@ -1667,7 +1714,7 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1667
1714
  placeholder: e.field.placeholder,
1668
1715
  disabled: "",
1669
1716
  title: x(i).customBlocks.dataSource.readOnlyTooltip
1670
- }, null, 10, pi)) : (o(), b(Y, {
1717
+ }, null, 10, bi)) : (o(), b(X, {
1671
1718
  key: 1,
1672
1719
  "model-value": e.modelValue,
1673
1720
  placeholder: e.field.placeholder,
@@ -1680,12 +1727,12 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1680
1727
  "read-only"
1681
1728
  ]));
1682
1729
  }
1683
- }), hi = [
1730
+ }), Si = [
1684
1731
  "value",
1685
1732
  "placeholder",
1686
1733
  "title"
1687
- ], gi = "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", _i = {
1688
- text: mi,
1734
+ ], Ci = "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", wi = {
1735
+ text: xi,
1689
1736
  textarea: /* @__PURE__ */ f({
1690
1737
  __name: "TextareaField",
1691
1738
  props: {
@@ -1708,8 +1755,8 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1708
1755
  rows: "3",
1709
1756
  disabled: "",
1710
1757
  title: x(i).customBlocks.dataSource.readOnlyTooltip,
1711
- class: t(gi)
1712
- }, null, 8, hi)) : (o(), b(sn, {
1758
+ class: t(Ci)
1759
+ }, null, 8, Si)) : (o(), b(un, {
1713
1760
  key: 1,
1714
1761
  "model-value": e.modelValue,
1715
1762
  placeholder: e.field.placeholder,
@@ -1723,42 +1770,42 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1723
1770
  ]));
1724
1771
  }
1725
1772
  }),
1726
- image: ti,
1727
- color: Qr,
1728
- number: ri,
1729
- select: fi,
1730
- boolean: Yr,
1731
- repeatable: li
1773
+ image: ci,
1774
+ color: ai,
1775
+ number: ui,
1776
+ select: yi,
1777
+ boolean: ni,
1778
+ repeatable: gi
1732
1779
  };
1733
- function vi(e) {
1734
- return _i[e] ?? mi;
1780
+ function Ti(e) {
1781
+ return wi[e] ?? xi;
1735
1782
  }
1736
1783
  //#endregion
1737
1784
  //#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
1738
- var yi = {
1785
+ var Ei = {
1739
1786
  key: 0,
1740
1787
  class: "tpl:p-4"
1741
- }, bi = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, xi = { key: 1 }, Si = {
1788
+ }, Di = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oi = { key: 1 }, ki = {
1742
1789
  key: 0,
1743
1790
  class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1744
- }, Ci = {
1791
+ }, Ai = {
1745
1792
  key: 1,
1746
1793
  class: "tpl:mb-4"
1747
- }, wi = {
1794
+ }, ji = {
1748
1795
  key: 1,
1749
1796
  class: "tpl:flex tpl:h-[32px] tpl:items-center"
1750
- }, Ti = {
1797
+ }, Mi = {
1751
1798
  key: 0,
1752
1799
  class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
1753
- }, Ei = {
1800
+ }, Ni = {
1754
1801
  key: 2,
1755
1802
  class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
1756
- }, Di = /* @__PURE__ */ f({
1803
+ }, Pi = /* @__PURE__ */ f({
1757
1804
  __name: "CustomBlockToolbar",
1758
1805
  props: { block: {} },
1759
1806
  emits: ["updateFieldValues", "updateDataSourceFetched"],
1760
1807
  setup(e, { emit: t }) {
1761
- let r = e, i = t, { t: c } = I(), l = n(Me, []), d = w(() => l.find((e) => e.type === r.block.customType)), { isFetching: f, fetchError: p, fetch: m, hasDataSource: _, needsFetch: S } = ae({
1808
+ let r = e, i = t, { t: c } = I(), l = n(Ne, []), d = w(() => l.find((e) => e.type === r.block.customType)), { isFetching: f, fetchError: p, fetch: m, hasDataSource: _, needsFetch: S } = ae({
1762
1809
  definition: d,
1763
1810
  block: w(() => r.block),
1764
1811
  onUpdate: (e, t) => {
@@ -1774,23 +1821,23 @@ var yi = {
1774
1821
  [e]: t
1775
1822
  });
1776
1823
  }
1777
- return (t, n) => d.value ? (o(), h("div", xi, [
1778
- d.value.description ? (o(), h("p", Si, s(d.value.description), 1)) : y("", !0),
1779
- x(_) ? (o(), h("div", Ci, [x(S) && !x(f) ? (o(), h("button", {
1824
+ return (t, n) => d.value ? (o(), h("div", Oi, [
1825
+ d.value.description ? (o(), h("p", ki, s(d.value.description), 1)) : y("", !0),
1826
+ x(_) ? (o(), h("div", Ai, [x(S) && !x(f) ? (o(), h("button", {
1780
1827
  key: 0,
1781
1828
  type: "button",
1782
1829
  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)]",
1783
1830
  onClick: n[0] ||= (...e) => x(m) && x(m)(...e)
1784
- }, s(d.value?.dataSource?.label || x(c).customBlocks.dataSource.fetchButton), 1)) : (o(), h("div", wi, [x(f) ? (o(), h("div", Ti, s(x(c).customBlocks.dataSource.fetching), 1)) : (o(), h("button", {
1831
+ }, s(d.value?.dataSource?.label || x(c).customBlocks.dataSource.fetchButton), 1)) : (o(), h("div", ji, [x(f) ? (o(), h("div", Mi, s(x(c).customBlocks.dataSource.fetching), 1)) : (o(), h("button", {
1785
1832
  key: 1,
1786
1833
  type: "button",
1787
1834
  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)]",
1788
1835
  onClick: n[1] ||= (...e) => x(m) && x(m)(...e)
1789
- }, [g(x(Ke), { size: 12 }), k(" " + s(x(c).customBlocks.dataSource.changeButton), 1)]))])), x(p) ? (o(), h("p", Ei, [g(x(He), {
1836
+ }, [g(x(Je), { size: 12 }), k(" " + s(x(c).customBlocks.dataSource.changeButton), 1)]))])), x(p) ? (o(), h("p", Ni, [g(x(We), {
1790
1837
  size: 14,
1791
1838
  class: "tpl:shrink-0"
1792
1839
  }), k(" " + s(x(c).customBlocks.dataSource.fetchError), 1)])) : y("", !0)])) : y("", !0),
1793
- (o(!0), h(v, null, u(d.value.fields, (t) => (o(), b(a(x(vi)(t.type)), {
1840
+ (o(!0), h(v, null, u(d.value.fields, (t) => (o(), b(a(x(Ti)(t.type)), {
1794
1841
  key: t.key,
1795
1842
  field: t,
1796
1843
  "model-value": e.block.fieldValues[t.key],
@@ -1802,9 +1849,9 @@ var yi = {
1802
1849
  "read-only",
1803
1850
  "onUpdate:modelValue"
1804
1851
  ]))), 128))
1805
- ])) : (o(), h("div", yi, [C("p", bi, s(x(c).customBlocks.toolbar.noDefinition), 1)]));
1852
+ ])) : (o(), h("div", Ei, [C("p", Di, s(x(c).customBlocks.toolbar.noDefinition), 1)]));
1806
1853
  }
1807
- }), Oi = { class: "tpl:mb-3.5" }, ki = { class: "tpl:mb-3.5" }, Ai = { class: "tpl:mb-3.5" }, ji = { class: "tpl:flex tpl:items-stretch" }, Mi = ["value"], Ni = /* @__PURE__ */ f({
1854
+ }), Fi = { class: "tpl:mb-3.5" }, Ii = { class: "tpl:mb-3.5" }, Li = { class: "tpl:mb-3.5" }, Ri = { class: "tpl:flex tpl:items-stretch" }, zi = ["value"], Bi = /* @__PURE__ */ f({
1808
1855
  __name: "DividerToolbar",
1809
1856
  props: { block: {} },
1810
1857
  emits: ["update"],
@@ -1814,7 +1861,7 @@ var yi = {
1814
1861
  r("update", { [e]: t });
1815
1862
  }
1816
1863
  return (n, r) => (o(), h(v, null, [
1817
- C("div", Oi, [C("label", { class: t(x(H)) }, s(x(i).divider.style), 3), g(q, {
1864
+ C("div", Fi, [C("label", { class: t(x(H)) }, s(x(i).divider.style), 3), g(q, {
1818
1865
  options: [
1819
1866
  {
1820
1867
  value: "solid",
@@ -1832,53 +1879,53 @@ var yi = {
1832
1879
  "model-value": e.block.lineStyle,
1833
1880
  "onUpdate:modelValue": r[0] ||= (e) => a("lineStyle", e)
1834
1881
  }, null, 8, ["options", "model-value"])]),
1835
- C("div", ki, [C("label", { class: t(x(H)) }, s(x(i).divider.color), 3), g(G, {
1882
+ C("div", Ii, [C("label", { class: t(x(H)) }, s(x(i).divider.color), 3), g(G, {
1836
1883
  "model-value": e.block.color,
1837
1884
  "onUpdate:modelValue": r[1] ||= (e) => a("color", e)
1838
1885
  }, null, 8, ["model-value"])]),
1839
- C("div", Ai, [C("label", { class: t(x(H)) }, s(x(i).divider.thickness), 3), C("div", ji, [C("input", {
1886
+ C("div", Li, [C("label", { class: t(x(H)) }, s(x(i).divider.thickness), 3), C("div", Ri, [C("input", {
1840
1887
  type: "number",
1841
1888
  class: t(x(W)),
1842
1889
  value: e.block.thickness,
1843
1890
  min: "1",
1844
1891
  max: "10",
1845
1892
  onInput: r[2] ||= (e) => a("thickness", Number(e.target.value))
1846
- }, null, 42, Mi), C("span", { class: t(x(U)) }, "px", 2)])])
1893
+ }, null, 42, zi), C("span", { class: t(x(U)) }, "px", 2)])])
1847
1894
  ], 64));
1848
1895
  }
1849
- }), Pi = { class: "tpl:mb-3.5" }, Fi = ["value"], Ii = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Li = /* @__PURE__ */ f({
1896
+ }), Vi = { class: "tpl:mb-3.5" }, Hi = ["value"], Ui = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Wi = /* @__PURE__ */ f({
1850
1897
  __name: "HtmlToolbar",
1851
1898
  props: { block: {} },
1852
1899
  emits: ["update"],
1853
1900
  setup(e, { emit: n }) {
1854
1901
  let r = n, { t: i } = I();
1855
- return (n, a) => (o(), h("div", Pi, [
1902
+ return (n, a) => (o(), h("div", Vi, [
1856
1903
  C("label", { class: t(x(H)) }, s(x(i).html.content), 3),
1857
1904
  C("textarea", {
1858
1905
  value: e.block.content,
1859
1906
  placeholder: "<div>...</div>",
1860
1907
  rows: "10",
1861
- class: t(x(st)),
1908
+ class: t(x(lt)),
1862
1909
  onInput: a[0] ||= (e) => r("update", { content: e.target.value })
1863
- }, null, 42, Fi),
1864
- C("p", Ii, [g(x(We), {
1910
+ }, null, 42, Hi),
1911
+ C("p", Ui, [g(x(Xe), {
1865
1912
  size: 12,
1866
1913
  class: "tpl:mt-0.5 tpl:shrink-0"
1867
1914
  }), k(" " + s(x(i).html.sanitizationHint), 1)])
1868
1915
  ]));
1869
1916
  }
1870
- }), Ri = { class: "tpl:mb-3.5" }, zi = {
1917
+ }), Gi = { class: "tpl:mb-3.5" }, Ki = {
1871
1918
  key: 0,
1872
1919
  class: "tpl:mb-3.5"
1873
- }, Bi = ["value", "placeholder"], Vi = { class: "tpl:mb-3.5" }, Hi = { class: "tpl:mb-3.5" }, Ui = ["value"], Wi = { value: "full" }, Gi = { class: "tpl:mb-3.5" }, Ki = { class: "tpl:mb-3.5" }, qi = {
1920
+ }, qi = ["value", "placeholder"], Ji = { class: "tpl:mb-3.5" }, Yi = { class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]" }, Xi = ["checked"], Zi = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Qi = { class: "tpl:mb-3.5" }, $i = ["value"], ea = { value: "full" }, ta = { class: "tpl:mb-3.5" }, na = { class: "tpl:mb-3.5" }, ra = {
1874
1921
  key: 0,
1875
1922
  class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
1876
- }, Ji = ["checked"], Yi = /* @__PURE__ */ f({
1923
+ }, ia = ["checked"], aa = /* @__PURE__ */ f({
1877
1924
  __name: "ImageToolbar",
1878
1925
  props: { block: {} },
1879
1926
  emits: ["update"],
1880
1927
  setup(e, { emit: r }) {
1881
- let i = r, { t: a } = I(), c = n(je, null), l = n(Be, ne.liquid), u = w(() => !!c), f = d(!1), p = d(!1), { start: m } = Oe(() => {
1928
+ let i = r, { t: a } = I(), c = n(Ve, null), l = n(Ae, ne.liquid), u = w(() => !!c), f = d(!1), p = d(!1), { start: m } = Oe(() => {
1882
1929
  f.value = !1;
1883
1930
  }, 1e3, { immediate: !1 });
1884
1931
  function _(e, t) {
@@ -1889,9 +1936,9 @@ var yi = {
1889
1936
  e && (_("src", e.url), e.alt && (_("alt", e.alt), p.value = !0), f.value = !0, m());
1890
1937
  }
1891
1938
  return (n, r) => (o(), h(v, null, [
1892
- C("div", Ri, [
1939
+ C("div", Gi, [
1893
1940
  C("label", { class: t(x(H)) }, s(x(a).image.imageUrl), 3),
1894
- g(Y, {
1941
+ g(X, {
1895
1942
  "model-value": e.block.src,
1896
1943
  type: "url",
1897
1944
  placeholder: x(a).image.imageUrlPlaceholder,
@@ -1916,35 +1963,46 @@ var yi = {
1916
1963
  "stroke-width": 1.5
1917
1964
  }), k(" " + s(x(a).image.browseMedia), 1)])) : y("", !0)
1918
1965
  ]),
1919
- x(P)(e.block.src, x(l)) ? (o(), h("div", zi, [C("label", { class: t(x(H)) }, [k(s(x(a).image.placeholderUrl) + " ", 1), r[7] ||= C("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, s("(optional)"), -1)], 2), C("input", {
1966
+ x(P)(e.block.src, x(l)) ? (o(), h("div", Ki, [C("label", { class: t(x(H)) }, [k(s(x(a).image.placeholderUrl) + " ", 1), r[8] ||= C("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, s("(optional)"), -1)], 2), C("input", {
1920
1967
  type: "url",
1921
1968
  class: t(x(V)),
1922
1969
  value: e.block.placeholderUrl || "",
1923
1970
  placeholder: x(a).image.placeholderUrlPlaceholder,
1924
1971
  onInput: r[1] ||= (e) => _("placeholderUrl", e.target.value)
1925
- }, null, 42, Bi)])) : y("", !0),
1926
- C("div", Vi, [C("label", { class: t(x(H)) }, s(x(a).image.altText), 3), g(Y, {
1927
- "model-value": e.block.alt,
1928
- type: "text",
1929
- placeholder: x(a).image.altTextPlaceholder,
1930
- pulse: p.value,
1931
- "onUpdate:modelValue": r[2] ||= (e) => _("alt", e)
1932
- }, null, 8, [
1933
- "model-value",
1934
- "placeholder",
1935
- "pulse"
1936
- ])]),
1937
- C("div", Hi, [C("label", { class: t(x(H)) }, s(x(a).image.width), 3), C("select", {
1972
+ }, null, 42, qi)])) : y("", !0),
1973
+ C("div", Ji, [
1974
+ C("label", { class: t(x(H)) }, s(x(a).image.altText), 3),
1975
+ g(X, {
1976
+ "model-value": e.block.alt,
1977
+ type: "text",
1978
+ placeholder: x(a).image.altTextPlaceholder,
1979
+ pulse: p.value,
1980
+ disabled: e.block.decorative === !0,
1981
+ "onUpdate:modelValue": r[2] ||= (e) => _("alt", e)
1982
+ }, null, 8, [
1983
+ "model-value",
1984
+ "placeholder",
1985
+ "pulse",
1986
+ "disabled"
1987
+ ]),
1988
+ C("label", Yi, [C("input", {
1989
+ type: "checkbox",
1990
+ class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
1991
+ checked: e.block.decorative === !0,
1992
+ onChange: r[3] ||= (e) => _("decorative", e.target.checked)
1993
+ }, null, 40, Xi), C("span", null, [k(s(x(a).image.decorative) + " ", 1), C("span", Zi, s(x(a).image.decorativeHint), 1)])])
1994
+ ]),
1995
+ C("div", Qi, [C("label", { class: t(x(H)) }, s(x(a).image.width), 3), C("select", {
1938
1996
  class: t(x(V)),
1939
1997
  value: e.block.width,
1940
- onChange: r[3] ||= (e) => _("width", e.target.value === "full" ? "full" : Number(e.target.value))
1998
+ onChange: r[4] ||= (e) => _("width", e.target.value === "full" ? "full" : Number(e.target.value))
1941
1999
  }, [
1942
- C("option", Wi, s(x(a).image.fullWidth), 1),
1943
- r[8] ||= C("option", { value: "300" }, "300px", -1),
1944
- r[9] ||= C("option", { value: "400" }, "400px", -1),
1945
- r[10] ||= C("option", { value: "500" }, "500px", -1)
1946
- ], 42, Ui)]),
1947
- C("div", Gi, [C("label", { class: t(x(H)) }, s(x(a).title.align), 3), g(q, {
2000
+ C("option", ea, s(x(a).image.fullWidth), 1),
2001
+ r[9] ||= C("option", { value: "300" }, "300px", -1),
2002
+ r[10] ||= C("option", { value: "400" }, "400px", -1),
2003
+ r[11] ||= C("option", { value: "500" }, "500px", -1)
2004
+ ], 42, $i)]),
2005
+ C("div", ta, [C("label", { class: t(x(H)) }, s(x(a).title.align), 3), g(q, {
1948
2006
  options: [
1949
2007
  {
1950
2008
  value: "left",
@@ -1960,30 +2018,30 @@ var yi = {
1960
2018
  }
1961
2019
  ],
1962
2020
  "model-value": e.block.align,
1963
- "onUpdate:modelValue": r[4] ||= (e) => _("align", e)
2021
+ "onUpdate:modelValue": r[5] ||= (e) => _("align", e)
1964
2022
  }, null, 8, ["options", "model-value"])]),
1965
- C("div", Ki, [
2023
+ C("div", na, [
1966
2024
  C("label", { class: t(x(H)) }, s(x(a).image.linkUrl), 3),
1967
- g(Y, {
2025
+ g(X, {
1968
2026
  "model-value": e.block.linkUrl || "",
1969
2027
  type: "url",
1970
2028
  placeholder: x(a).image.imageUrlPlaceholder,
1971
- "onUpdate:modelValue": r[5] ||= (e) => _("linkUrl", e)
2029
+ "onUpdate:modelValue": r[6] ||= (e) => _("linkUrl", e)
1972
2030
  }, null, 8, ["model-value", "placeholder"]),
1973
- e.block.linkUrl ? (o(), h("label", qi, [C("input", {
2031
+ e.block.linkUrl ? (o(), h("label", ra, [C("input", {
1974
2032
  type: "checkbox",
1975
2033
  class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
1976
2034
  checked: e.block.linkOpenInNewTab ?? !1,
1977
- onChange: r[6] ||= (e) => _("linkOpenInNewTab", e.target.checked)
1978
- }, null, 40, Ji), k(" " + s(x(a).image.openInNewTab), 1)])) : y("", !0)
2035
+ onChange: r[7] ||= (e) => _("linkOpenInNewTab", e.target.checked)
2036
+ }, null, 40, ia), k(" " + s(x(a).image.openInNewTab), 1)])) : y("", !0)
1979
2037
  ])
1980
2038
  ], 64));
1981
2039
  }
1982
- }), Xi = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Zi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Qi = [
2040
+ }), oa = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, sa = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ca = [
1983
2041
  "value",
1984
2042
  "placeholder",
1985
2043
  "onInput"
1986
- ], $i = ["title", "onClick"], ea = { class: "tpl:flex tpl:items-center tpl:gap-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ta = ["checked", "onChange"], na = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ra = ["value"], ia = { value: "" }, aa = ["value"], oa = ["value"], sa = /* @__PURE__ */ f({
2044
+ ], la = ["title", "onClick"], ua = { class: "tpl:flex tpl:items-center tpl:gap-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, da = ["checked", "onChange"], fa = { class: "tpl:flex tpl:items-center tpl:gap-2" }, pa = ["value"], ma = { value: "" }, ha = ["value"], ga = ["value"], _a = /* @__PURE__ */ f({
1987
2045
  __name: "MenuToolbar",
1988
2046
  props: {
1989
2047
  block: {},
@@ -2008,17 +2066,17 @@ var yi = {
2008
2066
  {
2009
2067
  value: "left",
2010
2068
  label: a.title.alignLeft,
2011
- icon: Qe
2069
+ icon: et
2012
2070
  },
2013
2071
  {
2014
2072
  value: "center",
2015
2073
  label: a.title.alignCenter,
2016
- icon: Ze
2074
+ icon: $e
2017
2075
  },
2018
2076
  {
2019
2077
  value: "right",
2020
2078
  label: a.title.alignRight,
2021
- icon: Xe
2079
+ icon: z
2022
2080
  }
2023
2081
  ]);
2024
2082
  function d(e, t) {
@@ -2046,25 +2104,25 @@ var yi = {
2046
2104
  }
2047
2105
  return (n, r) => (o(), h(v, null, [
2048
2106
  g(K, { label: x(a).menu.items }, {
2049
- default: p(() => [C("div", Xi, [(o(!0), h(v, null, u(e.block.items, (n) => (o(), h("div", {
2107
+ default: p(() => [C("div", oa, [(o(!0), h(v, null, u(e.block.items, (n) => (o(), h("div", {
2050
2108
  key: n.id,
2051
2109
  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"
2052
2110
  }, [
2053
- C("div", Zi, [C("input", {
2111
+ C("div", sa, [C("input", {
2054
2112
  type: "text",
2055
2113
  class: t([x(V), "tpl:flex-1"]),
2056
2114
  value: n.text,
2057
2115
  placeholder: x(a).menu.text,
2058
2116
  onInput: (e) => m(n.id, "text", e.target.value)
2059
- }, null, 42, Qi), C("button", {
2060
- class: t(x(at)),
2117
+ }, null, 42, ca), C("button", {
2118
+ class: t(x(st)),
2061
2119
  title: x(a).menu.removeItem,
2062
2120
  onClick: (e) => _(n.id)
2063
- }, [g(x(et), {
2121
+ }, [g(x(nt), {
2064
2122
  size: 14,
2065
2123
  "stroke-width": 2
2066
- })], 10, $i)]),
2067
- g(Y, {
2124
+ })], 10, la)]),
2125
+ g(X, {
2068
2126
  "model-value": n.url,
2069
2127
  type: "url",
2070
2128
  placeholder: x(a).menu.urlPlaceholder,
@@ -2074,7 +2132,7 @@ var yi = {
2074
2132
  "placeholder",
2075
2133
  "onUpdate:modelValue"
2076
2134
  ]),
2077
- C("div", ea, [(o(!0), h(v, null, u(c.value, (e) => (o(), h("label", {
2135
+ C("div", ua, [(o(!0), h(v, null, u(c.value, (e) => (o(), h("label", {
2078
2136
  key: e.key,
2079
2137
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1"
2080
2138
  }, [C("input", {
@@ -2082,14 +2140,14 @@ var yi = {
2082
2140
  checked: n[e.key],
2083
2141
  class: "tpl:accent-[var(--tpl-primary)]",
2084
2142
  onChange: (t) => m(n.id, e.key, t.target.checked)
2085
- }, null, 40, ta), k(" " + s(e.label), 1)]))), 128))]),
2086
- C("div", na, [C("label", { class: t([x(H), "tpl:!mb-0"]) }, s(x(a).menu.color), 3), g(G, {
2143
+ }, null, 40, da), k(" " + s(e.label), 1)]))), 128))]),
2144
+ C("div", fa, [C("label", { class: t([x(H), "tpl:!mb-0"]) }, s(x(a).menu.color), 3), g(G, {
2087
2145
  "swatch-only": "",
2088
2146
  "model-value": n.color || e.block.linkColor || e.block.color,
2089
2147
  "onUpdate:modelValue": (e) => m(n.id, "color", e)
2090
2148
  }, null, 8, ["model-value", "onUpdate:modelValue"])])
2091
2149
  ]))), 128)), C("button", {
2092
- class: t(x(ot)),
2150
+ class: t(x(ct)),
2093
2151
  onClick: f
2094
2152
  }, [g(x(J), {
2095
2153
  size: 14,
@@ -2102,14 +2160,14 @@ var yi = {
2102
2160
  class: t(x(V)),
2103
2161
  value: e.block.fontFamily || "",
2104
2162
  onChange: r[0] ||= (e) => d("fontFamily", e.target.value || void 0)
2105
- }, [C("option", ia, s(x(a).title.inheritFont), 1), (o(!0), h(v, null, u(e.fontFamilies, (e) => (o(), h("option", {
2163
+ }, [C("option", ma, s(x(a).title.inheritFont), 1), (o(!0), h(v, null, u(e.fontFamilies, (e) => (o(), h("option", {
2106
2164
  key: e.value,
2107
2165
  value: e.value
2108
- }, s(e.label), 9, aa))), 128))], 42, ra)]),
2166
+ }, s(e.label), 9, ha))), 128))], 42, pa)]),
2109
2167
  _: 1
2110
2168
  }, 8, ["label"]),
2111
2169
  g(K, { label: x(a).menu.fontSize }, {
2112
- default: p(() => [g(ut, {
2170
+ default: p(() => [g(ft, {
2113
2171
  "model-value": e.block.fontSize,
2114
2172
  min: 8,
2115
2173
  max: 48,
@@ -2146,7 +2204,7 @@ var yi = {
2146
2204
  class: t(x(V)),
2147
2205
  value: e.block.separator,
2148
2206
  onInput: r[5] ||= (e) => d("separator", e.target.value)
2149
- }, null, 42, oa)]),
2207
+ }, null, 42, ga)]),
2150
2208
  _: 1
2151
2209
  }, 8, ["label"]),
2152
2210
  g(K, { label: x(a).menu.separatorColor }, {
@@ -2157,7 +2215,7 @@ var yi = {
2157
2215
  _: 1
2158
2216
  }, 8, ["label"]),
2159
2217
  g(K, { label: x(a).menu.spacing }, {
2160
- default: p(() => [g(ut, {
2218
+ default: p(() => [g(ft, {
2161
2219
  "model-value": e.block.spacing,
2162
2220
  min: 0,
2163
2221
  max: 50,
@@ -2168,7 +2226,7 @@ var yi = {
2168
2226
  }, 8, ["label"])
2169
2227
  ], 64));
2170
2228
  }
2171
- }), ca = { class: "tpl:mb-3.5" }, la = ["value"], ua = ["value"], da = /* @__PURE__ */ f({
2229
+ }), va = { class: "tpl:mb-3.5" }, ya = ["value"], ba = ["value"], xa = /* @__PURE__ */ f({
2172
2230
  __name: "SectionToolbar",
2173
2231
  props: { block: {} },
2174
2232
  emits: ["update"],
@@ -2195,16 +2253,16 @@ var yi = {
2195
2253
  label: i.section.ratio21
2196
2254
  }
2197
2255
  ]);
2198
- return (n, c) => (o(), h("div", ca, [C("label", { class: t(x(H)) }, s(x(i).section.columns), 3), C("select", {
2256
+ return (n, c) => (o(), h("div", va, [C("label", { class: t(x(H)) }, s(x(i).section.columns), 3), C("select", {
2199
2257
  class: t(x(V)),
2200
2258
  value: e.block.columns,
2201
2259
  onChange: c[0] ||= (e) => r("update", { columns: e.target.value })
2202
2260
  }, [(o(!0), h(v, null, u(a.value, (e) => (o(), h("option", {
2203
2261
  key: e.value,
2204
2262
  value: e.value
2205
- }, s(e.label), 9, ua))), 128))], 42, la)]));
2263
+ }, s(e.label), 9, ba))), 128))], 42, ya)]));
2206
2264
  }
2207
- }), fa = { class: "tpl:mb-3.5" }, pa = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ma = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ha = ["value", "onChange"], ga = ["value"], _a = ["title", "onClick"], va = { class: "tpl:mb-3.5" }, ya = { class: "tpl:mb-3.5" }, ba = { class: "tpl:mb-3.5" }, xa = { class: "tpl:flex tpl:items-stretch" }, Sa = ["value"], Ca = { class: "tpl:mb-3.5" }, wa = /* @__PURE__ */ f({
2265
+ }), Sa = { class: "tpl:mb-3.5" }, Ca = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, wa = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ta = ["value", "onChange"], Ea = ["value"], Da = ["title", "onClick"], Oa = { class: "tpl:mb-3.5" }, ka = { class: "tpl:mb-3.5" }, Aa = { class: "tpl:mb-3.5" }, ja = { class: "tpl:flex tpl:items-stretch" }, Ma = ["value"], Na = { class: "tpl:mb-3.5" }, Pa = /* @__PURE__ */ f({
2208
2266
  __name: "SocialToolbar",
2209
2267
  props: { block: {} },
2210
2268
  emits: ["update"],
@@ -2231,24 +2289,24 @@ var yi = {
2231
2289
  i("update", { icons: r.block.icons.filter((t) => t.id !== e) });
2232
2290
  }
2233
2291
  return (n, r) => (o(), h(v, null, [
2234
- C("div", fa, [C("label", { class: t(x(H)) }, s(x(a).social.icons), 3), C("div", pa, [(o(!0), h(v, null, u(e.block.icons, (e) => (o(), h("div", {
2292
+ C("div", Sa, [C("label", { class: t(x(H)) }, s(x(a).social.icons), 3), C("div", Ca, [(o(!0), h(v, null, u(e.block.icons, (e) => (o(), h("div", {
2235
2293
  key: e.id,
2236
2294
  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"
2237
- }, [C("div", ma, [C("select", {
2295
+ }, [C("div", wa, [C("select", {
2238
2296
  class: t([x(V), "tpl:flex-1"]),
2239
2297
  value: e.platform,
2240
2298
  onChange: (t) => d(e.id, "platform", t.target.value)
2241
2299
  }, [(o(!0), h(v, null, u(x(we), (e) => (o(), h("option", {
2242
2300
  key: e,
2243
2301
  value: e
2244
- }, s(x(xe)[e].name), 9, ga))), 128))], 42, ha), C("button", {
2245
- class: t(x(at)),
2302
+ }, s(x(xe)[e].name), 9, Ea))), 128))], 42, Ta), C("button", {
2303
+ class: t(x(st)),
2246
2304
  title: x(a).social.removeIcon,
2247
2305
  onClick: (t) => f(e.id)
2248
- }, [g(x(et), {
2306
+ }, [g(x(nt), {
2249
2307
  size: 14,
2250
2308
  "stroke-width": 2
2251
- })], 10, _a)]), g(Y, {
2309
+ })], 10, Da)]), g(X, {
2252
2310
  "model-value": e.url,
2253
2311
  type: "url",
2254
2312
  placeholder: x(a).social.urlPlaceholder,
@@ -2258,13 +2316,13 @@ var yi = {
2258
2316
  "placeholder",
2259
2317
  "onUpdate:modelValue"
2260
2318
  ])]))), 128)), C("button", {
2261
- class: t(x(ot)),
2319
+ class: t(x(ct)),
2262
2320
  onClick: l
2263
2321
  }, [g(x(J), {
2264
2322
  size: 14,
2265
2323
  "stroke-width": 2
2266
2324
  }), k(" " + s(x(a).social.addIcon), 1)], 2)])]),
2267
- C("div", va, [C("label", { class: t(x(H)) }, s(x(a).social.style), 3), g(q, {
2325
+ C("div", Oa, [C("label", { class: t(x(H)) }, s(x(a).social.style), 3), g(q, {
2268
2326
  options: [
2269
2327
  {
2270
2328
  value: "solid",
@@ -2290,7 +2348,7 @@ var yi = {
2290
2348
  "model-value": e.block.iconStyle,
2291
2349
  "onUpdate:modelValue": r[0] ||= (e) => c("iconStyle", e)
2292
2350
  }, null, 8, ["options", "model-value"])]),
2293
- C("div", ya, [C("label", { class: t(x(H)) }, s(x(a).social.size), 3), g(q, {
2351
+ C("div", ka, [C("label", { class: t(x(H)) }, s(x(a).social.size), 3), g(q, {
2294
2352
  options: [
2295
2353
  {
2296
2354
  value: "small",
@@ -2308,30 +2366,30 @@ var yi = {
2308
2366
  "model-value": e.block.iconSize,
2309
2367
  "onUpdate:modelValue": r[1] ||= (e) => c("iconSize", e)
2310
2368
  }, null, 8, ["options", "model-value"])]),
2311
- C("div", ba, [C("label", { class: t(x(H)) }, s(x(a).social.spacing), 3), C("div", xa, [C("input", {
2369
+ C("div", Aa, [C("label", { class: t(x(H)) }, s(x(a).social.spacing), 3), C("div", ja, [C("input", {
2312
2370
  type: "number",
2313
2371
  class: t(x(W)),
2314
2372
  value: e.block.spacing,
2315
2373
  min: "0",
2316
2374
  max: "50",
2317
2375
  onInput: r[2] ||= (e) => c("spacing", Number(e.target.value))
2318
- }, null, 42, Sa), C("span", { class: t(x(U)) }, "px", 2)])]),
2319
- C("div", Ca, [C("label", { class: t(x(H)) }, s(x(a).social.align), 3), g(q, {
2376
+ }, null, 42, Ma), C("span", { class: t(x(U)) }, "px", 2)])]),
2377
+ C("div", Na, [C("label", { class: t(x(H)) }, s(x(a).social.align), 3), g(q, {
2320
2378
  options: [
2321
2379
  {
2322
2380
  value: "left",
2323
2381
  label: x(a).title.alignLeft,
2324
- icon: x(Qe)
2382
+ icon: x(et)
2325
2383
  },
2326
2384
  {
2327
2385
  value: "center",
2328
2386
  label: x(a).title.alignCenter,
2329
- icon: x(Ze)
2387
+ icon: x($e)
2330
2388
  },
2331
2389
  {
2332
2390
  value: "right",
2333
2391
  label: x(a).title.alignRight,
2334
- icon: x(Xe)
2392
+ icon: x(z)
2335
2393
  }
2336
2394
  ],
2337
2395
  "model-value": e.block.align,
@@ -2339,22 +2397,22 @@ var yi = {
2339
2397
  }, null, 8, ["options", "model-value"])])
2340
2398
  ], 64));
2341
2399
  }
2342
- }), Ta = { class: "tpl:mb-3.5" }, Ea = { class: "tpl:flex tpl:items-stretch" }, Da = ["value"], Oa = ["value"], ka = /* @__PURE__ */ f({
2400
+ }), Fa = { class: "tpl:mb-3.5" }, Ia = { class: "tpl:flex tpl:items-stretch" }, La = ["value"], Ra = ["value"], za = /* @__PURE__ */ f({
2343
2401
  __name: "SpacerToolbar",
2344
2402
  props: { block: {} },
2345
2403
  emits: ["update"],
2346
2404
  setup(e, { emit: n }) {
2347
2405
  let r = n, { t: i } = I();
2348
- return (n, a) => (o(), h("div", Ta, [
2406
+ return (n, a) => (o(), h("div", Fa, [
2349
2407
  C("label", { class: t(x(H)) }, s(x(i).spacer.height), 3),
2350
- C("div", Ea, [C("input", {
2408
+ C("div", Ia, [C("input", {
2351
2409
  type: "number",
2352
2410
  class: t(x(W)),
2353
2411
  value: e.block.height,
2354
2412
  min: "10",
2355
2413
  max: "100",
2356
2414
  onInput: a[0] ||= (e) => r("update", { height: Number(e.target.value) })
2357
- }, null, 42, Da), C("span", { class: t(x(U)) }, "px", 2)]),
2415
+ }, null, 42, La), C("span", { class: t(x(U)) }, "px", 2)]),
2358
2416
  C("input", {
2359
2417
  type: "range",
2360
2418
  class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
@@ -2362,13 +2420,13 @@ var yi = {
2362
2420
  min: "10",
2363
2421
  max: "100",
2364
2422
  onInput: a[1] ||= (e) => r("update", { height: Number(e.target.value) })
2365
- }, null, 40, Oa)
2423
+ }, null, 40, Ra)
2366
2424
  ]));
2367
2425
  }
2368
- }), Aa = { class: "tpl:mb-3.5" }, ja = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Ma = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Na = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Pa = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Fa = ["disabled"], Ia = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, La = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Ra = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, za = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ba = ["disabled"], Va = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ha = { class: "tpl:mb-3.5" }, Ua = { 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)]" }, Wa = ["checked"], Ga = {
2426
+ }), Ba = { class: "tpl:mb-3.5" }, Va = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Ha = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Ua = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Wa = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ga = ["disabled"], Ka = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, qa = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Ja = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ya = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Xa = ["disabled"], Za = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Qa = { class: "tpl:mb-3.5" }, $a = { 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)]" }, eo = ["checked"], to = {
2369
2427
  key: 0,
2370
2428
  class: "tpl:mb-3.5"
2371
- }, Ka = { class: "tpl:mb-3.5" }, qa = { class: "tpl:mb-3.5" }, Ja = { class: "tpl:flex tpl:items-stretch" }, Ya = ["value"], Xa = { class: "tpl:mb-3.5" }, Za = { class: "tpl:flex tpl:items-stretch" }, Qa = ["value"], $a = { class: "tpl:mb-3.5" }, eo = ["value"], to = { value: "" }, no = ["value"], ro = { class: "tpl:mb-3.5" }, io = { class: "tpl:flex tpl:items-stretch" }, ao = ["value"], oo = { class: "tpl:mb-3.5" }, so = { class: "tpl:mb-3.5" }, co = /* @__PURE__ */ f({
2429
+ }, no = { class: "tpl:mb-3.5" }, ro = { class: "tpl:mb-3.5" }, io = { class: "tpl:flex tpl:items-stretch" }, ao = ["value"], oo = { class: "tpl:mb-3.5" }, so = { class: "tpl:flex tpl:items-stretch" }, co = ["value"], lo = { class: "tpl:mb-3.5" }, uo = ["value"], fo = { value: "" }, po = ["value"], mo = { class: "tpl:mb-3.5" }, ho = { class: "tpl:flex tpl:items-stretch" }, go = ["value"], _o = { class: "tpl:mb-3.5" }, vo = { class: "tpl:mb-3.5" }, yo = /* @__PURE__ */ f({
2372
2430
  __name: "TableToolbar",
2373
2431
  props: {
2374
2432
  block: {},
@@ -2409,16 +2467,16 @@ var yi = {
2409
2467
  })) });
2410
2468
  }
2411
2469
  return (n, r) => (o(), h(v, null, [
2412
- C("div", Aa, [C("label", { class: t(x(H)) }, s(x(a).table.dimensions), 3), C("div", ja, [C("div", Ma, [C("span", Na, s(x(a).table.rows), 1), C("div", Pa, [
2470
+ C("div", Ba, [C("label", { class: t(x(H)) }, s(x(a).table.dimensions), 3), C("div", Va, [C("div", Ha, [C("span", Ua, s(x(a).table.rows), 1), C("div", Wa, [
2413
2471
  C("button", {
2414
2472
  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",
2415
2473
  disabled: e.block.rows.length <= 1,
2416
2474
  onClick: r[0] ||= (t) => f(e.block.rows[e.block.rows.length - 1].id)
2417
- }, [g(x(z), {
2475
+ }, [g(x(R), {
2418
2476
  size: 12,
2419
2477
  "stroke-width": 2
2420
- })], 8, Fa),
2421
- C("span", Ia, s(e.block.rows.length), 1),
2478
+ })], 8, Ga),
2479
+ C("span", Ka, s(e.block.rows.length), 1),
2422
2480
  C("button", {
2423
2481
  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)]",
2424
2482
  onClick: d
@@ -2426,16 +2484,16 @@ var yi = {
2426
2484
  size: 12,
2427
2485
  "stroke-width": 2
2428
2486
  })])
2429
- ])]), C("div", La, [C("span", Ra, s(x(a).table.columns), 1), C("div", za, [
2487
+ ])]), C("div", qa, [C("span", Ja, s(x(a).table.columns), 1), C("div", Ya, [
2430
2488
  C("button", {
2431
2489
  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",
2432
2490
  disabled: c.value <= 1,
2433
2491
  onClick: r[1] ||= (e) => m(c.value - 1)
2434
- }, [g(x(z), {
2492
+ }, [g(x(R), {
2435
2493
  size: 12,
2436
2494
  "stroke-width": 2
2437
- })], 8, Ba),
2438
- C("span", Va, s(c.value), 1),
2495
+ })], 8, Xa),
2496
+ C("span", Za, s(c.value), 1),
2439
2497
  C("button", {
2440
2498
  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)]",
2441
2499
  onClick: p
@@ -2444,73 +2502,73 @@ var yi = {
2444
2502
  "stroke-width": 2
2445
2503
  })])
2446
2504
  ])])])]),
2447
- C("div", Ha, [C("label", Ua, [C("input", {
2505
+ C("div", Qa, [C("label", $a, [C("input", {
2448
2506
  type: "checkbox",
2449
2507
  checked: e.block.hasHeaderRow,
2450
2508
  class: "tpl:accent-[var(--tpl-primary)]",
2451
2509
  onChange: r[2] ||= (e) => l("hasHeaderRow", e.target.checked)
2452
- }, null, 40, Wa), k(" " + s(x(a).table.hasHeaderRow), 1)])]),
2453
- e.block.hasHeaderRow ? (o(), h("div", Ga, [C("label", { class: t(x(H)) }, s(x(a).table.headerBackgroundColor), 3), g(G, {
2510
+ }, null, 40, eo), k(" " + s(x(a).table.hasHeaderRow), 1)])]),
2511
+ e.block.hasHeaderRow ? (o(), h("div", to, [C("label", { class: t(x(H)) }, s(x(a).table.headerBackgroundColor), 3), g(G, {
2454
2512
  "model-value": e.block.headerBackgroundColor || x("#f2f2f2"),
2455
2513
  placeholder: x(a).table.noHeaderBg,
2456
2514
  "onUpdate:modelValue": r[3] ||= (e) => l("headerBackgroundColor", e || null)
2457
2515
  }, null, 8, ["model-value", "placeholder"])])) : y("", !0),
2458
- C("div", Ka, [C("label", { class: t(x(H)) }, s(x(a).table.borderColor), 3), g(G, {
2516
+ C("div", no, [C("label", { class: t(x(H)) }, s(x(a).table.borderColor), 3), g(G, {
2459
2517
  "model-value": e.block.borderColor,
2460
2518
  "onUpdate:modelValue": r[4] ||= (e) => l("borderColor", e)
2461
2519
  }, null, 8, ["model-value"])]),
2462
- C("div", qa, [C("label", { class: t(x(H)) }, s(x(a).table.borderWidth), 3), C("div", Ja, [C("input", {
2520
+ C("div", ro, [C("label", { class: t(x(H)) }, s(x(a).table.borderWidth), 3), C("div", io, [C("input", {
2463
2521
  type: "number",
2464
2522
  class: t(x(W)),
2465
2523
  value: e.block.borderWidth,
2466
2524
  min: "0",
2467
2525
  max: "10",
2468
2526
  onInput: r[5] ||= (e) => l("borderWidth", Number(e.target.value))
2469
- }, null, 42, Ya), C("span", { class: t(x(U)) }, "px", 2)])]),
2470
- C("div", Xa, [C("label", { class: t(x(H)) }, s(x(a).table.cellPadding), 3), C("div", Za, [C("input", {
2527
+ }, null, 42, ao), C("span", { class: t(x(U)) }, "px", 2)])]),
2528
+ C("div", oo, [C("label", { class: t(x(H)) }, s(x(a).table.cellPadding), 3), C("div", so, [C("input", {
2471
2529
  type: "number",
2472
2530
  class: t(x(W)),
2473
2531
  value: e.block.cellPadding,
2474
2532
  min: "0",
2475
2533
  max: "30",
2476
2534
  onInput: r[6] ||= (e) => l("cellPadding", Number(e.target.value))
2477
- }, null, 42, Qa), C("span", { class: t(x(U)) }, "px", 2)])]),
2478
- C("div", $a, [C("label", { class: t(x(H)) }, s(x(a).table.fontFamily), 3), C("select", {
2535
+ }, null, 42, co), C("span", { class: t(x(U)) }, "px", 2)])]),
2536
+ C("div", lo, [C("label", { class: t(x(H)) }, s(x(a).table.fontFamily), 3), C("select", {
2479
2537
  class: t(x(V)),
2480
2538
  value: e.block.fontFamily || "",
2481
2539
  onChange: r[7] ||= (e) => l("fontFamily", e.target.value || void 0)
2482
- }, [C("option", to, s(x(a).title.inheritFont), 1), (o(!0), h(v, null, u(e.fontFamilies, (e) => (o(), h("option", {
2540
+ }, [C("option", fo, s(x(a).title.inheritFont), 1), (o(!0), h(v, null, u(e.fontFamilies, (e) => (o(), h("option", {
2483
2541
  key: e.value,
2484
2542
  value: e.value
2485
- }, s(e.label), 9, no))), 128))], 42, eo)]),
2486
- C("div", ro, [C("label", { class: t(x(H)) }, s(x(a).table.fontSize), 3), C("div", io, [C("input", {
2543
+ }, s(e.label), 9, po))), 128))], 42, uo)]),
2544
+ C("div", mo, [C("label", { class: t(x(H)) }, s(x(a).table.fontSize), 3), C("div", ho, [C("input", {
2487
2545
  type: "number",
2488
2546
  class: t(x(W)),
2489
2547
  value: e.block.fontSize,
2490
2548
  min: "10",
2491
2549
  max: "32",
2492
2550
  onInput: r[8] ||= (e) => l("fontSize", Number(e.target.value))
2493
- }, null, 42, ao), C("span", { class: t(x(U)) }, "px", 2)])]),
2494
- C("div", oo, [C("label", { class: t(x(H)) }, s(x(a).table.color), 3), g(G, {
2551
+ }, null, 42, go), C("span", { class: t(x(U)) }, "px", 2)])]),
2552
+ C("div", _o, [C("label", { class: t(x(H)) }, s(x(a).table.color), 3), g(G, {
2495
2553
  "model-value": e.block.color,
2496
2554
  "onUpdate:modelValue": r[9] ||= (e) => l("color", e)
2497
2555
  }, null, 8, ["model-value"])]),
2498
- C("div", so, [C("label", { class: t(x(H)) }, s(x(a).table.textAlign), 3), g(q, {
2556
+ C("div", vo, [C("label", { class: t(x(H)) }, s(x(a).table.textAlign), 3), g(q, {
2499
2557
  options: [
2500
2558
  {
2501
2559
  value: "left",
2502
2560
  label: x(a).title.alignLeft,
2503
- icon: x(Qe)
2561
+ icon: x(et)
2504
2562
  },
2505
2563
  {
2506
2564
  value: "center",
2507
2565
  label: x(a).title.alignCenter,
2508
- icon: x(Ze)
2566
+ icon: x($e)
2509
2567
  },
2510
2568
  {
2511
2569
  value: "right",
2512
2570
  label: x(a).title.alignRight,
2513
- icon: x(Xe)
2571
+ icon: x(z)
2514
2572
  }
2515
2573
  ],
2516
2574
  "model-value": e.block.textAlign,
@@ -2518,7 +2576,7 @@ var yi = {
2518
2576
  }, null, 8, ["options", "model-value"])])
2519
2577
  ], 64));
2520
2578
  }
2521
- }), lo = { class: "tpl:mb-3.5" }, uo = ["value"], fo = { value: 1 }, po = { value: 2 }, mo = { value: 3 }, ho = { value: 4 }, go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = { value: "" }, yo = ["value"], bo = { class: "tpl:mb-3.5" }, xo = { class: "tpl:mb-3.5" }, So = /* @__PURE__ */ f({
2579
+ }), bo = { class: "tpl:mb-3.5" }, xo = ["value"], So = { value: 1 }, Co = { value: 2 }, wo = { value: 3 }, To = { value: 4 }, Eo = { class: "tpl:mb-3.5" }, Do = ["value"], Oo = { value: "" }, ko = ["value"], Ao = { class: "tpl:mb-3.5" }, jo = { class: "tpl:mb-3.5" }, Mo = /* @__PURE__ */ f({
2522
2580
  __name: "TitleToolbar",
2523
2581
  props: {
2524
2582
  block: {},
@@ -2531,44 +2589,44 @@ var yi = {
2531
2589
  r("update", { [e]: t });
2532
2590
  }
2533
2591
  return (n, r) => (o(), h(v, null, [
2534
- C("div", lo, [C("label", { class: t(x(H)) }, s(x(i).title.level), 3), C("select", {
2592
+ C("div", bo, [C("label", { class: t(x(H)) }, s(x(i).title.level), 3), C("select", {
2535
2593
  class: t(x(V)),
2536
2594
  value: e.block.level,
2537
2595
  onChange: r[0] ||= (e) => a("level", Number(e.target.value))
2538
2596
  }, [
2539
- C("option", fo, s(x(i).title.heading1), 1),
2540
- C("option", po, s(x(i).title.heading2), 1),
2541
- C("option", mo, s(x(i).title.heading3), 1),
2542
- C("option", ho, s(x(i).title.heading4), 1)
2543
- ], 42, uo)]),
2544
- C("div", go, [C("label", { class: t(x(H)) }, s(x(i).title.fontFamily), 3), C("select", {
2597
+ C("option", So, s(x(i).title.heading1), 1),
2598
+ C("option", Co, s(x(i).title.heading2), 1),
2599
+ C("option", wo, s(x(i).title.heading3), 1),
2600
+ C("option", To, s(x(i).title.heading4), 1)
2601
+ ], 42, xo)]),
2602
+ C("div", Eo, [C("label", { class: t(x(H)) }, s(x(i).title.fontFamily), 3), C("select", {
2545
2603
  class: t(x(V)),
2546
2604
  value: e.block.fontFamily || "",
2547
2605
  onChange: r[1] ||= (e) => a("fontFamily", e.target.value || void 0)
2548
- }, [C("option", vo, s(x(i).title.inheritFont), 1), (o(!0), h(v, null, u(e.fontFamilies, (e) => (o(), h("option", {
2606
+ }, [C("option", Oo, s(x(i).title.inheritFont), 1), (o(!0), h(v, null, u(e.fontFamilies, (e) => (o(), h("option", {
2549
2607
  key: e.value,
2550
2608
  value: e.value
2551
- }, s(e.label), 9, yo))), 128))], 42, _o)]),
2552
- C("div", bo, [C("label", { class: t(x(H)) }, s(x(i).title.color), 3), g(G, {
2609
+ }, s(e.label), 9, ko))), 128))], 42, Do)]),
2610
+ C("div", Ao, [C("label", { class: t(x(H)) }, s(x(i).title.color), 3), g(G, {
2553
2611
  "model-value": e.block.color,
2554
2612
  "onUpdate:modelValue": r[2] ||= (e) => a("color", e)
2555
2613
  }, null, 8, ["model-value"])]),
2556
- C("div", xo, [C("label", { class: t(x(H)) }, s(x(i).title.align), 3), g(q, {
2614
+ C("div", jo, [C("label", { class: t(x(H)) }, s(x(i).title.align), 3), g(q, {
2557
2615
  options: [
2558
2616
  {
2559
2617
  value: "left",
2560
2618
  label: x(i).title.alignLeft,
2561
- icon: x(Qe)
2619
+ icon: x(et)
2562
2620
  },
2563
2621
  {
2564
2622
  value: "center",
2565
2623
  label: x(i).title.alignCenter,
2566
- icon: x(Ze)
2624
+ icon: x($e)
2567
2625
  },
2568
2626
  {
2569
2627
  value: "right",
2570
2628
  label: x(i).title.alignRight,
2571
- icon: x(Xe)
2629
+ icon: x(z)
2572
2630
  }
2573
2631
  ],
2574
2632
  "model-value": e.block.textAlign,
@@ -2576,7 +2634,7 @@ var yi = {
2576
2634
  }, null, 8, ["options", "model-value"])])
2577
2635
  ], 64));
2578
2636
  }
2579
- }), Co = ["aria-label"], wo = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, To = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Eo = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Do = { class: "tpl:flex tpl:gap-1" }, Oo = ["title"], ko = ["title"], Ao = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, jo = /* @__PURE__ */ R(/* @__PURE__ */ f({
2637
+ }), No = ["aria-label"], Po = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Fo = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Io = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Lo = { class: "tpl:flex tpl:gap-1" }, Ro = ["title"], zo = ["title"], Bo = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Vo = /* @__PURE__ */ B(/* @__PURE__ */ f({
2580
2638
  __name: "Toolbar",
2581
2639
  props: { block: {} },
2582
2640
  emits: [
@@ -2585,7 +2643,7 @@ var yi = {
2585
2643
  "duplicate"
2586
2644
  ],
2587
2645
  setup(e, { emit: t }) {
2588
- let r = O(() => import("./CountdownToolbar-Bo3Jaiky.js")), i = e, c = t, { t: l } = I(), u = ke(Pe, "Toolbar"), d = n(Me, []), f = w(() => i.block.type), p = w(() => M(i.block)), m = w(() => {
2646
+ let r = O(() => import("./CountdownToolbar-ClJr2GzL.js")), i = e, c = t, { t: l } = I(), u = ke(Pe, "Toolbar"), d = n(Ne, []), f = w(() => i.block.type), p = w(() => M(i.block)), m = w(() => {
2589
2647
  if (p.value) return d.find((e) => e.type === i.block.customType);
2590
2648
  }), _ = w(() => p.value ? m.value?.name ?? i.block.customType : F(f.value, l)), S = u.fonts;
2591
2649
  function T(e) {
@@ -2594,7 +2652,7 @@ var yi = {
2594
2652
  return (t, n) => (o(), h("aside", {
2595
2653
  "aria-label": x(l).landmarks.blockToolbar,
2596
2654
  class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
2597
- }, [C("div", wo, [C("div", To, [x(B)[f.value] ? (o(), b(a(x(B)[f.value]), {
2655
+ }, [C("div", Po, [C("div", Fo, [x(Ke)[f.value] ? (o(), b(a(x(Ke)[f.value]), {
2598
2656
  key: 0,
2599
2657
  size: 16,
2600
2658
  "stroke-width": 1.5
@@ -2602,66 +2660,66 @@ var yi = {
2602
2660
  key: 1,
2603
2661
  size: 16,
2604
2662
  "stroke-width": 1.5
2605
- })) : y("", !0), C("h3", Eo, s(_.value), 1)]), C("div", Do, [C("button", {
2663
+ })) : y("", !0), C("h3", Io, s(_.value), 1)]), C("div", Lo, [C("button", {
2606
2664
  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)]",
2607
2665
  title: x(l).toolbar.duplicate,
2608
2666
  onClick: n[0] ||= (e) => c("duplicate")
2609
2667
  }, [g(x(ge), {
2610
2668
  size: 14,
2611
2669
  "stroke-width": 2
2612
- })], 8, Oo), C("button", {
2670
+ })], 8, Ro), C("button", {
2613
2671
  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)]",
2614
2672
  title: x(l).toolbar.delete,
2615
2673
  onClick: n[1] ||= (e) => c("delete")
2616
- }, [g(x($e), {
2674
+ }, [g(x(tt), {
2617
2675
  size: 14,
2618
2676
  "stroke-width": 2
2619
- })], 8, ko)])]), C("div", Ao, [p.value ? (o(), b(Di, {
2677
+ })], 8, zo)])]), C("div", Bo, [p.value ? (o(), b(Pi, {
2620
2678
  key: 0,
2621
2679
  block: e.block,
2622
2680
  onUpdateFieldValues: n[2] ||= (e) => c("update", { fieldValues: e }),
2623
2681
  onUpdateDataSourceFetched: n[3] ||= (e) => c("update", { dataSourceFetched: e })
2624
- }, null, 8, ["block"])) : f.value === "section" ? (o(), b(da, {
2682
+ }, null, 8, ["block"])) : f.value === "section" ? (o(), b(xa, {
2625
2683
  key: 1,
2626
2684
  block: e.block,
2627
2685
  onUpdate: T
2628
- }, null, 8, ["block"])) : f.value === "title" ? (o(), b(So, {
2686
+ }, null, 8, ["block"])) : f.value === "title" ? (o(), b(Mo, {
2629
2687
  key: 2,
2630
2688
  block: e.block,
2631
2689
  "font-families": x(S),
2632
2690
  onUpdate: T
2633
- }, null, 8, ["block", "font-families"])) : f.value === "paragraph" ? (o(), h(v, { key: 3 }, [], 64)) : f.value === "image" ? (o(), b(Yi, {
2691
+ }, null, 8, ["block", "font-families"])) : f.value === "paragraph" ? (o(), h(v, { key: 3 }, [], 64)) : f.value === "image" ? (o(), b(aa, {
2634
2692
  key: 4,
2635
2693
  block: e.block,
2636
2694
  onUpdate: T
2637
- }, null, 8, ["block"])) : f.value === "button" ? (o(), b(er, {
2695
+ }, null, 8, ["block"])) : f.value === "button" ? (o(), b(or, {
2638
2696
  key: 5,
2639
2697
  block: e.block,
2640
2698
  "font-families": x(S),
2641
2699
  onUpdate: T
2642
- }, null, 8, ["block", "font-families"])) : f.value === "divider" ? (o(), b(Ni, {
2700
+ }, null, 8, ["block", "font-families"])) : f.value === "divider" ? (o(), b(Bi, {
2643
2701
  key: 6,
2644
2702
  block: e.block,
2645
2703
  onUpdate: T
2646
- }, null, 8, ["block"])) : f.value === "social" ? (o(), b(wa, {
2704
+ }, null, 8, ["block"])) : f.value === "social" ? (o(), b(Pa, {
2647
2705
  key: 7,
2648
2706
  block: e.block,
2649
2707
  onUpdate: T
2650
- }, null, 8, ["block"])) : f.value === "menu" ? (o(), b(sa, {
2708
+ }, null, 8, ["block"])) : f.value === "menu" ? (o(), b(_a, {
2651
2709
  key: 8,
2652
2710
  block: e.block,
2653
2711
  "font-families": x(S),
2654
2712
  onUpdate: T
2655
- }, null, 8, ["block", "font-families"])) : f.value === "table" ? (o(), b(co, {
2713
+ }, null, 8, ["block", "font-families"])) : f.value === "table" ? (o(), b(yo, {
2656
2714
  key: 9,
2657
2715
  block: e.block,
2658
2716
  "font-families": x(S),
2659
2717
  onUpdate: T
2660
- }, null, 8, ["block", "font-families"])) : f.value === "spacer" ? (o(), b(ka, {
2718
+ }, null, 8, ["block", "font-families"])) : f.value === "spacer" ? (o(), b(za, {
2661
2719
  key: 10,
2662
2720
  block: e.block,
2663
2721
  onUpdate: T
2664
- }, null, 8, ["block"])) : f.value === "html" ? (o(), b(Li, {
2722
+ }, null, 8, ["block"])) : f.value === "html" ? (o(), b(Wi, {
2665
2723
  key: 11,
2666
2724
  block: e.block,
2667
2725
  onUpdate: T
@@ -2670,31 +2728,52 @@ var yi = {
2670
2728
  block: e.block,
2671
2729
  "font-families": x(S),
2672
2730
  onUpdate: T
2673
- }, null, 8, ["block", "font-families"])) : y("", !0), g(Wr, {
2731
+ }, null, 8, ["block", "font-families"])) : y("", !0), g(Zr, {
2674
2732
  block: e.block,
2675
2733
  "is-first-section": f.value === "paragraph",
2676
2734
  onUpdate: T
2677
- }, null, 8, ["block", "is-first-section"])])], 8, Co));
2735
+ }, null, 8, ["block", "is-first-section"])])], 8, No));
2678
2736
  }
2679
- }), [["__scopeId", "data-v-0f4a9227"]]), Mo = ["aria-label"], No = {
2737
+ }), [["__scopeId", "data-v-0f4a9227"]]), Ho = ["aria-label"], Uo = {
2680
2738
  role: "tablist",
2681
- class: "tpl:relative tpl:flex tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]"
2682
- }, Po = ["aria-selected"], Fo = ["aria-selected"], Io = {
2739
+ class: "tpl:relative tpl:flex tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-active)] tpl:p-1.5"
2740
+ }, Wo = [
2741
+ "aria-selected",
2742
+ "aria-label",
2743
+ "title"
2744
+ ], Go = { key: 0 }, Ko = [
2745
+ "aria-selected",
2746
+ "aria-label",
2747
+ "title"
2748
+ ], qo = { key: 0 }, Jo = [
2749
+ "aria-selected",
2750
+ "aria-label",
2751
+ "title"
2752
+ ], Yo = { key: 0 }, Xo = {
2753
+ key: 1,
2754
+ class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
2755
+ }, Zo = {
2683
2756
  key: 0,
2684
2757
  id: "tpl-tabpanel-content",
2685
2758
  role: "tabpanel",
2686
2759
  "aria-labelledby": "tpl-tab-content",
2687
2760
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
2688
- }, Lo = {
2761
+ }, Qo = {
2689
2762
  key: 1,
2690
2763
  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)]"
2691
- }, Ro = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, zo = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Bo = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, Vo = {
2764
+ }, $o = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, es = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ts = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, ns = {
2692
2765
  key: 1,
2693
2766
  id: "tpl-tabpanel-settings",
2694
2767
  role: "tabpanel",
2695
2768
  "aria-labelledby": "tpl-tab-settings",
2696
2769
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
2697
- }, Ho = /* @__PURE__ */ f({
2770
+ }, rs = {
2771
+ key: 2,
2772
+ id: "tpl-tabpanel-accessibility",
2773
+ role: "tabpanel",
2774
+ "aria-labelledby": "tpl-tab-accessibility",
2775
+ class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
2776
+ }, is = /* @__PURE__ */ f({
2698
2777
  __name: "RightSidebar",
2699
2778
  props: {
2700
2779
  selectedBlock: {},
@@ -2707,65 +2786,99 @@ var yi = {
2707
2786
  "duplicate-block",
2708
2787
  "update-settings"
2709
2788
  ],
2710
- setup(e, { emit: n }) {
2711
- let r = e, i = n, { t: a } = I(), c = d("content"), l = w(() => c.value === "content" ? "tpl:translate-x-0" : "tpl:translate-x-full");
2712
- return A(() => r.selectedBlock, (e) => {
2713
- e && (c.value = "content");
2789
+ setup(e, { emit: r }) {
2790
+ let i = O(() => import("./AccessibilityPanel-CvQGLdu6.js")), a = e, c = r, { t: u } = I(), f = d("content"), p = n(Be, null), m = w(() => p !== null), _ = w(() => p?.issues.value.length ?? 0);
2791
+ function v(e) {
2792
+ return f.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] hover:tpl:text-[var(--tpl-text)]";
2793
+ }
2794
+ function S(e) {
2795
+ return f.value === e ? {
2796
+ backgroundColor: "var(--tpl-bg)",
2797
+ boxShadow: "var(--tpl-shadow-md)"
2798
+ } : { backgroundColor: "transparent" };
2799
+ }
2800
+ return A(() => a.selectedBlock, (e) => {
2801
+ e && (f.value = "content");
2714
2802
  }), (n, r) => (o(), h("aside", {
2715
- "aria-label": x(a).landmarks.rightSidebar,
2803
+ "aria-label": x(u).landmarks.rightSidebar,
2716
2804
  class: t(["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"])
2717
2805
  }, [
2718
- C("div", No, [
2719
- C("div", { class: t(["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]) }, [...r[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),
2806
+ C("div", Uo, [
2720
2807
  C("button", {
2721
2808
  id: "tpl-tab-content",
2722
2809
  role: "tab",
2723
- "aria-selected": c.value === "content",
2810
+ "aria-selected": f.value === "content",
2724
2811
  "aria-controls": "tpl-tabpanel-content",
2725
- class: t(["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)]"]),
2726
- onClick: r[0] ||= (e) => c.value = "content"
2727
- }, [g(x(_t), {
2812
+ "aria-label": x(u).sidebar.content,
2813
+ title: x(u).sidebar.content,
2814
+ class: t(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", v("content")]),
2815
+ style: l(S("content")),
2816
+ onClick: r[0] ||= (e) => f.value = "content"
2817
+ }, [g(x(bt), {
2728
2818
  size: 14,
2729
2819
  "stroke-width": 2
2730
- }), k(" " + s(x(a).sidebar.content), 1)], 10, Po),
2820
+ }), f.value === "content" ? (o(), h("span", Go, s(x(u).sidebar.content), 1)) : y("", !0)], 14, Wo),
2731
2821
  C("button", {
2732
2822
  id: "tpl-tab-settings",
2733
2823
  role: "tab",
2734
- "aria-selected": c.value === "settings",
2824
+ "aria-selected": f.value === "settings",
2735
2825
  "aria-controls": "tpl-tabpanel-settings",
2736
- class: t(["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)]"]),
2737
- onClick: r[1] ||= (e) => c.value = "settings"
2738
- }, [g(x(yt), {
2826
+ "aria-label": x(u).sidebar.settings,
2827
+ title: x(u).sidebar.settings,
2828
+ class: t(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", v("settings")]),
2829
+ style: l(S("settings")),
2830
+ onClick: r[1] ||= (e) => f.value = "settings"
2831
+ }, [g(x(St), {
2739
2832
  size: 14,
2740
2833
  "stroke-width": 1.5
2741
- }), k(" " + s(x(a).sidebar.settings), 1)], 10, Fo)
2834
+ }), f.value === "settings" ? (o(), h("span", qo, s(x(u).sidebar.settings), 1)) : y("", !0)], 14, Ko),
2835
+ m.value ? (o(), h("button", {
2836
+ key: 0,
2837
+ id: "tpl-tab-accessibility",
2838
+ role: "tab",
2839
+ "aria-selected": f.value === "accessibility",
2840
+ "aria-controls": "tpl-tabpanel-accessibility",
2841
+ "aria-label": x(u).accessibility.panelTabLabel,
2842
+ title: x(u).accessibility.panelTabLabel,
2843
+ class: t(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", v("accessibility")]),
2844
+ style: l(S("accessibility")),
2845
+ onClick: r[2] ||= (e) => f.value = "accessibility"
2846
+ }, [
2847
+ g(x(He), {
2848
+ size: 14,
2849
+ "stroke-width": 1.5
2850
+ }),
2851
+ f.value === "accessibility" ? (o(), h("span", Yo, s(x(u).accessibility.panelTabLabel), 1)) : y("", !0),
2852
+ _.value > 0 ? (o(), h("span", Xo, s(_.value), 1)) : y("", !0)
2853
+ ], 14, Jo)) : y("", !0)
2742
2854
  ]),
2743
- c.value === "content" ? (o(), h("div", Io, [e.selectedBlock ? (o(), b(jo, {
2855
+ f.value === "content" ? (o(), h("div", Zo, [e.selectedBlock ? (o(), b(Vo, {
2744
2856
  key: 0,
2745
2857
  block: e.selectedBlock,
2746
- onUpdate: r[2] ||= (e) => i("update-block", e),
2747
- onDelete: r[3] ||= (e) => i("delete-block"),
2748
- onDuplicate: r[4] ||= (e) => i("duplicate-block")
2749
- }, null, 8, ["block"])) : (o(), h("div", Lo, [
2750
- C("div", Ro, [g(x(ft), {
2858
+ onUpdate: r[3] ||= (e) => c("update-block", e),
2859
+ onDelete: r[4] ||= (e) => c("delete-block"),
2860
+ onDuplicate: r[5] ||= (e) => c("duplicate-block")
2861
+ }, null, 8, ["block"])) : (o(), h("div", Qo, [
2862
+ C("div", $o, [g(x(ht), {
2751
2863
  size: 40,
2752
2864
  "stroke-width": 1.5
2753
2865
  })]),
2754
- C("h3", zo, s(x(a).sidebar.noSelection), 1),
2755
- C("p", Bo, s(x(a).sidebar.noSelectionHint), 1)
2866
+ C("h3", es, s(x(u).sidebar.noSelection), 1),
2867
+ C("p", ts, s(x(u).sidebar.noSelectionHint), 1)
2756
2868
  ]))])) : y("", !0),
2757
- c.value === "settings" ? (o(), h("div", Vo, [g(jn, {
2869
+ f.value === "settings" ? (o(), h("div", ns, [g(Ln, {
2758
2870
  settings: e.settings,
2759
- onUpdate: r[5] ||= (e) => i("update-settings", e)
2760
- }, null, 8, ["settings"])])) : y("", !0)
2761
- ], 10, Mo));
2871
+ onUpdate: r[6] ||= (e) => c("update-settings", e)
2872
+ }, null, 8, ["settings"])])) : y("", !0),
2873
+ f.value === "accessibility" && m.value ? (o(), h("div", rs, [g(x(i))])) : y("", !0)
2874
+ ], 10, Ho));
2762
2875
  }
2763
- }), Uo = ["aria-label"], Wo = [
2876
+ }), as = ["aria-label"], os = [
2764
2877
  "aria-checked",
2765
2878
  "aria-label",
2766
2879
  "title",
2767
2880
  "onClick"
2768
- ], Go = /* @__PURE__ */ f({
2881
+ ], ss = /* @__PURE__ */ f({
2769
2882
  __name: "ViewportToggle",
2770
2883
  props: { viewport: {} },
2771
2884
  emits: ["change"],
@@ -2814,25 +2927,25 @@ var yi = {
2814
2927
  }),
2815
2928
  title: t.label,
2816
2929
  onClick: (e) => r("change", t.value)
2817
- }, [t.value === "desktop" ? (o(), b(x(ht), {
2930
+ }, [t.value === "desktop" ? (o(), b(x(vt), {
2818
2931
  key: 0,
2819
2932
  size: 18,
2820
2933
  "stroke-width": 1.5
2821
- })) : t.value === "tablet" ? (o(), b(x(wt), {
2934
+ })) : t.value === "tablet" ? (o(), b(x(Dt), {
2822
2935
  key: 1,
2823
2936
  size: 18,
2824
2937
  "stroke-width": 1.5
2825
- })) : (o(), b(x(bt), {
2938
+ })) : (o(), b(x(Ct), {
2826
2939
  key: 2,
2827
2940
  size: 18,
2828
2941
  "stroke-width": 1.5
2829
- })), C("span", null, s(t.label), 1)], 12, Wo))), 128))], 12, Uo));
2942
+ })), C("span", null, s(t.label), 1)], 12, os))), 128))], 12, as));
2830
2943
  }
2831
- }), Ko = [
2944
+ }), cs = [
2832
2945
  "aria-label",
2833
2946
  "title",
2834
2947
  "aria-pressed"
2835
- ], qo = /* @__PURE__ */ R(/* @__PURE__ */ f({
2948
+ ], ls = /* @__PURE__ */ B(/* @__PURE__ */ f({
2836
2949
  __name: "PreviewToggle",
2837
2950
  props: { previewMode: { type: Boolean } },
2838
2951
  emits: ["change"],
@@ -2855,7 +2968,7 @@ var yi = {
2855
2968
  "leave-to-class": "tpl-icon-leave-to",
2856
2969
  mode: "out-in"
2857
2970
  }, {
2858
- default: p(() => [e.previewMode ? (o(), b(x(Ge), {
2971
+ default: p(() => [e.previewMode ? (o(), b(x(qe), {
2859
2972
  key: "eye",
2860
2973
  size: 18,
2861
2974
  "stroke-width": 1.5
@@ -2865,13 +2978,13 @@ var yi = {
2865
2978
  "stroke-width": 1.5
2866
2979
  }))]),
2867
2980
  _: 1
2868
- })], 12, Ko));
2981
+ })], 12, cs));
2869
2982
  }
2870
- }), [["__scopeId", "data-v-af87d02a"]]), Jo = [
2983
+ }), [["__scopeId", "data-v-af87d02a"]]), us = [
2871
2984
  "aria-label",
2872
2985
  "title",
2873
2986
  "aria-pressed"
2874
- ], Yo = /* @__PURE__ */ R(/* @__PURE__ */ f({
2987
+ ], ds = /* @__PURE__ */ B(/* @__PURE__ */ f({
2875
2988
  __name: "DarkModeToggle",
2876
2989
  props: { darkMode: { type: Boolean } },
2877
2990
  emits: ["change"],
@@ -2894,37 +3007,37 @@ var yi = {
2894
3007
  "leave-to-class": "tpl-icon-leave-to",
2895
3008
  mode: "out-in"
2896
3009
  }, {
2897
- default: p(() => [e.darkMode ? (o(), b(x(gt), {
3010
+ default: p(() => [e.darkMode ? (o(), b(x(yt), {
2898
3011
  key: "moon",
2899
3012
  size: 18,
2900
3013
  "stroke-width": 1.5
2901
- })) : (o(), b(x(Ct), {
3014
+ })) : (o(), b(x(Et), {
2902
3015
  key: "sun",
2903
3016
  size: 18,
2904
3017
  "stroke-width": 1.5
2905
3018
  }))]),
2906
3019
  _: 1
2907
- })], 12, Jo));
3020
+ })], 12, us));
2908
3021
  }
2909
- }), [["__scopeId", "data-v-f8694f76"]]), Xo = {
3022
+ }), [["__scopeId", "data-v-f8694f76"]]), fs = {
2910
3023
  class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
2911
3024
  style: {
2912
3025
  "background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
2913
3026
  "backdrop-filter": "blur(8px)",
2914
3027
  "-webkit-backdrop-filter": "blur(8px)"
2915
3028
  }
2916
- }, Zo = {
3029
+ }, ps = {
2917
3030
  href: "https://github.com/templatical/sdk",
2918
3031
  target: "_blank",
2919
3032
  rel: "noopener noreferrer",
2920
3033
  class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
2921
3034
  style: { "text-decoration": "none" }
2922
- }, Qo = /* @__PURE__ */ f({
3035
+ }, ms = /* @__PURE__ */ f({
2923
3036
  __name: "EditorFooter",
2924
3037
  props: { positionClass: {} },
2925
3038
  setup(e) {
2926
3039
  let { t: n } = I();
2927
- return (r, i) => (o(), h("footer", { class: t(["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", Xo, [
3040
+ return (r, i) => (o(), h("footer", { class: t(["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", fs, [
2928
3041
  C("span", null, s(x(n).footer.poweredBy), 1),
2929
3042
  i[0] ||= C("a", {
2930
3043
  href: "https://templatical.com",
@@ -2939,9 +3052,9 @@ var yi = {
2939
3052
  alt: ""
2940
3053
  }), k(" Templatical ")], -1),
2941
3054
  i[1] ||= C("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
2942
- C("a", Zo, s(x(n).footer.openSource), 1)
3055
+ C("a", ps, s(x(n).footer.openSource), 1)
2943
3056
  ])], 2));
2944
3057
  }
2945
3058
  });
2946
3059
  //#endregion
2947
- export { Ho as a, vt as c, Go as i, Yo as n, Wt as o, qo as r, Ft as s, Qo as t };
3060
+ export { is as a, Ot as c, ss as i, xt as l, ds as n, Jt as o, ls as r, zt as s, ms as t };