@templatical/editor 0.55.0 → 0.56.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/dist/{AiAltTextPopover-D5QosKvB.js → AiAltTextPopover-DdsvhE78.js} +4 -4
- package/dist/{AiAltTextReview-D1W_lrI_.js → AiAltTextReview-P6to1_0t.js} +3 -3
- package/dist/{AiChatPanel-C8SeEJRP.js → AiChatPanel-BSlmzMRC.js} +10 -10
- package/dist/{AiPanels-CR6zphjP.js → AiPanels-DAsnX-a3.js} +1 -1
- package/dist/{AiRewriteMenu-BwztoMov.js → AiRewriteMenu-DIISOR6U.js} +11 -11
- package/dist/{BlockIssueBadge-DaPTq1RE.js → BlockIssueBadge-Bmtc50BQ.js} +4 -4
- package/dist/BlockPreviewCanvas-BYIzNn-9.js +154 -0
- package/dist/{CloudHeaderExtras-XpjJjn3o.js → CloudHeaderExtras-Cqhw-jMz.js} +1 -1
- package/dist/{CloudPanels-Baoaj6Xf.js → CloudPanels-w34W8_BP.js} +4 -4
- package/dist/{CollaborationNotices-Cnx0XHzZ.js → CollaborationNotices-HTbCebjV.js} +2 -2
- package/dist/{CollaboratorBar-BaBoNhwB.js → CollaboratorBar-CLQjksX-.js} +2 -2
- package/dist/{CommentsPanel-Ck3QmqiC.js → CommentsPanel-C5qG17Ki.js} +1 -1
- package/dist/{CommentsSidebar-CHknhOar.js → CommentsSidebar-C7CWcUYZ.js} +12 -12
- package/dist/{CountdownBlock-BMezkFbJ.js → CountdownBlock-BTXcCvjZ.js} +2 -2
- package/dist/{CountdownToolbar-CA_gDIdZ.js → CountdownToolbar-CP-pkntQ.js} +5 -5
- package/dist/{IssuesPanel-nmFhWG1p.js → IssuesPanel-CiiNBzH0.js} +12 -12
- package/dist/{LanguageMenu-DcABUYop.js → LanguageMenu-B981Av-6.js} +15 -15
- package/dist/{LocaleNotices-WzsYtBRs.js → LocaleNotices-CTCZ7BYv.js} +4 -4
- package/dist/{LogicTagInsertButton-qZ82VMFx.js → LogicTagInsertButton-DEOPc4RC.js} +23 -23
- package/dist/{MediaEditModal-C3U9Mi31.js → MediaEditModal-DJsPLTwP.js} +1 -1
- package/dist/{MediaPanels-CGmk9ufe.js → MediaPanels-D2WD2aE2.js} +1 -1
- package/dist/{MergeTagInput-JJeZbFkD.js → MergeTagInput-C9icdxw7.js} +1 -1
- package/dist/{MergeTagModeToggle-DDucd1eC.js → MergeTagModeToggle-DXvb80OE.js} +6 -6
- package/dist/{MergeTagTextarea-dQ2LRrNB.js → MergeTagTextarea-CrAcmT3A.js} +5 -5
- package/dist/{ParagraphEditor-VXYwGoz_.js → ParagraphEditor-BWBQ3jKz.js} +55 -55
- package/dist/{RestoreVersionDialog-BibNvAaJ.js → RestoreVersionDialog-CqAp16yQ.js} +4 -4
- package/dist/{RichTextEditorContent-CU5EOlM_.js → RichTextEditorContent-xbBjVPVQ.js} +8 -8
- package/dist/{SaveBlockDialog-S9aFi0cy.js → SaveBlockDialog-pebNJBTc.js} +9 -9
- package/dist/{SavedBlocksBrowserModal-DIdn6B0J.js → SavedBlocksBrowserModal-CvagMcv7.js} +11 -11
- package/dist/{SavedBlocksPanels-Cme2M6u8.js → SavedBlocksPanels-B9AAVBDm.js} +1 -1
- package/dist/{SavedBlocksPickBar-BDmA7r3m.js → SavedBlocksPickBar-BIANWe3i.js} +3 -3
- package/dist/{TemplateSettings-C_LHLm5M.js → TemplateSettings-ORq4PbCN.js} +12 -12
- package/dist/{TestEmailModal-CLIRn7eL.js → TestEmailModal-DRjCpcPl.js} +11 -11
- package/dist/{TestEmailPanel-frdtjC8h.js → TestEmailPanel-H0v8El__.js} +1 -1
- package/dist/{TitleEditor-D5kC56Jl.js → TitleEditor-CEGbJXeU.js} +11 -11
- package/dist/{Toolbar-D904Yw_R.js → Toolbar-XT-uGA9J.js} +937 -703
- package/dist/{TplModal-BBdotDf1.js → TplModal-7NQq5-VW.js} +4 -4
- package/dist/{VersionHistoryMenu-BnP0EyLl.js → VersionHistoryMenu-C8BE3Pr-.js} +7 -7
- package/dist/{VersionHistoryPanels-DhagEgOk.js → VersionHistoryPanels-CuKuOSJG.js} +1 -1
- package/dist/{VersionPreviewBanner-BPP939cD.js → VersionPreviewBanner-BVFBkveR.js} +2 -2
- package/dist/WrapperBlock-Bdw-072t.js +56 -0
- package/dist/{blockTypeIcons-CoRQV_hP.js → blockTypeIcons-CGplGmmr.js} +3 -3
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-DIkMxYCN.js → ca-BJn8lcJx.js} +8 -0
- package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js → AiAltTextPopover-x999Gimz.js} +5 -5
- package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js.map → AiAltTextPopover-x999Gimz.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js → AiAltTextReview-DjnFz1wO.js} +4 -4
- package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js.map → AiAltTextReview-DjnFz1wO.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js → AiChatPanel-DKDu9cs7.js} +4 -4
- package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js.map → AiChatPanel-DKDu9cs7.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-BblCSkQy.js → AiPanels-jMLVaiKx.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-BblCSkQy.js.map → AiPanels-jMLVaiKx.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js → AiRewriteMenu-s79rmHFy.js} +9 -9
- package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js.map → AiRewriteMenu-s79rmHFy.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js → BlockIssueBadge-Bnmq_M4G.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js.map → BlockIssueBadge-Bnmq_M4G.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-Dr-xGq6v.js → BlockPreviewCanvas-B3HkuENF.js} +46 -32
- package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js → CloudHeaderExtras-uUJYJFJ6.js} +2 -2
- package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js.map → CloudHeaderExtras-uUJYJFJ6.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-CQ0vNgsH.js → CloudPanels-DQnlH_YJ.js} +4 -4
- package/dist/cdn/chunks/{CloudPanels-CQ0vNgsH.js.map → CloudPanels-DQnlH_YJ.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js → CollaborationNotices-CHqUGhOZ.js} +3 -3
- package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js.map → CollaborationNotices-CHqUGhOZ.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js → CollaboratorBar-C1ZI2xwa.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js.map → CollaboratorBar-C1ZI2xwa.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js → CommentsPanel-EtdTzTmq.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js.map → CommentsPanel-EtdTzTmq.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js → CommentsSidebar-Qmj049QX.js} +4 -4
- package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js.map → CommentsSidebar-Qmj049QX.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js → CountdownBlock-DyGsh92b.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js.map → CountdownBlock-DyGsh92b.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js → CountdownToolbar-Ddj2erNm.js} +6 -6
- package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js.map → CountdownToolbar-Ddj2erNm.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js → IssuesPanel-DnSnEh1X.js} +8 -8
- package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js.map → IssuesPanel-DnSnEh1X.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js → LanguageMenu-C2I_yTL5.js} +110 -110
- package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js.map → LanguageMenu-C2I_yTL5.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js → LocaleNotices-Dr9LRCAg.js} +4 -4
- package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js.map → LocaleNotices-Dr9LRCAg.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-Bt2PXbQ0.js → LogicTagInsertButton-BdzE9-l7.js} +29 -29
- package/dist/cdn/chunks/LogicTagInsertButton-BdzE9-l7.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js → MediaEditModal-CMJFXu_o.js} +2 -2
- package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js.map → MediaEditModal-CMJFXu_o.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js → MediaPanels-C790ZXuY.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js.map → MediaPanels-C790ZXuY.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js → MergeTagInput-CmrX8Md6.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js.map → MergeTagInput-CmrX8Md6.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js → MergeTagModeToggle-D7maMGIM.js} +5 -5
- package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js.map → MergeTagModeToggle-D7maMGIM.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js → MergeTagTextarea-KOnd2teB.js} +6 -6
- package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js.map → MergeTagTextarea-KOnd2teB.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js → ParagraphEditor-I9lbKaPk.js} +19 -19
- package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js.map → ParagraphEditor-I9lbKaPk.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js → RestoreVersionDialog-DqbULAbc.js} +4 -4
- package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js.map → RestoreVersionDialog-DqbULAbc.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js → RichTextEditorContent-_O22z0pn.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js.map → RichTextEditorContent-_O22z0pn.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js → SaveBlockDialog-CClRLXgF.js} +8 -8
- package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js.map → SaveBlockDialog-CClRLXgF.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js → SavedBlocksBrowserModal-BIaxaxw9.js} +8 -8
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js.map → SavedBlocksBrowserModal-BIaxaxw9.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js → SavedBlocksPanels-Dfu9N6YW.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js.map → SavedBlocksPanels-Dfu9N6YW.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js → SavedBlocksPickBar-DiMW_dbJ.js} +4 -4
- package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js.map → SavedBlocksPickBar-DiMW_dbJ.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js → TemplateSettings-JMUo0LIV.js} +10 -10
- package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js.map → TemplateSettings-JMUo0LIV.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js → TestEmailModal-D52VtwBZ.js} +11 -11
- package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js.map → TestEmailModal-D52VtwBZ.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js → TestEmailPanel-D9ezVDHd.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js.map → TestEmailPanel-D9ezVDHd.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js → TitleEditor-D04vvbUc.js} +9 -9
- package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js.map → TitleEditor-D04vvbUc.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-NEE8qxYh.js → Toolbar-C_Hfsher.js} +1173 -939
- package/dist/cdn/chunks/Toolbar-C_Hfsher.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-B1MgvtX8.js → TplModal-d6fEZGJ5.js} +5 -5
- package/dist/cdn/chunks/{TplModal-B1MgvtX8.js.map → TplModal-d6fEZGJ5.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js → VersionHistoryMenu-C8ucm43v.js} +7 -7
- package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js.map → VersionHistoryMenu-C8ucm43v.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js → VersionHistoryPanels-BAdzmhvH.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js.map → VersionHistoryPanels-BAdzmhvH.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js → VersionPreviewBanner-BWuovbFc.js} +3 -3
- package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js.map → VersionPreviewBanner-BWuovbFc.js.map} +1 -1
- package/dist/cdn/chunks/WrapperBlock-TXDSDXUP.js +58 -0
- package/dist/cdn/chunks/WrapperBlock-TXDSDXUP.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js → blockTypeIcons-CzYA5DF9.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js.map → blockTypeIcons-CzYA5DF9.js.map} +1 -1
- package/dist/cdn/chunks/{ca-DIkMxYCN.js → ca-BJn8lcJx.js} +9 -1
- package/dist/cdn/chunks/ca-BJn8lcJx.js.map +1 -0
- package/dist/cdn/chunks/{composables-nyxwrM27.js → composables-CsfQlmcf.js} +543 -503
- package/dist/cdn/chunks/composables-CsfQlmcf.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js → createCloudRuntime-PpIFCDfj.js} +4 -4
- package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js.map → createCloudRuntime-PpIFCDfj.js.map} +1 -1
- package/dist/{de-Cc6Ue0UD.js → cdn/chunks/de-BLFp3nWx.js} +10 -0
- package/dist/cdn/chunks/de-BLFp3nWx.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-erQEOHZN.js → editor-modal-B8UE9V8B.js} +90 -90
- package/dist/cdn/chunks/{editor-modal-erQEOHZN.js.map → editor-modal-B8UE9V8B.js.map} +1 -1
- package/dist/cdn/chunks/en-CVxNoHww.js +1 -0
- package/dist/cdn/chunks/{en-BX4FujAQ.js → en-DGGQJGbm.js} +9 -1
- package/dist/cdn/chunks/en-DGGQJGbm.js.map +1 -0
- package/dist/cdn/chunks/{es-Do5b-MKU.js → es-DTY9qgLv.js} +9 -1
- package/dist/cdn/chunks/es-DTY9qgLv.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BcwkOjVq.js → extensions-BM6ZSnsQ.js} +70 -70
- package/dist/cdn/chunks/extensions-BM6ZSnsQ.js.map +1 -0
- package/dist/{fr-S1n2Ebzp.js → cdn/chunks/fr-L4FqO9Gp.js} +10 -0
- package/dist/cdn/chunks/{fr-S1n2Ebzp.js.map → fr-L4FqO9Gp.js.map} +1 -1
- package/dist/cdn/chunks/{icons-Da9GKjPx.js → icons-DHExFLlT.js} +43 -43
- package/dist/cdn/chunks/{icons-Da9GKjPx.js.map → icons-DHExFLlT.js.map} +1 -1
- package/dist/cdn/chunks/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +9 -1
- package/dist/cdn/chunks/ja-6uOXkh4v.js.map +1 -0
- package/dist/cdn/chunks/{keys-CoQtCqNv.js → keys-BUmIvYy3.js} +4 -4
- package/dist/cdn/chunks/keys-BUmIvYy3.js.map +1 -0
- package/dist/{nl-0JSWaZpT.js → cdn/chunks/nl-DCxuxwNq.js} +10 -0
- package/dist/cdn/chunks/nl-DCxuxwNq.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-BrGw5jxk.js → normalizeMergeTagMarkup-aWjkotui.js} +67 -67
- package/dist/cdn/chunks/normalizeMergeTagMarkup-aWjkotui.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js → preRenderCustomBlocks-Dn6dFUwx.js} +4 -4
- package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js.map → preRenderCustomBlocks-Dn6dFUwx.js.map} +1 -1
- package/dist/{pt-BR-D3VlIMDZ.js → cdn/chunks/pt-BR-CBkcrebr.js} +10 -0
- package/dist/cdn/chunks/pt-BR-CBkcrebr.js.map +1 -0
- package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js → sanitizeHtml-DJI7vvET.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js.map → sanitizeHtml-DJI7vvET.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js → socialIcons-Qw9rHc8C.js} +354 -341
- package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js.map → socialIcons-Qw9rHc8C.js.map} +1 -1
- package/dist/cdn/chunks/src-Bfj1jHnn.js +710 -0
- package/dist/cdn/chunks/src-Bfj1jHnn.js.map +1 -0
- package/dist/cdn/chunks/{src-Diw9SLIe.js → src-C9JWWxAk.js} +419 -423
- package/dist/cdn/chunks/src-C9JWWxAk.js.map +1 -0
- package/dist/cdn/chunks/{src-v47QHNmB.js → src-mXG-Of9A.js} +669 -662
- package/dist/cdn/chunks/src-mXG-Of9A.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js → useCloudI18n-Xsih9yRH.js} +2 -2
- package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js.map → useCloudI18n-Xsih9yRH.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js → useEditorRoot-Beau2Z_T.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js.map → useEditorRoot-Beau2Z_T.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-BnJYydPv.js → useI18n-D8s7HtTn.js} +2 -2
- package/dist/cdn/chunks/{useI18n-BnJYydPv.js.map → useI18n-D8s7HtTn.js.map} +1 -1
- package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js → useLocalizedDisplay-Bgg4qpev.js} +6 -6
- package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js.map → useLocalizedDisplay-Bgg4qpev.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js → useLogicTag-DLvWzWsp.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js.map → useLogicTag-DLvWzWsp.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js → useMergeTag-B4FHCGGm.js} +5 -5
- package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js.map → useMergeTag-B4FHCGGm.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js → usePopoverPosition-esO6wjvU.js} +5 -5
- package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js.map → usePopoverPosition-esO6wjvU.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js → useScrollToBlock-CJuUu7Xj.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js.map → useScrollToBlock-CJuUu7Xj.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js → withCurrentFont-QqBilClC.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js.map → withCurrentFont-QqBilClC.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +793 -796
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-XMnOOIEC.js → check-CcuCoJDh.js} +1 -1
- package/dist/{chevron-down-DmamTEWQ.js → chevron-down-BfYIbFbC.js} +1 -1
- package/dist/{chevron-right-BEFXOH27.js → chevron-right-DyjFqY35.js} +1 -1
- package/dist/{chevron-up-Dw7woXj8.js → chevron-up-BHEIxuS-.js} +1 -1
- package/dist/{circle-alert-BTKC9vkq.js → circle-alert-Tq7kAh9S.js} +1 -1
- package/dist/{clock-BVT5u2uG.js → clock-Df0ZiXwQ.js} +1 -1
- package/dist/{composables-DPgNn9GZ.js → composables-CRX6rncm.js} +978 -938
- package/dist/{createCloudRuntime-Bw8TLmQ8.js → createCloudRuntime-DplyIlsy.js} +3 -3
- package/dist/{createLucideIcon-CgDE3xAR.js → createLucideIcon-CfBdtoUw.js} +5 -5
- package/dist/{cdn/chunks/de-Cc6Ue0UD.js → de-BLFp3nWx.js} +8 -2
- package/dist/{dist-CBdk1Vcb.js → dist-BMUUt3zJ.js} +284 -277
- package/dist/{editor-modal-BeX6otLk.js → editor-modal-D9HT9bD6.js} +15 -15
- package/dist/{en-BX4FujAQ.js → en-DGGQJGbm.js} +8 -0
- package/dist/en-De3uAutQ.js +1 -0
- package/dist/{es-Do5b-MKU.js → es-DTY9qgLv.js} +8 -0
- package/dist/{extensions-QFAARrjF.js → extensions-Cm6K4SRX.js} +285 -285
- package/dist/{eye-ByMgHeA_.js → eye-B3psrAqd.js} +1 -1
- package/dist/{cdn/chunks/fr-S1n2Ebzp.js → fr-L4FqO9Gp.js} +8 -2
- package/dist/{image-Ch8tR35K.js → image-C3yuPDxx.js} +1 -1
- package/dist/index.d.ts +60 -12
- package/dist/{info-DzSD-Wpk.js → info-DKja7A68.js} +1 -1
- package/dist/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +8 -0
- package/dist/{keys-BCqskl51.js → keys-w_VRjoMu.js} +3 -3
- package/dist/{link-oDn9AR2w.js → link-DhzPI4Hn.js} +1 -1
- package/dist/{list-C5t07dp8.js → list-DVGn7Ik2.js} +1 -1
- package/dist/{loader-circle-k6xvKgUB.js → loader-circle-DqKWsMHO.js} +1 -1
- package/dist/{message-circle-C23R6OJR.js → message-circle-C4TonoBs.js} +1 -1
- package/dist/{cdn/chunks/nl-0JSWaZpT.js → nl-DCxuxwNq.js} +8 -2
- package/dist/{normalizeMergeTagMarkup-BS0nRvhq.js → normalizeMergeTagMarkup-Da9JAgx7.js} +75 -75
- package/dist/{package-C90eQ7NU.js → package-9OkiEO4S.js} +1 -1
- package/dist/{pencil-BK7GrQuA.js → pencil-M9vkOB7C.js} +1 -1
- package/dist/{plus-Cr0Mis63.js → plus-DxZiv9YC.js} +1 -1
- package/dist/{preRenderCustomBlocks-CiKvKd8V.js → preRenderCustomBlocks-CdqSp2P7.js} +4 -4
- package/dist/{cdn/chunks/pt-BR-D3VlIMDZ.js → pt-BR-CBkcrebr.js} +8 -2
- package/dist/{refresh-cw-_ZLOIEvA.js → refresh-cw-UY8_sdFG.js} +1 -1
- package/dist/{rotate-ccw-CB5wsHwv.js → rotate-ccw-BFTGCpHn.js} +1 -1
- package/dist/{sanitizeHtml-USjTyALR.js → sanitizeHtml-wBibnBF4.js} +6 -6
- package/dist/{search-BmrQNox8.js → search-RuGJnMEn.js} +1 -1
- package/dist/{send-blAsIBBg.js → send-DGB1ar02.js} +1 -1
- package/dist/{smartphone-BPpWYrwV.js → smartphone-CVA29CU_.js} +1 -1
- package/dist/{socialIcons-NvIg5ahU.js → socialIcons-CJD6OsI7.js} +427 -414
- package/dist/{sparkles-OqIxrNp-.js → sparkles-IHfEwEcd.js} +1 -1
- package/dist/{square-BP-V7iT-.js → square-_Cl44UU6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +851 -854
- package/dist/{text-align-start-4mwX2o-F.js → text-align-start-Dqk2Xt_Q.js} +13 -13
- package/dist/{trash-B99WixTA.js → trash-Cr7rD5Hh.js} +1 -1
- package/dist/{triangle-alert-CHMiDkHa.js → triangle-alert-CKcpwtUj.js} +1 -1
- package/dist/{upload-Cp8o-hrN.js → upload-DR9pqVON.js} +1 -1
- package/dist/{useCloudI18n-Dh2iydo1.js → useCloudI18n-BczJoFf4.js} +1 -1
- package/dist/{useEditorRoot-DY3mgcHm.js → useEditorRoot-BcXKhM_8.js} +1 -1
- package/dist/{useI18n-CgtvtF4C.js → useI18n-zeWYtWSv.js} +1 -1
- package/dist/useLocalizedDisplay-Cbhx208c.js +31 -0
- package/dist/{useLogicTag-D8zgkXfb.js → useLogicTag-DLkYos2Q.js} +3 -3
- package/dist/{useMergeTag-k7Kr0nMd.js → useMergeTag-IoWOO679.js} +5 -5
- package/dist/{usePopoverPosition-VDQjyX_A.js → usePopoverPosition-Br3zt_MQ.js} +4 -4
- package/dist/{useScrollToBlock-B35ObCGK.js → useScrollToBlock-BfOzc1Z6.js} +2 -2
- package/dist/{withCurrentFont-Bzeg_gfH.js → withCurrentFont-m_PHcOD0.js} +1 -1
- package/dist/{x-BIBStNMS.js → x-DZSFHafL.js} +1 -1
- package/package.json +10 -10
- package/dist/BlockPreviewCanvas-C23A6FRm.js +0 -140
- package/dist/WrapperBlock-BAT3T0Cz.js +0 -44
- package/dist/cdn/chunks/BlockPreviewCanvas-Dr-xGq6v.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-Bt2PXbQ0.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-NEE8qxYh.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js +0 -46
- package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js.map +0 -1
- package/dist/cdn/chunks/ca-DIkMxYCN.js.map +0 -1
- package/dist/cdn/chunks/composables-nyxwrM27.js.map +0 -1
- package/dist/cdn/chunks/de-Cc6Ue0UD.js.map +0 -1
- package/dist/cdn/chunks/en-B6tLGRHq.js +0 -1
- package/dist/cdn/chunks/en-BX4FujAQ.js.map +0 -1
- package/dist/cdn/chunks/es-Do5b-MKU.js.map +0 -1
- package/dist/cdn/chunks/extensions-BcwkOjVq.js.map +0 -1
- package/dist/cdn/chunks/ja-DLwcq4bA.js.map +0 -1
- package/dist/cdn/chunks/keys-CoQtCqNv.js.map +0 -1
- package/dist/cdn/chunks/nl-0JSWaZpT.js.map +0 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-BrGw5jxk.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-D3VlIMDZ.js.map +0 -1
- package/dist/cdn/chunks/src-Diw9SLIe.js.map +0 -1
- package/dist/cdn/chunks/src-UR3AQocX.js +0 -683
- package/dist/cdn/chunks/src-UR3AQocX.js.map +0 -1
- package/dist/cdn/chunks/src-v47QHNmB.js.map +0 -1
- package/dist/en-Do0SU6tR.js +0 -1
- package/dist/useLocalizedDisplay-LdjosX4w.js +0 -31
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
|
-
import { $ as t, B as n, C as r, F as i, G as a, H as o, K as s, L as c, O as l, Q as u, R as d, S as f, _ as p, b as m, ct as h, dt as g, g as _, h as v,
|
|
3
|
-
import { Cn as
|
|
4
|
-
import { F as
|
|
5
|
-
import { t as
|
|
6
|
-
import { $ as
|
|
7
|
-
import { B as
|
|
8
|
-
import { t as
|
|
9
|
-
import { n as et } from "./useLocalizedDisplay-
|
|
2
|
+
import { $ as t, B as n, C as r, F as i, G as a, H as o, K as s, L as c, O as l, Q as u, R as d, S as f, _ as p, b as m, ct as h, dt as g, g as _, h as v, it as y, m as b, mt as x, o as S, p as C, pt as w, s as T, tt as E, u as D, v as O, x as k } from "./draggable-DepKdldn.js";
|
|
3
|
+
import { Cn as A, H as ee, I as j, Rt as M, W as N, _n as P, dn as F, fn as te, g as ne, gn as re, ln as ie, pn as ae, rn as oe, un as se, vt as ce, wn as le, yn as ue } from "./src-mXG-Of9A.js";
|
|
4
|
+
import { F as de, T as fe, _ as pe, b as me, d as he, f as ge, g as _e, h as I, i as L, l as R, m as z, p as B, r as ve, s as V, u as ye, v as be } from "./socialIcons-Qw9rHc8C.js";
|
|
5
|
+
import { t as H } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
6
|
+
import { $ as xe, At as Se, Bt as Ce, H as U, It as we, Mt as Te, O as Ee, R as De, _ as Oe, _t as ke, c as Ae, et as je, f as Me, gt as Ne, h as Pe, it as Fe, lt as Ie, rt as Le, t as Re, v as ze } from "./icons-DHExFLlT.js";
|
|
7
|
+
import { B as Be, C as Ve, H as He, O as Ue, T as We, W as Ge, Z as Ke, _ as qe, b as Je, h as Ye, p as Xe, r as Ze, st as Qe, v as $e } from "./keys-BUmIvYy3.js";
|
|
8
|
+
import { t as W } from "./useI18n-D8s7HtTn.js";
|
|
9
|
+
import { n as et } from "./useLocalizedDisplay-Bgg4qpev.js";
|
|
10
10
|
import { t as tt } from "./languageName-DEEOhDWI.js";
|
|
11
|
-
import {
|
|
12
|
-
import { _ as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { t as
|
|
11
|
+
import { C as nt, S as rt, _ as G, b as it, c as at, g as K, h as q, r as ot, v as J, y as st } from "./styleConstants-CgiNKdnc.js";
|
|
12
|
+
import { _ as ct } from "./dist-BzXULHvI.js";
|
|
13
|
+
import { t as lt } from "./logger-CqQTfJGx.js";
|
|
14
|
+
import { c as ut, r as dt } from "./usePopoverPosition-esO6wjvU.js";
|
|
15
|
+
import { t as ft } from "./blockTypeIcons-CzYA5DF9.js";
|
|
16
|
+
import { n as Y, t as pt } from "./MergeTagTextarea-KOnd2teB.js";
|
|
17
|
+
import { c as X } from "./LogicTagInsertButton-BdzE9-l7.js";
|
|
18
|
+
import { t as Z } from "./ToggleSwitch-BSkySwA1.js";
|
|
19
|
+
import { n as mt, t as ht } from "./withCurrentFont-QqBilClC.js";
|
|
20
|
+
import { t as Q } from "./MergeTagInput-CmrX8Md6.js";
|
|
20
21
|
// src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
|
|
21
|
-
var
|
|
22
|
+
var gt = [
|
|
22
23
|
"aria-checked",
|
|
23
24
|
"aria-label",
|
|
24
25
|
"disabled",
|
|
25
26
|
"aria-disabled",
|
|
26
27
|
"title",
|
|
27
28
|
"onClick"
|
|
28
|
-
],
|
|
29
|
+
], _t = { key: 1 }, $ = /* @__PURE__ */ r({
|
|
29
30
|
__name: "SlidingPillSelect",
|
|
30
31
|
props: {
|
|
31
32
|
options: {},
|
|
@@ -33,18 +34,18 @@ var mt = [
|
|
|
33
34
|
},
|
|
34
35
|
emits: ["update:modelValue"],
|
|
35
36
|
setup(e, { emit: t }) {
|
|
36
|
-
let r = e, a = t, o =
|
|
37
|
+
let r = e, a = t, o = C(() => r.options.findIndex((e) => e.value === r.modelValue)), s = C(() => `translateX(${Math.max(o.value, 0) * 100}%)`);
|
|
37
38
|
return (t, r) => (i(), p("div", {
|
|
38
39
|
role: "radiogroup",
|
|
39
40
|
class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
|
|
40
|
-
style:
|
|
41
|
+
style: w({
|
|
41
42
|
gridTemplateColumns: `repeat(${e.options.length}, 1fr)`,
|
|
42
43
|
backgroundColor: "var(--tpl-bg-hover)"
|
|
43
44
|
})
|
|
44
45
|
}, [o.value >= 0 ? (i(), p("div", {
|
|
45
46
|
key: 0,
|
|
46
47
|
class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
|
|
47
|
-
style:
|
|
48
|
+
style: w({
|
|
48
49
|
left: "4px",
|
|
49
50
|
width: `calc((100% - 8px) / ${e.options.length})`,
|
|
50
51
|
transform: s.value,
|
|
@@ -52,7 +53,7 @@ var mt = [
|
|
|
52
53
|
boxShadow: "var(--tpl-shadow)",
|
|
53
54
|
transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
54
55
|
})
|
|
55
|
-
}, null, 4)) : _("", !0), (i(!0), p(
|
|
56
|
+
}, null, 4)) : _("", !0), (i(!0), p(D, null, c(e.options, (t) => (i(), p("button", {
|
|
56
57
|
key: t.value,
|
|
57
58
|
role: "radio",
|
|
58
59
|
"aria-checked": e.modelValue === t.value,
|
|
@@ -60,7 +61,7 @@ var mt = [
|
|
|
60
61
|
disabled: t.disabled,
|
|
61
62
|
"aria-disabled": t.disabled ? "true" : void 0,
|
|
62
63
|
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",
|
|
63
|
-
style:
|
|
64
|
+
style: w({
|
|
64
65
|
color: t.disabled ? "var(--tpl-text-dim)" : e.modelValue === t.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
65
66
|
transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
66
67
|
}),
|
|
@@ -70,14 +71,14 @@ var mt = [
|
|
|
70
71
|
key: 0,
|
|
71
72
|
size: 14,
|
|
72
73
|
"stroke-width": 2
|
|
73
|
-
})) : (i(), p("span",
|
|
74
|
+
})) : (i(), p("span", _t, x(t.label), 1))], 12, gt))), 128))], 4));
|
|
74
75
|
}
|
|
75
|
-
}),
|
|
76
|
+
}), vt = { class: "tpl:flex tpl:items-stretch" }, yt = [
|
|
76
77
|
"data-testid",
|
|
77
78
|
"value",
|
|
78
79
|
"min",
|
|
79
80
|
"max"
|
|
80
|
-
],
|
|
81
|
+
], bt = /* @__PURE__ */ r({
|
|
81
82
|
__name: "NumberWithSuffix",
|
|
82
83
|
props: {
|
|
83
84
|
modelValue: {},
|
|
@@ -93,22 +94,22 @@ var mt = [
|
|
|
93
94
|
let t = e.target;
|
|
94
95
|
t.validity?.badInput || n("update:modelValue", Number(t.value));
|
|
95
96
|
}
|
|
96
|
-
return (t, n) => (i(), p("div",
|
|
97
|
+
return (t, n) => (i(), p("div", vt, [b("input", {
|
|
97
98
|
type: "number",
|
|
98
99
|
"data-testid": e.testid,
|
|
99
|
-
class: g(h(
|
|
100
|
+
class: g(h(K)),
|
|
100
101
|
value: e.modelValue,
|
|
101
102
|
min: e.min,
|
|
102
103
|
max: e.max,
|
|
103
104
|
onInput: r
|
|
104
|
-
}, null, 42,
|
|
105
|
+
}, null, 42, yt), b("span", { class: g(h(G)) }, x(e.suffix), 3)]));
|
|
105
106
|
}
|
|
106
|
-
}),
|
|
107
|
+
}), xt = [
|
|
107
108
|
"aria-pressed",
|
|
108
109
|
"aria-label",
|
|
109
110
|
"title",
|
|
110
111
|
"data-testid"
|
|
111
|
-
],
|
|
112
|
+
], St = /* @__PURE__ */ r({
|
|
112
113
|
__name: "LinkToggle",
|
|
113
114
|
props: {
|
|
114
115
|
linked: { type: Boolean },
|
|
@@ -127,20 +128,20 @@ var mt = [
|
|
|
127
128
|
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
128
129
|
"data-testid": e.testid,
|
|
129
130
|
onClick: r[0] ||= (e) => n("toggle")
|
|
130
|
-
}, [e.linked ? (i(), v(h(
|
|
131
|
+
}, [e.linked ? (i(), v(h(Ie), {
|
|
131
132
|
key: 0,
|
|
132
133
|
size: 14,
|
|
133
134
|
"stroke-width": 2
|
|
134
|
-
})) : (i(), v(h(
|
|
135
|
+
})) : (i(), v(h(Ae), {
|
|
135
136
|
key: 1,
|
|
136
137
|
size: 14,
|
|
137
138
|
"stroke-width": 2
|
|
138
|
-
}))], 10,
|
|
139
|
+
}))], 10, xt));
|
|
139
140
|
}
|
|
140
|
-
}),
|
|
141
|
+
}), Ct = {
|
|
141
142
|
key: 0,
|
|
142
143
|
class: "tpl:mb-3.5"
|
|
143
|
-
},
|
|
144
|
+
}, wt = { class: "tpl:mb-3.5" }, Tt = { class: "tpl:mb-3.5" }, Et = /* @__PURE__ */ r({
|
|
144
145
|
__name: "BorderControl",
|
|
145
146
|
props: {
|
|
146
147
|
path: {},
|
|
@@ -149,7 +150,7 @@ var mt = [
|
|
|
149
150
|
},
|
|
150
151
|
emits: ["update:modelValue"],
|
|
151
152
|
setup(e, { emit: t }) {
|
|
152
|
-
let n = e, r = t, { t: s } =
|
|
153
|
+
let n = e, r = t, { t: s } = W(), c = {
|
|
153
154
|
width: 0,
|
|
154
155
|
style: "solid",
|
|
155
156
|
color: "#000000"
|
|
@@ -157,38 +158,38 @@ var mt = [
|
|
|
157
158
|
function l(e, t) {
|
|
158
159
|
return e.width === t.width && e.style === t.style && e.color === t.color;
|
|
159
160
|
}
|
|
160
|
-
let u =
|
|
161
|
+
let u = C(() => {
|
|
161
162
|
let e = n.modelValue;
|
|
162
|
-
return !e ||
|
|
163
|
-
}), d =
|
|
163
|
+
return !e || P.every((t) => l(e[t], e.top));
|
|
164
|
+
}), d = E(u.value);
|
|
164
165
|
o(u, (e) => {
|
|
165
166
|
!e && d.value && (d.value = !1);
|
|
166
167
|
});
|
|
167
|
-
let f =
|
|
168
|
-
function
|
|
168
|
+
let f = E("top"), m = C(() => n.modelValue?.[d.value ? "top" : f.value] ?? c), y = (e) => !!e && e.width > 0;
|
|
169
|
+
function S(e) {
|
|
169
170
|
if (d.value) {
|
|
170
|
-
r("update:modelValue",
|
|
171
|
+
r("update:modelValue", y(e) ? le(e) : void 0);
|
|
171
172
|
return;
|
|
172
173
|
}
|
|
173
174
|
let t = {
|
|
174
|
-
...n.modelValue ??
|
|
175
|
+
...n.modelValue ?? le(c),
|
|
175
176
|
[f.value]: e
|
|
176
|
-
}, i =
|
|
177
|
+
}, i = P.some((e) => y(t[e]));
|
|
177
178
|
r("update:modelValue", i ? t : void 0);
|
|
178
179
|
}
|
|
179
180
|
function w(e) {
|
|
180
|
-
|
|
181
|
+
S({
|
|
181
182
|
...m.value,
|
|
182
183
|
width: e > 0 ? e : 0
|
|
183
184
|
});
|
|
184
185
|
}
|
|
185
|
-
function
|
|
186
|
-
|
|
186
|
+
function T(e) {
|
|
187
|
+
S({
|
|
187
188
|
...m.value,
|
|
188
189
|
...e
|
|
189
190
|
});
|
|
190
191
|
}
|
|
191
|
-
function
|
|
192
|
+
function O() {
|
|
192
193
|
if (d.value) {
|
|
193
194
|
d.value = !1;
|
|
194
195
|
return;
|
|
@@ -196,23 +197,23 @@ var mt = [
|
|
|
196
197
|
d.value = !0;
|
|
197
198
|
let e = n.modelValue;
|
|
198
199
|
if (!e) return;
|
|
199
|
-
let t =
|
|
200
|
-
r("update:modelValue", t ?
|
|
200
|
+
let t = y(e[f.value]) ? e[f.value] : P.map((t) => e[t]).find(y);
|
|
201
|
+
r("update:modelValue", t ? le(t) : void 0);
|
|
201
202
|
}
|
|
202
|
-
let
|
|
203
|
+
let A = C(() => P.map((e) => ({
|
|
203
204
|
value: e,
|
|
204
205
|
label: s.spacingControl[e]
|
|
205
206
|
})));
|
|
206
|
-
return (t, n) => (i(), v(
|
|
207
|
+
return (t, n) => (i(), v(Y, {
|
|
207
208
|
path: e.path,
|
|
208
209
|
label: h(s).blockSettings.border
|
|
209
210
|
}, {
|
|
210
|
-
"label-actions": a(() => [
|
|
211
|
+
"label-actions": a(() => [k(St, {
|
|
211
212
|
linked: d.value,
|
|
212
213
|
"link-label": h(s).blockSettings.linkSides,
|
|
213
214
|
"unlink-label": h(s).blockSettings.unlinkSides,
|
|
214
215
|
testid: `${e.testidPrefix}-border-link`,
|
|
215
|
-
onToggle:
|
|
216
|
+
onToggle: O
|
|
216
217
|
}, null, 8, [
|
|
217
218
|
"linked",
|
|
218
219
|
"link-label",
|
|
@@ -220,19 +221,19 @@ var mt = [
|
|
|
220
221
|
"testid"
|
|
221
222
|
])]),
|
|
222
223
|
default: a(() => [
|
|
223
|
-
d.value ? _("", !0) : (i(), p("div",
|
|
224
|
-
options:
|
|
224
|
+
d.value ? _("", !0) : (i(), p("div", Ct, [b("label", { class: g(h(J)) }, x(h(s).blockSettings.borderSide), 3), k($, {
|
|
225
|
+
options: A.value,
|
|
225
226
|
"model-value": f.value,
|
|
226
227
|
"onUpdate:modelValue": n[0] ||= (e) => f.value = e
|
|
227
228
|
}, null, 8, ["options", "model-value"])])),
|
|
228
|
-
|
|
229
|
+
b("div", wt, [b("label", { class: g(h(J)) }, x(h(s).blockSettings.borderWidth), 3), k(bt, {
|
|
229
230
|
"model-value": m.value.width,
|
|
230
231
|
min: 0,
|
|
231
232
|
suffix: "px",
|
|
232
233
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
233
234
|
"onUpdate:modelValue": w
|
|
234
235
|
}, null, 8, ["model-value", "testid"])]),
|
|
235
|
-
m.value.width > 0 ? (i(), p(
|
|
236
|
+
m.value.width > 0 ? (i(), p(D, { key: 1 }, [b("div", Tt, [b("label", { class: g(h(J)) }, x(h(s).blockSettings.borderStyle), 3), k($, {
|
|
236
237
|
options: [
|
|
237
238
|
{
|
|
238
239
|
value: "solid",
|
|
@@ -248,19 +249,19 @@ var mt = [
|
|
|
248
249
|
}
|
|
249
250
|
],
|
|
250
251
|
"model-value": m.value.style,
|
|
251
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
252
|
-
}, null, 8, ["options", "model-value"])]),
|
|
252
|
+
"onUpdate:modelValue": n[1] ||= (e) => T({ style: e })
|
|
253
|
+
}, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: g(h(J)) }, x(h(s).blockSettings.borderColor), 3), k(X, {
|
|
253
254
|
"model-value": m.value.color,
|
|
254
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
255
|
+
"onUpdate:modelValue": n[2] ||= (e) => T({ color: e })
|
|
255
256
|
}, null, 8, ["model-value"])])], 64)) : _("", !0)
|
|
256
257
|
]),
|
|
257
258
|
_: 1
|
|
258
259
|
}, 8, ["path", "label"]));
|
|
259
260
|
}
|
|
260
|
-
}),
|
|
261
|
+
}), Dt = {
|
|
261
262
|
key: 1,
|
|
262
263
|
class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
|
|
263
|
-
},
|
|
264
|
+
}, Ot = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, kt = /* @__PURE__ */ r({
|
|
264
265
|
__name: "RadiusControl",
|
|
265
266
|
props: {
|
|
266
267
|
path: {},
|
|
@@ -271,7 +272,7 @@ var mt = [
|
|
|
271
272
|
},
|
|
272
273
|
emits: ["update:modelValue"],
|
|
273
274
|
setup(e, { emit: t }) {
|
|
274
|
-
let n = e, r = t, { t: s } =
|
|
275
|
+
let n = e, r = t, { t: s } = W(), l = {
|
|
275
276
|
topLeft: "cornerTopLeft",
|
|
276
277
|
topRight: "cornerTopRight",
|
|
277
278
|
bottomRight: "cornerBottomRight",
|
|
@@ -281,7 +282,7 @@ var mt = [
|
|
|
281
282
|
"topRight",
|
|
282
283
|
"bottomLeft",
|
|
283
284
|
"bottomRight"
|
|
284
|
-
], d =
|
|
285
|
+
], d = C(() => {
|
|
285
286
|
let e = n.modelValue ?? 0;
|
|
286
287
|
return typeof e == "number" ? {
|
|
287
288
|
topLeft: e,
|
|
@@ -289,7 +290,7 @@ var mt = [
|
|
|
289
290
|
bottomRight: e,
|
|
290
291
|
bottomLeft: e
|
|
291
292
|
} : e;
|
|
292
|
-
}), f =
|
|
293
|
+
}), f = C(() => re.every((e) => d.value[e] === d.value.topLeft)), m = E(f.value);
|
|
293
294
|
o(f, (e) => {
|
|
294
295
|
!e && m.value && (m.value = !1);
|
|
295
296
|
});
|
|
@@ -299,32 +300,32 @@ var mt = [
|
|
|
299
300
|
function _(e) {
|
|
300
301
|
g(e) && r("update:modelValue", e);
|
|
301
302
|
}
|
|
302
|
-
function
|
|
303
|
+
function y(e, t) {
|
|
303
304
|
g(t) && r("update:modelValue", {
|
|
304
305
|
...d.value,
|
|
305
306
|
[e]: t
|
|
306
307
|
});
|
|
307
308
|
}
|
|
308
|
-
function
|
|
309
|
+
function S() {
|
|
309
310
|
m.value = !m.value, m.value && r("update:modelValue", d.value.topLeft);
|
|
310
311
|
}
|
|
311
|
-
return (t, n) => (i(), v(
|
|
312
|
+
return (t, n) => (i(), v(Y, {
|
|
312
313
|
path: e.path,
|
|
313
314
|
label: e.label
|
|
314
315
|
}, {
|
|
315
|
-
"label-actions": a(() => [
|
|
316
|
+
"label-actions": a(() => [k(St, {
|
|
316
317
|
linked: m.value,
|
|
317
318
|
"link-label": h(s).blockSettings.linkCorners,
|
|
318
319
|
"unlink-label": h(s).blockSettings.unlinkCorners,
|
|
319
320
|
testid: `${e.testidPrefix}-border-radius-link`,
|
|
320
|
-
onToggle:
|
|
321
|
+
onToggle: S
|
|
321
322
|
}, null, 8, [
|
|
322
323
|
"linked",
|
|
323
324
|
"link-label",
|
|
324
325
|
"unlink-label",
|
|
325
326
|
"testid"
|
|
326
327
|
])]),
|
|
327
|
-
default: a(() => [m.value ? (i(), v(
|
|
328
|
+
default: a(() => [m.value ? (i(), v(bt, {
|
|
328
329
|
key: 0,
|
|
329
330
|
"model-value": d.value.topLeft,
|
|
330
331
|
min: 0,
|
|
@@ -336,13 +337,13 @@ var mt = [
|
|
|
336
337
|
"model-value",
|
|
337
338
|
"max",
|
|
338
339
|
"testid"
|
|
339
|
-
])) : (i(), p("div",
|
|
340
|
+
])) : (i(), p("div", Dt, [(i(), p(D, null, c(u, (t) => b("div", { key: t }, [b("label", Ot, x(h(s).blockSettings[l[t]]), 1), k(bt, {
|
|
340
341
|
"model-value": d.value[t],
|
|
341
342
|
min: 0,
|
|
342
343
|
max: e.max,
|
|
343
344
|
suffix: "px",
|
|
344
345
|
testid: `${e.testidPrefix}-border-radius-${t}-input`,
|
|
345
|
-
"onUpdate:modelValue": (e) =>
|
|
346
|
+
"onUpdate:modelValue": (e) => y(t, e)
|
|
346
347
|
}, null, 8, [
|
|
347
348
|
"model-value",
|
|
348
349
|
"max",
|
|
@@ -352,10 +353,10 @@ var mt = [
|
|
|
352
353
|
_: 1
|
|
353
354
|
}, 8, ["path", "label"]));
|
|
354
355
|
}
|
|
355
|
-
}),
|
|
356
|
+
}), At = ["value"], jt = { value: "" }, Mt = ["value"], Nt = { class: "tpl:flex tpl:items-stretch" }, Pt = ["value"], Ft = ["value"], It = { value: "auto" }, Lt = { value: "full" }, Rt = { value: "custom" }, zt = {
|
|
356
357
|
key: 0,
|
|
357
358
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
358
|
-
},
|
|
359
|
+
}, Bt = ["value"], Vt = 200, Ht = /* @__PURE__ */ r({
|
|
359
360
|
__name: "ButtonToolbar",
|
|
360
361
|
props: {
|
|
361
362
|
block: {},
|
|
@@ -363,12 +364,12 @@ var mt = [
|
|
|
363
364
|
},
|
|
364
365
|
emits: ["update"],
|
|
365
366
|
setup(e, { emit: t }) {
|
|
366
|
-
let n = e, r = t, { t: o } =
|
|
367
|
+
let n = e, r = t, { t: o } = W(), s = C(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
|
|
367
368
|
function l(e, t) {
|
|
368
369
|
r("update", { [e]: t });
|
|
369
370
|
}
|
|
370
371
|
function u(e) {
|
|
371
|
-
e === "full" ? l("width", "full") : e === "custom" ? l("width", typeof n.block.width == "number" ? n.block.width :
|
|
372
|
+
e === "full" ? l("width", "full") : e === "custom" ? l("width", typeof n.block.width == "number" ? n.block.width : Vt) : l("width", void 0);
|
|
372
373
|
}
|
|
373
374
|
function d(e) {
|
|
374
375
|
l("fontWeight", e === "bold" ? void 0 : e);
|
|
@@ -377,50 +378,50 @@ var mt = [
|
|
|
377
378
|
let t = Number(e);
|
|
378
379
|
!Number.isFinite(t) || t <= 0 || l("width", t);
|
|
379
380
|
}
|
|
380
|
-
return (t, n) => (i(), p(
|
|
381
|
-
|
|
381
|
+
return (t, n) => (i(), p(D, null, [
|
|
382
|
+
k(Y, {
|
|
382
383
|
label: h(o).button.fontFamily,
|
|
383
384
|
class: "tpl:mb-3.5",
|
|
384
385
|
path: "fontFamily"
|
|
385
386
|
}, {
|
|
386
|
-
default: a(() => [
|
|
387
|
-
class: g(h(
|
|
388
|
-
value: h(
|
|
387
|
+
default: a(() => [b("select", {
|
|
388
|
+
class: g(h(q)),
|
|
389
|
+
value: h(ht)(e.block.fontFamily),
|
|
389
390
|
onChange: n[0] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
390
|
-
}, [
|
|
391
|
+
}, [b("option", jt, x(h(o).button.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
391
392
|
key: e.value,
|
|
392
393
|
value: e.value
|
|
393
|
-
},
|
|
394
|
+
}, x(e.label), 9, Mt))), 128))], 42, At)]),
|
|
394
395
|
_: 1
|
|
395
396
|
}, 8, ["label"]),
|
|
396
|
-
|
|
397
|
+
k(Y, {
|
|
397
398
|
label: h(o).button.text,
|
|
398
399
|
class: "tpl:mb-3.5",
|
|
399
400
|
path: "text"
|
|
400
401
|
}, {
|
|
401
|
-
default: a(() => [
|
|
402
|
+
default: a(() => [k(Q, {
|
|
402
403
|
"model-value": e.block.text,
|
|
403
404
|
type: "text",
|
|
404
405
|
"onUpdate:modelValue": n[1] ||= (e) => l("text", e)
|
|
405
406
|
}, null, 8, ["model-value"])]),
|
|
406
407
|
_: 1
|
|
407
408
|
}, 8, ["label"]),
|
|
408
|
-
|
|
409
|
+
k(Y, {
|
|
409
410
|
label: h(o).button.url,
|
|
410
411
|
class: "tpl:mb-3.5",
|
|
411
412
|
path: "url"
|
|
412
413
|
}, {
|
|
413
|
-
default: a(() => [
|
|
414
|
+
default: a(() => [k(Q, {
|
|
414
415
|
"model-value": e.block.url,
|
|
415
416
|
type: "url",
|
|
416
417
|
placeholder: h(o).button.urlPlaceholder,
|
|
417
418
|
"onUpdate:modelValue": n[2] ||= (e) => l("url", e)
|
|
418
|
-
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(
|
|
419
|
+
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(Y, {
|
|
419
420
|
key: 0,
|
|
420
421
|
path: "openInNewTab",
|
|
421
422
|
label: h(o).button.openInNewTab
|
|
422
423
|
}, {
|
|
423
|
-
"label-actions": a(({ controlId: t }) => [
|
|
424
|
+
"label-actions": a(({ controlId: t }) => [k(Z, {
|
|
424
425
|
"control-id": t,
|
|
425
426
|
"hide-label": "",
|
|
426
427
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -436,36 +437,36 @@ var mt = [
|
|
|
436
437
|
}, 8, ["label"])) : _("", !0)]),
|
|
437
438
|
_: 1
|
|
438
439
|
}, 8, ["label"]),
|
|
439
|
-
|
|
440
|
+
k(Y, {
|
|
440
441
|
label: h(o).button.background,
|
|
441
442
|
class: "tpl:mb-3.5",
|
|
442
443
|
path: "backgroundColor"
|
|
443
444
|
}, {
|
|
444
|
-
default: a(() => [
|
|
445
|
+
default: a(() => [k(X, {
|
|
445
446
|
"model-value": e.block.backgroundColor,
|
|
446
447
|
"allow-transparent": "",
|
|
447
448
|
"onUpdate:modelValue": n[4] ||= (e) => l("backgroundColor", e)
|
|
448
449
|
}, null, 8, ["model-value"])]),
|
|
449
450
|
_: 1
|
|
450
451
|
}, 8, ["label"]),
|
|
451
|
-
|
|
452
|
+
k(Y, {
|
|
452
453
|
label: h(o).button.textColor,
|
|
453
454
|
class: "tpl:mb-3.5",
|
|
454
455
|
path: "textColor"
|
|
455
456
|
}, {
|
|
456
|
-
default: a(() => [
|
|
457
|
+
default: a(() => [k(X, {
|
|
457
458
|
"model-value": e.block.textColor,
|
|
458
459
|
"onUpdate:modelValue": n[5] ||= (e) => l("textColor", e)
|
|
459
460
|
}, null, 8, ["model-value"])]),
|
|
460
461
|
_: 1
|
|
461
462
|
}, 8, ["label"]),
|
|
462
|
-
|
|
463
|
+
k(Et, {
|
|
463
464
|
path: "border",
|
|
464
465
|
"model-value": e.block.border,
|
|
465
466
|
"testid-prefix": "button",
|
|
466
467
|
"onUpdate:modelValue": n[6] ||= (e) => l("border", e)
|
|
467
468
|
}, null, 8, ["model-value"]),
|
|
468
|
-
|
|
469
|
+
k(kt, {
|
|
469
470
|
path: "borderRadius",
|
|
470
471
|
"model-value": e.block.borderRadius,
|
|
471
472
|
label: h(o).button.borderRadius,
|
|
@@ -473,27 +474,27 @@ var mt = [
|
|
|
473
474
|
"testid-prefix": "button",
|
|
474
475
|
"onUpdate:modelValue": n[7] ||= (e) => l("borderRadius", e)
|
|
475
476
|
}, null, 8, ["model-value", "label"]),
|
|
476
|
-
|
|
477
|
+
k(Y, {
|
|
477
478
|
label: h(o).button.fontSize,
|
|
478
479
|
class: "tpl:mb-3.5",
|
|
479
480
|
path: "fontSize"
|
|
480
481
|
}, {
|
|
481
|
-
default: a(() => [
|
|
482
|
+
default: a(() => [b("div", Nt, [b("input", {
|
|
482
483
|
type: "number",
|
|
483
|
-
class: g(h(
|
|
484
|
+
class: g(h(K)),
|
|
484
485
|
value: e.block.fontSize,
|
|
485
486
|
min: "10",
|
|
486
487
|
max: "36",
|
|
487
488
|
onInput: n[8] ||= (e) => l("fontSize", Number(e.target.value))
|
|
488
|
-
}, null, 42,
|
|
489
|
+
}, null, 42, Pt), b("span", { class: g(h(G)) }, "px", 2)])]),
|
|
489
490
|
_: 1
|
|
490
491
|
}, 8, ["label"]),
|
|
491
|
-
|
|
492
|
+
k(Y, {
|
|
492
493
|
label: h(o).button.fontWeight,
|
|
493
494
|
class: "tpl:mb-3.5",
|
|
494
495
|
path: "fontWeight"
|
|
495
496
|
}, {
|
|
496
|
-
default: a(() => [
|
|
497
|
+
default: a(() => [k($, {
|
|
497
498
|
options: [
|
|
498
499
|
{
|
|
499
500
|
value: "regular",
|
|
@@ -513,34 +514,34 @@ var mt = [
|
|
|
513
514
|
}, null, 8, ["options", "model-value"])]),
|
|
514
515
|
_: 1
|
|
515
516
|
}, 8, ["label"]),
|
|
516
|
-
|
|
517
|
+
k(Y, {
|
|
517
518
|
label: h(o).button.width,
|
|
518
519
|
class: "tpl:mb-3.5",
|
|
519
520
|
path: "width"
|
|
520
521
|
}, {
|
|
521
|
-
default: a(() => [
|
|
522
|
-
class: g(h(
|
|
522
|
+
default: a(() => [b("select", {
|
|
523
|
+
class: g(h(q)),
|
|
523
524
|
value: s.value,
|
|
524
525
|
onChange: n[9] ||= (e) => u(e.target.value)
|
|
525
526
|
}, [
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
], 42,
|
|
527
|
+
b("option", It, x(h(o).button.widthAuto), 1),
|
|
528
|
+
b("option", Lt, x(h(o).button.fullWidth), 1),
|
|
529
|
+
b("option", Rt, x(h(o).button.widthCustom), 1)
|
|
530
|
+
], 42, Ft), s.value === "custom" ? (i(), p("div", zt, [b("input", {
|
|
530
531
|
type: "number",
|
|
531
|
-
class: g(h(
|
|
532
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
532
|
+
class: g(h(K)),
|
|
533
|
+
value: typeof e.block.width == "number" ? e.block.width : Vt,
|
|
533
534
|
min: "20",
|
|
534
535
|
onInput: n[10] ||= (e) => f(e.target.value)
|
|
535
|
-
}, null, 42,
|
|
536
|
+
}, null, 42, Bt), b("span", { class: g(h(G)) }, "px", 2)])) : _("", !0)]),
|
|
536
537
|
_: 1
|
|
537
538
|
}, 8, ["label"]),
|
|
538
|
-
|
|
539
|
+
k(Y, {
|
|
539
540
|
label: h(o).title.align,
|
|
540
541
|
class: "tpl:mb-3.5",
|
|
541
542
|
path: "align"
|
|
542
543
|
}, {
|
|
543
|
-
default: a(() => [
|
|
544
|
+
default: a(() => [k($, {
|
|
544
545
|
options: [
|
|
545
546
|
{
|
|
546
547
|
value: "left",
|
|
@@ -562,7 +563,7 @@ var mt = [
|
|
|
562
563
|
}, 8, ["label"])
|
|
563
564
|
], 64));
|
|
564
565
|
}
|
|
565
|
-
}),
|
|
566
|
+
}), Ut = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Wt = { class: "tpl:flex tpl:items-center" }, Gt = ["aria-label"], Kt = ["value", "aria-label"], qt = ["aria-label"], Jt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Yt = { class: "tpl:flex tpl:items-center" }, Xt = ["aria-label"], Zt = ["value", "aria-label"], Qt = ["aria-label"], $t = ["aria-label", "title"], en = { class: "tpl:flex tpl:items-center" }, tn = ["aria-label"], nn = ["value", "aria-label"], rn = ["aria-label"], an = { class: "tpl:flex tpl:items-center" }, on = ["aria-label"], sn = ["value", "aria-label"], cn = ["aria-label"], ln = "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)]", un = "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)]", dn = /*#__PURE__*/ H(/* @__PURE__ */ r({
|
|
566
567
|
__name: "SpacingControl",
|
|
567
568
|
props: {
|
|
568
569
|
path: {},
|
|
@@ -571,7 +572,7 @@ var mt = [
|
|
|
571
572
|
},
|
|
572
573
|
emits: ["update:modelValue"],
|
|
573
574
|
setup(e, { emit: t }) {
|
|
574
|
-
let n = e, r = t, { t: s } =
|
|
575
|
+
let n = e, r = t, { t: s } = W(), c = C(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), l = E(c.value);
|
|
575
576
|
o(c, (e) => {
|
|
576
577
|
!e && l.value && (l.value = !1);
|
|
577
578
|
});
|
|
@@ -610,131 +611,131 @@ var mt = [
|
|
|
610
611
|
});
|
|
611
612
|
}
|
|
612
613
|
}
|
|
613
|
-
return (t, n) => (i(), v(
|
|
614
|
+
return (t, n) => (i(), v(Y, {
|
|
614
615
|
class: "spacing-control",
|
|
615
616
|
path: e.path,
|
|
616
617
|
label: e.label
|
|
617
618
|
}, {
|
|
618
|
-
default: a(() => [
|
|
619
|
-
|
|
620
|
-
|
|
619
|
+
default: a(() => [b("div", Ut, [
|
|
620
|
+
b("div", Wt, [
|
|
621
|
+
b("button", {
|
|
621
622
|
"aria-label": h(s).spacingControl.decreaseTop,
|
|
622
|
-
class: g([
|
|
623
|
+
class: g([ln, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
623
624
|
onClick: n[0] ||= (e) => u("top", -1)
|
|
624
|
-
}, [
|
|
625
|
+
}, [k(h(je), {
|
|
625
626
|
size: 12,
|
|
626
627
|
"stroke-width": 2
|
|
627
|
-
})], 10,
|
|
628
|
-
|
|
628
|
+
})], 10, Gt),
|
|
629
|
+
b("input", {
|
|
629
630
|
type: "number",
|
|
630
|
-
class: g(
|
|
631
|
+
class: g(un),
|
|
631
632
|
value: e.modelValue.top,
|
|
632
633
|
"aria-label": h(s).spacingControl.top,
|
|
633
634
|
min: "0",
|
|
634
635
|
onInput: n[1] ||= (e) => d("top", Number(e.target.value))
|
|
635
|
-
}, null, 40,
|
|
636
|
-
|
|
636
|
+
}, null, 40, Kt),
|
|
637
|
+
b("button", {
|
|
637
638
|
"aria-label": h(s).spacingControl.increaseTop,
|
|
638
|
-
class: g([
|
|
639
|
+
class: g([ln, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
639
640
|
onClick: n[2] ||= (e) => u("top", 1)
|
|
640
|
-
}, [
|
|
641
|
+
}, [k(h(U), {
|
|
641
642
|
size: 12,
|
|
642
643
|
"stroke-width": 2
|
|
643
|
-
})], 10,
|
|
644
|
+
})], 10, qt)
|
|
644
645
|
]),
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
646
|
+
b("div", Jt, [
|
|
647
|
+
b("div", Yt, [
|
|
648
|
+
b("button", {
|
|
648
649
|
"aria-label": h(s).spacingControl.decreaseLeft,
|
|
649
|
-
class: g([
|
|
650
|
+
class: g([ln, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
650
651
|
onClick: n[3] ||= (e) => u("left", -1)
|
|
651
|
-
}, [
|
|
652
|
+
}, [k(h(je), {
|
|
652
653
|
size: 12,
|
|
653
654
|
"stroke-width": 2
|
|
654
|
-
})], 10,
|
|
655
|
-
|
|
655
|
+
})], 10, Xt),
|
|
656
|
+
b("input", {
|
|
656
657
|
type: "number",
|
|
657
|
-
class: g(
|
|
658
|
+
class: g(un),
|
|
658
659
|
value: e.modelValue.left,
|
|
659
660
|
"aria-label": h(s).spacingControl.left,
|
|
660
661
|
min: "0",
|
|
661
662
|
onInput: n[4] ||= (e) => d("left", Number(e.target.value))
|
|
662
|
-
}, null, 40,
|
|
663
|
-
|
|
663
|
+
}, null, 40, Zt),
|
|
664
|
+
b("button", {
|
|
664
665
|
"aria-label": h(s).spacingControl.increaseLeft,
|
|
665
|
-
class: g([
|
|
666
|
+
class: g([ln, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
666
667
|
onClick: n[5] ||= (e) => u("left", 1)
|
|
667
|
-
}, [
|
|
668
|
+
}, [k(h(U), {
|
|
668
669
|
size: 12,
|
|
669
670
|
"stroke-width": 2
|
|
670
|
-
})], 10,
|
|
671
|
+
})], 10, Qt)
|
|
671
672
|
]),
|
|
672
|
-
|
|
673
|
+
b("button", {
|
|
673
674
|
class: g(["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)]"]),
|
|
674
675
|
"aria-label": l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
675
676
|
title: l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
676
677
|
onClick: f
|
|
677
|
-
}, [l.value ? (i(), v(h(
|
|
678
|
+
}, [l.value ? (i(), v(h(Le), {
|
|
678
679
|
key: 0,
|
|
679
680
|
size: 14,
|
|
680
681
|
"stroke-width": 2
|
|
681
|
-
})) : (i(), v(h(
|
|
682
|
+
})) : (i(), v(h(Fe), {
|
|
682
683
|
key: 1,
|
|
683
684
|
size: 14,
|
|
684
685
|
"stroke-width": 2
|
|
685
|
-
}))], 10,
|
|
686
|
-
|
|
687
|
-
|
|
686
|
+
}))], 10, $t),
|
|
687
|
+
b("div", en, [
|
|
688
|
+
b("button", {
|
|
688
689
|
"aria-label": h(s).spacingControl.decreaseRight,
|
|
689
|
-
class: g([
|
|
690
|
+
class: g([ln, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
690
691
|
onClick: n[6] ||= (e) => u("right", -1)
|
|
691
|
-
}, [
|
|
692
|
+
}, [k(h(je), {
|
|
692
693
|
size: 12,
|
|
693
694
|
"stroke-width": 2
|
|
694
|
-
})], 10,
|
|
695
|
-
|
|
695
|
+
})], 10, tn),
|
|
696
|
+
b("input", {
|
|
696
697
|
type: "number",
|
|
697
|
-
class: g(
|
|
698
|
+
class: g(un),
|
|
698
699
|
value: e.modelValue.right,
|
|
699
700
|
"aria-label": h(s).spacingControl.right,
|
|
700
701
|
min: "0",
|
|
701
702
|
onInput: n[7] ||= (e) => d("right", Number(e.target.value))
|
|
702
|
-
}, null, 40,
|
|
703
|
-
|
|
703
|
+
}, null, 40, nn),
|
|
704
|
+
b("button", {
|
|
704
705
|
"aria-label": h(s).spacingControl.increaseRight,
|
|
705
|
-
class: g([
|
|
706
|
+
class: g([ln, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
706
707
|
onClick: n[8] ||= (e) => u("right", 1)
|
|
707
|
-
}, [
|
|
708
|
+
}, [k(h(U), {
|
|
708
709
|
size: 12,
|
|
709
710
|
"stroke-width": 2
|
|
710
|
-
})], 10,
|
|
711
|
+
})], 10, rn)
|
|
711
712
|
])
|
|
712
713
|
]),
|
|
713
|
-
|
|
714
|
-
|
|
714
|
+
b("div", an, [
|
|
715
|
+
b("button", {
|
|
715
716
|
"aria-label": h(s).spacingControl.decreaseBottom,
|
|
716
|
-
class: g([
|
|
717
|
+
class: g([ln, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
717
718
|
onClick: n[9] ||= (e) => u("bottom", -1)
|
|
718
|
-
}, [
|
|
719
|
+
}, [k(h(je), {
|
|
719
720
|
size: 12,
|
|
720
721
|
"stroke-width": 2
|
|
721
|
-
})], 10,
|
|
722
|
-
|
|
722
|
+
})], 10, on),
|
|
723
|
+
b("input", {
|
|
723
724
|
type: "number",
|
|
724
|
-
class: g(
|
|
725
|
+
class: g(un),
|
|
725
726
|
value: e.modelValue.bottom,
|
|
726
727
|
"aria-label": h(s).spacingControl.bottom,
|
|
727
728
|
min: "0",
|
|
728
729
|
onInput: n[10] ||= (e) => d("bottom", Number(e.target.value))
|
|
729
|
-
}, null, 40,
|
|
730
|
-
|
|
730
|
+
}, null, 40, sn),
|
|
731
|
+
b("button", {
|
|
731
732
|
"aria-label": h(s).spacingControl.increaseBottom,
|
|
732
|
-
class: g([
|
|
733
|
+
class: g([ln, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
733
734
|
onClick: n[11] ||= (e) => u("bottom", 1)
|
|
734
|
-
}, [
|
|
735
|
+
}, [k(h(U), {
|
|
735
736
|
size: 12,
|
|
736
737
|
"stroke-width": 2
|
|
737
|
-
})], 10,
|
|
738
|
+
})], 10, cn)
|
|
738
739
|
])
|
|
739
740
|
])]),
|
|
740
741
|
_: 1
|
|
@@ -742,19 +743,19 @@ var mt = [
|
|
|
742
743
|
}
|
|
743
744
|
}), [["__scopeId", "data-v-94c2e6ff"]]);
|
|
744
745
|
// src/composables/useNaturalImageSize.ts
|
|
745
|
-
function
|
|
746
|
-
let t =
|
|
746
|
+
function fn(e) {
|
|
747
|
+
let t = E(null), n = () => {};
|
|
747
748
|
return o(e, (e) => {
|
|
748
|
-
n(), t.value = null, e && (n =
|
|
749
|
+
n(), t.value = null, e && (n = B(e, (e) => {
|
|
749
750
|
t.value = e;
|
|
750
751
|
}));
|
|
751
752
|
}, { immediate: !0 }), t;
|
|
752
753
|
}
|
|
753
|
-
function
|
|
754
|
-
let e = l(
|
|
755
|
-
return async (t) =>
|
|
754
|
+
function pn() {
|
|
755
|
+
let e = l(Ve, null);
|
|
756
|
+
return async (t) => z(e ? await mn(e, t) : t);
|
|
756
757
|
}
|
|
757
|
-
function
|
|
758
|
+
function mn(e, t) {
|
|
758
759
|
let n = (e) => typeof e == "string" && e.length > 0 ? e : t;
|
|
759
760
|
e.lookup(t);
|
|
760
761
|
let r = e.get(t);
|
|
@@ -765,13 +766,13 @@ function un(e, t) {
|
|
|
765
766
|
}) : Promise.resolve(n(r));
|
|
766
767
|
}
|
|
767
768
|
// src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
|
|
768
|
-
var
|
|
769
|
+
var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"], vn = ["data-testid"], yn = ["aria-label", "data-testid"], bn = [
|
|
769
770
|
"aria-label",
|
|
770
771
|
"title",
|
|
771
772
|
"aria-pressed",
|
|
772
773
|
"data-testid",
|
|
773
774
|
"onClick"
|
|
774
|
-
],
|
|
775
|
+
], xn = ["data-testid"], Sn = /* @__PURE__ */ r({
|
|
775
776
|
__name: "BackgroundImageControl",
|
|
776
777
|
props: {
|
|
777
778
|
hideLabel: { type: Boolean },
|
|
@@ -782,36 +783,36 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
782
783
|
},
|
|
783
784
|
emits: ["update:modelValue"],
|
|
784
785
|
setup(e, { emit: t }) {
|
|
785
|
-
let n = e, r = t, { t: a } =
|
|
786
|
-
u(() => clearTimeout(
|
|
787
|
-
function
|
|
788
|
-
n.measure && !
|
|
786
|
+
let n = e, r = t, { t: a } = W(), o = l(Be, ee.liquid), s = C(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = C(() => s.value.trim() !== ""), f = pn(), y;
|
|
787
|
+
u(() => clearTimeout(y));
|
|
788
|
+
function S(e) {
|
|
789
|
+
n.measure && !N(e, o) && (y = setTimeout(async () => {
|
|
789
790
|
let t = await f(e), i = n.modelValue;
|
|
790
791
|
t && i?.url === e && r("update:modelValue", {
|
|
791
792
|
...i,
|
|
792
|
-
...
|
|
793
|
+
...I(t)
|
|
793
794
|
});
|
|
794
795
|
}, 300));
|
|
795
796
|
}
|
|
796
797
|
function w(e, t = null) {
|
|
797
|
-
if (clearTimeout(
|
|
798
|
+
if (clearTimeout(y), e.trim() === "") {
|
|
798
799
|
r("update:modelValue", void 0);
|
|
799
800
|
return;
|
|
800
801
|
}
|
|
801
|
-
let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ??
|
|
802
|
+
let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ?? ae(e), s = n.measure ? t : null;
|
|
802
803
|
r("update:modelValue", {
|
|
803
804
|
...o,
|
|
804
805
|
url: e,
|
|
805
|
-
...s ?
|
|
806
|
-
}), s ||
|
|
806
|
+
...s ? I(s) : {}
|
|
807
|
+
}), s || S(e);
|
|
807
808
|
}
|
|
808
|
-
function
|
|
809
|
+
function T(e) {
|
|
809
810
|
n.modelValue && r("update:modelValue", {
|
|
810
811
|
...n.modelValue,
|
|
811
812
|
...e
|
|
812
813
|
});
|
|
813
814
|
}
|
|
814
|
-
let
|
|
815
|
+
let O = C(() => [
|
|
815
816
|
{
|
|
816
817
|
value: "cover",
|
|
817
818
|
label: a.blockSettings.backgroundSizeCover
|
|
@@ -824,7 +825,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
824
825
|
value: "auto",
|
|
825
826
|
label: a.blockSettings.backgroundSizeAuto
|
|
826
827
|
}
|
|
827
|
-
]),
|
|
828
|
+
]), A = C(() => ({
|
|
828
829
|
"top-left": a.blockSettings.backgroundPositionTopLeft,
|
|
829
830
|
"top-center": a.blockSettings.backgroundPositionTopCenter,
|
|
830
831
|
"top-right": a.blockSettings.backgroundPositionTopRight,
|
|
@@ -834,39 +835,39 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
834
835
|
"bottom-left": a.blockSettings.backgroundPositionBottomLeft,
|
|
835
836
|
"bottom-center": a.blockSettings.backgroundPositionBottomCenter,
|
|
836
837
|
"bottom-right": a.blockSettings.backgroundPositionBottomRight
|
|
837
|
-
})),
|
|
838
|
+
})), j = C(() => te.flatMap((e) => F.map((t) => ({
|
|
838
839
|
x: t,
|
|
839
840
|
y: e,
|
|
840
|
-
label:
|
|
841
|
+
label: A.value[`${e}-${t}`]
|
|
841
842
|
}))));
|
|
842
|
-
function
|
|
843
|
+
function M(e) {
|
|
843
844
|
return n.modelValue?.position?.x === e.x && n.modelValue?.position?.y === e.y;
|
|
844
845
|
}
|
|
845
|
-
let
|
|
846
|
-
target:
|
|
847
|
-
blocked: () =>
|
|
848
|
-
apply: (e) => w(e.url,
|
|
846
|
+
let P = E(), { canBrowse: ne, isUploading: re, showOverlay: ie, openMediaBrowser: oe } = ye({
|
|
847
|
+
target: P,
|
|
848
|
+
blocked: () => N(s.value, o),
|
|
849
|
+
apply: (e) => w(e.url, pe(e.width, e.height))
|
|
849
850
|
});
|
|
850
|
-
return (t, n) => (i(), p("div",
|
|
851
|
+
return (t, n) => (i(), p("div", hn, [b("div", null, [e.hideLabel ? _("", !0) : (i(), p("label", {
|
|
851
852
|
key: 0,
|
|
852
|
-
class: g(h(
|
|
853
|
-
},
|
|
853
|
+
class: g(h(J))
|
|
854
|
+
}, x(h(a).blockSettings.backgroundImage), 3)), b("div", {
|
|
854
855
|
ref_key: "dropZoneRef",
|
|
855
|
-
ref:
|
|
856
|
+
ref: P,
|
|
856
857
|
class: "tpl:relative",
|
|
857
858
|
"data-testid": `${e.testidPrefix}-bg-url`
|
|
858
859
|
}, [
|
|
859
|
-
h(
|
|
860
|
+
h(ie) ? (i(), v(ge, {
|
|
860
861
|
key: 0,
|
|
861
|
-
uploading: h(
|
|
862
|
+
uploading: h(re)
|
|
862
863
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
863
|
-
|
|
864
|
+
k(Q, {
|
|
864
865
|
"model-value": s.value,
|
|
865
866
|
type: "url",
|
|
866
867
|
placeholder: h(a).blockSettings.backgroundImagePlaceholder,
|
|
867
868
|
"onUpdate:modelValue": w
|
|
868
869
|
}, null, 8, ["model-value", "placeholder"]),
|
|
869
|
-
h(
|
|
870
|
+
h(ne) ? (i(), p("button", {
|
|
870
871
|
key: 1,
|
|
871
872
|
type: "button",
|
|
872
873
|
"data-testid": `${e.testidPrefix}-bg-browse`,
|
|
@@ -876,50 +877,50 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
876
877
|
color: "var(--tpl-primary)",
|
|
877
878
|
"background-color": "var(--tpl-bg)"
|
|
878
879
|
},
|
|
879
|
-
onClick: n[0] ||= (...e) => h(
|
|
880
|
-
}, [
|
|
880
|
+
onClick: n[0] ||= (...e) => h(oe) && h(oe)(...e)
|
|
881
|
+
}, [k(h(ke), {
|
|
881
882
|
size: 14,
|
|
882
883
|
"stroke-width": 1.5
|
|
883
|
-
}), m(" " +
|
|
884
|
-
], 8,
|
|
884
|
+
}), m(" " + x(h(a).image.browseMedia), 1)], 8, _n)) : _("", !0)
|
|
885
|
+
], 8, gn)]), d.value && e.modelValue ? (i(), p(D, { key: 0 }, [
|
|
885
886
|
e.heroMode ? _("", !0) : (i(), p("div", {
|
|
886
887
|
key: 0,
|
|
887
888
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
888
|
-
}, [
|
|
889
|
-
options:
|
|
889
|
+
}, [b("label", { class: g(h(J)) }, x(h(a).blockSettings.backgroundSize), 3), k($, {
|
|
890
|
+
options: O.value,
|
|
890
891
|
"model-value": e.modelValue.size,
|
|
891
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
892
|
-
}, null, 8, ["options", "model-value"])], 8,
|
|
893
|
-
|
|
892
|
+
"onUpdate:modelValue": n[1] ||= (e) => T({ size: e })
|
|
893
|
+
}, null, 8, ["options", "model-value"])], 8, vn)),
|
|
894
|
+
b("div", null, [b("label", { class: g(h(J)) }, x(h(a).blockSettings.backgroundPosition), 3), b("div", {
|
|
894
895
|
role: "group",
|
|
895
896
|
"aria-label": h(a).blockSettings.backgroundPosition,
|
|
896
897
|
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
897
898
|
class: "tpl:grid tpl:w-24 tpl:grid-cols-3 tpl:gap-1"
|
|
898
|
-
}, [(i(!0), p(
|
|
899
|
+
}, [(i(!0), p(D, null, c(j.value, (t) => (i(), p("button", {
|
|
899
900
|
key: `${t.y}-${t.x}`,
|
|
900
901
|
type: "button",
|
|
901
902
|
"aria-label": t.label,
|
|
902
903
|
title: t.label,
|
|
903
|
-
"aria-pressed":
|
|
904
|
+
"aria-pressed": M(t),
|
|
904
905
|
"data-testid": `${e.testidPrefix}-bg-position-${t.y}-${t.x}`,
|
|
905
|
-
class: g(["tpl:flex tpl:h-6 tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:transition-colors",
|
|
906
|
-
onClick: (e) =>
|
|
906
|
+
class: g(["tpl:flex tpl:h-6 tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:transition-colors", M(t) ? "tpl:border-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
907
|
+
onClick: (e) => T({ position: {
|
|
907
908
|
x: t.x,
|
|
908
909
|
y: t.y
|
|
909
910
|
} })
|
|
910
|
-
}, [
|
|
911
|
+
}, [b("span", { class: g(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", M(t) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10, bn))), 128))], 8, yn)]),
|
|
911
912
|
e.heroMode ? _("", !0) : (i(), p("div", {
|
|
912
913
|
key: 1,
|
|
913
914
|
"data-testid": `${e.testidPrefix}-bg-repeat`
|
|
914
|
-
}, [
|
|
915
|
+
}, [k(Z, {
|
|
915
916
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
916
917
|
"model-value": e.modelValue.repeat,
|
|
917
918
|
label: h(a).blockSettings.backgroundRepeat,
|
|
918
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
919
|
-
}, null, 8, ["model-value", "label"])], 8,
|
|
919
|
+
"onUpdate:modelValue": n[2] ||= (e) => T({ repeat: e })
|
|
920
|
+
}, null, 8, ["model-value", "label"])], 8, xn))
|
|
920
921
|
], 64)) : _("", !0)]));
|
|
921
922
|
}
|
|
922
|
-
}),
|
|
923
|
+
}), Cn = ["data-testid"], wn = ["data-testid"], Tn = /* @__PURE__ */ r({
|
|
923
924
|
__name: "CollapsibleSection",
|
|
924
925
|
props: {
|
|
925
926
|
title: {},
|
|
@@ -929,35 +930,38 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
929
930
|
},
|
|
930
931
|
emits: ["toggle"],
|
|
931
932
|
setup(e) {
|
|
932
|
-
return (t, n) => (i(), p("div", { class: g(["tpl:py-3", e.noBorder ? "" : "tpl:border-t tpl:border-[var(--tpl-border)]"]) }, [
|
|
933
|
+
return (t, n) => (i(), p("div", { class: g(["tpl:py-3", e.noBorder ? "" : "tpl:border-t tpl:border-[var(--tpl-border)]"]) }, [b("button", {
|
|
933
934
|
type: "button",
|
|
934
935
|
"data-testid": e.headerTestId,
|
|
935
936
|
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)]",
|
|
936
937
|
onClick: n[0] ||= (e) => t.$emit("toggle")
|
|
937
|
-
}, [
|
|
938
|
+
}, [k(h(Ce), {
|
|
938
939
|
class: g(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
939
940
|
size: 12,
|
|
940
941
|
"stroke-width": 2
|
|
941
|
-
}, null, 8, ["class"]),
|
|
942
|
+
}, null, 8, ["class"]), b("span", null, x(e.title), 1)], 8, Cn), s(b("div", {
|
|
943
|
+
class: "tpl:mt-3",
|
|
944
|
+
"data-testid": e.headerTestId ? `${e.headerTestId}-content` : void 0
|
|
945
|
+
}, [d(t.$slots, "default")], 8, wn), [[T, e.open]])], 2));
|
|
942
946
|
}
|
|
943
|
-
}),
|
|
947
|
+
}), En = {
|
|
944
948
|
key: 0,
|
|
945
949
|
"data-testid": "section-hero-columns-note",
|
|
946
950
|
class: "tpl:mt-3.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
947
|
-
},
|
|
951
|
+
}, Dn = {
|
|
948
952
|
key: 1,
|
|
949
953
|
"data-testid": "section-hero",
|
|
950
954
|
class: "tpl:mt-3.5 tpl:space-y-3.5"
|
|
951
|
-
},
|
|
955
|
+
}, On = { "data-testid": "section-hero-height" }, kn = {
|
|
952
956
|
key: 0,
|
|
953
957
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
954
|
-
},
|
|
958
|
+
}, An = {
|
|
955
959
|
key: 1,
|
|
956
960
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
957
|
-
},
|
|
961
|
+
}, jn = {
|
|
958
962
|
key: 1,
|
|
959
963
|
"data-testid": "section-hero-align"
|
|
960
|
-
},
|
|
964
|
+
}, Mn = 300, Nn = /* @__PURE__ */ r({
|
|
961
965
|
__name: "HeroControl",
|
|
962
966
|
props: { section: {} },
|
|
963
967
|
emits: ["update"],
|
|
@@ -965,7 +969,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
965
969
|
function n(e) {
|
|
966
970
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
967
971
|
}
|
|
968
|
-
let r = e, a = t, { t: o } =
|
|
972
|
+
let r = e, a = t, { t: o } = W(), s = l(Be, ee.liquid), c = l($e, null), u = l(We, void 0), d = pn(), f = C(() => typeof r.section.backgroundImage?.url == "string" ? r.section.backgroundImage.url : ""), m = C(() => f.value.trim() !== ""), y = C(() => N(f.value, s)), S = C(() => r.section.hero), w = C(() => r.section.columns === "1"), T = C(() => S.value ? n(S.value.height) ? "fixed" : "image" : "fit"), E = C(() => n(S.value?.height) ? S.value.height : Mn), D = C(() => [
|
|
969
973
|
{
|
|
970
974
|
value: "fit",
|
|
971
975
|
label: o.blockSettings.heroHeightFit
|
|
@@ -973,13 +977,13 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
973
977
|
{
|
|
974
978
|
value: "image",
|
|
975
979
|
label: o.blockSettings.heroHeightImage,
|
|
976
|
-
disabled:
|
|
980
|
+
disabled: y.value
|
|
977
981
|
},
|
|
978
982
|
{
|
|
979
983
|
value: "fixed",
|
|
980
984
|
label: o.blockSettings.heroHeightFixed
|
|
981
985
|
}
|
|
982
|
-
]),
|
|
986
|
+
]), O = C(() => [
|
|
983
987
|
{
|
|
984
988
|
value: "top",
|
|
985
989
|
label: o.blockSettings.heroAlignTop
|
|
@@ -992,17 +996,17 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
992
996
|
value: "bottom",
|
|
993
997
|
label: o.blockSettings.heroAlignBottom
|
|
994
998
|
}
|
|
995
|
-
]),
|
|
996
|
-
function
|
|
997
|
-
return (c ?
|
|
999
|
+
]), A = C(() => T.value === "image" && m.value && !y.value && ie(r.section.backgroundImage) === null);
|
|
1000
|
+
function j() {
|
|
1001
|
+
return (c ? V(c.content.value, r.section.id, u, c.activeLocale?.value ?? void 0) : null) ?? R(c?.state.content.settings);
|
|
998
1002
|
}
|
|
999
|
-
function
|
|
1000
|
-
let t =
|
|
1003
|
+
function M(e) {
|
|
1004
|
+
let t = S.value?.verticalAlign ?? "middle";
|
|
1001
1005
|
if (e === "image") {
|
|
1002
1006
|
T.value !== "image" && a("update", { hero: {
|
|
1003
1007
|
height: "image",
|
|
1004
1008
|
verticalAlign: t
|
|
1005
|
-
} }),
|
|
1009
|
+
} }), P();
|
|
1006
1010
|
return;
|
|
1007
1011
|
}
|
|
1008
1012
|
if (e === T.value) return;
|
|
@@ -1010,71 +1014,147 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1010
1014
|
a("update", { hero: void 0 });
|
|
1011
1015
|
return;
|
|
1012
1016
|
}
|
|
1013
|
-
let n =
|
|
1017
|
+
let n = ie(r.section.backgroundImage), i = n === null ? Mn : Math.round(j() * n);
|
|
1014
1018
|
a("update", { hero: {
|
|
1015
1019
|
height: i,
|
|
1016
1020
|
verticalAlign: t
|
|
1017
1021
|
} });
|
|
1018
1022
|
}
|
|
1019
|
-
async function
|
|
1023
|
+
async function P() {
|
|
1020
1024
|
let e = r.section.backgroundImage;
|
|
1021
|
-
if (!e || !m.value ||
|
|
1025
|
+
if (!e || !m.value || y.value || ie(e) !== null) return;
|
|
1022
1026
|
let t = e.url, n = await d(t), i = r.section.backgroundImage;
|
|
1023
1027
|
n && i && i.url === t && a("update", { backgroundImage: {
|
|
1024
1028
|
...i,
|
|
1025
|
-
...
|
|
1029
|
+
...I(n)
|
|
1026
1030
|
} });
|
|
1027
1031
|
}
|
|
1028
|
-
function
|
|
1029
|
-
!
|
|
1030
|
-
...
|
|
1032
|
+
function F(e) {
|
|
1033
|
+
!S.value || !Number.isFinite(e) || e < 1 || a("update", { hero: {
|
|
1034
|
+
...S.value,
|
|
1031
1035
|
height: Math.round(e)
|
|
1032
1036
|
} });
|
|
1033
1037
|
}
|
|
1034
|
-
function
|
|
1035
|
-
|
|
1036
|
-
...
|
|
1038
|
+
function te(e) {
|
|
1039
|
+
S.value && a("update", { hero: {
|
|
1040
|
+
...S.value,
|
|
1037
1041
|
verticalAlign: e
|
|
1038
1042
|
} });
|
|
1039
1043
|
}
|
|
1040
|
-
return (e, t) => !w.value &&
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
+
return (e, t) => !w.value && S.value ? (i(), p("p", En, x(h(o).section.heroNeedsOneColumn), 1)) : w.value && (m.value || S.value) ? (i(), p("div", Dn, [
|
|
1045
|
+
b("div", On, [
|
|
1046
|
+
b("label", { class: g(h(J)) }, x(h(o).blockSettings.heroHeight), 3),
|
|
1047
|
+
k($, {
|
|
1044
1048
|
options: D.value,
|
|
1045
1049
|
"model-value": T.value,
|
|
1046
|
-
"onUpdate:modelValue":
|
|
1050
|
+
"onUpdate:modelValue": M
|
|
1047
1051
|
}, null, 8, ["options", "model-value"]),
|
|
1048
|
-
|
|
1052
|
+
y.value ? (i(), p("p", kn, x(h(o).blockSettings.heroMatchImageMergeTag), 1)) : A.value ? (i(), p("p", An, x(h(o).blockSettings.heroSizeUnknown), 1)) : _("", !0)
|
|
1049
1053
|
]),
|
|
1050
|
-
T.value === "fixed" ? (i(), v(
|
|
1054
|
+
T.value === "fixed" ? (i(), v(bt, {
|
|
1051
1055
|
key: 0,
|
|
1052
1056
|
"model-value": E.value,
|
|
1053
1057
|
min: 1,
|
|
1054
1058
|
suffix: "px",
|
|
1055
1059
|
testid: "section-hero-height-px",
|
|
1056
|
-
"onUpdate:modelValue":
|
|
1060
|
+
"onUpdate:modelValue": F
|
|
1057
1061
|
}, null, 8, ["model-value"])) : _("", !0),
|
|
1058
|
-
|
|
1059
|
-
options:
|
|
1060
|
-
"model-value":
|
|
1061
|
-
"onUpdate:modelValue":
|
|
1062
|
+
S.value ? (i(), p("div", jn, [b("label", { class: g(h(J)) }, x(h(o).blockSettings.heroAlign), 3), k($, {
|
|
1063
|
+
options: O.value,
|
|
1064
|
+
"model-value": S.value.verticalAlign,
|
|
1065
|
+
"onUpdate:modelValue": te
|
|
1062
1066
|
}, null, 8, ["options", "model-value"])])) : _("", !0)
|
|
1063
1067
|
])) : _("", !0);
|
|
1064
1068
|
}
|
|
1065
|
-
}),
|
|
1069
|
+
}), Pn = /* @__PURE__ */ new Set([
|
|
1070
|
+
"fullWidth",
|
|
1071
|
+
"backgroundColor",
|
|
1072
|
+
"backgroundImage",
|
|
1073
|
+
"padding",
|
|
1074
|
+
"borderRadius"
|
|
1075
|
+
]);
|
|
1076
|
+
function Fn(e) {
|
|
1077
|
+
return typeof e == "string" && e !== "";
|
|
1078
|
+
}
|
|
1079
|
+
function In(e) {
|
|
1080
|
+
return e ? [
|
|
1081
|
+
e.top,
|
|
1082
|
+
e.right,
|
|
1083
|
+
e.bottom,
|
|
1084
|
+
e.left
|
|
1085
|
+
].some((e) => e !== 0) : !1;
|
|
1086
|
+
}
|
|
1087
|
+
function Ln(e) {
|
|
1088
|
+
return Fn(e.styles.backgroundColor) || !!e.backgroundImage;
|
|
1089
|
+
}
|
|
1090
|
+
function Rn(e) {
|
|
1091
|
+
return e.fullWidth !== !0 || In(e.padding) || A(e.borderRadius) !== null ? !1 : Object.keys(e).every((e) => Pn.has(e));
|
|
1092
|
+
}
|
|
1093
|
+
function zn(e, t = {}) {
|
|
1094
|
+
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 && ne(t.layout);
|
|
1095
|
+
}
|
|
1096
|
+
function Bn(e) {
|
|
1097
|
+
let t = {};
|
|
1098
|
+
return Fn(e.styles.backgroundColor) && (t.backgroundColor = e.styles.backgroundColor), e.backgroundImage && (t.backgroundImage = e.backgroundImage), t;
|
|
1099
|
+
}
|
|
1100
|
+
function Vn(e) {
|
|
1101
|
+
let t = { ...e.styles };
|
|
1102
|
+
return delete t.backgroundColor, t;
|
|
1103
|
+
}
|
|
1104
|
+
function Hn(e, t) {
|
|
1105
|
+
if (t) return e.wrapper ? { wrapper: {
|
|
1106
|
+
...e.wrapper,
|
|
1107
|
+
fullWidth: !0
|
|
1108
|
+
} } : {
|
|
1109
|
+
wrapper: {
|
|
1110
|
+
fullWidth: !0,
|
|
1111
|
+
...Bn(e)
|
|
1112
|
+
},
|
|
1113
|
+
styles: Vn(e),
|
|
1114
|
+
backgroundImage: void 0
|
|
1115
|
+
};
|
|
1116
|
+
let n = e.wrapper;
|
|
1117
|
+
if (!n) return {};
|
|
1118
|
+
if (Rn(n) && !Ln(e)) {
|
|
1119
|
+
let t = { ...e.styles };
|
|
1120
|
+
return Fn(n.backgroundColor) && (t.backgroundColor = n.backgroundColor), {
|
|
1121
|
+
wrapper: void 0,
|
|
1122
|
+
styles: t,
|
|
1123
|
+
backgroundImage: n.backgroundImage
|
|
1124
|
+
};
|
|
1125
|
+
}
|
|
1126
|
+
return { wrapper: {
|
|
1127
|
+
...n,
|
|
1128
|
+
fullWidth: !1
|
|
1129
|
+
} };
|
|
1130
|
+
}
|
|
1131
|
+
function Un(e) {
|
|
1132
|
+
let t = e.wrapper;
|
|
1133
|
+
return t && Rn(t) && !Ln(e) ? Hn(e, !1) : { wrapper: void 0 };
|
|
1134
|
+
}
|
|
1135
|
+
// src/components/toolbar/CommonBlockSettings.vue?vue&type=script&setup=true&lang.ts
|
|
1136
|
+
var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Kn = {
|
|
1137
|
+
key: 0,
|
|
1138
|
+
class: "tpl:space-y-2"
|
|
1139
|
+
}, qn = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Jn = {
|
|
1140
|
+
key: 0,
|
|
1141
|
+
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1142
|
+
}, Yn = { class: "tpl:flex tpl:gap-2" }, Xn = ["disabled"], Zn = ["disabled"], Qn = ["disabled"], $n = {
|
|
1143
|
+
key: 1,
|
|
1144
|
+
class: "tpl:space-y-2"
|
|
1145
|
+
}, er = ["value"], tr = { value: "" }, nr = ["label"], rr = ["value"], ir = ["value"], ar = {
|
|
1066
1146
|
key: 0,
|
|
1067
1147
|
value: "__custom__"
|
|
1068
|
-
},
|
|
1148
|
+
}, or = {
|
|
1069
1149
|
key: 0,
|
|
1070
1150
|
class: "tpl:space-y-2"
|
|
1071
|
-
},
|
|
1151
|
+
}, sr = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, cr = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, lr = { class: "tpl:flex tpl:justify-end" }, ur = ["disabled"], dr = {
|
|
1072
1152
|
key: 0,
|
|
1073
1153
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1074
|
-
},
|
|
1154
|
+
}, fr = { class: "tpl:space-y-1" }, pr = { 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)]" }, mr = {
|
|
1075
1155
|
key: 0,
|
|
1076
1156
|
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)]"
|
|
1077
|
-
},
|
|
1157
|
+
}, hr = /* @__PURE__ */ r({
|
|
1078
1158
|
__name: "CommonBlockSettings",
|
|
1079
1159
|
props: {
|
|
1080
1160
|
block: {},
|
|
@@ -1082,76 +1162,133 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1082
1162
|
},
|
|
1083
1163
|
emits: ["update"],
|
|
1084
1164
|
setup(e, { emit: r }) {
|
|
1085
|
-
let u = e, d = r, { t: f, format:
|
|
1165
|
+
let u = e, d = r, { t: f, format: w } = W(), T = l($e, null), O = l(Ue, void 0), A = C(() => T?.activeLocale?.value), ee = C(() => !!(A.value && T?.selectedBlock?.value?.l10n?.[A.value]?.hidden)), j = l(qe, []), M = l(Ze, !1), N = l(We, void 0), P = l(Ke, void 0), F = C(() => u.block.type === "section" || u.block.type === "wrapper"), te = C(() => u.block.type === "wrapper" ? u.block.fullWidth === !0 : u.block.type === "section" && u.block.wrapper?.fullWidth === !0), ne = C(() => u.block.type === "section" && zn(u.block, {
|
|
1166
|
+
sectionWrapper: P,
|
|
1167
|
+
layout: N
|
|
1168
|
+
})), re = C(() => u.block.type === "wrapper" ? "layout-wrapper-full-width" : "section-background-full-width");
|
|
1169
|
+
function ie(e) {
|
|
1170
|
+
u.block.type === "wrapper" ? d("update", { fullWidth: e }) : u.block.type === "section" && d("update", Hn(u.block, e));
|
|
1171
|
+
}
|
|
1172
|
+
let ae = C(() => u.block.type === "section" && u.block.wrapper?.fullWidth === !0), ce = C(() => ae.value ? "wrapper.backgroundColor" : "styles.backgroundColor"), le = C(() => ae.value ? "wrapper.backgroundImage" : "backgroundImage"), ue = C(() => {
|
|
1173
|
+
let e = u.block;
|
|
1174
|
+
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundColor ?? "" : e.styles.backgroundColor ?? "";
|
|
1175
|
+
}), de = C(() => {
|
|
1176
|
+
let e = u.block;
|
|
1177
|
+
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundImage : e.type === "section" ? e.backgroundImage : void 0;
|
|
1178
|
+
});
|
|
1179
|
+
function fe(e, t) {
|
|
1180
|
+
d("update", { wrapper: {
|
|
1181
|
+
...e,
|
|
1182
|
+
...t
|
|
1183
|
+
} });
|
|
1184
|
+
}
|
|
1185
|
+
function pe(e) {
|
|
1186
|
+
let t = u.block;
|
|
1187
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? fe(t.wrapper, { backgroundColor: e }) : Oe("backgroundColor", e);
|
|
1188
|
+
}
|
|
1189
|
+
function me(e) {
|
|
1190
|
+
let t = u.block;
|
|
1191
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? fe(t.wrapper, { backgroundImage: e }) : d("update", { backgroundImage: e });
|
|
1192
|
+
}
|
|
1193
|
+
let ge = l(He, null), _e = he(), I = E(!1), L = t(/* @__PURE__ */ new Set()), R = E(!1), z = E(""), B = E(""), ve = [{
|
|
1086
1194
|
key: "desktop",
|
|
1087
|
-
icon:
|
|
1195
|
+
icon: xe,
|
|
1088
1196
|
labelKey: "showOnDesktop"
|
|
1089
1197
|
}, {
|
|
1090
1198
|
key: "mobile",
|
|
1091
|
-
icon:
|
|
1199
|
+
icon: Ee,
|
|
1092
1200
|
labelKey: "showOnMobile"
|
|
1093
1201
|
}];
|
|
1094
|
-
function
|
|
1095
|
-
|
|
1202
|
+
function V(e) {
|
|
1203
|
+
L.has(e) ? L.delete(e) : L.add(e);
|
|
1204
|
+
}
|
|
1205
|
+
let ye = C(() => !!ge || j.length > 0 || M);
|
|
1206
|
+
function be(e) {
|
|
1207
|
+
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
1208
|
+
let t = e;
|
|
1209
|
+
return typeof t.label == "string" && typeof t.before == "string" && typeof t.after == "string";
|
|
1210
|
+
}
|
|
1211
|
+
function H(e, t) {
|
|
1212
|
+
let n = T?.state?.selectedBlockId;
|
|
1213
|
+
u.block.id === e && (n === void 0 || n === e) ? d("update", { displayCondition: t }) : T && T.findBlockLocation(e) && T.updateBlock(e, { displayCondition: t });
|
|
1214
|
+
}
|
|
1215
|
+
async function Se() {
|
|
1216
|
+
if (!ge || I.value) return;
|
|
1217
|
+
let e = u.block.id, t = T?.activeLocale?.value ?? null, n = oe(y(u.block)), r = u.block.displayCondition ? oe(y(u.block.displayCondition)) : void 0;
|
|
1218
|
+
I.value = !0;
|
|
1219
|
+
try {
|
|
1220
|
+
let i = await ge(r ? {
|
|
1221
|
+
current: r,
|
|
1222
|
+
block: n
|
|
1223
|
+
} : { block: n });
|
|
1224
|
+
if (!_e.alive || (T?.activeLocale?.value ?? null) !== t || i === null) return;
|
|
1225
|
+
if (!be(i)) {
|
|
1226
|
+
lt.warn("displayConditions.onRequest resolved a value without string label, before and after — ignoring it.");
|
|
1227
|
+
return;
|
|
1228
|
+
}
|
|
1229
|
+
H(e, oe(i));
|
|
1230
|
+
} finally {
|
|
1231
|
+
_e.alive && (I.value = !1);
|
|
1232
|
+
}
|
|
1096
1233
|
}
|
|
1097
|
-
let
|
|
1098
|
-
function
|
|
1099
|
-
|
|
1234
|
+
let Ce = C(() => u.block.displayCondition ? !j.some((e) => e.label === u.block.displayCondition?.label) : !1);
|
|
1235
|
+
function U() {
|
|
1236
|
+
R.value = !0, Ce.value && u.block.displayCondition ? (z.value = u.block.displayCondition.before, B.value = u.block.displayCondition.after ?? "") : (z.value = "", B.value = "");
|
|
1100
1237
|
}
|
|
1101
|
-
function
|
|
1102
|
-
let e =
|
|
1238
|
+
function we() {
|
|
1239
|
+
let e = z.value.trim(), t = B.value.trim();
|
|
1103
1240
|
e && (d("update", { displayCondition: {
|
|
1104
1241
|
label: f.blockSettings.customCondition,
|
|
1105
1242
|
before: e,
|
|
1106
1243
|
after: t
|
|
1107
|
-
} }),
|
|
1244
|
+
} }), R.value = !1, z.value = e, B.value = t);
|
|
1108
1245
|
}
|
|
1109
1246
|
o([
|
|
1110
|
-
() =>
|
|
1247
|
+
() => T?.state?.template?.id,
|
|
1111
1248
|
() => u.block.id,
|
|
1112
1249
|
() => u.block.displayCondition?.label,
|
|
1113
1250
|
() => u.block.displayCondition?.before,
|
|
1114
1251
|
() => u.block.displayCondition?.after
|
|
1115
1252
|
], () => {
|
|
1116
1253
|
let e = u.block.displayCondition;
|
|
1117
|
-
!e || !
|
|
1254
|
+
!e || !Ce.value ? (R.value = !1, z.value = "", B.value = "") : (z.value = e.before, B.value = e.after ?? "");
|
|
1118
1255
|
}, { immediate: !0 });
|
|
1119
|
-
let
|
|
1256
|
+
let Te = C(() => {
|
|
1120
1257
|
let e = {};
|
|
1121
1258
|
for (let t of j) {
|
|
1122
1259
|
let n = t.group ?? "";
|
|
1123
1260
|
e[n] || (e[n] = []), e[n].push(t);
|
|
1124
1261
|
}
|
|
1125
1262
|
return e;
|
|
1126
|
-
}),
|
|
1127
|
-
function
|
|
1263
|
+
}), De = C(() => u.block.type === "section" && se(u.block)?.applied === !0);
|
|
1264
|
+
function Oe(e, t) {
|
|
1128
1265
|
d("update", { styles: {
|
|
1129
1266
|
...u.block.styles,
|
|
1130
1267
|
[e]: t
|
|
1131
1268
|
} });
|
|
1132
1269
|
}
|
|
1133
|
-
function
|
|
1270
|
+
function ke(e) {
|
|
1134
1271
|
return u.block.visibility?.[e] !== !1;
|
|
1135
1272
|
}
|
|
1136
|
-
function
|
|
1273
|
+
function Ae(e) {
|
|
1137
1274
|
let t = {
|
|
1138
|
-
desktop:
|
|
1139
|
-
mobile:
|
|
1275
|
+
desktop: ke("desktop"),
|
|
1276
|
+
mobile: ke("mobile")
|
|
1140
1277
|
};
|
|
1141
1278
|
t[e] = !t[e], d("update", { visibility: t });
|
|
1142
1279
|
}
|
|
1143
1280
|
return (t, r) => (i(), p("div", { class: g(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1144
|
-
|
|
1281
|
+
k(Tn, {
|
|
1145
1282
|
title: h(f).blockSettings.spacing,
|
|
1146
|
-
open:
|
|
1283
|
+
open: L.has("spacing"),
|
|
1147
1284
|
"no-border": e.isFirstSection,
|
|
1148
|
-
onToggle: r[1] ||= (e) =>
|
|
1285
|
+
onToggle: r[1] ||= (e) => V("spacing")
|
|
1149
1286
|
}, {
|
|
1150
|
-
default: a(() => [
|
|
1287
|
+
default: a(() => [k(dn, {
|
|
1151
1288
|
path: "styles.padding",
|
|
1152
1289
|
label: h(f).blockSettings.padding,
|
|
1153
1290
|
"model-value": e.block.styles.padding,
|
|
1154
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
1291
|
+
"onUpdate:modelValue": r[0] ||= (e) => Oe("padding", e)
|
|
1155
1292
|
}, null, 8, ["label", "model-value"])]),
|
|
1156
1293
|
_: 1
|
|
1157
1294
|
}, 8, [
|
|
@@ -1159,86 +1296,122 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1159
1296
|
"open",
|
|
1160
1297
|
"no-border"
|
|
1161
1298
|
]),
|
|
1162
|
-
|
|
1299
|
+
k(Tn, {
|
|
1163
1300
|
title: h(f).blockSettings.background,
|
|
1164
|
-
open:
|
|
1301
|
+
open: L.has("bg"),
|
|
1165
1302
|
"header-test-id": "block-settings-background",
|
|
1166
|
-
onToggle: r[
|
|
1303
|
+
onToggle: r[4] ||= (e) => V("bg")
|
|
1167
1304
|
}, {
|
|
1168
1305
|
default: a(() => [
|
|
1169
|
-
|
|
1170
|
-
path:
|
|
1306
|
+
k(Y, {
|
|
1307
|
+
path: ce.value,
|
|
1171
1308
|
label: h(f).blockSettings.color
|
|
1172
1309
|
}, {
|
|
1173
|
-
default: a(() => [
|
|
1174
|
-
"model-value":
|
|
1310
|
+
default: a(() => [k(X, {
|
|
1311
|
+
"model-value": ue.value,
|
|
1175
1312
|
"allow-transparent": "",
|
|
1176
|
-
"onUpdate:modelValue":
|
|
1313
|
+
"onUpdate:modelValue": pe
|
|
1177
1314
|
}, null, 8, ["model-value"])]),
|
|
1178
1315
|
_: 1
|
|
1179
|
-
}, 8, ["label"]),
|
|
1180
|
-
|
|
1316
|
+
}, 8, ["path", "label"]),
|
|
1317
|
+
F.value ? (i(), v(Y, {
|
|
1181
1318
|
key: 0,
|
|
1182
|
-
path: "
|
|
1319
|
+
path: e.block.type === "section" ? "wrapper.fullWidth" : "fullWidth",
|
|
1320
|
+
label: h(f).blockSettings.fullWidthBackground
|
|
1321
|
+
}, {
|
|
1322
|
+
"label-actions": a(({ controlId: e }) => [k(Z, {
|
|
1323
|
+
"data-testid": re.value,
|
|
1324
|
+
"control-id": e,
|
|
1325
|
+
"hide-label": "",
|
|
1326
|
+
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1327
|
+
"model-value": te.value,
|
|
1328
|
+
disabled: ne.value,
|
|
1329
|
+
label: h(f).blockSettings.fullWidthBackground,
|
|
1330
|
+
"onUpdate:modelValue": ie
|
|
1331
|
+
}, null, 8, [
|
|
1332
|
+
"data-testid",
|
|
1333
|
+
"control-id",
|
|
1334
|
+
"model-value",
|
|
1335
|
+
"disabled",
|
|
1336
|
+
"label"
|
|
1337
|
+
])]),
|
|
1338
|
+
_: 1
|
|
1339
|
+
}, 8, ["path", "label"])) : _("", !0),
|
|
1340
|
+
e.block.type === "section" ? (i(), v(Y, {
|
|
1341
|
+
key: 1,
|
|
1342
|
+
path: le.value,
|
|
1183
1343
|
label: h(f).blockSettings.backgroundImage
|
|
1184
1344
|
}, {
|
|
1185
|
-
default: a(() => [
|
|
1345
|
+
default: a(() => [k(Sn, {
|
|
1186
1346
|
"hide-label": "",
|
|
1187
1347
|
class: "tpl:mt-3.5",
|
|
1188
|
-
"model-value":
|
|
1348
|
+
"model-value": de.value,
|
|
1189
1349
|
"testid-prefix": "section",
|
|
1190
1350
|
measure: "",
|
|
1191
|
-
"hero-mode":
|
|
1192
|
-
"onUpdate:modelValue":
|
|
1351
|
+
"hero-mode": De.value,
|
|
1352
|
+
"onUpdate:modelValue": me
|
|
1193
1353
|
}, null, 8, ["model-value", "hero-mode"])]),
|
|
1194
1354
|
_: 1
|
|
1355
|
+
}, 8, ["path", "label"])) : _("", !0),
|
|
1356
|
+
ae.value ? (i(), v(Y, {
|
|
1357
|
+
key: 2,
|
|
1358
|
+
path: "styles.backgroundColor",
|
|
1359
|
+
label: h(f).blockSettings.contentBackground
|
|
1360
|
+
}, {
|
|
1361
|
+
default: a(() => [k(X, {
|
|
1362
|
+
"data-testid": "section-content-background",
|
|
1363
|
+
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1364
|
+
"allow-transparent": "",
|
|
1365
|
+
"onUpdate:modelValue": r[2] ||= (e) => Oe("backgroundColor", e)
|
|
1366
|
+
}, null, 8, ["model-value"])]),
|
|
1367
|
+
_: 1
|
|
1195
1368
|
}, 8, ["label"])) : _("", !0),
|
|
1196
|
-
e.block.type === "section" ? (i(), v(
|
|
1197
|
-
key:
|
|
1369
|
+
e.block.type === "section" ? (i(), v(Y, {
|
|
1370
|
+
key: 3,
|
|
1198
1371
|
path: "hero",
|
|
1199
1372
|
label: h(f).blocks.hero
|
|
1200
1373
|
}, {
|
|
1201
|
-
default: a(() => [
|
|
1374
|
+
default: a(() => [k(Nn, {
|
|
1202
1375
|
section: e.block,
|
|
1203
|
-
onUpdate: r[
|
|
1376
|
+
onUpdate: r[3] ||= (e) => d("update", e)
|
|
1204
1377
|
}, null, 8, ["section"])]),
|
|
1205
1378
|
_: 1
|
|
1206
1379
|
}, 8, ["label"])) : _("", !0)
|
|
1207
1380
|
]),
|
|
1208
1381
|
_: 1
|
|
1209
1382
|
}, 8, ["title", "open"]),
|
|
1210
|
-
|
|
1383
|
+
k(Tn, {
|
|
1211
1384
|
title: h(f).blockSettings.display,
|
|
1212
|
-
open:
|
|
1213
|
-
onToggle: r[
|
|
1385
|
+
open: L.has("display"),
|
|
1386
|
+
onToggle: r[6] ||= (e) => V("display")
|
|
1214
1387
|
}, {
|
|
1215
|
-
default: a(() => [
|
|
1388
|
+
default: a(() => [b("div", Wn, [A.value && h(O) ? (i(), v(Z, {
|
|
1216
1389
|
key: 0,
|
|
1217
1390
|
"data-testid": "locale-hide",
|
|
1218
|
-
disabled: !h(
|
|
1219
|
-
"model-value":
|
|
1220
|
-
label: h(
|
|
1221
|
-
"onUpdate:modelValue": r[
|
|
1391
|
+
disabled: !h(O).locales.includes(A.value),
|
|
1392
|
+
"model-value": ee.value,
|
|
1393
|
+
label: h(w)(h(f).localization.hide, { language: h(tt)(A.value) }),
|
|
1394
|
+
"onUpdate:modelValue": r[5] ||= (t) => h(T)?.setBlockHidden?.(e.block.id, t)
|
|
1222
1395
|
}, null, 8, [
|
|
1223
1396
|
"disabled",
|
|
1224
1397
|
"model-value",
|
|
1225
1398
|
"label"
|
|
1226
|
-
])) : _("", !0), (i(), p(
|
|
1399
|
+
])) : _("", !0), (i(), p(D, null, c(ve, (e) => k(Y, {
|
|
1227
1400
|
key: e.key,
|
|
1228
1401
|
path: `visibility.${e.key}`,
|
|
1229
1402
|
label: h(f).blockSettings[e.labelKey]
|
|
1230
1403
|
}, {
|
|
1231
|
-
label: a(() => [
|
|
1404
|
+
label: a(() => [b("span", Gn, [(i(), v(n(e.icon), {
|
|
1232
1405
|
size: 14,
|
|
1233
1406
|
"stroke-width": 1.5
|
|
1234
|
-
})), m(" " +
|
|
1235
|
-
"label-actions": a(({ controlId: t }) => [
|
|
1407
|
+
})), m(" " + x(h(f).blockSettings[e.labelKey]), 1)])]),
|
|
1408
|
+
"label-actions": a(({ controlId: t }) => [k(Z, {
|
|
1236
1409
|
"control-id": t,
|
|
1237
1410
|
"hide-label": "",
|
|
1238
1411
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1239
|
-
"model-value":
|
|
1412
|
+
"model-value": ke(e.key),
|
|
1240
1413
|
label: h(f).blockSettings[e.labelKey],
|
|
1241
|
-
"onUpdate:modelValue": (t) =>
|
|
1414
|
+
"onUpdate:modelValue": (t) => Ae(e.key)
|
|
1242
1415
|
}, null, 8, [
|
|
1243
1416
|
"control-id",
|
|
1244
1417
|
"model-value",
|
|
@@ -1249,28 +1422,51 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1249
1422
|
}, 1032, ["path", "label"])), 64))])]),
|
|
1250
1423
|
_: 1
|
|
1251
1424
|
}, 8, ["title", "open"]),
|
|
1252
|
-
|
|
1425
|
+
ye.value ? (i(), v(Tn, {
|
|
1253
1426
|
key: 0,
|
|
1254
1427
|
"header-test-id": "display-condition-section",
|
|
1255
1428
|
title: h(f).blockSettings.displayCondition,
|
|
1256
|
-
open:
|
|
1257
|
-
onToggle: r[11] ||= (e) =>
|
|
1429
|
+
open: L.has("condition"),
|
|
1430
|
+
onToggle: r[11] ||= (e) => V("condition")
|
|
1258
1431
|
}, {
|
|
1259
|
-
default: a(() => [
|
|
1432
|
+
default: a(() => [h(ge) ? (i(), p("div", Kn, [e.block.displayCondition ? (i(), p(D, { key: 0 }, [
|
|
1433
|
+
b("p", qn, x(e.block.displayCondition.label), 1),
|
|
1434
|
+
e.block.displayCondition.description ? (i(), p("p", Jn, x(e.block.displayCondition.description), 1)) : _("", !0),
|
|
1435
|
+
b("div", Yn, [b("button", {
|
|
1436
|
+
type: "button",
|
|
1437
|
+
"data-testid": "display-condition-edit",
|
|
1438
|
+
class: g(h(nt)),
|
|
1439
|
+
disabled: I.value,
|
|
1440
|
+
onClick: Se
|
|
1441
|
+
}, x(h(f).blockSettings.editCondition), 11, Xn), b("button", {
|
|
1442
|
+
type: "button",
|
|
1443
|
+
"data-testid": "display-condition-remove",
|
|
1444
|
+
class: g(h(nt)),
|
|
1445
|
+
disabled: I.value,
|
|
1446
|
+
onClick: r[7] ||= (e) => d("update", { displayCondition: void 0 })
|
|
1447
|
+
}, x(h(f).blockSettings.removeCondition), 11, Zn)])
|
|
1448
|
+
], 64)) : (i(), p("button", {
|
|
1449
|
+
key: 1,
|
|
1450
|
+
type: "button",
|
|
1451
|
+
"data-testid": "display-condition-request",
|
|
1452
|
+
class: g(h(nt)),
|
|
1453
|
+
disabled: I.value,
|
|
1454
|
+
onClick: Se
|
|
1455
|
+
}, x(h(f).blockSettings.addCondition), 11, Qn))])) : (i(), p("div", $n, [k(Y, {
|
|
1260
1456
|
path: "displayCondition",
|
|
1261
1457
|
label: h(f).blockSettings.displayCondition
|
|
1262
1458
|
}, {
|
|
1263
|
-
default: a(() => [
|
|
1459
|
+
default: a(() => [b("select", {
|
|
1264
1460
|
"data-testid": "display-condition-select",
|
|
1265
1461
|
class: g(["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)]"]),
|
|
1266
|
-
value:
|
|
1462
|
+
value: R.value || Ce.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1267
1463
|
onChange: r[8] ||= (e) => {
|
|
1268
1464
|
let t = e.target.value;
|
|
1269
1465
|
if (t === "__custom__") {
|
|
1270
|
-
|
|
1466
|
+
U();
|
|
1271
1467
|
return;
|
|
1272
1468
|
}
|
|
1273
|
-
if (
|
|
1469
|
+
if (R.value = !1, !t) {
|
|
1274
1470
|
d("update", { displayCondition: void 0 });
|
|
1275
1471
|
return;
|
|
1276
1472
|
}
|
|
@@ -1278,43 +1474,43 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1278
1474
|
n && d("update", { displayCondition: n });
|
|
1279
1475
|
}
|
|
1280
1476
|
}, [
|
|
1281
|
-
|
|
1282
|
-
(i(!0), p(
|
|
1477
|
+
b("option", tr, x(h(f).blockSettings.noCondition), 1),
|
|
1478
|
+
(i(!0), p(D, null, c(Te.value, (e, t) => (i(), p(D, { key: t }, [t ? (i(), p("optgroup", {
|
|
1283
1479
|
key: 0,
|
|
1284
1480
|
label: String(t)
|
|
1285
|
-
}, [(i(!0), p(
|
|
1481
|
+
}, [(i(!0), p(D, null, c(e, (e) => (i(), p("option", {
|
|
1286
1482
|
key: e.label,
|
|
1287
1483
|
value: e.label
|
|
1288
|
-
},
|
|
1484
|
+
}, x(e.label), 9, rr))), 128))], 8, nr)) : (i(!0), p(D, { key: 1 }, c(e, (e) => (i(), p("option", {
|
|
1289
1485
|
key: e.label,
|
|
1290
1486
|
value: e.label
|
|
1291
|
-
},
|
|
1292
|
-
h(M) ? (i(), p("option",
|
|
1293
|
-
], 42,
|
|
1487
|
+
}, x(e.label), 9, ir))), 128))], 64))), 128)),
|
|
1488
|
+
h(M) ? (i(), p("option", ar, x(h(f).blockSettings.customCondition), 1)) : _("", !0)
|
|
1489
|
+
], 42, er)]),
|
|
1294
1490
|
_: 1
|
|
1295
|
-
}, 8, ["label"]),
|
|
1296
|
-
|
|
1297
|
-
"onUpdate:modelValue": r[9] ||= (e) =>
|
|
1491
|
+
}, 8, ["label"]), R.value || Ce.value ? (i(), p("div", or, [
|
|
1492
|
+
b("div", null, [b("label", sr, x(h(f).blockSettings.customConditionBefore), 1), s(b("textarea", {
|
|
1493
|
+
"onUpdate:modelValue": r[9] ||= (e) => z.value = e,
|
|
1298
1494
|
rows: "2",
|
|
1299
|
-
class: g(h(
|
|
1300
|
-
}, null, 2), [[
|
|
1301
|
-
|
|
1302
|
-
"onUpdate:modelValue": r[10] ||= (e) =>
|
|
1495
|
+
class: g(h(st))
|
|
1496
|
+
}, null, 2), [[S, z.value]])]),
|
|
1497
|
+
b("div", null, [b("label", cr, x(h(f).blockSettings.customConditionAfter), 1), s(b("textarea", {
|
|
1498
|
+
"onUpdate:modelValue": r[10] ||= (e) => B.value = e,
|
|
1303
1499
|
rows: "2",
|
|
1304
|
-
class: g(h(
|
|
1305
|
-
}, null, 2), [[
|
|
1306
|
-
|
|
1500
|
+
class: g(h(st))
|
|
1501
|
+
}, null, 2), [[S, B.value]])]),
|
|
1502
|
+
b("div", lr, [b("button", {
|
|
1307
1503
|
type: "button",
|
|
1308
|
-
class: g(h(
|
|
1309
|
-
disabled: !
|
|
1310
|
-
onClick:
|
|
1311
|
-
},
|
|
1312
|
-
])) : e.block.displayCondition && !
|
|
1504
|
+
class: g(h(it)),
|
|
1505
|
+
disabled: !z.value.trim(),
|
|
1506
|
+
onClick: we
|
|
1507
|
+
}, x(h(f).blockSettings.applyCondition), 11, ur)])
|
|
1508
|
+
])) : e.block.displayCondition && !Ce.value ? (i(), p(D, { key: 1 }, [e.block.displayCondition.description ? (i(), p("p", dr, x(e.block.displayCondition.description), 1)) : _("", !0), b("div", fr, [b("pre", pr, x(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (i(), p("pre", mr, x(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)]))]),
|
|
1313
1509
|
_: 1
|
|
1314
1510
|
}, 8, ["title", "open"])) : _("", !0)
|
|
1315
1511
|
], 2));
|
|
1316
1512
|
}
|
|
1317
|
-
}),
|
|
1513
|
+
}), gr = ["title"], _r = { class: "tpl-sr-only" }, vr = ["title"], yr = { class: "tpl-sr-only" }, br = /* @__PURE__ */ r({
|
|
1318
1514
|
__name: "FieldLabel",
|
|
1319
1515
|
props: {
|
|
1320
1516
|
label: {},
|
|
@@ -1322,25 +1518,25 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1322
1518
|
readOnly: { type: Boolean }
|
|
1323
1519
|
},
|
|
1324
1520
|
setup(e) {
|
|
1325
|
-
let { t } =
|
|
1521
|
+
let { t } = W();
|
|
1326
1522
|
return (n, r) => (i(), p("span", null, [
|
|
1327
|
-
m(
|
|
1523
|
+
m(x(e.label) + " ", 1),
|
|
1328
1524
|
e.readOnly ? (i(), p("span", {
|
|
1329
1525
|
key: 0,
|
|
1330
1526
|
title: h(t).customBlocks.dataSource.readOnlyTooltip
|
|
1331
|
-
}, [
|
|
1527
|
+
}, [k(h(Le), {
|
|
1332
1528
|
size: 12,
|
|
1333
1529
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1334
1530
|
"aria-hidden": "true"
|
|
1335
|
-
}),
|
|
1531
|
+
}), b("span", _r, x(h(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, gr)) : _("", !0),
|
|
1336
1532
|
e.required ? (i(), p("span", {
|
|
1337
1533
|
key: 1,
|
|
1338
1534
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
1339
1535
|
title: h(t).customBlocks.fields.required
|
|
1340
|
-
}, [r[0] ||=
|
|
1536
|
+
}, [r[0] ||= b("span", { "aria-hidden": "true" }, "*", -1), b("span", yr, x(h(t).customBlocks.fields.required), 1)], 8, vr)) : _("", !0)
|
|
1341
1537
|
]));
|
|
1342
1538
|
}
|
|
1343
|
-
}),
|
|
1539
|
+
}), xr = ["title"], Sr = /* @__PURE__ */ r({
|
|
1344
1540
|
__name: "BooleanField",
|
|
1345
1541
|
props: {
|
|
1346
1542
|
field: {},
|
|
@@ -1351,11 +1547,11 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1351
1547
|
},
|
|
1352
1548
|
emits: ["update:modelValue"],
|
|
1353
1549
|
setup(e, { emit: t }) {
|
|
1354
|
-
let n = t, { t: r } =
|
|
1550
|
+
let n = t, { t: r } = W();
|
|
1355
1551
|
return (t, o) => (i(), p("div", {
|
|
1356
1552
|
class: "tpl:mb-3.5",
|
|
1357
1553
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1358
|
-
}, [
|
|
1554
|
+
}, [k(Z, {
|
|
1359
1555
|
"hide-label": e.hideLabel,
|
|
1360
1556
|
"control-id": e.controlId,
|
|
1361
1557
|
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -1365,7 +1561,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1365
1561
|
disabled: e.readOnly,
|
|
1366
1562
|
"onUpdate:modelValue": o[0] ||= (e) => n("update:modelValue", e)
|
|
1367
1563
|
}, {
|
|
1368
|
-
default: a(() => [m(
|
|
1564
|
+
default: a(() => [m(x(e.field.label) + " ", 1), e.readOnly ? (i(), v(h(Le), {
|
|
1369
1565
|
key: 0,
|
|
1370
1566
|
size: 12,
|
|
1371
1567
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1378,9 +1574,9 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1378
1574
|
"label",
|
|
1379
1575
|
"required",
|
|
1380
1576
|
"disabled"
|
|
1381
|
-
])], 8,
|
|
1577
|
+
])], 8, xr));
|
|
1382
1578
|
}
|
|
1383
|
-
}),
|
|
1579
|
+
}), Cr = { class: "tpl:mb-3.5" }, wr = /* @__PURE__ */ r({
|
|
1384
1580
|
__name: "FieldWrapper",
|
|
1385
1581
|
props: {
|
|
1386
1582
|
label: {},
|
|
@@ -1389,10 +1585,10 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1389
1585
|
readOnly: { type: Boolean }
|
|
1390
1586
|
},
|
|
1391
1587
|
setup(e) {
|
|
1392
|
-
return (t, n) => (i(), p("div",
|
|
1588
|
+
return (t, n) => (i(), p("div", Cr, [e.hideLabel ? _("", !0) : (i(), p("label", {
|
|
1393
1589
|
key: 0,
|
|
1394
|
-
class: g(h(
|
|
1395
|
-
}, [
|
|
1590
|
+
class: g(h(J))
|
|
1591
|
+
}, [k(br, {
|
|
1396
1592
|
label: e.label,
|
|
1397
1593
|
required: e.required,
|
|
1398
1594
|
"read-only": e.readOnly
|
|
@@ -1402,7 +1598,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1402
1598
|
"read-only"
|
|
1403
1599
|
])], 2)), d(t.$slots, "default")]));
|
|
1404
1600
|
}
|
|
1405
|
-
}),
|
|
1601
|
+
}), Tr = /* @__PURE__ */ r({
|
|
1406
1602
|
__name: "ColorField",
|
|
1407
1603
|
props: {
|
|
1408
1604
|
field: {},
|
|
@@ -1412,14 +1608,14 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1412
1608
|
},
|
|
1413
1609
|
emits: ["update:modelValue"],
|
|
1414
1610
|
setup(e, { emit: t }) {
|
|
1415
|
-
let n = e, r = t, { t: o } =
|
|
1416
|
-
return (t, n) => (i(), v(
|
|
1611
|
+
let n = e, r = t, { t: o } = W(), s = l(Xe, dt), c = C(() => be(n.field, s));
|
|
1612
|
+
return (t, n) => (i(), v(wr, {
|
|
1417
1613
|
"hide-label": e.hideLabel,
|
|
1418
1614
|
label: e.field.label,
|
|
1419
1615
|
required: e.field.required,
|
|
1420
1616
|
"read-only": e.readOnly
|
|
1421
1617
|
}, {
|
|
1422
|
-
default: a(() => [
|
|
1618
|
+
default: a(() => [k(X, {
|
|
1423
1619
|
"model-value": e.modelValue,
|
|
1424
1620
|
placeholder: e.field.placeholder,
|
|
1425
1621
|
disabled: e.readOnly,
|
|
@@ -1443,11 +1639,11 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1443
1639
|
"read-only"
|
|
1444
1640
|
]));
|
|
1445
1641
|
}
|
|
1446
|
-
}),
|
|
1642
|
+
}), Er = [
|
|
1447
1643
|
"value",
|
|
1448
1644
|
"placeholder",
|
|
1449
1645
|
"title"
|
|
1450
|
-
],
|
|
1646
|
+
], Dr = ["value", "placeholder"], Or = /* @__PURE__ */ r({
|
|
1451
1647
|
__name: "ImageField",
|
|
1452
1648
|
props: {
|
|
1453
1649
|
field: {},
|
|
@@ -1457,50 +1653,50 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1457
1653
|
},
|
|
1458
1654
|
emits: ["update:modelValue"],
|
|
1459
1655
|
setup(e, { emit: t }) {
|
|
1460
|
-
let n = e, r = t, { t: o } =
|
|
1656
|
+
let n = e, r = t, { t: o } = W(), s = E(), { canBrowse: c, isUploading: l, showOverlay: u, openMediaBrowser: d } = ye({
|
|
1461
1657
|
target: s,
|
|
1462
1658
|
blocked: () => !!n.readOnly,
|
|
1463
1659
|
apply: (e) => r("update:modelValue", e.url)
|
|
1464
1660
|
});
|
|
1465
|
-
return (t, n) => (i(), v(
|
|
1661
|
+
return (t, n) => (i(), v(wr, {
|
|
1466
1662
|
"hide-label": e.hideLabel,
|
|
1467
1663
|
label: e.field.label,
|
|
1468
1664
|
required: e.field.required,
|
|
1469
1665
|
"read-only": e.readOnly
|
|
1470
1666
|
}, {
|
|
1471
|
-
default: a(() => [
|
|
1667
|
+
default: a(() => [b("div", {
|
|
1472
1668
|
ref_key: "dropZoneRef",
|
|
1473
1669
|
ref: s,
|
|
1474
1670
|
class: "tpl:relative"
|
|
1475
1671
|
}, [
|
|
1476
|
-
h(u) ? (i(), v(
|
|
1672
|
+
h(u) ? (i(), v(ge, {
|
|
1477
1673
|
key: 0,
|
|
1478
1674
|
uploading: h(l)
|
|
1479
1675
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
1480
1676
|
e.readOnly ? (i(), p("input", {
|
|
1481
1677
|
key: 1,
|
|
1482
1678
|
type: "url",
|
|
1483
|
-
class: g([h(
|
|
1679
|
+
class: g([h(q), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1484
1680
|
value: e.modelValue,
|
|
1485
1681
|
placeholder: e.field.placeholder || "https://...",
|
|
1486
1682
|
disabled: "",
|
|
1487
1683
|
title: h(o).customBlocks.dataSource.readOnlyTooltip
|
|
1488
|
-
}, null, 10,
|
|
1684
|
+
}, null, 10, Er)) : (i(), p("input", {
|
|
1489
1685
|
key: 2,
|
|
1490
1686
|
type: "url",
|
|
1491
|
-
class: g(h(
|
|
1687
|
+
class: g(h(q)),
|
|
1492
1688
|
value: e.modelValue,
|
|
1493
1689
|
placeholder: e.field.placeholder || "https://...",
|
|
1494
1690
|
onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
|
|
1495
|
-
}, null, 42,
|
|
1691
|
+
}, null, 42, Dr)),
|
|
1496
1692
|
h(c) && !e.readOnly ? (i(), p("button", {
|
|
1497
1693
|
key: 3,
|
|
1498
1694
|
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)]",
|
|
1499
1695
|
onClick: n[1] ||= (e) => h(d)()
|
|
1500
|
-
}, [
|
|
1696
|
+
}, [k(h(ke), {
|
|
1501
1697
|
size: 14,
|
|
1502
1698
|
"stroke-width": 1.5
|
|
1503
|
-
}), m(" " +
|
|
1699
|
+
}), m(" " + x(h(o).image.browseMedia), 1)])) : _("", !0)
|
|
1504
1700
|
], 512)]),
|
|
1505
1701
|
_: 1
|
|
1506
1702
|
}, 8, [
|
|
@@ -1510,7 +1706,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1510
1706
|
"read-only"
|
|
1511
1707
|
]));
|
|
1512
1708
|
}
|
|
1513
|
-
}),
|
|
1709
|
+
}), kr = [
|
|
1514
1710
|
"value",
|
|
1515
1711
|
"placeholder",
|
|
1516
1712
|
"min",
|
|
@@ -1518,7 +1714,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1518
1714
|
"step",
|
|
1519
1715
|
"disabled",
|
|
1520
1716
|
"title"
|
|
1521
|
-
],
|
|
1717
|
+
], Ar = /* @__PURE__ */ r({
|
|
1522
1718
|
__name: "NumberField",
|
|
1523
1719
|
props: {
|
|
1524
1720
|
field: {},
|
|
@@ -1528,16 +1724,16 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1528
1724
|
},
|
|
1529
1725
|
emits: ["update:modelValue"],
|
|
1530
1726
|
setup(e, { emit: t }) {
|
|
1531
|
-
let n = t, { t: r } =
|
|
1532
|
-
return (t, o) => (i(), v(
|
|
1727
|
+
let n = t, { t: r } = W();
|
|
1728
|
+
return (t, o) => (i(), v(wr, {
|
|
1533
1729
|
"hide-label": e.hideLabel,
|
|
1534
1730
|
label: e.field.label,
|
|
1535
1731
|
required: e.field.required,
|
|
1536
1732
|
"read-only": e.readOnly
|
|
1537
1733
|
}, {
|
|
1538
|
-
default: a(() => [
|
|
1734
|
+
default: a(() => [b("input", {
|
|
1539
1735
|
type: "number",
|
|
1540
|
-
class: g([h(
|
|
1736
|
+
class: g([h(q), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1541
1737
|
value: e.modelValue,
|
|
1542
1738
|
placeholder: e.field.placeholder,
|
|
1543
1739
|
min: e.field.min,
|
|
@@ -1546,7 +1742,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1546
1742
|
disabled: e.readOnly,
|
|
1547
1743
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1548
1744
|
onInput: o[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
|
|
1549
|
-
}, null, 42,
|
|
1745
|
+
}, null, 42, kr)]),
|
|
1550
1746
|
_: 1
|
|
1551
1747
|
}, 8, [
|
|
1552
1748
|
"hide-label",
|
|
@@ -1555,13 +1751,13 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1555
1751
|
"read-only"
|
|
1556
1752
|
]));
|
|
1557
1753
|
}
|
|
1558
|
-
}),
|
|
1754
|
+
}), jr = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Mr = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Nr = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Pr = ["title", "onClick"], Fr = {
|
|
1559
1755
|
key: 1,
|
|
1560
1756
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1561
|
-
},
|
|
1757
|
+
}, Ir = {
|
|
1562
1758
|
key: 2,
|
|
1563
1759
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1564
|
-
},
|
|
1760
|
+
}, Lr = /* @__PURE__ */ r({
|
|
1565
1761
|
__name: "RepeatableField",
|
|
1566
1762
|
props: {
|
|
1567
1763
|
field: {},
|
|
@@ -1571,14 +1767,14 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1571
1767
|
},
|
|
1572
1768
|
emits: ["update:modelValue"],
|
|
1573
1769
|
setup(e, { emit: t }) {
|
|
1574
|
-
let r = e, o = t, { t: s, format: l } =
|
|
1575
|
-
function
|
|
1770
|
+
let r = e, o = t, { t: s, format: l } = W(), u = C(() => r.modelValue || []), d = C(() => !r.field.maxItems || u.value.length < r.field.maxItems), f = C(() => !r.field.minItems || u.value.length > r.field.minItems);
|
|
1771
|
+
function y() {
|
|
1576
1772
|
if (!d.value || r.readOnly) return;
|
|
1577
1773
|
let e = {};
|
|
1578
1774
|
for (let t of r.field.fields) e[t.key] = t.default ?? "";
|
|
1579
1775
|
o("update:modelValue", [...u.value, e]);
|
|
1580
1776
|
}
|
|
1581
|
-
function
|
|
1777
|
+
function S(e) {
|
|
1582
1778
|
if (!f.value || r.readOnly) return;
|
|
1583
1779
|
let t = [...u.value];
|
|
1584
1780
|
t.splice(e, 1), o("update:modelValue", t);
|
|
@@ -1590,26 +1786,26 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1590
1786
|
} : r);
|
|
1591
1787
|
o("update:modelValue", r);
|
|
1592
1788
|
}
|
|
1593
|
-
return (t, r) => (i(), v(
|
|
1789
|
+
return (t, r) => (i(), v(wr, {
|
|
1594
1790
|
"hide-label": e.hideLabel,
|
|
1595
1791
|
label: e.field.label,
|
|
1596
1792
|
required: e.field.required,
|
|
1597
1793
|
"read-only": e.readOnly
|
|
1598
1794
|
}, {
|
|
1599
|
-
default: a(() => [
|
|
1600
|
-
(i(!0), p(
|
|
1795
|
+
default: a(() => [b("div", jr, [
|
|
1796
|
+
(i(!0), p(D, null, c(u.value, (t, r) => (i(), p("div", {
|
|
1601
1797
|
key: `${e.field.key}-${r}`,
|
|
1602
1798
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1603
|
-
}, [
|
|
1799
|
+
}, [b("div", Mr, [b("span", Nr, " #" + x(r + 1), 1), f.value && !e.readOnly ? (i(), p("button", {
|
|
1604
1800
|
key: 0,
|
|
1605
1801
|
type: "button",
|
|
1606
1802
|
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)]",
|
|
1607
1803
|
title: h(s).customBlocks.fields.removeItem,
|
|
1608
|
-
onClick: (e) =>
|
|
1609
|
-
}, [
|
|
1804
|
+
onClick: (e) => S(r)
|
|
1805
|
+
}, [k(h(Me), {
|
|
1610
1806
|
size: 12,
|
|
1611
1807
|
"stroke-width": 2
|
|
1612
|
-
})], 8,
|
|
1808
|
+
})], 8, Pr)) : _("", !0)]), (i(!0), p(D, null, c(e.field.fields, (a) => (i(), v(n(h(Kr)(a.type)), {
|
|
1613
1809
|
key: a.key,
|
|
1614
1810
|
field: a,
|
|
1615
1811
|
"model-value": t[a.key],
|
|
@@ -1624,14 +1820,14 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1624
1820
|
d.value && !e.readOnly ? (i(), p("button", {
|
|
1625
1821
|
key: 0,
|
|
1626
1822
|
type: "button",
|
|
1627
|
-
class: g(h(
|
|
1628
|
-
onClick:
|
|
1629
|
-
}, [
|
|
1823
|
+
class: g(h(at)),
|
|
1824
|
+
onClick: y
|
|
1825
|
+
}, [k(h(U), {
|
|
1630
1826
|
size: 14,
|
|
1631
1827
|
"stroke-width": 2
|
|
1632
|
-
}), m(" " +
|
|
1633
|
-
!d.value && !e.readOnly ? (i(), p("p",
|
|
1634
|
-
!f.value && !e.readOnly ? (i(), p("p",
|
|
1828
|
+
}), m(" " + x(h(s).customBlocks.fields.addItem), 1)], 2)) : _("", !0),
|
|
1829
|
+
!d.value && !e.readOnly ? (i(), p("p", Fr, x(h(s).customBlocks.fields.maxItemsReached), 1)) : _("", !0),
|
|
1830
|
+
!f.value && !e.readOnly ? (i(), p("p", Ir, x(h(l)(h(s).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : _("", !0)
|
|
1635
1831
|
])]),
|
|
1636
1832
|
_: 1
|
|
1637
1833
|
}, 8, [
|
|
@@ -1641,11 +1837,11 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1641
1837
|
"read-only"
|
|
1642
1838
|
]));
|
|
1643
1839
|
}
|
|
1644
|
-
}),
|
|
1840
|
+
}), Rr = [
|
|
1645
1841
|
"value",
|
|
1646
1842
|
"disabled",
|
|
1647
1843
|
"title"
|
|
1648
|
-
],
|
|
1844
|
+
], zr = ["value"], Br = /* @__PURE__ */ r({
|
|
1649
1845
|
__name: "SelectField",
|
|
1650
1846
|
props: {
|
|
1651
1847
|
field: {},
|
|
@@ -1655,23 +1851,23 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1655
1851
|
},
|
|
1656
1852
|
emits: ["update:modelValue"],
|
|
1657
1853
|
setup(e, { emit: t }) {
|
|
1658
|
-
let n = t, { t: r } =
|
|
1659
|
-
return (t, o) => (i(), v(
|
|
1854
|
+
let n = t, { t: r } = W();
|
|
1855
|
+
return (t, o) => (i(), v(wr, {
|
|
1660
1856
|
"hide-label": e.hideLabel,
|
|
1661
1857
|
label: e.field.label,
|
|
1662
1858
|
required: e.field.required,
|
|
1663
1859
|
"read-only": e.readOnly
|
|
1664
1860
|
}, {
|
|
1665
|
-
default: a(() => [
|
|
1666
|
-
class: g([h(
|
|
1861
|
+
default: a(() => [b("select", {
|
|
1862
|
+
class: g([h(q), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1667
1863
|
value: e.modelValue,
|
|
1668
1864
|
disabled: e.readOnly,
|
|
1669
1865
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1670
1866
|
onChange: o[0] ||= (t) => !e.readOnly && n("update:modelValue", t.target.value)
|
|
1671
|
-
}, [(i(!0), p(
|
|
1867
|
+
}, [(i(!0), p(D, null, c(e.field.options, (e) => (i(), p("option", {
|
|
1672
1868
|
key: e.value,
|
|
1673
1869
|
value: e.value
|
|
1674
|
-
},
|
|
1870
|
+
}, x(e.label), 9, zr))), 128))], 42, Rr)]),
|
|
1675
1871
|
_: 1
|
|
1676
1872
|
}, 8, [
|
|
1677
1873
|
"hide-label",
|
|
@@ -1680,11 +1876,11 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1680
1876
|
"read-only"
|
|
1681
1877
|
]));
|
|
1682
1878
|
}
|
|
1683
|
-
}),
|
|
1879
|
+
}), Vr = [
|
|
1684
1880
|
"value",
|
|
1685
1881
|
"placeholder",
|
|
1686
1882
|
"title"
|
|
1687
|
-
],
|
|
1883
|
+
], Hr = /* @__PURE__ */ r({
|
|
1688
1884
|
__name: "TextField",
|
|
1689
1885
|
props: {
|
|
1690
1886
|
field: {},
|
|
@@ -1694,8 +1890,8 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1694
1890
|
},
|
|
1695
1891
|
emits: ["update:modelValue"],
|
|
1696
1892
|
setup(e, { emit: t }) {
|
|
1697
|
-
let n = t, { t: r } =
|
|
1698
|
-
return (t, o) => (i(), v(
|
|
1893
|
+
let n = t, { t: r } = W();
|
|
1894
|
+
return (t, o) => (i(), v(wr, {
|
|
1699
1895
|
"hide-label": e.hideLabel,
|
|
1700
1896
|
label: e.field.label,
|
|
1701
1897
|
required: e.field.required,
|
|
@@ -1704,12 +1900,12 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1704
1900
|
default: a(() => [e.readOnly ? (i(), p("input", {
|
|
1705
1901
|
key: 0,
|
|
1706
1902
|
type: "text",
|
|
1707
|
-
class: g([h(
|
|
1903
|
+
class: g([h(q), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1708
1904
|
value: e.modelValue,
|
|
1709
1905
|
placeholder: e.field.placeholder,
|
|
1710
1906
|
disabled: "",
|
|
1711
1907
|
title: h(r).customBlocks.dataSource.readOnlyTooltip
|
|
1712
|
-
}, null, 10,
|
|
1908
|
+
}, null, 10, Vr)) : (i(), v(Q, {
|
|
1713
1909
|
key: 1,
|
|
1714
1910
|
"model-value": e.modelValue,
|
|
1715
1911
|
placeholder: e.field.placeholder,
|
|
@@ -1723,12 +1919,12 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1723
1919
|
"read-only"
|
|
1724
1920
|
]));
|
|
1725
1921
|
}
|
|
1726
|
-
}),
|
|
1922
|
+
}), Ur = [
|
|
1727
1923
|
"value",
|
|
1728
1924
|
"placeholder",
|
|
1729
1925
|
"title"
|
|
1730
|
-
],
|
|
1731
|
-
text:
|
|
1926
|
+
], Wr = "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", Gr = {
|
|
1927
|
+
text: Hr,
|
|
1732
1928
|
textarea: /* @__PURE__ */ r({
|
|
1733
1929
|
__name: "TextareaField",
|
|
1734
1930
|
props: {
|
|
@@ -1739,8 +1935,8 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1739
1935
|
},
|
|
1740
1936
|
emits: ["update:modelValue"],
|
|
1741
1937
|
setup(e, { emit: t }) {
|
|
1742
|
-
let n = t, { t: r } =
|
|
1743
|
-
return (t, o) => (i(), v(
|
|
1938
|
+
let n = t, { t: r } = W();
|
|
1939
|
+
return (t, o) => (i(), v(wr, {
|
|
1744
1940
|
"hide-label": e.hideLabel,
|
|
1745
1941
|
label: e.field.label,
|
|
1746
1942
|
required: e.field.required,
|
|
@@ -1753,8 +1949,8 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1753
1949
|
rows: "3",
|
|
1754
1950
|
disabled: "",
|
|
1755
1951
|
title: h(r).customBlocks.dataSource.readOnlyTooltip,
|
|
1756
|
-
class: g(
|
|
1757
|
-
}, null, 8,
|
|
1952
|
+
class: g(Wr)
|
|
1953
|
+
}, null, 8, Ur)) : (i(), v(pt, {
|
|
1758
1954
|
key: 1,
|
|
1759
1955
|
"model-value": e.modelValue,
|
|
1760
1956
|
placeholder: e.field.placeholder,
|
|
@@ -1769,93 +1965,93 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1769
1965
|
]));
|
|
1770
1966
|
}
|
|
1771
1967
|
}),
|
|
1772
|
-
image:
|
|
1773
|
-
color:
|
|
1774
|
-
number:
|
|
1775
|
-
select:
|
|
1776
|
-
boolean:
|
|
1777
|
-
repeatable:
|
|
1968
|
+
image: Or,
|
|
1969
|
+
color: Tr,
|
|
1970
|
+
number: Ar,
|
|
1971
|
+
select: Br,
|
|
1972
|
+
boolean: Sr,
|
|
1973
|
+
repeatable: Lr
|
|
1778
1974
|
};
|
|
1779
|
-
function
|
|
1780
|
-
return
|
|
1975
|
+
function Kr(e) {
|
|
1976
|
+
return Gr[e] ?? Hr;
|
|
1781
1977
|
}
|
|
1782
1978
|
// src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1783
|
-
var
|
|
1979
|
+
var qr = {
|
|
1784
1980
|
key: 0,
|
|
1785
1981
|
class: "tpl:p-4"
|
|
1786
|
-
},
|
|
1982
|
+
}, Jr = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Yr = { key: 1 }, Xr = {
|
|
1787
1983
|
key: 0,
|
|
1788
1984
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1789
|
-
},
|
|
1985
|
+
}, Zr = {
|
|
1790
1986
|
key: 1,
|
|
1791
1987
|
class: "tpl:mb-4"
|
|
1792
|
-
},
|
|
1988
|
+
}, Qr = {
|
|
1793
1989
|
key: 1,
|
|
1794
1990
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
1795
|
-
},
|
|
1991
|
+
}, $r = {
|
|
1796
1992
|
key: 0,
|
|
1797
1993
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1798
|
-
},
|
|
1994
|
+
}, ei = {
|
|
1799
1995
|
key: 2,
|
|
1800
1996
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
1801
|
-
},
|
|
1997
|
+
}, ti = /* @__PURE__ */ r({
|
|
1802
1998
|
__name: "CustomBlockToolbar",
|
|
1803
1999
|
props: { block: {} },
|
|
1804
2000
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1805
2001
|
setup(e, { emit: t }) {
|
|
1806
|
-
let r = e, o = t, { t: s } =
|
|
2002
|
+
let r = e, o = t, { t: s } = W(), u = l(Ye, []), d = C(() => u.find((e) => e.type === r.block.customType)), f = C(() => r.block), { isFetching: g, fetchError: y, fetch: S, hasDataSource: w, needsFetch: T } = de({
|
|
1807
2003
|
definition: d,
|
|
1808
2004
|
block: f,
|
|
1809
2005
|
onUpdate: (e, t) => {
|
|
1810
2006
|
o("updateFieldValues", e), o("updateDataSourceFetched", t);
|
|
1811
2007
|
}
|
|
1812
2008
|
});
|
|
1813
|
-
function
|
|
2009
|
+
function E(e) {
|
|
1814
2010
|
return e.readOnly === !0 && w.value && !!r.block.dataSourceFetched;
|
|
1815
2011
|
}
|
|
1816
|
-
function
|
|
2012
|
+
function O(e, t) {
|
|
1817
2013
|
o("updateFieldValues", {
|
|
1818
2014
|
...r.block.fieldValues,
|
|
1819
2015
|
[e]: t
|
|
1820
2016
|
});
|
|
1821
2017
|
}
|
|
1822
|
-
return (t, r) => d.value ? (i(), p("div",
|
|
1823
|
-
d.value.description ? (i(), p("p",
|
|
1824
|
-
h(w) ? (i(), p("div",
|
|
2018
|
+
return (t, r) => d.value ? (i(), p("div", Yr, [
|
|
2019
|
+
d.value.description ? (i(), p("p", Xr, x(d.value.description), 1)) : _("", !0),
|
|
2020
|
+
h(w) ? (i(), p("div", Zr, [h(T) && !h(g) ? (i(), p("button", {
|
|
1825
2021
|
key: 0,
|
|
1826
2022
|
type: "button",
|
|
1827
2023
|
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)]",
|
|
1828
|
-
onClick: r[0] ||= (...e) => h(
|
|
1829
|
-
},
|
|
2024
|
+
onClick: r[0] ||= (...e) => h(S) && h(S)(...e)
|
|
2025
|
+
}, x(d.value?.dataSource?.label || h(s).customBlocks.dataSource.fetchButton), 1)) : (i(), p("div", Qr, [h(g) ? (i(), p("div", $r, x(h(s).customBlocks.dataSource.fetching), 1)) : (i(), p("button", {
|
|
1830
2026
|
key: 1,
|
|
1831
2027
|
type: "button",
|
|
1832
2028
|
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)]",
|
|
1833
|
-
onClick: r[1] ||= (...e) => h(
|
|
1834
|
-
}, [
|
|
2029
|
+
onClick: r[1] ||= (...e) => h(S) && h(S)(...e)
|
|
2030
|
+
}, [k(h(De), { size: 12 }), m(" " + x(h(s).customBlocks.dataSource.changeButton), 1)]))])), h(y) ? (i(), p("p", ei, [k(h(we), {
|
|
1835
2031
|
size: 14,
|
|
1836
2032
|
class: "tpl:shrink-0"
|
|
1837
|
-
}), m(" " +
|
|
1838
|
-
(i(!0), p(
|
|
2033
|
+
}), m(" " + x(h(s).customBlocks.dataSource.fetchError), 1)])) : _("", !0)])) : _("", !0),
|
|
2034
|
+
(i(!0), p(D, null, c(d.value.fields, (t) => (i(), v(Y, {
|
|
1839
2035
|
key: t.key,
|
|
1840
2036
|
path: `fieldValues.${t.key}`,
|
|
1841
2037
|
label: t.label
|
|
1842
2038
|
}, {
|
|
1843
|
-
label: a(() => [
|
|
2039
|
+
label: a(() => [k(br, {
|
|
1844
2040
|
label: t.label,
|
|
1845
2041
|
required: t.required,
|
|
1846
|
-
"read-only":
|
|
2042
|
+
"read-only": E(t)
|
|
1847
2043
|
}, null, 8, [
|
|
1848
2044
|
"label",
|
|
1849
2045
|
"required",
|
|
1850
2046
|
"read-only"
|
|
1851
2047
|
])]),
|
|
1852
|
-
default: a(({ controlId: r }) => [(i(), v(n(h(
|
|
2048
|
+
default: a(({ controlId: r }) => [(i(), v(n(h(Kr)(t.type)), {
|
|
1853
2049
|
"control-id": t.type === "boolean" ? r : void 0,
|
|
1854
2050
|
field: t,
|
|
1855
2051
|
"hide-label": "",
|
|
1856
2052
|
"model-value": e.block.fieldValues[t.key],
|
|
1857
|
-
"read-only":
|
|
1858
|
-
"onUpdate:modelValue": (e) =>
|
|
2053
|
+
"read-only": E(t),
|
|
2054
|
+
"onUpdate:modelValue": (e) => O(t.key, e)
|
|
1859
2055
|
}, null, 8, [
|
|
1860
2056
|
"control-id",
|
|
1861
2057
|
"field",
|
|
@@ -1865,24 +2061,24 @@ var Tr = {
|
|
|
1865
2061
|
]))]),
|
|
1866
2062
|
_: 2
|
|
1867
2063
|
}, 1032, ["path", "label"]))), 128))
|
|
1868
|
-
])) : (i(), p("div",
|
|
2064
|
+
])) : (i(), p("div", qr, [b("p", Jr, x(h(s).customBlocks.toolbar.noDefinition), 1)]));
|
|
1869
2065
|
}
|
|
1870
|
-
}),
|
|
2066
|
+
}), ni = { class: "tpl:flex tpl:items-stretch" }, ri = ["value"], ii = /* @__PURE__ */ r({
|
|
1871
2067
|
__name: "DividerToolbar",
|
|
1872
2068
|
props: { block: {} },
|
|
1873
2069
|
emits: ["update"],
|
|
1874
2070
|
setup(e, { emit: t }) {
|
|
1875
|
-
let n = t, { t: r } =
|
|
2071
|
+
let n = t, { t: r } = W();
|
|
1876
2072
|
function o(e, t) {
|
|
1877
2073
|
n("update", { [e]: t });
|
|
1878
2074
|
}
|
|
1879
|
-
return (t, n) => (i(), p(
|
|
1880
|
-
|
|
2075
|
+
return (t, n) => (i(), p(D, null, [
|
|
2076
|
+
k(Y, {
|
|
1881
2077
|
label: h(r).divider.style,
|
|
1882
2078
|
class: "tpl:mb-3.5",
|
|
1883
2079
|
path: "lineStyle"
|
|
1884
2080
|
}, {
|
|
1885
|
-
default: a(() => [
|
|
2081
|
+
default: a(() => [k($, {
|
|
1886
2082
|
options: [
|
|
1887
2083
|
{
|
|
1888
2084
|
value: "solid",
|
|
@@ -1902,79 +2098,79 @@ var Tr = {
|
|
|
1902
2098
|
}, null, 8, ["options", "model-value"])]),
|
|
1903
2099
|
_: 1
|
|
1904
2100
|
}, 8, ["label"]),
|
|
1905
|
-
|
|
2101
|
+
k(Y, {
|
|
1906
2102
|
label: h(r).divider.color,
|
|
1907
2103
|
class: "tpl:mb-3.5",
|
|
1908
2104
|
path: "color"
|
|
1909
2105
|
}, {
|
|
1910
|
-
default: a(() => [
|
|
2106
|
+
default: a(() => [k(X, {
|
|
1911
2107
|
"model-value": e.block.color,
|
|
1912
2108
|
"onUpdate:modelValue": n[1] ||= (e) => o("color", e)
|
|
1913
2109
|
}, null, 8, ["model-value"])]),
|
|
1914
2110
|
_: 1
|
|
1915
2111
|
}, 8, ["label"]),
|
|
1916
|
-
|
|
2112
|
+
k(Y, {
|
|
1917
2113
|
label: h(r).divider.thickness,
|
|
1918
2114
|
class: "tpl:mb-3.5",
|
|
1919
2115
|
path: "thickness"
|
|
1920
2116
|
}, {
|
|
1921
|
-
default: a(() => [
|
|
2117
|
+
default: a(() => [b("div", ni, [b("input", {
|
|
1922
2118
|
type: "number",
|
|
1923
|
-
class: g(h(
|
|
2119
|
+
class: g(h(K)),
|
|
1924
2120
|
value: e.block.thickness,
|
|
1925
2121
|
min: "1",
|
|
1926
2122
|
max: "10",
|
|
1927
2123
|
onInput: n[2] ||= (e) => o("thickness", Number(e.target.value))
|
|
1928
|
-
}, null, 42,
|
|
2124
|
+
}, null, 42, ri), b("span", { class: g(h(G)) }, "px", 2)])]),
|
|
1929
2125
|
_: 1
|
|
1930
2126
|
}, 8, ["label"])
|
|
1931
2127
|
], 64));
|
|
1932
2128
|
}
|
|
1933
|
-
}),
|
|
2129
|
+
}), ai = ["value"], oi = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, si = /* @__PURE__ */ r({
|
|
1934
2130
|
__name: "HtmlToolbar",
|
|
1935
2131
|
props: { block: {} },
|
|
1936
2132
|
emits: ["update"],
|
|
1937
2133
|
setup(e, { emit: t }) {
|
|
1938
|
-
let n = t, { t: r } =
|
|
1939
|
-
return (t, o) => (i(), v(
|
|
2134
|
+
let n = t, { t: r } = W();
|
|
2135
|
+
return (t, o) => (i(), v(Y, {
|
|
1940
2136
|
label: h(r).html.content,
|
|
1941
2137
|
class: "tpl:mb-3.5",
|
|
1942
2138
|
path: "content"
|
|
1943
2139
|
}, {
|
|
1944
|
-
default: a(() => [
|
|
2140
|
+
default: a(() => [b("textarea", {
|
|
1945
2141
|
value: e.block.content,
|
|
1946
2142
|
placeholder: "<div>...</div>",
|
|
1947
2143
|
rows: "10",
|
|
1948
|
-
class: g(h(
|
|
2144
|
+
class: g(h(st)),
|
|
1949
2145
|
onInput: o[0] ||= (e) => n("update", { content: e.target.value })
|
|
1950
|
-
}, null, 42,
|
|
2146
|
+
}, null, 42, ai), b("p", oi, [k(h(Ne), {
|
|
1951
2147
|
size: 12,
|
|
1952
2148
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1953
|
-
}), m(" " +
|
|
2149
|
+
}), m(" " + x(h(r).html.sanitizationHint), 1)])]),
|
|
1954
2150
|
_: 1
|
|
1955
2151
|
}, 8, ["label"]));
|
|
1956
2152
|
}
|
|
1957
2153
|
});
|
|
1958
2154
|
// src/composables/useImageAspectLock.ts
|
|
1959
|
-
function
|
|
1960
|
-
let t =
|
|
2155
|
+
function ci(e) {
|
|
2156
|
+
let t = E(!1), n = E(null);
|
|
1961
2157
|
o(() => e.block().id, () => {
|
|
1962
2158
|
t.value = !1, n.value = null;
|
|
1963
2159
|
});
|
|
1964
|
-
let r =
|
|
2160
|
+
let r = C(() => _e(e.block()) ?? e.measured()), i = C(() => {
|
|
1965
2161
|
let t = e.block().width;
|
|
1966
2162
|
return t === "full" ? e.room() : t;
|
|
1967
|
-
}), a =
|
|
2163
|
+
}), a = C(() => {
|
|
1968
2164
|
let e = r.value, t = i.value;
|
|
1969
2165
|
return !e || t === null ? null : Math.round(t * e.height / e.width);
|
|
1970
|
-
}), s =
|
|
2166
|
+
}), s = C(() => r.value !== null), c = C(() => {
|
|
1971
2167
|
let t = e.block().height;
|
|
1972
2168
|
return t === void 0 || a.value !== null && Math.abs(a.value - t) <= 1;
|
|
1973
|
-
}), l =
|
|
2169
|
+
}), l = C(() => s.value && !t.value && c.value);
|
|
1974
2170
|
function u() {
|
|
1975
|
-
if (
|
|
2171
|
+
if (_e(e.block())) return {};
|
|
1976
2172
|
let t = e.measured();
|
|
1977
|
-
return t ?
|
|
2173
|
+
return t ? I(t) : {};
|
|
1978
2174
|
}
|
|
1979
2175
|
function d(r) {
|
|
1980
2176
|
if (n.value = null, !r) return t.value = !0, null;
|
|
@@ -2016,120 +2212,120 @@ function Br(e) {
|
|
|
2016
2212
|
};
|
|
2017
2213
|
}
|
|
2018
2214
|
// src/components/toolbar/ImageToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2019
|
-
var
|
|
2215
|
+
var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
2020
2216
|
"value",
|
|
2021
2217
|
"placeholder",
|
|
2022
2218
|
"title"
|
|
2023
|
-
],
|
|
2219
|
+
], di = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, fi = ["value"], pi = { value: "full" }, mi = { value: "custom" }, hi = {
|
|
2024
2220
|
key: 0,
|
|
2025
2221
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2026
|
-
},
|
|
2222
|
+
}, gi = ["value"], _i = ["value"], vi = { value: "auto" }, yi = { value: "always" }, bi = { value: "never" }, xi = { class: "tpl:flex tpl:items-stretch" }, Si = ["value"], Ci = {
|
|
2027
2223
|
key: 0,
|
|
2028
2224
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
2029
2225
|
role: "status",
|
|
2030
2226
|
"data-testid": "image-height-capped"
|
|
2031
|
-
},
|
|
2227
|
+
}, wi = ["value"], Ti = { value: "auto" }, Ei = { value: "custom" }, Di = {
|
|
2032
2228
|
key: 2,
|
|
2033
2229
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2034
|
-
},
|
|
2230
|
+
}, Oi = ["value"], ki = 350, Ai = 200, ji = /* @__PURE__ */ r({
|
|
2035
2231
|
__name: "ImageToolbar",
|
|
2036
2232
|
props: { block: {} },
|
|
2037
2233
|
emits: ["update"],
|
|
2038
2234
|
setup(e, { emit: t }) {
|
|
2039
|
-
let n = e, r = t, { t: o, format: s } =
|
|
2040
|
-
|
|
2041
|
-
}, 1e3, { immediate: !1 }),
|
|
2235
|
+
let n = e, r = t, { t: o, format: s } = W(), c = l(Be, ee.liquid), u = l($e, null), d = u ? et(u) : null, f = l(We, void 0), y = E(!1), S = E(!1), { start: w } = ct(() => {
|
|
2236
|
+
y.value = !1, S.value = !1;
|
|
2237
|
+
}, 1e3, { immediate: !1 }), T = [
|
|
2042
2238
|
300,
|
|
2043
2239
|
400,
|
|
2044
2240
|
500
|
|
2045
|
-
], j =
|
|
2241
|
+
], j = C(() => {
|
|
2046
2242
|
let e = n.block.width;
|
|
2047
|
-
return e === "full" ? "full" :
|
|
2048
|
-
}), M =
|
|
2049
|
-
function
|
|
2243
|
+
return e === "full" ? "full" : T.includes(e) ? String(e) : "custom";
|
|
2244
|
+
}), M = C(() => typeof n.block.height == "number" ? "custom" : "auto"), P = C(() => n.block.fluidOnMobile === !0 ? "always" : n.block.fluidOnMobile === !1 ? "never" : "auto");
|
|
2245
|
+
function F(e, t) {
|
|
2050
2246
|
r("update", { [e]: t });
|
|
2051
2247
|
}
|
|
2052
|
-
function
|
|
2248
|
+
function te(e) {
|
|
2053
2249
|
if (e === "custom") {
|
|
2054
2250
|
let e = n.block.width;
|
|
2055
|
-
(typeof e != "number" ||
|
|
2056
|
-
} else r("update",
|
|
2251
|
+
(typeof e != "number" || T.includes(e)) && r("update", V.widthUpdates(ki));
|
|
2252
|
+
} else r("update", V.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
2057
2253
|
}
|
|
2058
|
-
function
|
|
2059
|
-
|
|
2254
|
+
function ne(e) {
|
|
2255
|
+
F("height", e === "custom" ? Ai : void 0);
|
|
2060
2256
|
}
|
|
2061
|
-
function
|
|
2062
|
-
|
|
2257
|
+
function re(e) {
|
|
2258
|
+
F("fluidOnMobile", e === "always" || e !== "never" && void 0);
|
|
2063
2259
|
}
|
|
2064
|
-
function
|
|
2260
|
+
function ie(e) {
|
|
2065
2261
|
let t = Number(e);
|
|
2066
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
2262
|
+
!Number.isFinite(t) || t <= 0 || F("height", t);
|
|
2067
2263
|
}
|
|
2068
|
-
function
|
|
2069
|
-
|
|
2264
|
+
function ae(e) {
|
|
2265
|
+
F("borderRadius", A(e) === null ? void 0 : e);
|
|
2070
2266
|
}
|
|
2071
|
-
function
|
|
2267
|
+
function oe(e) {
|
|
2072
2268
|
let t = Number(e);
|
|
2073
|
-
!Number.isFinite(t) || t <= 0 || r("update",
|
|
2269
|
+
!Number.isFinite(t) || t <= 0 || r("update", V.widthUpdates(t));
|
|
2074
2270
|
}
|
|
2075
|
-
function
|
|
2271
|
+
function se(e) {
|
|
2076
2272
|
e !== n.block.src && r("update", {
|
|
2077
2273
|
src: e,
|
|
2078
|
-
...
|
|
2274
|
+
...I(null)
|
|
2079
2275
|
});
|
|
2080
2276
|
}
|
|
2081
|
-
function
|
|
2277
|
+
function ce(e) {
|
|
2082
2278
|
r("update", {
|
|
2083
2279
|
src: e.url,
|
|
2084
|
-
...pe(
|
|
2085
|
-
}), e.alt && (
|
|
2086
|
-
}
|
|
2087
|
-
let
|
|
2088
|
-
target:
|
|
2089
|
-
blocked:
|
|
2090
|
-
apply:
|
|
2091
|
-
}),
|
|
2280
|
+
...I(pe(e.width, e.height))
|
|
2281
|
+
}), e.alt && (F("alt", e.alt), S.value = !0), y.value = !0, w();
|
|
2282
|
+
}
|
|
2283
|
+
let le = E(), ue = C(() => N(n.block.src, c)), { canBrowse: de, isUploading: me, showOverlay: he, openMediaBrowser: R } = ye({
|
|
2284
|
+
target: le,
|
|
2285
|
+
blocked: ue,
|
|
2286
|
+
apply: ce
|
|
2287
|
+
}), z = fe(() => ue.value || !n.block.src || _e(n.block) ? void 0 : n.block.src), B = fn(() => z.value), ve = C(() => d ? L(d.content.value, n.block.id, f) : null), V = ci({
|
|
2092
2288
|
block: () => n.block,
|
|
2093
|
-
room: () =>
|
|
2094
|
-
measured: () =>
|
|
2095
|
-
}), { available:
|
|
2096
|
-
function
|
|
2097
|
-
let e =
|
|
2289
|
+
room: () => ve.value,
|
|
2290
|
+
measured: () => B.value
|
|
2291
|
+
}), { available: be, locked: H, derivedHeight: xe, cappedHeight: Se } = V;
|
|
2292
|
+
function Ce() {
|
|
2293
|
+
let e = V.setLocked(!H.value);
|
|
2098
2294
|
e && r("update", e);
|
|
2099
2295
|
}
|
|
2100
|
-
let
|
|
2101
|
-
function
|
|
2102
|
-
|
|
2103
|
-
let t =
|
|
2296
|
+
let U = E(null);
|
|
2297
|
+
function we(e) {
|
|
2298
|
+
U.value = e;
|
|
2299
|
+
let t = V.heightUpdates(Number(e));
|
|
2104
2300
|
t && r("update", t);
|
|
2105
2301
|
}
|
|
2106
|
-
return (t, n) => (i(), p(
|
|
2107
|
-
|
|
2302
|
+
return (t, n) => (i(), p(D, null, [
|
|
2303
|
+
k(Y, {
|
|
2108
2304
|
label: h(o).image.imageUrl,
|
|
2109
2305
|
class: "tpl:mb-3.5",
|
|
2110
2306
|
path: "src"
|
|
2111
2307
|
}, {
|
|
2112
|
-
default: a(() => [
|
|
2308
|
+
default: a(() => [b("div", {
|
|
2113
2309
|
ref_key: "dropZoneRef",
|
|
2114
|
-
ref:
|
|
2310
|
+
ref: le,
|
|
2115
2311
|
class: "tpl:relative"
|
|
2116
2312
|
}, [
|
|
2117
|
-
h(
|
|
2313
|
+
h(he) ? (i(), v(ge, {
|
|
2118
2314
|
key: 0,
|
|
2119
|
-
uploading: h(
|
|
2315
|
+
uploading: h(me)
|
|
2120
2316
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
2121
|
-
|
|
2317
|
+
k(Q, {
|
|
2122
2318
|
"model-value": e.block.src,
|
|
2123
2319
|
type: "url",
|
|
2124
2320
|
placeholder: h(o).image.imageUrlPlaceholder,
|
|
2125
|
-
pulse:
|
|
2126
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
2321
|
+
pulse: y.value,
|
|
2322
|
+
"onUpdate:modelValue": n[0] ||= (e) => se(e)
|
|
2127
2323
|
}, null, 8, [
|
|
2128
2324
|
"model-value",
|
|
2129
2325
|
"placeholder",
|
|
2130
2326
|
"pulse"
|
|
2131
2327
|
]),
|
|
2132
|
-
h(
|
|
2328
|
+
h(de) ? (i(), p("button", {
|
|
2133
2329
|
key: 1,
|
|
2134
2330
|
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",
|
|
2135
2331
|
style: {
|
|
@@ -2137,59 +2333,59 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2137
2333
|
color: "var(--tpl-primary)",
|
|
2138
2334
|
"background-color": "var(--tpl-bg)"
|
|
2139
2335
|
},
|
|
2140
|
-
onClick: n[1] ||= (...e) => h(
|
|
2141
|
-
}, [
|
|
2336
|
+
onClick: n[1] ||= (...e) => h(R) && h(R)(...e)
|
|
2337
|
+
}, [k(h(ke), {
|
|
2142
2338
|
size: 14,
|
|
2143
2339
|
"stroke-width": 1.5
|
|
2144
|
-
}), m(" " +
|
|
2340
|
+
}), m(" " + x(h(o).image.browseMedia), 1)])) : _("", !0)
|
|
2145
2341
|
], 512)]),
|
|
2146
2342
|
_: 1
|
|
2147
2343
|
}, 8, ["label"]),
|
|
2148
|
-
h(
|
|
2344
|
+
h(N)(e.block.src, h(c)) ? (i(), v(Y, {
|
|
2149
2345
|
key: 0,
|
|
2150
2346
|
class: "tpl:mb-3.5",
|
|
2151
2347
|
path: "placeholderUrl"
|
|
2152
2348
|
}, {
|
|
2153
|
-
label: a(() => [m(
|
|
2154
|
-
default: a(() => [
|
|
2349
|
+
label: a(() => [m(x(h(o).image.placeholderUrl) + " ", 1), b("span", li, x(h(o).image.optional), 1)]),
|
|
2350
|
+
default: a(() => [b("input", {
|
|
2155
2351
|
type: "url",
|
|
2156
|
-
class: g(h(
|
|
2352
|
+
class: g(h(q)),
|
|
2157
2353
|
value: e.block.placeholderUrl || "",
|
|
2158
2354
|
placeholder: h(o).image.placeholderUrlPlaceholder,
|
|
2159
2355
|
title: h(o).image.placeholderUrlTooltip,
|
|
2160
|
-
onInput: n[2] ||= (e) =>
|
|
2161
|
-
}, null, 42,
|
|
2356
|
+
onInput: n[2] ||= (e) => F("placeholderUrl", e.target.value)
|
|
2357
|
+
}, null, 42, ui)]),
|
|
2162
2358
|
_: 1
|
|
2163
2359
|
})) : _("", !0),
|
|
2164
|
-
|
|
2360
|
+
k(Y, {
|
|
2165
2361
|
label: h(o).image.altText,
|
|
2166
2362
|
class: "tpl:mb-3.5",
|
|
2167
2363
|
path: "alt"
|
|
2168
2364
|
}, {
|
|
2169
|
-
default: a(() => [
|
|
2365
|
+
default: a(() => [k(Q, {
|
|
2170
2366
|
"model-value": e.block.alt,
|
|
2171
2367
|
type: "text",
|
|
2172
2368
|
placeholder: h(o).image.altTextPlaceholder,
|
|
2173
|
-
pulse:
|
|
2369
|
+
pulse: S.value,
|
|
2174
2370
|
disabled: e.block.decorative === !0,
|
|
2175
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
2371
|
+
"onUpdate:modelValue": n[3] ||= (e) => F("alt", e)
|
|
2176
2372
|
}, null, 8, [
|
|
2177
2373
|
"model-value",
|
|
2178
2374
|
"placeholder",
|
|
2179
2375
|
"pulse",
|
|
2180
2376
|
"disabled"
|
|
2181
|
-
]),
|
|
2377
|
+
]), k(Y, {
|
|
2182
2378
|
path: "decorative",
|
|
2183
2379
|
label: h(o).image.decorative
|
|
2184
2380
|
}, {
|
|
2185
|
-
label: a(() => [
|
|
2186
|
-
"label-actions": a(({ controlId: t }) => [
|
|
2381
|
+
label: a(() => [b("span", null, [m(x(h(o).image.decorative) + " ", 1), b("span", di, x(h(o).image.decorativeHint), 1)])]),
|
|
2382
|
+
"label-actions": a(({ controlId: t }) => [k(Z, {
|
|
2187
2383
|
"control-id": t,
|
|
2188
2384
|
"hide-label": "",
|
|
2189
2385
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2190
2386
|
"model-value": e.block.decorative === !0,
|
|
2191
2387
|
label: h(o).image.decorative,
|
|
2192
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
2388
|
+
"onUpdate:modelValue": n[4] ||= (e) => F("decorative", e)
|
|
2193
2389
|
}, null, 8, [
|
|
2194
2390
|
"control-id",
|
|
2195
2391
|
"model-value",
|
|
@@ -2199,89 +2395,89 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2199
2395
|
}, 8, ["label"])]),
|
|
2200
2396
|
_: 1
|
|
2201
2397
|
}, 8, ["label"]),
|
|
2202
|
-
|
|
2398
|
+
k(Y, {
|
|
2203
2399
|
label: h(o).image.width,
|
|
2204
2400
|
class: "tpl:mb-3.5",
|
|
2205
2401
|
path: "width"
|
|
2206
2402
|
}, {
|
|
2207
|
-
default: a(() => [
|
|
2208
|
-
class: g(h(
|
|
2403
|
+
default: a(() => [b("select", {
|
|
2404
|
+
class: g(h(q)),
|
|
2209
2405
|
"data-testid": "image-width-mode",
|
|
2210
2406
|
value: j.value,
|
|
2211
|
-
onChange: n[5] ||= (e) =>
|
|
2407
|
+
onChange: n[5] ||= (e) => te(e.target.value)
|
|
2212
2408
|
}, [
|
|
2213
|
-
|
|
2214
|
-
n[16] ||=
|
|
2215
|
-
n[17] ||=
|
|
2216
|
-
n[18] ||=
|
|
2217
|
-
|
|
2218
|
-
], 42,
|
|
2409
|
+
b("option", pi, x(h(o).image.fullWidth), 1),
|
|
2410
|
+
n[16] ||= b("option", { value: "300" }, "300px", -1),
|
|
2411
|
+
n[17] ||= b("option", { value: "400" }, "400px", -1),
|
|
2412
|
+
n[18] ||= b("option", { value: "500" }, "500px", -1),
|
|
2413
|
+
b("option", mi, x(h(o).image.widthCustom), 1)
|
|
2414
|
+
], 42, fi), j.value === "custom" ? (i(), p("div", hi, [b("input", {
|
|
2219
2415
|
type: "number",
|
|
2220
2416
|
"data-testid": "image-width-input",
|
|
2221
|
-
class: g(h(
|
|
2222
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
2417
|
+
class: g(h(K)),
|
|
2418
|
+
value: typeof e.block.width == "number" ? e.block.width : ki,
|
|
2223
2419
|
min: "20",
|
|
2224
|
-
onInput: n[6] ||= (e) =>
|
|
2225
|
-
}, null, 42,
|
|
2420
|
+
onInput: n[6] ||= (e) => oe(e.target.value)
|
|
2421
|
+
}, null, 42, gi), b("span", { class: g(h(G)) }, "px", 2)])) : _("", !0)]),
|
|
2226
2422
|
_: 1
|
|
2227
2423
|
}, 8, ["label"]),
|
|
2228
|
-
|
|
2424
|
+
k(Y, {
|
|
2229
2425
|
label: h(o).image.fluidOnMobile,
|
|
2230
2426
|
class: "tpl:mb-3.5",
|
|
2231
2427
|
path: "fluidOnMobile"
|
|
2232
2428
|
}, {
|
|
2233
|
-
default: a(() => [
|
|
2234
|
-
class: g(h(
|
|
2429
|
+
default: a(() => [b("select", {
|
|
2430
|
+
class: g(h(q)),
|
|
2235
2431
|
"data-testid": "image-fluid-on-mobile",
|
|
2236
|
-
value:
|
|
2237
|
-
onChange: n[7] ||= (e) =>
|
|
2432
|
+
value: P.value,
|
|
2433
|
+
onChange: n[7] ||= (e) => re(e.target.value)
|
|
2238
2434
|
}, [
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
], 42,
|
|
2435
|
+
b("option", vi, x(h(o).image.fluidOnMobileAuto), 1),
|
|
2436
|
+
b("option", yi, x(h(o).image.fluidOnMobileAlways), 1),
|
|
2437
|
+
b("option", bi, x(h(o).image.fluidOnMobileNever), 1)
|
|
2438
|
+
], 42, _i)]),
|
|
2243
2439
|
_: 1
|
|
2244
2440
|
}, 8, ["label"]),
|
|
2245
|
-
|
|
2441
|
+
k(Y, {
|
|
2246
2442
|
class: "tpl:mb-3.5",
|
|
2247
2443
|
path: "height",
|
|
2248
2444
|
label: h(o).image.height
|
|
2249
|
-
},
|
|
2445
|
+
}, O({
|
|
2250
2446
|
default: a(() => [
|
|
2251
|
-
h(
|
|
2447
|
+
h(H) ? (i(), p(D, { key: 0 }, [b("div", xi, [b("input", {
|
|
2252
2448
|
type: "number",
|
|
2253
2449
|
"data-testid": "image-locked-height-input",
|
|
2254
|
-
class: g(h(
|
|
2255
|
-
value:
|
|
2450
|
+
class: g(h(K)),
|
|
2451
|
+
value: U.value ?? h(xe) ?? "",
|
|
2256
2452
|
min: "1",
|
|
2257
|
-
onInput: n[8] ||= (e) =>
|
|
2258
|
-
onBlur: n[9] ||= (e) =>
|
|
2259
|
-
}, null, 42,
|
|
2260
|
-
h(
|
|
2453
|
+
onInput: n[8] ||= (e) => we(e.target.value),
|
|
2454
|
+
onBlur: n[9] ||= (e) => U.value = null
|
|
2455
|
+
}, null, 42, Si), b("span", { class: g(h(G)) }, "px", 2)]), h(Se) === null ? _("", !0) : (i(), p("p", Ci, x(h(s)(h(o).image.heightCapped, { height: h(Se) })), 1))], 64)) : _("", !0),
|
|
2456
|
+
h(H) ? _("", !0) : (i(), p("select", {
|
|
2261
2457
|
key: 1,
|
|
2262
|
-
class: g(h(
|
|
2458
|
+
class: g(h(q)),
|
|
2263
2459
|
"data-testid": "image-height-mode",
|
|
2264
2460
|
value: M.value,
|
|
2265
|
-
onChange: n[10] ||= (e) =>
|
|
2266
|
-
}, [
|
|
2267
|
-
!h(
|
|
2461
|
+
onChange: n[10] ||= (e) => ne(e.target.value)
|
|
2462
|
+
}, [b("option", Ti, x(h(o).image.heightAuto), 1), b("option", Ei, x(h(o).image.heightCustom), 1)], 42, wi)),
|
|
2463
|
+
!h(H) && M.value === "custom" ? (i(), p("div", Di, [b("input", {
|
|
2268
2464
|
type: "number",
|
|
2269
2465
|
"data-testid": "image-height-input",
|
|
2270
|
-
class: g(h(
|
|
2466
|
+
class: g(h(K)),
|
|
2271
2467
|
value: e.block.height,
|
|
2272
2468
|
min: "20",
|
|
2273
|
-
onInput: n[11] ||= (e) =>
|
|
2274
|
-
}, null, 42,
|
|
2469
|
+
onInput: n[11] ||= (e) => ie(e.target.value)
|
|
2470
|
+
}, null, 42, Oi), b("span", { class: g(h(G)) }, "px", 2)])) : _("", !0)
|
|
2275
2471
|
]),
|
|
2276
2472
|
_: 2
|
|
2277
|
-
}, [h(
|
|
2473
|
+
}, [h(be) ? {
|
|
2278
2474
|
name: "label-actions",
|
|
2279
|
-
fn: a(() => [
|
|
2280
|
-
linked: h(
|
|
2475
|
+
fn: a(() => [k(St, {
|
|
2476
|
+
linked: h(H),
|
|
2281
2477
|
"link-label": h(o).image.lockAspectRatio,
|
|
2282
2478
|
"unlink-label": h(o).image.unlockAspectRatio,
|
|
2283
2479
|
testid: "image-aspect-lock",
|
|
2284
|
-
onToggle:
|
|
2480
|
+
onToggle: Ce
|
|
2285
2481
|
}, null, 8, [
|
|
2286
2482
|
"linked",
|
|
2287
2483
|
"link-label",
|
|
@@ -2289,25 +2485,25 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2289
2485
|
])]),
|
|
2290
2486
|
key: "0"
|
|
2291
2487
|
} : void 0]), 1032, ["label"]),
|
|
2292
|
-
|
|
2488
|
+
k(kt, {
|
|
2293
2489
|
path: "borderRadius",
|
|
2294
2490
|
"model-value": e.block.borderRadius,
|
|
2295
2491
|
label: h(o).image.borderRadius,
|
|
2296
2492
|
"testid-prefix": "image",
|
|
2297
|
-
"onUpdate:modelValue":
|
|
2493
|
+
"onUpdate:modelValue": ae
|
|
2298
2494
|
}, null, 8, ["model-value", "label"]),
|
|
2299
|
-
|
|
2495
|
+
k(Et, {
|
|
2300
2496
|
path: "border",
|
|
2301
2497
|
"model-value": e.block.border,
|
|
2302
2498
|
"testid-prefix": "image",
|
|
2303
|
-
"onUpdate:modelValue": n[12] ||= (e) =>
|
|
2499
|
+
"onUpdate:modelValue": n[12] ||= (e) => F("border", e)
|
|
2304
2500
|
}, null, 8, ["model-value"]),
|
|
2305
|
-
|
|
2501
|
+
k(Y, {
|
|
2306
2502
|
label: h(o).title.align,
|
|
2307
2503
|
class: "tpl:mb-3.5",
|
|
2308
2504
|
path: "align"
|
|
2309
2505
|
}, {
|
|
2310
|
-
default: a(() => [
|
|
2506
|
+
default: a(() => [k($, {
|
|
2311
2507
|
options: [
|
|
2312
2508
|
{
|
|
2313
2509
|
value: "left",
|
|
@@ -2323,32 +2519,32 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2323
2519
|
}
|
|
2324
2520
|
],
|
|
2325
2521
|
"model-value": e.block.align,
|
|
2326
|
-
"onUpdate:modelValue": n[13] ||= (e) =>
|
|
2522
|
+
"onUpdate:modelValue": n[13] ||= (e) => F("align", e)
|
|
2327
2523
|
}, null, 8, ["options", "model-value"])]),
|
|
2328
2524
|
_: 1
|
|
2329
2525
|
}, 8, ["label"]),
|
|
2330
|
-
|
|
2526
|
+
k(Y, {
|
|
2331
2527
|
label: h(o).image.linkUrl,
|
|
2332
2528
|
class: "tpl:mb-3.5",
|
|
2333
2529
|
path: "linkUrl"
|
|
2334
2530
|
}, {
|
|
2335
|
-
default: a(() => [
|
|
2531
|
+
default: a(() => [k(Q, {
|
|
2336
2532
|
"model-value": e.block.linkUrl || "",
|
|
2337
2533
|
type: "url",
|
|
2338
2534
|
placeholder: h(o).image.imageUrlPlaceholder,
|
|
2339
|
-
"onUpdate:modelValue": n[14] ||= (e) =>
|
|
2340
|
-
}, null, 8, ["model-value", "placeholder"]), e.block.linkUrl ? (i(), v(
|
|
2535
|
+
"onUpdate:modelValue": n[14] ||= (e) => F("linkUrl", e)
|
|
2536
|
+
}, null, 8, ["model-value", "placeholder"]), e.block.linkUrl ? (i(), v(Y, {
|
|
2341
2537
|
key: 0,
|
|
2342
2538
|
path: "linkOpenInNewTab",
|
|
2343
2539
|
label: h(o).image.openInNewTab
|
|
2344
2540
|
}, {
|
|
2345
|
-
"label-actions": a(({ controlId: t }) => [
|
|
2541
|
+
"label-actions": a(({ controlId: t }) => [k(Z, {
|
|
2346
2542
|
"control-id": t,
|
|
2347
2543
|
"hide-label": "",
|
|
2348
2544
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2349
2545
|
"model-value": e.block.linkOpenInNewTab ?? !1,
|
|
2350
2546
|
label: h(o).image.openInNewTab,
|
|
2351
|
-
"onUpdate:modelValue": n[15] ||= (e) =>
|
|
2547
|
+
"onUpdate:modelValue": n[15] ||= (e) => F("linkOpenInNewTab", e)
|
|
2352
2548
|
}, null, 8, [
|
|
2353
2549
|
"control-id",
|
|
2354
2550
|
"model-value",
|
|
@@ -2360,11 +2556,11 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2360
2556
|
}, 8, ["label"])
|
|
2361
2557
|
], 64));
|
|
2362
2558
|
}
|
|
2363
|
-
}),
|
|
2559
|
+
}), Mi = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ni = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Pi = [
|
|
2364
2560
|
"value",
|
|
2365
2561
|
"placeholder",
|
|
2366
2562
|
"onInput"
|
|
2367
|
-
],
|
|
2563
|
+
], Fi = ["title", "onClick"], Ii = { 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)]" }, Li = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ri = ["value"], zi = { value: "" }, Bi = ["value"], Vi = ["value"], Hi = /* @__PURE__ */ r({
|
|
2368
2564
|
__name: "MenuToolbar",
|
|
2369
2565
|
props: {
|
|
2370
2566
|
block: {},
|
|
@@ -2372,7 +2568,7 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2372
2568
|
},
|
|
2373
2569
|
emits: ["update"],
|
|
2374
2570
|
setup(e, { emit: t }) {
|
|
2375
|
-
let n = e, r = t, { t: o } =
|
|
2571
|
+
let n = e, r = t, { t: o } = W(), s = C(() => [
|
|
2376
2572
|
{
|
|
2377
2573
|
key: "openInNewTab",
|
|
2378
2574
|
label: o.menu.openInNewTab
|
|
@@ -2385,21 +2581,21 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2385
2581
|
key: "underline",
|
|
2386
2582
|
label: o.menu.underline
|
|
2387
2583
|
}
|
|
2388
|
-
]), l =
|
|
2584
|
+
]), l = C(() => [
|
|
2389
2585
|
{
|
|
2390
2586
|
value: "left",
|
|
2391
2587
|
label: o.title.alignLeft,
|
|
2392
|
-
icon:
|
|
2588
|
+
icon: Pe
|
|
2393
2589
|
},
|
|
2394
2590
|
{
|
|
2395
2591
|
value: "center",
|
|
2396
2592
|
label: o.title.alignCenter,
|
|
2397
|
-
icon:
|
|
2593
|
+
icon: ze
|
|
2398
2594
|
},
|
|
2399
2595
|
{
|
|
2400
2596
|
value: "right",
|
|
2401
2597
|
label: o.title.alignRight,
|
|
2402
|
-
icon:
|
|
2598
|
+
icon: Oe
|
|
2403
2599
|
}
|
|
2404
2600
|
]);
|
|
2405
2601
|
function u(e, t) {
|
|
@@ -2426,37 +2622,37 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2426
2622
|
function _(e) {
|
|
2427
2623
|
r("update", { items: n.block.items.filter((t) => t.id !== e) });
|
|
2428
2624
|
}
|
|
2429
|
-
return (t, n) => (i(), p(
|
|
2430
|
-
|
|
2431
|
-
default: a(() => [
|
|
2625
|
+
return (t, n) => (i(), p(D, null, [
|
|
2626
|
+
k(Y, { label: h(o).menu.items }, {
|
|
2627
|
+
default: a(() => [b("div", Mi, [(i(!0), p(D, null, c(e.block.items, (t) => (i(), p("div", {
|
|
2432
2628
|
key: t.id,
|
|
2433
2629
|
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"
|
|
2434
2630
|
}, [
|
|
2435
|
-
|
|
2631
|
+
b("div", Ni, [k(Y, {
|
|
2436
2632
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.text`,
|
|
2437
2633
|
label: h(o).menu.text
|
|
2438
2634
|
}, {
|
|
2439
|
-
default: a(() => [
|
|
2635
|
+
default: a(() => [b("input", {
|
|
2440
2636
|
type: "text",
|
|
2441
|
-
class: g([h(
|
|
2637
|
+
class: g([h(q), "tpl:flex-1"]),
|
|
2442
2638
|
value: t.text,
|
|
2443
2639
|
placeholder: h(o).menu.text,
|
|
2444
2640
|
onInput: (e) => f(t.id, "text", e.target.value)
|
|
2445
|
-
}, null, 42,
|
|
2641
|
+
}, null, 42, Pi)]),
|
|
2446
2642
|
_: 2
|
|
2447
|
-
}, 1032, ["path", "label"]),
|
|
2448
|
-
class: g(h(
|
|
2643
|
+
}, 1032, ["path", "label"]), b("button", {
|
|
2644
|
+
class: g(h(rt)),
|
|
2449
2645
|
title: h(o).menu.removeItem,
|
|
2450
2646
|
onClick: (e) => _(t.id)
|
|
2451
|
-
}, [
|
|
2647
|
+
}, [k(h(Re), {
|
|
2452
2648
|
size: 14,
|
|
2453
2649
|
"stroke-width": 2
|
|
2454
|
-
})], 10,
|
|
2455
|
-
|
|
2650
|
+
})], 10, Fi)]),
|
|
2651
|
+
k(Y, {
|
|
2456
2652
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.url`,
|
|
2457
2653
|
label: h(o).button.url
|
|
2458
2654
|
}, {
|
|
2459
|
-
default: a(() => [
|
|
2655
|
+
default: a(() => [k(Q, {
|
|
2460
2656
|
"model-value": t.url,
|
|
2461
2657
|
type: "url",
|
|
2462
2658
|
placeholder: h(o).menu.urlPlaceholder,
|
|
@@ -2468,12 +2664,12 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2468
2664
|
])]),
|
|
2469
2665
|
_: 2
|
|
2470
2666
|
}, 1032, ["path", "label"]),
|
|
2471
|
-
|
|
2667
|
+
b("div", Ii, [(i(!0), p(D, null, c(s.value, (e) => (i(), v(Y, {
|
|
2472
2668
|
key: e.key,
|
|
2473
2669
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.${e.key}`,
|
|
2474
2670
|
label: e.label
|
|
2475
2671
|
}, {
|
|
2476
|
-
"label-actions": a(({ controlId: n }) => [
|
|
2672
|
+
"label-actions": a(({ controlId: n }) => [k(Z, {
|
|
2477
2673
|
"control-id": n,
|
|
2478
2674
|
"hide-label": "",
|
|
2479
2675
|
"model-value": t[e.key],
|
|
@@ -2487,45 +2683,45 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2487
2683
|
])]),
|
|
2488
2684
|
_: 2
|
|
2489
2685
|
}, 1032, ["path", "label"]))), 128))]),
|
|
2490
|
-
|
|
2686
|
+
b("div", Li, [k(Y, {
|
|
2491
2687
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.color`,
|
|
2492
2688
|
label: h(o).menu.color
|
|
2493
2689
|
}, {
|
|
2494
|
-
default: a(() => [
|
|
2690
|
+
default: a(() => [k(X, {
|
|
2495
2691
|
"swatch-only": "",
|
|
2496
2692
|
"model-value": t.color || e.block.linkColor || e.block.color || "",
|
|
2497
2693
|
"onUpdate:modelValue": (e) => f(t.id, "color", e)
|
|
2498
2694
|
}, null, 8, ["model-value", "onUpdate:modelValue"])]),
|
|
2499
2695
|
_: 2
|
|
2500
2696
|
}, 1032, ["path", "label"])])
|
|
2501
|
-
]))), 128)),
|
|
2502
|
-
class: g(h(
|
|
2697
|
+
]))), 128)), b("button", {
|
|
2698
|
+
class: g(h(at)),
|
|
2503
2699
|
onClick: d
|
|
2504
|
-
}, [
|
|
2700
|
+
}, [k(h(U), {
|
|
2505
2701
|
size: 14,
|
|
2506
2702
|
"stroke-width": 2
|
|
2507
|
-
}), m(" " +
|
|
2703
|
+
}), m(" " + x(h(o).menu.addItem), 1)], 2)])]),
|
|
2508
2704
|
_: 1
|
|
2509
2705
|
}, 8, ["label"]),
|
|
2510
|
-
|
|
2706
|
+
k(Y, {
|
|
2511
2707
|
path: "fontFamily",
|
|
2512
2708
|
label: h(o).menu.fontFamily
|
|
2513
2709
|
}, {
|
|
2514
|
-
default: a(() => [
|
|
2515
|
-
class: g(h(
|
|
2516
|
-
value: h(
|
|
2710
|
+
default: a(() => [b("select", {
|
|
2711
|
+
class: g(h(q)),
|
|
2712
|
+
value: h(ht)(e.block.fontFamily),
|
|
2517
2713
|
onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
2518
|
-
}, [
|
|
2714
|
+
}, [b("option", zi, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
2519
2715
|
key: e.value,
|
|
2520
2716
|
value: e.value
|
|
2521
|
-
},
|
|
2717
|
+
}, x(e.label), 9, Bi))), 128))], 42, Ri)]),
|
|
2522
2718
|
_: 1
|
|
2523
2719
|
}, 8, ["label"]),
|
|
2524
|
-
|
|
2720
|
+
k(Y, {
|
|
2525
2721
|
path: "fontSize",
|
|
2526
2722
|
label: h(o).menu.fontSize
|
|
2527
2723
|
}, {
|
|
2528
|
-
default: a(() => [
|
|
2724
|
+
default: a(() => [k(bt, {
|
|
2529
2725
|
"model-value": e.block.fontSize,
|
|
2530
2726
|
min: 8,
|
|
2531
2727
|
max: 48,
|
|
@@ -2534,64 +2730,64 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2534
2730
|
}, null, 8, ["model-value"])]),
|
|
2535
2731
|
_: 1
|
|
2536
2732
|
}, 8, ["label"]),
|
|
2537
|
-
|
|
2733
|
+
k(Y, {
|
|
2538
2734
|
path: "color",
|
|
2539
2735
|
label: h(o).menu.color
|
|
2540
2736
|
}, {
|
|
2541
|
-
default: a(() => [
|
|
2737
|
+
default: a(() => [k(X, {
|
|
2542
2738
|
"model-value": e.block.color ?? "",
|
|
2543
2739
|
"onUpdate:modelValue": n[2] ||= (e) => u("color", e || void 0)
|
|
2544
2740
|
}, null, 8, ["model-value"])]),
|
|
2545
2741
|
_: 1
|
|
2546
2742
|
}, 8, ["label"]),
|
|
2547
|
-
|
|
2743
|
+
k(Y, {
|
|
2548
2744
|
path: "linkColor",
|
|
2549
2745
|
label: h(o).menu.linkColor
|
|
2550
2746
|
}, {
|
|
2551
|
-
default: a(() => [
|
|
2747
|
+
default: a(() => [k(X, {
|
|
2552
2748
|
"model-value": e.block.linkColor || e.block.color || "",
|
|
2553
2749
|
"onUpdate:modelValue": n[3] ||= (e) => u("linkColor", e || void 0)
|
|
2554
2750
|
}, null, 8, ["model-value"])]),
|
|
2555
2751
|
_: 1
|
|
2556
2752
|
}, 8, ["label"]),
|
|
2557
|
-
|
|
2753
|
+
k(Y, {
|
|
2558
2754
|
path: "textAlign",
|
|
2559
2755
|
label: h(o).menu.textAlign
|
|
2560
2756
|
}, {
|
|
2561
|
-
default: a(() => [
|
|
2757
|
+
default: a(() => [k($, {
|
|
2562
2758
|
options: l.value,
|
|
2563
2759
|
"model-value": e.block.textAlign,
|
|
2564
2760
|
"onUpdate:modelValue": n[4] ||= (e) => u("textAlign", e)
|
|
2565
2761
|
}, null, 8, ["options", "model-value"])]),
|
|
2566
2762
|
_: 1
|
|
2567
2763
|
}, 8, ["label"]),
|
|
2568
|
-
|
|
2764
|
+
k(Y, {
|
|
2569
2765
|
path: "separator",
|
|
2570
2766
|
label: h(o).menu.separator
|
|
2571
2767
|
}, {
|
|
2572
|
-
default: a(() => [
|
|
2768
|
+
default: a(() => [b("input", {
|
|
2573
2769
|
type: "text",
|
|
2574
|
-
class: g(h(
|
|
2770
|
+
class: g(h(q)),
|
|
2575
2771
|
value: e.block.separator,
|
|
2576
2772
|
onInput: n[5] ||= (e) => u("separator", e.target.value)
|
|
2577
|
-
}, null, 42,
|
|
2773
|
+
}, null, 42, Vi)]),
|
|
2578
2774
|
_: 1
|
|
2579
2775
|
}, 8, ["label"]),
|
|
2580
|
-
|
|
2776
|
+
k(Y, {
|
|
2581
2777
|
path: "separatorColor",
|
|
2582
2778
|
label: h(o).menu.separatorColor
|
|
2583
2779
|
}, {
|
|
2584
|
-
default: a(() => [
|
|
2780
|
+
default: a(() => [k(X, {
|
|
2585
2781
|
"model-value": e.block.separatorColor,
|
|
2586
2782
|
"onUpdate:modelValue": n[6] ||= (e) => u("separatorColor", e)
|
|
2587
2783
|
}, null, 8, ["model-value"])]),
|
|
2588
2784
|
_: 1
|
|
2589
2785
|
}, 8, ["label"]),
|
|
2590
|
-
|
|
2786
|
+
k(Y, {
|
|
2591
2787
|
path: "spacing",
|
|
2592
2788
|
label: h(o).menu.spacing
|
|
2593
2789
|
}, {
|
|
2594
|
-
default: a(() => [
|
|
2790
|
+
default: a(() => [k(bt, {
|
|
2595
2791
|
"model-value": e.block.spacing,
|
|
2596
2792
|
min: 0,
|
|
2597
2793
|
max: 50,
|
|
@@ -2602,32 +2798,32 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2602
2798
|
}, 8, ["label"])
|
|
2603
2799
|
], 64));
|
|
2604
2800
|
}
|
|
2605
|
-
}),
|
|
2801
|
+
}), Ui = { class: "tpl:flex tpl:items-stretch" }, Wi = ["value"], Gi = /* @__PURE__ */ r({
|
|
2606
2802
|
__name: "ParagraphToolbar",
|
|
2607
2803
|
props: { block: {} },
|
|
2608
2804
|
emits: ["update"],
|
|
2609
2805
|
setup(e, { emit: t }) {
|
|
2610
|
-
let n = t, { t: r } =
|
|
2611
|
-
return (t, o) => (i(), v(
|
|
2806
|
+
let n = t, { t: r } = W();
|
|
2807
|
+
return (t, o) => (i(), v(Y, {
|
|
2612
2808
|
label: h(r).paragraph.paragraphSpacing,
|
|
2613
2809
|
class: "tpl:mb-3.5",
|
|
2614
2810
|
"data-testid": "paragraph-spacing",
|
|
2615
2811
|
path: "paragraphSpacing"
|
|
2616
2812
|
}, {
|
|
2617
|
-
default: a(() => [
|
|
2813
|
+
default: a(() => [b("div", Ui, [b("input", {
|
|
2618
2814
|
type: "number",
|
|
2619
|
-
class: g(h(
|
|
2620
|
-
value: e.block.paragraphSpacing ?? h(
|
|
2815
|
+
class: g(h(K)),
|
|
2816
|
+
value: e.block.paragraphSpacing ?? h(ue).paragraphGap,
|
|
2621
2817
|
min: "0",
|
|
2622
2818
|
max: "64",
|
|
2623
2819
|
onInput: o[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
2624
|
-
}, null, 42,
|
|
2820
|
+
}, null, 42, Wi), b("span", { class: g(h(G)) }, "px", 2)])]),
|
|
2625
2821
|
_: 1
|
|
2626
2822
|
}, 8, ["label"]));
|
|
2627
2823
|
}
|
|
2628
2824
|
});
|
|
2629
2825
|
// src/utils/rebalanceColumnChildren.ts
|
|
2630
|
-
function
|
|
2826
|
+
function Ki(e, t) {
|
|
2631
2827
|
let n = M(t);
|
|
2632
2828
|
if (e.length === n) return e;
|
|
2633
2829
|
if (e.length < n) {
|
|
@@ -2638,21 +2834,21 @@ function wi(e, t) {
|
|
|
2638
2834
|
return [...r.slice(0, n - 1), a];
|
|
2639
2835
|
}
|
|
2640
2836
|
// src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2641
|
-
var
|
|
2837
|
+
var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
2642
2838
|
key: 2,
|
|
2643
2839
|
class: "tpl:mb-3.5"
|
|
2644
|
-
},
|
|
2840
|
+
}, Zi = {
|
|
2645
2841
|
key: 0,
|
|
2646
2842
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2647
|
-
},
|
|
2843
|
+
}, Qi = {
|
|
2648
2844
|
key: 1,
|
|
2649
2845
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
2650
|
-
},
|
|
2846
|
+
}, $i = /* @__PURE__ */ r({
|
|
2651
2847
|
__name: "SectionToolbar",
|
|
2652
2848
|
props: { block: {} },
|
|
2653
2849
|
emits: ["update"],
|
|
2654
2850
|
setup(e, { emit: t }) {
|
|
2655
|
-
let n = e, r = t, { t: o } =
|
|
2851
|
+
let n = e, r = t, { t: o } = W(), s = l(We, void 0), u = l(Ke, void 0), d = s !== void 0 && ne(s), f = C(() => u !== !1 || !!n.block.wrapper), m = C(() => d && !n.block.wrapper), y = C(() => d && f.value), S = C(() => se(n.block)?.applied === !0), w = C(() => [
|
|
2656
2852
|
{
|
|
2657
2853
|
value: "1",
|
|
2658
2854
|
label: o.section.column1
|
|
@@ -2665,6 +2861,10 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
2665
2861
|
value: "3",
|
|
2666
2862
|
label: o.section.column3
|
|
2667
2863
|
},
|
|
2864
|
+
{
|
|
2865
|
+
value: "4",
|
|
2866
|
+
label: o.section.column4
|
|
2867
|
+
},
|
|
2668
2868
|
{
|
|
2669
2869
|
value: "1-2",
|
|
2670
2870
|
label: o.section.ratio12
|
|
@@ -2672,28 +2872,43 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
2672
2872
|
{
|
|
2673
2873
|
value: "2-1",
|
|
2674
2874
|
label: o.section.ratio21
|
|
2875
|
+
},
|
|
2876
|
+
{
|
|
2877
|
+
value: "1-3",
|
|
2878
|
+
label: o.section.ratio13
|
|
2879
|
+
},
|
|
2880
|
+
{
|
|
2881
|
+
value: "3-1",
|
|
2882
|
+
label: o.section.ratio31
|
|
2883
|
+
},
|
|
2884
|
+
{
|
|
2885
|
+
value: "1-2-1",
|
|
2886
|
+
label: o.section.ratio121
|
|
2675
2887
|
}
|
|
2676
2888
|
]);
|
|
2677
2889
|
function T(e) {
|
|
2678
|
-
let t = e.target.value, i =
|
|
2890
|
+
let t = e.target.value, i = Ki(n.block.children, t);
|
|
2679
2891
|
r("update", {
|
|
2680
2892
|
columns: t,
|
|
2681
2893
|
children: i
|
|
2682
2894
|
});
|
|
2683
2895
|
}
|
|
2684
|
-
function
|
|
2896
|
+
function E(e) {
|
|
2685
2897
|
r("update", { stackOnMobile: e });
|
|
2686
2898
|
}
|
|
2687
|
-
function
|
|
2899
|
+
function O(e) {
|
|
2688
2900
|
r("update", { borderRadius: e });
|
|
2689
2901
|
}
|
|
2690
2902
|
function A(e) {
|
|
2691
|
-
r("update", { wrapper:
|
|
2903
|
+
e ? r("update", { wrapper: { padding: {
|
|
2692
2904
|
top: 20,
|
|
2693
2905
|
right: 20,
|
|
2694
2906
|
bottom: 20,
|
|
2695
2907
|
left: 20
|
|
2696
|
-
} } :
|
|
2908
|
+
} } }) : r("update", Un(n.block));
|
|
2909
|
+
}
|
|
2910
|
+
function ee(e) {
|
|
2911
|
+
r("update", Hn(n.block, e));
|
|
2697
2912
|
}
|
|
2698
2913
|
function j(e) {
|
|
2699
2914
|
r("update", { wrapper: {
|
|
@@ -2707,28 +2922,28 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
2707
2922
|
function N(e) {
|
|
2708
2923
|
j({ borderRadius: e });
|
|
2709
2924
|
}
|
|
2710
|
-
return (t, n) => (i(), p(
|
|
2711
|
-
|
|
2712
|
-
class: g(h(
|
|
2925
|
+
return (t, n) => (i(), p(D, null, [
|
|
2926
|
+
b("div", qi, [b("label", { class: g(h(J)) }, x(h(o).section.columns), 3), b("select", {
|
|
2927
|
+
class: g(h(q)),
|
|
2713
2928
|
value: e.block.columns,
|
|
2714
2929
|
onChange: T
|
|
2715
|
-
}, [(i(!0), p(
|
|
2930
|
+
}, [(i(!0), p(D, null, c(w.value, (e) => (i(), p("option", {
|
|
2716
2931
|
key: e.value,
|
|
2717
2932
|
value: e.value
|
|
2718
|
-
},
|
|
2719
|
-
e.block.columns === "1" ? _("", !0) : (i(), v(
|
|
2933
|
+
}, x(e.label), 9, Yi))), 128))], 42, Ji)]),
|
|
2934
|
+
e.block.columns === "1" ? _("", !0) : (i(), v(Y, {
|
|
2720
2935
|
key: 0,
|
|
2721
2936
|
class: "tpl:mb-3.5",
|
|
2722
2937
|
path: "stackOnMobile",
|
|
2723
2938
|
label: h(o).section.stackOnMobile
|
|
2724
2939
|
}, {
|
|
2725
|
-
"label-actions": a(({ controlId: t }) => [
|
|
2940
|
+
"label-actions": a(({ controlId: t }) => [k(Z, {
|
|
2726
2941
|
"control-id": t,
|
|
2727
2942
|
"hide-label": "",
|
|
2728
2943
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2729
2944
|
"model-value": e.block.stackOnMobile !== !1,
|
|
2730
2945
|
label: h(o).section.stackOnMobile,
|
|
2731
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
2946
|
+
"onUpdate:modelValue": n[0] ||= (e) => E(e)
|
|
2732
2947
|
}, null, 8, [
|
|
2733
2948
|
"control-id",
|
|
2734
2949
|
"model-value",
|
|
@@ -2736,27 +2951,27 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
2736
2951
|
])]),
|
|
2737
2952
|
_: 1
|
|
2738
2953
|
}, 8, ["label"])),
|
|
2739
|
-
|
|
2954
|
+
k(kt, {
|
|
2740
2955
|
path: "borderRadius",
|
|
2741
2956
|
"model-value": e.block.borderRadius,
|
|
2742
2957
|
label: h(o).section.borderRadius,
|
|
2743
2958
|
max: 50,
|
|
2744
2959
|
"testid-prefix": "section",
|
|
2745
|
-
"onUpdate:modelValue":
|
|
2960
|
+
"onUpdate:modelValue": O
|
|
2746
2961
|
}, null, 8, ["model-value", "label"]),
|
|
2747
|
-
|
|
2962
|
+
S.value ? _("", !0) : (i(), v(Et, {
|
|
2748
2963
|
key: 1,
|
|
2749
2964
|
path: "border",
|
|
2750
2965
|
"model-value": e.block.border,
|
|
2751
2966
|
"testid-prefix": "section",
|
|
2752
2967
|
"onUpdate:modelValue": n[1] ||= (e) => r("update", { border: e })
|
|
2753
2968
|
}, null, 8, ["model-value"])),
|
|
2754
|
-
f.value ? (i(), p("div",
|
|
2755
|
-
|
|
2969
|
+
f.value ? (i(), p("div", Xi, [
|
|
2970
|
+
k(Y, {
|
|
2756
2971
|
path: "wrapper",
|
|
2757
2972
|
label: h(o).section.wrapperEnable
|
|
2758
2973
|
}, {
|
|
2759
|
-
"label-actions": a(({ controlId: t }) => [
|
|
2974
|
+
"label-actions": a(({ controlId: t }) => [k(Z, {
|
|
2760
2975
|
"control-id": t,
|
|
2761
2976
|
"hide-label": "",
|
|
2762
2977
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
@@ -2772,24 +2987,43 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
2772
2987
|
])]),
|
|
2773
2988
|
_: 1
|
|
2774
2989
|
}, 8, ["label"]),
|
|
2775
|
-
|
|
2776
|
-
e.block.wrapper ? (i(), p("div",
|
|
2777
|
-
|
|
2990
|
+
y.value ? (i(), p("p", Zi, x(h(o).section.wrapperLayoutConflict), 1)) : _("", !0),
|
|
2991
|
+
e.block.wrapper ? (i(), p("div", Qi, [
|
|
2992
|
+
k(Y, {
|
|
2993
|
+
path: "wrapper.fullWidth",
|
|
2994
|
+
label: h(o).blockSettings.fullWidthBackground
|
|
2995
|
+
}, {
|
|
2996
|
+
"label-actions": a(({ controlId: t }) => [k(Z, {
|
|
2997
|
+
"data-testid": "section-wrapper-full-width",
|
|
2998
|
+
"control-id": t,
|
|
2999
|
+
"hide-label": "",
|
|
3000
|
+
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
3001
|
+
"model-value": e.block.wrapper.fullWidth === !0,
|
|
3002
|
+
label: h(o).blockSettings.fullWidthBackground,
|
|
3003
|
+
"onUpdate:modelValue": ee
|
|
3004
|
+
}, null, 8, [
|
|
3005
|
+
"control-id",
|
|
3006
|
+
"model-value",
|
|
3007
|
+
"label"
|
|
3008
|
+
])]),
|
|
3009
|
+
_: 1
|
|
3010
|
+
}, 8, ["label"]),
|
|
3011
|
+
b("div", null, [k(Y, {
|
|
2778
3012
|
path: "wrapper.backgroundColor",
|
|
2779
3013
|
label: h(o).blockSettings.color
|
|
2780
3014
|
}, {
|
|
2781
|
-
default: a(() => [
|
|
3015
|
+
default: a(() => [k(X, {
|
|
2782
3016
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
2783
3017
|
"allow-transparent": "",
|
|
2784
3018
|
"onUpdate:modelValue": n[3] ||= (e) => j({ backgroundColor: e })
|
|
2785
3019
|
}, null, 8, ["model-value"])]),
|
|
2786
3020
|
_: 1
|
|
2787
3021
|
}, 8, ["label"])]),
|
|
2788
|
-
|
|
3022
|
+
k(Y, {
|
|
2789
3023
|
path: "wrapper.backgroundImage",
|
|
2790
3024
|
label: h(o).blockSettings.backgroundImage
|
|
2791
3025
|
}, {
|
|
2792
|
-
default: a(() => [
|
|
3026
|
+
default: a(() => [k(Sn, {
|
|
2793
3027
|
"hide-label": "",
|
|
2794
3028
|
"model-value": e.block.wrapper.backgroundImage,
|
|
2795
3029
|
"testid-prefix": "section-wrapper",
|
|
@@ -2797,7 +3031,7 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
2797
3031
|
}, null, 8, ["model-value"])]),
|
|
2798
3032
|
_: 1
|
|
2799
3033
|
}, 8, ["label"]),
|
|
2800
|
-
|
|
3034
|
+
k(dn, {
|
|
2801
3035
|
path: "wrapper.padding",
|
|
2802
3036
|
label: h(o).blockSettings.padding,
|
|
2803
3037
|
"model-value": e.block.wrapper.padding ?? {
|
|
@@ -2808,7 +3042,7 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
2808
3042
|
},
|
|
2809
3043
|
"onUpdate:modelValue": M
|
|
2810
3044
|
}, null, 8, ["label", "model-value"]),
|
|
2811
|
-
|
|
3045
|
+
k(kt, {
|
|
2812
3046
|
path: "wrapper.borderRadius",
|
|
2813
3047
|
"model-value": e.block.wrapper.borderRadius,
|
|
2814
3048
|
label: h(o).section.borderRadius,
|
|
@@ -2820,12 +3054,12 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
2820
3054
|
])) : _("", !0)
|
|
2821
3055
|
], 64));
|
|
2822
3056
|
}
|
|
2823
|
-
}),
|
|
3057
|
+
}), ea = { class: "tpl:mb-3.5" }, ta = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, na = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ra = ["value", "onChange"], ia = ["value"], aa = ["title", "onClick"], oa = ["value"], sa = { value: "solid" }, ca = { value: "outlined" }, la = { value: "rounded" }, ua = { value: "square" }, da = { value: "circle" }, fa = { value: "plain" }, pa = ["value"], ma = { value: "brand" }, ha = { value: "dark" }, ga = { value: "light" }, _a = { class: "tpl:flex tpl:items-stretch" }, va = ["value"], ya = /* @__PURE__ */ r({
|
|
2824
3058
|
__name: "SocialToolbar",
|
|
2825
3059
|
props: { block: {} },
|
|
2826
3060
|
emits: ["update"],
|
|
2827
3061
|
setup(e, { emit: t }) {
|
|
2828
|
-
let n = e, r = t, { t: o } =
|
|
3062
|
+
let n = e, r = t, { t: o } = W();
|
|
2829
3063
|
function s(e, t) {
|
|
2830
3064
|
r("update", { [e]: t });
|
|
2831
3065
|
}
|
|
@@ -2847,36 +3081,36 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
2847
3081
|
function d(e) {
|
|
2848
3082
|
r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
2849
3083
|
}
|
|
2850
|
-
return (t, n) => (i(), p(
|
|
2851
|
-
|
|
3084
|
+
return (t, n) => (i(), p(D, null, [
|
|
3085
|
+
b("div", ea, [b("label", { class: g(h(J)) }, x(h(o).social.icons), 3), b("div", ta, [(i(!0), p(D, null, c(e.block.icons, (e) => (i(), p("div", {
|
|
2852
3086
|
key: e.id,
|
|
2853
3087
|
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"
|
|
2854
|
-
}, [
|
|
3088
|
+
}, [b("div", na, [k(Y, {
|
|
2855
3089
|
path: e.id.includes(".") ? void 0 : `icons.${e.id}.platform`,
|
|
2856
3090
|
label: h(o).social.icons
|
|
2857
3091
|
}, {
|
|
2858
|
-
default: a(() => [
|
|
3092
|
+
default: a(() => [b("select", {
|
|
2859
3093
|
"data-testid": "social-platform-select",
|
|
2860
|
-
class: g([h(
|
|
3094
|
+
class: g([h(q), "tpl:flex-1"]),
|
|
2861
3095
|
value: e.platform,
|
|
2862
3096
|
onChange: (t) => u(e.id, "platform", t.target.value)
|
|
2863
|
-
}, [(i(!0), p(
|
|
3097
|
+
}, [(i(!0), p(D, null, c(h(ve), (e) => (i(), p("option", {
|
|
2864
3098
|
key: e,
|
|
2865
3099
|
value: e
|
|
2866
|
-
},
|
|
3100
|
+
}, x(h(o).social.platforms[e]), 9, ia))), 128))], 42, ra)]),
|
|
2867
3101
|
_: 2
|
|
2868
|
-
}, 1032, ["path", "label"]),
|
|
2869
|
-
class: g(h(
|
|
3102
|
+
}, 1032, ["path", "label"]), b("button", {
|
|
3103
|
+
class: g(h(rt)),
|
|
2870
3104
|
title: h(o).social.removeIcon,
|
|
2871
3105
|
onClick: (t) => d(e.id)
|
|
2872
|
-
}, [
|
|
3106
|
+
}, [k(h(Re), {
|
|
2873
3107
|
size: 14,
|
|
2874
3108
|
"stroke-width": 2
|
|
2875
|
-
})], 10,
|
|
3109
|
+
})], 10, aa)]), k(Y, {
|
|
2876
3110
|
path: e.id.includes(".") ? void 0 : `icons.${e.id}.url`,
|
|
2877
3111
|
label: h(o).button.url
|
|
2878
3112
|
}, {
|
|
2879
|
-
default: a(() => [
|
|
3113
|
+
default: a(() => [k(Q, {
|
|
2880
3114
|
"model-value": e.url,
|
|
2881
3115
|
type: "url",
|
|
2882
3116
|
placeholder: h(o).social.urlPlaceholder,
|
|
@@ -2887,55 +3121,55 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
2887
3121
|
"onUpdate:modelValue"
|
|
2888
3122
|
])]),
|
|
2889
3123
|
_: 2
|
|
2890
|
-
}, 1032, ["path", "label"])]))), 128)),
|
|
2891
|
-
class: g(h(
|
|
3124
|
+
}, 1032, ["path", "label"])]))), 128)), b("button", {
|
|
3125
|
+
class: g(h(at)),
|
|
2892
3126
|
onClick: l
|
|
2893
|
-
}, [
|
|
3127
|
+
}, [k(h(U), {
|
|
2894
3128
|
size: 14,
|
|
2895
3129
|
"stroke-width": 2
|
|
2896
|
-
}), m(" " +
|
|
2897
|
-
|
|
3130
|
+
}), m(" " + x(h(o).social.addIcon), 1)], 2)])]),
|
|
3131
|
+
k(Y, {
|
|
2898
3132
|
label: h(o).social.style,
|
|
2899
3133
|
class: "tpl:mb-3.5",
|
|
2900
3134
|
path: "iconStyle"
|
|
2901
3135
|
}, {
|
|
2902
|
-
default: a(() => [
|
|
2903
|
-
class: g(h(
|
|
3136
|
+
default: a(() => [b("select", {
|
|
3137
|
+
class: g(h(q)),
|
|
2904
3138
|
value: e.block.iconStyle,
|
|
2905
3139
|
onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
|
|
2906
3140
|
}, [
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
], 42,
|
|
3141
|
+
b("option", sa, x(h(o).social.styleSolid), 1),
|
|
3142
|
+
b("option", ca, x(h(o).social.styleOutlined), 1),
|
|
3143
|
+
b("option", la, x(h(o).social.styleRounded), 1),
|
|
3144
|
+
b("option", ua, x(h(o).social.styleSquare), 1),
|
|
3145
|
+
b("option", da, x(h(o).social.styleCircle), 1),
|
|
3146
|
+
b("option", fa, x(h(o).social.stylePlain), 1)
|
|
3147
|
+
], 42, oa)]),
|
|
2914
3148
|
_: 1
|
|
2915
3149
|
}, 8, ["label"]),
|
|
2916
|
-
|
|
3150
|
+
k(Y, {
|
|
2917
3151
|
label: h(o).social.color,
|
|
2918
3152
|
class: "tpl:mb-3.5",
|
|
2919
3153
|
path: "iconTone"
|
|
2920
3154
|
}, {
|
|
2921
|
-
default: a(() => [
|
|
3155
|
+
default: a(() => [b("select", {
|
|
2922
3156
|
"data-testid": "social-tone-select",
|
|
2923
|
-
class: g(h(
|
|
3157
|
+
class: g(h(q)),
|
|
2924
3158
|
value: e.block.iconTone ?? "brand",
|
|
2925
3159
|
onChange: n[1] ||= (e) => s("iconTone", e.target.value)
|
|
2926
3160
|
}, [
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
], 42,
|
|
3161
|
+
b("option", ma, x(h(o).social.colorBrand), 1),
|
|
3162
|
+
b("option", ha, x(h(o).social.colorDark), 1),
|
|
3163
|
+
b("option", ga, x(h(o).social.colorLight), 1)
|
|
3164
|
+
], 42, pa)]),
|
|
2931
3165
|
_: 1
|
|
2932
3166
|
}, 8, ["label"]),
|
|
2933
|
-
|
|
3167
|
+
k(Y, {
|
|
2934
3168
|
label: h(o).social.size,
|
|
2935
3169
|
class: "tpl:mb-3.5",
|
|
2936
3170
|
path: "iconSize"
|
|
2937
3171
|
}, {
|
|
2938
|
-
default: a(() => [
|
|
3172
|
+
default: a(() => [k($, {
|
|
2939
3173
|
options: [
|
|
2940
3174
|
{
|
|
2941
3175
|
value: "small",
|
|
@@ -2955,42 +3189,42 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
2955
3189
|
}, null, 8, ["options", "model-value"])]),
|
|
2956
3190
|
_: 1
|
|
2957
3191
|
}, 8, ["label"]),
|
|
2958
|
-
|
|
3192
|
+
k(Y, {
|
|
2959
3193
|
label: h(o).social.spacing,
|
|
2960
3194
|
class: "tpl:mb-3.5",
|
|
2961
3195
|
path: "spacing"
|
|
2962
3196
|
}, {
|
|
2963
|
-
default: a(() => [
|
|
3197
|
+
default: a(() => [b("div", _a, [b("input", {
|
|
2964
3198
|
type: "number",
|
|
2965
|
-
class: g(h(
|
|
3199
|
+
class: g(h(K)),
|
|
2966
3200
|
value: e.block.spacing,
|
|
2967
3201
|
min: "0",
|
|
2968
3202
|
max: "50",
|
|
2969
3203
|
onInput: n[3] ||= (e) => s("spacing", Number(e.target.value))
|
|
2970
|
-
}, null, 42,
|
|
3204
|
+
}, null, 42, va), b("span", { class: g(h(G)) }, "px", 2)])]),
|
|
2971
3205
|
_: 1
|
|
2972
3206
|
}, 8, ["label"]),
|
|
2973
|
-
|
|
3207
|
+
k(Y, {
|
|
2974
3208
|
label: h(o).social.align,
|
|
2975
3209
|
class: "tpl:mb-3.5",
|
|
2976
3210
|
path: "align"
|
|
2977
3211
|
}, {
|
|
2978
|
-
default: a(() => [
|
|
3212
|
+
default: a(() => [k($, {
|
|
2979
3213
|
options: [
|
|
2980
3214
|
{
|
|
2981
3215
|
value: "left",
|
|
2982
3216
|
label: h(o).title.alignLeft,
|
|
2983
|
-
icon: h(
|
|
3217
|
+
icon: h(Pe)
|
|
2984
3218
|
},
|
|
2985
3219
|
{
|
|
2986
3220
|
value: "center",
|
|
2987
3221
|
label: h(o).title.alignCenter,
|
|
2988
|
-
icon: h(
|
|
3222
|
+
icon: h(ze)
|
|
2989
3223
|
},
|
|
2990
3224
|
{
|
|
2991
3225
|
value: "right",
|
|
2992
3226
|
label: h(o).title.alignRight,
|
|
2993
|
-
icon: h(
|
|
3227
|
+
icon: h(Oe)
|
|
2994
3228
|
}
|
|
2995
3229
|
],
|
|
2996
3230
|
"model-value": e.block.align,
|
|
@@ -3000,36 +3234,36 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
3000
3234
|
}, 8, ["label"])
|
|
3001
3235
|
], 64));
|
|
3002
3236
|
}
|
|
3003
|
-
}),
|
|
3237
|
+
}), ba = { class: "tpl:flex tpl:items-stretch" }, xa = ["value"], Sa = ["value"], Ca = /* @__PURE__ */ r({
|
|
3004
3238
|
__name: "SpacerToolbar",
|
|
3005
3239
|
props: { block: {} },
|
|
3006
3240
|
emits: ["update"],
|
|
3007
3241
|
setup(e, { emit: t }) {
|
|
3008
|
-
let n = t, { t: r } =
|
|
3009
|
-
return (t, o) => (i(), v(
|
|
3242
|
+
let n = t, { t: r } = W();
|
|
3243
|
+
return (t, o) => (i(), v(Y, {
|
|
3010
3244
|
label: h(r).spacer.height,
|
|
3011
3245
|
class: "tpl:mb-3.5",
|
|
3012
3246
|
path: "height"
|
|
3013
3247
|
}, {
|
|
3014
|
-
default: a(() => [
|
|
3248
|
+
default: a(() => [b("div", ba, [b("input", {
|
|
3015
3249
|
type: "number",
|
|
3016
|
-
class: g(h(
|
|
3250
|
+
class: g(h(K)),
|
|
3017
3251
|
value: e.block.height,
|
|
3018
3252
|
min: "10",
|
|
3019
3253
|
max: "100",
|
|
3020
3254
|
onInput: o[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
3021
|
-
}, null, 42,
|
|
3255
|
+
}, null, 42, xa), b("span", { class: g(h(G)) }, "px", 2)]), b("input", {
|
|
3022
3256
|
type: "range",
|
|
3023
3257
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
3024
3258
|
value: e.block.height,
|
|
3025
3259
|
min: "10",
|
|
3026
3260
|
max: "100",
|
|
3027
3261
|
onInput: o[1] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
3028
|
-
}, null, 40,
|
|
3262
|
+
}, null, 40, Sa)]),
|
|
3029
3263
|
_: 1
|
|
3030
3264
|
}, 8, ["label"]));
|
|
3031
3265
|
}
|
|
3032
|
-
}),
|
|
3266
|
+
}), wa = { class: "tpl:mb-3.5" }, Ta = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Ea = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Da = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Oa = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ka = ["disabled"], Aa = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ja = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Ma = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Na = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Pa = ["disabled"], Fa = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ia = { class: "tpl:flex tpl:items-stretch" }, La = ["value"], Ra = { class: "tpl:flex tpl:items-stretch" }, za = ["value"], Ba = ["value"], Va = { value: "" }, Ha = ["value"], Ua = { class: "tpl:flex tpl:items-stretch" }, Wa = ["value"], Ga = /* @__PURE__ */ r({
|
|
3033
3267
|
__name: "TableToolbar",
|
|
3034
3268
|
props: {
|
|
3035
3269
|
block: {},
|
|
@@ -3037,7 +3271,7 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
3037
3271
|
},
|
|
3038
3272
|
emits: ["update"],
|
|
3039
3273
|
setup(e, { emit: t }) {
|
|
3040
|
-
let n = e, r = t, { t: o } =
|
|
3274
|
+
let n = e, r = t, { t: o } = W(), s = C(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
3041
3275
|
function l(e, t) {
|
|
3042
3276
|
r("update", { [e]: t });
|
|
3043
3277
|
}
|
|
@@ -3071,48 +3305,48 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
3071
3305
|
}));
|
|
3072
3306
|
r("update", { rows: t });
|
|
3073
3307
|
}
|
|
3074
|
-
return (t, n) => (i(), p(
|
|
3075
|
-
|
|
3076
|
-
|
|
3308
|
+
return (t, n) => (i(), p(D, null, [
|
|
3309
|
+
b("div", wa, [b("label", { class: g(h(J)) }, x(h(o).table.dimensions), 3), b("div", Ta, [b("div", Ea, [b("span", Da, x(h(o).table.rows), 1), b("div", Oa, [
|
|
3310
|
+
b("button", {
|
|
3077
3311
|
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",
|
|
3078
3312
|
disabled: e.block.rows.length <= 1,
|
|
3079
3313
|
onClick: n[0] ||= (t) => d(e.block.rows[e.block.rows.length - 1].id)
|
|
3080
|
-
}, [
|
|
3314
|
+
}, [k(h(je), {
|
|
3081
3315
|
size: 12,
|
|
3082
3316
|
"stroke-width": 2
|
|
3083
|
-
})], 8,
|
|
3084
|
-
|
|
3085
|
-
|
|
3317
|
+
})], 8, ka),
|
|
3318
|
+
b("span", Aa, x(e.block.rows.length), 1),
|
|
3319
|
+
b("button", {
|
|
3086
3320
|
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)]",
|
|
3087
3321
|
onClick: u
|
|
3088
|
-
}, [
|
|
3322
|
+
}, [k(h(U), {
|
|
3089
3323
|
size: 12,
|
|
3090
3324
|
"stroke-width": 2
|
|
3091
3325
|
})])
|
|
3092
|
-
])]),
|
|
3093
|
-
|
|
3326
|
+
])]), b("div", ja, [b("span", Ma, x(h(o).table.columns), 1), b("div", Na, [
|
|
3327
|
+
b("button", {
|
|
3094
3328
|
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",
|
|
3095
3329
|
disabled: s.value <= 1,
|
|
3096
3330
|
onClick: n[1] ||= (e) => m(s.value - 1)
|
|
3097
|
-
}, [
|
|
3331
|
+
}, [k(h(je), {
|
|
3098
3332
|
size: 12,
|
|
3099
3333
|
"stroke-width": 2
|
|
3100
|
-
})], 8,
|
|
3101
|
-
|
|
3102
|
-
|
|
3334
|
+
})], 8, Pa),
|
|
3335
|
+
b("span", Fa, x(s.value), 1),
|
|
3336
|
+
b("button", {
|
|
3103
3337
|
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)]",
|
|
3104
3338
|
onClick: f
|
|
3105
|
-
}, [
|
|
3339
|
+
}, [k(h(U), {
|
|
3106
3340
|
size: 12,
|
|
3107
3341
|
"stroke-width": 2
|
|
3108
3342
|
})])
|
|
3109
3343
|
])])])]),
|
|
3110
|
-
|
|
3344
|
+
k(Y, {
|
|
3111
3345
|
class: "tpl:mb-3.5",
|
|
3112
3346
|
path: "hasHeaderRow",
|
|
3113
3347
|
label: h(o).table.hasHeaderRow
|
|
3114
3348
|
}, {
|
|
3115
|
-
"label-actions": a(({ controlId: t }) => [
|
|
3349
|
+
"label-actions": a(({ controlId: t }) => [k(Z, {
|
|
3116
3350
|
"control-id": t,
|
|
3117
3351
|
"hide-label": "",
|
|
3118
3352
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -3126,15 +3360,15 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
3126
3360
|
])]),
|
|
3127
3361
|
_: 1
|
|
3128
3362
|
}, 8, ["label"]),
|
|
3129
|
-
e.block.hasHeaderRow ? (i(), v(
|
|
3363
|
+
e.block.hasHeaderRow ? (i(), v(Y, {
|
|
3130
3364
|
key: 0,
|
|
3131
3365
|
label: h(o).table.headerBackgroundColor,
|
|
3132
3366
|
class: "tpl:mb-3.5",
|
|
3133
3367
|
path: "headerBackgroundColor"
|
|
3134
3368
|
}, {
|
|
3135
|
-
default: a(() => [
|
|
3369
|
+
default: a(() => [k(X, {
|
|
3136
3370
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
3137
|
-
"seed-color": h(
|
|
3371
|
+
"seed-color": h(ot),
|
|
3138
3372
|
placeholder: h(o).table.noHeaderBg,
|
|
3139
3373
|
"onUpdate:modelValue": n[3] ||= (e) => l("headerBackgroundColor", e || null)
|
|
3140
3374
|
}, null, 8, [
|
|
@@ -3144,109 +3378,109 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
3144
3378
|
])]),
|
|
3145
3379
|
_: 1
|
|
3146
3380
|
}, 8, ["label"])) : _("", !0),
|
|
3147
|
-
|
|
3381
|
+
k(Y, {
|
|
3148
3382
|
label: h(o).table.borderColor,
|
|
3149
3383
|
class: "tpl:mb-3.5",
|
|
3150
3384
|
path: "borderColor"
|
|
3151
3385
|
}, {
|
|
3152
|
-
default: a(() => [
|
|
3386
|
+
default: a(() => [k(X, {
|
|
3153
3387
|
"model-value": e.block.borderColor,
|
|
3154
3388
|
"onUpdate:modelValue": n[4] ||= (e) => l("borderColor", e)
|
|
3155
3389
|
}, null, 8, ["model-value"])]),
|
|
3156
3390
|
_: 1
|
|
3157
3391
|
}, 8, ["label"]),
|
|
3158
|
-
|
|
3392
|
+
k(Y, {
|
|
3159
3393
|
label: h(o).table.borderWidth,
|
|
3160
3394
|
class: "tpl:mb-3.5",
|
|
3161
3395
|
path: "borderWidth"
|
|
3162
3396
|
}, {
|
|
3163
|
-
default: a(() => [
|
|
3397
|
+
default: a(() => [b("div", Ia, [b("input", {
|
|
3164
3398
|
type: "number",
|
|
3165
|
-
class: g(h(
|
|
3399
|
+
class: g(h(K)),
|
|
3166
3400
|
value: e.block.borderWidth,
|
|
3167
3401
|
min: "0",
|
|
3168
3402
|
max: "10",
|
|
3169
3403
|
onInput: n[5] ||= (e) => l("borderWidth", Number(e.target.value))
|
|
3170
|
-
}, null, 42,
|
|
3404
|
+
}, null, 42, La), b("span", { class: g(h(G)) }, "px", 2)])]),
|
|
3171
3405
|
_: 1
|
|
3172
3406
|
}, 8, ["label"]),
|
|
3173
|
-
|
|
3407
|
+
k(Y, {
|
|
3174
3408
|
label: h(o).table.cellPadding,
|
|
3175
3409
|
class: "tpl:mb-3.5",
|
|
3176
3410
|
path: "cellPadding"
|
|
3177
3411
|
}, {
|
|
3178
|
-
default: a(() => [
|
|
3412
|
+
default: a(() => [b("div", Ra, [b("input", {
|
|
3179
3413
|
type: "number",
|
|
3180
|
-
class: g(h(
|
|
3414
|
+
class: g(h(K)),
|
|
3181
3415
|
value: e.block.cellPadding,
|
|
3182
3416
|
min: "0",
|
|
3183
3417
|
max: "30",
|
|
3184
3418
|
onInput: n[6] ||= (e) => l("cellPadding", Number(e.target.value))
|
|
3185
|
-
}, null, 42,
|
|
3419
|
+
}, null, 42, za), b("span", { class: g(h(G)) }, "px", 2)])]),
|
|
3186
3420
|
_: 1
|
|
3187
3421
|
}, 8, ["label"]),
|
|
3188
|
-
|
|
3422
|
+
k(Y, {
|
|
3189
3423
|
label: h(o).table.fontFamily,
|
|
3190
3424
|
class: "tpl:mb-3.5",
|
|
3191
3425
|
path: "fontFamily"
|
|
3192
3426
|
}, {
|
|
3193
|
-
default: a(() => [
|
|
3194
|
-
class: g(h(
|
|
3195
|
-
value: h(
|
|
3427
|
+
default: a(() => [b("select", {
|
|
3428
|
+
class: g(h(q)),
|
|
3429
|
+
value: h(ht)(e.block.fontFamily),
|
|
3196
3430
|
onChange: n[7] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
3197
|
-
}, [
|
|
3431
|
+
}, [b("option", Va, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
3198
3432
|
key: e.value,
|
|
3199
3433
|
value: e.value
|
|
3200
|
-
},
|
|
3434
|
+
}, x(e.label), 9, Ha))), 128))], 42, Ba)]),
|
|
3201
3435
|
_: 1
|
|
3202
3436
|
}, 8, ["label"]),
|
|
3203
|
-
|
|
3437
|
+
k(Y, {
|
|
3204
3438
|
label: h(o).table.fontSize,
|
|
3205
3439
|
class: "tpl:mb-3.5",
|
|
3206
3440
|
path: "fontSize"
|
|
3207
3441
|
}, {
|
|
3208
|
-
default: a(() => [
|
|
3442
|
+
default: a(() => [b("div", Ua, [b("input", {
|
|
3209
3443
|
type: "number",
|
|
3210
|
-
class: g(h(
|
|
3444
|
+
class: g(h(K)),
|
|
3211
3445
|
value: e.block.fontSize,
|
|
3212
3446
|
min: "10",
|
|
3213
3447
|
max: "32",
|
|
3214
3448
|
onInput: n[8] ||= (e) => l("fontSize", Number(e.target.value))
|
|
3215
|
-
}, null, 42,
|
|
3449
|
+
}, null, 42, Wa), b("span", { class: g(h(G)) }, "px", 2)])]),
|
|
3216
3450
|
_: 1
|
|
3217
3451
|
}, 8, ["label"]),
|
|
3218
|
-
|
|
3452
|
+
k(Y, {
|
|
3219
3453
|
label: h(o).table.color,
|
|
3220
3454
|
class: "tpl:mb-3.5",
|
|
3221
3455
|
path: "color"
|
|
3222
3456
|
}, {
|
|
3223
|
-
default: a(() => [
|
|
3457
|
+
default: a(() => [k(X, {
|
|
3224
3458
|
"model-value": e.block.color ?? "",
|
|
3225
3459
|
"onUpdate:modelValue": n[9] ||= (e) => l("color", e || void 0)
|
|
3226
3460
|
}, null, 8, ["model-value"])]),
|
|
3227
3461
|
_: 1
|
|
3228
3462
|
}, 8, ["label"]),
|
|
3229
|
-
|
|
3463
|
+
k(Y, {
|
|
3230
3464
|
label: h(o).table.textAlign,
|
|
3231
3465
|
class: "tpl:mb-3.5",
|
|
3232
3466
|
path: "textAlign"
|
|
3233
3467
|
}, {
|
|
3234
|
-
default: a(() => [
|
|
3468
|
+
default: a(() => [k($, {
|
|
3235
3469
|
options: [
|
|
3236
3470
|
{
|
|
3237
3471
|
value: "left",
|
|
3238
3472
|
label: h(o).title.alignLeft,
|
|
3239
|
-
icon: h(
|
|
3473
|
+
icon: h(Pe)
|
|
3240
3474
|
},
|
|
3241
3475
|
{
|
|
3242
3476
|
value: "center",
|
|
3243
3477
|
label: h(o).title.alignCenter,
|
|
3244
|
-
icon: h(
|
|
3478
|
+
icon: h(ze)
|
|
3245
3479
|
},
|
|
3246
3480
|
{
|
|
3247
3481
|
value: "right",
|
|
3248
3482
|
label: h(o).title.alignRight,
|
|
3249
|
-
icon: h(
|
|
3483
|
+
icon: h(Oe)
|
|
3250
3484
|
}
|
|
3251
3485
|
],
|
|
3252
3486
|
"model-value": e.block.textAlign,
|
|
@@ -3256,7 +3490,7 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
3256
3490
|
}, 8, ["label"])
|
|
3257
3491
|
], 64));
|
|
3258
3492
|
}
|
|
3259
|
-
}),
|
|
3493
|
+
}), Ka = ["value"], qa = { value: 1 }, Ja = { value: 2 }, Ya = { value: 3 }, Xa = { value: 4 }, Za = ["value"], Qa = { value: "" }, $a = ["value"], eo = /* @__PURE__ */ r({
|
|
3260
3494
|
__name: "TitleToolbar",
|
|
3261
3495
|
props: {
|
|
3262
3496
|
block: {},
|
|
@@ -3264,75 +3498,75 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
3264
3498
|
},
|
|
3265
3499
|
emits: ["update"],
|
|
3266
3500
|
setup(e, { emit: t }) {
|
|
3267
|
-
let n = t, { t: r } =
|
|
3501
|
+
let n = t, { t: r } = W();
|
|
3268
3502
|
function o(e, t) {
|
|
3269
3503
|
n("update", { [e]: t });
|
|
3270
3504
|
}
|
|
3271
|
-
return (t, n) => (i(), p(
|
|
3272
|
-
|
|
3505
|
+
return (t, n) => (i(), p(D, null, [
|
|
3506
|
+
k(Y, {
|
|
3273
3507
|
label: h(r).title.level,
|
|
3274
3508
|
class: "tpl:mb-3.5",
|
|
3275
3509
|
path: "level"
|
|
3276
3510
|
}, {
|
|
3277
|
-
default: a(() => [
|
|
3278
|
-
class: g(h(
|
|
3511
|
+
default: a(() => [b("select", {
|
|
3512
|
+
class: g(h(q)),
|
|
3279
3513
|
value: e.block.level,
|
|
3280
3514
|
onChange: n[0] ||= (e) => o("level", Number(e.target.value))
|
|
3281
3515
|
}, [
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
], 42,
|
|
3516
|
+
b("option", qa, x(h(r).title.heading1), 1),
|
|
3517
|
+
b("option", Ja, x(h(r).title.heading2), 1),
|
|
3518
|
+
b("option", Ya, x(h(r).title.heading3), 1),
|
|
3519
|
+
b("option", Xa, x(h(r).title.heading4), 1)
|
|
3520
|
+
], 42, Ka)]),
|
|
3287
3521
|
_: 1
|
|
3288
3522
|
}, 8, ["label"]),
|
|
3289
|
-
|
|
3523
|
+
k(Y, {
|
|
3290
3524
|
label: h(r).title.fontFamily,
|
|
3291
3525
|
class: "tpl:mb-3.5",
|
|
3292
3526
|
path: "fontFamily"
|
|
3293
3527
|
}, {
|
|
3294
|
-
default: a(() => [
|
|
3295
|
-
class: g(h(
|
|
3296
|
-
value: h(
|
|
3528
|
+
default: a(() => [b("select", {
|
|
3529
|
+
class: g(h(q)),
|
|
3530
|
+
value: h(ht)(e.block.fontFamily),
|
|
3297
3531
|
onChange: n[1] ||= (e) => o("fontFamily", e.target.value || void 0)
|
|
3298
|
-
}, [
|
|
3532
|
+
}, [b("option", Qa, x(h(r).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
3299
3533
|
key: e.value,
|
|
3300
3534
|
value: e.value
|
|
3301
|
-
},
|
|
3535
|
+
}, x(e.label), 9, $a))), 128))], 42, Za)]),
|
|
3302
3536
|
_: 1
|
|
3303
3537
|
}, 8, ["label"]),
|
|
3304
|
-
|
|
3538
|
+
k(Y, {
|
|
3305
3539
|
label: h(r).title.color,
|
|
3306
3540
|
class: "tpl:mb-3.5",
|
|
3307
3541
|
path: "color"
|
|
3308
3542
|
}, {
|
|
3309
|
-
default: a(() => [
|
|
3543
|
+
default: a(() => [k(X, {
|
|
3310
3544
|
"model-value": e.block.color ?? "",
|
|
3311
3545
|
"onUpdate:modelValue": n[2] ||= (e) => o("color", e || void 0)
|
|
3312
3546
|
}, null, 8, ["model-value"])]),
|
|
3313
3547
|
_: 1
|
|
3314
3548
|
}, 8, ["label"]),
|
|
3315
|
-
|
|
3549
|
+
k(Y, {
|
|
3316
3550
|
label: h(r).title.align,
|
|
3317
3551
|
class: "tpl:mb-3.5",
|
|
3318
3552
|
path: "textAlign"
|
|
3319
3553
|
}, {
|
|
3320
|
-
default: a(() => [
|
|
3554
|
+
default: a(() => [k($, {
|
|
3321
3555
|
options: [
|
|
3322
3556
|
{
|
|
3323
3557
|
value: "left",
|
|
3324
3558
|
label: h(r).title.alignLeft,
|
|
3325
|
-
icon: h(
|
|
3559
|
+
icon: h(Pe)
|
|
3326
3560
|
},
|
|
3327
3561
|
{
|
|
3328
3562
|
value: "center",
|
|
3329
3563
|
label: h(r).title.alignCenter,
|
|
3330
|
-
icon: h(
|
|
3564
|
+
icon: h(ze)
|
|
3331
3565
|
},
|
|
3332
3566
|
{
|
|
3333
3567
|
value: "right",
|
|
3334
3568
|
label: h(r).title.alignRight,
|
|
3335
|
-
icon: h(
|
|
3569
|
+
icon: h(Oe)
|
|
3336
3570
|
}
|
|
3337
3571
|
],
|
|
3338
3572
|
"model-value": e.block.textAlign,
|
|
@@ -3342,78 +3576,78 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
3342
3576
|
}, 8, ["label"])
|
|
3343
3577
|
], 64));
|
|
3344
3578
|
}
|
|
3345
|
-
}),
|
|
3579
|
+
}), to = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, no = [
|
|
3346
3580
|
"value",
|
|
3347
3581
|
"placeholder",
|
|
3348
3582
|
"title"
|
|
3349
|
-
],
|
|
3583
|
+
], ro = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, io = ["value"], ao = { value: "full" }, oo = { value: "custom" }, so = {
|
|
3350
3584
|
key: 0,
|
|
3351
3585
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
3352
|
-
},
|
|
3586
|
+
}, co = ["value"], lo = ["value"], uo = { value: "auto" }, fo = { value: "custom" }, po = {
|
|
3353
3587
|
key: 0,
|
|
3354
3588
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
3355
|
-
},
|
|
3589
|
+
}, mo = ["value"], ho = 350, go = 200, _o = /* @__PURE__ */ r({
|
|
3356
3590
|
__name: "VideoToolbar",
|
|
3357
3591
|
props: { block: {} },
|
|
3358
3592
|
emits: ["update"],
|
|
3359
3593
|
setup(e, { emit: t }) {
|
|
3360
|
-
let n = e, r = t, { t: o } =
|
|
3594
|
+
let n = e, r = t, { t: o } = W(), s = l(Ge, null), c = l(Be, ee.liquid), u = he(), d = [
|
|
3361
3595
|
300,
|
|
3362
3596
|
400,
|
|
3363
3597
|
500
|
|
3364
|
-
], f =
|
|
3598
|
+
], f = C(() => !!s), y = C(() => N(n.block.url, c)), S = C(() => {
|
|
3365
3599
|
let e = n.block.width;
|
|
3366
3600
|
return e === "full" ? "full" : d.includes(e) ? String(e) : "custom";
|
|
3367
|
-
}), w =
|
|
3368
|
-
|
|
3601
|
+
}), w = C(() => typeof n.block.height == "number" ? "custom" : "auto"), T = E(!1), { start: O } = ct(() => {
|
|
3602
|
+
T.value = !1;
|
|
3369
3603
|
}, 1e3, { immediate: !1 });
|
|
3370
|
-
function
|
|
3604
|
+
function A(e, t) {
|
|
3371
3605
|
r("update", { [e]: t });
|
|
3372
3606
|
}
|
|
3373
|
-
function
|
|
3607
|
+
function j(e) {
|
|
3374
3608
|
if (e === "custom") {
|
|
3375
3609
|
let e = n.block.width;
|
|
3376
|
-
(typeof e != "number" || d.includes(e)) &&
|
|
3377
|
-
} else
|
|
3610
|
+
(typeof e != "number" || d.includes(e)) && A("width", ho);
|
|
3611
|
+
} else A("width", e === "full" ? "full" : Number(e));
|
|
3378
3612
|
}
|
|
3379
|
-
function
|
|
3613
|
+
function M(e) {
|
|
3380
3614
|
let t = Number(e);
|
|
3381
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
3615
|
+
!Number.isFinite(t) || t <= 0 || A("width", t);
|
|
3382
3616
|
}
|
|
3383
|
-
function
|
|
3384
|
-
|
|
3617
|
+
function P(e) {
|
|
3618
|
+
A("height", e === "custom" ? go : void 0);
|
|
3385
3619
|
}
|
|
3386
|
-
function
|
|
3620
|
+
function F(e) {
|
|
3387
3621
|
let t = Number(e);
|
|
3388
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
3622
|
+
!Number.isFinite(t) || t <= 0 || A("height", t);
|
|
3389
3623
|
}
|
|
3390
|
-
async function
|
|
3624
|
+
async function te() {
|
|
3391
3625
|
let e = await s?.({ accept: ["images"] });
|
|
3392
|
-
u.alive && e && (
|
|
3626
|
+
u.alive && e && (A("thumbnailUrl", e.url), T.value = !0, O());
|
|
3393
3627
|
}
|
|
3394
|
-
return (t, n) => (i(), p(
|
|
3395
|
-
|
|
3628
|
+
return (t, n) => (i(), p(D, null, [
|
|
3629
|
+
k(Y, {
|
|
3396
3630
|
label: h(o).video.videoUrl,
|
|
3397
3631
|
class: "tpl:mb-3.5",
|
|
3398
3632
|
path: "url"
|
|
3399
3633
|
}, {
|
|
3400
|
-
default: a(() => [
|
|
3634
|
+
default: a(() => [k(Q, {
|
|
3401
3635
|
"model-value": e.block.url,
|
|
3402
3636
|
type: "url",
|
|
3403
3637
|
placeholder: h(o).video.videoUrlPlaceholder,
|
|
3404
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
3405
|
-
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(
|
|
3638
|
+
"onUpdate:modelValue": n[0] ||= (e) => A("url", e)
|
|
3639
|
+
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(Y, {
|
|
3406
3640
|
key: 0,
|
|
3407
3641
|
path: "openInNewTab",
|
|
3408
3642
|
label: h(o).video.openInNewTab
|
|
3409
3643
|
}, {
|
|
3410
|
-
"label-actions": a(({ controlId: t }) => [
|
|
3644
|
+
"label-actions": a(({ controlId: t }) => [k(Z, {
|
|
3411
3645
|
"control-id": t,
|
|
3412
3646
|
"hide-label": "",
|
|
3413
3647
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
3414
3648
|
"model-value": e.block.openInNewTab ?? !1,
|
|
3415
3649
|
label: h(o).video.openInNewTab,
|
|
3416
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
3650
|
+
"onUpdate:modelValue": n[1] ||= (e) => A("openInNewTab", e)
|
|
3417
3651
|
}, null, 8, [
|
|
3418
3652
|
"control-id",
|
|
3419
3653
|
"model-value",
|
|
@@ -3423,33 +3657,33 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
3423
3657
|
}, 8, ["label"])) : _("", !0)]),
|
|
3424
3658
|
_: 1
|
|
3425
3659
|
}, 8, ["label"]),
|
|
3426
|
-
|
|
3660
|
+
y.value ? (i(), v(Y, {
|
|
3427
3661
|
key: 0,
|
|
3428
3662
|
class: "tpl:mb-3.5",
|
|
3429
3663
|
path: "placeholderUrl"
|
|
3430
3664
|
}, {
|
|
3431
|
-
label: a(() => [m(
|
|
3432
|
-
default: a(() => [
|
|
3665
|
+
label: a(() => [m(x(h(o).video.placeholderUrl) + " ", 1), b("span", to, x(h(o).video.optional), 1)]),
|
|
3666
|
+
default: a(() => [b("input", {
|
|
3433
3667
|
type: "url",
|
|
3434
|
-
class: g(h(
|
|
3668
|
+
class: g(h(q)),
|
|
3435
3669
|
value: e.block.placeholderUrl || "",
|
|
3436
3670
|
placeholder: h(o).video.placeholderUrlPlaceholder,
|
|
3437
3671
|
title: h(o).video.placeholderUrlTooltip,
|
|
3438
|
-
onInput: n[2] ||= (e) =>
|
|
3439
|
-
}, null, 42,
|
|
3672
|
+
onInput: n[2] ||= (e) => A("placeholderUrl", e.target.value)
|
|
3673
|
+
}, null, 42, no)]),
|
|
3440
3674
|
_: 1
|
|
3441
3675
|
})) : _("", !0),
|
|
3442
|
-
|
|
3676
|
+
k(Y, {
|
|
3443
3677
|
class: "tpl:mb-3.5",
|
|
3444
3678
|
path: "thumbnailUrl"
|
|
3445
3679
|
}, {
|
|
3446
|
-
label: a(() => [m(
|
|
3447
|
-
default: a(() => [
|
|
3680
|
+
label: a(() => [m(x(h(o).video.customThumbnail) + " ", 1), b("span", ro, x(h(o).video.optional), 1)]),
|
|
3681
|
+
default: a(() => [k(Q, {
|
|
3448
3682
|
"model-value": e.block.thumbnailUrl,
|
|
3449
3683
|
type: "url",
|
|
3450
3684
|
placeholder: h(o).video.thumbnailPlaceholder,
|
|
3451
|
-
pulse:
|
|
3452
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
3685
|
+
pulse: T.value,
|
|
3686
|
+
"onUpdate:modelValue": n[3] ||= (e) => A("thumbnailUrl", e)
|
|
3453
3687
|
}, null, 8, [
|
|
3454
3688
|
"model-value",
|
|
3455
3689
|
"placeholder",
|
|
@@ -3462,78 +3696,78 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
3462
3696
|
color: "var(--tpl-primary)",
|
|
3463
3697
|
"background-color": "var(--tpl-bg)"
|
|
3464
3698
|
},
|
|
3465
|
-
onClick:
|
|
3466
|
-
}, [
|
|
3699
|
+
onClick: te
|
|
3700
|
+
}, [k(h(ke), {
|
|
3467
3701
|
size: 14,
|
|
3468
3702
|
"stroke-width": 1.5
|
|
3469
|
-
}), m(" " +
|
|
3703
|
+
}), m(" " + x(h(o).image.browseMedia), 1)])) : _("", !0)]),
|
|
3470
3704
|
_: 1
|
|
3471
3705
|
}),
|
|
3472
|
-
|
|
3706
|
+
k(Y, {
|
|
3473
3707
|
label: h(o).video.altText,
|
|
3474
3708
|
class: "tpl:mb-3.5",
|
|
3475
3709
|
path: "alt"
|
|
3476
3710
|
}, {
|
|
3477
|
-
default: a(() => [
|
|
3711
|
+
default: a(() => [k(Q, {
|
|
3478
3712
|
"model-value": e.block.alt,
|
|
3479
3713
|
type: "text",
|
|
3480
3714
|
placeholder: h(o).video.altTextPlaceholder,
|
|
3481
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
3715
|
+
"onUpdate:modelValue": n[4] ||= (e) => A("alt", e)
|
|
3482
3716
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
3483
3717
|
_: 1
|
|
3484
3718
|
}, 8, ["label"]),
|
|
3485
|
-
|
|
3719
|
+
k(Y, {
|
|
3486
3720
|
label: h(o).video.width,
|
|
3487
3721
|
class: "tpl:mb-3.5",
|
|
3488
3722
|
path: "width"
|
|
3489
3723
|
}, {
|
|
3490
|
-
default: a(() => [
|
|
3491
|
-
class: g(h(
|
|
3724
|
+
default: a(() => [b("select", {
|
|
3725
|
+
class: g(h(q)),
|
|
3492
3726
|
"data-testid": "video-width-mode",
|
|
3493
|
-
value:
|
|
3494
|
-
onChange: n[5] ||= (e) =>
|
|
3727
|
+
value: S.value,
|
|
3728
|
+
onChange: n[5] ||= (e) => j(e.target.value)
|
|
3495
3729
|
}, [
|
|
3496
|
-
|
|
3497
|
-
n[10] ||=
|
|
3498
|
-
n[11] ||=
|
|
3499
|
-
n[12] ||=
|
|
3500
|
-
|
|
3501
|
-
], 42,
|
|
3730
|
+
b("option", ao, x(h(o).video.fullWidth), 1),
|
|
3731
|
+
n[10] ||= b("option", { value: "300" }, "300px", -1),
|
|
3732
|
+
n[11] ||= b("option", { value: "400" }, "400px", -1),
|
|
3733
|
+
n[12] ||= b("option", { value: "500" }, "500px", -1),
|
|
3734
|
+
b("option", oo, x(h(o).video.widthCustom), 1)
|
|
3735
|
+
], 42, io), S.value === "custom" ? (i(), p("div", so, [b("input", {
|
|
3502
3736
|
type: "number",
|
|
3503
3737
|
"data-testid": "video-width-input",
|
|
3504
|
-
class: g(h(
|
|
3738
|
+
class: g(h(K)),
|
|
3505
3739
|
value: e.block.width,
|
|
3506
3740
|
min: "20",
|
|
3507
|
-
onInput: n[6] ||= (e) =>
|
|
3508
|
-
}, null, 42,
|
|
3741
|
+
onInput: n[6] ||= (e) => M(e.target.value)
|
|
3742
|
+
}, null, 42, co), b("span", { class: g(h(G)) }, "px", 2)])) : _("", !0)]),
|
|
3509
3743
|
_: 1
|
|
3510
3744
|
}, 8, ["label"]),
|
|
3511
|
-
|
|
3745
|
+
k(Y, {
|
|
3512
3746
|
label: h(o).video.height,
|
|
3513
3747
|
class: "tpl:mb-3.5",
|
|
3514
3748
|
path: "height"
|
|
3515
3749
|
}, {
|
|
3516
|
-
default: a(() => [
|
|
3517
|
-
class: g(h(
|
|
3750
|
+
default: a(() => [b("select", {
|
|
3751
|
+
class: g(h(q)),
|
|
3518
3752
|
"data-testid": "video-height-mode",
|
|
3519
3753
|
value: w.value,
|
|
3520
|
-
onChange: n[7] ||= (e) =>
|
|
3521
|
-
}, [
|
|
3754
|
+
onChange: n[7] ||= (e) => P(e.target.value)
|
|
3755
|
+
}, [b("option", uo, x(h(o).video.heightAuto), 1), b("option", fo, x(h(o).video.heightCustom), 1)], 42, lo), w.value === "custom" ? (i(), p("div", po, [b("input", {
|
|
3522
3756
|
type: "number",
|
|
3523
3757
|
"data-testid": "video-height-input",
|
|
3524
|
-
class: g(h(
|
|
3758
|
+
class: g(h(K)),
|
|
3525
3759
|
value: e.block.height,
|
|
3526
3760
|
min: "20",
|
|
3527
|
-
onInput: n[8] ||= (e) =>
|
|
3528
|
-
}, null, 42,
|
|
3761
|
+
onInput: n[8] ||= (e) => F(e.target.value)
|
|
3762
|
+
}, null, 42, mo), b("span", { class: g(h(G)) }, "px", 2)])) : _("", !0)]),
|
|
3529
3763
|
_: 1
|
|
3530
3764
|
}, 8, ["label"]),
|
|
3531
|
-
|
|
3765
|
+
k(Y, {
|
|
3532
3766
|
label: h(o).title.align,
|
|
3533
3767
|
class: "tpl:mb-3.5",
|
|
3534
3768
|
path: "align"
|
|
3535
3769
|
}, {
|
|
3536
|
-
default: a(() => [
|
|
3770
|
+
default: a(() => [k($, {
|
|
3537
3771
|
options: [
|
|
3538
3772
|
{
|
|
3539
3773
|
value: "left",
|
|
@@ -3549,13 +3783,13 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
3549
3783
|
}
|
|
3550
3784
|
],
|
|
3551
3785
|
"model-value": e.block.align,
|
|
3552
|
-
"onUpdate:modelValue": n[9] ||= (e) =>
|
|
3786
|
+
"onUpdate:modelValue": n[9] ||= (e) => A("align", e)
|
|
3553
3787
|
}, null, 8, ["options", "model-value"])]),
|
|
3554
3788
|
_: 1
|
|
3555
3789
|
}, 8, ["label"])
|
|
3556
3790
|
], 64));
|
|
3557
3791
|
}
|
|
3558
|
-
}),
|
|
3792
|
+
}), vo = ["aria-label"], yo = ["disabled", "inert"], bo = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, xo = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, So = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Co = { class: "tpl:flex tpl:gap-1" }, wo = ["title"], To = ["title"], Eo = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Do = /*@__PURE__*/ r({
|
|
3559
3793
|
__name: "Toolbar",
|
|
3560
3794
|
props: { block: {} },
|
|
3561
3795
|
emits: [
|
|
@@ -3564,9 +3798,9 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
3564
3798
|
"duplicate"
|
|
3565
3799
|
],
|
|
3566
3800
|
setup(e, { emit: t }) {
|
|
3567
|
-
let r = f(() => import("./CountdownToolbar-
|
|
3801
|
+
let r = f(() => import("./CountdownToolbar-Ddj2erNm.js")), a = e, o = t, { t: s } = W(), c = ut(), u = Qe(Je, "Toolbar"), d = l(Ye, []), m = C(() => a.block.type), g = C(() => ce(a.block)), y = C(() => {
|
|
3568
3802
|
if (g.value) return d.find((e) => e.type === a.block.customType);
|
|
3569
|
-
}),
|
|
3803
|
+
}), S = C(() => g.value ? y.value?.name ?? a.block.customType : me(m.value, s)), w = C(() => mt(u.fonts.value, "fontFamily" in a.block ? a.block.fontFamily : void 0));
|
|
3570
3804
|
function T(e) {
|
|
3571
3805
|
c.value && o("update", e);
|
|
3572
3806
|
}
|
|
@@ -3574,86 +3808,86 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
3574
3808
|
"data-testid": "block-toolbar",
|
|
3575
3809
|
"aria-label": h(s).landmarks.blockToolbar,
|
|
3576
3810
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
3577
|
-
}, [
|
|
3811
|
+
}, [b("fieldset", {
|
|
3578
3812
|
disabled: !h(c),
|
|
3579
3813
|
inert: !h(c),
|
|
3580
3814
|
class: "tpl:contents"
|
|
3581
|
-
}, [
|
|
3815
|
+
}, [b("div", bo, [b("div", xo, [h(ft)[m.value] ? (i(), v(n(h(ft)[m.value]), {
|
|
3582
3816
|
key: 0,
|
|
3583
3817
|
size: 16,
|
|
3584
3818
|
"stroke-width": 1.5
|
|
3585
|
-
})) : g.value ? (i(), v(h(
|
|
3819
|
+
})) : g.value ? (i(), v(h(Te), {
|
|
3586
3820
|
key: 1,
|
|
3587
3821
|
size: 16,
|
|
3588
3822
|
"stroke-width": 1.5
|
|
3589
|
-
})) : _("", !0),
|
|
3823
|
+
})) : _("", !0), b("h3", So, x(S.value), 1)]), b("div", Co, [b("button", {
|
|
3590
3824
|
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)]",
|
|
3591
3825
|
title: h(s).toolbar.duplicate,
|
|
3592
3826
|
onClick: a[0] ||= (e) => o("duplicate")
|
|
3593
|
-
}, [
|
|
3827
|
+
}, [k(h(Se), {
|
|
3594
3828
|
size: 14,
|
|
3595
3829
|
"stroke-width": 2
|
|
3596
|
-
})], 8,
|
|
3830
|
+
})], 8, wo), b("button", {
|
|
3597
3831
|
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)]",
|
|
3598
3832
|
title: h(s).toolbar.delete,
|
|
3599
3833
|
onClick: a[1] ||= (e) => o("delete")
|
|
3600
|
-
}, [
|
|
3834
|
+
}, [k(h(Me), {
|
|
3601
3835
|
size: 14,
|
|
3602
3836
|
"stroke-width": 2
|
|
3603
|
-
})], 8,
|
|
3837
|
+
})], 8, To)])]), b("div", Eo, [g.value ? (i(), v(ti, {
|
|
3604
3838
|
key: 0,
|
|
3605
3839
|
block: e.block,
|
|
3606
3840
|
onUpdateFieldValues: a[2] ||= (e) => o("update", { fieldValues: e }),
|
|
3607
3841
|
onUpdateDataSourceFetched: a[3] ||= (e) => o("update", { dataSourceFetched: e })
|
|
3608
|
-
}, null, 8, ["block"])) : m.value === "section" ? (i(), v(
|
|
3842
|
+
}, null, 8, ["block"])) : m.value === "section" ? (i(), v($i, {
|
|
3609
3843
|
key: 1,
|
|
3610
3844
|
block: e.block,
|
|
3611
3845
|
onUpdate: T
|
|
3612
|
-
}, null, 8, ["block"])) : m.value === "title" ? (i(), v(
|
|
3846
|
+
}, null, 8, ["block"])) : m.value === "title" ? (i(), v(eo, {
|
|
3613
3847
|
key: 2,
|
|
3614
3848
|
block: e.block,
|
|
3615
3849
|
"font-families": w.value,
|
|
3616
3850
|
onUpdate: T
|
|
3617
|
-
}, null, 8, ["block", "font-families"])) : m.value === "paragraph" ? (i(), v(
|
|
3851
|
+
}, null, 8, ["block", "font-families"])) : m.value === "paragraph" ? (i(), v(Gi, {
|
|
3618
3852
|
key: 3,
|
|
3619
3853
|
block: e.block,
|
|
3620
3854
|
onUpdate: T
|
|
3621
|
-
}, null, 8, ["block"])) : m.value === "image" ? (i(), v(
|
|
3855
|
+
}, null, 8, ["block"])) : m.value === "image" ? (i(), v(ji, {
|
|
3622
3856
|
key: 4,
|
|
3623
3857
|
block: e.block,
|
|
3624
3858
|
onUpdate: T
|
|
3625
|
-
}, null, 8, ["block"])) : m.value === "video" ? (i(), v(
|
|
3859
|
+
}, null, 8, ["block"])) : m.value === "video" ? (i(), v(_o, {
|
|
3626
3860
|
key: 5,
|
|
3627
3861
|
block: e.block,
|
|
3628
3862
|
onUpdate: T
|
|
3629
|
-
}, null, 8, ["block"])) : m.value === "button" ? (i(), v(
|
|
3863
|
+
}, null, 8, ["block"])) : m.value === "button" ? (i(), v(Ht, {
|
|
3630
3864
|
key: 6,
|
|
3631
3865
|
block: e.block,
|
|
3632
3866
|
"font-families": w.value,
|
|
3633
3867
|
onUpdate: T
|
|
3634
|
-
}, null, 8, ["block", "font-families"])) : m.value === "divider" ? (i(), v(
|
|
3868
|
+
}, null, 8, ["block", "font-families"])) : m.value === "divider" ? (i(), v(ii, {
|
|
3635
3869
|
key: 7,
|
|
3636
3870
|
block: e.block,
|
|
3637
3871
|
onUpdate: T
|
|
3638
|
-
}, null, 8, ["block"])) : m.value === "social" ? (i(), v(
|
|
3872
|
+
}, null, 8, ["block"])) : m.value === "social" ? (i(), v(ya, {
|
|
3639
3873
|
key: 8,
|
|
3640
3874
|
block: e.block,
|
|
3641
3875
|
onUpdate: T
|
|
3642
|
-
}, null, 8, ["block"])) : m.value === "menu" ? (i(), v(
|
|
3876
|
+
}, null, 8, ["block"])) : m.value === "menu" ? (i(), v(Hi, {
|
|
3643
3877
|
key: 9,
|
|
3644
3878
|
block: e.block,
|
|
3645
3879
|
"font-families": w.value,
|
|
3646
3880
|
onUpdate: T
|
|
3647
|
-
}, null, 8, ["block", "font-families"])) : m.value === "table" ? (i(), v(
|
|
3881
|
+
}, null, 8, ["block", "font-families"])) : m.value === "table" ? (i(), v(Ga, {
|
|
3648
3882
|
key: 10,
|
|
3649
3883
|
block: e.block,
|
|
3650
3884
|
"font-families": w.value,
|
|
3651
3885
|
onUpdate: T
|
|
3652
|
-
}, null, 8, ["block", "font-families"])) : m.value === "spacer" ? (i(), v(
|
|
3886
|
+
}, null, 8, ["block", "font-families"])) : m.value === "spacer" ? (i(), v(Ca, {
|
|
3653
3887
|
key: 11,
|
|
3654
3888
|
block: e.block,
|
|
3655
3889
|
onUpdate: T
|
|
3656
|
-
}, null, 8, ["block"])) : m.value === "html" ? (i(), v(
|
|
3890
|
+
}, null, 8, ["block"])) : m.value === "html" ? (i(), v(si, {
|
|
3657
3891
|
key: 12,
|
|
3658
3892
|
block: e.block,
|
|
3659
3893
|
onUpdate: T
|
|
@@ -3662,13 +3896,13 @@ var Ti = { class: "tpl:mb-3.5" }, Ei = ["value"], Di = ["value"], Oi = {
|
|
|
3662
3896
|
block: e.block,
|
|
3663
3897
|
"font-families": w.value,
|
|
3664
3898
|
onUpdate: T
|
|
3665
|
-
}, null, 8, ["block", "font-families"])) : _("", !0),
|
|
3899
|
+
}, null, 8, ["block", "font-families"])) : _("", !0), k(hr, {
|
|
3666
3900
|
block: e.block,
|
|
3667
3901
|
"is-first-section": m.value === "paragraph",
|
|
3668
3902
|
onUpdate: T
|
|
3669
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
3903
|
+
}, null, 8, ["block", "is-first-section"])])], 8, yo)], 8, vo));
|
|
3670
3904
|
}
|
|
3671
|
-
}),
|
|
3672
|
-
export {
|
|
3905
|
+
}), Oo = /* @__PURE__ */ e({ default: () => ko }), ko = /*#__PURE__*/ H(Do, [["__scopeId", "data-v-206f038f"]]);
|
|
3906
|
+
export { ko as default, bt as n, $ as r, Oo as t };
|
|
3673
3907
|
|
|
3674
|
-
//# sourceMappingURL=Toolbar-
|
|
3908
|
+
//# sourceMappingURL=Toolbar-C_Hfsher.js.map
|