@templatical/editor 0.52.1 → 0.54.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 (397) hide show
  1. package/README.md +1 -1
  2. package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
  3. package/dist/{AiAltTextReview-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
  4. package/dist/AiChatPanel-C8SeEJRP.js +561 -0
  5. package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-CR6zphjP.js} +6 -6
  6. package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-CIHUnPud.js} +76 -105
  7. package/dist/BlockIssueBadge-DaPTq1RE.js +33 -0
  8. package/dist/BlockPreviewCanvas-B70RSavL.js +140 -0
  9. package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
  10. package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-VpSQiLLL.js} +53 -53
  11. package/dist/CollaborationNotices-Cnx0XHzZ.js +65 -0
  12. package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-BaBoNhwB.js} +24 -24
  13. package/dist/CommentsPanel-Ck3QmqiC.js +16 -0
  14. package/dist/CommentsSidebar-CHknhOar.js +526 -0
  15. package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
  16. package/dist/CountdownToolbar-CM4XNEuO.js +258 -0
  17. package/dist/IssuesPanel-1wGV0wiy.js +371 -0
  18. package/dist/LanguageMenu-d2GlX67r.js +403 -0
  19. package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
  20. package/dist/LocaleNotices-WzsYtBRs.js +46 -0
  21. package/dist/LogicTagInsertButton-DgTJ6Lvx.js +1096 -0
  22. package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-C3U9Mi31.js} +451 -451
  23. package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-CGmk9ufe.js} +4 -4
  24. package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-B_51YcQO.js} +30 -30
  25. package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-D3Q2z317.js} +49 -49
  26. package/dist/MergeTagTextarea-DZz1L9DE.js +126 -0
  27. package/dist/ParagraphEditor-CI68PYDL.js +825 -0
  28. package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DcuhpOIz.js} +23 -23
  29. package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-Dstovi0m.js} +47 -47
  30. package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-vuwvoi-d.js} +86 -86
  31. package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-DUJm0dOv.js} +135 -132
  32. package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-BiMXQ5lY.js} +9 -9
  33. package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CAstZfG7.js} +15 -15
  34. package/dist/TemplateSettings-Baar78_s.js +294 -0
  35. package/dist/TestEmailModal-Bl_GHdrN.js +212 -0
  36. package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CpTBF7B5.js} +4 -4
  37. package/dist/TitleEditor-DkbEDAZB.js +202 -0
  38. package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
  39. package/dist/Toolbar-bOZ_eq7X.js +3711 -0
  40. package/dist/{TplModal-DLMssVlt.js → TplModal-wk2gLa7_.js} +17 -17
  41. package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BnP0EyLl.js} +39 -39
  42. package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-Cq2rFKIX.js} +5 -5
  43. package/dist/VersionPreviewBanner-BPP939cD.js +37 -0
  44. package/dist/WrapperBlock-cWT_nZgQ.js +44 -0
  45. package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BUyPZ7Su.js} +7 -7
  46. package/dist/bundle-stats.json +8 -8
  47. package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
  48. package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js +107 -0
  49. package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js.map +1 -0
  50. package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-DPeSY-7r.js} +70 -68
  51. package/dist/cdn/chunks/AiAltTextReview-DPeSY-7r.js.map +1 -0
  52. package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js +487 -0
  53. package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js.map +1 -0
  54. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BblCSkQy.js} +11 -11
  55. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BblCSkQy.js.map} +1 -1
  56. package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-C4btyN4W.js} +79 -79
  57. package/dist/cdn/chunks/AiRewriteMenu-C4btyN4W.js.map +1 -0
  58. package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js +34 -0
  59. package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js.map +1 -0
  60. package/dist/cdn/chunks/BlockPreviewCanvas-CTKmBPsq.js +142 -0
  61. package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-CTKmBPsq.js.map} +1 -1
  62. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
  63. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
  64. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-COU26R83.js} +45 -45
  65. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-COU26R83.js.map} +1 -1
  66. package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js +67 -0
  67. package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js.map +1 -0
  68. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-0OEH3hrj.js} +17 -17
  69. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-0OEH3hrj.js.map} +1 -1
  70. package/dist/cdn/chunks/CommentsPanel-tZZswofV.js +18 -0
  71. package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-tZZswofV.js.map} +1 -1
  72. package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js +496 -0
  73. package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js.map +1 -0
  74. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
  75. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
  76. package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js +260 -0
  77. package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js.map +1 -0
  78. package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-Duic0mIs.js} +133 -121
  79. package/dist/cdn/chunks/IssuesPanel-Duic0mIs.js.map +1 -0
  80. package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js +359 -0
  81. package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js.map +1 -0
  82. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
  83. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
  84. package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js +47 -0
  85. package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js.map +1 -0
  86. package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js} +422 -449
  87. package/dist/cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js.map +1 -0
  88. package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-Dz972UFx.js} +421 -421
  89. package/dist/cdn/chunks/MediaEditModal-Dz972UFx.js.map +1 -0
  90. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-C6Hqtp1H.js} +5 -5
  91. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-C6Hqtp1H.js.map} +1 -1
  92. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CrhZm-AW.js} +28 -28
  93. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CrhZm-AW.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-CWVtXLYa.js} +52 -52
  95. package/dist/cdn/chunks/MergeTagModeToggle-CWVtXLYa.js.map +1 -0
  96. package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js +128 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js +660 -0
  99. package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-C1Y5Ewo_.js} +22 -22
  101. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-C1Y5Ewo_.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-up4AqL7D.js} +44 -44
  103. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-up4AqL7D.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-B9lwEP_T.js} +77 -77
  105. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-B9lwEP_T.js.map} +1 -1
  106. package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-fAeHUyxb.js} +103 -106
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-fAeHUyxb.js.map} +1 -1
  108. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-DRDTLDyZ.js} +9 -9
  109. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-DRDTLDyZ.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-B6b5z-o3.js} +16 -16
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-B6b5z-o3.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js +266 -0
  113. package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js.map +1 -0
  114. package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js +212 -0
  115. package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js.map +1 -0
  116. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-BcO_-16H.js} +5 -5
  117. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-BcO_-16H.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-pmycpmTd.js +202 -0
  119. package/dist/cdn/chunks/TitleEditor-pmycpmTd.js.map +1 -0
  120. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
  121. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
  122. package/dist/cdn/chunks/Toolbar-BlWVQRcA.js +3626 -0
  123. package/dist/cdn/chunks/Toolbar-BlWVQRcA.js.map +1 -0
  124. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-ClSSGX7a.js} +20 -20
  125. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-ClSSGX7a.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-CZury5gU.js} +33 -33
  127. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-CZury5gU.js.map} +1 -1
  128. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-B8GPBKMq.js} +6 -6
  129. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-B8GPBKMq.js.map} +1 -1
  130. package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js +39 -0
  131. package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js.map +1 -0
  132. package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js +46 -0
  133. package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js.map +1 -0
  134. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-Cc6RJ27V.js} +5 -5
  135. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-Cc6RJ27V.js.map} +1 -1
  136. package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
  137. package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
  138. package/dist/cdn/chunks/composables-C1KU4ZHw.js +3039 -0
  139. package/dist/cdn/chunks/composables-C1KU4ZHw.js.map +1 -0
  140. package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-C2Zs5F1O.js} +75 -73
  141. package/dist/cdn/chunks/createCloudRuntime-C2Zs5F1O.js.map +1 -0
  142. package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
  143. package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
  144. package/dist/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
  145. package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
  146. package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
  147. package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
  148. package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
  149. package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
  150. package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-erQEOHZN.js} +781 -781
  151. package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-erQEOHZN.js.map} +1 -1
  152. package/dist/cdn/chunks/en-B6tLGRHq.js +1 -0
  153. package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
  154. package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
  155. package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
  156. package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
  157. package/dist/cdn/chunks/{extensions-CFF2KWy-.js → extensions-DcMKZpzh.js} +59 -59
  158. package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-DcMKZpzh.js.map} +1 -1
  159. package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
  160. package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
  161. package/dist/cdn/chunks/{icons-okSPsLOa.js → icons-Da9GKjPx.js} +188 -147
  162. package/dist/cdn/chunks/icons-Da9GKjPx.js.map +1 -0
  163. package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
  164. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
  165. package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
  166. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
  167. package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
  168. package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
  169. package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
  170. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
  171. package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js +290 -0
  172. package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js.map +1 -0
  173. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
  174. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
  175. package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
  176. package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
  177. package/dist/{preRenderCustomBlocks--_xc0XK3.js → cdn/chunks/preRenderCustomBlocks-f7GEKdvw.js} +5 -3
  178. package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-f7GEKdvw.js.map} +1 -1
  179. package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
  180. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
  181. package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js +61 -0
  182. package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js.map +1 -0
  183. package/dist/cdn/chunks/socialIcons-DeCYorUT.js +2638 -0
  184. package/dist/cdn/chunks/socialIcons-DeCYorUT.js.map +1 -0
  185. package/dist/cdn/chunks/{src-DEd87i_U.js → src-A_cKeTM_.js} +618 -461
  186. package/dist/cdn/chunks/src-A_cKeTM_.js.map +1 -0
  187. package/dist/cdn/chunks/src-BQUv2CYU.js +2606 -0
  188. package/dist/cdn/chunks/src-BQUv2CYU.js.map +1 -0
  189. package/dist/cdn/chunks/src-BWX_xVxO.js +671 -0
  190. package/dist/cdn/chunks/src-BWX_xVxO.js.map +1 -0
  191. package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
  192. package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
  193. package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
  194. package/dist/cdn/chunks/{tiptap-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
  195. package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
  196. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
  197. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
  198. package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
  199. package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
  200. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
  201. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js.map → useI18n-BnJYydPv.js.map} +1 -1
  202. package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js +33 -0
  203. package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js.map +1 -0
  204. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-DtYe8HIq.js} +5 -5
  205. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-DtYe8HIq.js.map} +1 -1
  206. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-B8ULmsnp.js} +6 -6
  207. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-B8ULmsnp.js.map} +1 -1
  208. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
  209. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
  210. package/dist/cdn/chunks/{useScrollToBlock-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
  211. package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
  212. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-MK8ga9q9.js} +2 -2
  213. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-MK8ga9q9.js.map} +1 -1
  214. package/dist/cdn/editor.css +1 -1
  215. package/dist/cdn/editor.js +2189 -1495
  216. package/dist/cdn/editor.js.map +1 -1
  217. package/dist/{check-BZ8o0eet.js → check-XMnOOIEC.js} +1 -1
  218. package/dist/{chevron-down-DfAAfILv.js → chevron-down-DmamTEWQ.js} +1 -1
  219. package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-BEFXOH27.js} +1 -1
  220. package/dist/{chevron-up-MhUf_azW.js → chevron-up-Dw7woXj8.js} +1 -1
  221. package/dist/{circle-alert-CShJwVFv.js → circle-alert-BTKC9vkq.js} +1 -1
  222. package/dist/{clock-CTfD6OCt.js → clock-BVT5u2uG.js} +1 -1
  223. package/dist/composables-CMIrGXJ1.js +4517 -0
  224. package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
  225. package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-CgDE3xAR.js} +16 -16
  226. package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
  227. package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
  228. package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
  229. package/dist/dist-6DU0me3E.js +4 -0
  230. package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
  231. package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
  232. package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
  233. package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
  234. package/dist/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
  235. package/dist/dist-CcOn7WCo.js +4 -0
  236. package/dist/dist-Cdkm20M6.js +2542 -0
  237. package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
  238. package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
  239. package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
  240. package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
  241. package/dist/{dist-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
  242. package/dist/{editor-modal-zaZHcmlO.js → editor-modal-BeX6otLk.js} +953 -952
  243. package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
  244. package/dist/en-Do0SU6tR.js +1 -0
  245. package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
  246. package/dist/{extensions-fo_c-vqf.js → extensions-BJ184osp.js} +173 -173
  247. package/dist/{eye-7W4t5e0Q.js → eye-ByMgHeA_.js} +1 -1
  248. package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
  249. package/dist/{image-BDiRFzSd.js → image-Ch8tR35K.js} +1 -1
  250. package/dist/index.d.ts +182 -14
  251. package/dist/{info-Cxi3-Kh9.js → info-DzSD-Wpk.js} +1 -1
  252. package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
  253. package/dist/keys-BCqskl51.js +9 -0
  254. package/dist/languageName-DEEOhDWI.js +10 -0
  255. package/dist/{link-ju_2Cmir.js → link-oDn9AR2w.js} +1 -1
  256. package/dist/{list-DYZJf0aZ.js → list-C5t07dp8.js} +1 -1
  257. package/dist/{loader-circle-BZRD0a4I.js → loader-circle-k6xvKgUB.js} +1 -1
  258. package/dist/{message-circle-DuEw4Zfx.js → message-circle-C23R6OJR.js} +1 -1
  259. package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
  260. package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
  261. package/dist/noticeTones-D7BPu-Le.js +14 -0
  262. package/dist/{package-CePMr2kK.js → package-C90eQ7NU.js} +1 -1
  263. package/dist/{pencil-D3aFCL7c.js → pencil-BK7GrQuA.js} +1 -1
  264. package/dist/plural-CyxrJXL1.js +15 -0
  265. package/dist/plus-Cr0Mis63.js +13 -0
  266. package/dist/{cdn/chunks/preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -6
  267. package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
  268. package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-_ZLOIEvA.js} +2 -12
  269. package/dist/rotate-ccw-CB5wsHwv.js +13 -0
  270. package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
  271. package/dist/sanitizeHtml-2rjV0r-6.js +962 -0
  272. package/dist/{search-CDrstRBv.js → search-BmrQNox8.js} +1 -1
  273. package/dist/{send-DROkPOaX.js → send-blAsIBBg.js} +1 -1
  274. package/dist/{smartphone-Bx6u_tjn.js → smartphone-BPpWYrwV.js} +1 -1
  275. package/dist/socialIcons-TFiOkpoU.js +2705 -0
  276. package/dist/{sparkles-CdaTtvoz.js → sparkles-OqIxrNp-.js} +1 -1
  277. package/dist/{square-BbCROH_f.js → square-BP-V7iT-.js} +1 -1
  278. package/dist/style.css +1 -1
  279. package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
  280. package/dist/templatical-editor.js +2438 -1752
  281. package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-4mwX2o-F.js} +13 -13
  282. package/dist/{trash-DxCd7zIy.js → trash-B99WixTA.js} +1 -1
  283. package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-CHMiDkHa.js} +1 -1
  284. package/dist/{upload-DuFEOi_0.js → upload-Cp8o-hrN.js} +1 -1
  285. package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
  286. package/dist/useEditorRoot-DY3mgcHm.js +7 -0
  287. package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
  288. package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
  289. package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
  290. package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
  291. package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
  292. package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-B35ObCGK.js} +5 -5
  293. package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
  294. package/dist/withCurrentFont-DJiQqZzL.js +18 -0
  295. package/dist/{x-BpfG7v9g.js → x-BIBStNMS.js} +1 -1
  296. package/package.json +21 -21
  297. package/dist/AiAltTextPopover-DawbUywc.js +0 -105
  298. package/dist/AiChatPanel-CupPhmsN.js +0 -548
  299. package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
  300. package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
  301. package/dist/CollaborationNotices-CTw4JThq.js +0 -75
  302. package/dist/CommentsPanel-DwwFuh1h.js +0 -16
  303. package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
  304. package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
  305. package/dist/IssuesPanel-4ykrf1ax.js +0 -359
  306. package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
  307. package/dist/ParagraphEditor-CWXfurGh.js +0 -796
  308. package/dist/TemplateSettings-CS0f1Ues.js +0 -236
  309. package/dist/TestEmailModal-DBD0X5nV.js +0 -209
  310. package/dist/TitleEditor-DSqtle77.js +0 -198
  311. package/dist/ToggleSwitch-JykPyD_8.js +0 -36
  312. package/dist/Toolbar-BZPFfKrf.js +0 -3145
  313. package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
  314. package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
  315. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
  316. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
  317. package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
  318. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
  319. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
  320. package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
  321. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
  322. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
  323. package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
  324. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
  325. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
  326. package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
  327. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
  328. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
  329. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
  330. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
  331. package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
  332. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
  333. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
  334. package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
  335. package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
  336. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
  337. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
  338. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
  339. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
  340. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
  341. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
  342. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
  343. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
  344. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
  345. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
  346. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
  347. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
  348. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
  349. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
  350. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
  351. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
  352. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
  353. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
  354. package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
  355. package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
  356. package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
  357. package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
  358. package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
  359. package/dist/cdn/chunks/en-TIqv4ag3.js +0 -1
  360. package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
  361. package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
  362. package/dist/cdn/chunks/icons-okSPsLOa.js.map +0 -1
  363. package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
  364. package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
  365. package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
  366. package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
  367. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
  368. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
  369. package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
  370. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
  371. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
  372. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
  373. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
  374. package/dist/cdn/chunks/src-C7bkofBL.js +0 -647
  375. package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
  376. package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
  377. package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
  378. package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
  379. package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
  380. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
  381. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
  382. package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
  383. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
  384. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
  385. package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
  386. package/dist/dist-CKi_npZM.js +0 -1344
  387. package/dist/dist-DyFArF_G.js +0 -4
  388. package/dist/dist-pA3ooG6N.js +0 -4
  389. package/dist/en-Db76vJbY.js +0 -1
  390. package/dist/keys-BgRERHzu.js +0 -9
  391. package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
  392. package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
  393. package/dist/socialIcons-D7MGsg0d.js +0 -2075
  394. package/dist/useEditorCore-BSo2sSID.js +0 -4059
  395. package/dist/useEditorRoot-BMcoCLBx.js +0 -7
  396. package/dist/usePopoverPosition-DV1PxL66.js +0 -68
  397. package/dist/withCurrentFont-B22FXAF5.js +0 -18
@@ -0,0 +1,3711 @@
1
+ import { t as e } from "./rolldown-runtime-CGnMp29N.js";
2
+ import { B as t, F as n, Ft as r, L as i, M as a, Mt as o, P as s, Pt as c, Q as l, U as u, W as d, Z as f, _ as p, c as m, ct as h, d as g, et as _, f as v, g as y, l as b, m as x, r as S, u as C, v as w, w as T, y as E } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
3
+ import { a as D, o as O } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
4
+ import { Bt as k, Dt as A, O as j, at as M, en as N, f as P, g as F, ht as I, i as L, k as ee, n as te, nn as ne, ot as R, pt as re, r as ie, t as ae } from "./dist-Cdkm20M6.js";
5
+ import { B as oe, T as se, _ as ce, b as le, d as ue, f as de, g as fe, h as pe, i as me, k as he, l as ge, m as _e, p as ve, r as z, s as ye, u as be, v as xe } from "./socialIcons-TFiOkpoU.js";
6
+ import { t as Se } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
7
+ import { t as Ce } from "./createLucideIcon-CgDE3xAR.js";
8
+ import { c as B } from "./LogicTagInsertButton-DgTJ6Lvx.js";
9
+ import { t as we } from "./chevron-down-DmamTEWQ.js";
10
+ import { t as Te } from "./circle-alert-BTKC9vkq.js";
11
+ import { n as Ee, t as De } from "./blockTypeIcons-BUyPZ7Su.js";
12
+ import { n as Oe } from "./upload-Cp8o-hrN.js";
13
+ import { t as ke } from "./image-Ch8tR35K.js";
14
+ import { t as Ae } from "./info-DzSD-Wpk.js";
15
+ import { t as je } from "./link-oDn9AR2w.js";
16
+ import { n as Me, t as Ne } from "./smartphone-BPpWYrwV.js";
17
+ import { t as V } from "./plus-Cr0Mis63.js";
18
+ import { t as Pe } from "./refresh-cw-_ZLOIEvA.js";
19
+ import { n as Fe, r as Ie, t as Le } from "./text-align-start-4mwX2o-F.js";
20
+ import { t as Re } from "./trash-B99WixTA.js";
21
+ import { t as ze } from "./x-BIBStNMS.js";
22
+ import { B as Be, C as Ve, O as He, T as Ue, U as We, X as Ge, _ as Ke, b as qe, h as Je, ot as Ye, p as Xe, r as Ze, v as Qe } from "./keys-BCqskl51.js";
23
+ import { t as H } from "./useI18n-CgtvtF4C.js";
24
+ import { n as $e } from "./useLocalizedDisplay-DNNwDRxL.js";
25
+ import { t as et } from "./languageName-DEEOhDWI.js";
26
+ import { S as tt, _ as U, b as nt, c as rt, g as W, h as G, r as it, v as K, y as at } from "./styleConstants-CgiNKdnc.js";
27
+ import { _ as ot } from "./dist-CX7skkvG.js";
28
+ import { c as st, r as ct } from "./usePopoverPosition-VDQjyX_A.js";
29
+ import { n as q, t as lt } from "./MergeTagTextarea-DZz1L9DE.js";
30
+ import { t as J } from "./ToggleSwitch-R3wCCYE6.js";
31
+ import { n as ut, t as dt } from "./withCurrentFont-DJiQqZzL.js";
32
+ import { t as Y } from "./MergeTagInput-B_51YcQO.js";
33
+ var ft = Ce({
34
+ name: "lock-open",
35
+ size: 24,
36
+ node: [["rect", {
37
+ width: "18",
38
+ height: "11",
39
+ x: "3",
40
+ y: "11",
41
+ rx: "2",
42
+ ry: "2",
43
+ key: "1w4ew1"
44
+ }], ["path", {
45
+ d: "M7 11V7a5 5 0 0 1 9.9-1",
46
+ key: "1mm8w8"
47
+ }]],
48
+ aliases: ["unlock"]
49
+ }), pt = Ce({
50
+ name: "lock",
51
+ size: 24,
52
+ node: [["rect", {
53
+ width: "18",
54
+ height: "11",
55
+ x: "3",
56
+ y: "11",
57
+ rx: "2",
58
+ ry: "2",
59
+ key: "1w4ew1"
60
+ }], ["path", {
61
+ d: "M7 11V7a5 5 0 0 1 10 0v4",
62
+ key: "fwvmzm"
63
+ }]]
64
+ }), mt = Ce({
65
+ name: "unlink",
66
+ size: 24,
67
+ node: [
68
+ ["path", {
69
+ d: "m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",
70
+ key: "yqzxt4"
71
+ }],
72
+ ["path", {
73
+ d: "m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",
74
+ key: "4qinb0"
75
+ }],
76
+ ["line", {
77
+ x1: "8",
78
+ x2: "8",
79
+ y1: "2",
80
+ y2: "5",
81
+ key: "1041cp"
82
+ }],
83
+ ["line", {
84
+ x1: "2",
85
+ x2: "5",
86
+ y1: "8",
87
+ y2: "8",
88
+ key: "14m1p5"
89
+ }],
90
+ ["line", {
91
+ x1: "16",
92
+ x2: "16",
93
+ y1: "19",
94
+ y2: "22",
95
+ key: "rzdirn"
96
+ }],
97
+ ["line", {
98
+ x1: "19",
99
+ x2: "22",
100
+ y1: "16",
101
+ y2: "16",
102
+ key: "ox905f"
103
+ }]
104
+ ]
105
+ }), ht = [
106
+ "aria-checked",
107
+ "aria-label",
108
+ "disabled",
109
+ "aria-disabled",
110
+ "title",
111
+ "onClick"
112
+ ], gt = { key: 1 }, X = /* @__PURE__ */ E({
113
+ __name: "SlidingPillSelect",
114
+ props: {
115
+ options: {},
116
+ modelValue: {}
117
+ },
118
+ emits: ["update:modelValue"],
119
+ setup(e, { emit: t }) {
120
+ let n = e, o = t, l = m(() => n.options.findIndex((e) => e.value === n.modelValue)), u = m(() => `translateX(${Math.max(l.value, 0) * 100}%)`);
121
+ return (t, n) => (a(), v("div", {
122
+ role: "radiogroup",
123
+ class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
124
+ style: c({
125
+ gridTemplateColumns: `repeat(${e.options.length}, 1fr)`,
126
+ backgroundColor: "var(--tpl-bg-hover)"
127
+ })
128
+ }, [l.value >= 0 ? (a(), v("div", {
129
+ key: 0,
130
+ class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
131
+ style: c({
132
+ left: "4px",
133
+ width: `calc((100% - 8px) / ${e.options.length})`,
134
+ transform: u.value,
135
+ backgroundColor: "var(--tpl-bg)",
136
+ boxShadow: "var(--tpl-shadow)",
137
+ transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
138
+ })
139
+ }, null, 4)) : g("", !0), (a(!0), v(S, null, s(e.options, (t) => (a(), v("button", {
140
+ key: t.value,
141
+ role: "radio",
142
+ "aria-checked": e.modelValue === t.value,
143
+ "aria-label": t.label,
144
+ disabled: t.disabled,
145
+ "aria-disabled": t.disabled ? "true" : void 0,
146
+ class: "tpl:relative tpl:z-10 tpl:flex tpl:cursor-pointer tpl:disabled:cursor-not-allowed tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:py-[5px] tpl:text-xs tpl:font-medium",
147
+ style: c({
148
+ color: t.disabled ? "var(--tpl-text-dim)" : e.modelValue === t.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
149
+ transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
150
+ }),
151
+ title: t.label,
152
+ onClick: (e) => t.disabled || o("update:modelValue", t.value)
153
+ }, [t.icon ? (a(), C(i(t.icon), {
154
+ key: 0,
155
+ size: 14,
156
+ "stroke-width": 2
157
+ })) : (a(), v("span", gt, r(t.label), 1))], 12, ht))), 128))], 4));
158
+ }
159
+ }), _t = { class: "tpl:flex tpl:items-stretch" }, vt = [
160
+ "data-testid",
161
+ "value",
162
+ "min",
163
+ "max"
164
+ ], Z = /* @__PURE__ */ E({
165
+ __name: "NumberWithSuffix",
166
+ props: {
167
+ modelValue: {},
168
+ min: {},
169
+ max: {},
170
+ suffix: {},
171
+ testid: {}
172
+ },
173
+ emits: ["update:modelValue"],
174
+ setup(e, { emit: t }) {
175
+ let n = t;
176
+ function i(e) {
177
+ let t = e.target;
178
+ t.validity?.badInput || n("update:modelValue", Number(t.value));
179
+ }
180
+ return (t, n) => (a(), v("div", _t, [b("input", {
181
+ type: "number",
182
+ "data-testid": e.testid,
183
+ class: o(h(W)),
184
+ value: e.modelValue,
185
+ min: e.min,
186
+ max: e.max,
187
+ onInput: i
188
+ }, null, 42, vt), b("span", { class: o(h(U)) }, r(e.suffix), 3)]));
189
+ }
190
+ }), yt = [
191
+ "aria-pressed",
192
+ "aria-label",
193
+ "title",
194
+ "data-testid"
195
+ ], bt = /* @__PURE__ */ E({
196
+ __name: "LinkToggle",
197
+ props: {
198
+ linked: { type: Boolean },
199
+ linkLabel: {},
200
+ unlinkLabel: {},
201
+ testid: {}
202
+ },
203
+ emits: ["toggle"],
204
+ setup(e, { emit: t }) {
205
+ let n = t;
206
+ return (t, r) => (a(), v("button", {
207
+ type: "button",
208
+ class: o(["tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", e.linked ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
209
+ "aria-pressed": e.linked ? "true" : "false",
210
+ "aria-label": e.linked ? e.unlinkLabel : e.linkLabel,
211
+ title: e.linked ? e.unlinkLabel : e.linkLabel,
212
+ "data-testid": e.testid,
213
+ onClick: r[0] ||= (e) => n("toggle")
214
+ }, [e.linked ? (a(), C(h(je), {
215
+ key: 0,
216
+ size: 14,
217
+ "stroke-width": 2
218
+ })) : (a(), C(h(mt), {
219
+ key: 1,
220
+ size: 14,
221
+ "stroke-width": 2
222
+ }))], 10, yt));
223
+ }
224
+ }), xt = {
225
+ key: 0,
226
+ class: "tpl:mb-3.5"
227
+ }, St = { class: "tpl:mb-3.5" }, Ct = { class: "tpl:mb-3.5" }, wt = /* @__PURE__ */ E({
228
+ __name: "BorderControl",
229
+ props: {
230
+ path: {},
231
+ modelValue: {},
232
+ testidPrefix: {}
233
+ },
234
+ emits: ["update:modelValue"],
235
+ setup(e, { emit: n }) {
236
+ let i = e, s = n, { t: c } = H(), l = {
237
+ width: 0,
238
+ style: "solid",
239
+ color: "#000000"
240
+ };
241
+ function d(e, t) {
242
+ return e.width === t.width && e.style === t.style && e.color === t.color;
243
+ }
244
+ let f = m(() => {
245
+ let e = i.modelValue;
246
+ return !e || L.every((t) => d(e[t], e.top));
247
+ }), y = _(f.value);
248
+ t(f, (e) => {
249
+ !e && y.value && (y.value = !1);
250
+ });
251
+ let x = _("top"), w = m(() => {
252
+ let e = y.value ? "top" : x.value;
253
+ return i.modelValue?.[e] ?? l;
254
+ }), T = (e) => !!e && e.width > 0;
255
+ function E(e) {
256
+ if (y.value) {
257
+ s("update:modelValue", T(e) ? ne(e) : void 0);
258
+ return;
259
+ }
260
+ let t = {
261
+ ...i.modelValue ?? ne(l),
262
+ [x.value]: e
263
+ }, n = L.some((e) => T(t[e]));
264
+ s("update:modelValue", n ? t : void 0);
265
+ }
266
+ function D(e) {
267
+ E({
268
+ ...w.value,
269
+ width: e > 0 ? e : 0
270
+ });
271
+ }
272
+ function O(e) {
273
+ E({
274
+ ...w.value,
275
+ ...e
276
+ });
277
+ }
278
+ function k() {
279
+ if (y.value) {
280
+ y.value = !1;
281
+ return;
282
+ }
283
+ y.value = !0;
284
+ let e = i.modelValue;
285
+ if (!e) return;
286
+ let t = T(e[x.value]) ? e[x.value] : L.map((t) => e[t]).find(T);
287
+ s("update:modelValue", t ? ne(t) : void 0);
288
+ }
289
+ let A = m(() => L.map((e) => ({
290
+ value: e,
291
+ label: c.spacingControl[e]
292
+ })));
293
+ return (t, n) => (a(), C(q, {
294
+ path: e.path,
295
+ label: h(c).blockSettings.border
296
+ }, {
297
+ "label-actions": u(() => [p(bt, {
298
+ linked: y.value,
299
+ "link-label": h(c).blockSettings.linkSides,
300
+ "unlink-label": h(c).blockSettings.unlinkSides,
301
+ testid: `${e.testidPrefix}-border-link`,
302
+ onToggle: k
303
+ }, null, 8, [
304
+ "linked",
305
+ "link-label",
306
+ "unlink-label",
307
+ "testid"
308
+ ])]),
309
+ default: u(() => [
310
+ y.value ? g("", !0) : (a(), v("div", xt, [b("label", { class: o(h(K)) }, r(h(c).blockSettings.borderSide), 3), p(X, {
311
+ options: A.value,
312
+ "model-value": x.value,
313
+ "onUpdate:modelValue": n[0] ||= (e) => x.value = e
314
+ }, null, 8, ["options", "model-value"])])),
315
+ b("div", St, [b("label", { class: o(h(K)) }, r(h(c).blockSettings.borderWidth), 3), p(Z, {
316
+ "model-value": w.value.width,
317
+ min: 0,
318
+ suffix: "px",
319
+ testid: `${e.testidPrefix}-border-width-input`,
320
+ "onUpdate:modelValue": D
321
+ }, null, 8, ["model-value", "testid"])]),
322
+ w.value.width > 0 ? (a(), v(S, { key: 1 }, [b("div", Ct, [b("label", { class: o(h(K)) }, r(h(c).blockSettings.borderStyle), 3), p(X, {
323
+ options: [
324
+ {
325
+ value: "solid",
326
+ label: h(c).divider.solid
327
+ },
328
+ {
329
+ value: "dashed",
330
+ label: h(c).divider.dashed
331
+ },
332
+ {
333
+ value: "dotted",
334
+ label: h(c).divider.dotted
335
+ }
336
+ ],
337
+ "model-value": w.value.style,
338
+ "onUpdate:modelValue": n[1] ||= (e) => O({ style: e })
339
+ }, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: o(h(K)) }, r(h(c).blockSettings.borderColor), 3), p(B, {
340
+ "model-value": w.value.color,
341
+ "onUpdate:modelValue": n[2] ||= (e) => O({ color: e })
342
+ }, null, 8, ["model-value"])])], 64)) : g("", !0)
343
+ ]),
344
+ _: 1
345
+ }, 8, ["path", "label"]));
346
+ }
347
+ }), Tt = {
348
+ key: 1,
349
+ class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
350
+ }, Et = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Dt = /* @__PURE__ */ E({
351
+ __name: "RadiusControl",
352
+ props: {
353
+ path: {},
354
+ modelValue: {},
355
+ label: {},
356
+ testidPrefix: {},
357
+ max: {}
358
+ },
359
+ emits: ["update:modelValue"],
360
+ setup(e, { emit: n }) {
361
+ let i = e, o = n, { t: c } = H(), l = {
362
+ topLeft: "cornerTopLeft",
363
+ topRight: "cornerTopRight",
364
+ bottomRight: "cornerBottomRight",
365
+ bottomLeft: "cornerBottomLeft"
366
+ }, d = [
367
+ "topLeft",
368
+ "topRight",
369
+ "bottomLeft",
370
+ "bottomRight"
371
+ ], f = m(() => {
372
+ let e = i.modelValue ?? 0;
373
+ return typeof e == "number" ? {
374
+ topLeft: e,
375
+ topRight: e,
376
+ bottomRight: e,
377
+ bottomLeft: e
378
+ } : e;
379
+ }), g = m(() => ie.every((e) => f.value[e] === f.value.topLeft)), y = _(g.value);
380
+ t(g, (e) => {
381
+ !e && y.value && (y.value = !1);
382
+ });
383
+ function x(e) {
384
+ return Number.isFinite(e) && e >= 0;
385
+ }
386
+ function w(e) {
387
+ x(e) && o("update:modelValue", e);
388
+ }
389
+ function T(e, t) {
390
+ x(t) && o("update:modelValue", {
391
+ ...f.value,
392
+ [e]: t
393
+ });
394
+ }
395
+ function E() {
396
+ y.value = !y.value, y.value && o("update:modelValue", f.value.topLeft);
397
+ }
398
+ return (t, n) => (a(), C(q, {
399
+ path: e.path,
400
+ label: e.label
401
+ }, {
402
+ "label-actions": u(() => [p(bt, {
403
+ linked: y.value,
404
+ "link-label": h(c).blockSettings.linkCorners,
405
+ "unlink-label": h(c).blockSettings.unlinkCorners,
406
+ testid: `${e.testidPrefix}-border-radius-link`,
407
+ onToggle: E
408
+ }, null, 8, [
409
+ "linked",
410
+ "link-label",
411
+ "unlink-label",
412
+ "testid"
413
+ ])]),
414
+ default: u(() => [y.value ? (a(), C(Z, {
415
+ key: 0,
416
+ "model-value": f.value.topLeft,
417
+ min: 0,
418
+ max: e.max,
419
+ suffix: "px",
420
+ testid: `${e.testidPrefix}-border-radius-input`,
421
+ "onUpdate:modelValue": w
422
+ }, null, 8, [
423
+ "model-value",
424
+ "max",
425
+ "testid"
426
+ ])) : (a(), v("div", Tt, [(a(), v(S, null, s(d, (t) => b("div", { key: t }, [b("label", Et, r(h(c).blockSettings[l[t]]), 1), p(Z, {
427
+ "model-value": f.value[t],
428
+ min: 0,
429
+ max: e.max,
430
+ suffix: "px",
431
+ testid: `${e.testidPrefix}-border-radius-${t}-input`,
432
+ "onUpdate:modelValue": (e) => T(t, e)
433
+ }, null, 8, [
434
+ "model-value",
435
+ "max",
436
+ "testid",
437
+ "onUpdate:modelValue"
438
+ ])])), 64))]))]),
439
+ _: 1
440
+ }, 8, ["path", "label"]));
441
+ }
442
+ }), Ot = ["value"], kt = { value: "" }, At = ["value"], jt = { class: "tpl:flex tpl:items-stretch" }, Mt = ["value"], Nt = ["value"], Pt = { value: "auto" }, Ft = { value: "full" }, It = { value: "custom" }, Lt = {
443
+ key: 0,
444
+ class: "tpl:mt-2 tpl:flex tpl:items-stretch"
445
+ }, Rt = ["value"], zt = 200, Bt = /* @__PURE__ */ E({
446
+ __name: "ButtonToolbar",
447
+ props: {
448
+ block: {},
449
+ fontFamilies: {}
450
+ },
451
+ emits: ["update"],
452
+ setup(e, { emit: t }) {
453
+ let n = e, i = t, { t: c } = H(), l = m(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
454
+ function d(e, t) {
455
+ i("update", { [e]: t });
456
+ }
457
+ function f(e) {
458
+ e === "full" ? d("width", "full") : e === "custom" ? d("width", typeof n.block.width == "number" ? n.block.width : zt) : d("width", void 0);
459
+ }
460
+ function _(e) {
461
+ let t = Number(e);
462
+ !Number.isFinite(t) || t <= 0 || d("width", t);
463
+ }
464
+ return (t, n) => (a(), v(S, null, [
465
+ p(q, {
466
+ label: h(c).button.fontFamily,
467
+ class: "tpl:mb-3.5",
468
+ path: "fontFamily"
469
+ }, {
470
+ default: u(() => [b("select", {
471
+ class: o(h(G)),
472
+ value: h(dt)(e.block.fontFamily),
473
+ onChange: n[0] ||= (e) => d("fontFamily", e.target.value || void 0)
474
+ }, [b("option", kt, r(h(c).button.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
475
+ key: e.value,
476
+ value: e.value
477
+ }, r(e.label), 9, At))), 128))], 42, Ot)]),
478
+ _: 1
479
+ }, 8, ["label"]),
480
+ p(q, {
481
+ label: h(c).button.text,
482
+ class: "tpl:mb-3.5",
483
+ path: "text"
484
+ }, {
485
+ default: u(() => [p(Y, {
486
+ "model-value": e.block.text,
487
+ type: "text",
488
+ "onUpdate:modelValue": n[1] ||= (e) => d("text", e)
489
+ }, null, 8, ["model-value"])]),
490
+ _: 1
491
+ }, 8, ["label"]),
492
+ p(q, {
493
+ label: h(c).button.url,
494
+ class: "tpl:mb-3.5",
495
+ path: "url"
496
+ }, {
497
+ default: u(() => [p(Y, {
498
+ "model-value": e.block.url,
499
+ type: "url",
500
+ placeholder: h(c).button.urlPlaceholder,
501
+ "onUpdate:modelValue": n[2] ||= (e) => d("url", e)
502
+ }, null, 8, ["model-value", "placeholder"]), e.block.url ? (a(), C(q, {
503
+ key: 0,
504
+ path: "openInNewTab",
505
+ label: h(c).button.openInNewTab
506
+ }, {
507
+ "label-actions": u(({ controlId: t }) => [p(J, {
508
+ "control-id": t,
509
+ "hide-label": "",
510
+ class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
511
+ "model-value": e.block.openInNewTab ?? !1,
512
+ label: h(c).button.openInNewTab,
513
+ "onUpdate:modelValue": n[3] ||= (e) => d("openInNewTab", e)
514
+ }, null, 8, [
515
+ "control-id",
516
+ "model-value",
517
+ "label"
518
+ ])]),
519
+ _: 1
520
+ }, 8, ["label"])) : g("", !0)]),
521
+ _: 1
522
+ }, 8, ["label"]),
523
+ p(q, {
524
+ label: h(c).button.background,
525
+ class: "tpl:mb-3.5",
526
+ path: "backgroundColor"
527
+ }, {
528
+ default: u(() => [p(B, {
529
+ "model-value": e.block.backgroundColor,
530
+ "allow-transparent": "",
531
+ "onUpdate:modelValue": n[4] ||= (e) => d("backgroundColor", e)
532
+ }, null, 8, ["model-value"])]),
533
+ _: 1
534
+ }, 8, ["label"]),
535
+ p(q, {
536
+ label: h(c).button.textColor,
537
+ class: "tpl:mb-3.5",
538
+ path: "textColor"
539
+ }, {
540
+ default: u(() => [p(B, {
541
+ "model-value": e.block.textColor,
542
+ "onUpdate:modelValue": n[5] ||= (e) => d("textColor", e)
543
+ }, null, 8, ["model-value"])]),
544
+ _: 1
545
+ }, 8, ["label"]),
546
+ p(wt, {
547
+ path: "border",
548
+ "model-value": e.block.border,
549
+ "testid-prefix": "button",
550
+ "onUpdate:modelValue": n[6] ||= (e) => d("border", e)
551
+ }, null, 8, ["model-value"]),
552
+ p(Dt, {
553
+ path: "borderRadius",
554
+ "model-value": e.block.borderRadius,
555
+ label: h(c).button.borderRadius,
556
+ max: 50,
557
+ "testid-prefix": "button",
558
+ "onUpdate:modelValue": n[7] ||= (e) => d("borderRadius", e)
559
+ }, null, 8, ["model-value", "label"]),
560
+ p(q, {
561
+ label: h(c).button.fontSize,
562
+ class: "tpl:mb-3.5",
563
+ path: "fontSize"
564
+ }, {
565
+ default: u(() => [b("div", jt, [b("input", {
566
+ type: "number",
567
+ class: o(h(W)),
568
+ value: e.block.fontSize,
569
+ min: "10",
570
+ max: "36",
571
+ onInput: n[8] ||= (e) => d("fontSize", Number(e.target.value))
572
+ }, null, 42, Mt), b("span", { class: o(h(U)) }, "px", 2)])]),
573
+ _: 1
574
+ }, 8, ["label"]),
575
+ p(q, {
576
+ label: h(c).button.width,
577
+ class: "tpl:mb-3.5",
578
+ path: "width"
579
+ }, {
580
+ default: u(() => [b("select", {
581
+ class: o(h(G)),
582
+ value: l.value,
583
+ onChange: n[9] ||= (e) => f(e.target.value)
584
+ }, [
585
+ b("option", Pt, r(h(c).button.widthAuto), 1),
586
+ b("option", Ft, r(h(c).button.fullWidth), 1),
587
+ b("option", It, r(h(c).button.widthCustom), 1)
588
+ ], 42, Nt), l.value === "custom" ? (a(), v("div", Lt, [b("input", {
589
+ type: "number",
590
+ class: o(h(W)),
591
+ value: typeof e.block.width == "number" ? e.block.width : zt,
592
+ min: "20",
593
+ onInput: n[10] ||= (e) => _(e.target.value)
594
+ }, null, 42, Rt), b("span", { class: o(h(U)) }, "px", 2)])) : g("", !0)]),
595
+ _: 1
596
+ }, 8, ["label"]),
597
+ p(q, {
598
+ label: h(c).title.align,
599
+ class: "tpl:mb-3.5",
600
+ path: "align"
601
+ }, {
602
+ default: u(() => [p(X, {
603
+ options: [
604
+ {
605
+ value: "left",
606
+ label: h(c).title.alignLeft
607
+ },
608
+ {
609
+ value: "center",
610
+ label: h(c).title.alignCenter
611
+ },
612
+ {
613
+ value: "right",
614
+ label: h(c).title.alignRight
615
+ }
616
+ ],
617
+ "model-value": e.block.align ?? "center",
618
+ "onUpdate:modelValue": n[11] ||= (e) => d("align", e)
619
+ }, null, 8, ["options", "model-value"])]),
620
+ _: 1
621
+ }, 8, ["label"])
622
+ ], 64));
623
+ }
624
+ }), Vt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Ht = { class: "tpl:flex tpl:items-center" }, Ut = ["aria-label"], Wt = ["value", "aria-label"], Gt = ["aria-label"], Kt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, qt = { class: "tpl:flex tpl:items-center" }, Jt = ["aria-label"], Yt = ["value", "aria-label"], Xt = ["aria-label"], Zt = ["aria-label", "title"], Qt = { class: "tpl:flex tpl:items-center" }, $t = ["aria-label"], en = ["value", "aria-label"], tn = ["aria-label"], nn = { class: "tpl:flex tpl:items-center" }, rn = ["aria-label"], an = ["value", "aria-label"], on = ["aria-label"], Q = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", sn = "tpl:w-10 tpl:h-8 tpl:text-center tpl:text-xs tpl:font-medium tpl:border-y tpl:border-x-0 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", cn = /*#__PURE__*/ Se(/* @__PURE__ */ E({
625
+ __name: "SpacingControl",
626
+ props: {
627
+ path: {},
628
+ modelValue: {},
629
+ label: {}
630
+ },
631
+ emits: ["update:modelValue"],
632
+ setup(e, { emit: n }) {
633
+ let r = e, i = n, { t: s } = H(), c = m(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), l = _(c.value);
634
+ t(c, (e) => {
635
+ !e && l.value && (l.value = !1);
636
+ });
637
+ function d(e, t) {
638
+ let n = r.modelValue[e], a = Math.max(0, n + t);
639
+ l.value ? i("update:modelValue", {
640
+ top: a,
641
+ right: a,
642
+ bottom: a,
643
+ left: a
644
+ }) : i("update:modelValue", {
645
+ ...r.modelValue,
646
+ [e]: a
647
+ });
648
+ }
649
+ function f(e, t) {
650
+ let n = Math.max(0, t);
651
+ l.value ? i("update:modelValue", {
652
+ top: n,
653
+ right: n,
654
+ bottom: n,
655
+ left: n
656
+ }) : i("update:modelValue", {
657
+ ...r.modelValue,
658
+ [e]: n
659
+ });
660
+ }
661
+ function g() {
662
+ if (l.value = !l.value, l.value) {
663
+ let e = r.modelValue.top;
664
+ i("update:modelValue", {
665
+ top: e,
666
+ right: e,
667
+ bottom: e,
668
+ left: e
669
+ });
670
+ }
671
+ }
672
+ return (t, n) => (a(), C(q, {
673
+ class: "spacing-control",
674
+ path: e.path,
675
+ label: e.label
676
+ }, {
677
+ default: u(() => [b("div", Vt, [
678
+ b("div", Ht, [
679
+ b("button", {
680
+ "aria-label": h(s).spacingControl.decreaseTop,
681
+ class: o([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
682
+ onClick: n[0] ||= (e) => d("top", -1)
683
+ }, [p(h(Ee), {
684
+ size: 12,
685
+ "stroke-width": 2
686
+ })], 10, Ut),
687
+ b("input", {
688
+ type: "number",
689
+ class: o(sn),
690
+ value: e.modelValue.top,
691
+ "aria-label": h(s).spacingControl.top,
692
+ min: "0",
693
+ onInput: n[1] ||= (e) => f("top", Number(e.target.value))
694
+ }, null, 40, Wt),
695
+ b("button", {
696
+ "aria-label": h(s).spacingControl.increaseTop,
697
+ class: o([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
698
+ onClick: n[2] ||= (e) => d("top", 1)
699
+ }, [p(h(V), {
700
+ size: 12,
701
+ "stroke-width": 2
702
+ })], 10, Gt)
703
+ ]),
704
+ b("div", Kt, [
705
+ b("div", qt, [
706
+ b("button", {
707
+ "aria-label": h(s).spacingControl.decreaseLeft,
708
+ class: o([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
709
+ onClick: n[3] ||= (e) => d("left", -1)
710
+ }, [p(h(Ee), {
711
+ size: 12,
712
+ "stroke-width": 2
713
+ })], 10, Jt),
714
+ b("input", {
715
+ type: "number",
716
+ class: o(sn),
717
+ value: e.modelValue.left,
718
+ "aria-label": h(s).spacingControl.left,
719
+ min: "0",
720
+ onInput: n[4] ||= (e) => f("left", Number(e.target.value))
721
+ }, null, 40, Yt),
722
+ b("button", {
723
+ "aria-label": h(s).spacingControl.increaseLeft,
724
+ class: o([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
725
+ onClick: n[5] ||= (e) => d("left", 1)
726
+ }, [p(h(V), {
727
+ size: 12,
728
+ "stroke-width": 2
729
+ })], 10, Xt)
730
+ ]),
731
+ b("button", {
732
+ class: o(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", l.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
733
+ "aria-label": l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
734
+ title: l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
735
+ onClick: g
736
+ }, [l.value ? (a(), C(h(pt), {
737
+ key: 0,
738
+ size: 14,
739
+ "stroke-width": 2
740
+ })) : (a(), C(h(ft), {
741
+ key: 1,
742
+ size: 14,
743
+ "stroke-width": 2
744
+ }))], 10, Zt),
745
+ b("div", Qt, [
746
+ b("button", {
747
+ "aria-label": h(s).spacingControl.decreaseRight,
748
+ class: o([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
749
+ onClick: n[6] ||= (e) => d("right", -1)
750
+ }, [p(h(Ee), {
751
+ size: 12,
752
+ "stroke-width": 2
753
+ })], 10, $t),
754
+ b("input", {
755
+ type: "number",
756
+ class: o(sn),
757
+ value: e.modelValue.right,
758
+ "aria-label": h(s).spacingControl.right,
759
+ min: "0",
760
+ onInput: n[7] ||= (e) => f("right", Number(e.target.value))
761
+ }, null, 40, en),
762
+ b("button", {
763
+ "aria-label": h(s).spacingControl.increaseRight,
764
+ class: o([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
765
+ onClick: n[8] ||= (e) => d("right", 1)
766
+ }, [p(h(V), {
767
+ size: 12,
768
+ "stroke-width": 2
769
+ })], 10, tn)
770
+ ])
771
+ ]),
772
+ b("div", nn, [
773
+ b("button", {
774
+ "aria-label": h(s).spacingControl.decreaseBottom,
775
+ class: o([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
776
+ onClick: n[9] ||= (e) => d("bottom", -1)
777
+ }, [p(h(Ee), {
778
+ size: 12,
779
+ "stroke-width": 2
780
+ })], 10, rn),
781
+ b("input", {
782
+ type: "number",
783
+ class: o(sn),
784
+ value: e.modelValue.bottom,
785
+ "aria-label": h(s).spacingControl.bottom,
786
+ min: "0",
787
+ onInput: n[10] ||= (e) => f("bottom", Number(e.target.value))
788
+ }, null, 40, an),
789
+ b("button", {
790
+ "aria-label": h(s).spacingControl.increaseBottom,
791
+ class: o([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
792
+ onClick: n[11] ||= (e) => d("bottom", 1)
793
+ }, [p(h(V), {
794
+ size: 12,
795
+ "stroke-width": 2
796
+ })], 10, on)
797
+ ])
798
+ ])]),
799
+ _: 1
800
+ }, 8, ["path", "label"]));
801
+ }
802
+ }), [["__scopeId", "data-v-94c2e6ff"]]);
803
+ // src/composables/useNaturalImageSize.ts
804
+ function ln(e) {
805
+ let n = _(null), r = () => {};
806
+ return t(e, (e) => {
807
+ r(), n.value = null, e && (r = ve(e, (e) => {
808
+ n.value = e;
809
+ }));
810
+ }, { immediate: !0 }), n;
811
+ }
812
+ function un() {
813
+ let e = T(Ve, null);
814
+ return async (t) => _e(e ? await dn(e, t) : t);
815
+ }
816
+ function dn(e, n) {
817
+ let r = (e) => typeof e == "string" && e.length > 0 ? e : n;
818
+ e.lookup(n);
819
+ let i = e.get(n);
820
+ return i === void 0 ? new Promise((i) => {
821
+ let a = t(() => e.get(n), (e) => {
822
+ e !== void 0 && (a(), i(r(e)));
823
+ });
824
+ }) : Promise.resolve(r(i));
825
+ }
826
+ // src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
827
+ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"], hn = ["data-testid"], gn = ["aria-label", "data-testid"], _n = [
828
+ "aria-label",
829
+ "title",
830
+ "aria-pressed",
831
+ "data-testid",
832
+ "onClick"
833
+ ], vn = ["data-testid"], yn = /* @__PURE__ */ E({
834
+ __name: "BackgroundImageControl",
835
+ props: {
836
+ hideLabel: { type: Boolean },
837
+ modelValue: {},
838
+ testidPrefix: {},
839
+ measure: { type: Boolean },
840
+ heroMode: { type: Boolean }
841
+ },
842
+ emits: ["update:modelValue"],
843
+ setup(e, { emit: t }) {
844
+ let n = e, i = t, { t: c } = H(), l = T(Be, F.liquid), u = m(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = m(() => u.value.trim() !== ""), x = un(), w;
845
+ f(() => clearTimeout(w));
846
+ function E(e) {
847
+ n.measure && !j(e, l) && (w = setTimeout(async () => {
848
+ let t = await x(e), r = n.modelValue;
849
+ t && r?.url === e && i("update:modelValue", {
850
+ ...r,
851
+ ...pe(t)
852
+ });
853
+ }, 300));
854
+ }
855
+ function D(e, t = null) {
856
+ if (clearTimeout(w), e.trim() === "") {
857
+ i("update:modelValue", void 0);
858
+ return;
859
+ }
860
+ let { naturalWidth: r, naturalHeight: a, ...o } = n.modelValue ?? ee(e), s = n.measure ? t : null;
861
+ i("update:modelValue", {
862
+ ...o,
863
+ url: e,
864
+ ...s ? pe(s) : {}
865
+ }), s || E(e);
866
+ }
867
+ function O(e) {
868
+ n.modelValue && i("update:modelValue", {
869
+ ...n.modelValue,
870
+ ...e
871
+ });
872
+ }
873
+ let k = m(() => [
874
+ {
875
+ value: "cover",
876
+ label: c.blockSettings.backgroundSizeCover
877
+ },
878
+ {
879
+ value: "contain",
880
+ label: c.blockSettings.backgroundSizeContain
881
+ },
882
+ {
883
+ value: "auto",
884
+ label: c.blockSettings.backgroundSizeAuto
885
+ }
886
+ ]), A = m(() => ({
887
+ "top-left": c.blockSettings.backgroundPositionTopLeft,
888
+ "top-center": c.blockSettings.backgroundPositionTopCenter,
889
+ "top-right": c.blockSettings.backgroundPositionTopRight,
890
+ "center-left": c.blockSettings.backgroundPositionCenterLeft,
891
+ "center-center": c.blockSettings.backgroundPositionCenter,
892
+ "center-right": c.blockSettings.backgroundPositionCenterRight,
893
+ "bottom-left": c.blockSettings.backgroundPositionBottomLeft,
894
+ "bottom-center": c.blockSettings.backgroundPositionBottomCenter,
895
+ "bottom-right": c.blockSettings.backgroundPositionBottomRight
896
+ })), M = m(() => te.flatMap((e) => ae.map((t) => ({
897
+ x: t,
898
+ y: e,
899
+ label: A.value[`${e}-${t}`]
900
+ }))));
901
+ function N(e) {
902
+ return n.modelValue?.position?.x === e.x && n.modelValue?.position?.y === e.y;
903
+ }
904
+ let P = _(), { canBrowse: I, isUploading: L, showOverlay: ne, openMediaBrowser: R } = be({
905
+ target: P,
906
+ blocked: () => j(u.value, l),
907
+ apply: (e) => D(e.url, ce(e.width, e.height))
908
+ });
909
+ return (t, n) => (a(), v("div", fn, [b("div", null, [e.hideLabel ? g("", !0) : (a(), v("label", {
910
+ key: 0,
911
+ class: o(h(K))
912
+ }, r(h(c).blockSettings.backgroundImage), 3)), b("div", {
913
+ ref_key: "dropZoneRef",
914
+ ref: P,
915
+ class: "tpl:relative",
916
+ "data-testid": `${e.testidPrefix}-bg-url`
917
+ }, [
918
+ h(ne) ? (a(), C(de, {
919
+ key: 0,
920
+ uploading: h(L)
921
+ }, null, 8, ["uploading"])) : g("", !0),
922
+ p(Y, {
923
+ "model-value": u.value,
924
+ type: "url",
925
+ placeholder: h(c).blockSettings.backgroundImagePlaceholder,
926
+ "onUpdate:modelValue": D
927
+ }, null, 8, ["model-value", "placeholder"]),
928
+ h(I) ? (a(), v("button", {
929
+ key: 1,
930
+ type: "button",
931
+ "data-testid": `${e.testidPrefix}-bg-browse`,
932
+ class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all",
933
+ style: {
934
+ "border-color": "var(--tpl-border)",
935
+ color: "var(--tpl-primary)",
936
+ "background-color": "var(--tpl-bg)"
937
+ },
938
+ onClick: n[0] ||= (...e) => h(R) && h(R)(...e)
939
+ }, [p(h(ke), {
940
+ size: 14,
941
+ "stroke-width": 1.5
942
+ }), y(" " + r(h(c).image.browseMedia), 1)], 8, mn)) : g("", !0)
943
+ ], 8, pn)]), d.value && e.modelValue ? (a(), v(S, { key: 0 }, [
944
+ e.heroMode ? g("", !0) : (a(), v("div", {
945
+ key: 0,
946
+ "data-testid": `${e.testidPrefix}-bg-size`
947
+ }, [b("label", { class: o(h(K)) }, r(h(c).blockSettings.backgroundSize), 3), p(X, {
948
+ options: k.value,
949
+ "model-value": e.modelValue.size,
950
+ "onUpdate:modelValue": n[1] ||= (e) => O({ size: e })
951
+ }, null, 8, ["options", "model-value"])], 8, hn)),
952
+ b("div", null, [b("label", { class: o(h(K)) }, r(h(c).blockSettings.backgroundPosition), 3), b("div", {
953
+ role: "group",
954
+ "aria-label": h(c).blockSettings.backgroundPosition,
955
+ "data-testid": `${e.testidPrefix}-bg-position`,
956
+ class: "tpl:grid tpl:w-24 tpl:grid-cols-3 tpl:gap-1"
957
+ }, [(a(!0), v(S, null, s(M.value, (t) => (a(), v("button", {
958
+ key: `${t.y}-${t.x}`,
959
+ type: "button",
960
+ "aria-label": t.label,
961
+ title: t.label,
962
+ "aria-pressed": N(t),
963
+ "data-testid": `${e.testidPrefix}-bg-position-${t.y}-${t.x}`,
964
+ class: o(["tpl:flex tpl:h-6 tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:transition-colors", N(t) ? "tpl:border-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:hover:border-[var(--tpl-text-dim)]"]),
965
+ onClick: (e) => O({ position: {
966
+ x: t.x,
967
+ y: t.y
968
+ } })
969
+ }, [b("span", { class: o(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", N(t) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10, _n))), 128))], 8, gn)]),
970
+ e.heroMode ? g("", !0) : (a(), v("div", {
971
+ key: 1,
972
+ "data-testid": `${e.testidPrefix}-bg-repeat`
973
+ }, [p(J, {
974
+ class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
975
+ "model-value": e.modelValue.repeat,
976
+ label: h(c).blockSettings.backgroundRepeat,
977
+ "onUpdate:modelValue": n[2] ||= (e) => O({ repeat: e })
978
+ }, null, 8, ["model-value", "label"])], 8, vn))
979
+ ], 64)) : g("", !0)]));
980
+ }
981
+ }), bn = ["data-testid"], xn = { class: "tpl:mt-3" }, Sn = /* @__PURE__ */ E({
982
+ __name: "CollapsibleSection",
983
+ props: {
984
+ title: {},
985
+ open: { type: Boolean },
986
+ noBorder: { type: Boolean },
987
+ headerTestId: {}
988
+ },
989
+ emits: ["toggle"],
990
+ setup(e) {
991
+ return (t, i) => (a(), v("div", { class: o(["tpl:py-3", e.noBorder ? "" : "tpl:border-t tpl:border-[var(--tpl-border)]"]) }, [b("button", {
992
+ type: "button",
993
+ "data-testid": e.headerTestId,
994
+ class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
995
+ onClick: i[0] ||= (e) => t.$emit("toggle")
996
+ }, [p(h(we), {
997
+ class: o(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
998
+ size: 12,
999
+ "stroke-width": 2
1000
+ }, null, 8, ["class"]), b("span", null, r(e.title), 1)], 8, bn), d(b("div", xn, [n(t.$slots, "default")], 512), [[O, e.open]])], 2));
1001
+ }
1002
+ }), Cn = {
1003
+ key: 0,
1004
+ "data-testid": "section-hero-columns-note",
1005
+ class: "tpl:mt-3.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
1006
+ }, wn = {
1007
+ key: 1,
1008
+ "data-testid": "section-hero",
1009
+ class: "tpl:mt-3.5 tpl:space-y-3.5"
1010
+ }, Tn = { "data-testid": "section-hero-height" }, En = {
1011
+ key: 0,
1012
+ class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
1013
+ }, Dn = {
1014
+ key: 1,
1015
+ class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
1016
+ }, On = {
1017
+ key: 1,
1018
+ "data-testid": "section-hero-align"
1019
+ }, kn = 300, An = /* @__PURE__ */ E({
1020
+ __name: "HeroControl",
1021
+ props: { section: {} },
1022
+ emits: ["update"],
1023
+ setup(e, { emit: t }) {
1024
+ function n(e) {
1025
+ return typeof e == "number" && Number.isFinite(e) && e >= 1;
1026
+ }
1027
+ let i = e, s = t, { t: c } = H(), l = T(Be, F.liquid), u = T(Qe, null), d = T(Ue, void 0), f = un(), _ = m(() => typeof i.section.backgroundImage?.url == "string" ? i.section.backgroundImage.url : ""), y = m(() => _.value.trim() !== ""), x = m(() => j(_.value, l)), S = m(() => i.section.hero), w = m(() => i.section.columns === "1"), E = m(() => S.value ? n(S.value.height) ? "fixed" : "image" : "fit"), D = m(() => n(S.value?.height) ? S.value.height : kn), O = m(() => [
1028
+ {
1029
+ value: "fit",
1030
+ label: c.blockSettings.heroHeightFit
1031
+ },
1032
+ {
1033
+ value: "image",
1034
+ label: c.blockSettings.heroHeightImage,
1035
+ disabled: x.value
1036
+ },
1037
+ {
1038
+ value: "fixed",
1039
+ label: c.blockSettings.heroHeightFixed
1040
+ }
1041
+ ]), k = m(() => [
1042
+ {
1043
+ value: "top",
1044
+ label: c.blockSettings.heroAlignTop
1045
+ },
1046
+ {
1047
+ value: "middle",
1048
+ label: c.blockSettings.heroAlignMiddle
1049
+ },
1050
+ {
1051
+ value: "bottom",
1052
+ label: c.blockSettings.heroAlignBottom
1053
+ }
1054
+ ]), A = m(() => E.value === "image" && y.value && !x.value && re(i.section.backgroundImage) === null);
1055
+ function M() {
1056
+ return (u ? ye(u.content.value, i.section.id, d, u.activeLocale?.value ?? void 0) : null) ?? ge(u?.state.content.settings);
1057
+ }
1058
+ function N(e) {
1059
+ let t = S.value?.verticalAlign ?? "middle";
1060
+ if (e === "image") {
1061
+ E.value !== "image" && s("update", { hero: {
1062
+ height: "image",
1063
+ verticalAlign: t
1064
+ } }), P();
1065
+ return;
1066
+ }
1067
+ if (e === E.value) return;
1068
+ if (e === "fit") {
1069
+ s("update", { hero: void 0 });
1070
+ return;
1071
+ }
1072
+ let n = re(i.section.backgroundImage), r = n === null ? kn : Math.round(M() * n);
1073
+ s("update", { hero: {
1074
+ height: r,
1075
+ verticalAlign: t
1076
+ } });
1077
+ }
1078
+ async function P() {
1079
+ let e = i.section.backgroundImage;
1080
+ if (!e || !y.value || x.value || re(e) !== null) return;
1081
+ let t = e.url, n = await f(t), r = i.section.backgroundImage;
1082
+ n && r && r.url === t && s("update", { backgroundImage: {
1083
+ ...r,
1084
+ ...pe(n)
1085
+ } });
1086
+ }
1087
+ function I(e) {
1088
+ !S.value || !Number.isFinite(e) || e < 1 || s("update", { hero: {
1089
+ ...S.value,
1090
+ height: Math.round(e)
1091
+ } });
1092
+ }
1093
+ function L(e) {
1094
+ S.value && s("update", { hero: {
1095
+ ...S.value,
1096
+ verticalAlign: e
1097
+ } });
1098
+ }
1099
+ return (e, t) => !w.value && S.value ? (a(), v("p", Cn, r(h(c).section.heroNeedsOneColumn), 1)) : w.value && (y.value || S.value) ? (a(), v("div", wn, [
1100
+ b("div", Tn, [
1101
+ b("label", { class: o(h(K)) }, r(h(c).blockSettings.heroHeight), 3),
1102
+ p(X, {
1103
+ options: O.value,
1104
+ "model-value": E.value,
1105
+ "onUpdate:modelValue": N
1106
+ }, null, 8, ["options", "model-value"]),
1107
+ x.value ? (a(), v("p", En, r(h(c).blockSettings.heroMatchImageMergeTag), 1)) : A.value ? (a(), v("p", Dn, r(h(c).blockSettings.heroSizeUnknown), 1)) : g("", !0)
1108
+ ]),
1109
+ E.value === "fixed" ? (a(), C(Z, {
1110
+ key: 0,
1111
+ "model-value": D.value,
1112
+ min: 1,
1113
+ suffix: "px",
1114
+ testid: "section-hero-height-px",
1115
+ "onUpdate:modelValue": I
1116
+ }, null, 8, ["model-value"])) : g("", !0),
1117
+ S.value ? (a(), v("div", On, [b("label", { class: o(h(K)) }, r(h(c).blockSettings.heroAlign), 3), p(X, {
1118
+ options: k.value,
1119
+ "model-value": S.value.verticalAlign,
1120
+ "onUpdate:modelValue": L
1121
+ }, null, 8, ["options", "model-value"])])) : g("", !0)
1122
+ ])) : g("", !0);
1123
+ }
1124
+ }), jn = { class: "tpl:space-y-2" }, Mn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Nn = { class: "tpl:space-y-2" }, Pn = ["value"], Fn = { value: "" }, In = ["label"], Ln = ["value"], Rn = ["value"], zn = {
1125
+ key: 0,
1126
+ value: "__custom__"
1127
+ }, Bn = {
1128
+ key: 0,
1129
+ class: "tpl:space-y-2"
1130
+ }, Vn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Hn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Un = { class: "tpl:flex tpl:justify-end" }, Wn = ["disabled"], Gn = {
1131
+ key: 0,
1132
+ class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
1133
+ }, Kn = { class: "tpl:space-y-1" }, qn = { class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]" }, Jn = {
1134
+ key: 0,
1135
+ class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
1136
+ }, Yn = /* @__PURE__ */ E({
1137
+ __name: "CommonBlockSettings",
1138
+ props: {
1139
+ block: {},
1140
+ isFirstSection: { type: Boolean }
1141
+ },
1142
+ emits: ["update"],
1143
+ setup(e, { emit: n }) {
1144
+ let c = e, f = n, { t: x, format: w } = H(), E = T(Qe, null), O = T(He, void 0), A = m(() => E?.activeLocale?.value), j = m(() => !!(A.value && E?.selectedBlock?.value?.l10n?.[A.value]?.hidden)), M = T(Ke, []), N = T(Ze, !1), P = l(/* @__PURE__ */ new Set()), F = _(!1), I = _(""), L = _(""), ee = [{
1145
+ key: "desktop",
1146
+ icon: Me,
1147
+ labelKey: "showOnDesktop"
1148
+ }, {
1149
+ key: "mobile",
1150
+ icon: Ne,
1151
+ labelKey: "showOnMobile"
1152
+ }];
1153
+ function te(e) {
1154
+ P.has(e) ? P.delete(e) : P.add(e);
1155
+ }
1156
+ let ne = m(() => M.length > 0 || N), R = m(() => c.block.displayCondition ? !M.some((e) => e.label === c.block.displayCondition?.label) : !1);
1157
+ function re() {
1158
+ F.value = !0, R.value && c.block.displayCondition ? (I.value = c.block.displayCondition.before, L.value = c.block.displayCondition.after ?? "") : (I.value = "", L.value = "");
1159
+ }
1160
+ function ie() {
1161
+ let e = I.value.trim(), t = L.value.trim();
1162
+ e && (f("update", { displayCondition: {
1163
+ label: x.blockSettings.customCondition,
1164
+ before: e,
1165
+ after: t
1166
+ } }), F.value = !1, I.value = e, L.value = t);
1167
+ }
1168
+ t([
1169
+ () => E?.state?.template?.id,
1170
+ () => c.block.id,
1171
+ () => c.block.displayCondition?.label,
1172
+ () => c.block.displayCondition?.before,
1173
+ () => c.block.displayCondition?.after
1174
+ ], () => {
1175
+ let e = c.block.displayCondition;
1176
+ !e || !R.value ? (F.value = !1, I.value = "", L.value = "") : (I.value = e.before, L.value = e.after ?? "");
1177
+ }, { immediate: !0 });
1178
+ let ae = m(() => {
1179
+ let e = {};
1180
+ for (let t of M) {
1181
+ let n = t.group ?? "";
1182
+ e[n] || (e[n] = []), e[n].push(t);
1183
+ }
1184
+ return e;
1185
+ }), oe = m(() => c.block.type === "section" && k(c.block)?.applied === !0);
1186
+ function se(e, t) {
1187
+ f("update", { styles: {
1188
+ ...c.block.styles,
1189
+ [e]: t
1190
+ } });
1191
+ }
1192
+ function ce(e) {
1193
+ return c.block.visibility?.[e] !== !1;
1194
+ }
1195
+ function le(e) {
1196
+ let t = {
1197
+ desktop: ce("desktop"),
1198
+ mobile: ce("mobile")
1199
+ };
1200
+ t[e] = !t[e], f("update", { visibility: t });
1201
+ }
1202
+ return (t, n) => (a(), v("div", { class: o(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
1203
+ p(Sn, {
1204
+ title: h(x).blockSettings.spacing,
1205
+ open: P.has("spacing"),
1206
+ "no-border": e.isFirstSection,
1207
+ onToggle: n[1] ||= (e) => te("spacing")
1208
+ }, {
1209
+ default: u(() => [p(cn, {
1210
+ path: "styles.padding",
1211
+ label: h(x).blockSettings.padding,
1212
+ "model-value": e.block.styles.padding,
1213
+ "onUpdate:modelValue": n[0] ||= (e) => se("padding", e)
1214
+ }, null, 8, ["label", "model-value"])]),
1215
+ _: 1
1216
+ }, 8, [
1217
+ "title",
1218
+ "open",
1219
+ "no-border"
1220
+ ]),
1221
+ p(Sn, {
1222
+ title: h(x).blockSettings.background,
1223
+ open: P.has("bg"),
1224
+ "header-test-id": "block-settings-background",
1225
+ onToggle: n[5] ||= (e) => te("bg")
1226
+ }, {
1227
+ default: u(() => [
1228
+ p(q, {
1229
+ path: "styles.backgroundColor",
1230
+ label: h(x).blockSettings.color
1231
+ }, {
1232
+ default: u(() => [p(B, {
1233
+ "model-value": e.block.styles.backgroundColor ?? "",
1234
+ "allow-transparent": "",
1235
+ "onUpdate:modelValue": n[2] ||= (e) => se("backgroundColor", e)
1236
+ }, null, 8, ["model-value"])]),
1237
+ _: 1
1238
+ }, 8, ["label"]),
1239
+ e.block.type === "section" ? (a(), C(q, {
1240
+ key: 0,
1241
+ path: "backgroundImage",
1242
+ label: h(x).blockSettings.backgroundImage
1243
+ }, {
1244
+ default: u(() => [p(yn, {
1245
+ "hide-label": "",
1246
+ class: "tpl:mt-3.5",
1247
+ "model-value": e.block.backgroundImage,
1248
+ "testid-prefix": "section",
1249
+ measure: "",
1250
+ "hero-mode": oe.value,
1251
+ "onUpdate:modelValue": n[3] ||= (e) => f("update", { backgroundImage: e })
1252
+ }, null, 8, ["model-value", "hero-mode"])]),
1253
+ _: 1
1254
+ }, 8, ["label"])) : g("", !0),
1255
+ e.block.type === "section" ? (a(), C(q, {
1256
+ key: 1,
1257
+ path: "hero",
1258
+ label: h(x).blocks.hero
1259
+ }, {
1260
+ default: u(() => [p(An, {
1261
+ section: e.block,
1262
+ onUpdate: n[4] ||= (e) => f("update", e)
1263
+ }, null, 8, ["section"])]),
1264
+ _: 1
1265
+ }, 8, ["label"])) : g("", !0)
1266
+ ]),
1267
+ _: 1
1268
+ }, 8, ["title", "open"]),
1269
+ p(Sn, {
1270
+ title: h(x).blockSettings.display,
1271
+ open: P.has("display"),
1272
+ onToggle: n[7] ||= (e) => te("display")
1273
+ }, {
1274
+ default: u(() => [b("div", jn, [A.value && h(O) ? (a(), C(J, {
1275
+ key: 0,
1276
+ "data-testid": "locale-hide",
1277
+ disabled: !h(O).locales.includes(A.value),
1278
+ "model-value": j.value,
1279
+ label: h(w)(h(x).localization.hide, { language: h(et)(A.value) }),
1280
+ "onUpdate:modelValue": n[6] ||= (t) => h(E)?.setBlockHidden?.(e.block.id, t)
1281
+ }, null, 8, [
1282
+ "disabled",
1283
+ "model-value",
1284
+ "label"
1285
+ ])) : g("", !0), (a(), v(S, null, s(ee, (e) => p(q, {
1286
+ key: e.key,
1287
+ path: `visibility.${e.key}`,
1288
+ label: h(x).blockSettings[e.labelKey]
1289
+ }, {
1290
+ label: u(() => [b("span", Mn, [(a(), C(i(e.icon), {
1291
+ size: 14,
1292
+ "stroke-width": 1.5
1293
+ })), y(" " + r(h(x).blockSettings[e.labelKey]), 1)])]),
1294
+ "label-actions": u(({ controlId: t }) => [p(J, {
1295
+ "control-id": t,
1296
+ "hide-label": "",
1297
+ class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
1298
+ "model-value": ce(e.key),
1299
+ label: h(x).blockSettings[e.labelKey],
1300
+ "onUpdate:modelValue": (t) => le(e.key)
1301
+ }, null, 8, [
1302
+ "control-id",
1303
+ "model-value",
1304
+ "label",
1305
+ "onUpdate:modelValue"
1306
+ ])]),
1307
+ _: 2
1308
+ }, 1032, ["path", "label"])), 64))])]),
1309
+ _: 1
1310
+ }, 8, ["title", "open"]),
1311
+ ne.value ? (a(), C(Sn, {
1312
+ key: 0,
1313
+ "header-test-id": "display-condition-section",
1314
+ title: h(x).blockSettings.displayCondition,
1315
+ open: P.has("condition"),
1316
+ onToggle: n[11] ||= (e) => te("condition")
1317
+ }, {
1318
+ default: u(() => [b("div", Nn, [p(q, {
1319
+ path: "displayCondition",
1320
+ label: h(x).blockSettings.displayCondition
1321
+ }, {
1322
+ default: u(() => [b("select", {
1323
+ "data-testid": "display-condition-select",
1324
+ class: o(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", e.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
1325
+ value: F.value || R.value ? "__custom__" : e.block.displayCondition?.label ?? "",
1326
+ onChange: n[8] ||= (e) => {
1327
+ let t = e.target.value;
1328
+ if (t === "__custom__") {
1329
+ re();
1330
+ return;
1331
+ }
1332
+ if (F.value = !1, !t) {
1333
+ f("update", { displayCondition: void 0 });
1334
+ return;
1335
+ }
1336
+ let n = h(M).find((e) => e.label === t);
1337
+ n && f("update", { displayCondition: n });
1338
+ }
1339
+ }, [
1340
+ b("option", Fn, r(h(x).blockSettings.noCondition), 1),
1341
+ (a(!0), v(S, null, s(ae.value, (e, t) => (a(), v(S, { key: t }, [t ? (a(), v("optgroup", {
1342
+ key: 0,
1343
+ label: String(t)
1344
+ }, [(a(!0), v(S, null, s(e, (e) => (a(), v("option", {
1345
+ key: e.label,
1346
+ value: e.label
1347
+ }, r(e.label), 9, Ln))), 128))], 8, In)) : (a(!0), v(S, { key: 1 }, s(e, (e) => (a(), v("option", {
1348
+ key: e.label,
1349
+ value: e.label
1350
+ }, r(e.label), 9, Rn))), 128))], 64))), 128)),
1351
+ h(N) ? (a(), v("option", zn, r(h(x).blockSettings.customCondition), 1)) : g("", !0)
1352
+ ], 42, Pn)]),
1353
+ _: 1
1354
+ }, 8, ["label"]), F.value || R.value ? (a(), v("div", Bn, [
1355
+ b("div", null, [b("label", Vn, r(h(x).blockSettings.customConditionBefore), 1), d(b("textarea", {
1356
+ "onUpdate:modelValue": n[9] ||= (e) => I.value = e,
1357
+ rows: "2",
1358
+ class: o(h(at))
1359
+ }, null, 2), [[D, I.value]])]),
1360
+ b("div", null, [b("label", Hn, r(h(x).blockSettings.customConditionAfter), 1), d(b("textarea", {
1361
+ "onUpdate:modelValue": n[10] ||= (e) => L.value = e,
1362
+ rows: "2",
1363
+ class: o(h(at))
1364
+ }, null, 2), [[D, L.value]])]),
1365
+ b("div", Un, [b("button", {
1366
+ type: "button",
1367
+ class: o(h(nt)),
1368
+ disabled: !I.value.trim(),
1369
+ onClick: ie
1370
+ }, r(h(x).blockSettings.applyCondition), 11, Wn)])
1371
+ ])) : e.block.displayCondition && !R.value ? (a(), v(S, { key: 1 }, [e.block.displayCondition.description ? (a(), v("p", Gn, r(e.block.displayCondition.description), 1)) : g("", !0), b("div", Kn, [b("pre", qn, r(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (a(), v("pre", Jn, r(e.block.displayCondition.after), 1)) : g("", !0)])], 64)) : g("", !0)])]),
1372
+ _: 1
1373
+ }, 8, ["title", "open"])) : g("", !0)
1374
+ ], 2));
1375
+ }
1376
+ }), Xn = ["title"], Zn = { class: "tpl-sr-only" }, Qn = ["title"], $n = { class: "tpl-sr-only" }, er = /* @__PURE__ */ E({
1377
+ __name: "FieldLabel",
1378
+ props: {
1379
+ label: {},
1380
+ required: { type: Boolean },
1381
+ readOnly: { type: Boolean }
1382
+ },
1383
+ setup(e) {
1384
+ let { t } = H();
1385
+ return (n, i) => (a(), v("span", null, [
1386
+ y(r(e.label) + " ", 1),
1387
+ e.readOnly ? (a(), v("span", {
1388
+ key: 0,
1389
+ title: h(t).customBlocks.dataSource.readOnlyTooltip
1390
+ }, [p(h(pt), {
1391
+ size: 12,
1392
+ class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
1393
+ "aria-hidden": "true"
1394
+ }), b("span", Zn, r(h(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, Xn)) : g("", !0),
1395
+ e.required ? (a(), v("span", {
1396
+ key: 1,
1397
+ class: "tpl:text-[var(--tpl-danger)]",
1398
+ title: h(t).customBlocks.fields.required
1399
+ }, [i[0] ||= b("span", { "aria-hidden": "true" }, "*", -1), b("span", $n, r(h(t).customBlocks.fields.required), 1)], 8, Qn)) : g("", !0)
1400
+ ]));
1401
+ }
1402
+ }), tr = ["title"], nr = /* @__PURE__ */ E({
1403
+ __name: "BooleanField",
1404
+ props: {
1405
+ field: {},
1406
+ modelValue: { type: Boolean },
1407
+ readOnly: { type: Boolean },
1408
+ hideLabel: { type: Boolean },
1409
+ controlId: {}
1410
+ },
1411
+ emits: ["update:modelValue"],
1412
+ setup(e, { emit: t }) {
1413
+ let n = t, { t: i } = H();
1414
+ return (t, o) => (a(), v("div", {
1415
+ class: "tpl:mb-3.5",
1416
+ title: e.readOnly ? h(i).customBlocks.dataSource.readOnlyTooltip : void 0
1417
+ }, [p(J, {
1418
+ "hide-label": e.hideLabel,
1419
+ "control-id": e.controlId,
1420
+ class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
1421
+ "model-value": e.modelValue,
1422
+ label: e.field.label,
1423
+ required: e.field.required,
1424
+ disabled: e.readOnly,
1425
+ "onUpdate:modelValue": o[0] ||= (e) => n("update:modelValue", e)
1426
+ }, {
1427
+ default: u(() => [y(r(e.field.label) + " ", 1), e.readOnly ? (a(), C(h(pt), {
1428
+ key: 0,
1429
+ size: 12,
1430
+ class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
1431
+ })) : g("", !0)]),
1432
+ _: 1
1433
+ }, 8, [
1434
+ "hide-label",
1435
+ "control-id",
1436
+ "model-value",
1437
+ "label",
1438
+ "required",
1439
+ "disabled"
1440
+ ])], 8, tr));
1441
+ }
1442
+ }), rr = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ E({
1443
+ __name: "FieldWrapper",
1444
+ props: {
1445
+ label: {},
1446
+ hideLabel: { type: Boolean },
1447
+ required: { type: Boolean },
1448
+ readOnly: { type: Boolean }
1449
+ },
1450
+ setup(e) {
1451
+ return (t, r) => (a(), v("div", rr, [e.hideLabel ? g("", !0) : (a(), v("label", {
1452
+ key: 0,
1453
+ class: o(h(K))
1454
+ }, [p(er, {
1455
+ label: e.label,
1456
+ required: e.required,
1457
+ "read-only": e.readOnly
1458
+ }, null, 8, [
1459
+ "label",
1460
+ "required",
1461
+ "read-only"
1462
+ ])], 2)), n(t.$slots, "default")]));
1463
+ }
1464
+ }), ir = /* @__PURE__ */ E({
1465
+ __name: "ColorField",
1466
+ props: {
1467
+ field: {},
1468
+ modelValue: {},
1469
+ readOnly: { type: Boolean },
1470
+ hideLabel: { type: Boolean }
1471
+ },
1472
+ emits: ["update:modelValue"],
1473
+ setup(e, { emit: t }) {
1474
+ let n = e, r = t, { t: i } = H(), o = T(Xe, ct), s = m(() => xe(n.field, o));
1475
+ return (t, n) => (a(), C($, {
1476
+ "hide-label": e.hideLabel,
1477
+ label: e.field.label,
1478
+ required: e.field.required,
1479
+ "read-only": e.readOnly
1480
+ }, {
1481
+ default: u(() => [p(B, {
1482
+ "model-value": e.modelValue,
1483
+ placeholder: e.field.placeholder,
1484
+ disabled: e.readOnly,
1485
+ presets: s.value.presets,
1486
+ "allow-custom": s.value.allowCustom,
1487
+ title: e.readOnly ? h(i).customBlocks.dataSource.readOnlyTooltip : void 0,
1488
+ "onUpdate:modelValue": n[0] ||= (e) => r("update:modelValue", e)
1489
+ }, null, 8, [
1490
+ "model-value",
1491
+ "placeholder",
1492
+ "disabled",
1493
+ "presets",
1494
+ "allow-custom",
1495
+ "title"
1496
+ ])]),
1497
+ _: 1
1498
+ }, 8, [
1499
+ "hide-label",
1500
+ "label",
1501
+ "required",
1502
+ "read-only"
1503
+ ]));
1504
+ }
1505
+ }), ar = [
1506
+ "value",
1507
+ "placeholder",
1508
+ "title"
1509
+ ], or = ["value", "placeholder"], sr = /* @__PURE__ */ E({
1510
+ __name: "ImageField",
1511
+ props: {
1512
+ field: {},
1513
+ modelValue: {},
1514
+ readOnly: { type: Boolean },
1515
+ hideLabel: { type: Boolean }
1516
+ },
1517
+ emits: ["update:modelValue"],
1518
+ setup(e, { emit: t }) {
1519
+ let n = e, i = t, { t: s } = H(), c = _(), { canBrowse: l, isUploading: d, showOverlay: f, openMediaBrowser: m } = be({
1520
+ target: c,
1521
+ blocked: () => !!n.readOnly,
1522
+ apply: (e) => i("update:modelValue", e.url)
1523
+ });
1524
+ return (t, n) => (a(), C($, {
1525
+ "hide-label": e.hideLabel,
1526
+ label: e.field.label,
1527
+ required: e.field.required,
1528
+ "read-only": e.readOnly
1529
+ }, {
1530
+ default: u(() => [b("div", {
1531
+ ref_key: "dropZoneRef",
1532
+ ref: c,
1533
+ class: "tpl:relative"
1534
+ }, [
1535
+ h(f) ? (a(), C(de, {
1536
+ key: 0,
1537
+ uploading: h(d)
1538
+ }, null, 8, ["uploading"])) : g("", !0),
1539
+ e.readOnly ? (a(), v("input", {
1540
+ key: 1,
1541
+ type: "url",
1542
+ class: o([h(G), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1543
+ value: e.modelValue,
1544
+ placeholder: e.field.placeholder || "https://...",
1545
+ disabled: "",
1546
+ title: h(s).customBlocks.dataSource.readOnlyTooltip
1547
+ }, null, 10, ar)) : (a(), v("input", {
1548
+ key: 2,
1549
+ type: "url",
1550
+ class: o(h(G)),
1551
+ value: e.modelValue,
1552
+ placeholder: e.field.placeholder || "https://...",
1553
+ onInput: n[0] ||= (e) => i("update:modelValue", e.target.value)
1554
+ }, null, 42, or)),
1555
+ h(l) && !e.readOnly ? (a(), v("button", {
1556
+ key: 3,
1557
+ class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
1558
+ onClick: n[1] ||= (e) => h(m)()
1559
+ }, [p(h(ke), {
1560
+ size: 14,
1561
+ "stroke-width": 1.5
1562
+ }), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)
1563
+ ], 512)]),
1564
+ _: 1
1565
+ }, 8, [
1566
+ "hide-label",
1567
+ "label",
1568
+ "required",
1569
+ "read-only"
1570
+ ]));
1571
+ }
1572
+ }), cr = [
1573
+ "value",
1574
+ "placeholder",
1575
+ "min",
1576
+ "max",
1577
+ "step",
1578
+ "disabled",
1579
+ "title"
1580
+ ], lr = /* @__PURE__ */ E({
1581
+ __name: "NumberField",
1582
+ props: {
1583
+ field: {},
1584
+ modelValue: {},
1585
+ readOnly: { type: Boolean },
1586
+ hideLabel: { type: Boolean }
1587
+ },
1588
+ emits: ["update:modelValue"],
1589
+ setup(e, { emit: t }) {
1590
+ let n = t, { t: r } = H();
1591
+ return (t, i) => (a(), C($, {
1592
+ "hide-label": e.hideLabel,
1593
+ label: e.field.label,
1594
+ required: e.field.required,
1595
+ "read-only": e.readOnly
1596
+ }, {
1597
+ default: u(() => [b("input", {
1598
+ type: "number",
1599
+ class: o([h(G), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1600
+ value: e.modelValue,
1601
+ placeholder: e.field.placeholder,
1602
+ min: e.field.min,
1603
+ max: e.field.max,
1604
+ step: e.field.step,
1605
+ disabled: e.readOnly,
1606
+ title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0,
1607
+ onInput: i[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
1608
+ }, null, 42, cr)]),
1609
+ _: 1
1610
+ }, 8, [
1611
+ "hide-label",
1612
+ "label",
1613
+ "required",
1614
+ "read-only"
1615
+ ]));
1616
+ }
1617
+ }), ur = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, dr = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, fr = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, pr = ["title", "onClick"], mr = {
1618
+ key: 1,
1619
+ class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1620
+ }, hr = {
1621
+ key: 2,
1622
+ class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1623
+ }, gr = /* @__PURE__ */ E({
1624
+ __name: "RepeatableField",
1625
+ props: {
1626
+ field: {},
1627
+ modelValue: {},
1628
+ readOnly: { type: Boolean },
1629
+ hideLabel: { type: Boolean }
1630
+ },
1631
+ emits: ["update:modelValue"],
1632
+ setup(e, { emit: t }) {
1633
+ let n = e, c = t, { t: l, format: d } = H(), f = m(() => n.modelValue || []), _ = m(() => !n.field.maxItems || f.value.length < n.field.maxItems), x = m(() => !n.field.minItems || f.value.length > n.field.minItems);
1634
+ function w() {
1635
+ if (!_.value || n.readOnly) return;
1636
+ let e = {};
1637
+ for (let t of n.field.fields) e[t.key] = t.default ?? "";
1638
+ c("update:modelValue", [...f.value, e]);
1639
+ }
1640
+ function T(e) {
1641
+ if (!x.value || n.readOnly) return;
1642
+ let t = [...f.value];
1643
+ t.splice(e, 1), c("update:modelValue", t);
1644
+ }
1645
+ function E(e, t, n) {
1646
+ let r = f.value.map((r, i) => i === e ? {
1647
+ ...r,
1648
+ [t]: n
1649
+ } : r);
1650
+ c("update:modelValue", r);
1651
+ }
1652
+ return (t, n) => (a(), C($, {
1653
+ "hide-label": e.hideLabel,
1654
+ label: e.field.label,
1655
+ required: e.field.required,
1656
+ "read-only": e.readOnly
1657
+ }, {
1658
+ default: u(() => [b("div", ur, [
1659
+ (a(!0), v(S, null, s(f.value, (t, n) => (a(), v("div", {
1660
+ key: `${e.field.key}-${n}`,
1661
+ class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
1662
+ }, [b("div", dr, [b("span", fr, " #" + r(n + 1), 1), x.value && !e.readOnly ? (a(), v("button", {
1663
+ key: 0,
1664
+ type: "button",
1665
+ class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
1666
+ title: h(l).customBlocks.fields.removeItem,
1667
+ onClick: (e) => T(n)
1668
+ }, [p(h(Re), {
1669
+ size: 12,
1670
+ "stroke-width": 2
1671
+ })], 8, pr)) : g("", !0)]), (a(!0), v(S, null, s(e.field.fields, (r) => (a(), C(i(h(Tr)(r.type)), {
1672
+ key: r.key,
1673
+ field: r,
1674
+ "model-value": t[r.key],
1675
+ "read-only": e.readOnly,
1676
+ "onUpdate:modelValue": (e) => E(n, r.key, e)
1677
+ }, null, 8, [
1678
+ "field",
1679
+ "model-value",
1680
+ "read-only",
1681
+ "onUpdate:modelValue"
1682
+ ]))), 128))]))), 128)),
1683
+ _.value && !e.readOnly ? (a(), v("button", {
1684
+ key: 0,
1685
+ type: "button",
1686
+ class: o(h(rt)),
1687
+ onClick: w
1688
+ }, [p(h(V), {
1689
+ size: 14,
1690
+ "stroke-width": 2
1691
+ }), y(" " + r(h(l).customBlocks.fields.addItem), 1)], 2)) : g("", !0),
1692
+ !_.value && !e.readOnly ? (a(), v("p", mr, r(h(l).customBlocks.fields.maxItemsReached), 1)) : g("", !0),
1693
+ !x.value && !e.readOnly ? (a(), v("p", hr, r(h(d)(h(l).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : g("", !0)
1694
+ ])]),
1695
+ _: 1
1696
+ }, 8, [
1697
+ "hide-label",
1698
+ "label",
1699
+ "required",
1700
+ "read-only"
1701
+ ]));
1702
+ }
1703
+ }), _r = [
1704
+ "value",
1705
+ "disabled",
1706
+ "title"
1707
+ ], vr = ["value"], yr = /* @__PURE__ */ E({
1708
+ __name: "SelectField",
1709
+ props: {
1710
+ field: {},
1711
+ modelValue: {},
1712
+ readOnly: { type: Boolean },
1713
+ hideLabel: { type: Boolean }
1714
+ },
1715
+ emits: ["update:modelValue"],
1716
+ setup(e, { emit: t }) {
1717
+ let n = t, { t: i } = H();
1718
+ return (t, c) => (a(), C($, {
1719
+ "hide-label": e.hideLabel,
1720
+ label: e.field.label,
1721
+ required: e.field.required,
1722
+ "read-only": e.readOnly
1723
+ }, {
1724
+ default: u(() => [b("select", {
1725
+ class: o([h(G), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1726
+ value: e.modelValue,
1727
+ disabled: e.readOnly,
1728
+ title: e.readOnly ? h(i).customBlocks.dataSource.readOnlyTooltip : void 0,
1729
+ onChange: c[0] ||= (t) => !e.readOnly && n("update:modelValue", t.target.value)
1730
+ }, [(a(!0), v(S, null, s(e.field.options, (e) => (a(), v("option", {
1731
+ key: e.value,
1732
+ value: e.value
1733
+ }, r(e.label), 9, vr))), 128))], 42, _r)]),
1734
+ _: 1
1735
+ }, 8, [
1736
+ "hide-label",
1737
+ "label",
1738
+ "required",
1739
+ "read-only"
1740
+ ]));
1741
+ }
1742
+ }), br = [
1743
+ "value",
1744
+ "placeholder",
1745
+ "title"
1746
+ ], xr = /* @__PURE__ */ E({
1747
+ __name: "TextField",
1748
+ props: {
1749
+ field: {},
1750
+ modelValue: {},
1751
+ readOnly: { type: Boolean },
1752
+ hideLabel: { type: Boolean }
1753
+ },
1754
+ emits: ["update:modelValue"],
1755
+ setup(e, { emit: t }) {
1756
+ let n = t, { t: r } = H();
1757
+ return (t, i) => (a(), C($, {
1758
+ "hide-label": e.hideLabel,
1759
+ label: e.field.label,
1760
+ required: e.field.required,
1761
+ "read-only": e.readOnly
1762
+ }, {
1763
+ default: u(() => [e.readOnly ? (a(), v("input", {
1764
+ key: 0,
1765
+ type: "text",
1766
+ class: o([h(G), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1767
+ value: e.modelValue,
1768
+ placeholder: e.field.placeholder,
1769
+ disabled: "",
1770
+ title: h(r).customBlocks.dataSource.readOnlyTooltip
1771
+ }, null, 10, br)) : (a(), C(Y, {
1772
+ key: 1,
1773
+ "model-value": e.modelValue,
1774
+ placeholder: e.field.placeholder,
1775
+ "onUpdate:modelValue": i[0] ||= (e) => n("update:modelValue", e)
1776
+ }, null, 8, ["model-value", "placeholder"]))]),
1777
+ _: 1
1778
+ }, 8, [
1779
+ "hide-label",
1780
+ "label",
1781
+ "required",
1782
+ "read-only"
1783
+ ]));
1784
+ }
1785
+ }), Sr = [
1786
+ "value",
1787
+ "placeholder",
1788
+ "title"
1789
+ ], Cr = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:opacity-60 tpl:cursor-not-allowed", wr = {
1790
+ text: xr,
1791
+ textarea: /* @__PURE__ */ E({
1792
+ __name: "TextareaField",
1793
+ props: {
1794
+ field: {},
1795
+ modelValue: {},
1796
+ readOnly: { type: Boolean },
1797
+ hideLabel: { type: Boolean }
1798
+ },
1799
+ emits: ["update:modelValue"],
1800
+ setup(e, { emit: t }) {
1801
+ let n = t, { t: r } = H();
1802
+ return (t, i) => (a(), C($, {
1803
+ "hide-label": e.hideLabel,
1804
+ label: e.field.label,
1805
+ required: e.field.required,
1806
+ "read-only": e.readOnly
1807
+ }, {
1808
+ default: u(() => [e.readOnly ? (a(), v("textarea", {
1809
+ key: 0,
1810
+ value: e.modelValue,
1811
+ placeholder: e.field.placeholder,
1812
+ rows: "3",
1813
+ disabled: "",
1814
+ title: h(r).customBlocks.dataSource.readOnlyTooltip,
1815
+ class: o(Cr)
1816
+ }, null, 8, Sr)) : (a(), C(lt, {
1817
+ key: 1,
1818
+ "model-value": e.modelValue,
1819
+ placeholder: e.field.placeholder,
1820
+ "onUpdate:modelValue": i[0] ||= (e) => n("update:modelValue", e)
1821
+ }, null, 8, ["model-value", "placeholder"]))]),
1822
+ _: 1
1823
+ }, 8, [
1824
+ "hide-label",
1825
+ "label",
1826
+ "required",
1827
+ "read-only"
1828
+ ]));
1829
+ }
1830
+ }),
1831
+ image: sr,
1832
+ color: ir,
1833
+ number: lr,
1834
+ select: yr,
1835
+ boolean: nr,
1836
+ repeatable: gr
1837
+ };
1838
+ function Tr(e) {
1839
+ return wr[e] ?? xr;
1840
+ }
1841
+ // src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
1842
+ var Er = {
1843
+ key: 0,
1844
+ class: "tpl:p-4"
1845
+ }, Dr = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Or = { key: 1 }, kr = {
1846
+ key: 0,
1847
+ class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1848
+ }, Ar = {
1849
+ key: 1,
1850
+ class: "tpl:mb-4"
1851
+ }, jr = {
1852
+ key: 1,
1853
+ class: "tpl:flex tpl:h-[32px] tpl:items-center"
1854
+ }, Mr = {
1855
+ key: 0,
1856
+ class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
1857
+ }, Nr = {
1858
+ key: 2,
1859
+ class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
1860
+ }, Pr = /* @__PURE__ */ E({
1861
+ __name: "CustomBlockToolbar",
1862
+ props: { block: {} },
1863
+ emits: ["updateFieldValues", "updateDataSourceFetched"],
1864
+ setup(e, { emit: t }) {
1865
+ let n = e, o = t, { t: c } = H(), l = T(Je, []), d = m(() => l.find((e) => e.type === n.block.customType)), f = m(() => n.block), { isFetching: _, fetchError: x, fetch: w, hasDataSource: E, needsFetch: D } = oe({
1866
+ definition: d,
1867
+ block: f,
1868
+ onUpdate: (e, t) => {
1869
+ o("updateFieldValues", e), o("updateDataSourceFetched", t);
1870
+ }
1871
+ });
1872
+ function O(e) {
1873
+ return e.readOnly === !0 && E.value && !!n.block.dataSourceFetched;
1874
+ }
1875
+ function k(e, t) {
1876
+ o("updateFieldValues", {
1877
+ ...n.block.fieldValues,
1878
+ [e]: t
1879
+ });
1880
+ }
1881
+ return (t, n) => d.value ? (a(), v("div", Or, [
1882
+ d.value.description ? (a(), v("p", kr, r(d.value.description), 1)) : g("", !0),
1883
+ h(E) ? (a(), v("div", Ar, [h(D) && !h(_) ? (a(), v("button", {
1884
+ key: 0,
1885
+ type: "button",
1886
+ class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded-md tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-on-primary)] tpl:transition-all tpl:bg-[var(--tpl-primary)]",
1887
+ onClick: n[0] ||= (...e) => h(w) && h(w)(...e)
1888
+ }, r(d.value?.dataSource?.label || h(c).customBlocks.dataSource.fetchButton), 1)) : (a(), v("div", jr, [h(_) ? (a(), v("div", Mr, r(h(c).customBlocks.dataSource.fetching), 1)) : (a(), v("button", {
1889
+ key: 1,
1890
+ type: "button",
1891
+ class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]",
1892
+ onClick: n[1] ||= (...e) => h(w) && h(w)(...e)
1893
+ }, [p(h(Pe), { size: 12 }), y(" " + r(h(c).customBlocks.dataSource.changeButton), 1)]))])), h(x) ? (a(), v("p", Nr, [p(h(Te), {
1894
+ size: 14,
1895
+ class: "tpl:shrink-0"
1896
+ }), y(" " + r(h(c).customBlocks.dataSource.fetchError), 1)])) : g("", !0)])) : g("", !0),
1897
+ (a(!0), v(S, null, s(d.value.fields, (t) => (a(), C(q, {
1898
+ key: t.key,
1899
+ path: `fieldValues.${t.key}`,
1900
+ label: t.label
1901
+ }, {
1902
+ label: u(() => [p(er, {
1903
+ label: t.label,
1904
+ required: t.required,
1905
+ "read-only": O(t)
1906
+ }, null, 8, [
1907
+ "label",
1908
+ "required",
1909
+ "read-only"
1910
+ ])]),
1911
+ default: u(({ controlId: n }) => [(a(), C(i(h(Tr)(t.type)), {
1912
+ "control-id": t.type === "boolean" ? n : void 0,
1913
+ field: t,
1914
+ "hide-label": "",
1915
+ "model-value": e.block.fieldValues[t.key],
1916
+ "read-only": O(t),
1917
+ "onUpdate:modelValue": (e) => k(t.key, e)
1918
+ }, null, 8, [
1919
+ "control-id",
1920
+ "field",
1921
+ "model-value",
1922
+ "read-only",
1923
+ "onUpdate:modelValue"
1924
+ ]))]),
1925
+ _: 2
1926
+ }, 1032, ["path", "label"]))), 128))
1927
+ ])) : (a(), v("div", Er, [b("p", Dr, r(h(c).customBlocks.toolbar.noDefinition), 1)]));
1928
+ }
1929
+ }), Fr = { class: "tpl:flex tpl:items-stretch" }, Ir = ["value"], Lr = /* @__PURE__ */ E({
1930
+ __name: "DividerToolbar",
1931
+ props: { block: {} },
1932
+ emits: ["update"],
1933
+ setup(e, { emit: t }) {
1934
+ let n = t, { t: r } = H();
1935
+ function i(e, t) {
1936
+ n("update", { [e]: t });
1937
+ }
1938
+ return (t, n) => (a(), v(S, null, [
1939
+ p(q, {
1940
+ label: h(r).divider.style,
1941
+ class: "tpl:mb-3.5",
1942
+ path: "lineStyle"
1943
+ }, {
1944
+ default: u(() => [p(X, {
1945
+ options: [
1946
+ {
1947
+ value: "solid",
1948
+ label: h(r).divider.solid
1949
+ },
1950
+ {
1951
+ value: "dashed",
1952
+ label: h(r).divider.dashed
1953
+ },
1954
+ {
1955
+ value: "dotted",
1956
+ label: h(r).divider.dotted
1957
+ }
1958
+ ],
1959
+ "model-value": e.block.lineStyle,
1960
+ "onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
1961
+ }, null, 8, ["options", "model-value"])]),
1962
+ _: 1
1963
+ }, 8, ["label"]),
1964
+ p(q, {
1965
+ label: h(r).divider.color,
1966
+ class: "tpl:mb-3.5",
1967
+ path: "color"
1968
+ }, {
1969
+ default: u(() => [p(B, {
1970
+ "model-value": e.block.color,
1971
+ "onUpdate:modelValue": n[1] ||= (e) => i("color", e)
1972
+ }, null, 8, ["model-value"])]),
1973
+ _: 1
1974
+ }, 8, ["label"]),
1975
+ p(q, {
1976
+ label: h(r).divider.thickness,
1977
+ class: "tpl:mb-3.5",
1978
+ path: "thickness"
1979
+ }, {
1980
+ default: u(() => [b("div", Fr, [b("input", {
1981
+ type: "number",
1982
+ class: o(h(W)),
1983
+ value: e.block.thickness,
1984
+ min: "1",
1985
+ max: "10",
1986
+ onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
1987
+ }, null, 42, Ir), b("span", { class: o(h(U)) }, "px", 2)])]),
1988
+ _: 1
1989
+ }, 8, ["label"])
1990
+ ], 64));
1991
+ }
1992
+ }), Rr = ["value"], zr = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Br = /* @__PURE__ */ E({
1993
+ __name: "HtmlToolbar",
1994
+ props: { block: {} },
1995
+ emits: ["update"],
1996
+ setup(e, { emit: t }) {
1997
+ let n = t, { t: i } = H();
1998
+ return (t, s) => (a(), C(q, {
1999
+ label: h(i).html.content,
2000
+ class: "tpl:mb-3.5",
2001
+ path: "content"
2002
+ }, {
2003
+ default: u(() => [b("textarea", {
2004
+ value: e.block.content,
2005
+ placeholder: "<div>...</div>",
2006
+ rows: "10",
2007
+ class: o(h(at)),
2008
+ onInput: s[0] ||= (e) => n("update", { content: e.target.value })
2009
+ }, null, 42, Rr), b("p", zr, [p(h(Ae), {
2010
+ size: 12,
2011
+ class: "tpl:mt-0.5 tpl:shrink-0"
2012
+ }), y(" " + r(h(i).html.sanitizationHint), 1)])]),
2013
+ _: 1
2014
+ }, 8, ["label"]));
2015
+ }
2016
+ });
2017
+ // src/composables/useImageAspectLock.ts
2018
+ function Vr(e) {
2019
+ let n = _(!1), r = _(null);
2020
+ t(() => e.block().id, () => {
2021
+ n.value = !1, r.value = null;
2022
+ });
2023
+ let i = m(() => fe(e.block()) ?? e.measured()), a = m(() => {
2024
+ let t = e.block().width;
2025
+ return t === "full" ? e.room() : t;
2026
+ }), o = m(() => {
2027
+ let e = i.value, t = a.value;
2028
+ return !e || t === null ? null : Math.round(t * e.height / e.width);
2029
+ }), s = m(() => i.value !== null), c = m(() => {
2030
+ let t = e.block().height;
2031
+ return t === void 0 || o.value !== null && Math.abs(o.value - t) <= 1;
2032
+ }), l = m(() => s.value && !n.value && c.value);
2033
+ function u() {
2034
+ if (fe(e.block())) return {};
2035
+ let t = e.measured();
2036
+ return t ? pe(t) : {};
2037
+ }
2038
+ function d(t) {
2039
+ if (r.value = null, !t) return n.value = !0, null;
2040
+ if (n.value = !1, !s.value) return null;
2041
+ let i = { ...u() };
2042
+ return e.block().height !== void 0 && (i.height = void 0), Object.keys(i).length > 0 ? i : null;
2043
+ }
2044
+ function f(e) {
2045
+ return r.value = null, l.value ? {
2046
+ width: e,
2047
+ height: void 0,
2048
+ ...u()
2049
+ } : { width: e };
2050
+ }
2051
+ function p(t) {
2052
+ let n = i.value;
2053
+ if (!l.value || !n || !Number.isFinite(t) || t <= 0) return null;
2054
+ let a = Math.round(t * n.width / n.height);
2055
+ if (a < 1) return null;
2056
+ let o = e.room();
2057
+ return o !== null && a >= o ? (r.value = Math.round(o * n.height / n.width), {
2058
+ width: "full",
2059
+ height: void 0,
2060
+ ...u()
2061
+ }) : (r.value = null, {
2062
+ width: a,
2063
+ height: void 0,
2064
+ ...u()
2065
+ });
2066
+ }
2067
+ return {
2068
+ available: s,
2069
+ locked: l,
2070
+ derivedHeight: o,
2071
+ cappedHeight: r,
2072
+ setLocked: d,
2073
+ widthUpdates: f,
2074
+ heightUpdates: p
2075
+ };
2076
+ }
2077
+ // src/components/toolbar/ImageToolbar.vue?vue&type=script&setup=true&lang.ts
2078
+ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
2079
+ "value",
2080
+ "placeholder",
2081
+ "title"
2082
+ ], Wr = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Gr = ["value"], Kr = { value: "full" }, qr = { value: "custom" }, Jr = {
2083
+ key: 0,
2084
+ class: "tpl:mt-2 tpl:flex tpl:items-stretch"
2085
+ }, Yr = ["value"], Xr = { class: "tpl:flex tpl:items-stretch" }, Zr = ["value"], Qr = {
2086
+ key: 0,
2087
+ class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
2088
+ role: "status",
2089
+ "data-testid": "image-height-capped"
2090
+ }, $r = ["value"], ei = { value: "auto" }, ti = { value: "custom" }, ni = {
2091
+ key: 2,
2092
+ class: "tpl:mt-2 tpl:flex tpl:items-stretch"
2093
+ }, ri = ["value"], ii = 350, ai = 200, oi = /* @__PURE__ */ E({
2094
+ __name: "ImageToolbar",
2095
+ props: { block: {} },
2096
+ emits: ["update"],
2097
+ setup(e, { emit: t }) {
2098
+ let n = e, i = t, { t: s, format: c } = H(), l = T(Be, F.liquid), d = T(Qe, null), f = d ? $e(d) : null, w = T(Ue, void 0), E = _(!1), D = _(!1), { start: O } = ot(() => {
2099
+ E.value = !1, D.value = !1;
2100
+ }, 1e3, { immediate: !1 }), k = [
2101
+ 300,
2102
+ 400,
2103
+ 500
2104
+ ], A = m(() => {
2105
+ let e = n.block.width;
2106
+ return e === "full" ? "full" : k.includes(e) ? String(e) : "custom";
2107
+ }), M = m(() => typeof n.block.height == "number" ? "custom" : "auto");
2108
+ function P(e, t) {
2109
+ i("update", { [e]: t });
2110
+ }
2111
+ function I(e) {
2112
+ if (e === "custom") {
2113
+ let e = n.block.width;
2114
+ (typeof e != "number" || k.includes(e)) && i("update", z.widthUpdates(ii));
2115
+ } else i("update", z.widthUpdates(e === "full" ? "full" : Number(e)));
2116
+ }
2117
+ function L(e) {
2118
+ P("height", e === "custom" ? ai : void 0);
2119
+ }
2120
+ function ee(e) {
2121
+ let t = Number(e);
2122
+ !Number.isFinite(t) || t <= 0 || P("height", t);
2123
+ }
2124
+ function te(e) {
2125
+ P("borderRadius", N(e) === null ? void 0 : e);
2126
+ }
2127
+ function ne(e) {
2128
+ let t = Number(e);
2129
+ !Number.isFinite(t) || t <= 0 || i("update", z.widthUpdates(t));
2130
+ }
2131
+ function R(e) {
2132
+ e !== n.block.src && i("update", {
2133
+ src: e,
2134
+ ...pe(null)
2135
+ });
2136
+ }
2137
+ function re(e) {
2138
+ i("update", {
2139
+ src: e.url,
2140
+ ...pe(ce(e.width, e.height))
2141
+ }), e.alt && (P("alt", e.alt), D.value = !0), E.value = !0, O();
2142
+ }
2143
+ let ie = _(), ae = m(() => j(n.block.src, l)), { canBrowse: oe, isUploading: le, showOverlay: ue, openMediaBrowser: he } = be({
2144
+ target: ie,
2145
+ blocked: ae,
2146
+ apply: re
2147
+ }), ge = se(() => ae.value || !n.block.src || fe(n.block) ? void 0 : n.block.src), _e = ln(() => ge.value), ve = m(() => f ? me(f.content.value, n.block.id, w) : null), z = Vr({
2148
+ block: () => n.block,
2149
+ room: () => ve.value,
2150
+ measured: () => _e.value
2151
+ }), { available: ye, locked: xe, derivedHeight: Se, cappedHeight: Ce } = z;
2152
+ function B() {
2153
+ let e = z.setLocked(!xe.value);
2154
+ e && i("update", e);
2155
+ }
2156
+ let we = _(null);
2157
+ function Te(e) {
2158
+ we.value = e;
2159
+ let t = z.heightUpdates(Number(e));
2160
+ t && i("update", t);
2161
+ }
2162
+ return (t, n) => (a(), v(S, null, [
2163
+ p(q, {
2164
+ label: h(s).image.imageUrl,
2165
+ class: "tpl:mb-3.5",
2166
+ path: "src"
2167
+ }, {
2168
+ default: u(() => [b("div", {
2169
+ ref_key: "dropZoneRef",
2170
+ ref: ie,
2171
+ class: "tpl:relative"
2172
+ }, [
2173
+ h(ue) ? (a(), C(de, {
2174
+ key: 0,
2175
+ uploading: h(le)
2176
+ }, null, 8, ["uploading"])) : g("", !0),
2177
+ p(Y, {
2178
+ "model-value": e.block.src,
2179
+ type: "url",
2180
+ placeholder: h(s).image.imageUrlPlaceholder,
2181
+ pulse: E.value,
2182
+ "onUpdate:modelValue": n[0] ||= (e) => R(e)
2183
+ }, null, 8, [
2184
+ "model-value",
2185
+ "placeholder",
2186
+ "pulse"
2187
+ ]),
2188
+ h(oe) ? (a(), v("button", {
2189
+ key: 1,
2190
+ class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all",
2191
+ style: {
2192
+ "border-color": "var(--tpl-border)",
2193
+ color: "var(--tpl-primary)",
2194
+ "background-color": "var(--tpl-bg)"
2195
+ },
2196
+ onClick: n[1] ||= (...e) => h(he) && h(he)(...e)
2197
+ }, [p(h(ke), {
2198
+ size: 14,
2199
+ "stroke-width": 1.5
2200
+ }), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)
2201
+ ], 512)]),
2202
+ _: 1
2203
+ }, 8, ["label"]),
2204
+ h(j)(e.block.src, h(l)) ? (a(), C(q, {
2205
+ key: 0,
2206
+ class: "tpl:mb-3.5",
2207
+ path: "placeholderUrl"
2208
+ }, {
2209
+ label: u(() => [y(r(h(s).image.placeholderUrl) + " ", 1), b("span", Hr, r(h(s).image.optional), 1)]),
2210
+ default: u(() => [b("input", {
2211
+ type: "url",
2212
+ class: o(h(G)),
2213
+ value: e.block.placeholderUrl || "",
2214
+ placeholder: h(s).image.placeholderUrlPlaceholder,
2215
+ title: h(s).image.placeholderUrlTooltip,
2216
+ onInput: n[2] ||= (e) => P("placeholderUrl", e.target.value)
2217
+ }, null, 42, Ur)]),
2218
+ _: 1
2219
+ })) : g("", !0),
2220
+ p(q, {
2221
+ label: h(s).image.altText,
2222
+ class: "tpl:mb-3.5",
2223
+ path: "alt"
2224
+ }, {
2225
+ default: u(() => [p(Y, {
2226
+ "model-value": e.block.alt,
2227
+ type: "text",
2228
+ placeholder: h(s).image.altTextPlaceholder,
2229
+ pulse: D.value,
2230
+ disabled: e.block.decorative === !0,
2231
+ "onUpdate:modelValue": n[3] ||= (e) => P("alt", e)
2232
+ }, null, 8, [
2233
+ "model-value",
2234
+ "placeholder",
2235
+ "pulse",
2236
+ "disabled"
2237
+ ]), p(q, {
2238
+ path: "decorative",
2239
+ label: h(s).image.decorative
2240
+ }, {
2241
+ label: u(() => [b("span", null, [y(r(h(s).image.decorative) + " ", 1), b("span", Wr, r(h(s).image.decorativeHint), 1)])]),
2242
+ "label-actions": u(({ controlId: t }) => [p(J, {
2243
+ "control-id": t,
2244
+ "hide-label": "",
2245
+ class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
2246
+ "model-value": e.block.decorative === !0,
2247
+ label: h(s).image.decorative,
2248
+ "onUpdate:modelValue": n[4] ||= (e) => P("decorative", e)
2249
+ }, null, 8, [
2250
+ "control-id",
2251
+ "model-value",
2252
+ "label"
2253
+ ])]),
2254
+ _: 1
2255
+ }, 8, ["label"])]),
2256
+ _: 1
2257
+ }, 8, ["label"]),
2258
+ p(q, {
2259
+ label: h(s).image.width,
2260
+ class: "tpl:mb-3.5",
2261
+ path: "width"
2262
+ }, {
2263
+ default: u(() => [b("select", {
2264
+ class: o(h(G)),
2265
+ "data-testid": "image-width-mode",
2266
+ value: A.value,
2267
+ onChange: n[5] ||= (e) => I(e.target.value)
2268
+ }, [
2269
+ b("option", Kr, r(h(s).image.fullWidth), 1),
2270
+ n[15] ||= b("option", { value: "300" }, "300px", -1),
2271
+ n[16] ||= b("option", { value: "400" }, "400px", -1),
2272
+ n[17] ||= b("option", { value: "500" }, "500px", -1),
2273
+ b("option", qr, r(h(s).image.widthCustom), 1)
2274
+ ], 42, Gr), A.value === "custom" ? (a(), v("div", Jr, [b("input", {
2275
+ type: "number",
2276
+ "data-testid": "image-width-input",
2277
+ class: o(h(W)),
2278
+ value: typeof e.block.width == "number" ? e.block.width : ii,
2279
+ min: "20",
2280
+ onInput: n[6] ||= (e) => ne(e.target.value)
2281
+ }, null, 42, Yr), b("span", { class: o(h(U)) }, "px", 2)])) : g("", !0)]),
2282
+ _: 1
2283
+ }, 8, ["label"]),
2284
+ p(q, {
2285
+ class: "tpl:mb-3.5",
2286
+ path: "height",
2287
+ label: h(s).image.height
2288
+ }, x({
2289
+ default: u(() => [
2290
+ h(xe) ? (a(), v(S, { key: 0 }, [b("div", Xr, [b("input", {
2291
+ type: "number",
2292
+ "data-testid": "image-locked-height-input",
2293
+ class: o(h(W)),
2294
+ value: we.value ?? h(Se) ?? "",
2295
+ min: "1",
2296
+ onInput: n[7] ||= (e) => Te(e.target.value),
2297
+ onBlur: n[8] ||= (e) => we.value = null
2298
+ }, null, 42, Zr), b("span", { class: o(h(U)) }, "px", 2)]), h(Ce) === null ? g("", !0) : (a(), v("p", Qr, r(h(c)(h(s).image.heightCapped, { height: h(Ce) })), 1))], 64)) : g("", !0),
2299
+ h(xe) ? g("", !0) : (a(), v("select", {
2300
+ key: 1,
2301
+ class: o(h(G)),
2302
+ "data-testid": "image-height-mode",
2303
+ value: M.value,
2304
+ onChange: n[9] ||= (e) => L(e.target.value)
2305
+ }, [b("option", ei, r(h(s).image.heightAuto), 1), b("option", ti, r(h(s).image.heightCustom), 1)], 42, $r)),
2306
+ !h(xe) && M.value === "custom" ? (a(), v("div", ni, [b("input", {
2307
+ type: "number",
2308
+ "data-testid": "image-height-input",
2309
+ class: o(h(W)),
2310
+ value: e.block.height,
2311
+ min: "20",
2312
+ onInput: n[10] ||= (e) => ee(e.target.value)
2313
+ }, null, 42, ri), b("span", { class: o(h(U)) }, "px", 2)])) : g("", !0)
2314
+ ]),
2315
+ _: 2
2316
+ }, [h(ye) ? {
2317
+ name: "label-actions",
2318
+ fn: u(() => [p(bt, {
2319
+ linked: h(xe),
2320
+ "link-label": h(s).image.lockAspectRatio,
2321
+ "unlink-label": h(s).image.unlockAspectRatio,
2322
+ testid: "image-aspect-lock",
2323
+ onToggle: B
2324
+ }, null, 8, [
2325
+ "linked",
2326
+ "link-label",
2327
+ "unlink-label"
2328
+ ])]),
2329
+ key: "0"
2330
+ } : void 0]), 1032, ["label"]),
2331
+ p(Dt, {
2332
+ path: "borderRadius",
2333
+ "model-value": e.block.borderRadius,
2334
+ label: h(s).image.borderRadius,
2335
+ "testid-prefix": "image",
2336
+ "onUpdate:modelValue": te
2337
+ }, null, 8, ["model-value", "label"]),
2338
+ p(wt, {
2339
+ path: "border",
2340
+ "model-value": e.block.border,
2341
+ "testid-prefix": "image",
2342
+ "onUpdate:modelValue": n[11] ||= (e) => P("border", e)
2343
+ }, null, 8, ["model-value"]),
2344
+ p(q, {
2345
+ label: h(s).title.align,
2346
+ class: "tpl:mb-3.5",
2347
+ path: "align"
2348
+ }, {
2349
+ default: u(() => [p(X, {
2350
+ options: [
2351
+ {
2352
+ value: "left",
2353
+ label: h(s).title.alignLeft
2354
+ },
2355
+ {
2356
+ value: "center",
2357
+ label: h(s).title.alignCenter
2358
+ },
2359
+ {
2360
+ value: "right",
2361
+ label: h(s).title.alignRight
2362
+ }
2363
+ ],
2364
+ "model-value": e.block.align,
2365
+ "onUpdate:modelValue": n[12] ||= (e) => P("align", e)
2366
+ }, null, 8, ["options", "model-value"])]),
2367
+ _: 1
2368
+ }, 8, ["label"]),
2369
+ p(q, {
2370
+ label: h(s).image.linkUrl,
2371
+ class: "tpl:mb-3.5",
2372
+ path: "linkUrl"
2373
+ }, {
2374
+ default: u(() => [p(Y, {
2375
+ "model-value": e.block.linkUrl || "",
2376
+ type: "url",
2377
+ placeholder: h(s).image.imageUrlPlaceholder,
2378
+ "onUpdate:modelValue": n[13] ||= (e) => P("linkUrl", e)
2379
+ }, null, 8, ["model-value", "placeholder"]), e.block.linkUrl ? (a(), C(q, {
2380
+ key: 0,
2381
+ path: "linkOpenInNewTab",
2382
+ label: h(s).image.openInNewTab
2383
+ }, {
2384
+ "label-actions": u(({ controlId: t }) => [p(J, {
2385
+ "control-id": t,
2386
+ "hide-label": "",
2387
+ class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
2388
+ "model-value": e.block.linkOpenInNewTab ?? !1,
2389
+ label: h(s).image.openInNewTab,
2390
+ "onUpdate:modelValue": n[14] ||= (e) => P("linkOpenInNewTab", e)
2391
+ }, null, 8, [
2392
+ "control-id",
2393
+ "model-value",
2394
+ "label"
2395
+ ])]),
2396
+ _: 1
2397
+ }, 8, ["label"])) : g("", !0)]),
2398
+ _: 1
2399
+ }, 8, ["label"])
2400
+ ], 64));
2401
+ }
2402
+ }), si = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ci = { class: "tpl:flex tpl:items-center tpl:gap-2" }, li = [
2403
+ "value",
2404
+ "placeholder",
2405
+ "onInput"
2406
+ ], ui = ["title", "onClick"], di = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, fi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, pi = ["value"], mi = { value: "" }, hi = ["value"], gi = ["value"], _i = /* @__PURE__ */ E({
2407
+ __name: "MenuToolbar",
2408
+ props: {
2409
+ block: {},
2410
+ fontFamilies: {}
2411
+ },
2412
+ emits: ["update"],
2413
+ setup(e, { emit: t }) {
2414
+ let n = e, i = t, { t: c } = H(), l = m(() => [
2415
+ {
2416
+ key: "openInNewTab",
2417
+ label: c.menu.openInNewTab
2418
+ },
2419
+ {
2420
+ key: "bold",
2421
+ label: c.menu.bold
2422
+ },
2423
+ {
2424
+ key: "underline",
2425
+ label: c.menu.underline
2426
+ }
2427
+ ]), d = m(() => [
2428
+ {
2429
+ value: "left",
2430
+ label: c.title.alignLeft,
2431
+ icon: Le
2432
+ },
2433
+ {
2434
+ value: "center",
2435
+ label: c.title.alignCenter,
2436
+ icon: Fe
2437
+ },
2438
+ {
2439
+ value: "right",
2440
+ label: c.title.alignRight,
2441
+ icon: Ie
2442
+ }
2443
+ ]);
2444
+ function f(e, t) {
2445
+ i("update", { [e]: t });
2446
+ }
2447
+ function g() {
2448
+ let e = {
2449
+ id: M(),
2450
+ text: "",
2451
+ url: "",
2452
+ openInNewTab: !1,
2453
+ bold: !1,
2454
+ underline: !1
2455
+ };
2456
+ i("update", { items: [...n.block.items, e] });
2457
+ }
2458
+ function _(e, t, r) {
2459
+ let a = n.block.items.map((n) => n.id === e ? {
2460
+ ...n,
2461
+ [t]: r
2462
+ } : n);
2463
+ i("update", { items: a });
2464
+ }
2465
+ function x(e) {
2466
+ i("update", { items: n.block.items.filter((t) => t.id !== e) });
2467
+ }
2468
+ return (t, n) => (a(), v(S, null, [
2469
+ p(q, { label: h(c).menu.items }, {
2470
+ default: u(() => [b("div", si, [(a(!0), v(S, null, s(e.block.items, (t) => (a(), v("div", {
2471
+ key: t.id,
2472
+ class: "tpl:flex tpl:flex-col tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-2"
2473
+ }, [
2474
+ b("div", ci, [p(q, {
2475
+ path: t.id.includes(".") ? void 0 : `items.${t.id}.text`,
2476
+ label: h(c).menu.text
2477
+ }, {
2478
+ default: u(() => [b("input", {
2479
+ type: "text",
2480
+ class: o([h(G), "tpl:flex-1"]),
2481
+ value: t.text,
2482
+ placeholder: h(c).menu.text,
2483
+ onInput: (e) => _(t.id, "text", e.target.value)
2484
+ }, null, 42, li)]),
2485
+ _: 2
2486
+ }, 1032, ["path", "label"]), b("button", {
2487
+ class: o(h(tt)),
2488
+ title: h(c).menu.removeItem,
2489
+ onClick: (e) => x(t.id)
2490
+ }, [p(h(ze), {
2491
+ size: 14,
2492
+ "stroke-width": 2
2493
+ })], 10, ui)]),
2494
+ p(q, {
2495
+ path: t.id.includes(".") ? void 0 : `items.${t.id}.url`,
2496
+ label: h(c).button.url
2497
+ }, {
2498
+ default: u(() => [p(Y, {
2499
+ "model-value": t.url,
2500
+ type: "url",
2501
+ placeholder: h(c).menu.urlPlaceholder,
2502
+ "onUpdate:modelValue": (e) => _(t.id, "url", e)
2503
+ }, null, 8, [
2504
+ "model-value",
2505
+ "placeholder",
2506
+ "onUpdate:modelValue"
2507
+ ])]),
2508
+ _: 2
2509
+ }, 1032, ["path", "label"]),
2510
+ b("div", di, [(a(!0), v(S, null, s(l.value, (e) => (a(), C(q, {
2511
+ key: e.key,
2512
+ path: t.id.includes(".") ? void 0 : `items.${t.id}.${e.key}`,
2513
+ label: e.label
2514
+ }, {
2515
+ "label-actions": u(({ controlId: n }) => [p(J, {
2516
+ "control-id": n,
2517
+ "hide-label": "",
2518
+ "model-value": t[e.key],
2519
+ label: e.label,
2520
+ "onUpdate:modelValue": (n) => _(t.id, e.key, n)
2521
+ }, null, 8, [
2522
+ "control-id",
2523
+ "model-value",
2524
+ "label",
2525
+ "onUpdate:modelValue"
2526
+ ])]),
2527
+ _: 2
2528
+ }, 1032, ["path", "label"]))), 128))]),
2529
+ b("div", fi, [p(q, {
2530
+ path: t.id.includes(".") ? void 0 : `items.${t.id}.color`,
2531
+ label: h(c).menu.color
2532
+ }, {
2533
+ default: u(() => [p(B, {
2534
+ "swatch-only": "",
2535
+ "model-value": t.color || e.block.linkColor || e.block.color || "",
2536
+ "onUpdate:modelValue": (e) => _(t.id, "color", e)
2537
+ }, null, 8, ["model-value", "onUpdate:modelValue"])]),
2538
+ _: 2
2539
+ }, 1032, ["path", "label"])])
2540
+ ]))), 128)), b("button", {
2541
+ class: o(h(rt)),
2542
+ onClick: g
2543
+ }, [p(h(V), {
2544
+ size: 14,
2545
+ "stroke-width": 2
2546
+ }), y(" " + r(h(c).menu.addItem), 1)], 2)])]),
2547
+ _: 1
2548
+ }, 8, ["label"]),
2549
+ p(q, {
2550
+ path: "fontFamily",
2551
+ label: h(c).menu.fontFamily
2552
+ }, {
2553
+ default: u(() => [b("select", {
2554
+ class: o(h(G)),
2555
+ value: h(dt)(e.block.fontFamily),
2556
+ onChange: n[0] ||= (e) => f("fontFamily", e.target.value || void 0)
2557
+ }, [b("option", mi, r(h(c).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
2558
+ key: e.value,
2559
+ value: e.value
2560
+ }, r(e.label), 9, hi))), 128))], 42, pi)]),
2561
+ _: 1
2562
+ }, 8, ["label"]),
2563
+ p(q, {
2564
+ path: "fontSize",
2565
+ label: h(c).menu.fontSize
2566
+ }, {
2567
+ default: u(() => [p(Z, {
2568
+ "model-value": e.block.fontSize,
2569
+ min: 8,
2570
+ max: 48,
2571
+ suffix: "px",
2572
+ "onUpdate:modelValue": n[1] ||= (e) => f("fontSize", e)
2573
+ }, null, 8, ["model-value"])]),
2574
+ _: 1
2575
+ }, 8, ["label"]),
2576
+ p(q, {
2577
+ path: "color",
2578
+ label: h(c).menu.color
2579
+ }, {
2580
+ default: u(() => [p(B, {
2581
+ "model-value": e.block.color ?? "",
2582
+ "onUpdate:modelValue": n[2] ||= (e) => f("color", e || void 0)
2583
+ }, null, 8, ["model-value"])]),
2584
+ _: 1
2585
+ }, 8, ["label"]),
2586
+ p(q, {
2587
+ path: "linkColor",
2588
+ label: h(c).menu.linkColor
2589
+ }, {
2590
+ default: u(() => [p(B, {
2591
+ "model-value": e.block.linkColor || e.block.color || "",
2592
+ "onUpdate:modelValue": n[3] ||= (e) => f("linkColor", e || void 0)
2593
+ }, null, 8, ["model-value"])]),
2594
+ _: 1
2595
+ }, 8, ["label"]),
2596
+ p(q, {
2597
+ path: "textAlign",
2598
+ label: h(c).menu.textAlign
2599
+ }, {
2600
+ default: u(() => [p(X, {
2601
+ options: d.value,
2602
+ "model-value": e.block.textAlign,
2603
+ "onUpdate:modelValue": n[4] ||= (e) => f("textAlign", e)
2604
+ }, null, 8, ["options", "model-value"])]),
2605
+ _: 1
2606
+ }, 8, ["label"]),
2607
+ p(q, {
2608
+ path: "separator",
2609
+ label: h(c).menu.separator
2610
+ }, {
2611
+ default: u(() => [b("input", {
2612
+ type: "text",
2613
+ class: o(h(G)),
2614
+ value: e.block.separator,
2615
+ onInput: n[5] ||= (e) => f("separator", e.target.value)
2616
+ }, null, 42, gi)]),
2617
+ _: 1
2618
+ }, 8, ["label"]),
2619
+ p(q, {
2620
+ path: "separatorColor",
2621
+ label: h(c).menu.separatorColor
2622
+ }, {
2623
+ default: u(() => [p(B, {
2624
+ "model-value": e.block.separatorColor,
2625
+ "onUpdate:modelValue": n[6] ||= (e) => f("separatorColor", e)
2626
+ }, null, 8, ["model-value"])]),
2627
+ _: 1
2628
+ }, 8, ["label"]),
2629
+ p(q, {
2630
+ path: "spacing",
2631
+ label: h(c).menu.spacing
2632
+ }, {
2633
+ default: u(() => [p(Z, {
2634
+ "model-value": e.block.spacing,
2635
+ min: 0,
2636
+ max: 50,
2637
+ suffix: "px",
2638
+ "onUpdate:modelValue": n[7] ||= (e) => f("spacing", e)
2639
+ }, null, 8, ["model-value"])]),
2640
+ _: 1
2641
+ }, 8, ["label"])
2642
+ ], 64));
2643
+ }
2644
+ }), vi = { class: "tpl:flex tpl:items-stretch" }, yi = ["value"], bi = /* @__PURE__ */ E({
2645
+ __name: "ParagraphToolbar",
2646
+ props: { block: {} },
2647
+ emits: ["update"],
2648
+ setup(e, { emit: t }) {
2649
+ let n = t, { t: r } = H();
2650
+ return (t, i) => (a(), C(q, {
2651
+ label: h(r).paragraph.paragraphSpacing,
2652
+ class: "tpl:mb-3.5",
2653
+ "data-testid": "paragraph-spacing",
2654
+ path: "paragraphSpacing"
2655
+ }, {
2656
+ default: u(() => [b("div", vi, [b("input", {
2657
+ type: "number",
2658
+ class: o(h(W)),
2659
+ value: e.block.paragraphSpacing ?? h(P).paragraphGap,
2660
+ min: "0",
2661
+ max: "64",
2662
+ onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
2663
+ }, null, 42, yi), b("span", { class: o(h(U)) }, "px", 2)])]),
2664
+ _: 1
2665
+ }, 8, ["label"]));
2666
+ }
2667
+ });
2668
+ // src/utils/rebalanceColumnChildren.ts
2669
+ function xi(e, t) {
2670
+ let n = R(t);
2671
+ if (e.length === n) return e;
2672
+ if (e.length < n) {
2673
+ let t = Array.from({ length: n - e.length }, () => []);
2674
+ return [...e, ...t];
2675
+ }
2676
+ let r = e.slice(0, n), i = e.slice(n).flat(), a = [...r[n - 1], ...i];
2677
+ return [...r.slice(0, n - 1), a];
2678
+ }
2679
+ // src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
2680
+ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
2681
+ key: 2,
2682
+ class: "tpl:mb-3.5"
2683
+ }, Ei = {
2684
+ key: 0,
2685
+ class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
2686
+ }, Di = {
2687
+ key: 1,
2688
+ class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
2689
+ }, Oi = /* @__PURE__ */ E({
2690
+ __name: "SectionToolbar",
2691
+ props: { block: {} },
2692
+ emits: ["update"],
2693
+ setup(e, { emit: t }) {
2694
+ let n = e, i = t, { t: c } = H(), l = T(Ue, void 0), d = T(Ge, void 0), f = l !== void 0 && A(l), _ = m(() => d !== !1 || !!n.block.wrapper), y = m(() => f && !n.block.wrapper), x = m(() => f && _.value), w = m(() => k(n.block)?.applied === !0), E = m(() => [
2695
+ {
2696
+ value: "1",
2697
+ label: c.section.column1
2698
+ },
2699
+ {
2700
+ value: "2",
2701
+ label: c.section.column2
2702
+ },
2703
+ {
2704
+ value: "3",
2705
+ label: c.section.column3
2706
+ },
2707
+ {
2708
+ value: "1-2",
2709
+ label: c.section.ratio12
2710
+ },
2711
+ {
2712
+ value: "2-1",
2713
+ label: c.section.ratio21
2714
+ }
2715
+ ]);
2716
+ function D(e) {
2717
+ let t = e.target.value, r = xi(n.block.children, t);
2718
+ i("update", {
2719
+ columns: t,
2720
+ children: r
2721
+ });
2722
+ }
2723
+ function O(e) {
2724
+ i("update", { stackOnMobile: e });
2725
+ }
2726
+ function j(e) {
2727
+ i("update", { borderRadius: e });
2728
+ }
2729
+ function M(e) {
2730
+ i("update", { wrapper: e ? { padding: {
2731
+ top: 20,
2732
+ right: 20,
2733
+ bottom: 20,
2734
+ left: 20
2735
+ } } : void 0 });
2736
+ }
2737
+ function N(e) {
2738
+ i("update", { wrapper: {
2739
+ ...n.block.wrapper,
2740
+ ...e
2741
+ } });
2742
+ }
2743
+ function P(e) {
2744
+ N({ padding: e });
2745
+ }
2746
+ function F(e) {
2747
+ N({ borderRadius: e });
2748
+ }
2749
+ return (t, n) => (a(), v(S, null, [
2750
+ b("div", Si, [b("label", { class: o(h(K)) }, r(h(c).section.columns), 3), b("select", {
2751
+ class: o(h(G)),
2752
+ value: e.block.columns,
2753
+ onChange: D
2754
+ }, [(a(!0), v(S, null, s(E.value, (e) => (a(), v("option", {
2755
+ key: e.value,
2756
+ value: e.value
2757
+ }, r(e.label), 9, wi))), 128))], 42, Ci)]),
2758
+ e.block.columns === "1" ? g("", !0) : (a(), C(q, {
2759
+ key: 0,
2760
+ class: "tpl:mb-3.5",
2761
+ path: "stackOnMobile",
2762
+ label: h(c).section.stackOnMobile
2763
+ }, {
2764
+ "label-actions": u(({ controlId: t }) => [p(J, {
2765
+ "control-id": t,
2766
+ "hide-label": "",
2767
+ class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2768
+ "model-value": e.block.stackOnMobile !== !1,
2769
+ label: h(c).section.stackOnMobile,
2770
+ "onUpdate:modelValue": n[0] ||= (e) => O(e)
2771
+ }, null, 8, [
2772
+ "control-id",
2773
+ "model-value",
2774
+ "label"
2775
+ ])]),
2776
+ _: 1
2777
+ }, 8, ["label"])),
2778
+ p(Dt, {
2779
+ path: "borderRadius",
2780
+ "model-value": e.block.borderRadius,
2781
+ label: h(c).section.borderRadius,
2782
+ max: 50,
2783
+ "testid-prefix": "section",
2784
+ "onUpdate:modelValue": j
2785
+ }, null, 8, ["model-value", "label"]),
2786
+ w.value ? g("", !0) : (a(), C(wt, {
2787
+ key: 1,
2788
+ path: "border",
2789
+ "model-value": e.block.border,
2790
+ "testid-prefix": "section",
2791
+ "onUpdate:modelValue": n[1] ||= (e) => i("update", { border: e })
2792
+ }, null, 8, ["model-value"])),
2793
+ _.value ? (a(), v("div", Ti, [
2794
+ p(q, {
2795
+ path: "wrapper",
2796
+ label: h(c).section.wrapperEnable
2797
+ }, {
2798
+ "label-actions": u(({ controlId: t }) => [p(J, {
2799
+ "control-id": t,
2800
+ "hide-label": "",
2801
+ class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2802
+ "model-value": !!e.block.wrapper,
2803
+ label: h(c).section.wrapperEnable,
2804
+ disabled: y.value,
2805
+ "onUpdate:modelValue": n[2] ||= (e) => M(e)
2806
+ }, null, 8, [
2807
+ "control-id",
2808
+ "model-value",
2809
+ "label",
2810
+ "disabled"
2811
+ ])]),
2812
+ _: 1
2813
+ }, 8, ["label"]),
2814
+ x.value ? (a(), v("p", Ei, r(h(c).section.wrapperLayoutConflict), 1)) : g("", !0),
2815
+ e.block.wrapper ? (a(), v("div", Di, [
2816
+ b("div", null, [p(q, {
2817
+ path: "wrapper.backgroundColor",
2818
+ label: h(c).blockSettings.color
2819
+ }, {
2820
+ default: u(() => [p(B, {
2821
+ "model-value": e.block.wrapper.backgroundColor ?? "",
2822
+ "allow-transparent": "",
2823
+ "onUpdate:modelValue": n[3] ||= (e) => N({ backgroundColor: e })
2824
+ }, null, 8, ["model-value"])]),
2825
+ _: 1
2826
+ }, 8, ["label"])]),
2827
+ p(q, {
2828
+ path: "wrapper.backgroundImage",
2829
+ label: h(c).blockSettings.backgroundImage
2830
+ }, {
2831
+ default: u(() => [p(yn, {
2832
+ "hide-label": "",
2833
+ "model-value": e.block.wrapper.backgroundImage,
2834
+ "testid-prefix": "section-wrapper",
2835
+ "onUpdate:modelValue": n[4] ||= (e) => N({ backgroundImage: e })
2836
+ }, null, 8, ["model-value"])]),
2837
+ _: 1
2838
+ }, 8, ["label"]),
2839
+ p(cn, {
2840
+ path: "wrapper.padding",
2841
+ label: h(c).blockSettings.padding,
2842
+ "model-value": e.block.wrapper.padding ?? {
2843
+ top: 0,
2844
+ right: 0,
2845
+ bottom: 0,
2846
+ left: 0
2847
+ },
2848
+ "onUpdate:modelValue": P
2849
+ }, null, 8, ["label", "model-value"]),
2850
+ p(Dt, {
2851
+ path: "wrapper.borderRadius",
2852
+ "model-value": e.block.wrapper.borderRadius,
2853
+ label: h(c).section.borderRadius,
2854
+ max: 50,
2855
+ "testid-prefix": "section-wrapper",
2856
+ "onUpdate:modelValue": F
2857
+ }, null, 8, ["model-value", "label"])
2858
+ ])) : g("", !0)
2859
+ ])) : g("", !0)
2860
+ ], 64));
2861
+ }
2862
+ }), ki = { class: "tpl:mb-3.5" }, Ai = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ji = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Mi = ["value", "onChange"], Ni = ["value"], Pi = ["title", "onClick"], Fi = ["value"], Ii = { value: "solid" }, Li = { value: "outlined" }, Ri = { value: "rounded" }, zi = { value: "square" }, Bi = { value: "circle" }, Vi = { value: "plain" }, Hi = ["value"], Ui = { value: "brand" }, Wi = { value: "dark" }, Gi = { value: "light" }, Ki = { class: "tpl:flex tpl:items-stretch" }, qi = ["value"], Ji = /* @__PURE__ */ E({
2863
+ __name: "SocialToolbar",
2864
+ props: { block: {} },
2865
+ emits: ["update"],
2866
+ setup(e, { emit: t }) {
2867
+ let n = e, i = t, { t: c } = H();
2868
+ function l(e, t) {
2869
+ i("update", { [e]: t });
2870
+ }
2871
+ function d() {
2872
+ let e = {
2873
+ id: M(),
2874
+ platform: "facebook",
2875
+ url: ""
2876
+ };
2877
+ i("update", { icons: [...n.block.icons, e] });
2878
+ }
2879
+ function f(e, t, r) {
2880
+ let a = n.block.icons.map((n) => n.id === e ? {
2881
+ ...n,
2882
+ [t]: r
2883
+ } : n);
2884
+ i("update", { icons: a });
2885
+ }
2886
+ function m(e) {
2887
+ i("update", { icons: n.block.icons.filter((t) => t.id !== e) });
2888
+ }
2889
+ return (t, n) => (a(), v(S, null, [
2890
+ b("div", ki, [b("label", { class: o(h(K)) }, r(h(c).social.icons), 3), b("div", Ai, [(a(!0), v(S, null, s(e.block.icons, (e) => (a(), v("div", {
2891
+ key: e.id,
2892
+ class: "tpl:flex tpl:flex-col tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-2"
2893
+ }, [b("div", ji, [p(q, {
2894
+ path: e.id.includes(".") ? void 0 : `icons.${e.id}.platform`,
2895
+ label: h(c).social.icons
2896
+ }, {
2897
+ default: u(() => [b("select", {
2898
+ "data-testid": "social-platform-select",
2899
+ class: o([h(G), "tpl:flex-1"]),
2900
+ value: e.platform,
2901
+ onChange: (t) => f(e.id, "platform", t.target.value)
2902
+ }, [(a(!0), v(S, null, s(h(z), (e) => (a(), v("option", {
2903
+ key: e,
2904
+ value: e
2905
+ }, r(h(c).social.platforms[e]), 9, Ni))), 128))], 42, Mi)]),
2906
+ _: 2
2907
+ }, 1032, ["path", "label"]), b("button", {
2908
+ class: o(h(tt)),
2909
+ title: h(c).social.removeIcon,
2910
+ onClick: (t) => m(e.id)
2911
+ }, [p(h(ze), {
2912
+ size: 14,
2913
+ "stroke-width": 2
2914
+ })], 10, Pi)]), p(q, {
2915
+ path: e.id.includes(".") ? void 0 : `icons.${e.id}.url`,
2916
+ label: h(c).button.url
2917
+ }, {
2918
+ default: u(() => [p(Y, {
2919
+ "model-value": e.url,
2920
+ type: "url",
2921
+ placeholder: h(c).social.urlPlaceholder,
2922
+ "onUpdate:modelValue": (t) => f(e.id, "url", t)
2923
+ }, null, 8, [
2924
+ "model-value",
2925
+ "placeholder",
2926
+ "onUpdate:modelValue"
2927
+ ])]),
2928
+ _: 2
2929
+ }, 1032, ["path", "label"])]))), 128)), b("button", {
2930
+ class: o(h(rt)),
2931
+ onClick: d
2932
+ }, [p(h(V), {
2933
+ size: 14,
2934
+ "stroke-width": 2
2935
+ }), y(" " + r(h(c).social.addIcon), 1)], 2)])]),
2936
+ p(q, {
2937
+ label: h(c).social.style,
2938
+ class: "tpl:mb-3.5",
2939
+ path: "iconStyle"
2940
+ }, {
2941
+ default: u(() => [b("select", {
2942
+ class: o(h(G)),
2943
+ value: e.block.iconStyle,
2944
+ onChange: n[0] ||= (e) => l("iconStyle", e.target.value)
2945
+ }, [
2946
+ b("option", Ii, r(h(c).social.styleSolid), 1),
2947
+ b("option", Li, r(h(c).social.styleOutlined), 1),
2948
+ b("option", Ri, r(h(c).social.styleRounded), 1),
2949
+ b("option", zi, r(h(c).social.styleSquare), 1),
2950
+ b("option", Bi, r(h(c).social.styleCircle), 1),
2951
+ b("option", Vi, r(h(c).social.stylePlain), 1)
2952
+ ], 42, Fi)]),
2953
+ _: 1
2954
+ }, 8, ["label"]),
2955
+ p(q, {
2956
+ label: h(c).social.color,
2957
+ class: "tpl:mb-3.5",
2958
+ path: "iconTone"
2959
+ }, {
2960
+ default: u(() => [b("select", {
2961
+ "data-testid": "social-tone-select",
2962
+ class: o(h(G)),
2963
+ value: e.block.iconTone ?? "brand",
2964
+ onChange: n[1] ||= (e) => l("iconTone", e.target.value)
2965
+ }, [
2966
+ b("option", Ui, r(h(c).social.colorBrand), 1),
2967
+ b("option", Wi, r(h(c).social.colorDark), 1),
2968
+ b("option", Gi, r(h(c).social.colorLight), 1)
2969
+ ], 42, Hi)]),
2970
+ _: 1
2971
+ }, 8, ["label"]),
2972
+ p(q, {
2973
+ label: h(c).social.size,
2974
+ class: "tpl:mb-3.5",
2975
+ path: "iconSize"
2976
+ }, {
2977
+ default: u(() => [p(X, {
2978
+ options: [
2979
+ {
2980
+ value: "small",
2981
+ label: h(c).social.sizeSmall
2982
+ },
2983
+ {
2984
+ value: "medium",
2985
+ label: h(c).social.sizeMedium
2986
+ },
2987
+ {
2988
+ value: "large",
2989
+ label: h(c).social.sizeLarge
2990
+ }
2991
+ ],
2992
+ "model-value": e.block.iconSize,
2993
+ "onUpdate:modelValue": n[2] ||= (e) => l("iconSize", e)
2994
+ }, null, 8, ["options", "model-value"])]),
2995
+ _: 1
2996
+ }, 8, ["label"]),
2997
+ p(q, {
2998
+ label: h(c).social.spacing,
2999
+ class: "tpl:mb-3.5",
3000
+ path: "spacing"
3001
+ }, {
3002
+ default: u(() => [b("div", Ki, [b("input", {
3003
+ type: "number",
3004
+ class: o(h(W)),
3005
+ value: e.block.spacing,
3006
+ min: "0",
3007
+ max: "50",
3008
+ onInput: n[3] ||= (e) => l("spacing", Number(e.target.value))
3009
+ }, null, 42, qi), b("span", { class: o(h(U)) }, "px", 2)])]),
3010
+ _: 1
3011
+ }, 8, ["label"]),
3012
+ p(q, {
3013
+ label: h(c).social.align,
3014
+ class: "tpl:mb-3.5",
3015
+ path: "align"
3016
+ }, {
3017
+ default: u(() => [p(X, {
3018
+ options: [
3019
+ {
3020
+ value: "left",
3021
+ label: h(c).title.alignLeft,
3022
+ icon: h(Le)
3023
+ },
3024
+ {
3025
+ value: "center",
3026
+ label: h(c).title.alignCenter,
3027
+ icon: h(Fe)
3028
+ },
3029
+ {
3030
+ value: "right",
3031
+ label: h(c).title.alignRight,
3032
+ icon: h(Ie)
3033
+ }
3034
+ ],
3035
+ "model-value": e.block.align,
3036
+ "onUpdate:modelValue": n[4] ||= (e) => l("align", e)
3037
+ }, null, 8, ["options", "model-value"])]),
3038
+ _: 1
3039
+ }, 8, ["label"])
3040
+ ], 64));
3041
+ }
3042
+ }), Yi = { class: "tpl:flex tpl:items-stretch" }, Xi = ["value"], Zi = ["value"], Qi = /* @__PURE__ */ E({
3043
+ __name: "SpacerToolbar",
3044
+ props: { block: {} },
3045
+ emits: ["update"],
3046
+ setup(e, { emit: t }) {
3047
+ let n = t, { t: r } = H();
3048
+ return (t, i) => (a(), C(q, {
3049
+ label: h(r).spacer.height,
3050
+ class: "tpl:mb-3.5",
3051
+ path: "height"
3052
+ }, {
3053
+ default: u(() => [b("div", Yi, [b("input", {
3054
+ type: "number",
3055
+ class: o(h(W)),
3056
+ value: e.block.height,
3057
+ min: "10",
3058
+ max: "100",
3059
+ onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
3060
+ }, null, 42, Xi), b("span", { class: o(h(U)) }, "px", 2)]), b("input", {
3061
+ type: "range",
3062
+ class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
3063
+ value: e.block.height,
3064
+ min: "10",
3065
+ max: "100",
3066
+ onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
3067
+ }, null, 40, Zi)]),
3068
+ _: 1
3069
+ }, 8, ["label"]));
3070
+ }
3071
+ }), $i = { class: "tpl:mb-3.5" }, ea = { class: "tpl:flex tpl:items-center tpl:gap-3" }, ta = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, na = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ra = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ia = ["disabled"], aa = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, oa = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, sa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ca = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, la = ["disabled"], ua = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, da = { class: "tpl:flex tpl:items-stretch" }, fa = ["value"], pa = { class: "tpl:flex tpl:items-stretch" }, ma = ["value"], ha = ["value"], ga = { value: "" }, _a = ["value"], va = { class: "tpl:flex tpl:items-stretch" }, ya = ["value"], ba = /* @__PURE__ */ E({
3072
+ __name: "TableToolbar",
3073
+ props: {
3074
+ block: {},
3075
+ fontFamilies: {}
3076
+ },
3077
+ emits: ["update"],
3078
+ setup(e, { emit: t }) {
3079
+ let n = e, i = t, { t: c } = H(), l = m(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
3080
+ function d(e, t) {
3081
+ i("update", { [e]: t });
3082
+ }
3083
+ function f() {
3084
+ let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
3085
+ id: M(),
3086
+ cells: Array.from({ length: e }, () => ({
3087
+ id: M(),
3088
+ content: ""
3089
+ }))
3090
+ };
3091
+ i("update", { rows: [...n.block.rows, t] });
3092
+ }
3093
+ function _(e) {
3094
+ i("update", { rows: n.block.rows.filter((t) => t.id !== e) });
3095
+ }
3096
+ function y() {
3097
+ let e = n.block.rows.map((e) => ({
3098
+ ...e,
3099
+ cells: [...e.cells, {
3100
+ id: M(),
3101
+ content: ""
3102
+ }]
3103
+ }));
3104
+ i("update", { rows: e });
3105
+ }
3106
+ function x(e) {
3107
+ let t = n.block.rows.map((t) => ({
3108
+ ...t,
3109
+ cells: t.cells.filter((t, n) => n !== e)
3110
+ }));
3111
+ i("update", { rows: t });
3112
+ }
3113
+ return (t, n) => (a(), v(S, null, [
3114
+ b("div", $i, [b("label", { class: o(h(K)) }, r(h(c).table.dimensions), 3), b("div", ea, [b("div", ta, [b("span", na, r(h(c).table.rows), 1), b("div", ra, [
3115
+ b("button", {
3116
+ class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
3117
+ disabled: e.block.rows.length <= 1,
3118
+ onClick: n[0] ||= (t) => _(e.block.rows[e.block.rows.length - 1].id)
3119
+ }, [p(h(Ee), {
3120
+ size: 12,
3121
+ "stroke-width": 2
3122
+ })], 8, ia),
3123
+ b("span", aa, r(e.block.rows.length), 1),
3124
+ b("button", {
3125
+ class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)]",
3126
+ onClick: f
3127
+ }, [p(h(V), {
3128
+ size: 12,
3129
+ "stroke-width": 2
3130
+ })])
3131
+ ])]), b("div", oa, [b("span", sa, r(h(c).table.columns), 1), b("div", ca, [
3132
+ b("button", {
3133
+ class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
3134
+ disabled: l.value <= 1,
3135
+ onClick: n[1] ||= (e) => x(l.value - 1)
3136
+ }, [p(h(Ee), {
3137
+ size: 12,
3138
+ "stroke-width": 2
3139
+ })], 8, la),
3140
+ b("span", ua, r(l.value), 1),
3141
+ b("button", {
3142
+ class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)]",
3143
+ onClick: y
3144
+ }, [p(h(V), {
3145
+ size: 12,
3146
+ "stroke-width": 2
3147
+ })])
3148
+ ])])])]),
3149
+ p(q, {
3150
+ class: "tpl:mb-3.5",
3151
+ path: "hasHeaderRow",
3152
+ label: h(c).table.hasHeaderRow
3153
+ }, {
3154
+ "label-actions": u(({ controlId: t }) => [p(J, {
3155
+ "control-id": t,
3156
+ "hide-label": "",
3157
+ class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
3158
+ "model-value": e.block.hasHeaderRow,
3159
+ label: h(c).table.hasHeaderRow,
3160
+ "onUpdate:modelValue": n[2] ||= (e) => d("hasHeaderRow", e)
3161
+ }, null, 8, [
3162
+ "control-id",
3163
+ "model-value",
3164
+ "label"
3165
+ ])]),
3166
+ _: 1
3167
+ }, 8, ["label"]),
3168
+ e.block.hasHeaderRow ? (a(), C(q, {
3169
+ key: 0,
3170
+ label: h(c).table.headerBackgroundColor,
3171
+ class: "tpl:mb-3.5",
3172
+ path: "headerBackgroundColor"
3173
+ }, {
3174
+ default: u(() => [p(B, {
3175
+ "model-value": e.block.headerBackgroundColor ?? "",
3176
+ "seed-color": h(it),
3177
+ placeholder: h(c).table.noHeaderBg,
3178
+ "onUpdate:modelValue": n[3] ||= (e) => d("headerBackgroundColor", e || null)
3179
+ }, null, 8, [
3180
+ "model-value",
3181
+ "seed-color",
3182
+ "placeholder"
3183
+ ])]),
3184
+ _: 1
3185
+ }, 8, ["label"])) : g("", !0),
3186
+ p(q, {
3187
+ label: h(c).table.borderColor,
3188
+ class: "tpl:mb-3.5",
3189
+ path: "borderColor"
3190
+ }, {
3191
+ default: u(() => [p(B, {
3192
+ "model-value": e.block.borderColor,
3193
+ "onUpdate:modelValue": n[4] ||= (e) => d("borderColor", e)
3194
+ }, null, 8, ["model-value"])]),
3195
+ _: 1
3196
+ }, 8, ["label"]),
3197
+ p(q, {
3198
+ label: h(c).table.borderWidth,
3199
+ class: "tpl:mb-3.5",
3200
+ path: "borderWidth"
3201
+ }, {
3202
+ default: u(() => [b("div", da, [b("input", {
3203
+ type: "number",
3204
+ class: o(h(W)),
3205
+ value: e.block.borderWidth,
3206
+ min: "0",
3207
+ max: "10",
3208
+ onInput: n[5] ||= (e) => d("borderWidth", Number(e.target.value))
3209
+ }, null, 42, fa), b("span", { class: o(h(U)) }, "px", 2)])]),
3210
+ _: 1
3211
+ }, 8, ["label"]),
3212
+ p(q, {
3213
+ label: h(c).table.cellPadding,
3214
+ class: "tpl:mb-3.5",
3215
+ path: "cellPadding"
3216
+ }, {
3217
+ default: u(() => [b("div", pa, [b("input", {
3218
+ type: "number",
3219
+ class: o(h(W)),
3220
+ value: e.block.cellPadding,
3221
+ min: "0",
3222
+ max: "30",
3223
+ onInput: n[6] ||= (e) => d("cellPadding", Number(e.target.value))
3224
+ }, null, 42, ma), b("span", { class: o(h(U)) }, "px", 2)])]),
3225
+ _: 1
3226
+ }, 8, ["label"]),
3227
+ p(q, {
3228
+ label: h(c).table.fontFamily,
3229
+ class: "tpl:mb-3.5",
3230
+ path: "fontFamily"
3231
+ }, {
3232
+ default: u(() => [b("select", {
3233
+ class: o(h(G)),
3234
+ value: h(dt)(e.block.fontFamily),
3235
+ onChange: n[7] ||= (e) => d("fontFamily", e.target.value || void 0)
3236
+ }, [b("option", ga, r(h(c).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
3237
+ key: e.value,
3238
+ value: e.value
3239
+ }, r(e.label), 9, _a))), 128))], 42, ha)]),
3240
+ _: 1
3241
+ }, 8, ["label"]),
3242
+ p(q, {
3243
+ label: h(c).table.fontSize,
3244
+ class: "tpl:mb-3.5",
3245
+ path: "fontSize"
3246
+ }, {
3247
+ default: u(() => [b("div", va, [b("input", {
3248
+ type: "number",
3249
+ class: o(h(W)),
3250
+ value: e.block.fontSize,
3251
+ min: "10",
3252
+ max: "32",
3253
+ onInput: n[8] ||= (e) => d("fontSize", Number(e.target.value))
3254
+ }, null, 42, ya), b("span", { class: o(h(U)) }, "px", 2)])]),
3255
+ _: 1
3256
+ }, 8, ["label"]),
3257
+ p(q, {
3258
+ label: h(c).table.color,
3259
+ class: "tpl:mb-3.5",
3260
+ path: "color"
3261
+ }, {
3262
+ default: u(() => [p(B, {
3263
+ "model-value": e.block.color ?? "",
3264
+ "onUpdate:modelValue": n[9] ||= (e) => d("color", e || void 0)
3265
+ }, null, 8, ["model-value"])]),
3266
+ _: 1
3267
+ }, 8, ["label"]),
3268
+ p(q, {
3269
+ label: h(c).table.textAlign,
3270
+ class: "tpl:mb-3.5",
3271
+ path: "textAlign"
3272
+ }, {
3273
+ default: u(() => [p(X, {
3274
+ options: [
3275
+ {
3276
+ value: "left",
3277
+ label: h(c).title.alignLeft,
3278
+ icon: h(Le)
3279
+ },
3280
+ {
3281
+ value: "center",
3282
+ label: h(c).title.alignCenter,
3283
+ icon: h(Fe)
3284
+ },
3285
+ {
3286
+ value: "right",
3287
+ label: h(c).title.alignRight,
3288
+ icon: h(Ie)
3289
+ }
3290
+ ],
3291
+ "model-value": e.block.textAlign,
3292
+ "onUpdate:modelValue": n[10] ||= (e) => d("textAlign", e)
3293
+ }, null, 8, ["options", "model-value"])]),
3294
+ _: 1
3295
+ }, 8, ["label"])
3296
+ ], 64));
3297
+ }
3298
+ }), xa = ["value"], Sa = { value: 1 }, Ca = { value: 2 }, wa = { value: 3 }, Ta = { value: 4 }, Ea = ["value"], Da = { value: "" }, Oa = ["value"], ka = /* @__PURE__ */ E({
3299
+ __name: "TitleToolbar",
3300
+ props: {
3301
+ block: {},
3302
+ fontFamilies: {}
3303
+ },
3304
+ emits: ["update"],
3305
+ setup(e, { emit: t }) {
3306
+ let n = t, { t: i } = H();
3307
+ function c(e, t) {
3308
+ n("update", { [e]: t });
3309
+ }
3310
+ return (t, n) => (a(), v(S, null, [
3311
+ p(q, {
3312
+ label: h(i).title.level,
3313
+ class: "tpl:mb-3.5",
3314
+ path: "level"
3315
+ }, {
3316
+ default: u(() => [b("select", {
3317
+ class: o(h(G)),
3318
+ value: e.block.level,
3319
+ onChange: n[0] ||= (e) => c("level", Number(e.target.value))
3320
+ }, [
3321
+ b("option", Sa, r(h(i).title.heading1), 1),
3322
+ b("option", Ca, r(h(i).title.heading2), 1),
3323
+ b("option", wa, r(h(i).title.heading3), 1),
3324
+ b("option", Ta, r(h(i).title.heading4), 1)
3325
+ ], 42, xa)]),
3326
+ _: 1
3327
+ }, 8, ["label"]),
3328
+ p(q, {
3329
+ label: h(i).title.fontFamily,
3330
+ class: "tpl:mb-3.5",
3331
+ path: "fontFamily"
3332
+ }, {
3333
+ default: u(() => [b("select", {
3334
+ class: o(h(G)),
3335
+ value: h(dt)(e.block.fontFamily),
3336
+ onChange: n[1] ||= (e) => c("fontFamily", e.target.value || void 0)
3337
+ }, [b("option", Da, r(h(i).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
3338
+ key: e.value,
3339
+ value: e.value
3340
+ }, r(e.label), 9, Oa))), 128))], 42, Ea)]),
3341
+ _: 1
3342
+ }, 8, ["label"]),
3343
+ p(q, {
3344
+ label: h(i).title.color,
3345
+ class: "tpl:mb-3.5",
3346
+ path: "color"
3347
+ }, {
3348
+ default: u(() => [p(B, {
3349
+ "model-value": e.block.color ?? "",
3350
+ "onUpdate:modelValue": n[2] ||= (e) => c("color", e || void 0)
3351
+ }, null, 8, ["model-value"])]),
3352
+ _: 1
3353
+ }, 8, ["label"]),
3354
+ p(q, {
3355
+ label: h(i).title.align,
3356
+ class: "tpl:mb-3.5",
3357
+ path: "textAlign"
3358
+ }, {
3359
+ default: u(() => [p(X, {
3360
+ options: [
3361
+ {
3362
+ value: "left",
3363
+ label: h(i).title.alignLeft,
3364
+ icon: h(Le)
3365
+ },
3366
+ {
3367
+ value: "center",
3368
+ label: h(i).title.alignCenter,
3369
+ icon: h(Fe)
3370
+ },
3371
+ {
3372
+ value: "right",
3373
+ label: h(i).title.alignRight,
3374
+ icon: h(Ie)
3375
+ }
3376
+ ],
3377
+ "model-value": e.block.textAlign,
3378
+ "onUpdate:modelValue": n[3] ||= (e) => c("textAlign", e)
3379
+ }, null, 8, ["options", "model-value"])]),
3380
+ _: 1
3381
+ }, 8, ["label"])
3382
+ ], 64));
3383
+ }
3384
+ }), Aa = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ja = [
3385
+ "value",
3386
+ "placeholder",
3387
+ "title"
3388
+ ], Ma = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Na = ["value"], Pa = { value: "full" }, Fa = { value: "custom" }, Ia = {
3389
+ key: 0,
3390
+ class: "tpl:mt-2 tpl:flex tpl:items-stretch"
3391
+ }, La = ["value"], Ra = ["value"], za = { value: "auto" }, Ba = { value: "custom" }, Va = {
3392
+ key: 0,
3393
+ class: "tpl:mt-2 tpl:flex tpl:items-stretch"
3394
+ }, Ha = ["value"], Ua = 350, Wa = 200, Ga = /* @__PURE__ */ E({
3395
+ __name: "VideoToolbar",
3396
+ props: { block: {} },
3397
+ emits: ["update"],
3398
+ setup(e, { emit: t }) {
3399
+ let n = e, i = t, { t: s } = H(), c = T(We, null), l = T(Be, F.liquid), d = ue(), f = [
3400
+ 300,
3401
+ 400,
3402
+ 500
3403
+ ], x = m(() => !!c), w = m(() => j(n.block.url, l)), E = m(() => {
3404
+ let e = n.block.width;
3405
+ return e === "full" ? "full" : f.includes(e) ? String(e) : "custom";
3406
+ }), D = m(() => typeof n.block.height == "number" ? "custom" : "auto"), O = _(!1), { start: k } = ot(() => {
3407
+ O.value = !1;
3408
+ }, 1e3, { immediate: !1 });
3409
+ function A(e, t) {
3410
+ i("update", { [e]: t });
3411
+ }
3412
+ function M(e) {
3413
+ if (e === "custom") {
3414
+ let e = n.block.width;
3415
+ (typeof e != "number" || f.includes(e)) && A("width", Ua);
3416
+ } else A("width", e === "full" ? "full" : Number(e));
3417
+ }
3418
+ function N(e) {
3419
+ let t = Number(e);
3420
+ !Number.isFinite(t) || t <= 0 || A("width", t);
3421
+ }
3422
+ function P(e) {
3423
+ A("height", e === "custom" ? Wa : void 0);
3424
+ }
3425
+ function I(e) {
3426
+ let t = Number(e);
3427
+ !Number.isFinite(t) || t <= 0 || A("height", t);
3428
+ }
3429
+ async function L() {
3430
+ let e = await c?.({ accept: ["images"] });
3431
+ d.alive && e && (A("thumbnailUrl", e.url), O.value = !0, k());
3432
+ }
3433
+ return (t, n) => (a(), v(S, null, [
3434
+ p(q, {
3435
+ label: h(s).video.videoUrl,
3436
+ class: "tpl:mb-3.5",
3437
+ path: "url"
3438
+ }, {
3439
+ default: u(() => [p(Y, {
3440
+ "model-value": e.block.url,
3441
+ type: "url",
3442
+ placeholder: h(s).video.videoUrlPlaceholder,
3443
+ "onUpdate:modelValue": n[0] ||= (e) => A("url", e)
3444
+ }, null, 8, ["model-value", "placeholder"]), e.block.url ? (a(), C(q, {
3445
+ key: 0,
3446
+ path: "openInNewTab",
3447
+ label: h(s).video.openInNewTab
3448
+ }, {
3449
+ "label-actions": u(({ controlId: t }) => [p(J, {
3450
+ "control-id": t,
3451
+ "hide-label": "",
3452
+ class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
3453
+ "model-value": e.block.openInNewTab ?? !1,
3454
+ label: h(s).video.openInNewTab,
3455
+ "onUpdate:modelValue": n[1] ||= (e) => A("openInNewTab", e)
3456
+ }, null, 8, [
3457
+ "control-id",
3458
+ "model-value",
3459
+ "label"
3460
+ ])]),
3461
+ _: 1
3462
+ }, 8, ["label"])) : g("", !0)]),
3463
+ _: 1
3464
+ }, 8, ["label"]),
3465
+ w.value ? (a(), C(q, {
3466
+ key: 0,
3467
+ class: "tpl:mb-3.5",
3468
+ path: "placeholderUrl"
3469
+ }, {
3470
+ label: u(() => [y(r(h(s).video.placeholderUrl) + " ", 1), b("span", Aa, r(h(s).video.optional), 1)]),
3471
+ default: u(() => [b("input", {
3472
+ type: "url",
3473
+ class: o(h(G)),
3474
+ value: e.block.placeholderUrl || "",
3475
+ placeholder: h(s).video.placeholderUrlPlaceholder,
3476
+ title: h(s).video.placeholderUrlTooltip,
3477
+ onInput: n[2] ||= (e) => A("placeholderUrl", e.target.value)
3478
+ }, null, 42, ja)]),
3479
+ _: 1
3480
+ })) : g("", !0),
3481
+ p(q, {
3482
+ class: "tpl:mb-3.5",
3483
+ path: "thumbnailUrl"
3484
+ }, {
3485
+ label: u(() => [y(r(h(s).video.customThumbnail) + " ", 1), b("span", Ma, r(h(s).video.optional), 1)]),
3486
+ default: u(() => [p(Y, {
3487
+ "model-value": e.block.thumbnailUrl,
3488
+ type: "url",
3489
+ placeholder: h(s).video.thumbnailPlaceholder,
3490
+ pulse: O.value,
3491
+ "onUpdate:modelValue": n[3] ||= (e) => A("thumbnailUrl", e)
3492
+ }, null, 8, [
3493
+ "model-value",
3494
+ "placeholder",
3495
+ "pulse"
3496
+ ]), x.value ? (a(), v("button", {
3497
+ key: 0,
3498
+ class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all",
3499
+ style: {
3500
+ "border-color": "var(--tpl-border)",
3501
+ color: "var(--tpl-primary)",
3502
+ "background-color": "var(--tpl-bg)"
3503
+ },
3504
+ onClick: L
3505
+ }, [p(h(ke), {
3506
+ size: 14,
3507
+ "stroke-width": 1.5
3508
+ }), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)]),
3509
+ _: 1
3510
+ }),
3511
+ p(q, {
3512
+ label: h(s).video.altText,
3513
+ class: "tpl:mb-3.5",
3514
+ path: "alt"
3515
+ }, {
3516
+ default: u(() => [p(Y, {
3517
+ "model-value": e.block.alt,
3518
+ type: "text",
3519
+ placeholder: h(s).video.altTextPlaceholder,
3520
+ "onUpdate:modelValue": n[4] ||= (e) => A("alt", e)
3521
+ }, null, 8, ["model-value", "placeholder"])]),
3522
+ _: 1
3523
+ }, 8, ["label"]),
3524
+ p(q, {
3525
+ label: h(s).video.width,
3526
+ class: "tpl:mb-3.5",
3527
+ path: "width"
3528
+ }, {
3529
+ default: u(() => [b("select", {
3530
+ class: o(h(G)),
3531
+ "data-testid": "video-width-mode",
3532
+ value: E.value,
3533
+ onChange: n[5] ||= (e) => M(e.target.value)
3534
+ }, [
3535
+ b("option", Pa, r(h(s).video.fullWidth), 1),
3536
+ n[10] ||= b("option", { value: "300" }, "300px", -1),
3537
+ n[11] ||= b("option", { value: "400" }, "400px", -1),
3538
+ n[12] ||= b("option", { value: "500" }, "500px", -1),
3539
+ b("option", Fa, r(h(s).video.widthCustom), 1)
3540
+ ], 42, Na), E.value === "custom" ? (a(), v("div", Ia, [b("input", {
3541
+ type: "number",
3542
+ "data-testid": "video-width-input",
3543
+ class: o(h(W)),
3544
+ value: e.block.width,
3545
+ min: "20",
3546
+ onInput: n[6] ||= (e) => N(e.target.value)
3547
+ }, null, 42, La), b("span", { class: o(h(U)) }, "px", 2)])) : g("", !0)]),
3548
+ _: 1
3549
+ }, 8, ["label"]),
3550
+ p(q, {
3551
+ label: h(s).video.height,
3552
+ class: "tpl:mb-3.5",
3553
+ path: "height"
3554
+ }, {
3555
+ default: u(() => [b("select", {
3556
+ class: o(h(G)),
3557
+ "data-testid": "video-height-mode",
3558
+ value: D.value,
3559
+ onChange: n[7] ||= (e) => P(e.target.value)
3560
+ }, [b("option", za, r(h(s).video.heightAuto), 1), b("option", Ba, r(h(s).video.heightCustom), 1)], 42, Ra), D.value === "custom" ? (a(), v("div", Va, [b("input", {
3561
+ type: "number",
3562
+ "data-testid": "video-height-input",
3563
+ class: o(h(W)),
3564
+ value: e.block.height,
3565
+ min: "20",
3566
+ onInput: n[8] ||= (e) => I(e.target.value)
3567
+ }, null, 42, Ha), b("span", { class: o(h(U)) }, "px", 2)])) : g("", !0)]),
3568
+ _: 1
3569
+ }, 8, ["label"]),
3570
+ p(q, {
3571
+ label: h(s).title.align,
3572
+ class: "tpl:mb-3.5",
3573
+ path: "align"
3574
+ }, {
3575
+ default: u(() => [p(X, {
3576
+ options: [
3577
+ {
3578
+ value: "left",
3579
+ label: h(s).title.alignLeft
3580
+ },
3581
+ {
3582
+ value: "center",
3583
+ label: h(s).title.alignCenter
3584
+ },
3585
+ {
3586
+ value: "right",
3587
+ label: h(s).title.alignRight
3588
+ }
3589
+ ],
3590
+ "model-value": e.block.align,
3591
+ "onUpdate:modelValue": n[9] ||= (e) => A("align", e)
3592
+ }, null, 8, ["options", "model-value"])]),
3593
+ _: 1
3594
+ }, 8, ["label"])
3595
+ ], 64));
3596
+ }
3597
+ }), Ka = ["aria-label"], qa = ["disabled", "inert"], Ja = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Ya = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Xa = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Za = { class: "tpl:flex tpl:gap-1" }, Qa = ["title"], $a = ["title"], eo = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, to = /*@__PURE__*/ E({
3598
+ __name: "Toolbar",
3599
+ props: { block: {} },
3600
+ emits: [
3601
+ "update",
3602
+ "delete",
3603
+ "duplicate"
3604
+ ],
3605
+ setup(e, { emit: t }) {
3606
+ let n = w(() => import("./CountdownToolbar-CM4XNEuO.js")), o = e, s = t, { t: c } = H(), l = st(), u = Ye(qe, "Toolbar"), d = T(Je, []), f = m(() => o.block.type), _ = m(() => I(o.block)), y = m(() => {
3607
+ if (_.value) return d.find((e) => e.type === o.block.customType);
3608
+ }), x = m(() => _.value ? y.value?.name ?? o.block.customType : le(f.value, c)), S = m(() => ut(u.fonts.value, "fontFamily" in o.block ? o.block.fontFamily : void 0));
3609
+ function E(e) {
3610
+ l.value && s("update", e);
3611
+ }
3612
+ return (t, o) => (a(), v("aside", {
3613
+ "data-testid": "block-toolbar",
3614
+ "aria-label": h(c).landmarks.blockToolbar,
3615
+ class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
3616
+ }, [b("fieldset", {
3617
+ disabled: !h(l),
3618
+ inert: !h(l),
3619
+ class: "tpl:contents"
3620
+ }, [b("div", Ja, [b("div", Ya, [h(De)[f.value] ? (a(), C(i(h(De)[f.value]), {
3621
+ key: 0,
3622
+ size: 16,
3623
+ "stroke-width": 1.5
3624
+ })) : _.value ? (a(), C(h(he), {
3625
+ key: 1,
3626
+ size: 16,
3627
+ "stroke-width": 1.5
3628
+ })) : g("", !0), b("h3", Xa, r(x.value), 1)]), b("div", Za, [b("button", {
3629
+ class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)] tpl:hover:text-[var(--tpl-text)]",
3630
+ title: h(c).toolbar.duplicate,
3631
+ onClick: o[0] ||= (e) => s("duplicate")
3632
+ }, [p(h(Oe), {
3633
+ size: 14,
3634
+ "stroke-width": 2
3635
+ })], 8, Qa), b("button", {
3636
+ class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
3637
+ title: h(c).toolbar.delete,
3638
+ onClick: o[1] ||= (e) => s("delete")
3639
+ }, [p(h(Re), {
3640
+ size: 14,
3641
+ "stroke-width": 2
3642
+ })], 8, $a)])]), b("div", eo, [_.value ? (a(), C(Pr, {
3643
+ key: 0,
3644
+ block: e.block,
3645
+ onUpdateFieldValues: o[2] ||= (e) => s("update", { fieldValues: e }),
3646
+ onUpdateDataSourceFetched: o[3] ||= (e) => s("update", { dataSourceFetched: e })
3647
+ }, null, 8, ["block"])) : f.value === "section" ? (a(), C(Oi, {
3648
+ key: 1,
3649
+ block: e.block,
3650
+ onUpdate: E
3651
+ }, null, 8, ["block"])) : f.value === "title" ? (a(), C(ka, {
3652
+ key: 2,
3653
+ block: e.block,
3654
+ "font-families": S.value,
3655
+ onUpdate: E
3656
+ }, null, 8, ["block", "font-families"])) : f.value === "paragraph" ? (a(), C(bi, {
3657
+ key: 3,
3658
+ block: e.block,
3659
+ onUpdate: E
3660
+ }, null, 8, ["block"])) : f.value === "image" ? (a(), C(oi, {
3661
+ key: 4,
3662
+ block: e.block,
3663
+ onUpdate: E
3664
+ }, null, 8, ["block"])) : f.value === "video" ? (a(), C(Ga, {
3665
+ key: 5,
3666
+ block: e.block,
3667
+ onUpdate: E
3668
+ }, null, 8, ["block"])) : f.value === "button" ? (a(), C(Bt, {
3669
+ key: 6,
3670
+ block: e.block,
3671
+ "font-families": S.value,
3672
+ onUpdate: E
3673
+ }, null, 8, ["block", "font-families"])) : f.value === "divider" ? (a(), C(Lr, {
3674
+ key: 7,
3675
+ block: e.block,
3676
+ onUpdate: E
3677
+ }, null, 8, ["block"])) : f.value === "social" ? (a(), C(Ji, {
3678
+ key: 8,
3679
+ block: e.block,
3680
+ onUpdate: E
3681
+ }, null, 8, ["block"])) : f.value === "menu" ? (a(), C(_i, {
3682
+ key: 9,
3683
+ block: e.block,
3684
+ "font-families": S.value,
3685
+ onUpdate: E
3686
+ }, null, 8, ["block", "font-families"])) : f.value === "table" ? (a(), C(ba, {
3687
+ key: 10,
3688
+ block: e.block,
3689
+ "font-families": S.value,
3690
+ onUpdate: E
3691
+ }, null, 8, ["block", "font-families"])) : f.value === "spacer" ? (a(), C(Qi, {
3692
+ key: 11,
3693
+ block: e.block,
3694
+ onUpdate: E
3695
+ }, null, 8, ["block"])) : f.value === "html" ? (a(), C(Br, {
3696
+ key: 12,
3697
+ block: e.block,
3698
+ onUpdate: E
3699
+ }, null, 8, ["block"])) : f.value === "countdown" ? (a(), C(h(n), {
3700
+ key: 13,
3701
+ block: e.block,
3702
+ "font-families": S.value,
3703
+ onUpdate: E
3704
+ }, null, 8, ["block", "font-families"])) : g("", !0), p(Yn, {
3705
+ block: e.block,
3706
+ "is-first-section": f.value === "paragraph",
3707
+ onUpdate: E
3708
+ }, null, 8, ["block", "is-first-section"])])], 8, qa)], 8, Ka));
3709
+ }
3710
+ }), no = /* @__PURE__ */ e({ default: () => ro }), ro = /*#__PURE__*/ Se(to, [["__scopeId", "data-v-206f038f"]]);
3711
+ export { ro as default, Z as n, X as r, no as t };