@templatical/editor 0.46.0 → 0.47.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.
- package/dist/{AiChatSidebar-DGcH4Lyo.js → AiChatSidebar-BPOv5Ra8.js} +14 -14
- package/dist/{AiFeatureMenu-B4q-0g1S.js → AiFeatureMenu-H_WT4YR8.js} +7 -7
- package/dist/{BlockIssueBadge-CZA1XvAh.js → BlockIssueBadge-AgO5abEB.js} +5 -5
- package/dist/BlockPreviewCanvas-CZDBSPoG.js +136 -0
- package/dist/{CloudHeaderExtras-ehMYJP68.js → CloudHeaderExtras-gXsTYoGG.js} +5 -5
- package/dist/{CloudPanels-BwOaAlKz.js → CloudPanels-H_GdbOfZ.js} +9 -9
- package/dist/{CollaboratorBar-qOZFRNPx.js → CollaboratorBar-BazGNMqN.js} +4 -4
- package/dist/{CommentsPanel-Bn6P5crU.js → CommentsPanel-CMgsG_yh.js} +2 -2
- package/dist/{CommentsSidebar-B8wT932T.js → CommentsSidebar-DCh8DTP8.js} +14 -14
- package/dist/CountdownBlock-zx39Dyby.js +92 -0
- package/dist/{CountdownToolbar-BeF21SeB.js → CountdownToolbar-DVuucA3v.js} +7 -7
- package/dist/{DesignReferenceSidebar-zH93uB15.js → DesignReferenceSidebar-DxNV4lQp.js} +12 -12
- package/dist/{IssuesPanel-Dltw9haP.js → IssuesPanel-CUpW54P4.js} +8 -8
- package/dist/{LoadingTrack-DROqNuuD.js → LoadingTrack-6XsqodoY.js} +1 -1
- package/dist/{LogicTagInsertButton-CHa-UD76.js → LogicTagInsertButton-DDYKnqmj.js} +13 -13
- package/dist/{MediaEditModal-EY1YYcpw.js → MediaEditModal-D_we0Scr.js} +4 -4
- package/dist/{MediaPanels-CRVFGFZW.js → MediaPanels-L95BwWV1.js} +2 -2
- package/dist/{MergeTagInput-B3ntd4dN.js → MergeTagInput-DAL998tx.js} +3 -3
- package/dist/{MergeTagModeToggle-C_06ZL0Q.js → MergeTagModeToggle-CjHO26rb.js} +7 -7
- package/dist/{ParagraphEditor-CxuW3TV0.js → ParagraphEditor-CcEN1N6n.js} +165 -150
- package/dist/{RestoreVersionDialog-B1n37M1Z.js → RestoreVersionDialog-B2OH5rgs.js} +6 -6
- package/dist/{RichTextEditorContent-CP_uULWB.js → RichTextEditorContent-BGeTg-QL.js} +12 -12
- package/dist/{SaveBlockDialog-BSKX_7_v.js → SaveBlockDialog-CCVyU-7y.js} +13 -13
- package/dist/{SavedBlocksBrowserModal-CHKrH1gO.js → SavedBlocksBrowserModal-_WmSeqIh.js} +14 -14
- package/dist/{SavedBlocksPanels-B-xDqBcz.js → SavedBlocksPanels-DVX_ruQ7.js} +2 -2
- package/dist/{SavedBlocksPickBar-D2J-g82g.js → SavedBlocksPickBar-DVJC28hP.js} +5 -5
- package/dist/{TemplateScoringPanel-3lHzuCl0.js → TemplateScoringPanel-U0QFiwdI.js} +16 -16
- package/dist/{TemplateSettings-D07K_Y4m.js → TemplateSettings-CdhTm9JQ.js} +12 -12
- package/dist/{TestEmailModal-BNPw_lID.js → TestEmailModal-BqToA_ls.js} +14 -14
- package/dist/{TestEmailPanel-8klWo8hE.js → TestEmailPanel-Cn4Ptq0j.js} +2 -2
- package/dist/{TitleEditor-CmC9OuhA.js → TitleEditor-CZdqeltH.js} +13 -13
- package/dist/{ToggleSwitch-COeyWGfT.js → ToggleSwitch-BR8Sgzib.js} +2 -2
- package/dist/{Toolbar-CqhRb6EM.js → Toolbar-OGakTBEg.js} +747 -628
- package/dist/{TplModal-BGFawHY9.js → TplModal-CoczSDma.js} +6 -6
- package/dist/{VersionHistoryMenu-D7zaTMrb.js → VersionHistoryMenu-DY5z5FZr.js} +10 -10
- package/dist/{VersionHistoryPanels-DdbGjEOR.js → VersionHistoryPanels-DowHeDAQ.js} +2 -2
- package/dist/{VersionPreviewBanner-BUKb9gc6.js → VersionPreviewBanner-Bo8NxBbh.js} +4 -4
- package/dist/WrapperBlock-BOABSX9W.js +46 -0
- package/dist/{blockTypeIcons-CVKo6V_v.js → blockTypeIcons-4E1U8f99.js} +5 -5
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-C__Dzq--.js → ca-DMoGGP9L.js} +21 -0
- package/dist/cdn/chunks/{AiChatSidebar-kCK4NZM9.js → AiChatSidebar-B72rI0be.js} +12 -12
- package/dist/cdn/chunks/{AiChatSidebar-kCK4NZM9.js.map → AiChatSidebar-B72rI0be.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-K1dLeDft.js → AiFeatureMenu-BqSG9iEd.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-K1dLeDft.js.map → AiFeatureMenu-BqSG9iEd.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js → BlockIssueBadge-CS7ytN-z.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js.map → BlockIssueBadge-CS7ytN-z.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +138 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-5ONQ1RCa.js → CloudHeaderExtras-DJXLTUHc.js} +5 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-5ONQ1RCa.js.map → CloudHeaderExtras-DJXLTUHc.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-_irSdWbi.js → CloudPanels-D1fPLjG8.js} +8 -8
- package/dist/cdn/chunks/{CloudPanels-_irSdWbi.js.map → CloudPanels-D1fPLjG8.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-CZufI1On.js → CollaboratorBar-MeRQB1eN.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-CZufI1On.js.map → CollaboratorBar-MeRQB1eN.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js → CommentsPanel-CmxPylNf.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js.map → CommentsPanel-CmxPylNf.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js → CommentsSidebar-CrleQTbo.js} +13 -13
- package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js.map → CommentsSidebar-CrleQTbo.js.map} +1 -1
- package/dist/cdn/chunks/CountdownBlock-Dasj191h.js +94 -0
- package/dist/cdn/chunks/CountdownBlock-Dasj191h.js.map +1 -0
- package/dist/cdn/chunks/{CountdownToolbar-BaXCefQM.js → CountdownToolbar-DPIOtlN0.js} +8 -8
- package/dist/cdn/chunks/{CountdownToolbar-BaXCefQM.js.map → CountdownToolbar-DPIOtlN0.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-GjkpHylX.js → DesignReferenceSidebar-BgTNqgCy.js} +8 -8
- package/dist/cdn/chunks/{DesignReferenceSidebar-GjkpHylX.js.map → DesignReferenceSidebar-BgTNqgCy.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-C1Lv2y_O.js → IssuesPanel-BGjLcNpQ.js} +6 -6
- package/dist/cdn/chunks/{IssuesPanel-C1Lv2y_O.js.map → IssuesPanel-BGjLcNpQ.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js → LoadingTrack-DbH97JR9.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js.map → LoadingTrack-DbH97JR9.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BYjdrDnQ.js → LogicTagInsertButton-BEsqPhMr.js} +11 -11
- package/dist/cdn/chunks/{LogicTagInsertButton-BYjdrDnQ.js.map → LogicTagInsertButton-BEsqPhMr.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js → MediaEditModal-C1Ao0i2c.js} +4 -4
- package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js.map → MediaEditModal-C1Ao0i2c.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js → MediaPanels-1GPYiZZ0.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js.map → MediaPanels-1GPYiZZ0.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-Cx67J_vg.js → MergeTagInput-Dy13_OLc.js} +4 -4
- package/dist/cdn/chunks/{MergeTagInput-Cx67J_vg.js.map → MergeTagInput-Dy13_OLc.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DZ4EuXVp.js → MergeTagModeToggle-B2CPZOeF.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-DZ4EuXVp.js.map → MergeTagModeToggle-B2CPZOeF.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DndEFXmR.js → ParagraphEditor-BGLIw7kg.js} +91 -76
- package/dist/cdn/chunks/ParagraphEditor-BGLIw7kg.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CFYs13a4.js → RestoreVersionDialog-BhykE8En.js} +8 -8
- package/dist/cdn/chunks/{RestoreVersionDialog-CFYs13a4.js.map → RestoreVersionDialog-BhykE8En.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DKkDQ0dc.js → RichTextEditorContent-B-txUvPL.js} +11 -11
- package/dist/cdn/chunks/{RichTextEditorContent-DKkDQ0dc.js.map → RichTextEditorContent-B-txUvPL.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BOA2RaC_.js → SaveBlockDialog-BHqEp7jw.js} +40 -40
- package/dist/cdn/chunks/{SaveBlockDialog-BOA2RaC_.js.map → SaveBlockDialog-BHqEp7jw.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DQDVek3K.js → SavedBlocksBrowserModal-BhR6AI0f.js} +10 -10
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DQDVek3K.js.map → SavedBlocksBrowserModal-BhR6AI0f.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-Lu3tJ3QA.js → SavedBlocksPanels-YwffJtfY.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-Lu3tJ3QA.js.map → SavedBlocksPanels-YwffJtfY.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-D7MtqG6r.js → SavedBlocksPickBar-BtpFU7es.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksPickBar-D7MtqG6r.js.map → SavedBlocksPickBar-BtpFU7es.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js → TemplateScoringPanel-N4ySFh5w.js} +12 -12
- package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js.map → TemplateScoringPanel-N4ySFh5w.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-rZiHmq24.js → TemplateSettings-C7b5X34U.js} +13 -13
- package/dist/cdn/chunks/TemplateSettings-C7b5X34U.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-DWEyHXH2.js → TestEmailModal-DHJKI5y5.js} +11 -11
- package/dist/cdn/chunks/{TestEmailModal-DWEyHXH2.js.map → TestEmailModal-DHJKI5y5.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-XXMD-Lnr.js → TestEmailPanel-lYtzTXpR.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-XXMD-Lnr.js.map → TestEmailPanel-lYtzTXpR.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-D1F0YoE-.js → TitleEditor-5eY01ypW.js} +15 -15
- package/dist/cdn/chunks/{TitleEditor-D1F0YoE-.js.map → TitleEditor-5eY01ypW.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-B5U9cqhi.js → ToggleSwitch-BN8rMC2m.js} +3 -3
- package/dist/cdn/chunks/{ToggleSwitch-B5U9cqhi.js.map → ToggleSwitch-BN8rMC2m.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-C_5HfUQq.js → Toolbar-Ik54UO_-.js} +696 -575
- package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-CYBbPCHL.js → TplModal-WIBiBrGy.js} +6 -6
- package/dist/cdn/chunks/TplModal-WIBiBrGy.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js → VersionHistoryMenu-CZnlS9K5.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js.map → VersionHistoryMenu-CZnlS9K5.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Dq12VsTX.js → VersionHistoryPanels-xjLSpR1e.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-Dq12VsTX.js.map → VersionHistoryPanels-xjLSpR1e.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js → VersionPreviewBanner-sARpn4hh.js} +5 -5
- package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js.map → VersionPreviewBanner-sARpn4hh.js.map} +1 -1
- package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +48 -0
- package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-DdZP-3FM.js → blockTypeIcons-D3g5QzdT.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-DdZP-3FM.js.map → blockTypeIcons-D3g5QzdT.js.map} +1 -1
- package/dist/cdn/chunks/{ca-C__Dzq--.js → ca-DMoGGP9L.js} +22 -1
- package/dist/cdn/chunks/ca-DMoGGP9L.js.map +1 -0
- package/dist/cdn/chunks/{cloud-h1vaHp2p.js → cloud-Cd7ptfhL.js} +3 -3
- package/dist/cdn/chunks/{cloud-h1vaHp2p.js.map → cloud-Cd7ptfhL.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-bJN9EM1H.js → createCloudRuntime-DtIZ2Lee.js} +17 -8
- package/dist/cdn/chunks/createCloudRuntime-DtIZ2Lee.js.map +1 -0
- package/dist/cdn/chunks/{de-CGjbQ2mt.js → de-DgAelLbM.js} +22 -1
- package/dist/cdn/chunks/de-DgAelLbM.js.map +1 -0
- package/dist/cdn/chunks/{dist-B7W-Lb65.js → dist-CjL6JHML.js} +3 -3
- package/dist/cdn/chunks/{dist-B7W-Lb65.js.map → dist-CjL6JHML.js.map} +1 -1
- package/dist/cdn/chunks/{dist-C5nRd_ua.js → dist-MNQYSEWU.js} +4 -4
- package/dist/cdn/chunks/{dist-C5nRd_ua.js.map → dist-MNQYSEWU.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-BUTN5vZC.js → draggable-DrsNwZuB.js} +1673 -1595
- package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js → editor-modal-Bcwo0orC.js} +34 -34
- package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js.map → editor-modal-Bcwo0orC.js.map} +1 -1
- package/dist/cdn/chunks/en-BANFWZdr.js +1 -0
- package/dist/cdn/chunks/{en-BTiiAC-B.js → en-Dekrl7HA.js} +22 -1
- package/dist/cdn/chunks/en-Dekrl7HA.js.map +1 -0
- package/dist/cdn/chunks/{es-CdTOcSTf.js → es-BaZzyidV.js} +22 -1
- package/dist/cdn/chunks/es-BaZzyidV.js.map +1 -0
- package/dist/cdn/chunks/{extensions-CrmXF4MW.js → extensions-T-t8MKDb.js} +7 -7
- package/dist/cdn/chunks/{extensions-CrmXF4MW.js.map → extensions-T-t8MKDb.js.map} +1 -1
- package/dist/cdn/chunks/{fr-B6lcLLzC.js → fr-C5ucb1HK.js} +22 -1
- package/dist/cdn/chunks/fr-C5ucb1HK.js.map +1 -0
- package/dist/cdn/chunks/{icons-Dr9erFGs.js → icons-C4fX9Bwy.js} +27 -27
- package/dist/cdn/chunks/{icons-Dr9erFGs.js.map → icons-C4fX9Bwy.js.map} +1 -1
- package/dist/cdn/chunks/{ja-BhdkqENz.js → ja-CUgR3mV0.js} +22 -1
- package/dist/cdn/chunks/ja-CUgR3mV0.js.map +1 -0
- package/dist/cdn/chunks/{keys-BKu-LOk5.js → keys-HI-INbkz.js} +2 -2
- package/dist/cdn/chunks/{keys-BKu-LOk5.js.map → keys-HI-INbkz.js.map} +1 -1
- package/dist/{nl-CE3YItYg.js → cdn/chunks/nl-qrLY7hMS.js} +23 -0
- package/dist/cdn/chunks/nl-qrLY7hMS.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-CyGB3lZr.js → preRenderCustomBlocks-Co0oi0Jf.js} +4 -2
- package/dist/cdn/chunks/preRenderCustomBlocks-Co0oi0Jf.js.map +1 -0
- package/dist/cdn/chunks/{pt-BR-CUIT4rq4.js → pt-BR-C6hMTQYi.js} +22 -1
- package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-DACw1wA8.js +1103 -0
- package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +1 -0
- package/dist/{dist-BI_LeQGl.js → cdn/chunks/src-BnJlDuyB.js} +392 -249
- package/dist/cdn/chunks/src-BnJlDuyB.js.map +1 -0
- package/dist/cdn/chunks/{src-BMw3u-iV.js → src-Bu0qBpbf.js} +214 -212
- package/dist/cdn/chunks/src-Bu0qBpbf.js.map +1 -0
- package/dist/cdn/chunks/{src-B0pZeTYO.js → src-CHlVFp7r.js} +308 -268
- package/dist/cdn/chunks/src-CHlVFp7r.js.map +1 -0
- package/dist/{styleConstants-C_YAPdQS.js → cdn/chunks/styleConstants-D1Jz-TFU.js} +9 -28
- package/dist/cdn/chunks/{styleConstants-C_YAPdQS.js.map → styleConstants-D1Jz-TFU.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-CYDXLO17.js → tiptap-BPigZk5G.js} +3258 -3098
- package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js → useAliveFlag-DCB96vzR.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js.map → useAliveFlag-DCB96vzR.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js → useCloudI18n-BBF4waXO.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js.map → useCloudI18n-BBF4waXO.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-DuC7kVti.js → useEditorCore-Bf2d1DKI.js} +543 -532
- package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-DDPIcEOO.js.map → useEditorRoot-CTc6O8al.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-DO4NTunW.js → useI18n-DUlyyIJJ.js} +3 -3
- package/dist/cdn/chunks/{useI18n-DO4NTunW.js.map → useI18n-DUlyyIJJ.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-B3uV3XHG.js → useLogicTag-3S63go4E.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-B3uV3XHG.js.map → useLogicTag-3S63go4E.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-DJLM-7WQ.js → useMergeTag-BQtxUHq1.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-DJLM-7WQ.js.map → useMergeTag-BQtxUHq1.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js → usePopoverPosition-IbaW6-Ao.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js.map → usePopoverPosition-IbaW6-Ao.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-CpmB5KxW.js → useScrollToBlock-uUa601I4.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-CpmB5KxW.js.map → useScrollToBlock-uUa601I4.js.map} +1 -1
- package/dist/cdn/chunks/withCurrentFont-DwJd-lKc.js +21 -0
- package/dist/cdn/chunks/{withCurrentFont-isIyuezD.js.map → withCurrentFont-DwJd-lKc.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +614 -610
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-ZKvtMdpe.js → check-B5R4zXr7.js} +1 -1
- package/dist/{chevron-down-RrwkYMlp.js → chevron-down-BKyl85NV.js} +1 -1
- package/dist/{chevron-right-CklHaa1U.js → chevron-right-BmToZ8qX.js} +1 -1
- package/dist/{chevron-up-DjN2NTbo.js → chevron-up-DNYdOxPC.js} +1 -1
- package/dist/{circle-alert-BR1_Yfb-.js → circle-alert-Dx9ju3YZ.js} +1 -1
- package/dist/{clock-BEagNj21.js → clock-Dv9bxsSH.js} +1 -1
- package/dist/{cloud-DPGjMGfv.js → cloud-DwjaAdwK.js} +2 -2
- package/dist/{copy-D6DNoSq1.js → copy-BsKl4dcy.js} +1 -1
- package/dist/{createCloudRuntime-D0RRgWab.js → createCloudRuntime-C8gpPsSi.js} +16 -7
- package/dist/{createLucideIcon-BAPyioGd.js → createLucideIcon-DziKp5iU.js} +6 -6
- package/dist/{de-CGjbQ2mt.js → de-DgAelLbM.js} +21 -0
- package/dist/{dist-Bd7khQsg.js → dist-3HpYixwF.js} +2 -2
- package/dist/{dist-lL3nVbxV.js → dist-BC-ZEYLd.js} +2 -2
- package/dist/dist-BPFcLKTw.js +5 -0
- package/dist/{cdn/chunks/src-Bh0MoJ67.js → dist-C8koXLhl.js} +295 -298
- package/dist/{dist-C-VFTX82.js → dist-CUWI-IvA.js} +2 -2
- package/dist/{dist-Bc30883t.js → dist-Cr7RPxI9.js} +5 -5
- package/dist/{dist-DapsJxn_.js → dist-CuLwJF7H.js} +2 -2
- package/dist/{dist-5KNKxglR.js → dist-CyBwSiAa.js} +2 -2
- package/dist/dist-D7Yj7E-F.js +5 -0
- package/dist/{dist-B_vYjCsk.js → dist-DAAJogrx.js} +3 -3
- package/dist/{dist-CMcFD7gP.js → dist-DBxgrOeo.js} +1906 -1746
- package/dist/{dist-DHensKDY.js → dist-DPcf6XZ8.js} +2 -2
- package/dist/{dist-5DAb7bYT.js → dist-DVNjPKsH.js} +2 -2
- package/dist/{dist-C3eH9-N2.js → dist-DXyGqIDE.js} +2 -2
- package/dist/{dist-1H4cnaoD.js → dist-DuufrR8O.js} +4 -4
- package/dist/{editor-modal-oRmkDlUs.js → editor-modal-BwyIUnV_.js} +27 -27
- package/dist/en-CC-57eC_.js +1 -0
- package/dist/{en-BTiiAC-B.js → en-Dekrl7HA.js} +21 -0
- package/dist/{es-CdTOcSTf.js → es-BaZzyidV.js} +21 -0
- package/dist/{extensions-CYigjb1g.js → extensions-DHyKjsNZ.js} +9 -9
- package/dist/{eye-DvsTBI57.js → eye-DQuinb9k.js} +1 -1
- package/dist/{fr-B6lcLLzC.js → fr-C5ucb1HK.js} +21 -0
- package/dist/{image-up-BoFGZm5Q.js → image-up-yTfLjOrj.js} +1 -1
- package/dist/index.d.ts +58 -8
- package/dist/{info-0bQQGjTV.js → info-C7OjlS11.js} +1 -1
- package/dist/{ja-BhdkqENz.js → ja-CUgR3mV0.js} +21 -0
- package/dist/{keys-injl74ob.js → keys-BKFq19a2.js} +1 -1
- package/dist/{link-Cstrr3Ep.js → link-CrUFaZ0t.js} +1 -1
- package/dist/{list-Dx9Rmy5s.js → list-CLgv6M-k.js} +1 -1
- package/dist/{loader-circle-D8Qqs0MG.js → loader-circle-BXM5VO0K.js} +1 -1
- package/dist/{message-circle-D78ELX6I.js → message-circle-BisdQ8H9.js} +1 -1
- package/dist/{cdn/chunks/nl-CE3YItYg.js → nl-qrLY7hMS.js} +21 -2
- package/dist/{package-DOvM9sHE.js → package-C1T4AxV1.js} +1 -1
- package/dist/{pencil-B6m0OG0n.js → pencil-oo2mwf4C.js} +1 -1
- package/dist/{plus-D-nEKxTc.js → plus-BIilXopD.js} +1 -1
- package/dist/{preRenderCustomBlocks-DokBGA_M.js → preRenderCustomBlocks-lFX0HHiV.js} +5 -3
- package/dist/{pt-BR-CUIT4rq4.js → pt-BR-C6hMTQYi.js} +21 -0
- package/dist/{refresh-cw-CXZS-R1U.js → refresh-cw-DrLlkEVC.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CO67ema2.js → runtime-dom.esm-bundler-lFF-QG3j.js} +3 -3
- package/dist/{search-DSvil0jo.js → search-DNu9lImk.js} +1 -1
- package/dist/{send-BBR28V94.js → send-DDNh3LoJ.js} +1 -1
- package/dist/{shield-check-ByxUnaU9.js → shield-check-aXM3o14f.js} +1 -1
- package/dist/{smartphone-CNOwGf5T.js → smartphone-isccgDee.js} +1 -1
- package/dist/socialIcons-BctavKBN.js +1180 -0
- package/dist/{sparkles-DO1hzwzf.js → sparkles-CIMfFxKv.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{cdn/chunks/styleConstants-C_YAPdQS.js → styleConstants-D1Jz-TFU.js} +7 -30
- package/dist/templatical-editor.js +559 -555
- package/dist/{text-align-start-BKEKMheq.js → text-align-start-C4JFeqsq.js} +1 -1
- package/dist/{trash-CKEQH4vH.js → trash-8ZD9pK_c.js} +1 -1
- package/dist/{triangle-alert-BHnfd3fV.js → triangle-alert-pq45xEHl.js} +1 -1
- package/dist/{upload-C8uO7KsR.js → upload-DrNFmVes.js} +1 -1
- package/dist/{useAliveFlag-6PtarpNZ.js → useAliveFlag-Dd06mRxe.js} +1 -1
- package/dist/{useCloudI18n-GvIOLziA.js → useCloudI18n-Nwqo7pI_.js} +2 -2
- package/dist/{useEditorCore-BJAQMvNW.js → useEditorCore-BcT7UI4e.js} +1011 -1006
- package/dist/{useEditorRoot-OWzNpDdT.js → useEditorRoot-BD3piYtD.js} +2 -2
- package/dist/{useI18n-uF11q85g.js → useI18n-CxVEpurs.js} +2 -2
- package/dist/{useLogicTag-B5gjcMzn.js → useLogicTag-D-dI8H6p.js} +3 -3
- package/dist/{useMergeTag-BwsBIDzR.js → useMergeTag-5wMeDBi-.js} +5 -5
- package/dist/{usePopoverPosition-DkBrHfCo.js → usePopoverPosition-CwnH1o5g.js} +2 -2
- package/dist/{useScrollToBlock-JRxhT1u_.js → useScrollToBlock-Do3suaqp.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-CctRY8kr.js → vue.runtime.esm-bundler-CAzmrXdD.js} +1215 -1155
- package/dist/{withCurrentFont-C9vqrduu.js → withCurrentFont-B4YnsG_2.js} +1 -1
- package/dist/{x-gEC0yMci.js → x-CBFKGLB1.js} +1 -1
- package/package.json +23 -23
- package/dist/BlockPreviewCanvas-DIZ0KgUD.js +0 -133
- package/dist/CountdownBlock-RNx3hIu0.js +0 -91
- package/dist/WrapperBlock-CTkmA887.js +0 -34
- package/dist/cdn/chunks/BlockPreviewCanvas-Djz9YAFx.js +0 -135
- package/dist/cdn/chunks/BlockPreviewCanvas-Djz9YAFx.js.map +0 -1
- package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js +0 -93
- package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-DndEFXmR.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-rZiHmq24.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-C_5HfUQq.js.map +0 -1
- package/dist/cdn/chunks/TplModal-CYBbPCHL.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-CJ0CLqi2.js +0 -36
- package/dist/cdn/chunks/WrapperBlock-CJ0CLqi2.js.map +0 -1
- package/dist/cdn/chunks/ca-C__Dzq--.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-bJN9EM1H.js.map +0 -1
- package/dist/cdn/chunks/de-CGjbQ2mt.js.map +0 -1
- package/dist/cdn/chunks/draggable-BUTN5vZC.js.map +0 -1
- package/dist/cdn/chunks/en-BTiiAC-B.js.map +0 -1
- package/dist/cdn/chunks/en-CAt6y87e.js +0 -1
- package/dist/cdn/chunks/es-CdTOcSTf.js.map +0 -1
- package/dist/cdn/chunks/fr-B6lcLLzC.js.map +0 -1
- package/dist/cdn/chunks/ja-BhdkqENz.js.map +0 -1
- package/dist/cdn/chunks/nl-CE3YItYg.js.map +0 -1
- package/dist/cdn/chunks/preRenderCustomBlocks-CyGB3lZr.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-ClJVDZwt.js +0 -1031
- package/dist/cdn/chunks/socialIcons-ClJVDZwt.js.map +0 -1
- package/dist/cdn/chunks/src-B0pZeTYO.js.map +0 -1
- package/dist/cdn/chunks/src-BMw3u-iV.js.map +0 -1
- package/dist/cdn/chunks/src-Bh0MoJ67.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CYDXLO17.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-DuC7kVti.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +0 -10
- package/dist/cdn/chunks/withCurrentFont-isIyuezD.js +0 -21
- package/dist/dist-CFC4pg2o.js +0 -5
- package/dist/dist-j2FavQmU.js +0 -5
- package/dist/en-Bk4iCfjp.js +0 -1
- package/dist/socialIcons-Ct_IoqPQ.js +0 -1107
|
@@ -1,27 +1,27 @@
|
|
|
1
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-
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { $ as
|
|
7
|
-
import { t as L } from "./useI18n-
|
|
8
|
-
import { o as
|
|
9
|
-
import { B as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { t as
|
|
14
|
-
import { c as G } from "./LogicTagInsertButton-
|
|
15
|
-
import { n as
|
|
16
|
-
import { n as
|
|
17
|
-
import { t as q } from "./MergeTagInput-
|
|
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
18
|
//#region src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
|
|
19
|
-
var
|
|
19
|
+
var Ye = [
|
|
20
20
|
"aria-checked",
|
|
21
21
|
"aria-label",
|
|
22
22
|
"title",
|
|
23
23
|
"onClick"
|
|
24
|
-
],
|
|
24
|
+
], Xe = { key: 1 }, J = /* @__PURE__ */ l({
|
|
25
25
|
__name: "SlidingPillSelect",
|
|
26
26
|
props: {
|
|
27
27
|
options: {},
|
|
@@ -64,9 +64,9 @@ var Je = [
|
|
|
64
64
|
key: 0,
|
|
65
65
|
size: 14,
|
|
66
66
|
"stroke-width": 2
|
|
67
|
-
})) : (o(), g("span",
|
|
67
|
+
})) : (o(), g("span", Xe, w(t.label), 1))], 12, Ye))), 128))], 4));
|
|
68
68
|
}
|
|
69
|
-
}),
|
|
69
|
+
}), Ze = { class: "tpl:flex tpl:items-stretch" }, Qe = [
|
|
70
70
|
"data-testid",
|
|
71
71
|
"value",
|
|
72
72
|
"min",
|
|
@@ -87,7 +87,7 @@ var Je = [
|
|
|
87
87
|
let t = e.target;
|
|
88
88
|
t.validity?.badInput || n("update:modelValue", Number(t.value));
|
|
89
89
|
}
|
|
90
|
-
return (t, n) => (o(), g("div",
|
|
90
|
+
return (t, n) => (o(), g("div", Ze, [x("input", {
|
|
91
91
|
type: "number",
|
|
92
92
|
"data-testid": e.testid,
|
|
93
93
|
class: m(f(U)),
|
|
@@ -95,14 +95,14 @@ var Je = [
|
|
|
95
95
|
min: e.min,
|
|
96
96
|
max: e.max,
|
|
97
97
|
onInput: r
|
|
98
|
-
}, null, 42,
|
|
98
|
+
}, null, 42, Qe), x("span", { class: m(f(H)) }, w(e.suffix), 3)]));
|
|
99
99
|
}
|
|
100
|
-
}),
|
|
100
|
+
}), $e = [
|
|
101
101
|
"aria-pressed",
|
|
102
102
|
"aria-label",
|
|
103
103
|
"title",
|
|
104
104
|
"data-testid"
|
|
105
|
-
],
|
|
105
|
+
], et = /* @__PURE__ */ l({
|
|
106
106
|
__name: "LinkToggle",
|
|
107
107
|
props: {
|
|
108
108
|
linked: { type: Boolean },
|
|
@@ -121,20 +121,20 @@ var Je = [
|
|
|
121
121
|
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
122
122
|
"data-testid": e.testid,
|
|
123
123
|
onClick: r[0] ||= (e) => n("toggle")
|
|
124
|
-
}, [e.linked ? (o(), y(f(
|
|
124
|
+
}, [e.linked ? (o(), y(f(Ne), {
|
|
125
125
|
key: 0,
|
|
126
126
|
size: 14,
|
|
127
127
|
"stroke-width": 2
|
|
128
|
-
})) : (o(), y(f(
|
|
128
|
+
})) : (o(), y(f(De), {
|
|
129
129
|
key: 1,
|
|
130
130
|
size: 14,
|
|
131
131
|
"stroke-width": 2
|
|
132
|
-
}))], 10,
|
|
132
|
+
}))], 10, $e));
|
|
133
133
|
}
|
|
134
|
-
}),
|
|
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
135
|
key: 0,
|
|
136
136
|
class: "tpl:mb-3.5"
|
|
137
|
-
},
|
|
137
|
+
}, at = { class: "tpl:mb-3.5" }, ot = { class: "tpl:mb-3.5" }, st = /* @__PURE__ */ l({
|
|
138
138
|
__name: "BorderControl",
|
|
139
139
|
props: {
|
|
140
140
|
modelValue: {},
|
|
@@ -152,7 +152,7 @@ var Je = [
|
|
|
152
152
|
}
|
|
153
153
|
let u = h(() => {
|
|
154
154
|
let e = r.modelValue;
|
|
155
|
-
return !e ||
|
|
155
|
+
return !e || O.every((t) => l(e[t], e.top));
|
|
156
156
|
}), d = s(u.value);
|
|
157
157
|
t(u, (e) => {
|
|
158
158
|
!e && d.value && (d.value = !1);
|
|
@@ -160,13 +160,13 @@ var Je = [
|
|
|
160
160
|
let v = s("top"), y = h(() => r.modelValue?.[d.value ? "top" : v.value] ?? c), b = (e) => !!e && e.width > 0;
|
|
161
161
|
function S(e) {
|
|
162
162
|
if (d.value) {
|
|
163
|
-
i("update:modelValue", b(e) ?
|
|
163
|
+
i("update:modelValue", b(e) ? N(e) : void 0);
|
|
164
164
|
return;
|
|
165
165
|
}
|
|
166
166
|
let t = {
|
|
167
|
-
...r.modelValue ??
|
|
167
|
+
...r.modelValue ?? N(c),
|
|
168
168
|
[v.value]: e
|
|
169
|
-
}, n =
|
|
169
|
+
}, n = O.some((e) => b(t[e]));
|
|
170
170
|
i("update:modelValue", n ? t : void 0);
|
|
171
171
|
}
|
|
172
172
|
function T(e) {
|
|
@@ -189,15 +189,15 @@ var Je = [
|
|
|
189
189
|
d.value = !0;
|
|
190
190
|
let e = r.modelValue;
|
|
191
191
|
if (!e) return;
|
|
192
|
-
let t = b(e[v.value]) ? e[v.value] :
|
|
193
|
-
i("update:modelValue", t ?
|
|
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
194
|
}
|
|
195
|
-
let
|
|
195
|
+
let k = h(() => O.map((e) => ({
|
|
196
196
|
value: e,
|
|
197
197
|
label: a.spacingControl[e]
|
|
198
198
|
})));
|
|
199
|
-
return (t, n) => (o(), g("div",
|
|
200
|
-
x("div",
|
|
199
|
+
return (t, n) => (o(), g("div", tt, [
|
|
200
|
+
x("div", nt, [x("span", rt, w(f(a).blockSettings.border), 1), p(et, {
|
|
201
201
|
linked: d.value,
|
|
202
202
|
"link-label": f(a).blockSettings.linkSides,
|
|
203
203
|
"unlink-label": f(a).blockSettings.unlinkSides,
|
|
@@ -209,19 +209,19 @@ var Je = [
|
|
|
209
209
|
"unlink-label",
|
|
210
210
|
"testid"
|
|
211
211
|
])]),
|
|
212
|
-
d.value ? _("", !0) : (o(), g("div",
|
|
213
|
-
options:
|
|
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
214
|
"model-value": v.value,
|
|
215
215
|
"onUpdate:modelValue": n[0] ||= (e) => v.value = e
|
|
216
216
|
}, null, 8, ["options", "model-value"])])),
|
|
217
|
-
x("div",
|
|
217
|
+
x("div", at, [x("label", { class: m(f(V)) }, w(f(a).blockSettings.borderWidth), 3), p(Y, {
|
|
218
218
|
"model-value": y.value.width,
|
|
219
219
|
min: 0,
|
|
220
220
|
suffix: "px",
|
|
221
221
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
222
222
|
"onUpdate:modelValue": T
|
|
223
223
|
}, null, 8, ["model-value", "testid"])]),
|
|
224
|
-
y.value.width > 0 ? (o(), g(C, { key: 1 }, [x("div",
|
|
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
225
|
options: [
|
|
226
226
|
{
|
|
227
227
|
value: "solid",
|
|
@@ -244,10 +244,10 @@ var Je = [
|
|
|
244
244
|
}, null, 8, ["model-value"])])], 64)) : _("", !0)
|
|
245
245
|
]));
|
|
246
246
|
}
|
|
247
|
-
}),
|
|
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
248
|
key: 1,
|
|
249
249
|
class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
|
|
250
|
-
},
|
|
250
|
+
}, ft = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, pt = /* @__PURE__ */ l({
|
|
251
251
|
__name: "RadiusControl",
|
|
252
252
|
props: {
|
|
253
253
|
modelValue: {},
|
|
@@ -275,7 +275,7 @@ var Je = [
|
|
|
275
275
|
bottomRight: e,
|
|
276
276
|
bottomLeft: e
|
|
277
277
|
} : e;
|
|
278
|
-
}), m = h(() =>
|
|
278
|
+
}), m = h(() => k.every((e) => d.value[e] === d.value.topLeft)), _ = s(m.value);
|
|
279
279
|
t(m, (e) => {
|
|
280
280
|
!e && _.value && (_.value = !1);
|
|
281
281
|
});
|
|
@@ -294,7 +294,7 @@ var Je = [
|
|
|
294
294
|
function T() {
|
|
295
295
|
_.value = !_.value, _.value && a("update:modelValue", d.value.topLeft);
|
|
296
296
|
}
|
|
297
|
-
return (t, n) => (o(), g("div",
|
|
297
|
+
return (t, n) => (o(), g("div", ct, [x("div", lt, [x("span", ut, w(e.label), 1), p(et, {
|
|
298
298
|
linked: _.value,
|
|
299
299
|
"link-label": f(c).blockSettings.linkCorners,
|
|
300
300
|
"unlink-label": f(c).blockSettings.unlinkCorners,
|
|
@@ -317,7 +317,7 @@ var Je = [
|
|
|
317
317
|
"model-value",
|
|
318
318
|
"max",
|
|
319
319
|
"testid"
|
|
320
|
-
])) : (o(), g("div",
|
|
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
321
|
"model-value": d.value[t],
|
|
322
322
|
min: 0,
|
|
323
323
|
max: e.max,
|
|
@@ -331,10 +331,10 @@ var Je = [
|
|
|
331
331
|
"onUpdate:modelValue"
|
|
332
332
|
])])), 64))]))]));
|
|
333
333
|
}
|
|
334
|
-
}),
|
|
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
335
|
key: 0,
|
|
336
336
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
337
|
-
},
|
|
337
|
+
}, jt = ["value"], Mt = { class: "tpl:mb-3.5" }, Nt = 200, Pt = /* @__PURE__ */ l({
|
|
338
338
|
__name: "ButtonToolbar",
|
|
339
339
|
props: {
|
|
340
340
|
block: {},
|
|
@@ -347,27 +347,27 @@ var Je = [
|
|
|
347
347
|
i("update", { [e]: t });
|
|
348
348
|
}
|
|
349
349
|
function l(e) {
|
|
350
|
-
e === "full" ? c("width", "full") : e === "custom" ? c("width", typeof n.block.width == "number" ? n.block.width :
|
|
350
|
+
e === "full" ? c("width", "full") : e === "custom" ? c("width", typeof n.block.width == "number" ? n.block.width : Nt) : c("width", void 0);
|
|
351
351
|
}
|
|
352
352
|
function u(e) {
|
|
353
353
|
let t = Number(e);
|
|
354
354
|
!Number.isFinite(t) || t <= 0 || c("width", t);
|
|
355
355
|
}
|
|
356
356
|
return (t, n) => (o(), g(C, null, [
|
|
357
|
-
x("div",
|
|
357
|
+
x("div", mt, [x("label", { class: m(f(V)) }, w(f(a).button.fontFamily), 3), x("select", {
|
|
358
358
|
class: m(f(W)),
|
|
359
|
-
value: f(
|
|
359
|
+
value: f(Je)(e.block.fontFamily),
|
|
360
360
|
onChange: n[0] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
361
|
-
}, [x("option",
|
|
361
|
+
}, [x("option", gt, w(f(a).button.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
|
|
362
362
|
key: e.value,
|
|
363
363
|
value: e.value
|
|
364
|
-
}, w(e.label), 9,
|
|
365
|
-
x("div",
|
|
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
366
|
"model-value": e.block.text,
|
|
367
367
|
type: "text",
|
|
368
368
|
"onUpdate:modelValue": n[1] ||= (e) => c("text", e)
|
|
369
369
|
}, null, 8, ["model-value"])]),
|
|
370
|
-
x("div",
|
|
370
|
+
x("div", yt, [
|
|
371
371
|
x("label", { class: m(f(V)) }, w(f(a).button.url), 3),
|
|
372
372
|
p(q, {
|
|
373
373
|
"model-value": e.block.url,
|
|
@@ -383,55 +383,55 @@ var Je = [
|
|
|
383
383
|
"onUpdate:modelValue": n[3] ||= (e) => c("openInNewTab", e)
|
|
384
384
|
}, null, 8, ["model-value", "label"])) : _("", !0)
|
|
385
385
|
]),
|
|
386
|
-
x("div",
|
|
386
|
+
x("div", bt, [x("label", { class: m(f(V)) }, w(f(a).button.background), 3), p(G, {
|
|
387
387
|
"model-value": e.block.backgroundColor,
|
|
388
388
|
"allow-transparent": "",
|
|
389
389
|
"onUpdate:modelValue": n[4] ||= (e) => c("backgroundColor", e)
|
|
390
390
|
}, null, 8, ["model-value"])]),
|
|
391
|
-
x("div",
|
|
391
|
+
x("div", xt, [x("label", { class: m(f(V)) }, w(f(a).button.textColor), 3), p(G, {
|
|
392
392
|
"model-value": e.block.textColor,
|
|
393
393
|
"onUpdate:modelValue": n[5] ||= (e) => c("textColor", e)
|
|
394
394
|
}, null, 8, ["model-value"])]),
|
|
395
|
-
p(
|
|
395
|
+
p(st, {
|
|
396
396
|
"model-value": e.block.border,
|
|
397
397
|
"testid-prefix": "button",
|
|
398
398
|
"onUpdate:modelValue": n[6] ||= (e) => c("border", e)
|
|
399
399
|
}, null, 8, ["model-value"]),
|
|
400
|
-
p(
|
|
400
|
+
p(pt, {
|
|
401
401
|
"model-value": e.block.borderRadius,
|
|
402
402
|
label: f(a).button.borderRadius,
|
|
403
403
|
max: 50,
|
|
404
404
|
"testid-prefix": "button",
|
|
405
405
|
"onUpdate:modelValue": n[7] ||= (e) => c("borderRadius", e)
|
|
406
406
|
}, null, 8, ["model-value", "label"]),
|
|
407
|
-
x("div",
|
|
407
|
+
x("div", St, [x("label", { class: m(f(V)) }, w(f(a).button.fontSize), 3), x("div", Ct, [x("input", {
|
|
408
408
|
type: "number",
|
|
409
409
|
class: m(f(U)),
|
|
410
410
|
value: e.block.fontSize,
|
|
411
411
|
min: "10",
|
|
412
412
|
max: "36",
|
|
413
413
|
onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
414
|
-
}, null, 42,
|
|
415
|
-
x("div",
|
|
414
|
+
}, null, 42, wt), x("span", { class: m(f(H)) }, "px", 2)])]),
|
|
415
|
+
x("div", Tt, [
|
|
416
416
|
x("label", { class: m(f(V)) }, w(f(a).button.width), 3),
|
|
417
417
|
x("select", {
|
|
418
418
|
class: m(f(W)),
|
|
419
419
|
value: s.value,
|
|
420
420
|
onChange: n[9] ||= (e) => l(e.target.value)
|
|
421
421
|
}, [
|
|
422
|
-
x("option",
|
|
423
|
-
x("option",
|
|
424
|
-
x("option",
|
|
425
|
-
], 42,
|
|
426
|
-
s.value === "custom" ? (o(), g("div",
|
|
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
427
|
type: "number",
|
|
428
428
|
class: m(f(U)),
|
|
429
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
429
|
+
value: typeof e.block.width == "number" ? e.block.width : Nt,
|
|
430
430
|
min: "20",
|
|
431
431
|
onInput: n[10] ||= (e) => u(e.target.value)
|
|
432
|
-
}, null, 42,
|
|
432
|
+
}, null, 42, jt), x("span", { class: m(f(H)) }, "px", 2)])) : _("", !0)
|
|
433
433
|
]),
|
|
434
|
-
x("div",
|
|
434
|
+
x("div", Mt, [x("label", { class: m(f(V)) }, w(f(a).title.align), 3), p(J, {
|
|
435
435
|
options: [
|
|
436
436
|
{
|
|
437
437
|
value: "left",
|
|
@@ -451,7 +451,7 @@ var Je = [
|
|
|
451
451
|
}, null, 8, ["options", "model-value"])])
|
|
452
452
|
], 64));
|
|
453
453
|
}
|
|
454
|
-
}),
|
|
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
455
|
__name: "SpacingControl",
|
|
456
456
|
props: {
|
|
457
457
|
modelValue: {},
|
|
@@ -498,8 +498,8 @@ var Je = [
|
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
return (t, n) => (o(), g("div",
|
|
502
|
-
x("div",
|
|
501
|
+
return (t, n) => (o(), g("div", Ft, [x("label", It, w(e.label), 1), x("div", Lt, [
|
|
502
|
+
x("div", Rt, [
|
|
503
503
|
x("button", {
|
|
504
504
|
"aria-label": f(a).spacingControl.decreaseTop,
|
|
505
505
|
class: m([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
@@ -507,15 +507,15 @@ var Je = [
|
|
|
507
507
|
}, [p(f(B), {
|
|
508
508
|
size: 12,
|
|
509
509
|
"stroke-width": 2
|
|
510
|
-
})], 10,
|
|
510
|
+
})], 10, zt),
|
|
511
511
|
x("input", {
|
|
512
512
|
type: "number",
|
|
513
|
-
class: m(
|
|
513
|
+
class: m(Z),
|
|
514
514
|
value: e.modelValue.top,
|
|
515
515
|
"aria-label": f(a).spacingControl.top,
|
|
516
516
|
min: "0",
|
|
517
517
|
onInput: n[1] ||= (e) => d("top", Number(e.target.value))
|
|
518
|
-
}, null, 40,
|
|
518
|
+
}, null, 40, Bt),
|
|
519
519
|
x("button", {
|
|
520
520
|
"aria-label": f(a).spacingControl.increaseTop,
|
|
521
521
|
class: m([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
@@ -523,10 +523,10 @@ var Je = [
|
|
|
523
523
|
}, [p(f(R), {
|
|
524
524
|
size: 12,
|
|
525
525
|
"stroke-width": 2
|
|
526
|
-
})], 10,
|
|
526
|
+
})], 10, Vt)
|
|
527
527
|
]),
|
|
528
|
-
x("div",
|
|
529
|
-
x("div",
|
|
528
|
+
x("div", Ht, [
|
|
529
|
+
x("div", Ut, [
|
|
530
530
|
x("button", {
|
|
531
531
|
"aria-label": f(a).spacingControl.decreaseLeft,
|
|
532
532
|
class: m([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
@@ -534,15 +534,15 @@ var Je = [
|
|
|
534
534
|
}, [p(f(B), {
|
|
535
535
|
size: 12,
|
|
536
536
|
"stroke-width": 2
|
|
537
|
-
})], 10,
|
|
537
|
+
})], 10, Wt),
|
|
538
538
|
x("input", {
|
|
539
539
|
type: "number",
|
|
540
|
-
class: m(
|
|
540
|
+
class: m(Z),
|
|
541
541
|
value: e.modelValue.left,
|
|
542
542
|
"aria-label": f(a).spacingControl.left,
|
|
543
543
|
min: "0",
|
|
544
544
|
onInput: n[4] ||= (e) => d("left", Number(e.target.value))
|
|
545
|
-
}, null, 40,
|
|
545
|
+
}, null, 40, Gt),
|
|
546
546
|
x("button", {
|
|
547
547
|
"aria-label": f(a).spacingControl.increaseLeft,
|
|
548
548
|
class: m([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
@@ -550,23 +550,23 @@ var Je = [
|
|
|
550
550
|
}, [p(f(R), {
|
|
551
551
|
size: 12,
|
|
552
552
|
"stroke-width": 2
|
|
553
|
-
})], 10,
|
|
553
|
+
})], 10, Kt)
|
|
554
554
|
]),
|
|
555
555
|
x("button", {
|
|
556
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
557
|
"aria-label": l.value ? f(a).spacingControl.unlock : f(a).spacingControl.lockAll,
|
|
558
558
|
title: l.value ? f(a).spacingControl.unlock : f(a).spacingControl.lockAll,
|
|
559
559
|
onClick: _
|
|
560
|
-
}, [l.value ? (o(), y(f(
|
|
560
|
+
}, [l.value ? (o(), y(f(Ie), {
|
|
561
561
|
key: 0,
|
|
562
562
|
size: 14,
|
|
563
563
|
"stroke-width": 2
|
|
564
|
-
})) : (o(), y(f(
|
|
564
|
+
})) : (o(), y(f(je), {
|
|
565
565
|
key: 1,
|
|
566
566
|
size: 14,
|
|
567
567
|
"stroke-width": 2
|
|
568
|
-
}))], 10,
|
|
569
|
-
x("div",
|
|
568
|
+
}))], 10, qt),
|
|
569
|
+
x("div", Jt, [
|
|
570
570
|
x("button", {
|
|
571
571
|
"aria-label": f(a).spacingControl.decreaseRight,
|
|
572
572
|
class: m([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
@@ -574,15 +574,15 @@ var Je = [
|
|
|
574
574
|
}, [p(f(B), {
|
|
575
575
|
size: 12,
|
|
576
576
|
"stroke-width": 2
|
|
577
|
-
})], 10,
|
|
577
|
+
})], 10, Yt),
|
|
578
578
|
x("input", {
|
|
579
579
|
type: "number",
|
|
580
|
-
class: m(
|
|
580
|
+
class: m(Z),
|
|
581
581
|
value: e.modelValue.right,
|
|
582
582
|
"aria-label": f(a).spacingControl.right,
|
|
583
583
|
min: "0",
|
|
584
584
|
onInput: n[7] ||= (e) => d("right", Number(e.target.value))
|
|
585
|
-
}, null, 40,
|
|
585
|
+
}, null, 40, Xt),
|
|
586
586
|
x("button", {
|
|
587
587
|
"aria-label": f(a).spacingControl.increaseRight,
|
|
588
588
|
class: m([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
@@ -590,10 +590,10 @@ var Je = [
|
|
|
590
590
|
}, [p(f(R), {
|
|
591
591
|
size: 12,
|
|
592
592
|
"stroke-width": 2
|
|
593
|
-
})], 10,
|
|
593
|
+
})], 10, Zt)
|
|
594
594
|
])
|
|
595
595
|
]),
|
|
596
|
-
x("div",
|
|
596
|
+
x("div", Qt, [
|
|
597
597
|
x("button", {
|
|
598
598
|
"aria-label": f(a).spacingControl.decreaseBottom,
|
|
599
599
|
class: m([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
@@ -601,15 +601,15 @@ var Je = [
|
|
|
601
601
|
}, [p(f(B), {
|
|
602
602
|
size: 12,
|
|
603
603
|
"stroke-width": 2
|
|
604
|
-
})], 10,
|
|
604
|
+
})], 10, $t),
|
|
605
605
|
x("input", {
|
|
606
606
|
type: "number",
|
|
607
|
-
class: m(
|
|
607
|
+
class: m(Z),
|
|
608
608
|
value: e.modelValue.bottom,
|
|
609
609
|
"aria-label": f(a).spacingControl.bottom,
|
|
610
610
|
min: "0",
|
|
611
611
|
onInput: n[10] ||= (e) => d("bottom", Number(e.target.value))
|
|
612
|
-
}, null, 40,
|
|
612
|
+
}, null, 40, en),
|
|
613
613
|
x("button", {
|
|
614
614
|
"aria-label": f(a).spacingControl.increaseBottom,
|
|
615
615
|
class: m([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
@@ -617,11 +617,137 @@ var Je = [
|
|
|
617
617
|
}, [p(f(R), {
|
|
618
618
|
size: 12,
|
|
619
619
|
"stroke-width": 2
|
|
620
|
-
})], 10,
|
|
620
|
+
})], 10, tn)
|
|
621
621
|
])
|
|
622
622
|
])]));
|
|
623
623
|
}
|
|
624
|
-
}), [["__scopeId", "data-v-69591c1e"]]), rn = ["data-testid"],
|
|
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({
|
|
625
751
|
__name: "CollapsibleSection",
|
|
626
752
|
props: {
|
|
627
753
|
title: {},
|
|
@@ -636,25 +762,25 @@ var Je = [
|
|
|
636
762
|
"data-testid": e.headerTestId,
|
|
637
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)]",
|
|
638
764
|
onClick: n[0] ||= (e) => t.$emit("toggle")
|
|
639
|
-
}, [p(f(
|
|
765
|
+
}, [p(f(Ce), {
|
|
640
766
|
class: m(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
641
767
|
size: 12,
|
|
642
768
|
"stroke-width": 2
|
|
643
|
-
}, null, 8, ["class"]), x("span", null, w(e.title), 1)], 8,
|
|
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));
|
|
644
770
|
}
|
|
645
|
-
}),
|
|
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 = {
|
|
646
772
|
key: 0,
|
|
647
773
|
value: "__custom__"
|
|
648
|
-
},
|
|
774
|
+
}, wn = {
|
|
649
775
|
key: 0,
|
|
650
776
|
class: "tpl:space-y-2"
|
|
651
|
-
},
|
|
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 = {
|
|
652
778
|
key: 0,
|
|
653
779
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
654
|
-
},
|
|
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 = {
|
|
655
781
|
key: 0,
|
|
656
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)]"
|
|
657
|
-
},
|
|
783
|
+
}, Nn = /* @__PURE__ */ l({
|
|
658
784
|
__name: "CommonBlockSettings",
|
|
659
785
|
props: {
|
|
660
786
|
block: {},
|
|
@@ -662,23 +788,23 @@ var Je = [
|
|
|
662
788
|
},
|
|
663
789
|
emits: ["update"],
|
|
664
790
|
setup(e, { emit: a }) {
|
|
665
|
-
let l = e, v = a, { t: S } = L(), T = n(
|
|
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 = [{
|
|
666
792
|
key: "desktop",
|
|
667
|
-
icon:
|
|
793
|
+
icon: Oe,
|
|
668
794
|
labelKey: "showOnDesktop"
|
|
669
795
|
}, {
|
|
670
796
|
key: "mobile",
|
|
671
|
-
icon:
|
|
797
|
+
icon: Te,
|
|
672
798
|
labelKey: "showOnMobile"
|
|
673
799
|
}];
|
|
674
800
|
function N(e) {
|
|
675
801
|
O.has(e) ? O.delete(e) : O.add(e);
|
|
676
802
|
}
|
|
677
803
|
let ee = h(() => T.length > 0 || D), P = h(() => l.block.displayCondition ? !T.some((e) => e.label === l.block.displayCondition?.label) : !1);
|
|
678
|
-
function
|
|
804
|
+
function F() {
|
|
679
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 = "");
|
|
680
806
|
}
|
|
681
|
-
function
|
|
807
|
+
function te() {
|
|
682
808
|
A.value.trim() && (v("update", { displayCondition: {
|
|
683
809
|
label: S.blockSettings.customCondition,
|
|
684
810
|
before: A.value.trim(),
|
|
@@ -688,7 +814,7 @@ var Je = [
|
|
|
688
814
|
t(() => l.block.displayCondition, (e) => {
|
|
689
815
|
e ? P.value && (A.value = e.before, j.value = e.after ?? "") : (k.value = !1, A.value = "", j.value = "");
|
|
690
816
|
}, { immediate: !0 });
|
|
691
|
-
let
|
|
817
|
+
let ne = h(() => {
|
|
692
818
|
let e = {};
|
|
693
819
|
for (let t of T) {
|
|
694
820
|
let n = t.group ?? "";
|
|
@@ -696,24 +822,24 @@ var Je = [
|
|
|
696
822
|
}
|
|
697
823
|
return e;
|
|
698
824
|
});
|
|
699
|
-
function
|
|
825
|
+
function re(e, t) {
|
|
700
826
|
v("update", { styles: {
|
|
701
827
|
...l.block.styles,
|
|
702
828
|
[e]: t
|
|
703
829
|
} });
|
|
704
830
|
}
|
|
705
|
-
function
|
|
831
|
+
function I(e) {
|
|
706
832
|
return l.block.visibility?.[e] !== !1;
|
|
707
833
|
}
|
|
708
|
-
function
|
|
834
|
+
function ie(e) {
|
|
709
835
|
let t = {
|
|
710
|
-
desktop:
|
|
711
|
-
mobile:
|
|
836
|
+
desktop: I("desktop"),
|
|
837
|
+
mobile: I("mobile")
|
|
712
838
|
};
|
|
713
839
|
t[e] = !t[e], v("update", { visibility: t });
|
|
714
840
|
}
|
|
715
841
|
return (t, n) => (o(), g("div", { class: m(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
716
|
-
p(
|
|
842
|
+
p(mn, {
|
|
717
843
|
title: f(S).blockSettings.spacing,
|
|
718
844
|
open: O.has("spacing"),
|
|
719
845
|
"no-border": e.isFirstSection,
|
|
@@ -722,7 +848,7 @@ var Je = [
|
|
|
722
848
|
default: i(() => [p(nn, {
|
|
723
849
|
label: f(S).blockSettings.padding,
|
|
724
850
|
"model-value": e.block.styles.padding,
|
|
725
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
851
|
+
"onUpdate:modelValue": n[0] ||= (e) => re("padding", e)
|
|
726
852
|
}, null, 8, ["label", "model-value"])]),
|
|
727
853
|
_: 1
|
|
728
854
|
}, 8, [
|
|
@@ -730,31 +856,42 @@ var Je = [
|
|
|
730
856
|
"open",
|
|
731
857
|
"no-border"
|
|
732
858
|
]),
|
|
733
|
-
p(
|
|
859
|
+
p(mn, {
|
|
734
860
|
title: f(S).blockSettings.background,
|
|
735
861
|
open: O.has("bg"),
|
|
736
|
-
|
|
862
|
+
"header-test-id": "block-settings-background",
|
|
863
|
+
onToggle: n[4] ||= (e) => N("bg")
|
|
737
864
|
}, {
|
|
738
|
-
default: i(() => [
|
|
739
|
-
"
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
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
|
+
]),
|
|
743
880
|
_: 1
|
|
744
881
|
}, 8, ["title", "open"]),
|
|
745
|
-
p(
|
|
882
|
+
p(mn, {
|
|
746
883
|
title: f(S).blockSettings.display,
|
|
747
884
|
open: O.has("display"),
|
|
748
|
-
onToggle: n[
|
|
885
|
+
onToggle: n[5] ||= (e) => N("display")
|
|
749
886
|
}, {
|
|
750
|
-
default: i(() => [x("div",
|
|
887
|
+
default: i(() => [x("div", hn, [(o(), g(C, null, r(M, (e) => p(K, {
|
|
751
888
|
key: e.key,
|
|
752
889
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
753
|
-
"model-value":
|
|
890
|
+
"model-value": I(e.key),
|
|
754
891
|
label: f(S).blockSettings[e.labelKey],
|
|
755
|
-
"onUpdate:modelValue": (t) =>
|
|
892
|
+
"onUpdate:modelValue": (t) => ie(e.key)
|
|
756
893
|
}, {
|
|
757
|
-
default: i(() => [x("span",
|
|
894
|
+
default: i(() => [x("span", gn, [(o(), y(c(e.icon), {
|
|
758
895
|
size: 14,
|
|
759
896
|
"stroke-width": 1.5
|
|
760
897
|
})), E(" " + w(f(S).blockSettings[e.labelKey]), 1)])]),
|
|
@@ -766,21 +903,21 @@ var Je = [
|
|
|
766
903
|
])), 64))])]),
|
|
767
904
|
_: 1
|
|
768
905
|
}, 8, ["title", "open"]),
|
|
769
|
-
ee.value ? (o(), y(
|
|
906
|
+
ee.value ? (o(), y(mn, {
|
|
770
907
|
key: 0,
|
|
771
908
|
"header-test-id": "display-condition-section",
|
|
772
909
|
title: f(S).blockSettings.displayCondition,
|
|
773
910
|
open: O.has("condition"),
|
|
774
|
-
onToggle: n[
|
|
911
|
+
onToggle: n[9] ||= (e) => N("condition")
|
|
775
912
|
}, {
|
|
776
|
-
default: i(() => [x("div",
|
|
913
|
+
default: i(() => [x("div", _n, [x("select", {
|
|
777
914
|
"data-testid": "display-condition-select",
|
|
778
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)]"]),
|
|
779
916
|
value: k.value || P.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
780
|
-
onChange: n[
|
|
917
|
+
onChange: n[6] ||= (e) => {
|
|
781
918
|
let t = e.target.value;
|
|
782
919
|
if (t === "__custom__") {
|
|
783
|
-
|
|
920
|
+
F();
|
|
784
921
|
return;
|
|
785
922
|
}
|
|
786
923
|
if (k.value = !1, !t) {
|
|
@@ -791,41 +928,41 @@ var Je = [
|
|
|
791
928
|
n && v("update", { displayCondition: n });
|
|
792
929
|
}
|
|
793
930
|
}, [
|
|
794
|
-
x("option",
|
|
795
|
-
(o(!0), g(C, null, r(
|
|
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", {
|
|
796
933
|
key: 0,
|
|
797
934
|
label: String(t)
|
|
798
935
|
}, [(o(!0), g(C, null, r(e, (e) => (o(), g("option", {
|
|
799
936
|
key: e.label,
|
|
800
937
|
value: e.label
|
|
801
|
-
}, w(e.label), 9,
|
|
938
|
+
}, w(e.label), 9, xn))), 128))], 8, bn)) : (o(!0), g(C, { key: 1 }, r(e, (e) => (o(), g("option", {
|
|
802
939
|
key: e.label,
|
|
803
940
|
value: e.label
|
|
804
|
-
}, w(e.label), 9,
|
|
805
|
-
f(D) ? (o(), g("option",
|
|
806
|
-
], 42,
|
|
807
|
-
x("div", null, [x("label",
|
|
808
|
-
"onUpdate:modelValue": n[
|
|
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,
|
|
809
946
|
rows: "2",
|
|
810
|
-
class: m(f(
|
|
947
|
+
class: m(f(Be))
|
|
811
948
|
}, null, 2), [[b, A.value]])]),
|
|
812
|
-
x("div", null, [x("label",
|
|
813
|
-
"onUpdate:modelValue": n[
|
|
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,
|
|
814
951
|
rows: "2",
|
|
815
|
-
class: m(f(
|
|
952
|
+
class: m(f(Be))
|
|
816
953
|
}, null, 2), [[b, j.value]])]),
|
|
817
|
-
x("div",
|
|
954
|
+
x("div", Dn, [x("button", {
|
|
818
955
|
type: "button",
|
|
819
|
-
class: m(f(
|
|
956
|
+
class: m(f(We)),
|
|
820
957
|
disabled: !A.value.trim(),
|
|
821
|
-
onClick:
|
|
822
|
-
}, w(f(S).blockSettings.applyCondition), 11,
|
|
823
|
-
])) : e.block.displayCondition && !P.value ? (o(), g(C, { key: 1 }, [e.block.displayCondition.description ? (o(), g("p",
|
|
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)])]),
|
|
824
961
|
_: 1
|
|
825
962
|
}, 8, ["title", "open"])) : _("", !0)
|
|
826
963
|
], 2));
|
|
827
964
|
}
|
|
828
|
-
}),
|
|
965
|
+
}), Pn = ["title"], Fn = /* @__PURE__ */ l({
|
|
829
966
|
__name: "BooleanField",
|
|
830
967
|
props: {
|
|
831
968
|
field: {},
|
|
@@ -846,7 +983,7 @@ var Je = [
|
|
|
846
983
|
disabled: e.readOnly,
|
|
847
984
|
"onUpdate:modelValue": a[0] ||= (e) => n("update:modelValue", e)
|
|
848
985
|
}, {
|
|
849
|
-
default: i(() => [E(w(e.field.label) + " ", 1), e.readOnly ? (o(), y(f(
|
|
986
|
+
default: i(() => [E(w(e.field.label) + " ", 1), e.readOnly ? (o(), y(f(Ie), {
|
|
850
987
|
key: 0,
|
|
851
988
|
size: 12,
|
|
852
989
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -857,9 +994,9 @@ var Je = [
|
|
|
857
994
|
"label",
|
|
858
995
|
"required",
|
|
859
996
|
"disabled"
|
|
860
|
-
])], 8,
|
|
997
|
+
])], 8, Pn));
|
|
861
998
|
}
|
|
862
|
-
}),
|
|
999
|
+
}), In = { class: "tpl:mb-3.5" }, Ln = ["title"], Rn = { class: "tpl-sr-only" }, zn = ["title"], Bn = { class: "tpl-sr-only" }, Q = /* @__PURE__ */ l({
|
|
863
1000
|
__name: "FieldWrapper",
|
|
864
1001
|
props: {
|
|
865
1002
|
label: {},
|
|
@@ -868,24 +1005,24 @@ var Je = [
|
|
|
868
1005
|
},
|
|
869
1006
|
setup(e) {
|
|
870
1007
|
let { t } = L();
|
|
871
|
-
return (n, r) => (o(), g("div",
|
|
1008
|
+
return (n, r) => (o(), g("div", In, [x("label", { class: m(f(V)) }, [
|
|
872
1009
|
E(w(e.label) + " ", 1),
|
|
873
1010
|
e.readOnly ? (o(), g("span", {
|
|
874
1011
|
key: 0,
|
|
875
1012
|
title: f(t).customBlocks.dataSource.readOnlyTooltip
|
|
876
|
-
}, [p(f(
|
|
1013
|
+
}, [p(f(Ie), {
|
|
877
1014
|
size: 12,
|
|
878
1015
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
879
1016
|
"aria-hidden": "true"
|
|
880
|
-
}), x("span",
|
|
1017
|
+
}), x("span", Rn, w(f(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, Ln)) : _("", !0),
|
|
881
1018
|
e.required ? (o(), g("span", {
|
|
882
1019
|
key: 1,
|
|
883
1020
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
884
1021
|
title: f(t).customBlocks.fields.required
|
|
885
|
-
}, [r[0] ||= x("span", { "aria-hidden": "true" }, "*", -1), x("span",
|
|
1022
|
+
}, [r[0] ||= x("span", { "aria-hidden": "true" }, "*", -1), x("span", Bn, w(f(t).customBlocks.fields.required), 1)], 8, zn)) : _("", !0)
|
|
886
1023
|
], 2), a(n.$slots, "default")]));
|
|
887
1024
|
}
|
|
888
|
-
}),
|
|
1025
|
+
}), Vn = /* @__PURE__ */ l({
|
|
889
1026
|
__name: "ColorField",
|
|
890
1027
|
props: {
|
|
891
1028
|
field: {},
|
|
@@ -894,7 +1031,7 @@ var Je = [
|
|
|
894
1031
|
},
|
|
895
1032
|
emits: ["update:modelValue"],
|
|
896
1033
|
setup(e, { emit: t }) {
|
|
897
|
-
let r = e, a = t, { t: s } = L(), c = n(
|
|
1034
|
+
let r = e, a = t, { t: s } = L(), c = n(he, be), l = h(() => se(r.field, c));
|
|
898
1035
|
return (t, n) => (o(), y(Q, {
|
|
899
1036
|
label: e.field.label,
|
|
900
1037
|
required: e.field.required,
|
|
@@ -923,15 +1060,11 @@ var Je = [
|
|
|
923
1060
|
"read-only"
|
|
924
1061
|
]));
|
|
925
1062
|
}
|
|
926
|
-
}),
|
|
927
|
-
key: 0,
|
|
928
|
-
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
|
|
929
|
-
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
|
|
930
|
-
}, Pn = [
|
|
1063
|
+
}), Hn = [
|
|
931
1064
|
"value",
|
|
932
1065
|
"placeholder",
|
|
933
1066
|
"title"
|
|
934
|
-
],
|
|
1067
|
+
], Un = ["value", "placeholder"], Wn = /* @__PURE__ */ l({
|
|
935
1068
|
__name: "ImageField",
|
|
936
1069
|
props: {
|
|
937
1070
|
field: {},
|
|
@@ -940,31 +1073,10 @@ var Je = [
|
|
|
940
1073
|
},
|
|
941
1074
|
emits: ["update:modelValue"],
|
|
942
1075
|
setup(e, { emit: t }) {
|
|
943
|
-
let
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
}
|
|
948
|
-
let S = s(), T = s(!1), D = h(() => (u?.value ?? !!l) && !T.value && !r.readOnly);
|
|
949
|
-
async function O(e) {
|
|
950
|
-
if (l) {
|
|
951
|
-
T.value = !0;
|
|
952
|
-
try {
|
|
953
|
-
let t = await l({
|
|
954
|
-
accept: ["images"],
|
|
955
|
-
files: e
|
|
956
|
-
});
|
|
957
|
-
if (!d.alive) return;
|
|
958
|
-
t && a("update:modelValue", t.url);
|
|
959
|
-
} finally {
|
|
960
|
-
d.alive && (T.value = !1);
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
let { isOver: k } = ie({
|
|
965
|
-
target: S,
|
|
966
|
-
enabled: D,
|
|
967
|
-
onFiles: O
|
|
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)
|
|
968
1080
|
});
|
|
969
1081
|
return (t, n) => (o(), y(Q, {
|
|
970
1082
|
label: e.field.label,
|
|
@@ -973,17 +1085,13 @@ var Je = [
|
|
|
973
1085
|
}, {
|
|
974
1086
|
default: i(() => [x("div", {
|
|
975
1087
|
ref_key: "dropZoneRef",
|
|
976
|
-
ref:
|
|
1088
|
+
ref: c,
|
|
977
1089
|
class: "tpl:relative"
|
|
978
1090
|
}, [
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
}), E(" " + w(f(c).image.uploading), 1)], 64)) : (o(), g(C, { key: 1 }, [p(f(Fe), {
|
|
984
|
-
size: 18,
|
|
985
|
-
"stroke-width": 1.5
|
|
986
|
-
}), E(" " + w(f(c).image.dropToUpload), 1)], 64))])) : _("", !0),
|
|
1091
|
+
f(d) ? (o(), y(I, {
|
|
1092
|
+
key: 0,
|
|
1093
|
+
uploading: f(u)
|
|
1094
|
+
}, null, 8, ["uploading"])) : _("", !0),
|
|
987
1095
|
e.readOnly ? (o(), g("input", {
|
|
988
1096
|
key: 1,
|
|
989
1097
|
type: "url",
|
|
@@ -991,23 +1099,23 @@ var Je = [
|
|
|
991
1099
|
value: e.modelValue,
|
|
992
1100
|
placeholder: e.field.placeholder || "https://...",
|
|
993
1101
|
disabled: "",
|
|
994
|
-
title: f(
|
|
995
|
-
}, null, 10,
|
|
1102
|
+
title: f(a).customBlocks.dataSource.readOnlyTooltip
|
|
1103
|
+
}, null, 10, Hn)) : (o(), g("input", {
|
|
996
1104
|
key: 2,
|
|
997
1105
|
type: "url",
|
|
998
1106
|
class: m(f(W)),
|
|
999
1107
|
value: e.modelValue,
|
|
1000
1108
|
placeholder: e.field.placeholder || "https://...",
|
|
1001
|
-
onInput: n[0] ||= (e) =>
|
|
1002
|
-
}, null, 42,
|
|
1003
|
-
|
|
1109
|
+
onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
|
|
1110
|
+
}, null, 42, Un)),
|
|
1111
|
+
f(l) && !e.readOnly ? (o(), g("button", {
|
|
1004
1112
|
key: 3,
|
|
1005
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)]",
|
|
1006
|
-
onClick: n[1] ||= (e) =>
|
|
1007
|
-
}, [p(f(
|
|
1114
|
+
onClick: n[1] ||= (e) => f(h)()
|
|
1115
|
+
}, [p(f(Fe), {
|
|
1008
1116
|
size: 14,
|
|
1009
1117
|
"stroke-width": 1.5
|
|
1010
|
-
}), E(" " + w(f(
|
|
1118
|
+
}), E(" " + w(f(a).image.browseMedia), 1)])) : _("", !0)
|
|
1011
1119
|
], 512)]),
|
|
1012
1120
|
_: 1
|
|
1013
1121
|
}, 8, [
|
|
@@ -1016,7 +1124,7 @@ var Je = [
|
|
|
1016
1124
|
"read-only"
|
|
1017
1125
|
]));
|
|
1018
1126
|
}
|
|
1019
|
-
}),
|
|
1127
|
+
}), Gn = [
|
|
1020
1128
|
"value",
|
|
1021
1129
|
"placeholder",
|
|
1022
1130
|
"min",
|
|
@@ -1024,7 +1132,7 @@ var Je = [
|
|
|
1024
1132
|
"step",
|
|
1025
1133
|
"disabled",
|
|
1026
1134
|
"title"
|
|
1027
|
-
],
|
|
1135
|
+
], Kn = /* @__PURE__ */ l({
|
|
1028
1136
|
__name: "NumberField",
|
|
1029
1137
|
props: {
|
|
1030
1138
|
field: {},
|
|
@@ -1050,7 +1158,7 @@ var Je = [
|
|
|
1050
1158
|
disabled: e.readOnly,
|
|
1051
1159
|
title: e.readOnly ? f(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1052
1160
|
onInput: a[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
|
|
1053
|
-
}, null, 42,
|
|
1161
|
+
}, null, 42, Gn)]),
|
|
1054
1162
|
_: 1
|
|
1055
1163
|
}, 8, [
|
|
1056
1164
|
"label",
|
|
@@ -1058,13 +1166,13 @@ var Je = [
|
|
|
1058
1166
|
"read-only"
|
|
1059
1167
|
]));
|
|
1060
1168
|
}
|
|
1061
|
-
}),
|
|
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 = {
|
|
1062
1170
|
key: 1,
|
|
1063
1171
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1064
|
-
},
|
|
1172
|
+
}, Qn = {
|
|
1065
1173
|
key: 2,
|
|
1066
1174
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1067
|
-
},
|
|
1175
|
+
}, $n = /* @__PURE__ */ l({
|
|
1068
1176
|
__name: "RepeatableField",
|
|
1069
1177
|
props: {
|
|
1070
1178
|
field: {},
|
|
@@ -1097,20 +1205,20 @@ var Je = [
|
|
|
1097
1205
|
required: e.field.required,
|
|
1098
1206
|
"read-only": e.readOnly
|
|
1099
1207
|
}, {
|
|
1100
|
-
default: i(() => [x("div",
|
|
1208
|
+
default: i(() => [x("div", qn, [
|
|
1101
1209
|
(o(!0), g(C, null, r(u.value, (t, n) => (o(), g("div", {
|
|
1102
1210
|
key: `${e.field.key}-${n}`,
|
|
1103
1211
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1104
|
-
}, [x("div",
|
|
1212
|
+
}, [x("div", Jn, [x("span", Yn, " #" + w(n + 1), 1), v.value && !e.readOnly ? (o(), g("button", {
|
|
1105
1213
|
key: 0,
|
|
1106
1214
|
type: "button",
|
|
1107
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)]",
|
|
1108
1216
|
title: f(s).customBlocks.fields.removeItem,
|
|
1109
1217
|
onClick: (e) => S(n)
|
|
1110
|
-
}, [p(f(
|
|
1218
|
+
}, [p(f(ke), {
|
|
1111
1219
|
size: 12,
|
|
1112
1220
|
"stroke-width": 2
|
|
1113
|
-
})], 8,
|
|
1221
|
+
})], 8, Xn)) : _("", !0)]), (o(!0), g(C, null, r(e.field.fields, (r) => (o(), y(c(f(cr)(r.type)), {
|
|
1114
1222
|
key: r.key,
|
|
1115
1223
|
field: r,
|
|
1116
1224
|
"model-value": t[r.key],
|
|
@@ -1125,14 +1233,14 @@ var Je = [
|
|
|
1125
1233
|
d.value && !e.readOnly ? (o(), g("button", {
|
|
1126
1234
|
key: 0,
|
|
1127
1235
|
type: "button",
|
|
1128
|
-
class: m(f(
|
|
1236
|
+
class: m(f(He)),
|
|
1129
1237
|
onClick: b
|
|
1130
1238
|
}, [p(f(R), {
|
|
1131
1239
|
size: 14,
|
|
1132
1240
|
"stroke-width": 2
|
|
1133
1241
|
}), E(" " + w(f(s).customBlocks.fields.addItem), 1)], 2)) : _("", !0),
|
|
1134
|
-
!d.value && !e.readOnly ? (o(), g("p",
|
|
1135
|
-
!v.value && !e.readOnly ? (o(), g("p",
|
|
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)
|
|
1136
1244
|
])]),
|
|
1137
1245
|
_: 1
|
|
1138
1246
|
}, 8, [
|
|
@@ -1141,11 +1249,11 @@ var Je = [
|
|
|
1141
1249
|
"read-only"
|
|
1142
1250
|
]));
|
|
1143
1251
|
}
|
|
1144
|
-
}),
|
|
1252
|
+
}), er = [
|
|
1145
1253
|
"value",
|
|
1146
1254
|
"disabled",
|
|
1147
1255
|
"title"
|
|
1148
|
-
],
|
|
1256
|
+
], tr = ["value"], nr = /* @__PURE__ */ l({
|
|
1149
1257
|
__name: "SelectField",
|
|
1150
1258
|
props: {
|
|
1151
1259
|
field: {},
|
|
@@ -1169,7 +1277,7 @@ var Je = [
|
|
|
1169
1277
|
}, [(o(!0), g(C, null, r(e.field.options, (e) => (o(), g("option", {
|
|
1170
1278
|
key: e.value,
|
|
1171
1279
|
value: e.value
|
|
1172
|
-
}, w(e.label), 9,
|
|
1280
|
+
}, w(e.label), 9, tr))), 128))], 42, er)]),
|
|
1173
1281
|
_: 1
|
|
1174
1282
|
}, 8, [
|
|
1175
1283
|
"label",
|
|
@@ -1177,11 +1285,11 @@ var Je = [
|
|
|
1177
1285
|
"read-only"
|
|
1178
1286
|
]));
|
|
1179
1287
|
}
|
|
1180
|
-
}),
|
|
1288
|
+
}), rr = [
|
|
1181
1289
|
"value",
|
|
1182
1290
|
"placeholder",
|
|
1183
1291
|
"title"
|
|
1184
|
-
],
|
|
1292
|
+
], ir = /* @__PURE__ */ l({
|
|
1185
1293
|
__name: "TextField",
|
|
1186
1294
|
props: {
|
|
1187
1295
|
field: {},
|
|
@@ -1204,7 +1312,7 @@ var Je = [
|
|
|
1204
1312
|
placeholder: e.field.placeholder,
|
|
1205
1313
|
disabled: "",
|
|
1206
1314
|
title: f(r).customBlocks.dataSource.readOnlyTooltip
|
|
1207
|
-
}, null, 10,
|
|
1315
|
+
}, null, 10, rr)) : (o(), y(q, {
|
|
1208
1316
|
key: 1,
|
|
1209
1317
|
"model-value": e.modelValue,
|
|
1210
1318
|
placeholder: e.field.placeholder,
|
|
@@ -1217,12 +1325,12 @@ var Je = [
|
|
|
1217
1325
|
"read-only"
|
|
1218
1326
|
]));
|
|
1219
1327
|
}
|
|
1220
|
-
}),
|
|
1328
|
+
}), ar = [
|
|
1221
1329
|
"value",
|
|
1222
1330
|
"placeholder",
|
|
1223
1331
|
"title"
|
|
1224
|
-
],
|
|
1225
|
-
text:
|
|
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,
|
|
1226
1334
|
textarea: /* @__PURE__ */ l({
|
|
1227
1335
|
__name: "TextareaField",
|
|
1228
1336
|
props: {
|
|
@@ -1245,8 +1353,8 @@ var Je = [
|
|
|
1245
1353
|
rows: "3",
|
|
1246
1354
|
disabled: "",
|
|
1247
1355
|
title: f(r).customBlocks.dataSource.readOnlyTooltip,
|
|
1248
|
-
class: m(
|
|
1249
|
-
}, null, 8,
|
|
1356
|
+
class: m(or)
|
|
1357
|
+
}, null, 8, ar)) : (o(), y(Ke, {
|
|
1250
1358
|
key: 1,
|
|
1251
1359
|
"model-value": e.modelValue,
|
|
1252
1360
|
placeholder: e.field.placeholder,
|
|
@@ -1260,42 +1368,42 @@ var Je = [
|
|
|
1260
1368
|
]));
|
|
1261
1369
|
}
|
|
1262
1370
|
}),
|
|
1263
|
-
image:
|
|
1264
|
-
color:
|
|
1265
|
-
number:
|
|
1266
|
-
select:
|
|
1267
|
-
boolean:
|
|
1268
|
-
repeatable:
|
|
1371
|
+
image: Wn,
|
|
1372
|
+
color: Vn,
|
|
1373
|
+
number: Kn,
|
|
1374
|
+
select: nr,
|
|
1375
|
+
boolean: Fn,
|
|
1376
|
+
repeatable: $n
|
|
1269
1377
|
};
|
|
1270
|
-
function
|
|
1271
|
-
return
|
|
1378
|
+
function cr(e) {
|
|
1379
|
+
return sr[e] ?? ir;
|
|
1272
1380
|
}
|
|
1273
1381
|
//#endregion
|
|
1274
1382
|
//#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1275
|
-
var
|
|
1383
|
+
var lr = {
|
|
1276
1384
|
key: 0,
|
|
1277
1385
|
class: "tpl:p-4"
|
|
1278
|
-
},
|
|
1386
|
+
}, ur = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, dr = { key: 1 }, fr = {
|
|
1279
1387
|
key: 0,
|
|
1280
1388
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1281
|
-
},
|
|
1389
|
+
}, pr = {
|
|
1282
1390
|
key: 1,
|
|
1283
1391
|
class: "tpl:mb-4"
|
|
1284
|
-
},
|
|
1392
|
+
}, mr = {
|
|
1285
1393
|
key: 1,
|
|
1286
1394
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
1287
|
-
},
|
|
1395
|
+
}, hr = {
|
|
1288
1396
|
key: 0,
|
|
1289
1397
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1290
|
-
},
|
|
1398
|
+
}, gr = {
|
|
1291
1399
|
key: 2,
|
|
1292
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)]"
|
|
1293
|
-
},
|
|
1401
|
+
}, _r = /* @__PURE__ */ l({
|
|
1294
1402
|
__name: "CustomBlockToolbar",
|
|
1295
1403
|
props: { block: {} },
|
|
1296
1404
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1297
1405
|
setup(e, { emit: t }) {
|
|
1298
|
-
let i = e, a = t, { t: s } = L(), l = n(
|
|
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({
|
|
1299
1407
|
definition: u,
|
|
1300
1408
|
block: d,
|
|
1301
1409
|
onUpdate: (e, t) => {
|
|
@@ -1311,23 +1419,23 @@ var tr = {
|
|
|
1311
1419
|
[e]: t
|
|
1312
1420
|
});
|
|
1313
1421
|
}
|
|
1314
|
-
return (t, n) => u.value ? (o(), g("div",
|
|
1315
|
-
u.value.description ? (o(), g("p",
|
|
1316
|
-
f(S) ? (o(), g("div",
|
|
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", {
|
|
1317
1425
|
key: 0,
|
|
1318
1426
|
type: "button",
|
|
1319
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)]",
|
|
1320
1428
|
onClick: n[0] ||= (...e) => f(b) && f(b)(...e)
|
|
1321
|
-
}, w(u.value?.dataSource?.label || f(s).customBlocks.dataSource.fetchButton), 1)) : (o(), g("div",
|
|
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", {
|
|
1322
1430
|
key: 1,
|
|
1323
1431
|
type: "button",
|
|
1324
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)]",
|
|
1325
1433
|
onClick: n[1] ||= (...e) => f(b) && f(b)(...e)
|
|
1326
|
-
}, [p(f(
|
|
1434
|
+
}, [p(f(xe), { size: 12 }), E(" " + w(f(s).customBlocks.dataSource.changeButton), 1)]))])), f(v) ? (o(), g("p", gr, [p(f(we), {
|
|
1327
1435
|
size: 14,
|
|
1328
1436
|
class: "tpl:shrink-0"
|
|
1329
1437
|
}), E(" " + w(f(s).customBlocks.dataSource.fetchError), 1)])) : _("", !0)])) : _("", !0),
|
|
1330
|
-
(o(!0), g(C, null, r(u.value.fields, (t) => (o(), y(c(f(
|
|
1438
|
+
(o(!0), g(C, null, r(u.value.fields, (t) => (o(), y(c(f(cr)(t.type)), {
|
|
1331
1439
|
key: t.key,
|
|
1332
1440
|
field: t,
|
|
1333
1441
|
"model-value": e.block.fieldValues[t.key],
|
|
@@ -1339,9 +1447,9 @@ var tr = {
|
|
|
1339
1447
|
"read-only",
|
|
1340
1448
|
"onUpdate:modelValue"
|
|
1341
1449
|
]))), 128))
|
|
1342
|
-
])) : (o(), g("div",
|
|
1450
|
+
])) : (o(), g("div", lr, [x("p", ur, w(f(s).customBlocks.toolbar.noDefinition), 1)]));
|
|
1343
1451
|
}
|
|
1344
|
-
}),
|
|
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({
|
|
1345
1453
|
__name: "DividerToolbar",
|
|
1346
1454
|
props: { block: {} },
|
|
1347
1455
|
emits: ["update"],
|
|
@@ -1351,7 +1459,7 @@ var tr = {
|
|
|
1351
1459
|
n("update", { [e]: t });
|
|
1352
1460
|
}
|
|
1353
1461
|
return (t, n) => (o(), g(C, null, [
|
|
1354
|
-
x("div",
|
|
1462
|
+
x("div", vr, [x("label", { class: m(f(V)) }, w(f(r).divider.style), 3), p(J, {
|
|
1355
1463
|
options: [
|
|
1356
1464
|
{
|
|
1357
1465
|
value: "solid",
|
|
@@ -1369,147 +1477,122 @@ var tr = {
|
|
|
1369
1477
|
"model-value": e.block.lineStyle,
|
|
1370
1478
|
"onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
|
|
1371
1479
|
}, null, 8, ["options", "model-value"])]),
|
|
1372
|
-
x("div",
|
|
1480
|
+
x("div", yr, [x("label", { class: m(f(V)) }, w(f(r).divider.color), 3), p(G, {
|
|
1373
1481
|
"model-value": e.block.color,
|
|
1374
1482
|
"onUpdate:modelValue": n[1] ||= (e) => i("color", e)
|
|
1375
1483
|
}, null, 8, ["model-value"])]),
|
|
1376
|
-
x("div",
|
|
1484
|
+
x("div", br, [x("label", { class: m(f(V)) }, w(f(r).divider.thickness), 3), x("div", xr, [x("input", {
|
|
1377
1485
|
type: "number",
|
|
1378
1486
|
class: m(f(U)),
|
|
1379
1487
|
value: e.block.thickness,
|
|
1380
1488
|
min: "1",
|
|
1381
1489
|
max: "10",
|
|
1382
1490
|
onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
|
|
1383
|
-
}, null, 42,
|
|
1491
|
+
}, null, 42, Sr), x("span", { class: m(f(H)) }, "px", 2)])])
|
|
1384
1492
|
], 64));
|
|
1385
1493
|
}
|
|
1386
|
-
}),
|
|
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({
|
|
1387
1495
|
__name: "HtmlToolbar",
|
|
1388
1496
|
props: { block: {} },
|
|
1389
1497
|
emits: ["update"],
|
|
1390
1498
|
setup(e, { emit: t }) {
|
|
1391
1499
|
let n = t, { t: r } = L();
|
|
1392
|
-
return (t, i) => (o(), g("div",
|
|
1500
|
+
return (t, i) => (o(), g("div", wr, [
|
|
1393
1501
|
x("label", { class: m(f(V)) }, w(f(r).html.content), 3),
|
|
1394
1502
|
x("textarea", {
|
|
1395
1503
|
value: e.block.content,
|
|
1396
1504
|
placeholder: "<div>...</div>",
|
|
1397
1505
|
rows: "10",
|
|
1398
|
-
class: m(f(
|
|
1506
|
+
class: m(f(Be)),
|
|
1399
1507
|
onInput: i[0] ||= (e) => n("update", { content: e.target.value })
|
|
1400
|
-
}, null, 42,
|
|
1401
|
-
x("p",
|
|
1508
|
+
}, null, 42, Tr),
|
|
1509
|
+
x("p", Er, [p(f(Ae), {
|
|
1402
1510
|
size: 12,
|
|
1403
1511
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1404
1512
|
}), E(" " + w(f(r).html.sanitizationHint), 1)])
|
|
1405
1513
|
]));
|
|
1406
1514
|
}
|
|
1407
|
-
}),
|
|
1408
|
-
key: 0,
|
|
1409
|
-
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
|
|
1410
|
-
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
|
|
1411
|
-
}, Sr = {
|
|
1515
|
+
}), Or = { class: "tpl:mb-3.5" }, kr = {
|
|
1412
1516
|
key: 0,
|
|
1413
1517
|
class: "tpl:mb-3.5"
|
|
1414
|
-
},
|
|
1518
|
+
}, Ar = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, jr = [
|
|
1415
1519
|
"value",
|
|
1416
1520
|
"placeholder",
|
|
1417
1521
|
"title"
|
|
1418
|
-
],
|
|
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 = {
|
|
1419
1523
|
key: 0,
|
|
1420
1524
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1421
|
-
},
|
|
1525
|
+
}, zr = ["value"], Br = { class: "tpl:mb-3.5" }, Vr = ["value"], Hr = { value: "auto" }, Ur = { value: "custom" }, Wr = {
|
|
1422
1526
|
key: 0,
|
|
1423
1527
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1424
|
-
},
|
|
1528
|
+
}, Gr = ["value"], Kr = { class: "tpl:mb-3.5" }, qr = { class: "tpl:mb-3.5" }, Jr = 350, Yr = 200, Xr = /* @__PURE__ */ l({
|
|
1425
1529
|
__name: "ImageToolbar",
|
|
1426
1530
|
props: { block: {} },
|
|
1427
1531
|
emits: ["update"],
|
|
1428
1532
|
setup(e, { emit: t }) {
|
|
1429
|
-
let r = e, a = t, { t: c } = L(), l = n(
|
|
1430
|
-
|
|
1431
|
-
}, 1e3, { immediate: !1 }),
|
|
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 = [
|
|
1432
1536
|
300,
|
|
1433
1537
|
400,
|
|
1434
1538
|
500
|
|
1435
|
-
],
|
|
1539
|
+
], S = h(() => {
|
|
1436
1540
|
let e = r.block.width;
|
|
1437
|
-
return e === "full" ? "full" :
|
|
1438
|
-
}),
|
|
1439
|
-
function
|
|
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) {
|
|
1440
1544
|
a("update", { [e]: t });
|
|
1441
1545
|
}
|
|
1442
|
-
function
|
|
1546
|
+
function O(e) {
|
|
1443
1547
|
if (e === "custom") {
|
|
1444
1548
|
let e = r.block.width;
|
|
1445
|
-
(typeof e != "number" ||
|
|
1446
|
-
} else
|
|
1549
|
+
(typeof e != "number" || b.includes(e)) && D("width", Jr);
|
|
1550
|
+
} else D("width", e === "full" ? "full" : Number(e));
|
|
1447
1551
|
}
|
|
1448
|
-
function
|
|
1449
|
-
|
|
1552
|
+
function k(e) {
|
|
1553
|
+
D("height", e === "custom" ? Yr : void 0);
|
|
1450
1554
|
}
|
|
1451
|
-
function
|
|
1555
|
+
function A(e) {
|
|
1452
1556
|
let t = Number(e);
|
|
1453
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
1557
|
+
!Number.isFinite(t) || t <= 0 || D("height", t);
|
|
1454
1558
|
}
|
|
1455
|
-
function
|
|
1456
|
-
|
|
1559
|
+
function M(e) {
|
|
1560
|
+
D("borderRadius", j(e) === null ? void 0 : e);
|
|
1457
1561
|
}
|
|
1458
|
-
function
|
|
1562
|
+
function N(e) {
|
|
1459
1563
|
let t = Number(e);
|
|
1460
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
1461
|
-
}
|
|
1462
|
-
async function ae() {
|
|
1463
|
-
let e = await l?.({ accept: ["images"] });
|
|
1464
|
-
v.alive && e && (N("src", e.url), e.alt && (N("alt", e.alt), T.value = !0), S.value = !0, O());
|
|
1465
|
-
}
|
|
1466
|
-
let se = s(), I = s(!1), ce = h(() => M(r.block.src, d)), fe = h(() => (u?.value ?? !!l) && !I.value && !ce.value);
|
|
1467
|
-
async function pe(e) {
|
|
1468
|
-
if (l) {
|
|
1469
|
-
I.value = !0;
|
|
1470
|
-
try {
|
|
1471
|
-
let t = await l({
|
|
1472
|
-
accept: ["images"],
|
|
1473
|
-
files: e
|
|
1474
|
-
});
|
|
1475
|
-
if (!v.alive) return;
|
|
1476
|
-
t && (N("src", t.url), t.alt && (N("alt", t.alt), T.value = !0), S.value = !0, O());
|
|
1477
|
-
} finally {
|
|
1478
|
-
v.alive && (I.value = !1);
|
|
1479
|
-
}
|
|
1480
|
-
}
|
|
1564
|
+
!Number.isFinite(t) || t <= 0 || D("width", t);
|
|
1481
1565
|
}
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
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
|
|
1486
1573
|
});
|
|
1487
1574
|
return (t, n) => (o(), g(C, null, [
|
|
1488
|
-
x("div",
|
|
1575
|
+
x("div", Or, [x("label", { class: m(f(V)) }, w(f(c).image.imageUrl), 3), x("div", {
|
|
1489
1576
|
ref_key: "dropZoneRef",
|
|
1490
|
-
ref:
|
|
1577
|
+
ref: F,
|
|
1491
1578
|
class: "tpl:relative"
|
|
1492
1579
|
}, [
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
}), E(" " + w(f(c).image.uploading), 1)], 64)) : (o(), g(C, { key: 1 }, [p(f(Fe), {
|
|
1498
|
-
size: 18,
|
|
1499
|
-
"stroke-width": 1.5
|
|
1500
|
-
}), E(" " + w(f(c).image.dropToUpload), 1)], 64))])) : _("", !0),
|
|
1580
|
+
f(ae) ? (o(), y(I, {
|
|
1581
|
+
key: 0,
|
|
1582
|
+
uploading: f(ie)
|
|
1583
|
+
}, null, 8, ["uploading"])) : _("", !0),
|
|
1501
1584
|
p(q, {
|
|
1502
1585
|
"model-value": e.block.src,
|
|
1503
1586
|
type: "url",
|
|
1504
1587
|
placeholder: f(c).image.imageUrlPlaceholder,
|
|
1505
|
-
pulse:
|
|
1506
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1588
|
+
pulse: u.value,
|
|
1589
|
+
"onUpdate:modelValue": n[0] ||= (e) => D("src", e)
|
|
1507
1590
|
}, null, 8, [
|
|
1508
1591
|
"model-value",
|
|
1509
1592
|
"placeholder",
|
|
1510
1593
|
"pulse"
|
|
1511
1594
|
]),
|
|
1512
|
-
|
|
1595
|
+
f(re) ? (o(), g("button", {
|
|
1513
1596
|
key: 1,
|
|
1514
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",
|
|
1515
1598
|
style: {
|
|
@@ -1517,29 +1600,29 @@ var tr = {
|
|
|
1517
1600
|
color: "var(--tpl-primary)",
|
|
1518
1601
|
"background-color": "var(--tpl-bg)"
|
|
1519
1602
|
},
|
|
1520
|
-
onClick:
|
|
1521
|
-
}, [p(f(
|
|
1603
|
+
onClick: n[1] ||= (...e) => f(se) && f(se)(...e)
|
|
1604
|
+
}, [p(f(Fe), {
|
|
1522
1605
|
size: 14,
|
|
1523
1606
|
"stroke-width": 1.5
|
|
1524
1607
|
}), E(" " + w(f(c).image.browseMedia), 1)])) : _("", !0)
|
|
1525
1608
|
], 512)]),
|
|
1526
|
-
f(
|
|
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", {
|
|
1527
1610
|
type: "url",
|
|
1528
1611
|
class: m(f(W)),
|
|
1529
1612
|
value: e.block.placeholderUrl || "",
|
|
1530
1613
|
placeholder: f(c).image.placeholderUrlPlaceholder,
|
|
1531
1614
|
title: f(c).image.placeholderUrlTooltip,
|
|
1532
|
-
onInput: n[
|
|
1533
|
-
}, null, 42,
|
|
1534
|
-
x("div",
|
|
1615
|
+
onInput: n[2] ||= (e) => D("placeholderUrl", e.target.value)
|
|
1616
|
+
}, null, 42, jr)])) : _("", !0),
|
|
1617
|
+
x("div", Mr, [
|
|
1535
1618
|
x("label", { class: m(f(V)) }, w(f(c).image.altText), 3),
|
|
1536
1619
|
p(q, {
|
|
1537
1620
|
"model-value": e.block.alt,
|
|
1538
1621
|
type: "text",
|
|
1539
1622
|
placeholder: f(c).image.altTextPlaceholder,
|
|
1540
|
-
pulse:
|
|
1623
|
+
pulse: d.value,
|
|
1541
1624
|
disabled: e.block.decorative === !0,
|
|
1542
|
-
"onUpdate:modelValue": n[
|
|
1625
|
+
"onUpdate:modelValue": n[3] ||= (e) => D("alt", e)
|
|
1543
1626
|
}, null, 8, [
|
|
1544
1627
|
"model-value",
|
|
1545
1628
|
"placeholder",
|
|
@@ -1550,62 +1633,62 @@ var tr = {
|
|
|
1550
1633
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
1551
1634
|
"model-value": e.block.decorative === !0,
|
|
1552
1635
|
label: f(c).image.decorative,
|
|
1553
|
-
"onUpdate:modelValue": n[
|
|
1636
|
+
"onUpdate:modelValue": n[4] ||= (e) => D("decorative", e)
|
|
1554
1637
|
}, {
|
|
1555
|
-
default: i(() => [x("span", null, [E(w(f(c).image.decorative) + " ", 1), x("span",
|
|
1638
|
+
default: i(() => [x("span", null, [E(w(f(c).image.decorative) + " ", 1), x("span", Nr, w(f(c).image.decorativeHint), 1)])]),
|
|
1556
1639
|
_: 1
|
|
1557
1640
|
}, 8, ["model-value", "label"])
|
|
1558
1641
|
]),
|
|
1559
|
-
x("div",
|
|
1642
|
+
x("div", Pr, [
|
|
1560
1643
|
x("label", { class: m(f(V)) }, w(f(c).image.width), 3),
|
|
1561
1644
|
x("select", {
|
|
1562
1645
|
class: m(f(W)),
|
|
1563
|
-
value:
|
|
1564
|
-
onChange: n[
|
|
1646
|
+
value: S.value,
|
|
1647
|
+
onChange: n[5] ||= (e) => O(e.target.value)
|
|
1565
1648
|
}, [
|
|
1566
|
-
x("option",
|
|
1567
|
-
n[
|
|
1568
|
-
n[
|
|
1569
|
-
n[
|
|
1570
|
-
x("option",
|
|
1571
|
-
], 42,
|
|
1572
|
-
|
|
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", {
|
|
1573
1656
|
type: "number",
|
|
1574
1657
|
class: m(f(U)),
|
|
1575
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
1658
|
+
value: typeof e.block.width == "number" ? e.block.width : Jr,
|
|
1576
1659
|
min: "20",
|
|
1577
|
-
onInput: n[
|
|
1578
|
-
}, null, 42,
|
|
1660
|
+
onInput: n[6] ||= (e) => N(e.target.value)
|
|
1661
|
+
}, null, 42, zr), x("span", { class: m(f(H)) }, "px", 2)])) : _("", !0)
|
|
1579
1662
|
]),
|
|
1580
|
-
x("div",
|
|
1663
|
+
x("div", Br, [
|
|
1581
1664
|
x("label", { class: m(f(V)) }, w(f(c).image.height), 3),
|
|
1582
1665
|
x("select", {
|
|
1583
1666
|
class: m(f(W)),
|
|
1584
1667
|
"data-testid": "image-height-mode",
|
|
1585
|
-
value:
|
|
1586
|
-
onChange: n[
|
|
1587
|
-
}, [x("option",
|
|
1588
|
-
|
|
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", {
|
|
1589
1672
|
type: "number",
|
|
1590
1673
|
"data-testid": "image-height-input",
|
|
1591
1674
|
class: m(f(U)),
|
|
1592
1675
|
value: e.block.height,
|
|
1593
1676
|
min: "20",
|
|
1594
|
-
onInput: n[
|
|
1595
|
-
}, null, 42,
|
|
1677
|
+
onInput: n[8] ||= (e) => A(e.target.value)
|
|
1678
|
+
}, null, 42, Gr), x("span", { class: m(f(H)) }, "px", 2)])) : _("", !0)
|
|
1596
1679
|
]),
|
|
1597
|
-
p(
|
|
1680
|
+
p(pt, {
|
|
1598
1681
|
"model-value": e.block.borderRadius,
|
|
1599
1682
|
label: f(c).image.borderRadius,
|
|
1600
1683
|
"testid-prefix": "image",
|
|
1601
|
-
"onUpdate:modelValue":
|
|
1684
|
+
"onUpdate:modelValue": M
|
|
1602
1685
|
}, null, 8, ["model-value", "label"]),
|
|
1603
|
-
p(
|
|
1686
|
+
p(st, {
|
|
1604
1687
|
"model-value": e.block.border,
|
|
1605
1688
|
"testid-prefix": "image",
|
|
1606
|
-
"onUpdate:modelValue": n[
|
|
1689
|
+
"onUpdate:modelValue": n[9] ||= (e) => D("border", e)
|
|
1607
1690
|
}, null, 8, ["model-value"]),
|
|
1608
|
-
x("div",
|
|
1691
|
+
x("div", Kr, [x("label", { class: m(f(V)) }, w(f(c).title.align), 3), p(J, {
|
|
1609
1692
|
options: [
|
|
1610
1693
|
{
|
|
1611
1694
|
value: "left",
|
|
@@ -1621,40 +1704,40 @@ var tr = {
|
|
|
1621
1704
|
}
|
|
1622
1705
|
],
|
|
1623
1706
|
"model-value": e.block.align,
|
|
1624
|
-
"onUpdate:modelValue": n[
|
|
1707
|
+
"onUpdate:modelValue": n[10] ||= (e) => D("align", e)
|
|
1625
1708
|
}, null, 8, ["options", "model-value"])]),
|
|
1626
|
-
x("div",
|
|
1709
|
+
x("div", qr, [
|
|
1627
1710
|
x("label", { class: m(f(V)) }, w(f(c).image.linkUrl), 3),
|
|
1628
1711
|
p(q, {
|
|
1629
1712
|
"model-value": e.block.linkUrl || "",
|
|
1630
1713
|
type: "url",
|
|
1631
1714
|
placeholder: f(c).image.imageUrlPlaceholder,
|
|
1632
|
-
"onUpdate:modelValue": n[
|
|
1715
|
+
"onUpdate:modelValue": n[11] ||= (e) => D("linkUrl", e)
|
|
1633
1716
|
}, null, 8, ["model-value", "placeholder"]),
|
|
1634
1717
|
e.block.linkUrl ? (o(), y(K, {
|
|
1635
1718
|
key: 0,
|
|
1636
1719
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
1637
1720
|
"model-value": e.block.linkOpenInNewTab ?? !1,
|
|
1638
1721
|
label: f(c).image.openInNewTab,
|
|
1639
|
-
"onUpdate:modelValue": n[
|
|
1722
|
+
"onUpdate:modelValue": n[12] ||= (e) => D("linkOpenInNewTab", e)
|
|
1640
1723
|
}, null, 8, ["model-value", "label"])) : _("", !0)
|
|
1641
1724
|
])
|
|
1642
1725
|
], 64));
|
|
1643
1726
|
}
|
|
1644
|
-
}),
|
|
1727
|
+
}), Zr = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ l({
|
|
1645
1728
|
__name: "FieldRow",
|
|
1646
1729
|
props: { label: {} },
|
|
1647
1730
|
setup(e) {
|
|
1648
|
-
return (t, n) => (o(), g("div",
|
|
1731
|
+
return (t, n) => (o(), g("div", Zr, [e.label ? (o(), g("label", {
|
|
1649
1732
|
key: 0,
|
|
1650
1733
|
class: m(f(V))
|
|
1651
1734
|
}, w(e.label), 3)) : _("", !0), a(t.$slots, "default")]));
|
|
1652
1735
|
}
|
|
1653
|
-
}),
|
|
1736
|
+
}), Qr = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, $r = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ei = [
|
|
1654
1737
|
"value",
|
|
1655
1738
|
"placeholder",
|
|
1656
1739
|
"onInput"
|
|
1657
|
-
],
|
|
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({
|
|
1658
1741
|
__name: "MenuToolbar",
|
|
1659
1742
|
props: {
|
|
1660
1743
|
block: {},
|
|
@@ -1679,17 +1762,17 @@ var tr = {
|
|
|
1679
1762
|
{
|
|
1680
1763
|
value: "left",
|
|
1681
1764
|
label: s.title.alignLeft,
|
|
1682
|
-
icon:
|
|
1765
|
+
icon: z
|
|
1683
1766
|
},
|
|
1684
1767
|
{
|
|
1685
1768
|
value: "center",
|
|
1686
1769
|
label: s.title.alignCenter,
|
|
1687
|
-
icon:
|
|
1770
|
+
icon: Le
|
|
1688
1771
|
},
|
|
1689
1772
|
{
|
|
1690
1773
|
value: "right",
|
|
1691
1774
|
label: s.title.alignRight,
|
|
1692
|
-
icon:
|
|
1775
|
+
icon: Ee
|
|
1693
1776
|
}
|
|
1694
1777
|
]);
|
|
1695
1778
|
function u(e, t) {
|
|
@@ -1697,7 +1780,7 @@ var tr = {
|
|
|
1697
1780
|
}
|
|
1698
1781
|
function d() {
|
|
1699
1782
|
let e = {
|
|
1700
|
-
id:
|
|
1783
|
+
id: A(),
|
|
1701
1784
|
text: "",
|
|
1702
1785
|
url: "",
|
|
1703
1786
|
openInNewTab: !1,
|
|
@@ -1718,24 +1801,24 @@ var tr = {
|
|
|
1718
1801
|
}
|
|
1719
1802
|
return (t, n) => (o(), g(C, null, [
|
|
1720
1803
|
p($, { label: f(s).menu.items }, {
|
|
1721
|
-
default: i(() => [x("div",
|
|
1804
|
+
default: i(() => [x("div", Qr, [(o(!0), g(C, null, r(e.block.items, (t) => (o(), g("div", {
|
|
1722
1805
|
key: t.id,
|
|
1723
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"
|
|
1724
1807
|
}, [
|
|
1725
|
-
x("div",
|
|
1808
|
+
x("div", $r, [x("input", {
|
|
1726
1809
|
type: "text",
|
|
1727
1810
|
class: m([f(W), "tpl:flex-1"]),
|
|
1728
1811
|
value: t.text,
|
|
1729
1812
|
placeholder: f(s).menu.text,
|
|
1730
1813
|
onInput: (e) => _(t.id, "text", e.target.value)
|
|
1731
|
-
}, null, 42,
|
|
1732
|
-
class: m(f(
|
|
1814
|
+
}, null, 42, ei), x("button", {
|
|
1815
|
+
class: m(f(Ve)),
|
|
1733
1816
|
title: f(s).menu.removeItem,
|
|
1734
1817
|
onClick: (e) => v(t.id)
|
|
1735
|
-
}, [p(f(
|
|
1818
|
+
}, [p(f(Pe), {
|
|
1736
1819
|
size: 14,
|
|
1737
1820
|
"stroke-width": 2
|
|
1738
|
-
})], 10,
|
|
1821
|
+
})], 10, ti)]),
|
|
1739
1822
|
p(q, {
|
|
1740
1823
|
"model-value": t.url,
|
|
1741
1824
|
type: "url",
|
|
@@ -1746,7 +1829,7 @@ var tr = {
|
|
|
1746
1829
|
"placeholder",
|
|
1747
1830
|
"onUpdate:modelValue"
|
|
1748
1831
|
]),
|
|
1749
|
-
x("div",
|
|
1832
|
+
x("div", ni, [(o(!0), g(C, null, r(c.value, (e) => (o(), y(K, {
|
|
1750
1833
|
key: e.key,
|
|
1751
1834
|
"model-value": t[e.key],
|
|
1752
1835
|
label: e.label,
|
|
@@ -1756,13 +1839,13 @@ var tr = {
|
|
|
1756
1839
|
"label",
|
|
1757
1840
|
"onUpdate:modelValue"
|
|
1758
1841
|
]))), 128))]),
|
|
1759
|
-
x("div",
|
|
1842
|
+
x("div", ri, [x("label", { class: m([f(V), "tpl:!mb-0"]) }, w(f(s).menu.color), 3), p(G, {
|
|
1760
1843
|
"swatch-only": "",
|
|
1761
1844
|
"model-value": t.color || e.block.linkColor || e.block.color || "",
|
|
1762
1845
|
"onUpdate:modelValue": (e) => _(t.id, "color", e)
|
|
1763
1846
|
}, null, 8, ["model-value", "onUpdate:modelValue"])])
|
|
1764
1847
|
]))), 128)), x("button", {
|
|
1765
|
-
class: m(f(
|
|
1848
|
+
class: m(f(He)),
|
|
1766
1849
|
onClick: d
|
|
1767
1850
|
}, [p(f(R), {
|
|
1768
1851
|
size: 14,
|
|
@@ -1773,12 +1856,12 @@ var tr = {
|
|
|
1773
1856
|
p($, { label: f(s).menu.fontFamily }, {
|
|
1774
1857
|
default: i(() => [x("select", {
|
|
1775
1858
|
class: m(f(W)),
|
|
1776
|
-
value: f(
|
|
1859
|
+
value: f(Je)(e.block.fontFamily),
|
|
1777
1860
|
onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
1778
|
-
}, [x("option",
|
|
1861
|
+
}, [x("option", ai, w(f(s).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
|
|
1779
1862
|
key: e.value,
|
|
1780
1863
|
value: e.value
|
|
1781
|
-
}, w(e.label), 9,
|
|
1864
|
+
}, w(e.label), 9, oi))), 128))], 42, ii)]),
|
|
1782
1865
|
_: 1
|
|
1783
1866
|
}, 8, ["label"]),
|
|
1784
1867
|
p($, { label: f(s).menu.fontSize }, {
|
|
@@ -1819,7 +1902,7 @@ var tr = {
|
|
|
1819
1902
|
class: m(f(W)),
|
|
1820
1903
|
value: e.block.separator,
|
|
1821
1904
|
onInput: n[5] ||= (e) => u("separator", e.target.value)
|
|
1822
|
-
}, null, 42,
|
|
1905
|
+
}, null, 42, si)]),
|
|
1823
1906
|
_: 1
|
|
1824
1907
|
}, 8, ["label"]),
|
|
1825
1908
|
p($, { label: f(s).menu.separatorColor }, {
|
|
@@ -1841,32 +1924,32 @@ var tr = {
|
|
|
1841
1924
|
}, 8, ["label"])
|
|
1842
1925
|
], 64));
|
|
1843
1926
|
}
|
|
1844
|
-
}),
|
|
1927
|
+
}), li = {
|
|
1845
1928
|
class: "tpl:mb-3.5",
|
|
1846
1929
|
"data-testid": "paragraph-spacing"
|
|
1847
|
-
},
|
|
1930
|
+
}, ui = { class: "tpl:flex tpl:items-stretch" }, di = ["value"], fi = /* @__PURE__ */ l({
|
|
1848
1931
|
__name: "ParagraphToolbar",
|
|
1849
1932
|
props: { block: {} },
|
|
1850
1933
|
emits: ["update"],
|
|
1851
1934
|
setup(e, { emit: t }) {
|
|
1852
1935
|
let n = t, { t: r } = L();
|
|
1853
|
-
return (t, i) => (o(), g("div",
|
|
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", {
|
|
1854
1937
|
type: "number",
|
|
1855
1938
|
class: m(f(U)),
|
|
1856
|
-
value: e.block.paragraphSpacing ?? f(
|
|
1939
|
+
value: e.block.paragraphSpacing ?? f(F).paragraphGap,
|
|
1857
1940
|
min: "0",
|
|
1858
1941
|
max: "64",
|
|
1859
1942
|
onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
1860
|
-
}, null, 42,
|
|
1943
|
+
}, null, 42, di), x("span", { class: m(f(H)) }, "px", 2)])]));
|
|
1861
1944
|
}
|
|
1862
1945
|
});
|
|
1863
1946
|
//#endregion
|
|
1864
1947
|
//#region src/utils/rebalanceColumnChildren.ts
|
|
1865
|
-
function
|
|
1948
|
+
function pi(e) {
|
|
1866
1949
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
1867
1950
|
}
|
|
1868
|
-
function
|
|
1869
|
-
let n =
|
|
1951
|
+
function mi(e, t) {
|
|
1952
|
+
let n = pi(t);
|
|
1870
1953
|
if (e.length === n) return e;
|
|
1871
1954
|
if (e.length < n) {
|
|
1872
1955
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -1877,24 +1960,24 @@ function si(e, t) {
|
|
|
1877
1960
|
}
|
|
1878
1961
|
//#endregion
|
|
1879
1962
|
//#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1880
|
-
var
|
|
1963
|
+
var hi = { class: "tpl:mb-3.5" }, gi = ["value"], _i = ["value"], vi = {
|
|
1881
1964
|
key: 0,
|
|
1882
1965
|
class: "tpl:mb-3.5"
|
|
1883
|
-
},
|
|
1966
|
+
}, yi = {
|
|
1884
1967
|
key: 1,
|
|
1885
1968
|
class: "tpl:mb-3.5"
|
|
1886
|
-
},
|
|
1969
|
+
}, bi = {
|
|
1887
1970
|
key: 0,
|
|
1888
1971
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1889
|
-
},
|
|
1972
|
+
}, xi = {
|
|
1890
1973
|
key: 1,
|
|
1891
1974
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
1892
|
-
},
|
|
1975
|
+
}, Si = /* @__PURE__ */ l({
|
|
1893
1976
|
__name: "SectionToolbar",
|
|
1894
1977
|
props: { block: {} },
|
|
1895
1978
|
emits: ["update"],
|
|
1896
1979
|
setup(e, { emit: t }) {
|
|
1897
|
-
let i = e, a = t, { t: s } = L(), c = n(
|
|
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(() => [
|
|
1898
1981
|
{
|
|
1899
1982
|
value: "1",
|
|
1900
1983
|
label: s.section.column1
|
|
@@ -1917,7 +2000,7 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
1917
2000
|
}
|
|
1918
2001
|
]);
|
|
1919
2002
|
function S(e) {
|
|
1920
|
-
let t = e.target.value, n =
|
|
2003
|
+
let t = e.target.value, n = mi(i.block.children, t);
|
|
1921
2004
|
a("update", {
|
|
1922
2005
|
columns: t,
|
|
1923
2006
|
children: n
|
|
@@ -1943,40 +2026,40 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
1943
2026
|
...e
|
|
1944
2027
|
} });
|
|
1945
2028
|
}
|
|
1946
|
-
function
|
|
2029
|
+
function k(e) {
|
|
1947
2030
|
O({ padding: e });
|
|
1948
2031
|
}
|
|
1949
|
-
function
|
|
2032
|
+
function A(e) {
|
|
1950
2033
|
O({ borderRadius: e });
|
|
1951
2034
|
}
|
|
1952
2035
|
return (t, n) => (o(), g(C, null, [
|
|
1953
|
-
x("div",
|
|
2036
|
+
x("div", hi, [x("label", { class: m(f(V)) }, w(f(s).section.columns), 3), x("select", {
|
|
1954
2037
|
class: m(f(W)),
|
|
1955
2038
|
value: e.block.columns,
|
|
1956
2039
|
onChange: S
|
|
1957
2040
|
}, [(o(!0), g(C, null, r(b.value, (e) => (o(), g("option", {
|
|
1958
2041
|
key: e.value,
|
|
1959
2042
|
value: e.value
|
|
1960
|
-
}, w(e.label), 9,
|
|
1961
|
-
e.block.columns === "1" ? _("", !0) : (o(), g("div",
|
|
2043
|
+
}, w(e.label), 9, _i))), 128))], 42, gi)]),
|
|
2044
|
+
e.block.columns === "1" ? _("", !0) : (o(), g("div", vi, [p(K, {
|
|
1962
2045
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1963
2046
|
"model-value": e.block.stackOnMobile !== !1,
|
|
1964
2047
|
label: f(s).section.stackOnMobile,
|
|
1965
2048
|
"onUpdate:modelValue": n[0] ||= (e) => T(e)
|
|
1966
2049
|
}, null, 8, ["model-value", "label"])])),
|
|
1967
|
-
p(
|
|
2050
|
+
p(pt, {
|
|
1968
2051
|
"model-value": e.block.borderRadius,
|
|
1969
2052
|
label: f(s).section.borderRadius,
|
|
1970
2053
|
max: 50,
|
|
1971
2054
|
"testid-prefix": "section",
|
|
1972
2055
|
"onUpdate:modelValue": E
|
|
1973
2056
|
}, null, 8, ["model-value", "label"]),
|
|
1974
|
-
p(
|
|
2057
|
+
p(st, {
|
|
1975
2058
|
"model-value": e.block.border,
|
|
1976
2059
|
"testid-prefix": "section",
|
|
1977
2060
|
"onUpdate:modelValue": n[1] ||= (e) => a("update", { border: e })
|
|
1978
2061
|
}, null, 8, ["model-value"]),
|
|
1979
|
-
d.value ? (o(), g("div",
|
|
2062
|
+
d.value ? (o(), g("div", yi, [
|
|
1980
2063
|
p(K, {
|
|
1981
2064
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1982
2065
|
"model-value": !!e.block.wrapper,
|
|
@@ -1988,13 +2071,18 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
1988
2071
|
"label",
|
|
1989
2072
|
"disabled"
|
|
1990
2073
|
]),
|
|
1991
|
-
y.value ? (o(), g("p",
|
|
1992
|
-
e.block.wrapper ? (o(), g("div",
|
|
2074
|
+
y.value ? (o(), g("p", bi, w(f(s).section.wrapperLayoutConflict), 1)) : _("", !0),
|
|
2075
|
+
e.block.wrapper ? (o(), g("div", xi, [
|
|
1993
2076
|
x("div", null, [x("label", { class: m(f(V)) }, w(f(s).blockSettings.color), 3), p(G, {
|
|
1994
2077
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
1995
2078
|
"allow-transparent": "",
|
|
1996
2079
|
"onUpdate:modelValue": n[3] ||= (e) => O({ backgroundColor: e })
|
|
1997
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"]),
|
|
1998
2086
|
p(nn, {
|
|
1999
2087
|
label: f(s).blockSettings.padding,
|
|
2000
2088
|
"model-value": e.block.wrapper.padding ?? {
|
|
@@ -2003,20 +2091,20 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2003
2091
|
bottom: 0,
|
|
2004
2092
|
left: 0
|
|
2005
2093
|
},
|
|
2006
|
-
"onUpdate:modelValue":
|
|
2094
|
+
"onUpdate:modelValue": k
|
|
2007
2095
|
}, null, 8, ["label", "model-value"]),
|
|
2008
|
-
p(
|
|
2096
|
+
p(pt, {
|
|
2009
2097
|
"model-value": e.block.wrapper.borderRadius,
|
|
2010
2098
|
label: f(s).section.borderRadius,
|
|
2011
2099
|
max: 50,
|
|
2012
2100
|
"testid-prefix": "section-wrapper",
|
|
2013
|
-
"onUpdate:modelValue":
|
|
2101
|
+
"onUpdate:modelValue": A
|
|
2014
2102
|
}, null, 8, ["model-value", "label"])
|
|
2015
2103
|
])) : _("", !0)
|
|
2016
2104
|
])) : _("", !0)
|
|
2017
2105
|
], 64));
|
|
2018
2106
|
}
|
|
2019
|
-
}),
|
|
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({
|
|
2020
2108
|
__name: "SocialToolbar",
|
|
2021
2109
|
props: { block: {} },
|
|
2022
2110
|
emits: ["update"],
|
|
@@ -2027,7 +2115,7 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2027
2115
|
}
|
|
2028
2116
|
function c() {
|
|
2029
2117
|
let e = {
|
|
2030
|
-
id:
|
|
2118
|
+
id: A(),
|
|
2031
2119
|
platform: "facebook",
|
|
2032
2120
|
url: ""
|
|
2033
2121
|
};
|
|
@@ -2044,25 +2132,25 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2044
2132
|
i("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
2045
2133
|
}
|
|
2046
2134
|
return (t, n) => (o(), g(C, null, [
|
|
2047
|
-
x("div",
|
|
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", {
|
|
2048
2136
|
key: e.id,
|
|
2049
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"
|
|
2050
|
-
}, [x("div",
|
|
2138
|
+
}, [x("div", Ti, [x("select", {
|
|
2051
2139
|
"data-testid": "social-platform-select",
|
|
2052
2140
|
class: m([f(W), "tpl:flex-1"]),
|
|
2053
2141
|
value: e.platform,
|
|
2054
2142
|
onChange: (t) => l(e.id, "platform", t.target.value)
|
|
2055
|
-
}, [(o(!0), g(C, null, r(f(
|
|
2143
|
+
}, [(o(!0), g(C, null, r(f(ce), (e) => (o(), g("option", {
|
|
2056
2144
|
key: e,
|
|
2057
2145
|
value: e
|
|
2058
|
-
}, w(f(a).social.platforms[e]), 9,
|
|
2059
|
-
class: m(f(
|
|
2146
|
+
}, w(f(a).social.platforms[e]), 9, Di))), 128))], 42, Ei), x("button", {
|
|
2147
|
+
class: m(f(Ve)),
|
|
2060
2148
|
title: f(a).social.removeIcon,
|
|
2061
2149
|
onClick: (t) => u(e.id)
|
|
2062
|
-
}, [p(f(
|
|
2150
|
+
}, [p(f(Pe), {
|
|
2063
2151
|
size: 14,
|
|
2064
2152
|
"stroke-width": 2
|
|
2065
|
-
})], 10,
|
|
2153
|
+
})], 10, Oi)]), p(q, {
|
|
2066
2154
|
"model-value": e.url,
|
|
2067
2155
|
type: "url",
|
|
2068
2156
|
placeholder: f(a).social.urlPlaceholder,
|
|
@@ -2072,35 +2160,35 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2072
2160
|
"placeholder",
|
|
2073
2161
|
"onUpdate:modelValue"
|
|
2074
2162
|
])]))), 128)), x("button", {
|
|
2075
|
-
class: m(f(
|
|
2163
|
+
class: m(f(He)),
|
|
2076
2164
|
onClick: c
|
|
2077
2165
|
}, [p(f(R), {
|
|
2078
2166
|
size: 14,
|
|
2079
2167
|
"stroke-width": 2
|
|
2080
2168
|
}), E(" " + w(f(a).social.addIcon), 1)], 2)])]),
|
|
2081
|
-
x("div",
|
|
2169
|
+
x("div", ki, [x("label", { class: m(f(V)) }, w(f(a).social.style), 3), x("select", {
|
|
2082
2170
|
class: m(f(W)),
|
|
2083
2171
|
value: e.block.iconStyle,
|
|
2084
2172
|
onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
|
|
2085
2173
|
}, [
|
|
2086
|
-
x("option",
|
|
2087
|
-
x("option",
|
|
2088
|
-
x("option",
|
|
2089
|
-
x("option",
|
|
2090
|
-
x("option",
|
|
2091
|
-
x("option",
|
|
2092
|
-
], 42,
|
|
2093
|
-
x("div",
|
|
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", {
|
|
2094
2182
|
"data-testid": "social-tone-select",
|
|
2095
2183
|
class: m(f(W)),
|
|
2096
2184
|
value: e.block.iconTone ?? "brand",
|
|
2097
2185
|
onChange: n[1] ||= (e) => s("iconTone", e.target.value)
|
|
2098
2186
|
}, [
|
|
2099
|
-
x("option",
|
|
2100
|
-
x("option",
|
|
2101
|
-
x("option",
|
|
2102
|
-
], 42,
|
|
2103
|
-
x("div",
|
|
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, {
|
|
2104
2192
|
options: [
|
|
2105
2193
|
{
|
|
2106
2194
|
value: "small",
|
|
@@ -2118,30 +2206,30 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2118
2206
|
"model-value": e.block.iconSize,
|
|
2119
2207
|
"onUpdate:modelValue": n[2] ||= (e) => s("iconSize", e)
|
|
2120
2208
|
}, null, 8, ["options", "model-value"])]),
|
|
2121
|
-
x("div",
|
|
2209
|
+
x("div", Ui, [x("label", { class: m(f(V)) }, w(f(a).social.spacing), 3), x("div", Wi, [x("input", {
|
|
2122
2210
|
type: "number",
|
|
2123
2211
|
class: m(f(U)),
|
|
2124
2212
|
value: e.block.spacing,
|
|
2125
2213
|
min: "0",
|
|
2126
2214
|
max: "50",
|
|
2127
2215
|
onInput: n[3] ||= (e) => s("spacing", Number(e.target.value))
|
|
2128
|
-
}, null, 42,
|
|
2129
|
-
x("div",
|
|
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, {
|
|
2130
2218
|
options: [
|
|
2131
2219
|
{
|
|
2132
2220
|
value: "left",
|
|
2133
2221
|
label: f(a).title.alignLeft,
|
|
2134
|
-
icon: f(
|
|
2222
|
+
icon: f(z)
|
|
2135
2223
|
},
|
|
2136
2224
|
{
|
|
2137
2225
|
value: "center",
|
|
2138
2226
|
label: f(a).title.alignCenter,
|
|
2139
|
-
icon: f(
|
|
2227
|
+
icon: f(Le)
|
|
2140
2228
|
},
|
|
2141
2229
|
{
|
|
2142
2230
|
value: "right",
|
|
2143
2231
|
label: f(a).title.alignRight,
|
|
2144
|
-
icon: f(
|
|
2232
|
+
icon: f(Ee)
|
|
2145
2233
|
}
|
|
2146
2234
|
],
|
|
2147
2235
|
"model-value": e.block.align,
|
|
@@ -2149,22 +2237,22 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2149
2237
|
}, null, 8, ["options", "model-value"])])
|
|
2150
2238
|
], 64));
|
|
2151
2239
|
}
|
|
2152
|
-
}),
|
|
2240
|
+
}), Ji = { class: "tpl:mb-3.5" }, Yi = { class: "tpl:flex tpl:items-stretch" }, Xi = ["value"], Zi = ["value"], Qi = /* @__PURE__ */ l({
|
|
2153
2241
|
__name: "SpacerToolbar",
|
|
2154
2242
|
props: { block: {} },
|
|
2155
2243
|
emits: ["update"],
|
|
2156
2244
|
setup(e, { emit: t }) {
|
|
2157
2245
|
let n = t, { t: r } = L();
|
|
2158
|
-
return (t, i) => (o(), g("div",
|
|
2246
|
+
return (t, i) => (o(), g("div", Ji, [
|
|
2159
2247
|
x("label", { class: m(f(V)) }, w(f(r).spacer.height), 3),
|
|
2160
|
-
x("div",
|
|
2248
|
+
x("div", Yi, [x("input", {
|
|
2161
2249
|
type: "number",
|
|
2162
2250
|
class: m(f(U)),
|
|
2163
2251
|
value: e.block.height,
|
|
2164
2252
|
min: "10",
|
|
2165
2253
|
max: "100",
|
|
2166
2254
|
onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2167
|
-
}, null, 42,
|
|
2255
|
+
}, null, 42, Xi), x("span", { class: m(f(H)) }, "px", 2)]),
|
|
2168
2256
|
x("input", {
|
|
2169
2257
|
type: "range",
|
|
2170
2258
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
@@ -2172,13 +2260,13 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2172
2260
|
min: "10",
|
|
2173
2261
|
max: "100",
|
|
2174
2262
|
onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2175
|
-
}, null, 40,
|
|
2263
|
+
}, null, 40, Zi)
|
|
2176
2264
|
]));
|
|
2177
2265
|
}
|
|
2178
|
-
}),
|
|
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 = {
|
|
2179
2267
|
key: 0,
|
|
2180
2268
|
class: "tpl:mb-3.5"
|
|
2181
|
-
},
|
|
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({
|
|
2182
2270
|
__name: "TableToolbar",
|
|
2183
2271
|
props: {
|
|
2184
2272
|
block: {},
|
|
@@ -2192,9 +2280,9 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2192
2280
|
}
|
|
2193
2281
|
function l() {
|
|
2194
2282
|
let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
|
|
2195
|
-
id:
|
|
2283
|
+
id: A(),
|
|
2196
2284
|
cells: Array.from({ length: e }, () => ({
|
|
2197
|
-
id:
|
|
2285
|
+
id: A(),
|
|
2198
2286
|
content: ""
|
|
2199
2287
|
}))
|
|
2200
2288
|
};
|
|
@@ -2207,7 +2295,7 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2207
2295
|
let e = n.block.rows.map((e) => ({
|
|
2208
2296
|
...e,
|
|
2209
2297
|
cells: [...e.cells, {
|
|
2210
|
-
id:
|
|
2298
|
+
id: A(),
|
|
2211
2299
|
content: ""
|
|
2212
2300
|
}]
|
|
2213
2301
|
}));
|
|
@@ -2221,7 +2309,7 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2221
2309
|
i("update", { rows: t });
|
|
2222
2310
|
}
|
|
2223
2311
|
return (t, n) => (o(), g(C, null, [
|
|
2224
|
-
x("div",
|
|
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, [
|
|
2225
2313
|
x("button", {
|
|
2226
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",
|
|
2227
2315
|
disabled: e.block.rows.length <= 1,
|
|
@@ -2229,8 +2317,8 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2229
2317
|
}, [p(f(B), {
|
|
2230
2318
|
size: 12,
|
|
2231
2319
|
"stroke-width": 2
|
|
2232
|
-
})], 8,
|
|
2233
|
-
x("span",
|
|
2320
|
+
})], 8, ia),
|
|
2321
|
+
x("span", aa, w(e.block.rows.length), 1),
|
|
2234
2322
|
x("button", {
|
|
2235
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)]",
|
|
2236
2324
|
onClick: l
|
|
@@ -2238,7 +2326,7 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2238
2326
|
size: 12,
|
|
2239
2327
|
"stroke-width": 2
|
|
2240
2328
|
})])
|
|
2241
|
-
])]), x("div",
|
|
2329
|
+
])]), x("div", oa, [x("span", sa, w(f(a).table.columns), 1), x("div", ca, [
|
|
2242
2330
|
x("button", {
|
|
2243
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",
|
|
2244
2332
|
disabled: s.value <= 1,
|
|
@@ -2246,8 +2334,8 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2246
2334
|
}, [p(f(B), {
|
|
2247
2335
|
size: 12,
|
|
2248
2336
|
"stroke-width": 2
|
|
2249
|
-
})], 8,
|
|
2250
|
-
x("span",
|
|
2337
|
+
})], 8, la),
|
|
2338
|
+
x("span", ua, w(s.value), 1),
|
|
2251
2339
|
x("button", {
|
|
2252
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)]",
|
|
2253
2341
|
onClick: d
|
|
@@ -2256,15 +2344,15 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2256
2344
|
"stroke-width": 2
|
|
2257
2345
|
})])
|
|
2258
2346
|
])])])]),
|
|
2259
|
-
x("div",
|
|
2347
|
+
x("div", da, [p(K, {
|
|
2260
2348
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
2261
2349
|
"model-value": e.block.hasHeaderRow,
|
|
2262
2350
|
label: f(a).table.hasHeaderRow,
|
|
2263
2351
|
"onUpdate:modelValue": n[2] ||= (e) => c("hasHeaderRow", e)
|
|
2264
2352
|
}, null, 8, ["model-value", "label"])]),
|
|
2265
|
-
e.block.hasHeaderRow ? (o(), g("div",
|
|
2353
|
+
e.block.hasHeaderRow ? (o(), g("div", fa, [x("label", { class: m(f(V)) }, w(f(a).table.headerBackgroundColor), 3), p(G, {
|
|
2266
2354
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
2267
|
-
"seed-color": f(
|
|
2355
|
+
"seed-color": f(Ue),
|
|
2268
2356
|
placeholder: f(a).table.noHeaderBg,
|
|
2269
2357
|
"onUpdate:modelValue": n[3] ||= (e) => c("headerBackgroundColor", e || null)
|
|
2270
2358
|
}, null, 8, [
|
|
@@ -2272,62 +2360,62 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2272
2360
|
"seed-color",
|
|
2273
2361
|
"placeholder"
|
|
2274
2362
|
])])) : _("", !0),
|
|
2275
|
-
x("div",
|
|
2363
|
+
x("div", pa, [x("label", { class: m(f(V)) }, w(f(a).table.borderColor), 3), p(G, {
|
|
2276
2364
|
"model-value": e.block.borderColor,
|
|
2277
2365
|
"onUpdate:modelValue": n[4] ||= (e) => c("borderColor", e)
|
|
2278
2366
|
}, null, 8, ["model-value"])]),
|
|
2279
|
-
x("div",
|
|
2367
|
+
x("div", ma, [x("label", { class: m(f(V)) }, w(f(a).table.borderWidth), 3), x("div", ha, [x("input", {
|
|
2280
2368
|
type: "number",
|
|
2281
2369
|
class: m(f(U)),
|
|
2282
2370
|
value: e.block.borderWidth,
|
|
2283
2371
|
min: "0",
|
|
2284
2372
|
max: "10",
|
|
2285
2373
|
onInput: n[5] ||= (e) => c("borderWidth", Number(e.target.value))
|
|
2286
|
-
}, null, 42,
|
|
2287
|
-
x("div",
|
|
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", {
|
|
2288
2376
|
type: "number",
|
|
2289
2377
|
class: m(f(U)),
|
|
2290
2378
|
value: e.block.cellPadding,
|
|
2291
2379
|
min: "0",
|
|
2292
2380
|
max: "30",
|
|
2293
2381
|
onInput: n[6] ||= (e) => c("cellPadding", Number(e.target.value))
|
|
2294
|
-
}, null, 42,
|
|
2295
|
-
x("div",
|
|
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", {
|
|
2296
2384
|
class: m(f(W)),
|
|
2297
|
-
value: f(
|
|
2385
|
+
value: f(Je)(e.block.fontFamily),
|
|
2298
2386
|
onChange: n[7] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
2299
|
-
}, [x("option",
|
|
2387
|
+
}, [x("option", Sa, w(f(a).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
|
|
2300
2388
|
key: e.value,
|
|
2301
2389
|
value: e.value
|
|
2302
|
-
}, w(e.label), 9,
|
|
2303
|
-
x("div",
|
|
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", {
|
|
2304
2392
|
type: "number",
|
|
2305
2393
|
class: m(f(U)),
|
|
2306
2394
|
value: e.block.fontSize,
|
|
2307
2395
|
min: "10",
|
|
2308
2396
|
max: "32",
|
|
2309
2397
|
onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
2310
|
-
}, null, 42,
|
|
2311
|
-
x("div",
|
|
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, {
|
|
2312
2400
|
"model-value": e.block.color ?? "",
|
|
2313
2401
|
"onUpdate:modelValue": n[9] ||= (e) => c("color", e || void 0)
|
|
2314
2402
|
}, null, 8, ["model-value"])]),
|
|
2315
|
-
x("div",
|
|
2403
|
+
x("div", Oa, [x("label", { class: m(f(V)) }, w(f(a).table.textAlign), 3), p(J, {
|
|
2316
2404
|
options: [
|
|
2317
2405
|
{
|
|
2318
2406
|
value: "left",
|
|
2319
2407
|
label: f(a).title.alignLeft,
|
|
2320
|
-
icon: f(
|
|
2408
|
+
icon: f(z)
|
|
2321
2409
|
},
|
|
2322
2410
|
{
|
|
2323
2411
|
value: "center",
|
|
2324
2412
|
label: f(a).title.alignCenter,
|
|
2325
|
-
icon: f(
|
|
2413
|
+
icon: f(Le)
|
|
2326
2414
|
},
|
|
2327
2415
|
{
|
|
2328
2416
|
value: "right",
|
|
2329
2417
|
label: f(a).title.alignRight,
|
|
2330
|
-
icon: f(
|
|
2418
|
+
icon: f(Ee)
|
|
2331
2419
|
}
|
|
2332
2420
|
],
|
|
2333
2421
|
"model-value": e.block.textAlign,
|
|
@@ -2335,7 +2423,7 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2335
2423
|
}, null, 8, ["options", "model-value"])])
|
|
2336
2424
|
], 64));
|
|
2337
2425
|
}
|
|
2338
|
-
}),
|
|
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({
|
|
2339
2427
|
__name: "TitleToolbar",
|
|
2340
2428
|
props: {
|
|
2341
2429
|
block: {},
|
|
@@ -2348,44 +2436,44 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2348
2436
|
n("update", { [e]: t });
|
|
2349
2437
|
}
|
|
2350
2438
|
return (t, n) => (o(), g(C, null, [
|
|
2351
|
-
x("div",
|
|
2439
|
+
x("div", Aa, [x("label", { class: m(f(V)) }, w(f(i).title.level), 3), x("select", {
|
|
2352
2440
|
class: m(f(W)),
|
|
2353
2441
|
value: e.block.level,
|
|
2354
2442
|
onChange: n[0] ||= (e) => a("level", Number(e.target.value))
|
|
2355
2443
|
}, [
|
|
2356
|
-
x("option",
|
|
2357
|
-
x("option",
|
|
2358
|
-
x("option",
|
|
2359
|
-
x("option",
|
|
2360
|
-
], 42,
|
|
2361
|
-
x("div",
|
|
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", {
|
|
2362
2450
|
class: m(f(W)),
|
|
2363
|
-
value: f(
|
|
2451
|
+
value: f(Je)(e.block.fontFamily),
|
|
2364
2452
|
onChange: n[1] ||= (e) => a("fontFamily", e.target.value || void 0)
|
|
2365
|
-
}, [x("option",
|
|
2453
|
+
}, [x("option", Ra, w(f(i).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
|
|
2366
2454
|
key: e.value,
|
|
2367
2455
|
value: e.value
|
|
2368
|
-
}, w(e.label), 9,
|
|
2369
|
-
x("div",
|
|
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, {
|
|
2370
2458
|
"model-value": e.block.color ?? "",
|
|
2371
2459
|
"onUpdate:modelValue": n[2] ||= (e) => a("color", e || void 0)
|
|
2372
2460
|
}, null, 8, ["model-value"])]),
|
|
2373
|
-
x("div",
|
|
2461
|
+
x("div", Va, [x("label", { class: m(f(V)) }, w(f(i).title.align), 3), p(J, {
|
|
2374
2462
|
options: [
|
|
2375
2463
|
{
|
|
2376
2464
|
value: "left",
|
|
2377
2465
|
label: f(i).title.alignLeft,
|
|
2378
|
-
icon: f(
|
|
2466
|
+
icon: f(z)
|
|
2379
2467
|
},
|
|
2380
2468
|
{
|
|
2381
2469
|
value: "center",
|
|
2382
2470
|
label: f(i).title.alignCenter,
|
|
2383
|
-
icon: f(
|
|
2471
|
+
icon: f(Le)
|
|
2384
2472
|
},
|
|
2385
2473
|
{
|
|
2386
2474
|
value: "right",
|
|
2387
2475
|
label: f(i).title.alignRight,
|
|
2388
|
-
icon: f(
|
|
2476
|
+
icon: f(Ee)
|
|
2389
2477
|
}
|
|
2390
2478
|
],
|
|
2391
2479
|
"model-value": e.block.textAlign,
|
|
@@ -2393,77 +2481,97 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2393
2481
|
}, null, 8, ["options", "model-value"])])
|
|
2394
2482
|
], 64));
|
|
2395
2483
|
}
|
|
2396
|
-
}),
|
|
2484
|
+
}), Ua = { class: "tpl:mb-3.5" }, Wa = {
|
|
2397
2485
|
key: 0,
|
|
2398
2486
|
class: "tpl:mb-3.5"
|
|
2399
|
-
},
|
|
2487
|
+
}, Ga = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ka = [
|
|
2400
2488
|
"value",
|
|
2401
2489
|
"placeholder",
|
|
2402
2490
|
"title"
|
|
2403
|
-
],
|
|
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 = {
|
|
2404
2495
|
key: 0,
|
|
2405
2496
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2406
|
-
},
|
|
2497
|
+
}, so = ["value"], co = { class: "tpl:mb-3.5" }, lo = 350, uo = 200, fo = /* @__PURE__ */ l({
|
|
2407
2498
|
__name: "VideoToolbar",
|
|
2408
2499
|
props: { block: {} },
|
|
2409
2500
|
emits: ["update"],
|
|
2410
2501
|
setup(e, { emit: t }) {
|
|
2411
|
-
let r = e, i = t, { t: a } = L(), c = n(
|
|
2412
|
-
|
|
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;
|
|
2413
2511
|
}, 1e3, { immediate: !1 });
|
|
2414
|
-
function
|
|
2512
|
+
function k(e, t) {
|
|
2415
2513
|
i("update", { [e]: t });
|
|
2416
2514
|
}
|
|
2417
|
-
function
|
|
2418
|
-
|
|
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));
|
|
2419
2520
|
}
|
|
2420
|
-
function
|
|
2521
|
+
function j(e) {
|
|
2421
2522
|
let t = Number(e);
|
|
2422
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
2523
|
+
!Number.isFinite(t) || t <= 0 || k("width", t);
|
|
2423
2524
|
}
|
|
2424
|
-
|
|
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() {
|
|
2425
2533
|
let e = await c?.({ accept: ["images"] });
|
|
2426
|
-
u.alive && e && (
|
|
2534
|
+
u.alive && e && (k("thumbnailUrl", e.url), D.value = !0, O());
|
|
2427
2535
|
}
|
|
2428
2536
|
return (t, n) => (o(), g(C, null, [
|
|
2429
|
-
x("div",
|
|
2537
|
+
x("div", Ua, [
|
|
2430
2538
|
x("label", { class: m(f(V)) }, w(f(a).video.videoUrl), 3),
|
|
2431
2539
|
p(q, {
|
|
2432
2540
|
"model-value": e.block.url,
|
|
2433
2541
|
type: "url",
|
|
2434
2542
|
placeholder: f(a).video.videoUrlPlaceholder,
|
|
2435
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
2543
|
+
"onUpdate:modelValue": n[0] ||= (e) => k("url", e)
|
|
2436
2544
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2437
2545
|
e.block.url ? (o(), y(K, {
|
|
2438
2546
|
key: 0,
|
|
2439
2547
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2440
2548
|
"model-value": e.block.openInNewTab ?? !1,
|
|
2441
2549
|
label: f(a).video.openInNewTab,
|
|
2442
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
2550
|
+
"onUpdate:modelValue": n[1] ||= (e) => k("openInNewTab", e)
|
|
2443
2551
|
}, null, 8, ["model-value", "label"])) : _("", !0)
|
|
2444
2552
|
]),
|
|
2445
|
-
|
|
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", {
|
|
2446
2554
|
type: "url",
|
|
2447
2555
|
class: m(f(W)),
|
|
2448
2556
|
value: e.block.placeholderUrl || "",
|
|
2449
2557
|
placeholder: f(a).video.placeholderUrlPlaceholder,
|
|
2450
2558
|
title: f(a).video.placeholderUrlTooltip,
|
|
2451
|
-
onInput: n[2] ||= (e) =>
|
|
2452
|
-
}, null, 42,
|
|
2453
|
-
x("div",
|
|
2454
|
-
x("label", { class: m(f(V)) }, [E(w(f(a).video.customThumbnail) + " ", 1), x("span",
|
|
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),
|
|
2455
2563
|
p(q, {
|
|
2456
2564
|
"model-value": e.block.thumbnailUrl,
|
|
2457
2565
|
type: "url",
|
|
2458
2566
|
placeholder: f(a).video.thumbnailPlaceholder,
|
|
2459
|
-
pulse:
|
|
2460
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
2567
|
+
pulse: D.value,
|
|
2568
|
+
"onUpdate:modelValue": n[3] ||= (e) => k("thumbnailUrl", e)
|
|
2461
2569
|
}, null, 8, [
|
|
2462
2570
|
"model-value",
|
|
2463
2571
|
"placeholder",
|
|
2464
2572
|
"pulse"
|
|
2465
2573
|
]),
|
|
2466
|
-
|
|
2574
|
+
v.value ? (o(), g("button", {
|
|
2467
2575
|
key: 0,
|
|
2468
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",
|
|
2469
2577
|
style: {
|
|
@@ -2471,46 +2579,59 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2471
2579
|
color: "var(--tpl-primary)",
|
|
2472
2580
|
"background-color": "var(--tpl-bg)"
|
|
2473
2581
|
},
|
|
2474
|
-
onClick:
|
|
2475
|
-
}, [p(f(
|
|
2582
|
+
onClick: ee
|
|
2583
|
+
}, [p(f(Fe), {
|
|
2476
2584
|
size: 14,
|
|
2477
2585
|
"stroke-width": 1.5
|
|
2478
2586
|
}), E(" " + w(f(a).image.browseMedia), 1)])) : _("", !0)
|
|
2479
2587
|
]),
|
|
2480
|
-
x("div",
|
|
2588
|
+
x("div", Ya, [x("label", { class: m(f(V)) }, w(f(a).video.altText), 3), p(q, {
|
|
2481
2589
|
"model-value": e.block.alt,
|
|
2482
2590
|
type: "text",
|
|
2483
2591
|
placeholder: f(a).video.altTextPlaceholder,
|
|
2484
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
2592
|
+
"onUpdate:modelValue": n[4] ||= (e) => k("alt", e)
|
|
2485
2593
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
2486
|
-
x("div",
|
|
2487
|
-
class: m(f(
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
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, [
|
|
2497
2618
|
x("label", { class: m(f(V)) }, w(f(a).video.height), 3),
|
|
2498
2619
|
x("select", {
|
|
2499
2620
|
class: m(f(W)),
|
|
2500
2621
|
"data-testid": "video-height-mode",
|
|
2501
|
-
value:
|
|
2502
|
-
onChange: n[
|
|
2503
|
-
}, [x("option",
|
|
2504
|
-
|
|
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", {
|
|
2505
2626
|
type: "number",
|
|
2506
2627
|
"data-testid": "video-height-input",
|
|
2507
2628
|
class: m(f(U)),
|
|
2508
2629
|
value: e.block.height,
|
|
2509
2630
|
min: "20",
|
|
2510
|
-
onInput: n[
|
|
2511
|
-
}, null, 42,
|
|
2631
|
+
onInput: n[8] ||= (e) => N(e.target.value)
|
|
2632
|
+
}, null, 42, so), x("span", { class: m(f(H)) }, "px", 2)])) : _("", !0)
|
|
2512
2633
|
]),
|
|
2513
|
-
x("div",
|
|
2634
|
+
x("div", co, [x("label", { class: m(f(V)) }, w(f(a).title.align), 3), p(J, {
|
|
2514
2635
|
options: [
|
|
2515
2636
|
{
|
|
2516
2637
|
value: "left",
|
|
@@ -2526,11 +2647,11 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2526
2647
|
}
|
|
2527
2648
|
],
|
|
2528
2649
|
"model-value": e.block.align,
|
|
2529
|
-
"onUpdate:modelValue": n[
|
|
2650
|
+
"onUpdate:modelValue": n[9] ||= (e) => k("align", e)
|
|
2530
2651
|
}, null, 8, ["options", "model-value"])])
|
|
2531
2652
|
], 64));
|
|
2532
2653
|
}
|
|
2533
|
-
}),
|
|
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({
|
|
2534
2655
|
__name: "Toolbar",
|
|
2535
2656
|
props: { block: {} },
|
|
2536
2657
|
emits: [
|
|
@@ -2539,9 +2660,9 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2539
2660
|
"duplicate"
|
|
2540
2661
|
],
|
|
2541
2662
|
setup(e, { emit: t }) {
|
|
2542
|
-
let r = T(() => import("./CountdownToolbar-
|
|
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(() => {
|
|
2543
2664
|
if (m.value) return u.find((e) => e.type === i.block.customType);
|
|
2544
|
-
}), b = h(() => m.value ? v.value?.name ?? 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));
|
|
2545
2666
|
function C(e) {
|
|
2546
2667
|
a("update", e);
|
|
2547
2668
|
}
|
|
@@ -2549,82 +2670,82 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2549
2670
|
"data-testid": "block-toolbar",
|
|
2550
2671
|
"aria-label": f(s).landmarks.blockToolbar,
|
|
2551
2672
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
2552
|
-
}, [x("div",
|
|
2673
|
+
}, [x("div", mo, [x("div", ho, [f(Ge)[d.value] ? (o(), y(c(f(Ge)[d.value]), {
|
|
2553
2674
|
key: 0,
|
|
2554
2675
|
size: 16,
|
|
2555
2676
|
"stroke-width": 1.5
|
|
2556
|
-
})) : m.value ? (o(), y(f(
|
|
2677
|
+
})) : m.value ? (o(), y(f(Me), {
|
|
2557
2678
|
key: 1,
|
|
2558
2679
|
size: 16,
|
|
2559
2680
|
"stroke-width": 1.5
|
|
2560
|
-
})) : _("", !0), x("h3",
|
|
2681
|
+
})) : _("", !0), x("h3", go, w(b.value), 1)]), x("div", _o, [x("button", {
|
|
2561
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)]",
|
|
2562
2683
|
title: f(s).toolbar.duplicate,
|
|
2563
2684
|
onClick: n[0] ||= (e) => a("duplicate")
|
|
2564
|
-
}, [p(f(
|
|
2685
|
+
}, [p(f(Se), {
|
|
2565
2686
|
size: 14,
|
|
2566
2687
|
"stroke-width": 2
|
|
2567
|
-
})], 8,
|
|
2688
|
+
})], 8, vo), x("button", {
|
|
2568
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)]",
|
|
2569
2690
|
title: f(s).toolbar.delete,
|
|
2570
2691
|
onClick: n[1] ||= (e) => a("delete")
|
|
2571
|
-
}, [p(f(
|
|
2692
|
+
}, [p(f(ke), {
|
|
2572
2693
|
size: 14,
|
|
2573
2694
|
"stroke-width": 2
|
|
2574
|
-
})], 8,
|
|
2695
|
+
})], 8, yo)])]), x("div", bo, [m.value ? (o(), y(_r, {
|
|
2575
2696
|
key: 0,
|
|
2576
2697
|
block: e.block,
|
|
2577
2698
|
onUpdateFieldValues: n[2] ||= (e) => a("update", { fieldValues: e }),
|
|
2578
2699
|
onUpdateDataSourceFetched: n[3] ||= (e) => a("update", { dataSourceFetched: e })
|
|
2579
|
-
}, null, 8, ["block"])) : d.value === "section" ? (o(), y(
|
|
2700
|
+
}, null, 8, ["block"])) : d.value === "section" ? (o(), y(Si, {
|
|
2580
2701
|
key: 1,
|
|
2581
2702
|
block: e.block,
|
|
2582
2703
|
onUpdate: C
|
|
2583
|
-
}, null, 8, ["block"])) : d.value === "title" ? (o(), y(
|
|
2704
|
+
}, null, 8, ["block"])) : d.value === "title" ? (o(), y(Ha, {
|
|
2584
2705
|
key: 2,
|
|
2585
2706
|
block: e.block,
|
|
2586
2707
|
"font-families": S.value,
|
|
2587
2708
|
onUpdate: C
|
|
2588
|
-
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (o(), y(
|
|
2709
|
+
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (o(), y(fi, {
|
|
2589
2710
|
key: 3,
|
|
2590
2711
|
block: e.block,
|
|
2591
2712
|
onUpdate: C
|
|
2592
|
-
}, null, 8, ["block"])) : d.value === "image" ? (o(), y(
|
|
2713
|
+
}, null, 8, ["block"])) : d.value === "image" ? (o(), y(Xr, {
|
|
2593
2714
|
key: 4,
|
|
2594
2715
|
block: e.block,
|
|
2595
2716
|
onUpdate: C
|
|
2596
|
-
}, null, 8, ["block"])) : d.value === "video" ? (o(), y(
|
|
2717
|
+
}, null, 8, ["block"])) : d.value === "video" ? (o(), y(fo, {
|
|
2597
2718
|
key: 5,
|
|
2598
2719
|
block: e.block,
|
|
2599
2720
|
onUpdate: C
|
|
2600
|
-
}, null, 8, ["block"])) : d.value === "button" ? (o(), y(
|
|
2721
|
+
}, null, 8, ["block"])) : d.value === "button" ? (o(), y(Pt, {
|
|
2601
2722
|
key: 6,
|
|
2602
2723
|
block: e.block,
|
|
2603
2724
|
"font-families": S.value,
|
|
2604
2725
|
onUpdate: C
|
|
2605
|
-
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (o(), y(
|
|
2726
|
+
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (o(), y(Cr, {
|
|
2606
2727
|
key: 7,
|
|
2607
2728
|
block: e.block,
|
|
2608
2729
|
onUpdate: C
|
|
2609
|
-
}, null, 8, ["block"])) : d.value === "social" ? (o(), y(
|
|
2730
|
+
}, null, 8, ["block"])) : d.value === "social" ? (o(), y(qi, {
|
|
2610
2731
|
key: 8,
|
|
2611
2732
|
block: e.block,
|
|
2612
2733
|
onUpdate: C
|
|
2613
|
-
}, null, 8, ["block"])) : d.value === "menu" ? (o(), y(
|
|
2734
|
+
}, null, 8, ["block"])) : d.value === "menu" ? (o(), y(ci, {
|
|
2614
2735
|
key: 9,
|
|
2615
2736
|
block: e.block,
|
|
2616
2737
|
"font-families": S.value,
|
|
2617
2738
|
onUpdate: C
|
|
2618
|
-
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (o(), y(
|
|
2739
|
+
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (o(), y(ka, {
|
|
2619
2740
|
key: 10,
|
|
2620
2741
|
block: e.block,
|
|
2621
2742
|
"font-families": S.value,
|
|
2622
2743
|
onUpdate: C
|
|
2623
|
-
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (o(), y(
|
|
2744
|
+
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (o(), y(Qi, {
|
|
2624
2745
|
key: 11,
|
|
2625
2746
|
block: e.block,
|
|
2626
2747
|
onUpdate: C
|
|
2627
|
-
}, null, 8, ["block"])) : d.value === "html" ? (o(), y(
|
|
2748
|
+
}, null, 8, ["block"])) : d.value === "html" ? (o(), y(Dr, {
|
|
2628
2749
|
key: 12,
|
|
2629
2750
|
block: e.block,
|
|
2630
2751
|
onUpdate: C
|
|
@@ -2633,14 +2754,14 @@ var ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = ["value"], di = {
|
|
|
2633
2754
|
block: e.block,
|
|
2634
2755
|
"font-families": S.value,
|
|
2635
2756
|
onUpdate: C
|
|
2636
|
-
}, null, 8, ["block", "font-families"])) : _("", !0), p(
|
|
2757
|
+
}, null, 8, ["block", "font-families"])) : _("", !0), p(Nn, {
|
|
2637
2758
|
block: e.block,
|
|
2638
2759
|
"is-first-section": d.value === "paragraph",
|
|
2639
2760
|
onUpdate: C
|
|
2640
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
2761
|
+
}, null, 8, ["block", "is-first-section"])])], 8, po));
|
|
2641
2762
|
}
|
|
2642
|
-
}),
|
|
2763
|
+
}), So = /* @__PURE__ */ e({ default: () => Co }), Co = /*#__PURE__*/ Re(xo, [["__scopeId", "data-v-e2d2c22f"]]);
|
|
2643
2764
|
//#endregion
|
|
2644
|
-
export {
|
|
2765
|
+
export { Co as default, J as i, $ as n, Y as r, So as t };
|
|
2645
2766
|
|
|
2646
|
-
//# sourceMappingURL=Toolbar-
|
|
2767
|
+
//# sourceMappingURL=Toolbar-Ik54UO_-.js.map
|