@templatical/editor 0.54.1 → 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 (172) hide show
  1. package/dist/{AiAltTextPopover-NMJqQKvD.js → AiAltTextPopover-D5QosKvB.js} +1 -1
  2. package/dist/{AiAltTextReview-Ci4zHwRc.js → AiAltTextReview-D1W_lrI_.js} +1 -1
  3. package/dist/{AiRewriteMenu-arKoTjsQ.js → AiRewriteMenu-BwztoMov.js} +4 -4
  4. package/dist/{BlockPreviewCanvas-BTieuBmH.js → BlockPreviewCanvas-C23A6FRm.js} +6 -6
  5. package/dist/{CloudPanels-Hxdp0doU.js → CloudPanels-Baoaj6Xf.js} +1 -1
  6. package/dist/{CountdownToolbar-CM4XNEuO.js → CountdownToolbar-CA_gDIdZ.js} +4 -4
  7. package/dist/{IssuesPanel-1wGV0wiy.js → IssuesPanel-nmFhWG1p.js} +1 -1
  8. package/dist/{LanguageMenu-BpxbIJEx.js → LanguageMenu-DcABUYop.js} +5 -5
  9. package/dist/{LogicTagInsertButton-DgTJ6Lvx.js → LogicTagInsertButton-qZ82VMFx.js} +284 -279
  10. package/dist/{MergeTagInput-B_51YcQO.js → MergeTagInput-JJeZbFkD.js} +1 -1
  11. package/dist/{MergeTagModeToggle-D3Q2z317.js → MergeTagModeToggle-DDucd1eC.js} +1 -1
  12. package/dist/{MergeTagTextarea-DZz1L9DE.js → MergeTagTextarea-dQ2LRrNB.js} +2 -2
  13. package/dist/{ParagraphEditor-B38t4E2p.js → ParagraphEditor-VXYwGoz_.js} +8 -8
  14. package/dist/{RestoreVersionDialog-n7FSmWXB.js → RestoreVersionDialog-BibNvAaJ.js} +1 -1
  15. package/dist/{RichTextEditorContent-Dstovi0m.js → RichTextEditorContent-CU5EOlM_.js} +2 -2
  16. package/dist/{SaveBlockDialog-B94NpmDV.js → SaveBlockDialog-S9aFi0cy.js} +4 -4
  17. package/dist/{SavedBlocksBrowserModal-C1vSc8iM.js → SavedBlocksBrowserModal-DIdn6B0J.js} +4 -4
  18. package/dist/{SavedBlocksPanels-DLDmIYeL.js → SavedBlocksPanels-Cme2M6u8.js} +1 -1
  19. package/dist/{SavedBlocksPickBar-ngf2sFEs.js → SavedBlocksPickBar-BDmA7r3m.js} +1 -1
  20. package/dist/{TemplateSettings-Baar78_s.js → TemplateSettings-C_LHLm5M.js} +4 -4
  21. package/dist/{TestEmailModal-CB_9I1bl.js → TestEmailModal-CLIRn7eL.js} +5 -5
  22. package/dist/{TestEmailPanel-BUq-dbXQ.js → TestEmailPanel-frdtjC8h.js} +1 -1
  23. package/dist/{TitleEditor-BLP41rwy.js → TitleEditor-D5kC56Jl.js} +4 -4
  24. package/dist/{Toolbar-bOZ_eq7X.js → Toolbar-D904Yw_R.js} +747 -699
  25. package/dist/{TplModal-DFKqmJQz.js → TplModal-BBdotDf1.js} +1 -1
  26. package/dist/{VersionHistoryPanels-DPxj3mec.js → VersionHistoryPanels-DhagEgOk.js} +1 -1
  27. package/dist/{WrapperBlock-BdVIuGMR.js → WrapperBlock-BAT3T0Cz.js} +3 -3
  28. package/dist/{blockTypeIcons-BUyPZ7Su.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-Cnc_kUmb.js → AiAltTextPopover-CUGOPuRo.js} +2 -2
  32. package/dist/cdn/chunks/{AiAltTextPopover-Cnc_kUmb.js.map → AiAltTextPopover-CUGOPuRo.js.map} +1 -1
  33. package/dist/cdn/chunks/{AiAltTextReview-DPeSY-7r.js → AiAltTextReview-B9vm_L-8.js} +2 -2
  34. package/dist/cdn/chunks/{AiAltTextReview-DPeSY-7r.js.map → AiAltTextReview-B9vm_L-8.js.map} +1 -1
  35. package/dist/cdn/chunks/{AiRewriteMenu-YcVFv6RS.js → AiRewriteMenu-BvV_7tNZ.js} +7 -7
  36. package/dist/cdn/chunks/{AiRewriteMenu-YcVFv6RS.js.map → AiRewriteMenu-BvV_7tNZ.js.map} +1 -1
  37. package/dist/cdn/chunks/{BlockPreviewCanvas-6ck15xz9.js → BlockPreviewCanvas-Dr-xGq6v.js} +7 -7
  38. package/dist/cdn/chunks/{BlockPreviewCanvas-6ck15xz9.js.map → BlockPreviewCanvas-Dr-xGq6v.js.map} +1 -1
  39. package/dist/cdn/chunks/{CloudPanels-BHHpNckC.js → CloudPanels-CQ0vNgsH.js} +2 -2
  40. package/dist/cdn/chunks/{CloudPanels-BHHpNckC.js.map → CloudPanels-CQ0vNgsH.js.map} +1 -1
  41. package/dist/cdn/chunks/{CountdownToolbar-CNgsNL5-.js → CountdownToolbar-BxW-J7DX.js} +5 -5
  42. package/dist/cdn/chunks/{CountdownToolbar-CNgsNL5-.js.map → CountdownToolbar-BxW-J7DX.js.map} +1 -1
  43. package/dist/cdn/chunks/{IssuesPanel-Duic0mIs.js → IssuesPanel-BoHeIjvw.js} +3 -3
  44. package/dist/cdn/chunks/{IssuesPanel-Duic0mIs.js.map → IssuesPanel-BoHeIjvw.js.map} +1 -1
  45. package/dist/cdn/chunks/{LanguageMenu-C6utRx_4.js → LanguageMenu-BnYN5N1h.js} +7 -7
  46. package/dist/cdn/chunks/{LanguageMenu-C6utRx_4.js.map → LanguageMenu-BnYN5N1h.js.map} +1 -1
  47. package/dist/cdn/chunks/{LogicTagInsertButton-Bhvi0nWz.js → LogicTagInsertButton-Bt2PXbQ0.js} +255 -250
  48. package/dist/cdn/chunks/LogicTagInsertButton-Bt2PXbQ0.js.map +1 -0
  49. package/dist/cdn/chunks/{MergeTagInput-CrhZm-AW.js → MergeTagInput-BELdMRni.js} +2 -2
  50. package/dist/cdn/chunks/{MergeTagInput-CrhZm-AW.js.map → MergeTagInput-BELdMRni.js.map} +1 -1
  51. package/dist/cdn/chunks/{MergeTagModeToggle-CWVtXLYa.js → MergeTagModeToggle-DKfMDIEF.js} +2 -2
  52. package/dist/cdn/chunks/{MergeTagModeToggle-CWVtXLYa.js.map → MergeTagModeToggle-DKfMDIEF.js.map} +1 -1
  53. package/dist/cdn/chunks/{MergeTagTextarea-hTIBwX0F.js → MergeTagTextarea-w6xen3Xh.js} +5 -5
  54. package/dist/cdn/chunks/{MergeTagTextarea-hTIBwX0F.js.map → MergeTagTextarea-w6xen3Xh.js.map} +1 -1
  55. package/dist/cdn/chunks/{ParagraphEditor-B3EQ0Ai6.js → ParagraphEditor-Cal9hY3U.js} +9 -9
  56. package/dist/cdn/chunks/{ParagraphEditor-B3EQ0Ai6.js.map → ParagraphEditor-Cal9hY3U.js.map} +1 -1
  57. package/dist/cdn/chunks/{RestoreVersionDialog-DfNrVi0R.js → RestoreVersionDialog-f_ulmASY.js} +2 -2
  58. package/dist/cdn/chunks/{RestoreVersionDialog-DfNrVi0R.js.map → RestoreVersionDialog-f_ulmASY.js.map} +1 -1
  59. package/dist/cdn/chunks/{RichTextEditorContent-up4AqL7D.js → RichTextEditorContent-C_v0kS4A.js} +3 -3
  60. package/dist/cdn/chunks/{RichTextEditorContent-up4AqL7D.js.map → RichTextEditorContent-C_v0kS4A.js.map} +1 -1
  61. package/dist/cdn/chunks/{SaveBlockDialog-BqglcKcN.js → SaveBlockDialog-C6N9RFls.js} +5 -5
  62. package/dist/cdn/chunks/{SaveBlockDialog-BqglcKcN.js.map → SaveBlockDialog-C6N9RFls.js.map} +1 -1
  63. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BewXGlrK.js → SavedBlocksBrowserModal-Bl2sl09D.js} +4 -4
  64. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BewXGlrK.js.map → SavedBlocksBrowserModal-Bl2sl09D.js.map} +1 -1
  65. package/dist/cdn/chunks/{SavedBlocksPanels-0ZpX-jXI.js → SavedBlocksPanels-DqVcmEUK.js} +2 -2
  66. package/dist/cdn/chunks/{SavedBlocksPanels-0ZpX-jXI.js.map → SavedBlocksPanels-DqVcmEUK.js.map} +1 -1
  67. package/dist/cdn/chunks/{SavedBlocksPickBar-DHah-Uf7.js → SavedBlocksPickBar-DE-J1JVL.js} +2 -2
  68. package/dist/cdn/chunks/{SavedBlocksPickBar-DHah-Uf7.js.map → SavedBlocksPickBar-DE-J1JVL.js.map} +1 -1
  69. package/dist/cdn/chunks/{TemplateSettings-CWUpUKJb.js → TemplateSettings-CpoKZ8oV.js} +5 -5
  70. package/dist/cdn/chunks/{TemplateSettings-CWUpUKJb.js.map → TemplateSettings-CpoKZ8oV.js.map} +1 -1
  71. package/dist/cdn/chunks/{TestEmailModal-7pUDYLrk.js → TestEmailModal-DI3z__Bd.js} +8 -8
  72. package/dist/cdn/chunks/{TestEmailModal-7pUDYLrk.js.map → TestEmailModal-DI3z__Bd.js.map} +1 -1
  73. package/dist/cdn/chunks/{TestEmailPanel-DBWwMsH1.js → TestEmailPanel-Cp5d2YGn.js} +2 -2
  74. package/dist/cdn/chunks/{TestEmailPanel-DBWwMsH1.js.map → TestEmailPanel-Cp5d2YGn.js.map} +1 -1
  75. package/dist/cdn/chunks/{TitleEditor-VAanUjPQ.js → TitleEditor-C2syRLdZ.js} +4 -4
  76. package/dist/cdn/chunks/{TitleEditor-VAanUjPQ.js.map → TitleEditor-C2syRLdZ.js.map} +1 -1
  77. package/dist/cdn/chunks/{Toolbar-BlWVQRcA.js → Toolbar-NEE8qxYh.js} +754 -706
  78. package/dist/cdn/chunks/Toolbar-NEE8qxYh.js.map +1 -0
  79. package/dist/cdn/chunks/{TplModal-DDlR7mk3.js → TplModal-B1MgvtX8.js} +2 -2
  80. package/dist/cdn/chunks/{TplModal-DDlR7mk3.js.map → TplModal-B1MgvtX8.js.map} +1 -1
  81. package/dist/cdn/chunks/{VersionHistoryPanels-DJDeaf1B.js → VersionHistoryPanels-Cefd8i_e.js} +2 -2
  82. package/dist/cdn/chunks/{VersionHistoryPanels-DJDeaf1B.js.map → VersionHistoryPanels-Cefd8i_e.js.map} +1 -1
  83. package/dist/cdn/chunks/{WrapperBlock-DRJnrgy-.js → WrapperBlock-DFY-7YSs.js} +4 -4
  84. package/dist/cdn/chunks/{WrapperBlock-DRJnrgy-.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-Jc3uZuLs.js → composables-nyxwrM27.js} +619 -597
  88. package/dist/cdn/chunks/composables-nyxwrM27.js.map +1 -0
  89. package/dist/cdn/chunks/{createCloudRuntime-C2Zs5F1O.js → createCloudRuntime-DJkDGKQ_.js} +3 -3
  90. package/dist/cdn/chunks/{createCloudRuntime-C2Zs5F1O.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-DcMKZpzh.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/{normalizeMergeTagMarkup-CUCo7B5X.js → cdn/chunks/normalizeMergeTagMarkup-BrGw5jxk.js} +102 -90
  106. package/dist/cdn/chunks/normalizeMergeTagMarkup-BrGw5jxk.js.map +1 -0
  107. package/dist/{preRenderCustomBlocks-Bs3N9no-.js → cdn/chunks/preRenderCustomBlocks-Cj0XYwuh.js} +3 -1
  108. package/dist/cdn/chunks/{preRenderCustomBlocks-f7GEKdvw.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-WTfz9lZd.js → sanitizeHtml-GxJCxKcP.js} +3 -3
  112. package/dist/cdn/chunks/{sanitizeHtml-WTfz9lZd.js.map → sanitizeHtml-GxJCxKcP.js.map} +1 -1
  113. package/dist/cdn/chunks/{socialIcons-DeCYorUT.js → socialIcons-B5zrrV8-.js} +387 -386
  114. package/dist/cdn/chunks/{socialIcons-DeCYorUT.js.map → socialIcons-B5zrrV8-.js.map} +1 -1
  115. package/dist/cdn/chunks/{src-A_cKeTM_.js → src-Diw9SLIe.js} +673 -554
  116. package/dist/cdn/chunks/src-Diw9SLIe.js.map +1 -0
  117. package/dist/cdn/chunks/src-UR3AQocX.js +683 -0
  118. package/dist/cdn/chunks/src-UR3AQocX.js.map +1 -0
  119. package/dist/cdn/chunks/{src-BQUv2CYU.js → src-v47QHNmB.js} +808 -645
  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-aGfnO90D.js.map → useLocalizedDisplay-DekV8qar.js.map} +1 -1
  123. package/dist/cdn/chunks/{useLogicTag-DtYe8HIq.js → useLogicTag-Cbp3I7UN.js} +2 -2
  124. package/dist/cdn/chunks/{useLogicTag-DtYe8HIq.js.map → useLogicTag-Cbp3I7UN.js.map} +1 -1
  125. package/dist/cdn/chunks/{useMergeTag-B8ULmsnp.js → useMergeTag-1lrpNyR5.js} +4 -4
  126. package/dist/cdn/chunks/{useMergeTag-B8ULmsnp.js.map → useMergeTag-1lrpNyR5.js.map} +1 -1
  127. package/dist/cdn/chunks/{withCurrentFont-MK8ga9q9.js → withCurrentFont-DZfmiv8V.js} +2 -2
  128. package/dist/cdn/chunks/{withCurrentFont-MK8ga9q9.js.map → withCurrentFont-DZfmiv8V.js.map} +1 -1
  129. package/dist/cdn/editor.css +1 -1
  130. package/dist/cdn/editor.js +285 -285
  131. package/dist/cdn/editor.js.map +1 -1
  132. package/dist/{composables-XjYKaKhY.js → composables-DPgNn9GZ.js} +963 -941
  133. package/dist/{createCloudRuntime-DGV5a5Af.js → createCloudRuntime-Bw8TLmQ8.js} +2 -2
  134. package/dist/{cdn/chunks/de-DaOUfYBX.js → de-Cc6Ue0UD.js} +10 -3
  135. package/dist/{dist-Cdkm20M6.js → dist-CBdk1Vcb.js} +978 -815
  136. package/dist/{en-C0pHHMiR.js → en-BX4FujAQ.js} +10 -1
  137. package/dist/{cdn/chunks/es-CxyEKr6n.js → es-Do5b-MKU.js} +10 -3
  138. package/dist/{extensions-BJ184osp.js → extensions-QFAARrjF.js} +336 -330
  139. package/dist/{cdn/chunks/fr-CYbamiI6.js → fr-S1n2Ebzp.js} +10 -3
  140. package/dist/index.d.ts +14 -1
  141. package/dist/{ja-DfaIAoGI.js → ja-DLwcq4bA.js} +10 -1
  142. package/dist/{cdn/chunks/nl-DkrB-VKZ.js → nl-0JSWaZpT.js} +10 -3
  143. package/dist/{cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js → normalizeMergeTagMarkup-BS0nRvhq.js} +97 -89
  144. package/dist/{cdn/chunks/preRenderCustomBlocks-f7GEKdvw.js → preRenderCustomBlocks-CiKvKd8V.js} +4 -6
  145. package/dist/{cdn/chunks/pt-BR-CY5Ye7eP.js → pt-BR-D3VlIMDZ.js} +10 -3
  146. package/dist/{sanitizeHtml-2rjV0r-6.js → sanitizeHtml-USjTyALR.js} +5 -5
  147. package/dist/{socialIcons-TFiOkpoU.js → socialIcons-NvIg5ahU.js} +401 -400
  148. package/dist/style.css +1 -1
  149. package/dist/templatical-editor.js +190 -190
  150. package/dist/useLocalizedDisplay-LdjosX4w.js +31 -0
  151. package/dist/{useLogicTag-BXXXQQmi.js → useLogicTag-D8zgkXfb.js} +1 -1
  152. package/dist/{useMergeTag-C9Okr87y.js → useMergeTag-k7Kr0nMd.js} +3 -3
  153. package/dist/{withCurrentFont-DJiQqZzL.js → withCurrentFont-Bzeg_gfH.js} +1 -1
  154. package/package.json +7 -7
  155. package/dist/cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js.map +0 -1
  156. package/dist/cdn/chunks/Toolbar-BlWVQRcA.js.map +0 -1
  157. package/dist/cdn/chunks/composables-Jc3uZuLs.js.map +0 -1
  158. package/dist/cdn/chunks/de-DaOUfYBX.js.map +0 -1
  159. package/dist/cdn/chunks/en-C0pHHMiR.js.map +0 -1
  160. package/dist/cdn/chunks/es-CxyEKr6n.js.map +0 -1
  161. package/dist/cdn/chunks/extensions-DcMKZpzh.js.map +0 -1
  162. package/dist/cdn/chunks/fr-CYbamiI6.js.map +0 -1
  163. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +0 -1
  164. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +0 -1
  165. package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js.map +0 -1
  166. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +0 -1
  167. package/dist/cdn/chunks/src-8bYYJPCt.js +0 -671
  168. package/dist/cdn/chunks/src-8bYYJPCt.js.map +0 -1
  169. package/dist/cdn/chunks/src-A_cKeTM_.js.map +0 -1
  170. package/dist/cdn/chunks/src-BQUv2CYU.js.map +0 -1
  171. package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js +0 -33
  172. package/dist/useLocalizedDisplay-DNNwDRxL.js +0 -31
@@ -1,42 +1,42 @@
1
1
  import { A as e, B as t, D as n, F as r, Ft as i, H as a, L as o, M as s, Mt as c, N as l, O as u, P as d, Pt as f, Q as p, S as m, U as h, W as g, Y as _, Z as v, _ as y, a as b, at as x, b as S, c as C, ct as w, d as T, et as E, f as D, g as O, j as k, k as A, l as j, nt as M, ot as N, q as ee, r as P, st as te, u as F, v as I, w as L, y as R } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
2
2
  import { c as z, o as ne, s as re } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
3
- import { $t as ie, A as ae, At as oe, B as se, Bt as B, Et as ce, Ft as le, G as ue, Gt as de, Ht as fe, I as pe, It as me, J as he, Jt as ge, K as _e, Kt as ve, L as ye, Lt as be, M as xe, N as Se, O as Ce, Ot as we, P as Te, Q as Ee, Qt as De, R as Oe, Rt as ke, Ut as Ae, V as je, Vt as Me, W as Ne, Wt as Pe, X as Fe, Xt as Ie, Zt as Le, _t as Re, at as ze, c as Be, ct as Ve, dt as He, en as Ue, f as We, ft as Ge, g as Ke, ht as qe, j as Je, lt as Ye, nt as Xe, o as Ze, p as Qe, q as $e, qt as et, rt as tt, s as nt, st as rt, tt as it, v as at, vt as ot, x as st, y as ct, yt as lt, z as ut, zt as dt } from "./dist-Cdkm20M6.js";
4
- import { B as ft, C as pt, D as mt, E as ht, F as gt, H as _t, O as vt, P as yt, T as bt, U as xt, _ as St, a as Ct, f as wt, h as Tt, k as Et, n as Dt, o as Ot, t as kt, u as At, v as jt, w as Mt, x as Nt, y as Pt, z as Ft } from "./socialIcons-TFiOkpoU.js";
5
- import { t as It } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
6
- import { t as Lt } from "./createLucideIcon-CgDE3xAR.js";
7
- import { t as Rt } from "./clock-BVT5u2uG.js";
8
- import { n as zt } from "./upload-Cp8o-hrN.js";
9
- import { t as Bt } from "./image-Ch8tR35K.js";
10
- import { n as Vt, r as Ht, t as Ut } from "./sanitizeHtml-2rjV0r-6.js";
11
- import { t as Wt } from "./message-circle-C23R6OJR.js";
12
- import { t as Gt } from "./pencil-BK7GrQuA.js";
13
- import { t as Kt } from "./trash-B99WixTA.js";
14
- import { t as qt } from "./triangle-alert-CHMiDkHa.js";
15
- import { $ as Jt, A as Yt, B as Xt, C as Zt, D as Qt, F as $t, G as en, H as tn, I as nn, J as rn, K as an, L as on, M as sn, N as cn, O as ln, P as un, Q as dn, R as fn, S as pn, T as mn, U as hn, V as gn, W as _n, X as vn, _ as yn, a as bn, at as xn, b as Sn, c as Cn, d as wn, et as Tn, g as En, h as Dn, i as On, it as kn, j as An, k as jn, l as Mn, m as Nn, nt as Pn, ot as Fn, p as In, q as Ln, r as Rn, rt as zn, s as Bn, tt as Vn, u as Hn, v as Un, w as Wn, x as Gn, y as Kn, z as qn } from "./keys-BCqskl51.js";
16
- import { t as Jn } from "./useI18n-CgtvtF4C.js";
17
- import { n as Yn } from "./useLocalizedDisplay-DNNwDRxL.js";
18
- import { t as Xn } from "./plural-CyxrJXL1.js";
19
- import { t as Zn } from "./languageName-DEEOhDWI.js";
20
- import { m as Qn, w as $n, x as er } from "./styleConstants-CgiNKdnc.js";
21
- import { _ as tr, h as nr, v as rr, y as ir } from "./dist-CX7skkvG.js";
22
- import { a as ar, c as or, i as sr, l as cr } from "./dist-0alKVRc_.js";
23
- import { t as lr } from "./useEditorRoot-DY3mgcHm.js";
3
+ import { $t as ie, A as ae, B as oe, Bt as se, Dt as B, G as ce, Gt as le, Ht as ue, I as de, It as fe, J as pe, Jt as me, K as he, Kt as ge, L as _e, Lt as ve, M as ye, N as be, O as xe, P as Se, Q as Ce, R as we, Rt as Te, Ut as Ee, V as De, Vt as Oe, W as ke, Wt as Ae, X as je, Xt as Me, Yt as Ne, Zt as Pe, bt as Fe, c as Ie, ct as Le, en as Re, f as ze, ft as Be, g as Ve, gt as He, it as Ue, j as We, jt as Ge, kt as Ke, lt as qe, nn as Je, nt as Ye, o as Xe, ot as Ze, p as Qe, pt as $e, q as et, qt as tt, rn as nt, rt, s as it, tn as at, tt as ot, ut as st, v as ct, vt as lt, x as ut, y as dt, yt as ft, z as pt, zt as mt } from "./dist-CBdk1Vcb.js";
4
+ import { B as ht, C as gt, D as _t, E as vt, F as yt, H as bt, O as xt, P as St, T as Ct, U as wt, _ as Tt, a as Et, f as Dt, h as Ot, k as kt, n as At, o as jt, t as Mt, u as Nt, v as Pt, w as Ft, x as It, y as Lt, z as Rt } from "./socialIcons-NvIg5ahU.js";
5
+ import { t as zt } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
6
+ import { t as Bt } from "./createLucideIcon-CgDE3xAR.js";
7
+ import { t as Vt } from "./clock-BVT5u2uG.js";
8
+ import { n as Ht } from "./upload-Cp8o-hrN.js";
9
+ import { t as Ut } from "./image-Ch8tR35K.js";
10
+ import { n as Wt, r as Gt, t as Kt } from "./sanitizeHtml-USjTyALR.js";
11
+ import { t as qt } from "./message-circle-C23R6OJR.js";
12
+ import { t as Jt } from "./pencil-BK7GrQuA.js";
13
+ import { t as Yt } from "./trash-B99WixTA.js";
14
+ import { t as Xt } from "./triangle-alert-CHMiDkHa.js";
15
+ import { $ as Zt, A as Qt, B as $t, C as en, D as tn, F as nn, G as rn, H as an, I as on, J as sn, K as cn, L as ln, M as un, N as dn, O as fn, P as pn, Q as mn, R as hn, S as gn, T as _n, U as vn, V as yn, W as bn, X as xn, _ as Sn, a as Cn, at as wn, b as Tn, c as En, d as Dn, et as On, g as kn, h as An, i as jn, it as Mn, j as Nn, k as Pn, l as Fn, m as In, nt as Ln, ot as Rn, p as zn, q as Bn, r as Vn, rt as Hn, s as Un, tt as Wn, u as Gn, v as Kn, w as qn, x as Jn, y as Yn, z as Xn } from "./keys-BCqskl51.js";
16
+ import { t as Zn } from "./useI18n-CgtvtF4C.js";
17
+ import { n as Qn } from "./useLocalizedDisplay-LdjosX4w.js";
18
+ import { t as $n } from "./plural-CyxrJXL1.js";
19
+ import { t as er } from "./languageName-DEEOhDWI.js";
20
+ import { m as tr, w as nr, x as rr } from "./styleConstants-CgiNKdnc.js";
21
+ import { _ as ir, h as ar, v as or, y as sr } from "./dist-CX7skkvG.js";
22
+ import { a as cr, c as lr, i as ur, l as dr } from "./dist-0alKVRc_.js";
23
+ import { t as fr } from "./useEditorRoot-DY3mgcHm.js";
24
24
  import "./useCloudI18n-Dh2iydo1.js";
25
- import { t as ur } from "./useMergeTag-C9Okr87y.js";
26
- import { t as dr } from "./logger-BOu7oEtk.js";
27
- import { a as fr, c as pr, i as mr, n as hr, o as gr, t as _r } from "./usePopoverPosition-VDQjyX_A.js";
28
- import { t as vr } from "./useLogicTag-BXXXQQmi.js";
29
- import { r as yr, t as br } from "./templateSettingsFields-cjlP-jdw.js";
30
- import { t as xr } from "./LoadingTrack-BG8cg9xi.js";
31
- import { t as Sr } from "./readableTextColor-BfZUGnVj.js";
32
- var Cr = Lt({
25
+ import { t as pr } from "./useMergeTag-k7Kr0nMd.js";
26
+ import { t as mr } from "./logger-BOu7oEtk.js";
27
+ import { a as hr, c as gr, i as _r, n as vr, o as yr, t as br } from "./usePopoverPosition-VDQjyX_A.js";
28
+ import { t as xr } from "./useLogicTag-D8zgkXfb.js";
29
+ import { r as Sr, t as Cr } from "./templateSettingsFields-cjlP-jdw.js";
30
+ import { t as wr } from "./LoadingTrack-BG8cg9xi.js";
31
+ import { t as Tr } from "./readableTextColor-BfZUGnVj.js";
32
+ var Er = Bt({
33
33
  name: "bookmark",
34
34
  size: 24,
35
35
  node: [["path", {
36
36
  d: "M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",
37
37
  key: "oz39mx"
38
38
  }]]
39
- }), wr = Lt({
39
+ }), Dr = Bt({
40
40
  name: "box",
41
41
  size: 24,
42
42
  node: [
@@ -53,7 +53,7 @@ var Cr = Lt({
53
53
  key: "d0xqtd"
54
54
  }]
55
55
  ]
56
- }), Tr = Lt({
56
+ }), Or = Bt({
57
57
  name: "eye-off",
58
58
  size: 24,
59
59
  node: [
@@ -74,7 +74,7 @@ var Cr = Lt({
74
74
  key: "1ooewy"
75
75
  }]
76
76
  ]
77
- }), Er = Lt({
77
+ }), kr = Bt({
78
78
  name: "funnel",
79
79
  size: 24,
80
80
  node: [["path", {
@@ -82,7 +82,7 @@ var Cr = Lt({
82
82
  key: "sc7q7i"
83
83
  }]],
84
84
  aliases: ["filter"]
85
- }), Dr = Lt({
85
+ }), Ar = Bt({
86
86
  name: "grip-vertical",
87
87
  size: 24,
88
88
  node: [
@@ -123,14 +123,14 @@ var Cr = Lt({
123
123
  key: "f4zoj3"
124
124
  }]
125
125
  ]
126
- }), Or = Lt({
126
+ }), jr = Bt({
127
127
  name: "puzzle",
128
128
  size: 24,
129
129
  node: [["path", {
130
130
  d: "M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",
131
131
  key: "w46dr5"
132
132
  }]]
133
- }), kr = Lt({
133
+ }), Mr = Bt({
134
134
  name: "video",
135
135
  size: 24,
136
136
  node: [["path", {
@@ -144,11 +144,11 @@ var Cr = Lt({
144
144
  rx: "2",
145
145
  key: "158x01"
146
146
  }]]
147
- }), Ar = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
148
- function jr(e, n) {
149
- let r = lr(), i = null, a = null, o = null;
147
+ }), Nr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
148
+ function Pr(e, n) {
149
+ let r = fr(), i = null, a = null, o = null;
150
150
  function s() {
151
- return e.value ? Array.from(e.value.querySelectorAll(Ar)).filter((e) => e.offsetParent !== null) : [];
151
+ return e.value ? Array.from(e.value.querySelectorAll(Nr)).filter((e) => e.offsetParent !== null) : [];
152
152
  }
153
153
  function c(e) {
154
154
  if (e.key !== "Tab") return;
@@ -163,7 +163,7 @@ function jr(e, n) {
163
163
  o = null;
164
164
  let t = s();
165
165
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
166
- }), a = ar(e, "keydown", c);
166
+ }), a = cr(e, "keydown", c);
167
167
  }
168
168
  function u(e = {}) {
169
169
  let t = e.restoreFocus !== !1;
@@ -177,8 +177,8 @@ function jr(e, n) {
177
177
  });
178
178
  }
179
179
  // src/composables/useEmoji.ts
180
- function Mr() {
181
- let [e, n] = rr(!1), r = M([]), i = !1;
180
+ function Fr() {
181
+ let [e, n] = or(!1), r = M([]), i = !1;
182
182
  v(() => {
183
183
  i = !0;
184
184
  }), t(e, async (e) => {
@@ -202,7 +202,7 @@ function Mr() {
202
202
  };
203
203
  }
204
204
  // src/composables/useBlockRegistry.ts
205
- function Nr() {
205
+ function Ir() {
206
206
  let e = M(/* @__PURE__ */ new Map());
207
207
  function t(t, n) {
208
208
  e.value.set(t, n), te(e);
@@ -210,7 +210,7 @@ function Nr() {
210
210
  function n(t, n) {
211
211
  let r = `custom:${t.type}`, i = {
212
212
  component: n,
213
- createBlock: () => Se(t),
213
+ createBlock: () => be(t),
214
214
  definition: t
215
215
  };
216
216
  e.value.set(r, i), te(e);
@@ -236,9 +236,9 @@ function Nr() {
236
236
  let t = a(e.customType);
237
237
  if (!t) return o("Block definition not found");
238
238
  try {
239
- return await Te(await import("./liquid.browser-DUXEekoN.js")).parseAndRender(t.template, e.fieldValues);
239
+ return await Se(await import("./liquid.browser-DUXEekoN.js")).parseAndRender(t.template, e.fieldValues);
240
240
  } catch (t) {
241
- return dr.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
241
+ return mr.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
242
242
  }
243
243
  }
244
244
  function c(t) {
@@ -255,7 +255,7 @@ function Nr() {
255
255
  };
256
256
  }
257
257
  // src/composables/useFonts.ts
258
- var Pr = [
258
+ var Lr = [
259
259
  {
260
260
  value: "Arial",
261
261
  label: "Arial"
@@ -284,19 +284,19 @@ var Pr = [
284
284
  value: "Courier New",
285
285
  label: "Courier New"
286
286
  }
287
- ], Fr = "Arial, sans-serif";
288
- function Ir(e) {
289
- if (e === void 0 || e === !0) return [...Pr];
287
+ ], Rr = "Arial, sans-serif";
288
+ function zr(e) {
289
+ if (e === void 0 || e === !0) return [...Lr];
290
290
  if (e === !1) return [];
291
291
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
292
292
  for (let i of e) {
293
- let e = i.toLowerCase(), a = Pr.find((t) => t.value.toLowerCase() === e);
294
- a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), dr.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Pr.map((e) => e.value).join(", ")}.`));
293
+ let e = i.toLowerCase(), a = Lr.find((t) => t.value.toLowerCase() === e);
294
+ a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), mr.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Lr.map((e) => e.value).join(", ")}.`));
295
295
  }
296
296
  return t;
297
297
  }
298
- function Lr(e) {
299
- let t = E(e?.customFonts ?? []), n = E(!1), r = Ir(e?.builtIns), i = C(() => e?.defaultFallback ?? Fr), a = C(() => {
298
+ function Br(e) {
299
+ let t = E(e?.customFonts ?? []), n = E(!1), r = zr(e?.builtIns), i = C(() => e?.defaultFallback ?? Rr), a = C(() => {
300
300
  let e = [...r], n = t.value.map((e) => ({
301
301
  value: e.name,
302
302
  label: e.name,
@@ -307,18 +307,18 @@ function Lr(e) {
307
307
  function o(e) {
308
308
  return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
309
309
  }
310
- let s = e?.defaultFont ?? Fr.split(",")[0].trim();
311
- o(s) || dr.warn(`config.fonts: new templates seed "${s}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
310
+ let s = e?.defaultFont ?? Rr.split(",")[0].trim();
311
+ o(s) || mr.warn(`config.fonts: new templates seed "${s}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
312
312
  function c() {
313
313
  if (e?.defaultFont && o(e.defaultFont)) {
314
314
  let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
315
315
  if (t) return t.value;
316
316
  }
317
- return Fr;
317
+ return Rr;
318
318
  }
319
319
  let l = C(() => c());
320
320
  function u(e) {
321
- return dt(e, {
321
+ return se(e, {
322
322
  customFonts: t.value,
323
323
  defaultFallback: i.value
324
324
  });
@@ -337,7 +337,7 @@ function Lr(e) {
337
337
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
338
338
  });
339
339
  } catch (t) {
340
- dr.warn(`Failed to load custom font "${e.name}":`, t);
340
+ mr.warn(`Failed to load custom font "${e.name}":`, t);
341
341
  }
342
342
  });
343
343
  await Promise.allSettled(e), !f && (n.value = !0);
@@ -361,7 +361,7 @@ function Lr(e) {
361
361
  };
362
362
  }
363
363
  // src/composables/useThemeStyles.ts
364
- var Rr = {
364
+ var Vr = {
365
365
  bg: "--tpl-bg",
366
366
  bgElevated: "--tpl-bg-elevated",
367
367
  bgHover: "--tpl-bg-hover",
@@ -385,10 +385,10 @@ var Rr = {
385
385
  dangerLight: "--tpl-danger-light",
386
386
  canvasBg: "--tpl-canvas-bg"
387
387
  };
388
- function zr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
388
+ function Hr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
389
389
  return { themeStyles: C(() => {
390
390
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
391
- if (a) for (let [e, t] of Object.entries(Rr)) {
391
+ if (a) for (let [e, t] of Object.entries(Vr)) {
392
392
  let n = a[e];
393
393
  n && (r[t] = n);
394
394
  }
@@ -396,12 +396,12 @@ function zr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
396
396
  }) };
397
397
  }
398
398
  // src/utils/mergeTagNodeSpec.ts
399
- function Br(e, t, n) {
400
- return Re(e, n) ? {
399
+ function Ur(e, t, n) {
400
+ return lt(e, n) ? {
401
401
  type: "logicMergeTagNode",
402
402
  attrs: {
403
403
  value: e,
404
- keyword: rt(e, n)
404
+ keyword: Le(e, n)
405
405
  }
406
406
  } : {
407
407
  type: "mergeTagNode",
@@ -412,32 +412,32 @@ function Br(e, t, n) {
412
412
  };
413
413
  }
414
414
  // src/utils/insertLogicTag.ts
415
- function Vr(e) {
415
+ function Wr(e) {
416
416
  return "before" in e && "after" in e;
417
417
  }
418
- function Hr(e, t, n) {
419
- if (!Vr(t)) {
420
- e.chain().focus().insertContent(Br(t.value, t.label, n)).run();
418
+ function Gr(e, t, n) {
419
+ if (!Wr(t)) {
420
+ e.chain().focus().insertContent(Ur(t.value, t.label, n)).run();
421
421
  return;
422
422
  }
423
- let r = Br(t.before, t.label, n), i = Br(t.after, t.label, n), { from: a, to: o } = e.state.selection;
423
+ let r = Ur(t.before, t.label, n), i = Ur(t.after, t.label, n), { from: a, to: o } = e.state.selection;
424
424
  a === o ? e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run() : e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
425
425
  }
426
426
  // src/utils/linkColorExtension.ts
427
- function Ur(e) {
427
+ function Kr(e) {
428
428
  if (!e) return null;
429
429
  let t = e.trim();
430
430
  return /^#[0-9a-f]{3,8}$/i.test(t) || /^(rgb|rgba|hsl|hsla)\(\s*[0-9.,%/\s]+\)$/i.test(t) || /^[a-z]+$/i.test(t) ? t : null;
431
431
  }
432
- function Wr(e) {
432
+ function qr(e) {
433
433
  return e.extend({ addAttributes() {
434
434
  return {
435
435
  ...this.parent?.(),
436
436
  color: {
437
437
  default: null,
438
- parseHTML: (e) => Ur(gr(e.style.color)),
438
+ parseHTML: (e) => Kr(yr(e.style.color)),
439
439
  renderHTML: (e) => {
440
- let t = Ur(e.color);
440
+ let t = Kr(e.color);
441
441
  return t ? { style: `color: ${t}` } : {};
442
442
  }
443
443
  }
@@ -445,9 +445,9 @@ function Wr(e) {
445
445
  } });
446
446
  }
447
447
  // src/composables/useRichTextLinkDialog.ts
448
- function Gr(e, t = Ke.liquid, n = () => !0) {
448
+ function Jr(e, t = Ve.liquid, n = () => !0) {
449
449
  let r = E(!1), i = E(""), a = E(""), o = E(null);
450
- jr(o, r);
450
+ Pr(o, r);
451
451
  function s() {
452
452
  if (!n()) return;
453
453
  let t = e.value?.getAttributes("link") ?? {};
@@ -458,7 +458,7 @@ function Gr(e, t = Ke.liquid, n = () => !0) {
458
458
  if (i.value) {
459
459
  let t = d(i.value);
460
460
  if (t !== null) {
461
- let n = Ur(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
461
+ let n = Kr(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
462
462
  n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
463
463
  }
464
464
  }
@@ -475,7 +475,7 @@ function Gr(e, t = Ke.liquid, n = () => !0) {
475
475
  if (t.startsWith("#")) return t;
476
476
  if (t.startsWith("//")) return `https:${t}`;
477
477
  if (l.test(t)) return t;
478
- let n = Xe(t);
478
+ let n = Ye(t);
479
479
  return n ? Qe.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
480
480
  }
481
481
  function f() {
@@ -500,13 +500,13 @@ function Gr(e, t = Ke.liquid, n = () => !0) {
500
500
  };
501
501
  }
502
502
  // src/composables/useRichTextEditor.ts
503
- function Kr(e) {
504
- let n = L(Un, null), r = pr(), { mergeTags: i, canRequestMergeTag: a, isRequesting: o, requestMergeTag: s, syntax: c, autocomplete: l } = ur(), { canInsertLogicTag: u, isRequesting: d, requestLogicTag: f } = vr(), p = L(Vn, null), m = (_(p) ? p.value : p)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", h = He(c), g = M(null), v = n?.content ? Yn(n) : null, y = () => ke(v?.settings.value ?? { locale: "en" });
503
+ function Yr(e) {
504
+ let n = L(Kn, null), r = gr(), { mergeTags: i, canRequestMergeTag: a, isRequesting: o, requestMergeTag: s, syntax: c, autocomplete: l } = pr(), { canInsertLogicTag: u, isRequesting: d, requestLogicTag: f } = xr(), p = L(Wn, null), m = (_(p) ? p.value : p)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", h = Be(c), g = M(null), v = n?.content ? Qn(n) : null, y = () => mt(v?.settings.value ?? { locale: "en" });
505
505
  t(y, (e) => {
506
506
  let t = g.value?.view.dom;
507
507
  t && t.setAttribute("dir", e);
508
508
  });
509
- let { showLinkDialog: b, linkUrl: x, linkColor: S, linkDialogRef: C, openLinkDialog: w, insertLink: T, removeLink: D, closeLinkDialog: O, handleLinkKeydown: k } = Gr(g, c, () => r.value);
509
+ let { showLinkDialog: b, linkUrl: x, linkColor: S, linkDialogRef: C, openLinkDialog: w, insertLink: T, removeLink: D, closeLinkDialog: O, handleLinkKeydown: k } = Jr(g, c, () => r.value);
510
510
  t(r, (e) => {
511
511
  if (g.value?.setEditable(e, !1), !e) {
512
512
  O();
@@ -514,7 +514,7 @@ function Kr(e) {
514
514
  e && e.view.dispatch(e.state.tr);
515
515
  }
516
516
  });
517
- let { start: j, stop: N } = tr(() => g.value?.commands.focus("end"), 0, { immediate: !1 }), ee = M(null), P = E(!0), te = E(null), F = !1, I = null;
517
+ let { start: j, stop: N } = ir(() => g.value?.commands.focus("end"), 0, { immediate: !1 }), ee = M(null), P = E(!0), te = E(null), F = !1, I = null;
518
518
  async function R() {
519
519
  te.value = null, P.value = !0;
520
520
  try {
@@ -545,7 +545,7 @@ function Kr(e) {
545
545
  g.value = u, P.value = !1, j();
546
546
  } catch (t) {
547
547
  if (F) return;
548
- dr.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), te.value = t instanceof Error ? t.message : "Failed to load editor", P.value = !1;
548
+ mr.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), te.value = t instanceof Error ? t.message : "Failed to load editor", P.value = !1;
549
549
  }
550
550
  }
551
551
  function z() {
@@ -563,7 +563,7 @@ function Kr(e) {
563
563
  let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
564
564
  r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || e.onDone();
565
565
  }
566
- ar(document, "mousedown", re), A(() => {
566
+ cr(document, "mousedown", re), A(() => {
567
567
  F = !0, ne(), N(), g.value?.destroy();
568
568
  });
569
569
  async function ie() {
@@ -577,7 +577,7 @@ function Kr(e) {
577
577
  async function ae() {
578
578
  if (!r.value) return;
579
579
  let e = await f();
580
- !F && r.value && (e && g.value ? Hr(g.value, e, c) : g.value?.commands.focus());
580
+ !F && r.value && (e && g.value ? Gr(g.value, e, c) : g.value?.commands.focus());
581
581
  }
582
582
  return {
583
583
  editor: g,
@@ -606,25 +606,25 @@ function Kr(e) {
606
606
  };
607
607
  }
608
608
  // src/utils/activeEditorTracker.ts
609
- var qr = /* @__PURE__ */ new Set(), Jr = 0, Yr = 0;
610
- function Xr() {
611
- let e = ++Yr;
612
- return qr.add(e), Jr === 0 && (Jr = e), {
609
+ var Xr = /* @__PURE__ */ new Set(), Zr = 0, Qr = 0;
610
+ function $r() {
611
+ let e = ++Qr;
612
+ return Xr.add(e), Zr === 0 && (Zr = e), {
613
613
  id: e,
614
- isActive: () => qr.size <= 1 || Jr === e,
614
+ isActive: () => Xr.size <= 1 || Zr === e,
615
615
  claim: () => {
616
- Jr = e;
616
+ Zr = e;
617
617
  },
618
618
  dispose: () => {
619
- if (qr.delete(e), Jr === e) {
620
- let e = Array.from(qr);
621
- Jr = e[e.length - 1] ?? 0;
619
+ if (Xr.delete(e), Zr === e) {
620
+ let e = Array.from(Xr);
621
+ Zr = e[e.length - 1] ?? 0;
622
622
  }
623
623
  }
624
624
  };
625
625
  }
626
626
  // src/utils/resolveLintOptions.ts
627
- function Zr(e) {
627
+ function ei(e) {
628
628
  let t = e.contentLocale ?? e.content?.settings.locale;
629
629
  return {
630
630
  ...e.lint,
@@ -633,8 +633,8 @@ function Zr(e) {
633
633
  };
634
634
  }
635
635
  // src/composables/usePreviewResolution.ts
636
- var Qr = 500;
637
- function $r(e) {
636
+ var ti = 500;
637
+ function ni(e) {
638
638
  let n = typeof e.resolvePreview == "function", r = E(null), i = E(!1), a = E(!1), o = 0, s = null;
639
639
  function c() {
640
640
  s !== null && (clearTimeout(s), s = null);
@@ -645,13 +645,13 @@ function $r(e) {
645
645
  let n = ++o;
646
646
  i.value = !0;
647
647
  let s = {
648
- content: de(e.getContent()),
648
+ content: ge(e.getContent()),
649
649
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
650
650
  };
651
651
  try {
652
652
  let e = await t(s);
653
653
  if (n !== o) return;
654
- if (!lt(e)) {
654
+ if (!Fe(e)) {
655
655
  a.value = !0;
656
656
  return;
657
657
  }
@@ -666,7 +666,7 @@ function $r(e) {
666
666
  function u() {
667
667
  n && (c(), r.value === null ? l() : s = setTimeout(() => {
668
668
  s = null, l();
669
- }, Qr));
669
+ }, ti));
670
670
  }
671
671
  return t(() => [
672
672
  e.isActive(),
@@ -689,7 +689,7 @@ function $r(e) {
689
689
  };
690
690
  }
691
691
  // src/composables/useMergeTagPicker.ts
692
- function ei() {
692
+ function ri() {
693
693
  let e = E(!1), t = E([]), n = E(null), r = null;
694
694
  function i(i, a) {
695
695
  if (r) {
@@ -719,7 +719,7 @@ function ei() {
719
719
  };
720
720
  }
721
721
  // src/composables/useLogicTagPicker.ts
722
- function ti() {
722
+ function ii() {
723
723
  let e = E(!1), t = E([]), n = E([]), r = null;
724
724
  function i(i, a) {
725
725
  if (r) {
@@ -749,23 +749,23 @@ function ti() {
749
749
  };
750
750
  }
751
751
  // src/composables/useTemplateLint.ts
752
- function ni(e) {
752
+ function ai(e) {
753
753
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 && e.localization === !1 : !1;
754
754
  }
755
- var ri = !1;
756
- function ii(e) {
755
+ var oi = !1;
756
+ function si(e) {
757
757
  let n = E([]), r = E(0), i = E(-1), a = t(e.content, () => {
758
758
  r.value++;
759
- }, { deep: !0 }), o = E(!1), s = E(!1), c = M(null), l = ni(e.options), u = null, d = !1;
759
+ }, { deep: !0 }), o = E(!1), s = E(!1), c = M(null), l = ai(e.options), u = null, d = !1;
760
760
  l || f();
761
761
  async function f() {
762
762
  try {
763
763
  let t = await import("@templatical/quality");
764
764
  if (d) return;
765
- c.value = { lintTemplate: t.lintTemplate }, o.value = !0, p(), u = ir(r, p, { debounce: e.debounce ?? 500 });
765
+ c.value = { lintTemplate: t.lintTemplate }, o.value = !0, p(), u = sr(r, p, { debounce: e.debounce ?? 500 });
766
766
  } catch {
767
767
  if (d) return;
768
- s.value = !0, ri || (ri = !0, dr.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
768
+ s.value = !0, oi || (oi = !0, mr.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
769
769
  }
770
770
  }
771
771
  function p() {
@@ -804,7 +804,7 @@ function ii(e) {
804
804
  };
805
805
  }
806
806
  // src/composables/useKeyboardReorder.ts
807
- function ai(e, t, n = []) {
807
+ function ci(e, t, n = []) {
808
808
  let r = E(null), i = E(""), a = null;
809
809
  function o(t) {
810
810
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -831,7 +831,7 @@ function ai(e, t, n = []) {
831
831
  let i = o(r);
832
832
  if (!i) return "";
833
833
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
834
- return a ? Pt(a, t.t, n) : "";
834
+ return a ? Lt(a, t.t, n) : "";
835
835
  }
836
836
  function c(t, n) {
837
837
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -899,14 +899,14 @@ function ai(e, t, n = []) {
899
899
  };
900
900
  }
901
901
  // src/composables/useUiTheme.ts
902
- function oi(e) {
903
- let t = or("(prefers-color-scheme: dark)");
902
+ function li(e) {
903
+ let t = lr("(prefers-color-scheme: dark)");
904
904
  return { resolvedTheme: C(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
905
905
  }
906
906
  // src/composables/useCustomBlockStylesheets.ts
907
- function si(e, t) {
907
+ function ui(e, t) {
908
908
  return C(() => {
909
- let n = ci(e.value.blocks);
909
+ let n = di(e.value.blocks);
910
910
  if (n.size === 0) return [];
911
911
  let r = /* @__PURE__ */ new Set(), i = [];
912
912
  for (let e of n) {
@@ -918,75 +918,75 @@ function si(e, t) {
918
918
  return i;
919
919
  });
920
920
  }
921
- function ci(e) {
921
+ function di(e) {
922
922
  let t = /* @__PURE__ */ new Set();
923
- return li(e, t), t;
923
+ return fi(e, t), t;
924
924
  }
925
- function li(e, t) {
926
- for (let n of e) if (qe(n)) t.add(n.customType);
925
+ function fi(e, t) {
926
+ for (let n of e) if (He(n)) t.add(n.customType);
927
927
  else if (n.type === "section") {
928
928
  let e = n.children;
929
929
  if (!e) continue;
930
- for (let n of e) li(n, t);
931
- } else ce(n) && li(n.children, t);
930
+ for (let n of e) fi(n, t);
931
+ } else B(n) && fi(n.children, t);
932
932
  }
933
933
  // src/utils/registerBuiltInBlocks.ts
934
- var ui = [
934
+ var pi = [
935
935
  {
936
936
  type: "section",
937
- createBlock: je
937
+ createBlock: De
938
938
  },
939
939
  {
940
940
  type: "title",
941
- createBlock: $e
941
+ createBlock: et
942
942
  },
943
943
  {
944
944
  type: "paragraph",
945
- createBlock: se
945
+ createBlock: oe
946
946
  },
947
947
  {
948
948
  type: "image",
949
- createBlock: Oe
949
+ createBlock: we
950
950
  },
951
951
  {
952
952
  type: "button",
953
- createBlock: Je
953
+ createBlock: We
954
954
  },
955
955
  {
956
956
  type: "divider",
957
- createBlock: pe
957
+ createBlock: de
958
958
  },
959
959
  {
960
960
  type: "video",
961
- createBlock: he
961
+ createBlock: pe
962
962
  },
963
963
  {
964
964
  type: "social",
965
- createBlock: Ne
965
+ createBlock: ke
966
966
  },
967
967
  {
968
968
  type: "menu",
969
- createBlock: ut
969
+ createBlock: pt
970
970
  },
971
971
  {
972
972
  type: "table",
973
- createBlock: _e
973
+ createBlock: he
974
974
  },
975
975
  {
976
976
  type: "spacer",
977
- createBlock: ue
977
+ createBlock: ce
978
978
  },
979
979
  {
980
980
  type: "html",
981
- createBlock: ye
981
+ createBlock: _e
982
982
  },
983
983
  {
984
984
  type: "countdown",
985
- createBlock: xe
985
+ createBlock: ye
986
986
  }
987
987
  ];
988
- function di(e, t) {
989
- for (let n of ui) {
988
+ function mi(e, t) {
989
+ for (let n of pi) {
990
990
  let r = t[n.type];
991
991
  r && e.registerBuiltIn(n.type, {
992
992
  component: r,
@@ -995,31 +995,31 @@ function di(e, t) {
995
995
  }
996
996
  }
997
997
  // src/utils/resolveHtmlBlockPreview.ts
998
- function fi(e) {
998
+ function hi(e) {
999
999
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
1000
1000
  }
1001
1001
  // src/utils/collectOffPaletteDefaults.ts
1002
- function pi(e) {
1002
+ function gi(e) {
1003
1003
  return typeof e == "object" && !!e && !Array.isArray(e);
1004
1004
  }
1005
- function mi(e, t, n) {
1006
- let r = new Set(e.map((e) => fr(e))), i = [], a = (e, t) => {
1007
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(fr(o)) && i.push(`${t}.${n}: ${o}`) : pi(o) && a(o, `${t}.${n}`);
1005
+ function _i(e, t, n) {
1006
+ let r = new Set(e.map((e) => hr(e))), i = [], a = (e, t) => {
1007
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(hr(o)) && i.push(`${t}.${n}: ${o}`) : gi(o) && a(o, `${t}.${n}`);
1008
1008
  }, o = t;
1009
- for (let [e, t] of Object.entries(Ze)) {
1009
+ for (let [e, t] of Object.entries(Xe)) {
1010
1010
  let n = o?.[e];
1011
1011
  a({
1012
1012
  ...t,
1013
- ...pi(n) ? n : {}
1013
+ ...gi(n) ? n : {}
1014
1014
  }, e);
1015
1015
  }
1016
1016
  return a({
1017
- ...nt,
1017
+ ...it,
1018
1018
  ...n ?? {}
1019
1019
  }, "template"), i;
1020
1020
  }
1021
1021
  // src/utils/localizedBlockDefaults.ts
1022
- function hi(e) {
1022
+ function vi(e) {
1023
1023
  return {
1024
1024
  title: { content: `<p>${e.blockDefaults.title}</p>` },
1025
1025
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -1027,62 +1027,62 @@ function hi(e) {
1027
1027
  };
1028
1028
  }
1029
1029
  // src/i18n/index.ts
1030
- var gi = /* #__PURE__ */ Object.assign({
1031
- "./locales/ca.ts": () => import("./ca-DOuIxWRv.js"),
1032
- "./locales/de.ts": () => import("./de-DaOUfYBX.js"),
1033
- "./locales/en.ts": () => import("./en-C0pHHMiR.js"),
1034
- "./locales/es.ts": () => import("./es-CxyEKr6n.js"),
1035
- "./locales/fr.ts": () => import("./fr-CYbamiI6.js"),
1036
- "./locales/ja.ts": () => import("./ja-DfaIAoGI.js"),
1037
- "./locales/nl.ts": () => import("./nl-DkrB-VKZ.js"),
1038
- "./locales/pt-BR.ts": () => import("./pt-BR-CY5Ye7eP.js")
1039
- }), _i = /* #__PURE__ */ Object.assign({
1030
+ var yi = /* #__PURE__ */ Object.assign({
1031
+ "./locales/ca.ts": () => import("./ca-DIkMxYCN.js"),
1032
+ "./locales/de.ts": () => import("./de-Cc6Ue0UD.js"),
1033
+ "./locales/en.ts": () => import("./en-BX4FujAQ.js"),
1034
+ "./locales/es.ts": () => import("./es-Do5b-MKU.js"),
1035
+ "./locales/fr.ts": () => import("./fr-S1n2Ebzp.js"),
1036
+ "./locales/ja.ts": () => import("./ja-DLwcq4bA.js"),
1037
+ "./locales/nl.ts": () => import("./nl-0JSWaZpT.js"),
1038
+ "./locales/pt-BR.ts": () => import("./pt-BR-D3VlIMDZ.js")
1039
+ }), bi = /* #__PURE__ */ Object.assign({
1040
1040
  "./locales/cloud/de.ts": () => import("./de-6M4JoHoD.js"),
1041
1041
  "./locales/cloud/en.ts": () => import("./en-FzUuJ8HW.js"),
1042
1042
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-Bp92Fc6J.js")
1043
1043
  });
1044
- function vi(e) {
1044
+ function xi(e) {
1045
1045
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
1046
1046
  }
1047
- var yi = vi(gi), bi = vi(_i);
1048
- function xi(e) {
1047
+ var Si = xi(yi), Ci = xi(bi);
1048
+ function wi(e) {
1049
1049
  return e.trim().replace(/_/g, "-").toLowerCase();
1050
1050
  }
1051
- function Si(e, t) {
1052
- let n = xi(e);
1053
- return t.find((e) => xi(e) === n);
1051
+ function Ti(e, t) {
1052
+ let n = wi(e);
1053
+ return t.find((e) => wi(e) === n);
1054
1054
  }
1055
- function Ci(e) {
1056
- return xi(e).split("-")[0];
1055
+ function Ei(e) {
1056
+ return wi(e).split("-")[0];
1057
1057
  }
1058
- function wi(e, t) {
1059
- return Si(e, t) ?? Si(Ci(e), t);
1058
+ function Di(e, t) {
1059
+ return Ti(e, t) ?? Ti(Ei(e), t);
1060
1060
  }
1061
- function Ti(e, t) {
1062
- return wi(e, t) ?? "en";
1061
+ function Oi(e, t) {
1062
+ return Di(e, t) ?? "en";
1063
1063
  }
1064
- async function Ei(e) {
1065
- let t = gi[`./locales/${Ti(e, yi)}.ts`];
1064
+ async function ki(e) {
1065
+ let t = yi[`./locales/${Oi(e, Si)}.ts`];
1066
1066
  return (await t()).default;
1067
1067
  }
1068
- async function Di(e) {
1069
- let t = _i[`./locales/cloud/${Ti(e, bi)}.ts`];
1068
+ async function Ai(e) {
1069
+ let t = bi[`./locales/cloud/${Oi(e, Ci)}.ts`];
1070
1070
  return (await t()).default;
1071
1071
  }
1072
- function Oi(e) {
1073
- return wi(e, yi) !== void 0;
1072
+ function ji(e) {
1073
+ return Di(e, Si) !== void 0;
1074
1074
  }
1075
- function ki(e) {
1076
- return wi(e, bi) !== void 0;
1075
+ function Mi(e) {
1076
+ return Di(e, Ci) !== void 0;
1077
1077
  }
1078
- function Ai() {
1079
- return [...yi];
1078
+ function Ni() {
1079
+ return [...Si];
1080
1080
  }
1081
- function ji() {
1082
- return [...bi];
1081
+ function Pi() {
1082
+ return [...Ci];
1083
1083
  }
1084
1084
  // src/i18n/contentDefaults.ts
1085
- var Mi = {
1085
+ var Fi = {
1086
1086
  en: {
1087
1087
  video: "Video",
1088
1088
  days: "Days",
@@ -1148,17 +1148,17 @@ var Mi = {
1148
1148
  expired: "このオファーは終了しました"
1149
1149
  }
1150
1150
  };
1151
- Object.keys(Mi);
1152
- var Ni = new Map(Object.keys(Mi).map((e) => [e.toLowerCase(), e]));
1153
- function Pi(e) {
1154
- if (!e) return Mi.en;
1155
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Ni.get(t);
1156
- if (n) return Mi[n];
1157
- let r = Ni.get(Ci(t));
1158
- return r ? Mi[r] : Mi.en;
1159
- }
1160
- function Fi(e) {
1161
- let t = Pi(e);
1151
+ Object.keys(Fi);
1152
+ var Ii = new Map(Object.keys(Fi).map((e) => [e.toLowerCase(), e]));
1153
+ function Li(e) {
1154
+ if (!e) return Fi.en;
1155
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Ii.get(t);
1156
+ if (n) return Fi[n];
1157
+ let r = Ii.get(Ei(t));
1158
+ return r ? Fi[r] : Fi.en;
1159
+ }
1160
+ function Ri(e) {
1161
+ let t = Li(e);
1162
1162
  return {
1163
1163
  video: { alt: t.video },
1164
1164
  countdown: {
@@ -1171,9 +1171,9 @@ function Fi(e) {
1171
1171
  };
1172
1172
  }
1173
1173
  // src/utils/collectColorFieldIssues.ts
1174
- function Ii(e, t) {
1174
+ function zi(e, t) {
1175
1175
  let n = [], r = (r, i) => {
1176
- let a = jt(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1176
+ let a = Pt(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1177
1177
  if (a.invalidPresets.length > 0 && n.push({
1178
1178
  id: s("invalid-presets"),
1179
1179
  message: `${o}: presets skipped invalid entries: ${a.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).` + (a.presetsInherited ? " No valid entries are left, so the field inherits colors.presets." : "")
@@ -1184,8 +1184,8 @@ function Ii(e, t) {
1184
1184
  id: s("allow-custom-ignored"),
1185
1185
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
1186
1186
  }), !a.allowCustom && a.presets.length > 0) {
1187
- let e = r.default ?? "", t = new Set(a.presets.map((e) => fr(e)));
1188
- e !== "" && !t.has(fr(e)) && n.push({
1187
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => hr(e)));
1188
+ e !== "" && !t.has(hr(e)) && n.push({
1189
1189
  id: s("off-palette-default"),
1190
1190
  message: `${o} locks custom colours, but its default ${e} falls outside the field's presets: ${a.presets.join(", ")}. New blocks start on a colour the picker can't reselect — set the default from the same palette.`
1191
1191
  });
@@ -1196,7 +1196,7 @@ function Ii(e, t) {
1196
1196
  return n;
1197
1197
  }
1198
1198
  // src/utils/keyboardShortcuts.ts
1199
- function Li(e) {
1199
+ function Bi(e) {
1200
1200
  for (let t of e.composedPath()) {
1201
1201
  if (!(t instanceof HTMLElement)) continue;
1202
1202
  if (t.isContentEditable) return !0;
@@ -1205,14 +1205,14 @@ function Li(e) {
1205
1205
  }
1206
1206
  return !1;
1207
1207
  }
1208
- function Ri(e, t) {
1208
+ function Vi(e, t) {
1209
1209
  let n = e.metaKey || e.ctrlKey;
1210
1210
  if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
1211
1211
  else if (n && e.key.toLowerCase() === "z") {
1212
- if (Li(e)) return;
1212
+ if (Bi(e)) return;
1213
1213
  e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
1214
1214
  } else {
1215
- if (t.isPicking?.() && !Li(e)) {
1215
+ if (t.isPicking?.() && !Bi(e)) {
1216
1216
  if (e.key === "Escape") {
1217
1217
  e.preventDefault(), t.onCancelPick?.();
1218
1218
  return;
@@ -1226,188 +1226,192 @@ function Ri(e, t) {
1226
1226
  return;
1227
1227
  }
1228
1228
  }
1229
- e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Li(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1229
+ e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Bi(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1230
1230
  }
1231
1231
  }
1232
1232
  // src/utils/blockComponentResolver.ts
1233
- function zi(e, t) {
1233
+ function Hi(e, t) {
1234
1234
  let n = { fontFamily: t(e.fontFamily) };
1235
1235
  return e.textColor && (n.color = e.textColor), e.linkColor && (n["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (n["--tpl-doc-link-underline"] = "underline"), n;
1236
1236
  }
1237
- function Bi(e, t, n) {
1237
+ function Ui(e, t, n) {
1238
1238
  if (t) {
1239
1239
  let n = t.getComponent(e);
1240
1240
  if (n) return n;
1241
1241
  }
1242
1242
  return n[e.type] ?? null;
1243
1243
  }
1244
- var Vi = "--tpl-block-bg-layer", Hi = "tpl-has-bg-image";
1245
- function Ui(e, t) {
1244
+ var Wi = "--tpl-block-bg-layer", Gi = "tpl-has-bg-image";
1245
+ function Ki(e, t) {
1246
1246
  if (t === null) return {};
1247
- let n = be(e);
1247
+ let n = Te(e);
1248
1248
  if (n === null) return {};
1249
- let r = t?.trim(), i = r ? it(r) : n.url;
1249
+ let r = t?.trim(), i = r ? ot(r) : n.url;
1250
1250
  return {
1251
1251
  backgroundImage: `url("${i}")`,
1252
1252
  backgroundSize: n.size,
1253
1253
  backgroundPosition: n.position,
1254
1254
  backgroundRepeat: n.repeat,
1255
- [Vi]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1255
+ [Wi]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1256
1256
  };
1257
1257
  }
1258
- function Wi(e) {
1259
- return e && Vi in e ? Hi : void 0;
1258
+ function qi(e) {
1259
+ return e && Wi in e ? Gi : void 0;
1260
1260
  }
1261
- var Gi = {
1261
+ var Ji = {
1262
1262
  top: "flex-start",
1263
1263
  middle: "center",
1264
1264
  bottom: "flex-end"
1265
1265
  };
1266
- function Ki(e, t) {
1267
- let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${qi(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
1266
+ function Yi(e, t) {
1267
+ let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Xi(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
1268
1268
  return {
1269
1269
  display: "flex",
1270
1270
  flexDirection: "column",
1271
- justifyContent: Gi[e.verticalAlign],
1271
+ justifyContent: Ji[e.verticalAlign],
1272
1272
  boxSizing: "border-box",
1273
1273
  ...n
1274
1274
  };
1275
1275
  }
1276
- function qi(e, t) {
1276
+ function Xi(e, t) {
1277
1277
  return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
1278
1278
  }
1279
- function Ji(e, t = {}) {
1279
+ function Zi(e, t = {}) {
1280
1280
  if (e.type === "wrapper") return {};
1281
1281
  let { padding: n, backgroundColor: r } = e.styles, i = {
1282
1282
  padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
1283
1283
  backgroundColor: r || "transparent"
1284
1284
  };
1285
- if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? We.paragraphGap : We.paragraphGap}px`), e.type === "section") {
1286
- let n = Ue(e.borderRadius);
1285
+ if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? ze.paragraphGap : ze.paragraphGap}px`), e.type === "section") {
1286
+ let n = nt(e.borderRadius);
1287
1287
  n !== null && (i.borderRadius = n);
1288
- let r = B(e);
1289
- r?.applied && e.backgroundImage ? (Object.assign(i, Ki(r, t.heroBoxWidth)), Object.assign(i, Ui({
1288
+ let r = Oe(e);
1289
+ r?.applied && e.backgroundImage ? (Object.assign(i, Yi(r, t.heroBoxWidth)), Object.assign(i, Ki({
1290
1290
  ...e.backgroundImage,
1291
1291
  size: "cover",
1292
1292
  repeat: !1
1293
- }, t.backgroundImageUrl))) : (Object.assign(i, Xi(e.border)), Object.assign(i, Ui(e.backgroundImage, t.backgroundImageUrl)));
1293
+ }, t.backgroundImageUrl))) : (Object.assign(i, $i(e.border)), Object.assign(i, Ki(e.backgroundImage, t.backgroundImageUrl)));
1294
1294
  }
1295
1295
  return i;
1296
1296
  }
1297
- function Yi(e, t, n, r) {
1298
- return e.type === "section" ? Ji(e, {
1299
- backgroundImageUrl: pt(t, e.backgroundImage, n),
1297
+ function Qi(e, t, n, r) {
1298
+ return e.type === "section" ? Zi(e, {
1299
+ backgroundImageUrl: gt(t, e.backgroundImage, n),
1300
1300
  heroBoxWidth: r
1301
- }) : Ji(e);
1301
+ }) : Zi(e);
1302
1302
  }
1303
- function Xi(e) {
1303
+ function $i(e) {
1304
1304
  let t = {};
1305
- for (let [n, r] of Object.entries(ie(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
1305
+ for (let [n, r] of Object.entries(Je(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
1306
1306
  return t;
1307
1307
  }
1308
- function Zi(e, t = {}) {
1308
+ function ea(e, t = {}) {
1309
1309
  if (e.type !== "section" || !e.wrapper) return null;
1310
1310
  let n = e.wrapper, r = {};
1311
1311
  n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && (r.padding = `${n.padding.top}px ${n.padding.right}px ${n.padding.bottom}px ${n.padding.left}px`);
1312
- let i = Ue(n.borderRadius);
1313
- return i !== null && (r.borderRadius = i), Object.assign(r, Ui(n.backgroundImage, t.backgroundImageUrl)), r;
1312
+ let i = nt(n.borderRadius);
1313
+ return i !== null && (r.borderRadius = i), Object.assign(r, Ki(n.backgroundImage, t.backgroundImageUrl)), r;
1314
1314
  }
1315
- function Qi(e, t = {}) {
1315
+ function ta(e, t = {}) {
1316
1316
  if (e.type !== "wrapper") return null;
1317
1317
  let n = {};
1318
1318
  if (e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding) {
1319
1319
  let t = e.styles.padding;
1320
1320
  n.padding = `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`;
1321
1321
  }
1322
- return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Ui(e.backgroundImage, t.backgroundImageUrl)), n;
1322
+ return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Ki(e.backgroundImage, t.backgroundImageUrl)), n;
1323
1323
  }
1324
1324
  // src/utils/mergeTagLabelSegments.ts
1325
- function $i(e, t, n, r = !1) {
1325
+ function na(e, t, n, r = !1) {
1326
1326
  if (!e) return [];
1327
- let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
1328
- for (; (s = i.exec(e)) !== null;) {
1329
- s.index > o && a.push({
1327
+ let i = [], a = 0;
1328
+ for (let o of tt(e, n)) {
1329
+ o.index > a && i.push({
1330
1330
  type: "text",
1331
- value: e.slice(o, s.index)
1331
+ value: e.slice(a, o.index)
1332
1332
  });
1333
- let i = s[0];
1334
- if (ot(i, n)) {
1335
- let e = r ? Ye(i, t) : void 0;
1336
- a.push(e === void 0 ? {
1333
+ let s = o.value;
1334
+ if (ft(s, n)) {
1335
+ let e = r ? st(s, t) : void 0;
1336
+ i.push(e === void 0 ? {
1337
1337
  type: "tag",
1338
- value: Ve(i, t)
1338
+ value: qe(s, t)
1339
1339
  } : {
1340
1340
  type: "text",
1341
1341
  value: e
1342
1342
  });
1343
- } else Re(i, n) ? a.push({
1343
+ } else lt(s, n) ? i.push({
1344
1344
  type: "tag",
1345
- value: rt(i, n)
1346
- }) : a.push({
1345
+ value: Le(s, n)
1346
+ }) : i.push({
1347
1347
  type: "text",
1348
- value: i
1348
+ value: s
1349
1349
  });
1350
- o = s.index + i.length;
1350
+ a = o.index + s.length;
1351
1351
  }
1352
- return o < e.length && a.push({
1352
+ return a < e.length && i.push({
1353
1353
  type: "text",
1354
- value: e.slice(o)
1355
- }), a;
1354
+ value: e.slice(a)
1355
+ }), i;
1356
1356
  }
1357
1357
  // src/components/MergeTagPreviewText.vue
1358
- var ea = R({
1358
+ var ra = R({
1359
1359
  name: "MergeTagPreviewText",
1360
1360
  props: { text: {
1361
1361
  type: String,
1362
1362
  required: !0
1363
1363
  } },
1364
1364
  setup(e) {
1365
- let t = L(un, gn), n = L(Xt, Ke.liquid), r = L(xn, null), i = C(() => $i(e.text, t.value, n, r?.value ?? !1));
1365
+ let t = L(pn, yn), n = L($t, Ve.liquid), r = L(wn, null), i = C(() => na(e.text, t.value, n, r?.value ?? !1));
1366
1366
  return () => i.value.map((e, t) => e.type === "tag" ? m("span", {
1367
1367
  key: t,
1368
1368
  class: "tpl-merge-tag-label"
1369
1369
  }, e.value) : e.value);
1370
1370
  }
1371
- }), ta = ["href"], na = /* @__PURE__ */ R({
1371
+ }), ia = ["href"], aa = /* @__PURE__ */ R({
1372
1372
  __name: "ButtonBlock",
1373
1373
  props: {
1374
1374
  block: {},
1375
1375
  viewport: {}
1376
1376
  },
1377
1377
  setup(e) {
1378
- let t = e, n = Fn(Sn, "ButtonBlock"), r = C(() => {
1378
+ let t = e, n = Rn(Tn, "ButtonBlock");
1379
+ function r(e) {
1380
+ return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
1381
+ }
1382
+ let i = C(() => {
1379
1383
  let e = {
1380
1384
  display: "inline-block",
1381
1385
  padding: `${t.block.buttonPadding.top}px ${t.block.buttonPadding.right}px ${t.block.buttonPadding.bottom}px ${t.block.buttonPadding.left}px`,
1382
1386
  backgroundColor: t.block.backgroundColor,
1383
1387
  color: t.block.textColor,
1384
1388
  fontSize: `${t.block.fontSize}px`,
1385
- fontWeight: "bold",
1389
+ fontWeight: r(t.block.fontWeight),
1386
1390
  textDecoration: "none",
1387
- borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : Ue(t.block.borderRadius) ?? "0px",
1391
+ borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : nt(t.block.borderRadius) ?? "0px",
1388
1392
  textAlign: "center"
1389
1393
  };
1390
- return Object.assign(e, Xi(t.block.border)), t.block.fontFamily && (e.fontFamily = n.resolveFontFamily(t.block.fontFamily)), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
1391
- }), i = C(() => ({ textAlign: t.block.align ?? "center" }));
1392
- return (t, n) => (s(), D("div", { style: f(i.value) }, [j("a", {
1394
+ return Object.assign(e, $i(t.block.border)), t.block.fontFamily && (e.fontFamily = n.resolveFontFamily(t.block.fontFamily)), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
1395
+ }), a = C(() => ({ textAlign: t.block.align ?? "center" }));
1396
+ return (t, n) => (s(), D("div", { style: f(a.value) }, [j("a", {
1393
1397
  href: e.block.url || "#",
1394
- style: f(r.value),
1398
+ style: f(i.value),
1395
1399
  class: "tpl:cursor-default",
1396
1400
  onClick: n[0] ||= z(() => {}, ["prevent"])
1397
- }, [y(ea, { text: e.block.text }, null, 8, ["text"])], 12, ta)], 4));
1401
+ }, [y(ra, { text: e.block.text }, null, 8, ["text"])], 12, ia)], 4));
1398
1402
  }
1399
- }), ra = ["innerHTML"], ia = [
1403
+ }), oa = ["innerHTML"], sa = [
1400
1404
  "src",
1401
1405
  "width",
1402
1406
  "height"
1403
- ], aa = /* @__PURE__ */ R({
1407
+ ], ca = /* @__PURE__ */ R({
1404
1408
  __name: "CustomBlockIcon",
1405
1409
  props: {
1406
1410
  icon: {},
1407
1411
  size: {}
1408
1412
  },
1409
1413
  setup(e) {
1410
- let t = e, n = C(() => t.size ?? 20), r = C(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = C(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), a = C(() => r.value ? Vt(t.icon ?? "") : "");
1414
+ let t = e, n = C(() => t.size ?? 20), r = C(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = C(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), a = C(() => r.value ? Wt(t.icon ?? "") : "");
1411
1415
  return (t, o) => r.value ? (s(), D("span", {
1412
1416
  key: 0,
1413
1417
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
@@ -1416,33 +1420,33 @@ var ea = R({
1416
1420
  height: `${n.value}px`
1417
1421
  }),
1418
1422
  innerHTML: a.value
1419
- }, null, 12, ra)) : i.value ? (s(), D("img", {
1423
+ }, null, 12, oa)) : i.value ? (s(), D("img", {
1420
1424
  key: 1,
1421
1425
  src: e.icon,
1422
1426
  width: n.value,
1423
1427
  height: n.value,
1424
1428
  class: "tpl:inline-block",
1425
1429
  alt: ""
1426
- }, null, 8, ia)) : (s(), F(w(wr), {
1430
+ }, null, 8, sa)) : (s(), F(w(Dr), {
1427
1431
  key: 2,
1428
1432
  size: n.value,
1429
1433
  "stroke-width": 1.5
1430
1434
  }, null, 8, ["size"]));
1431
1435
  }
1432
- }), oa = { class: "tpl:w-full" }, sa = {
1436
+ }), la = { class: "tpl:w-full" }, ua = {
1433
1437
  key: 0,
1434
1438
  class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
1435
- }, ca = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, la = {
1439
+ }, da = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, fa = {
1436
1440
  key: 1,
1437
1441
  class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
1438
- }, ua = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, da = {
1442
+ }, pa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ma = {
1439
1443
  key: 2,
1440
1444
  class: "tpl:relative"
1441
- }, fa = ["innerHTML"], pa = {
1445
+ }, ha = ["innerHTML"], ga = {
1442
1446
  key: 0,
1443
1447
  class: "tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:rounded tpl:backdrop-blur-[2px]",
1444
1448
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1445
- }, ma = /* @__PURE__ */ R({
1449
+ }, _a = /* @__PURE__ */ R({
1446
1450
  __name: "CustomBlock",
1447
1451
  props: {
1448
1452
  block: {},
@@ -1450,7 +1454,7 @@ var ea = R({
1450
1454
  },
1451
1455
  emits: ["fetchData"],
1452
1456
  setup(n, { emit: r }) {
1453
- let a = n, o = r, { t: c } = Jn(), l = L(Mn, null), u = E(""), d = C(() => Ut(u.value)), f = E(!1), p = C(() => l?.getDefinition(a.block.customType)), m = C(() => !!p.value), h = C(() => a.block), { isFetching: g, fetch: _, needsFetch: v, hasDataSource: b } = ft({
1457
+ let a = n, o = r, { t: c } = Zn(), l = L(Fn, null), u = E(""), d = C(() => Kt(u.value)), f = E(!1), p = C(() => l?.getDefinition(a.block.customType)), m = C(() => !!p.value), h = C(() => a.block), { isFetching: g, fetch: _, needsFetch: v, hasDataSource: b } = ht({
1454
1458
  definition: p,
1455
1459
  block: h,
1456
1460
  onUpdate: (e, t) => {
@@ -1459,10 +1463,10 @@ var ea = R({
1459
1463
  dataSourceFetched: t
1460
1464
  });
1461
1465
  }
1462
- }), x = L(un, gn), S = L(xn, null), k = C(() => {
1466
+ }), x = L(pn, yn), S = L(wn, null), k = C(() => {
1463
1467
  if (!S?.value) return a.block;
1464
1468
  let e = {};
1465
- for (let [t, n] of Object.entries(a.block.fieldValues)) e[t] = typeof n == "string" ? Le(n, x.value) : n;
1469
+ for (let [t, n] of Object.entries(a.block.fieldValues)) e[t] = typeof n == "string" ? Re(n, x.value) : n;
1466
1470
  return {
1467
1471
  ...a.block,
1468
1472
  fieldValues: e
@@ -1479,17 +1483,17 @@ var ea = R({
1479
1483
  }
1480
1484
  }
1481
1485
  }
1482
- let M = nr(A, 150);
1486
+ let M = ar(A, 150);
1483
1487
  return e(() => {
1484
1488
  A();
1485
1489
  }), t(() => a.block.fieldValues, () => {
1486
1490
  M();
1487
1491
  }, { deep: !0 }), t(() => S?.value, () => {
1488
1492
  M();
1489
- }), (e, t) => (s(), D("div", oa, [m.value ? f.value ? (s(), D("div", la, [y(w(qt), {
1493
+ }), (e, t) => (s(), D("div", la, [m.value ? f.value ? (s(), D("div", fa, [y(w(Xt), {
1490
1494
  size: 24,
1491
1495
  class: "tpl:text-[var(--tpl-danger)]"
1492
- }), j("span", ua, i(w(c).customBlocks.renderError), 1)])) : (s(), D("div", da, [j("div", { innerHTML: d.value }, null, 8, fa), w(b) && w(v) ? (s(), D("div", pa, [w(g) ? (s(), F(xr, {
1496
+ }), j("span", pa, i(w(c).customBlocks.renderError), 1)])) : (s(), D("div", ma, [j("div", { innerHTML: d.value }, null, 8, ha), w(b) && w(v) ? (s(), D("div", ga, [w(g) ? (s(), F(wr, {
1493
1497
  key: 1,
1494
1498
  class: "tpl:w-48"
1495
1499
  })) : (s(), D("button", {
@@ -1497,16 +1501,16 @@ var ea = R({
1497
1501
  type: "button",
1498
1502
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:shadow-[var(--tpl-shadow)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:shadow-[var(--tpl-shadow-md)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
1499
1503
  onClick: t[0] ||= z((...e) => w(_) && w(_)(...e), ["stop"])
1500
- }, [p.value?.icon ? (s(), F(aa, {
1504
+ }, [p.value?.icon ? (s(), F(ca, {
1501
1505
  key: 0,
1502
1506
  icon: p.value.icon,
1503
1507
  size: 16
1504
- }, null, 8, ["icon"])) : T("", !0), O(" " + i(p.value?.dataSource?.label || w(c).customBlocks.dataSource.fetchButton), 1)]))])) : T("", !0)])) : (s(), D("div", sa, [y(w(Or), {
1508
+ }, null, 8, ["icon"])) : T("", !0), O(" " + i(p.value?.dataSource?.label || w(c).customBlocks.dataSource.fetchButton), 1)]))])) : T("", !0)])) : (s(), D("div", ua, [y(w(jr), {
1505
1509
  size: 24,
1506
1510
  class: "tpl:text-[var(--tpl-warning)]"
1507
- }), j("span", ca, i(w(c).customBlocks.definitionNotFound), 1)]))]));
1511
+ }), j("span", da, i(w(c).customBlocks.definitionNotFound), 1)]))]));
1508
1512
  }
1509
- }), ha = { class: "tpl:w-full" }, ga = /* @__PURE__ */ R({
1513
+ }), va = { class: "tpl:w-full" }, ya = /* @__PURE__ */ R({
1510
1514
  __name: "DividerBlock",
1511
1515
  props: {
1512
1516
  block: {},
@@ -1518,28 +1522,28 @@ var ea = R({
1518
1522
  width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
1519
1523
  margin: t.block.width === "full" ? "0" : "0 auto"
1520
1524
  }));
1521
- return (e, t) => (s(), D("div", ha, [j("hr", {
1525
+ return (e, t) => (s(), D("div", va, [j("hr", {
1522
1526
  class: "tpl:m-0 tpl:border-none",
1523
1527
  style: f(n.value)
1524
1528
  }, null, 4)]));
1525
1529
  }
1526
- }), _a = { class: "tpl:w-full" }, va = ["srcdoc", "title"], ya = {
1530
+ }), ba = { class: "tpl:w-full" }, xa = ["srcdoc", "title"], Sa = {
1527
1531
  key: 1,
1528
1532
  class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]"
1529
- }, ba = {
1533
+ }, Ca = {
1530
1534
  key: 0,
1531
1535
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1532
- }, xa = {
1536
+ }, wa = {
1533
1537
  key: 1,
1534
1538
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1535
- }, Sa = /* @__PURE__ */ R({
1539
+ }, Ta = /* @__PURE__ */ R({
1536
1540
  __name: "HtmlBlock",
1537
1541
  props: {
1538
1542
  block: {},
1539
1543
  viewport: {}
1540
1544
  },
1541
1545
  setup(e) {
1542
- let n = e, { t: r } = Jn(), a = L(pn, !1), o = C(() => n.block.content.trim().length > 0), c = C(() => a && o.value), l = L(un, gn), u = L(xn, null), d = C(() => u?.value ? Le(n.block.content, l.value) : n.block.content), p = E(null), m = E(60), h = null;
1546
+ let n = e, { t: r } = Zn(), a = L(gn, !1), o = C(() => n.block.content.trim().length > 0), c = C(() => a && o.value), l = L(pn, yn), u = L(wn, null), d = C(() => u?.value ? Re(n.block.content, l.value) : n.block.content), p = E(null), m = E(60), h = null;
1543
1547
  function g() {
1544
1548
  let e = p.value?.contentDocument;
1545
1549
  e && (m.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -1553,7 +1557,7 @@ var ea = R({
1553
1557
  e || (h?.disconnect(), h = null);
1554
1558
  }), A(() => {
1555
1559
  h?.disconnect(), h = null;
1556
- }), (e, t) => (s(), D("div", _a, [c.value ? (s(), D("iframe", {
1560
+ }), (e, t) => (s(), D("div", ba, [c.value ? (s(), D("iframe", {
1557
1561
  key: 0,
1558
1562
  ref_key: "iframeRef",
1559
1563
  ref: p,
@@ -1563,18 +1567,18 @@ var ea = R({
1563
1567
  class: "tpl:block tpl:w-full tpl:border-0",
1564
1568
  style: f({ height: `${m.value}px` }),
1565
1569
  onLoad: _
1566
- }, null, 44, va)) : (s(), D("div", ya, [y(w(Et), {
1570
+ }, null, 44, xa)) : (s(), D("div", Sa, [y(w(kt), {
1567
1571
  size: 24,
1568
1572
  class: "tpl:text-[var(--tpl-text-dim)]"
1569
- }), o.value ? (s(), D("span", ba, i(w(r).html.preview), 1)) : (s(), D("span", xa, i(w(r).html.empty), 1))]))]));
1573
+ }), o.value ? (s(), D("span", Ca, i(w(r).html.preview), 1)) : (s(), D("span", wa, i(w(r).html.empty), 1))]))]));
1570
1574
  }
1571
- }), Ca = ["data-drop-enabled"], wa = ["href"], Ta = ["src", "alt"], Ea = ["src", "alt"], Da = {
1575
+ }), Ea = ["data-drop-enabled"], Da = ["href"], Oa = ["src", "alt"], ka = ["src", "alt"], Aa = {
1572
1576
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1573
1577
  style: { opacity: "0.7" }
1574
- }, Oa = ["href"], ka = ["src", "alt"], Aa = ["src", "alt"], ja = {
1578
+ }, ja = ["href"], Ma = ["src", "alt"], Na = ["src", "alt"], Pa = {
1575
1579
  key: 4,
1576
1580
  class: "tpl:flex tpl:box-border tpl:min-h-[100px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
1577
- }, Ma = ["aria-label"], Na = { key: 1 }, Pa = /* @__PURE__ */ R({
1581
+ }, Fa = ["aria-label"], Ia = { key: 1 }, La = /* @__PURE__ */ R({
1578
1582
  __name: "ImageBlock",
1579
1583
  props: {
1580
1584
  block: {},
@@ -1582,20 +1586,20 @@ var ea = R({
1582
1586
  },
1583
1587
  emits: ["update"],
1584
1588
  setup(e, { emit: t }) {
1585
- let n = e, r = t, { t: a } = Jn(), { syntax: o } = ur(), c = C(() => Ce(n.block.src, o));
1589
+ let n = e, r = t, { t: a } = Zn(), { syntax: o } = pr(), c = C(() => xe(n.block.src, o));
1586
1590
  function l(e) {
1587
1591
  let t = {
1588
1592
  src: e.url,
1589
- ...Tt(St(e.width, e.height))
1593
+ ...Ot(Tt(e.width, e.height))
1590
1594
  };
1591
1595
  e.alt && (t.alt = e.alt), r("update", t);
1592
1596
  }
1593
- let u = E(), { canBrowse: d, dropEnabled: p, isUploading: m, showOverlay: h, openMediaBrowser: g } = At({
1597
+ let u = E(), { canBrowse: d, dropEnabled: p, isUploading: m, showOverlay: h, openMediaBrowser: g } = Nt({
1594
1598
  target: u,
1595
1599
  blocked: c,
1596
1600
  apply: l
1597
1601
  }), _ = C(() => ({ textAlign: n.block.align })), v = C(() => {
1598
- let e = n.block.border, t = ["left", "right"].map((t) => De(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1602
+ let e = n.block.border, t = ["left", "right"].map((t) => at(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1599
1603
  return t > 0 ? `calc(100% - ${t}px)` : "100%";
1600
1604
  }), b = C(() => {
1601
1605
  let e = n.block.align;
@@ -1603,13 +1607,13 @@ var ea = R({
1603
1607
  maxWidth: "100%",
1604
1608
  width: n.block.width === "full" ? v.value : `${n.block.width}px`,
1605
1609
  height: n.block.height ? `${n.block.height}px` : void 0,
1606
- borderRadius: Ue(n.block.borderRadius) ?? void 0,
1607
- ...Xi(n.block.border),
1610
+ borderRadius: nt(n.block.borderRadius) ?? void 0,
1611
+ ...$i(n.block.border),
1608
1612
  display: "block",
1609
1613
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1610
1614
  marginRight: e === "center" ? "auto" : void 0
1611
1615
  };
1612
- }), x = bt(() => c.value ? void 0 : n.block.src), S = bt(() => c.value ? n.block.placeholderUrl : void 0);
1616
+ }), x = Ct(() => c.value ? void 0 : n.block.src), S = Ct(() => c.value ? n.block.placeholderUrl : void 0);
1613
1617
  return (t, n) => (s(), D("div", {
1614
1618
  ref_key: "dropZoneRef",
1615
1619
  ref: u,
@@ -1617,7 +1621,7 @@ var ea = R({
1617
1621
  "data-drop-enabled": w(p),
1618
1622
  class: "tpl:relative tpl:w-full",
1619
1623
  style: f(_.value)
1620
- }, [w(h) ? (s(), F(wt, {
1624
+ }, [w(h) ? (s(), F(Dt, {
1621
1625
  key: 0,
1622
1626
  uploading: w(m),
1623
1627
  size: "canvas"
@@ -1633,22 +1637,22 @@ var ea = R({
1633
1637
  src: w(S),
1634
1638
  alt: e.block.alt || w(a).image.altTextPlaceholder,
1635
1639
  style: f(b.value)
1636
- }, null, 12, Ta)], 8, wa)) : (s(), D("img", {
1640
+ }, null, 12, Oa)], 8, Da)) : (s(), D("img", {
1637
1641
  key: 1,
1638
1642
  class: "tpl:border-0",
1639
1643
  src: w(S),
1640
1644
  alt: e.block.alt,
1641
1645
  style: f(b.value)
1642
- }, null, 12, Ea))], 64)) : e.block.src && c.value ? (s(), D("div", {
1646
+ }, null, 12, ka))], 64)) : e.block.src && c.value ? (s(), D("div", {
1643
1647
  key: 2,
1644
1648
  class: "tpl:!flex tpl:box-border tpl:min-h-[120px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
1645
1649
  style: f([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, b.value])
1646
- }, [y(w(Bt), {
1650
+ }, [y(w(Ut), {
1647
1651
  size: 32,
1648
1652
  "stroke-width": 1.5,
1649
1653
  class: "tpl:text-[var(--tpl-primary)]",
1650
1654
  style: { opacity: "0.5" }
1651
- }), j("span", Da, [y(ea, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (s(), D(P, { key: 3 }, [e.block.linkUrl ? (s(), D("a", {
1655
+ }), j("span", Aa, [y(ra, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (s(), D(P, { key: 3 }, [e.block.linkUrl ? (s(), D("a", {
1652
1656
  key: 0,
1653
1657
  href: e.block.linkUrl,
1654
1658
  target: "_blank",
@@ -1660,33 +1664,33 @@ var ea = R({
1660
1664
  src: w(x),
1661
1665
  alt: e.block.alt || w(a).image.altTextPlaceholder,
1662
1666
  style: f(b.value)
1663
- }, null, 12, ka)], 8, Oa)) : (s(), D("img", {
1667
+ }, null, 12, Ma)], 8, ja)) : (s(), D("img", {
1664
1668
  key: 1,
1665
1669
  class: "tpl:border-0",
1666
1670
  src: w(x),
1667
1671
  alt: e.block.alt,
1668
1672
  style: f(b.value)
1669
- }, null, 12, Aa))], 64)) : (s(), D("div", ja, [w(d) ? (s(), D("button", {
1673
+ }, null, 12, Na))], 64)) : (s(), D("div", Pa, [w(d) ? (s(), D("button", {
1670
1674
  key: 0,
1671
1675
  "aria-label": w(a).image.browseMedia,
1672
1676
  class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
1673
1677
  onClick: n[2] ||= z((...e) => w(g) && w(g)(...e), ["stop"])
1674
- }, [y(w(Bt), {
1678
+ }, [y(w(Ut), {
1675
1679
  size: 14,
1676
1680
  "stroke-width": 1.5
1677
- }), O(" " + i(w(a).image.browseMedia), 1)], 8, Ma)) : (s(), D("span", Na, i(w(a).image.clickToAdd), 1))]))], 12, Ca));
1681
+ }), O(" " + i(w(a).image.browseMedia), 1)], 8, Fa)) : (s(), D("span", Ia, i(w(a).image.clickToAdd), 1))]))], 12, Ea));
1678
1682
  }
1679
- }), Fa = { class: "tpl:w-full" }, Ia = ["href"], La = {
1683
+ }), Ra = { class: "tpl:w-full" }, za = ["href"], Ba = {
1680
1684
  key: 1,
1681
1685
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
1682
- }, Ra = /* @__PURE__ */ R({
1686
+ }, Va = /* @__PURE__ */ R({
1683
1687
  __name: "MenuBlock",
1684
1688
  props: {
1685
1689
  block: {},
1686
1690
  viewport: {}
1687
1691
  },
1688
1692
  setup(e) {
1689
- let t = e, { t: n } = Jn(), r = Fn(Sn, "MenuBlock"), a = C(() => ({
1693
+ let t = e, { t: n } = Zn(), r = Rn(Tn, "MenuBlock"), a = C(() => ({
1690
1694
  display: "flex",
1691
1695
  flexWrap: "wrap",
1692
1696
  gap: `0 ${t.block.spacing}px`,
@@ -1698,7 +1702,7 @@ var ea = R({
1698
1702
  function c(e) {
1699
1703
  return e || t.block.linkColor || t.block.color;
1700
1704
  }
1701
- return (t, r) => (s(), D("div", Fa, [o.value ? (s(), D("div", {
1705
+ return (t, r) => (s(), D("div", Ra, [o.value ? (s(), D("div", {
1702
1706
  key: 0,
1703
1707
  style: f(a.value)
1704
1708
  }, [(s(!0), D(P, null, d(e.block.items, (t, n) => (s(), D(P, { key: t.id }, [j("a", {
@@ -1710,18 +1714,18 @@ var ea = R({
1710
1714
  textDecoration: t.underline ? "underline" : "none"
1711
1715
  }),
1712
1716
  onClick: r[0] ||= z(() => {}, ["prevent"])
1713
- }, [y(ea, { text: t.text || "..." }, null, 8, ["text"])], 12, Ia), n < e.block.items.length - 1 ? (s(), D("span", {
1717
+ }, [y(ra, { text: t.text || "..." }, null, 8, ["text"])], 12, za), n < e.block.items.length - 1 ? (s(), D("span", {
1714
1718
  key: 0,
1715
1719
  style: f({
1716
1720
  color: e.block.separatorColor,
1717
1721
  padding: `0 ${e.block.spacing}px`
1718
1722
  })
1719
- }, i(e.block.separator), 5)) : T("", !0)], 64))), 128))], 4)) : (s(), D("div", La, [y(w(vt), { size: 16 }), j("span", null, i(w(n).menu.addLinks), 1)]))]));
1723
+ }, i(e.block.separator), 5)) : T("", !0)], 64))), 128))], 4)) : (s(), D("div", Ba, [y(w(xt), { size: 16 }), j("span", null, i(w(n).menu.addLinks), 1)]))]));
1720
1724
  }
1721
1725
  });
1722
1726
  // src/composables/useEditableTextBlock.ts
1723
- function za(e) {
1724
- let t = L(un, gn), n = L(xn, null), { syntax: r } = ur(), i = C(() => n?.value ? Ie(e(), t.value) : fe(e(), t.value)), a = C(() => tt(Ut(Me(i.value, r)))), o = E(!1), s = E(null), { top: c, left: l } = sr(s), { toLocal: u } = _r(), d = C(() => u({
1727
+ function Ha(e) {
1728
+ let t = L(pn, yn), n = L(wn, null), { syntax: r } = pr(), i = C(() => n?.value ? ie(e(), t.value) : Ee(e(), t.value)), a = C(() => rt(Kt(ue(i.value, r)))), o = E(!1), s = E(null), { top: c, left: l } = ur(s), { toLocal: u } = br(), d = C(() => u({
1725
1729
  top: c.value - 8,
1726
1730
  left: l.value
1727
1731
  }));
@@ -1741,14 +1745,14 @@ function za(e) {
1741
1745
  };
1742
1746
  }
1743
1747
  // src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1744
- var Ba = ["innerHTML"], Va = /* @__PURE__ */ R({
1748
+ var Ua = ["innerHTML"], Wa = /* @__PURE__ */ R({
1745
1749
  __name: "ParagraphBlock",
1746
1750
  props: {
1747
1751
  block: {},
1748
1752
  viewport: {}
1749
1753
  },
1750
1754
  setup(e) {
1751
- let t = e, n = I(() => import("./ParagraphEditor-B38t4E2p.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: c, handleEditorDone: l } = za(() => t.block.content);
1755
+ let t = e, n = I(() => import("./ParagraphEditor-VXYwGoz_.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: c, handleEditorDone: l } = Ha(() => t.block.content);
1752
1756
  return (t, u) => (s(), D("div", {
1753
1757
  ref_key: "blockRef",
1754
1758
  ref: i,
@@ -1767,11 +1771,11 @@ var Ba = ["innerHTML"], Va = /* @__PURE__ */ R({
1767
1771
  key: 1,
1768
1772
  class: "tpl-text-content tpl:outline-none",
1769
1773
  innerHTML: w(o)
1770
- }, null, 8, Ba))], 544));
1774
+ }, null, 8, Ua))], 544));
1771
1775
  }
1772
1776
  });
1773
1777
  // src/utils/updateBlockList.ts
1774
- function Ha(e, t, n, r = 0, i) {
1778
+ function Ga(e, t, n, r = 0, i) {
1775
1779
  let a = n ? e.content.value.blocks.find((e) => e.id === n) : void 0, o = n ? a?.type === "section" ? a.children[r] ?? [] : [] : e.content.value.blocks, s = t.map((e) => e.id);
1776
1780
  if (o.some((e) => !s.includes(e.id))) return;
1777
1781
  let c = t.filter((e) => !o.some((t) => t.id === e.id)), l, u = -1;
@@ -1784,67 +1788,79 @@ function Ha(e, t, n, r = 0, i) {
1784
1788
  l && (e.findBlockLocation(l.id) ? e.moveBlock(l.id, u, n, r) : e.addBlock(JSON.parse(JSON.stringify(l)), n, r, u));
1785
1789
  }
1786
1790
  // src/utils/mergeTagTokens.ts
1787
- function Ua(e, t, n) {
1791
+ function Ka(e, t, n) {
1788
1792
  let r = [], i = "\0MT";
1789
1793
  for (; e.includes(i);) i += "_";
1790
- let a = n === "html" ? me(e, (e) => {
1794
+ let a = n === "html" ? ve(e, (e) => {
1791
1795
  let t = r.push(e) - 1;
1792
1796
  return `${i}${t}\u0000`;
1793
1797
  }) : e, o = Array.from(a.matchAll(RegExp(`${i}\\d+\u0000`, "g")), (e) => ({
1794
1798
  start: e.index,
1795
1799
  end: e.index + e[0].length
1796
- })), s = [];
1797
- for (let e of [t.logic, t.value]) {
1798
- let t = new RegExp(e.source, e.flags.replace(/[gy]/g, "") + "g");
1799
- for (let e of a.matchAll(t)) {
1800
- let t = e.index, r = t + e[0].length;
1801
- o.some((e) => t < e.end && r > e.start) || s.some((e) => t < e.end && r > e.start) || s.push({
1802
- start: t,
1803
- end: r,
1804
- value: n === "html" ? Fe(e[0]) : e[0]
1805
- });
1800
+ })), s = [], c = me(a, t, "logic"), l = [], u = 0;
1801
+ for (let e of ["logic", "value"]) {
1802
+ let r = 0;
1803
+ for (let i of e === "logic" ? c : me(a, t, "value")) {
1804
+ let t = i.index, a = t + i.value.length;
1805
+ for (; o[r]?.end <= t;) r++;
1806
+ let c = o[r];
1807
+ if (!(c && t < c.end && a > c.start)) {
1808
+ if (e === "value") {
1809
+ for (; l[u]?.end <= t;) u++;
1810
+ let e = l[u];
1811
+ if (e && t < e.end && a > e.start) continue;
1812
+ }
1813
+ e === "logic" && l.push({
1814
+ start: t,
1815
+ end: a
1816
+ }), s.push({
1817
+ start: t,
1818
+ end: a,
1819
+ value: n === "html" ? je(i.value) : i.value
1820
+ });
1821
+ }
1806
1822
  }
1807
1823
  }
1808
1824
  return [...r, ...s.map((e) => e.value)].sort();
1809
1825
  }
1810
- function Wa(e, t, n, r) {
1811
- return JSON.stringify(Ua(e, n, r)) !== JSON.stringify(Ua(t, n, r));
1826
+ function qa(e, t, n, r) {
1827
+ return JSON.stringify(Ka(e, n, r)) !== JSON.stringify(Ka(t, n, r));
1812
1828
  }
1813
1829
  // src/components/localization/LocaleStatusChip.vue?vue&type=script&setup=true&lang.ts
1814
- var Ga = [
1830
+ var Ja = [
1815
1831
  "data-state",
1816
1832
  "aria-label",
1817
1833
  "title",
1818
1834
  "aria-expanded",
1819
1835
  "aria-controls",
1820
1836
  "onKeydown"
1821
- ], Ka = [
1837
+ ], Ya = [
1822
1838
  "aria-label",
1823
1839
  "aria-labelledby",
1824
1840
  "aria-describedby",
1825
1841
  "onKeydown"
1826
- ], qa = ["id"], Ja = ["id"], Ya = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Xa = ["disabled"], Za = {
1842
+ ], Xa = ["id"], Za = ["id"], Qa = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, $a = ["disabled"], eo = {
1827
1843
  key: 0,
1828
1844
  class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:font-medium"
1829
- }, Qa = {
1845
+ }, to = {
1830
1846
  key: 1,
1831
1847
  class: "tpl:m-0"
1832
- }, $a = { class: "tpl:m-0" }, eo = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, to = {
1848
+ }, no = { class: "tpl:m-0" }, ro = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, io = {
1833
1849
  key: 3,
1834
1850
  class: "tpl:m-0"
1835
- }, no = {
1851
+ }, ao = {
1836
1852
  key: 4,
1837
1853
  class: "tpl:m-0"
1838
- }, ro = {
1854
+ }, oo = {
1839
1855
  key: 5,
1840
1856
  class: "tpl:m-0"
1841
- }, io = {
1857
+ }, so = {
1842
1858
  key: 6,
1843
1859
  class: "tpl:m-0 tpl:list-none tpl:p-0"
1844
- }, ao = ["onClick"], oo = {
1860
+ }, co = ["onClick"], lo = {
1845
1861
  key: 7,
1846
1862
  class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:gap-1"
1847
- }, so = ["data-testid", "disabled"], co = /*#__PURE__*/ It(/* @__PURE__ */ R({
1863
+ }, uo = ["data-testid", "disabled"], fo = /*#__PURE__*/ zt(/* @__PURE__ */ R({
1848
1864
  __name: "LocaleStatusChip",
1849
1865
  props: {
1850
1866
  blockId: {},
@@ -1864,24 +1880,24 @@ var Ga = [
1864
1880
  },
1865
1881
  emits: ["target"],
1866
1882
  setup(e, { emit: n }) {
1867
- let r = e, a = n, l = L(Un, null), p = L(Pn, null), m = L(Qt, null), h = L(zn, "en") ?? "en", { t: g, format: _ } = Jn(), v = lr(), y = hr(), { toLocal: x } = _r(), S = E(null), O = E(null), A = E(!1), M = E(!1), N = E(null), ee = E(null), te = null, I = E({
1883
+ let r = e, a = n, l = L(Kn, null), p = L(Ln, null), m = L(tn, null), h = L(Hn, "en") ?? "en", { t: g, format: _ } = Zn(), v = fr(), y = vr(), { toLocal: x } = br(), S = E(null), O = E(null), A = E(!1), M = E(!1), N = E(null), ee = E(null), te = null, I = E({
1868
1884
  top: 0,
1869
1885
  left: 0
1870
1886
  }), R = E({
1871
1887
  maxHeight: 0,
1872
1888
  maxWidth: 0
1873
- }), ne = `tpl-locale-popover-${ze()}`, ie = C(() => Zn(l?.activeLocale?.value ?? "")), ae = C(() => Zn(l?.content.value.settings.locale ?? "en"));
1889
+ }), ne = `tpl-locale-popover-${Ze()}`, ie = C(() => er(l?.activeLocale?.value ?? "")), ae = C(() => er(l?.content.value.settings.locale ?? "en"));
1874
1890
  function oe(e, t) {
1875
1891
  switch (e) {
1876
1892
  case "tags-differ": return g.localization.tagsDiffer;
1877
1893
  case "hidden": return _(g.localization.hidden, { language: ie.value });
1878
1894
  case "changed": return _(g.localization.changed, { language: ie.value });
1879
- case "default-stale": return Xn(g.localization.staleLanguages, t, h);
1880
- case "missing": return t === 1 ? g.localization.notTranslated : Xn(g.localization.notTranslatedCount, t, h);
1881
- default: return t === 1 ? g.localization.outOfDate : Xn(g.localization.staleCount, t, h);
1895
+ case "default-stale": return $n(g.localization.staleLanguages, t, h);
1896
+ case "missing": return t === 1 ? g.localization.notTranslated : $n(g.localization.notTranslatedCount, t, h);
1897
+ default: return t === 1 ? g.localization.outOfDate : $n(g.localization.staleCount, t, h);
1882
1898
  }
1883
1899
  }
1884
- let se = C(() => oe(r.state, r.count)), B = C(() => r.popoverState ?? r.state), ce = C(() => r.popoverCount ?? r.count), le = C(() => oe(B.value, ce.value)), ue = C(() => r.state === "hidden" ? Tr : r.state === "changed" ? Gt : r.state === "default-stale" ? Ht : r.state === "stale" ? Rt : qt), de = C(() => B.value === "default-stale" || (B.value === "missing" || B.value === "stale") && ce.value > 1), fe = C(() => r.editable && r.eligibleGaps && p?.isAvailable.value);
1900
+ let se = C(() => oe(r.state, r.count)), B = C(() => r.popoverState ?? r.state), ce = C(() => r.popoverCount ?? r.count), le = C(() => oe(B.value, ce.value)), ue = C(() => r.state === "hidden" ? Or : r.state === "changed" ? Jt : r.state === "default-stale" ? Gt : r.state === "stale" ? Vt : Xt), de = C(() => B.value === "default-stale" || (B.value === "missing" || B.value === "stale") && ce.value > 1), fe = C(() => r.editable && r.eligibleGaps && p?.isAvailable.value);
1885
1901
  function pe(e = !1) {
1886
1902
  A.value = !1, M.value = !1, te = null, e && S.value?.focus({ preventScroll: !0 });
1887
1903
  }
@@ -1990,7 +2006,7 @@ var Ga = [
1990
2006
  size: 12,
1991
2007
  "stroke-width": 2,
1992
2008
  "aria-hidden": "true"
1993
- }))], 40, Ga), w(y) && A.value ? (s(), F(b, {
2009
+ }))], 40, Ja), w(y) && A.value ? (s(), F(b, {
1994
2010
  key: 0,
1995
2011
  to: w(y)
1996
2012
  }, [j("div", {
@@ -2016,80 +2032,80 @@ var Ga = [
2016
2032
  j("h3", {
2017
2033
  id: `${ne}-question`,
2018
2034
  class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
2019
- }, i(w(Xn)(w(g).localization.translationConfirmation, e.translationCount ?? 0, w(h))), 9, qa),
2035
+ }, i(w($n)(w(g).localization.translationConfirmation, e.translationCount ?? 0, w(h))), 9, Xa),
2020
2036
  j("p", {
2021
2037
  id: `${ne}-warning`,
2022
2038
  class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]"
2023
- }, i(w(_)(w(g).localization.translationDescription, { language: ie.value })), 9, Ja),
2024
- j("div", Ya, [j("button", {
2039
+ }, i(w(_)(w(g).localization.translationDescription, { language: ie.value })), 9, Za),
2040
+ j("div", Qa, [j("button", {
2025
2041
  ref_key: "confirmationCancel",
2026
2042
  ref: ee,
2027
2043
  type: "button",
2028
2044
  "data-testid": "translation-confirm-cancel",
2029
- class: c(w($n)),
2045
+ class: c(w(nr)),
2030
2046
  onClick: Te
2031
2047
  }, i(w(g).localization.cancel), 3), j("button", {
2032
2048
  type: "button",
2033
2049
  "data-testid": "translation-confirm",
2034
- class: c(w(er)),
2050
+ class: c(w(rr)),
2035
2051
  disabled: !fe.value || !!w(p)?.running.value || !e.translationCount,
2036
2052
  onClick: De
2037
- }, i(w(Xn)(w(g).localization.translateAllFields, e.translationCount ?? 0, w(h))), 11, Xa)])
2053
+ }, i(w($n)(w(g).localization.translateAllFields, e.translationCount ?? 0, w(h))), 11, $a)])
2038
2054
  ], 64)) : (s(), D(P, { key: 1 }, [
2039
- de.value ? (s(), D("p", Za, i(le.value), 1)) : T("", !0),
2040
- B.value === "missing" ? (s(), D("p", Qa, i(w(_)(w(g).localization.missingExplanation, { default: ae.value })), 1)) : B.value === "stale" ? (s(), D(P, { key: 2 }, [j("p", $a, i(w(_)(w(g).localization.staleExplanation, { default: ae.value })), 1), j("p", eo, i(w(_)(w(g).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : B.value === "tags-differ" ? (s(), D("p", to, i(w(_)(w(g).localization.tagsDifferExplanation, { default: ae.value })), 1)) : B.value === "changed" ? (s(), D("p", no, i(w(Xn)(w(g).localization.changedProperties, ce.value, w(h), { default: ae.value })), 1)) : B.value === "hidden" ? (s(), D("p", ro, i(w(_)(w(g).localization.hiddenExplanation, { language: ie.value })), 1)) : (s(), D("ul", io, [(s(!0), D(P, null, d(e.staleLocales, (e) => (s(), D("li", {
2055
+ de.value ? (s(), D("p", eo, i(le.value), 1)) : T("", !0),
2056
+ B.value === "missing" ? (s(), D("p", to, i(w(_)(w(g).localization.missingExplanation, { default: ae.value })), 1)) : B.value === "stale" ? (s(), D(P, { key: 2 }, [j("p", no, i(w(_)(w(g).localization.staleExplanation, { default: ae.value })), 1), j("p", ro, i(w(_)(w(g).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : B.value === "tags-differ" ? (s(), D("p", io, i(w(_)(w(g).localization.tagsDifferExplanation, { default: ae.value })), 1)) : B.value === "changed" ? (s(), D("p", ao, i(w($n)(w(g).localization.changedProperties, ce.value, w(h), { default: ae.value })), 1)) : B.value === "hidden" ? (s(), D("p", oo, i(w(_)(w(g).localization.hiddenExplanation, { language: ie.value })), 1)) : (s(), D("ul", so, [(s(!0), D(P, null, d(e.staleLocales, (e) => (s(), D("li", {
2041
2057
  key: e,
2042
2058
  class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3"
2043
- }, [j("span", null, i(w(Zn)(e)), 1), j("button", {
2059
+ }, [j("span", null, i(w(er)(e)), 1), j("button", {
2044
2060
  type: "button",
2045
- class: c(w(Qn)),
2061
+ class: c(w(tr)),
2046
2062
  onClick: (t) => Ce(e)
2047
- }, i(w(g).localization.open), 11, ao)]))), 128))])),
2048
- e.editable && B.value !== "default-stale" ? (s(), D("div", oo, [
2063
+ }, i(w(g).localization.open), 11, co)]))), 128))])),
2064
+ e.editable && B.value !== "default-stale" ? (s(), D("div", lo, [
2049
2065
  fe.value && (B.value === "missing" || B.value === "stale" || B.value === "tags-differ") ? (s(), D("button", {
2050
2066
  key: 0,
2051
2067
  type: "button",
2052
2068
  ref_key: "retranslate",
2053
2069
  ref: N,
2054
2070
  "data-testid": B.value === "missing" ? "locale-translate" : "locale-retranslate",
2055
- class: c(w($n)),
2071
+ class: c(w(nr)),
2056
2072
  disabled: !!w(p)?.running.value,
2057
2073
  onClick: we
2058
- }, i(B.value === "missing" ? w(g).localization.translate : w(g).localization.retranslate), 11, so)) : T("", !0),
2074
+ }, i(B.value === "missing" ? w(g).localization.translate : w(g).localization.retranslate), 11, uo)) : T("", !0),
2059
2075
  B.value === "stale" || B.value === "tags-differ" ? (s(), D(P, { key: 1 }, [B.value === "stale" ? (s(), D("button", {
2060
2076
  key: 0,
2061
2077
  type: "button",
2062
2078
  "data-testid": "locale-keep",
2063
- class: c(fe.value ? w(Qn) : w($n)),
2079
+ class: c(fe.value ? w(tr) : w(nr)),
2064
2080
  onClick: be
2065
2081
  }, i(w(g).localization.keep), 3)) : T("", !0), j("button", {
2066
2082
  type: "button",
2067
2083
  "data-testid": "locale-use-default",
2068
- class: c(B.value === "tags-differ" && !fe.value ? w($n) : w(Qn)),
2084
+ class: c(B.value === "tags-differ" && !fe.value ? w(nr) : w(tr)),
2069
2085
  onClick: n[0] ||= (t) => xe(B.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
2070
2086
  }, i(w(_)(w(g).localization.useDefaultLanguage, { default: ae.value })), 3)], 64)) : T("", !0),
2071
2087
  B.value === "changed" ? (s(), D("button", {
2072
2088
  key: 2,
2073
2089
  type: "button",
2074
2090
  "data-testid": "locale-reset",
2075
- class: c(w($n)),
2091
+ class: c(w(nr)),
2076
2092
  onClick: n[1] ||= (t) => xe(e.setPaths)
2077
2093
  }, i(w(g).localization.resetChanges), 3)) : T("", !0),
2078
2094
  B.value === "hidden" ? (s(), D("button", {
2079
2095
  key: 3,
2080
2096
  type: "button",
2081
2097
  "data-testid": "locale-show",
2082
- class: c(w($n)),
2098
+ class: c(w(nr)),
2083
2099
  onClick: Se
2084
2100
  }, i(w(g).localization.show), 3)) : T("", !0)
2085
2101
  ])) : T("", !0)
2086
- ], 64))], 44, Ka)], 8, ["to"])) : T("", !0)], 64));
2102
+ ], 64))], 44, Ya)], 8, ["to"])) : T("", !0)], 64));
2087
2103
  }
2088
- }), [["__scopeId", "data-v-3343ae7d"]]), lo = /* @__PURE__ */ R({
2104
+ }), [["__scopeId", "data-v-3343ae7d"]]), po = /* @__PURE__ */ R({
2089
2105
  __name: "LocaleMarkers",
2090
2106
  props: { block: {} },
2091
2107
  setup(e) {
2092
- let n = e, r = L(Un, null), i = L(ln, void 0), a = L(Dn, []), o = L(Xt, Ke.liquid), c = L(On, C(() => /* @__PURE__ */ new Set())), l = C(() => r?.activeLocale?.value), u = C(() => l.value ? n.block.l10n?.[l.value] : void 0), d = C(() => ({
2108
+ let n = e, r = L(Kn, null), i = L(fn, void 0), a = L(An, []), o = L($t, Ve.liquid), c = L(jn, C(() => /* @__PURE__ */ new Set())), l = C(() => r?.activeLocale?.value), u = C(() => l.value ? n.block.l10n?.[l.value] : void 0), d = C(() => ({
2093
2109
  blocks: [n.block.type === "section" || n.block.type === "wrapper" ? {
2094
2110
  ...n.block,
2095
2111
  children: []
@@ -2098,14 +2114,14 @@ var Ga = [
2098
2114
  locale: r.content.value.settings.locale,
2099
2115
  locales: r.content.value.settings.locales
2100
2116
  }
2101
- })), f = C(() => r && l.value && !c.value.has(l.value) ? we(d.value, l.value, a) : {
2117
+ })), f = C(() => r && l.value && !c.value.has(l.value) ? Ke(d.value, l.value, a) : {
2102
2118
  missing: [],
2103
2119
  stale: [],
2104
2120
  translated: []
2105
2121
  }), p = C(() => f.value.stale.map((e) => e.slice(n.block.id.length + 1))), m = C(() => f.value.translated.flatMap((e) => {
2106
- let t = e.slice(n.block.id.length + 1), r = le(n.block, t), i = u.value?.text?.[t]?.value, a = n.block.type === "html" || ct[n.block.type]?.includes(t) ? "html" : "text";
2107
- return typeof r == "string" && i !== void 0 && Wa(r, i, o, a) ? [t] : [];
2108
- })), h = E(null), g = C(() => r && l.value && !c.value.has(l.value) ? oe(d.value, l.value, {
2122
+ let t = e.slice(n.block.id.length + 1), r = fe(n.block, t), i = u.value?.text?.[t]?.value, a = n.block.type === "html" || dt[n.block.type]?.includes(t) ? "html" : "text";
2123
+ return typeof r == "string" && i !== void 0 && qa(r, i, o, a) ? [t] : [];
2124
+ })), h = E(null), g = C(() => r && l.value && !c.value.has(l.value) ? Ge(d.value, l.value, {
2109
2125
  syntax: o,
2110
2126
  definitions: a,
2111
2127
  doNotTranslate: i?.doNotTranslate,
@@ -2115,9 +2131,9 @@ var Ga = [
2115
2131
  let t = e.slice(n.block.id.length + 1);
2116
2132
  return f.value.translated.includes(e) && !m.value.includes(t);
2117
2133
  })), v = C(() => Object.keys(u.value?.set ?? {}).filter((e) => {
2118
- let t = e.split("."), r = t.pop(), i = t.length ? le(n.block, t.join(".")) : n.block;
2119
- return Array.isArray(i) ? le(i, r) !== void 0 : i !== void 0;
2120
- })), y = C(() => !l.value && r ? (r.content.value.settings.locales ?? []).filter((e) => !c.value.has(e) && we(d.value, e, a).stale.length > 0) : []), b = C(() => l.value ? c.value.has(l.value) ? null : u.value?.hidden ? "hidden" : f.value.missing.length ? "missing" : p.value.length ? "stale" : m.value.length ? "tags-differ" : v.value.length ? "changed" : null : y.value.length ? "default-stale" : null);
2134
+ let t = e.split("."), r = t.pop(), i = t.length ? fe(n.block, t.join(".")) : n.block;
2135
+ return Array.isArray(i) ? fe(i, r) !== void 0 : i !== void 0;
2136
+ })), y = C(() => !l.value && r ? (r.content.value.settings.locales ?? []).filter((e) => !c.value.has(e) && Ke(d.value, e, a).stale.length > 0) : []), b = C(() => l.value ? c.value.has(l.value) ? null : u.value?.hidden ? "hidden" : f.value.missing.length ? "missing" : p.value.length ? "stale" : m.value.length ? "tags-differ" : v.value.length ? "changed" : null : y.value.length ? "default-stale" : null);
2121
2137
  function x(e) {
2122
2138
  return e === "missing" ? f.value.missing.length : e === "stale" ? p.value.length : e === "tags-differ" ? m.value.length : e === "default-stale" ? y.value.length : v.value.length;
2123
2139
  }
@@ -2126,12 +2142,12 @@ var Ga = [
2126
2142
  h.value = null;
2127
2143
  });
2128
2144
  let k = C(() => {
2129
- let e = le(n.block, p.value[0] ?? "");
2145
+ let e = fe(n.block, p.value[0] ?? "");
2130
2146
  if (typeof e != "string") return "";
2131
2147
  let t = e.split(/<[^>]*>/).join("");
2132
2148
  return Array.from(t).slice(0, 60).join("");
2133
2149
  });
2134
- return (t, n) => w(i) && b.value ? (s(), F(co, {
2150
+ return (t, n) => w(i) && b.value ? (s(), F(fo, {
2135
2151
  key: 0,
2136
2152
  "block-id": e.block.id,
2137
2153
  state: b.value,
@@ -2165,21 +2181,21 @@ var Ga = [
2165
2181
  "editable"
2166
2182
  ])) : T("", !0);
2167
2183
  }
2168
- }), uo = [
2184
+ }), mo = [
2169
2185
  "data-block-id",
2170
2186
  "data-block-type",
2171
2187
  "data-tpl-picked"
2172
- ], fo = ["aria-label"], po = ["data-lock-holder"], mo = ["aria-label"], ho = [
2188
+ ], ho = ["aria-label"], go = ["data-lock-holder"], _o = ["aria-label"], vo = [
2173
2189
  "aria-label",
2174
2190
  "aria-pressed",
2175
2191
  "title"
2176
- ], go = ["aria-label", "title"], _o = ["aria-label", "title"], vo = ["aria-label", "title"], yo = {
2192
+ ], yo = ["aria-label", "title"], bo = ["aria-label", "title"], xo = ["aria-label", "title"], So = {
2177
2193
  key: 3,
2178
2194
  class: "tpl-block-hidden-overlay tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[5] tpl:flex tpl:items-center tpl:justify-center tpl:rounded-sm"
2179
- }, bo = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, xo = {
2195
+ }, Co = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, wo = {
2180
2196
  key: 4,
2181
2197
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
2182
- }, So = ["aria-label", "title"], Co = /*#__PURE__*/ It(/* @__PURE__ */ R({
2198
+ }, To = ["aria-label", "title"], Eo = /*#__PURE__*/ zt(/* @__PURE__ */ R({
2183
2199
  __name: "BlockWrapper",
2184
2200
  props: {
2185
2201
  block: {},
@@ -2192,7 +2208,7 @@ var Ga = [
2192
2208
  },
2193
2209
  emits: ["select"],
2194
2210
  setup(e, { emit: n }) {
2195
- let o = I(() => import("./BlockIssueBadge-DaPTq1RE.js")), l = e, d = C(() => l.displayBlock ?? l.block), p = n, { t: m, format: h } = Jn(), g = L(Wn, null), _ = E(null), v = C(() => g?.liftedBlockId.value === l.block.id), b = C(() => v.value ? h(m.blockActions.dragLifted, { block: l.block.type }) : m.blockActions.drag);
2211
+ let o = I(() => import("./BlockIssueBadge-DaPTq1RE.js")), l = e, d = C(() => l.displayBlock ?? l.block), p = n, { t: m, format: h } = Zn(), g = L(qn, null), _ = E(null), v = C(() => g?.liftedBlockId.value === l.block.id), b = C(() => v.value ? h(m.blockActions.dragLifted, { block: l.block.type }) : m.blockActions.drag);
2196
2212
  async function x() {
2197
2213
  await u(), _.value?.focus();
2198
2214
  }
@@ -2202,7 +2218,7 @@ var Ga = [
2202
2218
  let k = C(() => !l.viewport || !d.value.visibility ? !1 : d.value.visibility[l.viewport] === !1), A = C(() => !!(ye?.activeLocale?.value && l.block.l10n?.[ye.activeLocale.value]?.hidden)), M = C(() => l.previewMode === !0 && (k.value || A.value)), N = C(() => l.viewport ? {
2203
2219
  desktop: m.viewport.desktop,
2204
2220
  mobile: m.viewport.mobile
2205
- }[l.viewport] ?? l.viewport : ""), ee = C(() => !!d.value.displayCondition), P = L(Bn, null), te = L(Nn, null), R = L(wn, {}), ne = C(() => R.savedBlocks?.isPicking.value === !0), re = C(() => !l.nested && R.savedBlocks?.isAvailable.value === !0 && R.savedBlocks?.canCreate.value === !0), ie = C(() => l.isSelected && !ne.value), ae = C(() => R.comments?.getBlockCount(l.block.id) ?? 0), oe = E(null), se = E(null), B = E(null), ce = E(null), le = E({
2221
+ }[l.viewport] ?? l.viewport : ""), ee = C(() => !!d.value.displayCondition), P = L(Un, null), te = L(In, null), R = L(Dn, {}), ne = C(() => R.savedBlocks?.isPicking.value === !0), re = C(() => !l.nested && R.savedBlocks?.isAvailable.value === !0 && R.savedBlocks?.canCreate.value === !0), ie = C(() => l.isSelected && !ne.value), ae = C(() => R.comments?.getBlockCount(l.block.id) ?? 0), oe = E(null), se = E(null), B = E(null), ce = E(null), le = E({
2206
2222
  left: "calc(100% + 8px)",
2207
2223
  top: "50%"
2208
2224
  }), ue = E(!1), de = C(() => se.value ?? ce.value), fe = C(() => de.value?.closest(".tpl-body"));
@@ -2235,19 +2251,19 @@ var Ga = [
2235
2251
  top: h
2236
2252
  });
2237
2253
  }
2238
- a(pe), cr(C(() => de.value ? [
2254
+ a(pe), dr(C(() => de.value ? [
2239
2255
  oe.value,
2240
2256
  se.value,
2241
2257
  B.value,
2242
2258
  ce.value,
2243
2259
  fe.value
2244
- ].filter((e) => !!e) : []), pe), ar(fe, "scroll", pe, { passive: !0 });
2245
- let me = C(() => R.collaboration?.lockOf(l.block.id) ?? null), he = C(() => me.value?.holder.type === "guest" ? m.collaboration.guest : me.value?.holder.name ?? ""), ge = C(() => R.collaboration?.agentHighlightOf(l.block.id) ?? R.ai?.highlightOf(l.block.id) ?? null), _e = Mt(() => d.value.type === "section" ? d.value.backgroundImage : void 0), ve = Mt(() => d.value.type === "section" ? d.value.wrapper?.backgroundImage : void 0), ye = L(Un, null), be = ye ? Yn(ye) : null, xe = L(jn, null) ?? be?.content ?? null;
2246
- t([() => ye?.activeLocale?.value, () => be && ke(be.settings.value)], pe, { flush: "post" });
2247
- let Se = L(mn, void 0), Ce = C(() => Ji(d.value, {
2260
+ ].filter((e) => !!e) : []), pe), cr(fe, "scroll", pe, { passive: !0 });
2261
+ let me = C(() => R.collaboration?.lockOf(l.block.id) ?? null), he = C(() => me.value?.holder.type === "guest" ? m.collaboration.guest : me.value?.holder.name ?? ""), ge = C(() => R.collaboration?.agentHighlightOf(l.block.id) ?? R.ai?.highlightOf(l.block.id) ?? null), _e = Ft(() => d.value.type === "section" ? d.value.backgroundImage : void 0), ve = Ft(() => d.value.type === "section" ? d.value.wrapper?.backgroundImage : void 0), ye = L(Kn, null), be = ye ? Qn(ye) : null, xe = L(Pn, null) ?? be?.content ?? null;
2262
+ t([() => ye?.activeLocale?.value, () => be && mt(be.settings.value)], pe, { flush: "post" });
2263
+ let Se = L(_n, void 0), Ce = C(() => Zi(d.value, {
2248
2264
  backgroundImageUrl: _e.value,
2249
- heroBoxWidth: Ct(d.value) ? Ot(d.value, xe?.value, Se) : void 0
2250
- })), we = C(() => Zi(d.value, { backgroundImageUrl: ve.value }));
2265
+ heroBoxWidth: Et(d.value) ? jt(d.value, xe?.value, Se) : void 0
2266
+ })), we = C(() => ea(d.value, { backgroundImageUrl: ve.value }));
2251
2267
  function Te(e) {
2252
2268
  l.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), p("select"));
2253
2269
  }
@@ -2260,7 +2276,7 @@ var Ga = [
2260
2276
  function Oe() {
2261
2277
  R.savedBlocks?.startPicking(l.block.id);
2262
2278
  }
2263
- function Ae() {
2279
+ function ke() {
2264
2280
  te?.toggleBlock(l.block.id);
2265
2281
  }
2266
2282
  return (t, n) => M.value ? T("", !0) : (s(), D("div", {
@@ -2291,12 +2307,12 @@ var Ga = [
2291
2307
  class: c(["tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]", ue.value ? void 0 : "tpl:absolute tpl:-top-2 tpl:inset-s-full tpl:ms-2"]),
2292
2308
  "aria-label": w(h)(w(m).blockActions.comments, { count: String(ae.value) }),
2293
2309
  onClick: n[0] ||= z((t) => w(R).comments?.openForBlock(e.block.id), ["stop"])
2294
- }, [y(w(Wt), {
2310
+ }, [y(w(qt), {
2295
2311
  size: 12,
2296
2312
  "stroke-width": 2.5
2297
- }), O(" " + i(ae.value), 1)], 10, fo)) : T("", !0),
2313
+ }), O(" " + i(ae.value), 1)], 10, ho)) : T("", !0),
2298
2314
  y(w(o), { "block-id": e.block.id }, null, 8, ["block-id"]),
2299
- e.previewMode ? T("", !0) : (s(), F(lo, {
2315
+ e.previewMode ? T("", !0) : (s(), F(po, {
2300
2316
  key: 1,
2301
2317
  block: e.block
2302
2318
  }, null, 8, ["block"]))
@@ -2314,9 +2330,9 @@ var Ga = [
2314
2330
  class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:-translate-x-1/2 tpl:-translate-y-full tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
2315
2331
  style: f({
2316
2332
  backgroundColor: me.value.holder.color,
2317
- color: w(Sr)(me.value.holder.color)
2333
+ color: w(Tr)(me.value.holder.color)
2318
2334
  })
2319
- }, i(w(h)(w(m).collaboration.editing, { name: he.value })), 5)], 12, po)) : T("", !0),
2335
+ }, i(w(h)(w(m).collaboration.editing, { name: he.value })), 5)], 12, go)) : T("", !0),
2320
2336
  ge.value === null ? T("", !0) : (s(), D("div", {
2321
2337
  key: ge.value,
2322
2338
  "data-testid": "block-agent-highlight",
@@ -2341,90 +2357,96 @@ var Ga = [
2341
2357
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
2342
2358
  title: w(m).blockActions.drag,
2343
2359
  onKeydown: S
2344
- }, [y(w(Dr), {
2360
+ }, [y(w(Ar), {
2345
2361
  size: 14,
2346
2362
  "stroke-width": 1.5
2347
- })], 40, ho),
2363
+ })], 40, vo),
2348
2364
  j("button", {
2349
2365
  class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
2350
2366
  "aria-label": w(m).blockActions.duplicate,
2351
2367
  title: w(m).blockActions.duplicate,
2352
2368
  onClick: z(De, ["stop"])
2353
- }, [y(w(zt), {
2369
+ }, [y(w(Ht), {
2354
2370
  size: 14,
2355
2371
  "stroke-width": 1.5
2356
- })], 8, go),
2372
+ })], 8, yo),
2357
2373
  re.value ? (s(), D("button", {
2358
2374
  key: 0,
2359
2375
  class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
2360
2376
  "aria-label": w(m).blockActions.saveAsBlock,
2361
2377
  title: w(m).blockActions.saveAsBlock,
2362
2378
  onClick: z(Oe, ["stop"])
2363
- }, [y(w(Cr), {
2379
+ }, [y(w(Er), {
2364
2380
  size: 14,
2365
2381
  "stroke-width": 1.5
2366
- })], 8, _o)) : T("", !0),
2382
+ })], 8, bo)) : T("", !0),
2367
2383
  j("button", {
2368
2384
  class: "tpl-block-action-btn tpl-block-delete-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
2369
2385
  "aria-label": w(m).blockActions.delete,
2370
2386
  title: w(m).blockActions.delete,
2371
2387
  onClick: z(Ee, ["stop"])
2372
- }, [y(w(Kt), {
2388
+ }, [y(w(Yt), {
2373
2389
  size: 14,
2374
2390
  "stroke-width": 1.5
2375
- })], 8, vo)
2376
- ], 12, mo)) : T("", !0),
2377
- k.value ? (s(), D("div", yo, [j("span", bo, [y(w(Tr), {
2391
+ })], 8, xo)
2392
+ ], 12, _o)) : T("", !0),
2393
+ k.value ? (s(), D("div", So, [j("span", Co, [y(w(Or), {
2378
2394
  size: 12,
2379
2395
  "stroke-width": 1.5
2380
2396
  }), O(" " + i(w(h)(w(m).blockActions.hiddenOnViewport, { viewport: N.value })), 1)])])) : T("", !0),
2381
- ee.value && !k.value ? (s(), D("div", xo, [j("button", {
2397
+ ee.value && !k.value ? (s(), D("div", wo, [j("button", {
2382
2398
  "data-testid": "condition-toggle",
2383
2399
  class: "tpl-condition-toggle tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1 tpl:transition-colors tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
2384
2400
  "aria-label": w(m).blockActions.conditionToggle,
2385
2401
  title: e.block.displayCondition?.label,
2386
- onClick: z(Ae, ["stop"])
2387
- }, [y(w(Er), {
2402
+ onClick: z(ke, ["stop"])
2403
+ }, [y(w(kr), {
2388
2404
  size: 12,
2389
2405
  "stroke-width": 2
2390
- })], 8, So)])) : T("", !0),
2406
+ })], 8, To)])) : T("", !0),
2391
2407
  we.value ? (s(), D("div", {
2392
2408
  key: 5,
2393
- class: c(["tpl-section-wrapper tpl-email-surface", w(Wi)(we.value)]),
2409
+ class: c(["tpl-section-wrapper tpl-email-surface", w(qi)(we.value)]),
2394
2410
  style: f(we.value)
2395
2411
  }, [j("div", {
2396
- class: c(["tpl-block-content tpl-email-surface", w(Wi)(Ce.value)]),
2412
+ class: c(["tpl-block-content tpl-email-surface", w(qi)(Ce.value)]),
2397
2413
  style: f(Ce.value)
2398
2414
  }, [r(t.$slots, "default", {}, void 0, !0)], 6)], 6)) : (s(), D("div", {
2399
2415
  key: 6,
2400
- class: c(["tpl-block-content tpl-email-surface", w(Wi)(Ce.value)]),
2416
+ class: c(["tpl-block-content tpl-email-surface", w(qi)(Ce.value)]),
2401
2417
  style: f(Ce.value)
2402
2418
  }, [r(t.$slots, "default", {}, void 0, !0)], 6))
2403
- ], 10, uo));
2419
+ ], 10, mo));
2404
2420
  }
2405
2421
  }), [["__scopeId", "data-v-8c371dc9"]]);
2406
2422
  // src/utils/unwrapParagraph.ts
2407
- function wo(e) {
2408
- let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
2409
- return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
2423
+ function Do(e) {
2424
+ let t = /^\s*<p\b/.exec(e);
2425
+ if (!t) return e;
2426
+ let n = Ue(e, t[0].length);
2427
+ if (n === -1) return e;
2428
+ let r = /<\/p>\s*$/.exec(e);
2429
+ if (!r || r.index <= n) return e;
2430
+ let i = e.slice(n + 1, r.index);
2431
+ return /<\/p>\s*<p\b/i.test(i) ? e : i;
2410
2432
  }
2411
2433
  // src/components/blocks/TitleBlock.vue
2412
- var To = /* @__PURE__ */ R({
2434
+ var Oo = /* @__PURE__ */ R({
2413
2435
  __name: "TitleBlock",
2414
2436
  props: {
2415
2437
  block: {},
2416
2438
  viewport: {}
2417
2439
  },
2418
2440
  setup(e) {
2419
- let t = e, n = I(() => import("./TitleEditor-BLP41rwy.js")), r = Fn(Sn, "TitleBlock"), { isEditing: i, blockRef: a, toolbarPosition: c, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = za(() => t.block.content), p = C(() => {
2441
+ let t = e, n = I(() => import("./TitleEditor-D5kC56Jl.js")), r = Rn(Tn, "TitleBlock"), { isEditing: i, blockRef: a, toolbarPosition: c, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Ha(() => t.block.content), p = C(() => {
2420
2442
  let e = {
2421
- fontSize: `${Be[t.block.level]}px`,
2422
- lineHeight: String(at),
2443
+ fontSize: `${Ie[t.block.level]}px`,
2444
+ lineHeight: String(ct),
2423
2445
  fontWeight: "700",
2424
2446
  textAlign: t.block.textAlign
2425
2447
  };
2426
2448
  return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = r.resolveFontFamily(t.block.fontFamily)), e;
2427
- }), m = C(() => `h${t.block.level}`), h = C(() => wo(l.value));
2449
+ }), m = C(() => `h${t.block.level}`), h = C(() => Kt(Do(l.value)));
2428
2450
  return (t, r) => (s(), D("div", {
2429
2451
  ref_key: "blockRef",
2430
2452
  ref: a,
@@ -2450,14 +2472,14 @@ var To = /* @__PURE__ */ R({
2450
2472
  innerHTML: h.value
2451
2473
  }, null, 8, ["innerHTML"]))], 36));
2452
2474
  }
2453
- }), Eo = "hero", Do = "#1f2937", Oo = "#ffffff";
2454
- function ko(e, t) {
2475
+ }), ko = "hero", Ao = "#1f2937", jo = "#ffffff";
2476
+ function Mo(e, t) {
2455
2477
  let n = ae("title", e);
2456
- n.color = Oo, n.textAlign = "center";
2478
+ n.color = jo, n.textAlign = "center";
2457
2479
  let r = ae("paragraph", e);
2458
- r.content = `<p style="text-align: center"><span style="color: ${Oo}">${Ao(t)}</span></p>`;
2480
+ r.content = `<p style="text-align: center"><span style="color: ${jo}">${No(t)}</span></p>`;
2459
2481
  let i = ae("button", e);
2460
- return i.align = "center", je({
2482
+ return i.align = "center", De({
2461
2483
  columns: "1",
2462
2484
  children: [[
2463
2485
  n,
@@ -2475,96 +2497,96 @@ function ko(e, t) {
2475
2497
  bottom: 48,
2476
2498
  left: 24
2477
2499
  },
2478
- backgroundColor: Do
2500
+ backgroundColor: Ao
2479
2501
  }
2480
2502
  });
2481
2503
  }
2482
- function Ao(e) {
2504
+ function No(e) {
2483
2505
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2484
2506
  }
2485
2507
  // src/utils/sectionColumnDrop.ts
2486
- var jo = /* @__PURE__ */ new Set(["section", Eo]);
2487
- function Mo(e) {
2488
- return e.dataset.blockType !== "section" && !jo.has(e.dataset.paletteType ?? "");
2508
+ var Po = /* @__PURE__ */ new Set(["section", ko]);
2509
+ function Fo(e) {
2510
+ return e.dataset.blockType !== "section" && !Po.has(e.dataset.paletteType ?? "");
2489
2511
  }
2490
2512
  // ../../node_modules/.pnpm/vue-draggable-plus@0.6.1_@types+sortablejs@1.15.9/node_modules/vue-draggable-plus/dist/vue-draggable-plus.js
2491
- var No = Object.defineProperty, Po = Object.getOwnPropertySymbols, Fo = Object.prototype.hasOwnProperty, Io = Object.prototype.propertyIsEnumerable, Lo = (e, t, n) => t in e ? No(e, t, {
2513
+ var Io = Object.defineProperty, Lo = Object.getOwnPropertySymbols, Ro = Object.prototype.hasOwnProperty, zo = Object.prototype.propertyIsEnumerable, Bo = (e, t, n) => t in e ? Io(e, t, {
2492
2514
  enumerable: !0,
2493
2515
  configurable: !0,
2494
2516
  writable: !0,
2495
2517
  value: n
2496
- }) : e[t] = n, Ro = (e, t) => {
2497
- for (var n in t ||= {}) Fo.call(t, n) && Lo(e, n, t[n]);
2498
- if (Po) for (var n of Po(t)) Io.call(t, n) && Lo(e, n, t[n]);
2518
+ }) : e[t] = n, Vo = (e, t) => {
2519
+ for (var n in t ||= {}) Ro.call(t, n) && Bo(e, n, t[n]);
2520
+ if (Lo) for (var n of Lo(t)) zo.call(t, n) && Bo(e, n, t[n]);
2499
2521
  return e;
2500
- }, zo = (e, t) => {
2522
+ }, Ho = (e, t) => {
2501
2523
  var n = {};
2502
- for (var r in e) Fo.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2503
- if (e != null && Po) for (var r of Po(e)) t.indexOf(r) < 0 && Io.call(e, r) && (n[r] = e[r]);
2524
+ for (var r in e) Ro.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2525
+ if (e != null && Lo) for (var r of Lo(e)) t.indexOf(r) < 0 && zo.call(e, r) && (n[r] = e[r]);
2504
2526
  return n;
2505
- }, Bo = "[vue-draggable-plus]: ";
2506
- function Vo(e) {
2507
- console.warn(Bo + e);
2527
+ }, Uo = "[vue-draggable-plus]: ";
2528
+ function Wo(e) {
2529
+ console.warn(Uo + e);
2508
2530
  }
2509
- function Ho(e) {
2510
- console.error(Bo + e);
2531
+ function Go(e) {
2532
+ console.error(Uo + e);
2511
2533
  }
2512
- function Uo(e, t, n) {
2534
+ function Ko(e, t, n) {
2513
2535
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
2514
2536
  }
2515
- function Wo(e) {
2537
+ function qo(e) {
2516
2538
  return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
2517
2539
  }
2518
- function Go(e) {
2519
- return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[Wo(n)] = e[n]), t), {});
2540
+ function Jo(e) {
2541
+ return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[qo(n)] = e[n]), t), {});
2520
2542
  }
2521
- function Ko(e, t) {
2543
+ function Yo(e, t) {
2522
2544
  return Array.isArray(e) && e.splice(t, 1), e;
2523
2545
  }
2524
- function qo(e, t, n) {
2546
+ function Xo(e, t, n) {
2525
2547
  return Array.isArray(e) && e.splice(t, 0, n), e;
2526
2548
  }
2527
- function Jo(e) {
2549
+ function Zo(e) {
2528
2550
  return e === void 0;
2529
2551
  }
2530
- function Yo(e) {
2552
+ function Qo(e) {
2531
2553
  return typeof e == "string";
2532
2554
  }
2533
- function Xo(e, t, n) {
2555
+ function $o(e, t, n) {
2534
2556
  let r = e.children[n];
2535
2557
  e.insertBefore(t, r);
2536
2558
  }
2537
- function Zo(e) {
2559
+ function es(e) {
2538
2560
  e.parentNode && e.parentNode.removeChild(e);
2539
2561
  }
2540
- function Qo(e, t = document) {
2562
+ function ts(e, t = document) {
2541
2563
  let n = null;
2542
- return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Vo(`Element not found: ${e}`), n;
2564
+ return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Wo(`Element not found: ${e}`), n;
2543
2565
  }
2544
- function $o(e, t, n = null) {
2566
+ function ns(e, t, n = null) {
2545
2567
  return function(...r) {
2546
2568
  return e.apply(n, r), t.apply(n, r);
2547
2569
  };
2548
2570
  }
2549
- function es(e, t) {
2550
- let n = Ro({}, e);
2571
+ function rs(e, t) {
2572
+ let n = Vo({}, e);
2551
2573
  return Object.keys(t).forEach((r) => {
2552
- n[r] ? n[r] = $o(e[r], t[r]) : n[r] = t[r];
2574
+ n[r] ? n[r] = ns(e[r], t[r]) : n[r] = t[r];
2553
2575
  }), n;
2554
2576
  }
2555
- function ts(e) {
2577
+ function is(e) {
2556
2578
  return e instanceof HTMLElement;
2557
2579
  }
2558
- function ns(e, t) {
2580
+ function as(e, t) {
2559
2581
  Object.keys(e).forEach((n) => {
2560
2582
  t(n, e[n]);
2561
2583
  });
2562
2584
  }
2563
- function rs(e) {
2585
+ function os(e) {
2564
2586
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
2565
2587
  }
2566
- var is = Object.assign;
2567
- function as(e, t) {
2588
+ var ss = Object.assign;
2589
+ function cs(e, t) {
2568
2590
  var n = Object.keys(e);
2569
2591
  if (Object.getOwnPropertySymbols) {
2570
2592
  var r = Object.getOwnPropertySymbols(e);
@@ -2574,26 +2596,26 @@ function as(e, t) {
2574
2596
  }
2575
2597
  return n;
2576
2598
  }
2577
- function os(e) {
2599
+ function ls(e) {
2578
2600
  for (var t = 1; t < arguments.length; t++) {
2579
2601
  var n = arguments[t] == null ? {} : arguments[t];
2580
- t % 2 ? as(Object(n), !0).forEach(function(t) {
2581
- cs(e, t, n[t]);
2582
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : as(Object(n)).forEach(function(t) {
2602
+ t % 2 ? cs(Object(n), !0).forEach(function(t) {
2603
+ ds(e, t, n[t]);
2604
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : cs(Object(n)).forEach(function(t) {
2583
2605
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
2584
2606
  });
2585
2607
  }
2586
2608
  return e;
2587
2609
  }
2588
- function ss(e) {
2610
+ function us(e) {
2589
2611
  "@babel/helpers - typeof";
2590
- return ss = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2612
+ return us = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2591
2613
  return typeof e;
2592
2614
  } : function(e) {
2593
2615
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2594
- }, ss(e);
2616
+ }, us(e);
2595
2617
  }
2596
- function cs(e, t, n) {
2618
+ function ds(e, t, n) {
2597
2619
  return t in e ? Object.defineProperty(e, t, {
2598
2620
  value: n,
2599
2621
  enumerable: !0,
@@ -2601,44 +2623,44 @@ function cs(e, t, n) {
2601
2623
  writable: !0
2602
2624
  }) : e[t] = n, e;
2603
2625
  }
2604
- function ls() {
2605
- return ls = Object.assign || function(e) {
2626
+ function fs() {
2627
+ return fs = Object.assign || function(e) {
2606
2628
  for (var t = 1; t < arguments.length; t++) {
2607
2629
  var n = arguments[t];
2608
2630
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
2609
2631
  }
2610
2632
  return e;
2611
- }, ls.apply(this, arguments);
2633
+ }, fs.apply(this, arguments);
2612
2634
  }
2613
- function us(e, t) {
2635
+ function ps(e, t) {
2614
2636
  if (e == null) return {};
2615
2637
  for (var n = {}, r = Object.keys(e), i, a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
2616
2638
  return n;
2617
2639
  }
2618
- function ds(e, t) {
2640
+ function ms(e, t) {
2619
2641
  if (e == null) return {};
2620
- var n = us(e, t), r, i;
2642
+ var n = ps(e, t), r, i;
2621
2643
  if (Object.getOwnPropertySymbols) {
2622
2644
  var a = Object.getOwnPropertySymbols(e);
2623
2645
  for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
2624
2646
  }
2625
2647
  return n;
2626
2648
  }
2627
- var fs = "1.15.2";
2628
- function ps(e) {
2649
+ var hs = "1.15.2";
2650
+ function gs(e) {
2629
2651
  if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
2630
2652
  }
2631
- var ms = ps(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), hs = ps(/Edge/i), gs = ps(/firefox/i), _s = ps(/safari/i) && !ps(/chrome/i) && !ps(/android/i), vs = ps(/iP(ad|od|hone)/i), ys = ps(/chrome/i) && ps(/android/i), bs = {
2653
+ var _s = gs(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), vs = gs(/Edge/i), ys = gs(/firefox/i), bs = gs(/safari/i) && !gs(/chrome/i) && !gs(/android/i), xs = gs(/iP(ad|od|hone)/i), Ss = gs(/chrome/i) && gs(/android/i), Cs = {
2632
2654
  capture: !1,
2633
2655
  passive: !1
2634
2656
  };
2635
2657
  function V(e, t, n) {
2636
- e.addEventListener(t, n, !ms && bs);
2658
+ e.addEventListener(t, n, !_s && Cs);
2637
2659
  }
2638
2660
  function H(e, t, n) {
2639
- e.removeEventListener(t, n, !ms && bs);
2661
+ e.removeEventListener(t, n, !_s && Cs);
2640
2662
  }
2641
- function xs(e, t) {
2663
+ function ws(e, t) {
2642
2664
  if (t) {
2643
2665
  if (t[0] === ">" && (t = t.substring(1)), e) try {
2644
2666
  if (e.matches) return e.matches(t);
@@ -2650,22 +2672,22 @@ function xs(e, t) {
2650
2672
  return !1;
2651
2673
  }
2652
2674
  }
2653
- function Ss(e) {
2675
+ function Ts(e) {
2654
2676
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
2655
2677
  }
2656
- function Cs(e, t, n, r) {
2678
+ function Es(e, t, n, r) {
2657
2679
  if (e) {
2658
2680
  n ||= document;
2659
2681
  do {
2660
- if (t != null && (t[0] === ">" ? e.parentNode === n && xs(e, t) : xs(e, t)) || r && e === n) return e;
2682
+ if (t != null && (t[0] === ">" ? e.parentNode === n && ws(e, t) : ws(e, t)) || r && e === n) return e;
2661
2683
  if (e === n) break;
2662
- } while (e = Ss(e));
2684
+ } while (e = Ts(e));
2663
2685
  }
2664
2686
  return null;
2665
2687
  }
2666
- var ws = /\s+/g;
2667
- function Ts(e, t, n) {
2668
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(ws, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(ws, " "));
2688
+ var Ds = /\s+/g;
2689
+ function Os(e, t, n) {
2690
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Ds, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Ds, " "));
2669
2691
  }
2670
2692
  function U(e, t, n) {
2671
2693
  var r = e && e.style;
@@ -2674,7 +2696,7 @@ function U(e, t, n) {
2674
2696
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
2675
2697
  }
2676
2698
  }
2677
- function Es(e, t) {
2699
+ function ks(e, t) {
2678
2700
  var n = "";
2679
2701
  if (typeof e == "string") n = e;
2680
2702
  else do {
@@ -2684,7 +2706,7 @@ function Es(e, t) {
2684
2706
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
2685
2707
  return i && new i(n);
2686
2708
  }
2687
- function Ds(e, t, n) {
2709
+ function As(e, t, n) {
2688
2710
  if (e) {
2689
2711
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
2690
2712
  if (n) for (; i < a; i++) n(r[i], i);
@@ -2692,13 +2714,13 @@ function Ds(e, t, n) {
2692
2714
  }
2693
2715
  return [];
2694
2716
  }
2695
- function Os() {
2717
+ function js() {
2696
2718
  return document.scrollingElement || document.documentElement;
2697
2719
  }
2698
2720
  function W(e, t, n, r, i) {
2699
2721
  if (e.getBoundingClientRect || e === window) {
2700
2722
  var a, o, s, c, l, u, d;
2701
- if (e !== window && e.parentNode && e !== Os() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !ms)) do
2723
+ if (e !== window && e.parentNode && e !== js() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !_s)) do
2702
2724
  if (i && i.getBoundingClientRect && (U(i, "transform") !== "none" || n && U(i, "position") !== "static")) {
2703
2725
  var f = i.getBoundingClientRect();
2704
2726
  o -= f.top + parseInt(U(i, "border-top-width")), s -= f.left + parseInt(U(i, "border-left-width")), c = o + a.height, l = s + a.width;
@@ -2706,7 +2728,7 @@ function W(e, t, n, r, i) {
2706
2728
  }
2707
2729
  while (i = i.parentNode);
2708
2730
  if (r && e !== window) {
2709
- var p = Es(i || e), m = p && p.a, h = p && p.d;
2731
+ var p = ks(i || e), m = p && p.a, h = p && p.d;
2710
2732
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
2711
2733
  }
2712
2734
  return {
@@ -2719,18 +2741,18 @@ function W(e, t, n, r, i) {
2719
2741
  };
2720
2742
  }
2721
2743
  }
2722
- function ks(e, t, n) {
2723
- for (var r = Fs(e, !0), i = W(e)[t]; r;) {
2744
+ function Ms(e, t, n) {
2745
+ for (var r = Rs(e, !0), i = W(e)[t]; r;) {
2724
2746
  var a = W(r)[n], o = void 0;
2725
2747
  if (o = i >= a, !o) return r;
2726
- if (r === Os()) break;
2727
- r = Fs(r, !1);
2748
+ if (r === js()) break;
2749
+ r = Rs(r, !1);
2728
2750
  }
2729
2751
  return !1;
2730
2752
  }
2731
- function As(e, t, n, r) {
2753
+ function Ns(e, t, n, r) {
2732
2754
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
2733
- if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Cs(o[a], n.draggable, e, !1)) {
2755
+ if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Es(o[a], n.draggable, e, !1)) {
2734
2756
  if (i === t) return o[a];
2735
2757
  i++;
2736
2758
  }
@@ -2738,84 +2760,84 @@ function As(e, t, n, r) {
2738
2760
  }
2739
2761
  return null;
2740
2762
  }
2741
- function js(e, t) {
2742
- for (var n = e.lastElementChild; n && (n === Q.ghost || U(n, "display") === "none" || t && !xs(n, t));) n = n.previousElementSibling;
2763
+ function Ps(e, t) {
2764
+ for (var n = e.lastElementChild; n && (n === Q.ghost || U(n, "display") === "none" || t && !ws(n, t));) n = n.previousElementSibling;
2743
2765
  return n || null;
2744
2766
  }
2745
- function Ms(e, t) {
2767
+ function Fs(e, t) {
2746
2768
  var n = 0;
2747
2769
  if (!e || !e.parentNode) return -1;
2748
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || xs(e, t)) && n++;
2770
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || ws(e, t)) && n++;
2749
2771
  return n;
2750
2772
  }
2751
- function Ns(e) {
2752
- var t = 0, n = 0, r = Os();
2773
+ function Is(e) {
2774
+ var t = 0, n = 0, r = js();
2753
2775
  if (e) do {
2754
- var i = Es(e), a = i.a, o = i.d;
2776
+ var i = ks(e), a = i.a, o = i.d;
2755
2777
  t += e.scrollLeft * a, n += e.scrollTop * o;
2756
2778
  } while (e !== r && (e = e.parentNode));
2757
2779
  return [t, n];
2758
2780
  }
2759
- function Ps(e, t) {
2781
+ function Ls(e, t) {
2760
2782
  for (var n in e) if (e.hasOwnProperty(n)) {
2761
2783
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
2762
2784
  }
2763
2785
  return -1;
2764
2786
  }
2765
- function Fs(e, t) {
2766
- if (!e || !e.getBoundingClientRect) return Os();
2787
+ function Rs(e, t) {
2788
+ if (!e || !e.getBoundingClientRect) return js();
2767
2789
  var n = e, r = !1;
2768
2790
  do
2769
2791
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
2770
2792
  var i = U(n);
2771
2793
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
2772
- if (!n.getBoundingClientRect || n === document.body) return Os();
2794
+ if (!n.getBoundingClientRect || n === document.body) return js();
2773
2795
  if (r || t) return n;
2774
2796
  r = !0;
2775
2797
  }
2776
2798
  }
2777
2799
  while (n = n.parentNode);
2778
- return Os();
2800
+ return js();
2779
2801
  }
2780
- function Is(e, t) {
2802
+ function zs(e, t) {
2781
2803
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
2782
2804
  return e;
2783
2805
  }
2784
- function Ls(e, t) {
2806
+ function Bs(e, t) {
2785
2807
  return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
2786
2808
  }
2787
- var Rs;
2788
- function zs(e, t) {
2809
+ var Vs;
2810
+ function Hs(e, t) {
2789
2811
  return function() {
2790
- if (!Rs) {
2812
+ if (!Vs) {
2791
2813
  var n = arguments, r = this;
2792
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Rs = setTimeout(function() {
2793
- Rs = void 0;
2814
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Vs = setTimeout(function() {
2815
+ Vs = void 0;
2794
2816
  }, t);
2795
2817
  }
2796
2818
  };
2797
2819
  }
2798
- function Bs() {
2799
- clearTimeout(Rs), Rs = void 0;
2820
+ function Us() {
2821
+ clearTimeout(Vs), Vs = void 0;
2800
2822
  }
2801
- function Vs(e, t, n) {
2823
+ function Ws(e, t, n) {
2802
2824
  e.scrollLeft += t, e.scrollTop += n;
2803
2825
  }
2804
- function Hs(e) {
2826
+ function Gs(e) {
2805
2827
  var t = window.Polymer, n = window.jQuery || window.Zepto;
2806
2828
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
2807
2829
  }
2808
- function Us(e, t, n) {
2830
+ function Ks(e, t, n) {
2809
2831
  var r = {};
2810
2832
  return Array.from(e.children).forEach(function(i) {
2811
- if (Cs(i, t.draggable, e, !1) && !i.animated && i !== n) {
2833
+ if (Es(i, t.draggable, e, !1) && !i.animated && i !== n) {
2812
2834
  var a = W(i);
2813
2835
  r.left = Math.min(r.left ?? 1 / 0, a.left), r.top = Math.min(r.top ?? 1 / 0, a.top), r.right = Math.max(r.right ?? -1 / 0, a.right), r.bottom = Math.max(r.bottom ?? -1 / 0, a.bottom);
2814
2836
  }
2815
2837
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
2816
2838
  }
2817
- var Ws = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2818
- function Gs() {
2839
+ var qs = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2840
+ function Js() {
2819
2841
  var e = [], t;
2820
2842
  return {
2821
2843
  captureAnimationState: function() {
@@ -2825,9 +2847,9 @@ function Gs() {
2825
2847
  target: t,
2826
2848
  rect: W(t)
2827
2849
  });
2828
- var n = os({}, e[e.length - 1].rect);
2850
+ var n = ls({}, e[e.length - 1].rect);
2829
2851
  if (t.thisAnimationDuration) {
2830
- var r = Es(t, !0);
2852
+ var r = ks(t, !0);
2831
2853
  r && (n.top -= r.f, n.left -= r.e);
2832
2854
  }
2833
2855
  t.fromRect = n;
@@ -2838,7 +2860,7 @@ function Gs() {
2838
2860
  e.push(t);
2839
2861
  },
2840
2862
  removeAnimationState: function(t) {
2841
- e.splice(Ps(e, { target: t }), 1);
2863
+ e.splice(Ls(e, { target: t }), 1);
2842
2864
  },
2843
2865
  animateAll: function(n) {
2844
2866
  var r = this;
@@ -2846,8 +2868,8 @@ function Gs() {
2846
2868
  else {
2847
2869
  var i = !1, a = 0;
2848
2870
  e.forEach(function(e) {
2849
- var t = 0, n = e.target, o = n.fromRect, s = W(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Es(n, !0);
2850
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Ls(c, s) && !Ls(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = qs(u, c, l, r.options)), Ls(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
2871
+ var t = 0, n = e.target, o = n.fromRect, s = W(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = ks(n, !0);
2872
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Bs(c, s) && !Bs(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Xs(u, c, l, r.options)), Bs(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
2851
2873
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
2852
2874
  }, t), n.thisAnimationDuration = t);
2853
2875
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -2858,26 +2880,26 @@ function Gs() {
2858
2880
  animate: function(e, t, n, r) {
2859
2881
  if (r) {
2860
2882
  U(e, "transition", ""), U(e, "transform", "");
2861
- var i = Es(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
2862
- e.animatingX = !!s, e.animatingY = !!c, U(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Ks(e), U(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), U(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
2883
+ var i = ks(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
2884
+ e.animatingX = !!s, e.animatingY = !!c, U(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Ys(e), U(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), U(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
2863
2885
  U(e, "transition", ""), U(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
2864
2886
  }, r);
2865
2887
  }
2866
2888
  }
2867
2889
  };
2868
2890
  }
2869
- function Ks(e) {
2891
+ function Ys(e) {
2870
2892
  return e.offsetWidth;
2871
2893
  }
2872
- function qs(e, t, n, r) {
2894
+ function Xs(e, t, n, r) {
2873
2895
  return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
2874
2896
  }
2875
- var Js = [], Ys = { initializeByDefault: !0 }, Xs = {
2897
+ var Zs = [], Qs = { initializeByDefault: !0 }, $s = {
2876
2898
  mount: function(e) {
2877
- for (var t in Ys) Ys.hasOwnProperty(t) && !(t in e) && (e[t] = Ys[t]);
2878
- Js.forEach(function(t) {
2899
+ for (var t in Qs) Qs.hasOwnProperty(t) && !(t in e) && (e[t] = Qs[t]);
2900
+ Zs.forEach(function(t) {
2879
2901
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
2880
- }), Js.push(e);
2902
+ }), Zs.push(e);
2881
2903
  },
2882
2904
  pluginEvent: function(e, t, n) {
2883
2905
  var r = this;
@@ -2885,16 +2907,16 @@ var Js = [], Ys = { initializeByDefault: !0 }, Xs = {
2885
2907
  r.eventCanceled = !0;
2886
2908
  };
2887
2909
  var i = e + "Global";
2888
- Js.forEach(function(r) {
2889
- t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](os({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](os({ sortable: t }, n)));
2910
+ Zs.forEach(function(r) {
2911
+ t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](ls({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](ls({ sortable: t }, n)));
2890
2912
  });
2891
2913
  },
2892
2914
  initializePlugins: function(e, t, n, r) {
2893
- for (var i in Js.forEach(function(r) {
2915
+ for (var i in Zs.forEach(function(r) {
2894
2916
  var i = r.pluginName;
2895
2917
  if (e.options[i] || r.initializeByDefault) {
2896
2918
  var a = new r(e, t, e.options);
2897
- a.sortable = e, a.options = e.options, e[i] = a, ls(n, a.defaults);
2919
+ a.sortable = e, a.options = e.options, e[i] = a, fs(n, a.defaults);
2898
2920
  }
2899
2921
  }), e.options) if (e.options.hasOwnProperty(i)) {
2900
2922
  var a = this.modifyOption(e, i, e.options[i]);
@@ -2903,59 +2925,59 @@ var Js = [], Ys = { initializeByDefault: !0 }, Xs = {
2903
2925
  },
2904
2926
  getEventProperties: function(e, t) {
2905
2927
  var n = {};
2906
- return Js.forEach(function(r) {
2907
- typeof r.eventProperties == "function" && ls(n, r.eventProperties.call(t[r.pluginName], e));
2928
+ return Zs.forEach(function(r) {
2929
+ typeof r.eventProperties == "function" && fs(n, r.eventProperties.call(t[r.pluginName], e));
2908
2930
  }), n;
2909
2931
  },
2910
2932
  modifyOption: function(e, t, n) {
2911
2933
  var r;
2912
- return Js.forEach(function(i) {
2934
+ return Zs.forEach(function(i) {
2913
2935
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
2914
2936
  }), r;
2915
2937
  }
2916
2938
  };
2917
- function Zs(e) {
2939
+ function ec(e) {
2918
2940
  var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, o = e.toEl, s = e.fromEl, c = e.oldIndex, l = e.newIndex, u = e.oldDraggableIndex, d = e.newDraggableIndex, f = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
2919
- if (t ||= n && n[Ws], t) {
2941
+ if (t ||= n && n[qs], t) {
2920
2942
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
2921
- window.CustomEvent && !ms && !hs ? h = new CustomEvent(r, {
2943
+ window.CustomEvent && !_s && !vs ? h = new CustomEvent(r, {
2922
2944
  bubbles: !0,
2923
2945
  cancelable: !0
2924
2946
  }) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
2925
- var v = os(os({}, m), Xs.getEventProperties(r, t));
2947
+ var v = ls(ls({}, m), $s.getEventProperties(r, t));
2926
2948
  for (var y in v) h[y] = v[y];
2927
2949
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
2928
2950
  }
2929
2951
  }
2930
- var Qs = ["evt"], $s = function(e, t) {
2931
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = ds(n, Qs);
2932
- Xs.pluginEvent.bind(Q)(e, t, os({
2952
+ var tc = ["evt"], nc = function(e, t) {
2953
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = ms(n, tc);
2954
+ $s.pluginEvent.bind(Q)(e, t, ls({
2933
2955
  dragEl: G,
2934
2956
  parentEl: K,
2935
2957
  ghostEl: q,
2936
2958
  rootEl: J,
2937
- nextEl: tc,
2938
- lastDownEl: nc,
2959
+ nextEl: ic,
2960
+ lastDownEl: ac,
2939
2961
  cloneEl: Y,
2940
- cloneHidden: rc,
2941
- dragStarted: vc,
2962
+ cloneHidden: oc,
2963
+ dragStarted: xc,
2942
2964
  putSortable: X,
2943
2965
  activeSortable: Q.active,
2944
2966
  originalEvent: r,
2945
- oldIndex: ic,
2946
- oldDraggableIndex: oc,
2947
- newIndex: ac,
2948
- newDraggableIndex: sc,
2949
- hideGhostForTarget: Ic,
2950
- unhideGhostForTarget: Lc,
2967
+ oldIndex: sc,
2968
+ oldDraggableIndex: lc,
2969
+ newIndex: cc,
2970
+ newDraggableIndex: uc,
2971
+ hideGhostForTarget: zc,
2972
+ unhideGhostForTarget: Bc,
2951
2973
  cloneNowHidden: function() {
2952
- rc = !0;
2974
+ oc = !0;
2953
2975
  },
2954
2976
  cloneNowShown: function() {
2955
- rc = !1;
2977
+ oc = !1;
2956
2978
  },
2957
2979
  dispatchSortableEvent: function(e) {
2958
- ec({
2980
+ rc({
2959
2981
  sortable: t,
2960
2982
  name: e,
2961
2983
  originalEvent: r
@@ -2963,46 +2985,46 @@ var Qs = ["evt"], $s = function(e, t) {
2963
2985
  }
2964
2986
  }, i));
2965
2987
  };
2966
- function ec(e) {
2967
- Zs(os({
2988
+ function rc(e) {
2989
+ ec(ls({
2968
2990
  putSortable: X,
2969
2991
  cloneEl: Y,
2970
2992
  targetEl: G,
2971
2993
  rootEl: J,
2972
- oldIndex: ic,
2973
- oldDraggableIndex: oc,
2974
- newIndex: ac,
2975
- newDraggableIndex: sc
2994
+ oldIndex: sc,
2995
+ oldDraggableIndex: lc,
2996
+ newIndex: cc,
2997
+ newDraggableIndex: uc
2976
2998
  }, e));
2977
2999
  }
2978
- var G, K, q, J, tc, nc, Y, rc, ic, ac, oc, sc, cc, X, lc = !1, uc = !1, dc = [], fc, pc, mc, hc, gc, _c, vc, yc, bc, xc = !1, Sc = !1, Cc, Z, wc = [], Tc = !1, Ec = [], Dc = typeof document < "u", Oc = vs, kc = hs || ms ? "cssFloat" : "float", Ac = Dc && !ys && !vs && "draggable" in document.createElement("div"), jc = function() {
2979
- if (Dc) {
2980
- if (ms) return !1;
3000
+ var G, K, q, J, ic, ac, Y, oc, sc, cc, lc, uc, dc, X, fc = !1, pc = !1, mc = [], hc, gc, _c, vc, yc, bc, xc, Sc, Cc, wc = !1, Tc = !1, Ec, Z, Dc = [], Oc = !1, kc = [], Ac = typeof document < "u", jc = xs, Mc = vs || _s ? "cssFloat" : "float", Nc = Ac && !Ss && !xs && "draggable" in document.createElement("div"), Pc = function() {
3001
+ if (Ac) {
3002
+ if (_s) return !1;
2981
3003
  var e = document.createElement("x");
2982
3004
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
2983
3005
  }
2984
- }(), Mc = function(e, t) {
2985
- var n = U(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = As(e, 0, t), a = As(e, 1, t), o = i && U(i), s = a && U(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + W(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + W(a).width;
3006
+ }(), Fc = function(e, t) {
3007
+ var n = U(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Ns(e, 0, t), a = Ns(e, 1, t), o = i && U(i), s = a && U(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + W(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + W(a).width;
2986
3008
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
2987
3009
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
2988
3010
  if (i && o.float && o.float !== "none") {
2989
3011
  var u = o.float === "left" ? "left" : "right";
2990
3012
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
2991
3013
  }
2992
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[kc] === "none" || a && n[kc] === "none" && c + l > r) ? "vertical" : "horizontal";
2993
- }, Nc = function(e, t, n) {
3014
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Mc] === "none" || a && n[Mc] === "none" && c + l > r) ? "vertical" : "horizontal";
3015
+ }, Ic = function(e, t, n) {
2994
3016
  var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
2995
3017
  return r === o || i === s || r + a / 2 === o + c / 2;
2996
- }, Pc = function(e, t) {
3018
+ }, Lc = function(e, t) {
2997
3019
  var n;
2998
- return dc.some(function(r) {
2999
- var i = r[Ws].options.emptyInsertThreshold;
3000
- if (i && !js(r)) {
3020
+ return mc.some(function(r) {
3021
+ var i = r[qs].options.emptyInsertThreshold;
3022
+ if (i && !Ps(r)) {
3001
3023
  var a = W(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
3002
3024
  if (o && s) return n = r;
3003
3025
  }
3004
3026
  }), n;
3005
- }, Fc = function(e) {
3027
+ }, Rc = function(e) {
3006
3028
  function t(e, n) {
3007
3029
  return function(r, i, a, o) {
3008
3030
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -3015,31 +3037,31 @@ var G, K, q, J, tc, nc, Y, rc, ic, ac, oc, sc, cc, X, lc = !1, uc = !1, dc = [],
3015
3037
  };
3016
3038
  }
3017
3039
  var n = {}, r = e.group;
3018
- r && ss(r) == "object" || (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
3019
- }, Ic = function() {
3020
- !jc && q && U(q, "display", "none");
3021
- }, Lc = function() {
3022
- !jc && q && U(q, "display", "");
3040
+ r && us(r) == "object" || (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
3041
+ }, zc = function() {
3042
+ !Pc && q && U(q, "display", "none");
3043
+ }, Bc = function() {
3044
+ !Pc && q && U(q, "display", "");
3023
3045
  };
3024
- Dc && !ys && document.addEventListener("click", function(e) {
3025
- if (uc) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), uc = !1, !1;
3046
+ Ac && !Ss && document.addEventListener("click", function(e) {
3047
+ if (pc) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), pc = !1, !1;
3026
3048
  }, !0);
3027
- var Rc = function(e) {
3049
+ var Vc = function(e) {
3028
3050
  if (G) {
3029
3051
  e = e.touches ? e.touches[0] : e;
3030
- var t = Pc(e.clientX, e.clientY);
3052
+ var t = Lc(e.clientX, e.clientY);
3031
3053
  if (t) {
3032
3054
  var n = {};
3033
3055
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
3034
- n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Ws]._onDragOver(n);
3056
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[qs]._onDragOver(n);
3035
3057
  }
3036
3058
  }
3037
- }, zc = function(e) {
3038
- G && G.parentNode[Ws]._isOutsideThisEl(e.target);
3059
+ }, Hc = function(e) {
3060
+ G && G.parentNode[qs]._isOutsideThisEl(e.target);
3039
3061
  };
3040
3062
  function Q(e, t) {
3041
3063
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
3042
- this.el = e, this.options = t = ls({}, t), e[Ws] = this;
3064
+ this.el = e, this.options = t = fs({}, t), e[qs] = this;
3043
3065
  var n = {
3044
3066
  group: null,
3045
3067
  sort: !0,
@@ -3052,7 +3074,7 @@ function Q(e, t) {
3052
3074
  invertedSwapThreshold: null,
3053
3075
  removeCloneOnHide: !0,
3054
3076
  direction: function() {
3055
- return Mc(e, this.options);
3077
+ return Fc(e, this.options);
3056
3078
  },
3057
3079
  ghostClass: "sortable-ghost",
3058
3080
  chosenClass: "sortable-chosen",
@@ -3079,17 +3101,17 @@ function Q(e, t) {
3079
3101
  x: 0,
3080
3102
  y: 0
3081
3103
  },
3082
- supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !_s,
3104
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !bs,
3083
3105
  emptyInsertThreshold: 5
3084
3106
  };
3085
- for (var r in Xs.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3086
- for (var i in Fc(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3087
- this.nativeDraggable = !t.forceFallback && Ac, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? V(e, "pointerdown", this._onTapStart) : (V(e, "mousedown", this._onTapStart), V(e, "touchstart", this._onTapStart)), this.nativeDraggable && (V(e, "dragover", this), V(e, "dragenter", this)), dc.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), ls(this, Gs());
3107
+ for (var r in $s.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3108
+ for (var i in Rc(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3109
+ this.nativeDraggable = !t.forceFallback && Nc, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? V(e, "pointerdown", this._onTapStart) : (V(e, "mousedown", this._onTapStart), V(e, "touchstart", this._onTapStart)), this.nativeDraggable && (V(e, "dragover", this), V(e, "dragenter", this)), mc.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), fs(this, Js());
3088
3110
  }
3089
3111
  Q.prototype = {
3090
3112
  constructor: Q,
3091
3113
  _isOutsideThisEl: function(e) {
3092
- !this.el.contains(e) && e !== this.el && (yc = null);
3114
+ !this.el.contains(e) && e !== this.el && (Sc = null);
3093
3115
  },
3094
3116
  _getDirection: function(e, t) {
3095
3117
  return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
@@ -3097,33 +3119,33 @@ Q.prototype = {
3097
3119
  _onTapStart: function(e) {
3098
3120
  if (e.cancelable) {
3099
3121
  var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
3100
- if (Yc(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && _s && s && s.tagName.toUpperCase() === "SELECT") && (s = Cs(s, r.draggable, n, !1), !(s && s.animated) && nc !== s)) {
3101
- if (ic = Ms(s), oc = Ms(s, r.draggable), typeof l == "function") {
3122
+ if (Qc(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && bs && s && s.tagName.toUpperCase() === "SELECT") && (s = Es(s, r.draggable, n, !1), !(s && s.animated) && ac !== s)) {
3123
+ if (sc = Fs(s), lc = Fs(s, r.draggable), typeof l == "function") {
3102
3124
  if (l.call(this, e, s, this)) {
3103
- ec({
3125
+ rc({
3104
3126
  sortable: t,
3105
3127
  rootEl: c,
3106
3128
  name: "filter",
3107
3129
  targetEl: s,
3108
3130
  toEl: n,
3109
3131
  fromEl: n
3110
- }), $s("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
3132
+ }), nc("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
3111
3133
  return;
3112
3134
  }
3113
3135
  } else if (l && (l = l.split(",").some(function(r) {
3114
- if (r = Cs(c, r.trim(), n, !1), r) return ec({
3136
+ if (r = Es(c, r.trim(), n, !1), r) return rc({
3115
3137
  sortable: t,
3116
3138
  rootEl: r,
3117
3139
  name: "filter",
3118
3140
  targetEl: s,
3119
3141
  fromEl: n,
3120
3142
  toEl: n
3121
- }), $s("filter", t, { evt: e }), !0;
3143
+ }), nc("filter", t, { evt: e }), !0;
3122
3144
  }), l)) {
3123
3145
  i && e.cancelable && e.preventDefault();
3124
3146
  return;
3125
3147
  }
3126
- r.handle && !Cs(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3148
+ r.handle && !Es(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3127
3149
  }
3128
3150
  }
3129
3151
  },
@@ -3131,19 +3153,19 @@ Q.prototype = {
3131
3153
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
3132
3154
  if (n && !G && n.parentNode === i) {
3133
3155
  var c = W(n);
3134
- if (J = i, G = n, K = G.parentNode, tc = G.nextSibling, nc = n, cc = a.group, Q.dragged = G, fc = {
3156
+ if (J = i, G = n, K = G.parentNode, ic = G.nextSibling, ac = n, dc = a.group, Q.dragged = G, hc = {
3135
3157
  target: G,
3136
3158
  clientX: (t || e).clientX,
3137
3159
  clientY: (t || e).clientY
3138
- }, gc = fc.clientX - c.left, _c = fc.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
3139
- $s("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !gs && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), ec({
3160
+ }, yc = hc.clientX - c.left, bc = hc.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
3161
+ nc("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !ys && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), rc({
3140
3162
  sortable: r,
3141
3163
  name: "choose",
3142
3164
  originalEvent: e
3143
- }), Ts(G, a.chosenClass, !0));
3165
+ }), Os(G, a.chosenClass, !0));
3144
3166
  }, a.ignore.split(",").forEach(function(e) {
3145
- Ds(G, e.trim(), Hc);
3146
- }), V(o, "dragover", Rc), V(o, "mousemove", Rc), V(o, "touchmove", Rc), V(o, "mouseup", r._onDrop), V(o, "touchend", r._onDrop), V(o, "touchcancel", r._onDrop), gs && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), $s("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(hs || ms))) {
3167
+ As(G, e.trim(), Gc);
3168
+ }), V(o, "dragover", Vc), V(o, "mousemove", Vc), V(o, "touchmove", Vc), V(o, "mouseup", r._onDrop), V(o, "touchend", r._onDrop), V(o, "touchcancel", r._onDrop), ys && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), nc("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(vs || _s))) {
3147
3169
  if (Q.eventCanceled) {
3148
3170
  this._onDrop();
3149
3171
  return;
@@ -3157,7 +3179,7 @@ Q.prototype = {
3157
3179
  Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
3158
3180
  },
3159
3181
  _disableDelayedDrag: function() {
3160
- G && Hc(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3182
+ G && Gc(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3161
3183
  },
3162
3184
  _disableDelayedDragEvents: function() {
3163
3185
  var e = this.el.ownerDocument;
@@ -3166,16 +3188,16 @@ Q.prototype = {
3166
3188
  _triggerDragStart: function(e, t) {
3167
3189
  t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? V(document, "pointermove", this._onTouchMove) : t ? V(document, "touchmove", this._onTouchMove) : V(document, "mousemove", this._onTouchMove) : (V(G, "dragend", this), V(J, "dragstart", this._onDragStart));
3168
3190
  try {
3169
- document.selection ? Xc(function() {
3191
+ document.selection ? $c(function() {
3170
3192
  document.selection.empty();
3171
3193
  }) : window.getSelection().removeAllRanges();
3172
3194
  } catch {}
3173
3195
  },
3174
3196
  _dragStarted: function(e, t) {
3175
- if (lc = !1, J && G) {
3176
- $s("dragStarted", this, { evt: t }), this.nativeDraggable && V(document, "dragover", zc);
3197
+ if (fc = !1, J && G) {
3198
+ nc("dragStarted", this, { evt: t }), this.nativeDraggable && V(document, "dragover", Hc);
3177
3199
  var n = this.options;
3178
- !e && Ts(G, n.dragClass, !1), Ts(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), ec({
3200
+ !e && Os(G, n.dragClass, !1), Os(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), rc({
3179
3201
  sortable: this,
3180
3202
  name: "start",
3181
3203
  originalEvent: t
@@ -3183,33 +3205,33 @@ Q.prototype = {
3183
3205
  } else this._nulling();
3184
3206
  },
3185
3207
  _emulateDragOver: function() {
3186
- if (pc) {
3187
- this._lastX = pc.clientX, this._lastY = pc.clientY, Ic();
3188
- for (var e = document.elementFromPoint(pc.clientX, pc.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(pc.clientX, pc.clientY), e !== t);) t = e;
3189
- if (G.parentNode[Ws]._isOutsideThisEl(e), t) do {
3190
- if (t[Ws]) {
3208
+ if (gc) {
3209
+ this._lastX = gc.clientX, this._lastY = gc.clientY, zc();
3210
+ for (var e = document.elementFromPoint(gc.clientX, gc.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(gc.clientX, gc.clientY), e !== t);) t = e;
3211
+ if (G.parentNode[qs]._isOutsideThisEl(e), t) do {
3212
+ if (t[qs]) {
3191
3213
  var n = void 0;
3192
- if (n = t[Ws]._onDragOver({
3193
- clientX: pc.clientX,
3194
- clientY: pc.clientY,
3214
+ if (n = t[qs]._onDragOver({
3215
+ clientX: gc.clientX,
3216
+ clientY: gc.clientY,
3195
3217
  target: e,
3196
3218
  rootEl: t
3197
3219
  }), n && !this.options.dragoverBubble) break;
3198
3220
  }
3199
3221
  e = t;
3200
3222
  } while (t = t.parentNode);
3201
- Lc();
3223
+ Bc();
3202
3224
  }
3203
3225
  },
3204
3226
  _onTouchMove: function(e) {
3205
- if (fc) {
3206
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && Es(q, !0), o = q && a && a.a, s = q && a && a.d, c = Oc && Z && Ns(Z), l = (i.clientX - fc.clientX + r.x) / (o || 1) + (c ? c[0] - wc[0] : 0) / (o || 1), u = (i.clientY - fc.clientY + r.y) / (s || 1) + (c ? c[1] - wc[1] : 0) / (s || 1);
3207
- if (!Q.active && !lc) {
3227
+ if (hc) {
3228
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && ks(q, !0), o = q && a && a.a, s = q && a && a.d, c = jc && Z && Is(Z), l = (i.clientX - hc.clientX + r.x) / (o || 1) + (c ? c[0] - Dc[0] : 0) / (o || 1), u = (i.clientY - hc.clientY + r.y) / (s || 1) + (c ? c[1] - Dc[1] : 0) / (s || 1);
3229
+ if (!Q.active && !fc) {
3208
3230
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
3209
3231
  this._onDragStart(e, !0);
3210
3232
  }
3211
3233
  if (q) {
3212
- a ? (a.e += l - (mc || 0), a.f += u - (hc || 0)) : a = {
3234
+ a ? (a.e += l - (_c || 0), a.f += u - (vc || 0)) : a = {
3213
3235
  a: 1,
3214
3236
  b: 0,
3215
3237
  c: 0,
@@ -3218,35 +3240,35 @@ Q.prototype = {
3218
3240
  f: u
3219
3241
  };
3220
3242
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
3221
- U(q, "webkitTransform", d), U(q, "mozTransform", d), U(q, "msTransform", d), U(q, "transform", d), mc = l, hc = u, pc = i;
3243
+ U(q, "webkitTransform", d), U(q, "mozTransform", d), U(q, "msTransform", d), U(q, "transform", d), _c = l, vc = u, gc = i;
3222
3244
  }
3223
3245
  e.cancelable && e.preventDefault();
3224
3246
  }
3225
3247
  },
3226
3248
  _appendGhost: function() {
3227
3249
  if (!q) {
3228
- var e = this.options.fallbackOnBody ? document.body : J, t = W(G, !0, Oc, !0, e), n = this.options;
3229
- if (Oc) {
3250
+ var e = this.options.fallbackOnBody ? document.body : J, t = W(G, !0, jc, !0, e), n = this.options;
3251
+ if (jc) {
3230
3252
  for (Z = e; U(Z, "position") === "static" && U(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
3231
- Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Os()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Os(), wc = Ns(Z);
3253
+ Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = js()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = js(), Dc = Is(Z);
3232
3254
  }
3233
- q = G.cloneNode(!0), Ts(q, n.ghostClass, !1), Ts(q, n.fallbackClass, !0), Ts(q, n.dragClass, !0), U(q, "transition", ""), U(q, "transform", ""), U(q, "box-sizing", "border-box"), U(q, "margin", 0), U(q, "top", t.top), U(q, "left", t.left), U(q, "width", t.width), U(q, "height", t.height), U(q, "opacity", "0.8"), U(q, "position", Oc ? "absolute" : "fixed"), U(q, "zIndex", "100000"), U(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), U(q, "transform-origin", gc / parseInt(q.style.width) * 100 + "% " + _c / parseInt(q.style.height) * 100 + "%");
3255
+ q = G.cloneNode(!0), Os(q, n.ghostClass, !1), Os(q, n.fallbackClass, !0), Os(q, n.dragClass, !0), U(q, "transition", ""), U(q, "transform", ""), U(q, "box-sizing", "border-box"), U(q, "margin", 0), U(q, "top", t.top), U(q, "left", t.left), U(q, "width", t.width), U(q, "height", t.height), U(q, "opacity", "0.8"), U(q, "position", jc ? "absolute" : "fixed"), U(q, "zIndex", "100000"), U(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), U(q, "transform-origin", yc / parseInt(q.style.width) * 100 + "% " + bc / parseInt(q.style.height) * 100 + "%");
3234
3256
  }
3235
3257
  },
3236
3258
  _onDragStart: function(e, t) {
3237
3259
  var n = this, r = e.dataTransfer, i = n.options;
3238
- $s("dragStart", this, { evt: e }), Q.eventCanceled ? this._onDrop() : ($s("setupClone", this), Q.eventCanceled || (Y = Hs(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), Ts(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = Xc(function() {
3239
- $s("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), ec({
3260
+ nc("dragStart", this, { evt: e }), Q.eventCanceled ? this._onDrop() : (nc("setupClone", this), Q.eventCanceled || (Y = Gs(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), Os(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = $c(function() {
3261
+ nc("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), rc({
3240
3262
  sortable: n,
3241
3263
  name: "clone"
3242
3264
  }));
3243
- }), !t && Ts(G, i.dragClass, !0), t ? (uc = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (H(document, "mouseup", n._onDrop), H(document, "touchend", n._onDrop), H(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), V(document, "drop", n), U(G, "transform", "translateZ(0)")), lc = !0, n._dragStartId = Xc(n._dragStarted.bind(n, t, e)), V(document, "selectstart", n), vc = !0, _s && U(document.body, "user-select", "none"));
3265
+ }), !t && Os(G, i.dragClass, !0), t ? (pc = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (H(document, "mouseup", n._onDrop), H(document, "touchend", n._onDrop), H(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), V(document, "drop", n), U(G, "transform", "translateZ(0)")), fc = !0, n._dragStartId = $c(n._dragStarted.bind(n, t, e)), V(document, "selectstart", n), xc = !0, bs && U(document.body, "user-select", "none"));
3244
3266
  },
3245
3267
  _onDragOver: function(e) {
3246
- var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = cc === s, u = o.sort, d = X || c, f, p = this, m = !1;
3247
- if (Tc) return;
3268
+ var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = dc === s, u = o.sort, d = X || c, f, p = this, m = !1;
3269
+ if (Oc) return;
3248
3270
  function h(o, s) {
3249
- $s(o, p, os({
3271
+ nc(o, p, ls({
3250
3272
  evt: e,
3251
3273
  isOwner: l,
3252
3274
  axis: f ? "vertical" : "horizontal",
@@ -3258,7 +3280,7 @@ Q.prototype = {
3258
3280
  target: n,
3259
3281
  completed: _,
3260
3282
  onMove: function(n, i) {
3261
- return Vc(J, t, G, r, n, W(n), e, i);
3283
+ return Wc(J, t, G, r, n, W(n), e, i);
3262
3284
  },
3263
3285
  changed: v
3264
3286
  }, s));
@@ -3267,50 +3289,50 @@ Q.prototype = {
3267
3289
  h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
3268
3290
  }
3269
3291
  function _(r) {
3270
- return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (Ts(G, X ? X.options.ghostClass : c.options.ghostClass, !1), Ts(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
3292
+ return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (Os(G, X ? X.options.ghostClass : c.options.ghostClass, !1), Os(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
3271
3293
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
3272
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (yc = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[Ws]._isOutsideThisEl(e.target), !r && Rc(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
3294
+ }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (Sc = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[qs]._isOutsideThisEl(e.target), !r && Vc(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
3273
3295
  }
3274
3296
  function v() {
3275
- ac = Ms(G), sc = Ms(G, o.draggable), ec({
3297
+ cc = Fs(G), uc = Fs(G, o.draggable), rc({
3276
3298
  sortable: p,
3277
3299
  name: "change",
3278
3300
  toEl: t,
3279
- newIndex: ac,
3280
- newDraggableIndex: sc,
3301
+ newIndex: cc,
3302
+ newDraggableIndex: uc,
3281
3303
  originalEvent: e
3282
3304
  });
3283
3305
  }
3284
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Cs(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
3306
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Es(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
3285
3307
  if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
3286
- if (uc = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = cc.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
3308
+ if (pc = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = dc.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
3287
3309
  if (f = this._getDirection(e, n) === "vertical", r = W(G), h("dragOverValid"), Q.eventCanceled) return m;
3288
- if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (tc ? J.insertBefore(G, tc) : J.appendChild(G)), _(!0);
3289
- var y = js(t, o.draggable);
3290
- if (!y || Gc(e, f, this) && !y.animated) {
3310
+ if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (ic ? J.insertBefore(G, ic) : J.appendChild(G)), _(!0);
3311
+ var y = Ps(t, o.draggable);
3312
+ if (!y || Jc(e, f, this) && !y.animated) {
3291
3313
  if (y === G) return _(!1);
3292
- if (y && t === e.target && (n = y), n && (i = W(n)), Vc(J, t, G, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(G, y.nextSibling) : t.appendChild(G), K = t, v(), _(!0);
3293
- } else if (y && Wc(e, f, this)) {
3294
- var b = As(t, 0, o, !0);
3314
+ if (y && t === e.target && (n = y), n && (i = W(n)), Wc(J, t, G, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(G, y.nextSibling) : t.appendChild(G), K = t, v(), _(!0);
3315
+ } else if (y && qc(e, f, this)) {
3316
+ var b = Ns(t, 0, o, !0);
3295
3317
  if (b === G) return _(!1);
3296
- if (n = b, i = W(n), Vc(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
3318
+ if (n = b, i = W(n), Wc(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
3297
3319
  } else if (n.parentNode === t) {
3298
3320
  i = W(n);
3299
- var x = 0, S, C = G.parentNode !== t, w = !Nc(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = ks(n, "top", "top") || ks(G, "top", "top"), D = E ? E.scrollTop : void 0;
3300
- yc !== n && (S = i[T], xc = !1, Sc = !w && o.invertSwap || C), x = Kc(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Sc, yc === n);
3321
+ var x = 0, S, C = G.parentNode !== t, w = !Ic(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Ms(n, "top", "top") || Ms(G, "top", "top"), D = E ? E.scrollTop : void 0;
3322
+ Sc !== n && (S = i[T], wc = !1, Tc = !w && o.invertSwap || C), x = Yc(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Tc, Sc === n);
3301
3323
  var O;
3302
3324
  if (x !== 0) {
3303
- var k = Ms(G);
3325
+ var k = Fs(G);
3304
3326
  do
3305
3327
  k -= x, O = K.children[k];
3306
3328
  while (O && (U(O, "display") === "none" || O === q));
3307
3329
  }
3308
3330
  if (x === 0 || O === n) return _(!1);
3309
- yc = n, bc = x;
3331
+ Sc = n, Cc = x;
3310
3332
  var A = n.nextElementSibling, j = !1;
3311
3333
  j = x === 1;
3312
- var M = Vc(J, t, G, r, n, i, e, j);
3313
- if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), Tc = !0, setTimeout(Uc, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && Vs(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !Sc && (Cc = Math.abs(S - W(n)[T])), v(), _(!0);
3334
+ var M = Wc(J, t, G, r, n, i, e, j);
3335
+ if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), Oc = !0, setTimeout(Kc, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && Ws(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !Tc && (Ec = Math.abs(S - W(n)[T])), v(), _(!0);
3314
3336
  }
3315
3337
  if (t.contains(G)) return _(!1);
3316
3338
  }
@@ -3318,7 +3340,7 @@ Q.prototype = {
3318
3340
  },
3319
3341
  _ignoreWhileAnimating: null,
3320
3342
  _offMoveEvents: function() {
3321
- H(document, "mousemove", this._onTouchMove), H(document, "touchmove", this._onTouchMove), H(document, "pointermove", this._onTouchMove), H(document, "dragover", Rc), H(document, "mousemove", Rc), H(document, "touchmove", Rc);
3343
+ H(document, "mousemove", this._onTouchMove), H(document, "touchmove", this._onTouchMove), H(document, "pointermove", this._onTouchMove), H(document, "dragover", Vc), H(document, "mousemove", Vc), H(document, "touchmove", Vc);
3322
3344
  },
3323
3345
  _offUpEvents: function() {
3324
3346
  var e = this.el.ownerDocument;
@@ -3326,46 +3348,46 @@ Q.prototype = {
3326
3348
  },
3327
3349
  _onDrop: function(e) {
3328
3350
  var t = this.el, n = this.options;
3329
- ac = Ms(G), sc = Ms(G, n.draggable), $s("drop", this, { evt: e }), K = G && G.parentNode, ac = Ms(G), sc = Ms(G, n.draggable), Q.eventCanceled || (lc = !1, Sc = !1, xc = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Zc(this.cloneId), Zc(this._dragStartId), this.nativeDraggable && (H(document, "drop", this), H(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), _s && U(document.body, "user-select", ""), U(G, "transform", ""), e && (vc && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && H(G, "dragend", this), Hc(G), G.style["will-change"] = "", vc && !lc && Ts(G, X ? X.options.ghostClass : this.options.ghostClass, !1), Ts(G, this.options.chosenClass, !1), ec({
3351
+ cc = Fs(G), uc = Fs(G, n.draggable), nc("drop", this, { evt: e }), K = G && G.parentNode, cc = Fs(G), uc = Fs(G, n.draggable), Q.eventCanceled || (fc = !1, Tc = !1, wc = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), el(this.cloneId), el(this._dragStartId), this.nativeDraggable && (H(document, "drop", this), H(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), bs && U(document.body, "user-select", ""), U(G, "transform", ""), e && (xc && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && H(G, "dragend", this), Gc(G), G.style["will-change"] = "", xc && !fc && Os(G, X ? X.options.ghostClass : this.options.ghostClass, !1), Os(G, this.options.chosenClass, !1), rc({
3330
3352
  sortable: this,
3331
3353
  name: "unchoose",
3332
3354
  toEl: K,
3333
3355
  newIndex: null,
3334
3356
  newDraggableIndex: null,
3335
3357
  originalEvent: e
3336
- }), J === K ? ac !== ic && ac >= 0 && (ec({
3358
+ }), J === K ? cc !== sc && cc >= 0 && (rc({
3337
3359
  sortable: this,
3338
3360
  name: "update",
3339
3361
  toEl: K,
3340
3362
  originalEvent: e
3341
- }), ec({
3363
+ }), rc({
3342
3364
  sortable: this,
3343
3365
  name: "sort",
3344
3366
  toEl: K,
3345
3367
  originalEvent: e
3346
- })) : (ac >= 0 && (ec({
3368
+ })) : (cc >= 0 && (rc({
3347
3369
  rootEl: K,
3348
3370
  name: "add",
3349
3371
  toEl: K,
3350
3372
  fromEl: J,
3351
3373
  originalEvent: e
3352
- }), ec({
3374
+ }), rc({
3353
3375
  sortable: this,
3354
3376
  name: "remove",
3355
3377
  toEl: K,
3356
3378
  originalEvent: e
3357
- }), ec({
3379
+ }), rc({
3358
3380
  rootEl: K,
3359
3381
  name: "sort",
3360
3382
  toEl: K,
3361
3383
  fromEl: J,
3362
3384
  originalEvent: e
3363
- }), ec({
3385
+ }), rc({
3364
3386
  sortable: this,
3365
3387
  name: "sort",
3366
3388
  toEl: K,
3367
3389
  originalEvent: e
3368
- })), X && X.save()), Q.active && ((ac == null || ac === -1) && (ac = ic, sc = oc), ec({
3390
+ })), X && X.save()), Q.active && ((cc == null || cc === -1) && (cc = sc, uc = lc), rc({
3369
3391
  sortable: this,
3370
3392
  name: "end",
3371
3393
  toEl: K,
@@ -3373,9 +3395,9 @@ Q.prototype = {
3373
3395
  }), this.save())))), this._nulling();
3374
3396
  },
3375
3397
  _nulling: function() {
3376
- $s("nulling", this), J = G = K = q = tc = Y = nc = rc = fc = pc = vc = ac = sc = ic = oc = yc = bc = X = cc = Q.dragged = Q.ghost = Q.clone = Q.active = null, Ec.forEach(function(e) {
3398
+ nc("nulling", this), J = G = K = q = ic = Y = ac = oc = hc = gc = xc = cc = uc = sc = lc = Sc = Cc = X = dc = Q.dragged = Q.ghost = Q.clone = Q.active = null, kc.forEach(function(e) {
3377
3399
  e.checked = !0;
3378
- }), Ec.length = mc = hc = 0;
3400
+ }), kc.length = _c = vc = 0;
3379
3401
  },
3380
3402
  handleEvent: function(e) {
3381
3403
  switch (e.type) {
@@ -3385,20 +3407,20 @@ Q.prototype = {
3385
3407
  break;
3386
3408
  case "dragenter":
3387
3409
  case "dragover":
3388
- G && (this._onDragOver(e), Bc(e));
3410
+ G && (this._onDragOver(e), Uc(e));
3389
3411
  break;
3390
3412
  case "selectstart": e.preventDefault();
3391
3413
  }
3392
3414
  },
3393
3415
  toArray: function() {
3394
- for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Cs(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Jc(t));
3416
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Es(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Zc(t));
3395
3417
  return e;
3396
3418
  },
3397
3419
  sort: function(e, t) {
3398
3420
  var n = {}, r = this.el;
3399
3421
  this.toArray().forEach(function(e, t) {
3400
3422
  var i = r.children[t];
3401
- Cs(i, this.options.draggable, r, !1) && (n[e] = i);
3423
+ Es(i, this.options.draggable, r, !1) && (n[e] = i);
3402
3424
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
3403
3425
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
3404
3426
  }), t && this.animateAll();
@@ -3408,122 +3430,122 @@ Q.prototype = {
3408
3430
  e && e.set && e.set(this);
3409
3431
  },
3410
3432
  closest: function(e, t) {
3411
- return Cs(e, t || this.options.draggable, this.el, !1);
3433
+ return Es(e, t || this.options.draggable, this.el, !1);
3412
3434
  },
3413
3435
  option: function(e, t) {
3414
3436
  var n = this.options;
3415
3437
  if (t === void 0) return n[e];
3416
- var r = Xs.modifyOption(this, e, t);
3417
- n[e] = r === void 0 ? t : r, e === "group" && Fc(n);
3438
+ var r = $s.modifyOption(this, e, t);
3439
+ n[e] = r === void 0 ? t : r, e === "group" && Rc(n);
3418
3440
  },
3419
3441
  destroy: function() {
3420
- $s("destroy", this);
3442
+ nc("destroy", this);
3421
3443
  var e = this.el;
3422
- e[Ws] = null, H(e, "mousedown", this._onTapStart), H(e, "touchstart", this._onTapStart), H(e, "pointerdown", this._onTapStart), this.nativeDraggable && (H(e, "dragover", this), H(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
3444
+ e[qs] = null, H(e, "mousedown", this._onTapStart), H(e, "touchstart", this._onTapStart), H(e, "pointerdown", this._onTapStart), this.nativeDraggable && (H(e, "dragover", this), H(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
3423
3445
  e.removeAttribute("draggable");
3424
- }), this._onDrop(), this._disableDelayedDragEvents(), dc.splice(dc.indexOf(this.el), 1), this.el = e = null;
3446
+ }), this._onDrop(), this._disableDelayedDragEvents(), mc.splice(mc.indexOf(this.el), 1), this.el = e = null;
3425
3447
  },
3426
3448
  _hideClone: function() {
3427
- if (!rc) {
3428
- if ($s("hideClone", this), Q.eventCanceled) return;
3429
- U(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), rc = !0;
3449
+ if (!oc) {
3450
+ if (nc("hideClone", this), Q.eventCanceled) return;
3451
+ U(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), oc = !0;
3430
3452
  }
3431
3453
  },
3432
3454
  _showClone: function(e) {
3433
3455
  if (e.lastPutMode !== "clone") this._hideClone();
3434
- else if (rc) {
3435
- if ($s("showClone", this), Q.eventCanceled) return;
3436
- G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : tc ? J.insertBefore(Y, tc) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), U(Y, "display", ""), rc = !1;
3456
+ else if (oc) {
3457
+ if (nc("showClone", this), Q.eventCanceled) return;
3458
+ G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : ic ? J.insertBefore(Y, ic) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), U(Y, "display", ""), oc = !1;
3437
3459
  }
3438
3460
  }
3439
3461
  };
3440
- function Bc(e) {
3462
+ function Uc(e) {
3441
3463
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
3442
3464
  }
3443
- function Vc(e, t, n, r, i, a, o, s) {
3444
- var c, l = e[Ws], u = l.options.onMove, d;
3445
- return window.CustomEvent && !ms && !hs ? c = new CustomEvent("move", {
3465
+ function Wc(e, t, n, r, i, a, o, s) {
3466
+ var c, l = e[qs], u = l.options.onMove, d;
3467
+ return window.CustomEvent && !_s && !vs ? c = new CustomEvent("move", {
3446
3468
  bubbles: !0,
3447
3469
  cancelable: !0
3448
3470
  }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || W(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
3449
3471
  }
3450
- function Hc(e) {
3472
+ function Gc(e) {
3451
3473
  e.draggable = !1;
3452
3474
  }
3453
- function Uc() {
3454
- Tc = !1;
3475
+ function Kc() {
3476
+ Oc = !1;
3455
3477
  }
3456
- function Wc(e, t, n) {
3457
- var r = W(As(n.el, 0, n.options, !0)), i = Us(n.el, n.options, q), a = 10;
3478
+ function qc(e, t, n) {
3479
+ var r = W(Ns(n.el, 0, n.options, !0)), i = Ks(n.el, n.options, q), a = 10;
3458
3480
  return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
3459
3481
  }
3460
- function Gc(e, t, n) {
3461
- var r = W(js(n.el, n.options.draggable)), i = Us(n.el, n.options, q), a = 10;
3482
+ function Jc(e, t, n) {
3483
+ var r = W(Ps(n.el, n.options.draggable)), i = Ks(n.el, n.options, q), a = 10;
3462
3484
  return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
3463
3485
  }
3464
- function Kc(e, t, n, r, i, a, o, s) {
3486
+ function Yc(e, t, n, r, i, a, o, s) {
3465
3487
  var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
3466
3488
  if (!o) {
3467
- if (s && Cc < l * i) {
3468
- if (!xc && (bc === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (xc = !0), xc) f = !0;
3469
- else if (bc === 1 ? c < u + Cc : c > d - Cc) return -bc;
3470
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return qc(t);
3489
+ if (s && Ec < l * i) {
3490
+ if (!wc && (Cc === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (wc = !0), wc) f = !0;
3491
+ else if (Cc === 1 ? c < u + Ec : c > d - Ec) return -Cc;
3492
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Xc(t);
3471
3493
  }
3472
3494
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
3473
3495
  }
3474
- function qc(e) {
3475
- return Ms(G) < Ms(e) ? 1 : -1;
3496
+ function Xc(e) {
3497
+ return Fs(G) < Fs(e) ? 1 : -1;
3476
3498
  }
3477
- function Jc(e) {
3499
+ function Zc(e) {
3478
3500
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
3479
3501
  return r.toString(36);
3480
3502
  }
3481
- function Yc(e) {
3482
- Ec.length = 0;
3503
+ function Qc(e) {
3504
+ kc.length = 0;
3483
3505
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
3484
3506
  var r = t[n];
3485
- r.checked && Ec.push(r);
3507
+ r.checked && kc.push(r);
3486
3508
  }
3487
3509
  }
3488
- function Xc(e) {
3510
+ function $c(e) {
3489
3511
  return setTimeout(e, 0);
3490
3512
  }
3491
- function Zc(e) {
3513
+ function el(e) {
3492
3514
  return clearTimeout(e);
3493
3515
  }
3494
- Dc && V(document, "touchmove", function(e) {
3495
- (Q.active || lc) && e.cancelable && e.preventDefault();
3516
+ Ac && V(document, "touchmove", function(e) {
3517
+ (Q.active || fc) && e.cancelable && e.preventDefault();
3496
3518
  }), Q.utils = {
3497
3519
  on: V,
3498
3520
  off: H,
3499
3521
  css: U,
3500
- find: Ds,
3522
+ find: As,
3501
3523
  is: function(e, t) {
3502
- return !!Cs(e, t, e, !1);
3524
+ return !!Es(e, t, e, !1);
3503
3525
  },
3504
- extend: Is,
3505
- throttle: zs,
3506
- closest: Cs,
3507
- toggleClass: Ts,
3508
- clone: Hs,
3509
- index: Ms,
3510
- nextTick: Xc,
3511
- cancelNextTick: Zc,
3512
- detectDirection: Mc,
3513
- getChild: As
3526
+ extend: zs,
3527
+ throttle: Hs,
3528
+ closest: Es,
3529
+ toggleClass: Os,
3530
+ clone: Gs,
3531
+ index: Fs,
3532
+ nextTick: $c,
3533
+ cancelNextTick: el,
3534
+ detectDirection: Fc,
3535
+ getChild: Ns
3514
3536
  }, Q.get = function(e) {
3515
- return e[Ws];
3537
+ return e[qs];
3516
3538
  }, Q.mount = function() {
3517
3539
  var e = [...arguments];
3518
3540
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
3519
3541
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
3520
- e.utils && (Q.utils = os(os({}, Q.utils), e.utils)), Xs.mount(e);
3542
+ e.utils && (Q.utils = ls(ls({}, Q.utils), e.utils)), $s.mount(e);
3521
3543
  });
3522
3544
  }, Q.create = function(e, t) {
3523
3545
  return new Q(e, t);
3524
- }, Q.version = fs;
3525
- var $ = [], Qc, $c, el = !1, tl, nl, rl, il;
3526
- function al() {
3546
+ }, Q.version = hs;
3547
+ var $ = [], tl, nl, rl = !1, il, al, ol, sl;
3548
+ function cl() {
3527
3549
  function e() {
3528
3550
  for (var e in this.defaults = {
3529
3551
  scroll: !0,
@@ -3543,63 +3565,63 @@ function al() {
3543
3565
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
3544
3566
  },
3545
3567
  drop: function() {
3546
- this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : (H(document, "pointermove", this._handleFallbackAutoScroll), H(document, "touchmove", this._handleFallbackAutoScroll), H(document, "mousemove", this._handleFallbackAutoScroll)), sl(), ol(), Bs();
3568
+ this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : (H(document, "pointermove", this._handleFallbackAutoScroll), H(document, "touchmove", this._handleFallbackAutoScroll), H(document, "mousemove", this._handleFallbackAutoScroll)), ul(), ll(), Us();
3547
3569
  },
3548
3570
  nulling: function() {
3549
- rl = $c = Qc = el = il = tl = nl = null, $.length = 0;
3571
+ ol = nl = tl = rl = sl = il = al = null, $.length = 0;
3550
3572
  },
3551
3573
  _handleFallbackAutoScroll: function(e) {
3552
3574
  this._handleAutoScroll(e, !0);
3553
3575
  },
3554
3576
  _handleAutoScroll: function(e, t) {
3555
3577
  var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
3556
- if (rl = e, t || this.options.forceAutoScrollFallback || hs || ms || _s) {
3557
- cl(e, this.options, a, t);
3558
- var o = Fs(a, !0);
3559
- el && (!il || r !== tl || i !== nl) && (il && sl(), il = setInterval(function() {
3560
- var a = Fs(document.elementFromPoint(r, i), !0);
3561
- a !== o && (o = a, ol()), cl(e, n.options, a, t);
3562
- }, 10), tl = r, nl = i);
3578
+ if (ol = e, t || this.options.forceAutoScrollFallback || vs || _s || bs) {
3579
+ dl(e, this.options, a, t);
3580
+ var o = Rs(a, !0);
3581
+ rl && (!sl || r !== il || i !== al) && (sl && ul(), sl = setInterval(function() {
3582
+ var a = Rs(document.elementFromPoint(r, i), !0);
3583
+ a !== o && (o = a, ll()), dl(e, n.options, a, t);
3584
+ }, 10), il = r, al = i);
3563
3585
  } else {
3564
- if (!this.options.bubbleScroll || Fs(a, !0) === Os()) {
3565
- ol();
3586
+ if (!this.options.bubbleScroll || Rs(a, !0) === js()) {
3587
+ ll();
3566
3588
  return;
3567
3589
  }
3568
- cl(e, this.options, Fs(a, !1), !1);
3590
+ dl(e, this.options, Rs(a, !1), !1);
3569
3591
  }
3570
3592
  }
3571
- }, ls(e, {
3593
+ }, fs(e, {
3572
3594
  pluginName: "scroll",
3573
3595
  initializeByDefault: !0
3574
3596
  });
3575
3597
  }
3576
- function ol() {
3598
+ function ll() {
3577
3599
  $.forEach(function(e) {
3578
3600
  clearInterval(e.pid);
3579
3601
  }), $ = [];
3580
3602
  }
3581
- function sl() {
3582
- clearInterval(il);
3603
+ function ul() {
3604
+ clearInterval(sl);
3583
3605
  }
3584
- var cl = zs(function(e, t, n, r) {
3606
+ var dl = Hs(function(e, t, n, r) {
3585
3607
  if (t.scroll) {
3586
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Os(), l = !1, u;
3587
- $c !== n && ($c = n, ol(), Qc = t.scroll, u = t.scrollFn, Qc === !0 && (Qc = Fs(n, !0)));
3588
- var d = 0, f = Qc;
3608
+ var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = js(), l = !1, u;
3609
+ nl !== n && (nl = n, ll(), tl = t.scroll, u = t.scrollFn, tl === !0 && (tl = Rs(n, !0)));
3610
+ var d = 0, f = tl;
3589
3611
  do {
3590
3612
  var p = f, m = W(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = U(p), E = p.scrollLeft, D = p.scrollTop;
3591
3613
  p === c ? (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll"));
3592
3614
  var O = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), k = S && (Math.abs(g - a) <= o && D + b < w) - (Math.abs(h - a) <= o && !!D);
3593
3615
  if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
3594
3616
  ($[d].vx != O || $[d].vy != k || $[d].el !== p) && ($[d].el = p, $[d].vx = O, $[d].vy = k, clearInterval($[d].pid), (O != 0 || k != 0) && (l = !0, $[d].pid = setInterval(function() {
3595
- r && this.layer === 0 && Q.active._onTouchMove(rl);
3617
+ r && this.layer === 0 && Q.active._onTouchMove(ol);
3596
3618
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
3597
- typeof u == "function" && u.call(Q.dragged.parentNode[Ws], n, t, e, rl, $[this.layer].el) !== "continue" || Vs($[this.layer].el, n, t);
3619
+ typeof u == "function" && u.call(Q.dragged.parentNode[qs], n, t, e, ol, $[this.layer].el) !== "continue" || Ws($[this.layer].el, n, t);
3598
3620
  }.bind({ layer: d }), 24))), d++;
3599
- } while (t.bubbleScroll && f !== c && (f = Fs(f, !1)));
3600
- el = l;
3621
+ } while (t.bubbleScroll && f !== c && (f = Rs(f, !1)));
3622
+ rl = l;
3601
3623
  }
3602
- }, 30), ll = function(e) {
3624
+ }, 30), fl = function(e) {
3603
3625
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
3604
3626
  if (t) {
3605
3627
  var c = n || i;
@@ -3611,8 +3633,8 @@ var cl = zs(function(e, t, n, r) {
3611
3633
  }));
3612
3634
  }
3613
3635
  };
3614
- function ul() {}
3615
- ul.prototype = {
3636
+ function pl() {}
3637
+ pl.prototype = {
3616
3638
  startIndex: null,
3617
3639
  dragStart: function(e) {
3618
3640
  var t = e.oldDraggableIndex;
@@ -3621,67 +3643,67 @@ ul.prototype = {
3621
3643
  onSpill: function(e) {
3622
3644
  var t = e.dragEl, n = e.putSortable;
3623
3645
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
3624
- var r = As(this.sortable.el, this.startIndex, this.options);
3646
+ var r = Ns(this.sortable.el, this.startIndex, this.options);
3625
3647
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
3626
3648
  },
3627
- drop: ll
3628
- }, ls(ul, { pluginName: "revertOnSpill" });
3629
- function dl() {}
3630
- dl.prototype = {
3649
+ drop: fl
3650
+ }, fs(pl, { pluginName: "revertOnSpill" });
3651
+ function ml() {}
3652
+ ml.prototype = {
3631
3653
  onSpill: function(e) {
3632
3654
  var t = e.dragEl, n = e.putSortable || this.sortable;
3633
3655
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
3634
3656
  },
3635
- drop: ll
3636
- }, ls(dl, { pluginName: "removeOnSpill" }), Q.mount(new al()), Q.mount(dl, ul);
3637
- function fl(e) {
3657
+ drop: fl
3658
+ }, fs(ml, { pluginName: "removeOnSpill" }), Q.mount(new cl()), Q.mount(ml, pl);
3659
+ function hl(e) {
3638
3660
  return e == null ? e : JSON.parse(JSON.stringify(e));
3639
3661
  }
3640
- function pl(e) {
3662
+ function gl(e) {
3641
3663
  S() && k(e);
3642
3664
  }
3643
- function ml(t) {
3665
+ function _l(t) {
3644
3666
  S() ? e(t) : u(t);
3645
3667
  }
3646
- var hl = null, gl = null;
3647
- function _l(e = null, t = null) {
3648
- hl = e, gl = t;
3668
+ var vl = null, yl = null;
3669
+ function bl(e = null, t = null) {
3670
+ vl = e, yl = t;
3649
3671
  }
3650
- function vl() {
3672
+ function xl() {
3651
3673
  return {
3652
- data: hl,
3653
- clonedData: gl
3674
+ data: vl,
3675
+ clonedData: yl
3654
3676
  };
3655
3677
  }
3656
- var yl = Symbol("cloneElement");
3657
- function bl(...e) {
3678
+ var Sl = Symbol("cloneElement");
3679
+ function Cl(...e) {
3658
3680
  let n = S()?.proxy, r = null, i = e[0], [, a, o] = e;
3659
3681
  Array.isArray(w(a)) || (o = a, a = null);
3660
- let s = null, { immediate: c = !0, clone: l = fl, forceFallback: d, fallbackOnBody: f, customUpdate: p } = w(o) ?? {};
3682
+ let s = null, { immediate: c = !0, clone: l = hl, forceFallback: d, fallbackOnBody: f, customUpdate: p } = w(o) ?? {};
3661
3683
  function m(e) {
3662
3684
  let { from: t, oldIndex: n, item: i } = e, o = Array.from(t.childNodes);
3663
3685
  r = d && !f ? o.slice(0, -1) : o;
3664
3686
  let s = w(w(a)?.[n]), c = l(s);
3665
- _l(s, c), i[yl] = c;
3687
+ bl(s, c), i[Sl] = c;
3666
3688
  }
3667
3689
  function h(e) {
3668
- let t = e.item[yl];
3669
- if (!Jo(t)) {
3670
- if (Zo(e.item), _(a)) {
3690
+ let t = e.item[Sl];
3691
+ if (!Zo(t)) {
3692
+ if (es(e.item), _(a)) {
3671
3693
  let n = [...w(a)];
3672
- a.value = qo(n, e.newDraggableIndex, t);
3694
+ a.value = Xo(n, e.newDraggableIndex, t);
3673
3695
  return;
3674
3696
  }
3675
- qo(w(a), e.newDraggableIndex, t);
3697
+ Xo(w(a), e.newDraggableIndex, t);
3676
3698
  }
3677
3699
  }
3678
3700
  function g(e) {
3679
3701
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: i, pullMode: o, clone: s } = e;
3680
- if (Xo(t, n, r), o === "clone") Zo(s);
3702
+ if ($o(t, n, r), o === "clone") es(s);
3681
3703
  else if (_(a)) {
3682
3704
  let e = [...w(a)];
3683
- a.value = Ko(e, i);
3684
- } else Ko(w(a), i);
3705
+ a.value = Yo(e, i);
3706
+ } else Yo(w(a), i);
3685
3707
  }
3686
3708
  function v(e) {
3687
3709
  if (p) {
@@ -3689,10 +3711,10 @@ function bl(...e) {
3689
3711
  return;
3690
3712
  }
3691
3713
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: i, newDraggableIndex: o } = e;
3692
- if (Zo(n), Xo(t, n, r), _(a)) {
3714
+ if (es(n), $o(t, n, r), _(a)) {
3693
3715
  let e = [...w(a)];
3694
- a.value = Uo(e, i, o);
3695
- } else Uo(w(a), i, o);
3716
+ a.value = Ko(e, i, o);
3717
+ } else Ko(w(a), i, o);
3696
3718
  }
3697
3719
  function y(e) {
3698
3720
  let { newIndex: t, oldIndex: n, from: i, to: a } = e, o = null, s = t === n && i === a;
@@ -3711,7 +3733,7 @@ function bl(...e) {
3711
3733
  r = null;
3712
3734
  }
3713
3735
  u(() => {
3714
- if (_l(), o) throw o;
3736
+ if (bl(), o) throw o;
3715
3737
  });
3716
3738
  }
3717
3739
  let b = {
@@ -3723,19 +3745,19 @@ function bl(...e) {
3723
3745
  };
3724
3746
  function x(e) {
3725
3747
  let t = w(i);
3726
- return e ||= Yo(t) ? Qo(t, n?.$el) : t, e && !ts(e) && (e = e.$el), e || Ho("Root element not found"), e;
3748
+ return e ||= Qo(t) ? ts(t, n?.$el) : t, e && !is(e) && (e = e.$el), e || Go("Root element not found"), e;
3727
3749
  }
3728
3750
  function C() {
3729
- let e = w(o) ?? {}, { immediate: t, clone: n } = e, r = zo(e, ["immediate", "clone"]);
3730
- return ns(r, (e, t) => {
3731
- rs(e) && (r[e] = (e, ...n) => (is(e, vl()), t(e, ...n)));
3732
- }), es(a === null ? {} : b, r);
3751
+ let e = w(o) ?? {}, { immediate: t, clone: n } = e, r = Ho(e, ["immediate", "clone"]);
3752
+ return as(r, (e, t) => {
3753
+ os(e) && (r[e] = (e, ...n) => (ss(e, xl()), t(e, ...n)));
3754
+ }), rs(a === null ? {} : b, r);
3733
3755
  }
3734
3756
  let T = (e) => {
3735
3757
  e = x(e), s && E.destroy(), s = new Q(e, C());
3736
3758
  };
3737
3759
  t(() => o, () => {
3738
- s && ns(C(), (e, t) => {
3760
+ s && as(C(), (e, t) => {
3739
3761
  s?.option(e, t);
3740
3762
  });
3741
3763
  }, { deep: !0 });
@@ -3748,15 +3770,15 @@ function bl(...e) {
3748
3770
  toArray: () => s?.toArray(),
3749
3771
  closest: (...e) => s?.closest(...e)
3750
3772
  };
3751
- return ml(() => {
3773
+ return _l(() => {
3752
3774
  c && T();
3753
- }), pl(E.destroy), Ro({
3775
+ }), gl(E.destroy), Vo({
3754
3776
  start: T,
3755
3777
  pause: () => E?.option("disabled", !0),
3756
3778
  resume: () => E?.option("disabled", !1)
3757
3779
  }, E);
3758
3780
  }
3759
- var xl = [
3781
+ var wl = [
3760
3782
  "update",
3761
3783
  "start",
3762
3784
  "add",
@@ -3769,7 +3791,7 @@ var xl = [
3769
3791
  "clone",
3770
3792
  "move",
3771
3793
  "change"
3772
- ], Sl = [
3794
+ ], Tl = [
3773
3795
  "clone",
3774
3796
  "animation",
3775
3797
  "ghostClass",
@@ -3813,46 +3835,46 @@ var xl = [
3813
3835
  "tag",
3814
3836
  "target",
3815
3837
  "customUpdate",
3816
- ...xl.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3817
- ], Cl = R({
3838
+ ...wl.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3839
+ ], El = R({
3818
3840
  name: "VueDraggable",
3819
3841
  model: {
3820
3842
  prop: "modelValue",
3821
3843
  event: "update:modelValue"
3822
3844
  },
3823
- props: Sl,
3824
- emits: ["update:modelValue", ...xl],
3845
+ props: Tl,
3846
+ emits: ["update:modelValue", ...wl],
3825
3847
  setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
3826
- let a = xl.reduce((e, t) => {
3848
+ let a = wl.reduce((e, t) => {
3827
3849
  let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
3828
3850
  return e[r] = (...e) => n(t, ...e), e;
3829
3851
  }, {}), o = C(() => {
3830
- let t = x(e), { modelValue: n } = t, r = zo(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
3852
+ let t = x(e), { modelValue: n } = t, r = Ho(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
3831
3853
  let r = w(n);
3832
3854
  return r !== void 0 && (e[t] = r), e;
3833
3855
  }, {});
3834
- return Ro(Ro({}, a), Go(Ro(Ro({}, i), o)));
3856
+ return Vo(Vo({}, a), Jo(Vo(Vo({}, i), o)));
3835
3857
  }), s = C({
3836
3858
  get: () => e.modelValue,
3837
3859
  set: (e) => n("update:modelValue", e)
3838
- }), c = E(), l = p(bl(e.target || c, s, o));
3860
+ }), c = E(), l = p(Cl(e.target || c, s, o));
3839
3861
  return r(l), () => m(e.tag || "div", { ref: c }, (t?.default)?.call(t, l));
3840
3862
  }
3841
- }), wl = {
3863
+ }), Dl = {
3842
3864
  mounted: "mounted",
3843
3865
  unmounted: "unmounted"
3844
3866
  };
3845
- wl.mounted, wl.unmounted;
3867
+ Dl.mounted, Dl.unmounted;
3846
3868
  // src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
3847
- var Tl = { class: "tpl:relative tpl:w-full" }, El = {
3869
+ var Ol = { class: "tpl:relative tpl:w-full" }, kl = {
3848
3870
  key: 0,
3849
3871
  "data-testid": "hero-image-hint",
3850
3872
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-x-0 tpl:bottom-full tpl:mb-2 tpl:flex tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
3851
- }, Dl = {
3873
+ }, Al = {
3852
3874
  key: 0,
3853
3875
  "data-testid": "section-drop-hint",
3854
3876
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
3855
- }, Ol = /* @__PURE__ */ R({
3877
+ }, jl = /* @__PURE__ */ R({
3856
3878
  __name: "SectionBlock",
3857
3879
  props: {
3858
3880
  block: {},
@@ -3861,15 +3883,15 @@ var Tl = { class: "tpl:relative tpl:w-full" }, El = {
3861
3883
  },
3862
3884
  setup(e) {
3863
3885
  let t = {
3864
- title: To,
3865
- paragraph: Va,
3866
- image: Pa,
3867
- button: na,
3868
- divider: ga,
3869
- custom: ma
3870
- }, r = e, { t: a } = Jn(), u = Fn(Un, "SectionBlock"), { displayBlock: p } = Yn(u), m = C(() => r.sourceBlock ?? r.block), _ = L(On, C(() => /* @__PURE__ */ new Set()));
3871
- l(On, C(() => /* @__PURE__ */ new Set([..._.value, ...Object.entries(m.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
3872
- let v = L(Nn, null), b = L(Mn, null), x = L(wn, {}), S = L(bn, null);
3886
+ title: Oo,
3887
+ paragraph: Wa,
3888
+ image: La,
3889
+ button: aa,
3890
+ divider: ya,
3891
+ custom: _a
3892
+ }, r = e, { t: a } = Zn(), u = Rn(Kn, "SectionBlock"), { displayBlock: p } = Qn(u), m = C(() => r.sourceBlock ?? r.block), _ = L(jn, C(() => /* @__PURE__ */ new Set()));
3893
+ l(jn, C(() => /* @__PURE__ */ new Set([..._.value, ...Object.entries(m.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
3894
+ let v = L(In, null), b = L(Fn, null), x = L(Dn, {}), S = L(Cn, null);
3873
3895
  function O(e) {
3874
3896
  let t = x.savedBlocks;
3875
3897
  t?.isPicking.value ? t.togglePick(r.block.id) : u.selectBlock(e);
@@ -3906,7 +3928,7 @@ var Tl = { class: "tpl:relative tpl:w-full" }, El = {
3906
3928
  }
3907
3929
  let z = C(() => {
3908
3930
  if (u.state.previewMode) return !1;
3909
- let e = B(r.block);
3931
+ let e = Oe(r.block);
3910
3932
  return e !== null && !e.applied && e.reason === "image";
3911
3933
  });
3912
3934
  function re(e) {
@@ -3916,10 +3938,10 @@ var Tl = { class: "tpl:relative tpl:w-full" }, El = {
3916
3938
  return N(e).length === 0 && u.state.previewMode;
3917
3939
  }
3918
3940
  function ae(e, t) {
3919
- Ha(u, t, r.block.id, e);
3941
+ Ga(u, t, r.block.id, e);
3920
3942
  }
3921
3943
  function oe(e) {
3922
- return Bi(e, b, t);
3944
+ return Ui(e, b, t);
3923
3945
  }
3924
3946
  function se(e, t) {
3925
3947
  e.type === "custom" && u.updateBlock(e.id, {
@@ -3927,16 +3949,16 @@ var Tl = { class: "tpl:relative tpl:w-full" }, El = {
3927
3949
  dataSourceFetched: t.dataSourceFetched
3928
3950
  });
3929
3951
  }
3930
- return (t, l) => (s(), D("div", Tl, [z.value ? (s(), D("div", El, [j("span", null, i(w(a).section.heroAddImage), 1)])) : T("", !0), j("div", { class: c(["tpl:flex tpl:gap-0", { "tpl:flex-col": M.value }]) }, [(s(!0), D(P, null, d(A.value, (t, m) => (s(), D("div", {
3952
+ return (t, l) => (s(), D("div", Ol, [z.value ? (s(), D("div", kl, [j("span", null, i(w(a).section.heroAddImage), 1)])) : T("", !0), j("div", { class: c(["tpl:flex tpl:gap-0", { "tpl:flex-col": M.value }]) }, [(s(!0), D(P, null, d(A.value, (t, m) => (s(), D("div", {
3931
3953
  key: m,
3932
3954
  class: c(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", re(m) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
3933
3955
  style: f({ width: M.value ? "100%" : k.value[m] })
3934
- }, [y(w(Cl), {
3956
+ }, [y(w(El), {
3935
3957
  "model-value": N(m),
3936
3958
  group: {
3937
3959
  name: "blocks",
3938
3960
  pull: !0,
3939
- put: (e, t, n) => w(Mo)(n)
3961
+ put: (e, t, n) => w(Fo)(n)
3940
3962
  },
3941
3963
  animation: 150,
3942
3964
  "ghost-class": "tpl-ghost",
@@ -3950,12 +3972,12 @@ var Tl = { class: "tpl:relative tpl:w-full" }, El = {
3950
3972
  "tpl:min-h-[60px]": R(m),
3951
3973
  "tpl:min-h-[34px]": ie(m)
3952
3974
  }]),
3953
- onUpdate: (e) => w(Ha)(w(u), N(m), r.block.id, m, e),
3975
+ onUpdate: (e) => w(Ga)(w(u), N(m), r.block.id, m, e),
3954
3976
  onStart: (e) => I.value = m,
3955
3977
  onEnd: l[0] ||= (e) => I.value = null,
3956
3978
  "onUpdate:modelValue": (e) => ae(m, e)
3957
3979
  }, {
3958
- default: h(() => [(s(!0), D(P, null, d(N(m), (t) => g((s(), D("div", { key: t.id }, [y(Co, {
3980
+ default: h(() => [(s(!0), D(P, null, d(N(m), (t) => g((s(), D("div", { key: t.id }, [y(Eo, {
3959
3981
  block: t,
3960
3982
  "display-block": w(p)(t),
3961
3983
  "is-selected": w(u).state.selectedBlockId === t.id,
@@ -3991,14 +4013,14 @@ var Tl = { class: "tpl:relative tpl:w-full" }, El = {
3991
4013
  "onUpdate",
3992
4014
  "onStart",
3993
4015
  "onUpdate:modelValue"
3994
- ]), re(m) ? (s(), D("div", Dl, [j("span", null, i(w(a).section.dropHere), 1)])) : T("", !0)], 6))), 128))], 2)]));
4016
+ ]), re(m) ? (s(), D("div", Al, [j("span", null, i(w(a).section.dropHere), 1)])) : T("", !0)], 6))), 128))], 2)]));
3995
4017
  }
3996
- }), kl = ["width", "height"], Al = [
4018
+ }), Ml = ["width", "height"], Nl = [
3997
4019
  "d",
3998
4020
  "stroke",
3999
4021
  "stroke-opacity",
4000
4022
  "stroke-width"
4001
- ], jl = ["d", "fill"], Ml = /* @__PURE__ */ R({
4023
+ ], Pl = ["d", "fill"], Fl = /* @__PURE__ */ R({
4002
4024
  __name: "SocialIconSvg",
4003
4025
  props: {
4004
4026
  platform: {},
@@ -4007,7 +4029,7 @@ var Tl = { class: "tpl:relative tpl:w-full" }, El = {
4007
4029
  iconSize: {}
4008
4030
  },
4009
4031
  setup(e) {
4010
- let t = e, n = C(() => Dt[t.platform]), r = C(() => kt[t.iconSize]), i = C(() => ve(t.platform, t.iconTone)), a = C(() => ge(t.iconStyle, t.iconTone)), o = C(() => {
4032
+ let t = e, n = C(() => At[t.platform]), r = C(() => Mt[t.iconSize]), i = C(() => Ne(t.platform, t.iconTone)), a = C(() => Pe(t.iconStyle, t.iconTone)), o = C(() => {
4011
4033
  let e = {
4012
4034
  display: "inline-flex",
4013
4035
  alignItems: "center",
@@ -4045,7 +4067,7 @@ var Tl = { class: "tpl:relative tpl:w-full" }, El = {
4045
4067
  };
4046
4068
  default: return e;
4047
4069
  }
4048
- }), c = C(() => et(t.iconStyle)), l = C(() => Math.floor(r.value * c.value));
4070
+ }), c = C(() => Me(t.iconStyle)), l = C(() => Math.floor(r.value * c.value));
4049
4071
  function u(e) {
4050
4072
  let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
4051
4073
  return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
@@ -4066,28 +4088,28 @@ var Tl = { class: "tpl:relative tpl:w-full" }, El = {
4066
4088
  "stroke-opacity": a.value.opacity,
4067
4089
  "stroke-width": a.value.width / c.value,
4068
4090
  "stroke-linejoin": "round"
4069
- }, null, 8, Al)) : T("", !0), j("path", {
4091
+ }, null, 8, Nl)) : T("", !0), j("path", {
4070
4092
  d: n.value.path,
4071
4093
  fill: d.value
4072
- }, null, 8, jl)], 8, kl))], 4));
4094
+ }, null, 8, Pl)], 8, Ml))], 4));
4073
4095
  }
4074
- }), Nl = { class: "tpl:w-full" }, Pl = ["href"], Fl = {
4096
+ }), Il = { class: "tpl:w-full" }, Ll = ["href"], Rl = {
4075
4097
  key: 1,
4076
4098
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
4077
- }, Il = /* @__PURE__ */ R({
4099
+ }, zl = /* @__PURE__ */ R({
4078
4100
  __name: "SocialIconsBlock",
4079
4101
  props: {
4080
4102
  block: {},
4081
4103
  viewport: {}
4082
4104
  },
4083
4105
  setup(e) {
4084
- let t = e, { t: n } = Jn(), r = C(() => ({
4106
+ let t = e, { t: n } = Zn(), r = C(() => ({
4085
4107
  display: "flex",
4086
4108
  flexWrap: "wrap",
4087
4109
  gap: `${t.block.spacing}px`,
4088
4110
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
4089
4111
  })), a = C(() => t.block.icons.length > 0);
4090
- return (t, o) => (s(), D("div", Nl, [a.value ? (s(), D("div", {
4112
+ return (t, o) => (s(), D("div", Il, [a.value ? (s(), D("div", {
4091
4113
  key: 0,
4092
4114
  style: f(r.value)
4093
4115
  }, [(s(!0), D(P, null, d(e.block.icons, (t) => (s(), D("a", {
@@ -4095,7 +4117,7 @@ var Tl = { class: "tpl:relative tpl:w-full" }, El = {
4095
4117
  href: t.url || "#",
4096
4118
  class: "tpl:cursor-default",
4097
4119
  onClick: o[0] ||= z(() => {}, ["prevent"])
4098
- }, [y(Ml, {
4120
+ }, [y(Fl, {
4099
4121
  platform: t.platform,
4100
4122
  "icon-style": e.block.iconStyle,
4101
4123
  "icon-tone": e.block.iconTone,
@@ -4105,44 +4127,44 @@ var Tl = { class: "tpl:relative tpl:w-full" }, El = {
4105
4127
  "icon-style",
4106
4128
  "icon-tone",
4107
4129
  "icon-size"
4108
- ])], 8, Pl))), 128))], 4)) : (s(), D("div", Fl, [y(w(mt), { size: 16 }), j("span", null, i(w(n).social.addIcons), 1)]))]));
4130
+ ])], 8, Ll))), 128))], 4)) : (s(), D("div", Rl, [y(w(_t), { size: 16 }), j("span", null, i(w(n).social.addIcons), 1)]))]));
4109
4131
  }
4110
- }), Ll = { class: "tpl:w-full" }, Rl = {
4132
+ }), Bl = { class: "tpl:w-full" }, Vl = {
4111
4133
  key: 0,
4112
4134
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
4113
4135
  style: {
4114
4136
  "background-color": "var(--tpl-bg-hover)",
4115
4137
  color: "var(--tpl-text-dim)"
4116
4138
  }
4117
- }, zl = /* @__PURE__ */ R({
4139
+ }, Hl = /* @__PURE__ */ R({
4118
4140
  __name: "SpacerBlock",
4119
4141
  props: {
4120
4142
  block: {},
4121
4143
  viewport: {}
4122
4144
  },
4123
4145
  setup(e) {
4124
- let t = e, n = Fn(Un, "SpacerBlock"), r = C(() => ({
4146
+ let t = e, n = Rn(Kn, "SpacerBlock"), r = C(() => ({
4125
4147
  height: `${t.block.height}px`,
4126
4148
  minHeight: `${t.block.height}px`,
4127
4149
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
4128
4150
  }));
4129
- return (t, a) => (s(), D("div", Ll, [j("div", {
4151
+ return (t, a) => (s(), D("div", Bl, [j("div", {
4130
4152
  style: f(r.value),
4131
4153
  class: c(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !w(n).state.previewMode }])
4132
- }, [w(n).state.previewMode ? T("", !0) : (s(), D("span", Rl, i(e.block.height) + "px ", 1))], 6)]));
4154
+ }, [w(n).state.previewMode ? T("", !0) : (s(), D("span", Vl, i(e.block.height) + "px ", 1))], 6)]));
4133
4155
  }
4134
- }), Bl = { class: "tpl:w-full" }, Vl = { key: 0 }, Hl = [
4156
+ }), Ul = { class: "tpl:w-full" }, Wl = { key: 0 }, Gl = [
4135
4157
  "aria-label",
4136
4158
  "data-placeholder",
4137
4159
  "onBlur"
4138
- ], Ul = [
4160
+ ], Kl = [
4139
4161
  "aria-label",
4140
4162
  "data-placeholder",
4141
4163
  "onBlur"
4142
- ], Wl = {
4164
+ ], ql = {
4143
4165
  key: 1,
4144
4166
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
4145
- }, Gl = /*#__PURE__*/ It(/* @__PURE__ */ R({
4167
+ }, Jl = /*#__PURE__*/ zt(/* @__PURE__ */ R({
4146
4168
  __name: "TableBlock",
4147
4169
  props: {
4148
4170
  block: {},
@@ -4156,7 +4178,7 @@ var Tl = { class: "tpl:relative tpl:w-full" }, El = {
4156
4178
  updated(e, t) {
4157
4179
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
4158
4180
  }
4159
- }, n = e, { t: r } = Jn(), a = Fn(Un, "TableBlock"), o = Fn(Sn, "TableBlock"), c = C(() => n.block.rows.length > 0), l = C(() => {
4181
+ }, n = e, { t: r } = Zn(), a = Rn(Kn, "TableBlock"), o = Rn(Tn, "TableBlock"), c = C(() => n.block.rows.length > 0), l = C(() => {
4160
4182
  let e = {
4161
4183
  width: "100%",
4162
4184
  borderCollapse: "collapse",
@@ -4187,11 +4209,11 @@ var Tl = { class: "tpl:relative tpl:w-full" }, El = {
4187
4209
  } : n);
4188
4210
  a.updateBlock(n.block.id, { rows: o });
4189
4211
  }
4190
- return (e, n) => (s(), D("div", Bl, [c.value ? (s(), D("table", {
4212
+ return (e, n) => (s(), D("div", Ul, [c.value ? (s(), D("table", {
4191
4213
  key: 0,
4192
4214
  style: f(l.value),
4193
4215
  class: "tpl-table-editable"
4194
- }, [m.value ? (s(), D("thead", Vl, [j("tr", null, [(s(!0), D(P, null, d(m.value.cells, (e) => g((s(), D("th", {
4216
+ }, [m.value ? (s(), D("thead", Wl, [j("tr", null, [(s(!0), D(P, null, d(m.value.cells, (e) => g((s(), D("th", {
4195
4217
  key: e.id,
4196
4218
  style: f(p.value),
4197
4219
  "aria-label": w(r).table.cellPlaceholder,
@@ -4200,7 +4222,7 @@ var Tl = { class: "tpl:relative tpl:w-full" }, El = {
4200
4222
  onBlur: (t) => v(m.value.id, e.id, t),
4201
4223
  onKeydown: n[0] ||= re(z((e) => e.target.blur(), ["prevent"]), ["enter"]),
4202
4224
  onClick: z(_, ["stop"])
4203
- }, null, 44, Hl)), [[t, e.content]])), 128))])])) : T("", !0), j("tbody", null, [(s(!0), D(P, null, d(h.value, (e) => (s(), D("tr", { key: e.id }, [(s(!0), D(P, null, d(e.cells, (i) => g((s(), D("td", {
4225
+ }, null, 44, Gl)), [[t, e.content]])), 128))])])) : T("", !0), j("tbody", null, [(s(!0), D(P, null, d(h.value, (e) => (s(), D("tr", { key: e.id }, [(s(!0), D(P, null, d(e.cells, (i) => g((s(), D("td", {
4204
4226
  key: i.id,
4205
4227
  style: f(u.value),
4206
4228
  "aria-label": w(r).table.cellPlaceholder,
@@ -4209,9 +4231,9 @@ var Tl = { class: "tpl:relative tpl:w-full" }, El = {
4209
4231
  onBlur: (t) => v(e.id, i.id, t),
4210
4232
  onKeydown: n[1] ||= re(z((e) => e.target.blur(), ["prevent"]), ["enter"]),
4211
4233
  onClick: z(_, ["stop"])
4212
- }, null, 44, Ul)), [[t, i.content]])), 128))]))), 128))])], 4)) : (s(), D("div", Wl, [y(w(ht), { size: 16 }), j("span", null, i(w(r).table.empty), 1)]))]));
4234
+ }, null, 44, Kl)), [[t, i.content]])), 128))]))), 128))])], 4)) : (s(), D("div", ql, [y(w(vt), { size: 16 }), j("span", null, i(w(r).table.empty), 1)]))]));
4213
4235
  }
4214
- }), [["__scopeId", "data-v-6751d456"]]), Kl = /* @__PURE__ */ R({
4236
+ }), [["__scopeId", "data-v-6751d456"]]), Yl = /* @__PURE__ */ R({
4215
4237
  __name: "VideoPlayButton",
4216
4238
  props: { hoverEffect: {
4217
4239
  type: Boolean,
@@ -4228,7 +4250,7 @@ var Tl = { class: "tpl:relative tpl:w-full" }, El = {
4228
4250
  }
4229
4251
  });
4230
4252
  // src/utils/videoThumbnail.ts
4231
- function ql(e) {
4253
+ function Xl(e) {
4232
4254
  if (!e) return {
4233
4255
  platform: "unknown",
4234
4256
  videoId: null,
@@ -4260,24 +4282,24 @@ function ql(e) {
4260
4282
  thumbnailUrl: null
4261
4283
  };
4262
4284
  }
4263
- function Jl(e, t) {
4264
- return t || ql(e).thumbnailUrl;
4285
+ function Zl(e, t) {
4286
+ return t || Xl(e).thumbnailUrl;
4265
4287
  }
4266
4288
  // src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
4267
- var Yl = ["src", "alt"], Xl = {
4289
+ var Ql = ["src", "alt"], $l = {
4268
4290
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
4269
4291
  style: { opacity: "0.7" }
4270
- }, Zl = ["href"], Ql = ["src", "alt"], $l = ["src", "alt"], eu = {
4292
+ }, eu = ["href"], tu = ["src", "alt"], nu = ["src", "alt"], ru = {
4271
4293
  key: 3,
4272
4294
  class: "tpl:flex tpl:box-border tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
4273
- }, tu = /* @__PURE__ */ R({
4295
+ }, iu = /* @__PURE__ */ R({
4274
4296
  __name: "VideoBlock",
4275
4297
  props: {
4276
4298
  block: {},
4277
4299
  viewport: {}
4278
4300
  },
4279
4301
  setup(e) {
4280
- let t = e, { t: n } = Jn(), { syntax: r } = ur(), a = C(() => Ce(t.block.url, r) || Ce(t.block.thumbnailUrl, r)), o = bt(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), c = bt(() => a.value ? t.block.placeholderUrl : void 0), l = C(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : Jl(t.block.url)), u = C(() => ({ textAlign: t.block.align })), d = C(() => {
4302
+ let t = e, { t: n } = Zn(), { syntax: r } = pr(), a = C(() => xe(t.block.url, r) || xe(t.block.thumbnailUrl, r)), o = Ct(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), c = Ct(() => a.value ? t.block.placeholderUrl : void 0), l = C(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : Zl(t.block.url)), u = C(() => ({ textAlign: t.block.align })), d = C(() => {
4281
4303
  let e = t.block.align;
4282
4304
  return {
4283
4305
  maxWidth: "100%",
@@ -4287,7 +4309,7 @@ var Yl = ["src", "alt"], Xl = {
4287
4309
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
4288
4310
  marginRight: e === "center" ? "auto" : void 0
4289
4311
  };
4290
- }), p = C(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), m = C(() => Ce(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
4312
+ }), p = C(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), m = C(() => xe(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
4291
4313
  return (t, r) => (s(), D("div", {
4292
4314
  class: "tpl:w-full",
4293
4315
  style: f(u.value)
@@ -4300,16 +4322,16 @@ var Yl = ["src", "alt"], Xl = {
4300
4322
  src: w(c),
4301
4323
  alt: e.block.alt,
4302
4324
  style: f(p.value)
4303
- }, null, 12, Yl), y(Kl)], 4)) : a.value ? (s(), D("div", {
4325
+ }, null, 12, Ql), y(Yl)], 4)) : a.value ? (s(), D("div", {
4304
4326
  key: 1,
4305
4327
  class: "tpl:relative tpl:!flex tpl:box-border tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
4306
4328
  style: f([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, d.value])
4307
- }, [y(w(kr), {
4329
+ }, [y(w(Mr), {
4308
4330
  size: 36,
4309
4331
  "stroke-width": 1.5,
4310
4332
  class: "tpl:text-[var(--tpl-primary)]",
4311
4333
  style: { opacity: "0.5" }
4312
- }), j("span", Xl, [y(ea, { text: m.value }, null, 8, ["text"])])], 4)) : l.value ? (s(), D(P, { key: 2 }, [e.block.url ? (s(), D("a", {
4334
+ }), j("span", $l, [y(ra, { text: m.value }, null, 8, ["text"])])], 4)) : l.value ? (s(), D(P, { key: 2 }, [e.block.url ? (s(), D("a", {
4313
4335
  key: 0,
4314
4336
  href: e.block.url,
4315
4337
  target: "_blank",
@@ -4322,7 +4344,7 @@ var Yl = ["src", "alt"], Xl = {
4322
4344
  src: l.value,
4323
4345
  alt: e.block.alt,
4324
4346
  style: f(p.value)
4325
- }, null, 12, Ql), y(Kl, { "hover-effect": "" })], 12, Zl)) : (s(), D("div", {
4347
+ }, null, 12, tu), y(Yl, { "hover-effect": "" })], 12, eu)) : (s(), D("div", {
4326
4348
  key: 1,
4327
4349
  class: "tpl:relative tpl:inline-block",
4328
4350
  style: f(d.value)
@@ -4331,53 +4353,53 @@ var Yl = ["src", "alt"], Xl = {
4331
4353
  src: l.value,
4332
4354
  alt: e.block.alt,
4333
4355
  style: f(p.value)
4334
- }, null, 12, $l), y(Kl)], 4))], 64)) : (s(), D("div", eu, [y(w(kr), {
4356
+ }, null, 12, nu), y(Yl)], 4))], 64)) : (s(), D("div", ru, [y(w(Mr), {
4335
4357
  size: 40,
4336
4358
  "stroke-width": 1.5,
4337
4359
  class: "tpl:text-[var(--tpl-border-light)]"
4338
4360
  }), j("span", null, i(w(n).video.addVideo), 1)]))], 4));
4339
4361
  }
4340
- }), nu = {
4341
- section: Ol,
4342
- title: To,
4343
- paragraph: Va,
4344
- image: Pa,
4345
- button: na,
4346
- divider: ga,
4347
- video: tu,
4348
- social: Il,
4349
- menu: Ra,
4350
- table: Gl,
4351
- spacer: zl,
4352
- html: Sa,
4362
+ }), au = {
4363
+ section: jl,
4364
+ title: Oo,
4365
+ paragraph: Wa,
4366
+ image: La,
4367
+ button: aa,
4368
+ divider: ya,
4369
+ video: iu,
4370
+ social: zl,
4371
+ menu: Va,
4372
+ table: Jl,
4373
+ spacer: Hl,
4374
+ html: Ta,
4353
4375
  countdown: I(() => import("./CountdownBlock-BMezkFbJ.js"))
4354
4376
  };
4355
- function ru(e) {
4356
- let { editor: n, config: r, translations: i, fontsManager: a } = e, { t: o, format: s } = Jn(i), c = C(() => Ee(Ee(Ee(hi(i), Fi(n.content.value.settings?.locale)), ke(n.content.value.settings) === "rtl" ? {
4377
+ function ou(e) {
4378
+ let { editor: n, config: r, translations: i, fontsManager: a } = e, { t: o, format: s } = Zn(i), c = C(() => Ce(Ce(Ce(vi(i), Ri(n.content.value.settings?.locale)), mt(n.content.value.settings) === "rtl" ? {
4357
4379
  title: { textAlign: "right" },
4358
4380
  table: { textAlign: "right" }
4359
4381
  } : {}), r.blockDefaults ?? {}));
4360
4382
  n.setUiTheme(r.uiTheme ?? "auto");
4361
- let { resolvedTheme: u } = oi(C(() => n.state.uiTheme)), d = E(r.theme ?? {}), { themeStyles: f } = zr({
4383
+ let { resolvedTheme: u } = li(C(() => n.state.uiTheme)), d = E(r.theme ?? {}), { themeStyles: f } = Hr({
4362
4384
  themeOverrides: d,
4363
4385
  resolvedTheme: u,
4364
4386
  extraStyles: () => ({
4365
4387
  "--tpl-drop-text": `"${i.canvas.dropHere}"`,
4366
4388
  ...e.themeExtraStyles?.()
4367
4389
  })
4368
- }), p = e.history ?? _t({
4390
+ }), p = e.history ?? bt({
4369
4391
  content: n.content,
4370
4392
  setContent: (e, t) => n.setContent(e, t)
4371
4393
  });
4372
- e.history || xt(n, p);
4373
- let m = gt({
4394
+ e.history || wt(n, p);
4395
+ let m = yt({
4374
4396
  addBlock: n.addBlock,
4375
4397
  removeBlock: n.removeBlock,
4376
4398
  updateBlock: n.updateBlock,
4377
4399
  selectBlock: n.selectBlock,
4378
4400
  findBlockLocation: n.findBlockLocation,
4379
4401
  blockDefaults: () => c.value
4380
- }), h = Ft(n), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? yt({
4402
+ }), h = Rt(n), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? St({
4381
4403
  content: n.content,
4382
4404
  isDirty: () => n.state.isDirty,
4383
4405
  ...e.autoSaveOptions
@@ -4385,30 +4407,30 @@ function ru(e) {
4385
4407
  g && (_ = t(p.isNavigating, (e) => {
4386
4408
  e ? g.pause() : g.resume();
4387
4409
  }));
4388
- let y = ai(n, {
4410
+ let y = ci(n, {
4389
4411
  t: o,
4390
4412
  format: s
4391
- }, r.customBlocks ?? []), b = mr(r.colors);
4392
- if (b.allowCustomIgnored && dr.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), b.invalidPresets.length > 0 && dr.warn(`config.colors.presets skipped invalid entries: ${b.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), b.allowCustom === !1) {
4393
- let e = mi(b.presets, r.blockDefaults, r.templateDefaults);
4394
- e.length > 0 && dr.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
4395
- }
4396
- let x = yr(r.templateSettings);
4397
- for (let e of x.unknown) dr.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${br.join(", ")}) — skipping it.`);
4398
- let S = Nr();
4399
- di(S, nu);
4413
+ }, r.customBlocks ?? []), b = _r(r.colors);
4414
+ if (b.allowCustomIgnored && mr.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), b.invalidPresets.length > 0 && mr.warn(`config.colors.presets skipped invalid entries: ${b.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), b.allowCustom === !1) {
4415
+ let e = _i(b.presets, r.blockDefaults, r.templateDefaults);
4416
+ e.length > 0 && mr.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
4417
+ }
4418
+ let x = Sr(r.templateSettings);
4419
+ for (let e of x.unknown) mr.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${Cr.join(", ")}) — skipping it.`);
4420
+ let S = Ir();
4421
+ mi(S, au);
4400
4422
  let w = /* @__PURE__ */ new Set();
4401
4423
  function T(e) {
4402
4424
  for (let t of e) {
4403
- S.registerCustom(t, ma);
4404
- for (let e of Ii(t, b)) w.has(e.id) || (w.add(e.id), dr.warn(e.message));
4425
+ S.registerCustom(t, _a);
4426
+ for (let e of zi(t, b)) w.has(e.id) || (w.add(e.id), mr.warn(e.message));
4405
4427
  }
4406
4428
  }
4407
4429
  r.customBlocks?.length && T(r.customBlocks);
4408
- let D = Xr();
4430
+ let D = $r();
4409
4431
  if (ee() && v(D.dispose), e.containerEl) {
4410
4432
  let t = e.containerEl;
4411
- ar(document, "pointerdown", (e) => {
4433
+ cr(document, "pointerdown", (e) => {
4412
4434
  let n = t.value;
4413
4435
  n && (e.composedPath?.() ?? []).includes(n) && D.claim();
4414
4436
  }, { capture: !0 });
@@ -4418,7 +4440,7 @@ function ru(e) {
4418
4440
  t ? t.save() : g?.flush();
4419
4441
  }
4420
4442
  function k(t) {
4421
- D.isActive() && Ri(t, {
4443
+ D.isActive() && Vi(t, {
4422
4444
  history: p,
4423
4445
  selectBlock: (e) => n.selectBlock(e),
4424
4446
  getSelectedBlockId: () => n.state.selectedBlockId,
@@ -4429,42 +4451,42 @@ function ru(e) {
4429
4451
  onCancelPick: () => e.capabilities?.savedBlocks?.cancelPicking()
4430
4452
  });
4431
4453
  }
4432
- ar(document, "keydown", k);
4454
+ cr(document, "keydown", k);
4433
4455
  let A = E(null), j = e.editorRoot ?? document;
4434
- l(Kn, j), l(an, A), l(Qt, /* @__PURE__ */ new Map()), l(Vn, i), l(Un, n), l(Gn, p), l(Bn, m), l(Nn, h), l(Sn, a), l(Tn, f), l(kn, u), l(Cn, c), l(zn, r.locale), l(Mn, S), l(Dn, r.customBlocks ?? []), l(en, r.paletteBlocks), l(pn, fi(r.htmlBlockPreview)), l(mn, r.layout), l(vn, r.sectionWrapper), l(In, b), l(Jt, x.fields), l(En, si(n.content, S));
4435
- let N = Pe(r.mergeTags?.syntax);
4456
+ l(Yn, j), l(cn, A), l(tn, /* @__PURE__ */ new Map()), l(Wn, i), l(Kn, n), l(Jn, p), l(Un, m), l(In, h), l(Tn, a), l(On, f), l(Mn, u), l(En, c), l(Hn, r.locale), l(Fn, S), l(An, r.customBlocks ?? []), l(rn, r.paletteBlocks), l(gn, hi(r.htmlBlockPreview)), l(_n, r.layout), l(xn, r.sectionWrapper), l(zn, b), l(Zt, x.fields), l(kn, ui(n.content, S));
4457
+ let N = le(r.mergeTags?.syntax);
4436
4458
  for (let e of ["opener", "closer"]) {
4437
4459
  let t = N[e];
4438
- typeof t == "string" && t.trim() === "" && dr.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
4460
+ typeof t == "string" && t.trim() === "" && mr.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
4439
4461
  }
4440
- typeof N.opener != "string" && typeof N.closer == "string" && N.closer.trim() !== "" && He(N) === null && dr.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
4462
+ typeof N.opener != "string" && typeof N.closer == "string" && N.closer.trim() !== "" && Be(N) === null && mr.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
4441
4463
  let P = M(r.mergeTags?.tags ?? []);
4442
4464
  function te(e) {
4443
- Array.isArray(e) ? P.value = e : dr.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
4465
+ Array.isArray(e) ? P.value = e : mr.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
4444
4466
  }
4445
- l(un, P), l(Xt, N), l(_n, r.mergeTags?.onRequest ?? null), l($t, r.mergeTags?.autocomplete !== !1), l(qn, r.mergeTags?.showRawValue !== !1);
4446
- let F = E(Ge(r.mergeTags?.tags ?? []));
4447
- l(fn, F);
4448
- let I = $r({
4467
+ l(pn, P), l($t, N), l(bn, r.mergeTags?.onRequest ?? null), l(nn, r.mergeTags?.autocomplete !== !1), l(Xn, r.mergeTags?.showRawValue !== !1);
4468
+ let F = E($e(r.mergeTags?.tags ?? []));
4469
+ l(hn, F);
4470
+ let I = ni({
4449
4471
  resolvePreview: r.resolvePreview,
4450
4472
  getContent: () => {
4451
4473
  let e = n.content.value;
4452
4474
  if (!n.state.previewMode) return e;
4453
4475
  let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i = Ae(e, t);
4454
- return r.layout ? st(Ae(r.layout, t, { missing: "default" }), i) : i;
4476
+ return r.layout ? ut(Ae(r.layout, t, { missing: "default" }), i) : i;
4455
4477
  },
4456
4478
  isActive: () => n.state.previewMode,
4457
4479
  getLocale: () => n.activeLocale?.value ?? n.content.value.settings.locale
4458
4480
  });
4459
- l(Ln, I), l(rn, r.resolvePreview);
4481
+ l(Bn, I), l(sn, r.resolvePreview);
4460
4482
  let L = C(() => !(n.state.previewMode && I.isConfigured));
4461
- l(bn, L);
4462
- let R = ei();
4463
- l(nn, R), l(on, E(!1)), l(cn, E(!1)), l(An, r.logicTags?.tags ?? []), l(Yt, r.logicTags?.pairs ?? []), l(tn, r.logicTags?.onRequest ?? null), l(sn, ti()), l(hn, r.onRequestMedia ?? null), l(Hn, r.canDropMedia ?? null), l(Zt, r.resolveImageUrl ? Nt(r.resolveImageUrl) : null), l(yn, r.displayConditions?.conditions ?? []), l(Rn, r.displayConditions?.allowCustom ?? !1), l(wn, e.capabilities ?? {}), l(Wn, y);
4464
- let z = ni(r.lint) ? null : ii({
4483
+ l(Cn, L);
4484
+ let R = ri();
4485
+ l(on, R), l(ln, E(!1)), l(dn, E(!1)), l(Nn, r.logicTags?.tags ?? []), l(Qt, r.logicTags?.pairs ?? []), l(an, r.logicTags?.onRequest ?? null), l(un, ii()), l(vn, r.onRequestMedia ?? null), l(Gn, r.canDropMedia ?? null), l(en, r.resolveImageUrl ? It(r.resolveImageUrl) : null), l(Sn, r.displayConditions?.conditions ?? []), l(Vn, r.displayConditions?.allowCustom ?? !1), l(Dn, e.capabilities ?? {}), l(qn, y);
4486
+ let z = ai(r.lint) ? null : si({
4465
4487
  content: n.content,
4466
4488
  get options() {
4467
- return Zr({
4489
+ return ei({
4468
4490
  ...r,
4469
4491
  content: n.content.value,
4470
4492
  contentLocale: n.activeLocale?.value ?? void 0
@@ -4476,7 +4498,7 @@ function ru(e) {
4476
4498
  updateSettings: n.updateSettings,
4477
4499
  removeBlock: n.removeBlock
4478
4500
  });
4479
- l(dn, z);
4501
+ l(mn, z);
4480
4502
  function ne() {
4481
4503
  _?.(), z?.destroy(), g?.destroy(), p.destroy();
4482
4504
  }
@@ -4506,12 +4528,12 @@ function ru(e) {
4506
4528
  };
4507
4529
  }
4508
4530
  // src/composables/useSmallScreenNotice.ts
4509
- var iu = "(max-width: 767px)";
4510
- function au(e) {
4511
- let t = or(iu);
4531
+ var su = "(max-width: 767px)";
4532
+ function cu(e) {
4533
+ let t = lr(su);
4512
4534
  return {
4513
4535
  isSmallScreen: t,
4514
4536
  showNotice: C(() => (N(e) ?? !0) && t.value)
4515
4537
  };
4516
4538
  }
4517
- export { Ai as A, Mr as B, Ji as C, Bi as D, Qi as E, $r as F, Dr as H, Zr as I, Kr as L, Oi as M, Di as N, Ci as O, Ei as P, Wr as R, Wi as S, zi as T, Tr as U, jr as V, Cr as W, Sa as _, zl as a, aa as b, Cl as c, To as d, Co as f, Pa as g, Ra as h, Gl as i, ki as j, ji as k, Eo as l, Va as m, ru as n, Il as o, Ha as p, tu as r, Ol as s, au as t, ko as u, ga as v, Yi as w, na as x, ma as y, Lr as z };
4539
+ export { Ni as A, Fr as B, Zi as C, Ui as D, ta as E, ni as F, Ar as H, ei as I, Yr as L, ji as M, Ai as N, Ei as O, ki as P, qr as R, qi as S, Hi as T, Or as U, Pr as V, Er as W, Ta as _, Hl as a, ca as b, El as c, Oo as d, Eo as f, La as g, Va as h, Jl as i, Mi as j, Pi as k, ko as l, Wa as m, ou as n, zl as o, Ga as p, iu as r, jl as s, cu as t, Mo as u, ya as v, Qi as w, aa as x, _a as y, Br as z };