@templatical/editor 0.56.1 → 0.57.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{AiAltTextPopover-CpZ7UeAZ.js → AiAltTextPopover-BiZHthAB.js} +5 -5
- package/dist/{AiAltTextReview-LYxvn7Qe.js → AiAltTextReview-BwhROHiF.js} +6 -6
- package/dist/{AiChatPanel-Cy05P-iO.js → AiChatPanel-Cros4ZCM.js} +22 -25
- package/dist/AiPanels-D_CdHqFZ.js +26 -0
- package/dist/{AiRewriteMenu-DgqJHnza.js → AiRewriteMenu-6b8GNj64.js} +53 -53
- package/dist/{BlockIssueBadge-CxHJmuOh.js → BlockIssueBadge-i2cZy5PB.js} +5 -5
- package/dist/{BlockPreviewCanvas-DEmNZkEG.js → BlockPreviewCanvas-BAYIy-QJ.js} +27 -27
- package/dist/{CloudHeaderExtras-Cqhw-jMz.js → CloudHeaderExtras-CJsXi4Ku.js} +2 -2
- package/dist/{CloudPanels-Bmlf05Il.js → CloudPanels-Cb54vtYC.js} +6 -6
- package/dist/{CollaborationNotices-C27GCMvK.js → CollaborationNotices-DkYX-ose.js} +3 -3
- package/dist/{CollaboratorBar-CLQjksX-.js → CollaboratorBar-xDweDvB6.js} +3 -3
- package/dist/CommentsPanel-t3w16YUl.js +23 -0
- package/dist/CommentsSidebar-B3M90RY_.js +516 -0
- package/dist/{CountdownBlock-D8dqjm3F.js → CountdownBlock-BrR2uqM3.js} +4 -4
- package/dist/{CountdownToolbar-IjpCOjCd.js → CountdownToolbar-CTbJPh8B.js} +7 -7
- package/dist/{IssuesPanel-uwuzeMSW.js → IssuesPanel-BUKc8lld.js} +13 -13
- package/dist/{LanguageMenu-C-eQ0lFy.js → LanguageMenu-DruJAMET.js} +16 -16
- package/dist/{LoadingTrack-BG8cg9xi.js → LoadingTrack-c4SeD16s.js} +1 -1
- package/dist/{LocaleNotices-CDK_9D7P.js → LocaleNotices-D6zk-QCL.js} +5 -5
- package/dist/{LogicTagInsertButton-BSolF7Fd.js → LogicTagInsertButton-Ci7V0Exe.js} +65 -65
- package/dist/{MediaEditModal-C8yc9dxt.js → MediaEditModal-BxbwZxnf.js} +4 -4
- package/dist/{MediaPanels-FI4I8asn.js → MediaPanels-BiUxsTMM.js} +2 -2
- package/dist/{MergeTagInput-B1nl2ZMT.js → MergeTagInput-BA89v7KJ.js} +2 -2
- package/dist/{MergeTagModeToggle-DXvb80OE.js → MergeTagModeToggle-De_FNmcG.js} +7 -7
- package/dist/{MergeTagTextarea-DJlf3VbS.js → MergeTagTextarea-BRMB24Dg.js} +9 -9
- package/dist/{ParagraphEditor-Dqco128s.js → ParagraphEditor-DYqh0kEa.js} +51 -51
- package/dist/{RestoreVersionDialog-hqLCuGV5.js → RestoreVersionDialog-CRkyFafq.js} +5 -5
- package/dist/{RichTextEditorContent-xIEF0Y3Z.js → RichTextEditorContent-WeCqqCy3.js} +10 -10
- package/dist/{SaveBlockDialog-CQlCP_XC.js → SaveBlockDialog-D992yyO4.js} +15 -15
- package/dist/{SavedBlocksBrowserModal-BXA32Fx6.js → SavedBlocksBrowserModal-tH74h2Tz.js} +13 -13
- package/dist/{SavedBlocksPanels-BKUzbamj.js → SavedBlocksPanels-BuzEwYfp.js} +2 -2
- package/dist/{SavedBlocksPickBar-BlvF-4UF.js → SavedBlocksPickBar-DbULBPsI.js} +4 -4
- package/dist/{TemplateSettings-CYFtR8zv.js → TemplateSettings-eMBAy_wd.js} +14 -14
- package/dist/{TestEmailModal-BbaL17HO.js → TestEmailModal-hb9iopaZ.js} +13 -13
- package/dist/{TestEmailPanel-DhB1CSpg.js → TestEmailPanel-DbeZjj0u.js} +2 -2
- package/dist/{TitleEditor-3BRl8u5l.js → TitleEditor-CisDioGi.js} +14 -14
- package/dist/{ToggleSwitch-R3wCCYE6.js → ToggleSwitch-BIPdFWUr.js} +1 -1
- package/dist/{Toolbar-pzNIakGM.js → Toolbar-BUVRjylH.js} +218 -218
- package/dist/{TplModal-WNuWhHZm.js → TplModal-BPPP-uM6.js} +6 -6
- package/dist/{VersionHistoryMenu--T-Qp_mH.js → VersionHistoryMenu-Cd2IaHgT.js} +10 -10
- package/dist/{VersionHistoryPanels-BPubvYIE.js → VersionHistoryPanels-BNONrE-8.js} +2 -2
- package/dist/{VersionPreviewBanner-ClL3Wkln.js → VersionPreviewBanner-lkAf7tc8.js} +3 -3
- package/dist/{WrapperBlock-CjfCPceb.js → WrapperBlock-B3UAv5kv.js} +5 -5
- package/dist/{blockTypeIcons-12OMwVyN.js → blockTypeIcons-BPPpqFc2.js} +3 -3
- package/dist/bundle-stats.json +7 -7
- package/dist/cdn/chunks/{AiAltTextPopover-PFjTrl0y.js → AiAltTextPopover-CafZSF50.js} +5 -5
- package/dist/cdn/chunks/{AiAltTextPopover-PFjTrl0y.js.map → AiAltTextPopover-CafZSF50.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-BMjzvApH.js → AiAltTextReview-BJcaqyp5.js} +6 -6
- package/dist/cdn/chunks/{AiAltTextReview-BMjzvApH.js.map → AiAltTextReview-BJcaqyp5.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-C2gpq4kP.js → AiChatPanel-DNCUpV8n.js} +15 -18
- package/dist/cdn/chunks/AiChatPanel-DNCUpV8n.js.map +1 -0
- package/dist/cdn/chunks/AiPanels-IV0VEkBL.js +27 -0
- package/dist/cdn/chunks/AiPanels-IV0VEkBL.js.map +1 -0
- package/dist/cdn/chunks/{AiRewriteMenu-CnkyjPEu.js → AiRewriteMenu-DFUZWA7e.js} +58 -58
- package/dist/cdn/chunks/AiRewriteMenu-DFUZWA7e.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-DncZ-HDf.js → BlockIssueBadge-DIlFDDwh.js} +5 -5
- package/dist/cdn/chunks/BlockIssueBadge-DIlFDDwh.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-CCSEzL46.js → BlockPreviewCanvas-D0VhkzY8.js} +28 -28
- package/dist/cdn/chunks/BlockPreviewCanvas-D0VhkzY8.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-uUJYJFJ6.js → CloudHeaderExtras-CazfMn6A.js} +3 -3
- package/dist/cdn/chunks/{CloudHeaderExtras-uUJYJFJ6.js.map → CloudHeaderExtras-CazfMn6A.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-CRztnw4M.js → CloudPanels-BiU1MD-4.js} +5 -5
- package/dist/cdn/chunks/CloudPanels-BiU1MD-4.js.map +1 -0
- package/dist/cdn/chunks/{CollaborationNotices-IuLYT2x7.js → CollaborationNotices-DGA8XRZJ.js} +4 -4
- package/dist/cdn/chunks/{CollaborationNotices-IuLYT2x7.js.map → CollaborationNotices-DGA8XRZJ.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-C1ZI2xwa.js → CollaboratorBar-BWL1Shc1.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-C1ZI2xwa.js.map → CollaboratorBar-BWL1Shc1.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-4mrl4zMK.js +24 -0
- package/dist/cdn/chunks/CommentsPanel-4mrl4zMK.js.map +1 -0
- package/dist/cdn/chunks/CommentsSidebar-BJ87vc7i.js +486 -0
- package/dist/cdn/chunks/CommentsSidebar-BJ87vc7i.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-8aPSExrv.js → CountdownBlock-Do6oItNW.js} +5 -5
- package/dist/cdn/chunks/{CountdownBlock-8aPSExrv.js.map → CountdownBlock-Do6oItNW.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CnWQEW5g.js → CountdownToolbar-CH8UK01N.js} +8 -8
- package/dist/cdn/chunks/{CountdownToolbar-CnWQEW5g.js.map → CountdownToolbar-CH8UK01N.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CrplCzo8.js → IssuesPanel-3NPqHXJx.js} +9 -9
- package/dist/cdn/chunks/IssuesPanel-3NPqHXJx.js.map +1 -0
- package/dist/cdn/chunks/{LanguageMenu-B6MNInCL.js → LanguageMenu-75uu4P2d.js} +105 -105
- package/dist/cdn/chunks/LanguageMenu-75uu4P2d.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-DUYcDHOV.js → LoadingTrack-o-89hApJ.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DUYcDHOV.js.map → LoadingTrack-o-89hApJ.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-TxeAl8Iq.js → LocaleNotices-CUN5K5QJ.js} +5 -5
- package/dist/cdn/chunks/{LocaleNotices-TxeAl8Iq.js.map → LocaleNotices-CUN5K5QJ.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-DvSVx2DB.js → LogicTagInsertButton-C5L73hYh.js} +12 -12
- package/dist/cdn/chunks/{LogicTagInsertButton-DvSVx2DB.js.map → LogicTagInsertButton-C5L73hYh.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-tGK6htBl.js → MediaEditModal-BHTMNHx0.js} +4 -4
- package/dist/cdn/chunks/{MediaEditModal-tGK6htBl.js.map → MediaEditModal-BHTMNHx0.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-BVrQYz2C.js → MediaPanels-BlianNRh.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-BVrQYz2C.js.map → MediaPanels-BlianNRh.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-DeuNH3re.js → MergeTagInput-D8cbnnZu.js} +3 -3
- package/dist/cdn/chunks/{MergeTagInput-DeuNH3re.js.map → MergeTagInput-D8cbnnZu.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-D7maMGIM.js → MergeTagModeToggle-D-RhwBsO.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-D7maMGIM.js.map → MergeTagModeToggle-D-RhwBsO.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-B2xxIU3e.js → MergeTagTextarea-CAJIi2FE.js} +7 -7
- package/dist/cdn/chunks/{MergeTagTextarea-B2xxIU3e.js.map → MergeTagTextarea-CAJIi2FE.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-Bx_Hlw8d.js → ParagraphEditor-sRPXZDzp.js} +30 -30
- package/dist/cdn/chunks/{ParagraphEditor-Bx_Hlw8d.js.map → ParagraphEditor-sRPXZDzp.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-CPrrWTsT.js → RestoreVersionDialog-CJK-14PX.js} +5 -5
- package/dist/cdn/chunks/RestoreVersionDialog-CJK-14PX.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-Dze4C9VI.js → RichTextEditorContent-DU0wtA_j.js} +9 -9
- package/dist/cdn/chunks/{RichTextEditorContent-Dze4C9VI.js.map → RichTextEditorContent-DU0wtA_j.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CXVwnfsy.js → SaveBlockDialog-C8hY9xA-.js} +13 -13
- package/dist/cdn/chunks/{SaveBlockDialog-CXVwnfsy.js.map → SaveBlockDialog-C8hY9xA-.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BDTmenOE.js → SavedBlocksBrowserModal-B3nFAgAa.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BDTmenOE.js.map → SavedBlocksBrowserModal-B3nFAgAa.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-B41Rk_v1.js → SavedBlocksPanels-CQenugHO.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-B41Rk_v1.js.map → SavedBlocksPanels-CQenugHO.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-B97z_rFH.js → SavedBlocksPickBar-DzUP4IYv.js} +5 -5
- package/dist/cdn/chunks/{SavedBlocksPickBar-B97z_rFH.js.map → SavedBlocksPickBar-DzUP4IYv.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-YwwRbxPc.js → TemplateSettings-DnOwyN_1.js} +12 -12
- package/dist/cdn/chunks/{TemplateSettings-YwwRbxPc.js.map → TemplateSettings-DnOwyN_1.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BiFP2Cbx.js → TestEmailModal-BFqmfOZ1.js} +10 -10
- package/dist/cdn/chunks/{TestEmailModal-BiFP2Cbx.js.map → TestEmailModal-BFqmfOZ1.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BrivPMk2.js → TestEmailPanel-DFOhhaa9.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-BrivPMk2.js.map → TestEmailPanel-DFOhhaa9.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CzPkkL2s.js → TitleEditor-ChPXTB9T.js} +13 -13
- package/dist/cdn/chunks/{TitleEditor-CzPkkL2s.js.map → TitleEditor-ChPXTB9T.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-BSkySwA1.js → ToggleSwitch-C0w0srN_.js} +2 -2
- package/dist/cdn/chunks/{ToggleSwitch-BSkySwA1.js.map → ToggleSwitch-C0w0srN_.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-VH07SzX7.js → Toolbar-bbO5WoKo.js} +302 -302
- package/dist/cdn/chunks/Toolbar-bbO5WoKo.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-DMe6J811.js → TplModal-Bg97XHIJ.js} +6 -6
- package/dist/cdn/chunks/{TplModal-DMe6J811.js.map → TplModal-Bg97XHIJ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DkwbKhBl.js → VersionHistoryMenu-BNPxnWiO.js} +9 -9
- package/dist/cdn/chunks/{VersionHistoryMenu-DkwbKhBl.js.map → VersionHistoryMenu-BNPxnWiO.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-CgxhMRAl.js → VersionHistoryPanels-CyyRXWPU.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-CgxhMRAl.js.map → VersionHistoryPanels-CyyRXWPU.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-WVBDBrwQ.js → VersionPreviewBanner-BldFvgxJ.js} +4 -4
- package/dist/cdn/chunks/{VersionPreviewBanner-WVBDBrwQ.js.map → VersionPreviewBanner-BldFvgxJ.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-CCCIcqe2.js → WrapperBlock-ZBCf7Y8u.js} +6 -6
- package/dist/cdn/chunks/{WrapperBlock-CCCIcqe2.js.map → WrapperBlock-ZBCf7Y8u.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-CzYA5DF9.js → blockTypeIcons-19xd5ZPi.js} +6 -6
- package/dist/cdn/chunks/{blockTypeIcons-CzYA5DF9.js.map → blockTypeIcons-19xd5ZPi.js.map} +1 -1
- package/dist/cdn/chunks/{composables-D3lsO7Io.js → composables-CMBZad02.js} +750 -730
- package/dist/cdn/chunks/composables-CMBZad02.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-CE79GB1H.js → createCloudRuntime-BHGFjpek.js} +157 -143
- package/dist/cdn/chunks/createCloudRuntime-BHGFjpek.js.map +1 -0
- package/dist/cdn/chunks/da-CYWJkrTg.js +97 -0
- package/dist/cdn/chunks/da-CYWJkrTg.js.map +1 -0
- package/dist/cdn/chunks/da-qQzj0QGy.js +950 -0
- package/dist/cdn/chunks/da-qQzj0QGy.js.map +1 -0
- package/dist/cdn/chunks/{dist-BzXULHvI.js → dist-BtWMy7UQ.js} +3 -3
- package/dist/cdn/chunks/{dist-BzXULHvI.js.map → dist-BtWMy7UQ.js.map} +1 -1
- package/dist/cdn/chunks/{dist-Cf1pSluo.js → dist-zu1jwYIS.js} +4 -4
- package/dist/cdn/chunks/{dist-Cf1pSluo.js.map → dist-zu1jwYIS.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-DepKdldn.js → draggable-IRVFEZ-b.js} +1535 -1500
- package/dist/cdn/chunks/draggable-IRVFEZ-b.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-CN69NlOK.js → editor-modal-CarOiAYJ.js} +77 -76
- package/dist/cdn/chunks/{editor-modal-CN69NlOK.js.map → editor-modal-CarOiAYJ.js.map} +1 -1
- package/dist/cdn/chunks/en-B4s_0ryk.js +1 -0
- package/dist/cdn/chunks/{extensions-8dlM-fU4.js → extensions-Beg0g2wm.js} +7 -7
- package/dist/cdn/chunks/{extensions-8dlM-fU4.js.map → extensions-Beg0g2wm.js.map} +1 -1
- package/dist/cdn/chunks/{icons-DHExFLlT.js → icons-Cl4oR2mf.js} +73 -73
- package/dist/cdn/chunks/icons-Cl4oR2mf.js.map +1 -0
- package/dist/cdn/chunks/keys-BQqbBUag.js +11 -0
- package/dist/cdn/chunks/keys-BQqbBUag.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-aWjkotui.js → normalizeMergeTagMarkup-B8yU4usU.js} +55 -55
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-aWjkotui.js.map → normalizeMergeTagMarkup-B8yU4usU.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dn6dFUwx.js → preRenderCustomBlocks-CPHm2GOQ.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dn6dFUwx.js.map → preRenderCustomBlocks-CPHm2GOQ.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-B3njfkSy.js → sanitizeHtml-B7LC0gKK.js} +22 -11
- package/dist/cdn/chunks/sanitizeHtml-B7LC0gKK.js.map +1 -0
- package/dist/cdn/chunks/{socialIcons-BFgc3qqJ.js → socialIcons-D9D02_y5.js} +575 -524
- package/dist/cdn/chunks/socialIcons-D9D02_y5.js.map +1 -0
- package/dist/cdn/chunks/{src-C9JWWxAk.js → src-BCrSqaj8.js} +108 -95
- package/dist/cdn/chunks/src-BCrSqaj8.js.map +1 -0
- package/dist/cdn/chunks/{src-GgKlXNxy.js → src-BO4aXl_Y.js} +232 -228
- package/dist/cdn/chunks/src-BO4aXl_Y.js.map +1 -0
- package/dist/cdn/chunks/{src-mXG-Of9A.js → src-DeywvttP.js} +812 -780
- package/dist/cdn/chunks/src-DeywvttP.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-C940SvId.js → tiptap-BPiZqxCt.js} +40 -31
- package/dist/cdn/chunks/tiptap-BPiZqxCt.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-Xsih9yRH.js → useCloudI18n-Dr4S2TRW.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-Xsih9yRH.js.map → useCloudI18n-Dr4S2TRW.js.map} +1 -1
- package/dist/cdn/chunks/useEditorRoot-B_kf_k-g.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-Beau2Z_T.js.map → useEditorRoot-B_kf_k-g.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-D8s7HtTn.js → useI18n-CSf-ZpcM.js} +3 -3
- package/dist/cdn/chunks/{useI18n-D8s7HtTn.js.map → useI18n-CSf-ZpcM.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-oykFcYrW.js +33 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-Bgg4qpev.js.map → useLocalizedDisplay-oykFcYrW.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-B0PDeDxl.js → useLogicTag-D_qg9qqO.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-B0PDeDxl.js.map → useLogicTag-D_qg9qqO.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-BSU75bKk.js → useMergeTag-VLnVHtxV.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-BSU75bKk.js.map → useMergeTag-VLnVHtxV.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-esO6wjvU.js → usePopoverPosition-BJFFi8x6.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-esO6wjvU.js.map → usePopoverPosition-BJFFi8x6.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-CJuUu7Xj.js → useScrollToBlock-MI4PP5lk.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-CJuUu7Xj.js.map → useScrollToBlock-MI4PP5lk.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-QqBilClC.js → withCurrentFont-m6TtR0dC.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-QqBilClC.js.map → withCurrentFont-m6TtR0dC.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +685 -663
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-CcuCoJDh.js → check-C7ua4TAK.js} +1 -1
- package/dist/{chevron-down-BfYIbFbC.js → chevron-down-DftQrAkI.js} +1 -1
- package/dist/{chevron-right-DyjFqY35.js → chevron-right-B-DULGbg.js} +1 -1
- package/dist/{chevron-up-BHEIxuS-.js → chevron-up-CeYsyD8c.js} +1 -1
- package/dist/{circle-alert-Tq7kAh9S.js → circle-exclamation-point-DHjORV_I.js} +3 -3
- package/dist/{clock-Df0ZiXwQ.js → clock-CajOtLEZ.js} +1 -1
- package/dist/{composables-DreAt_0A.js → composables-Cq7rsxRc.js} +1123 -1103
- package/dist/{createCloudRuntime-CL4tUlDC.js → createCloudRuntime-CHsFF8DI.js} +42 -28
- package/dist/{createLucideIcon-CfBdtoUw.js → createLucideIcon-D-mELTSY.js} +6 -6
- package/dist/da-CYWJkrTg.js +95 -0
- package/dist/da-qQzj0QGy.js +948 -0
- package/dist/{dist-CX7skkvG.js → dist-A328tG0Z.js} +2 -2
- package/dist/{dist-BjzK1g4Z.js → dist-B15BvV94.js} +2 -2
- package/dist/{dist-DDytHU_6.js → dist-B3G4Yvpd.js} +3 -3
- package/dist/{dist-CiYotUR8.js → dist-B6ptxfPo.js} +3 -3
- package/dist/{dist-0GWMyHtM.js → dist-BmV-2uBJ.js} +2 -2
- package/dist/{dist-CCLRTtJP.js → dist-BxKFi2h_.js} +5 -5
- package/dist/{dist-BMUUt3zJ.js → dist-C0hVefGI.js} +791 -759
- package/dist/{dist-CsknfjrZ.js → dist-CMBOqk9I.js} +7 -7
- package/dist/{dist-ZrT0vAB6.js → dist-CXTsTO5h.js} +2 -2
- package/dist/{dist-Dq9VnANT.js → dist-D5BUcCjv.js} +2 -2
- package/dist/dist-D9cbSSSx.js +4 -0
- package/dist/{dist-BsumKKh9.js → dist-DAdrn64r.js} +2 -2
- package/dist/{dist-C3avsUq9.js → dist-DENg3ORe.js} +31 -22
- package/dist/{dist-Cr1CLCmx.js → dist-DI_8rB1X.js} +2 -2
- package/dist/dist-ELLEk-lS.js +4 -0
- package/dist/{editor-modal-BD32TXws.js → editor-modal-CgsaLpwB.js} +20 -19
- package/dist/en-DBLcB-CW.js +1 -0
- package/dist/{extensions-DKxHlSd7.js → extensions-BSXjPQEc.js} +21 -21
- package/dist/{eye-B3psrAqd.js → eye-fe5sKF_K.js} +1 -1
- package/dist/{image-C3yuPDxx.js → image-CUC7SZiW.js} +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/{info-DKja7A68.js → info-DDbLU4pT.js} +1 -1
- package/dist/keys-D9oKZN1h.js +9 -0
- package/dist/{link-DhzPI4Hn.js → link-C2icj0iH.js} +1 -1
- package/dist/{list-DVGn7Ik2.js → list-KYC_Jb5A.js} +1 -1
- package/dist/{loader-circle-DqKWsMHO.js → loader-circle-DmyagWpc.js} +1 -1
- package/dist/{message-circle-C4TonoBs.js → message-circle-ijyWn6UJ.js} +1 -1
- package/dist/{normalizeMergeTagMarkup-Da9JAgx7.js → normalizeMergeTagMarkup-CBLCQe02.js} +82 -82
- package/dist/{package-9OkiEO4S.js → package-CKYm_jQY.js} +1 -1
- package/dist/{pencil-M9vkOB7C.js → pencil-C2TRSR-Y.js} +1 -1
- package/dist/{plus-DxZiv9YC.js → plus-CotJVDxb.js} +1 -1
- package/dist/{preRenderCustomBlocks-CdqSp2P7.js → preRenderCustomBlocks-e2OlY4aU.js} +3 -3
- package/dist/{refresh-cw-UY8_sdFG.js → refresh-cw-CuCRV6D5.js} +1 -1
- package/dist/{rotate-ccw-BFTGCpHn.js → rotate-ccw-BlnQ3y6R.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-DlHp8xgy.js → runtime-dom.esm-bundler-nN-jsqr1.js} +20 -20
- package/dist/{sanitizeHtml-wBibnBF4.js → sanitizeHtml-Dfn-fH17.js} +25 -14
- package/dist/{search-RuGJnMEn.js → search-Dxw6oFrZ.js} +1 -1
- package/dist/{send-DGB1ar02.js → send-C-blQBZ9.js} +1 -1
- package/dist/{smartphone-CVA29CU_.js → smartphone-rLz4X-Dd.js} +1 -1
- package/dist/{socialIcons-oo4uL16Y.js → socialIcons-BZRLo0eT.js} +600 -549
- package/dist/{sparkles-IHfEwEcd.js → sparkles-JWQlUiSn.js} +1 -1
- package/dist/{square-_Cl44UU6.js → square-DshDy1Il.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +748 -726
- package/dist/{text-align-start-Dqk2Xt_Q.js → text-align-start-CyasaQtr.js} +13 -13
- package/dist/{trash-Cr7rD5Hh.js → trash-B1lZp2Tv.js} +1 -1
- package/dist/{triangle-alert-CKcpwtUj.js → triangle-exclamation-point-BhJvBEoT.js} +3 -3
- package/dist/{upload-DR9pqVON.js → upload-CNK8JX38.js} +1 -1
- package/dist/{useCloudI18n-BczJoFf4.js → useCloudI18n-HhCZYRV6.js} +2 -2
- package/dist/useEditorRoot-B0Njczhx.js +7 -0
- package/dist/{useI18n-zeWYtWSv.js → useI18n-CM9vKbYc.js} +2 -2
- package/dist/{cdn/chunks/useLocalizedDisplay-Bgg4qpev.js → useLocalizedDisplay-B7tlQF4g.js} +2 -4
- package/dist/{useLogicTag-B4Zpk3eo.js → useLogicTag-k_y-4o4W.js} +3 -3
- package/dist/{useMergeTag-B5qlq8px.js → useMergeTag-BiZ6XOdL.js} +3 -3
- package/dist/{usePopoverPosition-Br3zt_MQ.js → usePopoverPosition-CVRzzLkC.js} +2 -2
- package/dist/{useScrollToBlock-BfOzc1Z6.js → useScrollToBlock-vf_KD0FM.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-BJXc_Mri.js → vue.runtime.esm-bundler-BE5V8ADU.js} +414 -362
- package/dist/{withCurrentFont-m_PHcOD0.js → withCurrentFont-CPhRujet.js} +1 -1
- package/dist/{x-DZSFHafL.js → x-DbLX5Qdm.js} +1 -1
- package/package.json +23 -23
- package/dist/AiPanels-CwKmXzyr.js +0 -31
- package/dist/CommentsPanel-B5NqPMmY.js +0 -16
- package/dist/CommentsSidebar-BDrcrDxS.js +0 -526
- package/dist/cdn/chunks/AiChatPanel-C2gpq4kP.js.map +0 -1
- package/dist/cdn/chunks/AiPanels-Cx3PE2mE.js +0 -32
- package/dist/cdn/chunks/AiPanels-Cx3PE2mE.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-CnkyjPEu.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-DncZ-HDf.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-CRztnw4M.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-lgjJNrrY.js +0 -18
- package/dist/cdn/chunks/CommentsPanel-lgjJNrrY.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-DTold7iy.js +0 -496
- package/dist/cdn/chunks/CommentsSidebar-DTold7iy.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-CrplCzo8.js.map +0 -1
- package/dist/cdn/chunks/LanguageMenu-B6MNInCL.js.map +0 -1
- package/dist/cdn/chunks/RestoreVersionDialog-CPrrWTsT.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-VH07SzX7.js.map +0 -1
- package/dist/cdn/chunks/composables-D3lsO7Io.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-CE79GB1H.js.map +0 -1
- package/dist/cdn/chunks/draggable-DepKdldn.js.map +0 -1
- package/dist/cdn/chunks/en-Bcz4gS9U.js +0 -1
- package/dist/cdn/chunks/icons-DHExFLlT.js.map +0 -1
- package/dist/cdn/chunks/keys-BUmIvYy3.js +0 -11
- package/dist/cdn/chunks/keys-BUmIvYy3.js.map +0 -1
- package/dist/cdn/chunks/sanitizeHtml-B3njfkSy.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-BFgc3qqJ.js.map +0 -1
- package/dist/cdn/chunks/src-C9JWWxAk.js.map +0 -1
- package/dist/cdn/chunks/src-GgKlXNxy.js.map +0 -1
- package/dist/cdn/chunks/src-mXG-Of9A.js.map +0 -1
- package/dist/cdn/chunks/tiptap-C940SvId.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-Beau2Z_T.js +0 -9
- package/dist/dist-B_0FPmoy.js +0 -4
- package/dist/dist-DKV9m4Uu.js +0 -4
- package/dist/en-Dgs_-NBw.js +0 -1
- package/dist/keys-w_VRjoMu.js +0 -9
- package/dist/useEditorRoot-BcXKhM_8.js +0 -7
- package/dist/useLocalizedDisplay-Cbhx208c.js +0 -31
package/dist/cdn/editor.js
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { A as e, B as t, C as n, E as r, F as i, G as a, H as o, I as s, K as c, L as l, M as u, N as d, O as f, P as p, Q as m, R as h, S as g, V as _, Y as v, _ as y, b, c as x, ct as S, dt as C, g as w, h as T, it as E, j as D, k as O, l as k, m as A, mt as j, n as M, nt as N, o as ee, p as P, pt as F, r as I, rt as L, s as te, t as R, tt as z, u as B, v as V, x as H, y as U } from "./chunks/draggable-
|
|
2
|
-
import { A as ne, D as W, E as G, M as K, N as q, O as J, V as re, _ as ie, b as ae, c as oe, j as se, k as Y, l as ce } from "./chunks/socialIcons-
|
|
3
|
-
import {
|
|
1
|
+
import { A as e, B as t, C as n, E as r, F as i, G as a, H as o, I as s, K as c, L as l, M as u, N as d, O as f, P as p, Q as m, R as h, S as g, V as _, Y as v, _ as y, b, c as x, ct as S, dt as C, g as w, h as T, it as E, j as D, k as O, l as k, m as A, mt as j, n as M, nt as N, o as ee, p as P, pt as F, r as I, rt as L, s as te, t as R, tt as z, u as B, v as V, x as H, y as U } from "./chunks/draggable-IRVFEZ-b.js";
|
|
2
|
+
import { A as ne, D as W, E as G, M as K, N as q, O as J, V as re, _ as ie, b as ae, c as oe, j as se, k as Y, l as ce } from "./chunks/socialIcons-D9D02_y5.js";
|
|
3
|
+
import { $t as le, B as ue, D as de, F as X, G as fe, H as pe, Ht as Z, It as me, Mt as he, Nt as ge, Pt as _e, S as ve, Tt as ye, U as be, Ut as xe, V as Se, Vt as Ce, Z as we, _ as Te, dt as Ee, ft as De, g as Oe, h as ke, in as Ae, jt as je, k as Me, m as Ne, nn as Q, p as Pe, qt as Fe, rn as Ie, v as Le, y as Re, z as ze } from "./chunks/src-DeywvttP.js";
|
|
4
4
|
import { t as Be } from "./chunks/_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
5
|
-
import { $ as Ve, A as He, Bt as Ue, D as We, Dt as Ge, E as Ke, F as qe,
|
|
6
|
-
import { t as $ } from "./chunks/useI18n-
|
|
7
|
-
import { n as dt, t as ft } from "./chunks/useLocalizedDisplay-
|
|
8
|
-
import { $ as pt, B as mt, E as ht, I as gt, J as _t, K as vt, M as yt, O as bt,
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { C as
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import { A as
|
|
15
|
-
import { a as
|
|
16
|
-
import { t as
|
|
17
|
-
import { n as
|
|
18
|
-
import { i as
|
|
19
|
-
import { a as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { n as
|
|
25
|
-
import { _ as
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as
|
|
28
|
-
import { t as
|
|
5
|
+
import { $ as Ve, A as He, Bt as Ue, D as We, Dt as Ge, E as Ke, F as qe, Ft as Je, M as Ye, Ot as Xe, P as Ze, Q as Qe, Vt as $e, Y as et, at as tt, ct as nt, j as rt, mt as it, nt as at, pt as ot, q as st, t as ct, vt as lt, x as ut } from "./chunks/icons-Cl4oR2mf.js";
|
|
6
|
+
import { t as $ } from "./chunks/useI18n-CSf-ZpcM.js";
|
|
7
|
+
import { n as dt, t as ft } from "./chunks/useLocalizedDisplay-oykFcYrW.js";
|
|
8
|
+
import { $ as pt, B as mt, E as ht, I as gt, J as _t, K as vt, M as yt, O as bt, R as xt, Y as St, Z as Ct, a as wt, at as Tt, b as Et, c as Dt, ct as Ot, d as kt, et as At, g as jt, h as Mt, it as Nt, k as Pt, l as Ft, m as It, n as Lt, nt as Rt, ot as zt, st as Bt, t as Vt, tt as Ht, v as Ut, z as Wt } from "./chunks/keys-BQqbBUag.js";
|
|
9
|
+
import { t as Gt } from "./chunks/plural-CyxrJXL1.js";
|
|
10
|
+
import { t as Kt } from "./chunks/languageName-DEEOhDWI.js";
|
|
11
|
+
import { C as qt, T as Jt, b as Yt, h as Xt, m as Zt, w as Qt, x as $t } from "./chunks/styleConstants-CgiNKdnc.js";
|
|
12
|
+
import { t as en } from "./chunks/TplModal-Bg97XHIJ.js";
|
|
13
|
+
import { n as tn } from "./chunks/sanitizeHtml-B7LC0gKK.js";
|
|
14
|
+
import { A as nn, B as rn, E as an, F as on, L as sn, M as cn, N as ln, O as un, P as dn, _ as fn, a as pn, b as mn, c as hn, d as gn, f as _n, g as vn, h as yn, i as bn, j as xn, k as Sn, l as Cn, m as wn, n as Tn, o as En, p as Dn, r as On, s as kn, t as An, u as jn, v as Mn, x as Nn, y as Pn } from "./chunks/composables-CMBZad02.js";
|
|
15
|
+
import { a as Fn, i as In, n as Ln, o as Rn, t as zn } from "./chunks/normalizeMergeTagMarkup-B8yU4usU.js";
|
|
16
|
+
import { t as Bn } from "./chunks/aiErrors-C3QEMB0x.js";
|
|
17
|
+
import { n as Vn, t as Hn } from "./chunks/aiImageContext-BQ5mQ6B5.js";
|
|
18
|
+
import { i as Un, n as Wn, r as Gn, t as Kn } from "./chunks/useScrollToBlock-MI4PP5lk.js";
|
|
19
|
+
import { a as qn } from "./chunks/dist-zu1jwYIS.js";
|
|
20
|
+
import { t as Jn } from "./chunks/logger-CqQTfJGx.js";
|
|
21
|
+
import { t as Yn } from "./chunks/WrapperBlock-ZBCf7Y8u.js";
|
|
22
|
+
import { t as Xn } from "./chunks/blockTypeIcons-19xd5ZPi.js";
|
|
23
|
+
import { t as Zn } from "./chunks/templateSettingsFields-cjlP-jdw.js";
|
|
24
|
+
import { n as Qn, t as $n } from "./chunks/MergeTagModeToggle-D-RhwBsO.js";
|
|
25
|
+
import { _ as er, d as tr, g as nr } from "./chunks/dist-BtWMy7UQ.js";
|
|
26
|
+
import { t as rr } from "./chunks/formatAbsoluteDateTime-Ck2_zXra.js";
|
|
27
|
+
import { t as ir } from "./chunks/formatRelativeTime-BTD8Ktt-.js";
|
|
28
|
+
import { t as ar } from "./chunks/preRenderCustomBlocks-CPHm2GOQ.js";
|
|
29
29
|
// src/utils/resolveTemplateDefaults.ts
|
|
30
|
-
var
|
|
31
|
-
function
|
|
32
|
-
let t = e.locale?.trim().replace(/_/g, "-"), n = t &&
|
|
30
|
+
var or = /^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i;
|
|
31
|
+
function sr(e) {
|
|
32
|
+
let t = e.locale?.trim().replace(/_/g, "-"), n = t && or.test(t) ? { locale: t } : void 0;
|
|
33
33
|
if (n || e.templateDefaults) return {
|
|
34
34
|
...n,
|
|
35
35
|
...e.templateDefaults
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
// src/components/NoticeStack.vue
|
|
39
|
-
var
|
|
40
|
-
function
|
|
41
|
-
return i(), y("div",
|
|
39
|
+
var cr = {}, lr = { class: "tpl:pointer-events-none tpl:absolute tpl:top-16 tpl:left-1/2 tpl:z-[60] tpl:flex tpl:-translate-x-1/2 tpl:flex-col tpl:items-center tpl:gap-2" };
|
|
40
|
+
function ur(e, t) {
|
|
41
|
+
return i(), y("div", lr, [h(e.$slots, "default")]);
|
|
42
42
|
}
|
|
43
|
-
var
|
|
43
|
+
var dr = /*#__PURE__*/ Be(cr, [["render", ur]]), fr = {
|
|
44
44
|
key: 0,
|
|
45
45
|
"data-testid": "language-bar",
|
|
46
46
|
class: "tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-4 tpl:py-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
47
|
-
},
|
|
47
|
+
}, pr = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-between tpl:gap-x-6 tpl:gap-y-2" }, mr = { class: "tpl:flex tpl:min-w-0 tpl:grow tpl:basis-64 tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1" }, hr = {
|
|
48
48
|
"data-testid": "language-bar-label",
|
|
49
49
|
class: "tpl:inline-flex tpl:items-center tpl:gap-2 tpl:font-medium tpl:whitespace-nowrap tpl:text-[var(--tpl-text)]"
|
|
50
|
-
},
|
|
50
|
+
}, gr = {
|
|
51
51
|
"data-testid": "language-bar-status",
|
|
52
52
|
role: "status",
|
|
53
53
|
"aria-live": "polite",
|
|
54
54
|
"aria-atomic": "true",
|
|
55
55
|
class: "tpl:whitespace-nowrap"
|
|
56
|
-
},
|
|
56
|
+
}, _r = {
|
|
57
57
|
key: 1,
|
|
58
58
|
"data-testid": "translation-result",
|
|
59
59
|
class: "tpl:whitespace-normal"
|
|
60
|
-
},
|
|
60
|
+
}, vr = ["aria-label"], yr = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-2" }, br = ["disabled"], xr = ["disabled"], Sr = {
|
|
61
61
|
key: 0,
|
|
62
62
|
"data-testid": "structure-notice",
|
|
63
63
|
role: "status",
|
|
64
64
|
class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-2"
|
|
65
|
-
},
|
|
65
|
+
}, Cr = ["aria-label"], wr = ["aria-label"], Tr = { class: "tpl:m-0 tpl:mb-4 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Er = { class: "tpl:mb-4 tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Dr = { class: "tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Or = ["disabled"], kr = /* @__PURE__ */ new Set(), Ar = /* @__PURE__ */ n({
|
|
66
66
|
__name: "LanguageBar",
|
|
67
67
|
props: {
|
|
68
68
|
editor: {},
|
|
@@ -71,15 +71,15 @@ var ur = /*#__PURE__*/ Be(sr, [["render", lr]]), dr = {
|
|
|
71
71
|
change: {}
|
|
72
72
|
},
|
|
73
73
|
setup(e) {
|
|
74
|
-
let t = e, { t: n, format: r } = $(), s = f(
|
|
74
|
+
let t = e, { t: n, format: r } = $(), s = f(Tt, void 0) ?? "en", c = f(Mt, []), l = P(() => Z(t.editor.content.value)), u = P(() => t.editor.activeLocale?.value ?? l.value), d = P(() => t.locales.includes(u.value)), p = f(Vt, null) ?? ft(t.editor, c), m = P(() => d.value ? !p.value?.missing.length && !p.value?.stale.length ? n.localization.complete : r(n.localization.gapTooltip, {
|
|
75
75
|
missing: p.value.missing.length,
|
|
76
76
|
stale: p.value.stale.length
|
|
77
|
-
}) : r(n.localization.languageReadOnly, { language:
|
|
77
|
+
}) : r(n.localization.languageReadOnly, { language: Kt(u.value) })), h = P(() => {
|
|
78
78
|
let e = t.feature?.lastResult.value;
|
|
79
79
|
if (!e) return "";
|
|
80
|
-
let i = [
|
|
81
|
-
return e.tagsChanged.length && i.push(
|
|
82
|
-
}), g = z(!1), _ = !1, v = z(null), x = z(null), T = P(() => t.feature?.counts.value.all ?? 0), E = P(() =>
|
|
80
|
+
let i = [Gt(n.localization.translatedFields, e.translated, s)];
|
|
81
|
+
return e.tagsChanged.length && i.push(Gt(n.localization.translationTagsChanged, e.tagsChanged.length, s)), e.skippedLocked.length && i.push(Gt(n.localization.translationSkippedLocked, e.skippedLocked.length, s)), e.missing.length && i.push(Gt(n.localization.translationMissing, e.missing.length, s)), e.tooLarge.length && i.push(Gt(n.localization.translationTooLarge, e.tooLarge.length, s)), e.error && i.push(r(n.localization.translationError, { message: e.error.message })), i.join(" ");
|
|
82
|
+
}), g = z(!1), _ = !1, v = z(null), x = z(null), T = P(() => t.feature?.counts.value.all ?? 0), E = P(() => Gt(n.localization.translationConfirmation, T.value, s));
|
|
83
83
|
function O() {
|
|
84
84
|
v.value = null, D(() => x.value?.focus());
|
|
85
85
|
}
|
|
@@ -100,67 +100,67 @@ var ur = /*#__PURE__*/ Be(sr, [["render", lr]]), dr = {
|
|
|
100
100
|
v.value && O();
|
|
101
101
|
}), o(() => t.change, () => {
|
|
102
102
|
let e = t.editor.state.template?.id;
|
|
103
|
-
(e ?
|
|
104
|
-
}), (t, o) => u.value === l.value ? w("", !0) : (i(), y("div",
|
|
105
|
-
A("div",
|
|
106
|
-
A("span",
|
|
103
|
+
(e ? kr.has(e) : _) || (e ? kr.add(e) : _ = !0, g.value = !0);
|
|
104
|
+
}), (t, o) => u.value === l.value ? w("", !0) : (i(), y("div", fr, [
|
|
105
|
+
A("div", pr, [A("div", mr, [
|
|
106
|
+
A("span", hr, [H(S(it), {
|
|
107
107
|
size: 14,
|
|
108
108
|
"aria-hidden": "true",
|
|
109
109
|
class: "tpl:shrink-0"
|
|
110
|
-
}), b(" " + j(S(r)(S(n).localization.editingLanguage, { language: S(
|
|
111
|
-
A("span",
|
|
110
|
+
}), b(" " + j(S(r)(S(n).localization.editingLanguage, { language: S(Kt)(u.value) })), 1)]),
|
|
111
|
+
A("span", gr, [e.feature?.running.value ? (i(), y(B, { key: 0 }, [b(j(S(r)(S(n).localization.translating, e.feature.running.value)), 1)], 64)) : e.feature?.lastResult.value ? (i(), y("span", _r, j(h.value), 1)) : (i(), y(B, { key: 2 }, [b(j(m.value), 1)], 64))]),
|
|
112
112
|
e.feature?.lastResult.value && !e.feature.running.value ? (i(), y("button", {
|
|
113
113
|
key: 0,
|
|
114
114
|
type: "button",
|
|
115
115
|
"data-testid": "translation-dismiss",
|
|
116
116
|
"aria-label": S(n).localization.dismiss,
|
|
117
|
-
class: C(S(
|
|
117
|
+
class: C(S(Zt)),
|
|
118
118
|
onClick: o[0] ||= (t) => e.feature.dismissResult()
|
|
119
119
|
}, [H(S(ct), {
|
|
120
120
|
size: 14,
|
|
121
121
|
"aria-hidden": "true"
|
|
122
|
-
})], 10,
|
|
123
|
-
]), A("div",
|
|
122
|
+
})], 10, vr)) : w("", !0)
|
|
123
|
+
]), A("div", yr, [
|
|
124
124
|
e.feature?.running.value ? (i(), y("button", {
|
|
125
125
|
key: 0,
|
|
126
126
|
type: "button",
|
|
127
127
|
"data-testid": "translation-cancel",
|
|
128
|
-
class: C(S(
|
|
128
|
+
class: C(S(Zt)),
|
|
129
129
|
onClick: o[1] ||= (t) => e.feature.cancel()
|
|
130
130
|
}, j(S(n).localization.cancel), 3)) : w("", !0),
|
|
131
131
|
d.value && e.feature?.isAvailable.value ? (i(), y(B, { key: 1 }, [e.feature.counts.value.gaps > 0 ? (i(), y("button", {
|
|
132
132
|
key: 0,
|
|
133
133
|
type: "button",
|
|
134
134
|
"data-testid": "translate-language",
|
|
135
|
-
class: C(S(
|
|
135
|
+
class: C(S($t)),
|
|
136
136
|
disabled: !!e.feature.running.value,
|
|
137
137
|
onClick: o[2] ||= (t) => e.feature.translate({ only: "gaps" })
|
|
138
|
-
}, j(S(
|
|
138
|
+
}, j(S(Gt)(S(n).localization.translateFields, e.feature.counts.value.gaps, S(s))), 11, br)) : w("", !0), A("button", {
|
|
139
139
|
ref_key: "allAgain",
|
|
140
140
|
ref: x,
|
|
141
141
|
type: "button",
|
|
142
142
|
"data-testid": "translate-all-again",
|
|
143
|
-
class: C(S(
|
|
143
|
+
class: C(S(Zt)),
|
|
144
144
|
disabled: !!e.feature.running.value || T.value === 0,
|
|
145
145
|
onClick: k
|
|
146
|
-
}, j(S(n).localization.translateAllAgain), 11,
|
|
146
|
+
}, j(S(n).localization.translateAllAgain), 11, xr)], 64)) : w("", !0),
|
|
147
147
|
A("button", {
|
|
148
148
|
type: "button",
|
|
149
149
|
"data-testid": "language-back-default",
|
|
150
|
-
class: C(S(
|
|
150
|
+
class: C(S(Zt)),
|
|
151
151
|
onClick: o[3] ||= (t) => e.editor.setActiveLocale?.(null)
|
|
152
|
-
}, j(S(r)(S(n).localization.backToDefault, { default: S(
|
|
152
|
+
}, j(S(r)(S(n).localization.backToDefault, { default: S(Kt)(l.value) })), 3)
|
|
153
153
|
])]),
|
|
154
|
-
g.value ? (i(), y("div",
|
|
154
|
+
g.value ? (i(), y("div", Sr, [A("span", null, j(S(n).localization.structureNotice), 1), A("button", {
|
|
155
155
|
type: "button",
|
|
156
156
|
"aria-label": S(n).localization.dismiss,
|
|
157
|
-
class: C(S(
|
|
157
|
+
class: C(S(Zt)),
|
|
158
158
|
onClick: o[4] ||= (e) => g.value = !1
|
|
159
159
|
}, [H(S(ct), {
|
|
160
160
|
size: 14,
|
|
161
161
|
"aria-hidden": "true"
|
|
162
|
-
})], 10,
|
|
163
|
-
H(
|
|
162
|
+
})], 10, Cr)])) : w("", !0),
|
|
163
|
+
H(en, {
|
|
164
164
|
visible: v.value !== null,
|
|
165
165
|
onClose: O
|
|
166
166
|
}, {
|
|
@@ -170,35 +170,35 @@ var ur = /*#__PURE__*/ Be(sr, [["render", lr]]), dr = {
|
|
|
170
170
|
"aria-label": E.value,
|
|
171
171
|
class: "tpl:w-96 tpl:max-w-full tpl:max-h-[90%] tpl:overflow-y-auto tpl:box-border tpl:rounded-[var(--tpl-radius)] tpl:bg-[var(--tpl-bg)] tpl:p-5 tpl:shadow-[var(--tpl-shadow-lg)]"
|
|
172
172
|
}, [
|
|
173
|
-
A("h3",
|
|
174
|
-
A("p",
|
|
175
|
-
A("div",
|
|
173
|
+
A("h3", Tr, j(E.value), 1),
|
|
174
|
+
A("p", Er, j(S(r)(S(n).localization.translationDescription, { language: S(Kt)(v.value?.locale ?? u.value) })), 1),
|
|
175
|
+
A("div", Dr, [A("button", {
|
|
176
176
|
type: "button",
|
|
177
177
|
"data-testid": "translation-confirm-cancel",
|
|
178
|
-
class: C(S(
|
|
178
|
+
class: C(S(qt)),
|
|
179
179
|
onClick: O
|
|
180
180
|
}, j(S(n).localization.cancel), 3), A("button", {
|
|
181
181
|
type: "button",
|
|
182
182
|
"data-testid": "translation-confirm",
|
|
183
|
-
class: C(S(
|
|
183
|
+
class: C(S(Yt)),
|
|
184
184
|
disabled: !!e.feature?.running.value || !e.feature?.isAvailable.value || T.value === 0,
|
|
185
185
|
onClick: M
|
|
186
|
-
}, j(S(
|
|
187
|
-
], 8,
|
|
186
|
+
}, j(S(Gt)(S(n).localization.translateAllFields, T.value, S(s))), 11, Or)])
|
|
187
|
+
], 8, wr)]),
|
|
188
188
|
_: 1
|
|
189
189
|
}, 8, ["visible"])
|
|
190
190
|
]));
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
193
|
// src/composables/useLocaleActions.ts
|
|
194
|
-
function
|
|
194
|
+
function jr(e) {
|
|
195
195
|
let { editor: t } = e;
|
|
196
196
|
return { setDefaultLocale(n) {
|
|
197
197
|
let r;
|
|
198
198
|
try {
|
|
199
|
-
r = [t.createSetDefaultLocaleOperation(n)], e.collaboration ||
|
|
199
|
+
r = [t.createSetDefaultLocaleOperation(n)], e.collaboration || ge(t.content.value, r);
|
|
200
200
|
} catch (e) {
|
|
201
|
-
if (e instanceof
|
|
201
|
+
if (e instanceof _e) return {
|
|
202
202
|
applied: !1,
|
|
203
203
|
error: e
|
|
204
204
|
};
|
|
@@ -207,12 +207,12 @@ function Ar(e) {
|
|
|
207
207
|
if (e.collaboration) {
|
|
208
208
|
let t = e.collaboration.core.applyOperations(r, {});
|
|
209
209
|
if (!t.applied) return t;
|
|
210
|
-
} else e.history().record(),
|
|
210
|
+
} else e.history().record(), me(t.content.value, r), t.markDirty();
|
|
211
211
|
return t.setActiveLocale(n), { applied: !0 };
|
|
212
212
|
} };
|
|
213
213
|
}
|
|
214
214
|
// src/composables/useTranslationFeature.ts
|
|
215
|
-
function
|
|
215
|
+
function Mr(e) {
|
|
216
216
|
if (typeof e != "object" || !e) return null;
|
|
217
217
|
let t = e;
|
|
218
218
|
return t.code !== "rate_limited" && t.code !== "limit_reached" && t.code !== "content_too_large" && t.code !== "translation_failed" || t.statusCode !== void 0 && typeof t.statusCode != "number" ? null : {
|
|
@@ -221,24 +221,24 @@ function jr(e) {
|
|
|
221
221
|
...t.statusCode === void 0 ? {} : { statusCode: t.statusCode }
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function Nr(e) {
|
|
225
225
|
let t = /* @__PURE__ */ new Set();
|
|
226
226
|
if (typeof DOMParser > "u") return t;
|
|
227
227
|
let n = new DOMParser().parseFromString(e, "text/html");
|
|
228
228
|
for (let e of n.querySelectorAll("[style]")) t.add(e.getAttribute("style") ?? "");
|
|
229
229
|
return t;
|
|
230
230
|
}
|
|
231
|
-
function
|
|
232
|
-
let n =
|
|
233
|
-
return [...
|
|
231
|
+
function Pr(e, t) {
|
|
232
|
+
let n = Nr(t);
|
|
233
|
+
return [...Nr(e)].every((e) => n.has(e));
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
let t = `tpl-translation-${crypto.randomUUID()}-`, n = [], r = e.replace(/<x id="\d+"\s*\/>|<x id="\d+"><\/x>|__x\d+__/g, (e) => `${t}${n.push(e)}-end`), i =
|
|
235
|
+
function Fr(e) {
|
|
236
|
+
let t = `tpl-translation-${crypto.randomUUID()}-`, n = [], r = e.replace(/<x id="\d+"\s*\/>|<x id="\d+"><\/x>|__x\d+__/g, (e) => `${t}${n.push(e)}-end`), i = tn(r);
|
|
237
237
|
return n.forEach((e, n) => {
|
|
238
238
|
i = i.replaceAll(`${t}${n + 1}-end`, e);
|
|
239
239
|
}), i;
|
|
240
240
|
}
|
|
241
|
-
async function
|
|
241
|
+
async function Ir(e, t) {
|
|
242
242
|
t.throwIfAborted();
|
|
243
243
|
let n, r = new Promise((e, r) => {
|
|
244
244
|
n = () => r(t.reason), t.addEventListener("abort", n, { once: !0 });
|
|
@@ -249,7 +249,7 @@ async function Fr(e, t) {
|
|
|
249
249
|
t.removeEventListener("abort", n);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function Lr(e) {
|
|
253
253
|
let { editor: t } = e, n = L(null), r = L(null), i = null, a = L(!1), s = P(() => {
|
|
254
254
|
let n = t.activeLocale.value;
|
|
255
255
|
return !a.value && !!n && n !== Z(t.content.value) && !!e.localization?.locales.includes(n) && !!t.content.value.settings.locales?.includes(n);
|
|
@@ -258,7 +258,7 @@ function Ir(e) {
|
|
|
258
258
|
gaps: 0,
|
|
259
259
|
all: 0
|
|
260
260
|
};
|
|
261
|
-
let n = t.activeLocale.value, r = e.definitions(), i = e.coverage?.() ??
|
|
261
|
+
let n = t.activeLocale.value, r = e.definitions(), i = e.coverage?.() ?? Fe(t.content.value, n, r), a = /* @__PURE__ */ new Set([...i.missing, ...i.stale]), { strings: o } = ue(t.content.value, n, {
|
|
262
262
|
definitions: r,
|
|
263
263
|
syntax: e.syntax(),
|
|
264
264
|
doNotTranslate: e.localization?.doNotTranslate,
|
|
@@ -289,7 +289,7 @@ function Ir(e) {
|
|
|
289
289
|
if (!s.value) throw new Q("Translation isn't available in this language.", 403, "feature_unavailable");
|
|
290
290
|
let o = e.collaboration?.core;
|
|
291
291
|
o?.flush();
|
|
292
|
-
let c = t.activeLocale.value, l = t.state.template?.id ?? null, u = Z(t.content.value), d =
|
|
292
|
+
let c = t.activeLocale.value, l = t.state.template?.id ?? null, u = Z(t.content.value), d = Ae(E([...e.definitions()])), f = e.syntax(), p = e.localization?.doNotTranslate?.slice(), m = ue(t.content.value, c, {
|
|
293
293
|
...a,
|
|
294
294
|
definitions: d,
|
|
295
295
|
syntax: f,
|
|
@@ -325,7 +325,7 @@ function Ir(e) {
|
|
|
325
325
|
}
|
|
326
326
|
let i;
|
|
327
327
|
try {
|
|
328
|
-
i = await
|
|
328
|
+
i = await Ir(e.provider.translate({
|
|
329
329
|
templateId: l,
|
|
330
330
|
sourceLocale: u,
|
|
331
331
|
targetLocale: c,
|
|
@@ -336,7 +336,7 @@ function Ir(e) {
|
|
|
336
336
|
}))
|
|
337
337
|
}, g.controller.signal), g.controller.signal), g.controller.signal.throwIfAborted();
|
|
338
338
|
} catch (e) {
|
|
339
|
-
if (!g.controller.signal.aborted &&
|
|
339
|
+
if (!g.controller.signal.aborted && Mr(e)?.code === "content_too_large" && t.length > 1) {
|
|
340
340
|
y = Math.floor(t.length / 2);
|
|
341
341
|
continue;
|
|
342
342
|
}
|
|
@@ -348,10 +348,10 @@ function Ir(e) {
|
|
|
348
348
|
h.missing.push(e.id);
|
|
349
349
|
continue;
|
|
350
350
|
}
|
|
351
|
-
let n = m.tokens[e.id], r =
|
|
352
|
-
r === null || e.format === "html" && !
|
|
351
|
+
let n = m.tokens[e.id], r = Se(t.text, n);
|
|
352
|
+
r === null || e.format === "html" && !Pr(r, Se(e.source, n)) ? h.tagsChanged.push(e.id) : _.push({
|
|
353
353
|
id: e.id,
|
|
354
|
-
text: e.format === "html" ?
|
|
354
|
+
text: e.format === "html" ? Fr(t.text) : t.text,
|
|
355
355
|
sourceHash: e.sourceHash
|
|
356
356
|
});
|
|
357
357
|
}
|
|
@@ -362,8 +362,8 @@ function Ir(e) {
|
|
|
362
362
|
}
|
|
363
363
|
} catch (e) {
|
|
364
364
|
g.controller.signal.aborted || e instanceof Error && e.name === "AbortError" ? h.cancelled = !0 : h.error = {
|
|
365
|
-
code:
|
|
366
|
-
message:
|
|
365
|
+
code: Mr(e)?.code ?? "translation_failed",
|
|
366
|
+
message: Mr(e)?.message ?? (e instanceof Error ? e.message : String(e))
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
try {
|
|
@@ -392,7 +392,7 @@ function Ir(e) {
|
|
|
392
392
|
let t = o.locksOf(e.blockId).some((e) => e.holder.sessionId !== o.sessionId && (e.locale == null || e.locale === c));
|
|
393
393
|
return t && h.skippedLocked.push(...Object.keys(e.text ?? {}).map((t) => `${e.blockId}/${t}`)), !t;
|
|
394
394
|
});
|
|
395
|
-
s.length && (
|
|
395
|
+
s.length && (ge(E(t.content.value), s), e.history().record(), me(t.content.value, s), t.markDirty(), o?.flush(), h.translated = s.reduce((e, t) => e + (t.op === "updateBlockLocale" || t.op === "updateSettingsLocale" ? Object.keys(t.text ?? {}).length : 0), 0)), t.activeLocale.value === c && (r.value = h);
|
|
396
396
|
}
|
|
397
397
|
} finally {
|
|
398
398
|
i = null, n.value = null;
|
|
@@ -412,12 +412,12 @@ function Ir(e) {
|
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
414
|
// src/composables/useCollaborationFeature.ts
|
|
415
|
-
var
|
|
415
|
+
var Rr = 5e3, zr = 2e3, Br = {
|
|
416
416
|
blockIds: [],
|
|
417
417
|
settings: !1,
|
|
418
418
|
templateUpdated: !0
|
|
419
419
|
};
|
|
420
|
-
function
|
|
420
|
+
function Vr(e) {
|
|
421
421
|
let t = /* @__PURE__ */ new Set(), n = !1, r = !1;
|
|
422
422
|
for (let i of e) i.op === "addBlock" ? typeof i.block?.id == "string" && t.add(i.block.id) : i.op === "updateSettings" || i.op === "addLocale" || i.op === "removeLocale" || i.op === "updateSettingsLocale" ? n = !0 : i.op === "setContent" || i.op === "setDefaultLocale" ? r = !0 : t.add(i.blockId);
|
|
423
423
|
return {
|
|
@@ -426,11 +426,11 @@ function Br(e) {
|
|
|
426
426
|
templateUpdated: r
|
|
427
427
|
};
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function Hr(e) {
|
|
430
430
|
let t = z([]), n = 1, r = /* @__PURE__ */ new Map();
|
|
431
431
|
function i(e) {
|
|
432
432
|
let t = r.get(e);
|
|
433
|
-
t && clearTimeout(t), r.set(e, setTimeout(() => o(e),
|
|
433
|
+
t && clearTimeout(t), r.set(e, setTimeout(() => o(e), Rr));
|
|
434
434
|
}
|
|
435
435
|
function a(e) {
|
|
436
436
|
let r = n++;
|
|
@@ -468,7 +468,7 @@ function Vr(e) {
|
|
|
468
468
|
u.delete(r);
|
|
469
469
|
let e = new Map(l.value);
|
|
470
470
|
e.delete(r), l.value = e;
|
|
471
|
-
},
|
|
471
|
+
}, zr));
|
|
472
472
|
}
|
|
473
473
|
l.value = n;
|
|
474
474
|
}
|
|
@@ -512,15 +512,15 @@ function Vr(e) {
|
|
|
512
512
|
let h = K({
|
|
513
513
|
provider: e.provider,
|
|
514
514
|
loadTemplate: e.loadTemplate,
|
|
515
|
-
normalizeRemoteOperations: (t, n) =>
|
|
515
|
+
normalizeRemoteOperations: (t, n) => In(t, n, e.mergeTags),
|
|
516
516
|
onRemoteChange: (t) => {
|
|
517
517
|
try {
|
|
518
|
-
p(t.actor,
|
|
518
|
+
p(t.actor, Vr(t.ops));
|
|
519
519
|
} finally {
|
|
520
520
|
e.onRemoteChange?.(t);
|
|
521
521
|
}
|
|
522
522
|
},
|
|
523
|
-
onRemoteResync: ({ actor: e }) => p(e,
|
|
523
|
+
onRemoteResync: ({ actor: e }) => p(e, Br),
|
|
524
524
|
onNotice: s,
|
|
525
525
|
onError: e.onError
|
|
526
526
|
});
|
|
@@ -582,7 +582,7 @@ function Vr(e) {
|
|
|
582
582
|
};
|
|
583
583
|
}
|
|
584
584
|
// src/composables/useCommentsFeature.ts
|
|
585
|
-
function
|
|
585
|
+
function Ur(e) {
|
|
586
586
|
let { provider: t, editor: n } = e, r = W({
|
|
587
587
|
provider: t,
|
|
588
588
|
getTemplateId: () => n.state.template?.id ?? null,
|
|
@@ -635,22 +635,22 @@ function Hr(e) {
|
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
637
|
// src/composables/useAiFeature.ts
|
|
638
|
-
var
|
|
639
|
-
function
|
|
640
|
-
return
|
|
638
|
+
var Wr = 3e3, Gr = 1e3;
|
|
639
|
+
function Kr(e) {
|
|
640
|
+
return Ae(E(e));
|
|
641
641
|
}
|
|
642
|
-
var
|
|
643
|
-
function
|
|
642
|
+
var qr = (e) => e instanceof Error && e.name === "AbortError";
|
|
643
|
+
function Jr(e) {
|
|
644
644
|
if (e instanceof Error) return e;
|
|
645
645
|
if (typeof e != "object" || !e) return Error(String(e));
|
|
646
646
|
let t = e;
|
|
647
647
|
return Object.assign(Error(typeof t.message == "string" ? t.message : String(e)), typeof t.code == "string" ? { code: t.code } : {}, typeof t.statusCode == "number" ? { statusCode: t.statusCode } : {}, t.details === void 0 ? {} : { details: t.details });
|
|
648
648
|
}
|
|
649
|
-
var
|
|
650
|
-
function
|
|
651
|
-
return e.some((e) => e.id === t || e.type === "section" && Array.isArray(e.children) && e.children.some((e) => Array.isArray(e) &&
|
|
649
|
+
var Yr = (e) => e.batches.reduce((e, t) => e + t.operationCount, 0);
|
|
650
|
+
function Xr(e, t) {
|
|
651
|
+
return e.some((e) => e.id === t || e.type === "section" && Array.isArray(e.children) && e.children.some((e) => Array.isArray(e) && Xr(e, t)));
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function Zr(e) {
|
|
654
654
|
return {
|
|
655
655
|
applied: !1,
|
|
656
656
|
code: e.code,
|
|
@@ -658,7 +658,7 @@ function Xr(e) {
|
|
|
658
658
|
message: e.message
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function Qr(e) {
|
|
662
662
|
let { provider: t, editor: n, collaboration: r } = e, i = t.conversation ?? null, a = crypto.randomUUID(), s = z(null), c = /* @__PURE__ */ new Map(), l = !1, u = 0, d = !1, f = 0, p = null, m = v();
|
|
663
663
|
function h(e) {
|
|
664
664
|
let t = ne(e);
|
|
@@ -775,7 +775,7 @@ function Zr(e) {
|
|
|
775
775
|
e.timers.add(r);
|
|
776
776
|
}
|
|
777
777
|
function G(t) {
|
|
778
|
-
|
|
778
|
+
qr(t) || e.onError?.(Jr(t));
|
|
779
779
|
}
|
|
780
780
|
function K(e, t) {
|
|
781
781
|
if (t.length === 0) return;
|
|
@@ -789,13 +789,13 @@ function Zr(e) {
|
|
|
789
789
|
let r = new Map(e.highlights.value);
|
|
790
790
|
for (let e of t) r.get(e) === n && r.delete(e);
|
|
791
791
|
e.highlights.value = r;
|
|
792
|
-
},
|
|
792
|
+
}, zr);
|
|
793
793
|
}
|
|
794
794
|
async function J(e) {
|
|
795
|
-
r && await Promise.race([r.core.settle().catch(() => {}), new Promise((t) => W(e, t,
|
|
795
|
+
r && await Promise.race([r.core.settle().catch(() => {}), new Promise((t) => W(e, t, Wr))]);
|
|
796
796
|
}
|
|
797
797
|
function re(t) {
|
|
798
|
-
let i = E(n.content.value), o = n.activeLocale?.value ?? null, s =
|
|
798
|
+
let i = E(n.content.value), o = n.activeLocale?.value ?? null, s = le(i, o ?? Z(i));
|
|
799
799
|
if (o === null && i.settings.locale === void 0 && delete s.settings.locale, new TextEncoder().encode(JSON.stringify(s)).length > 2e5) throw new Q("This template is too large for AI.", 413, "content_too_large");
|
|
800
800
|
return {
|
|
801
801
|
templateId: t,
|
|
@@ -808,7 +808,7 @@ function Zr(e) {
|
|
|
808
808
|
}
|
|
809
809
|
function ie() {
|
|
810
810
|
let e = n.state.selectedBlockId;
|
|
811
|
-
return e ? r ? r.core.hasConfirmedBlock(e) ? e : null :
|
|
811
|
+
return e ? r ? r.core.hasConfirmedBlock(e) ? e : null : Xr(n.content.value.blocks, e) ? e : null : null;
|
|
812
812
|
}
|
|
813
813
|
function ae(t, i, a) {
|
|
814
814
|
if (t.length === 0) return {
|
|
@@ -819,14 +819,14 @@ function Zr(e) {
|
|
|
819
819
|
try {
|
|
820
820
|
o = e.normalize(t, E(n.content.value));
|
|
821
821
|
} catch (e) {
|
|
822
|
-
if (e instanceof
|
|
822
|
+
if (e instanceof _e) return Zr(e);
|
|
823
823
|
throw e;
|
|
824
824
|
}
|
|
825
825
|
if (o.length === 0) return {
|
|
826
826
|
applied: !0,
|
|
827
827
|
inverse: []
|
|
828
828
|
};
|
|
829
|
-
let s =
|
|
829
|
+
let s = Vr(o);
|
|
830
830
|
if (r) {
|
|
831
831
|
let e = r.core.applyOperations(o, {
|
|
832
832
|
origin: "ai",
|
|
@@ -835,23 +835,23 @@ function Zr(e) {
|
|
|
835
835
|
return e.applied ? (s.templateUpdated || K(a, s.blockIds), {
|
|
836
836
|
applied: !0,
|
|
837
837
|
inverse: e.inverse
|
|
838
|
-
}) :
|
|
838
|
+
}) : Zr(e.error);
|
|
839
839
|
}
|
|
840
840
|
let c;
|
|
841
841
|
try {
|
|
842
|
-
c =
|
|
842
|
+
c = ge(E(n.content.value), o);
|
|
843
843
|
} catch (e) {
|
|
844
|
-
if (e instanceof
|
|
844
|
+
if (e instanceof _e) return Zr(e);
|
|
845
845
|
throw e;
|
|
846
846
|
}
|
|
847
847
|
a.lastRecordedTurn !== i && (e.history().record(), a.lastRecordedTurn = i), d = !0;
|
|
848
848
|
try {
|
|
849
|
-
|
|
849
|
+
me(n.content.value, Ae(o)), n.markDirty();
|
|
850
850
|
} finally {
|
|
851
851
|
d = !1;
|
|
852
852
|
}
|
|
853
853
|
let l = n.state.selectedBlockId;
|
|
854
|
-
return l && !
|
|
854
|
+
return l && !Xr(n.content.value.blocks, l) && n.selectBlock(null), s.templateUpdated || K(a, s.blockIds), {
|
|
855
855
|
applied: !0,
|
|
856
856
|
inverse: c
|
|
857
857
|
};
|
|
@@ -860,11 +860,11 @@ function Zr(e) {
|
|
|
860
860
|
let o = t;
|
|
861
861
|
try {
|
|
862
862
|
if (a !== null) {
|
|
863
|
-
if (e.localization && !e.localization.locales.includes(a)) throw new
|
|
863
|
+
if (e.localization && !e.localization.locales.includes(a)) throw new _e("invalid_operation", 0, `Locale "${a}" is not enabled.`);
|
|
864
864
|
o = q(E(n.content.value), a, t, e.customBlockDefinitions?.());
|
|
865
865
|
}
|
|
866
866
|
} catch (e) {
|
|
867
|
-
if (e instanceof
|
|
867
|
+
if (e instanceof _e) return Zr(e);
|
|
868
868
|
throw e;
|
|
869
869
|
}
|
|
870
870
|
let s = ae(o, r, i);
|
|
@@ -880,7 +880,7 @@ function Zr(e) {
|
|
|
880
880
|
let n = r.core;
|
|
881
881
|
n.revision.value >= e || (n.connection.value === "connected" ? W(t, () => {
|
|
882
882
|
T(t) && n.revision.value < e && n.catchUp();
|
|
883
|
-
},
|
|
883
|
+
}, Gr) : n.catchUp());
|
|
884
884
|
}
|
|
885
885
|
function Y(e, t, n) {
|
|
886
886
|
let r = e.memory;
|
|
@@ -910,15 +910,15 @@ function Zr(e) {
|
|
|
910
910
|
canRedo: n && e.undone && !r?.serverApplied && (r?.redo?.length ?? 0) > 0
|
|
911
911
|
};
|
|
912
912
|
}
|
|
913
|
-
let
|
|
913
|
+
let ue = () => ({
|
|
914
914
|
messageId: null,
|
|
915
915
|
operationCount: 0,
|
|
916
916
|
text: "",
|
|
917
917
|
failed: !0
|
|
918
918
|
});
|
|
919
|
-
function
|
|
919
|
+
function de(t, a, o, s = []) {
|
|
920
920
|
let c = b, l = n.activeLocale?.value ?? null, u = w();
|
|
921
|
-
return !u || u.active?.kind === "turn" || u.queue.some((e) => e.kind === "turn") ? Promise.resolve(
|
|
921
|
+
return !u || u.active?.kind === "turn" || u.queue.some((e) => e.kind === "turn") ? Promise.resolve(ue()) : R("turn", u, async (d) => {
|
|
922
922
|
let { controller: f } = d, p = u.memory, m = crypto.randomUUID(), h = crypto.randomUUID(), g = crypto.randomUUID(), _ = 0, v = "", y = !1, b = null, x = {
|
|
923
923
|
inverse: [],
|
|
924
924
|
redo: null,
|
|
@@ -936,7 +936,7 @@ function Zr(e) {
|
|
|
936
936
|
try {
|
|
937
937
|
let n;
|
|
938
938
|
do
|
|
939
|
-
n = _, !r && e.reload && await U(t, !0, d.authorVersion), i && await
|
|
939
|
+
n = _, !r && e.reload && await U(t, !0, d.authorVersion), i && await ve(t, !0, !0);
|
|
940
940
|
while (T(u) && n !== _);
|
|
941
941
|
} catch (e) {
|
|
942
942
|
T(u) && G(e);
|
|
@@ -952,18 +952,18 @@ function Zr(e) {
|
|
|
952
952
|
},
|
|
953
953
|
onOperations: async (e) => {
|
|
954
954
|
V(d), S(c);
|
|
955
|
-
let t = r ?
|
|
956
|
-
return i.applied && i.inverse.length > 0 && (x.inverse = [...i.inverse, ...x.inverse], r && (x.view = x.view === void 0 || x.view !== null &&
|
|
955
|
+
let t = r ? Kr(n.content.value) : null, i = oe(e, m, u, l);
|
|
956
|
+
return i.applied && i.inverse.length > 0 && (x.inverse = [...i.inverse, ...x.inverse], r && (x.view = x.view === void 0 || x.view !== null && Ie(x.view, t) ? Kr(n.content.value) : null), _ += e.length, D({ operationCount: _ })), i;
|
|
957
957
|
},
|
|
958
958
|
onApplied: (t) => {
|
|
959
959
|
if (!T(u)) throw new DOMException("The template changed.", "AbortError");
|
|
960
|
-
if (!r && !e.reload) throw b ??= new Q(
|
|
960
|
+
if (!r && !e.reload) throw b ??= new Q(Bn, 502, "ai_provider_error"), b;
|
|
961
961
|
x.serverApplied = !0, x.batchIds.add(t.batchId), _ += t.operationCount, D({ operationCount: _ }), se(t.revision, u), w && (O(), k());
|
|
962
962
|
}
|
|
963
963
|
};
|
|
964
964
|
try {
|
|
965
965
|
try {
|
|
966
|
-
await
|
|
966
|
+
await ve(d), V(d), S(c), u.failure.value = null, u.failedPrompt.value = null, u.failedAttachments.value = [];
|
|
967
967
|
let e = (/* @__PURE__ */ new Date()).toISOString();
|
|
968
968
|
p.records.set(g, x), p.items = [
|
|
969
969
|
...p.items,
|
|
@@ -1016,8 +1016,8 @@ function Zr(e) {
|
|
|
1016
1016
|
};
|
|
1017
1017
|
} catch (e) {
|
|
1018
1018
|
let n = b ?? e;
|
|
1019
|
-
y = f.signal.aborted ||
|
|
1020
|
-
error:
|
|
1019
|
+
y = f.signal.aborted || qr(n), y || G(n), _ === 0 && (!y || v === "") ? (p.items = p.items.filter((e) => e.id !== g && e.id !== h), T(u) && (u.messages.value = p.items, y || (t === "chat" && (u.failedPrompt.value = a, u.failedAttachments.value = s), u.failure.value = {
|
|
1020
|
+
error: Jr(n),
|
|
1021
1021
|
context: "turn"
|
|
1022
1022
|
})), C = {
|
|
1023
1023
|
messageId: null,
|
|
@@ -1027,7 +1027,7 @@ function Zr(e) {
|
|
|
1027
1027
|
}) : (D({
|
|
1028
1028
|
status: y ? "done" : "failed",
|
|
1029
1029
|
failure: y ? void 0 : {
|
|
1030
|
-
error:
|
|
1030
|
+
error: Jr(n),
|
|
1031
1031
|
context: "turn"
|
|
1032
1032
|
}
|
|
1033
1033
|
}), C = {
|
|
@@ -1043,7 +1043,7 @@ function Zr(e) {
|
|
|
1043
1043
|
if (n = _, x.serverApplied && !r && e.reload && T(u) && await U(d, !0).catch((e) => {
|
|
1044
1044
|
T(u) && G(e);
|
|
1045
1045
|
}), i && p.recoveries.has(m) && T(u)) {
|
|
1046
|
-
await
|
|
1046
|
+
await ve(d, !0, !0);
|
|
1047
1047
|
let e = p.recoveries.get(m);
|
|
1048
1048
|
e && (C.messageId = e.item.id, C.text = e.item.text);
|
|
1049
1049
|
}
|
|
@@ -1052,9 +1052,9 @@ function Zr(e) {
|
|
|
1052
1052
|
} finally {
|
|
1053
1053
|
w = !0, u.messages.value = p.items;
|
|
1054
1054
|
}
|
|
1055
|
-
},
|
|
1055
|
+
}, ue);
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function X(t, o) {
|
|
1058
1058
|
let s = w();
|
|
1059
1059
|
return !s || s.busy.value ? Promise.resolve() : R("replay", s, async (c) => {
|
|
1060
1060
|
let l = s.memory, u = l.items.find((e) => e.id === t);
|
|
@@ -1083,12 +1083,12 @@ function Zr(e) {
|
|
|
1083
1083
|
} catch (e) {
|
|
1084
1084
|
if (!T(s)) return;
|
|
1085
1085
|
G(e), Y(s, t, { failure: {
|
|
1086
|
-
error:
|
|
1086
|
+
error: Jr(e),
|
|
1087
1087
|
context: o
|
|
1088
1088
|
} });
|
|
1089
1089
|
}
|
|
1090
1090
|
if (!T(s)) return;
|
|
1091
|
-
if (!e.applied) throw new
|
|
1091
|
+
if (!e.applied) throw new he(e.message, {
|
|
1092
1092
|
code: e.code,
|
|
1093
1093
|
opIndex: e.opIndex
|
|
1094
1094
|
});
|
|
@@ -1099,29 +1099,29 @@ function Zr(e) {
|
|
|
1099
1099
|
failure: void 0
|
|
1100
1100
|
}), r) se(n.applied.revision, s);
|
|
1101
1101
|
else if (e.reload) await U(c, !0);
|
|
1102
|
-
else throw new Q(
|
|
1102
|
+
else throw new Q(Bn, 502, "ai_provider_error");
|
|
1103
1103
|
return;
|
|
1104
1104
|
}
|
|
1105
1105
|
{
|
|
1106
1106
|
if (u.undone !== (o === "redo")) return;
|
|
1107
1107
|
let e = o === "undo" ? f?.inverse : f?.redo;
|
|
1108
1108
|
if (!f || f.serverApplied || !e || e.length === 0) return;
|
|
1109
|
-
if (r && e.some((e) => e.op === "setContent") && (!f.view || !
|
|
1109
|
+
if (r && e.some((e) => e.op === "setContent") && (!f.view || !Ie(f.view, E(n.content.value)))) throw new he(`The template changed since this message's changes, so ${o === "undo" ? "undoing" : "redoing"} them would overwrite that.`, { code: "precondition_failed" });
|
|
1110
1110
|
let i = ae(e, `${o}:${t}:${crypto.randomUUID()}`, s);
|
|
1111
|
-
if (!i.applied) throw new
|
|
1111
|
+
if (!i.applied) throw new he(i.message, {
|
|
1112
1112
|
code: i.code,
|
|
1113
1113
|
opIndex: i.opIndex
|
|
1114
1114
|
});
|
|
1115
|
-
o === "undo" ? f.redo = i.inverse : f.inverse = i.inverse, r && (f.view =
|
|
1115
|
+
o === "undo" ? f.redo = i.inverse : f.inverse = i.inverse, r && (f.view = Kr(n.content.value));
|
|
1116
1116
|
}
|
|
1117
1117
|
Y(s, t, {
|
|
1118
1118
|
undone: o === "undo",
|
|
1119
1119
|
failure: void 0
|
|
1120
1120
|
});
|
|
1121
1121
|
} catch (e) {
|
|
1122
|
-
if (!T(s) ||
|
|
1122
|
+
if (!T(s) || qr(e)) return;
|
|
1123
1123
|
G(e), Y(s, t, { failure: {
|
|
1124
|
-
error:
|
|
1124
|
+
error: Jr(e),
|
|
1125
1125
|
context: o
|
|
1126
1126
|
} });
|
|
1127
1127
|
}
|
|
@@ -1135,7 +1135,7 @@ function Zr(e) {
|
|
|
1135
1135
|
locale: e.locale,
|
|
1136
1136
|
text: e.text,
|
|
1137
1137
|
attachments: e.attachments ?? [],
|
|
1138
|
-
operationCount:
|
|
1138
|
+
operationCount: Yr(e),
|
|
1139
1139
|
undone: e.undone,
|
|
1140
1140
|
canUndo: !1,
|
|
1141
1141
|
canRedo: !1,
|
|
@@ -1147,7 +1147,7 @@ function Zr(e) {
|
|
|
1147
1147
|
...ce(n, t)
|
|
1148
1148
|
};
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function pe(e, t) {
|
|
1151
1151
|
for (let n of e) t.storedIds.add(n.id);
|
|
1152
1152
|
let n = new Map(t.items.map((e) => [e.id, e])), r = e.map((e) => {
|
|
1153
1153
|
let r = fe(e, t), i = n.get(r.id);
|
|
@@ -1174,7 +1174,7 @@ function Zr(e) {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
return r;
|
|
1176
1176
|
}
|
|
1177
|
-
async function
|
|
1177
|
+
async function ve(e, t = !1, n = !1, r = e.scope.historyGeneration) {
|
|
1178
1178
|
let { scope: a } = e;
|
|
1179
1179
|
if (!T(a) || r !== a.historyGeneration || !n && e.controller.signal.aborted || !t && a.loaded) return;
|
|
1180
1180
|
let o = a.memory;
|
|
@@ -1183,12 +1183,12 @@ function Zr(e) {
|
|
|
1183
1183
|
a.isLoadingHistory.value = !0, a.loaded = !1;
|
|
1184
1184
|
try {
|
|
1185
1185
|
await H(i.list(a.id).then((t) => {
|
|
1186
|
-
!l && o.generation === a.generation && r === a.historyGeneration && (n || T(a) && !e.controller.signal.aborted) && (o.items =
|
|
1186
|
+
!l && o.generation === a.generation && r === a.historyGeneration && (n || T(a) && !e.controller.signal.aborted) && (o.items = pe(t, o), a.messages.value = o.items, a.loaded = !0, a.failure.value?.context === "history" && (a.failure.value = null));
|
|
1187
1187
|
}), n ? a.lifetime.signal : e.controller.signal);
|
|
1188
1188
|
} catch (e) {
|
|
1189
|
-
if (!T(a) || r !== a.historyGeneration ||
|
|
1189
|
+
if (!T(a) || r !== a.historyGeneration || qr(e)) return;
|
|
1190
1190
|
G(e), a.failure.value = {
|
|
1191
|
-
error:
|
|
1191
|
+
error: Jr(e),
|
|
1192
1192
|
context: "history"
|
|
1193
1193
|
};
|
|
1194
1194
|
} finally {
|
|
@@ -1196,7 +1196,7 @@ function Zr(e) {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function ye(e = w()) {
|
|
1200
1200
|
if (!e || !T(e)) return Promise.resolve();
|
|
1201
1201
|
if (e.pendingHistory?.generation === e.historyGeneration) return e.pendingHistory.promise;
|
|
1202
1202
|
if (e.loaded) return Promise.resolve();
|
|
@@ -1204,11 +1204,11 @@ function Zr(e) {
|
|
|
1204
1204
|
generation: t,
|
|
1205
1205
|
promise: Promise.resolve()
|
|
1206
1206
|
};
|
|
1207
|
-
return n.promise = R("history", e, (e) =>
|
|
1207
|
+
return n.promise = R("history", e, (e) => ve(e, !1, !1, t), () => {}).finally(() => {
|
|
1208
1208
|
e.pendingHistory === n && (e.pendingHistory = null);
|
|
1209
1209
|
}), e.pendingHistory = n, n.promise;
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function be() {
|
|
1212
1212
|
let e = w();
|
|
1213
1213
|
return !e || i && typeof i.clear != "function" || e.active && e.active.kind !== "history" && e.active.kind !== "read" || e.queue.some((e) => e.kind !== "history" && e.kind !== "read") ? Promise.resolve() : (te(e), e.active?.controller.abort(), R("clear", e, async () => {
|
|
1214
1214
|
try {
|
|
@@ -1217,14 +1217,14 @@ function Zr(e) {
|
|
|
1217
1217
|
} catch (t) {
|
|
1218
1218
|
if (!T(e)) return;
|
|
1219
1219
|
G(t), e.failure.value = {
|
|
1220
|
-
error:
|
|
1220
|
+
error: Jr(t),
|
|
1221
1221
|
context: "history"
|
|
1222
1222
|
};
|
|
1223
1223
|
}
|
|
1224
1224
|
}, () => {}));
|
|
1225
1225
|
}
|
|
1226
1226
|
function xe(e) {
|
|
1227
|
-
T(e) &&
|
|
1227
|
+
T(e) && ye(e);
|
|
1228
1228
|
}
|
|
1229
1229
|
function Se(t) {
|
|
1230
1230
|
let n = w();
|
|
@@ -1278,11 +1278,11 @@ function Zr(e) {
|
|
|
1278
1278
|
let t = g.value, n = t === null ? null : h(t);
|
|
1279
1279
|
_.value = n, n && s.value === "chat" && xe(n);
|
|
1280
1280
|
}, { flush: "sync" }));
|
|
1281
|
-
async function
|
|
1281
|
+
async function je(i, o) {
|
|
1282
1282
|
let s = b, c = w(), l = t.altText, u = new AbortController(), d = () => u.abort(o?.reason), f = () => u.abort();
|
|
1283
1283
|
try {
|
|
1284
1284
|
if (o?.throwIfAborted(), !c || typeof l != "function") throw new Q("This AI feature isn't available.", 403, "feature_unavailable");
|
|
1285
|
-
let t = E(n.content.value), p = n.activeLocale?.value ?? null, m =
|
|
1285
|
+
let t = E(n.content.value), p = n.activeLocale?.value ?? null, m = le(t, p ?? Z(t)), h = Hn(m, i);
|
|
1286
1286
|
if (!h) throw new Q("The image is no longer available.", 409, "block_missing");
|
|
1287
1287
|
o?.addEventListener("abort", d, { once: !0 }), c.lifetime.signal.addEventListener("abort", f, { once: !0 });
|
|
1288
1288
|
let { url: g, ..._ } = h, v = await H(l({
|
|
@@ -1302,13 +1302,13 @@ function Zr(e) {
|
|
|
1302
1302
|
o?.removeEventListener("abort", d), c?.lifetime.signal.removeEventListener("abort", f);
|
|
1303
1303
|
}
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1305
|
+
function Me(e) {
|
|
1306
1306
|
let t = b, r = w();
|
|
1307
1307
|
if (!r || e.length === 0) return Promise.resolve();
|
|
1308
|
-
let i = n.activeLocale?.value ?? null, a = E(n.content.value), o =
|
|
1308
|
+
let i = n.activeLocale?.value ?? null, a = E(n.content.value), o = le(a, i ?? Z(a)), s = e.map(({ blockId: e, alt: t, decorative: n, expect: r }) => ({
|
|
1309
1309
|
op: "updateBlock",
|
|
1310
1310
|
blockId: e,
|
|
1311
|
-
expect: { ...r ??
|
|
1311
|
+
expect: { ...r ?? Vn(o, e) ?? {
|
|
1312
1312
|
src: null,
|
|
1313
1313
|
alt: null,
|
|
1314
1314
|
decorative: null
|
|
@@ -1325,7 +1325,7 @@ function Zr(e) {
|
|
|
1325
1325
|
for (let t = 0; t < s.length; t += 100) {
|
|
1326
1326
|
V(e);
|
|
1327
1327
|
let a = oe(s.slice(t, t + 100), n, r, i);
|
|
1328
|
-
if (!a.applied) throw new
|
|
1328
|
+
if (!a.applied) throw new he(a.message, {
|
|
1329
1329
|
code: a.code,
|
|
1330
1330
|
opIndex: a.opIndex
|
|
1331
1331
|
});
|
|
@@ -1369,7 +1369,7 @@ function Zr(e) {
|
|
|
1369
1369
|
isTemplateEmpty: k,
|
|
1370
1370
|
send: (e, n = []) => {
|
|
1371
1371
|
let r = t.chat;
|
|
1372
|
-
return typeof r == "function" ?
|
|
1372
|
+
return typeof r == "function" ? de("chat", e, (t, i, a) => r({
|
|
1373
1373
|
...t,
|
|
1374
1374
|
message: e,
|
|
1375
1375
|
selectedBlockId: ie(),
|
|
@@ -1387,7 +1387,7 @@ function Zr(e) {
|
|
|
1387
1387
|
},
|
|
1388
1388
|
fix: (e) => {
|
|
1389
1389
|
let n = t.fixFinding;
|
|
1390
|
-
return typeof n == "function" ?
|
|
1390
|
+
return typeof n == "function" ? de("fix", `Fix: ${e.message}`, (t, r, i) => n({
|
|
1391
1391
|
...t,
|
|
1392
1392
|
finding: e
|
|
1393
1393
|
}, r, i)) : Promise.resolve({
|
|
@@ -1398,9 +1398,9 @@ function Zr(e) {
|
|
|
1398
1398
|
});
|
|
1399
1399
|
},
|
|
1400
1400
|
stop: Ee,
|
|
1401
|
-
newChat:
|
|
1402
|
-
undoMessage: (e) =>
|
|
1403
|
-
redoMessage: (e) =>
|
|
1401
|
+
newChat: be,
|
|
1402
|
+
undoMessage: (e) => X(e, "undo"),
|
|
1403
|
+
redoMessage: (e) => X(e, "redo"),
|
|
1404
1404
|
rewrite: (e, n, r) => {
|
|
1405
1405
|
let i = b, a = w(), o = t.rewrite;
|
|
1406
1406
|
return !a || typeof o != "function" ? Promise.reject(/* @__PURE__ */ Error("Rewrite isn't available.")) : R("read", a, async (t) => {
|
|
@@ -1424,8 +1424,8 @@ function Zr(e) {
|
|
|
1424
1424
|
throw new DOMException("Rewrite stopped.", "AbortError");
|
|
1425
1425
|
});
|
|
1426
1426
|
},
|
|
1427
|
-
draftAltText:
|
|
1428
|
-
applyAltTexts:
|
|
1427
|
+
draftAltText: je,
|
|
1428
|
+
applyAltTexts: Me,
|
|
1429
1429
|
destroy: () => {
|
|
1430
1430
|
if (l) return;
|
|
1431
1431
|
l = !0;
|
|
@@ -1437,54 +1437,54 @@ function Zr(e) {
|
|
|
1437
1437
|
};
|
|
1438
1438
|
}
|
|
1439
1439
|
// src/utils/aiMergeTags.ts
|
|
1440
|
-
var
|
|
1440
|
+
var $r = {
|
|
1441
1441
|
tags: 500,
|
|
1442
1442
|
value: 200,
|
|
1443
1443
|
label: 100,
|
|
1444
1444
|
group: 100,
|
|
1445
1445
|
description: 200
|
|
1446
1446
|
};
|
|
1447
|
-
function
|
|
1447
|
+
function ei(e, t) {
|
|
1448
1448
|
let n = Array.from(e);
|
|
1449
1449
|
return n.length > t ? n.slice(0, t).join("") : e;
|
|
1450
1450
|
}
|
|
1451
|
-
function
|
|
1452
|
-
return
|
|
1451
|
+
function ti(e) {
|
|
1452
|
+
return be(e) ?? "custom";
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function ni(e, t) {
|
|
1455
1455
|
let n = [];
|
|
1456
1456
|
for (let t of e) {
|
|
1457
|
-
if (n.length ===
|
|
1457
|
+
if (n.length === $r.tags) break;
|
|
1458
1458
|
let e = typeof t?.value == "string" ? t.value : "";
|
|
1459
|
-
e === "" || Array.from(e).length >
|
|
1459
|
+
e === "" || Array.from(e).length > $r.value || n.push({
|
|
1460
1460
|
value: e,
|
|
1461
|
-
label:
|
|
1462
|
-
...typeof t.group == "string" && t.group !== "" ? { group:
|
|
1463
|
-
...typeof t.description == "string" && t.description !== "" ? { description:
|
|
1461
|
+
label: ei(typeof t.label == "string" && t.label !== "" ? t.label : e, $r.label),
|
|
1462
|
+
...typeof t.group == "string" && t.group !== "" ? { group: ei(t.group, $r.group) } : {},
|
|
1463
|
+
...typeof t.description == "string" && t.description !== "" ? { description: ei(t.description, $r.description) } : {}
|
|
1464
1464
|
});
|
|
1465
1465
|
}
|
|
1466
1466
|
return {
|
|
1467
|
-
syntax:
|
|
1467
|
+
syntax: ti(t),
|
|
1468
1468
|
tags: n
|
|
1469
1469
|
};
|
|
1470
1470
|
}
|
|
1471
1471
|
// src/composables/useMediaFeature.ts
|
|
1472
|
-
function
|
|
1472
|
+
function ri(e) {
|
|
1473
1473
|
return e instanceof Error ? e : Error(String(e));
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function ii(e, t, n) {
|
|
1476
1476
|
let r = e.maxFileSize ?? Infinity;
|
|
1477
1477
|
if (t.size > r) return /* @__PURE__ */ Error(`Image is too large (${t.size} bytes). Maximum allowed is ${r} bytes.`);
|
|
1478
1478
|
let i = e.mimeTypes;
|
|
1479
1479
|
return !i || (n && n.length > 0 ? n : Object.keys(i)).some((e) => i[e]?.includes(t.type) ?? !1) ? null : /* @__PURE__ */ Error(`Unsupported image type: ${t.type || "unknown"}.`);
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1481
|
+
function ai(e) {
|
|
1482
1482
|
let { provider: t, onRequestMedia: n, getTemplateId: r, onError: i } = e, a = z(!1), o = z(void 0), s = P(() => r?.()), c = P(() => !!n || typeof t?.create == "function"), l = null;
|
|
1483
1483
|
function u(e) {
|
|
1484
1484
|
a.value = !1, l?.(e), l = null;
|
|
1485
1485
|
}
|
|
1486
1486
|
function d(e) {
|
|
1487
|
-
u(
|
|
1487
|
+
u(oi(e));
|
|
1488
1488
|
}
|
|
1489
1489
|
function f() {
|
|
1490
1490
|
u(null);
|
|
@@ -1497,7 +1497,7 @@ function ii(e) {
|
|
|
1497
1497
|
if (!t) return null;
|
|
1498
1498
|
if (e?.files?.length) {
|
|
1499
1499
|
if (typeof t.create != "function") return null;
|
|
1500
|
-
let n = e.files[0], a =
|
|
1500
|
+
let n = e.files[0], a = ii(t, n, e.accept);
|
|
1501
1501
|
if (a) return i?.(a), null;
|
|
1502
1502
|
let o = r?.();
|
|
1503
1503
|
try {
|
|
@@ -1508,11 +1508,11 @@ function ii(e) {
|
|
|
1508
1508
|
try {
|
|
1509
1509
|
t.onCreated?.(e);
|
|
1510
1510
|
} catch (e) {
|
|
1511
|
-
i?.(
|
|
1511
|
+
i?.(ri(e));
|
|
1512
1512
|
}
|
|
1513
|
-
return
|
|
1513
|
+
return oi(e);
|
|
1514
1514
|
} catch (e) {
|
|
1515
|
-
return i?.(
|
|
1515
|
+
return i?.(ri(e)), null;
|
|
1516
1516
|
}
|
|
1517
1517
|
}
|
|
1518
1518
|
return l &&= (l(null), null), o.value = e?.accept, a.value = !0, new Promise((e) => {
|
|
@@ -1528,7 +1528,7 @@ function ii(e) {
|
|
|
1528
1528
|
onError: i
|
|
1529
1529
|
};
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function oi(e) {
|
|
1532
1532
|
let t = ie(e.width, e.height);
|
|
1533
1533
|
return {
|
|
1534
1534
|
url: e.url,
|
|
@@ -1540,7 +1540,7 @@ function ai(e) {
|
|
|
1540
1540
|
};
|
|
1541
1541
|
}
|
|
1542
1542
|
// src/composables/useSavedBlocksFeature.ts
|
|
1543
|
-
function
|
|
1543
|
+
function si(e) {
|
|
1544
1544
|
let { provider: t, editor: n } = e, r = se({
|
|
1545
1545
|
provider: t,
|
|
1546
1546
|
onError: e.onError
|
|
@@ -1621,11 +1621,11 @@ function oi(e) {
|
|
|
1621
1621
|
};
|
|
1622
1622
|
}
|
|
1623
1623
|
// src/composables/useTemplatesFeature.ts
|
|
1624
|
-
var
|
|
1625
|
-
function
|
|
1626
|
-
let { provider: t, editor: n } = e, r = z("idle"), i = z(""), { start: a, stop: o } =
|
|
1624
|
+
var ci = 3e3;
|
|
1625
|
+
function li(e) {
|
|
1626
|
+
let { provider: t, editor: n } = e, r = z("idle"), i = z(""), { start: a, stop: o } = er(() => {
|
|
1627
1627
|
r.value = "idle";
|
|
1628
|
-
},
|
|
1628
|
+
}, ci, { immediate: !1 }), s = P(() => typeof t.create == "function"), c = P(() => typeof t.save == "function"), l = P(() => e.isAvailable?.() ?? !0), u = P(() => n.state.template?.name), d = P(() => {
|
|
1629
1629
|
let e = n.state.template;
|
|
1630
1630
|
return e?.updatedAt ? {
|
|
1631
1631
|
iso: e.updatedAt,
|
|
@@ -1689,7 +1689,7 @@ function ci(e) {
|
|
|
1689
1689
|
let t = e.trim();
|
|
1690
1690
|
t && t !== n.state.template?.name && (n.setName(t), S("rename"));
|
|
1691
1691
|
}
|
|
1692
|
-
return e.guardUnsavedChanges !== !1 &&
|
|
1692
|
+
return e.guardUnsavedChanges !== !1 && qn(window, "beforeunload", (e) => {
|
|
1693
1693
|
n.state.isDirty && (e.preventDefault(), e.returnValue = "");
|
|
1694
1694
|
}), {
|
|
1695
1695
|
save: g,
|
|
@@ -1723,15 +1723,15 @@ function ci(e) {
|
|
|
1723
1723
|
};
|
|
1724
1724
|
}
|
|
1725
1725
|
// src/utils/toMjml.ts
|
|
1726
|
-
async function
|
|
1726
|
+
async function ui() {
|
|
1727
1727
|
try {
|
|
1728
|
-
return await import("./chunks/src-
|
|
1728
|
+
return await import("./chunks/src-BO4aXl_Y.js");
|
|
1729
1729
|
} catch {
|
|
1730
1730
|
return null;
|
|
1731
1731
|
}
|
|
1732
1732
|
}
|
|
1733
|
-
async function
|
|
1734
|
-
let n = await
|
|
1733
|
+
async function di(e, t) {
|
|
1734
|
+
let n = await ui();
|
|
1735
1735
|
if (!n) throw Error("[Templatical] toMjml() requires the @templatical/renderer package. Please install it.");
|
|
1736
1736
|
let r = e.getCustomBlockStylesheet, i = e.getFonts?.(), a = e.getLayout?.();
|
|
1737
1737
|
return n.renderToMjml(e.getContent(), {
|
|
@@ -1747,11 +1747,11 @@ async function ui(e, t) {
|
|
|
1747
1747
|
});
|
|
1748
1748
|
}
|
|
1749
1749
|
// src/composables/useTestEmailFeature.ts
|
|
1750
|
-
var
|
|
1751
|
-
function
|
|
1750
|
+
var fi = 1200;
|
|
1751
|
+
function pi(e) {
|
|
1752
1752
|
return e instanceof Error ? e : Error(String(e));
|
|
1753
1753
|
}
|
|
1754
|
-
function
|
|
1754
|
+
function mi(e) {
|
|
1755
1755
|
let { provider: t } = e, n = z(!1), r = z(!1), i = z(!1), a = z(null), o = null, s = !1;
|
|
1756
1756
|
function c() {
|
|
1757
1757
|
o !== null && (clearTimeout(o), o = null);
|
|
@@ -1773,8 +1773,8 @@ function pi(e) {
|
|
|
1773
1773
|
if (t.includeMjml && e.renderMjml) try {
|
|
1774
1774
|
return await e.renderMjml();
|
|
1775
1775
|
} catch (t) {
|
|
1776
|
-
if ((e.usesLocalRenderer?.() ?? !0) && await
|
|
1777
|
-
s || (s = !0,
|
|
1776
|
+
if ((e.usesLocalRenderer?.() ?? !0) && await ui() === null) {
|
|
1777
|
+
s || (s = !0, Jn.warn("testEmail.includeMjml is set but @templatical/renderer is not installed — sending the template as JSON only. Install it to receive `payload.mjml`."));
|
|
1778
1778
|
return;
|
|
1779
1779
|
}
|
|
1780
1780
|
throw t;
|
|
@@ -1784,7 +1784,7 @@ function pi(e) {
|
|
|
1784
1784
|
try {
|
|
1785
1785
|
t.onSent?.(n);
|
|
1786
1786
|
} catch (t) {
|
|
1787
|
-
e.onError?.(
|
|
1787
|
+
e.onError?.(pi(t));
|
|
1788
1788
|
}
|
|
1789
1789
|
}
|
|
1790
1790
|
async function _(n) {
|
|
@@ -1800,9 +1800,9 @@ function pi(e) {
|
|
|
1800
1800
|
...r === void 0 ? {} : { mjml: r },
|
|
1801
1801
|
...s === void 0 ? {} : { allowedRecipients: s }
|
|
1802
1802
|
};
|
|
1803
|
-
await t.send(a), i.value = !0, o = setTimeout(p,
|
|
1803
|
+
await t.send(a), i.value = !0, o = setTimeout(p, fi), g(a);
|
|
1804
1804
|
} catch (t) {
|
|
1805
|
-
let n =
|
|
1805
|
+
let n = pi(t);
|
|
1806
1806
|
a.value = {
|
|
1807
1807
|
kind: "provider",
|
|
1808
1808
|
message: n.message
|
|
@@ -1830,7 +1830,7 @@ function pi(e) {
|
|
|
1830
1830
|
};
|
|
1831
1831
|
}
|
|
1832
1832
|
// src/composables/useVersionHistoryFeature.ts
|
|
1833
|
-
function
|
|
1833
|
+
function hi(e) {
|
|
1834
1834
|
let { provider: t, editor: n, history: r, conditionPreview: i, autoSave: a } = e, o = e.collaboration ?? null, s = J({
|
|
1835
1835
|
provider: t,
|
|
1836
1836
|
getTemplateId: () => n.state.template?.id ?? null,
|
|
@@ -1857,7 +1857,7 @@ function mi(e) {
|
|
|
1857
1857
|
return;
|
|
1858
1858
|
}
|
|
1859
1859
|
let t = await s.resolveContent(e);
|
|
1860
|
-
f || (l.value =
|
|
1860
|
+
f || (l.value = Ae(n.content.value), a?.pause(), o?.suspend(), c.value = e, n.setContent(t, !1));
|
|
1861
1861
|
}
|
|
1862
1862
|
async function E() {
|
|
1863
1863
|
c.value && (n.state.isDirty ? u.value = !0 : await A());
|
|
@@ -1941,11 +1941,11 @@ function mi(e) {
|
|
|
1941
1941
|
};
|
|
1942
1942
|
}
|
|
1943
1943
|
// src/types/auto-save.ts
|
|
1944
|
-
function
|
|
1944
|
+
function gi(e, t) {
|
|
1945
1945
|
return e ?? t;
|
|
1946
1946
|
}
|
|
1947
1947
|
// src/utils/resolveInsertPosition.ts
|
|
1948
|
-
function
|
|
1948
|
+
function _i(e) {
|
|
1949
1949
|
let { blockType: t, selectedBlockId: n, findBlockLocation: r, isBlockLocked: i } = e;
|
|
1950
1950
|
if (!n) return {};
|
|
1951
1951
|
let a = r(n);
|
|
@@ -1962,8 +1962,8 @@ function gi(e) {
|
|
|
1962
1962
|
};
|
|
1963
1963
|
}
|
|
1964
1964
|
// src/utils/insertBlockAtSelection.ts
|
|
1965
|
-
function
|
|
1966
|
-
let { targetSectionId: n, columnIndex: r, index: i } =
|
|
1965
|
+
function vi(e, t) {
|
|
1966
|
+
let { targetSectionId: n, columnIndex: r, index: i } = _i({
|
|
1967
1967
|
blockType: t.type,
|
|
1968
1968
|
selectedBlockId: e.state.selectedBlockId,
|
|
1969
1969
|
findBlockLocation: e.findBlockLocation,
|
|
@@ -1972,7 +1972,7 @@ function _i(e, t) {
|
|
|
1972
1972
|
return e.addBlock(t, n, r, i), e.findBlockLocation(t.id) ? (e.selectBlock(t.id), !0) : !1;
|
|
1973
1973
|
}
|
|
1974
1974
|
// src/utils/withCollaborativeSave.ts
|
|
1975
|
-
function
|
|
1975
|
+
function yi(e, t, n) {
|
|
1976
1976
|
let { save: r, create: i } = e;
|
|
1977
1977
|
if (typeof r != "function") return e;
|
|
1978
1978
|
let a = /* @__PURE__ */ new Map(), o = (e) => (a.set(e.id, e.name), e);
|
|
@@ -1988,27 +1988,27 @@ function vi(e, t, n) {
|
|
|
1988
1988
|
};
|
|
1989
1989
|
}
|
|
1990
1990
|
// src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
|
|
1991
|
-
var
|
|
1991
|
+
var bi = ["aria-label"], xi = ["lang", "dir"], Si = {
|
|
1992
1992
|
key: 0,
|
|
1993
1993
|
role: "status",
|
|
1994
1994
|
"aria-busy": "true",
|
|
1995
1995
|
"data-testid": "preview-resolution-loading",
|
|
1996
1996
|
class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-6"
|
|
1997
|
-
},
|
|
1997
|
+
}, Ci = { class: "tpl:sr-only" }, wi = {
|
|
1998
1998
|
key: 1,
|
|
1999
1999
|
role: "status",
|
|
2000
2000
|
"data-testid": "preview-resolution-failed",
|
|
2001
2001
|
class: "tpl:mx-6 tpl:mt-4 tpl:rounded-md tpl:px-3 tpl:py-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg-hover)]"
|
|
2002
|
-
},
|
|
2002
|
+
}, Ti = {
|
|
2003
2003
|
key: 0,
|
|
2004
2004
|
class: "tpl-canvas-empty-content tpl:flex tpl:flex-col tpl:items-center"
|
|
2005
|
-
},
|
|
2005
|
+
}, Ei = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, Di = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, Oi = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, ki = {
|
|
2006
2006
|
key: 0,
|
|
2007
2007
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
2008
|
-
},
|
|
2008
|
+
}, Ai = {
|
|
2009
2009
|
key: 1,
|
|
2010
2010
|
class: "tpl:m-0 tpl:mt-4 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
2011
|
-
},
|
|
2011
|
+
}, ji = { class: "tpl:relative" }, Mi = /*#__PURE__*/ Be(/* @__PURE__ */ n({
|
|
2012
2012
|
__name: "Canvas",
|
|
2013
2013
|
props: {
|
|
2014
2014
|
viewport: {},
|
|
@@ -2020,25 +2020,25 @@ var yi = ["aria-label"], bi = ["lang", "dir"], xi = {
|
|
|
2020
2020
|
emits: ["select-block"],
|
|
2021
2021
|
setup(n, { emit: r }) {
|
|
2022
2022
|
let o = {
|
|
2023
|
-
section:
|
|
2024
|
-
title:
|
|
2025
|
-
paragraph:
|
|
2026
|
-
image:
|
|
2027
|
-
button:
|
|
2028
|
-
divider:
|
|
2029
|
-
spacer:
|
|
2030
|
-
html:
|
|
2031
|
-
social:
|
|
2032
|
-
menu:
|
|
2033
|
-
table:
|
|
2034
|
-
video:
|
|
2035
|
-
custom:
|
|
2036
|
-
wrapper:
|
|
2037
|
-
}, u = n, d = r, { t: p } = $(), m =
|
|
2023
|
+
section: kn,
|
|
2024
|
+
title: jn,
|
|
2025
|
+
paragraph: Dn,
|
|
2026
|
+
image: yn,
|
|
2027
|
+
button: mn,
|
|
2028
|
+
divider: fn,
|
|
2029
|
+
spacer: pn,
|
|
2030
|
+
html: vn,
|
|
2031
|
+
social: En,
|
|
2032
|
+
menu: wn,
|
|
2033
|
+
table: bn,
|
|
2034
|
+
video: On,
|
|
2035
|
+
custom: Mn,
|
|
2036
|
+
wrapper: Yn
|
|
2037
|
+
}, u = n, d = r, { t: p } = $(), m = Ot(Ut, "Canvas"), { displayBlock: h, settings: g } = dt({
|
|
2038
2038
|
content: P(() => u.content),
|
|
2039
2039
|
activeLocale: P(() => u.previewMode ? null : m.activeLocale?.value ?? null)
|
|
2040
|
-
}), _ =
|
|
2041
|
-
s(
|
|
2040
|
+
}), _ = Ot(Et, "Canvas"), v = f(It, null), x = f(Ft, null), E = f(kt, {}), D = f(xt, null), O = f(_t, null);
|
|
2041
|
+
s(St, P(() => u.previewMode)), s(Bt, P(() => u.previewMode && (D?.value ?? !1) && !O?.isConfigured));
|
|
2042
2042
|
let k = P(() => E.ai?.isFeatureEnabled("chat") ?? !1), M = P(() => k.value && (E.ai?.isFeatureEnabled("chatAttachments") ?? !1)), N = z(null);
|
|
2043
2043
|
function ee() {
|
|
2044
2044
|
N.value?.click();
|
|
@@ -2049,8 +2049,10 @@ var yi = ["aria-label"], bi = ["lang", "dir"], xi = {
|
|
|
2049
2049
|
}
|
|
2050
2050
|
let L = f(wt, null), V = P({
|
|
2051
2051
|
get: () => u.content.blocks,
|
|
2052
|
-
set: (e) =>
|
|
2053
|
-
|
|
2052
|
+
set: (e) => {
|
|
2053
|
+
u.previewMode || _n(m, e);
|
|
2054
|
+
}
|
|
2055
|
+
}), U = P(() => ce(g.value, u.viewport)), ne = P(() => U.value + 192), W = P(() => an(g.value, _.resolveFontFamily)), G = P(() => g.value?.locale?.trim() || void 0), K = P(() => Ee(g.value)), q = P(() => V.value.length === 0 && !u.previewMode), J = z(0), re = P(() => q.value && J.value > 0);
|
|
2054
2056
|
function ie() {
|
|
2055
2057
|
q.value && (J.value += 1);
|
|
2056
2058
|
}
|
|
@@ -2064,7 +2066,7 @@ var yi = ["aria-label"], bi = ["lang", "dir"], xi = {
|
|
|
2064
2066
|
u.previewMode || E.savedBlocks?.isPicking.value || e.target === e.currentTarget && d("select-block", null);
|
|
2065
2067
|
}
|
|
2066
2068
|
function le(e) {
|
|
2067
|
-
return
|
|
2069
|
+
return un(e, x, o);
|
|
2068
2070
|
}
|
|
2069
2071
|
function ue(e) {
|
|
2070
2072
|
return E.collaboration?.lockOf(e) != null;
|
|
@@ -2074,12 +2076,12 @@ var yi = ["aria-label"], bi = ["lang", "dir"], xi = {
|
|
|
2074
2076
|
let t = E.savedBlocks;
|
|
2075
2077
|
t?.isPicking.value ? t.togglePick(e) : d("select-block", e);
|
|
2076
2078
|
}
|
|
2077
|
-
function
|
|
2079
|
+
function X(e) {
|
|
2078
2080
|
return E.savedBlocks?.isPicked(e) ?? !1;
|
|
2079
2081
|
}
|
|
2080
|
-
let
|
|
2082
|
+
let fe = P(() => E.savedBlocks?.isPicking.value === !0);
|
|
2081
2083
|
function pe(e, t) {
|
|
2082
|
-
e.type
|
|
2084
|
+
u.previewMode || e.type !== "custom" || m.updateBlock(e.id, {
|
|
2083
2085
|
fieldValues: t.fieldValues,
|
|
2084
2086
|
dataSourceFetched: t.dataSourceFetched
|
|
2085
2087
|
});
|
|
@@ -2107,7 +2109,7 @@ var yi = ["aria-label"], bi = ["lang", "dir"], xi = {
|
|
|
2107
2109
|
class: "tpl-canvas-wrapper tpl:relative",
|
|
2108
2110
|
style: F({
|
|
2109
2111
|
width: `${U.value}px`,
|
|
2110
|
-
[S(
|
|
2112
|
+
[S(Nn)]: `${U.value}px`,
|
|
2111
2113
|
transition: S(oe)
|
|
2112
2114
|
})
|
|
2113
2115
|
}, [A("div", {
|
|
@@ -2119,11 +2121,11 @@ var yi = ["aria-label"], bi = ["lang", "dir"], xi = {
|
|
|
2119
2121
|
dir: K.value,
|
|
2120
2122
|
style: F(W.value),
|
|
2121
2123
|
onClick: Y
|
|
2122
|
-
}, [S(O)?.isInitialResolve.value ? (i(), y("div",
|
|
2124
|
+
}, [S(O)?.isInitialResolve.value ? (i(), y("div", Si, [A("span", Ci, j(S(p).previewResolution.resolving), 1), (i(), y(B, null, l(3, (e) => A("div", {
|
|
2123
2125
|
key: e,
|
|
2124
2126
|
"aria-hidden": "true",
|
|
2125
2127
|
class: "tpl-pulse tpl:h-16 tpl:rounded-md tpl:bg-[var(--tpl-bg-hover)]"
|
|
2126
|
-
})), 64))])) : S(O)?.hasFailed.value ? (i(), y("p",
|
|
2128
|
+
})), 64))])) : S(O)?.hasFailed.value ? (i(), y("p", wi, j(S(p).previewResolution.failed), 1)) : w("", !0), c(H(S(R), {
|
|
2127
2129
|
modelValue: V.value,
|
|
2128
2130
|
"onUpdate:modelValue": o[1] ||= (e) => V.value = e,
|
|
2129
2131
|
group: "blocks",
|
|
@@ -2142,19 +2144,19 @@ var yi = ["aria-label"], bi = ["lang", "dir"], xi = {
|
|
|
2142
2144
|
q.value && re.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
|
|
2143
2145
|
q.value && !re.value ? "tpl:border-[var(--tpl-primary)]" : ""
|
|
2144
2146
|
]),
|
|
2145
|
-
onUpdate: o[2] ||= (e) => S(
|
|
2147
|
+
onUpdate: o[2] ||= (e) => !n.previewMode && S(_n)(S(m), V.value, void 0, 0, e),
|
|
2146
2148
|
onDragenter: ie,
|
|
2147
2149
|
onDragleave: ae,
|
|
2148
2150
|
onDrop: se
|
|
2149
2151
|
}, {
|
|
2150
|
-
default: a(() => [q.value ? (i(), y("div",
|
|
2151
|
-
A("div",
|
|
2152
|
+
default: a(() => [q.value ? (i(), y("div", Ti, [
|
|
2153
|
+
A("div", Ei, [H(S(Ke), {
|
|
2152
2154
|
size: 48,
|
|
2153
2155
|
"stroke-width": 1
|
|
2154
2156
|
})]),
|
|
2155
|
-
A("p",
|
|
2156
|
-
A("p",
|
|
2157
|
-
k.value ? (i(), y("p",
|
|
2157
|
+
A("p", Di, j(S(p).canvas.noBlocks), 1),
|
|
2158
|
+
A("p", Oi, j(S(p).canvas.dragHint), 1),
|
|
2159
|
+
k.value ? (i(), y("p", ki, [
|
|
2158
2160
|
b(j(S(p).ai.canvas.chatHint) + " ", 1),
|
|
2159
2161
|
A("button", {
|
|
2160
2162
|
type: "button",
|
|
@@ -2168,7 +2170,7 @@ var yi = ["aria-label"], bi = ["lang", "dir"], xi = {
|
|
|
2168
2170
|
}), b(" " + j(S(p).ai.menu.chat), 1)]),
|
|
2169
2171
|
b(" " + j(S(p).ai.canvas.chatHintSuffix), 1)
|
|
2170
2172
|
])) : w("", !0),
|
|
2171
|
-
M.value ? (i(), y("p",
|
|
2173
|
+
M.value ? (i(), y("p", Ai, [
|
|
2172
2174
|
b(j(S(p).ai.canvas.importHint) + " ", 1),
|
|
2173
2175
|
A("button", {
|
|
2174
2176
|
type: "button",
|
|
@@ -2193,16 +2195,16 @@ var yi = ["aria-label"], bi = ["lang", "dir"], xi = {
|
|
|
2193
2195
|
])) : w("", !0), (i(!0), y(B, null, l(V.value, (r) => c((i(), y("div", {
|
|
2194
2196
|
key: r.id,
|
|
2195
2197
|
class: "tpl-block-item"
|
|
2196
|
-
}, [A("div",
|
|
2198
|
+
}, [A("div", ji, [r.type === "wrapper" ? (i(), T(t(le(r)), {
|
|
2197
2199
|
key: 0,
|
|
2198
2200
|
block: r,
|
|
2199
2201
|
viewport: n.viewport
|
|
2200
|
-
}, null, 8, ["block", "viewport"])) : (i(), T(
|
|
2202
|
+
}, null, 8, ["block", "viewport"])) : (i(), T(gn, {
|
|
2201
2203
|
key: 1,
|
|
2202
2204
|
block: r,
|
|
2203
2205
|
"display-block": S(h)(r),
|
|
2204
|
-
"is-selected": !n.previewMode && !
|
|
2205
|
-
picked:
|
|
2206
|
+
"is-selected": !n.previewMode && !fe.value && n.selectedBlockId === r.id && !ue(r.id),
|
|
2207
|
+
picked: X(r.id),
|
|
2206
2208
|
viewport: n.viewport,
|
|
2207
2209
|
"preview-mode": n.previewMode,
|
|
2208
2210
|
onSelect: (e) => de(r.id)
|
|
@@ -2210,7 +2212,7 @@ var yi = ["aria-label"], bi = ["lang", "dir"], xi = {
|
|
|
2210
2212
|
default: a(() => [(i(), T(t(le(r)), e({ block: S(h)(r) }, { ref_for: !0 }, r.type === "section" ? { sourceBlock: r } : {}, {
|
|
2211
2213
|
viewport: n.viewport,
|
|
2212
2214
|
onFetchData: (e) => pe(r, e),
|
|
2213
|
-
onUpdate: (e) => S(m).updateBlock(r.id, e)
|
|
2215
|
+
onUpdate: (e) => !n.previewMode && S(m).updateBlock(r.id, e)
|
|
2214
2216
|
}), null, 16, [
|
|
2215
2217
|
"block",
|
|
2216
2218
|
"viewport",
|
|
@@ -2232,12 +2234,12 @@ var yi = ["aria-label"], bi = ["lang", "dir"], xi = {
|
|
|
2232
2234
|
"modelValue",
|
|
2233
2235
|
"disabled",
|
|
2234
2236
|
"class"
|
|
2235
|
-
]), [[te, !S(O)?.isInitialResolve.value]])], 14,
|
|
2237
|
+
]), [[te, !S(O)?.isInitialResolve.value]])], 14, xi)], 12, bi)], 4));
|
|
2236
2238
|
}
|
|
2237
|
-
}), [["__scopeId", "data-v-
|
|
2239
|
+
}), [["__scopeId", "data-v-03a9d286"]]), Ni = n({
|
|
2238
2240
|
name: "CustomBlockStylesheets",
|
|
2239
2241
|
setup() {
|
|
2240
|
-
let e = f(
|
|
2242
|
+
let e = f(jt, null);
|
|
2241
2243
|
return () => e ? e.value.map((e, t) => r("style", {
|
|
2242
2244
|
key: t,
|
|
2243
2245
|
"data-tpl-custom-block-stylesheet": "",
|
|
@@ -2246,7 +2248,7 @@ var yi = ["aria-label"], bi = ["lang", "dir"], xi = {
|
|
|
2246
2248
|
}
|
|
2247
2249
|
});
|
|
2248
2250
|
// src/utils/resolvePaletteBlocks.ts
|
|
2249
|
-
function
|
|
2251
|
+
function Pi(e, t) {
|
|
2250
2252
|
if (!t || t.length === 0) return {
|
|
2251
2253
|
items: e,
|
|
2252
2254
|
unknown: []
|
|
@@ -2264,24 +2266,24 @@ function Ni(e, t) {
|
|
|
2264
2266
|
};
|
|
2265
2267
|
}
|
|
2266
2268
|
// src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
2267
|
-
var
|
|
2269
|
+
var Fi = ["aria-label"], Ii = {
|
|
2268
2270
|
key: 0,
|
|
2269
2271
|
class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
|
|
2270
|
-
},
|
|
2272
|
+
}, Li = ["aria-label"], Ri = {
|
|
2271
2273
|
key: 0,
|
|
2272
2274
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
2273
|
-
},
|
|
2275
|
+
}, zi = [
|
|
2274
2276
|
"data-palette-type",
|
|
2275
2277
|
"aria-label",
|
|
2276
2278
|
"onClick",
|
|
2277
2279
|
"onKeydown"
|
|
2278
|
-
],
|
|
2280
|
+
], Bi = { class: "tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:transition-transform tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:scale-105" }, Vi = {
|
|
2279
2281
|
key: 0,
|
|
2280
2282
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
2281
|
-
},
|
|
2283
|
+
}, Hi = 4, Ui = /* @__PURE__ */ n({
|
|
2282
2284
|
__name: "Sidebar",
|
|
2283
2285
|
setup(e) {
|
|
2284
|
-
let { t: n, format: r } = $(), s = f(
|
|
2286
|
+
let { t: n, format: r } = $(), s = f(Mt, []), c = f(vt, void 0), u = f(Dt, void 0), d = f(Ut, null), p = Kn(), h = f(kt, {}), g = P(() => h.savedBlocks?.isAvailable.value === !0), _ = z(!1), v = z(!1), b = z(null), x = !1, C = 0;
|
|
2285
2287
|
m(() => {
|
|
2286
2288
|
window.clearTimeout(C);
|
|
2287
2289
|
});
|
|
@@ -2322,7 +2324,7 @@ var Pi = ["aria-label"], Fi = {
|
|
|
2322
2324
|
}
|
|
2323
2325
|
let L = [
|
|
2324
2326
|
"section",
|
|
2325
|
-
|
|
2327
|
+
hn,
|
|
2326
2328
|
"image",
|
|
2327
2329
|
"title",
|
|
2328
2330
|
"paragraph",
|
|
@@ -2348,21 +2350,21 @@ var Pi = ["aria-label"], Fi = {
|
|
|
2348
2350
|
label: e.name,
|
|
2349
2351
|
isCustom: !0,
|
|
2350
2352
|
icon: e.icon
|
|
2351
|
-
}))), U = P(() => [...te.value, ...V.value]), ne = P(() =>
|
|
2353
|
+
}))), U = P(() => [...te.value, ...V.value]), ne = P(() => Pi(U.value, c)), W = P(() => ne.value.items), G = /* @__PURE__ */ new Set();
|
|
2352
2354
|
o(() => ne.value.unknown, (e) => {
|
|
2353
|
-
for (let t of e) G.has(t) || (G.add(t),
|
|
2355
|
+
for (let t of e) G.has(t) || (G.add(t), Jn.warn(`config.paletteBlocks: "${t}" is not a built-in or registered custom block (use the "custom:" prefix for custom blocks) — skipping it in the palette.`));
|
|
2354
2356
|
}, { immediate: !0 });
|
|
2355
2357
|
function K(e) {
|
|
2356
2358
|
if (e.isCustom) {
|
|
2357
2359
|
let t = e.type.replace("custom:", ""), n = s.find((e) => e.type === t);
|
|
2358
|
-
if (n) return
|
|
2360
|
+
if (n) return ve(n);
|
|
2359
2361
|
}
|
|
2360
|
-
return e.type === "hero" ?
|
|
2362
|
+
return e.type === "hero" ? Cn(u?.value, n.blockDefaults.paragraph) : Re(e.type, u?.value);
|
|
2361
2363
|
}
|
|
2362
2364
|
function q(e) {
|
|
2363
2365
|
if (!d) return;
|
|
2364
2366
|
let t = K(e);
|
|
2365
|
-
|
|
2367
|
+
vi(d, t) && p(t.id);
|
|
2366
2368
|
}
|
|
2367
2369
|
function J(e) {
|
|
2368
2370
|
x || q(e);
|
|
@@ -2386,7 +2388,7 @@ var Pi = ["aria-label"], Fi = {
|
|
|
2386
2388
|
onMouseleave: D,
|
|
2387
2389
|
onFocusin: o[2] ||= (e) => _.value = !0,
|
|
2388
2390
|
onFocusout: N
|
|
2389
|
-
}, [g.value ? (i(), y("div",
|
|
2391
|
+
}, [g.value ? (i(), y("div", Ii, [A("button", {
|
|
2390
2392
|
type: "button",
|
|
2391
2393
|
"aria-label": S(n).sidebarNav.browseSavedBlocks,
|
|
2392
2394
|
class: "tpl:flex tpl:h-10 tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)]",
|
|
@@ -2396,7 +2398,7 @@ var Pi = ["aria-label"], Fi = {
|
|
|
2396
2398
|
size: 20,
|
|
2397
2399
|
"stroke-width": 1.5,
|
|
2398
2400
|
class: "tpl:shrink-0"
|
|
2399
|
-
}), _.value ? (i(), y("span",
|
|
2401
|
+
}), _.value ? (i(), y("span", Ri, j(S(n).savedBlocks.title), 1)) : w("", !0)], 12, Li)])) : w("", !0), H(S(R), {
|
|
2400
2402
|
"model-value": W.value,
|
|
2401
2403
|
group: {
|
|
2402
2404
|
name: "blocks",
|
|
@@ -2407,7 +2409,7 @@ var Pi = ["aria-label"], Fi = {
|
|
|
2407
2409
|
sort: !1,
|
|
2408
2410
|
animation: 150,
|
|
2409
2411
|
"force-fallback": !0,
|
|
2410
|
-
"fallback-tolerance":
|
|
2412
|
+
"fallback-tolerance": Hi,
|
|
2411
2413
|
class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl:gap-0.5 tpl:overflow-y-auto tpl:p-1",
|
|
2412
2414
|
onChoose: O,
|
|
2413
2415
|
onStart: M,
|
|
@@ -2423,58 +2425,58 @@ var Pi = ["aria-label"], Fi = {
|
|
|
2423
2425
|
style: F({ justifyContent: _.value ? "flex-start" : "center" }),
|
|
2424
2426
|
onClick: (t) => J(e),
|
|
2425
2427
|
onKeydown: (t) => re(t, e)
|
|
2426
|
-
}, [A("div",
|
|
2428
|
+
}, [A("div", Bi, [S(Xn)[e.type] ? (i(), T(t(S(Xn)[e.type]), {
|
|
2427
2429
|
key: 0,
|
|
2428
2430
|
size: 20,
|
|
2429
2431
|
"stroke-width": 1.5
|
|
2430
|
-
})) : e.isCustom ? (i(), T(
|
|
2432
|
+
})) : e.isCustom ? (i(), T(Pn, {
|
|
2431
2433
|
key: 1,
|
|
2432
2434
|
icon: e.icon,
|
|
2433
2435
|
size: 20
|
|
2434
|
-
}, null, 8, ["icon"])) : w("", !0)]), _.value ? (i(), y("span",
|
|
2436
|
+
}, null, 8, ["icon"])) : w("", !0)]), _.value ? (i(), y("span", Vi, j(e.label), 1)) : w("", !0)], 44, zi))), 128))]),
|
|
2435
2437
|
_: 1
|
|
2436
|
-
}, 8, ["model-value"])], 44,
|
|
2438
|
+
}, 8, ["model-value"])], 44, Fi));
|
|
2437
2439
|
}
|
|
2438
|
-
}),
|
|
2440
|
+
}), Wi = ["aria-label"], Gi = {
|
|
2439
2441
|
role: "tablist",
|
|
2440
2442
|
class: "tpl:relative tpl:flex tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-active)] tpl:p-1.5"
|
|
2441
|
-
},
|
|
2443
|
+
}, Ki = [
|
|
2442
2444
|
"aria-selected",
|
|
2443
2445
|
"aria-label",
|
|
2444
2446
|
"title"
|
|
2445
|
-
],
|
|
2447
|
+
], qi = { key: 0 }, Ji = [
|
|
2446
2448
|
"aria-selected",
|
|
2447
2449
|
"aria-label",
|
|
2448
2450
|
"title"
|
|
2449
|
-
],
|
|
2451
|
+
], Yi = { key: 0 }, Xi = [
|
|
2450
2452
|
"aria-selected",
|
|
2451
2453
|
"aria-label",
|
|
2452
2454
|
"title"
|
|
2453
|
-
],
|
|
2455
|
+
], Zi = { key: 0 }, Qi = {
|
|
2454
2456
|
key: 1,
|
|
2455
2457
|
class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
|
|
2456
|
-
},
|
|
2458
|
+
}, $i = {
|
|
2457
2459
|
key: 0,
|
|
2458
2460
|
id: "tpl-tabpanel-content",
|
|
2459
2461
|
role: "tabpanel",
|
|
2460
2462
|
"aria-labelledby": "tpl-tab-content",
|
|
2461
2463
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2462
|
-
},
|
|
2464
|
+
}, ea = {
|
|
2463
2465
|
key: 1,
|
|
2464
2466
|
class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:px-6 tpl:py-10 tpl:text-center tpl:text-[var(--tpl-text-muted)]"
|
|
2465
|
-
},
|
|
2467
|
+
}, ta = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, na = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ra = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, ia = {
|
|
2466
2468
|
key: 1,
|
|
2467
2469
|
id: "tpl-tabpanel-settings",
|
|
2468
2470
|
role: "tabpanel",
|
|
2469
2471
|
"aria-labelledby": "tpl-tab-settings",
|
|
2470
2472
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2471
|
-
},
|
|
2473
|
+
}, aa = {
|
|
2472
2474
|
key: 2,
|
|
2473
2475
|
id: "tpl-tabpanel-issues",
|
|
2474
2476
|
role: "tabpanel",
|
|
2475
2477
|
"aria-labelledby": "tpl-tab-issues",
|
|
2476
2478
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2477
|
-
},
|
|
2479
|
+
}, oa = /* @__PURE__ */ n({
|
|
2478
2480
|
__name: "RightSidebar",
|
|
2479
2481
|
props: /*@__PURE__*/ O({
|
|
2480
2482
|
selectedBlock: {},
|
|
@@ -2491,7 +2493,7 @@ var Pi = ["aria-label"], Fi = {
|
|
|
2491
2493
|
"update-settings"
|
|
2492
2494
|
], ["update:tab"]),
|
|
2493
2495
|
setup(e, { emit: t }) {
|
|
2494
|
-
let n = g(() => import("./chunks/Toolbar-
|
|
2496
|
+
let n = g(() => import("./chunks/Toolbar-bbO5WoKo.js").then((e) => e.t)), r = g(() => import("./chunks/TemplateSettings-DnOwyN_1.js")), a = g(() => import("./chunks/IssuesPanel-3NPqHXJx.js")), s = e, c = t, { t: l } = $(), u = _(e, "tab"), d = f(At, null), p = P(() => d !== null && !d.unavailable.value), m = P(() => d?.issues.value.length ?? 0), h = f(Ht, new Set(Zn)), v = P(() => h.size > 0);
|
|
2495
2497
|
function b(e) {
|
|
2496
2498
|
return u.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] tpl:hover:text-[var(--tpl-text)]";
|
|
2497
2499
|
}
|
|
@@ -2507,9 +2509,9 @@ var Pi = ["aria-label"], Fi = {
|
|
|
2507
2509
|
!e && u.value === "issues" && (u.value = "content");
|
|
2508
2510
|
}), (t, o) => (i(), y("aside", {
|
|
2509
2511
|
"aria-label": S(l).landmarks.rightSidebar,
|
|
2510
|
-
class: C(["tpl-right-sidebar tpl:absolute tpl:top-14 tpl:bottom-0 tpl:z-40 tpl:flex tpl:box-border tpl:w-[320px] tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)] tpl:
|
|
2512
|
+
class: C(["tpl-right-sidebar tpl:absolute tpl:top-14 tpl:bottom-0 tpl:z-40 tpl:flex tpl:box-border tpl:w-[320px] tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)] tpl:border-l tpl:border-[var(--tpl-border)]", e.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"])
|
|
2511
2513
|
}, [
|
|
2512
|
-
A("div",
|
|
2514
|
+
A("div", Gi, [
|
|
2513
2515
|
A("button", {
|
|
2514
2516
|
id: "tpl-tab-content",
|
|
2515
2517
|
role: "tab",
|
|
@@ -2523,7 +2525,7 @@ var Pi = ["aria-label"], Fi = {
|
|
|
2523
2525
|
}, [H(S(st), {
|
|
2524
2526
|
size: 14,
|
|
2525
2527
|
"stroke-width": 2
|
|
2526
|
-
}), u.value === "content" ? (i(), y("span",
|
|
2528
|
+
}), u.value === "content" ? (i(), y("span", qi, j(S(l).sidebar.content), 1)) : w("", !0)], 14, Ki),
|
|
2527
2529
|
v.value ? (i(), y("button", {
|
|
2528
2530
|
key: 0,
|
|
2529
2531
|
id: "tpl-tab-settings",
|
|
@@ -2538,7 +2540,7 @@ var Pi = ["aria-label"], Fi = {
|
|
|
2538
2540
|
}, [H(S(He), {
|
|
2539
2541
|
size: 14,
|
|
2540
2542
|
"stroke-width": 1.5
|
|
2541
|
-
}), u.value === "settings" ? (i(), y("span",
|
|
2543
|
+
}), u.value === "settings" ? (i(), y("span", Yi, j(S(l).sidebar.settings), 1)) : w("", !0)], 14, Ji)) : w("", !0),
|
|
2542
2544
|
p.value ? (i(), y("button", {
|
|
2543
2545
|
key: 1,
|
|
2544
2546
|
id: "tpl-tab-issues",
|
|
@@ -2555,75 +2557,76 @@ var Pi = ["aria-label"], Fi = {
|
|
|
2555
2557
|
size: 14,
|
|
2556
2558
|
"stroke-width": 1.5
|
|
2557
2559
|
}),
|
|
2558
|
-
u.value === "issues" ? (i(), y("span",
|
|
2559
|
-
m.value > 0 ? (i(), y("span",
|
|
2560
|
-
], 14,
|
|
2560
|
+
u.value === "issues" ? (i(), y("span", Zi, j(S(l).issues.panelTabLabel), 1)) : w("", !0),
|
|
2561
|
+
m.value > 0 ? (i(), y("span", Qi, j(m.value), 1)) : w("", !0)
|
|
2562
|
+
], 14, Xi)) : w("", !0)
|
|
2561
2563
|
]),
|
|
2562
|
-
u.value === "content" ? (i(), y("div",
|
|
2564
|
+
u.value === "content" ? (i(), y("div", $i, [e.selectedBlock ? (i(), T(S(n), {
|
|
2563
2565
|
key: 0,
|
|
2564
2566
|
block: e.selectedBlock,
|
|
2565
2567
|
onUpdate: o[3] ||= (e) => c("update-block", e),
|
|
2566
2568
|
onDelete: o[4] ||= (e) => c("delete-block"),
|
|
2567
2569
|
onDuplicate: o[5] ||= (e) => c("duplicate-block")
|
|
2568
|
-
}, null, 8, ["block"])) : (i(), y("div",
|
|
2569
|
-
A("div",
|
|
2570
|
+
}, null, 8, ["block"])) : (i(), y("div", ea, [
|
|
2571
|
+
A("div", ta, [H(S(ot), {
|
|
2570
2572
|
size: 40,
|
|
2571
2573
|
"stroke-width": 1.5
|
|
2572
2574
|
})]),
|
|
2573
|
-
A("h3",
|
|
2574
|
-
A("p",
|
|
2575
|
+
A("h3", na, j(S(l).sidebar.noSelection), 1),
|
|
2576
|
+
A("p", ra, j(S(l).sidebar.noSelectionHint), 1)
|
|
2575
2577
|
]))])) : w("", !0),
|
|
2576
|
-
u.value === "settings" && v.value ? (i(), y("div",
|
|
2578
|
+
u.value === "settings" && v.value ? (i(), y("div", ia, [H(S(r), {
|
|
2577
2579
|
settings: e.settings,
|
|
2578
2580
|
onUpdate: o[6] ||= (e) => c("update-settings", e)
|
|
2579
2581
|
}, null, 8, ["settings"])])) : w("", !0),
|
|
2580
|
-
u.value === "issues" && p.value ? (i(), y("div",
|
|
2581
|
-
], 10,
|
|
2582
|
+
u.value === "issues" && p.value ? (i(), y("div", aa, [H(S(a))])) : w("", !0)
|
|
2583
|
+
], 10, Wi));
|
|
2582
2584
|
}
|
|
2583
|
-
}),
|
|
2585
|
+
}), sa = {
|
|
2584
2586
|
class: "tpl-small-screen-notice tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-4 tpl:px-6 tpl:py-10 tpl:text-center tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)]",
|
|
2585
2587
|
style: { "z-index": "10001" },
|
|
2586
2588
|
role: "status",
|
|
2587
2589
|
"data-testid": "small-screen-notice"
|
|
2588
|
-
},
|
|
2590
|
+
}, ca = { class: "tpl:text-[var(--tpl-text-dim)]" }, la = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ua = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, da = /* @__PURE__ */ n({
|
|
2589
2591
|
__name: "SmallScreenNotice",
|
|
2590
2592
|
setup(e) {
|
|
2591
2593
|
let { t } = $();
|
|
2592
|
-
return (e, n) => (i(), y("div",
|
|
2593
|
-
A("div",
|
|
2594
|
+
return (e, n) => (i(), y("div", sa, [
|
|
2595
|
+
A("div", ca, [H(S(Ve), {
|
|
2594
2596
|
size: 48,
|
|
2595
2597
|
"stroke-width": 1.5
|
|
2596
2598
|
})]),
|
|
2597
|
-
A("h2",
|
|
2598
|
-
A("p",
|
|
2599
|
+
A("h2", la, j(S(t).smallScreen.title), 1),
|
|
2600
|
+
A("p", ua, j(S(t).smallScreen.message), 1)
|
|
2599
2601
|
]));
|
|
2600
2602
|
}
|
|
2601
|
-
}),
|
|
2603
|
+
}), fa = {
|
|
2602
2604
|
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
|
|
2603
2605
|
style: {
|
|
2604
2606
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
|
|
2605
2607
|
"backdrop-filter": "blur(8px)",
|
|
2606
2608
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
2607
2609
|
}
|
|
2608
|
-
},
|
|
2610
|
+
}, pa = /* @__PURE__ */ n({
|
|
2609
2611
|
__name: "EditorFooter",
|
|
2610
2612
|
props: { positionClass: {} },
|
|
2611
2613
|
setup(e) {
|
|
2612
2614
|
let { t } = $();
|
|
2613
|
-
return (n, r) => (i(), y("footer", { class: C(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[10px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [A("div",
|
|
2615
|
+
return (n, r) => (i(), y("footer", { class: C(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[10px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [A("div", fa, [A("span", null, j(S(t).footer.poweredBy), 1), r[0] ||= U("<a href=\"https://templatical.com\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"tpl:inline-flex tpl:items-center tpl:gap-1 tpl:font-medium tpl:transition-colors tpl:hover:opacity-80 tpl:text-[var(--tpl-text-muted)]\" style=\"text-decoration:none;\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><rect x=\"10\" y=\"1\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(85% 0.08 55)\" transform=\"rotate(8 19 12)\"></rect><rect x=\"6\" y=\"2\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(77% 0.12 55)\" transform=\"rotate(-4 15 13)\"></rect><rect x=\"2\" y=\"4\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(70% 0.16 55)\"></rect><rect x=\"6\" y=\"9\" width=\"10\" height=\"1.8\" rx=\"0.9\" fill=\"white\" opacity=\"0.9\"></rect><rect x=\"6\" y=\"13.5\" width=\"7\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.6\"></rect><rect x=\"6\" y=\"17\" width=\"9\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.6\"></rect><rect x=\"6\" y=\"20.5\" width=\"5\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.4\"></rect></svg> Templatical </a>", 1)])], 2));
|
|
2614
2616
|
}
|
|
2615
|
-
}),
|
|
2616
|
-
function
|
|
2617
|
-
let t = e.centerWidth + 2 * Math.max(e.leftWidth,
|
|
2617
|
+
}), ma = (e) => Number.parseFloat(e) || 0;
|
|
2618
|
+
function ha(e) {
|
|
2619
|
+
let t = (t) => e.centerWidth + 2 * Math.max(e.leftWidth, t) + e.paddingWidth + 2 * e.columnGap + e.borderWidth, n = t(e.rightWidth - (e.statusLabelWidth ?? 0)), r = e.availableWidth < n;
|
|
2618
2620
|
return {
|
|
2619
|
-
compact:
|
|
2620
|
-
fullWidth:
|
|
2621
|
+
compact: r,
|
|
2622
|
+
fullWidth: n,
|
|
2623
|
+
statusLabel: !r && e.availableWidth >= t(e.rightWidth)
|
|
2621
2624
|
};
|
|
2622
2625
|
}
|
|
2623
|
-
function
|
|
2624
|
-
let n = L(!1), r = L(0), i, a, o = !1,
|
|
2625
|
-
function
|
|
2626
|
-
return
|
|
2626
|
+
function ga(e, t) {
|
|
2627
|
+
let n = L(!1), r = L(0), i = L(!1), a = 0, o, s, c = !1, l = !0, f = null, p, m = 0, h = 0, g = [];
|
|
2628
|
+
function _() {
|
|
2629
|
+
return g.some((e) => {
|
|
2627
2630
|
let t = e.getBoundingClientRect();
|
|
2628
2631
|
return Array.from(e.children).some((e) => {
|
|
2629
2632
|
let n = e.getBoundingClientRect();
|
|
@@ -2631,20 +2634,20 @@ function ha(e, t) {
|
|
|
2631
2634
|
});
|
|
2632
2635
|
});
|
|
2633
2636
|
}
|
|
2634
|
-
function
|
|
2635
|
-
if (!
|
|
2636
|
-
let
|
|
2637
|
-
if (
|
|
2638
|
-
if (!
|
|
2639
|
-
n.value =
|
|
2637
|
+
function v() {
|
|
2638
|
+
if (!c || !e.value || !t.value) return;
|
|
2639
|
+
let o = e.value.getBoundingClientRect().width;
|
|
2640
|
+
if (o <= 0) return;
|
|
2641
|
+
if (!l && !n.value && o >= r.value && _() && (l = !0), !l && r.value > 0) {
|
|
2642
|
+
n.value = o < r.value, i.value = !n.value && o >= a;
|
|
2640
2643
|
return;
|
|
2641
2644
|
}
|
|
2642
|
-
let
|
|
2643
|
-
for (let e of
|
|
2644
|
-
|
|
2645
|
-
for (let e of
|
|
2646
|
-
for (let e of
|
|
2647
|
-
Object.assign(
|
|
2645
|
+
let s = t.value, u = s.ownerDocument.createElement("div");
|
|
2646
|
+
for (let e of s.attributes) e.name.startsWith("data-") || u.setAttribute(e.name, e.value);
|
|
2647
|
+
u.classList.remove("tpl-header"), u.classList.add("tpl-header-measure"), u.setAttribute("aria-hidden", "true"), u.inert = !0;
|
|
2648
|
+
for (let e of s.childNodes) e !== p && u.appendChild(e.cloneNode(!0));
|
|
2649
|
+
for (let e of u.querySelectorAll("*")) e.removeAttribute("id"), e.removeAttribute("data-testid");
|
|
2650
|
+
Object.assign(u.style, {
|
|
2648
2651
|
position: "absolute",
|
|
2649
2652
|
inset: "0 auto auto 0",
|
|
2650
2653
|
width: "max-content",
|
|
@@ -2653,44 +2656,47 @@ function ha(e, t) {
|
|
|
2653
2656
|
pointerEvents: "none",
|
|
2654
2657
|
gridTemplateColumns: "max-content max-content max-content"
|
|
2655
2658
|
});
|
|
2656
|
-
let
|
|
2659
|
+
let d = [
|
|
2657
2660
|
".tpl-header-left",
|
|
2658
2661
|
".tpl-header-center",
|
|
2659
2662
|
".tpl-header-right"
|
|
2660
|
-
].map((e) =>
|
|
2661
|
-
for (let e of
|
|
2662
|
-
let
|
|
2663
|
-
if (
|
|
2664
|
-
|
|
2665
|
-
for (let e of
|
|
2663
|
+
].map((e) => u.querySelector(e));
|
|
2664
|
+
for (let e of d) e.style.width = "max-content", e.style.minWidth = "0";
|
|
2665
|
+
let f = u.querySelector(".tpl-header-identity");
|
|
2666
|
+
if (f) {
|
|
2667
|
+
f.style.width = "24px", f.style.minWidth = "24px", f.style.flexShrink = "0";
|
|
2668
|
+
for (let e of f.children) e.style.maxWidth = "100%";
|
|
2666
2669
|
}
|
|
2667
|
-
e.value.appendChild(
|
|
2670
|
+
e.value.appendChild(u);
|
|
2668
2671
|
try {
|
|
2669
|
-
let e = getComputedStyle(
|
|
2670
|
-
availableWidth:
|
|
2672
|
+
let e = getComputedStyle(u), t = d.map((e) => e.getBoundingClientRect().width), s = u.querySelector(".tpl-status-label"), c = s ? s.getBoundingClientRect().width + ma(getComputedStyle(s.parentElement).columnGap) : 0, f = {
|
|
2673
|
+
availableWidth: o,
|
|
2671
2674
|
leftWidth: t[0],
|
|
2672
2675
|
centerWidth: t[1],
|
|
2673
2676
|
rightWidth: t[2],
|
|
2674
|
-
paddingWidth:
|
|
2675
|
-
columnGap:
|
|
2676
|
-
borderWidth:
|
|
2677
|
+
paddingWidth: ma(e.paddingLeft || e.paddingInline) + ma(e.paddingRight || e.paddingInline),
|
|
2678
|
+
columnGap: ma(e.columnGap),
|
|
2679
|
+
borderWidth: ma(e.borderLeftWidth) + ma(e.borderRightWidth)
|
|
2680
|
+
}, p = ha({
|
|
2681
|
+
...f,
|
|
2682
|
+
statusLabelWidth: c
|
|
2677
2683
|
});
|
|
2678
|
-
r.value =
|
|
2684
|
+
r.value = p.fullWidth, n.value = p.compact, i.value = p.statusLabel, a = ha(f).fullWidth, l = !1;
|
|
2679
2685
|
} finally {
|
|
2680
|
-
|
|
2686
|
+
u.remove();
|
|
2681
2687
|
}
|
|
2682
2688
|
}
|
|
2683
|
-
function
|
|
2684
|
-
|
|
2685
|
-
|
|
2689
|
+
function y() {
|
|
2690
|
+
c && f === null && (f = window.requestAnimationFrame(() => {
|
|
2691
|
+
f = null, v();
|
|
2686
2692
|
}));
|
|
2687
2693
|
}
|
|
2688
|
-
function
|
|
2689
|
-
|
|
2694
|
+
function b() {
|
|
2695
|
+
c && (l = !0, y());
|
|
2690
2696
|
}
|
|
2691
2697
|
return d(() => {
|
|
2692
|
-
if (
|
|
2693
|
-
|
|
2698
|
+
if (c = !0, g = Array.from(t.value?.children ?? []), v(), !e.value || !t.value) return;
|
|
2699
|
+
p = t.value.ownerDocument.createElement("span"), p.className = "tpl-header-metric-probe", p.setAttribute("aria-hidden", "true"), p.inert = !0, p.textContent = "MWmw0123456789", Object.assign(p.style, {
|
|
2694
2700
|
position: "absolute",
|
|
2695
2701
|
inset: "0 auto auto 0",
|
|
2696
2702
|
width: "max-content",
|
|
@@ -2701,22 +2707,22 @@ function ha(e, t) {
|
|
|
2701
2707
|
whiteSpace: "pre",
|
|
2702
2708
|
visibility: "hidden",
|
|
2703
2709
|
pointerEvents: "none"
|
|
2704
|
-
}), t.value.appendChild(
|
|
2705
|
-
let n =
|
|
2706
|
-
if (
|
|
2707
|
-
|
|
2710
|
+
}), t.value.appendChild(p);
|
|
2711
|
+
let n = p.getBoundingClientRect();
|
|
2712
|
+
if (m = n.width, h = n.height, typeof ResizeObserver < "u") {
|
|
2713
|
+
o = new ResizeObserver((e) => {
|
|
2708
2714
|
let t = !1;
|
|
2709
2715
|
for (let n of e) {
|
|
2710
|
-
if (n.target !==
|
|
2716
|
+
if (n.target !== p) continue;
|
|
2711
2717
|
let { width: e, height: r } = n.contentRect;
|
|
2712
|
-
(e !==
|
|
2718
|
+
(e !== m || r !== h) && (t = !0), m = e, h = r;
|
|
2713
2719
|
}
|
|
2714
|
-
t ?
|
|
2715
|
-
}),
|
|
2716
|
-
for (let e of
|
|
2717
|
-
|
|
2720
|
+
t ? b() : y();
|
|
2721
|
+
}), o.observe(e.value);
|
|
2722
|
+
for (let e of g) o.observe(e);
|
|
2723
|
+
o.observe(p);
|
|
2718
2724
|
}
|
|
2719
|
-
|
|
2725
|
+
s = new MutationObserver(b), s.observe(t.value, {
|
|
2720
2726
|
subtree: !0,
|
|
2721
2727
|
childList: !0,
|
|
2722
2728
|
characterData: !0,
|
|
@@ -2728,22 +2734,23 @@ function ha(e, t) {
|
|
|
2728
2734
|
"aria-label",
|
|
2729
2735
|
"hidden"
|
|
2730
2736
|
]
|
|
2731
|
-
}), window.addEventListener("resize",
|
|
2737
|
+
}), window.addEventListener("resize", y);
|
|
2732
2738
|
let r = t.value.ownerDocument.fonts;
|
|
2733
|
-
r?.addEventListener("loadingdone",
|
|
2739
|
+
r?.addEventListener("loadingdone", b), r?.status === "loading" && r.ready.then(b);
|
|
2734
2740
|
}), u(() => {
|
|
2735
|
-
|
|
2741
|
+
c = !1, f !== null && (window.cancelAnimationFrame(f), f = null), o?.disconnect(), s?.disconnect(), p?.remove(), p = void 0, g = [], window.removeEventListener("resize", y), t.value?.ownerDocument.fonts?.removeEventListener("loadingdone", b);
|
|
2736
2742
|
}), {
|
|
2737
2743
|
compact: n,
|
|
2738
|
-
fullWidth: r
|
|
2744
|
+
fullWidth: r,
|
|
2745
|
+
statusLabel: i
|
|
2739
2746
|
};
|
|
2740
2747
|
}
|
|
2741
2748
|
// src/components/DarkModeToggle.vue?vue&type=script&setup=true&lang.ts
|
|
2742
|
-
var
|
|
2749
|
+
var _a = [
|
|
2743
2750
|
"aria-label",
|
|
2744
2751
|
"title",
|
|
2745
2752
|
"aria-pressed"
|
|
2746
|
-
],
|
|
2753
|
+
], va = /*#__PURE__*/ Be(/* @__PURE__ */ n({
|
|
2747
2754
|
__name: "DarkModeToggle",
|
|
2748
2755
|
props: { darkMode: { type: Boolean } },
|
|
2749
2756
|
emits: ["change"],
|
|
@@ -2776,13 +2783,13 @@ var ga = [
|
|
|
2776
2783
|
"stroke-width": 1.5
|
|
2777
2784
|
}))]),
|
|
2778
2785
|
_: 1
|
|
2779
|
-
})], 12,
|
|
2786
|
+
})], 12, _a));
|
|
2780
2787
|
}
|
|
2781
|
-
}), [["__scopeId", "data-v-632aa74f"]]),
|
|
2788
|
+
}), [["__scopeId", "data-v-632aa74f"]]), ya = [
|
|
2782
2789
|
"aria-label",
|
|
2783
2790
|
"title",
|
|
2784
2791
|
"aria-pressed"
|
|
2785
|
-
],
|
|
2792
|
+
], ba = /*#__PURE__*/ Be(/* @__PURE__ */ n({
|
|
2786
2793
|
__name: "PreviewToggle",
|
|
2787
2794
|
props: { previewMode: { type: Boolean } },
|
|
2788
2795
|
emits: ["change"],
|
|
@@ -2815,9 +2822,9 @@ var ga = [
|
|
|
2815
2822
|
"stroke-width": 1.5
|
|
2816
2823
|
}))]),
|
|
2817
2824
|
_: 1
|
|
2818
|
-
})], 12,
|
|
2825
|
+
})], 12, ya));
|
|
2819
2826
|
}
|
|
2820
|
-
}), [["__scopeId", "data-v-eef7b2ca"]]),
|
|
2827
|
+
}), [["__scopeId", "data-v-eef7b2ca"]]), xa = ["aria-label", "onKeydown"], Sa = ["title", "aria-label"], Ca = /* @__PURE__ */ n({
|
|
2821
2828
|
__name: "TemplateNameField",
|
|
2822
2829
|
props: {
|
|
2823
2830
|
name: {},
|
|
@@ -2846,10 +2853,10 @@ var ga = [
|
|
|
2846
2853
|
type: "text",
|
|
2847
2854
|
"data-testid": "template-name-input",
|
|
2848
2855
|
"aria-label": S(a).header.templateName,
|
|
2849
|
-
class: C([S(
|
|
2856
|
+
class: C([S(Xt), "tpl:h-8 tpl:max-w-[260px] tpl:text-sm tpl:font-medium"]),
|
|
2850
2857
|
onKeydown: [x(k(d, ["prevent"]), ["enter"]), x(k(f, ["prevent"]), ["esc"])],
|
|
2851
2858
|
onBlur: d
|
|
2852
|
-
}, null, 42,
|
|
2859
|
+
}, null, 42, xa)), [[ee, s.value]]) : e.editable ? (i(), y("button", {
|
|
2853
2860
|
key: 1,
|
|
2854
2861
|
type: "button",
|
|
2855
2862
|
"data-testid": "template-name",
|
|
@@ -2857,47 +2864,48 @@ var ga = [
|
|
|
2857
2864
|
"aria-label": S(a).header.rename,
|
|
2858
2865
|
class: C(["tpl:max-w-[260px] tpl:cursor-pointer tpl:truncate tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-transparent tpl:px-2 tpl:py-1 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:border-[var(--tpl-border)] tpl:hover:bg-[var(--tpl-bg-hover)]", { "tpl:text-[var(--tpl-text-dim)]": !e.name }]),
|
|
2859
2866
|
onClick: u
|
|
2860
|
-
}, j(e.name || S(a).header.untitled), 11,
|
|
2867
|
+
}, j(e.name || S(a).header.untitled), 11, Sa)) : (i(), y("span", {
|
|
2861
2868
|
key: 2,
|
|
2862
2869
|
"data-testid": "template-name",
|
|
2863
2870
|
class: C(["tpl:max-w-[260px] tpl:truncate tpl:px-2 tpl:py-1 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]", { "tpl:text-[var(--tpl-text-dim)]": !e.name }])
|
|
2864
2871
|
}, j(e.name || S(a).header.untitled), 3));
|
|
2865
2872
|
}
|
|
2866
|
-
}),
|
|
2873
|
+
}), wa = ["title"], Ta = /* @__PURE__ */ n({
|
|
2867
2874
|
__name: "TemplateTimestamp",
|
|
2868
2875
|
props: {
|
|
2869
2876
|
iso: {},
|
|
2870
2877
|
kind: {}
|
|
2871
2878
|
},
|
|
2872
2879
|
setup(e) {
|
|
2873
|
-
let t = e, { t: n, format: r } = $(), a = f(
|
|
2874
|
-
|
|
2880
|
+
let t = e, { t: n, format: r } = $(), a = f(Tt, void 0), o = z(0);
|
|
2881
|
+
nr(() => {
|
|
2875
2882
|
o.value += 1;
|
|
2876
2883
|
}, 6e4);
|
|
2877
2884
|
let s = P(() => {
|
|
2878
|
-
let e =
|
|
2885
|
+
let e = ir(t.iso, n.time, r);
|
|
2879
2886
|
if (e === null) return "";
|
|
2880
2887
|
let i = e === n.time.justNow;
|
|
2881
2888
|
return t.kind === "updatedAt" ? i ? n.header.updatedJustNow : r(n.header.updatedAt, { time: e }) : i ? n.header.createdJustNow : r(n.header.createdAt, { time: e });
|
|
2882
|
-
}), c = P(() =>
|
|
2889
|
+
}), c = P(() => rr(t.iso, a));
|
|
2883
2890
|
return (e, t) => s.value ? (i(), y("span", {
|
|
2884
2891
|
key: 0,
|
|
2885
2892
|
"data-testid": "template-timestamp",
|
|
2886
2893
|
title: c.value,
|
|
2887
2894
|
class: "tpl:max-w-[260px] tpl:truncate tpl:px-2 tpl:text-xs tpl:leading-tight tpl:text-[var(--tpl-text-dim)]"
|
|
2888
|
-
}, j(s.value), 9,
|
|
2895
|
+
}, j(s.value), 9, wa)) : w("", !0);
|
|
2889
2896
|
}
|
|
2890
|
-
}),
|
|
2891
|
-
|
|
2892
|
-
"
|
|
2893
|
-
"
|
|
2894
|
-
|
|
2895
|
-
|
|
2897
|
+
}), Ea = [
|
|
2898
|
+
"aria-live",
|
|
2899
|
+
"data-testid",
|
|
2900
|
+
"title",
|
|
2901
|
+
"data-tooltip"
|
|
2902
|
+
], Da = {
|
|
2896
2903
|
key: 2,
|
|
2897
|
-
"
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2904
|
+
class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]"
|
|
2905
|
+
}, Oa = {
|
|
2906
|
+
key: 0,
|
|
2907
|
+
class: "tpl-status-label"
|
|
2908
|
+
}, ka = /* @__PURE__ */ n({
|
|
2901
2909
|
__name: "TemplateSaveStatus",
|
|
2902
2910
|
props: {
|
|
2903
2911
|
status: {},
|
|
@@ -2905,26 +2913,35 @@ var ga = [
|
|
|
2905
2913
|
isDirty: { type: Boolean }
|
|
2906
2914
|
},
|
|
2907
2915
|
setup(e) {
|
|
2908
|
-
let { t } = $()
|
|
2909
|
-
|
|
2916
|
+
let t = e, { t: n } = $(), r = P(() => t.status === "error" ? "error" : t.status === "saved" ? "saved" : t.isDirty ? "unsaved" : "none"), a = {
|
|
2917
|
+
error: "saveFailed",
|
|
2918
|
+
saved: "saved",
|
|
2919
|
+
unsaved: "unsaved"
|
|
2920
|
+
}, o = P(() => r.value === "none" ? "" : n.header[a[r.value]]), s = P(() => r.value === "error" ? "tpl:text-[var(--tpl-danger)]" : r.value === "saved" ? "tpl:text-[var(--tpl-success)]" : "tpl:text-[var(--tpl-text-muted)]");
|
|
2921
|
+
return (t, n) => (i(), y("div", {
|
|
2922
|
+
"aria-live": r.value === "error" ? "assertive" : "polite",
|
|
2923
|
+
"data-testid": r.value === "none" ? void 0 : `save-status-${r.value}`,
|
|
2924
|
+
title: r.value === "saved" || r.value === "unsaved" ? o.value : void 0,
|
|
2925
|
+
"data-tooltip": r.value === "error" ? e.errorMessage : void 0,
|
|
2926
|
+
class: C(["tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs", [s.value, { "tpl-tooltip": r.value === "error" }]])
|
|
2927
|
+
}, [A("span", {
|
|
2928
|
+
class: C(["tpl-status-icon tpl:inline-flex tpl:size-3 tpl:shrink-0 tpl:items-center tpl:justify-center", { "tpl:invisible": r.value === "none" }]),
|
|
2929
|
+
"aria-hidden": "true"
|
|
2930
|
+
}, [r.value === "error" ? (i(), T(S(Je), {
|
|
2910
2931
|
key: 0,
|
|
2911
|
-
"aria-live": "assertive",
|
|
2912
|
-
"data-testid": "save-status-error",
|
|
2913
|
-
class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
|
|
2914
|
-
"data-tooltip": e.errorMessage
|
|
2915
|
-
}, [H(S(Je), {
|
|
2916
2932
|
size: 12,
|
|
2917
2933
|
"stroke-width": 2.5
|
|
2918
|
-
})
|
|
2934
|
+
})) : r.value === "saved" ? (i(), T(S($e), {
|
|
2935
|
+
key: 1,
|
|
2919
2936
|
size: 12,
|
|
2920
2937
|
"stroke-width": 2.5
|
|
2921
|
-
})
|
|
2938
|
+
})) : r.value === "unsaved" ? (i(), y("span", Da)) : w("", !0)], 2), r.value === "none" ? w("", !0) : (i(), y("span", Oa, j(o.value), 1))], 10, Ea));
|
|
2922
2939
|
}
|
|
2923
|
-
}),
|
|
2940
|
+
}), Aa = [
|
|
2924
2941
|
"aria-pressed",
|
|
2925
2942
|
"aria-label",
|
|
2926
2943
|
"title"
|
|
2927
|
-
],
|
|
2944
|
+
], ja = { class: "tpl-header-label" }, Ma = /* @__PURE__ */ n({
|
|
2928
2945
|
__name: "AiHeaderMenu",
|
|
2929
2946
|
props: { feature: {} },
|
|
2930
2947
|
setup(e) {
|
|
@@ -2939,7 +2956,7 @@ var ga = [
|
|
|
2939
2956
|
"aria-pressed": r.value,
|
|
2940
2957
|
"aria-label": S(n).ai.menu.chat,
|
|
2941
2958
|
title: S(n).ai.menu.chat,
|
|
2942
|
-
class: C(S(
|
|
2959
|
+
class: C(S(Qt)),
|
|
2943
2960
|
style: F(r.value ? {
|
|
2944
2961
|
backgroundColor: "var(--tpl-primary-light)",
|
|
2945
2962
|
borderColor: "var(--tpl-primary-light)"
|
|
@@ -2950,24 +2967,28 @@ var ga = [
|
|
|
2950
2967
|
"stroke-width": 2,
|
|
2951
2968
|
class: "tpl:text-[var(--tpl-primary-hover)]",
|
|
2952
2969
|
"aria-hidden": "true"
|
|
2953
|
-
}), A("span",
|
|
2970
|
+
}), A("span", ja, j(S(n).ai.menu.button), 1)], 14, Aa)) : w("", !0);
|
|
2954
2971
|
}
|
|
2955
|
-
}),
|
|
2972
|
+
}), Na = [
|
|
2973
|
+
"data-compact",
|
|
2974
|
+
"data-full-width",
|
|
2975
|
+
"data-status-label"
|
|
2976
|
+
], Pa = { class: "tpl-header-left tpl:flex tpl:min-w-0 tpl:items-center tpl:gap-2.5" }, Fa = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, Ia = { class: "tpl-header-right tpl:flex tpl:min-w-0 tpl:items-center tpl:justify-end tpl:gap-3" }, La = [
|
|
2956
2977
|
"aria-label",
|
|
2957
2978
|
"title",
|
|
2958
2979
|
"aria-expanded"
|
|
2959
|
-
],
|
|
2980
|
+
], Ra = { class: "tpl-header-label" }, za = {
|
|
2960
2981
|
key: 0,
|
|
2961
2982
|
class: "tpl-header-comment-count tpl:inline-flex tpl:size-4.5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[10px] tpl:font-semibold tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]"
|
|
2962
|
-
},
|
|
2983
|
+
}, Ba = [
|
|
2963
2984
|
"aria-label",
|
|
2964
2985
|
"title",
|
|
2965
2986
|
"disabled"
|
|
2966
|
-
],
|
|
2987
|
+
], Va = { class: "tpl-header-label" }, Ha = [
|
|
2967
2988
|
"aria-label",
|
|
2968
2989
|
"disabled",
|
|
2969
2990
|
"title"
|
|
2970
|
-
],
|
|
2991
|
+
], Ua = { class: "tpl-header-label" }, Wa = /* @__PURE__ */ n({
|
|
2971
2992
|
__name: "EditorHeader",
|
|
2972
2993
|
props: {
|
|
2973
2994
|
editor: {},
|
|
@@ -2982,8 +3003,8 @@ var ga = [
|
|
|
2982
3003
|
ai: {}
|
|
2983
3004
|
},
|
|
2984
3005
|
setup(e) {
|
|
2985
|
-
let t = g(() => import("./chunks/VersionHistoryMenu-
|
|
2986
|
-
return (
|
|
3006
|
+
let t = g(() => import("./chunks/VersionHistoryMenu-BNPxnWiO.js")), n = g(() => import("./chunks/LanguageMenu-75uu4P2d.js")), r = g(() => import("./chunks/CollaboratorBar-BWL1Shc1.js")), a = L(null), o = L(null), { compact: s, fullWidth: c, statusLabel: l } = ga(a, o);
|
|
3007
|
+
return (u, d) => (i(), y("div", {
|
|
2987
3008
|
ref_key: "containerElement",
|
|
2988
3009
|
ref: a,
|
|
2989
3010
|
class: "tpl-header-container tpl:absolute tpl:inset-x-0 tpl:top-0 tpl:z-50 tpl:h-14"
|
|
@@ -2992,13 +3013,14 @@ var ga = [
|
|
|
2992
3013
|
ref: o,
|
|
2993
3014
|
"data-compact": S(s),
|
|
2994
3015
|
"data-full-width": S(c),
|
|
3016
|
+
"data-status-label": S(l),
|
|
2995
3017
|
class: "tpl-header tpl:absolute tpl:top-0 tpl:right-0 tpl:left-0 tpl:z-50 tpl:grid tpl:h-14 tpl:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] tpl:items-center tpl:px-4 tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:border-b tpl:border-[var(--tpl-border)]"
|
|
2996
3018
|
}, [
|
|
2997
|
-
A("div",
|
|
3019
|
+
A("div", Pa, [
|
|
2998
3020
|
e.templates?.isAvailable.value && e.templates.hasTemplate.value && (e.showTemplateName || e.templates.timestamp.value) ? (i(), y("div", {
|
|
2999
3021
|
key: 0,
|
|
3000
3022
|
class: C(["tpl-header-identity tpl:flex tpl:min-w-0 tpl:flex-col tpl:items-start", { "tpl:pb-1.5": e.showTemplateName && e.templates.timestamp.value !== null }])
|
|
3001
|
-
}, [e.showTemplateName ? (i(), T(
|
|
3023
|
+
}, [e.showTemplateName ? (i(), T(Ca, {
|
|
3002
3024
|
key: 0,
|
|
3003
3025
|
name: e.templates.name.value,
|
|
3004
3026
|
editable: e.templates.canSave.value,
|
|
@@ -3007,7 +3029,7 @@ var ga = [
|
|
|
3007
3029
|
"name",
|
|
3008
3030
|
"editable",
|
|
3009
3031
|
"onCommit"
|
|
3010
|
-
])) : w("", !0), e.templates.timestamp.value ? (i(), T(
|
|
3032
|
+
])) : w("", !0), e.templates.timestamp.value ? (i(), T(Ta, {
|
|
3011
3033
|
key: 1,
|
|
3012
3034
|
class: "tpl-header-timestamp",
|
|
3013
3035
|
iso: e.templates.timestamp.value.iso,
|
|
@@ -3024,8 +3046,8 @@ var ga = [
|
|
|
3024
3046
|
"is-loading": e.versionHistory.isLoading.value,
|
|
3025
3047
|
"is-restoring": e.versionHistory.isRestoring.value,
|
|
3026
3048
|
"previewing-id": e.versionHistory.previewingVersion.value?.id ?? null,
|
|
3027
|
-
onOpen:
|
|
3028
|
-
onNavigate:
|
|
3049
|
+
onOpen: d[0] ||= (t) => e.versionHistory.refresh(),
|
|
3050
|
+
onNavigate: d[1] ||= (t) => e.versionHistory.navigate(t)
|
|
3029
3051
|
}, null, 8, [
|
|
3030
3052
|
"versions",
|
|
3031
3053
|
"is-loading",
|
|
@@ -3037,24 +3059,24 @@ var ga = [
|
|
|
3037
3059
|
people: e.collaboration.people.value,
|
|
3038
3060
|
connection: e.collaboration.connection.value
|
|
3039
3061
|
}, null, 8, ["people", "connection"])) : w("", !0),
|
|
3040
|
-
h(
|
|
3062
|
+
h(u.$slots, "left-extras")
|
|
3041
3063
|
]),
|
|
3042
|
-
A("div",
|
|
3043
|
-
H(
|
|
3064
|
+
A("div", Fa, [
|
|
3065
|
+
H(Qn, {
|
|
3044
3066
|
viewport: e.editor.state.viewport,
|
|
3045
3067
|
onChange: e.editor.setViewport
|
|
3046
3068
|
}, null, 8, ["viewport", "onChange"]),
|
|
3047
|
-
H(
|
|
3069
|
+
H(va, {
|
|
3048
3070
|
"dark-mode": e.editor.state.darkMode,
|
|
3049
3071
|
onChange: e.editor.setDarkMode
|
|
3050
3072
|
}, null, 8, ["dark-mode", "onChange"]),
|
|
3051
|
-
H(
|
|
3073
|
+
H(ba, {
|
|
3052
3074
|
"preview-mode": e.editor.state.previewMode,
|
|
3053
3075
|
onChange: e.editor.setPreviewMode
|
|
3054
3076
|
}, null, 8, ["preview-mode", "onChange"])
|
|
3055
3077
|
]),
|
|
3056
|
-
A("div",
|
|
3057
|
-
e.templates?.isAvailable.value && e.templates.canSave.value ? (i(), T(
|
|
3078
|
+
A("div", Ia, [
|
|
3079
|
+
e.templates?.isAvailable.value && e.templates.canSave.value ? (i(), T(ka, {
|
|
3058
3080
|
key: 0,
|
|
3059
3081
|
class: "tpl-header-save-status",
|
|
3060
3082
|
status: e.templates.status.value,
|
|
@@ -3072,25 +3094,25 @@ var ga = [
|
|
|
3072
3094
|
"aria-label": e.comments.unresolvedCount.value > 0 ? `${e.core.t.comments.button} (${e.comments.unresolvedCount.value})` : e.core.t.comments.button,
|
|
3073
3095
|
title: e.core.t.comments.button,
|
|
3074
3096
|
"aria-expanded": e.comments.isOpen.value,
|
|
3075
|
-
class: C(S(
|
|
3097
|
+
class: C(S(Qt)),
|
|
3076
3098
|
style: F(e.comments.isOpen.value ? {
|
|
3077
3099
|
backgroundColor: "var(--tpl-primary-light)",
|
|
3078
3100
|
borderColor: "var(--tpl-primary-light)"
|
|
3079
3101
|
} : void 0),
|
|
3080
|
-
onClick:
|
|
3102
|
+
onClick: d[2] ||= (t) => e.comments.toggle()
|
|
3081
3103
|
}, [
|
|
3082
|
-
H(S(
|
|
3104
|
+
H(S(at), {
|
|
3083
3105
|
size: 16,
|
|
3084
3106
|
"stroke-width": 2
|
|
3085
3107
|
}),
|
|
3086
|
-
A("span",
|
|
3087
|
-
e.comments.unresolvedCount.value > 0 && !e.comments.isOpen.value ? (i(), y("span",
|
|
3088
|
-
], 14,
|
|
3089
|
-
e.ai ? (i(), T(
|
|
3108
|
+
A("span", Ra, j(e.core.t.comments.button), 1),
|
|
3109
|
+
e.comments.unresolvedCount.value > 0 && !e.comments.isOpen.value ? (i(), y("span", za, j(e.comments.unresolvedCount.value), 1)) : w("", !0)
|
|
3110
|
+
], 14, La)) : w("", !0),
|
|
3111
|
+
e.ai ? (i(), T(Ma, {
|
|
3090
3112
|
key: 2,
|
|
3091
3113
|
feature: e.ai
|
|
3092
3114
|
}, null, 8, ["feature"])) : w("", !0),
|
|
3093
|
-
h(
|
|
3115
|
+
h(u.$slots, "right-extras"),
|
|
3094
3116
|
e.testEmail?.isAvailable.value ? (i(), y("button", {
|
|
3095
3117
|
key: 3,
|
|
3096
3118
|
type: "button",
|
|
@@ -3098,28 +3120,28 @@ var ga = [
|
|
|
3098
3120
|
"aria-label": e.core.t.testEmail.title,
|
|
3099
3121
|
title: e.core.t.testEmail.title,
|
|
3100
3122
|
disabled: e.testEmail.isSending.value,
|
|
3101
|
-
class: C(S(
|
|
3102
|
-
onClick:
|
|
3123
|
+
class: C(S(Qt)),
|
|
3124
|
+
onClick: d[3] ||= (t) => e.testEmail.open()
|
|
3103
3125
|
}, [e.testEmail.isSending.value ? (i(), T(S(tt), {
|
|
3104
3126
|
key: 1,
|
|
3105
3127
|
class: "tpl-spinner",
|
|
3106
3128
|
size: 16,
|
|
3107
3129
|
"stroke-width": 2
|
|
3108
|
-
})) : (i(), T(S(
|
|
3130
|
+
})) : (i(), T(S(rt), {
|
|
3109
3131
|
key: 0,
|
|
3110
3132
|
size: 16,
|
|
3111
3133
|
"stroke-width": 2
|
|
3112
|
-
})), A("span",
|
|
3134
|
+
})), A("span", Va, j(e.core.t.testEmail.button), 1)], 10, Ba)) : w("", !0),
|
|
3113
3135
|
e.templates?.isAvailable.value && e.templates.canSave.value ? (i(), y("button", {
|
|
3114
3136
|
key: 4,
|
|
3115
3137
|
type: "button",
|
|
3116
3138
|
"data-testid": "template-save",
|
|
3117
|
-
class: C(S(e.editor.state.isDirty && e.templates.hasTemplate.value ?
|
|
3139
|
+
class: C(S(e.editor.state.isDirty && e.templates.hasTemplate.value ? $t : Qt)),
|
|
3118
3140
|
style: F(e.editor.state.isDirty && e.templates.hasTemplate.value ? { boxShadow: "var(--tpl-shadow-sm)" } : void 0),
|
|
3119
3141
|
"aria-label": e.templates.isSaving.value ? e.core.t.header.saving : e.core.t.header.save,
|
|
3120
3142
|
disabled: e.templates.isSaving.value || !e.templates.hasTemplate.value,
|
|
3121
3143
|
title: e.templates.hasTemplate.value ? e.core.t.header.save : e.core.t.header.saveNoTemplate,
|
|
3122
|
-
onClick:
|
|
3144
|
+
onClick: d[4] ||= (t) => e.templates.requestSave()
|
|
3123
3145
|
}, [e.templates.isSaving.value ? (i(), T(S(tt), {
|
|
3124
3146
|
key: 1,
|
|
3125
3147
|
class: "tpl-spinner",
|
|
@@ -3129,33 +3151,33 @@ var ga = [
|
|
|
3129
3151
|
key: 0,
|
|
3130
3152
|
size: 16,
|
|
3131
3153
|
"stroke-width": 2
|
|
3132
|
-
})), A("span",
|
|
3154
|
+
})), A("span", Ua, j(e.templates.isSaving.value ? e.core.t.header.saving : e.core.t.header.save), 1)], 14, Ha)) : w("", !0)
|
|
3133
3155
|
])
|
|
3134
|
-
], 8,
|
|
3156
|
+
], 8, Na)], 512));
|
|
3135
3157
|
}
|
|
3136
|
-
}),
|
|
3158
|
+
}), Ga = ["aria-labelledby", "data-tpl-theme"], Ka = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, qa = ["id"], Ja = ["aria-label"], Ya = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Xa = [
|
|
3137
3159
|
"id",
|
|
3138
3160
|
"placeholder",
|
|
3139
3161
|
"aria-label",
|
|
3140
3162
|
"aria-activedescendant"
|
|
3141
|
-
],
|
|
3163
|
+
], Za = {
|
|
3142
3164
|
key: 0,
|
|
3143
3165
|
class: "tpl:flex tpl:gap-1.5 tpl:overflow-x-auto tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2",
|
|
3144
3166
|
"data-testid": "merge-tag-picker-group-pills"
|
|
3145
|
-
},
|
|
3167
|
+
}, Qa = ["data-group-name", "onClick"], $a = ["aria-label"], eo = {
|
|
3146
3168
|
key: 0,
|
|
3147
3169
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3148
3170
|
"data-testid": "merge-tag-picker-empty"
|
|
3149
|
-
},
|
|
3171
|
+
}, to = {
|
|
3150
3172
|
key: 1,
|
|
3151
3173
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3152
3174
|
"data-testid": "merge-tag-picker-empty"
|
|
3153
|
-
},
|
|
3175
|
+
}, no = [
|
|
3154
3176
|
"aria-expanded",
|
|
3155
3177
|
"data-group-name",
|
|
3156
3178
|
"data-group-collapsed",
|
|
3157
3179
|
"onClick"
|
|
3158
|
-
],
|
|
3180
|
+
], ro = { class: "tpl:ml-1 tpl:font-normal" }, io = [
|
|
3159
3181
|
"id",
|
|
3160
3182
|
"aria-selected",
|
|
3161
3183
|
"data-selected",
|
|
@@ -3165,21 +3187,21 @@ var ga = [
|
|
|
3165
3187
|
"title",
|
|
3166
3188
|
"onMousemove",
|
|
3167
3189
|
"onClick"
|
|
3168
|
-
],
|
|
3190
|
+
], ao = { class: "tpl:text-sm tpl:font-medium" }, oo = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, so = {
|
|
3169
3191
|
key: 0,
|
|
3170
3192
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3171
|
-
},
|
|
3193
|
+
}, co = {
|
|
3172
3194
|
key: 1,
|
|
3173
3195
|
"data-testid": "merge-tag-picker-sample",
|
|
3174
3196
|
class: "tpl:line-clamp-1 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3175
|
-
},
|
|
3197
|
+
}, lo = "tpl-merge-tag-picker-list", uo = /* @__PURE__ */ n({
|
|
3176
3198
|
__name: "MergeTagPickerModal",
|
|
3177
3199
|
setup(e) {
|
|
3178
|
-
let t =
|
|
3200
|
+
let t = Ot(gt, "MergeTagPickerModal"), { t: n, format: r } = $(), s = f(Rt, null), u = f(zt, null), d = f(Wt, !0), p = P(() => t.current.value !== null), m = P(() => p.value ? n.mergeTag.picker.changeTitle : n.mergeTag.picker.title);
|
|
3179
3201
|
function h(e) {
|
|
3180
3202
|
return d ? e.description ? `${e.value} — ${e.description}` : e.value : e.description || void 0;
|
|
3181
3203
|
}
|
|
3182
|
-
let g = z(""), _ =
|
|
3204
|
+
let g = z(""), _ = tr(g, 200), v = z(null), b = P(() => _.value.trim().length > 0), E = z(0), O = P(() => t.tags.value.some((e) => !!e.group)), M = z(/* @__PURE__ */ new Set());
|
|
3183
3205
|
function N(e) {
|
|
3184
3206
|
return M.value.has(e);
|
|
3185
3207
|
}
|
|
@@ -3299,13 +3321,13 @@ var ga = [
|
|
|
3299
3321
|
}
|
|
3300
3322
|
}
|
|
3301
3323
|
function Y() {
|
|
3302
|
-
if (V.value.length !== 0) return `${
|
|
3324
|
+
if (V.value.length !== 0) return `${lo}-opt-${E.value}`;
|
|
3303
3325
|
}
|
|
3304
3326
|
function ce(e) {
|
|
3305
|
-
return `${
|
|
3327
|
+
return `${lo}-opt-${e}`;
|
|
3306
3328
|
}
|
|
3307
3329
|
let le = P(() => t.tags.value.length === 0), ue = P(() => !le.value && L.value.length === 0), de = P(() => O.value && te.value.length > 1 && !b.value);
|
|
3308
|
-
return (e, o) => (i(), T(
|
|
3330
|
+
return (e, o) => (i(), T(en, {
|
|
3309
3331
|
visible: S(t).isOpen.value,
|
|
3310
3332
|
onClose: K,
|
|
3311
3333
|
onKeydown: se
|
|
@@ -3313,16 +3335,16 @@ var ga = [
|
|
|
3313
3335
|
default: a(() => [A("div", {
|
|
3314
3336
|
role: "dialog",
|
|
3315
3337
|
"aria-modal": "true",
|
|
3316
|
-
"aria-labelledby": `${
|
|
3338
|
+
"aria-labelledby": `${lo}-title`,
|
|
3317
3339
|
"data-tpl-theme": S(u),
|
|
3318
3340
|
"data-testid": "merge-tag-picker-modal",
|
|
3319
3341
|
class: "tpl tpl:flex tpl:max-h-[80%] tpl:w-[420px] tpl:max-w-full tpl:flex-col tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
3320
3342
|
style: F(S(s))
|
|
3321
3343
|
}, [
|
|
3322
|
-
A("header",
|
|
3323
|
-
id: `${
|
|
3344
|
+
A("header", Ka, [A("h2", {
|
|
3345
|
+
id: `${lo}-title`,
|
|
3324
3346
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
3325
|
-
}, j(m.value), 9,
|
|
3347
|
+
}, j(m.value), 9, qa), A("button", {
|
|
3326
3348
|
type: "button",
|
|
3327
3349
|
class: "tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
3328
3350
|
"aria-label": S(n).mergeTag.picker.close,
|
|
@@ -3331,13 +3353,13 @@ var ga = [
|
|
|
3331
3353
|
}, [H(S(ct), {
|
|
3332
3354
|
size: 16,
|
|
3333
3355
|
"stroke-width": 2
|
|
3334
|
-
})], 8,
|
|
3335
|
-
A("div",
|
|
3356
|
+
})], 8, Ja)]),
|
|
3357
|
+
A("div", Ya, [H(S(Ye), {
|
|
3336
3358
|
class: "tpl:pointer-events-none tpl:absolute tpl:top-1/2 tpl:left-5 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]",
|
|
3337
3359
|
size: 14,
|
|
3338
3360
|
"stroke-width": 2
|
|
3339
3361
|
}), c(A("input", {
|
|
3340
|
-
id: `${
|
|
3362
|
+
id: `${lo}-search`,
|
|
3341
3363
|
ref_key: "searchInputRef",
|
|
3342
3364
|
ref: v,
|
|
3343
3365
|
"onUpdate:modelValue": o[0] ||= (e) => g.value = e,
|
|
@@ -3345,34 +3367,34 @@ var ga = [
|
|
|
3345
3367
|
class: "tpl:w-full tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]",
|
|
3346
3368
|
placeholder: S(n).mergeTag.picker.searchPlaceholder,
|
|
3347
3369
|
"aria-label": S(n).mergeTag.picker.searchAriaLabel,
|
|
3348
|
-
"aria-controls":
|
|
3370
|
+
"aria-controls": lo,
|
|
3349
3371
|
"aria-activedescendant": Y(),
|
|
3350
3372
|
"data-testid": "merge-tag-picker-search",
|
|
3351
3373
|
onKeydown: o[1] ||= x(k(() => {}, ["prevent"]), ["enter"])
|
|
3352
|
-
}, null, 40,
|
|
3353
|
-
de.value ? (i(), y("div",
|
|
3374
|
+
}, null, 40, Xa), [[ee, g.value]])]),
|
|
3375
|
+
de.value ? (i(), y("div", Za, [(i(!0), y(B, null, l(te.value, (e) => (i(), y("button", {
|
|
3354
3376
|
key: e,
|
|
3355
3377
|
type: "button",
|
|
3356
3378
|
class: "tpl:flex tpl:flex-shrink-0 tpl:cursor-pointer tpl:items-center tpl:rounded-full tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-2.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
3357
3379
|
"data-testid": "merge-tag-picker-group-pill",
|
|
3358
3380
|
"data-group-name": e,
|
|
3359
3381
|
onClick: (t) => oe(e)
|
|
3360
|
-
}, j(e), 9,
|
|
3382
|
+
}, j(e), 9, Qa))), 128))])) : w("", !0),
|
|
3361
3383
|
A("div", {
|
|
3362
|
-
id:
|
|
3384
|
+
id: lo,
|
|
3363
3385
|
ref_key: "listRef",
|
|
3364
3386
|
ref: J,
|
|
3365
3387
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
3366
3388
|
role: "listbox",
|
|
3367
3389
|
"aria-label": m.value,
|
|
3368
3390
|
"data-testid": "merge-tag-picker-list"
|
|
3369
|
-
}, [le.value ? (i(), y("div",
|
|
3391
|
+
}, [le.value ? (i(), y("div", eo, j(S(n).mergeTag.picker.empty), 1)) : ue.value ? (i(), y("div", to, j(S(n).mergeTag.picker.noResults), 1)) : (i(!0), y(B, { key: 2 }, l(R.value, (e, a) => (i(), y(B, { key: a }, [e.kind === "header" ? (i(), y("button", {
|
|
3370
3392
|
key: 0,
|
|
3371
3393
|
ref_for: !0,
|
|
3372
3394
|
ref: (t) => ie(e.group, t),
|
|
3373
3395
|
type: "button",
|
|
3374
3396
|
"aria-expanded": !N(e.group),
|
|
3375
|
-
"aria-controls":
|
|
3397
|
+
"aria-controls": lo,
|
|
3376
3398
|
class: "tpl:sticky tpl:top-0 tpl:z-10 tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-[var(--tpl-bg-elevated)] tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-left tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)]",
|
|
3377
3399
|
"data-testid": "merge-tag-picker-group-header",
|
|
3378
3400
|
"data-group-name": e.group,
|
|
@@ -3385,8 +3407,8 @@ var ga = [
|
|
|
3385
3407
|
class: C(["tpl:transition-transform", N(e.group) ? "tpl:-rotate-90" : ""])
|
|
3386
3408
|
}, null, 8, ["class"]),
|
|
3387
3409
|
A("span", null, j(e.group), 1),
|
|
3388
|
-
A("span",
|
|
3389
|
-
], 8,
|
|
3410
|
+
A("span", ro, " (" + j(S(r)(S(n).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
|
|
3411
|
+
], 8, no)) : (i(), y("button", {
|
|
3390
3412
|
key: 1,
|
|
3391
3413
|
id: ce(e.index),
|
|
3392
3414
|
type: "button",
|
|
@@ -3402,23 +3424,23 @@ var ga = [
|
|
|
3402
3424
|
onMousemove: (t) => W(e.index),
|
|
3403
3425
|
onClick: (t) => G(e.tag)
|
|
3404
3426
|
}, [
|
|
3405
|
-
A("span",
|
|
3406
|
-
A("span",
|
|
3407
|
-
e.tag.description ? (i(), y("span",
|
|
3408
|
-
e.tag.sample === void 0 ? w("", !0) : (i(), y("span",
|
|
3409
|
-
], 42,
|
|
3410
|
-
], 12,
|
|
3427
|
+
A("span", ao, j(e.tag.label), 1),
|
|
3428
|
+
A("span", oo, j(e.tag.value), 1),
|
|
3429
|
+
e.tag.description ? (i(), y("span", so, j(e.tag.description), 1)) : w("", !0),
|
|
3430
|
+
e.tag.sample === void 0 ? w("", !0) : (i(), y("span", co, j(S(r)(S(n).mergeTag.picker.sample, { sample: e.tag.sample })), 1))
|
|
3431
|
+
], 42, io))], 64))), 128))], 8, $a)
|
|
3432
|
+
], 12, Ga)]),
|
|
3411
3433
|
_: 1
|
|
3412
3434
|
}, 8, ["visible"]));
|
|
3413
3435
|
}
|
|
3414
|
-
}),
|
|
3436
|
+
}), fo = ["data-logic-keyword"], po = /* @__PURE__ */ n({
|
|
3415
3437
|
__name: "LogicTagBadge",
|
|
3416
3438
|
props: {
|
|
3417
3439
|
value: {},
|
|
3418
3440
|
syntax: {}
|
|
3419
3441
|
},
|
|
3420
3442
|
setup(e) {
|
|
3421
|
-
let t = e, n = P(() =>
|
|
3443
|
+
let t = e, n = P(() => we(t.value, t.syntax)), r = P(() => fe(t.value, t.syntax));
|
|
3422
3444
|
return (e, t) => n.value ? (i(), y("span", {
|
|
3423
3445
|
key: 0,
|
|
3424
3446
|
class: "tpl:inline-flex tpl:flex-shrink-0 tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:leading-none tpl:font-bold tpl:tracking-wide tpl:uppercase",
|
|
@@ -3428,22 +3450,22 @@ var ga = [
|
|
|
3428
3450
|
},
|
|
3429
3451
|
"data-testid": "merge-tag-logic-badge",
|
|
3430
3452
|
"data-logic-keyword": r.value
|
|
3431
|
-
}, j(r.value), 9,
|
|
3453
|
+
}, j(r.value), 9, fo)) : w("", !0);
|
|
3432
3454
|
}
|
|
3433
|
-
}),
|
|
3455
|
+
}), mo = ["aria-labelledby", "data-tpl-theme"], ho = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, go = ["id"], _o = ["aria-label"], vo = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, yo = [
|
|
3434
3456
|
"id",
|
|
3435
3457
|
"placeholder",
|
|
3436
3458
|
"aria-label",
|
|
3437
3459
|
"aria-activedescendant"
|
|
3438
|
-
],
|
|
3460
|
+
], bo = ["aria-label"], xo = {
|
|
3439
3461
|
key: 0,
|
|
3440
3462
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3441
3463
|
"data-testid": "logic-picker-empty"
|
|
3442
|
-
},
|
|
3464
|
+
}, So = {
|
|
3443
3465
|
key: 1,
|
|
3444
3466
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3445
3467
|
"data-testid": "logic-picker-empty"
|
|
3446
|
-
},
|
|
3468
|
+
}, Co = ["data-group-name"], wo = [
|
|
3447
3469
|
"id",
|
|
3448
3470
|
"aria-selected",
|
|
3449
3471
|
"data-selected",
|
|
@@ -3451,19 +3473,19 @@ var ga = [
|
|
|
3451
3473
|
"data-logic-kind",
|
|
3452
3474
|
"onMousemove",
|
|
3453
3475
|
"onClick"
|
|
3454
|
-
],
|
|
3476
|
+
], To = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, Eo = { class: "tpl:text-sm tpl:font-medium" }, Do = {
|
|
3455
3477
|
key: 0,
|
|
3456
3478
|
class: "tpl:flex tpl:items-center"
|
|
3457
|
-
},
|
|
3479
|
+
}, Oo = {
|
|
3458
3480
|
key: 1,
|
|
3459
3481
|
class: "tpl:flex tpl:items-center tpl:gap-1"
|
|
3460
|
-
},
|
|
3482
|
+
}, ko = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Ao = {
|
|
3461
3483
|
key: 0,
|
|
3462
3484
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3463
|
-
},
|
|
3485
|
+
}, jo = "tpl-logic-picker-list", Mo = /* @__PURE__ */ n({
|
|
3464
3486
|
__name: "LogicTagPickerModal",
|
|
3465
3487
|
setup(e) {
|
|
3466
|
-
let t =
|
|
3488
|
+
let t = Ot(yt, "LogicTagPickerModal"), { t: n } = $(), r = f(mt, pe.liquid), s = f(Rt, null), u = f(zt, null), d = z(""), p = tr(d, 200), m = z(null), h = P(() => p.value.trim().length > 0), g = z(0);
|
|
3467
3489
|
function _(e) {
|
|
3468
3490
|
let t = p.value.trim().toLowerCase();
|
|
3469
3491
|
return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
|
|
@@ -3546,12 +3568,12 @@ var ga = [
|
|
|
3546
3568
|
}
|
|
3547
3569
|
}
|
|
3548
3570
|
function G(e) {
|
|
3549
|
-
return `${
|
|
3571
|
+
return `${jo}-opt-${e}`;
|
|
3550
3572
|
}
|
|
3551
3573
|
function K() {
|
|
3552
|
-
return I.value.length === 0 ? void 0 : `${
|
|
3574
|
+
return I.value.length === 0 ? void 0 : `${jo}-opt-${g.value}`;
|
|
3553
3575
|
}
|
|
3554
|
-
return (e, o) => (i(), T(
|
|
3576
|
+
return (e, o) => (i(), T(en, {
|
|
3555
3577
|
visible: S(t).isOpen.value,
|
|
3556
3578
|
onClose: U,
|
|
3557
3579
|
onKeydown: W
|
|
@@ -3559,16 +3581,16 @@ var ga = [
|
|
|
3559
3581
|
default: a(() => [A("div", {
|
|
3560
3582
|
role: "dialog",
|
|
3561
3583
|
"aria-modal": "true",
|
|
3562
|
-
"aria-labelledby": `${
|
|
3584
|
+
"aria-labelledby": `${jo}-title`,
|
|
3563
3585
|
"data-tpl-theme": S(u),
|
|
3564
3586
|
"data-testid": "logic-picker-modal",
|
|
3565
3587
|
class: "tpl tpl:flex tpl:max-h-[80%] tpl:w-[420px] tpl:max-w-full tpl:flex-col tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
3566
3588
|
style: F(S(s))
|
|
3567
3589
|
}, [
|
|
3568
|
-
A("header",
|
|
3569
|
-
id: `${
|
|
3590
|
+
A("header", ho, [A("h2", {
|
|
3591
|
+
id: `${jo}-title`,
|
|
3570
3592
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
3571
|
-
}, j(S(n).logicTag.picker.title), 9,
|
|
3593
|
+
}, j(S(n).logicTag.picker.title), 9, go), A("button", {
|
|
3572
3594
|
type: "button",
|
|
3573
3595
|
class: "tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
3574
3596
|
"aria-label": S(n).logicTag.picker.close,
|
|
@@ -3577,13 +3599,13 @@ var ga = [
|
|
|
3577
3599
|
}, [H(S(ct), {
|
|
3578
3600
|
size: 16,
|
|
3579
3601
|
"stroke-width": 2
|
|
3580
|
-
})], 8,
|
|
3581
|
-
A("div",
|
|
3602
|
+
})], 8, _o)]),
|
|
3603
|
+
A("div", vo, [H(S(Ye), {
|
|
3582
3604
|
class: "tpl:pointer-events-none tpl:absolute tpl:top-1/2 tpl:left-5 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]",
|
|
3583
3605
|
size: 14,
|
|
3584
3606
|
"stroke-width": 2
|
|
3585
3607
|
}), c(A("input", {
|
|
3586
|
-
id: `${
|
|
3608
|
+
id: `${jo}-search`,
|
|
3587
3609
|
ref_key: "searchInputRef",
|
|
3588
3610
|
ref: m,
|
|
3589
3611
|
"onUpdate:modelValue": o[0] ||= (e) => d.value = e,
|
|
@@ -3591,25 +3613,25 @@ var ga = [
|
|
|
3591
3613
|
class: "tpl:w-full tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]",
|
|
3592
3614
|
placeholder: S(n).logicTag.picker.searchPlaceholder,
|
|
3593
3615
|
"aria-label": S(n).logicTag.picker.searchAriaLabel,
|
|
3594
|
-
"aria-controls":
|
|
3616
|
+
"aria-controls": jo,
|
|
3595
3617
|
"aria-activedescendant": K(),
|
|
3596
3618
|
"data-testid": "logic-picker-search",
|
|
3597
3619
|
onKeydown: o[1] ||= x(k(() => {}, ["prevent"]), ["enter"])
|
|
3598
|
-
}, null, 40,
|
|
3620
|
+
}, null, 40, yo), [[ee, d.value]])]),
|
|
3599
3621
|
A("div", {
|
|
3600
|
-
id:
|
|
3622
|
+
id: jo,
|
|
3601
3623
|
ref_key: "listRef",
|
|
3602
3624
|
ref: R,
|
|
3603
3625
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
3604
3626
|
role: "listbox",
|
|
3605
3627
|
"aria-label": S(n).logicTag.picker.title,
|
|
3606
3628
|
"data-testid": "logic-picker-list"
|
|
3607
|
-
}, [L.value ? (i(), y("div",
|
|
3629
|
+
}, [L.value ? (i(), y("div", xo, j(S(n).logicTag.picker.empty), 1)) : te.value ? (i(), y("div", So, j(S(n).logicTag.picker.noResults), 1)) : (i(!0), y(B, { key: 2 }, l(N.value.rows, (e, t) => (i(), y(B, { key: t }, [e.kind === "header" ? (i(), y("div", {
|
|
3608
3630
|
key: 0,
|
|
3609
3631
|
class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
|
|
3610
3632
|
"data-testid": "logic-picker-header",
|
|
3611
3633
|
"data-group-name": e.label
|
|
3612
|
-
}, j(e.label), 9,
|
|
3634
|
+
}, j(e.label), 9, Co)) : (i(), y("button", {
|
|
3613
3635
|
key: 1,
|
|
3614
3636
|
id: G(e.index),
|
|
3615
3637
|
type: "button",
|
|
@@ -3623,32 +3645,32 @@ var ga = [
|
|
|
3623
3645
|
onMousemove: (t) => g.value = e.index,
|
|
3624
3646
|
onClick: (t) => V(e.kind === "tag" ? e.tag : e.pair)
|
|
3625
3647
|
}, [
|
|
3626
|
-
A("span",
|
|
3648
|
+
A("span", To, [A("span", Eo, j(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (i(), y("span", Do, [H(po, {
|
|
3627
3649
|
value: e.tag.value,
|
|
3628
3650
|
syntax: S(r)
|
|
3629
|
-
}, null, 8, ["value", "syntax"])])) : (i(), y("span",
|
|
3630
|
-
H(
|
|
3651
|
+
}, null, 8, ["value", "syntax"])])) : (i(), y("span", Oo, [
|
|
3652
|
+
H(po, {
|
|
3631
3653
|
value: e.pair.before,
|
|
3632
3654
|
syntax: S(r)
|
|
3633
3655
|
}, null, 8, ["value", "syntax"]),
|
|
3634
3656
|
o[2] ||= A("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
|
|
3635
|
-
H(
|
|
3657
|
+
H(po, {
|
|
3636
3658
|
value: e.pair.after,
|
|
3637
3659
|
syntax: S(r)
|
|
3638
3660
|
}, null, 8, ["value", "syntax"])
|
|
3639
3661
|
]))]),
|
|
3640
|
-
A("span",
|
|
3641
|
-
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (i(), y("span",
|
|
3642
|
-
], 42,
|
|
3643
|
-
], 12,
|
|
3662
|
+
A("span", ko, j(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
|
|
3663
|
+
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (i(), y("span", Ao, j(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : w("", !0)
|
|
3664
|
+
], 42, wo))], 64))), 128))], 8, bo)
|
|
3665
|
+
], 12, mo)]),
|
|
3644
3666
|
_: 1
|
|
3645
3667
|
}, 8, ["visible"]));
|
|
3646
3668
|
}
|
|
3647
|
-
}),
|
|
3669
|
+
}), No = ["data-tpl-theme"], Po = { class: "tpl:absolute tpl:inset-0 tpl:overflow-hidden" }, Fo = { class: "tpl-preview-overlay tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Io = { class: "tpl:absolute tpl:left-1/2 tpl:top-2 tpl:flex tpl:-translate-x-1/2 tpl:flex-col tpl:items-center tpl:gap-2" }, Lo = {
|
|
3648
3670
|
key: 0,
|
|
3649
3671
|
"data-testid": "merge-tag-mode-toggle-anchor",
|
|
3650
3672
|
class: "tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-[var(--tpl-shadow-md)]"
|
|
3651
|
-
},
|
|
3673
|
+
}, Ro = { class: "tpl-main tpl-canvas-pane tpl:flex tpl:py-8" }, zo = ["aria-label"], Bo = /*#__PURE__*/ Be(/* @__PURE__ */ n({
|
|
3652
3674
|
__name: "Editor",
|
|
3653
3675
|
props: {
|
|
3654
3676
|
config: {},
|
|
@@ -3663,7 +3685,7 @@ var ga = [
|
|
|
3663
3685
|
},
|
|
3664
3686
|
setup(e, { expose: t }) {
|
|
3665
3687
|
let n = e;
|
|
3666
|
-
s(
|
|
3688
|
+
s(pt, {
|
|
3667
3689
|
renderHtml: () => n.renderHtml?.() ?? Promise.reject(/* @__PURE__ */ Error("HTML rendering is unavailable")),
|
|
3668
3690
|
canRenderHtml: () => n.canRenderHtml?.() ?? !1,
|
|
3669
3691
|
cloud: !!n.cloud,
|
|
@@ -3676,20 +3698,20 @@ var ga = [
|
|
|
3676
3698
|
get syntax() {
|
|
3677
3699
|
return X.mergeTagSyntax;
|
|
3678
3700
|
}
|
|
3679
|
-
}, l = n.config.templates ?
|
|
3680
|
-
n.config.collaboration && !l &&
|
|
3681
|
-
let u = n.config.collaboration && l ?
|
|
3701
|
+
}, l = n.config.templates ? Rn(n.config.templates, r) : void 0;
|
|
3702
|
+
n.config.collaboration && !l && Jn.warn("config.collaboration needs config.templates: collaboration runs on a loaded template, and only a templates provider loads one. Collaboration is off.");
|
|
3703
|
+
let u = n.config.collaboration && l ? Hr({
|
|
3682
3704
|
provider: n.config.collaboration,
|
|
3683
3705
|
loadTemplate: (e) => l.load(e),
|
|
3684
3706
|
user: n.config.user,
|
|
3685
3707
|
mergeTags: r,
|
|
3686
3708
|
onRemoteChange: n.config.onRemoteChange,
|
|
3687
3709
|
onError: n.config.onError
|
|
3688
|
-
}) : null, f = l && u ?
|
|
3710
|
+
}) : null, f = l && u ? yi(l, u.core, () => {
|
|
3689
3711
|
let e = h.state.template;
|
|
3690
3712
|
return e ? {
|
|
3691
3713
|
...E(e),
|
|
3692
|
-
content:
|
|
3714
|
+
content: Ae(E(h.content.value))
|
|
3693
3715
|
} : null;
|
|
3694
3716
|
}) : l, m = z(0);
|
|
3695
3717
|
s(bt, n.config.localization);
|
|
@@ -3701,39 +3723,39 @@ var ga = [
|
|
|
3701
3723
|
},
|
|
3702
3724
|
content: n.config.content,
|
|
3703
3725
|
defaultFontFamily: n.config.fonts?.defaultFont,
|
|
3704
|
-
templateDefaults:
|
|
3726
|
+
templateDefaults: sr(n.config),
|
|
3705
3727
|
templates: f,
|
|
3706
3728
|
onError: n.config.onError,
|
|
3707
3729
|
lockedBlocks: u?.locks,
|
|
3708
3730
|
lockLocale: u?.core.lockLocale,
|
|
3709
3731
|
lockSessionId: u?.core.sessionId
|
|
3710
3732
|
}), _ = dt(h);
|
|
3711
|
-
s(
|
|
3712
|
-
let v = n.cloud ? n.cloud.attach({ editor: h }) : null, x = f ?
|
|
3733
|
+
s(Pt, _.content), h.setCustomBlockDefinitions(n.config.customBlocks ?? []), u && o(h.activeLocale, (e) => u.core.setLockLocale(e), { flush: "sync" }), u?.attach(h);
|
|
3734
|
+
let v = n.cloud ? n.cloud.attach({ editor: h }) : null, x = f ? li({
|
|
3713
3735
|
provider: f,
|
|
3714
3736
|
editor: h,
|
|
3715
3737
|
guardUnsavedChanges: n.config.templates?.unsavedChangesGuard,
|
|
3716
3738
|
getSaveGate: n.cloud ? () => n.cloud.getSaveGate() : void 0
|
|
3717
3739
|
}) : null;
|
|
3718
3740
|
n.config.onDirtyChange && o(() => h.state.isDirty, (e) => n.config.onDirtyChange(e));
|
|
3719
|
-
let D = z(null), O = n.config.savedBlocks ?
|
|
3741
|
+
let D = z(null), O = n.config.savedBlocks ? si({
|
|
3720
3742
|
provider: n.config.savedBlocks,
|
|
3721
3743
|
editor: h,
|
|
3722
3744
|
onError: n.config.onError,
|
|
3723
3745
|
isAvailable: n.cloud ? () => n.cloud.isSavedBlocksAvailable() : void 0
|
|
3724
|
-
}) : null, N = g(() => import("./chunks/SavedBlocksPanels-
|
|
3746
|
+
}) : null, N = g(() => import("./chunks/SavedBlocksPanels-CQenugHO.js")), ee = n.config.media || n.config.onRequestMedia ? ai({
|
|
3725
3747
|
provider: n.config.media,
|
|
3726
3748
|
onRequestMedia: n.config.onRequestMedia,
|
|
3727
3749
|
getTemplateId: () => h.state.template?.id,
|
|
3728
3750
|
onError: n.config.onError
|
|
3729
|
-
}) : null, I = g(() => import("./chunks/MediaPanels-
|
|
3751
|
+
}) : null, I = g(() => import("./chunks/MediaPanels-BlianNRh.js")), L = n.config.testEmail ? mi({
|
|
3730
3752
|
provider: n.config.testEmail,
|
|
3731
3753
|
getContent: () => h.content.value,
|
|
3732
3754
|
renderMjml: n.renderMjml,
|
|
3733
3755
|
usesLocalRenderer: n.usesLocalRenderer,
|
|
3734
3756
|
onError: n.config.onError,
|
|
3735
3757
|
isAvailable: n.cloud ? () => n.cloud.isTestEmailAvailable() : void 0
|
|
3736
|
-
}) : null, R = g(() => import("./chunks/TestEmailPanel-
|
|
3758
|
+
}) : null, R = g(() => import("./chunks/TestEmailPanel-DFOhhaa9.js")), B = n.config.comments ? Ur({
|
|
3737
3759
|
provider: n.config.comments,
|
|
3738
3760
|
editor: h,
|
|
3739
3761
|
user: n.config.user,
|
|
@@ -3741,7 +3763,7 @@ var ga = [
|
|
|
3741
3763
|
onError: n.config.onError,
|
|
3742
3764
|
isAvailable: n.cloud ? () => n.cloud.isCommentsAvailable() : void 0,
|
|
3743
3765
|
isBlockSaved: n.cloud ? (e) => n.cloud.isBlockSaved(e) : void 0
|
|
3744
|
-
}) : null, U = g(() => import("./chunks/CommentsPanel-
|
|
3766
|
+
}) : null, U = g(() => import("./chunks/CommentsPanel-4mrl4zMK.js")), ne = g(() => import("./chunks/AiPanels-IV0VEkBL.js")), W = n.config.ai ? Qr({
|
|
3745
3767
|
provider: n.config.ai,
|
|
3746
3768
|
editor: h,
|
|
3747
3769
|
localization: n.config.localization ?? { locales: [] },
|
|
@@ -3752,16 +3774,16 @@ var ga = [
|
|
|
3752
3774
|
collaboration: u,
|
|
3753
3775
|
history: () => X.history,
|
|
3754
3776
|
reload: x ? (e, t) => x.load(e, t) : null,
|
|
3755
|
-
altMaxLength: () =>
|
|
3756
|
-
mergeTags: () =>
|
|
3757
|
-
normalize: (e, t) =>
|
|
3777
|
+
altMaxLength: () => Un(sn(n.config)),
|
|
3778
|
+
mergeTags: () => ni(X.mergeTags.value, X.mergeTagSyntax),
|
|
3779
|
+
normalize: (e, t) => In(e, t, r),
|
|
3758
3780
|
commentsOpen: B?.isOpen ?? null,
|
|
3759
3781
|
onError: n.config.onError
|
|
3760
3782
|
}) : null;
|
|
3761
|
-
W && s(
|
|
3783
|
+
W && s(Lt, W);
|
|
3762
3784
|
let G = ft(h, n.config.customBlocks ?? []);
|
|
3763
|
-
s(
|
|
3764
|
-
let K = n.config.translation ?
|
|
3785
|
+
s(Vt, G);
|
|
3786
|
+
let K = n.config.translation ? Lr({
|
|
3765
3787
|
provider: n.config.translation,
|
|
3766
3788
|
editor: h,
|
|
3767
3789
|
localization: n.config.localization,
|
|
@@ -3771,14 +3793,14 @@ var ga = [
|
|
|
3771
3793
|
syntax: () => X.mergeTagSyntax,
|
|
3772
3794
|
coverage: () => G.value
|
|
3773
3795
|
}) : null;
|
|
3774
|
-
K && s(
|
|
3796
|
+
K && s(Nt, K);
|
|
3775
3797
|
let q = z(null);
|
|
3776
3798
|
o([() => h.state.template?.id ?? null, h.loadVersion], () => {
|
|
3777
3799
|
q.value = null;
|
|
3778
3800
|
}, { flush: "sync" }), o(() => Z(h.content.value), (e) => {
|
|
3779
3801
|
q.value && q.value.language !== e && (q.value = null);
|
|
3780
3802
|
}, { flush: "sync" });
|
|
3781
|
-
let J =
|
|
3803
|
+
let J = jr({
|
|
3782
3804
|
editor: h,
|
|
3783
3805
|
history: () => X.history,
|
|
3784
3806
|
collaboration: u
|
|
@@ -3787,25 +3809,25 @@ var ga = [
|
|
|
3787
3809
|
let t = {
|
|
3788
3810
|
language: e,
|
|
3789
3811
|
old: Z(h.content.value),
|
|
3790
|
-
count:
|
|
3812
|
+
count: Ce(h.content.value, e, n.config.customBlocks).length
|
|
3791
3813
|
}, r = J.setDefaultLocale(e);
|
|
3792
3814
|
return r.applied && (q.value = t), r;
|
|
3793
3815
|
} });
|
|
3794
|
-
let ie = g(() => import("./chunks/LocaleNotices-
|
|
3795
|
-
ce && x !== null && !x.canSave.value &&
|
|
3796
|
-
let
|
|
3816
|
+
let ie = g(() => import("./chunks/LocaleNotices-CUN5K5QJ.js")), ae = g(() => import("./chunks/CollaborationNotices-DGA8XRZJ.js")), oe = g(() => import("./chunks/CloudPanels-BiU1MD-4.js")), se = g(() => import("./chunks/CloudHeaderExtras-CazfMn6A.js")), Y = g(() => import("./chunks/VersionHistoryPanels-CyyRXWPU.js")), ce = gi(n.config.templates?.autoSave, !1), le = ce && x !== null;
|
|
3817
|
+
ce && x !== null && !x.canSave.value && Jn.warn("config.templates.autoSave is on but this provider's save is false — there is nothing to persist to. Give it a real save function, or use `onChange` to persist the content yourself."), n.config.changeDebounce !== void 0 && x !== null && n.config.templates?.autoSave === void 0 && !n.config.onChange && Jn.warn("config.changeDebounce is set but nothing will use it — config.templates.autoSave is unset and there is no onChange either, so the timer has no consumer. Set config.templates.autoSave, or add onChange, so the debounce takes effect.");
|
|
3818
|
+
let ue = n.config.onChange || le ? {
|
|
3797
3819
|
onChange: () => {
|
|
3798
3820
|
n.config.onChange?.(JSON.parse(JSON.stringify(h.state.content))), le && x.requestAutoSave();
|
|
3799
3821
|
},
|
|
3800
3822
|
...n.config.changeDebounce === void 0 ? {} : { debounce: n.config.changeDebounce }
|
|
3801
|
-
} : null,
|
|
3823
|
+
} : null, de = {
|
|
3802
3824
|
...O ? { savedBlocks: O.capability } : {},
|
|
3803
3825
|
...x ? { templates: x.capability } : {},
|
|
3804
3826
|
...L ? { testEmail: L.capability } : {},
|
|
3805
3827
|
...B ? { comments: B.capability } : {},
|
|
3806
3828
|
...u ? { collaboration: u.capability } : {},
|
|
3807
3829
|
...W ? { ai: W.capability } : {}
|
|
3808
|
-
}, X =
|
|
3830
|
+
}, X = Tn({
|
|
3809
3831
|
editor: h,
|
|
3810
3832
|
containerEl: D,
|
|
3811
3833
|
config: {
|
|
@@ -3827,25 +3849,25 @@ var ga = [
|
|
|
3827
3849
|
canDropMedia: ee?.canDrop ?? null,
|
|
3828
3850
|
resolvePreview: n.config.resolvePreview,
|
|
3829
3851
|
resolveImageUrl: n.config.resolveImageUrl,
|
|
3830
|
-
lint:
|
|
3852
|
+
lint: sn(n.config),
|
|
3831
3853
|
locale: n.config.locale
|
|
3832
3854
|
},
|
|
3833
3855
|
translations: n.translations,
|
|
3834
3856
|
fontsManager: n.fontsManager,
|
|
3835
|
-
autoSaveOptions:
|
|
3836
|
-
capabilities:
|
|
3857
|
+
autoSaveOptions: ue,
|
|
3858
|
+
capabilities: de,
|
|
3837
3859
|
editorRoot: n.shadowRoot,
|
|
3838
3860
|
history: u?.history
|
|
3839
|
-
}),
|
|
3861
|
+
}), fe = z("content");
|
|
3840
3862
|
o(() => h.state.template?.id, () => {
|
|
3841
|
-
h.selectedBlock.value && (
|
|
3863
|
+
h.selectedBlock.value && (fe.value = "content");
|
|
3842
3864
|
});
|
|
3843
|
-
let
|
|
3865
|
+
let pe = n.cloud && v ? n.cloud.ready({
|
|
3844
3866
|
core: X,
|
|
3845
|
-
capabilities:
|
|
3846
|
-
}) : null,
|
|
3867
|
+
capabilities: de
|
|
3868
|
+
}) : null, me = n.config.versionHistory ? hi({
|
|
3847
3869
|
provider: n.config.versionHistory,
|
|
3848
|
-
editor:
|
|
3870
|
+
editor: Fn(h, r),
|
|
3849
3871
|
history: X.history,
|
|
3850
3872
|
conditionPreview: X.conditionPreview,
|
|
3851
3873
|
autoSave: X.autoSave,
|
|
@@ -3861,36 +3883,36 @@ var ga = [
|
|
|
3861
3883
|
} : null,
|
|
3862
3884
|
onError: n.config.onError
|
|
3863
3885
|
}) : null;
|
|
3864
|
-
|
|
3865
|
-
let
|
|
3886
|
+
me && (de.versionHistory = me.capability);
|
|
3887
|
+
let he = P(() => B?.isOpen.value === !0 || W !== null && W.panel.value !== null || v?.panelState.rightPanelOpen.value === !0), ge = P(() => h.state.previewMode ? "tpl:left-0 tpl:right-0" : he.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"), _e = z(null), ve = z(0), ye = P(() => ({ top: `calc(3.5 * var(--tpl-base-size) + ${ve.value}px)` })), be;
|
|
3866
3888
|
d(() => {
|
|
3867
|
-
|
|
3868
|
-
e && (
|
|
3869
|
-
}),
|
|
3870
|
-
}), p(() =>
|
|
3871
|
-
let { showNotice:
|
|
3889
|
+
ve.value = _e.value?.offsetHeight ?? 0, _e.value && typeof ResizeObserver < "u" && (be = new ResizeObserver(([e]) => {
|
|
3890
|
+
e && (ve.value = e.borderBoxSize?.[0]?.blockSize ?? e.contentRect.height);
|
|
3891
|
+
}), be.observe(_e.value));
|
|
3892
|
+
}), p(() => be?.disconnect());
|
|
3893
|
+
let { showNotice: xe } = An(() => n.config.smallScreenNotice);
|
|
3872
3894
|
d(async () => {
|
|
3873
3895
|
await n.fontsManager.loadCustomFonts();
|
|
3874
3896
|
}), p(() => {
|
|
3875
3897
|
n.fontsManager.cleanupFontLinks(), W?.destroy(), n.cloud?.destroy(), X.destroy();
|
|
3876
3898
|
});
|
|
3877
|
-
let
|
|
3899
|
+
let Se = x ?? h, we = Kn(X.editorRoot);
|
|
3878
3900
|
return t({
|
|
3879
3901
|
getLocale: () => h.activeLocale.value ?? Z(h.content.value),
|
|
3880
3902
|
setLocale: (e) => h.setActiveLocale(e),
|
|
3881
3903
|
getContent: () => h.content.value,
|
|
3882
3904
|
setContent: (e) => h.setContent(e),
|
|
3883
3905
|
insertBlock: (e) => {
|
|
3884
|
-
if (h.state.previewMode) return
|
|
3906
|
+
if (h.state.previewMode) return Jn.warn("insertBlock() does nothing in preview mode."), null;
|
|
3885
3907
|
let t = Le(e);
|
|
3886
|
-
return
|
|
3908
|
+
return vi(h, t) ? (we(t.id), t.id) : null;
|
|
3887
3909
|
},
|
|
3888
3910
|
setTheme: (e) => h.setUiTheme(e),
|
|
3889
3911
|
setMergeTags: X.setMergeTags,
|
|
3890
3912
|
isDirty: () => h.state.isDirty,
|
|
3891
|
-
create:
|
|
3892
|
-
load:
|
|
3893
|
-
save:
|
|
3913
|
+
create: Se.create,
|
|
3914
|
+
load: Se.load,
|
|
3915
|
+
save: Se.save,
|
|
3894
3916
|
renderCustomBlock: X.registry.renderCustomBlock,
|
|
3895
3917
|
getCustomBlockStylesheet: (e) => X.registry.getDefinition(e)?.stylesheet
|
|
3896
3918
|
}), (t, r) => (i(), y("div", {
|
|
@@ -3902,16 +3924,16 @@ var ga = [
|
|
|
3902
3924
|
onDragover: r[8] ||= k(() => {}, ["prevent"]),
|
|
3903
3925
|
onDrop: r[9] ||= k(() => {}, ["prevent"])
|
|
3904
3926
|
}, [
|
|
3905
|
-
H(
|
|
3906
|
-
A("div",
|
|
3907
|
-
H(
|
|
3927
|
+
H(Ni),
|
|
3928
|
+
A("div", Po, [
|
|
3929
|
+
H(Wa, {
|
|
3908
3930
|
editor: S(h),
|
|
3909
3931
|
localization: n.config.localization,
|
|
3910
3932
|
core: S(X),
|
|
3911
3933
|
templates: S(x),
|
|
3912
3934
|
"show-template-name": e.config.templates?.nameField !== !1,
|
|
3913
3935
|
"test-email": S(L),
|
|
3914
|
-
"version-history": S(
|
|
3936
|
+
"version-history": S(me),
|
|
3915
3937
|
comments: S(B),
|
|
3916
3938
|
collaboration: S(u),
|
|
3917
3939
|
ai: S(W)
|
|
@@ -3941,12 +3963,12 @@ var ga = [
|
|
|
3941
3963
|
"collaboration",
|
|
3942
3964
|
"ai"
|
|
3943
3965
|
]),
|
|
3944
|
-
c(H(
|
|
3966
|
+
c(H(Ui, { style: F(ye.value) }, null, 8, ["style"]), [[te, !S(h).state.previewMode]]),
|
|
3945
3967
|
A("div", {
|
|
3946
|
-
class: C(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]",
|
|
3947
|
-
style: F(
|
|
3948
|
-
}, [A("div",
|
|
3949
|
-
default: a(() => [S(h).state.previewMode && !S(X).previewResolution.supersedesSamples.value ? (i(), y("div",
|
|
3968
|
+
class: C(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]", ge.value]),
|
|
3969
|
+
style: F(ye.value)
|
|
3970
|
+
}, [A("div", Fo, [A("div", Io, [H(M, { name: "tpl-preview-pill" }, {
|
|
3971
|
+
default: a(() => [S(h).state.previewMode && !S(X).previewResolution.supersedesSamples.value ? (i(), y("div", Lo, [H($n, {
|
|
3950
3972
|
"sample-mode": S(X).mergeTagSampleMode.value,
|
|
3951
3973
|
onChange: r[0] ||= (e) => S(X).mergeTagSampleMode.value = e
|
|
3952
3974
|
}, null, 8, ["sample-mode"])])) : w("", !0)]),
|
|
@@ -3955,7 +3977,7 @@ var ga = [
|
|
|
3955
3977
|
default: a(() => [S(X).conditionPreview.hasHiddenBlocks.value && S(X).appliesConditionFilter.value ? (i(), y("button", {
|
|
3956
3978
|
key: 0,
|
|
3957
3979
|
type: "button",
|
|
3958
|
-
class: C([S(
|
|
3980
|
+
class: C([S(Jt), "tpl:shadow-[var(--tpl-shadow-md)]"]),
|
|
3959
3981
|
"data-testid": "restore-hidden-blocks",
|
|
3960
3982
|
onClick: r[1] ||= (e) => S(X).conditionPreview.reset()
|
|
3961
3983
|
}, [H(S(qe), {
|
|
@@ -3963,7 +3985,7 @@ var ga = [
|
|
|
3963
3985
|
"stroke-width": 2
|
|
3964
3986
|
}), b(" " + j(S(X).t.blockSettings.restoreHiddenBlocks), 1)], 2)) : w("", !0)]),
|
|
3965
3987
|
_: 1
|
|
3966
|
-
})])]), A("main",
|
|
3988
|
+
})])]), A("main", Ro, [H(Mi, {
|
|
3967
3989
|
viewport: S(h).state.viewport,
|
|
3968
3990
|
content: S(X).previewResolution.content.value,
|
|
3969
3991
|
"selected-block-id": S(h).state.selectedBlockId,
|
|
@@ -3978,9 +4000,9 @@ var ga = [
|
|
|
3978
4000
|
"preview-mode",
|
|
3979
4001
|
"onSelectBlock"
|
|
3980
4002
|
])])], 6),
|
|
3981
|
-
e.config.branding === !1 ? w("", !0) : (i(), T(
|
|
4003
|
+
e.config.branding === !1 ? w("", !0) : (i(), T(pa, {
|
|
3982
4004
|
key: 0,
|
|
3983
|
-
"position-class": [
|
|
4005
|
+
"position-class": [ge.value]
|
|
3984
4006
|
}, null, 8, ["position-class"])),
|
|
3985
4007
|
A("div", {
|
|
3986
4008
|
class: "tpl-sr-only",
|
|
@@ -3988,14 +4010,14 @@ var ga = [
|
|
|
3988
4010
|
"aria-live": "polite",
|
|
3989
4011
|
"aria-atomic": "true",
|
|
3990
4012
|
"aria-label": S(X).t.landmarks.reorderAnnouncements
|
|
3991
|
-
}, j(S(X).keyboardReorder.announcement.value), 9,
|
|
3992
|
-
c(H(
|
|
3993
|
-
tab:
|
|
3994
|
-
"onUpdate:tab": r[2] ||= (e) =>
|
|
3995
|
-
style: F(
|
|
4013
|
+
}, j(S(X).keyboardReorder.announcement.value), 9, zo),
|
|
4014
|
+
c(H(oa, {
|
|
4015
|
+
tab: fe.value,
|
|
4016
|
+
"onUpdate:tab": r[2] ||= (e) => fe.value = e,
|
|
4017
|
+
style: F(ye.value),
|
|
3996
4018
|
"selected-block": S(h).selectedBlock.value ? S(_).displayBlock(S(h).selectedBlock.value) : null,
|
|
3997
4019
|
settings: S(_).settings.value,
|
|
3998
|
-
"shifted-left":
|
|
4020
|
+
"shifted-left": he.value,
|
|
3999
4021
|
onUpdateBlock: r[3] ||= (e) => S(h).updateBlock(S(h).state.selectedBlockId, e),
|
|
4000
4022
|
onDeleteBlock: r[4] ||= () => {
|
|
4001
4023
|
S(h).state.selectedBlockId && S(X).blockActions.deleteBlock(S(h).state.selectedBlockId);
|
|
@@ -4013,12 +4035,12 @@ var ga = [
|
|
|
4013
4035
|
]), [[te, !S(h).state.previewMode]]),
|
|
4014
4036
|
A("div", {
|
|
4015
4037
|
ref_key: "topChrome",
|
|
4016
|
-
ref:
|
|
4038
|
+
ref: _e,
|
|
4017
4039
|
class: "tpl-top-chrome tpl:absolute tpl:top-14 tpl:right-0 tpl:left-0 tpl:z-40"
|
|
4018
|
-
}, [S(
|
|
4040
|
+
}, [S(me)?.isAvailable.value ? (i(), T(S(Y), {
|
|
4019
4041
|
key: 0,
|
|
4020
|
-
feature: S(
|
|
4021
|
-
}, null, 8, ["feature"])) : w("", !0), e.config.localization ? (i(), T(
|
|
4042
|
+
feature: S(me)
|
|
4043
|
+
}, null, 8, ["feature"])) : w("", !0), e.config.localization ? (i(), T(Ar, {
|
|
4022
4044
|
key: 1,
|
|
4023
4045
|
editor: S(h),
|
|
4024
4046
|
locales: e.config.localization.locales,
|
|
@@ -4035,8 +4057,8 @@ var ga = [
|
|
|
4035
4057
|
ref: (e) => S(X).popoverRoot.value = e,
|
|
4036
4058
|
class: "tpl-popover-root"
|
|
4037
4059
|
}, null, 512),
|
|
4038
|
-
H(
|
|
4039
|
-
H(
|
|
4060
|
+
H(uo),
|
|
4061
|
+
H(Mo),
|
|
4040
4062
|
S(O)?.isAvailable.value ? (i(), T(S(N), {
|
|
4041
4063
|
key: 0,
|
|
4042
4064
|
feature: S(O)
|
|
@@ -4067,7 +4089,7 @@ var ga = [
|
|
|
4067
4089
|
key: 4,
|
|
4068
4090
|
feature: S(W)
|
|
4069
4091
|
}, null, 8, ["feature"])) : w("", !0),
|
|
4070
|
-
S(u) || q.value ? (i(), T(
|
|
4092
|
+
S(u) || q.value ? (i(), T(dr, { key: 5 }, {
|
|
4071
4093
|
default: a(() => [S(u) ? (i(), T(S(ae), {
|
|
4072
4094
|
key: 0,
|
|
4073
4095
|
feature: S(u)
|
|
@@ -4078,13 +4100,13 @@ var ga = [
|
|
|
4078
4100
|
}, null, 8, ["notice"])) : w("", !0)]),
|
|
4079
4101
|
_: 1
|
|
4080
4102
|
})) : w("", !0),
|
|
4081
|
-
e.cloud && S(v) && S(
|
|
4103
|
+
e.cloud && S(v) && S(pe) ? (i(), T(S(oe), {
|
|
4082
4104
|
key: 6,
|
|
4083
4105
|
editor: S(h),
|
|
4084
4106
|
core: S(X),
|
|
4085
4107
|
runtime: e.cloud,
|
|
4086
4108
|
cloud: S(v),
|
|
4087
|
-
ready: S(
|
|
4109
|
+
ready: S(pe)
|
|
4088
4110
|
}, null, 8, [
|
|
4089
4111
|
"editor",
|
|
4090
4112
|
"core",
|
|
@@ -4092,23 +4114,23 @@ var ga = [
|
|
|
4092
4114
|
"cloud",
|
|
4093
4115
|
"ready"
|
|
4094
4116
|
])) : w("", !0),
|
|
4095
|
-
S(
|
|
4096
|
-
], 46,
|
|
4117
|
+
S(xe) ? (i(), T(da, { key: 7 })) : w("", !0)
|
|
4118
|
+
], 46, No));
|
|
4097
4119
|
}
|
|
4098
|
-
}), [["__scopeId", "data-v-
|
|
4099
|
-
function
|
|
4100
|
-
return e.replace(
|
|
4120
|
+
}), [["__scopeId", "data-v-d30a2d38"]]), Vo = /@import\s*(?:url\(\s*(?:"[^"]*"|'[^']*'|[^)]*)\s*\)|"[^"]*"|'[^']*')[^;]*;/g;
|
|
4121
|
+
function Ho(e) {
|
|
4122
|
+
return e.replace(Vo, "");
|
|
4101
4123
|
}
|
|
4102
4124
|
// src/utils/renderProvider.ts
|
|
4103
|
-
function
|
|
4125
|
+
function Uo(e) {
|
|
4104
4126
|
return {
|
|
4105
4127
|
customFonts: e.customFonts.value,
|
|
4106
4128
|
defaultFallback: e.defaultFallback.value
|
|
4107
4129
|
};
|
|
4108
4130
|
}
|
|
4109
|
-
async function
|
|
4110
|
-
let n =
|
|
4111
|
-
return a || (Ne(o),
|
|
4131
|
+
async function Wo(e, t) {
|
|
4132
|
+
let n = Ae(e.getContent()), r = t?.locale ?? Z(n), i = t?.locale !== void 0 || n.settings?.locales?.length ? le(n, r) : n, a = e.getLayout?.(), o = a ? Pe(le(a, r, { missing: "default" }), i) : i;
|
|
4133
|
+
return a || (Ne(o), ke(o)), await ar(o, {
|
|
4112
4134
|
renderCustomBlock: e.renderCustomBlock,
|
|
4113
4135
|
getCustomBlockStylesheet: e.getCustomBlockStylesheet
|
|
4114
4136
|
}), {
|
|
@@ -4116,7 +4138,7 @@ async function Uo(e, t) {
|
|
|
4116
4138
|
fonts: e.getFonts()
|
|
4117
4139
|
};
|
|
4118
4140
|
}
|
|
4119
|
-
function
|
|
4141
|
+
function Go(e) {
|
|
4120
4142
|
async function t(t) {
|
|
4121
4143
|
let n = e.provider, r = n?.toMjml?.bind(n);
|
|
4122
4144
|
return r ? r(await e.buildPayload(t)) : e.renderLocalMjml(t);
|
|
@@ -4142,69 +4164,69 @@ function Wo(e) {
|
|
|
4142
4164
|
};
|
|
4143
4165
|
}
|
|
4144
4166
|
// \0virtual:editor-css
|
|
4145
|
-
var Go = "@import\"https://fonts.bunny.net/css?family=geist:400,500,600\";.tpl-loading-track[data-v-e61f3b63]{height:3px;width:100%;border-radius:9999px;background:linear-gradient(90deg,transparent 0%,color-mix(in srgb,var(--tpl-primary) 10%,transparent) 15%,color-mix(in srgb,var(--tpl-primary) 30%,transparent) 30%,var(--tpl-primary) 50%,color-mix(in srgb,var(--tpl-primary) 30%,transparent) 70%,color-mix(in srgb,var(--tpl-primary) 10%,transparent) 85%,transparent 100%);background-size:200% 100%;animation:tpl-loading-flow-e61f3b63 3s ease-in-out infinite}@keyframes tpl-loading-flow-e61f3b63{0%{background-position:100% 0}to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.tpl-loading-track[data-v-e61f3b63]{animation:none;background-position:50% 0}}.tpl-locale-chip[data-state=changed][data-v-3343ae7d]{color:var(--tpl-secondary)}.tpl-locale-chip[data-state=missing][data-v-3343ae7d],.tpl-locale-chip[data-state=stale][data-v-3343ae7d],.tpl-locale-chip[data-state=tags-differ][data-v-3343ae7d]{color:var(--tpl-warning)}.tpl-block--locale-hidden>.tpl-email-surface[data-v-872194d3]{opacity:.35}.tpl-block--idle[data-v-872194d3]{outline:1.5px dashed color-mix(in srgb,var(--tpl-primary) 30%,transparent);outline-offset:-1px;transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block--idle[data-v-872194d3]:hover{outline:1.5px solid color-mix(in srgb,var(--tpl-primary) 50%,transparent);outline-offset:-1px;box-shadow:0 0 8px color-mix(in srgb,var(--tpl-primary) 8%,transparent)}.tpl-block--picked[data-v-872194d3]{outline:2px solid var(--tpl-primary);outline-offset:-1px;box-shadow:0 0 0 4px color-mix(in srgb,var(--tpl-primary) 18%,transparent);transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block--selected[data-v-872194d3]{outline:2px solid color-mix(in srgb,var(--tpl-primary) 60%,transparent);outline-offset:-1px;box-shadow:0 0 12px color-mix(in srgb,var(--tpl-primary) 15%,transparent);transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block-action-btn[data-v-872194d3]{color:var(--tpl-chrome-text-muted);background-color:transparent}.tpl-block-action-btn[data-v-872194d3]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-chrome-text)}.tpl-block-action-btn[data-v-872194d3]:active{transform:scale(.9)}.tpl-block-delete-btn[data-v-872194d3]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-condition-toggle[data-v-872194d3]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-condition-toggle[data-v-872194d3]:active{transform:scale(.9)}.tpl-block-hidden-overlay[data-v-872194d3]{background-color:color-mix(in srgb,var(--tpl-bg) 60%,transparent)}.tpl-block-agent-highlight[data-v-872194d3]{outline:2px solid var(--tpl-secondary);outline-offset:-1px;animation:tpl-agent-highlight-872194d3 2s ease-out forwards}@keyframes tpl-agent-highlight-872194d3{0%,50%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.tpl-block-agent-highlight[data-v-872194d3]{animation:none}}.tpl-table-editable[data-v-6751d456] th[contenteditable],.tpl-table-editable[data-v-6751d456] td[contenteditable]{outline:none;cursor:text;min-width:calc(2 * var(--tpl-base-size))}.tpl-table-editable[data-v-6751d456] th[contenteditable]:empty:before,.tpl-table-editable[data-v-6751d456] td[contenteditable]:empty:before{content:attr(data-placeholder);color:var(--tpl-text-dim);pointer-events:none}.tpl-table-editable[data-v-6751d456] th[contenteditable]:focus,.tpl-table-editable[data-v-6751d456] td[contenteditable]:focus{outline:2px solid var(--tpl-primary);outline-offset:-2px;border-radius:1px}.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface:not(.tpl-email-surface *){filter:invert(1) hue-rotate(180deg)}[data-v-c72f1327] .tpl-email-surface{transition:filter .3s ease}.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface img{filter:invert(1) hue-rotate(180deg)}.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface.tpl-has-bg-image,.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface .tpl-has-bg-image{position:relative;isolation:isolate;background-image:none!important}.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface.tpl-has-bg-image:before,.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface .tpl-has-bg-image:before{content:\"\";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:var(--tpl-block-bg-layer, none);filter:invert(1) hue-rotate(180deg)}.tpl-icon-enter-active[data-v-632aa74f],.tpl-icon-leave-active[data-v-632aa74f]{transition:opacity .12s cubic-bezier(.16,1,.3,1),transform .12s cubic-bezier(.16,1,.3,1)}.tpl-icon-enter-from[data-v-632aa74f],.tpl-icon-leave-to[data-v-632aa74f]{opacity:0;transform:scale(.8)}.tpl-dark-mode-toggle[data-v-632aa74f]:hover{background-color:var(--tpl-bg-hover)}.tpl-dark-mode-toggle[data-v-632aa74f]:active{transform:scale(.92)}.tpl-icon-enter-active[data-v-eef7b2ca],.tpl-icon-leave-active[data-v-eef7b2ca]{transition:opacity .12s cubic-bezier(.16,1,.3,1),transform .12s cubic-bezier(.16,1,.3,1)}.tpl-icon-enter-from[data-v-eef7b2ca],.tpl-icon-leave-to[data-v-eef7b2ca]{opacity:0;transform:scale(.8)}.tpl-preview-toggle[data-v-eef7b2ca]:hover{background-color:var(--tpl-bg-hover)}.tpl-preview-toggle[data-v-eef7b2ca]:active{transform:scale(.92)}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--tpl-radius-sm:calc(.25 * var(--tpl-base-size));--tpl-radius-md:calc(.375 * var(--tpl-base-size));--tpl-radius-lg:calc(.5 * var(--tpl-base-size));--tpl-shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--tpl-shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--tpl-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--tpl-shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--tpl-radius:calc(.25 * var(--tpl-base-size))}}.tpl\\:pointer-events-auto{pointer-events:auto}.tpl\\:pointer-events-none{pointer-events:none}.tpl\\:invisible{visibility:hidden}.tpl\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl\\:absolute{position:absolute}.tpl\\:fixed{position:fixed}.tpl\\:relative{position:relative}.tpl\\:sticky{position:sticky}.tpl\\:inset-0{inset:0}.tpl\\:inset-x-0{inset-inline:0}.tpl\\:inset-y-1{inset-block:calc(var(--tpl-base-size) / 4)}.tpl\\:inset-s-full{inset-inline-start:100%}.tpl\\:inset-e-1{inset-inline-end:calc(var(--tpl-base-size) / 4)}.tpl\\:-top-0\\.5{top:calc(calc(var(--tpl-base-size) / 4) * -.5)}.tpl\\:-top-1{top:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:-top-2{top:calc(calc(var(--tpl-base-size) / 4) * -2)}.tpl\\:top-0{top:0}.tpl\\:top-1{top:calc(var(--tpl-base-size) / 4)}.tpl\\:top-1\\.5{top:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:top-1\\/2{top:50%}.tpl\\:top-2{top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:top-14{top:calc(calc(var(--tpl-base-size) / 4) * 14)}.tpl\\:top-16{top:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:top-full{top:100%}.tpl\\:right-0{right:0}.tpl\\:right-1{right:calc(var(--tpl-base-size) / 4)}.tpl\\:right-1\\.5{right:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:right-2{right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:right-2\\.5{right:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:right-\\[320px\\]{right:320px}.tpl\\:right-\\[360px\\]{right:360px}.tpl\\:right-\\[680px\\]{right:680px}.tpl\\:bottom-0{bottom:0}.tpl\\:bottom-1{bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:bottom-10{bottom:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:bottom-full{bottom:100%}.tpl\\:-left-1{left:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:left-0{left:0}.tpl\\:left-1\\.5{left:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:left-1\\/2{left:50%}.tpl\\:left-2\\.5{left:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:left-3{left:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:left-5{left:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:left-12{left:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:left-full{left:100%}.tpl\\:z-10{z-index:10}.tpl\\:z-20{z-index:20}.tpl\\:z-40{z-index:40}.tpl\\:z-50{z-index:50}.tpl\\:z-\\[4\\]{z-index:4}.tpl\\:z-\\[5\\]{z-index:5}.tpl\\:z-\\[60\\]{z-index:60}.tpl\\:z-\\[100\\]{z-index:100}.tpl\\:z-\\[10000\\]{z-index:10000}.tpl\\:m-0{margin:0}.tpl\\:m-6{margin:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:mx-0\\.5{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:mx-1{margin-inline:calc(var(--tpl-base-size) / 4)}.tpl\\:mx-1\\.5{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mx-3{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mx-4{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:mx-6{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:mx-auto{margin-inline:auto}.tpl\\:ms-2{margin-inline-start:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mt-0\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:mt-1{margin-top:calc(var(--tpl-base-size) / 4)}.tpl\\:mt-1\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mt-2{margin-top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mt-3{margin-top:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mt-3\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:mt-4{margin-top:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:-mr-1\\.5{margin-right:calc(calc(var(--tpl-base-size) / 4) * -1.5)}.tpl\\:mr-2{margin-right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mb-0{margin-bottom:0}.tpl\\:mb-1{margin-bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:mb-1\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mb-2{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mb-2\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:mb-3{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mb-3\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:mb-4{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:mb-px{margin-bottom:1px}.tpl\\:-ml-1\\.5{margin-left:calc(calc(var(--tpl-base-size) / 4) * -1.5)}.tpl\\:-ml-48{margin-left:calc(calc(var(--tpl-base-size) / 4) * -48)}.tpl\\:ml-0{margin-left:0}.tpl\\:ml-0\\.5{margin-left:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:ml-1{margin-left:calc(var(--tpl-base-size) / 4)}.tpl\\:ml-5{margin-left:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:ml-auto{margin-left:auto}.tpl\\:box-border{box-sizing:border-box}.tpl\\:line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tpl\\:line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tpl\\:\\!flex{display:flex!important}.tpl\\:block{display:block}.tpl\\:contents{display:contents}.tpl\\:flex{display:flex}.tpl\\:grid{display:grid}.tpl\\:inline{display:inline}.tpl\\:inline-block{display:inline-block}.tpl\\:inline-flex{display:inline-flex}.tpl\\:aspect-square{aspect-ratio:1}.tpl\\:size-1\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 1.5);height:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:size-2{width:calc(calc(var(--tpl-base-size) / 4) * 2);height:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:size-4{width:calc(calc(var(--tpl-base-size) / 4) * 4);height:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:size-4\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 4.5);height:calc(calc(var(--tpl-base-size) / 4) * 4.5)}.tpl\\:size-5{width:calc(calc(var(--tpl-base-size) / 4) * 5);height:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:size-6{width:calc(calc(var(--tpl-base-size) / 4) * 6);height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:size-7{width:calc(calc(var(--tpl-base-size) / 4) * 7);height:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:size-8{width:calc(calc(var(--tpl-base-size) / 4) * 8);height:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:size-10{width:calc(calc(var(--tpl-base-size) / 4) * 10);height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:size-16{width:calc(calc(var(--tpl-base-size) / 4) * 16);height:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:size-full{width:100%;height:100%}.tpl\\:h-0{height:0}.tpl\\:h-1\\.5{height:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:h-2\\.5{height:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:h-3{height:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:h-4{height:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:h-5{height:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:h-6{height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:h-7{height:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:h-8{height:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:h-9{height:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:h-10{height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:h-12{height:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:h-14{height:calc(calc(var(--tpl-base-size) / 4) * 14)}.tpl\\:h-16{height:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:h-32{height:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:h-44{height:calc(calc(var(--tpl-base-size) / 4) * 44)}.tpl\\:h-\\[32px\\]{height:32px}.tpl\\:h-full{height:100%}.tpl\\:max-h-24{max-height:calc(calc(var(--tpl-base-size) / 4) * 24)}.tpl\\:max-h-32{max-height:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:max-h-48{max-height:calc(calc(var(--tpl-base-size) / 4) * 48)}.tpl\\:max-h-56{max-height:calc(calc(var(--tpl-base-size) / 4) * 56)}.tpl\\:max-h-64{max-height:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:max-h-\\[50vh\\]{max-height:50vh}.tpl\\:max-h-\\[60vh\\]{max-height:60vh}.tpl\\:max-h-\\[80\\%\\]{max-height:80%}.tpl\\:max-h-\\[80vh\\]{max-height:80vh}.tpl\\:max-h-\\[90\\%\\]{max-height:90%}.tpl\\:max-h-\\[90vh\\]{max-height:90vh}.tpl\\:max-h-full{max-height:100%}.tpl\\:min-h-0{min-height:0}.tpl\\:min-h-6{min-height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:min-h-10{min-height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:min-h-20{min-height:calc(calc(var(--tpl-base-size) / 4) * 20)}.tpl\\:min-h-\\[1em\\]{min-height:1em}.tpl\\:min-h-\\[34px\\]{min-height:34px}.tpl\\:min-h-\\[44px\\]{min-height:44px}.tpl\\:min-h-\\[48px\\]{min-height:48px}.tpl\\:min-h-\\[60px\\]{min-height:60px}.tpl\\:min-h-\\[68px\\]{min-height:68px}.tpl\\:min-h-\\[80px\\]{min-height:80px}.tpl\\:min-h-\\[100px\\]{min-height:100px}.tpl\\:min-h-\\[120px\\]{min-height:120px}.tpl\\:min-h-\\[150px\\]{min-height:150px}.tpl\\:min-h-\\[400px\\]{min-height:400px}.tpl\\:w-1\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:w-1\\/2{width:50%}.tpl\\:w-1\\/3{width:33.3333%}.tpl\\:w-1\\/4{width:25%}.tpl\\:w-2\\/3{width:66.6667%}.tpl\\:w-3{width:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:w-3\\/4{width:75%}.tpl\\:w-5\\/6{width:83.3333%}.tpl\\:w-7{width:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:w-8{width:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:w-9{width:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:w-10{width:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:w-12{width:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:w-16{width:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:w-20{width:calc(calc(var(--tpl-base-size) / 4) * 20)}.tpl\\:w-24{width:calc(calc(var(--tpl-base-size) / 4) * 24)}.tpl\\:w-28{width:calc(calc(var(--tpl-base-size) / 4) * 28)}.tpl\\:w-32{width:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:w-36{width:calc(calc(var(--tpl-base-size) / 4) * 36)}.tpl\\:w-40{width:calc(calc(var(--tpl-base-size) / 4) * 40)}.tpl\\:w-48{width:calc(calc(var(--tpl-base-size) / 4) * 48)}.tpl\\:w-52{width:calc(calc(var(--tpl-base-size) / 4) * 52)}.tpl\\:w-56{width:calc(calc(var(--tpl-base-size) / 4) * 56)}.tpl\\:w-64{width:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:w-72{width:calc(calc(var(--tpl-base-size) / 4) * 72)}.tpl\\:w-80{width:calc(calc(var(--tpl-base-size) / 4) * 80)}.tpl\\:w-96{width:calc(calc(var(--tpl-base-size) / 4) * 96)}.tpl\\:w-\\[300px\\]{width:300px}.tpl\\:w-\\[320px\\]{width:320px}.tpl\\:w-\\[360px\\]{width:360px}.tpl\\:w-\\[400px\\]{width:400px}.tpl\\:w-\\[420px\\]{width:420px}.tpl\\:w-\\[1000px\\]{width:1000px}.tpl\\:w-\\[min\\(420px\\,92vw\\)\\]{width:min(420px,92vw)}.tpl\\:w-full{width:100%}.tpl\\:w-px{width:1px}.tpl\\:max-w-2xl{max-width:calc(42 * var(--tpl-base-size))}.tpl\\:max-w-3xl{max-width:calc(48 * var(--tpl-base-size))}.tpl\\:max-w-\\[220px\\]{max-width:220px}.tpl\\:max-w-\\[240px\\]{max-width:240px}.tpl\\:max-w-\\[260px\\]{max-width:260px}.tpl\\:max-w-\\[320px\\]{max-width:320px}.tpl\\:max-w-\\[600px\\]{max-width:600px}.tpl\\:max-w-\\[calc\\(100\\%_-_2\\*var\\(--tpl-base-size\\)\\)\\]{max-width:calc(100% - 2 * var(--tpl-base-size))}.tpl\\:max-w-\\[calc\\(100vw_-_2\\*var\\(--tpl-base-size\\)\\)\\]{max-width:calc(100vw - 2 * var(--tpl-base-size))}.tpl\\:max-w-full{max-width:100%}.tpl\\:max-w-md{max-width:calc(28 * var(--tpl-base-size))}.tpl\\:max-w-sm{max-width:calc(24 * var(--tpl-base-size))}.tpl\\:min-w-0{min-width:0}.tpl\\:min-w-6{min-width:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:min-w-\\[20px\\]{min-width:20px}.tpl\\:min-w-\\[200px\\]{min-width:200px}.tpl\\:flex-1{flex:1}.tpl\\:flex-shrink-0,.tpl\\:shrink-0{flex-shrink:0}.tpl\\:grow{flex-grow:1}.tpl\\:basis-64{flex-basis:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-4{--tw-translate-x:calc(calc(var(--tpl-base-size) / 4) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-2{--tw-translate-y:calc(calc(var(--tpl-base-size) / 4) * -2);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-y-1{--tw-translate-y:calc(var(--tpl-base-size) / 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:-rotate-90{rotate:-90deg}.tpl\\:rotate-0{rotate:0deg}.tpl\\:rotate-45{rotate:45deg}.tpl\\:rotate-90{rotate:90deg}.tpl\\:rotate-180{rotate:180deg}.tpl\\:animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.tpl\\:animate-spin{animation:1s linear infinite spin}.tpl\\:cursor-default{cursor:default}.tpl\\:cursor-grab{cursor:grab}.tpl\\:cursor-help{cursor:help}.tpl\\:cursor-not-allowed{cursor:not-allowed}.tpl\\:cursor-pointer{cursor:pointer}.tpl\\:resize-none{resize:none}.tpl\\:resize-y{resize:vertical}.tpl\\:list-disc{list-style-type:disc}.tpl\\:list-none{list-style-type:none}.tpl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.tpl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.tpl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.tpl\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.tpl\\:grid-cols-\\[minmax\\(0\\,1fr\\)_auto_minmax\\(0\\,1fr\\)\\]{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.tpl\\:flex-col{flex-direction:column}.tpl\\:flex-row-reverse{flex-direction:row-reverse}.tpl\\:flex-wrap{flex-wrap:wrap}.tpl\\:items-center{align-items:center}.tpl\\:items-end{align-items:flex-end}.tpl\\:items-start{align-items:flex-start}.tpl\\:items-stretch{align-items:stretch}.tpl\\:justify-between{justify-content:space-between}.tpl\\:justify-center{justify-content:center}.tpl\\:justify-end{justify-content:flex-end}.tpl\\:gap-0{gap:0}.tpl\\:gap-0\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:gap-1{gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-1\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:gap-2{gap:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:gap-2\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:gap-3{gap:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:gap-3\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:gap-4{gap:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:gap-5{gap:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:gap-6{gap:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:gap-10{gap:calc(calc(var(--tpl-base-size) / 4) * 10)}:where(.tpl\\:space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--tpl-base-size) / 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--tpl-base-size) / 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-3\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 3.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 3.5) * calc(1 - var(--tw-space-y-reverse)))}.tpl\\:gap-x-1{column-gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-x-3{column-gap:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:gap-x-6{column-gap:calc(calc(var(--tpl-base-size) / 4) * 6)}:where(.tpl\\:-space-x-1\\.5>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(calc(var(--tpl-base-size) / 4) * -1.5) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(calc(var(--tpl-base-size) / 4) * -1.5) * calc(1 - var(--tw-space-x-reverse)))}.tpl\\:gap-y-0\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:gap-y-1{row-gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-y-1\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:gap-y-2{row-gap:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:self-end{align-self:flex-end}.tpl\\:self-start{align-self:flex-start}.tpl\\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tpl\\:overflow-auto{overflow:auto}.tpl\\:overflow-hidden{overflow:hidden}.tpl\\:overflow-x-auto{overflow-x:auto}.tpl\\:overflow-y-auto{overflow-y:auto}.tpl\\:rounded{border-radius:calc(.25 * var(--tpl-base-size))}.tpl\\:rounded-\\[calc\\(var\\(--tpl-radius-sm\\)-2px\\)\\]{border-radius:calc(var(--tpl-radius-sm) - 2px)}.tpl\\:rounded-\\[var\\(--tpl-radius\\)\\]{border-radius:var(--tpl-radius)}.tpl\\:rounded-\\[var\\(--tpl-radius-lg\\)\\]{border-radius:var(--tpl-radius-lg)}.tpl\\:rounded-\\[var\\(--tpl-radius-md\\)\\]{border-radius:var(--tpl-radius-md)}.tpl\\:rounded-\\[var\\(--tpl-radius-sm\\)\\]{border-radius:var(--tpl-radius-sm)}.tpl\\:rounded-full{border-radius:2147483647px}.tpl\\:rounded-lg{border-radius:calc(.5 * var(--tpl-base-size))}.tpl\\:rounded-md{border-radius:calc(.375 * var(--tpl-base-size))}.tpl\\:rounded-sm{border-radius:calc(.25 * var(--tpl-base-size))}.tpl\\:rounded-xl{border-radius:calc(.75 * var(--tpl-base-size))}.tpl\\:rounded-l-\\[var\\(--tpl-radius-sm\\)\\]{border-top-left-radius:var(--tpl-radius-sm);border-bottom-left-radius:var(--tpl-radius-sm)}.tpl\\:rounded-tl-lg{border-top-left-radius:calc(.5 * var(--tpl-base-size))}.tpl\\:rounded-r-\\[var\\(--tpl-radius-sm\\)\\]{border-top-right-radius:var(--tpl-radius-sm);border-bottom-right-radius:var(--tpl-radius-sm)}.tpl\\:rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.tpl\\:border{border-style:var(--tw-border-style);border-width:1px}.tpl\\:border-0{border-style:var(--tw-border-style);border-width:0}.tpl\\:border-2{border-style:var(--tw-border-style);border-width:2px}.tpl\\:border-x-0{border-inline-style:var(--tw-border-style);border-inline-width:0}.tpl\\:border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.tpl\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.tpl\\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.tpl\\:border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.tpl\\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.tpl\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.tpl\\:border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.tpl\\:border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.tpl\\:border-dashed{--tw-border-style:dashed;border-style:dashed}.tpl\\:border-none{--tw-border-style:none;border-style:none}.tpl\\:border-\\[var\\(--tpl-bg\\)\\]{border-color:var(--tpl-bg)}.tpl\\:border-\\[var\\(--tpl-border\\)\\]{border-color:var(--tpl-border)}.tpl\\:border-\\[var\\(--tpl-border-light\\)\\]{border-color:var(--tpl-border-light)}.tpl\\:border-\\[var\\(--tpl-danger\\)\\]{border-color:var(--tpl-danger)}.tpl\\:border-\\[var\\(--tpl-primary\\)\\]{border-color:var(--tpl-primary)}.tpl\\:border-\\[var\\(--tpl-primary-hover\\)\\]{border-color:var(--tpl-primary-hover)}.tpl\\:border-\\[var\\(--tpl-warning\\)\\]{border-color:var(--tpl-warning)}.tpl\\:border-transparent{border-color:#0000}.tpl\\:border-l-\\[var\\(--tpl-primary\\)\\]{border-left-color:var(--tpl-primary)}.tpl\\:border-l-transparent{border-left-color:#0000}.tpl\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-bg\\)_90\\%\\,transparent\\)\\]{background-color:var(--tpl-bg)}@supports (color:color-mix(in lab,red,red)){.tpl\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-bg\\)_90\\%\\,transparent\\)\\]{background-color:color-mix(in srgb,var(--tpl-bg) 90%,transparent)}}.tpl\\:bg-\\[var\\(--tpl-bg\\)\\]{background-color:var(--tpl-bg)}.tpl\\:bg-\\[var\\(--tpl-bg-active\\)\\]{background-color:var(--tpl-bg-active)}.tpl\\:bg-\\[var\\(--tpl-bg-elevated\\)\\]{background-color:var(--tpl-bg-elevated)}.tpl\\:bg-\\[var\\(--tpl-bg-hover\\)\\]{background-color:var(--tpl-bg-hover)}.tpl\\:bg-\\[var\\(--tpl-border\\)\\]{background-color:var(--tpl-border)}.tpl\\:bg-\\[var\\(--tpl-canvas-bg\\)\\]{background-color:var(--tpl-canvas-bg)}.tpl\\:bg-\\[var\\(--tpl-chrome-bg-elevated\\)\\]{background-color:var(--tpl-chrome-bg-elevated)}.tpl\\:bg-\\[var\\(--tpl-chrome-primary-light\\)\\]{background-color:var(--tpl-chrome-primary-light)}.tpl\\:bg-\\[var\\(--tpl-danger\\)\\]{background-color:var(--tpl-danger)}.tpl\\:bg-\\[var\\(--tpl-danger-light\\)\\]{background-color:var(--tpl-danger-light)}.tpl\\:bg-\\[var\\(--tpl-primary\\)\\]{background-color:var(--tpl-primary)}.tpl\\:bg-\\[var\\(--tpl-primary-light\\)\\]{background-color:var(--tpl-primary-light)}.tpl\\:bg-\\[var\\(--tpl-secondary-light\\)\\]{background-color:var(--tpl-secondary-light)}.tpl\\:bg-\\[var\\(--tpl-text-dim\\)\\]{background-color:var(--tpl-text-dim)}.tpl\\:bg-\\[var\\(--tpl-warning-light\\)\\]{background-color:var(--tpl-warning-light)}.tpl\\:bg-black\\/30{background-color:oklab(0% none none/.3)}.tpl\\:bg-transparent{background-color:#0000}.tpl\\:object-contain{object-fit:contain}.tpl\\:object-cover{object-fit:cover}.tpl\\:p-0{padding:0}.tpl\\:p-0\\.5{padding:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:p-1{padding:calc(var(--tpl-base-size) / 4)}.tpl\\:p-1\\.5{padding:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:p-2{padding:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:p-3{padding:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:p-4{padding:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:p-5{padding:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:p-6{padding:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:p-8{padding:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:px-0\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:px-1{padding-inline:calc(var(--tpl-base-size) / 4)}.tpl\\:px-1\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:px-2{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:px-2\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:px-3{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:px-3\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:px-4{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:px-5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:px-6{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:px-8{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:px-10{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:py-0{padding-block:0}.tpl\\:py-0\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:py-1{padding-block:calc(var(--tpl-base-size) / 4)}.tpl\\:py-1\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:py-2{padding-block:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:py-2\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:py-3{padding-block:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:py-3\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:py-4{padding-block:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:py-5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:py-6{padding-block:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:py-8{padding-block:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:py-10{padding-block:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:py-12{padding-block:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:py-16{padding-block:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:py-\\[5px\\]{padding-block:5px}.tpl\\:py-\\[7px\\]{padding-block:7px}.tpl\\:py-px{padding-block:1px}.tpl\\:pt-2{padding-top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pt-2\\.5{padding-top:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:pt-3{padding-top:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pt-4{padding-top:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pr-2{padding-right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pr-3{padding-right:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pr-4{padding-right:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pr-7{padding-right:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:pr-8{padding-right:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:pb-1{padding-bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:pb-1\\.5{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:pb-3{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pb-4{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pl-2\\.5{padding-left:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:pl-3{padding-left:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pl-4{padding-left:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pl-8{padding-left:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:pl-9{padding-left:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:pl-\\[18px\\]{padding-left:18px}.tpl\\:text-center{text-align:center}.tpl\\:text-left{text-align:left}.tpl\\:font-\\[inherit\\]{font-family:inherit}.tpl\\:font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.tpl\\:font-sans{font-family:Geist,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tpl\\:text-base{font-size:var(--tpl-base-size);line-height:var(--tw-leading, 1.5 )}.tpl\\:text-lg{font-size:calc(1.125 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.75 / 1.125))}.tpl\\:text-sm{font-size:calc(.875 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.25 / .875))}.tpl\\:text-xs{font-size:calc(.75 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1 / .75))}.tpl\\:text-\\[0\\.8em\\]{font-size:.8em}.tpl\\:text-\\[0\\.9em\\]{font-size:.9em}.tpl\\:text-\\[1em\\]{font-size:1em}.tpl\\:text-\\[10px\\]{font-size:10px}.tpl\\:text-\\[12px\\]{font-size:12px}.tpl\\:text-\\[13px\\]{font-size:13px}.tpl\\:text-\\[length\\:inherit\\]{font-size:inherit}.tpl\\:leading-\\[inherit\\]{--tw-leading:inherit;line-height:inherit}.tpl\\:leading-none{--tw-leading:1;line-height:1}.tpl\\:leading-normal{--tw-leading:1.5;line-height:1.5}.tpl\\:leading-relaxed{--tw-leading:1.625;line-height:1.625}.tpl\\:leading-snug{--tw-leading:1.375;line-height:1.375}.tpl\\:leading-tight{--tw-leading:1.25;line-height:1.25}.tpl\\:font-\\[var\\(--tpl-font-family\\)\\]{--tw-font-weight:var(--tpl-font-family);font-weight:var(--tpl-font-family)}.tpl\\:font-bold{--tw-font-weight:700;font-weight:700}.tpl\\:font-medium{--tw-font-weight:500;font-weight:500}.tpl\\:font-normal{--tw-font-weight:400;font-weight:400}.tpl\\:font-semibold{--tw-font-weight:600;font-weight:600}.tpl\\:tracking-wide{--tw-tracking:.025em;letter-spacing:.025em}.tpl\\:tracking-wider{--tw-tracking:.05em;letter-spacing:.05em}.tpl\\:break-words{overflow-wrap:break-word}.tpl\\:break-all{word-break:break-all}.tpl\\:text-ellipsis{text-overflow:ellipsis}.tpl\\:whitespace-normal{white-space:normal}.tpl\\:whitespace-nowrap{white-space:nowrap}.tpl\\:whitespace-pre-wrap{white-space:pre-wrap}.tpl\\:text-\\[var\\(--tpl-bg\\)\\]{color:var(--tpl-bg)}.tpl\\:text-\\[var\\(--tpl-border-light\\)\\]{color:var(--tpl-border-light)}.tpl\\:text-\\[var\\(--tpl-chrome-text\\)\\]{color:var(--tpl-chrome-text)}.tpl\\:text-\\[var\\(--tpl-chrome-text-dim\\)\\]{color:var(--tpl-chrome-text-dim)}.tpl\\:text-\\[var\\(--tpl-chrome-text-muted\\)\\]{color:var(--tpl-chrome-text-muted)}.tpl\\:text-\\[var\\(--tpl-danger\\)\\]{color:var(--tpl-danger)}.tpl\\:text-\\[var\\(--tpl-on-primary\\)\\]{color:var(--tpl-on-primary)}.tpl\\:text-\\[var\\(--tpl-primary\\)\\]{color:var(--tpl-primary)}.tpl\\:text-\\[var\\(--tpl-primary-hover\\)\\]{color:var(--tpl-primary-hover)}.tpl\\:text-\\[var\\(--tpl-success\\)\\]{color:var(--tpl-success)}.tpl\\:text-\\[var\\(--tpl-success\\,var\\(--tpl-primary\\)\\)\\]{color:var(--tpl-success,var(--tpl-primary))}.tpl\\:text-\\[var\\(--tpl-text\\)\\]{color:var(--tpl-text)}.tpl\\:text-\\[var\\(--tpl-text-dim\\)\\]{color:var(--tpl-text-dim)}.tpl\\:text-\\[var\\(--tpl-text-muted\\)\\]{color:var(--tpl-text-muted)}.tpl\\:text-\\[var\\(--tpl-warning\\)\\]{color:var(--tpl-warning)}.tpl\\:normal-case{text-transform:none}.tpl\\:uppercase{text-transform:uppercase}.tpl\\:italic{font-style:italic}.tpl\\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, )}.tpl\\:no-underline{text-decoration-line:none}.tpl\\:underline{text-decoration-line:underline}.tpl\\:underline-offset-2{text-underline-offset:2px}.tpl\\:accent-\\[var\\(--tpl-primary\\)\\]{accent-color:var(--tpl-primary)}.tpl\\:opacity-0{opacity:0}.tpl\\:opacity-50{opacity:.5}.tpl\\:opacity-60{opacity:.6}.tpl\\:opacity-70{opacity:.7}.tpl\\:opacity-90{opacity:.9}.tpl\\:opacity-100{opacity:1}.tpl\\:shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-ring\\)\\]{--tw-shadow:var(--tpl-ring);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow\\)\\]{--tw-shadow:var(--tpl-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-lg\\)\\]{--tw-shadow:var(--tpl-shadow-lg);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-md\\)\\]{--tw-shadow:var(--tpl-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-sm\\)\\]{--tw-shadow:var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-1{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-2{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-\\[var\\(--tpl-border\\)\\]{--tw-ring-color:var(--tpl-border)}.tpl\\:ring-\\[var\\(--tpl-primary\\)\\]{--tw-ring-color:var(--tpl-primary)}.tpl\\:ring-offset-1{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.tpl\\:ring-offset-\\[var\\(--tpl-bg-elevated\\)\\]{--tw-ring-offset-color:var(--tpl-bg-elevated)}.tpl\\:backdrop-blur-\\[2px\\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, )}.tpl\\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:duration-100{--tw-duration:.1s;transition-duration:.1s}.tpl\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.tpl\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.tpl\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.tpl\\:duration-\\[80ms\\]{--tw-duration:80ms;transition-duration:80ms}.tpl\\:duration-\\[120ms\\]{--tw-duration:.12s;transition-duration:.12s}.tpl\\:ease-\\[cubic-bezier\\(0\\.16\\,1\\,0\\.3\\,1\\)\\]{--tw-ease:cubic-bezier(.16,1,.3,1);transition-timing-function:cubic-bezier(.16,1,.3,1)}.tpl\\:ease-in{--tw-ease:cubic-bezier(.4, 0, 1, 1);transition-timing-function:cubic-bezier(.4,0,1,1)}.tpl\\:ease-out{--tw-ease:cubic-bezier(0, 0, .2, 1);transition-timing-function:cubic-bezier(0,0,.2,1)}.tpl\\:outline-none{--tw-outline-style:none;outline-style:none}.tpl\\:select-none{-webkit-user-select:none;user-select:none}:is(:where(.tpl\\:group):focus-within .tpl\\:group-focus-within\\:opacity-100){opacity:1}@media(hover:hover){:is(:where(.tpl\\:group):hover .tpl\\:group-hover\\:bg-black\\/40){background-color:oklab(0% none none/.4)}:is(:where(.tpl\\:group):hover .tpl\\:group-hover\\:opacity-100){opacity:1}}.tpl\\:placeholder\\:text-\\[var\\(--tpl-text-dim\\)\\]::placeholder{color:var(--tpl-text-dim)}.tpl\\:last\\:mb-0:last-child{margin-bottom:0}@media(hover:hover){.tpl\\:hover\\:z-10:hover{z-index:10}.tpl\\:hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:border-\\[var\\(--tpl-border\\)\\]:hover{border-color:var(--tpl-border)}.tpl\\:hover\\:border-\\[var\\(--tpl-danger\\)\\]:hover{border-color:var(--tpl-danger)}.tpl\\:hover\\:border-\\[var\\(--tpl-primary\\)\\]:hover{border-color:var(--tpl-primary)}.tpl\\:hover\\:border-\\[var\\(--tpl-text-dim\\)\\]:hover{border-color:var(--tpl-text-dim)}.tpl\\:hover\\:border-l-\\[var\\(--tpl-primary\\)\\]:hover{border-left-color:var(--tpl-primary)}.tpl\\:hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-text\\)_8\\%\\,transparent\\)\\]:hover{background-color:var(--tpl-text)}@supports (color:color-mix(in lab,red,red)){.tpl\\:hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-text\\)_8\\%\\,transparent\\)\\]:hover{background-color:color-mix(in srgb,var(--tpl-text) 8%,transparent)}}.tpl\\:hover\\:bg-\\[var\\(--tpl-bg-active\\)\\]:hover{background-color:var(--tpl-bg-active)}.tpl\\:hover\\:bg-\\[var\\(--tpl-bg-hover\\)\\]:hover{background-color:var(--tpl-bg-hover)}.tpl\\:hover\\:bg-\\[var\\(--tpl-danger-light\\)\\]:hover{background-color:var(--tpl-danger-light)}.tpl\\:hover\\:bg-\\[var\\(--tpl-primary-hover\\)\\]:hover{background-color:var(--tpl-primary-hover)}.tpl\\:hover\\:bg-\\[var\\(--tpl-primary-light\\)\\]:hover{background-color:var(--tpl-primary-light)}.tpl\\:hover\\:bg-\\[var\\(--tpl-warning-light\\)\\]:hover{background-color:var(--tpl-warning-light)}.tpl\\:hover\\:text-\\[var\\(--tpl-danger\\)\\]:hover{color:var(--tpl-danger)}.tpl\\:hover\\:text-\\[var\\(--tpl-primary\\)\\]:hover{color:var(--tpl-primary)}.tpl\\:hover\\:text-\\[var\\(--tpl-text\\)\\]:hover{color:var(--tpl-text)}.tpl\\:hover\\:underline:hover{text-decoration-line:underline}.tpl\\:hover\\:opacity-80:hover{opacity:.8}.tpl\\:hover\\:opacity-100:hover{opacity:1}.tpl\\:hover\\:shadow-\\[var\\(--tpl-shadow-md\\)\\]:hover{--tw-shadow:var(--tpl-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:hover\\:shadow-\\[var\\(--tpl-shadow-sm\\)\\]:hover{--tw-shadow:var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.tpl\\:focus\\:border-\\[var\\(--tpl-primary\\)\\]:focus{border-color:var(--tpl-primary)}.tpl\\:focus\\:shadow-\\[0_0_0_3px_var\\(--tpl-primary-light\\)\\]:focus{--tw-shadow:0 0 0 3px var(--tw-shadow-color,var(--tpl-primary-light));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus\\:shadow-\\[var\\(--tpl-ring\\)\\]:focus,.tpl\\:focus-visible\\:shadow-\\[var\\(--tpl-ring\\)\\]:focus-visible{--tw-shadow:var(--tpl-ring);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus-visible\\:ring-\\[var\\(--tpl-primary\\)\\]:focus-visible{--tw-ring-color:var(--tpl-primary)}.tpl\\:focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.tpl\\:focus-visible\\:ring-offset-\\[var\\(--tpl-bg-elevated\\)\\]:focus-visible{--tw-ring-offset-color:var(--tpl-bg-elevated)}.tpl\\:focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.tpl\\:focus-visible\\:outline-\\[var\\(--tpl-primary\\)\\]:focus-visible{outline-color:var(--tpl-primary)}.tpl\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}@media(hover:hover){.tpl\\:hover\\:focus-visible\\:shadow-\\[var\\(--tpl-ring\\)\\,var\\(--tpl-shadow-sm\\)\\]:hover:focus-visible{--tw-shadow:var(--tpl-ring), var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.tpl\\:active\\:cursor-grabbing:active{cursor:grabbing}.tpl\\:active\\:bg-\\[var\\(--tpl-bg-active\\)\\]:active{background-color:var(--tpl-bg-active)}.tpl\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.tpl\\:disabled\\:opacity-30:disabled{opacity:.3}.tpl\\:disabled\\:opacity-40:disabled{opacity:.4}.tpl\\:disabled\\:opacity-50:disabled{opacity:.5}.tpl\\:disabled\\:opacity-60:disabled{opacity:.6}@media(hover:hover){.tpl\\:disabled\\:hover\\:bg-transparent:disabled:hover{background-color:#0000}}.tpl\\:\\[\\&_p\\]\\:mb-2 p{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}@layer base{:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)):after,:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)):before,:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}:where(.tpl) :where(hr):not(:where(.tpl-email-surface,.tpl-email-surface *)){height:0;color:inherit;border-top-width:1px}:where(.tpl) :where(abbr[title]):not(:where(.tpl-email-surface,.tpl-email-surface *)){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}:where(.tpl) :where(h1):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h2):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h3):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h4):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h5):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h6):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-size:inherit;font-weight:inherit}:where(.tpl) :where(a):not(:where(.tpl-email-surface,.tpl-email-surface *)){color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}:where(.tpl) :where(b):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(strong):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-weight:bolder}:where(.tpl) :where(code):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(kbd):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(samp):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(pre):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}:where(.tpl) :where(small):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-size:80%}:where(.tpl) :where(sub):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(sup):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:baseline;font-size:75%;line-height:0;position:relative}:where(.tpl) :where(sub):not(:where(.tpl-email-surface,.tpl-email-surface *)){bottom:-.25em}:where(.tpl) :where(sup):not(:where(.tpl-email-surface,.tpl-email-surface *)){top:-.5em}:where(.tpl) :where(table):not(:where(.tpl-email-surface,.tpl-email-surface *)){text-indent:0;border-color:inherit;border-collapse:collapse}:where(.tpl) :where(:-moz-focusring:not(iframe)):not(:where(.tpl-email-surface,.tpl-email-surface *)){outline:auto}:where(.tpl) :where(progress):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:baseline}:where(.tpl) :where(summary):not(:where(.tpl-email-surface,.tpl-email-surface *)){display:list-item}:where(.tpl) :where(ol):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(ul):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(menu):not(:where(.tpl-email-surface,.tpl-email-surface *)){list-style:none}:where(.tpl) :where(img):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(svg):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(video):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(canvas):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(audio):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(iframe):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(embed):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(object):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:middle;display:block}:where(.tpl) :where(img):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(video):not(:where(.tpl-email-surface,.tpl-email-surface *)){max-width:100%;height:auto}:where(.tpl) :where(button):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(input):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(select):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(optgroup):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(textarea):not(:where(.tpl-email-surface,.tpl-email-surface *)){font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(.tpl) :where(select:is([multiple],[size]) optgroup):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-weight:bolder}:where(.tpl) :where(select:is([multiple],[size]) optgroup option):not(:where(.tpl-email-surface,.tpl-email-surface *)){padding-inline-start:20px}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{margin-inline-end:4px}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}:where(.tpl) :where(textarea):not(:where(.tpl-email-surface,.tpl-email-surface *)){resize:vertical}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-search-decoration{-webkit-appearance:none}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit{display:inline-flex}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-fields-wrapper{padding:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-year-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-month-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-day-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-hour-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-minute-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-second-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-millisecond-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-meridiem-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-calendar-picker-indicator{line-height:1}:where(.tpl) :where(:-moz-ui-invalid):not(:where(.tpl-email-surface,.tpl-email-surface *)){box-shadow:none}:where(.tpl) :where(button):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(input:is([type=button],[type=reset],[type=submit])):not(:where(.tpl-email-surface,.tpl-email-surface *)){appearance:button}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{appearance:button}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-inner-spin-button{height:auto}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-outer-spin-button{height:auto}:where(.tpl) :where([hidden]:not([hidden=until-found])):not(:where(.tpl-email-surface,.tpl-email-surface *)){display:none!important}}@layer components;.tpl{--tpl-base-size:var(--tpl-user-base-size,16px);--tpl-bg:var(--tpl-user-bg,oklch(99.5% .002 60));--tpl-bg-elevated:var(--tpl-user-bg-elevated,oklch(98% .004 60));--tpl-bg-hover:var(--tpl-user-bg-hover,oklch(96% .006 60));--tpl-bg-active:var(--tpl-user-bg-active,oklch(93.5% .008 60));--tpl-border:var(--tpl-user-border,oklch(92% .006 60));--tpl-border-light:var(--tpl-user-border-light,oklch(86% .01 60));--tpl-text:var(--tpl-user-text,oklch(18% .01 60));--tpl-text-muted:var(--tpl-user-text-muted,oklch(50% .015 60));--tpl-text-dim:var(--tpl-user-text-dim,oklch(68% .012 60));--tpl-primary:var(--tpl-user-primary,oklch(70% .16 55));--tpl-primary-hover:var(--tpl-user-primary-hover,oklch(63% .17 55));--tpl-primary-light:var(--tpl-user-primary-light,oklch(95% .04 55));--tpl-on-primary:var(--tpl-user-on-primary,var(--tpl-bg));--tpl-secondary:var(--tpl-user-secondary,oklch(60% .118 184.71));--tpl-secondary-hover:var(--tpl-user-secondary-hover,oklch(53.2% .105 186.39));--tpl-secondary-light:var(--tpl-user-secondary-light,oklch(93.8% .03 186.82));--tpl-success:var(--tpl-user-success,oklch(62.8% .194 155.1));--tpl-success-light:var(--tpl-user-success-light,oklch(93.6% .043 163.51));--tpl-warning:var(--tpl-user-warning,oklch(76.9% .168 70.08));--tpl-warning-light:var(--tpl-user-warning-light,oklch(95% .038 73.59));--tpl-danger:var(--tpl-user-danger,oklch(63.7% .237 25.33));--tpl-danger-light:var(--tpl-user-danger-light,oklch(93.6% .032 17.72));--tpl-canvas-bg:var(--tpl-user-canvas-bg,oklch(97.5% .003 60));--tpl-chrome-bg-elevated:var(--tpl-bg-elevated);--tpl-chrome-border-light:var(--tpl-border-light);--tpl-chrome-text:var(--tpl-text);--tpl-chrome-text-muted:var(--tpl-text-muted);--tpl-chrome-text-dim:var(--tpl-text-dim);--tpl-chrome-primary-light:var(--tpl-primary-light);--tpl-chrome-primary-hover:var(--tpl-primary-hover);--tpl-radius:var(--tpl-user-radius,10px);--tpl-radius-sm:var(--tpl-user-radius-sm,7px);--tpl-radius-lg:var(--tpl-user-radius-lg,14px);--tpl-font-family:var(--tpl-user-font-family,\"Geist\", ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");--tpl-shadow-sm:var(--tpl-user-shadow-sm,0 1px 2px #00000008);--tpl-shadow:var(--tpl-user-shadow,0 1px 2px #0000000a, 0 1px 3px #00000008);--tpl-shadow-md:var(--tpl-user-shadow-md,0 2px 8px #0000000f, 0 1px 3px #0000000a);--tpl-shadow-lg:var(--tpl-user-shadow-lg,0 4px 16px #00000014, 0 2px 6px #0000000a);--tpl-shadow-xl:var(--tpl-user-shadow-xl,0 8px 32px #0000001a, 0 4px 12px #0000000f);--tpl-overlay:var(--tpl-user-overlay,#00000080);--tpl-ring:var(--tpl-user-ring,0 0 0 3px var(--tpl-primary-light));--tpl-transition:var(--tpl-user-transition,.12s cubic-bezier(.16, 1, .3, 1))}.tpl[data-tpl-theme=dark]{--tpl-bg:var(--tpl-user-dark-bg,oklch(16% .005 60));--tpl-bg-elevated:var(--tpl-user-dark-bg-elevated,oklch(21% .006 60));--tpl-bg-hover:var(--tpl-user-dark-bg-hover,oklch(26% .007 60));--tpl-bg-active:var(--tpl-user-dark-bg-active,oklch(30% .008 60));--tpl-border:var(--tpl-user-dark-border,oklch(30% .006 60));--tpl-border-light:var(--tpl-user-dark-border-light,oklch(38% .008 60));--tpl-text:var(--tpl-user-dark-text,oklch(93% .005 60));--tpl-text-muted:var(--tpl-user-dark-text-muted,oklch(65% .01 60));--tpl-text-dim:var(--tpl-user-dark-text-dim,oklch(50% .008 60));--tpl-primary:var(--tpl-user-dark-primary,oklch(73% .15 55));--tpl-primary-hover:var(--tpl-user-dark-primary-hover,oklch(78% .14 55));--tpl-primary-light:var(--tpl-user-dark-primary-light,oklch(28% .05 55));--tpl-secondary:var(--tpl-user-dark-secondary,oklch(63% .11 184.71));--tpl-secondary-hover:var(--tpl-user-dark-secondary-hover,oklch(68% .1 186.39));--tpl-secondary-light:var(--tpl-user-dark-secondary-light,oklch(25% .03 186.82));--tpl-success:var(--tpl-user-dark-success,oklch(65% .18 155.1));--tpl-success-light:var(--tpl-user-dark-success-light,oklch(25% .04 163.51));--tpl-warning:var(--tpl-user-dark-warning,oklch(78% .16 70.08));--tpl-warning-light:var(--tpl-user-dark-warning-light,oklch(28% .04 73.59));--tpl-danger:var(--tpl-user-dark-danger,oklch(65% .22 25.33));--tpl-danger-light:var(--tpl-user-dark-danger-light,oklch(25% .04 17.72));--tpl-canvas-bg:var(--tpl-user-dark-canvas-bg,oklch(10% .003 60));--tpl-shadow-sm:var(--tpl-user-dark-shadow-sm,0 1px 2px #0003);--tpl-shadow:var(--tpl-user-dark-shadow,0 1px 2px #0000004d, 0 1px 3px #0003);--tpl-shadow-md:var(--tpl-user-dark-shadow-md,0 2px 8px #00000059, 0 1px 3px #00000040);--tpl-shadow-lg:var(--tpl-user-dark-shadow-lg,0 4px 16px #0006, 0 2px 6px #0000004d);--tpl-shadow-xl:var(--tpl-user-dark-shadow-xl,0 8px 32px #00000080, 0 4px 12px #00000059);--tpl-overlay:var(--tpl-user-dark-overlay,#000000b3);--tpl-ring:var(--tpl-user-dark-ring,0 0 0 3px var(--tpl-primary-light))}.tpl[data-tpl-theme=dark] .tpl-block-content,.tpl[data-tpl-theme=dark] .tpl-canvas-empty{--tpl-bg-elevated:oklch(98% .004 60);--tpl-border-light:oklch(86% .01 60);--tpl-text:oklch(18% .01 60);--tpl-text-muted:oklch(50% .015 60);--tpl-text-dim:oklch(68% .012 60);--tpl-primary-light:oklch(95% .04 55);--tpl-primary-hover:oklch(60% .16 55);color:var(--tpl-text)}.tpl{height:100%;font-family:Geist,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:calc(.875 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.25 / .875));--tw-leading:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--tpl-bg);min-height:320px;color:var(--tpl-text);line-height:1.5;font-family:var(--tpl-font-family);letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0;text-align:start;white-space:normal;cursor:auto;font-variant-numeric:normal;text-shadow:none;flex-direction:column;font-style:normal;font-weight:400;list-style-type:disc;display:flex}:where(.tpl) button,:where(.tpl) input,:where(.tpl) select,:where(.tpl) textarea{box-sizing:border-box;font-family:inherit}:where(.tpl) button{cursor:pointer;background:0 0;border:none;margin:0;padding:0}:where(.tpl) button:focus-visible,:where(.tpl) input:focus-visible,:where(.tpl) select:focus-visible,:where(.tpl) textarea:focus-visible{box-shadow:var(--tpl-ring);outline:none}:where(.tpl) .tpl-focus-ring-host:focus-within :is(input,select,textarea):focus-visible{box-shadow:none}.tpl ::-webkit-scrollbar{width:6px;height:6px}.tpl ::-webkit-scrollbar-track{background:0 0}.tpl ::-webkit-scrollbar-thumb{background-color:var(--tpl-border-light)}@supports (color:color-mix(in lab,red,red)){.tpl ::-webkit-scrollbar-thumb{background-color:color-mix(in srgb,var(--tpl-border-light) 60%,transparent)}}.tpl ::-webkit-scrollbar-thumb{border-radius:calc(.25 * var(--tpl-base-size))}.tpl ::-webkit-scrollbar-thumb:hover{background-color:var(--tpl-border-light)}@keyframes tpl-pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes tpl-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tpl-popover-root{z-index:10000;position:relative}.tpl-merge-tag-label{text-underline-offset:3px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}@supports (color:color-mix(in lab,red,red)){.tpl-merge-tag-label{-webkit-text-decoration-color:color-mix(in srgb,currentColor 55%,transparent);text-decoration-color:color-mix(in srgb,currentColor 55%,transparent)}}.tpl-merge-tag-label{unicode-bidi:isolate}.tpl-pulse{animation:2s infinite tpl-pulse}.tpl-spinner{animation:1s linear infinite tpl-spin}@keyframes tpl-fade-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes tpl-scale-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}@keyframes tpl-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.tpl-fade-in{animation:.2s cubic-bezier(.16,1,.3,1) tpl-fade-in}.tpl-scale-in{animation:.15s cubic-bezier(.16,1,.3,1) tpl-scale-in}.tpl-shimmer{background:linear-gradient(90deg,var(--tpl-bg-hover) 25%,var(--tpl-bg-active) 50%,var(--tpl-bg-hover) 75%);background-size:200% 100%;animation:1.5s linear infinite tpl-shimmer}.tpl-preview-mode .tpl-block--idle,.tpl-preview-mode .tpl-block--idle:hover,.tpl-preview-mode .tpl-block--selected{box-shadow:none!important;outline:none!important}.tpl-preview-mode .tpl-block{cursor:default;pointer-events:none}.tpl-canvas-pane{container:tpl-canvas-pane/inline-size}.tpl-preview-mode .tpl-block-actions,.tpl-preview-mode .tpl-block-hidden-overlay,.tpl-preview-mode .tpl-condition-toggle,.tpl-preview-mode .tpl-comment-indicator,.tpl-preview-mode .tpl-collab-lock,.tpl-preview-mode .tpl-block-issue-badge{display:none}.tpl-ghost{border:none!important;border-top:2px dotted var(--tpl-primary)!important;background-color:#0000!important;justify-content:center!important;align-items:center!important;width:100%!important;height:0!important;min-height:0!important;max-height:0!important;margin:12px 0!important;padding:0!important;display:flex!important;position:relative!important;overflow:visible!important}@supports (color:color-mix(in lab,red,red)){.tpl-ghost{border-top:2px dotted color-mix(in srgb,var(--tpl-primary) 50%,transparent)!important}}.tpl-ghost{box-shadow:none!important;border-radius:0!important}.tpl-ghost>*{display:none!important}.tpl-ghost:before{content:var(--tpl-drop-text,\"Drop here\");white-space:nowrap!important;color:var(--tpl-primary)!important;background-color:var(--tpl-primary)!important;padding:2px 8px!important;font-size:12px!important;font-weight:500!important;position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important}@supports (color:color-mix(in lab,red,red)){.tpl-ghost:before{background-color:color-mix(in srgb,var(--tpl-primary) 15%,var(--tpl-bg))!important}}.tpl-ghost:before{border-radius:var(--tpl-radius-sm)!important;box-shadow:none!important}.tpl-canvas-empty .tpl-ghost{display:none!important}.tpl-dragging{opacity:.8;box-shadow:var(--tpl-shadow-xl)}.sortable-fallback{transition:none!important;animation:none!important}.tpl-block--lifted{outline:2px dashed var(--tpl-primary)!important;outline-offset:2px!important;box-shadow:var(--tpl-shadow-xl),0 0 0 4px var(--tpl-primary)!important}@supports (color:color-mix(in lab,red,red)){.tpl-block--lifted{box-shadow:var(--tpl-shadow-xl),0 0 0 4px color-mix(in srgb,var(--tpl-primary) 20%,transparent)!important}}.tpl-block--lifted{transition:transform .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1);transform:scale(1.01)}.tpl-sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl-text-toolbar-btn{width:calc(calc(var(--tpl-base-size) / 4) * 8);height:calc(calc(var(--tpl-base-size) / 4) * 8);cursor:pointer;border-radius:calc(.25 * var(--tpl-base-size));--tw-border-style:none;transition-property:all;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s);color:var(--tpl-text);background-color:#0000;border-style:none;justify-content:center;align-items:center;padding:0;display:flex}.tpl-text-toolbar-btn:hover{background-color:var(--tpl-bg-active)}.tpl-text-toolbar-btn--active{box-shadow:inset 0 0 0 1.5px var(--tpl-primary-hover);background-color:var(--tpl-primary)!important;color:var(--tpl-bg)!important}.tpl-text-toolbar-btn--active svg{stroke-width:2.75px}.tpl-text-content,.tpl-text-editable .tiptap{--tw-outline-style:none;outline-style:none}.tpl-text-editable{border-radius:calc(.25 * var(--tpl-base-size));outline:1px dashed var(--tpl-primary);outline-offset:4px}.tpl-text-editable--error{outline-color:var(--tpl-danger)}.tpl-text-content p,.tpl-text-editable .tiptap p{margin:0 0 var(--tpl-doc-paragraph-spacing,8px)}.tpl-text-content p:last-child,.tpl-text-editable .tiptap p:last-child{margin-bottom:0}.tpl-text-content ul,.tpl-text-content ol,.tpl-text-editable .tiptap ul,.tpl-text-editable .tiptap ol{margin:8px 0;padding-inline-start:24px}.tpl-text-content li,.tpl-text-editable .tiptap li{margin:4px 0}.tpl-text-content s,.tpl-text-editable .tiptap s{text-decoration-line:line-through}.tpl-text-content sub,.tpl-text-editable .tiptap sub{vertical-align:sub;font-size:.75em}.tpl-text-content sup,.tpl-text-editable .tiptap sup{vertical-align:super;font-size:.75em}.tpl-text-content a,.tpl-text-editable a{color:var(--tpl-doc-link-color,inherit);-webkit-text-decoration:var(--tpl-doc-link-underline,none);text-decoration:var(--tpl-doc-link-underline,none)}.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5);border-radius:calc(.25 * var(--tpl-base-size));padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5);padding-block:calc(calc(var(--tpl-base-size) / 4) * .5);--tw-font-weight:500;background-color:var(--tpl-primary);align-items:center;font-size:.9em;font-weight:500;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{background-color:color-mix(in srgb,var(--tpl-primary) 20%,transparent)}}.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{color:var(--tpl-primary);unicode-bidi:isolate}.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5);border-radius:calc(.25 * var(--tpl-base-size));padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5);padding-block:calc(calc(var(--tpl-base-size) / 4) * .5);--tw-font-weight:700;--tw-tracking:.025em;letter-spacing:.025em;text-transform:uppercase;border:1.5px solid var(--tpl-primary);unicode-bidi:isolate;background-color:#0000;align-items:center;font-size:.8em;font-weight:700;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{border:1.5px solid color-mix(in srgb,var(--tpl-primary) 50%,transparent)}}.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{color:var(--tpl-primary)}.tpl-tooltip{position:relative}.tpl-tooltip:after{content:attr(data-tooltip);border-radius:var(--tpl-radius-sm);background-color:var(--tpl-chrome-text);color:var(--tpl-bg);white-space:normal;text-align:center;pointer-events:none;opacity:0;text-transform:none;z-index:50;width:max-content;max-width:min(320px,90vw);padding:4px 10px;font-size:12px;font-weight:500;line-height:1.4;transition:opacity .15s;position:absolute;top:calc(100% + 6px);left:50%;transform:translate(-50%)}.tpl-tooltip:before{content:\"\";border:4px solid #0000;border-bottom-color:var(--tpl-chrome-text);pointer-events:none;opacity:0;z-index:50;transition:opacity .15s;position:absolute;top:calc(100% + 2px);left:50%;transform:translate(-50%)}.tpl-tooltip:hover:after,.tpl-tooltip:hover:before{opacity:1}.tpl-media-overlay{background-color:var(--tpl-overlay);-webkit-backdrop-filter:blur(8px);height:100%;min-height:0;color:var(--tpl-text);flex-direction:row;justify-content:center;align-items:center;display:flex}.tpl.tpl-text-toolbar{flex-direction:row;height:auto;min-height:0;display:flex}.tpl.tpl-link-dialog{background-color:var(--tpl-overlay);flex-direction:row;justify-content:center;align-items:center;height:100%;min-height:0;display:flex}.tpl-upload-zone-active{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.tpl-merge-tag-delete:hover{color:var(--tpl-danger)!important}@media(prefers-reduced-motion:reduce){.tpl-pulse,.tpl-shimmer,.tpl-fade-in,.tpl-scale-in{animation:none}.tpl-shimmer{background:var(--tpl-bg-hover)}.tpl-spinner{animation:1s linear infinite tpl-spin}}.tpl-header-container{container:tpl-header/inline-size}.tpl-header-identity [data-testid=template-name],.tpl-header-identity [data-testid=template-name-input]{max-width:100%}.tpl-language-tag{display:none}.tpl-header-identity{flex-shrink:1;min-width:24px}.tpl-header-timestamp{max-width:100%}.tpl-header[data-compact=true]{grid-template-columns:minmax(0,1fr) auto auto;column-gap:8px;padding-inline:8px}.tpl-header[data-compact=true] .tpl-header-left,.tpl-header[data-compact=true] .tpl-header-right{gap:4px;min-width:0}.tpl-header[data-compact=true] .tpl-header-center{gap:4px}.tpl-header[data-compact=true] .tpl-header-identity{flex:0 auto;min-width:24px;max-width:none;padding-bottom:0}.tpl-header[data-compact=true] .tpl-header-timestamp,.tpl-header[data-compact=true] .tpl-header-label,.tpl-header[data-compact=true] .tpl-header-comment-count,.tpl-header[data-compact=true] .tpl-language-name,.tpl-header[data-compact=true] .tpl-language-count,.tpl-header[data-compact=true] .tpl-language-chevron{display:none}.tpl-header[data-compact=true] .tpl-header-left .tpl-language-tag{display:inline}.tpl-header[data-compact=true] .tpl-language-control{flex-shrink:1}.tpl-header[data-compact=true] .tpl-language-trigger{gap:4px;padding-inline:6px;width:100%!important;max-width:72px!important}.tpl-header[data-compact=true] .tpl-header-center [role=radio]{padding-inline:6px}.tpl-header[data-compact=true] [data-testid=version-history]{gap:0}.tpl-header[data-compact=true] [data-testid=version-history-toggle]{padding-inline:4px}.tpl-header[data-compact=true] .tpl-header-right>button{gap:0;min-width:32px;padding-inline:7px}.tpl-header[data-compact=true] .tpl-header-save-status{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}.tpl-preview-pill-enter-active[data-v-e3760a37]{transition:opacity .2s cubic-bezier(.16,1,.3,1),transform .2s cubic-bezier(.16,1,.3,1)}.tpl-preview-pill-leave-active[data-v-e3760a37]{transition:opacity .15s ease-in,transform .15s ease-in}.tpl-preview-pill-enter-from[data-v-e3760a37],.tpl-preview-pill-leave-to[data-v-e3760a37]{opacity:0;transform:translateY(-8px) scale(.9)}.tpl-preview-pill-enter-to[data-v-e3760a37],.tpl-preview-pill-leave-from[data-v-e3760a37]{opacity:1;transform:translateY(0) scale(1)}hex-color-picker{--hcp-width: 200px}hex-color-picker::part(hue){border-radius:var(--tpl-radius-sm, 7px)}hex-color-picker::part(saturation){border-radius:var(--tpl-radius-sm, 7px) var(--tpl-radius-sm, 7px) 0 0}.tpl-color-swatch-empty{background-color:var(--tpl-bg);background-image:linear-gradient(to top right,transparent calc(50% - .75px),var(--tpl-text-dim) calc(50% - .75px),var(--tpl-text-dim) calc(50% + .75px),transparent calc(50% + .75px))}.tpl-color-swatch-transparent{background-color:var(--tpl-bg);background-image:repeating-conic-gradient(var(--tpl-border) 0% 25%,var(--tpl-bg) 0% 50%);background-size:8px 8px}.tpl-pulse-fill[data-v-fca026e4]{animation:tpl-field-pulse-fca026e4 1s ease-out}@keyframes tpl-field-pulse-fca026e4{0%{box-shadow:0 0 color-mix(in srgb,var(--tpl-warning) 30%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 6%,transparent)}40%{box-shadow:0 0 0 3px color-mix(in srgb,var(--tpl-warning) 15%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 5%,transparent)}to{box-shadow:0 0 0 0 transparent;background-color:transparent}}@media(prefers-reduced-motion:reduce){.tpl-pulse-fill[data-v-fca026e4]{animation:none}}input[type=number][data-v-94c2e6ff]::-webkit-outer-spin-button,input[type=number][data-v-94c2e6ff]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-94c2e6ff]{-moz-appearance:textfield}.tpl-collapsible[data-v-206f038f]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s cubic-bezier(.16,1,.3,1)}.tpl-collapsible--open[data-v-206f038f]{grid-template-rows:1fr}.tpl-collapsible>div[data-v-206f038f]{overflow:hidden}@container tpl-header (max-width: 760px){.tpl-language-submenu[data-v-9b071249]{left:0;top:100%;bottom:auto;margin:4px 0 0;max-width:100%}}.tpl-language-row[data-v-9b071249]:hover,.tpl-language-row[data-v-9b071249]:focus-within,[role=menuitem][data-v-9b071249]:hover{background:var(--tpl-bg-hover)}.tpl-language-row[data-active=true][data-v-9b071249]{background:var(--tpl-bg-active)}.tpl-language-row[data-active=true] .tpl-language-pill[data-v-9b071249]{background:var(--tpl-bg)}[aria-disabled=true][data-v-9b071249]{cursor:not-allowed;color:var(--tpl-text-muted)}[aria-disabled=true] svg[data-v-9b071249]{color:var(--tpl-text-dim)}@media(hover:hover)and (pointer:fine){.tpl-language-actions[data-v-9b071249]{opacity:0}.tpl-language-row:hover .tpl-language-actions[data-v-9b071249],.tpl-language-row:focus-within .tpl-language-actions[data-v-9b071249],.tpl-language-actions[aria-expanded=true][data-v-9b071249]{opacity:1}}.tpl-language-actions[data-v-9b071249]{transition:opacity var(--tpl-transition)}.tpl-ai-slide-enter-active[data-v-3d8e197c]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-ai-slide-leave-active[data-v-3d8e197c]{transition:transform .2s cubic-bezier(.16,1,.3,1)}@media(prefers-reduced-motion:reduce){.tpl-ai-slide-enter-active[data-v-3d8e197c],.tpl-ai-slide-leave-active[data-v-3d8e197c]{transition:none}}.tpl-saved-block-skeleton{animation:tpl-saved-block-pulse 1.4s ease-in-out infinite}@keyframes tpl-saved-block-pulse{0%,to{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.tpl-saved-block-skeleton{animation:none}}.tpl-saved-block-select:focus-visible{box-shadow:none}.tpl-saved-block-select:focus-visible:after{content:\"\";position:absolute;inset:-1px;border-radius:var(--tpl-radius-sm);box-shadow:var(--tpl-ring);pointer-events:none}.tpl-saved-block-delete-btn:hover{color:var(--tpl-danger)!important}.tpl-saved-block-rename-btn:hover{color:var(--tpl-primary)!important}.tpl-media-item[data-v-57c35946]:not(.tpl-media-item--selected):hover{border-color:var(--tpl-border)!important}.tpl-media-list-item[data-v-57c35946]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-list-icon[data-v-57c35946]{transform:scale(.35);transform-origin:center}.tpl-preview-icon[data-v-50993988]{transform:scale(.45);transform-origin:center}.tpl-comments-slide-enter-active[data-v-ebc3c2c6]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-comments-slide-leave-active[data-v-ebc3c2c6]{transition:transform .2s cubic-bezier(.16,1,.3,1)}.tpl-comments-input-wrapper[data-v-ebc3c2c6]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-comments-send-btn[data-v-ebc3c2c6]:not(:disabled):hover{transform:scale(1.05)}.tpl-comment-filter[data-v-ebc3c2c6]{color:var(--tpl-text-muted);background-color:transparent}.tpl-comment-filter[data-v-ebc3c2c6]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-filter--active[data-v-ebc3c2c6]{background-color:var(--tpl-primary-light);color:var(--tpl-primary)}.tpl-comment-action[data-v-ebc3c2c6]{color:var(--tpl-text-dim);background-color:transparent}.tpl-comment-action[data-v-ebc3c2c6]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-delete[data-v-ebc3c2c6]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-comment-card[data-v-ebc3c2c6],.tpl-comment-reply-card[data-v-ebc3c2c6]{border-color:var(--tpl-border);background-color:var(--tpl-bg)}.tpl-resolve-enter-active[data-v-ebc3c2c6],.tpl-resolve-leave-active[data-v-ebc3c2c6]{transition:opacity .3s ease,transform .3s ease}.tpl-resolve-enter-from[data-v-ebc3c2c6],.tpl-resolve-leave-to[data-v-ebc3c2c6]{opacity:0;transform:translateY(-4px)}.tpl-resolve-icon[data-v-ebc3c2c6]{transition:color .3s ease,transform .2s ease}.tpl-resolve-icon[data-v-ebc3c2c6]:active{transform:scale(1.3)}.tpl-replies-enter-active[data-v-ebc3c2c6],.tpl-replies-leave-active[data-v-ebc3c2c6]{transition:opacity .25s ease,transform .25s ease}.tpl-replies-enter-from[data-v-ebc3c2c6],.tpl-replies-leave-to[data-v-ebc3c2c6]{opacity:0;transform:translateY(-4px)}.tpl-ai-input-wrapper[data-v-d3e3a1af]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-ai-send-btn[data-v-d3e3a1af]:not(:disabled):hover{transform:scale(1.05)}.tpl-starter-btn[data-v-d3e3a1af]:hover{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.vue-advanced-cropper{text-align:center;position:relative;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}[data-v-7d9a1872] .tpl-cropper-background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper{background-color:transparent!important}[data-v-7d9a1872] .vue-advanced-cropper__background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper__foreground{background-color:var(--tpl-overlay)!important}\n/*$vite$:1*/", Ko = null;
|
|
4146
|
-
function
|
|
4147
|
-
if (
|
|
4167
|
+
var Ko = "@import\"https://fonts.bunny.net/css?family=geist:400,500,600\";.tpl-loading-track[data-v-e61f3b63]{height:3px;width:100%;border-radius:9999px;background:linear-gradient(90deg,transparent 0%,color-mix(in srgb,var(--tpl-primary) 10%,transparent) 15%,color-mix(in srgb,var(--tpl-primary) 30%,transparent) 30%,var(--tpl-primary) 50%,color-mix(in srgb,var(--tpl-primary) 30%,transparent) 70%,color-mix(in srgb,var(--tpl-primary) 10%,transparent) 85%,transparent 100%);background-size:200% 100%;animation:tpl-loading-flow-e61f3b63 3s ease-in-out infinite}@keyframes tpl-loading-flow-e61f3b63{0%{background-position:100% 0}to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.tpl-loading-track[data-v-e61f3b63]{animation:none;background-position:50% 0}}.tpl-locale-chip[data-state=changed][data-v-3343ae7d]{color:var(--tpl-secondary)}.tpl-locale-chip[data-state=missing][data-v-3343ae7d],.tpl-locale-chip[data-state=stale][data-v-3343ae7d],.tpl-locale-chip[data-state=tags-differ][data-v-3343ae7d]{color:var(--tpl-warning)}.tpl-block--locale-hidden>.tpl-email-surface[data-v-872194d3]{opacity:.35}.tpl-block--idle[data-v-872194d3]{outline:1.5px dashed color-mix(in srgb,var(--tpl-primary) 30%,transparent);outline-offset:-1px;transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block--idle[data-v-872194d3]:hover{outline:1.5px solid color-mix(in srgb,var(--tpl-primary) 50%,transparent);outline-offset:-1px;box-shadow:0 0 8px color-mix(in srgb,var(--tpl-primary) 8%,transparent)}.tpl-block--picked[data-v-872194d3]{outline:2px solid var(--tpl-primary);outline-offset:-1px;box-shadow:0 0 0 4px color-mix(in srgb,var(--tpl-primary) 18%,transparent);transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block--selected[data-v-872194d3]{outline:2px solid color-mix(in srgb,var(--tpl-primary) 60%,transparent);outline-offset:-1px;box-shadow:0 0 12px color-mix(in srgb,var(--tpl-primary) 15%,transparent);transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block-action-btn[data-v-872194d3]{color:var(--tpl-chrome-text-muted);background-color:transparent}.tpl-block-action-btn[data-v-872194d3]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-chrome-text)}.tpl-block-action-btn[data-v-872194d3]:active{transform:scale(.9)}.tpl-block-delete-btn[data-v-872194d3]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-condition-toggle[data-v-872194d3]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-condition-toggle[data-v-872194d3]:active{transform:scale(.9)}.tpl-block-hidden-overlay[data-v-872194d3]{background-color:color-mix(in srgb,var(--tpl-bg) 60%,transparent)}.tpl-block-agent-highlight[data-v-872194d3]{outline:2px solid var(--tpl-secondary);outline-offset:-1px;animation:tpl-agent-highlight-872194d3 2s ease-out forwards}@keyframes tpl-agent-highlight-872194d3{0%,50%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.tpl-block-agent-highlight[data-v-872194d3]{animation:none}}.tpl-table-editable[data-v-73b9f5e5] th[contenteditable],.tpl-table-editable[data-v-73b9f5e5] td[contenteditable]{outline:none;cursor:text;min-width:calc(2 * var(--tpl-base-size))}.tpl-table-editable[data-v-73b9f5e5] th[contenteditable]:empty:before,.tpl-table-editable[data-v-73b9f5e5] td[contenteditable]:empty:before{content:attr(data-placeholder);color:var(--tpl-text-dim);pointer-events:none}.tpl-table-editable[data-v-73b9f5e5] th[contenteditable]:focus,.tpl-table-editable[data-v-73b9f5e5] td[contenteditable]:focus{outline:2px solid var(--tpl-primary);outline-offset:-2px;border-radius:1px}.tpl-canvas--dark-mode[data-v-03a9d286] .tpl-email-surface:not(.tpl-email-surface *){filter:invert(1) hue-rotate(180deg)}[data-v-03a9d286] .tpl-email-surface{transition:filter .3s ease}.tpl-canvas--dark-mode[data-v-03a9d286] .tpl-email-surface img{filter:invert(1) hue-rotate(180deg)}.tpl-canvas--dark-mode[data-v-03a9d286] .tpl-email-surface.tpl-has-bg-image,.tpl-canvas--dark-mode[data-v-03a9d286] .tpl-email-surface .tpl-has-bg-image{position:relative;isolation:isolate;background-image:none!important}.tpl-canvas--dark-mode[data-v-03a9d286] .tpl-email-surface.tpl-has-bg-image:before,.tpl-canvas--dark-mode[data-v-03a9d286] .tpl-email-surface .tpl-has-bg-image:before{content:\"\";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:var(--tpl-block-bg-layer, none);filter:invert(1) hue-rotate(180deg)}.tpl-icon-enter-active[data-v-632aa74f],.tpl-icon-leave-active[data-v-632aa74f]{transition:opacity .12s cubic-bezier(.16,1,.3,1),transform .12s cubic-bezier(.16,1,.3,1)}.tpl-icon-enter-from[data-v-632aa74f],.tpl-icon-leave-to[data-v-632aa74f]{opacity:0;transform:scale(.8)}.tpl-dark-mode-toggle[data-v-632aa74f]:hover{background-color:var(--tpl-bg-hover)}.tpl-dark-mode-toggle[data-v-632aa74f]:active{transform:scale(.92)}.tpl-icon-enter-active[data-v-eef7b2ca],.tpl-icon-leave-active[data-v-eef7b2ca]{transition:opacity .12s cubic-bezier(.16,1,.3,1),transform .12s cubic-bezier(.16,1,.3,1)}.tpl-icon-enter-from[data-v-eef7b2ca],.tpl-icon-leave-to[data-v-eef7b2ca]{opacity:0;transform:scale(.8)}.tpl-preview-toggle[data-v-eef7b2ca]:hover{background-color:var(--tpl-bg-hover)}.tpl-preview-toggle[data-v-eef7b2ca]:active{transform:scale(.92)}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--tpl-radius-sm:calc(.25 * var(--tpl-base-size));--tpl-radius-md:calc(.375 * var(--tpl-base-size));--tpl-radius-lg:calc(.5 * var(--tpl-base-size));--tpl-shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--tpl-shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--tpl-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--tpl-shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--tpl-radius:calc(.25 * var(--tpl-base-size))}}.tpl\\:pointer-events-auto{pointer-events:auto}.tpl\\:pointer-events-none{pointer-events:none}.tpl\\:invisible{visibility:hidden}.tpl\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl\\:absolute{position:absolute}.tpl\\:fixed{position:fixed}.tpl\\:relative{position:relative}.tpl\\:sticky{position:sticky}.tpl\\:inset-0{inset:0}.tpl\\:inset-x-0{inset-inline:0}.tpl\\:inset-y-1{inset-block:calc(var(--tpl-base-size) / 4)}.tpl\\:inset-s-full{inset-inline-start:100%}.tpl\\:inset-e-1{inset-inline-end:calc(var(--tpl-base-size) / 4)}.tpl\\:-top-0\\.5{top:calc(calc(var(--tpl-base-size) / 4) * -.5)}.tpl\\:-top-1{top:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:-top-2{top:calc(calc(var(--tpl-base-size) / 4) * -2)}.tpl\\:top-0{top:0}.tpl\\:top-1{top:calc(var(--tpl-base-size) / 4)}.tpl\\:top-1\\.5{top:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:top-1\\/2{top:50%}.tpl\\:top-2{top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:top-14{top:calc(calc(var(--tpl-base-size) / 4) * 14)}.tpl\\:top-16{top:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:top-full{top:100%}.tpl\\:right-0{right:0}.tpl\\:right-1{right:calc(var(--tpl-base-size) / 4)}.tpl\\:right-1\\.5{right:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:right-2{right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:right-2\\.5{right:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:right-\\[320px\\]{right:320px}.tpl\\:right-\\[360px\\]{right:360px}.tpl\\:right-\\[680px\\]{right:680px}.tpl\\:bottom-0{bottom:0}.tpl\\:bottom-1{bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:bottom-10{bottom:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:bottom-full{bottom:100%}.tpl\\:-left-1{left:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:left-0{left:0}.tpl\\:left-1\\.5{left:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:left-1\\/2{left:50%}.tpl\\:left-2\\.5{left:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:left-3{left:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:left-5{left:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:left-12{left:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:left-full{left:100%}.tpl\\:z-10{z-index:10}.tpl\\:z-20{z-index:20}.tpl\\:z-40{z-index:40}.tpl\\:z-50{z-index:50}.tpl\\:z-\\[4\\]{z-index:4}.tpl\\:z-\\[5\\]{z-index:5}.tpl\\:z-\\[60\\]{z-index:60}.tpl\\:z-\\[100\\]{z-index:100}.tpl\\:z-\\[10000\\]{z-index:10000}.tpl\\:m-0{margin:0}.tpl\\:m-6{margin:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:mx-0\\.5{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:mx-1{margin-inline:calc(var(--tpl-base-size) / 4)}.tpl\\:mx-1\\.5{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mx-3{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mx-4{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:mx-6{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:mx-auto{margin-inline:auto}.tpl\\:ms-2{margin-inline-start:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mt-0\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:mt-1{margin-top:calc(var(--tpl-base-size) / 4)}.tpl\\:mt-1\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mt-2{margin-top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mt-3{margin-top:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mt-3\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:mt-4{margin-top:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:-mr-1\\.5{margin-right:calc(calc(var(--tpl-base-size) / 4) * -1.5)}.tpl\\:mr-2{margin-right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mb-0{margin-bottom:0}.tpl\\:mb-1{margin-bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:mb-1\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mb-2{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mb-2\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:mb-3{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mb-3\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:mb-4{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:mb-px{margin-bottom:1px}.tpl\\:-ml-1\\.5{margin-left:calc(calc(var(--tpl-base-size) / 4) * -1.5)}.tpl\\:-ml-48{margin-left:calc(calc(var(--tpl-base-size) / 4) * -48)}.tpl\\:ml-0{margin-left:0}.tpl\\:ml-0\\.5{margin-left:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:ml-1{margin-left:calc(var(--tpl-base-size) / 4)}.tpl\\:ml-5{margin-left:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:ml-auto{margin-left:auto}.tpl\\:box-border{box-sizing:border-box}.tpl\\:line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tpl\\:line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tpl\\:\\!flex{display:flex!important}.tpl\\:block{display:block}.tpl\\:contents{display:contents}.tpl\\:flex{display:flex}.tpl\\:grid{display:grid}.tpl\\:inline{display:inline}.tpl\\:inline-block{display:inline-block}.tpl\\:inline-flex{display:inline-flex}.tpl\\:aspect-square{aspect-ratio:1}.tpl\\:size-1\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 1.5);height:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:size-2{width:calc(calc(var(--tpl-base-size) / 4) * 2);height:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:size-3{width:calc(calc(var(--tpl-base-size) / 4) * 3);height:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:size-4{width:calc(calc(var(--tpl-base-size) / 4) * 4);height:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:size-4\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 4.5);height:calc(calc(var(--tpl-base-size) / 4) * 4.5)}.tpl\\:size-5{width:calc(calc(var(--tpl-base-size) / 4) * 5);height:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:size-6{width:calc(calc(var(--tpl-base-size) / 4) * 6);height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:size-7{width:calc(calc(var(--tpl-base-size) / 4) * 7);height:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:size-8{width:calc(calc(var(--tpl-base-size) / 4) * 8);height:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:size-10{width:calc(calc(var(--tpl-base-size) / 4) * 10);height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:size-16{width:calc(calc(var(--tpl-base-size) / 4) * 16);height:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:size-full{width:100%;height:100%}.tpl\\:h-0{height:0}.tpl\\:h-1\\.5{height:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:h-2\\.5{height:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:h-3{height:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:h-4{height:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:h-5{height:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:h-6{height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:h-7{height:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:h-8{height:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:h-9{height:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:h-10{height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:h-12{height:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:h-14{height:calc(calc(var(--tpl-base-size) / 4) * 14)}.tpl\\:h-16{height:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:h-32{height:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:h-44{height:calc(calc(var(--tpl-base-size) / 4) * 44)}.tpl\\:h-\\[32px\\]{height:32px}.tpl\\:h-full{height:100%}.tpl\\:max-h-24{max-height:calc(calc(var(--tpl-base-size) / 4) * 24)}.tpl\\:max-h-32{max-height:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:max-h-48{max-height:calc(calc(var(--tpl-base-size) / 4) * 48)}.tpl\\:max-h-56{max-height:calc(calc(var(--tpl-base-size) / 4) * 56)}.tpl\\:max-h-64{max-height:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:max-h-\\[50vh\\]{max-height:50vh}.tpl\\:max-h-\\[60vh\\]{max-height:60vh}.tpl\\:max-h-\\[80\\%\\]{max-height:80%}.tpl\\:max-h-\\[80vh\\]{max-height:80vh}.tpl\\:max-h-\\[90\\%\\]{max-height:90%}.tpl\\:max-h-\\[90vh\\]{max-height:90vh}.tpl\\:max-h-full{max-height:100%}.tpl\\:min-h-0{min-height:0}.tpl\\:min-h-6{min-height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:min-h-10{min-height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:min-h-20{min-height:calc(calc(var(--tpl-base-size) / 4) * 20)}.tpl\\:min-h-\\[1em\\]{min-height:1em}.tpl\\:min-h-\\[34px\\]{min-height:34px}.tpl\\:min-h-\\[44px\\]{min-height:44px}.tpl\\:min-h-\\[48px\\]{min-height:48px}.tpl\\:min-h-\\[60px\\]{min-height:60px}.tpl\\:min-h-\\[68px\\]{min-height:68px}.tpl\\:min-h-\\[80px\\]{min-height:80px}.tpl\\:min-h-\\[100px\\]{min-height:100px}.tpl\\:min-h-\\[120px\\]{min-height:120px}.tpl\\:min-h-\\[150px\\]{min-height:150px}.tpl\\:min-h-\\[400px\\]{min-height:400px}.tpl\\:w-1\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:w-1\\/2{width:50%}.tpl\\:w-1\\/3{width:33.3333%}.tpl\\:w-1\\/4{width:25%}.tpl\\:w-2\\/3{width:66.6667%}.tpl\\:w-3{width:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:w-3\\/4{width:75%}.tpl\\:w-5\\/6{width:83.3333%}.tpl\\:w-7{width:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:w-8{width:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:w-9{width:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:w-10{width:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:w-12{width:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:w-16{width:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:w-20{width:calc(calc(var(--tpl-base-size) / 4) * 20)}.tpl\\:w-24{width:calc(calc(var(--tpl-base-size) / 4) * 24)}.tpl\\:w-28{width:calc(calc(var(--tpl-base-size) / 4) * 28)}.tpl\\:w-32{width:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:w-36{width:calc(calc(var(--tpl-base-size) / 4) * 36)}.tpl\\:w-40{width:calc(calc(var(--tpl-base-size) / 4) * 40)}.tpl\\:w-48{width:calc(calc(var(--tpl-base-size) / 4) * 48)}.tpl\\:w-52{width:calc(calc(var(--tpl-base-size) / 4) * 52)}.tpl\\:w-56{width:calc(calc(var(--tpl-base-size) / 4) * 56)}.tpl\\:w-64{width:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:w-72{width:calc(calc(var(--tpl-base-size) / 4) * 72)}.tpl\\:w-80{width:calc(calc(var(--tpl-base-size) / 4) * 80)}.tpl\\:w-96{width:calc(calc(var(--tpl-base-size) / 4) * 96)}.tpl\\:w-\\[300px\\]{width:300px}.tpl\\:w-\\[320px\\]{width:320px}.tpl\\:w-\\[360px\\]{width:360px}.tpl\\:w-\\[400px\\]{width:400px}.tpl\\:w-\\[420px\\]{width:420px}.tpl\\:w-\\[1000px\\]{width:1000px}.tpl\\:w-\\[min\\(420px\\,92vw\\)\\]{width:min(420px,92vw)}.tpl\\:w-full{width:100%}.tpl\\:w-px{width:1px}.tpl\\:max-w-2xl{max-width:calc(42 * var(--tpl-base-size))}.tpl\\:max-w-3xl{max-width:calc(48 * var(--tpl-base-size))}.tpl\\:max-w-\\[220px\\]{max-width:220px}.tpl\\:max-w-\\[240px\\]{max-width:240px}.tpl\\:max-w-\\[260px\\]{max-width:260px}.tpl\\:max-w-\\[320px\\]{max-width:320px}.tpl\\:max-w-\\[600px\\]{max-width:600px}.tpl\\:max-w-\\[calc\\(100\\%_-_2\\*var\\(--tpl-base-size\\)\\)\\]{max-width:calc(100% - 2 * var(--tpl-base-size))}.tpl\\:max-w-\\[calc\\(100vw_-_2\\*var\\(--tpl-base-size\\)\\)\\]{max-width:calc(100vw - 2 * var(--tpl-base-size))}.tpl\\:max-w-full{max-width:100%}.tpl\\:max-w-md{max-width:calc(28 * var(--tpl-base-size))}.tpl\\:max-w-sm{max-width:calc(24 * var(--tpl-base-size))}.tpl\\:min-w-0{min-width:0}.tpl\\:min-w-6{min-width:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:min-w-\\[20px\\]{min-width:20px}.tpl\\:min-w-\\[200px\\]{min-width:200px}.tpl\\:flex-1{flex:1}.tpl\\:flex-shrink-0,.tpl\\:shrink-0{flex-shrink:0}.tpl\\:grow{flex-grow:1}.tpl\\:basis-64{flex-basis:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-4{--tw-translate-x:calc(calc(var(--tpl-base-size) / 4) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-2{--tw-translate-y:calc(calc(var(--tpl-base-size) / 4) * -2);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-y-1{--tw-translate-y:calc(var(--tpl-base-size) / 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:-rotate-90{rotate:-90deg}.tpl\\:rotate-0{rotate:0deg}.tpl\\:rotate-45{rotate:45deg}.tpl\\:rotate-90{rotate:90deg}.tpl\\:rotate-180{rotate:180deg}.tpl\\:animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.tpl\\:animate-spin{animation:1s linear infinite spin}.tpl\\:cursor-default{cursor:default}.tpl\\:cursor-grab{cursor:grab}.tpl\\:cursor-help{cursor:help}.tpl\\:cursor-not-allowed{cursor:not-allowed}.tpl\\:cursor-pointer{cursor:pointer}.tpl\\:resize-none{resize:none}.tpl\\:resize-y{resize:vertical}.tpl\\:list-disc{list-style-type:disc}.tpl\\:list-none{list-style-type:none}.tpl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.tpl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.tpl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.tpl\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.tpl\\:grid-cols-\\[minmax\\(0\\,1fr\\)_auto_minmax\\(0\\,1fr\\)\\]{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.tpl\\:flex-col{flex-direction:column}.tpl\\:flex-row-reverse{flex-direction:row-reverse}.tpl\\:flex-wrap{flex-wrap:wrap}.tpl\\:items-center{align-items:center}.tpl\\:items-end{align-items:flex-end}.tpl\\:items-start{align-items:flex-start}.tpl\\:items-stretch{align-items:stretch}.tpl\\:justify-between{justify-content:space-between}.tpl\\:justify-center{justify-content:center}.tpl\\:justify-end{justify-content:flex-end}.tpl\\:gap-0{gap:0}.tpl\\:gap-0\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:gap-1{gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-1\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:gap-2{gap:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:gap-2\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:gap-3{gap:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:gap-3\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:gap-4{gap:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:gap-5{gap:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:gap-6{gap:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:gap-10{gap:calc(calc(var(--tpl-base-size) / 4) * 10)}:where(.tpl\\:space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--tpl-base-size) / 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--tpl-base-size) / 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-3\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 3.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 3.5) * calc(1 - var(--tw-space-y-reverse)))}.tpl\\:gap-x-1{column-gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-x-3{column-gap:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:gap-x-6{column-gap:calc(calc(var(--tpl-base-size) / 4) * 6)}:where(.tpl\\:-space-x-1\\.5>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(calc(var(--tpl-base-size) / 4) * -1.5) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(calc(var(--tpl-base-size) / 4) * -1.5) * calc(1 - var(--tw-space-x-reverse)))}.tpl\\:gap-y-0\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:gap-y-1{row-gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-y-1\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:gap-y-2{row-gap:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:self-end{align-self:flex-end}.tpl\\:self-start{align-self:flex-start}.tpl\\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tpl\\:overflow-auto{overflow:auto}.tpl\\:overflow-hidden{overflow:hidden}.tpl\\:overflow-x-auto{overflow-x:auto}.tpl\\:overflow-y-auto{overflow-y:auto}.tpl\\:rounded{border-radius:calc(.25 * var(--tpl-base-size))}.tpl\\:rounded-\\[calc\\(var\\(--tpl-radius-sm\\)-2px\\)\\]{border-radius:calc(var(--tpl-radius-sm) - 2px)}.tpl\\:rounded-\\[var\\(--tpl-radius\\)\\]{border-radius:var(--tpl-radius)}.tpl\\:rounded-\\[var\\(--tpl-radius-lg\\)\\]{border-radius:var(--tpl-radius-lg)}.tpl\\:rounded-\\[var\\(--tpl-radius-md\\)\\]{border-radius:var(--tpl-radius-md)}.tpl\\:rounded-\\[var\\(--tpl-radius-sm\\)\\]{border-radius:var(--tpl-radius-sm)}.tpl\\:rounded-full{border-radius:2147483647px}.tpl\\:rounded-lg{border-radius:calc(.5 * var(--tpl-base-size))}.tpl\\:rounded-md{border-radius:calc(.375 * var(--tpl-base-size))}.tpl\\:rounded-sm{border-radius:calc(.25 * var(--tpl-base-size))}.tpl\\:rounded-xl{border-radius:calc(.75 * var(--tpl-base-size))}.tpl\\:rounded-l-\\[var\\(--tpl-radius-sm\\)\\]{border-top-left-radius:var(--tpl-radius-sm);border-bottom-left-radius:var(--tpl-radius-sm)}.tpl\\:rounded-tl-lg{border-top-left-radius:calc(.5 * var(--tpl-base-size))}.tpl\\:rounded-r-\\[var\\(--tpl-radius-sm\\)\\]{border-top-right-radius:var(--tpl-radius-sm);border-bottom-right-radius:var(--tpl-radius-sm)}.tpl\\:rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.tpl\\:border{border-style:var(--tw-border-style);border-width:1px}.tpl\\:border-0{border-style:var(--tw-border-style);border-width:0}.tpl\\:border-2{border-style:var(--tw-border-style);border-width:2px}.tpl\\:border-x-0{border-inline-style:var(--tw-border-style);border-inline-width:0}.tpl\\:border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.tpl\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.tpl\\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.tpl\\:border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.tpl\\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.tpl\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.tpl\\:border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.tpl\\:border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.tpl\\:border-dashed{--tw-border-style:dashed;border-style:dashed}.tpl\\:border-none{--tw-border-style:none;border-style:none}.tpl\\:border-\\[var\\(--tpl-bg\\)\\]{border-color:var(--tpl-bg)}.tpl\\:border-\\[var\\(--tpl-border\\)\\]{border-color:var(--tpl-border)}.tpl\\:border-\\[var\\(--tpl-border-light\\)\\]{border-color:var(--tpl-border-light)}.tpl\\:border-\\[var\\(--tpl-danger\\)\\]{border-color:var(--tpl-danger)}.tpl\\:border-\\[var\\(--tpl-primary\\)\\]{border-color:var(--tpl-primary)}.tpl\\:border-\\[var\\(--tpl-primary-hover\\)\\]{border-color:var(--tpl-primary-hover)}.tpl\\:border-\\[var\\(--tpl-warning\\)\\]{border-color:var(--tpl-warning)}.tpl\\:border-transparent{border-color:#0000}.tpl\\:border-l-\\[var\\(--tpl-primary\\)\\]{border-left-color:var(--tpl-primary)}.tpl\\:border-l-transparent{border-left-color:#0000}.tpl\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-bg\\)_90\\%\\,transparent\\)\\]{background-color:var(--tpl-bg)}@supports (color:color-mix(in lab,red,red)){.tpl\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-bg\\)_90\\%\\,transparent\\)\\]{background-color:color-mix(in srgb,var(--tpl-bg) 90%,transparent)}}.tpl\\:bg-\\[var\\(--tpl-bg\\)\\]{background-color:var(--tpl-bg)}.tpl\\:bg-\\[var\\(--tpl-bg-active\\)\\]{background-color:var(--tpl-bg-active)}.tpl\\:bg-\\[var\\(--tpl-bg-elevated\\)\\]{background-color:var(--tpl-bg-elevated)}.tpl\\:bg-\\[var\\(--tpl-bg-hover\\)\\]{background-color:var(--tpl-bg-hover)}.tpl\\:bg-\\[var\\(--tpl-border\\)\\]{background-color:var(--tpl-border)}.tpl\\:bg-\\[var\\(--tpl-canvas-bg\\)\\]{background-color:var(--tpl-canvas-bg)}.tpl\\:bg-\\[var\\(--tpl-chrome-bg-elevated\\)\\]{background-color:var(--tpl-chrome-bg-elevated)}.tpl\\:bg-\\[var\\(--tpl-chrome-primary-light\\)\\]{background-color:var(--tpl-chrome-primary-light)}.tpl\\:bg-\\[var\\(--tpl-danger\\)\\]{background-color:var(--tpl-danger)}.tpl\\:bg-\\[var\\(--tpl-danger-light\\)\\]{background-color:var(--tpl-danger-light)}.tpl\\:bg-\\[var\\(--tpl-primary\\)\\]{background-color:var(--tpl-primary)}.tpl\\:bg-\\[var\\(--tpl-primary-light\\)\\]{background-color:var(--tpl-primary-light)}.tpl\\:bg-\\[var\\(--tpl-secondary-light\\)\\]{background-color:var(--tpl-secondary-light)}.tpl\\:bg-\\[var\\(--tpl-text-dim\\)\\]{background-color:var(--tpl-text-dim)}.tpl\\:bg-\\[var\\(--tpl-warning-light\\)\\]{background-color:var(--tpl-warning-light)}.tpl\\:bg-black\\/30{background-color:oklab(0% none none/.3)}.tpl\\:bg-transparent{background-color:#0000}.tpl\\:object-contain{object-fit:contain}.tpl\\:object-cover{object-fit:cover}.tpl\\:p-0{padding:0}.tpl\\:p-0\\.5{padding:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:p-1{padding:calc(var(--tpl-base-size) / 4)}.tpl\\:p-1\\.5{padding:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:p-2{padding:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:p-3{padding:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:p-4{padding:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:p-5{padding:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:p-6{padding:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:p-8{padding:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:px-0\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:px-1{padding-inline:calc(var(--tpl-base-size) / 4)}.tpl\\:px-1\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:px-2{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:px-2\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:px-3{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:px-3\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:px-4{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:px-5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:px-6{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:px-8{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:px-10{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:py-0{padding-block:0}.tpl\\:py-0\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:py-1{padding-block:calc(var(--tpl-base-size) / 4)}.tpl\\:py-1\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:py-2{padding-block:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:py-2\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:py-3{padding-block:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:py-3\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:py-4{padding-block:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:py-5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:py-6{padding-block:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:py-8{padding-block:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:py-10{padding-block:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:py-12{padding-block:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:py-16{padding-block:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:py-\\[5px\\]{padding-block:5px}.tpl\\:py-\\[7px\\]{padding-block:7px}.tpl\\:py-px{padding-block:1px}.tpl\\:pt-2{padding-top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pt-2\\.5{padding-top:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:pt-3{padding-top:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pt-4{padding-top:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pr-2{padding-right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pr-3{padding-right:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pr-4{padding-right:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pr-7{padding-right:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:pr-8{padding-right:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:pb-1{padding-bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:pb-1\\.5{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:pb-3{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pb-4{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pl-2\\.5{padding-left:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:pl-3{padding-left:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pl-4{padding-left:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pl-8{padding-left:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:pl-9{padding-left:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:pl-\\[18px\\]{padding-left:18px}.tpl\\:text-center{text-align:center}.tpl\\:text-left{text-align:left}.tpl\\:font-\\[inherit\\]{font-family:inherit}.tpl\\:font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.tpl\\:font-sans{font-family:Geist,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tpl\\:text-base{font-size:var(--tpl-base-size);line-height:var(--tw-leading, 1.5 )}.tpl\\:text-lg{font-size:calc(1.125 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.75 / 1.125))}.tpl\\:text-sm{font-size:calc(.875 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.25 / .875))}.tpl\\:text-xs{font-size:calc(.75 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1 / .75))}.tpl\\:text-\\[0\\.8em\\]{font-size:.8em}.tpl\\:text-\\[0\\.9em\\]{font-size:.9em}.tpl\\:text-\\[1em\\]{font-size:1em}.tpl\\:text-\\[10px\\]{font-size:10px}.tpl\\:text-\\[12px\\]{font-size:12px}.tpl\\:text-\\[13px\\]{font-size:13px}.tpl\\:text-\\[length\\:inherit\\]{font-size:inherit}.tpl\\:leading-\\[inherit\\]{--tw-leading:inherit;line-height:inherit}.tpl\\:leading-none{--tw-leading:1;line-height:1}.tpl\\:leading-normal{--tw-leading:1.5;line-height:1.5}.tpl\\:leading-relaxed{--tw-leading:1.625;line-height:1.625}.tpl\\:leading-snug{--tw-leading:1.375;line-height:1.375}.tpl\\:leading-tight{--tw-leading:1.25;line-height:1.25}.tpl\\:font-\\[var\\(--tpl-font-family\\)\\]{--tw-font-weight:var(--tpl-font-family);font-weight:var(--tpl-font-family)}.tpl\\:font-bold{--tw-font-weight:700;font-weight:700}.tpl\\:font-medium{--tw-font-weight:500;font-weight:500}.tpl\\:font-normal{--tw-font-weight:400;font-weight:400}.tpl\\:font-semibold{--tw-font-weight:600;font-weight:600}.tpl\\:tracking-wide{--tw-tracking:.025em;letter-spacing:.025em}.tpl\\:tracking-wider{--tw-tracking:.05em;letter-spacing:.05em}.tpl\\:break-words{overflow-wrap:break-word}.tpl\\:break-all{word-break:break-all}.tpl\\:text-ellipsis{text-overflow:ellipsis}.tpl\\:whitespace-normal{white-space:normal}.tpl\\:whitespace-nowrap{white-space:nowrap}.tpl\\:whitespace-pre-wrap{white-space:pre-wrap}.tpl\\:text-\\[var\\(--tpl-bg\\)\\]{color:var(--tpl-bg)}.tpl\\:text-\\[var\\(--tpl-border-light\\)\\]{color:var(--tpl-border-light)}.tpl\\:text-\\[var\\(--tpl-chrome-text\\)\\]{color:var(--tpl-chrome-text)}.tpl\\:text-\\[var\\(--tpl-chrome-text-dim\\)\\]{color:var(--tpl-chrome-text-dim)}.tpl\\:text-\\[var\\(--tpl-chrome-text-muted\\)\\]{color:var(--tpl-chrome-text-muted)}.tpl\\:text-\\[var\\(--tpl-danger\\)\\]{color:var(--tpl-danger)}.tpl\\:text-\\[var\\(--tpl-on-primary\\)\\]{color:var(--tpl-on-primary)}.tpl\\:text-\\[var\\(--tpl-primary\\)\\]{color:var(--tpl-primary)}.tpl\\:text-\\[var\\(--tpl-primary-hover\\)\\]{color:var(--tpl-primary-hover)}.tpl\\:text-\\[var\\(--tpl-success\\)\\]{color:var(--tpl-success)}.tpl\\:text-\\[var\\(--tpl-success\\,var\\(--tpl-primary\\)\\)\\]{color:var(--tpl-success,var(--tpl-primary))}.tpl\\:text-\\[var\\(--tpl-text\\)\\]{color:var(--tpl-text)}.tpl\\:text-\\[var\\(--tpl-text-dim\\)\\]{color:var(--tpl-text-dim)}.tpl\\:text-\\[var\\(--tpl-text-muted\\)\\]{color:var(--tpl-text-muted)}.tpl\\:text-\\[var\\(--tpl-warning\\)\\]{color:var(--tpl-warning)}.tpl\\:normal-case{text-transform:none}.tpl\\:uppercase{text-transform:uppercase}.tpl\\:italic{font-style:italic}.tpl\\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, )}.tpl\\:no-underline{text-decoration-line:none}.tpl\\:underline{text-decoration-line:underline}.tpl\\:underline-offset-2{text-underline-offset:2px}.tpl\\:accent-\\[var\\(--tpl-primary\\)\\]{accent-color:var(--tpl-primary)}.tpl\\:opacity-0{opacity:0}.tpl\\:opacity-50{opacity:.5}.tpl\\:opacity-60{opacity:.6}.tpl\\:opacity-70{opacity:.7}.tpl\\:opacity-90{opacity:.9}.tpl\\:opacity-100{opacity:1}.tpl\\:shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-ring\\)\\]{--tw-shadow:var(--tpl-ring);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow\\)\\]{--tw-shadow:var(--tpl-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-lg\\)\\]{--tw-shadow:var(--tpl-shadow-lg);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-md\\)\\]{--tw-shadow:var(--tpl-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-sm\\)\\]{--tw-shadow:var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-1{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-2{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-\\[var\\(--tpl-border\\)\\]{--tw-ring-color:var(--tpl-border)}.tpl\\:ring-\\[var\\(--tpl-primary\\)\\]{--tw-ring-color:var(--tpl-primary)}.tpl\\:ring-offset-1{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.tpl\\:ring-offset-\\[var\\(--tpl-bg-elevated\\)\\]{--tw-ring-offset-color:var(--tpl-bg-elevated)}.tpl\\:backdrop-blur-\\[2px\\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, )}.tpl\\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:duration-100{--tw-duration:.1s;transition-duration:.1s}.tpl\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.tpl\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.tpl\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.tpl\\:duration-\\[80ms\\]{--tw-duration:80ms;transition-duration:80ms}.tpl\\:duration-\\[120ms\\]{--tw-duration:.12s;transition-duration:.12s}.tpl\\:ease-\\[cubic-bezier\\(0\\.16\\,1\\,0\\.3\\,1\\)\\]{--tw-ease:cubic-bezier(.16,1,.3,1);transition-timing-function:cubic-bezier(.16,1,.3,1)}.tpl\\:ease-in{--tw-ease:cubic-bezier(.4, 0, 1, 1);transition-timing-function:cubic-bezier(.4,0,1,1)}.tpl\\:ease-out{--tw-ease:cubic-bezier(0, 0, .2, 1);transition-timing-function:cubic-bezier(0,0,.2,1)}.tpl\\:outline-none{--tw-outline-style:none;outline-style:none}.tpl\\:select-none{-webkit-user-select:none;user-select:none}:is(:where(.tpl\\:group):focus-within .tpl\\:group-focus-within\\:opacity-100){opacity:1}@media(hover:hover){:is(:where(.tpl\\:group):hover .tpl\\:group-hover\\:bg-black\\/40){background-color:oklab(0% none none/.4)}:is(:where(.tpl\\:group):hover .tpl\\:group-hover\\:opacity-100){opacity:1}}.tpl\\:placeholder\\:text-\\[var\\(--tpl-text-dim\\)\\]::placeholder{color:var(--tpl-text-dim)}.tpl\\:last\\:mb-0:last-child{margin-bottom:0}@media(hover:hover){.tpl\\:hover\\:z-10:hover{z-index:10}.tpl\\:hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:border-\\[var\\(--tpl-border\\)\\]:hover{border-color:var(--tpl-border)}.tpl\\:hover\\:border-\\[var\\(--tpl-danger\\)\\]:hover{border-color:var(--tpl-danger)}.tpl\\:hover\\:border-\\[var\\(--tpl-primary\\)\\]:hover{border-color:var(--tpl-primary)}.tpl\\:hover\\:border-\\[var\\(--tpl-text-dim\\)\\]:hover{border-color:var(--tpl-text-dim)}.tpl\\:hover\\:border-l-\\[var\\(--tpl-primary\\)\\]:hover{border-left-color:var(--tpl-primary)}.tpl\\:hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-text\\)_8\\%\\,transparent\\)\\]:hover{background-color:var(--tpl-text)}@supports (color:color-mix(in lab,red,red)){.tpl\\:hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-text\\)_8\\%\\,transparent\\)\\]:hover{background-color:color-mix(in srgb,var(--tpl-text) 8%,transparent)}}.tpl\\:hover\\:bg-\\[var\\(--tpl-bg-active\\)\\]:hover{background-color:var(--tpl-bg-active)}.tpl\\:hover\\:bg-\\[var\\(--tpl-bg-hover\\)\\]:hover{background-color:var(--tpl-bg-hover)}.tpl\\:hover\\:bg-\\[var\\(--tpl-danger-light\\)\\]:hover{background-color:var(--tpl-danger-light)}.tpl\\:hover\\:bg-\\[var\\(--tpl-primary-hover\\)\\]:hover{background-color:var(--tpl-primary-hover)}.tpl\\:hover\\:bg-\\[var\\(--tpl-primary-light\\)\\]:hover{background-color:var(--tpl-primary-light)}.tpl\\:hover\\:bg-\\[var\\(--tpl-warning-light\\)\\]:hover{background-color:var(--tpl-warning-light)}.tpl\\:hover\\:text-\\[var\\(--tpl-danger\\)\\]:hover{color:var(--tpl-danger)}.tpl\\:hover\\:text-\\[var\\(--tpl-primary\\)\\]:hover{color:var(--tpl-primary)}.tpl\\:hover\\:text-\\[var\\(--tpl-text\\)\\]:hover{color:var(--tpl-text)}.tpl\\:hover\\:underline:hover{text-decoration-line:underline}.tpl\\:hover\\:opacity-80:hover{opacity:.8}.tpl\\:hover\\:opacity-100:hover{opacity:1}.tpl\\:hover\\:shadow-\\[var\\(--tpl-shadow-md\\)\\]:hover{--tw-shadow:var(--tpl-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:hover\\:shadow-\\[var\\(--tpl-shadow-sm\\)\\]:hover{--tw-shadow:var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.tpl\\:focus\\:border-\\[var\\(--tpl-primary\\)\\]:focus{border-color:var(--tpl-primary)}.tpl\\:focus\\:shadow-\\[0_0_0_3px_var\\(--tpl-primary-light\\)\\]:focus{--tw-shadow:0 0 0 3px var(--tw-shadow-color,var(--tpl-primary-light));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus\\:shadow-\\[var\\(--tpl-ring\\)\\]:focus,.tpl\\:focus-visible\\:shadow-\\[var\\(--tpl-ring\\)\\]:focus-visible{--tw-shadow:var(--tpl-ring);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus-visible\\:ring-\\[var\\(--tpl-primary\\)\\]:focus-visible{--tw-ring-color:var(--tpl-primary)}.tpl\\:focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.tpl\\:focus-visible\\:ring-offset-\\[var\\(--tpl-bg-elevated\\)\\]:focus-visible{--tw-ring-offset-color:var(--tpl-bg-elevated)}.tpl\\:focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.tpl\\:focus-visible\\:outline-\\[var\\(--tpl-primary\\)\\]:focus-visible{outline-color:var(--tpl-primary)}.tpl\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}@media(hover:hover){.tpl\\:hover\\:focus-visible\\:shadow-\\[var\\(--tpl-ring\\)\\,var\\(--tpl-shadow-sm\\)\\]:hover:focus-visible{--tw-shadow:var(--tpl-ring), var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.tpl\\:active\\:cursor-grabbing:active{cursor:grabbing}.tpl\\:active\\:bg-\\[var\\(--tpl-bg-active\\)\\]:active{background-color:var(--tpl-bg-active)}.tpl\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.tpl\\:disabled\\:opacity-30:disabled{opacity:.3}.tpl\\:disabled\\:opacity-40:disabled{opacity:.4}.tpl\\:disabled\\:opacity-50:disabled{opacity:.5}.tpl\\:disabled\\:opacity-60:disabled{opacity:.6}@media(hover:hover){.tpl\\:disabled\\:hover\\:bg-transparent:disabled:hover{background-color:#0000}}.tpl\\:\\[\\&_p\\]\\:mb-2 p{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}@layer base{:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)):after,:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)):before,:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}:where(.tpl) :where(hr):not(:where(.tpl-email-surface,.tpl-email-surface *)){height:0;color:inherit;border-top-width:1px}:where(.tpl) :where(abbr[title]):not(:where(.tpl-email-surface,.tpl-email-surface *)){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}:where(.tpl) :where(h1):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h2):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h3):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h4):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h5):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h6):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-size:inherit;font-weight:inherit}:where(.tpl) :where(a):not(:where(.tpl-email-surface,.tpl-email-surface *)){color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}:where(.tpl) :where(b):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(strong):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-weight:bolder}:where(.tpl) :where(code):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(kbd):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(samp):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(pre):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}:where(.tpl) :where(small):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-size:80%}:where(.tpl) :where(sub):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(sup):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:baseline;font-size:75%;line-height:0;position:relative}:where(.tpl) :where(sub):not(:where(.tpl-email-surface,.tpl-email-surface *)){bottom:-.25em}:where(.tpl) :where(sup):not(:where(.tpl-email-surface,.tpl-email-surface *)){top:-.5em}:where(.tpl) :where(table):not(:where(.tpl-email-surface,.tpl-email-surface *)){text-indent:0;border-color:inherit;border-collapse:collapse}:where(.tpl) :where(:-moz-focusring:not(iframe)):not(:where(.tpl-email-surface,.tpl-email-surface *)){outline:auto}:where(.tpl) :where(progress):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:baseline}:where(.tpl) :where(summary):not(:where(.tpl-email-surface,.tpl-email-surface *)){display:list-item}:where(.tpl) :where(ol):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(ul):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(menu):not(:where(.tpl-email-surface,.tpl-email-surface *)){list-style:none}:where(.tpl) :where(img):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(svg):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(video):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(canvas):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(audio):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(iframe):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(embed):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(object):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:middle;display:block}:where(.tpl) :where(img):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(video):not(:where(.tpl-email-surface,.tpl-email-surface *)){max-width:100%;height:auto}:where(.tpl) :where(button):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(input):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(select):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(optgroup):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(textarea):not(:where(.tpl-email-surface,.tpl-email-surface *)){font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(.tpl) :where(select:is([multiple],[size]) optgroup):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-weight:bolder}:where(.tpl) :where(select:is([multiple],[size]) optgroup option):not(:where(.tpl-email-surface,.tpl-email-surface *)){padding-inline-start:20px}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{margin-inline-end:4px}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}:where(.tpl) :where(textarea):not(:where(.tpl-email-surface,.tpl-email-surface *)){resize:vertical}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-search-decoration{-webkit-appearance:none}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit{display:inline-flex}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-fields-wrapper{padding:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-year-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-month-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-day-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-hour-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-minute-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-second-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-millisecond-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-meridiem-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-calendar-picker-indicator{line-height:1}:where(.tpl) :where(:-moz-ui-invalid):not(:where(.tpl-email-surface,.tpl-email-surface *)){box-shadow:none}:where(.tpl) :where(button):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(input:is([type=button],[type=reset],[type=submit])):not(:where(.tpl-email-surface,.tpl-email-surface *)){appearance:button}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{appearance:button}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-inner-spin-button{height:auto}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-outer-spin-button{height:auto}:where(.tpl) :where([hidden]:not([hidden=until-found])):not(:where(.tpl-email-surface,.tpl-email-surface *)){display:none!important}}@layer components;.tpl{--tpl-base-size:var(--tpl-user-base-size,16px);--tpl-bg:var(--tpl-user-bg,oklch(99.5% .002 60));--tpl-bg-elevated:var(--tpl-user-bg-elevated,oklch(98% .004 60));--tpl-bg-hover:var(--tpl-user-bg-hover,oklch(96% .006 60));--tpl-bg-active:var(--tpl-user-bg-active,oklch(93.5% .008 60));--tpl-border:var(--tpl-user-border,oklch(92% .006 60));--tpl-border-light:var(--tpl-user-border-light,oklch(86% .01 60));--tpl-text:var(--tpl-user-text,oklch(18% .01 60));--tpl-text-muted:var(--tpl-user-text-muted,oklch(50% .015 60));--tpl-text-dim:var(--tpl-user-text-dim,oklch(68% .012 60));--tpl-primary:var(--tpl-user-primary,oklch(70% .16 55));--tpl-primary-hover:var(--tpl-user-primary-hover,oklch(63% .17 55));--tpl-primary-light:var(--tpl-user-primary-light,oklch(95% .04 55));--tpl-on-primary:var(--tpl-user-on-primary,var(--tpl-bg));--tpl-secondary:var(--tpl-user-secondary,oklch(60% .118 184.71));--tpl-secondary-hover:var(--tpl-user-secondary-hover,oklch(53.2% .105 186.39));--tpl-secondary-light:var(--tpl-user-secondary-light,oklch(93.8% .03 186.82));--tpl-success:var(--tpl-user-success,oklch(62.8% .194 155.1));--tpl-success-light:var(--tpl-user-success-light,oklch(93.6% .043 163.51));--tpl-warning:var(--tpl-user-warning,oklch(76.9% .168 70.08));--tpl-warning-light:var(--tpl-user-warning-light,oklch(95% .038 73.59));--tpl-danger:var(--tpl-user-danger,oklch(63.7% .237 25.33));--tpl-danger-light:var(--tpl-user-danger-light,oklch(93.6% .032 17.72));--tpl-canvas-bg:var(--tpl-user-canvas-bg,oklch(97.5% .003 60));--tpl-chrome-bg-elevated:var(--tpl-bg-elevated);--tpl-chrome-border-light:var(--tpl-border-light);--tpl-chrome-text:var(--tpl-text);--tpl-chrome-text-muted:var(--tpl-text-muted);--tpl-chrome-text-dim:var(--tpl-text-dim);--tpl-chrome-primary-light:var(--tpl-primary-light);--tpl-chrome-primary-hover:var(--tpl-primary-hover);--tpl-radius:var(--tpl-user-radius,10px);--tpl-radius-sm:var(--tpl-user-radius-sm,7px);--tpl-radius-lg:var(--tpl-user-radius-lg,14px);--tpl-font-family:var(--tpl-user-font-family,\"Geist\", ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");--tpl-shadow-sm:var(--tpl-user-shadow-sm,0 1px 2px #00000008);--tpl-shadow:var(--tpl-user-shadow,0 1px 2px #0000000a, 0 1px 3px #00000008);--tpl-shadow-md:var(--tpl-user-shadow-md,0 2px 8px #0000000f, 0 1px 3px #0000000a);--tpl-shadow-lg:var(--tpl-user-shadow-lg,0 4px 16px #00000014, 0 2px 6px #0000000a);--tpl-shadow-xl:var(--tpl-user-shadow-xl,0 8px 32px #0000001a, 0 4px 12px #0000000f);--tpl-overlay:var(--tpl-user-overlay,#00000080);--tpl-ring:var(--tpl-user-ring,0 0 0 3px var(--tpl-primary-light));--tpl-transition:var(--tpl-user-transition,.12s cubic-bezier(.16, 1, .3, 1));--tpl-panel-transition:var(--tpl-user-panel-transition,.24s cubic-bezier(.16, 1, .3, 1))}.tpl[data-tpl-theme=dark]{--tpl-bg:var(--tpl-user-dark-bg,oklch(16% .005 60));--tpl-bg-elevated:var(--tpl-user-dark-bg-elevated,oklch(21% .006 60));--tpl-bg-hover:var(--tpl-user-dark-bg-hover,oklch(26% .007 60));--tpl-bg-active:var(--tpl-user-dark-bg-active,oklch(30% .008 60));--tpl-border:var(--tpl-user-dark-border,oklch(30% .006 60));--tpl-border-light:var(--tpl-user-dark-border-light,oklch(38% .008 60));--tpl-text:var(--tpl-user-dark-text,oklch(93% .005 60));--tpl-text-muted:var(--tpl-user-dark-text-muted,oklch(65% .01 60));--tpl-text-dim:var(--tpl-user-dark-text-dim,oklch(50% .008 60));--tpl-primary:var(--tpl-user-dark-primary,oklch(73% .15 55));--tpl-primary-hover:var(--tpl-user-dark-primary-hover,oklch(78% .14 55));--tpl-primary-light:var(--tpl-user-dark-primary-light,oklch(28% .05 55));--tpl-secondary:var(--tpl-user-dark-secondary,oklch(63% .11 184.71));--tpl-secondary-hover:var(--tpl-user-dark-secondary-hover,oklch(68% .1 186.39));--tpl-secondary-light:var(--tpl-user-dark-secondary-light,oklch(25% .03 186.82));--tpl-success:var(--tpl-user-dark-success,oklch(65% .18 155.1));--tpl-success-light:var(--tpl-user-dark-success-light,oklch(25% .04 163.51));--tpl-warning:var(--tpl-user-dark-warning,oklch(78% .16 70.08));--tpl-warning-light:var(--tpl-user-dark-warning-light,oklch(28% .04 73.59));--tpl-danger:var(--tpl-user-dark-danger,oklch(65% .22 25.33));--tpl-danger-light:var(--tpl-user-dark-danger-light,oklch(25% .04 17.72));--tpl-canvas-bg:var(--tpl-user-dark-canvas-bg,oklch(10% .003 60));--tpl-shadow-sm:var(--tpl-user-dark-shadow-sm,0 1px 2px #0003);--tpl-shadow:var(--tpl-user-dark-shadow,0 1px 2px #0000004d, 0 1px 3px #0003);--tpl-shadow-md:var(--tpl-user-dark-shadow-md,0 2px 8px #00000059, 0 1px 3px #00000040);--tpl-shadow-lg:var(--tpl-user-dark-shadow-lg,0 4px 16px #0006, 0 2px 6px #0000004d);--tpl-shadow-xl:var(--tpl-user-dark-shadow-xl,0 8px 32px #00000080, 0 4px 12px #00000059);--tpl-overlay:var(--tpl-user-dark-overlay,#000000b3);--tpl-ring:var(--tpl-user-dark-ring,0 0 0 3px var(--tpl-primary-light))}.tpl[data-tpl-theme=dark] .tpl-block-content,.tpl[data-tpl-theme=dark] .tpl-canvas-empty{--tpl-bg-elevated:oklch(98% .004 60);--tpl-border-light:oklch(86% .01 60);--tpl-text:oklch(18% .01 60);--tpl-text-muted:oklch(50% .015 60);--tpl-text-dim:oklch(68% .012 60);--tpl-primary-light:oklch(95% .04 55);--tpl-primary-hover:oklch(60% .16 55);color:var(--tpl-text)}.tpl{height:100%;font-family:Geist,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:calc(.875 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.25 / .875));--tw-leading:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--tpl-bg);min-height:320px;color:var(--tpl-text);line-height:1.5;font-family:var(--tpl-font-family);letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0;text-align:start;white-space:normal;cursor:auto;font-variant-numeric:normal;text-shadow:none;flex-direction:column;font-style:normal;font-weight:400;list-style-type:disc;display:flex}:where(.tpl) button,:where(.tpl) input,:where(.tpl) select,:where(.tpl) textarea{box-sizing:border-box;font-family:inherit}:where(.tpl) button{cursor:pointer;background:0 0;border:none;margin:0;padding:0}:where(.tpl) button:focus-visible,:where(.tpl) input:focus-visible,:where(.tpl) select:focus-visible,:where(.tpl) textarea:focus-visible{box-shadow:var(--tpl-ring);outline:none}:where(.tpl) .tpl-focus-ring-host:focus-within :is(input,select,textarea):focus-visible{box-shadow:none}.tpl ::-webkit-scrollbar{width:6px;height:6px}.tpl ::-webkit-scrollbar-track{background:0 0}.tpl ::-webkit-scrollbar-thumb{background-color:var(--tpl-border-light)}@supports (color:color-mix(in lab,red,red)){.tpl ::-webkit-scrollbar-thumb{background-color:color-mix(in srgb,var(--tpl-border-light) 60%,transparent)}}.tpl ::-webkit-scrollbar-thumb{border-radius:calc(.25 * var(--tpl-base-size))}.tpl ::-webkit-scrollbar-thumb:hover{background-color:var(--tpl-border-light)}@keyframes tpl-pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes tpl-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tpl-popover-root{z-index:10000;position:relative}.tpl-merge-tag-label{text-underline-offset:3px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}@supports (color:color-mix(in lab,red,red)){.tpl-merge-tag-label{-webkit-text-decoration-color:color-mix(in srgb,currentColor 55%,transparent);text-decoration-color:color-mix(in srgb,currentColor 55%,transparent)}}.tpl-merge-tag-label{unicode-bidi:isolate}.tpl-pulse{animation:2s infinite tpl-pulse}.tpl-spinner{animation:1s linear infinite tpl-spin}@keyframes tpl-fade-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes tpl-scale-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}@keyframes tpl-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.tpl-fade-in{animation:.2s cubic-bezier(.16,1,.3,1) tpl-fade-in}.tpl-scale-in{animation:.15s cubic-bezier(.16,1,.3,1) tpl-scale-in}.tpl-shimmer{background:linear-gradient(90deg,var(--tpl-bg-hover) 25%,var(--tpl-bg-active) 50%,var(--tpl-bg-hover) 75%);background-size:200% 100%;animation:1.5s linear infinite tpl-shimmer}.tpl-preview-mode .tpl-block--idle,.tpl-preview-mode .tpl-block--idle:hover,.tpl-preview-mode .tpl-block--selected{box-shadow:none!important;outline:none!important}.tpl-preview-mode .tpl-block{cursor:default;pointer-events:none}.tpl-canvas-pane{container:tpl-canvas-pane/inline-size}.tpl-preview-mode .tpl-block-actions,.tpl-preview-mode .tpl-block-hidden-overlay,.tpl-preview-mode .tpl-condition-toggle,.tpl-preview-mode .tpl-comment-indicator,.tpl-preview-mode .tpl-collab-lock,.tpl-preview-mode .tpl-block-issue-badge{display:none}.tpl-ghost{border:none!important;border-top:2px dotted var(--tpl-primary)!important;background-color:#0000!important;justify-content:center!important;align-items:center!important;width:100%!important;height:0!important;min-height:0!important;max-height:0!important;margin:12px 0!important;padding:0!important;display:flex!important;position:relative!important;overflow:visible!important}@supports (color:color-mix(in lab,red,red)){.tpl-ghost{border-top:2px dotted color-mix(in srgb,var(--tpl-primary) 50%,transparent)!important}}.tpl-ghost{box-shadow:none!important;border-radius:0!important}.tpl-ghost>*{display:none!important}.tpl-ghost:before{content:var(--tpl-drop-text,\"Drop here\");white-space:nowrap!important;color:var(--tpl-primary)!important;background-color:var(--tpl-primary)!important;padding:2px 8px!important;font-size:12px!important;font-weight:500!important;position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important}@supports (color:color-mix(in lab,red,red)){.tpl-ghost:before{background-color:color-mix(in srgb,var(--tpl-primary) 15%,var(--tpl-bg))!important}}.tpl-ghost:before{border-radius:var(--tpl-radius-sm)!important;box-shadow:none!important}.tpl-canvas-empty .tpl-ghost{display:none!important}.tpl-dragging{opacity:.8;box-shadow:var(--tpl-shadow-xl)}.sortable-fallback{transition:none!important;animation:none!important}.tpl-block--lifted{outline:2px dashed var(--tpl-primary)!important;outline-offset:2px!important;box-shadow:var(--tpl-shadow-xl),0 0 0 4px var(--tpl-primary)!important}@supports (color:color-mix(in lab,red,red)){.tpl-block--lifted{box-shadow:var(--tpl-shadow-xl),0 0 0 4px color-mix(in srgb,var(--tpl-primary) 20%,transparent)!important}}.tpl-block--lifted{transition:transform .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1);transform:scale(1.01)}.tpl-sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl-text-toolbar-btn{width:calc(calc(var(--tpl-base-size) / 4) * 8);height:calc(calc(var(--tpl-base-size) / 4) * 8);cursor:pointer;border-radius:calc(.25 * var(--tpl-base-size));--tw-border-style:none;transition-property:all;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s);color:var(--tpl-text);background-color:#0000;border-style:none;justify-content:center;align-items:center;padding:0;display:flex}.tpl-text-toolbar-btn:hover{background-color:var(--tpl-bg-active)}.tpl-text-toolbar-btn--active{box-shadow:inset 0 0 0 1.5px var(--tpl-primary-hover);background-color:var(--tpl-primary)!important;color:var(--tpl-bg)!important}.tpl-text-toolbar-btn--active svg{stroke-width:2.75px}.tpl-text-content,.tpl-text-editable .tiptap{--tw-outline-style:none;outline-style:none}.tpl-text-editable{border-radius:calc(.25 * var(--tpl-base-size));outline:1px dashed var(--tpl-primary);outline-offset:4px}.tpl-text-editable--error{outline-color:var(--tpl-danger)}.tpl-text-content p,.tpl-text-editable .tiptap p{margin:0 0 var(--tpl-doc-paragraph-spacing,8px)}.tpl-text-content p:last-child,.tpl-text-editable .tiptap p:last-child{margin-bottom:0}.tpl-text-content ul,.tpl-text-content ol,.tpl-text-editable .tiptap ul,.tpl-text-editable .tiptap ol{margin:8px 0;padding-inline-start:24px}.tpl-text-content li,.tpl-text-editable .tiptap li{margin:4px 0}.tpl-text-content s,.tpl-text-editable .tiptap s{text-decoration-line:line-through}.tpl-text-content sub,.tpl-text-editable .tiptap sub{vertical-align:sub;font-size:.75em}.tpl-text-content sup,.tpl-text-editable .tiptap sup{vertical-align:super;font-size:.75em}.tpl-text-content a,.tpl-text-editable a{color:var(--tpl-doc-link-color,inherit);-webkit-text-decoration:var(--tpl-doc-link-underline,none);text-decoration:var(--tpl-doc-link-underline,none)}.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5);border-radius:calc(.25 * var(--tpl-base-size));padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5);padding-block:calc(calc(var(--tpl-base-size) / 4) * .5);--tw-font-weight:500;background-color:var(--tpl-primary);align-items:center;font-size:.9em;font-weight:500;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{background-color:color-mix(in srgb,var(--tpl-primary) 20%,transparent)}}.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{color:var(--tpl-primary);unicode-bidi:isolate}.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5);border-radius:calc(.25 * var(--tpl-base-size));padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5);padding-block:calc(calc(var(--tpl-base-size) / 4) * .5);--tw-font-weight:700;--tw-tracking:.025em;letter-spacing:.025em;text-transform:uppercase;border:1.5px solid var(--tpl-primary);unicode-bidi:isolate;background-color:#0000;align-items:center;font-size:.8em;font-weight:700;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{border:1.5px solid color-mix(in srgb,var(--tpl-primary) 50%,transparent)}}.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{color:var(--tpl-primary)}.tpl-tooltip{position:relative}.tpl-tooltip:after{content:attr(data-tooltip);border-radius:var(--tpl-radius-sm);background-color:var(--tpl-chrome-text);color:var(--tpl-bg);white-space:normal;text-align:center;pointer-events:none;opacity:0;text-transform:none;z-index:50;width:max-content;max-width:min(320px,90vw);padding:4px 10px;font-size:12px;font-weight:500;line-height:1.4;transition:opacity .15s;position:absolute;top:calc(100% + 6px);left:50%;transform:translate(-50%)}.tpl-tooltip:before{content:\"\";border:4px solid #0000;border-bottom-color:var(--tpl-chrome-text);pointer-events:none;opacity:0;z-index:50;transition:opacity .15s;position:absolute;top:calc(100% + 2px);left:50%;transform:translate(-50%)}.tpl-tooltip:hover:after,.tpl-tooltip:hover:before{opacity:1}.tpl-media-overlay{background-color:var(--tpl-overlay);-webkit-backdrop-filter:blur(8px);height:100%;min-height:0;color:var(--tpl-text);flex-direction:row;justify-content:center;align-items:center;display:flex}.tpl.tpl-text-toolbar{flex-direction:row;height:auto;min-height:0;display:flex}.tpl.tpl-link-dialog{background-color:var(--tpl-overlay);flex-direction:row;justify-content:center;align-items:center;height:100%;min-height:0;display:flex}.tpl-upload-zone-active{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.tpl-merge-tag-delete:hover{color:var(--tpl-danger)!important}@media(prefers-reduced-motion:reduce){.tpl-pulse,.tpl-shimmer,.tpl-fade-in,.tpl-scale-in{animation:none}.tpl-shimmer{background:var(--tpl-bg-hover)}.tpl-spinner{animation:1s linear infinite tpl-spin}.tpl-body,.tpl-right-sidebar{transition:none}.tpl-panel-enter-active,.tpl-panel-leave-active{animation:none}}.tpl-body{transition:left var(--tpl-panel-transition),right var(--tpl-panel-transition)}.tpl-right-sidebar{transition:right var(--tpl-panel-transition)}.tpl-panel-enter-active{animation:var(--tpl-panel-transition) both tpl-panel-in}.tpl-panel-leave-active{animation:var(--tpl-panel-transition) both tpl-panel-out}@keyframes tpl-panel-in{0%{transform:translate(100%)}to{transform:none}}@keyframes tpl-panel-out{0%{transform:none}to{transform:translate(100%)}}.tpl-header-container{container:tpl-header/inline-size}.tpl-header-identity [data-testid=template-name],.tpl-header-identity [data-testid=template-name-input]{max-width:100%}.tpl-language-tag{display:none}.tpl-header-identity{flex-shrink:1;min-width:24px}.tpl-header-timestamp{max-width:100%}.tpl-header:not([data-status-label=true]) .tpl-status-label{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl-header[data-compact=true]{grid-template-columns:minmax(0,1fr) auto auto;column-gap:8px;padding-inline:8px}.tpl-header[data-compact=true] .tpl-header-left,.tpl-header[data-compact=true] .tpl-header-right{gap:4px;min-width:0}.tpl-header[data-compact=true] .tpl-header-center{gap:4px}.tpl-header[data-compact=true] .tpl-header-identity{flex:0 auto;min-width:24px;max-width:none;padding-bottom:0}.tpl-header[data-compact=true] .tpl-header-timestamp,.tpl-header[data-compact=true] .tpl-header-label,.tpl-header[data-compact=true] .tpl-header-comment-count,.tpl-header[data-compact=true] .tpl-language-name,.tpl-header[data-compact=true] .tpl-language-count,.tpl-header[data-compact=true] .tpl-language-chevron{display:none}.tpl-header[data-compact=true] .tpl-header-left .tpl-language-tag{display:inline}.tpl-header[data-compact=true] .tpl-language-control{flex-shrink:1}.tpl-header[data-compact=true] .tpl-language-trigger{gap:4px;padding-inline:6px;width:100%!important;max-width:72px!important}.tpl-header[data-compact=true] .tpl-header-center [role=radio]{padding-inline:6px}.tpl-header[data-compact=true] [data-testid=version-history]{gap:0}.tpl-header[data-compact=true] [data-testid=version-history-toggle]{padding-inline:4px}.tpl-header[data-compact=true] .tpl-header-right>button{gap:0;min-width:32px;padding-inline:7px}.tpl-header[data-compact=true] .tpl-header-save-status{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}.tpl-preview-pill-enter-active[data-v-d30a2d38]{transition:opacity .2s cubic-bezier(.16,1,.3,1),transform .2s cubic-bezier(.16,1,.3,1)}.tpl-preview-pill-leave-active[data-v-d30a2d38]{transition:opacity .15s ease-in,transform .15s ease-in}.tpl-preview-pill-enter-from[data-v-d30a2d38],.tpl-preview-pill-leave-to[data-v-d30a2d38]{opacity:0;transform:translateY(-8px) scale(.9)}.tpl-preview-pill-enter-to[data-v-d30a2d38],.tpl-preview-pill-leave-from[data-v-d30a2d38]{opacity:1;transform:translateY(0) scale(1)}hex-color-picker{--hcp-width: 200px}hex-color-picker::part(hue){border-radius:var(--tpl-radius-sm, 7px)}hex-color-picker::part(saturation){border-radius:var(--tpl-radius-sm, 7px) var(--tpl-radius-sm, 7px) 0 0}.tpl-color-swatch-empty{background-color:var(--tpl-bg);background-image:linear-gradient(to top right,transparent calc(50% - .75px),var(--tpl-text-dim) calc(50% - .75px),var(--tpl-text-dim) calc(50% + .75px),transparent calc(50% + .75px))}.tpl-color-swatch-transparent{background-color:var(--tpl-bg);background-image:repeating-conic-gradient(var(--tpl-border) 0% 25%,var(--tpl-bg) 0% 50%);background-size:8px 8px}.tpl-pulse-fill[data-v-fca026e4]{animation:tpl-field-pulse-fca026e4 1s ease-out}@keyframes tpl-field-pulse-fca026e4{0%{box-shadow:0 0 color-mix(in srgb,var(--tpl-warning) 30%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 6%,transparent)}40%{box-shadow:0 0 0 3px color-mix(in srgb,var(--tpl-warning) 15%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 5%,transparent)}to{box-shadow:0 0 0 0 transparent;background-color:transparent}}@media(prefers-reduced-motion:reduce){.tpl-pulse-fill[data-v-fca026e4]{animation:none}}input[type=number][data-v-94c2e6ff]::-webkit-outer-spin-button,input[type=number][data-v-94c2e6ff]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-94c2e6ff]{-moz-appearance:textfield}.tpl-collapsible[data-v-206f038f]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s cubic-bezier(.16,1,.3,1)}.tpl-collapsible--open[data-v-206f038f]{grid-template-rows:1fr}.tpl-collapsible>div[data-v-206f038f]{overflow:hidden}@container tpl-header (max-width: 760px){.tpl-language-submenu[data-v-9b071249]{left:0;top:100%;bottom:auto;margin:4px 0 0;max-width:100%}}.tpl-language-row[data-v-9b071249]:hover,.tpl-language-row[data-v-9b071249]:focus-within,[role=menuitem][data-v-9b071249]:hover{background:var(--tpl-bg-hover)}.tpl-language-row[data-active=true][data-v-9b071249]{background:var(--tpl-bg-active)}.tpl-language-row[data-active=true] .tpl-language-pill[data-v-9b071249]{background:var(--tpl-bg)}[aria-disabled=true][data-v-9b071249]{cursor:not-allowed;color:var(--tpl-text-muted)}[aria-disabled=true] svg[data-v-9b071249]{color:var(--tpl-text-dim)}@media(hover:hover)and (pointer:fine){.tpl-language-actions[data-v-9b071249]{opacity:0}.tpl-language-row:hover .tpl-language-actions[data-v-9b071249],.tpl-language-row:focus-within .tpl-language-actions[data-v-9b071249],.tpl-language-actions[aria-expanded=true][data-v-9b071249]{opacity:1}}.tpl-language-actions[data-v-9b071249]{transition:opacity var(--tpl-transition)}.tpl-saved-block-skeleton{animation:tpl-saved-block-pulse 1.4s ease-in-out infinite}@keyframes tpl-saved-block-pulse{0%,to{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.tpl-saved-block-skeleton{animation:none}}.tpl-saved-block-select:focus-visible{box-shadow:none}.tpl-saved-block-select:focus-visible:after{content:\"\";position:absolute;inset:-1px;border-radius:var(--tpl-radius-sm);box-shadow:var(--tpl-ring);pointer-events:none}.tpl-saved-block-delete-btn:hover{color:var(--tpl-danger)!important}.tpl-saved-block-rename-btn:hover{color:var(--tpl-primary)!important}.tpl-media-item[data-v-57c35946]:not(.tpl-media-item--selected):hover{border-color:var(--tpl-border)!important}.tpl-media-list-item[data-v-57c35946]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-list-icon[data-v-57c35946]{transform:scale(.35);transform-origin:center}.tpl-preview-icon[data-v-50993988]{transform:scale(.45);transform-origin:center}.tpl-comments-input-wrapper[data-v-75eacb94]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-comments-send-btn[data-v-75eacb94]:not(:disabled):hover{transform:scale(1.05)}.tpl-comment-filter[data-v-75eacb94]{color:var(--tpl-text-muted);background-color:transparent}.tpl-comment-filter[data-v-75eacb94]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-filter--active[data-v-75eacb94]{background-color:var(--tpl-primary-light);color:var(--tpl-primary)}.tpl-comment-action[data-v-75eacb94]{color:var(--tpl-text-dim);background-color:transparent}.tpl-comment-action[data-v-75eacb94]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-delete[data-v-75eacb94]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-comment-card[data-v-75eacb94],.tpl-comment-reply-card[data-v-75eacb94]{border-color:var(--tpl-border);background-color:var(--tpl-bg)}.tpl-resolve-enter-active[data-v-75eacb94],.tpl-resolve-leave-active[data-v-75eacb94]{transition:opacity .3s ease,transform .3s ease}.tpl-resolve-enter-from[data-v-75eacb94],.tpl-resolve-leave-to[data-v-75eacb94]{opacity:0;transform:translateY(-4px)}.tpl-resolve-icon[data-v-75eacb94]{transition:color .3s ease,transform .2s ease}.tpl-resolve-icon[data-v-75eacb94]:active{transform:scale(1.3)}.tpl-replies-enter-active[data-v-75eacb94],.tpl-replies-leave-active[data-v-75eacb94]{transition:opacity .25s ease,transform .25s ease}.tpl-replies-enter-from[data-v-75eacb94],.tpl-replies-leave-to[data-v-75eacb94]{opacity:0;transform:translateY(-4px)}.tpl-ai-input-wrapper[data-v-51fb7448]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-ai-send-btn[data-v-51fb7448]:not(:disabled):hover{transform:scale(1.05)}.tpl-starter-btn[data-v-51fb7448]:hover{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.vue-advanced-cropper{text-align:center;position:relative;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}[data-v-7d9a1872] .tpl-cropper-background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper{background-color:transparent!important}[data-v-7d9a1872] .vue-advanced-cropper__background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper__foreground{background-color:var(--tpl-overlay)!important}\n/*$vite$:1*/", qo = null;
|
|
4168
|
+
function Jo() {
|
|
4169
|
+
if (qo === null) {
|
|
4148
4170
|
let e = new CSSStyleSheet();
|
|
4149
|
-
e.replaceSync(
|
|
4171
|
+
e.replaceSync(Ho(Ko)), qo = e;
|
|
4150
4172
|
}
|
|
4151
|
-
return
|
|
4173
|
+
return qo;
|
|
4152
4174
|
}
|
|
4153
|
-
function
|
|
4175
|
+
function Yo(e) {
|
|
4154
4176
|
return () => {};
|
|
4155
4177
|
}
|
|
4156
|
-
function
|
|
4178
|
+
function Xo(e, t) {
|
|
4157
4179
|
if (!t) return {
|
|
4158
4180
|
target: e,
|
|
4159
4181
|
shadowRoot: null,
|
|
4160
4182
|
cleanup: () => {}
|
|
4161
4183
|
};
|
|
4162
4184
|
let n = e.shadowRoot ?? e.attachShadow({ mode: "open" });
|
|
4163
|
-
for (n.adoptedStyleSheets = [
|
|
4185
|
+
for (n.adoptedStyleSheets = [Jo()]; n.firstChild;) n.removeChild(n.firstChild);
|
|
4164
4186
|
let r = document.createElement("div");
|
|
4165
4187
|
return r.className = "tpl-editor-host", r.style.cssText = "display:block;height:100%;width:100%;", n.appendChild(r), {
|
|
4166
4188
|
target: r,
|
|
4167
4189
|
shadowRoot: n,
|
|
4168
|
-
cleanup:
|
|
4190
|
+
cleanup: Yo(n)
|
|
4169
4191
|
};
|
|
4170
4192
|
}
|
|
4171
|
-
var
|
|
4172
|
-
function
|
|
4193
|
+
var Zo = /* @__PURE__ */ new Map(), Qo = null, $o = 0, es = /* @__PURE__ */ new WeakMap();
|
|
4194
|
+
function ts(e) {
|
|
4173
4195
|
let t = typeof e == "string" ? document.querySelector(e) : e;
|
|
4174
4196
|
if (!t) throw Error(`[Templatical] Container element not found: ${e}`);
|
|
4175
|
-
let n =
|
|
4176
|
-
return
|
|
4197
|
+
let n = ++$o;
|
|
4198
|
+
return es.set(t, n), {
|
|
4177
4199
|
container: t,
|
|
4178
4200
|
token: n
|
|
4179
4201
|
};
|
|
4180
4202
|
}
|
|
4181
|
-
function
|
|
4182
|
-
let n =
|
|
4183
|
-
n && (t && n.app !== t || (n.cleanup(), n.app.unmount(),
|
|
4203
|
+
function ns(e, t) {
|
|
4204
|
+
let n = Zo.get(e);
|
|
4205
|
+
n && (t && n.app !== t || (n.cleanup(), n.app.unmount(), Zo.delete(e), Qo === e && (Qo = null)));
|
|
4184
4206
|
}
|
|
4185
|
-
function
|
|
4186
|
-
e.layout && (e.layout =
|
|
4207
|
+
function rs(e) {
|
|
4208
|
+
e.layout && (e.layout = Ln(e.layout, e.mergeTags), Te(e.layout)), e.content && (e.content = Ln(e.content, e.mergeTags), Ne(e.content), ke(e.content));
|
|
4187
4209
|
}
|
|
4188
|
-
async function
|
|
4210
|
+
async function is(e) {
|
|
4189
4211
|
let t = { ...e };
|
|
4190
4212
|
if (t.translation !== void 0 && (t.translation === null || typeof t.translation != "object" || typeof t.translation.translate != "function")) throw new Q("translation must be an object with a translate function.");
|
|
4191
|
-
for (let e of t.localization?.locales ?? []) if (!
|
|
4213
|
+
for (let e of t.localization?.locales ?? []) if (!xe(e)) throw new Q(`Invalid localization locale "${e}".`);
|
|
4192
4214
|
let n = t.localization?.doNotTranslate;
|
|
4193
4215
|
if (n !== void 0 && (!Array.isArray(n) || n.length > 500 || n.some((e) => typeof e != "string" || e.trim().length < 1 || e.trim().length > 100))) throw new Q("localization.doNotTranslate must be an array of at most 500 terms, each 1–100 characters.");
|
|
4194
|
-
return
|
|
4216
|
+
return rs(t), as(t, ts(t.container));
|
|
4195
4217
|
}
|
|
4196
|
-
async function
|
|
4197
|
-
e.locale !== void 0 && !
|
|
4198
|
-
let a = await
|
|
4199
|
-
if (
|
|
4218
|
+
async function as(e, { container: t, token: n }, i) {
|
|
4219
|
+
e.locale !== void 0 && !ln(e.locale) && Jn.warn(`config.locale: "${e.locale}" has no translations — falling back to English. Supported: ${xn().sort().join(", ")}.`);
|
|
4220
|
+
let a = await on(e.locale ?? "en"), o = rn(e.fonts);
|
|
4221
|
+
if (es.get(t) !== n) return os({
|
|
4200
4222
|
config: e,
|
|
4201
4223
|
editorRef: z(null),
|
|
4202
4224
|
fontsManager: o,
|
|
4203
4225
|
unmount: () => {}
|
|
4204
4226
|
}).instance;
|
|
4205
|
-
|
|
4206
|
-
let s =
|
|
4207
|
-
return () => r(
|
|
4227
|
+
ns(t);
|
|
4228
|
+
let s = Xo(t, e.shadowDom ?? !0), c = z(null), l = I({ setup() {
|
|
4229
|
+
return () => r(Bo, {
|
|
4208
4230
|
config: e,
|
|
4209
4231
|
translations: a,
|
|
4210
4232
|
fontsManager: o,
|
|
@@ -4217,23 +4239,23 @@ async function is(e, { container: t, token: n }, i) {
|
|
|
4217
4239
|
ref: c
|
|
4218
4240
|
});
|
|
4219
4241
|
} });
|
|
4220
|
-
l.mount(s.target),
|
|
4242
|
+
l.mount(s.target), Zo.set(t, {
|
|
4221
4243
|
app: l,
|
|
4222
4244
|
editorRef: c,
|
|
4223
4245
|
cleanup: s.cleanup
|
|
4224
|
-
}),
|
|
4225
|
-
let { instance: u, render: d } =
|
|
4246
|
+
}), Qo = t;
|
|
4247
|
+
let { instance: u, render: d } = os({
|
|
4226
4248
|
config: e,
|
|
4227
4249
|
editorRef: c,
|
|
4228
4250
|
fontsManager: o,
|
|
4229
|
-
unmount: () =>
|
|
4251
|
+
unmount: () => ns(t, l)
|
|
4230
4252
|
});
|
|
4231
4253
|
return u;
|
|
4232
4254
|
}
|
|
4233
|
-
function
|
|
4255
|
+
function os({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
4234
4256
|
let i = {
|
|
4235
4257
|
getContent() {
|
|
4236
|
-
return
|
|
4258
|
+
return Ae(t.value ? t.value.getContent() : e.content ?? De(e.fonts?.defaultFont, sr(e)));
|
|
4237
4259
|
},
|
|
4238
4260
|
getLocale() {
|
|
4239
4261
|
return t.value?.getLocale() ?? Z(i.getContent());
|
|
@@ -4244,12 +4266,12 @@ function as({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
4244
4266
|
t.value?.setLocale(n);
|
|
4245
4267
|
},
|
|
4246
4268
|
setContent(n) {
|
|
4247
|
-
let r =
|
|
4269
|
+
let r = Ln(n, e.mergeTags);
|
|
4248
4270
|
t.value && t.value.setContent(r), e.content = r;
|
|
4249
4271
|
},
|
|
4250
4272
|
insertBlock(n) {
|
|
4251
4273
|
let r = { blocks: [n] };
|
|
4252
|
-
return Ne(r),
|
|
4274
|
+
return Ne(r), ke(r), t.value ? t.value.insertBlock(zn(n, e.mergeTags)) : null;
|
|
4253
4275
|
},
|
|
4254
4276
|
setTheme(e) {
|
|
4255
4277
|
t.value && t.value.setTheme(e);
|
|
@@ -4264,7 +4286,7 @@ function as({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
4264
4286
|
create(n) {
|
|
4265
4287
|
return t.value ? t.value.create(n?.content ? {
|
|
4266
4288
|
...n,
|
|
4267
|
-
content:
|
|
4289
|
+
content: Ln(n.content, e.mergeTags)
|
|
4268
4290
|
} : n) : Promise.reject(/* @__PURE__ */ Error("[Templatical] Editor not ready"));
|
|
4269
4291
|
},
|
|
4270
4292
|
load(e) {
|
|
@@ -4284,20 +4306,20 @@ function as({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
4284
4306
|
},
|
|
4285
4307
|
toMjml: (e) => a.toMjml(e),
|
|
4286
4308
|
toHtml: (e) => a.toHtml(e)
|
|
4287
|
-
}, a =
|
|
4309
|
+
}, a = Go({
|
|
4288
4310
|
provider: e.render,
|
|
4289
|
-
buildPayload: (t) =>
|
|
4311
|
+
buildPayload: (t) => Wo({
|
|
4290
4312
|
getContent: () => i.getContent(),
|
|
4291
4313
|
renderCustomBlock: (e) => i.renderCustomBlock(e),
|
|
4292
4314
|
getCustomBlockStylesheet: (e) => i.getCustomBlockStylesheet(e),
|
|
4293
|
-
getFonts: () =>
|
|
4315
|
+
getFonts: () => Uo(n),
|
|
4294
4316
|
getLayout: () => e.layout
|
|
4295
4317
|
}, t),
|
|
4296
|
-
renderLocalMjml: (t) =>
|
|
4318
|
+
renderLocalMjml: (t) => di({
|
|
4297
4319
|
getContent: () => i.getContent(),
|
|
4298
4320
|
renderCustomBlock: (e) => i.renderCustomBlock(e),
|
|
4299
4321
|
getCustomBlockStylesheet: (e) => i.getCustomBlockStylesheet(e),
|
|
4300
|
-
getFonts: () =>
|
|
4322
|
+
getFonts: () => Uo(n),
|
|
4301
4323
|
socialIconsBaseUrl: e.socialIconsBaseUrl,
|
|
4302
4324
|
getLayout: () => e.layout
|
|
4303
4325
|
}, ...t ? [t] : [])
|
|
@@ -4307,18 +4329,18 @@ function as({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
4307
4329
|
render: a
|
|
4308
4330
|
};
|
|
4309
4331
|
}
|
|
4310
|
-
async function
|
|
4332
|
+
async function ss(e) {
|
|
4311
4333
|
let t = {
|
|
4312
4334
|
layout: e.layout,
|
|
4313
4335
|
content: e.content,
|
|
4314
4336
|
mergeTags: e.mergeTags
|
|
4315
4337
|
};
|
|
4316
|
-
|
|
4317
|
-
let n =
|
|
4338
|
+
rs(t);
|
|
4339
|
+
let n = ts(e.container), [{ bootstrapCloud: r }, i] = await Promise.all([import("./chunks/createCloudRuntime-BHGFjpek.js"), dn(e.locale ?? "en")]), { runtime: a, providers: o, user: s } = await r({
|
|
4318
4340
|
config: e,
|
|
4319
4341
|
cloudTranslations: i
|
|
4320
4342
|
});
|
|
4321
|
-
return
|
|
4343
|
+
return as({
|
|
4322
4344
|
container: e.container,
|
|
4323
4345
|
content: t.content,
|
|
4324
4346
|
layout: t.layout,
|
|
@@ -4362,9 +4384,9 @@ async function os(e) {
|
|
|
4362
4384
|
user: s
|
|
4363
4385
|
}, n, a);
|
|
4364
4386
|
}
|
|
4365
|
-
function
|
|
4366
|
-
|
|
4387
|
+
function cs() {
|
|
4388
|
+
Qo && ns(Qo);
|
|
4367
4389
|
}
|
|
4368
|
-
export {
|
|
4390
|
+
export { Wn as AI_ALT_TEXT_RULES, Gn as AI_FIXABLE_RULES, Pe as applyLayout, De as createDefaultTemplateContent, Y as createLocalStorageMediaProvider, ne as createLocalStorageSavedBlocksProvider, de as createParagraphBlock, Me as createSlotBlock, X as createWrapperBlock, Sn as getBaseLocale, nn as getSupportedCloudLocales, xn as getSupportedLocales, is as init, ss as initCloud, cn as isCloudLocaleSupported, ln as isLocaleSupported, ye as isSlot, je as isWrapper, Oe as layoutWrapsSlot, cs as unmount, Te as validateLayout };
|
|
4369
4391
|
|
|
4370
4392
|
//# sourceMappingURL=editor.js.map
|