@templatical/editor 0.49.0 → 0.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/AiAltTextPopover-BZQ95GXL.js +106 -0
- package/dist/AiAltTextReview-DoBEudnE.js +206 -0
- package/dist/AiChatPanel-Bs6sES3b.js +550 -0
- package/dist/AiHeaderMenu-BEaTazx4.js +36 -0
- package/dist/AiPanels-CfN7A-ZA.js +33 -0
- package/dist/AiRewriteMenu-C3ZfDDYy.js +276 -0
- package/dist/{BlockIssueBadge-BdpJwim0.js → BlockIssueBadge-CKwZ1Vgn.js} +11 -11
- package/dist/{BlockPreviewCanvas-D_sowkf0.js → BlockPreviewCanvas-BXNLLLYi.js} +33 -33
- package/dist/CloudHeaderExtras-CsJMEiyN.js +23 -0
- package/dist/{CloudPanels-1hwFiJ0G.js → CloudPanels-B4F5m7vy.js} +66 -85
- package/dist/{CollaborationNotices-BWpKzueF.js → CollaborationNotices-CNuDp7Y2.js} +19 -16
- package/dist/{CollaboratorBar-D87phJsw.js → CollaboratorBar-BtHPiuHq.js} +22 -22
- package/dist/{CommentsPanel-BUvUzO3T.js → CommentsPanel-CyCM-BvT.js} +4 -4
- package/dist/CommentsSidebar-Ca3DyFOX.js +500 -0
- package/dist/{cdn/chunks/CountdownBlock-DB4JNdqh.js → CountdownBlock-DR4Xm2-T.js} +24 -26
- package/dist/{CountdownToolbar-CLMIwfK7.js → CountdownToolbar-CEIMPojJ.js} +55 -55
- package/dist/IssuesPanel-C8nMUccy.js +360 -0
- package/dist/{LoadingTrack-BXOptf5g.js → LoadingTrack-B0RKQWq3.js} +2 -2
- package/dist/{LogicTagInsertButton-CR5E4jSG.js → LogicTagInsertButton-CqfU52CO.js} +273 -268
- package/dist/{cdn/chunks/MediaEditModal-DD0SZ-S3.js → MediaEditModal-DHtkZ4OU.js} +202 -186
- package/dist/{MediaPanels-BVXDkqtH.js → MediaPanels-CGcOB2pR.js} +4 -4
- package/dist/{MergeTagInput-BEw_r0PJ.js → MergeTagInput-YnEkorTZ.js} +25 -25
- package/dist/{MergeTagModeToggle-CJTpFmVd.js → MergeTagModeToggle-Dhb1DAcQ.js} +40 -40
- package/dist/MergeTagTextarea-e4lnwtqZ.js +70 -0
- package/dist/ParagraphEditor-B6NK0ytw.js +799 -0
- package/dist/{RestoreVersionDialog-BaDpy3cL.js → RestoreVersionDialog-Bq_IGOLJ.js} +21 -21
- package/dist/{RichTextEditorContent-CsvniFlI.js → RichTextEditorContent-AOM6fylS.js} +48 -48
- package/dist/{SaveBlockDialog-DzWURF_e.js → SaveBlockDialog-C8GngfQx.js} +87 -87
- package/dist/{cdn/chunks/SavedBlocksBrowserModal-BMtyUrUP.js → SavedBlocksBrowserModal-wnkvxpm_.js} +102 -99
- package/dist/{SavedBlocksPanels-B3Af8ns2.js → SavedBlocksPanels-C2s3q0pJ.js} +9 -9
- package/dist/{SavedBlocksPickBar-Dj11-Lqp.js → SavedBlocksPickBar-BjcTiV87.js} +13 -13
- package/dist/TemplateSettings-BVBWpiDU.js +237 -0
- package/dist/{TestEmailModal-BeRYV3eg.js → TestEmailModal-SyhO9bn3.js} +57 -57
- package/dist/{TestEmailPanel-B8c3fQi2.js → TestEmailPanel-BDd2Rtav.js} +4 -4
- package/dist/{TitleEditor-CvpNUoAp.js → TitleEditor-pxD53y_l.js} +75 -75
- package/dist/ToggleSwitch-D51U9cmR.js +37 -0
- package/dist/{Toolbar-BadDSkkF.js → Toolbar-CZSPZYbj.js} +1138 -1138
- package/dist/{TplModal-BZgi9Tes.js → TplModal-DCzBzicE.js} +19 -19
- package/dist/{VersionHistoryMenu-BRlcQ8wX.js → VersionHistoryMenu-BQeWPT85.js} +35 -35
- package/dist/{VersionHistoryPanels-DGkllN3a.js → VersionHistoryPanels-BBm7YbRQ.js} +5 -5
- package/dist/{VersionPreviewBanner-F-811aps.js → VersionPreviewBanner-DUGF0tUJ.js} +9 -9
- package/dist/WrapperBlock-BO619LAb.js +45 -0
- package/dist/aiErrors-D5UOoYOt.js +41 -0
- package/dist/aiImageContext-BH4Ss1h3.js +48 -0
- package/dist/aiRewritePreview-DLGM05Ge.js +44 -0
- package/dist/{blockTypeIcons-CayLluou.js → blockTypeIcons-NzaYvAI4.js} +15 -14
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-DSJwJ5ov.js → ca-C7mTzW1r.js} +130 -13
- package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js +107 -0
- package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js.map +1 -0
- package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js +207 -0
- package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js.map +1 -0
- package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js +476 -0
- package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js.map +1 -0
- package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js +37 -0
- package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js.map +1 -0
- package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js +34 -0
- package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js.map +1 -0
- package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js +208 -0
- package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js → BlockIssueBadge-DAn2vsMJ.js} +13 -13
- package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js.map → BlockIssueBadge-DAn2vsMJ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js → BlockPreviewCanvas-D0--EQkP.js} +38 -38
- package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js.map → BlockPreviewCanvas-D0--EQkP.js.map} +1 -1
- package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js +25 -0
- package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js.map +1 -0
- package/dist/cdn/chunks/{CloudPanels-XufhBZYF.js → CloudPanels-C3jsxo_f.js} +52 -71
- package/dist/cdn/chunks/CloudPanels-C3jsxo_f.js.map +1 -0
- package/dist/cdn/chunks/{CollaborationNotices-CBvKEj1Q.js → CollaborationNotices-DjRI8gvs.js} +23 -20
- package/dist/cdn/chunks/CollaborationNotices-DjRI8gvs.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js → CollaboratorBar-Dfzm6A9A.js} +20 -20
- package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js.map → CollaboratorBar-Dfzm6A9A.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-CSO79OeX.js +20 -0
- package/dist/cdn/chunks/{CommentsPanel-R8YLLO3v.js.map → CommentsPanel-CSO79OeX.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js +470 -0
- package/dist/cdn/chunks/{CommentsSidebar-96NZHVq3.js.map → CommentsSidebar-CCvplq1Z.js.map} +1 -1
- package/dist/{CountdownBlock-DPQXWRvU.js → cdn/chunks/CountdownBlock-C6USdwk3.js} +19 -17
- package/dist/cdn/chunks/{CountdownBlock-DB4JNdqh.js.map → CountdownBlock-C6USdwk3.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js → CountdownToolbar-Cjud2Tos.js} +70 -70
- package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js.map → CountdownToolbar-Cjud2Tos.js.map} +1 -1
- package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js +340 -0
- package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js → LoadingTrack-BIcL4NiY.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js.map → LoadingTrack-BIcL4NiY.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BJ2t2vxC.js → LogicTagInsertButton-CsL2JDOG.js} +367 -362
- package/dist/cdn/chunks/LogicTagInsertButton-CsL2JDOG.js.map +1 -0
- package/dist/{MediaEditModal-C_wxoUMG.js → cdn/chunks/MediaEditModal-BuHCiyMu.js} +544 -560
- package/dist/cdn/chunks/MediaEditModal-BuHCiyMu.js.map +1 -0
- package/dist/cdn/chunks/MediaPanels-DAgUf_T1.js +45 -0
- package/dist/cdn/chunks/{MediaPanels-CkdJ_kGp.js.map → MediaPanels-DAgUf_T1.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js → MergeTagInput-C8U-7LxL.js} +33 -33
- package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js.map → MergeTagInput-C8U-7LxL.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js → MergeTagModeToggle-Mm-p0A52.js} +41 -41
- package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js.map → MergeTagModeToggle-Mm-p0A52.js.map} +1 -1
- package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js +72 -0
- package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js +634 -0
- package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js → RestoreVersionDialog-CdA5osuA.js} +25 -25
- package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js.map → RestoreVersionDialog-CdA5osuA.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js → RichTextEditorContent-Q1d2xqBT.js} +46 -46
- package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js.map → RichTextEditorContent-Q1d2xqBT.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js → SaveBlockDialog-CijargAy.js} +77 -77
- package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js.map → SaveBlockDialog-CijargAy.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +357 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BMtyUrUP.js.map → SavedBlocksBrowserModal-DtOz_X5S.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksPanels-BowyED5h.js +38 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-s_gxi1im.js.map → SavedBlocksPanels-BowyED5h.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js → SavedBlocksPickBar-BPRaJBv3.js} +18 -18
- package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js.map → SavedBlocksPickBar-BPRaJBv3.js.map} +1 -1
- package/dist/cdn/chunks/TemplateSettings-ByZeBO34.js +209 -0
- package/dist/cdn/chunks/{TemplateSettings-CtrzzQWl.js.map → TemplateSettings-ByZeBO34.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js → TestEmailModal-BUVTj3Ic.js} +54 -54
- package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js.map → TestEmailModal-BUVTj3Ic.js.map} +1 -1
- package/dist/cdn/chunks/TestEmailPanel-BxutYoWg.js +35 -0
- package/dist/cdn/chunks/{TestEmailPanel-DERaCdpG.js.map → TestEmailPanel-BxutYoWg.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js +199 -0
- package/dist/cdn/chunks/{TitleEditor-CEgxjtUX.js.map → TitleEditor-Ccv6uoTz.js.map} +1 -1
- package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js +39 -0
- package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js.map +1 -0
- package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js → Toolbar-DoprRgTn.js} +986 -987
- package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js.map → Toolbar-DoprRgTn.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-DDrbWJcE.js → TplModal-BXQzmsJX.js} +21 -21
- package/dist/cdn/chunks/{TplModal-DDrbWJcE.js.map → TplModal-BXQzmsJX.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js → VersionHistoryMenu-BF2fNCvq.js} +41 -41
- package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js.map → VersionHistoryMenu-BF2fNCvq.js.map} +1 -1
- package/dist/cdn/chunks/VersionHistoryPanels-Dal0Uk69.js +48 -0
- package/dist/cdn/chunks/{VersionHistoryPanels-DVOV8QLv.js.map → VersionHistoryPanels-Dal0Uk69.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js → VersionPreviewBanner-BaGcn-b1.js} +12 -12
- package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js.map → VersionPreviewBanner-BaGcn-b1.js.map} +1 -1
- package/dist/cdn/chunks/WrapperBlock-DkQJtLz0.js +47 -0
- package/dist/cdn/chunks/{WrapperBlock-CFuP4R0c.js.map → WrapperBlock-DkQJtLz0.js.map} +1 -1
- package/dist/cdn/chunks/aiErrors-D5UOoYOt.js +43 -0
- package/dist/cdn/chunks/aiErrors-D5UOoYOt.js.map +1 -0
- package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js +50 -0
- package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js.map +1 -0
- package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js +46 -0
- package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +22 -0
- package/dist/cdn/chunks/{blockTypeIcons-BnAd8qsP.js.map → blockTypeIcons-ikZAmd6U.js.map} +1 -1
- package/dist/{ca-DSJwJ5ov.js → cdn/chunks/ca-C7mTzW1r.js} +132 -11
- package/dist/cdn/chunks/ca-C7mTzW1r.js.map +1 -0
- package/dist/cdn/chunks/{cloud-CI_fgDyy.js → createCloudRuntime-DpBWhrv3.js} +489 -593
- package/dist/cdn/chunks/createCloudRuntime-DpBWhrv3.js.map +1 -0
- package/dist/cdn/chunks/de-DBOTcDj2.js +22 -0
- package/dist/cdn/chunks/de-DBOTcDj2.js.map +1 -0
- package/dist/{de-CBE6O79z.js → cdn/chunks/de-DNuYQTmS.js} +132 -11
- package/dist/cdn/chunks/de-DNuYQTmS.js.map +1 -0
- package/dist/{dist-Bv_GBr2l.js → cdn/chunks/dist-Bo8Thh8v.js} +60 -58
- package/dist/cdn/chunks/{dist-Doy3r07H.js.map → dist-Bo8Thh8v.js.map} +1 -1
- package/dist/cdn/chunks/dist-S-rLGqax.js +406 -0
- package/dist/cdn/chunks/{dist-DdwjXLme.js.map → dist-S-rLGqax.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-akeQH_JP.js → draggable-DZ0gwUJ6.js} +1822 -1728
- package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js → editor-modal-CI6EfeMd.js} +884 -884
- package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js.map → editor-modal-CI6EfeMd.js.map} +1 -1
- package/dist/cdn/chunks/en-CDhWRrF_.js +22 -0
- package/dist/cdn/chunks/en-CDhWRrF_.js.map +1 -0
- package/dist/{en-CDexnk0p.js → cdn/chunks/en-CW71OK66.js} +132 -11
- package/dist/cdn/chunks/en-CW71OK66.js.map +1 -0
- package/dist/cdn/chunks/en-ifvu6oPv.js +1 -0
- package/dist/{es-BE42B6uN.js → cdn/chunks/es-DdK7zQfi.js} +132 -11
- package/dist/cdn/chunks/es-DdK7zQfi.js.map +1 -0
- package/dist/cdn/chunks/{extensions-koOuDeZS.js → extensions-taJTZlLK.js} +59 -59
- package/dist/cdn/chunks/{extensions-koOuDeZS.js.map → extensions-taJTZlLK.js.map} +1 -1
- package/dist/{fr-DlJFPDQR.js → cdn/chunks/fr-Dz5Bgb7-.js} +132 -11
- package/dist/cdn/chunks/fr-Dz5Bgb7-.js.map +1 -0
- package/dist/cdn/chunks/{icons-CjlNV8xD.js → icons-DNX6StSs.js} +178 -145
- package/dist/cdn/chunks/icons-DNX6StSs.js.map +1 -0
- package/dist/{ja-CUT8gkNI.js → cdn/chunks/ja-Di-zJiT8.js} +132 -11
- package/dist/cdn/chunks/ja-Di-zJiT8.js.map +1 -0
- package/dist/cdn/chunks/keys-BTpmg2Tt.js +12 -0
- package/dist/cdn/chunks/keys-BTpmg2Tt.js.map +1 -0
- package/dist/{logger-BBlvSn6q.js → cdn/chunks/logger-Tj0RPskW.js} +7 -1
- package/dist/cdn/chunks/logger-Tj0RPskW.js.map +1 -0
- package/dist/{nl-bXWqqRyS.js → cdn/chunks/nl-CvVuHYFL.js} +132 -11
- package/dist/cdn/chunks/{nl-bXWqqRyS.js.map → nl-CvVuHYFL.js.map} +1 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js +199 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js → preRenderCustomBlocks-Dc-QLntG.js} +4 -4
- package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js.map → preRenderCustomBlocks-Dc-QLntG.js.map} +1 -1
- package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js +22 -0
- package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js.map +1 -0
- package/dist/{pt-BR-2_H4-wlb.js → cdn/chunks/pt-BR-ZhO4vgyq.js} +132 -11
- package/dist/cdn/chunks/pt-BR-ZhO4vgyq.js.map +1 -0
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +62 -0
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-BBvsTwCV.js +2032 -0
- package/dist/cdn/chunks/socialIcons-BBvsTwCV.js.map +1 -0
- package/dist/{dist-DBG3nh3k.js → cdn/chunks/src-BNFnxfrA.js} +552 -350
- package/dist/cdn/chunks/src-BNFnxfrA.js.map +1 -0
- package/dist/cdn/chunks/{src-B77z1iw4.js → src-BcTUmgLe.js} +113 -113
- package/dist/cdn/chunks/{src-B77z1iw4.js.map → src-BcTUmgLe.js.map} +1 -1
- package/dist/cdn/chunks/src-Bs_yxk3h.js +4392 -0
- package/dist/cdn/chunks/src-Bs_yxk3h.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-B1RfWFzB.js → tiptap-CtVrAViq.js} +43 -43
- package/dist/cdn/chunks/{tiptap-B1RfWFzB.js.map → tiptap-CtVrAViq.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js → useCloudI18n-AVXhzbhQ.js} +4 -4
- package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js.map → useCloudI18n-AVXhzbhQ.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +2586 -0
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-5SBqm90x.js.map → useEditorRoot-CR5GjJD6.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-DEqtEgOs.js → useI18n-CbVubQhM.js} +3 -3
- package/dist/cdn/chunks/{useI18n-DEqtEgOs.js.map → useI18n-CbVubQhM.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js → useLogicTag-B49Nc53Y.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js.map → useLogicTag-B49Nc53Y.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js → useMergeTag-B0KryMj8.js} +5 -5
- package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js.map → useMergeTag-B0KryMj8.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js → usePopoverPosition-C829ps5i.js} +4 -4
- package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js.map → usePopoverPosition-C829ps5i.js.map} +1 -1
- package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js +51 -0
- package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js.map +1 -0
- package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js → withCurrentFont-DFPXeVfG.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js.map → withCurrentFont-DFPXeVfG.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +2151 -1480
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-DQQzkmIC.js → check-yYsp5Xpk.js} +1 -1
- package/dist/{chevron-down-CIF4bdon.js → chevron-down-DTmD06_j.js} +1 -1
- package/dist/{chevron-right-Cg7Xu-ev.js → chevron-right-BSeYZOxc.js} +1 -1
- package/dist/{chevron-up-Csu7ISD-.js → chevron-up-BOApwrxi.js} +1 -1
- package/dist/{circle-alert-YUvIJAgY.js → circle-alert-BMszY8im.js} +1 -1
- package/dist/{clock-CnSIGKQW.js → clock-HADxnl6-.js} +1 -1
- package/dist/{cloud-YUYDtdHt.js → createCloudRuntime-DVQI_ReU.js} +474 -570
- package/dist/{createLucideIcon-BcP1sjdp.js → createLucideIcon-0lYYH3EW.js} +6 -6
- package/dist/de-DBOTcDj2.js +20 -0
- package/dist/{cdn/chunks/de-CBE6O79z.js → de-DNuYQTmS.js} +130 -13
- package/dist/{cdn/chunks/dist-Doy3r07H.js → dist-C7EtxNCb.js} +49 -51
- package/dist/{dist-CNqjHA8e.js → dist-C_dV9QAx.js} +130 -130
- package/dist/{cdn/chunks/dist-DdwjXLme.js → dist-DI4_YSnG.js} +111 -110
- package/dist/{cdn/chunks/src-CvLTYGdO.js → dist-DtOF3bDW.js} +446 -393
- package/dist/{editor-modal--7_9A6j-.js → editor-modal-Bzhl-PgI.js} +832 -834
- package/dist/en-CDhWRrF_.js +20 -0
- package/dist/{cdn/chunks/en-CDexnk0p.js → en-CW71OK66.js} +130 -13
- package/dist/en-DwV15ltA.js +1 -0
- package/dist/{cdn/chunks/es-BE42B6uN.js → es-DdK7zQfi.js} +130 -13
- package/dist/{extensions-zwsZlWjH.js → extensions-CdyweA50.js} +57 -57
- package/dist/{eye-B1bua-ck.js → eye-DWkSvYpj.js} +1 -1
- package/dist/{cdn/chunks/fr-DlJFPDQR.js → fr-Dz5Bgb7-.js} +130 -13
- package/dist/image-DesWjcZ4.js +28 -0
- package/dist/index.d.ts +361 -24
- package/dist/{info-x26nGOo2.js → info-ClWJGoZy.js} +1 -1
- package/dist/{cdn/chunks/ja-CUT8gkNI.js → ja-Di-zJiT8.js} +130 -13
- package/dist/keys-Zd9KWRD1.js +10 -0
- package/dist/{link-CezhndyR.js → link-BqRicFTA.js} +1 -1
- package/dist/{list-DQqdptI0.js → list-bojQr9bn.js} +1 -1
- package/dist/{loader-circle-DCEeoYoi.js → loader-circle-B2B8LbUu.js} +1 -1
- package/dist/{cdn/chunks/logger-ByvdoAwq.js → logger-k9Nbj3Cp.js} +5 -3
- package/dist/{message-circle-BLGzfv_7.js → message-circle-BEuiNsyZ.js} +1 -1
- package/dist/{cdn/chunks/nl-bXWqqRyS.js → nl-CvVuHYFL.js} +130 -13
- package/dist/normalizeMergeTagMarkup-P6SUBuPv.js +197 -0
- package/dist/{package-D_kEQCMU.js → package-DCROB4aM.js} +1 -1
- package/dist/{pencil-Dct8zGLy.js → pencil-CEotCKbf.js} +1 -1
- package/dist/{preRenderCustomBlocks-CtKJecE-.js → preRenderCustomBlocks-D8rr61_z.js} +4 -4
- package/dist/pt-BR-CHM-ZKvE.js +20 -0
- package/dist/{cdn/chunks/pt-BR-2_H4-wlb.js → pt-BR-ZhO4vgyq.js} +130 -13
- package/dist/{refresh-cw-tGMRDxr8.js → refresh-cw-C6M2mHNC.js} +12 -2
- package/dist/{runtime-dom.esm-bundler-DYn1z2Xf.js → runtime-dom.esm-bundler-B8WCZWUm.js} +134 -134
- package/dist/sanitizeRichTextHtml-DeISfLFr.js +60 -0
- package/dist/{search-Bm2cCQpe.js → search-Cy99zPYf.js} +1 -1
- package/dist/{send-sVLaKZ7f.js → send-BDLJFsf3.js} +1 -1
- package/dist/{smartphone-B2W81p02.js → smartphone-CVvQaNA4.js} +1 -1
- package/dist/{cdn/chunks/socialIcons-CkZSYpoG.js → socialIcons-Dd-jRiVe.js} +688 -693
- package/dist/{sparkles-a1qkBZ8X.js → sparkles-Ce0Qz0ox.js} +1 -1
- package/dist/square-BWlolnXe.js +15 -0
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +2114 -1422
- package/dist/{text-align-start-CTuwQ5YW.js → text-align-start-D1V5gPTy.js} +1 -1
- package/dist/{trash-I3D2peFQ.js → trash-CZfiUFmw.js} +1 -1
- package/dist/{triangle-alert-CenxmLRE.js → triangle-alert-CFDzyFC7.js} +1 -1
- package/dist/upload-BJfvdIrD.js +36 -0
- package/dist/{useCloudI18n-CGVEZV3o.js → useCloudI18n-Dcjua65H.js} +5 -5
- package/dist/{useEditorCore-DRbMRe8F.js → useEditorCore-BTLeAVlM.js} +1463 -1499
- package/dist/{useEditorRoot-BVm2-1N8.js → useEditorRoot-DUy67lJu.js} +2 -2
- package/dist/{useI18n-CSh4gO5c.js → useI18n-BdoY7xDE.js} +4 -4
- package/dist/{useLogicTag-zcI6BWIf.js → useLogicTag-DKLZ1T9H.js} +3 -3
- package/dist/{useMergeTag-C-iBLlp0.js → useMergeTag-Bhdx7AKk.js} +3 -3
- package/dist/{usePopoverPosition-CMcsMBtK.js → usePopoverPosition-BZea45XK.js} +2 -2
- package/dist/useScrollToBlock-FmNMALM_.js +74 -0
- package/dist/{vue.runtime.esm-bundler-DV0Wx4r_.js → vue.runtime.esm-bundler-DgFJ6GPG.js} +1428 -1332
- package/dist/{withCurrentFont-D62njRLu.js → withCurrentFont-BATJHNve.js} +1 -1
- package/dist/{x-KFQ4S-Kz.js → x-CZ0Js0hA.js} +1 -1
- package/package.json +14 -12
- package/dist/AiChatSidebar-CdjTb9ej.js +0 -230
- package/dist/AiFeatureMenu-DKm7VYCs.js +0 -57
- package/dist/CloudHeaderExtras-CI8RR9hG.js +0 -55
- package/dist/CommentsSidebar-J65znlrH.js +0 -500
- package/dist/DesignReferenceSidebar-BTwCFgz8.js +0 -279
- package/dist/IssuesPanel-DeeVsfG7.js +0 -117
- package/dist/ParagraphEditor-zLV44z-R.js +0 -797
- package/dist/SavedBlocksBrowserModal-B8DCFW7t.js +0 -360
- package/dist/TemplateScoringPanel-Ba9sgvjS.js +0 -273
- package/dist/TemplateSettings-Cu5X9DgA.js +0 -246
- package/dist/ToggleSwitch-DHweVJOr.js +0 -102
- package/dist/WrapperBlock-DiiaxpMb.js +0 -45
- package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js +0 -205
- package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js.map +0 -1
- package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js +0 -57
- package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js.map +0 -1
- package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js +0 -56
- package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-XufhBZYF.js.map +0 -1
- package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-R8YLLO3v.js +0 -20
- package/dist/cdn/chunks/CommentsSidebar-96NZHVq3.js +0 -470
- package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js +0 -229
- package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js +0 -100
- package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-BJ2t2vxC.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-DD0SZ-S3.js.map +0 -1
- package/dist/cdn/chunks/MediaPanels-CkdJ_kGp.js +0 -45
- package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js +0 -632
- package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPanels-s_gxi1im.js +0 -38
- package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js +0 -237
- package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-CtrzzQWl.js +0 -208
- package/dist/cdn/chunks/TestEmailPanel-DERaCdpG.js +0 -35
- package/dist/cdn/chunks/TitleEditor-CEgxjtUX.js +0 -199
- package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js +0 -104
- package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryPanels-DVOV8QLv.js +0 -48
- package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js +0 -47
- package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js +0 -22
- package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +0 -1
- package/dist/cdn/chunks/cloud-CI_fgDyy.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js +0 -358
- package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +0 -1
- package/dist/cdn/chunks/de-CBE6O79z.js.map +0 -1
- package/dist/cdn/chunks/de-D_atmUVB.js +0 -89
- package/dist/cdn/chunks/de-D_atmUVB.js.map +0 -1
- package/dist/cdn/chunks/draggable-akeQH_JP.js.map +0 -1
- package/dist/cdn/chunks/en-CDexnk0p.js.map +0 -1
- package/dist/cdn/chunks/en-DhJLnaBx.js +0 -89
- package/dist/cdn/chunks/en-DhJLnaBx.js.map +0 -1
- package/dist/cdn/chunks/en-Ve-PWSXu.js +0 -1
- package/dist/cdn/chunks/es-BE42B6uN.js.map +0 -1
- package/dist/cdn/chunks/fr-DlJFPDQR.js.map +0 -1
- package/dist/cdn/chunks/icons-CjlNV8xD.js.map +0 -1
- package/dist/cdn/chunks/ja-CUT8gkNI.js.map +0 -1
- package/dist/cdn/chunks/keys-UAWhQ3zW.js +0 -12
- package/dist/cdn/chunks/keys-UAWhQ3zW.js.map +0 -1
- package/dist/cdn/chunks/logger-ByvdoAwq.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-2_H4-wlb.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-BphMoUTw.js +0 -89
- package/dist/cdn/chunks/pt-BR-BphMoUTw.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-CkZSYpoG.js.map +0 -1
- package/dist/cdn/chunks/src-B1e5SSYP.js +0 -1272
- package/dist/cdn/chunks/src-B1e5SSYP.js.map +0 -1
- package/dist/cdn/chunks/src-CvLTYGdO.js.map +0 -1
- package/dist/cdn/chunks/timeouts-o5Y9BuqI.js +0 -6
- package/dist/cdn/chunks/timeouts-o5Y9BuqI.js.map +0 -1
- package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js +0 -12
- package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js +0 -2623
- package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-5SBqm90x.js +0 -10
- package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js +0 -21
- package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js.map +0 -1
- package/dist/copy-CUC43md_.js +0 -19
- package/dist/createCloudRuntime-BMDRjL0k.js +0 -356
- package/dist/de-D_atmUVB.js +0 -87
- package/dist/dist-CCqn-RqE.js +0 -407
- package/dist/en-BHCMzqib.js +0 -1
- package/dist/en-DhJLnaBx.js +0 -87
- package/dist/image-up-BqiO7KCO.js +0 -27
- package/dist/keys-BymCnLHD.js +0 -10
- package/dist/plus-BDd0gTEm.js +0 -14
- package/dist/pt-BR-BphMoUTw.js +0 -87
- package/dist/shield-check-YhsbXfQc.js +0 -14
- package/dist/socialIcons-Bwv-49EB.js +0 -2167
- package/dist/timeouts-o5Y9BuqI.js +0 -4
- package/dist/upload-uU2cK0Ce.js +0 -21
- package/dist/useAliveFlag-BjP0Gxza.js +0 -10
- package/dist/useScrollToBlock-CdCQK9QQ.js +0 -47
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as E, o as D } from "./runtime-dom.esm-bundler-
|
|
4
|
-
import {
|
|
5
|
-
import { C as
|
|
6
|
-
import { _ as xe } from "./dist-
|
|
7
|
-
import { $ as Se, C as Ce,
|
|
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 {
|
|
16
|
-
import { t as Ve } from "./
|
|
17
|
-
import { t as He } from "./
|
|
18
|
-
import {
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { n as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as Qe } from "./useAliveFlag-BjP0Gxza.js";
|
|
2
|
+
import { At as t, C as n, H as r, I as i, Mt as a, N as o, P as s, Q as c, V as l, X as u, Y as d, _ as f, c as p, d as m, f as h, g, j as _, jt as v, l as y, ot as b, r as x, u as S, v as C, y as w, z as T } from "./vue.runtime.esm-bundler-DgFJ6GPG.js";
|
|
3
|
+
import { a as E, o as D } from "./runtime-dom.esm-bundler-B8WCZWUm.js";
|
|
4
|
+
import { Dt as O, Et as k, K as A, S as j, et as M, f as N, i as P, lt as F, mt as ee, n as te, nt as ne, q as re, r as ie, t as ae, u as oe, x as I } from "./dist-DtOF3bDW.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-Dd-jRiVe.js";
|
|
6
|
+
import { _ as xe } from "./dist-C7EtxNCb.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-Zd9KWRD1.js";
|
|
8
|
+
import { t as B } from "./useI18n-BdoY7xDE.js";
|
|
9
|
+
import { o as Pe } from "./usePopoverPosition-BZea45XK.js";
|
|
10
|
+
import { t as Fe } from "./createLucideIcon-0lYYH3EW.js";
|
|
11
|
+
import { c as V } from "./LogicTagInsertButton-CqfU52CO.js";
|
|
12
|
+
import { t as Ie } from "./chevron-down-DTmD06_j.js";
|
|
13
|
+
import { t as Le } from "./circle-alert-BMszY8im.js";
|
|
14
|
+
import { n as Re, t as ze } from "./blockTypeIcons-NzaYvAI4.js";
|
|
15
|
+
import { n as Be } from "./upload-BJfvdIrD.js";
|
|
16
|
+
import { t as Ve } from "./image-DesWjcZ4.js";
|
|
17
|
+
import { t as He } from "./info-ClWJGoZy.js";
|
|
18
|
+
import { t as Ue } from "./link-BqRicFTA.js";
|
|
19
|
+
import { n as We, t as Ge } from "./smartphone-CVvQaNA4.js";
|
|
20
|
+
import { n as H, t as Ke } from "./refresh-cw-C6M2mHNC.js";
|
|
21
|
+
import { n as qe, r as Je, t as Ye } from "./text-align-start-D1V5gPTy.js";
|
|
22
|
+
import { t as Xe } from "./trash-CZfiUFmw.js";
|
|
23
|
+
import { t as Ze } from "./x-CZ0Js0hA.js";
|
|
24
|
+
import { t as Qe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
26
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-v1dNKgJf.js";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { t as
|
|
26
|
+
import { t as it } from "./MergeTagTextarea-e4lnwtqZ.js";
|
|
27
|
+
import { t as q } from "./ToggleSwitch-D51U9cmR.js";
|
|
28
|
+
import { n as at, t as ot } from "./withCurrentFont-BATJHNve.js";
|
|
29
|
+
import { t as J } from "./MergeTagInput-YnEkorTZ.js";
|
|
30
30
|
var st = Fe({
|
|
31
31
|
name: "lock-open",
|
|
32
32
|
size: 24,
|
|
@@ -106,59 +106,59 @@ var st = Fe({
|
|
|
106
106
|
"aria-disabled",
|
|
107
107
|
"title",
|
|
108
108
|
"onClick"
|
|
109
|
-
], dt = { key: 1 }, Y = /* @__PURE__ */
|
|
109
|
+
], dt = { key: 1 }, Y = /* @__PURE__ */ w({
|
|
110
110
|
__name: "SlidingPillSelect",
|
|
111
111
|
props: {
|
|
112
112
|
options: {},
|
|
113
113
|
modelValue: {}
|
|
114
114
|
},
|
|
115
115
|
emits: ["update:modelValue"],
|
|
116
|
-
setup(e, { emit:
|
|
117
|
-
let
|
|
118
|
-
return (
|
|
116
|
+
setup(e, { emit: t }) {
|
|
117
|
+
let n = e, r = t, s = p(() => n.options.findIndex((e) => e.value === n.modelValue)), c = p(() => `translateX(${Math.max(s.value, 0) * 100}%)`);
|
|
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: v({
|
|
122
122
|
gridTemplateColumns: `repeat(${e.options.length}, 1fr)`,
|
|
123
123
|
backgroundColor: "var(--tpl-bg-hover)"
|
|
124
124
|
})
|
|
125
|
-
}, [
|
|
125
|
+
}, [s.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: v({
|
|
129
129
|
left: "4px",
|
|
130
130
|
width: `calc((100% - 8px) / ${e.options.length})`,
|
|
131
|
-
transform:
|
|
131
|
+
transform: c.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)) :
|
|
137
|
-
key:
|
|
136
|
+
}, null, 4)) : m("", !0), (_(!0), h(x, null, o(e.options, (t) => (_(), h("button", {
|
|
137
|
+
key: t.value,
|
|
138
138
|
role: "radio",
|
|
139
|
-
"aria-checked": e.modelValue ===
|
|
140
|
-
"aria-label":
|
|
141
|
-
disabled:
|
|
142
|
-
"aria-disabled":
|
|
139
|
+
"aria-checked": e.modelValue === t.value,
|
|
140
|
+
"aria-label": t.label,
|
|
141
|
+
disabled: t.disabled,
|
|
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:
|
|
145
|
-
color:
|
|
144
|
+
style: v({
|
|
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
|
}),
|
|
148
|
-
title:
|
|
149
|
-
onClick: (e) =>
|
|
150
|
-
}, [
|
|
148
|
+
title: t.label,
|
|
149
|
+
onClick: (e) => t.disabled || r("update:modelValue", t.value)
|
|
150
|
+
}, [t.icon ? (_(), S(i(t.icon), {
|
|
151
151
|
key: 0,
|
|
152
152
|
size: 14,
|
|
153
153
|
"stroke-width": 2
|
|
154
|
-
})) : (
|
|
154
|
+
})) : (_(), h("span", dt, a(t.label), 1))], 12, ut))), 128))], 4));
|
|
155
155
|
}
|
|
156
156
|
}), ft = { class: "tpl:flex tpl:items-stretch" }, pt = [
|
|
157
157
|
"data-testid",
|
|
158
158
|
"value",
|
|
159
159
|
"min",
|
|
160
160
|
"max"
|
|
161
|
-
], X = /* @__PURE__ */
|
|
161
|
+
], X = /* @__PURE__ */ w({
|
|
162
162
|
__name: "NumberWithSuffix",
|
|
163
163
|
props: {
|
|
164
164
|
modelValue: {},
|
|
@@ -174,22 +174,22 @@ var st = Fe({
|
|
|
174
174
|
let t = e.target;
|
|
175
175
|
t.validity?.badInput || r("update:modelValue", Number(t.value));
|
|
176
176
|
}
|
|
177
|
-
return (n, r) => (
|
|
177
|
+
return (n, r) => (_(), h("div", ft, [y("input", {
|
|
178
178
|
type: "number",
|
|
179
179
|
"data-testid": e.testid,
|
|
180
|
-
class: b(
|
|
180
|
+
class: t(b(G)),
|
|
181
181
|
value: e.modelValue,
|
|
182
182
|
min: e.min,
|
|
183
183
|
max: e.max,
|
|
184
184
|
onInput: i
|
|
185
|
-
}, null, 42, pt),
|
|
185
|
+
}, null, 42, pt), y("span", { class: t(b(W)) }, a(e.suffix), 3)]));
|
|
186
186
|
}
|
|
187
187
|
}), mt = [
|
|
188
188
|
"aria-pressed",
|
|
189
189
|
"aria-label",
|
|
190
190
|
"title",
|
|
191
191
|
"data-testid"
|
|
192
|
-
], ht = /* @__PURE__ */
|
|
192
|
+
], ht = /* @__PURE__ */ w({
|
|
193
193
|
__name: "LinkToggle",
|
|
194
194
|
props: {
|
|
195
195
|
linked: { type: Boolean },
|
|
@@ -200,19 +200,19 @@ var st = Fe({
|
|
|
200
200
|
emits: ["toggle"],
|
|
201
201
|
setup(e, { emit: n }) {
|
|
202
202
|
let r = n;
|
|
203
|
-
return (n, i) => (
|
|
203
|
+
return (n, i) => (_(), h("button", {
|
|
204
204
|
type: "button",
|
|
205
|
-
class:
|
|
205
|
+
class: t(["tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", e.linked ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
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
210
|
onClick: i[0] ||= (e) => r("toggle")
|
|
211
|
-
}, [e.linked ? (
|
|
211
|
+
}, [e.linked ? (_(), S(b(Ue), {
|
|
212
212
|
key: 0,
|
|
213
213
|
size: 14,
|
|
214
214
|
"stroke-width": 2
|
|
215
|
-
})) : (
|
|
215
|
+
})) : (_(), S(b(lt), {
|
|
216
216
|
key: 1,
|
|
217
217
|
size: 14,
|
|
218
218
|
"stroke-width": 2
|
|
@@ -221,7 +221,7 @@ var st = Fe({
|
|
|
221
221
|
}), gt = { class: "tpl:mb-3.5" }, _t = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, vt = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, yt = {
|
|
222
222
|
key: 0,
|
|
223
223
|
class: "tpl:mb-3.5"
|
|
224
|
-
}, bt = { class: "tpl:mb-3.5" }, xt = { class: "tpl:mb-3.5" }, St = /* @__PURE__ */
|
|
224
|
+
}, bt = { class: "tpl:mb-3.5" }, xt = { class: "tpl:mb-3.5" }, St = /* @__PURE__ */ w({
|
|
225
225
|
__name: "BorderControl",
|
|
226
226
|
props: {
|
|
227
227
|
modelValue: {},
|
|
@@ -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: o } = B(), s = {
|
|
233
233
|
width: 0,
|
|
234
234
|
style: "solid",
|
|
235
235
|
color: "#000000"
|
|
236
236
|
};
|
|
237
|
-
function
|
|
237
|
+
function l(e, t) {
|
|
238
238
|
return e.width === t.width && e.style === t.style && e.color === t.color;
|
|
239
239
|
}
|
|
240
|
-
let
|
|
240
|
+
let u = p(() => {
|
|
241
241
|
let e = r.modelValue;
|
|
242
|
-
return !e ||
|
|
243
|
-
}),
|
|
244
|
-
|
|
245
|
-
!e &&
|
|
242
|
+
return !e || P.every((t) => l(e[t], e.top));
|
|
243
|
+
}), d = c(u.value);
|
|
244
|
+
T(u, (e) => {
|
|
245
|
+
!e && d.value && (d.value = !1);
|
|
246
246
|
});
|
|
247
|
-
let
|
|
248
|
-
let e =
|
|
249
|
-
return r.modelValue?.[e] ??
|
|
250
|
-
}),
|
|
251
|
-
function
|
|
252
|
-
if (
|
|
253
|
-
i("update:modelValue",
|
|
247
|
+
let g = c("top"), v = p(() => {
|
|
248
|
+
let e = d.value ? "top" : g.value;
|
|
249
|
+
return r.modelValue?.[e] ?? s;
|
|
250
|
+
}), S = (e) => !!e && e.width > 0;
|
|
251
|
+
function C(e) {
|
|
252
|
+
if (d.value) {
|
|
253
|
+
i("update:modelValue", S(e) ? O(e) : void 0);
|
|
254
254
|
return;
|
|
255
255
|
}
|
|
256
256
|
let t = {
|
|
257
|
-
...r.modelValue ??
|
|
258
|
-
[
|
|
259
|
-
}, n =
|
|
257
|
+
...r.modelValue ?? O(s),
|
|
258
|
+
[g.value]: e
|
|
259
|
+
}, n = P.some((e) => S(t[e]));
|
|
260
260
|
i("update:modelValue", n ? t : void 0);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
263
|
-
|
|
264
|
-
...
|
|
262
|
+
function w(e) {
|
|
263
|
+
C({
|
|
264
|
+
...v.value,
|
|
265
265
|
width: e > 0 ? e : 0
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
268
|
function E(e) {
|
|
269
|
-
|
|
270
|
-
...
|
|
269
|
+
C({
|
|
270
|
+
...v.value,
|
|
271
271
|
...e
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
function D() {
|
|
275
|
-
if (
|
|
276
|
-
|
|
275
|
+
if (d.value) {
|
|
276
|
+
d.value = !1;
|
|
277
277
|
return;
|
|
278
278
|
}
|
|
279
|
-
|
|
279
|
+
d.value = !0;
|
|
280
280
|
let e = r.modelValue;
|
|
281
281
|
if (!e) return;
|
|
282
|
-
let t =
|
|
283
|
-
i("update:modelValue", t ?
|
|
282
|
+
let t = S(e[g.value]) ? e[g.value] : P.map((t) => e[t]).find(S);
|
|
283
|
+
i("update:modelValue", t ? O(t) : void 0);
|
|
284
284
|
}
|
|
285
|
-
let
|
|
285
|
+
let k = p(() => P.map((e) => ({
|
|
286
286
|
value: e,
|
|
287
|
-
label:
|
|
287
|
+
label: o.spacingControl[e]
|
|
288
288
|
})));
|
|
289
|
-
return (n, r) => (
|
|
290
|
-
|
|
291
|
-
linked:
|
|
292
|
-
"link-label":
|
|
293
|
-
"unlink-label":
|
|
289
|
+
return (n, r) => (_(), h("div", gt, [
|
|
290
|
+
y("div", _t, [y("span", vt, a(b(o).blockSettings.border), 1), f(ht, {
|
|
291
|
+
linked: d.value,
|
|
292
|
+
"link-label": b(o).blockSettings.linkSides,
|
|
293
|
+
"unlink-label": b(o).blockSettings.unlinkSides,
|
|
294
294
|
testid: `${e.testidPrefix}-border-link`,
|
|
295
295
|
onToggle: D
|
|
296
296
|
}, null, 8, [
|
|
@@ -299,45 +299,45 @@ var st = Fe({
|
|
|
299
299
|
"unlink-label",
|
|
300
300
|
"testid"
|
|
301
301
|
])]),
|
|
302
|
-
|
|
303
|
-
options:
|
|
304
|
-
"model-value":
|
|
305
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
302
|
+
d.value ? m("", !0) : (_(), h("div", yt, [y("label", { class: t(b(U)) }, a(b(o).blockSettings.borderSide), 3), f(Y, {
|
|
303
|
+
options: k.value,
|
|
304
|
+
"model-value": g.value,
|
|
305
|
+
"onUpdate:modelValue": r[0] ||= (e) => g.value = e
|
|
306
306
|
}, null, 8, ["options", "model-value"])])),
|
|
307
|
-
|
|
308
|
-
"model-value":
|
|
307
|
+
y("div", bt, [y("label", { class: t(b(U)) }, a(b(o).blockSettings.borderWidth), 3), f(X, {
|
|
308
|
+
"model-value": v.value.width,
|
|
309
309
|
min: 0,
|
|
310
310
|
suffix: "px",
|
|
311
311
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
312
|
-
"onUpdate:modelValue":
|
|
312
|
+
"onUpdate:modelValue": w
|
|
313
313
|
}, null, 8, ["model-value", "testid"])]),
|
|
314
|
-
|
|
314
|
+
v.value.width > 0 ? (_(), h(x, { key: 1 }, [y("div", xt, [y("label", { class: t(b(U)) }, a(b(o).blockSettings.borderStyle), 3), f(Y, {
|
|
315
315
|
options: [
|
|
316
316
|
{
|
|
317
317
|
value: "solid",
|
|
318
|
-
label:
|
|
318
|
+
label: b(o).divider.solid
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
321
|
value: "dashed",
|
|
322
|
-
label:
|
|
322
|
+
label: b(o).divider.dashed
|
|
323
323
|
},
|
|
324
324
|
{
|
|
325
325
|
value: "dotted",
|
|
326
|
-
label:
|
|
326
|
+
label: b(o).divider.dotted
|
|
327
327
|
}
|
|
328
328
|
],
|
|
329
|
-
"model-value":
|
|
329
|
+
"model-value": v.value.style,
|
|
330
330
|
"onUpdate:modelValue": r[1] ||= (e) => E({ style: e })
|
|
331
|
-
}, null, 8, ["options", "model-value"])]),
|
|
332
|
-
"model-value":
|
|
331
|
+
}, null, 8, ["options", "model-value"])]), y("div", null, [y("label", { class: t(b(U)) }, a(b(o).blockSettings.borderColor), 3), f(V, {
|
|
332
|
+
"model-value": v.value.color,
|
|
333
333
|
"onUpdate:modelValue": r[2] ||= (e) => E({ color: e })
|
|
334
|
-
}, null, 8, ["model-value"])])], 64)) :
|
|
334
|
+
}, null, 8, ["model-value"])])], 64)) : m("", !0)
|
|
335
335
|
]));
|
|
336
336
|
}
|
|
337
337
|
}), Ct = { class: "tpl:mb-3.5" }, wt = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Tt = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Et = {
|
|
338
338
|
key: 1,
|
|
339
339
|
class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
|
|
340
|
-
}, Dt = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Ot = /* @__PURE__ */
|
|
340
|
+
}, Dt = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Ot = /* @__PURE__ */ w({
|
|
341
341
|
__name: "RadiusControl",
|
|
342
342
|
props: {
|
|
343
343
|
modelValue: {},
|
|
@@ -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: t }) {
|
|
350
|
+
let n = e, r = t, { t: i } = B(), s = {
|
|
351
351
|
topLeft: "cornerTopLeft",
|
|
352
352
|
topRight: "cornerTopRight",
|
|
353
353
|
bottomRight: "cornerBottomRight",
|
|
@@ -357,63 +357,63 @@ var st = Fe({
|
|
|
357
357
|
"topRight",
|
|
358
358
|
"bottomLeft",
|
|
359
359
|
"bottomRight"
|
|
360
|
-
], u =
|
|
361
|
-
let e =
|
|
360
|
+
], u = p(() => {
|
|
361
|
+
let e = n.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 =
|
|
369
|
-
|
|
370
|
-
!e &&
|
|
368
|
+
}), d = p(() => ie.every((e) => u.value[e] === u.value.topLeft)), m = c(d.value);
|
|
369
|
+
T(d, (e) => {
|
|
370
|
+
!e && m.value && (m.value = !1);
|
|
371
371
|
});
|
|
372
|
-
function
|
|
372
|
+
function g(e) {
|
|
373
373
|
return Number.isFinite(e) && e >= 0;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
376
|
-
|
|
375
|
+
function v(e) {
|
|
376
|
+
g(e) && r("update:modelValue", e);
|
|
377
377
|
}
|
|
378
|
-
function
|
|
379
|
-
|
|
378
|
+
function C(e, t) {
|
|
379
|
+
g(t) && r("update:modelValue", {
|
|
380
380
|
...u.value,
|
|
381
381
|
[e]: t
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
|
-
function
|
|
385
|
-
|
|
384
|
+
function w() {
|
|
385
|
+
m.value = !m.value, m.value && r("update:modelValue", u.value.topLeft);
|
|
386
386
|
}
|
|
387
|
-
return (
|
|
388
|
-
linked:
|
|
389
|
-
"link-label":
|
|
390
|
-
"unlink-label":
|
|
387
|
+
return (t, n) => (_(), h("div", Ct, [y("div", wt, [y("span", Tt, a(e.label), 1), f(ht, {
|
|
388
|
+
linked: m.value,
|
|
389
|
+
"link-label": b(i).blockSettings.linkCorners,
|
|
390
|
+
"unlink-label": b(i).blockSettings.unlinkCorners,
|
|
391
391
|
testid: `${e.testidPrefix}-border-radius-link`,
|
|
392
|
-
onToggle:
|
|
392
|
+
onToggle: w
|
|
393
393
|
}, null, 8, [
|
|
394
394
|
"linked",
|
|
395
395
|
"link-label",
|
|
396
396
|
"unlink-label",
|
|
397
397
|
"testid"
|
|
398
|
-
])]),
|
|
398
|
+
])]), m.value ? (_(), S(X, {
|
|
399
399
|
key: 0,
|
|
400
400
|
"model-value": u.value.topLeft,
|
|
401
401
|
min: 0,
|
|
402
402
|
max: e.max,
|
|
403
403
|
suffix: "px",
|
|
404
404
|
testid: `${e.testidPrefix}-border-radius-input`,
|
|
405
|
-
"onUpdate:modelValue":
|
|
405
|
+
"onUpdate:modelValue": v
|
|
406
406
|
}, null, 8, [
|
|
407
407
|
"model-value",
|
|
408
408
|
"max",
|
|
409
409
|
"testid"
|
|
410
|
-
])) : (
|
|
410
|
+
])) : (_(), h("div", Et, [(_(), h(x, null, o(l, (t) => y("div", { key: t }, [y("label", Dt, a(b(i).blockSettings[s[t]]), 1), f(X, {
|
|
411
411
|
"model-value": u.value[t],
|
|
412
412
|
min: 0,
|
|
413
413
|
max: e.max,
|
|
414
414
|
suffix: "px",
|
|
415
415
|
testid: `${e.testidPrefix}-border-radius-${t}-input`,
|
|
416
|
-
"onUpdate:modelValue": (e) =>
|
|
416
|
+
"onUpdate:modelValue": (e) => C(t, e)
|
|
417
417
|
}, null, 8, [
|
|
418
418
|
"model-value",
|
|
419
419
|
"max",
|
|
@@ -424,7 +424,7 @@ var st = Fe({
|
|
|
424
424
|
}), kt = { class: "tpl:mb-3.5" }, At = ["value"], jt = { value: "" }, Mt = ["value"], Nt = { class: "tpl:mb-3.5" }, Pt = { class: "tpl:mb-3.5" }, Ft = { class: "tpl:mb-3.5" }, It = { class: "tpl:mb-3.5" }, Lt = { class: "tpl:mb-3.5" }, Rt = { class: "tpl:flex tpl:items-stretch" }, zt = ["value"], Bt = { class: "tpl:mb-3.5" }, Vt = ["value"], Ht = { value: "auto" }, Ut = { value: "full" }, Wt = { value: "custom" }, Gt = {
|
|
425
425
|
key: 0,
|
|
426
426
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
427
|
-
}, Kt = ["value"], qt = { class: "tpl:mb-3.5" }, Jt = 200, Yt = /* @__PURE__ */
|
|
427
|
+
}, Kt = ["value"], qt = { class: "tpl:mb-3.5" }, Jt = 200, Yt = /* @__PURE__ */ w({
|
|
428
428
|
__name: "ButtonToolbar",
|
|
429
429
|
props: {
|
|
430
430
|
block: {},
|
|
@@ -432,116 +432,116 @@ var st = Fe({
|
|
|
432
432
|
},
|
|
433
433
|
emits: ["update"],
|
|
434
434
|
setup(e, { emit: n }) {
|
|
435
|
-
let r = e, i = n, { t:
|
|
436
|
-
function
|
|
435
|
+
let r = e, i = n, { t: s } = B(), c = p(() => r.block.width === "full" ? "full" : typeof r.block.width == "number" ? "custom" : "auto");
|
|
436
|
+
function l(e, t) {
|
|
437
437
|
i("update", { [e]: t });
|
|
438
438
|
}
|
|
439
|
-
function l(e) {
|
|
440
|
-
e === "full" ? c("width", "full") : e === "custom" ? c("width", typeof r.block.width == "number" ? r.block.width : Jt) : c("width", void 0);
|
|
441
|
-
}
|
|
442
439
|
function u(e) {
|
|
440
|
+
e === "full" ? l("width", "full") : e === "custom" ? l("width", typeof r.block.width == "number" ? r.block.width : Jt) : l("width", void 0);
|
|
441
|
+
}
|
|
442
|
+
function d(e) {
|
|
443
443
|
let t = Number(e);
|
|
444
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
445
|
-
}
|
|
446
|
-
return (n, r) => (
|
|
447
|
-
|
|
448
|
-
class: b(
|
|
449
|
-
value:
|
|
450
|
-
onChange: r[0] ||= (e) =>
|
|
451
|
-
}, [
|
|
444
|
+
!Number.isFinite(t) || t <= 0 || l("width", t);
|
|
445
|
+
}
|
|
446
|
+
return (n, r) => (_(), h(x, null, [
|
|
447
|
+
y("div", kt, [y("label", { class: t(b(U)) }, a(b(s).button.fontFamily), 3), y("select", {
|
|
448
|
+
class: t(b(K)),
|
|
449
|
+
value: b(ot)(e.block.fontFamily),
|
|
450
|
+
onChange: r[0] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
451
|
+
}, [y("option", jt, a(b(s).button.inheritFont), 1), (_(!0), h(x, null, o(e.fontFamilies, (e) => (_(), h("option", {
|
|
452
452
|
key: e.value,
|
|
453
453
|
value: e.value
|
|
454
|
-
},
|
|
455
|
-
|
|
454
|
+
}, a(e.label), 9, Mt))), 128))], 42, At)]),
|
|
455
|
+
y("div", Nt, [y("label", { class: t(b(U)) }, a(b(s).button.text), 3), f(J, {
|
|
456
456
|
"model-value": e.block.text,
|
|
457
457
|
type: "text",
|
|
458
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
458
|
+
"onUpdate:modelValue": r[1] ||= (e) => l("text", e)
|
|
459
459
|
}, null, 8, ["model-value"])]),
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
460
|
+
y("div", Pt, [
|
|
461
|
+
y("label", { class: t(b(U)) }, a(b(s).button.url), 3),
|
|
462
|
+
f(J, {
|
|
463
463
|
"model-value": e.block.url,
|
|
464
464
|
type: "url",
|
|
465
|
-
placeholder:
|
|
466
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
465
|
+
placeholder: b(s).button.urlPlaceholder,
|
|
466
|
+
"onUpdate:modelValue": r[2] ||= (e) => l("url", e)
|
|
467
467
|
}, null, 8, ["model-value", "placeholder"]),
|
|
468
|
-
e.block.url ? (
|
|
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": r[3] ||= (e) =>
|
|
474
|
-
}, null, 8, ["model-value", "label"])) :
|
|
472
|
+
label: b(s).button.openInNewTab,
|
|
473
|
+
"onUpdate:modelValue": r[3] ||= (e) => l("openInNewTab", e)
|
|
474
|
+
}, null, 8, ["model-value", "label"])) : m("", !0)
|
|
475
475
|
]),
|
|
476
|
-
|
|
476
|
+
y("div", Ft, [y("label", { class: t(b(U)) }, a(b(s).button.background), 3), f(V, {
|
|
477
477
|
"model-value": e.block.backgroundColor,
|
|
478
478
|
"allow-transparent": "",
|
|
479
|
-
"onUpdate:modelValue": r[4] ||= (e) =>
|
|
479
|
+
"onUpdate:modelValue": r[4] ||= (e) => l("backgroundColor", e)
|
|
480
480
|
}, null, 8, ["model-value"])]),
|
|
481
|
-
|
|
481
|
+
y("div", It, [y("label", { class: t(b(U)) }, a(b(s).button.textColor), 3), f(V, {
|
|
482
482
|
"model-value": e.block.textColor,
|
|
483
|
-
"onUpdate:modelValue": r[5] ||= (e) =>
|
|
483
|
+
"onUpdate:modelValue": r[5] ||= (e) => l("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": r[6] ||= (e) =>
|
|
488
|
+
"onUpdate:modelValue": r[6] ||= (e) => l("border", e)
|
|
489
489
|
}, null, 8, ["model-value"]),
|
|
490
|
-
|
|
490
|
+
f(Ot, {
|
|
491
491
|
"model-value": e.block.borderRadius,
|
|
492
|
-
label:
|
|
492
|
+
label: b(s).button.borderRadius,
|
|
493
493
|
max: 50,
|
|
494
494
|
"testid-prefix": "button",
|
|
495
|
-
"onUpdate:modelValue": r[7] ||= (e) =>
|
|
495
|
+
"onUpdate:modelValue": r[7] ||= (e) => l("borderRadius", e)
|
|
496
496
|
}, null, 8, ["model-value", "label"]),
|
|
497
|
-
|
|
497
|
+
y("div", Lt, [y("label", { class: t(b(U)) }, a(b(s).button.fontSize), 3), y("div", Rt, [y("input", {
|
|
498
498
|
type: "number",
|
|
499
|
-
class: b(
|
|
499
|
+
class: t(b(G)),
|
|
500
500
|
value: e.block.fontSize,
|
|
501
501
|
min: "10",
|
|
502
502
|
max: "36",
|
|
503
|
-
onInput: r[8] ||= (e) =>
|
|
504
|
-
}, null, 42, zt),
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
class: b(
|
|
509
|
-
value:
|
|
510
|
-
onChange: r[9] ||= (e) =>
|
|
503
|
+
onInput: r[8] ||= (e) => l("fontSize", Number(e.target.value))
|
|
504
|
+
}, null, 42, zt), y("span", { class: t(b(W)) }, "px", 2)])]),
|
|
505
|
+
y("div", Bt, [
|
|
506
|
+
y("label", { class: t(b(U)) }, a(b(s).button.width), 3),
|
|
507
|
+
y("select", {
|
|
508
|
+
class: t(b(K)),
|
|
509
|
+
value: c.value,
|
|
510
|
+
onChange: r[9] ||= (e) => u(e.target.value)
|
|
511
511
|
}, [
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
512
|
+
y("option", Ht, a(b(s).button.widthAuto), 1),
|
|
513
|
+
y("option", Ut, a(b(s).button.fullWidth), 1),
|
|
514
|
+
y("option", Wt, a(b(s).button.widthCustom), 1)
|
|
515
515
|
], 42, Vt),
|
|
516
|
-
|
|
516
|
+
c.value === "custom" ? (_(), h("div", Gt, [y("input", {
|
|
517
517
|
type: "number",
|
|
518
|
-
class: b(
|
|
518
|
+
class: t(b(G)),
|
|
519
519
|
value: typeof e.block.width == "number" ? e.block.width : Jt,
|
|
520
520
|
min: "20",
|
|
521
|
-
onInput: r[10] ||= (e) =>
|
|
522
|
-
}, null, 42, Kt),
|
|
521
|
+
onInput: r[10] ||= (e) => d(e.target.value)
|
|
522
|
+
}, null, 42, Kt), y("span", { class: t(b(W)) }, "px", 2)])) : m("", !0)
|
|
523
523
|
]),
|
|
524
|
-
|
|
524
|
+
y("div", qt, [y("label", { class: t(b(U)) }, a(b(s).title.align), 3), f(Y, {
|
|
525
525
|
options: [
|
|
526
526
|
{
|
|
527
527
|
value: "left",
|
|
528
|
-
label:
|
|
528
|
+
label: b(s).title.alignLeft
|
|
529
529
|
},
|
|
530
530
|
{
|
|
531
531
|
value: "center",
|
|
532
|
-
label:
|
|
532
|
+
label: b(s).title.alignCenter
|
|
533
533
|
},
|
|
534
534
|
{
|
|
535
535
|
value: "right",
|
|
536
|
-
label:
|
|
536
|
+
label: b(s).title.alignRight
|
|
537
537
|
}
|
|
538
538
|
],
|
|
539
539
|
"model-value": e.block.align ?? "center",
|
|
540
|
-
"onUpdate:modelValue": r[11] ||= (e) =>
|
|
540
|
+
"onUpdate:modelValue": r[11] ||= (e) => l("align", e)
|
|
541
541
|
}, null, 8, ["options", "model-value"])])
|
|
542
542
|
], 64));
|
|
543
543
|
}
|
|
544
|
-
}), Xt = { class: "spacing-control" }, Zt = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Qt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, $t = { class: "tpl:flex tpl:items-center" }, en = ["aria-label"], tn = ["value", "aria-label"], nn = ["aria-label"], rn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, an = { class: "tpl:flex tpl:items-center" }, on = ["aria-label"], sn = ["value", "aria-label"], cn = ["aria-label"], ln = ["aria-label", "title"], un = { class: "tpl:flex tpl:items-center" }, dn = ["aria-label"], fn = ["value", "aria-label"], pn = ["aria-label"], mn = { class: "tpl:flex tpl:items-center" }, hn = ["aria-label"], gn = ["value", "aria-label"], _n = ["aria-label"], Z = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", vn = "tpl:w-10 tpl:h-8 tpl:text-center tpl:text-xs tpl:font-medium tpl:border-y tpl:border-x-0 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", yn = /*#__PURE__*/
|
|
544
|
+
}), Xt = { class: "spacing-control" }, Zt = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Qt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, $t = { class: "tpl:flex tpl:items-center" }, en = ["aria-label"], tn = ["value", "aria-label"], nn = ["aria-label"], rn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, an = { class: "tpl:flex tpl:items-center" }, on = ["aria-label"], sn = ["value", "aria-label"], cn = ["aria-label"], ln = ["aria-label", "title"], un = { class: "tpl:flex tpl:items-center" }, dn = ["aria-label"], fn = ["value", "aria-label"], pn = ["aria-label"], mn = { class: "tpl:flex tpl:items-center" }, hn = ["aria-label"], gn = ["value", "aria-label"], _n = ["aria-label"], Z = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", vn = "tpl:w-10 tpl:h-8 tpl:text-center tpl:text-xs tpl:font-medium tpl:border-y tpl:border-x-0 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", yn = /*#__PURE__*/ Qe(/* @__PURE__ */ w({
|
|
545
545
|
__name: "SpacingControl",
|
|
546
546
|
props: {
|
|
547
547
|
modelValue: {},
|
|
@@ -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
|
-
|
|
554
|
-
!e &&
|
|
552
|
+
let r = e, i = n, { t: o } = B(), s = p(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), l = c(s.value);
|
|
553
|
+
T(s, (e) => {
|
|
554
|
+
!e && l.value && (l.value = !1);
|
|
555
555
|
});
|
|
556
|
-
function
|
|
556
|
+
function u(e, t) {
|
|
557
557
|
let n = r.modelValue[e], a = Math.max(0, n + t);
|
|
558
|
-
|
|
558
|
+
l.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 d(e, t) {
|
|
569
569
|
let n = Math.max(0, t);
|
|
570
|
-
|
|
570
|
+
l.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 m() {
|
|
581
|
+
if (l.value = !l.value, l.value) {
|
|
582
582
|
let e = r.modelValue.top;
|
|
583
583
|
i("update:modelValue", {
|
|
584
584
|
top: e,
|
|
@@ -588,123 +588,123 @@ var st = Fe({
|
|
|
588
588
|
});
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
return (n, r) => (
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
"aria-label":
|
|
595
|
-
class:
|
|
596
|
-
onClick: r[0] ||= (e) =>
|
|
597
|
-
}, [
|
|
591
|
+
return (n, r) => (_(), h("div", Xt, [y("label", Zt, a(e.label), 1), y("div", Qt, [
|
|
592
|
+
y("div", $t, [
|
|
593
|
+
y("button", {
|
|
594
|
+
"aria-label": b(o).spacingControl.decreaseTop,
|
|
595
|
+
class: t([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
596
|
+
onClick: r[0] ||= (e) => u("top", -1)
|
|
597
|
+
}, [f(b(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: t(vn),
|
|
604
604
|
value: e.modelValue.top,
|
|
605
|
-
"aria-label":
|
|
605
|
+
"aria-label": b(o).spacingControl.top,
|
|
606
606
|
min: "0",
|
|
607
|
-
onInput: r[1] ||= (e) =>
|
|
607
|
+
onInput: r[1] ||= (e) => d("top", Number(e.target.value))
|
|
608
608
|
}, null, 40, tn),
|
|
609
|
-
|
|
610
|
-
"aria-label":
|
|
611
|
-
class:
|
|
612
|
-
onClick: r[2] ||= (e) =>
|
|
613
|
-
}, [
|
|
609
|
+
y("button", {
|
|
610
|
+
"aria-label": b(o).spacingControl.increaseTop,
|
|
611
|
+
class: t([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
612
|
+
onClick: r[2] ||= (e) => u("top", 1)
|
|
613
|
+
}, [f(b(H), {
|
|
614
614
|
size: 12,
|
|
615
615
|
"stroke-width": 2
|
|
616
616
|
})], 10, nn)
|
|
617
617
|
]),
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
"aria-label":
|
|
622
|
-
class:
|
|
623
|
-
onClick: r[3] ||= (e) =>
|
|
624
|
-
}, [
|
|
618
|
+
y("div", rn, [
|
|
619
|
+
y("div", an, [
|
|
620
|
+
y("button", {
|
|
621
|
+
"aria-label": b(o).spacingControl.decreaseLeft,
|
|
622
|
+
class: t([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
623
|
+
onClick: r[3] ||= (e) => u("left", -1)
|
|
624
|
+
}, [f(b(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: t(vn),
|
|
631
631
|
value: e.modelValue.left,
|
|
632
|
-
"aria-label":
|
|
632
|
+
"aria-label": b(o).spacingControl.left,
|
|
633
633
|
min: "0",
|
|
634
|
-
onInput: r[4] ||= (e) =>
|
|
634
|
+
onInput: r[4] ||= (e) => d("left", Number(e.target.value))
|
|
635
635
|
}, null, 40, sn),
|
|
636
|
-
|
|
637
|
-
"aria-label":
|
|
638
|
-
class:
|
|
639
|
-
onClick: r[5] ||= (e) =>
|
|
640
|
-
}, [
|
|
636
|
+
y("button", {
|
|
637
|
+
"aria-label": b(o).spacingControl.increaseLeft,
|
|
638
|
+
class: t([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
639
|
+
onClick: r[5] ||= (e) => u("left", 1)
|
|
640
|
+
}, [f(b(H), {
|
|
641
641
|
size: 12,
|
|
642
642
|
"stroke-width": 2
|
|
643
643
|
})], 10, cn)
|
|
644
644
|
]),
|
|
645
|
-
|
|
646
|
-
class:
|
|
647
|
-
"aria-label":
|
|
648
|
-
title:
|
|
649
|
-
onClick:
|
|
650
|
-
}, [
|
|
645
|
+
y("button", {
|
|
646
|
+
class: t(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", l.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
647
|
+
"aria-label": l.value ? b(o).spacingControl.unlock : b(o).spacingControl.lockAll,
|
|
648
|
+
title: l.value ? b(o).spacingControl.unlock : b(o).spacingControl.lockAll,
|
|
649
|
+
onClick: m
|
|
650
|
+
}, [l.value ? (_(), S(b(ct), {
|
|
651
651
|
key: 0,
|
|
652
652
|
size: 14,
|
|
653
653
|
"stroke-width": 2
|
|
654
|
-
})) : (
|
|
654
|
+
})) : (_(), S(b(st), {
|
|
655
655
|
key: 1,
|
|
656
656
|
size: 14,
|
|
657
657
|
"stroke-width": 2
|
|
658
658
|
}))], 10, ln),
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
"aria-label":
|
|
662
|
-
class:
|
|
663
|
-
onClick: r[6] ||= (e) =>
|
|
664
|
-
}, [
|
|
659
|
+
y("div", un, [
|
|
660
|
+
y("button", {
|
|
661
|
+
"aria-label": b(o).spacingControl.decreaseRight,
|
|
662
|
+
class: t([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
663
|
+
onClick: r[6] ||= (e) => u("right", -1)
|
|
664
|
+
}, [f(b(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: t(vn),
|
|
671
671
|
value: e.modelValue.right,
|
|
672
|
-
"aria-label":
|
|
672
|
+
"aria-label": b(o).spacingControl.right,
|
|
673
673
|
min: "0",
|
|
674
|
-
onInput: r[7] ||= (e) =>
|
|
674
|
+
onInput: r[7] ||= (e) => d("right", Number(e.target.value))
|
|
675
675
|
}, null, 40, fn),
|
|
676
|
-
|
|
677
|
-
"aria-label":
|
|
678
|
-
class:
|
|
679
|
-
onClick: r[8] ||= (e) =>
|
|
680
|
-
}, [
|
|
676
|
+
y("button", {
|
|
677
|
+
"aria-label": b(o).spacingControl.increaseRight,
|
|
678
|
+
class: t([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
679
|
+
onClick: r[8] ||= (e) => u("right", 1)
|
|
680
|
+
}, [f(b(H), {
|
|
681
681
|
size: 12,
|
|
682
682
|
"stroke-width": 2
|
|
683
683
|
})], 10, pn)
|
|
684
684
|
])
|
|
685
685
|
]),
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
"aria-label":
|
|
689
|
-
class:
|
|
690
|
-
onClick: r[9] ||= (e) =>
|
|
691
|
-
}, [
|
|
686
|
+
y("div", mn, [
|
|
687
|
+
y("button", {
|
|
688
|
+
"aria-label": b(o).spacingControl.decreaseBottom,
|
|
689
|
+
class: t([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
690
|
+
onClick: r[9] ||= (e) => u("bottom", -1)
|
|
691
|
+
}, [f(b(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: t(vn),
|
|
698
698
|
value: e.modelValue.bottom,
|
|
699
|
-
"aria-label":
|
|
699
|
+
"aria-label": b(o).spacingControl.bottom,
|
|
700
700
|
min: "0",
|
|
701
|
-
onInput: r[10] ||= (e) =>
|
|
701
|
+
onInput: r[10] ||= (e) => d("bottom", Number(e.target.value))
|
|
702
702
|
}, null, 40, gn),
|
|
703
|
-
|
|
704
|
-
"aria-label":
|
|
705
|
-
class:
|
|
706
|
-
onClick: r[11] ||= (e) =>
|
|
707
|
-
}, [
|
|
703
|
+
y("button", {
|
|
704
|
+
"aria-label": b(o).spacingControl.increaseBottom,
|
|
705
|
+
class: t([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
706
|
+
onClick: r[11] ||= (e) => u("bottom", 1)
|
|
707
|
+
}, [f(b(H), {
|
|
708
708
|
size: 12,
|
|
709
709
|
"stroke-width": 2
|
|
710
710
|
})], 10, _n)
|
|
@@ -715,23 +715,23 @@ var st = Fe({
|
|
|
715
715
|
//#endregion
|
|
716
716
|
//#region src/composables/useNaturalImageSize.ts
|
|
717
717
|
function bn(e) {
|
|
718
|
-
let t =
|
|
719
|
-
return
|
|
720
|
-
n(), t.value = null, e && (n =
|
|
718
|
+
let t = c(null), n = () => {};
|
|
719
|
+
return T(e, (e) => {
|
|
720
|
+
n(), t.value = null, e && (n = pe(e, (e) => {
|
|
721
721
|
t.value = e;
|
|
722
722
|
}));
|
|
723
723
|
}, { immediate: !0 }), t;
|
|
724
724
|
}
|
|
725
725
|
function xn() {
|
|
726
|
-
let e =
|
|
727
|
-
return async (t) =>
|
|
726
|
+
let e = n(Ne, null);
|
|
727
|
+
return async (t) => R(e ? await Sn(e, t) : t);
|
|
728
728
|
}
|
|
729
729
|
function Sn(e, t) {
|
|
730
730
|
let n = (e) => typeof e == "string" && e.length > 0 ? e : t;
|
|
731
731
|
e.lookup(t);
|
|
732
732
|
let r = e.get(t);
|
|
733
733
|
return r === void 0 ? new Promise((r) => {
|
|
734
|
-
let i =
|
|
734
|
+
let i = T(() => e.get(t), (e) => {
|
|
735
735
|
e !== void 0 && (i(), r(n(e)));
|
|
736
736
|
});
|
|
737
737
|
}) : Promise.resolve(n(r));
|
|
@@ -744,7 +744,7 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
744
744
|
"aria-pressed",
|
|
745
745
|
"data-testid",
|
|
746
746
|
"onClick"
|
|
747
|
-
], kn = ["data-testid"], An = /* @__PURE__ */
|
|
747
|
+
], kn = ["data-testid"], An = /* @__PURE__ */ w({
|
|
748
748
|
__name: "BackgroundImageControl",
|
|
749
749
|
props: {
|
|
750
750
|
modelValue: {},
|
|
@@ -753,89 +753,89 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
753
753
|
heroMode: { type: Boolean }
|
|
754
754
|
},
|
|
755
755
|
emits: ["update:modelValue"],
|
|
756
|
-
setup(e, { emit:
|
|
757
|
-
let
|
|
758
|
-
|
|
756
|
+
setup(e, { emit: r }) {
|
|
757
|
+
let i = e, s = r, { t: l } = B(), u = n(Te, N.liquid), v = p(() => typeof i.modelValue?.url == "string" ? i.modelValue.url : ""), C = p(() => v.value.trim() !== ""), w = xn(), T;
|
|
758
|
+
d(() => clearTimeout(T));
|
|
759
759
|
function E(e) {
|
|
760
|
-
|
|
761
|
-
let t = await
|
|
762
|
-
t && n?.url === e &&
|
|
760
|
+
i.measure && !I(e, u) && (T = setTimeout(async () => {
|
|
761
|
+
let t = await w(e), n = i.modelValue;
|
|
762
|
+
t && n?.url === e && s("update:modelValue", {
|
|
763
763
|
...n,
|
|
764
|
-
...
|
|
764
|
+
...L(t)
|
|
765
765
|
});
|
|
766
766
|
}, 300));
|
|
767
767
|
}
|
|
768
768
|
function D(e, t = null) {
|
|
769
769
|
if (clearTimeout(T), e.trim() === "") {
|
|
770
|
-
|
|
770
|
+
s("update:modelValue", void 0);
|
|
771
771
|
return;
|
|
772
772
|
}
|
|
773
|
-
let { naturalWidth: n, naturalHeight:
|
|
774
|
-
|
|
775
|
-
...
|
|
773
|
+
let { naturalWidth: n, naturalHeight: r, ...a } = i.modelValue ?? j(e), o = i.measure ? t : null;
|
|
774
|
+
s("update:modelValue", {
|
|
775
|
+
...a,
|
|
776
776
|
url: e,
|
|
777
|
-
...
|
|
778
|
-
}),
|
|
777
|
+
...o ? L(o) : {}
|
|
778
|
+
}), o || E(e);
|
|
779
779
|
}
|
|
780
780
|
function O(e) {
|
|
781
|
-
|
|
782
|
-
...
|
|
781
|
+
i.modelValue && s("update:modelValue", {
|
|
782
|
+
...i.modelValue,
|
|
783
783
|
...e
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
|
-
let k =
|
|
786
|
+
let k = p(() => [
|
|
787
787
|
{
|
|
788
788
|
value: "cover",
|
|
789
|
-
label:
|
|
789
|
+
label: l.blockSettings.backgroundSizeCover
|
|
790
790
|
},
|
|
791
791
|
{
|
|
792
792
|
value: "contain",
|
|
793
|
-
label:
|
|
793
|
+
label: l.blockSettings.backgroundSizeContain
|
|
794
794
|
},
|
|
795
795
|
{
|
|
796
796
|
value: "auto",
|
|
797
|
-
label:
|
|
797
|
+
label: l.blockSettings.backgroundSizeAuto
|
|
798
798
|
}
|
|
799
|
-
]), A =
|
|
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
|
-
})),
|
|
799
|
+
]), A = p(() => ({
|
|
800
|
+
"top-left": l.blockSettings.backgroundPositionTopLeft,
|
|
801
|
+
"top-center": l.blockSettings.backgroundPositionTopCenter,
|
|
802
|
+
"top-right": l.blockSettings.backgroundPositionTopRight,
|
|
803
|
+
"center-left": l.blockSettings.backgroundPositionCenterLeft,
|
|
804
|
+
"center-center": l.blockSettings.backgroundPositionCenter,
|
|
805
|
+
"center-right": l.blockSettings.backgroundPositionCenterRight,
|
|
806
|
+
"bottom-left": l.blockSettings.backgroundPositionBottomLeft,
|
|
807
|
+
"bottom-center": l.blockSettings.backgroundPositionBottomCenter,
|
|
808
|
+
"bottom-right": l.blockSettings.backgroundPositionBottomRight
|
|
809
|
+
})), M = p(() => te.flatMap((e) => ae.map((t) => ({
|
|
810
810
|
x: t,
|
|
811
811
|
y: e,
|
|
812
812
|
label: A.value[`${e}-${t}`]
|
|
813
813
|
}))));
|
|
814
814
|
function P(e) {
|
|
815
|
-
return
|
|
815
|
+
return i.modelValue?.position?.x === e.x && i.modelValue?.position?.y === e.y;
|
|
816
816
|
}
|
|
817
|
-
let F =
|
|
817
|
+
let F = c(), { canBrowse: ee, isUploading: ne, showOverlay: re, openMediaBrowser: ie } = _e({
|
|
818
818
|
target: F,
|
|
819
|
-
blocked: () =>
|
|
820
|
-
apply: (e) => D(e.url,
|
|
819
|
+
blocked: () => I(v.value, u),
|
|
820
|
+
apply: (e) => D(e.url, me(e.width, e.height))
|
|
821
821
|
});
|
|
822
|
-
return (n, r) => (
|
|
822
|
+
return (n, r) => (_(), h("div", Cn, [y("div", null, [y("label", { class: t(b(U)) }, a(b(l).blockSettings.backgroundImage), 3), y("div", {
|
|
823
823
|
ref_key: "dropZoneRef",
|
|
824
824
|
ref: F,
|
|
825
825
|
class: "tpl:relative",
|
|
826
826
|
"data-testid": `${e.testidPrefix}-bg-url`
|
|
827
827
|
}, [
|
|
828
|
-
|
|
828
|
+
b(re) ? (_(), S(fe, {
|
|
829
829
|
key: 0,
|
|
830
|
-
uploading:
|
|
831
|
-
}, null, 8, ["uploading"])) :
|
|
832
|
-
|
|
833
|
-
"model-value":
|
|
830
|
+
uploading: b(ne)
|
|
831
|
+
}, null, 8, ["uploading"])) : m("", !0),
|
|
832
|
+
f(J, {
|
|
833
|
+
"model-value": v.value,
|
|
834
834
|
type: "url",
|
|
835
|
-
placeholder:
|
|
835
|
+
placeholder: b(l).blockSettings.backgroundImagePlaceholder,
|
|
836
836
|
"onUpdate:modelValue": D
|
|
837
837
|
}, null, 8, ["model-value", "placeholder"]),
|
|
838
|
-
|
|
838
|
+
b(ee) ? (_(), h("button", {
|
|
839
839
|
key: 1,
|
|
840
840
|
type: "button",
|
|
841
841
|
"data-testid": `${e.testidPrefix}-bg-browse`,
|
|
@@ -845,50 +845,50 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
845
845
|
color: "var(--tpl-primary)",
|
|
846
846
|
"background-color": "var(--tpl-bg)"
|
|
847
847
|
},
|
|
848
|
-
onClick: r[0] ||= (...e) =>
|
|
849
|
-
}, [
|
|
848
|
+
onClick: r[0] ||= (...e) => b(ie) && b(ie)(...e)
|
|
849
|
+
}, [f(b(Ve), {
|
|
850
850
|
size: 14,
|
|
851
851
|
"stroke-width": 1.5
|
|
852
|
-
}),
|
|
853
|
-
], 8, wn)]),
|
|
854
|
-
e.heroMode ?
|
|
852
|
+
}), g(" " + a(b(l).image.browseMedia), 1)], 8, Tn)) : m("", !0)
|
|
853
|
+
], 8, wn)]), C.value && e.modelValue ? (_(), h(x, { key: 0 }, [
|
|
854
|
+
e.heroMode ? m("", !0) : (_(), h("div", {
|
|
855
855
|
key: 0,
|
|
856
856
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
857
|
-
}, [
|
|
857
|
+
}, [y("label", { class: t(b(U)) }, a(b(l).blockSettings.backgroundSize), 3), f(Y, {
|
|
858
858
|
options: k.value,
|
|
859
859
|
"model-value": e.modelValue.size,
|
|
860
860
|
"onUpdate:modelValue": r[1] ||= (e) => O({ size: e })
|
|
861
861
|
}, null, 8, ["options", "model-value"])], 8, En)),
|
|
862
|
-
|
|
862
|
+
y("div", null, [y("label", { class: t(b(U)) }, a(b(l).blockSettings.backgroundPosition), 3), y("div", {
|
|
863
863
|
role: "group",
|
|
864
|
-
"aria-label":
|
|
864
|
+
"aria-label": b(l).blockSettings.backgroundPosition,
|
|
865
865
|
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
866
866
|
class: "tpl:grid tpl:w-24 tpl:grid-cols-3 tpl:gap-1"
|
|
867
|
-
}, [(
|
|
867
|
+
}, [(_(!0), h(x, null, o(M.value, (n) => (_(), h("button", {
|
|
868
868
|
key: `${n.y}-${n.x}`,
|
|
869
869
|
type: "button",
|
|
870
870
|
"aria-label": n.label,
|
|
871
871
|
title: n.label,
|
|
872
872
|
"aria-pressed": P(n),
|
|
873
873
|
"data-testid": `${e.testidPrefix}-bg-position-${n.y}-${n.x}`,
|
|
874
|
-
class:
|
|
874
|
+
class: t(["tpl:flex tpl:h-6 tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:transition-colors", P(n) ? "tpl:border-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
875
875
|
onClick: (e) => O({ position: {
|
|
876
876
|
x: n.x,
|
|
877
877
|
y: n.y
|
|
878
878
|
} })
|
|
879
|
-
}, [
|
|
880
|
-
e.heroMode ?
|
|
879
|
+
}, [y("span", { class: t(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", P(n) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10, On))), 128))], 8, Dn)]),
|
|
880
|
+
e.heroMode ? m("", !0) : (_(), h("div", {
|
|
881
881
|
key: 1,
|
|
882
882
|
"data-testid": `${e.testidPrefix}-bg-repeat`
|
|
883
|
-
}, [
|
|
883
|
+
}, [f(q, {
|
|
884
884
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
885
885
|
"model-value": e.modelValue.repeat,
|
|
886
|
-
label:
|
|
886
|
+
label: b(l).blockSettings.backgroundRepeat,
|
|
887
887
|
"onUpdate:modelValue": r[2] ||= (e) => O({ repeat: e })
|
|
888
888
|
}, null, 8, ["model-value", "label"])], 8, kn))
|
|
889
|
-
], 64)) :
|
|
889
|
+
], 64)) : m("", !0)]));
|
|
890
890
|
}
|
|
891
|
-
}), jn = ["data-testid"], Mn = { class: "tpl:mt-3" }, Nn = /* @__PURE__ */
|
|
891
|
+
}), jn = ["data-testid"], Mn = { class: "tpl:mt-3" }, Nn = /* @__PURE__ */ w({
|
|
892
892
|
__name: "CollapsibleSection",
|
|
893
893
|
props: {
|
|
894
894
|
title: {},
|
|
@@ -898,16 +898,16 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
898
898
|
},
|
|
899
899
|
emits: ["toggle"],
|
|
900
900
|
setup(e) {
|
|
901
|
-
return (n,
|
|
901
|
+
return (n, i) => (_(), h("div", { class: t(["tpl:py-3", e.noBorder ? "" : "tpl:border-t tpl:border-[var(--tpl-border)]"]) }, [y("button", {
|
|
902
902
|
type: "button",
|
|
903
903
|
"data-testid": e.headerTestId,
|
|
904
904
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
905
|
-
onClick:
|
|
906
|
-
}, [
|
|
907
|
-
class:
|
|
905
|
+
onClick: i[0] ||= (e) => n.$emit("toggle")
|
|
906
|
+
}, [f(b(Ie), {
|
|
907
|
+
class: t(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
908
908
|
size: 12,
|
|
909
909
|
"stroke-width": 2
|
|
910
|
-
}, null, 8, ["class"]),
|
|
910
|
+
}, null, 8, ["class"]), y("span", null, a(e.title), 1)], 8, jn), r(y("div", Mn, [s(n.$slots, "default")], 512), [[D, e.open]])], 2));
|
|
911
911
|
}
|
|
912
912
|
}), Pn = {
|
|
913
913
|
key: 0,
|
|
@@ -926,110 +926,110 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
926
926
|
}, zn = {
|
|
927
927
|
key: 1,
|
|
928
928
|
"data-testid": "section-hero-align"
|
|
929
|
-
}, Bn = 300, Vn = /* @__PURE__ */
|
|
929
|
+
}, Bn = 300, Vn = /* @__PURE__ */ w({
|
|
930
930
|
__name: "HeroControl",
|
|
931
931
|
props: { section: {} },
|
|
932
932
|
emits: ["update"],
|
|
933
|
-
setup(e, { emit:
|
|
934
|
-
function
|
|
933
|
+
setup(e, { emit: r }) {
|
|
934
|
+
function i(e) {
|
|
935
935
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
936
936
|
}
|
|
937
|
-
let
|
|
937
|
+
let o = e, s = r, { t: c } = B(), l = n(Te, N.liquid), u = n(Oe, null), d = n(Ce, void 0), g = xn(), v = p(() => typeof o.section.backgroundImage?.url == "string" ? o.section.backgroundImage.url : ""), x = p(() => v.value.trim() !== ""), C = p(() => I(v.value, l)), w = p(() => o.section.hero), T = p(() => o.section.columns === "1"), E = p(() => w.value ? i(w.value.height) ? "fixed" : "image" : "fit"), D = p(() => i(w.value?.height) ? w.value.height : Bn), O = p(() => [
|
|
938
938
|
{
|
|
939
939
|
value: "fit",
|
|
940
|
-
label:
|
|
940
|
+
label: c.blockSettings.heroHeightFit
|
|
941
941
|
},
|
|
942
942
|
{
|
|
943
943
|
value: "image",
|
|
944
|
-
label:
|
|
945
|
-
disabled:
|
|
944
|
+
label: c.blockSettings.heroHeightImage,
|
|
945
|
+
disabled: C.value
|
|
946
946
|
},
|
|
947
947
|
{
|
|
948
948
|
value: "fixed",
|
|
949
|
-
label:
|
|
949
|
+
label: c.blockSettings.heroHeightFixed
|
|
950
950
|
}
|
|
951
|
-
]),
|
|
951
|
+
]), k = p(() => [
|
|
952
952
|
{
|
|
953
953
|
value: "top",
|
|
954
|
-
label:
|
|
954
|
+
label: c.blockSettings.heroAlignTop
|
|
955
955
|
},
|
|
956
956
|
{
|
|
957
957
|
value: "middle",
|
|
958
|
-
label:
|
|
958
|
+
label: c.blockSettings.heroAlignMiddle
|
|
959
959
|
},
|
|
960
960
|
{
|
|
961
961
|
value: "bottom",
|
|
962
|
-
label:
|
|
962
|
+
label: c.blockSettings.heroAlignBottom
|
|
963
963
|
}
|
|
964
|
-
]),
|
|
965
|
-
function
|
|
966
|
-
return (
|
|
964
|
+
]), A = p(() => E.value === "image" && x.value && !C.value && M(o.section.backgroundImage) === null);
|
|
965
|
+
function j() {
|
|
966
|
+
return (u ? ve(u.content.value, o.section.id, d) : null) ?? de(u?.state.content.settings);
|
|
967
967
|
}
|
|
968
|
-
function
|
|
969
|
-
let t =
|
|
968
|
+
function P(e) {
|
|
969
|
+
let t = w.value?.verticalAlign ?? "middle";
|
|
970
970
|
if (e === "image") {
|
|
971
|
-
E.value !== "image" &&
|
|
971
|
+
E.value !== "image" && s("update", { hero: {
|
|
972
972
|
height: "image",
|
|
973
973
|
verticalAlign: t
|
|
974
|
-
} }),
|
|
974
|
+
} }), F();
|
|
975
975
|
return;
|
|
976
976
|
}
|
|
977
977
|
if (e === E.value) return;
|
|
978
978
|
if (e === "fit") {
|
|
979
|
-
|
|
979
|
+
s("update", { hero: void 0 });
|
|
980
980
|
return;
|
|
981
981
|
}
|
|
982
|
-
let n =
|
|
983
|
-
|
|
982
|
+
let n = M(o.section.backgroundImage), r = n === null ? Bn : Math.round(j() * n);
|
|
983
|
+
s("update", { hero: {
|
|
984
984
|
height: r,
|
|
985
985
|
verticalAlign: t
|
|
986
986
|
} });
|
|
987
987
|
}
|
|
988
|
-
async function
|
|
989
|
-
let e =
|
|
990
|
-
if (!e || !
|
|
991
|
-
let t = e.url, n = await
|
|
992
|
-
n && r && r.url === t &&
|
|
988
|
+
async function F() {
|
|
989
|
+
let e = o.section.backgroundImage;
|
|
990
|
+
if (!e || !x.value || C.value || M(e) !== null) return;
|
|
991
|
+
let t = e.url, n = await g(t), r = o.section.backgroundImage;
|
|
992
|
+
n && r && r.url === t && s("update", { backgroundImage: {
|
|
993
993
|
...r,
|
|
994
|
-
...
|
|
994
|
+
...L(n)
|
|
995
995
|
} });
|
|
996
996
|
}
|
|
997
997
|
function ee(e) {
|
|
998
|
-
!
|
|
999
|
-
...
|
|
998
|
+
!w.value || !Number.isFinite(e) || e < 1 || s("update", { hero: {
|
|
999
|
+
...w.value,
|
|
1000
1000
|
height: Math.round(e)
|
|
1001
1001
|
} });
|
|
1002
1002
|
}
|
|
1003
1003
|
function te(e) {
|
|
1004
|
-
|
|
1005
|
-
...
|
|
1004
|
+
w.value && s("update", { hero: {
|
|
1005
|
+
...w.value,
|
|
1006
1006
|
verticalAlign: e
|
|
1007
1007
|
} });
|
|
1008
1008
|
}
|
|
1009
|
-
return (e, n) => !T.value &&
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
options:
|
|
1009
|
+
return (e, n) => !T.value && w.value ? (_(), h("p", Pn, a(b(c).section.heroNeedsOneColumn), 1)) : T.value && (x.value || w.value) ? (_(), h("div", Fn, [
|
|
1010
|
+
y("div", In, [
|
|
1011
|
+
y("label", { class: t(b(U)) }, a(b(c).blockSettings.heroHeight), 3),
|
|
1012
|
+
f(Y, {
|
|
1013
|
+
options: O.value,
|
|
1014
1014
|
"model-value": E.value,
|
|
1015
|
-
"onUpdate:modelValue":
|
|
1015
|
+
"onUpdate:modelValue": P
|
|
1016
1016
|
}, null, 8, ["options", "model-value"]),
|
|
1017
|
-
|
|
1017
|
+
C.value ? (_(), h("p", Ln, a(b(c).blockSettings.heroMatchImageMergeTag), 1)) : A.value ? (_(), h("p", Rn, a(b(c).blockSettings.heroSizeUnknown), 1)) : m("", !0)
|
|
1018
1018
|
]),
|
|
1019
|
-
E.value === "fixed" ? (
|
|
1019
|
+
E.value === "fixed" ? (_(), S(X, {
|
|
1020
1020
|
key: 0,
|
|
1021
1021
|
"model-value": D.value,
|
|
1022
1022
|
min: 1,
|
|
1023
1023
|
suffix: "px",
|
|
1024
1024
|
testid: "section-hero-height-px",
|
|
1025
1025
|
"onUpdate:modelValue": ee
|
|
1026
|
-
}, null, 8, ["model-value"])) :
|
|
1027
|
-
|
|
1028
|
-
options:
|
|
1029
|
-
"model-value":
|
|
1026
|
+
}, null, 8, ["model-value"])) : m("", !0),
|
|
1027
|
+
w.value ? (_(), h("div", zn, [y("label", { class: t(b(U)) }, a(b(c).blockSettings.heroAlign), 3), f(Y, {
|
|
1028
|
+
options: k.value,
|
|
1029
|
+
"model-value": w.value.verticalAlign,
|
|
1030
1030
|
"onUpdate:modelValue": te
|
|
1031
|
-
}, null, 8, ["options", "model-value"])])) :
|
|
1032
|
-
])) :
|
|
1031
|
+
}, null, 8, ["options", "model-value"])])) : m("", !0)
|
|
1032
|
+
])) : m("", !0);
|
|
1033
1033
|
}
|
|
1034
1034
|
}), Hn = { class: "tpl:space-y-2" }, Un = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Wn = { class: "tpl:space-y-2" }, Gn = ["value"], Kn = { value: "" }, qn = ["label"], Jn = ["value"], Yn = ["value"], Xn = {
|
|
1035
1035
|
key: 0,
|
|
@@ -1043,75 +1043,75 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1043
1043
|
}, rr = { class: "tpl:space-y-1" }, ir = { class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]" }, ar = {
|
|
1044
1044
|
key: 0,
|
|
1045
1045
|
class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1046
|
-
}, or = /* @__PURE__ */
|
|
1046
|
+
}, or = /* @__PURE__ */ w({
|
|
1047
1047
|
__name: "CommonBlockSettings",
|
|
1048
1048
|
props: {
|
|
1049
1049
|
block: {},
|
|
1050
1050
|
isFirstSection: { type: Boolean }
|
|
1051
1051
|
},
|
|
1052
1052
|
emits: ["update"],
|
|
1053
|
-
setup(e, { emit:
|
|
1054
|
-
let
|
|
1053
|
+
setup(e, { emit: s }) {
|
|
1054
|
+
let d = e, v = s, { t: C } = B(), w = n(ke, []), D = n(Ae, !1), O = u(/* @__PURE__ */ new Set()), k = c(!1), A = c(""), j = c(""), M = [{
|
|
1055
1055
|
key: "desktop",
|
|
1056
|
-
icon:
|
|
1056
|
+
icon: We,
|
|
1057
1057
|
labelKey: "showOnDesktop"
|
|
1058
1058
|
}, {
|
|
1059
1059
|
key: "mobile",
|
|
1060
|
-
icon:
|
|
1060
|
+
icon: Ge,
|
|
1061
1061
|
labelKey: "showOnMobile"
|
|
1062
1062
|
}];
|
|
1063
1063
|
function N(e) {
|
|
1064
1064
|
O.has(e) ? O.delete(e) : O.add(e);
|
|
1065
1065
|
}
|
|
1066
|
-
let P =
|
|
1067
|
-
function ee() {
|
|
1068
|
-
k.value = !0, I.value && a.block.displayCondition ? (A.value = a.block.displayCondition.before, j.value = a.block.displayCondition.after ?? "") : (A.value = "", j.value = "");
|
|
1069
|
-
}
|
|
1066
|
+
let P = p(() => w.length > 0 || D), F = p(() => d.block.displayCondition ? !w.some((e) => e.label === d.block.displayCondition?.label) : !1);
|
|
1070
1067
|
function te() {
|
|
1071
|
-
A.value.
|
|
1072
|
-
|
|
1068
|
+
k.value = !0, F.value && d.block.displayCondition ? (A.value = d.block.displayCondition.before, j.value = d.block.displayCondition.after ?? "") : (A.value = "", j.value = "");
|
|
1069
|
+
}
|
|
1070
|
+
function ne() {
|
|
1071
|
+
A.value.trim() && (v("update", { displayCondition: {
|
|
1072
|
+
label: C.blockSettings.customCondition,
|
|
1073
1073
|
before: A.value.trim(),
|
|
1074
1074
|
after: j.value.trim()
|
|
1075
1075
|
} }), k.value = !1, A.value = "", j.value = "");
|
|
1076
1076
|
}
|
|
1077
|
-
|
|
1078
|
-
e ?
|
|
1077
|
+
T(() => d.block.displayCondition, (e) => {
|
|
1078
|
+
e ? F.value && (A.value = e.before, j.value = e.after ?? "") : (k.value = !1, A.value = "", j.value = "");
|
|
1079
1079
|
}, { immediate: !0 });
|
|
1080
|
-
let
|
|
1080
|
+
let re = p(() => {
|
|
1081
1081
|
let e = {};
|
|
1082
|
-
for (let t of
|
|
1082
|
+
for (let t of w) {
|
|
1083
1083
|
let n = t.group ?? "";
|
|
1084
1084
|
e[n] || (e[n] = []), e[n].push(t);
|
|
1085
1085
|
}
|
|
1086
1086
|
return e;
|
|
1087
|
-
}),
|
|
1088
|
-
function
|
|
1089
|
-
|
|
1090
|
-
...
|
|
1087
|
+
}), ie = p(() => d.block.type === "section" && ee(d.block)?.applied === !0);
|
|
1088
|
+
function ae(e, t) {
|
|
1089
|
+
v("update", { styles: {
|
|
1090
|
+
...d.block.styles,
|
|
1091
1091
|
[e]: t
|
|
1092
1092
|
} });
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1095
|
-
return
|
|
1094
|
+
function oe(e) {
|
|
1095
|
+
return d.block.visibility?.[e] !== !1;
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1097
|
+
function I(e) {
|
|
1098
1098
|
let t = {
|
|
1099
|
-
desktop:
|
|
1100
|
-
mobile:
|
|
1099
|
+
desktop: oe("desktop"),
|
|
1100
|
+
mobile: oe("mobile")
|
|
1101
1101
|
};
|
|
1102
|
-
t[e] = !t[e],
|
|
1102
|
+
t[e] = !t[e], v("update", { visibility: t });
|
|
1103
1103
|
}
|
|
1104
|
-
return (n,
|
|
1105
|
-
|
|
1106
|
-
title:
|
|
1104
|
+
return (n, s) => (_(), h("div", { class: t(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1105
|
+
f(Nn, {
|
|
1106
|
+
title: b(C).blockSettings.spacing,
|
|
1107
1107
|
open: O.has("spacing"),
|
|
1108
1108
|
"no-border": e.isFirstSection,
|
|
1109
|
-
onToggle:
|
|
1109
|
+
onToggle: s[1] ||= (e) => N("spacing")
|
|
1110
1110
|
}, {
|
|
1111
|
-
default:
|
|
1112
|
-
label:
|
|
1111
|
+
default: l(() => [f(yn, {
|
|
1112
|
+
label: b(C).blockSettings.padding,
|
|
1113
1113
|
"model-value": e.block.styles.padding,
|
|
1114
|
-
"onUpdate:modelValue":
|
|
1114
|
+
"onUpdate:modelValue": s[0] ||= (e) => ae("padding", e)
|
|
1115
1115
|
}, null, 8, ["label", "model-value"])]),
|
|
1116
1116
|
_: 1
|
|
1117
1117
|
}, 8, [
|
|
@@ -1119,52 +1119,52 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1119
1119
|
"open",
|
|
1120
1120
|
"no-border"
|
|
1121
1121
|
]),
|
|
1122
|
-
|
|
1123
|
-
title:
|
|
1122
|
+
f(Nn, {
|
|
1123
|
+
title: b(C).blockSettings.background,
|
|
1124
1124
|
open: O.has("bg"),
|
|
1125
1125
|
"header-test-id": "block-settings-background",
|
|
1126
|
-
onToggle:
|
|
1126
|
+
onToggle: s[5] ||= (e) => N("bg")
|
|
1127
1127
|
}, {
|
|
1128
|
-
default:
|
|
1129
|
-
|
|
1130
|
-
|
|
1128
|
+
default: l(() => [
|
|
1129
|
+
y("label", { class: t(b(U)) }, a(b(C).blockSettings.color), 3),
|
|
1130
|
+
f(V, {
|
|
1131
1131
|
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1132
1132
|
"allow-transparent": "",
|
|
1133
|
-
"onUpdate:modelValue":
|
|
1133
|
+
"onUpdate:modelValue": s[2] ||= (e) => ae("backgroundColor", e)
|
|
1134
1134
|
}, null, 8, ["model-value"]),
|
|
1135
|
-
e.block.type === "section" ? (
|
|
1135
|
+
e.block.type === "section" ? (_(), S(An, {
|
|
1136
1136
|
key: 0,
|
|
1137
1137
|
class: "tpl:mt-3.5",
|
|
1138
1138
|
"model-value": e.block.backgroundImage,
|
|
1139
1139
|
"testid-prefix": "section",
|
|
1140
1140
|
measure: "",
|
|
1141
|
-
"hero-mode":
|
|
1142
|
-
"onUpdate:modelValue":
|
|
1143
|
-
}, null, 8, ["model-value", "hero-mode"])) :
|
|
1144
|
-
e.block.type === "section" ? (
|
|
1141
|
+
"hero-mode": ie.value,
|
|
1142
|
+
"onUpdate:modelValue": s[3] ||= (e) => v("update", { backgroundImage: e })
|
|
1143
|
+
}, null, 8, ["model-value", "hero-mode"])) : m("", !0),
|
|
1144
|
+
e.block.type === "section" ? (_(), S(Vn, {
|
|
1145
1145
|
key: 1,
|
|
1146
1146
|
section: e.block,
|
|
1147
|
-
onUpdate:
|
|
1148
|
-
}, null, 8, ["section"])) :
|
|
1147
|
+
onUpdate: s[4] ||= (e) => v("update", e)
|
|
1148
|
+
}, null, 8, ["section"])) : m("", !0)
|
|
1149
1149
|
]),
|
|
1150
1150
|
_: 1
|
|
1151
1151
|
}, 8, ["title", "open"]),
|
|
1152
|
-
|
|
1153
|
-
title:
|
|
1152
|
+
f(Nn, {
|
|
1153
|
+
title: b(C).blockSettings.display,
|
|
1154
1154
|
open: O.has("display"),
|
|
1155
|
-
onToggle:
|
|
1155
|
+
onToggle: s[6] ||= (e) => N("display")
|
|
1156
1156
|
}, {
|
|
1157
|
-
default:
|
|
1157
|
+
default: l(() => [y("div", Hn, [(_(), h(x, null, o(M, (e) => f(q, {
|
|
1158
1158
|
key: e.key,
|
|
1159
1159
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1160
|
-
"model-value":
|
|
1161
|
-
label:
|
|
1162
|
-
"onUpdate:modelValue": (t) =>
|
|
1160
|
+
"model-value": oe(e.key),
|
|
1161
|
+
label: b(C).blockSettings[e.labelKey],
|
|
1162
|
+
"onUpdate:modelValue": (t) => I(e.key)
|
|
1163
1163
|
}, {
|
|
1164
|
-
default:
|
|
1164
|
+
default: l(() => [y("span", Un, [(_(), S(i(e.icon), {
|
|
1165
1165
|
size: 14,
|
|
1166
1166
|
"stroke-width": 1.5
|
|
1167
|
-
})),
|
|
1167
|
+
})), g(" " + a(b(C).blockSettings[e.labelKey]), 1)])]),
|
|
1168
1168
|
_: 2
|
|
1169
1169
|
}, 1032, [
|
|
1170
1170
|
"model-value",
|
|
@@ -1173,66 +1173,66 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1173
1173
|
])), 64))])]),
|
|
1174
1174
|
_: 1
|
|
1175
1175
|
}, 8, ["title", "open"]),
|
|
1176
|
-
P.value ? (
|
|
1176
|
+
P.value ? (_(), S(Nn, {
|
|
1177
1177
|
key: 0,
|
|
1178
1178
|
"header-test-id": "display-condition-section",
|
|
1179
|
-
title:
|
|
1179
|
+
title: b(C).blockSettings.displayCondition,
|
|
1180
1180
|
open: O.has("condition"),
|
|
1181
|
-
onToggle:
|
|
1181
|
+
onToggle: s[10] ||= (e) => N("condition")
|
|
1182
1182
|
}, {
|
|
1183
|
-
default:
|
|
1183
|
+
default: l(() => [y("div", Wn, [y("select", {
|
|
1184
1184
|
"data-testid": "display-condition-select",
|
|
1185
|
-
class:
|
|
1186
|
-
value: k.value ||
|
|
1187
|
-
onChange:
|
|
1185
|
+
class: t(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", e.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
|
|
1186
|
+
value: k.value || F.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1187
|
+
onChange: s[7] ||= (e) => {
|
|
1188
1188
|
let t = e.target.value;
|
|
1189
1189
|
if (t === "__custom__") {
|
|
1190
|
-
|
|
1190
|
+
te();
|
|
1191
1191
|
return;
|
|
1192
1192
|
}
|
|
1193
1193
|
if (k.value = !1, !t) {
|
|
1194
|
-
|
|
1194
|
+
v("update", { displayCondition: void 0 });
|
|
1195
1195
|
return;
|
|
1196
1196
|
}
|
|
1197
|
-
let n =
|
|
1198
|
-
n &&
|
|
1197
|
+
let n = b(w).find((e) => e.label === t);
|
|
1198
|
+
n && v("update", { displayCondition: n });
|
|
1199
1199
|
}
|
|
1200
1200
|
}, [
|
|
1201
|
-
|
|
1202
|
-
(
|
|
1201
|
+
y("option", Kn, a(b(C).blockSettings.noCondition), 1),
|
|
1202
|
+
(_(!0), h(x, null, o(re.value, (e, t) => (_(), h(x, { key: t }, [t ? (_(), h("optgroup", {
|
|
1203
1203
|
key: 0,
|
|
1204
|
-
label: String(
|
|
1205
|
-
}, [(
|
|
1204
|
+
label: String(t)
|
|
1205
|
+
}, [(_(!0), h(x, null, o(e, (e) => (_(), h("option", {
|
|
1206
1206
|
key: e.label,
|
|
1207
1207
|
value: e.label
|
|
1208
|
-
},
|
|
1208
|
+
}, a(e.label), 9, Jn))), 128))], 8, qn)) : (_(!0), h(x, { key: 1 }, o(e, (e) => (_(), h("option", {
|
|
1209
1209
|
key: e.label,
|
|
1210
1210
|
value: e.label
|
|
1211
|
-
},
|
|
1212
|
-
|
|
1213
|
-
], 42, Gn), k.value ||
|
|
1214
|
-
|
|
1215
|
-
"onUpdate:modelValue":
|
|
1211
|
+
}, a(e.label), 9, Yn))), 128))], 64))), 128)),
|
|
1212
|
+
b(D) ? (_(), h("option", Xn, a(b(C).blockSettings.customCondition), 1)) : m("", !0)
|
|
1213
|
+
], 42, Gn), k.value || F.value ? (_(), h("div", Zn, [
|
|
1214
|
+
y("div", null, [y("label", Qn, a(b(C).blockSettings.customConditionBefore), 1), r(y("textarea", {
|
|
1215
|
+
"onUpdate:modelValue": s[8] ||= (e) => A.value = e,
|
|
1216
1216
|
rows: "2",
|
|
1217
|
-
class: b(
|
|
1217
|
+
class: t(b($e))
|
|
1218
1218
|
}, null, 2), [[E, A.value]])]),
|
|
1219
|
-
|
|
1220
|
-
"onUpdate:modelValue":
|
|
1219
|
+
y("div", null, [y("label", $n, a(b(C).blockSettings.customConditionAfter), 1), r(y("textarea", {
|
|
1220
|
+
"onUpdate:modelValue": s[9] ||= (e) => j.value = e,
|
|
1221
1221
|
rows: "2",
|
|
1222
|
-
class: b(
|
|
1222
|
+
class: t(b($e))
|
|
1223
1223
|
}, null, 2), [[E, j.value]])]),
|
|
1224
|
-
|
|
1224
|
+
y("div", er, [y("button", {
|
|
1225
1225
|
type: "button",
|
|
1226
|
-
class: b(
|
|
1226
|
+
class: t(b(rt)),
|
|
1227
1227
|
disabled: !A.value.trim(),
|
|
1228
|
-
onClick:
|
|
1229
|
-
},
|
|
1230
|
-
])) : e.block.displayCondition && !
|
|
1228
|
+
onClick: ne
|
|
1229
|
+
}, a(b(C).blockSettings.applyCondition), 11, tr)])
|
|
1230
|
+
])) : e.block.displayCondition && !F.value ? (_(), h(x, { key: 1 }, [e.block.displayCondition.description ? (_(), h("p", nr, a(e.block.displayCondition.description), 1)) : m("", !0), y("div", rr, [y("pre", ir, a(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (_(), h("pre", ar, a(e.block.displayCondition.after), 1)) : m("", !0)])], 64)) : m("", !0)])]),
|
|
1231
1231
|
_: 1
|
|
1232
|
-
}, 8, ["title", "open"])) :
|
|
1232
|
+
}, 8, ["title", "open"])) : m("", !0)
|
|
1233
1233
|
], 2));
|
|
1234
1234
|
}
|
|
1235
|
-
}), sr = ["title"], cr = /* @__PURE__ */
|
|
1235
|
+
}), sr = ["title"], cr = /* @__PURE__ */ w({
|
|
1236
1236
|
__name: "BooleanField",
|
|
1237
1237
|
props: {
|
|
1238
1238
|
field: {},
|
|
@@ -1240,24 +1240,24 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1240
1240
|
readOnly: { type: Boolean }
|
|
1241
1241
|
},
|
|
1242
1242
|
emits: ["update:modelValue"],
|
|
1243
|
-
setup(e, { emit:
|
|
1244
|
-
let
|
|
1245
|
-
return (
|
|
1243
|
+
setup(e, { emit: t }) {
|
|
1244
|
+
let n = t, { t: r } = B();
|
|
1245
|
+
return (t, i) => (_(), h("div", {
|
|
1246
1246
|
class: "tpl:mb-3.5",
|
|
1247
|
-
title: e.readOnly ?
|
|
1248
|
-
}, [
|
|
1247
|
+
title: e.readOnly ? b(r).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1248
|
+
}, [f(q, {
|
|
1249
1249
|
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
1250
1250
|
"model-value": e.modelValue,
|
|
1251
1251
|
label: e.field.label,
|
|
1252
1252
|
required: e.field.required,
|
|
1253
1253
|
disabled: e.readOnly,
|
|
1254
|
-
"onUpdate:modelValue":
|
|
1254
|
+
"onUpdate:modelValue": i[0] ||= (e) => n("update:modelValue", e)
|
|
1255
1255
|
}, {
|
|
1256
|
-
default:
|
|
1256
|
+
default: l(() => [g(a(e.field.label) + " ", 1), e.readOnly ? (_(), S(b(ct), {
|
|
1257
1257
|
key: 0,
|
|
1258
1258
|
size: 12,
|
|
1259
1259
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
1260
|
-
})) :
|
|
1260
|
+
})) : m("", !0)]),
|
|
1261
1261
|
_: 1
|
|
1262
1262
|
}, 8, [
|
|
1263
1263
|
"model-value",
|
|
@@ -1266,7 +1266,7 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1266
1266
|
"disabled"
|
|
1267
1267
|
])], 8, sr));
|
|
1268
1268
|
}
|
|
1269
|
-
}), lr = { class: "tpl:mb-3.5" }, ur = ["title"], dr = { class: "tpl-sr-only" }, fr = ["title"], pr = { class: "tpl-sr-only" }, Q = /* @__PURE__ */
|
|
1269
|
+
}), lr = { class: "tpl:mb-3.5" }, ur = ["title"], dr = { class: "tpl-sr-only" }, fr = ["title"], pr = { class: "tpl-sr-only" }, Q = /* @__PURE__ */ w({
|
|
1270
1270
|
__name: "FieldWrapper",
|
|
1271
1271
|
props: {
|
|
1272
1272
|
label: {},
|
|
@@ -1275,24 +1275,24 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1275
1275
|
},
|
|
1276
1276
|
setup(e) {
|
|
1277
1277
|
let { t: n } = B();
|
|
1278
|
-
return (r, i) => (
|
|
1279
|
-
|
|
1280
|
-
e.readOnly ? (
|
|
1278
|
+
return (r, i) => (_(), h("div", lr, [y("label", { class: t(b(U)) }, [
|
|
1279
|
+
g(a(e.label) + " ", 1),
|
|
1280
|
+
e.readOnly ? (_(), h("span", {
|
|
1281
1281
|
key: 0,
|
|
1282
|
-
title:
|
|
1283
|
-
}, [
|
|
1282
|
+
title: b(n).customBlocks.dataSource.readOnlyTooltip
|
|
1283
|
+
}, [f(b(ct), {
|
|
1284
1284
|
size: 12,
|
|
1285
1285
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1286
1286
|
"aria-hidden": "true"
|
|
1287
|
-
}),
|
|
1288
|
-
e.required ? (
|
|
1287
|
+
}), y("span", dr, a(b(n).customBlocks.dataSource.readOnlyTooltip), 1)], 8, ur)) : m("", !0),
|
|
1288
|
+
e.required ? (_(), h("span", {
|
|
1289
1289
|
key: 1,
|
|
1290
1290
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
1291
|
-
title:
|
|
1292
|
-
}, [i[0] ||=
|
|
1291
|
+
title: b(n).customBlocks.fields.required
|
|
1292
|
+
}, [i[0] ||= y("span", { "aria-hidden": "true" }, "*", -1), y("span", pr, a(b(n).customBlocks.fields.required), 1)], 8, fr)) : m("", !0)
|
|
1293
1293
|
], 2), s(r.$slots, "default")]));
|
|
1294
1294
|
}
|
|
1295
|
-
}), mr = /* @__PURE__ */
|
|
1295
|
+
}), mr = /* @__PURE__ */ w({
|
|
1296
1296
|
__name: "ColorField",
|
|
1297
1297
|
props: {
|
|
1298
1298
|
field: {},
|
|
@@ -1300,21 +1300,21 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1300
1300
|
readOnly: { type: Boolean }
|
|
1301
1301
|
},
|
|
1302
1302
|
emits: ["update:modelValue"],
|
|
1303
|
-
setup(e, { emit:
|
|
1304
|
-
let
|
|
1305
|
-
return (
|
|
1303
|
+
setup(e, { emit: t }) {
|
|
1304
|
+
let r = e, i = t, { t: a } = B(), o = n(De, Pe), s = p(() => be(r.field, o));
|
|
1305
|
+
return (t, n) => (_(), S(Q, {
|
|
1306
1306
|
label: e.field.label,
|
|
1307
1307
|
required: e.field.required,
|
|
1308
1308
|
"read-only": e.readOnly
|
|
1309
1309
|
}, {
|
|
1310
|
-
default:
|
|
1310
|
+
default: l(() => [f(V, {
|
|
1311
1311
|
"model-value": e.modelValue,
|
|
1312
1312
|
placeholder: e.field.placeholder,
|
|
1313
1313
|
disabled: e.readOnly,
|
|
1314
|
-
presets:
|
|
1315
|
-
"allow-custom":
|
|
1316
|
-
title: e.readOnly ?
|
|
1317
|
-
"onUpdate:modelValue":
|
|
1314
|
+
presets: s.value.presets,
|
|
1315
|
+
"allow-custom": s.value.allowCustom,
|
|
1316
|
+
title: e.readOnly ? b(a).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1317
|
+
"onUpdate:modelValue": n[0] ||= (e) => i("update:modelValue", e)
|
|
1318
1318
|
}, null, 8, [
|
|
1319
1319
|
"model-value",
|
|
1320
1320
|
"placeholder",
|
|
@@ -1334,7 +1334,7 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1334
1334
|
"value",
|
|
1335
1335
|
"placeholder",
|
|
1336
1336
|
"title"
|
|
1337
|
-
], gr = ["value", "placeholder"], _r = /* @__PURE__ */
|
|
1337
|
+
], gr = ["value", "placeholder"], _r = /* @__PURE__ */ w({
|
|
1338
1338
|
__name: "ImageField",
|
|
1339
1339
|
props: {
|
|
1340
1340
|
field: {},
|
|
@@ -1343,49 +1343,49 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1343
1343
|
},
|
|
1344
1344
|
emits: ["update:modelValue"],
|
|
1345
1345
|
setup(e, { emit: n }) {
|
|
1346
|
-
let
|
|
1346
|
+
let r = e, i = n, { t: o } = B(), s = c(), { canBrowse: u, isUploading: d, showOverlay: p, openMediaBrowser: v } = _e({
|
|
1347
1347
|
target: s,
|
|
1348
|
-
blocked: () => !!
|
|
1349
|
-
apply: (e) =>
|
|
1348
|
+
blocked: () => !!r.readOnly,
|
|
1349
|
+
apply: (e) => i("update:modelValue", e.url)
|
|
1350
1350
|
});
|
|
1351
|
-
return (n,
|
|
1351
|
+
return (n, r) => (_(), S(Q, {
|
|
1352
1352
|
label: e.field.label,
|
|
1353
1353
|
required: e.field.required,
|
|
1354
1354
|
"read-only": e.readOnly
|
|
1355
1355
|
}, {
|
|
1356
|
-
default:
|
|
1356
|
+
default: l(() => [y("div", {
|
|
1357
1357
|
ref_key: "dropZoneRef",
|
|
1358
1358
|
ref: s,
|
|
1359
1359
|
class: "tpl:relative"
|
|
1360
1360
|
}, [
|
|
1361
|
-
|
|
1361
|
+
b(p) ? (_(), S(fe, {
|
|
1362
1362
|
key: 0,
|
|
1363
|
-
uploading:
|
|
1364
|
-
}, null, 8, ["uploading"])) :
|
|
1365
|
-
e.readOnly ? (
|
|
1363
|
+
uploading: b(d)
|
|
1364
|
+
}, null, 8, ["uploading"])) : m("", !0),
|
|
1365
|
+
e.readOnly ? (_(), h("input", {
|
|
1366
1366
|
key: 1,
|
|
1367
1367
|
type: "url",
|
|
1368
|
-
class:
|
|
1368
|
+
class: t([b(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1369
1369
|
value: e.modelValue,
|
|
1370
1370
|
placeholder: e.field.placeholder || "https://...",
|
|
1371
1371
|
disabled: "",
|
|
1372
|
-
title:
|
|
1373
|
-
}, null, 10, hr)) : (
|
|
1372
|
+
title: b(o).customBlocks.dataSource.readOnlyTooltip
|
|
1373
|
+
}, null, 10, hr)) : (_(), h("input", {
|
|
1374
1374
|
key: 2,
|
|
1375
1375
|
type: "url",
|
|
1376
|
-
class: b(
|
|
1376
|
+
class: t(b(K)),
|
|
1377
1377
|
value: e.modelValue,
|
|
1378
1378
|
placeholder: e.field.placeholder || "https://...",
|
|
1379
|
-
onInput:
|
|
1379
|
+
onInput: r[0] ||= (e) => i("update:modelValue", e.target.value)
|
|
1380
1380
|
}, null, 42, gr)),
|
|
1381
|
-
|
|
1381
|
+
b(u) && !e.readOnly ? (_(), h("button", {
|
|
1382
1382
|
key: 3,
|
|
1383
1383
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
1384
|
-
onClick:
|
|
1385
|
-
}, [
|
|
1384
|
+
onClick: r[1] ||= (e) => b(v)()
|
|
1385
|
+
}, [f(b(Ve), {
|
|
1386
1386
|
size: 14,
|
|
1387
1387
|
"stroke-width": 1.5
|
|
1388
|
-
}),
|
|
1388
|
+
}), g(" " + a(b(o).image.browseMedia), 1)])) : m("", !0)
|
|
1389
1389
|
], 512)]),
|
|
1390
1390
|
_: 1
|
|
1391
1391
|
}, 8, [
|
|
@@ -1402,7 +1402,7 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1402
1402
|
"step",
|
|
1403
1403
|
"disabled",
|
|
1404
1404
|
"title"
|
|
1405
|
-
], yr = /* @__PURE__ */
|
|
1405
|
+
], yr = /* @__PURE__ */ w({
|
|
1406
1406
|
__name: "NumberField",
|
|
1407
1407
|
props: {
|
|
1408
1408
|
field: {},
|
|
@@ -1411,23 +1411,23 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1411
1411
|
},
|
|
1412
1412
|
emits: ["update:modelValue"],
|
|
1413
1413
|
setup(e, { emit: n }) {
|
|
1414
|
-
let
|
|
1415
|
-
return (n,
|
|
1414
|
+
let r = n, { t: i } = B();
|
|
1415
|
+
return (n, a) => (_(), S(Q, {
|
|
1416
1416
|
label: e.field.label,
|
|
1417
1417
|
required: e.field.required,
|
|
1418
1418
|
"read-only": e.readOnly
|
|
1419
1419
|
}, {
|
|
1420
|
-
default:
|
|
1420
|
+
default: l(() => [y("input", {
|
|
1421
1421
|
type: "number",
|
|
1422
|
-
class:
|
|
1422
|
+
class: t([b(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1423
1423
|
value: e.modelValue,
|
|
1424
1424
|
placeholder: e.field.placeholder,
|
|
1425
1425
|
min: e.field.min,
|
|
1426
1426
|
max: e.field.max,
|
|
1427
1427
|
step: e.field.step,
|
|
1428
1428
|
disabled: e.readOnly,
|
|
1429
|
-
title: e.readOnly ?
|
|
1430
|
-
onInput:
|
|
1429
|
+
title: e.readOnly ? b(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1430
|
+
onInput: a[0] ||= (t) => !e.readOnly && r("update:modelValue", Number(t.target.value))
|
|
1431
1431
|
}, null, 42, vr)]),
|
|
1432
1432
|
_: 1
|
|
1433
1433
|
}, 8, [
|
|
@@ -1442,7 +1442,7 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1442
1442
|
}, Tr = {
|
|
1443
1443
|
key: 2,
|
|
1444
1444
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1445
|
-
}, Er = /* @__PURE__ */
|
|
1445
|
+
}, Er = /* @__PURE__ */ w({
|
|
1446
1446
|
__name: "RepeatableField",
|
|
1447
1447
|
props: {
|
|
1448
1448
|
field: {},
|
|
@@ -1451,66 +1451,66 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1451
1451
|
},
|
|
1452
1452
|
emits: ["update:modelValue"],
|
|
1453
1453
|
setup(e, { emit: n }) {
|
|
1454
|
-
let
|
|
1455
|
-
function
|
|
1456
|
-
if (!
|
|
1454
|
+
let r = e, s = n, { t: c, format: u } = B(), d = p(() => r.modelValue || []), v = p(() => !r.field.maxItems || d.value.length < r.field.maxItems), C = p(() => !r.field.minItems || d.value.length > r.field.minItems);
|
|
1455
|
+
function w() {
|
|
1456
|
+
if (!v.value || r.readOnly) return;
|
|
1457
1457
|
let e = {};
|
|
1458
|
-
for (let t of
|
|
1459
|
-
s("update:modelValue", [...
|
|
1458
|
+
for (let t of r.field.fields) e[t.key] = t.default ?? "";
|
|
1459
|
+
s("update:modelValue", [...d.value, e]);
|
|
1460
1460
|
}
|
|
1461
1461
|
function T(e) {
|
|
1462
|
-
if (!
|
|
1463
|
-
let t = [...
|
|
1462
|
+
if (!C.value || r.readOnly) return;
|
|
1463
|
+
let t = [...d.value];
|
|
1464
1464
|
t.splice(e, 1), s("update:modelValue", t);
|
|
1465
1465
|
}
|
|
1466
1466
|
function E(e, t, n) {
|
|
1467
|
-
let r =
|
|
1467
|
+
let r = d.value.map((r, i) => i === e ? {
|
|
1468
1468
|
...r,
|
|
1469
1469
|
[t]: n
|
|
1470
1470
|
} : r);
|
|
1471
1471
|
s("update:modelValue", r);
|
|
1472
1472
|
}
|
|
1473
|
-
return (n,
|
|
1473
|
+
return (n, r) => (_(), S(Q, {
|
|
1474
1474
|
label: e.field.label,
|
|
1475
1475
|
required: e.field.required,
|
|
1476
1476
|
"read-only": e.readOnly
|
|
1477
1477
|
}, {
|
|
1478
|
-
default:
|
|
1479
|
-
(
|
|
1480
|
-
key: `${e.field.key}-${
|
|
1478
|
+
default: l(() => [y("div", br, [
|
|
1479
|
+
(_(!0), h(x, null, o(d.value, (t, n) => (_(), h("div", {
|
|
1480
|
+
key: `${e.field.key}-${n}`,
|
|
1481
1481
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1482
|
-
}, [
|
|
1482
|
+
}, [y("div", xr, [y("span", Sr, " #" + a(n + 1), 1), C.value && !e.readOnly ? (_(), h("button", {
|
|
1483
1483
|
key: 0,
|
|
1484
1484
|
type: "button",
|
|
1485
1485
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
1486
|
-
title:
|
|
1487
|
-
onClick: (e) => T(
|
|
1488
|
-
}, [
|
|
1486
|
+
title: b(c).customBlocks.fields.removeItem,
|
|
1487
|
+
onClick: (e) => T(n)
|
|
1488
|
+
}, [f(b(Xe), {
|
|
1489
1489
|
size: 12,
|
|
1490
1490
|
"stroke-width": 2
|
|
1491
|
-
})], 8, Cr)) :
|
|
1492
|
-
key:
|
|
1493
|
-
field:
|
|
1494
|
-
"model-value":
|
|
1491
|
+
})], 8, Cr)) : m("", !0)]), (_(!0), h(x, null, o(e.field.fields, (r) => (_(), S(i(b(Fr)(r.type)), {
|
|
1492
|
+
key: r.key,
|
|
1493
|
+
field: r,
|
|
1494
|
+
"model-value": t[r.key],
|
|
1495
1495
|
"read-only": e.readOnly,
|
|
1496
|
-
"onUpdate:modelValue": (e) => E(
|
|
1496
|
+
"onUpdate:modelValue": (e) => E(n, r.key, e)
|
|
1497
1497
|
}, null, 8, [
|
|
1498
1498
|
"field",
|
|
1499
1499
|
"model-value",
|
|
1500
1500
|
"read-only",
|
|
1501
1501
|
"onUpdate:modelValue"
|
|
1502
1502
|
]))), 128))]))), 128)),
|
|
1503
|
-
|
|
1503
|
+
v.value && !e.readOnly ? (_(), h("button", {
|
|
1504
1504
|
key: 0,
|
|
1505
1505
|
type: "button",
|
|
1506
|
-
class: b(
|
|
1507
|
-
onClick:
|
|
1508
|
-
}, [
|
|
1506
|
+
class: t(b(tt)),
|
|
1507
|
+
onClick: w
|
|
1508
|
+
}, [f(b(H), {
|
|
1509
1509
|
size: 14,
|
|
1510
1510
|
"stroke-width": 2
|
|
1511
|
-
}),
|
|
1512
|
-
!
|
|
1513
|
-
!
|
|
1511
|
+
}), g(" " + a(b(c).customBlocks.fields.addItem), 1)], 2)) : m("", !0),
|
|
1512
|
+
!v.value && !e.readOnly ? (_(), h("p", wr, a(b(c).customBlocks.fields.maxItemsReached), 1)) : m("", !0),
|
|
1513
|
+
!C.value && !e.readOnly ? (_(), h("p", Tr, a(b(u)(b(c).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : m("", !0)
|
|
1514
1514
|
])]),
|
|
1515
1515
|
_: 1
|
|
1516
1516
|
}, 8, [
|
|
@@ -1523,7 +1523,7 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1523
1523
|
"value",
|
|
1524
1524
|
"disabled",
|
|
1525
1525
|
"title"
|
|
1526
|
-
], Or = ["value"], kr = /* @__PURE__ */
|
|
1526
|
+
], Or = ["value"], kr = /* @__PURE__ */ w({
|
|
1527
1527
|
__name: "SelectField",
|
|
1528
1528
|
props: {
|
|
1529
1529
|
field: {},
|
|
@@ -1532,22 +1532,22 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1532
1532
|
},
|
|
1533
1533
|
emits: ["update:modelValue"],
|
|
1534
1534
|
setup(e, { emit: n }) {
|
|
1535
|
-
let
|
|
1536
|
-
return (n, s) => (
|
|
1535
|
+
let r = n, { t: i } = B();
|
|
1536
|
+
return (n, s) => (_(), S(Q, {
|
|
1537
1537
|
label: e.field.label,
|
|
1538
1538
|
required: e.field.required,
|
|
1539
1539
|
"read-only": e.readOnly
|
|
1540
1540
|
}, {
|
|
1541
|
-
default:
|
|
1542
|
-
class:
|
|
1541
|
+
default: l(() => [y("select", {
|
|
1542
|
+
class: t([b(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1543
1543
|
value: e.modelValue,
|
|
1544
1544
|
disabled: e.readOnly,
|
|
1545
|
-
title: e.readOnly ?
|
|
1546
|
-
onChange: s[0] ||= (t) => !e.readOnly &&
|
|
1547
|
-
}, [(
|
|
1545
|
+
title: e.readOnly ? b(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1546
|
+
onChange: s[0] ||= (t) => !e.readOnly && r("update:modelValue", t.target.value)
|
|
1547
|
+
}, [(_(!0), h(x, null, o(e.field.options, (e) => (_(), h("option", {
|
|
1548
1548
|
key: e.value,
|
|
1549
1549
|
value: e.value
|
|
1550
|
-
},
|
|
1550
|
+
}, a(e.label), 9, Or))), 128))], 42, Dr)]),
|
|
1551
1551
|
_: 1
|
|
1552
1552
|
}, 8, [
|
|
1553
1553
|
"label",
|
|
@@ -1559,7 +1559,7 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1559
1559
|
"value",
|
|
1560
1560
|
"placeholder",
|
|
1561
1561
|
"title"
|
|
1562
|
-
], jr = /* @__PURE__ */
|
|
1562
|
+
], jr = /* @__PURE__ */ w({
|
|
1563
1563
|
__name: "TextField",
|
|
1564
1564
|
props: {
|
|
1565
1565
|
field: {},
|
|
@@ -1568,25 +1568,25 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1568
1568
|
},
|
|
1569
1569
|
emits: ["update:modelValue"],
|
|
1570
1570
|
setup(e, { emit: n }) {
|
|
1571
|
-
let
|
|
1572
|
-
return (n,
|
|
1571
|
+
let r = n, { t: i } = B();
|
|
1572
|
+
return (n, a) => (_(), S(Q, {
|
|
1573
1573
|
label: e.field.label,
|
|
1574
1574
|
required: e.field.required,
|
|
1575
1575
|
"read-only": e.readOnly
|
|
1576
1576
|
}, {
|
|
1577
|
-
default:
|
|
1577
|
+
default: l(() => [e.readOnly ? (_(), h("input", {
|
|
1578
1578
|
key: 0,
|
|
1579
1579
|
type: "text",
|
|
1580
|
-
class:
|
|
1580
|
+
class: t([b(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1581
1581
|
value: e.modelValue,
|
|
1582
1582
|
placeholder: e.field.placeholder,
|
|
1583
1583
|
disabled: "",
|
|
1584
|
-
title:
|
|
1585
|
-
}, null, 10, Ar)) : (
|
|
1584
|
+
title: b(i).customBlocks.dataSource.readOnlyTooltip
|
|
1585
|
+
}, null, 10, Ar)) : (_(), S(J, {
|
|
1586
1586
|
key: 1,
|
|
1587
1587
|
"model-value": e.modelValue,
|
|
1588
1588
|
placeholder: e.field.placeholder,
|
|
1589
|
-
"onUpdate:modelValue":
|
|
1589
|
+
"onUpdate:modelValue": a[0] ||= (e) => r("update:modelValue", e)
|
|
1590
1590
|
}, null, 8, ["model-value", "placeholder"]))]),
|
|
1591
1591
|
_: 1
|
|
1592
1592
|
}, 8, [
|
|
@@ -1601,7 +1601,7 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1601
1601
|
"title"
|
|
1602
1602
|
], Nr = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:opacity-60 tpl:cursor-not-allowed", Pr = {
|
|
1603
1603
|
text: jr,
|
|
1604
|
-
textarea: /* @__PURE__ */
|
|
1604
|
+
textarea: /* @__PURE__ */ w({
|
|
1605
1605
|
__name: "TextareaField",
|
|
1606
1606
|
props: {
|
|
1607
1607
|
field: {},
|
|
@@ -1610,25 +1610,25 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1610
1610
|
},
|
|
1611
1611
|
emits: ["update:modelValue"],
|
|
1612
1612
|
setup(e, { emit: n }) {
|
|
1613
|
-
let
|
|
1614
|
-
return (n,
|
|
1613
|
+
let r = n, { t: i } = B();
|
|
1614
|
+
return (n, a) => (_(), S(Q, {
|
|
1615
1615
|
label: e.field.label,
|
|
1616
1616
|
required: e.field.required,
|
|
1617
1617
|
"read-only": e.readOnly
|
|
1618
1618
|
}, {
|
|
1619
|
-
default:
|
|
1619
|
+
default: l(() => [e.readOnly ? (_(), h("textarea", {
|
|
1620
1620
|
key: 0,
|
|
1621
1621
|
value: e.modelValue,
|
|
1622
1622
|
placeholder: e.field.placeholder,
|
|
1623
1623
|
rows: "3",
|
|
1624
1624
|
disabled: "",
|
|
1625
|
-
title:
|
|
1626
|
-
class:
|
|
1627
|
-
}, null, 8, Mr)) : (
|
|
1625
|
+
title: b(i).customBlocks.dataSource.readOnlyTooltip,
|
|
1626
|
+
class: t(Nr)
|
|
1627
|
+
}, null, 8, Mr)) : (_(), S(it, {
|
|
1628
1628
|
key: 1,
|
|
1629
1629
|
"model-value": e.modelValue,
|
|
1630
1630
|
placeholder: e.field.placeholder,
|
|
1631
|
-
"onUpdate:modelValue":
|
|
1631
|
+
"onUpdate:modelValue": a[0] ||= (e) => r("update:modelValue", e)
|
|
1632
1632
|
}, null, 8, ["model-value", "placeholder"]))]),
|
|
1633
1633
|
_: 1
|
|
1634
1634
|
}, 8, [
|
|
@@ -1668,142 +1668,142 @@ var Ir = {
|
|
|
1668
1668
|
}, Ur = {
|
|
1669
1669
|
key: 2,
|
|
1670
1670
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
1671
|
-
}, Wr = /* @__PURE__ */
|
|
1671
|
+
}, Wr = /* @__PURE__ */ w({
|
|
1672
1672
|
__name: "CustomBlockToolbar",
|
|
1673
1673
|
props: { block: {} },
|
|
1674
1674
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1675
|
-
setup(e, { emit:
|
|
1676
|
-
let r = e,
|
|
1675
|
+
setup(e, { emit: t }) {
|
|
1676
|
+
let r = e, s = 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
1677
|
definition: u,
|
|
1678
1678
|
block: d,
|
|
1679
1679
|
onUpdate: (e, t) => {
|
|
1680
|
-
|
|
1680
|
+
s("updateFieldValues", e), s("updateDataSourceFetched", t);
|
|
1681
1681
|
}
|
|
1682
1682
|
});
|
|
1683
1683
|
function D(e) {
|
|
1684
1684
|
return e.readOnly === !0 && T.value && !!r.block.dataSourceFetched;
|
|
1685
1685
|
}
|
|
1686
1686
|
function O(e, t) {
|
|
1687
|
-
|
|
1687
|
+
s("updateFieldValues", {
|
|
1688
1688
|
...r.block.fieldValues,
|
|
1689
1689
|
[e]: t
|
|
1690
1690
|
});
|
|
1691
1691
|
}
|
|
1692
|
-
return (
|
|
1693
|
-
u.value.description ? (
|
|
1694
|
-
|
|
1692
|
+
return (t, n) => u.value ? (_(), h("div", Rr, [
|
|
1693
|
+
u.value.description ? (_(), h("p", zr, a(u.value.description), 1)) : m("", !0),
|
|
1694
|
+
b(T) ? (_(), h("div", Br, [b(E) && !b(v) ? (_(), h("button", {
|
|
1695
1695
|
key: 0,
|
|
1696
1696
|
type: "button",
|
|
1697
1697
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded-md tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-on-primary)] tpl:transition-all tpl:bg-[var(--tpl-primary)]",
|
|
1698
|
-
onClick:
|
|
1699
|
-
},
|
|
1698
|
+
onClick: n[0] ||= (...e) => b(w) && b(w)(...e)
|
|
1699
|
+
}, a(u.value?.dataSource?.label || b(c).customBlocks.dataSource.fetchButton), 1)) : (_(), h("div", Vr, [b(v) ? (_(), h("div", Hr, a(b(c).customBlocks.dataSource.fetching), 1)) : (_(), h("button", {
|
|
1700
1700
|
key: 1,
|
|
1701
1701
|
type: "button",
|
|
1702
1702
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]",
|
|
1703
|
-
onClick:
|
|
1704
|
-
}, [
|
|
1703
|
+
onClick: n[1] ||= (...e) => b(w) && b(w)(...e)
|
|
1704
|
+
}, [f(b(Ke), { size: 12 }), g(" " + a(b(c).customBlocks.dataSource.changeButton), 1)]))])), b(C) ? (_(), h("p", Ur, [f(b(Le), {
|
|
1705
1705
|
size: 14,
|
|
1706
1706
|
class: "tpl:shrink-0"
|
|
1707
|
-
}),
|
|
1708
|
-
(
|
|
1709
|
-
key:
|
|
1710
|
-
field:
|
|
1711
|
-
"model-value": e.block.fieldValues[
|
|
1712
|
-
"read-only": D(
|
|
1713
|
-
"onUpdate:modelValue": (e) => O(
|
|
1707
|
+
}), g(" " + a(b(c).customBlocks.dataSource.fetchError), 1)])) : m("", !0)])) : m("", !0),
|
|
1708
|
+
(_(!0), h(x, null, o(u.value.fields, (t) => (_(), S(i(b(Fr)(t.type)), {
|
|
1709
|
+
key: t.key,
|
|
1710
|
+
field: t,
|
|
1711
|
+
"model-value": e.block.fieldValues[t.key],
|
|
1712
|
+
"read-only": D(t),
|
|
1713
|
+
"onUpdate:modelValue": (e) => O(t.key, e)
|
|
1714
1714
|
}, null, 8, [
|
|
1715
1715
|
"field",
|
|
1716
1716
|
"model-value",
|
|
1717
1717
|
"read-only",
|
|
1718
1718
|
"onUpdate:modelValue"
|
|
1719
1719
|
]))), 128))
|
|
1720
|
-
])) : (
|
|
1720
|
+
])) : (_(), h("div", Ir, [y("p", Lr, a(b(c).customBlocks.toolbar.noDefinition), 1)]));
|
|
1721
1721
|
}
|
|
1722
|
-
}), Gr = { class: "tpl:mb-3.5" }, Kr = { class: "tpl:mb-3.5" }, qr = { class: "tpl:mb-3.5" }, Jr = { class: "tpl:flex tpl:items-stretch" }, Yr = ["value"], Xr = /* @__PURE__ */
|
|
1722
|
+
}), Gr = { class: "tpl:mb-3.5" }, Kr = { class: "tpl:mb-3.5" }, qr = { class: "tpl:mb-3.5" }, Jr = { class: "tpl:flex tpl:items-stretch" }, Yr = ["value"], Xr = /* @__PURE__ */ w({
|
|
1723
1723
|
__name: "DividerToolbar",
|
|
1724
1724
|
props: { block: {} },
|
|
1725
1725
|
emits: ["update"],
|
|
1726
1726
|
setup(e, { emit: n }) {
|
|
1727
1727
|
let r = n, { t: i } = B();
|
|
1728
|
-
function
|
|
1728
|
+
function o(e, t) {
|
|
1729
1729
|
r("update", { [e]: t });
|
|
1730
1730
|
}
|
|
1731
|
-
return (n, r) => (
|
|
1732
|
-
|
|
1731
|
+
return (n, r) => (_(), h(x, null, [
|
|
1732
|
+
y("div", Gr, [y("label", { class: t(b(U)) }, a(b(i).divider.style), 3), f(Y, {
|
|
1733
1733
|
options: [
|
|
1734
1734
|
{
|
|
1735
1735
|
value: "solid",
|
|
1736
|
-
label:
|
|
1736
|
+
label: b(i).divider.solid
|
|
1737
1737
|
},
|
|
1738
1738
|
{
|
|
1739
1739
|
value: "dashed",
|
|
1740
|
-
label:
|
|
1740
|
+
label: b(i).divider.dashed
|
|
1741
1741
|
},
|
|
1742
1742
|
{
|
|
1743
1743
|
value: "dotted",
|
|
1744
|
-
label:
|
|
1744
|
+
label: b(i).divider.dotted
|
|
1745
1745
|
}
|
|
1746
1746
|
],
|
|
1747
1747
|
"model-value": e.block.lineStyle,
|
|
1748
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
1748
|
+
"onUpdate:modelValue": r[0] ||= (e) => o("lineStyle", e)
|
|
1749
1749
|
}, null, 8, ["options", "model-value"])]),
|
|
1750
|
-
|
|
1750
|
+
y("div", Kr, [y("label", { class: t(b(U)) }, a(b(i).divider.color), 3), f(V, {
|
|
1751
1751
|
"model-value": e.block.color,
|
|
1752
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
1752
|
+
"onUpdate:modelValue": r[1] ||= (e) => o("color", e)
|
|
1753
1753
|
}, null, 8, ["model-value"])]),
|
|
1754
|
-
|
|
1754
|
+
y("div", qr, [y("label", { class: t(b(U)) }, a(b(i).divider.thickness), 3), y("div", Jr, [y("input", {
|
|
1755
1755
|
type: "number",
|
|
1756
|
-
class: b(
|
|
1756
|
+
class: t(b(G)),
|
|
1757
1757
|
value: e.block.thickness,
|
|
1758
1758
|
min: "1",
|
|
1759
1759
|
max: "10",
|
|
1760
|
-
onInput: r[2] ||= (e) =>
|
|
1761
|
-
}, null, 42, Yr),
|
|
1760
|
+
onInput: r[2] ||= (e) => o("thickness", Number(e.target.value))
|
|
1761
|
+
}, null, 42, Yr), y("span", { class: t(b(W)) }, "px", 2)])])
|
|
1762
1762
|
], 64));
|
|
1763
1763
|
}
|
|
1764
|
-
}), Zr = { class: "tpl:mb-3.5" }, Qr = ["value"], $r = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, ei = /* @__PURE__ */
|
|
1764
|
+
}), Zr = { class: "tpl:mb-3.5" }, Qr = ["value"], $r = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, ei = /* @__PURE__ */ w({
|
|
1765
1765
|
__name: "HtmlToolbar",
|
|
1766
1766
|
props: { block: {} },
|
|
1767
1767
|
emits: ["update"],
|
|
1768
1768
|
setup(e, { emit: n }) {
|
|
1769
1769
|
let r = n, { t: i } = B();
|
|
1770
|
-
return (n,
|
|
1771
|
-
|
|
1772
|
-
|
|
1770
|
+
return (n, o) => (_(), h("div", Zr, [
|
|
1771
|
+
y("label", { class: t(b(U)) }, a(b(i).html.content), 3),
|
|
1772
|
+
y("textarea", {
|
|
1773
1773
|
value: e.block.content,
|
|
1774
1774
|
placeholder: "<div>...</div>",
|
|
1775
1775
|
rows: "10",
|
|
1776
|
-
class: b(
|
|
1777
|
-
onInput:
|
|
1776
|
+
class: t(b($e)),
|
|
1777
|
+
onInput: o[0] ||= (e) => r("update", { content: e.target.value })
|
|
1778
1778
|
}, null, 42, Qr),
|
|
1779
|
-
|
|
1779
|
+
y("p", $r, [f(b(He), {
|
|
1780
1780
|
size: 12,
|
|
1781
1781
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1782
|
-
}),
|
|
1782
|
+
}), g(" " + a(b(i).html.sanitizationHint), 1)])
|
|
1783
1783
|
]));
|
|
1784
1784
|
}
|
|
1785
1785
|
});
|
|
1786
1786
|
//#endregion
|
|
1787
1787
|
//#region src/composables/useImageAspectLock.ts
|
|
1788
1788
|
function ti(e) {
|
|
1789
|
-
let t =
|
|
1790
|
-
|
|
1789
|
+
let t = c(!1), n = c(null);
|
|
1790
|
+
T(() => e.block().id, () => {
|
|
1791
1791
|
t.value = !1, n.value = null;
|
|
1792
1792
|
});
|
|
1793
|
-
let r =
|
|
1793
|
+
let r = p(() => he(e.block()) ?? e.measured()), i = p(() => {
|
|
1794
1794
|
let t = e.block().width;
|
|
1795
1795
|
return t === "full" ? e.room() : t;
|
|
1796
|
-
}), a =
|
|
1796
|
+
}), a = p(() => {
|
|
1797
1797
|
let e = r.value, t = i.value;
|
|
1798
1798
|
return !e || t === null ? null : Math.round(t * e.height / e.width);
|
|
1799
|
-
}), o =
|
|
1799
|
+
}), o = p(() => r.value !== null), s = p(() => {
|
|
1800
1800
|
let t = e.block().height;
|
|
1801
1801
|
return t === void 0 || a.value !== null && Math.abs(a.value - t) <= 1;
|
|
1802
|
-
}), l =
|
|
1802
|
+
}), l = p(() => o.value && !t.value && s.value);
|
|
1803
1803
|
function u() {
|
|
1804
|
-
if (
|
|
1804
|
+
if (he(e.block())) return {};
|
|
1805
1805
|
let t = e.measured();
|
|
1806
|
-
return t ?
|
|
1806
|
+
return t ? L(t) : {};
|
|
1807
1807
|
}
|
|
1808
1808
|
function d(r) {
|
|
1809
1809
|
if (n.value = null, !r) return t.value = !0, null;
|
|
@@ -1811,7 +1811,7 @@ function ti(e) {
|
|
|
1811
1811
|
let i = { ...u() };
|
|
1812
1812
|
return e.block().height !== void 0 && (i.height = void 0), Object.keys(i).length > 0 ? i : null;
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1814
|
+
function f(e) {
|
|
1815
1815
|
return n.value = null, l.value ? {
|
|
1816
1816
|
width: e,
|
|
1817
1817
|
height: void 0,
|
|
@@ -1840,7 +1840,7 @@ function ti(e) {
|
|
|
1840
1840
|
derivedHeight: a,
|
|
1841
1841
|
cappedHeight: n,
|
|
1842
1842
|
setLocked: d,
|
|
1843
|
-
widthUpdates:
|
|
1843
|
+
widthUpdates: f,
|
|
1844
1844
|
heightUpdates: m
|
|
1845
1845
|
};
|
|
1846
1846
|
}
|
|
@@ -1867,97 +1867,97 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
1867
1867
|
}, bi = ["value"], xi = { value: "auto" }, Si = { value: "custom" }, Ci = {
|
|
1868
1868
|
key: 4,
|
|
1869
1869
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1870
|
-
}, wi = ["value"], Ti = { class: "tpl:mb-3.5" }, Ei = { class: "tpl:mb-3.5" }, Di = 350, Oi = 200, ki = /* @__PURE__ */
|
|
1870
|
+
}, wi = ["value"], Ti = { class: "tpl:mb-3.5" }, Ei = { class: "tpl:mb-3.5" }, Di = 350, Oi = 200, ki = /* @__PURE__ */ w({
|
|
1871
1871
|
__name: "ImageToolbar",
|
|
1872
1872
|
props: { block: {} },
|
|
1873
1873
|
emits: ["update"],
|
|
1874
|
-
setup(e, { emit:
|
|
1875
|
-
let i = e,
|
|
1876
|
-
|
|
1874
|
+
setup(e, { emit: r }) {
|
|
1875
|
+
let i = e, o = r, { t: s, format: u } = B(), d = n(Te, N.liquid), v = n(Oe, null), C = n(Ce, void 0), w = c(!1), T = c(!1), { start: E } = xe(() => {
|
|
1876
|
+
w.value = !1, T.value = !1;
|
|
1877
1877
|
}, 1e3, { immediate: !1 }), D = [
|
|
1878
1878
|
300,
|
|
1879
1879
|
400,
|
|
1880
1880
|
500
|
|
1881
|
-
], O =
|
|
1881
|
+
], O = p(() => {
|
|
1882
1882
|
let e = i.block.width;
|
|
1883
1883
|
return e === "full" ? "full" : D.includes(e) ? String(e) : "custom";
|
|
1884
|
-
}),
|
|
1885
|
-
function
|
|
1886
|
-
|
|
1884
|
+
}), A = p(() => typeof i.block.height == "number" ? "custom" : "auto");
|
|
1885
|
+
function j(e, t) {
|
|
1886
|
+
o("update", { [e]: t });
|
|
1887
1887
|
}
|
|
1888
|
-
function
|
|
1888
|
+
function M(e) {
|
|
1889
1889
|
if (e === "custom") {
|
|
1890
1890
|
let e = i.block.width;
|
|
1891
|
-
(typeof e != "number" || D.includes(e)) &&
|
|
1892
|
-
} else
|
|
1891
|
+
(typeof e != "number" || D.includes(e)) && o("update", R.widthUpdates(Di));
|
|
1892
|
+
} else o("update", R.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
1893
1893
|
}
|
|
1894
1894
|
function P(e) {
|
|
1895
|
-
|
|
1895
|
+
j("height", e === "custom" ? Oi : void 0);
|
|
1896
1896
|
}
|
|
1897
1897
|
function F(e) {
|
|
1898
1898
|
let t = Number(e);
|
|
1899
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
1900
|
-
}
|
|
1901
|
-
function I(e) {
|
|
1902
|
-
A("borderRadius", ie(e) === null ? void 0 : e);
|
|
1899
|
+
!Number.isFinite(t) || t <= 0 || j("height", t);
|
|
1903
1900
|
}
|
|
1904
1901
|
function ee(e) {
|
|
1905
|
-
|
|
1906
|
-
!Number.isFinite(t) || t <= 0 || a("update", R.widthUpdates(t));
|
|
1902
|
+
j("borderRadius", k(e) === null ? void 0 : e);
|
|
1907
1903
|
}
|
|
1908
1904
|
function te(e) {
|
|
1909
|
-
|
|
1905
|
+
let t = Number(e);
|
|
1906
|
+
!Number.isFinite(t) || t <= 0 || o("update", R.widthUpdates(t));
|
|
1907
|
+
}
|
|
1908
|
+
function ne(e) {
|
|
1909
|
+
e !== i.block.src && o("update", {
|
|
1910
1910
|
src: e,
|
|
1911
|
-
...
|
|
1911
|
+
...L(null)
|
|
1912
1912
|
});
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1915
|
-
|
|
1914
|
+
function re(e) {
|
|
1915
|
+
o("update", {
|
|
1916
1916
|
src: e.url,
|
|
1917
|
-
...
|
|
1918
|
-
}), e.alt && (
|
|
1919
|
-
}
|
|
1920
|
-
let
|
|
1921
|
-
target:
|
|
1922
|
-
blocked:
|
|
1923
|
-
apply:
|
|
1924
|
-
}),
|
|
1917
|
+
...L(me(e.width, e.height))
|
|
1918
|
+
}), e.alt && (j("alt", e.alt), T.value = !0), w.value = !0, E();
|
|
1919
|
+
}
|
|
1920
|
+
let ie = c(), ae = p(() => I(i.block.src, d)), { canBrowse: oe, isUploading: se, showOverlay: le, openMediaBrowser: ue } = _e({
|
|
1921
|
+
target: ie,
|
|
1922
|
+
blocked: ae,
|
|
1923
|
+
apply: re
|
|
1924
|
+
}), de = ce(() => ae.value || !i.block.src || he(i.block) ? void 0 : i.block.src), pe = bn(() => de.value), ve = p(() => v ? ge(v.content.value, i.block.id, C) : null), R = ti({
|
|
1925
1925
|
block: () => i.block,
|
|
1926
|
-
room: () =>
|
|
1927
|
-
measured: () =>
|
|
1928
|
-
}), { available:
|
|
1929
|
-
function
|
|
1926
|
+
room: () => ve.value,
|
|
1927
|
+
measured: () => pe.value
|
|
1928
|
+
}), { available: ye, locked: z, derivedHeight: be, cappedHeight: Se } = R;
|
|
1929
|
+
function we() {
|
|
1930
1930
|
let e = R.setLocked(!z.value);
|
|
1931
|
-
e &&
|
|
1931
|
+
e && o("update", e);
|
|
1932
1932
|
}
|
|
1933
|
-
let
|
|
1934
|
-
function
|
|
1935
|
-
|
|
1933
|
+
let Ee = c(null);
|
|
1934
|
+
function De(e) {
|
|
1935
|
+
Ee.value = e;
|
|
1936
1936
|
let t = R.heightUpdates(Number(e));
|
|
1937
|
-
t &&
|
|
1937
|
+
t && o("update", t);
|
|
1938
1938
|
}
|
|
1939
|
-
return (n,
|
|
1940
|
-
|
|
1939
|
+
return (n, r) => (_(), h(x, null, [
|
|
1940
|
+
y("div", ni, [y("label", { class: t(b(U)) }, a(b(s).image.imageUrl), 3), y("div", {
|
|
1941
1941
|
ref_key: "dropZoneRef",
|
|
1942
|
-
ref:
|
|
1942
|
+
ref: ie,
|
|
1943
1943
|
class: "tpl:relative"
|
|
1944
1944
|
}, [
|
|
1945
|
-
|
|
1945
|
+
b(le) ? (_(), S(fe, {
|
|
1946
1946
|
key: 0,
|
|
1947
|
-
uploading:
|
|
1948
|
-
}, null, 8, ["uploading"])) :
|
|
1949
|
-
|
|
1947
|
+
uploading: b(se)
|
|
1948
|
+
}, null, 8, ["uploading"])) : m("", !0),
|
|
1949
|
+
f(J, {
|
|
1950
1950
|
"model-value": e.block.src,
|
|
1951
1951
|
type: "url",
|
|
1952
|
-
placeholder:
|
|
1953
|
-
pulse:
|
|
1954
|
-
"onUpdate:modelValue":
|
|
1952
|
+
placeholder: b(s).image.imageUrlPlaceholder,
|
|
1953
|
+
pulse: w.value,
|
|
1954
|
+
"onUpdate:modelValue": r[0] ||= (e) => ne(e)
|
|
1955
1955
|
}, null, 8, [
|
|
1956
1956
|
"model-value",
|
|
1957
1957
|
"placeholder",
|
|
1958
1958
|
"pulse"
|
|
1959
1959
|
]),
|
|
1960
|
-
|
|
1960
|
+
b(oe) ? (_(), h("button", {
|
|
1961
1961
|
key: 1,
|
|
1962
1962
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all",
|
|
1963
1963
|
style: {
|
|
@@ -1965,169 +1965,169 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
1965
1965
|
color: "var(--tpl-primary)",
|
|
1966
1966
|
"background-color": "var(--tpl-bg)"
|
|
1967
1967
|
},
|
|
1968
|
-
onClick:
|
|
1969
|
-
}, [
|
|
1968
|
+
onClick: r[1] ||= (...e) => b(ue) && b(ue)(...e)
|
|
1969
|
+
}, [f(b(Ve), {
|
|
1970
1970
|
size: 14,
|
|
1971
1971
|
"stroke-width": 1.5
|
|
1972
|
-
}),
|
|
1972
|
+
}), g(" " + a(b(s).image.browseMedia), 1)])) : m("", !0)
|
|
1973
1973
|
], 512)]),
|
|
1974
|
-
|
|
1974
|
+
b(I)(e.block.src, b(d)) ? (_(), h("div", ri, [y("label", { class: t(b(U)) }, [g(a(b(s).image.placeholderUrl) + " ", 1), y("span", ii, a(b(s).image.optional), 1)], 2), y("input", {
|
|
1975
1975
|
type: "url",
|
|
1976
|
-
class: b(
|
|
1976
|
+
class: t(b(K)),
|
|
1977
1977
|
value: e.block.placeholderUrl || "",
|
|
1978
|
-
placeholder:
|
|
1979
|
-
title:
|
|
1980
|
-
onInput:
|
|
1981
|
-
}, null, 42, ai)])) :
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1978
|
+
placeholder: b(s).image.placeholderUrlPlaceholder,
|
|
1979
|
+
title: b(s).image.placeholderUrlTooltip,
|
|
1980
|
+
onInput: r[2] ||= (e) => j("placeholderUrl", e.target.value)
|
|
1981
|
+
}, null, 42, ai)])) : m("", !0),
|
|
1982
|
+
y("div", oi, [
|
|
1983
|
+
y("label", { class: t(b(U)) }, a(b(s).image.altText), 3),
|
|
1984
|
+
f(J, {
|
|
1985
1985
|
"model-value": e.block.alt,
|
|
1986
1986
|
type: "text",
|
|
1987
|
-
placeholder:
|
|
1987
|
+
placeholder: b(s).image.altTextPlaceholder,
|
|
1988
1988
|
pulse: T.value,
|
|
1989
1989
|
disabled: e.block.decorative === !0,
|
|
1990
|
-
"onUpdate:modelValue":
|
|
1990
|
+
"onUpdate:modelValue": r[3] ||= (e) => j("alt", e)
|
|
1991
1991
|
}, null, 8, [
|
|
1992
1992
|
"model-value",
|
|
1993
1993
|
"placeholder",
|
|
1994
1994
|
"pulse",
|
|
1995
1995
|
"disabled"
|
|
1996
1996
|
]),
|
|
1997
|
-
|
|
1997
|
+
f(q, {
|
|
1998
1998
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
1999
1999
|
"model-value": e.block.decorative === !0,
|
|
2000
|
-
label:
|
|
2001
|
-
"onUpdate:modelValue":
|
|
2000
|
+
label: b(s).image.decorative,
|
|
2001
|
+
"onUpdate:modelValue": r[4] ||= (e) => j("decorative", e)
|
|
2002
2002
|
}, {
|
|
2003
|
-
default:
|
|
2003
|
+
default: l(() => [y("span", null, [g(a(b(s).image.decorative) + " ", 1), y("span", si, a(b(s).image.decorativeHint), 1)])]),
|
|
2004
2004
|
_: 1
|
|
2005
2005
|
}, 8, ["model-value", "label"])
|
|
2006
2006
|
]),
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
class: b(
|
|
2007
|
+
y("div", ci, [
|
|
2008
|
+
y("label", { class: t(b(U)) }, a(b(s).image.width), 3),
|
|
2009
|
+
y("select", {
|
|
2010
|
+
class: t(b(K)),
|
|
2011
2011
|
"data-testid": "image-width-mode",
|
|
2012
2012
|
value: O.value,
|
|
2013
|
-
onChange:
|
|
2013
|
+
onChange: r[5] ||= (e) => M(e.target.value)
|
|
2014
2014
|
}, [
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2015
|
+
y("option", ui, a(b(s).image.fullWidth), 1),
|
|
2016
|
+
r[15] ||= y("option", { value: "300" }, "300px", -1),
|
|
2017
|
+
r[16] ||= y("option", { value: "400" }, "400px", -1),
|
|
2018
|
+
r[17] ||= y("option", { value: "500" }, "500px", -1),
|
|
2019
|
+
y("option", di, a(b(s).image.widthCustom), 1)
|
|
2020
2020
|
], 42, li),
|
|
2021
|
-
O.value === "custom" ? (
|
|
2021
|
+
O.value === "custom" ? (_(), h("div", fi, [y("input", {
|
|
2022
2022
|
type: "number",
|
|
2023
2023
|
"data-testid": "image-width-input",
|
|
2024
|
-
class: b(
|
|
2024
|
+
class: t(b(G)),
|
|
2025
2025
|
value: typeof e.block.width == "number" ? e.block.width : Di,
|
|
2026
2026
|
min: "20",
|
|
2027
|
-
onInput:
|
|
2028
|
-
}, null, 42, pi),
|
|
2027
|
+
onInput: r[6] ||= (e) => te(e.target.value)
|
|
2028
|
+
}, null, 42, pi), y("span", { class: t(b(W)) }, "px", 2)])) : m("", !0)
|
|
2029
2029
|
]),
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
linked:
|
|
2033
|
-
"link-label":
|
|
2034
|
-
"unlink-label":
|
|
2030
|
+
y("div", mi, [
|
|
2031
|
+
b(ye) ? (_(), h("div", hi, [y("span", gi, a(b(s).image.height), 1), f(ht, {
|
|
2032
|
+
linked: b(z),
|
|
2033
|
+
"link-label": b(s).image.lockAspectRatio,
|
|
2034
|
+
"unlink-label": b(s).image.unlockAspectRatio,
|
|
2035
2035
|
testid: "image-aspect-lock",
|
|
2036
|
-
onToggle:
|
|
2036
|
+
onToggle: we
|
|
2037
2037
|
}, null, 8, [
|
|
2038
2038
|
"linked",
|
|
2039
2039
|
"link-label",
|
|
2040
2040
|
"unlink-label"
|
|
2041
|
-
])])) : (
|
|
2041
|
+
])])) : (_(), h("label", {
|
|
2042
2042
|
key: 1,
|
|
2043
|
-
class: b(
|
|
2044
|
-
},
|
|
2045
|
-
|
|
2043
|
+
class: t(b(U))
|
|
2044
|
+
}, a(b(s).image.height), 3)),
|
|
2045
|
+
b(z) ? (_(), h(x, { key: 2 }, [y("div", _i, [y("input", {
|
|
2046
2046
|
type: "number",
|
|
2047
2047
|
"data-testid": "image-locked-height-input",
|
|
2048
|
-
class: b(
|
|
2049
|
-
value:
|
|
2048
|
+
class: t(b(G)),
|
|
2049
|
+
value: Ee.value ?? b(be) ?? "",
|
|
2050
2050
|
min: "1",
|
|
2051
|
-
onInput:
|
|
2052
|
-
onBlur:
|
|
2053
|
-
}, null, 42, vi),
|
|
2054
|
-
|
|
2051
|
+
onInput: r[7] ||= (e) => De(e.target.value),
|
|
2052
|
+
onBlur: r[8] ||= (e) => Ee.value = null
|
|
2053
|
+
}, null, 42, vi), y("span", { class: t(b(W)) }, "px", 2)]), b(Se) === null ? m("", !0) : (_(), h("p", yi, a(b(u)(b(s).image.heightCapped, { height: b(Se) })), 1))], 64)) : m("", !0),
|
|
2054
|
+
b(z) ? m("", !0) : (_(), h("select", {
|
|
2055
2055
|
key: 3,
|
|
2056
|
-
class: b(
|
|
2056
|
+
class: t(b(K)),
|
|
2057
2057
|
"data-testid": "image-height-mode",
|
|
2058
|
-
value:
|
|
2059
|
-
onChange:
|
|
2060
|
-
}, [
|
|
2061
|
-
!
|
|
2058
|
+
value: A.value,
|
|
2059
|
+
onChange: r[9] ||= (e) => P(e.target.value)
|
|
2060
|
+
}, [y("option", xi, a(b(s).image.heightAuto), 1), y("option", Si, a(b(s).image.heightCustom), 1)], 42, bi)),
|
|
2061
|
+
!b(z) && A.value === "custom" ? (_(), h("div", Ci, [y("input", {
|
|
2062
2062
|
type: "number",
|
|
2063
2063
|
"data-testid": "image-height-input",
|
|
2064
|
-
class: b(
|
|
2064
|
+
class: t(b(G)),
|
|
2065
2065
|
value: e.block.height,
|
|
2066
2066
|
min: "20",
|
|
2067
|
-
onInput:
|
|
2068
|
-
}, null, 42, wi),
|
|
2067
|
+
onInput: r[10] ||= (e) => F(e.target.value)
|
|
2068
|
+
}, null, 42, wi), y("span", { class: t(b(W)) }, "px", 2)])) : m("", !0)
|
|
2069
2069
|
]),
|
|
2070
|
-
|
|
2070
|
+
f(Ot, {
|
|
2071
2071
|
"model-value": e.block.borderRadius,
|
|
2072
|
-
label:
|
|
2072
|
+
label: b(s).image.borderRadius,
|
|
2073
2073
|
"testid-prefix": "image",
|
|
2074
|
-
"onUpdate:modelValue":
|
|
2074
|
+
"onUpdate:modelValue": ee
|
|
2075
2075
|
}, null, 8, ["model-value", "label"]),
|
|
2076
|
-
|
|
2076
|
+
f(St, {
|
|
2077
2077
|
"model-value": e.block.border,
|
|
2078
2078
|
"testid-prefix": "image",
|
|
2079
|
-
"onUpdate:modelValue":
|
|
2079
|
+
"onUpdate:modelValue": r[11] ||= (e) => j("border", e)
|
|
2080
2080
|
}, null, 8, ["model-value"]),
|
|
2081
|
-
|
|
2081
|
+
y("div", Ti, [y("label", { class: t(b(U)) }, a(b(s).title.align), 3), f(Y, {
|
|
2082
2082
|
options: [
|
|
2083
2083
|
{
|
|
2084
2084
|
value: "left",
|
|
2085
|
-
label:
|
|
2085
|
+
label: b(s).title.alignLeft
|
|
2086
2086
|
},
|
|
2087
2087
|
{
|
|
2088
2088
|
value: "center",
|
|
2089
|
-
label:
|
|
2089
|
+
label: b(s).title.alignCenter
|
|
2090
2090
|
},
|
|
2091
2091
|
{
|
|
2092
2092
|
value: "right",
|
|
2093
|
-
label:
|
|
2093
|
+
label: b(s).title.alignRight
|
|
2094
2094
|
}
|
|
2095
2095
|
],
|
|
2096
2096
|
"model-value": e.block.align,
|
|
2097
|
-
"onUpdate:modelValue":
|
|
2097
|
+
"onUpdate:modelValue": r[12] ||= (e) => j("align", e)
|
|
2098
2098
|
}, null, 8, ["options", "model-value"])]),
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2099
|
+
y("div", Ei, [
|
|
2100
|
+
y("label", { class: t(b(U)) }, a(b(s).image.linkUrl), 3),
|
|
2101
|
+
f(J, {
|
|
2102
2102
|
"model-value": e.block.linkUrl || "",
|
|
2103
2103
|
type: "url",
|
|
2104
|
-
placeholder:
|
|
2105
|
-
"onUpdate:modelValue":
|
|
2104
|
+
placeholder: b(s).image.imageUrlPlaceholder,
|
|
2105
|
+
"onUpdate:modelValue": r[13] ||= (e) => j("linkUrl", e)
|
|
2106
2106
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2107
|
-
e.block.linkUrl ? (
|
|
2107
|
+
e.block.linkUrl ? (_(), S(q, {
|
|
2108
2108
|
key: 0,
|
|
2109
2109
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2110
2110
|
"model-value": e.block.linkOpenInNewTab ?? !1,
|
|
2111
|
-
label:
|
|
2112
|
-
"onUpdate:modelValue":
|
|
2113
|
-
}, null, 8, ["model-value", "label"])) :
|
|
2111
|
+
label: b(s).image.openInNewTab,
|
|
2112
|
+
"onUpdate:modelValue": r[14] ||= (e) => j("linkOpenInNewTab", e)
|
|
2113
|
+
}, null, 8, ["model-value", "label"])) : m("", !0)
|
|
2114
2114
|
])
|
|
2115
2115
|
], 64));
|
|
2116
2116
|
}
|
|
2117
|
-
}), Ai = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */
|
|
2117
|
+
}), Ai = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ w({
|
|
2118
2118
|
__name: "FieldRow",
|
|
2119
2119
|
props: { label: {} },
|
|
2120
2120
|
setup(e) {
|
|
2121
|
-
return (n, r) => (
|
|
2121
|
+
return (n, r) => (_(), h("div", Ai, [e.label ? (_(), h("label", {
|
|
2122
2122
|
key: 0,
|
|
2123
|
-
class: b(
|
|
2124
|
-
},
|
|
2123
|
+
class: t(b(U))
|
|
2124
|
+
}, a(e.label), 3)) : m("", !0), s(n.$slots, "default")]));
|
|
2125
2125
|
}
|
|
2126
2126
|
}), ji = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Mi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ni = [
|
|
2127
2127
|
"value",
|
|
2128
2128
|
"placeholder",
|
|
2129
2129
|
"onInput"
|
|
2130
|
-
], Pi = ["title", "onClick"], Fi = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ii = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Li = ["value"], Ri = { value: "" }, zi = ["value"], Bi = ["value"], Vi = /* @__PURE__ */
|
|
2130
|
+
], Pi = ["title", "onClick"], Fi = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ii = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Li = ["value"], Ri = { value: "" }, zi = ["value"], Bi = ["value"], Vi = /* @__PURE__ */ w({
|
|
2131
2131
|
__name: "MenuToolbar",
|
|
2132
2132
|
props: {
|
|
2133
2133
|
block: {},
|
|
@@ -2135,7 +2135,7 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
2135
2135
|
},
|
|
2136
2136
|
emits: ["update"],
|
|
2137
2137
|
setup(e, { emit: n }) {
|
|
2138
|
-
let
|
|
2138
|
+
let r = e, i = n, { t: s } = B(), c = p(() => [
|
|
2139
2139
|
{
|
|
2140
2140
|
key: "openInNewTab",
|
|
2141
2141
|
label: s.menu.openInNewTab
|
|
@@ -2148,167 +2148,167 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
2148
2148
|
key: "underline",
|
|
2149
2149
|
label: s.menu.underline
|
|
2150
2150
|
}
|
|
2151
|
-
]),
|
|
2151
|
+
]), u = p(() => [
|
|
2152
2152
|
{
|
|
2153
2153
|
value: "left",
|
|
2154
2154
|
label: s.title.alignLeft,
|
|
2155
|
-
icon:
|
|
2155
|
+
icon: Ye
|
|
2156
2156
|
},
|
|
2157
2157
|
{
|
|
2158
2158
|
value: "center",
|
|
2159
2159
|
label: s.title.alignCenter,
|
|
2160
|
-
icon:
|
|
2160
|
+
icon: Je
|
|
2161
2161
|
},
|
|
2162
2162
|
{
|
|
2163
2163
|
value: "right",
|
|
2164
2164
|
label: s.title.alignRight,
|
|
2165
|
-
icon:
|
|
2165
|
+
icon: qe
|
|
2166
2166
|
}
|
|
2167
2167
|
]);
|
|
2168
|
-
function
|
|
2169
|
-
|
|
2168
|
+
function d(e, t) {
|
|
2169
|
+
i("update", { [e]: t });
|
|
2170
2170
|
}
|
|
2171
|
-
function
|
|
2171
|
+
function m() {
|
|
2172
2172
|
let e = {
|
|
2173
|
-
id:
|
|
2173
|
+
id: A(),
|
|
2174
2174
|
text: "",
|
|
2175
2175
|
url: "",
|
|
2176
2176
|
openInNewTab: !1,
|
|
2177
2177
|
bold: !1,
|
|
2178
2178
|
underline: !1
|
|
2179
2179
|
};
|
|
2180
|
-
|
|
2180
|
+
i("update", { items: [...r.block.items, e] });
|
|
2181
2181
|
}
|
|
2182
|
-
function
|
|
2183
|
-
let
|
|
2182
|
+
function v(e, t, n) {
|
|
2183
|
+
let a = r.block.items.map((r) => r.id === e ? {
|
|
2184
2184
|
...r,
|
|
2185
2185
|
[t]: n
|
|
2186
2186
|
} : r);
|
|
2187
|
-
|
|
2187
|
+
i("update", { items: a });
|
|
2188
2188
|
}
|
|
2189
|
-
function
|
|
2190
|
-
|
|
2189
|
+
function C(e) {
|
|
2190
|
+
i("update", { items: r.block.items.filter((t) => t.id !== e) });
|
|
2191
2191
|
}
|
|
2192
|
-
return (n,
|
|
2193
|
-
|
|
2194
|
-
default:
|
|
2192
|
+
return (n, r) => (_(), h(x, null, [
|
|
2193
|
+
f($, { label: b(s).menu.items }, {
|
|
2194
|
+
default: l(() => [y("div", ji, [(_(!0), h(x, null, o(e.block.items, (n) => (_(), h("div", {
|
|
2195
2195
|
key: n.id,
|
|
2196
2196
|
class: "tpl:flex tpl:flex-col tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-2"
|
|
2197
2197
|
}, [
|
|
2198
|
-
|
|
2198
|
+
y("div", Mi, [y("input", {
|
|
2199
2199
|
type: "text",
|
|
2200
|
-
class:
|
|
2200
|
+
class: t([b(K), "tpl:flex-1"]),
|
|
2201
2201
|
value: n.text,
|
|
2202
|
-
placeholder:
|
|
2203
|
-
onInput: (e) =>
|
|
2204
|
-
}, null, 42, Ni),
|
|
2205
|
-
class: b(
|
|
2206
|
-
title:
|
|
2207
|
-
onClick: (e) =>
|
|
2208
|
-
}, [
|
|
2202
|
+
placeholder: b(s).menu.text,
|
|
2203
|
+
onInput: (e) => v(n.id, "text", e.target.value)
|
|
2204
|
+
}, null, 42, Ni), y("button", {
|
|
2205
|
+
class: t(b(et)),
|
|
2206
|
+
title: b(s).menu.removeItem,
|
|
2207
|
+
onClick: (e) => C(n.id)
|
|
2208
|
+
}, [f(b(Ze), {
|
|
2209
2209
|
size: 14,
|
|
2210
2210
|
"stroke-width": 2
|
|
2211
2211
|
})], 10, Pi)]),
|
|
2212
|
-
|
|
2212
|
+
f(J, {
|
|
2213
2213
|
"model-value": n.url,
|
|
2214
2214
|
type: "url",
|
|
2215
|
-
placeholder:
|
|
2216
|
-
"onUpdate:modelValue": (e) =>
|
|
2215
|
+
placeholder: b(s).menu.urlPlaceholder,
|
|
2216
|
+
"onUpdate:modelValue": (e) => v(n.id, "url", e)
|
|
2217
2217
|
}, null, 8, [
|
|
2218
2218
|
"model-value",
|
|
2219
2219
|
"placeholder",
|
|
2220
2220
|
"onUpdate:modelValue"
|
|
2221
2221
|
]),
|
|
2222
|
-
|
|
2222
|
+
y("div", Fi, [(_(!0), h(x, null, o(c.value, (e) => (_(), S(q, {
|
|
2223
2223
|
key: e.key,
|
|
2224
2224
|
"model-value": n[e.key],
|
|
2225
2225
|
label: e.label,
|
|
2226
|
-
"onUpdate:modelValue": (t) =>
|
|
2226
|
+
"onUpdate:modelValue": (t) => v(n.id, e.key, t)
|
|
2227
2227
|
}, null, 8, [
|
|
2228
2228
|
"model-value",
|
|
2229
2229
|
"label",
|
|
2230
2230
|
"onUpdate:modelValue"
|
|
2231
2231
|
]))), 128))]),
|
|
2232
|
-
|
|
2232
|
+
y("div", Ii, [y("label", { class: t([b(U), "tpl:!mb-0"]) }, a(b(s).menu.color), 3), f(V, {
|
|
2233
2233
|
"swatch-only": "",
|
|
2234
2234
|
"model-value": n.color || e.block.linkColor || e.block.color || "",
|
|
2235
|
-
"onUpdate:modelValue": (e) =>
|
|
2235
|
+
"onUpdate:modelValue": (e) => v(n.id, "color", e)
|
|
2236
2236
|
}, null, 8, ["model-value", "onUpdate:modelValue"])])
|
|
2237
|
-
]))), 128)),
|
|
2238
|
-
class: b(
|
|
2239
|
-
onClick:
|
|
2240
|
-
}, [
|
|
2237
|
+
]))), 128)), y("button", {
|
|
2238
|
+
class: t(b(tt)),
|
|
2239
|
+
onClick: m
|
|
2240
|
+
}, [f(b(H), {
|
|
2241
2241
|
size: 14,
|
|
2242
2242
|
"stroke-width": 2
|
|
2243
|
-
}),
|
|
2243
|
+
}), g(" " + a(b(s).menu.addItem), 1)], 2)])]),
|
|
2244
2244
|
_: 1
|
|
2245
2245
|
}, 8, ["label"]),
|
|
2246
|
-
|
|
2247
|
-
default:
|
|
2248
|
-
class: b(
|
|
2249
|
-
value:
|
|
2250
|
-
onChange:
|
|
2251
|
-
}, [
|
|
2246
|
+
f($, { label: b(s).menu.fontFamily }, {
|
|
2247
|
+
default: l(() => [y("select", {
|
|
2248
|
+
class: t(b(K)),
|
|
2249
|
+
value: b(ot)(e.block.fontFamily),
|
|
2250
|
+
onChange: r[0] ||= (e) => d("fontFamily", e.target.value || void 0)
|
|
2251
|
+
}, [y("option", Ri, a(b(s).title.inheritFont), 1), (_(!0), h(x, null, o(e.fontFamilies, (e) => (_(), h("option", {
|
|
2252
2252
|
key: e.value,
|
|
2253
2253
|
value: e.value
|
|
2254
|
-
},
|
|
2254
|
+
}, a(e.label), 9, zi))), 128))], 42, Li)]),
|
|
2255
2255
|
_: 1
|
|
2256
2256
|
}, 8, ["label"]),
|
|
2257
|
-
|
|
2258
|
-
default:
|
|
2257
|
+
f($, { label: b(s).menu.fontSize }, {
|
|
2258
|
+
default: l(() => [f(X, {
|
|
2259
2259
|
"model-value": e.block.fontSize,
|
|
2260
2260
|
min: 8,
|
|
2261
2261
|
max: 48,
|
|
2262
2262
|
suffix: "px",
|
|
2263
|
-
"onUpdate:modelValue":
|
|
2263
|
+
"onUpdate:modelValue": r[1] ||= (e) => d("fontSize", e)
|
|
2264
2264
|
}, null, 8, ["model-value"])]),
|
|
2265
2265
|
_: 1
|
|
2266
2266
|
}, 8, ["label"]),
|
|
2267
|
-
|
|
2268
|
-
default:
|
|
2267
|
+
f($, { label: b(s).menu.color }, {
|
|
2268
|
+
default: l(() => [f(V, {
|
|
2269
2269
|
"model-value": e.block.color ?? "",
|
|
2270
|
-
"onUpdate:modelValue":
|
|
2270
|
+
"onUpdate:modelValue": r[2] ||= (e) => d("color", e || void 0)
|
|
2271
2271
|
}, null, 8, ["model-value"])]),
|
|
2272
2272
|
_: 1
|
|
2273
2273
|
}, 8, ["label"]),
|
|
2274
|
-
|
|
2275
|
-
default:
|
|
2274
|
+
f($, { label: b(s).menu.linkColor }, {
|
|
2275
|
+
default: l(() => [f(V, {
|
|
2276
2276
|
"model-value": e.block.linkColor || e.block.color || "",
|
|
2277
|
-
"onUpdate:modelValue":
|
|
2277
|
+
"onUpdate:modelValue": r[3] ||= (e) => d("linkColor", e || void 0)
|
|
2278
2278
|
}, null, 8, ["model-value"])]),
|
|
2279
2279
|
_: 1
|
|
2280
2280
|
}, 8, ["label"]),
|
|
2281
|
-
|
|
2282
|
-
default:
|
|
2283
|
-
options:
|
|
2281
|
+
f($, { label: b(s).menu.textAlign }, {
|
|
2282
|
+
default: l(() => [f(Y, {
|
|
2283
|
+
options: u.value,
|
|
2284
2284
|
"model-value": e.block.textAlign,
|
|
2285
|
-
"onUpdate:modelValue":
|
|
2285
|
+
"onUpdate:modelValue": r[4] ||= (e) => d("textAlign", e)
|
|
2286
2286
|
}, null, 8, ["options", "model-value"])]),
|
|
2287
2287
|
_: 1
|
|
2288
2288
|
}, 8, ["label"]),
|
|
2289
|
-
|
|
2290
|
-
default:
|
|
2289
|
+
f($, { label: b(s).menu.separator }, {
|
|
2290
|
+
default: l(() => [y("input", {
|
|
2291
2291
|
type: "text",
|
|
2292
|
-
class: b(
|
|
2292
|
+
class: t(b(K)),
|
|
2293
2293
|
value: e.block.separator,
|
|
2294
|
-
onInput:
|
|
2294
|
+
onInput: r[5] ||= (e) => d("separator", e.target.value)
|
|
2295
2295
|
}, null, 42, Bi)]),
|
|
2296
2296
|
_: 1
|
|
2297
2297
|
}, 8, ["label"]),
|
|
2298
|
-
|
|
2299
|
-
default:
|
|
2298
|
+
f($, { label: b(s).menu.separatorColor }, {
|
|
2299
|
+
default: l(() => [f(V, {
|
|
2300
2300
|
"model-value": e.block.separatorColor,
|
|
2301
|
-
"onUpdate:modelValue":
|
|
2301
|
+
"onUpdate:modelValue": r[6] ||= (e) => d("separatorColor", e)
|
|
2302
2302
|
}, null, 8, ["model-value"])]),
|
|
2303
2303
|
_: 1
|
|
2304
2304
|
}, 8, ["label"]),
|
|
2305
|
-
|
|
2306
|
-
default:
|
|
2305
|
+
f($, { label: b(s).menu.spacing }, {
|
|
2306
|
+
default: l(() => [f(X, {
|
|
2307
2307
|
"model-value": e.block.spacing,
|
|
2308
2308
|
min: 0,
|
|
2309
2309
|
max: 50,
|
|
2310
2310
|
suffix: "px",
|
|
2311
|
-
"onUpdate:modelValue":
|
|
2311
|
+
"onUpdate:modelValue": r[7] ||= (e) => d("spacing", e)
|
|
2312
2312
|
}, null, 8, ["model-value"])]),
|
|
2313
2313
|
_: 1
|
|
2314
2314
|
}, 8, ["label"])
|
|
@@ -2317,26 +2317,26 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
2317
2317
|
}), Hi = {
|
|
2318
2318
|
class: "tpl:mb-3.5",
|
|
2319
2319
|
"data-testid": "paragraph-spacing"
|
|
2320
|
-
}, Ui = { class: "tpl:flex tpl:items-stretch" }, Wi = ["value"], Gi = /* @__PURE__ */
|
|
2320
|
+
}, Ui = { class: "tpl:flex tpl:items-stretch" }, Wi = ["value"], Gi = /* @__PURE__ */ w({
|
|
2321
2321
|
__name: "ParagraphToolbar",
|
|
2322
2322
|
props: { block: {} },
|
|
2323
2323
|
emits: ["update"],
|
|
2324
2324
|
setup(e, { emit: n }) {
|
|
2325
2325
|
let r = n, { t: i } = B();
|
|
2326
|
-
return (n,
|
|
2326
|
+
return (n, o) => (_(), h("div", Hi, [y("label", { class: t(b(U)) }, a(b(i).paragraph.paragraphSpacing), 3), y("div", Ui, [y("input", {
|
|
2327
2327
|
type: "number",
|
|
2328
|
-
class: b(
|
|
2329
|
-
value: e.block.paragraphSpacing ??
|
|
2328
|
+
class: t(b(G)),
|
|
2329
|
+
value: e.block.paragraphSpacing ?? b(oe).paragraphGap,
|
|
2330
2330
|
min: "0",
|
|
2331
2331
|
max: "64",
|
|
2332
|
-
onInput:
|
|
2333
|
-
}, null, 42, Wi),
|
|
2332
|
+
onInput: o[0] ||= (e) => r("update", { paragraphSpacing: Number(e.target.value) })
|
|
2333
|
+
}, null, 42, Wi), y("span", { class: t(b(W)) }, "px", 2)])]));
|
|
2334
2334
|
}
|
|
2335
2335
|
});
|
|
2336
2336
|
//#endregion
|
|
2337
2337
|
//#region src/utils/rebalanceColumnChildren.ts
|
|
2338
2338
|
function Ki(e, t) {
|
|
2339
|
-
let n =
|
|
2339
|
+
let n = re(t);
|
|
2340
2340
|
if (e.length === n) return e;
|
|
2341
2341
|
if (e.length < n) {
|
|
2342
2342
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2359,48 +2359,48 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2359
2359
|
}, $i = {
|
|
2360
2360
|
key: 1,
|
|
2361
2361
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
2362
|
-
}, ea = /* @__PURE__ */
|
|
2362
|
+
}, ea = /* @__PURE__ */ w({
|
|
2363
2363
|
__name: "SectionToolbar",
|
|
2364
2364
|
props: { block: {} },
|
|
2365
2365
|
emits: ["update"],
|
|
2366
|
-
setup(e, { emit:
|
|
2367
|
-
let
|
|
2366
|
+
setup(e, { emit: r }) {
|
|
2367
|
+
let i = e, s = r, { t: c } = B(), l = n(Ce, void 0), u = n(Ee, void 0), d = l !== void 0 && F(l), g = p(() => u !== !1 || !!i.block.wrapper), v = p(() => d && !i.block.wrapper), C = p(() => d && g.value), w = p(() => ee(i.block)?.applied === !0), T = p(() => [
|
|
2368
2368
|
{
|
|
2369
2369
|
value: "1",
|
|
2370
|
-
label:
|
|
2370
|
+
label: c.section.column1
|
|
2371
2371
|
},
|
|
2372
2372
|
{
|
|
2373
2373
|
value: "2",
|
|
2374
|
-
label:
|
|
2374
|
+
label: c.section.column2
|
|
2375
2375
|
},
|
|
2376
2376
|
{
|
|
2377
2377
|
value: "3",
|
|
2378
|
-
label:
|
|
2378
|
+
label: c.section.column3
|
|
2379
2379
|
},
|
|
2380
2380
|
{
|
|
2381
2381
|
value: "1-2",
|
|
2382
|
-
label:
|
|
2382
|
+
label: c.section.ratio12
|
|
2383
2383
|
},
|
|
2384
2384
|
{
|
|
2385
2385
|
value: "2-1",
|
|
2386
|
-
label:
|
|
2386
|
+
label: c.section.ratio21
|
|
2387
2387
|
}
|
|
2388
2388
|
]);
|
|
2389
2389
|
function E(e) {
|
|
2390
|
-
let t = e.target.value, n = Ki(
|
|
2391
|
-
|
|
2390
|
+
let t = e.target.value, n = Ki(i.block.children, t);
|
|
2391
|
+
s("update", {
|
|
2392
2392
|
columns: t,
|
|
2393
2393
|
children: n
|
|
2394
2394
|
});
|
|
2395
2395
|
}
|
|
2396
2396
|
function D(e) {
|
|
2397
|
-
|
|
2397
|
+
s("update", { stackOnMobile: e });
|
|
2398
2398
|
}
|
|
2399
2399
|
function O(e) {
|
|
2400
|
-
|
|
2400
|
+
s("update", { borderRadius: e });
|
|
2401
2401
|
}
|
|
2402
2402
|
function k(e) {
|
|
2403
|
-
|
|
2403
|
+
s("update", { wrapper: e ? { padding: {
|
|
2404
2404
|
top: 20,
|
|
2405
2405
|
right: 20,
|
|
2406
2406
|
bottom: 20,
|
|
@@ -2408,8 +2408,8 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2408
2408
|
} } : void 0 });
|
|
2409
2409
|
}
|
|
2410
2410
|
function A(e) {
|
|
2411
|
-
|
|
2412
|
-
...
|
|
2411
|
+
s("update", { wrapper: {
|
|
2412
|
+
...i.block.wrapper,
|
|
2413
2413
|
...e
|
|
2414
2414
|
} });
|
|
2415
2415
|
}
|
|
@@ -2419,60 +2419,60 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2419
2419
|
function M(e) {
|
|
2420
2420
|
A({ borderRadius: e });
|
|
2421
2421
|
}
|
|
2422
|
-
return (n, r) => (
|
|
2423
|
-
|
|
2424
|
-
class: b(
|
|
2422
|
+
return (n, r) => (_(), h(x, null, [
|
|
2423
|
+
y("div", qi, [y("label", { class: t(b(U)) }, a(b(c).section.columns), 3), y("select", {
|
|
2424
|
+
class: t(b(K)),
|
|
2425
2425
|
value: e.block.columns,
|
|
2426
2426
|
onChange: E
|
|
2427
|
-
}, [(
|
|
2427
|
+
}, [(_(!0), h(x, null, o(T.value, (e) => (_(), h("option", {
|
|
2428
2428
|
key: e.value,
|
|
2429
2429
|
value: e.value
|
|
2430
|
-
},
|
|
2431
|
-
e.block.columns === "1" ?
|
|
2430
|
+
}, a(e.label), 9, Yi))), 128))], 42, Ji)]),
|
|
2431
|
+
e.block.columns === "1" ? m("", !0) : (_(), h("div", Xi, [f(q, {
|
|
2432
2432
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2433
2433
|
"model-value": e.block.stackOnMobile !== !1,
|
|
2434
|
-
label:
|
|
2434
|
+
label: b(c).section.stackOnMobile,
|
|
2435
2435
|
"onUpdate:modelValue": r[0] ||= (e) => D(e)
|
|
2436
2436
|
}, null, 8, ["model-value", "label"])])),
|
|
2437
|
-
|
|
2437
|
+
f(Ot, {
|
|
2438
2438
|
"model-value": e.block.borderRadius,
|
|
2439
|
-
label:
|
|
2439
|
+
label: b(c).section.borderRadius,
|
|
2440
2440
|
max: 50,
|
|
2441
2441
|
"testid-prefix": "section",
|
|
2442
2442
|
"onUpdate:modelValue": O
|
|
2443
2443
|
}, null, 8, ["model-value", "label"]),
|
|
2444
|
-
|
|
2444
|
+
w.value ? m("", !0) : (_(), S(St, {
|
|
2445
2445
|
key: 1,
|
|
2446
2446
|
"model-value": e.block.border,
|
|
2447
2447
|
"testid-prefix": "section",
|
|
2448
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
2448
|
+
"onUpdate:modelValue": r[1] ||= (e) => s("update", { border: e })
|
|
2449
2449
|
}, null, 8, ["model-value"])),
|
|
2450
|
-
|
|
2451
|
-
|
|
2450
|
+
g.value ? (_(), h("div", Zi, [
|
|
2451
|
+
f(q, {
|
|
2452
2452
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2453
2453
|
"model-value": !!e.block.wrapper,
|
|
2454
|
-
label:
|
|
2455
|
-
disabled:
|
|
2454
|
+
label: b(c).section.wrapperEnable,
|
|
2455
|
+
disabled: v.value,
|
|
2456
2456
|
"onUpdate:modelValue": r[2] ||= (e) => k(e)
|
|
2457
2457
|
}, null, 8, [
|
|
2458
2458
|
"model-value",
|
|
2459
2459
|
"label",
|
|
2460
2460
|
"disabled"
|
|
2461
2461
|
]),
|
|
2462
|
-
|
|
2463
|
-
e.block.wrapper ? (
|
|
2464
|
-
|
|
2462
|
+
C.value ? (_(), h("p", Qi, a(b(c).section.wrapperLayoutConflict), 1)) : m("", !0),
|
|
2463
|
+
e.block.wrapper ? (_(), h("div", $i, [
|
|
2464
|
+
y("div", null, [y("label", { class: t(b(U)) }, a(b(c).blockSettings.color), 3), f(V, {
|
|
2465
2465
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
2466
2466
|
"allow-transparent": "",
|
|
2467
2467
|
"onUpdate:modelValue": r[3] ||= (e) => A({ backgroundColor: e })
|
|
2468
2468
|
}, null, 8, ["model-value"])]),
|
|
2469
|
-
|
|
2469
|
+
f(An, {
|
|
2470
2470
|
"model-value": e.block.wrapper.backgroundImage,
|
|
2471
2471
|
"testid-prefix": "section-wrapper",
|
|
2472
2472
|
"onUpdate:modelValue": r[4] ||= (e) => A({ backgroundImage: e })
|
|
2473
2473
|
}, null, 8, ["model-value"]),
|
|
2474
|
-
|
|
2475
|
-
label:
|
|
2474
|
+
f(yn, {
|
|
2475
|
+
label: b(c).blockSettings.padding,
|
|
2476
2476
|
"model-value": e.block.wrapper.padding ?? {
|
|
2477
2477
|
top: 0,
|
|
2478
2478
|
right: 0,
|
|
@@ -2481,180 +2481,180 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2481
2481
|
},
|
|
2482
2482
|
"onUpdate:modelValue": j
|
|
2483
2483
|
}, null, 8, ["label", "model-value"]),
|
|
2484
|
-
|
|
2484
|
+
f(Ot, {
|
|
2485
2485
|
"model-value": e.block.wrapper.borderRadius,
|
|
2486
|
-
label:
|
|
2486
|
+
label: b(c).section.borderRadius,
|
|
2487
2487
|
max: 50,
|
|
2488
2488
|
"testid-prefix": "section-wrapper",
|
|
2489
2489
|
"onUpdate:modelValue": M
|
|
2490
2490
|
}, null, 8, ["model-value", "label"])
|
|
2491
|
-
])) :
|
|
2492
|
-
])) :
|
|
2491
|
+
])) : m("", !0)
|
|
2492
|
+
])) : m("", !0)
|
|
2493
2493
|
], 64));
|
|
2494
2494
|
}
|
|
2495
|
-
}), ta = { class: "tpl:mb-3.5" }, na = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ra = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ia = ["value", "onChange"], aa = ["value"], oa = ["title", "onClick"], sa = { class: "tpl:mb-3.5" }, ca = ["value"], la = { value: "solid" }, ua = { value: "outlined" }, da = { value: "rounded" }, fa = { value: "square" }, pa = { value: "circle" }, ma = { value: "plain" }, ha = { class: "tpl:mb-3.5" }, ga = ["value"], _a = { value: "brand" }, va = { value: "dark" }, ya = { value: "light" }, ba = { class: "tpl:mb-3.5" }, xa = { class: "tpl:mb-3.5" }, Sa = { class: "tpl:flex tpl:items-stretch" }, Ca = ["value"], wa = { class: "tpl:mb-3.5" }, Ta = /* @__PURE__ */
|
|
2495
|
+
}), ta = { class: "tpl:mb-3.5" }, na = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ra = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ia = ["value", "onChange"], aa = ["value"], oa = ["title", "onClick"], sa = { class: "tpl:mb-3.5" }, ca = ["value"], la = { value: "solid" }, ua = { value: "outlined" }, da = { value: "rounded" }, fa = { value: "square" }, pa = { value: "circle" }, ma = { value: "plain" }, ha = { class: "tpl:mb-3.5" }, ga = ["value"], _a = { value: "brand" }, va = { value: "dark" }, ya = { value: "light" }, ba = { class: "tpl:mb-3.5" }, xa = { class: "tpl:mb-3.5" }, Sa = { class: "tpl:flex tpl:items-stretch" }, Ca = ["value"], wa = { class: "tpl:mb-3.5" }, Ta = /* @__PURE__ */ w({
|
|
2496
2496
|
__name: "SocialToolbar",
|
|
2497
2497
|
props: { block: {} },
|
|
2498
2498
|
emits: ["update"],
|
|
2499
2499
|
setup(e, { emit: n }) {
|
|
2500
|
-
let r = e, i = n, { t:
|
|
2501
|
-
function
|
|
2500
|
+
let r = e, i = n, { t: s } = B();
|
|
2501
|
+
function c(e, t) {
|
|
2502
2502
|
i("update", { [e]: t });
|
|
2503
2503
|
}
|
|
2504
|
-
function
|
|
2504
|
+
function l() {
|
|
2505
2505
|
let e = {
|
|
2506
|
-
id:
|
|
2506
|
+
id: A(),
|
|
2507
2507
|
platform: "facebook",
|
|
2508
2508
|
url: ""
|
|
2509
2509
|
};
|
|
2510
2510
|
i("update", { icons: [...r.block.icons, e] });
|
|
2511
2511
|
}
|
|
2512
|
-
function
|
|
2512
|
+
function u(e, t, n) {
|
|
2513
2513
|
let a = r.block.icons.map((r) => r.id === e ? {
|
|
2514
2514
|
...r,
|
|
2515
2515
|
[t]: n
|
|
2516
2516
|
} : r);
|
|
2517
2517
|
i("update", { icons: a });
|
|
2518
2518
|
}
|
|
2519
|
-
function
|
|
2519
|
+
function d(e) {
|
|
2520
2520
|
i("update", { icons: r.block.icons.filter((t) => t.id !== e) });
|
|
2521
2521
|
}
|
|
2522
|
-
return (n, r) => (
|
|
2523
|
-
|
|
2522
|
+
return (n, r) => (_(), h(x, null, [
|
|
2523
|
+
y("div", ta, [y("label", { class: t(b(U)) }, a(b(s).social.icons), 3), y("div", na, [(_(!0), h(x, null, o(e.block.icons, (e) => (_(), h("div", {
|
|
2524
2524
|
key: e.id,
|
|
2525
2525
|
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
|
-
}, [
|
|
2526
|
+
}, [y("div", ra, [y("select", {
|
|
2527
2527
|
"data-testid": "social-platform-select",
|
|
2528
|
-
class:
|
|
2528
|
+
class: t([b(K), "tpl:flex-1"]),
|
|
2529
2529
|
value: e.platform,
|
|
2530
|
-
onChange: (t) =>
|
|
2531
|
-
}, [(
|
|
2530
|
+
onChange: (t) => u(e.id, "platform", t.target.value)
|
|
2531
|
+
}, [(_(!0), h(x, null, o(b(ye), (e) => (_(), h("option", {
|
|
2532
2532
|
key: e,
|
|
2533
2533
|
value: e
|
|
2534
|
-
},
|
|
2535
|
-
class: b(
|
|
2536
|
-
title:
|
|
2537
|
-
onClick: (t) =>
|
|
2538
|
-
}, [
|
|
2534
|
+
}, a(b(s).social.platforms[e]), 9, aa))), 128))], 42, ia), y("button", {
|
|
2535
|
+
class: t(b(et)),
|
|
2536
|
+
title: b(s).social.removeIcon,
|
|
2537
|
+
onClick: (t) => d(e.id)
|
|
2538
|
+
}, [f(b(Ze), {
|
|
2539
2539
|
size: 14,
|
|
2540
2540
|
"stroke-width": 2
|
|
2541
|
-
})], 10, oa)]),
|
|
2541
|
+
})], 10, oa)]), f(J, {
|
|
2542
2542
|
"model-value": e.url,
|
|
2543
2543
|
type: "url",
|
|
2544
|
-
placeholder:
|
|
2545
|
-
"onUpdate:modelValue": (t) =>
|
|
2544
|
+
placeholder: b(s).social.urlPlaceholder,
|
|
2545
|
+
"onUpdate:modelValue": (t) => u(e.id, "url", t)
|
|
2546
2546
|
}, null, 8, [
|
|
2547
2547
|
"model-value",
|
|
2548
2548
|
"placeholder",
|
|
2549
2549
|
"onUpdate:modelValue"
|
|
2550
|
-
])]))), 128)),
|
|
2551
|
-
class: b(
|
|
2552
|
-
onClick:
|
|
2553
|
-
}, [
|
|
2550
|
+
])]))), 128)), y("button", {
|
|
2551
|
+
class: t(b(tt)),
|
|
2552
|
+
onClick: l
|
|
2553
|
+
}, [f(b(H), {
|
|
2554
2554
|
size: 14,
|
|
2555
2555
|
"stroke-width": 2
|
|
2556
|
-
}),
|
|
2557
|
-
|
|
2558
|
-
class: b(
|
|
2556
|
+
}), g(" " + a(b(s).social.addIcon), 1)], 2)])]),
|
|
2557
|
+
y("div", sa, [y("label", { class: t(b(U)) }, a(b(s).social.style), 3), y("select", {
|
|
2558
|
+
class: t(b(K)),
|
|
2559
2559
|
value: e.block.iconStyle,
|
|
2560
|
-
onChange: r[0] ||= (e) =>
|
|
2560
|
+
onChange: r[0] ||= (e) => c("iconStyle", e.target.value)
|
|
2561
2561
|
}, [
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2562
|
+
y("option", la, a(b(s).social.styleSolid), 1),
|
|
2563
|
+
y("option", ua, a(b(s).social.styleOutlined), 1),
|
|
2564
|
+
y("option", da, a(b(s).social.styleRounded), 1),
|
|
2565
|
+
y("option", fa, a(b(s).social.styleSquare), 1),
|
|
2566
|
+
y("option", pa, a(b(s).social.styleCircle), 1),
|
|
2567
|
+
y("option", ma, a(b(s).social.stylePlain), 1)
|
|
2568
2568
|
], 42, ca)]),
|
|
2569
|
-
|
|
2569
|
+
y("div", ha, [y("label", { class: t(b(U)) }, a(b(s).social.color), 3), y("select", {
|
|
2570
2570
|
"data-testid": "social-tone-select",
|
|
2571
|
-
class: b(
|
|
2571
|
+
class: t(b(K)),
|
|
2572
2572
|
value: e.block.iconTone ?? "brand",
|
|
2573
|
-
onChange: r[1] ||= (e) =>
|
|
2573
|
+
onChange: r[1] ||= (e) => c("iconTone", e.target.value)
|
|
2574
2574
|
}, [
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2575
|
+
y("option", _a, a(b(s).social.colorBrand), 1),
|
|
2576
|
+
y("option", va, a(b(s).social.colorDark), 1),
|
|
2577
|
+
y("option", ya, a(b(s).social.colorLight), 1)
|
|
2578
2578
|
], 42, ga)]),
|
|
2579
|
-
|
|
2579
|
+
y("div", ba, [y("label", { class: t(b(U)) }, a(b(s).social.size), 3), f(Y, {
|
|
2580
2580
|
options: [
|
|
2581
2581
|
{
|
|
2582
2582
|
value: "small",
|
|
2583
|
-
label:
|
|
2583
|
+
label: b(s).social.sizeSmall
|
|
2584
2584
|
},
|
|
2585
2585
|
{
|
|
2586
2586
|
value: "medium",
|
|
2587
|
-
label:
|
|
2587
|
+
label: b(s).social.sizeMedium
|
|
2588
2588
|
},
|
|
2589
2589
|
{
|
|
2590
2590
|
value: "large",
|
|
2591
|
-
label:
|
|
2591
|
+
label: b(s).social.sizeLarge
|
|
2592
2592
|
}
|
|
2593
2593
|
],
|
|
2594
2594
|
"model-value": e.block.iconSize,
|
|
2595
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
2595
|
+
"onUpdate:modelValue": r[2] ||= (e) => c("iconSize", e)
|
|
2596
2596
|
}, null, 8, ["options", "model-value"])]),
|
|
2597
|
-
|
|
2597
|
+
y("div", xa, [y("label", { class: t(b(U)) }, a(b(s).social.spacing), 3), y("div", Sa, [y("input", {
|
|
2598
2598
|
type: "number",
|
|
2599
|
-
class: b(
|
|
2599
|
+
class: t(b(G)),
|
|
2600
2600
|
value: e.block.spacing,
|
|
2601
2601
|
min: "0",
|
|
2602
2602
|
max: "50",
|
|
2603
|
-
onInput: r[3] ||= (e) =>
|
|
2604
|
-
}, null, 42, Ca),
|
|
2605
|
-
|
|
2603
|
+
onInput: r[3] ||= (e) => c("spacing", Number(e.target.value))
|
|
2604
|
+
}, null, 42, Ca), y("span", { class: t(b(W)) }, "px", 2)])]),
|
|
2605
|
+
y("div", wa, [y("label", { class: t(b(U)) }, a(b(s).social.align), 3), f(Y, {
|
|
2606
2606
|
options: [
|
|
2607
2607
|
{
|
|
2608
2608
|
value: "left",
|
|
2609
|
-
label:
|
|
2610
|
-
icon:
|
|
2609
|
+
label: b(s).title.alignLeft,
|
|
2610
|
+
icon: b(Ye)
|
|
2611
2611
|
},
|
|
2612
2612
|
{
|
|
2613
2613
|
value: "center",
|
|
2614
|
-
label:
|
|
2615
|
-
icon:
|
|
2614
|
+
label: b(s).title.alignCenter,
|
|
2615
|
+
icon: b(Je)
|
|
2616
2616
|
},
|
|
2617
2617
|
{
|
|
2618
2618
|
value: "right",
|
|
2619
|
-
label:
|
|
2620
|
-
icon:
|
|
2619
|
+
label: b(s).title.alignRight,
|
|
2620
|
+
icon: b(qe)
|
|
2621
2621
|
}
|
|
2622
2622
|
],
|
|
2623
2623
|
"model-value": e.block.align,
|
|
2624
|
-
"onUpdate:modelValue": r[4] ||= (e) =>
|
|
2624
|
+
"onUpdate:modelValue": r[4] ||= (e) => c("align", e)
|
|
2625
2625
|
}, null, 8, ["options", "model-value"])])
|
|
2626
2626
|
], 64));
|
|
2627
2627
|
}
|
|
2628
|
-
}), Ea = { class: "tpl:mb-3.5" }, Da = { class: "tpl:flex tpl:items-stretch" }, Oa = ["value"], ka = ["value"], Aa = /* @__PURE__ */
|
|
2628
|
+
}), Ea = { class: "tpl:mb-3.5" }, Da = { class: "tpl:flex tpl:items-stretch" }, Oa = ["value"], ka = ["value"], Aa = /* @__PURE__ */ w({
|
|
2629
2629
|
__name: "SpacerToolbar",
|
|
2630
2630
|
props: { block: {} },
|
|
2631
2631
|
emits: ["update"],
|
|
2632
2632
|
setup(e, { emit: n }) {
|
|
2633
2633
|
let r = n, { t: i } = B();
|
|
2634
|
-
return (n,
|
|
2635
|
-
|
|
2636
|
-
|
|
2634
|
+
return (n, o) => (_(), h("div", Ea, [
|
|
2635
|
+
y("label", { class: t(b(U)) }, a(b(i).spacer.height), 3),
|
|
2636
|
+
y("div", Da, [y("input", {
|
|
2637
2637
|
type: "number",
|
|
2638
|
-
class: b(
|
|
2638
|
+
class: t(b(G)),
|
|
2639
2639
|
value: e.block.height,
|
|
2640
2640
|
min: "10",
|
|
2641
2641
|
max: "100",
|
|
2642
|
-
onInput:
|
|
2643
|
-
}, null, 42, Oa),
|
|
2644
|
-
|
|
2642
|
+
onInput: o[0] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
2643
|
+
}, null, 42, Oa), y("span", { class: t(b(W)) }, "px", 2)]),
|
|
2644
|
+
y("input", {
|
|
2645
2645
|
type: "range",
|
|
2646
2646
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
2647
2647
|
value: e.block.height,
|
|
2648
2648
|
min: "10",
|
|
2649
2649
|
max: "100",
|
|
2650
|
-
onInput:
|
|
2650
|
+
onInput: o[1] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
2651
2651
|
}, null, 40, ka)
|
|
2652
2652
|
]));
|
|
2653
2653
|
}
|
|
2654
2654
|
}), ja = { class: "tpl:mb-3.5" }, Ma = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Na = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Pa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Fa = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ia = ["disabled"], La = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ra = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, za = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ba = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Va = ["disabled"], Ha = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ua = { class: "tpl:mb-3.5" }, Wa = {
|
|
2655
2655
|
key: 0,
|
|
2656
2656
|
class: "tpl:mb-3.5"
|
|
2657
|
-
}, Ga = { class: "tpl:mb-3.5" }, Ka = { class: "tpl:mb-3.5" }, qa = { class: "tpl:flex tpl:items-stretch" }, Ja = ["value"], Ya = { class: "tpl:mb-3.5" }, Xa = { class: "tpl:flex tpl:items-stretch" }, Za = ["value"], Qa = { class: "tpl:mb-3.5" }, $a = ["value"], eo = { value: "" }, to = ["value"], no = { class: "tpl:mb-3.5" }, ro = { class: "tpl:flex tpl:items-stretch" }, io = ["value"], ao = { class: "tpl:mb-3.5" }, oo = { class: "tpl:mb-3.5" }, so = /* @__PURE__ */
|
|
2657
|
+
}, Ga = { class: "tpl:mb-3.5" }, Ka = { class: "tpl:mb-3.5" }, qa = { class: "tpl:flex tpl:items-stretch" }, Ja = ["value"], Ya = { class: "tpl:mb-3.5" }, Xa = { class: "tpl:flex tpl:items-stretch" }, Za = ["value"], Qa = { class: "tpl:mb-3.5" }, $a = ["value"], eo = { value: "" }, to = ["value"], no = { class: "tpl:mb-3.5" }, ro = { class: "tpl:flex tpl:items-stretch" }, io = ["value"], ao = { class: "tpl:mb-3.5" }, oo = { class: "tpl:mb-3.5" }, so = /* @__PURE__ */ w({
|
|
2658
2658
|
__name: "TableToolbar",
|
|
2659
2659
|
props: {
|
|
2660
2660
|
block: {},
|
|
@@ -2662,156 +2662,156 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2662
2662
|
},
|
|
2663
2663
|
emits: ["update"],
|
|
2664
2664
|
setup(e, { emit: n }) {
|
|
2665
|
-
let r = e, i = n, { t:
|
|
2666
|
-
function
|
|
2665
|
+
let r = e, i = n, { t: s } = B(), c = p(() => r.block.rows.length > 0 ? r.block.rows[0].cells.length : 0);
|
|
2666
|
+
function l(e, t) {
|
|
2667
2667
|
i("update", { [e]: t });
|
|
2668
2668
|
}
|
|
2669
|
-
function
|
|
2669
|
+
function u() {
|
|
2670
2670
|
let e = r.block.rows.length > 0 ? r.block.rows[0].cells.length : 3, t = {
|
|
2671
|
-
id:
|
|
2671
|
+
id: A(),
|
|
2672
2672
|
cells: Array.from({ length: e }, () => ({
|
|
2673
|
-
id:
|
|
2673
|
+
id: A(),
|
|
2674
2674
|
content: ""
|
|
2675
2675
|
}))
|
|
2676
2676
|
};
|
|
2677
2677
|
i("update", { rows: [...r.block.rows, t] });
|
|
2678
2678
|
}
|
|
2679
|
-
function
|
|
2679
|
+
function d(e) {
|
|
2680
2680
|
i("update", { rows: r.block.rows.filter((t) => t.id !== e) });
|
|
2681
2681
|
}
|
|
2682
|
-
function
|
|
2682
|
+
function g() {
|
|
2683
2683
|
let e = r.block.rows.map((e) => ({
|
|
2684
2684
|
...e,
|
|
2685
2685
|
cells: [...e.cells, {
|
|
2686
|
-
id:
|
|
2686
|
+
id: A(),
|
|
2687
2687
|
content: ""
|
|
2688
2688
|
}]
|
|
2689
2689
|
}));
|
|
2690
2690
|
i("update", { rows: e });
|
|
2691
2691
|
}
|
|
2692
|
-
function
|
|
2692
|
+
function v(e) {
|
|
2693
2693
|
let t = r.block.rows.map((t) => ({
|
|
2694
2694
|
...t,
|
|
2695
2695
|
cells: t.cells.filter((t, n) => n !== e)
|
|
2696
2696
|
}));
|
|
2697
2697
|
i("update", { rows: t });
|
|
2698
2698
|
}
|
|
2699
|
-
return (n, r) => (
|
|
2700
|
-
|
|
2701
|
-
|
|
2699
|
+
return (n, r) => (_(), h(x, null, [
|
|
2700
|
+
y("div", ja, [y("label", { class: t(b(U)) }, a(b(s).table.dimensions), 3), y("div", Ma, [y("div", Na, [y("span", Pa, a(b(s).table.rows), 1), y("div", Fa, [
|
|
2701
|
+
y("button", {
|
|
2702
2702
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
|
|
2703
2703
|
disabled: e.block.rows.length <= 1,
|
|
2704
|
-
onClick: r[0] ||= (t) =>
|
|
2705
|
-
}, [
|
|
2704
|
+
onClick: r[0] ||= (t) => d(e.block.rows[e.block.rows.length - 1].id)
|
|
2705
|
+
}, [f(b(Re), {
|
|
2706
2706
|
size: 12,
|
|
2707
2707
|
"stroke-width": 2
|
|
2708
2708
|
})], 8, Ia),
|
|
2709
|
-
|
|
2710
|
-
|
|
2709
|
+
y("span", La, a(e.block.rows.length), 1),
|
|
2710
|
+
y("button", {
|
|
2711
2711
|
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
|
-
}, [
|
|
2712
|
+
onClick: u
|
|
2713
|
+
}, [f(b(H), {
|
|
2714
2714
|
size: 12,
|
|
2715
2715
|
"stroke-width": 2
|
|
2716
2716
|
})])
|
|
2717
|
-
])]),
|
|
2718
|
-
|
|
2717
|
+
])]), y("div", Ra, [y("span", za, a(b(s).table.columns), 1), y("div", Ba, [
|
|
2718
|
+
y("button", {
|
|
2719
2719
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
|
|
2720
|
-
disabled:
|
|
2721
|
-
onClick: r[1] ||= (e) =>
|
|
2722
|
-
}, [
|
|
2720
|
+
disabled: c.value <= 1,
|
|
2721
|
+
onClick: r[1] ||= (e) => v(c.value - 1)
|
|
2722
|
+
}, [f(b(Re), {
|
|
2723
2723
|
size: 12,
|
|
2724
2724
|
"stroke-width": 2
|
|
2725
2725
|
})], 8, Va),
|
|
2726
|
-
|
|
2727
|
-
|
|
2726
|
+
y("span", Ha, a(c.value), 1),
|
|
2727
|
+
y("button", {
|
|
2728
2728
|
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
|
-
}, [
|
|
2729
|
+
onClick: g
|
|
2730
|
+
}, [f(b(H), {
|
|
2731
2731
|
size: 12,
|
|
2732
2732
|
"stroke-width": 2
|
|
2733
2733
|
})])
|
|
2734
2734
|
])])])]),
|
|
2735
|
-
|
|
2735
|
+
y("div", Ua, [f(q, {
|
|
2736
2736
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
2737
2737
|
"model-value": e.block.hasHeaderRow,
|
|
2738
|
-
label:
|
|
2739
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
2738
|
+
label: b(s).table.hasHeaderRow,
|
|
2739
|
+
"onUpdate:modelValue": r[2] ||= (e) => l("hasHeaderRow", e)
|
|
2740
2740
|
}, null, 8, ["model-value", "label"])]),
|
|
2741
|
-
e.block.hasHeaderRow ? (
|
|
2741
|
+
e.block.hasHeaderRow ? (_(), h("div", Wa, [y("label", { class: t(b(U)) }, a(b(s).table.headerBackgroundColor), 3), f(V, {
|
|
2742
2742
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
2743
|
-
"seed-color":
|
|
2744
|
-
placeholder:
|
|
2745
|
-
"onUpdate:modelValue": r[3] ||= (e) =>
|
|
2743
|
+
"seed-color": b(nt),
|
|
2744
|
+
placeholder: b(s).table.noHeaderBg,
|
|
2745
|
+
"onUpdate:modelValue": r[3] ||= (e) => l("headerBackgroundColor", e || null)
|
|
2746
2746
|
}, null, 8, [
|
|
2747
2747
|
"model-value",
|
|
2748
2748
|
"seed-color",
|
|
2749
2749
|
"placeholder"
|
|
2750
|
-
])])) :
|
|
2751
|
-
|
|
2750
|
+
])])) : m("", !0),
|
|
2751
|
+
y("div", Ga, [y("label", { class: t(b(U)) }, a(b(s).table.borderColor), 3), f(V, {
|
|
2752
2752
|
"model-value": e.block.borderColor,
|
|
2753
|
-
"onUpdate:modelValue": r[4] ||= (e) =>
|
|
2753
|
+
"onUpdate:modelValue": r[4] ||= (e) => l("borderColor", e)
|
|
2754
2754
|
}, null, 8, ["model-value"])]),
|
|
2755
|
-
|
|
2755
|
+
y("div", Ka, [y("label", { class: t(b(U)) }, a(b(s).table.borderWidth), 3), y("div", qa, [y("input", {
|
|
2756
2756
|
type: "number",
|
|
2757
|
-
class: b(
|
|
2757
|
+
class: t(b(G)),
|
|
2758
2758
|
value: e.block.borderWidth,
|
|
2759
2759
|
min: "0",
|
|
2760
2760
|
max: "10",
|
|
2761
|
-
onInput: r[5] ||= (e) =>
|
|
2762
|
-
}, null, 42, Ja),
|
|
2763
|
-
|
|
2761
|
+
onInput: r[5] ||= (e) => l("borderWidth", Number(e.target.value))
|
|
2762
|
+
}, null, 42, Ja), y("span", { class: t(b(W)) }, "px", 2)])]),
|
|
2763
|
+
y("div", Ya, [y("label", { class: t(b(U)) }, a(b(s).table.cellPadding), 3), y("div", Xa, [y("input", {
|
|
2764
2764
|
type: "number",
|
|
2765
|
-
class: b(
|
|
2765
|
+
class: t(b(G)),
|
|
2766
2766
|
value: e.block.cellPadding,
|
|
2767
2767
|
min: "0",
|
|
2768
2768
|
max: "30",
|
|
2769
|
-
onInput: r[6] ||= (e) =>
|
|
2770
|
-
}, null, 42, Za),
|
|
2771
|
-
|
|
2772
|
-
class: b(
|
|
2773
|
-
value:
|
|
2774
|
-
onChange: r[7] ||= (e) =>
|
|
2775
|
-
}, [
|
|
2769
|
+
onInput: r[6] ||= (e) => l("cellPadding", Number(e.target.value))
|
|
2770
|
+
}, null, 42, Za), y("span", { class: t(b(W)) }, "px", 2)])]),
|
|
2771
|
+
y("div", Qa, [y("label", { class: t(b(U)) }, a(b(s).table.fontFamily), 3), y("select", {
|
|
2772
|
+
class: t(b(K)),
|
|
2773
|
+
value: b(ot)(e.block.fontFamily),
|
|
2774
|
+
onChange: r[7] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
2775
|
+
}, [y("option", eo, a(b(s).title.inheritFont), 1), (_(!0), h(x, null, o(e.fontFamilies, (e) => (_(), h("option", {
|
|
2776
2776
|
key: e.value,
|
|
2777
2777
|
value: e.value
|
|
2778
|
-
},
|
|
2779
|
-
|
|
2778
|
+
}, a(e.label), 9, to))), 128))], 42, $a)]),
|
|
2779
|
+
y("div", no, [y("label", { class: t(b(U)) }, a(b(s).table.fontSize), 3), y("div", ro, [y("input", {
|
|
2780
2780
|
type: "number",
|
|
2781
|
-
class: b(
|
|
2781
|
+
class: t(b(G)),
|
|
2782
2782
|
value: e.block.fontSize,
|
|
2783
2783
|
min: "10",
|
|
2784
2784
|
max: "32",
|
|
2785
|
-
onInput: r[8] ||= (e) =>
|
|
2786
|
-
}, null, 42, io),
|
|
2787
|
-
|
|
2785
|
+
onInput: r[8] ||= (e) => l("fontSize", Number(e.target.value))
|
|
2786
|
+
}, null, 42, io), y("span", { class: t(b(W)) }, "px", 2)])]),
|
|
2787
|
+
y("div", ao, [y("label", { class: t(b(U)) }, a(b(s).table.color), 3), f(V, {
|
|
2788
2788
|
"model-value": e.block.color ?? "",
|
|
2789
|
-
"onUpdate:modelValue": r[9] ||= (e) =>
|
|
2789
|
+
"onUpdate:modelValue": r[9] ||= (e) => l("color", e || void 0)
|
|
2790
2790
|
}, null, 8, ["model-value"])]),
|
|
2791
|
-
|
|
2791
|
+
y("div", oo, [y("label", { class: t(b(U)) }, a(b(s).table.textAlign), 3), f(Y, {
|
|
2792
2792
|
options: [
|
|
2793
2793
|
{
|
|
2794
2794
|
value: "left",
|
|
2795
|
-
label:
|
|
2796
|
-
icon:
|
|
2795
|
+
label: b(s).title.alignLeft,
|
|
2796
|
+
icon: b(Ye)
|
|
2797
2797
|
},
|
|
2798
2798
|
{
|
|
2799
2799
|
value: "center",
|
|
2800
|
-
label:
|
|
2801
|
-
icon:
|
|
2800
|
+
label: b(s).title.alignCenter,
|
|
2801
|
+
icon: b(Je)
|
|
2802
2802
|
},
|
|
2803
2803
|
{
|
|
2804
2804
|
value: "right",
|
|
2805
|
-
label:
|
|
2806
|
-
icon:
|
|
2805
|
+
label: b(s).title.alignRight,
|
|
2806
|
+
icon: b(qe)
|
|
2807
2807
|
}
|
|
2808
2808
|
],
|
|
2809
2809
|
"model-value": e.block.textAlign,
|
|
2810
|
-
"onUpdate:modelValue": r[10] ||= (e) =>
|
|
2810
|
+
"onUpdate:modelValue": r[10] ||= (e) => l("textAlign", e)
|
|
2811
2811
|
}, null, 8, ["options", "model-value"])])
|
|
2812
2812
|
], 64));
|
|
2813
2813
|
}
|
|
2814
|
-
}), co = { class: "tpl:mb-3.5" }, lo = ["value"], uo = { value: 1 }, fo = { value: 2 }, po = { value: 3 }, mo = { value: 4 }, ho = { class: "tpl:mb-3.5" }, go = ["value"], _o = { value: "" }, vo = ["value"], yo = { class: "tpl:mb-3.5" }, bo = { class: "tpl:mb-3.5" }, xo = /* @__PURE__ */
|
|
2814
|
+
}), co = { class: "tpl:mb-3.5" }, lo = ["value"], uo = { value: 1 }, fo = { value: 2 }, po = { value: 3 }, mo = { value: 4 }, ho = { class: "tpl:mb-3.5" }, go = ["value"], _o = { value: "" }, vo = ["value"], yo = { class: "tpl:mb-3.5" }, bo = { class: "tpl:mb-3.5" }, xo = /* @__PURE__ */ w({
|
|
2815
2815
|
__name: "TitleToolbar",
|
|
2816
2816
|
props: {
|
|
2817
2817
|
block: {},
|
|
@@ -2820,52 +2820,52 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2820
2820
|
emits: ["update"],
|
|
2821
2821
|
setup(e, { emit: n }) {
|
|
2822
2822
|
let r = n, { t: i } = B();
|
|
2823
|
-
function
|
|
2823
|
+
function s(e, t) {
|
|
2824
2824
|
r("update", { [e]: t });
|
|
2825
2825
|
}
|
|
2826
|
-
return (n, r) => (
|
|
2827
|
-
|
|
2828
|
-
class: b(
|
|
2826
|
+
return (n, r) => (_(), h(x, null, [
|
|
2827
|
+
y("div", co, [y("label", { class: t(b(U)) }, a(b(i).title.level), 3), y("select", {
|
|
2828
|
+
class: t(b(K)),
|
|
2829
2829
|
value: e.block.level,
|
|
2830
|
-
onChange: r[0] ||= (e) =>
|
|
2830
|
+
onChange: r[0] ||= (e) => s("level", Number(e.target.value))
|
|
2831
2831
|
}, [
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2832
|
+
y("option", uo, a(b(i).title.heading1), 1),
|
|
2833
|
+
y("option", fo, a(b(i).title.heading2), 1),
|
|
2834
|
+
y("option", po, a(b(i).title.heading3), 1),
|
|
2835
|
+
y("option", mo, a(b(i).title.heading4), 1)
|
|
2836
2836
|
], 42, lo)]),
|
|
2837
|
-
|
|
2838
|
-
class: b(
|
|
2839
|
-
value:
|
|
2840
|
-
onChange: r[1] ||= (e) =>
|
|
2841
|
-
}, [
|
|
2837
|
+
y("div", ho, [y("label", { class: t(b(U)) }, a(b(i).title.fontFamily), 3), y("select", {
|
|
2838
|
+
class: t(b(K)),
|
|
2839
|
+
value: b(ot)(e.block.fontFamily),
|
|
2840
|
+
onChange: r[1] ||= (e) => s("fontFamily", e.target.value || void 0)
|
|
2841
|
+
}, [y("option", _o, a(b(i).title.inheritFont), 1), (_(!0), h(x, null, o(e.fontFamilies, (e) => (_(), h("option", {
|
|
2842
2842
|
key: e.value,
|
|
2843
2843
|
value: e.value
|
|
2844
|
-
},
|
|
2845
|
-
|
|
2844
|
+
}, a(e.label), 9, vo))), 128))], 42, go)]),
|
|
2845
|
+
y("div", yo, [y("label", { class: t(b(U)) }, a(b(i).title.color), 3), f(V, {
|
|
2846
2846
|
"model-value": e.block.color ?? "",
|
|
2847
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
2847
|
+
"onUpdate:modelValue": r[2] ||= (e) => s("color", e || void 0)
|
|
2848
2848
|
}, null, 8, ["model-value"])]),
|
|
2849
|
-
|
|
2849
|
+
y("div", bo, [y("label", { class: t(b(U)) }, a(b(i).title.align), 3), f(Y, {
|
|
2850
2850
|
options: [
|
|
2851
2851
|
{
|
|
2852
2852
|
value: "left",
|
|
2853
|
-
label:
|
|
2854
|
-
icon:
|
|
2853
|
+
label: b(i).title.alignLeft,
|
|
2854
|
+
icon: b(Ye)
|
|
2855
2855
|
},
|
|
2856
2856
|
{
|
|
2857
2857
|
value: "center",
|
|
2858
|
-
label:
|
|
2859
|
-
icon:
|
|
2858
|
+
label: b(i).title.alignCenter,
|
|
2859
|
+
icon: b(Je)
|
|
2860
2860
|
},
|
|
2861
2861
|
{
|
|
2862
2862
|
value: "right",
|
|
2863
|
-
label:
|
|
2864
|
-
icon:
|
|
2863
|
+
label: b(i).title.alignRight,
|
|
2864
|
+
icon: b(qe)
|
|
2865
2865
|
}
|
|
2866
2866
|
],
|
|
2867
2867
|
"model-value": e.block.textAlign,
|
|
2868
|
-
"onUpdate:modelValue": r[3] ||= (e) =>
|
|
2868
|
+
"onUpdate:modelValue": r[3] ||= (e) => s("textAlign", e)
|
|
2869
2869
|
}, null, 8, ["options", "model-value"])])
|
|
2870
2870
|
], 64));
|
|
2871
2871
|
}
|
|
@@ -2882,76 +2882,76 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2882
2882
|
}, Po = ["value"], Fo = { class: "tpl:mb-3.5" }, Io = ["value"], Lo = { value: "auto" }, Ro = { value: "custom" }, zo = {
|
|
2883
2883
|
key: 0,
|
|
2884
2884
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2885
|
-
}, Bo = ["value"], Vo = { class: "tpl:mb-3.5" }, Ho = 350, Uo = 200, Wo = /* @__PURE__ */
|
|
2885
|
+
}, Bo = ["value"], Vo = { class: "tpl:mb-3.5" }, Ho = 350, Uo = 200, Wo = /* @__PURE__ */ w({
|
|
2886
2886
|
__name: "VideoToolbar",
|
|
2887
2887
|
props: { block: {} },
|
|
2888
2888
|
emits: ["update"],
|
|
2889
|
-
setup(e, { emit:
|
|
2890
|
-
let
|
|
2889
|
+
setup(e, { emit: r }) {
|
|
2890
|
+
let i = e, o = r, { t: s } = B(), l = n(we, null), u = n(Te, N.liquid), d = z(), v = [
|
|
2891
2891
|
300,
|
|
2892
2892
|
400,
|
|
2893
2893
|
500
|
|
2894
|
-
],
|
|
2895
|
-
let e =
|
|
2896
|
-
return e === "full" ? "full" :
|
|
2897
|
-
}), E =
|
|
2894
|
+
], C = p(() => !!l), w = p(() => I(i.block.url, u)), T = p(() => {
|
|
2895
|
+
let e = i.block.width;
|
|
2896
|
+
return e === "full" ? "full" : v.includes(e) ? String(e) : "custom";
|
|
2897
|
+
}), E = p(() => typeof i.block.height == "number" ? "custom" : "auto"), D = c(!1), { start: O } = xe(() => {
|
|
2898
2898
|
D.value = !1;
|
|
2899
2899
|
}, 1e3, { immediate: !1 });
|
|
2900
2900
|
function k(e, t) {
|
|
2901
|
-
|
|
2901
|
+
o("update", { [e]: t });
|
|
2902
2902
|
}
|
|
2903
2903
|
function A(e) {
|
|
2904
2904
|
if (e === "custom") {
|
|
2905
|
-
let e =
|
|
2906
|
-
(typeof e != "number" ||
|
|
2905
|
+
let e = i.block.width;
|
|
2906
|
+
(typeof e != "number" || v.includes(e)) && k("width", Ho);
|
|
2907
2907
|
} else k("width", e === "full" ? "full" : Number(e));
|
|
2908
2908
|
}
|
|
2909
2909
|
function j(e) {
|
|
2910
2910
|
let t = Number(e);
|
|
2911
2911
|
!Number.isFinite(t) || t <= 0 || k("width", t);
|
|
2912
2912
|
}
|
|
2913
|
-
function
|
|
2913
|
+
function M(e) {
|
|
2914
2914
|
k("height", e === "custom" ? Uo : void 0);
|
|
2915
2915
|
}
|
|
2916
|
-
function
|
|
2916
|
+
function P(e) {
|
|
2917
2917
|
let t = Number(e);
|
|
2918
2918
|
!Number.isFinite(t) || t <= 0 || k("height", t);
|
|
2919
2919
|
}
|
|
2920
|
-
async function
|
|
2921
|
-
let e = await
|
|
2922
|
-
|
|
2920
|
+
async function F() {
|
|
2921
|
+
let e = await l?.({ accept: ["images"] });
|
|
2922
|
+
d.alive && e && (k("thumbnailUrl", e.url), D.value = !0, O());
|
|
2923
2923
|
}
|
|
2924
|
-
return (n, r) => (
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2924
|
+
return (n, r) => (_(), h(x, null, [
|
|
2925
|
+
y("div", So, [
|
|
2926
|
+
y("label", { class: t(b(U)) }, a(b(s).video.videoUrl), 3),
|
|
2927
|
+
f(J, {
|
|
2928
2928
|
"model-value": e.block.url,
|
|
2929
2929
|
type: "url",
|
|
2930
|
-
placeholder:
|
|
2930
|
+
placeholder: b(s).video.videoUrlPlaceholder,
|
|
2931
2931
|
"onUpdate:modelValue": r[0] ||= (e) => k("url", e)
|
|
2932
2932
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2933
|
-
e.block.url ? (
|
|
2933
|
+
e.block.url ? (_(), S(q, {
|
|
2934
2934
|
key: 0,
|
|
2935
2935
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2936
2936
|
"model-value": e.block.openInNewTab ?? !1,
|
|
2937
|
-
label:
|
|
2937
|
+
label: b(s).video.openInNewTab,
|
|
2938
2938
|
"onUpdate:modelValue": r[1] ||= (e) => k("openInNewTab", e)
|
|
2939
|
-
}, null, 8, ["model-value", "label"])) :
|
|
2939
|
+
}, null, 8, ["model-value", "label"])) : m("", !0)
|
|
2940
2940
|
]),
|
|
2941
|
-
|
|
2941
|
+
w.value ? (_(), h("div", Co, [y("label", { class: t(b(U)) }, [g(a(b(s).video.placeholderUrl) + " ", 1), y("span", wo, a(b(s).video.optional), 1)], 2), y("input", {
|
|
2942
2942
|
type: "url",
|
|
2943
|
-
class: b(
|
|
2943
|
+
class: t(b(K)),
|
|
2944
2944
|
value: e.block.placeholderUrl || "",
|
|
2945
|
-
placeholder:
|
|
2946
|
-
title:
|
|
2945
|
+
placeholder: b(s).video.placeholderUrlPlaceholder,
|
|
2946
|
+
title: b(s).video.placeholderUrlTooltip,
|
|
2947
2947
|
onInput: r[2] ||= (e) => k("placeholderUrl", e.target.value)
|
|
2948
|
-
}, null, 42, To)])) :
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2948
|
+
}, null, 42, To)])) : m("", !0),
|
|
2949
|
+
y("div", Eo, [
|
|
2950
|
+
y("label", { class: t(b(U)) }, [g(a(b(s).video.customThumbnail) + " ", 1), y("span", Do, a(b(s).video.optional), 1)], 2),
|
|
2951
|
+
f(J, {
|
|
2952
2952
|
"model-value": e.block.thumbnailUrl,
|
|
2953
2953
|
type: "url",
|
|
2954
|
-
placeholder:
|
|
2954
|
+
placeholder: b(s).video.thumbnailPlaceholder,
|
|
2955
2955
|
pulse: D.value,
|
|
2956
2956
|
"onUpdate:modelValue": r[3] ||= (e) => k("thumbnailUrl", e)
|
|
2957
2957
|
}, null, 8, [
|
|
@@ -2959,7 +2959,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2959
2959
|
"placeholder",
|
|
2960
2960
|
"pulse"
|
|
2961
2961
|
]),
|
|
2962
|
-
|
|
2962
|
+
C.value ? (_(), h("button", {
|
|
2963
2963
|
key: 0,
|
|
2964
2964
|
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",
|
|
2965
2965
|
style: {
|
|
@@ -2967,71 +2967,71 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2967
2967
|
color: "var(--tpl-primary)",
|
|
2968
2968
|
"background-color": "var(--tpl-bg)"
|
|
2969
2969
|
},
|
|
2970
|
-
onClick:
|
|
2971
|
-
}, [
|
|
2970
|
+
onClick: F
|
|
2971
|
+
}, [f(b(Ve), {
|
|
2972
2972
|
size: 14,
|
|
2973
2973
|
"stroke-width": 1.5
|
|
2974
|
-
}),
|
|
2974
|
+
}), g(" " + a(b(s).image.browseMedia), 1)])) : m("", !0)
|
|
2975
2975
|
]),
|
|
2976
|
-
|
|
2976
|
+
y("div", Oo, [y("label", { class: t(b(U)) }, a(b(s).video.altText), 3), f(J, {
|
|
2977
2977
|
"model-value": e.block.alt,
|
|
2978
2978
|
type: "text",
|
|
2979
|
-
placeholder:
|
|
2979
|
+
placeholder: b(s).video.altTextPlaceholder,
|
|
2980
2980
|
"onUpdate:modelValue": r[4] ||= (e) => k("alt", e)
|
|
2981
2981
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
class: b(
|
|
2982
|
+
y("div", ko, [
|
|
2983
|
+
y("label", { class: t(b(U)) }, a(b(s).video.width), 3),
|
|
2984
|
+
y("select", {
|
|
2985
|
+
class: t(b(K)),
|
|
2986
2986
|
"data-testid": "video-width-mode",
|
|
2987
2987
|
value: T.value,
|
|
2988
2988
|
onChange: r[5] ||= (e) => A(e.target.value)
|
|
2989
2989
|
}, [
|
|
2990
|
-
|
|
2991
|
-
r[10] ||=
|
|
2992
|
-
r[11] ||=
|
|
2993
|
-
r[12] ||=
|
|
2994
|
-
|
|
2990
|
+
y("option", jo, a(b(s).video.fullWidth), 1),
|
|
2991
|
+
r[10] ||= y("option", { value: "300" }, "300px", -1),
|
|
2992
|
+
r[11] ||= y("option", { value: "400" }, "400px", -1),
|
|
2993
|
+
r[12] ||= y("option", { value: "500" }, "500px", -1),
|
|
2994
|
+
y("option", Mo, a(b(s).video.widthCustom), 1)
|
|
2995
2995
|
], 42, Ao),
|
|
2996
|
-
T.value === "custom" ? (
|
|
2996
|
+
T.value === "custom" ? (_(), h("div", No, [y("input", {
|
|
2997
2997
|
type: "number",
|
|
2998
2998
|
"data-testid": "video-width-input",
|
|
2999
|
-
class: b(
|
|
2999
|
+
class: t(b(G)),
|
|
3000
3000
|
value: e.block.width,
|
|
3001
3001
|
min: "20",
|
|
3002
3002
|
onInput: r[6] ||= (e) => j(e.target.value)
|
|
3003
|
-
}, null, 42, Po),
|
|
3003
|
+
}, null, 42, Po), y("span", { class: t(b(W)) }, "px", 2)])) : m("", !0)
|
|
3004
3004
|
]),
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
class: b(
|
|
3005
|
+
y("div", Fo, [
|
|
3006
|
+
y("label", { class: t(b(U)) }, a(b(s).video.height), 3),
|
|
3007
|
+
y("select", {
|
|
3008
|
+
class: t(b(K)),
|
|
3009
3009
|
"data-testid": "video-height-mode",
|
|
3010
3010
|
value: E.value,
|
|
3011
|
-
onChange: r[7] ||= (e) =>
|
|
3012
|
-
}, [
|
|
3013
|
-
E.value === "custom" ? (
|
|
3011
|
+
onChange: r[7] ||= (e) => M(e.target.value)
|
|
3012
|
+
}, [y("option", Lo, a(b(s).video.heightAuto), 1), y("option", Ro, a(b(s).video.heightCustom), 1)], 42, Io),
|
|
3013
|
+
E.value === "custom" ? (_(), h("div", zo, [y("input", {
|
|
3014
3014
|
type: "number",
|
|
3015
3015
|
"data-testid": "video-height-input",
|
|
3016
|
-
class: b(
|
|
3016
|
+
class: t(b(G)),
|
|
3017
3017
|
value: e.block.height,
|
|
3018
3018
|
min: "20",
|
|
3019
|
-
onInput: r[8] ||= (e) =>
|
|
3020
|
-
}, null, 42, Bo),
|
|
3019
|
+
onInput: r[8] ||= (e) => P(e.target.value)
|
|
3020
|
+
}, null, 42, Bo), y("span", { class: t(b(W)) }, "px", 2)])) : m("", !0)
|
|
3021
3021
|
]),
|
|
3022
|
-
|
|
3022
|
+
y("div", Vo, [y("label", { class: t(b(U)) }, a(b(s).title.align), 3), f(Y, {
|
|
3023
3023
|
options: [
|
|
3024
3024
|
{
|
|
3025
3025
|
value: "left",
|
|
3026
|
-
label:
|
|
3026
|
+
label: b(s).title.alignLeft
|
|
3027
3027
|
},
|
|
3028
3028
|
{
|
|
3029
3029
|
value: "center",
|
|
3030
|
-
label:
|
|
3030
|
+
label: b(s).title.alignCenter
|
|
3031
3031
|
},
|
|
3032
3032
|
{
|
|
3033
3033
|
value: "right",
|
|
3034
|
-
label:
|
|
3034
|
+
label: b(s).title.alignRight
|
|
3035
3035
|
}
|
|
3036
3036
|
],
|
|
3037
3037
|
"model-value": e.block.align,
|
|
@@ -3039,7 +3039,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3039
3039
|
}, null, 8, ["options", "model-value"])])
|
|
3040
3040
|
], 64));
|
|
3041
3041
|
}
|
|
3042
|
-
}), Go = ["aria-label"], Ko = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, qo = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Jo = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Yo = { class: "tpl:flex tpl:gap-1" }, Xo = ["title"], Zo = ["title"], Qo = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, $o = /*@__PURE__*/
|
|
3042
|
+
}), Go = ["aria-label"], Ko = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, qo = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Jo = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Yo = { class: "tpl:flex tpl:gap-1" }, Xo = ["title"], Zo = ["title"], Qo = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, $o = /*@__PURE__*/ w({
|
|
3043
3043
|
__name: "Toolbar",
|
|
3044
3044
|
props: { block: {} },
|
|
3045
3045
|
emits: [
|
|
@@ -3047,107 +3047,107 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3047
3047
|
"delete",
|
|
3048
3048
|
"duplicate"
|
|
3049
3049
|
],
|
|
3050
|
-
setup(e, { emit:
|
|
3051
|
-
let r =
|
|
3052
|
-
if (
|
|
3053
|
-
}),
|
|
3050
|
+
setup(e, { emit: t }) {
|
|
3051
|
+
let r = C(() => import("./CountdownToolbar-CEIMPojJ.js")), o = e, s = t, { t: c } = B(), l = Se(Me, "Toolbar"), u = n(je, []), d = p(() => o.block.type), g = p(() => ne(o.block)), v = p(() => {
|
|
3052
|
+
if (g.value) return u.find((e) => e.type === o.block.customType);
|
|
3053
|
+
}), x = p(() => g.value ? v.value?.name ?? o.block.customType : se(d.value, c)), w = p(() => at(l.fonts.value, "fontFamily" in o.block ? o.block.fontFamily : void 0));
|
|
3054
3054
|
function T(e) {
|
|
3055
|
-
|
|
3055
|
+
s("update", e);
|
|
3056
3056
|
}
|
|
3057
|
-
return (
|
|
3057
|
+
return (t, n) => (_(), h("aside", {
|
|
3058
3058
|
"data-testid": "block-toolbar",
|
|
3059
|
-
"aria-label":
|
|
3059
|
+
"aria-label": b(c).landmarks.blockToolbar,
|
|
3060
3060
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
3061
|
-
}, [
|
|
3061
|
+
}, [y("div", Ko, [y("div", qo, [b(ze)[d.value] ? (_(), S(i(b(ze)[d.value]), {
|
|
3062
3062
|
key: 0,
|
|
3063
3063
|
size: 16,
|
|
3064
3064
|
"stroke-width": 1.5
|
|
3065
|
-
})) :
|
|
3065
|
+
})) : g.value ? (_(), S(b(ue), {
|
|
3066
3066
|
key: 1,
|
|
3067
3067
|
size: 16,
|
|
3068
3068
|
"stroke-width": 1.5
|
|
3069
|
-
})) :
|
|
3069
|
+
})) : m("", !0), y("h3", Jo, a(x.value), 1)]), y("div", Yo, [y("button", {
|
|
3070
3070
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)] tpl:hover:text-[var(--tpl-text)]",
|
|
3071
|
-
title:
|
|
3072
|
-
onClick:
|
|
3073
|
-
}, [
|
|
3071
|
+
title: b(c).toolbar.duplicate,
|
|
3072
|
+
onClick: n[0] ||= (e) => s("duplicate")
|
|
3073
|
+
}, [f(b(Be), {
|
|
3074
3074
|
size: 14,
|
|
3075
3075
|
"stroke-width": 2
|
|
3076
|
-
})], 8, Xo),
|
|
3076
|
+
})], 8, Xo), y("button", {
|
|
3077
3077
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
3078
|
-
title:
|
|
3079
|
-
onClick:
|
|
3080
|
-
}, [
|
|
3078
|
+
title: b(c).toolbar.delete,
|
|
3079
|
+
onClick: n[1] ||= (e) => s("delete")
|
|
3080
|
+
}, [f(b(Xe), {
|
|
3081
3081
|
size: 14,
|
|
3082
3082
|
"stroke-width": 2
|
|
3083
|
-
})], 8, Zo)])]),
|
|
3083
|
+
})], 8, Zo)])]), y("div", Qo, [g.value ? (_(), S(Wr, {
|
|
3084
3084
|
key: 0,
|
|
3085
3085
|
block: e.block,
|
|
3086
|
-
onUpdateFieldValues:
|
|
3087
|
-
onUpdateDataSourceFetched:
|
|
3088
|
-
}, null, 8, ["block"])) : d.value === "section" ? (
|
|
3086
|
+
onUpdateFieldValues: n[2] ||= (e) => s("update", { fieldValues: e }),
|
|
3087
|
+
onUpdateDataSourceFetched: n[3] ||= (e) => s("update", { dataSourceFetched: e })
|
|
3088
|
+
}, null, 8, ["block"])) : d.value === "section" ? (_(), S(ea, {
|
|
3089
3089
|
key: 1,
|
|
3090
3090
|
block: e.block,
|
|
3091
3091
|
onUpdate: T
|
|
3092
|
-
}, null, 8, ["block"])) : d.value === "title" ? (
|
|
3092
|
+
}, null, 8, ["block"])) : d.value === "title" ? (_(), S(xo, {
|
|
3093
3093
|
key: 2,
|
|
3094
3094
|
block: e.block,
|
|
3095
|
-
"font-families":
|
|
3095
|
+
"font-families": w.value,
|
|
3096
3096
|
onUpdate: T
|
|
3097
|
-
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (
|
|
3097
|
+
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (_(), S(Gi, {
|
|
3098
3098
|
key: 3,
|
|
3099
3099
|
block: e.block,
|
|
3100
3100
|
onUpdate: T
|
|
3101
|
-
}, null, 8, ["block"])) : d.value === "image" ? (
|
|
3101
|
+
}, null, 8, ["block"])) : d.value === "image" ? (_(), S(ki, {
|
|
3102
3102
|
key: 4,
|
|
3103
3103
|
block: e.block,
|
|
3104
3104
|
onUpdate: T
|
|
3105
|
-
}, null, 8, ["block"])) : d.value === "video" ? (
|
|
3105
|
+
}, null, 8, ["block"])) : d.value === "video" ? (_(), S(Wo, {
|
|
3106
3106
|
key: 5,
|
|
3107
3107
|
block: e.block,
|
|
3108
3108
|
onUpdate: T
|
|
3109
|
-
}, null, 8, ["block"])) : d.value === "button" ? (
|
|
3109
|
+
}, null, 8, ["block"])) : d.value === "button" ? (_(), S(Yt, {
|
|
3110
3110
|
key: 6,
|
|
3111
3111
|
block: e.block,
|
|
3112
|
-
"font-families":
|
|
3112
|
+
"font-families": w.value,
|
|
3113
3113
|
onUpdate: T
|
|
3114
|
-
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (
|
|
3114
|
+
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (_(), S(Xr, {
|
|
3115
3115
|
key: 7,
|
|
3116
3116
|
block: e.block,
|
|
3117
3117
|
onUpdate: T
|
|
3118
|
-
}, null, 8, ["block"])) : d.value === "social" ? (
|
|
3118
|
+
}, null, 8, ["block"])) : d.value === "social" ? (_(), S(Ta, {
|
|
3119
3119
|
key: 8,
|
|
3120
3120
|
block: e.block,
|
|
3121
3121
|
onUpdate: T
|
|
3122
|
-
}, null, 8, ["block"])) : d.value === "menu" ? (
|
|
3122
|
+
}, null, 8, ["block"])) : d.value === "menu" ? (_(), S(Vi, {
|
|
3123
3123
|
key: 9,
|
|
3124
3124
|
block: e.block,
|
|
3125
|
-
"font-families":
|
|
3125
|
+
"font-families": w.value,
|
|
3126
3126
|
onUpdate: T
|
|
3127
|
-
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (
|
|
3127
|
+
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (_(), S(so, {
|
|
3128
3128
|
key: 10,
|
|
3129
3129
|
block: e.block,
|
|
3130
|
-
"font-families":
|
|
3130
|
+
"font-families": w.value,
|
|
3131
3131
|
onUpdate: T
|
|
3132
|
-
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (
|
|
3132
|
+
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (_(), S(Aa, {
|
|
3133
3133
|
key: 11,
|
|
3134
3134
|
block: e.block,
|
|
3135
3135
|
onUpdate: T
|
|
3136
|
-
}, null, 8, ["block"])) : d.value === "html" ? (
|
|
3136
|
+
}, null, 8, ["block"])) : d.value === "html" ? (_(), S(ei, {
|
|
3137
3137
|
key: 12,
|
|
3138
3138
|
block: e.block,
|
|
3139
3139
|
onUpdate: T
|
|
3140
|
-
}, null, 8, ["block"])) : d.value === "countdown" ? (
|
|
3140
|
+
}, null, 8, ["block"])) : d.value === "countdown" ? (_(), S(b(r), {
|
|
3141
3141
|
key: 13,
|
|
3142
3142
|
block: e.block,
|
|
3143
|
-
"font-families":
|
|
3143
|
+
"font-families": w.value,
|
|
3144
3144
|
onUpdate: T
|
|
3145
|
-
}, null, 8, ["block", "font-families"])) :
|
|
3145
|
+
}, null, 8, ["block", "font-families"])) : m("", !0), f(or, {
|
|
3146
3146
|
block: e.block,
|
|
3147
3147
|
"is-first-section": d.value === "paragraph",
|
|
3148
3148
|
onUpdate: T
|
|
3149
3149
|
}, null, 8, ["block", "is-first-section"])])], 8, Go));
|
|
3150
3150
|
}
|
|
3151
|
-
}), es = /* @__PURE__ */ e({ default: () => ts }), ts = /*#__PURE__*/
|
|
3151
|
+
}), es = /* @__PURE__ */ e({ default: () => ts }), ts = /*#__PURE__*/ Qe($o, [["__scopeId", "data-v-e2d2c22f"]]);
|
|
3152
3152
|
//#endregion
|
|
3153
3153
|
export { ts as default, Y as i, $ as n, X as r, es as t };
|