@templatical/editor 0.51.1 → 0.52.1
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/THIRD_PARTY_NOTICES.md +208 -0
- package/dist/{AiAltTextPopover-BZQ95GXL.js → AiAltTextPopover-DawbUywc.js} +16 -17
- package/dist/{AiAltTextReview-DoBEudnE.js → AiAltTextReview-9ySsXOTU.js} +25 -26
- package/dist/{AiChatPanel-Bs6sES3b.js → AiChatPanel-CupPhmsN.js} +141 -143
- package/dist/{AiPanels-CfN7A-ZA.js → AiPanels-DqT4PgQ0.js} +6 -8
- package/dist/{AiRewriteMenu-C3ZfDDYy.js → AiRewriteMenu-28agTycW.js} +66 -67
- package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
- package/dist/{BlockPreviewCanvas-BXNLLLYi.js → BlockPreviewCanvas-B-4bmJ3t.js} +26 -27
- package/dist/{CloudHeaderExtras-CsJMEiyN.js → CloudHeaderExtras-QI82yF54.js} +4 -5
- package/dist/{CloudPanels-B4F5m7vy.js → CloudPanels-BKJaLkUN.js} +52 -53
- package/dist/{CollaborationNotices-CNuDp7Y2.js → CollaborationNotices-CTw4JThq.js} +12 -13
- package/dist/{CollaboratorBar-BtHPiuHq.js → CollaboratorBar-CXQqN3VP.js} +16 -17
- package/dist/{CommentsPanel-CyCM-BvT.js → CommentsPanel-DwwFuh1h.js} +3 -5
- package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
- package/dist/{CountdownBlock-DR4Xm2-T.js → CountdownBlock-CU2yTWtF.js} +21 -22
- package/dist/{CountdownToolbar-CEIMPojJ.js → CountdownToolbar-BqoYzf_6.js} +55 -56
- package/dist/IssuesPanel-4ykrf1ax.js +359 -0
- package/dist/{LoadingTrack-B0RKQWq3.js → LoadingTrack-DM4g6j7b.js} +3 -4
- package/dist/{LogicTagInsertButton-CqfU52CO.js → LogicTagInsertButton-CfscnwCn.js} +243 -250
- package/dist/{MediaEditModal-DHtkZ4OU.js → MediaEditModal-Dy08GEwE.js} +449 -452
- package/dist/{MediaPanels-CGcOB2pR.js → MediaPanels-BgEp7iCp.js} +3 -5
- package/dist/{MergeTagInput-YnEkorTZ.js → MergeTagInput-B9dtUthD.js} +14 -15
- package/dist/{MergeTagModeToggle-Dhb1DAcQ.js → MergeTagModeToggle-DxujhYJ4.js} +30 -31
- package/dist/{MergeTagTextarea-e4lnwtqZ.js → MergeTagTextarea-CPFEjJZd.js} +12 -13
- package/dist/{ParagraphEditor-B6NK0ytw.js → ParagraphEditor-CWXfurGh.js} +233 -236
- package/dist/{RestoreVersionDialog-Bq_IGOLJ.js → RestoreVersionDialog-C4s_JYCx.js} +16 -17
- package/dist/{RichTextEditorContent-AOM6fylS.js → RichTextEditorContent-o6HmE8GR.js} +40 -40
- package/dist/{SaveBlockDialog-C8GngfQx.js → SaveBlockDialog-CWLrly6l.js} +58 -59
- package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
- package/dist/{SavedBlocksPanels-C2s3q0pJ.js → SavedBlocksPanels-BE1N9rNZ.js} +7 -9
- package/dist/{SavedBlocksPickBar-BjcTiV87.js → SavedBlocksPickBar-Dwl94xhP.js} +14 -15
- package/dist/{TemplateSettings-BVBWpiDU.js → TemplateSettings-CS0f1Ues.js} +75 -76
- package/dist/{TestEmailModal-SyhO9bn3.js → TestEmailModal-DBD0X5nV.js} +54 -56
- package/dist/{TestEmailPanel-BDd2Rtav.js → TestEmailPanel-DaFjP9QK.js} +3 -5
- package/dist/{TitleEditor-pxD53y_l.js → TitleEditor-DSqtle77.js} +78 -79
- package/dist/{ToggleSwitch-D51U9cmR.js → ToggleSwitch-JykPyD_8.js} +5 -6
- package/dist/{Toolbar-CZSPZYbj.js → Toolbar-BZPFfKrf.js} +977 -985
- package/dist/{TplModal-DCzBzicE.js → TplModal-DLMssVlt.js} +16 -17
- package/dist/{VersionHistoryMenu-BQeWPT85.js → VersionHistoryMenu-BkbYUs0Q.js} +37 -38
- package/dist/{VersionHistoryPanels-BBm7YbRQ.js → VersionHistoryPanels-DP7HaYWv.js} +5 -7
- package/dist/{VersionPreviewBanner-DUGF0tUJ.js → VersionPreviewBanner-DECaBwLq.js} +11 -12
- package/dist/WrapperBlock-BsJv_Fiw.js +44 -0
- package/dist/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
- package/dist/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +3 -5
- package/dist/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +2 -3
- package/dist/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +1 -2
- package/dist/{blockTypeIcons-NzaYvAI4.js → blockTypeIcons-BHjlPnPf.js} +23 -23
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +1 -2
- package/dist/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +1 -2
- package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js → AiAltTextPopover-SEEjkd-I.js} +24 -25
- package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js → AiAltTextReview-BGLLSKLm.js} +43 -44
- package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js → AiChatPanel-DKDAaBNi.js} +129 -131
- package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js → AiPanels-0wBarZSH.js} +5 -7
- package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js.map → AiPanels-0wBarZSH.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-Bhh71zcc.js → AiRewriteMenu-qf-cfEpy.js} +52 -53
- package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +1 -0
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js → BlockPreviewCanvas-DGBh6mqe.js} +22 -23
- package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js → CloudHeaderExtras-BMNK_F9p.js} +4 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js → CloudPanels-JMWIoVWh.js} +34 -35
- package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js → CollaborationNotices-Bsf1rGW9.js} +13 -14
- package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js → CollaboratorBar-CXByAoUz.js} +16 -17
- package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js → CommentsPanel-DoJnKLXI.js} +4 -6
- package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js → CommentsSidebar-CUtgvdBC.js} +110 -110
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js → CountdownBlock-BqRw147R.js} +19 -20
- package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js → CountdownToolbar-xobieKoU.js} +28 -29
- package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js → IssuesPanel-C7LfxaAY.js} +76 -77
- package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
- package/dist/cdn/chunks/LoadingTrack-CZuLTazv.js +11 -0
- package/dist/cdn/chunks/{LoadingTrack-BIcL4NiY.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js → LogicTagInsertButton-BIi05UQu.js} +258 -265
- package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js → MediaEditModal-Cpcod6_U.js} +152 -155
- package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js → MediaPanels-BIdcW_1f.js} +4 -6
- package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js → MergeTagInput-BvWg8o5E.js} +35 -36
- package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js → MergeTagModeToggle-BgKEVUtV.js} +28 -29
- package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js → MergeTagTextarea-tBz8McZf.js} +33 -34
- package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js → ParagraphEditor-B3Rj_cWF.js} +197 -200
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js → RestoreVersionDialog-CjOdD2xj.js} +21 -22
- package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js → RichTextEditorContent-DNjR_sNN.js} +30 -31
- package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js → SaveBlockDialog-CUhpawq0.js} +77 -78
- package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js → SavedBlocksPanels-C6--Bc81.js} +4 -6
- package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js → SavedBlocksPickBar-DUavxpbU.js} +16 -17
- package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js → TemplateSettings-CKtI-dof.js} +72 -73
- package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js → TestEmailModal-CDQTgESD.js} +68 -70
- package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js → TestEmailPanel-CcUpEpAn.js} +4 -6
- package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js → TitleEditor-Cob7RLyK.js} +71 -72
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
- package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js → ToggleSwitch-J7Vwhvha.js} +6 -7
- package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-DoprRgTn.js → Toolbar-CdpsvNOR.js} +977 -985
- package/dist/cdn/chunks/{Toolbar-DoprRgTn.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
- package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
- package/dist/cdn/chunks/{TplModal-BXQzmsJX.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js → VersionHistoryMenu-BYlLRvRJ.js} +34 -35
- package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js → VersionHistoryPanels-C6SOVoiT.js} +4 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js → VersionPreviewBanner-Dvg0ZfAW.js} +12 -13
- package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js → WrapperBlock-C7Md56IT.js} +14 -15
- package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
- package/dist/cdn/chunks/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
- package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +4 -6
- package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js.map → aiErrors-C3QEMB0x.js.map} +1 -1
- package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +3 -4
- package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js.map → aiImageContext-BQ5mQ6B5.js.map} +1 -1
- package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +2 -3
- package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js.map → aiRewritePreview-DlMyx6Si.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
- package/dist/cdn/chunks/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +2 -3
- package/dist/cdn/chunks/{ca-C7mTzW1r.js.map → ca-CD-Kt1qz.js.map} +1 -1
- package/dist/cdn/chunks/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +2 -3
- package/dist/cdn/chunks/{ca-CYQH3J0b.js.map → ca-Cc6eL0ZS.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js → createCloudRuntime-Cth2JCEh.js} +58 -77
- package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
- package/dist/cdn/chunks/{de-DBOTcDj2.js → de-6M4JoHoD.js} +2 -3
- package/dist/cdn/chunks/{de-DBOTcDj2.js.map → de-6M4JoHoD.js.map} +1 -1
- package/dist/cdn/chunks/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +2 -3
- package/dist/cdn/chunks/{de-DNuYQTmS.js.map → de-CeFJ6wbM.js.map} +1 -1
- package/dist/cdn/chunks/{de-JvCTMJPy.js → de-DtrXVcuY.js} +2 -3
- package/dist/cdn/chunks/{de-JvCTMJPy.js.map → de-DtrXVcuY.js.map} +1 -1
- package/dist/cdn/chunks/{dist-Bo8Thh8v.js → dist-8ym3y-pH.js} +44 -45
- package/dist/cdn/chunks/{dist-Bo8Thh8v.js.map → dist-8ym3y-pH.js.map} +1 -1
- package/dist/{dist-DI4_YSnG.js → cdn/chunks/dist-BMzNabtD.js} +107 -109
- package/dist/cdn/chunks/{dist-S-rLGqax.js.map → dist-BMzNabtD.js.map} +1 -1
- package/dist/cdn/chunks/dompurify-JVtr5-B1.js +872 -0
- package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +1 -0
- package/dist/cdn/chunks/{draggable-DZ0gwUJ6.js → draggable-Du8AUMFT.js} +654 -654
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
- package/dist/{editor-modal-Bzhl-PgI.js → cdn/chunks/editor-modal-CyCe560f.js} +893 -979
- package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js.map → editor-modal-CyCe560f.js.map} +1 -1
- package/dist/cdn/chunks/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +2 -3
- package/dist/cdn/chunks/{emojiData-6m0DBh7O.js.map → emojiData-CBNuCfum.js.map} +1 -1
- package/dist/cdn/chunks/{en-CW71OK66.js → en-D14i5nFh.js} +2 -3
- package/dist/cdn/chunks/{en-CW71OK66.js.map → en-D14i5nFh.js.map} +1 -1
- package/dist/cdn/chunks/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +2 -3
- package/dist/cdn/chunks/{en-CDhWRrF_.js.map → en-FzUuJ8HW.js.map} +1 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
- package/dist/cdn/chunks/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +2 -3
- package/dist/cdn/chunks/{es-CAv-Vldw.js.map → es-Dw_h7Oll.js.map} +1 -1
- package/dist/cdn/chunks/{es-DdK7zQfi.js → es-zDacbMhs.js} +2 -3
- package/dist/cdn/chunks/{es-DdK7zQfi.js.map → es-zDacbMhs.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-taJTZlLK.js → extensions-CFF2KWy-.js} +60 -65
- package/dist/cdn/chunks/{extensions-taJTZlLK.js.map → extensions-CFF2KWy-.js.map} +1 -1
- package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +2 -3
- package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js.map → formatAbsoluteDateTime-Ck2_zXra.js.map} +1 -1
- package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +1 -2
- package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js.map → formatRelativeTime-BTD8Ktt-.js.map} +1 -1
- package/dist/cdn/chunks/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +2 -3
- package/dist/cdn/chunks/{fr-DVPtxpR6.js.map → fr-BJaeKu_8.js.map} +1 -1
- package/dist/cdn/chunks/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +2 -3
- package/dist/cdn/chunks/{fr-Dz5Bgb7-.js.map → fr-CSgYtjOd.js.map} +1 -1
- package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js → htmlparser-hu3YnNQU.js} +6 -11
- package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js.map → htmlparser-hu3YnNQU.js.map} +1 -1
- package/dist/cdn/chunks/{icons-DNX6StSs.js → icons-okSPsLOa.js} +111 -114
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
- package/dist/cdn/chunks/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +2 -3
- package/dist/cdn/chunks/{ja-Di-zJiT8.js.map → ja-B7H3ID8O.js.map} +1 -1
- package/dist/cdn/chunks/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +2 -3
- package/dist/cdn/chunks/{ja-dcWzjStz.js.map → ja-Cu2HdYaK.js.map} +1 -1
- package/dist/cdn/chunks/{keys-BTpmg2Tt.js → keys-CUj6UA38.js} +3 -4
- package/dist/cdn/chunks/{keys-BTpmg2Tt.js.map → keys-CUj6UA38.js.map} +1 -1
- package/dist/{liquid.browser-Ct2-EezB.js → cdn/chunks/liquid.browser-rubac0VA.js} +993 -937
- package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
- package/dist/cdn/chunks/{logger-Tj0RPskW.js → logger-CqQTfJGx.js} +2 -3
- package/dist/cdn/chunks/{logger-Tj0RPskW.js.map → logger-CqQTfJGx.js.map} +1 -1
- package/dist/cdn/chunks/{nl-CvVuHYFL.js → nl-176ySmc5.js} +2 -3
- package/dist/cdn/chunks/{nl-CvVuHYFL.js.map → nl-176ySmc5.js.map} +1 -1
- package/dist/cdn/chunks/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +2 -3
- package/dist/cdn/chunks/{nl-LZNqQgE4.js.map → nl-1Ai2NykB.js.map} +1 -1
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js → normalizeMergeTagMarkup-C_KlfSW4.js} +3 -4
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js → preRenderCustomBlocks-BcXIz7oJ.js} +6 -7
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js.map → pt-BR-Bp92Fc6J.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js.map → pt-BR-CIbp__Z7.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js.map → pt-BR-dDlTwX18.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-Cs4GGEtd.js → pusher-x9rNqzon.js} +3 -4
- package/dist/cdn/chunks/{pusher-Cs4GGEtd.js.map → pusher-x9rNqzon.js.map} +1 -1
- package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +2 -3
- package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js.map → readableTextColor-BfZUGnVj.js.map} +1 -1
- package/dist/cdn/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +72 -0
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +1 -0
- package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js → socialIcons-jsTDmkbb.js} +608 -632
- package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
- package/dist/cdn/chunks/src-C7bkofBL.js +647 -0
- package/dist/cdn/chunks/src-C7bkofBL.js.map +1 -0
- package/dist/cdn/chunks/{src-Bs_yxk3h.js → src-DEd87i_U.js} +502 -537
- package/dist/cdn/chunks/src-DEd87i_U.js.map +1 -0
- package/dist/cdn/chunks/{src-BNFnxfrA.js → src-DwWrYnUj.js} +188 -171
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
- package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +2 -3
- package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js.map → styleConstants-B8xVRiwX.js.map} +1 -1
- package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +2 -3
- package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js.map → templateSettingsFields-cjlP-jdw.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-CtVrAViq.js → tiptap-CbiTlECY.js} +3402 -3278
- package/dist/cdn/chunks/tiptap-CbiTlECY.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js → useCloudI18n-DY8_-ETE.js} +4 -5
- package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-CR5GjJD6.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-CbVubQhM.js → useI18n-D8pY4LTq.js} +4 -5
- package/dist/cdn/chunks/{useI18n-CbVubQhM.js.map → useI18n-D8pY4LTq.js.map} +1 -1
- package/dist/{useLogicTag-DKLZ1T9H.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +6 -5
- package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
- package/dist/{useMergeTag-Bhdx7AKk.js → cdn/chunks/useMergeTag-B-aG--s1.js} +8 -7
- package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
- package/dist/{usePopoverPosition-BZea45XK.js → cdn/chunks/usePopoverPosition-DSMtmu2W.js} +8 -10
- package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js → useScrollToBlock-vjQ0fe-L.js} +5 -7
- package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js → withCurrentFont-hZTvYBHO.js} +3 -4
- package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1433 -1454
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-yYsp5Xpk.js → check-BZ8o0eet.js} +1 -2
- package/dist/{chevron-down-DTmD06_j.js → chevron-down-DfAAfILv.js} +1 -2
- package/dist/{chevron-right-BSeYZOxc.js → chevron-right-Bk4mGdr7.js} +1 -2
- package/dist/{chevron-up-BOApwrxi.js → chevron-up-MhUf_azW.js} +1 -2
- package/dist/{circle-alert-BMszY8im.js → circle-alert-CShJwVFv.js} +1 -2
- package/dist/{clock-HADxnl6-.js → clock-CTfD6OCt.js} +1 -2
- package/dist/{createCloudRuntime-DVQI_ReU.js → createCloudRuntime-DCgO4A1r.js} +31 -37
- package/dist/{createLucideIcon-0lYYH3EW.js → createLucideIcon-CvhTA2KG.js} +6 -11
- package/dist/{de-DBOTcDj2.js → de-6M4JoHoD.js} +1 -2
- package/dist/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +1 -2
- package/dist/{de-JvCTMJPy.js → de-DtrXVcuY.js} +1 -2
- package/dist/{dist-BC-ZEYLd.js → dist-BF5zEHop.js} +2 -3
- package/dist/{dist-CyBwSiAa.js → dist-BS5uKktL.js} +2 -3
- package/dist/{cdn/chunks/dist-S-rLGqax.js → dist-ByCWA2Tv.js} +101 -101
- package/dist/{dist-DtOF3bDW.js → dist-CKi_npZM.js} +378 -343
- package/dist/{dist-C7EtxNCb.js → dist-CVy-7PHQ.js} +55 -56
- package/dist/{dist-Cr7RPxI9.js → dist-CWSG7Kj0.js} +478 -461
- package/dist/{dist-DXyGqIDE.js → dist-Cy8I5scI.js} +2 -3
- package/dist/{dist-C_dV9QAx.js → dist-D6cMdrfG.js} +133 -133
- package/dist/{dist-DVNjPKsH.js → dist-D6fZec6r.js} +3 -4
- package/dist/{dist-CuLwJF7H.js → dist-Dd5MU2Ev.js} +23 -14
- package/dist/dist-DyFArF_G.js +4 -0
- package/dist/{dist-DBxgrOeo.js → dist-V7W1UhVr.js} +1882 -1792
- package/dist/{dist-DPcf6XZ8.js → dist-p3wymUDt.js} +2 -3
- package/dist/dist-pA3ooG6N.js +4 -0
- package/dist/{dist-3HpYixwF.js → dist-txQLT2sF.js} +173 -161
- package/dist/{cdn/chunks/editor-modal-CI6EfeMd.js → editor-modal-zaZHcmlO.js} +915 -859
- package/dist/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +1 -2
- package/dist/{en-CW71OK66.js → en-D14i5nFh.js} +1 -2
- package/dist/en-Db76vJbY.js +1 -0
- package/dist/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +1 -2
- package/dist/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +1 -2
- package/dist/{es-DdK7zQfi.js → es-zDacbMhs.js} +1 -2
- package/dist/{extensions-CdyweA50.js → extensions-fo_c-vqf.js} +82 -91
- package/dist/{eye-DWkSvYpj.js → eye-7W4t5e0Q.js} +1 -2
- package/dist/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +1 -2
- package/dist/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +0 -1
- package/dist/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +1 -2
- package/dist/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +1 -2
- package/dist/{image-DesWjcZ4.js → image-BDiRFzSd.js} +1 -2
- package/dist/index.d.ts +6 -6
- package/dist/{info-ClWJGoZy.js → info-Cxi3-Kh9.js} +1 -2
- package/dist/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +1 -2
- package/dist/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +1 -2
- package/dist/{keys-Zd9KWRD1.js → keys-BgRERHzu.js} +2 -3
- package/dist/{link-BqRicFTA.js → link-ju_2Cmir.js} +1 -2
- package/dist/{cdn/chunks/liquid.browser-Bbt17cVz.js → liquid.browser-DUXEekoN.js} +991 -939
- package/dist/{list-bojQr9bn.js → list-DYZJf0aZ.js} +1 -2
- package/dist/{loader-circle-B2B8LbUu.js → loader-circle-BZRD0a4I.js} +1 -2
- package/dist/{logger-k9Nbj3Cp.js → logger-BOu7oEtk.js} +1 -2
- package/dist/{message-circle-BEuiNsyZ.js → message-circle-DuEw4Zfx.js} +1 -2
- package/dist/{nl-CvVuHYFL.js → nl-176ySmc5.js} +1 -2
- package/dist/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +1 -2
- package/dist/{normalizeMergeTagMarkup-P6SUBuPv.js → normalizeMergeTagMarkup-CELnOlgK.js} +30 -31
- package/dist/{package-DCROB4aM.js → package-CePMr2kK.js} +1 -2
- package/dist/{pencil-CEotCKbf.js → pencil-D3aFCL7c.js} +1 -2
- package/dist/{preRenderCustomBlocks-D8rr61_z.js → preRenderCustomBlocks--_xc0XK3.js} +4 -5
- package/dist/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +1 -2
- package/dist/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +1 -2
- package/dist/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +1 -2
- package/dist/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +1 -2
- package/dist/{refresh-cw-C6M2mHNC.js → refresh-cw-xnro7_Sk.js} +1 -2
- package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
- package/dist/{runtime-dom.esm-bundler-B8WCZWUm.js → runtime-dom.esm-bundler-BURR-bj5.js} +121 -122
- package/dist/sanitizeHtml-BzfzpYJY.js +942 -0
- package/dist/{search-Cy99zPYf.js → search-CDrstRBv.js} +1 -2
- package/dist/{send-BDLJFsf3.js → send-DROkPOaX.js} +1 -2
- package/dist/{smartphone-CVvQaNA4.js → smartphone-Bx6u_tjn.js} +1 -2
- package/dist/{socialIcons-Dd-jRiVe.js → socialIcons-D7MGsg0d.js} +553 -564
- package/dist/{sparkles-Ce0Qz0ox.js → sparkles-CdaTtvoz.js} +1 -2
- package/dist/{square-BWlolnXe.js → square-BbCROH_f.js} +1 -2
- package/dist/style.css +1 -1
- package/dist/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +1 -2
- package/dist/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +1 -2
- package/dist/templatical-editor.js +1231 -1251
- package/dist/{text-align-start-D1V5gPTy.js → text-align-start-CGacJ9Vw.js} +1 -2
- package/dist/{trash-CZfiUFmw.js → trash-DxCd7zIy.js} +1 -2
- package/dist/{triangle-alert-CFDzyFC7.js → triangle-alert-7_oaitpf.js} +1 -2
- package/dist/{upload-BJfvdIrD.js → upload-DuFEOi_0.js} +1 -2
- package/dist/{useCloudI18n-Dcjua65H.js → useCloudI18n-DEMmUKuO.js} +3 -4
- package/dist/{useEditorCore-BTLeAVlM.js → useEditorCore-BSo2sSID.js} +1568 -1573
- package/dist/useEditorRoot-BMcoCLBx.js +7 -0
- package/dist/{useI18n-BdoY7xDE.js → useI18n-BBrHTdu8.js} +3 -4
- package/dist/{cdn/chunks/useLogicTag-B49Nc53Y.js → useLogicTag-ZPC39rfH.js} +4 -7
- package/dist/{cdn/chunks/useMergeTag-B0KryMj8.js → useMergeTag-BQ4qqWpQ.js} +6 -9
- package/dist/{cdn/chunks/usePopoverPosition-C829ps5i.js → usePopoverPosition-DV1PxL66.js} +6 -12
- package/dist/{useScrollToBlock-FmNMALM_.js → useScrollToBlock-BSyAV4pk.js} +4 -6
- package/dist/{vue.runtime.esm-bundler-DgFJ6GPG.js → vue.runtime.esm-bundler-CnEeTfhs.js} +1001 -1002
- package/dist/{withCurrentFont-BATJHNve.js → withCurrentFont-B22FXAF5.js} +2 -3
- package/dist/{x-CZ0Js0hA.js → x-BpfG7v9g.js} +1 -2
- package/package.json +26 -24
- package/dist/BlockIssueBadge-CKwZ1Vgn.js +0 -34
- package/dist/CommentsSidebar-Ca3DyFOX.js +0 -500
- package/dist/IssuesPanel-C8nMUccy.js +0 -360
- package/dist/SavedBlocksBrowserModal-wnkvxpm_.js +0 -360
- package/dist/WrapperBlock-BO619LAb.js +0 -45
- package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js +0 -35
- package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js.map +0 -1
- package/dist/cdn/chunks/LoadingTrack-BIcL4NiY.js +0 -12
- package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +0 -357
- package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js.map +0 -1
- package/dist/cdn/chunks/TplModal-BXQzmsJX.js +0 -52
- package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +0 -22
- package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js.map +0 -1
- package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +0 -1
- package/dist/cdn/chunks/en-ifvu6oPv.js +0 -1
- package/dist/cdn/chunks/icons-DNX6StSs.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-Bbt17cVz.js.map +0 -1
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +0 -62
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +0 -1
- package/dist/cdn/chunks/src-BNFnxfrA.js.map +0 -1
- package/dist/cdn/chunks/src-Bs_yxk3h.js.map +0 -1
- package/dist/cdn/chunks/src-YGkzYyu0.js +0 -649
- package/dist/cdn/chunks/src-YGkzYyu0.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CtVrAViq.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +0 -2586
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +0 -10
- package/dist/dist-BPFcLKTw.js +0 -5
- package/dist/dist-D7Yj7E-F.js +0 -5
- package/dist/en-DwV15ltA.js +0 -1
- package/dist/sanitizeRichTextHtml-DeISfLFr.js +0 -60
- package/dist/useEditorRoot-DUy67lJu.js +0 -8
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { N as
|
|
5
|
-
import { _ as be } from "./dist-
|
|
6
|
-
import { $ as xe, C as Se, L as Ce, P as we, W as Te, d as Ee, g as De, h as Oe, n as ke, p as Ae, v as je, x as Me } from "./keys-
|
|
7
|
-
import { t as B } from "./useI18n-
|
|
8
|
-
import { o as Ne } from "./usePopoverPosition-
|
|
9
|
-
import { $ as Pe,
|
|
10
|
-
import { t as $e } from "./_plugin-vue_export-helper-
|
|
11
|
-
import { _ as et, b as tt, c as nt, g as H, h as U, m as W, p as G, r as rt, v as it } from "./styleConstants-
|
|
12
|
-
import { t as at } from "./blockTypeIcons-
|
|
13
|
-
import { c as K } from "./LogicTagInsertButton-
|
|
14
|
-
import { t as ot } from "./MergeTagTextarea-
|
|
15
|
-
import { t as q } from "./ToggleSwitch-
|
|
16
|
-
import { n as st, t as ct } from "./withCurrentFont-
|
|
17
|
-
import { t as J } from "./MergeTagInput-
|
|
18
|
-
|
|
1
|
+
import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
|
+
import { C as t, D as n, G as r, I as i, L as a, P as o, Q as s, S as c, V as l, W as u, Z as d, _ as f, b as p, dt as m, et as h, ft as g, g as _, h as v, m as y, o as b, p as x, s as S, st as C, u as w, ut as T, x as E, z as D } from "./draggable-Du8AUMFT.js";
|
|
3
|
+
import { Et as O, Ft as k, Ht as A, It as j, Jt as M, Lt as N, Pt as P, Rt as ee, Vt as F, Wt as te, Yt as ne, Z as I, j as re, n as ie, ot as ae, r as L } from "./src-DwWrYnUj.js";
|
|
4
|
+
import { N as oe, _ as se, c as ce, d as le, f as ue, g as de, h as fe, i as pe, l as me, m as he, o as ge, p as _e, r as R, u as ve, w as ye, y as z } from "./socialIcons-jsTDmkbb.js";
|
|
5
|
+
import { _ as be } from "./dist-8ym3y-pH.js";
|
|
6
|
+
import { $ as xe, C as Se, L as Ce, P as we, W as Te, d as Ee, g as De, h as Oe, n as ke, p as Ae, v as je, x as Me } from "./keys-CUj6UA38.js";
|
|
7
|
+
import { t as B } from "./useI18n-D8pY4LTq.js";
|
|
8
|
+
import { o as Ne } from "./usePopoverPosition-DSMtmu2W.js";
|
|
9
|
+
import { $ as Pe, Ft as Fe, H as V, O as Ie, R as Le, _ as Re, _t as ze, c as Be, et as Ve, f as He, gt as Ue, it as We, jt as Ge, kt as Ke, lt as qe, m as Je, rt as Ye, t as Xe, v as Ze, zt as Qe } from "./icons-okSPsLOa.js";
|
|
10
|
+
import { t as $e } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
11
|
+
import { _ as et, b as tt, c as nt, g as H, h as U, m as W, p as G, r as rt, v as it } from "./styleConstants-B8xVRiwX.js";
|
|
12
|
+
import { t as at } from "./blockTypeIcons-D7FW7Ypo.js";
|
|
13
|
+
import { c as K } from "./LogicTagInsertButton-BIi05UQu.js";
|
|
14
|
+
import { t as ot } from "./MergeTagTextarea-tBz8McZf.js";
|
|
15
|
+
import { t as q } from "./ToggleSwitch-J7Vwhvha.js";
|
|
16
|
+
import { n as st, t as ct } from "./withCurrentFont-hZTvYBHO.js";
|
|
17
|
+
import { t as J } from "./MergeTagInput-BvWg8o5E.js";
|
|
18
|
+
// src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
|
|
19
19
|
var lt = [
|
|
20
20
|
"aria-checked",
|
|
21
21
|
"aria-label",
|
|
@@ -23,7 +23,7 @@ var lt = [
|
|
|
23
23
|
"aria-disabled",
|
|
24
24
|
"title",
|
|
25
25
|
"onClick"
|
|
26
|
-
], ut = { key: 1 }, Y = /* @__PURE__ */
|
|
26
|
+
], ut = { key: 1 }, Y = /* @__PURE__ */ t({
|
|
27
27
|
__name: "SlidingPillSelect",
|
|
28
28
|
props: {
|
|
29
29
|
options: {},
|
|
@@ -31,18 +31,18 @@ var lt = [
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["update:modelValue"],
|
|
33
33
|
setup(e, { emit: t }) {
|
|
34
|
-
let n = e, r = t, a =
|
|
35
|
-
return (t, n) => (o(),
|
|
34
|
+
let n = e, r = t, a = x(() => n.options.findIndex((e) => e.value === n.modelValue)), s = x(() => `translateX(${Math.max(a.value, 0) * 100}%)`);
|
|
35
|
+
return (t, n) => (o(), f("div", {
|
|
36
36
|
role: "radiogroup",
|
|
37
37
|
class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
|
|
38
|
-
style:
|
|
38
|
+
style: m({
|
|
39
39
|
gridTemplateColumns: `repeat(${e.options.length}, 1fr)`,
|
|
40
40
|
backgroundColor: "var(--tpl-bg-hover)"
|
|
41
41
|
})
|
|
42
|
-
}, [a.value >= 0 ? (o(),
|
|
42
|
+
}, [a.value >= 0 ? (o(), f("div", {
|
|
43
43
|
key: 0,
|
|
44
44
|
class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
|
|
45
|
-
style:
|
|
45
|
+
style: m({
|
|
46
46
|
left: "4px",
|
|
47
47
|
width: `calc((100% - 8px) / ${e.options.length})`,
|
|
48
48
|
transform: s.value,
|
|
@@ -50,7 +50,7 @@ var lt = [
|
|
|
50
50
|
boxShadow: "var(--tpl-shadow)",
|
|
51
51
|
transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
52
52
|
})
|
|
53
|
-
}, null, 4)) :
|
|
53
|
+
}, null, 4)) : _("", !0), (o(!0), f(w, null, i(e.options, (t) => (o(), f("button", {
|
|
54
54
|
key: t.value,
|
|
55
55
|
role: "radio",
|
|
56
56
|
"aria-checked": e.modelValue === t.value,
|
|
@@ -58,24 +58,24 @@ var lt = [
|
|
|
58
58
|
disabled: t.disabled,
|
|
59
59
|
"aria-disabled": t.disabled ? "true" : void 0,
|
|
60
60
|
class: "tpl:relative tpl:z-10 tpl:flex tpl:cursor-pointer tpl:disabled:cursor-not-allowed tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:py-[5px] tpl:text-xs tpl:font-medium",
|
|
61
|
-
style:
|
|
61
|
+
style: m({
|
|
62
62
|
color: t.disabled ? "var(--tpl-text-dim)" : e.modelValue === t.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
63
63
|
transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
64
64
|
}),
|
|
65
65
|
title: t.label,
|
|
66
66
|
onClick: (e) => t.disabled || r("update:modelValue", t.value)
|
|
67
|
-
}, [t.icon ? (o(),
|
|
67
|
+
}, [t.icon ? (o(), v(D(t.icon), {
|
|
68
68
|
key: 0,
|
|
69
69
|
size: 14,
|
|
70
70
|
"stroke-width": 2
|
|
71
|
-
})) : (o(),
|
|
71
|
+
})) : (o(), f("span", ut, g(t.label), 1))], 12, lt))), 128))], 4));
|
|
72
72
|
}
|
|
73
73
|
}), dt = { class: "tpl:flex tpl:items-stretch" }, ft = [
|
|
74
74
|
"data-testid",
|
|
75
75
|
"value",
|
|
76
76
|
"min",
|
|
77
77
|
"max"
|
|
78
|
-
], X = /* @__PURE__ */
|
|
78
|
+
], X = /* @__PURE__ */ t({
|
|
79
79
|
__name: "NumberWithSuffix",
|
|
80
80
|
props: {
|
|
81
81
|
modelValue: {},
|
|
@@ -91,22 +91,22 @@ var lt = [
|
|
|
91
91
|
let t = e.target;
|
|
92
92
|
t.validity?.badInput || n("update:modelValue", Number(t.value));
|
|
93
93
|
}
|
|
94
|
-
return (t, n) => (o(),
|
|
94
|
+
return (t, n) => (o(), f("div", dt, [y("input", {
|
|
95
95
|
type: "number",
|
|
96
96
|
"data-testid": e.testid,
|
|
97
|
-
class:
|
|
97
|
+
class: T(C(W)),
|
|
98
98
|
value: e.modelValue,
|
|
99
99
|
min: e.min,
|
|
100
100
|
max: e.max,
|
|
101
101
|
onInput: r
|
|
102
|
-
}, null, 42, ft), y("span", { class:
|
|
102
|
+
}, null, 42, ft), y("span", { class: T(C(U)) }, g(e.suffix), 3)]));
|
|
103
103
|
}
|
|
104
104
|
}), pt = [
|
|
105
105
|
"aria-pressed",
|
|
106
106
|
"aria-label",
|
|
107
107
|
"title",
|
|
108
108
|
"data-testid"
|
|
109
|
-
], mt = /* @__PURE__ */
|
|
109
|
+
], mt = /* @__PURE__ */ t({
|
|
110
110
|
__name: "LinkToggle",
|
|
111
111
|
props: {
|
|
112
112
|
linked: { type: Boolean },
|
|
@@ -117,19 +117,19 @@ var lt = [
|
|
|
117
117
|
emits: ["toggle"],
|
|
118
118
|
setup(e, { emit: t }) {
|
|
119
119
|
let n = t;
|
|
120
|
-
return (t, r) => (o(),
|
|
120
|
+
return (t, r) => (o(), f("button", {
|
|
121
121
|
type: "button",
|
|
122
|
-
class:
|
|
122
|
+
class: T(["tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", e.linked ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
123
123
|
"aria-pressed": e.linked ? "true" : "false",
|
|
124
124
|
"aria-label": e.linked ? e.unlinkLabel : e.linkLabel,
|
|
125
125
|
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
126
126
|
"data-testid": e.testid,
|
|
127
127
|
onClick: r[0] ||= (e) => n("toggle")
|
|
128
|
-
}, [e.linked ? (o(),
|
|
128
|
+
}, [e.linked ? (o(), v(C(qe), {
|
|
129
129
|
key: 0,
|
|
130
130
|
size: 14,
|
|
131
131
|
"stroke-width": 2
|
|
132
|
-
})) : (o(),
|
|
132
|
+
})) : (o(), v(C(Be), {
|
|
133
133
|
key: 1,
|
|
134
134
|
size: 14,
|
|
135
135
|
"stroke-width": 2
|
|
@@ -138,73 +138,73 @@ var lt = [
|
|
|
138
138
|
}), ht = { class: "tpl:mb-3.5" }, gt = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, _t = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, vt = {
|
|
139
139
|
key: 0,
|
|
140
140
|
class: "tpl:mb-3.5"
|
|
141
|
-
}, yt = { class: "tpl:mb-3.5" }, bt = { class: "tpl:mb-3.5" }, xt = /* @__PURE__ */
|
|
141
|
+
}, yt = { class: "tpl:mb-3.5" }, bt = { class: "tpl:mb-3.5" }, xt = /* @__PURE__ */ t({
|
|
142
142
|
__name: "BorderControl",
|
|
143
143
|
props: {
|
|
144
144
|
modelValue: {},
|
|
145
145
|
testidPrefix: {}
|
|
146
146
|
},
|
|
147
147
|
emits: ["update:modelValue"],
|
|
148
|
-
setup(e, { emit:
|
|
149
|
-
let
|
|
148
|
+
setup(e, { emit: t }) {
|
|
149
|
+
let n = e, r = t, { t: i } = B(), a = {
|
|
150
150
|
width: 0,
|
|
151
151
|
style: "solid",
|
|
152
152
|
color: "#000000"
|
|
153
153
|
};
|
|
154
|
-
function
|
|
154
|
+
function s(e, t) {
|
|
155
155
|
return e.width === t.width && e.style === t.style && e.color === t.color;
|
|
156
156
|
}
|
|
157
|
-
let
|
|
158
|
-
let e =
|
|
159
|
-
return !e ||
|
|
160
|
-
}),
|
|
161
|
-
l(
|
|
162
|
-
!e &&
|
|
157
|
+
let c = x(() => {
|
|
158
|
+
let e = n.modelValue;
|
|
159
|
+
return !e || A.every((t) => s(e[t], e.top));
|
|
160
|
+
}), u = h(c.value);
|
|
161
|
+
l(c, (e) => {
|
|
162
|
+
!e && u.value && (u.value = !1);
|
|
163
163
|
});
|
|
164
|
-
let
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
167
|
-
|
|
164
|
+
let d = h("top"), p = x(() => n.modelValue?.[u.value ? "top" : d.value] ?? a), m = (e) => !!e && e.width > 0;
|
|
165
|
+
function v(e) {
|
|
166
|
+
if (u.value) {
|
|
167
|
+
r("update:modelValue", m(e) ? ne(e) : void 0);
|
|
168
168
|
return;
|
|
169
169
|
}
|
|
170
170
|
let t = {
|
|
171
|
-
...
|
|
172
|
-
[
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
function
|
|
177
|
-
|
|
178
|
-
...
|
|
171
|
+
...n.modelValue ?? ne(a),
|
|
172
|
+
[d.value]: e
|
|
173
|
+
}, i = A.some((e) => m(t[e]));
|
|
174
|
+
r("update:modelValue", i ? t : void 0);
|
|
175
|
+
}
|
|
176
|
+
function b(e) {
|
|
177
|
+
v({
|
|
178
|
+
...p.value,
|
|
179
179
|
width: e > 0 ? e : 0
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
|
|
184
|
-
...
|
|
182
|
+
function S(e) {
|
|
183
|
+
v({
|
|
184
|
+
...p.value,
|
|
185
185
|
...e
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
function D() {
|
|
189
|
-
if (
|
|
190
|
-
|
|
189
|
+
if (u.value) {
|
|
190
|
+
u.value = !1;
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
|
-
|
|
194
|
-
let e =
|
|
193
|
+
u.value = !0;
|
|
194
|
+
let e = n.modelValue;
|
|
195
195
|
if (!e) return;
|
|
196
|
-
let t =
|
|
197
|
-
|
|
196
|
+
let t = m(e[d.value]) ? e[d.value] : A.map((t) => e[t]).find(m);
|
|
197
|
+
r("update:modelValue", t ? ne(t) : void 0);
|
|
198
198
|
}
|
|
199
|
-
let O =
|
|
199
|
+
let O = x(() => A.map((e) => ({
|
|
200
200
|
value: e,
|
|
201
|
-
label:
|
|
201
|
+
label: i.spacingControl[e]
|
|
202
202
|
})));
|
|
203
|
-
return (t, n) => (o(),
|
|
204
|
-
y("div", gt, [y("span", _t,
|
|
205
|
-
linked:
|
|
206
|
-
"link-label":
|
|
207
|
-
"unlink-label":
|
|
203
|
+
return (t, n) => (o(), f("div", ht, [
|
|
204
|
+
y("div", gt, [y("span", _t, g(C(i).blockSettings.border), 1), E(mt, {
|
|
205
|
+
linked: u.value,
|
|
206
|
+
"link-label": C(i).blockSettings.linkSides,
|
|
207
|
+
"unlink-label": C(i).blockSettings.unlinkSides,
|
|
208
208
|
testid: `${e.testidPrefix}-border-link`,
|
|
209
209
|
onToggle: D
|
|
210
210
|
}, null, 8, [
|
|
@@ -213,45 +213,45 @@ var lt = [
|
|
|
213
213
|
"unlink-label",
|
|
214
214
|
"testid"
|
|
215
215
|
])]),
|
|
216
|
-
|
|
216
|
+
u.value ? _("", !0) : (o(), f("div", vt, [y("label", { class: T(C(H)) }, g(C(i).blockSettings.borderSide), 3), E(Y, {
|
|
217
217
|
options: O.value,
|
|
218
|
-
"model-value":
|
|
219
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
218
|
+
"model-value": d.value,
|
|
219
|
+
"onUpdate:modelValue": n[0] ||= (e) => d.value = e
|
|
220
220
|
}, null, 8, ["options", "model-value"])])),
|
|
221
|
-
y("div", yt, [y("label", { class:
|
|
222
|
-
"model-value":
|
|
221
|
+
y("div", yt, [y("label", { class: T(C(H)) }, g(C(i).blockSettings.borderWidth), 3), E(X, {
|
|
222
|
+
"model-value": p.value.width,
|
|
223
223
|
min: 0,
|
|
224
224
|
suffix: "px",
|
|
225
225
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
226
|
-
"onUpdate:modelValue":
|
|
226
|
+
"onUpdate:modelValue": b
|
|
227
227
|
}, null, 8, ["model-value", "testid"])]),
|
|
228
|
-
|
|
228
|
+
p.value.width > 0 ? (o(), f(w, { key: 1 }, [y("div", bt, [y("label", { class: T(C(H)) }, g(C(i).blockSettings.borderStyle), 3), E(Y, {
|
|
229
229
|
options: [
|
|
230
230
|
{
|
|
231
231
|
value: "solid",
|
|
232
|
-
label:
|
|
232
|
+
label: C(i).divider.solid
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
235
|
value: "dashed",
|
|
236
|
-
label:
|
|
236
|
+
label: C(i).divider.dashed
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
239
|
value: "dotted",
|
|
240
|
-
label:
|
|
240
|
+
label: C(i).divider.dotted
|
|
241
241
|
}
|
|
242
242
|
],
|
|
243
|
-
"model-value":
|
|
244
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
245
|
-
}, null, 8, ["options", "model-value"])]), y("div", null, [y("label", { class:
|
|
246
|
-
"model-value":
|
|
247
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
248
|
-
}, null, 8, ["model-value"])])], 64)) :
|
|
243
|
+
"model-value": p.value.style,
|
|
244
|
+
"onUpdate:modelValue": n[1] ||= (e) => S({ style: e })
|
|
245
|
+
}, null, 8, ["options", "model-value"])]), y("div", null, [y("label", { class: T(C(H)) }, g(C(i).blockSettings.borderColor), 3), E(K, {
|
|
246
|
+
"model-value": p.value.color,
|
|
247
|
+
"onUpdate:modelValue": n[2] ||= (e) => S({ color: e })
|
|
248
|
+
}, null, 8, ["model-value"])])], 64)) : _("", !0)
|
|
249
249
|
]));
|
|
250
250
|
}
|
|
251
251
|
}), St = { class: "tpl:mb-3.5" }, Ct = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, wt = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Tt = {
|
|
252
252
|
key: 1,
|
|
253
253
|
class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
|
|
254
|
-
}, Et = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Dt = /* @__PURE__ */
|
|
254
|
+
}, Et = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Dt = /* @__PURE__ */ t({
|
|
255
255
|
__name: "RadiusControl",
|
|
256
256
|
props: {
|
|
257
257
|
modelValue: {},
|
|
@@ -260,69 +260,69 @@ var lt = [
|
|
|
260
260
|
max: {}
|
|
261
261
|
},
|
|
262
262
|
emits: ["update:modelValue"],
|
|
263
|
-
setup(e, { emit:
|
|
264
|
-
let
|
|
263
|
+
setup(e, { emit: t }) {
|
|
264
|
+
let n = e, r = t, { t: a } = B(), s = {
|
|
265
265
|
topLeft: "cornerTopLeft",
|
|
266
266
|
topRight: "cornerTopRight",
|
|
267
267
|
bottomRight: "cornerBottomRight",
|
|
268
268
|
bottomLeft: "cornerBottomLeft"
|
|
269
|
-
},
|
|
269
|
+
}, c = [
|
|
270
270
|
"topLeft",
|
|
271
271
|
"topRight",
|
|
272
272
|
"bottomLeft",
|
|
273
273
|
"bottomRight"
|
|
274
|
-
],
|
|
275
|
-
let e =
|
|
274
|
+
], u = x(() => {
|
|
275
|
+
let e = n.modelValue ?? 0;
|
|
276
276
|
return typeof e == "number" ? {
|
|
277
277
|
topLeft: e,
|
|
278
278
|
topRight: e,
|
|
279
279
|
bottomRight: e,
|
|
280
280
|
bottomLeft: e
|
|
281
281
|
} : e;
|
|
282
|
-
}),
|
|
283
|
-
l(
|
|
284
|
-
!e &&
|
|
282
|
+
}), d = x(() => F.every((e) => u.value[e] === u.value.topLeft)), p = h(d.value);
|
|
283
|
+
l(d, (e) => {
|
|
284
|
+
!e && p.value && (p.value = !1);
|
|
285
285
|
});
|
|
286
|
-
function
|
|
286
|
+
function m(e) {
|
|
287
287
|
return Number.isFinite(e) && e >= 0;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
|
|
289
|
+
function _(e) {
|
|
290
|
+
m(e) && r("update:modelValue", e);
|
|
291
291
|
}
|
|
292
292
|
function b(e, t) {
|
|
293
|
-
|
|
294
|
-
...
|
|
293
|
+
m(t) && r("update:modelValue", {
|
|
294
|
+
...u.value,
|
|
295
295
|
[e]: t
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
|
|
298
|
+
function S() {
|
|
299
|
+
p.value = !p.value, p.value && r("update:modelValue", u.value.topLeft);
|
|
300
300
|
}
|
|
301
|
-
return (t, n) => (o(),
|
|
302
|
-
linked:
|
|
303
|
-
"link-label":
|
|
304
|
-
"unlink-label":
|
|
301
|
+
return (t, n) => (o(), f("div", St, [y("div", Ct, [y("span", wt, g(e.label), 1), E(mt, {
|
|
302
|
+
linked: p.value,
|
|
303
|
+
"link-label": C(a).blockSettings.linkCorners,
|
|
304
|
+
"unlink-label": C(a).blockSettings.unlinkCorners,
|
|
305
305
|
testid: `${e.testidPrefix}-border-radius-link`,
|
|
306
|
-
onToggle:
|
|
306
|
+
onToggle: S
|
|
307
307
|
}, null, 8, [
|
|
308
308
|
"linked",
|
|
309
309
|
"link-label",
|
|
310
310
|
"unlink-label",
|
|
311
311
|
"testid"
|
|
312
|
-
])]),
|
|
312
|
+
])]), p.value ? (o(), v(X, {
|
|
313
313
|
key: 0,
|
|
314
|
-
"model-value":
|
|
314
|
+
"model-value": u.value.topLeft,
|
|
315
315
|
min: 0,
|
|
316
316
|
max: e.max,
|
|
317
317
|
suffix: "px",
|
|
318
318
|
testid: `${e.testidPrefix}-border-radius-input`,
|
|
319
|
-
"onUpdate:modelValue":
|
|
319
|
+
"onUpdate:modelValue": _
|
|
320
320
|
}, null, 8, [
|
|
321
321
|
"model-value",
|
|
322
322
|
"max",
|
|
323
323
|
"testid"
|
|
324
|
-
])) : (o(),
|
|
325
|
-
"model-value":
|
|
324
|
+
])) : (o(), f("div", Tt, [(o(), f(w, null, i(c, (t) => y("div", { key: t }, [y("label", Et, g(C(a).blockSettings[s[t]]), 1), E(X, {
|
|
325
|
+
"model-value": u.value[t],
|
|
326
326
|
min: 0,
|
|
327
327
|
max: e.max,
|
|
328
328
|
suffix: "px",
|
|
@@ -338,7 +338,7 @@ var lt = [
|
|
|
338
338
|
}), Ot = { class: "tpl:mb-3.5" }, kt = ["value"], At = { value: "" }, jt = ["value"], Mt = { class: "tpl:mb-3.5" }, 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:flex tpl:items-stretch" }, Rt = ["value"], zt = { class: "tpl:mb-3.5" }, Bt = ["value"], Vt = { value: "auto" }, Ht = { value: "full" }, Ut = { value: "custom" }, Wt = {
|
|
339
339
|
key: 0,
|
|
340
340
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
341
|
-
}, Gt = ["value"], Kt = { class: "tpl:mb-3.5" }, qt = 200, Jt = /* @__PURE__ */
|
|
341
|
+
}, Gt = ["value"], Kt = { class: "tpl:mb-3.5" }, qt = 200, Jt = /* @__PURE__ */ t({
|
|
342
342
|
__name: "ButtonToolbar",
|
|
343
343
|
props: {
|
|
344
344
|
block: {},
|
|
@@ -346,7 +346,7 @@ var lt = [
|
|
|
346
346
|
},
|
|
347
347
|
emits: ["update"],
|
|
348
348
|
setup(e, { emit: t }) {
|
|
349
|
-
let n = e, r = t, { t: a } = B(), s =
|
|
349
|
+
let n = e, r = t, { t: a } = B(), s = x(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
|
|
350
350
|
function c(e, t) {
|
|
351
351
|
r("update", { [e]: t });
|
|
352
352
|
}
|
|
@@ -357,42 +357,42 @@ var lt = [
|
|
|
357
357
|
let t = Number(e);
|
|
358
358
|
!Number.isFinite(t) || t <= 0 || c("width", t);
|
|
359
359
|
}
|
|
360
|
-
return (t, n) => (o(),
|
|
361
|
-
y("div", Ot, [y("label", { class:
|
|
362
|
-
class:
|
|
363
|
-
value:
|
|
360
|
+
return (t, n) => (o(), f(w, null, [
|
|
361
|
+
y("div", Ot, [y("label", { class: T(C(H)) }, g(C(a).button.fontFamily), 3), y("select", {
|
|
362
|
+
class: T(C(G)),
|
|
363
|
+
value: C(ct)(e.block.fontFamily),
|
|
364
364
|
onChange: n[0] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
365
|
-
}, [y("option", At,
|
|
365
|
+
}, [y("option", At, g(C(a).button.inheritFont), 1), (o(!0), f(w, null, i(e.fontFamilies, (e) => (o(), f("option", {
|
|
366
366
|
key: e.value,
|
|
367
367
|
value: e.value
|
|
368
|
-
},
|
|
369
|
-
y("div", Mt, [y("label", { class:
|
|
368
|
+
}, g(e.label), 9, jt))), 128))], 42, kt)]),
|
|
369
|
+
y("div", Mt, [y("label", { class: T(C(H)) }, g(C(a).button.text), 3), E(J, {
|
|
370
370
|
"model-value": e.block.text,
|
|
371
371
|
type: "text",
|
|
372
372
|
"onUpdate:modelValue": n[1] ||= (e) => c("text", e)
|
|
373
373
|
}, null, 8, ["model-value"])]),
|
|
374
374
|
y("div", Nt, [
|
|
375
|
-
y("label", { class:
|
|
375
|
+
y("label", { class: T(C(H)) }, g(C(a).button.url), 3),
|
|
376
376
|
E(J, {
|
|
377
377
|
"model-value": e.block.url,
|
|
378
378
|
type: "url",
|
|
379
|
-
placeholder:
|
|
379
|
+
placeholder: C(a).button.urlPlaceholder,
|
|
380
380
|
"onUpdate:modelValue": n[2] ||= (e) => c("url", e)
|
|
381
381
|
}, null, 8, ["model-value", "placeholder"]),
|
|
382
|
-
e.block.url ? (o(),
|
|
382
|
+
e.block.url ? (o(), v(q, {
|
|
383
383
|
key: 0,
|
|
384
384
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
385
385
|
"model-value": e.block.openInNewTab ?? !1,
|
|
386
|
-
label:
|
|
386
|
+
label: C(a).button.openInNewTab,
|
|
387
387
|
"onUpdate:modelValue": n[3] ||= (e) => c("openInNewTab", e)
|
|
388
|
-
}, null, 8, ["model-value", "label"])) :
|
|
388
|
+
}, null, 8, ["model-value", "label"])) : _("", !0)
|
|
389
389
|
]),
|
|
390
|
-
y("div", Pt, [y("label", { class:
|
|
390
|
+
y("div", Pt, [y("label", { class: T(C(H)) }, g(C(a).button.background), 3), E(K, {
|
|
391
391
|
"model-value": e.block.backgroundColor,
|
|
392
392
|
"allow-transparent": "",
|
|
393
393
|
"onUpdate:modelValue": n[4] ||= (e) => c("backgroundColor", e)
|
|
394
394
|
}, null, 8, ["model-value"])]),
|
|
395
|
-
y("div", Ft, [y("label", { class:
|
|
395
|
+
y("div", Ft, [y("label", { class: T(C(H)) }, g(C(a).button.textColor), 3), E(K, {
|
|
396
396
|
"model-value": e.block.textColor,
|
|
397
397
|
"onUpdate:modelValue": n[5] ||= (e) => c("textColor", e)
|
|
398
398
|
}, null, 8, ["model-value"])]),
|
|
@@ -403,51 +403,51 @@ var lt = [
|
|
|
403
403
|
}, null, 8, ["model-value"]),
|
|
404
404
|
E(Dt, {
|
|
405
405
|
"model-value": e.block.borderRadius,
|
|
406
|
-
label:
|
|
406
|
+
label: C(a).button.borderRadius,
|
|
407
407
|
max: 50,
|
|
408
408
|
"testid-prefix": "button",
|
|
409
409
|
"onUpdate:modelValue": n[7] ||= (e) => c("borderRadius", e)
|
|
410
410
|
}, null, 8, ["model-value", "label"]),
|
|
411
|
-
y("div", It, [y("label", { class:
|
|
411
|
+
y("div", It, [y("label", { class: T(C(H)) }, g(C(a).button.fontSize), 3), y("div", Lt, [y("input", {
|
|
412
412
|
type: "number",
|
|
413
|
-
class:
|
|
413
|
+
class: T(C(W)),
|
|
414
414
|
value: e.block.fontSize,
|
|
415
415
|
min: "10",
|
|
416
416
|
max: "36",
|
|
417
417
|
onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
418
|
-
}, null, 42, Rt), y("span", { class:
|
|
418
|
+
}, null, 42, Rt), y("span", { class: T(C(U)) }, "px", 2)])]),
|
|
419
419
|
y("div", zt, [
|
|
420
|
-
y("label", { class:
|
|
420
|
+
y("label", { class: T(C(H)) }, g(C(a).button.width), 3),
|
|
421
421
|
y("select", {
|
|
422
|
-
class:
|
|
422
|
+
class: T(C(G)),
|
|
423
423
|
value: s.value,
|
|
424
424
|
onChange: n[9] ||= (e) => l(e.target.value)
|
|
425
425
|
}, [
|
|
426
|
-
y("option", Vt,
|
|
427
|
-
y("option", Ht,
|
|
428
|
-
y("option", Ut,
|
|
426
|
+
y("option", Vt, g(C(a).button.widthAuto), 1),
|
|
427
|
+
y("option", Ht, g(C(a).button.fullWidth), 1),
|
|
428
|
+
y("option", Ut, g(C(a).button.widthCustom), 1)
|
|
429
429
|
], 42, Bt),
|
|
430
|
-
s.value === "custom" ? (o(),
|
|
430
|
+
s.value === "custom" ? (o(), f("div", Wt, [y("input", {
|
|
431
431
|
type: "number",
|
|
432
|
-
class:
|
|
432
|
+
class: T(C(W)),
|
|
433
433
|
value: typeof e.block.width == "number" ? e.block.width : qt,
|
|
434
434
|
min: "20",
|
|
435
435
|
onInput: n[10] ||= (e) => u(e.target.value)
|
|
436
|
-
}, null, 42, Gt), y("span", { class:
|
|
436
|
+
}, null, 42, Gt), y("span", { class: T(C(U)) }, "px", 2)])) : _("", !0)
|
|
437
437
|
]),
|
|
438
|
-
y("div", Kt, [y("label", { class:
|
|
438
|
+
y("div", Kt, [y("label", { class: T(C(H)) }, g(C(a).title.align), 3), E(Y, {
|
|
439
439
|
options: [
|
|
440
440
|
{
|
|
441
441
|
value: "left",
|
|
442
|
-
label:
|
|
442
|
+
label: C(a).title.alignLeft
|
|
443
443
|
},
|
|
444
444
|
{
|
|
445
445
|
value: "center",
|
|
446
|
-
label:
|
|
446
|
+
label: C(a).title.alignCenter
|
|
447
447
|
},
|
|
448
448
|
{
|
|
449
449
|
value: "right",
|
|
450
|
-
label:
|
|
450
|
+
label: C(a).title.alignRight
|
|
451
451
|
}
|
|
452
452
|
],
|
|
453
453
|
"model-value": e.block.align ?? "center",
|
|
@@ -455,46 +455,46 @@ var lt = [
|
|
|
455
455
|
}, null, 8, ["options", "model-value"])])
|
|
456
456
|
], 64));
|
|
457
457
|
}
|
|
458
|
-
}), Yt = { class: "spacing-control" }, Xt = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Zt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Qt = { class: "tpl:flex tpl:items-center" }, $t = ["aria-label"], en = ["value", "aria-label"], tn = ["aria-label"], nn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, rn = { class: "tpl:flex tpl:items-center" }, an = ["aria-label"], on = ["value", "aria-label"], sn = ["aria-label"], cn = ["aria-label", "title"], ln = { class: "tpl:flex tpl:items-center" }, un = ["aria-label"], dn = ["value", "aria-label"], fn = ["aria-label"], pn = { class: "tpl:flex tpl:items-center" }, mn = ["aria-label"], hn = ["value", "aria-label"], gn = ["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)]", _n = "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)]", vn = /*#__PURE__*/ $e(/* @__PURE__ */
|
|
458
|
+
}), Yt = { class: "spacing-control" }, Xt = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Zt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Qt = { class: "tpl:flex tpl:items-center" }, $t = ["aria-label"], en = ["value", "aria-label"], tn = ["aria-label"], nn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, rn = { class: "tpl:flex tpl:items-center" }, an = ["aria-label"], on = ["value", "aria-label"], sn = ["aria-label"], cn = ["aria-label", "title"], ln = { class: "tpl:flex tpl:items-center" }, un = ["aria-label"], dn = ["value", "aria-label"], fn = ["aria-label"], pn = { class: "tpl:flex tpl:items-center" }, mn = ["aria-label"], hn = ["value", "aria-label"], gn = ["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)]", _n = "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)]", vn = /*#__PURE__*/ $e(/* @__PURE__ */ t({
|
|
459
459
|
__name: "SpacingControl",
|
|
460
460
|
props: {
|
|
461
461
|
modelValue: {},
|
|
462
462
|
label: {}
|
|
463
463
|
},
|
|
464
464
|
emits: ["update:modelValue"],
|
|
465
|
-
setup(e, { emit:
|
|
466
|
-
let
|
|
467
|
-
l(
|
|
468
|
-
!e &&
|
|
465
|
+
setup(e, { emit: t }) {
|
|
466
|
+
let n = e, r = t, { t: i } = B(), a = x(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), s = h(a.value);
|
|
467
|
+
l(a, (e) => {
|
|
468
|
+
!e && s.value && (s.value = !1);
|
|
469
469
|
});
|
|
470
|
-
function
|
|
471
|
-
let
|
|
472
|
-
|
|
473
|
-
top:
|
|
474
|
-
right:
|
|
475
|
-
bottom:
|
|
476
|
-
left:
|
|
477
|
-
}) :
|
|
478
|
-
...
|
|
479
|
-
[e]:
|
|
470
|
+
function c(e, t) {
|
|
471
|
+
let i = Math.max(0, n.modelValue[e] + t);
|
|
472
|
+
s.value ? r("update:modelValue", {
|
|
473
|
+
top: i,
|
|
474
|
+
right: i,
|
|
475
|
+
bottom: i,
|
|
476
|
+
left: i
|
|
477
|
+
}) : r("update:modelValue", {
|
|
478
|
+
...n.modelValue,
|
|
479
|
+
[e]: i
|
|
480
480
|
});
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
let
|
|
484
|
-
|
|
485
|
-
top:
|
|
486
|
-
right:
|
|
487
|
-
bottom:
|
|
488
|
-
left:
|
|
489
|
-
}) :
|
|
490
|
-
...
|
|
491
|
-
[e]:
|
|
482
|
+
function u(e, t) {
|
|
483
|
+
let i = Math.max(0, t);
|
|
484
|
+
s.value ? r("update:modelValue", {
|
|
485
|
+
top: i,
|
|
486
|
+
right: i,
|
|
487
|
+
bottom: i,
|
|
488
|
+
left: i
|
|
489
|
+
}) : r("update:modelValue", {
|
|
490
|
+
...n.modelValue,
|
|
491
|
+
[e]: i
|
|
492
492
|
});
|
|
493
493
|
}
|
|
494
|
-
function
|
|
495
|
-
if (
|
|
496
|
-
let e =
|
|
497
|
-
|
|
494
|
+
function d() {
|
|
495
|
+
if (s.value = !s.value, s.value) {
|
|
496
|
+
let e = n.modelValue.top;
|
|
497
|
+
r("update:modelValue", {
|
|
498
498
|
top: e,
|
|
499
499
|
right: e,
|
|
500
500
|
bottom: e,
|
|
@@ -502,29 +502,29 @@ var lt = [
|
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
return (t, n) => (o(),
|
|
505
|
+
return (t, n) => (o(), f("div", Yt, [y("label", Xt, g(e.label), 1), y("div", Zt, [
|
|
506
506
|
y("div", Qt, [
|
|
507
507
|
y("button", {
|
|
508
|
-
"aria-label":
|
|
509
|
-
class:
|
|
510
|
-
onClick: n[0] ||= (e) =>
|
|
511
|
-
}, [E(
|
|
508
|
+
"aria-label": C(i).spacingControl.decreaseTop,
|
|
509
|
+
class: T([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
510
|
+
onClick: n[0] ||= (e) => c("top", -1)
|
|
511
|
+
}, [E(C(Ve), {
|
|
512
512
|
size: 12,
|
|
513
513
|
"stroke-width": 2
|
|
514
514
|
})], 10, $t),
|
|
515
515
|
y("input", {
|
|
516
516
|
type: "number",
|
|
517
|
-
class:
|
|
517
|
+
class: T(_n),
|
|
518
518
|
value: e.modelValue.top,
|
|
519
|
-
"aria-label":
|
|
519
|
+
"aria-label": C(i).spacingControl.top,
|
|
520
520
|
min: "0",
|
|
521
|
-
onInput: n[1] ||= (e) =>
|
|
521
|
+
onInput: n[1] ||= (e) => u("top", Number(e.target.value))
|
|
522
522
|
}, null, 40, en),
|
|
523
523
|
y("button", {
|
|
524
|
-
"aria-label":
|
|
525
|
-
class:
|
|
526
|
-
onClick: n[2] ||= (e) =>
|
|
527
|
-
}, [E(
|
|
524
|
+
"aria-label": C(i).spacingControl.increaseTop,
|
|
525
|
+
class: T([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
526
|
+
onClick: n[2] ||= (e) => c("top", 1)
|
|
527
|
+
}, [E(C(V), {
|
|
528
528
|
size: 12,
|
|
529
529
|
"stroke-width": 2
|
|
530
530
|
})], 10, tn)
|
|
@@ -532,66 +532,66 @@ var lt = [
|
|
|
532
532
|
y("div", nn, [
|
|
533
533
|
y("div", rn, [
|
|
534
534
|
y("button", {
|
|
535
|
-
"aria-label":
|
|
536
|
-
class:
|
|
537
|
-
onClick: n[3] ||= (e) =>
|
|
538
|
-
}, [E(
|
|
535
|
+
"aria-label": C(i).spacingControl.decreaseLeft,
|
|
536
|
+
class: T([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
537
|
+
onClick: n[3] ||= (e) => c("left", -1)
|
|
538
|
+
}, [E(C(Ve), {
|
|
539
539
|
size: 12,
|
|
540
540
|
"stroke-width": 2
|
|
541
541
|
})], 10, an),
|
|
542
542
|
y("input", {
|
|
543
543
|
type: "number",
|
|
544
|
-
class:
|
|
544
|
+
class: T(_n),
|
|
545
545
|
value: e.modelValue.left,
|
|
546
|
-
"aria-label":
|
|
546
|
+
"aria-label": C(i).spacingControl.left,
|
|
547
547
|
min: "0",
|
|
548
|
-
onInput: n[4] ||= (e) =>
|
|
548
|
+
onInput: n[4] ||= (e) => u("left", Number(e.target.value))
|
|
549
549
|
}, null, 40, on),
|
|
550
550
|
y("button", {
|
|
551
|
-
"aria-label":
|
|
552
|
-
class:
|
|
553
|
-
onClick: n[5] ||= (e) =>
|
|
554
|
-
}, [E(
|
|
551
|
+
"aria-label": C(i).spacingControl.increaseLeft,
|
|
552
|
+
class: T([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
553
|
+
onClick: n[5] ||= (e) => c("left", 1)
|
|
554
|
+
}, [E(C(V), {
|
|
555
555
|
size: 12,
|
|
556
556
|
"stroke-width": 2
|
|
557
557
|
})], 10, sn)
|
|
558
558
|
]),
|
|
559
559
|
y("button", {
|
|
560
|
-
class:
|
|
561
|
-
"aria-label":
|
|
562
|
-
title:
|
|
563
|
-
onClick:
|
|
564
|
-
}, [
|
|
560
|
+
class: T(["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)]"]),
|
|
561
|
+
"aria-label": s.value ? C(i).spacingControl.unlock : C(i).spacingControl.lockAll,
|
|
562
|
+
title: s.value ? C(i).spacingControl.unlock : C(i).spacingControl.lockAll,
|
|
563
|
+
onClick: d
|
|
564
|
+
}, [s.value ? (o(), v(C(Ye), {
|
|
565
565
|
key: 0,
|
|
566
566
|
size: 14,
|
|
567
567
|
"stroke-width": 2
|
|
568
|
-
})) : (o(),
|
|
568
|
+
})) : (o(), v(C(We), {
|
|
569
569
|
key: 1,
|
|
570
570
|
size: 14,
|
|
571
571
|
"stroke-width": 2
|
|
572
572
|
}))], 10, cn),
|
|
573
573
|
y("div", ln, [
|
|
574
574
|
y("button", {
|
|
575
|
-
"aria-label":
|
|
576
|
-
class:
|
|
577
|
-
onClick: n[6] ||= (e) =>
|
|
578
|
-
}, [E(
|
|
575
|
+
"aria-label": C(i).spacingControl.decreaseRight,
|
|
576
|
+
class: T([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
577
|
+
onClick: n[6] ||= (e) => c("right", -1)
|
|
578
|
+
}, [E(C(Ve), {
|
|
579
579
|
size: 12,
|
|
580
580
|
"stroke-width": 2
|
|
581
581
|
})], 10, un),
|
|
582
582
|
y("input", {
|
|
583
583
|
type: "number",
|
|
584
|
-
class:
|
|
584
|
+
class: T(_n),
|
|
585
585
|
value: e.modelValue.right,
|
|
586
|
-
"aria-label":
|
|
586
|
+
"aria-label": C(i).spacingControl.right,
|
|
587
587
|
min: "0",
|
|
588
|
-
onInput: n[7] ||= (e) =>
|
|
588
|
+
onInput: n[7] ||= (e) => u("right", Number(e.target.value))
|
|
589
589
|
}, null, 40, dn),
|
|
590
590
|
y("button", {
|
|
591
|
-
"aria-label":
|
|
592
|
-
class:
|
|
593
|
-
onClick: n[8] ||= (e) =>
|
|
594
|
-
}, [E(
|
|
591
|
+
"aria-label": C(i).spacingControl.increaseRight,
|
|
592
|
+
class: T([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
593
|
+
onClick: n[8] ||= (e) => c("right", 1)
|
|
594
|
+
}, [E(C(V), {
|
|
595
595
|
size: 12,
|
|
596
596
|
"stroke-width": 2
|
|
597
597
|
})], 10, fn)
|
|
@@ -599,26 +599,26 @@ var lt = [
|
|
|
599
599
|
]),
|
|
600
600
|
y("div", pn, [
|
|
601
601
|
y("button", {
|
|
602
|
-
"aria-label":
|
|
603
|
-
class:
|
|
604
|
-
onClick: n[9] ||= (e) =>
|
|
605
|
-
}, [E(
|
|
602
|
+
"aria-label": C(i).spacingControl.decreaseBottom,
|
|
603
|
+
class: T([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
604
|
+
onClick: n[9] ||= (e) => c("bottom", -1)
|
|
605
|
+
}, [E(C(Ve), {
|
|
606
606
|
size: 12,
|
|
607
607
|
"stroke-width": 2
|
|
608
608
|
})], 10, mn),
|
|
609
609
|
y("input", {
|
|
610
610
|
type: "number",
|
|
611
|
-
class:
|
|
611
|
+
class: T(_n),
|
|
612
612
|
value: e.modelValue.bottom,
|
|
613
|
-
"aria-label":
|
|
613
|
+
"aria-label": C(i).spacingControl.bottom,
|
|
614
614
|
min: "0",
|
|
615
|
-
onInput: n[10] ||= (e) =>
|
|
615
|
+
onInput: n[10] ||= (e) => u("bottom", Number(e.target.value))
|
|
616
616
|
}, null, 40, hn),
|
|
617
617
|
y("button", {
|
|
618
|
-
"aria-label":
|
|
619
|
-
class:
|
|
620
|
-
onClick: n[11] ||= (e) =>
|
|
621
|
-
}, [E(
|
|
618
|
+
"aria-label": C(i).spacingControl.increaseBottom,
|
|
619
|
+
class: T([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
620
|
+
onClick: n[11] ||= (e) => c("bottom", 1)
|
|
621
|
+
}, [E(C(V), {
|
|
622
622
|
size: 12,
|
|
623
623
|
"stroke-width": 2
|
|
624
624
|
})], 10, gn)
|
|
@@ -626,19 +626,18 @@ var lt = [
|
|
|
626
626
|
])]));
|
|
627
627
|
}
|
|
628
628
|
}), [["__scopeId", "data-v-69591c1e"]]);
|
|
629
|
-
|
|
630
|
-
//#region src/composables/useNaturalImageSize.ts
|
|
629
|
+
// src/composables/useNaturalImageSize.ts
|
|
631
630
|
function yn(e) {
|
|
632
|
-
let
|
|
631
|
+
let t = h(null), n = () => {};
|
|
633
632
|
return l(e, (e) => {
|
|
634
|
-
|
|
635
|
-
|
|
633
|
+
n(), t.value = null, e && (n = ue(e, (e) => {
|
|
634
|
+
t.value = e;
|
|
636
635
|
}));
|
|
637
|
-
}, { immediate: !0 }),
|
|
636
|
+
}, { immediate: !0 }), t;
|
|
638
637
|
}
|
|
639
638
|
function bn() {
|
|
640
|
-
let e =
|
|
641
|
-
return async (t) =>
|
|
639
|
+
let e = n(Me, null);
|
|
640
|
+
return async (t) => _e(e ? await xn(e, t) : t);
|
|
642
641
|
}
|
|
643
642
|
function xn(e, t) {
|
|
644
643
|
let n = (e) => typeof e == "string" && e.length > 0 ? e : t;
|
|
@@ -650,15 +649,14 @@ function xn(e, t) {
|
|
|
650
649
|
});
|
|
651
650
|
}) : Promise.resolve(n(r));
|
|
652
651
|
}
|
|
653
|
-
|
|
654
|
-
//#region src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
|
|
652
|
+
// src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
|
|
655
653
|
var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"], Tn = ["data-testid"], En = ["aria-label", "data-testid"], Dn = [
|
|
656
654
|
"aria-label",
|
|
657
655
|
"title",
|
|
658
656
|
"aria-pressed",
|
|
659
657
|
"data-testid",
|
|
660
658
|
"onClick"
|
|
661
|
-
], On = ["data-testid"], kn = /* @__PURE__ */
|
|
659
|
+
], On = ["data-testid"], kn = /* @__PURE__ */ t({
|
|
662
660
|
__name: "BackgroundImageControl",
|
|
663
661
|
props: {
|
|
664
662
|
modelValue: {},
|
|
@@ -667,89 +665,89 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
667
665
|
heroMode: { type: Boolean }
|
|
668
666
|
},
|
|
669
667
|
emits: ["update:modelValue"],
|
|
670
|
-
setup(e, { emit:
|
|
671
|
-
let
|
|
672
|
-
d(() => clearTimeout(
|
|
673
|
-
function
|
|
674
|
-
|
|
675
|
-
let t = await
|
|
676
|
-
t && n?.url === e &&
|
|
668
|
+
setup(e, { emit: t }) {
|
|
669
|
+
let r = e, a = t, { t: s } = B(), c = n(we, ie.liquid), l = x(() => typeof r.modelValue?.url == "string" ? r.modelValue.url : ""), u = x(() => l.value.trim() !== ""), m = bn(), b;
|
|
670
|
+
d(() => clearTimeout(b));
|
|
671
|
+
function S(e) {
|
|
672
|
+
r.measure && !L(e, c) && (b = setTimeout(async () => {
|
|
673
|
+
let t = await m(e), n = r.modelValue;
|
|
674
|
+
t && n?.url === e && a("update:modelValue", {
|
|
677
675
|
...n,
|
|
678
|
-
...
|
|
676
|
+
...he(t)
|
|
679
677
|
});
|
|
680
678
|
}, 300));
|
|
681
679
|
}
|
|
682
680
|
function D(e, t = null) {
|
|
683
|
-
if (clearTimeout(
|
|
684
|
-
|
|
681
|
+
if (clearTimeout(b), e.trim() === "") {
|
|
682
|
+
a("update:modelValue", void 0);
|
|
685
683
|
return;
|
|
686
684
|
}
|
|
687
|
-
let { naturalWidth: n, naturalHeight:
|
|
688
|
-
|
|
689
|
-
...
|
|
685
|
+
let { naturalWidth: n, naturalHeight: i, ...o } = r.modelValue ?? ee(e), s = r.measure ? t : null;
|
|
686
|
+
a("update:modelValue", {
|
|
687
|
+
...o,
|
|
690
688
|
url: e,
|
|
691
|
-
...
|
|
692
|
-
}),
|
|
689
|
+
...s ? he(s) : {}
|
|
690
|
+
}), s || S(e);
|
|
693
691
|
}
|
|
694
692
|
function O(e) {
|
|
695
|
-
|
|
696
|
-
...
|
|
693
|
+
r.modelValue && a("update:modelValue", {
|
|
694
|
+
...r.modelValue,
|
|
697
695
|
...e
|
|
698
696
|
});
|
|
699
697
|
}
|
|
700
|
-
let k =
|
|
698
|
+
let k = x(() => [
|
|
701
699
|
{
|
|
702
700
|
value: "cover",
|
|
703
|
-
label:
|
|
701
|
+
label: s.blockSettings.backgroundSizeCover
|
|
704
702
|
},
|
|
705
703
|
{
|
|
706
704
|
value: "contain",
|
|
707
|
-
label:
|
|
705
|
+
label: s.blockSettings.backgroundSizeContain
|
|
708
706
|
},
|
|
709
707
|
{
|
|
710
708
|
value: "auto",
|
|
711
|
-
label:
|
|
709
|
+
label: s.blockSettings.backgroundSizeAuto
|
|
712
710
|
}
|
|
713
|
-
]), A =
|
|
714
|
-
"top-left":
|
|
715
|
-
"top-center":
|
|
716
|
-
"top-right":
|
|
717
|
-
"center-left":
|
|
718
|
-
"center-center":
|
|
719
|
-
"center-right":
|
|
720
|
-
"bottom-left":
|
|
721
|
-
"bottom-center":
|
|
722
|
-
"bottom-right":
|
|
723
|
-
})),
|
|
711
|
+
]), A = x(() => ({
|
|
712
|
+
"top-left": s.blockSettings.backgroundPositionTopLeft,
|
|
713
|
+
"top-center": s.blockSettings.backgroundPositionTopCenter,
|
|
714
|
+
"top-right": s.blockSettings.backgroundPositionTopRight,
|
|
715
|
+
"center-left": s.blockSettings.backgroundPositionCenterLeft,
|
|
716
|
+
"center-center": s.blockSettings.backgroundPositionCenter,
|
|
717
|
+
"center-right": s.blockSettings.backgroundPositionCenterRight,
|
|
718
|
+
"bottom-left": s.blockSettings.backgroundPositionBottomLeft,
|
|
719
|
+
"bottom-center": s.blockSettings.backgroundPositionBottomCenter,
|
|
720
|
+
"bottom-right": s.blockSettings.backgroundPositionBottomRight
|
|
721
|
+
})), M = x(() => N.flatMap((e) => j.map((t) => ({
|
|
724
722
|
x: t,
|
|
725
723
|
y: e,
|
|
726
724
|
label: A.value[`${e}-${t}`]
|
|
727
725
|
}))));
|
|
728
|
-
function
|
|
729
|
-
return
|
|
726
|
+
function P(e) {
|
|
727
|
+
return r.modelValue?.position?.x === e.x && r.modelValue?.position?.y === e.y;
|
|
730
728
|
}
|
|
731
|
-
let
|
|
732
|
-
target:
|
|
733
|
-
blocked: () => L(
|
|
734
|
-
apply: (e) => D(e.url,
|
|
729
|
+
let F = h(), { canBrowse: te, isUploading: ne, showOverlay: I, openMediaBrowser: re } = me({
|
|
730
|
+
target: F,
|
|
731
|
+
blocked: () => L(l.value, c),
|
|
732
|
+
apply: (e) => D(e.url, de(e.width, e.height))
|
|
735
733
|
});
|
|
736
|
-
return (t, n) => (o(),
|
|
734
|
+
return (t, n) => (o(), f("div", Sn, [y("div", null, [y("label", { class: T(C(H)) }, g(C(s).blockSettings.backgroundImage), 3), y("div", {
|
|
737
735
|
ref_key: "dropZoneRef",
|
|
738
|
-
ref:
|
|
736
|
+
ref: F,
|
|
739
737
|
class: "tpl:relative",
|
|
740
738
|
"data-testid": `${e.testidPrefix}-bg-url`
|
|
741
739
|
}, [
|
|
742
|
-
|
|
740
|
+
C(I) ? (o(), v(le, {
|
|
743
741
|
key: 0,
|
|
744
|
-
uploading:
|
|
745
|
-
}, null, 8, ["uploading"])) :
|
|
742
|
+
uploading: C(ne)
|
|
743
|
+
}, null, 8, ["uploading"])) : _("", !0),
|
|
746
744
|
E(J, {
|
|
747
|
-
"model-value":
|
|
745
|
+
"model-value": l.value,
|
|
748
746
|
type: "url",
|
|
749
|
-
placeholder:
|
|
747
|
+
placeholder: C(s).blockSettings.backgroundImagePlaceholder,
|
|
750
748
|
"onUpdate:modelValue": D
|
|
751
749
|
}, null, 8, ["model-value", "placeholder"]),
|
|
752
|
-
|
|
750
|
+
C(te) ? (o(), f("button", {
|
|
753
751
|
key: 1,
|
|
754
752
|
type: "button",
|
|
755
753
|
"data-testid": `${e.testidPrefix}-bg-browse`,
|
|
@@ -759,50 +757,50 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
759
757
|
color: "var(--tpl-primary)",
|
|
760
758
|
"background-color": "var(--tpl-bg)"
|
|
761
759
|
},
|
|
762
|
-
onClick: n[0] ||= (...e) =>
|
|
763
|
-
}, [E(
|
|
760
|
+
onClick: n[0] ||= (...e) => C(re) && C(re)(...e)
|
|
761
|
+
}, [E(C(ze), {
|
|
764
762
|
size: 14,
|
|
765
763
|
"stroke-width": 1.5
|
|
766
|
-
}),
|
|
767
|
-
], 8, Cn)]),
|
|
768
|
-
e.heroMode ?
|
|
764
|
+
}), p(" " + g(C(s).image.browseMedia), 1)], 8, wn)) : _("", !0)
|
|
765
|
+
], 8, Cn)]), u.value && e.modelValue ? (o(), f(w, { key: 0 }, [
|
|
766
|
+
e.heroMode ? _("", !0) : (o(), f("div", {
|
|
769
767
|
key: 0,
|
|
770
768
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
771
|
-
}, [y("label", { class:
|
|
769
|
+
}, [y("label", { class: T(C(H)) }, g(C(s).blockSettings.backgroundSize), 3), E(Y, {
|
|
772
770
|
options: k.value,
|
|
773
771
|
"model-value": e.modelValue.size,
|
|
774
772
|
"onUpdate:modelValue": n[1] ||= (e) => O({ size: e })
|
|
775
773
|
}, null, 8, ["options", "model-value"])], 8, Tn)),
|
|
776
|
-
y("div", null, [y("label", { class:
|
|
774
|
+
y("div", null, [y("label", { class: T(C(H)) }, g(C(s).blockSettings.backgroundPosition), 3), y("div", {
|
|
777
775
|
role: "group",
|
|
778
|
-
"aria-label":
|
|
776
|
+
"aria-label": C(s).blockSettings.backgroundPosition,
|
|
779
777
|
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
780
778
|
class: "tpl:grid tpl:w-24 tpl:grid-cols-3 tpl:gap-1"
|
|
781
|
-
}, [(o(!0),
|
|
779
|
+
}, [(o(!0), f(w, null, i(M.value, (t) => (o(), f("button", {
|
|
782
780
|
key: `${t.y}-${t.x}`,
|
|
783
781
|
type: "button",
|
|
784
782
|
"aria-label": t.label,
|
|
785
783
|
title: t.label,
|
|
786
|
-
"aria-pressed":
|
|
784
|
+
"aria-pressed": P(t),
|
|
787
785
|
"data-testid": `${e.testidPrefix}-bg-position-${t.y}-${t.x}`,
|
|
788
|
-
class:
|
|
786
|
+
class: T(["tpl:flex tpl:h-6 tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:transition-colors", P(t) ? "tpl:border-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
789
787
|
onClick: (e) => O({ position: {
|
|
790
788
|
x: t.x,
|
|
791
789
|
y: t.y
|
|
792
790
|
} })
|
|
793
|
-
}, [y("span", { class:
|
|
794
|
-
e.heroMode ?
|
|
791
|
+
}, [y("span", { class: T(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", P(t) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10, Dn))), 128))], 8, En)]),
|
|
792
|
+
e.heroMode ? _("", !0) : (o(), f("div", {
|
|
795
793
|
key: 1,
|
|
796
794
|
"data-testid": `${e.testidPrefix}-bg-repeat`
|
|
797
795
|
}, [E(q, {
|
|
798
796
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
799
797
|
"model-value": e.modelValue.repeat,
|
|
800
|
-
label:
|
|
798
|
+
label: C(s).blockSettings.backgroundRepeat,
|
|
801
799
|
"onUpdate:modelValue": n[2] ||= (e) => O({ repeat: e })
|
|
802
800
|
}, null, 8, ["model-value", "label"])], 8, On))
|
|
803
|
-
], 64)) :
|
|
801
|
+
], 64)) : _("", !0)]));
|
|
804
802
|
}
|
|
805
|
-
}), An = ["data-testid"], jn = { class: "tpl:mt-3" }, Mn = /* @__PURE__ */
|
|
803
|
+
}), An = ["data-testid"], jn = { class: "tpl:mt-3" }, Mn = /* @__PURE__ */ t({
|
|
806
804
|
__name: "CollapsibleSection",
|
|
807
805
|
props: {
|
|
808
806
|
title: {},
|
|
@@ -812,16 +810,16 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
812
810
|
},
|
|
813
811
|
emits: ["toggle"],
|
|
814
812
|
setup(e) {
|
|
815
|
-
return (t, n) => (o(),
|
|
813
|
+
return (t, n) => (o(), f("div", { class: T(["tpl:py-3", e.noBorder ? "" : "tpl:border-t tpl:border-[var(--tpl-border)]"]) }, [y("button", {
|
|
816
814
|
type: "button",
|
|
817
815
|
"data-testid": e.headerTestId,
|
|
818
816
|
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)]",
|
|
819
817
|
onClick: n[0] ||= (e) => t.$emit("toggle")
|
|
820
|
-
}, [E(
|
|
821
|
-
class:
|
|
818
|
+
}, [E(C(Qe), {
|
|
819
|
+
class: T(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
822
820
|
size: 12,
|
|
823
821
|
"stroke-width": 2
|
|
824
|
-
}, null, 8, ["class"]), y("span", null,
|
|
822
|
+
}, null, 8, ["class"]), y("span", null, g(e.title), 1)], 8, An), r(y("div", jn, [a(t.$slots, "default")], 512), [[S, e.open]])], 2));
|
|
825
823
|
}
|
|
826
824
|
}), Nn = {
|
|
827
825
|
key: 0,
|
|
@@ -840,15 +838,15 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
840
838
|
}, Rn = {
|
|
841
839
|
key: 1,
|
|
842
840
|
"data-testid": "section-hero-align"
|
|
843
|
-
}, zn = 300, Bn = /* @__PURE__ */
|
|
841
|
+
}, zn = 300, Bn = /* @__PURE__ */ t({
|
|
844
842
|
__name: "HeroControl",
|
|
845
843
|
props: { section: {} },
|
|
846
844
|
emits: ["update"],
|
|
847
845
|
setup(e, { emit: t }) {
|
|
848
|
-
function
|
|
846
|
+
function r(e) {
|
|
849
847
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
850
848
|
}
|
|
851
|
-
let i = e, a = t, { t: s } = B(), c =
|
|
849
|
+
let i = e, a = t, { t: s } = B(), c = n(we, ie.liquid), l = n(De, null), u = n(Se, void 0), d = bn(), p = x(() => typeof i.section.backgroundImage?.url == "string" ? i.section.backgroundImage.url : ""), m = x(() => p.value.trim() !== ""), h = x(() => L(p.value, c)), b = x(() => i.section.hero), S = x(() => i.section.columns === "1"), w = x(() => b.value ? r(b.value.height) ? "fixed" : "image" : "fit"), D = x(() => r(b.value?.height) ? b.value.height : zn), O = x(() => [
|
|
852
850
|
{
|
|
853
851
|
value: "fit",
|
|
854
852
|
label: s.blockSettings.heroHeightFit
|
|
@@ -856,13 +854,13 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
856
854
|
{
|
|
857
855
|
value: "image",
|
|
858
856
|
label: s.blockSettings.heroHeightImage,
|
|
859
|
-
disabled:
|
|
857
|
+
disabled: h.value
|
|
860
858
|
},
|
|
861
859
|
{
|
|
862
860
|
value: "fixed",
|
|
863
861
|
label: s.blockSettings.heroHeightFixed
|
|
864
862
|
}
|
|
865
|
-
]), k =
|
|
863
|
+
]), k = x(() => [
|
|
866
864
|
{
|
|
867
865
|
value: "top",
|
|
868
866
|
label: s.blockSettings.heroAlignTop
|
|
@@ -875,75 +873,75 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
875
873
|
value: "bottom",
|
|
876
874
|
label: s.blockSettings.heroAlignBottom
|
|
877
875
|
}
|
|
878
|
-
]), A =
|
|
876
|
+
]), A = x(() => w.value === "image" && m.value && !h.value && P(i.section.backgroundImage) === null);
|
|
879
877
|
function j() {
|
|
880
|
-
return (l ?
|
|
878
|
+
return (l ? ge(l.content.value, i.section.id, u) : null) ?? ce(l?.state.content.settings);
|
|
881
879
|
}
|
|
882
880
|
function M(e) {
|
|
883
|
-
let t =
|
|
881
|
+
let t = b.value?.verticalAlign ?? "middle";
|
|
884
882
|
if (e === "image") {
|
|
885
|
-
|
|
883
|
+
w.value !== "image" && a("update", { hero: {
|
|
886
884
|
height: "image",
|
|
887
885
|
verticalAlign: t
|
|
888
|
-
} }),
|
|
886
|
+
} }), N();
|
|
889
887
|
return;
|
|
890
888
|
}
|
|
891
|
-
if (e ===
|
|
889
|
+
if (e === w.value) return;
|
|
892
890
|
if (e === "fit") {
|
|
893
891
|
a("update", { hero: void 0 });
|
|
894
892
|
return;
|
|
895
893
|
}
|
|
896
|
-
let n =
|
|
894
|
+
let n = P(i.section.backgroundImage), r = n === null ? zn : Math.round(j() * n);
|
|
897
895
|
a("update", { hero: {
|
|
898
896
|
height: r,
|
|
899
897
|
verticalAlign: t
|
|
900
898
|
} });
|
|
901
899
|
}
|
|
902
|
-
async function
|
|
900
|
+
async function N() {
|
|
903
901
|
let e = i.section.backgroundImage;
|
|
904
|
-
if (!e || !m.value ||
|
|
902
|
+
if (!e || !m.value || h.value || P(e) !== null) return;
|
|
905
903
|
let t = e.url, n = await d(t), r = i.section.backgroundImage;
|
|
906
904
|
n && r && r.url === t && a("update", { backgroundImage: {
|
|
907
905
|
...r,
|
|
908
|
-
...
|
|
906
|
+
...he(n)
|
|
909
907
|
} });
|
|
910
908
|
}
|
|
911
|
-
function
|
|
912
|
-
!
|
|
913
|
-
...
|
|
909
|
+
function ee(e) {
|
|
910
|
+
!b.value || !Number.isFinite(e) || e < 1 || a("update", { hero: {
|
|
911
|
+
...b.value,
|
|
914
912
|
height: Math.round(e)
|
|
915
913
|
} });
|
|
916
914
|
}
|
|
917
|
-
function
|
|
918
|
-
|
|
919
|
-
...
|
|
915
|
+
function F(e) {
|
|
916
|
+
b.value && a("update", { hero: {
|
|
917
|
+
...b.value,
|
|
920
918
|
verticalAlign: e
|
|
921
919
|
} });
|
|
922
920
|
}
|
|
923
|
-
return (e, t) => !
|
|
921
|
+
return (e, t) => !S.value && b.value ? (o(), f("p", Nn, g(C(s).section.heroNeedsOneColumn), 1)) : S.value && (m.value || b.value) ? (o(), f("div", Pn, [
|
|
924
922
|
y("div", Fn, [
|
|
925
|
-
y("label", { class:
|
|
923
|
+
y("label", { class: T(C(H)) }, g(C(s).blockSettings.heroHeight), 3),
|
|
926
924
|
E(Y, {
|
|
927
925
|
options: O.value,
|
|
928
|
-
"model-value":
|
|
926
|
+
"model-value": w.value,
|
|
929
927
|
"onUpdate:modelValue": M
|
|
930
928
|
}, null, 8, ["options", "model-value"]),
|
|
931
|
-
|
|
929
|
+
h.value ? (o(), f("p", In, g(C(s).blockSettings.heroMatchImageMergeTag), 1)) : A.value ? (o(), f("p", Ln, g(C(s).blockSettings.heroSizeUnknown), 1)) : _("", !0)
|
|
932
930
|
]),
|
|
933
|
-
|
|
931
|
+
w.value === "fixed" ? (o(), v(X, {
|
|
934
932
|
key: 0,
|
|
935
933
|
"model-value": D.value,
|
|
936
934
|
min: 1,
|
|
937
935
|
suffix: "px",
|
|
938
936
|
testid: "section-hero-height-px",
|
|
939
|
-
"onUpdate:modelValue":
|
|
940
|
-
}, null, 8, ["model-value"])) :
|
|
941
|
-
|
|
937
|
+
"onUpdate:modelValue": ee
|
|
938
|
+
}, null, 8, ["model-value"])) : _("", !0),
|
|
939
|
+
b.value ? (o(), f("div", Rn, [y("label", { class: T(C(H)) }, g(C(s).blockSettings.heroAlign), 3), E(Y, {
|
|
942
940
|
options: k.value,
|
|
943
|
-
"model-value":
|
|
944
|
-
"onUpdate:modelValue":
|
|
945
|
-
}, null, 8, ["options", "model-value"])])) :
|
|
946
|
-
])) :
|
|
941
|
+
"model-value": b.value.verticalAlign,
|
|
942
|
+
"onUpdate:modelValue": F
|
|
943
|
+
}, null, 8, ["options", "model-value"])])) : _("", !0)
|
|
944
|
+
])) : _("", !0);
|
|
947
945
|
}
|
|
948
946
|
}), Vn = { class: "tpl:space-y-2" }, Hn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Un = { class: "tpl:space-y-2" }, Wn = ["value"], Gn = { value: "" }, Kn = ["label"], qn = ["value"], Jn = ["value"], Yn = {
|
|
949
947
|
key: 0,
|
|
@@ -957,15 +955,15 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
957
955
|
}, nr = { class: "tpl:space-y-1" }, rr = { 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)]" }, ir = {
|
|
958
956
|
key: 0,
|
|
959
957
|
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)]"
|
|
960
|
-
}, ar = /* @__PURE__ */
|
|
958
|
+
}, ar = /* @__PURE__ */ t({
|
|
961
959
|
__name: "CommonBlockSettings",
|
|
962
960
|
props: {
|
|
963
961
|
block: {},
|
|
964
962
|
isFirstSection: { type: Boolean }
|
|
965
963
|
},
|
|
966
964
|
emits: ["update"],
|
|
967
|
-
setup(e, { emit:
|
|
968
|
-
let a = e,
|
|
965
|
+
setup(e, { emit: t }) {
|
|
966
|
+
let a = e, c = t, { t: d } = B(), m = n(Oe, []), S = n(ke, !1), O = s(/* @__PURE__ */ new Set()), A = h(!1), j = h(""), M = h(""), N = [{
|
|
969
967
|
key: "desktop",
|
|
970
968
|
icon: Pe,
|
|
971
969
|
labelKey: "showOnDesktop"
|
|
@@ -974,15 +972,15 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
974
972
|
icon: Ie,
|
|
975
973
|
labelKey: "showOnMobile"
|
|
976
974
|
}];
|
|
977
|
-
function
|
|
978
|
-
|
|
975
|
+
function P(e) {
|
|
976
|
+
O.has(e) ? O.delete(e) : O.add(e);
|
|
979
977
|
}
|
|
980
|
-
let
|
|
978
|
+
let ee = x(() => m.length > 0 || S), F = x(() => a.block.displayCondition ? !m.some((e) => e.label === a.block.displayCondition?.label) : !1);
|
|
981
979
|
function te() {
|
|
982
980
|
A.value = !0, F.value && a.block.displayCondition ? (j.value = a.block.displayCondition.before, M.value = a.block.displayCondition.after ?? "") : (j.value = "", M.value = "");
|
|
983
981
|
}
|
|
984
982
|
function ne() {
|
|
985
|
-
j.value.trim() && (
|
|
983
|
+
j.value.trim() && (c("update", { displayCondition: {
|
|
986
984
|
label: d.blockSettings.customCondition,
|
|
987
985
|
before: j.value.trim(),
|
|
988
986
|
after: M.value.trim()
|
|
@@ -991,41 +989,41 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
991
989
|
l(() => a.block.displayCondition, (e) => {
|
|
992
990
|
e ? F.value && (j.value = e.before, M.value = e.after ?? "") : (A.value = !1, j.value = "", M.value = "");
|
|
993
991
|
}, { immediate: !0 });
|
|
994
|
-
let I =
|
|
992
|
+
let I = x(() => {
|
|
995
993
|
let e = {};
|
|
996
|
-
for (let t of
|
|
994
|
+
for (let t of m) {
|
|
997
995
|
let n = t.group ?? "";
|
|
998
996
|
e[n] || (e[n] = []), e[n].push(t);
|
|
999
997
|
}
|
|
1000
998
|
return e;
|
|
1001
|
-
}),
|
|
1002
|
-
function
|
|
1003
|
-
|
|
999
|
+
}), re = x(() => a.block.type === "section" && k(a.block)?.applied === !0);
|
|
1000
|
+
function ie(e, t) {
|
|
1001
|
+
c("update", { styles: {
|
|
1004
1002
|
...a.block.styles,
|
|
1005
1003
|
[e]: t
|
|
1006
1004
|
} });
|
|
1007
1005
|
}
|
|
1008
|
-
function
|
|
1006
|
+
function ae(e) {
|
|
1009
1007
|
return a.block.visibility?.[e] !== !1;
|
|
1010
1008
|
}
|
|
1011
|
-
function
|
|
1009
|
+
function L(e) {
|
|
1012
1010
|
let t = {
|
|
1013
|
-
desktop:
|
|
1014
|
-
mobile:
|
|
1011
|
+
desktop: ae("desktop"),
|
|
1012
|
+
mobile: ae("mobile")
|
|
1015
1013
|
};
|
|
1016
|
-
t[e] = !t[e],
|
|
1014
|
+
t[e] = !t[e], c("update", { visibility: t });
|
|
1017
1015
|
}
|
|
1018
|
-
return (t, n) => (o(),
|
|
1016
|
+
return (t, n) => (o(), f("div", { class: T(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1019
1017
|
E(Mn, {
|
|
1020
|
-
title:
|
|
1021
|
-
open:
|
|
1018
|
+
title: C(d).blockSettings.spacing,
|
|
1019
|
+
open: O.has("spacing"),
|
|
1022
1020
|
"no-border": e.isFirstSection,
|
|
1023
|
-
onToggle: n[1] ||= (e) =>
|
|
1021
|
+
onToggle: n[1] ||= (e) => P("spacing")
|
|
1024
1022
|
}, {
|
|
1025
|
-
default:
|
|
1026
|
-
label:
|
|
1023
|
+
default: u(() => [E(vn, {
|
|
1024
|
+
label: C(d).blockSettings.padding,
|
|
1027
1025
|
"model-value": e.block.styles.padding,
|
|
1028
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1026
|
+
"onUpdate:modelValue": n[0] ||= (e) => ie("padding", e)
|
|
1029
1027
|
}, null, 8, ["label", "model-value"])]),
|
|
1030
1028
|
_: 1
|
|
1031
1029
|
}, 8, [
|
|
@@ -1034,51 +1032,51 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1034
1032
|
"no-border"
|
|
1035
1033
|
]),
|
|
1036
1034
|
E(Mn, {
|
|
1037
|
-
title:
|
|
1038
|
-
open:
|
|
1035
|
+
title: C(d).blockSettings.background,
|
|
1036
|
+
open: O.has("bg"),
|
|
1039
1037
|
"header-test-id": "block-settings-background",
|
|
1040
|
-
onToggle: n[5] ||= (e) =>
|
|
1038
|
+
onToggle: n[5] ||= (e) => P("bg")
|
|
1041
1039
|
}, {
|
|
1042
|
-
default:
|
|
1043
|
-
y("label", { class:
|
|
1040
|
+
default: u(() => [
|
|
1041
|
+
y("label", { class: T(C(H)) }, g(C(d).blockSettings.color), 3),
|
|
1044
1042
|
E(K, {
|
|
1045
1043
|
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1046
1044
|
"allow-transparent": "",
|
|
1047
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
1045
|
+
"onUpdate:modelValue": n[2] ||= (e) => ie("backgroundColor", e)
|
|
1048
1046
|
}, null, 8, ["model-value"]),
|
|
1049
|
-
e.block.type === "section" ? (o(),
|
|
1047
|
+
e.block.type === "section" ? (o(), v(kn, {
|
|
1050
1048
|
key: 0,
|
|
1051
1049
|
class: "tpl:mt-3.5",
|
|
1052
1050
|
"model-value": e.block.backgroundImage,
|
|
1053
1051
|
"testid-prefix": "section",
|
|
1054
1052
|
measure: "",
|
|
1055
|
-
"hero-mode":
|
|
1056
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
1057
|
-
}, null, 8, ["model-value", "hero-mode"])) :
|
|
1058
|
-
e.block.type === "section" ? (o(),
|
|
1053
|
+
"hero-mode": re.value,
|
|
1054
|
+
"onUpdate:modelValue": n[3] ||= (e) => c("update", { backgroundImage: e })
|
|
1055
|
+
}, null, 8, ["model-value", "hero-mode"])) : _("", !0),
|
|
1056
|
+
e.block.type === "section" ? (o(), v(Bn, {
|
|
1059
1057
|
key: 1,
|
|
1060
1058
|
section: e.block,
|
|
1061
|
-
onUpdate: n[4] ||= (e) =>
|
|
1062
|
-
}, null, 8, ["section"])) :
|
|
1059
|
+
onUpdate: n[4] ||= (e) => c("update", e)
|
|
1060
|
+
}, null, 8, ["section"])) : _("", !0)
|
|
1063
1061
|
]),
|
|
1064
1062
|
_: 1
|
|
1065
1063
|
}, 8, ["title", "open"]),
|
|
1066
1064
|
E(Mn, {
|
|
1067
|
-
title:
|
|
1068
|
-
open:
|
|
1069
|
-
onToggle: n[6] ||= (e) =>
|
|
1065
|
+
title: C(d).blockSettings.display,
|
|
1066
|
+
open: O.has("display"),
|
|
1067
|
+
onToggle: n[6] ||= (e) => P("display")
|
|
1070
1068
|
}, {
|
|
1071
|
-
default:
|
|
1069
|
+
default: u(() => [y("div", Vn, [(o(), f(w, null, i(N, (e) => E(q, {
|
|
1072
1070
|
key: e.key,
|
|
1073
1071
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1074
|
-
"model-value":
|
|
1075
|
-
label:
|
|
1076
|
-
"onUpdate:modelValue": (t) =>
|
|
1072
|
+
"model-value": ae(e.key),
|
|
1073
|
+
label: C(d).blockSettings[e.labelKey],
|
|
1074
|
+
"onUpdate:modelValue": (t) => L(e.key)
|
|
1077
1075
|
}, {
|
|
1078
|
-
default:
|
|
1076
|
+
default: u(() => [y("span", Hn, [(o(), v(D(e.icon), {
|
|
1079
1077
|
size: 14,
|
|
1080
1078
|
"stroke-width": 1.5
|
|
1081
|
-
})),
|
|
1079
|
+
})), p(" " + g(C(d).blockSettings[e.labelKey]), 1)])]),
|
|
1082
1080
|
_: 2
|
|
1083
1081
|
}, 1032, [
|
|
1084
1082
|
"model-value",
|
|
@@ -1087,16 +1085,16 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1087
1085
|
])), 64))])]),
|
|
1088
1086
|
_: 1
|
|
1089
1087
|
}, 8, ["title", "open"]),
|
|
1090
|
-
|
|
1088
|
+
ee.value ? (o(), v(Mn, {
|
|
1091
1089
|
key: 0,
|
|
1092
1090
|
"header-test-id": "display-condition-section",
|
|
1093
|
-
title:
|
|
1094
|
-
open:
|
|
1095
|
-
onToggle: n[10] ||= (e) =>
|
|
1091
|
+
title: C(d).blockSettings.displayCondition,
|
|
1092
|
+
open: O.has("condition"),
|
|
1093
|
+
onToggle: n[10] ||= (e) => P("condition")
|
|
1096
1094
|
}, {
|
|
1097
|
-
default:
|
|
1095
|
+
default: u(() => [y("div", Un, [y("select", {
|
|
1098
1096
|
"data-testid": "display-condition-select",
|
|
1099
|
-
class:
|
|
1097
|
+
class: T(["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)]"]),
|
|
1100
1098
|
value: A.value || F.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1101
1099
|
onChange: n[7] ||= (e) => {
|
|
1102
1100
|
let t = e.target.value;
|
|
@@ -1105,48 +1103,48 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1105
1103
|
return;
|
|
1106
1104
|
}
|
|
1107
1105
|
if (A.value = !1, !t) {
|
|
1108
|
-
|
|
1106
|
+
c("update", { displayCondition: void 0 });
|
|
1109
1107
|
return;
|
|
1110
1108
|
}
|
|
1111
|
-
let n =
|
|
1112
|
-
n &&
|
|
1109
|
+
let n = C(m).find((e) => e.label === t);
|
|
1110
|
+
n && c("update", { displayCondition: n });
|
|
1113
1111
|
}
|
|
1114
1112
|
}, [
|
|
1115
|
-
y("option", Gn,
|
|
1116
|
-
(o(!0),
|
|
1113
|
+
y("option", Gn, g(C(d).blockSettings.noCondition), 1),
|
|
1114
|
+
(o(!0), f(w, null, i(I.value, (e, t) => (o(), f(w, { key: t }, [t ? (o(), f("optgroup", {
|
|
1117
1115
|
key: 0,
|
|
1118
1116
|
label: String(t)
|
|
1119
|
-
}, [(o(!0),
|
|
1117
|
+
}, [(o(!0), f(w, null, i(e, (e) => (o(), f("option", {
|
|
1120
1118
|
key: e.label,
|
|
1121
1119
|
value: e.label
|
|
1122
|
-
},
|
|
1120
|
+
}, g(e.label), 9, qn))), 128))], 8, Kn)) : (o(!0), f(w, { key: 1 }, i(e, (e) => (o(), f("option", {
|
|
1123
1121
|
key: e.label,
|
|
1124
1122
|
value: e.label
|
|
1125
|
-
},
|
|
1126
|
-
|
|
1127
|
-
], 42, Wn), A.value || F.value ? (o(),
|
|
1128
|
-
y("div", null, [y("label", Zn,
|
|
1123
|
+
}, g(e.label), 9, Jn))), 128))], 64))), 128)),
|
|
1124
|
+
C(S) ? (o(), f("option", Yn, g(C(d).blockSettings.customCondition), 1)) : _("", !0)
|
|
1125
|
+
], 42, Wn), A.value || F.value ? (o(), f("div", Xn, [
|
|
1126
|
+
y("div", null, [y("label", Zn, g(C(d).blockSettings.customConditionBefore), 1), r(y("textarea", {
|
|
1129
1127
|
"onUpdate:modelValue": n[8] ||= (e) => j.value = e,
|
|
1130
1128
|
rows: "2",
|
|
1131
|
-
class:
|
|
1129
|
+
class: T(C(et))
|
|
1132
1130
|
}, null, 2), [[b, j.value]])]),
|
|
1133
|
-
y("div", null, [y("label", Qn,
|
|
1131
|
+
y("div", null, [y("label", Qn, g(C(d).blockSettings.customConditionAfter), 1), r(y("textarea", {
|
|
1134
1132
|
"onUpdate:modelValue": n[9] ||= (e) => M.value = e,
|
|
1135
1133
|
rows: "2",
|
|
1136
|
-
class:
|
|
1134
|
+
class: T(C(et))
|
|
1137
1135
|
}, null, 2), [[b, M.value]])]),
|
|
1138
1136
|
y("div", $n, [y("button", {
|
|
1139
1137
|
type: "button",
|
|
1140
|
-
class:
|
|
1138
|
+
class: T(C(it)),
|
|
1141
1139
|
disabled: !j.value.trim(),
|
|
1142
1140
|
onClick: ne
|
|
1143
|
-
},
|
|
1144
|
-
])) : e.block.displayCondition && !F.value ? (o(),
|
|
1141
|
+
}, g(C(d).blockSettings.applyCondition), 11, er)])
|
|
1142
|
+
])) : e.block.displayCondition && !F.value ? (o(), f(w, { key: 1 }, [e.block.displayCondition.description ? (o(), f("p", tr, g(e.block.displayCondition.description), 1)) : _("", !0), y("div", nr, [y("pre", rr, g(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (o(), f("pre", ir, g(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)])]),
|
|
1145
1143
|
_: 1
|
|
1146
|
-
}, 8, ["title", "open"])) :
|
|
1144
|
+
}, 8, ["title", "open"])) : _("", !0)
|
|
1147
1145
|
], 2));
|
|
1148
1146
|
}
|
|
1149
|
-
}), or = ["title"], sr = /* @__PURE__ */
|
|
1147
|
+
}), or = ["title"], sr = /* @__PURE__ */ t({
|
|
1150
1148
|
__name: "BooleanField",
|
|
1151
1149
|
props: {
|
|
1152
1150
|
field: {},
|
|
@@ -1156,9 +1154,9 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1156
1154
|
emits: ["update:modelValue"],
|
|
1157
1155
|
setup(e, { emit: t }) {
|
|
1158
1156
|
let n = t, { t: r } = B();
|
|
1159
|
-
return (t, i) => (o(),
|
|
1157
|
+
return (t, i) => (o(), f("div", {
|
|
1160
1158
|
class: "tpl:mb-3.5",
|
|
1161
|
-
title: e.readOnly ?
|
|
1159
|
+
title: e.readOnly ? C(r).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1162
1160
|
}, [E(q, {
|
|
1163
1161
|
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
1164
1162
|
"model-value": e.modelValue,
|
|
@@ -1167,11 +1165,11 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1167
1165
|
disabled: e.readOnly,
|
|
1168
1166
|
"onUpdate:modelValue": i[0] ||= (e) => n("update:modelValue", e)
|
|
1169
1167
|
}, {
|
|
1170
|
-
default:
|
|
1168
|
+
default: u(() => [p(g(e.field.label) + " ", 1), e.readOnly ? (o(), v(C(Ye), {
|
|
1171
1169
|
key: 0,
|
|
1172
1170
|
size: 12,
|
|
1173
1171
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
1174
|
-
})) :
|
|
1172
|
+
})) : _("", !0)]),
|
|
1175
1173
|
_: 1
|
|
1176
1174
|
}, 8, [
|
|
1177
1175
|
"model-value",
|
|
@@ -1180,7 +1178,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1180
1178
|
"disabled"
|
|
1181
1179
|
])], 8, or));
|
|
1182
1180
|
}
|
|
1183
|
-
}), cr = { class: "tpl:mb-3.5" }, lr = ["title"], ur = { class: "tpl-sr-only" }, dr = ["title"], fr = { class: "tpl-sr-only" }, Q = /* @__PURE__ */
|
|
1181
|
+
}), cr = { class: "tpl:mb-3.5" }, lr = ["title"], ur = { class: "tpl-sr-only" }, dr = ["title"], fr = { class: "tpl-sr-only" }, Q = /* @__PURE__ */ t({
|
|
1184
1182
|
__name: "FieldWrapper",
|
|
1185
1183
|
props: {
|
|
1186
1184
|
label: {},
|
|
@@ -1189,24 +1187,24 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1189
1187
|
},
|
|
1190
1188
|
setup(e) {
|
|
1191
1189
|
let { t } = B();
|
|
1192
|
-
return (n, r) => (o(),
|
|
1193
|
-
|
|
1194
|
-
e.readOnly ? (o(),
|
|
1190
|
+
return (n, r) => (o(), f("div", cr, [y("label", { class: T(C(H)) }, [
|
|
1191
|
+
p(g(e.label) + " ", 1),
|
|
1192
|
+
e.readOnly ? (o(), f("span", {
|
|
1195
1193
|
key: 0,
|
|
1196
|
-
title:
|
|
1197
|
-
}, [E(
|
|
1194
|
+
title: C(t).customBlocks.dataSource.readOnlyTooltip
|
|
1195
|
+
}, [E(C(Ye), {
|
|
1198
1196
|
size: 12,
|
|
1199
1197
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1200
1198
|
"aria-hidden": "true"
|
|
1201
|
-
}), y("span", ur,
|
|
1202
|
-
e.required ? (o(),
|
|
1199
|
+
}), y("span", ur, g(C(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, lr)) : _("", !0),
|
|
1200
|
+
e.required ? (o(), f("span", {
|
|
1203
1201
|
key: 1,
|
|
1204
1202
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
1205
|
-
title:
|
|
1206
|
-
}, [r[0] ||= y("span", { "aria-hidden": "true" }, "*", -1), y("span", fr,
|
|
1203
|
+
title: C(t).customBlocks.fields.required
|
|
1204
|
+
}, [r[0] ||= y("span", { "aria-hidden": "true" }, "*", -1), y("span", fr, g(C(t).customBlocks.fields.required), 1)], 8, dr)) : _("", !0)
|
|
1207
1205
|
], 2), a(n.$slots, "default")]));
|
|
1208
1206
|
}
|
|
1209
|
-
}), pr = /* @__PURE__ */
|
|
1207
|
+
}), pr = /* @__PURE__ */ t({
|
|
1210
1208
|
__name: "ColorField",
|
|
1211
1209
|
props: {
|
|
1212
1210
|
field: {},
|
|
@@ -1215,19 +1213,19 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1215
1213
|
},
|
|
1216
1214
|
emits: ["update:modelValue"],
|
|
1217
1215
|
setup(e, { emit: t }) {
|
|
1218
|
-
let
|
|
1219
|
-
return (t, n) => (o(),
|
|
1216
|
+
let r = e, i = t, { t: a } = B(), s = n(Ee, Ne), c = x(() => se(r.field, s));
|
|
1217
|
+
return (t, n) => (o(), v(Q, {
|
|
1220
1218
|
label: e.field.label,
|
|
1221
1219
|
required: e.field.required,
|
|
1222
1220
|
"read-only": e.readOnly
|
|
1223
1221
|
}, {
|
|
1224
|
-
default:
|
|
1222
|
+
default: u(() => [E(K, {
|
|
1225
1223
|
"model-value": e.modelValue,
|
|
1226
1224
|
placeholder: e.field.placeholder,
|
|
1227
1225
|
disabled: e.readOnly,
|
|
1228
|
-
presets:
|
|
1229
|
-
"allow-custom":
|
|
1230
|
-
title: e.readOnly ?
|
|
1226
|
+
presets: c.value.presets,
|
|
1227
|
+
"allow-custom": c.value.allowCustom,
|
|
1228
|
+
title: e.readOnly ? C(a).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1231
1229
|
"onUpdate:modelValue": n[0] ||= (e) => i("update:modelValue", e)
|
|
1232
1230
|
}, null, 8, [
|
|
1233
1231
|
"model-value",
|
|
@@ -1248,7 +1246,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1248
1246
|
"value",
|
|
1249
1247
|
"placeholder",
|
|
1250
1248
|
"title"
|
|
1251
|
-
], hr = ["value", "placeholder"], gr = /* @__PURE__ */
|
|
1249
|
+
], hr = ["value", "placeholder"], gr = /* @__PURE__ */ t({
|
|
1252
1250
|
__name: "ImageField",
|
|
1253
1251
|
props: {
|
|
1254
1252
|
field: {},
|
|
@@ -1256,50 +1254,50 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1256
1254
|
readOnly: { type: Boolean }
|
|
1257
1255
|
},
|
|
1258
1256
|
emits: ["update:modelValue"],
|
|
1259
|
-
setup(e, { emit:
|
|
1260
|
-
let
|
|
1261
|
-
target:
|
|
1262
|
-
blocked: () => !!
|
|
1263
|
-
apply: (e) =>
|
|
1257
|
+
setup(e, { emit: t }) {
|
|
1258
|
+
let n = e, r = t, { t: i } = B(), a = h(), { canBrowse: s, isUploading: c, showOverlay: l, openMediaBrowser: d } = me({
|
|
1259
|
+
target: a,
|
|
1260
|
+
blocked: () => !!n.readOnly,
|
|
1261
|
+
apply: (e) => r("update:modelValue", e.url)
|
|
1264
1262
|
});
|
|
1265
|
-
return (t, n) => (o(),
|
|
1263
|
+
return (t, n) => (o(), v(Q, {
|
|
1266
1264
|
label: e.field.label,
|
|
1267
1265
|
required: e.field.required,
|
|
1268
1266
|
"read-only": e.readOnly
|
|
1269
1267
|
}, {
|
|
1270
|
-
default:
|
|
1268
|
+
default: u(() => [y("div", {
|
|
1271
1269
|
ref_key: "dropZoneRef",
|
|
1272
|
-
ref:
|
|
1270
|
+
ref: a,
|
|
1273
1271
|
class: "tpl:relative"
|
|
1274
1272
|
}, [
|
|
1275
|
-
|
|
1273
|
+
C(l) ? (o(), v(le, {
|
|
1276
1274
|
key: 0,
|
|
1277
|
-
uploading:
|
|
1278
|
-
}, null, 8, ["uploading"])) :
|
|
1279
|
-
e.readOnly ? (o(),
|
|
1275
|
+
uploading: C(c)
|
|
1276
|
+
}, null, 8, ["uploading"])) : _("", !0),
|
|
1277
|
+
e.readOnly ? (o(), f("input", {
|
|
1280
1278
|
key: 1,
|
|
1281
1279
|
type: "url",
|
|
1282
|
-
class:
|
|
1280
|
+
class: T([C(G), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1283
1281
|
value: e.modelValue,
|
|
1284
1282
|
placeholder: e.field.placeholder || "https://...",
|
|
1285
1283
|
disabled: "",
|
|
1286
|
-
title:
|
|
1287
|
-
}, null, 10, mr)) : (o(),
|
|
1284
|
+
title: C(i).customBlocks.dataSource.readOnlyTooltip
|
|
1285
|
+
}, null, 10, mr)) : (o(), f("input", {
|
|
1288
1286
|
key: 2,
|
|
1289
1287
|
type: "url",
|
|
1290
|
-
class:
|
|
1288
|
+
class: T(C(G)),
|
|
1291
1289
|
value: e.modelValue,
|
|
1292
1290
|
placeholder: e.field.placeholder || "https://...",
|
|
1293
|
-
onInput: n[0] ||= (e) =>
|
|
1291
|
+
onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
|
|
1294
1292
|
}, null, 42, hr)),
|
|
1295
|
-
|
|
1293
|
+
C(s) && !e.readOnly ? (o(), f("button", {
|
|
1296
1294
|
key: 3,
|
|
1297
1295
|
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)]",
|
|
1298
|
-
onClick: n[1] ||= (e) =>
|
|
1299
|
-
}, [E(
|
|
1296
|
+
onClick: n[1] ||= (e) => C(d)()
|
|
1297
|
+
}, [E(C(ze), {
|
|
1300
1298
|
size: 14,
|
|
1301
1299
|
"stroke-width": 1.5
|
|
1302
|
-
}),
|
|
1300
|
+
}), p(" " + g(C(i).image.browseMedia), 1)])) : _("", !0)
|
|
1303
1301
|
], 512)]),
|
|
1304
1302
|
_: 1
|
|
1305
1303
|
}, 8, [
|
|
@@ -1316,7 +1314,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1316
1314
|
"step",
|
|
1317
1315
|
"disabled",
|
|
1318
1316
|
"title"
|
|
1319
|
-
], vr = /* @__PURE__ */
|
|
1317
|
+
], vr = /* @__PURE__ */ t({
|
|
1320
1318
|
__name: "NumberField",
|
|
1321
1319
|
props: {
|
|
1322
1320
|
field: {},
|
|
@@ -1326,21 +1324,21 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1326
1324
|
emits: ["update:modelValue"],
|
|
1327
1325
|
setup(e, { emit: t }) {
|
|
1328
1326
|
let n = t, { t: r } = B();
|
|
1329
|
-
return (t, i) => (o(),
|
|
1327
|
+
return (t, i) => (o(), v(Q, {
|
|
1330
1328
|
label: e.field.label,
|
|
1331
1329
|
required: e.field.required,
|
|
1332
1330
|
"read-only": e.readOnly
|
|
1333
1331
|
}, {
|
|
1334
|
-
default:
|
|
1332
|
+
default: u(() => [y("input", {
|
|
1335
1333
|
type: "number",
|
|
1336
|
-
class:
|
|
1334
|
+
class: T([C(G), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1337
1335
|
value: e.modelValue,
|
|
1338
1336
|
placeholder: e.field.placeholder,
|
|
1339
1337
|
min: e.field.min,
|
|
1340
1338
|
max: e.field.max,
|
|
1341
1339
|
step: e.field.step,
|
|
1342
1340
|
disabled: e.readOnly,
|
|
1343
|
-
title: e.readOnly ?
|
|
1341
|
+
title: e.readOnly ? C(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1344
1342
|
onInput: i[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
|
|
1345
1343
|
}, null, 42, _r)]),
|
|
1346
1344
|
_: 1
|
|
@@ -1356,7 +1354,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1356
1354
|
}, wr = {
|
|
1357
1355
|
key: 2,
|
|
1358
1356
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1359
|
-
}, Tr = /* @__PURE__ */
|
|
1357
|
+
}, Tr = /* @__PURE__ */ t({
|
|
1360
1358
|
__name: "RepeatableField",
|
|
1361
1359
|
props: {
|
|
1362
1360
|
field: {},
|
|
@@ -1365,66 +1363,66 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1365
1363
|
},
|
|
1366
1364
|
emits: ["update:modelValue"],
|
|
1367
1365
|
setup(e, { emit: t }) {
|
|
1368
|
-
let n = e, r = t, { t: a, format: s } = B(),
|
|
1369
|
-
function
|
|
1370
|
-
if (!
|
|
1366
|
+
let n = e, r = t, { t: a, format: s } = B(), c = x(() => n.modelValue || []), l = x(() => !n.field.maxItems || c.value.length < n.field.maxItems), d = x(() => !n.field.minItems || c.value.length > n.field.minItems);
|
|
1367
|
+
function m() {
|
|
1368
|
+
if (!l.value || n.readOnly) return;
|
|
1371
1369
|
let e = {};
|
|
1372
1370
|
for (let t of n.field.fields) e[t.key] = t.default ?? "";
|
|
1373
|
-
r("update:modelValue", [...
|
|
1371
|
+
r("update:modelValue", [...c.value, e]);
|
|
1374
1372
|
}
|
|
1375
|
-
function
|
|
1373
|
+
function h(e) {
|
|
1376
1374
|
if (!d.value || n.readOnly) return;
|
|
1377
|
-
let t = [...
|
|
1375
|
+
let t = [...c.value];
|
|
1378
1376
|
t.splice(e, 1), r("update:modelValue", t);
|
|
1379
1377
|
}
|
|
1380
|
-
function
|
|
1381
|
-
let i =
|
|
1378
|
+
function b(e, t, n) {
|
|
1379
|
+
let i = c.value.map((r, i) => i === e ? {
|
|
1382
1380
|
...r,
|
|
1383
1381
|
[t]: n
|
|
1384
1382
|
} : r);
|
|
1385
1383
|
r("update:modelValue", i);
|
|
1386
1384
|
}
|
|
1387
|
-
return (t, n) => (o(),
|
|
1385
|
+
return (t, n) => (o(), v(Q, {
|
|
1388
1386
|
label: e.field.label,
|
|
1389
1387
|
required: e.field.required,
|
|
1390
1388
|
"read-only": e.readOnly
|
|
1391
1389
|
}, {
|
|
1392
|
-
default:
|
|
1393
|
-
(o(!0),
|
|
1390
|
+
default: u(() => [y("div", yr, [
|
|
1391
|
+
(o(!0), f(w, null, i(c.value, (t, n) => (o(), f("div", {
|
|
1394
1392
|
key: `${e.field.key}-${n}`,
|
|
1395
1393
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1396
|
-
}, [y("div", br, [y("span", xr, " #" +
|
|
1394
|
+
}, [y("div", br, [y("span", xr, " #" + g(n + 1), 1), d.value && !e.readOnly ? (o(), f("button", {
|
|
1397
1395
|
key: 0,
|
|
1398
1396
|
type: "button",
|
|
1399
1397
|
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)]",
|
|
1400
|
-
title:
|
|
1401
|
-
onClick: (e) =>
|
|
1402
|
-
}, [E(
|
|
1398
|
+
title: C(a).customBlocks.fields.removeItem,
|
|
1399
|
+
onClick: (e) => h(n)
|
|
1400
|
+
}, [E(C(He), {
|
|
1403
1401
|
size: 12,
|
|
1404
1402
|
"stroke-width": 2
|
|
1405
|
-
})], 8, Sr)) :
|
|
1403
|
+
})], 8, Sr)) : _("", !0)]), (o(!0), f(w, null, i(e.field.fields, (r) => (o(), v(D(C(Pr)(r.type)), {
|
|
1406
1404
|
key: r.key,
|
|
1407
1405
|
field: r,
|
|
1408
1406
|
"model-value": t[r.key],
|
|
1409
1407
|
"read-only": e.readOnly,
|
|
1410
|
-
"onUpdate:modelValue": (e) =>
|
|
1408
|
+
"onUpdate:modelValue": (e) => b(n, r.key, e)
|
|
1411
1409
|
}, null, 8, [
|
|
1412
1410
|
"field",
|
|
1413
1411
|
"model-value",
|
|
1414
1412
|
"read-only",
|
|
1415
1413
|
"onUpdate:modelValue"
|
|
1416
1414
|
]))), 128))]))), 128)),
|
|
1417
|
-
|
|
1415
|
+
l.value && !e.readOnly ? (o(), f("button", {
|
|
1418
1416
|
key: 0,
|
|
1419
1417
|
type: "button",
|
|
1420
|
-
class:
|
|
1421
|
-
onClick:
|
|
1422
|
-
}, [E(
|
|
1418
|
+
class: T(C(nt)),
|
|
1419
|
+
onClick: m
|
|
1420
|
+
}, [E(C(V), {
|
|
1423
1421
|
size: 14,
|
|
1424
1422
|
"stroke-width": 2
|
|
1425
|
-
}),
|
|
1426
|
-
!
|
|
1427
|
-
!d.value && !e.readOnly ? (o(),
|
|
1423
|
+
}), p(" " + g(C(a).customBlocks.fields.addItem), 1)], 2)) : _("", !0),
|
|
1424
|
+
!l.value && !e.readOnly ? (o(), f("p", Cr, g(C(a).customBlocks.fields.maxItemsReached), 1)) : _("", !0),
|
|
1425
|
+
!d.value && !e.readOnly ? (o(), f("p", wr, g(C(s)(C(a).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : _("", !0)
|
|
1428
1426
|
])]),
|
|
1429
1427
|
_: 1
|
|
1430
1428
|
}, 8, [
|
|
@@ -1437,7 +1435,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1437
1435
|
"value",
|
|
1438
1436
|
"disabled",
|
|
1439
1437
|
"title"
|
|
1440
|
-
], Dr = ["value"], Or = /* @__PURE__ */
|
|
1438
|
+
], Dr = ["value"], Or = /* @__PURE__ */ t({
|
|
1441
1439
|
__name: "SelectField",
|
|
1442
1440
|
props: {
|
|
1443
1441
|
field: {},
|
|
@@ -1447,21 +1445,21 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1447
1445
|
emits: ["update:modelValue"],
|
|
1448
1446
|
setup(e, { emit: t }) {
|
|
1449
1447
|
let n = t, { t: r } = B();
|
|
1450
|
-
return (t, a) => (o(),
|
|
1448
|
+
return (t, a) => (o(), v(Q, {
|
|
1451
1449
|
label: e.field.label,
|
|
1452
1450
|
required: e.field.required,
|
|
1453
1451
|
"read-only": e.readOnly
|
|
1454
1452
|
}, {
|
|
1455
|
-
default:
|
|
1456
|
-
class:
|
|
1453
|
+
default: u(() => [y("select", {
|
|
1454
|
+
class: T([C(G), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1457
1455
|
value: e.modelValue,
|
|
1458
1456
|
disabled: e.readOnly,
|
|
1459
|
-
title: e.readOnly ?
|
|
1457
|
+
title: e.readOnly ? C(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1460
1458
|
onChange: a[0] ||= (t) => !e.readOnly && n("update:modelValue", t.target.value)
|
|
1461
|
-
}, [(o(!0),
|
|
1459
|
+
}, [(o(!0), f(w, null, i(e.field.options, (e) => (o(), f("option", {
|
|
1462
1460
|
key: e.value,
|
|
1463
1461
|
value: e.value
|
|
1464
|
-
},
|
|
1462
|
+
}, g(e.label), 9, Dr))), 128))], 42, Er)]),
|
|
1465
1463
|
_: 1
|
|
1466
1464
|
}, 8, [
|
|
1467
1465
|
"label",
|
|
@@ -1473,7 +1471,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1473
1471
|
"value",
|
|
1474
1472
|
"placeholder",
|
|
1475
1473
|
"title"
|
|
1476
|
-
], Ar = /* @__PURE__ */
|
|
1474
|
+
], Ar = /* @__PURE__ */ t({
|
|
1477
1475
|
__name: "TextField",
|
|
1478
1476
|
props: {
|
|
1479
1477
|
field: {},
|
|
@@ -1483,20 +1481,20 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1483
1481
|
emits: ["update:modelValue"],
|
|
1484
1482
|
setup(e, { emit: t }) {
|
|
1485
1483
|
let n = t, { t: r } = B();
|
|
1486
|
-
return (t, i) => (o(),
|
|
1484
|
+
return (t, i) => (o(), v(Q, {
|
|
1487
1485
|
label: e.field.label,
|
|
1488
1486
|
required: e.field.required,
|
|
1489
1487
|
"read-only": e.readOnly
|
|
1490
1488
|
}, {
|
|
1491
|
-
default:
|
|
1489
|
+
default: u(() => [e.readOnly ? (o(), f("input", {
|
|
1492
1490
|
key: 0,
|
|
1493
1491
|
type: "text",
|
|
1494
|
-
class:
|
|
1492
|
+
class: T([C(G), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1495
1493
|
value: e.modelValue,
|
|
1496
1494
|
placeholder: e.field.placeholder,
|
|
1497
1495
|
disabled: "",
|
|
1498
|
-
title:
|
|
1499
|
-
}, null, 10, kr)) : (o(),
|
|
1496
|
+
title: C(r).customBlocks.dataSource.readOnlyTooltip
|
|
1497
|
+
}, null, 10, kr)) : (o(), v(J, {
|
|
1500
1498
|
key: 1,
|
|
1501
1499
|
"model-value": e.modelValue,
|
|
1502
1500
|
placeholder: e.field.placeholder,
|
|
@@ -1515,7 +1513,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1515
1513
|
"title"
|
|
1516
1514
|
], Mr = "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", Nr = {
|
|
1517
1515
|
text: Ar,
|
|
1518
|
-
textarea: /* @__PURE__ */
|
|
1516
|
+
textarea: /* @__PURE__ */ t({
|
|
1519
1517
|
__name: "TextareaField",
|
|
1520
1518
|
props: {
|
|
1521
1519
|
field: {},
|
|
@@ -1525,20 +1523,20 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1525
1523
|
emits: ["update:modelValue"],
|
|
1526
1524
|
setup(e, { emit: t }) {
|
|
1527
1525
|
let n = t, { t: r } = B();
|
|
1528
|
-
return (t, i) => (o(),
|
|
1526
|
+
return (t, i) => (o(), v(Q, {
|
|
1529
1527
|
label: e.field.label,
|
|
1530
1528
|
required: e.field.required,
|
|
1531
1529
|
"read-only": e.readOnly
|
|
1532
1530
|
}, {
|
|
1533
|
-
default:
|
|
1531
|
+
default: u(() => [e.readOnly ? (o(), f("textarea", {
|
|
1534
1532
|
key: 0,
|
|
1535
1533
|
value: e.modelValue,
|
|
1536
1534
|
placeholder: e.field.placeholder,
|
|
1537
1535
|
rows: "3",
|
|
1538
1536
|
disabled: "",
|
|
1539
|
-
title:
|
|
1540
|
-
class:
|
|
1541
|
-
}, null, 8, jr)) : (o(),
|
|
1537
|
+
title: C(r).customBlocks.dataSource.readOnlyTooltip,
|
|
1538
|
+
class: T(Mr)
|
|
1539
|
+
}, null, 8, jr)) : (o(), v(ot, {
|
|
1542
1540
|
key: 1,
|
|
1543
1541
|
"model-value": e.modelValue,
|
|
1544
1542
|
placeholder: e.field.placeholder,
|
|
@@ -1562,8 +1560,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1562
1560
|
function Pr(e) {
|
|
1563
1561
|
return Nr[e] ?? Ar;
|
|
1564
1562
|
}
|
|
1565
|
-
|
|
1566
|
-
//#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1563
|
+
// src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1567
1564
|
var Fr = {
|
|
1568
1565
|
key: 0,
|
|
1569
1566
|
class: "tpl:p-4"
|
|
@@ -1582,12 +1579,12 @@ var Fr = {
|
|
|
1582
1579
|
}, Hr = {
|
|
1583
1580
|
key: 2,
|
|
1584
1581
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
1585
|
-
}, Ur = /* @__PURE__ */
|
|
1582
|
+
}, Ur = /* @__PURE__ */ t({
|
|
1586
1583
|
__name: "CustomBlockToolbar",
|
|
1587
1584
|
props: { block: {} },
|
|
1588
1585
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1589
1586
|
setup(e, { emit: t }) {
|
|
1590
|
-
let
|
|
1587
|
+
let r = e, a = t, { t: s } = B(), c = n(Ae, []), l = x(() => c.find((e) => e.type === r.block.customType)), u = x(() => r.block), { isFetching: d, fetchError: m, fetch: h, hasDataSource: b, needsFetch: S } = oe({
|
|
1591
1588
|
definition: l,
|
|
1592
1589
|
block: u,
|
|
1593
1590
|
onUpdate: (e, t) => {
|
|
@@ -1595,31 +1592,31 @@ var Fr = {
|
|
|
1595
1592
|
}
|
|
1596
1593
|
});
|
|
1597
1594
|
function T(e) {
|
|
1598
|
-
return e.readOnly === !0 && b.value && !!
|
|
1595
|
+
return e.readOnly === !0 && b.value && !!r.block.dataSourceFetched;
|
|
1599
1596
|
}
|
|
1600
1597
|
function O(e, t) {
|
|
1601
1598
|
a("updateFieldValues", {
|
|
1602
|
-
...
|
|
1599
|
+
...r.block.fieldValues,
|
|
1603
1600
|
[e]: t
|
|
1604
1601
|
});
|
|
1605
1602
|
}
|
|
1606
|
-
return (t, n) => l.value ? (o(),
|
|
1607
|
-
l.value.description ? (o(),
|
|
1608
|
-
|
|
1603
|
+
return (t, n) => l.value ? (o(), f("div", Lr, [
|
|
1604
|
+
l.value.description ? (o(), f("p", Rr, g(l.value.description), 1)) : _("", !0),
|
|
1605
|
+
C(b) ? (o(), f("div", zr, [C(S) && !C(d) ? (o(), f("button", {
|
|
1609
1606
|
key: 0,
|
|
1610
1607
|
type: "button",
|
|
1611
1608
|
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)]",
|
|
1612
|
-
onClick: n[0] ||= (...e) =>
|
|
1613
|
-
},
|
|
1609
|
+
onClick: n[0] ||= (...e) => C(h) && C(h)(...e)
|
|
1610
|
+
}, g(l.value?.dataSource?.label || C(s).customBlocks.dataSource.fetchButton), 1)) : (o(), f("div", Br, [C(d) ? (o(), f("div", Vr, g(C(s).customBlocks.dataSource.fetching), 1)) : (o(), f("button", {
|
|
1614
1611
|
key: 1,
|
|
1615
1612
|
type: "button",
|
|
1616
1613
|
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)]",
|
|
1617
|
-
onClick: n[1] ||= (...e) =>
|
|
1618
|
-
}, [E(
|
|
1614
|
+
onClick: n[1] ||= (...e) => C(h) && C(h)(...e)
|
|
1615
|
+
}, [E(C(Le), { size: 12 }), p(" " + g(C(s).customBlocks.dataSource.changeButton), 1)]))])), C(m) ? (o(), f("p", Hr, [E(C(Fe), {
|
|
1619
1616
|
size: 14,
|
|
1620
1617
|
class: "tpl:shrink-0"
|
|
1621
|
-
}),
|
|
1622
|
-
(o(!0),
|
|
1618
|
+
}), p(" " + g(C(s).customBlocks.dataSource.fetchError), 1)])) : _("", !0)])) : _("", !0),
|
|
1619
|
+
(o(!0), f(w, null, i(l.value.fields, (t) => (o(), v(D(C(Pr)(t.type)), {
|
|
1623
1620
|
key: t.key,
|
|
1624
1621
|
field: t,
|
|
1625
1622
|
"model-value": e.block.fieldValues[t.key],
|
|
@@ -1631,9 +1628,9 @@ var Fr = {
|
|
|
1631
1628
|
"read-only",
|
|
1632
1629
|
"onUpdate:modelValue"
|
|
1633
1630
|
]))), 128))
|
|
1634
|
-
])) : (o(),
|
|
1631
|
+
])) : (o(), f("div", Fr, [y("p", Ir, g(C(s).customBlocks.toolbar.noDefinition), 1)]));
|
|
1635
1632
|
}
|
|
1636
|
-
}), Wr = { class: "tpl:mb-3.5" }, Gr = { class: "tpl:mb-3.5" }, Kr = { class: "tpl:mb-3.5" }, qr = { class: "tpl:flex tpl:items-stretch" }, Jr = ["value"], Yr = /* @__PURE__ */
|
|
1633
|
+
}), Wr = { class: "tpl:mb-3.5" }, Gr = { class: "tpl:mb-3.5" }, Kr = { class: "tpl:mb-3.5" }, qr = { class: "tpl:flex tpl:items-stretch" }, Jr = ["value"], Yr = /* @__PURE__ */ t({
|
|
1637
1634
|
__name: "DividerToolbar",
|
|
1638
1635
|
props: { block: {} },
|
|
1639
1636
|
emits: ["update"],
|
|
@@ -1642,124 +1639,122 @@ var Fr = {
|
|
|
1642
1639
|
function i(e, t) {
|
|
1643
1640
|
n("update", { [e]: t });
|
|
1644
1641
|
}
|
|
1645
|
-
return (t, n) => (o(),
|
|
1646
|
-
y("div", Wr, [y("label", { class:
|
|
1642
|
+
return (t, n) => (o(), f(w, null, [
|
|
1643
|
+
y("div", Wr, [y("label", { class: T(C(H)) }, g(C(r).divider.style), 3), E(Y, {
|
|
1647
1644
|
options: [
|
|
1648
1645
|
{
|
|
1649
1646
|
value: "solid",
|
|
1650
|
-
label:
|
|
1647
|
+
label: C(r).divider.solid
|
|
1651
1648
|
},
|
|
1652
1649
|
{
|
|
1653
1650
|
value: "dashed",
|
|
1654
|
-
label:
|
|
1651
|
+
label: C(r).divider.dashed
|
|
1655
1652
|
},
|
|
1656
1653
|
{
|
|
1657
1654
|
value: "dotted",
|
|
1658
|
-
label:
|
|
1655
|
+
label: C(r).divider.dotted
|
|
1659
1656
|
}
|
|
1660
1657
|
],
|
|
1661
1658
|
"model-value": e.block.lineStyle,
|
|
1662
1659
|
"onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
|
|
1663
1660
|
}, null, 8, ["options", "model-value"])]),
|
|
1664
|
-
y("div", Gr, [y("label", { class:
|
|
1661
|
+
y("div", Gr, [y("label", { class: T(C(H)) }, g(C(r).divider.color), 3), E(K, {
|
|
1665
1662
|
"model-value": e.block.color,
|
|
1666
1663
|
"onUpdate:modelValue": n[1] ||= (e) => i("color", e)
|
|
1667
1664
|
}, null, 8, ["model-value"])]),
|
|
1668
|
-
y("div", Kr, [y("label", { class:
|
|
1665
|
+
y("div", Kr, [y("label", { class: T(C(H)) }, g(C(r).divider.thickness), 3), y("div", qr, [y("input", {
|
|
1669
1666
|
type: "number",
|
|
1670
|
-
class:
|
|
1667
|
+
class: T(C(W)),
|
|
1671
1668
|
value: e.block.thickness,
|
|
1672
1669
|
min: "1",
|
|
1673
1670
|
max: "10",
|
|
1674
1671
|
onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
|
|
1675
|
-
}, null, 42, Jr), y("span", { class:
|
|
1672
|
+
}, null, 42, Jr), y("span", { class: T(C(U)) }, "px", 2)])])
|
|
1676
1673
|
], 64));
|
|
1677
1674
|
}
|
|
1678
|
-
}), Xr = { class: "tpl:mb-3.5" }, Zr = ["value"], Qr = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, $r = /* @__PURE__ */
|
|
1675
|
+
}), Xr = { class: "tpl:mb-3.5" }, Zr = ["value"], Qr = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, $r = /* @__PURE__ */ t({
|
|
1679
1676
|
__name: "HtmlToolbar",
|
|
1680
1677
|
props: { block: {} },
|
|
1681
1678
|
emits: ["update"],
|
|
1682
1679
|
setup(e, { emit: t }) {
|
|
1683
1680
|
let n = t, { t: r } = B();
|
|
1684
|
-
return (t, i) => (o(),
|
|
1685
|
-
y("label", { class:
|
|
1681
|
+
return (t, i) => (o(), f("div", Xr, [
|
|
1682
|
+
y("label", { class: T(C(H)) }, g(C(r).html.content), 3),
|
|
1686
1683
|
y("textarea", {
|
|
1687
1684
|
value: e.block.content,
|
|
1688
1685
|
placeholder: "<div>...</div>",
|
|
1689
1686
|
rows: "10",
|
|
1690
|
-
class:
|
|
1687
|
+
class: T(C(et)),
|
|
1691
1688
|
onInput: i[0] ||= (e) => n("update", { content: e.target.value })
|
|
1692
1689
|
}, null, 42, Zr),
|
|
1693
|
-
y("p", Qr, [E(
|
|
1690
|
+
y("p", Qr, [E(C(Ue), {
|
|
1694
1691
|
size: 12,
|
|
1695
1692
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1696
|
-
}),
|
|
1693
|
+
}), p(" " + g(C(r).html.sanitizationHint), 1)])
|
|
1697
1694
|
]));
|
|
1698
1695
|
}
|
|
1699
1696
|
});
|
|
1700
|
-
|
|
1701
|
-
//#region src/composables/useImageAspectLock.ts
|
|
1697
|
+
// src/composables/useImageAspectLock.ts
|
|
1702
1698
|
function ei(e) {
|
|
1703
|
-
let
|
|
1699
|
+
let t = h(!1), n = h(null);
|
|
1704
1700
|
l(() => e.block().id, () => {
|
|
1705
|
-
|
|
1701
|
+
t.value = !1, n.value = null;
|
|
1706
1702
|
});
|
|
1707
|
-
let
|
|
1703
|
+
let r = x(() => fe(e.block()) ?? e.measured()), i = x(() => {
|
|
1708
1704
|
let t = e.block().width;
|
|
1709
1705
|
return t === "full" ? e.room() : t;
|
|
1710
|
-
}),
|
|
1711
|
-
let e =
|
|
1706
|
+
}), a = x(() => {
|
|
1707
|
+
let e = r.value, t = i.value;
|
|
1712
1708
|
return !e || t === null ? null : Math.round(t * e.height / e.width);
|
|
1713
|
-
}),
|
|
1709
|
+
}), o = x(() => r.value !== null), s = x(() => {
|
|
1714
1710
|
let t = e.block().height;
|
|
1715
|
-
return t === void 0 ||
|
|
1716
|
-
}),
|
|
1717
|
-
function
|
|
1718
|
-
if (
|
|
1711
|
+
return t === void 0 || a.value !== null && Math.abs(a.value - t) <= 1;
|
|
1712
|
+
}), c = x(() => o.value && !t.value && s.value);
|
|
1713
|
+
function u() {
|
|
1714
|
+
if (fe(e.block())) return {};
|
|
1719
1715
|
let t = e.measured();
|
|
1720
|
-
return t ?
|
|
1716
|
+
return t ? he(t) : {};
|
|
1721
1717
|
}
|
|
1722
|
-
function
|
|
1723
|
-
if (
|
|
1724
|
-
if (
|
|
1725
|
-
let i = { ...
|
|
1718
|
+
function d(r) {
|
|
1719
|
+
if (n.value = null, !r) return t.value = !0, null;
|
|
1720
|
+
if (t.value = !1, !o.value) return null;
|
|
1721
|
+
let i = { ...u() };
|
|
1726
1722
|
return e.block().height !== void 0 && (i.height = void 0), Object.keys(i).length > 0 ? i : null;
|
|
1727
1723
|
}
|
|
1728
|
-
function
|
|
1729
|
-
return
|
|
1724
|
+
function f(e) {
|
|
1725
|
+
return n.value = null, c.value ? {
|
|
1730
1726
|
width: e,
|
|
1731
1727
|
height: void 0,
|
|
1732
|
-
...
|
|
1728
|
+
...u()
|
|
1733
1729
|
} : { width: e };
|
|
1734
1730
|
}
|
|
1735
|
-
function
|
|
1736
|
-
let
|
|
1737
|
-
if (!
|
|
1738
|
-
let a = Math.round(t *
|
|
1731
|
+
function p(t) {
|
|
1732
|
+
let i = r.value;
|
|
1733
|
+
if (!c.value || !i || !Number.isFinite(t) || t <= 0) return null;
|
|
1734
|
+
let a = Math.round(t * i.width / i.height);
|
|
1739
1735
|
if (a < 1) return null;
|
|
1740
1736
|
let o = e.room();
|
|
1741
|
-
return o !== null && a >= o ? (
|
|
1737
|
+
return o !== null && a >= o ? (n.value = Math.round(o * i.height / i.width), {
|
|
1742
1738
|
width: "full",
|
|
1743
1739
|
height: void 0,
|
|
1744
|
-
...
|
|
1745
|
-
}) : (
|
|
1740
|
+
...u()
|
|
1741
|
+
}) : (n.value = null, {
|
|
1746
1742
|
width: a,
|
|
1747
1743
|
height: void 0,
|
|
1748
|
-
...
|
|
1744
|
+
...u()
|
|
1749
1745
|
});
|
|
1750
1746
|
}
|
|
1751
1747
|
return {
|
|
1752
|
-
available:
|
|
1753
|
-
locked:
|
|
1754
|
-
derivedHeight:
|
|
1755
|
-
cappedHeight:
|
|
1756
|
-
setLocked:
|
|
1757
|
-
widthUpdates:
|
|
1758
|
-
heightUpdates:
|
|
1748
|
+
available: o,
|
|
1749
|
+
locked: c,
|
|
1750
|
+
derivedHeight: a,
|
|
1751
|
+
cappedHeight: n,
|
|
1752
|
+
setLocked: d,
|
|
1753
|
+
widthUpdates: f,
|
|
1754
|
+
heightUpdates: p
|
|
1759
1755
|
};
|
|
1760
1756
|
}
|
|
1761
|
-
|
|
1762
|
-
//#region src/components/toolbar/ImageToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1757
|
+
// src/components/toolbar/ImageToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1763
1758
|
var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
1764
1759
|
key: 0,
|
|
1765
1760
|
class: "tpl:mb-3.5"
|
|
@@ -1781,97 +1776,97 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
1781
1776
|
}, yi = ["value"], bi = { value: "auto" }, xi = { value: "custom" }, Si = {
|
|
1782
1777
|
key: 4,
|
|
1783
1778
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1784
|
-
}, Ci = ["value"], wi = { class: "tpl:mb-3.5" }, Ti = { class: "tpl:mb-3.5" }, Ei = 350, Di = 200, Oi = /* @__PURE__ */
|
|
1779
|
+
}, Ci = ["value"], wi = { class: "tpl:mb-3.5" }, Ti = { class: "tpl:mb-3.5" }, Ei = 350, Di = 200, Oi = /* @__PURE__ */ t({
|
|
1785
1780
|
__name: "ImageToolbar",
|
|
1786
1781
|
props: { block: {} },
|
|
1787
1782
|
emits: ["update"],
|
|
1788
|
-
setup(e, { emit:
|
|
1789
|
-
let
|
|
1790
|
-
|
|
1783
|
+
setup(e, { emit: t }) {
|
|
1784
|
+
let r = e, i = t, { t: a, format: s } = B(), c = n(we, ie.liquid), l = n(De, null), d = n(Se, void 0), m = h(!1), b = h(!1), { start: S } = be(() => {
|
|
1785
|
+
m.value = !1, b.value = !1;
|
|
1791
1786
|
}, 1e3, { immediate: !1 }), D = [
|
|
1792
1787
|
300,
|
|
1793
1788
|
400,
|
|
1794
1789
|
500
|
|
1795
|
-
], O =
|
|
1796
|
-
let e =
|
|
1790
|
+
], O = x(() => {
|
|
1791
|
+
let e = r.block.width;
|
|
1797
1792
|
return e === "full" ? "full" : D.includes(e) ? String(e) : "custom";
|
|
1798
|
-
}), k =
|
|
1793
|
+
}), k = x(() => typeof r.block.height == "number" ? "custom" : "auto");
|
|
1799
1794
|
function A(e, t) {
|
|
1800
|
-
|
|
1795
|
+
i("update", { [e]: t });
|
|
1801
1796
|
}
|
|
1802
1797
|
function j(e) {
|
|
1803
1798
|
if (e === "custom") {
|
|
1804
|
-
let e =
|
|
1805
|
-
(typeof e != "number" || D.includes(e)) &&
|
|
1806
|
-
} else
|
|
1799
|
+
let e = r.block.width;
|
|
1800
|
+
(typeof e != "number" || D.includes(e)) && i("update", R.widthUpdates(Ei));
|
|
1801
|
+
} else i("update", R.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
1807
1802
|
}
|
|
1808
|
-
function
|
|
1803
|
+
function N(e) {
|
|
1809
1804
|
A("height", e === "custom" ? Di : void 0);
|
|
1810
1805
|
}
|
|
1811
|
-
function
|
|
1806
|
+
function P(e) {
|
|
1812
1807
|
let t = Number(e);
|
|
1813
1808
|
!Number.isFinite(t) || t <= 0 || A("height", t);
|
|
1814
1809
|
}
|
|
1815
|
-
function
|
|
1816
|
-
A("borderRadius",
|
|
1810
|
+
function ee(e) {
|
|
1811
|
+
A("borderRadius", M(e) === null ? void 0 : e);
|
|
1817
1812
|
}
|
|
1818
1813
|
function F(e) {
|
|
1819
1814
|
let t = Number(e);
|
|
1820
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
1815
|
+
!Number.isFinite(t) || t <= 0 || i("update", R.widthUpdates(t));
|
|
1821
1816
|
}
|
|
1822
1817
|
function te(e) {
|
|
1823
|
-
e !==
|
|
1818
|
+
e !== r.block.src && i("update", {
|
|
1824
1819
|
src: e,
|
|
1825
|
-
...
|
|
1820
|
+
...he(null)
|
|
1826
1821
|
});
|
|
1827
1822
|
}
|
|
1828
|
-
function
|
|
1829
|
-
|
|
1823
|
+
function ne(e) {
|
|
1824
|
+
i("update", {
|
|
1830
1825
|
src: e.url,
|
|
1831
|
-
...
|
|
1832
|
-
}), e.alt && (A("alt", e.alt),
|
|
1833
|
-
}
|
|
1834
|
-
let
|
|
1835
|
-
target:
|
|
1836
|
-
blocked:
|
|
1837
|
-
apply:
|
|
1838
|
-
}),
|
|
1839
|
-
block: () =>
|
|
1840
|
-
room: () =>
|
|
1841
|
-
measured: () =>
|
|
1842
|
-
}), { available:
|
|
1826
|
+
...he(de(e.width, e.height))
|
|
1827
|
+
}), e.alt && (A("alt", e.alt), b.value = !0), m.value = !0, S();
|
|
1828
|
+
}
|
|
1829
|
+
let I = h(), re = x(() => L(r.block.src, c)), { canBrowse: ae, isUploading: oe, showOverlay: se, openMediaBrowser: ce } = me({
|
|
1830
|
+
target: I,
|
|
1831
|
+
blocked: re,
|
|
1832
|
+
apply: ne
|
|
1833
|
+
}), ue = ye(() => re.value || !r.block.src || fe(r.block) ? void 0 : r.block.src), ge = yn(() => ue.value), _e = x(() => l ? pe(l.content.value, r.block.id, d) : null), R = ei({
|
|
1834
|
+
block: () => r.block,
|
|
1835
|
+
room: () => _e.value,
|
|
1836
|
+
measured: () => ge.value
|
|
1837
|
+
}), { available: ve, locked: z, derivedHeight: xe, cappedHeight: Ce } = R;
|
|
1843
1838
|
function Te() {
|
|
1844
|
-
let e =
|
|
1845
|
-
e &&
|
|
1839
|
+
let e = R.setLocked(!z.value);
|
|
1840
|
+
e && i("update", e);
|
|
1846
1841
|
}
|
|
1847
|
-
let Ee =
|
|
1842
|
+
let Ee = h(null);
|
|
1848
1843
|
function Oe(e) {
|
|
1849
1844
|
Ee.value = e;
|
|
1850
|
-
let t =
|
|
1851
|
-
t &&
|
|
1845
|
+
let t = R.heightUpdates(Number(e));
|
|
1846
|
+
t && i("update", t);
|
|
1852
1847
|
}
|
|
1853
|
-
return (t, n) => (o(),
|
|
1854
|
-
y("div", ti, [y("label", { class:
|
|
1848
|
+
return (t, n) => (o(), f(w, null, [
|
|
1849
|
+
y("div", ti, [y("label", { class: T(C(H)) }, g(C(a).image.imageUrl), 3), y("div", {
|
|
1855
1850
|
ref_key: "dropZoneRef",
|
|
1856
|
-
ref:
|
|
1851
|
+
ref: I,
|
|
1857
1852
|
class: "tpl:relative"
|
|
1858
1853
|
}, [
|
|
1859
|
-
|
|
1854
|
+
C(se) ? (o(), v(le, {
|
|
1860
1855
|
key: 0,
|
|
1861
|
-
uploading:
|
|
1862
|
-
}, null, 8, ["uploading"])) :
|
|
1856
|
+
uploading: C(oe)
|
|
1857
|
+
}, null, 8, ["uploading"])) : _("", !0),
|
|
1863
1858
|
E(J, {
|
|
1864
1859
|
"model-value": e.block.src,
|
|
1865
1860
|
type: "url",
|
|
1866
|
-
placeholder:
|
|
1867
|
-
pulse:
|
|
1861
|
+
placeholder: C(a).image.imageUrlPlaceholder,
|
|
1862
|
+
pulse: m.value,
|
|
1868
1863
|
"onUpdate:modelValue": n[0] ||= (e) => te(e)
|
|
1869
1864
|
}, null, 8, [
|
|
1870
1865
|
"model-value",
|
|
1871
1866
|
"placeholder",
|
|
1872
1867
|
"pulse"
|
|
1873
1868
|
]),
|
|
1874
|
-
|
|
1869
|
+
C(ae) ? (o(), f("button", {
|
|
1875
1870
|
key: 1,
|
|
1876
1871
|
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",
|
|
1877
1872
|
style: {
|
|
@@ -1879,27 +1874,27 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
1879
1874
|
color: "var(--tpl-primary)",
|
|
1880
1875
|
"background-color": "var(--tpl-bg)"
|
|
1881
1876
|
},
|
|
1882
|
-
onClick: n[1] ||= (...e) =>
|
|
1883
|
-
}, [E(
|
|
1877
|
+
onClick: n[1] ||= (...e) => C(ce) && C(ce)(...e)
|
|
1878
|
+
}, [E(C(ze), {
|
|
1884
1879
|
size: 14,
|
|
1885
1880
|
"stroke-width": 1.5
|
|
1886
|
-
}),
|
|
1881
|
+
}), p(" " + g(C(a).image.browseMedia), 1)])) : _("", !0)
|
|
1887
1882
|
], 512)]),
|
|
1888
|
-
|
|
1883
|
+
C(L)(e.block.src, C(c)) ? (o(), f("div", ni, [y("label", { class: T(C(H)) }, [p(g(C(a).image.placeholderUrl) + " ", 1), y("span", ri, g(C(a).image.optional), 1)], 2), y("input", {
|
|
1889
1884
|
type: "url",
|
|
1890
|
-
class:
|
|
1885
|
+
class: T(C(G)),
|
|
1891
1886
|
value: e.block.placeholderUrl || "",
|
|
1892
|
-
placeholder:
|
|
1893
|
-
title:
|
|
1887
|
+
placeholder: C(a).image.placeholderUrlPlaceholder,
|
|
1888
|
+
title: C(a).image.placeholderUrlTooltip,
|
|
1894
1889
|
onInput: n[2] ||= (e) => A("placeholderUrl", e.target.value)
|
|
1895
|
-
}, null, 42, ii)])) :
|
|
1890
|
+
}, null, 42, ii)])) : _("", !0),
|
|
1896
1891
|
y("div", ai, [
|
|
1897
|
-
y("label", { class:
|
|
1892
|
+
y("label", { class: T(C(H)) }, g(C(a).image.altText), 3),
|
|
1898
1893
|
E(J, {
|
|
1899
1894
|
"model-value": e.block.alt,
|
|
1900
1895
|
type: "text",
|
|
1901
|
-
placeholder:
|
|
1902
|
-
pulse:
|
|
1896
|
+
placeholder: C(a).image.altTextPlaceholder,
|
|
1897
|
+
pulse: b.value,
|
|
1903
1898
|
disabled: e.block.decorative === !0,
|
|
1904
1899
|
"onUpdate:modelValue": n[3] ||= (e) => A("alt", e)
|
|
1905
1900
|
}, null, 8, [
|
|
@@ -1911,137 +1906,137 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
1911
1906
|
E(q, {
|
|
1912
1907
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
1913
1908
|
"model-value": e.block.decorative === !0,
|
|
1914
|
-
label:
|
|
1909
|
+
label: C(a).image.decorative,
|
|
1915
1910
|
"onUpdate:modelValue": n[4] ||= (e) => A("decorative", e)
|
|
1916
1911
|
}, {
|
|
1917
|
-
default:
|
|
1912
|
+
default: u(() => [y("span", null, [p(g(C(a).image.decorative) + " ", 1), y("span", oi, g(C(a).image.decorativeHint), 1)])]),
|
|
1918
1913
|
_: 1
|
|
1919
1914
|
}, 8, ["model-value", "label"])
|
|
1920
1915
|
]),
|
|
1921
1916
|
y("div", si, [
|
|
1922
|
-
y("label", { class:
|
|
1917
|
+
y("label", { class: T(C(H)) }, g(C(a).image.width), 3),
|
|
1923
1918
|
y("select", {
|
|
1924
|
-
class:
|
|
1919
|
+
class: T(C(G)),
|
|
1925
1920
|
"data-testid": "image-width-mode",
|
|
1926
1921
|
value: O.value,
|
|
1927
1922
|
onChange: n[5] ||= (e) => j(e.target.value)
|
|
1928
1923
|
}, [
|
|
1929
|
-
y("option", li,
|
|
1924
|
+
y("option", li, g(C(a).image.fullWidth), 1),
|
|
1930
1925
|
n[15] ||= y("option", { value: "300" }, "300px", -1),
|
|
1931
1926
|
n[16] ||= y("option", { value: "400" }, "400px", -1),
|
|
1932
1927
|
n[17] ||= y("option", { value: "500" }, "500px", -1),
|
|
1933
|
-
y("option", ui,
|
|
1928
|
+
y("option", ui, g(C(a).image.widthCustom), 1)
|
|
1934
1929
|
], 42, ci),
|
|
1935
|
-
O.value === "custom" ? (o(),
|
|
1930
|
+
O.value === "custom" ? (o(), f("div", di, [y("input", {
|
|
1936
1931
|
type: "number",
|
|
1937
1932
|
"data-testid": "image-width-input",
|
|
1938
|
-
class:
|
|
1933
|
+
class: T(C(W)),
|
|
1939
1934
|
value: typeof e.block.width == "number" ? e.block.width : Ei,
|
|
1940
1935
|
min: "20",
|
|
1941
1936
|
onInput: n[6] ||= (e) => F(e.target.value)
|
|
1942
|
-
}, null, 42, fi), y("span", { class:
|
|
1937
|
+
}, null, 42, fi), y("span", { class: T(C(U)) }, "px", 2)])) : _("", !0)
|
|
1943
1938
|
]),
|
|
1944
1939
|
y("div", pi, [
|
|
1945
|
-
|
|
1946
|
-
linked:
|
|
1947
|
-
"link-label":
|
|
1948
|
-
"unlink-label":
|
|
1940
|
+
C(ve) ? (o(), f("div", mi, [y("span", hi, g(C(a).image.height), 1), E(mt, {
|
|
1941
|
+
linked: C(z),
|
|
1942
|
+
"link-label": C(a).image.lockAspectRatio,
|
|
1943
|
+
"unlink-label": C(a).image.unlockAspectRatio,
|
|
1949
1944
|
testid: "image-aspect-lock",
|
|
1950
1945
|
onToggle: Te
|
|
1951
1946
|
}, null, 8, [
|
|
1952
1947
|
"linked",
|
|
1953
1948
|
"link-label",
|
|
1954
1949
|
"unlink-label"
|
|
1955
|
-
])])) : (o(),
|
|
1950
|
+
])])) : (o(), f("label", {
|
|
1956
1951
|
key: 1,
|
|
1957
|
-
class:
|
|
1958
|
-
},
|
|
1959
|
-
|
|
1952
|
+
class: T(C(H))
|
|
1953
|
+
}, g(C(a).image.height), 3)),
|
|
1954
|
+
C(z) ? (o(), f(w, { key: 2 }, [y("div", gi, [y("input", {
|
|
1960
1955
|
type: "number",
|
|
1961
1956
|
"data-testid": "image-locked-height-input",
|
|
1962
|
-
class:
|
|
1963
|
-
value: Ee.value ??
|
|
1957
|
+
class: T(C(W)),
|
|
1958
|
+
value: Ee.value ?? C(xe) ?? "",
|
|
1964
1959
|
min: "1",
|
|
1965
1960
|
onInput: n[7] ||= (e) => Oe(e.target.value),
|
|
1966
1961
|
onBlur: n[8] ||= (e) => Ee.value = null
|
|
1967
|
-
}, null, 42, _i), y("span", { class:
|
|
1968
|
-
|
|
1962
|
+
}, null, 42, _i), y("span", { class: T(C(U)) }, "px", 2)]), C(Ce) === null ? _("", !0) : (o(), f("p", vi, g(C(s)(C(a).image.heightCapped, { height: C(Ce) })), 1))], 64)) : _("", !0),
|
|
1963
|
+
C(z) ? _("", !0) : (o(), f("select", {
|
|
1969
1964
|
key: 3,
|
|
1970
|
-
class:
|
|
1965
|
+
class: T(C(G)),
|
|
1971
1966
|
"data-testid": "image-height-mode",
|
|
1972
1967
|
value: k.value,
|
|
1973
|
-
onChange: n[9] ||= (e) =>
|
|
1974
|
-
}, [y("option", bi,
|
|
1975
|
-
!
|
|
1968
|
+
onChange: n[9] ||= (e) => N(e.target.value)
|
|
1969
|
+
}, [y("option", bi, g(C(a).image.heightAuto), 1), y("option", xi, g(C(a).image.heightCustom), 1)], 42, yi)),
|
|
1970
|
+
!C(z) && k.value === "custom" ? (o(), f("div", Si, [y("input", {
|
|
1976
1971
|
type: "number",
|
|
1977
1972
|
"data-testid": "image-height-input",
|
|
1978
|
-
class:
|
|
1973
|
+
class: T(C(W)),
|
|
1979
1974
|
value: e.block.height,
|
|
1980
1975
|
min: "20",
|
|
1981
|
-
onInput: n[10] ||= (e) =>
|
|
1982
|
-
}, null, 42, Ci), y("span", { class:
|
|
1976
|
+
onInput: n[10] ||= (e) => P(e.target.value)
|
|
1977
|
+
}, null, 42, Ci), y("span", { class: T(C(U)) }, "px", 2)])) : _("", !0)
|
|
1983
1978
|
]),
|
|
1984
1979
|
E(Dt, {
|
|
1985
1980
|
"model-value": e.block.borderRadius,
|
|
1986
|
-
label:
|
|
1981
|
+
label: C(a).image.borderRadius,
|
|
1987
1982
|
"testid-prefix": "image",
|
|
1988
|
-
"onUpdate:modelValue":
|
|
1983
|
+
"onUpdate:modelValue": ee
|
|
1989
1984
|
}, null, 8, ["model-value", "label"]),
|
|
1990
1985
|
E(xt, {
|
|
1991
1986
|
"model-value": e.block.border,
|
|
1992
1987
|
"testid-prefix": "image",
|
|
1993
1988
|
"onUpdate:modelValue": n[11] ||= (e) => A("border", e)
|
|
1994
1989
|
}, null, 8, ["model-value"]),
|
|
1995
|
-
y("div", wi, [y("label", { class:
|
|
1990
|
+
y("div", wi, [y("label", { class: T(C(H)) }, g(C(a).title.align), 3), E(Y, {
|
|
1996
1991
|
options: [
|
|
1997
1992
|
{
|
|
1998
1993
|
value: "left",
|
|
1999
|
-
label:
|
|
1994
|
+
label: C(a).title.alignLeft
|
|
2000
1995
|
},
|
|
2001
1996
|
{
|
|
2002
1997
|
value: "center",
|
|
2003
|
-
label:
|
|
1998
|
+
label: C(a).title.alignCenter
|
|
2004
1999
|
},
|
|
2005
2000
|
{
|
|
2006
2001
|
value: "right",
|
|
2007
|
-
label:
|
|
2002
|
+
label: C(a).title.alignRight
|
|
2008
2003
|
}
|
|
2009
2004
|
],
|
|
2010
2005
|
"model-value": e.block.align,
|
|
2011
2006
|
"onUpdate:modelValue": n[12] ||= (e) => A("align", e)
|
|
2012
2007
|
}, null, 8, ["options", "model-value"])]),
|
|
2013
2008
|
y("div", Ti, [
|
|
2014
|
-
y("label", { class:
|
|
2009
|
+
y("label", { class: T(C(H)) }, g(C(a).image.linkUrl), 3),
|
|
2015
2010
|
E(J, {
|
|
2016
2011
|
"model-value": e.block.linkUrl || "",
|
|
2017
2012
|
type: "url",
|
|
2018
|
-
placeholder:
|
|
2013
|
+
placeholder: C(a).image.imageUrlPlaceholder,
|
|
2019
2014
|
"onUpdate:modelValue": n[13] ||= (e) => A("linkUrl", e)
|
|
2020
2015
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2021
|
-
e.block.linkUrl ? (o(),
|
|
2016
|
+
e.block.linkUrl ? (o(), v(q, {
|
|
2022
2017
|
key: 0,
|
|
2023
2018
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2024
2019
|
"model-value": e.block.linkOpenInNewTab ?? !1,
|
|
2025
|
-
label:
|
|
2020
|
+
label: C(a).image.openInNewTab,
|
|
2026
2021
|
"onUpdate:modelValue": n[14] ||= (e) => A("linkOpenInNewTab", e)
|
|
2027
|
-
}, null, 8, ["model-value", "label"])) :
|
|
2022
|
+
}, null, 8, ["model-value", "label"])) : _("", !0)
|
|
2028
2023
|
])
|
|
2029
2024
|
], 64));
|
|
2030
2025
|
}
|
|
2031
|
-
}), ki = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */
|
|
2026
|
+
}), ki = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ t({
|
|
2032
2027
|
__name: "FieldRow",
|
|
2033
2028
|
props: { label: {} },
|
|
2034
2029
|
setup(e) {
|
|
2035
|
-
return (t, n) => (o(),
|
|
2030
|
+
return (t, n) => (o(), f("div", ki, [e.label ? (o(), f("label", {
|
|
2036
2031
|
key: 0,
|
|
2037
|
-
class:
|
|
2038
|
-
},
|
|
2032
|
+
class: T(C(H))
|
|
2033
|
+
}, g(e.label), 3)) : _("", !0), a(t.$slots, "default")]));
|
|
2039
2034
|
}
|
|
2040
2035
|
}), Ai = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ji = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Mi = [
|
|
2041
2036
|
"value",
|
|
2042
2037
|
"placeholder",
|
|
2043
2038
|
"onInput"
|
|
2044
|
-
], Ni = ["title", "onClick"], Pi = { 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)]" }, Fi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ii = ["value"], Li = { value: "" }, Ri = ["value"], zi = ["value"], Bi = /* @__PURE__ */
|
|
2039
|
+
], Ni = ["title", "onClick"], Pi = { 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)]" }, Fi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ii = ["value"], Li = { value: "" }, Ri = ["value"], zi = ["value"], Bi = /* @__PURE__ */ t({
|
|
2045
2040
|
__name: "MenuToolbar",
|
|
2046
2041
|
props: {
|
|
2047
2042
|
block: {},
|
|
@@ -2049,7 +2044,7 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2049
2044
|
},
|
|
2050
2045
|
emits: ["update"],
|
|
2051
2046
|
setup(e, { emit: t }) {
|
|
2052
|
-
let n = e, r = t, { t: a } = B(), s =
|
|
2047
|
+
let n = e, r = t, { t: a } = B(), s = x(() => [
|
|
2053
2048
|
{
|
|
2054
2049
|
key: "openInNewTab",
|
|
2055
2050
|
label: a.menu.openInNewTab
|
|
@@ -2062,24 +2057,24 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2062
2057
|
key: "underline",
|
|
2063
2058
|
label: a.menu.underline
|
|
2064
2059
|
}
|
|
2065
|
-
]),
|
|
2060
|
+
]), c = x(() => [
|
|
2066
2061
|
{
|
|
2067
2062
|
value: "left",
|
|
2068
2063
|
label: a.title.alignLeft,
|
|
2069
|
-
icon:
|
|
2064
|
+
icon: Je
|
|
2070
2065
|
},
|
|
2071
2066
|
{
|
|
2072
2067
|
value: "center",
|
|
2073
2068
|
label: a.title.alignCenter,
|
|
2074
|
-
icon:
|
|
2069
|
+
icon: Ze
|
|
2075
2070
|
},
|
|
2076
2071
|
{
|
|
2077
2072
|
value: "right",
|
|
2078
2073
|
label: a.title.alignRight,
|
|
2079
|
-
icon:
|
|
2074
|
+
icon: Re
|
|
2080
2075
|
}
|
|
2081
2076
|
]);
|
|
2082
|
-
function
|
|
2077
|
+
function l(e, t) {
|
|
2083
2078
|
r("update", { [e]: t });
|
|
2084
2079
|
}
|
|
2085
2080
|
function d() {
|
|
@@ -2093,136 +2088,136 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2093
2088
|
};
|
|
2094
2089
|
r("update", { items: [...n.block.items, e] });
|
|
2095
2090
|
}
|
|
2096
|
-
function
|
|
2091
|
+
function m(e, t, i) {
|
|
2097
2092
|
let a = n.block.items.map((n) => n.id === e ? {
|
|
2098
2093
|
...n,
|
|
2099
2094
|
[t]: i
|
|
2100
2095
|
} : n);
|
|
2101
2096
|
r("update", { items: a });
|
|
2102
2097
|
}
|
|
2103
|
-
function
|
|
2098
|
+
function h(e) {
|
|
2104
2099
|
r("update", { items: n.block.items.filter((t) => t.id !== e) });
|
|
2105
2100
|
}
|
|
2106
|
-
return (t, n) => (o(),
|
|
2107
|
-
E($, { label:
|
|
2108
|
-
default:
|
|
2101
|
+
return (t, n) => (o(), f(w, null, [
|
|
2102
|
+
E($, { label: C(a).menu.items }, {
|
|
2103
|
+
default: u(() => [y("div", Ai, [(o(!0), f(w, null, i(e.block.items, (t) => (o(), f("div", {
|
|
2109
2104
|
key: t.id,
|
|
2110
2105
|
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"
|
|
2111
2106
|
}, [
|
|
2112
2107
|
y("div", ji, [y("input", {
|
|
2113
2108
|
type: "text",
|
|
2114
|
-
class:
|
|
2109
|
+
class: T([C(G), "tpl:flex-1"]),
|
|
2115
2110
|
value: t.text,
|
|
2116
|
-
placeholder:
|
|
2117
|
-
onInput: (e) =>
|
|
2111
|
+
placeholder: C(a).menu.text,
|
|
2112
|
+
onInput: (e) => m(t.id, "text", e.target.value)
|
|
2118
2113
|
}, null, 42, Mi), y("button", {
|
|
2119
|
-
class:
|
|
2120
|
-
title:
|
|
2121
|
-
onClick: (e) =>
|
|
2122
|
-
}, [E(
|
|
2114
|
+
class: T(C(tt)),
|
|
2115
|
+
title: C(a).menu.removeItem,
|
|
2116
|
+
onClick: (e) => h(t.id)
|
|
2117
|
+
}, [E(C(Xe), {
|
|
2123
2118
|
size: 14,
|
|
2124
2119
|
"stroke-width": 2
|
|
2125
2120
|
})], 10, Ni)]),
|
|
2126
2121
|
E(J, {
|
|
2127
2122
|
"model-value": t.url,
|
|
2128
2123
|
type: "url",
|
|
2129
|
-
placeholder:
|
|
2130
|
-
"onUpdate:modelValue": (e) =>
|
|
2124
|
+
placeholder: C(a).menu.urlPlaceholder,
|
|
2125
|
+
"onUpdate:modelValue": (e) => m(t.id, "url", e)
|
|
2131
2126
|
}, null, 8, [
|
|
2132
2127
|
"model-value",
|
|
2133
2128
|
"placeholder",
|
|
2134
2129
|
"onUpdate:modelValue"
|
|
2135
2130
|
]),
|
|
2136
|
-
y("div", Pi, [(o(!0),
|
|
2131
|
+
y("div", Pi, [(o(!0), f(w, null, i(s.value, (e) => (o(), v(q, {
|
|
2137
2132
|
key: e.key,
|
|
2138
2133
|
"model-value": t[e.key],
|
|
2139
2134
|
label: e.label,
|
|
2140
|
-
"onUpdate:modelValue": (n) =>
|
|
2135
|
+
"onUpdate:modelValue": (n) => m(t.id, e.key, n)
|
|
2141
2136
|
}, null, 8, [
|
|
2142
2137
|
"model-value",
|
|
2143
2138
|
"label",
|
|
2144
2139
|
"onUpdate:modelValue"
|
|
2145
2140
|
]))), 128))]),
|
|
2146
|
-
y("div", Fi, [y("label", { class:
|
|
2141
|
+
y("div", Fi, [y("label", { class: T([C(H), "tpl:!mb-0"]) }, g(C(a).menu.color), 3), E(K, {
|
|
2147
2142
|
"swatch-only": "",
|
|
2148
2143
|
"model-value": t.color || e.block.linkColor || e.block.color || "",
|
|
2149
|
-
"onUpdate:modelValue": (e) =>
|
|
2144
|
+
"onUpdate:modelValue": (e) => m(t.id, "color", e)
|
|
2150
2145
|
}, null, 8, ["model-value", "onUpdate:modelValue"])])
|
|
2151
2146
|
]))), 128)), y("button", {
|
|
2152
|
-
class:
|
|
2147
|
+
class: T(C(nt)),
|
|
2153
2148
|
onClick: d
|
|
2154
|
-
}, [E(
|
|
2149
|
+
}, [E(C(V), {
|
|
2155
2150
|
size: 14,
|
|
2156
2151
|
"stroke-width": 2
|
|
2157
|
-
}),
|
|
2152
|
+
}), p(" " + g(C(a).menu.addItem), 1)], 2)])]),
|
|
2158
2153
|
_: 1
|
|
2159
2154
|
}, 8, ["label"]),
|
|
2160
|
-
E($, { label:
|
|
2161
|
-
default:
|
|
2162
|
-
class:
|
|
2163
|
-
value:
|
|
2164
|
-
onChange: n[0] ||= (e) =>
|
|
2165
|
-
}, [y("option", Li,
|
|
2155
|
+
E($, { label: C(a).menu.fontFamily }, {
|
|
2156
|
+
default: u(() => [y("select", {
|
|
2157
|
+
class: T(C(G)),
|
|
2158
|
+
value: C(ct)(e.block.fontFamily),
|
|
2159
|
+
onChange: n[0] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
2160
|
+
}, [y("option", Li, g(C(a).title.inheritFont), 1), (o(!0), f(w, null, i(e.fontFamilies, (e) => (o(), f("option", {
|
|
2166
2161
|
key: e.value,
|
|
2167
2162
|
value: e.value
|
|
2168
|
-
},
|
|
2163
|
+
}, g(e.label), 9, Ri))), 128))], 42, Ii)]),
|
|
2169
2164
|
_: 1
|
|
2170
2165
|
}, 8, ["label"]),
|
|
2171
|
-
E($, { label:
|
|
2172
|
-
default:
|
|
2166
|
+
E($, { label: C(a).menu.fontSize }, {
|
|
2167
|
+
default: u(() => [E(X, {
|
|
2173
2168
|
"model-value": e.block.fontSize,
|
|
2174
2169
|
min: 8,
|
|
2175
2170
|
max: 48,
|
|
2176
2171
|
suffix: "px",
|
|
2177
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
2172
|
+
"onUpdate:modelValue": n[1] ||= (e) => l("fontSize", e)
|
|
2178
2173
|
}, null, 8, ["model-value"])]),
|
|
2179
2174
|
_: 1
|
|
2180
2175
|
}, 8, ["label"]),
|
|
2181
|
-
E($, { label:
|
|
2182
|
-
default:
|
|
2176
|
+
E($, { label: C(a).menu.color }, {
|
|
2177
|
+
default: u(() => [E(K, {
|
|
2183
2178
|
"model-value": e.block.color ?? "",
|
|
2184
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
2179
|
+
"onUpdate:modelValue": n[2] ||= (e) => l("color", e || void 0)
|
|
2185
2180
|
}, null, 8, ["model-value"])]),
|
|
2186
2181
|
_: 1
|
|
2187
2182
|
}, 8, ["label"]),
|
|
2188
|
-
E($, { label:
|
|
2189
|
-
default:
|
|
2183
|
+
E($, { label: C(a).menu.linkColor }, {
|
|
2184
|
+
default: u(() => [E(K, {
|
|
2190
2185
|
"model-value": e.block.linkColor || e.block.color || "",
|
|
2191
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
2186
|
+
"onUpdate:modelValue": n[3] ||= (e) => l("linkColor", e || void 0)
|
|
2192
2187
|
}, null, 8, ["model-value"])]),
|
|
2193
2188
|
_: 1
|
|
2194
2189
|
}, 8, ["label"]),
|
|
2195
|
-
E($, { label:
|
|
2196
|
-
default:
|
|
2197
|
-
options:
|
|
2190
|
+
E($, { label: C(a).menu.textAlign }, {
|
|
2191
|
+
default: u(() => [E(Y, {
|
|
2192
|
+
options: c.value,
|
|
2198
2193
|
"model-value": e.block.textAlign,
|
|
2199
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
2194
|
+
"onUpdate:modelValue": n[4] ||= (e) => l("textAlign", e)
|
|
2200
2195
|
}, null, 8, ["options", "model-value"])]),
|
|
2201
2196
|
_: 1
|
|
2202
2197
|
}, 8, ["label"]),
|
|
2203
|
-
E($, { label:
|
|
2204
|
-
default:
|
|
2198
|
+
E($, { label: C(a).menu.separator }, {
|
|
2199
|
+
default: u(() => [y("input", {
|
|
2205
2200
|
type: "text",
|
|
2206
|
-
class:
|
|
2201
|
+
class: T(C(G)),
|
|
2207
2202
|
value: e.block.separator,
|
|
2208
|
-
onInput: n[5] ||= (e) =>
|
|
2203
|
+
onInput: n[5] ||= (e) => l("separator", e.target.value)
|
|
2209
2204
|
}, null, 42, zi)]),
|
|
2210
2205
|
_: 1
|
|
2211
2206
|
}, 8, ["label"]),
|
|
2212
|
-
E($, { label:
|
|
2213
|
-
default:
|
|
2207
|
+
E($, { label: C(a).menu.separatorColor }, {
|
|
2208
|
+
default: u(() => [E(K, {
|
|
2214
2209
|
"model-value": e.block.separatorColor,
|
|
2215
|
-
"onUpdate:modelValue": n[6] ||= (e) =>
|
|
2210
|
+
"onUpdate:modelValue": n[6] ||= (e) => l("separatorColor", e)
|
|
2216
2211
|
}, null, 8, ["model-value"])]),
|
|
2217
2212
|
_: 1
|
|
2218
2213
|
}, 8, ["label"]),
|
|
2219
|
-
E($, { label:
|
|
2220
|
-
default:
|
|
2214
|
+
E($, { label: C(a).menu.spacing }, {
|
|
2215
|
+
default: u(() => [E(X, {
|
|
2221
2216
|
"model-value": e.block.spacing,
|
|
2222
2217
|
min: 0,
|
|
2223
2218
|
max: 50,
|
|
2224
2219
|
suffix: "px",
|
|
2225
|
-
"onUpdate:modelValue": n[7] ||= (e) =>
|
|
2220
|
+
"onUpdate:modelValue": n[7] ||= (e) => l("spacing", e)
|
|
2226
2221
|
}, null, 8, ["model-value"])]),
|
|
2227
2222
|
_: 1
|
|
2228
2223
|
}, 8, ["label"])
|
|
@@ -2231,26 +2226,25 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2231
2226
|
}), Vi = {
|
|
2232
2227
|
class: "tpl:mb-3.5",
|
|
2233
2228
|
"data-testid": "paragraph-spacing"
|
|
2234
|
-
}, Hi = { class: "tpl:flex tpl:items-stretch" }, Ui = ["value"], Wi = /* @__PURE__ */
|
|
2229
|
+
}, Hi = { class: "tpl:flex tpl:items-stretch" }, Ui = ["value"], Wi = /* @__PURE__ */ t({
|
|
2235
2230
|
__name: "ParagraphToolbar",
|
|
2236
2231
|
props: { block: {} },
|
|
2237
2232
|
emits: ["update"],
|
|
2238
2233
|
setup(e, { emit: t }) {
|
|
2239
2234
|
let n = t, { t: r } = B();
|
|
2240
|
-
return (t, i) => (o(),
|
|
2235
|
+
return (t, i) => (o(), f("div", Vi, [y("label", { class: T(C(H)) }, g(C(r).paragraph.paragraphSpacing), 3), y("div", Hi, [y("input", {
|
|
2241
2236
|
type: "number",
|
|
2242
|
-
class:
|
|
2243
|
-
value: e.block.paragraphSpacing ??
|
|
2237
|
+
class: T(C(W)),
|
|
2238
|
+
value: e.block.paragraphSpacing ?? C(te).paragraphGap,
|
|
2244
2239
|
min: "0",
|
|
2245
2240
|
max: "64",
|
|
2246
2241
|
onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
2247
|
-
}, null, 42, Ui), y("span", { class:
|
|
2242
|
+
}, null, 42, Ui), y("span", { class: T(C(U)) }, "px", 2)])]));
|
|
2248
2243
|
}
|
|
2249
2244
|
});
|
|
2250
|
-
|
|
2251
|
-
//#region src/utils/rebalanceColumnChildren.ts
|
|
2245
|
+
// src/utils/rebalanceColumnChildren.ts
|
|
2252
2246
|
function Gi(e, t) {
|
|
2253
|
-
let n =
|
|
2247
|
+
let n = O(t);
|
|
2254
2248
|
if (e.length === n) return e;
|
|
2255
2249
|
if (e.length < n) {
|
|
2256
2250
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2259,8 +2253,7 @@ function Gi(e, t) {
|
|
|
2259
2253
|
let r = e.slice(0, n), i = e.slice(n).flat(), a = [...r[n - 1], ...i];
|
|
2260
2254
|
return [...r.slice(0, n - 1), a];
|
|
2261
2255
|
}
|
|
2262
|
-
|
|
2263
|
-
//#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2256
|
+
// src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2264
2257
|
var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
2265
2258
|
key: 0,
|
|
2266
2259
|
class: "tpl:mb-3.5"
|
|
@@ -2273,12 +2266,12 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2273
2266
|
}, Qi = {
|
|
2274
2267
|
key: 1,
|
|
2275
2268
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
2276
|
-
}, $i = /* @__PURE__ */
|
|
2269
|
+
}, $i = /* @__PURE__ */ t({
|
|
2277
2270
|
__name: "SectionToolbar",
|
|
2278
2271
|
props: { block: {} },
|
|
2279
2272
|
emits: ["update"],
|
|
2280
2273
|
setup(e, { emit: t }) {
|
|
2281
|
-
let
|
|
2274
|
+
let r = e, a = t, { t: s } = B(), c = n(Se, void 0), l = n(Te, void 0), u = c !== void 0 && re(c), d = x(() => l !== !1 || !!r.block.wrapper), p = x(() => u && !r.block.wrapper), m = x(() => u && d.value), h = x(() => k(r.block)?.applied === !0), b = x(() => [
|
|
2282
2275
|
{
|
|
2283
2276
|
value: "1",
|
|
2284
2277
|
label: s.section.column1
|
|
@@ -2300,20 +2293,20 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2300
2293
|
label: s.section.ratio21
|
|
2301
2294
|
}
|
|
2302
2295
|
]);
|
|
2303
|
-
function
|
|
2304
|
-
let t = e.target.value,
|
|
2296
|
+
function S(e) {
|
|
2297
|
+
let t = e.target.value, n = Gi(r.block.children, t);
|
|
2305
2298
|
a("update", {
|
|
2306
2299
|
columns: t,
|
|
2307
|
-
children:
|
|
2300
|
+
children: n
|
|
2308
2301
|
});
|
|
2309
2302
|
}
|
|
2310
2303
|
function D(e) {
|
|
2311
2304
|
a("update", { stackOnMobile: e });
|
|
2312
2305
|
}
|
|
2313
|
-
function
|
|
2306
|
+
function O(e) {
|
|
2314
2307
|
a("update", { borderRadius: e });
|
|
2315
2308
|
}
|
|
2316
|
-
function
|
|
2309
|
+
function A(e) {
|
|
2317
2310
|
a("update", { wrapper: e ? { padding: {
|
|
2318
2311
|
top: 20,
|
|
2319
2312
|
right: 20,
|
|
@@ -2321,92 +2314,92 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2321
2314
|
left: 20
|
|
2322
2315
|
} } : void 0 });
|
|
2323
2316
|
}
|
|
2324
|
-
function
|
|
2317
|
+
function j(e) {
|
|
2325
2318
|
a("update", { wrapper: {
|
|
2326
|
-
...
|
|
2319
|
+
...r.block.wrapper,
|
|
2327
2320
|
...e
|
|
2328
2321
|
} });
|
|
2329
2322
|
}
|
|
2330
|
-
function
|
|
2331
|
-
|
|
2323
|
+
function M(e) {
|
|
2324
|
+
j({ padding: e });
|
|
2332
2325
|
}
|
|
2333
2326
|
function N(e) {
|
|
2334
|
-
|
|
2327
|
+
j({ borderRadius: e });
|
|
2335
2328
|
}
|
|
2336
|
-
return (t, n) => (o(),
|
|
2337
|
-
y("div", Ki, [y("label", { class:
|
|
2338
|
-
class:
|
|
2329
|
+
return (t, n) => (o(), f(w, null, [
|
|
2330
|
+
y("div", Ki, [y("label", { class: T(C(H)) }, g(C(s).section.columns), 3), y("select", {
|
|
2331
|
+
class: T(C(G)),
|
|
2339
2332
|
value: e.block.columns,
|
|
2340
|
-
onChange:
|
|
2341
|
-
}, [(o(!0),
|
|
2333
|
+
onChange: S
|
|
2334
|
+
}, [(o(!0), f(w, null, i(b.value, (e) => (o(), f("option", {
|
|
2342
2335
|
key: e.value,
|
|
2343
2336
|
value: e.value
|
|
2344
|
-
},
|
|
2345
|
-
e.block.columns === "1" ?
|
|
2337
|
+
}, g(e.label), 9, Ji))), 128))], 42, qi)]),
|
|
2338
|
+
e.block.columns === "1" ? _("", !0) : (o(), f("div", Yi, [E(q, {
|
|
2346
2339
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2347
2340
|
"model-value": e.block.stackOnMobile !== !1,
|
|
2348
|
-
label:
|
|
2341
|
+
label: C(s).section.stackOnMobile,
|
|
2349
2342
|
"onUpdate:modelValue": n[0] ||= (e) => D(e)
|
|
2350
2343
|
}, null, 8, ["model-value", "label"])])),
|
|
2351
2344
|
E(Dt, {
|
|
2352
2345
|
"model-value": e.block.borderRadius,
|
|
2353
|
-
label:
|
|
2346
|
+
label: C(s).section.borderRadius,
|
|
2354
2347
|
max: 50,
|
|
2355
2348
|
"testid-prefix": "section",
|
|
2356
|
-
"onUpdate:modelValue":
|
|
2349
|
+
"onUpdate:modelValue": O
|
|
2357
2350
|
}, null, 8, ["model-value", "label"]),
|
|
2358
|
-
|
|
2351
|
+
h.value ? _("", !0) : (o(), v(xt, {
|
|
2359
2352
|
key: 1,
|
|
2360
2353
|
"model-value": e.block.border,
|
|
2361
2354
|
"testid-prefix": "section",
|
|
2362
2355
|
"onUpdate:modelValue": n[1] ||= (e) => a("update", { border: e })
|
|
2363
2356
|
}, null, 8, ["model-value"])),
|
|
2364
|
-
d.value ? (o(),
|
|
2357
|
+
d.value ? (o(), f("div", Xi, [
|
|
2365
2358
|
E(q, {
|
|
2366
2359
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2367
2360
|
"model-value": !!e.block.wrapper,
|
|
2368
|
-
label:
|
|
2369
|
-
disabled:
|
|
2370
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
2361
|
+
label: C(s).section.wrapperEnable,
|
|
2362
|
+
disabled: p.value,
|
|
2363
|
+
"onUpdate:modelValue": n[2] ||= (e) => A(e)
|
|
2371
2364
|
}, null, 8, [
|
|
2372
2365
|
"model-value",
|
|
2373
2366
|
"label",
|
|
2374
2367
|
"disabled"
|
|
2375
2368
|
]),
|
|
2376
|
-
m.value ? (o(),
|
|
2377
|
-
e.block.wrapper ? (o(),
|
|
2378
|
-
y("div", null, [y("label", { class:
|
|
2369
|
+
m.value ? (o(), f("p", Zi, g(C(s).section.wrapperLayoutConflict), 1)) : _("", !0),
|
|
2370
|
+
e.block.wrapper ? (o(), f("div", Qi, [
|
|
2371
|
+
y("div", null, [y("label", { class: T(C(H)) }, g(C(s).blockSettings.color), 3), E(K, {
|
|
2379
2372
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
2380
2373
|
"allow-transparent": "",
|
|
2381
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
2374
|
+
"onUpdate:modelValue": n[3] ||= (e) => j({ backgroundColor: e })
|
|
2382
2375
|
}, null, 8, ["model-value"])]),
|
|
2383
2376
|
E(kn, {
|
|
2384
2377
|
"model-value": e.block.wrapper.backgroundImage,
|
|
2385
2378
|
"testid-prefix": "section-wrapper",
|
|
2386
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
2379
|
+
"onUpdate:modelValue": n[4] ||= (e) => j({ backgroundImage: e })
|
|
2387
2380
|
}, null, 8, ["model-value"]),
|
|
2388
2381
|
E(vn, {
|
|
2389
|
-
label:
|
|
2382
|
+
label: C(s).blockSettings.padding,
|
|
2390
2383
|
"model-value": e.block.wrapper.padding ?? {
|
|
2391
2384
|
top: 0,
|
|
2392
2385
|
right: 0,
|
|
2393
2386
|
bottom: 0,
|
|
2394
2387
|
left: 0
|
|
2395
2388
|
},
|
|
2396
|
-
"onUpdate:modelValue":
|
|
2389
|
+
"onUpdate:modelValue": M
|
|
2397
2390
|
}, null, 8, ["label", "model-value"]),
|
|
2398
2391
|
E(Dt, {
|
|
2399
2392
|
"model-value": e.block.wrapper.borderRadius,
|
|
2400
|
-
label:
|
|
2393
|
+
label: C(s).section.borderRadius,
|
|
2401
2394
|
max: 50,
|
|
2402
2395
|
"testid-prefix": "section-wrapper",
|
|
2403
2396
|
"onUpdate:modelValue": N
|
|
2404
2397
|
}, null, 8, ["model-value", "label"])
|
|
2405
|
-
])) :
|
|
2406
|
-
])) :
|
|
2398
|
+
])) : _("", !0)
|
|
2399
|
+
])) : _("", !0)
|
|
2407
2400
|
], 64));
|
|
2408
2401
|
}
|
|
2409
|
-
}), ea = { class: "tpl:mb-3.5" }, ta = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, na = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ra = ["value", "onChange"], ia = ["value"], aa = ["title", "onClick"], oa = { class: "tpl:mb-3.5" }, sa = ["value"], ca = { value: "solid" }, la = { value: "outlined" }, ua = { value: "rounded" }, da = { value: "square" }, fa = { value: "circle" }, pa = { value: "plain" }, ma = { class: "tpl:mb-3.5" }, ha = ["value"], ga = { value: "brand" }, _a = { value: "dark" }, va = { value: "light" }, ya = { class: "tpl:mb-3.5" }, ba = { class: "tpl:mb-3.5" }, xa = { class: "tpl:flex tpl:items-stretch" }, Sa = ["value"], Ca = { class: "tpl:mb-3.5" }, wa = /* @__PURE__ */
|
|
2402
|
+
}), ea = { class: "tpl:mb-3.5" }, ta = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, na = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ra = ["value", "onChange"], ia = ["value"], aa = ["title", "onClick"], oa = { class: "tpl:mb-3.5" }, sa = ["value"], ca = { value: "solid" }, la = { value: "outlined" }, ua = { value: "rounded" }, da = { value: "square" }, fa = { value: "circle" }, pa = { value: "plain" }, ma = { class: "tpl:mb-3.5" }, ha = ["value"], ga = { value: "brand" }, _a = { value: "dark" }, va = { value: "light" }, ya = { class: "tpl:mb-3.5" }, ba = { class: "tpl:mb-3.5" }, xa = { class: "tpl:flex tpl:items-stretch" }, Sa = ["value"], Ca = { class: "tpl:mb-3.5" }, wa = /* @__PURE__ */ t({
|
|
2410
2403
|
__name: "SocialToolbar",
|
|
2411
2404
|
props: { block: {} },
|
|
2412
2405
|
emits: ["update"],
|
|
@@ -2433,105 +2426,105 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2433
2426
|
function u(e) {
|
|
2434
2427
|
r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
2435
2428
|
}
|
|
2436
|
-
return (t, n) => (o(),
|
|
2437
|
-
y("div", ea, [y("label", { class:
|
|
2429
|
+
return (t, n) => (o(), f(w, null, [
|
|
2430
|
+
y("div", ea, [y("label", { class: T(C(H)) }, g(C(a).social.icons), 3), y("div", ta, [(o(!0), f(w, null, i(e.block.icons, (e) => (o(), f("div", {
|
|
2438
2431
|
key: e.id,
|
|
2439
2432
|
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"
|
|
2440
2433
|
}, [y("div", na, [y("select", {
|
|
2441
2434
|
"data-testid": "social-platform-select",
|
|
2442
|
-
class:
|
|
2435
|
+
class: T([C(G), "tpl:flex-1"]),
|
|
2443
2436
|
value: e.platform,
|
|
2444
2437
|
onChange: (t) => l(e.id, "platform", t.target.value)
|
|
2445
|
-
}, [(o(!0),
|
|
2438
|
+
}, [(o(!0), f(w, null, i(C(R), (e) => (o(), f("option", {
|
|
2446
2439
|
key: e,
|
|
2447
2440
|
value: e
|
|
2448
|
-
},
|
|
2449
|
-
class:
|
|
2450
|
-
title:
|
|
2441
|
+
}, g(C(a).social.platforms[e]), 9, ia))), 128))], 42, ra), y("button", {
|
|
2442
|
+
class: T(C(tt)),
|
|
2443
|
+
title: C(a).social.removeIcon,
|
|
2451
2444
|
onClick: (t) => u(e.id)
|
|
2452
|
-
}, [E(
|
|
2445
|
+
}, [E(C(Xe), {
|
|
2453
2446
|
size: 14,
|
|
2454
2447
|
"stroke-width": 2
|
|
2455
2448
|
})], 10, aa)]), E(J, {
|
|
2456
2449
|
"model-value": e.url,
|
|
2457
2450
|
type: "url",
|
|
2458
|
-
placeholder:
|
|
2451
|
+
placeholder: C(a).social.urlPlaceholder,
|
|
2459
2452
|
"onUpdate:modelValue": (t) => l(e.id, "url", t)
|
|
2460
2453
|
}, null, 8, [
|
|
2461
2454
|
"model-value",
|
|
2462
2455
|
"placeholder",
|
|
2463
2456
|
"onUpdate:modelValue"
|
|
2464
2457
|
])]))), 128)), y("button", {
|
|
2465
|
-
class:
|
|
2458
|
+
class: T(C(nt)),
|
|
2466
2459
|
onClick: c
|
|
2467
|
-
}, [E(
|
|
2460
|
+
}, [E(C(V), {
|
|
2468
2461
|
size: 14,
|
|
2469
2462
|
"stroke-width": 2
|
|
2470
|
-
}),
|
|
2471
|
-
y("div", oa, [y("label", { class:
|
|
2472
|
-
class:
|
|
2463
|
+
}), p(" " + g(C(a).social.addIcon), 1)], 2)])]),
|
|
2464
|
+
y("div", oa, [y("label", { class: T(C(H)) }, g(C(a).social.style), 3), y("select", {
|
|
2465
|
+
class: T(C(G)),
|
|
2473
2466
|
value: e.block.iconStyle,
|
|
2474
2467
|
onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
|
|
2475
2468
|
}, [
|
|
2476
|
-
y("option", ca,
|
|
2477
|
-
y("option", la,
|
|
2478
|
-
y("option", ua,
|
|
2479
|
-
y("option", da,
|
|
2480
|
-
y("option", fa,
|
|
2481
|
-
y("option", pa,
|
|
2469
|
+
y("option", ca, g(C(a).social.styleSolid), 1),
|
|
2470
|
+
y("option", la, g(C(a).social.styleOutlined), 1),
|
|
2471
|
+
y("option", ua, g(C(a).social.styleRounded), 1),
|
|
2472
|
+
y("option", da, g(C(a).social.styleSquare), 1),
|
|
2473
|
+
y("option", fa, g(C(a).social.styleCircle), 1),
|
|
2474
|
+
y("option", pa, g(C(a).social.stylePlain), 1)
|
|
2482
2475
|
], 42, sa)]),
|
|
2483
|
-
y("div", ma, [y("label", { class:
|
|
2476
|
+
y("div", ma, [y("label", { class: T(C(H)) }, g(C(a).social.color), 3), y("select", {
|
|
2484
2477
|
"data-testid": "social-tone-select",
|
|
2485
|
-
class:
|
|
2478
|
+
class: T(C(G)),
|
|
2486
2479
|
value: e.block.iconTone ?? "brand",
|
|
2487
2480
|
onChange: n[1] ||= (e) => s("iconTone", e.target.value)
|
|
2488
2481
|
}, [
|
|
2489
|
-
y("option", ga,
|
|
2490
|
-
y("option", _a,
|
|
2491
|
-
y("option", va,
|
|
2482
|
+
y("option", ga, g(C(a).social.colorBrand), 1),
|
|
2483
|
+
y("option", _a, g(C(a).social.colorDark), 1),
|
|
2484
|
+
y("option", va, g(C(a).social.colorLight), 1)
|
|
2492
2485
|
], 42, ha)]),
|
|
2493
|
-
y("div", ya, [y("label", { class:
|
|
2486
|
+
y("div", ya, [y("label", { class: T(C(H)) }, g(C(a).social.size), 3), E(Y, {
|
|
2494
2487
|
options: [
|
|
2495
2488
|
{
|
|
2496
2489
|
value: "small",
|
|
2497
|
-
label:
|
|
2490
|
+
label: C(a).social.sizeSmall
|
|
2498
2491
|
},
|
|
2499
2492
|
{
|
|
2500
2493
|
value: "medium",
|
|
2501
|
-
label:
|
|
2494
|
+
label: C(a).social.sizeMedium
|
|
2502
2495
|
},
|
|
2503
2496
|
{
|
|
2504
2497
|
value: "large",
|
|
2505
|
-
label:
|
|
2498
|
+
label: C(a).social.sizeLarge
|
|
2506
2499
|
}
|
|
2507
2500
|
],
|
|
2508
2501
|
"model-value": e.block.iconSize,
|
|
2509
2502
|
"onUpdate:modelValue": n[2] ||= (e) => s("iconSize", e)
|
|
2510
2503
|
}, null, 8, ["options", "model-value"])]),
|
|
2511
|
-
y("div", ba, [y("label", { class:
|
|
2504
|
+
y("div", ba, [y("label", { class: T(C(H)) }, g(C(a).social.spacing), 3), y("div", xa, [y("input", {
|
|
2512
2505
|
type: "number",
|
|
2513
|
-
class:
|
|
2506
|
+
class: T(C(W)),
|
|
2514
2507
|
value: e.block.spacing,
|
|
2515
2508
|
min: "0",
|
|
2516
2509
|
max: "50",
|
|
2517
2510
|
onInput: n[3] ||= (e) => s("spacing", Number(e.target.value))
|
|
2518
|
-
}, null, 42, Sa), y("span", { class:
|
|
2519
|
-
y("div", Ca, [y("label", { class:
|
|
2511
|
+
}, null, 42, Sa), y("span", { class: T(C(U)) }, "px", 2)])]),
|
|
2512
|
+
y("div", Ca, [y("label", { class: T(C(H)) }, g(C(a).social.align), 3), E(Y, {
|
|
2520
2513
|
options: [
|
|
2521
2514
|
{
|
|
2522
2515
|
value: "left",
|
|
2523
|
-
label:
|
|
2524
|
-
icon:
|
|
2516
|
+
label: C(a).title.alignLeft,
|
|
2517
|
+
icon: C(Je)
|
|
2525
2518
|
},
|
|
2526
2519
|
{
|
|
2527
2520
|
value: "center",
|
|
2528
|
-
label:
|
|
2529
|
-
icon:
|
|
2521
|
+
label: C(a).title.alignCenter,
|
|
2522
|
+
icon: C(Ze)
|
|
2530
2523
|
},
|
|
2531
2524
|
{
|
|
2532
2525
|
value: "right",
|
|
2533
|
-
label:
|
|
2534
|
-
icon:
|
|
2526
|
+
label: C(a).title.alignRight,
|
|
2527
|
+
icon: C(Re)
|
|
2535
2528
|
}
|
|
2536
2529
|
],
|
|
2537
2530
|
"model-value": e.block.align,
|
|
@@ -2539,22 +2532,22 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2539
2532
|
}, null, 8, ["options", "model-value"])])
|
|
2540
2533
|
], 64));
|
|
2541
2534
|
}
|
|
2542
|
-
}), Ta = { class: "tpl:mb-3.5" }, Ea = { class: "tpl:flex tpl:items-stretch" }, Da = ["value"], Oa = ["value"], ka = /* @__PURE__ */
|
|
2535
|
+
}), Ta = { class: "tpl:mb-3.5" }, Ea = { class: "tpl:flex tpl:items-stretch" }, Da = ["value"], Oa = ["value"], ka = /* @__PURE__ */ t({
|
|
2543
2536
|
__name: "SpacerToolbar",
|
|
2544
2537
|
props: { block: {} },
|
|
2545
2538
|
emits: ["update"],
|
|
2546
2539
|
setup(e, { emit: t }) {
|
|
2547
2540
|
let n = t, { t: r } = B();
|
|
2548
|
-
return (t, i) => (o(),
|
|
2549
|
-
y("label", { class:
|
|
2541
|
+
return (t, i) => (o(), f("div", Ta, [
|
|
2542
|
+
y("label", { class: T(C(H)) }, g(C(r).spacer.height), 3),
|
|
2550
2543
|
y("div", Ea, [y("input", {
|
|
2551
2544
|
type: "number",
|
|
2552
|
-
class:
|
|
2545
|
+
class: T(C(W)),
|
|
2553
2546
|
value: e.block.height,
|
|
2554
2547
|
min: "10",
|
|
2555
2548
|
max: "100",
|
|
2556
2549
|
onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2557
|
-
}, null, 42, Da), y("span", { class:
|
|
2550
|
+
}, null, 42, Da), y("span", { class: T(C(U)) }, "px", 2)]),
|
|
2558
2551
|
y("input", {
|
|
2559
2552
|
type: "range",
|
|
2560
2553
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
@@ -2568,7 +2561,7 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2568
2561
|
}), Aa = { class: "tpl:mb-3.5" }, ja = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Ma = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Na = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Pa = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Fa = ["disabled"], Ia = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, La = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Ra = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, za = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ba = ["disabled"], Va = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ha = { class: "tpl:mb-3.5" }, Ua = {
|
|
2569
2562
|
key: 0,
|
|
2570
2563
|
class: "tpl:mb-3.5"
|
|
2571
|
-
}, Wa = { class: "tpl:mb-3.5" }, Ga = { class: "tpl:mb-3.5" }, Ka = { class: "tpl:flex tpl:items-stretch" }, qa = ["value"], Ja = { class: "tpl:mb-3.5" }, Ya = { class: "tpl:flex tpl:items-stretch" }, Xa = ["value"], Za = { class: "tpl:mb-3.5" }, Qa = ["value"], $a = { value: "" }, eo = ["value"], to = { class: "tpl:mb-3.5" }, no = { class: "tpl:flex tpl:items-stretch" }, ro = ["value"], io = { class: "tpl:mb-3.5" }, ao = { class: "tpl:mb-3.5" }, oo = /* @__PURE__ */
|
|
2564
|
+
}, Wa = { class: "tpl:mb-3.5" }, Ga = { class: "tpl:mb-3.5" }, Ka = { class: "tpl:flex tpl:items-stretch" }, qa = ["value"], Ja = { class: "tpl:mb-3.5" }, Ya = { class: "tpl:flex tpl:items-stretch" }, Xa = ["value"], Za = { class: "tpl:mb-3.5" }, Qa = ["value"], $a = { value: "" }, eo = ["value"], to = { class: "tpl:mb-3.5" }, no = { class: "tpl:flex tpl:items-stretch" }, ro = ["value"], io = { class: "tpl:mb-3.5" }, ao = { class: "tpl:mb-3.5" }, oo = /* @__PURE__ */ t({
|
|
2572
2565
|
__name: "TableToolbar",
|
|
2573
2566
|
props: {
|
|
2574
2567
|
block: {},
|
|
@@ -2576,7 +2569,7 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2576
2569
|
},
|
|
2577
2570
|
emits: ["update"],
|
|
2578
2571
|
setup(e, { emit: t }) {
|
|
2579
|
-
let n = e, r = t, { t: a } = B(), s =
|
|
2572
|
+
let n = e, r = t, { t: a } = B(), s = x(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
2580
2573
|
function c(e, t) {
|
|
2581
2574
|
r("update", { [e]: t });
|
|
2582
2575
|
}
|
|
@@ -2603,45 +2596,45 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2603
2596
|
}));
|
|
2604
2597
|
r("update", { rows: e });
|
|
2605
2598
|
}
|
|
2606
|
-
function
|
|
2599
|
+
function p(e) {
|
|
2607
2600
|
let t = n.block.rows.map((t) => ({
|
|
2608
2601
|
...t,
|
|
2609
2602
|
cells: t.cells.filter((t, n) => n !== e)
|
|
2610
2603
|
}));
|
|
2611
2604
|
r("update", { rows: t });
|
|
2612
2605
|
}
|
|
2613
|
-
return (t, n) => (o(),
|
|
2614
|
-
y("div", Aa, [y("label", { class:
|
|
2606
|
+
return (t, n) => (o(), f(w, null, [
|
|
2607
|
+
y("div", Aa, [y("label", { class: T(C(H)) }, g(C(a).table.dimensions), 3), y("div", ja, [y("div", Ma, [y("span", Na, g(C(a).table.rows), 1), y("div", Pa, [
|
|
2615
2608
|
y("button", {
|
|
2616
2609
|
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",
|
|
2617
2610
|
disabled: e.block.rows.length <= 1,
|
|
2618
2611
|
onClick: n[0] ||= (t) => u(e.block.rows[e.block.rows.length - 1].id)
|
|
2619
|
-
}, [E(
|
|
2612
|
+
}, [E(C(Ve), {
|
|
2620
2613
|
size: 12,
|
|
2621
2614
|
"stroke-width": 2
|
|
2622
2615
|
})], 8, Fa),
|
|
2623
|
-
y("span", Ia,
|
|
2616
|
+
y("span", Ia, g(e.block.rows.length), 1),
|
|
2624
2617
|
y("button", {
|
|
2625
2618
|
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)]",
|
|
2626
2619
|
onClick: l
|
|
2627
|
-
}, [E(
|
|
2620
|
+
}, [E(C(V), {
|
|
2628
2621
|
size: 12,
|
|
2629
2622
|
"stroke-width": 2
|
|
2630
2623
|
})])
|
|
2631
|
-
])]), y("div", La, [y("span", Ra,
|
|
2624
|
+
])]), y("div", La, [y("span", Ra, g(C(a).table.columns), 1), y("div", za, [
|
|
2632
2625
|
y("button", {
|
|
2633
2626
|
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",
|
|
2634
2627
|
disabled: s.value <= 1,
|
|
2635
|
-
onClick: n[1] ||= (e) =>
|
|
2636
|
-
}, [E(
|
|
2628
|
+
onClick: n[1] ||= (e) => p(s.value - 1)
|
|
2629
|
+
}, [E(C(Ve), {
|
|
2637
2630
|
size: 12,
|
|
2638
2631
|
"stroke-width": 2
|
|
2639
2632
|
})], 8, Ba),
|
|
2640
|
-
y("span", Va,
|
|
2633
|
+
y("span", Va, g(s.value), 1),
|
|
2641
2634
|
y("button", {
|
|
2642
2635
|
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)]",
|
|
2643
2636
|
onClick: d
|
|
2644
|
-
}, [E(
|
|
2637
|
+
}, [E(C(V), {
|
|
2645
2638
|
size: 12,
|
|
2646
2639
|
"stroke-width": 2
|
|
2647
2640
|
})])
|
|
@@ -2649,75 +2642,75 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2649
2642
|
y("div", Ha, [E(q, {
|
|
2650
2643
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
2651
2644
|
"model-value": e.block.hasHeaderRow,
|
|
2652
|
-
label:
|
|
2645
|
+
label: C(a).table.hasHeaderRow,
|
|
2653
2646
|
"onUpdate:modelValue": n[2] ||= (e) => c("hasHeaderRow", e)
|
|
2654
2647
|
}, null, 8, ["model-value", "label"])]),
|
|
2655
|
-
e.block.hasHeaderRow ? (o(),
|
|
2648
|
+
e.block.hasHeaderRow ? (o(), f("div", Ua, [y("label", { class: T(C(H)) }, g(C(a).table.headerBackgroundColor), 3), E(K, {
|
|
2656
2649
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
2657
|
-
"seed-color":
|
|
2658
|
-
placeholder:
|
|
2650
|
+
"seed-color": C(rt),
|
|
2651
|
+
placeholder: C(a).table.noHeaderBg,
|
|
2659
2652
|
"onUpdate:modelValue": n[3] ||= (e) => c("headerBackgroundColor", e || null)
|
|
2660
2653
|
}, null, 8, [
|
|
2661
2654
|
"model-value",
|
|
2662
2655
|
"seed-color",
|
|
2663
2656
|
"placeholder"
|
|
2664
|
-
])])) :
|
|
2665
|
-
y("div", Wa, [y("label", { class:
|
|
2657
|
+
])])) : _("", !0),
|
|
2658
|
+
y("div", Wa, [y("label", { class: T(C(H)) }, g(C(a).table.borderColor), 3), E(K, {
|
|
2666
2659
|
"model-value": e.block.borderColor,
|
|
2667
2660
|
"onUpdate:modelValue": n[4] ||= (e) => c("borderColor", e)
|
|
2668
2661
|
}, null, 8, ["model-value"])]),
|
|
2669
|
-
y("div", Ga, [y("label", { class:
|
|
2662
|
+
y("div", Ga, [y("label", { class: T(C(H)) }, g(C(a).table.borderWidth), 3), y("div", Ka, [y("input", {
|
|
2670
2663
|
type: "number",
|
|
2671
|
-
class:
|
|
2664
|
+
class: T(C(W)),
|
|
2672
2665
|
value: e.block.borderWidth,
|
|
2673
2666
|
min: "0",
|
|
2674
2667
|
max: "10",
|
|
2675
2668
|
onInput: n[5] ||= (e) => c("borderWidth", Number(e.target.value))
|
|
2676
|
-
}, null, 42, qa), y("span", { class:
|
|
2677
|
-
y("div", Ja, [y("label", { class:
|
|
2669
|
+
}, null, 42, qa), y("span", { class: T(C(U)) }, "px", 2)])]),
|
|
2670
|
+
y("div", Ja, [y("label", { class: T(C(H)) }, g(C(a).table.cellPadding), 3), y("div", Ya, [y("input", {
|
|
2678
2671
|
type: "number",
|
|
2679
|
-
class:
|
|
2672
|
+
class: T(C(W)),
|
|
2680
2673
|
value: e.block.cellPadding,
|
|
2681
2674
|
min: "0",
|
|
2682
2675
|
max: "30",
|
|
2683
2676
|
onInput: n[6] ||= (e) => c("cellPadding", Number(e.target.value))
|
|
2684
|
-
}, null, 42, Xa), y("span", { class:
|
|
2685
|
-
y("div", Za, [y("label", { class:
|
|
2686
|
-
class:
|
|
2687
|
-
value:
|
|
2677
|
+
}, null, 42, Xa), y("span", { class: T(C(U)) }, "px", 2)])]),
|
|
2678
|
+
y("div", Za, [y("label", { class: T(C(H)) }, g(C(a).table.fontFamily), 3), y("select", {
|
|
2679
|
+
class: T(C(G)),
|
|
2680
|
+
value: C(ct)(e.block.fontFamily),
|
|
2688
2681
|
onChange: n[7] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
2689
|
-
}, [y("option", $a,
|
|
2682
|
+
}, [y("option", $a, g(C(a).title.inheritFont), 1), (o(!0), f(w, null, i(e.fontFamilies, (e) => (o(), f("option", {
|
|
2690
2683
|
key: e.value,
|
|
2691
2684
|
value: e.value
|
|
2692
|
-
},
|
|
2693
|
-
y("div", to, [y("label", { class:
|
|
2685
|
+
}, g(e.label), 9, eo))), 128))], 42, Qa)]),
|
|
2686
|
+
y("div", to, [y("label", { class: T(C(H)) }, g(C(a).table.fontSize), 3), y("div", no, [y("input", {
|
|
2694
2687
|
type: "number",
|
|
2695
|
-
class:
|
|
2688
|
+
class: T(C(W)),
|
|
2696
2689
|
value: e.block.fontSize,
|
|
2697
2690
|
min: "10",
|
|
2698
2691
|
max: "32",
|
|
2699
2692
|
onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
2700
|
-
}, null, 42, ro), y("span", { class:
|
|
2701
|
-
y("div", io, [y("label", { class:
|
|
2693
|
+
}, null, 42, ro), y("span", { class: T(C(U)) }, "px", 2)])]),
|
|
2694
|
+
y("div", io, [y("label", { class: T(C(H)) }, g(C(a).table.color), 3), E(K, {
|
|
2702
2695
|
"model-value": e.block.color ?? "",
|
|
2703
2696
|
"onUpdate:modelValue": n[9] ||= (e) => c("color", e || void 0)
|
|
2704
2697
|
}, null, 8, ["model-value"])]),
|
|
2705
|
-
y("div", ao, [y("label", { class:
|
|
2698
|
+
y("div", ao, [y("label", { class: T(C(H)) }, g(C(a).table.textAlign), 3), E(Y, {
|
|
2706
2699
|
options: [
|
|
2707
2700
|
{
|
|
2708
2701
|
value: "left",
|
|
2709
|
-
label:
|
|
2710
|
-
icon:
|
|
2702
|
+
label: C(a).title.alignLeft,
|
|
2703
|
+
icon: C(Je)
|
|
2711
2704
|
},
|
|
2712
2705
|
{
|
|
2713
2706
|
value: "center",
|
|
2714
|
-
label:
|
|
2715
|
-
icon:
|
|
2707
|
+
label: C(a).title.alignCenter,
|
|
2708
|
+
icon: C(Ze)
|
|
2716
2709
|
},
|
|
2717
2710
|
{
|
|
2718
2711
|
value: "right",
|
|
2719
|
-
label:
|
|
2720
|
-
icon:
|
|
2712
|
+
label: C(a).title.alignRight,
|
|
2713
|
+
icon: C(Re)
|
|
2721
2714
|
}
|
|
2722
2715
|
],
|
|
2723
2716
|
"model-value": e.block.textAlign,
|
|
@@ -2725,7 +2718,7 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2725
2718
|
}, null, 8, ["options", "model-value"])])
|
|
2726
2719
|
], 64));
|
|
2727
2720
|
}
|
|
2728
|
-
}), so = { class: "tpl:mb-3.5" }, co = ["value"], lo = { value: 1 }, uo = { value: 2 }, fo = { value: 3 }, po = { value: 4 }, mo = { class: "tpl:mb-3.5" }, ho = ["value"], go = { value: "" }, _o = ["value"], vo = { class: "tpl:mb-3.5" }, yo = { class: "tpl:mb-3.5" }, bo = /* @__PURE__ */
|
|
2721
|
+
}), so = { class: "tpl:mb-3.5" }, co = ["value"], lo = { value: 1 }, uo = { value: 2 }, fo = { value: 3 }, po = { value: 4 }, mo = { class: "tpl:mb-3.5" }, ho = ["value"], go = { value: "" }, _o = ["value"], vo = { class: "tpl:mb-3.5" }, yo = { class: "tpl:mb-3.5" }, bo = /* @__PURE__ */ t({
|
|
2729
2722
|
__name: "TitleToolbar",
|
|
2730
2723
|
props: {
|
|
2731
2724
|
block: {},
|
|
@@ -2737,45 +2730,45 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2737
2730
|
function a(e, t) {
|
|
2738
2731
|
n("update", { [e]: t });
|
|
2739
2732
|
}
|
|
2740
|
-
return (t, n) => (o(),
|
|
2741
|
-
y("div", so, [y("label", { class:
|
|
2742
|
-
class:
|
|
2733
|
+
return (t, n) => (o(), f(w, null, [
|
|
2734
|
+
y("div", so, [y("label", { class: T(C(H)) }, g(C(r).title.level), 3), y("select", {
|
|
2735
|
+
class: T(C(G)),
|
|
2743
2736
|
value: e.block.level,
|
|
2744
2737
|
onChange: n[0] ||= (e) => a("level", Number(e.target.value))
|
|
2745
2738
|
}, [
|
|
2746
|
-
y("option", lo,
|
|
2747
|
-
y("option", uo,
|
|
2748
|
-
y("option", fo,
|
|
2749
|
-
y("option", po,
|
|
2739
|
+
y("option", lo, g(C(r).title.heading1), 1),
|
|
2740
|
+
y("option", uo, g(C(r).title.heading2), 1),
|
|
2741
|
+
y("option", fo, g(C(r).title.heading3), 1),
|
|
2742
|
+
y("option", po, g(C(r).title.heading4), 1)
|
|
2750
2743
|
], 42, co)]),
|
|
2751
|
-
y("div", mo, [y("label", { class:
|
|
2752
|
-
class:
|
|
2753
|
-
value:
|
|
2744
|
+
y("div", mo, [y("label", { class: T(C(H)) }, g(C(r).title.fontFamily), 3), y("select", {
|
|
2745
|
+
class: T(C(G)),
|
|
2746
|
+
value: C(ct)(e.block.fontFamily),
|
|
2754
2747
|
onChange: n[1] ||= (e) => a("fontFamily", e.target.value || void 0)
|
|
2755
|
-
}, [y("option", go,
|
|
2748
|
+
}, [y("option", go, g(C(r).title.inheritFont), 1), (o(!0), f(w, null, i(e.fontFamilies, (e) => (o(), f("option", {
|
|
2756
2749
|
key: e.value,
|
|
2757
2750
|
value: e.value
|
|
2758
|
-
},
|
|
2759
|
-
y("div", vo, [y("label", { class:
|
|
2751
|
+
}, g(e.label), 9, _o))), 128))], 42, ho)]),
|
|
2752
|
+
y("div", vo, [y("label", { class: T(C(H)) }, g(C(r).title.color), 3), E(K, {
|
|
2760
2753
|
"model-value": e.block.color ?? "",
|
|
2761
2754
|
"onUpdate:modelValue": n[2] ||= (e) => a("color", e || void 0)
|
|
2762
2755
|
}, null, 8, ["model-value"])]),
|
|
2763
|
-
y("div", yo, [y("label", { class:
|
|
2756
|
+
y("div", yo, [y("label", { class: T(C(H)) }, g(C(r).title.align), 3), E(Y, {
|
|
2764
2757
|
options: [
|
|
2765
2758
|
{
|
|
2766
2759
|
value: "left",
|
|
2767
|
-
label:
|
|
2768
|
-
icon:
|
|
2760
|
+
label: C(r).title.alignLeft,
|
|
2761
|
+
icon: C(Je)
|
|
2769
2762
|
},
|
|
2770
2763
|
{
|
|
2771
2764
|
value: "center",
|
|
2772
|
-
label:
|
|
2773
|
-
icon:
|
|
2765
|
+
label: C(r).title.alignCenter,
|
|
2766
|
+
icon: C(Ze)
|
|
2774
2767
|
},
|
|
2775
2768
|
{
|
|
2776
2769
|
value: "right",
|
|
2777
|
-
label:
|
|
2778
|
-
icon:
|
|
2770
|
+
label: C(r).title.alignRight,
|
|
2771
|
+
icon: C(Re)
|
|
2779
2772
|
}
|
|
2780
2773
|
],
|
|
2781
2774
|
"model-value": e.block.textAlign,
|
|
@@ -2796,28 +2789,28 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2796
2789
|
}, No = ["value"], Po = { class: "tpl:mb-3.5" }, Fo = ["value"], Io = { value: "auto" }, Lo = { value: "custom" }, Ro = {
|
|
2797
2790
|
key: 0,
|
|
2798
2791
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2799
|
-
}, zo = ["value"], Bo = { class: "tpl:mb-3.5" }, Vo = 350, Ho = 200, Uo = /* @__PURE__ */
|
|
2792
|
+
}, zo = ["value"], Bo = { class: "tpl:mb-3.5" }, Vo = 350, Ho = 200, Uo = /* @__PURE__ */ t({
|
|
2800
2793
|
__name: "VideoToolbar",
|
|
2801
2794
|
props: { block: {} },
|
|
2802
2795
|
emits: ["update"],
|
|
2803
|
-
setup(e, { emit:
|
|
2804
|
-
let
|
|
2796
|
+
setup(e, { emit: t }) {
|
|
2797
|
+
let r = e, i = t, { t: a } = B(), s = n(Ce, null), c = n(we, ie.liquid), l = ve(), u = [
|
|
2805
2798
|
300,
|
|
2806
2799
|
400,
|
|
2807
2800
|
500
|
|
2808
|
-
],
|
|
2809
|
-
let e =
|
|
2810
|
-
return e === "full" ? "full" :
|
|
2811
|
-
}),
|
|
2801
|
+
], d = x(() => !!s), m = x(() => L(r.block.url, c)), b = x(() => {
|
|
2802
|
+
let e = r.block.width;
|
|
2803
|
+
return e === "full" ? "full" : u.includes(e) ? String(e) : "custom";
|
|
2804
|
+
}), S = x(() => typeof r.block.height == "number" ? "custom" : "auto"), D = h(!1), { start: O } = be(() => {
|
|
2812
2805
|
D.value = !1;
|
|
2813
2806
|
}, 1e3, { immediate: !1 });
|
|
2814
2807
|
function k(e, t) {
|
|
2815
|
-
|
|
2808
|
+
i("update", { [e]: t });
|
|
2816
2809
|
}
|
|
2817
2810
|
function A(e) {
|
|
2818
2811
|
if (e === "custom") {
|
|
2819
|
-
let e =
|
|
2820
|
-
(typeof e != "number" ||
|
|
2812
|
+
let e = r.block.width;
|
|
2813
|
+
(typeof e != "number" || u.includes(e)) && k("width", Vo);
|
|
2821
2814
|
} else k("width", e === "full" ? "full" : Number(e));
|
|
2822
2815
|
}
|
|
2823
2816
|
function j(e) {
|
|
@@ -2827,45 +2820,45 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2827
2820
|
function M(e) {
|
|
2828
2821
|
k("height", e === "custom" ? Ho : void 0);
|
|
2829
2822
|
}
|
|
2830
|
-
function
|
|
2823
|
+
function N(e) {
|
|
2831
2824
|
let t = Number(e);
|
|
2832
2825
|
!Number.isFinite(t) || t <= 0 || k("height", t);
|
|
2833
2826
|
}
|
|
2834
|
-
async function
|
|
2835
|
-
let e = await
|
|
2836
|
-
|
|
2827
|
+
async function P() {
|
|
2828
|
+
let e = await s?.({ accept: ["images"] });
|
|
2829
|
+
l.alive && e && (k("thumbnailUrl", e.url), D.value = !0, O());
|
|
2837
2830
|
}
|
|
2838
|
-
return (t, n) => (o(),
|
|
2831
|
+
return (t, n) => (o(), f(w, null, [
|
|
2839
2832
|
y("div", xo, [
|
|
2840
|
-
y("label", { class:
|
|
2833
|
+
y("label", { class: T(C(H)) }, g(C(a).video.videoUrl), 3),
|
|
2841
2834
|
E(J, {
|
|
2842
2835
|
"model-value": e.block.url,
|
|
2843
2836
|
type: "url",
|
|
2844
|
-
placeholder:
|
|
2837
|
+
placeholder: C(a).video.videoUrlPlaceholder,
|
|
2845
2838
|
"onUpdate:modelValue": n[0] ||= (e) => k("url", e)
|
|
2846
2839
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2847
|
-
e.block.url ? (o(),
|
|
2840
|
+
e.block.url ? (o(), v(q, {
|
|
2848
2841
|
key: 0,
|
|
2849
2842
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2850
2843
|
"model-value": e.block.openInNewTab ?? !1,
|
|
2851
|
-
label:
|
|
2844
|
+
label: C(a).video.openInNewTab,
|
|
2852
2845
|
"onUpdate:modelValue": n[1] ||= (e) => k("openInNewTab", e)
|
|
2853
|
-
}, null, 8, ["model-value", "label"])) :
|
|
2846
|
+
}, null, 8, ["model-value", "label"])) : _("", !0)
|
|
2854
2847
|
]),
|
|
2855
|
-
|
|
2848
|
+
m.value ? (o(), f("div", So, [y("label", { class: T(C(H)) }, [p(g(C(a).video.placeholderUrl) + " ", 1), y("span", Co, g(C(a).video.optional), 1)], 2), y("input", {
|
|
2856
2849
|
type: "url",
|
|
2857
|
-
class:
|
|
2850
|
+
class: T(C(G)),
|
|
2858
2851
|
value: e.block.placeholderUrl || "",
|
|
2859
|
-
placeholder:
|
|
2860
|
-
title:
|
|
2852
|
+
placeholder: C(a).video.placeholderUrlPlaceholder,
|
|
2853
|
+
title: C(a).video.placeholderUrlTooltip,
|
|
2861
2854
|
onInput: n[2] ||= (e) => k("placeholderUrl", e.target.value)
|
|
2862
|
-
}, null, 42, wo)])) :
|
|
2855
|
+
}, null, 42, wo)])) : _("", !0),
|
|
2863
2856
|
y("div", To, [
|
|
2864
|
-
y("label", { class:
|
|
2857
|
+
y("label", { class: T(C(H)) }, [p(g(C(a).video.customThumbnail) + " ", 1), y("span", Eo, g(C(a).video.optional), 1)], 2),
|
|
2865
2858
|
E(J, {
|
|
2866
2859
|
"model-value": e.block.thumbnailUrl,
|
|
2867
2860
|
type: "url",
|
|
2868
|
-
placeholder:
|
|
2861
|
+
placeholder: C(a).video.thumbnailPlaceholder,
|
|
2869
2862
|
pulse: D.value,
|
|
2870
2863
|
"onUpdate:modelValue": n[3] ||= (e) => k("thumbnailUrl", e)
|
|
2871
2864
|
}, null, 8, [
|
|
@@ -2873,7 +2866,7 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2873
2866
|
"placeholder",
|
|
2874
2867
|
"pulse"
|
|
2875
2868
|
]),
|
|
2876
|
-
|
|
2869
|
+
d.value ? (o(), f("button", {
|
|
2877
2870
|
key: 0,
|
|
2878
2871
|
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",
|
|
2879
2872
|
style: {
|
|
@@ -2881,71 +2874,71 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2881
2874
|
color: "var(--tpl-primary)",
|
|
2882
2875
|
"background-color": "var(--tpl-bg)"
|
|
2883
2876
|
},
|
|
2884
|
-
onClick:
|
|
2885
|
-
}, [E(
|
|
2877
|
+
onClick: P
|
|
2878
|
+
}, [E(C(ze), {
|
|
2886
2879
|
size: 14,
|
|
2887
2880
|
"stroke-width": 1.5
|
|
2888
|
-
}),
|
|
2881
|
+
}), p(" " + g(C(a).image.browseMedia), 1)])) : _("", !0)
|
|
2889
2882
|
]),
|
|
2890
|
-
y("div", Do, [y("label", { class:
|
|
2883
|
+
y("div", Do, [y("label", { class: T(C(H)) }, g(C(a).video.altText), 3), E(J, {
|
|
2891
2884
|
"model-value": e.block.alt,
|
|
2892
2885
|
type: "text",
|
|
2893
|
-
placeholder:
|
|
2886
|
+
placeholder: C(a).video.altTextPlaceholder,
|
|
2894
2887
|
"onUpdate:modelValue": n[4] ||= (e) => k("alt", e)
|
|
2895
2888
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
2896
2889
|
y("div", Oo, [
|
|
2897
|
-
y("label", { class:
|
|
2890
|
+
y("label", { class: T(C(H)) }, g(C(a).video.width), 3),
|
|
2898
2891
|
y("select", {
|
|
2899
|
-
class:
|
|
2892
|
+
class: T(C(G)),
|
|
2900
2893
|
"data-testid": "video-width-mode",
|
|
2901
|
-
value:
|
|
2894
|
+
value: b.value,
|
|
2902
2895
|
onChange: n[5] ||= (e) => A(e.target.value)
|
|
2903
2896
|
}, [
|
|
2904
|
-
y("option", Ao,
|
|
2897
|
+
y("option", Ao, g(C(a).video.fullWidth), 1),
|
|
2905
2898
|
n[10] ||= y("option", { value: "300" }, "300px", -1),
|
|
2906
2899
|
n[11] ||= y("option", { value: "400" }, "400px", -1),
|
|
2907
2900
|
n[12] ||= y("option", { value: "500" }, "500px", -1),
|
|
2908
|
-
y("option", jo,
|
|
2901
|
+
y("option", jo, g(C(a).video.widthCustom), 1)
|
|
2909
2902
|
], 42, ko),
|
|
2910
|
-
|
|
2903
|
+
b.value === "custom" ? (o(), f("div", Mo, [y("input", {
|
|
2911
2904
|
type: "number",
|
|
2912
2905
|
"data-testid": "video-width-input",
|
|
2913
|
-
class:
|
|
2906
|
+
class: T(C(W)),
|
|
2914
2907
|
value: e.block.width,
|
|
2915
2908
|
min: "20",
|
|
2916
2909
|
onInput: n[6] ||= (e) => j(e.target.value)
|
|
2917
|
-
}, null, 42, No), y("span", { class:
|
|
2910
|
+
}, null, 42, No), y("span", { class: T(C(U)) }, "px", 2)])) : _("", !0)
|
|
2918
2911
|
]),
|
|
2919
2912
|
y("div", Po, [
|
|
2920
|
-
y("label", { class:
|
|
2913
|
+
y("label", { class: T(C(H)) }, g(C(a).video.height), 3),
|
|
2921
2914
|
y("select", {
|
|
2922
|
-
class:
|
|
2915
|
+
class: T(C(G)),
|
|
2923
2916
|
"data-testid": "video-height-mode",
|
|
2924
|
-
value:
|
|
2917
|
+
value: S.value,
|
|
2925
2918
|
onChange: n[7] ||= (e) => M(e.target.value)
|
|
2926
|
-
}, [y("option", Io,
|
|
2927
|
-
|
|
2919
|
+
}, [y("option", Io, g(C(a).video.heightAuto), 1), y("option", Lo, g(C(a).video.heightCustom), 1)], 42, Fo),
|
|
2920
|
+
S.value === "custom" ? (o(), f("div", Ro, [y("input", {
|
|
2928
2921
|
type: "number",
|
|
2929
2922
|
"data-testid": "video-height-input",
|
|
2930
|
-
class:
|
|
2923
|
+
class: T(C(W)),
|
|
2931
2924
|
value: e.block.height,
|
|
2932
2925
|
min: "20",
|
|
2933
|
-
onInput: n[8] ||= (e) =>
|
|
2934
|
-
}, null, 42, zo), y("span", { class:
|
|
2926
|
+
onInput: n[8] ||= (e) => N(e.target.value)
|
|
2927
|
+
}, null, 42, zo), y("span", { class: T(C(U)) }, "px", 2)])) : _("", !0)
|
|
2935
2928
|
]),
|
|
2936
|
-
y("div", Bo, [y("label", { class:
|
|
2929
|
+
y("div", Bo, [y("label", { class: T(C(H)) }, g(C(a).title.align), 3), E(Y, {
|
|
2937
2930
|
options: [
|
|
2938
2931
|
{
|
|
2939
2932
|
value: "left",
|
|
2940
|
-
label:
|
|
2933
|
+
label: C(a).title.alignLeft
|
|
2941
2934
|
},
|
|
2942
2935
|
{
|
|
2943
2936
|
value: "center",
|
|
2944
|
-
label:
|
|
2937
|
+
label: C(a).title.alignCenter
|
|
2945
2938
|
},
|
|
2946
2939
|
{
|
|
2947
2940
|
value: "right",
|
|
2948
|
-
label:
|
|
2941
|
+
label: C(a).title.alignRight
|
|
2949
2942
|
}
|
|
2950
2943
|
],
|
|
2951
2944
|
"model-value": e.block.align,
|
|
@@ -2953,7 +2946,7 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2953
2946
|
}, null, 8, ["options", "model-value"])])
|
|
2954
2947
|
], 64));
|
|
2955
2948
|
}
|
|
2956
|
-
}), Wo = ["aria-label"], Go = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Ko = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, qo = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Jo = { class: "tpl:flex tpl:gap-1" }, Yo = ["title"], Xo = ["title"], Zo = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Qo = /*@__PURE__*/
|
|
2949
|
+
}), Wo = ["aria-label"], Go = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Ko = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, qo = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Jo = { class: "tpl:flex tpl:gap-1" }, Yo = ["title"], Xo = ["title"], Zo = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Qo = /*@__PURE__*/ t({
|
|
2957
2950
|
__name: "Toolbar",
|
|
2958
2951
|
props: { block: {} },
|
|
2959
2952
|
emits: [
|
|
@@ -2962,108 +2955,107 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2962
2955
|
"duplicate"
|
|
2963
2956
|
],
|
|
2964
2957
|
setup(e, { emit: t }) {
|
|
2965
|
-
let
|
|
2966
|
-
if (
|
|
2967
|
-
}),
|
|
2968
|
-
function
|
|
2958
|
+
let r = c(() => import("./CountdownToolbar-xobieKoU.js")), i = e, a = t, { t: s } = B(), l = xe(je, "Toolbar"), u = n(Ae, []), d = x(() => i.block.type), p = x(() => ae(i.block)), m = x(() => {
|
|
2959
|
+
if (p.value) return u.find((e) => e.type === i.block.customType);
|
|
2960
|
+
}), h = x(() => p.value ? m.value?.name ?? i.block.customType : z(d.value, s)), b = x(() => st(l.fonts.value, "fontFamily" in i.block ? i.block.fontFamily : void 0));
|
|
2961
|
+
function S(e) {
|
|
2969
2962
|
a("update", e);
|
|
2970
2963
|
}
|
|
2971
|
-
return (t,
|
|
2964
|
+
return (t, n) => (o(), f("aside", {
|
|
2972
2965
|
"data-testid": "block-toolbar",
|
|
2973
|
-
"aria-label":
|
|
2966
|
+
"aria-label": C(s).landmarks.blockToolbar,
|
|
2974
2967
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
2975
|
-
}, [y("div", Go, [y("div", Ko, [
|
|
2968
|
+
}, [y("div", Go, [y("div", Ko, [C(at)[d.value] ? (o(), v(D(C(at)[d.value]), {
|
|
2976
2969
|
key: 0,
|
|
2977
2970
|
size: 16,
|
|
2978
2971
|
"stroke-width": 1.5
|
|
2979
|
-
})) :
|
|
2972
|
+
})) : p.value ? (o(), v(C(Ge), {
|
|
2980
2973
|
key: 1,
|
|
2981
2974
|
size: 16,
|
|
2982
2975
|
"stroke-width": 1.5
|
|
2983
|
-
})) :
|
|
2976
|
+
})) : _("", !0), y("h3", qo, g(h.value), 1)]), y("div", Jo, [y("button", {
|
|
2984
2977
|
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)]",
|
|
2985
|
-
title:
|
|
2986
|
-
onClick:
|
|
2987
|
-
}, [E(
|
|
2978
|
+
title: C(s).toolbar.duplicate,
|
|
2979
|
+
onClick: n[0] ||= (e) => a("duplicate")
|
|
2980
|
+
}, [E(C(Ke), {
|
|
2988
2981
|
size: 14,
|
|
2989
2982
|
"stroke-width": 2
|
|
2990
2983
|
})], 8, Yo), y("button", {
|
|
2991
2984
|
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)]",
|
|
2992
|
-
title:
|
|
2993
|
-
onClick:
|
|
2994
|
-
}, [E(
|
|
2985
|
+
title: C(s).toolbar.delete,
|
|
2986
|
+
onClick: n[1] ||= (e) => a("delete")
|
|
2987
|
+
}, [E(C(He), {
|
|
2995
2988
|
size: 14,
|
|
2996
2989
|
"stroke-width": 2
|
|
2997
|
-
})], 8, Xo)])]), y("div", Zo, [
|
|
2990
|
+
})], 8, Xo)])]), y("div", Zo, [p.value ? (o(), v(Ur, {
|
|
2998
2991
|
key: 0,
|
|
2999
2992
|
block: e.block,
|
|
3000
|
-
onUpdateFieldValues:
|
|
3001
|
-
onUpdateDataSourceFetched:
|
|
3002
|
-
}, null, 8, ["block"])) : d.value === "section" ? (o(),
|
|
2993
|
+
onUpdateFieldValues: n[2] ||= (e) => a("update", { fieldValues: e }),
|
|
2994
|
+
onUpdateDataSourceFetched: n[3] ||= (e) => a("update", { dataSourceFetched: e })
|
|
2995
|
+
}, null, 8, ["block"])) : d.value === "section" ? (o(), v($i, {
|
|
3003
2996
|
key: 1,
|
|
3004
2997
|
block: e.block,
|
|
3005
|
-
onUpdate:
|
|
3006
|
-
}, null, 8, ["block"])) : d.value === "title" ? (o(),
|
|
2998
|
+
onUpdate: S
|
|
2999
|
+
}, null, 8, ["block"])) : d.value === "title" ? (o(), v(bo, {
|
|
3007
3000
|
key: 2,
|
|
3008
3001
|
block: e.block,
|
|
3009
3002
|
"font-families": b.value,
|
|
3010
|
-
onUpdate:
|
|
3011
|
-
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (o(),
|
|
3003
|
+
onUpdate: S
|
|
3004
|
+
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (o(), v(Wi, {
|
|
3012
3005
|
key: 3,
|
|
3013
3006
|
block: e.block,
|
|
3014
|
-
onUpdate:
|
|
3015
|
-
}, null, 8, ["block"])) : d.value === "image" ? (o(),
|
|
3007
|
+
onUpdate: S
|
|
3008
|
+
}, null, 8, ["block"])) : d.value === "image" ? (o(), v(Oi, {
|
|
3016
3009
|
key: 4,
|
|
3017
3010
|
block: e.block,
|
|
3018
|
-
onUpdate:
|
|
3019
|
-
}, null, 8, ["block"])) : d.value === "video" ? (o(),
|
|
3011
|
+
onUpdate: S
|
|
3012
|
+
}, null, 8, ["block"])) : d.value === "video" ? (o(), v(Uo, {
|
|
3020
3013
|
key: 5,
|
|
3021
3014
|
block: e.block,
|
|
3022
|
-
onUpdate:
|
|
3023
|
-
}, null, 8, ["block"])) : d.value === "button" ? (o(),
|
|
3015
|
+
onUpdate: S
|
|
3016
|
+
}, null, 8, ["block"])) : d.value === "button" ? (o(), v(Jt, {
|
|
3024
3017
|
key: 6,
|
|
3025
3018
|
block: e.block,
|
|
3026
3019
|
"font-families": b.value,
|
|
3027
|
-
onUpdate:
|
|
3028
|
-
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (o(),
|
|
3020
|
+
onUpdate: S
|
|
3021
|
+
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (o(), v(Yr, {
|
|
3029
3022
|
key: 7,
|
|
3030
3023
|
block: e.block,
|
|
3031
|
-
onUpdate:
|
|
3032
|
-
}, null, 8, ["block"])) : d.value === "social" ? (o(),
|
|
3024
|
+
onUpdate: S
|
|
3025
|
+
}, null, 8, ["block"])) : d.value === "social" ? (o(), v(wa, {
|
|
3033
3026
|
key: 8,
|
|
3034
3027
|
block: e.block,
|
|
3035
|
-
onUpdate:
|
|
3036
|
-
}, null, 8, ["block"])) : d.value === "menu" ? (o(),
|
|
3028
|
+
onUpdate: S
|
|
3029
|
+
}, null, 8, ["block"])) : d.value === "menu" ? (o(), v(Bi, {
|
|
3037
3030
|
key: 9,
|
|
3038
3031
|
block: e.block,
|
|
3039
3032
|
"font-families": b.value,
|
|
3040
|
-
onUpdate:
|
|
3041
|
-
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (o(),
|
|
3033
|
+
onUpdate: S
|
|
3034
|
+
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (o(), v(oo, {
|
|
3042
3035
|
key: 10,
|
|
3043
3036
|
block: e.block,
|
|
3044
3037
|
"font-families": b.value,
|
|
3045
|
-
onUpdate:
|
|
3046
|
-
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (o(),
|
|
3038
|
+
onUpdate: S
|
|
3039
|
+
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (o(), v(ka, {
|
|
3047
3040
|
key: 11,
|
|
3048
3041
|
block: e.block,
|
|
3049
|
-
onUpdate:
|
|
3050
|
-
}, null, 8, ["block"])) : d.value === "html" ? (o(),
|
|
3042
|
+
onUpdate: S
|
|
3043
|
+
}, null, 8, ["block"])) : d.value === "html" ? (o(), v($r, {
|
|
3051
3044
|
key: 12,
|
|
3052
3045
|
block: e.block,
|
|
3053
|
-
onUpdate:
|
|
3054
|
-
}, null, 8, ["block"])) : d.value === "countdown" ? (o(),
|
|
3046
|
+
onUpdate: S
|
|
3047
|
+
}, null, 8, ["block"])) : d.value === "countdown" ? (o(), v(C(r), {
|
|
3055
3048
|
key: 13,
|
|
3056
3049
|
block: e.block,
|
|
3057
3050
|
"font-families": b.value,
|
|
3058
|
-
onUpdate:
|
|
3059
|
-
}, null, 8, ["block", "font-families"])) :
|
|
3051
|
+
onUpdate: S
|
|
3052
|
+
}, null, 8, ["block", "font-families"])) : _("", !0), E(ar, {
|
|
3060
3053
|
block: e.block,
|
|
3061
3054
|
"is-first-section": d.value === "paragraph",
|
|
3062
|
-
onUpdate:
|
|
3055
|
+
onUpdate: S
|
|
3063
3056
|
}, null, 8, ["block", "is-first-section"])])], 8, Wo));
|
|
3064
3057
|
}
|
|
3065
3058
|
}), $o = /* @__PURE__ */ e({ default: () => es }), es = /*#__PURE__*/ $e(Qo, [["__scopeId", "data-v-e2d2c22f"]]);
|
|
3066
|
-
//#endregion
|
|
3067
3059
|
export { es as default, Y as i, $ as n, X as r, $o as t };
|
|
3068
3060
|
|
|
3069
|
-
//# sourceMappingURL=Toolbar-
|
|
3061
|
+
//# sourceMappingURL=Toolbar-CdpsvNOR.js.map
|