@templatical/editor 0.44.3 → 0.45.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 (291) hide show
  1. package/dist/{AiChatSidebar-BUR5Jshu.js → AiChatSidebar-BlFWWhBv.js} +15 -19
  2. package/dist/{AiFeatureMenu-CXqrbDNb.js → AiFeatureMenu-CvWygUmC.js} +7 -7
  3. package/dist/{BlockIssueBadge-CWZEwMXX.js → BlockIssueBadge-CZA1XvAh.js} +5 -5
  4. package/dist/{BlockPreviewCanvas-DCeZid0G.js → BlockPreviewCanvas-DwxJOTzH.js} +5 -5
  5. package/dist/{CloudHeaderExtras-B38fU84y.js → CloudHeaderExtras-BzM1QU1r.js} +5 -5
  6. package/dist/{CloudPanels-B2Mz-TwS.js → CloudPanels-d36YXXyn.js} +8 -8
  7. package/dist/{CollaboratorBar-CL70aVnL.js → CollaboratorBar-rwXe_Qd2.js} +4 -4
  8. package/dist/{CommentsPanel-CYMHfFcn.js → CommentsPanel-Bn6P5crU.js} +2 -2
  9. package/dist/{CommentsSidebar-uvQyCMUe.js → CommentsSidebar-B8wT932T.js} +14 -14
  10. package/dist/{CountdownBlock-C6R-hn7D.js → CountdownBlock-RNx3hIu0.js} +3 -3
  11. package/dist/{CountdownToolbar-C052mx2P.js → CountdownToolbar-lbjCc8ik.js} +62 -61
  12. package/dist/{DesignReferenceSidebar-ZKJ7y7-G.js → DesignReferenceSidebar-zlJQsP0X.js} +25 -26
  13. package/dist/{IssuesPanel-DAlNiJX_.js → IssuesPanel-CHx3m8SP.js} +8 -8
  14. package/dist/{LoadingTrack-C1Epulqq.js → LoadingTrack-DROqNuuD.js} +1 -1
  15. package/dist/{LogicTagInsertButton-DMUfVsPr.js → LogicTagInsertButton-BvftbkL4.js} +13 -19
  16. package/dist/{MediaEditModal-Cmd9tQXZ.js → MediaEditModal-EY1YYcpw.js} +6 -14
  17. package/dist/{MediaPanels-DoBhG5gg.js → MediaPanels-CRVFGFZW.js} +2 -2
  18. package/dist/{MergeTagInput-DoQWMSW4.js → MergeTagInput-CR1kcj8X.js} +2 -2
  19. package/dist/{MergeTagModeToggle-DOHixe4G.js → MergeTagModeToggle-DssKrVYb.js} +7 -7
  20. package/dist/{ParagraphEditor-CHlX3nAk.js → ParagraphEditor-DFizsZRc.js} +140 -139
  21. package/dist/{RestoreVersionDialog-C8Qt-sJV.js → RestoreVersionDialog-Cp3q2mU4.js} +5 -5
  22. package/dist/{RichTextEditorContent-BedBVHXS.js → RichTextEditorContent-Cj3oaPMk.js} +9 -9
  23. package/dist/{SaveBlockDialog-CsielLi1.js → SaveBlockDialog-BR8vW_XF.js} +12 -12
  24. package/dist/{SavedBlocksBrowserModal-RKo9mq3U.js → SavedBlocksBrowserModal-DmwbmKxI.js} +15 -18
  25. package/dist/{SavedBlocksPanels-B7IlFCQp.js → SavedBlocksPanels-D4XKrs-a.js} +2 -2
  26. package/dist/{SavedBlocksPickBar-BYCwMUR6.js → SavedBlocksPickBar-gfc-o5sR.js} +4 -4
  27. package/dist/{TemplateScoringPanel-DXsyp0_A.js → TemplateScoringPanel-3lHzuCl0.js} +16 -16
  28. package/dist/TemplateSettings-D7aNrd0d.js +246 -0
  29. package/dist/{TestEmailModal-Btbk0B1s.js → TestEmailModal-DUmtcSm-.js} +11 -11
  30. package/dist/{TestEmailPanel-kdF_QluO.js → TestEmailPanel-s9gISTI8.js} +2 -2
  31. package/dist/{TitleEditor-Cl6AmEy9.js → TitleEditor-C-uHqtml.js} +13 -13
  32. package/dist/{ToggleSwitch-D7GLaT8s.js → ToggleSwitch-CTwwCIVA.js} +2 -2
  33. package/dist/{Toolbar-CWxqqBHE.js → Toolbar-CLpA36RO.js} +518 -520
  34. package/dist/{TplModal-DD1xZyBq.js → TplModal-D6XtxusQ.js} +5 -5
  35. package/dist/{VersionHistoryMenu-fLrx-Lvi.js → VersionHistoryMenu-D7zaTMrb.js} +10 -10
  36. package/dist/{VersionHistoryPanels-Caa2_niu.js → VersionHistoryPanels-Dvowtt7V.js} +2 -2
  37. package/dist/{VersionPreviewBanner-CWuxq_bb.js → VersionPreviewBanner-BUKb9gc6.js} +3 -3
  38. package/dist/{WrapperBlock-Do8kLejT.js → WrapperBlock-CzJa2Mxw.js} +3 -3
  39. package/dist/{blockTypeIcons-DEvNVvBj.js → blockTypeIcons-D3aj5u_5.js} +2 -2
  40. package/dist/bundle-stats.json +7 -7
  41. package/dist/{ca-DES69VJW.js → ca-C__Dzq--.js} +5 -0
  42. package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js → AiChatSidebar-SRGBP-SL.js} +9 -13
  43. package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js.map → AiChatSidebar-SRGBP-SL.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiFeatureMenu-B291Us2g.js → AiFeatureMenu-oZhlgsGh.js} +6 -6
  45. package/dist/cdn/chunks/{AiFeatureMenu-B291Us2g.js.map → AiFeatureMenu-oZhlgsGh.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js → BlockIssueBadge-05Q3L4RV.js} +5 -5
  47. package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js.map → BlockIssueBadge-05Q3L4RV.js.map} +1 -1
  48. package/dist/cdn/chunks/{BlockPreviewCanvas-CRJZBmwV.js → BlockPreviewCanvas-hKxE6f-k.js} +6 -6
  49. package/dist/cdn/chunks/{BlockPreviewCanvas-CRJZBmwV.js.map → BlockPreviewCanvas-hKxE6f-k.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudHeaderExtras-BvCPpih5.js → CloudHeaderExtras-t-_ZlHwn.js} +5 -5
  51. package/dist/cdn/chunks/{CloudHeaderExtras-BvCPpih5.js.map → CloudHeaderExtras-t-_ZlHwn.js.map} +1 -1
  52. package/dist/cdn/chunks/{CloudPanels-vlPH6N3s.js → CloudPanels-DR2eEcpX.js} +7 -7
  53. package/dist/cdn/chunks/{CloudPanels-vlPH6N3s.js.map → CloudPanels-DR2eEcpX.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-Xt3WJ-rn.js → CollaboratorBar-w8_2WPE0.js} +5 -5
  55. package/dist/cdn/chunks/{CollaboratorBar-Xt3WJ-rn.js.map → CollaboratorBar-w8_2WPE0.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js → CommentsPanel-VH_NJ5HZ.js} +3 -3
  57. package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js.map → CommentsPanel-VH_NJ5HZ.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js → CommentsSidebar-CYPH5rVi.js} +5 -5
  59. package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js.map → CommentsSidebar-CYPH5rVi.js.map} +1 -1
  60. package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js → CountdownBlock-lHU3Lu7Q.js} +4 -4
  61. package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js.map → CountdownBlock-lHU3Lu7Q.js.map} +1 -1
  62. package/dist/cdn/chunks/{CountdownToolbar-C9QpHQcv.js → CountdownToolbar-CvNuDR5Z.js} +63 -62
  63. package/dist/cdn/chunks/CountdownToolbar-CvNuDR5Z.js.map +1 -0
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js → DesignReferenceSidebar-CJg_5GXU.js} +21 -22
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js.map → DesignReferenceSidebar-CJg_5GXU.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel--62qud8w.js → IssuesPanel-DXqlRk19.js} +6 -6
  67. package/dist/cdn/chunks/{IssuesPanel--62qud8w.js.map → IssuesPanel-DXqlRk19.js.map} +1 -1
  68. package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js → LoadingTrack-Cg1HRIND.js} +2 -2
  69. package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js.map → LoadingTrack-Cg1HRIND.js.map} +1 -1
  70. package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js → LogicTagInsertButton-DnHghQHb.js} +11 -17
  71. package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js.map → LogicTagInsertButton-DnHghQHb.js.map} +1 -1
  72. package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js → MediaEditModal-CD3fVbWI.js} +6 -14
  73. package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js.map → MediaEditModal-CD3fVbWI.js.map} +1 -1
  74. package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js → MediaPanels-B2AyUUcf.js} +3 -3
  75. package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js.map → MediaPanels-B2AyUUcf.js.map} +1 -1
  76. package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js → MergeTagInput-heTX9P_k.js} +3 -3
  77. package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js.map → MergeTagInput-heTX9P_k.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js → MergeTagModeToggle-C9EfuZIP.js} +6 -6
  79. package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js.map → MergeTagModeToggle-C9EfuZIP.js.map} +1 -1
  80. package/dist/cdn/chunks/{ParagraphEditor-BWfx94pb.js → ParagraphEditor-B5DN4Sy4.js} +145 -144
  81. package/dist/cdn/chunks/ParagraphEditor-B5DN4Sy4.js.map +1 -0
  82. package/dist/cdn/chunks/{RestoreVersionDialog-DWUnyA0B.js → RestoreVersionDialog-DBgJ-Nui.js} +5 -5
  83. package/dist/cdn/chunks/{RestoreVersionDialog-DWUnyA0B.js.map → RestoreVersionDialog-DBgJ-Nui.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js → RichTextEditorContent-LOas4rfU.js} +8 -8
  85. package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js.map → RichTextEditorContent-LOas4rfU.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-CcfyxDfZ.js → SaveBlockDialog-Dx-QVQCX.js} +10 -10
  87. package/dist/cdn/chunks/{SaveBlockDialog-CcfyxDfZ.js.map → SaveBlockDialog-Dx-QVQCX.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DauQ_V9N.js → SavedBlocksBrowserModal-C2RQ-JCc.js} +11 -14
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DauQ_V9N.js.map → SavedBlocksBrowserModal-C2RQ-JCc.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-J5v2PsFv.js → SavedBlocksPanels-BmRbvqqL.js} +3 -3
  91. package/dist/cdn/chunks/{SavedBlocksPanels-J5v2PsFv.js.map → SavedBlocksPanels-BmRbvqqL.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-v3AMSqli.js → SavedBlocksPickBar-BzwKojoJ.js} +5 -5
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-v3AMSqli.js.map → SavedBlocksPickBar-BzwKojoJ.js.map} +1 -1
  94. package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js → TemplateScoringPanel-C_57Bfkf.js} +8 -8
  95. package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js.map → TemplateScoringPanel-C_57Bfkf.js.map} +1 -1
  96. package/dist/cdn/chunks/{TemplateSettings-vsFOU0oA.js → TemplateSettings-G-yV7C1C.js} +48 -47
  97. package/dist/cdn/chunks/TemplateSettings-G-yV7C1C.js.map +1 -0
  98. package/dist/cdn/chunks/{TestEmailModal-CW9EFpFR.js → TestEmailModal-lOeztfTN.js} +10 -10
  99. package/dist/cdn/chunks/{TestEmailModal-CW9EFpFR.js.map → TestEmailModal-lOeztfTN.js.map} +1 -1
  100. package/dist/cdn/chunks/{TestEmailPanel-D1Hchlr7.js → TestEmailPanel-CZswVkk_.js} +3 -3
  101. package/dist/cdn/chunks/{TestEmailPanel-D1Hchlr7.js.map → TestEmailPanel-CZswVkk_.js.map} +1 -1
  102. package/dist/cdn/chunks/{TitleEditor-nDV6P-ag.js → TitleEditor-CnTT2Y3H.js} +12 -12
  103. package/dist/cdn/chunks/{TitleEditor-nDV6P-ag.js.map → TitleEditor-CnTT2Y3H.js.map} +1 -1
  104. package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js → ToggleSwitch-CLHteVMO.js} +3 -3
  105. package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js.map → ToggleSwitch-CLHteVMO.js.map} +1 -1
  106. package/dist/cdn/chunks/{Toolbar-CnfNUkOY.js → Toolbar-K4tIkpG1.js} +415 -417
  107. package/dist/cdn/chunks/Toolbar-K4tIkpG1.js.map +1 -0
  108. package/dist/cdn/chunks/{TplModal-VuZ9bDw9.js → TplModal-OOT36AjS.js} +5 -5
  109. package/dist/cdn/chunks/{TplModal-VuZ9bDw9.js.map → TplModal-OOT36AjS.js.map} +1 -1
  110. package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js → VersionHistoryMenu-DbxuJgDO.js} +6 -6
  111. package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js.map → VersionHistoryMenu-DbxuJgDO.js.map} +1 -1
  112. package/dist/cdn/chunks/{VersionHistoryPanels-BChjjMC6.js → VersionHistoryPanels-BrpYRSfW.js} +3 -3
  113. package/dist/cdn/chunks/{VersionHistoryPanels-BChjjMC6.js.map → VersionHistoryPanels-BrpYRSfW.js.map} +1 -1
  114. package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js → VersionPreviewBanner-HRERIH-v.js} +4 -4
  115. package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js.map → VersionPreviewBanner-HRERIH-v.js.map} +1 -1
  116. package/dist/cdn/chunks/{WrapperBlock-DDnue8oy.js → WrapperBlock-DdrnwH80.js} +4 -4
  117. package/dist/cdn/chunks/{WrapperBlock-DDnue8oy.js.map → WrapperBlock-DdrnwH80.js.map} +1 -1
  118. package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js → blockTypeIcons-DdZP-3FM.js} +2 -2
  119. package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js.map → blockTypeIcons-DdZP-3FM.js.map} +1 -1
  120. package/dist/cdn/chunks/{ca-DES69VJW.js → ca-C__Dzq--.js} +6 -1
  121. package/dist/cdn/chunks/ca-C__Dzq--.js.map +1 -0
  122. package/dist/cdn/chunks/{cloud-DLQU5l0Z.js → cloud-bhW8qTnh.js} +4 -4
  123. package/dist/cdn/chunks/{cloud-DLQU5l0Z.js.map → cloud-bhW8qTnh.js.map} +1 -1
  124. package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js → createCloudRuntime-CeRJkLR2.js} +9 -12
  125. package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js.map → createCloudRuntime-CeRJkLR2.js.map} +1 -1
  126. package/dist/{de-MlrDhC3Y.js → cdn/chunks/de-CGjbQ2mt.js} +7 -0
  127. package/dist/cdn/chunks/de-CGjbQ2mt.js.map +1 -0
  128. package/dist/cdn/chunks/{dist-BRZhN8qJ.js → dist-B7W-Lb65.js} +2 -2
  129. package/dist/cdn/chunks/{dist-BRZhN8qJ.js.map → dist-B7W-Lb65.js.map} +1 -1
  130. package/dist/cdn/chunks/{dist-CXB2_kBa.js → dist-C5nRd_ua.js} +5 -13
  131. package/dist/cdn/chunks/{dist-CXB2_kBa.js.map → dist-C5nRd_ua.js.map} +1 -1
  132. package/dist/cdn/chunks/{draggable-IB4x6w2O.js → draggable-BUTN5vZC.js} +32 -77
  133. package/dist/cdn/chunks/{draggable-IB4x6w2O.js.map → draggable-BUTN5vZC.js.map} +1 -1
  134. package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js → editor-modal-BpsbYA4_.js} +14 -34
  135. package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js.map → editor-modal-BpsbYA4_.js.map} +1 -1
  136. package/dist/{en-6vJh7KCM.js → cdn/chunks/en-BTiiAC-B.js} +7 -0
  137. package/dist/cdn/chunks/en-BTiiAC-B.js.map +1 -0
  138. package/dist/cdn/chunks/en-CAt6y87e.js +1 -0
  139. package/dist/{es-ewL03EaP.js → cdn/chunks/es-CdTOcSTf.js} +7 -0
  140. package/dist/cdn/chunks/es-CdTOcSTf.js.map +1 -0
  141. package/dist/cdn/chunks/{extensions-ClmkNA8R.js → extensions-xjRsIjMP.js} +9 -17
  142. package/dist/cdn/chunks/{extensions-ClmkNA8R.js.map → extensions-xjRsIjMP.js.map} +1 -1
  143. package/dist/{fr-D1syuxs1.js → cdn/chunks/fr-B6lcLLzC.js} +7 -0
  144. package/dist/cdn/chunks/fr-B6lcLLzC.js.map +1 -0
  145. package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js → htmlparser-CDRsn-gn.js} +3 -11
  146. package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js.map → htmlparser-CDRsn-gn.js.map} +1 -1
  147. package/dist/cdn/chunks/{icons-BjvraR-Y.js → icons-Dr9erFGs.js} +48 -48
  148. package/dist/cdn/chunks/{icons-BjvraR-Y.js.map → icons-Dr9erFGs.js.map} +1 -1
  149. package/dist/{ja-Dd_nytwe.js → cdn/chunks/ja-BhdkqENz.js} +7 -0
  150. package/dist/cdn/chunks/ja-BhdkqENz.js.map +1 -0
  151. package/dist/cdn/chunks/{keys-DCWeHkSF.js → keys-BKu-LOk5.js} +2 -2
  152. package/dist/cdn/chunks/{keys-DCWeHkSF.js.map → keys-BKu-LOk5.js.map} +1 -1
  153. package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js → liquid.browser-Bbt17cVz.js} +30 -56
  154. package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js.map → liquid.browser-Bbt17cVz.js.map} +1 -1
  155. package/dist/{nl-DD1t_qxS.js → cdn/chunks/nl-CE3YItYg.js} +7 -0
  156. package/dist/cdn/chunks/nl-CE3YItYg.js.map +1 -0
  157. package/dist/cdn/chunks/{preRenderCustomBlocks-Bg3rIgGJ.js → preRenderCustomBlocks-CFwa7nP9.js} +2 -2
  158. package/dist/cdn/chunks/{preRenderCustomBlocks-Bg3rIgGJ.js.map → preRenderCustomBlocks-CFwa7nP9.js.map} +1 -1
  159. package/dist/{pt-BR-BmtO0R7k.js → cdn/chunks/pt-BR-CUIT4rq4.js} +7 -0
  160. package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +1 -0
  161. package/dist/cdn/chunks/{pusher-BbIHJKf3.js → pusher-C8DeiO2X.js} +18 -57
  162. package/dist/cdn/chunks/{pusher-BbIHJKf3.js.map → pusher-C8DeiO2X.js.map} +1 -1
  163. package/dist/cdn/chunks/{socialIcons-CnUJBZTO.js → socialIcons-CsYnPPll.js} +14 -24
  164. package/dist/cdn/chunks/socialIcons-CsYnPPll.js.map +1 -0
  165. package/dist/cdn/chunks/{src-QIGNPFkl.js → src-BcqNlDMe.js} +258 -237
  166. package/dist/cdn/chunks/src-BcqNlDMe.js.map +1 -0
  167. package/dist/cdn/chunks/{src-CjjJWoUZ.js → src-CkXmV2I2.js} +174 -179
  168. package/dist/cdn/chunks/src-CkXmV2I2.js.map +1 -0
  169. package/dist/cdn/chunks/{src-B5-VKcRQ.js → src-HA9F2kvk.js} +141 -179
  170. package/dist/cdn/chunks/{src-B5-VKcRQ.js.map → src-HA9F2kvk.js.map} +1 -1
  171. package/dist/cdn/chunks/{tiptap-02G9FGkl.js → tiptap-CYDXLO17.js} +87 -134
  172. package/dist/cdn/chunks/{tiptap-02G9FGkl.js.map → tiptap-CYDXLO17.js.map} +1 -1
  173. package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js → useAliveFlag-DzyXG-8A.js} +2 -2
  174. package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js.map → useAliveFlag-DzyXG-8A.js.map} +1 -1
  175. package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js → useCloudI18n-Cgk0ts_F.js} +3 -3
  176. package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js.map → useCloudI18n-Cgk0ts_F.js.map} +1 -1
  177. package/dist/cdn/chunks/{useEditorCore-q0G4q-52.js → useEditorCore-BF1ZhcGu.js} +476 -520
  178. package/dist/cdn/chunks/useEditorCore-BF1ZhcGu.js.map +1 -0
  179. package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +10 -0
  180. package/dist/cdn/chunks/{useEditorRoot-CshefZLP.js.map → useEditorRoot-DDPIcEOO.js.map} +1 -1
  181. package/dist/cdn/chunks/{useI18n-CyO_Nmca.js → useI18n-DO4NTunW.js} +3 -3
  182. package/dist/cdn/chunks/{useI18n-CyO_Nmca.js.map → useI18n-DO4NTunW.js.map} +1 -1
  183. package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js → useLogicTag-91bO_SOi.js} +4 -4
  184. package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js.map → useLogicTag-91bO_SOi.js.map} +1 -1
  185. package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js → useMergeTag-hwifK582.js} +4 -4
  186. package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js.map → useMergeTag-hwifK582.js.map} +1 -1
  187. package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js → usePopoverPosition-CtVNwoHj.js} +3 -3
  188. package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js.map → usePopoverPosition-CtVNwoHj.js.map} +1 -1
  189. package/dist/cdn/chunks/{useScrollToBlock-DgHZJvID.js → useScrollToBlock-BDNJ25X1.js} +3 -3
  190. package/dist/cdn/chunks/{useScrollToBlock-DgHZJvID.js.map → useScrollToBlock-BDNJ25X1.js.map} +1 -1
  191. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js +32 -0
  192. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js.map +1 -0
  193. package/dist/cdn/editor.css +1 -1
  194. package/dist/cdn/editor.js +56 -93
  195. package/dist/cdn/editor.js.map +1 -1
  196. package/dist/{check-DNyj-E0y.js → check-ZKvtMdpe.js} +1 -1
  197. package/dist/{chevron-down-BYnhkMsA.js → chevron-down-RrwkYMlp.js} +1 -1
  198. package/dist/{chevron-right-D9HGBqJo.js → chevron-right-CklHaa1U.js} +1 -1
  199. package/dist/{chevron-up-BnIR1-ma.js → chevron-up-DjN2NTbo.js} +1 -1
  200. package/dist/{circle-alert-B6xl1B_M.js → circle-alert-BR1_Yfb-.js} +1 -1
  201. package/dist/{clock-Cs5Wd3dW.js → clock-BEagNj21.js} +1 -1
  202. package/dist/{cloud-BNEL7bxL.js → cloud-CVfwPu19.js} +2 -2
  203. package/dist/{copy-6uKc-WBk.js → copy-D6DNoSq1.js} +1 -1
  204. package/dist/{createCloudRuntime-CaZapQZ6.js → createCloudRuntime-GRv_TDb2.js} +8 -11
  205. package/dist/{createLucideIcon-BVcoovvP.js → createLucideIcon-BAPyioGd.js} +6 -6
  206. package/dist/{cdn/chunks/de-MlrDhC3Y.js → de-CGjbQ2mt.js} +5 -2
  207. package/dist/{dist-CmwBvyW0.js → dist-1H4cnaoD.js} +3 -3
  208. package/dist/{dist-D4HP93ZF.js → dist-5DAb7bYT.js} +1 -1
  209. package/dist/{dist-DdSWMtEP.js → dist-5KNKxglR.js} +1 -1
  210. package/dist/{dist-BDuPwOyn.js → dist-B_vYjCsk.js} +4 -12
  211. package/dist/{dist-Ceew_u40.js → dist-Bc30883t.js} +6 -22
  212. package/dist/{dist-Czzst9ng.js → dist-Bd7khQsg.js} +3 -11
  213. package/dist/{dist-8VFzbeu9.js → dist-C-VFTX82.js} +1 -1
  214. package/dist/{dist-BYg1EL5g.js → dist-C3eH9-N2.js} +1 -1
  215. package/dist/{dist-Dw2_11LA.js → dist-CFC4pg2o.js} +1 -1
  216. package/dist/{dist-BgSLW3Hn.js → dist-CMcFD7gP.js} +72 -87
  217. package/dist/{dist-HjILVdTA.js → dist-CSaWqmWM.js} +143 -126
  218. package/dist/{dist-DmQckB4p.js → dist-DHensKDY.js} +1 -1
  219. package/dist/{dist-CWc7nIkA.js → dist-DapsJxn_.js} +1 -1
  220. package/dist/{dist-D2m55Lvs.js → dist-j2FavQmU.js} +1 -1
  221. package/dist/{dist-8By0p8ah.js → dist-lL3nVbxV.js} +1 -1
  222. package/dist/{editor-modal-Co-rZGaf.js → editor-modal-oRmkDlUs.js} +27 -47
  223. package/dist/{cdn/chunks/en-6vJh7KCM.js → en-BTiiAC-B.js} +5 -2
  224. package/dist/en-Bk4iCfjp.js +1 -0
  225. package/dist/{cdn/chunks/es-ewL03EaP.js → es-CdTOcSTf.js} +5 -2
  226. package/dist/{extensions-DXSI8Dyj.js → extensions-B65sfZRk.js} +42 -58
  227. package/dist/{eye-Nbtw_q05.js → eye-DvsTBI57.js} +1 -1
  228. package/dist/{cdn/chunks/fr-D1syuxs1.js → fr-B6lcLLzC.js} +5 -2
  229. package/dist/{image-up-C1jC7NzQ.js → image-up-BoFGZm5Q.js} +1 -1
  230. package/dist/index.d.ts +12 -1
  231. package/dist/{info-ClH66pKN.js → info-0bQQGjTV.js} +1 -1
  232. package/dist/{cdn/chunks/ja-Dd_nytwe.js → ja-BhdkqENz.js} +5 -2
  233. package/dist/{keys-CDqfZIRt.js → keys-injl74ob.js} +1 -1
  234. package/dist/{link-y47GNW0o.js → link-Cstrr3Ep.js} +1 -1
  235. package/dist/{liquid.browser-Cs4gOjeX.js → liquid.browser-Ct2-EezB.js} +29 -55
  236. package/dist/{list-DiLMlMaE.js → list-Dx9Rmy5s.js} +1 -1
  237. package/dist/{loader-circle-BRdCPW5h.js → loader-circle-D8Qqs0MG.js} +1 -1
  238. package/dist/{message-circle-CNgIpVJv.js → message-circle-D78ELX6I.js} +1 -1
  239. package/dist/{cdn/chunks/nl-DD1t_qxS.js → nl-CE3YItYg.js} +5 -2
  240. package/dist/{package-B9OWk-Kp.js → package-DOvM9sHE.js} +1 -1
  241. package/dist/{pencil-BDnjo24u.js → pencil-B6m0OG0n.js} +1 -1
  242. package/dist/{plus-BMgjN7lI.js → plus-D-nEKxTc.js} +1 -1
  243. package/dist/{preRenderCustomBlocks-C_PIxBp7.js → preRenderCustomBlocks-DAS48ZCp.js} +1 -1
  244. package/dist/{cdn/chunks/pt-BR-BmtO0R7k.js → pt-BR-CUIT4rq4.js} +5 -2
  245. package/dist/{refresh-cw-CR5lenxl.js → refresh-cw-CXZS-R1U.js} +1 -1
  246. package/dist/{runtime-dom.esm-bundler-BGbPz4-g.js → runtime-dom.esm-bundler-CO67ema2.js} +15 -16
  247. package/dist/{search-CxRUiOSF.js → search-DSvil0jo.js} +1 -1
  248. package/dist/{send-Bu2RysGL.js → send-BBR28V94.js} +1 -1
  249. package/dist/{shield-check-Cg8f4LB0.js → shield-check-ByxUnaU9.js} +1 -1
  250. package/dist/{smartphone-CHf-8lHp.js → smartphone-CNOwGf5T.js} +1 -1
  251. package/dist/{socialIcons-D1gkHc_i.js → socialIcons-CvAixjj8.js} +14 -24
  252. package/dist/{sparkles-_DQGv4ub.js → sparkles-DO1hzwzf.js} +1 -1
  253. package/dist/style.css +1 -1
  254. package/dist/templatical-editor.js +70 -107
  255. package/dist/{text-align-start-PHo-Ep5i.js → text-align-start-BKEKMheq.js} +13 -13
  256. package/dist/{trash-BxIzHAri.js → trash-CKEQH4vH.js} +1 -1
  257. package/dist/{triangle-alert-fcb2KoA-.js → triangle-alert-BHnfd3fV.js} +1 -1
  258. package/dist/{upload-BxBtMPMv.js → upload-C8uO7KsR.js} +1 -1
  259. package/dist/{useAliveFlag-BkKyhkwZ.js → useAliveFlag-6PtarpNZ.js} +1 -1
  260. package/dist/{useCloudI18n-DpEsiLeR.js → useCloudI18n-GvIOLziA.js} +2 -2
  261. package/dist/{useEditorCore-B1CWeFTj.js → useEditorCore-DQSeKPE9.js} +940 -1007
  262. package/dist/{useEditorRoot-CkB_5d0h.js → useEditorRoot-OWzNpDdT.js} +2 -2
  263. package/dist/{useI18n-B_CdcBwG.js → useI18n-uF11q85g.js} +2 -2
  264. package/dist/{useLogicTag-wqfdwYYR.js → useLogicTag-BH87j1vZ.js} +3 -3
  265. package/dist/{useMergeTag-D3XDE_58.js → useMergeTag-DfPKX2Tk.js} +3 -3
  266. package/dist/{usePopoverPosition-BYmd-lhR.js → usePopoverPosition-DkBrHfCo.js} +2 -2
  267. package/dist/{useScrollToBlock-DA_aIJXS.js → useScrollToBlock-Dr7Sb6Tr.js} +3 -3
  268. package/dist/{vue.runtime.esm-bundler-CyqhBwpY.js → vue.runtime.esm-bundler-CctRY8kr.js} +13 -45
  269. package/dist/withCurrentFont-DeCbPVaE.js +30 -0
  270. package/dist/{x-DrZO5tt0.js → x-gEC0yMci.js} +1 -1
  271. package/package.json +12 -12
  272. package/dist/TemplateSettings-Bh10NFIN.js +0 -245
  273. package/dist/cdn/chunks/CountdownToolbar-C9QpHQcv.js.map +0 -1
  274. package/dist/cdn/chunks/ParagraphEditor-BWfx94pb.js.map +0 -1
  275. package/dist/cdn/chunks/TemplateSettings-vsFOU0oA.js.map +0 -1
  276. package/dist/cdn/chunks/Toolbar-CnfNUkOY.js.map +0 -1
  277. package/dist/cdn/chunks/ca-DES69VJW.js.map +0 -1
  278. package/dist/cdn/chunks/de-MlrDhC3Y.js.map +0 -1
  279. package/dist/cdn/chunks/en-6vJh7KCM.js.map +0 -1
  280. package/dist/cdn/chunks/en-C3n0qWte.js +0 -2
  281. package/dist/cdn/chunks/es-ewL03EaP.js.map +0 -1
  282. package/dist/cdn/chunks/fr-D1syuxs1.js.map +0 -1
  283. package/dist/cdn/chunks/ja-Dd_nytwe.js.map +0 -1
  284. package/dist/cdn/chunks/nl-DD1t_qxS.js.map +0 -1
  285. package/dist/cdn/chunks/pt-BR-BmtO0R7k.js.map +0 -1
  286. package/dist/cdn/chunks/socialIcons-CnUJBZTO.js.map +0 -1
  287. package/dist/cdn/chunks/src-CjjJWoUZ.js.map +0 -1
  288. package/dist/cdn/chunks/src-QIGNPFkl.js.map +0 -1
  289. package/dist/cdn/chunks/useEditorCore-q0G4q-52.js.map +0 -1
  290. package/dist/cdn/chunks/useEditorRoot-CshefZLP.js +0 -10
  291. package/dist/en-B-xoKkWi.js +0 -2
@@ -1,34 +1,35 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { A as t, At as n, B as r, F as i, M as a, N as o, R as s, S as c, V as l, Y as u, Z as d, _ as f, at as p, c as m, d as h, g, h as _, jt as v, kt as y, l as b, r as x, s as S, u as C, v as w } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
3
- import { a as T, o as E } from "./runtime-dom.esm-bundler-BGbPz4-g.js";
4
- import { J as D, P as O, V as k, at as A, c as j, it as ee, m as M, n as N, o as P, t as te } from "./dist-HjILVdTA.js";
5
- import { c as ne, f as re, i as F, l as I, r as ie, u as ae, x as oe } from "./socialIcons-D1gkHc_i.js";
6
- import { _ as se } from "./dist-8VFzbeu9.js";
7
- import { $ as L, C as ce, G as le, L as ue, P as de, c as fe, d as pe, h as me, n as he, p as ge, v as _e } from "./keys-CDqfZIRt.js";
8
- import { t as R } from "./useI18n-B_CdcBwG.js";
9
- import { o as ve } from "./usePopoverPosition-BYmd-lhR.js";
10
- import { t as ye } from "./createLucideIcon-BVcoovvP.js";
11
- import { c as z } from "./LogicTagInsertButton-DMUfVsPr.js";
12
- import { t as be } from "./chevron-down-BYnhkMsA.js";
13
- import { t as xe } from "./circle-alert-B6xl1B_M.js";
14
- import { n as B, t as Se } from "./blockTypeIcons-DEvNVvBj.js";
15
- import { t as Ce } from "./copy-6uKc-WBk.js";
16
- import { t as we } from "./info-ClH66pKN.js";
17
- import { t as Te } from "./link-y47GNW0o.js";
18
- import { t as Ee } from "./loader-circle-BRdCPW5h.js";
19
- import { n as De, t as Oe } from "./smartphone-CHf-8lHp.js";
20
- import { t as V } from "./plus-BMgjN7lI.js";
21
- import { t as ke } from "./refresh-cw-CR5lenxl.js";
22
- import { n as H, r as Ae, t as je } from "./text-align-start-PHo-Ep5i.js";
23
- import { t as Me } from "./trash-BxIzHAri.js";
24
- import { t as Ne } from "./upload-BxBtMPMv.js";
25
- import { t as Pe } from "./x-DrZO5tt0.js";
2
+ import { A as t, At as n, B as r, F as i, M as a, N as o, R as s, S as c, V as l, Y as u, Z as d, _ as f, at as p, c as m, d as h, g, h as _, jt as v, kt as y, l as b, r as x, s as S, u as C, v as w } from "./vue.runtime.esm-bundler-CctRY8kr.js";
3
+ import { a as T, o as E } from "./runtime-dom.esm-bundler-CO67ema2.js";
4
+ import { J as D, P as O, V as k, c as A, ct as j, m as ee, n as M, o as te, st as N, t as ne } from "./dist-CSaWqmWM.js";
5
+ import { c as re, f as ie, i as ae, l as P, r as oe, u as se, x as ce } from "./socialIcons-CvAixjj8.js";
6
+ import { _ as le } from "./dist-C-VFTX82.js";
7
+ import { $ as F, C as ue, G as de, L as fe, P as pe, c as me, d as he, h as ge, n as _e, p as ve, v as ye } from "./keys-injl74ob.js";
8
+ import { t as I } from "./useI18n-uF11q85g.js";
9
+ import { o as be } from "./usePopoverPosition-DkBrHfCo.js";
10
+ import { t as xe } from "./createLucideIcon-BAPyioGd.js";
11
+ import { c as L } from "./LogicTagInsertButton-BvftbkL4.js";
12
+ import { t as Se } from "./chevron-down-RrwkYMlp.js";
13
+ import { t as Ce } from "./circle-alert-BR1_Yfb-.js";
14
+ import { n as R, t as we } from "./blockTypeIcons-D3aj5u_5.js";
15
+ import { t as Te } from "./copy-D6DNoSq1.js";
16
+ import { t as Ee } from "./info-0bQQGjTV.js";
17
+ import { t as De } from "./link-Cstrr3Ep.js";
18
+ import { t as Oe } from "./loader-circle-D8Qqs0MG.js";
19
+ import { n as ke, t as Ae } from "./smartphone-CNOwGf5T.js";
20
+ import { t as z } from "./plus-D-nEKxTc.js";
21
+ import { t as je } from "./refresh-cw-CXZS-R1U.js";
22
+ import { n as B, r as V, t as H } from "./text-align-start-BKEKMheq.js";
23
+ import { t as Me } from "./trash-CKEQH4vH.js";
24
+ import { t as Ne } from "./upload-C8uO7KsR.js";
25
+ import { t as Pe } from "./x-gEC0yMci.js";
26
26
  import { t as Fe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
27
- import { t as Ie } from "./useAliveFlag-BkKyhkwZ.js";
27
+ import { t as Ie } from "./useAliveFlag-6PtarpNZ.js";
28
28
  import { _ as Le, b as Re, c as ze, g as U, h as W, m as G, p as K, r as Be, v as Ve } from "./styleConstants-C_YAPdQS.js";
29
- import { n as He, t as q } from "./ToggleSwitch-D7GLaT8s.js";
30
- import { t as J } from "./MergeTagInput-DoQWMSW4.js";
31
- var Ue = ye({
29
+ import { n as He, t as q } from "./ToggleSwitch-CTwwCIVA.js";
30
+ import { n as Ue, t as We } from "./withCurrentFont-DeCbPVaE.js";
31
+ import { t as J } from "./MergeTagInput-CR1kcj8X.js";
32
+ var Ge = xe({
32
33
  name: "lock-open",
33
34
  size: 24,
34
35
  node: [["rect", {
@@ -44,7 +45,7 @@ var Ue = ye({
44
45
  key: "1mm8w8"
45
46
  }]],
46
47
  aliases: ["unlock"]
47
- }), We = ye({
48
+ }), Ke = xe({
48
49
  name: "lock",
49
50
  size: 24,
50
51
  node: [["rect", {
@@ -59,7 +60,7 @@ var Ue = ye({
59
60
  d: "M7 11V7a5 5 0 0 1 10 0v4",
60
61
  key: "fwvmzm"
61
62
  }]]
62
- }), Ge = ye({
63
+ }), qe = xe({
63
64
  name: "unlink",
64
65
  size: 24,
65
66
  node: [
@@ -100,12 +101,12 @@ var Ue = ye({
100
101
  key: "ox905f"
101
102
  }]
102
103
  ]
103
- }), Ke = [
104
+ }), Je = [
104
105
  "aria-checked",
105
106
  "aria-label",
106
107
  "title",
107
108
  "onClick"
108
- ], qe = { key: 1 }, Y = /* @__PURE__ */ w({
109
+ ], Ye = { key: 1 }, Y = /* @__PURE__ */ w({
109
110
  __name: "SlidingPillSelect",
110
111
  props: {
111
112
  options: {},
@@ -148,9 +149,9 @@ var Ue = ye({
148
149
  key: 0,
149
150
  size: 14,
150
151
  "stroke-width": 2
151
- })) : (t(), h("span", qe, v(r.label), 1))], 12, Ke))), 128))], 4));
152
+ })) : (t(), h("span", Ye, v(r.label), 1))], 12, Je))), 128))], 4));
152
153
  }
153
- }), Je = { class: "tpl:flex tpl:items-stretch" }, Ye = [
154
+ }), Xe = { class: "tpl:flex tpl:items-stretch" }, Ze = [
154
155
  "data-testid",
155
156
  "value",
156
157
  "min",
@@ -171,7 +172,7 @@ var Ue = ye({
171
172
  let t = e.target;
172
173
  t.validity?.badInput || r("update:modelValue", Number(t.value));
173
174
  }
174
- return (n, r) => (t(), h("div", Je, [m("input", {
175
+ return (n, r) => (t(), h("div", Xe, [m("input", {
175
176
  type: "number",
176
177
  "data-testid": e.testid,
177
178
  class: y(p(G)),
@@ -179,14 +180,14 @@ var Ue = ye({
179
180
  min: e.min,
180
181
  max: e.max,
181
182
  onInput: i
182
- }, null, 42, Ye), m("span", { class: y(p(W)) }, v(e.suffix), 3)]));
183
+ }, null, 42, Ze), m("span", { class: y(p(W)) }, v(e.suffix), 3)]));
183
184
  }
184
- }), Xe = [
185
+ }), Qe = [
185
186
  "aria-pressed",
186
187
  "aria-label",
187
188
  "title",
188
189
  "data-testid"
189
- ], Ze = /* @__PURE__ */ w({
190
+ ], $e = /* @__PURE__ */ w({
190
191
  __name: "LinkToggle",
191
192
  props: {
192
193
  linked: { type: Boolean },
@@ -205,20 +206,20 @@ var Ue = ye({
205
206
  title: e.linked ? e.unlinkLabel : e.linkLabel,
206
207
  "data-testid": e.testid,
207
208
  onClick: i[0] ||= (e) => r("toggle")
208
- }, [e.linked ? (t(), b(p(Te), {
209
+ }, [e.linked ? (t(), b(p(De), {
209
210
  key: 0,
210
211
  size: 14,
211
212
  "stroke-width": 2
212
- })) : (t(), b(p(Ge), {
213
+ })) : (t(), b(p(qe), {
213
214
  key: 1,
214
215
  size: 14,
215
216
  "stroke-width": 2
216
- }))], 10, Xe));
217
+ }))], 10, Qe));
217
218
  }
218
- }), Qe = { class: "tpl:mb-3.5" }, $e = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, et = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, tt = {
219
+ }), et = { class: "tpl:mb-3.5" }, tt = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, nt = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, rt = {
219
220
  key: 0,
220
221
  class: "tpl:mb-3.5"
221
- }, nt = { class: "tpl:mb-3.5" }, rt = { class: "tpl:mb-3.5" }, it = /* @__PURE__ */ w({
222
+ }, it = { class: "tpl:mb-3.5" }, at = { class: "tpl:mb-3.5" }, ot = /* @__PURE__ */ w({
222
223
  __name: "BorderControl",
223
224
  props: {
224
225
  modelValue: {},
@@ -226,7 +227,7 @@ var Ue = ye({
226
227
  },
227
228
  emits: ["update:modelValue"],
228
229
  setup(e, { emit: n }) {
229
- let r = e, i = n, { t: a } = R(), o = {
230
+ let r = e, i = n, { t: a } = I(), o = {
230
231
  width: 0,
231
232
  style: "solid",
232
233
  color: "#000000"
@@ -236,7 +237,7 @@ var Ue = ye({
236
237
  }
237
238
  let l = S(() => {
238
239
  let e = r.modelValue;
239
- return !e || N.every((t) => c(e[t], e.top));
240
+ return !e || M.every((t) => c(e[t], e.top));
240
241
  }), u = d(l.value);
241
242
  s(l, (e) => {
242
243
  !e && u.value && (u.value = !1);
@@ -247,13 +248,13 @@ var Ue = ye({
247
248
  }), b = (e) => !!e && e.width > 0;
248
249
  function w(e) {
249
250
  if (u.value) {
250
- i("update:modelValue", b(e) ? A(e) : void 0);
251
+ i("update:modelValue", b(e) ? j(e) : void 0);
251
252
  return;
252
253
  }
253
254
  let t = {
254
- ...r.modelValue ?? A(o),
255
+ ...r.modelValue ?? j(o),
255
256
  [f.value]: e
256
- }, n = N.some((e) => b(t[e]));
257
+ }, n = M.some((e) => b(t[e]));
257
258
  i("update:modelValue", n ? t : void 0);
258
259
  }
259
260
  function T(e) {
@@ -276,15 +277,15 @@ var Ue = ye({
276
277
  u.value = !0;
277
278
  let e = r.modelValue;
278
279
  if (!e) return;
279
- let t = b(e[f.value]) ? e[f.value] : N.map((t) => e[t]).find(b);
280
- i("update:modelValue", t ? A(t) : void 0);
280
+ let t = b(e[f.value]) ? e[f.value] : M.map((t) => e[t]).find(b);
281
+ i("update:modelValue", t ? j(t) : void 0);
281
282
  }
282
- let O = S(() => N.map((e) => ({
283
+ let O = S(() => M.map((e) => ({
283
284
  value: e,
284
285
  label: a.spacingControl[e]
285
286
  })));
286
- return (n, r) => (t(), h("div", Qe, [
287
- m("div", $e, [m("span", et, v(p(a).blockSettings.border), 1), g(Ze, {
287
+ return (n, r) => (t(), h("div", et, [
288
+ m("div", tt, [m("span", nt, v(p(a).blockSettings.border), 1), g($e, {
288
289
  linked: u.value,
289
290
  "link-label": p(a).blockSettings.linkSides,
290
291
  "unlink-label": p(a).blockSettings.unlinkSides,
@@ -296,19 +297,19 @@ var Ue = ye({
296
297
  "unlink-label",
297
298
  "testid"
298
299
  ])]),
299
- u.value ? C("", !0) : (t(), h("div", tt, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderSide), 3), g(Y, {
300
+ u.value ? C("", !0) : (t(), h("div", rt, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderSide), 3), g(Y, {
300
301
  options: O.value,
301
302
  "model-value": f.value,
302
303
  "onUpdate:modelValue": r[0] ||= (e) => f.value = e
303
304
  }, null, 8, ["options", "model-value"])])),
304
- m("div", nt, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderWidth), 3), g(X, {
305
+ m("div", it, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderWidth), 3), g(X, {
305
306
  "model-value": _.value.width,
306
307
  min: 0,
307
308
  suffix: "px",
308
309
  testid: `${e.testidPrefix}-border-width-input`,
309
310
  "onUpdate:modelValue": T
310
311
  }, null, 8, ["model-value", "testid"])]),
311
- _.value.width > 0 ? (t(), h(x, { key: 1 }, [m("div", rt, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderStyle), 3), g(Y, {
312
+ _.value.width > 0 ? (t(), h(x, { key: 1 }, [m("div", at, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderStyle), 3), g(Y, {
312
313
  options: [
313
314
  {
314
315
  value: "solid",
@@ -325,16 +326,16 @@ var Ue = ye({
325
326
  ],
326
327
  "model-value": _.value.style,
327
328
  "onUpdate:modelValue": r[1] ||= (e) => E({ style: e })
328
- }, null, 8, ["options", "model-value"])]), m("div", null, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderColor), 3), g(z, {
329
+ }, null, 8, ["options", "model-value"])]), m("div", null, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderColor), 3), g(L, {
329
330
  "model-value": _.value.color,
330
331
  "onUpdate:modelValue": r[2] ||= (e) => E({ color: e })
331
332
  }, null, 8, ["model-value"])])], 64)) : C("", !0)
332
333
  ]));
333
334
  }
334
- }), at = { class: "tpl:mb-3.5" }, ot = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, st = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ct = {
335
+ }), st = { class: "tpl:mb-3.5" }, ct = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, lt = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ut = {
335
336
  key: 1,
336
337
  class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
337
- }, lt = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ut = /* @__PURE__ */ w({
338
+ }, dt = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ft = /* @__PURE__ */ w({
338
339
  __name: "RadiusControl",
339
340
  props: {
340
341
  modelValue: {},
@@ -344,7 +345,7 @@ var Ue = ye({
344
345
  },
345
346
  emits: ["update:modelValue"],
346
347
  setup(e, { emit: n }) {
347
- let r = e, i = n, { t: o } = R(), c = {
348
+ let r = e, i = n, { t: o } = I(), c = {
348
349
  topLeft: "cornerTopLeft",
349
350
  topRight: "cornerTopRight",
350
351
  bottomRight: "cornerBottomRight",
@@ -362,7 +363,7 @@ var Ue = ye({
362
363
  bottomRight: e,
363
364
  bottomLeft: e
364
365
  } : e;
365
- }), f = S(() => te.every((e) => u.value[e] === u.value.topLeft)), _ = d(f.value);
366
+ }), f = S(() => ne.every((e) => u.value[e] === u.value.topLeft)), _ = d(f.value);
366
367
  s(f, (e) => {
367
368
  !e && _.value && (_.value = !1);
368
369
  });
@@ -381,7 +382,7 @@ var Ue = ye({
381
382
  function T() {
382
383
  _.value = !_.value, _.value && i("update:modelValue", u.value.topLeft);
383
384
  }
384
- return (n, r) => (t(), h("div", at, [m("div", ot, [m("span", st, v(e.label), 1), g(Ze, {
385
+ return (n, r) => (t(), h("div", st, [m("div", ct, [m("span", lt, v(e.label), 1), g($e, {
385
386
  linked: _.value,
386
387
  "link-label": p(o).blockSettings.linkCorners,
387
388
  "unlink-label": p(o).blockSettings.unlinkCorners,
@@ -404,7 +405,7 @@ var Ue = ye({
404
405
  "model-value",
405
406
  "max",
406
407
  "testid"
407
- ])) : (t(), h("div", ct, [(t(), h(x, null, a(l, (t) => m("div", { key: t }, [m("label", lt, v(p(o).blockSettings[c[t]]), 1), g(X, {
408
+ ])) : (t(), h("div", ut, [(t(), h(x, null, a(l, (t) => m("div", { key: t }, [m("label", dt, v(p(o).blockSettings[c[t]]), 1), g(X, {
408
409
  "model-value": u.value[t],
409
410
  min: 0,
410
411
  max: e.max,
@@ -418,10 +419,10 @@ var Ue = ye({
418
419
  "onUpdate:modelValue"
419
420
  ])])), 64))]))]));
420
421
  }
421
- }), dt = { class: "tpl:mb-3.5" }, ft = ["value"], pt = { value: "" }, mt = ["value"], ht = { class: "tpl:mb-3.5" }, gt = { class: "tpl:mb-3.5" }, _t = { class: "tpl:mb-3.5" }, vt = { class: "tpl:mb-3.5" }, yt = { class: "tpl:mb-3.5" }, bt = { class: "tpl:flex tpl:items-stretch" }, xt = ["value"], St = { class: "tpl:mb-3.5" }, Ct = ["value"], wt = { value: "auto" }, Tt = { value: "full" }, Et = { value: "custom" }, Dt = {
422
+ }), pt = { class: "tpl:mb-3.5" }, mt = ["value"], ht = { value: "" }, gt = ["value"], _t = { class: "tpl:mb-3.5" }, vt = { class: "tpl:mb-3.5" }, yt = { class: "tpl:mb-3.5" }, bt = { class: "tpl:mb-3.5" }, xt = { class: "tpl:mb-3.5" }, St = { class: "tpl:flex tpl:items-stretch" }, Ct = ["value"], wt = { class: "tpl:mb-3.5" }, Tt = ["value"], Et = { value: "auto" }, Dt = { value: "full" }, Ot = { value: "custom" }, kt = {
422
423
  key: 0,
423
424
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
424
- }, Ot = ["value"], kt = { class: "tpl:mb-3.5" }, At = 200, jt = /* @__PURE__ */ w({
425
+ }, At = ["value"], jt = { class: "tpl:mb-3.5" }, Mt = 200, Nt = /* @__PURE__ */ w({
425
426
  __name: "ButtonToolbar",
426
427
  props: {
427
428
  block: {},
@@ -429,40 +430,32 @@ var Ue = ye({
429
430
  },
430
431
  emits: ["update"],
431
432
  setup(e, { emit: n }) {
432
- let r = e, i = n, { t: o } = R(), s = S(() => r.block.width === "full" ? "full" : typeof r.block.width == "number" ? "custom" : "auto");
433
+ let r = e, i = n, { t: o } = I(), s = S(() => r.block.width === "full" ? "full" : typeof r.block.width == "number" ? "custom" : "auto");
433
434
  function c(e, t) {
434
435
  i("update", { [e]: t });
435
436
  }
436
437
  function l(e) {
437
- if (e === "full") {
438
- c("width", "full");
439
- return;
440
- }
441
- if (e === "custom") {
442
- c("width", typeof r.block.width == "number" ? r.block.width : At);
443
- return;
444
- }
445
- c("width", void 0);
438
+ e === "full" ? c("width", "full") : e === "custom" ? c("width", typeof r.block.width == "number" ? r.block.width : Mt) : c("width", void 0);
446
439
  }
447
440
  function u(e) {
448
441
  let t = Number(e);
449
442
  !Number.isFinite(t) || t <= 0 || c("width", t);
450
443
  }
451
444
  return (n, r) => (t(), h(x, null, [
452
- m("div", dt, [m("label", { class: y(p(U)) }, v(p(o).button.fontFamily), 3), m("select", {
445
+ m("div", pt, [m("label", { class: y(p(U)) }, v(p(o).button.fontFamily), 3), m("select", {
453
446
  class: y(p(K)),
454
- value: e.block.fontFamily || "",
447
+ value: p(We)(e.block.fontFamily),
455
448
  onChange: r[0] ||= (e) => c("fontFamily", e.target.value || void 0)
456
- }, [m("option", pt, v(p(o).button.inheritFont), 1), (t(!0), h(x, null, a(e.fontFamilies, (e) => (t(), h("option", {
449
+ }, [m("option", ht, v(p(o).button.inheritFont), 1), (t(!0), h(x, null, a(e.fontFamilies, (e) => (t(), h("option", {
457
450
  key: e.value,
458
451
  value: e.value
459
- }, v(e.label), 9, mt))), 128))], 42, ft)]),
460
- m("div", ht, [m("label", { class: y(p(U)) }, v(p(o).button.text), 3), g(J, {
452
+ }, v(e.label), 9, gt))), 128))], 42, mt)]),
453
+ m("div", _t, [m("label", { class: y(p(U)) }, v(p(o).button.text), 3), g(J, {
461
454
  "model-value": e.block.text,
462
455
  type: "text",
463
456
  "onUpdate:modelValue": r[1] ||= (e) => c("text", e)
464
457
  }, null, 8, ["model-value"])]),
465
- m("div", gt, [
458
+ m("div", vt, [
466
459
  m("label", { class: y(p(U)) }, v(p(o).button.url), 3),
467
460
  g(J, {
468
461
  "model-value": e.block.url,
@@ -478,55 +471,55 @@ var Ue = ye({
478
471
  "onUpdate:modelValue": r[3] ||= (e) => c("openInNewTab", e)
479
472
  }, null, 8, ["model-value", "label"])) : C("", !0)
480
473
  ]),
481
- m("div", _t, [m("label", { class: y(p(U)) }, v(p(o).button.background), 3), g(z, {
474
+ m("div", yt, [m("label", { class: y(p(U)) }, v(p(o).button.background), 3), g(L, {
482
475
  "model-value": e.block.backgroundColor,
483
476
  "allow-transparent": "",
484
477
  "onUpdate:modelValue": r[4] ||= (e) => c("backgroundColor", e)
485
478
  }, null, 8, ["model-value"])]),
486
- m("div", vt, [m("label", { class: y(p(U)) }, v(p(o).button.textColor), 3), g(z, {
479
+ m("div", bt, [m("label", { class: y(p(U)) }, v(p(o).button.textColor), 3), g(L, {
487
480
  "model-value": e.block.textColor,
488
481
  "onUpdate:modelValue": r[5] ||= (e) => c("textColor", e)
489
482
  }, null, 8, ["model-value"])]),
490
- g(it, {
483
+ g(ot, {
491
484
  "model-value": e.block.border,
492
485
  "testid-prefix": "button",
493
486
  "onUpdate:modelValue": r[6] ||= (e) => c("border", e)
494
487
  }, null, 8, ["model-value"]),
495
- g(ut, {
488
+ g(ft, {
496
489
  "model-value": e.block.borderRadius,
497
490
  label: p(o).button.borderRadius,
498
491
  max: 50,
499
492
  "testid-prefix": "button",
500
493
  "onUpdate:modelValue": r[7] ||= (e) => c("borderRadius", e)
501
494
  }, null, 8, ["model-value", "label"]),
502
- m("div", yt, [m("label", { class: y(p(U)) }, v(p(o).button.fontSize), 3), m("div", bt, [m("input", {
495
+ m("div", xt, [m("label", { class: y(p(U)) }, v(p(o).button.fontSize), 3), m("div", St, [m("input", {
503
496
  type: "number",
504
497
  class: y(p(G)),
505
498
  value: e.block.fontSize,
506
499
  min: "10",
507
500
  max: "36",
508
501
  onInput: r[8] ||= (e) => c("fontSize", Number(e.target.value))
509
- }, null, 42, xt), m("span", { class: y(p(W)) }, "px", 2)])]),
510
- m("div", St, [
502
+ }, null, 42, Ct), m("span", { class: y(p(W)) }, "px", 2)])]),
503
+ m("div", wt, [
511
504
  m("label", { class: y(p(U)) }, v(p(o).button.width), 3),
512
505
  m("select", {
513
506
  class: y(p(K)),
514
507
  value: s.value,
515
508
  onChange: r[9] ||= (e) => l(e.target.value)
516
509
  }, [
517
- m("option", wt, v(p(o).button.widthAuto), 1),
518
- m("option", Tt, v(p(o).button.fullWidth), 1),
519
- m("option", Et, v(p(o).button.widthCustom), 1)
520
- ], 42, Ct),
521
- s.value === "custom" ? (t(), h("div", Dt, [m("input", {
510
+ m("option", Et, v(p(o).button.widthAuto), 1),
511
+ m("option", Dt, v(p(o).button.fullWidth), 1),
512
+ m("option", Ot, v(p(o).button.widthCustom), 1)
513
+ ], 42, Tt),
514
+ s.value === "custom" ? (t(), h("div", kt, [m("input", {
522
515
  type: "number",
523
516
  class: y(p(G)),
524
- value: typeof e.block.width == "number" ? e.block.width : At,
517
+ value: typeof e.block.width == "number" ? e.block.width : Mt,
525
518
  min: "20",
526
519
  onInput: r[10] ||= (e) => u(e.target.value)
527
- }, null, 42, Ot), m("span", { class: y(p(W)) }, "px", 2)])) : C("", !0)
520
+ }, null, 42, At), m("span", { class: y(p(W)) }, "px", 2)])) : C("", !0)
528
521
  ]),
529
- m("div", kt, [m("label", { class: y(p(U)) }, v(p(o).title.align), 3), g(Y, {
522
+ m("div", jt, [m("label", { class: y(p(U)) }, v(p(o).title.align), 3), g(Y, {
530
523
  options: [
531
524
  {
532
525
  value: "left",
@@ -546,7 +539,7 @@ var Ue = ye({
546
539
  }, null, 8, ["options", "model-value"])])
547
540
  ], 64));
548
541
  }
549
- }), Mt = { class: "spacing-control" }, Nt = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Pt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Ft = { class: "tpl:flex tpl:items-center" }, It = ["aria-label"], Lt = ["value", "aria-label"], Rt = ["aria-label"], zt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Bt = { class: "tpl:flex tpl:items-center" }, Vt = ["aria-label"], Ht = ["value", "aria-label"], Ut = ["aria-label"], Wt = ["aria-label", "title"], Gt = { class: "tpl:flex tpl:items-center" }, Kt = ["aria-label"], qt = ["value", "aria-label"], Jt = ["aria-label"], Yt = { class: "tpl:flex tpl:items-center" }, Xt = ["aria-label"], Zt = ["value", "aria-label"], Qt = ["aria-label"], Z = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", $t = "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)]", en = /*#__PURE__*/ Fe(/* @__PURE__ */ w({
542
+ }), Pt = { class: "spacing-control" }, Ft = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, It = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Lt = { class: "tpl:flex tpl:items-center" }, Rt = ["aria-label"], zt = ["value", "aria-label"], Bt = ["aria-label"], Vt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ht = { class: "tpl:flex tpl:items-center" }, Ut = ["aria-label"], Wt = ["value", "aria-label"], Gt = ["aria-label"], Kt = ["aria-label", "title"], qt = { class: "tpl:flex tpl:items-center" }, Jt = ["aria-label"], Yt = ["value", "aria-label"], Xt = ["aria-label"], Zt = { class: "tpl:flex tpl:items-center" }, Qt = ["aria-label"], $t = ["value", "aria-label"], en = ["aria-label"], Z = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", tn = "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)]", nn = /*#__PURE__*/ Fe(/* @__PURE__ */ w({
550
543
  __name: "SpacingControl",
551
544
  props: {
552
545
  modelValue: {},
@@ -554,7 +547,7 @@ var Ue = ye({
554
547
  },
555
548
  emits: ["update:modelValue"],
556
549
  setup(e, { emit: n }) {
557
- let r = e, i = n, { t: a } = R(), o = S(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), c = d(o.value);
550
+ let r = e, i = n, { t: a } = I(), o = S(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), c = d(o.value);
558
551
  s(o, (e) => {
559
552
  !e && c.value && (c.value = !1);
560
553
  });
@@ -593,130 +586,130 @@ var Ue = ye({
593
586
  });
594
587
  }
595
588
  }
596
- return (n, r) => (t(), h("div", Mt, [m("label", Nt, v(e.label), 1), m("div", Pt, [
597
- m("div", Ft, [
589
+ return (n, r) => (t(), h("div", Pt, [m("label", Ft, v(e.label), 1), m("div", It, [
590
+ m("div", Lt, [
598
591
  m("button", {
599
592
  "aria-label": p(a).spacingControl.decreaseTop,
600
593
  class: y([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
601
594
  onClick: r[0] ||= (e) => l("top", -1)
602
- }, [g(p(B), {
595
+ }, [g(p(R), {
603
596
  size: 12,
604
597
  "stroke-width": 2
605
- })], 10, It),
598
+ })], 10, Rt),
606
599
  m("input", {
607
600
  type: "number",
608
- class: y($t),
601
+ class: y(tn),
609
602
  value: e.modelValue.top,
610
603
  "aria-label": p(a).spacingControl.top,
611
604
  min: "0",
612
605
  onInput: r[1] ||= (e) => u("top", Number(e.target.value))
613
- }, null, 40, Lt),
606
+ }, null, 40, zt),
614
607
  m("button", {
615
608
  "aria-label": p(a).spacingControl.increaseTop,
616
609
  class: y([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
617
610
  onClick: r[2] ||= (e) => l("top", 1)
618
- }, [g(p(V), {
611
+ }, [g(p(z), {
619
612
  size: 12,
620
613
  "stroke-width": 2
621
- })], 10, Rt)
614
+ })], 10, Bt)
622
615
  ]),
623
- m("div", zt, [
624
- m("div", Bt, [
616
+ m("div", Vt, [
617
+ m("div", Ht, [
625
618
  m("button", {
626
619
  "aria-label": p(a).spacingControl.decreaseLeft,
627
620
  class: y([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
628
621
  onClick: r[3] ||= (e) => l("left", -1)
629
- }, [g(p(B), {
622
+ }, [g(p(R), {
630
623
  size: 12,
631
624
  "stroke-width": 2
632
- })], 10, Vt),
625
+ })], 10, Ut),
633
626
  m("input", {
634
627
  type: "number",
635
- class: y($t),
628
+ class: y(tn),
636
629
  value: e.modelValue.left,
637
630
  "aria-label": p(a).spacingControl.left,
638
631
  min: "0",
639
632
  onInput: r[4] ||= (e) => u("left", Number(e.target.value))
640
- }, null, 40, Ht),
633
+ }, null, 40, Wt),
641
634
  m("button", {
642
635
  "aria-label": p(a).spacingControl.increaseLeft,
643
636
  class: y([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
644
637
  onClick: r[5] ||= (e) => l("left", 1)
645
- }, [g(p(V), {
638
+ }, [g(p(z), {
646
639
  size: 12,
647
640
  "stroke-width": 2
648
- })], 10, Ut)
641
+ })], 10, Gt)
649
642
  ]),
650
643
  m("button", {
651
644
  class: y(["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)]", c.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)]"]),
652
645
  "aria-label": c.value ? p(a).spacingControl.unlock : p(a).spacingControl.lockAll,
653
646
  title: c.value ? p(a).spacingControl.unlock : p(a).spacingControl.lockAll,
654
647
  onClick: f
655
- }, [c.value ? (t(), b(p(We), {
648
+ }, [c.value ? (t(), b(p(Ke), {
656
649
  key: 0,
657
650
  size: 14,
658
651
  "stroke-width": 2
659
- })) : (t(), b(p(Ue), {
652
+ })) : (t(), b(p(Ge), {
660
653
  key: 1,
661
654
  size: 14,
662
655
  "stroke-width": 2
663
- }))], 10, Wt),
664
- m("div", Gt, [
656
+ }))], 10, Kt),
657
+ m("div", qt, [
665
658
  m("button", {
666
659
  "aria-label": p(a).spacingControl.decreaseRight,
667
660
  class: y([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
668
661
  onClick: r[6] ||= (e) => l("right", -1)
669
- }, [g(p(B), {
662
+ }, [g(p(R), {
670
663
  size: 12,
671
664
  "stroke-width": 2
672
- })], 10, Kt),
665
+ })], 10, Jt),
673
666
  m("input", {
674
667
  type: "number",
675
- class: y($t),
668
+ class: y(tn),
676
669
  value: e.modelValue.right,
677
670
  "aria-label": p(a).spacingControl.right,
678
671
  min: "0",
679
672
  onInput: r[7] ||= (e) => u("right", Number(e.target.value))
680
- }, null, 40, qt),
673
+ }, null, 40, Yt),
681
674
  m("button", {
682
675
  "aria-label": p(a).spacingControl.increaseRight,
683
676
  class: y([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
684
677
  onClick: r[8] ||= (e) => l("right", 1)
685
- }, [g(p(V), {
678
+ }, [g(p(z), {
686
679
  size: 12,
687
680
  "stroke-width": 2
688
- })], 10, Jt)
681
+ })], 10, Xt)
689
682
  ])
690
683
  ]),
691
- m("div", Yt, [
684
+ m("div", Zt, [
692
685
  m("button", {
693
686
  "aria-label": p(a).spacingControl.decreaseBottom,
694
687
  class: y([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
695
688
  onClick: r[9] ||= (e) => l("bottom", -1)
696
- }, [g(p(B), {
689
+ }, [g(p(R), {
697
690
  size: 12,
698
691
  "stroke-width": 2
699
- })], 10, Xt),
692
+ })], 10, Qt),
700
693
  m("input", {
701
694
  type: "number",
702
- class: y($t),
695
+ class: y(tn),
703
696
  value: e.modelValue.bottom,
704
697
  "aria-label": p(a).spacingControl.bottom,
705
698
  min: "0",
706
699
  onInput: r[10] ||= (e) => u("bottom", Number(e.target.value))
707
- }, null, 40, Zt),
700
+ }, null, 40, $t),
708
701
  m("button", {
709
702
  "aria-label": p(a).spacingControl.increaseBottom,
710
703
  class: y([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
711
704
  onClick: r[11] ||= (e) => l("bottom", 1)
712
- }, [g(p(V), {
705
+ }, [g(p(z), {
713
706
  size: 12,
714
707
  "stroke-width": 2
715
- })], 10, Qt)
708
+ })], 10, en)
716
709
  ])
717
710
  ])]));
718
711
  }
719
- }), [["__scopeId", "data-v-69591c1e"]]), tn = ["data-testid"], nn = { class: "tpl:mt-3" }, rn = /* @__PURE__ */ w({
712
+ }), [["__scopeId", "data-v-69591c1e"]]), rn = ["data-testid"], an = { class: "tpl:mt-3" }, on = /* @__PURE__ */ w({
720
713
  __name: "CollapsibleSection",
721
714
  props: {
722
715
  title: {},
@@ -731,25 +724,25 @@ var Ue = ye({
731
724
  "data-testid": e.headerTestId,
732
725
  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)]",
733
726
  onClick: r[0] ||= (e) => n.$emit("toggle")
734
- }, [g(p(be), {
727
+ }, [g(p(Se), {
735
728
  class: y(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
736
729
  size: 12,
737
730
  "stroke-width": 2
738
- }, null, 8, ["class"]), m("span", null, v(e.title), 1)], 8, tn), l(m("div", nn, [o(n.$slots, "default")], 512), [[E, e.open]])], 2));
731
+ }, null, 8, ["class"]), m("span", null, v(e.title), 1)], 8, rn), l(m("div", an, [o(n.$slots, "default")], 512), [[E, e.open]])], 2));
739
732
  }
740
- }), an = { class: "tpl:space-y-2" }, on = { class: "tpl:flex tpl:items-center tpl:gap-2" }, sn = { class: "tpl:space-y-2" }, cn = ["value"], ln = { value: "" }, un = ["label"], dn = ["value"], fn = ["value"], pn = {
733
+ }), sn = { class: "tpl:space-y-2" }, cn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ln = { class: "tpl:space-y-2" }, un = ["value"], dn = { value: "" }, fn = ["label"], pn = ["value"], mn = ["value"], hn = {
741
734
  key: 0,
742
735
  value: "__custom__"
743
- }, mn = {
736
+ }, gn = {
744
737
  key: 0,
745
738
  class: "tpl:space-y-2"
746
- }, hn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, gn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, _n = { class: "tpl:flex tpl:justify-end" }, vn = ["disabled"], yn = {
739
+ }, _n = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, vn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, yn = { class: "tpl:flex tpl:justify-end" }, bn = ["disabled"], xn = {
747
740
  key: 0,
748
741
  class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
749
- }, bn = { class: "tpl:space-y-1" }, xn = { 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)]" }, Sn = {
742
+ }, Sn = { class: "tpl:space-y-1" }, Cn = { 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)]" }, wn = {
750
743
  key: 0,
751
744
  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)]"
752
- }, Cn = /* @__PURE__ */ w({
745
+ }, Tn = /* @__PURE__ */ w({
753
746
  __name: "CommonBlockSettings",
754
747
  props: {
755
748
  block: {},
@@ -757,23 +750,23 @@ var Ue = ye({
757
750
  },
758
751
  emits: ["update"],
759
752
  setup(e, { emit: n }) {
760
- let o = e, f = n, { t: w } = R(), E = c(me, []), D = c(he, !1), O = u(/* @__PURE__ */ new Set()), k = d(!1), A = d(""), j = d(""), ee = [{
753
+ let o = e, f = n, { t: w } = I(), E = c(ge, []), D = c(_e, !1), O = u(/* @__PURE__ */ new Set()), k = d(!1), A = d(""), j = d(""), ee = [{
761
754
  key: "desktop",
762
- icon: De,
755
+ icon: ke,
763
756
  labelKey: "showOnDesktop"
764
757
  }, {
765
758
  key: "mobile",
766
- icon: Oe,
759
+ icon: Ae,
767
760
  labelKey: "showOnMobile"
768
761
  }];
769
762
  function M(e) {
770
763
  O.has(e) ? O.delete(e) : O.add(e);
771
764
  }
772
- let N = S(() => E.length > 0 || D), P = S(() => o.block.displayCondition ? !E.some((e) => e.label === o.block.displayCondition?.label) : !1);
773
- function te() {
774
- k.value = !0, P.value && o.block.displayCondition ? (A.value = o.block.displayCondition.before, j.value = o.block.displayCondition.after ?? "") : (A.value = "", j.value = "");
775
- }
765
+ let te = S(() => E.length > 0 || D), N = S(() => o.block.displayCondition ? !E.some((e) => e.label === o.block.displayCondition?.label) : !1);
776
766
  function ne() {
767
+ k.value = !0, N.value && o.block.displayCondition ? (A.value = o.block.displayCondition.before, j.value = o.block.displayCondition.after ?? "") : (A.value = "", j.value = "");
768
+ }
769
+ function re() {
777
770
  A.value.trim() && (f("update", { displayCondition: {
778
771
  label: w.blockSettings.customCondition,
779
772
  before: A.value.trim(),
@@ -781,13 +774,9 @@ var Ue = ye({
781
774
  } }), k.value = !1, A.value = "", j.value = "");
782
775
  }
783
776
  s(() => o.block.displayCondition, (e) => {
784
- if (!e) {
785
- k.value = !1, A.value = "", j.value = "";
786
- return;
787
- }
788
- P.value && (A.value = e.before, j.value = e.after ?? "");
777
+ e ? N.value && (A.value = e.before, j.value = e.after ?? "") : (k.value = !1, A.value = "", j.value = "");
789
778
  }, { immediate: !0 });
790
- let re = S(() => {
779
+ let ie = S(() => {
791
780
  let e = {};
792
781
  for (let t of E) {
793
782
  let n = t.group ?? "";
@@ -795,33 +784,33 @@ var Ue = ye({
795
784
  }
796
785
  return e;
797
786
  });
798
- function F(e, t) {
787
+ function ae(e, t) {
799
788
  f("update", { styles: {
800
789
  ...o.block.styles,
801
790
  [e]: t
802
791
  } });
803
792
  }
804
- function I(e) {
793
+ function P(e) {
805
794
  return o.block.visibility?.[e] !== !1;
806
795
  }
807
- function ie(e) {
796
+ function oe(e) {
808
797
  let t = {
809
- desktop: I("desktop"),
810
- mobile: I("mobile")
798
+ desktop: P("desktop"),
799
+ mobile: P("mobile")
811
800
  };
812
801
  t[e] = !t[e], f("update", { visibility: t });
813
802
  }
814
803
  return (n, o) => (t(), h("div", { class: y(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
815
- g(rn, {
804
+ g(on, {
816
805
  title: p(w).blockSettings.spacing,
817
806
  open: O.has("spacing"),
818
807
  "no-border": e.isFirstSection,
819
808
  onToggle: o[1] ||= (e) => M("spacing")
820
809
  }, {
821
- default: r(() => [g(en, {
810
+ default: r(() => [g(nn, {
822
811
  label: p(w).blockSettings.padding,
823
812
  "model-value": e.block.styles.padding,
824
- "onUpdate:modelValue": o[0] ||= (e) => F("padding", e)
813
+ "onUpdate:modelValue": o[0] ||= (e) => ae("padding", e)
825
814
  }, null, 8, ["label", "model-value"])]),
826
815
  _: 1
827
816
  }, 8, [
@@ -829,31 +818,31 @@ var Ue = ye({
829
818
  "open",
830
819
  "no-border"
831
820
  ]),
832
- g(rn, {
821
+ g(on, {
833
822
  title: p(w).blockSettings.background,
834
823
  open: O.has("bg"),
835
824
  onToggle: o[3] ||= (e) => M("bg")
836
825
  }, {
837
- default: r(() => [m("label", { class: y(p(U)) }, v(p(w).blockSettings.color), 3), g(z, {
826
+ default: r(() => [m("label", { class: y(p(U)) }, v(p(w).blockSettings.color), 3), g(L, {
838
827
  "model-value": e.block.styles.backgroundColor ?? "",
839
828
  "allow-transparent": "",
840
- "onUpdate:modelValue": o[2] ||= (e) => F("backgroundColor", e)
829
+ "onUpdate:modelValue": o[2] ||= (e) => ae("backgroundColor", e)
841
830
  }, null, 8, ["model-value"])]),
842
831
  _: 1
843
832
  }, 8, ["title", "open"]),
844
- g(rn, {
833
+ g(on, {
845
834
  title: p(w).blockSettings.display,
846
835
  open: O.has("display"),
847
836
  onToggle: o[4] ||= (e) => M("display")
848
837
  }, {
849
- default: r(() => [m("div", an, [(t(), h(x, null, a(ee, (e) => g(q, {
838
+ default: r(() => [m("div", sn, [(t(), h(x, null, a(ee, (e) => g(q, {
850
839
  key: e.key,
851
840
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
852
- "model-value": I(e.key),
841
+ "model-value": P(e.key),
853
842
  label: p(w).blockSettings[e.labelKey],
854
- "onUpdate:modelValue": (t) => ie(e.key)
843
+ "onUpdate:modelValue": (t) => oe(e.key)
855
844
  }, {
856
- default: r(() => [m("span", on, [(t(), b(i(e.icon), {
845
+ default: r(() => [m("span", cn, [(t(), b(i(e.icon), {
857
846
  size: 14,
858
847
  "stroke-width": 1.5
859
848
  })), _(" " + v(p(w).blockSettings[e.labelKey]), 1)])]),
@@ -865,21 +854,21 @@ var Ue = ye({
865
854
  ])), 64))])]),
866
855
  _: 1
867
856
  }, 8, ["title", "open"]),
868
- N.value ? (t(), b(rn, {
857
+ te.value ? (t(), b(on, {
869
858
  key: 0,
870
859
  "header-test-id": "display-condition-section",
871
860
  title: p(w).blockSettings.displayCondition,
872
861
  open: O.has("condition"),
873
862
  onToggle: o[8] ||= (e) => M("condition")
874
863
  }, {
875
- default: r(() => [m("div", sn, [m("select", {
864
+ default: r(() => [m("div", ln, [m("select", {
876
865
  "data-testid": "display-condition-select",
877
866
  class: y(["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)]"]),
878
- value: k.value || P.value ? "__custom__" : e.block.displayCondition?.label ?? "",
867
+ value: k.value || N.value ? "__custom__" : e.block.displayCondition?.label ?? "",
879
868
  onChange: o[5] ||= (e) => {
880
869
  let t = e.target.value;
881
870
  if (t === "__custom__") {
882
- te();
871
+ ne();
883
872
  return;
884
873
  }
885
874
  if (k.value = !1, !t) {
@@ -890,41 +879,41 @@ var Ue = ye({
890
879
  n && f("update", { displayCondition: n });
891
880
  }
892
881
  }, [
893
- m("option", ln, v(p(w).blockSettings.noCondition), 1),
894
- (t(!0), h(x, null, a(re.value, (e, n) => (t(), h(x, { key: n }, [n ? (t(), h("optgroup", {
882
+ m("option", dn, v(p(w).blockSettings.noCondition), 1),
883
+ (t(!0), h(x, null, a(ie.value, (e, n) => (t(), h(x, { key: n }, [n ? (t(), h("optgroup", {
895
884
  key: 0,
896
885
  label: String(n)
897
886
  }, [(t(!0), h(x, null, a(e, (e) => (t(), h("option", {
898
887
  key: e.label,
899
888
  value: e.label
900
- }, v(e.label), 9, dn))), 128))], 8, un)) : (t(!0), h(x, { key: 1 }, a(e, (e) => (t(), h("option", {
889
+ }, v(e.label), 9, pn))), 128))], 8, fn)) : (t(!0), h(x, { key: 1 }, a(e, (e) => (t(), h("option", {
901
890
  key: e.label,
902
891
  value: e.label
903
- }, v(e.label), 9, fn))), 128))], 64))), 128)),
904
- p(D) ? (t(), h("option", pn, v(p(w).blockSettings.customCondition), 1)) : C("", !0)
905
- ], 42, cn), k.value || P.value ? (t(), h("div", mn, [
906
- m("div", null, [m("label", hn, v(p(w).blockSettings.customConditionBefore), 1), l(m("textarea", {
892
+ }, v(e.label), 9, mn))), 128))], 64))), 128)),
893
+ p(D) ? (t(), h("option", hn, v(p(w).blockSettings.customCondition), 1)) : C("", !0)
894
+ ], 42, un), k.value || N.value ? (t(), h("div", gn, [
895
+ m("div", null, [m("label", _n, v(p(w).blockSettings.customConditionBefore), 1), l(m("textarea", {
907
896
  "onUpdate:modelValue": o[6] ||= (e) => A.value = e,
908
897
  rows: "2",
909
898
  class: y(p(Le))
910
899
  }, null, 2), [[T, A.value]])]),
911
- m("div", null, [m("label", gn, v(p(w).blockSettings.customConditionAfter), 1), l(m("textarea", {
900
+ m("div", null, [m("label", vn, v(p(w).blockSettings.customConditionAfter), 1), l(m("textarea", {
912
901
  "onUpdate:modelValue": o[7] ||= (e) => j.value = e,
913
902
  rows: "2",
914
903
  class: y(p(Le))
915
904
  }, null, 2), [[T, j.value]])]),
916
- m("div", _n, [m("button", {
905
+ m("div", yn, [m("button", {
917
906
  type: "button",
918
907
  class: y(p(Ve)),
919
908
  disabled: !A.value.trim(),
920
- onClick: ne
921
- }, v(p(w).blockSettings.applyCondition), 11, vn)])
922
- ])) : e.block.displayCondition && !P.value ? (t(), h(x, { key: 1 }, [e.block.displayCondition.description ? (t(), h("p", yn, v(e.block.displayCondition.description), 1)) : C("", !0), m("div", bn, [m("pre", xn, v(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (t(), h("pre", Sn, v(e.block.displayCondition.after), 1)) : C("", !0)])], 64)) : C("", !0)])]),
909
+ onClick: re
910
+ }, v(p(w).blockSettings.applyCondition), 11, bn)])
911
+ ])) : e.block.displayCondition && !N.value ? (t(), h(x, { key: 1 }, [e.block.displayCondition.description ? (t(), h("p", xn, v(e.block.displayCondition.description), 1)) : C("", !0), m("div", Sn, [m("pre", Cn, v(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (t(), h("pre", wn, v(e.block.displayCondition.after), 1)) : C("", !0)])], 64)) : C("", !0)])]),
923
912
  _: 1
924
913
  }, 8, ["title", "open"])) : C("", !0)
925
914
  ], 2));
926
915
  }
927
- }), wn = ["title"], Tn = /* @__PURE__ */ w({
916
+ }), En = ["title"], Dn = /* @__PURE__ */ w({
928
917
  __name: "BooleanField",
929
918
  props: {
930
919
  field: {},
@@ -933,7 +922,7 @@ var Ue = ye({
933
922
  },
934
923
  emits: ["update:modelValue"],
935
924
  setup(e, { emit: n }) {
936
- let i = n, { t: a } = R();
925
+ let i = n, { t: a } = I();
937
926
  return (n, o) => (t(), h("div", {
938
927
  class: "tpl:mb-3.5",
939
928
  title: e.readOnly ? p(a).customBlocks.dataSource.readOnlyTooltip : void 0
@@ -945,7 +934,7 @@ var Ue = ye({
945
934
  disabled: e.readOnly,
946
935
  "onUpdate:modelValue": o[0] ||= (e) => i("update:modelValue", e)
947
936
  }, {
948
- default: r(() => [_(v(e.field.label) + " ", 1), e.readOnly ? (t(), b(p(We), {
937
+ default: r(() => [_(v(e.field.label) + " ", 1), e.readOnly ? (t(), b(p(Ke), {
949
938
  key: 0,
950
939
  size: 12,
951
940
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
@@ -956,9 +945,9 @@ var Ue = ye({
956
945
  "label",
957
946
  "required",
958
947
  "disabled"
959
- ])], 8, wn));
948
+ ])], 8, En));
960
949
  }
961
- }), En = { class: "tpl:mb-3.5" }, Dn = ["title"], On = { class: "tpl-sr-only" }, kn = ["title"], An = { class: "tpl-sr-only" }, Q = /* @__PURE__ */ w({
950
+ }), On = { class: "tpl:mb-3.5" }, kn = ["title"], An = { class: "tpl-sr-only" }, jn = ["title"], Mn = { class: "tpl-sr-only" }, Q = /* @__PURE__ */ w({
962
951
  __name: "FieldWrapper",
963
952
  props: {
964
953
  label: {},
@@ -966,25 +955,25 @@ var Ue = ye({
966
955
  readOnly: { type: Boolean }
967
956
  },
968
957
  setup(e) {
969
- let { t: n } = R();
970
- return (r, i) => (t(), h("div", En, [m("label", { class: y(p(U)) }, [
958
+ let { t: n } = I();
959
+ return (r, i) => (t(), h("div", On, [m("label", { class: y(p(U)) }, [
971
960
  _(v(e.label) + " ", 1),
972
961
  e.readOnly ? (t(), h("span", {
973
962
  key: 0,
974
963
  title: p(n).customBlocks.dataSource.readOnlyTooltip
975
- }, [g(p(We), {
964
+ }, [g(p(Ke), {
976
965
  size: 12,
977
966
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
978
967
  "aria-hidden": "true"
979
- }), m("span", On, v(p(n).customBlocks.dataSource.readOnlyTooltip), 1)], 8, Dn)) : C("", !0),
968
+ }), m("span", An, v(p(n).customBlocks.dataSource.readOnlyTooltip), 1)], 8, kn)) : C("", !0),
980
969
  e.required ? (t(), h("span", {
981
970
  key: 1,
982
971
  class: "tpl:text-[var(--tpl-danger)]",
983
972
  title: p(n).customBlocks.fields.required
984
- }, [i[0] ||= m("span", { "aria-hidden": "true" }, "*", -1), m("span", An, v(p(n).customBlocks.fields.required), 1)], 8, kn)) : C("", !0)
973
+ }, [i[0] ||= m("span", { "aria-hidden": "true" }, "*", -1), m("span", Mn, v(p(n).customBlocks.fields.required), 1)], 8, jn)) : C("", !0)
985
974
  ], 2), o(r.$slots, "default")]));
986
975
  }
987
- }), jn = /* @__PURE__ */ w({
976
+ }), Nn = /* @__PURE__ */ w({
988
977
  __name: "ColorField",
989
978
  props: {
990
979
  field: {},
@@ -993,13 +982,13 @@ var Ue = ye({
993
982
  },
994
983
  emits: ["update:modelValue"],
995
984
  setup(e, { emit: n }) {
996
- let i = e, a = n, { t: o } = R(), s = c(pe, ve), l = S(() => ae(i.field, s));
985
+ let i = e, a = n, { t: o } = I(), s = c(he, be), l = S(() => se(i.field, s));
997
986
  return (n, i) => (t(), b(Q, {
998
987
  label: e.field.label,
999
988
  required: e.field.required,
1000
989
  "read-only": e.readOnly
1001
990
  }, {
1002
- default: r(() => [g(z, {
991
+ default: r(() => [g(L, {
1003
992
  "model-value": e.modelValue,
1004
993
  placeholder: e.field.placeholder,
1005
994
  disabled: e.readOnly,
@@ -1022,15 +1011,15 @@ var Ue = ye({
1022
1011
  "read-only"
1023
1012
  ]));
1024
1013
  }
1025
- }), Mn = {
1014
+ }), Pn = {
1026
1015
  key: 0,
1027
1016
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
1028
1017
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
1029
- }, Nn = [
1018
+ }, Fn = [
1030
1019
  "value",
1031
1020
  "placeholder",
1032
1021
  "title"
1033
- ], Pn = ["value", "placeholder"], Fn = /* @__PURE__ */ w({
1022
+ ], In = ["value", "placeholder"], Ln = /* @__PURE__ */ w({
1034
1023
  __name: "ImageField",
1035
1024
  props: {
1036
1025
  field: {},
@@ -1039,7 +1028,7 @@ var Ue = ye({
1039
1028
  },
1040
1029
  emits: ["update:modelValue"],
1041
1030
  setup(e, { emit: n }) {
1042
- let i = e, a = n, { t: o } = R(), s = c(ue, null), l = c(fe, null), u = Ie(), f = S(() => !!s);
1031
+ let i = e, a = n, { t: o } = I(), s = c(fe, null), l = c(me, null), u = Ie(), f = S(() => !!s);
1043
1032
  async function w() {
1044
1033
  let e = await s?.({ accept: ["images"] });
1045
1034
  u.alive && e && a("update:modelValue", e.url);
@@ -1060,7 +1049,7 @@ var Ue = ye({
1060
1049
  }
1061
1050
  }
1062
1051
  }
1063
- let { isOver: k } = F({
1052
+ let { isOver: k } = ae({
1064
1053
  target: T,
1065
1054
  enabled: D,
1066
1055
  onFiles: O
@@ -1075,7 +1064,7 @@ var Ue = ye({
1075
1064
  ref: T,
1076
1065
  class: "tpl:relative"
1077
1066
  }, [
1078
- D.value && (p(k) || E.value) ? (t(), h("div", Mn, [E.value ? (t(), h(x, { key: 0 }, [g(p(Ee), {
1067
+ D.value && (p(k) || E.value) ? (t(), h("div", Pn, [E.value ? (t(), h(x, { key: 0 }, [g(p(Oe), {
1079
1068
  class: "tpl-spinner",
1080
1069
  size: 18,
1081
1070
  "stroke-width": 2
@@ -1091,19 +1080,19 @@ var Ue = ye({
1091
1080
  placeholder: e.field.placeholder || "https://...",
1092
1081
  disabled: "",
1093
1082
  title: p(o).customBlocks.dataSource.readOnlyTooltip
1094
- }, null, 10, Nn)) : (t(), h("input", {
1083
+ }, null, 10, Fn)) : (t(), h("input", {
1095
1084
  key: 2,
1096
1085
  type: "url",
1097
1086
  class: y(p(K)),
1098
1087
  value: e.modelValue,
1099
1088
  placeholder: e.field.placeholder || "https://...",
1100
1089
  onInput: i[0] ||= (e) => a("update:modelValue", e.target.value)
1101
- }, null, 42, Pn)),
1090
+ }, null, 42, In)),
1102
1091
  f.value && !e.readOnly ? (t(), h("button", {
1103
1092
  key: 3,
1104
1093
  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)]",
1105
1094
  onClick: i[1] ||= (e) => w()
1106
- }, [g(p(ne), {
1095
+ }, [g(p(re), {
1107
1096
  size: 14,
1108
1097
  "stroke-width": 1.5
1109
1098
  }), _(" " + v(p(o).image.browseMedia), 1)])) : C("", !0)
@@ -1115,7 +1104,7 @@ var Ue = ye({
1115
1104
  "read-only"
1116
1105
  ]));
1117
1106
  }
1118
- }), In = [
1107
+ }), Rn = [
1119
1108
  "value",
1120
1109
  "placeholder",
1121
1110
  "min",
@@ -1123,7 +1112,7 @@ var Ue = ye({
1123
1112
  "step",
1124
1113
  "disabled",
1125
1114
  "title"
1126
- ], Ln = /* @__PURE__ */ w({
1115
+ ], zn = /* @__PURE__ */ w({
1127
1116
  __name: "NumberField",
1128
1117
  props: {
1129
1118
  field: {},
@@ -1132,7 +1121,7 @@ var Ue = ye({
1132
1121
  },
1133
1122
  emits: ["update:modelValue"],
1134
1123
  setup(e, { emit: n }) {
1135
- let i = n, { t: a } = R();
1124
+ let i = n, { t: a } = I();
1136
1125
  return (n, o) => (t(), b(Q, {
1137
1126
  label: e.field.label,
1138
1127
  required: e.field.required,
@@ -1149,7 +1138,7 @@ var Ue = ye({
1149
1138
  disabled: e.readOnly,
1150
1139
  title: e.readOnly ? p(a).customBlocks.dataSource.readOnlyTooltip : void 0,
1151
1140
  onInput: o[0] ||= (t) => !e.readOnly && i("update:modelValue", Number(t.target.value))
1152
- }, null, 42, In)]),
1141
+ }, null, 42, Rn)]),
1153
1142
  _: 1
1154
1143
  }, 8, [
1155
1144
  "label",
@@ -1157,13 +1146,13 @@ var Ue = ye({
1157
1146
  "read-only"
1158
1147
  ]));
1159
1148
  }
1160
- }), Rn = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, zn = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Bn = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Vn = ["title", "onClick"], Hn = {
1149
+ }), Bn = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Vn = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Hn = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Un = ["title", "onClick"], Wn = {
1161
1150
  key: 1,
1162
1151
  class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1163
- }, Un = {
1152
+ }, Gn = {
1164
1153
  key: 2,
1165
1154
  class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1166
- }, Wn = /* @__PURE__ */ w({
1155
+ }, Kn = /* @__PURE__ */ w({
1167
1156
  __name: "RepeatableField",
1168
1157
  props: {
1169
1158
  field: {},
@@ -1172,7 +1161,7 @@ var Ue = ye({
1172
1161
  },
1173
1162
  emits: ["update:modelValue"],
1174
1163
  setup(e, { emit: n }) {
1175
- let o = e, s = n, { t: c, format: l } = R(), u = S(() => o.modelValue || []), d = S(() => !o.field.maxItems || u.value.length < o.field.maxItems), f = S(() => !o.field.minItems || u.value.length > o.field.minItems);
1164
+ let o = e, s = n, { t: c, format: l } = I(), u = S(() => o.modelValue || []), d = S(() => !o.field.maxItems || u.value.length < o.field.maxItems), f = S(() => !o.field.minItems || u.value.length > o.field.minItems);
1176
1165
  function w() {
1177
1166
  if (!d.value || o.readOnly) return;
1178
1167
  let e = {};
@@ -1196,11 +1185,11 @@ var Ue = ye({
1196
1185
  required: e.field.required,
1197
1186
  "read-only": e.readOnly
1198
1187
  }, {
1199
- default: r(() => [m("div", Rn, [
1188
+ default: r(() => [m("div", Bn, [
1200
1189
  (t(!0), h(x, null, a(u.value, (n, r) => (t(), h("div", {
1201
1190
  key: `${e.field.key}-${r}`,
1202
1191
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
1203
- }, [m("div", zn, [m("span", Bn, " #" + v(r + 1), 1), f.value && !e.readOnly ? (t(), h("button", {
1192
+ }, [m("div", Vn, [m("span", Hn, " #" + v(r + 1), 1), f.value && !e.readOnly ? (t(), h("button", {
1204
1193
  key: 0,
1205
1194
  type: "button",
1206
1195
  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)]",
@@ -1209,7 +1198,7 @@ var Ue = ye({
1209
1198
  }, [g(p(Me), {
1210
1199
  size: 12,
1211
1200
  "stroke-width": 2
1212
- })], 8, Vn)) : C("", !0)]), (t(!0), h(x, null, a(e.field.fields, (a) => (t(), b(i(p($n)(a.type)), {
1201
+ })], 8, Un)) : C("", !0)]), (t(!0), h(x, null, a(e.field.fields, (a) => (t(), b(i(p(tr)(a.type)), {
1213
1202
  key: a.key,
1214
1203
  field: a,
1215
1204
  "model-value": n[a.key],
@@ -1226,12 +1215,12 @@ var Ue = ye({
1226
1215
  type: "button",
1227
1216
  class: y(p(ze)),
1228
1217
  onClick: w
1229
- }, [g(p(V), {
1218
+ }, [g(p(z), {
1230
1219
  size: 14,
1231
1220
  "stroke-width": 2
1232
1221
  }), _(" " + v(p(c).customBlocks.fields.addItem), 1)], 2)) : C("", !0),
1233
- !d.value && !e.readOnly ? (t(), h("p", Hn, v(p(c).customBlocks.fields.maxItemsReached), 1)) : C("", !0),
1234
- !f.value && !e.readOnly ? (t(), h("p", Un, v(p(l)(p(c).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : C("", !0)
1222
+ !d.value && !e.readOnly ? (t(), h("p", Wn, v(p(c).customBlocks.fields.maxItemsReached), 1)) : C("", !0),
1223
+ !f.value && !e.readOnly ? (t(), h("p", Gn, v(p(l)(p(c).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : C("", !0)
1235
1224
  ])]),
1236
1225
  _: 1
1237
1226
  }, 8, [
@@ -1240,11 +1229,11 @@ var Ue = ye({
1240
1229
  "read-only"
1241
1230
  ]));
1242
1231
  }
1243
- }), Gn = [
1232
+ }), qn = [
1244
1233
  "value",
1245
1234
  "disabled",
1246
1235
  "title"
1247
- ], Kn = ["value"], qn = /* @__PURE__ */ w({
1236
+ ], Jn = ["value"], Yn = /* @__PURE__ */ w({
1248
1237
  __name: "SelectField",
1249
1238
  props: {
1250
1239
  field: {},
@@ -1253,7 +1242,7 @@ var Ue = ye({
1253
1242
  },
1254
1243
  emits: ["update:modelValue"],
1255
1244
  setup(e, { emit: n }) {
1256
- let i = n, { t: o } = R();
1245
+ let i = n, { t: o } = I();
1257
1246
  return (n, s) => (t(), b(Q, {
1258
1247
  label: e.field.label,
1259
1248
  required: e.field.required,
@@ -1268,7 +1257,7 @@ var Ue = ye({
1268
1257
  }, [(t(!0), h(x, null, a(e.field.options, (e) => (t(), h("option", {
1269
1258
  key: e.value,
1270
1259
  value: e.value
1271
- }, v(e.label), 9, Kn))), 128))], 42, Gn)]),
1260
+ }, v(e.label), 9, Jn))), 128))], 42, qn)]),
1272
1261
  _: 1
1273
1262
  }, 8, [
1274
1263
  "label",
@@ -1276,11 +1265,11 @@ var Ue = ye({
1276
1265
  "read-only"
1277
1266
  ]));
1278
1267
  }
1279
- }), Jn = [
1268
+ }), Xn = [
1280
1269
  "value",
1281
1270
  "placeholder",
1282
1271
  "title"
1283
- ], Yn = /* @__PURE__ */ w({
1272
+ ], Zn = /* @__PURE__ */ w({
1284
1273
  __name: "TextField",
1285
1274
  props: {
1286
1275
  field: {},
@@ -1289,7 +1278,7 @@ var Ue = ye({
1289
1278
  },
1290
1279
  emits: ["update:modelValue"],
1291
1280
  setup(e, { emit: n }) {
1292
- let i = n, { t: a } = R();
1281
+ let i = n, { t: a } = I();
1293
1282
  return (n, o) => (t(), b(Q, {
1294
1283
  label: e.field.label,
1295
1284
  required: e.field.required,
@@ -1303,7 +1292,7 @@ var Ue = ye({
1303
1292
  placeholder: e.field.placeholder,
1304
1293
  disabled: "",
1305
1294
  title: p(a).customBlocks.dataSource.readOnlyTooltip
1306
- }, null, 10, Jn)) : (t(), b(J, {
1295
+ }, null, 10, Xn)) : (t(), b(J, {
1307
1296
  key: 1,
1308
1297
  "model-value": e.modelValue,
1309
1298
  placeholder: e.field.placeholder,
@@ -1316,12 +1305,12 @@ var Ue = ye({
1316
1305
  "read-only"
1317
1306
  ]));
1318
1307
  }
1319
- }), Xn = [
1308
+ }), Qn = [
1320
1309
  "value",
1321
1310
  "placeholder",
1322
1311
  "title"
1323
- ], Zn = "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", Qn = {
1324
- text: Yn,
1312
+ ], $n = "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", er = {
1313
+ text: Zn,
1325
1314
  textarea: /* @__PURE__ */ w({
1326
1315
  __name: "TextareaField",
1327
1316
  props: {
@@ -1331,7 +1320,7 @@ var Ue = ye({
1331
1320
  },
1332
1321
  emits: ["update:modelValue"],
1333
1322
  setup(e, { emit: n }) {
1334
- let i = n, { t: a } = R();
1323
+ let i = n, { t: a } = I();
1335
1324
  return (n, o) => (t(), b(Q, {
1336
1325
  label: e.field.label,
1337
1326
  required: e.field.required,
@@ -1344,8 +1333,8 @@ var Ue = ye({
1344
1333
  rows: "3",
1345
1334
  disabled: "",
1346
1335
  title: p(a).customBlocks.dataSource.readOnlyTooltip,
1347
- class: y(Zn)
1348
- }, null, 8, Xn)) : (t(), b(He, {
1336
+ class: y($n)
1337
+ }, null, 8, Qn)) : (t(), b(He, {
1349
1338
  key: 1,
1350
1339
  "model-value": e.modelValue,
1351
1340
  placeholder: e.field.placeholder,
@@ -1359,42 +1348,42 @@ var Ue = ye({
1359
1348
  ]));
1360
1349
  }
1361
1350
  }),
1362
- image: Fn,
1363
- color: jn,
1364
- number: Ln,
1365
- select: qn,
1366
- boolean: Tn,
1367
- repeatable: Wn
1351
+ image: Ln,
1352
+ color: Nn,
1353
+ number: zn,
1354
+ select: Yn,
1355
+ boolean: Dn,
1356
+ repeatable: Kn
1368
1357
  };
1369
- function $n(e) {
1370
- return Qn[e] ?? Yn;
1358
+ function tr(e) {
1359
+ return er[e] ?? Zn;
1371
1360
  }
1372
1361
  //#endregion
1373
1362
  //#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
1374
- var er = {
1363
+ var nr = {
1375
1364
  key: 0,
1376
1365
  class: "tpl:p-4"
1377
- }, tr = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, nr = { key: 1 }, rr = {
1366
+ }, rr = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ir = { key: 1 }, ar = {
1378
1367
  key: 0,
1379
1368
  class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1380
- }, ir = {
1369
+ }, or = {
1381
1370
  key: 1,
1382
1371
  class: "tpl:mb-4"
1383
- }, ar = {
1372
+ }, sr = {
1384
1373
  key: 1,
1385
1374
  class: "tpl:flex tpl:h-[32px] tpl:items-center"
1386
- }, or = {
1375
+ }, cr = {
1387
1376
  key: 0,
1388
1377
  class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
1389
- }, sr = {
1378
+ }, lr = {
1390
1379
  key: 2,
1391
1380
  class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
1392
- }, cr = /* @__PURE__ */ w({
1381
+ }, ur = /* @__PURE__ */ w({
1393
1382
  __name: "CustomBlockToolbar",
1394
1383
  props: { block: {} },
1395
1384
  emits: ["updateFieldValues", "updateDataSourceFetched"],
1396
1385
  setup(e, { emit: n }) {
1397
- let r = e, o = n, { t: s } = R(), l = c(ge, []), u = S(() => l.find((e) => e.type === r.block.customType)), d = S(() => r.block), { isFetching: f, fetchError: y, fetch: w, hasDataSource: T, needsFetch: E } = oe({
1386
+ let r = e, o = n, { t: s } = I(), l = c(ve, []), u = S(() => l.find((e) => e.type === r.block.customType)), d = S(() => r.block), { isFetching: f, fetchError: y, fetch: w, hasDataSource: T, needsFetch: E } = ce({
1398
1387
  definition: u,
1399
1388
  block: d,
1400
1389
  onUpdate: (e, t) => {
@@ -1410,23 +1399,23 @@ var er = {
1410
1399
  [e]: t
1411
1400
  });
1412
1401
  }
1413
- return (n, r) => u.value ? (t(), h("div", nr, [
1414
- u.value.description ? (t(), h("p", rr, v(u.value.description), 1)) : C("", !0),
1415
- p(T) ? (t(), h("div", ir, [p(E) && !p(f) ? (t(), h("button", {
1402
+ return (n, r) => u.value ? (t(), h("div", ir, [
1403
+ u.value.description ? (t(), h("p", ar, v(u.value.description), 1)) : C("", !0),
1404
+ p(T) ? (t(), h("div", or, [p(E) && !p(f) ? (t(), h("button", {
1416
1405
  key: 0,
1417
1406
  type: "button",
1418
1407
  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)]",
1419
1408
  onClick: r[0] ||= (...e) => p(w) && p(w)(...e)
1420
- }, v(u.value?.dataSource?.label || p(s).customBlocks.dataSource.fetchButton), 1)) : (t(), h("div", ar, [p(f) ? (t(), h("div", or, v(p(s).customBlocks.dataSource.fetching), 1)) : (t(), h("button", {
1409
+ }, v(u.value?.dataSource?.label || p(s).customBlocks.dataSource.fetchButton), 1)) : (t(), h("div", sr, [p(f) ? (t(), h("div", cr, v(p(s).customBlocks.dataSource.fetching), 1)) : (t(), h("button", {
1421
1410
  key: 1,
1422
1411
  type: "button",
1423
1412
  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)]",
1424
1413
  onClick: r[1] ||= (...e) => p(w) && p(w)(...e)
1425
- }, [g(p(ke), { size: 12 }), _(" " + v(p(s).customBlocks.dataSource.changeButton), 1)]))])), p(y) ? (t(), h("p", sr, [g(p(xe), {
1414
+ }, [g(p(je), { size: 12 }), _(" " + v(p(s).customBlocks.dataSource.changeButton), 1)]))])), p(y) ? (t(), h("p", lr, [g(p(Ce), {
1426
1415
  size: 14,
1427
1416
  class: "tpl:shrink-0"
1428
1417
  }), _(" " + v(p(s).customBlocks.dataSource.fetchError), 1)])) : C("", !0)])) : C("", !0),
1429
- (t(!0), h(x, null, a(u.value.fields, (n) => (t(), b(i(p($n)(n.type)), {
1418
+ (t(!0), h(x, null, a(u.value.fields, (n) => (t(), b(i(p(tr)(n.type)), {
1430
1419
  key: n.key,
1431
1420
  field: n,
1432
1421
  "model-value": e.block.fieldValues[n.key],
@@ -1438,19 +1427,19 @@ var er = {
1438
1427
  "read-only",
1439
1428
  "onUpdate:modelValue"
1440
1429
  ]))), 128))
1441
- ])) : (t(), h("div", er, [m("p", tr, v(p(s).customBlocks.toolbar.noDefinition), 1)]));
1430
+ ])) : (t(), h("div", nr, [m("p", rr, v(p(s).customBlocks.toolbar.noDefinition), 1)]));
1442
1431
  }
1443
- }), lr = { class: "tpl:mb-3.5" }, ur = { class: "tpl:mb-3.5" }, dr = { class: "tpl:mb-3.5" }, fr = { class: "tpl:flex tpl:items-stretch" }, pr = ["value"], mr = /* @__PURE__ */ w({
1432
+ }), dr = { class: "tpl:mb-3.5" }, fr = { class: "tpl:mb-3.5" }, pr = { class: "tpl:mb-3.5" }, mr = { class: "tpl:flex tpl:items-stretch" }, hr = ["value"], gr = /* @__PURE__ */ w({
1444
1433
  __name: "DividerToolbar",
1445
1434
  props: { block: {} },
1446
1435
  emits: ["update"],
1447
1436
  setup(e, { emit: n }) {
1448
- let r = n, { t: i } = R();
1437
+ let r = n, { t: i } = I();
1449
1438
  function a(e, t) {
1450
1439
  r("update", { [e]: t });
1451
1440
  }
1452
1441
  return (n, r) => (t(), h(x, null, [
1453
- m("div", lr, [m("label", { class: y(p(U)) }, v(p(i).divider.style), 3), g(Y, {
1442
+ m("div", dr, [m("label", { class: y(p(U)) }, v(p(i).divider.style), 3), g(Y, {
1454
1443
  options: [
1455
1444
  {
1456
1445
  value: "solid",
@@ -1468,27 +1457,27 @@ var er = {
1468
1457
  "model-value": e.block.lineStyle,
1469
1458
  "onUpdate:modelValue": r[0] ||= (e) => a("lineStyle", e)
1470
1459
  }, null, 8, ["options", "model-value"])]),
1471
- m("div", ur, [m("label", { class: y(p(U)) }, v(p(i).divider.color), 3), g(z, {
1460
+ m("div", fr, [m("label", { class: y(p(U)) }, v(p(i).divider.color), 3), g(L, {
1472
1461
  "model-value": e.block.color,
1473
1462
  "onUpdate:modelValue": r[1] ||= (e) => a("color", e)
1474
1463
  }, null, 8, ["model-value"])]),
1475
- m("div", dr, [m("label", { class: y(p(U)) }, v(p(i).divider.thickness), 3), m("div", fr, [m("input", {
1464
+ m("div", pr, [m("label", { class: y(p(U)) }, v(p(i).divider.thickness), 3), m("div", mr, [m("input", {
1476
1465
  type: "number",
1477
1466
  class: y(p(G)),
1478
1467
  value: e.block.thickness,
1479
1468
  min: "1",
1480
1469
  max: "10",
1481
1470
  onInput: r[2] ||= (e) => a("thickness", Number(e.target.value))
1482
- }, null, 42, pr), m("span", { class: y(p(W)) }, "px", 2)])])
1471
+ }, null, 42, hr), m("span", { class: y(p(W)) }, "px", 2)])])
1483
1472
  ], 64));
1484
1473
  }
1485
- }), hr = { class: "tpl:mb-3.5" }, gr = ["value"], _r = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, vr = /* @__PURE__ */ w({
1474
+ }), _r = { class: "tpl:mb-3.5" }, vr = ["value"], yr = { 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__ */ w({
1486
1475
  __name: "HtmlToolbar",
1487
1476
  props: { block: {} },
1488
1477
  emits: ["update"],
1489
1478
  setup(e, { emit: n }) {
1490
- let r = n, { t: i } = R();
1491
- return (n, a) => (t(), h("div", hr, [
1479
+ let r = n, { t: i } = I();
1480
+ return (n, a) => (t(), h("div", _r, [
1492
1481
  m("label", { class: y(p(U)) }, v(p(i).html.content), 3),
1493
1482
  m("textarea", {
1494
1483
  value: e.block.content,
@@ -1496,36 +1485,36 @@ var er = {
1496
1485
  rows: "10",
1497
1486
  class: y(p(Le)),
1498
1487
  onInput: a[0] ||= (e) => r("update", { content: e.target.value })
1499
- }, null, 42, gr),
1500
- m("p", _r, [g(p(we), {
1488
+ }, null, 42, vr),
1489
+ m("p", yr, [g(p(Ee), {
1501
1490
  size: 12,
1502
1491
  class: "tpl:mt-0.5 tpl:shrink-0"
1503
1492
  }), _(" " + v(p(i).html.sanitizationHint), 1)])
1504
1493
  ]));
1505
1494
  }
1506
- }), yr = { class: "tpl:mb-3.5" }, br = {
1495
+ }), xr = { class: "tpl:mb-3.5" }, Sr = {
1507
1496
  key: 0,
1508
1497
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
1509
1498
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
1510
- }, xr = {
1499
+ }, Cr = {
1511
1500
  key: 0,
1512
1501
  class: "tpl:mb-3.5"
1513
- }, Sr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Cr = [
1502
+ }, wr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Tr = [
1514
1503
  "value",
1515
1504
  "placeholder",
1516
1505
  "title"
1517
- ], wr = { class: "tpl:mb-3.5" }, Tr = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Er = { class: "tpl:mb-3.5" }, Dr = ["value"], Or = { value: "full" }, kr = { value: "custom" }, Ar = {
1506
+ ], Er = { class: "tpl:mb-3.5" }, Dr = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Or = { class: "tpl:mb-3.5" }, kr = ["value"], Ar = { value: "full" }, jr = { value: "custom" }, Mr = {
1518
1507
  key: 0,
1519
1508
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
1520
- }, jr = ["value"], Mr = { class: "tpl:mb-3.5" }, Nr = ["value"], Pr = { value: "auto" }, Fr = { value: "custom" }, Ir = {
1509
+ }, Nr = ["value"], Pr = { class: "tpl:mb-3.5" }, Fr = ["value"], Ir = { value: "auto" }, Lr = { value: "custom" }, Rr = {
1521
1510
  key: 0,
1522
1511
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
1523
- }, Lr = ["value"], Rr = { class: "tpl:mb-3.5" }, zr = { class: "tpl:mb-3.5" }, Br = 350, Vr = 200, Hr = /* @__PURE__ */ w({
1512
+ }, zr = ["value"], Br = { class: "tpl:mb-3.5" }, Vr = { class: "tpl:mb-3.5" }, Hr = 350, Ur = 200, Wr = /* @__PURE__ */ w({
1524
1513
  __name: "ImageToolbar",
1525
1514
  props: { block: {} },
1526
1515
  emits: ["update"],
1527
1516
  setup(e, { emit: n }) {
1528
- let i = e, a = n, { t: o } = R(), s = c(ue, null), l = c(fe, null), u = c(de, j.liquid), f = Ie(), w = S(() => !!s), T = d(!1), E = d(!1), { start: D } = se(() => {
1517
+ let i = e, a = n, { t: o } = I(), s = c(fe, null), l = c(me, null), u = c(pe, A.liquid), f = Ie(), w = S(() => !!s), T = d(!1), E = d(!1), { start: D } = le(() => {
1529
1518
  T.value = !1;
1530
1519
  }, 1e3, { immediate: !1 }), O = [
1531
1520
  300,
@@ -1534,64 +1523,62 @@ var er = {
1534
1523
  ], k = S(() => {
1535
1524
  let e = i.block.width;
1536
1525
  return e === "full" ? "full" : O.includes(e) ? String(e) : "custom";
1537
- }), A = S(() => typeof i.block.height == "number" ? "custom" : "auto");
1538
- function N(e, t) {
1526
+ }), j = S(() => typeof i.block.height == "number" ? "custom" : "auto");
1527
+ function M(e, t) {
1539
1528
  a("update", { [e]: t });
1540
1529
  }
1541
- function P(e) {
1530
+ function te(e) {
1542
1531
  if (e === "custom") {
1543
1532
  let e = i.block.width;
1544
- (typeof e != "number" || O.includes(e)) && N("width", Br);
1545
- return;
1546
- }
1547
- N("width", e === "full" ? "full" : Number(e));
1533
+ (typeof e != "number" || O.includes(e)) && M("width", Hr);
1534
+ } else M("width", e === "full" ? "full" : Number(e));
1548
1535
  }
1549
- function te(e) {
1550
- N("height", e === "custom" ? Vr : void 0);
1536
+ function ne(e) {
1537
+ M("height", e === "custom" ? Ur : void 0);
1551
1538
  }
1552
- function re(e) {
1539
+ function ie(e) {
1553
1540
  let t = Number(e);
1554
- !Number.isFinite(t) || t <= 0 || N("height", t);
1541
+ !Number.isFinite(t) || t <= 0 || M("height", t);
1555
1542
  }
1556
- function I(e) {
1557
- N("borderRadius", ee(e) === null ? void 0 : e);
1543
+ function P(e) {
1544
+ M("borderRadius", N(e) === null ? void 0 : e);
1558
1545
  }
1559
- function ie(e) {
1546
+ function oe(e) {
1560
1547
  let t = Number(e);
1561
- !Number.isFinite(t) || t <= 0 || N("width", t);
1548
+ !Number.isFinite(t) || t <= 0 || M("width", t);
1562
1549
  }
1563
- async function ae() {
1550
+ async function se() {
1564
1551
  let e = await s?.({ accept: ["images"] });
1565
- f.alive && e && (N("src", e.url), e.alt && (N("alt", e.alt), E.value = !0), T.value = !0, D());
1552
+ f.alive && e && (M("src", e.url), e.alt && (M("alt", e.alt), E.value = !0), T.value = !0, D());
1566
1553
  }
1567
- let oe = d(), L = d(!1), ce = S(() => M(i.block.src, u)), le = S(() => (l?.value ?? !!s) && !L.value && !ce.value);
1568
- async function pe(e) {
1554
+ let ce = d(), F = d(!1), ue = S(() => ee(i.block.src, u)), de = S(() => (l?.value ?? !!s) && !F.value && !ue.value);
1555
+ async function he(e) {
1569
1556
  if (s) {
1570
- L.value = !0;
1557
+ F.value = !0;
1571
1558
  try {
1572
1559
  let t = await s({
1573
1560
  accept: ["images"],
1574
1561
  files: e
1575
1562
  });
1576
1563
  if (!f.alive) return;
1577
- t && (N("src", t.url), t.alt && (N("alt", t.alt), E.value = !0), T.value = !0, D());
1564
+ t && (M("src", t.url), t.alt && (M("alt", t.alt), E.value = !0), T.value = !0, D());
1578
1565
  } finally {
1579
- f.alive && (L.value = !1);
1566
+ f.alive && (F.value = !1);
1580
1567
  }
1581
1568
  }
1582
1569
  }
1583
- let { isOver: me } = F({
1584
- target: oe,
1585
- enabled: le,
1586
- onFiles: pe
1570
+ let { isOver: ge } = ae({
1571
+ target: ce,
1572
+ enabled: de,
1573
+ onFiles: he
1587
1574
  });
1588
1575
  return (n, i) => (t(), h(x, null, [
1589
- m("div", yr, [m("label", { class: y(p(U)) }, v(p(o).image.imageUrl), 3), m("div", {
1576
+ m("div", xr, [m("label", { class: y(p(U)) }, v(p(o).image.imageUrl), 3), m("div", {
1590
1577
  ref_key: "dropZoneRef",
1591
- ref: oe,
1578
+ ref: ce,
1592
1579
  class: "tpl:relative"
1593
1580
  }, [
1594
- le.value && (p(me) || L.value) ? (t(), h("div", br, [L.value ? (t(), h(x, { key: 0 }, [g(p(Ee), {
1581
+ de.value && (p(ge) || F.value) ? (t(), h("div", Sr, [F.value ? (t(), h(x, { key: 0 }, [g(p(Oe), {
1595
1582
  class: "tpl-spinner",
1596
1583
  size: 18,
1597
1584
  "stroke-width": 2
@@ -1604,7 +1591,7 @@ var er = {
1604
1591
  type: "url",
1605
1592
  placeholder: p(o).image.imageUrlPlaceholder,
1606
1593
  pulse: T.value,
1607
- "onUpdate:modelValue": i[0] ||= (e) => N("src", e)
1594
+ "onUpdate:modelValue": i[0] ||= (e) => M("src", e)
1608
1595
  }, null, 8, [
1609
1596
  "model-value",
1610
1597
  "placeholder",
@@ -1618,21 +1605,21 @@ var er = {
1618
1605
  color: "var(--tpl-primary)",
1619
1606
  "background-color": "var(--tpl-bg)"
1620
1607
  },
1621
- onClick: ae
1622
- }, [g(p(ne), {
1608
+ onClick: se
1609
+ }, [g(p(re), {
1623
1610
  size: 14,
1624
1611
  "stroke-width": 1.5
1625
1612
  }), _(" " + v(p(o).image.browseMedia), 1)])) : C("", !0)
1626
1613
  ], 512)]),
1627
- p(M)(e.block.src, p(u)) ? (t(), h("div", xr, [m("label", { class: y(p(U)) }, [_(v(p(o).image.placeholderUrl) + " ", 1), m("span", Sr, v(p(o).image.optional), 1)], 2), m("input", {
1614
+ p(ee)(e.block.src, p(u)) ? (t(), h("div", Cr, [m("label", { class: y(p(U)) }, [_(v(p(o).image.placeholderUrl) + " ", 1), m("span", wr, v(p(o).image.optional), 1)], 2), m("input", {
1628
1615
  type: "url",
1629
1616
  class: y(p(K)),
1630
1617
  value: e.block.placeholderUrl || "",
1631
1618
  placeholder: p(o).image.placeholderUrlPlaceholder,
1632
1619
  title: p(o).image.placeholderUrlTooltip,
1633
- onInput: i[1] ||= (e) => N("placeholderUrl", e.target.value)
1634
- }, null, 42, Cr)])) : C("", !0),
1635
- m("div", wr, [
1620
+ onInput: i[1] ||= (e) => M("placeholderUrl", e.target.value)
1621
+ }, null, 42, Tr)])) : C("", !0),
1622
+ m("div", Er, [
1636
1623
  m("label", { class: y(p(U)) }, v(p(o).image.altText), 3),
1637
1624
  g(J, {
1638
1625
  "model-value": e.block.alt,
@@ -1640,7 +1627,7 @@ var er = {
1640
1627
  placeholder: p(o).image.altTextPlaceholder,
1641
1628
  pulse: E.value,
1642
1629
  disabled: e.block.decorative === !0,
1643
- "onUpdate:modelValue": i[2] ||= (e) => N("alt", e)
1630
+ "onUpdate:modelValue": i[2] ||= (e) => M("alt", e)
1644
1631
  }, null, 8, [
1645
1632
  "model-value",
1646
1633
  "placeholder",
@@ -1651,62 +1638,62 @@ var er = {
1651
1638
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
1652
1639
  "model-value": e.block.decorative === !0,
1653
1640
  label: p(o).image.decorative,
1654
- "onUpdate:modelValue": i[3] ||= (e) => N("decorative", e)
1641
+ "onUpdate:modelValue": i[3] ||= (e) => M("decorative", e)
1655
1642
  }, {
1656
- default: r(() => [m("span", null, [_(v(p(o).image.decorative) + " ", 1), m("span", Tr, v(p(o).image.decorativeHint), 1)])]),
1643
+ default: r(() => [m("span", null, [_(v(p(o).image.decorative) + " ", 1), m("span", Dr, v(p(o).image.decorativeHint), 1)])]),
1657
1644
  _: 1
1658
1645
  }, 8, ["model-value", "label"])
1659
1646
  ]),
1660
- m("div", Er, [
1647
+ m("div", Or, [
1661
1648
  m("label", { class: y(p(U)) }, v(p(o).image.width), 3),
1662
1649
  m("select", {
1663
1650
  class: y(p(K)),
1664
1651
  value: k.value,
1665
- onChange: i[4] ||= (e) => P(e.target.value)
1652
+ onChange: i[4] ||= (e) => te(e.target.value)
1666
1653
  }, [
1667
- m("option", Or, v(p(o).image.fullWidth), 1),
1654
+ m("option", Ar, v(p(o).image.fullWidth), 1),
1668
1655
  i[12] ||= m("option", { value: "300" }, "300px", -1),
1669
1656
  i[13] ||= m("option", { value: "400" }, "400px", -1),
1670
1657
  i[14] ||= m("option", { value: "500" }, "500px", -1),
1671
- m("option", kr, v(p(o).image.widthCustom), 1)
1672
- ], 42, Dr),
1673
- k.value === "custom" ? (t(), h("div", Ar, [m("input", {
1658
+ m("option", jr, v(p(o).image.widthCustom), 1)
1659
+ ], 42, kr),
1660
+ k.value === "custom" ? (t(), h("div", Mr, [m("input", {
1674
1661
  type: "number",
1675
1662
  class: y(p(G)),
1676
- value: typeof e.block.width == "number" ? e.block.width : Br,
1663
+ value: typeof e.block.width == "number" ? e.block.width : Hr,
1677
1664
  min: "20",
1678
- onInput: i[5] ||= (e) => ie(e.target.value)
1679
- }, null, 42, jr), m("span", { class: y(p(W)) }, "px", 2)])) : C("", !0)
1665
+ onInput: i[5] ||= (e) => oe(e.target.value)
1666
+ }, null, 42, Nr), m("span", { class: y(p(W)) }, "px", 2)])) : C("", !0)
1680
1667
  ]),
1681
- m("div", Mr, [
1668
+ m("div", Pr, [
1682
1669
  m("label", { class: y(p(U)) }, v(p(o).image.height), 3),
1683
1670
  m("select", {
1684
1671
  class: y(p(K)),
1685
1672
  "data-testid": "image-height-mode",
1686
- value: A.value,
1687
- onChange: i[6] ||= (e) => te(e.target.value)
1688
- }, [m("option", Pr, v(p(o).image.heightAuto), 1), m("option", Fr, v(p(o).image.heightCustom), 1)], 42, Nr),
1689
- A.value === "custom" ? (t(), h("div", Ir, [m("input", {
1673
+ value: j.value,
1674
+ onChange: i[6] ||= (e) => ne(e.target.value)
1675
+ }, [m("option", Ir, v(p(o).image.heightAuto), 1), m("option", Lr, v(p(o).image.heightCustom), 1)], 42, Fr),
1676
+ j.value === "custom" ? (t(), h("div", Rr, [m("input", {
1690
1677
  type: "number",
1691
1678
  "data-testid": "image-height-input",
1692
1679
  class: y(p(G)),
1693
1680
  value: e.block.height,
1694
1681
  min: "20",
1695
- onInput: i[7] ||= (e) => re(e.target.value)
1696
- }, null, 42, Lr), m("span", { class: y(p(W)) }, "px", 2)])) : C("", !0)
1682
+ onInput: i[7] ||= (e) => ie(e.target.value)
1683
+ }, null, 42, zr), m("span", { class: y(p(W)) }, "px", 2)])) : C("", !0)
1697
1684
  ]),
1698
- g(ut, {
1685
+ g(ft, {
1699
1686
  "model-value": e.block.borderRadius,
1700
1687
  label: p(o).image.borderRadius,
1701
1688
  "testid-prefix": "image",
1702
- "onUpdate:modelValue": I
1689
+ "onUpdate:modelValue": P
1703
1690
  }, null, 8, ["model-value", "label"]),
1704
- g(it, {
1691
+ g(ot, {
1705
1692
  "model-value": e.block.border,
1706
1693
  "testid-prefix": "image",
1707
- "onUpdate:modelValue": i[8] ||= (e) => N("border", e)
1694
+ "onUpdate:modelValue": i[8] ||= (e) => M("border", e)
1708
1695
  }, null, 8, ["model-value"]),
1709
- m("div", Rr, [m("label", { class: y(p(U)) }, v(p(o).title.align), 3), g(Y, {
1696
+ m("div", Br, [m("label", { class: y(p(U)) }, v(p(o).title.align), 3), g(Y, {
1710
1697
  options: [
1711
1698
  {
1712
1699
  value: "left",
@@ -1722,40 +1709,40 @@ var er = {
1722
1709
  }
1723
1710
  ],
1724
1711
  "model-value": e.block.align,
1725
- "onUpdate:modelValue": i[9] ||= (e) => N("align", e)
1712
+ "onUpdate:modelValue": i[9] ||= (e) => M("align", e)
1726
1713
  }, null, 8, ["options", "model-value"])]),
1727
- m("div", zr, [
1714
+ m("div", Vr, [
1728
1715
  m("label", { class: y(p(U)) }, v(p(o).image.linkUrl), 3),
1729
1716
  g(J, {
1730
1717
  "model-value": e.block.linkUrl || "",
1731
1718
  type: "url",
1732
1719
  placeholder: p(o).image.imageUrlPlaceholder,
1733
- "onUpdate:modelValue": i[10] ||= (e) => N("linkUrl", e)
1720
+ "onUpdate:modelValue": i[10] ||= (e) => M("linkUrl", e)
1734
1721
  }, null, 8, ["model-value", "placeholder"]),
1735
1722
  e.block.linkUrl ? (t(), b(q, {
1736
1723
  key: 0,
1737
1724
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
1738
1725
  "model-value": e.block.linkOpenInNewTab ?? !1,
1739
1726
  label: p(o).image.openInNewTab,
1740
- "onUpdate:modelValue": i[11] ||= (e) => N("linkOpenInNewTab", e)
1727
+ "onUpdate:modelValue": i[11] ||= (e) => M("linkOpenInNewTab", e)
1741
1728
  }, null, 8, ["model-value", "label"])) : C("", !0)
1742
1729
  ])
1743
1730
  ], 64));
1744
1731
  }
1745
- }), Ur = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ w({
1732
+ }), Gr = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ w({
1746
1733
  __name: "FieldRow",
1747
1734
  props: { label: {} },
1748
1735
  setup(e) {
1749
- return (n, r) => (t(), h("div", Ur, [e.label ? (t(), h("label", {
1736
+ return (n, r) => (t(), h("div", Gr, [e.label ? (t(), h("label", {
1750
1737
  key: 0,
1751
1738
  class: y(p(U))
1752
1739
  }, v(e.label), 3)) : C("", !0), o(n.$slots, "default")]));
1753
1740
  }
1754
- }), Wr = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Gr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Kr = [
1741
+ }), Kr = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, qr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Jr = [
1755
1742
  "value",
1756
1743
  "placeholder",
1757
1744
  "onInput"
1758
- ], qr = ["title", "onClick"], Jr = { 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)]" }, Yr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Xr = ["value"], Zr = { value: "" }, Qr = ["value"], $r = ["value"], ei = /* @__PURE__ */ w({
1745
+ ], Yr = ["title", "onClick"], Xr = { 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)]" }, Zr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Qr = ["value"], $r = { value: "" }, ei = ["value"], ti = ["value"], ni = /* @__PURE__ */ w({
1759
1746
  __name: "MenuToolbar",
1760
1747
  props: {
1761
1748
  block: {},
@@ -1763,7 +1750,7 @@ var er = {
1763
1750
  },
1764
1751
  emits: ["update"],
1765
1752
  setup(e, { emit: n }) {
1766
- let i = e, o = n, { t: s } = R(), c = S(() => [
1753
+ let i = e, o = n, { t: s } = I(), c = S(() => [
1767
1754
  {
1768
1755
  key: "openInNewTab",
1769
1756
  label: s.menu.openInNewTab
@@ -1780,17 +1767,17 @@ var er = {
1780
1767
  {
1781
1768
  value: "left",
1782
1769
  label: s.title.alignLeft,
1783
- icon: je
1770
+ icon: H
1784
1771
  },
1785
1772
  {
1786
1773
  value: "center",
1787
1774
  label: s.title.alignCenter,
1788
- icon: H
1775
+ icon: V
1789
1776
  },
1790
1777
  {
1791
1778
  value: "right",
1792
1779
  label: s.title.alignRight,
1793
- icon: Ae
1780
+ icon: B
1794
1781
  }
1795
1782
  ]);
1796
1783
  function u(e, t) {
@@ -1819,24 +1806,24 @@ var er = {
1819
1806
  }
1820
1807
  return (n, i) => (t(), h(x, null, [
1821
1808
  g($, { label: p(s).menu.items }, {
1822
- default: r(() => [m("div", Wr, [(t(!0), h(x, null, a(e.block.items, (n) => (t(), h("div", {
1809
+ default: r(() => [m("div", Kr, [(t(!0), h(x, null, a(e.block.items, (n) => (t(), h("div", {
1823
1810
  key: n.id,
1824
1811
  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"
1825
1812
  }, [
1826
- m("div", Gr, [m("input", {
1813
+ m("div", qr, [m("input", {
1827
1814
  type: "text",
1828
1815
  class: y([p(K), "tpl:flex-1"]),
1829
1816
  value: n.text,
1830
1817
  placeholder: p(s).menu.text,
1831
1818
  onInput: (e) => f(n.id, "text", e.target.value)
1832
- }, null, 42, Kr), m("button", {
1819
+ }, null, 42, Jr), m("button", {
1833
1820
  class: y(p(Re)),
1834
1821
  title: p(s).menu.removeItem,
1835
1822
  onClick: (e) => C(n.id)
1836
1823
  }, [g(p(Pe), {
1837
1824
  size: 14,
1838
1825
  "stroke-width": 2
1839
- })], 10, qr)]),
1826
+ })], 10, Yr)]),
1840
1827
  g(J, {
1841
1828
  "model-value": n.url,
1842
1829
  type: "url",
@@ -1847,7 +1834,7 @@ var er = {
1847
1834
  "placeholder",
1848
1835
  "onUpdate:modelValue"
1849
1836
  ]),
1850
- m("div", Jr, [(t(!0), h(x, null, a(c.value, (e) => (t(), b(q, {
1837
+ m("div", Xr, [(t(!0), h(x, null, a(c.value, (e) => (t(), b(q, {
1851
1838
  key: e.key,
1852
1839
  "model-value": n[e.key],
1853
1840
  label: e.label,
@@ -1857,7 +1844,7 @@ var er = {
1857
1844
  "label",
1858
1845
  "onUpdate:modelValue"
1859
1846
  ]))), 128))]),
1860
- m("div", Yr, [m("label", { class: y([p(U), "tpl:!mb-0"]) }, v(p(s).menu.color), 3), g(z, {
1847
+ m("div", Zr, [m("label", { class: y([p(U), "tpl:!mb-0"]) }, v(p(s).menu.color), 3), g(L, {
1861
1848
  "swatch-only": "",
1862
1849
  "model-value": n.color || e.block.linkColor || e.block.color || "",
1863
1850
  "onUpdate:modelValue": (e) => f(n.id, "color", e)
@@ -1865,7 +1852,7 @@ var er = {
1865
1852
  ]))), 128)), m("button", {
1866
1853
  class: y(p(ze)),
1867
1854
  onClick: d
1868
- }, [g(p(V), {
1855
+ }, [g(p(z), {
1869
1856
  size: 14,
1870
1857
  "stroke-width": 2
1871
1858
  }), _(" " + v(p(s).menu.addItem), 1)], 2)])]),
@@ -1874,12 +1861,12 @@ var er = {
1874
1861
  g($, { label: p(s).menu.fontFamily }, {
1875
1862
  default: r(() => [m("select", {
1876
1863
  class: y(p(K)),
1877
- value: e.block.fontFamily || "",
1864
+ value: p(We)(e.block.fontFamily),
1878
1865
  onChange: i[0] ||= (e) => u("fontFamily", e.target.value || void 0)
1879
- }, [m("option", Zr, v(p(s).title.inheritFont), 1), (t(!0), h(x, null, a(e.fontFamilies, (e) => (t(), h("option", {
1866
+ }, [m("option", $r, v(p(s).title.inheritFont), 1), (t(!0), h(x, null, a(e.fontFamilies, (e) => (t(), h("option", {
1880
1867
  key: e.value,
1881
1868
  value: e.value
1882
- }, v(e.label), 9, Qr))), 128))], 42, Xr)]),
1869
+ }, v(e.label), 9, ei))), 128))], 42, Qr)]),
1883
1870
  _: 1
1884
1871
  }, 8, ["label"]),
1885
1872
  g($, { label: p(s).menu.fontSize }, {
@@ -1893,14 +1880,14 @@ var er = {
1893
1880
  _: 1
1894
1881
  }, 8, ["label"]),
1895
1882
  g($, { label: p(s).menu.color }, {
1896
- default: r(() => [g(z, {
1883
+ default: r(() => [g(L, {
1897
1884
  "model-value": e.block.color ?? "",
1898
1885
  "onUpdate:modelValue": i[2] ||= (e) => u("color", e || void 0)
1899
1886
  }, null, 8, ["model-value"])]),
1900
1887
  _: 1
1901
1888
  }, 8, ["label"]),
1902
1889
  g($, { label: p(s).menu.linkColor }, {
1903
- default: r(() => [g(z, {
1890
+ default: r(() => [g(L, {
1904
1891
  "model-value": e.block.linkColor || e.block.color || "",
1905
1892
  "onUpdate:modelValue": i[3] ||= (e) => u("linkColor", e || void 0)
1906
1893
  }, null, 8, ["model-value"])]),
@@ -1920,11 +1907,11 @@ var er = {
1920
1907
  class: y(p(K)),
1921
1908
  value: e.block.separator,
1922
1909
  onInput: i[5] ||= (e) => u("separator", e.target.value)
1923
- }, null, 42, $r)]),
1910
+ }, null, 42, ti)]),
1924
1911
  _: 1
1925
1912
  }, 8, ["label"]),
1926
1913
  g($, { label: p(s).menu.separatorColor }, {
1927
- default: r(() => [g(z, {
1914
+ default: r(() => [g(L, {
1928
1915
  "model-value": e.block.separatorColor,
1929
1916
  "onUpdate:modelValue": i[6] ||= (e) => u("separatorColor", e)
1930
1917
  }, null, 8, ["model-value"])]),
@@ -1942,32 +1929,32 @@ var er = {
1942
1929
  }, 8, ["label"])
1943
1930
  ], 64));
1944
1931
  }
1945
- }), ti = {
1932
+ }), ri = {
1946
1933
  class: "tpl:mb-3.5",
1947
1934
  "data-testid": "paragraph-spacing"
1948
- }, ni = { class: "tpl:flex tpl:items-stretch" }, ri = ["value"], ii = /* @__PURE__ */ w({
1935
+ }, ii = { class: "tpl:flex tpl:items-stretch" }, ai = ["value"], oi = /* @__PURE__ */ w({
1949
1936
  __name: "ParagraphToolbar",
1950
1937
  props: { block: {} },
1951
1938
  emits: ["update"],
1952
1939
  setup(e, { emit: n }) {
1953
- let r = n, { t: i } = R();
1954
- return (n, a) => (t(), h("div", ti, [m("label", { class: y(p(U)) }, v(p(i).paragraph.paragraphSpacing), 3), m("div", ni, [m("input", {
1940
+ let r = n, { t: i } = I();
1941
+ return (n, a) => (t(), h("div", ri, [m("label", { class: y(p(U)) }, v(p(i).paragraph.paragraphSpacing), 3), m("div", ii, [m("input", {
1955
1942
  type: "number",
1956
1943
  class: y(p(G)),
1957
- value: e.block.paragraphSpacing ?? p(P).paragraphGap,
1944
+ value: e.block.paragraphSpacing ?? p(te).paragraphGap,
1958
1945
  min: "0",
1959
1946
  max: "64",
1960
1947
  onInput: a[0] ||= (e) => r("update", { paragraphSpacing: Number(e.target.value) })
1961
- }, null, 42, ri), m("span", { class: y(p(W)) }, "px", 2)])]));
1948
+ }, null, 42, ai), m("span", { class: y(p(W)) }, "px", 2)])]));
1962
1949
  }
1963
1950
  });
1964
1951
  //#endregion
1965
1952
  //#region src/utils/rebalanceColumnChildren.ts
1966
- function ai(e) {
1953
+ function si(e) {
1967
1954
  return e === "1" ? 1 : e === "3" ? 3 : 2;
1968
1955
  }
1969
- function oi(e, t) {
1970
- let n = ai(t);
1956
+ function ci(e, t) {
1957
+ let n = si(t);
1971
1958
  if (e.length === n) return e;
1972
1959
  if (e.length < n) {
1973
1960
  let t = Array.from({ length: n - e.length }, () => []);
@@ -1978,24 +1965,24 @@ function oi(e, t) {
1978
1965
  }
1979
1966
  //#endregion
1980
1967
  //#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
1981
- var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
1968
+ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
1982
1969
  key: 0,
1983
1970
  class: "tpl:mb-3.5"
1984
- }, di = {
1971
+ }, pi = {
1985
1972
  key: 1,
1986
1973
  class: "tpl:mb-3.5"
1987
- }, fi = {
1974
+ }, mi = {
1988
1975
  key: 0,
1989
1976
  class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
1990
- }, pi = {
1977
+ }, hi = {
1991
1978
  key: 1,
1992
1979
  class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
1993
- }, mi = /* @__PURE__ */ w({
1980
+ }, gi = /* @__PURE__ */ w({
1994
1981
  __name: "SectionToolbar",
1995
1982
  props: { block: {} },
1996
1983
  emits: ["update"],
1997
1984
  setup(e, { emit: n }) {
1998
- let r = e, i = n, { t: o } = R(), s = c(ce, void 0), l = c(le, void 0), u = s !== void 0 && D(s), d = S(() => l !== !1 || !!r.block.wrapper), f = S(() => u && !r.block.wrapper), _ = S(() => u && d.value), b = S(() => [
1985
+ let r = e, i = n, { t: o } = I(), s = c(ue, void 0), l = c(de, void 0), u = s !== void 0 && D(s), d = S(() => l !== !1 || !!r.block.wrapper), f = S(() => u && !r.block.wrapper), _ = S(() => u && d.value), b = S(() => [
1999
1986
  {
2000
1987
  value: "1",
2001
1988
  label: o.section.column1
@@ -2018,7 +2005,7 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2018
2005
  }
2019
2006
  ]);
2020
2007
  function w(e) {
2021
- let t = e.target.value, n = oi(r.block.children, t);
2008
+ let t = e.target.value, n = ci(r.block.children, t);
2022
2009
  i("update", {
2023
2010
  columns: t,
2024
2011
  children: n
@@ -2051,33 +2038,33 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2051
2038
  k({ borderRadius: e });
2052
2039
  }
2053
2040
  return (n, r) => (t(), h(x, null, [
2054
- m("div", si, [m("label", { class: y(p(U)) }, v(p(o).section.columns), 3), m("select", {
2041
+ m("div", li, [m("label", { class: y(p(U)) }, v(p(o).section.columns), 3), m("select", {
2055
2042
  class: y(p(K)),
2056
2043
  value: e.block.columns,
2057
2044
  onChange: w
2058
2045
  }, [(t(!0), h(x, null, a(b.value, (e) => (t(), h("option", {
2059
2046
  key: e.value,
2060
2047
  value: e.value
2061
- }, v(e.label), 9, li))), 128))], 42, ci)]),
2062
- e.block.columns === "1" ? C("", !0) : (t(), h("div", ui, [g(q, {
2048
+ }, v(e.label), 9, di))), 128))], 42, ui)]),
2049
+ e.block.columns === "1" ? C("", !0) : (t(), h("div", fi, [g(q, {
2063
2050
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2064
2051
  "model-value": e.block.stackOnMobile !== !1,
2065
2052
  label: p(o).section.stackOnMobile,
2066
2053
  "onUpdate:modelValue": r[0] ||= (e) => T(e)
2067
2054
  }, null, 8, ["model-value", "label"])])),
2068
- g(ut, {
2055
+ g(ft, {
2069
2056
  "model-value": e.block.borderRadius,
2070
2057
  label: p(o).section.borderRadius,
2071
2058
  max: 50,
2072
2059
  "testid-prefix": "section",
2073
2060
  "onUpdate:modelValue": E
2074
2061
  }, null, 8, ["model-value", "label"]),
2075
- g(it, {
2062
+ g(ot, {
2076
2063
  "model-value": e.block.border,
2077
2064
  "testid-prefix": "section",
2078
2065
  "onUpdate:modelValue": r[1] ||= (e) => i("update", { border: e })
2079
2066
  }, null, 8, ["model-value"]),
2080
- d.value ? (t(), h("div", di, [
2067
+ d.value ? (t(), h("div", pi, [
2081
2068
  g(q, {
2082
2069
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2083
2070
  "model-value": !!e.block.wrapper,
@@ -2089,14 +2076,14 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2089
2076
  "label",
2090
2077
  "disabled"
2091
2078
  ]),
2092
- _.value ? (t(), h("p", fi, v(p(o).section.wrapperLayoutConflict), 1)) : C("", !0),
2093
- e.block.wrapper ? (t(), h("div", pi, [
2094
- m("div", null, [m("label", { class: y(p(U)) }, v(p(o).blockSettings.color), 3), g(z, {
2079
+ _.value ? (t(), h("p", mi, v(p(o).section.wrapperLayoutConflict), 1)) : C("", !0),
2080
+ e.block.wrapper ? (t(), h("div", hi, [
2081
+ m("div", null, [m("label", { class: y(p(U)) }, v(p(o).blockSettings.color), 3), g(L, {
2095
2082
  "model-value": e.block.wrapper.backgroundColor ?? "",
2096
2083
  "allow-transparent": "",
2097
2084
  "onUpdate:modelValue": r[3] ||= (e) => k({ backgroundColor: e })
2098
2085
  }, null, 8, ["model-value"])]),
2099
- g(en, {
2086
+ g(nn, {
2100
2087
  label: p(o).blockSettings.padding,
2101
2088
  "model-value": e.block.wrapper.padding ?? {
2102
2089
  top: 0,
@@ -2106,7 +2093,7 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2106
2093
  },
2107
2094
  "onUpdate:modelValue": A
2108
2095
  }, null, 8, ["label", "model-value"]),
2109
- g(ut, {
2096
+ g(ft, {
2110
2097
  "model-value": e.block.wrapper.borderRadius,
2111
2098
  label: p(o).section.borderRadius,
2112
2099
  max: 50,
@@ -2117,12 +2104,12 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2117
2104
  ])) : C("", !0)
2118
2105
  ], 64));
2119
2106
  }
2120
- }), hi = { class: "tpl:mb-3.5" }, gi = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, _i = { class: "tpl:flex tpl:items-center tpl:gap-2" }, vi = ["value", "onChange"], yi = ["value"], bi = ["title", "onClick"], xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = { value: "solid" }, wi = { value: "outlined" }, Ti = { value: "rounded" }, Ei = { value: "square" }, Di = { value: "circle" }, Oi = { class: "tpl:mb-3.5" }, ki = { class: "tpl:mb-3.5" }, Ai = { class: "tpl:flex tpl:items-stretch" }, ji = ["value"], Mi = { class: "tpl:mb-3.5" }, Ni = /* @__PURE__ */ w({
2107
+ }), _i = { class: "tpl:mb-3.5" }, vi = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, yi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, bi = ["value", "onChange"], xi = ["value"], Si = ["title", "onClick"], Ci = { class: "tpl:mb-3.5" }, wi = ["value"], Ti = { value: "solid" }, Ei = { value: "outlined" }, Di = { value: "rounded" }, Oi = { value: "square" }, ki = { value: "circle" }, Ai = { value: "plain" }, ji = { class: "tpl:mb-3.5" }, Mi = ["value"], Ni = { value: "brand" }, Pi = { value: "dark" }, Fi = { value: "light" }, Ii = { class: "tpl:mb-3.5" }, Li = { class: "tpl:mb-3.5" }, Ri = { class: "tpl:flex tpl:items-stretch" }, zi = ["value"], Bi = { class: "tpl:mb-3.5" }, Vi = /* @__PURE__ */ w({
2121
2108
  __name: "SocialToolbar",
2122
2109
  props: { block: {} },
2123
2110
  emits: ["update"],
2124
2111
  setup(e, { emit: n }) {
2125
- let r = e, i = n, { t: o } = R();
2112
+ let r = e, i = n, { t: o } = I();
2126
2113
  function s(e, t) {
2127
2114
  i("update", { [e]: t });
2128
2115
  }
@@ -2145,25 +2132,25 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2145
2132
  i("update", { icons: r.block.icons.filter((t) => t.id !== e) });
2146
2133
  }
2147
2134
  return (n, r) => (t(), h(x, null, [
2148
- m("div", hi, [m("label", { class: y(p(U)) }, v(p(o).social.icons), 3), m("div", gi, [(t(!0), h(x, null, a(e.block.icons, (e) => (t(), h("div", {
2135
+ m("div", _i, [m("label", { class: y(p(U)) }, v(p(o).social.icons), 3), m("div", vi, [(t(!0), h(x, null, a(e.block.icons, (e) => (t(), h("div", {
2149
2136
  key: e.id,
2150
2137
  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"
2151
- }, [m("div", _i, [m("select", {
2138
+ }, [m("div", yi, [m("select", {
2152
2139
  "data-testid": "social-platform-select",
2153
2140
  class: y([p(K), "tpl:flex-1"]),
2154
2141
  value: e.platform,
2155
2142
  onChange: (t) => l(e.id, "platform", t.target.value)
2156
- }, [(t(!0), h(x, null, a(p(ie), (e) => (t(), h("option", {
2143
+ }, [(t(!0), h(x, null, a(p(oe), (e) => (t(), h("option", {
2157
2144
  key: e,
2158
2145
  value: e
2159
- }, v(p(o).social.platforms[e]), 9, yi))), 128))], 42, vi), m("button", {
2146
+ }, v(p(o).social.platforms[e]), 9, xi))), 128))], 42, bi), m("button", {
2160
2147
  class: y(p(Re)),
2161
2148
  title: p(o).social.removeIcon,
2162
2149
  onClick: (t) => u(e.id)
2163
2150
  }, [g(p(Pe), {
2164
2151
  size: 14,
2165
2152
  "stroke-width": 2
2166
- })], 10, bi)]), g(J, {
2153
+ })], 10, Si)]), g(J, {
2167
2154
  "model-value": e.url,
2168
2155
  type: "url",
2169
2156
  placeholder: p(o).social.urlPlaceholder,
@@ -2175,22 +2162,33 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2175
2162
  ])]))), 128)), m("button", {
2176
2163
  class: y(p(ze)),
2177
2164
  onClick: c
2178
- }, [g(p(V), {
2165
+ }, [g(p(z), {
2179
2166
  size: 14,
2180
2167
  "stroke-width": 2
2181
2168
  }), _(" " + v(p(o).social.addIcon), 1)], 2)])]),
2182
- m("div", xi, [m("label", { class: y(p(U)) }, v(p(o).social.style), 3), m("select", {
2169
+ m("div", Ci, [m("label", { class: y(p(U)) }, v(p(o).social.style), 3), m("select", {
2183
2170
  class: y(p(K)),
2184
2171
  value: e.block.iconStyle,
2185
2172
  onChange: r[0] ||= (e) => s("iconStyle", e.target.value)
2186
2173
  }, [
2187
- m("option", Ci, v(p(o).social.styleSolid), 1),
2188
- m("option", wi, v(p(o).social.styleOutlined), 1),
2189
- m("option", Ti, v(p(o).social.styleRounded), 1),
2190
- m("option", Ei, v(p(o).social.styleSquare), 1),
2191
- m("option", Di, v(p(o).social.styleCircle), 1)
2192
- ], 42, Si)]),
2193
- m("div", Oi, [m("label", { class: y(p(U)) }, v(p(o).social.size), 3), g(Y, {
2174
+ m("option", Ti, v(p(o).social.styleSolid), 1),
2175
+ m("option", Ei, v(p(o).social.styleOutlined), 1),
2176
+ m("option", Di, v(p(o).social.styleRounded), 1),
2177
+ m("option", Oi, v(p(o).social.styleSquare), 1),
2178
+ m("option", ki, v(p(o).social.styleCircle), 1),
2179
+ m("option", Ai, v(p(o).social.stylePlain), 1)
2180
+ ], 42, wi)]),
2181
+ m("div", ji, [m("label", { class: y(p(U)) }, v(p(o).social.color), 3), m("select", {
2182
+ "data-testid": "social-tone-select",
2183
+ class: y(p(K)),
2184
+ value: e.block.iconTone ?? "brand",
2185
+ onChange: r[1] ||= (e) => s("iconTone", e.target.value)
2186
+ }, [
2187
+ m("option", Ni, v(p(o).social.colorBrand), 1),
2188
+ m("option", Pi, v(p(o).social.colorDark), 1),
2189
+ m("option", Fi, v(p(o).social.colorLight), 1)
2190
+ ], 42, Mi)]),
2191
+ m("div", Ii, [m("label", { class: y(p(U)) }, v(p(o).social.size), 3), g(Y, {
2194
2192
  options: [
2195
2193
  {
2196
2194
  value: "small",
@@ -2206,55 +2204,55 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2206
2204
  }
2207
2205
  ],
2208
2206
  "model-value": e.block.iconSize,
2209
- "onUpdate:modelValue": r[1] ||= (e) => s("iconSize", e)
2207
+ "onUpdate:modelValue": r[2] ||= (e) => s("iconSize", e)
2210
2208
  }, null, 8, ["options", "model-value"])]),
2211
- m("div", ki, [m("label", { class: y(p(U)) }, v(p(o).social.spacing), 3), m("div", Ai, [m("input", {
2209
+ m("div", Li, [m("label", { class: y(p(U)) }, v(p(o).social.spacing), 3), m("div", Ri, [m("input", {
2212
2210
  type: "number",
2213
2211
  class: y(p(G)),
2214
2212
  value: e.block.spacing,
2215
2213
  min: "0",
2216
2214
  max: "50",
2217
- onInput: r[2] ||= (e) => s("spacing", Number(e.target.value))
2218
- }, null, 42, ji), m("span", { class: y(p(W)) }, "px", 2)])]),
2219
- m("div", Mi, [m("label", { class: y(p(U)) }, v(p(o).social.align), 3), g(Y, {
2215
+ onInput: r[3] ||= (e) => s("spacing", Number(e.target.value))
2216
+ }, null, 42, zi), m("span", { class: y(p(W)) }, "px", 2)])]),
2217
+ m("div", Bi, [m("label", { class: y(p(U)) }, v(p(o).social.align), 3), g(Y, {
2220
2218
  options: [
2221
2219
  {
2222
2220
  value: "left",
2223
2221
  label: p(o).title.alignLeft,
2224
- icon: p(je)
2222
+ icon: p(H)
2225
2223
  },
2226
2224
  {
2227
2225
  value: "center",
2228
2226
  label: p(o).title.alignCenter,
2229
- icon: p(H)
2227
+ icon: p(V)
2230
2228
  },
2231
2229
  {
2232
2230
  value: "right",
2233
2231
  label: p(o).title.alignRight,
2234
- icon: p(Ae)
2232
+ icon: p(B)
2235
2233
  }
2236
2234
  ],
2237
2235
  "model-value": e.block.align,
2238
- "onUpdate:modelValue": r[3] ||= (e) => s("align", e)
2236
+ "onUpdate:modelValue": r[4] ||= (e) => s("align", e)
2239
2237
  }, null, 8, ["options", "model-value"])])
2240
2238
  ], 64));
2241
2239
  }
2242
- }), Pi = { class: "tpl:mb-3.5" }, Fi = { class: "tpl:flex tpl:items-stretch" }, Ii = ["value"], Li = ["value"], Ri = /* @__PURE__ */ w({
2240
+ }), Hi = { class: "tpl:mb-3.5" }, Ui = { class: "tpl:flex tpl:items-stretch" }, Wi = ["value"], Gi = ["value"], Ki = /* @__PURE__ */ w({
2243
2241
  __name: "SpacerToolbar",
2244
2242
  props: { block: {} },
2245
2243
  emits: ["update"],
2246
2244
  setup(e, { emit: n }) {
2247
- let r = n, { t: i } = R();
2248
- return (n, a) => (t(), h("div", Pi, [
2245
+ let r = n, { t: i } = I();
2246
+ return (n, a) => (t(), h("div", Hi, [
2249
2247
  m("label", { class: y(p(U)) }, v(p(i).spacer.height), 3),
2250
- m("div", Fi, [m("input", {
2248
+ m("div", Ui, [m("input", {
2251
2249
  type: "number",
2252
2250
  class: y(p(G)),
2253
2251
  value: e.block.height,
2254
2252
  min: "10",
2255
2253
  max: "100",
2256
2254
  onInput: a[0] ||= (e) => r("update", { height: Number(e.target.value) })
2257
- }, null, 42, Ii), m("span", { class: y(p(W)) }, "px", 2)]),
2255
+ }, null, 42, Wi), m("span", { class: y(p(W)) }, "px", 2)]),
2258
2256
  m("input", {
2259
2257
  type: "range",
2260
2258
  class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
@@ -2262,13 +2260,13 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2262
2260
  min: "10",
2263
2261
  max: "100",
2264
2262
  onInput: a[1] ||= (e) => r("update", { height: Number(e.target.value) })
2265
- }, null, 40, Li)
2263
+ }, null, 40, Gi)
2266
2264
  ]));
2267
2265
  }
2268
- }), zi = { class: "tpl:mb-3.5" }, Bi = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Vi = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Hi = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ui = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Wi = ["disabled"], Gi = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ki = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, qi = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ji = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Yi = ["disabled"], Xi = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Zi = { class: "tpl:mb-3.5" }, Qi = {
2266
+ }), qi = { class: "tpl:mb-3.5" }, Ji = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Yi = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Xi = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Zi = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Qi = ["disabled"], $i = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ea = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ta = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, na = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ra = ["disabled"], ia = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, aa = { class: "tpl:mb-3.5" }, oa = {
2269
2267
  key: 0,
2270
2268
  class: "tpl:mb-3.5"
2271
- }, $i = { class: "tpl:mb-3.5" }, ea = { class: "tpl:mb-3.5" }, ta = { class: "tpl:flex tpl:items-stretch" }, na = ["value"], ra = { class: "tpl:mb-3.5" }, ia = { class: "tpl:flex tpl:items-stretch" }, aa = ["value"], oa = { class: "tpl:mb-3.5" }, sa = ["value"], ca = { value: "" }, la = ["value"], ua = { class: "tpl:mb-3.5" }, da = { class: "tpl:flex tpl:items-stretch" }, fa = ["value"], pa = { class: "tpl:mb-3.5" }, ma = { class: "tpl:mb-3.5" }, ha = /* @__PURE__ */ w({
2269
+ }, sa = { class: "tpl:mb-3.5" }, ca = { class: "tpl:mb-3.5" }, la = { class: "tpl:flex tpl:items-stretch" }, ua = ["value"], da = { class: "tpl:mb-3.5" }, fa = { class: "tpl:flex tpl:items-stretch" }, pa = ["value"], ma = { class: "tpl:mb-3.5" }, ha = ["value"], ga = { value: "" }, _a = ["value"], va = { class: "tpl:mb-3.5" }, ya = { class: "tpl:flex tpl:items-stretch" }, ba = ["value"], xa = { class: "tpl:mb-3.5" }, Sa = { class: "tpl:mb-3.5" }, Ca = /* @__PURE__ */ w({
2272
2270
  __name: "TableToolbar",
2273
2271
  props: {
2274
2272
  block: {},
@@ -2276,7 +2274,7 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2276
2274
  },
2277
2275
  emits: ["update"],
2278
2276
  setup(e, { emit: n }) {
2279
- let r = e, i = n, { t: o } = R(), s = S(() => r.block.rows.length > 0 ? r.block.rows[0].cells.length : 0);
2277
+ let r = e, i = n, { t: o } = I(), s = S(() => r.block.rows.length > 0 ? r.block.rows[0].cells.length : 0);
2280
2278
  function c(e, t) {
2281
2279
  i("update", { [e]: t });
2282
2280
  }
@@ -2311,48 +2309,48 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2311
2309
  i("update", { rows: t });
2312
2310
  }
2313
2311
  return (n, r) => (t(), h(x, null, [
2314
- m("div", zi, [m("label", { class: y(p(U)) }, v(p(o).table.dimensions), 3), m("div", Bi, [m("div", Vi, [m("span", Hi, v(p(o).table.rows), 1), m("div", Ui, [
2312
+ m("div", qi, [m("label", { class: y(p(U)) }, v(p(o).table.dimensions), 3), m("div", Ji, [m("div", Yi, [m("span", Xi, v(p(o).table.rows), 1), m("div", Zi, [
2315
2313
  m("button", {
2316
2314
  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",
2317
2315
  disabled: e.block.rows.length <= 1,
2318
2316
  onClick: r[0] ||= (t) => u(e.block.rows[e.block.rows.length - 1].id)
2319
- }, [g(p(B), {
2317
+ }, [g(p(R), {
2320
2318
  size: 12,
2321
2319
  "stroke-width": 2
2322
- })], 8, Wi),
2323
- m("span", Gi, v(e.block.rows.length), 1),
2320
+ })], 8, Qi),
2321
+ m("span", $i, v(e.block.rows.length), 1),
2324
2322
  m("button", {
2325
2323
  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)]",
2326
2324
  onClick: l
2327
- }, [g(p(V), {
2325
+ }, [g(p(z), {
2328
2326
  size: 12,
2329
2327
  "stroke-width": 2
2330
2328
  })])
2331
- ])]), m("div", Ki, [m("span", qi, v(p(o).table.columns), 1), m("div", Ji, [
2329
+ ])]), m("div", ea, [m("span", ta, v(p(o).table.columns), 1), m("div", na, [
2332
2330
  m("button", {
2333
2331
  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",
2334
2332
  disabled: s.value <= 1,
2335
2333
  onClick: r[1] ||= (e) => f(s.value - 1)
2336
- }, [g(p(B), {
2334
+ }, [g(p(R), {
2337
2335
  size: 12,
2338
2336
  "stroke-width": 2
2339
- })], 8, Yi),
2340
- m("span", Xi, v(s.value), 1),
2337
+ })], 8, ra),
2338
+ m("span", ia, v(s.value), 1),
2341
2339
  m("button", {
2342
2340
  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)]",
2343
2341
  onClick: d
2344
- }, [g(p(V), {
2342
+ }, [g(p(z), {
2345
2343
  size: 12,
2346
2344
  "stroke-width": 2
2347
2345
  })])
2348
2346
  ])])])]),
2349
- m("div", Zi, [g(q, {
2347
+ m("div", aa, [g(q, {
2350
2348
  class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
2351
2349
  "model-value": e.block.hasHeaderRow,
2352
2350
  label: p(o).table.hasHeaderRow,
2353
2351
  "onUpdate:modelValue": r[2] ||= (e) => c("hasHeaderRow", e)
2354
2352
  }, null, 8, ["model-value", "label"])]),
2355
- e.block.hasHeaderRow ? (t(), h("div", Qi, [m("label", { class: y(p(U)) }, v(p(o).table.headerBackgroundColor), 3), g(z, {
2353
+ e.block.hasHeaderRow ? (t(), h("div", oa, [m("label", { class: y(p(U)) }, v(p(o).table.headerBackgroundColor), 3), g(L, {
2356
2354
  "model-value": e.block.headerBackgroundColor ?? "",
2357
2355
  "seed-color": p(Be),
2358
2356
  placeholder: p(o).table.noHeaderBg,
@@ -2362,62 +2360,62 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2362
2360
  "seed-color",
2363
2361
  "placeholder"
2364
2362
  ])])) : C("", !0),
2365
- m("div", $i, [m("label", { class: y(p(U)) }, v(p(o).table.borderColor), 3), g(z, {
2363
+ m("div", sa, [m("label", { class: y(p(U)) }, v(p(o).table.borderColor), 3), g(L, {
2366
2364
  "model-value": e.block.borderColor,
2367
2365
  "onUpdate:modelValue": r[4] ||= (e) => c("borderColor", e)
2368
2366
  }, null, 8, ["model-value"])]),
2369
- m("div", ea, [m("label", { class: y(p(U)) }, v(p(o).table.borderWidth), 3), m("div", ta, [m("input", {
2367
+ m("div", ca, [m("label", { class: y(p(U)) }, v(p(o).table.borderWidth), 3), m("div", la, [m("input", {
2370
2368
  type: "number",
2371
2369
  class: y(p(G)),
2372
2370
  value: e.block.borderWidth,
2373
2371
  min: "0",
2374
2372
  max: "10",
2375
2373
  onInput: r[5] ||= (e) => c("borderWidth", Number(e.target.value))
2376
- }, null, 42, na), m("span", { class: y(p(W)) }, "px", 2)])]),
2377
- m("div", ra, [m("label", { class: y(p(U)) }, v(p(o).table.cellPadding), 3), m("div", ia, [m("input", {
2374
+ }, null, 42, ua), m("span", { class: y(p(W)) }, "px", 2)])]),
2375
+ m("div", da, [m("label", { class: y(p(U)) }, v(p(o).table.cellPadding), 3), m("div", fa, [m("input", {
2378
2376
  type: "number",
2379
2377
  class: y(p(G)),
2380
2378
  value: e.block.cellPadding,
2381
2379
  min: "0",
2382
2380
  max: "30",
2383
2381
  onInput: r[6] ||= (e) => c("cellPadding", Number(e.target.value))
2384
- }, null, 42, aa), m("span", { class: y(p(W)) }, "px", 2)])]),
2385
- m("div", oa, [m("label", { class: y(p(U)) }, v(p(o).table.fontFamily), 3), m("select", {
2382
+ }, null, 42, pa), m("span", { class: y(p(W)) }, "px", 2)])]),
2383
+ m("div", ma, [m("label", { class: y(p(U)) }, v(p(o).table.fontFamily), 3), m("select", {
2386
2384
  class: y(p(K)),
2387
- value: e.block.fontFamily || "",
2385
+ value: p(We)(e.block.fontFamily),
2388
2386
  onChange: r[7] ||= (e) => c("fontFamily", e.target.value || void 0)
2389
- }, [m("option", ca, v(p(o).title.inheritFont), 1), (t(!0), h(x, null, a(e.fontFamilies, (e) => (t(), h("option", {
2387
+ }, [m("option", ga, v(p(o).title.inheritFont), 1), (t(!0), h(x, null, a(e.fontFamilies, (e) => (t(), h("option", {
2390
2388
  key: e.value,
2391
2389
  value: e.value
2392
- }, v(e.label), 9, la))), 128))], 42, sa)]),
2393
- m("div", ua, [m("label", { class: y(p(U)) }, v(p(o).table.fontSize), 3), m("div", da, [m("input", {
2390
+ }, v(e.label), 9, _a))), 128))], 42, ha)]),
2391
+ m("div", va, [m("label", { class: y(p(U)) }, v(p(o).table.fontSize), 3), m("div", ya, [m("input", {
2394
2392
  type: "number",
2395
2393
  class: y(p(G)),
2396
2394
  value: e.block.fontSize,
2397
2395
  min: "10",
2398
2396
  max: "32",
2399
2397
  onInput: r[8] ||= (e) => c("fontSize", Number(e.target.value))
2400
- }, null, 42, fa), m("span", { class: y(p(W)) }, "px", 2)])]),
2401
- m("div", pa, [m("label", { class: y(p(U)) }, v(p(o).table.color), 3), g(z, {
2398
+ }, null, 42, ba), m("span", { class: y(p(W)) }, "px", 2)])]),
2399
+ m("div", xa, [m("label", { class: y(p(U)) }, v(p(o).table.color), 3), g(L, {
2402
2400
  "model-value": e.block.color ?? "",
2403
2401
  "onUpdate:modelValue": r[9] ||= (e) => c("color", e || void 0)
2404
2402
  }, null, 8, ["model-value"])]),
2405
- m("div", ma, [m("label", { class: y(p(U)) }, v(p(o).table.textAlign), 3), g(Y, {
2403
+ m("div", Sa, [m("label", { class: y(p(U)) }, v(p(o).table.textAlign), 3), g(Y, {
2406
2404
  options: [
2407
2405
  {
2408
2406
  value: "left",
2409
2407
  label: p(o).title.alignLeft,
2410
- icon: p(je)
2408
+ icon: p(H)
2411
2409
  },
2412
2410
  {
2413
2411
  value: "center",
2414
2412
  label: p(o).title.alignCenter,
2415
- icon: p(H)
2413
+ icon: p(V)
2416
2414
  },
2417
2415
  {
2418
2416
  value: "right",
2419
2417
  label: p(o).title.alignRight,
2420
- icon: p(Ae)
2418
+ icon: p(B)
2421
2419
  }
2422
2420
  ],
2423
2421
  "model-value": e.block.textAlign,
@@ -2425,7 +2423,7 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2425
2423
  }, null, 8, ["options", "model-value"])])
2426
2424
  ], 64));
2427
2425
  }
2428
- }), ga = { class: "tpl:mb-3.5" }, _a = ["value"], va = { value: 1 }, ya = { value: 2 }, ba = { value: 3 }, xa = { value: 4 }, Sa = { class: "tpl:mb-3.5" }, Ca = ["value"], wa = { value: "" }, Ta = ["value"], Ea = { class: "tpl:mb-3.5" }, Da = { class: "tpl:mb-3.5" }, Oa = /* @__PURE__ */ w({
2426
+ }), wa = { class: "tpl:mb-3.5" }, Ta = ["value"], Ea = { value: 1 }, Da = { value: 2 }, Oa = { value: 3 }, ka = { value: 4 }, Aa = { class: "tpl:mb-3.5" }, ja = ["value"], Ma = { value: "" }, Na = ["value"], Pa = { class: "tpl:mb-3.5" }, Fa = { class: "tpl:mb-3.5" }, Ia = /* @__PURE__ */ w({
2429
2427
  __name: "TitleToolbar",
2430
2428
  props: {
2431
2429
  block: {},
@@ -2433,49 +2431,49 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2433
2431
  },
2434
2432
  emits: ["update"],
2435
2433
  setup(e, { emit: n }) {
2436
- let r = n, { t: i } = R();
2434
+ let r = n, { t: i } = I();
2437
2435
  function o(e, t) {
2438
2436
  r("update", { [e]: t });
2439
2437
  }
2440
2438
  return (n, r) => (t(), h(x, null, [
2441
- m("div", ga, [m("label", { class: y(p(U)) }, v(p(i).title.level), 3), m("select", {
2439
+ m("div", wa, [m("label", { class: y(p(U)) }, v(p(i).title.level), 3), m("select", {
2442
2440
  class: y(p(K)),
2443
2441
  value: e.block.level,
2444
2442
  onChange: r[0] ||= (e) => o("level", Number(e.target.value))
2445
2443
  }, [
2446
- m("option", va, v(p(i).title.heading1), 1),
2447
- m("option", ya, v(p(i).title.heading2), 1),
2448
- m("option", ba, v(p(i).title.heading3), 1),
2449
- m("option", xa, v(p(i).title.heading4), 1)
2450
- ], 42, _a)]),
2451
- m("div", Sa, [m("label", { class: y(p(U)) }, v(p(i).title.fontFamily), 3), m("select", {
2444
+ m("option", Ea, v(p(i).title.heading1), 1),
2445
+ m("option", Da, v(p(i).title.heading2), 1),
2446
+ m("option", Oa, v(p(i).title.heading3), 1),
2447
+ m("option", ka, v(p(i).title.heading4), 1)
2448
+ ], 42, Ta)]),
2449
+ m("div", Aa, [m("label", { class: y(p(U)) }, v(p(i).title.fontFamily), 3), m("select", {
2452
2450
  class: y(p(K)),
2453
- value: e.block.fontFamily || "",
2451
+ value: p(We)(e.block.fontFamily),
2454
2452
  onChange: r[1] ||= (e) => o("fontFamily", e.target.value || void 0)
2455
- }, [m("option", wa, v(p(i).title.inheritFont), 1), (t(!0), h(x, null, a(e.fontFamilies, (e) => (t(), h("option", {
2453
+ }, [m("option", Ma, v(p(i).title.inheritFont), 1), (t(!0), h(x, null, a(e.fontFamilies, (e) => (t(), h("option", {
2456
2454
  key: e.value,
2457
2455
  value: e.value
2458
- }, v(e.label), 9, Ta))), 128))], 42, Ca)]),
2459
- m("div", Ea, [m("label", { class: y(p(U)) }, v(p(i).title.color), 3), g(z, {
2456
+ }, v(e.label), 9, Na))), 128))], 42, ja)]),
2457
+ m("div", Pa, [m("label", { class: y(p(U)) }, v(p(i).title.color), 3), g(L, {
2460
2458
  "model-value": e.block.color ?? "",
2461
2459
  "onUpdate:modelValue": r[2] ||= (e) => o("color", e || void 0)
2462
2460
  }, null, 8, ["model-value"])]),
2463
- m("div", Da, [m("label", { class: y(p(U)) }, v(p(i).title.align), 3), g(Y, {
2461
+ m("div", Fa, [m("label", { class: y(p(U)) }, v(p(i).title.align), 3), g(Y, {
2464
2462
  options: [
2465
2463
  {
2466
2464
  value: "left",
2467
2465
  label: p(i).title.alignLeft,
2468
- icon: p(je)
2466
+ icon: p(H)
2469
2467
  },
2470
2468
  {
2471
2469
  value: "center",
2472
2470
  label: p(i).title.alignCenter,
2473
- icon: p(H)
2471
+ icon: p(V)
2474
2472
  },
2475
2473
  {
2476
2474
  value: "right",
2477
2475
  label: p(i).title.alignRight,
2478
- icon: p(Ae)
2476
+ icon: p(B)
2479
2477
  }
2480
2478
  ],
2481
2479
  "model-value": e.block.textAlign,
@@ -2483,40 +2481,40 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2483
2481
  }, null, 8, ["options", "model-value"])])
2484
2482
  ], 64));
2485
2483
  }
2486
- }), ka = { class: "tpl:mb-3.5" }, Aa = {
2484
+ }), La = { class: "tpl:mb-3.5" }, Ra = {
2487
2485
  key: 0,
2488
2486
  class: "tpl:mb-3.5"
2489
- }, ja = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ma = [
2487
+ }, za = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ba = [
2490
2488
  "value",
2491
2489
  "placeholder",
2492
2490
  "title"
2493
- ], Na = { class: "tpl:mb-3.5" }, Pa = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Fa = { class: "tpl:mb-3.5" }, Ia = { class: "tpl:mb-3.5" }, La = ["value"], Ra = { value: "full" }, za = { class: "tpl:mb-3.5" }, Ba = ["value"], Va = { value: "auto" }, Ha = { value: "custom" }, Ua = {
2491
+ ], Va = { class: "tpl:mb-3.5" }, Ha = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ua = { class: "tpl:mb-3.5" }, Wa = { class: "tpl:mb-3.5" }, Ga = ["value"], Ka = { value: "full" }, qa = { class: "tpl:mb-3.5" }, Ja = ["value"], Ya = { value: "auto" }, Xa = { value: "custom" }, Za = {
2494
2492
  key: 0,
2495
2493
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
2496
- }, Wa = ["value"], Ga = { class: "tpl:mb-3.5" }, Ka = 200, qa = /* @__PURE__ */ w({
2494
+ }, Qa = ["value"], $a = { class: "tpl:mb-3.5" }, eo = 200, to = /* @__PURE__ */ w({
2497
2495
  __name: "VideoToolbar",
2498
2496
  props: { block: {} },
2499
2497
  emits: ["update"],
2500
2498
  setup(e, { emit: n }) {
2501
- let r = e, i = n, { t: a } = R(), o = c(ue, null), s = c(de, j.liquid), l = Ie(), u = S(() => !!o), f = S(() => M(r.block.url, s)), w = S(() => typeof r.block.height == "number" ? "custom" : "auto"), T = d(!1), { start: E } = se(() => {
2499
+ let r = e, i = n, { t: a } = I(), o = c(fe, null), s = c(pe, A.liquid), l = Ie(), u = S(() => !!o), f = S(() => ee(r.block.url, s)), w = S(() => typeof r.block.height == "number" ? "custom" : "auto"), T = d(!1), { start: E } = le(() => {
2502
2500
  T.value = !1;
2503
2501
  }, 1e3, { immediate: !1 });
2504
2502
  function D(e, t) {
2505
2503
  i("update", { [e]: t });
2506
2504
  }
2507
2505
  function O(e) {
2508
- D("height", e === "custom" ? Ka : void 0);
2506
+ D("height", e === "custom" ? eo : void 0);
2509
2507
  }
2510
2508
  function k(e) {
2511
2509
  let t = Number(e);
2512
2510
  !Number.isFinite(t) || t <= 0 || D("height", t);
2513
2511
  }
2514
- async function A() {
2512
+ async function j() {
2515
2513
  let e = await o?.({ accept: ["images"] });
2516
2514
  l.alive && e && (D("thumbnailUrl", e.url), T.value = !0, E());
2517
2515
  }
2518
2516
  return (n, r) => (t(), h(x, null, [
2519
- m("div", ka, [
2517
+ m("div", La, [
2520
2518
  m("label", { class: y(p(U)) }, v(p(a).video.videoUrl), 3),
2521
2519
  g(J, {
2522
2520
  "model-value": e.block.url,
@@ -2532,16 +2530,16 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2532
2530
  "onUpdate:modelValue": r[1] ||= (e) => D("openInNewTab", e)
2533
2531
  }, null, 8, ["model-value", "label"])) : C("", !0)
2534
2532
  ]),
2535
- f.value ? (t(), h("div", Aa, [m("label", { class: y(p(U)) }, [_(v(p(a).video.placeholderUrl) + " ", 1), m("span", ja, v(p(a).video.optional), 1)], 2), m("input", {
2533
+ f.value ? (t(), h("div", Ra, [m("label", { class: y(p(U)) }, [_(v(p(a).video.placeholderUrl) + " ", 1), m("span", za, v(p(a).video.optional), 1)], 2), m("input", {
2536
2534
  type: "url",
2537
2535
  class: y(p(K)),
2538
2536
  value: e.block.placeholderUrl || "",
2539
2537
  placeholder: p(a).video.placeholderUrlPlaceholder,
2540
2538
  title: p(a).video.placeholderUrlTooltip,
2541
2539
  onInput: r[2] ||= (e) => D("placeholderUrl", e.target.value)
2542
- }, null, 42, Ma)])) : C("", !0),
2543
- m("div", Na, [
2544
- m("label", { class: y(p(U)) }, [_(v(p(a).video.customThumbnail) + " ", 1), m("span", Pa, v(p(a).video.optional), 1)], 2),
2540
+ }, null, 42, Ba)])) : C("", !0),
2541
+ m("div", Va, [
2542
+ m("label", { class: y(p(U)) }, [_(v(p(a).video.customThumbnail) + " ", 1), m("span", Ha, v(p(a).video.optional), 1)], 2),
2545
2543
  g(J, {
2546
2544
  "model-value": e.block.thumbnailUrl,
2547
2545
  type: "url",
@@ -2561,46 +2559,46 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2561
2559
  color: "var(--tpl-primary)",
2562
2560
  "background-color": "var(--tpl-bg)"
2563
2561
  },
2564
- onClick: A
2565
- }, [g(p(ne), {
2562
+ onClick: j
2563
+ }, [g(p(re), {
2566
2564
  size: 14,
2567
2565
  "stroke-width": 1.5
2568
2566
  }), _(" " + v(p(a).image.browseMedia), 1)])) : C("", !0)
2569
2567
  ]),
2570
- m("div", Fa, [m("label", { class: y(p(U)) }, v(p(a).video.altText), 3), g(J, {
2568
+ m("div", Ua, [m("label", { class: y(p(U)) }, v(p(a).video.altText), 3), g(J, {
2571
2569
  "model-value": e.block.alt,
2572
2570
  type: "text",
2573
2571
  placeholder: p(a).video.altTextPlaceholder,
2574
2572
  "onUpdate:modelValue": r[4] ||= (e) => D("alt", e)
2575
2573
  }, null, 8, ["model-value", "placeholder"])]),
2576
- m("div", Ia, [m("label", { class: y(p(U)) }, v(p(a).video.width), 3), m("select", {
2574
+ m("div", Wa, [m("label", { class: y(p(U)) }, v(p(a).video.width), 3), m("select", {
2577
2575
  class: y(p(K)),
2578
2576
  value: e.block.width,
2579
2577
  onChange: r[5] ||= (e) => D("width", e.target.value === "full" ? "full" : Number(e.target.value))
2580
2578
  }, [
2581
- m("option", Ra, v(p(a).video.fullWidth), 1),
2579
+ m("option", Ka, v(p(a).video.fullWidth), 1),
2582
2580
  r[9] ||= m("option", { value: "300" }, "300px", -1),
2583
2581
  r[10] ||= m("option", { value: "400" }, "400px", -1),
2584
2582
  r[11] ||= m("option", { value: "500" }, "500px", -1)
2585
- ], 42, La)]),
2586
- m("div", za, [
2583
+ ], 42, Ga)]),
2584
+ m("div", qa, [
2587
2585
  m("label", { class: y(p(U)) }, v(p(a).video.height), 3),
2588
2586
  m("select", {
2589
2587
  class: y(p(K)),
2590
2588
  "data-testid": "video-height-mode",
2591
2589
  value: w.value,
2592
2590
  onChange: r[6] ||= (e) => O(e.target.value)
2593
- }, [m("option", Va, v(p(a).video.heightAuto), 1), m("option", Ha, v(p(a).video.heightCustom), 1)], 42, Ba),
2594
- w.value === "custom" ? (t(), h("div", Ua, [m("input", {
2591
+ }, [m("option", Ya, v(p(a).video.heightAuto), 1), m("option", Xa, v(p(a).video.heightCustom), 1)], 42, Ja),
2592
+ w.value === "custom" ? (t(), h("div", Za, [m("input", {
2595
2593
  type: "number",
2596
2594
  "data-testid": "video-height-input",
2597
2595
  class: y(p(G)),
2598
2596
  value: e.block.height,
2599
2597
  min: "20",
2600
2598
  onInput: r[7] ||= (e) => k(e.target.value)
2601
- }, null, 42, Wa), m("span", { class: y(p(W)) }, "px", 2)])) : C("", !0)
2599
+ }, null, 42, Qa), m("span", { class: y(p(W)) }, "px", 2)])) : C("", !0)
2602
2600
  ]),
2603
- m("div", Ga, [m("label", { class: y(p(U)) }, v(p(a).title.align), 3), g(Y, {
2601
+ m("div", $a, [m("label", { class: y(p(U)) }, v(p(a).title.align), 3), g(Y, {
2604
2602
  options: [
2605
2603
  {
2606
2604
  value: "left",
@@ -2620,7 +2618,7 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2620
2618
  }, null, 8, ["options", "model-value"])])
2621
2619
  ], 64));
2622
2620
  }
2623
- }), Ja = ["aria-label"], Ya = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Xa = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Za = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Qa = { class: "tpl:flex tpl:gap-1" }, $a = ["title"], eo = ["title"], to = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, no = /*@__PURE__*/ w({
2621
+ }), no = ["aria-label"], ro = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, io = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, ao = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, oo = { class: "tpl:flex tpl:gap-1" }, so = ["title"], co = ["title"], lo = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, uo = /*@__PURE__*/ w({
2624
2622
  __name: "Toolbar",
2625
2623
  props: { block: {} },
2626
2624
  emits: [
@@ -2629,9 +2627,9 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2629
2627
  "duplicate"
2630
2628
  ],
2631
2629
  setup(e, { emit: n }) {
2632
- let r = f(() => import("./CountdownToolbar-C052mx2P.js")), a = e, o = n, { t: s } = R(), l = L(_e, "Toolbar"), u = c(ge, []), d = S(() => a.block.type), _ = S(() => k(a.block)), y = S(() => {
2630
+ let r = f(() => import("./CountdownToolbar-lbjCc8ik.js")), a = e, o = n, { t: s } = I(), l = F(ye, "Toolbar"), u = c(ve, []), d = S(() => a.block.type), _ = S(() => k(a.block)), y = S(() => {
2633
2631
  if (_.value) return u.find((e) => e.type === a.block.customType);
2634
- }), x = S(() => _.value ? y.value?.name ?? a.block.customType : re(d.value, s)), w = l.fonts;
2632
+ }), x = S(() => _.value ? y.value?.name ?? a.block.customType : ie(d.value, s)), w = S(() => Ue(l.fonts.value, "fontFamily" in a.block ? a.block.fontFamily : void 0));
2635
2633
  function T(e) {
2636
2634
  o("update", e);
2637
2635
  }
@@ -2639,96 +2637,96 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
2639
2637
  "data-testid": "block-toolbar",
2640
2638
  "aria-label": p(s).landmarks.blockToolbar,
2641
2639
  class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
2642
- }, [m("div", Ya, [m("div", Xa, [p(Se)[d.value] ? (t(), b(i(p(Se)[d.value]), {
2640
+ }, [m("div", ro, [m("div", io, [p(we)[d.value] ? (t(), b(i(p(we)[d.value]), {
2643
2641
  key: 0,
2644
2642
  size: 16,
2645
2643
  "stroke-width": 1.5
2646
- })) : _.value ? (t(), b(p(I), {
2644
+ })) : _.value ? (t(), b(p(P), {
2647
2645
  key: 1,
2648
2646
  size: 16,
2649
2647
  "stroke-width": 1.5
2650
- })) : C("", !0), m("h3", Za, v(x.value), 1)]), m("div", Qa, [m("button", {
2648
+ })) : C("", !0), m("h3", ao, v(x.value), 1)]), m("div", oo, [m("button", {
2651
2649
  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)]",
2652
2650
  title: p(s).toolbar.duplicate,
2653
2651
  onClick: a[0] ||= (e) => o("duplicate")
2654
- }, [g(p(Ce), {
2652
+ }, [g(p(Te), {
2655
2653
  size: 14,
2656
2654
  "stroke-width": 2
2657
- })], 8, $a), m("button", {
2655
+ })], 8, so), m("button", {
2658
2656
  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)]",
2659
2657
  title: p(s).toolbar.delete,
2660
2658
  onClick: a[1] ||= (e) => o("delete")
2661
2659
  }, [g(p(Me), {
2662
2660
  size: 14,
2663
2661
  "stroke-width": 2
2664
- })], 8, eo)])]), m("div", to, [_.value ? (t(), b(cr, {
2662
+ })], 8, co)])]), m("div", lo, [_.value ? (t(), b(ur, {
2665
2663
  key: 0,
2666
2664
  block: e.block,
2667
2665
  onUpdateFieldValues: a[2] ||= (e) => o("update", { fieldValues: e }),
2668
2666
  onUpdateDataSourceFetched: a[3] ||= (e) => o("update", { dataSourceFetched: e })
2669
- }, null, 8, ["block"])) : d.value === "section" ? (t(), b(mi, {
2667
+ }, null, 8, ["block"])) : d.value === "section" ? (t(), b(gi, {
2670
2668
  key: 1,
2671
2669
  block: e.block,
2672
2670
  onUpdate: T
2673
- }, null, 8, ["block"])) : d.value === "title" ? (t(), b(Oa, {
2671
+ }, null, 8, ["block"])) : d.value === "title" ? (t(), b(Ia, {
2674
2672
  key: 2,
2675
2673
  block: e.block,
2676
- "font-families": p(w),
2674
+ "font-families": w.value,
2677
2675
  onUpdate: T
2678
- }, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (t(), b(ii, {
2676
+ }, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (t(), b(oi, {
2679
2677
  key: 3,
2680
2678
  block: e.block,
2681
2679
  onUpdate: T
2682
- }, null, 8, ["block"])) : d.value === "image" ? (t(), b(Hr, {
2680
+ }, null, 8, ["block"])) : d.value === "image" ? (t(), b(Wr, {
2683
2681
  key: 4,
2684
2682
  block: e.block,
2685
2683
  onUpdate: T
2686
- }, null, 8, ["block"])) : d.value === "video" ? (t(), b(qa, {
2684
+ }, null, 8, ["block"])) : d.value === "video" ? (t(), b(to, {
2687
2685
  key: 5,
2688
2686
  block: e.block,
2689
2687
  onUpdate: T
2690
- }, null, 8, ["block"])) : d.value === "button" ? (t(), b(jt, {
2688
+ }, null, 8, ["block"])) : d.value === "button" ? (t(), b(Nt, {
2691
2689
  key: 6,
2692
2690
  block: e.block,
2693
- "font-families": p(w),
2691
+ "font-families": w.value,
2694
2692
  onUpdate: T
2695
- }, null, 8, ["block", "font-families"])) : d.value === "divider" ? (t(), b(mr, {
2693
+ }, null, 8, ["block", "font-families"])) : d.value === "divider" ? (t(), b(gr, {
2696
2694
  key: 7,
2697
2695
  block: e.block,
2698
2696
  onUpdate: T
2699
- }, null, 8, ["block"])) : d.value === "social" ? (t(), b(Ni, {
2697
+ }, null, 8, ["block"])) : d.value === "social" ? (t(), b(Vi, {
2700
2698
  key: 8,
2701
2699
  block: e.block,
2702
2700
  onUpdate: T
2703
- }, null, 8, ["block"])) : d.value === "menu" ? (t(), b(ei, {
2701
+ }, null, 8, ["block"])) : d.value === "menu" ? (t(), b(ni, {
2704
2702
  key: 9,
2705
2703
  block: e.block,
2706
- "font-families": p(w),
2704
+ "font-families": w.value,
2707
2705
  onUpdate: T
2708
- }, null, 8, ["block", "font-families"])) : d.value === "table" ? (t(), b(ha, {
2706
+ }, null, 8, ["block", "font-families"])) : d.value === "table" ? (t(), b(Ca, {
2709
2707
  key: 10,
2710
2708
  block: e.block,
2711
- "font-families": p(w),
2709
+ "font-families": w.value,
2712
2710
  onUpdate: T
2713
- }, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (t(), b(Ri, {
2711
+ }, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (t(), b(Ki, {
2714
2712
  key: 11,
2715
2713
  block: e.block,
2716
2714
  onUpdate: T
2717
- }, null, 8, ["block"])) : d.value === "html" ? (t(), b(vr, {
2715
+ }, null, 8, ["block"])) : d.value === "html" ? (t(), b(br, {
2718
2716
  key: 12,
2719
2717
  block: e.block,
2720
2718
  onUpdate: T
2721
2719
  }, null, 8, ["block"])) : d.value === "countdown" ? (t(), b(p(r), {
2722
2720
  key: 13,
2723
2721
  block: e.block,
2724
- "font-families": p(w),
2722
+ "font-families": w.value,
2725
2723
  onUpdate: T
2726
- }, null, 8, ["block", "font-families"])) : C("", !0), g(Cn, {
2724
+ }, null, 8, ["block", "font-families"])) : C("", !0), g(Tn, {
2727
2725
  block: e.block,
2728
2726
  "is-first-section": d.value === "paragraph",
2729
2727
  onUpdate: T
2730
- }, null, 8, ["block", "is-first-section"])])], 8, Ja));
2728
+ }, null, 8, ["block", "is-first-section"])])], 8, no));
2731
2729
  }
2732
- }), ro = /* @__PURE__ */ e({ default: () => io }), io = /*#__PURE__*/ Fe(no, [["__scopeId", "data-v-1038bf62"]]);
2730
+ }), fo = /* @__PURE__ */ e({ default: () => po }), po = /*#__PURE__*/ Fe(uo, [["__scopeId", "data-v-e2d2c22f"]]);
2733
2731
  //#endregion
2734
- export { io as default, Y as i, $ as n, X as r, ro as t };
2732
+ export { po as default, Y as i, $ as n, X as r, fo as t };