@templatical/editor 0.48.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-DxPHFNoT.js → AiChatSidebar-CdjTb9ej.js} +14 -14
- package/dist/{AiFeatureMenu-C8GVqu1d.js → AiFeatureMenu-DKm7VYCs.js} +7 -7
- package/dist/{BlockIssueBadge-BShkuJis.js → BlockIssueBadge-BdpJwim0.js} +5 -5
- package/dist/{BlockPreviewCanvas-tzAtDkXH.js → BlockPreviewCanvas-D_sowkf0.js} +8 -8
- package/dist/CloudHeaderExtras-CI8RR9hG.js +55 -0
- package/dist/{CloudPanels-Dgw7tb4R.js → CloudPanels-1hwFiJ0G.js} +39 -68
- package/dist/CollaborationNotices-BWpKzueF.js +73 -0
- package/dist/CollaboratorBar-D87phJsw.js +123 -0
- package/dist/{CommentsPanel-DiWzYtnZ.js → CommentsPanel-BUvUzO3T.js} +2 -2
- package/dist/{CommentsSidebar-BOqj16Al.js → CommentsSidebar-J65znlrH.js} +14 -14
- package/dist/{CountdownBlock-zx39Dyby.js → CountdownBlock-DPQXWRvU.js} +4 -4
- package/dist/{CountdownToolbar-C4y3Ft7H.js → CountdownToolbar-CLMIwfK7.js} +7 -7
- package/dist/{DesignReferenceSidebar-BWAi3eQQ.js → DesignReferenceSidebar-BTwCFgz8.js} +13 -13
- package/dist/{IssuesPanel-C-x3I012.js → IssuesPanel-DeeVsfG7.js} +8 -8
- package/dist/{LoadingTrack-6XsqodoY.js → LoadingTrack-BXOptf5g.js} +1 -1
- package/dist/{LogicTagInsertButton-B1_Wy0AN.js → LogicTagInsertButton-CR5E4jSG.js} +17 -17
- package/dist/{MediaEditModal-ByOvznRC.js → MediaEditModal-C_wxoUMG.js} +3 -3
- package/dist/{MediaPanels-9mDBv4aL.js → MediaPanels-BVXDkqtH.js} +2 -2
- package/dist/{MergeTagInput-fOewuF27.js → MergeTagInput-BEw_r0PJ.js} +3 -3
- package/dist/{MergeTagModeToggle-BXamLcv7.js → MergeTagModeToggle-CJTpFmVd.js} +7 -7
- package/dist/{ParagraphEditor-BVjOwwHx.js → ParagraphEditor-zLV44z-R.js} +19 -19
- package/dist/{RestoreVersionDialog-BEKXx9xk.js → RestoreVersionDialog-BaDpy3cL.js} +6 -6
- package/dist/{RichTextEditorContent-D7kp7iig.js → RichTextEditorContent-CsvniFlI.js} +9 -9
- package/dist/{SaveBlockDialog-SJu0lecx.js → SaveBlockDialog-DzWURF_e.js} +12 -12
- package/dist/{SavedBlocksBrowserModal-DbmIS5uK.js → SavedBlocksBrowserModal-B8DCFW7t.js} +14 -14
- package/dist/{SavedBlocksPanels-Dr5Fxx9Z.js → SavedBlocksPanels-B3Af8ns2.js} +2 -2
- package/dist/{SavedBlocksPickBar-DnEWBZJy.js → SavedBlocksPickBar-Dj11-Lqp.js} +5 -5
- package/dist/{TemplateScoringPanel-ynbGl-sr.js → TemplateScoringPanel-Ba9sgvjS.js} +16 -16
- package/dist/{TemplateSettings-Bi01S3H3.js → TemplateSettings-Cu5X9DgA.js} +11 -11
- package/dist/{TestEmailModal-CbRY8HQx.js → TestEmailModal-BeRYV3eg.js} +14 -14
- package/dist/{TestEmailPanel-NAOmt3xi.js → TestEmailPanel-B8c3fQi2.js} +2 -2
- package/dist/{TitleEditor-Cc3DHbuN.js → TitleEditor-CvpNUoAp.js} +11 -11
- package/dist/{ToggleSwitch-Ozc7YU38.js → ToggleSwitch-DHweVJOr.js} +2 -2
- package/dist/{Toolbar-B-2lO0I8.js → Toolbar-BadDSkkF.js} +426 -429
- package/dist/{TplModal-Bz4-IZ9R.js → TplModal-BZgi9Tes.js} +5 -5
- package/dist/{VersionHistoryMenu-CjV1d1zk.js → VersionHistoryMenu-BRlcQ8wX.js} +10 -10
- package/dist/{VersionHistoryPanels-BtwxrKJn.js → VersionHistoryPanels-DGkllN3a.js} +2 -2
- package/dist/{VersionPreviewBanner-BLAei1kj.js → VersionPreviewBanner-F-811aps.js} +4 -4
- package/dist/{WrapperBlock-D0qgNqjD.js → WrapperBlock-DiiaxpMb.js} +5 -5
- package/dist/{blockTypeIcons-CEDZytqP.js → blockTypeIcons-CayLluou.js} +2 -2
- package/dist/bundle-stats.json +7 -7
- package/dist/{ca-CbNzJM3I.js → ca-DSJwJ5ov.js} +23 -1
- package/dist/cdn/chunks/{AiChatSidebar-Dk0rJBQN.js → AiChatSidebar-yXJ85Zcg.js} +8 -8
- package/dist/cdn/chunks/{AiChatSidebar-Dk0rJBQN.js.map → AiChatSidebar-yXJ85Zcg.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-B7b0w8ZS.js → AiFeatureMenu-4ydjrhsQ.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-B7b0w8ZS.js.map → AiFeatureMenu-4ydjrhsQ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-C7sdnkrF.js → BlockIssueBadge-D1VBS_6x.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-C7sdnkrF.js.map → BlockIssueBadge-D1VBS_6x.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-vK5tBazr.js → BlockPreviewCanvas-m2tWRyWv.js} +8 -8
- package/dist/cdn/chunks/{BlockPreviewCanvas-vK5tBazr.js.map → BlockPreviewCanvas-m2tWRyWv.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-B4fhuwc_.js → CloudHeaderExtras-DEkRww7n.js} +16 -20
- package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +1 -0
- package/dist/cdn/chunks/{CloudPanels-awqHfJqC.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-CbzxwsyI.js → CommentsPanel-R8YLLO3v.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-CbzxwsyI.js.map → CommentsPanel-R8YLLO3v.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-DWPHZuQm.js → CommentsSidebar-96NZHVq3.js} +5 -5
- package/dist/cdn/chunks/{CommentsSidebar-DWPHZuQm.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-Cqg8FUH-.js → CountdownToolbar-tmiTPEXm.js} +8 -8
- package/dist/cdn/chunks/{CountdownToolbar-Cqg8FUH-.js.map → CountdownToolbar-tmiTPEXm.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-BW9cHnA9.js → DesignReferenceSidebar-D14IIu_P.js} +39 -39
- package/dist/cdn/chunks/{DesignReferenceSidebar-BW9cHnA9.js.map → DesignReferenceSidebar-D14IIu_P.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-cXf9ywA4.js → IssuesPanel-BoPiCLGc.js} +8 -8
- package/dist/cdn/chunks/{IssuesPanel-cXf9ywA4.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-BMB9vShs.js → LogicTagInsertButton-BJ2t2vxC.js} +20 -20
- package/dist/cdn/chunks/{LogicTagInsertButton-BMB9vShs.js.map → LogicTagInsertButton-BJ2t2vxC.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-zXfcArr4.js → MediaEditModal-DD0SZ-S3.js} +3 -3
- package/dist/cdn/chunks/{MediaEditModal-zXfcArr4.js.map → MediaEditModal-DD0SZ-S3.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-Cp4XB_dH.js → MediaPanels-CkdJ_kGp.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-Cp4XB_dH.js.map → MediaPanels-CkdJ_kGp.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-DLqrA9co.js → MergeTagInput-7wXX71DH.js} +4 -4
- package/dist/cdn/chunks/{MergeTagInput-DLqrA9co.js.map → MergeTagInput-7wXX71DH.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BRiJzzn5.js → MergeTagModeToggle-r9vHH4u_.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-BRiJzzn5.js.map → MergeTagModeToggle-r9vHH4u_.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-D4aq9eeC.js → ParagraphEditor-CJQjRHXV.js} +29 -29
- package/dist/cdn/chunks/{ParagraphEditor-D4aq9eeC.js.map → ParagraphEditor-CJQjRHXV.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-BgR6RXSb.js → RestoreVersionDialog-C5cxBRKi.js} +6 -6
- package/dist/cdn/chunks/{RestoreVersionDialog-BgR6RXSb.js.map → RestoreVersionDialog-C5cxBRKi.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-C4DMAn0g.js → RichTextEditorContent-BfE7Bkge.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-C4DMAn0g.js.map → RichTextEditorContent-BfE7Bkge.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BaIsQd09.js → SaveBlockDialog-BKbjUnPM.js} +10 -10
- package/dist/cdn/chunks/{SaveBlockDialog-BaIsQd09.js.map → SaveBlockDialog-BKbjUnPM.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CtnB58p_.js → SavedBlocksBrowserModal-BMtyUrUP.js} +10 -10
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CtnB58p_.js.map → SavedBlocksBrowserModal-BMtyUrUP.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BhEOMzEQ.js → SavedBlocksPanels-s_gxi1im.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-BhEOMzEQ.js.map → SavedBlocksPanels-s_gxi1im.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-CcdqTEIp.js → SavedBlocksPickBar-B8WHk5mI.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksPickBar-CcdqTEIp.js.map → SavedBlocksPickBar-B8WHk5mI.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-BrWqJCSP.js → TemplateScoringPanel-BBPnHILC.js} +6 -6
- package/dist/cdn/chunks/{TemplateScoringPanel-BrWqJCSP.js.map → TemplateScoringPanel-BBPnHILC.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-BkkWTDHD.js → TemplateSettings-CtrzzQWl.js} +10 -10
- package/dist/cdn/chunks/{TemplateSettings-BkkWTDHD.js.map → TemplateSettings-CtrzzQWl.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-V5mwHsUV.js → TestEmailModal-DuZKYMWD.js} +13 -13
- package/dist/cdn/chunks/{TestEmailModal-V5mwHsUV.js.map → TestEmailModal-DuZKYMWD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-DxrKuctP.js → TestEmailPanel-DERaCdpG.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-DxrKuctP.js.map → TestEmailPanel-DERaCdpG.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CsZiG3TT.js → TitleEditor-CEgxjtUX.js} +14 -14
- package/dist/cdn/chunks/{TitleEditor-CsZiG3TT.js.map → TitleEditor-CEgxjtUX.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-BB-bQADJ.js → ToggleSwitch-DGQ7iRc-.js} +3 -3
- package/dist/cdn/chunks/{ToggleSwitch-BB-bQADJ.js.map → ToggleSwitch-DGQ7iRc-.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-C_x2TfFk.js → Toolbar-GFIZQHzw.js} +440 -443
- package/dist/cdn/chunks/Toolbar-GFIZQHzw.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-DC_eodTV.js → TplModal-DDrbWJcE.js} +5 -5
- package/dist/cdn/chunks/{TplModal-DC_eodTV.js.map → TplModal-DDrbWJcE.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DXnM5Df2.js → VersionHistoryMenu-MlxsUmuT.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryMenu-DXnM5Df2.js.map → VersionHistoryMenu-MlxsUmuT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-DXSqmaLS.js → VersionHistoryPanels-DVOV8QLv.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-DXSqmaLS.js.map → VersionHistoryPanels-DVOV8QLv.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-DKyN6BhO.js → VersionPreviewBanner-BQwRKc6S.js} +5 -5
- package/dist/cdn/chunks/{VersionPreviewBanner-DKyN6BhO.js.map → VersionPreviewBanner-BQwRKc6S.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-gG_Bleug.js → WrapperBlock-CFuP4R0c.js} +6 -6
- package/dist/cdn/chunks/{WrapperBlock-gG_Bleug.js.map → WrapperBlock-CFuP4R0c.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-HrMJDfVg.js → blockTypeIcons-BnAd8qsP.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-HrMJDfVg.js.map → blockTypeIcons-BnAd8qsP.js.map} +1 -1
- package/dist/cdn/chunks/{ca-CbNzJM3I.js → ca-DSJwJ5ov.js} +24 -2
- package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +1 -0
- package/dist/{cloud-B5xwm_4X.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-Vd0N4elZ.js → createCloudRuntime-DiYCJ21w.js} +127 -169
- package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +1 -0
- package/dist/{de-DMquBpZM.js → cdn/chunks/de-CBE6O79z.js} +25 -1
- 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-vEEmZ8Tu.js → editor-modal-HJBy9kLj.js} +88 -88
- package/dist/cdn/chunks/{editor-modal-vEEmZ8Tu.js.map → editor-modal-HJBy9kLj.js.map} +1 -1
- package/dist/cdn/chunks/{en-C8Mp71sO.js → en-CDexnk0p.js} +24 -2
- 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-Byq4tthI.js → cdn/chunks/es-BE42B6uN.js} +25 -1
- package/dist/cdn/chunks/es-BE42B6uN.js.map +1 -0
- package/dist/cdn/chunks/{extensions-hJ9VqzDc.js → extensions-koOuDeZS.js} +23 -23
- package/dist/cdn/chunks/{extensions-hJ9VqzDc.js.map → extensions-koOuDeZS.js.map} +1 -1
- package/dist/{fr-B3j35HEw.js → cdn/chunks/fr-DlJFPDQR.js} +25 -1
- package/dist/cdn/chunks/fr-DlJFPDQR.js.map +1 -0
- package/dist/cdn/chunks/{icons-aTYwH5-g.js → icons-CjlNV8xD.js} +46 -46
- package/dist/cdn/chunks/{icons-aTYwH5-g.js.map → icons-CjlNV8xD.js.map} +1 -1
- package/dist/{ja-D7txAuGS.js → cdn/chunks/ja-CUT8gkNI.js} +25 -1
- 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-ClJ3BY3F.js → cdn/chunks/nl-bXWqqRyS.js} +25 -1
- package/dist/cdn/chunks/nl-bXWqqRyS.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-ByfuSjtL.js → preRenderCustomBlocks-DqKbdTJ8.js} +5 -5
- package/dist/cdn/chunks/{preRenderCustomBlocks-ByfuSjtL.js.map → preRenderCustomBlocks-DqKbdTJ8.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-DibcXcmv.js → pt-BR-2_H4-wlb.js} +24 -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-DlFlC9Tt.js → src-B1e5SSYP.js} +84 -84
- package/dist/cdn/chunks/{src-DlFlC9Tt.js.map → src-B1e5SSYP.js.map} +1 -1
- package/dist/cdn/chunks/{src-dZ4D_tuP.js → src-B77z1iw4.js} +117 -117
- package/dist/cdn/chunks/src-B77z1iw4.js.map +1 -0
- package/dist/cdn/chunks/{src-DYCDeBDM.js → src-CvLTYGdO.js} +549 -315
- 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-o5Y9BuqI.js +6 -0
- 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-Bb2UcB20.js → useEditorCore-DpCFvHg_.js} +440 -419
- 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-HsyUCQtl.js → useLogicTag-X8bc5qNl.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-HsyUCQtl.js.map → useLogicTag-X8bc5qNl.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-Dg9pE85U.js → useMergeTag-DFoOexIQ.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-Dg9pE85U.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-oLcATrQ8.js → withCurrentFont-D-f61ghC.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-oLcATrQ8.js.map → withCurrentFont-D-f61ghC.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1319 -1066
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-ClwqRMgv.js → check-DQQzkmIC.js} +1 -1
- package/dist/{chevron-down-te6qn-zE.js → chevron-down-CIF4bdon.js} +1 -1
- package/dist/{chevron-right-W2hbH1FM.js → chevron-right-Cg7Xu-ev.js} +1 -1
- package/dist/{chevron-up-Bf5Zo7o4.js → chevron-up-Csu7ISD-.js} +1 -1
- package/dist/{circle-alert-CIEGV5DN.js → circle-alert-YUvIJAgY.js} +1 -1
- package/dist/{clock-Y4cx0gkJ.js → clock-CnSIGKQW.js} +1 -1
- package/dist/{cdn/chunks/cloud-BHClP3e2.js → cloud-YUYDtdHt.js} +308 -569
- package/dist/{copy-BEcsAlfB.js → copy-CUC43md_.js} +1 -1
- package/dist/{createCloudRuntime-zNPkF6T9.js → createCloudRuntime-BMDRjL0k.js} +126 -168
- package/dist/{createLucideIcon-CYHXK9hn.js → createLucideIcon-BcP1sjdp.js} +6 -6
- package/dist/{cdn/chunks/de-DMquBpZM.js → de-CBE6O79z.js} +23 -3
- 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-tsmnQugO.js → dist-DBG3nh3k.js} +503 -273
- package/dist/{editor-modal-AlVLkU91.js → editor-modal--7_9A6j-.js} +20 -20
- package/dist/en-BHCMzqib.js +1 -0
- package/dist/{en-C8Mp71sO.js → en-CDexnk0p.js} +23 -1
- package/dist/{cdn/chunks/en-ChVeGQBY.js → en-DhJLnaBx.js} +0 -6
- package/dist/{cdn/chunks/es-Byq4tthI.js → es-BE42B6uN.js} +23 -3
- package/dist/{extensions-pjO8VGkM.js → extensions-zwsZlWjH.js} +23 -23
- package/dist/{eye-Ddnz8nnm.js → eye-B1bua-ck.js} +1 -1
- package/dist/{cdn/chunks/fr-B3j35HEw.js → fr-DlJFPDQR.js} +23 -3
- package/dist/{image-up-CM_HC0Dx.js → image-up-BqiO7KCO.js} +1 -1
- package/dist/index.d.ts +290 -35
- package/dist/{info-DXLmzoeY.js → info-x26nGOo2.js} +1 -1
- package/dist/{cdn/chunks/ja-D7txAuGS.js → ja-CUT8gkNI.js} +23 -3
- package/dist/{keys-BKFq19a2.js → keys-BymCnLHD.js} +1 -1
- package/dist/{link-Cel46wgo.js → link-CezhndyR.js} +1 -1
- package/dist/{list-Cl0GwiV9.js → list-DQqdptI0.js} +1 -1
- package/dist/{loader-circle-uAwpvfys.js → loader-circle-DCEeoYoi.js} +1 -1
- package/dist/{message-circle-DWU1pTM_.js → message-circle-BLGzfv_7.js} +1 -1
- package/dist/{cdn/chunks/nl-ClJ3BY3F.js → nl-bXWqqRyS.js} +23 -3
- package/dist/{package-CbyG_yU_.js → package-D_kEQCMU.js} +1 -1
- package/dist/{pencil-BzoDcwKu.js → pencil-Dct8zGLy.js} +1 -1
- package/dist/{plus-8cDvoCjZ.js → plus-BDd0gTEm.js} +1 -1
- package/dist/{preRenderCustomBlocks-DMP5RuHl.js → preRenderCustomBlocks-CtKJecE-.js} +3 -3
- package/dist/{pt-BR-DibcXcmv.js → pt-BR-2_H4-wlb.js} +23 -1
- package/dist/{cdn/chunks/pt-BR-CoCwRUi0.js → pt-BR-BphMoUTw.js} +0 -6
- package/dist/{refresh-cw-9WinWixo.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-CqgGq1gG.js → search-Bm2cCQpe.js} +1 -1
- package/dist/{send-Ceo3c9Db.js → send-sVLaKZ7f.js} +1 -1
- package/dist/{shield-check-uDAwur5D.js → shield-check-YhsbXfQc.js} +1 -1
- package/dist/{smartphone-CcLaCpGK.js → smartphone-B2W81p02.js} +1 -1
- package/dist/socialIcons-Bwv-49EB.js +2167 -0
- package/dist/{sparkles-Do9XjAuT.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 +1409 -1156
- package/dist/{text-align-start-DvzC0HQA.js → text-align-start-CTuwQ5YW.js} +1 -1
- package/dist/timeouts-o5Y9BuqI.js +4 -0
- package/dist/{trash-vlINTx32.js → trash-I3D2peFQ.js} +1 -1
- package/dist/{triangle-alert-MRYSJ9T2.js → triangle-alert-CenxmLRE.js} +1 -1
- package/dist/{upload-CtNOI6J2.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-PvErWWsp.js → useEditorCore-DRbMRe8F.js} +806 -785
- package/dist/{useEditorRoot-BD3piYtD.js → useEditorRoot-BVm2-1N8.js} +2 -2
- package/dist/{useI18n-CxVEpurs.js → useI18n-CSh4gO5c.js} +2 -2
- package/dist/{useLogicTag-BHn67tDd.js → useLogicTag-zcI6BWIf.js} +3 -3
- package/dist/{useMergeTag-CRkm5Ig6.js → useMergeTag-C-iBLlp0.js} +5 -5
- package/dist/{usePopoverPosition-CwnH1o5g.js → usePopoverPosition-CMcsMBtK.js} +2 -2
- package/dist/{useScrollToBlock-CXmcHQQN.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-CxRGeHO3.js → withCurrentFont-D62njRLu.js} +1 -1
- package/dist/{x-Cd6SFw8r.js → x-KFQ4S-Kz.js} +1 -1
- package/package.json +12 -12
- package/dist/CloudHeaderExtras-CUSftQdm.js +0 -59
- package/dist/CollaboratorBar-5rfopCPx.js +0 -103
- package/dist/cdn/chunks/CloudHeaderExtras-B4fhuwc_.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-awqHfJqC.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar-CS0ivqkr.js +0 -52
- package/dist/cdn/chunks/CollaboratorBar-CS0ivqkr.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-C_x2TfFk.js.map +0 -1
- package/dist/cdn/chunks/ca-CbNzJM3I.js.map +0 -1
- package/dist/cdn/chunks/cloud-BHClP3e2.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-Vd0N4elZ.js.map +0 -1
- package/dist/cdn/chunks/de-DMquBpZM.js.map +0 -1
- package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +0 -1
- package/dist/cdn/chunks/en-C8Mp71sO.js.map +0 -1
- package/dist/cdn/chunks/en-ChVeGQBY.js.map +0 -1
- package/dist/cdn/chunks/en-eWpiXyZu.js +0 -1
- package/dist/cdn/chunks/es-Byq4tthI.js.map +0 -1
- package/dist/cdn/chunks/fr-B3j35HEw.js.map +0 -1
- package/dist/cdn/chunks/ja-D7txAuGS.js.map +0 -1
- package/dist/cdn/chunks/nl-ClJ3BY3F.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-DibcXcmv.js.map +0 -1
- package/dist/cdn/chunks/pusher-C8DeiO2X.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-C_lnkpG6.js +0 -1279
- package/dist/cdn/chunks/socialIcons-C_lnkpG6.js.map +0 -1
- package/dist/cdn/chunks/src-DYCDeBDM.js.map +0 -1
- package/dist/cdn/chunks/src-dZ4D_tuP.js.map +0 -1
- package/dist/cdn/chunks/timeouts-Cv2jvusx.js +0 -6
- package/dist/cdn/chunks/timeouts-Cv2jvusx.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-Bb2UcB20.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +0 -10
- package/dist/en-B0FUfNwz.js +0 -1
- package/dist/socialIcons-PTiwhLoC.js +0 -1359
- package/dist/timeouts-Cv2jvusx.js +0 -4
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { A as t, At as n, B as r, F as i, J as a, M as o, N as s, R as c, S as l, V as u, Y as d, Z as f, _ as p, at as m, c as h, d as g, g as _, h as v, jt as y, kt as b, l as x, r as S, s as C, u as w, v as T } from "./vue.runtime.esm-bundler-
|
|
3
|
-
import { a as E, o as D } from "./runtime-dom.esm-bundler-
|
|
4
|
-
import {
|
|
5
|
-
import { C as oe,
|
|
6
|
-
import { _ as xe } from "./dist-
|
|
7
|
-
import { $ as
|
|
8
|
-
import { t as B } from "./useI18n-
|
|
9
|
-
import { o as
|
|
10
|
-
import { t as
|
|
11
|
-
import { c as V } from "./LogicTagInsertButton-
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { n as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { n as
|
|
19
|
-
import { t as H } from "./plus-
|
|
20
|
-
import { t as
|
|
21
|
-
import { n as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import { _ as
|
|
27
|
-
import { n as
|
|
28
|
-
import { n as
|
|
29
|
-
import { t as J } from "./MergeTagInput-
|
|
30
|
-
var
|
|
2
|
+
import { A as t, At as n, B as r, F as i, J as a, M as o, N as s, R as c, S as l, V as u, Y as d, Z as f, _ as p, at as m, c as h, d as g, g as _, h as v, jt as y, kt as b, l as x, r as S, s as C, u as w, v as T } from "./vue.runtime.esm-bundler-DV0Wx4r_.js";
|
|
3
|
+
import { a as E, o as D } from "./runtime-dom.esm-bundler-DYn1z2Xf.js";
|
|
4
|
+
import { $ as O, G as k, K as A, Tt as j, b as M, d as N, et as P, ft as F, i as I, l as ee, n as te, r as ne, st as L, t as re, wt as ie, x as ae } from "./dist-DBG3nh3k.js";
|
|
5
|
+
import { C as oe, O as se, R as ce, b as le, c as ue, d as de, f as fe, h as pe, i as me, l as he, m as ge, o as R, p as _e, r as ve, u as ye, x as z, y as be } from "./socialIcons-Bwv-49EB.js";
|
|
6
|
+
import { _ as xe } from "./dist-Bv_GBr2l.js";
|
|
7
|
+
import { $ as Se, C as Ce, G as we, L as Te, P as Ee, d as De, g as Oe, h as ke, n as Ae, p as je, v as Me, x as Ne } from "./keys-BymCnLHD.js";
|
|
8
|
+
import { t as B } from "./useI18n-CSh4gO5c.js";
|
|
9
|
+
import { o as Pe } from "./usePopoverPosition-CMcsMBtK.js";
|
|
10
|
+
import { t as Fe } from "./createLucideIcon-BcP1sjdp.js";
|
|
11
|
+
import { c as V } from "./LogicTagInsertButton-CR5E4jSG.js";
|
|
12
|
+
import { t as Ie } from "./chevron-down-CIF4bdon.js";
|
|
13
|
+
import { t as Le } from "./circle-alert-YUvIJAgY.js";
|
|
14
|
+
import { n as Re, t as ze } from "./blockTypeIcons-CayLluou.js";
|
|
15
|
+
import { t as Be } from "./copy-CUC43md_.js";
|
|
16
|
+
import { t as Ve } from "./info-x26nGOo2.js";
|
|
17
|
+
import { t as He } from "./link-CezhndyR.js";
|
|
18
|
+
import { n as Ue, t as We } from "./smartphone-B2W81p02.js";
|
|
19
|
+
import { t as H } from "./plus-BDd0gTEm.js";
|
|
20
|
+
import { t as Ge } from "./refresh-cw-tGMRDxr8.js";
|
|
21
|
+
import { n as Ke, r as qe, t as Je } from "./text-align-start-CTuwQ5YW.js";
|
|
22
|
+
import { t as Ye } from "./trash-I3D2peFQ.js";
|
|
23
|
+
import { t as Xe } from "./x-KFQ4S-Kz.js";
|
|
24
|
+
import { t as Ze } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
25
|
+
import { t as Qe } from "./useAliveFlag-BjP0Gxza.js";
|
|
26
|
+
import { _ as $e, b as et, c as tt, g as U, h as W, m as G, p as K, r as nt, v as rt } from "./styleConstants-v1dNKgJf.js";
|
|
27
|
+
import { n as it, t as q } from "./ToggleSwitch-DHweVJOr.js";
|
|
28
|
+
import { n as at, t as ot } from "./withCurrentFont-D62njRLu.js";
|
|
29
|
+
import { t as J } from "./MergeTagInput-BEw_r0PJ.js";
|
|
30
|
+
var st = Fe({
|
|
31
31
|
name: "lock-open",
|
|
32
32
|
size: 24,
|
|
33
33
|
node: [["rect", {
|
|
@@ -43,7 +43,7 @@ var ot = Pe({
|
|
|
43
43
|
key: "1mm8w8"
|
|
44
44
|
}]],
|
|
45
45
|
aliases: ["unlock"]
|
|
46
|
-
}),
|
|
46
|
+
}), ct = Fe({
|
|
47
47
|
name: "lock",
|
|
48
48
|
size: 24,
|
|
49
49
|
node: [["rect", {
|
|
@@ -58,7 +58,7 @@ var ot = Pe({
|
|
|
58
58
|
d: "M7 11V7a5 5 0 0 1 10 0v4",
|
|
59
59
|
key: "fwvmzm"
|
|
60
60
|
}]]
|
|
61
|
-
}),
|
|
61
|
+
}), lt = Fe({
|
|
62
62
|
name: "unlink",
|
|
63
63
|
size: 24,
|
|
64
64
|
node: [
|
|
@@ -99,14 +99,14 @@ var ot = Pe({
|
|
|
99
99
|
key: "ox905f"
|
|
100
100
|
}]
|
|
101
101
|
]
|
|
102
|
-
}),
|
|
102
|
+
}), ut = [
|
|
103
103
|
"aria-checked",
|
|
104
104
|
"aria-label",
|
|
105
105
|
"disabled",
|
|
106
106
|
"aria-disabled",
|
|
107
107
|
"title",
|
|
108
108
|
"onClick"
|
|
109
|
-
],
|
|
109
|
+
], dt = { key: 1 }, Y = /* @__PURE__ */ T({
|
|
110
110
|
__name: "SlidingPillSelect",
|
|
111
111
|
props: {
|
|
112
112
|
options: {},
|
|
@@ -151,9 +151,9 @@ var ot = Pe({
|
|
|
151
151
|
key: 0,
|
|
152
152
|
size: 14,
|
|
153
153
|
"stroke-width": 2
|
|
154
|
-
})) : (t(), g("span",
|
|
154
|
+
})) : (t(), g("span", dt, y(r.label), 1))], 12, ut))), 128))], 4));
|
|
155
155
|
}
|
|
156
|
-
}),
|
|
156
|
+
}), ft = { class: "tpl:flex tpl:items-stretch" }, pt = [
|
|
157
157
|
"data-testid",
|
|
158
158
|
"value",
|
|
159
159
|
"min",
|
|
@@ -174,7 +174,7 @@ var ot = Pe({
|
|
|
174
174
|
let t = e.target;
|
|
175
175
|
t.validity?.badInput || r("update:modelValue", Number(t.value));
|
|
176
176
|
}
|
|
177
|
-
return (n, r) => (t(), g("div",
|
|
177
|
+
return (n, r) => (t(), g("div", ft, [h("input", {
|
|
178
178
|
type: "number",
|
|
179
179
|
"data-testid": e.testid,
|
|
180
180
|
class: b(m(G)),
|
|
@@ -182,14 +182,14 @@ var ot = Pe({
|
|
|
182
182
|
min: e.min,
|
|
183
183
|
max: e.max,
|
|
184
184
|
onInput: i
|
|
185
|
-
}, null, 42,
|
|
185
|
+
}, null, 42, pt), h("span", { class: b(m(W)) }, y(e.suffix), 3)]));
|
|
186
186
|
}
|
|
187
|
-
}),
|
|
187
|
+
}), mt = [
|
|
188
188
|
"aria-pressed",
|
|
189
189
|
"aria-label",
|
|
190
190
|
"title",
|
|
191
191
|
"data-testid"
|
|
192
|
-
],
|
|
192
|
+
], ht = /* @__PURE__ */ T({
|
|
193
193
|
__name: "LinkToggle",
|
|
194
194
|
props: {
|
|
195
195
|
linked: { type: Boolean },
|
|
@@ -208,20 +208,20 @@ var ot = Pe({
|
|
|
208
208
|
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
209
209
|
"data-testid": e.testid,
|
|
210
210
|
onClick: i[0] ||= (e) => r("toggle")
|
|
211
|
-
}, [e.linked ? (t(), x(m(
|
|
211
|
+
}, [e.linked ? (t(), x(m(He), {
|
|
212
212
|
key: 0,
|
|
213
213
|
size: 14,
|
|
214
214
|
"stroke-width": 2
|
|
215
|
-
})) : (t(), x(m(
|
|
215
|
+
})) : (t(), x(m(lt), {
|
|
216
216
|
key: 1,
|
|
217
217
|
size: 14,
|
|
218
218
|
"stroke-width": 2
|
|
219
|
-
}))], 10,
|
|
219
|
+
}))], 10, mt));
|
|
220
220
|
}
|
|
221
|
-
}),
|
|
221
|
+
}), gt = { class: "tpl:mb-3.5" }, _t = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, vt = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, yt = {
|
|
222
222
|
key: 0,
|
|
223
223
|
class: "tpl:mb-3.5"
|
|
224
|
-
},
|
|
224
|
+
}, bt = { class: "tpl:mb-3.5" }, xt = { class: "tpl:mb-3.5" }, St = /* @__PURE__ */ T({
|
|
225
225
|
__name: "BorderControl",
|
|
226
226
|
props: {
|
|
227
227
|
modelValue: {},
|
|
@@ -239,7 +239,7 @@ var ot = Pe({
|
|
|
239
239
|
}
|
|
240
240
|
let l = C(() => {
|
|
241
241
|
let e = r.modelValue;
|
|
242
|
-
return !e ||
|
|
242
|
+
return !e || I.every((t) => s(e[t], e.top));
|
|
243
243
|
}), u = f(l.value);
|
|
244
244
|
c(l, (e) => {
|
|
245
245
|
!e && u.value && (u.value = !1);
|
|
@@ -250,13 +250,13 @@ var ot = Pe({
|
|
|
250
250
|
}), v = (e) => !!e && e.width > 0;
|
|
251
251
|
function x(e) {
|
|
252
252
|
if (u.value) {
|
|
253
|
-
i("update:modelValue", v(e) ?
|
|
253
|
+
i("update:modelValue", v(e) ? j(e) : void 0);
|
|
254
254
|
return;
|
|
255
255
|
}
|
|
256
256
|
let t = {
|
|
257
|
-
...r.modelValue ??
|
|
257
|
+
...r.modelValue ?? j(o),
|
|
258
258
|
[d.value]: e
|
|
259
|
-
}, n =
|
|
259
|
+
}, n = I.some((e) => v(t[e]));
|
|
260
260
|
i("update:modelValue", n ? t : void 0);
|
|
261
261
|
}
|
|
262
262
|
function T(e) {
|
|
@@ -279,15 +279,15 @@ var ot = Pe({
|
|
|
279
279
|
u.value = !0;
|
|
280
280
|
let e = r.modelValue;
|
|
281
281
|
if (!e) return;
|
|
282
|
-
let t = v(e[d.value]) ? e[d.value] :
|
|
283
|
-
i("update:modelValue", t ?
|
|
282
|
+
let t = v(e[d.value]) ? e[d.value] : I.map((t) => e[t]).find(v);
|
|
283
|
+
i("update:modelValue", t ? j(t) : void 0);
|
|
284
284
|
}
|
|
285
|
-
let O = C(() =>
|
|
285
|
+
let O = C(() => I.map((e) => ({
|
|
286
286
|
value: e,
|
|
287
287
|
label: a.spacingControl[e]
|
|
288
288
|
})));
|
|
289
|
-
return (n, r) => (t(), g("div",
|
|
290
|
-
h("div",
|
|
289
|
+
return (n, r) => (t(), g("div", gt, [
|
|
290
|
+
h("div", _t, [h("span", vt, y(m(a).blockSettings.border), 1), _(ht, {
|
|
291
291
|
linked: u.value,
|
|
292
292
|
"link-label": m(a).blockSettings.linkSides,
|
|
293
293
|
"unlink-label": m(a).blockSettings.unlinkSides,
|
|
@@ -299,19 +299,19 @@ var ot = Pe({
|
|
|
299
299
|
"unlink-label",
|
|
300
300
|
"testid"
|
|
301
301
|
])]),
|
|
302
|
-
u.value ? w("", !0) : (t(), g("div",
|
|
302
|
+
u.value ? w("", !0) : (t(), g("div", yt, [h("label", { class: b(m(U)) }, y(m(a).blockSettings.borderSide), 3), _(Y, {
|
|
303
303
|
options: O.value,
|
|
304
304
|
"model-value": d.value,
|
|
305
305
|
"onUpdate:modelValue": r[0] ||= (e) => d.value = e
|
|
306
306
|
}, null, 8, ["options", "model-value"])])),
|
|
307
|
-
h("div",
|
|
307
|
+
h("div", bt, [h("label", { class: b(m(U)) }, y(m(a).blockSettings.borderWidth), 3), _(X, {
|
|
308
308
|
"model-value": p.value.width,
|
|
309
309
|
min: 0,
|
|
310
310
|
suffix: "px",
|
|
311
311
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
312
312
|
"onUpdate:modelValue": T
|
|
313
313
|
}, null, 8, ["model-value", "testid"])]),
|
|
314
|
-
p.value.width > 0 ? (t(), g(S, { key: 1 }, [h("div",
|
|
314
|
+
p.value.width > 0 ? (t(), g(S, { key: 1 }, [h("div", xt, [h("label", { class: b(m(U)) }, y(m(a).blockSettings.borderStyle), 3), _(Y, {
|
|
315
315
|
options: [
|
|
316
316
|
{
|
|
317
317
|
value: "solid",
|
|
@@ -334,10 +334,10 @@ var ot = Pe({
|
|
|
334
334
|
}, null, 8, ["model-value"])])], 64)) : w("", !0)
|
|
335
335
|
]));
|
|
336
336
|
}
|
|
337
|
-
}),
|
|
337
|
+
}), Ct = { class: "tpl:mb-3.5" }, wt = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Tt = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Et = {
|
|
338
338
|
key: 1,
|
|
339
339
|
class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
|
|
340
|
-
},
|
|
340
|
+
}, Dt = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Ot = /* @__PURE__ */ T({
|
|
341
341
|
__name: "RadiusControl",
|
|
342
342
|
props: {
|
|
343
343
|
modelValue: {},
|
|
@@ -365,7 +365,7 @@ var ot = Pe({
|
|
|
365
365
|
bottomRight: e,
|
|
366
366
|
bottomLeft: e
|
|
367
367
|
} : e;
|
|
368
|
-
}), d = C(() =>
|
|
368
|
+
}), d = C(() => ne.every((e) => u.value[e] === u.value.topLeft)), p = f(d.value);
|
|
369
369
|
c(d, (e) => {
|
|
370
370
|
!e && p.value && (p.value = !1);
|
|
371
371
|
});
|
|
@@ -384,7 +384,7 @@ var ot = Pe({
|
|
|
384
384
|
function T() {
|
|
385
385
|
p.value = !p.value, p.value && i("update:modelValue", u.value.topLeft);
|
|
386
386
|
}
|
|
387
|
-
return (n, r) => (t(), g("div",
|
|
387
|
+
return (n, r) => (t(), g("div", Ct, [h("div", wt, [h("span", Tt, y(e.label), 1), _(ht, {
|
|
388
388
|
linked: p.value,
|
|
389
389
|
"link-label": m(a).blockSettings.linkCorners,
|
|
390
390
|
"unlink-label": m(a).blockSettings.unlinkCorners,
|
|
@@ -407,7 +407,7 @@ var ot = Pe({
|
|
|
407
407
|
"model-value",
|
|
408
408
|
"max",
|
|
409
409
|
"testid"
|
|
410
|
-
])) : (t(), g("div",
|
|
410
|
+
])) : (t(), g("div", Et, [(t(), g(S, null, o(l, (t) => h("div", { key: t }, [h("label", Dt, y(m(a).blockSettings[s[t]]), 1), _(X, {
|
|
411
411
|
"model-value": u.value[t],
|
|
412
412
|
min: 0,
|
|
413
413
|
max: e.max,
|
|
@@ -421,10 +421,10 @@ var ot = Pe({
|
|
|
421
421
|
"onUpdate:modelValue"
|
|
422
422
|
])])), 64))]))]));
|
|
423
423
|
}
|
|
424
|
-
}),
|
|
424
|
+
}), kt = { class: "tpl:mb-3.5" }, At = ["value"], jt = { value: "" }, Mt = ["value"], Nt = { class: "tpl:mb-3.5" }, Pt = { class: "tpl:mb-3.5" }, Ft = { class: "tpl:mb-3.5" }, It = { class: "tpl:mb-3.5" }, Lt = { class: "tpl:mb-3.5" }, Rt = { class: "tpl:flex tpl:items-stretch" }, zt = ["value"], Bt = { class: "tpl:mb-3.5" }, Vt = ["value"], Ht = { value: "auto" }, Ut = { value: "full" }, Wt = { value: "custom" }, Gt = {
|
|
425
425
|
key: 0,
|
|
426
426
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
427
|
-
},
|
|
427
|
+
}, Kt = ["value"], qt = { class: "tpl:mb-3.5" }, Jt = 200, Yt = /* @__PURE__ */ T({
|
|
428
428
|
__name: "ButtonToolbar",
|
|
429
429
|
props: {
|
|
430
430
|
block: {},
|
|
@@ -437,27 +437,27 @@ var ot = Pe({
|
|
|
437
437
|
i("update", { [e]: t });
|
|
438
438
|
}
|
|
439
439
|
function l(e) {
|
|
440
|
-
e === "full" ? c("width", "full") : e === "custom" ? c("width", typeof r.block.width == "number" ? r.block.width :
|
|
440
|
+
e === "full" ? c("width", "full") : e === "custom" ? c("width", typeof r.block.width == "number" ? r.block.width : Jt) : c("width", void 0);
|
|
441
441
|
}
|
|
442
442
|
function u(e) {
|
|
443
443
|
let t = Number(e);
|
|
444
444
|
!Number.isFinite(t) || t <= 0 || c("width", t);
|
|
445
445
|
}
|
|
446
446
|
return (n, r) => (t(), g(S, null, [
|
|
447
|
-
h("div",
|
|
447
|
+
h("div", kt, [h("label", { class: b(m(U)) }, y(m(a).button.fontFamily), 3), h("select", {
|
|
448
448
|
class: b(m(K)),
|
|
449
|
-
value: m(
|
|
449
|
+
value: m(ot)(e.block.fontFamily),
|
|
450
450
|
onChange: r[0] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
451
|
-
}, [h("option",
|
|
451
|
+
}, [h("option", jt, y(m(a).button.inheritFont), 1), (t(!0), g(S, null, o(e.fontFamilies, (e) => (t(), g("option", {
|
|
452
452
|
key: e.value,
|
|
453
453
|
value: e.value
|
|
454
|
-
}, y(e.label), 9,
|
|
455
|
-
h("div",
|
|
454
|
+
}, y(e.label), 9, Mt))), 128))], 42, At)]),
|
|
455
|
+
h("div", Nt, [h("label", { class: b(m(U)) }, y(m(a).button.text), 3), _(J, {
|
|
456
456
|
"model-value": e.block.text,
|
|
457
457
|
type: "text",
|
|
458
458
|
"onUpdate:modelValue": r[1] ||= (e) => c("text", e)
|
|
459
459
|
}, null, 8, ["model-value"])]),
|
|
460
|
-
h("div",
|
|
460
|
+
h("div", Pt, [
|
|
461
461
|
h("label", { class: b(m(U)) }, y(m(a).button.url), 3),
|
|
462
462
|
_(J, {
|
|
463
463
|
"model-value": e.block.url,
|
|
@@ -473,55 +473,55 @@ var ot = Pe({
|
|
|
473
473
|
"onUpdate:modelValue": r[3] ||= (e) => c("openInNewTab", e)
|
|
474
474
|
}, null, 8, ["model-value", "label"])) : w("", !0)
|
|
475
475
|
]),
|
|
476
|
-
h("div",
|
|
476
|
+
h("div", Ft, [h("label", { class: b(m(U)) }, y(m(a).button.background), 3), _(V, {
|
|
477
477
|
"model-value": e.block.backgroundColor,
|
|
478
478
|
"allow-transparent": "",
|
|
479
479
|
"onUpdate:modelValue": r[4] ||= (e) => c("backgroundColor", e)
|
|
480
480
|
}, null, 8, ["model-value"])]),
|
|
481
|
-
h("div",
|
|
481
|
+
h("div", It, [h("label", { class: b(m(U)) }, y(m(a).button.textColor), 3), _(V, {
|
|
482
482
|
"model-value": e.block.textColor,
|
|
483
483
|
"onUpdate:modelValue": r[5] ||= (e) => c("textColor", e)
|
|
484
484
|
}, null, 8, ["model-value"])]),
|
|
485
|
-
_(
|
|
485
|
+
_(St, {
|
|
486
486
|
"model-value": e.block.border,
|
|
487
487
|
"testid-prefix": "button",
|
|
488
488
|
"onUpdate:modelValue": r[6] ||= (e) => c("border", e)
|
|
489
489
|
}, null, 8, ["model-value"]),
|
|
490
|
-
_(
|
|
490
|
+
_(Ot, {
|
|
491
491
|
"model-value": e.block.borderRadius,
|
|
492
492
|
label: m(a).button.borderRadius,
|
|
493
493
|
max: 50,
|
|
494
494
|
"testid-prefix": "button",
|
|
495
495
|
"onUpdate:modelValue": r[7] ||= (e) => c("borderRadius", e)
|
|
496
496
|
}, null, 8, ["model-value", "label"]),
|
|
497
|
-
h("div",
|
|
497
|
+
h("div", Lt, [h("label", { class: b(m(U)) }, y(m(a).button.fontSize), 3), h("div", Rt, [h("input", {
|
|
498
498
|
type: "number",
|
|
499
499
|
class: b(m(G)),
|
|
500
500
|
value: e.block.fontSize,
|
|
501
501
|
min: "10",
|
|
502
502
|
max: "36",
|
|
503
503
|
onInput: r[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
504
|
-
}, null, 42,
|
|
505
|
-
h("div",
|
|
504
|
+
}, null, 42, zt), h("span", { class: b(m(W)) }, "px", 2)])]),
|
|
505
|
+
h("div", Bt, [
|
|
506
506
|
h("label", { class: b(m(U)) }, y(m(a).button.width), 3),
|
|
507
507
|
h("select", {
|
|
508
508
|
class: b(m(K)),
|
|
509
509
|
value: s.value,
|
|
510
510
|
onChange: r[9] ||= (e) => l(e.target.value)
|
|
511
511
|
}, [
|
|
512
|
-
h("option",
|
|
513
|
-
h("option",
|
|
514
|
-
h("option",
|
|
515
|
-
], 42,
|
|
516
|
-
s.value === "custom" ? (t(), g("div",
|
|
512
|
+
h("option", Ht, y(m(a).button.widthAuto), 1),
|
|
513
|
+
h("option", Ut, y(m(a).button.fullWidth), 1),
|
|
514
|
+
h("option", Wt, y(m(a).button.widthCustom), 1)
|
|
515
|
+
], 42, Vt),
|
|
516
|
+
s.value === "custom" ? (t(), g("div", Gt, [h("input", {
|
|
517
517
|
type: "number",
|
|
518
518
|
class: b(m(G)),
|
|
519
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
519
|
+
value: typeof e.block.width == "number" ? e.block.width : Jt,
|
|
520
520
|
min: "20",
|
|
521
521
|
onInput: r[10] ||= (e) => u(e.target.value)
|
|
522
|
-
}, null, 42,
|
|
522
|
+
}, null, 42, Kt), h("span", { class: b(m(W)) }, "px", 2)])) : w("", !0)
|
|
523
523
|
]),
|
|
524
|
-
h("div",
|
|
524
|
+
h("div", qt, [h("label", { class: b(m(U)) }, y(m(a).title.align), 3), _(Y, {
|
|
525
525
|
options: [
|
|
526
526
|
{
|
|
527
527
|
value: "left",
|
|
@@ -541,7 +541,7 @@ var ot = Pe({
|
|
|
541
541
|
}, null, 8, ["options", "model-value"])])
|
|
542
542
|
], 64));
|
|
543
543
|
}
|
|
544
|
-
}),
|
|
544
|
+
}), Xt = { class: "spacing-control" }, Zt = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Qt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, $t = { class: "tpl:flex tpl:items-center" }, en = ["aria-label"], tn = ["value", "aria-label"], nn = ["aria-label"], rn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, an = { class: "tpl:flex tpl:items-center" }, on = ["aria-label"], sn = ["value", "aria-label"], cn = ["aria-label"], ln = ["aria-label", "title"], un = { class: "tpl:flex tpl:items-center" }, dn = ["aria-label"], fn = ["value", "aria-label"], pn = ["aria-label"], mn = { class: "tpl:flex tpl:items-center" }, hn = ["aria-label"], gn = ["value", "aria-label"], _n = ["aria-label"], Z = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", vn = "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)]", yn = /*#__PURE__*/ Ze(/* @__PURE__ */ T({
|
|
545
545
|
__name: "SpacingControl",
|
|
546
546
|
props: {
|
|
547
547
|
modelValue: {},
|
|
@@ -588,24 +588,24 @@ var ot = Pe({
|
|
|
588
588
|
});
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
return (n, r) => (t(), g("div",
|
|
592
|
-
h("div",
|
|
591
|
+
return (n, r) => (t(), g("div", Xt, [h("label", Zt, y(e.label), 1), h("div", Qt, [
|
|
592
|
+
h("div", $t, [
|
|
593
593
|
h("button", {
|
|
594
594
|
"aria-label": m(a).spacingControl.decreaseTop,
|
|
595
595
|
class: b([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
596
596
|
onClick: r[0] ||= (e) => l("top", -1)
|
|
597
|
-
}, [_(m(
|
|
597
|
+
}, [_(m(Re), {
|
|
598
598
|
size: 12,
|
|
599
599
|
"stroke-width": 2
|
|
600
|
-
})], 10,
|
|
600
|
+
})], 10, en),
|
|
601
601
|
h("input", {
|
|
602
602
|
type: "number",
|
|
603
|
-
class: b(
|
|
603
|
+
class: b(vn),
|
|
604
604
|
value: e.modelValue.top,
|
|
605
605
|
"aria-label": m(a).spacingControl.top,
|
|
606
606
|
min: "0",
|
|
607
607
|
onInput: r[1] ||= (e) => u("top", Number(e.target.value))
|
|
608
|
-
}, null, 40,
|
|
608
|
+
}, null, 40, tn),
|
|
609
609
|
h("button", {
|
|
610
610
|
"aria-label": m(a).spacingControl.increaseTop,
|
|
611
611
|
class: b([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
@@ -613,26 +613,26 @@ var ot = Pe({
|
|
|
613
613
|
}, [_(m(H), {
|
|
614
614
|
size: 12,
|
|
615
615
|
"stroke-width": 2
|
|
616
|
-
})], 10,
|
|
616
|
+
})], 10, nn)
|
|
617
617
|
]),
|
|
618
|
-
h("div",
|
|
619
|
-
h("div",
|
|
618
|
+
h("div", rn, [
|
|
619
|
+
h("div", an, [
|
|
620
620
|
h("button", {
|
|
621
621
|
"aria-label": m(a).spacingControl.decreaseLeft,
|
|
622
622
|
class: b([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
623
623
|
onClick: r[3] ||= (e) => l("left", -1)
|
|
624
|
-
}, [_(m(
|
|
624
|
+
}, [_(m(Re), {
|
|
625
625
|
size: 12,
|
|
626
626
|
"stroke-width": 2
|
|
627
|
-
})], 10,
|
|
627
|
+
})], 10, on),
|
|
628
628
|
h("input", {
|
|
629
629
|
type: "number",
|
|
630
|
-
class: b(
|
|
630
|
+
class: b(vn),
|
|
631
631
|
value: e.modelValue.left,
|
|
632
632
|
"aria-label": m(a).spacingControl.left,
|
|
633
633
|
min: "0",
|
|
634
634
|
onInput: r[4] ||= (e) => u("left", Number(e.target.value))
|
|
635
|
-
}, null, 40,
|
|
635
|
+
}, null, 40, sn),
|
|
636
636
|
h("button", {
|
|
637
637
|
"aria-label": m(a).spacingControl.increaseLeft,
|
|
638
638
|
class: b([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
@@ -640,39 +640,39 @@ var ot = Pe({
|
|
|
640
640
|
}, [_(m(H), {
|
|
641
641
|
size: 12,
|
|
642
642
|
"stroke-width": 2
|
|
643
|
-
})], 10,
|
|
643
|
+
})], 10, cn)
|
|
644
644
|
]),
|
|
645
645
|
h("button", {
|
|
646
646
|
class: b(["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)]", s.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)]"]),
|
|
647
647
|
"aria-label": s.value ? m(a).spacingControl.unlock : m(a).spacingControl.lockAll,
|
|
648
648
|
title: s.value ? m(a).spacingControl.unlock : m(a).spacingControl.lockAll,
|
|
649
649
|
onClick: d
|
|
650
|
-
}, [s.value ? (t(), x(m(
|
|
650
|
+
}, [s.value ? (t(), x(m(ct), {
|
|
651
651
|
key: 0,
|
|
652
652
|
size: 14,
|
|
653
653
|
"stroke-width": 2
|
|
654
|
-
})) : (t(), x(m(
|
|
654
|
+
})) : (t(), x(m(st), {
|
|
655
655
|
key: 1,
|
|
656
656
|
size: 14,
|
|
657
657
|
"stroke-width": 2
|
|
658
|
-
}))], 10,
|
|
659
|
-
h("div",
|
|
658
|
+
}))], 10, ln),
|
|
659
|
+
h("div", un, [
|
|
660
660
|
h("button", {
|
|
661
661
|
"aria-label": m(a).spacingControl.decreaseRight,
|
|
662
662
|
class: b([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
663
663
|
onClick: r[6] ||= (e) => l("right", -1)
|
|
664
|
-
}, [_(m(
|
|
664
|
+
}, [_(m(Re), {
|
|
665
665
|
size: 12,
|
|
666
666
|
"stroke-width": 2
|
|
667
|
-
})], 10,
|
|
667
|
+
})], 10, dn),
|
|
668
668
|
h("input", {
|
|
669
669
|
type: "number",
|
|
670
|
-
class: b(
|
|
670
|
+
class: b(vn),
|
|
671
671
|
value: e.modelValue.right,
|
|
672
672
|
"aria-label": m(a).spacingControl.right,
|
|
673
673
|
min: "0",
|
|
674
674
|
onInput: r[7] ||= (e) => u("right", Number(e.target.value))
|
|
675
|
-
}, null, 40,
|
|
675
|
+
}, null, 40, fn),
|
|
676
676
|
h("button", {
|
|
677
677
|
"aria-label": m(a).spacingControl.increaseRight,
|
|
678
678
|
class: b([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
@@ -680,26 +680,26 @@ var ot = Pe({
|
|
|
680
680
|
}, [_(m(H), {
|
|
681
681
|
size: 12,
|
|
682
682
|
"stroke-width": 2
|
|
683
|
-
})], 10,
|
|
683
|
+
})], 10, pn)
|
|
684
684
|
])
|
|
685
685
|
]),
|
|
686
|
-
h("div",
|
|
686
|
+
h("div", mn, [
|
|
687
687
|
h("button", {
|
|
688
688
|
"aria-label": m(a).spacingControl.decreaseBottom,
|
|
689
689
|
class: b([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
690
690
|
onClick: r[9] ||= (e) => l("bottom", -1)
|
|
691
|
-
}, [_(m(
|
|
691
|
+
}, [_(m(Re), {
|
|
692
692
|
size: 12,
|
|
693
693
|
"stroke-width": 2
|
|
694
|
-
})], 10,
|
|
694
|
+
})], 10, hn),
|
|
695
695
|
h("input", {
|
|
696
696
|
type: "number",
|
|
697
|
-
class: b(
|
|
697
|
+
class: b(vn),
|
|
698
698
|
value: e.modelValue.bottom,
|
|
699
699
|
"aria-label": m(a).spacingControl.bottom,
|
|
700
700
|
min: "0",
|
|
701
701
|
onInput: r[10] ||= (e) => u("bottom", Number(e.target.value))
|
|
702
|
-
}, null, 40,
|
|
702
|
+
}, null, 40, gn),
|
|
703
703
|
h("button", {
|
|
704
704
|
"aria-label": m(a).spacingControl.increaseBottom,
|
|
705
705
|
class: b([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
@@ -707,14 +707,14 @@ var ot = Pe({
|
|
|
707
707
|
}, [_(m(H), {
|
|
708
708
|
size: 12,
|
|
709
709
|
"stroke-width": 2
|
|
710
|
-
})], 10,
|
|
710
|
+
})], 10, _n)
|
|
711
711
|
])
|
|
712
712
|
])]));
|
|
713
713
|
}
|
|
714
714
|
}), [["__scopeId", "data-v-69591c1e"]]);
|
|
715
715
|
//#endregion
|
|
716
716
|
//#region src/composables/useNaturalImageSize.ts
|
|
717
|
-
function
|
|
717
|
+
function bn(e) {
|
|
718
718
|
let t = f(null), n = () => {};
|
|
719
719
|
return c(e, (e) => {
|
|
720
720
|
n(), t.value = null, e && (n = de(e, (e) => {
|
|
@@ -722,11 +722,11 @@ function yn(e) {
|
|
|
722
722
|
}));
|
|
723
723
|
}, { immediate: !0 }), t;
|
|
724
724
|
}
|
|
725
|
-
function
|
|
726
|
-
let e = l(
|
|
727
|
-
return async (t) => fe(e ? await
|
|
725
|
+
function xn() {
|
|
726
|
+
let e = l(Ne, null);
|
|
727
|
+
return async (t) => fe(e ? await Sn(e, t) : t);
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function Sn(e, t) {
|
|
730
730
|
let n = (e) => typeof e == "string" && e.length > 0 ? e : t;
|
|
731
731
|
e.lookup(t);
|
|
732
732
|
let r = e.get(t);
|
|
@@ -738,13 +738,13 @@ function xn(e, t) {
|
|
|
738
738
|
}
|
|
739
739
|
//#endregion
|
|
740
740
|
//#region src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
|
|
741
|
-
var
|
|
741
|
+
var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"], En = ["data-testid"], Dn = ["aria-label", "data-testid"], On = [
|
|
742
742
|
"aria-label",
|
|
743
743
|
"title",
|
|
744
744
|
"aria-pressed",
|
|
745
745
|
"data-testid",
|
|
746
746
|
"onClick"
|
|
747
|
-
],
|
|
747
|
+
], kn = ["data-testid"], An = /* @__PURE__ */ T({
|
|
748
748
|
__name: "BackgroundImageControl",
|
|
749
749
|
props: {
|
|
750
750
|
modelValue: {},
|
|
@@ -754,14 +754,14 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
754
754
|
},
|
|
755
755
|
emits: ["update:modelValue"],
|
|
756
756
|
setup(e, { emit: n }) {
|
|
757
|
-
let r = e, i = n, { t: s } = B(), c = l(
|
|
757
|
+
let r = e, i = n, { t: s } = B(), c = l(Ee, N.liquid), u = C(() => typeof r.modelValue?.url == "string" ? r.modelValue.url : ""), d = C(() => u.value.trim() !== ""), p = xn(), T;
|
|
758
758
|
a(() => clearTimeout(T));
|
|
759
759
|
function E(e) {
|
|
760
|
-
r.measure && !
|
|
760
|
+
r.measure && !M(e, c) && (T = setTimeout(async () => {
|
|
761
761
|
let t = await p(e), n = r.modelValue;
|
|
762
762
|
t && n?.url === e && i("update:modelValue", {
|
|
763
763
|
...n,
|
|
764
|
-
...
|
|
764
|
+
..._e(t)
|
|
765
765
|
});
|
|
766
766
|
}, 300));
|
|
767
767
|
}
|
|
@@ -774,7 +774,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
774
774
|
i("update:modelValue", {
|
|
775
775
|
...o,
|
|
776
776
|
url: e,
|
|
777
|
-
...s ?
|
|
777
|
+
...s ? _e(s) : {}
|
|
778
778
|
}), s || E(e);
|
|
779
779
|
}
|
|
780
780
|
function O(e) {
|
|
@@ -806,28 +806,28 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
806
806
|
"bottom-left": s.blockSettings.backgroundPositionBottomLeft,
|
|
807
807
|
"bottom-center": s.blockSettings.backgroundPositionBottomCenter,
|
|
808
808
|
"bottom-right": s.blockSettings.backgroundPositionBottomRight
|
|
809
|
-
})),
|
|
809
|
+
})), j = C(() => te.flatMap((e) => re.map((t) => ({
|
|
810
810
|
x: t,
|
|
811
811
|
y: e,
|
|
812
812
|
label: A.value[`${e}-${t}`]
|
|
813
813
|
}))));
|
|
814
|
-
function
|
|
814
|
+
function P(e) {
|
|
815
815
|
return r.modelValue?.position?.x === e.x && r.modelValue?.position?.y === e.y;
|
|
816
816
|
}
|
|
817
|
-
let
|
|
818
|
-
target:
|
|
819
|
-
blocked: () =>
|
|
817
|
+
let F = f(), { canBrowse: I, isUploading: ee, showOverlay: ne, openMediaBrowser: L } = he({
|
|
818
|
+
target: F,
|
|
819
|
+
blocked: () => M(u.value, c),
|
|
820
820
|
apply: (e) => D(e.url, pe(e.width, e.height))
|
|
821
821
|
});
|
|
822
|
-
return (n, r) => (t(), g("div",
|
|
822
|
+
return (n, r) => (t(), g("div", Cn, [h("div", null, [h("label", { class: b(m(U)) }, y(m(s).blockSettings.backgroundImage), 3), h("div", {
|
|
823
823
|
ref_key: "dropZoneRef",
|
|
824
|
-
ref:
|
|
824
|
+
ref: F,
|
|
825
825
|
class: "tpl:relative",
|
|
826
826
|
"data-testid": `${e.testidPrefix}-bg-url`
|
|
827
827
|
}, [
|
|
828
|
-
m(ne) ? (t(), x(
|
|
828
|
+
m(ne) ? (t(), x(ye, {
|
|
829
829
|
key: 0,
|
|
830
|
-
uploading: m(
|
|
830
|
+
uploading: m(ee)
|
|
831
831
|
}, null, 8, ["uploading"])) : w("", !0),
|
|
832
832
|
_(J, {
|
|
833
833
|
"model-value": u.value,
|
|
@@ -835,7 +835,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
835
835
|
placeholder: m(s).blockSettings.backgroundImagePlaceholder,
|
|
836
836
|
"onUpdate:modelValue": D
|
|
837
837
|
}, null, 8, ["model-value", "placeholder"]),
|
|
838
|
-
m(
|
|
838
|
+
m(I) ? (t(), g("button", {
|
|
839
839
|
key: 1,
|
|
840
840
|
type: "button",
|
|
841
841
|
"data-testid": `${e.testidPrefix}-bg-browse`,
|
|
@@ -845,12 +845,12 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
845
845
|
color: "var(--tpl-primary)",
|
|
846
846
|
"background-color": "var(--tpl-bg)"
|
|
847
847
|
},
|
|
848
|
-
onClick: r[0] ||= (...e) => m(
|
|
848
|
+
onClick: r[0] ||= (...e) => m(L) && m(L)(...e)
|
|
849
849
|
}, [_(m(be), {
|
|
850
850
|
size: 14,
|
|
851
851
|
"stroke-width": 1.5
|
|
852
|
-
}), v(" " + y(m(s).image.browseMedia), 1)], 8,
|
|
853
|
-
], 8,
|
|
852
|
+
}), v(" " + y(m(s).image.browseMedia), 1)], 8, Tn)) : w("", !0)
|
|
853
|
+
], 8, wn)]), d.value && e.modelValue ? (t(), g(S, { key: 0 }, [
|
|
854
854
|
e.heroMode ? w("", !0) : (t(), g("div", {
|
|
855
855
|
key: 0,
|
|
856
856
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
@@ -858,25 +858,25 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
858
858
|
options: k.value,
|
|
859
859
|
"model-value": e.modelValue.size,
|
|
860
860
|
"onUpdate:modelValue": r[1] ||= (e) => O({ size: e })
|
|
861
|
-
}, null, 8, ["options", "model-value"])], 8,
|
|
861
|
+
}, null, 8, ["options", "model-value"])], 8, En)),
|
|
862
862
|
h("div", null, [h("label", { class: b(m(U)) }, y(m(s).blockSettings.backgroundPosition), 3), h("div", {
|
|
863
863
|
role: "group",
|
|
864
864
|
"aria-label": m(s).blockSettings.backgroundPosition,
|
|
865
865
|
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
866
866
|
class: "tpl:grid tpl:w-24 tpl:grid-cols-3 tpl:gap-1"
|
|
867
|
-
}, [(t(!0), g(S, null, o(
|
|
867
|
+
}, [(t(!0), g(S, null, o(j.value, (n) => (t(), g("button", {
|
|
868
868
|
key: `${n.y}-${n.x}`,
|
|
869
869
|
type: "button",
|
|
870
870
|
"aria-label": n.label,
|
|
871
871
|
title: n.label,
|
|
872
|
-
"aria-pressed":
|
|
872
|
+
"aria-pressed": P(n),
|
|
873
873
|
"data-testid": `${e.testidPrefix}-bg-position-${n.y}-${n.x}`,
|
|
874
|
-
class: b(["tpl:flex tpl:h-6 tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:transition-colors",
|
|
874
|
+
class: b(["tpl:flex tpl:h-6 tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:transition-colors", P(n) ? "tpl:border-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
875
875
|
onClick: (e) => O({ position: {
|
|
876
876
|
x: n.x,
|
|
877
877
|
y: n.y
|
|
878
878
|
} })
|
|
879
|
-
}, [h("span", { class: b(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full",
|
|
879
|
+
}, [h("span", { class: b(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", P(n) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10, On))), 128))], 8, Dn)]),
|
|
880
880
|
e.heroMode ? w("", !0) : (t(), g("div", {
|
|
881
881
|
key: 1,
|
|
882
882
|
"data-testid": `${e.testidPrefix}-bg-repeat`
|
|
@@ -885,10 +885,10 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
885
885
|
"model-value": e.modelValue.repeat,
|
|
886
886
|
label: m(s).blockSettings.backgroundRepeat,
|
|
887
887
|
"onUpdate:modelValue": r[2] ||= (e) => O({ repeat: e })
|
|
888
|
-
}, null, 8, ["model-value", "label"])], 8,
|
|
888
|
+
}, null, 8, ["model-value", "label"])], 8, kn))
|
|
889
889
|
], 64)) : w("", !0)]));
|
|
890
890
|
}
|
|
891
|
-
}),
|
|
891
|
+
}), jn = ["data-testid"], Mn = { class: "tpl:mt-3" }, Nn = /* @__PURE__ */ T({
|
|
892
892
|
__name: "CollapsibleSection",
|
|
893
893
|
props: {
|
|
894
894
|
title: {},
|
|
@@ -903,30 +903,30 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
903
903
|
"data-testid": e.headerTestId,
|
|
904
904
|
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)]",
|
|
905
905
|
onClick: r[0] ||= (e) => n.$emit("toggle")
|
|
906
|
-
}, [_(m(
|
|
906
|
+
}, [_(m(Ie), {
|
|
907
907
|
class: b(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
908
908
|
size: 12,
|
|
909
909
|
"stroke-width": 2
|
|
910
|
-
}, null, 8, ["class"]), h("span", null, y(e.title), 1)], 8,
|
|
910
|
+
}, null, 8, ["class"]), h("span", null, y(e.title), 1)], 8, jn), u(h("div", Mn, [s(n.$slots, "default")], 512), [[D, e.open]])], 2));
|
|
911
911
|
}
|
|
912
|
-
}),
|
|
912
|
+
}), Pn = {
|
|
913
913
|
key: 0,
|
|
914
914
|
"data-testid": "section-hero-columns-note",
|
|
915
915
|
class: "tpl:mt-3.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
916
|
-
},
|
|
916
|
+
}, Fn = {
|
|
917
917
|
key: 1,
|
|
918
918
|
"data-testid": "section-hero",
|
|
919
919
|
class: "tpl:mt-3.5 tpl:space-y-3.5"
|
|
920
|
-
},
|
|
920
|
+
}, In = { "data-testid": "section-hero-height" }, Ln = {
|
|
921
921
|
key: 0,
|
|
922
922
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
923
|
-
},
|
|
923
|
+
}, Rn = {
|
|
924
924
|
key: 1,
|
|
925
925
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
926
|
-
},
|
|
926
|
+
}, zn = {
|
|
927
927
|
key: 1,
|
|
928
928
|
"data-testid": "section-hero-align"
|
|
929
|
-
},
|
|
929
|
+
}, Bn = 300, Vn = /* @__PURE__ */ T({
|
|
930
930
|
__name: "HeroControl",
|
|
931
931
|
props: { section: {} },
|
|
932
932
|
emits: ["update"],
|
|
@@ -934,7 +934,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
934
934
|
function r(e) {
|
|
935
935
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
936
936
|
}
|
|
937
|
-
let i = e, a = n, { t: o } = B(), s = l(
|
|
937
|
+
let i = e, a = n, { t: o } = B(), s = l(Ee, N.liquid), c = l(Oe, null), u = l(Ce, void 0), d = xn(), f = C(() => typeof i.section.backgroundImage?.url == "string" ? i.section.backgroundImage.url : ""), p = C(() => f.value.trim() !== ""), v = C(() => M(f.value, s)), S = C(() => i.section.hero), T = C(() => i.section.columns === "1"), E = C(() => S.value ? r(S.value.height) ? "fixed" : "image" : "fit"), D = C(() => r(S.value?.height) ? S.value.height : Bn), k = C(() => [
|
|
938
938
|
{
|
|
939
939
|
value: "fit",
|
|
940
940
|
label: o.blockSettings.heroHeightFit
|
|
@@ -961,17 +961,17 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
961
961
|
value: "bottom",
|
|
962
962
|
label: o.blockSettings.heroAlignBottom
|
|
963
963
|
}
|
|
964
|
-
]),
|
|
965
|
-
function
|
|
966
|
-
return (c ?
|
|
964
|
+
]), j = C(() => E.value === "image" && p.value && !v.value && O(i.section.backgroundImage) === null);
|
|
965
|
+
function P() {
|
|
966
|
+
return (c ? R(c.content.value, i.section.id, u) : null) ?? ue(c?.state.content.settings);
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function F(e) {
|
|
969
969
|
let t = S.value?.verticalAlign ?? "middle";
|
|
970
970
|
if (e === "image") {
|
|
971
971
|
E.value !== "image" && a("update", { hero: {
|
|
972
972
|
height: "image",
|
|
973
973
|
verticalAlign: t
|
|
974
|
-
} }),
|
|
974
|
+
} }), I();
|
|
975
975
|
return;
|
|
976
976
|
}
|
|
977
977
|
if (e === E.value) return;
|
|
@@ -979,19 +979,19 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
979
979
|
a("update", { hero: void 0 });
|
|
980
980
|
return;
|
|
981
981
|
}
|
|
982
|
-
let n = O(i.section.backgroundImage), r = n === null ?
|
|
982
|
+
let n = O(i.section.backgroundImage), r = n === null ? Bn : Math.round(P() * n);
|
|
983
983
|
a("update", { hero: {
|
|
984
984
|
height: r,
|
|
985
985
|
verticalAlign: t
|
|
986
986
|
} });
|
|
987
987
|
}
|
|
988
|
-
async function
|
|
988
|
+
async function I() {
|
|
989
989
|
let e = i.section.backgroundImage;
|
|
990
990
|
if (!e || !p.value || v.value || O(e) !== null) return;
|
|
991
991
|
let t = e.url, n = await d(t), r = i.section.backgroundImage;
|
|
992
992
|
n && r && r.url === t && a("update", { backgroundImage: {
|
|
993
993
|
...r,
|
|
994
|
-
...
|
|
994
|
+
..._e(n)
|
|
995
995
|
} });
|
|
996
996
|
}
|
|
997
997
|
function ee(e) {
|
|
@@ -1006,15 +1006,15 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1006
1006
|
verticalAlign: e
|
|
1007
1007
|
} });
|
|
1008
1008
|
}
|
|
1009
|
-
return (e, n) => !T.value && S.value ? (t(), g("p",
|
|
1010
|
-
h("div",
|
|
1009
|
+
return (e, n) => !T.value && S.value ? (t(), g("p", Pn, y(m(o).section.heroNeedsOneColumn), 1)) : T.value && (p.value || S.value) ? (t(), g("div", Fn, [
|
|
1010
|
+
h("div", In, [
|
|
1011
1011
|
h("label", { class: b(m(U)) }, y(m(o).blockSettings.heroHeight), 3),
|
|
1012
1012
|
_(Y, {
|
|
1013
1013
|
options: k.value,
|
|
1014
1014
|
"model-value": E.value,
|
|
1015
|
-
"onUpdate:modelValue":
|
|
1015
|
+
"onUpdate:modelValue": F
|
|
1016
1016
|
}, null, 8, ["options", "model-value"]),
|
|
1017
|
-
v.value ? (t(), g("p",
|
|
1017
|
+
v.value ? (t(), g("p", Ln, y(m(o).blockSettings.heroMatchImageMergeTag), 1)) : j.value ? (t(), g("p", Rn, y(m(o).blockSettings.heroSizeUnknown), 1)) : w("", !0)
|
|
1018
1018
|
]),
|
|
1019
1019
|
E.value === "fixed" ? (t(), x(X, {
|
|
1020
1020
|
key: 0,
|
|
@@ -1024,26 +1024,26 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1024
1024
|
testid: "section-hero-height-px",
|
|
1025
1025
|
"onUpdate:modelValue": ee
|
|
1026
1026
|
}, null, 8, ["model-value"])) : w("", !0),
|
|
1027
|
-
S.value ? (t(), g("div",
|
|
1027
|
+
S.value ? (t(), g("div", zn, [h("label", { class: b(m(U)) }, y(m(o).blockSettings.heroAlign), 3), _(Y, {
|
|
1028
1028
|
options: A.value,
|
|
1029
1029
|
"model-value": S.value.verticalAlign,
|
|
1030
1030
|
"onUpdate:modelValue": te
|
|
1031
1031
|
}, null, 8, ["options", "model-value"])])) : w("", !0)
|
|
1032
1032
|
])) : w("", !0);
|
|
1033
1033
|
}
|
|
1034
|
-
}),
|
|
1034
|
+
}), Hn = { class: "tpl:space-y-2" }, Un = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Wn = { class: "tpl:space-y-2" }, Gn = ["value"], Kn = { value: "" }, qn = ["label"], Jn = ["value"], Yn = ["value"], Xn = {
|
|
1035
1035
|
key: 0,
|
|
1036
1036
|
value: "__custom__"
|
|
1037
|
-
},
|
|
1037
|
+
}, Zn = {
|
|
1038
1038
|
key: 0,
|
|
1039
1039
|
class: "tpl:space-y-2"
|
|
1040
|
-
},
|
|
1040
|
+
}, Qn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, $n = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, er = { class: "tpl:flex tpl:justify-end" }, tr = ["disabled"], nr = {
|
|
1041
1041
|
key: 0,
|
|
1042
1042
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1043
|
-
},
|
|
1043
|
+
}, rr = { class: "tpl:space-y-1" }, ir = { 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)]" }, ar = {
|
|
1044
1044
|
key: 0,
|
|
1045
1045
|
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)]"
|
|
1046
|
-
},
|
|
1046
|
+
}, or = /* @__PURE__ */ T({
|
|
1047
1047
|
__name: "CommonBlockSettings",
|
|
1048
1048
|
props: {
|
|
1049
1049
|
block: {},
|
|
@@ -1051,21 +1051,21 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1051
1051
|
},
|
|
1052
1052
|
emits: ["update"],
|
|
1053
1053
|
setup(e, { emit: n }) {
|
|
1054
|
-
let a = e, s = n, { t: p } = B(), T = l(
|
|
1054
|
+
let a = e, s = n, { t: p } = B(), T = l(ke, []), D = l(Ae, !1), O = d(/* @__PURE__ */ new Set()), k = f(!1), A = f(""), j = f(""), M = [{
|
|
1055
1055
|
key: "desktop",
|
|
1056
|
-
icon:
|
|
1056
|
+
icon: Ue,
|
|
1057
1057
|
labelKey: "showOnDesktop"
|
|
1058
1058
|
}, {
|
|
1059
1059
|
key: "mobile",
|
|
1060
|
-
icon:
|
|
1060
|
+
icon: We,
|
|
1061
1061
|
labelKey: "showOnMobile"
|
|
1062
1062
|
}];
|
|
1063
1063
|
function N(e) {
|
|
1064
1064
|
O.has(e) ? O.delete(e) : O.add(e);
|
|
1065
1065
|
}
|
|
1066
|
-
let P = C(() => T.length > 0 || D),
|
|
1066
|
+
let P = C(() => T.length > 0 || D), I = C(() => a.block.displayCondition ? !T.some((e) => e.label === a.block.displayCondition?.label) : !1);
|
|
1067
1067
|
function ee() {
|
|
1068
|
-
k.value = !0,
|
|
1068
|
+
k.value = !0, I.value && a.block.displayCondition ? (A.value = a.block.displayCondition.before, j.value = a.block.displayCondition.after ?? "") : (A.value = "", j.value = "");
|
|
1069
1069
|
}
|
|
1070
1070
|
function te() {
|
|
1071
1071
|
A.value.trim() && (s("update", { displayCondition: {
|
|
@@ -1075,43 +1075,43 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1075
1075
|
} }), k.value = !1, A.value = "", j.value = "");
|
|
1076
1076
|
}
|
|
1077
1077
|
c(() => a.block.displayCondition, (e) => {
|
|
1078
|
-
e ?
|
|
1078
|
+
e ? I.value && (A.value = e.before, j.value = e.after ?? "") : (k.value = !1, A.value = "", j.value = "");
|
|
1079
1079
|
}, { immediate: !0 });
|
|
1080
|
-
let
|
|
1080
|
+
let ne = C(() => {
|
|
1081
1081
|
let e = {};
|
|
1082
1082
|
for (let t of T) {
|
|
1083
1083
|
let n = t.group ?? "";
|
|
1084
1084
|
e[n] || (e[n] = []), e[n].push(t);
|
|
1085
1085
|
}
|
|
1086
1086
|
return e;
|
|
1087
|
-
}),
|
|
1088
|
-
function
|
|
1087
|
+
}), L = C(() => a.block.type === "section" && F(a.block)?.applied === !0);
|
|
1088
|
+
function re(e, t) {
|
|
1089
1089
|
s("update", { styles: {
|
|
1090
1090
|
...a.block.styles,
|
|
1091
1091
|
[e]: t
|
|
1092
1092
|
} });
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function ie(e) {
|
|
1095
1095
|
return a.block.visibility?.[e] !== !1;
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1097
|
+
function ae(e) {
|
|
1098
1098
|
let t = {
|
|
1099
|
-
desktop:
|
|
1100
|
-
mobile:
|
|
1099
|
+
desktop: ie("desktop"),
|
|
1100
|
+
mobile: ie("mobile")
|
|
1101
1101
|
};
|
|
1102
1102
|
t[e] = !t[e], s("update", { visibility: t });
|
|
1103
1103
|
}
|
|
1104
1104
|
return (n, a) => (t(), g("div", { class: b(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1105
|
-
_(
|
|
1105
|
+
_(Nn, {
|
|
1106
1106
|
title: m(p).blockSettings.spacing,
|
|
1107
1107
|
open: O.has("spacing"),
|
|
1108
1108
|
"no-border": e.isFirstSection,
|
|
1109
1109
|
onToggle: a[1] ||= (e) => N("spacing")
|
|
1110
1110
|
}, {
|
|
1111
|
-
default: r(() => [_(
|
|
1111
|
+
default: r(() => [_(yn, {
|
|
1112
1112
|
label: m(p).blockSettings.padding,
|
|
1113
1113
|
"model-value": e.block.styles.padding,
|
|
1114
|
-
"onUpdate:modelValue": a[0] ||= (e) =>
|
|
1114
|
+
"onUpdate:modelValue": a[0] ||= (e) => re("padding", e)
|
|
1115
1115
|
}, null, 8, ["label", "model-value"])]),
|
|
1116
1116
|
_: 1
|
|
1117
1117
|
}, 8, [
|
|
@@ -1119,7 +1119,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1119
1119
|
"open",
|
|
1120
1120
|
"no-border"
|
|
1121
1121
|
]),
|
|
1122
|
-
_(
|
|
1122
|
+
_(Nn, {
|
|
1123
1123
|
title: m(p).blockSettings.background,
|
|
1124
1124
|
open: O.has("bg"),
|
|
1125
1125
|
"header-test-id": "block-settings-background",
|
|
@@ -1130,18 +1130,18 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1130
1130
|
_(V, {
|
|
1131
1131
|
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1132
1132
|
"allow-transparent": "",
|
|
1133
|
-
"onUpdate:modelValue": a[2] ||= (e) =>
|
|
1133
|
+
"onUpdate:modelValue": a[2] ||= (e) => re("backgroundColor", e)
|
|
1134
1134
|
}, null, 8, ["model-value"]),
|
|
1135
|
-
e.block.type === "section" ? (t(), x(
|
|
1135
|
+
e.block.type === "section" ? (t(), x(An, {
|
|
1136
1136
|
key: 0,
|
|
1137
1137
|
class: "tpl:mt-3.5",
|
|
1138
1138
|
"model-value": e.block.backgroundImage,
|
|
1139
1139
|
"testid-prefix": "section",
|
|
1140
1140
|
measure: "",
|
|
1141
|
-
"hero-mode":
|
|
1141
|
+
"hero-mode": L.value,
|
|
1142
1142
|
"onUpdate:modelValue": a[3] ||= (e) => s("update", { backgroundImage: e })
|
|
1143
1143
|
}, null, 8, ["model-value", "hero-mode"])) : w("", !0),
|
|
1144
|
-
e.block.type === "section" ? (t(), x(
|
|
1144
|
+
e.block.type === "section" ? (t(), x(Vn, {
|
|
1145
1145
|
key: 1,
|
|
1146
1146
|
section: e.block,
|
|
1147
1147
|
onUpdate: a[4] ||= (e) => s("update", e)
|
|
@@ -1149,19 +1149,19 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1149
1149
|
]),
|
|
1150
1150
|
_: 1
|
|
1151
1151
|
}, 8, ["title", "open"]),
|
|
1152
|
-
_(
|
|
1152
|
+
_(Nn, {
|
|
1153
1153
|
title: m(p).blockSettings.display,
|
|
1154
1154
|
open: O.has("display"),
|
|
1155
1155
|
onToggle: a[6] ||= (e) => N("display")
|
|
1156
1156
|
}, {
|
|
1157
|
-
default: r(() => [h("div",
|
|
1157
|
+
default: r(() => [h("div", Hn, [(t(), g(S, null, o(M, (e) => _(q, {
|
|
1158
1158
|
key: e.key,
|
|
1159
1159
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1160
|
-
"model-value":
|
|
1160
|
+
"model-value": ie(e.key),
|
|
1161
1161
|
label: m(p).blockSettings[e.labelKey],
|
|
1162
|
-
"onUpdate:modelValue": (t) =>
|
|
1162
|
+
"onUpdate:modelValue": (t) => ae(e.key)
|
|
1163
1163
|
}, {
|
|
1164
|
-
default: r(() => [h("span",
|
|
1164
|
+
default: r(() => [h("span", Un, [(t(), x(i(e.icon), {
|
|
1165
1165
|
size: 14,
|
|
1166
1166
|
"stroke-width": 1.5
|
|
1167
1167
|
})), v(" " + y(m(p).blockSettings[e.labelKey]), 1)])]),
|
|
@@ -1173,17 +1173,17 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1173
1173
|
])), 64))])]),
|
|
1174
1174
|
_: 1
|
|
1175
1175
|
}, 8, ["title", "open"]),
|
|
1176
|
-
P.value ? (t(), x(
|
|
1176
|
+
P.value ? (t(), x(Nn, {
|
|
1177
1177
|
key: 0,
|
|
1178
1178
|
"header-test-id": "display-condition-section",
|
|
1179
1179
|
title: m(p).blockSettings.displayCondition,
|
|
1180
1180
|
open: O.has("condition"),
|
|
1181
1181
|
onToggle: a[10] ||= (e) => N("condition")
|
|
1182
1182
|
}, {
|
|
1183
|
-
default: r(() => [h("div",
|
|
1183
|
+
default: r(() => [h("div", Wn, [h("select", {
|
|
1184
1184
|
"data-testid": "display-condition-select",
|
|
1185
1185
|
class: b(["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)]"]),
|
|
1186
|
-
value: k.value ||
|
|
1186
|
+
value: k.value || I.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1187
1187
|
onChange: a[7] ||= (e) => {
|
|
1188
1188
|
let t = e.target.value;
|
|
1189
1189
|
if (t === "__custom__") {
|
|
@@ -1198,41 +1198,41 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1198
1198
|
n && s("update", { displayCondition: n });
|
|
1199
1199
|
}
|
|
1200
1200
|
}, [
|
|
1201
|
-
h("option",
|
|
1202
|
-
(t(!0), g(S, null, o(
|
|
1201
|
+
h("option", Kn, y(m(p).blockSettings.noCondition), 1),
|
|
1202
|
+
(t(!0), g(S, null, o(ne.value, (e, n) => (t(), g(S, { key: n }, [n ? (t(), g("optgroup", {
|
|
1203
1203
|
key: 0,
|
|
1204
1204
|
label: String(n)
|
|
1205
1205
|
}, [(t(!0), g(S, null, o(e, (e) => (t(), g("option", {
|
|
1206
1206
|
key: e.label,
|
|
1207
1207
|
value: e.label
|
|
1208
|
-
}, y(e.label), 9,
|
|
1208
|
+
}, y(e.label), 9, Jn))), 128))], 8, qn)) : (t(!0), g(S, { key: 1 }, o(e, (e) => (t(), g("option", {
|
|
1209
1209
|
key: e.label,
|
|
1210
1210
|
value: e.label
|
|
1211
|
-
}, y(e.label), 9,
|
|
1212
|
-
m(D) ? (t(), g("option",
|
|
1213
|
-
], 42,
|
|
1214
|
-
h("div", null, [h("label",
|
|
1211
|
+
}, y(e.label), 9, Yn))), 128))], 64))), 128)),
|
|
1212
|
+
m(D) ? (t(), g("option", Xn, y(m(p).blockSettings.customCondition), 1)) : w("", !0)
|
|
1213
|
+
], 42, Gn), k.value || I.value ? (t(), g("div", Zn, [
|
|
1214
|
+
h("div", null, [h("label", Qn, y(m(p).blockSettings.customConditionBefore), 1), u(h("textarea", {
|
|
1215
1215
|
"onUpdate:modelValue": a[8] ||= (e) => A.value = e,
|
|
1216
1216
|
rows: "2",
|
|
1217
|
-
class: b(m(
|
|
1217
|
+
class: b(m($e))
|
|
1218
1218
|
}, null, 2), [[E, A.value]])]),
|
|
1219
|
-
h("div", null, [h("label",
|
|
1219
|
+
h("div", null, [h("label", $n, y(m(p).blockSettings.customConditionAfter), 1), u(h("textarea", {
|
|
1220
1220
|
"onUpdate:modelValue": a[9] ||= (e) => j.value = e,
|
|
1221
1221
|
rows: "2",
|
|
1222
|
-
class: b(m(
|
|
1222
|
+
class: b(m($e))
|
|
1223
1223
|
}, null, 2), [[E, j.value]])]),
|
|
1224
|
-
h("div",
|
|
1224
|
+
h("div", er, [h("button", {
|
|
1225
1225
|
type: "button",
|
|
1226
|
-
class: b(m(
|
|
1226
|
+
class: b(m(rt)),
|
|
1227
1227
|
disabled: !A.value.trim(),
|
|
1228
1228
|
onClick: te
|
|
1229
|
-
}, y(m(p).blockSettings.applyCondition), 11,
|
|
1230
|
-
])) : e.block.displayCondition && !
|
|
1229
|
+
}, y(m(p).blockSettings.applyCondition), 11, tr)])
|
|
1230
|
+
])) : e.block.displayCondition && !I.value ? (t(), g(S, { key: 1 }, [e.block.displayCondition.description ? (t(), g("p", nr, y(e.block.displayCondition.description), 1)) : w("", !0), h("div", rr, [h("pre", ir, y(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (t(), g("pre", ar, y(e.block.displayCondition.after), 1)) : w("", !0)])], 64)) : w("", !0)])]),
|
|
1231
1231
|
_: 1
|
|
1232
1232
|
}, 8, ["title", "open"])) : w("", !0)
|
|
1233
1233
|
], 2));
|
|
1234
1234
|
}
|
|
1235
|
-
}),
|
|
1235
|
+
}), sr = ["title"], cr = /* @__PURE__ */ T({
|
|
1236
1236
|
__name: "BooleanField",
|
|
1237
1237
|
props: {
|
|
1238
1238
|
field: {},
|
|
@@ -1253,7 +1253,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1253
1253
|
disabled: e.readOnly,
|
|
1254
1254
|
"onUpdate:modelValue": o[0] ||= (e) => i("update:modelValue", e)
|
|
1255
1255
|
}, {
|
|
1256
|
-
default: r(() => [v(y(e.field.label) + " ", 1), e.readOnly ? (t(), x(m(
|
|
1256
|
+
default: r(() => [v(y(e.field.label) + " ", 1), e.readOnly ? (t(), x(m(ct), {
|
|
1257
1257
|
key: 0,
|
|
1258
1258
|
size: 12,
|
|
1259
1259
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1264,9 +1264,9 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1264
1264
|
"label",
|
|
1265
1265
|
"required",
|
|
1266
1266
|
"disabled"
|
|
1267
|
-
])], 8,
|
|
1267
|
+
])], 8, sr));
|
|
1268
1268
|
}
|
|
1269
|
-
}),
|
|
1269
|
+
}), lr = { class: "tpl:mb-3.5" }, ur = ["title"], dr = { class: "tpl-sr-only" }, fr = ["title"], pr = { class: "tpl-sr-only" }, Q = /* @__PURE__ */ T({
|
|
1270
1270
|
__name: "FieldWrapper",
|
|
1271
1271
|
props: {
|
|
1272
1272
|
label: {},
|
|
@@ -1275,24 +1275,24 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1275
1275
|
},
|
|
1276
1276
|
setup(e) {
|
|
1277
1277
|
let { t: n } = B();
|
|
1278
|
-
return (r, i) => (t(), g("div",
|
|
1278
|
+
return (r, i) => (t(), g("div", lr, [h("label", { class: b(m(U)) }, [
|
|
1279
1279
|
v(y(e.label) + " ", 1),
|
|
1280
1280
|
e.readOnly ? (t(), g("span", {
|
|
1281
1281
|
key: 0,
|
|
1282
1282
|
title: m(n).customBlocks.dataSource.readOnlyTooltip
|
|
1283
|
-
}, [_(m(
|
|
1283
|
+
}, [_(m(ct), {
|
|
1284
1284
|
size: 12,
|
|
1285
1285
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1286
1286
|
"aria-hidden": "true"
|
|
1287
|
-
}), h("span",
|
|
1287
|
+
}), h("span", dr, y(m(n).customBlocks.dataSource.readOnlyTooltip), 1)], 8, ur)) : w("", !0),
|
|
1288
1288
|
e.required ? (t(), g("span", {
|
|
1289
1289
|
key: 1,
|
|
1290
1290
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
1291
1291
|
title: m(n).customBlocks.fields.required
|
|
1292
|
-
}, [i[0] ||= h("span", { "aria-hidden": "true" }, "*", -1), h("span",
|
|
1292
|
+
}, [i[0] ||= h("span", { "aria-hidden": "true" }, "*", -1), h("span", pr, y(m(n).customBlocks.fields.required), 1)], 8, fr)) : w("", !0)
|
|
1293
1293
|
], 2), s(r.$slots, "default")]));
|
|
1294
1294
|
}
|
|
1295
|
-
}),
|
|
1295
|
+
}), mr = /* @__PURE__ */ T({
|
|
1296
1296
|
__name: "ColorField",
|
|
1297
1297
|
props: {
|
|
1298
1298
|
field: {},
|
|
@@ -1301,7 +1301,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1301
1301
|
},
|
|
1302
1302
|
emits: ["update:modelValue"],
|
|
1303
1303
|
setup(e, { emit: n }) {
|
|
1304
|
-
let i = e, a = n, { t: o } = B(), s = l(
|
|
1304
|
+
let i = e, a = n, { t: o } = B(), s = l(De, Pe), c = C(() => z(i.field, s));
|
|
1305
1305
|
return (n, i) => (t(), x(Q, {
|
|
1306
1306
|
label: e.field.label,
|
|
1307
1307
|
required: e.field.required,
|
|
@@ -1330,11 +1330,11 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1330
1330
|
"read-only"
|
|
1331
1331
|
]));
|
|
1332
1332
|
}
|
|
1333
|
-
}),
|
|
1333
|
+
}), hr = [
|
|
1334
1334
|
"value",
|
|
1335
1335
|
"placeholder",
|
|
1336
1336
|
"title"
|
|
1337
|
-
],
|
|
1337
|
+
], gr = ["value", "placeholder"], _r = /* @__PURE__ */ T({
|
|
1338
1338
|
__name: "ImageField",
|
|
1339
1339
|
props: {
|
|
1340
1340
|
field: {},
|
|
@@ -1358,7 +1358,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1358
1358
|
ref: s,
|
|
1359
1359
|
class: "tpl:relative"
|
|
1360
1360
|
}, [
|
|
1361
|
-
m(u) ? (t(), x(
|
|
1361
|
+
m(u) ? (t(), x(ye, {
|
|
1362
1362
|
key: 0,
|
|
1363
1363
|
uploading: m(l)
|
|
1364
1364
|
}, null, 8, ["uploading"])) : w("", !0),
|
|
@@ -1370,14 +1370,14 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1370
1370
|
placeholder: e.field.placeholder || "https://...",
|
|
1371
1371
|
disabled: "",
|
|
1372
1372
|
title: m(o).customBlocks.dataSource.readOnlyTooltip
|
|
1373
|
-
}, null, 10,
|
|
1373
|
+
}, null, 10, hr)) : (t(), g("input", {
|
|
1374
1374
|
key: 2,
|
|
1375
1375
|
type: "url",
|
|
1376
1376
|
class: b(m(K)),
|
|
1377
1377
|
value: e.modelValue,
|
|
1378
1378
|
placeholder: e.field.placeholder || "https://...",
|
|
1379
1379
|
onInput: i[0] ||= (e) => a("update:modelValue", e.target.value)
|
|
1380
|
-
}, null, 42,
|
|
1380
|
+
}, null, 42, gr)),
|
|
1381
1381
|
m(c) && !e.readOnly ? (t(), g("button", {
|
|
1382
1382
|
key: 3,
|
|
1383
1383
|
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)]",
|
|
@@ -1394,7 +1394,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1394
1394
|
"read-only"
|
|
1395
1395
|
]));
|
|
1396
1396
|
}
|
|
1397
|
-
}),
|
|
1397
|
+
}), vr = [
|
|
1398
1398
|
"value",
|
|
1399
1399
|
"placeholder",
|
|
1400
1400
|
"min",
|
|
@@ -1402,7 +1402,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1402
1402
|
"step",
|
|
1403
1403
|
"disabled",
|
|
1404
1404
|
"title"
|
|
1405
|
-
],
|
|
1405
|
+
], yr = /* @__PURE__ */ T({
|
|
1406
1406
|
__name: "NumberField",
|
|
1407
1407
|
props: {
|
|
1408
1408
|
field: {},
|
|
@@ -1428,7 +1428,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1428
1428
|
disabled: e.readOnly,
|
|
1429
1429
|
title: e.readOnly ? m(a).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1430
1430
|
onInput: o[0] ||= (t) => !e.readOnly && i("update:modelValue", Number(t.target.value))
|
|
1431
|
-
}, null, 42,
|
|
1431
|
+
}, null, 42, vr)]),
|
|
1432
1432
|
_: 1
|
|
1433
1433
|
}, 8, [
|
|
1434
1434
|
"label",
|
|
@@ -1436,13 +1436,13 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1436
1436
|
"read-only"
|
|
1437
1437
|
]));
|
|
1438
1438
|
}
|
|
1439
|
-
}),
|
|
1439
|
+
}), br = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, xr = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Sr = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Cr = ["title", "onClick"], wr = {
|
|
1440
1440
|
key: 1,
|
|
1441
1441
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1442
|
-
},
|
|
1442
|
+
}, Tr = {
|
|
1443
1443
|
key: 2,
|
|
1444
1444
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1445
|
-
},
|
|
1445
|
+
}, Er = /* @__PURE__ */ T({
|
|
1446
1446
|
__name: "RepeatableField",
|
|
1447
1447
|
props: {
|
|
1448
1448
|
field: {},
|
|
@@ -1475,20 +1475,20 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1475
1475
|
required: e.field.required,
|
|
1476
1476
|
"read-only": e.readOnly
|
|
1477
1477
|
}, {
|
|
1478
|
-
default: r(() => [h("div",
|
|
1478
|
+
default: r(() => [h("div", br, [
|
|
1479
1479
|
(t(!0), g(S, null, o(u.value, (n, r) => (t(), g("div", {
|
|
1480
1480
|
key: `${e.field.key}-${r}`,
|
|
1481
1481
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1482
|
-
}, [h("div",
|
|
1482
|
+
}, [h("div", xr, [h("span", Sr, " #" + y(r + 1), 1), f.value && !e.readOnly ? (t(), g("button", {
|
|
1483
1483
|
key: 0,
|
|
1484
1484
|
type: "button",
|
|
1485
1485
|
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)]",
|
|
1486
1486
|
title: m(c).customBlocks.fields.removeItem,
|
|
1487
1487
|
onClick: (e) => T(r)
|
|
1488
|
-
}, [_(m(
|
|
1488
|
+
}, [_(m(Ye), {
|
|
1489
1489
|
size: 12,
|
|
1490
1490
|
"stroke-width": 2
|
|
1491
|
-
})], 8,
|
|
1491
|
+
})], 8, Cr)) : w("", !0)]), (t(!0), g(S, null, o(e.field.fields, (a) => (t(), x(i(m(Fr)(a.type)), {
|
|
1492
1492
|
key: a.key,
|
|
1493
1493
|
field: a,
|
|
1494
1494
|
"model-value": n[a.key],
|
|
@@ -1503,14 +1503,14 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1503
1503
|
d.value && !e.readOnly ? (t(), g("button", {
|
|
1504
1504
|
key: 0,
|
|
1505
1505
|
type: "button",
|
|
1506
|
-
class: b(m(
|
|
1506
|
+
class: b(m(tt)),
|
|
1507
1507
|
onClick: p
|
|
1508
1508
|
}, [_(m(H), {
|
|
1509
1509
|
size: 14,
|
|
1510
1510
|
"stroke-width": 2
|
|
1511
1511
|
}), v(" " + y(m(c).customBlocks.fields.addItem), 1)], 2)) : w("", !0),
|
|
1512
|
-
!d.value && !e.readOnly ? (t(), g("p",
|
|
1513
|
-
!f.value && !e.readOnly ? (t(), g("p",
|
|
1512
|
+
!d.value && !e.readOnly ? (t(), g("p", wr, y(m(c).customBlocks.fields.maxItemsReached), 1)) : w("", !0),
|
|
1513
|
+
!f.value && !e.readOnly ? (t(), g("p", Tr, y(m(l)(m(c).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : w("", !0)
|
|
1514
1514
|
])]),
|
|
1515
1515
|
_: 1
|
|
1516
1516
|
}, 8, [
|
|
@@ -1519,11 +1519,11 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1519
1519
|
"read-only"
|
|
1520
1520
|
]));
|
|
1521
1521
|
}
|
|
1522
|
-
}),
|
|
1522
|
+
}), Dr = [
|
|
1523
1523
|
"value",
|
|
1524
1524
|
"disabled",
|
|
1525
1525
|
"title"
|
|
1526
|
-
],
|
|
1526
|
+
], Or = ["value"], kr = /* @__PURE__ */ T({
|
|
1527
1527
|
__name: "SelectField",
|
|
1528
1528
|
props: {
|
|
1529
1529
|
field: {},
|
|
@@ -1547,7 +1547,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1547
1547
|
}, [(t(!0), g(S, null, o(e.field.options, (e) => (t(), g("option", {
|
|
1548
1548
|
key: e.value,
|
|
1549
1549
|
value: e.value
|
|
1550
|
-
}, y(e.label), 9,
|
|
1550
|
+
}, y(e.label), 9, Or))), 128))], 42, Dr)]),
|
|
1551
1551
|
_: 1
|
|
1552
1552
|
}, 8, [
|
|
1553
1553
|
"label",
|
|
@@ -1555,11 +1555,11 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1555
1555
|
"read-only"
|
|
1556
1556
|
]));
|
|
1557
1557
|
}
|
|
1558
|
-
}),
|
|
1558
|
+
}), Ar = [
|
|
1559
1559
|
"value",
|
|
1560
1560
|
"placeholder",
|
|
1561
1561
|
"title"
|
|
1562
|
-
],
|
|
1562
|
+
], jr = /* @__PURE__ */ T({
|
|
1563
1563
|
__name: "TextField",
|
|
1564
1564
|
props: {
|
|
1565
1565
|
field: {},
|
|
@@ -1582,7 +1582,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1582
1582
|
placeholder: e.field.placeholder,
|
|
1583
1583
|
disabled: "",
|
|
1584
1584
|
title: m(a).customBlocks.dataSource.readOnlyTooltip
|
|
1585
|
-
}, null, 10,
|
|
1585
|
+
}, null, 10, Ar)) : (t(), x(J, {
|
|
1586
1586
|
key: 1,
|
|
1587
1587
|
"model-value": e.modelValue,
|
|
1588
1588
|
placeholder: e.field.placeholder,
|
|
@@ -1595,12 +1595,12 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1595
1595
|
"read-only"
|
|
1596
1596
|
]));
|
|
1597
1597
|
}
|
|
1598
|
-
}),
|
|
1598
|
+
}), Mr = [
|
|
1599
1599
|
"value",
|
|
1600
1600
|
"placeholder",
|
|
1601
1601
|
"title"
|
|
1602
|
-
],
|
|
1603
|
-
text:
|
|
1602
|
+
], Nr = "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", Pr = {
|
|
1603
|
+
text: jr,
|
|
1604
1604
|
textarea: /* @__PURE__ */ T({
|
|
1605
1605
|
__name: "TextareaField",
|
|
1606
1606
|
props: {
|
|
@@ -1623,8 +1623,8 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1623
1623
|
rows: "3",
|
|
1624
1624
|
disabled: "",
|
|
1625
1625
|
title: m(a).customBlocks.dataSource.readOnlyTooltip,
|
|
1626
|
-
class: b(
|
|
1627
|
-
}, null, 8,
|
|
1626
|
+
class: b(Nr)
|
|
1627
|
+
}, null, 8, Mr)) : (t(), x(it, {
|
|
1628
1628
|
key: 1,
|
|
1629
1629
|
"model-value": e.modelValue,
|
|
1630
1630
|
placeholder: e.field.placeholder,
|
|
@@ -1638,42 +1638,42 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1638
1638
|
]));
|
|
1639
1639
|
}
|
|
1640
1640
|
}),
|
|
1641
|
-
image:
|
|
1642
|
-
color:
|
|
1643
|
-
number:
|
|
1644
|
-
select:
|
|
1645
|
-
boolean:
|
|
1646
|
-
repeatable:
|
|
1641
|
+
image: _r,
|
|
1642
|
+
color: mr,
|
|
1643
|
+
number: yr,
|
|
1644
|
+
select: kr,
|
|
1645
|
+
boolean: cr,
|
|
1646
|
+
repeatable: Er
|
|
1647
1647
|
};
|
|
1648
|
-
function
|
|
1649
|
-
return
|
|
1648
|
+
function Fr(e) {
|
|
1649
|
+
return Pr[e] ?? jr;
|
|
1650
1650
|
}
|
|
1651
1651
|
//#endregion
|
|
1652
1652
|
//#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1653
|
-
var
|
|
1653
|
+
var Ir = {
|
|
1654
1654
|
key: 0,
|
|
1655
1655
|
class: "tpl:p-4"
|
|
1656
|
-
},
|
|
1656
|
+
}, Lr = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Rr = { key: 1 }, zr = {
|
|
1657
1657
|
key: 0,
|
|
1658
1658
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1659
|
-
},
|
|
1659
|
+
}, Br = {
|
|
1660
1660
|
key: 1,
|
|
1661
1661
|
class: "tpl:mb-4"
|
|
1662
|
-
},
|
|
1662
|
+
}, Vr = {
|
|
1663
1663
|
key: 1,
|
|
1664
1664
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
1665
|
-
},
|
|
1665
|
+
}, Hr = {
|
|
1666
1666
|
key: 0,
|
|
1667
1667
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1668
|
-
},
|
|
1668
|
+
}, Ur = {
|
|
1669
1669
|
key: 2,
|
|
1670
1670
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
1671
|
-
},
|
|
1671
|
+
}, Wr = /* @__PURE__ */ T({
|
|
1672
1672
|
__name: "CustomBlockToolbar",
|
|
1673
1673
|
props: { block: {} },
|
|
1674
1674
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1675
1675
|
setup(e, { emit: n }) {
|
|
1676
|
-
let r = e, a = n, { t: s } = B(), c = l(
|
|
1676
|
+
let r = e, a = n, { t: s } = B(), c = l(je, []), u = C(() => c.find((e) => e.type === r.block.customType)), d = C(() => r.block), { isFetching: f, fetchError: p, fetch: b, hasDataSource: T, needsFetch: E } = ce({
|
|
1677
1677
|
definition: u,
|
|
1678
1678
|
block: d,
|
|
1679
1679
|
onUpdate: (e, t) => {
|
|
@@ -1689,23 +1689,23 @@ var Fr = {
|
|
|
1689
1689
|
[e]: t
|
|
1690
1690
|
});
|
|
1691
1691
|
}
|
|
1692
|
-
return (n, r) => u.value ? (t(), g("div",
|
|
1693
|
-
u.value.description ? (t(), g("p",
|
|
1694
|
-
m(T) ? (t(), g("div",
|
|
1692
|
+
return (n, r) => u.value ? (t(), g("div", Rr, [
|
|
1693
|
+
u.value.description ? (t(), g("p", zr, y(u.value.description), 1)) : w("", !0),
|
|
1694
|
+
m(T) ? (t(), g("div", Br, [m(E) && !m(f) ? (t(), g("button", {
|
|
1695
1695
|
key: 0,
|
|
1696
1696
|
type: "button",
|
|
1697
1697
|
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)]",
|
|
1698
1698
|
onClick: r[0] ||= (...e) => m(b) && m(b)(...e)
|
|
1699
|
-
}, y(u.value?.dataSource?.label || m(s).customBlocks.dataSource.fetchButton), 1)) : (t(), g("div",
|
|
1699
|
+
}, y(u.value?.dataSource?.label || m(s).customBlocks.dataSource.fetchButton), 1)) : (t(), g("div", Vr, [m(f) ? (t(), g("div", Hr, y(m(s).customBlocks.dataSource.fetching), 1)) : (t(), g("button", {
|
|
1700
1700
|
key: 1,
|
|
1701
1701
|
type: "button",
|
|
1702
1702
|
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)]",
|
|
1703
1703
|
onClick: r[1] ||= (...e) => m(b) && m(b)(...e)
|
|
1704
|
-
}, [_(m(
|
|
1704
|
+
}, [_(m(Ge), { size: 12 }), v(" " + y(m(s).customBlocks.dataSource.changeButton), 1)]))])), m(p) ? (t(), g("p", Ur, [_(m(Le), {
|
|
1705
1705
|
size: 14,
|
|
1706
1706
|
class: "tpl:shrink-0"
|
|
1707
1707
|
}), v(" " + y(m(s).customBlocks.dataSource.fetchError), 1)])) : w("", !0)])) : w("", !0),
|
|
1708
|
-
(t(!0), g(S, null, o(u.value.fields, (n) => (t(), x(i(m(
|
|
1708
|
+
(t(!0), g(S, null, o(u.value.fields, (n) => (t(), x(i(m(Fr)(n.type)), {
|
|
1709
1709
|
key: n.key,
|
|
1710
1710
|
field: n,
|
|
1711
1711
|
"model-value": e.block.fieldValues[n.key],
|
|
@@ -1717,9 +1717,9 @@ var Fr = {
|
|
|
1717
1717
|
"read-only",
|
|
1718
1718
|
"onUpdate:modelValue"
|
|
1719
1719
|
]))), 128))
|
|
1720
|
-
])) : (t(), g("div",
|
|
1720
|
+
])) : (t(), g("div", Ir, [h("p", Lr, y(m(s).customBlocks.toolbar.noDefinition), 1)]));
|
|
1721
1721
|
}
|
|
1722
|
-
}),
|
|
1722
|
+
}), Gr = { class: "tpl:mb-3.5" }, Kr = { class: "tpl:mb-3.5" }, qr = { class: "tpl:mb-3.5" }, Jr = { class: "tpl:flex tpl:items-stretch" }, Yr = ["value"], Xr = /* @__PURE__ */ T({
|
|
1723
1723
|
__name: "DividerToolbar",
|
|
1724
1724
|
props: { block: {} },
|
|
1725
1725
|
emits: ["update"],
|
|
@@ -1729,7 +1729,7 @@ var Fr = {
|
|
|
1729
1729
|
r("update", { [e]: t });
|
|
1730
1730
|
}
|
|
1731
1731
|
return (n, r) => (t(), g(S, null, [
|
|
1732
|
-
h("div",
|
|
1732
|
+
h("div", Gr, [h("label", { class: b(m(U)) }, y(m(i).divider.style), 3), _(Y, {
|
|
1733
1733
|
options: [
|
|
1734
1734
|
{
|
|
1735
1735
|
value: "solid",
|
|
@@ -1747,36 +1747,36 @@ var Fr = {
|
|
|
1747
1747
|
"model-value": e.block.lineStyle,
|
|
1748
1748
|
"onUpdate:modelValue": r[0] ||= (e) => a("lineStyle", e)
|
|
1749
1749
|
}, null, 8, ["options", "model-value"])]),
|
|
1750
|
-
h("div",
|
|
1750
|
+
h("div", Kr, [h("label", { class: b(m(U)) }, y(m(i).divider.color), 3), _(V, {
|
|
1751
1751
|
"model-value": e.block.color,
|
|
1752
1752
|
"onUpdate:modelValue": r[1] ||= (e) => a("color", e)
|
|
1753
1753
|
}, null, 8, ["model-value"])]),
|
|
1754
|
-
h("div",
|
|
1754
|
+
h("div", qr, [h("label", { class: b(m(U)) }, y(m(i).divider.thickness), 3), h("div", Jr, [h("input", {
|
|
1755
1755
|
type: "number",
|
|
1756
1756
|
class: b(m(G)),
|
|
1757
1757
|
value: e.block.thickness,
|
|
1758
1758
|
min: "1",
|
|
1759
1759
|
max: "10",
|
|
1760
1760
|
onInput: r[2] ||= (e) => a("thickness", Number(e.target.value))
|
|
1761
|
-
}, null, 42,
|
|
1761
|
+
}, null, 42, Yr), h("span", { class: b(m(W)) }, "px", 2)])])
|
|
1762
1762
|
], 64));
|
|
1763
1763
|
}
|
|
1764
|
-
}),
|
|
1764
|
+
}), Zr = { class: "tpl:mb-3.5" }, Qr = ["value"], $r = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, ei = /* @__PURE__ */ T({
|
|
1765
1765
|
__name: "HtmlToolbar",
|
|
1766
1766
|
props: { block: {} },
|
|
1767
1767
|
emits: ["update"],
|
|
1768
1768
|
setup(e, { emit: n }) {
|
|
1769
1769
|
let r = n, { t: i } = B();
|
|
1770
|
-
return (n, a) => (t(), g("div",
|
|
1770
|
+
return (n, a) => (t(), g("div", Zr, [
|
|
1771
1771
|
h("label", { class: b(m(U)) }, y(m(i).html.content), 3),
|
|
1772
1772
|
h("textarea", {
|
|
1773
1773
|
value: e.block.content,
|
|
1774
1774
|
placeholder: "<div>...</div>",
|
|
1775
1775
|
rows: "10",
|
|
1776
|
-
class: b(m(
|
|
1776
|
+
class: b(m($e)),
|
|
1777
1777
|
onInput: a[0] ||= (e) => r("update", { content: e.target.value })
|
|
1778
|
-
}, null, 42,
|
|
1779
|
-
h("p",
|
|
1778
|
+
}, null, 42, Qr),
|
|
1779
|
+
h("p", $r, [_(m(Ve), {
|
|
1780
1780
|
size: 12,
|
|
1781
1781
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1782
1782
|
}), v(" " + y(m(i).html.sanitizationHint), 1)])
|
|
@@ -1785,7 +1785,7 @@ var Fr = {
|
|
|
1785
1785
|
});
|
|
1786
1786
|
//#endregion
|
|
1787
1787
|
//#region src/composables/useImageAspectLock.ts
|
|
1788
|
-
function
|
|
1788
|
+
function ti(e) {
|
|
1789
1789
|
let t = f(!1), n = f(null);
|
|
1790
1790
|
c(() => e.block().id, () => {
|
|
1791
1791
|
t.value = !1, n.value = null;
|
|
@@ -1803,7 +1803,7 @@ function ei(e) {
|
|
|
1803
1803
|
function u() {
|
|
1804
1804
|
if (ge(e.block())) return {};
|
|
1805
1805
|
let t = e.measured();
|
|
1806
|
-
return t ?
|
|
1806
|
+
return t ? _e(t) : {};
|
|
1807
1807
|
}
|
|
1808
1808
|
function d(r) {
|
|
1809
1809
|
if (n.value = null, !r) return t.value = !0, null;
|
|
@@ -1846,33 +1846,33 @@ function ei(e) {
|
|
|
1846
1846
|
}
|
|
1847
1847
|
//#endregion
|
|
1848
1848
|
//#region src/components/toolbar/ImageToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1849
|
-
var
|
|
1849
|
+
var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
1850
1850
|
key: 0,
|
|
1851
1851
|
class: "tpl:mb-3.5"
|
|
1852
|
-
},
|
|
1852
|
+
}, ii = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ai = [
|
|
1853
1853
|
"value",
|
|
1854
1854
|
"placeholder",
|
|
1855
1855
|
"title"
|
|
1856
|
-
],
|
|
1856
|
+
], oi = { class: "tpl:mb-3.5" }, si = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, ci = { class: "tpl:mb-3.5" }, li = ["value"], ui = { value: "full" }, di = { value: "custom" }, fi = {
|
|
1857
1857
|
key: 0,
|
|
1858
1858
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1859
|
-
},
|
|
1859
|
+
}, pi = ["value"], mi = { class: "tpl:mb-3.5" }, hi = {
|
|
1860
1860
|
key: 0,
|
|
1861
1861
|
class: "tpl:mb-1.5 tpl:flex tpl:items-center tpl:justify-between"
|
|
1862
|
-
},
|
|
1862
|
+
}, gi = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, _i = { class: "tpl:flex tpl:items-stretch" }, vi = ["value"], yi = {
|
|
1863
1863
|
key: 0,
|
|
1864
1864
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
1865
1865
|
role: "status",
|
|
1866
1866
|
"data-testid": "image-height-capped"
|
|
1867
|
-
},
|
|
1867
|
+
}, bi = ["value"], xi = { value: "auto" }, Si = { value: "custom" }, Ci = {
|
|
1868
1868
|
key: 4,
|
|
1869
1869
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1870
|
-
},
|
|
1870
|
+
}, wi = ["value"], Ti = { class: "tpl:mb-3.5" }, Ei = { class: "tpl:mb-3.5" }, Di = 350, Oi = 200, ki = /* @__PURE__ */ T({
|
|
1871
1871
|
__name: "ImageToolbar",
|
|
1872
1872
|
props: { block: {} },
|
|
1873
1873
|
emits: ["update"],
|
|
1874
1874
|
setup(e, { emit: n }) {
|
|
1875
|
-
let i = e, a = n, { t: o, format: s } = B(), c = l(
|
|
1875
|
+
let i = e, a = n, { t: o, format: s } = B(), c = l(Ee, N.liquid), u = l(Oe, null), d = l(Ce, void 0), p = f(!1), T = f(!1), { start: E } = xe(() => {
|
|
1876
1876
|
p.value = !1, T.value = !1;
|
|
1877
1877
|
}, 1e3, { immediate: !1 }), D = [
|
|
1878
1878
|
300,
|
|
@@ -1885,21 +1885,21 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
1885
1885
|
function A(e, t) {
|
|
1886
1886
|
a("update", { [e]: t });
|
|
1887
1887
|
}
|
|
1888
|
-
function
|
|
1888
|
+
function j(e) {
|
|
1889
1889
|
if (e === "custom") {
|
|
1890
1890
|
let e = i.block.width;
|
|
1891
|
-
(typeof e != "number" || D.includes(e)) && a("update", R.widthUpdates(
|
|
1891
|
+
(typeof e != "number" || D.includes(e)) && a("update", R.widthUpdates(Di));
|
|
1892
1892
|
} else a("update", R.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
1893
1893
|
}
|
|
1894
|
-
function N(e) {
|
|
1895
|
-
A("height", e === "custom" ? Di : void 0);
|
|
1896
|
-
}
|
|
1897
1894
|
function P(e) {
|
|
1895
|
+
A("height", e === "custom" ? Oi : void 0);
|
|
1896
|
+
}
|
|
1897
|
+
function F(e) {
|
|
1898
1898
|
let t = Number(e);
|
|
1899
1899
|
!Number.isFinite(t) || t <= 0 || A("height", t);
|
|
1900
1900
|
}
|
|
1901
|
-
function
|
|
1902
|
-
A("borderRadius",
|
|
1901
|
+
function I(e) {
|
|
1902
|
+
A("borderRadius", ie(e) === null ? void 0 : e);
|
|
1903
1903
|
}
|
|
1904
1904
|
function ee(e) {
|
|
1905
1905
|
let t = Number(e);
|
|
@@ -1908,43 +1908,43 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
1908
1908
|
function te(e) {
|
|
1909
1909
|
e !== i.block.src && a("update", {
|
|
1910
1910
|
src: e,
|
|
1911
|
-
...
|
|
1911
|
+
..._e(null)
|
|
1912
1912
|
});
|
|
1913
1913
|
}
|
|
1914
1914
|
function ne(e) {
|
|
1915
1915
|
a("update", {
|
|
1916
1916
|
src: e.url,
|
|
1917
|
-
...
|
|
1917
|
+
..._e(pe(e.width, e.height))
|
|
1918
1918
|
}), e.alt && (A("alt", e.alt), T.value = !0), p.value = !0, E();
|
|
1919
1919
|
}
|
|
1920
|
-
let
|
|
1921
|
-
target:
|
|
1922
|
-
blocked:
|
|
1920
|
+
let L = f(), re = C(() => M(i.block.src, c)), { canBrowse: ae, isUploading: oe, showOverlay: ce, openMediaBrowser: le } = he({
|
|
1921
|
+
target: L,
|
|
1922
|
+
blocked: re,
|
|
1923
1923
|
apply: ne
|
|
1924
|
-
}),
|
|
1924
|
+
}), ue = se(() => re.value || !i.block.src || ge(i.block) ? void 0 : i.block.src), de = bn(() => ue.value), fe = C(() => u ? me(u.content.value, i.block.id, d) : null), R = ti({
|
|
1925
1925
|
block: () => i.block,
|
|
1926
|
-
room: () =>
|
|
1927
|
-
measured: () =>
|
|
1928
|
-
}), { available:
|
|
1929
|
-
function
|
|
1926
|
+
room: () => fe.value,
|
|
1927
|
+
measured: () => de.value
|
|
1928
|
+
}), { available: ve, locked: z, derivedHeight: Se, cappedHeight: we } = R;
|
|
1929
|
+
function Te() {
|
|
1930
1930
|
let e = R.setLocked(!z.value);
|
|
1931
1931
|
e && a("update", e);
|
|
1932
1932
|
}
|
|
1933
|
-
let
|
|
1933
|
+
let De = f(null);
|
|
1934
1934
|
function ke(e) {
|
|
1935
|
-
|
|
1935
|
+
De.value = e;
|
|
1936
1936
|
let t = R.heightUpdates(Number(e));
|
|
1937
1937
|
t && a("update", t);
|
|
1938
1938
|
}
|
|
1939
1939
|
return (n, i) => (t(), g(S, null, [
|
|
1940
|
-
h("div",
|
|
1940
|
+
h("div", ni, [h("label", { class: b(m(U)) }, y(m(o).image.imageUrl), 3), h("div", {
|
|
1941
1941
|
ref_key: "dropZoneRef",
|
|
1942
|
-
ref:
|
|
1942
|
+
ref: L,
|
|
1943
1943
|
class: "tpl:relative"
|
|
1944
1944
|
}, [
|
|
1945
|
-
m(
|
|
1945
|
+
m(ce) ? (t(), x(ye, {
|
|
1946
1946
|
key: 0,
|
|
1947
|
-
uploading: m(
|
|
1947
|
+
uploading: m(oe)
|
|
1948
1948
|
}, null, 8, ["uploading"])) : w("", !0),
|
|
1949
1949
|
_(J, {
|
|
1950
1950
|
"model-value": e.block.src,
|
|
@@ -1957,7 +1957,7 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
1957
1957
|
"placeholder",
|
|
1958
1958
|
"pulse"
|
|
1959
1959
|
]),
|
|
1960
|
-
m(
|
|
1960
|
+
m(ae) ? (t(), g("button", {
|
|
1961
1961
|
key: 1,
|
|
1962
1962
|
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",
|
|
1963
1963
|
style: {
|
|
@@ -1965,21 +1965,21 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
1965
1965
|
color: "var(--tpl-primary)",
|
|
1966
1966
|
"background-color": "var(--tpl-bg)"
|
|
1967
1967
|
},
|
|
1968
|
-
onClick: i[1] ||= (...e) => m(
|
|
1968
|
+
onClick: i[1] ||= (...e) => m(le) && m(le)(...e)
|
|
1969
1969
|
}, [_(m(be), {
|
|
1970
1970
|
size: 14,
|
|
1971
1971
|
"stroke-width": 1.5
|
|
1972
1972
|
}), v(" " + y(m(o).image.browseMedia), 1)])) : w("", !0)
|
|
1973
1973
|
], 512)]),
|
|
1974
|
-
m(
|
|
1974
|
+
m(M)(e.block.src, m(c)) ? (t(), g("div", ri, [h("label", { class: b(m(U)) }, [v(y(m(o).image.placeholderUrl) + " ", 1), h("span", ii, y(m(o).image.optional), 1)], 2), h("input", {
|
|
1975
1975
|
type: "url",
|
|
1976
1976
|
class: b(m(K)),
|
|
1977
1977
|
value: e.block.placeholderUrl || "",
|
|
1978
1978
|
placeholder: m(o).image.placeholderUrlPlaceholder,
|
|
1979
1979
|
title: m(o).image.placeholderUrlTooltip,
|
|
1980
1980
|
onInput: i[2] ||= (e) => A("placeholderUrl", e.target.value)
|
|
1981
|
-
}, null, 42,
|
|
1982
|
-
h("div",
|
|
1981
|
+
}, null, 42, ai)])) : w("", !0),
|
|
1982
|
+
h("div", oi, [
|
|
1983
1983
|
h("label", { class: b(m(U)) }, y(m(o).image.altText), 3),
|
|
1984
1984
|
_(J, {
|
|
1985
1985
|
"model-value": e.block.alt,
|
|
@@ -2000,40 +2000,40 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2000
2000
|
label: m(o).image.decorative,
|
|
2001
2001
|
"onUpdate:modelValue": i[4] ||= (e) => A("decorative", e)
|
|
2002
2002
|
}, {
|
|
2003
|
-
default: r(() => [h("span", null, [v(y(m(o).image.decorative) + " ", 1), h("span",
|
|
2003
|
+
default: r(() => [h("span", null, [v(y(m(o).image.decorative) + " ", 1), h("span", si, y(m(o).image.decorativeHint), 1)])]),
|
|
2004
2004
|
_: 1
|
|
2005
2005
|
}, 8, ["model-value", "label"])
|
|
2006
2006
|
]),
|
|
2007
|
-
h("div",
|
|
2007
|
+
h("div", ci, [
|
|
2008
2008
|
h("label", { class: b(m(U)) }, y(m(o).image.width), 3),
|
|
2009
2009
|
h("select", {
|
|
2010
2010
|
class: b(m(K)),
|
|
2011
2011
|
"data-testid": "image-width-mode",
|
|
2012
2012
|
value: O.value,
|
|
2013
|
-
onChange: i[5] ||= (e) =>
|
|
2013
|
+
onChange: i[5] ||= (e) => j(e.target.value)
|
|
2014
2014
|
}, [
|
|
2015
|
-
h("option",
|
|
2015
|
+
h("option", ui, y(m(o).image.fullWidth), 1),
|
|
2016
2016
|
i[15] ||= h("option", { value: "300" }, "300px", -1),
|
|
2017
2017
|
i[16] ||= h("option", { value: "400" }, "400px", -1),
|
|
2018
2018
|
i[17] ||= h("option", { value: "500" }, "500px", -1),
|
|
2019
|
-
h("option",
|
|
2020
|
-
], 42,
|
|
2021
|
-
O.value === "custom" ? (t(), g("div",
|
|
2019
|
+
h("option", di, y(m(o).image.widthCustom), 1)
|
|
2020
|
+
], 42, li),
|
|
2021
|
+
O.value === "custom" ? (t(), g("div", fi, [h("input", {
|
|
2022
2022
|
type: "number",
|
|
2023
2023
|
"data-testid": "image-width-input",
|
|
2024
2024
|
class: b(m(G)),
|
|
2025
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
2025
|
+
value: typeof e.block.width == "number" ? e.block.width : Di,
|
|
2026
2026
|
min: "20",
|
|
2027
2027
|
onInput: i[6] ||= (e) => ee(e.target.value)
|
|
2028
|
-
}, null, 42,
|
|
2028
|
+
}, null, 42, pi), h("span", { class: b(m(W)) }, "px", 2)])) : w("", !0)
|
|
2029
2029
|
]),
|
|
2030
|
-
h("div",
|
|
2031
|
-
m(
|
|
2030
|
+
h("div", mi, [
|
|
2031
|
+
m(ve) ? (t(), g("div", hi, [h("span", gi, y(m(o).image.height), 1), _(ht, {
|
|
2032
2032
|
linked: m(z),
|
|
2033
2033
|
"link-label": m(o).image.lockAspectRatio,
|
|
2034
2034
|
"unlink-label": m(o).image.unlockAspectRatio,
|
|
2035
2035
|
testid: "image-aspect-lock",
|
|
2036
|
-
onToggle:
|
|
2036
|
+
onToggle: Te
|
|
2037
2037
|
}, null, 8, [
|
|
2038
2038
|
"linked",
|
|
2039
2039
|
"link-label",
|
|
@@ -2042,43 +2042,43 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2042
2042
|
key: 1,
|
|
2043
2043
|
class: b(m(U))
|
|
2044
2044
|
}, y(m(o).image.height), 3)),
|
|
2045
|
-
m(z) ? (t(), g(S, { key: 2 }, [h("div",
|
|
2045
|
+
m(z) ? (t(), g(S, { key: 2 }, [h("div", _i, [h("input", {
|
|
2046
2046
|
type: "number",
|
|
2047
2047
|
"data-testid": "image-locked-height-input",
|
|
2048
2048
|
class: b(m(G)),
|
|
2049
|
-
value:
|
|
2049
|
+
value: De.value ?? m(Se) ?? "",
|
|
2050
2050
|
min: "1",
|
|
2051
2051
|
onInput: i[7] ||= (e) => ke(e.target.value),
|
|
2052
|
-
onBlur: i[8] ||= (e) =>
|
|
2053
|
-
}, null, 42,
|
|
2052
|
+
onBlur: i[8] ||= (e) => De.value = null
|
|
2053
|
+
}, null, 42, vi), h("span", { class: b(m(W)) }, "px", 2)]), m(we) === null ? w("", !0) : (t(), g("p", yi, y(m(s)(m(o).image.heightCapped, { height: m(we) })), 1))], 64)) : w("", !0),
|
|
2054
2054
|
m(z) ? w("", !0) : (t(), g("select", {
|
|
2055
2055
|
key: 3,
|
|
2056
2056
|
class: b(m(K)),
|
|
2057
2057
|
"data-testid": "image-height-mode",
|
|
2058
2058
|
value: k.value,
|
|
2059
|
-
onChange: i[9] ||= (e) =>
|
|
2060
|
-
}, [h("option",
|
|
2061
|
-
!m(z) && k.value === "custom" ? (t(), g("div",
|
|
2059
|
+
onChange: i[9] ||= (e) => P(e.target.value)
|
|
2060
|
+
}, [h("option", xi, y(m(o).image.heightAuto), 1), h("option", Si, y(m(o).image.heightCustom), 1)], 42, bi)),
|
|
2061
|
+
!m(z) && k.value === "custom" ? (t(), g("div", Ci, [h("input", {
|
|
2062
2062
|
type: "number",
|
|
2063
2063
|
"data-testid": "image-height-input",
|
|
2064
2064
|
class: b(m(G)),
|
|
2065
2065
|
value: e.block.height,
|
|
2066
2066
|
min: "20",
|
|
2067
|
-
onInput: i[10] ||= (e) =>
|
|
2068
|
-
}, null, 42,
|
|
2067
|
+
onInput: i[10] ||= (e) => F(e.target.value)
|
|
2068
|
+
}, null, 42, wi), h("span", { class: b(m(W)) }, "px", 2)])) : w("", !0)
|
|
2069
2069
|
]),
|
|
2070
|
-
_(
|
|
2070
|
+
_(Ot, {
|
|
2071
2071
|
"model-value": e.block.borderRadius,
|
|
2072
2072
|
label: m(o).image.borderRadius,
|
|
2073
2073
|
"testid-prefix": "image",
|
|
2074
|
-
"onUpdate:modelValue":
|
|
2074
|
+
"onUpdate:modelValue": I
|
|
2075
2075
|
}, null, 8, ["model-value", "label"]),
|
|
2076
|
-
_(
|
|
2076
|
+
_(St, {
|
|
2077
2077
|
"model-value": e.block.border,
|
|
2078
2078
|
"testid-prefix": "image",
|
|
2079
2079
|
"onUpdate:modelValue": i[11] ||= (e) => A("border", e)
|
|
2080
2080
|
}, null, 8, ["model-value"]),
|
|
2081
|
-
h("div",
|
|
2081
|
+
h("div", Ti, [h("label", { class: b(m(U)) }, y(m(o).title.align), 3), _(Y, {
|
|
2082
2082
|
options: [
|
|
2083
2083
|
{
|
|
2084
2084
|
value: "left",
|
|
@@ -2096,7 +2096,7 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2096
2096
|
"model-value": e.block.align,
|
|
2097
2097
|
"onUpdate:modelValue": i[12] ||= (e) => A("align", e)
|
|
2098
2098
|
}, null, 8, ["options", "model-value"])]),
|
|
2099
|
-
h("div",
|
|
2099
|
+
h("div", Ei, [
|
|
2100
2100
|
h("label", { class: b(m(U)) }, y(m(o).image.linkUrl), 3),
|
|
2101
2101
|
_(J, {
|
|
2102
2102
|
"model-value": e.block.linkUrl || "",
|
|
@@ -2114,20 +2114,20 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2114
2114
|
])
|
|
2115
2115
|
], 64));
|
|
2116
2116
|
}
|
|
2117
|
-
}),
|
|
2117
|
+
}), Ai = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ T({
|
|
2118
2118
|
__name: "FieldRow",
|
|
2119
2119
|
props: { label: {} },
|
|
2120
2120
|
setup(e) {
|
|
2121
|
-
return (n, r) => (t(), g("div",
|
|
2121
|
+
return (n, r) => (t(), g("div", Ai, [e.label ? (t(), g("label", {
|
|
2122
2122
|
key: 0,
|
|
2123
2123
|
class: b(m(U))
|
|
2124
2124
|
}, y(e.label), 3)) : w("", !0), s(n.$slots, "default")]));
|
|
2125
2125
|
}
|
|
2126
|
-
}),
|
|
2126
|
+
}), ji = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Mi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ni = [
|
|
2127
2127
|
"value",
|
|
2128
2128
|
"placeholder",
|
|
2129
2129
|
"onInput"
|
|
2130
|
-
],
|
|
2130
|
+
], Pi = ["title", "onClick"], Fi = { 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)]" }, Ii = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Li = ["value"], Ri = { value: "" }, zi = ["value"], Bi = ["value"], Vi = /* @__PURE__ */ T({
|
|
2131
2131
|
__name: "MenuToolbar",
|
|
2132
2132
|
props: {
|
|
2133
2133
|
block: {},
|
|
@@ -2152,17 +2152,17 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2152
2152
|
{
|
|
2153
2153
|
value: "left",
|
|
2154
2154
|
label: s.title.alignLeft,
|
|
2155
|
-
icon:
|
|
2155
|
+
icon: Je
|
|
2156
2156
|
},
|
|
2157
2157
|
{
|
|
2158
2158
|
value: "center",
|
|
2159
2159
|
label: s.title.alignCenter,
|
|
2160
|
-
icon:
|
|
2160
|
+
icon: qe
|
|
2161
2161
|
},
|
|
2162
2162
|
{
|
|
2163
2163
|
value: "right",
|
|
2164
2164
|
label: s.title.alignRight,
|
|
2165
|
-
icon:
|
|
2165
|
+
icon: Ke
|
|
2166
2166
|
}
|
|
2167
2167
|
]);
|
|
2168
2168
|
function u(e, t) {
|
|
@@ -2191,24 +2191,24 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2191
2191
|
}
|
|
2192
2192
|
return (n, i) => (t(), g(S, null, [
|
|
2193
2193
|
_($, { label: m(s).menu.items }, {
|
|
2194
|
-
default: r(() => [h("div",
|
|
2194
|
+
default: r(() => [h("div", ji, [(t(!0), g(S, null, o(e.block.items, (n) => (t(), g("div", {
|
|
2195
2195
|
key: n.id,
|
|
2196
2196
|
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"
|
|
2197
2197
|
}, [
|
|
2198
|
-
h("div",
|
|
2198
|
+
h("div", Mi, [h("input", {
|
|
2199
2199
|
type: "text",
|
|
2200
2200
|
class: b([m(K), "tpl:flex-1"]),
|
|
2201
2201
|
value: n.text,
|
|
2202
2202
|
placeholder: m(s).menu.text,
|
|
2203
2203
|
onInput: (e) => f(n.id, "text", e.target.value)
|
|
2204
|
-
}, null, 42,
|
|
2205
|
-
class: b(m(
|
|
2204
|
+
}, null, 42, Ni), h("button", {
|
|
2205
|
+
class: b(m(et)),
|
|
2206
2206
|
title: m(s).menu.removeItem,
|
|
2207
2207
|
onClick: (e) => p(n.id)
|
|
2208
|
-
}, [_(m(
|
|
2208
|
+
}, [_(m(Xe), {
|
|
2209
2209
|
size: 14,
|
|
2210
2210
|
"stroke-width": 2
|
|
2211
|
-
})], 10,
|
|
2211
|
+
})], 10, Pi)]),
|
|
2212
2212
|
_(J, {
|
|
2213
2213
|
"model-value": n.url,
|
|
2214
2214
|
type: "url",
|
|
@@ -2219,7 +2219,7 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2219
2219
|
"placeholder",
|
|
2220
2220
|
"onUpdate:modelValue"
|
|
2221
2221
|
]),
|
|
2222
|
-
h("div",
|
|
2222
|
+
h("div", Fi, [(t(!0), g(S, null, o(c.value, (e) => (t(), x(q, {
|
|
2223
2223
|
key: e.key,
|
|
2224
2224
|
"model-value": n[e.key],
|
|
2225
2225
|
label: e.label,
|
|
@@ -2229,13 +2229,13 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2229
2229
|
"label",
|
|
2230
2230
|
"onUpdate:modelValue"
|
|
2231
2231
|
]))), 128))]),
|
|
2232
|
-
h("div",
|
|
2232
|
+
h("div", Ii, [h("label", { class: b([m(U), "tpl:!mb-0"]) }, y(m(s).menu.color), 3), _(V, {
|
|
2233
2233
|
"swatch-only": "",
|
|
2234
2234
|
"model-value": n.color || e.block.linkColor || e.block.color || "",
|
|
2235
2235
|
"onUpdate:modelValue": (e) => f(n.id, "color", e)
|
|
2236
2236
|
}, null, 8, ["model-value", "onUpdate:modelValue"])])
|
|
2237
2237
|
]))), 128)), h("button", {
|
|
2238
|
-
class: b(m(
|
|
2238
|
+
class: b(m(tt)),
|
|
2239
2239
|
onClick: d
|
|
2240
2240
|
}, [_(m(H), {
|
|
2241
2241
|
size: 14,
|
|
@@ -2246,12 +2246,12 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2246
2246
|
_($, { label: m(s).menu.fontFamily }, {
|
|
2247
2247
|
default: r(() => [h("select", {
|
|
2248
2248
|
class: b(m(K)),
|
|
2249
|
-
value: m(
|
|
2249
|
+
value: m(ot)(e.block.fontFamily),
|
|
2250
2250
|
onChange: i[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
2251
|
-
}, [h("option",
|
|
2251
|
+
}, [h("option", Ri, y(m(s).title.inheritFont), 1), (t(!0), g(S, null, o(e.fontFamilies, (e) => (t(), g("option", {
|
|
2252
2252
|
key: e.value,
|
|
2253
2253
|
value: e.value
|
|
2254
|
-
}, y(e.label), 9,
|
|
2254
|
+
}, y(e.label), 9, zi))), 128))], 42, Li)]),
|
|
2255
2255
|
_: 1
|
|
2256
2256
|
}, 8, ["label"]),
|
|
2257
2257
|
_($, { label: m(s).menu.fontSize }, {
|
|
@@ -2292,7 +2292,7 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2292
2292
|
class: b(m(K)),
|
|
2293
2293
|
value: e.block.separator,
|
|
2294
2294
|
onInput: i[5] ||= (e) => u("separator", e.target.value)
|
|
2295
|
-
}, null, 42,
|
|
2295
|
+
}, null, 42, Bi)]),
|
|
2296
2296
|
_: 1
|
|
2297
2297
|
}, 8, ["label"]),
|
|
2298
2298
|
_($, { label: m(s).menu.separatorColor }, {
|
|
@@ -2314,32 +2314,29 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2314
2314
|
}, 8, ["label"])
|
|
2315
2315
|
], 64));
|
|
2316
2316
|
}
|
|
2317
|
-
}),
|
|
2317
|
+
}), Hi = {
|
|
2318
2318
|
class: "tpl:mb-3.5",
|
|
2319
2319
|
"data-testid": "paragraph-spacing"
|
|
2320
|
-
},
|
|
2320
|
+
}, Ui = { class: "tpl:flex tpl:items-stretch" }, Wi = ["value"], Gi = /* @__PURE__ */ T({
|
|
2321
2321
|
__name: "ParagraphToolbar",
|
|
2322
2322
|
props: { block: {} },
|
|
2323
2323
|
emits: ["update"],
|
|
2324
2324
|
setup(e, { emit: n }) {
|
|
2325
2325
|
let r = n, { t: i } = B();
|
|
2326
|
-
return (n, a) => (t(), g("div",
|
|
2326
|
+
return (n, a) => (t(), g("div", Hi, [h("label", { class: b(m(U)) }, y(m(i).paragraph.paragraphSpacing), 3), h("div", Ui, [h("input", {
|
|
2327
2327
|
type: "number",
|
|
2328
2328
|
class: b(m(G)),
|
|
2329
|
-
value: e.block.paragraphSpacing ?? m(
|
|
2329
|
+
value: e.block.paragraphSpacing ?? m(ee).paragraphGap,
|
|
2330
2330
|
min: "0",
|
|
2331
2331
|
max: "64",
|
|
2332
2332
|
onInput: a[0] ||= (e) => r("update", { paragraphSpacing: Number(e.target.value) })
|
|
2333
|
-
}, null, 42,
|
|
2333
|
+
}, null, 42, Wi), h("span", { class: b(m(W)) }, "px", 2)])]));
|
|
2334
2334
|
}
|
|
2335
2335
|
});
|
|
2336
2336
|
//#endregion
|
|
2337
2337
|
//#region src/utils/rebalanceColumnChildren.ts
|
|
2338
|
-
function Gi(e) {
|
|
2339
|
-
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
2340
|
-
}
|
|
2341
2338
|
function Ki(e, t) {
|
|
2342
|
-
let n =
|
|
2339
|
+
let n = A(t);
|
|
2343
2340
|
if (e.length === n) return e;
|
|
2344
2341
|
if (e.length < n) {
|
|
2345
2342
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2367,7 +2364,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2367
2364
|
props: { block: {} },
|
|
2368
2365
|
emits: ["update"],
|
|
2369
2366
|
setup(e, { emit: n }) {
|
|
2370
|
-
let r = e, i = n, { t: a } = B(), s = l(
|
|
2367
|
+
let r = e, i = n, { t: a } = B(), s = l(Ce, void 0), c = l(we, void 0), u = s !== void 0 && L(s), d = C(() => c !== !1 || !!r.block.wrapper), f = C(() => u && !r.block.wrapper), p = C(() => u && d.value), v = C(() => F(r.block)?.applied === !0), T = C(() => [
|
|
2371
2368
|
{
|
|
2372
2369
|
value: "1",
|
|
2373
2370
|
label: a.section.column1
|
|
@@ -2437,14 +2434,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2437
2434
|
label: m(a).section.stackOnMobile,
|
|
2438
2435
|
"onUpdate:modelValue": r[0] ||= (e) => D(e)
|
|
2439
2436
|
}, null, 8, ["model-value", "label"])])),
|
|
2440
|
-
_(
|
|
2437
|
+
_(Ot, {
|
|
2441
2438
|
"model-value": e.block.borderRadius,
|
|
2442
2439
|
label: m(a).section.borderRadius,
|
|
2443
2440
|
max: 50,
|
|
2444
2441
|
"testid-prefix": "section",
|
|
2445
2442
|
"onUpdate:modelValue": O
|
|
2446
2443
|
}, null, 8, ["model-value", "label"]),
|
|
2447
|
-
v.value ? w("", !0) : (t(), x(
|
|
2444
|
+
v.value ? w("", !0) : (t(), x(St, {
|
|
2448
2445
|
key: 1,
|
|
2449
2446
|
"model-value": e.block.border,
|
|
2450
2447
|
"testid-prefix": "section",
|
|
@@ -2469,12 +2466,12 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2469
2466
|
"allow-transparent": "",
|
|
2470
2467
|
"onUpdate:modelValue": r[3] ||= (e) => A({ backgroundColor: e })
|
|
2471
2468
|
}, null, 8, ["model-value"])]),
|
|
2472
|
-
_(
|
|
2469
|
+
_(An, {
|
|
2473
2470
|
"model-value": e.block.wrapper.backgroundImage,
|
|
2474
2471
|
"testid-prefix": "section-wrapper",
|
|
2475
2472
|
"onUpdate:modelValue": r[4] ||= (e) => A({ backgroundImage: e })
|
|
2476
2473
|
}, null, 8, ["model-value"]),
|
|
2477
|
-
_(
|
|
2474
|
+
_(yn, {
|
|
2478
2475
|
label: m(a).blockSettings.padding,
|
|
2479
2476
|
"model-value": e.block.wrapper.padding ?? {
|
|
2480
2477
|
top: 0,
|
|
@@ -2484,7 +2481,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2484
2481
|
},
|
|
2485
2482
|
"onUpdate:modelValue": j
|
|
2486
2483
|
}, null, 8, ["label", "model-value"]),
|
|
2487
|
-
_(
|
|
2484
|
+
_(Ot, {
|
|
2488
2485
|
"model-value": e.block.wrapper.borderRadius,
|
|
2489
2486
|
label: m(a).section.borderRadius,
|
|
2490
2487
|
max: 50,
|
|
@@ -2531,14 +2528,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2531
2528
|
class: b([m(K), "tpl:flex-1"]),
|
|
2532
2529
|
value: e.platform,
|
|
2533
2530
|
onChange: (t) => l(e.id, "platform", t.target.value)
|
|
2534
|
-
}, [(t(!0), g(S, null, o(m(
|
|
2531
|
+
}, [(t(!0), g(S, null, o(m(ve), (e) => (t(), g("option", {
|
|
2535
2532
|
key: e,
|
|
2536
2533
|
value: e
|
|
2537
2534
|
}, y(m(a).social.platforms[e]), 9, aa))), 128))], 42, ia), h("button", {
|
|
2538
|
-
class: b(m(
|
|
2535
|
+
class: b(m(et)),
|
|
2539
2536
|
title: m(a).social.removeIcon,
|
|
2540
2537
|
onClick: (t) => u(e.id)
|
|
2541
|
-
}, [_(m(
|
|
2538
|
+
}, [_(m(Xe), {
|
|
2542
2539
|
size: 14,
|
|
2543
2540
|
"stroke-width": 2
|
|
2544
2541
|
})], 10, oa)]), _(J, {
|
|
@@ -2551,7 +2548,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2551
2548
|
"placeholder",
|
|
2552
2549
|
"onUpdate:modelValue"
|
|
2553
2550
|
])]))), 128)), h("button", {
|
|
2554
|
-
class: b(m(
|
|
2551
|
+
class: b(m(tt)),
|
|
2555
2552
|
onClick: c
|
|
2556
2553
|
}, [_(m(H), {
|
|
2557
2554
|
size: 14,
|
|
@@ -2610,17 +2607,17 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2610
2607
|
{
|
|
2611
2608
|
value: "left",
|
|
2612
2609
|
label: m(a).title.alignLeft,
|
|
2613
|
-
icon: m(
|
|
2610
|
+
icon: m(Je)
|
|
2614
2611
|
},
|
|
2615
2612
|
{
|
|
2616
2613
|
value: "center",
|
|
2617
2614
|
label: m(a).title.alignCenter,
|
|
2618
|
-
icon: m(
|
|
2615
|
+
icon: m(qe)
|
|
2619
2616
|
},
|
|
2620
2617
|
{
|
|
2621
2618
|
value: "right",
|
|
2622
2619
|
label: m(a).title.alignRight,
|
|
2623
|
-
icon: m(
|
|
2620
|
+
icon: m(Ke)
|
|
2624
2621
|
}
|
|
2625
2622
|
],
|
|
2626
2623
|
"model-value": e.block.align,
|
|
@@ -2705,7 +2702,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2705
2702
|
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",
|
|
2706
2703
|
disabled: e.block.rows.length <= 1,
|
|
2707
2704
|
onClick: r[0] ||= (t) => u(e.block.rows[e.block.rows.length - 1].id)
|
|
2708
|
-
}, [_(m(
|
|
2705
|
+
}, [_(m(Re), {
|
|
2709
2706
|
size: 12,
|
|
2710
2707
|
"stroke-width": 2
|
|
2711
2708
|
})], 8, Ia),
|
|
@@ -2722,7 +2719,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2722
2719
|
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",
|
|
2723
2720
|
disabled: s.value <= 1,
|
|
2724
2721
|
onClick: r[1] ||= (e) => f(s.value - 1)
|
|
2725
|
-
}, [_(m(
|
|
2722
|
+
}, [_(m(Re), {
|
|
2726
2723
|
size: 12,
|
|
2727
2724
|
"stroke-width": 2
|
|
2728
2725
|
})], 8, Va),
|
|
@@ -2743,7 +2740,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2743
2740
|
}, null, 8, ["model-value", "label"])]),
|
|
2744
2741
|
e.block.hasHeaderRow ? (t(), g("div", Wa, [h("label", { class: b(m(U)) }, y(m(a).table.headerBackgroundColor), 3), _(V, {
|
|
2745
2742
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
2746
|
-
"seed-color": m(
|
|
2743
|
+
"seed-color": m(nt),
|
|
2747
2744
|
placeholder: m(a).table.noHeaderBg,
|
|
2748
2745
|
"onUpdate:modelValue": r[3] ||= (e) => c("headerBackgroundColor", e || null)
|
|
2749
2746
|
}, null, 8, [
|
|
@@ -2773,7 +2770,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2773
2770
|
}, null, 42, Za), h("span", { class: b(m(W)) }, "px", 2)])]),
|
|
2774
2771
|
h("div", Qa, [h("label", { class: b(m(U)) }, y(m(a).table.fontFamily), 3), h("select", {
|
|
2775
2772
|
class: b(m(K)),
|
|
2776
|
-
value: m(
|
|
2773
|
+
value: m(ot)(e.block.fontFamily),
|
|
2777
2774
|
onChange: r[7] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
2778
2775
|
}, [h("option", eo, y(m(a).title.inheritFont), 1), (t(!0), g(S, null, o(e.fontFamilies, (e) => (t(), g("option", {
|
|
2779
2776
|
key: e.value,
|
|
@@ -2796,17 +2793,17 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2796
2793
|
{
|
|
2797
2794
|
value: "left",
|
|
2798
2795
|
label: m(a).title.alignLeft,
|
|
2799
|
-
icon: m(
|
|
2796
|
+
icon: m(Je)
|
|
2800
2797
|
},
|
|
2801
2798
|
{
|
|
2802
2799
|
value: "center",
|
|
2803
2800
|
label: m(a).title.alignCenter,
|
|
2804
|
-
icon: m(
|
|
2801
|
+
icon: m(qe)
|
|
2805
2802
|
},
|
|
2806
2803
|
{
|
|
2807
2804
|
value: "right",
|
|
2808
2805
|
label: m(a).title.alignRight,
|
|
2809
|
-
icon: m(
|
|
2806
|
+
icon: m(Ke)
|
|
2810
2807
|
}
|
|
2811
2808
|
],
|
|
2812
2809
|
"model-value": e.block.textAlign,
|
|
@@ -2839,7 +2836,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2839
2836
|
], 42, lo)]),
|
|
2840
2837
|
h("div", ho, [h("label", { class: b(m(U)) }, y(m(i).title.fontFamily), 3), h("select", {
|
|
2841
2838
|
class: b(m(K)),
|
|
2842
|
-
value: m(
|
|
2839
|
+
value: m(ot)(e.block.fontFamily),
|
|
2843
2840
|
onChange: r[1] ||= (e) => a("fontFamily", e.target.value || void 0)
|
|
2844
2841
|
}, [h("option", _o, y(m(i).title.inheritFont), 1), (t(!0), g(S, null, o(e.fontFamilies, (e) => (t(), g("option", {
|
|
2845
2842
|
key: e.value,
|
|
@@ -2854,17 +2851,17 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2854
2851
|
{
|
|
2855
2852
|
value: "left",
|
|
2856
2853
|
label: m(i).title.alignLeft,
|
|
2857
|
-
icon: m(
|
|
2854
|
+
icon: m(Je)
|
|
2858
2855
|
},
|
|
2859
2856
|
{
|
|
2860
2857
|
value: "center",
|
|
2861
2858
|
label: m(i).title.alignCenter,
|
|
2862
|
-
icon: m(
|
|
2859
|
+
icon: m(qe)
|
|
2863
2860
|
},
|
|
2864
2861
|
{
|
|
2865
2862
|
value: "right",
|
|
2866
2863
|
label: m(i).title.alignRight,
|
|
2867
|
-
icon: m(
|
|
2864
|
+
icon: m(Ke)
|
|
2868
2865
|
}
|
|
2869
2866
|
],
|
|
2870
2867
|
"model-value": e.block.textAlign,
|
|
@@ -2890,11 +2887,11 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2890
2887
|
props: { block: {} },
|
|
2891
2888
|
emits: ["update"],
|
|
2892
2889
|
setup(e, { emit: n }) {
|
|
2893
|
-
let r = e, i = n, { t: a } = B(), o = l(
|
|
2890
|
+
let r = e, i = n, { t: a } = B(), o = l(Te, null), s = l(Ee, N.liquid), c = Qe(), u = [
|
|
2894
2891
|
300,
|
|
2895
2892
|
400,
|
|
2896
2893
|
500
|
|
2897
|
-
], d = C(() => !!o), p = C(() =>
|
|
2894
|
+
], d = C(() => !!o), p = C(() => M(r.block.url, s)), T = C(() => {
|
|
2898
2895
|
let e = r.block.width;
|
|
2899
2896
|
return e === "full" ? "full" : u.includes(e) ? String(e) : "custom";
|
|
2900
2897
|
}), E = C(() => typeof r.block.height == "number" ? "custom" : "auto"), D = f(!1), { start: O } = xe(() => {
|
|
@@ -2909,18 +2906,18 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2909
2906
|
(typeof e != "number" || u.includes(e)) && k("width", Ho);
|
|
2910
2907
|
} else k("width", e === "full" ? "full" : Number(e));
|
|
2911
2908
|
}
|
|
2912
|
-
function
|
|
2909
|
+
function j(e) {
|
|
2913
2910
|
let t = Number(e);
|
|
2914
2911
|
!Number.isFinite(t) || t <= 0 || k("width", t);
|
|
2915
2912
|
}
|
|
2916
|
-
function
|
|
2913
|
+
function P(e) {
|
|
2917
2914
|
k("height", e === "custom" ? Uo : void 0);
|
|
2918
2915
|
}
|
|
2919
|
-
function
|
|
2916
|
+
function F(e) {
|
|
2920
2917
|
let t = Number(e);
|
|
2921
2918
|
!Number.isFinite(t) || t <= 0 || k("height", t);
|
|
2922
2919
|
}
|
|
2923
|
-
async function
|
|
2920
|
+
async function I() {
|
|
2924
2921
|
let e = await o?.({ accept: ["images"] });
|
|
2925
2922
|
c.alive && e && (k("thumbnailUrl", e.url), D.value = !0, O());
|
|
2926
2923
|
}
|
|
@@ -2970,7 +2967,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2970
2967
|
color: "var(--tpl-primary)",
|
|
2971
2968
|
"background-color": "var(--tpl-bg)"
|
|
2972
2969
|
},
|
|
2973
|
-
onClick:
|
|
2970
|
+
onClick: I
|
|
2974
2971
|
}, [_(m(be), {
|
|
2975
2972
|
size: 14,
|
|
2976
2973
|
"stroke-width": 1.5
|
|
@@ -3002,7 +2999,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3002
2999
|
class: b(m(G)),
|
|
3003
3000
|
value: e.block.width,
|
|
3004
3001
|
min: "20",
|
|
3005
|
-
onInput: r[6] ||= (e) =>
|
|
3002
|
+
onInput: r[6] ||= (e) => j(e.target.value)
|
|
3006
3003
|
}, null, 42, Po), h("span", { class: b(m(W)) }, "px", 2)])) : w("", !0)
|
|
3007
3004
|
]),
|
|
3008
3005
|
h("div", Fo, [
|
|
@@ -3011,7 +3008,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3011
3008
|
class: b(m(K)),
|
|
3012
3009
|
"data-testid": "video-height-mode",
|
|
3013
3010
|
value: E.value,
|
|
3014
|
-
onChange: r[7] ||= (e) =>
|
|
3011
|
+
onChange: r[7] ||= (e) => P(e.target.value)
|
|
3015
3012
|
}, [h("option", Lo, y(m(a).video.heightAuto), 1), h("option", Ro, y(m(a).video.heightCustom), 1)], 42, Io),
|
|
3016
3013
|
E.value === "custom" ? (t(), g("div", zo, [h("input", {
|
|
3017
3014
|
type: "number",
|
|
@@ -3019,7 +3016,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3019
3016
|
class: b(m(G)),
|
|
3020
3017
|
value: e.block.height,
|
|
3021
3018
|
min: "20",
|
|
3022
|
-
onInput: r[8] ||= (e) =>
|
|
3019
|
+
onInput: r[8] ||= (e) => F(e.target.value)
|
|
3023
3020
|
}, null, 42, Bo), h("span", { class: b(m(W)) }, "px", 2)])) : w("", !0)
|
|
3024
3021
|
]),
|
|
3025
3022
|
h("div", Vo, [h("label", { class: b(m(U)) }, y(m(a).title.align), 3), _(Y, {
|
|
@@ -3051,9 +3048,9 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3051
3048
|
"duplicate"
|
|
3052
3049
|
],
|
|
3053
3050
|
setup(e, { emit: n }) {
|
|
3054
|
-
let r = p(() => import("./CountdownToolbar-
|
|
3051
|
+
let r = p(() => import("./CountdownToolbar-CLMIwfK7.js")), a = e, o = n, { t: s } = B(), c = Se(Me, "Toolbar"), u = l(je, []), d = C(() => a.block.type), f = C(() => P(a.block)), v = C(() => {
|
|
3055
3052
|
if (f.value) return u.find((e) => e.type === a.block.customType);
|
|
3056
|
-
}), b = C(() => f.value ? v.value?.name ?? a.block.customType : oe(d.value, s)), S = C(() =>
|
|
3053
|
+
}), b = C(() => f.value ? v.value?.name ?? a.block.customType : oe(d.value, s)), S = C(() => at(c.fonts.value, "fontFamily" in a.block ? a.block.fontFamily : void 0));
|
|
3057
3054
|
function T(e) {
|
|
3058
3055
|
o("update", e);
|
|
3059
3056
|
}
|
|
@@ -3061,7 +3058,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3061
3058
|
"data-testid": "block-toolbar",
|
|
3062
3059
|
"aria-label": m(s).landmarks.blockToolbar,
|
|
3063
3060
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
3064
|
-
}, [h("div", Ko, [h("div", qo, [m(
|
|
3061
|
+
}, [h("div", Ko, [h("div", qo, [m(ze)[d.value] ? (t(), x(i(m(ze)[d.value]), {
|
|
3065
3062
|
key: 0,
|
|
3066
3063
|
size: 16,
|
|
3067
3064
|
"stroke-width": 1.5
|
|
@@ -3073,17 +3070,17 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3073
3070
|
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)]",
|
|
3074
3071
|
title: m(s).toolbar.duplicate,
|
|
3075
3072
|
onClick: a[0] ||= (e) => o("duplicate")
|
|
3076
|
-
}, [_(m(
|
|
3073
|
+
}, [_(m(Be), {
|
|
3077
3074
|
size: 14,
|
|
3078
3075
|
"stroke-width": 2
|
|
3079
3076
|
})], 8, Xo), h("button", {
|
|
3080
3077
|
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)]",
|
|
3081
3078
|
title: m(s).toolbar.delete,
|
|
3082
3079
|
onClick: a[1] ||= (e) => o("delete")
|
|
3083
|
-
}, [_(m(
|
|
3080
|
+
}, [_(m(Ye), {
|
|
3084
3081
|
size: 14,
|
|
3085
3082
|
"stroke-width": 2
|
|
3086
|
-
})], 8, Zo)])]), h("div", Qo, [f.value ? (t(), x(
|
|
3083
|
+
})], 8, Zo)])]), h("div", Qo, [f.value ? (t(), x(Wr, {
|
|
3087
3084
|
key: 0,
|
|
3088
3085
|
block: e.block,
|
|
3089
3086
|
onUpdateFieldValues: a[2] ||= (e) => o("update", { fieldValues: e }),
|
|
@@ -3097,11 +3094,11 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3097
3094
|
block: e.block,
|
|
3098
3095
|
"font-families": S.value,
|
|
3099
3096
|
onUpdate: T
|
|
3100
|
-
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (t(), x(
|
|
3097
|
+
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (t(), x(Gi, {
|
|
3101
3098
|
key: 3,
|
|
3102
3099
|
block: e.block,
|
|
3103
3100
|
onUpdate: T
|
|
3104
|
-
}, null, 8, ["block"])) : d.value === "image" ? (t(), x(
|
|
3101
|
+
}, null, 8, ["block"])) : d.value === "image" ? (t(), x(ki, {
|
|
3105
3102
|
key: 4,
|
|
3106
3103
|
block: e.block,
|
|
3107
3104
|
onUpdate: T
|
|
@@ -3109,12 +3106,12 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3109
3106
|
key: 5,
|
|
3110
3107
|
block: e.block,
|
|
3111
3108
|
onUpdate: T
|
|
3112
|
-
}, null, 8, ["block"])) : d.value === "button" ? (t(), x(
|
|
3109
|
+
}, null, 8, ["block"])) : d.value === "button" ? (t(), x(Yt, {
|
|
3113
3110
|
key: 6,
|
|
3114
3111
|
block: e.block,
|
|
3115
3112
|
"font-families": S.value,
|
|
3116
3113
|
onUpdate: T
|
|
3117
|
-
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (t(), x(
|
|
3114
|
+
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (t(), x(Xr, {
|
|
3118
3115
|
key: 7,
|
|
3119
3116
|
block: e.block,
|
|
3120
3117
|
onUpdate: T
|
|
@@ -3122,7 +3119,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3122
3119
|
key: 8,
|
|
3123
3120
|
block: e.block,
|
|
3124
3121
|
onUpdate: T
|
|
3125
|
-
}, null, 8, ["block"])) : d.value === "menu" ? (t(), x(
|
|
3122
|
+
}, null, 8, ["block"])) : d.value === "menu" ? (t(), x(Vi, {
|
|
3126
3123
|
key: 9,
|
|
3127
3124
|
block: e.block,
|
|
3128
3125
|
"font-families": S.value,
|
|
@@ -3136,7 +3133,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3136
3133
|
key: 11,
|
|
3137
3134
|
block: e.block,
|
|
3138
3135
|
onUpdate: T
|
|
3139
|
-
}, null, 8, ["block"])) : d.value === "html" ? (t(), x(
|
|
3136
|
+
}, null, 8, ["block"])) : d.value === "html" ? (t(), x(ei, {
|
|
3140
3137
|
key: 12,
|
|
3141
3138
|
block: e.block,
|
|
3142
3139
|
onUpdate: T
|
|
@@ -3145,12 +3142,12 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3145
3142
|
block: e.block,
|
|
3146
3143
|
"font-families": S.value,
|
|
3147
3144
|
onUpdate: T
|
|
3148
|
-
}, null, 8, ["block", "font-families"])) : w("", !0), _(
|
|
3145
|
+
}, null, 8, ["block", "font-families"])) : w("", !0), _(or, {
|
|
3149
3146
|
block: e.block,
|
|
3150
3147
|
"is-first-section": d.value === "paragraph",
|
|
3151
3148
|
onUpdate: T
|
|
3152
3149
|
}, null, 8, ["block", "is-first-section"])])], 8, Go));
|
|
3153
3150
|
}
|
|
3154
|
-
}), es = /* @__PURE__ */ e({ default: () => ts }), ts = /*#__PURE__*/
|
|
3151
|
+
}), es = /* @__PURE__ */ e({ default: () => ts }), ts = /*#__PURE__*/ Ze($o, [["__scopeId", "data-v-e2d2c22f"]]);
|
|
3155
3152
|
//#endregion
|
|
3156
3153
|
export { ts as default, Y as i, $ as n, X as r, es as t };
|