@templatical/editor 0.54.2 → 0.55.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 (168) hide show
  1. package/dist/{AiAltTextPopover-BBKVJ6HA.js → AiAltTextPopover-D5QosKvB.js} +1 -1
  2. package/dist/{AiAltTextReview-BuVbeQh-.js → AiAltTextReview-D1W_lrI_.js} +1 -1
  3. package/dist/{AiRewriteMenu-ZpYJfm-O.js → AiRewriteMenu-BwztoMov.js} +4 -4
  4. package/dist/{BlockPreviewCanvas-DtOo5y3U.js → BlockPreviewCanvas-C23A6FRm.js} +4 -4
  5. package/dist/{CloudPanels-DQRWMc59.js → CloudPanels-Baoaj6Xf.js} +1 -1
  6. package/dist/{CountdownToolbar-DTpMEDyh.js → CountdownToolbar-CA_gDIdZ.js} +4 -4
  7. package/dist/{IssuesPanel-BZn7-p9e.js → IssuesPanel-nmFhWG1p.js} +1 -1
  8. package/dist/{LanguageMenu-OOmQWVzO.js → LanguageMenu-DcABUYop.js} +3 -3
  9. package/dist/{LogicTagInsertButton-XESwnJia.js → LogicTagInsertButton-qZ82VMFx.js} +284 -279
  10. package/dist/{MergeTagInput-CAsBRoSm.js → MergeTagInput-JJeZbFkD.js} +1 -1
  11. package/dist/{MergeTagModeToggle-bOf27Hg1.js → MergeTagModeToggle-DDucd1eC.js} +1 -1
  12. package/dist/{MergeTagTextarea-DH_6JFui.js → MergeTagTextarea-dQ2LRrNB.js} +2 -2
  13. package/dist/{ParagraphEditor-XGUkV5Uw.js → ParagraphEditor-VXYwGoz_.js} +8 -8
  14. package/dist/{RestoreVersionDialog-C72kWccI.js → RestoreVersionDialog-BibNvAaJ.js} +1 -1
  15. package/dist/{RichTextEditorContent-BZN8KRvR.js → RichTextEditorContent-CU5EOlM_.js} +2 -2
  16. package/dist/{SaveBlockDialog-CKOnTMTU.js → SaveBlockDialog-S9aFi0cy.js} +4 -4
  17. package/dist/{SavedBlocksBrowserModal-BrlNxqDH.js → SavedBlocksBrowserModal-DIdn6B0J.js} +4 -4
  18. package/dist/{SavedBlocksPanels--lPR6gdh.js → SavedBlocksPanels-Cme2M6u8.js} +1 -1
  19. package/dist/{SavedBlocksPickBar-4ON4_KKl.js → SavedBlocksPickBar-BDmA7r3m.js} +1 -1
  20. package/dist/{TemplateSettings-BE0jZmRJ.js → TemplateSettings-C_LHLm5M.js} +4 -4
  21. package/dist/{TestEmailModal-BKmNGrZN.js → TestEmailModal-CLIRn7eL.js} +5 -5
  22. package/dist/{TestEmailPanel-DT1wllX3.js → TestEmailPanel-frdtjC8h.js} +1 -1
  23. package/dist/{TitleEditor-HjVZuUTB.js → TitleEditor-D5kC56Jl.js} +4 -4
  24. package/dist/{Toolbar-BppchV2k.js → Toolbar-D904Yw_R.js} +551 -503
  25. package/dist/{TplModal-BFWOoK8l.js → TplModal-BBdotDf1.js} +1 -1
  26. package/dist/{VersionHistoryPanels-D4yNVLvq.js → VersionHistoryPanels-DhagEgOk.js} +1 -1
  27. package/dist/{WrapperBlock-BUzQTZuu.js → WrapperBlock-BAT3T0Cz.js} +3 -3
  28. package/dist/{blockTypeIcons-D91v9k0x.js → blockTypeIcons-CoRQV_hP.js} +1 -1
  29. package/dist/bundle-stats.json +6 -6
  30. package/dist/{cdn/chunks/ca-DOuIxWRv.js → ca-DIkMxYCN.js} +10 -3
  31. package/dist/cdn/chunks/{AiAltTextPopover-CAI18sdv.js → AiAltTextPopover-CUGOPuRo.js} +2 -2
  32. package/dist/cdn/chunks/{AiAltTextPopover-CAI18sdv.js.map → AiAltTextPopover-CUGOPuRo.js.map} +1 -1
  33. package/dist/cdn/chunks/{AiAltTextReview-CWEyMOF-.js → AiAltTextReview-B9vm_L-8.js} +2 -2
  34. package/dist/cdn/chunks/{AiAltTextReview-CWEyMOF-.js.map → AiAltTextReview-B9vm_L-8.js.map} +1 -1
  35. package/dist/cdn/chunks/{AiRewriteMenu-BEepu1vo.js → AiRewriteMenu-BvV_7tNZ.js} +7 -7
  36. package/dist/cdn/chunks/{AiRewriteMenu-BEepu1vo.js.map → AiRewriteMenu-BvV_7tNZ.js.map} +1 -1
  37. package/dist/cdn/chunks/{BlockPreviewCanvas-B6ndvof2.js → BlockPreviewCanvas-Dr-xGq6v.js} +7 -7
  38. package/dist/cdn/chunks/{BlockPreviewCanvas-B6ndvof2.js.map → BlockPreviewCanvas-Dr-xGq6v.js.map} +1 -1
  39. package/dist/cdn/chunks/{CloudPanels-BGwDb0jB.js → CloudPanels-CQ0vNgsH.js} +2 -2
  40. package/dist/cdn/chunks/{CloudPanels-BGwDb0jB.js.map → CloudPanels-CQ0vNgsH.js.map} +1 -1
  41. package/dist/cdn/chunks/{CountdownToolbar-B-0FsTj-.js → CountdownToolbar-BxW-J7DX.js} +5 -5
  42. package/dist/cdn/chunks/{CountdownToolbar-B-0FsTj-.js.map → CountdownToolbar-BxW-J7DX.js.map} +1 -1
  43. package/dist/cdn/chunks/{IssuesPanel-LyjMBDok.js → IssuesPanel-BoHeIjvw.js} +3 -3
  44. package/dist/cdn/chunks/{IssuesPanel-LyjMBDok.js.map → IssuesPanel-BoHeIjvw.js.map} +1 -1
  45. package/dist/cdn/chunks/{LanguageMenu-CGwMCOQ5.js → LanguageMenu-BnYN5N1h.js} +7 -7
  46. package/dist/cdn/chunks/{LanguageMenu-CGwMCOQ5.js.map → LanguageMenu-BnYN5N1h.js.map} +1 -1
  47. package/dist/cdn/chunks/{LogicTagInsertButton-PDKuo2J3.js → LogicTagInsertButton-Bt2PXbQ0.js} +255 -250
  48. package/dist/cdn/chunks/LogicTagInsertButton-Bt2PXbQ0.js.map +1 -0
  49. package/dist/cdn/chunks/{MergeTagInput-DoQHBJk2.js → MergeTagInput-BELdMRni.js} +2 -2
  50. package/dist/cdn/chunks/{MergeTagInput-DoQHBJk2.js.map → MergeTagInput-BELdMRni.js.map} +1 -1
  51. package/dist/cdn/chunks/{MergeTagModeToggle-Ct5IG4VW.js → MergeTagModeToggle-DKfMDIEF.js} +2 -2
  52. package/dist/cdn/chunks/{MergeTagModeToggle-Ct5IG4VW.js.map → MergeTagModeToggle-DKfMDIEF.js.map} +1 -1
  53. package/dist/cdn/chunks/{MergeTagTextarea-BMsnjphR.js → MergeTagTextarea-w6xen3Xh.js} +5 -5
  54. package/dist/cdn/chunks/{MergeTagTextarea-BMsnjphR.js.map → MergeTagTextarea-w6xen3Xh.js.map} +1 -1
  55. package/dist/cdn/chunks/{ParagraphEditor-CVW-kuHW.js → ParagraphEditor-Cal9hY3U.js} +9 -9
  56. package/dist/cdn/chunks/{ParagraphEditor-CVW-kuHW.js.map → ParagraphEditor-Cal9hY3U.js.map} +1 -1
  57. package/dist/cdn/chunks/{RestoreVersionDialog-7MFZz-Sb.js → RestoreVersionDialog-f_ulmASY.js} +2 -2
  58. package/dist/cdn/chunks/{RestoreVersionDialog-7MFZz-Sb.js.map → RestoreVersionDialog-f_ulmASY.js.map} +1 -1
  59. package/dist/cdn/chunks/{RichTextEditorContent-CiL-SkZg.js → RichTextEditorContent-C_v0kS4A.js} +3 -3
  60. package/dist/cdn/chunks/{RichTextEditorContent-CiL-SkZg.js.map → RichTextEditorContent-C_v0kS4A.js.map} +1 -1
  61. package/dist/cdn/chunks/{SaveBlockDialog-CxdekCYy.js → SaveBlockDialog-C6N9RFls.js} +5 -5
  62. package/dist/cdn/chunks/{SaveBlockDialog-CxdekCYy.js.map → SaveBlockDialog-C6N9RFls.js.map} +1 -1
  63. package/dist/cdn/chunks/{SavedBlocksBrowserModal-D9CAa2U3.js → SavedBlocksBrowserModal-Bl2sl09D.js} +4 -4
  64. package/dist/cdn/chunks/{SavedBlocksBrowserModal-D9CAa2U3.js.map → SavedBlocksBrowserModal-Bl2sl09D.js.map} +1 -1
  65. package/dist/cdn/chunks/{SavedBlocksPanels-jfkYWtss.js → SavedBlocksPanels-DqVcmEUK.js} +2 -2
  66. package/dist/cdn/chunks/{SavedBlocksPanels-jfkYWtss.js.map → SavedBlocksPanels-DqVcmEUK.js.map} +1 -1
  67. package/dist/cdn/chunks/{SavedBlocksPickBar-yaCumC4j.js → SavedBlocksPickBar-DE-J1JVL.js} +2 -2
  68. package/dist/cdn/chunks/{SavedBlocksPickBar-yaCumC4j.js.map → SavedBlocksPickBar-DE-J1JVL.js.map} +1 -1
  69. package/dist/cdn/chunks/{TemplateSettings-SaV2UVh_.js → TemplateSettings-CpoKZ8oV.js} +5 -5
  70. package/dist/cdn/chunks/{TemplateSettings-SaV2UVh_.js.map → TemplateSettings-CpoKZ8oV.js.map} +1 -1
  71. package/dist/cdn/chunks/{TestEmailModal-ByfhP_sm.js → TestEmailModal-DI3z__Bd.js} +8 -8
  72. package/dist/cdn/chunks/{TestEmailModal-ByfhP_sm.js.map → TestEmailModal-DI3z__Bd.js.map} +1 -1
  73. package/dist/cdn/chunks/{TestEmailPanel-CfzpqpDs.js → TestEmailPanel-Cp5d2YGn.js} +2 -2
  74. package/dist/cdn/chunks/{TestEmailPanel-CfzpqpDs.js.map → TestEmailPanel-Cp5d2YGn.js.map} +1 -1
  75. package/dist/cdn/chunks/{TitleEditor-Ceb0YfWv.js → TitleEditor-C2syRLdZ.js} +4 -4
  76. package/dist/cdn/chunks/{TitleEditor-Ceb0YfWv.js.map → TitleEditor-C2syRLdZ.js.map} +1 -1
  77. package/dist/cdn/chunks/{Toolbar-Cv6Rv1S-.js → Toolbar-NEE8qxYh.js} +754 -706
  78. package/dist/cdn/chunks/Toolbar-NEE8qxYh.js.map +1 -0
  79. package/dist/cdn/chunks/{TplModal-DGpGdwgf.js → TplModal-B1MgvtX8.js} +2 -2
  80. package/dist/cdn/chunks/{TplModal-DGpGdwgf.js.map → TplModal-B1MgvtX8.js.map} +1 -1
  81. package/dist/cdn/chunks/{VersionHistoryPanels-BJnHCMAH.js → VersionHistoryPanels-Cefd8i_e.js} +2 -2
  82. package/dist/cdn/chunks/{VersionHistoryPanels-BJnHCMAH.js.map → VersionHistoryPanels-Cefd8i_e.js.map} +1 -1
  83. package/dist/cdn/chunks/{WrapperBlock-C_uE5rPJ.js → WrapperBlock-DFY-7YSs.js} +4 -4
  84. package/dist/cdn/chunks/{WrapperBlock-C_uE5rPJ.js.map → WrapperBlock-DFY-7YSs.js.map} +1 -1
  85. package/dist/{ca-DOuIxWRv.js → cdn/chunks/ca-DIkMxYCN.js} +12 -1
  86. package/dist/cdn/chunks/{ca-DOuIxWRv.js.map → ca-DIkMxYCN.js.map} +1 -1
  87. package/dist/cdn/chunks/{composables-BxikPuC1.js → composables-nyxwrM27.js} +610 -594
  88. package/dist/cdn/chunks/composables-nyxwrM27.js.map +1 -0
  89. package/dist/cdn/chunks/{createCloudRuntime-D2DUaudp.js → createCloudRuntime-DJkDGKQ_.js} +3 -3
  90. package/dist/cdn/chunks/{createCloudRuntime-D2DUaudp.js.map → createCloudRuntime-DJkDGKQ_.js.map} +1 -1
  91. package/dist/{de-DaOUfYBX.js → cdn/chunks/de-Cc6Ue0UD.js} +12 -1
  92. package/dist/cdn/chunks/de-Cc6Ue0UD.js.map +1 -0
  93. package/dist/cdn/chunks/{en-C0pHHMiR.js → en-BX4FujAQ.js} +11 -2
  94. package/dist/cdn/chunks/en-BX4FujAQ.js.map +1 -0
  95. package/dist/{es-CxyEKr6n.js → cdn/chunks/es-Do5b-MKU.js} +12 -1
  96. package/dist/cdn/chunks/es-Do5b-MKU.js.map +1 -0
  97. package/dist/cdn/chunks/{extensions-DuDWpKo7.js → extensions-BcwkOjVq.js} +76 -70
  98. package/dist/cdn/chunks/extensions-BcwkOjVq.js.map +1 -0
  99. package/dist/{fr-CYbamiI6.js → cdn/chunks/fr-S1n2Ebzp.js} +12 -1
  100. package/dist/cdn/chunks/fr-S1n2Ebzp.js.map +1 -0
  101. package/dist/cdn/chunks/{ja-DfaIAoGI.js → ja-DLwcq4bA.js} +11 -2
  102. package/dist/cdn/chunks/ja-DLwcq4bA.js.map +1 -0
  103. package/dist/{nl-DkrB-VKZ.js → cdn/chunks/nl-0JSWaZpT.js} +12 -1
  104. package/dist/cdn/chunks/nl-0JSWaZpT.js.map +1 -0
  105. package/dist/cdn/chunks/{normalizeMergeTagMarkup-Bn_hl4jd.js → normalizeMergeTagMarkup-BrGw5jxk.js} +99 -89
  106. package/dist/cdn/chunks/normalizeMergeTagMarkup-BrGw5jxk.js.map +1 -0
  107. package/dist/cdn/chunks/{preRenderCustomBlocks-C9oavydG.js → preRenderCustomBlocks-Cj0XYwuh.js} +4 -4
  108. package/dist/cdn/chunks/{preRenderCustomBlocks-C9oavydG.js.map → preRenderCustomBlocks-Cj0XYwuh.js.map} +1 -1
  109. package/dist/{pt-BR-CY5Ye7eP.js → cdn/chunks/pt-BR-D3VlIMDZ.js} +12 -1
  110. package/dist/cdn/chunks/pt-BR-D3VlIMDZ.js.map +1 -0
  111. package/dist/cdn/chunks/{sanitizeHtml-DfXoetOm.js → sanitizeHtml-GxJCxKcP.js} +3 -3
  112. package/dist/cdn/chunks/{sanitizeHtml-DfXoetOm.js.map → sanitizeHtml-GxJCxKcP.js.map} +1 -1
  113. package/dist/cdn/chunks/{socialIcons-DPwkrn5v.js → socialIcons-B5zrrV8-.js} +387 -386
  114. package/dist/cdn/chunks/{socialIcons-DPwkrn5v.js.map → socialIcons-B5zrrV8-.js.map} +1 -1
  115. package/dist/cdn/chunks/{src-712f3ofG.js → src-Diw9SLIe.js} +673 -554
  116. package/dist/cdn/chunks/src-Diw9SLIe.js.map +1 -0
  117. package/dist/cdn/chunks/{src-B2tQbzf6.js → src-UR3AQocX.js} +221 -215
  118. package/dist/cdn/chunks/src-UR3AQocX.js.map +1 -0
  119. package/dist/cdn/chunks/{src-ZFw5fg_z.js → src-v47QHNmB.js} +809 -659
  120. package/dist/cdn/chunks/src-v47QHNmB.js.map +1 -0
  121. package/dist/cdn/chunks/useLocalizedDisplay-DekV8qar.js +33 -0
  122. package/dist/cdn/chunks/{useLocalizedDisplay-DiNjT22M.js.map → useLocalizedDisplay-DekV8qar.js.map} +1 -1
  123. package/dist/cdn/chunks/{useLogicTag-SvMW4g00.js → useLogicTag-Cbp3I7UN.js} +2 -2
  124. package/dist/cdn/chunks/{useLogicTag-SvMW4g00.js.map → useLogicTag-Cbp3I7UN.js.map} +1 -1
  125. package/dist/cdn/chunks/{useMergeTag-JLz3Pqcw.js → useMergeTag-1lrpNyR5.js} +4 -4
  126. package/dist/cdn/chunks/{useMergeTag-JLz3Pqcw.js.map → useMergeTag-1lrpNyR5.js.map} +1 -1
  127. package/dist/cdn/chunks/{withCurrentFont-BcoPpkDS.js → withCurrentFont-DZfmiv8V.js} +2 -2
  128. package/dist/cdn/chunks/{withCurrentFont-BcoPpkDS.js.map → withCurrentFont-DZfmiv8V.js.map} +1 -1
  129. package/dist/cdn/editor.js +284 -284
  130. package/dist/cdn/editor.js.map +1 -1
  131. package/dist/{composables-BbPFRlBf.js → composables-DPgNn9GZ.js} +929 -913
  132. package/dist/{createCloudRuntime-Dlrg88gS.js → createCloudRuntime-Bw8TLmQ8.js} +2 -2
  133. package/dist/{cdn/chunks/de-DaOUfYBX.js → de-Cc6Ue0UD.js} +10 -3
  134. package/dist/{dist-C34cYI5S.js → dist-CBdk1Vcb.js} +963 -813
  135. package/dist/{en-C0pHHMiR.js → en-BX4FujAQ.js} +10 -1
  136. package/dist/{cdn/chunks/es-CxyEKr6n.js → es-Do5b-MKU.js} +10 -3
  137. package/dist/{extensions-xCiyqSg7.js → extensions-QFAARrjF.js} +338 -332
  138. package/dist/{cdn/chunks/fr-CYbamiI6.js → fr-S1n2Ebzp.js} +10 -3
  139. package/dist/index.d.ts +14 -1
  140. package/dist/{ja-DfaIAoGI.js → ja-DLwcq4bA.js} +10 -1
  141. package/dist/{cdn/chunks/nl-DkrB-VKZ.js → nl-0JSWaZpT.js} +10 -3
  142. package/dist/{normalizeMergeTagMarkup-C7FGNURu.js → normalizeMergeTagMarkup-BS0nRvhq.js} +89 -79
  143. package/dist/{preRenderCustomBlocks-DvbRa3L3.js → preRenderCustomBlocks-CiKvKd8V.js} +1 -1
  144. package/dist/{cdn/chunks/pt-BR-CY5Ye7eP.js → pt-BR-D3VlIMDZ.js} +10 -3
  145. package/dist/{sanitizeHtml-D_ab7dD6.js → sanitizeHtml-USjTyALR.js} +1 -1
  146. package/dist/{socialIcons-DhAolBjt.js → socialIcons-NvIg5ahU.js} +338 -337
  147. package/dist/templatical-editor.js +41 -41
  148. package/dist/{useLocalizedDisplay-C9MBFUr4.js → useLocalizedDisplay-LdjosX4w.js} +1 -1
  149. package/dist/{useLogicTag-BmuakZBd.js → useLogicTag-D8zgkXfb.js} +1 -1
  150. package/dist/{useMergeTag-DC4a8b_v.js → useMergeTag-k7Kr0nMd.js} +1 -1
  151. package/dist/{withCurrentFont-BSxJai99.js → withCurrentFont-Bzeg_gfH.js} +1 -1
  152. package/package.json +7 -7
  153. package/dist/cdn/chunks/LogicTagInsertButton-PDKuo2J3.js.map +0 -1
  154. package/dist/cdn/chunks/Toolbar-Cv6Rv1S-.js.map +0 -1
  155. package/dist/cdn/chunks/composables-BxikPuC1.js.map +0 -1
  156. package/dist/cdn/chunks/de-DaOUfYBX.js.map +0 -1
  157. package/dist/cdn/chunks/en-C0pHHMiR.js.map +0 -1
  158. package/dist/cdn/chunks/es-CxyEKr6n.js.map +0 -1
  159. package/dist/cdn/chunks/extensions-DuDWpKo7.js.map +0 -1
  160. package/dist/cdn/chunks/fr-CYbamiI6.js.map +0 -1
  161. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +0 -1
  162. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +0 -1
  163. package/dist/cdn/chunks/normalizeMergeTagMarkup-Bn_hl4jd.js.map +0 -1
  164. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +0 -1
  165. package/dist/cdn/chunks/src-712f3ofG.js.map +0 -1
  166. package/dist/cdn/chunks/src-B2tQbzf6.js.map +0 -1
  167. package/dist/cdn/chunks/src-ZFw5fg_z.js.map +0 -1
  168. package/dist/cdn/chunks/useLocalizedDisplay-DiNjT22M.js +0 -33
@@ -1,31 +1,31 @@
1
1
  import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
2
2
  import { $ as t, B as n, C as r, F as i, G as a, H as o, K as s, L as c, O as l, Q as u, R as d, S as f, _ as p, b as m, ct as h, dt as g, g as _, h as v, m as y, mt as b, o as x, p as S, pt as C, s as w, tt as T, u as E, v as D, x as O } from "./draggable-DepKdldn.js";
3
- import { Ft as k, Z as A, bn as j, cn as M, gn as N, ht as P, j as F, ln as I, mn as L, n as R, on as ee, pn as z, r as te, sn as ne, un as re, xn as ie } from "./src-ZFw5fg_z.js";
4
- import { F as ae, T as oe, _ as se, b as ce, d as le, f as ue, g as de, h as fe, i as pe, l as me, m as he, p as ge, r as _e, s as B, u as ve, v as ye } from "./socialIcons-DPwkrn5v.js";
5
- import { t as V } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
6
- import { $ as be, At as xe, Bt as Se, H, It as Ce, Mt as we, O as Te, R as Ee, _ as De, _t as Oe, c as ke, et as Ae, f as je, gt as Me, h as Ne, it as Pe, lt as Fe, rt as Ie, t as Le, v as Re } from "./icons-Da9GKjPx.js";
7
- import { B as ze, C as Be, O as Ve, T as He, U as Ue, X as We, _ as Ge, b as Ke, h as qe, ot as Je, p as Ye, r as Xe, v as Ze } from "./keys-CoQtCqNv.js";
8
- import { t as U } from "./useI18n-BnJYydPv.js";
9
- import { n as Qe } from "./useLocalizedDisplay-DiNjT22M.js";
10
- import { t as $e } from "./languageName-DEEOhDWI.js";
11
- import { S as et, _ as W, b as tt, c as nt, g as G, h as K, r as rt, v as q, y as it } from "./styleConstants-CgiNKdnc.js";
12
- import { _ as at } from "./dist-BzXULHvI.js";
13
- import { c as ot, r as st } from "./usePopoverPosition-BWAXWeBv.js";
14
- import { t as ct } from "./blockTypeIcons-Cc6RJ27V.js";
15
- import { n as J, t as lt } from "./MergeTagTextarea-BMsnjphR.js";
16
- import { c as Y } from "./LogicTagInsertButton-PDKuo2J3.js";
17
- import { t as X } from "./ToggleSwitch-BSkySwA1.js";
18
- import { n as ut, t as dt } from "./withCurrentFont-BcoPpkDS.js";
19
- import { t as Z } from "./MergeTagInput-DoQHBJk2.js";
3
+ import { Cn as k, H as A, I as j, Lt as M, Sn as N, U as P, _t as F, cn as I, dn as ee, fn as L, g as te, gn as R, hn as ne, ln as re, un as ie, vn as ae } from "./src-v47QHNmB.js";
4
+ import { F as oe, T as se, _ as ce, b as le, d as ue, f as de, g as fe, h as pe, i as me, l as he, m as ge, p as _e, r as ve, s as ye, u as be, v as xe } from "./socialIcons-B5zrrV8-.js";
5
+ import { t as z } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
6
+ import { $ as Se, At as Ce, Bt as we, H as B, It as Te, Mt as Ee, O as De, R as Oe, _ as ke, _t as Ae, c as je, et as Me, f as Ne, gt as Pe, h as Fe, it as Ie, lt as Le, rt as Re, t as ze, v as Be } from "./icons-Da9GKjPx.js";
7
+ import { B as Ve, C as He, O as Ue, T as We, U as Ge, X as Ke, _ as qe, b as Je, h as Ye, ot as Xe, p as Ze, r as Qe, v as $e } from "./keys-CoQtCqNv.js";
8
+ import { t as V } from "./useI18n-BnJYydPv.js";
9
+ import { n as et } from "./useLocalizedDisplay-DekV8qar.js";
10
+ import { t as tt } from "./languageName-DEEOhDWI.js";
11
+ import { S as nt, _ as H, b as rt, c as it, g as U, h as W, r as at, v as G, y as ot } from "./styleConstants-CgiNKdnc.js";
12
+ import { _ as st } from "./dist-BzXULHvI.js";
13
+ import { c as ct, r as lt } from "./usePopoverPosition-BWAXWeBv.js";
14
+ import { t as ut } from "./blockTypeIcons-Cc6RJ27V.js";
15
+ import { n as K, t as dt } from "./MergeTagTextarea-w6xen3Xh.js";
16
+ import { c as q } from "./LogicTagInsertButton-Bt2PXbQ0.js";
17
+ import { t as J } from "./ToggleSwitch-BSkySwA1.js";
18
+ import { n as ft, t as pt } from "./withCurrentFont-DZfmiv8V.js";
19
+ import { t as Y } from "./MergeTagInput-BELdMRni.js";
20
20
  // src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
21
- var ft = [
21
+ var mt = [
22
22
  "aria-checked",
23
23
  "aria-label",
24
24
  "disabled",
25
25
  "aria-disabled",
26
26
  "title",
27
27
  "onClick"
28
- ], pt = { key: 1 }, Q = /* @__PURE__ */ r({
28
+ ], ht = { key: 1 }, X = /* @__PURE__ */ r({
29
29
  __name: "SlidingPillSelect",
30
30
  props: {
31
31
  options: {},
@@ -70,14 +70,14 @@ var ft = [
70
70
  key: 0,
71
71
  size: 14,
72
72
  "stroke-width": 2
73
- })) : (i(), p("span", pt, b(t.label), 1))], 12, ft))), 128))], 4));
73
+ })) : (i(), p("span", ht, b(t.label), 1))], 12, mt))), 128))], 4));
74
74
  }
75
- }), mt = { class: "tpl:flex tpl:items-stretch" }, ht = [
75
+ }), gt = { class: "tpl:flex tpl:items-stretch" }, _t = [
76
76
  "data-testid",
77
77
  "value",
78
78
  "min",
79
79
  "max"
80
- ], gt = /* @__PURE__ */ r({
80
+ ], Z = /* @__PURE__ */ r({
81
81
  __name: "NumberWithSuffix",
82
82
  props: {
83
83
  modelValue: {},
@@ -93,22 +93,22 @@ var ft = [
93
93
  let t = e.target;
94
94
  t.validity?.badInput || n("update:modelValue", Number(t.value));
95
95
  }
96
- return (t, n) => (i(), p("div", mt, [y("input", {
96
+ return (t, n) => (i(), p("div", gt, [y("input", {
97
97
  type: "number",
98
98
  "data-testid": e.testid,
99
- class: g(h(G)),
99
+ class: g(h(U)),
100
100
  value: e.modelValue,
101
101
  min: e.min,
102
102
  max: e.max,
103
103
  onInput: r
104
- }, null, 42, ht), y("span", { class: g(h(W)) }, b(e.suffix), 3)]));
104
+ }, null, 42, _t), y("span", { class: g(h(H)) }, b(e.suffix), 3)]));
105
105
  }
106
- }), _t = [
106
+ }), vt = [
107
107
  "aria-pressed",
108
108
  "aria-label",
109
109
  "title",
110
110
  "data-testid"
111
- ], vt = /* @__PURE__ */ r({
111
+ ], yt = /* @__PURE__ */ r({
112
112
  __name: "LinkToggle",
113
113
  props: {
114
114
  linked: { type: Boolean },
@@ -127,20 +127,20 @@ var ft = [
127
127
  title: e.linked ? e.unlinkLabel : e.linkLabel,
128
128
  "data-testid": e.testid,
129
129
  onClick: r[0] ||= (e) => n("toggle")
130
- }, [e.linked ? (i(), v(h(Fe), {
130
+ }, [e.linked ? (i(), v(h(Le), {
131
131
  key: 0,
132
132
  size: 14,
133
133
  "stroke-width": 2
134
- })) : (i(), v(h(ke), {
134
+ })) : (i(), v(h(je), {
135
135
  key: 1,
136
136
  size: 14,
137
137
  "stroke-width": 2
138
- }))], 10, _t));
138
+ }))], 10, vt));
139
139
  }
140
- }), yt = {
140
+ }), bt = {
141
141
  key: 0,
142
142
  class: "tpl:mb-3.5"
143
- }, bt = { class: "tpl:mb-3.5" }, xt = { class: "tpl:mb-3.5" }, St = /* @__PURE__ */ r({
143
+ }, xt = { class: "tpl:mb-3.5" }, St = { class: "tpl:mb-3.5" }, Ct = /* @__PURE__ */ r({
144
144
  __name: "BorderControl",
145
145
  props: {
146
146
  path: {},
@@ -149,7 +149,7 @@ var ft = [
149
149
  },
150
150
  emits: ["update:modelValue"],
151
151
  setup(e, { emit: t }) {
152
- let n = e, r = t, { t: s } = U(), c = {
152
+ let n = e, r = t, { t: s } = V(), c = {
153
153
  width: 0,
154
154
  style: "solid",
155
155
  color: "#000000"
@@ -159,7 +159,7 @@ var ft = [
159
159
  }
160
160
  let u = S(() => {
161
161
  let e = n.modelValue;
162
- return !e || L.every((t) => l(e[t], e.top));
162
+ return !e || R.every((t) => l(e[t], e.top));
163
163
  }), d = T(u.value);
164
164
  o(u, (e) => {
165
165
  !e && d.value && (d.value = !1);
@@ -167,13 +167,13 @@ var ft = [
167
167
  let f = T("top"), m = S(() => n.modelValue?.[d.value ? "top" : f.value] ?? c), x = (e) => !!e && e.width > 0;
168
168
  function C(e) {
169
169
  if (d.value) {
170
- r("update:modelValue", x(e) ? ie(e) : void 0);
170
+ r("update:modelValue", x(e) ? k(e) : void 0);
171
171
  return;
172
172
  }
173
173
  let t = {
174
- ...n.modelValue ?? ie(c),
174
+ ...n.modelValue ?? k(c),
175
175
  [f.value]: e
176
- }, i = L.some((e) => x(t[e]));
176
+ }, i = R.some((e) => x(t[e]));
177
177
  r("update:modelValue", i ? t : void 0);
178
178
  }
179
179
  function w(e) {
@@ -188,7 +188,7 @@ var ft = [
188
188
  ...e
189
189
  });
190
190
  }
191
- function k() {
191
+ function A() {
192
192
  if (d.value) {
193
193
  d.value = !1;
194
194
  return;
@@ -196,23 +196,23 @@ var ft = [
196
196
  d.value = !0;
197
197
  let e = n.modelValue;
198
198
  if (!e) return;
199
- let t = x(e[f.value]) ? e[f.value] : L.map((t) => e[t]).find(x);
200
- r("update:modelValue", t ? ie(t) : void 0);
199
+ let t = x(e[f.value]) ? e[f.value] : R.map((t) => e[t]).find(x);
200
+ r("update:modelValue", t ? k(t) : void 0);
201
201
  }
202
- let A = S(() => L.map((e) => ({
202
+ let j = S(() => R.map((e) => ({
203
203
  value: e,
204
204
  label: s.spacingControl[e]
205
205
  })));
206
- return (t, n) => (i(), v(J, {
206
+ return (t, n) => (i(), v(K, {
207
207
  path: e.path,
208
208
  label: h(s).blockSettings.border
209
209
  }, {
210
- "label-actions": a(() => [O(vt, {
210
+ "label-actions": a(() => [O(yt, {
211
211
  linked: d.value,
212
212
  "link-label": h(s).blockSettings.linkSides,
213
213
  "unlink-label": h(s).blockSettings.unlinkSides,
214
214
  testid: `${e.testidPrefix}-border-link`,
215
- onToggle: k
215
+ onToggle: A
216
216
  }, null, 8, [
217
217
  "linked",
218
218
  "link-label",
@@ -220,19 +220,19 @@ var ft = [
220
220
  "testid"
221
221
  ])]),
222
222
  default: a(() => [
223
- d.value ? _("", !0) : (i(), p("div", yt, [y("label", { class: g(h(q)) }, b(h(s).blockSettings.borderSide), 3), O(Q, {
224
- options: A.value,
223
+ d.value ? _("", !0) : (i(), p("div", bt, [y("label", { class: g(h(G)) }, b(h(s).blockSettings.borderSide), 3), O(X, {
224
+ options: j.value,
225
225
  "model-value": f.value,
226
226
  "onUpdate:modelValue": n[0] ||= (e) => f.value = e
227
227
  }, null, 8, ["options", "model-value"])])),
228
- y("div", bt, [y("label", { class: g(h(q)) }, b(h(s).blockSettings.borderWidth), 3), O(gt, {
228
+ y("div", xt, [y("label", { class: g(h(G)) }, b(h(s).blockSettings.borderWidth), 3), O(Z, {
229
229
  "model-value": m.value.width,
230
230
  min: 0,
231
231
  suffix: "px",
232
232
  testid: `${e.testidPrefix}-border-width-input`,
233
233
  "onUpdate:modelValue": w
234
234
  }, null, 8, ["model-value", "testid"])]),
235
- m.value.width > 0 ? (i(), p(E, { key: 1 }, [y("div", xt, [y("label", { class: g(h(q)) }, b(h(s).blockSettings.borderStyle), 3), O(Q, {
235
+ m.value.width > 0 ? (i(), p(E, { key: 1 }, [y("div", St, [y("label", { class: g(h(G)) }, b(h(s).blockSettings.borderStyle), 3), O(X, {
236
236
  options: [
237
237
  {
238
238
  value: "solid",
@@ -249,7 +249,7 @@ var ft = [
249
249
  ],
250
250
  "model-value": m.value.style,
251
251
  "onUpdate:modelValue": n[1] ||= (e) => D({ style: e })
252
- }, null, 8, ["options", "model-value"])]), y("div", null, [y("label", { class: g(h(q)) }, b(h(s).blockSettings.borderColor), 3), O(Y, {
252
+ }, null, 8, ["options", "model-value"])]), y("div", null, [y("label", { class: g(h(G)) }, b(h(s).blockSettings.borderColor), 3), O(q, {
253
253
  "model-value": m.value.color,
254
254
  "onUpdate:modelValue": n[2] ||= (e) => D({ color: e })
255
255
  }, null, 8, ["model-value"])])], 64)) : _("", !0)
@@ -257,10 +257,10 @@ var ft = [
257
257
  _: 1
258
258
  }, 8, ["path", "label"]));
259
259
  }
260
- }), Ct = {
260
+ }), wt = {
261
261
  key: 1,
262
262
  class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
263
- }, wt = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Tt = /* @__PURE__ */ r({
263
+ }, Tt = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Et = /* @__PURE__ */ r({
264
264
  __name: "RadiusControl",
265
265
  props: {
266
266
  path: {},
@@ -271,7 +271,7 @@ var ft = [
271
271
  },
272
272
  emits: ["update:modelValue"],
273
273
  setup(e, { emit: t }) {
274
- let n = e, r = t, { t: s } = U(), l = {
274
+ let n = e, r = t, { t: s } = V(), l = {
275
275
  topLeft: "cornerTopLeft",
276
276
  topRight: "cornerTopRight",
277
277
  bottomRight: "cornerBottomRight",
@@ -289,7 +289,7 @@ var ft = [
289
289
  bottomRight: e,
290
290
  bottomLeft: e
291
291
  } : e;
292
- }), f = S(() => z.every((e) => d.value[e] === d.value.topLeft)), m = T(f.value);
292
+ }), f = S(() => ne.every((e) => d.value[e] === d.value.topLeft)), m = T(f.value);
293
293
  o(f, (e) => {
294
294
  !e && m.value && (m.value = !1);
295
295
  });
@@ -308,11 +308,11 @@ var ft = [
308
308
  function C() {
309
309
  m.value = !m.value, m.value && r("update:modelValue", d.value.topLeft);
310
310
  }
311
- return (t, n) => (i(), v(J, {
311
+ return (t, n) => (i(), v(K, {
312
312
  path: e.path,
313
313
  label: e.label
314
314
  }, {
315
- "label-actions": a(() => [O(vt, {
315
+ "label-actions": a(() => [O(yt, {
316
316
  linked: m.value,
317
317
  "link-label": h(s).blockSettings.linkCorners,
318
318
  "unlink-label": h(s).blockSettings.unlinkCorners,
@@ -324,7 +324,7 @@ var ft = [
324
324
  "unlink-label",
325
325
  "testid"
326
326
  ])]),
327
- default: a(() => [m.value ? (i(), v(gt, {
327
+ default: a(() => [m.value ? (i(), v(Z, {
328
328
  key: 0,
329
329
  "model-value": d.value.topLeft,
330
330
  min: 0,
@@ -336,7 +336,7 @@ var ft = [
336
336
  "model-value",
337
337
  "max",
338
338
  "testid"
339
- ])) : (i(), p("div", Ct, [(i(), p(E, null, c(u, (t) => y("div", { key: t }, [y("label", wt, b(h(s).blockSettings[l[t]]), 1), O(gt, {
339
+ ])) : (i(), p("div", wt, [(i(), p(E, null, c(u, (t) => y("div", { key: t }, [y("label", Tt, b(h(s).blockSettings[l[t]]), 1), O(Z, {
340
340
  "model-value": d.value[t],
341
341
  min: 0,
342
342
  max: e.max,
@@ -352,10 +352,10 @@ var ft = [
352
352
  _: 1
353
353
  }, 8, ["path", "label"]));
354
354
  }
355
- }), Et = ["value"], Dt = { value: "" }, Ot = ["value"], kt = { class: "tpl:flex tpl:items-stretch" }, At = ["value"], jt = ["value"], Mt = { value: "auto" }, Nt = { value: "full" }, Pt = { value: "custom" }, Ft = {
355
+ }), Dt = ["value"], Ot = { value: "" }, kt = ["value"], At = { class: "tpl:flex tpl:items-stretch" }, jt = ["value"], Mt = ["value"], Nt = { value: "auto" }, Pt = { value: "full" }, Ft = { value: "custom" }, It = {
356
356
  key: 0,
357
357
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
358
- }, It = ["value"], Lt = 200, Rt = /* @__PURE__ */ r({
358
+ }, Lt = ["value"], Rt = 200, zt = /* @__PURE__ */ r({
359
359
  __name: "ButtonToolbar",
360
360
  props: {
361
361
  block: {},
@@ -363,61 +363,64 @@ var ft = [
363
363
  },
364
364
  emits: ["update"],
365
365
  setup(e, { emit: t }) {
366
- let n = e, r = t, { t: o } = U(), s = S(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
366
+ let n = e, r = t, { t: o } = V(), s = S(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
367
367
  function l(e, t) {
368
368
  r("update", { [e]: t });
369
369
  }
370
370
  function u(e) {
371
- e === "full" ? l("width", "full") : e === "custom" ? l("width", typeof n.block.width == "number" ? n.block.width : Lt) : l("width", void 0);
371
+ e === "full" ? l("width", "full") : e === "custom" ? l("width", typeof n.block.width == "number" ? n.block.width : Rt) : l("width", void 0);
372
372
  }
373
373
  function d(e) {
374
+ l("fontWeight", e === "bold" ? void 0 : e);
375
+ }
376
+ function f(e) {
374
377
  let t = Number(e);
375
378
  !Number.isFinite(t) || t <= 0 || l("width", t);
376
379
  }
377
380
  return (t, n) => (i(), p(E, null, [
378
- O(J, {
381
+ O(K, {
379
382
  label: h(o).button.fontFamily,
380
383
  class: "tpl:mb-3.5",
381
384
  path: "fontFamily"
382
385
  }, {
383
386
  default: a(() => [y("select", {
384
- class: g(h(K)),
385
- value: h(dt)(e.block.fontFamily),
387
+ class: g(h(W)),
388
+ value: h(pt)(e.block.fontFamily),
386
389
  onChange: n[0] ||= (e) => l("fontFamily", e.target.value || void 0)
387
- }, [y("option", Dt, b(h(o).button.inheritFont), 1), (i(!0), p(E, null, c(e.fontFamilies, (e) => (i(), p("option", {
390
+ }, [y("option", Ot, b(h(o).button.inheritFont), 1), (i(!0), p(E, null, c(e.fontFamilies, (e) => (i(), p("option", {
388
391
  key: e.value,
389
392
  value: e.value
390
- }, b(e.label), 9, Ot))), 128))], 42, Et)]),
393
+ }, b(e.label), 9, kt))), 128))], 42, Dt)]),
391
394
  _: 1
392
395
  }, 8, ["label"]),
393
- O(J, {
396
+ O(K, {
394
397
  label: h(o).button.text,
395
398
  class: "tpl:mb-3.5",
396
399
  path: "text"
397
400
  }, {
398
- default: a(() => [O(Z, {
401
+ default: a(() => [O(Y, {
399
402
  "model-value": e.block.text,
400
403
  type: "text",
401
404
  "onUpdate:modelValue": n[1] ||= (e) => l("text", e)
402
405
  }, null, 8, ["model-value"])]),
403
406
  _: 1
404
407
  }, 8, ["label"]),
405
- O(J, {
408
+ O(K, {
406
409
  label: h(o).button.url,
407
410
  class: "tpl:mb-3.5",
408
411
  path: "url"
409
412
  }, {
410
- default: a(() => [O(Z, {
413
+ default: a(() => [O(Y, {
411
414
  "model-value": e.block.url,
412
415
  type: "url",
413
416
  placeholder: h(o).button.urlPlaceholder,
414
417
  "onUpdate:modelValue": n[2] ||= (e) => l("url", e)
415
- }, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(J, {
418
+ }, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(K, {
416
419
  key: 0,
417
420
  path: "openInNewTab",
418
421
  label: h(o).button.openInNewTab
419
422
  }, {
420
- "label-actions": a(({ controlId: t }) => [O(X, {
423
+ "label-actions": a(({ controlId: t }) => [O(J, {
421
424
  "control-id": t,
422
425
  "hide-label": "",
423
426
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
@@ -433,36 +436,36 @@ var ft = [
433
436
  }, 8, ["label"])) : _("", !0)]),
434
437
  _: 1
435
438
  }, 8, ["label"]),
436
- O(J, {
439
+ O(K, {
437
440
  label: h(o).button.background,
438
441
  class: "tpl:mb-3.5",
439
442
  path: "backgroundColor"
440
443
  }, {
441
- default: a(() => [O(Y, {
444
+ default: a(() => [O(q, {
442
445
  "model-value": e.block.backgroundColor,
443
446
  "allow-transparent": "",
444
447
  "onUpdate:modelValue": n[4] ||= (e) => l("backgroundColor", e)
445
448
  }, null, 8, ["model-value"])]),
446
449
  _: 1
447
450
  }, 8, ["label"]),
448
- O(J, {
451
+ O(K, {
449
452
  label: h(o).button.textColor,
450
453
  class: "tpl:mb-3.5",
451
454
  path: "textColor"
452
455
  }, {
453
- default: a(() => [O(Y, {
456
+ default: a(() => [O(q, {
454
457
  "model-value": e.block.textColor,
455
458
  "onUpdate:modelValue": n[5] ||= (e) => l("textColor", e)
456
459
  }, null, 8, ["model-value"])]),
457
460
  _: 1
458
461
  }, 8, ["label"]),
459
- O(St, {
462
+ O(Ct, {
460
463
  path: "border",
461
464
  "model-value": e.block.border,
462
465
  "testid-prefix": "button",
463
466
  "onUpdate:modelValue": n[6] ||= (e) => l("border", e)
464
467
  }, null, 8, ["model-value"]),
465
- O(Tt, {
468
+ O(Et, {
466
469
  path: "borderRadius",
467
470
  "model-value": e.block.borderRadius,
468
471
  label: h(o).button.borderRadius,
@@ -470,49 +473,74 @@ var ft = [
470
473
  "testid-prefix": "button",
471
474
  "onUpdate:modelValue": n[7] ||= (e) => l("borderRadius", e)
472
475
  }, null, 8, ["model-value", "label"]),
473
- O(J, {
476
+ O(K, {
474
477
  label: h(o).button.fontSize,
475
478
  class: "tpl:mb-3.5",
476
479
  path: "fontSize"
477
480
  }, {
478
- default: a(() => [y("div", kt, [y("input", {
481
+ default: a(() => [y("div", At, [y("input", {
479
482
  type: "number",
480
- class: g(h(G)),
483
+ class: g(h(U)),
481
484
  value: e.block.fontSize,
482
485
  min: "10",
483
486
  max: "36",
484
487
  onInput: n[8] ||= (e) => l("fontSize", Number(e.target.value))
485
- }, null, 42, At), y("span", { class: g(h(W)) }, "px", 2)])]),
488
+ }, null, 42, jt), y("span", { class: g(h(H)) }, "px", 2)])]),
489
+ _: 1
490
+ }, 8, ["label"]),
491
+ O(K, {
492
+ label: h(o).button.fontWeight,
493
+ class: "tpl:mb-3.5",
494
+ path: "fontWeight"
495
+ }, {
496
+ default: a(() => [O(X, {
497
+ options: [
498
+ {
499
+ value: "regular",
500
+ label: h(o).button.fontWeightRegular
501
+ },
502
+ {
503
+ value: "medium",
504
+ label: h(o).button.fontWeightMedium
505
+ },
506
+ {
507
+ value: "bold",
508
+ label: h(o).button.fontWeightBold
509
+ }
510
+ ],
511
+ "model-value": e.block.fontWeight ?? "bold",
512
+ "onUpdate:modelValue": d
513
+ }, null, 8, ["options", "model-value"])]),
486
514
  _: 1
487
515
  }, 8, ["label"]),
488
- O(J, {
516
+ O(K, {
489
517
  label: h(o).button.width,
490
518
  class: "tpl:mb-3.5",
491
519
  path: "width"
492
520
  }, {
493
521
  default: a(() => [y("select", {
494
- class: g(h(K)),
522
+ class: g(h(W)),
495
523
  value: s.value,
496
524
  onChange: n[9] ||= (e) => u(e.target.value)
497
525
  }, [
498
- y("option", Mt, b(h(o).button.widthAuto), 1),
499
- y("option", Nt, b(h(o).button.fullWidth), 1),
500
- y("option", Pt, b(h(o).button.widthCustom), 1)
501
- ], 42, jt), s.value === "custom" ? (i(), p("div", Ft, [y("input", {
526
+ y("option", Nt, b(h(o).button.widthAuto), 1),
527
+ y("option", Pt, b(h(o).button.fullWidth), 1),
528
+ y("option", Ft, b(h(o).button.widthCustom), 1)
529
+ ], 42, Mt), s.value === "custom" ? (i(), p("div", It, [y("input", {
502
530
  type: "number",
503
- class: g(h(G)),
504
- value: typeof e.block.width == "number" ? e.block.width : Lt,
531
+ class: g(h(U)),
532
+ value: typeof e.block.width == "number" ? e.block.width : Rt,
505
533
  min: "20",
506
- onInput: n[10] ||= (e) => d(e.target.value)
507
- }, null, 42, It), y("span", { class: g(h(W)) }, "px", 2)])) : _("", !0)]),
534
+ onInput: n[10] ||= (e) => f(e.target.value)
535
+ }, null, 42, Lt), y("span", { class: g(h(H)) }, "px", 2)])) : _("", !0)]),
508
536
  _: 1
509
537
  }, 8, ["label"]),
510
- O(J, {
538
+ O(K, {
511
539
  label: h(o).title.align,
512
540
  class: "tpl:mb-3.5",
513
541
  path: "align"
514
542
  }, {
515
- default: a(() => [O(Q, {
543
+ default: a(() => [O(X, {
516
544
  options: [
517
545
  {
518
546
  value: "left",
@@ -534,7 +562,7 @@ var ft = [
534
562
  }, 8, ["label"])
535
563
  ], 64));
536
564
  }
537
- }), zt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Bt = { class: "tpl:flex tpl:items-center" }, Vt = ["aria-label"], Ht = ["value", "aria-label"], Ut = ["aria-label"], Wt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Gt = { class: "tpl:flex tpl:items-center" }, Kt = ["aria-label"], qt = ["value", "aria-label"], Jt = ["aria-label"], Yt = ["aria-label", "title"], Xt = { class: "tpl:flex tpl:items-center" }, Zt = ["aria-label"], Qt = ["value", "aria-label"], $t = ["aria-label"], en = { class: "tpl:flex tpl:items-center" }, tn = ["aria-label"], nn = ["value", "aria-label"], rn = ["aria-label"], $ = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", an = "tpl:w-10 tpl:h-8 tpl:text-center tpl:text-xs tpl:font-medium tpl:border-y tpl:border-x-0 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", on = /*#__PURE__*/ V(/* @__PURE__ */ r({
565
+ }), Bt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Vt = { class: "tpl:flex tpl:items-center" }, Ht = ["aria-label"], Ut = ["value", "aria-label"], Wt = ["aria-label"], Gt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Kt = { class: "tpl:flex tpl:items-center" }, qt = ["aria-label"], Jt = ["value", "aria-label"], Yt = ["aria-label"], Xt = ["aria-label", "title"], Zt = { class: "tpl:flex tpl:items-center" }, Qt = ["aria-label"], $t = ["value", "aria-label"], en = ["aria-label"], tn = { class: "tpl:flex tpl:items-center" }, nn = ["aria-label"], rn = ["value", "aria-label"], an = ["aria-label"], Q = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", on = "tpl:w-10 tpl:h-8 tpl:text-center tpl:text-xs tpl:font-medium tpl:border-y tpl:border-x-0 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", sn = /*#__PURE__*/ z(/* @__PURE__ */ r({
538
566
  __name: "SpacingControl",
539
567
  props: {
540
568
  path: {},
@@ -543,7 +571,7 @@ var ft = [
543
571
  },
544
572
  emits: ["update:modelValue"],
545
573
  setup(e, { emit: t }) {
546
- let n = e, r = t, { t: s } = U(), c = S(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), l = T(c.value);
574
+ let n = e, r = t, { t: s } = V(), c = S(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), l = T(c.value);
547
575
  o(c, (e) => {
548
576
  !e && l.value && (l.value = !1);
549
577
  });
@@ -582,131 +610,131 @@ var ft = [
582
610
  });
583
611
  }
584
612
  }
585
- return (t, n) => (i(), v(J, {
613
+ return (t, n) => (i(), v(K, {
586
614
  class: "spacing-control",
587
615
  path: e.path,
588
616
  label: e.label
589
617
  }, {
590
- default: a(() => [y("div", zt, [
591
- y("div", Bt, [
618
+ default: a(() => [y("div", Bt, [
619
+ y("div", Vt, [
592
620
  y("button", {
593
621
  "aria-label": h(s).spacingControl.decreaseTop,
594
- class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
622
+ class: g([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
595
623
  onClick: n[0] ||= (e) => u("top", -1)
596
- }, [O(h(Ae), {
624
+ }, [O(h(Me), {
597
625
  size: 12,
598
626
  "stroke-width": 2
599
- })], 10, Vt),
627
+ })], 10, Ht),
600
628
  y("input", {
601
629
  type: "number",
602
- class: g(an),
630
+ class: g(on),
603
631
  value: e.modelValue.top,
604
632
  "aria-label": h(s).spacingControl.top,
605
633
  min: "0",
606
634
  onInput: n[1] ||= (e) => d("top", Number(e.target.value))
607
- }, null, 40, Ht),
635
+ }, null, 40, Ut),
608
636
  y("button", {
609
637
  "aria-label": h(s).spacingControl.increaseTop,
610
- class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
638
+ class: g([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
611
639
  onClick: n[2] ||= (e) => u("top", 1)
612
- }, [O(h(H), {
640
+ }, [O(h(B), {
613
641
  size: 12,
614
642
  "stroke-width": 2
615
- })], 10, Ut)
643
+ })], 10, Wt)
616
644
  ]),
617
- y("div", Wt, [
618
- y("div", Gt, [
645
+ y("div", Gt, [
646
+ y("div", Kt, [
619
647
  y("button", {
620
648
  "aria-label": h(s).spacingControl.decreaseLeft,
621
- class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
649
+ class: g([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
622
650
  onClick: n[3] ||= (e) => u("left", -1)
623
- }, [O(h(Ae), {
651
+ }, [O(h(Me), {
624
652
  size: 12,
625
653
  "stroke-width": 2
626
- })], 10, Kt),
654
+ })], 10, qt),
627
655
  y("input", {
628
656
  type: "number",
629
- class: g(an),
657
+ class: g(on),
630
658
  value: e.modelValue.left,
631
659
  "aria-label": h(s).spacingControl.left,
632
660
  min: "0",
633
661
  onInput: n[4] ||= (e) => d("left", Number(e.target.value))
634
- }, null, 40, qt),
662
+ }, null, 40, Jt),
635
663
  y("button", {
636
664
  "aria-label": h(s).spacingControl.increaseLeft,
637
- class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
665
+ class: g([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
638
666
  onClick: n[5] ||= (e) => u("left", 1)
639
- }, [O(h(H), {
667
+ }, [O(h(B), {
640
668
  size: 12,
641
669
  "stroke-width": 2
642
- })], 10, Jt)
670
+ })], 10, Yt)
643
671
  ]),
644
672
  y("button", {
645
673
  class: g(["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)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
646
674
  "aria-label": l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
647
675
  title: l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
648
676
  onClick: f
649
- }, [l.value ? (i(), v(h(Ie), {
677
+ }, [l.value ? (i(), v(h(Re), {
650
678
  key: 0,
651
679
  size: 14,
652
680
  "stroke-width": 2
653
- })) : (i(), v(h(Pe), {
681
+ })) : (i(), v(h(Ie), {
654
682
  key: 1,
655
683
  size: 14,
656
684
  "stroke-width": 2
657
- }))], 10, Yt),
658
- y("div", Xt, [
685
+ }))], 10, Xt),
686
+ y("div", Zt, [
659
687
  y("button", {
660
688
  "aria-label": h(s).spacingControl.decreaseRight,
661
- class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
689
+ class: g([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
662
690
  onClick: n[6] ||= (e) => u("right", -1)
663
- }, [O(h(Ae), {
691
+ }, [O(h(Me), {
664
692
  size: 12,
665
693
  "stroke-width": 2
666
- })], 10, Zt),
694
+ })], 10, Qt),
667
695
  y("input", {
668
696
  type: "number",
669
- class: g(an),
697
+ class: g(on),
670
698
  value: e.modelValue.right,
671
699
  "aria-label": h(s).spacingControl.right,
672
700
  min: "0",
673
701
  onInput: n[7] ||= (e) => d("right", Number(e.target.value))
674
- }, null, 40, Qt),
702
+ }, null, 40, $t),
675
703
  y("button", {
676
704
  "aria-label": h(s).spacingControl.increaseRight,
677
- class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
705
+ class: g([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
678
706
  onClick: n[8] ||= (e) => u("right", 1)
679
- }, [O(h(H), {
707
+ }, [O(h(B), {
680
708
  size: 12,
681
709
  "stroke-width": 2
682
- })], 10, $t)
710
+ })], 10, en)
683
711
  ])
684
712
  ]),
685
- y("div", en, [
713
+ y("div", tn, [
686
714
  y("button", {
687
715
  "aria-label": h(s).spacingControl.decreaseBottom,
688
- class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
716
+ class: g([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
689
717
  onClick: n[9] ||= (e) => u("bottom", -1)
690
- }, [O(h(Ae), {
718
+ }, [O(h(Me), {
691
719
  size: 12,
692
720
  "stroke-width": 2
693
- })], 10, tn),
721
+ })], 10, nn),
694
722
  y("input", {
695
723
  type: "number",
696
- class: g(an),
724
+ class: g(on),
697
725
  value: e.modelValue.bottom,
698
726
  "aria-label": h(s).spacingControl.bottom,
699
727
  min: "0",
700
728
  onInput: n[10] ||= (e) => d("bottom", Number(e.target.value))
701
- }, null, 40, nn),
729
+ }, null, 40, rn),
702
730
  y("button", {
703
731
  "aria-label": h(s).spacingControl.increaseBottom,
704
- class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
732
+ class: g([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
705
733
  onClick: n[11] ||= (e) => u("bottom", 1)
706
- }, [O(h(H), {
734
+ }, [O(h(B), {
707
735
  size: 12,
708
736
  "stroke-width": 2
709
- })], 10, rn)
737
+ })], 10, an)
710
738
  ])
711
739
  ])]),
712
740
  _: 1
@@ -714,19 +742,19 @@ var ft = [
714
742
  }
715
743
  }), [["__scopeId", "data-v-94c2e6ff"]]);
716
744
  // src/composables/useNaturalImageSize.ts
717
- function sn(e) {
745
+ function cn(e) {
718
746
  let t = T(null), n = () => {};
719
747
  return o(e, (e) => {
720
- n(), t.value = null, e && (n = ge(e, (e) => {
748
+ n(), t.value = null, e && (n = _e(e, (e) => {
721
749
  t.value = e;
722
750
  }));
723
751
  }, { immediate: !0 }), t;
724
752
  }
725
- function cn() {
726
- let e = l(Be, null);
727
- return async (t) => he(e ? await ln(e, t) : t);
753
+ function ln() {
754
+ let e = l(He, null);
755
+ return async (t) => ge(e ? await un(e, t) : t);
728
756
  }
729
- function ln(e, t) {
757
+ function un(e, t) {
730
758
  let n = (e) => typeof e == "string" && e.length > 0 ? e : t;
731
759
  e.lookup(t);
732
760
  let r = e.get(t);
@@ -737,13 +765,13 @@ function ln(e, t) {
737
765
  }) : Promise.resolve(n(r));
738
766
  }
739
767
  // src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
740
- var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"], pn = ["data-testid"], mn = ["aria-label", "data-testid"], hn = [
768
+ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"], mn = ["data-testid"], hn = ["aria-label", "data-testid"], gn = [
741
769
  "aria-label",
742
770
  "title",
743
771
  "aria-pressed",
744
772
  "data-testid",
745
773
  "onClick"
746
- ], gn = ["data-testid"], _n = /* @__PURE__ */ r({
774
+ ], _n = ["data-testid"], vn = /* @__PURE__ */ r({
747
775
  __name: "BackgroundImageControl",
748
776
  props: {
749
777
  hideLabel: { type: Boolean },
@@ -754,14 +782,14 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
754
782
  },
755
783
  emits: ["update:modelValue"],
756
784
  setup(e, { emit: t }) {
757
- let n = e, r = t, { t: a } = U(), o = l(ze, R.liquid), s = S(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = S(() => s.value.trim() !== ""), f = cn(), x;
785
+ let n = e, r = t, { t: a } = V(), o = l(Ve, A.liquid), s = S(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = S(() => s.value.trim() !== ""), f = ln(), x;
758
786
  u(() => clearTimeout(x));
759
787
  function C(e) {
760
- n.measure && !te(e, o) && (x = setTimeout(async () => {
788
+ n.measure && !P(e, o) && (x = setTimeout(async () => {
761
789
  let t = await f(e), i = n.modelValue;
762
790
  t && i?.url === e && r("update:modelValue", {
763
791
  ...i,
764
- ...fe(t)
792
+ ...pe(t)
765
793
  });
766
794
  }, 300));
767
795
  }
@@ -770,11 +798,11 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
770
798
  r("update:modelValue", void 0);
771
799
  return;
772
800
  }
773
- let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ?? re(e), s = n.measure ? t : null;
801
+ let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ?? L(e), s = n.measure ? t : null;
774
802
  r("update:modelValue", {
775
803
  ...o,
776
804
  url: e,
777
- ...s ? fe(s) : {}
805
+ ...s ? pe(s) : {}
778
806
  }), s || C(e);
779
807
  }
780
808
  function D(e) {
@@ -796,7 +824,7 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
796
824
  value: "auto",
797
825
  label: a.blockSettings.backgroundSizeAuto
798
826
  }
799
- ]), A = S(() => ({
827
+ ]), j = S(() => ({
800
828
  "top-left": a.blockSettings.backgroundPositionTopLeft,
801
829
  "top-center": a.blockSettings.backgroundPositionTopCenter,
802
830
  "top-right": a.blockSettings.backgroundPositionTopRight,
@@ -806,39 +834,39 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
806
834
  "bottom-left": a.blockSettings.backgroundPositionBottomLeft,
807
835
  "bottom-center": a.blockSettings.backgroundPositionBottomCenter,
808
836
  "bottom-right": a.blockSettings.backgroundPositionBottomRight
809
- })), j = S(() => I.flatMap((e) => M.map((t) => ({
837
+ })), M = S(() => ee.flatMap((e) => ie.map((t) => ({
810
838
  x: t,
811
839
  y: e,
812
- label: A.value[`${e}-${t}`]
840
+ label: j.value[`${e}-${t}`]
813
841
  }))));
814
842
  function N(e) {
815
843
  return n.modelValue?.position?.x === e.x && n.modelValue?.position?.y === e.y;
816
844
  }
817
- let P = T(), { canBrowse: F, isUploading: L, showOverlay: ee, openMediaBrowser: z } = ve({
818
- target: P,
819
- blocked: () => te(s.value, o),
820
- apply: (e) => w(e.url, se(e.width, e.height))
845
+ let F = T(), { canBrowse: I, isUploading: te, showOverlay: R, openMediaBrowser: ne } = be({
846
+ target: F,
847
+ blocked: () => P(s.value, o),
848
+ apply: (e) => w(e.url, ce(e.width, e.height))
821
849
  });
822
- return (t, n) => (i(), p("div", un, [y("div", null, [e.hideLabel ? _("", !0) : (i(), p("label", {
850
+ return (t, n) => (i(), p("div", dn, [y("div", null, [e.hideLabel ? _("", !0) : (i(), p("label", {
823
851
  key: 0,
824
- class: g(h(q))
852
+ class: g(h(G))
825
853
  }, b(h(a).blockSettings.backgroundImage), 3)), y("div", {
826
854
  ref_key: "dropZoneRef",
827
- ref: P,
855
+ ref: F,
828
856
  class: "tpl:relative",
829
857
  "data-testid": `${e.testidPrefix}-bg-url`
830
858
  }, [
831
- h(ee) ? (i(), v(ue, {
859
+ h(R) ? (i(), v(de, {
832
860
  key: 0,
833
- uploading: h(L)
861
+ uploading: h(te)
834
862
  }, null, 8, ["uploading"])) : _("", !0),
835
- O(Z, {
863
+ O(Y, {
836
864
  "model-value": s.value,
837
865
  type: "url",
838
866
  placeholder: h(a).blockSettings.backgroundImagePlaceholder,
839
867
  "onUpdate:modelValue": w
840
868
  }, null, 8, ["model-value", "placeholder"]),
841
- h(F) ? (i(), p("button", {
869
+ h(I) ? (i(), p("button", {
842
870
  key: 1,
843
871
  type: "button",
844
872
  "data-testid": `${e.testidPrefix}-bg-browse`,
@@ -848,26 +876,26 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
848
876
  color: "var(--tpl-primary)",
849
877
  "background-color": "var(--tpl-bg)"
850
878
  },
851
- onClick: n[0] ||= (...e) => h(z) && h(z)(...e)
852
- }, [O(h(Oe), {
879
+ onClick: n[0] ||= (...e) => h(ne) && h(ne)(...e)
880
+ }, [O(h(Ae), {
853
881
  size: 14,
854
882
  "stroke-width": 1.5
855
- }), m(" " + b(h(a).image.browseMedia), 1)], 8, fn)) : _("", !0)
856
- ], 8, dn)]), d.value && e.modelValue ? (i(), p(E, { key: 0 }, [
883
+ }), m(" " + b(h(a).image.browseMedia), 1)], 8, pn)) : _("", !0)
884
+ ], 8, fn)]), d.value && e.modelValue ? (i(), p(E, { key: 0 }, [
857
885
  e.heroMode ? _("", !0) : (i(), p("div", {
858
886
  key: 0,
859
887
  "data-testid": `${e.testidPrefix}-bg-size`
860
- }, [y("label", { class: g(h(q)) }, b(h(a).blockSettings.backgroundSize), 3), O(Q, {
888
+ }, [y("label", { class: g(h(G)) }, b(h(a).blockSettings.backgroundSize), 3), O(X, {
861
889
  options: k.value,
862
890
  "model-value": e.modelValue.size,
863
891
  "onUpdate:modelValue": n[1] ||= (e) => D({ size: e })
864
- }, null, 8, ["options", "model-value"])], 8, pn)),
865
- y("div", null, [y("label", { class: g(h(q)) }, b(h(a).blockSettings.backgroundPosition), 3), y("div", {
892
+ }, null, 8, ["options", "model-value"])], 8, mn)),
893
+ y("div", null, [y("label", { class: g(h(G)) }, b(h(a).blockSettings.backgroundPosition), 3), y("div", {
866
894
  role: "group",
867
895
  "aria-label": h(a).blockSettings.backgroundPosition,
868
896
  "data-testid": `${e.testidPrefix}-bg-position`,
869
897
  class: "tpl:grid tpl:w-24 tpl:grid-cols-3 tpl:gap-1"
870
- }, [(i(!0), p(E, null, c(j.value, (t) => (i(), p("button", {
898
+ }, [(i(!0), p(E, null, c(M.value, (t) => (i(), p("button", {
871
899
  key: `${t.y}-${t.x}`,
872
900
  type: "button",
873
901
  "aria-label": t.label,
@@ -879,19 +907,19 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
879
907
  x: t.x,
880
908
  y: t.y
881
909
  } })
882
- }, [y("span", { class: g(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", N(t) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10, hn))), 128))], 8, mn)]),
910
+ }, [y("span", { class: g(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", N(t) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10, gn))), 128))], 8, hn)]),
883
911
  e.heroMode ? _("", !0) : (i(), p("div", {
884
912
  key: 1,
885
913
  "data-testid": `${e.testidPrefix}-bg-repeat`
886
- }, [O(X, {
914
+ }, [O(J, {
887
915
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
888
916
  "model-value": e.modelValue.repeat,
889
917
  label: h(a).blockSettings.backgroundRepeat,
890
918
  "onUpdate:modelValue": n[2] ||= (e) => D({ repeat: e })
891
- }, null, 8, ["model-value", "label"])], 8, gn))
919
+ }, null, 8, ["model-value", "label"])], 8, _n))
892
920
  ], 64)) : _("", !0)]));
893
921
  }
894
- }), vn = ["data-testid"], yn = { class: "tpl:mt-3" }, bn = /* @__PURE__ */ r({
922
+ }), yn = ["data-testid"], bn = { class: "tpl:mt-3" }, xn = /* @__PURE__ */ r({
895
923
  __name: "CollapsibleSection",
896
924
  props: {
897
925
  title: {},
@@ -906,30 +934,30 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
906
934
  "data-testid": e.headerTestId,
907
935
  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)]",
908
936
  onClick: n[0] ||= (e) => t.$emit("toggle")
909
- }, [O(h(Se), {
937
+ }, [O(h(we), {
910
938
  class: g(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
911
939
  size: 12,
912
940
  "stroke-width": 2
913
- }, null, 8, ["class"]), y("span", null, b(e.title), 1)], 8, vn), s(y("div", yn, [d(t.$slots, "default")], 512), [[w, e.open]])], 2));
941
+ }, null, 8, ["class"]), y("span", null, b(e.title), 1)], 8, yn), s(y("div", bn, [d(t.$slots, "default")], 512), [[w, e.open]])], 2));
914
942
  }
915
- }), xn = {
943
+ }), Sn = {
916
944
  key: 0,
917
945
  "data-testid": "section-hero-columns-note",
918
946
  class: "tpl:mt-3.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
919
- }, Sn = {
947
+ }, Cn = {
920
948
  key: 1,
921
949
  "data-testid": "section-hero",
922
950
  class: "tpl:mt-3.5 tpl:space-y-3.5"
923
- }, Cn = { "data-testid": "section-hero-height" }, wn = {
951
+ }, wn = { "data-testid": "section-hero-height" }, Tn = {
924
952
  key: 0,
925
953
  class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
926
- }, Tn = {
954
+ }, En = {
927
955
  key: 1,
928
956
  class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
929
- }, En = {
957
+ }, Dn = {
930
958
  key: 1,
931
959
  "data-testid": "section-hero-align"
932
- }, Dn = 300, On = /* @__PURE__ */ r({
960
+ }, On = 300, kn = /* @__PURE__ */ r({
933
961
  __name: "HeroControl",
934
962
  props: { section: {} },
935
963
  emits: ["update"],
@@ -937,7 +965,7 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
937
965
  function n(e) {
938
966
  return typeof e == "number" && Number.isFinite(e) && e >= 1;
939
967
  }
940
- let r = e, a = t, { t: o } = U(), s = l(ze, R.liquid), c = l(Ze, null), u = l(He, void 0), d = cn(), f = S(() => typeof r.section.backgroundImage?.url == "string" ? r.section.backgroundImage.url : ""), m = S(() => f.value.trim() !== ""), x = S(() => te(f.value, s)), C = S(() => r.section.hero), w = S(() => r.section.columns === "1"), T = S(() => C.value ? n(C.value.height) ? "fixed" : "image" : "fit"), E = S(() => n(C.value?.height) ? C.value.height : Dn), D = S(() => [
968
+ let r = e, a = t, { t: o } = V(), s = l(Ve, A.liquid), c = l($e, null), u = l(We, void 0), d = ln(), f = S(() => typeof r.section.backgroundImage?.url == "string" ? r.section.backgroundImage.url : ""), m = S(() => f.value.trim() !== ""), x = S(() => P(f.value, s)), C = S(() => r.section.hero), w = S(() => r.section.columns === "1"), T = S(() => C.value ? n(C.value.height) ? "fixed" : "image" : "fit"), E = S(() => n(C.value?.height) ? C.value.height : On), D = S(() => [
941
969
  {
942
970
  value: "fit",
943
971
  label: o.blockSettings.heroHeightFit
@@ -964,17 +992,17 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
964
992
  value: "bottom",
965
993
  label: o.blockSettings.heroAlignBottom
966
994
  }
967
- ]), A = S(() => T.value === "image" && m.value && !x.value && ee(r.section.backgroundImage) === null);
968
- function j() {
969
- return (c ? B(c.content.value, r.section.id, u, c.activeLocale?.value ?? void 0) : null) ?? me(c?.state.content.settings);
995
+ ]), j = S(() => T.value === "image" && m.value && !x.value && I(r.section.backgroundImage) === null);
996
+ function M() {
997
+ return (c ? ye(c.content.value, r.section.id, u, c.activeLocale?.value ?? void 0) : null) ?? he(c?.state.content.settings);
970
998
  }
971
- function M(e) {
999
+ function N(e) {
972
1000
  let t = C.value?.verticalAlign ?? "middle";
973
1001
  if (e === "image") {
974
1002
  T.value !== "image" && a("update", { hero: {
975
1003
  height: "image",
976
1004
  verticalAlign: t
977
- } }), N();
1005
+ } }), F();
978
1006
  return;
979
1007
  }
980
1008
  if (e === T.value) return;
@@ -982,71 +1010,71 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
982
1010
  a("update", { hero: void 0 });
983
1011
  return;
984
1012
  }
985
- let n = ee(r.section.backgroundImage), i = n === null ? Dn : Math.round(j() * n);
1013
+ let n = I(r.section.backgroundImage), i = n === null ? On : Math.round(M() * n);
986
1014
  a("update", { hero: {
987
1015
  height: i,
988
1016
  verticalAlign: t
989
1017
  } });
990
1018
  }
991
- async function N() {
1019
+ async function F() {
992
1020
  let e = r.section.backgroundImage;
993
- if (!e || !m.value || x.value || ee(e) !== null) return;
1021
+ if (!e || !m.value || x.value || I(e) !== null) return;
994
1022
  let t = e.url, n = await d(t), i = r.section.backgroundImage;
995
1023
  n && i && i.url === t && a("update", { backgroundImage: {
996
1024
  ...i,
997
- ...fe(n)
1025
+ ...pe(n)
998
1026
  } });
999
1027
  }
1000
- function P(e) {
1028
+ function ee(e) {
1001
1029
  !C.value || !Number.isFinite(e) || e < 1 || a("update", { hero: {
1002
1030
  ...C.value,
1003
1031
  height: Math.round(e)
1004
1032
  } });
1005
1033
  }
1006
- function F(e) {
1034
+ function L(e) {
1007
1035
  C.value && a("update", { hero: {
1008
1036
  ...C.value,
1009
1037
  verticalAlign: e
1010
1038
  } });
1011
1039
  }
1012
- return (e, t) => !w.value && C.value ? (i(), p("p", xn, b(h(o).section.heroNeedsOneColumn), 1)) : w.value && (m.value || C.value) ? (i(), p("div", Sn, [
1013
- y("div", Cn, [
1014
- y("label", { class: g(h(q)) }, b(h(o).blockSettings.heroHeight), 3),
1015
- O(Q, {
1040
+ return (e, t) => !w.value && C.value ? (i(), p("p", Sn, b(h(o).section.heroNeedsOneColumn), 1)) : w.value && (m.value || C.value) ? (i(), p("div", Cn, [
1041
+ y("div", wn, [
1042
+ y("label", { class: g(h(G)) }, b(h(o).blockSettings.heroHeight), 3),
1043
+ O(X, {
1016
1044
  options: D.value,
1017
1045
  "model-value": T.value,
1018
- "onUpdate:modelValue": M
1046
+ "onUpdate:modelValue": N
1019
1047
  }, null, 8, ["options", "model-value"]),
1020
- x.value ? (i(), p("p", wn, b(h(o).blockSettings.heroMatchImageMergeTag), 1)) : A.value ? (i(), p("p", Tn, b(h(o).blockSettings.heroSizeUnknown), 1)) : _("", !0)
1048
+ x.value ? (i(), p("p", Tn, b(h(o).blockSettings.heroMatchImageMergeTag), 1)) : j.value ? (i(), p("p", En, b(h(o).blockSettings.heroSizeUnknown), 1)) : _("", !0)
1021
1049
  ]),
1022
- T.value === "fixed" ? (i(), v(gt, {
1050
+ T.value === "fixed" ? (i(), v(Z, {
1023
1051
  key: 0,
1024
1052
  "model-value": E.value,
1025
1053
  min: 1,
1026
1054
  suffix: "px",
1027
1055
  testid: "section-hero-height-px",
1028
- "onUpdate:modelValue": P
1056
+ "onUpdate:modelValue": ee
1029
1057
  }, null, 8, ["model-value"])) : _("", !0),
1030
- C.value ? (i(), p("div", En, [y("label", { class: g(h(q)) }, b(h(o).blockSettings.heroAlign), 3), O(Q, {
1058
+ C.value ? (i(), p("div", Dn, [y("label", { class: g(h(G)) }, b(h(o).blockSettings.heroAlign), 3), O(X, {
1031
1059
  options: k.value,
1032
1060
  "model-value": C.value.verticalAlign,
1033
- "onUpdate:modelValue": F
1061
+ "onUpdate:modelValue": L
1034
1062
  }, null, 8, ["options", "model-value"])])) : _("", !0)
1035
1063
  ])) : _("", !0);
1036
1064
  }
1037
- }), kn = { class: "tpl:space-y-2" }, An = { class: "tpl:flex tpl:items-center tpl:gap-2" }, jn = { class: "tpl:space-y-2" }, Mn = ["value"], Nn = { value: "" }, Pn = ["label"], Fn = ["value"], In = ["value"], Ln = {
1065
+ }), An = { class: "tpl:space-y-2" }, jn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Mn = { class: "tpl:space-y-2" }, Nn = ["value"], Pn = { value: "" }, Fn = ["label"], In = ["value"], Ln = ["value"], Rn = {
1038
1066
  key: 0,
1039
1067
  value: "__custom__"
1040
- }, Rn = {
1068
+ }, zn = {
1041
1069
  key: 0,
1042
1070
  class: "tpl:space-y-2"
1043
- }, zn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Bn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Vn = { class: "tpl:flex tpl:justify-end" }, Hn = ["disabled"], Un = {
1071
+ }, Bn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Vn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Hn = { class: "tpl:flex tpl:justify-end" }, Un = ["disabled"], Wn = {
1044
1072
  key: 0,
1045
1073
  class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
1046
- }, Wn = { class: "tpl:space-y-1" }, Gn = { 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)]" }, Kn = {
1074
+ }, Gn = { class: "tpl:space-y-1" }, Kn = { 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)]" }, qn = {
1047
1075
  key: 0,
1048
1076
  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)]"
1049
- }, qn = /* @__PURE__ */ r({
1077
+ }, Jn = /* @__PURE__ */ r({
1050
1078
  __name: "CommonBlockSettings",
1051
1079
  props: {
1052
1080
  block: {},
@@ -1054,23 +1082,23 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1054
1082
  },
1055
1083
  emits: ["update"],
1056
1084
  setup(e, { emit: r }) {
1057
- let u = e, d = r, { t: f, format: C } = U(), w = l(Ze, null), D = l(Ve, void 0), k = S(() => w?.activeLocale?.value), A = S(() => !!(k.value && w?.selectedBlock?.value?.l10n?.[k.value]?.hidden)), j = l(Ge, []), M = l(Xe, !1), N = t(/* @__PURE__ */ new Set()), P = T(!1), F = T(""), I = T(""), L = [{
1085
+ let u = e, d = r, { t: f, format: C } = V(), w = l($e, null), D = l(Ue, void 0), k = S(() => w?.activeLocale?.value), A = S(() => !!(k.value && w?.selectedBlock?.value?.l10n?.[k.value]?.hidden)), j = l(qe, []), M = l(Qe, !1), N = t(/* @__PURE__ */ new Set()), P = T(!1), F = T(""), I = T(""), ee = [{
1058
1086
  key: "desktop",
1059
- icon: be,
1087
+ icon: Se,
1060
1088
  labelKey: "showOnDesktop"
1061
1089
  }, {
1062
1090
  key: "mobile",
1063
- icon: Te,
1091
+ icon: De,
1064
1092
  labelKey: "showOnMobile"
1065
1093
  }];
1066
- function R(e) {
1094
+ function L(e) {
1067
1095
  N.has(e) ? N.delete(e) : N.add(e);
1068
1096
  }
1069
- let ee = S(() => j.length > 0 || M), z = S(() => u.block.displayCondition ? !j.some((e) => e.label === u.block.displayCondition?.label) : !1);
1070
- function te() {
1071
- P.value = !0, z.value && u.block.displayCondition ? (F.value = u.block.displayCondition.before, I.value = u.block.displayCondition.after ?? "") : (F.value = "", I.value = "");
1097
+ let te = S(() => j.length > 0 || M), R = S(() => u.block.displayCondition ? !j.some((e) => e.label === u.block.displayCondition?.label) : !1);
1098
+ function ne() {
1099
+ P.value = !0, R.value && u.block.displayCondition ? (F.value = u.block.displayCondition.before, I.value = u.block.displayCondition.after ?? "") : (F.value = "", I.value = "");
1072
1100
  }
1073
- function re() {
1101
+ function ie() {
1074
1102
  let e = F.value.trim(), t = I.value.trim();
1075
1103
  e && (d("update", { displayCondition: {
1076
1104
  label: f.blockSettings.customCondition,
@@ -1086,44 +1114,44 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1086
1114
  () => u.block.displayCondition?.after
1087
1115
  ], () => {
1088
1116
  let e = u.block.displayCondition;
1089
- !e || !z.value ? (P.value = !1, F.value = "", I.value = "") : (F.value = e.before, I.value = e.after ?? "");
1117
+ !e || !R.value ? (P.value = !1, F.value = "", I.value = "") : (F.value = e.before, I.value = e.after ?? "");
1090
1118
  }, { immediate: !0 });
1091
- let ie = S(() => {
1119
+ let ae = S(() => {
1092
1120
  let e = {};
1093
1121
  for (let t of j) {
1094
1122
  let n = t.group ?? "";
1095
1123
  e[n] || (e[n] = []), e[n].push(t);
1096
1124
  }
1097
1125
  return e;
1098
- }), ae = S(() => u.block.type === "section" && ne(u.block)?.applied === !0);
1099
- function oe(e, t) {
1126
+ }), oe = S(() => u.block.type === "section" && re(u.block)?.applied === !0);
1127
+ function se(e, t) {
1100
1128
  d("update", { styles: {
1101
1129
  ...u.block.styles,
1102
1130
  [e]: t
1103
1131
  } });
1104
1132
  }
1105
- function se(e) {
1133
+ function ce(e) {
1106
1134
  return u.block.visibility?.[e] !== !1;
1107
1135
  }
1108
- function ce(e) {
1136
+ function le(e) {
1109
1137
  let t = {
1110
- desktop: se("desktop"),
1111
- mobile: se("mobile")
1138
+ desktop: ce("desktop"),
1139
+ mobile: ce("mobile")
1112
1140
  };
1113
1141
  t[e] = !t[e], d("update", { visibility: t });
1114
1142
  }
1115
1143
  return (t, r) => (i(), p("div", { class: g(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
1116
- O(bn, {
1144
+ O(xn, {
1117
1145
  title: h(f).blockSettings.spacing,
1118
1146
  open: N.has("spacing"),
1119
1147
  "no-border": e.isFirstSection,
1120
- onToggle: r[1] ||= (e) => R("spacing")
1148
+ onToggle: r[1] ||= (e) => L("spacing")
1121
1149
  }, {
1122
- default: a(() => [O(on, {
1150
+ default: a(() => [O(sn, {
1123
1151
  path: "styles.padding",
1124
1152
  label: h(f).blockSettings.padding,
1125
1153
  "model-value": e.block.styles.padding,
1126
- "onUpdate:modelValue": r[0] ||= (e) => oe("padding", e)
1154
+ "onUpdate:modelValue": r[0] ||= (e) => se("padding", e)
1127
1155
  }, null, 8, ["label", "model-value"])]),
1128
1156
  _: 1
1129
1157
  }, 8, [
@@ -1131,46 +1159,46 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1131
1159
  "open",
1132
1160
  "no-border"
1133
1161
  ]),
1134
- O(bn, {
1162
+ O(xn, {
1135
1163
  title: h(f).blockSettings.background,
1136
1164
  open: N.has("bg"),
1137
1165
  "header-test-id": "block-settings-background",
1138
- onToggle: r[5] ||= (e) => R("bg")
1166
+ onToggle: r[5] ||= (e) => L("bg")
1139
1167
  }, {
1140
1168
  default: a(() => [
1141
- O(J, {
1169
+ O(K, {
1142
1170
  path: "styles.backgroundColor",
1143
1171
  label: h(f).blockSettings.color
1144
1172
  }, {
1145
- default: a(() => [O(Y, {
1173
+ default: a(() => [O(q, {
1146
1174
  "model-value": e.block.styles.backgroundColor ?? "",
1147
1175
  "allow-transparent": "",
1148
- "onUpdate:modelValue": r[2] ||= (e) => oe("backgroundColor", e)
1176
+ "onUpdate:modelValue": r[2] ||= (e) => se("backgroundColor", e)
1149
1177
  }, null, 8, ["model-value"])]),
1150
1178
  _: 1
1151
1179
  }, 8, ["label"]),
1152
- e.block.type === "section" ? (i(), v(J, {
1180
+ e.block.type === "section" ? (i(), v(K, {
1153
1181
  key: 0,
1154
1182
  path: "backgroundImage",
1155
1183
  label: h(f).blockSettings.backgroundImage
1156
1184
  }, {
1157
- default: a(() => [O(_n, {
1185
+ default: a(() => [O(vn, {
1158
1186
  "hide-label": "",
1159
1187
  class: "tpl:mt-3.5",
1160
1188
  "model-value": e.block.backgroundImage,
1161
1189
  "testid-prefix": "section",
1162
1190
  measure: "",
1163
- "hero-mode": ae.value,
1191
+ "hero-mode": oe.value,
1164
1192
  "onUpdate:modelValue": r[3] ||= (e) => d("update", { backgroundImage: e })
1165
1193
  }, null, 8, ["model-value", "hero-mode"])]),
1166
1194
  _: 1
1167
1195
  }, 8, ["label"])) : _("", !0),
1168
- e.block.type === "section" ? (i(), v(J, {
1196
+ e.block.type === "section" ? (i(), v(K, {
1169
1197
  key: 1,
1170
1198
  path: "hero",
1171
1199
  label: h(f).blocks.hero
1172
1200
  }, {
1173
- default: a(() => [O(On, {
1201
+ default: a(() => [O(kn, {
1174
1202
  section: e.block,
1175
1203
  onUpdate: r[4] ||= (e) => d("update", e)
1176
1204
  }, null, 8, ["section"])]),
@@ -1179,38 +1207,38 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1179
1207
  ]),
1180
1208
  _: 1
1181
1209
  }, 8, ["title", "open"]),
1182
- O(bn, {
1210
+ O(xn, {
1183
1211
  title: h(f).blockSettings.display,
1184
1212
  open: N.has("display"),
1185
- onToggle: r[7] ||= (e) => R("display")
1213
+ onToggle: r[7] ||= (e) => L("display")
1186
1214
  }, {
1187
- default: a(() => [y("div", kn, [k.value && h(D) ? (i(), v(X, {
1215
+ default: a(() => [y("div", An, [k.value && h(D) ? (i(), v(J, {
1188
1216
  key: 0,
1189
1217
  "data-testid": "locale-hide",
1190
1218
  disabled: !h(D).locales.includes(k.value),
1191
1219
  "model-value": A.value,
1192
- label: h(C)(h(f).localization.hide, { language: h($e)(k.value) }),
1220
+ label: h(C)(h(f).localization.hide, { language: h(tt)(k.value) }),
1193
1221
  "onUpdate:modelValue": r[6] ||= (t) => h(w)?.setBlockHidden?.(e.block.id, t)
1194
1222
  }, null, 8, [
1195
1223
  "disabled",
1196
1224
  "model-value",
1197
1225
  "label"
1198
- ])) : _("", !0), (i(), p(E, null, c(L, (e) => O(J, {
1226
+ ])) : _("", !0), (i(), p(E, null, c(ee, (e) => O(K, {
1199
1227
  key: e.key,
1200
1228
  path: `visibility.${e.key}`,
1201
1229
  label: h(f).blockSettings[e.labelKey]
1202
1230
  }, {
1203
- label: a(() => [y("span", An, [(i(), v(n(e.icon), {
1231
+ label: a(() => [y("span", jn, [(i(), v(n(e.icon), {
1204
1232
  size: 14,
1205
1233
  "stroke-width": 1.5
1206
1234
  })), m(" " + b(h(f).blockSettings[e.labelKey]), 1)])]),
1207
- "label-actions": a(({ controlId: t }) => [O(X, {
1235
+ "label-actions": a(({ controlId: t }) => [O(J, {
1208
1236
  "control-id": t,
1209
1237
  "hide-label": "",
1210
1238
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
1211
- "model-value": se(e.key),
1239
+ "model-value": ce(e.key),
1212
1240
  label: h(f).blockSettings[e.labelKey],
1213
- "onUpdate:modelValue": (t) => ce(e.key)
1241
+ "onUpdate:modelValue": (t) => le(e.key)
1214
1242
  }, null, 8, [
1215
1243
  "control-id",
1216
1244
  "model-value",
@@ -1221,25 +1249,25 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1221
1249
  }, 1032, ["path", "label"])), 64))])]),
1222
1250
  _: 1
1223
1251
  }, 8, ["title", "open"]),
1224
- ee.value ? (i(), v(bn, {
1252
+ te.value ? (i(), v(xn, {
1225
1253
  key: 0,
1226
1254
  "header-test-id": "display-condition-section",
1227
1255
  title: h(f).blockSettings.displayCondition,
1228
1256
  open: N.has("condition"),
1229
- onToggle: r[11] ||= (e) => R("condition")
1257
+ onToggle: r[11] ||= (e) => L("condition")
1230
1258
  }, {
1231
- default: a(() => [y("div", jn, [O(J, {
1259
+ default: a(() => [y("div", Mn, [O(K, {
1232
1260
  path: "displayCondition",
1233
1261
  label: h(f).blockSettings.displayCondition
1234
1262
  }, {
1235
1263
  default: a(() => [y("select", {
1236
1264
  "data-testid": "display-condition-select",
1237
1265
  class: g(["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: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)]"]),
1238
- value: P.value || z.value ? "__custom__" : e.block.displayCondition?.label ?? "",
1266
+ value: P.value || R.value ? "__custom__" : e.block.displayCondition?.label ?? "",
1239
1267
  onChange: r[8] ||= (e) => {
1240
1268
  let t = e.target.value;
1241
1269
  if (t === "__custom__") {
1242
- te();
1270
+ ne();
1243
1271
  return;
1244
1272
  }
1245
1273
  if (P.value = !1, !t) {
@@ -1250,43 +1278,43 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1250
1278
  n && d("update", { displayCondition: n });
1251
1279
  }
1252
1280
  }, [
1253
- y("option", Nn, b(h(f).blockSettings.noCondition), 1),
1254
- (i(!0), p(E, null, c(ie.value, (e, t) => (i(), p(E, { key: t }, [t ? (i(), p("optgroup", {
1281
+ y("option", Pn, b(h(f).blockSettings.noCondition), 1),
1282
+ (i(!0), p(E, null, c(ae.value, (e, t) => (i(), p(E, { key: t }, [t ? (i(), p("optgroup", {
1255
1283
  key: 0,
1256
1284
  label: String(t)
1257
1285
  }, [(i(!0), p(E, null, c(e, (e) => (i(), p("option", {
1258
1286
  key: e.label,
1259
1287
  value: e.label
1260
- }, b(e.label), 9, Fn))), 128))], 8, Pn)) : (i(!0), p(E, { key: 1 }, c(e, (e) => (i(), p("option", {
1288
+ }, b(e.label), 9, In))), 128))], 8, Fn)) : (i(!0), p(E, { key: 1 }, c(e, (e) => (i(), p("option", {
1261
1289
  key: e.label,
1262
1290
  value: e.label
1263
- }, b(e.label), 9, In))), 128))], 64))), 128)),
1264
- h(M) ? (i(), p("option", Ln, b(h(f).blockSettings.customCondition), 1)) : _("", !0)
1265
- ], 42, Mn)]),
1291
+ }, b(e.label), 9, Ln))), 128))], 64))), 128)),
1292
+ h(M) ? (i(), p("option", Rn, b(h(f).blockSettings.customCondition), 1)) : _("", !0)
1293
+ ], 42, Nn)]),
1266
1294
  _: 1
1267
- }, 8, ["label"]), P.value || z.value ? (i(), p("div", Rn, [
1268
- y("div", null, [y("label", zn, b(h(f).blockSettings.customConditionBefore), 1), s(y("textarea", {
1295
+ }, 8, ["label"]), P.value || R.value ? (i(), p("div", zn, [
1296
+ y("div", null, [y("label", Bn, b(h(f).blockSettings.customConditionBefore), 1), s(y("textarea", {
1269
1297
  "onUpdate:modelValue": r[9] ||= (e) => F.value = e,
1270
1298
  rows: "2",
1271
- class: g(h(it))
1299
+ class: g(h(ot))
1272
1300
  }, null, 2), [[x, F.value]])]),
1273
- y("div", null, [y("label", Bn, b(h(f).blockSettings.customConditionAfter), 1), s(y("textarea", {
1301
+ y("div", null, [y("label", Vn, b(h(f).blockSettings.customConditionAfter), 1), s(y("textarea", {
1274
1302
  "onUpdate:modelValue": r[10] ||= (e) => I.value = e,
1275
1303
  rows: "2",
1276
- class: g(h(it))
1304
+ class: g(h(ot))
1277
1305
  }, null, 2), [[x, I.value]])]),
1278
- y("div", Vn, [y("button", {
1306
+ y("div", Hn, [y("button", {
1279
1307
  type: "button",
1280
- class: g(h(tt)),
1308
+ class: g(h(rt)),
1281
1309
  disabled: !F.value.trim(),
1282
- onClick: re
1283
- }, b(h(f).blockSettings.applyCondition), 11, Hn)])
1284
- ])) : e.block.displayCondition && !z.value ? (i(), p(E, { key: 1 }, [e.block.displayCondition.description ? (i(), p("p", Un, b(e.block.displayCondition.description), 1)) : _("", !0), y("div", Wn, [y("pre", Gn, b(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (i(), p("pre", Kn, b(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)])]),
1310
+ onClick: ie
1311
+ }, b(h(f).blockSettings.applyCondition), 11, Un)])
1312
+ ])) : e.block.displayCondition && !R.value ? (i(), p(E, { key: 1 }, [e.block.displayCondition.description ? (i(), p("p", Wn, b(e.block.displayCondition.description), 1)) : _("", !0), y("div", Gn, [y("pre", Kn, b(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (i(), p("pre", qn, b(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)])]),
1285
1313
  _: 1
1286
1314
  }, 8, ["title", "open"])) : _("", !0)
1287
1315
  ], 2));
1288
1316
  }
1289
- }), Jn = ["title"], Yn = { class: "tpl-sr-only" }, Xn = ["title"], Zn = { class: "tpl-sr-only" }, Qn = /* @__PURE__ */ r({
1317
+ }), Yn = ["title"], Xn = { class: "tpl-sr-only" }, Zn = ["title"], Qn = { class: "tpl-sr-only" }, $n = /* @__PURE__ */ r({
1290
1318
  __name: "FieldLabel",
1291
1319
  props: {
1292
1320
  label: {},
@@ -1294,25 +1322,25 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1294
1322
  readOnly: { type: Boolean }
1295
1323
  },
1296
1324
  setup(e) {
1297
- let { t } = U();
1325
+ let { t } = V();
1298
1326
  return (n, r) => (i(), p("span", null, [
1299
1327
  m(b(e.label) + " ", 1),
1300
1328
  e.readOnly ? (i(), p("span", {
1301
1329
  key: 0,
1302
1330
  title: h(t).customBlocks.dataSource.readOnlyTooltip
1303
- }, [O(h(Ie), {
1331
+ }, [O(h(Re), {
1304
1332
  size: 12,
1305
1333
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
1306
1334
  "aria-hidden": "true"
1307
- }), y("span", Yn, b(h(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, Jn)) : _("", !0),
1335
+ }), y("span", Xn, b(h(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, Yn)) : _("", !0),
1308
1336
  e.required ? (i(), p("span", {
1309
1337
  key: 1,
1310
1338
  class: "tpl:text-[var(--tpl-danger)]",
1311
1339
  title: h(t).customBlocks.fields.required
1312
- }, [r[0] ||= y("span", { "aria-hidden": "true" }, "*", -1), y("span", Zn, b(h(t).customBlocks.fields.required), 1)], 8, Xn)) : _("", !0)
1340
+ }, [r[0] ||= y("span", { "aria-hidden": "true" }, "*", -1), y("span", Qn, b(h(t).customBlocks.fields.required), 1)], 8, Zn)) : _("", !0)
1313
1341
  ]));
1314
1342
  }
1315
- }), $n = ["title"], er = /* @__PURE__ */ r({
1343
+ }), er = ["title"], tr = /* @__PURE__ */ r({
1316
1344
  __name: "BooleanField",
1317
1345
  props: {
1318
1346
  field: {},
@@ -1323,11 +1351,11 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1323
1351
  },
1324
1352
  emits: ["update:modelValue"],
1325
1353
  setup(e, { emit: t }) {
1326
- let n = t, { t: r } = U();
1354
+ let n = t, { t: r } = V();
1327
1355
  return (t, o) => (i(), p("div", {
1328
1356
  class: "tpl:mb-3.5",
1329
1357
  title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0
1330
- }, [O(X, {
1358
+ }, [O(J, {
1331
1359
  "hide-label": e.hideLabel,
1332
1360
  "control-id": e.controlId,
1333
1361
  class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
@@ -1337,7 +1365,7 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1337
1365
  disabled: e.readOnly,
1338
1366
  "onUpdate:modelValue": o[0] ||= (e) => n("update:modelValue", e)
1339
1367
  }, {
1340
- default: a(() => [m(b(e.field.label) + " ", 1), e.readOnly ? (i(), v(h(Ie), {
1368
+ default: a(() => [m(b(e.field.label) + " ", 1), e.readOnly ? (i(), v(h(Re), {
1341
1369
  key: 0,
1342
1370
  size: 12,
1343
1371
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
@@ -1350,9 +1378,9 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1350
1378
  "label",
1351
1379
  "required",
1352
1380
  "disabled"
1353
- ])], 8, $n));
1381
+ ])], 8, er));
1354
1382
  }
1355
- }), tr = { class: "tpl:mb-3.5" }, nr = /* @__PURE__ */ r({
1383
+ }), nr = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ r({
1356
1384
  __name: "FieldWrapper",
1357
1385
  props: {
1358
1386
  label: {},
@@ -1361,10 +1389,10 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1361
1389
  readOnly: { type: Boolean }
1362
1390
  },
1363
1391
  setup(e) {
1364
- return (t, n) => (i(), p("div", tr, [e.hideLabel ? _("", !0) : (i(), p("label", {
1392
+ return (t, n) => (i(), p("div", nr, [e.hideLabel ? _("", !0) : (i(), p("label", {
1365
1393
  key: 0,
1366
- class: g(h(q))
1367
- }, [O(Qn, {
1394
+ class: g(h(G))
1395
+ }, [O($n, {
1368
1396
  label: e.label,
1369
1397
  required: e.required,
1370
1398
  "read-only": e.readOnly
@@ -1384,14 +1412,14 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1384
1412
  },
1385
1413
  emits: ["update:modelValue"],
1386
1414
  setup(e, { emit: t }) {
1387
- let n = e, r = t, { t: o } = U(), s = l(Ye, st), c = S(() => ye(n.field, s));
1388
- return (t, n) => (i(), v(nr, {
1415
+ let n = e, r = t, { t: o } = V(), s = l(Ze, lt), c = S(() => xe(n.field, s));
1416
+ return (t, n) => (i(), v($, {
1389
1417
  "hide-label": e.hideLabel,
1390
1418
  label: e.field.label,
1391
1419
  required: e.field.required,
1392
1420
  "read-only": e.readOnly
1393
1421
  }, {
1394
- default: a(() => [O(Y, {
1422
+ default: a(() => [O(q, {
1395
1423
  "model-value": e.modelValue,
1396
1424
  placeholder: e.field.placeholder,
1397
1425
  disabled: e.readOnly,
@@ -1429,12 +1457,12 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1429
1457
  },
1430
1458
  emits: ["update:modelValue"],
1431
1459
  setup(e, { emit: t }) {
1432
- let n = e, r = t, { t: o } = U(), s = T(), { canBrowse: c, isUploading: l, showOverlay: u, openMediaBrowser: d } = ve({
1460
+ let n = e, r = t, { t: o } = V(), s = T(), { canBrowse: c, isUploading: l, showOverlay: u, openMediaBrowser: d } = be({
1433
1461
  target: s,
1434
1462
  blocked: () => !!n.readOnly,
1435
1463
  apply: (e) => r("update:modelValue", e.url)
1436
1464
  });
1437
- return (t, n) => (i(), v(nr, {
1465
+ return (t, n) => (i(), v($, {
1438
1466
  "hide-label": e.hideLabel,
1439
1467
  label: e.field.label,
1440
1468
  required: e.field.required,
@@ -1445,14 +1473,14 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1445
1473
  ref: s,
1446
1474
  class: "tpl:relative"
1447
1475
  }, [
1448
- h(u) ? (i(), v(ue, {
1476
+ h(u) ? (i(), v(de, {
1449
1477
  key: 0,
1450
1478
  uploading: h(l)
1451
1479
  }, null, 8, ["uploading"])) : _("", !0),
1452
1480
  e.readOnly ? (i(), p("input", {
1453
1481
  key: 1,
1454
1482
  type: "url",
1455
- class: g([h(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1483
+ class: g([h(W), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1456
1484
  value: e.modelValue,
1457
1485
  placeholder: e.field.placeholder || "https://...",
1458
1486
  disabled: "",
@@ -1460,7 +1488,7 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1460
1488
  }, null, 10, ir)) : (i(), p("input", {
1461
1489
  key: 2,
1462
1490
  type: "url",
1463
- class: g(h(K)),
1491
+ class: g(h(W)),
1464
1492
  value: e.modelValue,
1465
1493
  placeholder: e.field.placeholder || "https://...",
1466
1494
  onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
@@ -1469,7 +1497,7 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1469
1497
  key: 3,
1470
1498
  class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
1471
1499
  onClick: n[1] ||= (e) => h(d)()
1472
- }, [O(h(Oe), {
1500
+ }, [O(h(Ae), {
1473
1501
  size: 14,
1474
1502
  "stroke-width": 1.5
1475
1503
  }), m(" " + b(h(o).image.browseMedia), 1)])) : _("", !0)
@@ -1500,8 +1528,8 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1500
1528
  },
1501
1529
  emits: ["update:modelValue"],
1502
1530
  setup(e, { emit: t }) {
1503
- let n = t, { t: r } = U();
1504
- return (t, o) => (i(), v(nr, {
1531
+ let n = t, { t: r } = V();
1532
+ return (t, o) => (i(), v($, {
1505
1533
  "hide-label": e.hideLabel,
1506
1534
  label: e.field.label,
1507
1535
  required: e.field.required,
@@ -1509,7 +1537,7 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1509
1537
  }, {
1510
1538
  default: a(() => [y("input", {
1511
1539
  type: "number",
1512
- class: g([h(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1540
+ class: g([h(W), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1513
1541
  value: e.modelValue,
1514
1542
  placeholder: e.field.placeholder,
1515
1543
  min: e.field.min,
@@ -1543,7 +1571,7 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1543
1571
  },
1544
1572
  emits: ["update:modelValue"],
1545
1573
  setup(e, { emit: t }) {
1546
- let r = e, o = t, { t: s, format: l } = U(), u = S(() => r.modelValue || []), d = S(() => !r.field.maxItems || u.value.length < r.field.maxItems), f = S(() => !r.field.minItems || u.value.length > r.field.minItems);
1574
+ let r = e, o = t, { t: s, format: l } = V(), u = S(() => r.modelValue || []), d = S(() => !r.field.maxItems || u.value.length < r.field.maxItems), f = S(() => !r.field.minItems || u.value.length > r.field.minItems);
1547
1575
  function x() {
1548
1576
  if (!d.value || r.readOnly) return;
1549
1577
  let e = {};
@@ -1562,7 +1590,7 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1562
1590
  } : r);
1563
1591
  o("update:modelValue", r);
1564
1592
  }
1565
- return (t, r) => (i(), v(nr, {
1593
+ return (t, r) => (i(), v($, {
1566
1594
  "hide-label": e.hideLabel,
1567
1595
  label: e.field.label,
1568
1596
  required: e.field.required,
@@ -1578,7 +1606,7 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1578
1606
  class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
1579
1607
  title: h(s).customBlocks.fields.removeItem,
1580
1608
  onClick: (e) => C(r)
1581
- }, [O(h(je), {
1609
+ }, [O(h(Ne), {
1582
1610
  size: 12,
1583
1611
  "stroke-width": 2
1584
1612
  })], 8, fr)) : _("", !0)]), (i(!0), p(E, null, c(e.field.fields, (a) => (i(), v(n(h(wr)(a.type)), {
@@ -1596,9 +1624,9 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1596
1624
  d.value && !e.readOnly ? (i(), p("button", {
1597
1625
  key: 0,
1598
1626
  type: "button",
1599
- class: g(h(nt)),
1627
+ class: g(h(it)),
1600
1628
  onClick: x
1601
- }, [O(h(H), {
1629
+ }, [O(h(B), {
1602
1630
  size: 14,
1603
1631
  "stroke-width": 2
1604
1632
  }), m(" " + b(h(s).customBlocks.fields.addItem), 1)], 2)) : _("", !0),
@@ -1627,15 +1655,15 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1627
1655
  },
1628
1656
  emits: ["update:modelValue"],
1629
1657
  setup(e, { emit: t }) {
1630
- let n = t, { t: r } = U();
1631
- return (t, o) => (i(), v(nr, {
1658
+ let n = t, { t: r } = V();
1659
+ return (t, o) => (i(), v($, {
1632
1660
  "hide-label": e.hideLabel,
1633
1661
  label: e.field.label,
1634
1662
  required: e.field.required,
1635
1663
  "read-only": e.readOnly
1636
1664
  }, {
1637
1665
  default: a(() => [y("select", {
1638
- class: g([h(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1666
+ class: g([h(W), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1639
1667
  value: e.modelValue,
1640
1668
  disabled: e.readOnly,
1641
1669
  title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0,
@@ -1666,8 +1694,8 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1666
1694
  },
1667
1695
  emits: ["update:modelValue"],
1668
1696
  setup(e, { emit: t }) {
1669
- let n = t, { t: r } = U();
1670
- return (t, o) => (i(), v(nr, {
1697
+ let n = t, { t: r } = V();
1698
+ return (t, o) => (i(), v($, {
1671
1699
  "hide-label": e.hideLabel,
1672
1700
  label: e.field.label,
1673
1701
  required: e.field.required,
@@ -1676,12 +1704,12 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1676
1704
  default: a(() => [e.readOnly ? (i(), p("input", {
1677
1705
  key: 0,
1678
1706
  type: "text",
1679
- class: g([h(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1707
+ class: g([h(W), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1680
1708
  value: e.modelValue,
1681
1709
  placeholder: e.field.placeholder,
1682
1710
  disabled: "",
1683
1711
  title: h(r).customBlocks.dataSource.readOnlyTooltip
1684
- }, null, 10, yr)) : (i(), v(Z, {
1712
+ }, null, 10, yr)) : (i(), v(Y, {
1685
1713
  key: 1,
1686
1714
  "model-value": e.modelValue,
1687
1715
  placeholder: e.field.placeholder,
@@ -1711,8 +1739,8 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1711
1739
  },
1712
1740
  emits: ["update:modelValue"],
1713
1741
  setup(e, { emit: t }) {
1714
- let n = t, { t: r } = U();
1715
- return (t, o) => (i(), v(nr, {
1742
+ let n = t, { t: r } = V();
1743
+ return (t, o) => (i(), v($, {
1716
1744
  "hide-label": e.hideLabel,
1717
1745
  label: e.field.label,
1718
1746
  required: e.field.required,
@@ -1726,7 +1754,7 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1726
1754
  disabled: "",
1727
1755
  title: h(r).customBlocks.dataSource.readOnlyTooltip,
1728
1756
  class: g(Sr)
1729
- }, null, 8, xr)) : (i(), v(lt, {
1757
+ }, null, 8, xr)) : (i(), v(dt, {
1730
1758
  key: 1,
1731
1759
  "model-value": e.modelValue,
1732
1760
  placeholder: e.field.placeholder,
@@ -1745,7 +1773,7 @@ var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"
1745
1773
  color: rr,
1746
1774
  number: cr,
1747
1775
  select: vr,
1748
- boolean: er,
1776
+ boolean: tr,
1749
1777
  repeatable: hr
1750
1778
  };
1751
1779
  function wr(e) {
@@ -1775,7 +1803,7 @@ var Tr = {
1775
1803
  props: { block: {} },
1776
1804
  emits: ["updateFieldValues", "updateDataSourceFetched"],
1777
1805
  setup(e, { emit: t }) {
1778
- let r = e, o = t, { t: s } = U(), u = l(qe, []), d = S(() => u.find((e) => e.type === r.block.customType)), f = S(() => r.block), { isFetching: g, fetchError: x, fetch: C, hasDataSource: w, needsFetch: T } = ae({
1806
+ let r = e, o = t, { t: s } = V(), u = l(Ye, []), d = S(() => u.find((e) => e.type === r.block.customType)), f = S(() => r.block), { isFetching: g, fetchError: x, fetch: C, hasDataSource: w, needsFetch: T } = oe({
1779
1807
  definition: d,
1780
1808
  block: f,
1781
1809
  onUpdate: (e, t) => {
@@ -1803,16 +1831,16 @@ var Tr = {
1803
1831
  type: "button",
1804
1832
  class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]",
1805
1833
  onClick: r[1] ||= (...e) => h(C) && h(C)(...e)
1806
- }, [O(h(Ee), { size: 12 }), m(" " + b(h(s).customBlocks.dataSource.changeButton), 1)]))])), h(x) ? (i(), p("p", Mr, [O(h(Ce), {
1834
+ }, [O(h(Oe), { size: 12 }), m(" " + b(h(s).customBlocks.dataSource.changeButton), 1)]))])), h(x) ? (i(), p("p", Mr, [O(h(Te), {
1807
1835
  size: 14,
1808
1836
  class: "tpl:shrink-0"
1809
1837
  }), m(" " + b(h(s).customBlocks.dataSource.fetchError), 1)])) : _("", !0)])) : _("", !0),
1810
- (i(!0), p(E, null, c(d.value.fields, (t) => (i(), v(J, {
1838
+ (i(!0), p(E, null, c(d.value.fields, (t) => (i(), v(K, {
1811
1839
  key: t.key,
1812
1840
  path: `fieldValues.${t.key}`,
1813
1841
  label: t.label
1814
1842
  }, {
1815
- label: a(() => [O(Qn, {
1843
+ label: a(() => [O($n, {
1816
1844
  label: t.label,
1817
1845
  required: t.required,
1818
1846
  "read-only": D(t)
@@ -1844,17 +1872,17 @@ var Tr = {
1844
1872
  props: { block: {} },
1845
1873
  emits: ["update"],
1846
1874
  setup(e, { emit: t }) {
1847
- let n = t, { t: r } = U();
1875
+ let n = t, { t: r } = V();
1848
1876
  function o(e, t) {
1849
1877
  n("update", { [e]: t });
1850
1878
  }
1851
1879
  return (t, n) => (i(), p(E, null, [
1852
- O(J, {
1880
+ O(K, {
1853
1881
  label: h(r).divider.style,
1854
1882
  class: "tpl:mb-3.5",
1855
1883
  path: "lineStyle"
1856
1884
  }, {
1857
- default: a(() => [O(Q, {
1885
+ default: a(() => [O(X, {
1858
1886
  options: [
1859
1887
  {
1860
1888
  value: "solid",
@@ -1874,30 +1902,30 @@ var Tr = {
1874
1902
  }, null, 8, ["options", "model-value"])]),
1875
1903
  _: 1
1876
1904
  }, 8, ["label"]),
1877
- O(J, {
1905
+ O(K, {
1878
1906
  label: h(r).divider.color,
1879
1907
  class: "tpl:mb-3.5",
1880
1908
  path: "color"
1881
1909
  }, {
1882
- default: a(() => [O(Y, {
1910
+ default: a(() => [O(q, {
1883
1911
  "model-value": e.block.color,
1884
1912
  "onUpdate:modelValue": n[1] ||= (e) => o("color", e)
1885
1913
  }, null, 8, ["model-value"])]),
1886
1914
  _: 1
1887
1915
  }, 8, ["label"]),
1888
- O(J, {
1916
+ O(K, {
1889
1917
  label: h(r).divider.thickness,
1890
1918
  class: "tpl:mb-3.5",
1891
1919
  path: "thickness"
1892
1920
  }, {
1893
1921
  default: a(() => [y("div", Pr, [y("input", {
1894
1922
  type: "number",
1895
- class: g(h(G)),
1923
+ class: g(h(U)),
1896
1924
  value: e.block.thickness,
1897
1925
  min: "1",
1898
1926
  max: "10",
1899
1927
  onInput: n[2] ||= (e) => o("thickness", Number(e.target.value))
1900
- }, null, 42, Fr), y("span", { class: g(h(W)) }, "px", 2)])]),
1928
+ }, null, 42, Fr), y("span", { class: g(h(H)) }, "px", 2)])]),
1901
1929
  _: 1
1902
1930
  }, 8, ["label"])
1903
1931
  ], 64));
@@ -1907,8 +1935,8 @@ var Tr = {
1907
1935
  props: { block: {} },
1908
1936
  emits: ["update"],
1909
1937
  setup(e, { emit: t }) {
1910
- let n = t, { t: r } = U();
1911
- return (t, o) => (i(), v(J, {
1938
+ let n = t, { t: r } = V();
1939
+ return (t, o) => (i(), v(K, {
1912
1940
  label: h(r).html.content,
1913
1941
  class: "tpl:mb-3.5",
1914
1942
  path: "content"
@@ -1917,9 +1945,9 @@ var Tr = {
1917
1945
  value: e.block.content,
1918
1946
  placeholder: "<div>...</div>",
1919
1947
  rows: "10",
1920
- class: g(h(it)),
1948
+ class: g(h(ot)),
1921
1949
  onInput: o[0] ||= (e) => n("update", { content: e.target.value })
1922
- }, null, 42, Lr), y("p", Rr, [O(h(Me), {
1950
+ }, null, 42, Lr), y("p", Rr, [O(h(Pe), {
1923
1951
  size: 12,
1924
1952
  class: "tpl:mt-0.5 tpl:shrink-0"
1925
1953
  }), m(" " + b(h(r).html.sanitizationHint), 1)])]),
@@ -1933,7 +1961,7 @@ function Br(e) {
1933
1961
  o(() => e.block().id, () => {
1934
1962
  t.value = !1, n.value = null;
1935
1963
  });
1936
- let r = S(() => de(e.block()) ?? e.measured()), i = S(() => {
1964
+ let r = S(() => fe(e.block()) ?? e.measured()), i = S(() => {
1937
1965
  let t = e.block().width;
1938
1966
  return t === "full" ? e.room() : t;
1939
1967
  }), a = S(() => {
@@ -1944,9 +1972,9 @@ function Br(e) {
1944
1972
  return t === void 0 || a.value !== null && Math.abs(a.value - t) <= 1;
1945
1973
  }), l = S(() => s.value && !t.value && c.value);
1946
1974
  function u() {
1947
- if (de(e.block())) return {};
1975
+ if (fe(e.block())) return {};
1948
1976
  let t = e.measured();
1949
- return t ? fe(t) : {};
1977
+ return t ? pe(t) : {};
1950
1978
  }
1951
1979
  function d(r) {
1952
1980
  if (n.value = null, !r) return t.value = !0, null;
@@ -1995,110 +2023,113 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
1995
2023
  ], Ur = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Wr = ["value"], Gr = { value: "full" }, Kr = { value: "custom" }, qr = {
1996
2024
  key: 0,
1997
2025
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
1998
- }, Jr = ["value"], Yr = { class: "tpl:flex tpl:items-stretch" }, Xr = ["value"], Zr = {
2026
+ }, Jr = ["value"], Yr = ["value"], Xr = { value: "auto" }, Zr = { value: "always" }, Qr = { value: "never" }, $r = { class: "tpl:flex tpl:items-stretch" }, ei = ["value"], ti = {
1999
2027
  key: 0,
2000
2028
  class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
2001
2029
  role: "status",
2002
2030
  "data-testid": "image-height-capped"
2003
- }, Qr = ["value"], $r = { value: "auto" }, ei = { value: "custom" }, ti = {
2031
+ }, ni = ["value"], ri = { value: "auto" }, ii = { value: "custom" }, ai = {
2004
2032
  key: 2,
2005
2033
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
2006
- }, ni = ["value"], ri = 350, ii = 200, ai = /* @__PURE__ */ r({
2034
+ }, oi = ["value"], si = 350, ci = 200, li = /* @__PURE__ */ r({
2007
2035
  __name: "ImageToolbar",
2008
2036
  props: { block: {} },
2009
2037
  emits: ["update"],
2010
2038
  setup(e, { emit: t }) {
2011
- let n = e, r = t, { t: o, format: s } = U(), c = l(ze, R.liquid), u = l(Ze, null), d = u ? Qe(u) : null, f = l(He, void 0), x = T(!1), C = T(!1), { start: w } = at(() => {
2039
+ let n = e, r = t, { t: o, format: s } = V(), c = l(Ve, A.liquid), u = l($e, null), d = u ? et(u) : null, f = l(We, void 0), x = T(!1), C = T(!1), { start: w } = st(() => {
2012
2040
  x.value = !1, C.value = !1;
2013
2041
  }, 1e3, { immediate: !1 }), k = [
2014
2042
  300,
2015
2043
  400,
2016
2044
  500
2017
- ], A = S(() => {
2045
+ ], j = S(() => {
2018
2046
  let e = n.block.width;
2019
2047
  return e === "full" ? "full" : k.includes(e) ? String(e) : "custom";
2020
- }), M = S(() => typeof n.block.height == "number" ? "custom" : "auto");
2021
- function N(e, t) {
2048
+ }), M = S(() => typeof n.block.height == "number" ? "custom" : "auto"), F = S(() => n.block.fluidOnMobile === !0 ? "always" : n.block.fluidOnMobile === !1 ? "never" : "auto");
2049
+ function I(e, t) {
2022
2050
  r("update", { [e]: t });
2023
2051
  }
2024
- function P(e) {
2052
+ function ee(e) {
2025
2053
  if (e === "custom") {
2026
2054
  let e = n.block.width;
2027
- (typeof e != "number" || k.includes(e)) && r("update", B.widthUpdates(ri));
2028
- } else r("update", B.widthUpdates(e === "full" ? "full" : Number(e)));
2055
+ (typeof e != "number" || k.includes(e)) && r("update", z.widthUpdates(si));
2056
+ } else r("update", z.widthUpdates(e === "full" ? "full" : Number(e)));
2029
2057
  }
2030
- function F(e) {
2031
- N("height", e === "custom" ? ii : void 0);
2058
+ function L(e) {
2059
+ I("height", e === "custom" ? ci : void 0);
2032
2060
  }
2033
- function I(e) {
2061
+ function te(e) {
2062
+ I("fluidOnMobile", e === "always" || e !== "never" && void 0);
2063
+ }
2064
+ function R(e) {
2034
2065
  let t = Number(e);
2035
- !Number.isFinite(t) || t <= 0 || N("height", t);
2066
+ !Number.isFinite(t) || t <= 0 || I("height", t);
2036
2067
  }
2037
- function L(e) {
2038
- N("borderRadius", j(e) === null ? void 0 : e);
2068
+ function ne(e) {
2069
+ I("borderRadius", N(e) === null ? void 0 : e);
2039
2070
  }
2040
- function ee(e) {
2071
+ function re(e) {
2041
2072
  let t = Number(e);
2042
- !Number.isFinite(t) || t <= 0 || r("update", B.widthUpdates(t));
2073
+ !Number.isFinite(t) || t <= 0 || r("update", z.widthUpdates(t));
2043
2074
  }
2044
- function z(e) {
2075
+ function ie(e) {
2045
2076
  e !== n.block.src && r("update", {
2046
2077
  src: e,
2047
- ...fe(null)
2078
+ ...pe(null)
2048
2079
  });
2049
2080
  }
2050
- function ne(e) {
2081
+ function ae(e) {
2051
2082
  r("update", {
2052
2083
  src: e.url,
2053
- ...fe(se(e.width, e.height))
2054
- }), e.alt && (N("alt", e.alt), C.value = !0), x.value = !0, w();
2055
- }
2056
- let re = T(), ie = S(() => te(n.block.src, c)), { canBrowse: ae, isUploading: ce, showOverlay: le, openMediaBrowser: me } = ve({
2057
- target: re,
2058
- blocked: ie,
2059
- apply: ne
2060
- }), he = oe(() => ie.value || !n.block.src || de(n.block) ? void 0 : n.block.src), ge = sn(() => he.value), _e = S(() => d ? pe(d.content.value, n.block.id, f) : null), B = Br({
2084
+ ...pe(ce(e.width, e.height))
2085
+ }), e.alt && (I("alt", e.alt), C.value = !0), x.value = !0, w();
2086
+ }
2087
+ let oe = T(), le = S(() => P(n.block.src, c)), { canBrowse: ue, isUploading: he, showOverlay: ge, openMediaBrowser: _e } = be({
2088
+ target: oe,
2089
+ blocked: le,
2090
+ apply: ae
2091
+ }), ve = se(() => le.value || !n.block.src || fe(n.block) ? void 0 : n.block.src), ye = cn(() => ve.value), xe = S(() => d ? me(d.content.value, n.block.id, f) : null), z = Br({
2061
2092
  block: () => n.block,
2062
- room: () => _e.value,
2063
- measured: () => ge.value
2064
- }), { available: ye, locked: V, derivedHeight: be, cappedHeight: xe } = B;
2065
- function Se() {
2066
- let e = B.setLocked(!V.value);
2093
+ room: () => xe.value,
2094
+ measured: () => ye.value
2095
+ }), { available: Se, locked: Ce, derivedHeight: we, cappedHeight: B } = z;
2096
+ function Te() {
2097
+ let e = z.setLocked(!Ce.value);
2067
2098
  e && r("update", e);
2068
2099
  }
2069
- let H = T(null);
2070
- function Ce(e) {
2071
- H.value = e;
2072
- let t = B.heightUpdates(Number(e));
2100
+ let Ee = T(null);
2101
+ function De(e) {
2102
+ Ee.value = e;
2103
+ let t = z.heightUpdates(Number(e));
2073
2104
  t && r("update", t);
2074
2105
  }
2075
2106
  return (t, n) => (i(), p(E, null, [
2076
- O(J, {
2107
+ O(K, {
2077
2108
  label: h(o).image.imageUrl,
2078
2109
  class: "tpl:mb-3.5",
2079
2110
  path: "src"
2080
2111
  }, {
2081
2112
  default: a(() => [y("div", {
2082
2113
  ref_key: "dropZoneRef",
2083
- ref: re,
2114
+ ref: oe,
2084
2115
  class: "tpl:relative"
2085
2116
  }, [
2086
- h(le) ? (i(), v(ue, {
2117
+ h(ge) ? (i(), v(de, {
2087
2118
  key: 0,
2088
- uploading: h(ce)
2119
+ uploading: h(he)
2089
2120
  }, null, 8, ["uploading"])) : _("", !0),
2090
- O(Z, {
2121
+ O(Y, {
2091
2122
  "model-value": e.block.src,
2092
2123
  type: "url",
2093
2124
  placeholder: h(o).image.imageUrlPlaceholder,
2094
2125
  pulse: x.value,
2095
- "onUpdate:modelValue": n[0] ||= (e) => z(e)
2126
+ "onUpdate:modelValue": n[0] ||= (e) => ie(e)
2096
2127
  }, null, 8, [
2097
2128
  "model-value",
2098
2129
  "placeholder",
2099
2130
  "pulse"
2100
2131
  ]),
2101
- h(ae) ? (i(), p("button", {
2132
+ h(ue) ? (i(), p("button", {
2102
2133
  key: 1,
2103
2134
  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",
2104
2135
  style: {
@@ -2106,15 +2137,15 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
2106
2137
  color: "var(--tpl-primary)",
2107
2138
  "background-color": "var(--tpl-bg)"
2108
2139
  },
2109
- onClick: n[1] ||= (...e) => h(me) && h(me)(...e)
2110
- }, [O(h(Oe), {
2140
+ onClick: n[1] ||= (...e) => h(_e) && h(_e)(...e)
2141
+ }, [O(h(Ae), {
2111
2142
  size: 14,
2112
2143
  "stroke-width": 1.5
2113
2144
  }), m(" " + b(h(o).image.browseMedia), 1)])) : _("", !0)
2114
2145
  ], 512)]),
2115
2146
  _: 1
2116
2147
  }, 8, ["label"]),
2117
- h(te)(e.block.src, h(c)) ? (i(), v(J, {
2148
+ h(P)(e.block.src, h(c)) ? (i(), v(K, {
2118
2149
  key: 0,
2119
2150
  class: "tpl:mb-3.5",
2120
2151
  path: "placeholderUrl"
@@ -2122,43 +2153,43 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
2122
2153
  label: a(() => [m(b(h(o).image.placeholderUrl) + " ", 1), y("span", Vr, b(h(o).image.optional), 1)]),
2123
2154
  default: a(() => [y("input", {
2124
2155
  type: "url",
2125
- class: g(h(K)),
2156
+ class: g(h(W)),
2126
2157
  value: e.block.placeholderUrl || "",
2127
2158
  placeholder: h(o).image.placeholderUrlPlaceholder,
2128
2159
  title: h(o).image.placeholderUrlTooltip,
2129
- onInput: n[2] ||= (e) => N("placeholderUrl", e.target.value)
2160
+ onInput: n[2] ||= (e) => I("placeholderUrl", e.target.value)
2130
2161
  }, null, 42, Hr)]),
2131
2162
  _: 1
2132
2163
  })) : _("", !0),
2133
- O(J, {
2164
+ O(K, {
2134
2165
  label: h(o).image.altText,
2135
2166
  class: "tpl:mb-3.5",
2136
2167
  path: "alt"
2137
2168
  }, {
2138
- default: a(() => [O(Z, {
2169
+ default: a(() => [O(Y, {
2139
2170
  "model-value": e.block.alt,
2140
2171
  type: "text",
2141
2172
  placeholder: h(o).image.altTextPlaceholder,
2142
2173
  pulse: C.value,
2143
2174
  disabled: e.block.decorative === !0,
2144
- "onUpdate:modelValue": n[3] ||= (e) => N("alt", e)
2175
+ "onUpdate:modelValue": n[3] ||= (e) => I("alt", e)
2145
2176
  }, null, 8, [
2146
2177
  "model-value",
2147
2178
  "placeholder",
2148
2179
  "pulse",
2149
2180
  "disabled"
2150
- ]), O(J, {
2181
+ ]), O(K, {
2151
2182
  path: "decorative",
2152
2183
  label: h(o).image.decorative
2153
2184
  }, {
2154
2185
  label: a(() => [y("span", null, [m(b(h(o).image.decorative) + " ", 1), y("span", Ur, b(h(o).image.decorativeHint), 1)])]),
2155
- "label-actions": a(({ controlId: t }) => [O(X, {
2186
+ "label-actions": a(({ controlId: t }) => [O(J, {
2156
2187
  "control-id": t,
2157
2188
  "hide-label": "",
2158
2189
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
2159
2190
  "model-value": e.block.decorative === !0,
2160
2191
  label: h(o).image.decorative,
2161
- "onUpdate:modelValue": n[4] ||= (e) => N("decorative", e)
2192
+ "onUpdate:modelValue": n[4] ||= (e) => I("decorative", e)
2162
2193
  }, null, 8, [
2163
2194
  "control-id",
2164
2195
  "model-value",
@@ -2168,72 +2199,89 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
2168
2199
  }, 8, ["label"])]),
2169
2200
  _: 1
2170
2201
  }, 8, ["label"]),
2171
- O(J, {
2202
+ O(K, {
2172
2203
  label: h(o).image.width,
2173
2204
  class: "tpl:mb-3.5",
2174
2205
  path: "width"
2175
2206
  }, {
2176
2207
  default: a(() => [y("select", {
2177
- class: g(h(K)),
2208
+ class: g(h(W)),
2178
2209
  "data-testid": "image-width-mode",
2179
- value: A.value,
2180
- onChange: n[5] ||= (e) => P(e.target.value)
2210
+ value: j.value,
2211
+ onChange: n[5] ||= (e) => ee(e.target.value)
2181
2212
  }, [
2182
2213
  y("option", Gr, b(h(o).image.fullWidth), 1),
2183
- n[15] ||= y("option", { value: "300" }, "300px", -1),
2184
- n[16] ||= y("option", { value: "400" }, "400px", -1),
2185
- n[17] ||= y("option", { value: "500" }, "500px", -1),
2214
+ n[16] ||= y("option", { value: "300" }, "300px", -1),
2215
+ n[17] ||= y("option", { value: "400" }, "400px", -1),
2216
+ n[18] ||= y("option", { value: "500" }, "500px", -1),
2186
2217
  y("option", Kr, b(h(o).image.widthCustom), 1)
2187
- ], 42, Wr), A.value === "custom" ? (i(), p("div", qr, [y("input", {
2218
+ ], 42, Wr), j.value === "custom" ? (i(), p("div", qr, [y("input", {
2188
2219
  type: "number",
2189
2220
  "data-testid": "image-width-input",
2190
- class: g(h(G)),
2191
- value: typeof e.block.width == "number" ? e.block.width : ri,
2221
+ class: g(h(U)),
2222
+ value: typeof e.block.width == "number" ? e.block.width : si,
2192
2223
  min: "20",
2193
- onInput: n[6] ||= (e) => ee(e.target.value)
2194
- }, null, 42, Jr), y("span", { class: g(h(W)) }, "px", 2)])) : _("", !0)]),
2224
+ onInput: n[6] ||= (e) => re(e.target.value)
2225
+ }, null, 42, Jr), y("span", { class: g(h(H)) }, "px", 2)])) : _("", !0)]),
2226
+ _: 1
2227
+ }, 8, ["label"]),
2228
+ O(K, {
2229
+ label: h(o).image.fluidOnMobile,
2230
+ class: "tpl:mb-3.5",
2231
+ path: "fluidOnMobile"
2232
+ }, {
2233
+ default: a(() => [y("select", {
2234
+ class: g(h(W)),
2235
+ "data-testid": "image-fluid-on-mobile",
2236
+ value: F.value,
2237
+ onChange: n[7] ||= (e) => te(e.target.value)
2238
+ }, [
2239
+ y("option", Xr, b(h(o).image.fluidOnMobileAuto), 1),
2240
+ y("option", Zr, b(h(o).image.fluidOnMobileAlways), 1),
2241
+ y("option", Qr, b(h(o).image.fluidOnMobileNever), 1)
2242
+ ], 42, Yr)]),
2195
2243
  _: 1
2196
2244
  }, 8, ["label"]),
2197
- O(J, {
2245
+ O(K, {
2198
2246
  class: "tpl:mb-3.5",
2199
2247
  path: "height",
2200
2248
  label: h(o).image.height
2201
2249
  }, D({
2202
2250
  default: a(() => [
2203
- h(V) ? (i(), p(E, { key: 0 }, [y("div", Yr, [y("input", {
2251
+ h(Ce) ? (i(), p(E, { key: 0 }, [y("div", $r, [y("input", {
2204
2252
  type: "number",
2205
2253
  "data-testid": "image-locked-height-input",
2206
- class: g(h(G)),
2207
- value: H.value ?? h(be) ?? "",
2254
+ class: g(h(U)),
2255
+ value: Ee.value ?? h(we) ?? "",
2208
2256
  min: "1",
2209
- onInput: n[7] ||= (e) => Ce(e.target.value),
2210
- onBlur: n[8] ||= (e) => H.value = null
2211
- }, null, 42, Xr), y("span", { class: g(h(W)) }, "px", 2)]), h(xe) === null ? _("", !0) : (i(), p("p", Zr, b(h(s)(h(o).image.heightCapped, { height: h(xe) })), 1))], 64)) : _("", !0),
2212
- h(V) ? _("", !0) : (i(), p("select", {
2257
+ onInput: n[8] ||= (e) => De(e.target.value),
2258
+ onBlur: n[9] ||= (e) => Ee.value = null
2259
+ }, null, 42, ei), y("span", { class: g(h(H)) }, "px", 2)]), h(B) === null ? _("", !0) : (i(), p("p", ti, b(h(s)(h(o).image.heightCapped, { height: h(B) })), 1))], 64)) : _("", !0),
2260
+ h(Ce) ? _("", !0) : (i(), p("select", {
2213
2261
  key: 1,
2214
- class: g(h(K)),
2262
+ class: g(h(W)),
2215
2263
  "data-testid": "image-height-mode",
2216
2264
  value: M.value,
2217
- onChange: n[9] ||= (e) => F(e.target.value)
2218
- }, [y("option", $r, b(h(o).image.heightAuto), 1), y("option", ei, b(h(o).image.heightCustom), 1)], 42, Qr)),
2219
- !h(V) && M.value === "custom" ? (i(), p("div", ti, [y("input", {
2265
+ onChange: n[10] ||= (e) => L(e.target.value)
2266
+ }, [y("option", ri, b(h(o).image.heightAuto), 1), y("option", ii, b(h(o).image.heightCustom), 1)], 42, ni)),
2267
+ !h(Ce) && M.value === "custom" ? (i(), p("div", ai, [y("input", {
2220
2268
  type: "number",
2221
2269
  "data-testid": "image-height-input",
2222
- class: g(h(G)),
2270
+ class: g(h(U)),
2223
2271
  value: e.block.height,
2224
2272
  min: "20",
2225
- onInput: n[10] ||= (e) => I(e.target.value)
2226
- }, null, 42, ni), y("span", { class: g(h(W)) }, "px", 2)])) : _("", !0)
2273
+ onInput: n[11] ||= (e) => R(e.target.value)
2274
+ }, null, 42, oi), y("span", { class: g(h(H)) }, "px", 2)])) : _("", !0)
2227
2275
  ]),
2228
2276
  _: 2
2229
- }, [h(ye) ? {
2277
+ }, [h(Se) ? {
2230
2278
  name: "label-actions",
2231
- fn: a(() => [O(vt, {
2232
- linked: h(V),
2279
+ fn: a(() => [O(yt, {
2280
+ linked: h(Ce),
2233
2281
  "link-label": h(o).image.lockAspectRatio,
2234
2282
  "unlink-label": h(o).image.unlockAspectRatio,
2235
2283
  testid: "image-aspect-lock",
2236
- onToggle: Se
2284
+ onToggle: Te
2237
2285
  }, null, 8, [
2238
2286
  "linked",
2239
2287
  "link-label",
@@ -2241,25 +2289,25 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
2241
2289
  ])]),
2242
2290
  key: "0"
2243
2291
  } : void 0]), 1032, ["label"]),
2244
- O(Tt, {
2292
+ O(Et, {
2245
2293
  path: "borderRadius",
2246
2294
  "model-value": e.block.borderRadius,
2247
2295
  label: h(o).image.borderRadius,
2248
2296
  "testid-prefix": "image",
2249
- "onUpdate:modelValue": L
2297
+ "onUpdate:modelValue": ne
2250
2298
  }, null, 8, ["model-value", "label"]),
2251
- O(St, {
2299
+ O(Ct, {
2252
2300
  path: "border",
2253
2301
  "model-value": e.block.border,
2254
2302
  "testid-prefix": "image",
2255
- "onUpdate:modelValue": n[11] ||= (e) => N("border", e)
2303
+ "onUpdate:modelValue": n[12] ||= (e) => I("border", e)
2256
2304
  }, null, 8, ["model-value"]),
2257
- O(J, {
2305
+ O(K, {
2258
2306
  label: h(o).title.align,
2259
2307
  class: "tpl:mb-3.5",
2260
2308
  path: "align"
2261
2309
  }, {
2262
- default: a(() => [O(Q, {
2310
+ default: a(() => [O(X, {
2263
2311
  options: [
2264
2312
  {
2265
2313
  value: "left",
@@ -2275,32 +2323,32 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
2275
2323
  }
2276
2324
  ],
2277
2325
  "model-value": e.block.align,
2278
- "onUpdate:modelValue": n[12] ||= (e) => N("align", e)
2326
+ "onUpdate:modelValue": n[13] ||= (e) => I("align", e)
2279
2327
  }, null, 8, ["options", "model-value"])]),
2280
2328
  _: 1
2281
2329
  }, 8, ["label"]),
2282
- O(J, {
2330
+ O(K, {
2283
2331
  label: h(o).image.linkUrl,
2284
2332
  class: "tpl:mb-3.5",
2285
2333
  path: "linkUrl"
2286
2334
  }, {
2287
- default: a(() => [O(Z, {
2335
+ default: a(() => [O(Y, {
2288
2336
  "model-value": e.block.linkUrl || "",
2289
2337
  type: "url",
2290
2338
  placeholder: h(o).image.imageUrlPlaceholder,
2291
- "onUpdate:modelValue": n[13] ||= (e) => N("linkUrl", e)
2292
- }, null, 8, ["model-value", "placeholder"]), e.block.linkUrl ? (i(), v(J, {
2339
+ "onUpdate:modelValue": n[14] ||= (e) => I("linkUrl", e)
2340
+ }, null, 8, ["model-value", "placeholder"]), e.block.linkUrl ? (i(), v(K, {
2293
2341
  key: 0,
2294
2342
  path: "linkOpenInNewTab",
2295
2343
  label: h(o).image.openInNewTab
2296
2344
  }, {
2297
- "label-actions": a(({ controlId: t }) => [O(X, {
2345
+ "label-actions": a(({ controlId: t }) => [O(J, {
2298
2346
  "control-id": t,
2299
2347
  "hide-label": "",
2300
2348
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
2301
2349
  "model-value": e.block.linkOpenInNewTab ?? !1,
2302
2350
  label: h(o).image.openInNewTab,
2303
- "onUpdate:modelValue": n[14] ||= (e) => N("linkOpenInNewTab", e)
2351
+ "onUpdate:modelValue": n[15] ||= (e) => I("linkOpenInNewTab", e)
2304
2352
  }, null, 8, [
2305
2353
  "control-id",
2306
2354
  "model-value",
@@ -2312,11 +2360,11 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
2312
2360
  }, 8, ["label"])
2313
2361
  ], 64));
2314
2362
  }
2315
- }), oi = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, si = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ci = [
2363
+ }), ui = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, di = { class: "tpl:flex tpl:items-center tpl:gap-2" }, fi = [
2316
2364
  "value",
2317
2365
  "placeholder",
2318
2366
  "onInput"
2319
- ], li = ["title", "onClick"], ui = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, di = { class: "tpl:flex tpl:items-center tpl:gap-2" }, fi = ["value"], pi = { value: "" }, mi = ["value"], hi = ["value"], gi = /* @__PURE__ */ r({
2367
+ ], pi = ["title", "onClick"], mi = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, hi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, gi = ["value"], _i = { value: "" }, vi = ["value"], yi = ["value"], bi = /* @__PURE__ */ r({
2320
2368
  __name: "MenuToolbar",
2321
2369
  props: {
2322
2370
  block: {},
@@ -2324,7 +2372,7 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
2324
2372
  },
2325
2373
  emits: ["update"],
2326
2374
  setup(e, { emit: t }) {
2327
- let n = e, r = t, { t: o } = U(), s = S(() => [
2375
+ let n = e, r = t, { t: o } = V(), s = S(() => [
2328
2376
  {
2329
2377
  key: "openInNewTab",
2330
2378
  label: o.menu.openInNewTab
@@ -2341,17 +2389,17 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
2341
2389
  {
2342
2390
  value: "left",
2343
2391
  label: o.title.alignLeft,
2344
- icon: Ne
2392
+ icon: Fe
2345
2393
  },
2346
2394
  {
2347
2395
  value: "center",
2348
2396
  label: o.title.alignCenter,
2349
- icon: De
2397
+ icon: ke
2350
2398
  },
2351
2399
  {
2352
2400
  value: "right",
2353
2401
  label: o.title.alignRight,
2354
- icon: Re
2402
+ icon: Be
2355
2403
  }
2356
2404
  ]);
2357
2405
  function u(e, t) {
@@ -2359,7 +2407,7 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
2359
2407
  }
2360
2408
  function d() {
2361
2409
  let e = {
2362
- id: A(),
2410
+ id: j(),
2363
2411
  text: "",
2364
2412
  url: "",
2365
2413
  openInNewTab: !1,
@@ -2379,36 +2427,36 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
2379
2427
  r("update", { items: n.block.items.filter((t) => t.id !== e) });
2380
2428
  }
2381
2429
  return (t, n) => (i(), p(E, null, [
2382
- O(J, { label: h(o).menu.items }, {
2383
- default: a(() => [y("div", oi, [(i(!0), p(E, null, c(e.block.items, (t) => (i(), p("div", {
2430
+ O(K, { label: h(o).menu.items }, {
2431
+ default: a(() => [y("div", ui, [(i(!0), p(E, null, c(e.block.items, (t) => (i(), p("div", {
2384
2432
  key: t.id,
2385
2433
  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"
2386
2434
  }, [
2387
- y("div", si, [O(J, {
2435
+ y("div", di, [O(K, {
2388
2436
  path: t.id.includes(".") ? void 0 : `items.${t.id}.text`,
2389
2437
  label: h(o).menu.text
2390
2438
  }, {
2391
2439
  default: a(() => [y("input", {
2392
2440
  type: "text",
2393
- class: g([h(K), "tpl:flex-1"]),
2441
+ class: g([h(W), "tpl:flex-1"]),
2394
2442
  value: t.text,
2395
2443
  placeholder: h(o).menu.text,
2396
2444
  onInput: (e) => f(t.id, "text", e.target.value)
2397
- }, null, 42, ci)]),
2445
+ }, null, 42, fi)]),
2398
2446
  _: 2
2399
2447
  }, 1032, ["path", "label"]), y("button", {
2400
- class: g(h(et)),
2448
+ class: g(h(nt)),
2401
2449
  title: h(o).menu.removeItem,
2402
2450
  onClick: (e) => _(t.id)
2403
- }, [O(h(Le), {
2451
+ }, [O(h(ze), {
2404
2452
  size: 14,
2405
2453
  "stroke-width": 2
2406
- })], 10, li)]),
2407
- O(J, {
2454
+ })], 10, pi)]),
2455
+ O(K, {
2408
2456
  path: t.id.includes(".") ? void 0 : `items.${t.id}.url`,
2409
2457
  label: h(o).button.url
2410
2458
  }, {
2411
- default: a(() => [O(Z, {
2459
+ default: a(() => [O(Y, {
2412
2460
  "model-value": t.url,
2413
2461
  type: "url",
2414
2462
  placeholder: h(o).menu.urlPlaceholder,
@@ -2420,12 +2468,12 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
2420
2468
  ])]),
2421
2469
  _: 2
2422
2470
  }, 1032, ["path", "label"]),
2423
- y("div", ui, [(i(!0), p(E, null, c(s.value, (e) => (i(), v(J, {
2471
+ y("div", mi, [(i(!0), p(E, null, c(s.value, (e) => (i(), v(K, {
2424
2472
  key: e.key,
2425
2473
  path: t.id.includes(".") ? void 0 : `items.${t.id}.${e.key}`,
2426
2474
  label: e.label
2427
2475
  }, {
2428
- "label-actions": a(({ controlId: n }) => [O(X, {
2476
+ "label-actions": a(({ controlId: n }) => [O(J, {
2429
2477
  "control-id": n,
2430
2478
  "hide-label": "",
2431
2479
  "model-value": t[e.key],
@@ -2439,11 +2487,11 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
2439
2487
  ])]),
2440
2488
  _: 2
2441
2489
  }, 1032, ["path", "label"]))), 128))]),
2442
- y("div", di, [O(J, {
2490
+ y("div", hi, [O(K, {
2443
2491
  path: t.id.includes(".") ? void 0 : `items.${t.id}.color`,
2444
2492
  label: h(o).menu.color
2445
2493
  }, {
2446
- default: a(() => [O(Y, {
2494
+ default: a(() => [O(q, {
2447
2495
  "swatch-only": "",
2448
2496
  "model-value": t.color || e.block.linkColor || e.block.color || "",
2449
2497
  "onUpdate:modelValue": (e) => f(t.id, "color", e)
@@ -2451,33 +2499,33 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
2451
2499
  _: 2
2452
2500
  }, 1032, ["path", "label"])])
2453
2501
  ]))), 128)), y("button", {
2454
- class: g(h(nt)),
2502
+ class: g(h(it)),
2455
2503
  onClick: d
2456
- }, [O(h(H), {
2504
+ }, [O(h(B), {
2457
2505
  size: 14,
2458
2506
  "stroke-width": 2
2459
2507
  }), m(" " + b(h(o).menu.addItem), 1)], 2)])]),
2460
2508
  _: 1
2461
2509
  }, 8, ["label"]),
2462
- O(J, {
2510
+ O(K, {
2463
2511
  path: "fontFamily",
2464
2512
  label: h(o).menu.fontFamily
2465
2513
  }, {
2466
2514
  default: a(() => [y("select", {
2467
- class: g(h(K)),
2468
- value: h(dt)(e.block.fontFamily),
2515
+ class: g(h(W)),
2516
+ value: h(pt)(e.block.fontFamily),
2469
2517
  onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
2470
- }, [y("option", pi, b(h(o).title.inheritFont), 1), (i(!0), p(E, null, c(e.fontFamilies, (e) => (i(), p("option", {
2518
+ }, [y("option", _i, b(h(o).title.inheritFont), 1), (i(!0), p(E, null, c(e.fontFamilies, (e) => (i(), p("option", {
2471
2519
  key: e.value,
2472
2520
  value: e.value
2473
- }, b(e.label), 9, mi))), 128))], 42, fi)]),
2521
+ }, b(e.label), 9, vi))), 128))], 42, gi)]),
2474
2522
  _: 1
2475
2523
  }, 8, ["label"]),
2476
- O(J, {
2524
+ O(K, {
2477
2525
  path: "fontSize",
2478
2526
  label: h(o).menu.fontSize
2479
2527
  }, {
2480
- default: a(() => [O(gt, {
2528
+ default: a(() => [O(Z, {
2481
2529
  "model-value": e.block.fontSize,
2482
2530
  min: 8,
2483
2531
  max: 48,
@@ -2486,64 +2534,64 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
2486
2534
  }, null, 8, ["model-value"])]),
2487
2535
  _: 1
2488
2536
  }, 8, ["label"]),
2489
- O(J, {
2537
+ O(K, {
2490
2538
  path: "color",
2491
2539
  label: h(o).menu.color
2492
2540
  }, {
2493
- default: a(() => [O(Y, {
2541
+ default: a(() => [O(q, {
2494
2542
  "model-value": e.block.color ?? "",
2495
2543
  "onUpdate:modelValue": n[2] ||= (e) => u("color", e || void 0)
2496
2544
  }, null, 8, ["model-value"])]),
2497
2545
  _: 1
2498
2546
  }, 8, ["label"]),
2499
- O(J, {
2547
+ O(K, {
2500
2548
  path: "linkColor",
2501
2549
  label: h(o).menu.linkColor
2502
2550
  }, {
2503
- default: a(() => [O(Y, {
2551
+ default: a(() => [O(q, {
2504
2552
  "model-value": e.block.linkColor || e.block.color || "",
2505
2553
  "onUpdate:modelValue": n[3] ||= (e) => u("linkColor", e || void 0)
2506
2554
  }, null, 8, ["model-value"])]),
2507
2555
  _: 1
2508
2556
  }, 8, ["label"]),
2509
- O(J, {
2557
+ O(K, {
2510
2558
  path: "textAlign",
2511
2559
  label: h(o).menu.textAlign
2512
2560
  }, {
2513
- default: a(() => [O(Q, {
2561
+ default: a(() => [O(X, {
2514
2562
  options: l.value,
2515
2563
  "model-value": e.block.textAlign,
2516
2564
  "onUpdate:modelValue": n[4] ||= (e) => u("textAlign", e)
2517
2565
  }, null, 8, ["options", "model-value"])]),
2518
2566
  _: 1
2519
2567
  }, 8, ["label"]),
2520
- O(J, {
2568
+ O(K, {
2521
2569
  path: "separator",
2522
2570
  label: h(o).menu.separator
2523
2571
  }, {
2524
2572
  default: a(() => [y("input", {
2525
2573
  type: "text",
2526
- class: g(h(K)),
2574
+ class: g(h(W)),
2527
2575
  value: e.block.separator,
2528
2576
  onInput: n[5] ||= (e) => u("separator", e.target.value)
2529
- }, null, 42, hi)]),
2577
+ }, null, 42, yi)]),
2530
2578
  _: 1
2531
2579
  }, 8, ["label"]),
2532
- O(J, {
2580
+ O(K, {
2533
2581
  path: "separatorColor",
2534
2582
  label: h(o).menu.separatorColor
2535
2583
  }, {
2536
- default: a(() => [O(Y, {
2584
+ default: a(() => [O(q, {
2537
2585
  "model-value": e.block.separatorColor,
2538
2586
  "onUpdate:modelValue": n[6] ||= (e) => u("separatorColor", e)
2539
2587
  }, null, 8, ["model-value"])]),
2540
2588
  _: 1
2541
2589
  }, 8, ["label"]),
2542
- O(J, {
2590
+ O(K, {
2543
2591
  path: "spacing",
2544
2592
  label: h(o).menu.spacing
2545
2593
  }, {
2546
- default: a(() => [O(gt, {
2594
+ default: a(() => [O(Z, {
2547
2595
  "model-value": e.block.spacing,
2548
2596
  min: 0,
2549
2597
  max: 50,
@@ -2554,33 +2602,33 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
2554
2602
  }, 8, ["label"])
2555
2603
  ], 64));
2556
2604
  }
2557
- }), _i = { class: "tpl:flex tpl:items-stretch" }, vi = ["value"], yi = /* @__PURE__ */ r({
2605
+ }), xi = { class: "tpl:flex tpl:items-stretch" }, Si = ["value"], Ci = /* @__PURE__ */ r({
2558
2606
  __name: "ParagraphToolbar",
2559
2607
  props: { block: {} },
2560
2608
  emits: ["update"],
2561
2609
  setup(e, { emit: t }) {
2562
- let n = t, { t: r } = U();
2563
- return (t, o) => (i(), v(J, {
2610
+ let n = t, { t: r } = V();
2611
+ return (t, o) => (i(), v(K, {
2564
2612
  label: h(r).paragraph.paragraphSpacing,
2565
2613
  class: "tpl:mb-3.5",
2566
2614
  "data-testid": "paragraph-spacing",
2567
2615
  path: "paragraphSpacing"
2568
2616
  }, {
2569
- default: a(() => [y("div", _i, [y("input", {
2617
+ default: a(() => [y("div", xi, [y("input", {
2570
2618
  type: "number",
2571
- class: g(h(G)),
2572
- value: e.block.paragraphSpacing ?? h(N).paragraphGap,
2619
+ class: g(h(U)),
2620
+ value: e.block.paragraphSpacing ?? h(ae).paragraphGap,
2573
2621
  min: "0",
2574
2622
  max: "64",
2575
2623
  onInput: o[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
2576
- }, null, 42, vi), y("span", { class: g(h(W)) }, "px", 2)])]),
2624
+ }, null, 42, Si), y("span", { class: g(h(H)) }, "px", 2)])]),
2577
2625
  _: 1
2578
2626
  }, 8, ["label"]));
2579
2627
  }
2580
2628
  });
2581
2629
  // src/utils/rebalanceColumnChildren.ts
2582
- function bi(e, t) {
2583
- let n = k(t);
2630
+ function wi(e, t) {
2631
+ let n = M(t);
2584
2632
  if (e.length === n) return e;
2585
2633
  if (e.length < n) {
2586
2634
  let t = Array.from({ length: n - e.length }, () => []);
@@ -2590,21 +2638,21 @@ function bi(e, t) {
2590
2638
  return [...r.slice(0, n - 1), a];
2591
2639
  }
2592
2640
  // src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
2593
- var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
2641
+ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
2594
2642
  key: 2,
2595
2643
  class: "tpl:mb-3.5"
2596
- }, Ti = {
2644
+ }, ki = {
2597
2645
  key: 0,
2598
2646
  class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
2599
- }, Ei = {
2647
+ }, Ai = {
2600
2648
  key: 1,
2601
2649
  class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
2602
- }, Di = /* @__PURE__ */ r({
2650
+ }, ji = /* @__PURE__ */ r({
2603
2651
  __name: "SectionToolbar",
2604
2652
  props: { block: {} },
2605
2653
  emits: ["update"],
2606
2654
  setup(e, { emit: t }) {
2607
- let n = e, r = t, { t: o } = U(), s = l(He, void 0), u = l(We, void 0), d = s !== void 0 && F(s), f = S(() => u !== !1 || !!n.block.wrapper), m = S(() => d && !n.block.wrapper), x = S(() => d && f.value), C = S(() => ne(n.block)?.applied === !0), w = S(() => [
2655
+ let n = e, r = t, { t: o } = V(), s = l(We, void 0), u = l(Ke, void 0), d = s !== void 0 && te(s), f = S(() => u !== !1 || !!n.block.wrapper), m = S(() => d && !n.block.wrapper), x = S(() => d && f.value), C = S(() => re(n.block)?.applied === !0), w = S(() => [
2608
2656
  {
2609
2657
  value: "1",
2610
2658
  label: o.section.column1
@@ -2627,7 +2675,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
2627
2675
  }
2628
2676
  ]);
2629
2677
  function T(e) {
2630
- let t = e.target.value, i = bi(n.block.children, t);
2678
+ let t = e.target.value, i = wi(n.block.children, t);
2631
2679
  r("update", {
2632
2680
  columns: t,
2633
2681
  children: i
@@ -2660,21 +2708,21 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
2660
2708
  j({ borderRadius: e });
2661
2709
  }
2662
2710
  return (t, n) => (i(), p(E, null, [
2663
- y("div", xi, [y("label", { class: g(h(q)) }, b(h(o).section.columns), 3), y("select", {
2664
- class: g(h(K)),
2711
+ y("div", Ti, [y("label", { class: g(h(G)) }, b(h(o).section.columns), 3), y("select", {
2712
+ class: g(h(W)),
2665
2713
  value: e.block.columns,
2666
2714
  onChange: T
2667
2715
  }, [(i(!0), p(E, null, c(w.value, (e) => (i(), p("option", {
2668
2716
  key: e.value,
2669
2717
  value: e.value
2670
- }, b(e.label), 9, Ci))), 128))], 42, Si)]),
2671
- e.block.columns === "1" ? _("", !0) : (i(), v(J, {
2718
+ }, b(e.label), 9, Di))), 128))], 42, Ei)]),
2719
+ e.block.columns === "1" ? _("", !0) : (i(), v(K, {
2672
2720
  key: 0,
2673
2721
  class: "tpl:mb-3.5",
2674
2722
  path: "stackOnMobile",
2675
2723
  label: h(o).section.stackOnMobile
2676
2724
  }, {
2677
- "label-actions": a(({ controlId: t }) => [O(X, {
2725
+ "label-actions": a(({ controlId: t }) => [O(J, {
2678
2726
  "control-id": t,
2679
2727
  "hide-label": "",
2680
2728
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
@@ -2688,7 +2736,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
2688
2736
  ])]),
2689
2737
  _: 1
2690
2738
  }, 8, ["label"])),
2691
- O(Tt, {
2739
+ O(Et, {
2692
2740
  path: "borderRadius",
2693
2741
  "model-value": e.block.borderRadius,
2694
2742
  label: h(o).section.borderRadius,
@@ -2696,19 +2744,19 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
2696
2744
  "testid-prefix": "section",
2697
2745
  "onUpdate:modelValue": k
2698
2746
  }, null, 8, ["model-value", "label"]),
2699
- C.value ? _("", !0) : (i(), v(St, {
2747
+ C.value ? _("", !0) : (i(), v(Ct, {
2700
2748
  key: 1,
2701
2749
  path: "border",
2702
2750
  "model-value": e.block.border,
2703
2751
  "testid-prefix": "section",
2704
2752
  "onUpdate:modelValue": n[1] ||= (e) => r("update", { border: e })
2705
2753
  }, null, 8, ["model-value"])),
2706
- f.value ? (i(), p("div", wi, [
2707
- O(J, {
2754
+ f.value ? (i(), p("div", Oi, [
2755
+ O(K, {
2708
2756
  path: "wrapper",
2709
2757
  label: h(o).section.wrapperEnable
2710
2758
  }, {
2711
- "label-actions": a(({ controlId: t }) => [O(X, {
2759
+ "label-actions": a(({ controlId: t }) => [O(J, {
2712
2760
  "control-id": t,
2713
2761
  "hide-label": "",
2714
2762
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
@@ -2724,24 +2772,24 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
2724
2772
  ])]),
2725
2773
  _: 1
2726
2774
  }, 8, ["label"]),
2727
- x.value ? (i(), p("p", Ti, b(h(o).section.wrapperLayoutConflict), 1)) : _("", !0),
2728
- e.block.wrapper ? (i(), p("div", Ei, [
2729
- y("div", null, [O(J, {
2775
+ x.value ? (i(), p("p", ki, b(h(o).section.wrapperLayoutConflict), 1)) : _("", !0),
2776
+ e.block.wrapper ? (i(), p("div", Ai, [
2777
+ y("div", null, [O(K, {
2730
2778
  path: "wrapper.backgroundColor",
2731
2779
  label: h(o).blockSettings.color
2732
2780
  }, {
2733
- default: a(() => [O(Y, {
2781
+ default: a(() => [O(q, {
2734
2782
  "model-value": e.block.wrapper.backgroundColor ?? "",
2735
2783
  "allow-transparent": "",
2736
2784
  "onUpdate:modelValue": n[3] ||= (e) => j({ backgroundColor: e })
2737
2785
  }, null, 8, ["model-value"])]),
2738
2786
  _: 1
2739
2787
  }, 8, ["label"])]),
2740
- O(J, {
2788
+ O(K, {
2741
2789
  path: "wrapper.backgroundImage",
2742
2790
  label: h(o).blockSettings.backgroundImage
2743
2791
  }, {
2744
- default: a(() => [O(_n, {
2792
+ default: a(() => [O(vn, {
2745
2793
  "hide-label": "",
2746
2794
  "model-value": e.block.wrapper.backgroundImage,
2747
2795
  "testid-prefix": "section-wrapper",
@@ -2749,7 +2797,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
2749
2797
  }, null, 8, ["model-value"])]),
2750
2798
  _: 1
2751
2799
  }, 8, ["label"]),
2752
- O(on, {
2800
+ O(sn, {
2753
2801
  path: "wrapper.padding",
2754
2802
  label: h(o).blockSettings.padding,
2755
2803
  "model-value": e.block.wrapper.padding ?? {
@@ -2760,7 +2808,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
2760
2808
  },
2761
2809
  "onUpdate:modelValue": M
2762
2810
  }, null, 8, ["label", "model-value"]),
2763
- O(Tt, {
2811
+ O(Et, {
2764
2812
  path: "wrapper.borderRadius",
2765
2813
  "model-value": e.block.wrapper.borderRadius,
2766
2814
  label: h(o).section.borderRadius,
@@ -2772,18 +2820,18 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
2772
2820
  ])) : _("", !0)
2773
2821
  ], 64));
2774
2822
  }
2775
- }), Oi = { class: "tpl:mb-3.5" }, ki = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ai = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ji = ["value", "onChange"], Mi = ["value"], Ni = ["title", "onClick"], Pi = ["value"], Fi = { value: "solid" }, Ii = { value: "outlined" }, Li = { value: "rounded" }, Ri = { value: "square" }, zi = { value: "circle" }, Bi = { value: "plain" }, Vi = ["value"], Hi = { value: "brand" }, Ui = { value: "dark" }, Wi = { value: "light" }, Gi = { class: "tpl:flex tpl:items-stretch" }, Ki = ["value"], qi = /* @__PURE__ */ r({
2823
+ }), Mi = { class: "tpl:mb-3.5" }, Ni = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Pi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Fi = ["value", "onChange"], Ii = ["value"], Li = ["title", "onClick"], Ri = ["value"], zi = { value: "solid" }, Bi = { value: "outlined" }, Vi = { value: "rounded" }, Hi = { value: "square" }, Ui = { value: "circle" }, Wi = { value: "plain" }, Gi = ["value"], Ki = { value: "brand" }, qi = { value: "dark" }, Ji = { value: "light" }, Yi = { class: "tpl:flex tpl:items-stretch" }, Xi = ["value"], Zi = /* @__PURE__ */ r({
2776
2824
  __name: "SocialToolbar",
2777
2825
  props: { block: {} },
2778
2826
  emits: ["update"],
2779
2827
  setup(e, { emit: t }) {
2780
- let n = e, r = t, { t: o } = U();
2828
+ let n = e, r = t, { t: o } = V();
2781
2829
  function s(e, t) {
2782
2830
  r("update", { [e]: t });
2783
2831
  }
2784
2832
  function l() {
2785
2833
  let e = {
2786
- id: A(),
2834
+ id: j(),
2787
2835
  platform: "facebook",
2788
2836
  url: ""
2789
2837
  };
@@ -2800,35 +2848,35 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
2800
2848
  r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
2801
2849
  }
2802
2850
  return (t, n) => (i(), p(E, null, [
2803
- y("div", Oi, [y("label", { class: g(h(q)) }, b(h(o).social.icons), 3), y("div", ki, [(i(!0), p(E, null, c(e.block.icons, (e) => (i(), p("div", {
2851
+ y("div", Mi, [y("label", { class: g(h(G)) }, b(h(o).social.icons), 3), y("div", Ni, [(i(!0), p(E, null, c(e.block.icons, (e) => (i(), p("div", {
2804
2852
  key: e.id,
2805
2853
  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"
2806
- }, [y("div", Ai, [O(J, {
2854
+ }, [y("div", Pi, [O(K, {
2807
2855
  path: e.id.includes(".") ? void 0 : `icons.${e.id}.platform`,
2808
2856
  label: h(o).social.icons
2809
2857
  }, {
2810
2858
  default: a(() => [y("select", {
2811
2859
  "data-testid": "social-platform-select",
2812
- class: g([h(K), "tpl:flex-1"]),
2860
+ class: g([h(W), "tpl:flex-1"]),
2813
2861
  value: e.platform,
2814
2862
  onChange: (t) => u(e.id, "platform", t.target.value)
2815
- }, [(i(!0), p(E, null, c(h(_e), (e) => (i(), p("option", {
2863
+ }, [(i(!0), p(E, null, c(h(ve), (e) => (i(), p("option", {
2816
2864
  key: e,
2817
2865
  value: e
2818
- }, b(h(o).social.platforms[e]), 9, Mi))), 128))], 42, ji)]),
2866
+ }, b(h(o).social.platforms[e]), 9, Ii))), 128))], 42, Fi)]),
2819
2867
  _: 2
2820
2868
  }, 1032, ["path", "label"]), y("button", {
2821
- class: g(h(et)),
2869
+ class: g(h(nt)),
2822
2870
  title: h(o).social.removeIcon,
2823
2871
  onClick: (t) => d(e.id)
2824
- }, [O(h(Le), {
2872
+ }, [O(h(ze), {
2825
2873
  size: 14,
2826
2874
  "stroke-width": 2
2827
- })], 10, Ni)]), O(J, {
2875
+ })], 10, Li)]), O(K, {
2828
2876
  path: e.id.includes(".") ? void 0 : `icons.${e.id}.url`,
2829
2877
  label: h(o).button.url
2830
2878
  }, {
2831
- default: a(() => [O(Z, {
2879
+ default: a(() => [O(Y, {
2832
2880
  "model-value": e.url,
2833
2881
  type: "url",
2834
2882
  placeholder: h(o).social.urlPlaceholder,
@@ -2840,54 +2888,54 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
2840
2888
  ])]),
2841
2889
  _: 2
2842
2890
  }, 1032, ["path", "label"])]))), 128)), y("button", {
2843
- class: g(h(nt)),
2891
+ class: g(h(it)),
2844
2892
  onClick: l
2845
- }, [O(h(H), {
2893
+ }, [O(h(B), {
2846
2894
  size: 14,
2847
2895
  "stroke-width": 2
2848
2896
  }), m(" " + b(h(o).social.addIcon), 1)], 2)])]),
2849
- O(J, {
2897
+ O(K, {
2850
2898
  label: h(o).social.style,
2851
2899
  class: "tpl:mb-3.5",
2852
2900
  path: "iconStyle"
2853
2901
  }, {
2854
2902
  default: a(() => [y("select", {
2855
- class: g(h(K)),
2903
+ class: g(h(W)),
2856
2904
  value: e.block.iconStyle,
2857
2905
  onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
2858
2906
  }, [
2859
- y("option", Fi, b(h(o).social.styleSolid), 1),
2860
- y("option", Ii, b(h(o).social.styleOutlined), 1),
2861
- y("option", Li, b(h(o).social.styleRounded), 1),
2862
- y("option", Ri, b(h(o).social.styleSquare), 1),
2863
- y("option", zi, b(h(o).social.styleCircle), 1),
2864
- y("option", Bi, b(h(o).social.stylePlain), 1)
2865
- ], 42, Pi)]),
2907
+ y("option", zi, b(h(o).social.styleSolid), 1),
2908
+ y("option", Bi, b(h(o).social.styleOutlined), 1),
2909
+ y("option", Vi, b(h(o).social.styleRounded), 1),
2910
+ y("option", Hi, b(h(o).social.styleSquare), 1),
2911
+ y("option", Ui, b(h(o).social.styleCircle), 1),
2912
+ y("option", Wi, b(h(o).social.stylePlain), 1)
2913
+ ], 42, Ri)]),
2866
2914
  _: 1
2867
2915
  }, 8, ["label"]),
2868
- O(J, {
2916
+ O(K, {
2869
2917
  label: h(o).social.color,
2870
2918
  class: "tpl:mb-3.5",
2871
2919
  path: "iconTone"
2872
2920
  }, {
2873
2921
  default: a(() => [y("select", {
2874
2922
  "data-testid": "social-tone-select",
2875
- class: g(h(K)),
2923
+ class: g(h(W)),
2876
2924
  value: e.block.iconTone ?? "brand",
2877
2925
  onChange: n[1] ||= (e) => s("iconTone", e.target.value)
2878
2926
  }, [
2879
- y("option", Hi, b(h(o).social.colorBrand), 1),
2880
- y("option", Ui, b(h(o).social.colorDark), 1),
2881
- y("option", Wi, b(h(o).social.colorLight), 1)
2882
- ], 42, Vi)]),
2927
+ y("option", Ki, b(h(o).social.colorBrand), 1),
2928
+ y("option", qi, b(h(o).social.colorDark), 1),
2929
+ y("option", Ji, b(h(o).social.colorLight), 1)
2930
+ ], 42, Gi)]),
2883
2931
  _: 1
2884
2932
  }, 8, ["label"]),
2885
- O(J, {
2933
+ O(K, {
2886
2934
  label: h(o).social.size,
2887
2935
  class: "tpl:mb-3.5",
2888
2936
  path: "iconSize"
2889
2937
  }, {
2890
- default: a(() => [O(Q, {
2938
+ default: a(() => [O(X, {
2891
2939
  options: [
2892
2940
  {
2893
2941
  value: "small",
@@ -2907,42 +2955,42 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
2907
2955
  }, null, 8, ["options", "model-value"])]),
2908
2956
  _: 1
2909
2957
  }, 8, ["label"]),
2910
- O(J, {
2958
+ O(K, {
2911
2959
  label: h(o).social.spacing,
2912
2960
  class: "tpl:mb-3.5",
2913
2961
  path: "spacing"
2914
2962
  }, {
2915
- default: a(() => [y("div", Gi, [y("input", {
2963
+ default: a(() => [y("div", Yi, [y("input", {
2916
2964
  type: "number",
2917
- class: g(h(G)),
2965
+ class: g(h(U)),
2918
2966
  value: e.block.spacing,
2919
2967
  min: "0",
2920
2968
  max: "50",
2921
2969
  onInput: n[3] ||= (e) => s("spacing", Number(e.target.value))
2922
- }, null, 42, Ki), y("span", { class: g(h(W)) }, "px", 2)])]),
2970
+ }, null, 42, Xi), y("span", { class: g(h(H)) }, "px", 2)])]),
2923
2971
  _: 1
2924
2972
  }, 8, ["label"]),
2925
- O(J, {
2973
+ O(K, {
2926
2974
  label: h(o).social.align,
2927
2975
  class: "tpl:mb-3.5",
2928
2976
  path: "align"
2929
2977
  }, {
2930
- default: a(() => [O(Q, {
2978
+ default: a(() => [O(X, {
2931
2979
  options: [
2932
2980
  {
2933
2981
  value: "left",
2934
2982
  label: h(o).title.alignLeft,
2935
- icon: h(Ne)
2983
+ icon: h(Fe)
2936
2984
  },
2937
2985
  {
2938
2986
  value: "center",
2939
2987
  label: h(o).title.alignCenter,
2940
- icon: h(De)
2988
+ icon: h(ke)
2941
2989
  },
2942
2990
  {
2943
2991
  value: "right",
2944
2992
  label: h(o).title.alignRight,
2945
- icon: h(Re)
2993
+ icon: h(Be)
2946
2994
  }
2947
2995
  ],
2948
2996
  "model-value": e.block.align,
@@ -2952,36 +3000,36 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
2952
3000
  }, 8, ["label"])
2953
3001
  ], 64));
2954
3002
  }
2955
- }), Ji = { class: "tpl:flex tpl:items-stretch" }, Yi = ["value"], Xi = ["value"], Zi = /* @__PURE__ */ r({
3003
+ }), Qi = { class: "tpl:flex tpl:items-stretch" }, $i = ["value"], ea = ["value"], ta = /* @__PURE__ */ r({
2956
3004
  __name: "SpacerToolbar",
2957
3005
  props: { block: {} },
2958
3006
  emits: ["update"],
2959
3007
  setup(e, { emit: t }) {
2960
- let n = t, { t: r } = U();
2961
- return (t, o) => (i(), v(J, {
3008
+ let n = t, { t: r } = V();
3009
+ return (t, o) => (i(), v(K, {
2962
3010
  label: h(r).spacer.height,
2963
3011
  class: "tpl:mb-3.5",
2964
3012
  path: "height"
2965
3013
  }, {
2966
- default: a(() => [y("div", Ji, [y("input", {
3014
+ default: a(() => [y("div", Qi, [y("input", {
2967
3015
  type: "number",
2968
- class: g(h(G)),
3016
+ class: g(h(U)),
2969
3017
  value: e.block.height,
2970
3018
  min: "10",
2971
3019
  max: "100",
2972
3020
  onInput: o[0] ||= (e) => n("update", { height: Number(e.target.value) })
2973
- }, null, 42, Yi), y("span", { class: g(h(W)) }, "px", 2)]), y("input", {
3021
+ }, null, 42, $i), y("span", { class: g(h(H)) }, "px", 2)]), y("input", {
2974
3022
  type: "range",
2975
3023
  class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
2976
3024
  value: e.block.height,
2977
3025
  min: "10",
2978
3026
  max: "100",
2979
3027
  onInput: o[1] ||= (e) => n("update", { height: Number(e.target.value) })
2980
- }, null, 40, Xi)]),
3028
+ }, null, 40, ea)]),
2981
3029
  _: 1
2982
3030
  }, 8, ["label"]));
2983
3031
  }
2984
- }), Qi = { class: "tpl:mb-3.5" }, $i = { class: "tpl:flex tpl:items-center tpl:gap-3" }, ea = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ta = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, na = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ra = ["disabled"], ia = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, aa = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, oa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, sa = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ca = ["disabled"], la = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ua = { class: "tpl:flex tpl:items-stretch" }, da = ["value"], fa = { class: "tpl:flex tpl:items-stretch" }, pa = ["value"], ma = ["value"], ha = { value: "" }, ga = ["value"], _a = { class: "tpl:flex tpl:items-stretch" }, va = ["value"], ya = /* @__PURE__ */ r({
3032
+ }), na = { class: "tpl:mb-3.5" }, ra = { class: "tpl:flex tpl:items-center tpl:gap-3" }, ia = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, aa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, oa = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, sa = ["disabled"], ca = { 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" }, ua = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, da = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, fa = ["disabled"], pa = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ma = { class: "tpl:flex tpl:items-stretch" }, ha = ["value"], ga = { class: "tpl:flex tpl:items-stretch" }, _a = ["value"], va = ["value"], ya = { value: "" }, ba = ["value"], xa = { class: "tpl:flex tpl:items-stretch" }, Sa = ["value"], Ca = /* @__PURE__ */ r({
2985
3033
  __name: "TableToolbar",
2986
3034
  props: {
2987
3035
  block: {},
@@ -2989,15 +3037,15 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
2989
3037
  },
2990
3038
  emits: ["update"],
2991
3039
  setup(e, { emit: t }) {
2992
- let n = e, r = t, { t: o } = U(), s = S(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
3040
+ let n = e, r = t, { t: o } = V(), s = S(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
2993
3041
  function l(e, t) {
2994
3042
  r("update", { [e]: t });
2995
3043
  }
2996
3044
  function u() {
2997
3045
  let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
2998
- id: A(),
3046
+ id: j(),
2999
3047
  cells: Array.from({ length: e }, () => ({
3000
- id: A(),
3048
+ id: j(),
3001
3049
  content: ""
3002
3050
  }))
3003
3051
  };
@@ -3010,7 +3058,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
3010
3058
  let e = n.block.rows.map((e) => ({
3011
3059
  ...e,
3012
3060
  cells: [...e.cells, {
3013
- id: A(),
3061
+ id: j(),
3014
3062
  content: ""
3015
3063
  }]
3016
3064
  }));
@@ -3024,47 +3072,47 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
3024
3072
  r("update", { rows: t });
3025
3073
  }
3026
3074
  return (t, n) => (i(), p(E, null, [
3027
- y("div", Qi, [y("label", { class: g(h(q)) }, b(h(o).table.dimensions), 3), y("div", $i, [y("div", ea, [y("span", ta, b(h(o).table.rows), 1), y("div", na, [
3075
+ y("div", na, [y("label", { class: g(h(G)) }, b(h(o).table.dimensions), 3), y("div", ra, [y("div", ia, [y("span", aa, b(h(o).table.rows), 1), y("div", oa, [
3028
3076
  y("button", {
3029
3077
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
3030
3078
  disabled: e.block.rows.length <= 1,
3031
3079
  onClick: n[0] ||= (t) => d(e.block.rows[e.block.rows.length - 1].id)
3032
- }, [O(h(Ae), {
3080
+ }, [O(h(Me), {
3033
3081
  size: 12,
3034
3082
  "stroke-width": 2
3035
- })], 8, ra),
3036
- y("span", ia, b(e.block.rows.length), 1),
3083
+ })], 8, sa),
3084
+ y("span", ca, b(e.block.rows.length), 1),
3037
3085
  y("button", {
3038
3086
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)]",
3039
3087
  onClick: u
3040
- }, [O(h(H), {
3088
+ }, [O(h(B), {
3041
3089
  size: 12,
3042
3090
  "stroke-width": 2
3043
3091
  })])
3044
- ])]), y("div", aa, [y("span", oa, b(h(o).table.columns), 1), y("div", sa, [
3092
+ ])]), y("div", la, [y("span", ua, b(h(o).table.columns), 1), y("div", da, [
3045
3093
  y("button", {
3046
3094
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
3047
3095
  disabled: s.value <= 1,
3048
3096
  onClick: n[1] ||= (e) => m(s.value - 1)
3049
- }, [O(h(Ae), {
3097
+ }, [O(h(Me), {
3050
3098
  size: 12,
3051
3099
  "stroke-width": 2
3052
- })], 8, ca),
3053
- y("span", la, b(s.value), 1),
3100
+ })], 8, fa),
3101
+ y("span", pa, b(s.value), 1),
3054
3102
  y("button", {
3055
3103
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)]",
3056
3104
  onClick: f
3057
- }, [O(h(H), {
3105
+ }, [O(h(B), {
3058
3106
  size: 12,
3059
3107
  "stroke-width": 2
3060
3108
  })])
3061
3109
  ])])])]),
3062
- O(J, {
3110
+ O(K, {
3063
3111
  class: "tpl:mb-3.5",
3064
3112
  path: "hasHeaderRow",
3065
3113
  label: h(o).table.hasHeaderRow
3066
3114
  }, {
3067
- "label-actions": a(({ controlId: t }) => [O(X, {
3115
+ "label-actions": a(({ controlId: t }) => [O(J, {
3068
3116
  "control-id": t,
3069
3117
  "hide-label": "",
3070
3118
  class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
@@ -3078,15 +3126,15 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
3078
3126
  ])]),
3079
3127
  _: 1
3080
3128
  }, 8, ["label"]),
3081
- e.block.hasHeaderRow ? (i(), v(J, {
3129
+ e.block.hasHeaderRow ? (i(), v(K, {
3082
3130
  key: 0,
3083
3131
  label: h(o).table.headerBackgroundColor,
3084
3132
  class: "tpl:mb-3.5",
3085
3133
  path: "headerBackgroundColor"
3086
3134
  }, {
3087
- default: a(() => [O(Y, {
3135
+ default: a(() => [O(q, {
3088
3136
  "model-value": e.block.headerBackgroundColor ?? "",
3089
- "seed-color": h(rt),
3137
+ "seed-color": h(at),
3090
3138
  placeholder: h(o).table.noHeaderBg,
3091
3139
  "onUpdate:modelValue": n[3] ||= (e) => l("headerBackgroundColor", e || null)
3092
3140
  }, null, 8, [
@@ -3096,109 +3144,109 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
3096
3144
  ])]),
3097
3145
  _: 1
3098
3146
  }, 8, ["label"])) : _("", !0),
3099
- O(J, {
3147
+ O(K, {
3100
3148
  label: h(o).table.borderColor,
3101
3149
  class: "tpl:mb-3.5",
3102
3150
  path: "borderColor"
3103
3151
  }, {
3104
- default: a(() => [O(Y, {
3152
+ default: a(() => [O(q, {
3105
3153
  "model-value": e.block.borderColor,
3106
3154
  "onUpdate:modelValue": n[4] ||= (e) => l("borderColor", e)
3107
3155
  }, null, 8, ["model-value"])]),
3108
3156
  _: 1
3109
3157
  }, 8, ["label"]),
3110
- O(J, {
3158
+ O(K, {
3111
3159
  label: h(o).table.borderWidth,
3112
3160
  class: "tpl:mb-3.5",
3113
3161
  path: "borderWidth"
3114
3162
  }, {
3115
- default: a(() => [y("div", ua, [y("input", {
3163
+ default: a(() => [y("div", ma, [y("input", {
3116
3164
  type: "number",
3117
- class: g(h(G)),
3165
+ class: g(h(U)),
3118
3166
  value: e.block.borderWidth,
3119
3167
  min: "0",
3120
3168
  max: "10",
3121
3169
  onInput: n[5] ||= (e) => l("borderWidth", Number(e.target.value))
3122
- }, null, 42, da), y("span", { class: g(h(W)) }, "px", 2)])]),
3170
+ }, null, 42, ha), y("span", { class: g(h(H)) }, "px", 2)])]),
3123
3171
  _: 1
3124
3172
  }, 8, ["label"]),
3125
- O(J, {
3173
+ O(K, {
3126
3174
  label: h(o).table.cellPadding,
3127
3175
  class: "tpl:mb-3.5",
3128
3176
  path: "cellPadding"
3129
3177
  }, {
3130
- default: a(() => [y("div", fa, [y("input", {
3178
+ default: a(() => [y("div", ga, [y("input", {
3131
3179
  type: "number",
3132
- class: g(h(G)),
3180
+ class: g(h(U)),
3133
3181
  value: e.block.cellPadding,
3134
3182
  min: "0",
3135
3183
  max: "30",
3136
3184
  onInput: n[6] ||= (e) => l("cellPadding", Number(e.target.value))
3137
- }, null, 42, pa), y("span", { class: g(h(W)) }, "px", 2)])]),
3185
+ }, null, 42, _a), y("span", { class: g(h(H)) }, "px", 2)])]),
3138
3186
  _: 1
3139
3187
  }, 8, ["label"]),
3140
- O(J, {
3188
+ O(K, {
3141
3189
  label: h(o).table.fontFamily,
3142
3190
  class: "tpl:mb-3.5",
3143
3191
  path: "fontFamily"
3144
3192
  }, {
3145
3193
  default: a(() => [y("select", {
3146
- class: g(h(K)),
3147
- value: h(dt)(e.block.fontFamily),
3194
+ class: g(h(W)),
3195
+ value: h(pt)(e.block.fontFamily),
3148
3196
  onChange: n[7] ||= (e) => l("fontFamily", e.target.value || void 0)
3149
- }, [y("option", ha, b(h(o).title.inheritFont), 1), (i(!0), p(E, null, c(e.fontFamilies, (e) => (i(), p("option", {
3197
+ }, [y("option", ya, b(h(o).title.inheritFont), 1), (i(!0), p(E, null, c(e.fontFamilies, (e) => (i(), p("option", {
3150
3198
  key: e.value,
3151
3199
  value: e.value
3152
- }, b(e.label), 9, ga))), 128))], 42, ma)]),
3200
+ }, b(e.label), 9, ba))), 128))], 42, va)]),
3153
3201
  _: 1
3154
3202
  }, 8, ["label"]),
3155
- O(J, {
3203
+ O(K, {
3156
3204
  label: h(o).table.fontSize,
3157
3205
  class: "tpl:mb-3.5",
3158
3206
  path: "fontSize"
3159
3207
  }, {
3160
- default: a(() => [y("div", _a, [y("input", {
3208
+ default: a(() => [y("div", xa, [y("input", {
3161
3209
  type: "number",
3162
- class: g(h(G)),
3210
+ class: g(h(U)),
3163
3211
  value: e.block.fontSize,
3164
3212
  min: "10",
3165
3213
  max: "32",
3166
3214
  onInput: n[8] ||= (e) => l("fontSize", Number(e.target.value))
3167
- }, null, 42, va), y("span", { class: g(h(W)) }, "px", 2)])]),
3215
+ }, null, 42, Sa), y("span", { class: g(h(H)) }, "px", 2)])]),
3168
3216
  _: 1
3169
3217
  }, 8, ["label"]),
3170
- O(J, {
3218
+ O(K, {
3171
3219
  label: h(o).table.color,
3172
3220
  class: "tpl:mb-3.5",
3173
3221
  path: "color"
3174
3222
  }, {
3175
- default: a(() => [O(Y, {
3223
+ default: a(() => [O(q, {
3176
3224
  "model-value": e.block.color ?? "",
3177
3225
  "onUpdate:modelValue": n[9] ||= (e) => l("color", e || void 0)
3178
3226
  }, null, 8, ["model-value"])]),
3179
3227
  _: 1
3180
3228
  }, 8, ["label"]),
3181
- O(J, {
3229
+ O(K, {
3182
3230
  label: h(o).table.textAlign,
3183
3231
  class: "tpl:mb-3.5",
3184
3232
  path: "textAlign"
3185
3233
  }, {
3186
- default: a(() => [O(Q, {
3234
+ default: a(() => [O(X, {
3187
3235
  options: [
3188
3236
  {
3189
3237
  value: "left",
3190
3238
  label: h(o).title.alignLeft,
3191
- icon: h(Ne)
3239
+ icon: h(Fe)
3192
3240
  },
3193
3241
  {
3194
3242
  value: "center",
3195
3243
  label: h(o).title.alignCenter,
3196
- icon: h(De)
3244
+ icon: h(ke)
3197
3245
  },
3198
3246
  {
3199
3247
  value: "right",
3200
3248
  label: h(o).title.alignRight,
3201
- icon: h(Re)
3249
+ icon: h(Be)
3202
3250
  }
3203
3251
  ],
3204
3252
  "model-value": e.block.textAlign,
@@ -3208,7 +3256,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
3208
3256
  }, 8, ["label"])
3209
3257
  ], 64));
3210
3258
  }
3211
- }), ba = ["value"], xa = { value: 1 }, Sa = { value: 2 }, Ca = { value: 3 }, wa = { value: 4 }, Ta = ["value"], Ea = { value: "" }, Da = ["value"], Oa = /* @__PURE__ */ r({
3259
+ }), wa = ["value"], Ta = { value: 1 }, Ea = { value: 2 }, Da = { value: 3 }, Oa = { value: 4 }, ka = ["value"], Aa = { value: "" }, ja = ["value"], Ma = /* @__PURE__ */ r({
3212
3260
  __name: "TitleToolbar",
3213
3261
  props: {
3214
3262
  block: {},
@@ -3216,75 +3264,75 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
3216
3264
  },
3217
3265
  emits: ["update"],
3218
3266
  setup(e, { emit: t }) {
3219
- let n = t, { t: r } = U();
3267
+ let n = t, { t: r } = V();
3220
3268
  function o(e, t) {
3221
3269
  n("update", { [e]: t });
3222
3270
  }
3223
3271
  return (t, n) => (i(), p(E, null, [
3224
- O(J, {
3272
+ O(K, {
3225
3273
  label: h(r).title.level,
3226
3274
  class: "tpl:mb-3.5",
3227
3275
  path: "level"
3228
3276
  }, {
3229
3277
  default: a(() => [y("select", {
3230
- class: g(h(K)),
3278
+ class: g(h(W)),
3231
3279
  value: e.block.level,
3232
3280
  onChange: n[0] ||= (e) => o("level", Number(e.target.value))
3233
3281
  }, [
3234
- y("option", xa, b(h(r).title.heading1), 1),
3235
- y("option", Sa, b(h(r).title.heading2), 1),
3236
- y("option", Ca, b(h(r).title.heading3), 1),
3237
- y("option", wa, b(h(r).title.heading4), 1)
3238
- ], 42, ba)]),
3282
+ y("option", Ta, b(h(r).title.heading1), 1),
3283
+ y("option", Ea, b(h(r).title.heading2), 1),
3284
+ y("option", Da, b(h(r).title.heading3), 1),
3285
+ y("option", Oa, b(h(r).title.heading4), 1)
3286
+ ], 42, wa)]),
3239
3287
  _: 1
3240
3288
  }, 8, ["label"]),
3241
- O(J, {
3289
+ O(K, {
3242
3290
  label: h(r).title.fontFamily,
3243
3291
  class: "tpl:mb-3.5",
3244
3292
  path: "fontFamily"
3245
3293
  }, {
3246
3294
  default: a(() => [y("select", {
3247
- class: g(h(K)),
3248
- value: h(dt)(e.block.fontFamily),
3295
+ class: g(h(W)),
3296
+ value: h(pt)(e.block.fontFamily),
3249
3297
  onChange: n[1] ||= (e) => o("fontFamily", e.target.value || void 0)
3250
- }, [y("option", Ea, b(h(r).title.inheritFont), 1), (i(!0), p(E, null, c(e.fontFamilies, (e) => (i(), p("option", {
3298
+ }, [y("option", Aa, b(h(r).title.inheritFont), 1), (i(!0), p(E, null, c(e.fontFamilies, (e) => (i(), p("option", {
3251
3299
  key: e.value,
3252
3300
  value: e.value
3253
- }, b(e.label), 9, Da))), 128))], 42, Ta)]),
3301
+ }, b(e.label), 9, ja))), 128))], 42, ka)]),
3254
3302
  _: 1
3255
3303
  }, 8, ["label"]),
3256
- O(J, {
3304
+ O(K, {
3257
3305
  label: h(r).title.color,
3258
3306
  class: "tpl:mb-3.5",
3259
3307
  path: "color"
3260
3308
  }, {
3261
- default: a(() => [O(Y, {
3309
+ default: a(() => [O(q, {
3262
3310
  "model-value": e.block.color ?? "",
3263
3311
  "onUpdate:modelValue": n[2] ||= (e) => o("color", e || void 0)
3264
3312
  }, null, 8, ["model-value"])]),
3265
3313
  _: 1
3266
3314
  }, 8, ["label"]),
3267
- O(J, {
3315
+ O(K, {
3268
3316
  label: h(r).title.align,
3269
3317
  class: "tpl:mb-3.5",
3270
3318
  path: "textAlign"
3271
3319
  }, {
3272
- default: a(() => [O(Q, {
3320
+ default: a(() => [O(X, {
3273
3321
  options: [
3274
3322
  {
3275
3323
  value: "left",
3276
3324
  label: h(r).title.alignLeft,
3277
- icon: h(Ne)
3325
+ icon: h(Fe)
3278
3326
  },
3279
3327
  {
3280
3328
  value: "center",
3281
3329
  label: h(r).title.alignCenter,
3282
- icon: h(De)
3330
+ icon: h(ke)
3283
3331
  },
3284
3332
  {
3285
3333
  value: "right",
3286
3334
  label: h(r).title.alignRight,
3287
- icon: h(Re)
3335
+ icon: h(Be)
3288
3336
  }
3289
3337
  ],
3290
3338
  "model-value": e.block.textAlign,
@@ -3294,78 +3342,78 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
3294
3342
  }, 8, ["label"])
3295
3343
  ], 64));
3296
3344
  }
3297
- }), ka = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Aa = [
3345
+ }), Na = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Pa = [
3298
3346
  "value",
3299
3347
  "placeholder",
3300
3348
  "title"
3301
- ], ja = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ma = ["value"], Na = { value: "full" }, Pa = { value: "custom" }, Fa = {
3349
+ ], Fa = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ia = ["value"], La = { value: "full" }, Ra = { value: "custom" }, za = {
3302
3350
  key: 0,
3303
3351
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
3304
- }, Ia = ["value"], La = ["value"], Ra = { value: "auto" }, za = { value: "custom" }, Ba = {
3352
+ }, Ba = ["value"], Va = ["value"], Ha = { value: "auto" }, Ua = { value: "custom" }, Wa = {
3305
3353
  key: 0,
3306
3354
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
3307
- }, Va = ["value"], Ha = 350, Ua = 200, Wa = /* @__PURE__ */ r({
3355
+ }, Ga = ["value"], Ka = 350, qa = 200, Ja = /* @__PURE__ */ r({
3308
3356
  __name: "VideoToolbar",
3309
3357
  props: { block: {} },
3310
3358
  emits: ["update"],
3311
3359
  setup(e, { emit: t }) {
3312
- let n = e, r = t, { t: o } = U(), s = l(Ue, null), c = l(ze, R.liquid), u = le(), d = [
3360
+ let n = e, r = t, { t: o } = V(), s = l(Ge, null), c = l(Ve, A.liquid), u = ue(), d = [
3313
3361
  300,
3314
3362
  400,
3315
3363
  500
3316
- ], f = S(() => !!s), x = S(() => te(n.block.url, c)), C = S(() => {
3364
+ ], f = S(() => !!s), x = S(() => P(n.block.url, c)), C = S(() => {
3317
3365
  let e = n.block.width;
3318
3366
  return e === "full" ? "full" : d.includes(e) ? String(e) : "custom";
3319
- }), w = S(() => typeof n.block.height == "number" ? "custom" : "auto"), D = T(!1), { start: k } = at(() => {
3367
+ }), w = S(() => typeof n.block.height == "number" ? "custom" : "auto"), D = T(!1), { start: k } = st(() => {
3320
3368
  D.value = !1;
3321
3369
  }, 1e3, { immediate: !1 });
3322
- function A(e, t) {
3370
+ function j(e, t) {
3323
3371
  r("update", { [e]: t });
3324
3372
  }
3325
- function j(e) {
3373
+ function M(e) {
3326
3374
  if (e === "custom") {
3327
3375
  let e = n.block.width;
3328
- (typeof e != "number" || d.includes(e)) && A("width", Ha);
3329
- } else A("width", e === "full" ? "full" : Number(e));
3376
+ (typeof e != "number" || d.includes(e)) && j("width", Ka);
3377
+ } else j("width", e === "full" ? "full" : Number(e));
3330
3378
  }
3331
- function M(e) {
3379
+ function N(e) {
3332
3380
  let t = Number(e);
3333
- !Number.isFinite(t) || t <= 0 || A("width", t);
3381
+ !Number.isFinite(t) || t <= 0 || j("width", t);
3334
3382
  }
3335
- function N(e) {
3336
- A("height", e === "custom" ? Ua : void 0);
3383
+ function F(e) {
3384
+ j("height", e === "custom" ? qa : void 0);
3337
3385
  }
3338
- function P(e) {
3386
+ function I(e) {
3339
3387
  let t = Number(e);
3340
- !Number.isFinite(t) || t <= 0 || A("height", t);
3388
+ !Number.isFinite(t) || t <= 0 || j("height", t);
3341
3389
  }
3342
- async function F() {
3390
+ async function ee() {
3343
3391
  let e = await s?.({ accept: ["images"] });
3344
- u.alive && e && (A("thumbnailUrl", e.url), D.value = !0, k());
3392
+ u.alive && e && (j("thumbnailUrl", e.url), D.value = !0, k());
3345
3393
  }
3346
3394
  return (t, n) => (i(), p(E, null, [
3347
- O(J, {
3395
+ O(K, {
3348
3396
  label: h(o).video.videoUrl,
3349
3397
  class: "tpl:mb-3.5",
3350
3398
  path: "url"
3351
3399
  }, {
3352
- default: a(() => [O(Z, {
3400
+ default: a(() => [O(Y, {
3353
3401
  "model-value": e.block.url,
3354
3402
  type: "url",
3355
3403
  placeholder: h(o).video.videoUrlPlaceholder,
3356
- "onUpdate:modelValue": n[0] ||= (e) => A("url", e)
3357
- }, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(J, {
3404
+ "onUpdate:modelValue": n[0] ||= (e) => j("url", e)
3405
+ }, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(K, {
3358
3406
  key: 0,
3359
3407
  path: "openInNewTab",
3360
3408
  label: h(o).video.openInNewTab
3361
3409
  }, {
3362
- "label-actions": a(({ controlId: t }) => [O(X, {
3410
+ "label-actions": a(({ controlId: t }) => [O(J, {
3363
3411
  "control-id": t,
3364
3412
  "hide-label": "",
3365
3413
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
3366
3414
  "model-value": e.block.openInNewTab ?? !1,
3367
3415
  label: h(o).video.openInNewTab,
3368
- "onUpdate:modelValue": n[1] ||= (e) => A("openInNewTab", e)
3416
+ "onUpdate:modelValue": n[1] ||= (e) => j("openInNewTab", e)
3369
3417
  }, null, 8, [
3370
3418
  "control-id",
3371
3419
  "model-value",
@@ -3375,33 +3423,33 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
3375
3423
  }, 8, ["label"])) : _("", !0)]),
3376
3424
  _: 1
3377
3425
  }, 8, ["label"]),
3378
- x.value ? (i(), v(J, {
3426
+ x.value ? (i(), v(K, {
3379
3427
  key: 0,
3380
3428
  class: "tpl:mb-3.5",
3381
3429
  path: "placeholderUrl"
3382
3430
  }, {
3383
- label: a(() => [m(b(h(o).video.placeholderUrl) + " ", 1), y("span", ka, b(h(o).video.optional), 1)]),
3431
+ label: a(() => [m(b(h(o).video.placeholderUrl) + " ", 1), y("span", Na, b(h(o).video.optional), 1)]),
3384
3432
  default: a(() => [y("input", {
3385
3433
  type: "url",
3386
- class: g(h(K)),
3434
+ class: g(h(W)),
3387
3435
  value: e.block.placeholderUrl || "",
3388
3436
  placeholder: h(o).video.placeholderUrlPlaceholder,
3389
3437
  title: h(o).video.placeholderUrlTooltip,
3390
- onInput: n[2] ||= (e) => A("placeholderUrl", e.target.value)
3391
- }, null, 42, Aa)]),
3438
+ onInput: n[2] ||= (e) => j("placeholderUrl", e.target.value)
3439
+ }, null, 42, Pa)]),
3392
3440
  _: 1
3393
3441
  })) : _("", !0),
3394
- O(J, {
3442
+ O(K, {
3395
3443
  class: "tpl:mb-3.5",
3396
3444
  path: "thumbnailUrl"
3397
3445
  }, {
3398
- label: a(() => [m(b(h(o).video.customThumbnail) + " ", 1), y("span", ja, b(h(o).video.optional), 1)]),
3399
- default: a(() => [O(Z, {
3446
+ label: a(() => [m(b(h(o).video.customThumbnail) + " ", 1), y("span", Fa, b(h(o).video.optional), 1)]),
3447
+ default: a(() => [O(Y, {
3400
3448
  "model-value": e.block.thumbnailUrl,
3401
3449
  type: "url",
3402
3450
  placeholder: h(o).video.thumbnailPlaceholder,
3403
3451
  pulse: D.value,
3404
- "onUpdate:modelValue": n[3] ||= (e) => A("thumbnailUrl", e)
3452
+ "onUpdate:modelValue": n[3] ||= (e) => j("thumbnailUrl", e)
3405
3453
  }, null, 8, [
3406
3454
  "model-value",
3407
3455
  "placeholder",
@@ -3414,78 +3462,78 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
3414
3462
  color: "var(--tpl-primary)",
3415
3463
  "background-color": "var(--tpl-bg)"
3416
3464
  },
3417
- onClick: F
3418
- }, [O(h(Oe), {
3465
+ onClick: ee
3466
+ }, [O(h(Ae), {
3419
3467
  size: 14,
3420
3468
  "stroke-width": 1.5
3421
3469
  }), m(" " + b(h(o).image.browseMedia), 1)])) : _("", !0)]),
3422
3470
  _: 1
3423
3471
  }),
3424
- O(J, {
3472
+ O(K, {
3425
3473
  label: h(o).video.altText,
3426
3474
  class: "tpl:mb-3.5",
3427
3475
  path: "alt"
3428
3476
  }, {
3429
- default: a(() => [O(Z, {
3477
+ default: a(() => [O(Y, {
3430
3478
  "model-value": e.block.alt,
3431
3479
  type: "text",
3432
3480
  placeholder: h(o).video.altTextPlaceholder,
3433
- "onUpdate:modelValue": n[4] ||= (e) => A("alt", e)
3481
+ "onUpdate:modelValue": n[4] ||= (e) => j("alt", e)
3434
3482
  }, null, 8, ["model-value", "placeholder"])]),
3435
3483
  _: 1
3436
3484
  }, 8, ["label"]),
3437
- O(J, {
3485
+ O(K, {
3438
3486
  label: h(o).video.width,
3439
3487
  class: "tpl:mb-3.5",
3440
3488
  path: "width"
3441
3489
  }, {
3442
3490
  default: a(() => [y("select", {
3443
- class: g(h(K)),
3491
+ class: g(h(W)),
3444
3492
  "data-testid": "video-width-mode",
3445
3493
  value: C.value,
3446
- onChange: n[5] ||= (e) => j(e.target.value)
3494
+ onChange: n[5] ||= (e) => M(e.target.value)
3447
3495
  }, [
3448
- y("option", Na, b(h(o).video.fullWidth), 1),
3496
+ y("option", La, b(h(o).video.fullWidth), 1),
3449
3497
  n[10] ||= y("option", { value: "300" }, "300px", -1),
3450
3498
  n[11] ||= y("option", { value: "400" }, "400px", -1),
3451
3499
  n[12] ||= y("option", { value: "500" }, "500px", -1),
3452
- y("option", Pa, b(h(o).video.widthCustom), 1)
3453
- ], 42, Ma), C.value === "custom" ? (i(), p("div", Fa, [y("input", {
3500
+ y("option", Ra, b(h(o).video.widthCustom), 1)
3501
+ ], 42, Ia), C.value === "custom" ? (i(), p("div", za, [y("input", {
3454
3502
  type: "number",
3455
3503
  "data-testid": "video-width-input",
3456
- class: g(h(G)),
3504
+ class: g(h(U)),
3457
3505
  value: e.block.width,
3458
3506
  min: "20",
3459
- onInput: n[6] ||= (e) => M(e.target.value)
3460
- }, null, 42, Ia), y("span", { class: g(h(W)) }, "px", 2)])) : _("", !0)]),
3507
+ onInput: n[6] ||= (e) => N(e.target.value)
3508
+ }, null, 42, Ba), y("span", { class: g(h(H)) }, "px", 2)])) : _("", !0)]),
3461
3509
  _: 1
3462
3510
  }, 8, ["label"]),
3463
- O(J, {
3511
+ O(K, {
3464
3512
  label: h(o).video.height,
3465
3513
  class: "tpl:mb-3.5",
3466
3514
  path: "height"
3467
3515
  }, {
3468
3516
  default: a(() => [y("select", {
3469
- class: g(h(K)),
3517
+ class: g(h(W)),
3470
3518
  "data-testid": "video-height-mode",
3471
3519
  value: w.value,
3472
- onChange: n[7] ||= (e) => N(e.target.value)
3473
- }, [y("option", Ra, b(h(o).video.heightAuto), 1), y("option", za, b(h(o).video.heightCustom), 1)], 42, La), w.value === "custom" ? (i(), p("div", Ba, [y("input", {
3520
+ onChange: n[7] ||= (e) => F(e.target.value)
3521
+ }, [y("option", Ha, b(h(o).video.heightAuto), 1), y("option", Ua, b(h(o).video.heightCustom), 1)], 42, Va), w.value === "custom" ? (i(), p("div", Wa, [y("input", {
3474
3522
  type: "number",
3475
3523
  "data-testid": "video-height-input",
3476
- class: g(h(G)),
3524
+ class: g(h(U)),
3477
3525
  value: e.block.height,
3478
3526
  min: "20",
3479
- onInput: n[8] ||= (e) => P(e.target.value)
3480
- }, null, 42, Va), y("span", { class: g(h(W)) }, "px", 2)])) : _("", !0)]),
3527
+ onInput: n[8] ||= (e) => I(e.target.value)
3528
+ }, null, 42, Ga), y("span", { class: g(h(H)) }, "px", 2)])) : _("", !0)]),
3481
3529
  _: 1
3482
3530
  }, 8, ["label"]),
3483
- O(J, {
3531
+ O(K, {
3484
3532
  label: h(o).title.align,
3485
3533
  class: "tpl:mb-3.5",
3486
3534
  path: "align"
3487
3535
  }, {
3488
- default: a(() => [O(Q, {
3536
+ default: a(() => [O(X, {
3489
3537
  options: [
3490
3538
  {
3491
3539
  value: "left",
@@ -3501,13 +3549,13 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
3501
3549
  }
3502
3550
  ],
3503
3551
  "model-value": e.block.align,
3504
- "onUpdate:modelValue": n[9] ||= (e) => A("align", e)
3552
+ "onUpdate:modelValue": n[9] ||= (e) => j("align", e)
3505
3553
  }, null, 8, ["options", "model-value"])]),
3506
3554
  _: 1
3507
3555
  }, 8, ["label"])
3508
3556
  ], 64));
3509
3557
  }
3510
- }), Ga = ["aria-label"], Ka = ["disabled", "inert"], qa = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Ja = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Ya = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Xa = { class: "tpl:flex tpl:gap-1" }, Za = ["title"], Qa = ["title"], $a = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, eo = /*@__PURE__*/ r({
3558
+ }), Ya = ["aria-label"], Xa = ["disabled", "inert"], Za = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Qa = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, $a = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, eo = { class: "tpl:flex tpl:gap-1" }, to = ["title"], no = ["title"], ro = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, io = /*@__PURE__*/ r({
3511
3559
  __name: "Toolbar",
3512
3560
  props: { block: {} },
3513
3561
  emits: [
@@ -3516,9 +3564,9 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
3516
3564
  "duplicate"
3517
3565
  ],
3518
3566
  setup(e, { emit: t }) {
3519
- let r = f(() => import("./CountdownToolbar-B-0FsTj-.js")), a = e, o = t, { t: s } = U(), c = ot(), u = Je(Ke, "Toolbar"), d = l(qe, []), m = S(() => a.block.type), g = S(() => P(a.block)), x = S(() => {
3567
+ let r = f(() => import("./CountdownToolbar-BxW-J7DX.js")), a = e, o = t, { t: s } = V(), c = ct(), u = Xe(Je, "Toolbar"), d = l(Ye, []), m = S(() => a.block.type), g = S(() => F(a.block)), x = S(() => {
3520
3568
  if (g.value) return d.find((e) => e.type === a.block.customType);
3521
- }), C = S(() => g.value ? x.value?.name ?? a.block.customType : ce(m.value, s)), w = S(() => ut(u.fonts.value, "fontFamily" in a.block ? a.block.fontFamily : void 0));
3569
+ }), C = S(() => g.value ? x.value?.name ?? a.block.customType : le(m.value, s)), w = S(() => ft(u.fonts.value, "fontFamily" in a.block ? a.block.fontFamily : void 0));
3522
3570
  function T(e) {
3523
3571
  c.value && o("update", e);
3524
3572
  }
@@ -3530,55 +3578,55 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
3530
3578
  disabled: !h(c),
3531
3579
  inert: !h(c),
3532
3580
  class: "tpl:contents"
3533
- }, [y("div", qa, [y("div", Ja, [h(ct)[m.value] ? (i(), v(n(h(ct)[m.value]), {
3581
+ }, [y("div", Za, [y("div", Qa, [h(ut)[m.value] ? (i(), v(n(h(ut)[m.value]), {
3534
3582
  key: 0,
3535
3583
  size: 16,
3536
3584
  "stroke-width": 1.5
3537
- })) : g.value ? (i(), v(h(we), {
3585
+ })) : g.value ? (i(), v(h(Ee), {
3538
3586
  key: 1,
3539
3587
  size: 16,
3540
3588
  "stroke-width": 1.5
3541
- })) : _("", !0), y("h3", Ya, b(C.value), 1)]), y("div", Xa, [y("button", {
3589
+ })) : _("", !0), y("h3", $a, b(C.value), 1)]), y("div", eo, [y("button", {
3542
3590
  class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)] tpl:hover:text-[var(--tpl-text)]",
3543
3591
  title: h(s).toolbar.duplicate,
3544
3592
  onClick: a[0] ||= (e) => o("duplicate")
3545
- }, [O(h(xe), {
3593
+ }, [O(h(Ce), {
3546
3594
  size: 14,
3547
3595
  "stroke-width": 2
3548
- })], 8, Za), y("button", {
3596
+ })], 8, to), y("button", {
3549
3597
  class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
3550
3598
  title: h(s).toolbar.delete,
3551
3599
  onClick: a[1] ||= (e) => o("delete")
3552
- }, [O(h(je), {
3600
+ }, [O(h(Ne), {
3553
3601
  size: 14,
3554
3602
  "stroke-width": 2
3555
- })], 8, Qa)])]), y("div", $a, [g.value ? (i(), v(Nr, {
3603
+ })], 8, no)])]), y("div", ro, [g.value ? (i(), v(Nr, {
3556
3604
  key: 0,
3557
3605
  block: e.block,
3558
3606
  onUpdateFieldValues: a[2] ||= (e) => o("update", { fieldValues: e }),
3559
3607
  onUpdateDataSourceFetched: a[3] ||= (e) => o("update", { dataSourceFetched: e })
3560
- }, null, 8, ["block"])) : m.value === "section" ? (i(), v(Di, {
3608
+ }, null, 8, ["block"])) : m.value === "section" ? (i(), v(ji, {
3561
3609
  key: 1,
3562
3610
  block: e.block,
3563
3611
  onUpdate: T
3564
- }, null, 8, ["block"])) : m.value === "title" ? (i(), v(Oa, {
3612
+ }, null, 8, ["block"])) : m.value === "title" ? (i(), v(Ma, {
3565
3613
  key: 2,
3566
3614
  block: e.block,
3567
3615
  "font-families": w.value,
3568
3616
  onUpdate: T
3569
- }, null, 8, ["block", "font-families"])) : m.value === "paragraph" ? (i(), v(yi, {
3617
+ }, null, 8, ["block", "font-families"])) : m.value === "paragraph" ? (i(), v(Ci, {
3570
3618
  key: 3,
3571
3619
  block: e.block,
3572
3620
  onUpdate: T
3573
- }, null, 8, ["block"])) : m.value === "image" ? (i(), v(ai, {
3621
+ }, null, 8, ["block"])) : m.value === "image" ? (i(), v(li, {
3574
3622
  key: 4,
3575
3623
  block: e.block,
3576
3624
  onUpdate: T
3577
- }, null, 8, ["block"])) : m.value === "video" ? (i(), v(Wa, {
3625
+ }, null, 8, ["block"])) : m.value === "video" ? (i(), v(Ja, {
3578
3626
  key: 5,
3579
3627
  block: e.block,
3580
3628
  onUpdate: T
3581
- }, null, 8, ["block"])) : m.value === "button" ? (i(), v(Rt, {
3629
+ }, null, 8, ["block"])) : m.value === "button" ? (i(), v(zt, {
3582
3630
  key: 6,
3583
3631
  block: e.block,
3584
3632
  "font-families": w.value,
@@ -3587,21 +3635,21 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
3587
3635
  key: 7,
3588
3636
  block: e.block,
3589
3637
  onUpdate: T
3590
- }, null, 8, ["block"])) : m.value === "social" ? (i(), v(qi, {
3638
+ }, null, 8, ["block"])) : m.value === "social" ? (i(), v(Zi, {
3591
3639
  key: 8,
3592
3640
  block: e.block,
3593
3641
  onUpdate: T
3594
- }, null, 8, ["block"])) : m.value === "menu" ? (i(), v(gi, {
3642
+ }, null, 8, ["block"])) : m.value === "menu" ? (i(), v(bi, {
3595
3643
  key: 9,
3596
3644
  block: e.block,
3597
3645
  "font-families": w.value,
3598
3646
  onUpdate: T
3599
- }, null, 8, ["block", "font-families"])) : m.value === "table" ? (i(), v(ya, {
3647
+ }, null, 8, ["block", "font-families"])) : m.value === "table" ? (i(), v(Ca, {
3600
3648
  key: 10,
3601
3649
  block: e.block,
3602
3650
  "font-families": w.value,
3603
3651
  onUpdate: T
3604
- }, null, 8, ["block", "font-families"])) : m.value === "spacer" ? (i(), v(Zi, {
3652
+ }, null, 8, ["block", "font-families"])) : m.value === "spacer" ? (i(), v(ta, {
3605
3653
  key: 11,
3606
3654
  block: e.block,
3607
3655
  onUpdate: T
@@ -3614,13 +3662,13 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
3614
3662
  block: e.block,
3615
3663
  "font-families": w.value,
3616
3664
  onUpdate: T
3617
- }, null, 8, ["block", "font-families"])) : _("", !0), O(qn, {
3665
+ }, null, 8, ["block", "font-families"])) : _("", !0), O(Jn, {
3618
3666
  block: e.block,
3619
3667
  "is-first-section": m.value === "paragraph",
3620
3668
  onUpdate: T
3621
- }, null, 8, ["block", "is-first-section"])])], 8, Ka)], 8, Ga));
3669
+ }, null, 8, ["block", "is-first-section"])])], 8, Xa)], 8, Ya));
3622
3670
  }
3623
- }), to = /* @__PURE__ */ e({ default: () => no }), no = /*#__PURE__*/ V(eo, [["__scopeId", "data-v-206f038f"]]);
3624
- export { no as default, gt as n, Q as r, to as t };
3671
+ }), ao = /* @__PURE__ */ e({ default: () => oo }), oo = /*#__PURE__*/ z(io, [["__scopeId", "data-v-206f038f"]]);
3672
+ export { oo as default, Z as n, X as r, ao as t };
3625
3673
 
3626
- //# sourceMappingURL=Toolbar-Cv6Rv1S-.js.map
3674
+ //# sourceMappingURL=Toolbar-NEE8qxYh.js.map