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