@templatical/editor 0.55.0 → 0.56.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 (277) hide show
  1. package/dist/{AiAltTextPopover-D5QosKvB.js → AiAltTextPopover-DdsvhE78.js} +4 -4
  2. package/dist/{AiAltTextReview-D1W_lrI_.js → AiAltTextReview-P6to1_0t.js} +3 -3
  3. package/dist/{AiChatPanel-C8SeEJRP.js → AiChatPanel-BSlmzMRC.js} +10 -10
  4. package/dist/{AiPanels-CR6zphjP.js → AiPanels-DAsnX-a3.js} +1 -1
  5. package/dist/{AiRewriteMenu-BwztoMov.js → AiRewriteMenu-DIISOR6U.js} +11 -11
  6. package/dist/{BlockIssueBadge-DaPTq1RE.js → BlockIssueBadge-Bmtc50BQ.js} +4 -4
  7. package/dist/BlockPreviewCanvas-BYIzNn-9.js +154 -0
  8. package/dist/{CloudHeaderExtras-XpjJjn3o.js → CloudHeaderExtras-Cqhw-jMz.js} +1 -1
  9. package/dist/{CloudPanels-Baoaj6Xf.js → CloudPanels-w34W8_BP.js} +4 -4
  10. package/dist/{CollaborationNotices-Cnx0XHzZ.js → CollaborationNotices-HTbCebjV.js} +2 -2
  11. package/dist/{CollaboratorBar-BaBoNhwB.js → CollaboratorBar-CLQjksX-.js} +2 -2
  12. package/dist/{CommentsPanel-Ck3QmqiC.js → CommentsPanel-C5qG17Ki.js} +1 -1
  13. package/dist/{CommentsSidebar-CHknhOar.js → CommentsSidebar-C7CWcUYZ.js} +12 -12
  14. package/dist/{CountdownBlock-BMezkFbJ.js → CountdownBlock-BTXcCvjZ.js} +2 -2
  15. package/dist/{CountdownToolbar-CA_gDIdZ.js → CountdownToolbar-CP-pkntQ.js} +5 -5
  16. package/dist/{IssuesPanel-nmFhWG1p.js → IssuesPanel-CiiNBzH0.js} +12 -12
  17. package/dist/{LanguageMenu-DcABUYop.js → LanguageMenu-B981Av-6.js} +15 -15
  18. package/dist/{LocaleNotices-WzsYtBRs.js → LocaleNotices-CTCZ7BYv.js} +4 -4
  19. package/dist/{LogicTagInsertButton-qZ82VMFx.js → LogicTagInsertButton-DEOPc4RC.js} +23 -23
  20. package/dist/{MediaEditModal-C3U9Mi31.js → MediaEditModal-DJsPLTwP.js} +1 -1
  21. package/dist/{MediaPanels-CGmk9ufe.js → MediaPanels-D2WD2aE2.js} +1 -1
  22. package/dist/{MergeTagInput-JJeZbFkD.js → MergeTagInput-C9icdxw7.js} +1 -1
  23. package/dist/{MergeTagModeToggle-DDucd1eC.js → MergeTagModeToggle-DXvb80OE.js} +6 -6
  24. package/dist/{MergeTagTextarea-dQ2LRrNB.js → MergeTagTextarea-CrAcmT3A.js} +5 -5
  25. package/dist/{ParagraphEditor-VXYwGoz_.js → ParagraphEditor-BWBQ3jKz.js} +55 -55
  26. package/dist/{RestoreVersionDialog-BibNvAaJ.js → RestoreVersionDialog-CqAp16yQ.js} +4 -4
  27. package/dist/{RichTextEditorContent-CU5EOlM_.js → RichTextEditorContent-xbBjVPVQ.js} +8 -8
  28. package/dist/{SaveBlockDialog-S9aFi0cy.js → SaveBlockDialog-pebNJBTc.js} +9 -9
  29. package/dist/{SavedBlocksBrowserModal-DIdn6B0J.js → SavedBlocksBrowserModal-CvagMcv7.js} +11 -11
  30. package/dist/{SavedBlocksPanels-Cme2M6u8.js → SavedBlocksPanels-B9AAVBDm.js} +1 -1
  31. package/dist/{SavedBlocksPickBar-BDmA7r3m.js → SavedBlocksPickBar-BIANWe3i.js} +3 -3
  32. package/dist/{TemplateSettings-C_LHLm5M.js → TemplateSettings-ORq4PbCN.js} +12 -12
  33. package/dist/{TestEmailModal-CLIRn7eL.js → TestEmailModal-DRjCpcPl.js} +11 -11
  34. package/dist/{TestEmailPanel-frdtjC8h.js → TestEmailPanel-H0v8El__.js} +1 -1
  35. package/dist/{TitleEditor-D5kC56Jl.js → TitleEditor-CEGbJXeU.js} +11 -11
  36. package/dist/{Toolbar-D904Yw_R.js → Toolbar-XT-uGA9J.js} +937 -703
  37. package/dist/{TplModal-BBdotDf1.js → TplModal-7NQq5-VW.js} +4 -4
  38. package/dist/{VersionHistoryMenu-BnP0EyLl.js → VersionHistoryMenu-C8BE3Pr-.js} +7 -7
  39. package/dist/{VersionHistoryPanels-DhagEgOk.js → VersionHistoryPanels-CuKuOSJG.js} +1 -1
  40. package/dist/{VersionPreviewBanner-BPP939cD.js → VersionPreviewBanner-BVFBkveR.js} +2 -2
  41. package/dist/WrapperBlock-Bdw-072t.js +56 -0
  42. package/dist/{blockTypeIcons-CoRQV_hP.js → blockTypeIcons-CGplGmmr.js} +3 -3
  43. package/dist/bundle-stats.json +6 -6
  44. package/dist/{ca-DIkMxYCN.js → ca-BJn8lcJx.js} +8 -0
  45. package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js → AiAltTextPopover-x999Gimz.js} +5 -5
  46. package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js.map → AiAltTextPopover-x999Gimz.js.map} +1 -1
  47. package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js → AiAltTextReview-DjnFz1wO.js} +4 -4
  48. package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js.map → AiAltTextReview-DjnFz1wO.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js → AiChatPanel-DKDu9cs7.js} +4 -4
  50. package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js.map → AiChatPanel-DKDu9cs7.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiPanels-BblCSkQy.js → AiPanels-jMLVaiKx.js} +2 -2
  52. package/dist/cdn/chunks/{AiPanels-BblCSkQy.js.map → AiPanels-jMLVaiKx.js.map} +1 -1
  53. package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js → AiRewriteMenu-s79rmHFy.js} +9 -9
  54. package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js.map → AiRewriteMenu-s79rmHFy.js.map} +1 -1
  55. package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js → BlockIssueBadge-Bnmq_M4G.js} +4 -4
  56. package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js.map → BlockIssueBadge-Bnmq_M4G.js.map} +1 -1
  57. package/dist/cdn/chunks/{BlockPreviewCanvas-Dr-xGq6v.js → BlockPreviewCanvas-B3HkuENF.js} +46 -32
  58. package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js.map +1 -0
  59. package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js → CloudHeaderExtras-uUJYJFJ6.js} +2 -2
  60. package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js.map → CloudHeaderExtras-uUJYJFJ6.js.map} +1 -1
  61. package/dist/cdn/chunks/{CloudPanels-CQ0vNgsH.js → CloudPanels-DQnlH_YJ.js} +4 -4
  62. package/dist/cdn/chunks/{CloudPanels-CQ0vNgsH.js.map → CloudPanels-DQnlH_YJ.js.map} +1 -1
  63. package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js → CollaborationNotices-CHqUGhOZ.js} +3 -3
  64. package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js.map → CollaborationNotices-CHqUGhOZ.js.map} +1 -1
  65. package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js → CollaboratorBar-C1ZI2xwa.js} +3 -3
  66. package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js.map → CollaboratorBar-C1ZI2xwa.js.map} +1 -1
  67. package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js → CommentsPanel-EtdTzTmq.js} +2 -2
  68. package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js.map → CommentsPanel-EtdTzTmq.js.map} +1 -1
  69. package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js → CommentsSidebar-Qmj049QX.js} +4 -4
  70. package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js.map → CommentsSidebar-Qmj049QX.js.map} +1 -1
  71. package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js → CountdownBlock-DyGsh92b.js} +3 -3
  72. package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js.map → CountdownBlock-DyGsh92b.js.map} +1 -1
  73. package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js → CountdownToolbar-Ddj2erNm.js} +6 -6
  74. package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js.map → CountdownToolbar-Ddj2erNm.js.map} +1 -1
  75. package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js → IssuesPanel-DnSnEh1X.js} +8 -8
  76. package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js.map → IssuesPanel-DnSnEh1X.js.map} +1 -1
  77. package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js → LanguageMenu-C2I_yTL5.js} +110 -110
  78. package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js.map → LanguageMenu-C2I_yTL5.js.map} +1 -1
  79. package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js → LocaleNotices-Dr9LRCAg.js} +4 -4
  80. package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js.map → LocaleNotices-Dr9LRCAg.js.map} +1 -1
  81. package/dist/cdn/chunks/{LogicTagInsertButton-Bt2PXbQ0.js → LogicTagInsertButton-BdzE9-l7.js} +29 -29
  82. package/dist/cdn/chunks/LogicTagInsertButton-BdzE9-l7.js.map +1 -0
  83. package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js → MediaEditModal-CMJFXu_o.js} +2 -2
  84. package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js.map → MediaEditModal-CMJFXu_o.js.map} +1 -1
  85. package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js → MediaPanels-C790ZXuY.js} +2 -2
  86. package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js.map → MediaPanels-C790ZXuY.js.map} +1 -1
  87. package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js → MergeTagInput-CmrX8Md6.js} +2 -2
  88. package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js.map → MergeTagInput-CmrX8Md6.js.map} +1 -1
  89. package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js → MergeTagModeToggle-D7maMGIM.js} +5 -5
  90. package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js.map → MergeTagModeToggle-D7maMGIM.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js → MergeTagTextarea-KOnd2teB.js} +6 -6
  92. package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js.map → MergeTagTextarea-KOnd2teB.js.map} +1 -1
  93. package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js → ParagraphEditor-I9lbKaPk.js} +19 -19
  94. package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js.map → ParagraphEditor-I9lbKaPk.js.map} +1 -1
  95. package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js → RestoreVersionDialog-DqbULAbc.js} +4 -4
  96. package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js.map → RestoreVersionDialog-DqbULAbc.js.map} +1 -1
  97. package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js → RichTextEditorContent-_O22z0pn.js} +8 -8
  98. package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js.map → RichTextEditorContent-_O22z0pn.js.map} +1 -1
  99. package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js → SaveBlockDialog-CClRLXgF.js} +8 -8
  100. package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js.map → SaveBlockDialog-CClRLXgF.js.map} +1 -1
  101. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js → SavedBlocksBrowserModal-BIaxaxw9.js} +8 -8
  102. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js.map → SavedBlocksBrowserModal-BIaxaxw9.js.map} +1 -1
  103. package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js → SavedBlocksPanels-Dfu9N6YW.js} +2 -2
  104. package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js.map → SavedBlocksPanels-Dfu9N6YW.js.map} +1 -1
  105. package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js → SavedBlocksPickBar-DiMW_dbJ.js} +4 -4
  106. package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js.map → SavedBlocksPickBar-DiMW_dbJ.js.map} +1 -1
  107. package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js → TemplateSettings-JMUo0LIV.js} +10 -10
  108. package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js.map → TemplateSettings-JMUo0LIV.js.map} +1 -1
  109. package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js → TestEmailModal-D52VtwBZ.js} +11 -11
  110. package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js.map → TestEmailModal-D52VtwBZ.js.map} +1 -1
  111. package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js → TestEmailPanel-D9ezVDHd.js} +2 -2
  112. package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js.map → TestEmailPanel-D9ezVDHd.js.map} +1 -1
  113. package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js → TitleEditor-D04vvbUc.js} +9 -9
  114. package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js.map → TitleEditor-D04vvbUc.js.map} +1 -1
  115. package/dist/cdn/chunks/{Toolbar-NEE8qxYh.js → Toolbar-C_Hfsher.js} +1173 -939
  116. package/dist/cdn/chunks/Toolbar-C_Hfsher.js.map +1 -0
  117. package/dist/cdn/chunks/{TplModal-B1MgvtX8.js → TplModal-d6fEZGJ5.js} +5 -5
  118. package/dist/cdn/chunks/{TplModal-B1MgvtX8.js.map → TplModal-d6fEZGJ5.js.map} +1 -1
  119. package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js → VersionHistoryMenu-C8ucm43v.js} +7 -7
  120. package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js.map → VersionHistoryMenu-C8ucm43v.js.map} +1 -1
  121. package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js → VersionHistoryPanels-BAdzmhvH.js} +2 -2
  122. package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js.map → VersionHistoryPanels-BAdzmhvH.js.map} +1 -1
  123. package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js → VersionPreviewBanner-BWuovbFc.js} +3 -3
  124. package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js.map → VersionPreviewBanner-BWuovbFc.js.map} +1 -1
  125. package/dist/cdn/chunks/WrapperBlock-TXDSDXUP.js +58 -0
  126. package/dist/cdn/chunks/WrapperBlock-TXDSDXUP.js.map +1 -0
  127. package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js → blockTypeIcons-CzYA5DF9.js} +2 -2
  128. package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js.map → blockTypeIcons-CzYA5DF9.js.map} +1 -1
  129. package/dist/cdn/chunks/{ca-DIkMxYCN.js → ca-BJn8lcJx.js} +9 -1
  130. package/dist/cdn/chunks/ca-BJn8lcJx.js.map +1 -0
  131. package/dist/cdn/chunks/{composables-nyxwrM27.js → composables-CsfQlmcf.js} +543 -503
  132. package/dist/cdn/chunks/composables-CsfQlmcf.js.map +1 -0
  133. package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js → createCloudRuntime-PpIFCDfj.js} +4 -4
  134. package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js.map → createCloudRuntime-PpIFCDfj.js.map} +1 -1
  135. package/dist/{de-Cc6Ue0UD.js → cdn/chunks/de-BLFp3nWx.js} +10 -0
  136. package/dist/cdn/chunks/de-BLFp3nWx.js.map +1 -0
  137. package/dist/cdn/chunks/{editor-modal-erQEOHZN.js → editor-modal-B8UE9V8B.js} +90 -90
  138. package/dist/cdn/chunks/{editor-modal-erQEOHZN.js.map → editor-modal-B8UE9V8B.js.map} +1 -1
  139. package/dist/cdn/chunks/en-CVxNoHww.js +1 -0
  140. package/dist/cdn/chunks/{en-BX4FujAQ.js → en-DGGQJGbm.js} +9 -1
  141. package/dist/cdn/chunks/en-DGGQJGbm.js.map +1 -0
  142. package/dist/cdn/chunks/{es-Do5b-MKU.js → es-DTY9qgLv.js} +9 -1
  143. package/dist/cdn/chunks/es-DTY9qgLv.js.map +1 -0
  144. package/dist/cdn/chunks/{extensions-BcwkOjVq.js → extensions-BM6ZSnsQ.js} +70 -70
  145. package/dist/cdn/chunks/extensions-BM6ZSnsQ.js.map +1 -0
  146. package/dist/{fr-S1n2Ebzp.js → cdn/chunks/fr-L4FqO9Gp.js} +10 -0
  147. package/dist/cdn/chunks/{fr-S1n2Ebzp.js.map → fr-L4FqO9Gp.js.map} +1 -1
  148. package/dist/cdn/chunks/{icons-Da9GKjPx.js → icons-DHExFLlT.js} +43 -43
  149. package/dist/cdn/chunks/{icons-Da9GKjPx.js.map → icons-DHExFLlT.js.map} +1 -1
  150. package/dist/cdn/chunks/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +9 -1
  151. package/dist/cdn/chunks/ja-6uOXkh4v.js.map +1 -0
  152. package/dist/cdn/chunks/{keys-CoQtCqNv.js → keys-BUmIvYy3.js} +4 -4
  153. package/dist/cdn/chunks/keys-BUmIvYy3.js.map +1 -0
  154. package/dist/{nl-0JSWaZpT.js → cdn/chunks/nl-DCxuxwNq.js} +10 -0
  155. package/dist/cdn/chunks/nl-DCxuxwNq.js.map +1 -0
  156. package/dist/cdn/chunks/{normalizeMergeTagMarkup-BrGw5jxk.js → normalizeMergeTagMarkup-aWjkotui.js} +67 -67
  157. package/dist/cdn/chunks/normalizeMergeTagMarkup-aWjkotui.js.map +1 -0
  158. package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js → preRenderCustomBlocks-Dn6dFUwx.js} +4 -4
  159. package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js.map → preRenderCustomBlocks-Dn6dFUwx.js.map} +1 -1
  160. package/dist/{pt-BR-D3VlIMDZ.js → cdn/chunks/pt-BR-CBkcrebr.js} +10 -0
  161. package/dist/cdn/chunks/pt-BR-CBkcrebr.js.map +1 -0
  162. package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js → sanitizeHtml-DJI7vvET.js} +2 -2
  163. package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js.map → sanitizeHtml-DJI7vvET.js.map} +1 -1
  164. package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js → socialIcons-Qw9rHc8C.js} +354 -341
  165. package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js.map → socialIcons-Qw9rHc8C.js.map} +1 -1
  166. package/dist/cdn/chunks/src-Bfj1jHnn.js +710 -0
  167. package/dist/cdn/chunks/src-Bfj1jHnn.js.map +1 -0
  168. package/dist/cdn/chunks/{src-Diw9SLIe.js → src-C9JWWxAk.js} +419 -423
  169. package/dist/cdn/chunks/src-C9JWWxAk.js.map +1 -0
  170. package/dist/cdn/chunks/{src-v47QHNmB.js → src-mXG-Of9A.js} +669 -662
  171. package/dist/cdn/chunks/src-mXG-Of9A.js.map +1 -0
  172. package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js → useCloudI18n-Xsih9yRH.js} +2 -2
  173. package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js.map → useCloudI18n-Xsih9yRH.js.map} +1 -1
  174. package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js → useEditorRoot-Beau2Z_T.js} +2 -2
  175. package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js.map → useEditorRoot-Beau2Z_T.js.map} +1 -1
  176. package/dist/cdn/chunks/{useI18n-BnJYydPv.js → useI18n-D8s7HtTn.js} +2 -2
  177. package/dist/cdn/chunks/{useI18n-BnJYydPv.js.map → useI18n-D8s7HtTn.js.map} +1 -1
  178. package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js → useLocalizedDisplay-Bgg4qpev.js} +6 -6
  179. package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js.map → useLocalizedDisplay-Bgg4qpev.js.map} +1 -1
  180. package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js → useLogicTag-DLvWzWsp.js} +4 -4
  181. package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js.map → useLogicTag-DLvWzWsp.js.map} +1 -1
  182. package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js → useMergeTag-B4FHCGGm.js} +5 -5
  183. package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js.map → useMergeTag-B4FHCGGm.js.map} +1 -1
  184. package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js → usePopoverPosition-esO6wjvU.js} +5 -5
  185. package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js.map → usePopoverPosition-esO6wjvU.js.map} +1 -1
  186. package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js → useScrollToBlock-CJuUu7Xj.js} +2 -2
  187. package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js.map → useScrollToBlock-CJuUu7Xj.js.map} +1 -1
  188. package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js → withCurrentFont-QqBilClC.js} +2 -2
  189. package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js.map → withCurrentFont-QqBilClC.js.map} +1 -1
  190. package/dist/cdn/editor.css +1 -1
  191. package/dist/cdn/editor.js +793 -796
  192. package/dist/cdn/editor.js.map +1 -1
  193. package/dist/{check-XMnOOIEC.js → check-CcuCoJDh.js} +1 -1
  194. package/dist/{chevron-down-DmamTEWQ.js → chevron-down-BfYIbFbC.js} +1 -1
  195. package/dist/{chevron-right-BEFXOH27.js → chevron-right-DyjFqY35.js} +1 -1
  196. package/dist/{chevron-up-Dw7woXj8.js → chevron-up-BHEIxuS-.js} +1 -1
  197. package/dist/{circle-alert-BTKC9vkq.js → circle-alert-Tq7kAh9S.js} +1 -1
  198. package/dist/{clock-BVT5u2uG.js → clock-Df0ZiXwQ.js} +1 -1
  199. package/dist/{composables-DPgNn9GZ.js → composables-CRX6rncm.js} +978 -938
  200. package/dist/{createCloudRuntime-Bw8TLmQ8.js → createCloudRuntime-DplyIlsy.js} +3 -3
  201. package/dist/{createLucideIcon-CgDE3xAR.js → createLucideIcon-CfBdtoUw.js} +5 -5
  202. package/dist/{cdn/chunks/de-Cc6Ue0UD.js → de-BLFp3nWx.js} +8 -2
  203. package/dist/{dist-CBdk1Vcb.js → dist-BMUUt3zJ.js} +284 -277
  204. package/dist/{editor-modal-BeX6otLk.js → editor-modal-D9HT9bD6.js} +15 -15
  205. package/dist/{en-BX4FujAQ.js → en-DGGQJGbm.js} +8 -0
  206. package/dist/en-De3uAutQ.js +1 -0
  207. package/dist/{es-Do5b-MKU.js → es-DTY9qgLv.js} +8 -0
  208. package/dist/{extensions-QFAARrjF.js → extensions-Cm6K4SRX.js} +285 -285
  209. package/dist/{eye-ByMgHeA_.js → eye-B3psrAqd.js} +1 -1
  210. package/dist/{cdn/chunks/fr-S1n2Ebzp.js → fr-L4FqO9Gp.js} +8 -2
  211. package/dist/{image-Ch8tR35K.js → image-C3yuPDxx.js} +1 -1
  212. package/dist/index.d.ts +60 -12
  213. package/dist/{info-DzSD-Wpk.js → info-DKja7A68.js} +1 -1
  214. package/dist/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +8 -0
  215. package/dist/{keys-BCqskl51.js → keys-w_VRjoMu.js} +3 -3
  216. package/dist/{link-oDn9AR2w.js → link-DhzPI4Hn.js} +1 -1
  217. package/dist/{list-C5t07dp8.js → list-DVGn7Ik2.js} +1 -1
  218. package/dist/{loader-circle-k6xvKgUB.js → loader-circle-DqKWsMHO.js} +1 -1
  219. package/dist/{message-circle-C23R6OJR.js → message-circle-C4TonoBs.js} +1 -1
  220. package/dist/{cdn/chunks/nl-0JSWaZpT.js → nl-DCxuxwNq.js} +8 -2
  221. package/dist/{normalizeMergeTagMarkup-BS0nRvhq.js → normalizeMergeTagMarkup-Da9JAgx7.js} +75 -75
  222. package/dist/{package-C90eQ7NU.js → package-9OkiEO4S.js} +1 -1
  223. package/dist/{pencil-BK7GrQuA.js → pencil-M9vkOB7C.js} +1 -1
  224. package/dist/{plus-Cr0Mis63.js → plus-DxZiv9YC.js} +1 -1
  225. package/dist/{preRenderCustomBlocks-CiKvKd8V.js → preRenderCustomBlocks-CdqSp2P7.js} +4 -4
  226. package/dist/{cdn/chunks/pt-BR-D3VlIMDZ.js → pt-BR-CBkcrebr.js} +8 -2
  227. package/dist/{refresh-cw-_ZLOIEvA.js → refresh-cw-UY8_sdFG.js} +1 -1
  228. package/dist/{rotate-ccw-CB5wsHwv.js → rotate-ccw-BFTGCpHn.js} +1 -1
  229. package/dist/{sanitizeHtml-USjTyALR.js → sanitizeHtml-wBibnBF4.js} +6 -6
  230. package/dist/{search-BmrQNox8.js → search-RuGJnMEn.js} +1 -1
  231. package/dist/{send-blAsIBBg.js → send-DGB1ar02.js} +1 -1
  232. package/dist/{smartphone-BPpWYrwV.js → smartphone-CVA29CU_.js} +1 -1
  233. package/dist/{socialIcons-NvIg5ahU.js → socialIcons-CJD6OsI7.js} +427 -414
  234. package/dist/{sparkles-OqIxrNp-.js → sparkles-IHfEwEcd.js} +1 -1
  235. package/dist/{square-BP-V7iT-.js → square-_Cl44UU6.js} +1 -1
  236. package/dist/style.css +1 -1
  237. package/dist/templatical-editor.js +851 -854
  238. package/dist/{text-align-start-4mwX2o-F.js → text-align-start-Dqk2Xt_Q.js} +13 -13
  239. package/dist/{trash-B99WixTA.js → trash-Cr7rD5Hh.js} +1 -1
  240. package/dist/{triangle-alert-CHMiDkHa.js → triangle-alert-CKcpwtUj.js} +1 -1
  241. package/dist/{upload-Cp8o-hrN.js → upload-DR9pqVON.js} +1 -1
  242. package/dist/{useCloudI18n-Dh2iydo1.js → useCloudI18n-BczJoFf4.js} +1 -1
  243. package/dist/{useEditorRoot-DY3mgcHm.js → useEditorRoot-BcXKhM_8.js} +1 -1
  244. package/dist/{useI18n-CgtvtF4C.js → useI18n-zeWYtWSv.js} +1 -1
  245. package/dist/useLocalizedDisplay-Cbhx208c.js +31 -0
  246. package/dist/{useLogicTag-D8zgkXfb.js → useLogicTag-DLkYos2Q.js} +3 -3
  247. package/dist/{useMergeTag-k7Kr0nMd.js → useMergeTag-IoWOO679.js} +5 -5
  248. package/dist/{usePopoverPosition-VDQjyX_A.js → usePopoverPosition-Br3zt_MQ.js} +4 -4
  249. package/dist/{useScrollToBlock-B35ObCGK.js → useScrollToBlock-BfOzc1Z6.js} +2 -2
  250. package/dist/{withCurrentFont-Bzeg_gfH.js → withCurrentFont-m_PHcOD0.js} +1 -1
  251. package/dist/{x-BIBStNMS.js → x-DZSFHafL.js} +1 -1
  252. package/package.json +10 -10
  253. package/dist/BlockPreviewCanvas-C23A6FRm.js +0 -140
  254. package/dist/WrapperBlock-BAT3T0Cz.js +0 -44
  255. package/dist/cdn/chunks/BlockPreviewCanvas-Dr-xGq6v.js.map +0 -1
  256. package/dist/cdn/chunks/LogicTagInsertButton-Bt2PXbQ0.js.map +0 -1
  257. package/dist/cdn/chunks/Toolbar-NEE8qxYh.js.map +0 -1
  258. package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js +0 -46
  259. package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js.map +0 -1
  260. package/dist/cdn/chunks/ca-DIkMxYCN.js.map +0 -1
  261. package/dist/cdn/chunks/composables-nyxwrM27.js.map +0 -1
  262. package/dist/cdn/chunks/de-Cc6Ue0UD.js.map +0 -1
  263. package/dist/cdn/chunks/en-B6tLGRHq.js +0 -1
  264. package/dist/cdn/chunks/en-BX4FujAQ.js.map +0 -1
  265. package/dist/cdn/chunks/es-Do5b-MKU.js.map +0 -1
  266. package/dist/cdn/chunks/extensions-BcwkOjVq.js.map +0 -1
  267. package/dist/cdn/chunks/ja-DLwcq4bA.js.map +0 -1
  268. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +0 -1
  269. package/dist/cdn/chunks/nl-0JSWaZpT.js.map +0 -1
  270. package/dist/cdn/chunks/normalizeMergeTagMarkup-BrGw5jxk.js.map +0 -1
  271. package/dist/cdn/chunks/pt-BR-D3VlIMDZ.js.map +0 -1
  272. package/dist/cdn/chunks/src-Diw9SLIe.js.map +0 -1
  273. package/dist/cdn/chunks/src-UR3AQocX.js +0 -683
  274. package/dist/cdn/chunks/src-UR3AQocX.js.map +0 -1
  275. package/dist/cdn/chunks/src-v47QHNmB.js.map +0 -1
  276. package/dist/en-Do0SU6tR.js +0 -1
  277. package/dist/useLocalizedDisplay-LdjosX4w.js +0 -31
@@ -1,32 +1,32 @@
1
1
  import { A as e, B as t, C as n, E as r, F as i, G as a, H as o, I as s, K as c, L as l, M as u, N as d, O as f, P as p, Q as m, R as h, S as g, W as _, X as v, Y as y, _ as b, b as x, c as S, ct as C, dt as w, f as T, g as E, h as D, j as O, l as k, m as A, mt as j, ot as M, p as N, pt as P, rt as F, s as I, st as L, t as R, tt as z, u as B, x as V } from "./draggable-DepKdldn.js";
2
- import { $ as H, A as U, At as W, B as G, C as ee, D as K, E as q, G as J, Gt as te, H as ne, I as re, J as ie, K as Y, L as X, M as ae, N as oe, O as se, P as ce, Q as Z, R as le, S as ue, Sn as de, T as fe, U as pe, W as me, X as he, Xt as ge, Y as _e, Z as ve, Zt as ye, _n as be, _t as xe, a as Se, an as Ce, b as we, bn as Te, ct as Ee, d as De, et as Oe, ft as ke, i as Ae, it as je, j as Me, ln as Ne, mn as Pe, mt as Fe, nn as Ie, nt as Le, on as Re, ot as ze, p as Be, pn as Ve, pt as He, rt as Ue, sn as We, st as Ge, t as Ke, tt as qe, u as Je, ut as Ye, vn as Xe, w as Ze, x as Qe, xn as $e, y as et, yn as tt } from "./src-v47QHNmB.js";
3
- import { B as nt, C as rt, F as it, I as at, P as ot, R as st, T as ct, _ as lt, a as ut, f as dt, h as ft, n as pt, o as mt, t as ht, u as gt, v as _t, w as vt, x as yt, y as bt, z as xt } from "./socialIcons-B5zrrV8-.js";
2
+ import { $ as H, A as U, B as W, C as G, Cn as K, D as ee, E as q, G as J, H as te, I as ne, K as re, Kt as ie, L as Y, M as X, N as ae, O as oe, P as se, Q as ce, Qt as Z, R as le, S as ue, Sn as de, T as fe, W as pe, X as me, Y as he, Z as ge, Zt as _e, a as ve, at as ye, b as be, bn as xe, cn as Se, ct as Ce, d as we, dt as Te, et as Ee, hn as De, ht as Oe, i as ke, it as Ae, j as je, jt as Me, lt as Ne, mn as Pe, mt as Fe, nt as Ie, on as Le, p as Re, pt as ze, q as Be, rn as Ve, rt as He, sn as Ue, st as We, t as Ge, tt as Ke, u as qe, un as Je, vn as Ye, vt as Xe, w as Ze, x as Qe, xn as $e, y as et, yn as tt } from "./src-mXG-Of9A.js";
3
+ import { B as nt, C as rt, F as it, I as at, P as ot, R as st, T as ct, _ as lt, a as ut, f as dt, h as ft, n as pt, o as mt, t as ht, u as gt, v as _t, w as vt, x as yt, y as bt, z as xt } from "./socialIcons-Qw9rHc8C.js";
4
4
  import { t as St } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
5
- import { At as Ct, G as wt, Mt as Tt, Nt as Et, Ot as Dt, St as Ot, Ut as kt, V as At, Wt as jt, X as Mt, _t as Nt, d as Pt, f as Ft, k as It, mt as Lt, nt as Rt, o as zt, y as Bt, yt as Vt } from "./icons-Da9GKjPx.js";
6
- import { $ as Ht, A as Ut, B as Wt, C as Gt, D as Kt, F as qt, G as Jt, H as Yt, I as Xt, J as Zt, K as Qt, L as $t, M as en, N as tn, O as nn, P as rn, Q as an, R as on, S as sn, T as cn, U as ln, V as un, W as dn, X as fn, _ as pn, a as mn, at as hn, b as gn, c as _n, d as vn, et as yn, g as bn, h as xn, i as Sn, it as Cn, j as wn, k as Tn, l as En, m as Dn, nt as On, ot as kn, p as An, q as jn, r as Mn, rt as Nn, s as Pn, tt as Fn, u as In, v as Ln, w as Rn, x as zn, y as Bn, z as Vn } from "./keys-CoQtCqNv.js";
7
- import { t as Q } from "./useI18n-BnJYydPv.js";
8
- import { n as Hn } from "./useLocalizedDisplay-DekV8qar.js";
9
- import { t as Un } from "./plural-CyxrJXL1.js";
10
- import { t as Wn } from "./languageName-DEEOhDWI.js";
11
- import { m as Gn, w as Kn, x as qn } from "./styleConstants-CgiNKdnc.js";
12
- import { _ as Jn, h as Yn, v as Xn, y as Zn } from "./dist-BzXULHvI.js";
13
- import { a as Qn, c as $n, i as er, l as tr } from "./dist-DqGgijFI.js";
14
- import { t as nr } from "./useEditorRoot-D_LuZ_hE.js";
15
- import "./useCloudI18n-Cc5NZqiI.js";
16
- import { t as rr } from "./useMergeTag-1lrpNyR5.js";
5
+ import { At as Ct, G as wt, Mt as Tt, Nt as Et, Ot as Dt, St as Ot, Ut as kt, V as At, Wt as jt, X as Mt, _t as Nt, d as Pt, f as Ft, k as It, mt as Lt, nt as Rt, o as zt, y as Bt, yt as Vt } from "./icons-DHExFLlT.js";
6
+ import { $ as Ht, A as Ut, B as Wt, C as Gt, D as Kt, F as qt, G as Jt, H as Yt, I as Xt, J as Zt, K as Qt, L as $t, M as en, N as tn, O as nn, P as rn, R as an, S as on, T as sn, U as cn, V as ln, W as un, Y as dn, Z as fn, _ as pn, a as mn, at as hn, b as gn, c as _n, d as vn, et as yn, g as bn, h as xn, i as Sn, it as Cn, j as wn, k as Tn, l as En, m as Dn, nt as On, ot as kn, p as An, q as jn, r as Mn, rt as Nn, s as Pn, st as Fn, tt as In, u as Ln, v as Rn, w as zn, x as Bn, y as Vn, z as Hn } from "./keys-BUmIvYy3.js";
7
+ import { t as Q } from "./useI18n-D8s7HtTn.js";
8
+ import { n as Un } from "./useLocalizedDisplay-Bgg4qpev.js";
9
+ import { t as Wn } from "./plural-CyxrJXL1.js";
10
+ import { t as Gn } from "./languageName-DEEOhDWI.js";
11
+ import { m as Kn, w as qn, x as Jn } from "./styleConstants-CgiNKdnc.js";
12
+ import { _ as Yn, h as Xn, v as Zn, y as Qn } from "./dist-BzXULHvI.js";
13
+ import { a as $n, c as er, i as tr, l as nr } from "./dist-DqGgijFI.js";
14
+ import { t as rr } from "./useEditorRoot-Beau2Z_T.js";
15
+ import "./useCloudI18n-Xsih9yRH.js";
16
+ import { t as ir } from "./useMergeTag-B4FHCGGm.js";
17
17
  import { t as $ } from "./logger-CqQTfJGx.js";
18
- import { a as ir, c as ar, i as or, n as sr, o as cr, t as lr } from "./usePopoverPosition-BWAXWeBv.js";
19
- import { t as ur } from "./useLogicTag-Cbp3I7UN.js";
20
- import { r as dr, t as fr } from "./templateSettingsFields-cjlP-jdw.js";
21
- import { n as pr, t as mr } from "./sanitizeHtml-GxJCxKcP.js";
22
- import { t as hr } from "./LoadingTrack-DUYcDHOV.js";
23
- import { t as gr } from "./readableTextColor-BfZUGnVj.js";
18
+ import { a as ar, c as or, i as sr, n as cr, o as lr, t as ur } from "./usePopoverPosition-esO6wjvU.js";
19
+ import { t as dr } from "./useLogicTag-DLvWzWsp.js";
20
+ import { r as fr, t as pr } from "./templateSettingsFields-cjlP-jdw.js";
21
+ import { n as mr, t as hr } from "./sanitizeHtml-DJI7vvET.js";
22
+ import { t as gr } from "./LoadingTrack-DUYcDHOV.js";
23
+ import { t as _r } from "./readableTextColor-BfZUGnVj.js";
24
24
  // src/composables/useFocusTrap.ts
25
- var _r = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
26
- function vr(e, t) {
27
- let n = nr(), r = null, i = null, a = null;
25
+ var vr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
26
+ function yr(e, t) {
27
+ let n = rr(), r = null, i = null, a = null;
28
28
  function s() {
29
- return e.value ? Array.from(e.value.querySelectorAll(_r)).filter((e) => e.offsetParent !== null) : [];
29
+ return e.value ? Array.from(e.value.querySelectorAll(vr)).filter((e) => e.offsetParent !== null) : [];
30
30
  }
31
31
  function c(e) {
32
32
  if (e.key !== "Tab") return;
@@ -41,7 +41,7 @@ function vr(e, t) {
41
41
  a = null;
42
42
  let t = s();
43
43
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
44
- }), i = Qn(e, "keydown", c);
44
+ }), i = $n(e, "keydown", c);
45
45
  }
46
46
  function u(e = {}) {
47
47
  let t = e.restoreFocus !== !1;
@@ -55,8 +55,8 @@ function vr(e, t) {
55
55
  });
56
56
  }
57
57
  // src/composables/useEmoji.ts
58
- function yr() {
59
- let [e, t] = Xn(!1), n = F([]), r = !1;
58
+ function br() {
59
+ let [e, t] = Zn(!1), n = F([]), r = !1;
60
60
  m(() => {
61
61
  r = !0;
62
62
  }), o(e, async (e) => {
@@ -80,7 +80,7 @@ function yr() {
80
80
  };
81
81
  }
82
82
  // src/composables/useBlockRegistry.ts
83
- function br() {
83
+ function xr() {
84
84
  let e = F(/* @__PURE__ */ new Map());
85
85
  function t(t, n) {
86
86
  e.value.set(t, n), L(e);
@@ -114,7 +114,7 @@ function br() {
114
114
  let t = a(e.customType);
115
115
  if (!t) return o("Block definition not found");
116
116
  try {
117
- return await X(await import("./liquid.browser-rubac0VA.js")).parseAndRender(t.template, e.fieldValues);
117
+ return await Y(await import("./liquid.browser-rubac0VA.js")).parseAndRender(t.template, e.fieldValues);
118
118
  } catch (t) {
119
119
  return $.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
120
120
  }
@@ -133,7 +133,7 @@ function br() {
133
133
  };
134
134
  }
135
135
  // src/composables/useFonts.ts
136
- var xr = [
136
+ var Sr = [
137
137
  {
138
138
  value: "Arial",
139
139
  label: "Arial"
@@ -162,19 +162,19 @@ var xr = [
162
162
  value: "Courier New",
163
163
  label: "Courier New"
164
164
  }
165
- ], Sr = "Arial, sans-serif";
166
- function Cr(e) {
167
- if (e === void 0 || e === !0) return [...xr];
165
+ ], Cr = "Arial, sans-serif";
166
+ function wr(e) {
167
+ if (e === void 0 || e === !0) return [...Sr];
168
168
  if (e === !1) return [];
169
169
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
170
170
  for (let i of e) {
171
- let e = i.toLowerCase(), a = xr.find((t) => t.value.toLowerCase() === e);
172
- a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), $.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${xr.map((e) => e.value).join(", ")}.`));
171
+ let e = i.toLowerCase(), a = Sr.find((t) => t.value.toLowerCase() === e);
172
+ a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), $.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Sr.map((e) => e.value).join(", ")}.`));
173
173
  }
174
174
  return t;
175
175
  }
176
- function wr(e) {
177
- let t = z(e?.customFonts ?? []), n = z(!1), r = Cr(e?.builtIns), i = N(() => e?.defaultFallback ?? Sr), a = N(() => {
176
+ function Tr(e) {
177
+ let t = z(e?.customFonts ?? []), n = z(!1), r = wr(e?.builtIns), i = N(() => e?.defaultFallback ?? Cr), a = N(() => {
178
178
  let e = [...r], n = t.value.map((e) => ({
179
179
  value: e.name,
180
180
  label: e.name,
@@ -185,18 +185,18 @@ function wr(e) {
185
185
  function o(e) {
186
186
  return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
187
187
  }
188
- let s = e?.defaultFont ?? Sr.split(",")[0].trim();
188
+ let s = e?.defaultFont ?? Cr.split(",")[0].trim();
189
189
  o(s) || $.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.`);
190
190
  function c() {
191
191
  if (e?.defaultFont && o(e.defaultFont)) {
192
192
  let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
193
193
  if (t) return t.value;
194
194
  }
195
- return Sr;
195
+ return Cr;
196
196
  }
197
197
  let l = N(() => c());
198
198
  function u(e) {
199
- return Ae(e, {
199
+ return ke(e, {
200
200
  customFonts: t.value,
201
201
  defaultFallback: i.value
202
202
  });
@@ -239,7 +239,7 @@ function wr(e) {
239
239
  };
240
240
  }
241
241
  // src/composables/useThemeStyles.ts
242
- var Tr = {
242
+ var Er = {
243
243
  bg: "--tpl-bg",
244
244
  bgElevated: "--tpl-bg-elevated",
245
245
  bgHover: "--tpl-bg-hover",
@@ -263,10 +263,10 @@ var Tr = {
263
263
  dangerLight: "--tpl-danger-light",
264
264
  canvasBg: "--tpl-canvas-bg"
265
265
  };
266
- function Er({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
266
+ function Dr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
267
267
  return { themeStyles: N(() => {
268
268
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
269
- if (a) for (let [e, t] of Object.entries(Tr)) {
269
+ if (a) for (let [e, t] of Object.entries(Er)) {
270
270
  let n = a[e];
271
271
  n && (r[t] = n);
272
272
  }
@@ -274,12 +274,12 @@ function Er({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
274
274
  }) };
275
275
  }
276
276
  // src/utils/mergeTagNodeSpec.ts
277
- function Dr(e, t, n) {
278
- return he(e, n) ? {
277
+ function Or(e, t, n) {
278
+ return ge(e, n) ? {
279
279
  type: "logicMergeTagNode",
280
280
  attrs: {
281
281
  value: e,
282
- keyword: me(e, n)
282
+ keyword: J(e, n)
283
283
  }
284
284
  } : {
285
285
  type: "mergeTagNode",
@@ -290,32 +290,32 @@ function Dr(e, t, n) {
290
290
  };
291
291
  }
292
292
  // src/utils/insertLogicTag.ts
293
- function Or(e) {
293
+ function kr(e) {
294
294
  return "before" in e && "after" in e;
295
295
  }
296
- function kr(e, t, n) {
297
- if (!Or(t)) {
298
- e.chain().focus().insertContent(Dr(t.value, t.label, n)).run();
296
+ function Ar(e, t, n) {
297
+ if (!kr(t)) {
298
+ e.chain().focus().insertContent(Or(t.value, t.label, n)).run();
299
299
  return;
300
300
  }
301
- let r = Dr(t.before, t.label, n), i = Dr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
301
+ let r = Or(t.before, t.label, n), i = Or(t.after, t.label, n), { from: a, to: o } = e.state.selection;
302
302
  a === o ? e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run() : e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
303
303
  }
304
304
  // src/utils/linkColorExtension.ts
305
- function Ar(e) {
305
+ function jr(e) {
306
306
  if (!e) return null;
307
307
  let t = e.trim();
308
308
  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;
309
309
  }
310
- function jr(e) {
310
+ function Mr(e) {
311
311
  return e.extend({ addAttributes() {
312
312
  return {
313
313
  ...this.parent?.(),
314
314
  color: {
315
315
  default: null,
316
- parseHTML: (e) => Ar(cr(e.style.color)),
316
+ parseHTML: (e) => jr(lr(e.style.color)),
317
317
  renderHTML: (e) => {
318
- let t = Ar(e.color);
318
+ let t = jr(e.color);
319
319
  return t ? { style: `color: ${t}` } : {};
320
320
  }
321
321
  }
@@ -323,9 +323,9 @@ function jr(e) {
323
323
  } });
324
324
  }
325
325
  // src/composables/useRichTextLinkDialog.ts
326
- function Mr(e, t = ne.liquid, n = () => !0) {
326
+ function Nr(e, t = te.liquid, n = () => !0) {
327
327
  let r = z(!1), i = z(""), a = z(""), o = z(null);
328
- vr(o, r);
328
+ yr(o, r);
329
329
  function s() {
330
330
  if (!n()) return;
331
331
  let t = e.value?.getAttributes("link") ?? {};
@@ -336,7 +336,7 @@ function Mr(e, t = ne.liquid, n = () => !0) {
336
336
  if (i.value) {
337
337
  let t = d(i.value);
338
338
  if (t !== null) {
339
- let n = Ar(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
339
+ let n = jr(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
340
340
  n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
341
341
  }
342
342
  }
@@ -353,8 +353,8 @@ function Mr(e, t = ne.liquid, n = () => !0) {
353
353
  if (t.startsWith("#")) return t;
354
354
  if (t.startsWith("//")) return `https:${t}`;
355
355
  if (l.test(t)) return t;
356
- let n = De(t);
357
- return n ? Je.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
356
+ let n = we(t);
357
+ return n ? qe.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
358
358
  }
359
359
  function f() {
360
360
  n() && (e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), p());
@@ -378,13 +378,13 @@ function Mr(e, t = ne.liquid, n = () => !0) {
378
378
  };
379
379
  }
380
380
  // src/composables/useRichTextEditor.ts
381
- function Nr(e) {
382
- let t = f(Ln, null), n = ar(), { mergeTags: r, canRequestMergeTag: i, isRequesting: a, requestMergeTag: s, syntax: c, autocomplete: l } = rr(), { canInsertLogicTag: d, isRequesting: p, requestLogicTag: m } = ur(), h = f(Fn, null), g = (v(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", _ = ie(c), y = F(null), b = t?.content ? Hn(t) : null, x = () => Ye(b?.settings.value ?? { locale: "en" });
381
+ function Pr(e) {
382
+ let t = f(Rn, null), n = or(), { mergeTags: r, canRequestMergeTag: i, isRequesting: a, requestMergeTag: s, syntax: c, autocomplete: l } = ir(), { canInsertLogicTag: d, isRequesting: p, requestLogicTag: m } = dr(), h = f(On, null), g = (v(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", _ = he(c), y = F(null), b = t?.content ? Un(t) : null, x = () => Te(b?.settings.value ?? { locale: "en" });
383
383
  o(x, (e) => {
384
384
  let t = y.value?.view.dom;
385
385
  t && t.setAttribute("dir", e);
386
386
  });
387
- let { showLinkDialog: S, linkUrl: C, linkColor: w, linkDialogRef: T, openLinkDialog: E, insertLink: D, removeLink: O, closeLinkDialog: k, handleLinkKeydown: A } = Mr(y, c, () => n.value);
387
+ let { showLinkDialog: S, linkUrl: C, linkColor: w, linkDialogRef: T, openLinkDialog: E, insertLink: D, removeLink: O, closeLinkDialog: k, handleLinkKeydown: A } = Nr(y, c, () => n.value);
388
388
  o(n, (e) => {
389
389
  if (y.value?.setEditable(e, !1), !e) {
390
390
  k();
@@ -392,7 +392,7 @@ function Nr(e) {
392
392
  e && e.view.dispatch(e.state.tr);
393
393
  }
394
394
  });
395
- let { start: j, stop: M } = Jn(() => y.value?.commands.focus("end"), 0, { immediate: !1 }), N = F(null), P = z(!0), I = z(null), L = !1, R = null;
395
+ let { start: j, stop: M } = Yn(() => y.value?.commands.focus("end"), 0, { immediate: !1 }), N = F(null), P = z(!0), I = z(null), L = !1, R = null;
396
396
  async function B() {
397
397
  I.value = null, P.value = !0;
398
398
  try {
@@ -441,7 +441,7 @@ function Nr(e) {
441
441
  let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
442
442
  r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || e.onDone();
443
443
  }
444
- Qn(document, "mousedown", U), u(() => {
444
+ $n(document, "mousedown", U), u(() => {
445
445
  L = !0, H(), M(), y.value?.destroy();
446
446
  });
447
447
  async function W() {
@@ -455,7 +455,7 @@ function Nr(e) {
455
455
  async function G() {
456
456
  if (!n.value) return;
457
457
  let e = await m();
458
- !L && n.value && (e && y.value ? kr(y.value, e, c) : y.value?.commands.focus());
458
+ !L && n.value && (e && y.value ? Ar(y.value, e, c) : y.value?.commands.focus());
459
459
  }
460
460
  return {
461
461
  editor: y,
@@ -484,25 +484,25 @@ function Nr(e) {
484
484
  };
485
485
  }
486
486
  // src/utils/activeEditorTracker.ts
487
- var Pr = /* @__PURE__ */ new Set(), Fr = 0, Ir = 0;
488
- function Lr() {
489
- let e = ++Ir;
490
- return Pr.add(e), Fr === 0 && (Fr = e), {
487
+ var Fr = /* @__PURE__ */ new Set(), Ir = 0, Lr = 0;
488
+ function Rr() {
489
+ let e = ++Lr;
490
+ return Fr.add(e), Ir === 0 && (Ir = e), {
491
491
  id: e,
492
- isActive: () => Pr.size <= 1 || Fr === e,
492
+ isActive: () => Fr.size <= 1 || Ir === e,
493
493
  claim: () => {
494
- Fr = e;
494
+ Ir = e;
495
495
  },
496
496
  dispose: () => {
497
- if (Pr.delete(e), Fr === e) {
498
- let e = Array.from(Pr);
499
- Fr = e[e.length - 1] ?? 0;
497
+ if (Fr.delete(e), Ir === e) {
498
+ let e = Array.from(Fr);
499
+ Ir = e[e.length - 1] ?? 0;
500
500
  }
501
501
  }
502
502
  };
503
503
  }
504
504
  // src/utils/resolveLintOptions.ts
505
- function Rr(e) {
505
+ function zr(e) {
506
506
  let t = e.contentLocale ?? e.content?.settings.locale;
507
507
  return {
508
508
  ...e.lint,
@@ -511,8 +511,8 @@ function Rr(e) {
511
511
  };
512
512
  }
513
513
  // src/composables/usePreviewResolution.ts
514
- var zr = 500;
515
- function Br(e) {
514
+ var Br = 500;
515
+ function Vr(e) {
516
516
  let t = typeof e.resolvePreview == "function", n = z(null), r = z(!1), i = z(!1), a = 0, s = null;
517
517
  function c() {
518
518
  s !== null && (clearTimeout(s), s = null);
@@ -523,13 +523,13 @@ function Br(e) {
523
523
  let o = ++a;
524
524
  r.value = !0;
525
525
  let s = {
526
- content: Ie(e.getContent()),
526
+ content: Ve(e.getContent()),
527
527
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
528
528
  };
529
529
  try {
530
530
  let e = await t(s);
531
531
  if (o !== a) return;
532
- if (!Ke(e)) {
532
+ if (!Ge(e)) {
533
533
  i.value = !0;
534
534
  return;
535
535
  }
@@ -544,7 +544,7 @@ function Br(e) {
544
544
  function u() {
545
545
  t && (c(), n.value === null ? l() : s = setTimeout(() => {
546
546
  s = null, l();
547
- }, zr));
547
+ }, Br));
548
548
  }
549
549
  return o(() => [
550
550
  e.isActive(),
@@ -567,7 +567,7 @@ function Br(e) {
567
567
  };
568
568
  }
569
569
  // src/composables/useMergeTagPicker.ts
570
- function Vr() {
570
+ function Hr() {
571
571
  let e = z(!1), t = z([]), n = z(null), r = null;
572
572
  function i(i, a) {
573
573
  if (r) {
@@ -597,7 +597,7 @@ function Vr() {
597
597
  };
598
598
  }
599
599
  // src/composables/useLogicTagPicker.ts
600
- function Hr() {
600
+ function Ur() {
601
601
  let e = z(!1), t = z([]), n = z([]), r = null;
602
602
  function i(i, a) {
603
603
  if (r) {
@@ -627,23 +627,23 @@ function Hr() {
627
627
  };
628
628
  }
629
629
  // src/composables/useTemplateLint.ts
630
- function Ur(e) {
630
+ function Wr(e) {
631
631
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 && e.localization === !1 : !1;
632
632
  }
633
- var Wr = !1;
634
- function Gr(e) {
633
+ var Gr = !1;
634
+ function Kr(e) {
635
635
  let t = z([]), n = z(0), r = z(-1), i = o(e.content, () => {
636
636
  n.value++;
637
- }, { deep: !0 }), a = z(!1), s = z(!1), c = F(null), l = Ur(e.options), u = null, d = !1;
637
+ }, { deep: !0 }), a = z(!1), s = z(!1), c = F(null), l = Wr(e.options), u = null, d = !1;
638
638
  l || f();
639
639
  async function f() {
640
640
  try {
641
- let t = await import("./src-Diw9SLIe.js");
641
+ let t = await import("./src-C9JWWxAk.js");
642
642
  if (d) return;
643
- c.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), u = Zn(n, p, { debounce: e.debounce ?? 500 });
643
+ c.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), u = Qn(n, p, { debounce: e.debounce ?? 500 });
644
644
  } catch {
645
645
  if (d) return;
646
- s.value = !0, Wr || (Wr = !0, $.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."));
646
+ s.value = !0, Gr || (Gr = !0, $.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."));
647
647
  }
648
648
  }
649
649
  function p() {
@@ -682,7 +682,7 @@ function Gr(e) {
682
682
  };
683
683
  }
684
684
  // src/composables/useKeyboardReorder.ts
685
- function Kr(e, t, n = []) {
685
+ function qr(e, t, n = []) {
686
686
  let r = z(null), i = z(""), a = null;
687
687
  function o(t) {
688
688
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -777,14 +777,14 @@ function Kr(e, t, n = []) {
777
777
  };
778
778
  }
779
779
  // src/composables/useUiTheme.ts
780
- function qr(e) {
781
- let t = $n("(prefers-color-scheme: dark)");
780
+ function Jr(e) {
781
+ let t = er("(prefers-color-scheme: dark)");
782
782
  return { resolvedTheme: N(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
783
783
  }
784
784
  // src/composables/useCustomBlockStylesheets.ts
785
- function Jr(e, t) {
785
+ function Yr(e, t) {
786
786
  return N(() => {
787
- let n = Yr(e.value.blocks);
787
+ let n = Xr(e.value.blocks);
788
788
  if (n.size === 0) return [];
789
789
  let r = /* @__PURE__ */ new Set(), i = [];
790
790
  for (let e of n) {
@@ -796,31 +796,31 @@ function Jr(e, t) {
796
796
  return i;
797
797
  });
798
798
  }
799
- function Yr(e) {
799
+ function Xr(e) {
800
800
  let t = /* @__PURE__ */ new Set();
801
- return Xr(e, t), t;
801
+ return Zr(e, t), t;
802
802
  }
803
- function Xr(e, t) {
804
- for (let n of e) if (xe(n)) t.add(n.customType);
803
+ function Zr(e, t) {
804
+ for (let n of e) if (Xe(n)) t.add(n.customType);
805
805
  else if (n.type === "section") {
806
806
  let e = n.children;
807
807
  if (!e) continue;
808
- for (let n of e) Xr(n, t);
809
- } else W(n) && Xr(n.children, t);
808
+ for (let n of e) Zr(n, t);
809
+ } else Me(n) && Zr(n.children, t);
810
810
  }
811
811
  // src/utils/registerBuiltInBlocks.ts
812
- var Zr = [
812
+ var Qr = [
813
813
  {
814
814
  type: "section",
815
- createBlock: se
815
+ createBlock: oe
816
816
  },
817
817
  {
818
818
  type: "title",
819
- createBlock: oe
819
+ createBlock: ae
820
820
  },
821
821
  {
822
822
  type: "paragraph",
823
- createBlock: K
823
+ createBlock: ee
824
824
  },
825
825
  {
826
826
  type: "image",
@@ -828,15 +828,15 @@ var Zr = [
828
828
  },
829
829
  {
830
830
  type: "button",
831
- createBlock: we
831
+ createBlock: be
832
832
  },
833
833
  {
834
834
  type: "divider",
835
- createBlock: ee
835
+ createBlock: G
836
836
  },
837
837
  {
838
838
  type: "video",
839
- createBlock: ce
839
+ createBlock: se
840
840
  },
841
841
  {
842
842
  type: "social",
@@ -848,11 +848,11 @@ var Zr = [
848
848
  },
849
849
  {
850
850
  type: "table",
851
- createBlock: ae
851
+ createBlock: X
852
852
  },
853
853
  {
854
854
  type: "spacer",
855
- createBlock: Me
855
+ createBlock: je
856
856
  },
857
857
  {
858
858
  type: "html",
@@ -863,8 +863,8 @@ var Zr = [
863
863
  createBlock: Qe
864
864
  }
865
865
  ];
866
- function Qr(e, t) {
867
- for (let n of Zr) {
866
+ function $r(e, t) {
867
+ for (let n of Qr) {
868
868
  let r = t[n.type];
869
869
  r && e.registerBuiltIn(n.type, {
870
870
  component: r,
@@ -873,31 +873,31 @@ function Qr(e, t) {
873
873
  }
874
874
  }
875
875
  // src/utils/resolveHtmlBlockPreview.ts
876
- function $r(e) {
876
+ function ei(e) {
877
877
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
878
878
  }
879
879
  // src/utils/collectOffPaletteDefaults.ts
880
- function ei(e) {
880
+ function ti(e) {
881
881
  return typeof e == "object" && !!e && !Array.isArray(e);
882
882
  }
883
- function ti(e, t, n) {
884
- let r = new Set(e.map((e) => ir(e))), i = [], a = (e, t) => {
885
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(ir(o)) && i.push(`${t}.${n}: ${o}`) : ei(o) && a(o, `${t}.${n}`);
883
+ function ni(e, t, n) {
884
+ let r = new Set(e.map((e) => ar(e))), i = [], a = (e, t) => {
885
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(ar(o)) && i.push(`${t}.${n}: ${o}`) : ti(o) && a(o, `${t}.${n}`);
886
886
  }, o = t;
887
- for (let [e, t] of Object.entries(ke)) {
887
+ for (let [e, t] of Object.entries(ze)) {
888
888
  let n = o?.[e];
889
889
  a({
890
890
  ...t,
891
- ...ei(n) ? n : {}
891
+ ...ti(n) ? n : {}
892
892
  }, e);
893
893
  }
894
894
  return a({
895
- ...He,
895
+ ...Fe,
896
896
  ...n ?? {}
897
897
  }, "template"), i;
898
898
  }
899
899
  // src/utils/localizedBlockDefaults.ts
900
- function ni(e) {
900
+ function ri(e) {
901
901
  return {
902
902
  title: { content: `<p>${e.blockDefaults.title}</p>` },
903
903
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -905,62 +905,62 @@ function ni(e) {
905
905
  };
906
906
  }
907
907
  // src/i18n/index.ts
908
- var ri = /* #__PURE__ */ Object.assign({
909
- "./locales/ca.ts": () => import("./ca-DIkMxYCN.js"),
910
- "./locales/de.ts": () => import("./de-Cc6Ue0UD.js"),
911
- "./locales/en.ts": () => import("./en-BX4FujAQ.js"),
912
- "./locales/es.ts": () => import("./es-Do5b-MKU.js"),
913
- "./locales/fr.ts": () => import("./fr-S1n2Ebzp.js"),
914
- "./locales/ja.ts": () => import("./ja-DLwcq4bA.js"),
915
- "./locales/nl.ts": () => import("./nl-0JSWaZpT.js"),
916
- "./locales/pt-BR.ts": () => import("./pt-BR-D3VlIMDZ.js")
917
- }), ii = /* #__PURE__ */ Object.assign({
908
+ var ii = /* #__PURE__ */ Object.assign({
909
+ "./locales/ca.ts": () => import("./ca-BJn8lcJx.js"),
910
+ "./locales/de.ts": () => import("./de-BLFp3nWx.js"),
911
+ "./locales/en.ts": () => import("./en-DGGQJGbm.js"),
912
+ "./locales/es.ts": () => import("./es-DTY9qgLv.js"),
913
+ "./locales/fr.ts": () => import("./fr-L4FqO9Gp.js"),
914
+ "./locales/ja.ts": () => import("./ja-6uOXkh4v.js"),
915
+ "./locales/nl.ts": () => import("./nl-DCxuxwNq.js"),
916
+ "./locales/pt-BR.ts": () => import("./pt-BR-CBkcrebr.js")
917
+ }), ai = /* #__PURE__ */ Object.assign({
918
918
  "./locales/cloud/de.ts": () => import("./de-6M4JoHoD.js"),
919
919
  "./locales/cloud/en.ts": () => import("./en-FzUuJ8HW.js"),
920
920
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-Bp92Fc6J.js")
921
921
  });
922
- function ai(e) {
922
+ function oi(e) {
923
923
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
924
924
  }
925
- var oi = ai(ri), si = ai(ii);
926
- function ci(e) {
925
+ var si = oi(ii), ci = oi(ai);
926
+ function li(e) {
927
927
  return e.trim().replace(/_/g, "-").toLowerCase();
928
928
  }
929
- function li(e, t) {
930
- let n = ci(e);
931
- return t.find((e) => ci(e) === n);
932
- }
933
- function ui(e) {
934
- return ci(e).split("-")[0];
929
+ function ui(e, t) {
930
+ let n = li(e);
931
+ return t.find((e) => li(e) === n);
935
932
  }
936
- function di(e, t) {
937
- return li(e, t) ?? li(ui(e), t);
933
+ function di(e) {
934
+ return li(e).split("-")[0];
938
935
  }
939
936
  function fi(e, t) {
940
- return di(e, t) ?? "en";
937
+ return ui(e, t) ?? ui(di(e), t);
941
938
  }
942
- async function pi(e) {
943
- let t = ri[`./locales/${fi(e, oi)}.ts`];
944
- return (await t()).default;
939
+ function pi(e, t) {
940
+ return fi(e, t) ?? "en";
945
941
  }
946
942
  async function mi(e) {
947
- let t = ii[`./locales/cloud/${fi(e, si)}.ts`];
943
+ let t = ii[`./locales/${pi(e, si)}.ts`];
948
944
  return (await t()).default;
949
945
  }
950
- function hi(e) {
951
- return di(e, oi) !== void 0;
946
+ async function hi(e) {
947
+ let t = ai[`./locales/cloud/${pi(e, ci)}.ts`];
948
+ return (await t()).default;
952
949
  }
953
950
  function gi(e) {
954
- return di(e, si) !== void 0;
951
+ return fi(e, si) !== void 0;
955
952
  }
956
- function _i() {
957
- return [...oi];
953
+ function _i(e) {
954
+ return fi(e, ci) !== void 0;
958
955
  }
959
956
  function vi() {
960
957
  return [...si];
961
958
  }
959
+ function yi() {
960
+ return [...ci];
961
+ }
962
962
  // src/i18n/contentDefaults.ts
963
- var yi = {
963
+ var bi = {
964
964
  en: {
965
965
  video: "Video",
966
966
  days: "Days",
@@ -1025,16 +1025,16 @@ var yi = {
1025
1025
  seconds: "秒",
1026
1026
  expired: "このオファーは終了しました"
1027
1027
  }
1028
- }, bi = new Map(Object.keys(yi).map((e) => [e.toLowerCase(), e]));
1029
- function xi(e) {
1030
- if (!e) return yi.en;
1031
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = bi.get(t);
1032
- if (n) return yi[n];
1033
- let r = bi.get(ui(t));
1034
- return r ? yi[r] : yi.en;
1035
- }
1028
+ }, xi = new Map(Object.keys(bi).map((e) => [e.toLowerCase(), e]));
1036
1029
  function Si(e) {
1037
- let t = xi(e);
1030
+ if (!e) return bi.en;
1031
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = xi.get(t);
1032
+ if (n) return bi[n];
1033
+ let r = xi.get(di(t));
1034
+ return r ? bi[r] : bi.en;
1035
+ }
1036
+ function Ci(e) {
1037
+ let t = Si(e);
1038
1038
  return {
1039
1039
  video: { alt: t.video },
1040
1040
  countdown: {
@@ -1047,7 +1047,7 @@ function Si(e) {
1047
1047
  };
1048
1048
  }
1049
1049
  // src/utils/collectColorFieldIssues.ts
1050
- function Ci(e, t) {
1050
+ function wi(e, t) {
1051
1051
  let n = [], r = (r, i) => {
1052
1052
  let a = _t(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1053
1053
  if (a.invalidPresets.length > 0 && n.push({
@@ -1060,8 +1060,8 @@ function Ci(e, t) {
1060
1060
  id: s("allow-custom-ignored"),
1061
1061
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
1062
1062
  }), !a.allowCustom && a.presets.length > 0) {
1063
- let e = r.default ?? "", t = new Set(a.presets.map((e) => ir(e)));
1064
- e !== "" && !t.has(ir(e)) && n.push({
1063
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => ar(e)));
1064
+ e !== "" && !t.has(ar(e)) && n.push({
1065
1065
  id: s("off-palette-default"),
1066
1066
  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.`
1067
1067
  });
@@ -1072,7 +1072,7 @@ function Ci(e, t) {
1072
1072
  return n;
1073
1073
  }
1074
1074
  // src/utils/keyboardShortcuts.ts
1075
- function wi(e) {
1075
+ function Ti(e) {
1076
1076
  for (let t of e.composedPath()) {
1077
1077
  if (!(t instanceof HTMLElement)) continue;
1078
1078
  if (t.isContentEditable) return !0;
@@ -1081,14 +1081,14 @@ function wi(e) {
1081
1081
  }
1082
1082
  return !1;
1083
1083
  }
1084
- function Ti(e, t) {
1084
+ function Ei(e, t) {
1085
1085
  let n = e.metaKey || e.ctrlKey;
1086
1086
  if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
1087
1087
  else if (n && e.key.toLowerCase() === "z") {
1088
- if (wi(e)) return;
1088
+ if (Ti(e)) return;
1089
1089
  e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
1090
1090
  } else {
1091
- if (t.isPicking?.() && !wi(e)) {
1091
+ if (t.isPicking?.() && !Ti(e)) {
1092
1092
  if (e.key === "Escape") {
1093
1093
  e.preventDefault(), t.onCancelPick?.();
1094
1094
  return;
@@ -1102,123 +1102,139 @@ function Ti(e, t) {
1102
1102
  return;
1103
1103
  }
1104
1104
  }
1105
- e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !wi(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1105
+ e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Ti(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1106
1106
  }
1107
1107
  }
1108
1108
  // src/utils/blockComponentResolver.ts
1109
- function Ei(e, t) {
1109
+ function Di(e, t) {
1110
1110
  let n = { fontFamily: t(e.fontFamily) };
1111
1111
  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;
1112
1112
  }
1113
- function Di(e, t, n) {
1113
+ function Oi(e, t, n) {
1114
1114
  if (t) {
1115
1115
  let n = t.getComponent(e);
1116
1116
  if (n) return n;
1117
1117
  }
1118
1118
  return n[e.type] ?? null;
1119
1119
  }
1120
- var Oi = "--tpl-block-bg-layer", ki = "tpl-has-bg-image";
1121
- function Ai(e, t) {
1120
+ var ki = "--tpl-block-bg-layer", Ai = "--tpl-email-frame-width", ji = "tpl-has-bg-image";
1121
+ function Mi(e, t) {
1122
1122
  if (t === null) return {};
1123
- let n = Pe(e);
1123
+ let n = De(e);
1124
1124
  if (n === null) return {};
1125
- let r = t?.trim(), i = r ? Ve(r) : n.url;
1125
+ let r = t?.trim(), i = r ? Pe(r) : n.url;
1126
1126
  return {
1127
1127
  backgroundImage: `url("${i}")`,
1128
1128
  backgroundSize: n.size,
1129
1129
  backgroundPosition: n.position,
1130
1130
  backgroundRepeat: n.repeat,
1131
- [Oi]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1131
+ [ki]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1132
1132
  };
1133
1133
  }
1134
- function ji(e) {
1135
- return e && Oi in e ? ki : void 0;
1134
+ function Ni(e) {
1135
+ return e && ki in e ? ji : void 0;
1136
1136
  }
1137
- var Mi = {
1137
+ var Pi = {
1138
1138
  top: "flex-start",
1139
1139
  middle: "center",
1140
1140
  bottom: "flex-end"
1141
1141
  };
1142
- function Ni(e, t) {
1143
- let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Pi(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
1142
+ function Fi(e, t) {
1143
+ let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Ii(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
1144
1144
  return {
1145
1145
  display: "flex",
1146
1146
  flexDirection: "column",
1147
- justifyContent: Mi[e.verticalAlign],
1147
+ justifyContent: Pi[e.verticalAlign],
1148
1148
  boxSizing: "border-box",
1149
1149
  ...n
1150
1150
  };
1151
1151
  }
1152
- function Pi(e, t) {
1152
+ function Ii(e, t) {
1153
1153
  return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
1154
1154
  }
1155
- function Fi(e, t = {}) {
1155
+ function Li(e, t = {}) {
1156
1156
  if (e.type === "wrapper") return {};
1157
1157
  let { padding: n, backgroundColor: r } = e.styles, i = {
1158
1158
  padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
1159
1159
  backgroundColor: r || "transparent"
1160
1160
  };
1161
- if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Xe.paragraphGap : Xe.paragraphGap}px`), e.type === "section") {
1162
- let n = de(e.borderRadius);
1161
+ if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? tt.paragraphGap : tt.paragraphGap}px`), e.type === "section") {
1162
+ let n = K(e.borderRadius);
1163
1163
  n !== null && (i.borderRadius = n);
1164
- let r = Ne(e);
1165
- r?.applied && e.backgroundImage ? (Object.assign(i, Ni(r, t.heroBoxWidth)), Object.assign(i, Ai({
1164
+ let r = Je(e);
1165
+ r?.applied && e.backgroundImage ? (Object.assign(i, Fi(r, t.heroBoxWidth)), Object.assign(i, Mi({
1166
1166
  ...e.backgroundImage,
1167
1167
  size: "cover",
1168
1168
  repeat: !1
1169
- }, t.backgroundImageUrl))) : (Object.assign(i, Li(e.border)), Object.assign(i, Ai(e.backgroundImage, t.backgroundImageUrl)));
1169
+ }, t.backgroundImageUrl))) : (Object.assign(i, zi(e.border)), Object.assign(i, Mi(e.backgroundImage, t.backgroundImageUrl)));
1170
1170
  }
1171
1171
  return i;
1172
1172
  }
1173
- function Ii(e, t, n, r) {
1174
- return e.type === "section" ? Fi(e, {
1173
+ function Ri(e, t, n, r) {
1174
+ return e.type === "section" ? Li(e, {
1175
1175
  backgroundImageUrl: rt(t, e.backgroundImage, n),
1176
1176
  heroBoxWidth: r
1177
- }) : Fi(e);
1177
+ }) : Li(e);
1178
1178
  }
1179
- function Li(e) {
1179
+ function zi(e) {
1180
1180
  let t = {};
1181
- for (let [n, r] of Object.entries($e(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
1181
+ for (let [n, r] of Object.entries(de(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
1182
1182
  return t;
1183
1183
  }
1184
- function Ri(e, t = {}) {
1184
+ var Bi = {
1185
+ width: "100cqw",
1186
+ maxWidth: "none",
1187
+ marginInline: "calc(50% - 50cqw)",
1188
+ boxSizing: "border-box"
1189
+ };
1190
+ function Vi(e) {
1191
+ return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
1192
+ }
1193
+ function Hi(e) {
1194
+ let t = {
1195
+ width: "var(--tpl-email-frame-width)",
1196
+ maxWidth: "100%",
1197
+ marginInline: "auto",
1198
+ boxSizing: "border-box"
1199
+ };
1200
+ return e && (t.padding = Vi(e)), t;
1201
+ }
1202
+ function Ui(e, t = {}) {
1185
1203
  if (e.type !== "section" || !e.wrapper) return null;
1186
1204
  let n = e.wrapper, r = {};
1187
- 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`);
1188
- let i = de(n.borderRadius);
1189
- return i !== null && (r.borderRadius = i), Object.assign(r, Ai(n.backgroundImage, t.backgroundImageUrl)), r;
1205
+ if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding = Vi(n.padding)), !n.fullWidth) {
1206
+ let e = K(n.borderRadius);
1207
+ e !== null && (r.borderRadius = e);
1208
+ }
1209
+ return Object.assign(r, Mi(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, Bi), r;
1190
1210
  }
1191
- function zi(e, t = {}) {
1211
+ function Wi(e, t = {}) {
1192
1212
  if (e.type !== "wrapper") return null;
1193
1213
  let n = {};
1194
- if (e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding) {
1195
- let t = e.styles.padding;
1196
- n.padding = `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`;
1197
- }
1198
- return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Ai(e.backgroundImage, t.backgroundImageUrl)), n;
1214
+ return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding = Vi(e.styles.padding)), !e.fullWidth && e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Mi(e.backgroundImage, t.backgroundImageUrl)), e.fullWidth && Object.assign(n, Bi), n;
1199
1215
  }
1200
1216
  // src/utils/mergeTagLabelSegments.ts
1201
- function Bi(e, t, n, r = !1) {
1217
+ function Gi(e, t, n, r = !1) {
1202
1218
  if (!e) return [];
1203
1219
  let i = [], a = 0;
1204
- for (let o of qe(e, n)) {
1220
+ for (let o of Ie(e, n)) {
1205
1221
  o.index > a && i.push({
1206
1222
  type: "text",
1207
1223
  value: e.slice(a, o.index)
1208
1224
  });
1209
1225
  let s = o.value;
1210
- if (ve(s, n)) {
1211
- let e = r ? Y(s, t) : void 0;
1226
+ if (ce(s, n)) {
1227
+ let e = r ? Be(s, t) : void 0;
1212
1228
  i.push(e === void 0 ? {
1213
1229
  type: "tag",
1214
- value: J(s, t)
1230
+ value: re(s, t)
1215
1231
  } : {
1216
1232
  type: "text",
1217
1233
  value: e
1218
1234
  });
1219
- } else he(s, n) ? i.push({
1235
+ } else ge(s, n) ? i.push({
1220
1236
  type: "tag",
1221
- value: me(s, n)
1237
+ value: J(s, n)
1222
1238
  }) : i.push({
1223
1239
  type: "text",
1224
1240
  value: s
@@ -1231,27 +1247,27 @@ function Bi(e, t, n, r = !1) {
1231
1247
  }), i;
1232
1248
  }
1233
1249
  // src/components/MergeTagPreviewText.vue
1234
- var Vi = n({
1250
+ var Ki = n({
1235
1251
  name: "MergeTagPreviewText",
1236
1252
  props: { text: {
1237
1253
  type: String,
1238
1254
  required: !0
1239
1255
  } },
1240
1256
  setup(e) {
1241
- let t = f(rn, un), n = f(Wt, ne.liquid), i = f(hn, null), a = N(() => Bi(e.text, t.value, n, i?.value ?? !1));
1257
+ let t = f(rn, ln), n = f(Wt, te.liquid), i = f(kn, null), a = N(() => Gi(e.text, t.value, n, i?.value ?? !1));
1242
1258
  return () => a.value.map((e, t) => e.type === "tag" ? r("span", {
1243
1259
  key: t,
1244
1260
  class: "tpl-merge-tag-label"
1245
1261
  }, e.value) : e.value);
1246
1262
  }
1247
- }), Hi = ["href"], Ui = /* @__PURE__ */ n({
1263
+ }), qi = ["href"], Ji = /* @__PURE__ */ n({
1248
1264
  __name: "ButtonBlock",
1249
1265
  props: {
1250
1266
  block: {},
1251
1267
  viewport: {}
1252
1268
  },
1253
1269
  setup(e) {
1254
- let t = e, n = kn(gn, "ButtonBlock");
1270
+ let t = e, n = Fn(gn, "ButtonBlock");
1255
1271
  function r(e) {
1256
1272
  return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
1257
1273
  }
@@ -1264,30 +1280,30 @@ var Vi = n({
1264
1280
  fontSize: `${t.block.fontSize}px`,
1265
1281
  fontWeight: r(t.block.fontWeight),
1266
1282
  textDecoration: "none",
1267
- borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : de(t.block.borderRadius) ?? "0px",
1283
+ borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : K(t.block.borderRadius) ?? "0px",
1268
1284
  textAlign: "center"
1269
1285
  };
1270
- return Object.assign(e, Li(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;
1286
+ return Object.assign(e, zi(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;
1271
1287
  }), o = N(() => ({ textAlign: t.block.align ?? "center" }));
1272
1288
  return (t, n) => (i(), b("div", { style: P(o.value) }, [A("a", {
1273
1289
  href: e.block.url || "#",
1274
1290
  style: P(a.value),
1275
1291
  class: "tpl:cursor-default",
1276
1292
  onClick: n[0] ||= k(() => {}, ["prevent"])
1277
- }, [V(Vi, { text: e.block.text }, null, 8, ["text"])], 12, Hi)], 4));
1293
+ }, [V(Ki, { text: e.block.text }, null, 8, ["text"])], 12, qi)], 4));
1278
1294
  }
1279
- }), Wi = ["innerHTML"], Gi = [
1295
+ }), Yi = ["innerHTML"], Xi = [
1280
1296
  "src",
1281
1297
  "width",
1282
1298
  "height"
1283
- ], Ki = /* @__PURE__ */ n({
1299
+ ], Zi = /* @__PURE__ */ n({
1284
1300
  __name: "CustomBlockIcon",
1285
1301
  props: {
1286
1302
  icon: {},
1287
1303
  size: {}
1288
1304
  },
1289
1305
  setup(e) {
1290
- let t = e, n = N(() => t.size ?? 20), r = N(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), a = N(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), o = N(() => r.value ? pr(t.icon ?? "") : "");
1306
+ let t = e, n = N(() => t.size ?? 20), r = N(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), a = N(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), o = N(() => r.value ? mr(t.icon ?? "") : "");
1291
1307
  return (t, s) => r.value ? (i(), b("span", {
1292
1308
  key: 0,
1293
1309
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
@@ -1296,33 +1312,33 @@ var Vi = n({
1296
1312
  height: `${n.value}px`
1297
1313
  }),
1298
1314
  innerHTML: o.value
1299
- }, null, 12, Wi)) : a.value ? (i(), b("img", {
1315
+ }, null, 12, Yi)) : a.value ? (i(), b("img", {
1300
1316
  key: 1,
1301
1317
  src: e.icon,
1302
1318
  width: n.value,
1303
1319
  height: n.value,
1304
1320
  class: "tpl:inline-block",
1305
1321
  alt: ""
1306
- }, null, 8, Gi)) : (i(), D(C(kt), {
1322
+ }, null, 8, Xi)) : (i(), D(C(kt), {
1307
1323
  key: 2,
1308
1324
  size: n.value,
1309
1325
  "stroke-width": 1.5
1310
1326
  }, null, 8, ["size"]));
1311
1327
  }
1312
- }), qi = { class: "tpl:w-full" }, Ji = {
1328
+ }), Qi = { class: "tpl:w-full" }, $i = {
1313
1329
  key: 0,
1314
1330
  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)]"
1315
- }, Yi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Xi = {
1331
+ }, ea = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ta = {
1316
1332
  key: 1,
1317
1333
  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)]"
1318
- }, Zi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Qi = {
1334
+ }, na = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ra = {
1319
1335
  key: 2,
1320
1336
  class: "tpl:relative"
1321
- }, $i = ["innerHTML"], ea = {
1337
+ }, ia = ["innerHTML"], aa = {
1322
1338
  key: 0,
1323
1339
  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]",
1324
1340
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1325
- }, ta = /* @__PURE__ */ n({
1341
+ }, oa = /* @__PURE__ */ n({
1326
1342
  __name: "CustomBlock",
1327
1343
  props: {
1328
1344
  block: {},
@@ -1330,7 +1346,7 @@ var Vi = n({
1330
1346
  },
1331
1347
  emits: ["fetchData"],
1332
1348
  setup(e, { emit: t }) {
1333
- let n = e, r = t, { t: a } = Q(), s = f(En, null), c = z(""), l = N(() => mr(c.value)), u = z(!1), p = N(() => s?.getDefinition(n.block.customType)), m = N(() => !!p.value), h = N(() => n.block), { isFetching: g, fetch: _, needsFetch: v, hasDataSource: y } = it({
1349
+ let n = e, r = t, { t: a } = Q(), s = f(En, null), c = z(""), l = N(() => hr(c.value)), u = z(!1), p = N(() => s?.getDefinition(n.block.customType)), m = N(() => !!p.value), h = N(() => n.block), { isFetching: g, fetch: _, needsFetch: v, hasDataSource: y } = it({
1334
1350
  definition: p,
1335
1351
  block: h,
1336
1352
  onUpdate: (e, t) => {
@@ -1339,10 +1355,10 @@ var Vi = n({
1339
1355
  dataSourceFetched: t
1340
1356
  });
1341
1357
  }
1342
- }), S = f(rn, un), w = f(hn, null), T = N(() => {
1358
+ }), S = f(rn, ln), w = f(kn, null), T = N(() => {
1343
1359
  if (!w?.value) return n.block;
1344
1360
  let e = {};
1345
- for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? je(r, S.value) : r;
1361
+ for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? ye(r, S.value) : r;
1346
1362
  return {
1347
1363
  ...n.block,
1348
1364
  fieldValues: e
@@ -1359,17 +1375,17 @@ var Vi = n({
1359
1375
  }
1360
1376
  }
1361
1377
  }
1362
- let M = Yn(O, 150);
1378
+ let M = Xn(O, 150);
1363
1379
  return d(() => {
1364
1380
  O();
1365
1381
  }), o(() => n.block.fieldValues, () => {
1366
1382
  M();
1367
1383
  }, { deep: !0 }), o(() => w?.value, () => {
1368
1384
  M();
1369
- }), (e, t) => (i(), b("div", qi, [m.value ? u.value ? (i(), b("div", Xi, [V(C(Pt), {
1385
+ }), (e, t) => (i(), b("div", Qi, [m.value ? u.value ? (i(), b("div", ta, [V(C(Pt), {
1370
1386
  size: 24,
1371
1387
  class: "tpl:text-[var(--tpl-danger)]"
1372
- }), A("span", Zi, j(C(a).customBlocks.renderError), 1)])) : (i(), b("div", Qi, [A("div", { innerHTML: l.value }, null, 8, $i), C(y) && C(v) ? (i(), b("div", ea, [C(g) ? (i(), D(hr, {
1388
+ }), A("span", na, j(C(a).customBlocks.renderError), 1)])) : (i(), b("div", ra, [A("div", { innerHTML: l.value }, null, 8, ia), C(y) && C(v) ? (i(), b("div", aa, [C(g) ? (i(), D(gr, {
1373
1389
  key: 1,
1374
1390
  class: "tpl:w-48"
1375
1391
  })) : (i(), b("button", {
@@ -1377,16 +1393,16 @@ var Vi = n({
1377
1393
  type: "button",
1378
1394
  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)]",
1379
1395
  onClick: t[0] ||= k((...e) => C(_) && C(_)(...e), ["stop"])
1380
- }, [p.value?.icon ? (i(), D(Ki, {
1396
+ }, [p.value?.icon ? (i(), D(Zi, {
1381
1397
  key: 0,
1382
1398
  icon: p.value.icon,
1383
1399
  size: 16
1384
- }, null, 8, ["icon"])) : E("", !0), x(" " + j(p.value?.dataSource?.label || C(a).customBlocks.dataSource.fetchButton), 1)]))])) : E("", !0)])) : (i(), b("div", Ji, [V(C(At), {
1400
+ }, null, 8, ["icon"])) : E("", !0), x(" " + j(p.value?.dataSource?.label || C(a).customBlocks.dataSource.fetchButton), 1)]))])) : E("", !0)])) : (i(), b("div", $i, [V(C(At), {
1385
1401
  size: 24,
1386
1402
  class: "tpl:text-[var(--tpl-warning)]"
1387
- }), A("span", Yi, j(C(a).customBlocks.definitionNotFound), 1)]))]));
1403
+ }), A("span", ea, j(C(a).customBlocks.definitionNotFound), 1)]))]));
1388
1404
  }
1389
- }), na = { class: "tpl:w-full" }, ra = /* @__PURE__ */ n({
1405
+ }), sa = { class: "tpl:w-full" }, ca = /* @__PURE__ */ n({
1390
1406
  __name: "DividerBlock",
1391
1407
  props: {
1392
1408
  block: {},
@@ -1398,28 +1414,28 @@ var Vi = n({
1398
1414
  width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
1399
1415
  margin: t.block.width === "full" ? "0" : "0 auto"
1400
1416
  }));
1401
- return (e, t) => (i(), b("div", na, [A("hr", {
1417
+ return (e, t) => (i(), b("div", sa, [A("hr", {
1402
1418
  class: "tpl:m-0 tpl:border-none",
1403
1419
  style: P(n.value)
1404
1420
  }, null, 4)]));
1405
1421
  }
1406
- }), ia = { class: "tpl:w-full" }, aa = ["srcdoc", "title"], oa = {
1422
+ }), la = { class: "tpl:w-full" }, ua = ["srcdoc", "title"], da = {
1407
1423
  key: 1,
1408
1424
  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)]"
1409
- }, sa = {
1425
+ }, fa = {
1410
1426
  key: 0,
1411
1427
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1412
- }, ca = {
1428
+ }, pa = {
1413
1429
  key: 1,
1414
1430
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1415
- }, la = /* @__PURE__ */ n({
1431
+ }, ma = /* @__PURE__ */ n({
1416
1432
  __name: "HtmlBlock",
1417
1433
  props: {
1418
1434
  block: {},
1419
1435
  viewport: {}
1420
1436
  },
1421
1437
  setup(e) {
1422
- let t = e, { t: n } = Q(), r = f(sn, !1), a = N(() => t.block.content.trim().length > 0), s = N(() => r && a.value), c = f(rn, un), l = f(hn, null), d = N(() => l?.value ? je(t.block.content, c.value) : t.block.content), p = z(null), m = z(60), h = null;
1438
+ let t = e, { t: n } = Q(), r = f(on, !1), a = N(() => t.block.content.trim().length > 0), s = N(() => r && a.value), c = f(rn, ln), l = f(kn, null), d = N(() => l?.value ? ye(t.block.content, c.value) : t.block.content), p = z(null), m = z(60), h = null;
1423
1439
  function g() {
1424
1440
  let e = p.value?.contentDocument;
1425
1441
  e && (m.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -1433,7 +1449,7 @@ var Vi = n({
1433
1449
  e || (h?.disconnect(), h = null);
1434
1450
  }), u(() => {
1435
1451
  h?.disconnect(), h = null;
1436
- }), (e, t) => (i(), b("div", ia, [s.value ? (i(), b("iframe", {
1452
+ }), (e, t) => (i(), b("div", la, [s.value ? (i(), b("iframe", {
1437
1453
  key: 0,
1438
1454
  ref_key: "iframeRef",
1439
1455
  ref: p,
@@ -1443,18 +1459,18 @@ var Vi = n({
1443
1459
  class: "tpl:block tpl:w-full tpl:border-0",
1444
1460
  style: P({ height: `${m.value}px` }),
1445
1461
  onLoad: _
1446
- }, null, 44, aa)) : (i(), b("div", oa, [V(C(Tt), {
1462
+ }, null, 44, ua)) : (i(), b("div", da, [V(C(Tt), {
1447
1463
  size: 24,
1448
1464
  class: "tpl:text-[var(--tpl-text-dim)]"
1449
- }), a.value ? (i(), b("span", sa, j(C(n).html.preview), 1)) : (i(), b("span", ca, j(C(n).html.empty), 1))]))]));
1465
+ }), a.value ? (i(), b("span", fa, j(C(n).html.preview), 1)) : (i(), b("span", pa, j(C(n).html.empty), 1))]))]));
1450
1466
  }
1451
- }), ua = ["data-drop-enabled"], da = ["href"], fa = ["src", "alt"], pa = ["src", "alt"], ma = {
1467
+ }), ha = ["data-drop-enabled"], ga = ["href"], _a = ["src", "alt"], va = ["src", "alt"], ya = {
1452
1468
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1453
1469
  style: { opacity: "0.7" }
1454
- }, ha = ["href"], ga = ["src", "alt"], _a = ["src", "alt"], va = {
1470
+ }, ba = ["href"], xa = ["src", "alt"], Sa = ["src", "alt"], Ca = {
1455
1471
  key: 4,
1456
1472
  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)]"
1457
- }, ya = ["aria-label"], ba = { key: 1 }, xa = /* @__PURE__ */ n({
1473
+ }, wa = ["aria-label"], Ta = { key: 1 }, Ea = /* @__PURE__ */ n({
1458
1474
  __name: "ImageBlock",
1459
1475
  props: {
1460
1476
  block: {},
@@ -1462,7 +1478,7 @@ var Vi = n({
1462
1478
  },
1463
1479
  emits: ["update"],
1464
1480
  setup(e, { emit: t }) {
1465
- let n = e, r = t, { t: a } = Q(), { syntax: o } = rr(), s = N(() => pe(n.block.src, o));
1481
+ let n = e, r = t, { t: a } = Q(), { syntax: o } = ir(), s = N(() => pe(n.block.src, o));
1466
1482
  function c(e) {
1467
1483
  let t = {
1468
1484
  src: e.url,
@@ -1475,7 +1491,7 @@ var Vi = n({
1475
1491
  blocked: s,
1476
1492
  apply: c
1477
1493
  }), h = N(() => ({ textAlign: n.block.align })), g = N(() => {
1478
- let e = n.block.border, t = ["left", "right"].map((t) => Te(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1494
+ let e = n.block.border, t = ["left", "right"].map((t) => $e(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1479
1495
  return t > 0 ? `calc(100% - ${t}px)` : "100%";
1480
1496
  }), _ = N(() => {
1481
1497
  let e = n.block.align;
@@ -1483,8 +1499,8 @@ var Vi = n({
1483
1499
  maxWidth: "100%",
1484
1500
  width: n.block.width === "full" ? g.value : `${n.block.width}px`,
1485
1501
  height: n.block.height ? `${n.block.height}px` : void 0,
1486
- borderRadius: de(n.block.borderRadius) ?? void 0,
1487
- ...Li(n.block.border),
1502
+ borderRadius: K(n.block.borderRadius) ?? void 0,
1503
+ ...zi(n.block.border),
1488
1504
  display: "block",
1489
1505
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1490
1506
  marginRight: e === "center" ? "auto" : void 0
@@ -1513,13 +1529,13 @@ var Vi = n({
1513
1529
  src: C(y),
1514
1530
  alt: e.block.alt || C(a).image.altTextPlaceholder,
1515
1531
  style: P(_.value)
1516
- }, null, 12, fa)], 8, da)) : (i(), b("img", {
1532
+ }, null, 12, _a)], 8, ga)) : (i(), b("img", {
1517
1533
  key: 1,
1518
1534
  class: "tpl:border-0",
1519
1535
  src: C(y),
1520
1536
  alt: e.block.alt,
1521
1537
  style: P(_.value)
1522
- }, null, 12, pa))], 64)) : e.block.src && s.value ? (i(), b("div", {
1538
+ }, null, 12, va))], 64)) : e.block.src && s.value ? (i(), b("div", {
1523
1539
  key: 2,
1524
1540
  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)]",
1525
1541
  style: P([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, _.value])
@@ -1528,7 +1544,7 @@ var Vi = n({
1528
1544
  "stroke-width": 1.5,
1529
1545
  class: "tpl:text-[var(--tpl-primary)]",
1530
1546
  style: { opacity: "0.5" }
1531
- }), A("span", ma, [V(Vi, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (i(), b(B, { key: 3 }, [e.block.linkUrl ? (i(), b("a", {
1547
+ }), A("span", ya, [V(Ki, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (i(), b(B, { key: 3 }, [e.block.linkUrl ? (i(), b("a", {
1532
1548
  key: 0,
1533
1549
  href: e.block.linkUrl,
1534
1550
  target: "_blank",
@@ -1540,13 +1556,13 @@ var Vi = n({
1540
1556
  src: C(v),
1541
1557
  alt: e.block.alt || C(a).image.altTextPlaceholder,
1542
1558
  style: P(_.value)
1543
- }, null, 12, ga)], 8, ha)) : (i(), b("img", {
1559
+ }, null, 12, xa)], 8, ba)) : (i(), b("img", {
1544
1560
  key: 1,
1545
1561
  class: "tpl:border-0",
1546
1562
  src: C(v),
1547
1563
  alt: e.block.alt,
1548
1564
  style: P(_.value)
1549
- }, null, 12, _a))], 64)) : (i(), b("div", va, [C(u) ? (i(), b("button", {
1565
+ }, null, 12, Sa))], 64)) : (i(), b("div", Ca, [C(u) ? (i(), b("button", {
1550
1566
  key: 0,
1551
1567
  "aria-label": C(a).image.browseMedia,
1552
1568
  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)]",
@@ -1554,19 +1570,19 @@ var Vi = n({
1554
1570
  }, [V(C(Nt), {
1555
1571
  size: 14,
1556
1572
  "stroke-width": 1.5
1557
- }), x(" " + j(C(a).image.browseMedia), 1)], 8, ya)) : (i(), b("span", ba, j(C(a).image.clickToAdd), 1))]))], 12, ua));
1573
+ }), x(" " + j(C(a).image.browseMedia), 1)], 8, wa)) : (i(), b("span", Ta, j(C(a).image.clickToAdd), 1))]))], 12, ha));
1558
1574
  }
1559
- }), Sa = { class: "tpl:w-full" }, Ca = ["href"], wa = {
1575
+ }), Da = { class: "tpl:w-full" }, Oa = ["href"], ka = {
1560
1576
  key: 1,
1561
1577
  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)]"
1562
- }, Ta = /* @__PURE__ */ n({
1578
+ }, Aa = /* @__PURE__ */ n({
1563
1579
  __name: "MenuBlock",
1564
1580
  props: {
1565
1581
  block: {},
1566
1582
  viewport: {}
1567
1583
  },
1568
1584
  setup(e) {
1569
- let t = e, { t: n } = Q(), r = kn(gn, "MenuBlock"), a = N(() => ({
1585
+ let t = e, { t: n } = Q(), r = Fn(gn, "MenuBlock"), a = N(() => ({
1570
1586
  display: "flex",
1571
1587
  flexWrap: "wrap",
1572
1588
  gap: `0 ${t.block.spacing}px`,
@@ -1578,7 +1594,7 @@ var Vi = n({
1578
1594
  function s(e) {
1579
1595
  return e || t.block.linkColor || t.block.color;
1580
1596
  }
1581
- return (t, r) => (i(), b("div", Sa, [o.value ? (i(), b("div", {
1597
+ return (t, r) => (i(), b("div", Da, [o.value ? (i(), b("div", {
1582
1598
  key: 0,
1583
1599
  style: P(a.value)
1584
1600
  }, [(i(!0), b(B, null, l(e.block.items, (t, n) => (i(), b(B, { key: t.id }, [A("a", {
@@ -1590,18 +1606,18 @@ var Vi = n({
1590
1606
  textDecoration: t.underline ? "underline" : "none"
1591
1607
  }),
1592
1608
  onClick: r[0] ||= k(() => {}, ["prevent"])
1593
- }, [V(Vi, { text: t.text || "..." }, null, 8, ["text"])], 12, Ca), n < e.block.items.length - 1 ? (i(), b("span", {
1609
+ }, [V(Ki, { text: t.text || "..." }, null, 8, ["text"])], 12, Oa), n < e.block.items.length - 1 ? (i(), b("span", {
1594
1610
  key: 0,
1595
1611
  style: P({
1596
1612
  color: e.block.separatorColor,
1597
1613
  padding: `0 ${e.block.spacing}px`
1598
1614
  })
1599
- }, j(e.block.separator), 5)) : E("", !0)], 64))), 128))], 4)) : (i(), b("div", wa, [V(C(Mt), { size: 16 }), A("span", null, j(C(n).menu.addLinks), 1)]))]));
1615
+ }, j(e.block.separator), 5)) : E("", !0)], 64))), 128))], 4)) : (i(), b("div", ka, [V(C(Mt), { size: 16 }), A("span", null, j(C(n).menu.addLinks), 1)]))]));
1600
1616
  }
1601
1617
  });
1602
1618
  // src/composables/useEditableTextBlock.ts
1603
- function Ea(e) {
1604
- let t = f(rn, un), n = f(hn, null), { syntax: r } = rr(), i = N(() => n?.value ? Ue(e(), t.value) : H(e(), t.value)), a = N(() => Se(mr(Z(i.value, r)))), o = z(!1), s = z(null), { top: c, left: l } = er(s), { toLocal: u } = lr(), d = N(() => u({
1619
+ function ja(e) {
1620
+ let t = f(rn, ln), n = f(kn, null), { syntax: r } = ir(), i = N(() => n?.value ? Ae(e(), t.value) : Ee(e(), t.value)), a = N(() => ve(hr(H(i.value, r)))), o = z(!1), s = z(null), { top: c, left: l } = tr(s), { toLocal: u } = ur(), d = N(() => u({
1605
1621
  top: c.value - 8,
1606
1622
  left: l.value
1607
1623
  }));
@@ -1621,14 +1637,14 @@ function Ea(e) {
1621
1637
  };
1622
1638
  }
1623
1639
  // src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1624
- var Da = ["innerHTML"], Oa = /* @__PURE__ */ n({
1640
+ var Ma = ["innerHTML"], Na = /* @__PURE__ */ n({
1625
1641
  __name: "ParagraphBlock",
1626
1642
  props: {
1627
1643
  block: {},
1628
1644
  viewport: {}
1629
1645
  },
1630
1646
  setup(e) {
1631
- let t = e, n = g(() => import("./ParagraphEditor-Cal9hY3U.js").then((e) => e.t)), { isEditing: r, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = Ea(() => t.block.content);
1647
+ let t = e, n = g(() => import("./ParagraphEditor-I9lbKaPk.js").then((e) => e.t)), { isEditing: r, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = ja(() => t.block.content);
1632
1648
  return (t, u) => (i(), b("div", {
1633
1649
  ref_key: "blockRef",
1634
1650
  ref: a,
@@ -1647,11 +1663,11 @@ var Da = ["innerHTML"], Oa = /* @__PURE__ */ n({
1647
1663
  key: 1,
1648
1664
  class: "tpl-text-content tpl:outline-none",
1649
1665
  innerHTML: C(s)
1650
- }, null, 8, Da))], 544));
1666
+ }, null, 8, Ma))], 544));
1651
1667
  }
1652
1668
  });
1653
1669
  // src/utils/updateBlockList.ts
1654
- function ka(e, t, n, r = 0, i) {
1670
+ function Pa(e, t, n, r = 0, i) {
1655
1671
  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);
1656
1672
  if (o.some((e) => !s.includes(e.id))) return;
1657
1673
  let c = t.filter((e) => !o.some((t) => t.id === e.id)), l, u = -1;
@@ -1664,19 +1680,19 @@ function ka(e, t, n, r = 0, i) {
1664
1680
  l && (e.findBlockLocation(l.id) ? e.moveBlock(l.id, u, n, r) : e.addBlock(JSON.parse(JSON.stringify(l)), n, r, u));
1665
1681
  }
1666
1682
  // src/utils/mergeTagTokens.ts
1667
- function Aa(e, t, n) {
1683
+ function Fa(e, t, n) {
1668
1684
  let r = [], i = "\0MT";
1669
1685
  for (; e.includes(i);) i += "_";
1670
- let a = n === "html" ? ze(e, (e) => {
1686
+ let a = n === "html" ? We(e, (e) => {
1671
1687
  let t = r.push(e) - 1;
1672
1688
  return `${i}${t}\u0000`;
1673
1689
  }) : e, o = Array.from(a.matchAll(RegExp(`${i}\\d+\u0000`, "g")), (e) => ({
1674
1690
  start: e.index,
1675
1691
  end: e.index + e[0].length
1676
- })), s = [], c = Le(a, t, "logic"), l = [], u = 0;
1692
+ })), s = [], c = He(a, t, "logic"), l = [], u = 0;
1677
1693
  for (let e of ["logic", "value"]) {
1678
1694
  let r = 0;
1679
- for (let i of e === "logic" ? c : Le(a, t, "value")) {
1695
+ for (let i of e === "logic" ? c : He(a, t, "value")) {
1680
1696
  let t = i.index, a = t + i.value.length;
1681
1697
  for (; o[r]?.end <= t;) r++;
1682
1698
  let c = o[r];
@@ -1692,51 +1708,51 @@ function Aa(e, t, n) {
1692
1708
  }), s.push({
1693
1709
  start: t,
1694
1710
  end: a,
1695
- value: n === "html" ? Ge(i.value) : i.value
1711
+ value: n === "html" ? Ce(i.value) : i.value
1696
1712
  });
1697
1713
  }
1698
1714
  }
1699
1715
  }
1700
1716
  return [...r, ...s.map((e) => e.value)].sort();
1701
1717
  }
1702
- function ja(e, t, n, r) {
1703
- return JSON.stringify(Aa(e, n, r)) !== JSON.stringify(Aa(t, n, r));
1718
+ function Ia(e, t, n, r) {
1719
+ return JSON.stringify(Fa(e, n, r)) !== JSON.stringify(Fa(t, n, r));
1704
1720
  }
1705
1721
  // src/components/localization/LocaleStatusChip.vue?vue&type=script&setup=true&lang.ts
1706
- var Ma = [
1722
+ var La = [
1707
1723
  "data-state",
1708
1724
  "aria-label",
1709
1725
  "title",
1710
1726
  "aria-expanded",
1711
1727
  "aria-controls",
1712
1728
  "onKeydown"
1713
- ], Na = [
1729
+ ], Ra = [
1714
1730
  "aria-label",
1715
1731
  "aria-labelledby",
1716
1732
  "aria-describedby",
1717
1733
  "onKeydown"
1718
- ], Pa = ["id"], Fa = ["id"], Ia = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, La = ["disabled"], Ra = {
1734
+ ], za = ["id"], Ba = ["id"], Va = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Ha = ["disabled"], Ua = {
1719
1735
  key: 0,
1720
1736
  class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:font-medium"
1721
- }, za = {
1737
+ }, Wa = {
1722
1738
  key: 1,
1723
1739
  class: "tpl:m-0"
1724
- }, Ba = { class: "tpl:m-0" }, Va = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, Ha = {
1740
+ }, Ga = { class: "tpl:m-0" }, Ka = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, qa = {
1725
1741
  key: 3,
1726
1742
  class: "tpl:m-0"
1727
- }, Ua = {
1743
+ }, Ja = {
1728
1744
  key: 4,
1729
1745
  class: "tpl:m-0"
1730
- }, Wa = {
1746
+ }, Ya = {
1731
1747
  key: 5,
1732
1748
  class: "tpl:m-0"
1733
- }, Ga = {
1749
+ }, Xa = {
1734
1750
  key: 6,
1735
1751
  class: "tpl:m-0 tpl:list-none tpl:p-0"
1736
- }, Ka = ["onClick"], qa = {
1752
+ }, Za = ["onClick"], Qa = {
1737
1753
  key: 7,
1738
1754
  class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:gap-1"
1739
- }, Ja = ["data-testid", "disabled"], Ya = /*#__PURE__*/ St(/* @__PURE__ */ n({
1755
+ }, $a = ["data-testid", "disabled"], eo = /*#__PURE__*/ St(/* @__PURE__ */ n({
1740
1756
  __name: "LocaleStatusChip",
1741
1757
  props: {
1742
1758
  blockId: {},
@@ -1756,24 +1772,24 @@ var Ma = [
1756
1772
  },
1757
1773
  emits: ["target"],
1758
1774
  setup(e, { emit: n }) {
1759
- let r = e, a = n, s = f(Ln, null), c = f(On, null), u = f(Kt, null), d = f(Nn, "en") ?? "en", { t: m, format: h } = Q(), g = nr(), _ = sr(), { toLocal: v } = lr(), y = z(null), x = z(null), M = z(!1), F = z(!1), I = z(null), L = z(null), R = null, V = z({
1775
+ let r = e, a = n, s = f(Rn, null), c = f(Nn, null), u = f(Kt, null), d = f(Cn, "en") ?? "en", { t: m, format: h } = Q(), g = rr(), _ = cr(), { toLocal: v } = ur(), y = z(null), x = z(null), M = z(!1), F = z(!1), I = z(null), L = z(null), R = null, V = z({
1760
1776
  top: 0,
1761
1777
  left: 0
1762
1778
  }), H = z({
1763
1779
  maxHeight: 0,
1764
1780
  maxWidth: 0
1765
- }), U = `tpl-locale-popover-${re()}`, W = N(() => Wn(s?.activeLocale?.value ?? "")), G = N(() => Wn(s?.content.value.settings.locale ?? "en"));
1766
- function ee(e, t) {
1781
+ }), U = `tpl-locale-popover-${ne()}`, W = N(() => Gn(s?.activeLocale?.value ?? "")), G = N(() => Gn(s?.content.value.settings.locale ?? "en"));
1782
+ function K(e, t) {
1767
1783
  switch (e) {
1768
1784
  case "tags-differ": return m.localization.tagsDiffer;
1769
1785
  case "hidden": return h(m.localization.hidden, { language: W.value });
1770
1786
  case "changed": return h(m.localization.changed, { language: W.value });
1771
- case "default-stale": return Un(m.localization.staleLanguages, t, d);
1772
- case "missing": return t === 1 ? m.localization.notTranslated : Un(m.localization.notTranslatedCount, t, d);
1773
- default: return t === 1 ? m.localization.outOfDate : Un(m.localization.staleCount, t, d);
1787
+ case "default-stale": return Wn(m.localization.staleLanguages, t, d);
1788
+ case "missing": return t === 1 ? m.localization.notTranslated : Wn(m.localization.notTranslatedCount, t, d);
1789
+ default: return t === 1 ? m.localization.outOfDate : Wn(m.localization.staleCount, t, d);
1774
1790
  }
1775
1791
  }
1776
- let K = N(() => ee(r.state, r.count)), q = N(() => r.popoverState ?? r.state), J = N(() => r.popoverCount ?? r.count), te = N(() => ee(q.value, J.value)), ne = N(() => r.state === "hidden" ? Dt : r.state === "changed" ? wt : r.state === "default-stale" ? Lt : r.state === "stale" ? Et : Pt), ie = N(() => q.value === "default-stale" || (q.value === "missing" || q.value === "stale") && J.value > 1), Y = N(() => r.editable && r.eligibleGaps && c?.isAvailable.value);
1792
+ let ee = N(() => K(r.state, r.count)), q = N(() => r.popoverState ?? r.state), J = N(() => r.popoverCount ?? r.count), te = N(() => K(q.value, J.value)), re = N(() => r.state === "hidden" ? Dt : r.state === "changed" ? wt : r.state === "default-stale" ? Lt : r.state === "stale" ? Et : Pt), ie = N(() => q.value === "default-stale" || (q.value === "missing" || q.value === "stale") && J.value > 1), Y = N(() => r.editable && r.eligibleGaps && c?.isAvailable.value);
1777
1793
  function X(e = !1) {
1778
1794
  M.value = !1, F.value = !1, R = null, e && y.value?.focus({ preventScroll: !0 });
1779
1795
  }
@@ -1870,19 +1886,19 @@ var Ma = [
1870
1886
  type: "button",
1871
1887
  "data-testid": "locale-chip",
1872
1888
  "data-state": e.state,
1873
- "aria-label": K.value,
1874
- title: K.value,
1889
+ "aria-label": ee.value,
1890
+ title: ee.value,
1875
1891
  "aria-expanded": M.value,
1876
1892
  "aria-controls": M.value ? U : void 0,
1877
1893
  "aria-haspopup": "dialog",
1878
1894
  class: "tpl-locale-chip tpl:flex tpl:size-5 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:p-0 tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:ring-1 tpl:ring-[var(--tpl-border)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:shadow-[var(--tpl-shadow-sm)] tpl:focus-visible:outline-none tpl:focus-visible:shadow-[var(--tpl-ring)] tpl:hover:focus-visible:shadow-[var(--tpl-ring),var(--tpl-shadow-sm)]",
1879
1895
  onClick: k(ae, ["stop"]),
1880
1896
  onKeydown: [S(k(ae, ["stop", "prevent"]), ["enter"]), S(k(ge, ["stop", "prevent"]), ["esc"])]
1881
- }, [(i(), D(t(ne.value), {
1897
+ }, [(i(), D(t(re.value), {
1882
1898
  size: 12,
1883
1899
  "stroke-width": 2,
1884
1900
  "aria-hidden": "true"
1885
- }))], 40, Ma), C(_) && M.value ? (i(), D(T, {
1901
+ }))], 40, La), C(_) && M.value ? (i(), D(T, {
1886
1902
  key: 0,
1887
1903
  to: C(_)
1888
1904
  }, [A("div", {
@@ -1908,80 +1924,80 @@ var Ma = [
1908
1924
  A("h3", {
1909
1925
  id: `${U}-question`,
1910
1926
  class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
1911
- }, j(C(Un)(C(m).localization.translationConfirmation, e.translationCount ?? 0, C(d))), 9, Pa),
1927
+ }, j(C(Wn)(C(m).localization.translationConfirmation, e.translationCount ?? 0, C(d))), 9, za),
1912
1928
  A("p", {
1913
1929
  id: `${U}-warning`,
1914
1930
  class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]"
1915
- }, j(C(h)(C(m).localization.translationDescription, { language: W.value })), 9, Fa),
1916
- A("div", Ia, [A("button", {
1931
+ }, j(C(h)(C(m).localization.translationDescription, { language: W.value })), 9, Ba),
1932
+ A("div", Va, [A("button", {
1917
1933
  ref_key: "confirmationCancel",
1918
1934
  ref: L,
1919
1935
  type: "button",
1920
1936
  "data-testid": "translation-confirm-cancel",
1921
- class: w(C(Kn)),
1937
+ class: w(C(qn)),
1922
1938
  onClick: he
1923
1939
  }, j(C(m).localization.cancel), 3), A("button", {
1924
1940
  type: "button",
1925
1941
  "data-testid": "translation-confirm",
1926
- class: w(C(qn)),
1942
+ class: w(C(Jn)),
1927
1943
  disabled: !Y.value || !!C(c)?.running.value || !e.translationCount,
1928
1944
  onClick: _e
1929
- }, j(C(Un)(C(m).localization.translateAllFields, e.translationCount ?? 0, C(d))), 11, La)])
1945
+ }, j(C(Wn)(C(m).localization.translateAllFields, e.translationCount ?? 0, C(d))), 11, Ha)])
1930
1946
  ], 64)) : (i(), b(B, { key: 1 }, [
1931
- ie.value ? (i(), b("p", Ra, j(te.value), 1)) : E("", !0),
1932
- q.value === "missing" ? (i(), b("p", za, j(C(h)(C(m).localization.missingExplanation, { default: G.value })), 1)) : q.value === "stale" ? (i(), b(B, { key: 2 }, [A("p", Ba, j(C(h)(C(m).localization.staleExplanation, { default: G.value })), 1), A("p", Va, j(C(h)(C(m).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : q.value === "tags-differ" ? (i(), b("p", Ha, j(C(h)(C(m).localization.tagsDifferExplanation, { default: G.value })), 1)) : q.value === "changed" ? (i(), b("p", Ua, j(C(Un)(C(m).localization.changedProperties, J.value, C(d), { default: G.value })), 1)) : q.value === "hidden" ? (i(), b("p", Wa, j(C(h)(C(m).localization.hiddenExplanation, { language: W.value })), 1)) : (i(), b("ul", Ga, [(i(!0), b(B, null, l(e.staleLocales, (e) => (i(), b("li", {
1947
+ ie.value ? (i(), b("p", Ua, j(te.value), 1)) : E("", !0),
1948
+ q.value === "missing" ? (i(), b("p", Wa, j(C(h)(C(m).localization.missingExplanation, { default: G.value })), 1)) : q.value === "stale" ? (i(), b(B, { key: 2 }, [A("p", Ga, j(C(h)(C(m).localization.staleExplanation, { default: G.value })), 1), A("p", Ka, j(C(h)(C(m).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : q.value === "tags-differ" ? (i(), b("p", qa, j(C(h)(C(m).localization.tagsDifferExplanation, { default: G.value })), 1)) : q.value === "changed" ? (i(), b("p", Ja, j(C(Wn)(C(m).localization.changedProperties, J.value, C(d), { default: G.value })), 1)) : q.value === "hidden" ? (i(), b("p", Ya, j(C(h)(C(m).localization.hiddenExplanation, { language: W.value })), 1)) : (i(), b("ul", Xa, [(i(!0), b(B, null, l(e.staleLocales, (e) => (i(), b("li", {
1933
1949
  key: e,
1934
1950
  class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3"
1935
- }, [A("span", null, j(C(Wn)(e)), 1), A("button", {
1951
+ }, [A("span", null, j(C(Gn)(e)), 1), A("button", {
1936
1952
  type: "button",
1937
- class: w(C(Gn)),
1953
+ class: w(C(Kn)),
1938
1954
  onClick: (t) => pe(e)
1939
- }, j(C(m).localization.open), 11, Ka)]))), 128))])),
1940
- e.editable && q.value !== "default-stale" ? (i(), b("div", qa, [
1955
+ }, j(C(m).localization.open), 11, Za)]))), 128))])),
1956
+ e.editable && q.value !== "default-stale" ? (i(), b("div", Qa, [
1941
1957
  Y.value && (q.value === "missing" || q.value === "stale" || q.value === "tags-differ") ? (i(), b("button", {
1942
1958
  key: 0,
1943
1959
  type: "button",
1944
1960
  ref_key: "retranslate",
1945
1961
  ref: I,
1946
1962
  "data-testid": q.value === "missing" ? "locale-translate" : "locale-retranslate",
1947
- class: w(C(Kn)),
1963
+ class: w(C(qn)),
1948
1964
  disabled: !!C(c)?.running.value,
1949
1965
  onClick: me
1950
- }, j(q.value === "missing" ? C(m).localization.translate : C(m).localization.retranslate), 11, Ja)) : E("", !0),
1966
+ }, j(q.value === "missing" ? C(m).localization.translate : C(m).localization.retranslate), 11, $a)) : E("", !0),
1951
1967
  q.value === "stale" || q.value === "tags-differ" ? (i(), b(B, { key: 1 }, [q.value === "stale" ? (i(), b("button", {
1952
1968
  key: 0,
1953
1969
  type: "button",
1954
1970
  "data-testid": "locale-keep",
1955
- class: w(C(Y.value ? Gn : Kn)),
1971
+ class: w(C(Y.value ? Kn : qn)),
1956
1972
  onClick: ue
1957
1973
  }, j(C(m).localization.keep), 3)) : E("", !0), A("button", {
1958
1974
  type: "button",
1959
1975
  "data-testid": "locale-use-default",
1960
- class: w(C(q.value === "tags-differ" && !Y.value ? Kn : Gn)),
1976
+ class: w(C(q.value === "tags-differ" && !Y.value ? qn : Kn)),
1961
1977
  onClick: r[0] ||= (t) => de(q.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
1962
1978
  }, j(C(h)(C(m).localization.useDefaultLanguage, { default: G.value })), 3)], 64)) : E("", !0),
1963
1979
  q.value === "changed" ? (i(), b("button", {
1964
1980
  key: 2,
1965
1981
  type: "button",
1966
1982
  "data-testid": "locale-reset",
1967
- class: w(C(Kn)),
1983
+ class: w(C(qn)),
1968
1984
  onClick: r[1] ||= (t) => de(e.setPaths)
1969
1985
  }, j(C(m).localization.resetChanges), 3)) : E("", !0),
1970
1986
  q.value === "hidden" ? (i(), b("button", {
1971
1987
  key: 3,
1972
1988
  type: "button",
1973
1989
  "data-testid": "locale-show",
1974
- class: w(C(Kn)),
1990
+ class: w(C(qn)),
1975
1991
  onClick: fe
1976
1992
  }, j(C(m).localization.show), 3)) : E("", !0)
1977
1993
  ])) : E("", !0)
1978
- ], 64))], 44, Na)], 8, ["to"])) : E("", !0)], 64));
1994
+ ], 64))], 44, Ra)], 8, ["to"])) : E("", !0)], 64));
1979
1995
  }
1980
- }), [["__scopeId", "data-v-3343ae7d"]]), Xa = /* @__PURE__ */ n({
1996
+ }), [["__scopeId", "data-v-3343ae7d"]]), to = /* @__PURE__ */ n({
1981
1997
  __name: "LocaleMarkers",
1982
1998
  props: { block: {} },
1983
1999
  setup(e) {
1984
- let t = e, n = f(Ln, null), r = f(nn, void 0), a = f(xn, []), s = f(Wt, ne.liquid), c = f(Sn, N(() => /* @__PURE__ */ new Set())), l = N(() => n?.activeLocale?.value), u = N(() => l.value ? t.block.l10n?.[l.value] : void 0), d = N(() => ({
2000
+ let t = e, n = f(Rn, null), r = f(nn, void 0), a = f(xn, []), s = f(Wt, te.liquid), c = f(Sn, N(() => /* @__PURE__ */ new Set())), l = N(() => n?.activeLocale?.value), u = N(() => l.value ? t.block.l10n?.[l.value] : void 0), d = N(() => ({
1985
2001
  blocks: [t.block.type === "section" || t.block.type === "wrapper" ? {
1986
2002
  ...t.block,
1987
2003
  children: []
@@ -1990,14 +2006,14 @@ var Ma = [
1990
2006
  locale: n.content.value.settings.locale,
1991
2007
  locales: n.content.value.settings.locales
1992
2008
  }
1993
- })), p = N(() => n && l.value && !c.value.has(l.value) ? te(d.value, l.value, a) : {
2009
+ })), p = N(() => n && l.value && !c.value.has(l.value) ? ie(d.value, l.value, a) : {
1994
2010
  missing: [],
1995
2011
  stale: [],
1996
2012
  translated: []
1997
2013
  }), m = N(() => p.value.stale.map((e) => e.slice(t.block.id.length + 1))), h = N(() => p.value.translated.flatMap((e) => {
1998
- let n = e.slice(t.block.id.length + 1), r = ge(t.block, n), i = u.value?.text?.[n]?.value, a = t.block.type === "html" || le[t.block.type]?.includes(n) ? "html" : "text";
1999
- return typeof r == "string" && i !== void 0 && ja(r, i, s, a) ? [n] : [];
2000
- })), g = z(null), _ = N(() => n && l.value && !c.value.has(l.value) ? G(d.value, l.value, {
2014
+ let n = e.slice(t.block.id.length + 1), r = _e(t.block, n), i = u.value?.text?.[n]?.value, a = t.block.type === "html" || le[t.block.type]?.includes(n) ? "html" : "text";
2015
+ return typeof r == "string" && i !== void 0 && Ia(r, i, s, a) ? [n] : [];
2016
+ })), g = z(null), _ = N(() => n && l.value && !c.value.has(l.value) ? W(d.value, l.value, {
2001
2017
  syntax: s,
2002
2018
  definitions: a,
2003
2019
  doNotTranslate: r?.doNotTranslate,
@@ -2007,9 +2023,9 @@ var Ma = [
2007
2023
  let n = e.slice(t.block.id.length + 1);
2008
2024
  return p.value.translated.includes(e) && !h.value.includes(n);
2009
2025
  })), y = N(() => Object.keys(u.value?.set ?? {}).filter((e) => {
2010
- let n = e.split("."), r = n.pop(), i = n.length ? ge(t.block, n.join(".")) : t.block;
2011
- return Array.isArray(i) ? ge(i, r) !== void 0 : i !== void 0;
2012
- })), b = N(() => !l.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !c.value.has(e) && te(d.value, e, a).stale.length > 0) : []), x = N(() => l.value ? c.value.has(l.value) ? null : u.value?.hidden ? "hidden" : p.value.missing.length ? "missing" : m.value.length ? "stale" : h.value.length ? "tags-differ" : y.value.length ? "changed" : null : b.value.length ? "default-stale" : null);
2026
+ let n = e.split("."), r = n.pop(), i = n.length ? _e(t.block, n.join(".")) : t.block;
2027
+ return Array.isArray(i) ? _e(i, r) !== void 0 : i !== void 0;
2028
+ })), b = N(() => !l.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !c.value.has(e) && ie(d.value, e, a).stale.length > 0) : []), x = N(() => l.value ? c.value.has(l.value) ? null : u.value?.hidden ? "hidden" : p.value.missing.length ? "missing" : m.value.length ? "stale" : h.value.length ? "tags-differ" : y.value.length ? "changed" : null : b.value.length ? "default-stale" : null);
2013
2029
  function S(e) {
2014
2030
  return e === "missing" ? p.value.missing.length : e === "stale" ? m.value.length : e === "tags-differ" ? h.value.length : e === "default-stale" ? b.value.length : y.value.length;
2015
2031
  }
@@ -2018,12 +2034,12 @@ var Ma = [
2018
2034
  g.value = null;
2019
2035
  });
2020
2036
  let k = N(() => {
2021
- let e = ge(t.block, m.value[0] ?? "");
2037
+ let e = _e(t.block, m.value[0] ?? "");
2022
2038
  if (typeof e != "string") return "";
2023
2039
  let n = e.split(/<[^>]*>/).join("");
2024
2040
  return Array.from(n).slice(0, 60).join("");
2025
2041
  });
2026
- return (t, n) => C(r) && x.value ? (i(), D(Ya, {
2042
+ return (t, n) => C(r) && x.value ? (i(), D(eo, {
2027
2043
  key: 0,
2028
2044
  "block-id": e.block.id,
2029
2045
  state: x.value,
@@ -2057,21 +2073,21 @@ var Ma = [
2057
2073
  "editable"
2058
2074
  ])) : E("", !0);
2059
2075
  }
2060
- }), Za = [
2076
+ }), no = [
2061
2077
  "data-block-id",
2062
2078
  "data-block-type",
2063
2079
  "data-tpl-picked"
2064
- ], Qa = ["aria-label"], $a = ["data-lock-holder"], eo = ["aria-label"], to = [
2080
+ ], ro = ["aria-label"], io = ["data-lock-holder"], ao = ["aria-label"], oo = [
2065
2081
  "aria-label",
2066
2082
  "aria-pressed",
2067
2083
  "title"
2068
- ], no = ["aria-label", "title"], ro = ["aria-label", "title"], io = ["aria-label", "title"], ao = {
2084
+ ], so = ["aria-label", "title"], co = ["aria-label", "title"], lo = ["aria-label", "title"], uo = {
2069
2085
  key: 3,
2070
2086
  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"
2071
- }, oo = { 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)]" }, so = {
2087
+ }, fo = { 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)]" }, po = {
2072
2088
  key: 4,
2073
2089
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
2074
- }, co = ["aria-label", "title"], lo = /*#__PURE__*/ St(/* @__PURE__ */ n({
2090
+ }, mo = ["aria-label", "title"], ho = /*#__PURE__*/ St(/* @__PURE__ */ n({
2075
2091
  __name: "BlockWrapper",
2076
2092
  props: {
2077
2093
  block: {},
@@ -2084,7 +2100,7 @@ var Ma = [
2084
2100
  },
2085
2101
  emits: ["select"],
2086
2102
  setup(e, { emit: t }) {
2087
- let n = g(() => import("./BlockIssueBadge-D3Plo_wt.js")), r = e, a = N(() => r.displayBlock ?? r.block), s = t, { t: c, format: l } = Q(), u = f(Rn, null), d = z(null), p = N(() => u?.liftedBlockId.value === r.block.id), m = N(() => p.value ? l(c.blockActions.dragLifted, { block: r.block.type }) : c.blockActions.drag);
2103
+ let n = g(() => import("./BlockIssueBadge-Bnmq_M4G.js")), r = e, a = N(() => r.displayBlock ?? r.block), s = t, { t: c, format: l } = Q(), u = f(zn, null), d = z(null), p = N(() => u?.liftedBlockId.value === r.block.id), m = N(() => p.value ? l(c.blockActions.dragLifted, { block: r.block.type }) : c.blockActions.drag);
2088
2104
  async function v() {
2089
2105
  await O(), d.value?.focus();
2090
2106
  }
@@ -2094,12 +2110,12 @@ var Ma = [
2094
2110
  let S = N(() => !r.viewport || !a.value.visibility ? !1 : a.value.visibility[r.viewport] === !1), T = N(() => !!(Z?.activeLocale?.value && r.block.l10n?.[Z.activeLocale.value]?.hidden)), M = N(() => r.previewMode === !0 && (S.value || T.value)), F = N(() => r.viewport ? {
2095
2111
  desktop: c.viewport.desktop,
2096
2112
  mobile: c.viewport.mobile
2097
- }[r.viewport] ?? r.viewport : ""), I = N(() => !!a.value.displayCondition), L = f(Pn, null), R = f(Dn, null), B = f(vn, {}), H = N(() => B.savedBlocks?.isPicking.value === !0), U = N(() => !r.nested && B.savedBlocks?.isAvailable.value === !0 && B.savedBlocks?.canCreate.value === !0), W = N(() => r.isSelected && !H.value), G = N(() => B.comments?.getBlockCount(r.block.id) ?? 0), ee = z(null), K = z(null), q = z(null), J = z(null), te = z({
2113
+ }[r.viewport] ?? r.viewport : ""), I = N(() => !!a.value.displayCondition), L = f(Pn, null), R = f(Dn, null), B = f(vn, {}), H = N(() => B.savedBlocks?.isPicking.value === !0), U = N(() => !r.nested && B.savedBlocks?.isAvailable.value === !0 && B.savedBlocks?.canCreate.value === !0), W = N(() => r.isSelected && !H.value), G = N(() => B.comments?.getBlockCount(r.block.id) ?? 0), K = z(null), ee = z(null), q = z(null), J = z(null), te = z({
2098
2114
  left: "calc(100% + 8px)",
2099
2115
  top: "50%"
2100
- }), ne = z(!1), re = N(() => K.value ?? J.value), ie = N(() => re.value?.closest(".tpl-body"));
2116
+ }), ne = z(!1), re = N(() => ee.value ?? J.value), ie = N(() => re.value?.closest(".tpl-body"));
2101
2117
  function Y() {
2102
- let e = ne.value, t = K.value, n = J.value, r = ee.value;
2118
+ let e = ne.value, t = ee.value, n = J.value, r = K.value;
2103
2119
  if (!t && !n || !r?.offsetWidth) return;
2104
2120
  let i = r.getBoundingClientRect(), a = i.width / r.offsetWidth || 1, o = ie.value, s = o ? (o.getBoundingClientRect().left - i.left) / a + o.clientLeft : -Infinity, c = o ? s + o.clientWidth : Infinity, l = getComputedStyle(r).direction === "rtl";
2105
2121
  if (n?.offsetWidth) {
@@ -2127,38 +2143,41 @@ var Ma = [
2127
2143
  top: m
2128
2144
  });
2129
2145
  }
2130
- _(Y), tr(N(() => re.value ? [
2131
- ee.value,
2146
+ _(Y), nr(N(() => re.value ? [
2132
2147
  K.value,
2148
+ ee.value,
2133
2149
  q.value,
2134
2150
  J.value,
2135
2151
  ie.value
2136
- ].filter((e) => !!e) : []), Y), Qn(ie, "scroll", Y, { passive: !0 });
2137
- let X = N(() => B.collaboration?.lockOf(r.block.id) ?? null), ae = N(() => X.value?.holder.type === "guest" ? c.collaboration.guest : X.value?.holder.name ?? ""), oe = N(() => B.collaboration?.agentHighlightOf(r.block.id) ?? B.ai?.highlightOf(r.block.id) ?? null), se = vt(() => a.value.type === "section" ? a.value.backgroundImage : void 0), ce = vt(() => a.value.type === "section" ? a.value.wrapper?.backgroundImage : void 0), Z = f(Ln, null), le = Z ? Hn(Z) : null, ue = f(Tn, null) ?? le?.content ?? null;
2138
- o([() => Z?.activeLocale?.value, () => le && Ye(le.settings.value)], Y, { flush: "post" });
2139
- let de = f(cn, void 0), fe = N(() => Fi(a.value, {
2152
+ ].filter((e) => !!e) : []), Y), $n(ie, "scroll", Y, { passive: !0 });
2153
+ let X = N(() => B.collaboration?.lockOf(r.block.id) ?? null), ae = N(() => X.value?.holder.type === "guest" ? c.collaboration.guest : X.value?.holder.name ?? ""), oe = N(() => B.collaboration?.agentHighlightOf(r.block.id) ?? B.ai?.highlightOf(r.block.id) ?? null), se = vt(() => a.value.type === "section" ? a.value.backgroundImage : void 0), ce = vt(() => a.value.type === "section" ? a.value.wrapper?.backgroundImage : void 0), Z = f(Rn, null), le = Z ? Un(Z) : null, ue = f(Tn, null) ?? le?.content ?? null;
2154
+ o([() => Z?.activeLocale?.value, () => le && Te(le.settings.value)], Y, { flush: "post" });
2155
+ let de = f(sn, void 0), fe = N(() => Li(a.value, {
2140
2156
  backgroundImageUrl: se.value,
2141
2157
  heroBoxWidth: ut(a.value) ? mt(a.value, ue?.value, de) : void 0
2142
- })), pe = N(() => Ri(a.value, { backgroundImageUrl: ce.value }));
2143
- function me(e) {
2158
+ })), pe = N(() => Ui(a.value, { backgroundImageUrl: ce.value })), me = N(() => {
2159
+ let e = a.value;
2160
+ return e.type === "section" && e.wrapper?.fullWidth === !0 ? e : void 0;
2161
+ }), he = N(() => Hi(me.value?.wrapper?.padding));
2162
+ function ge(e) {
2144
2163
  r.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
2145
2164
  }
2146
- function he() {
2165
+ function _e() {
2147
2166
  L?.deleteBlock(r.block.id);
2148
2167
  }
2149
- function ge() {
2168
+ function ve() {
2150
2169
  L?.duplicateBlock(r.block);
2151
2170
  }
2152
- function _e() {
2171
+ function ye() {
2153
2172
  B.savedBlocks?.startPicking(r.block.id);
2154
2173
  }
2155
- function ve() {
2174
+ function be() {
2156
2175
  R?.toggleBlock(r.block.id);
2157
2176
  }
2158
2177
  return (t, r) => M.value ? E("", !0) : (i(), b("div", {
2159
2178
  key: 0,
2160
2179
  ref_key: "blockElement",
2161
- ref: ee,
2180
+ ref: K,
2162
2181
  class: w(["tpl-block tpl:group tpl:relative tpl:cursor-pointer tpl:rounded-sm tpl:transition-shadow", {
2163
2182
  "tpl-block--selected": e.isSelected,
2164
2183
  "tpl-block--locale-hidden": T.value,
@@ -2169,7 +2188,7 @@ var Ma = [
2169
2188
  "data-block-id": e.block.id,
2170
2189
  "data-block-type": e.block.type,
2171
2190
  "data-tpl-picked": e.picked || void 0,
2172
- onClick: me
2191
+ onClick: ge
2173
2192
  }, [
2174
2193
  A("div", {
2175
2194
  ref_key: "badgesElement",
@@ -2186,9 +2205,9 @@ var Ma = [
2186
2205
  }, [V(C(Rt), {
2187
2206
  size: 12,
2188
2207
  "stroke-width": 2.5
2189
- }), x(" " + j(G.value), 1)], 10, Qa)) : E("", !0),
2208
+ }), x(" " + j(G.value), 1)], 10, ro)) : E("", !0),
2190
2209
  V(C(n), { "block-id": e.block.id }, null, 8, ["block-id"]),
2191
- e.previewMode ? E("", !0) : (i(), D(Xa, {
2210
+ e.previewMode ? E("", !0) : (i(), D(to, {
2192
2211
  key: 1,
2193
2212
  block: e.block
2194
2213
  }, null, 8, ["block"]))
@@ -2206,9 +2225,9 @@ var Ma = [
2206
2225
  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",
2207
2226
  style: P({
2208
2227
  backgroundColor: X.value.holder.color,
2209
- color: C(gr)(X.value.holder.color)
2228
+ color: C(_r)(X.value.holder.color)
2210
2229
  })
2211
- }, j(C(l)(C(c).collaboration.editing, { name: ae.value })), 5)], 12, $a)) : E("", !0),
2230
+ }, j(C(l)(C(c).collaboration.editing, { name: ae.value })), 5)], 12, io)) : E("", !0),
2212
2231
  oe.value === null ? E("", !0) : (i(), b("div", {
2213
2232
  key: oe.value,
2214
2233
  "data-testid": "block-agent-highlight",
@@ -2218,7 +2237,7 @@ var Ma = [
2218
2237
  W.value ? (i(), b("div", {
2219
2238
  key: 2,
2220
2239
  ref_key: "actionsElement",
2221
- ref: K,
2240
+ ref: ee,
2222
2241
  style: P(te.value),
2223
2242
  role: "toolbar",
2224
2243
  "aria-label": C(c).blockActions.drag,
@@ -2236,70 +2255,78 @@ var Ma = [
2236
2255
  }, [V(C(Vt), {
2237
2256
  size: 14,
2238
2257
  "stroke-width": 1.5
2239
- })], 40, to),
2258
+ })], 40, oo),
2240
2259
  A("button", {
2241
2260
  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",
2242
2261
  "aria-label": C(c).blockActions.duplicate,
2243
2262
  title: C(c).blockActions.duplicate,
2244
- onClick: k(ge, ["stop"])
2263
+ onClick: k(ve, ["stop"])
2245
2264
  }, [V(C(Ct), {
2246
2265
  size: 14,
2247
2266
  "stroke-width": 1.5
2248
- })], 8, no),
2267
+ })], 8, so),
2249
2268
  U.value ? (i(), b("button", {
2250
2269
  key: 0,
2251
2270
  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",
2252
2271
  "aria-label": C(c).blockActions.saveAsBlock,
2253
2272
  title: C(c).blockActions.saveAsBlock,
2254
- onClick: k(_e, ["stop"])
2273
+ onClick: k(ye, ["stop"])
2255
2274
  }, [V(C(jt), {
2256
2275
  size: 14,
2257
2276
  "stroke-width": 1.5
2258
- })], 8, ro)) : E("", !0),
2277
+ })], 8, co)) : E("", !0),
2259
2278
  A("button", {
2260
2279
  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",
2261
2280
  "aria-label": C(c).blockActions.delete,
2262
2281
  title: C(c).blockActions.delete,
2263
- onClick: k(he, ["stop"])
2282
+ onClick: k(_e, ["stop"])
2264
2283
  }, [V(C(Ft), {
2265
2284
  size: 14,
2266
2285
  "stroke-width": 1.5
2267
- })], 8, io)
2268
- ], 12, eo)) : E("", !0),
2269
- S.value ? (i(), b("div", ao, [A("span", oo, [V(C(Dt), {
2286
+ })], 8, lo)
2287
+ ], 12, ao)) : E("", !0),
2288
+ S.value ? (i(), b("div", uo, [A("span", fo, [V(C(Dt), {
2270
2289
  size: 12,
2271
2290
  "stroke-width": 1.5
2272
2291
  }), x(" " + j(C(l)(C(c).blockActions.hiddenOnViewport, { viewport: F.value })), 1)])])) : E("", !0),
2273
- I.value && !S.value ? (i(), b("div", so, [A("button", {
2292
+ I.value && !S.value ? (i(), b("div", po, [A("button", {
2274
2293
  "data-testid": "condition-toggle",
2275
2294
  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)]",
2276
2295
  "aria-label": C(c).blockActions.conditionToggle,
2277
2296
  title: e.block.displayCondition?.label,
2278
- onClick: k(ve, ["stop"])
2297
+ onClick: k(be, ["stop"])
2279
2298
  }, [V(C(Ot), {
2280
2299
  size: 12,
2281
2300
  "stroke-width": 2
2282
- })], 8, co)])) : E("", !0),
2301
+ })], 8, mo)])) : E("", !0),
2283
2302
  pe.value ? (i(), b("div", {
2284
2303
  key: 5,
2285
- class: w(["tpl-section-wrapper tpl-email-surface", C(ji)(pe.value)]),
2304
+ class: w(["tpl-section-wrapper tpl-email-surface", C(Ni)(pe.value)]),
2286
2305
  style: P(pe.value)
2306
+ }, [me.value ? (i(), b("div", {
2307
+ key: 0,
2308
+ class: "tpl-band-frame",
2309
+ style: P(he.value)
2287
2310
  }, [A("div", {
2288
- class: w(["tpl-block-content tpl-email-surface", C(ji)(fe.value)]),
2311
+ class: w(["tpl-block-content tpl-email-surface", C(Ni)(fe.value)]),
2289
2312
  style: P(fe.value)
2290
- }, [h(t.$slots, "default", {}, void 0, !0)], 6)], 6)) : (i(), b("div", {
2313
+ }, [h(t.$slots, "default", {}, void 0, !0)], 6)], 4)) : (i(), b("div", {
2314
+ key: 1,
2315
+ class: w(["tpl-block-content tpl-email-surface", C(Ni)(fe.value)]),
2316
+ style: P(fe.value)
2317
+ }, [h(t.$slots, "default", {}, void 0, !0)], 6))], 6)) : (i(), b("div", {
2291
2318
  key: 6,
2292
- class: w(["tpl-block-content tpl-email-surface", C(ji)(fe.value)]),
2319
+ class: w(["tpl-block-content tpl-email-surface", C(Ni)(fe.value)]),
2293
2320
  style: P(fe.value)
2294
2321
  }, [h(t.$slots, "default", {}, void 0, !0)], 6))
2295
- ], 10, Za));
2322
+ ], 10, no));
2296
2323
  }
2297
- }), [["__scopeId", "data-v-8c371dc9"]]);
2324
+ }), [["__scopeId", "data-v-872194d3"]]);
2298
2325
  // src/utils/unwrapParagraph.ts
2299
- function uo(e) {
2326
+ function go(e) {
2300
2327
  let t = /^\s*<p\b/.exec(e);
2301
2328
  if (!t) return e;
2302
- let n = Ee(e, t[0].length);
2329
+ let n = Ne(e, t[0].length);
2303
2330
  if (n === -1) return e;
2304
2331
  let r = /<\/p>\s*$/.exec(e);
2305
2332
  if (!r || r.index <= n) return e;
@@ -2307,22 +2334,22 @@ function uo(e) {
2307
2334
  return /<\/p>\s*<p\b/i.test(i) ? e : i;
2308
2335
  }
2309
2336
  // src/components/blocks/TitleBlock.vue
2310
- var fo = /* @__PURE__ */ n({
2337
+ var _o = /* @__PURE__ */ n({
2311
2338
  __name: "TitleBlock",
2312
2339
  props: {
2313
2340
  block: {},
2314
2341
  viewport: {}
2315
2342
  },
2316
2343
  setup(e) {
2317
- let n = e, r = g(() => import("./TitleEditor-C2syRLdZ.js")), a = kn(gn, "TitleBlock"), { isEditing: o, blockRef: s, toolbarPosition: c, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Ea(() => n.block.content), f = N(() => {
2344
+ let n = e, r = g(() => import("./TitleEditor-D04vvbUc.js")), a = Fn(gn, "TitleBlock"), { isEditing: o, blockRef: s, toolbarPosition: c, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = ja(() => n.block.content), f = N(() => {
2318
2345
  let e = {
2319
- fontSize: `${be[n.block.level]}px`,
2320
- lineHeight: String(tt),
2346
+ fontSize: `${Ye[n.block.level]}px`,
2347
+ lineHeight: String(xe),
2321
2348
  fontWeight: "700",
2322
2349
  textAlign: n.block.textAlign
2323
2350
  };
2324
2351
  return n.block.color && (e.color = n.block.color), n.block.fontFamily && (e.fontFamily = a.resolveFontFamily(n.block.fontFamily)), e;
2325
- }), p = N(() => `h${n.block.level}`), m = N(() => mr(uo(l.value)));
2352
+ }), p = N(() => `h${n.block.level}`), m = N(() => hr(go(l.value)));
2326
2353
  return (n, a) => (i(), b("div", {
2327
2354
  ref_key: "blockRef",
2328
2355
  ref: s,
@@ -2348,14 +2375,14 @@ var fo = /* @__PURE__ */ n({
2348
2375
  innerHTML: m.value
2349
2376
  }, null, 8, ["innerHTML"]))], 36));
2350
2377
  }
2351
- }), po = "hero", mo = "#1f2937", ho = "#ffffff";
2352
- function go(e, t) {
2378
+ }), vo = "hero", yo = "#1f2937", bo = "#ffffff";
2379
+ function xo(e, t) {
2353
2380
  let n = et("title", e);
2354
- n.color = ho, n.textAlign = "center";
2381
+ n.color = bo, n.textAlign = "center";
2355
2382
  let r = et("paragraph", e);
2356
- r.content = `<p style="text-align: center"><span style="color: ${ho}">${_o(t)}</span></p>`;
2383
+ r.content = `<p style="text-align: center"><span style="color: ${bo}">${So(t)}</span></p>`;
2357
2384
  let i = et("button", e);
2358
- return i.align = "center", se({
2385
+ return i.align = "center", oe({
2359
2386
  columns: "1",
2360
2387
  children: [[
2361
2388
  n,
@@ -2373,28 +2400,28 @@ function go(e, t) {
2373
2400
  bottom: 48,
2374
2401
  left: 24
2375
2402
  },
2376
- backgroundColor: mo
2403
+ backgroundColor: yo
2377
2404
  }
2378
2405
  });
2379
2406
  }
2380
- function _o(e) {
2407
+ function So(e) {
2381
2408
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2382
2409
  }
2383
2410
  // src/utils/sectionColumnDrop.ts
2384
- var vo = /* @__PURE__ */ new Set(["section", po]);
2385
- function yo(e) {
2386
- return e.dataset.blockType !== "section" && !vo.has(e.dataset.paletteType ?? "");
2411
+ var Co = /* @__PURE__ */ new Set(["section", vo]);
2412
+ function wo(e) {
2413
+ return e.dataset.blockType !== "section" && !Co.has(e.dataset.paletteType ?? "");
2387
2414
  }
2388
2415
  // src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
2389
- var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2416
+ var To = { class: "tpl:relative tpl:w-full" }, Eo = {
2390
2417
  key: 0,
2391
2418
  "data-testid": "hero-image-hint",
2392
2419
  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)]"
2393
- }, So = {
2420
+ }, Do = {
2394
2421
  key: 0,
2395
2422
  "data-testid": "section-drop-hint",
2396
2423
  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)]"
2397
- }, Co = /* @__PURE__ */ n({
2424
+ }, Oo = /* @__PURE__ */ n({
2398
2425
  __name: "SectionBlock",
2399
2426
  props: {
2400
2427
  block: {},
@@ -2403,13 +2430,13 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2403
2430
  },
2404
2431
  setup(n) {
2405
2432
  let r = {
2406
- title: fo,
2407
- paragraph: Oa,
2408
- image: xa,
2409
- button: Ui,
2410
- divider: ra,
2411
- custom: ta
2412
- }, o = n, { t: u } = Q(), d = kn(Ln, "SectionBlock"), { displayBlock: p } = Hn(d), m = N(() => o.sourceBlock ?? o.block), h = f(Sn, N(() => /* @__PURE__ */ new Set()));
2433
+ title: _o,
2434
+ paragraph: Na,
2435
+ image: Ea,
2436
+ button: Ji,
2437
+ divider: ca,
2438
+ custom: oa
2439
+ }, o = n, { t: u } = Q(), d = Fn(Rn, "SectionBlock"), { displayBlock: p } = Un(d), m = N(() => o.sourceBlock ?? o.block), h = f(Sn, N(() => /* @__PURE__ */ new Set()));
2413
2440
  s(Sn, N(() => /* @__PURE__ */ new Set([...h.value, ...Object.entries(m.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
2414
2441
  let g = f(Dn, null), _ = f(En, null), v = f(vn, {}), y = f(mn, null);
2415
2442
  function x(e) {
@@ -2424,8 +2451,21 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2424
2451
  "33.33%",
2425
2452
  "33.33%"
2426
2453
  ];
2454
+ case "4": return [
2455
+ "25%",
2456
+ "25%",
2457
+ "25%",
2458
+ "25%"
2459
+ ];
2427
2460
  case "1-2": return ["33.33%", "66.67%"];
2428
2461
  case "2-1": return ["66.67%", "33.33%"];
2462
+ case "1-3": return ["25%", "75%"];
2463
+ case "3-1": return ["75%", "25%"];
2464
+ case "1-2-1": return [
2465
+ "25%",
2466
+ "50%",
2467
+ "25%"
2468
+ ];
2429
2469
  default: return ["100%"];
2430
2470
  }
2431
2471
  }), T = N(() => {
@@ -2448,7 +2488,7 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2448
2488
  }
2449
2489
  let U = N(() => {
2450
2490
  if (d.state.previewMode) return !1;
2451
- let e = Ne(o.block);
2491
+ let e = Je(o.block);
2452
2492
  return e !== null && !e.applied && e.reason === "image";
2453
2493
  });
2454
2494
  function W(e) {
@@ -2457,11 +2497,11 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2457
2497
  function G(e) {
2458
2498
  return k(e).length === 0 && d.state.previewMode;
2459
2499
  }
2460
- function ee(e, t) {
2461
- ka(d, t, o.block.id, e);
2500
+ function K(e, t) {
2501
+ Pa(d, t, o.block.id, e);
2462
2502
  }
2463
- function K(e) {
2464
- return Di(e, _, r);
2503
+ function ee(e) {
2504
+ return Oi(e, _, r);
2465
2505
  }
2466
2506
  function q(e, t) {
2467
2507
  e.type === "custom" && d.updateBlock(e.id, {
@@ -2469,7 +2509,7 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2469
2509
  dataSourceFetched: t.dataSourceFetched
2470
2510
  });
2471
2511
  }
2472
- return (r, s) => (i(), b("div", bo, [U.value ? (i(), b("div", xo, [A("span", null, j(C(u).section.heroAddImage), 1)])) : E("", !0), A("div", { class: w(["tpl:flex tpl:gap-0", { "tpl:flex-col": O.value }]) }, [(i(!0), b(B, null, l(T.value, (r, f) => (i(), b("div", {
2512
+ return (r, s) => (i(), b("div", To, [U.value ? (i(), b("div", Eo, [A("span", null, j(C(u).section.heroAddImage), 1)])) : E("", !0), A("div", { class: w(["tpl:flex tpl:gap-0", { "tpl:flex-col": O.value }]) }, [(i(!0), b(B, null, l(T.value, (r, f) => (i(), b("div", {
2473
2513
  key: f,
2474
2514
  class: w(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", W(f) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
2475
2515
  style: P({ width: O.value ? "100%" : S.value[f] })
@@ -2478,7 +2518,7 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2478
2518
  group: {
2479
2519
  name: "blocks",
2480
2520
  pull: !0,
2481
- put: (e, t, n) => C(yo)(n)
2521
+ put: (e, t, n) => C(wo)(n)
2482
2522
  },
2483
2523
  animation: 150,
2484
2524
  "ghost-class": "tpl-ghost",
@@ -2492,12 +2532,12 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2492
2532
  "tpl:min-h-[60px]": H(f),
2493
2533
  "tpl:min-h-[34px]": G(f)
2494
2534
  }]),
2495
- onUpdate: (e) => C(ka)(C(d), k(f), o.block.id, f, e),
2535
+ onUpdate: (e) => C(Pa)(C(d), k(f), o.block.id, f, e),
2496
2536
  onStart: (e) => L.value = f,
2497
2537
  onEnd: s[0] ||= (e) => L.value = null,
2498
- "onUpdate:modelValue": (e) => ee(f, e)
2538
+ "onUpdate:modelValue": (e) => K(f, e)
2499
2539
  }, {
2500
- default: a(() => [(i(!0), b(B, null, l(k(f), (r) => c((i(), b("div", { key: r.id }, [V(lo, {
2540
+ default: a(() => [(i(!0), b(B, null, l(k(f), (r) => c((i(), b("div", { key: r.id }, [V(ho, {
2501
2541
  block: r,
2502
2542
  "display-block": C(p)(r),
2503
2543
  "is-selected": C(d).state.selectedBlockId === r.id,
@@ -2506,7 +2546,7 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2506
2546
  nested: "",
2507
2547
  onSelect: (e) => x(r.id)
2508
2548
  }, {
2509
- default: a(() => [(i(), D(t(K(r)), e({ block: C(p)(r) }, { ref_for: !0 }, r.type === "section" ? { sourceBlock: r } : {}, {
2549
+ default: a(() => [(i(), D(t(ee(r)), e({ block: C(p)(r) }, { ref_for: !0 }, r.type === "section" ? { sourceBlock: r } : {}, {
2510
2550
  viewport: n.viewport,
2511
2551
  onFetchData: (e) => q(r, e),
2512
2552
  onUpdate: (e) => C(d).updateBlock(r.id, e)
@@ -2533,14 +2573,14 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2533
2573
  "onUpdate",
2534
2574
  "onStart",
2535
2575
  "onUpdate:modelValue"
2536
- ]), W(f) ? (i(), b("div", So, [A("span", null, j(C(u).section.dropHere), 1)])) : E("", !0)], 6))), 128))], 2)]));
2576
+ ]), W(f) ? (i(), b("div", Do, [A("span", null, j(C(u).section.dropHere), 1)])) : E("", !0)], 6))), 128))], 2)]));
2537
2577
  }
2538
- }), wo = ["width", "height"], To = [
2578
+ }), ko = ["width", "height"], Ao = [
2539
2579
  "d",
2540
2580
  "stroke",
2541
2581
  "stroke-opacity",
2542
2582
  "stroke-width"
2543
- ], Eo = ["d", "fill"], Do = /* @__PURE__ */ n({
2583
+ ], jo = ["d", "fill"], Mo = /* @__PURE__ */ n({
2544
2584
  __name: "SocialIconSvg",
2545
2585
  props: {
2546
2586
  platform: {},
@@ -2549,7 +2589,7 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2549
2589
  iconSize: {}
2550
2590
  },
2551
2591
  setup(e) {
2552
- let t = e, n = N(() => pt[t.platform]), r = N(() => ht[t.iconSize]), a = N(() => Ce(t.platform, t.iconTone)), o = N(() => We(t.iconStyle, t.iconTone)), s = N(() => {
2592
+ let t = e, n = N(() => pt[t.platform]), r = N(() => ht[t.iconSize]), a = N(() => Le(t.platform, t.iconTone)), o = N(() => Se(t.iconStyle, t.iconTone)), s = N(() => {
2553
2593
  let e = {
2554
2594
  display: "inline-flex",
2555
2595
  alignItems: "center",
@@ -2587,7 +2627,7 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2587
2627
  };
2588
2628
  default: return e;
2589
2629
  }
2590
- }), c = N(() => Re(t.iconStyle)), l = N(() => Math.floor(r.value * c.value));
2630
+ }), c = N(() => Ue(t.iconStyle)), l = N(() => Math.floor(r.value * c.value));
2591
2631
  function u(e) {
2592
2632
  let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
2593
2633
  return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
@@ -2608,15 +2648,15 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2608
2648
  "stroke-opacity": o.value.opacity,
2609
2649
  "stroke-width": o.value.width / c.value,
2610
2650
  "stroke-linejoin": "round"
2611
- }, null, 8, To)) : E("", !0), A("path", {
2651
+ }, null, 8, Ao)) : E("", !0), A("path", {
2612
2652
  d: n.value.path,
2613
2653
  fill: d.value
2614
- }, null, 8, Eo)], 8, wo))], 4));
2654
+ }, null, 8, jo)], 8, ko))], 4));
2615
2655
  }
2616
- }), Oo = { class: "tpl:w-full" }, ko = ["href"], Ao = {
2656
+ }), No = { class: "tpl:w-full" }, Po = ["href"], Fo = {
2617
2657
  key: 1,
2618
2658
  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)]"
2619
- }, jo = /* @__PURE__ */ n({
2659
+ }, Io = /* @__PURE__ */ n({
2620
2660
  __name: "SocialIconsBlock",
2621
2661
  props: {
2622
2662
  block: {},
@@ -2629,7 +2669,7 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2629
2669
  gap: `${t.block.spacing}px`,
2630
2670
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
2631
2671
  })), a = N(() => t.block.icons.length > 0);
2632
- return (t, o) => (i(), b("div", Oo, [a.value ? (i(), b("div", {
2672
+ return (t, o) => (i(), b("div", No, [a.value ? (i(), b("div", {
2633
2673
  key: 0,
2634
2674
  style: P(r.value)
2635
2675
  }, [(i(!0), b(B, null, l(e.block.icons, (t) => (i(), b("a", {
@@ -2637,7 +2677,7 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2637
2677
  href: t.url || "#",
2638
2678
  class: "tpl:cursor-default",
2639
2679
  onClick: o[0] ||= k(() => {}, ["prevent"])
2640
- }, [V(Do, {
2680
+ }, [V(Mo, {
2641
2681
  platform: t.platform,
2642
2682
  "icon-style": e.block.iconStyle,
2643
2683
  "icon-tone": e.block.iconTone,
@@ -2647,44 +2687,44 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2647
2687
  "icon-style",
2648
2688
  "icon-tone",
2649
2689
  "icon-size"
2650
- ])], 8, ko))), 128))], 4)) : (i(), b("div", Ao, [V(C(It), { size: 16 }), A("span", null, j(C(n).social.addIcons), 1)]))]));
2690
+ ])], 8, Po))), 128))], 4)) : (i(), b("div", Fo, [V(C(It), { size: 16 }), A("span", null, j(C(n).social.addIcons), 1)]))]));
2651
2691
  }
2652
- }), Mo = { class: "tpl:w-full" }, No = {
2692
+ }), Lo = { class: "tpl:w-full" }, Ro = {
2653
2693
  key: 0,
2654
2694
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
2655
2695
  style: {
2656
2696
  "background-color": "var(--tpl-bg-hover)",
2657
2697
  color: "var(--tpl-text-dim)"
2658
2698
  }
2659
- }, Po = /* @__PURE__ */ n({
2699
+ }, zo = /* @__PURE__ */ n({
2660
2700
  __name: "SpacerBlock",
2661
2701
  props: {
2662
2702
  block: {},
2663
2703
  viewport: {}
2664
2704
  },
2665
2705
  setup(e) {
2666
- let t = e, n = kn(Ln, "SpacerBlock"), r = N(() => ({
2706
+ let t = e, n = Fn(Rn, "SpacerBlock"), r = N(() => ({
2667
2707
  height: `${t.block.height}px`,
2668
2708
  minHeight: `${t.block.height}px`,
2669
2709
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
2670
2710
  }));
2671
- return (t, a) => (i(), b("div", Mo, [A("div", {
2711
+ return (t, a) => (i(), b("div", Lo, [A("div", {
2672
2712
  style: P(r.value),
2673
2713
  class: w(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !C(n).state.previewMode }])
2674
- }, [C(n).state.previewMode ? E("", !0) : (i(), b("span", No, j(e.block.height) + "px ", 1))], 6)]));
2714
+ }, [C(n).state.previewMode ? E("", !0) : (i(), b("span", Ro, j(e.block.height) + "px ", 1))], 6)]));
2675
2715
  }
2676
- }), Fo = { class: "tpl:w-full" }, Io = { key: 0 }, Lo = [
2716
+ }), Bo = { class: "tpl:w-full" }, Vo = { key: 0 }, Ho = [
2677
2717
  "aria-label",
2678
2718
  "data-placeholder",
2679
2719
  "onBlur"
2680
- ], Ro = [
2720
+ ], Uo = [
2681
2721
  "aria-label",
2682
2722
  "data-placeholder",
2683
2723
  "onBlur"
2684
- ], zo = {
2724
+ ], Wo = {
2685
2725
  key: 1,
2686
2726
  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)]"
2687
- }, Bo = /*#__PURE__*/ St(/* @__PURE__ */ n({
2727
+ }, Go = /*#__PURE__*/ St(/* @__PURE__ */ n({
2688
2728
  __name: "TableBlock",
2689
2729
  props: {
2690
2730
  block: {},
@@ -2698,7 +2738,7 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2698
2738
  updated(e, t) {
2699
2739
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
2700
2740
  }
2701
- }, n = e, { t: r } = Q(), a = kn(Ln, "TableBlock"), o = kn(gn, "TableBlock"), s = N(() => n.block.rows.length > 0), u = N(() => {
2741
+ }, n = e, { t: r } = Q(), a = Fn(Rn, "TableBlock"), o = Fn(gn, "TableBlock"), s = N(() => n.block.rows.length > 0), u = N(() => {
2702
2742
  let e = {
2703
2743
  width: "100%",
2704
2744
  borderCollapse: "collapse",
@@ -2729,11 +2769,11 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2729
2769
  } : n);
2730
2770
  a.updateBlock(n.block.id, { rows: o });
2731
2771
  }
2732
- return (e, n) => (i(), b("div", Fo, [s.value ? (i(), b("table", {
2772
+ return (e, n) => (i(), b("div", Bo, [s.value ? (i(), b("table", {
2733
2773
  key: 0,
2734
2774
  style: P(u.value),
2735
2775
  class: "tpl-table-editable"
2736
- }, [p.value ? (i(), b("thead", Io, [A("tr", null, [(i(!0), b(B, null, l(p.value.cells, (e) => c((i(), b("th", {
2776
+ }, [p.value ? (i(), b("thead", Vo, [A("tr", null, [(i(!0), b(B, null, l(p.value.cells, (e) => c((i(), b("th", {
2737
2777
  key: e.id,
2738
2778
  style: P(f.value),
2739
2779
  "aria-label": C(r).table.cellPlaceholder,
@@ -2742,7 +2782,7 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2742
2782
  onBlur: (t) => g(p.value.id, e.id, t),
2743
2783
  onKeydown: n[0] ||= S(k((e) => e.target.blur(), ["prevent"]), ["enter"]),
2744
2784
  onClick: k(h, ["stop"])
2745
- }, null, 44, Lo)), [[t, e.content]])), 128))])])) : E("", !0), A("tbody", null, [(i(!0), b(B, null, l(m.value, (e) => (i(), b("tr", { key: e.id }, [(i(!0), b(B, null, l(e.cells, (a) => c((i(), b("td", {
2785
+ }, null, 44, Ho)), [[t, e.content]])), 128))])])) : E("", !0), A("tbody", null, [(i(!0), b(B, null, l(m.value, (e) => (i(), b("tr", { key: e.id }, [(i(!0), b(B, null, l(e.cells, (a) => c((i(), b("td", {
2746
2786
  key: a.id,
2747
2787
  style: P(d.value),
2748
2788
  "aria-label": C(r).table.cellPlaceholder,
@@ -2751,9 +2791,9 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2751
2791
  onBlur: (t) => g(e.id, a.id, t),
2752
2792
  onKeydown: n[1] ||= S(k((e) => e.target.blur(), ["prevent"]), ["enter"]),
2753
2793
  onClick: k(h, ["stop"])
2754
- }, null, 44, Ro)), [[t, a.content]])), 128))]))), 128))])], 4)) : (i(), b("div", zo, [V(C(Bt), { size: 16 }), A("span", null, j(C(r).table.empty), 1)]))]));
2794
+ }, null, 44, Uo)), [[t, a.content]])), 128))]))), 128))])], 4)) : (i(), b("div", Wo, [V(C(Bt), { size: 16 }), A("span", null, j(C(r).table.empty), 1)]))]));
2755
2795
  }
2756
- }), [["__scopeId", "data-v-6751d456"]]), Vo = /* @__PURE__ */ n({
2796
+ }), [["__scopeId", "data-v-6751d456"]]), Ko = /* @__PURE__ */ n({
2757
2797
  __name: "VideoPlayButton",
2758
2798
  props: { hoverEffect: {
2759
2799
  type: Boolean,
@@ -2770,7 +2810,7 @@ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2770
2810
  }
2771
2811
  });
2772
2812
  // src/utils/videoThumbnail.ts
2773
- function Ho(e) {
2813
+ function qo(e) {
2774
2814
  if (!e) return {
2775
2815
  platform: "unknown",
2776
2816
  videoId: null,
@@ -2802,24 +2842,24 @@ function Ho(e) {
2802
2842
  thumbnailUrl: null
2803
2843
  };
2804
2844
  }
2805
- function Uo(e, t) {
2806
- return t || Ho(e).thumbnailUrl;
2845
+ function Jo(e, t) {
2846
+ return t || qo(e).thumbnailUrl;
2807
2847
  }
2808
2848
  // src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
2809
- var Wo = ["src", "alt"], Go = {
2849
+ var Yo = ["src", "alt"], Xo = {
2810
2850
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
2811
2851
  style: { opacity: "0.7" }
2812
- }, Ko = ["href"], qo = ["src", "alt"], Jo = ["src", "alt"], Yo = {
2852
+ }, Zo = ["href"], Qo = ["src", "alt"], $o = ["src", "alt"], es = {
2813
2853
  key: 3,
2814
2854
  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)]"
2815
- }, Xo = /* @__PURE__ */ n({
2855
+ }, ts = /* @__PURE__ */ n({
2816
2856
  __name: "VideoBlock",
2817
2857
  props: {
2818
2858
  block: {},
2819
2859
  viewport: {}
2820
2860
  },
2821
2861
  setup(e) {
2822
- let t = e, { t: n } = Q(), { syntax: r } = rr(), a = N(() => pe(t.block.url, r) || pe(t.block.thumbnailUrl, r)), o = ct(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), s = ct(() => a.value ? t.block.placeholderUrl : void 0), c = N(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : Uo(t.block.url)), l = N(() => ({ textAlign: t.block.align })), u = N(() => {
2862
+ let t = e, { t: n } = Q(), { syntax: r } = ir(), a = N(() => pe(t.block.url, r) || pe(t.block.thumbnailUrl, r)), o = ct(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), s = ct(() => a.value ? t.block.placeholderUrl : void 0), c = N(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : Jo(t.block.url)), l = N(() => ({ textAlign: t.block.align })), u = N(() => {
2823
2863
  let e = t.block.align;
2824
2864
  return {
2825
2865
  maxWidth: "100%",
@@ -2842,7 +2882,7 @@ var Wo = ["src", "alt"], Go = {
2842
2882
  src: C(s),
2843
2883
  alt: e.block.alt,
2844
2884
  style: P(d.value)
2845
- }, null, 12, Wo), V(Vo)], 4)) : a.value ? (i(), b("div", {
2885
+ }, null, 12, Yo), V(Ko)], 4)) : a.value ? (i(), b("div", {
2846
2886
  key: 1,
2847
2887
  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)]",
2848
2888
  style: P([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
@@ -2851,7 +2891,7 @@ var Wo = ["src", "alt"], Go = {
2851
2891
  "stroke-width": 1.5,
2852
2892
  class: "tpl:text-[var(--tpl-primary)]",
2853
2893
  style: { opacity: "0.5" }
2854
- }), A("span", Go, [V(Vi, { text: f.value }, null, 8, ["text"])])], 4)) : c.value ? (i(), b(B, { key: 2 }, [e.block.url ? (i(), b("a", {
2894
+ }), A("span", Xo, [V(Ki, { text: f.value }, null, 8, ["text"])])], 4)) : c.value ? (i(), b(B, { key: 2 }, [e.block.url ? (i(), b("a", {
2855
2895
  key: 0,
2856
2896
  href: e.block.url,
2857
2897
  target: "_blank",
@@ -2864,7 +2904,7 @@ var Wo = ["src", "alt"], Go = {
2864
2904
  src: c.value,
2865
2905
  alt: e.block.alt,
2866
2906
  style: P(d.value)
2867
- }, null, 12, qo), V(Vo, { "hover-effect": "" })], 12, Ko)) : (i(), b("div", {
2907
+ }, null, 12, Qo), V(Ko, { "hover-effect": "" })], 12, Zo)) : (i(), b("div", {
2868
2908
  key: 1,
2869
2909
  class: "tpl:relative tpl:inline-block",
2870
2910
  style: P(u.value)
@@ -2873,34 +2913,34 @@ var Wo = ["src", "alt"], Go = {
2873
2913
  src: c.value,
2874
2914
  alt: e.block.alt,
2875
2915
  style: P(d.value)
2876
- }, null, 12, Jo), V(Vo)], 4))], 64)) : (i(), b("div", Yo, [V(C(zt), {
2916
+ }, null, 12, $o), V(Ko)], 4))], 64)) : (i(), b("div", es, [V(C(zt), {
2877
2917
  size: 40,
2878
2918
  "stroke-width": 1.5,
2879
2919
  class: "tpl:text-[var(--tpl-border-light)]"
2880
2920
  }), A("span", null, j(C(n).video.addVideo), 1)]))], 4));
2881
2921
  }
2882
- }), Zo = {
2883
- section: Co,
2884
- title: fo,
2885
- paragraph: Oa,
2886
- image: xa,
2887
- button: Ui,
2888
- divider: ra,
2889
- video: Xo,
2890
- social: jo,
2891
- menu: Ta,
2892
- table: Bo,
2893
- spacer: Po,
2894
- html: la,
2895
- countdown: g(() => import("./CountdownBlock-CjMhMhnv.js"))
2922
+ }), ns = {
2923
+ section: Oo,
2924
+ title: _o,
2925
+ paragraph: Na,
2926
+ image: Ea,
2927
+ button: Ji,
2928
+ divider: ca,
2929
+ video: ts,
2930
+ social: Io,
2931
+ menu: Aa,
2932
+ table: Go,
2933
+ spacer: zo,
2934
+ html: ma,
2935
+ countdown: g(() => import("./CountdownBlock-DyGsh92b.js"))
2896
2936
  };
2897
- function Qo(e) {
2898
- let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: c } = Q(r), l = N(() => Fe(Fe(Fe(ni(r), Si(t.content.value.settings?.locale)), Ye(t.content.value.settings) === "rtl" ? {
2937
+ function rs(e) {
2938
+ let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: c } = Q(r), l = N(() => Oe(Oe(Oe(ri(r), Ci(t.content.value.settings?.locale)), Te(t.content.value.settings) === "rtl" ? {
2899
2939
  title: { textAlign: "right" },
2900
2940
  table: { textAlign: "right" }
2901
2941
  } : {}), n.blockDefaults ?? {}));
2902
2942
  t.setUiTheme(n.uiTheme ?? "auto");
2903
- let { resolvedTheme: u } = qr(N(() => t.state.uiTheme)), d = z(n.theme ?? {}), { themeStyles: f } = Er({
2943
+ let { resolvedTheme: u } = Jr(N(() => t.state.uiTheme)), d = z(n.theme ?? {}), { themeStyles: f } = Dr({
2904
2944
  themeOverrides: d,
2905
2945
  resolvedTheme: u,
2906
2946
  extraStyles: () => ({
@@ -2927,30 +2967,30 @@ function Qo(e) {
2927
2967
  _ && (v = o(p.isNavigating, (e) => {
2928
2968
  e ? _.pause() : _.resume();
2929
2969
  }));
2930
- let b = Kr(t, {
2970
+ let b = qr(t, {
2931
2971
  t: a,
2932
2972
  format: c
2933
- }, n.customBlocks ?? []), x = or(n.colors);
2973
+ }, n.customBlocks ?? []), x = sr(n.colors);
2934
2974
  if (x.allowCustomIgnored && $.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), x.invalidPresets.length > 0 && $.warn(`config.colors.presets skipped invalid entries: ${x.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), x.allowCustom === !1) {
2935
- let e = ti(x.presets, n.blockDefaults, n.templateDefaults);
2975
+ let e = ni(x.presets, n.blockDefaults, n.templateDefaults);
2936
2976
  e.length > 0 && $.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.`);
2937
2977
  }
2938
- let S = dr(n.templateSettings);
2939
- for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${fr.join(", ")}) — skipping it.`);
2940
- let C = br();
2941
- Qr(C, Zo);
2978
+ let S = fr(n.templateSettings);
2979
+ for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${pr.join(", ")}) — skipping it.`);
2980
+ let C = xr();
2981
+ $r(C, ns);
2942
2982
  let w = /* @__PURE__ */ new Set();
2943
2983
  function T(e) {
2944
2984
  for (let t of e) {
2945
- C.registerCustom(t, ta);
2946
- for (let e of Ci(t, x)) w.has(e.id) || (w.add(e.id), $.warn(e.message));
2985
+ C.registerCustom(t, oa);
2986
+ for (let e of wi(t, x)) w.has(e.id) || (w.add(e.id), $.warn(e.message));
2947
2987
  }
2948
2988
  }
2949
2989
  n.customBlocks?.length && T(n.customBlocks);
2950
- let E = Lr();
2990
+ let E = Rr();
2951
2991
  if (y() && m(E.dispose), e.containerEl) {
2952
2992
  let t = e.containerEl;
2953
- Qn(document, "pointerdown", (e) => {
2993
+ $n(document, "pointerdown", (e) => {
2954
2994
  let n = t.value;
2955
2995
  n && (e.composedPath?.() ?? []).includes(n) && E.claim();
2956
2996
  }, { capture: !0 });
@@ -2960,7 +3000,7 @@ function Qo(e) {
2960
3000
  t ? t.save() : _?.flush();
2961
3001
  }
2962
3002
  function O(n) {
2963
- E.isActive() && Ti(n, {
3003
+ E.isActive() && Ei(n, {
2964
3004
  history: p,
2965
3005
  selectBlock: (e) => t.selectBlock(e),
2966
3006
  getSelectedBlockId: () => t.state.selectedBlockId,
@@ -2971,42 +3011,42 @@ function Qo(e) {
2971
3011
  onCancelPick: () => e.capabilities?.savedBlocks?.cancelPicking()
2972
3012
  });
2973
3013
  }
2974
- Qn(document, "keydown", O);
3014
+ $n(document, "keydown", O);
2975
3015
  let k = z(null), A = e.editorRoot ?? document;
2976
- s(Bn, A), s(Qt, k), s(Kt, /* @__PURE__ */ new Map()), s(Fn, r), s(Ln, t), s(zn, p), s(Pn, h), s(Dn, g), s(gn, i), s(yn, f), s(Cn, u), s(_n, l), s(Nn, n.locale), s(En, C), s(xn, n.customBlocks ?? []), s(Jt, n.paletteBlocks), s(sn, $r(n.htmlBlockPreview)), s(cn, n.layout), s(fn, n.sectionWrapper), s(An, x), s(Ht, S.fields), s(bn, Jr(t.content, C));
2977
- let j = Oe(n.mergeTags?.syntax);
3016
+ s(Vn, A), s(jn, k), s(Kt, /* @__PURE__ */ new Map()), s(On, r), s(Rn, t), s(Bn, p), s(Pn, h), s(Dn, g), s(gn, i), s(In, f), s(hn, u), s(_n, l), s(Cn, n.locale), s(En, C), s(xn, n.customBlocks ?? []), s(Qt, n.paletteBlocks), s(on, ei(n.htmlBlockPreview)), s(sn, n.layout), s(fn, n.sectionWrapper), s(An, x), s(yn, S.fields), s(bn, Yr(t.content, C));
3017
+ let j = Ke(n.mergeTags?.syntax);
2978
3018
  for (let e of ["opener", "closer"]) {
2979
3019
  let t = j[e];
2980
3020
  typeof t == "string" && t.trim() === "" && $.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
2981
3021
  }
2982
- typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" && ie(j) === null && $.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
3022
+ typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" && he(j) === null && $.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
2983
3023
  let M = F(n.mergeTags?.tags ?? []);
2984
3024
  function P(e) {
2985
3025
  Array.isArray(e) ? M.value = e : $.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
2986
3026
  }
2987
- s(rn, M), s(Wt, j), s(dn, n.mergeTags?.onRequest ?? null), s(qt, n.mergeTags?.autocomplete !== !1), s(Vn, n.mergeTags?.showRawValue !== !1);
2988
- let I = z(_e(n.mergeTags?.tags ?? []));
2989
- s(on, I);
2990
- let L = Br({
3027
+ s(rn, M), s(Wt, j), s(Jt, n.mergeTags?.onRequest ?? null), s(qt, n.mergeTags?.autocomplete !== !1), s(Hn, n.mergeTags?.showRawValue !== !1);
3028
+ let I = z(me(n.mergeTags?.tags ?? []));
3029
+ s(an, I);
3030
+ let L = Vr({
2991
3031
  resolvePreview: n.resolvePreview,
2992
3032
  getContent: () => {
2993
3033
  let e = t.content.value;
2994
3034
  if (!t.state.previewMode) return e;
2995
- let r = t.activeLocale?.value ?? e.settings.locale ?? "en", i = ye(e, r);
2996
- return n.layout ? Be(ye(n.layout, r, { missing: "default" }), i) : i;
3035
+ let r = t.activeLocale?.value ?? e.settings.locale ?? "en", i = Z(e, r);
3036
+ return n.layout ? Re(Z(n.layout, r, { missing: "default" }), i) : i;
2997
3037
  },
2998
3038
  isActive: () => t.state.previewMode,
2999
3039
  getLocale: () => t.activeLocale?.value ?? t.content.value.settings.locale
3000
3040
  });
3001
- s(jn, L), s(Zt, n.resolvePreview);
3041
+ s(Zt, L), s(dn, n.resolvePreview);
3002
3042
  let R = N(() => !(t.state.previewMode && L.isConfigured));
3003
3043
  s(mn, R);
3004
- let B = Vr();
3005
- s(Xt, B), s($t, z(!1)), s(tn, z(!1)), s(wn, n.logicTags?.tags ?? []), s(Ut, n.logicTags?.pairs ?? []), s(Yt, n.logicTags?.onRequest ?? null), s(en, Hr()), s(ln, n.onRequestMedia ?? null), s(In, n.canDropMedia ?? null), s(Gt, n.resolveImageUrl ? yt(n.resolveImageUrl) : null), s(pn, n.displayConditions?.conditions ?? []), s(Mn, n.displayConditions?.allowCustom ?? !1), s(vn, e.capabilities ?? {}), s(Rn, b);
3006
- let V = Ur(n.lint) ? null : Gr({
3044
+ let B = Hr();
3045
+ s(Xt, B), s($t, z(!1)), s(tn, z(!1)), s(wn, n.logicTags?.tags ?? []), s(Ut, n.logicTags?.pairs ?? []), s(cn, n.logicTags?.onRequest ?? null), s(en, Ur()), s(un, n.onRequestMedia ?? null), s(Ln, n.canDropMedia ?? null), s(Gt, n.resolveImageUrl ? yt(n.resolveImageUrl) : null), n.displayConditions?.onRequest && (n.displayConditions.conditions !== void 0 || n.displayConditions.allowCustom !== void 0) && $.warn("config.displayConditions.onRequest replaces the built-in condition list — conditions and allowCustom are ignored."), s(pn, n.displayConditions?.conditions ?? []), s(Mn, n.displayConditions?.allowCustom ?? !1), s(Yt, n.displayConditions?.onRequest ?? null), s(vn, e.capabilities ?? {}), s(zn, b);
3046
+ let V = Wr(n.lint) ? null : Kr({
3007
3047
  content: t.content,
3008
3048
  get options() {
3009
- return Rr({
3049
+ return zr({
3010
3050
  ...n,
3011
3051
  content: t.content.value,
3012
3052
  contentLocale: t.activeLocale?.value ?? void 0
@@ -3018,7 +3058,7 @@ function Qo(e) {
3018
3058
  updateSettings: t.updateSettings,
3019
3059
  removeBlock: t.removeBlock
3020
3060
  });
3021
- s(an, V);
3061
+ s(Ht, V);
3022
3062
  function H() {
3023
3063
  v?.(), V?.destroy(), _?.destroy(), p.destroy();
3024
3064
  }
@@ -3048,14 +3088,14 @@ function Qo(e) {
3048
3088
  };
3049
3089
  }
3050
3090
  // src/composables/useSmallScreenNotice.ts
3051
- var $o = "(max-width: 767px)";
3052
- function es(e) {
3053
- let t = $n($o);
3091
+ var is = "(max-width: 767px)";
3092
+ function as(e) {
3093
+ let t = er(is);
3054
3094
  return {
3055
3095
  isSmallScreen: t,
3056
3096
  showNotice: N(() => (M(e) ?? !0) && t.value)
3057
3097
  };
3058
3098
  }
3059
- export { gi as A, vr as B, Ii as C, ui as D, Di as E, Rr as F, Nr as I, jr as L, mi as M, pi as N, vi as O, Br as P, wr as R, Fi as S, zi as T, ra as _, Po as a, Ui as b, po as c, lo as d, ka as f, la as g, xa as h, Bo as i, hi as j, _i as k, go as l, Ta as m, Qo as n, jo as o, Oa as p, Xo as r, Co as s, es as t, fo as u, ta as v, Ei as w, ji as x, Ki as y, yr as z };
3099
+ export { yi as A, Tr as B, Hi as C, Wi as D, Di as E, mi as F, yr as H, Vr as I, zr as L, _i as M, gi as N, Oi as O, hi as P, Pr as R, Ni as S, Ri as T, br as V, ca as _, zo as a, Ji as b, vo as c, ho as d, Pa as f, ma as g, Ea as h, Go as i, vi as j, di as k, xo as l, Aa as m, rs as n, Io as o, Na as p, ts as r, Oo as s, as as t, _o as u, oa as v, Li as w, Ai as x, Zi as y, Mr as z };
3060
3100
 
3061
- //# sourceMappingURL=composables-nyxwrM27.js.map
3101
+ //# sourceMappingURL=composables-CsfQlmcf.js.map