@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,32 +1,32 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-
|
|
2
|
-
import {
|
|
3
|
-
import { a as E, o as D } from "./runtime-dom.esm-bundler-
|
|
4
|
-
import {
|
|
5
|
-
import { C as se, O as ce, R as le, b as ue, c as de, d as fe, f as pe, g as me, h as he, i as ge, l as _e, m as L, o as ve, p as R, r as ye, u as z, x as be } from "./socialIcons-
|
|
6
|
-
import { _ as xe } from "./dist-
|
|
7
|
-
import { $ as Se, C as Ce, L as we, P as Te, W as Ee, d as De, g as Oe, h as ke, n as Ae, p as je, v as Me, x as Ne } from "./keys-
|
|
8
|
-
import { t as B } from "./useI18n-
|
|
9
|
-
import { o as Pe } from "./usePopoverPosition-
|
|
10
|
-
import { t as Fe } from "./createLucideIcon-
|
|
11
|
-
import { c as V } from "./LogicTagInsertButton-
|
|
12
|
-
import { t as Ie } from "./chevron-down-
|
|
13
|
-
import { t as Le } from "./circle-alert-
|
|
14
|
-
import { n as Re, t as ze } from "./blockTypeIcons-
|
|
15
|
-
import { n as Be } from "./upload-
|
|
16
|
-
import { t as Ve } from "./image-
|
|
17
|
-
import { t as He } from "./info-
|
|
18
|
-
import { t as Ue } from "./link-
|
|
19
|
-
import { n as We, t as Ge } from "./smartphone-
|
|
20
|
-
import { n as H, t as Ke } from "./refresh-cw-
|
|
21
|
-
import { n as qe, r as Je, t as Ye } from "./text-align-start-
|
|
22
|
-
import { t as Xe } from "./trash-
|
|
23
|
-
import { t as Ze } from "./x-
|
|
24
|
-
import { t as Qe } from "./_plugin-vue_export-helper-
|
|
25
|
-
import { _ as $e, b as et, c as tt, g as U, h as W, m as G, p as K, r as nt, v as rt } from "./styleConstants-
|
|
26
|
-
import { t as it } from "./MergeTagTextarea-
|
|
27
|
-
import { t as q } from "./ToggleSwitch-
|
|
28
|
-
import { n as at, t as ot } from "./withCurrentFont-
|
|
29
|
-
import { t as J } from "./MergeTagInput-
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
+
import { $ as t, C as n, H as r, I as i, Mt as a, N as o, Nt as s, P as c, U as l, X as u, Z as d, _ as f, c as p, d as m, f as h, g, j as _, jt as v, l as y, r as b, st as x, u as S, v as C, y as w, z as T } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
3
|
+
import { a as E, o as D } from "./runtime-dom.esm-bundler-BURR-bj5.js";
|
|
4
|
+
import { At as O, C as k, S as A, X as j, Y as M, at as N, i as P, jt as F, n as ee, p as te, pt as ne, r as re, rt as I, t as ie, u as ae, vt as oe } from "./dist-CKi_npZM.js";
|
|
5
|
+
import { C as se, O as ce, R as le, b as ue, c as de, d as fe, f as pe, g as me, h as he, i as ge, l as _e, m as L, o as ve, p as R, r as ye, u as z, x as be } from "./socialIcons-D7MGsg0d.js";
|
|
6
|
+
import { _ as xe } from "./dist-CVy-7PHQ.js";
|
|
7
|
+
import { $ as Se, C as Ce, L as we, P as Te, W as Ee, d as De, g as Oe, h as ke, n as Ae, p as je, v as Me, x as Ne } from "./keys-BgRERHzu.js";
|
|
8
|
+
import { t as B } from "./useI18n-BBrHTdu8.js";
|
|
9
|
+
import { o as Pe } from "./usePopoverPosition-DV1PxL66.js";
|
|
10
|
+
import { t as Fe } from "./createLucideIcon-CvhTA2KG.js";
|
|
11
|
+
import { c as V } from "./LogicTagInsertButton-CfscnwCn.js";
|
|
12
|
+
import { t as Ie } from "./chevron-down-DfAAfILv.js";
|
|
13
|
+
import { t as Le } from "./circle-alert-CShJwVFv.js";
|
|
14
|
+
import { n as Re, t as ze } from "./blockTypeIcons-BHjlPnPf.js";
|
|
15
|
+
import { n as Be } from "./upload-DuFEOi_0.js";
|
|
16
|
+
import { t as Ve } from "./image-BDiRFzSd.js";
|
|
17
|
+
import { t as He } from "./info-Cxi3-Kh9.js";
|
|
18
|
+
import { t as Ue } from "./link-ju_2Cmir.js";
|
|
19
|
+
import { n as We, t as Ge } from "./smartphone-Bx6u_tjn.js";
|
|
20
|
+
import { n as H, t as Ke } from "./refresh-cw-xnro7_Sk.js";
|
|
21
|
+
import { n as qe, r as Je, t as Ye } from "./text-align-start-CGacJ9Vw.js";
|
|
22
|
+
import { t as Xe } from "./trash-DxCd7zIy.js";
|
|
23
|
+
import { t as Ze } from "./x-BpfG7v9g.js";
|
|
24
|
+
import { t as Qe } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
25
|
+
import { _ as $e, b as et, c as tt, g as U, h as W, m as G, p as K, r as nt, v as rt } from "./styleConstants-B8xVRiwX.js";
|
|
26
|
+
import { t as it } from "./MergeTagTextarea-CPFEjJZd.js";
|
|
27
|
+
import { t as q } from "./ToggleSwitch-JykPyD_8.js";
|
|
28
|
+
import { n as at, t as ot } from "./withCurrentFont-B22FXAF5.js";
|
|
29
|
+
import { t as J } from "./MergeTagInput-B9dtUthD.js";
|
|
30
30
|
var st = Fe({
|
|
31
31
|
name: "lock-open",
|
|
32
32
|
size: 24,
|
|
@@ -114,26 +114,26 @@ var st = Fe({
|
|
|
114
114
|
},
|
|
115
115
|
emits: ["update:modelValue"],
|
|
116
116
|
setup(e, { emit: t }) {
|
|
117
|
-
let n = e, r = t,
|
|
117
|
+
let n = e, r = t, c = p(() => n.options.findIndex((e) => e.value === n.modelValue)), l = p(() => `translateX(${Math.max(c.value, 0) * 100}%)`);
|
|
118
118
|
return (t, n) => (_(), h("div", {
|
|
119
119
|
role: "radiogroup",
|
|
120
120
|
class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
|
|
121
|
-
style:
|
|
121
|
+
style: a({
|
|
122
122
|
gridTemplateColumns: `repeat(${e.options.length}, 1fr)`,
|
|
123
123
|
backgroundColor: "var(--tpl-bg-hover)"
|
|
124
124
|
})
|
|
125
|
-
}, [
|
|
125
|
+
}, [c.value >= 0 ? (_(), h("div", {
|
|
126
126
|
key: 0,
|
|
127
127
|
class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
|
|
128
|
-
style:
|
|
128
|
+
style: a({
|
|
129
129
|
left: "4px",
|
|
130
130
|
width: `calc((100% - 8px) / ${e.options.length})`,
|
|
131
|
-
transform:
|
|
131
|
+
transform: l.value,
|
|
132
132
|
backgroundColor: "var(--tpl-bg)",
|
|
133
133
|
boxShadow: "var(--tpl-shadow)",
|
|
134
134
|
transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
135
135
|
})
|
|
136
|
-
}, null, 4)) : m("", !0), (_(!0), h(
|
|
136
|
+
}, null, 4)) : m("", !0), (_(!0), h(b, null, o(e.options, (t) => (_(), h("button", {
|
|
137
137
|
key: t.value,
|
|
138
138
|
role: "radio",
|
|
139
139
|
"aria-checked": e.modelValue === t.value,
|
|
@@ -141,7 +141,7 @@ var st = Fe({
|
|
|
141
141
|
disabled: t.disabled,
|
|
142
142
|
"aria-disabled": t.disabled ? "true" : void 0,
|
|
143
143
|
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",
|
|
144
|
-
style:
|
|
144
|
+
style: a({
|
|
145
145
|
color: t.disabled ? "var(--tpl-text-dim)" : e.modelValue === t.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
146
146
|
transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
147
147
|
}),
|
|
@@ -151,7 +151,7 @@ var st = Fe({
|
|
|
151
151
|
key: 0,
|
|
152
152
|
size: 14,
|
|
153
153
|
"stroke-width": 2
|
|
154
|
-
})) : (_(), h("span", dt,
|
|
154
|
+
})) : (_(), h("span", dt, s(t.label), 1))], 12, ut))), 128))], 4));
|
|
155
155
|
}
|
|
156
156
|
}), ft = { class: "tpl:flex tpl:items-stretch" }, pt = [
|
|
157
157
|
"data-testid",
|
|
@@ -168,21 +168,21 @@ var st = Fe({
|
|
|
168
168
|
testid: {}
|
|
169
169
|
},
|
|
170
170
|
emits: ["update:modelValue"],
|
|
171
|
-
setup(e, { emit:
|
|
172
|
-
let
|
|
173
|
-
function
|
|
171
|
+
setup(e, { emit: t }) {
|
|
172
|
+
let n = t;
|
|
173
|
+
function r(e) {
|
|
174
174
|
let t = e.target;
|
|
175
|
-
t.validity?.badInput ||
|
|
175
|
+
t.validity?.badInput || n("update:modelValue", Number(t.value));
|
|
176
176
|
}
|
|
177
|
-
return (
|
|
177
|
+
return (t, n) => (_(), h("div", ft, [y("input", {
|
|
178
178
|
type: "number",
|
|
179
179
|
"data-testid": e.testid,
|
|
180
|
-
class:
|
|
180
|
+
class: v(x(G)),
|
|
181
181
|
value: e.modelValue,
|
|
182
182
|
min: e.min,
|
|
183
183
|
max: e.max,
|
|
184
|
-
onInput:
|
|
185
|
-
}, null, 42, pt), y("span", { class:
|
|
184
|
+
onInput: r
|
|
185
|
+
}, null, 42, pt), y("span", { class: v(x(W)) }, s(e.suffix), 3)]));
|
|
186
186
|
}
|
|
187
187
|
}), mt = [
|
|
188
188
|
"aria-pressed",
|
|
@@ -198,21 +198,21 @@ var st = Fe({
|
|
|
198
198
|
testid: {}
|
|
199
199
|
},
|
|
200
200
|
emits: ["toggle"],
|
|
201
|
-
setup(e, { emit:
|
|
202
|
-
let
|
|
203
|
-
return (
|
|
201
|
+
setup(e, { emit: t }) {
|
|
202
|
+
let n = t;
|
|
203
|
+
return (t, r) => (_(), h("button", {
|
|
204
204
|
type: "button",
|
|
205
|
-
class:
|
|
205
|
+
class: v(["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)]"]),
|
|
206
206
|
"aria-pressed": e.linked ? "true" : "false",
|
|
207
207
|
"aria-label": e.linked ? e.unlinkLabel : e.linkLabel,
|
|
208
208
|
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
209
209
|
"data-testid": e.testid,
|
|
210
|
-
onClick:
|
|
211
|
-
}, [e.linked ? (_(), S(
|
|
210
|
+
onClick: r[0] ||= (e) => n("toggle")
|
|
211
|
+
}, [e.linked ? (_(), S(x(Ue), {
|
|
212
212
|
key: 0,
|
|
213
213
|
size: 14,
|
|
214
214
|
"stroke-width": 2
|
|
215
|
-
})) : (_(), S(
|
|
215
|
+
})) : (_(), S(x(lt), {
|
|
216
216
|
key: 1,
|
|
217
217
|
size: 14,
|
|
218
218
|
"stroke-width": 2
|
|
@@ -229,68 +229,68 @@ var st = Fe({
|
|
|
229
229
|
},
|
|
230
230
|
emits: ["update:modelValue"],
|
|
231
231
|
setup(e, { emit: n }) {
|
|
232
|
-
let r = e, i = n, { t:
|
|
232
|
+
let r = e, i = n, { t: a } = B(), o = {
|
|
233
233
|
width: 0,
|
|
234
234
|
style: "solid",
|
|
235
235
|
color: "#000000"
|
|
236
236
|
};
|
|
237
|
-
function
|
|
237
|
+
function c(e, t) {
|
|
238
238
|
return e.width === t.width && e.style === t.style && e.color === t.color;
|
|
239
239
|
}
|
|
240
|
-
let
|
|
240
|
+
let l = p(() => {
|
|
241
241
|
let e = r.modelValue;
|
|
242
|
-
return !e || P.every((t) =>
|
|
243
|
-
}),
|
|
244
|
-
T(
|
|
245
|
-
!e &&
|
|
242
|
+
return !e || P.every((t) => c(e[t], e.top));
|
|
243
|
+
}), u = t(l.value);
|
|
244
|
+
T(l, (e) => {
|
|
245
|
+
!e && u.value && (u.value = !1);
|
|
246
246
|
});
|
|
247
|
-
let
|
|
248
|
-
let e =
|
|
249
|
-
return r.modelValue?.[e] ??
|
|
247
|
+
let d = t("top"), g = p(() => {
|
|
248
|
+
let e = u.value ? "top" : d.value;
|
|
249
|
+
return r.modelValue?.[e] ?? o;
|
|
250
250
|
}), S = (e) => !!e && e.width > 0;
|
|
251
251
|
function C(e) {
|
|
252
|
-
if (
|
|
253
|
-
i("update:modelValue", S(e) ?
|
|
252
|
+
if (u.value) {
|
|
253
|
+
i("update:modelValue", S(e) ? F(e) : void 0);
|
|
254
254
|
return;
|
|
255
255
|
}
|
|
256
256
|
let t = {
|
|
257
|
-
...r.modelValue ??
|
|
258
|
-
[
|
|
257
|
+
...r.modelValue ?? F(o),
|
|
258
|
+
[d.value]: e
|
|
259
259
|
}, n = P.some((e) => S(t[e]));
|
|
260
260
|
i("update:modelValue", n ? t : void 0);
|
|
261
261
|
}
|
|
262
262
|
function w(e) {
|
|
263
263
|
C({
|
|
264
|
-
...
|
|
264
|
+
...g.value,
|
|
265
265
|
width: e > 0 ? e : 0
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
268
|
function E(e) {
|
|
269
269
|
C({
|
|
270
|
-
...
|
|
270
|
+
...g.value,
|
|
271
271
|
...e
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
function D() {
|
|
275
|
-
if (
|
|
276
|
-
|
|
275
|
+
if (u.value) {
|
|
276
|
+
u.value = !1;
|
|
277
277
|
return;
|
|
278
278
|
}
|
|
279
|
-
|
|
279
|
+
u.value = !0;
|
|
280
280
|
let e = r.modelValue;
|
|
281
281
|
if (!e) return;
|
|
282
|
-
let t = S(e[
|
|
283
|
-
i("update:modelValue", t ?
|
|
282
|
+
let t = S(e[d.value]) ? e[d.value] : P.map((t) => e[t]).find(S);
|
|
283
|
+
i("update:modelValue", t ? F(t) : void 0);
|
|
284
284
|
}
|
|
285
|
-
let
|
|
285
|
+
let O = p(() => P.map((e) => ({
|
|
286
286
|
value: e,
|
|
287
|
-
label:
|
|
287
|
+
label: a.spacingControl[e]
|
|
288
288
|
})));
|
|
289
|
-
return (
|
|
290
|
-
y("div", _t, [y("span", vt,
|
|
291
|
-
linked:
|
|
292
|
-
"link-label":
|
|
293
|
-
"unlink-label":
|
|
289
|
+
return (t, n) => (_(), h("div", gt, [
|
|
290
|
+
y("div", _t, [y("span", vt, s(x(a).blockSettings.border), 1), f(ht, {
|
|
291
|
+
linked: u.value,
|
|
292
|
+
"link-label": x(a).blockSettings.linkSides,
|
|
293
|
+
"unlink-label": x(a).blockSettings.unlinkSides,
|
|
294
294
|
testid: `${e.testidPrefix}-border-link`,
|
|
295
295
|
onToggle: D
|
|
296
296
|
}, null, 8, [
|
|
@@ -299,38 +299,38 @@ var st = Fe({
|
|
|
299
299
|
"unlink-label",
|
|
300
300
|
"testid"
|
|
301
301
|
])]),
|
|
302
|
-
|
|
303
|
-
options:
|
|
304
|
-
"model-value":
|
|
305
|
-
"onUpdate:modelValue":
|
|
302
|
+
u.value ? m("", !0) : (_(), h("div", yt, [y("label", { class: v(x(U)) }, s(x(a).blockSettings.borderSide), 3), f(Y, {
|
|
303
|
+
options: O.value,
|
|
304
|
+
"model-value": d.value,
|
|
305
|
+
"onUpdate:modelValue": n[0] ||= (e) => d.value = e
|
|
306
306
|
}, null, 8, ["options", "model-value"])])),
|
|
307
|
-
y("div", bt, [y("label", { class:
|
|
308
|
-
"model-value":
|
|
307
|
+
y("div", bt, [y("label", { class: v(x(U)) }, s(x(a).blockSettings.borderWidth), 3), f(X, {
|
|
308
|
+
"model-value": g.value.width,
|
|
309
309
|
min: 0,
|
|
310
310
|
suffix: "px",
|
|
311
311
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
312
312
|
"onUpdate:modelValue": w
|
|
313
313
|
}, null, 8, ["model-value", "testid"])]),
|
|
314
|
-
|
|
314
|
+
g.value.width > 0 ? (_(), h(b, { key: 1 }, [y("div", xt, [y("label", { class: v(x(U)) }, s(x(a).blockSettings.borderStyle), 3), f(Y, {
|
|
315
315
|
options: [
|
|
316
316
|
{
|
|
317
317
|
value: "solid",
|
|
318
|
-
label:
|
|
318
|
+
label: x(a).divider.solid
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
321
|
value: "dashed",
|
|
322
|
-
label:
|
|
322
|
+
label: x(a).divider.dashed
|
|
323
323
|
},
|
|
324
324
|
{
|
|
325
325
|
value: "dotted",
|
|
326
|
-
label:
|
|
326
|
+
label: x(a).divider.dotted
|
|
327
327
|
}
|
|
328
328
|
],
|
|
329
|
-
"model-value":
|
|
330
|
-
"onUpdate:modelValue":
|
|
331
|
-
}, null, 8, ["options", "model-value"])]), y("div", null, [y("label", { class:
|
|
332
|
-
"model-value":
|
|
333
|
-
"onUpdate:modelValue":
|
|
329
|
+
"model-value": g.value.style,
|
|
330
|
+
"onUpdate:modelValue": n[1] ||= (e) => E({ style: e })
|
|
331
|
+
}, null, 8, ["options", "model-value"])]), y("div", null, [y("label", { class: v(x(U)) }, s(x(a).blockSettings.borderColor), 3), f(V, {
|
|
332
|
+
"model-value": g.value.color,
|
|
333
|
+
"onUpdate:modelValue": n[2] ||= (e) => E({ color: e })
|
|
334
334
|
}, null, 8, ["model-value"])])], 64)) : m("", !0)
|
|
335
335
|
]));
|
|
336
336
|
}
|
|
@@ -346,8 +346,8 @@ var st = Fe({
|
|
|
346
346
|
max: {}
|
|
347
347
|
},
|
|
348
348
|
emits: ["update:modelValue"],
|
|
349
|
-
setup(e, { emit:
|
|
350
|
-
let
|
|
349
|
+
setup(e, { emit: n }) {
|
|
350
|
+
let r = e, i = n, { t: a } = B(), c = {
|
|
351
351
|
topLeft: "cornerTopLeft",
|
|
352
352
|
topRight: "cornerTopRight",
|
|
353
353
|
bottomRight: "cornerBottomRight",
|
|
@@ -358,14 +358,14 @@ var st = Fe({
|
|
|
358
358
|
"bottomLeft",
|
|
359
359
|
"bottomRight"
|
|
360
360
|
], u = p(() => {
|
|
361
|
-
let e =
|
|
361
|
+
let e = r.modelValue ?? 0;
|
|
362
362
|
return typeof e == "number" ? {
|
|
363
363
|
topLeft: e,
|
|
364
364
|
topRight: e,
|
|
365
365
|
bottomRight: e,
|
|
366
366
|
bottomLeft: e
|
|
367
367
|
} : e;
|
|
368
|
-
}), d = p(() =>
|
|
368
|
+
}), d = p(() => re.every((e) => u.value[e] === u.value.topLeft)), m = t(d.value);
|
|
369
369
|
T(d, (e) => {
|
|
370
370
|
!e && m.value && (m.value = !1);
|
|
371
371
|
});
|
|
@@ -373,21 +373,21 @@ var st = Fe({
|
|
|
373
373
|
return Number.isFinite(e) && e >= 0;
|
|
374
374
|
}
|
|
375
375
|
function v(e) {
|
|
376
|
-
g(e) &&
|
|
376
|
+
g(e) && i("update:modelValue", e);
|
|
377
377
|
}
|
|
378
378
|
function C(e, t) {
|
|
379
|
-
g(t) &&
|
|
379
|
+
g(t) && i("update:modelValue", {
|
|
380
380
|
...u.value,
|
|
381
381
|
[e]: t
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
384
|
function w() {
|
|
385
|
-
m.value = !m.value, m.value &&
|
|
385
|
+
m.value = !m.value, m.value && i("update:modelValue", u.value.topLeft);
|
|
386
386
|
}
|
|
387
|
-
return (t, n) => (_(), h("div", Ct, [y("div", wt, [y("span", Tt,
|
|
387
|
+
return (t, n) => (_(), h("div", Ct, [y("div", wt, [y("span", Tt, s(e.label), 1), f(ht, {
|
|
388
388
|
linked: m.value,
|
|
389
|
-
"link-label":
|
|
390
|
-
"unlink-label":
|
|
389
|
+
"link-label": x(a).blockSettings.linkCorners,
|
|
390
|
+
"unlink-label": x(a).blockSettings.unlinkCorners,
|
|
391
391
|
testid: `${e.testidPrefix}-border-radius-link`,
|
|
392
392
|
onToggle: w
|
|
393
393
|
}, null, 8, [
|
|
@@ -407,7 +407,7 @@ var st = Fe({
|
|
|
407
407
|
"model-value",
|
|
408
408
|
"max",
|
|
409
409
|
"testid"
|
|
410
|
-
])) : (_(), h("div", Et, [(_(), h(
|
|
410
|
+
])) : (_(), h("div", Et, [(_(), h(b, null, o(l, (t) => y("div", { key: t }, [y("label", Dt, s(x(a).blockSettings[c[t]]), 1), f(X, {
|
|
411
411
|
"model-value": u.value[t],
|
|
412
412
|
min: 0,
|
|
413
413
|
max: e.max,
|
|
@@ -431,113 +431,113 @@ var st = Fe({
|
|
|
431
431
|
fontFamilies: {}
|
|
432
432
|
},
|
|
433
433
|
emits: ["update"],
|
|
434
|
-
setup(e, { emit:
|
|
435
|
-
let
|
|
436
|
-
function
|
|
437
|
-
|
|
434
|
+
setup(e, { emit: t }) {
|
|
435
|
+
let n = e, r = t, { t: i } = B(), a = p(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
|
|
436
|
+
function c(e, t) {
|
|
437
|
+
r("update", { [e]: t });
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
e === "full" ?
|
|
439
|
+
function l(e) {
|
|
440
|
+
e === "full" ? c("width", "full") : e === "custom" ? c("width", typeof n.block.width == "number" ? n.block.width : Jt) : c("width", void 0);
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function u(e) {
|
|
443
443
|
let t = Number(e);
|
|
444
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
445
|
-
}
|
|
446
|
-
return (
|
|
447
|
-
y("div", kt, [y("label", { class:
|
|
448
|
-
class:
|
|
449
|
-
value:
|
|
450
|
-
onChange:
|
|
451
|
-
}, [y("option", jt,
|
|
444
|
+
!Number.isFinite(t) || t <= 0 || c("width", t);
|
|
445
|
+
}
|
|
446
|
+
return (t, n) => (_(), h(b, null, [
|
|
447
|
+
y("div", kt, [y("label", { class: v(x(U)) }, s(x(i).button.fontFamily), 3), y("select", {
|
|
448
|
+
class: v(x(K)),
|
|
449
|
+
value: x(ot)(e.block.fontFamily),
|
|
450
|
+
onChange: n[0] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
451
|
+
}, [y("option", jt, s(x(i).button.inheritFont), 1), (_(!0), h(b, null, o(e.fontFamilies, (e) => (_(), h("option", {
|
|
452
452
|
key: e.value,
|
|
453
453
|
value: e.value
|
|
454
|
-
},
|
|
455
|
-
y("div", Nt, [y("label", { class:
|
|
454
|
+
}, s(e.label), 9, Mt))), 128))], 42, At)]),
|
|
455
|
+
y("div", Nt, [y("label", { class: v(x(U)) }, s(x(i).button.text), 3), f(J, {
|
|
456
456
|
"model-value": e.block.text,
|
|
457
457
|
type: "text",
|
|
458
|
-
"onUpdate:modelValue":
|
|
458
|
+
"onUpdate:modelValue": n[1] ||= (e) => c("text", e)
|
|
459
459
|
}, null, 8, ["model-value"])]),
|
|
460
460
|
y("div", Pt, [
|
|
461
|
-
y("label", { class:
|
|
461
|
+
y("label", { class: v(x(U)) }, s(x(i).button.url), 3),
|
|
462
462
|
f(J, {
|
|
463
463
|
"model-value": e.block.url,
|
|
464
464
|
type: "url",
|
|
465
|
-
placeholder:
|
|
466
|
-
"onUpdate:modelValue":
|
|
465
|
+
placeholder: x(i).button.urlPlaceholder,
|
|
466
|
+
"onUpdate:modelValue": n[2] ||= (e) => c("url", e)
|
|
467
467
|
}, null, 8, ["model-value", "placeholder"]),
|
|
468
468
|
e.block.url ? (_(), S(q, {
|
|
469
469
|
key: 0,
|
|
470
470
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
471
471
|
"model-value": e.block.openInNewTab ?? !1,
|
|
472
|
-
label:
|
|
473
|
-
"onUpdate:modelValue":
|
|
472
|
+
label: x(i).button.openInNewTab,
|
|
473
|
+
"onUpdate:modelValue": n[3] ||= (e) => c("openInNewTab", e)
|
|
474
474
|
}, null, 8, ["model-value", "label"])) : m("", !0)
|
|
475
475
|
]),
|
|
476
|
-
y("div", Ft, [y("label", { class:
|
|
476
|
+
y("div", Ft, [y("label", { class: v(x(U)) }, s(x(i).button.background), 3), f(V, {
|
|
477
477
|
"model-value": e.block.backgroundColor,
|
|
478
478
|
"allow-transparent": "",
|
|
479
|
-
"onUpdate:modelValue":
|
|
479
|
+
"onUpdate:modelValue": n[4] ||= (e) => c("backgroundColor", e)
|
|
480
480
|
}, null, 8, ["model-value"])]),
|
|
481
|
-
y("div", It, [y("label", { class:
|
|
481
|
+
y("div", It, [y("label", { class: v(x(U)) }, s(x(i).button.textColor), 3), f(V, {
|
|
482
482
|
"model-value": e.block.textColor,
|
|
483
|
-
"onUpdate:modelValue":
|
|
483
|
+
"onUpdate:modelValue": n[5] ||= (e) => c("textColor", e)
|
|
484
484
|
}, null, 8, ["model-value"])]),
|
|
485
485
|
f(St, {
|
|
486
486
|
"model-value": e.block.border,
|
|
487
487
|
"testid-prefix": "button",
|
|
488
|
-
"onUpdate:modelValue":
|
|
488
|
+
"onUpdate:modelValue": n[6] ||= (e) => c("border", e)
|
|
489
489
|
}, null, 8, ["model-value"]),
|
|
490
490
|
f(Ot, {
|
|
491
491
|
"model-value": e.block.borderRadius,
|
|
492
|
-
label:
|
|
492
|
+
label: x(i).button.borderRadius,
|
|
493
493
|
max: 50,
|
|
494
494
|
"testid-prefix": "button",
|
|
495
|
-
"onUpdate:modelValue":
|
|
495
|
+
"onUpdate:modelValue": n[7] ||= (e) => c("borderRadius", e)
|
|
496
496
|
}, null, 8, ["model-value", "label"]),
|
|
497
|
-
y("div", Lt, [y("label", { class:
|
|
497
|
+
y("div", Lt, [y("label", { class: v(x(U)) }, s(x(i).button.fontSize), 3), y("div", Rt, [y("input", {
|
|
498
498
|
type: "number",
|
|
499
|
-
class:
|
|
499
|
+
class: v(x(G)),
|
|
500
500
|
value: e.block.fontSize,
|
|
501
501
|
min: "10",
|
|
502
502
|
max: "36",
|
|
503
|
-
onInput:
|
|
504
|
-
}, null, 42, zt), y("span", { class:
|
|
503
|
+
onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
504
|
+
}, null, 42, zt), y("span", { class: v(x(W)) }, "px", 2)])]),
|
|
505
505
|
y("div", Bt, [
|
|
506
|
-
y("label", { class:
|
|
506
|
+
y("label", { class: v(x(U)) }, s(x(i).button.width), 3),
|
|
507
507
|
y("select", {
|
|
508
|
-
class:
|
|
509
|
-
value:
|
|
510
|
-
onChange:
|
|
508
|
+
class: v(x(K)),
|
|
509
|
+
value: a.value,
|
|
510
|
+
onChange: n[9] ||= (e) => l(e.target.value)
|
|
511
511
|
}, [
|
|
512
|
-
y("option", Ht,
|
|
513
|
-
y("option", Ut,
|
|
514
|
-
y("option", Wt,
|
|
512
|
+
y("option", Ht, s(x(i).button.widthAuto), 1),
|
|
513
|
+
y("option", Ut, s(x(i).button.fullWidth), 1),
|
|
514
|
+
y("option", Wt, s(x(i).button.widthCustom), 1)
|
|
515
515
|
], 42, Vt),
|
|
516
|
-
|
|
516
|
+
a.value === "custom" ? (_(), h("div", Gt, [y("input", {
|
|
517
517
|
type: "number",
|
|
518
|
-
class:
|
|
518
|
+
class: v(x(G)),
|
|
519
519
|
value: typeof e.block.width == "number" ? e.block.width : Jt,
|
|
520
520
|
min: "20",
|
|
521
|
-
onInput:
|
|
522
|
-
}, null, 42, Kt), y("span", { class:
|
|
521
|
+
onInput: n[10] ||= (e) => u(e.target.value)
|
|
522
|
+
}, null, 42, Kt), y("span", { class: v(x(W)) }, "px", 2)])) : m("", !0)
|
|
523
523
|
]),
|
|
524
|
-
y("div", qt, [y("label", { class:
|
|
524
|
+
y("div", qt, [y("label", { class: v(x(U)) }, s(x(i).title.align), 3), f(Y, {
|
|
525
525
|
options: [
|
|
526
526
|
{
|
|
527
527
|
value: "left",
|
|
528
|
-
label:
|
|
528
|
+
label: x(i).title.alignLeft
|
|
529
529
|
},
|
|
530
530
|
{
|
|
531
531
|
value: "center",
|
|
532
|
-
label:
|
|
532
|
+
label: x(i).title.alignCenter
|
|
533
533
|
},
|
|
534
534
|
{
|
|
535
535
|
value: "right",
|
|
536
|
-
label:
|
|
536
|
+
label: x(i).title.alignRight
|
|
537
537
|
}
|
|
538
538
|
],
|
|
539
539
|
"model-value": e.block.align ?? "center",
|
|
540
|
-
"onUpdate:modelValue":
|
|
540
|
+
"onUpdate:modelValue": n[11] ||= (e) => c("align", e)
|
|
541
541
|
}, null, 8, ["options", "model-value"])])
|
|
542
542
|
], 64));
|
|
543
543
|
}
|
|
@@ -549,13 +549,13 @@ var st = Fe({
|
|
|
549
549
|
},
|
|
550
550
|
emits: ["update:modelValue"],
|
|
551
551
|
setup(e, { emit: n }) {
|
|
552
|
-
let r = e, i = n, { t:
|
|
553
|
-
T(
|
|
554
|
-
!e &&
|
|
552
|
+
let r = e, i = n, { t: a } = B(), o = p(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), c = t(o.value);
|
|
553
|
+
T(o, (e) => {
|
|
554
|
+
!e && c.value && (c.value = !1);
|
|
555
555
|
});
|
|
556
|
-
function
|
|
556
|
+
function l(e, t) {
|
|
557
557
|
let n = r.modelValue[e], a = Math.max(0, n + t);
|
|
558
|
-
|
|
558
|
+
c.value ? i("update:modelValue", {
|
|
559
559
|
top: a,
|
|
560
560
|
right: a,
|
|
561
561
|
bottom: a,
|
|
@@ -565,9 +565,9 @@ var st = Fe({
|
|
|
565
565
|
[e]: a
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function u(e, t) {
|
|
569
569
|
let n = Math.max(0, t);
|
|
570
|
-
|
|
570
|
+
c.value ? i("update:modelValue", {
|
|
571
571
|
top: n,
|
|
572
572
|
right: n,
|
|
573
573
|
bottom: n,
|
|
@@ -577,8 +577,8 @@ var st = Fe({
|
|
|
577
577
|
[e]: n
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
|
-
function
|
|
581
|
-
if (
|
|
580
|
+
function d() {
|
|
581
|
+
if (c.value = !c.value, c.value) {
|
|
582
582
|
let e = r.modelValue.top;
|
|
583
583
|
i("update:modelValue", {
|
|
584
584
|
top: e,
|
|
@@ -588,29 +588,29 @@ var st = Fe({
|
|
|
588
588
|
});
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
return (
|
|
591
|
+
return (t, n) => (_(), h("div", Xt, [y("label", Zt, s(e.label), 1), y("div", Qt, [
|
|
592
592
|
y("div", $t, [
|
|
593
593
|
y("button", {
|
|
594
|
-
"aria-label":
|
|
595
|
-
class:
|
|
596
|
-
onClick:
|
|
597
|
-
}, [f(
|
|
594
|
+
"aria-label": x(a).spacingControl.decreaseTop,
|
|
595
|
+
class: v([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
596
|
+
onClick: n[0] ||= (e) => l("top", -1)
|
|
597
|
+
}, [f(x(Re), {
|
|
598
598
|
size: 12,
|
|
599
599
|
"stroke-width": 2
|
|
600
600
|
})], 10, en),
|
|
601
601
|
y("input", {
|
|
602
602
|
type: "number",
|
|
603
|
-
class:
|
|
603
|
+
class: v(vn),
|
|
604
604
|
value: e.modelValue.top,
|
|
605
|
-
"aria-label":
|
|
605
|
+
"aria-label": x(a).spacingControl.top,
|
|
606
606
|
min: "0",
|
|
607
|
-
onInput:
|
|
607
|
+
onInput: n[1] ||= (e) => u("top", Number(e.target.value))
|
|
608
608
|
}, null, 40, tn),
|
|
609
609
|
y("button", {
|
|
610
|
-
"aria-label":
|
|
611
|
-
class:
|
|
612
|
-
onClick:
|
|
613
|
-
}, [f(
|
|
610
|
+
"aria-label": x(a).spacingControl.increaseTop,
|
|
611
|
+
class: v([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
612
|
+
onClick: n[2] ||= (e) => l("top", 1)
|
|
613
|
+
}, [f(x(H), {
|
|
614
614
|
size: 12,
|
|
615
615
|
"stroke-width": 2
|
|
616
616
|
})], 10, nn)
|
|
@@ -618,66 +618,66 @@ var st = Fe({
|
|
|
618
618
|
y("div", rn, [
|
|
619
619
|
y("div", an, [
|
|
620
620
|
y("button", {
|
|
621
|
-
"aria-label":
|
|
622
|
-
class:
|
|
623
|
-
onClick:
|
|
624
|
-
}, [f(
|
|
621
|
+
"aria-label": x(a).spacingControl.decreaseLeft,
|
|
622
|
+
class: v([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
623
|
+
onClick: n[3] ||= (e) => l("left", -1)
|
|
624
|
+
}, [f(x(Re), {
|
|
625
625
|
size: 12,
|
|
626
626
|
"stroke-width": 2
|
|
627
627
|
})], 10, on),
|
|
628
628
|
y("input", {
|
|
629
629
|
type: "number",
|
|
630
|
-
class:
|
|
630
|
+
class: v(vn),
|
|
631
631
|
value: e.modelValue.left,
|
|
632
|
-
"aria-label":
|
|
632
|
+
"aria-label": x(a).spacingControl.left,
|
|
633
633
|
min: "0",
|
|
634
|
-
onInput:
|
|
634
|
+
onInput: n[4] ||= (e) => u("left", Number(e.target.value))
|
|
635
635
|
}, null, 40, sn),
|
|
636
636
|
y("button", {
|
|
637
|
-
"aria-label":
|
|
638
|
-
class:
|
|
639
|
-
onClick:
|
|
640
|
-
}, [f(
|
|
637
|
+
"aria-label": x(a).spacingControl.increaseLeft,
|
|
638
|
+
class: v([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
639
|
+
onClick: n[5] ||= (e) => l("left", 1)
|
|
640
|
+
}, [f(x(H), {
|
|
641
641
|
size: 12,
|
|
642
642
|
"stroke-width": 2
|
|
643
643
|
})], 10, cn)
|
|
644
644
|
]),
|
|
645
645
|
y("button", {
|
|
646
|
-
class:
|
|
647
|
-
"aria-label":
|
|
648
|
-
title:
|
|
649
|
-
onClick:
|
|
650
|
-
}, [
|
|
646
|
+
class: v(["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)]", c.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
647
|
+
"aria-label": c.value ? x(a).spacingControl.unlock : x(a).spacingControl.lockAll,
|
|
648
|
+
title: c.value ? x(a).spacingControl.unlock : x(a).spacingControl.lockAll,
|
|
649
|
+
onClick: d
|
|
650
|
+
}, [c.value ? (_(), S(x(ct), {
|
|
651
651
|
key: 0,
|
|
652
652
|
size: 14,
|
|
653
653
|
"stroke-width": 2
|
|
654
|
-
})) : (_(), S(
|
|
654
|
+
})) : (_(), S(x(st), {
|
|
655
655
|
key: 1,
|
|
656
656
|
size: 14,
|
|
657
657
|
"stroke-width": 2
|
|
658
658
|
}))], 10, ln),
|
|
659
659
|
y("div", un, [
|
|
660
660
|
y("button", {
|
|
661
|
-
"aria-label":
|
|
662
|
-
class:
|
|
663
|
-
onClick:
|
|
664
|
-
}, [f(
|
|
661
|
+
"aria-label": x(a).spacingControl.decreaseRight,
|
|
662
|
+
class: v([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
663
|
+
onClick: n[6] ||= (e) => l("right", -1)
|
|
664
|
+
}, [f(x(Re), {
|
|
665
665
|
size: 12,
|
|
666
666
|
"stroke-width": 2
|
|
667
667
|
})], 10, dn),
|
|
668
668
|
y("input", {
|
|
669
669
|
type: "number",
|
|
670
|
-
class:
|
|
670
|
+
class: v(vn),
|
|
671
671
|
value: e.modelValue.right,
|
|
672
|
-
"aria-label":
|
|
672
|
+
"aria-label": x(a).spacingControl.right,
|
|
673
673
|
min: "0",
|
|
674
|
-
onInput:
|
|
674
|
+
onInput: n[7] ||= (e) => u("right", Number(e.target.value))
|
|
675
675
|
}, null, 40, fn),
|
|
676
676
|
y("button", {
|
|
677
|
-
"aria-label":
|
|
678
|
-
class:
|
|
679
|
-
onClick:
|
|
680
|
-
}, [f(
|
|
677
|
+
"aria-label": x(a).spacingControl.increaseRight,
|
|
678
|
+
class: v([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
679
|
+
onClick: n[8] ||= (e) => l("right", 1)
|
|
680
|
+
}, [f(x(H), {
|
|
681
681
|
size: 12,
|
|
682
682
|
"stroke-width": 2
|
|
683
683
|
})], 10, pn)
|
|
@@ -685,26 +685,26 @@ var st = Fe({
|
|
|
685
685
|
]),
|
|
686
686
|
y("div", mn, [
|
|
687
687
|
y("button", {
|
|
688
|
-
"aria-label":
|
|
689
|
-
class:
|
|
690
|
-
onClick:
|
|
691
|
-
}, [f(
|
|
688
|
+
"aria-label": x(a).spacingControl.decreaseBottom,
|
|
689
|
+
class: v([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
690
|
+
onClick: n[9] ||= (e) => l("bottom", -1)
|
|
691
|
+
}, [f(x(Re), {
|
|
692
692
|
size: 12,
|
|
693
693
|
"stroke-width": 2
|
|
694
694
|
})], 10, hn),
|
|
695
695
|
y("input", {
|
|
696
696
|
type: "number",
|
|
697
|
-
class:
|
|
697
|
+
class: v(vn),
|
|
698
698
|
value: e.modelValue.bottom,
|
|
699
|
-
"aria-label":
|
|
699
|
+
"aria-label": x(a).spacingControl.bottom,
|
|
700
700
|
min: "0",
|
|
701
|
-
onInput:
|
|
701
|
+
onInput: n[10] ||= (e) => u("bottom", Number(e.target.value))
|
|
702
702
|
}, null, 40, gn),
|
|
703
703
|
y("button", {
|
|
704
|
-
"aria-label":
|
|
705
|
-
class:
|
|
706
|
-
onClick:
|
|
707
|
-
}, [f(
|
|
704
|
+
"aria-label": x(a).spacingControl.increaseBottom,
|
|
705
|
+
class: v([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
706
|
+
onClick: n[11] ||= (e) => l("bottom", 1)
|
|
707
|
+
}, [f(x(H), {
|
|
708
708
|
size: 12,
|
|
709
709
|
"stroke-width": 2
|
|
710
710
|
})], 10, _n)
|
|
@@ -712,15 +712,14 @@ var st = Fe({
|
|
|
712
712
|
])]));
|
|
713
713
|
}
|
|
714
714
|
}), [["__scopeId", "data-v-69591c1e"]]);
|
|
715
|
-
|
|
716
|
-
//#region src/composables/useNaturalImageSize.ts
|
|
715
|
+
// src/composables/useNaturalImageSize.ts
|
|
717
716
|
function bn(e) {
|
|
718
|
-
let
|
|
717
|
+
let n = t(null), r = () => {};
|
|
719
718
|
return T(e, (e) => {
|
|
720
|
-
|
|
721
|
-
|
|
719
|
+
r(), n.value = null, e && (r = pe(e, (e) => {
|
|
720
|
+
n.value = e;
|
|
722
721
|
}));
|
|
723
|
-
}, { immediate: !0 }),
|
|
722
|
+
}, { immediate: !0 }), n;
|
|
724
723
|
}
|
|
725
724
|
function xn() {
|
|
726
725
|
let e = n(Ne, null);
|
|
@@ -736,8 +735,7 @@ function Sn(e, t) {
|
|
|
736
735
|
});
|
|
737
736
|
}) : Promise.resolve(n(r));
|
|
738
737
|
}
|
|
739
|
-
|
|
740
|
-
//#region src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
|
|
738
|
+
// src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
|
|
741
739
|
var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"], En = ["data-testid"], Dn = ["aria-label", "data-testid"], On = [
|
|
742
740
|
"aria-label",
|
|
743
741
|
"title",
|
|
@@ -754,12 +752,12 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
754
752
|
},
|
|
755
753
|
emits: ["update:modelValue"],
|
|
756
754
|
setup(e, { emit: r }) {
|
|
757
|
-
let i = e,
|
|
758
|
-
|
|
755
|
+
let i = e, a = r, { t: c } = B(), l = n(Te, te.liquid), d = p(() => typeof i.modelValue?.url == "string" ? i.modelValue.url : ""), C = p(() => d.value.trim() !== ""), w = xn(), T;
|
|
756
|
+
u(() => clearTimeout(T));
|
|
759
757
|
function E(e) {
|
|
760
|
-
i.measure && !
|
|
758
|
+
i.measure && !A(e, l) && (T = setTimeout(async () => {
|
|
761
759
|
let t = await w(e), n = i.modelValue;
|
|
762
|
-
t && n?.url === e &&
|
|
760
|
+
t && n?.url === e && a("update:modelValue", {
|
|
763
761
|
...n,
|
|
764
762
|
...L(t)
|
|
765
763
|
});
|
|
@@ -767,75 +765,75 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
767
765
|
}
|
|
768
766
|
function D(e, t = null) {
|
|
769
767
|
if (clearTimeout(T), e.trim() === "") {
|
|
770
|
-
|
|
768
|
+
a("update:modelValue", void 0);
|
|
771
769
|
return;
|
|
772
770
|
}
|
|
773
|
-
let { naturalWidth: n, naturalHeight: r, ...
|
|
774
|
-
|
|
775
|
-
...
|
|
771
|
+
let { naturalWidth: n, naturalHeight: r, ...o } = i.modelValue ?? k(e), s = i.measure ? t : null;
|
|
772
|
+
a("update:modelValue", {
|
|
773
|
+
...o,
|
|
776
774
|
url: e,
|
|
777
|
-
...
|
|
778
|
-
}),
|
|
775
|
+
...s ? L(s) : {}
|
|
776
|
+
}), s || E(e);
|
|
779
777
|
}
|
|
780
778
|
function O(e) {
|
|
781
|
-
i.modelValue &&
|
|
779
|
+
i.modelValue && a("update:modelValue", {
|
|
782
780
|
...i.modelValue,
|
|
783
781
|
...e
|
|
784
782
|
});
|
|
785
783
|
}
|
|
786
|
-
let
|
|
784
|
+
let j = p(() => [
|
|
787
785
|
{
|
|
788
786
|
value: "cover",
|
|
789
|
-
label:
|
|
787
|
+
label: c.blockSettings.backgroundSizeCover
|
|
790
788
|
},
|
|
791
789
|
{
|
|
792
790
|
value: "contain",
|
|
793
|
-
label:
|
|
791
|
+
label: c.blockSettings.backgroundSizeContain
|
|
794
792
|
},
|
|
795
793
|
{
|
|
796
794
|
value: "auto",
|
|
797
|
-
label:
|
|
795
|
+
label: c.blockSettings.backgroundSizeAuto
|
|
798
796
|
}
|
|
799
|
-
]),
|
|
800
|
-
"top-left":
|
|
801
|
-
"top-center":
|
|
802
|
-
"top-right":
|
|
803
|
-
"center-left":
|
|
804
|
-
"center-center":
|
|
805
|
-
"center-right":
|
|
806
|
-
"bottom-left":
|
|
807
|
-
"bottom-center":
|
|
808
|
-
"bottom-right":
|
|
809
|
-
})),
|
|
797
|
+
]), M = p(() => ({
|
|
798
|
+
"top-left": c.blockSettings.backgroundPositionTopLeft,
|
|
799
|
+
"top-center": c.blockSettings.backgroundPositionTopCenter,
|
|
800
|
+
"top-right": c.blockSettings.backgroundPositionTopRight,
|
|
801
|
+
"center-left": c.blockSettings.backgroundPositionCenterLeft,
|
|
802
|
+
"center-center": c.blockSettings.backgroundPositionCenter,
|
|
803
|
+
"center-right": c.blockSettings.backgroundPositionCenterRight,
|
|
804
|
+
"bottom-left": c.blockSettings.backgroundPositionBottomLeft,
|
|
805
|
+
"bottom-center": c.blockSettings.backgroundPositionBottomCenter,
|
|
806
|
+
"bottom-right": c.blockSettings.backgroundPositionBottomRight
|
|
807
|
+
})), N = p(() => ee.flatMap((e) => ie.map((t) => ({
|
|
810
808
|
x: t,
|
|
811
809
|
y: e,
|
|
812
|
-
label:
|
|
810
|
+
label: M.value[`${e}-${t}`]
|
|
813
811
|
}))));
|
|
814
812
|
function P(e) {
|
|
815
813
|
return i.modelValue?.position?.x === e.x && i.modelValue?.position?.y === e.y;
|
|
816
814
|
}
|
|
817
|
-
let F =
|
|
815
|
+
let F = t(), { canBrowse: ne, isUploading: re, showOverlay: I, openMediaBrowser: ae } = _e({
|
|
818
816
|
target: F,
|
|
819
|
-
blocked: () =>
|
|
817
|
+
blocked: () => A(d.value, l),
|
|
820
818
|
apply: (e) => D(e.url, me(e.width, e.height))
|
|
821
819
|
});
|
|
822
|
-
return (
|
|
820
|
+
return (t, n) => (_(), h("div", Cn, [y("div", null, [y("label", { class: v(x(U)) }, s(x(c).blockSettings.backgroundImage), 3), y("div", {
|
|
823
821
|
ref_key: "dropZoneRef",
|
|
824
822
|
ref: F,
|
|
825
823
|
class: "tpl:relative",
|
|
826
824
|
"data-testid": `${e.testidPrefix}-bg-url`
|
|
827
825
|
}, [
|
|
828
|
-
|
|
826
|
+
x(I) ? (_(), S(fe, {
|
|
829
827
|
key: 0,
|
|
830
|
-
uploading:
|
|
828
|
+
uploading: x(re)
|
|
831
829
|
}, null, 8, ["uploading"])) : m("", !0),
|
|
832
830
|
f(J, {
|
|
833
|
-
"model-value":
|
|
831
|
+
"model-value": d.value,
|
|
834
832
|
type: "url",
|
|
835
|
-
placeholder:
|
|
833
|
+
placeholder: x(c).blockSettings.backgroundImagePlaceholder,
|
|
836
834
|
"onUpdate:modelValue": D
|
|
837
835
|
}, null, 8, ["model-value", "placeholder"]),
|
|
838
|
-
|
|
836
|
+
x(ne) ? (_(), h("button", {
|
|
839
837
|
key: 1,
|
|
840
838
|
type: "button",
|
|
841
839
|
"data-testid": `${e.testidPrefix}-bg-browse`,
|
|
@@ -845,46 +843,46 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
845
843
|
color: "var(--tpl-primary)",
|
|
846
844
|
"background-color": "var(--tpl-bg)"
|
|
847
845
|
},
|
|
848
|
-
onClick:
|
|
849
|
-
}, [f(
|
|
846
|
+
onClick: n[0] ||= (...e) => x(ae) && x(ae)(...e)
|
|
847
|
+
}, [f(x(Ve), {
|
|
850
848
|
size: 14,
|
|
851
849
|
"stroke-width": 1.5
|
|
852
|
-
}), g(" " +
|
|
853
|
-
], 8, wn)]), C.value && e.modelValue ? (_(), h(
|
|
850
|
+
}), g(" " + s(x(c).image.browseMedia), 1)], 8, Tn)) : m("", !0)
|
|
851
|
+
], 8, wn)]), C.value && e.modelValue ? (_(), h(b, { key: 0 }, [
|
|
854
852
|
e.heroMode ? m("", !0) : (_(), h("div", {
|
|
855
853
|
key: 0,
|
|
856
854
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
857
|
-
}, [y("label", { class:
|
|
858
|
-
options:
|
|
855
|
+
}, [y("label", { class: v(x(U)) }, s(x(c).blockSettings.backgroundSize), 3), f(Y, {
|
|
856
|
+
options: j.value,
|
|
859
857
|
"model-value": e.modelValue.size,
|
|
860
|
-
"onUpdate:modelValue":
|
|
858
|
+
"onUpdate:modelValue": n[1] ||= (e) => O({ size: e })
|
|
861
859
|
}, null, 8, ["options", "model-value"])], 8, En)),
|
|
862
|
-
y("div", null, [y("label", { class:
|
|
860
|
+
y("div", null, [y("label", { class: v(x(U)) }, s(x(c).blockSettings.backgroundPosition), 3), y("div", {
|
|
863
861
|
role: "group",
|
|
864
|
-
"aria-label":
|
|
862
|
+
"aria-label": x(c).blockSettings.backgroundPosition,
|
|
865
863
|
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
866
864
|
class: "tpl:grid tpl:w-24 tpl:grid-cols-3 tpl:gap-1"
|
|
867
|
-
}, [(_(!0), h(
|
|
868
|
-
key: `${
|
|
865
|
+
}, [(_(!0), h(b, null, o(N.value, (t) => (_(), h("button", {
|
|
866
|
+
key: `${t.y}-${t.x}`,
|
|
869
867
|
type: "button",
|
|
870
|
-
"aria-label":
|
|
871
|
-
title:
|
|
872
|
-
"aria-pressed": P(
|
|
873
|
-
"data-testid": `${e.testidPrefix}-bg-position-${
|
|
874
|
-
class:
|
|
868
|
+
"aria-label": t.label,
|
|
869
|
+
title: t.label,
|
|
870
|
+
"aria-pressed": P(t),
|
|
871
|
+
"data-testid": `${e.testidPrefix}-bg-position-${t.y}-${t.x}`,
|
|
872
|
+
class: v(["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)]"]),
|
|
875
873
|
onClick: (e) => O({ position: {
|
|
876
|
-
x:
|
|
877
|
-
y:
|
|
874
|
+
x: t.x,
|
|
875
|
+
y: t.y
|
|
878
876
|
} })
|
|
879
|
-
}, [y("span", { class:
|
|
877
|
+
}, [y("span", { class: v(["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, On))), 128))], 8, Dn)]),
|
|
880
878
|
e.heroMode ? m("", !0) : (_(), h("div", {
|
|
881
879
|
key: 1,
|
|
882
880
|
"data-testid": `${e.testidPrefix}-bg-repeat`
|
|
883
881
|
}, [f(q, {
|
|
884
882
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
885
883
|
"model-value": e.modelValue.repeat,
|
|
886
|
-
label:
|
|
887
|
-
"onUpdate:modelValue":
|
|
884
|
+
label: x(c).blockSettings.backgroundRepeat,
|
|
885
|
+
"onUpdate:modelValue": n[2] ||= (e) => O({ repeat: e })
|
|
888
886
|
}, null, 8, ["model-value", "label"])], 8, kn))
|
|
889
887
|
], 64)) : m("", !0)]));
|
|
890
888
|
}
|
|
@@ -898,16 +896,16 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
898
896
|
},
|
|
899
897
|
emits: ["toggle"],
|
|
900
898
|
setup(e) {
|
|
901
|
-
return (
|
|
899
|
+
return (t, n) => (_(), h("div", { class: v(["tpl:py-3", e.noBorder ? "" : "tpl:border-t tpl:border-[var(--tpl-border)]"]) }, [y("button", {
|
|
902
900
|
type: "button",
|
|
903
901
|
"data-testid": e.headerTestId,
|
|
904
902
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
905
|
-
onClick:
|
|
906
|
-
}, [f(
|
|
907
|
-
class:
|
|
903
|
+
onClick: n[0] ||= (e) => t.$emit("toggle")
|
|
904
|
+
}, [f(x(Ie), {
|
|
905
|
+
class: v(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
908
906
|
size: 12,
|
|
909
907
|
"stroke-width": 2
|
|
910
|
-
}, null, 8, ["class"]), y("span", null,
|
|
908
|
+
}, null, 8, ["class"]), y("span", null, s(e.title), 1)], 8, jn), l(y("div", Mn, [c(t.$slots, "default")], 512), [[D, e.open]])], 2));
|
|
911
909
|
}
|
|
912
910
|
}), Pn = {
|
|
913
911
|
key: 0,
|
|
@@ -930,91 +928,91 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
930
928
|
__name: "HeroControl",
|
|
931
929
|
props: { section: {} },
|
|
932
930
|
emits: ["update"],
|
|
933
|
-
setup(e, { emit:
|
|
934
|
-
function
|
|
931
|
+
setup(e, { emit: t }) {
|
|
932
|
+
function r(e) {
|
|
935
933
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
936
934
|
}
|
|
937
|
-
let
|
|
935
|
+
let i = e, a = t, { t: o } = B(), c = n(Te, te.liquid), l = n(Oe, null), u = n(Ce, void 0), d = xn(), g = p(() => typeof i.section.backgroundImage?.url == "string" ? i.section.backgroundImage.url : ""), b = p(() => g.value.trim() !== ""), C = p(() => A(g.value, c)), w = p(() => i.section.hero), T = p(() => i.section.columns === "1"), E = p(() => w.value ? r(w.value.height) ? "fixed" : "image" : "fit"), D = p(() => r(w.value?.height) ? w.value.height : Bn), O = p(() => [
|
|
938
936
|
{
|
|
939
937
|
value: "fit",
|
|
940
|
-
label:
|
|
938
|
+
label: o.blockSettings.heroHeightFit
|
|
941
939
|
},
|
|
942
940
|
{
|
|
943
941
|
value: "image",
|
|
944
|
-
label:
|
|
942
|
+
label: o.blockSettings.heroHeightImage,
|
|
945
943
|
disabled: C.value
|
|
946
944
|
},
|
|
947
945
|
{
|
|
948
946
|
value: "fixed",
|
|
949
|
-
label:
|
|
947
|
+
label: o.blockSettings.heroHeightFixed
|
|
950
948
|
}
|
|
951
949
|
]), k = p(() => [
|
|
952
950
|
{
|
|
953
951
|
value: "top",
|
|
954
|
-
label:
|
|
952
|
+
label: o.blockSettings.heroAlignTop
|
|
955
953
|
},
|
|
956
954
|
{
|
|
957
955
|
value: "middle",
|
|
958
|
-
label:
|
|
956
|
+
label: o.blockSettings.heroAlignMiddle
|
|
959
957
|
},
|
|
960
958
|
{
|
|
961
959
|
value: "bottom",
|
|
962
|
-
label:
|
|
960
|
+
label: o.blockSettings.heroAlignBottom
|
|
963
961
|
}
|
|
964
|
-
]),
|
|
965
|
-
function
|
|
966
|
-
return (
|
|
962
|
+
]), j = p(() => E.value === "image" && b.value && !C.value && I(i.section.backgroundImage) === null);
|
|
963
|
+
function M() {
|
|
964
|
+
return (l ? ve(l.content.value, i.section.id, u) : null) ?? de(l?.state.content.settings);
|
|
967
965
|
}
|
|
968
|
-
function
|
|
966
|
+
function N(e) {
|
|
969
967
|
let t = w.value?.verticalAlign ?? "middle";
|
|
970
968
|
if (e === "image") {
|
|
971
|
-
E.value !== "image" &&
|
|
969
|
+
E.value !== "image" && a("update", { hero: {
|
|
972
970
|
height: "image",
|
|
973
971
|
verticalAlign: t
|
|
974
|
-
} }),
|
|
972
|
+
} }), P();
|
|
975
973
|
return;
|
|
976
974
|
}
|
|
977
975
|
if (e === E.value) return;
|
|
978
976
|
if (e === "fit") {
|
|
979
|
-
|
|
977
|
+
a("update", { hero: void 0 });
|
|
980
978
|
return;
|
|
981
979
|
}
|
|
982
|
-
let n =
|
|
983
|
-
|
|
980
|
+
let n = I(i.section.backgroundImage), r = n === null ? Bn : Math.round(M() * n);
|
|
981
|
+
a("update", { hero: {
|
|
984
982
|
height: r,
|
|
985
983
|
verticalAlign: t
|
|
986
984
|
} });
|
|
987
985
|
}
|
|
988
|
-
async function
|
|
989
|
-
let e =
|
|
990
|
-
if (!e || !
|
|
991
|
-
let t = e.url, n = await
|
|
992
|
-
n && r && r.url === t &&
|
|
986
|
+
async function P() {
|
|
987
|
+
let e = i.section.backgroundImage;
|
|
988
|
+
if (!e || !b.value || C.value || I(e) !== null) return;
|
|
989
|
+
let t = e.url, n = await d(t), r = i.section.backgroundImage;
|
|
990
|
+
n && r && r.url === t && a("update", { backgroundImage: {
|
|
993
991
|
...r,
|
|
994
992
|
...L(n)
|
|
995
993
|
} });
|
|
996
994
|
}
|
|
997
|
-
function
|
|
998
|
-
!w.value || !Number.isFinite(e) || e < 1 ||
|
|
995
|
+
function F(e) {
|
|
996
|
+
!w.value || !Number.isFinite(e) || e < 1 || a("update", { hero: {
|
|
999
997
|
...w.value,
|
|
1000
998
|
height: Math.round(e)
|
|
1001
999
|
} });
|
|
1002
1000
|
}
|
|
1003
|
-
function
|
|
1004
|
-
w.value &&
|
|
1001
|
+
function ee(e) {
|
|
1002
|
+
w.value && a("update", { hero: {
|
|
1005
1003
|
...w.value,
|
|
1006
1004
|
verticalAlign: e
|
|
1007
1005
|
} });
|
|
1008
1006
|
}
|
|
1009
|
-
return (e,
|
|
1007
|
+
return (e, t) => !T.value && w.value ? (_(), h("p", Pn, s(x(o).section.heroNeedsOneColumn), 1)) : T.value && (b.value || w.value) ? (_(), h("div", Fn, [
|
|
1010
1008
|
y("div", In, [
|
|
1011
|
-
y("label", { class:
|
|
1009
|
+
y("label", { class: v(x(U)) }, s(x(o).blockSettings.heroHeight), 3),
|
|
1012
1010
|
f(Y, {
|
|
1013
1011
|
options: O.value,
|
|
1014
1012
|
"model-value": E.value,
|
|
1015
|
-
"onUpdate:modelValue":
|
|
1013
|
+
"onUpdate:modelValue": N
|
|
1016
1014
|
}, null, 8, ["options", "model-value"]),
|
|
1017
|
-
C.value ? (_(), h("p", Ln,
|
|
1015
|
+
C.value ? (_(), h("p", Ln, s(x(o).blockSettings.heroMatchImageMergeTag), 1)) : j.value ? (_(), h("p", Rn, s(x(o).blockSettings.heroSizeUnknown), 1)) : m("", !0)
|
|
1018
1016
|
]),
|
|
1019
1017
|
E.value === "fixed" ? (_(), S(X, {
|
|
1020
1018
|
key: 0,
|
|
@@ -1022,12 +1020,12 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1022
1020
|
min: 1,
|
|
1023
1021
|
suffix: "px",
|
|
1024
1022
|
testid: "section-hero-height-px",
|
|
1025
|
-
"onUpdate:modelValue":
|
|
1023
|
+
"onUpdate:modelValue": F
|
|
1026
1024
|
}, null, 8, ["model-value"])) : m("", !0),
|
|
1027
|
-
w.value ? (_(), h("div", zn, [y("label", { class:
|
|
1025
|
+
w.value ? (_(), h("div", zn, [y("label", { class: v(x(U)) }, s(x(o).blockSettings.heroAlign), 3), f(Y, {
|
|
1028
1026
|
options: k.value,
|
|
1029
1027
|
"model-value": w.value.verticalAlign,
|
|
1030
|
-
"onUpdate:modelValue":
|
|
1028
|
+
"onUpdate:modelValue": ee
|
|
1031
1029
|
}, null, 8, ["options", "model-value"])])) : m("", !0)
|
|
1032
1030
|
])) : m("", !0);
|
|
1033
1031
|
}
|
|
@@ -1050,8 +1048,8 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1050
1048
|
isFirstSection: { type: Boolean }
|
|
1051
1049
|
},
|
|
1052
1050
|
emits: ["update"],
|
|
1053
|
-
setup(e, { emit:
|
|
1054
|
-
let
|
|
1051
|
+
setup(e, { emit: a }) {
|
|
1052
|
+
let c = e, u = a, { t: C } = B(), w = n(ke, []), D = n(Ae, !1), O = d(/* @__PURE__ */ new Set()), k = t(!1), A = t(""), j = t(""), M = [{
|
|
1055
1053
|
key: "desktop",
|
|
1056
1054
|
icon: We,
|
|
1057
1055
|
labelKey: "showOnDesktop"
|
|
@@ -1063,55 +1061,55 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1063
1061
|
function N(e) {
|
|
1064
1062
|
O.has(e) ? O.delete(e) : O.add(e);
|
|
1065
1063
|
}
|
|
1066
|
-
let P = p(() => w.length > 0 || D), F = p(() =>
|
|
1067
|
-
function
|
|
1068
|
-
k.value = !0, F.value &&
|
|
1064
|
+
let P = p(() => w.length > 0 || D), F = p(() => c.block.displayCondition ? !w.some((e) => e.label === c.block.displayCondition?.label) : !1);
|
|
1065
|
+
function ee() {
|
|
1066
|
+
k.value = !0, F.value && c.block.displayCondition ? (A.value = c.block.displayCondition.before, j.value = c.block.displayCondition.after ?? "") : (A.value = "", j.value = "");
|
|
1069
1067
|
}
|
|
1070
|
-
function
|
|
1071
|
-
A.value.trim() && (
|
|
1068
|
+
function te() {
|
|
1069
|
+
A.value.trim() && (u("update", { displayCondition: {
|
|
1072
1070
|
label: C.blockSettings.customCondition,
|
|
1073
1071
|
before: A.value.trim(),
|
|
1074
1072
|
after: j.value.trim()
|
|
1075
1073
|
} }), k.value = !1, A.value = "", j.value = "");
|
|
1076
1074
|
}
|
|
1077
|
-
T(() =>
|
|
1075
|
+
T(() => c.block.displayCondition, (e) => {
|
|
1078
1076
|
e ? F.value && (A.value = e.before, j.value = e.after ?? "") : (k.value = !1, A.value = "", j.value = "");
|
|
1079
1077
|
}, { immediate: !0 });
|
|
1080
|
-
let
|
|
1078
|
+
let ne = p(() => {
|
|
1081
1079
|
let e = {};
|
|
1082
1080
|
for (let t of w) {
|
|
1083
1081
|
let n = t.group ?? "";
|
|
1084
1082
|
e[n] || (e[n] = []), e[n].push(t);
|
|
1085
1083
|
}
|
|
1086
1084
|
return e;
|
|
1087
|
-
}),
|
|
1088
|
-
function
|
|
1089
|
-
|
|
1090
|
-
...
|
|
1085
|
+
}), re = p(() => c.block.type === "section" && oe(c.block)?.applied === !0);
|
|
1086
|
+
function I(e, t) {
|
|
1087
|
+
u("update", { styles: {
|
|
1088
|
+
...c.block.styles,
|
|
1091
1089
|
[e]: t
|
|
1092
1090
|
} });
|
|
1093
1091
|
}
|
|
1094
|
-
function
|
|
1095
|
-
return
|
|
1092
|
+
function ie(e) {
|
|
1093
|
+
return c.block.visibility?.[e] !== !1;
|
|
1096
1094
|
}
|
|
1097
|
-
function
|
|
1095
|
+
function ae(e) {
|
|
1098
1096
|
let t = {
|
|
1099
|
-
desktop:
|
|
1100
|
-
mobile:
|
|
1097
|
+
desktop: ie("desktop"),
|
|
1098
|
+
mobile: ie("mobile")
|
|
1101
1099
|
};
|
|
1102
|
-
t[e] = !t[e],
|
|
1100
|
+
t[e] = !t[e], u("update", { visibility: t });
|
|
1103
1101
|
}
|
|
1104
|
-
return (
|
|
1102
|
+
return (t, n) => (_(), h("div", { class: v(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1105
1103
|
f(Nn, {
|
|
1106
|
-
title:
|
|
1104
|
+
title: x(C).blockSettings.spacing,
|
|
1107
1105
|
open: O.has("spacing"),
|
|
1108
1106
|
"no-border": e.isFirstSection,
|
|
1109
|
-
onToggle:
|
|
1107
|
+
onToggle: n[1] ||= (e) => N("spacing")
|
|
1110
1108
|
}, {
|
|
1111
|
-
default:
|
|
1112
|
-
label:
|
|
1109
|
+
default: r(() => [f(yn, {
|
|
1110
|
+
label: x(C).blockSettings.padding,
|
|
1113
1111
|
"model-value": e.block.styles.padding,
|
|
1114
|
-
"onUpdate:modelValue":
|
|
1112
|
+
"onUpdate:modelValue": n[0] ||= (e) => I("padding", e)
|
|
1115
1113
|
}, null, 8, ["label", "model-value"])]),
|
|
1116
1114
|
_: 1
|
|
1117
1115
|
}, 8, [
|
|
@@ -1120,17 +1118,17 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1120
1118
|
"no-border"
|
|
1121
1119
|
]),
|
|
1122
1120
|
f(Nn, {
|
|
1123
|
-
title:
|
|
1121
|
+
title: x(C).blockSettings.background,
|
|
1124
1122
|
open: O.has("bg"),
|
|
1125
1123
|
"header-test-id": "block-settings-background",
|
|
1126
|
-
onToggle:
|
|
1124
|
+
onToggle: n[5] ||= (e) => N("bg")
|
|
1127
1125
|
}, {
|
|
1128
|
-
default:
|
|
1129
|
-
y("label", { class:
|
|
1126
|
+
default: r(() => [
|
|
1127
|
+
y("label", { class: v(x(U)) }, s(x(C).blockSettings.color), 3),
|
|
1130
1128
|
f(V, {
|
|
1131
1129
|
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1132
1130
|
"allow-transparent": "",
|
|
1133
|
-
"onUpdate:modelValue":
|
|
1131
|
+
"onUpdate:modelValue": n[2] ||= (e) => I("backgroundColor", e)
|
|
1134
1132
|
}, null, 8, ["model-value"]),
|
|
1135
1133
|
e.block.type === "section" ? (_(), S(An, {
|
|
1136
1134
|
key: 0,
|
|
@@ -1138,33 +1136,33 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1138
1136
|
"model-value": e.block.backgroundImage,
|
|
1139
1137
|
"testid-prefix": "section",
|
|
1140
1138
|
measure: "",
|
|
1141
|
-
"hero-mode":
|
|
1142
|
-
"onUpdate:modelValue":
|
|
1139
|
+
"hero-mode": re.value,
|
|
1140
|
+
"onUpdate:modelValue": n[3] ||= (e) => u("update", { backgroundImage: e })
|
|
1143
1141
|
}, null, 8, ["model-value", "hero-mode"])) : m("", !0),
|
|
1144
1142
|
e.block.type === "section" ? (_(), S(Vn, {
|
|
1145
1143
|
key: 1,
|
|
1146
1144
|
section: e.block,
|
|
1147
|
-
onUpdate:
|
|
1145
|
+
onUpdate: n[4] ||= (e) => u("update", e)
|
|
1148
1146
|
}, null, 8, ["section"])) : m("", !0)
|
|
1149
1147
|
]),
|
|
1150
1148
|
_: 1
|
|
1151
1149
|
}, 8, ["title", "open"]),
|
|
1152
1150
|
f(Nn, {
|
|
1153
|
-
title:
|
|
1151
|
+
title: x(C).blockSettings.display,
|
|
1154
1152
|
open: O.has("display"),
|
|
1155
|
-
onToggle:
|
|
1153
|
+
onToggle: n[6] ||= (e) => N("display")
|
|
1156
1154
|
}, {
|
|
1157
|
-
default:
|
|
1155
|
+
default: r(() => [y("div", Hn, [(_(), h(b, null, o(M, (e) => f(q, {
|
|
1158
1156
|
key: e.key,
|
|
1159
1157
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1160
|
-
"model-value":
|
|
1161
|
-
label:
|
|
1162
|
-
"onUpdate:modelValue": (t) =>
|
|
1158
|
+
"model-value": ie(e.key),
|
|
1159
|
+
label: x(C).blockSettings[e.labelKey],
|
|
1160
|
+
"onUpdate:modelValue": (t) => ae(e.key)
|
|
1163
1161
|
}, {
|
|
1164
|
-
default:
|
|
1162
|
+
default: r(() => [y("span", Un, [(_(), S(i(e.icon), {
|
|
1165
1163
|
size: 14,
|
|
1166
1164
|
"stroke-width": 1.5
|
|
1167
|
-
})), g(" " +
|
|
1165
|
+
})), g(" " + s(x(C).blockSettings[e.labelKey]), 1)])]),
|
|
1168
1166
|
_: 2
|
|
1169
1167
|
}, 1032, [
|
|
1170
1168
|
"model-value",
|
|
@@ -1176,58 +1174,58 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1176
1174
|
P.value ? (_(), S(Nn, {
|
|
1177
1175
|
key: 0,
|
|
1178
1176
|
"header-test-id": "display-condition-section",
|
|
1179
|
-
title:
|
|
1177
|
+
title: x(C).blockSettings.displayCondition,
|
|
1180
1178
|
open: O.has("condition"),
|
|
1181
|
-
onToggle:
|
|
1179
|
+
onToggle: n[10] ||= (e) => N("condition")
|
|
1182
1180
|
}, {
|
|
1183
|
-
default:
|
|
1181
|
+
default: r(() => [y("div", Wn, [y("select", {
|
|
1184
1182
|
"data-testid": "display-condition-select",
|
|
1185
|
-
class:
|
|
1183
|
+
class: v(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", e.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
|
|
1186
1184
|
value: k.value || F.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1187
|
-
onChange:
|
|
1185
|
+
onChange: n[7] ||= (e) => {
|
|
1188
1186
|
let t = e.target.value;
|
|
1189
1187
|
if (t === "__custom__") {
|
|
1190
|
-
|
|
1188
|
+
ee();
|
|
1191
1189
|
return;
|
|
1192
1190
|
}
|
|
1193
1191
|
if (k.value = !1, !t) {
|
|
1194
|
-
|
|
1192
|
+
u("update", { displayCondition: void 0 });
|
|
1195
1193
|
return;
|
|
1196
1194
|
}
|
|
1197
|
-
let n =
|
|
1198
|
-
n &&
|
|
1195
|
+
let n = x(w).find((e) => e.label === t);
|
|
1196
|
+
n && u("update", { displayCondition: n });
|
|
1199
1197
|
}
|
|
1200
1198
|
}, [
|
|
1201
|
-
y("option", Kn,
|
|
1202
|
-
(_(!0), h(
|
|
1199
|
+
y("option", Kn, s(x(C).blockSettings.noCondition), 1),
|
|
1200
|
+
(_(!0), h(b, null, o(ne.value, (e, t) => (_(), h(b, { key: t }, [t ? (_(), h("optgroup", {
|
|
1203
1201
|
key: 0,
|
|
1204
1202
|
label: String(t)
|
|
1205
|
-
}, [(_(!0), h(
|
|
1203
|
+
}, [(_(!0), h(b, null, o(e, (e) => (_(), h("option", {
|
|
1206
1204
|
key: e.label,
|
|
1207
1205
|
value: e.label
|
|
1208
|
-
},
|
|
1206
|
+
}, s(e.label), 9, Jn))), 128))], 8, qn)) : (_(!0), h(b, { key: 1 }, o(e, (e) => (_(), h("option", {
|
|
1209
1207
|
key: e.label,
|
|
1210
1208
|
value: e.label
|
|
1211
|
-
},
|
|
1212
|
-
|
|
1209
|
+
}, s(e.label), 9, Yn))), 128))], 64))), 128)),
|
|
1210
|
+
x(D) ? (_(), h("option", Xn, s(x(C).blockSettings.customCondition), 1)) : m("", !0)
|
|
1213
1211
|
], 42, Gn), k.value || F.value ? (_(), h("div", Zn, [
|
|
1214
|
-
y("div", null, [y("label", Qn,
|
|
1215
|
-
"onUpdate:modelValue":
|
|
1212
|
+
y("div", null, [y("label", Qn, s(x(C).blockSettings.customConditionBefore), 1), l(y("textarea", {
|
|
1213
|
+
"onUpdate:modelValue": n[8] ||= (e) => A.value = e,
|
|
1216
1214
|
rows: "2",
|
|
1217
|
-
class:
|
|
1215
|
+
class: v(x($e))
|
|
1218
1216
|
}, null, 2), [[E, A.value]])]),
|
|
1219
|
-
y("div", null, [y("label", $n,
|
|
1220
|
-
"onUpdate:modelValue":
|
|
1217
|
+
y("div", null, [y("label", $n, s(x(C).blockSettings.customConditionAfter), 1), l(y("textarea", {
|
|
1218
|
+
"onUpdate:modelValue": n[9] ||= (e) => j.value = e,
|
|
1221
1219
|
rows: "2",
|
|
1222
|
-
class:
|
|
1220
|
+
class: v(x($e))
|
|
1223
1221
|
}, null, 2), [[E, j.value]])]),
|
|
1224
1222
|
y("div", er, [y("button", {
|
|
1225
1223
|
type: "button",
|
|
1226
|
-
class:
|
|
1224
|
+
class: v(x(rt)),
|
|
1227
1225
|
disabled: !A.value.trim(),
|
|
1228
|
-
onClick:
|
|
1229
|
-
},
|
|
1230
|
-
])) : e.block.displayCondition && !F.value ? (_(), h(
|
|
1226
|
+
onClick: te
|
|
1227
|
+
}, s(x(C).blockSettings.applyCondition), 11, tr)])
|
|
1228
|
+
])) : e.block.displayCondition && !F.value ? (_(), h(b, { key: 1 }, [e.block.displayCondition.description ? (_(), h("p", nr, s(e.block.displayCondition.description), 1)) : m("", !0), y("div", rr, [y("pre", ir, s(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (_(), h("pre", ar, s(e.block.displayCondition.after), 1)) : m("", !0)])], 64)) : m("", !0)])]),
|
|
1231
1229
|
_: 1
|
|
1232
1230
|
}, 8, ["title", "open"])) : m("", !0)
|
|
1233
1231
|
], 2));
|
|
@@ -1241,19 +1239,19 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1241
1239
|
},
|
|
1242
1240
|
emits: ["update:modelValue"],
|
|
1243
1241
|
setup(e, { emit: t }) {
|
|
1244
|
-
let n = t, { t:
|
|
1245
|
-
return (t,
|
|
1242
|
+
let n = t, { t: i } = B();
|
|
1243
|
+
return (t, a) => (_(), h("div", {
|
|
1246
1244
|
class: "tpl:mb-3.5",
|
|
1247
|
-
title: e.readOnly ?
|
|
1245
|
+
title: e.readOnly ? x(i).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1248
1246
|
}, [f(q, {
|
|
1249
1247
|
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
1250
1248
|
"model-value": e.modelValue,
|
|
1251
1249
|
label: e.field.label,
|
|
1252
1250
|
required: e.field.required,
|
|
1253
1251
|
disabled: e.readOnly,
|
|
1254
|
-
"onUpdate:modelValue":
|
|
1252
|
+
"onUpdate:modelValue": a[0] ||= (e) => n("update:modelValue", e)
|
|
1255
1253
|
}, {
|
|
1256
|
-
default:
|
|
1254
|
+
default: r(() => [g(s(e.field.label) + " ", 1), e.readOnly ? (_(), S(x(ct), {
|
|
1257
1255
|
key: 0,
|
|
1258
1256
|
size: 12,
|
|
1259
1257
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1274,23 +1272,23 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1274
1272
|
readOnly: { type: Boolean }
|
|
1275
1273
|
},
|
|
1276
1274
|
setup(e) {
|
|
1277
|
-
let { t
|
|
1278
|
-
return (
|
|
1279
|
-
g(
|
|
1275
|
+
let { t } = B();
|
|
1276
|
+
return (n, r) => (_(), h("div", lr, [y("label", { class: v(x(U)) }, [
|
|
1277
|
+
g(s(e.label) + " ", 1),
|
|
1280
1278
|
e.readOnly ? (_(), h("span", {
|
|
1281
1279
|
key: 0,
|
|
1282
|
-
title:
|
|
1283
|
-
}, [f(
|
|
1280
|
+
title: x(t).customBlocks.dataSource.readOnlyTooltip
|
|
1281
|
+
}, [f(x(ct), {
|
|
1284
1282
|
size: 12,
|
|
1285
1283
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1286
1284
|
"aria-hidden": "true"
|
|
1287
|
-
}), y("span", dr,
|
|
1285
|
+
}), y("span", dr, s(x(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, ur)) : m("", !0),
|
|
1288
1286
|
e.required ? (_(), h("span", {
|
|
1289
1287
|
key: 1,
|
|
1290
1288
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
1291
|
-
title:
|
|
1292
|
-
}, [
|
|
1293
|
-
], 2),
|
|
1289
|
+
title: x(t).customBlocks.fields.required
|
|
1290
|
+
}, [r[0] ||= y("span", { "aria-hidden": "true" }, "*", -1), y("span", pr, s(x(t).customBlocks.fields.required), 1)], 8, fr)) : m("", !0)
|
|
1291
|
+
], 2), c(n.$slots, "default")]));
|
|
1294
1292
|
}
|
|
1295
1293
|
}), mr = /* @__PURE__ */ w({
|
|
1296
1294
|
__name: "ColorField",
|
|
@@ -1301,20 +1299,20 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1301
1299
|
},
|
|
1302
1300
|
emits: ["update:modelValue"],
|
|
1303
1301
|
setup(e, { emit: t }) {
|
|
1304
|
-
let
|
|
1302
|
+
let i = e, a = t, { t: o } = B(), s = n(De, Pe), c = p(() => be(i.field, s));
|
|
1305
1303
|
return (t, n) => (_(), S(Q, {
|
|
1306
1304
|
label: e.field.label,
|
|
1307
1305
|
required: e.field.required,
|
|
1308
1306
|
"read-only": e.readOnly
|
|
1309
1307
|
}, {
|
|
1310
|
-
default:
|
|
1308
|
+
default: r(() => [f(V, {
|
|
1311
1309
|
"model-value": e.modelValue,
|
|
1312
1310
|
placeholder: e.field.placeholder,
|
|
1313
1311
|
disabled: e.readOnly,
|
|
1314
|
-
presets:
|
|
1315
|
-
"allow-custom":
|
|
1316
|
-
title: e.readOnly ?
|
|
1317
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1312
|
+
presets: c.value.presets,
|
|
1313
|
+
"allow-custom": c.value.allowCustom,
|
|
1314
|
+
title: e.readOnly ? x(o).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1315
|
+
"onUpdate:modelValue": n[0] ||= (e) => a("update:modelValue", e)
|
|
1318
1316
|
}, null, 8, [
|
|
1319
1317
|
"model-value",
|
|
1320
1318
|
"placeholder",
|
|
@@ -1343,49 +1341,49 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1343
1341
|
},
|
|
1344
1342
|
emits: ["update:modelValue"],
|
|
1345
1343
|
setup(e, { emit: n }) {
|
|
1346
|
-
let
|
|
1347
|
-
target:
|
|
1348
|
-
blocked: () => !!
|
|
1349
|
-
apply: (e) =>
|
|
1344
|
+
let i = e, a = n, { t: o } = B(), c = t(), { canBrowse: l, isUploading: u, showOverlay: d, openMediaBrowser: p } = _e({
|
|
1345
|
+
target: c,
|
|
1346
|
+
blocked: () => !!i.readOnly,
|
|
1347
|
+
apply: (e) => a("update:modelValue", e.url)
|
|
1350
1348
|
});
|
|
1351
|
-
return (
|
|
1349
|
+
return (t, n) => (_(), S(Q, {
|
|
1352
1350
|
label: e.field.label,
|
|
1353
1351
|
required: e.field.required,
|
|
1354
1352
|
"read-only": e.readOnly
|
|
1355
1353
|
}, {
|
|
1356
|
-
default:
|
|
1354
|
+
default: r(() => [y("div", {
|
|
1357
1355
|
ref_key: "dropZoneRef",
|
|
1358
|
-
ref:
|
|
1356
|
+
ref: c,
|
|
1359
1357
|
class: "tpl:relative"
|
|
1360
1358
|
}, [
|
|
1361
|
-
|
|
1359
|
+
x(d) ? (_(), S(fe, {
|
|
1362
1360
|
key: 0,
|
|
1363
|
-
uploading:
|
|
1361
|
+
uploading: x(u)
|
|
1364
1362
|
}, null, 8, ["uploading"])) : m("", !0),
|
|
1365
1363
|
e.readOnly ? (_(), h("input", {
|
|
1366
1364
|
key: 1,
|
|
1367
1365
|
type: "url",
|
|
1368
|
-
class:
|
|
1366
|
+
class: v([x(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1369
1367
|
value: e.modelValue,
|
|
1370
1368
|
placeholder: e.field.placeholder || "https://...",
|
|
1371
1369
|
disabled: "",
|
|
1372
|
-
title:
|
|
1370
|
+
title: x(o).customBlocks.dataSource.readOnlyTooltip
|
|
1373
1371
|
}, null, 10, hr)) : (_(), h("input", {
|
|
1374
1372
|
key: 2,
|
|
1375
1373
|
type: "url",
|
|
1376
|
-
class:
|
|
1374
|
+
class: v(x(K)),
|
|
1377
1375
|
value: e.modelValue,
|
|
1378
1376
|
placeholder: e.field.placeholder || "https://...",
|
|
1379
|
-
onInput:
|
|
1377
|
+
onInput: n[0] ||= (e) => a("update:modelValue", e.target.value)
|
|
1380
1378
|
}, null, 42, gr)),
|
|
1381
|
-
|
|
1379
|
+
x(l) && !e.readOnly ? (_(), h("button", {
|
|
1382
1380
|
key: 3,
|
|
1383
1381
|
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)]",
|
|
1384
|
-
onClick:
|
|
1385
|
-
}, [f(
|
|
1382
|
+
onClick: n[1] ||= (e) => x(p)()
|
|
1383
|
+
}, [f(x(Ve), {
|
|
1386
1384
|
size: 14,
|
|
1387
1385
|
"stroke-width": 1.5
|
|
1388
|
-
}), g(" " +
|
|
1386
|
+
}), g(" " + s(x(o).image.browseMedia), 1)])) : m("", !0)
|
|
1389
1387
|
], 512)]),
|
|
1390
1388
|
_: 1
|
|
1391
1389
|
}, 8, [
|
|
@@ -1410,24 +1408,24 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1410
1408
|
readOnly: { type: Boolean }
|
|
1411
1409
|
},
|
|
1412
1410
|
emits: ["update:modelValue"],
|
|
1413
|
-
setup(e, { emit:
|
|
1414
|
-
let
|
|
1415
|
-
return (
|
|
1411
|
+
setup(e, { emit: t }) {
|
|
1412
|
+
let n = t, { t: i } = B();
|
|
1413
|
+
return (t, a) => (_(), S(Q, {
|
|
1416
1414
|
label: e.field.label,
|
|
1417
1415
|
required: e.field.required,
|
|
1418
1416
|
"read-only": e.readOnly
|
|
1419
1417
|
}, {
|
|
1420
|
-
default:
|
|
1418
|
+
default: r(() => [y("input", {
|
|
1421
1419
|
type: "number",
|
|
1422
|
-
class:
|
|
1420
|
+
class: v([x(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1423
1421
|
value: e.modelValue,
|
|
1424
1422
|
placeholder: e.field.placeholder,
|
|
1425
1423
|
min: e.field.min,
|
|
1426
1424
|
max: e.field.max,
|
|
1427
1425
|
step: e.field.step,
|
|
1428
1426
|
disabled: e.readOnly,
|
|
1429
|
-
title: e.readOnly ?
|
|
1430
|
-
onInput: a[0] ||= (t) => !e.readOnly &&
|
|
1427
|
+
title: e.readOnly ? x(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1428
|
+
onInput: a[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
|
|
1431
1429
|
}, null, 42, vr)]),
|
|
1432
1430
|
_: 1
|
|
1433
1431
|
}, 8, [
|
|
@@ -1450,45 +1448,45 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1450
1448
|
readOnly: { type: Boolean }
|
|
1451
1449
|
},
|
|
1452
1450
|
emits: ["update:modelValue"],
|
|
1453
|
-
setup(e, { emit:
|
|
1454
|
-
let
|
|
1451
|
+
setup(e, { emit: t }) {
|
|
1452
|
+
let n = e, a = t, { t: c, format: l } = B(), u = p(() => n.modelValue || []), d = p(() => !n.field.maxItems || u.value.length < n.field.maxItems), C = p(() => !n.field.minItems || u.value.length > n.field.minItems);
|
|
1455
1453
|
function w() {
|
|
1456
|
-
if (!
|
|
1454
|
+
if (!d.value || n.readOnly) return;
|
|
1457
1455
|
let e = {};
|
|
1458
|
-
for (let t of
|
|
1459
|
-
|
|
1456
|
+
for (let t of n.field.fields) e[t.key] = t.default ?? "";
|
|
1457
|
+
a("update:modelValue", [...u.value, e]);
|
|
1460
1458
|
}
|
|
1461
1459
|
function T(e) {
|
|
1462
|
-
if (!C.value ||
|
|
1463
|
-
let t = [...
|
|
1464
|
-
t.splice(e, 1),
|
|
1460
|
+
if (!C.value || n.readOnly) return;
|
|
1461
|
+
let t = [...u.value];
|
|
1462
|
+
t.splice(e, 1), a("update:modelValue", t);
|
|
1465
1463
|
}
|
|
1466
1464
|
function E(e, t, n) {
|
|
1467
|
-
let r =
|
|
1465
|
+
let r = u.value.map((r, i) => i === e ? {
|
|
1468
1466
|
...r,
|
|
1469
1467
|
[t]: n
|
|
1470
1468
|
} : r);
|
|
1471
|
-
|
|
1469
|
+
a("update:modelValue", r);
|
|
1472
1470
|
}
|
|
1473
|
-
return (
|
|
1471
|
+
return (t, n) => (_(), S(Q, {
|
|
1474
1472
|
label: e.field.label,
|
|
1475
1473
|
required: e.field.required,
|
|
1476
1474
|
"read-only": e.readOnly
|
|
1477
1475
|
}, {
|
|
1478
|
-
default:
|
|
1479
|
-
(_(!0), h(
|
|
1476
|
+
default: r(() => [y("div", br, [
|
|
1477
|
+
(_(!0), h(b, null, o(u.value, (t, n) => (_(), h("div", {
|
|
1480
1478
|
key: `${e.field.key}-${n}`,
|
|
1481
1479
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1482
|
-
}, [y("div", xr, [y("span", Sr, " #" +
|
|
1480
|
+
}, [y("div", xr, [y("span", Sr, " #" + s(n + 1), 1), C.value && !e.readOnly ? (_(), h("button", {
|
|
1483
1481
|
key: 0,
|
|
1484
1482
|
type: "button",
|
|
1485
1483
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
1486
|
-
title:
|
|
1484
|
+
title: x(c).customBlocks.fields.removeItem,
|
|
1487
1485
|
onClick: (e) => T(n)
|
|
1488
|
-
}, [f(
|
|
1486
|
+
}, [f(x(Xe), {
|
|
1489
1487
|
size: 12,
|
|
1490
1488
|
"stroke-width": 2
|
|
1491
|
-
})], 8, Cr)) : m("", !0)]), (_(!0), h(
|
|
1489
|
+
})], 8, Cr)) : m("", !0)]), (_(!0), h(b, null, o(e.field.fields, (r) => (_(), S(i(x(Fr)(r.type)), {
|
|
1492
1490
|
key: r.key,
|
|
1493
1491
|
field: r,
|
|
1494
1492
|
"model-value": t[r.key],
|
|
@@ -1500,17 +1498,17 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1500
1498
|
"read-only",
|
|
1501
1499
|
"onUpdate:modelValue"
|
|
1502
1500
|
]))), 128))]))), 128)),
|
|
1503
|
-
|
|
1501
|
+
d.value && !e.readOnly ? (_(), h("button", {
|
|
1504
1502
|
key: 0,
|
|
1505
1503
|
type: "button",
|
|
1506
|
-
class:
|
|
1504
|
+
class: v(x(tt)),
|
|
1507
1505
|
onClick: w
|
|
1508
|
-
}, [f(
|
|
1506
|
+
}, [f(x(H), {
|
|
1509
1507
|
size: 14,
|
|
1510
1508
|
"stroke-width": 2
|
|
1511
|
-
}), g(" " +
|
|
1512
|
-
!
|
|
1513
|
-
!C.value && !e.readOnly ? (_(), h("p", Tr,
|
|
1509
|
+
}), g(" " + s(x(c).customBlocks.fields.addItem), 1)], 2)) : m("", !0),
|
|
1510
|
+
!d.value && !e.readOnly ? (_(), h("p", wr, s(x(c).customBlocks.fields.maxItemsReached), 1)) : m("", !0),
|
|
1511
|
+
!C.value && !e.readOnly ? (_(), h("p", Tr, s(x(l)(x(c).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : m("", !0)
|
|
1514
1512
|
])]),
|
|
1515
1513
|
_: 1
|
|
1516
1514
|
}, 8, [
|
|
@@ -1531,23 +1529,23 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1531
1529
|
readOnly: { type: Boolean }
|
|
1532
1530
|
},
|
|
1533
1531
|
emits: ["update:modelValue"],
|
|
1534
|
-
setup(e, { emit:
|
|
1535
|
-
let
|
|
1536
|
-
return (
|
|
1532
|
+
setup(e, { emit: t }) {
|
|
1533
|
+
let n = t, { t: i } = B();
|
|
1534
|
+
return (t, a) => (_(), S(Q, {
|
|
1537
1535
|
label: e.field.label,
|
|
1538
1536
|
required: e.field.required,
|
|
1539
1537
|
"read-only": e.readOnly
|
|
1540
1538
|
}, {
|
|
1541
|
-
default:
|
|
1542
|
-
class:
|
|
1539
|
+
default: r(() => [y("select", {
|
|
1540
|
+
class: v([x(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1543
1541
|
value: e.modelValue,
|
|
1544
1542
|
disabled: e.readOnly,
|
|
1545
|
-
title: e.readOnly ?
|
|
1546
|
-
onChange:
|
|
1547
|
-
}, [(_(!0), h(
|
|
1543
|
+
title: e.readOnly ? x(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1544
|
+
onChange: a[0] ||= (t) => !e.readOnly && n("update:modelValue", t.target.value)
|
|
1545
|
+
}, [(_(!0), h(b, null, o(e.field.options, (e) => (_(), h("option", {
|
|
1548
1546
|
key: e.value,
|
|
1549
1547
|
value: e.value
|
|
1550
|
-
},
|
|
1548
|
+
}, s(e.label), 9, Or))), 128))], 42, Dr)]),
|
|
1551
1549
|
_: 1
|
|
1552
1550
|
}, 8, [
|
|
1553
1551
|
"label",
|
|
@@ -1567,26 +1565,26 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1567
1565
|
readOnly: { type: Boolean }
|
|
1568
1566
|
},
|
|
1569
1567
|
emits: ["update:modelValue"],
|
|
1570
|
-
setup(e, { emit:
|
|
1571
|
-
let
|
|
1572
|
-
return (
|
|
1568
|
+
setup(e, { emit: t }) {
|
|
1569
|
+
let n = t, { t: i } = B();
|
|
1570
|
+
return (t, a) => (_(), S(Q, {
|
|
1573
1571
|
label: e.field.label,
|
|
1574
1572
|
required: e.field.required,
|
|
1575
1573
|
"read-only": e.readOnly
|
|
1576
1574
|
}, {
|
|
1577
|
-
default:
|
|
1575
|
+
default: r(() => [e.readOnly ? (_(), h("input", {
|
|
1578
1576
|
key: 0,
|
|
1579
1577
|
type: "text",
|
|
1580
|
-
class:
|
|
1578
|
+
class: v([x(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1581
1579
|
value: e.modelValue,
|
|
1582
1580
|
placeholder: e.field.placeholder,
|
|
1583
1581
|
disabled: "",
|
|
1584
|
-
title:
|
|
1582
|
+
title: x(i).customBlocks.dataSource.readOnlyTooltip
|
|
1585
1583
|
}, null, 10, Ar)) : (_(), S(J, {
|
|
1586
1584
|
key: 1,
|
|
1587
1585
|
"model-value": e.modelValue,
|
|
1588
1586
|
placeholder: e.field.placeholder,
|
|
1589
|
-
"onUpdate:modelValue": a[0] ||= (e) =>
|
|
1587
|
+
"onUpdate:modelValue": a[0] ||= (e) => n("update:modelValue", e)
|
|
1590
1588
|
}, null, 8, ["model-value", "placeholder"]))]),
|
|
1591
1589
|
_: 1
|
|
1592
1590
|
}, 8, [
|
|
@@ -1609,26 +1607,26 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1609
1607
|
readOnly: { type: Boolean }
|
|
1610
1608
|
},
|
|
1611
1609
|
emits: ["update:modelValue"],
|
|
1612
|
-
setup(e, { emit:
|
|
1613
|
-
let
|
|
1614
|
-
return (
|
|
1610
|
+
setup(e, { emit: t }) {
|
|
1611
|
+
let n = t, { t: i } = B();
|
|
1612
|
+
return (t, a) => (_(), S(Q, {
|
|
1615
1613
|
label: e.field.label,
|
|
1616
1614
|
required: e.field.required,
|
|
1617
1615
|
"read-only": e.readOnly
|
|
1618
1616
|
}, {
|
|
1619
|
-
default:
|
|
1617
|
+
default: r(() => [e.readOnly ? (_(), h("textarea", {
|
|
1620
1618
|
key: 0,
|
|
1621
1619
|
value: e.modelValue,
|
|
1622
1620
|
placeholder: e.field.placeholder,
|
|
1623
1621
|
rows: "3",
|
|
1624
1622
|
disabled: "",
|
|
1625
|
-
title:
|
|
1626
|
-
class:
|
|
1623
|
+
title: x(i).customBlocks.dataSource.readOnlyTooltip,
|
|
1624
|
+
class: v(Nr)
|
|
1627
1625
|
}, null, 8, Mr)) : (_(), S(it, {
|
|
1628
1626
|
key: 1,
|
|
1629
1627
|
"model-value": e.modelValue,
|
|
1630
1628
|
placeholder: e.field.placeholder,
|
|
1631
|
-
"onUpdate:modelValue": a[0] ||= (e) =>
|
|
1629
|
+
"onUpdate:modelValue": a[0] ||= (e) => n("update:modelValue", e)
|
|
1632
1630
|
}, null, 8, ["model-value", "placeholder"]))]),
|
|
1633
1631
|
_: 1
|
|
1634
1632
|
}, 8, [
|
|
@@ -1648,8 +1646,7 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1648
1646
|
function Fr(e) {
|
|
1649
1647
|
return Pr[e] ?? jr;
|
|
1650
1648
|
}
|
|
1651
|
-
|
|
1652
|
-
//#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1649
|
+
// src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1653
1650
|
var Ir = {
|
|
1654
1651
|
key: 0,
|
|
1655
1652
|
class: "tpl:p-4"
|
|
@@ -1673,39 +1670,39 @@ var Ir = {
|
|
|
1673
1670
|
props: { block: {} },
|
|
1674
1671
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1675
1672
|
setup(e, { emit: t }) {
|
|
1676
|
-
let r = e,
|
|
1673
|
+
let r = e, a = t, { t: c } = B(), l = n(je, []), u = p(() => l.find((e) => e.type === r.block.customType)), d = p(() => r.block), { isFetching: v, fetchError: C, fetch: w, hasDataSource: T, needsFetch: E } = le({
|
|
1677
1674
|
definition: u,
|
|
1678
1675
|
block: d,
|
|
1679
1676
|
onUpdate: (e, t) => {
|
|
1680
|
-
|
|
1677
|
+
a("updateFieldValues", e), a("updateDataSourceFetched", t);
|
|
1681
1678
|
}
|
|
1682
1679
|
});
|
|
1683
1680
|
function D(e) {
|
|
1684
1681
|
return e.readOnly === !0 && T.value && !!r.block.dataSourceFetched;
|
|
1685
1682
|
}
|
|
1686
1683
|
function O(e, t) {
|
|
1687
|
-
|
|
1684
|
+
a("updateFieldValues", {
|
|
1688
1685
|
...r.block.fieldValues,
|
|
1689
1686
|
[e]: t
|
|
1690
1687
|
});
|
|
1691
1688
|
}
|
|
1692
1689
|
return (t, n) => u.value ? (_(), h("div", Rr, [
|
|
1693
|
-
u.value.description ? (_(), h("p", zr,
|
|
1694
|
-
|
|
1690
|
+
u.value.description ? (_(), h("p", zr, s(u.value.description), 1)) : m("", !0),
|
|
1691
|
+
x(T) ? (_(), h("div", Br, [x(E) && !x(v) ? (_(), h("button", {
|
|
1695
1692
|
key: 0,
|
|
1696
1693
|
type: "button",
|
|
1697
1694
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded-md tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-on-primary)] tpl:transition-all tpl:bg-[var(--tpl-primary)]",
|
|
1698
|
-
onClick: n[0] ||= (...e) =>
|
|
1699
|
-
},
|
|
1695
|
+
onClick: n[0] ||= (...e) => x(w) && x(w)(...e)
|
|
1696
|
+
}, s(u.value?.dataSource?.label || x(c).customBlocks.dataSource.fetchButton), 1)) : (_(), h("div", Vr, [x(v) ? (_(), h("div", Hr, s(x(c).customBlocks.dataSource.fetching), 1)) : (_(), h("button", {
|
|
1700
1697
|
key: 1,
|
|
1701
1698
|
type: "button",
|
|
1702
1699
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]",
|
|
1703
|
-
onClick: n[1] ||= (...e) =>
|
|
1704
|
-
}, [f(
|
|
1700
|
+
onClick: n[1] ||= (...e) => x(w) && x(w)(...e)
|
|
1701
|
+
}, [f(x(Ke), { size: 12 }), g(" " + s(x(c).customBlocks.dataSource.changeButton), 1)]))])), x(C) ? (_(), h("p", Ur, [f(x(Le), {
|
|
1705
1702
|
size: 14,
|
|
1706
1703
|
class: "tpl:shrink-0"
|
|
1707
|
-
}), g(" " +
|
|
1708
|
-
(_(!0), h(
|
|
1704
|
+
}), g(" " + s(x(c).customBlocks.dataSource.fetchError), 1)])) : m("", !0)])) : m("", !0),
|
|
1705
|
+
(_(!0), h(b, null, o(u.value.fields, (t) => (_(), S(i(x(Fr)(t.type)), {
|
|
1709
1706
|
key: t.key,
|
|
1710
1707
|
field: t,
|
|
1711
1708
|
"model-value": e.block.fieldValues[t.key],
|
|
@@ -1717,135 +1714,133 @@ var Ir = {
|
|
|
1717
1714
|
"read-only",
|
|
1718
1715
|
"onUpdate:modelValue"
|
|
1719
1716
|
]))), 128))
|
|
1720
|
-
])) : (_(), h("div", Ir, [y("p", Lr,
|
|
1717
|
+
])) : (_(), h("div", Ir, [y("p", Lr, s(x(c).customBlocks.toolbar.noDefinition), 1)]));
|
|
1721
1718
|
}
|
|
1722
1719
|
}), Gr = { class: "tpl:mb-3.5" }, Kr = { class: "tpl:mb-3.5" }, qr = { class: "tpl:mb-3.5" }, Jr = { class: "tpl:flex tpl:items-stretch" }, Yr = ["value"], Xr = /* @__PURE__ */ w({
|
|
1723
1720
|
__name: "DividerToolbar",
|
|
1724
1721
|
props: { block: {} },
|
|
1725
1722
|
emits: ["update"],
|
|
1726
|
-
setup(e, { emit:
|
|
1727
|
-
let
|
|
1728
|
-
function
|
|
1729
|
-
|
|
1723
|
+
setup(e, { emit: t }) {
|
|
1724
|
+
let n = t, { t: r } = B();
|
|
1725
|
+
function i(e, t) {
|
|
1726
|
+
n("update", { [e]: t });
|
|
1730
1727
|
}
|
|
1731
|
-
return (
|
|
1732
|
-
y("div", Gr, [y("label", { class:
|
|
1728
|
+
return (t, n) => (_(), h(b, null, [
|
|
1729
|
+
y("div", Gr, [y("label", { class: v(x(U)) }, s(x(r).divider.style), 3), f(Y, {
|
|
1733
1730
|
options: [
|
|
1734
1731
|
{
|
|
1735
1732
|
value: "solid",
|
|
1736
|
-
label:
|
|
1733
|
+
label: x(r).divider.solid
|
|
1737
1734
|
},
|
|
1738
1735
|
{
|
|
1739
1736
|
value: "dashed",
|
|
1740
|
-
label:
|
|
1737
|
+
label: x(r).divider.dashed
|
|
1741
1738
|
},
|
|
1742
1739
|
{
|
|
1743
1740
|
value: "dotted",
|
|
1744
|
-
label:
|
|
1741
|
+
label: x(r).divider.dotted
|
|
1745
1742
|
}
|
|
1746
1743
|
],
|
|
1747
1744
|
"model-value": e.block.lineStyle,
|
|
1748
|
-
"onUpdate:modelValue":
|
|
1745
|
+
"onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
|
|
1749
1746
|
}, null, 8, ["options", "model-value"])]),
|
|
1750
|
-
y("div", Kr, [y("label", { class:
|
|
1747
|
+
y("div", Kr, [y("label", { class: v(x(U)) }, s(x(r).divider.color), 3), f(V, {
|
|
1751
1748
|
"model-value": e.block.color,
|
|
1752
|
-
"onUpdate:modelValue":
|
|
1749
|
+
"onUpdate:modelValue": n[1] ||= (e) => i("color", e)
|
|
1753
1750
|
}, null, 8, ["model-value"])]),
|
|
1754
|
-
y("div", qr, [y("label", { class:
|
|
1751
|
+
y("div", qr, [y("label", { class: v(x(U)) }, s(x(r).divider.thickness), 3), y("div", Jr, [y("input", {
|
|
1755
1752
|
type: "number",
|
|
1756
|
-
class:
|
|
1753
|
+
class: v(x(G)),
|
|
1757
1754
|
value: e.block.thickness,
|
|
1758
1755
|
min: "1",
|
|
1759
1756
|
max: "10",
|
|
1760
|
-
onInput:
|
|
1761
|
-
}, null, 42, Yr), y("span", { class:
|
|
1757
|
+
onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
|
|
1758
|
+
}, null, 42, Yr), y("span", { class: v(x(W)) }, "px", 2)])])
|
|
1762
1759
|
], 64));
|
|
1763
1760
|
}
|
|
1764
1761
|
}), Zr = { class: "tpl:mb-3.5" }, Qr = ["value"], $r = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, ei = /* @__PURE__ */ w({
|
|
1765
1762
|
__name: "HtmlToolbar",
|
|
1766
1763
|
props: { block: {} },
|
|
1767
1764
|
emits: ["update"],
|
|
1768
|
-
setup(e, { emit:
|
|
1769
|
-
let
|
|
1770
|
-
return (
|
|
1771
|
-
y("label", { class:
|
|
1765
|
+
setup(e, { emit: t }) {
|
|
1766
|
+
let n = t, { t: r } = B();
|
|
1767
|
+
return (t, i) => (_(), h("div", Zr, [
|
|
1768
|
+
y("label", { class: v(x(U)) }, s(x(r).html.content), 3),
|
|
1772
1769
|
y("textarea", {
|
|
1773
1770
|
value: e.block.content,
|
|
1774
1771
|
placeholder: "<div>...</div>",
|
|
1775
1772
|
rows: "10",
|
|
1776
|
-
class:
|
|
1777
|
-
onInput:
|
|
1773
|
+
class: v(x($e)),
|
|
1774
|
+
onInput: i[0] ||= (e) => n("update", { content: e.target.value })
|
|
1778
1775
|
}, null, 42, Qr),
|
|
1779
|
-
y("p", $r, [f(
|
|
1776
|
+
y("p", $r, [f(x(He), {
|
|
1780
1777
|
size: 12,
|
|
1781
1778
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1782
|
-
}), g(" " +
|
|
1779
|
+
}), g(" " + s(x(r).html.sanitizationHint), 1)])
|
|
1783
1780
|
]));
|
|
1784
1781
|
}
|
|
1785
1782
|
});
|
|
1786
|
-
|
|
1787
|
-
//#region src/composables/useImageAspectLock.ts
|
|
1783
|
+
// src/composables/useImageAspectLock.ts
|
|
1788
1784
|
function ti(e) {
|
|
1789
|
-
let
|
|
1785
|
+
let n = t(!1), r = t(null);
|
|
1790
1786
|
T(() => e.block().id, () => {
|
|
1791
|
-
|
|
1787
|
+
n.value = !1, r.value = null;
|
|
1792
1788
|
});
|
|
1793
|
-
let
|
|
1789
|
+
let i = p(() => he(e.block()) ?? e.measured()), a = p(() => {
|
|
1794
1790
|
let t = e.block().width;
|
|
1795
1791
|
return t === "full" ? e.room() : t;
|
|
1796
|
-
}),
|
|
1797
|
-
let e =
|
|
1792
|
+
}), o = p(() => {
|
|
1793
|
+
let e = i.value, t = a.value;
|
|
1798
1794
|
return !e || t === null ? null : Math.round(t * e.height / e.width);
|
|
1799
|
-
}),
|
|
1795
|
+
}), s = p(() => i.value !== null), c = p(() => {
|
|
1800
1796
|
let t = e.block().height;
|
|
1801
|
-
return t === void 0 ||
|
|
1802
|
-
}), l = p(() =>
|
|
1797
|
+
return t === void 0 || o.value !== null && Math.abs(o.value - t) <= 1;
|
|
1798
|
+
}), l = p(() => s.value && !n.value && c.value);
|
|
1803
1799
|
function u() {
|
|
1804
1800
|
if (he(e.block())) return {};
|
|
1805
1801
|
let t = e.measured();
|
|
1806
1802
|
return t ? L(t) : {};
|
|
1807
1803
|
}
|
|
1808
|
-
function d(
|
|
1809
|
-
if (
|
|
1810
|
-
if (
|
|
1804
|
+
function d(t) {
|
|
1805
|
+
if (r.value = null, !t) return n.value = !0, null;
|
|
1806
|
+
if (n.value = !1, !s.value) return null;
|
|
1811
1807
|
let i = { ...u() };
|
|
1812
1808
|
return e.block().height !== void 0 && (i.height = void 0), Object.keys(i).length > 0 ? i : null;
|
|
1813
1809
|
}
|
|
1814
1810
|
function f(e) {
|
|
1815
|
-
return
|
|
1811
|
+
return r.value = null, l.value ? {
|
|
1816
1812
|
width: e,
|
|
1817
1813
|
height: void 0,
|
|
1818
1814
|
...u()
|
|
1819
1815
|
} : { width: e };
|
|
1820
1816
|
}
|
|
1821
1817
|
function m(t) {
|
|
1822
|
-
let
|
|
1823
|
-
if (!l.value || !
|
|
1824
|
-
let a = Math.round(t *
|
|
1818
|
+
let n = i.value;
|
|
1819
|
+
if (!l.value || !n || !Number.isFinite(t) || t <= 0) return null;
|
|
1820
|
+
let a = Math.round(t * n.width / n.height);
|
|
1825
1821
|
if (a < 1) return null;
|
|
1826
1822
|
let o = e.room();
|
|
1827
|
-
return o !== null && a >= o ? (
|
|
1823
|
+
return o !== null && a >= o ? (r.value = Math.round(o * n.height / n.width), {
|
|
1828
1824
|
width: "full",
|
|
1829
1825
|
height: void 0,
|
|
1830
1826
|
...u()
|
|
1831
|
-
}) : (
|
|
1827
|
+
}) : (r.value = null, {
|
|
1832
1828
|
width: a,
|
|
1833
1829
|
height: void 0,
|
|
1834
1830
|
...u()
|
|
1835
1831
|
});
|
|
1836
1832
|
}
|
|
1837
1833
|
return {
|
|
1838
|
-
available:
|
|
1834
|
+
available: s,
|
|
1839
1835
|
locked: l,
|
|
1840
|
-
derivedHeight:
|
|
1841
|
-
cappedHeight:
|
|
1836
|
+
derivedHeight: o,
|
|
1837
|
+
cappedHeight: r,
|
|
1842
1838
|
setLocked: d,
|
|
1843
1839
|
widthUpdates: f,
|
|
1844
1840
|
heightUpdates: m
|
|
1845
1841
|
};
|
|
1846
1842
|
}
|
|
1847
|
-
|
|
1848
|
-
//#region src/components/toolbar/ImageToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1843
|
+
// src/components/toolbar/ImageToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1849
1844
|
var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
1850
1845
|
key: 0,
|
|
1851
1846
|
class: "tpl:mb-3.5"
|
|
@@ -1871,58 +1866,58 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
1871
1866
|
__name: "ImageToolbar",
|
|
1872
1867
|
props: { block: {} },
|
|
1873
1868
|
emits: ["update"],
|
|
1874
|
-
setup(e, { emit:
|
|
1875
|
-
let
|
|
1869
|
+
setup(e, { emit: i }) {
|
|
1870
|
+
let a = e, o = i, { t: c, format: l } = B(), u = n(Te, te.liquid), d = n(Oe, null), C = n(Ce, void 0), w = t(!1), T = t(!1), { start: E } = xe(() => {
|
|
1876
1871
|
w.value = !1, T.value = !1;
|
|
1877
1872
|
}, 1e3, { immediate: !1 }), D = [
|
|
1878
1873
|
300,
|
|
1879
1874
|
400,
|
|
1880
1875
|
500
|
|
1881
|
-
],
|
|
1882
|
-
let e =
|
|
1876
|
+
], k = p(() => {
|
|
1877
|
+
let e = a.block.width;
|
|
1883
1878
|
return e === "full" ? "full" : D.includes(e) ? String(e) : "custom";
|
|
1884
|
-
}),
|
|
1885
|
-
function
|
|
1879
|
+
}), j = p(() => typeof a.block.height == "number" ? "custom" : "auto");
|
|
1880
|
+
function M(e, t) {
|
|
1886
1881
|
o("update", { [e]: t });
|
|
1887
1882
|
}
|
|
1888
|
-
function
|
|
1883
|
+
function N(e) {
|
|
1889
1884
|
if (e === "custom") {
|
|
1890
|
-
let e =
|
|
1885
|
+
let e = a.block.width;
|
|
1891
1886
|
(typeof e != "number" || D.includes(e)) && o("update", R.widthUpdates(Di));
|
|
1892
1887
|
} else o("update", R.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
1893
1888
|
}
|
|
1894
1889
|
function P(e) {
|
|
1895
|
-
|
|
1890
|
+
M("height", e === "custom" ? Oi : void 0);
|
|
1896
1891
|
}
|
|
1897
1892
|
function F(e) {
|
|
1898
1893
|
let t = Number(e);
|
|
1899
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
1894
|
+
!Number.isFinite(t) || t <= 0 || M("height", t);
|
|
1900
1895
|
}
|
|
1901
1896
|
function ee(e) {
|
|
1902
|
-
|
|
1897
|
+
M("borderRadius", O(e) === null ? void 0 : e);
|
|
1903
1898
|
}
|
|
1904
|
-
function
|
|
1899
|
+
function ne(e) {
|
|
1905
1900
|
let t = Number(e);
|
|
1906
1901
|
!Number.isFinite(t) || t <= 0 || o("update", R.widthUpdates(t));
|
|
1907
1902
|
}
|
|
1908
|
-
function
|
|
1909
|
-
e !==
|
|
1903
|
+
function re(e) {
|
|
1904
|
+
e !== a.block.src && o("update", {
|
|
1910
1905
|
src: e,
|
|
1911
1906
|
...L(null)
|
|
1912
1907
|
});
|
|
1913
1908
|
}
|
|
1914
|
-
function
|
|
1909
|
+
function I(e) {
|
|
1915
1910
|
o("update", {
|
|
1916
1911
|
src: e.url,
|
|
1917
1912
|
...L(me(e.width, e.height))
|
|
1918
|
-
}), e.alt && (
|
|
1913
|
+
}), e.alt && (M("alt", e.alt), T.value = !0), w.value = !0, E();
|
|
1919
1914
|
}
|
|
1920
|
-
let ie =
|
|
1915
|
+
let ie = t(), ae = p(() => A(a.block.src, u)), { canBrowse: oe, isUploading: se, showOverlay: le, openMediaBrowser: ue } = _e({
|
|
1921
1916
|
target: ie,
|
|
1922
1917
|
blocked: ae,
|
|
1923
|
-
apply:
|
|
1924
|
-
}), de = ce(() => ae.value || !
|
|
1925
|
-
block: () =>
|
|
1918
|
+
apply: I
|
|
1919
|
+
}), de = ce(() => ae.value || !a.block.src || he(a.block) ? void 0 : a.block.src), pe = bn(() => de.value), ve = p(() => d ? ge(d.content.value, a.block.id, C) : null), R = ti({
|
|
1920
|
+
block: () => a.block,
|
|
1926
1921
|
room: () => ve.value,
|
|
1927
1922
|
measured: () => pe.value
|
|
1928
1923
|
}), { available: ye, locked: z, derivedHeight: be, cappedHeight: Se } = R;
|
|
@@ -1930,34 +1925,34 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
1930
1925
|
let e = R.setLocked(!z.value);
|
|
1931
1926
|
e && o("update", e);
|
|
1932
1927
|
}
|
|
1933
|
-
let Ee =
|
|
1928
|
+
let Ee = t(null);
|
|
1934
1929
|
function De(e) {
|
|
1935
1930
|
Ee.value = e;
|
|
1936
1931
|
let t = R.heightUpdates(Number(e));
|
|
1937
1932
|
t && o("update", t);
|
|
1938
1933
|
}
|
|
1939
|
-
return (
|
|
1940
|
-
y("div", ni, [y("label", { class:
|
|
1934
|
+
return (t, n) => (_(), h(b, null, [
|
|
1935
|
+
y("div", ni, [y("label", { class: v(x(U)) }, s(x(c).image.imageUrl), 3), y("div", {
|
|
1941
1936
|
ref_key: "dropZoneRef",
|
|
1942
1937
|
ref: ie,
|
|
1943
1938
|
class: "tpl:relative"
|
|
1944
1939
|
}, [
|
|
1945
|
-
|
|
1940
|
+
x(le) ? (_(), S(fe, {
|
|
1946
1941
|
key: 0,
|
|
1947
|
-
uploading:
|
|
1942
|
+
uploading: x(se)
|
|
1948
1943
|
}, null, 8, ["uploading"])) : m("", !0),
|
|
1949
1944
|
f(J, {
|
|
1950
1945
|
"model-value": e.block.src,
|
|
1951
1946
|
type: "url",
|
|
1952
|
-
placeholder:
|
|
1947
|
+
placeholder: x(c).image.imageUrlPlaceholder,
|
|
1953
1948
|
pulse: w.value,
|
|
1954
|
-
"onUpdate:modelValue":
|
|
1949
|
+
"onUpdate:modelValue": n[0] ||= (e) => re(e)
|
|
1955
1950
|
}, null, 8, [
|
|
1956
1951
|
"model-value",
|
|
1957
1952
|
"placeholder",
|
|
1958
1953
|
"pulse"
|
|
1959
1954
|
]),
|
|
1960
|
-
|
|
1955
|
+
x(oe) ? (_(), h("button", {
|
|
1961
1956
|
key: 1,
|
|
1962
1957
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all",
|
|
1963
1958
|
style: {
|
|
@@ -1965,29 +1960,29 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
1965
1960
|
color: "var(--tpl-primary)",
|
|
1966
1961
|
"background-color": "var(--tpl-bg)"
|
|
1967
1962
|
},
|
|
1968
|
-
onClick:
|
|
1969
|
-
}, [f(
|
|
1963
|
+
onClick: n[1] ||= (...e) => x(ue) && x(ue)(...e)
|
|
1964
|
+
}, [f(x(Ve), {
|
|
1970
1965
|
size: 14,
|
|
1971
1966
|
"stroke-width": 1.5
|
|
1972
|
-
}), g(" " +
|
|
1967
|
+
}), g(" " + s(x(c).image.browseMedia), 1)])) : m("", !0)
|
|
1973
1968
|
], 512)]),
|
|
1974
|
-
|
|
1969
|
+
x(A)(e.block.src, x(u)) ? (_(), h("div", ri, [y("label", { class: v(x(U)) }, [g(s(x(c).image.placeholderUrl) + " ", 1), y("span", ii, s(x(c).image.optional), 1)], 2), y("input", {
|
|
1975
1970
|
type: "url",
|
|
1976
|
-
class:
|
|
1971
|
+
class: v(x(K)),
|
|
1977
1972
|
value: e.block.placeholderUrl || "",
|
|
1978
|
-
placeholder:
|
|
1979
|
-
title:
|
|
1980
|
-
onInput:
|
|
1973
|
+
placeholder: x(c).image.placeholderUrlPlaceholder,
|
|
1974
|
+
title: x(c).image.placeholderUrlTooltip,
|
|
1975
|
+
onInput: n[2] ||= (e) => M("placeholderUrl", e.target.value)
|
|
1981
1976
|
}, null, 42, ai)])) : m("", !0),
|
|
1982
1977
|
y("div", oi, [
|
|
1983
|
-
y("label", { class:
|
|
1978
|
+
y("label", { class: v(x(U)) }, s(x(c).image.altText), 3),
|
|
1984
1979
|
f(J, {
|
|
1985
1980
|
"model-value": e.block.alt,
|
|
1986
1981
|
type: "text",
|
|
1987
|
-
placeholder:
|
|
1982
|
+
placeholder: x(c).image.altTextPlaceholder,
|
|
1988
1983
|
pulse: T.value,
|
|
1989
1984
|
disabled: e.block.decorative === !0,
|
|
1990
|
-
"onUpdate:modelValue":
|
|
1985
|
+
"onUpdate:modelValue": n[3] ||= (e) => M("alt", e)
|
|
1991
1986
|
}, null, 8, [
|
|
1992
1987
|
"model-value",
|
|
1993
1988
|
"placeholder",
|
|
@@ -1997,41 +1992,41 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
1997
1992
|
f(q, {
|
|
1998
1993
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
1999
1994
|
"model-value": e.block.decorative === !0,
|
|
2000
|
-
label:
|
|
2001
|
-
"onUpdate:modelValue":
|
|
1995
|
+
label: x(c).image.decorative,
|
|
1996
|
+
"onUpdate:modelValue": n[4] ||= (e) => M("decorative", e)
|
|
2002
1997
|
}, {
|
|
2003
|
-
default:
|
|
1998
|
+
default: r(() => [y("span", null, [g(s(x(c).image.decorative) + " ", 1), y("span", si, s(x(c).image.decorativeHint), 1)])]),
|
|
2004
1999
|
_: 1
|
|
2005
2000
|
}, 8, ["model-value", "label"])
|
|
2006
2001
|
]),
|
|
2007
2002
|
y("div", ci, [
|
|
2008
|
-
y("label", { class:
|
|
2003
|
+
y("label", { class: v(x(U)) }, s(x(c).image.width), 3),
|
|
2009
2004
|
y("select", {
|
|
2010
|
-
class:
|
|
2005
|
+
class: v(x(K)),
|
|
2011
2006
|
"data-testid": "image-width-mode",
|
|
2012
|
-
value:
|
|
2013
|
-
onChange:
|
|
2007
|
+
value: k.value,
|
|
2008
|
+
onChange: n[5] ||= (e) => N(e.target.value)
|
|
2014
2009
|
}, [
|
|
2015
|
-
y("option", ui,
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
y("option", di,
|
|
2010
|
+
y("option", ui, s(x(c).image.fullWidth), 1),
|
|
2011
|
+
n[15] ||= y("option", { value: "300" }, "300px", -1),
|
|
2012
|
+
n[16] ||= y("option", { value: "400" }, "400px", -1),
|
|
2013
|
+
n[17] ||= y("option", { value: "500" }, "500px", -1),
|
|
2014
|
+
y("option", di, s(x(c).image.widthCustom), 1)
|
|
2020
2015
|
], 42, li),
|
|
2021
|
-
|
|
2016
|
+
k.value === "custom" ? (_(), h("div", fi, [y("input", {
|
|
2022
2017
|
type: "number",
|
|
2023
2018
|
"data-testid": "image-width-input",
|
|
2024
|
-
class:
|
|
2019
|
+
class: v(x(G)),
|
|
2025
2020
|
value: typeof e.block.width == "number" ? e.block.width : Di,
|
|
2026
2021
|
min: "20",
|
|
2027
|
-
onInput:
|
|
2028
|
-
}, null, 42, pi), y("span", { class:
|
|
2022
|
+
onInput: n[6] ||= (e) => ne(e.target.value)
|
|
2023
|
+
}, null, 42, pi), y("span", { class: v(x(W)) }, "px", 2)])) : m("", !0)
|
|
2029
2024
|
]),
|
|
2030
2025
|
y("div", mi, [
|
|
2031
|
-
|
|
2032
|
-
linked:
|
|
2033
|
-
"link-label":
|
|
2034
|
-
"unlink-label":
|
|
2026
|
+
x(ye) ? (_(), h("div", hi, [y("span", gi, s(x(c).image.height), 1), f(ht, {
|
|
2027
|
+
linked: x(z),
|
|
2028
|
+
"link-label": x(c).image.lockAspectRatio,
|
|
2029
|
+
"unlink-label": x(c).image.unlockAspectRatio,
|
|
2035
2030
|
testid: "image-aspect-lock",
|
|
2036
2031
|
onToggle: we
|
|
2037
2032
|
}, null, 8, [
|
|
@@ -2040,76 +2035,76 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
2040
2035
|
"unlink-label"
|
|
2041
2036
|
])])) : (_(), h("label", {
|
|
2042
2037
|
key: 1,
|
|
2043
|
-
class:
|
|
2044
|
-
},
|
|
2045
|
-
|
|
2038
|
+
class: v(x(U))
|
|
2039
|
+
}, s(x(c).image.height), 3)),
|
|
2040
|
+
x(z) ? (_(), h(b, { key: 2 }, [y("div", _i, [y("input", {
|
|
2046
2041
|
type: "number",
|
|
2047
2042
|
"data-testid": "image-locked-height-input",
|
|
2048
|
-
class:
|
|
2049
|
-
value: Ee.value ??
|
|
2043
|
+
class: v(x(G)),
|
|
2044
|
+
value: Ee.value ?? x(be) ?? "",
|
|
2050
2045
|
min: "1",
|
|
2051
|
-
onInput:
|
|
2052
|
-
onBlur:
|
|
2053
|
-
}, null, 42, vi), y("span", { class:
|
|
2054
|
-
|
|
2046
|
+
onInput: n[7] ||= (e) => De(e.target.value),
|
|
2047
|
+
onBlur: n[8] ||= (e) => Ee.value = null
|
|
2048
|
+
}, null, 42, vi), y("span", { class: v(x(W)) }, "px", 2)]), x(Se) === null ? m("", !0) : (_(), h("p", yi, s(x(l)(x(c).image.heightCapped, { height: x(Se) })), 1))], 64)) : m("", !0),
|
|
2049
|
+
x(z) ? m("", !0) : (_(), h("select", {
|
|
2055
2050
|
key: 3,
|
|
2056
|
-
class:
|
|
2051
|
+
class: v(x(K)),
|
|
2057
2052
|
"data-testid": "image-height-mode",
|
|
2058
|
-
value:
|
|
2059
|
-
onChange:
|
|
2060
|
-
}, [y("option", xi,
|
|
2061
|
-
!
|
|
2053
|
+
value: j.value,
|
|
2054
|
+
onChange: n[9] ||= (e) => P(e.target.value)
|
|
2055
|
+
}, [y("option", xi, s(x(c).image.heightAuto), 1), y("option", Si, s(x(c).image.heightCustom), 1)], 42, bi)),
|
|
2056
|
+
!x(z) && j.value === "custom" ? (_(), h("div", Ci, [y("input", {
|
|
2062
2057
|
type: "number",
|
|
2063
2058
|
"data-testid": "image-height-input",
|
|
2064
|
-
class:
|
|
2059
|
+
class: v(x(G)),
|
|
2065
2060
|
value: e.block.height,
|
|
2066
2061
|
min: "20",
|
|
2067
|
-
onInput:
|
|
2068
|
-
}, null, 42, wi), y("span", { class:
|
|
2062
|
+
onInput: n[10] ||= (e) => F(e.target.value)
|
|
2063
|
+
}, null, 42, wi), y("span", { class: v(x(W)) }, "px", 2)])) : m("", !0)
|
|
2069
2064
|
]),
|
|
2070
2065
|
f(Ot, {
|
|
2071
2066
|
"model-value": e.block.borderRadius,
|
|
2072
|
-
label:
|
|
2067
|
+
label: x(c).image.borderRadius,
|
|
2073
2068
|
"testid-prefix": "image",
|
|
2074
2069
|
"onUpdate:modelValue": ee
|
|
2075
2070
|
}, null, 8, ["model-value", "label"]),
|
|
2076
2071
|
f(St, {
|
|
2077
2072
|
"model-value": e.block.border,
|
|
2078
2073
|
"testid-prefix": "image",
|
|
2079
|
-
"onUpdate:modelValue":
|
|
2074
|
+
"onUpdate:modelValue": n[11] ||= (e) => M("border", e)
|
|
2080
2075
|
}, null, 8, ["model-value"]),
|
|
2081
|
-
y("div", Ti, [y("label", { class:
|
|
2076
|
+
y("div", Ti, [y("label", { class: v(x(U)) }, s(x(c).title.align), 3), f(Y, {
|
|
2082
2077
|
options: [
|
|
2083
2078
|
{
|
|
2084
2079
|
value: "left",
|
|
2085
|
-
label:
|
|
2080
|
+
label: x(c).title.alignLeft
|
|
2086
2081
|
},
|
|
2087
2082
|
{
|
|
2088
2083
|
value: "center",
|
|
2089
|
-
label:
|
|
2084
|
+
label: x(c).title.alignCenter
|
|
2090
2085
|
},
|
|
2091
2086
|
{
|
|
2092
2087
|
value: "right",
|
|
2093
|
-
label:
|
|
2088
|
+
label: x(c).title.alignRight
|
|
2094
2089
|
}
|
|
2095
2090
|
],
|
|
2096
2091
|
"model-value": e.block.align,
|
|
2097
|
-
"onUpdate:modelValue":
|
|
2092
|
+
"onUpdate:modelValue": n[12] ||= (e) => M("align", e)
|
|
2098
2093
|
}, null, 8, ["options", "model-value"])]),
|
|
2099
2094
|
y("div", Ei, [
|
|
2100
|
-
y("label", { class:
|
|
2095
|
+
y("label", { class: v(x(U)) }, s(x(c).image.linkUrl), 3),
|
|
2101
2096
|
f(J, {
|
|
2102
2097
|
"model-value": e.block.linkUrl || "",
|
|
2103
2098
|
type: "url",
|
|
2104
|
-
placeholder:
|
|
2105
|
-
"onUpdate:modelValue":
|
|
2099
|
+
placeholder: x(c).image.imageUrlPlaceholder,
|
|
2100
|
+
"onUpdate:modelValue": n[13] ||= (e) => M("linkUrl", e)
|
|
2106
2101
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2107
2102
|
e.block.linkUrl ? (_(), S(q, {
|
|
2108
2103
|
key: 0,
|
|
2109
2104
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2110
2105
|
"model-value": e.block.linkOpenInNewTab ?? !1,
|
|
2111
|
-
label:
|
|
2112
|
-
"onUpdate:modelValue":
|
|
2106
|
+
label: x(c).image.openInNewTab,
|
|
2107
|
+
"onUpdate:modelValue": n[14] ||= (e) => M("linkOpenInNewTab", e)
|
|
2113
2108
|
}, null, 8, ["model-value", "label"])) : m("", !0)
|
|
2114
2109
|
])
|
|
2115
2110
|
], 64));
|
|
@@ -2118,10 +2113,10 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
2118
2113
|
__name: "FieldRow",
|
|
2119
2114
|
props: { label: {} },
|
|
2120
2115
|
setup(e) {
|
|
2121
|
-
return (
|
|
2116
|
+
return (t, n) => (_(), h("div", Ai, [e.label ? (_(), h("label", {
|
|
2122
2117
|
key: 0,
|
|
2123
|
-
class:
|
|
2124
|
-
},
|
|
2118
|
+
class: v(x(U))
|
|
2119
|
+
}, s(e.label), 3)) : m("", !0), c(t.$slots, "default")]));
|
|
2125
2120
|
}
|
|
2126
2121
|
}), ji = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Mi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ni = [
|
|
2127
2122
|
"value",
|
|
@@ -2134,181 +2129,181 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
2134
2129
|
fontFamilies: {}
|
|
2135
2130
|
},
|
|
2136
2131
|
emits: ["update"],
|
|
2137
|
-
setup(e, { emit:
|
|
2138
|
-
let
|
|
2132
|
+
setup(e, { emit: t }) {
|
|
2133
|
+
let n = e, i = t, { t: a } = B(), c = p(() => [
|
|
2139
2134
|
{
|
|
2140
2135
|
key: "openInNewTab",
|
|
2141
|
-
label:
|
|
2136
|
+
label: a.menu.openInNewTab
|
|
2142
2137
|
},
|
|
2143
2138
|
{
|
|
2144
2139
|
key: "bold",
|
|
2145
|
-
label:
|
|
2140
|
+
label: a.menu.bold
|
|
2146
2141
|
},
|
|
2147
2142
|
{
|
|
2148
2143
|
key: "underline",
|
|
2149
|
-
label:
|
|
2144
|
+
label: a.menu.underline
|
|
2150
2145
|
}
|
|
2151
|
-
]),
|
|
2146
|
+
]), l = p(() => [
|
|
2152
2147
|
{
|
|
2153
2148
|
value: "left",
|
|
2154
|
-
label:
|
|
2149
|
+
label: a.title.alignLeft,
|
|
2155
2150
|
icon: Ye
|
|
2156
2151
|
},
|
|
2157
2152
|
{
|
|
2158
2153
|
value: "center",
|
|
2159
|
-
label:
|
|
2154
|
+
label: a.title.alignCenter,
|
|
2160
2155
|
icon: Je
|
|
2161
2156
|
},
|
|
2162
2157
|
{
|
|
2163
2158
|
value: "right",
|
|
2164
|
-
label:
|
|
2159
|
+
label: a.title.alignRight,
|
|
2165
2160
|
icon: qe
|
|
2166
2161
|
}
|
|
2167
2162
|
]);
|
|
2168
|
-
function
|
|
2163
|
+
function u(e, t) {
|
|
2169
2164
|
i("update", { [e]: t });
|
|
2170
2165
|
}
|
|
2171
|
-
function
|
|
2166
|
+
function d() {
|
|
2172
2167
|
let e = {
|
|
2173
|
-
id:
|
|
2168
|
+
id: M(),
|
|
2174
2169
|
text: "",
|
|
2175
2170
|
url: "",
|
|
2176
2171
|
openInNewTab: !1,
|
|
2177
2172
|
bold: !1,
|
|
2178
2173
|
underline: !1
|
|
2179
2174
|
};
|
|
2180
|
-
i("update", { items: [...
|
|
2175
|
+
i("update", { items: [...n.block.items, e] });
|
|
2181
2176
|
}
|
|
2182
|
-
function
|
|
2183
|
-
let a =
|
|
2184
|
-
...
|
|
2185
|
-
[t]:
|
|
2186
|
-
} :
|
|
2177
|
+
function m(e, t, r) {
|
|
2178
|
+
let a = n.block.items.map((n) => n.id === e ? {
|
|
2179
|
+
...n,
|
|
2180
|
+
[t]: r
|
|
2181
|
+
} : n);
|
|
2187
2182
|
i("update", { items: a });
|
|
2188
2183
|
}
|
|
2189
2184
|
function C(e) {
|
|
2190
|
-
i("update", { items:
|
|
2185
|
+
i("update", { items: n.block.items.filter((t) => t.id !== e) });
|
|
2191
2186
|
}
|
|
2192
|
-
return (
|
|
2193
|
-
f($, { label:
|
|
2194
|
-
default:
|
|
2195
|
-
key:
|
|
2187
|
+
return (t, n) => (_(), h(b, null, [
|
|
2188
|
+
f($, { label: x(a).menu.items }, {
|
|
2189
|
+
default: r(() => [y("div", ji, [(_(!0), h(b, null, o(e.block.items, (t) => (_(), h("div", {
|
|
2190
|
+
key: t.id,
|
|
2196
2191
|
class: "tpl:flex tpl:flex-col tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-2"
|
|
2197
2192
|
}, [
|
|
2198
2193
|
y("div", Mi, [y("input", {
|
|
2199
2194
|
type: "text",
|
|
2200
|
-
class:
|
|
2201
|
-
value:
|
|
2202
|
-
placeholder:
|
|
2203
|
-
onInput: (e) =>
|
|
2195
|
+
class: v([x(K), "tpl:flex-1"]),
|
|
2196
|
+
value: t.text,
|
|
2197
|
+
placeholder: x(a).menu.text,
|
|
2198
|
+
onInput: (e) => m(t.id, "text", e.target.value)
|
|
2204
2199
|
}, null, 42, Ni), y("button", {
|
|
2205
|
-
class:
|
|
2206
|
-
title:
|
|
2207
|
-
onClick: (e) => C(
|
|
2208
|
-
}, [f(
|
|
2200
|
+
class: v(x(et)),
|
|
2201
|
+
title: x(a).menu.removeItem,
|
|
2202
|
+
onClick: (e) => C(t.id)
|
|
2203
|
+
}, [f(x(Ze), {
|
|
2209
2204
|
size: 14,
|
|
2210
2205
|
"stroke-width": 2
|
|
2211
2206
|
})], 10, Pi)]),
|
|
2212
2207
|
f(J, {
|
|
2213
|
-
"model-value":
|
|
2208
|
+
"model-value": t.url,
|
|
2214
2209
|
type: "url",
|
|
2215
|
-
placeholder:
|
|
2216
|
-
"onUpdate:modelValue": (e) =>
|
|
2210
|
+
placeholder: x(a).menu.urlPlaceholder,
|
|
2211
|
+
"onUpdate:modelValue": (e) => m(t.id, "url", e)
|
|
2217
2212
|
}, null, 8, [
|
|
2218
2213
|
"model-value",
|
|
2219
2214
|
"placeholder",
|
|
2220
2215
|
"onUpdate:modelValue"
|
|
2221
2216
|
]),
|
|
2222
|
-
y("div", Fi, [(_(!0), h(
|
|
2217
|
+
y("div", Fi, [(_(!0), h(b, null, o(c.value, (e) => (_(), S(q, {
|
|
2223
2218
|
key: e.key,
|
|
2224
|
-
"model-value":
|
|
2219
|
+
"model-value": t[e.key],
|
|
2225
2220
|
label: e.label,
|
|
2226
|
-
"onUpdate:modelValue": (
|
|
2221
|
+
"onUpdate:modelValue": (n) => m(t.id, e.key, n)
|
|
2227
2222
|
}, null, 8, [
|
|
2228
2223
|
"model-value",
|
|
2229
2224
|
"label",
|
|
2230
2225
|
"onUpdate:modelValue"
|
|
2231
2226
|
]))), 128))]),
|
|
2232
|
-
y("div", Ii, [y("label", { class:
|
|
2227
|
+
y("div", Ii, [y("label", { class: v([x(U), "tpl:!mb-0"]) }, s(x(a).menu.color), 3), f(V, {
|
|
2233
2228
|
"swatch-only": "",
|
|
2234
|
-
"model-value":
|
|
2235
|
-
"onUpdate:modelValue": (e) =>
|
|
2229
|
+
"model-value": t.color || e.block.linkColor || e.block.color || "",
|
|
2230
|
+
"onUpdate:modelValue": (e) => m(t.id, "color", e)
|
|
2236
2231
|
}, null, 8, ["model-value", "onUpdate:modelValue"])])
|
|
2237
2232
|
]))), 128)), y("button", {
|
|
2238
|
-
class:
|
|
2239
|
-
onClick:
|
|
2240
|
-
}, [f(
|
|
2233
|
+
class: v(x(tt)),
|
|
2234
|
+
onClick: d
|
|
2235
|
+
}, [f(x(H), {
|
|
2241
2236
|
size: 14,
|
|
2242
2237
|
"stroke-width": 2
|
|
2243
|
-
}), g(" " +
|
|
2238
|
+
}), g(" " + s(x(a).menu.addItem), 1)], 2)])]),
|
|
2244
2239
|
_: 1
|
|
2245
2240
|
}, 8, ["label"]),
|
|
2246
|
-
f($, { label:
|
|
2247
|
-
default:
|
|
2248
|
-
class:
|
|
2249
|
-
value:
|
|
2250
|
-
onChange:
|
|
2251
|
-
}, [y("option", Ri,
|
|
2241
|
+
f($, { label: x(a).menu.fontFamily }, {
|
|
2242
|
+
default: r(() => [y("select", {
|
|
2243
|
+
class: v(x(K)),
|
|
2244
|
+
value: x(ot)(e.block.fontFamily),
|
|
2245
|
+
onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
2246
|
+
}, [y("option", Ri, s(x(a).title.inheritFont), 1), (_(!0), h(b, null, o(e.fontFamilies, (e) => (_(), h("option", {
|
|
2252
2247
|
key: e.value,
|
|
2253
2248
|
value: e.value
|
|
2254
|
-
},
|
|
2249
|
+
}, s(e.label), 9, zi))), 128))], 42, Li)]),
|
|
2255
2250
|
_: 1
|
|
2256
2251
|
}, 8, ["label"]),
|
|
2257
|
-
f($, { label:
|
|
2258
|
-
default:
|
|
2252
|
+
f($, { label: x(a).menu.fontSize }, {
|
|
2253
|
+
default: r(() => [f(X, {
|
|
2259
2254
|
"model-value": e.block.fontSize,
|
|
2260
2255
|
min: 8,
|
|
2261
2256
|
max: 48,
|
|
2262
2257
|
suffix: "px",
|
|
2263
|
-
"onUpdate:modelValue":
|
|
2258
|
+
"onUpdate:modelValue": n[1] ||= (e) => u("fontSize", e)
|
|
2264
2259
|
}, null, 8, ["model-value"])]),
|
|
2265
2260
|
_: 1
|
|
2266
2261
|
}, 8, ["label"]),
|
|
2267
|
-
f($, { label:
|
|
2268
|
-
default:
|
|
2262
|
+
f($, { label: x(a).menu.color }, {
|
|
2263
|
+
default: r(() => [f(V, {
|
|
2269
2264
|
"model-value": e.block.color ?? "",
|
|
2270
|
-
"onUpdate:modelValue":
|
|
2265
|
+
"onUpdate:modelValue": n[2] ||= (e) => u("color", e || void 0)
|
|
2271
2266
|
}, null, 8, ["model-value"])]),
|
|
2272
2267
|
_: 1
|
|
2273
2268
|
}, 8, ["label"]),
|
|
2274
|
-
f($, { label:
|
|
2275
|
-
default:
|
|
2269
|
+
f($, { label: x(a).menu.linkColor }, {
|
|
2270
|
+
default: r(() => [f(V, {
|
|
2276
2271
|
"model-value": e.block.linkColor || e.block.color || "",
|
|
2277
|
-
"onUpdate:modelValue":
|
|
2272
|
+
"onUpdate:modelValue": n[3] ||= (e) => u("linkColor", e || void 0)
|
|
2278
2273
|
}, null, 8, ["model-value"])]),
|
|
2279
2274
|
_: 1
|
|
2280
2275
|
}, 8, ["label"]),
|
|
2281
|
-
f($, { label:
|
|
2282
|
-
default:
|
|
2283
|
-
options:
|
|
2276
|
+
f($, { label: x(a).menu.textAlign }, {
|
|
2277
|
+
default: r(() => [f(Y, {
|
|
2278
|
+
options: l.value,
|
|
2284
2279
|
"model-value": e.block.textAlign,
|
|
2285
|
-
"onUpdate:modelValue":
|
|
2280
|
+
"onUpdate:modelValue": n[4] ||= (e) => u("textAlign", e)
|
|
2286
2281
|
}, null, 8, ["options", "model-value"])]),
|
|
2287
2282
|
_: 1
|
|
2288
2283
|
}, 8, ["label"]),
|
|
2289
|
-
f($, { label:
|
|
2290
|
-
default:
|
|
2284
|
+
f($, { label: x(a).menu.separator }, {
|
|
2285
|
+
default: r(() => [y("input", {
|
|
2291
2286
|
type: "text",
|
|
2292
|
-
class:
|
|
2287
|
+
class: v(x(K)),
|
|
2293
2288
|
value: e.block.separator,
|
|
2294
|
-
onInput:
|
|
2289
|
+
onInput: n[5] ||= (e) => u("separator", e.target.value)
|
|
2295
2290
|
}, null, 42, Bi)]),
|
|
2296
2291
|
_: 1
|
|
2297
2292
|
}, 8, ["label"]),
|
|
2298
|
-
f($, { label:
|
|
2299
|
-
default:
|
|
2293
|
+
f($, { label: x(a).menu.separatorColor }, {
|
|
2294
|
+
default: r(() => [f(V, {
|
|
2300
2295
|
"model-value": e.block.separatorColor,
|
|
2301
|
-
"onUpdate:modelValue":
|
|
2296
|
+
"onUpdate:modelValue": n[6] ||= (e) => u("separatorColor", e)
|
|
2302
2297
|
}, null, 8, ["model-value"])]),
|
|
2303
2298
|
_: 1
|
|
2304
2299
|
}, 8, ["label"]),
|
|
2305
|
-
f($, { label:
|
|
2306
|
-
default:
|
|
2300
|
+
f($, { label: x(a).menu.spacing }, {
|
|
2301
|
+
default: r(() => [f(X, {
|
|
2307
2302
|
"model-value": e.block.spacing,
|
|
2308
2303
|
min: 0,
|
|
2309
2304
|
max: 50,
|
|
2310
2305
|
suffix: "px",
|
|
2311
|
-
"onUpdate:modelValue":
|
|
2306
|
+
"onUpdate:modelValue": n[7] ||= (e) => u("spacing", e)
|
|
2312
2307
|
}, null, 8, ["model-value"])]),
|
|
2313
2308
|
_: 1
|
|
2314
2309
|
}, 8, ["label"])
|
|
@@ -2321,22 +2316,21 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
2321
2316
|
__name: "ParagraphToolbar",
|
|
2322
2317
|
props: { block: {} },
|
|
2323
2318
|
emits: ["update"],
|
|
2324
|
-
setup(e, { emit:
|
|
2325
|
-
let
|
|
2326
|
-
return (
|
|
2319
|
+
setup(e, { emit: t }) {
|
|
2320
|
+
let n = t, { t: r } = B();
|
|
2321
|
+
return (t, i) => (_(), h("div", Hi, [y("label", { class: v(x(U)) }, s(x(r).paragraph.paragraphSpacing), 3), y("div", Ui, [y("input", {
|
|
2327
2322
|
type: "number",
|
|
2328
|
-
class:
|
|
2329
|
-
value: e.block.paragraphSpacing ??
|
|
2323
|
+
class: v(x(G)),
|
|
2324
|
+
value: e.block.paragraphSpacing ?? x(ae).paragraphGap,
|
|
2330
2325
|
min: "0",
|
|
2331
2326
|
max: "64",
|
|
2332
|
-
onInput:
|
|
2333
|
-
}, null, 42, Wi), y("span", { class:
|
|
2327
|
+
onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
2328
|
+
}, null, 42, Wi), y("span", { class: v(x(W)) }, "px", 2)])]));
|
|
2334
2329
|
}
|
|
2335
2330
|
});
|
|
2336
|
-
|
|
2337
|
-
//#region src/utils/rebalanceColumnChildren.ts
|
|
2331
|
+
// src/utils/rebalanceColumnChildren.ts
|
|
2338
2332
|
function Ki(e, t) {
|
|
2339
|
-
let n =
|
|
2333
|
+
let n = j(t);
|
|
2340
2334
|
if (e.length === n) return e;
|
|
2341
2335
|
if (e.length < n) {
|
|
2342
2336
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2345,8 +2339,7 @@ function Ki(e, t) {
|
|
|
2345
2339
|
let r = e.slice(0, n), i = e.slice(n).flat(), a = [...r[n - 1], ...i];
|
|
2346
2340
|
return [...r.slice(0, n - 1), a];
|
|
2347
2341
|
}
|
|
2348
|
-
|
|
2349
|
-
//#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2342
|
+
// src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2350
2343
|
var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
2351
2344
|
key: 0,
|
|
2352
2345
|
class: "tpl:mb-3.5"
|
|
@@ -2363,44 +2356,44 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2363
2356
|
__name: "SectionToolbar",
|
|
2364
2357
|
props: { block: {} },
|
|
2365
2358
|
emits: ["update"],
|
|
2366
|
-
setup(e, { emit:
|
|
2367
|
-
let
|
|
2359
|
+
setup(e, { emit: t }) {
|
|
2360
|
+
let r = e, i = t, { t: a } = B(), c = n(Ce, void 0), l = n(Ee, void 0), u = c !== void 0 && ne(c), d = p(() => l !== !1 || !!r.block.wrapper), g = p(() => u && !r.block.wrapper), C = p(() => u && d.value), w = p(() => oe(r.block)?.applied === !0), T = p(() => [
|
|
2368
2361
|
{
|
|
2369
2362
|
value: "1",
|
|
2370
|
-
label:
|
|
2363
|
+
label: a.section.column1
|
|
2371
2364
|
},
|
|
2372
2365
|
{
|
|
2373
2366
|
value: "2",
|
|
2374
|
-
label:
|
|
2367
|
+
label: a.section.column2
|
|
2375
2368
|
},
|
|
2376
2369
|
{
|
|
2377
2370
|
value: "3",
|
|
2378
|
-
label:
|
|
2371
|
+
label: a.section.column3
|
|
2379
2372
|
},
|
|
2380
2373
|
{
|
|
2381
2374
|
value: "1-2",
|
|
2382
|
-
label:
|
|
2375
|
+
label: a.section.ratio12
|
|
2383
2376
|
},
|
|
2384
2377
|
{
|
|
2385
2378
|
value: "2-1",
|
|
2386
|
-
label:
|
|
2379
|
+
label: a.section.ratio21
|
|
2387
2380
|
}
|
|
2388
2381
|
]);
|
|
2389
2382
|
function E(e) {
|
|
2390
|
-
let t = e.target.value, n = Ki(
|
|
2391
|
-
|
|
2383
|
+
let t = e.target.value, n = Ki(r.block.children, t);
|
|
2384
|
+
i("update", {
|
|
2392
2385
|
columns: t,
|
|
2393
2386
|
children: n
|
|
2394
2387
|
});
|
|
2395
2388
|
}
|
|
2396
2389
|
function D(e) {
|
|
2397
|
-
|
|
2390
|
+
i("update", { stackOnMobile: e });
|
|
2398
2391
|
}
|
|
2399
2392
|
function O(e) {
|
|
2400
|
-
|
|
2393
|
+
i("update", { borderRadius: e });
|
|
2401
2394
|
}
|
|
2402
2395
|
function k(e) {
|
|
2403
|
-
|
|
2396
|
+
i("update", { wrapper: e ? { padding: {
|
|
2404
2397
|
top: 20,
|
|
2405
2398
|
right: 20,
|
|
2406
2399
|
bottom: 20,
|
|
@@ -2408,8 +2401,8 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2408
2401
|
} } : void 0 });
|
|
2409
2402
|
}
|
|
2410
2403
|
function A(e) {
|
|
2411
|
-
|
|
2412
|
-
...
|
|
2404
|
+
i("update", { wrapper: {
|
|
2405
|
+
...r.block.wrapper,
|
|
2413
2406
|
...e
|
|
2414
2407
|
} });
|
|
2415
2408
|
}
|
|
@@ -2419,24 +2412,24 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2419
2412
|
function M(e) {
|
|
2420
2413
|
A({ borderRadius: e });
|
|
2421
2414
|
}
|
|
2422
|
-
return (
|
|
2423
|
-
y("div", qi, [y("label", { class:
|
|
2424
|
-
class:
|
|
2415
|
+
return (t, n) => (_(), h(b, null, [
|
|
2416
|
+
y("div", qi, [y("label", { class: v(x(U)) }, s(x(a).section.columns), 3), y("select", {
|
|
2417
|
+
class: v(x(K)),
|
|
2425
2418
|
value: e.block.columns,
|
|
2426
2419
|
onChange: E
|
|
2427
|
-
}, [(_(!0), h(
|
|
2420
|
+
}, [(_(!0), h(b, null, o(T.value, (e) => (_(), h("option", {
|
|
2428
2421
|
key: e.value,
|
|
2429
2422
|
value: e.value
|
|
2430
|
-
},
|
|
2423
|
+
}, s(e.label), 9, Yi))), 128))], 42, Ji)]),
|
|
2431
2424
|
e.block.columns === "1" ? m("", !0) : (_(), h("div", Xi, [f(q, {
|
|
2432
2425
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2433
2426
|
"model-value": e.block.stackOnMobile !== !1,
|
|
2434
|
-
label:
|
|
2435
|
-
"onUpdate:modelValue":
|
|
2427
|
+
label: x(a).section.stackOnMobile,
|
|
2428
|
+
"onUpdate:modelValue": n[0] ||= (e) => D(e)
|
|
2436
2429
|
}, null, 8, ["model-value", "label"])])),
|
|
2437
2430
|
f(Ot, {
|
|
2438
2431
|
"model-value": e.block.borderRadius,
|
|
2439
|
-
label:
|
|
2432
|
+
label: x(a).section.borderRadius,
|
|
2440
2433
|
max: 50,
|
|
2441
2434
|
"testid-prefix": "section",
|
|
2442
2435
|
"onUpdate:modelValue": O
|
|
@@ -2445,34 +2438,34 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2445
2438
|
key: 1,
|
|
2446
2439
|
"model-value": e.block.border,
|
|
2447
2440
|
"testid-prefix": "section",
|
|
2448
|
-
"onUpdate:modelValue":
|
|
2441
|
+
"onUpdate:modelValue": n[1] ||= (e) => i("update", { border: e })
|
|
2449
2442
|
}, null, 8, ["model-value"])),
|
|
2450
|
-
|
|
2443
|
+
d.value ? (_(), h("div", Zi, [
|
|
2451
2444
|
f(q, {
|
|
2452
2445
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2453
2446
|
"model-value": !!e.block.wrapper,
|
|
2454
|
-
label:
|
|
2455
|
-
disabled:
|
|
2456
|
-
"onUpdate:modelValue":
|
|
2447
|
+
label: x(a).section.wrapperEnable,
|
|
2448
|
+
disabled: g.value,
|
|
2449
|
+
"onUpdate:modelValue": n[2] ||= (e) => k(e)
|
|
2457
2450
|
}, null, 8, [
|
|
2458
2451
|
"model-value",
|
|
2459
2452
|
"label",
|
|
2460
2453
|
"disabled"
|
|
2461
2454
|
]),
|
|
2462
|
-
C.value ? (_(), h("p", Qi,
|
|
2455
|
+
C.value ? (_(), h("p", Qi, s(x(a).section.wrapperLayoutConflict), 1)) : m("", !0),
|
|
2463
2456
|
e.block.wrapper ? (_(), h("div", $i, [
|
|
2464
|
-
y("div", null, [y("label", { class:
|
|
2457
|
+
y("div", null, [y("label", { class: v(x(U)) }, s(x(a).blockSettings.color), 3), f(V, {
|
|
2465
2458
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
2466
2459
|
"allow-transparent": "",
|
|
2467
|
-
"onUpdate:modelValue":
|
|
2460
|
+
"onUpdate:modelValue": n[3] ||= (e) => A({ backgroundColor: e })
|
|
2468
2461
|
}, null, 8, ["model-value"])]),
|
|
2469
2462
|
f(An, {
|
|
2470
2463
|
"model-value": e.block.wrapper.backgroundImage,
|
|
2471
2464
|
"testid-prefix": "section-wrapper",
|
|
2472
|
-
"onUpdate:modelValue":
|
|
2465
|
+
"onUpdate:modelValue": n[4] ||= (e) => A({ backgroundImage: e })
|
|
2473
2466
|
}, null, 8, ["model-value"]),
|
|
2474
2467
|
f(yn, {
|
|
2475
|
-
label:
|
|
2468
|
+
label: x(a).blockSettings.padding,
|
|
2476
2469
|
"model-value": e.block.wrapper.padding ?? {
|
|
2477
2470
|
top: 0,
|
|
2478
2471
|
right: 0,
|
|
@@ -2483,7 +2476,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2483
2476
|
}, null, 8, ["label", "model-value"]),
|
|
2484
2477
|
f(Ot, {
|
|
2485
2478
|
"model-value": e.block.wrapper.borderRadius,
|
|
2486
|
-
label:
|
|
2479
|
+
label: x(a).section.borderRadius,
|
|
2487
2480
|
max: 50,
|
|
2488
2481
|
"testid-prefix": "section-wrapper",
|
|
2489
2482
|
"onUpdate:modelValue": M
|
|
@@ -2496,132 +2489,132 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2496
2489
|
__name: "SocialToolbar",
|
|
2497
2490
|
props: { block: {} },
|
|
2498
2491
|
emits: ["update"],
|
|
2499
|
-
setup(e, { emit:
|
|
2500
|
-
let
|
|
2501
|
-
function
|
|
2502
|
-
|
|
2492
|
+
setup(e, { emit: t }) {
|
|
2493
|
+
let n = e, r = t, { t: i } = B();
|
|
2494
|
+
function a(e, t) {
|
|
2495
|
+
r("update", { [e]: t });
|
|
2503
2496
|
}
|
|
2504
|
-
function
|
|
2497
|
+
function c() {
|
|
2505
2498
|
let e = {
|
|
2506
|
-
id:
|
|
2499
|
+
id: M(),
|
|
2507
2500
|
platform: "facebook",
|
|
2508
2501
|
url: ""
|
|
2509
2502
|
};
|
|
2510
|
-
|
|
2503
|
+
r("update", { icons: [...n.block.icons, e] });
|
|
2511
2504
|
}
|
|
2512
|
-
function
|
|
2513
|
-
let a =
|
|
2514
|
-
...
|
|
2515
|
-
[t]:
|
|
2516
|
-
} :
|
|
2517
|
-
|
|
2505
|
+
function l(e, t, i) {
|
|
2506
|
+
let a = n.block.icons.map((n) => n.id === e ? {
|
|
2507
|
+
...n,
|
|
2508
|
+
[t]: i
|
|
2509
|
+
} : n);
|
|
2510
|
+
r("update", { icons: a });
|
|
2518
2511
|
}
|
|
2519
|
-
function
|
|
2520
|
-
|
|
2512
|
+
function u(e) {
|
|
2513
|
+
r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
2521
2514
|
}
|
|
2522
|
-
return (
|
|
2523
|
-
y("div", ta, [y("label", { class:
|
|
2515
|
+
return (t, n) => (_(), h(b, null, [
|
|
2516
|
+
y("div", ta, [y("label", { class: v(x(U)) }, s(x(i).social.icons), 3), y("div", na, [(_(!0), h(b, null, o(e.block.icons, (e) => (_(), h("div", {
|
|
2524
2517
|
key: e.id,
|
|
2525
2518
|
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"
|
|
2526
2519
|
}, [y("div", ra, [y("select", {
|
|
2527
2520
|
"data-testid": "social-platform-select",
|
|
2528
|
-
class:
|
|
2521
|
+
class: v([x(K), "tpl:flex-1"]),
|
|
2529
2522
|
value: e.platform,
|
|
2530
|
-
onChange: (t) =>
|
|
2531
|
-
}, [(_(!0), h(
|
|
2523
|
+
onChange: (t) => l(e.id, "platform", t.target.value)
|
|
2524
|
+
}, [(_(!0), h(b, null, o(x(ye), (e) => (_(), h("option", {
|
|
2532
2525
|
key: e,
|
|
2533
2526
|
value: e
|
|
2534
|
-
},
|
|
2535
|
-
class:
|
|
2536
|
-
title:
|
|
2537
|
-
onClick: (t) =>
|
|
2538
|
-
}, [f(
|
|
2527
|
+
}, s(x(i).social.platforms[e]), 9, aa))), 128))], 42, ia), y("button", {
|
|
2528
|
+
class: v(x(et)),
|
|
2529
|
+
title: x(i).social.removeIcon,
|
|
2530
|
+
onClick: (t) => u(e.id)
|
|
2531
|
+
}, [f(x(Ze), {
|
|
2539
2532
|
size: 14,
|
|
2540
2533
|
"stroke-width": 2
|
|
2541
2534
|
})], 10, oa)]), f(J, {
|
|
2542
2535
|
"model-value": e.url,
|
|
2543
2536
|
type: "url",
|
|
2544
|
-
placeholder:
|
|
2545
|
-
"onUpdate:modelValue": (t) =>
|
|
2537
|
+
placeholder: x(i).social.urlPlaceholder,
|
|
2538
|
+
"onUpdate:modelValue": (t) => l(e.id, "url", t)
|
|
2546
2539
|
}, null, 8, [
|
|
2547
2540
|
"model-value",
|
|
2548
2541
|
"placeholder",
|
|
2549
2542
|
"onUpdate:modelValue"
|
|
2550
2543
|
])]))), 128)), y("button", {
|
|
2551
|
-
class:
|
|
2552
|
-
onClick:
|
|
2553
|
-
}, [f(
|
|
2544
|
+
class: v(x(tt)),
|
|
2545
|
+
onClick: c
|
|
2546
|
+
}, [f(x(H), {
|
|
2554
2547
|
size: 14,
|
|
2555
2548
|
"stroke-width": 2
|
|
2556
|
-
}), g(" " +
|
|
2557
|
-
y("div", sa, [y("label", { class:
|
|
2558
|
-
class:
|
|
2549
|
+
}), g(" " + s(x(i).social.addIcon), 1)], 2)])]),
|
|
2550
|
+
y("div", sa, [y("label", { class: v(x(U)) }, s(x(i).social.style), 3), y("select", {
|
|
2551
|
+
class: v(x(K)),
|
|
2559
2552
|
value: e.block.iconStyle,
|
|
2560
|
-
onChange:
|
|
2553
|
+
onChange: n[0] ||= (e) => a("iconStyle", e.target.value)
|
|
2561
2554
|
}, [
|
|
2562
|
-
y("option", la,
|
|
2563
|
-
y("option", ua,
|
|
2564
|
-
y("option", da,
|
|
2565
|
-
y("option", fa,
|
|
2566
|
-
y("option", pa,
|
|
2567
|
-
y("option", ma,
|
|
2555
|
+
y("option", la, s(x(i).social.styleSolid), 1),
|
|
2556
|
+
y("option", ua, s(x(i).social.styleOutlined), 1),
|
|
2557
|
+
y("option", da, s(x(i).social.styleRounded), 1),
|
|
2558
|
+
y("option", fa, s(x(i).social.styleSquare), 1),
|
|
2559
|
+
y("option", pa, s(x(i).social.styleCircle), 1),
|
|
2560
|
+
y("option", ma, s(x(i).social.stylePlain), 1)
|
|
2568
2561
|
], 42, ca)]),
|
|
2569
|
-
y("div", ha, [y("label", { class:
|
|
2562
|
+
y("div", ha, [y("label", { class: v(x(U)) }, s(x(i).social.color), 3), y("select", {
|
|
2570
2563
|
"data-testid": "social-tone-select",
|
|
2571
|
-
class:
|
|
2564
|
+
class: v(x(K)),
|
|
2572
2565
|
value: e.block.iconTone ?? "brand",
|
|
2573
|
-
onChange:
|
|
2566
|
+
onChange: n[1] ||= (e) => a("iconTone", e.target.value)
|
|
2574
2567
|
}, [
|
|
2575
|
-
y("option", _a,
|
|
2576
|
-
y("option", va,
|
|
2577
|
-
y("option", ya,
|
|
2568
|
+
y("option", _a, s(x(i).social.colorBrand), 1),
|
|
2569
|
+
y("option", va, s(x(i).social.colorDark), 1),
|
|
2570
|
+
y("option", ya, s(x(i).social.colorLight), 1)
|
|
2578
2571
|
], 42, ga)]),
|
|
2579
|
-
y("div", ba, [y("label", { class:
|
|
2572
|
+
y("div", ba, [y("label", { class: v(x(U)) }, s(x(i).social.size), 3), f(Y, {
|
|
2580
2573
|
options: [
|
|
2581
2574
|
{
|
|
2582
2575
|
value: "small",
|
|
2583
|
-
label:
|
|
2576
|
+
label: x(i).social.sizeSmall
|
|
2584
2577
|
},
|
|
2585
2578
|
{
|
|
2586
2579
|
value: "medium",
|
|
2587
|
-
label:
|
|
2580
|
+
label: x(i).social.sizeMedium
|
|
2588
2581
|
},
|
|
2589
2582
|
{
|
|
2590
2583
|
value: "large",
|
|
2591
|
-
label:
|
|
2584
|
+
label: x(i).social.sizeLarge
|
|
2592
2585
|
}
|
|
2593
2586
|
],
|
|
2594
2587
|
"model-value": e.block.iconSize,
|
|
2595
|
-
"onUpdate:modelValue":
|
|
2588
|
+
"onUpdate:modelValue": n[2] ||= (e) => a("iconSize", e)
|
|
2596
2589
|
}, null, 8, ["options", "model-value"])]),
|
|
2597
|
-
y("div", xa, [y("label", { class:
|
|
2590
|
+
y("div", xa, [y("label", { class: v(x(U)) }, s(x(i).social.spacing), 3), y("div", Sa, [y("input", {
|
|
2598
2591
|
type: "number",
|
|
2599
|
-
class:
|
|
2592
|
+
class: v(x(G)),
|
|
2600
2593
|
value: e.block.spacing,
|
|
2601
2594
|
min: "0",
|
|
2602
2595
|
max: "50",
|
|
2603
|
-
onInput:
|
|
2604
|
-
}, null, 42, Ca), y("span", { class:
|
|
2605
|
-
y("div", wa, [y("label", { class:
|
|
2596
|
+
onInput: n[3] ||= (e) => a("spacing", Number(e.target.value))
|
|
2597
|
+
}, null, 42, Ca), y("span", { class: v(x(W)) }, "px", 2)])]),
|
|
2598
|
+
y("div", wa, [y("label", { class: v(x(U)) }, s(x(i).social.align), 3), f(Y, {
|
|
2606
2599
|
options: [
|
|
2607
2600
|
{
|
|
2608
2601
|
value: "left",
|
|
2609
|
-
label:
|
|
2610
|
-
icon:
|
|
2602
|
+
label: x(i).title.alignLeft,
|
|
2603
|
+
icon: x(Ye)
|
|
2611
2604
|
},
|
|
2612
2605
|
{
|
|
2613
2606
|
value: "center",
|
|
2614
|
-
label:
|
|
2615
|
-
icon:
|
|
2607
|
+
label: x(i).title.alignCenter,
|
|
2608
|
+
icon: x(Je)
|
|
2616
2609
|
},
|
|
2617
2610
|
{
|
|
2618
2611
|
value: "right",
|
|
2619
|
-
label:
|
|
2620
|
-
icon:
|
|
2612
|
+
label: x(i).title.alignRight,
|
|
2613
|
+
icon: x(qe)
|
|
2621
2614
|
}
|
|
2622
2615
|
],
|
|
2623
2616
|
"model-value": e.block.align,
|
|
2624
|
-
"onUpdate:modelValue":
|
|
2617
|
+
"onUpdate:modelValue": n[4] ||= (e) => a("align", e)
|
|
2625
2618
|
}, null, 8, ["options", "model-value"])])
|
|
2626
2619
|
], 64));
|
|
2627
2620
|
}
|
|
@@ -2629,25 +2622,25 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2629
2622
|
__name: "SpacerToolbar",
|
|
2630
2623
|
props: { block: {} },
|
|
2631
2624
|
emits: ["update"],
|
|
2632
|
-
setup(e, { emit:
|
|
2633
|
-
let
|
|
2634
|
-
return (
|
|
2635
|
-
y("label", { class:
|
|
2625
|
+
setup(e, { emit: t }) {
|
|
2626
|
+
let n = t, { t: r } = B();
|
|
2627
|
+
return (t, i) => (_(), h("div", Ea, [
|
|
2628
|
+
y("label", { class: v(x(U)) }, s(x(r).spacer.height), 3),
|
|
2636
2629
|
y("div", Da, [y("input", {
|
|
2637
2630
|
type: "number",
|
|
2638
|
-
class:
|
|
2631
|
+
class: v(x(G)),
|
|
2639
2632
|
value: e.block.height,
|
|
2640
2633
|
min: "10",
|
|
2641
2634
|
max: "100",
|
|
2642
|
-
onInput:
|
|
2643
|
-
}, null, 42, Oa), y("span", { class:
|
|
2635
|
+
onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2636
|
+
}, null, 42, Oa), y("span", { class: v(x(W)) }, "px", 2)]),
|
|
2644
2637
|
y("input", {
|
|
2645
2638
|
type: "range",
|
|
2646
2639
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
2647
2640
|
value: e.block.height,
|
|
2648
2641
|
min: "10",
|
|
2649
2642
|
max: "100",
|
|
2650
|
-
onInput:
|
|
2643
|
+
onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2651
2644
|
}, null, 40, ka)
|
|
2652
2645
|
]));
|
|
2653
2646
|
}
|
|
@@ -2661,73 +2654,73 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2661
2654
|
fontFamilies: {}
|
|
2662
2655
|
},
|
|
2663
2656
|
emits: ["update"],
|
|
2664
|
-
setup(e, { emit:
|
|
2665
|
-
let
|
|
2666
|
-
function
|
|
2667
|
-
|
|
2657
|
+
setup(e, { emit: t }) {
|
|
2658
|
+
let n = e, r = t, { t: i } = B(), a = p(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
2659
|
+
function c(e, t) {
|
|
2660
|
+
r("update", { [e]: t });
|
|
2668
2661
|
}
|
|
2669
|
-
function
|
|
2670
|
-
let e =
|
|
2671
|
-
id:
|
|
2662
|
+
function l() {
|
|
2663
|
+
let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
|
|
2664
|
+
id: M(),
|
|
2672
2665
|
cells: Array.from({ length: e }, () => ({
|
|
2673
|
-
id:
|
|
2666
|
+
id: M(),
|
|
2674
2667
|
content: ""
|
|
2675
2668
|
}))
|
|
2676
2669
|
};
|
|
2677
|
-
|
|
2670
|
+
r("update", { rows: [...n.block.rows, t] });
|
|
2678
2671
|
}
|
|
2679
|
-
function
|
|
2680
|
-
|
|
2672
|
+
function u(e) {
|
|
2673
|
+
r("update", { rows: n.block.rows.filter((t) => t.id !== e) });
|
|
2681
2674
|
}
|
|
2682
|
-
function
|
|
2683
|
-
let e =
|
|
2675
|
+
function d() {
|
|
2676
|
+
let e = n.block.rows.map((e) => ({
|
|
2684
2677
|
...e,
|
|
2685
2678
|
cells: [...e.cells, {
|
|
2686
|
-
id:
|
|
2679
|
+
id: M(),
|
|
2687
2680
|
content: ""
|
|
2688
2681
|
}]
|
|
2689
2682
|
}));
|
|
2690
|
-
|
|
2683
|
+
r("update", { rows: e });
|
|
2691
2684
|
}
|
|
2692
|
-
function
|
|
2693
|
-
let t =
|
|
2685
|
+
function g(e) {
|
|
2686
|
+
let t = n.block.rows.map((t) => ({
|
|
2694
2687
|
...t,
|
|
2695
2688
|
cells: t.cells.filter((t, n) => n !== e)
|
|
2696
2689
|
}));
|
|
2697
|
-
|
|
2690
|
+
r("update", { rows: t });
|
|
2698
2691
|
}
|
|
2699
|
-
return (
|
|
2700
|
-
y("div", ja, [y("label", { class:
|
|
2692
|
+
return (t, n) => (_(), h(b, null, [
|
|
2693
|
+
y("div", ja, [y("label", { class: v(x(U)) }, s(x(i).table.dimensions), 3), y("div", Ma, [y("div", Na, [y("span", Pa, s(x(i).table.rows), 1), y("div", Fa, [
|
|
2701
2694
|
y("button", {
|
|
2702
2695
|
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",
|
|
2703
2696
|
disabled: e.block.rows.length <= 1,
|
|
2704
|
-
onClick:
|
|
2705
|
-
}, [f(
|
|
2697
|
+
onClick: n[0] ||= (t) => u(e.block.rows[e.block.rows.length - 1].id)
|
|
2698
|
+
}, [f(x(Re), {
|
|
2706
2699
|
size: 12,
|
|
2707
2700
|
"stroke-width": 2
|
|
2708
2701
|
})], 8, Ia),
|
|
2709
|
-
y("span", La,
|
|
2702
|
+
y("span", La, s(e.block.rows.length), 1),
|
|
2710
2703
|
y("button", {
|
|
2711
2704
|
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)]",
|
|
2712
|
-
onClick:
|
|
2713
|
-
}, [f(
|
|
2705
|
+
onClick: l
|
|
2706
|
+
}, [f(x(H), {
|
|
2714
2707
|
size: 12,
|
|
2715
2708
|
"stroke-width": 2
|
|
2716
2709
|
})])
|
|
2717
|
-
])]), y("div", Ra, [y("span", za,
|
|
2710
|
+
])]), y("div", Ra, [y("span", za, s(x(i).table.columns), 1), y("div", Ba, [
|
|
2718
2711
|
y("button", {
|
|
2719
2712
|
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",
|
|
2720
|
-
disabled:
|
|
2721
|
-
onClick:
|
|
2722
|
-
}, [f(
|
|
2713
|
+
disabled: a.value <= 1,
|
|
2714
|
+
onClick: n[1] ||= (e) => g(a.value - 1)
|
|
2715
|
+
}, [f(x(Re), {
|
|
2723
2716
|
size: 12,
|
|
2724
2717
|
"stroke-width": 2
|
|
2725
2718
|
})], 8, Va),
|
|
2726
|
-
y("span", Ha, a
|
|
2719
|
+
y("span", Ha, s(a.value), 1),
|
|
2727
2720
|
y("button", {
|
|
2728
2721
|
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)]",
|
|
2729
|
-
onClick:
|
|
2730
|
-
}, [f(
|
|
2722
|
+
onClick: d
|
|
2723
|
+
}, [f(x(H), {
|
|
2731
2724
|
size: 12,
|
|
2732
2725
|
"stroke-width": 2
|
|
2733
2726
|
})])
|
|
@@ -2735,79 +2728,79 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2735
2728
|
y("div", Ua, [f(q, {
|
|
2736
2729
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
2737
2730
|
"model-value": e.block.hasHeaderRow,
|
|
2738
|
-
label:
|
|
2739
|
-
"onUpdate:modelValue":
|
|
2731
|
+
label: x(i).table.hasHeaderRow,
|
|
2732
|
+
"onUpdate:modelValue": n[2] ||= (e) => c("hasHeaderRow", e)
|
|
2740
2733
|
}, null, 8, ["model-value", "label"])]),
|
|
2741
|
-
e.block.hasHeaderRow ? (_(), h("div", Wa, [y("label", { class:
|
|
2734
|
+
e.block.hasHeaderRow ? (_(), h("div", Wa, [y("label", { class: v(x(U)) }, s(x(i).table.headerBackgroundColor), 3), f(V, {
|
|
2742
2735
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
2743
|
-
"seed-color":
|
|
2744
|
-
placeholder:
|
|
2745
|
-
"onUpdate:modelValue":
|
|
2736
|
+
"seed-color": x(nt),
|
|
2737
|
+
placeholder: x(i).table.noHeaderBg,
|
|
2738
|
+
"onUpdate:modelValue": n[3] ||= (e) => c("headerBackgroundColor", e || null)
|
|
2746
2739
|
}, null, 8, [
|
|
2747
2740
|
"model-value",
|
|
2748
2741
|
"seed-color",
|
|
2749
2742
|
"placeholder"
|
|
2750
2743
|
])])) : m("", !0),
|
|
2751
|
-
y("div", Ga, [y("label", { class:
|
|
2744
|
+
y("div", Ga, [y("label", { class: v(x(U)) }, s(x(i).table.borderColor), 3), f(V, {
|
|
2752
2745
|
"model-value": e.block.borderColor,
|
|
2753
|
-
"onUpdate:modelValue":
|
|
2746
|
+
"onUpdate:modelValue": n[4] ||= (e) => c("borderColor", e)
|
|
2754
2747
|
}, null, 8, ["model-value"])]),
|
|
2755
|
-
y("div", Ka, [y("label", { class:
|
|
2748
|
+
y("div", Ka, [y("label", { class: v(x(U)) }, s(x(i).table.borderWidth), 3), y("div", qa, [y("input", {
|
|
2756
2749
|
type: "number",
|
|
2757
|
-
class:
|
|
2750
|
+
class: v(x(G)),
|
|
2758
2751
|
value: e.block.borderWidth,
|
|
2759
2752
|
min: "0",
|
|
2760
2753
|
max: "10",
|
|
2761
|
-
onInput:
|
|
2762
|
-
}, null, 42, Ja), y("span", { class:
|
|
2763
|
-
y("div", Ya, [y("label", { class:
|
|
2754
|
+
onInput: n[5] ||= (e) => c("borderWidth", Number(e.target.value))
|
|
2755
|
+
}, null, 42, Ja), y("span", { class: v(x(W)) }, "px", 2)])]),
|
|
2756
|
+
y("div", Ya, [y("label", { class: v(x(U)) }, s(x(i).table.cellPadding), 3), y("div", Xa, [y("input", {
|
|
2764
2757
|
type: "number",
|
|
2765
|
-
class:
|
|
2758
|
+
class: v(x(G)),
|
|
2766
2759
|
value: e.block.cellPadding,
|
|
2767
2760
|
min: "0",
|
|
2768
2761
|
max: "30",
|
|
2769
|
-
onInput:
|
|
2770
|
-
}, null, 42, Za), y("span", { class:
|
|
2771
|
-
y("div", Qa, [y("label", { class:
|
|
2772
|
-
class:
|
|
2773
|
-
value:
|
|
2774
|
-
onChange:
|
|
2775
|
-
}, [y("option", eo,
|
|
2762
|
+
onInput: n[6] ||= (e) => c("cellPadding", Number(e.target.value))
|
|
2763
|
+
}, null, 42, Za), y("span", { class: v(x(W)) }, "px", 2)])]),
|
|
2764
|
+
y("div", Qa, [y("label", { class: v(x(U)) }, s(x(i).table.fontFamily), 3), y("select", {
|
|
2765
|
+
class: v(x(K)),
|
|
2766
|
+
value: x(ot)(e.block.fontFamily),
|
|
2767
|
+
onChange: n[7] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
2768
|
+
}, [y("option", eo, s(x(i).title.inheritFont), 1), (_(!0), h(b, null, o(e.fontFamilies, (e) => (_(), h("option", {
|
|
2776
2769
|
key: e.value,
|
|
2777
2770
|
value: e.value
|
|
2778
|
-
},
|
|
2779
|
-
y("div", no, [y("label", { class:
|
|
2771
|
+
}, s(e.label), 9, to))), 128))], 42, $a)]),
|
|
2772
|
+
y("div", no, [y("label", { class: v(x(U)) }, s(x(i).table.fontSize), 3), y("div", ro, [y("input", {
|
|
2780
2773
|
type: "number",
|
|
2781
|
-
class:
|
|
2774
|
+
class: v(x(G)),
|
|
2782
2775
|
value: e.block.fontSize,
|
|
2783
2776
|
min: "10",
|
|
2784
2777
|
max: "32",
|
|
2785
|
-
onInput:
|
|
2786
|
-
}, null, 42, io), y("span", { class:
|
|
2787
|
-
y("div", ao, [y("label", { class:
|
|
2778
|
+
onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
2779
|
+
}, null, 42, io), y("span", { class: v(x(W)) }, "px", 2)])]),
|
|
2780
|
+
y("div", ao, [y("label", { class: v(x(U)) }, s(x(i).table.color), 3), f(V, {
|
|
2788
2781
|
"model-value": e.block.color ?? "",
|
|
2789
|
-
"onUpdate:modelValue":
|
|
2782
|
+
"onUpdate:modelValue": n[9] ||= (e) => c("color", e || void 0)
|
|
2790
2783
|
}, null, 8, ["model-value"])]),
|
|
2791
|
-
y("div", oo, [y("label", { class:
|
|
2784
|
+
y("div", oo, [y("label", { class: v(x(U)) }, s(x(i).table.textAlign), 3), f(Y, {
|
|
2792
2785
|
options: [
|
|
2793
2786
|
{
|
|
2794
2787
|
value: "left",
|
|
2795
|
-
label:
|
|
2796
|
-
icon:
|
|
2788
|
+
label: x(i).title.alignLeft,
|
|
2789
|
+
icon: x(Ye)
|
|
2797
2790
|
},
|
|
2798
2791
|
{
|
|
2799
2792
|
value: "center",
|
|
2800
|
-
label:
|
|
2801
|
-
icon:
|
|
2793
|
+
label: x(i).title.alignCenter,
|
|
2794
|
+
icon: x(Je)
|
|
2802
2795
|
},
|
|
2803
2796
|
{
|
|
2804
2797
|
value: "right",
|
|
2805
|
-
label:
|
|
2806
|
-
icon:
|
|
2798
|
+
label: x(i).title.alignRight,
|
|
2799
|
+
icon: x(qe)
|
|
2807
2800
|
}
|
|
2808
2801
|
],
|
|
2809
2802
|
"model-value": e.block.textAlign,
|
|
2810
|
-
"onUpdate:modelValue":
|
|
2803
|
+
"onUpdate:modelValue": n[10] ||= (e) => c("textAlign", e)
|
|
2811
2804
|
}, null, 8, ["options", "model-value"])])
|
|
2812
2805
|
], 64));
|
|
2813
2806
|
}
|
|
@@ -2818,54 +2811,54 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2818
2811
|
fontFamilies: {}
|
|
2819
2812
|
},
|
|
2820
2813
|
emits: ["update"],
|
|
2821
|
-
setup(e, { emit:
|
|
2822
|
-
let
|
|
2823
|
-
function
|
|
2824
|
-
|
|
2814
|
+
setup(e, { emit: t }) {
|
|
2815
|
+
let n = t, { t: r } = B();
|
|
2816
|
+
function i(e, t) {
|
|
2817
|
+
n("update", { [e]: t });
|
|
2825
2818
|
}
|
|
2826
|
-
return (
|
|
2827
|
-
y("div", co, [y("label", { class:
|
|
2828
|
-
class:
|
|
2819
|
+
return (t, n) => (_(), h(b, null, [
|
|
2820
|
+
y("div", co, [y("label", { class: v(x(U)) }, s(x(r).title.level), 3), y("select", {
|
|
2821
|
+
class: v(x(K)),
|
|
2829
2822
|
value: e.block.level,
|
|
2830
|
-
onChange:
|
|
2823
|
+
onChange: n[0] ||= (e) => i("level", Number(e.target.value))
|
|
2831
2824
|
}, [
|
|
2832
|
-
y("option", uo,
|
|
2833
|
-
y("option", fo,
|
|
2834
|
-
y("option", po,
|
|
2835
|
-
y("option", mo,
|
|
2825
|
+
y("option", uo, s(x(r).title.heading1), 1),
|
|
2826
|
+
y("option", fo, s(x(r).title.heading2), 1),
|
|
2827
|
+
y("option", po, s(x(r).title.heading3), 1),
|
|
2828
|
+
y("option", mo, s(x(r).title.heading4), 1)
|
|
2836
2829
|
], 42, lo)]),
|
|
2837
|
-
y("div", ho, [y("label", { class:
|
|
2838
|
-
class:
|
|
2839
|
-
value:
|
|
2840
|
-
onChange:
|
|
2841
|
-
}, [y("option", _o,
|
|
2830
|
+
y("div", ho, [y("label", { class: v(x(U)) }, s(x(r).title.fontFamily), 3), y("select", {
|
|
2831
|
+
class: v(x(K)),
|
|
2832
|
+
value: x(ot)(e.block.fontFamily),
|
|
2833
|
+
onChange: n[1] ||= (e) => i("fontFamily", e.target.value || void 0)
|
|
2834
|
+
}, [y("option", _o, s(x(r).title.inheritFont), 1), (_(!0), h(b, null, o(e.fontFamilies, (e) => (_(), h("option", {
|
|
2842
2835
|
key: e.value,
|
|
2843
2836
|
value: e.value
|
|
2844
|
-
},
|
|
2845
|
-
y("div", yo, [y("label", { class:
|
|
2837
|
+
}, s(e.label), 9, vo))), 128))], 42, go)]),
|
|
2838
|
+
y("div", yo, [y("label", { class: v(x(U)) }, s(x(r).title.color), 3), f(V, {
|
|
2846
2839
|
"model-value": e.block.color ?? "",
|
|
2847
|
-
"onUpdate:modelValue":
|
|
2840
|
+
"onUpdate:modelValue": n[2] ||= (e) => i("color", e || void 0)
|
|
2848
2841
|
}, null, 8, ["model-value"])]),
|
|
2849
|
-
y("div", bo, [y("label", { class:
|
|
2842
|
+
y("div", bo, [y("label", { class: v(x(U)) }, s(x(r).title.align), 3), f(Y, {
|
|
2850
2843
|
options: [
|
|
2851
2844
|
{
|
|
2852
2845
|
value: "left",
|
|
2853
|
-
label:
|
|
2854
|
-
icon:
|
|
2846
|
+
label: x(r).title.alignLeft,
|
|
2847
|
+
icon: x(Ye)
|
|
2855
2848
|
},
|
|
2856
2849
|
{
|
|
2857
2850
|
value: "center",
|
|
2858
|
-
label:
|
|
2859
|
-
icon:
|
|
2851
|
+
label: x(r).title.alignCenter,
|
|
2852
|
+
icon: x(Je)
|
|
2860
2853
|
},
|
|
2861
2854
|
{
|
|
2862
2855
|
value: "right",
|
|
2863
|
-
label:
|
|
2864
|
-
icon:
|
|
2856
|
+
label: x(r).title.alignRight,
|
|
2857
|
+
icon: x(qe)
|
|
2865
2858
|
}
|
|
2866
2859
|
],
|
|
2867
2860
|
"model-value": e.block.textAlign,
|
|
2868
|
-
"onUpdate:modelValue":
|
|
2861
|
+
"onUpdate:modelValue": n[3] ||= (e) => i("textAlign", e)
|
|
2869
2862
|
}, null, 8, ["options", "model-value"])])
|
|
2870
2863
|
], 64));
|
|
2871
2864
|
}
|
|
@@ -2887,30 +2880,30 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2887
2880
|
props: { block: {} },
|
|
2888
2881
|
emits: ["update"],
|
|
2889
2882
|
setup(e, { emit: r }) {
|
|
2890
|
-
let i = e,
|
|
2883
|
+
let i = e, a = r, { t: o } = B(), c = n(we, null), l = n(Te, te.liquid), u = z(), d = [
|
|
2891
2884
|
300,
|
|
2892
2885
|
400,
|
|
2893
2886
|
500
|
|
2894
|
-
], C = p(() => !!
|
|
2887
|
+
], C = p(() => !!c), w = p(() => A(i.block.url, l)), T = p(() => {
|
|
2895
2888
|
let e = i.block.width;
|
|
2896
|
-
return e === "full" ? "full" :
|
|
2897
|
-
}), E = p(() => typeof i.block.height == "number" ? "custom" : "auto"), D =
|
|
2889
|
+
return e === "full" ? "full" : d.includes(e) ? String(e) : "custom";
|
|
2890
|
+
}), E = p(() => typeof i.block.height == "number" ? "custom" : "auto"), D = t(!1), { start: O } = xe(() => {
|
|
2898
2891
|
D.value = !1;
|
|
2899
2892
|
}, 1e3, { immediate: !1 });
|
|
2900
2893
|
function k(e, t) {
|
|
2901
|
-
|
|
2894
|
+
a("update", { [e]: t });
|
|
2902
2895
|
}
|
|
2903
|
-
function
|
|
2896
|
+
function j(e) {
|
|
2904
2897
|
if (e === "custom") {
|
|
2905
2898
|
let e = i.block.width;
|
|
2906
|
-
(typeof e != "number" ||
|
|
2899
|
+
(typeof e != "number" || d.includes(e)) && k("width", Ho);
|
|
2907
2900
|
} else k("width", e === "full" ? "full" : Number(e));
|
|
2908
2901
|
}
|
|
2909
|
-
function
|
|
2902
|
+
function M(e) {
|
|
2910
2903
|
let t = Number(e);
|
|
2911
2904
|
!Number.isFinite(t) || t <= 0 || k("width", t);
|
|
2912
2905
|
}
|
|
2913
|
-
function
|
|
2906
|
+
function N(e) {
|
|
2914
2907
|
k("height", e === "custom" ? Uo : void 0);
|
|
2915
2908
|
}
|
|
2916
2909
|
function P(e) {
|
|
@@ -2918,42 +2911,42 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2918
2911
|
!Number.isFinite(t) || t <= 0 || k("height", t);
|
|
2919
2912
|
}
|
|
2920
2913
|
async function F() {
|
|
2921
|
-
let e = await
|
|
2922
|
-
|
|
2914
|
+
let e = await c?.({ accept: ["images"] });
|
|
2915
|
+
u.alive && e && (k("thumbnailUrl", e.url), D.value = !0, O());
|
|
2923
2916
|
}
|
|
2924
|
-
return (
|
|
2917
|
+
return (t, n) => (_(), h(b, null, [
|
|
2925
2918
|
y("div", So, [
|
|
2926
|
-
y("label", { class:
|
|
2919
|
+
y("label", { class: v(x(U)) }, s(x(o).video.videoUrl), 3),
|
|
2927
2920
|
f(J, {
|
|
2928
2921
|
"model-value": e.block.url,
|
|
2929
2922
|
type: "url",
|
|
2930
|
-
placeholder:
|
|
2931
|
-
"onUpdate:modelValue":
|
|
2923
|
+
placeholder: x(o).video.videoUrlPlaceholder,
|
|
2924
|
+
"onUpdate:modelValue": n[0] ||= (e) => k("url", e)
|
|
2932
2925
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2933
2926
|
e.block.url ? (_(), S(q, {
|
|
2934
2927
|
key: 0,
|
|
2935
2928
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2936
2929
|
"model-value": e.block.openInNewTab ?? !1,
|
|
2937
|
-
label:
|
|
2938
|
-
"onUpdate:modelValue":
|
|
2930
|
+
label: x(o).video.openInNewTab,
|
|
2931
|
+
"onUpdate:modelValue": n[1] ||= (e) => k("openInNewTab", e)
|
|
2939
2932
|
}, null, 8, ["model-value", "label"])) : m("", !0)
|
|
2940
2933
|
]),
|
|
2941
|
-
w.value ? (_(), h("div", Co, [y("label", { class:
|
|
2934
|
+
w.value ? (_(), h("div", Co, [y("label", { class: v(x(U)) }, [g(s(x(o).video.placeholderUrl) + " ", 1), y("span", wo, s(x(o).video.optional), 1)], 2), y("input", {
|
|
2942
2935
|
type: "url",
|
|
2943
|
-
class:
|
|
2936
|
+
class: v(x(K)),
|
|
2944
2937
|
value: e.block.placeholderUrl || "",
|
|
2945
|
-
placeholder:
|
|
2946
|
-
title:
|
|
2947
|
-
onInput:
|
|
2938
|
+
placeholder: x(o).video.placeholderUrlPlaceholder,
|
|
2939
|
+
title: x(o).video.placeholderUrlTooltip,
|
|
2940
|
+
onInput: n[2] ||= (e) => k("placeholderUrl", e.target.value)
|
|
2948
2941
|
}, null, 42, To)])) : m("", !0),
|
|
2949
2942
|
y("div", Eo, [
|
|
2950
|
-
y("label", { class:
|
|
2943
|
+
y("label", { class: v(x(U)) }, [g(s(x(o).video.customThumbnail) + " ", 1), y("span", Do, s(x(o).video.optional), 1)], 2),
|
|
2951
2944
|
f(J, {
|
|
2952
2945
|
"model-value": e.block.thumbnailUrl,
|
|
2953
2946
|
type: "url",
|
|
2954
|
-
placeholder:
|
|
2947
|
+
placeholder: x(o).video.thumbnailPlaceholder,
|
|
2955
2948
|
pulse: D.value,
|
|
2956
|
-
"onUpdate:modelValue":
|
|
2949
|
+
"onUpdate:modelValue": n[3] ||= (e) => k("thumbnailUrl", e)
|
|
2957
2950
|
}, null, 8, [
|
|
2958
2951
|
"model-value",
|
|
2959
2952
|
"placeholder",
|
|
@@ -2968,74 +2961,74 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2968
2961
|
"background-color": "var(--tpl-bg)"
|
|
2969
2962
|
},
|
|
2970
2963
|
onClick: F
|
|
2971
|
-
}, [f(
|
|
2964
|
+
}, [f(x(Ve), {
|
|
2972
2965
|
size: 14,
|
|
2973
2966
|
"stroke-width": 1.5
|
|
2974
|
-
}), g(" " +
|
|
2967
|
+
}), g(" " + s(x(o).image.browseMedia), 1)])) : m("", !0)
|
|
2975
2968
|
]),
|
|
2976
|
-
y("div", Oo, [y("label", { class:
|
|
2969
|
+
y("div", Oo, [y("label", { class: v(x(U)) }, s(x(o).video.altText), 3), f(J, {
|
|
2977
2970
|
"model-value": e.block.alt,
|
|
2978
2971
|
type: "text",
|
|
2979
|
-
placeholder:
|
|
2980
|
-
"onUpdate:modelValue":
|
|
2972
|
+
placeholder: x(o).video.altTextPlaceholder,
|
|
2973
|
+
"onUpdate:modelValue": n[4] ||= (e) => k("alt", e)
|
|
2981
2974
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
2982
2975
|
y("div", ko, [
|
|
2983
|
-
y("label", { class:
|
|
2976
|
+
y("label", { class: v(x(U)) }, s(x(o).video.width), 3),
|
|
2984
2977
|
y("select", {
|
|
2985
|
-
class:
|
|
2978
|
+
class: v(x(K)),
|
|
2986
2979
|
"data-testid": "video-width-mode",
|
|
2987
2980
|
value: T.value,
|
|
2988
|
-
onChange:
|
|
2981
|
+
onChange: n[5] ||= (e) => j(e.target.value)
|
|
2989
2982
|
}, [
|
|
2990
|
-
y("option", jo,
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
y("option", Mo,
|
|
2983
|
+
y("option", jo, s(x(o).video.fullWidth), 1),
|
|
2984
|
+
n[10] ||= y("option", { value: "300" }, "300px", -1),
|
|
2985
|
+
n[11] ||= y("option", { value: "400" }, "400px", -1),
|
|
2986
|
+
n[12] ||= y("option", { value: "500" }, "500px", -1),
|
|
2987
|
+
y("option", Mo, s(x(o).video.widthCustom), 1)
|
|
2995
2988
|
], 42, Ao),
|
|
2996
2989
|
T.value === "custom" ? (_(), h("div", No, [y("input", {
|
|
2997
2990
|
type: "number",
|
|
2998
2991
|
"data-testid": "video-width-input",
|
|
2999
|
-
class:
|
|
2992
|
+
class: v(x(G)),
|
|
3000
2993
|
value: e.block.width,
|
|
3001
2994
|
min: "20",
|
|
3002
|
-
onInput:
|
|
3003
|
-
}, null, 42, Po), y("span", { class:
|
|
2995
|
+
onInput: n[6] ||= (e) => M(e.target.value)
|
|
2996
|
+
}, null, 42, Po), y("span", { class: v(x(W)) }, "px", 2)])) : m("", !0)
|
|
3004
2997
|
]),
|
|
3005
2998
|
y("div", Fo, [
|
|
3006
|
-
y("label", { class:
|
|
2999
|
+
y("label", { class: v(x(U)) }, s(x(o).video.height), 3),
|
|
3007
3000
|
y("select", {
|
|
3008
|
-
class:
|
|
3001
|
+
class: v(x(K)),
|
|
3009
3002
|
"data-testid": "video-height-mode",
|
|
3010
3003
|
value: E.value,
|
|
3011
|
-
onChange:
|
|
3012
|
-
}, [y("option", Lo,
|
|
3004
|
+
onChange: n[7] ||= (e) => N(e.target.value)
|
|
3005
|
+
}, [y("option", Lo, s(x(o).video.heightAuto), 1), y("option", Ro, s(x(o).video.heightCustom), 1)], 42, Io),
|
|
3013
3006
|
E.value === "custom" ? (_(), h("div", zo, [y("input", {
|
|
3014
3007
|
type: "number",
|
|
3015
3008
|
"data-testid": "video-height-input",
|
|
3016
|
-
class:
|
|
3009
|
+
class: v(x(G)),
|
|
3017
3010
|
value: e.block.height,
|
|
3018
3011
|
min: "20",
|
|
3019
|
-
onInput:
|
|
3020
|
-
}, null, 42, Bo), y("span", { class:
|
|
3012
|
+
onInput: n[8] ||= (e) => P(e.target.value)
|
|
3013
|
+
}, null, 42, Bo), y("span", { class: v(x(W)) }, "px", 2)])) : m("", !0)
|
|
3021
3014
|
]),
|
|
3022
|
-
y("div", Vo, [y("label", { class:
|
|
3015
|
+
y("div", Vo, [y("label", { class: v(x(U)) }, s(x(o).title.align), 3), f(Y, {
|
|
3023
3016
|
options: [
|
|
3024
3017
|
{
|
|
3025
3018
|
value: "left",
|
|
3026
|
-
label:
|
|
3019
|
+
label: x(o).title.alignLeft
|
|
3027
3020
|
},
|
|
3028
3021
|
{
|
|
3029
3022
|
value: "center",
|
|
3030
|
-
label:
|
|
3023
|
+
label: x(o).title.alignCenter
|
|
3031
3024
|
},
|
|
3032
3025
|
{
|
|
3033
3026
|
value: "right",
|
|
3034
|
-
label:
|
|
3027
|
+
label: x(o).title.alignRight
|
|
3035
3028
|
}
|
|
3036
3029
|
],
|
|
3037
3030
|
"model-value": e.block.align,
|
|
3038
|
-
"onUpdate:modelValue":
|
|
3031
|
+
"onUpdate:modelValue": n[9] ||= (e) => k("align", e)
|
|
3039
3032
|
}, null, 8, ["options", "model-value"])])
|
|
3040
3033
|
], 64));
|
|
3041
3034
|
}
|
|
@@ -3048,43 +3041,43 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3048
3041
|
"duplicate"
|
|
3049
3042
|
],
|
|
3050
3043
|
setup(e, { emit: t }) {
|
|
3051
|
-
let r = C(() => import("./CountdownToolbar-
|
|
3052
|
-
if (g.value) return u.find((e) => e.type ===
|
|
3053
|
-
}),
|
|
3044
|
+
let r = C(() => import("./CountdownToolbar-BqoYzf_6.js")), a = e, o = t, { t: c } = B(), l = Se(Me, "Toolbar"), u = n(je, []), d = p(() => a.block.type), g = p(() => N(a.block)), v = p(() => {
|
|
3045
|
+
if (g.value) return u.find((e) => e.type === a.block.customType);
|
|
3046
|
+
}), b = p(() => g.value ? v.value?.name ?? a.block.customType : se(d.value, c)), w = p(() => at(l.fonts.value, "fontFamily" in a.block ? a.block.fontFamily : void 0));
|
|
3054
3047
|
function T(e) {
|
|
3055
|
-
|
|
3048
|
+
o("update", e);
|
|
3056
3049
|
}
|
|
3057
3050
|
return (t, n) => (_(), h("aside", {
|
|
3058
3051
|
"data-testid": "block-toolbar",
|
|
3059
|
-
"aria-label":
|
|
3052
|
+
"aria-label": x(c).landmarks.blockToolbar,
|
|
3060
3053
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
3061
|
-
}, [y("div", Ko, [y("div", qo, [
|
|
3054
|
+
}, [y("div", Ko, [y("div", qo, [x(ze)[d.value] ? (_(), S(i(x(ze)[d.value]), {
|
|
3062
3055
|
key: 0,
|
|
3063
3056
|
size: 16,
|
|
3064
3057
|
"stroke-width": 1.5
|
|
3065
|
-
})) : g.value ? (_(), S(
|
|
3058
|
+
})) : g.value ? (_(), S(x(ue), {
|
|
3066
3059
|
key: 1,
|
|
3067
3060
|
size: 16,
|
|
3068
3061
|
"stroke-width": 1.5
|
|
3069
|
-
})) : m("", !0), y("h3", Jo,
|
|
3062
|
+
})) : m("", !0), y("h3", Jo, s(b.value), 1)]), y("div", Yo, [y("button", {
|
|
3070
3063
|
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)]",
|
|
3071
|
-
title:
|
|
3072
|
-
onClick: n[0] ||= (e) =>
|
|
3073
|
-
}, [f(
|
|
3064
|
+
title: x(c).toolbar.duplicate,
|
|
3065
|
+
onClick: n[0] ||= (e) => o("duplicate")
|
|
3066
|
+
}, [f(x(Be), {
|
|
3074
3067
|
size: 14,
|
|
3075
3068
|
"stroke-width": 2
|
|
3076
3069
|
})], 8, Xo), y("button", {
|
|
3077
3070
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
3078
|
-
title:
|
|
3079
|
-
onClick: n[1] ||= (e) =>
|
|
3080
|
-
}, [f(
|
|
3071
|
+
title: x(c).toolbar.delete,
|
|
3072
|
+
onClick: n[1] ||= (e) => o("delete")
|
|
3073
|
+
}, [f(x(Xe), {
|
|
3081
3074
|
size: 14,
|
|
3082
3075
|
"stroke-width": 2
|
|
3083
3076
|
})], 8, Zo)])]), y("div", Qo, [g.value ? (_(), S(Wr, {
|
|
3084
3077
|
key: 0,
|
|
3085
3078
|
block: e.block,
|
|
3086
|
-
onUpdateFieldValues: n[2] ||= (e) =>
|
|
3087
|
-
onUpdateDataSourceFetched: n[3] ||= (e) =>
|
|
3079
|
+
onUpdateFieldValues: n[2] ||= (e) => o("update", { fieldValues: e }),
|
|
3080
|
+
onUpdateDataSourceFetched: n[3] ||= (e) => o("update", { dataSourceFetched: e })
|
|
3088
3081
|
}, null, 8, ["block"])) : d.value === "section" ? (_(), S(ea, {
|
|
3089
3082
|
key: 1,
|
|
3090
3083
|
block: e.block,
|
|
@@ -3137,7 +3130,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3137
3130
|
key: 12,
|
|
3138
3131
|
block: e.block,
|
|
3139
3132
|
onUpdate: T
|
|
3140
|
-
}, null, 8, ["block"])) : d.value === "countdown" ? (_(), S(
|
|
3133
|
+
}, null, 8, ["block"])) : d.value === "countdown" ? (_(), S(x(r), {
|
|
3141
3134
|
key: 13,
|
|
3142
3135
|
block: e.block,
|
|
3143
3136
|
"font-families": w.value,
|
|
@@ -3149,5 +3142,4 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3149
3142
|
}, null, 8, ["block", "is-first-section"])])], 8, Go));
|
|
3150
3143
|
}
|
|
3151
3144
|
}), es = /* @__PURE__ */ e({ default: () => ts }), ts = /*#__PURE__*/ Qe($o, [["__scopeId", "data-v-e2d2c22f"]]);
|
|
3152
|
-
//#endregion
|
|
3153
3145
|
export { ts as default, Y as i, $ as n, X as r, es as t };
|