@templatical/editor 0.47.0 → 0.48.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 (247) hide show
  1. package/dist/{AiChatSidebar-BPOv5Ra8.js → AiChatSidebar-DxPHFNoT.js} +8 -8
  2. package/dist/{AiFeatureMenu-H_WT4YR8.js → AiFeatureMenu-C8GVqu1d.js} +4 -4
  3. package/dist/{BlockIssueBadge-AgO5abEB.js → BlockIssueBadge-BShkuJis.js} +2 -2
  4. package/dist/BlockPreviewCanvas-tzAtDkXH.js +141 -0
  5. package/dist/{CloudHeaderExtras-gXsTYoGG.js → CloudHeaderExtras-CUSftQdm.js} +2 -2
  6. package/dist/{CloudPanels-H_GdbOfZ.js → CloudPanels-Dgw7tb4R.js} +4 -4
  7. package/dist/{CollaboratorBar-BazGNMqN.js → CollaboratorBar-5rfopCPx.js} +2 -2
  8. package/dist/{CommentsPanel-CMgsG_yh.js → CommentsPanel-DiWzYtnZ.js} +1 -1
  9. package/dist/{CommentsSidebar-DCh8DTP8.js → CommentsSidebar-BOqj16Al.js} +10 -10
  10. package/dist/{CountdownToolbar-DVuucA3v.js → CountdownToolbar-C4y3Ft7H.js} +4 -4
  11. package/dist/{DesignReferenceSidebar-DxNV4lQp.js → DesignReferenceSidebar-BWAi3eQQ.js} +7 -7
  12. package/dist/{IssuesPanel-CUpW54P4.js → IssuesPanel-C-x3I012.js} +5 -5
  13. package/dist/{LogicTagInsertButton-DDYKnqmj.js → LogicTagInsertButton-B1_Wy0AN.js} +6 -6
  14. package/dist/{MediaEditModal-D_we0Scr.js → MediaEditModal-ByOvznRC.js} +1 -1
  15. package/dist/{MediaPanels-L95BwWV1.js → MediaPanels-9mDBv4aL.js} +1 -1
  16. package/dist/{MergeTagInput-DAL998tx.js → MergeTagInput-fOewuF27.js} +1 -1
  17. package/dist/{MergeTagModeToggle-CjHO26rb.js → MergeTagModeToggle-BXamLcv7.js} +4 -4
  18. package/dist/{ParagraphEditor-CcEN1N6n.js → ParagraphEditor-BVjOwwHx.js} +131 -131
  19. package/dist/{RestoreVersionDialog-B2OH5rgs.js → RestoreVersionDialog-BEKXx9xk.js} +3 -3
  20. package/dist/{RichTextEditorContent-BGeTg-QL.js → RichTextEditorContent-D7kp7iig.js} +4 -4
  21. package/dist/{SaveBlockDialog-CCVyU-7y.js → SaveBlockDialog-SJu0lecx.js} +32 -33
  22. package/dist/{SavedBlocksBrowserModal-_WmSeqIh.js → SavedBlocksBrowserModal-DbmIS5uK.js} +9 -9
  23. package/dist/{SavedBlocksPanels-DVX_ruQ7.js → SavedBlocksPanels-Dr5Fxx9Z.js} +1 -1
  24. package/dist/{SavedBlocksPickBar-DVJC28hP.js → SavedBlocksPickBar-DnEWBZJy.js} +2 -2
  25. package/dist/{TemplateScoringPanel-U0QFiwdI.js → TemplateScoringPanel-ynbGl-sr.js} +11 -11
  26. package/dist/{TemplateSettings-CdhTm9JQ.js → TemplateSettings-Bi01S3H3.js} +7 -7
  27. package/dist/{TestEmailModal-BqToA_ls.js → TestEmailModal-CbRY8HQx.js} +7 -7
  28. package/dist/{TestEmailPanel-Cn4Ptq0j.js → TestEmailPanel-NAOmt3xi.js} +1 -1
  29. package/dist/{TitleEditor-CZdqeltH.js → TitleEditor-Cc3DHbuN.js} +8 -8
  30. package/dist/{ToggleSwitch-BR8Sgzib.js → ToggleSwitch-Ozc7YU38.js} +1 -1
  31. package/dist/Toolbar-B-2lO0I8.js +3156 -0
  32. package/dist/{TplModal-CoczSDma.js → TplModal-Bz4-IZ9R.js} +1 -1
  33. package/dist/{VersionHistoryMenu-DY5z5FZr.js → VersionHistoryMenu-CjV1d1zk.js} +5 -5
  34. package/dist/{VersionHistoryPanels-DowHeDAQ.js → VersionHistoryPanels-BtwxrKJn.js} +1 -1
  35. package/dist/{VersionPreviewBanner-Bo8NxBbh.js → VersionPreviewBanner-BLAei1kj.js} +1 -1
  36. package/dist/WrapperBlock-D0qgNqjD.js +45 -0
  37. package/dist/{blockTypeIcons-4E1U8f99.js → blockTypeIcons-CEDZytqP.js} +49 -19
  38. package/dist/bundle-stats.json +8 -8
  39. package/dist/{cdn/chunks/ca-DMoGGP9L.js → ca-CbNzJM3I.js} +17 -3
  40. package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js → AiChatSidebar-Dk0rJBQN.js} +7 -7
  41. package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js.map → AiChatSidebar-Dk0rJBQN.js.map} +1 -1
  42. package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js → AiFeatureMenu-B7b0w8ZS.js} +3 -3
  43. package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js.map → AiFeatureMenu-B7b0w8ZS.js.map} +1 -1
  44. package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js → BlockIssueBadge-C7sdnkrF.js} +2 -2
  45. package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js.map → BlockIssueBadge-C7sdnkrF.js.map} +1 -1
  46. package/dist/cdn/chunks/BlockPreviewCanvas-vK5tBazr.js +143 -0
  47. package/dist/cdn/chunks/BlockPreviewCanvas-vK5tBazr.js.map +1 -0
  48. package/dist/cdn/chunks/{CloudHeaderExtras-DJXLTUHc.js → CloudHeaderExtras-B4fhuwc_.js} +3 -3
  49. package/dist/cdn/chunks/{CloudHeaderExtras-DJXLTUHc.js.map → CloudHeaderExtras-B4fhuwc_.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudPanels-D1fPLjG8.js → CloudPanels-awqHfJqC.js} +4 -4
  51. package/dist/cdn/chunks/{CloudPanels-D1fPLjG8.js.map → CloudPanels-awqHfJqC.js.map} +1 -1
  52. package/dist/cdn/chunks/{CollaboratorBar-MeRQB1eN.js → CollaboratorBar-CS0ivqkr.js} +3 -3
  53. package/dist/cdn/chunks/{CollaboratorBar-MeRQB1eN.js.map → CollaboratorBar-CS0ivqkr.js.map} +1 -1
  54. package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js → CommentsPanel-CbzxwsyI.js} +2 -2
  55. package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js.map → CommentsPanel-CbzxwsyI.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js → CommentsSidebar-DWPHZuQm.js} +13 -13
  57. package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js.map → CommentsSidebar-DWPHZuQm.js.map} +1 -1
  58. package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js → CountdownToolbar-Cqg8FUH-.js} +5 -5
  59. package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js.map → CountdownToolbar-Cqg8FUH-.js.map} +1 -1
  60. package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js → DesignReferenceSidebar-BW9cHnA9.js} +7 -7
  61. package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js.map → DesignReferenceSidebar-BW9cHnA9.js.map} +1 -1
  62. package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js → IssuesPanel-cXf9ywA4.js} +4 -4
  63. package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js.map → IssuesPanel-cXf9ywA4.js.map} +1 -1
  64. package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js → LogicTagInsertButton-BMB9vShs.js} +84 -84
  65. package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js.map → LogicTagInsertButton-BMB9vShs.js.map} +1 -1
  66. package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js → MediaEditModal-zXfcArr4.js} +2 -2
  67. package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js.map → MediaEditModal-zXfcArr4.js.map} +1 -1
  68. package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js → MediaPanels-Cp4XB_dH.js} +2 -2
  69. package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js.map → MediaPanels-Cp4XB_dH.js.map} +1 -1
  70. package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js → MergeTagInput-DLqrA9co.js} +2 -2
  71. package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js.map → MergeTagInput-DLqrA9co.js.map} +1 -1
  72. package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js → MergeTagModeToggle-BRiJzzn5.js} +3 -3
  73. package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js.map → MergeTagModeToggle-BRiJzzn5.js.map} +1 -1
  74. package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js → ParagraphEditor-D4aq9eeC.js} +35 -35
  75. package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js.map → ParagraphEditor-D4aq9eeC.js.map} +1 -1
  76. package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js → RestoreVersionDialog-BgR6RXSb.js} +5 -5
  77. package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js.map → RestoreVersionDialog-BgR6RXSb.js.map} +1 -1
  78. package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js → RichTextEditorContent-C4DMAn0g.js} +4 -4
  79. package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js.map → RichTextEditorContent-C4DMAn0g.js.map} +1 -1
  80. package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js → SaveBlockDialog-BaIsQd09.js} +23 -24
  81. package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js.map → SaveBlockDialog-BaIsQd09.js.map} +1 -1
  82. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js → SavedBlocksBrowserModal-CtnB58p_.js} +6 -6
  83. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js.map → SavedBlocksBrowserModal-CtnB58p_.js.map} +1 -1
  84. package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js → SavedBlocksPanels-BhEOMzEQ.js} +2 -2
  85. package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js.map → SavedBlocksPanels-BhEOMzEQ.js.map} +1 -1
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js → SavedBlocksPickBar-CcdqTEIp.js} +3 -3
  87. package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js.map → SavedBlocksPickBar-CcdqTEIp.js.map} +1 -1
  88. package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js → TemplateScoringPanel-BrWqJCSP.js} +6 -6
  89. package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js.map → TemplateScoringPanel-BrWqJCSP.js.map} +1 -1
  90. package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js → TemplateSettings-BkkWTDHD.js} +10 -10
  91. package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js.map → TemplateSettings-BkkWTDHD.js.map} +1 -1
  92. package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js → TestEmailModal-V5mwHsUV.js} +9 -9
  93. package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js.map → TestEmailModal-V5mwHsUV.js.map} +1 -1
  94. package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js → TestEmailPanel-DxrKuctP.js} +2 -2
  95. package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js.map → TestEmailPanel-DxrKuctP.js.map} +1 -1
  96. package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js → TitleEditor-CsZiG3TT.js} +13 -13
  97. package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js.map → TitleEditor-CsZiG3TT.js.map} +1 -1
  98. package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js → ToggleSwitch-BB-bQADJ.js} +2 -2
  99. package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js.map → ToggleSwitch-BB-bQADJ.js.map} +1 -1
  100. package/dist/cdn/chunks/Toolbar-C_x2TfFk.js +3073 -0
  101. package/dist/cdn/chunks/Toolbar-C_x2TfFk.js.map +1 -0
  102. package/dist/cdn/chunks/{TplModal-WIBiBrGy.js → TplModal-DC_eodTV.js} +2 -2
  103. package/dist/cdn/chunks/{TplModal-WIBiBrGy.js.map → TplModal-DC_eodTV.js.map} +1 -1
  104. package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js → VersionHistoryMenu-DXnM5Df2.js} +7 -7
  105. package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js.map → VersionHistoryMenu-DXnM5Df2.js.map} +1 -1
  106. package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js → VersionHistoryPanels-DXSqmaLS.js} +2 -2
  107. package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js.map → VersionHistoryPanels-DXSqmaLS.js.map} +1 -1
  108. package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js → VersionPreviewBanner-DKyN6BhO.js} +2 -2
  109. package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js.map → VersionPreviewBanner-DKyN6BhO.js.map} +1 -1
  110. package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js +47 -0
  111. package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js.map +1 -0
  112. package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js +22 -0
  113. package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js.map +1 -0
  114. package/dist/{ca-DMoGGP9L.js → cdn/chunks/ca-CbNzJM3I.js} +19 -1
  115. package/dist/cdn/chunks/ca-CbNzJM3I.js.map +1 -0
  116. package/dist/cdn/chunks/{cloud-Cd7ptfhL.js → cloud-BHClP3e2.js} +2 -2
  117. package/dist/cdn/chunks/{cloud-Cd7ptfhL.js.map → cloud-BHClP3e2.js.map} +1 -1
  118. package/dist/cdn/chunks/{createCloudRuntime-DtIZ2Lee.js → createCloudRuntime-Vd0N4elZ.js} +4 -4
  119. package/dist/cdn/chunks/{createCloudRuntime-DtIZ2Lee.js.map → createCloudRuntime-Vd0N4elZ.js.map} +1 -1
  120. package/dist/cdn/chunks/{de-DgAelLbM.js → de-DMquBpZM.js} +18 -2
  121. package/dist/cdn/chunks/de-DMquBpZM.js.map +1 -0
  122. package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js → editor-modal-vEEmZ8Tu.js} +88 -88
  123. package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js.map → editor-modal-vEEmZ8Tu.js.map} +1 -1
  124. package/dist/cdn/chunks/{en-Dekrl7HA.js → en-C8Mp71sO.js} +18 -2
  125. package/dist/cdn/chunks/en-C8Mp71sO.js.map +1 -0
  126. package/dist/cdn/chunks/en-eWpiXyZu.js +1 -0
  127. package/dist/cdn/chunks/{es-BaZzyidV.js → es-Byq4tthI.js} +18 -2
  128. package/dist/cdn/chunks/es-Byq4tthI.js.map +1 -0
  129. package/dist/cdn/chunks/{extensions-T-t8MKDb.js → extensions-hJ9VqzDc.js} +4 -4
  130. package/dist/cdn/chunks/{extensions-T-t8MKDb.js.map → extensions-hJ9VqzDc.js.map} +1 -1
  131. package/dist/{fr-C5ucb1HK.js → cdn/chunks/fr-B3j35HEw.js} +19 -1
  132. package/dist/cdn/chunks/fr-B3j35HEw.js.map +1 -0
  133. package/dist/cdn/chunks/{icons-C4fX9Bwy.js → icons-aTYwH5-g.js} +123 -94
  134. package/dist/cdn/chunks/icons-aTYwH5-g.js.map +1 -0
  135. package/dist/{ja-CUgR3mV0.js → cdn/chunks/ja-D7txAuGS.js} +19 -1
  136. package/dist/cdn/chunks/ja-D7txAuGS.js.map +1 -0
  137. package/dist/{nl-qrLY7hMS.js → cdn/chunks/nl-ClJ3BY3F.js} +19 -1
  138. package/dist/cdn/chunks/nl-ClJ3BY3F.js.map +1 -0
  139. package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js → preRenderCustomBlocks-ByfuSjtL.js} +2 -2
  140. package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js.map → preRenderCustomBlocks-ByfuSjtL.js.map} +1 -1
  141. package/dist/{pt-BR-C6hMTQYi.js → cdn/chunks/pt-BR-DibcXcmv.js} +19 -1
  142. package/dist/cdn/chunks/pt-BR-DibcXcmv.js.map +1 -0
  143. package/dist/cdn/chunks/{socialIcons-DACw1wA8.js → socialIcons-C_lnkpG6.js} +355 -179
  144. package/dist/cdn/chunks/socialIcons-C_lnkpG6.js.map +1 -0
  145. package/dist/cdn/chunks/{src-BnJlDuyB.js → src-DYCDeBDM.js} +219 -181
  146. package/dist/cdn/chunks/src-DYCDeBDM.js.map +1 -0
  147. package/dist/cdn/chunks/{src-CHlVFp7r.js → src-DlFlC9Tt.js} +267 -241
  148. package/dist/cdn/chunks/src-DlFlC9Tt.js.map +1 -0
  149. package/dist/cdn/chunks/{src-Bu0qBpbf.js → src-dZ4D_tuP.js} +226 -193
  150. package/dist/cdn/chunks/src-dZ4D_tuP.js.map +1 -0
  151. package/dist/cdn/chunks/timeouts-Cv2jvusx.js +6 -0
  152. package/dist/cdn/chunks/timeouts-Cv2jvusx.js.map +1 -0
  153. package/dist/cdn/chunks/{useEditorCore-Bf2d1DKI.js → useEditorCore-Bb2UcB20.js} +722 -717
  154. package/dist/cdn/chunks/useEditorCore-Bb2UcB20.js.map +1 -0
  155. package/dist/cdn/chunks/{useLogicTag-3S63go4E.js → useLogicTag-HsyUCQtl.js} +2 -2
  156. package/dist/cdn/chunks/{useLogicTag-3S63go4E.js.map → useLogicTag-HsyUCQtl.js.map} +1 -1
  157. package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js → useMergeTag-Dg9pE85U.js} +2 -2
  158. package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js.map → useMergeTag-Dg9pE85U.js.map} +1 -1
  159. package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js → withCurrentFont-oLcATrQ8.js} +2 -2
  160. package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js.map → withCurrentFont-oLcATrQ8.js.map} +1 -1
  161. package/dist/cdn/editor.css +1 -1
  162. package/dist/cdn/editor.js +403 -397
  163. package/dist/cdn/editor.js.map +1 -1
  164. package/dist/{check-B5R4zXr7.js → check-ClwqRMgv.js} +1 -1
  165. package/dist/{chevron-down-BKyl85NV.js → chevron-down-te6qn-zE.js} +1 -1
  166. package/dist/{chevron-right-BmToZ8qX.js → chevron-right-W2hbH1FM.js} +1 -1
  167. package/dist/{chevron-up-DNYdOxPC.js → chevron-up-Bf5Zo7o4.js} +1 -1
  168. package/dist/{circle-alert-Dx9ju3YZ.js → circle-alert-CIEGV5DN.js} +1 -1
  169. package/dist/{clock-Dv9bxsSH.js → clock-Y4cx0gkJ.js} +1 -1
  170. package/dist/{cloud-DwjaAdwK.js → cloud-B5xwm_4X.js} +1 -1
  171. package/dist/{copy-BsKl4dcy.js → copy-BEcsAlfB.js} +1 -1
  172. package/dist/{createCloudRuntime-C8gpPsSi.js → createCloudRuntime-zNPkF6T9.js} +3 -3
  173. package/dist/{createLucideIcon-DziKp5iU.js → createLucideIcon-CYHXK9hn.js} +5 -5
  174. package/dist/{de-DgAelLbM.js → de-DMquBpZM.js} +17 -1
  175. package/dist/{dist-C8koXLhl.js → dist-tsmnQugO.js} +285 -249
  176. package/dist/{editor-modal-BwyIUnV_.js → editor-modal-AlVLkU91.js} +23 -23
  177. package/dist/en-B0FUfNwz.js +1 -0
  178. package/dist/{en-Dekrl7HA.js → en-C8Mp71sO.js} +17 -1
  179. package/dist/{es-BaZzyidV.js → es-Byq4tthI.js} +17 -1
  180. package/dist/{extensions-DHyKjsNZ.js → extensions-pjO8VGkM.js} +3 -3
  181. package/dist/{eye-DQuinb9k.js → eye-Ddnz8nnm.js} +1 -1
  182. package/dist/{cdn/chunks/fr-C5ucb1HK.js → fr-B3j35HEw.js} +17 -3
  183. package/dist/{image-up-yTfLjOrj.js → image-up-CM_HC0Dx.js} +1 -1
  184. package/dist/index.d.ts +66 -3
  185. package/dist/{info-C7OjlS11.js → info-DXLmzoeY.js} +1 -1
  186. package/dist/{cdn/chunks/ja-CUgR3mV0.js → ja-D7txAuGS.js} +17 -3
  187. package/dist/{link-CrUFaZ0t.js → link-Cel46wgo.js} +1 -1
  188. package/dist/{list-CLgv6M-k.js → list-Cl0GwiV9.js} +1 -1
  189. package/dist/{loader-circle-BXM5VO0K.js → loader-circle-uAwpvfys.js} +1 -1
  190. package/dist/{message-circle-BisdQ8H9.js → message-circle-DWU1pTM_.js} +1 -1
  191. package/dist/{cdn/chunks/nl-qrLY7hMS.js → nl-ClJ3BY3F.js} +17 -3
  192. package/dist/{package-C1T4AxV1.js → package-CbyG_yU_.js} +1 -1
  193. package/dist/{pencil-oo2mwf4C.js → pencil-BzoDcwKu.js} +1 -1
  194. package/dist/{plus-BIilXopD.js → plus-8cDvoCjZ.js} +1 -1
  195. package/dist/{preRenderCustomBlocks-lFX0HHiV.js → preRenderCustomBlocks-DMP5RuHl.js} +3 -3
  196. package/dist/{cdn/chunks/pt-BR-C6hMTQYi.js → pt-BR-DibcXcmv.js} +17 -3
  197. package/dist/{refresh-cw-DrLlkEVC.js → refresh-cw-9WinWixo.js} +1 -1
  198. package/dist/{search-DNu9lImk.js → search-CqgGq1gG.js} +1 -1
  199. package/dist/{send-DDNh3LoJ.js → send-Ceo3c9Db.js} +1 -1
  200. package/dist/{shield-check-aXM3o14f.js → shield-check-uDAwur5D.js} +1 -1
  201. package/dist/{smartphone-isccgDee.js → smartphone-CcLaCpGK.js} +1 -1
  202. package/dist/{socialIcons-BctavKBN.js → socialIcons-PTiwhLoC.js} +332 -153
  203. package/dist/{sparkles-CIMfFxKv.js → sparkles-Do9XjAuT.js} +1 -1
  204. package/dist/style.css +1 -1
  205. package/dist/templatical-editor.js +549 -543
  206. package/dist/{text-align-start-C4JFeqsq.js → text-align-start-DvzC0HQA.js} +1 -1
  207. package/dist/timeouts-Cv2jvusx.js +4 -0
  208. package/dist/{trash-8ZD9pK_c.js → trash-vlINTx32.js} +1 -1
  209. package/dist/{triangle-alert-pq45xEHl.js → triangle-alert-MRYSJ9T2.js} +1 -1
  210. package/dist/{upload-DrNFmVes.js → upload-CtNOI6J2.js} +1 -1
  211. package/dist/{useEditorCore-BcT7UI4e.js → useEditorCore-PvErWWsp.js} +963 -957
  212. package/dist/{useLogicTag-D-dI8H6p.js → useLogicTag-BHn67tDd.js} +1 -1
  213. package/dist/{useMergeTag-5wMeDBi-.js → useMergeTag-CRkm5Ig6.js} +1 -1
  214. package/dist/{useScrollToBlock-Do3suaqp.js → useScrollToBlock-CXmcHQQN.js} +1 -1
  215. package/dist/{withCurrentFont-B4YnsG_2.js → withCurrentFont-CxRGeHO3.js} +1 -1
  216. package/dist/{x-CBFKGLB1.js → x-Cd6SFw8r.js} +1 -1
  217. package/package.json +8 -8
  218. package/dist/BlockPreviewCanvas-CZDBSPoG.js +0 -136
  219. package/dist/Toolbar-OGakTBEg.js +0 -2851
  220. package/dist/WrapperBlock-BOABSX9W.js +0 -46
  221. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +0 -138
  222. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +0 -1
  223. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js +0 -2767
  224. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +0 -1
  225. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +0 -48
  226. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +0 -1
  227. package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js +0 -21
  228. package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js.map +0 -1
  229. package/dist/cdn/chunks/ca-DMoGGP9L.js.map +0 -1
  230. package/dist/cdn/chunks/de-DgAelLbM.js.map +0 -1
  231. package/dist/cdn/chunks/en-BANFWZdr.js +0 -1
  232. package/dist/cdn/chunks/en-Dekrl7HA.js.map +0 -1
  233. package/dist/cdn/chunks/es-BaZzyidV.js.map +0 -1
  234. package/dist/cdn/chunks/fr-C5ucb1HK.js.map +0 -1
  235. package/dist/cdn/chunks/icons-C4fX9Bwy.js.map +0 -1
  236. package/dist/cdn/chunks/ja-CUgR3mV0.js.map +0 -1
  237. package/dist/cdn/chunks/nl-qrLY7hMS.js.map +0 -1
  238. package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +0 -1
  239. package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +0 -1
  240. package/dist/cdn/chunks/src-BnJlDuyB.js.map +0 -1
  241. package/dist/cdn/chunks/src-Bu0qBpbf.js.map +0 -1
  242. package/dist/cdn/chunks/src-CHlVFp7r.js.map +0 -1
  243. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js +0 -6
  244. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +0 -1
  245. package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +0 -1
  246. package/dist/en-CC-57eC_.js +0 -1
  247. package/dist/timeouts-DHPZQ0G3.js +0 -4
@@ -1,2767 +0,0 @@
1
- import { n as e } from "./rolldown-runtime-B0aSnxlc.js";
2
- import { B as t, E as n, F as r, H as i, I as a, N as o, Q as s, R as c, S as l, U as u, X as d, at as f, b as p, ct as m, f as h, g, h as _, lt as v, m as y, o as b, p as x, s as S, u as C, ut as w, x as T, y as E } from "./draggable-DrsNwZuB.js";
3
- import { Ct as D, Dt as O, Et as k, J as A, Nt as j, O as M, Pt as N, St as ee, i as P, kt as F, nt as te, r as ne, xt as re } from "./src-BnJlDuyB.js";
4
- import { a as I, c as ie, g as ae, i as oe, o as se, r as ce } from "./socialIcons-DACw1wA8.js";
5
- import { _ as le } from "./dist-CjL6JHML.js";
6
- import { $ as ue, C as de, G as fe, L as pe, P as me, d as he, h as ge, n as _e, p as ve, v as ye } from "./keys-HI-INbkz.js";
7
- import { t as L } from "./useI18n-DUlyyIJJ.js";
8
- import { o as be } from "./usePopoverPosition-IbaW6-Ao.js";
9
- import { B as xe, Dt as Se, Lt as Ce, Nt as we, O as Te, W as R, _ as Ee, c as De, et as Oe, f as ke, ft as Ae, h as z, it as je, kt as Me, lt as Ne, n as Pe, pt as Fe, rt as Ie, tt as B, v as Le } from "./icons-C4fX9Bwy.js";
10
- import { t as Re } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
- import { t as ze } from "./useAliveFlag-DCB96vzR.js";
12
- import { _ as Be, b as Ve, c as He, g as V, h as H, m as U, p as W, r as Ue, v as We } from "./styleConstants-D1Jz-TFU.js";
13
- import { t as Ge } from "./blockTypeIcons-D3g5QzdT.js";
14
- import { c as G } from "./LogicTagInsertButton-BEsqPhMr.js";
15
- import { n as Ke, t as K } from "./ToggleSwitch-BN8rMC2m.js";
16
- import { n as qe, t as Je } from "./withCurrentFont-DwJd-lKc.js";
17
- import { t as q } from "./MergeTagInput-Dy13_OLc.js";
18
- //#region src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
19
- var Ye = [
20
- "aria-checked",
21
- "aria-label",
22
- "title",
23
- "onClick"
24
- ], Xe = { key: 1 }, J = /* @__PURE__ */ l({
25
- __name: "SlidingPillSelect",
26
- props: {
27
- options: {},
28
- modelValue: {}
29
- },
30
- emits: ["update:modelValue"],
31
- setup(e, { emit: t }) {
32
- let n = e, i = t, a = h(() => n.options.findIndex((e) => e.value === n.modelValue)), s = h(() => `translateX(${Math.max(a.value, 0) * 100}%)`);
33
- return (t, n) => (o(), g("div", {
34
- role: "radiogroup",
35
- class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
36
- style: v({
37
- gridTemplateColumns: `repeat(${e.options.length}, 1fr)`,
38
- backgroundColor: "var(--tpl-bg-hover)"
39
- })
40
- }, [a.value >= 0 ? (o(), g("div", {
41
- key: 0,
42
- class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
43
- style: v({
44
- left: "4px",
45
- width: `calc((100% - 8px) / ${e.options.length})`,
46
- transform: s.value,
47
- backgroundColor: "var(--tpl-bg)",
48
- boxShadow: "var(--tpl-shadow)",
49
- transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
50
- })
51
- }, null, 4)) : _("", !0), (o(!0), g(C, null, r(e.options, (t) => (o(), g("button", {
52
- key: t.value,
53
- role: "radio",
54
- "aria-checked": e.modelValue === t.value,
55
- "aria-label": t.label,
56
- class: "tpl:relative tpl:z-10 tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:py-[5px] tpl:text-xs tpl:font-medium",
57
- style: v({
58
- color: e.modelValue === t.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
59
- transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
60
- }),
61
- title: t.label,
62
- onClick: (e) => i("update:modelValue", t.value)
63
- }, [t.icon ? (o(), y(c(t.icon), {
64
- key: 0,
65
- size: 14,
66
- "stroke-width": 2
67
- })) : (o(), g("span", Xe, w(t.label), 1))], 12, Ye))), 128))], 4));
68
- }
69
- }), Ze = { class: "tpl:flex tpl:items-stretch" }, Qe = [
70
- "data-testid",
71
- "value",
72
- "min",
73
- "max"
74
- ], Y = /* @__PURE__ */ l({
75
- __name: "NumberWithSuffix",
76
- props: {
77
- modelValue: {},
78
- min: {},
79
- max: {},
80
- suffix: {},
81
- testid: {}
82
- },
83
- emits: ["update:modelValue"],
84
- setup(e, { emit: t }) {
85
- let n = t;
86
- function r(e) {
87
- let t = e.target;
88
- t.validity?.badInput || n("update:modelValue", Number(t.value));
89
- }
90
- return (t, n) => (o(), g("div", Ze, [x("input", {
91
- type: "number",
92
- "data-testid": e.testid,
93
- class: m(f(U)),
94
- value: e.modelValue,
95
- min: e.min,
96
- max: e.max,
97
- onInput: r
98
- }, null, 42, Qe), x("span", { class: m(f(H)) }, w(e.suffix), 3)]));
99
- }
100
- }), $e = [
101
- "aria-pressed",
102
- "aria-label",
103
- "title",
104
- "data-testid"
105
- ], et = /* @__PURE__ */ l({
106
- __name: "LinkToggle",
107
- props: {
108
- linked: { type: Boolean },
109
- linkLabel: {},
110
- unlinkLabel: {},
111
- testid: {}
112
- },
113
- emits: ["toggle"],
114
- setup(e, { emit: t }) {
115
- let n = t;
116
- return (t, r) => (o(), g("button", {
117
- type: "button",
118
- class: m(["tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", e.linked ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
119
- "aria-pressed": e.linked ? "true" : "false",
120
- "aria-label": e.linked ? e.unlinkLabel : e.linkLabel,
121
- title: e.linked ? e.unlinkLabel : e.linkLabel,
122
- "data-testid": e.testid,
123
- onClick: r[0] ||= (e) => n("toggle")
124
- }, [e.linked ? (o(), y(f(Ne), {
125
- key: 0,
126
- size: 14,
127
- "stroke-width": 2
128
- })) : (o(), y(f(De), {
129
- key: 1,
130
- size: 14,
131
- "stroke-width": 2
132
- }))], 10, $e));
133
- }
134
- }), tt = { class: "tpl:mb-3.5" }, nt = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, rt = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, it = {
135
- key: 0,
136
- class: "tpl:mb-3.5"
137
- }, at = { class: "tpl:mb-3.5" }, ot = { class: "tpl:mb-3.5" }, st = /* @__PURE__ */ l({
138
- __name: "BorderControl",
139
- props: {
140
- modelValue: {},
141
- testidPrefix: {}
142
- },
143
- emits: ["update:modelValue"],
144
- setup(e, { emit: n }) {
145
- let r = e, i = n, { t: a } = L(), c = {
146
- width: 0,
147
- style: "solid",
148
- color: "#000000"
149
- };
150
- function l(e, t) {
151
- return e.width === t.width && e.style === t.style && e.color === t.color;
152
- }
153
- let u = h(() => {
154
- let e = r.modelValue;
155
- return !e || O.every((t) => l(e[t], e.top));
156
- }), d = s(u.value);
157
- t(u, (e) => {
158
- !e && d.value && (d.value = !1);
159
- });
160
- let v = s("top"), y = h(() => r.modelValue?.[d.value ? "top" : v.value] ?? c), b = (e) => !!e && e.width > 0;
161
- function S(e) {
162
- if (d.value) {
163
- i("update:modelValue", b(e) ? N(e) : void 0);
164
- return;
165
- }
166
- let t = {
167
- ...r.modelValue ?? N(c),
168
- [v.value]: e
169
- }, n = O.some((e) => b(t[e]));
170
- i("update:modelValue", n ? t : void 0);
171
- }
172
- function T(e) {
173
- S({
174
- ...y.value,
175
- width: e > 0 ? e : 0
176
- });
177
- }
178
- function E(e) {
179
- S({
180
- ...y.value,
181
- ...e
182
- });
183
- }
184
- function D() {
185
- if (d.value) {
186
- d.value = !1;
187
- return;
188
- }
189
- d.value = !0;
190
- let e = r.modelValue;
191
- if (!e) return;
192
- let t = b(e[v.value]) ? e[v.value] : O.map((t) => e[t]).find(b);
193
- i("update:modelValue", t ? N(t) : void 0);
194
- }
195
- let k = h(() => O.map((e) => ({
196
- value: e,
197
- label: a.spacingControl[e]
198
- })));
199
- return (t, n) => (o(), g("div", tt, [
200
- x("div", nt, [x("span", rt, w(f(a).blockSettings.border), 1), p(et, {
201
- linked: d.value,
202
- "link-label": f(a).blockSettings.linkSides,
203
- "unlink-label": f(a).blockSettings.unlinkSides,
204
- testid: `${e.testidPrefix}-border-link`,
205
- onToggle: D
206
- }, null, 8, [
207
- "linked",
208
- "link-label",
209
- "unlink-label",
210
- "testid"
211
- ])]),
212
- d.value ? _("", !0) : (o(), g("div", it, [x("label", { class: m(f(V)) }, w(f(a).blockSettings.borderSide), 3), p(J, {
213
- options: k.value,
214
- "model-value": v.value,
215
- "onUpdate:modelValue": n[0] ||= (e) => v.value = e
216
- }, null, 8, ["options", "model-value"])])),
217
- x("div", at, [x("label", { class: m(f(V)) }, w(f(a).blockSettings.borderWidth), 3), p(Y, {
218
- "model-value": y.value.width,
219
- min: 0,
220
- suffix: "px",
221
- testid: `${e.testidPrefix}-border-width-input`,
222
- "onUpdate:modelValue": T
223
- }, null, 8, ["model-value", "testid"])]),
224
- y.value.width > 0 ? (o(), g(C, { key: 1 }, [x("div", ot, [x("label", { class: m(f(V)) }, w(f(a).blockSettings.borderStyle), 3), p(J, {
225
- options: [
226
- {
227
- value: "solid",
228
- label: f(a).divider.solid
229
- },
230
- {
231
- value: "dashed",
232
- label: f(a).divider.dashed
233
- },
234
- {
235
- value: "dotted",
236
- label: f(a).divider.dotted
237
- }
238
- ],
239
- "model-value": y.value.style,
240
- "onUpdate:modelValue": n[1] ||= (e) => E({ style: e })
241
- }, null, 8, ["options", "model-value"])]), x("div", null, [x("label", { class: m(f(V)) }, w(f(a).blockSettings.borderColor), 3), p(G, {
242
- "model-value": y.value.color,
243
- "onUpdate:modelValue": n[2] ||= (e) => E({ color: e })
244
- }, null, 8, ["model-value"])])], 64)) : _("", !0)
245
- ]));
246
- }
247
- }), ct = { class: "tpl:mb-3.5" }, lt = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, ut = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, dt = {
248
- key: 1,
249
- class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
250
- }, ft = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, pt = /* @__PURE__ */ l({
251
- __name: "RadiusControl",
252
- props: {
253
- modelValue: {},
254
- label: {},
255
- testidPrefix: {},
256
- max: {}
257
- },
258
- emits: ["update:modelValue"],
259
- setup(e, { emit: n }) {
260
- let i = e, a = n, { t: c } = L(), l = {
261
- topLeft: "cornerTopLeft",
262
- topRight: "cornerTopRight",
263
- bottomRight: "cornerBottomRight",
264
- bottomLeft: "cornerBottomLeft"
265
- }, u = [
266
- "topLeft",
267
- "topRight",
268
- "bottomLeft",
269
- "bottomRight"
270
- ], d = h(() => {
271
- let e = i.modelValue ?? 0;
272
- return typeof e == "number" ? {
273
- topLeft: e,
274
- topRight: e,
275
- bottomRight: e,
276
- bottomLeft: e
277
- } : e;
278
- }), m = h(() => k.every((e) => d.value[e] === d.value.topLeft)), _ = s(m.value);
279
- t(m, (e) => {
280
- !e && _.value && (_.value = !1);
281
- });
282
- function v(e) {
283
- return Number.isFinite(e) && e >= 0;
284
- }
285
- function b(e) {
286
- v(e) && a("update:modelValue", e);
287
- }
288
- function S(e, t) {
289
- v(t) && a("update:modelValue", {
290
- ...d.value,
291
- [e]: t
292
- });
293
- }
294
- function T() {
295
- _.value = !_.value, _.value && a("update:modelValue", d.value.topLeft);
296
- }
297
- return (t, n) => (o(), g("div", ct, [x("div", lt, [x("span", ut, w(e.label), 1), p(et, {
298
- linked: _.value,
299
- "link-label": f(c).blockSettings.linkCorners,
300
- "unlink-label": f(c).blockSettings.unlinkCorners,
301
- testid: `${e.testidPrefix}-border-radius-link`,
302
- onToggle: T
303
- }, null, 8, [
304
- "linked",
305
- "link-label",
306
- "unlink-label",
307
- "testid"
308
- ])]), _.value ? (o(), y(Y, {
309
- key: 0,
310
- "model-value": d.value.topLeft,
311
- min: 0,
312
- max: e.max,
313
- suffix: "px",
314
- testid: `${e.testidPrefix}-border-radius-input`,
315
- "onUpdate:modelValue": b
316
- }, null, 8, [
317
- "model-value",
318
- "max",
319
- "testid"
320
- ])) : (o(), g("div", dt, [(o(), g(C, null, r(u, (t) => x("div", { key: t }, [x("label", ft, w(f(c).blockSettings[l[t]]), 1), p(Y, {
321
- "model-value": d.value[t],
322
- min: 0,
323
- max: e.max,
324
- suffix: "px",
325
- testid: `${e.testidPrefix}-border-radius-${t}-input`,
326
- "onUpdate:modelValue": (e) => S(t, e)
327
- }, null, 8, [
328
- "model-value",
329
- "max",
330
- "testid",
331
- "onUpdate:modelValue"
332
- ])])), 64))]))]));
333
- }
334
- }), mt = { class: "tpl:mb-3.5" }, ht = ["value"], gt = { value: "" }, _t = ["value"], 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:mb-3.5" }, Ct = { class: "tpl:flex tpl:items-stretch" }, wt = ["value"], Tt = { class: "tpl:mb-3.5" }, Et = ["value"], Dt = { value: "auto" }, Ot = { value: "full" }, kt = { value: "custom" }, At = {
335
- key: 0,
336
- class: "tpl:mt-2 tpl:flex tpl:items-stretch"
337
- }, jt = ["value"], Mt = { class: "tpl:mb-3.5" }, Nt = 200, Pt = /* @__PURE__ */ l({
338
- __name: "ButtonToolbar",
339
- props: {
340
- block: {},
341
- fontFamilies: {}
342
- },
343
- emits: ["update"],
344
- setup(e, { emit: t }) {
345
- let n = e, i = t, { t: a } = L(), s = h(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
346
- function c(e, t) {
347
- i("update", { [e]: t });
348
- }
349
- function l(e) {
350
- e === "full" ? c("width", "full") : e === "custom" ? c("width", typeof n.block.width == "number" ? n.block.width : Nt) : c("width", void 0);
351
- }
352
- function u(e) {
353
- let t = Number(e);
354
- !Number.isFinite(t) || t <= 0 || c("width", t);
355
- }
356
- return (t, n) => (o(), g(C, null, [
357
- x("div", mt, [x("label", { class: m(f(V)) }, w(f(a).button.fontFamily), 3), x("select", {
358
- class: m(f(W)),
359
- value: f(Je)(e.block.fontFamily),
360
- onChange: n[0] ||= (e) => c("fontFamily", e.target.value || void 0)
361
- }, [x("option", gt, w(f(a).button.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
362
- key: e.value,
363
- value: e.value
364
- }, w(e.label), 9, _t))), 128))], 42, ht)]),
365
- x("div", vt, [x("label", { class: m(f(V)) }, w(f(a).button.text), 3), p(q, {
366
- "model-value": e.block.text,
367
- type: "text",
368
- "onUpdate:modelValue": n[1] ||= (e) => c("text", e)
369
- }, null, 8, ["model-value"])]),
370
- x("div", yt, [
371
- x("label", { class: m(f(V)) }, w(f(a).button.url), 3),
372
- p(q, {
373
- "model-value": e.block.url,
374
- type: "url",
375
- placeholder: f(a).button.urlPlaceholder,
376
- "onUpdate:modelValue": n[2] ||= (e) => c("url", e)
377
- }, null, 8, ["model-value", "placeholder"]),
378
- e.block.url ? (o(), y(K, {
379
- key: 0,
380
- class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
381
- "model-value": e.block.openInNewTab ?? !1,
382
- label: f(a).button.openInNewTab,
383
- "onUpdate:modelValue": n[3] ||= (e) => c("openInNewTab", e)
384
- }, null, 8, ["model-value", "label"])) : _("", !0)
385
- ]),
386
- x("div", bt, [x("label", { class: m(f(V)) }, w(f(a).button.background), 3), p(G, {
387
- "model-value": e.block.backgroundColor,
388
- "allow-transparent": "",
389
- "onUpdate:modelValue": n[4] ||= (e) => c("backgroundColor", e)
390
- }, null, 8, ["model-value"])]),
391
- x("div", xt, [x("label", { class: m(f(V)) }, w(f(a).button.textColor), 3), p(G, {
392
- "model-value": e.block.textColor,
393
- "onUpdate:modelValue": n[5] ||= (e) => c("textColor", e)
394
- }, null, 8, ["model-value"])]),
395
- p(st, {
396
- "model-value": e.block.border,
397
- "testid-prefix": "button",
398
- "onUpdate:modelValue": n[6] ||= (e) => c("border", e)
399
- }, null, 8, ["model-value"]),
400
- p(pt, {
401
- "model-value": e.block.borderRadius,
402
- label: f(a).button.borderRadius,
403
- max: 50,
404
- "testid-prefix": "button",
405
- "onUpdate:modelValue": n[7] ||= (e) => c("borderRadius", e)
406
- }, null, 8, ["model-value", "label"]),
407
- x("div", St, [x("label", { class: m(f(V)) }, w(f(a).button.fontSize), 3), x("div", Ct, [x("input", {
408
- type: "number",
409
- class: m(f(U)),
410
- value: e.block.fontSize,
411
- min: "10",
412
- max: "36",
413
- onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
414
- }, null, 42, wt), x("span", { class: m(f(H)) }, "px", 2)])]),
415
- x("div", Tt, [
416
- x("label", { class: m(f(V)) }, w(f(a).button.width), 3),
417
- x("select", {
418
- class: m(f(W)),
419
- value: s.value,
420
- onChange: n[9] ||= (e) => l(e.target.value)
421
- }, [
422
- x("option", Dt, w(f(a).button.widthAuto), 1),
423
- x("option", Ot, w(f(a).button.fullWidth), 1),
424
- x("option", kt, w(f(a).button.widthCustom), 1)
425
- ], 42, Et),
426
- s.value === "custom" ? (o(), g("div", At, [x("input", {
427
- type: "number",
428
- class: m(f(U)),
429
- value: typeof e.block.width == "number" ? e.block.width : Nt,
430
- min: "20",
431
- onInput: n[10] ||= (e) => u(e.target.value)
432
- }, null, 42, jt), x("span", { class: m(f(H)) }, "px", 2)])) : _("", !0)
433
- ]),
434
- x("div", Mt, [x("label", { class: m(f(V)) }, w(f(a).title.align), 3), p(J, {
435
- options: [
436
- {
437
- value: "left",
438
- label: f(a).title.alignLeft
439
- },
440
- {
441
- value: "center",
442
- label: f(a).title.alignCenter
443
- },
444
- {
445
- value: "right",
446
- label: f(a).title.alignRight
447
- }
448
- ],
449
- "model-value": e.block.align ?? "center",
450
- "onUpdate:modelValue": n[11] ||= (e) => c("align", e)
451
- }, null, 8, ["options", "model-value"])])
452
- ], 64));
453
- }
454
- }), Ft = { class: "spacing-control" }, It = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Lt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Rt = { class: "tpl:flex tpl:items-center" }, zt = ["aria-label"], Bt = ["value", "aria-label"], Vt = ["aria-label"], Ht = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ut = { class: "tpl:flex tpl:items-center" }, Wt = ["aria-label"], Gt = ["value", "aria-label"], Kt = ["aria-label"], qt = ["aria-label", "title"], Jt = { class: "tpl:flex tpl:items-center" }, Yt = ["aria-label"], Xt = ["value", "aria-label"], Zt = ["aria-label"], Qt = { class: "tpl:flex tpl:items-center" }, $t = ["aria-label"], en = ["value", "aria-label"], tn = ["aria-label"], X = "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)]", Z = "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__*/ Re(/* @__PURE__ */ l({
455
- __name: "SpacingControl",
456
- props: {
457
- modelValue: {},
458
- label: {}
459
- },
460
- emits: ["update:modelValue"],
461
- setup(e, { emit: n }) {
462
- let r = e, i = n, { t: a } = L(), c = h(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), l = s(c.value);
463
- t(c, (e) => {
464
- !e && l.value && (l.value = !1);
465
- });
466
- function u(e, t) {
467
- let n = Math.max(0, r.modelValue[e] + t);
468
- l.value ? i("update:modelValue", {
469
- top: n,
470
- right: n,
471
- bottom: n,
472
- left: n
473
- }) : i("update:modelValue", {
474
- ...r.modelValue,
475
- [e]: n
476
- });
477
- }
478
- function d(e, t) {
479
- let n = Math.max(0, t);
480
- l.value ? i("update:modelValue", {
481
- top: n,
482
- right: n,
483
- bottom: n,
484
- left: n
485
- }) : i("update:modelValue", {
486
- ...r.modelValue,
487
- [e]: n
488
- });
489
- }
490
- function _() {
491
- if (l.value = !l.value, l.value) {
492
- let e = r.modelValue.top;
493
- i("update:modelValue", {
494
- top: e,
495
- right: e,
496
- bottom: e,
497
- left: e
498
- });
499
- }
500
- }
501
- return (t, n) => (o(), g("div", Ft, [x("label", It, w(e.label), 1), x("div", Lt, [
502
- x("div", Rt, [
503
- x("button", {
504
- "aria-label": f(a).spacingControl.decreaseTop,
505
- class: m([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
506
- onClick: n[0] ||= (e) => u("top", -1)
507
- }, [p(f(B), {
508
- size: 12,
509
- "stroke-width": 2
510
- })], 10, zt),
511
- x("input", {
512
- type: "number",
513
- class: m(Z),
514
- value: e.modelValue.top,
515
- "aria-label": f(a).spacingControl.top,
516
- min: "0",
517
- onInput: n[1] ||= (e) => d("top", Number(e.target.value))
518
- }, null, 40, Bt),
519
- x("button", {
520
- "aria-label": f(a).spacingControl.increaseTop,
521
- class: m([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
522
- onClick: n[2] ||= (e) => u("top", 1)
523
- }, [p(f(R), {
524
- size: 12,
525
- "stroke-width": 2
526
- })], 10, Vt)
527
- ]),
528
- x("div", Ht, [
529
- x("div", Ut, [
530
- x("button", {
531
- "aria-label": f(a).spacingControl.decreaseLeft,
532
- class: m([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
533
- onClick: n[3] ||= (e) => u("left", -1)
534
- }, [p(f(B), {
535
- size: 12,
536
- "stroke-width": 2
537
- })], 10, Wt),
538
- x("input", {
539
- type: "number",
540
- class: m(Z),
541
- value: e.modelValue.left,
542
- "aria-label": f(a).spacingControl.left,
543
- min: "0",
544
- onInput: n[4] ||= (e) => d("left", Number(e.target.value))
545
- }, null, 40, Gt),
546
- x("button", {
547
- "aria-label": f(a).spacingControl.increaseLeft,
548
- class: m([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
549
- onClick: n[5] ||= (e) => u("left", 1)
550
- }, [p(f(R), {
551
- size: 12,
552
- "stroke-width": 2
553
- })], 10, Kt)
554
- ]),
555
- x("button", {
556
- class: m(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", l.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
557
- "aria-label": l.value ? f(a).spacingControl.unlock : f(a).spacingControl.lockAll,
558
- title: l.value ? f(a).spacingControl.unlock : f(a).spacingControl.lockAll,
559
- onClick: _
560
- }, [l.value ? (o(), y(f(Ie), {
561
- key: 0,
562
- size: 14,
563
- "stroke-width": 2
564
- })) : (o(), y(f(je), {
565
- key: 1,
566
- size: 14,
567
- "stroke-width": 2
568
- }))], 10, qt),
569
- x("div", Jt, [
570
- x("button", {
571
- "aria-label": f(a).spacingControl.decreaseRight,
572
- class: m([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
573
- onClick: n[6] ||= (e) => u("right", -1)
574
- }, [p(f(B), {
575
- size: 12,
576
- "stroke-width": 2
577
- })], 10, Yt),
578
- x("input", {
579
- type: "number",
580
- class: m(Z),
581
- value: e.modelValue.right,
582
- "aria-label": f(a).spacingControl.right,
583
- min: "0",
584
- onInput: n[7] ||= (e) => d("right", Number(e.target.value))
585
- }, null, 40, Xt),
586
- x("button", {
587
- "aria-label": f(a).spacingControl.increaseRight,
588
- class: m([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
589
- onClick: n[8] ||= (e) => u("right", 1)
590
- }, [p(f(R), {
591
- size: 12,
592
- "stroke-width": 2
593
- })], 10, Zt)
594
- ])
595
- ]),
596
- x("div", Qt, [
597
- x("button", {
598
- "aria-label": f(a).spacingControl.decreaseBottom,
599
- class: m([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
600
- onClick: n[9] ||= (e) => u("bottom", -1)
601
- }, [p(f(B), {
602
- size: 12,
603
- "stroke-width": 2
604
- })], 10, $t),
605
- x("input", {
606
- type: "number",
607
- class: m(Z),
608
- value: e.modelValue.bottom,
609
- "aria-label": f(a).spacingControl.bottom,
610
- min: "0",
611
- onInput: n[10] ||= (e) => d("bottom", Number(e.target.value))
612
- }, null, 40, en),
613
- x("button", {
614
- "aria-label": f(a).spacingControl.increaseBottom,
615
- class: m([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
616
- onClick: n[11] ||= (e) => u("bottom", 1)
617
- }, [p(f(R), {
618
- size: 12,
619
- "stroke-width": 2
620
- })], 10, tn)
621
- ])
622
- ])]));
623
- }
624
- }), [["__scopeId", "data-v-69591c1e"]]), rn = { class: "tpl:space-y-3.5" }, an = ["data-testid"], on = ["data-testid"], sn = ["data-testid"], cn = ["aria-label", "data-testid"], ln = [
625
- "aria-label",
626
- "title",
627
- "aria-pressed",
628
- "data-testid",
629
- "onClick"
630
- ], un = ["data-testid"], dn = /* @__PURE__ */ l({
631
- __name: "BackgroundImageControl",
632
- props: {
633
- modelValue: {},
634
- testidPrefix: {}
635
- },
636
- emits: ["update:modelValue"],
637
- setup(e, { emit: t }) {
638
- let i = e, a = t, { t: c } = L(), l = n(me, ne.liquid), u = h(() => typeof i.modelValue?.url == "string" ? i.modelValue.url : ""), d = h(() => u.value.trim() !== "");
639
- function v(e) {
640
- e.trim() === "" ? a("update:modelValue", void 0) : a("update:modelValue", i.modelValue ? {
641
- ...i.modelValue,
642
- url: e
643
- } : D(e));
644
- }
645
- function b(e) {
646
- i.modelValue && a("update:modelValue", {
647
- ...i.modelValue,
648
- ...e
649
- });
650
- }
651
- let S = h(() => [
652
- {
653
- value: "cover",
654
- label: c.blockSettings.backgroundSizeCover
655
- },
656
- {
657
- value: "contain",
658
- label: c.blockSettings.backgroundSizeContain
659
- },
660
- {
661
- value: "auto",
662
- label: c.blockSettings.backgroundSizeAuto
663
- }
664
- ]), T = h(() => ({
665
- "top-left": c.blockSettings.backgroundPositionTopLeft,
666
- "top-center": c.blockSettings.backgroundPositionTopCenter,
667
- "top-right": c.blockSettings.backgroundPositionTopRight,
668
- "center-left": c.blockSettings.backgroundPositionCenterLeft,
669
- "center-center": c.blockSettings.backgroundPositionCenter,
670
- "center-right": c.blockSettings.backgroundPositionCenterRight,
671
- "bottom-left": c.blockSettings.backgroundPositionBottomLeft,
672
- "bottom-center": c.blockSettings.backgroundPositionBottomCenter,
673
- "bottom-right": c.blockSettings.backgroundPositionBottomRight
674
- })), O = h(() => ee.flatMap((e) => re.map((t) => ({
675
- x: t,
676
- y: e,
677
- label: T.value[`${e}-${t}`]
678
- }))));
679
- function k(e) {
680
- return i.modelValue?.position?.x === e.x && i.modelValue?.position?.y === e.y;
681
- }
682
- let A = s(), { canBrowse: j, isUploading: M, showOverlay: N, openMediaBrowser: F } = oe({
683
- target: A,
684
- blocked: () => P(u.value, l),
685
- apply: (e) => v(e.url)
686
- });
687
- return (t, n) => (o(), g("div", rn, [x("div", null, [x("label", { class: m(f(V)) }, w(f(c).blockSettings.backgroundImage), 3), x("div", {
688
- ref_key: "dropZoneRef",
689
- ref: A,
690
- class: "tpl:relative",
691
- "data-testid": `${e.testidPrefix}-bg-url`
692
- }, [
693
- f(N) ? (o(), y(I, {
694
- key: 0,
695
- uploading: f(M)
696
- }, null, 8, ["uploading"])) : _("", !0),
697
- p(q, {
698
- "model-value": u.value,
699
- type: "url",
700
- placeholder: f(c).blockSettings.backgroundImagePlaceholder,
701
- "onUpdate:modelValue": v
702
- }, null, 8, ["model-value", "placeholder"]),
703
- f(j) ? (o(), g("button", {
704
- key: 1,
705
- type: "button",
706
- "data-testid": `${e.testidPrefix}-bg-browse`,
707
- 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",
708
- style: {
709
- "border-color": "var(--tpl-border)",
710
- color: "var(--tpl-primary)",
711
- "background-color": "var(--tpl-bg)"
712
- },
713
- onClick: n[0] ||= (...e) => f(F) && f(F)(...e)
714
- }, [p(f(Fe), {
715
- size: 14,
716
- "stroke-width": 1.5
717
- }), E(" " + w(f(c).image.browseMedia), 1)], 8, on)) : _("", !0)
718
- ], 8, an)]), d.value && e.modelValue ? (o(), g(C, { key: 0 }, [
719
- x("div", { "data-testid": `${e.testidPrefix}-bg-size` }, [x("label", { class: m(f(V)) }, w(f(c).blockSettings.backgroundSize), 3), p(J, {
720
- options: S.value,
721
- "model-value": e.modelValue.size,
722
- "onUpdate:modelValue": n[1] ||= (e) => b({ size: e })
723
- }, null, 8, ["options", "model-value"])], 8, sn),
724
- x("div", null, [x("label", { class: m(f(V)) }, w(f(c).blockSettings.backgroundPosition), 3), x("div", {
725
- role: "group",
726
- "aria-label": f(c).blockSettings.backgroundPosition,
727
- "data-testid": `${e.testidPrefix}-bg-position`,
728
- class: "tpl:grid tpl:w-24 tpl:grid-cols-3 tpl:gap-1"
729
- }, [(o(!0), g(C, null, r(O.value, (t) => (o(), g("button", {
730
- key: `${t.y}-${t.x}`,
731
- type: "button",
732
- "aria-label": t.label,
733
- title: t.label,
734
- "aria-pressed": k(t),
735
- "data-testid": `${e.testidPrefix}-bg-position-${t.y}-${t.x}`,
736
- class: m(["tpl:flex tpl:h-6 tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:transition-colors", k(t) ? "tpl:border-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:hover:border-[var(--tpl-text-dim)]"]),
737
- onClick: (e) => b({ position: {
738
- x: t.x,
739
- y: t.y
740
- } })
741
- }, [x("span", { class: m(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", k(t) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10, ln))), 128))], 8, cn)]),
742
- x("div", { "data-testid": `${e.testidPrefix}-bg-repeat` }, [p(K, {
743
- class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
744
- "model-value": e.modelValue.repeat,
745
- label: f(c).blockSettings.backgroundRepeat,
746
- "onUpdate:modelValue": n[2] ||= (e) => b({ repeat: e })
747
- }, null, 8, ["model-value", "label"])], 8, un)
748
- ], 64)) : _("", !0)]));
749
- }
750
- }), fn = ["data-testid"], pn = { class: "tpl:mt-3" }, mn = /* @__PURE__ */ l({
751
- __name: "CollapsibleSection",
752
- props: {
753
- title: {},
754
- open: { type: Boolean },
755
- noBorder: { type: Boolean },
756
- headerTestId: {}
757
- },
758
- emits: ["toggle"],
759
- setup(e) {
760
- return (t, n) => (o(), g("div", { class: m(["tpl:py-3", e.noBorder ? "" : "tpl:border-t tpl:border-[var(--tpl-border)]"]) }, [x("button", {
761
- type: "button",
762
- "data-testid": e.headerTestId,
763
- 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)]",
764
- onClick: n[0] ||= (e) => t.$emit("toggle")
765
- }, [p(f(Ce), {
766
- class: m(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
767
- size: 12,
768
- "stroke-width": 2
769
- }, null, 8, ["class"]), x("span", null, w(e.title), 1)], 8, fn), u(x("div", pn, [a(t.$slots, "default")], 512), [[S, e.open]])], 2));
770
- }
771
- }), hn = { class: "tpl:space-y-2" }, gn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, _n = { class: "tpl:space-y-2" }, vn = ["value"], yn = { value: "" }, bn = ["label"], xn = ["value"], Sn = ["value"], Cn = {
772
- key: 0,
773
- value: "__custom__"
774
- }, wn = {
775
- key: 0,
776
- class: "tpl:space-y-2"
777
- }, Tn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, En = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Dn = { class: "tpl:flex tpl:justify-end" }, On = ["disabled"], kn = {
778
- key: 0,
779
- class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
780
- }, An = { class: "tpl:space-y-1" }, jn = { 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)]" }, Mn = {
781
- key: 0,
782
- 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)]"
783
- }, Nn = /* @__PURE__ */ l({
784
- __name: "CommonBlockSettings",
785
- props: {
786
- block: {},
787
- isFirstSection: { type: Boolean }
788
- },
789
- emits: ["update"],
790
- setup(e, { emit: a }) {
791
- let l = e, v = a, { t: S } = L(), T = n(ge, []), D = n(_e, !1), O = d(/* @__PURE__ */ new Set()), k = s(!1), A = s(""), j = s(""), M = [{
792
- key: "desktop",
793
- icon: Oe,
794
- labelKey: "showOnDesktop"
795
- }, {
796
- key: "mobile",
797
- icon: Te,
798
- labelKey: "showOnMobile"
799
- }];
800
- function N(e) {
801
- O.has(e) ? O.delete(e) : O.add(e);
802
- }
803
- let ee = h(() => T.length > 0 || D), P = h(() => l.block.displayCondition ? !T.some((e) => e.label === l.block.displayCondition?.label) : !1);
804
- function F() {
805
- k.value = !0, P.value && l.block.displayCondition ? (A.value = l.block.displayCondition.before, j.value = l.block.displayCondition.after ?? "") : (A.value = "", j.value = "");
806
- }
807
- function te() {
808
- A.value.trim() && (v("update", { displayCondition: {
809
- label: S.blockSettings.customCondition,
810
- before: A.value.trim(),
811
- after: j.value.trim()
812
- } }), k.value = !1, A.value = "", j.value = "");
813
- }
814
- t(() => l.block.displayCondition, (e) => {
815
- e ? P.value && (A.value = e.before, j.value = e.after ?? "") : (k.value = !1, A.value = "", j.value = "");
816
- }, { immediate: !0 });
817
- let ne = h(() => {
818
- let e = {};
819
- for (let t of T) {
820
- let n = t.group ?? "";
821
- e[n] || (e[n] = []), e[n].push(t);
822
- }
823
- return e;
824
- });
825
- function re(e, t) {
826
- v("update", { styles: {
827
- ...l.block.styles,
828
- [e]: t
829
- } });
830
- }
831
- function I(e) {
832
- return l.block.visibility?.[e] !== !1;
833
- }
834
- function ie(e) {
835
- let t = {
836
- desktop: I("desktop"),
837
- mobile: I("mobile")
838
- };
839
- t[e] = !t[e], v("update", { visibility: t });
840
- }
841
- return (t, n) => (o(), g("div", { class: m(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
842
- p(mn, {
843
- title: f(S).blockSettings.spacing,
844
- open: O.has("spacing"),
845
- "no-border": e.isFirstSection,
846
- onToggle: n[1] ||= (e) => N("spacing")
847
- }, {
848
- default: i(() => [p(nn, {
849
- label: f(S).blockSettings.padding,
850
- "model-value": e.block.styles.padding,
851
- "onUpdate:modelValue": n[0] ||= (e) => re("padding", e)
852
- }, null, 8, ["label", "model-value"])]),
853
- _: 1
854
- }, 8, [
855
- "title",
856
- "open",
857
- "no-border"
858
- ]),
859
- p(mn, {
860
- title: f(S).blockSettings.background,
861
- open: O.has("bg"),
862
- "header-test-id": "block-settings-background",
863
- onToggle: n[4] ||= (e) => N("bg")
864
- }, {
865
- default: i(() => [
866
- x("label", { class: m(f(V)) }, w(f(S).blockSettings.color), 3),
867
- p(G, {
868
- "model-value": e.block.styles.backgroundColor ?? "",
869
- "allow-transparent": "",
870
- "onUpdate:modelValue": n[2] ||= (e) => re("backgroundColor", e)
871
- }, null, 8, ["model-value"]),
872
- e.block.type === "section" ? (o(), y(dn, {
873
- key: 0,
874
- class: "tpl:mt-3.5",
875
- "model-value": e.block.backgroundImage,
876
- "testid-prefix": "section",
877
- "onUpdate:modelValue": n[3] ||= (e) => v("update", { backgroundImage: e })
878
- }, null, 8, ["model-value"])) : _("", !0)
879
- ]),
880
- _: 1
881
- }, 8, ["title", "open"]),
882
- p(mn, {
883
- title: f(S).blockSettings.display,
884
- open: O.has("display"),
885
- onToggle: n[5] ||= (e) => N("display")
886
- }, {
887
- default: i(() => [x("div", hn, [(o(), g(C, null, r(M, (e) => p(K, {
888
- key: e.key,
889
- class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
890
- "model-value": I(e.key),
891
- label: f(S).blockSettings[e.labelKey],
892
- "onUpdate:modelValue": (t) => ie(e.key)
893
- }, {
894
- default: i(() => [x("span", gn, [(o(), y(c(e.icon), {
895
- size: 14,
896
- "stroke-width": 1.5
897
- })), E(" " + w(f(S).blockSettings[e.labelKey]), 1)])]),
898
- _: 2
899
- }, 1032, [
900
- "model-value",
901
- "label",
902
- "onUpdate:modelValue"
903
- ])), 64))])]),
904
- _: 1
905
- }, 8, ["title", "open"]),
906
- ee.value ? (o(), y(mn, {
907
- key: 0,
908
- "header-test-id": "display-condition-section",
909
- title: f(S).blockSettings.displayCondition,
910
- open: O.has("condition"),
911
- onToggle: n[9] ||= (e) => N("condition")
912
- }, {
913
- default: i(() => [x("div", _n, [x("select", {
914
- "data-testid": "display-condition-select",
915
- class: m(["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)]"]),
916
- value: k.value || P.value ? "__custom__" : e.block.displayCondition?.label ?? "",
917
- onChange: n[6] ||= (e) => {
918
- let t = e.target.value;
919
- if (t === "__custom__") {
920
- F();
921
- return;
922
- }
923
- if (k.value = !1, !t) {
924
- v("update", { displayCondition: void 0 });
925
- return;
926
- }
927
- let n = f(T).find((e) => e.label === t);
928
- n && v("update", { displayCondition: n });
929
- }
930
- }, [
931
- x("option", yn, w(f(S).blockSettings.noCondition), 1),
932
- (o(!0), g(C, null, r(ne.value, (e, t) => (o(), g(C, { key: t }, [t ? (o(), g("optgroup", {
933
- key: 0,
934
- label: String(t)
935
- }, [(o(!0), g(C, null, r(e, (e) => (o(), g("option", {
936
- key: e.label,
937
- value: e.label
938
- }, w(e.label), 9, xn))), 128))], 8, bn)) : (o(!0), g(C, { key: 1 }, r(e, (e) => (o(), g("option", {
939
- key: e.label,
940
- value: e.label
941
- }, w(e.label), 9, Sn))), 128))], 64))), 128)),
942
- f(D) ? (o(), g("option", Cn, w(f(S).blockSettings.customCondition), 1)) : _("", !0)
943
- ], 42, vn), k.value || P.value ? (o(), g("div", wn, [
944
- x("div", null, [x("label", Tn, w(f(S).blockSettings.customConditionBefore), 1), u(x("textarea", {
945
- "onUpdate:modelValue": n[7] ||= (e) => A.value = e,
946
- rows: "2",
947
- class: m(f(Be))
948
- }, null, 2), [[b, A.value]])]),
949
- x("div", null, [x("label", En, w(f(S).blockSettings.customConditionAfter), 1), u(x("textarea", {
950
- "onUpdate:modelValue": n[8] ||= (e) => j.value = e,
951
- rows: "2",
952
- class: m(f(Be))
953
- }, null, 2), [[b, j.value]])]),
954
- x("div", Dn, [x("button", {
955
- type: "button",
956
- class: m(f(We)),
957
- disabled: !A.value.trim(),
958
- onClick: te
959
- }, w(f(S).blockSettings.applyCondition), 11, On)])
960
- ])) : e.block.displayCondition && !P.value ? (o(), g(C, { key: 1 }, [e.block.displayCondition.description ? (o(), g("p", kn, w(e.block.displayCondition.description), 1)) : _("", !0), x("div", An, [x("pre", jn, w(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (o(), g("pre", Mn, w(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)])]),
961
- _: 1
962
- }, 8, ["title", "open"])) : _("", !0)
963
- ], 2));
964
- }
965
- }), Pn = ["title"], Fn = /* @__PURE__ */ l({
966
- __name: "BooleanField",
967
- props: {
968
- field: {},
969
- modelValue: { type: Boolean },
970
- readOnly: { type: Boolean }
971
- },
972
- emits: ["update:modelValue"],
973
- setup(e, { emit: t }) {
974
- let n = t, { t: r } = L();
975
- return (t, a) => (o(), g("div", {
976
- class: "tpl:mb-3.5",
977
- title: e.readOnly ? f(r).customBlocks.dataSource.readOnlyTooltip : void 0
978
- }, [p(K, {
979
- class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
980
- "model-value": e.modelValue,
981
- label: e.field.label,
982
- required: e.field.required,
983
- disabled: e.readOnly,
984
- "onUpdate:modelValue": a[0] ||= (e) => n("update:modelValue", e)
985
- }, {
986
- default: i(() => [E(w(e.field.label) + " ", 1), e.readOnly ? (o(), y(f(Ie), {
987
- key: 0,
988
- size: 12,
989
- class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
990
- })) : _("", !0)]),
991
- _: 1
992
- }, 8, [
993
- "model-value",
994
- "label",
995
- "required",
996
- "disabled"
997
- ])], 8, Pn));
998
- }
999
- }), In = { class: "tpl:mb-3.5" }, Ln = ["title"], Rn = { class: "tpl-sr-only" }, zn = ["title"], Bn = { class: "tpl-sr-only" }, Q = /* @__PURE__ */ l({
1000
- __name: "FieldWrapper",
1001
- props: {
1002
- label: {},
1003
- required: { type: Boolean },
1004
- readOnly: { type: Boolean }
1005
- },
1006
- setup(e) {
1007
- let { t } = L();
1008
- return (n, r) => (o(), g("div", In, [x("label", { class: m(f(V)) }, [
1009
- E(w(e.label) + " ", 1),
1010
- e.readOnly ? (o(), g("span", {
1011
- key: 0,
1012
- title: f(t).customBlocks.dataSource.readOnlyTooltip
1013
- }, [p(f(Ie), {
1014
- size: 12,
1015
- class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
1016
- "aria-hidden": "true"
1017
- }), x("span", Rn, w(f(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, Ln)) : _("", !0),
1018
- e.required ? (o(), g("span", {
1019
- key: 1,
1020
- class: "tpl:text-[var(--tpl-danger)]",
1021
- title: f(t).customBlocks.fields.required
1022
- }, [r[0] ||= x("span", { "aria-hidden": "true" }, "*", -1), x("span", Bn, w(f(t).customBlocks.fields.required), 1)], 8, zn)) : _("", !0)
1023
- ], 2), a(n.$slots, "default")]));
1024
- }
1025
- }), Vn = /* @__PURE__ */ l({
1026
- __name: "ColorField",
1027
- props: {
1028
- field: {},
1029
- modelValue: {},
1030
- readOnly: { type: Boolean }
1031
- },
1032
- emits: ["update:modelValue"],
1033
- setup(e, { emit: t }) {
1034
- let r = e, a = t, { t: s } = L(), c = n(he, be), l = h(() => se(r.field, c));
1035
- return (t, n) => (o(), y(Q, {
1036
- label: e.field.label,
1037
- required: e.field.required,
1038
- "read-only": e.readOnly
1039
- }, {
1040
- default: i(() => [p(G, {
1041
- "model-value": e.modelValue,
1042
- placeholder: e.field.placeholder,
1043
- disabled: e.readOnly,
1044
- presets: l.value.presets,
1045
- "allow-custom": l.value.allowCustom,
1046
- title: e.readOnly ? f(s).customBlocks.dataSource.readOnlyTooltip : void 0,
1047
- "onUpdate:modelValue": n[0] ||= (e) => a("update:modelValue", e)
1048
- }, null, 8, [
1049
- "model-value",
1050
- "placeholder",
1051
- "disabled",
1052
- "presets",
1053
- "allow-custom",
1054
- "title"
1055
- ])]),
1056
- _: 1
1057
- }, 8, [
1058
- "label",
1059
- "required",
1060
- "read-only"
1061
- ]));
1062
- }
1063
- }), Hn = [
1064
- "value",
1065
- "placeholder",
1066
- "title"
1067
- ], Un = ["value", "placeholder"], Wn = /* @__PURE__ */ l({
1068
- __name: "ImageField",
1069
- props: {
1070
- field: {},
1071
- modelValue: {},
1072
- readOnly: { type: Boolean }
1073
- },
1074
- emits: ["update:modelValue"],
1075
- setup(e, { emit: t }) {
1076
- let n = e, r = t, { t: a } = L(), c = s(), { canBrowse: l, isUploading: u, showOverlay: d, openMediaBrowser: h } = oe({
1077
- target: c,
1078
- blocked: () => !!n.readOnly,
1079
- apply: (e) => r("update:modelValue", e.url)
1080
- });
1081
- return (t, n) => (o(), y(Q, {
1082
- label: e.field.label,
1083
- required: e.field.required,
1084
- "read-only": e.readOnly
1085
- }, {
1086
- default: i(() => [x("div", {
1087
- ref_key: "dropZoneRef",
1088
- ref: c,
1089
- class: "tpl:relative"
1090
- }, [
1091
- f(d) ? (o(), y(I, {
1092
- key: 0,
1093
- uploading: f(u)
1094
- }, null, 8, ["uploading"])) : _("", !0),
1095
- e.readOnly ? (o(), g("input", {
1096
- key: 1,
1097
- type: "url",
1098
- class: m([f(W), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1099
- value: e.modelValue,
1100
- placeholder: e.field.placeholder || "https://...",
1101
- disabled: "",
1102
- title: f(a).customBlocks.dataSource.readOnlyTooltip
1103
- }, null, 10, Hn)) : (o(), g("input", {
1104
- key: 2,
1105
- type: "url",
1106
- class: m(f(W)),
1107
- value: e.modelValue,
1108
- placeholder: e.field.placeholder || "https://...",
1109
- onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
1110
- }, null, 42, Un)),
1111
- f(l) && !e.readOnly ? (o(), g("button", {
1112
- key: 3,
1113
- 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)]",
1114
- onClick: n[1] ||= (e) => f(h)()
1115
- }, [p(f(Fe), {
1116
- size: 14,
1117
- "stroke-width": 1.5
1118
- }), E(" " + w(f(a).image.browseMedia), 1)])) : _("", !0)
1119
- ], 512)]),
1120
- _: 1
1121
- }, 8, [
1122
- "label",
1123
- "required",
1124
- "read-only"
1125
- ]));
1126
- }
1127
- }), Gn = [
1128
- "value",
1129
- "placeholder",
1130
- "min",
1131
- "max",
1132
- "step",
1133
- "disabled",
1134
- "title"
1135
- ], Kn = /* @__PURE__ */ l({
1136
- __name: "NumberField",
1137
- props: {
1138
- field: {},
1139
- modelValue: {},
1140
- readOnly: { type: Boolean }
1141
- },
1142
- emits: ["update:modelValue"],
1143
- setup(e, { emit: t }) {
1144
- let n = t, { t: r } = L();
1145
- return (t, a) => (o(), y(Q, {
1146
- label: e.field.label,
1147
- required: e.field.required,
1148
- "read-only": e.readOnly
1149
- }, {
1150
- default: i(() => [x("input", {
1151
- type: "number",
1152
- class: m([f(W), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1153
- value: e.modelValue,
1154
- placeholder: e.field.placeholder,
1155
- min: e.field.min,
1156
- max: e.field.max,
1157
- step: e.field.step,
1158
- disabled: e.readOnly,
1159
- title: e.readOnly ? f(r).customBlocks.dataSource.readOnlyTooltip : void 0,
1160
- onInput: a[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
1161
- }, null, 42, Gn)]),
1162
- _: 1
1163
- }, 8, [
1164
- "label",
1165
- "required",
1166
- "read-only"
1167
- ]));
1168
- }
1169
- }), qn = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Jn = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Yn = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Xn = ["title", "onClick"], Zn = {
1170
- key: 1,
1171
- class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1172
- }, Qn = {
1173
- key: 2,
1174
- class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1175
- }, $n = /* @__PURE__ */ l({
1176
- __name: "RepeatableField",
1177
- props: {
1178
- field: {},
1179
- modelValue: {},
1180
- readOnly: { type: Boolean }
1181
- },
1182
- emits: ["update:modelValue"],
1183
- setup(e, { emit: t }) {
1184
- let n = e, a = t, { t: s, format: l } = L(), u = h(() => n.modelValue || []), d = h(() => !n.field.maxItems || u.value.length < n.field.maxItems), v = h(() => !n.field.minItems || u.value.length > n.field.minItems);
1185
- function b() {
1186
- if (!d.value || n.readOnly) return;
1187
- let e = {};
1188
- for (let t of n.field.fields) e[t.key] = t.default ?? "";
1189
- a("update:modelValue", [...u.value, e]);
1190
- }
1191
- function S(e) {
1192
- if (!v.value || n.readOnly) return;
1193
- let t = [...u.value];
1194
- t.splice(e, 1), a("update:modelValue", t);
1195
- }
1196
- function T(e, t, n) {
1197
- let r = u.value.map((r, i) => i === e ? {
1198
- ...r,
1199
- [t]: n
1200
- } : r);
1201
- a("update:modelValue", r);
1202
- }
1203
- return (t, n) => (o(), y(Q, {
1204
- label: e.field.label,
1205
- required: e.field.required,
1206
- "read-only": e.readOnly
1207
- }, {
1208
- default: i(() => [x("div", qn, [
1209
- (o(!0), g(C, null, r(u.value, (t, n) => (o(), g("div", {
1210
- key: `${e.field.key}-${n}`,
1211
- class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
1212
- }, [x("div", Jn, [x("span", Yn, " #" + w(n + 1), 1), v.value && !e.readOnly ? (o(), g("button", {
1213
- key: 0,
1214
- type: "button",
1215
- 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)]",
1216
- title: f(s).customBlocks.fields.removeItem,
1217
- onClick: (e) => S(n)
1218
- }, [p(f(ke), {
1219
- size: 12,
1220
- "stroke-width": 2
1221
- })], 8, Xn)) : _("", !0)]), (o(!0), g(C, null, r(e.field.fields, (r) => (o(), y(c(f(cr)(r.type)), {
1222
- key: r.key,
1223
- field: r,
1224
- "model-value": t[r.key],
1225
- "read-only": e.readOnly,
1226
- "onUpdate:modelValue": (e) => T(n, r.key, e)
1227
- }, null, 8, [
1228
- "field",
1229
- "model-value",
1230
- "read-only",
1231
- "onUpdate:modelValue"
1232
- ]))), 128))]))), 128)),
1233
- d.value && !e.readOnly ? (o(), g("button", {
1234
- key: 0,
1235
- type: "button",
1236
- class: m(f(He)),
1237
- onClick: b
1238
- }, [p(f(R), {
1239
- size: 14,
1240
- "stroke-width": 2
1241
- }), E(" " + w(f(s).customBlocks.fields.addItem), 1)], 2)) : _("", !0),
1242
- !d.value && !e.readOnly ? (o(), g("p", Zn, w(f(s).customBlocks.fields.maxItemsReached), 1)) : _("", !0),
1243
- !v.value && !e.readOnly ? (o(), g("p", Qn, w(f(l)(f(s).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : _("", !0)
1244
- ])]),
1245
- _: 1
1246
- }, 8, [
1247
- "label",
1248
- "required",
1249
- "read-only"
1250
- ]));
1251
- }
1252
- }), er = [
1253
- "value",
1254
- "disabled",
1255
- "title"
1256
- ], tr = ["value"], nr = /* @__PURE__ */ l({
1257
- __name: "SelectField",
1258
- props: {
1259
- field: {},
1260
- modelValue: {},
1261
- readOnly: { type: Boolean }
1262
- },
1263
- emits: ["update:modelValue"],
1264
- setup(e, { emit: t }) {
1265
- let n = t, { t: a } = L();
1266
- return (t, s) => (o(), y(Q, {
1267
- label: e.field.label,
1268
- required: e.field.required,
1269
- "read-only": e.readOnly
1270
- }, {
1271
- default: i(() => [x("select", {
1272
- class: m([f(W), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1273
- value: e.modelValue,
1274
- disabled: e.readOnly,
1275
- title: e.readOnly ? f(a).customBlocks.dataSource.readOnlyTooltip : void 0,
1276
- onChange: s[0] ||= (t) => !e.readOnly && n("update:modelValue", t.target.value)
1277
- }, [(o(!0), g(C, null, r(e.field.options, (e) => (o(), g("option", {
1278
- key: e.value,
1279
- value: e.value
1280
- }, w(e.label), 9, tr))), 128))], 42, er)]),
1281
- _: 1
1282
- }, 8, [
1283
- "label",
1284
- "required",
1285
- "read-only"
1286
- ]));
1287
- }
1288
- }), rr = [
1289
- "value",
1290
- "placeholder",
1291
- "title"
1292
- ], ir = /* @__PURE__ */ l({
1293
- __name: "TextField",
1294
- props: {
1295
- field: {},
1296
- modelValue: {},
1297
- readOnly: { type: Boolean }
1298
- },
1299
- emits: ["update:modelValue"],
1300
- setup(e, { emit: t }) {
1301
- let n = t, { t: r } = L();
1302
- return (t, a) => (o(), y(Q, {
1303
- label: e.field.label,
1304
- required: e.field.required,
1305
- "read-only": e.readOnly
1306
- }, {
1307
- default: i(() => [e.readOnly ? (o(), g("input", {
1308
- key: 0,
1309
- type: "text",
1310
- class: m([f(W), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1311
- value: e.modelValue,
1312
- placeholder: e.field.placeholder,
1313
- disabled: "",
1314
- title: f(r).customBlocks.dataSource.readOnlyTooltip
1315
- }, null, 10, rr)) : (o(), y(q, {
1316
- key: 1,
1317
- "model-value": e.modelValue,
1318
- placeholder: e.field.placeholder,
1319
- "onUpdate:modelValue": a[0] ||= (e) => n("update:modelValue", e)
1320
- }, null, 8, ["model-value", "placeholder"]))]),
1321
- _: 1
1322
- }, 8, [
1323
- "label",
1324
- "required",
1325
- "read-only"
1326
- ]));
1327
- }
1328
- }), ar = [
1329
- "value",
1330
- "placeholder",
1331
- "title"
1332
- ], or = "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", sr = {
1333
- text: ir,
1334
- textarea: /* @__PURE__ */ l({
1335
- __name: "TextareaField",
1336
- props: {
1337
- field: {},
1338
- modelValue: {},
1339
- readOnly: { type: Boolean }
1340
- },
1341
- emits: ["update:modelValue"],
1342
- setup(e, { emit: t }) {
1343
- let n = t, { t: r } = L();
1344
- return (t, a) => (o(), y(Q, {
1345
- label: e.field.label,
1346
- required: e.field.required,
1347
- "read-only": e.readOnly
1348
- }, {
1349
- default: i(() => [e.readOnly ? (o(), g("textarea", {
1350
- key: 0,
1351
- value: e.modelValue,
1352
- placeholder: e.field.placeholder,
1353
- rows: "3",
1354
- disabled: "",
1355
- title: f(r).customBlocks.dataSource.readOnlyTooltip,
1356
- class: m(or)
1357
- }, null, 8, ar)) : (o(), y(Ke, {
1358
- key: 1,
1359
- "model-value": e.modelValue,
1360
- placeholder: e.field.placeholder,
1361
- "onUpdate:modelValue": a[0] ||= (e) => n("update:modelValue", e)
1362
- }, null, 8, ["model-value", "placeholder"]))]),
1363
- _: 1
1364
- }, 8, [
1365
- "label",
1366
- "required",
1367
- "read-only"
1368
- ]));
1369
- }
1370
- }),
1371
- image: Wn,
1372
- color: Vn,
1373
- number: Kn,
1374
- select: nr,
1375
- boolean: Fn,
1376
- repeatable: $n
1377
- };
1378
- function cr(e) {
1379
- return sr[e] ?? ir;
1380
- }
1381
- //#endregion
1382
- //#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
1383
- var lr = {
1384
- key: 0,
1385
- class: "tpl:p-4"
1386
- }, ur = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, dr = { key: 1 }, fr = {
1387
- key: 0,
1388
- class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1389
- }, pr = {
1390
- key: 1,
1391
- class: "tpl:mb-4"
1392
- }, mr = {
1393
- key: 1,
1394
- class: "tpl:flex tpl:h-[32px] tpl:items-center"
1395
- }, hr = {
1396
- key: 0,
1397
- class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
1398
- }, gr = {
1399
- key: 2,
1400
- class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
1401
- }, _r = /* @__PURE__ */ l({
1402
- __name: "CustomBlockToolbar",
1403
- props: { block: {} },
1404
- emits: ["updateFieldValues", "updateDataSourceFetched"],
1405
- setup(e, { emit: t }) {
1406
- let i = e, a = t, { t: s } = L(), l = n(ve, []), u = h(() => l.find((e) => e.type === i.block.customType)), d = h(() => i.block), { isFetching: m, fetchError: v, fetch: b, hasDataSource: S, needsFetch: T } = ae({
1407
- definition: u,
1408
- block: d,
1409
- onUpdate: (e, t) => {
1410
- a("updateFieldValues", e), a("updateDataSourceFetched", t);
1411
- }
1412
- });
1413
- function D(e) {
1414
- return e.readOnly === !0 && S.value && !!i.block.dataSourceFetched;
1415
- }
1416
- function O(e, t) {
1417
- a("updateFieldValues", {
1418
- ...i.block.fieldValues,
1419
- [e]: t
1420
- });
1421
- }
1422
- return (t, n) => u.value ? (o(), g("div", dr, [
1423
- u.value.description ? (o(), g("p", fr, w(u.value.description), 1)) : _("", !0),
1424
- f(S) ? (o(), g("div", pr, [f(T) && !f(m) ? (o(), g("button", {
1425
- key: 0,
1426
- type: "button",
1427
- 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)]",
1428
- onClick: n[0] ||= (...e) => f(b) && f(b)(...e)
1429
- }, w(u.value?.dataSource?.label || f(s).customBlocks.dataSource.fetchButton), 1)) : (o(), g("div", mr, [f(m) ? (o(), g("div", hr, w(f(s).customBlocks.dataSource.fetching), 1)) : (o(), g("button", {
1430
- key: 1,
1431
- type: "button",
1432
- 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)]",
1433
- onClick: n[1] ||= (...e) => f(b) && f(b)(...e)
1434
- }, [p(f(xe), { size: 12 }), E(" " + w(f(s).customBlocks.dataSource.changeButton), 1)]))])), f(v) ? (o(), g("p", gr, [p(f(we), {
1435
- size: 14,
1436
- class: "tpl:shrink-0"
1437
- }), E(" " + w(f(s).customBlocks.dataSource.fetchError), 1)])) : _("", !0)])) : _("", !0),
1438
- (o(!0), g(C, null, r(u.value.fields, (t) => (o(), y(c(f(cr)(t.type)), {
1439
- key: t.key,
1440
- field: t,
1441
- "model-value": e.block.fieldValues[t.key],
1442
- "read-only": D(t),
1443
- "onUpdate:modelValue": (e) => O(t.key, e)
1444
- }, null, 8, [
1445
- "field",
1446
- "model-value",
1447
- "read-only",
1448
- "onUpdate:modelValue"
1449
- ]))), 128))
1450
- ])) : (o(), g("div", lr, [x("p", ur, w(f(s).customBlocks.toolbar.noDefinition), 1)]));
1451
- }
1452
- }), vr = { class: "tpl:mb-3.5" }, yr = { class: "tpl:mb-3.5" }, br = { class: "tpl:mb-3.5" }, xr = { class: "tpl:flex tpl:items-stretch" }, Sr = ["value"], Cr = /* @__PURE__ */ l({
1453
- __name: "DividerToolbar",
1454
- props: { block: {} },
1455
- emits: ["update"],
1456
- setup(e, { emit: t }) {
1457
- let n = t, { t: r } = L();
1458
- function i(e, t) {
1459
- n("update", { [e]: t });
1460
- }
1461
- return (t, n) => (o(), g(C, null, [
1462
- x("div", vr, [x("label", { class: m(f(V)) }, w(f(r).divider.style), 3), p(J, {
1463
- options: [
1464
- {
1465
- value: "solid",
1466
- label: f(r).divider.solid
1467
- },
1468
- {
1469
- value: "dashed",
1470
- label: f(r).divider.dashed
1471
- },
1472
- {
1473
- value: "dotted",
1474
- label: f(r).divider.dotted
1475
- }
1476
- ],
1477
- "model-value": e.block.lineStyle,
1478
- "onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
1479
- }, null, 8, ["options", "model-value"])]),
1480
- x("div", yr, [x("label", { class: m(f(V)) }, w(f(r).divider.color), 3), p(G, {
1481
- "model-value": e.block.color,
1482
- "onUpdate:modelValue": n[1] ||= (e) => i("color", e)
1483
- }, null, 8, ["model-value"])]),
1484
- x("div", br, [x("label", { class: m(f(V)) }, w(f(r).divider.thickness), 3), x("div", xr, [x("input", {
1485
- type: "number",
1486
- class: m(f(U)),
1487
- value: e.block.thickness,
1488
- min: "1",
1489
- max: "10",
1490
- onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
1491
- }, null, 42, Sr), x("span", { class: m(f(H)) }, "px", 2)])])
1492
- ], 64));
1493
- }
1494
- }), wr = { class: "tpl:mb-3.5" }, Tr = ["value"], Er = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Dr = /* @__PURE__ */ l({
1495
- __name: "HtmlToolbar",
1496
- props: { block: {} },
1497
- emits: ["update"],
1498
- setup(e, { emit: t }) {
1499
- let n = t, { t: r } = L();
1500
- return (t, i) => (o(), g("div", wr, [
1501
- x("label", { class: m(f(V)) }, w(f(r).html.content), 3),
1502
- x("textarea", {
1503
- value: e.block.content,
1504
- placeholder: "<div>...</div>",
1505
- rows: "10",
1506
- class: m(f(Be)),
1507
- onInput: i[0] ||= (e) => n("update", { content: e.target.value })
1508
- }, null, 42, Tr),
1509
- x("p", Er, [p(f(Ae), {
1510
- size: 12,
1511
- class: "tpl:mt-0.5 tpl:shrink-0"
1512
- }), E(" " + w(f(r).html.sanitizationHint), 1)])
1513
- ]));
1514
- }
1515
- }), Or = { class: "tpl:mb-3.5" }, kr = {
1516
- key: 0,
1517
- class: "tpl:mb-3.5"
1518
- }, Ar = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, jr = [
1519
- "value",
1520
- "placeholder",
1521
- "title"
1522
- ], Mr = { class: "tpl:mb-3.5" }, Nr = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Pr = { class: "tpl:mb-3.5" }, Fr = ["value"], Ir = { value: "full" }, Lr = { value: "custom" }, Rr = {
1523
- key: 0,
1524
- class: "tpl:mt-2 tpl:flex tpl:items-stretch"
1525
- }, zr = ["value"], Br = { class: "tpl:mb-3.5" }, Vr = ["value"], Hr = { value: "auto" }, Ur = { value: "custom" }, Wr = {
1526
- key: 0,
1527
- class: "tpl:mt-2 tpl:flex tpl:items-stretch"
1528
- }, Gr = ["value"], Kr = { class: "tpl:mb-3.5" }, qr = { class: "tpl:mb-3.5" }, Jr = 350, Yr = 200, Xr = /* @__PURE__ */ l({
1529
- __name: "ImageToolbar",
1530
- props: { block: {} },
1531
- emits: ["update"],
1532
- setup(e, { emit: t }) {
1533
- let r = e, a = t, { t: c } = L(), l = n(me, ne.liquid), u = s(!1), d = s(!1), { start: v } = le(() => {
1534
- u.value = !1, d.value = !1;
1535
- }, 1e3, { immediate: !1 }), b = [
1536
- 300,
1537
- 400,
1538
- 500
1539
- ], S = h(() => {
1540
- let e = r.block.width;
1541
- return e === "full" ? "full" : b.includes(e) ? String(e) : "custom";
1542
- }), T = h(() => typeof r.block.height == "number" ? "custom" : "auto");
1543
- function D(e, t) {
1544
- a("update", { [e]: t });
1545
- }
1546
- function O(e) {
1547
- if (e === "custom") {
1548
- let e = r.block.width;
1549
- (typeof e != "number" || b.includes(e)) && D("width", Jr);
1550
- } else D("width", e === "full" ? "full" : Number(e));
1551
- }
1552
- function k(e) {
1553
- D("height", e === "custom" ? Yr : void 0);
1554
- }
1555
- function A(e) {
1556
- let t = Number(e);
1557
- !Number.isFinite(t) || t <= 0 || D("height", t);
1558
- }
1559
- function M(e) {
1560
- D("borderRadius", j(e) === null ? void 0 : e);
1561
- }
1562
- function N(e) {
1563
- let t = Number(e);
1564
- !Number.isFinite(t) || t <= 0 || D("width", t);
1565
- }
1566
- function ee(e) {
1567
- D("src", e.url), e.alt && (D("alt", e.alt), d.value = !0), u.value = !0, v();
1568
- }
1569
- let F = s(), te = h(() => P(r.block.src, l)), { canBrowse: re, isUploading: ie, showOverlay: ae, openMediaBrowser: se } = oe({
1570
- target: F,
1571
- blocked: te,
1572
- apply: ee
1573
- });
1574
- return (t, n) => (o(), g(C, null, [
1575
- x("div", Or, [x("label", { class: m(f(V)) }, w(f(c).image.imageUrl), 3), x("div", {
1576
- ref_key: "dropZoneRef",
1577
- ref: F,
1578
- class: "tpl:relative"
1579
- }, [
1580
- f(ae) ? (o(), y(I, {
1581
- key: 0,
1582
- uploading: f(ie)
1583
- }, null, 8, ["uploading"])) : _("", !0),
1584
- p(q, {
1585
- "model-value": e.block.src,
1586
- type: "url",
1587
- placeholder: f(c).image.imageUrlPlaceholder,
1588
- pulse: u.value,
1589
- "onUpdate:modelValue": n[0] ||= (e) => D("src", e)
1590
- }, null, 8, [
1591
- "model-value",
1592
- "placeholder",
1593
- "pulse"
1594
- ]),
1595
- f(re) ? (o(), g("button", {
1596
- key: 1,
1597
- 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",
1598
- style: {
1599
- "border-color": "var(--tpl-border)",
1600
- color: "var(--tpl-primary)",
1601
- "background-color": "var(--tpl-bg)"
1602
- },
1603
- onClick: n[1] ||= (...e) => f(se) && f(se)(...e)
1604
- }, [p(f(Fe), {
1605
- size: 14,
1606
- "stroke-width": 1.5
1607
- }), E(" " + w(f(c).image.browseMedia), 1)])) : _("", !0)
1608
- ], 512)]),
1609
- f(P)(e.block.src, f(l)) ? (o(), g("div", kr, [x("label", { class: m(f(V)) }, [E(w(f(c).image.placeholderUrl) + " ", 1), x("span", Ar, w(f(c).image.optional), 1)], 2), x("input", {
1610
- type: "url",
1611
- class: m(f(W)),
1612
- value: e.block.placeholderUrl || "",
1613
- placeholder: f(c).image.placeholderUrlPlaceholder,
1614
- title: f(c).image.placeholderUrlTooltip,
1615
- onInput: n[2] ||= (e) => D("placeholderUrl", e.target.value)
1616
- }, null, 42, jr)])) : _("", !0),
1617
- x("div", Mr, [
1618
- x("label", { class: m(f(V)) }, w(f(c).image.altText), 3),
1619
- p(q, {
1620
- "model-value": e.block.alt,
1621
- type: "text",
1622
- placeholder: f(c).image.altTextPlaceholder,
1623
- pulse: d.value,
1624
- disabled: e.block.decorative === !0,
1625
- "onUpdate:modelValue": n[3] ||= (e) => D("alt", e)
1626
- }, null, 8, [
1627
- "model-value",
1628
- "placeholder",
1629
- "pulse",
1630
- "disabled"
1631
- ]),
1632
- p(K, {
1633
- class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
1634
- "model-value": e.block.decorative === !0,
1635
- label: f(c).image.decorative,
1636
- "onUpdate:modelValue": n[4] ||= (e) => D("decorative", e)
1637
- }, {
1638
- default: i(() => [x("span", null, [E(w(f(c).image.decorative) + " ", 1), x("span", Nr, w(f(c).image.decorativeHint), 1)])]),
1639
- _: 1
1640
- }, 8, ["model-value", "label"])
1641
- ]),
1642
- x("div", Pr, [
1643
- x("label", { class: m(f(V)) }, w(f(c).image.width), 3),
1644
- x("select", {
1645
- class: m(f(W)),
1646
- value: S.value,
1647
- onChange: n[5] ||= (e) => O(e.target.value)
1648
- }, [
1649
- x("option", Ir, w(f(c).image.fullWidth), 1),
1650
- n[13] ||= x("option", { value: "300" }, "300px", -1),
1651
- n[14] ||= x("option", { value: "400" }, "400px", -1),
1652
- n[15] ||= x("option", { value: "500" }, "500px", -1),
1653
- x("option", Lr, w(f(c).image.widthCustom), 1)
1654
- ], 42, Fr),
1655
- S.value === "custom" ? (o(), g("div", Rr, [x("input", {
1656
- type: "number",
1657
- class: m(f(U)),
1658
- value: typeof e.block.width == "number" ? e.block.width : Jr,
1659
- min: "20",
1660
- onInput: n[6] ||= (e) => N(e.target.value)
1661
- }, null, 42, zr), x("span", { class: m(f(H)) }, "px", 2)])) : _("", !0)
1662
- ]),
1663
- x("div", Br, [
1664
- x("label", { class: m(f(V)) }, w(f(c).image.height), 3),
1665
- x("select", {
1666
- class: m(f(W)),
1667
- "data-testid": "image-height-mode",
1668
- value: T.value,
1669
- onChange: n[7] ||= (e) => k(e.target.value)
1670
- }, [x("option", Hr, w(f(c).image.heightAuto), 1), x("option", Ur, w(f(c).image.heightCustom), 1)], 42, Vr),
1671
- T.value === "custom" ? (o(), g("div", Wr, [x("input", {
1672
- type: "number",
1673
- "data-testid": "image-height-input",
1674
- class: m(f(U)),
1675
- value: e.block.height,
1676
- min: "20",
1677
- onInput: n[8] ||= (e) => A(e.target.value)
1678
- }, null, 42, Gr), x("span", { class: m(f(H)) }, "px", 2)])) : _("", !0)
1679
- ]),
1680
- p(pt, {
1681
- "model-value": e.block.borderRadius,
1682
- label: f(c).image.borderRadius,
1683
- "testid-prefix": "image",
1684
- "onUpdate:modelValue": M
1685
- }, null, 8, ["model-value", "label"]),
1686
- p(st, {
1687
- "model-value": e.block.border,
1688
- "testid-prefix": "image",
1689
- "onUpdate:modelValue": n[9] ||= (e) => D("border", e)
1690
- }, null, 8, ["model-value"]),
1691
- x("div", Kr, [x("label", { class: m(f(V)) }, w(f(c).title.align), 3), p(J, {
1692
- options: [
1693
- {
1694
- value: "left",
1695
- label: f(c).title.alignLeft
1696
- },
1697
- {
1698
- value: "center",
1699
- label: f(c).title.alignCenter
1700
- },
1701
- {
1702
- value: "right",
1703
- label: f(c).title.alignRight
1704
- }
1705
- ],
1706
- "model-value": e.block.align,
1707
- "onUpdate:modelValue": n[10] ||= (e) => D("align", e)
1708
- }, null, 8, ["options", "model-value"])]),
1709
- x("div", qr, [
1710
- x("label", { class: m(f(V)) }, w(f(c).image.linkUrl), 3),
1711
- p(q, {
1712
- "model-value": e.block.linkUrl || "",
1713
- type: "url",
1714
- placeholder: f(c).image.imageUrlPlaceholder,
1715
- "onUpdate:modelValue": n[11] ||= (e) => D("linkUrl", e)
1716
- }, null, 8, ["model-value", "placeholder"]),
1717
- e.block.linkUrl ? (o(), y(K, {
1718
- key: 0,
1719
- class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
1720
- "model-value": e.block.linkOpenInNewTab ?? !1,
1721
- label: f(c).image.openInNewTab,
1722
- "onUpdate:modelValue": n[12] ||= (e) => D("linkOpenInNewTab", e)
1723
- }, null, 8, ["model-value", "label"])) : _("", !0)
1724
- ])
1725
- ], 64));
1726
- }
1727
- }), Zr = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ l({
1728
- __name: "FieldRow",
1729
- props: { label: {} },
1730
- setup(e) {
1731
- return (t, n) => (o(), g("div", Zr, [e.label ? (o(), g("label", {
1732
- key: 0,
1733
- class: m(f(V))
1734
- }, w(e.label), 3)) : _("", !0), a(t.$slots, "default")]));
1735
- }
1736
- }), Qr = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, $r = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ei = [
1737
- "value",
1738
- "placeholder",
1739
- "onInput"
1740
- ], ti = ["title", "onClick"], ni = { 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)]" }, ri = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ii = ["value"], ai = { value: "" }, oi = ["value"], si = ["value"], ci = /* @__PURE__ */ l({
1741
- __name: "MenuToolbar",
1742
- props: {
1743
- block: {},
1744
- fontFamilies: {}
1745
- },
1746
- emits: ["update"],
1747
- setup(e, { emit: t }) {
1748
- let n = e, a = t, { t: s } = L(), c = h(() => [
1749
- {
1750
- key: "openInNewTab",
1751
- label: s.menu.openInNewTab
1752
- },
1753
- {
1754
- key: "bold",
1755
- label: s.menu.bold
1756
- },
1757
- {
1758
- key: "underline",
1759
- label: s.menu.underline
1760
- }
1761
- ]), l = h(() => [
1762
- {
1763
- value: "left",
1764
- label: s.title.alignLeft,
1765
- icon: z
1766
- },
1767
- {
1768
- value: "center",
1769
- label: s.title.alignCenter,
1770
- icon: Le
1771
- },
1772
- {
1773
- value: "right",
1774
- label: s.title.alignRight,
1775
- icon: Ee
1776
- }
1777
- ]);
1778
- function u(e, t) {
1779
- a("update", { [e]: t });
1780
- }
1781
- function d() {
1782
- let e = {
1783
- id: A(),
1784
- text: "",
1785
- url: "",
1786
- openInNewTab: !1,
1787
- bold: !1,
1788
- underline: !1
1789
- };
1790
- a("update", { items: [...n.block.items, e] });
1791
- }
1792
- function _(e, t, r) {
1793
- let i = n.block.items.map((n) => n.id === e ? {
1794
- ...n,
1795
- [t]: r
1796
- } : n);
1797
- a("update", { items: i });
1798
- }
1799
- function v(e) {
1800
- a("update", { items: n.block.items.filter((t) => t.id !== e) });
1801
- }
1802
- return (t, n) => (o(), g(C, null, [
1803
- p($, { label: f(s).menu.items }, {
1804
- default: i(() => [x("div", Qr, [(o(!0), g(C, null, r(e.block.items, (t) => (o(), g("div", {
1805
- key: t.id,
1806
- 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"
1807
- }, [
1808
- x("div", $r, [x("input", {
1809
- type: "text",
1810
- class: m([f(W), "tpl:flex-1"]),
1811
- value: t.text,
1812
- placeholder: f(s).menu.text,
1813
- onInput: (e) => _(t.id, "text", e.target.value)
1814
- }, null, 42, ei), x("button", {
1815
- class: m(f(Ve)),
1816
- title: f(s).menu.removeItem,
1817
- onClick: (e) => v(t.id)
1818
- }, [p(f(Pe), {
1819
- size: 14,
1820
- "stroke-width": 2
1821
- })], 10, ti)]),
1822
- p(q, {
1823
- "model-value": t.url,
1824
- type: "url",
1825
- placeholder: f(s).menu.urlPlaceholder,
1826
- "onUpdate:modelValue": (e) => _(t.id, "url", e)
1827
- }, null, 8, [
1828
- "model-value",
1829
- "placeholder",
1830
- "onUpdate:modelValue"
1831
- ]),
1832
- x("div", ni, [(o(!0), g(C, null, r(c.value, (e) => (o(), y(K, {
1833
- key: e.key,
1834
- "model-value": t[e.key],
1835
- label: e.label,
1836
- "onUpdate:modelValue": (n) => _(t.id, e.key, n)
1837
- }, null, 8, [
1838
- "model-value",
1839
- "label",
1840
- "onUpdate:modelValue"
1841
- ]))), 128))]),
1842
- x("div", ri, [x("label", { class: m([f(V), "tpl:!mb-0"]) }, w(f(s).menu.color), 3), p(G, {
1843
- "swatch-only": "",
1844
- "model-value": t.color || e.block.linkColor || e.block.color || "",
1845
- "onUpdate:modelValue": (e) => _(t.id, "color", e)
1846
- }, null, 8, ["model-value", "onUpdate:modelValue"])])
1847
- ]))), 128)), x("button", {
1848
- class: m(f(He)),
1849
- onClick: d
1850
- }, [p(f(R), {
1851
- size: 14,
1852
- "stroke-width": 2
1853
- }), E(" " + w(f(s).menu.addItem), 1)], 2)])]),
1854
- _: 1
1855
- }, 8, ["label"]),
1856
- p($, { label: f(s).menu.fontFamily }, {
1857
- default: i(() => [x("select", {
1858
- class: m(f(W)),
1859
- value: f(Je)(e.block.fontFamily),
1860
- onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
1861
- }, [x("option", ai, w(f(s).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
1862
- key: e.value,
1863
- value: e.value
1864
- }, w(e.label), 9, oi))), 128))], 42, ii)]),
1865
- _: 1
1866
- }, 8, ["label"]),
1867
- p($, { label: f(s).menu.fontSize }, {
1868
- default: i(() => [p(Y, {
1869
- "model-value": e.block.fontSize,
1870
- min: 8,
1871
- max: 48,
1872
- suffix: "px",
1873
- "onUpdate:modelValue": n[1] ||= (e) => u("fontSize", e)
1874
- }, null, 8, ["model-value"])]),
1875
- _: 1
1876
- }, 8, ["label"]),
1877
- p($, { label: f(s).menu.color }, {
1878
- default: i(() => [p(G, {
1879
- "model-value": e.block.color ?? "",
1880
- "onUpdate:modelValue": n[2] ||= (e) => u("color", e || void 0)
1881
- }, null, 8, ["model-value"])]),
1882
- _: 1
1883
- }, 8, ["label"]),
1884
- p($, { label: f(s).menu.linkColor }, {
1885
- default: i(() => [p(G, {
1886
- "model-value": e.block.linkColor || e.block.color || "",
1887
- "onUpdate:modelValue": n[3] ||= (e) => u("linkColor", e || void 0)
1888
- }, null, 8, ["model-value"])]),
1889
- _: 1
1890
- }, 8, ["label"]),
1891
- p($, { label: f(s).menu.textAlign }, {
1892
- default: i(() => [p(J, {
1893
- options: l.value,
1894
- "model-value": e.block.textAlign,
1895
- "onUpdate:modelValue": n[4] ||= (e) => u("textAlign", e)
1896
- }, null, 8, ["options", "model-value"])]),
1897
- _: 1
1898
- }, 8, ["label"]),
1899
- p($, { label: f(s).menu.separator }, {
1900
- default: i(() => [x("input", {
1901
- type: "text",
1902
- class: m(f(W)),
1903
- value: e.block.separator,
1904
- onInput: n[5] ||= (e) => u("separator", e.target.value)
1905
- }, null, 42, si)]),
1906
- _: 1
1907
- }, 8, ["label"]),
1908
- p($, { label: f(s).menu.separatorColor }, {
1909
- default: i(() => [p(G, {
1910
- "model-value": e.block.separatorColor,
1911
- "onUpdate:modelValue": n[6] ||= (e) => u("separatorColor", e)
1912
- }, null, 8, ["model-value"])]),
1913
- _: 1
1914
- }, 8, ["label"]),
1915
- p($, { label: f(s).menu.spacing }, {
1916
- default: i(() => [p(Y, {
1917
- "model-value": e.block.spacing,
1918
- min: 0,
1919
- max: 50,
1920
- suffix: "px",
1921
- "onUpdate:modelValue": n[7] ||= (e) => u("spacing", e)
1922
- }, null, 8, ["model-value"])]),
1923
- _: 1
1924
- }, 8, ["label"])
1925
- ], 64));
1926
- }
1927
- }), li = {
1928
- class: "tpl:mb-3.5",
1929
- "data-testid": "paragraph-spacing"
1930
- }, ui = { class: "tpl:flex tpl:items-stretch" }, di = ["value"], fi = /* @__PURE__ */ l({
1931
- __name: "ParagraphToolbar",
1932
- props: { block: {} },
1933
- emits: ["update"],
1934
- setup(e, { emit: t }) {
1935
- let n = t, { t: r } = L();
1936
- return (t, i) => (o(), g("div", li, [x("label", { class: m(f(V)) }, w(f(r).paragraph.paragraphSpacing), 3), x("div", ui, [x("input", {
1937
- type: "number",
1938
- class: m(f(U)),
1939
- value: e.block.paragraphSpacing ?? f(F).paragraphGap,
1940
- min: "0",
1941
- max: "64",
1942
- onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
1943
- }, null, 42, di), x("span", { class: m(f(H)) }, "px", 2)])]));
1944
- }
1945
- });
1946
- //#endregion
1947
- //#region src/utils/rebalanceColumnChildren.ts
1948
- function pi(e) {
1949
- return e === "1" ? 1 : e === "3" ? 3 : 2;
1950
- }
1951
- function mi(e, t) {
1952
- let n = pi(t);
1953
- if (e.length === n) return e;
1954
- if (e.length < n) {
1955
- let t = Array.from({ length: n - e.length }, () => []);
1956
- return [...e, ...t];
1957
- }
1958
- let r = e.slice(0, n), i = e.slice(n).flat(), a = [...r[n - 1], ...i];
1959
- return [...r.slice(0, n - 1), a];
1960
- }
1961
- //#endregion
1962
- //#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
1963
- var hi = { class: "tpl:mb-3.5" }, gi = ["value"], _i = ["value"], vi = {
1964
- key: 0,
1965
- class: "tpl:mb-3.5"
1966
- }, yi = {
1967
- key: 1,
1968
- class: "tpl:mb-3.5"
1969
- }, bi = {
1970
- key: 0,
1971
- class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
1972
- }, xi = {
1973
- key: 1,
1974
- class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
1975
- }, Si = /* @__PURE__ */ l({
1976
- __name: "SectionToolbar",
1977
- props: { block: {} },
1978
- emits: ["update"],
1979
- setup(e, { emit: t }) {
1980
- let i = e, a = t, { t: s } = L(), c = n(de, void 0), l = n(fe, void 0), u = c !== void 0 && M(c), d = h(() => l !== !1 || !!i.block.wrapper), v = h(() => u && !i.block.wrapper), y = h(() => u && d.value), b = h(() => [
1981
- {
1982
- value: "1",
1983
- label: s.section.column1
1984
- },
1985
- {
1986
- value: "2",
1987
- label: s.section.column2
1988
- },
1989
- {
1990
- value: "3",
1991
- label: s.section.column3
1992
- },
1993
- {
1994
- value: "1-2",
1995
- label: s.section.ratio12
1996
- },
1997
- {
1998
- value: "2-1",
1999
- label: s.section.ratio21
2000
- }
2001
- ]);
2002
- function S(e) {
2003
- let t = e.target.value, n = mi(i.block.children, t);
2004
- a("update", {
2005
- columns: t,
2006
- children: n
2007
- });
2008
- }
2009
- function T(e) {
2010
- a("update", { stackOnMobile: e });
2011
- }
2012
- function E(e) {
2013
- a("update", { borderRadius: e });
2014
- }
2015
- function D(e) {
2016
- a("update", { wrapper: e ? { padding: {
2017
- top: 20,
2018
- right: 20,
2019
- bottom: 20,
2020
- left: 20
2021
- } } : void 0 });
2022
- }
2023
- function O(e) {
2024
- a("update", { wrapper: {
2025
- ...i.block.wrapper,
2026
- ...e
2027
- } });
2028
- }
2029
- function k(e) {
2030
- O({ padding: e });
2031
- }
2032
- function A(e) {
2033
- O({ borderRadius: e });
2034
- }
2035
- return (t, n) => (o(), g(C, null, [
2036
- x("div", hi, [x("label", { class: m(f(V)) }, w(f(s).section.columns), 3), x("select", {
2037
- class: m(f(W)),
2038
- value: e.block.columns,
2039
- onChange: S
2040
- }, [(o(!0), g(C, null, r(b.value, (e) => (o(), g("option", {
2041
- key: e.value,
2042
- value: e.value
2043
- }, w(e.label), 9, _i))), 128))], 42, gi)]),
2044
- e.block.columns === "1" ? _("", !0) : (o(), g("div", vi, [p(K, {
2045
- class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2046
- "model-value": e.block.stackOnMobile !== !1,
2047
- label: f(s).section.stackOnMobile,
2048
- "onUpdate:modelValue": n[0] ||= (e) => T(e)
2049
- }, null, 8, ["model-value", "label"])])),
2050
- p(pt, {
2051
- "model-value": e.block.borderRadius,
2052
- label: f(s).section.borderRadius,
2053
- max: 50,
2054
- "testid-prefix": "section",
2055
- "onUpdate:modelValue": E
2056
- }, null, 8, ["model-value", "label"]),
2057
- p(st, {
2058
- "model-value": e.block.border,
2059
- "testid-prefix": "section",
2060
- "onUpdate:modelValue": n[1] ||= (e) => a("update", { border: e })
2061
- }, null, 8, ["model-value"]),
2062
- d.value ? (o(), g("div", yi, [
2063
- p(K, {
2064
- class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2065
- "model-value": !!e.block.wrapper,
2066
- label: f(s).section.wrapperEnable,
2067
- disabled: v.value,
2068
- "onUpdate:modelValue": n[2] ||= (e) => D(e)
2069
- }, null, 8, [
2070
- "model-value",
2071
- "label",
2072
- "disabled"
2073
- ]),
2074
- y.value ? (o(), g("p", bi, w(f(s).section.wrapperLayoutConflict), 1)) : _("", !0),
2075
- e.block.wrapper ? (o(), g("div", xi, [
2076
- x("div", null, [x("label", { class: m(f(V)) }, w(f(s).blockSettings.color), 3), p(G, {
2077
- "model-value": e.block.wrapper.backgroundColor ?? "",
2078
- "allow-transparent": "",
2079
- "onUpdate:modelValue": n[3] ||= (e) => O({ backgroundColor: e })
2080
- }, null, 8, ["model-value"])]),
2081
- p(dn, {
2082
- "model-value": e.block.wrapper.backgroundImage,
2083
- "testid-prefix": "section-wrapper",
2084
- "onUpdate:modelValue": n[4] ||= (e) => O({ backgroundImage: e })
2085
- }, null, 8, ["model-value"]),
2086
- p(nn, {
2087
- label: f(s).blockSettings.padding,
2088
- "model-value": e.block.wrapper.padding ?? {
2089
- top: 0,
2090
- right: 0,
2091
- bottom: 0,
2092
- left: 0
2093
- },
2094
- "onUpdate:modelValue": k
2095
- }, null, 8, ["label", "model-value"]),
2096
- p(pt, {
2097
- "model-value": e.block.wrapper.borderRadius,
2098
- label: f(s).section.borderRadius,
2099
- max: 50,
2100
- "testid-prefix": "section-wrapper",
2101
- "onUpdate:modelValue": A
2102
- }, null, 8, ["model-value", "label"])
2103
- ])) : _("", !0)
2104
- ])) : _("", !0)
2105
- ], 64));
2106
- }
2107
- }), Ci = { class: "tpl:mb-3.5" }, wi = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ti = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ei = ["value", "onChange"], Di = ["value"], Oi = ["title", "onClick"], ki = { class: "tpl:mb-3.5" }, Ai = ["value"], ji = { value: "solid" }, Mi = { value: "outlined" }, Ni = { value: "rounded" }, Pi = { value: "square" }, Fi = { value: "circle" }, Ii = { value: "plain" }, Li = { class: "tpl:mb-3.5" }, Ri = ["value"], zi = { value: "brand" }, Bi = { value: "dark" }, Vi = { value: "light" }, Hi = { class: "tpl:mb-3.5" }, Ui = { class: "tpl:mb-3.5" }, Wi = { class: "tpl:flex tpl:items-stretch" }, Gi = ["value"], Ki = { class: "tpl:mb-3.5" }, qi = /* @__PURE__ */ l({
2108
- __name: "SocialToolbar",
2109
- props: { block: {} },
2110
- emits: ["update"],
2111
- setup(e, { emit: t }) {
2112
- let n = e, i = t, { t: a } = L();
2113
- function s(e, t) {
2114
- i("update", { [e]: t });
2115
- }
2116
- function c() {
2117
- let e = {
2118
- id: A(),
2119
- platform: "facebook",
2120
- url: ""
2121
- };
2122
- i("update", { icons: [...n.block.icons, e] });
2123
- }
2124
- function l(e, t, r) {
2125
- let a = n.block.icons.map((n) => n.id === e ? {
2126
- ...n,
2127
- [t]: r
2128
- } : n);
2129
- i("update", { icons: a });
2130
- }
2131
- function u(e) {
2132
- i("update", { icons: n.block.icons.filter((t) => t.id !== e) });
2133
- }
2134
- return (t, n) => (o(), g(C, null, [
2135
- x("div", Ci, [x("label", { class: m(f(V)) }, w(f(a).social.icons), 3), x("div", wi, [(o(!0), g(C, null, r(e.block.icons, (e) => (o(), g("div", {
2136
- key: e.id,
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"
2138
- }, [x("div", Ti, [x("select", {
2139
- "data-testid": "social-platform-select",
2140
- class: m([f(W), "tpl:flex-1"]),
2141
- value: e.platform,
2142
- onChange: (t) => l(e.id, "platform", t.target.value)
2143
- }, [(o(!0), g(C, null, r(f(ce), (e) => (o(), g("option", {
2144
- key: e,
2145
- value: e
2146
- }, w(f(a).social.platforms[e]), 9, Di))), 128))], 42, Ei), x("button", {
2147
- class: m(f(Ve)),
2148
- title: f(a).social.removeIcon,
2149
- onClick: (t) => u(e.id)
2150
- }, [p(f(Pe), {
2151
- size: 14,
2152
- "stroke-width": 2
2153
- })], 10, Oi)]), p(q, {
2154
- "model-value": e.url,
2155
- type: "url",
2156
- placeholder: f(a).social.urlPlaceholder,
2157
- "onUpdate:modelValue": (t) => l(e.id, "url", t)
2158
- }, null, 8, [
2159
- "model-value",
2160
- "placeholder",
2161
- "onUpdate:modelValue"
2162
- ])]))), 128)), x("button", {
2163
- class: m(f(He)),
2164
- onClick: c
2165
- }, [p(f(R), {
2166
- size: 14,
2167
- "stroke-width": 2
2168
- }), E(" " + w(f(a).social.addIcon), 1)], 2)])]),
2169
- x("div", ki, [x("label", { class: m(f(V)) }, w(f(a).social.style), 3), x("select", {
2170
- class: m(f(W)),
2171
- value: e.block.iconStyle,
2172
- onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
2173
- }, [
2174
- x("option", ji, w(f(a).social.styleSolid), 1),
2175
- x("option", Mi, w(f(a).social.styleOutlined), 1),
2176
- x("option", Ni, w(f(a).social.styleRounded), 1),
2177
- x("option", Pi, w(f(a).social.styleSquare), 1),
2178
- x("option", Fi, w(f(a).social.styleCircle), 1),
2179
- x("option", Ii, w(f(a).social.stylePlain), 1)
2180
- ], 42, Ai)]),
2181
- x("div", Li, [x("label", { class: m(f(V)) }, w(f(a).social.color), 3), x("select", {
2182
- "data-testid": "social-tone-select",
2183
- class: m(f(W)),
2184
- value: e.block.iconTone ?? "brand",
2185
- onChange: n[1] ||= (e) => s("iconTone", e.target.value)
2186
- }, [
2187
- x("option", zi, w(f(a).social.colorBrand), 1),
2188
- x("option", Bi, w(f(a).social.colorDark), 1),
2189
- x("option", Vi, w(f(a).social.colorLight), 1)
2190
- ], 42, Ri)]),
2191
- x("div", Hi, [x("label", { class: m(f(V)) }, w(f(a).social.size), 3), p(J, {
2192
- options: [
2193
- {
2194
- value: "small",
2195
- label: f(a).social.sizeSmall
2196
- },
2197
- {
2198
- value: "medium",
2199
- label: f(a).social.sizeMedium
2200
- },
2201
- {
2202
- value: "large",
2203
- label: f(a).social.sizeLarge
2204
- }
2205
- ],
2206
- "model-value": e.block.iconSize,
2207
- "onUpdate:modelValue": n[2] ||= (e) => s("iconSize", e)
2208
- }, null, 8, ["options", "model-value"])]),
2209
- x("div", Ui, [x("label", { class: m(f(V)) }, w(f(a).social.spacing), 3), x("div", Wi, [x("input", {
2210
- type: "number",
2211
- class: m(f(U)),
2212
- value: e.block.spacing,
2213
- min: "0",
2214
- max: "50",
2215
- onInput: n[3] ||= (e) => s("spacing", Number(e.target.value))
2216
- }, null, 42, Gi), x("span", { class: m(f(H)) }, "px", 2)])]),
2217
- x("div", Ki, [x("label", { class: m(f(V)) }, w(f(a).social.align), 3), p(J, {
2218
- options: [
2219
- {
2220
- value: "left",
2221
- label: f(a).title.alignLeft,
2222
- icon: f(z)
2223
- },
2224
- {
2225
- value: "center",
2226
- label: f(a).title.alignCenter,
2227
- icon: f(Le)
2228
- },
2229
- {
2230
- value: "right",
2231
- label: f(a).title.alignRight,
2232
- icon: f(Ee)
2233
- }
2234
- ],
2235
- "model-value": e.block.align,
2236
- "onUpdate:modelValue": n[4] ||= (e) => s("align", e)
2237
- }, null, 8, ["options", "model-value"])])
2238
- ], 64));
2239
- }
2240
- }), Ji = { class: "tpl:mb-3.5" }, Yi = { class: "tpl:flex tpl:items-stretch" }, Xi = ["value"], Zi = ["value"], Qi = /* @__PURE__ */ l({
2241
- __name: "SpacerToolbar",
2242
- props: { block: {} },
2243
- emits: ["update"],
2244
- setup(e, { emit: t }) {
2245
- let n = t, { t: r } = L();
2246
- return (t, i) => (o(), g("div", Ji, [
2247
- x("label", { class: m(f(V)) }, w(f(r).spacer.height), 3),
2248
- x("div", Yi, [x("input", {
2249
- type: "number",
2250
- class: m(f(U)),
2251
- value: e.block.height,
2252
- min: "10",
2253
- max: "100",
2254
- onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
2255
- }, null, 42, Xi), x("span", { class: m(f(H)) }, "px", 2)]),
2256
- x("input", {
2257
- type: "range",
2258
- class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
2259
- value: e.block.height,
2260
- min: "10",
2261
- max: "100",
2262
- onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
2263
- }, null, 40, Zi)
2264
- ]));
2265
- }
2266
- }), $i = { class: "tpl:mb-3.5" }, ea = { class: "tpl:flex tpl:items-center tpl:gap-3" }, ta = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, na = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ra = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ia = ["disabled"], aa = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, oa = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, sa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ca = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, la = ["disabled"], ua = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, da = { class: "tpl:mb-3.5" }, fa = {
2267
- key: 0,
2268
- class: "tpl:mb-3.5"
2269
- }, pa = { class: "tpl:mb-3.5" }, ma = { class: "tpl:mb-3.5" }, ha = { class: "tpl:flex tpl:items-stretch" }, ga = ["value"], _a = { class: "tpl:mb-3.5" }, va = { class: "tpl:flex tpl:items-stretch" }, ya = ["value"], ba = { class: "tpl:mb-3.5" }, xa = ["value"], Sa = { value: "" }, Ca = ["value"], wa = { class: "tpl:mb-3.5" }, Ta = { class: "tpl:flex tpl:items-stretch" }, Ea = ["value"], Da = { class: "tpl:mb-3.5" }, Oa = { class: "tpl:mb-3.5" }, ka = /* @__PURE__ */ l({
2270
- __name: "TableToolbar",
2271
- props: {
2272
- block: {},
2273
- fontFamilies: {}
2274
- },
2275
- emits: ["update"],
2276
- setup(e, { emit: t }) {
2277
- let n = e, i = t, { t: a } = L(), s = h(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
2278
- function c(e, t) {
2279
- i("update", { [e]: t });
2280
- }
2281
- function l() {
2282
- let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
2283
- id: A(),
2284
- cells: Array.from({ length: e }, () => ({
2285
- id: A(),
2286
- content: ""
2287
- }))
2288
- };
2289
- i("update", { rows: [...n.block.rows, t] });
2290
- }
2291
- function u(e) {
2292
- i("update", { rows: n.block.rows.filter((t) => t.id !== e) });
2293
- }
2294
- function d() {
2295
- let e = n.block.rows.map((e) => ({
2296
- ...e,
2297
- cells: [...e.cells, {
2298
- id: A(),
2299
- content: ""
2300
- }]
2301
- }));
2302
- i("update", { rows: e });
2303
- }
2304
- function v(e) {
2305
- let t = n.block.rows.map((t) => ({
2306
- ...t,
2307
- cells: t.cells.filter((t, n) => n !== e)
2308
- }));
2309
- i("update", { rows: t });
2310
- }
2311
- return (t, n) => (o(), g(C, null, [
2312
- x("div", $i, [x("label", { class: m(f(V)) }, w(f(a).table.dimensions), 3), x("div", ea, [x("div", ta, [x("span", na, w(f(a).table.rows), 1), x("div", ra, [
2313
- x("button", {
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",
2315
- disabled: e.block.rows.length <= 1,
2316
- onClick: n[0] ||= (t) => u(e.block.rows[e.block.rows.length - 1].id)
2317
- }, [p(f(B), {
2318
- size: 12,
2319
- "stroke-width": 2
2320
- })], 8, ia),
2321
- x("span", aa, w(e.block.rows.length), 1),
2322
- x("button", {
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)]",
2324
- onClick: l
2325
- }, [p(f(R), {
2326
- size: 12,
2327
- "stroke-width": 2
2328
- })])
2329
- ])]), x("div", oa, [x("span", sa, w(f(a).table.columns), 1), x("div", ca, [
2330
- x("button", {
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",
2332
- disabled: s.value <= 1,
2333
- onClick: n[1] ||= (e) => v(s.value - 1)
2334
- }, [p(f(B), {
2335
- size: 12,
2336
- "stroke-width": 2
2337
- })], 8, la),
2338
- x("span", ua, w(s.value), 1),
2339
- x("button", {
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)]",
2341
- onClick: d
2342
- }, [p(f(R), {
2343
- size: 12,
2344
- "stroke-width": 2
2345
- })])
2346
- ])])])]),
2347
- x("div", da, [p(K, {
2348
- class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
2349
- "model-value": e.block.hasHeaderRow,
2350
- label: f(a).table.hasHeaderRow,
2351
- "onUpdate:modelValue": n[2] ||= (e) => c("hasHeaderRow", e)
2352
- }, null, 8, ["model-value", "label"])]),
2353
- e.block.hasHeaderRow ? (o(), g("div", fa, [x("label", { class: m(f(V)) }, w(f(a).table.headerBackgroundColor), 3), p(G, {
2354
- "model-value": e.block.headerBackgroundColor ?? "",
2355
- "seed-color": f(Ue),
2356
- placeholder: f(a).table.noHeaderBg,
2357
- "onUpdate:modelValue": n[3] ||= (e) => c("headerBackgroundColor", e || null)
2358
- }, null, 8, [
2359
- "model-value",
2360
- "seed-color",
2361
- "placeholder"
2362
- ])])) : _("", !0),
2363
- x("div", pa, [x("label", { class: m(f(V)) }, w(f(a).table.borderColor), 3), p(G, {
2364
- "model-value": e.block.borderColor,
2365
- "onUpdate:modelValue": n[4] ||= (e) => c("borderColor", e)
2366
- }, null, 8, ["model-value"])]),
2367
- x("div", ma, [x("label", { class: m(f(V)) }, w(f(a).table.borderWidth), 3), x("div", ha, [x("input", {
2368
- type: "number",
2369
- class: m(f(U)),
2370
- value: e.block.borderWidth,
2371
- min: "0",
2372
- max: "10",
2373
- onInput: n[5] ||= (e) => c("borderWidth", Number(e.target.value))
2374
- }, null, 42, ga), x("span", { class: m(f(H)) }, "px", 2)])]),
2375
- x("div", _a, [x("label", { class: m(f(V)) }, w(f(a).table.cellPadding), 3), x("div", va, [x("input", {
2376
- type: "number",
2377
- class: m(f(U)),
2378
- value: e.block.cellPadding,
2379
- min: "0",
2380
- max: "30",
2381
- onInput: n[6] ||= (e) => c("cellPadding", Number(e.target.value))
2382
- }, null, 42, ya), x("span", { class: m(f(H)) }, "px", 2)])]),
2383
- x("div", ba, [x("label", { class: m(f(V)) }, w(f(a).table.fontFamily), 3), x("select", {
2384
- class: m(f(W)),
2385
- value: f(Je)(e.block.fontFamily),
2386
- onChange: n[7] ||= (e) => c("fontFamily", e.target.value || void 0)
2387
- }, [x("option", Sa, w(f(a).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
2388
- key: e.value,
2389
- value: e.value
2390
- }, w(e.label), 9, Ca))), 128))], 42, xa)]),
2391
- x("div", wa, [x("label", { class: m(f(V)) }, w(f(a).table.fontSize), 3), x("div", Ta, [x("input", {
2392
- type: "number",
2393
- class: m(f(U)),
2394
- value: e.block.fontSize,
2395
- min: "10",
2396
- max: "32",
2397
- onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
2398
- }, null, 42, Ea), x("span", { class: m(f(H)) }, "px", 2)])]),
2399
- x("div", Da, [x("label", { class: m(f(V)) }, w(f(a).table.color), 3), p(G, {
2400
- "model-value": e.block.color ?? "",
2401
- "onUpdate:modelValue": n[9] ||= (e) => c("color", e || void 0)
2402
- }, null, 8, ["model-value"])]),
2403
- x("div", Oa, [x("label", { class: m(f(V)) }, w(f(a).table.textAlign), 3), p(J, {
2404
- options: [
2405
- {
2406
- value: "left",
2407
- label: f(a).title.alignLeft,
2408
- icon: f(z)
2409
- },
2410
- {
2411
- value: "center",
2412
- label: f(a).title.alignCenter,
2413
- icon: f(Le)
2414
- },
2415
- {
2416
- value: "right",
2417
- label: f(a).title.alignRight,
2418
- icon: f(Ee)
2419
- }
2420
- ],
2421
- "model-value": e.block.textAlign,
2422
- "onUpdate:modelValue": n[10] ||= (e) => c("textAlign", e)
2423
- }, null, 8, ["options", "model-value"])])
2424
- ], 64));
2425
- }
2426
- }), Aa = { class: "tpl:mb-3.5" }, ja = ["value"], Ma = { value: 1 }, Na = { value: 2 }, Pa = { value: 3 }, Fa = { value: 4 }, Ia = { class: "tpl:mb-3.5" }, La = ["value"], Ra = { value: "" }, za = ["value"], Ba = { class: "tpl:mb-3.5" }, Va = { class: "tpl:mb-3.5" }, Ha = /* @__PURE__ */ l({
2427
- __name: "TitleToolbar",
2428
- props: {
2429
- block: {},
2430
- fontFamilies: {}
2431
- },
2432
- emits: ["update"],
2433
- setup(e, { emit: t }) {
2434
- let n = t, { t: i } = L();
2435
- function a(e, t) {
2436
- n("update", { [e]: t });
2437
- }
2438
- return (t, n) => (o(), g(C, null, [
2439
- x("div", Aa, [x("label", { class: m(f(V)) }, w(f(i).title.level), 3), x("select", {
2440
- class: m(f(W)),
2441
- value: e.block.level,
2442
- onChange: n[0] ||= (e) => a("level", Number(e.target.value))
2443
- }, [
2444
- x("option", Ma, w(f(i).title.heading1), 1),
2445
- x("option", Na, w(f(i).title.heading2), 1),
2446
- x("option", Pa, w(f(i).title.heading3), 1),
2447
- x("option", Fa, w(f(i).title.heading4), 1)
2448
- ], 42, ja)]),
2449
- x("div", Ia, [x("label", { class: m(f(V)) }, w(f(i).title.fontFamily), 3), x("select", {
2450
- class: m(f(W)),
2451
- value: f(Je)(e.block.fontFamily),
2452
- onChange: n[1] ||= (e) => a("fontFamily", e.target.value || void 0)
2453
- }, [x("option", Ra, w(f(i).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
2454
- key: e.value,
2455
- value: e.value
2456
- }, w(e.label), 9, za))), 128))], 42, La)]),
2457
- x("div", Ba, [x("label", { class: m(f(V)) }, w(f(i).title.color), 3), p(G, {
2458
- "model-value": e.block.color ?? "",
2459
- "onUpdate:modelValue": n[2] ||= (e) => a("color", e || void 0)
2460
- }, null, 8, ["model-value"])]),
2461
- x("div", Va, [x("label", { class: m(f(V)) }, w(f(i).title.align), 3), p(J, {
2462
- options: [
2463
- {
2464
- value: "left",
2465
- label: f(i).title.alignLeft,
2466
- icon: f(z)
2467
- },
2468
- {
2469
- value: "center",
2470
- label: f(i).title.alignCenter,
2471
- icon: f(Le)
2472
- },
2473
- {
2474
- value: "right",
2475
- label: f(i).title.alignRight,
2476
- icon: f(Ee)
2477
- }
2478
- ],
2479
- "model-value": e.block.textAlign,
2480
- "onUpdate:modelValue": n[3] ||= (e) => a("textAlign", e)
2481
- }, null, 8, ["options", "model-value"])])
2482
- ], 64));
2483
- }
2484
- }), Ua = { class: "tpl:mb-3.5" }, Wa = {
2485
- key: 0,
2486
- class: "tpl:mb-3.5"
2487
- }, Ga = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ka = [
2488
- "value",
2489
- "placeholder",
2490
- "title"
2491
- ], qa = { class: "tpl:mb-3.5" }, Ja = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ya = { class: "tpl:mb-3.5" }, Xa = { class: "tpl:mb-3.5" }, Za = ["value"], Qa = { value: "full" }, $a = { value: "custom" }, eo = {
2492
- key: 0,
2493
- class: "tpl:mt-2 tpl:flex tpl:items-stretch"
2494
- }, to = ["value"], no = { class: "tpl:mb-3.5" }, ro = ["value"], io = { value: "auto" }, ao = { value: "custom" }, oo = {
2495
- key: 0,
2496
- class: "tpl:mt-2 tpl:flex tpl:items-stretch"
2497
- }, so = ["value"], co = { class: "tpl:mb-3.5" }, lo = 350, uo = 200, fo = /* @__PURE__ */ l({
2498
- __name: "VideoToolbar",
2499
- props: { block: {} },
2500
- emits: ["update"],
2501
- setup(e, { emit: t }) {
2502
- let r = e, i = t, { t: a } = L(), c = n(pe, null), l = n(me, ne.liquid), u = ze(), d = [
2503
- 300,
2504
- 400,
2505
- 500
2506
- ], v = h(() => !!c), b = h(() => P(r.block.url, l)), S = h(() => {
2507
- let e = r.block.width;
2508
- return e === "full" ? "full" : d.includes(e) ? String(e) : "custom";
2509
- }), T = h(() => typeof r.block.height == "number" ? "custom" : "auto"), D = s(!1), { start: O } = le(() => {
2510
- D.value = !1;
2511
- }, 1e3, { immediate: !1 });
2512
- function k(e, t) {
2513
- i("update", { [e]: t });
2514
- }
2515
- function A(e) {
2516
- if (e === "custom") {
2517
- let e = r.block.width;
2518
- (typeof e != "number" || d.includes(e)) && k("width", lo);
2519
- } else k("width", e === "full" ? "full" : Number(e));
2520
- }
2521
- function j(e) {
2522
- let t = Number(e);
2523
- !Number.isFinite(t) || t <= 0 || k("width", t);
2524
- }
2525
- function M(e) {
2526
- k("height", e === "custom" ? uo : void 0);
2527
- }
2528
- function N(e) {
2529
- let t = Number(e);
2530
- !Number.isFinite(t) || t <= 0 || k("height", t);
2531
- }
2532
- async function ee() {
2533
- let e = await c?.({ accept: ["images"] });
2534
- u.alive && e && (k("thumbnailUrl", e.url), D.value = !0, O());
2535
- }
2536
- return (t, n) => (o(), g(C, null, [
2537
- x("div", Ua, [
2538
- x("label", { class: m(f(V)) }, w(f(a).video.videoUrl), 3),
2539
- p(q, {
2540
- "model-value": e.block.url,
2541
- type: "url",
2542
- placeholder: f(a).video.videoUrlPlaceholder,
2543
- "onUpdate:modelValue": n[0] ||= (e) => k("url", e)
2544
- }, null, 8, ["model-value", "placeholder"]),
2545
- e.block.url ? (o(), y(K, {
2546
- key: 0,
2547
- class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
2548
- "model-value": e.block.openInNewTab ?? !1,
2549
- label: f(a).video.openInNewTab,
2550
- "onUpdate:modelValue": n[1] ||= (e) => k("openInNewTab", e)
2551
- }, null, 8, ["model-value", "label"])) : _("", !0)
2552
- ]),
2553
- b.value ? (o(), g("div", Wa, [x("label", { class: m(f(V)) }, [E(w(f(a).video.placeholderUrl) + " ", 1), x("span", Ga, w(f(a).video.optional), 1)], 2), x("input", {
2554
- type: "url",
2555
- class: m(f(W)),
2556
- value: e.block.placeholderUrl || "",
2557
- placeholder: f(a).video.placeholderUrlPlaceholder,
2558
- title: f(a).video.placeholderUrlTooltip,
2559
- onInput: n[2] ||= (e) => k("placeholderUrl", e.target.value)
2560
- }, null, 42, Ka)])) : _("", !0),
2561
- x("div", qa, [
2562
- x("label", { class: m(f(V)) }, [E(w(f(a).video.customThumbnail) + " ", 1), x("span", Ja, w(f(a).video.optional), 1)], 2),
2563
- p(q, {
2564
- "model-value": e.block.thumbnailUrl,
2565
- type: "url",
2566
- placeholder: f(a).video.thumbnailPlaceholder,
2567
- pulse: D.value,
2568
- "onUpdate:modelValue": n[3] ||= (e) => k("thumbnailUrl", e)
2569
- }, null, 8, [
2570
- "model-value",
2571
- "placeholder",
2572
- "pulse"
2573
- ]),
2574
- v.value ? (o(), g("button", {
2575
- key: 0,
2576
- 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",
2577
- style: {
2578
- "border-color": "var(--tpl-border)",
2579
- color: "var(--tpl-primary)",
2580
- "background-color": "var(--tpl-bg)"
2581
- },
2582
- onClick: ee
2583
- }, [p(f(Fe), {
2584
- size: 14,
2585
- "stroke-width": 1.5
2586
- }), E(" " + w(f(a).image.browseMedia), 1)])) : _("", !0)
2587
- ]),
2588
- x("div", Ya, [x("label", { class: m(f(V)) }, w(f(a).video.altText), 3), p(q, {
2589
- "model-value": e.block.alt,
2590
- type: "text",
2591
- placeholder: f(a).video.altTextPlaceholder,
2592
- "onUpdate:modelValue": n[4] ||= (e) => k("alt", e)
2593
- }, null, 8, ["model-value", "placeholder"])]),
2594
- x("div", Xa, [
2595
- x("label", { class: m(f(V)) }, w(f(a).video.width), 3),
2596
- x("select", {
2597
- class: m(f(W)),
2598
- "data-testid": "video-width-mode",
2599
- value: S.value,
2600
- onChange: n[5] ||= (e) => A(e.target.value)
2601
- }, [
2602
- x("option", Qa, w(f(a).video.fullWidth), 1),
2603
- n[10] ||= x("option", { value: "300" }, "300px", -1),
2604
- n[11] ||= x("option", { value: "400" }, "400px", -1),
2605
- n[12] ||= x("option", { value: "500" }, "500px", -1),
2606
- x("option", $a, w(f(a).video.widthCustom), 1)
2607
- ], 42, Za),
2608
- S.value === "custom" ? (o(), g("div", eo, [x("input", {
2609
- type: "number",
2610
- "data-testid": "video-width-input",
2611
- class: m(f(U)),
2612
- value: e.block.width,
2613
- min: "20",
2614
- onInput: n[6] ||= (e) => j(e.target.value)
2615
- }, null, 42, to), x("span", { class: m(f(H)) }, "px", 2)])) : _("", !0)
2616
- ]),
2617
- x("div", no, [
2618
- x("label", { class: m(f(V)) }, w(f(a).video.height), 3),
2619
- x("select", {
2620
- class: m(f(W)),
2621
- "data-testid": "video-height-mode",
2622
- value: T.value,
2623
- onChange: n[7] ||= (e) => M(e.target.value)
2624
- }, [x("option", io, w(f(a).video.heightAuto), 1), x("option", ao, w(f(a).video.heightCustom), 1)], 42, ro),
2625
- T.value === "custom" ? (o(), g("div", oo, [x("input", {
2626
- type: "number",
2627
- "data-testid": "video-height-input",
2628
- class: m(f(U)),
2629
- value: e.block.height,
2630
- min: "20",
2631
- onInput: n[8] ||= (e) => N(e.target.value)
2632
- }, null, 42, so), x("span", { class: m(f(H)) }, "px", 2)])) : _("", !0)
2633
- ]),
2634
- x("div", co, [x("label", { class: m(f(V)) }, w(f(a).title.align), 3), p(J, {
2635
- options: [
2636
- {
2637
- value: "left",
2638
- label: f(a).title.alignLeft
2639
- },
2640
- {
2641
- value: "center",
2642
- label: f(a).title.alignCenter
2643
- },
2644
- {
2645
- value: "right",
2646
- label: f(a).title.alignRight
2647
- }
2648
- ],
2649
- "model-value": e.block.align,
2650
- "onUpdate:modelValue": n[9] ||= (e) => k("align", e)
2651
- }, null, 8, ["options", "model-value"])])
2652
- ], 64));
2653
- }
2654
- }), po = ["aria-label"], mo = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, ho = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, go = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, _o = { class: "tpl:flex tpl:gap-1" }, vo = ["title"], yo = ["title"], bo = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, xo = /*@__PURE__*/ l({
2655
- __name: "Toolbar",
2656
- props: { block: {} },
2657
- emits: [
2658
- "update",
2659
- "delete",
2660
- "duplicate"
2661
- ],
2662
- setup(e, { emit: t }) {
2663
- let r = T(() => import("./CountdownToolbar-DPIOtlN0.js")), i = e, a = t, { t: s } = L(), l = ue(ye, "Toolbar"), u = n(ve, []), d = h(() => i.block.type), m = h(() => te(i.block)), v = h(() => {
2664
- if (m.value) return u.find((e) => e.type === i.block.customType);
2665
- }), b = h(() => m.value ? v.value?.name ?? i.block.customType : ie(d.value, s)), S = h(() => qe(l.fonts.value, "fontFamily" in i.block ? i.block.fontFamily : void 0));
2666
- function C(e) {
2667
- a("update", e);
2668
- }
2669
- return (t, n) => (o(), g("aside", {
2670
- "data-testid": "block-toolbar",
2671
- "aria-label": f(s).landmarks.blockToolbar,
2672
- class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
2673
- }, [x("div", mo, [x("div", ho, [f(Ge)[d.value] ? (o(), y(c(f(Ge)[d.value]), {
2674
- key: 0,
2675
- size: 16,
2676
- "stroke-width": 1.5
2677
- })) : m.value ? (o(), y(f(Me), {
2678
- key: 1,
2679
- size: 16,
2680
- "stroke-width": 1.5
2681
- })) : _("", !0), x("h3", go, w(b.value), 1)]), x("div", _o, [x("button", {
2682
- 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)]",
2683
- title: f(s).toolbar.duplicate,
2684
- onClick: n[0] ||= (e) => a("duplicate")
2685
- }, [p(f(Se), {
2686
- size: 14,
2687
- "stroke-width": 2
2688
- })], 8, vo), x("button", {
2689
- 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)]",
2690
- title: f(s).toolbar.delete,
2691
- onClick: n[1] ||= (e) => a("delete")
2692
- }, [p(f(ke), {
2693
- size: 14,
2694
- "stroke-width": 2
2695
- })], 8, yo)])]), x("div", bo, [m.value ? (o(), y(_r, {
2696
- key: 0,
2697
- block: e.block,
2698
- onUpdateFieldValues: n[2] ||= (e) => a("update", { fieldValues: e }),
2699
- onUpdateDataSourceFetched: n[3] ||= (e) => a("update", { dataSourceFetched: e })
2700
- }, null, 8, ["block"])) : d.value === "section" ? (o(), y(Si, {
2701
- key: 1,
2702
- block: e.block,
2703
- onUpdate: C
2704
- }, null, 8, ["block"])) : d.value === "title" ? (o(), y(Ha, {
2705
- key: 2,
2706
- block: e.block,
2707
- "font-families": S.value,
2708
- onUpdate: C
2709
- }, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (o(), y(fi, {
2710
- key: 3,
2711
- block: e.block,
2712
- onUpdate: C
2713
- }, null, 8, ["block"])) : d.value === "image" ? (o(), y(Xr, {
2714
- key: 4,
2715
- block: e.block,
2716
- onUpdate: C
2717
- }, null, 8, ["block"])) : d.value === "video" ? (o(), y(fo, {
2718
- key: 5,
2719
- block: e.block,
2720
- onUpdate: C
2721
- }, null, 8, ["block"])) : d.value === "button" ? (o(), y(Pt, {
2722
- key: 6,
2723
- block: e.block,
2724
- "font-families": S.value,
2725
- onUpdate: C
2726
- }, null, 8, ["block", "font-families"])) : d.value === "divider" ? (o(), y(Cr, {
2727
- key: 7,
2728
- block: e.block,
2729
- onUpdate: C
2730
- }, null, 8, ["block"])) : d.value === "social" ? (o(), y(qi, {
2731
- key: 8,
2732
- block: e.block,
2733
- onUpdate: C
2734
- }, null, 8, ["block"])) : d.value === "menu" ? (o(), y(ci, {
2735
- key: 9,
2736
- block: e.block,
2737
- "font-families": S.value,
2738
- onUpdate: C
2739
- }, null, 8, ["block", "font-families"])) : d.value === "table" ? (o(), y(ka, {
2740
- key: 10,
2741
- block: e.block,
2742
- "font-families": S.value,
2743
- onUpdate: C
2744
- }, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (o(), y(Qi, {
2745
- key: 11,
2746
- block: e.block,
2747
- onUpdate: C
2748
- }, null, 8, ["block"])) : d.value === "html" ? (o(), y(Dr, {
2749
- key: 12,
2750
- block: e.block,
2751
- onUpdate: C
2752
- }, null, 8, ["block"])) : d.value === "countdown" ? (o(), y(f(r), {
2753
- key: 13,
2754
- block: e.block,
2755
- "font-families": S.value,
2756
- onUpdate: C
2757
- }, null, 8, ["block", "font-families"])) : _("", !0), p(Nn, {
2758
- block: e.block,
2759
- "is-first-section": d.value === "paragraph",
2760
- onUpdate: C
2761
- }, null, 8, ["block", "is-first-section"])])], 8, po));
2762
- }
2763
- }), So = /* @__PURE__ */ e({ default: () => Co }), Co = /*#__PURE__*/ Re(xo, [["__scopeId", "data-v-e2d2c22f"]]);
2764
- //#endregion
2765
- export { Co as default, J as i, $ as n, Y as r, So as t };
2766
-
2767
- //# sourceMappingURL=Toolbar-Ik54UO_-.js.map