@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
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { A as e, B as t, D as n, E as r, F as i, Ft as a, L as o, M as s, Mt as c, N as l, O as u, P as d, Pt as f, R as p, S as m, U as h, W as g, Z as _, _ as v, c as y, ct as b, d as x, et as S, f as C, g as w, h as T, j as E, k as D, l as O, m as k, nt as A, q as j, r as M, rt as N, tt as P, u as F, v as I, w as L, y as R } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { a as z, c as B, n as V, o as H, s as U, t as W } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import { G, I as ee, L as K, M as q, N as J, R as Y, V as te, W as ne, _ as re, b as ie, c as ae, j as oe, l as se } from "./socialIcons-
|
|
4
|
-
import {
|
|
1
|
+
import { A as e, B as t, D as n, E as r, F as i, Ft as a, L as o, M as s, Mt as c, N as l, O as u, P as d, Pt as f, R as p, S as m, U as h, W as g, Z as _, _ as v, c as y, ct as b, d as x, et as S, f as C, g as w, h as T, j as E, k as D, l as O, m as k, nt as A, q as j, r as M, rt as N, tt as P, u as F, v as I, w as L, y as R } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
2
|
+
import { a as z, c as B, n as V, o as H, s as U, t as W } from "./runtime-dom.esm-bundler-nN-jsqr1.js";
|
|
3
|
+
import { G, I as ee, L as K, M as q, N as J, R as Y, V as te, W as ne, _ as re, b as ie, c as ae, j as oe, l as se } from "./socialIcons-BZRLo0eT.js";
|
|
4
|
+
import { A as ce, At as le, C as ue, D as de, Dt as fe, E as X, Ht as pe, I as me, K as he, Mt as ge, N as _e, Pt as ve, Q as ye, R as be, S as xe, T as Se, U as Ce, Yt as we, _ as Te, bt as Ee, dt as De, et as Oe, f as ke, jt as Ae, k as je, ln as Me, nt as Ne, o as Pe, qt as Fe, rt as Z, un as Ie, v as Q, vt as Le, xt as Re } from "./dist-C0hVefGI.js";
|
|
5
5
|
import { t as ze } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
6
|
-
import {
|
|
7
|
-
import { t as He } from "./x-
|
|
8
|
-
import { t as $ } from "./useI18n-
|
|
9
|
-
import { n as Ue, t as We } from "./useLocalizedDisplay-
|
|
10
|
-
import { $ as Ge, B as Ke, E as qe, I as Je, J as Ye, K as Xe, M as Ze, O as Qe,
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { C as
|
|
14
|
-
import { t as
|
|
15
|
-
import { A as
|
|
16
|
-
import { a as
|
|
17
|
-
import { t as
|
|
18
|
-
import { n as
|
|
19
|
-
import { i as
|
|
20
|
-
import { a as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as
|
|
28
|
-
import { t as
|
|
29
|
-
import { n as
|
|
30
|
-
import { t as
|
|
31
|
-
import { t as
|
|
32
|
-
import { t as
|
|
33
|
-
import { n as
|
|
34
|
-
import { t as
|
|
35
|
-
import { _ as
|
|
36
|
-
import { t as
|
|
37
|
-
import { t as
|
|
38
|
-
import { t as
|
|
39
|
-
import { t as
|
|
40
|
-
import { t as
|
|
41
|
-
import { t as
|
|
42
|
-
import { t as
|
|
6
|
+
import { i as Be, n as Ve } from "./sanitizeHtml-Dfn-fH17.js";
|
|
7
|
+
import { t as He } from "./x-DbLX5Qdm.js";
|
|
8
|
+
import { t as $ } from "./useI18n-CM9vKbYc.js";
|
|
9
|
+
import { n as Ue, t as We } from "./useLocalizedDisplay-B7tlQF4g.js";
|
|
10
|
+
import { $ as Ge, B as Ke, E as qe, I as Je, J as Ye, K as Xe, M as Ze, O as Qe, R as $e, Y as et, Z as tt, a as nt, at as rt, b as it, c as at, ct as ot, d as st, et as ct, g as lt, h as ut, it as dt, k as ft, l as pt, m as mt, n as ht, nt as gt, ot as _t, st as vt, t as yt, tt as bt, v as xt, z as St } from "./keys-D9oKZN1h.js";
|
|
11
|
+
import { t as Ct } from "./plural-CyxrJXL1.js";
|
|
12
|
+
import { t as wt } from "./languageName-DEEOhDWI.js";
|
|
13
|
+
import { C as Tt, T as Et, b as Dt, h as Ot, m as kt, w as At, x as jt } from "./styleConstants-CgiNKdnc.js";
|
|
14
|
+
import { t as Mt } from "./TplModal-BPPP-uM6.js";
|
|
15
|
+
import { A as Nt, D as Pt, F as Ft, G as It, I as Lt, M as Rt, N as zt, P as Bt, R as Vt, S as Ht, V as Ut, _ as Wt, a as Gt, b as Kt, c as qt, d as Jt, f as Yt, g as Xt, h as Zt, i as Qt, j as $t, k as en, l as tn, m as nn, n as rn, o as an, p as on, r as sn, s as cn, t as ln, u as un, v as dn, x as fn, y as pn } from "./composables-Cq7rsxRc.js";
|
|
16
|
+
import { a as mn, i as hn, n as gn, o as _n, t as vn } from "./normalizeMergeTagMarkup-CBLCQe02.js";
|
|
17
|
+
import { t as yn } from "./aiErrors-C3QEMB0x.js";
|
|
18
|
+
import { n as bn, t as xn } from "./aiImageContext-BQ5mQ6B5.js";
|
|
19
|
+
import { i as Sn, n as Cn, o as wn, r as Tn, t as En } from "./useScrollToBlock-vf_KD0FM.js";
|
|
20
|
+
import { a as Dn } from "./dist-B6ptxfPo.js";
|
|
21
|
+
import { t as On } from "./logger-BOu7oEtk.js";
|
|
22
|
+
import { t as kn } from "./rotate-ccw-BlnQ3y6R.js";
|
|
23
|
+
import { t as An } from "./createLucideIcon-D-mELTSY.js";
|
|
24
|
+
import { t as jn } from "./sparkles-JWQlUiSn.js";
|
|
25
|
+
import { t as Mn } from "./WrapperBlock-B3UAv5kv.js";
|
|
26
|
+
import { t as Nn } from "./package-CKYm_jQY.js";
|
|
27
|
+
import { t as Pn } from "./blockTypeIcons-BPPpqFc2.js";
|
|
28
|
+
import { t as Fn } from "./templateSettingsFields-cjlP-jdw.js";
|
|
29
|
+
import { n as In } from "./smartphone-rLz4X-Dd.js";
|
|
30
|
+
import { t as Ln } from "./loader-circle-DmyagWpc.js";
|
|
31
|
+
import { t as Rn } from "./message-circle-ijyWn6UJ.js";
|
|
32
|
+
import { t as zn } from "./send-C-blQBZ9.js";
|
|
33
|
+
import { n as Bn, t as Vn } from "./MergeTagModeToggle-De_FNmcG.js";
|
|
34
|
+
import { t as Hn } from "./eye-fe5sKF_K.js";
|
|
35
|
+
import { _ as Un, d as Wn, g as Gn } from "./dist-A328tG0Z.js";
|
|
36
|
+
import { t as Kn } from "./formatAbsoluteDateTime-Ck2_zXra.js";
|
|
37
|
+
import { t as qn } from "./formatRelativeTime-BTD8Ktt-.js";
|
|
38
|
+
import { t as Jn } from "./check-C7ua4TAK.js";
|
|
39
|
+
import { t as Yn } from "./circle-exclamation-point-DHjORV_I.js";
|
|
40
|
+
import { t as Xn } from "./chevron-down-DftQrAkI.js";
|
|
41
|
+
import { t as Zn } from "./search-Dxw6oFrZ.js";
|
|
42
|
+
import { t as Qn } from "./preRenderCustomBlocks-e2OlY4aU.js";
|
|
43
43
|
// src/utils/resolveTemplateDefaults.ts
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
let t = e.locale?.trim().replace(/_/g, "-"), n = t &&
|
|
44
|
+
var $n = /^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i;
|
|
45
|
+
function er(e) {
|
|
46
|
+
let t = e.locale?.trim().replace(/_/g, "-"), n = t && $n.test(t) ? { locale: t } : void 0;
|
|
47
47
|
if (n || e.templateDefaults) return {
|
|
48
48
|
...n,
|
|
49
49
|
...e.templateDefaults
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
// src/components/NoticeStack.vue
|
|
53
|
-
var
|
|
54
|
-
function
|
|
55
|
-
return s(), C("div",
|
|
53
|
+
var tr = {}, nr = { 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" };
|
|
54
|
+
function rr(e, t) {
|
|
55
|
+
return s(), C("div", nr, [i(e.$slots, "default")]);
|
|
56
56
|
}
|
|
57
|
-
var
|
|
57
|
+
var ir = /*#__PURE__*/ ze(tr, [["render", rr]]), ar = An({
|
|
58
58
|
name: "image-up",
|
|
59
59
|
size: 24,
|
|
60
60
|
node: [
|
|
@@ -77,7 +77,7 @@ var rr = /*#__PURE__*/ ze(er, [["render", nr]]), ir = kn({
|
|
|
77
77
|
key: "af1f0g"
|
|
78
78
|
}]
|
|
79
79
|
]
|
|
80
|
-
}),
|
|
80
|
+
}), or = An({
|
|
81
81
|
name: "layout-template",
|
|
82
82
|
size: 24,
|
|
83
83
|
node: [
|
|
@@ -106,14 +106,14 @@ var rr = /*#__PURE__*/ ze(er, [["render", nr]]), ir = kn({
|
|
|
106
106
|
key: "q5h2i8"
|
|
107
107
|
}]
|
|
108
108
|
]
|
|
109
|
-
}),
|
|
109
|
+
}), sr = An({
|
|
110
110
|
name: "moon",
|
|
111
111
|
size: 24,
|
|
112
112
|
node: [["path", {
|
|
113
113
|
d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",
|
|
114
114
|
key: "kfwtm"
|
|
115
115
|
}]]
|
|
116
|
-
}),
|
|
116
|
+
}), cr = An({
|
|
117
117
|
name: "panel-top",
|
|
118
118
|
size: 24,
|
|
119
119
|
node: [["rect", {
|
|
@@ -127,7 +127,7 @@ var rr = /*#__PURE__*/ ze(er, [["render", nr]]), ir = kn({
|
|
|
127
127
|
d: "M3 9h18",
|
|
128
128
|
key: "1pudct"
|
|
129
129
|
}]]
|
|
130
|
-
}),
|
|
130
|
+
}), lr = An({
|
|
131
131
|
name: "save",
|
|
132
132
|
size: 24,
|
|
133
133
|
node: [
|
|
@@ -144,7 +144,7 @@ var rr = /*#__PURE__*/ ze(er, [["render", nr]]), ir = kn({
|
|
|
144
144
|
key: "t51u73"
|
|
145
145
|
}]
|
|
146
146
|
]
|
|
147
|
-
}),
|
|
147
|
+
}), ur = An({
|
|
148
148
|
name: "settings",
|
|
149
149
|
size: 24,
|
|
150
150
|
node: [["path", {
|
|
@@ -156,7 +156,7 @@ var rr = /*#__PURE__*/ ze(er, [["render", nr]]), ir = kn({
|
|
|
156
156
|
r: "3",
|
|
157
157
|
key: "1v7zrd"
|
|
158
158
|
}]]
|
|
159
|
-
}),
|
|
159
|
+
}), dr = An({
|
|
160
160
|
name: "square-plus",
|
|
161
161
|
size: 24,
|
|
162
162
|
node: [
|
|
@@ -178,7 +178,7 @@ var rr = /*#__PURE__*/ ze(er, [["render", nr]]), ir = kn({
|
|
|
178
178
|
}]
|
|
179
179
|
],
|
|
180
180
|
aliases: ["plus-square"]
|
|
181
|
-
}),
|
|
181
|
+
}), fr = An({
|
|
182
182
|
name: "sun",
|
|
183
183
|
size: 24,
|
|
184
184
|
node: [
|
|
@@ -221,29 +221,29 @@ var rr = /*#__PURE__*/ ze(er, [["render", nr]]), ir = kn({
|
|
|
221
221
|
key: "1shlcs"
|
|
222
222
|
}]
|
|
223
223
|
]
|
|
224
|
-
}),
|
|
224
|
+
}), pr = {
|
|
225
225
|
key: 0,
|
|
226
226
|
"data-testid": "language-bar",
|
|
227
227
|
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)]"
|
|
228
|
-
},
|
|
228
|
+
}, mr = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-between tpl:gap-x-6 tpl:gap-y-2" }, hr = { 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" }, gr = {
|
|
229
229
|
"data-testid": "language-bar-label",
|
|
230
230
|
class: "tpl:inline-flex tpl:items-center tpl:gap-2 tpl:font-medium tpl:whitespace-nowrap tpl:text-[var(--tpl-text)]"
|
|
231
|
-
},
|
|
231
|
+
}, _r = {
|
|
232
232
|
"data-testid": "language-bar-status",
|
|
233
233
|
role: "status",
|
|
234
234
|
"aria-live": "polite",
|
|
235
235
|
"aria-atomic": "true",
|
|
236
236
|
class: "tpl:whitespace-nowrap"
|
|
237
|
-
},
|
|
237
|
+
}, vr = {
|
|
238
238
|
key: 1,
|
|
239
239
|
"data-testid": "translation-result",
|
|
240
240
|
class: "tpl:whitespace-normal"
|
|
241
|
-
},
|
|
241
|
+
}, yr = ["aria-label"], br = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-2" }, xr = ["disabled"], Sr = ["disabled"], Cr = {
|
|
242
242
|
key: 0,
|
|
243
243
|
"data-testid": "structure-notice",
|
|
244
244
|
role: "status",
|
|
245
245
|
class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-2"
|
|
246
|
-
},
|
|
246
|
+
}, wr = ["aria-label"], Tr = ["aria-label"], Er = { class: "tpl:m-0 tpl:mb-4 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Dr = { class: "tpl:mb-4 tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Or = { class: "tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, kr = ["disabled"], Ar = /* @__PURE__ */ new Set(), jr = /* @__PURE__ */ R({
|
|
247
247
|
__name: "LanguageBar",
|
|
248
248
|
props: {
|
|
249
249
|
editor: {},
|
|
@@ -252,15 +252,15 @@ var rr = /*#__PURE__*/ ze(er, [["render", nr]]), ir = kn({
|
|
|
252
252
|
change: {}
|
|
253
253
|
},
|
|
254
254
|
setup(e) {
|
|
255
|
-
let n = e, { t: r, format: i } = $(), o = L(
|
|
255
|
+
let n = e, { t: r, format: i } = $(), o = L(rt, void 0) ?? "en", l = L(ut, []), d = y(() => Z(n.editor.content.value)), f = y(() => n.editor.activeLocale?.value ?? d.value), p = y(() => n.locales.includes(f.value)), m = L(yt, null) ?? We(n.editor, l), g = y(() => p.value ? !m.value?.missing.length && !m.value?.stale.length ? r.localization.complete : i(r.localization.gapTooltip, {
|
|
256
256
|
missing: m.value.missing.length,
|
|
257
257
|
stale: m.value.stale.length
|
|
258
|
-
}) : i(r.localization.languageReadOnly, { language:
|
|
258
|
+
}) : i(r.localization.languageReadOnly, { language: wt(f.value) })), _ = y(() => {
|
|
259
259
|
let e = n.feature?.lastResult.value;
|
|
260
260
|
if (!e) return "";
|
|
261
|
-
let t = [
|
|
262
|
-
return e.tagsChanged.length && t.push(
|
|
263
|
-
}), T = S(!1), E = !1, D = S(null), k = S(null), A = y(() => n.feature?.counts.value.all ?? 0), j = y(() =>
|
|
261
|
+
let t = [Ct(r.localization.translatedFields, e.translated, o)];
|
|
262
|
+
return e.tagsChanged.length && t.push(Ct(r.localization.translationTagsChanged, e.tagsChanged.length, o)), e.skippedLocked.length && t.push(Ct(r.localization.translationSkippedLocked, e.skippedLocked.length, o)), e.missing.length && t.push(Ct(r.localization.translationMissing, e.missing.length, o)), e.tooLarge.length && t.push(Ct(r.localization.translationTooLarge, e.tooLarge.length, o)), e.error && t.push(i(r.localization.translationError, { message: e.error.message })), t.join(" ");
|
|
263
|
+
}), T = S(!1), E = !1, D = S(null), k = S(null), A = y(() => n.feature?.counts.value.all ?? 0), j = y(() => Ct(r.localization.translationConfirmation, A.value, o));
|
|
264
264
|
function N() {
|
|
265
265
|
D.value = null, u(() => k.value?.focus());
|
|
266
266
|
}
|
|
@@ -281,67 +281,67 @@ var rr = /*#__PURE__*/ ze(er, [["render", nr]]), ir = kn({
|
|
|
281
281
|
D.value && N();
|
|
282
282
|
}), t(() => n.change, () => {
|
|
283
283
|
let e = n.editor.state.template?.id;
|
|
284
|
-
(e ?
|
|
285
|
-
}), (t, n) => f.value === d.value ? x("", !0) : (s(), C("div",
|
|
286
|
-
O("div",
|
|
287
|
-
O("span",
|
|
284
|
+
(e ? Ar.has(e) : E) || (e ? Ar.add(e) : E = !0, T.value = !0);
|
|
285
|
+
}), (t, n) => f.value === d.value ? x("", !0) : (s(), C("div", pr, [
|
|
286
|
+
O("div", mr, [O("div", hr, [
|
|
287
|
+
O("span", gr, [v(b(Be), {
|
|
288
288
|
size: 14,
|
|
289
289
|
"aria-hidden": "true",
|
|
290
290
|
class: "tpl:shrink-0"
|
|
291
|
-
}), w(" " + a(b(i)(b(r).localization.editingLanguage, { language: b(
|
|
292
|
-
O("span",
|
|
291
|
+
}), w(" " + a(b(i)(b(r).localization.editingLanguage, { language: b(wt)(f.value) })), 1)]),
|
|
292
|
+
O("span", _r, [e.feature?.running.value ? (s(), C(M, { key: 0 }, [w(a(b(i)(b(r).localization.translating, e.feature.running.value)), 1)], 64)) : e.feature?.lastResult.value ? (s(), C("span", vr, a(_.value), 1)) : (s(), C(M, { key: 2 }, [w(a(g.value), 1)], 64))]),
|
|
293
293
|
e.feature?.lastResult.value && !e.feature.running.value ? (s(), C("button", {
|
|
294
294
|
key: 0,
|
|
295
295
|
type: "button",
|
|
296
296
|
"data-testid": "translation-dismiss",
|
|
297
297
|
"aria-label": b(r).localization.dismiss,
|
|
298
|
-
class: c(b(
|
|
298
|
+
class: c(b(kt)),
|
|
299
299
|
onClick: n[0] ||= (t) => e.feature.dismissResult()
|
|
300
300
|
}, [v(b(He), {
|
|
301
301
|
size: 14,
|
|
302
302
|
"aria-hidden": "true"
|
|
303
|
-
})], 10,
|
|
304
|
-
]), O("div",
|
|
303
|
+
})], 10, yr)) : x("", !0)
|
|
304
|
+
]), O("div", br, [
|
|
305
305
|
e.feature?.running.value ? (s(), C("button", {
|
|
306
306
|
key: 0,
|
|
307
307
|
type: "button",
|
|
308
308
|
"data-testid": "translation-cancel",
|
|
309
|
-
class: c(b(
|
|
309
|
+
class: c(b(kt)),
|
|
310
310
|
onClick: n[1] ||= (t) => e.feature.cancel()
|
|
311
311
|
}, a(b(r).localization.cancel), 3)) : x("", !0),
|
|
312
312
|
p.value && e.feature?.isAvailable.value ? (s(), C(M, { key: 1 }, [e.feature.counts.value.gaps > 0 ? (s(), C("button", {
|
|
313
313
|
key: 0,
|
|
314
314
|
type: "button",
|
|
315
315
|
"data-testid": "translate-language",
|
|
316
|
-
class: c(b(
|
|
316
|
+
class: c(b(jt)),
|
|
317
317
|
disabled: !!e.feature.running.value,
|
|
318
318
|
onClick: n[2] ||= (t) => e.feature.translate({ only: "gaps" })
|
|
319
|
-
}, a(b(
|
|
319
|
+
}, a(b(Ct)(b(r).localization.translateFields, e.feature.counts.value.gaps, b(o))), 11, xr)) : x("", !0), O("button", {
|
|
320
320
|
ref_key: "allAgain",
|
|
321
321
|
ref: k,
|
|
322
322
|
type: "button",
|
|
323
323
|
"data-testid": "translate-all-again",
|
|
324
|
-
class: c(b(
|
|
324
|
+
class: c(b(kt)),
|
|
325
325
|
disabled: !!e.feature.running.value || A.value === 0,
|
|
326
326
|
onClick: P
|
|
327
|
-
}, a(b(r).localization.translateAllAgain), 11,
|
|
327
|
+
}, a(b(r).localization.translateAllAgain), 11, Sr)], 64)) : x("", !0),
|
|
328
328
|
O("button", {
|
|
329
329
|
type: "button",
|
|
330
330
|
"data-testid": "language-back-default",
|
|
331
|
-
class: c(b(
|
|
331
|
+
class: c(b(kt)),
|
|
332
332
|
onClick: n[3] ||= (t) => e.editor.setActiveLocale?.(null)
|
|
333
|
-
}, a(b(i)(b(r).localization.backToDefault, { default: b(
|
|
333
|
+
}, a(b(i)(b(r).localization.backToDefault, { default: b(wt)(d.value) })), 3)
|
|
334
334
|
])]),
|
|
335
|
-
T.value ? (s(), C("div",
|
|
335
|
+
T.value ? (s(), C("div", Cr, [O("span", null, a(b(r).localization.structureNotice), 1), O("button", {
|
|
336
336
|
type: "button",
|
|
337
337
|
"aria-label": b(r).localization.dismiss,
|
|
338
|
-
class: c(b(
|
|
338
|
+
class: c(b(kt)),
|
|
339
339
|
onClick: n[4] ||= (e) => T.value = !1
|
|
340
340
|
}, [v(b(He), {
|
|
341
341
|
size: 14,
|
|
342
342
|
"aria-hidden": "true"
|
|
343
|
-
})], 10,
|
|
344
|
-
v(
|
|
343
|
+
})], 10, wr)])) : x("", !0),
|
|
344
|
+
v(Mt, {
|
|
345
345
|
visible: D.value !== null,
|
|
346
346
|
onClose: N
|
|
347
347
|
}, {
|
|
@@ -351,35 +351,35 @@ var rr = /*#__PURE__*/ ze(er, [["render", nr]]), ir = kn({
|
|
|
351
351
|
"aria-label": j.value,
|
|
352
352
|
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)]"
|
|
353
353
|
}, [
|
|
354
|
-
O("h3",
|
|
355
|
-
O("p",
|
|
356
|
-
O("div",
|
|
354
|
+
O("h3", Er, a(j.value), 1),
|
|
355
|
+
O("p", Dr, a(b(i)(b(r).localization.translationDescription, { language: b(wt)(D.value?.locale ?? f.value) })), 1),
|
|
356
|
+
O("div", Or, [O("button", {
|
|
357
357
|
type: "button",
|
|
358
358
|
"data-testid": "translation-confirm-cancel",
|
|
359
|
-
class: c(b(
|
|
359
|
+
class: c(b(Tt)),
|
|
360
360
|
onClick: N
|
|
361
361
|
}, a(b(r).localization.cancel), 3), O("button", {
|
|
362
362
|
type: "button",
|
|
363
363
|
"data-testid": "translation-confirm",
|
|
364
|
-
class: c(b(
|
|
364
|
+
class: c(b(Dt)),
|
|
365
365
|
disabled: !!e.feature?.running.value || !e.feature?.isAvailable.value || A.value === 0,
|
|
366
366
|
onClick: F
|
|
367
|
-
}, a(b(
|
|
368
|
-
], 8,
|
|
367
|
+
}, a(b(Ct)(b(r).localization.translateAllFields, A.value, b(o))), 11, kr)])
|
|
368
|
+
], 8, Tr)]),
|
|
369
369
|
_: 1
|
|
370
370
|
}, 8, ["visible"])
|
|
371
371
|
]));
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
374
|
// src/composables/useLocaleActions.ts
|
|
375
|
-
function
|
|
375
|
+
function Mr(e) {
|
|
376
376
|
let { editor: t } = e;
|
|
377
377
|
return { setDefaultLocale(n) {
|
|
378
378
|
let r;
|
|
379
379
|
try {
|
|
380
|
-
r = [t.createSetDefaultLocaleOperation(n)], e.collaboration ||
|
|
380
|
+
r = [t.createSetDefaultLocaleOperation(n)], e.collaboration || Le(t.content.value, r);
|
|
381
381
|
} catch (e) {
|
|
382
|
-
if (e instanceof
|
|
382
|
+
if (e instanceof ke) return {
|
|
383
383
|
applied: !1,
|
|
384
384
|
error: e
|
|
385
385
|
};
|
|
@@ -388,12 +388,12 @@ function jr(e) {
|
|
|
388
388
|
if (e.collaboration) {
|
|
389
389
|
let t = e.collaboration.core.applyOperations(r, {});
|
|
390
390
|
if (!t.applied) return t;
|
|
391
|
-
} else e.history().record(),
|
|
391
|
+
} else e.history().record(), Se(t.content.value, r), t.markDirty();
|
|
392
392
|
return t.setActiveLocale(n), { applied: !0 };
|
|
393
393
|
} };
|
|
394
394
|
}
|
|
395
395
|
// src/composables/useTranslationFeature.ts
|
|
396
|
-
function
|
|
396
|
+
function Nr(e) {
|
|
397
397
|
if (typeof e != "object" || !e) return null;
|
|
398
398
|
let t = e;
|
|
399
399
|
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 : {
|
|
@@ -402,24 +402,24 @@ function Mr(e) {
|
|
|
402
402
|
...t.statusCode === void 0 ? {} : { statusCode: t.statusCode }
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function Pr(e) {
|
|
406
406
|
let t = /* @__PURE__ */ new Set();
|
|
407
407
|
if (typeof DOMParser > "u") return t;
|
|
408
408
|
let n = new DOMParser().parseFromString(e, "text/html");
|
|
409
409
|
for (let e of n.querySelectorAll("[style]")) t.add(e.getAttribute("style") ?? "");
|
|
410
410
|
return t;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
413
|
-
let n =
|
|
414
|
-
return [...
|
|
412
|
+
function Fr(e, t) {
|
|
413
|
+
let n = Pr(t);
|
|
414
|
+
return [...Pr(e)].every((e) => n.has(e));
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function Ir(e) {
|
|
417
417
|
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 = Ve(r);
|
|
418
418
|
return n.forEach((e, n) => {
|
|
419
419
|
i = i.replaceAll(`${t}${n + 1}-end`, e);
|
|
420
420
|
}), i;
|
|
421
421
|
}
|
|
422
|
-
async function
|
|
422
|
+
async function Lr(e, t) {
|
|
423
423
|
t.throwIfAborted();
|
|
424
424
|
let n, r = new Promise((e, r) => {
|
|
425
425
|
n = () => r(t.reason), t.addEventListener("abort", n, { once: !0 });
|
|
@@ -430,16 +430,16 @@ async function Ir(e, t) {
|
|
|
430
430
|
t.removeEventListener("abort", n);
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function Rr(e) {
|
|
434
434
|
let { editor: n } = e, r = A(null), i = A(null), a = null, o = A(!1), s = y(() => {
|
|
435
435
|
let t = n.activeLocale.value;
|
|
436
|
-
return !o.value && !!t && t !==
|
|
436
|
+
return !o.value && !!t && t !== Z(n.content.value) && !!e.localization?.locales.includes(t) && !!n.content.value.settings.locales?.includes(t);
|
|
437
437
|
}), c = y(() => {
|
|
438
438
|
if (!s.value) return {
|
|
439
439
|
gaps: 0,
|
|
440
440
|
all: 0
|
|
441
441
|
};
|
|
442
|
-
let t = n.activeLocale.value, r = e.definitions(), i = e.coverage?.() ??
|
|
442
|
+
let t = n.activeLocale.value, r = e.definitions(), i = e.coverage?.() ?? ge(n.content.value, t, r), a = /* @__PURE__ */ new Set([...i.missing, ...i.stale]), { strings: o } = ve(n.content.value, t, {
|
|
443
443
|
definitions: r,
|
|
444
444
|
syntax: e.syntax(),
|
|
445
445
|
doNotTranslate: e.localization?.doNotTranslate,
|
|
@@ -466,11 +466,11 @@ function Lr(e) {
|
|
|
466
466
|
o.value = !0, u();
|
|
467
467
|
});
|
|
468
468
|
async function d(t) {
|
|
469
|
-
if (a) throw new
|
|
470
|
-
if (!s.value) throw new
|
|
469
|
+
if (a) throw new Q("A translation is already running.", 409, "translation_running");
|
|
470
|
+
if (!s.value) throw new Q("Translation isn't available in this language.", 403, "feature_unavailable");
|
|
471
471
|
let o = e.collaboration?.core;
|
|
472
472
|
o?.flush();
|
|
473
|
-
let c = n.activeLocale.value, l = n.state.template?.id ?? null, u =
|
|
473
|
+
let c = n.activeLocale.value, l = n.state.template?.id ?? null, u = Z(n.content.value), d = we(N([...e.definitions()])), f = e.syntax(), p = e.localization?.doNotTranslate?.slice(), m = ve(n.content.value, c, {
|
|
474
474
|
...t,
|
|
475
475
|
definitions: d,
|
|
476
476
|
syntax: f,
|
|
@@ -506,7 +506,7 @@ function Lr(e) {
|
|
|
506
506
|
}
|
|
507
507
|
let i;
|
|
508
508
|
try {
|
|
509
|
-
i = await
|
|
509
|
+
i = await Lr(e.provider.translate({
|
|
510
510
|
templateId: l,
|
|
511
511
|
sourceLocale: u,
|
|
512
512
|
targetLocale: c,
|
|
@@ -517,7 +517,7 @@ function Lr(e) {
|
|
|
517
517
|
}))
|
|
518
518
|
}, g.controller.signal), g.controller.signal), g.controller.signal.throwIfAborted();
|
|
519
519
|
} catch (e) {
|
|
520
|
-
if (!g.controller.signal.aborted &&
|
|
520
|
+
if (!g.controller.signal.aborted && Nr(e)?.code === "content_too_large" && t.length > 1) {
|
|
521
521
|
y = Math.floor(t.length / 2);
|
|
522
522
|
continue;
|
|
523
523
|
}
|
|
@@ -529,10 +529,10 @@ function Lr(e) {
|
|
|
529
529
|
h.missing.push(e.id);
|
|
530
530
|
continue;
|
|
531
531
|
}
|
|
532
|
-
let n = m.tokens[e.id], r =
|
|
533
|
-
r === null || e.format === "html" && !
|
|
532
|
+
let n = m.tokens[e.id], r = Me(t.text, n);
|
|
533
|
+
r === null || e.format === "html" && !Fr(r, Me(e.source, n)) ? h.tagsChanged.push(e.id) : _.push({
|
|
534
534
|
id: e.id,
|
|
535
|
-
text: e.format === "html" ?
|
|
535
|
+
text: e.format === "html" ? Ir(t.text) : t.text,
|
|
536
536
|
sourceHash: e.sourceHash
|
|
537
537
|
});
|
|
538
538
|
}
|
|
@@ -543,14 +543,14 @@ function Lr(e) {
|
|
|
543
543
|
}
|
|
544
544
|
} catch (e) {
|
|
545
545
|
g.controller.signal.aborted || e instanceof Error && e.name === "AbortError" ? h.cancelled = !0 : h.error = {
|
|
546
|
-
code:
|
|
547
|
-
message:
|
|
546
|
+
code: Nr(e)?.code ?? "translation_failed",
|
|
547
|
+
message: Nr(e)?.message ?? (e instanceof Error ? e.message : String(e))
|
|
548
548
|
};
|
|
549
549
|
}
|
|
550
550
|
try {
|
|
551
551
|
if (!g.discarded) {
|
|
552
552
|
o?.flush();
|
|
553
|
-
let t =
|
|
553
|
+
let t = ue(n.content.value, c, _, {
|
|
554
554
|
definitions: d,
|
|
555
555
|
syntax: f,
|
|
556
556
|
doNotTranslate: p,
|
|
@@ -573,7 +573,7 @@ function Lr(e) {
|
|
|
573
573
|
let t = o.locksOf(e.blockId).some((e) => e.holder.sessionId !== o.sessionId && (e.locale == null || e.locale === c));
|
|
574
574
|
return t && h.skippedLocked.push(...Object.keys(e.text ?? {}).map((t) => `${e.blockId}/${t}`)), !t;
|
|
575
575
|
});
|
|
576
|
-
s.length && (
|
|
576
|
+
s.length && (Le(N(n.content.value), s), e.history().record(), Se(n.content.value, s), n.markDirty(), o?.flush(), h.translated = s.reduce((e, t) => e + (t.op === "updateBlockLocale" || t.op === "updateSettingsLocale" ? Object.keys(t.text ?? {}).length : 0), 0)), n.activeLocale.value === c && (i.value = h);
|
|
577
577
|
}
|
|
578
578
|
} finally {
|
|
579
579
|
a = null, r.value = null;
|
|
@@ -593,12 +593,12 @@ function Lr(e) {
|
|
|
593
593
|
};
|
|
594
594
|
}
|
|
595
595
|
// src/composables/useCollaborationFeature.ts
|
|
596
|
-
var
|
|
596
|
+
var zr = 5e3, Br = 2e3, Vr = {
|
|
597
597
|
blockIds: [],
|
|
598
598
|
settings: !1,
|
|
599
599
|
templateUpdated: !0
|
|
600
600
|
};
|
|
601
|
-
function
|
|
601
|
+
function Hr(e) {
|
|
602
602
|
let t = /* @__PURE__ */ new Set(), n = !1, r = !1;
|
|
603
603
|
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);
|
|
604
604
|
return {
|
|
@@ -607,11 +607,11 @@ function Vr(e) {
|
|
|
607
607
|
templateUpdated: r
|
|
608
608
|
};
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function Ur(e) {
|
|
611
611
|
let t = S([]), n = 1, r = /* @__PURE__ */ new Map();
|
|
612
612
|
function i(e) {
|
|
613
613
|
let t = r.get(e);
|
|
614
|
-
t && clearTimeout(t), r.set(e, setTimeout(() => o(e),
|
|
614
|
+
t && clearTimeout(t), r.set(e, setTimeout(() => o(e), zr));
|
|
615
615
|
}
|
|
616
616
|
function a(e) {
|
|
617
617
|
let r = n++;
|
|
@@ -649,7 +649,7 @@ function Hr(e) {
|
|
|
649
649
|
u.delete(r);
|
|
650
650
|
let e = new Map(l.value);
|
|
651
651
|
e.delete(r), l.value = e;
|
|
652
|
-
},
|
|
652
|
+
}, Br));
|
|
653
653
|
}
|
|
654
654
|
l.value = n;
|
|
655
655
|
}
|
|
@@ -693,15 +693,15 @@ function Hr(e) {
|
|
|
693
693
|
let m = ee({
|
|
694
694
|
provider: e.provider,
|
|
695
695
|
loadTemplate: e.loadTemplate,
|
|
696
|
-
normalizeRemoteOperations: (t, n) =>
|
|
696
|
+
normalizeRemoteOperations: (t, n) => hn(t, n, e.mergeTags),
|
|
697
697
|
onRemoteChange: (t) => {
|
|
698
698
|
try {
|
|
699
|
-
p(t.actor,
|
|
699
|
+
p(t.actor, Hr(t.ops));
|
|
700
700
|
} finally {
|
|
701
701
|
e.onRemoteChange?.(t);
|
|
702
702
|
}
|
|
703
703
|
},
|
|
704
|
-
onRemoteResync: ({ actor: e }) => p(e,
|
|
704
|
+
onRemoteResync: ({ actor: e }) => p(e, Vr),
|
|
705
705
|
onNotice: s,
|
|
706
706
|
onError: e.onError
|
|
707
707
|
});
|
|
@@ -763,7 +763,7 @@ function Hr(e) {
|
|
|
763
763
|
};
|
|
764
764
|
}
|
|
765
765
|
// src/composables/useCommentsFeature.ts
|
|
766
|
-
function
|
|
766
|
+
function Wr(e) {
|
|
767
767
|
let { provider: n, editor: r } = e, i = Y({
|
|
768
768
|
provider: n,
|
|
769
769
|
getTemplateId: () => r.state.template?.id ?? null,
|
|
@@ -816,22 +816,22 @@ function Ur(e) {
|
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
818
|
// src/composables/useAiFeature.ts
|
|
819
|
-
var
|
|
820
|
-
function
|
|
821
|
-
return
|
|
819
|
+
var Gr = 3e3, Kr = 1e3;
|
|
820
|
+
function qr(e) {
|
|
821
|
+
return we(N(e));
|
|
822
822
|
}
|
|
823
|
-
var
|
|
824
|
-
function
|
|
823
|
+
var Jr = (e) => e instanceof Error && e.name === "AbortError";
|
|
824
|
+
function Yr(e) {
|
|
825
825
|
if (e instanceof Error) return e;
|
|
826
826
|
if (typeof e != "object" || !e) return Error(String(e));
|
|
827
827
|
let t = e;
|
|
828
828
|
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 });
|
|
829
829
|
}
|
|
830
|
-
var
|
|
831
|
-
function
|
|
832
|
-
return e.some((e) => e.id === t || e.type === "section" && Array.isArray(e.children) && e.children.some((e) => Array.isArray(e) &&
|
|
830
|
+
var Xr = (e) => e.batches.reduce((e, t) => e + t.operationCount, 0);
|
|
831
|
+
function Zr(e, t) {
|
|
832
|
+
return e.some((e) => e.id === t || e.type === "section" && Array.isArray(e.children) && e.children.some((e) => Array.isArray(e) && Zr(e, t)));
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function Qr(e) {
|
|
835
835
|
return {
|
|
836
836
|
applied: !1,
|
|
837
837
|
code: e.code,
|
|
@@ -839,7 +839,7 @@ function Zr(e) {
|
|
|
839
839
|
message: e.message
|
|
840
840
|
};
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function $r(e) {
|
|
843
843
|
let { provider: n, editor: r, collaboration: i } = e, a = n.conversation ?? null, o = crypto.randomUUID(), s = S(null), c = /* @__PURE__ */ new Map(), l = !1, u = 0, d = !1, f = 0, p = null, m = j();
|
|
844
844
|
function h(e) {
|
|
845
845
|
let t = ee(e);
|
|
@@ -904,12 +904,12 @@ function Qr(e) {
|
|
|
904
904
|
a(e);
|
|
905
905
|
return;
|
|
906
906
|
} finally {
|
|
907
|
-
t.active = null, t.busy.value = !1, --f === 0 &&
|
|
907
|
+
t.active = null, t.busy.value = !1, --f === 0 && Te(), H(t);
|
|
908
908
|
}
|
|
909
909
|
i(e);
|
|
910
910
|
}
|
|
911
911
|
};
|
|
912
|
-
t.queue.push(o), f++ === 0 &&
|
|
912
|
+
t.queue.push(o), f++ === 0 && Te(), H(t);
|
|
913
913
|
}) : Promise.resolve().then(r);
|
|
914
914
|
}
|
|
915
915
|
function H(e) {
|
|
@@ -956,7 +956,7 @@ function Qr(e) {
|
|
|
956
956
|
e.timers.add(r);
|
|
957
957
|
}
|
|
958
958
|
function q(t) {
|
|
959
|
-
|
|
959
|
+
Jr(t) || e.onError?.(Yr(t));
|
|
960
960
|
}
|
|
961
961
|
function Y(e, t) {
|
|
962
962
|
if (t.length === 0) return;
|
|
@@ -970,14 +970,14 @@ function Qr(e) {
|
|
|
970
970
|
let r = new Map(e.highlights.value);
|
|
971
971
|
for (let e of t) r.get(e) === n && r.delete(e);
|
|
972
972
|
e.highlights.value = r;
|
|
973
|
-
},
|
|
973
|
+
}, Br);
|
|
974
974
|
}
|
|
975
975
|
async function te(e) {
|
|
976
|
-
i && await Promise.race([i.core.settle().catch(() => {}), new Promise((t) => K(e, t,
|
|
976
|
+
i && await Promise.race([i.core.settle().catch(() => {}), new Promise((t) => K(e, t, Gr))]);
|
|
977
977
|
}
|
|
978
978
|
function ne(t) {
|
|
979
|
-
let n = N(r.content.value), a = r.activeLocale?.value ?? null, s =
|
|
980
|
-
if (a === null && n.settings.locale === void 0 && delete s.settings.locale, new TextEncoder().encode(JSON.stringify(s)).length > 2e5) throw new
|
|
979
|
+
let n = N(r.content.value), a = r.activeLocale?.value ?? null, s = Fe(n, a ?? Z(n));
|
|
980
|
+
if (a === null && n.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");
|
|
981
981
|
return {
|
|
982
982
|
templateId: t,
|
|
983
983
|
locale: a,
|
|
@@ -989,7 +989,7 @@ function Qr(e) {
|
|
|
989
989
|
}
|
|
990
990
|
function re() {
|
|
991
991
|
let e = r.state.selectedBlockId;
|
|
992
|
-
return e ? i ? i.core.hasConfirmedBlock(e) ? e : null :
|
|
992
|
+
return e ? i ? i.core.hasConfirmedBlock(e) ? e : null : Zr(r.content.value.blocks, e) ? e : null : null;
|
|
993
993
|
}
|
|
994
994
|
function ie(t, n, a) {
|
|
995
995
|
if (t.length === 0) return {
|
|
@@ -1000,14 +1000,14 @@ function Qr(e) {
|
|
|
1000
1000
|
try {
|
|
1001
1001
|
o = e.normalize(t, N(r.content.value));
|
|
1002
1002
|
} catch (e) {
|
|
1003
|
-
if (e instanceof
|
|
1003
|
+
if (e instanceof ke) return Qr(e);
|
|
1004
1004
|
throw e;
|
|
1005
1005
|
}
|
|
1006
1006
|
if (o.length === 0) return {
|
|
1007
1007
|
applied: !0,
|
|
1008
1008
|
inverse: []
|
|
1009
1009
|
};
|
|
1010
|
-
let s =
|
|
1010
|
+
let s = Hr(o);
|
|
1011
1011
|
if (i) {
|
|
1012
1012
|
let e = i.core.applyOperations(o, {
|
|
1013
1013
|
origin: "ai",
|
|
@@ -1016,23 +1016,23 @@ function Qr(e) {
|
|
|
1016
1016
|
return e.applied ? (s.templateUpdated || Y(a, s.blockIds), {
|
|
1017
1017
|
applied: !0,
|
|
1018
1018
|
inverse: e.inverse
|
|
1019
|
-
}) :
|
|
1019
|
+
}) : Qr(e.error);
|
|
1020
1020
|
}
|
|
1021
1021
|
let c;
|
|
1022
1022
|
try {
|
|
1023
|
-
c =
|
|
1023
|
+
c = Le(N(r.content.value), o);
|
|
1024
1024
|
} catch (e) {
|
|
1025
|
-
if (e instanceof
|
|
1025
|
+
if (e instanceof ke) return Qr(e);
|
|
1026
1026
|
throw e;
|
|
1027
1027
|
}
|
|
1028
1028
|
a.lastRecordedTurn !== n && (e.history().record(), a.lastRecordedTurn = n), d = !0;
|
|
1029
1029
|
try {
|
|
1030
|
-
|
|
1030
|
+
Se(r.content.value, we(o)), r.markDirty();
|
|
1031
1031
|
} finally {
|
|
1032
1032
|
d = !1;
|
|
1033
1033
|
}
|
|
1034
1034
|
let l = r.state.selectedBlockId;
|
|
1035
|
-
return l && !
|
|
1035
|
+
return l && !Zr(r.content.value.blocks, l) && r.selectBlock(null), s.templateUpdated || Y(a, s.blockIds), {
|
|
1036
1036
|
applied: !0,
|
|
1037
1037
|
inverse: c
|
|
1038
1038
|
};
|
|
@@ -1041,11 +1041,11 @@ function Qr(e) {
|
|
|
1041
1041
|
let o = t;
|
|
1042
1042
|
try {
|
|
1043
1043
|
if (a !== null) {
|
|
1044
|
-
if (e.localization && !e.localization.locales.includes(a)) throw new
|
|
1044
|
+
if (e.localization && !e.localization.locales.includes(a)) throw new ke("invalid_operation", 0, `Locale "${a}" is not enabled.`);
|
|
1045
1045
|
o = J(N(r.content.value), a, t, e.customBlockDefinitions?.());
|
|
1046
1046
|
}
|
|
1047
1047
|
} catch (e) {
|
|
1048
|
-
if (e instanceof
|
|
1048
|
+
if (e instanceof ke) return Qr(e);
|
|
1049
1049
|
throw e;
|
|
1050
1050
|
}
|
|
1051
1051
|
let s = ie(o, n, i);
|
|
@@ -1061,7 +1061,7 @@ function Qr(e) {
|
|
|
1061
1061
|
let n = i.core;
|
|
1062
1062
|
n.revision.value >= e || (n.connection.value === "connected" ? K(t, () => {
|
|
1063
1063
|
E(t) && n.revision.value < e && n.catchUp();
|
|
1064
|
-
},
|
|
1064
|
+
}, Kr) : n.catchUp());
|
|
1065
1065
|
}
|
|
1066
1066
|
function se(e, t, n) {
|
|
1067
1067
|
let r = e.memory;
|
|
@@ -1117,7 +1117,7 @@ function Qr(e) {
|
|
|
1117
1117
|
try {
|
|
1118
1118
|
let n;
|
|
1119
1119
|
do
|
|
1120
|
-
n = _, !i && e.reload && await G(t, !0, d.authorVersion), a && await
|
|
1120
|
+
n = _, !i && e.reload && await G(t, !0, d.authorVersion), a && await pe(t, !0, !0);
|
|
1121
1121
|
while (E(u) && n !== _);
|
|
1122
1122
|
} catch (e) {
|
|
1123
1123
|
E(u) && q(e);
|
|
@@ -1133,18 +1133,18 @@ function Qr(e) {
|
|
|
1133
1133
|
},
|
|
1134
1134
|
onOperations: async (e) => {
|
|
1135
1135
|
U(d), C(c);
|
|
1136
|
-
let t = i ?
|
|
1137
|
-
return n.applied && n.inverse.length > 0 && (x.inverse = [...n.inverse, ...x.inverse], i && (x.view = x.view === void 0 || x.view !== null &&
|
|
1136
|
+
let t = i ? qr(r.content.value) : null, n = ae(e, m, u, l);
|
|
1137
|
+
return n.applied && n.inverse.length > 0 && (x.inverse = [...n.inverse, ...x.inverse], i && (x.view = x.view === void 0 || x.view !== null && Oe(x.view, t) ? qr(r.content.value) : null), _ += e.length, D({ operationCount: _ })), n;
|
|
1138
1138
|
},
|
|
1139
1139
|
onApplied: (t) => {
|
|
1140
1140
|
if (!E(u)) throw new DOMException("The template changed.", "AbortError");
|
|
1141
|
-
if (!i && !e.reload) throw b ??= new
|
|
1141
|
+
if (!i && !e.reload) throw b ??= new Q(yn, 502, "ai_provider_error"), b;
|
|
1142
1142
|
x.serverApplied = !0, x.batchIds.add(t.batchId), _ += t.operationCount, D({ operationCount: _ }), oe(t.revision, u), w && (O(), k());
|
|
1143
1143
|
}
|
|
1144
1144
|
};
|
|
1145
1145
|
try {
|
|
1146
1146
|
try {
|
|
1147
|
-
await
|
|
1147
|
+
await pe(d), U(d), C(c), u.failure.value = null, u.failedPrompt.value = null, u.failedAttachments.value = [];
|
|
1148
1148
|
let e = (/* @__PURE__ */ new Date()).toISOString();
|
|
1149
1149
|
p.records.set(g, x), p.items = [
|
|
1150
1150
|
...p.items,
|
|
@@ -1197,8 +1197,8 @@ function Qr(e) {
|
|
|
1197
1197
|
};
|
|
1198
1198
|
} catch (e) {
|
|
1199
1199
|
let r = b ?? e;
|
|
1200
|
-
y = f.signal.aborted ||
|
|
1201
|
-
error:
|
|
1200
|
+
y = f.signal.aborted || Jr(r), y || q(r), _ === 0 && (!y || v === "") ? (p.items = p.items.filter((e) => e.id !== g && e.id !== h), E(u) && (u.messages.value = p.items, y || (t === "chat" && (u.failedPrompt.value = n, u.failedAttachments.value = s), u.failure.value = {
|
|
1201
|
+
error: Yr(r),
|
|
1202
1202
|
context: "turn"
|
|
1203
1203
|
})), S = {
|
|
1204
1204
|
messageId: null,
|
|
@@ -1208,7 +1208,7 @@ function Qr(e) {
|
|
|
1208
1208
|
}) : (D({
|
|
1209
1209
|
status: y ? "done" : "failed",
|
|
1210
1210
|
failure: y ? void 0 : {
|
|
1211
|
-
error:
|
|
1211
|
+
error: Yr(r),
|
|
1212
1212
|
context: "turn"
|
|
1213
1213
|
}
|
|
1214
1214
|
}), S = {
|
|
@@ -1224,7 +1224,7 @@ function Qr(e) {
|
|
|
1224
1224
|
if (r = _, x.serverApplied && !i && e.reload && E(u) && await G(d, !0).catch((e) => {
|
|
1225
1225
|
E(u) && q(e);
|
|
1226
1226
|
}), a && p.recoveries.has(m) && E(u)) {
|
|
1227
|
-
await
|
|
1227
|
+
await pe(d, !0, !0);
|
|
1228
1228
|
let e = p.recoveries.get(m);
|
|
1229
1229
|
e && (S.messageId = e.item.id, S.text = e.item.text);
|
|
1230
1230
|
}
|
|
@@ -1243,7 +1243,7 @@ function Qr(e) {
|
|
|
1243
1243
|
let d = a?.[n], f = l.records.get(t);
|
|
1244
1244
|
try {
|
|
1245
1245
|
if (U(c), l.storedIds.has(t)) {
|
|
1246
|
-
if (typeof d != "function") throw new
|
|
1246
|
+
if (typeof d != "function") throw new Q(`This AI backend does not support ${n}.`, 403, "feature_unavailable");
|
|
1247
1247
|
if (u.undone !== (n === "redo")) return;
|
|
1248
1248
|
let r = await W(d(s.id, t, { sessionId: i ? i.core.sessionId : o }), s.lifetime.signal);
|
|
1249
1249
|
if (!E(s)) return;
|
|
@@ -1264,12 +1264,12 @@ function Qr(e) {
|
|
|
1264
1264
|
} catch (e) {
|
|
1265
1265
|
if (!E(s)) return;
|
|
1266
1266
|
q(e), se(s, t, { failure: {
|
|
1267
|
-
error:
|
|
1267
|
+
error: Yr(e),
|
|
1268
1268
|
context: n
|
|
1269
1269
|
} });
|
|
1270
1270
|
}
|
|
1271
1271
|
if (!E(s)) return;
|
|
1272
|
-
if (!e.applied) throw new
|
|
1272
|
+
if (!e.applied) throw new Pe(e.message, {
|
|
1273
1273
|
code: e.code,
|
|
1274
1274
|
opIndex: e.opIndex
|
|
1275
1275
|
});
|
|
@@ -1280,29 +1280,29 @@ function Qr(e) {
|
|
|
1280
1280
|
failure: void 0
|
|
1281
1281
|
}), i) oe(r.applied.revision, s);
|
|
1282
1282
|
else if (e.reload) await G(c, !0);
|
|
1283
|
-
else throw new
|
|
1283
|
+
else throw new Q(yn, 502, "ai_provider_error");
|
|
1284
1284
|
return;
|
|
1285
1285
|
}
|
|
1286
1286
|
{
|
|
1287
1287
|
if (u.undone !== (n === "redo")) return;
|
|
1288
1288
|
let e = n === "undo" ? f?.inverse : f?.redo;
|
|
1289
1289
|
if (!f || f.serverApplied || !e || e.length === 0) return;
|
|
1290
|
-
if (i && e.some((e) => e.op === "setContent") && (!f.view || !
|
|
1290
|
+
if (i && e.some((e) => e.op === "setContent") && (!f.view || !Oe(f.view, N(r.content.value)))) throw new Pe(`The template changed since this message's changes, so ${n === "undo" ? "undoing" : "redoing"} them would overwrite that.`, { code: "precondition_failed" });
|
|
1291
1291
|
let a = ie(e, `${n}:${t}:${crypto.randomUUID()}`, s);
|
|
1292
|
-
if (!a.applied) throw new
|
|
1292
|
+
if (!a.applied) throw new Pe(a.message, {
|
|
1293
1293
|
code: a.code,
|
|
1294
1294
|
opIndex: a.opIndex
|
|
1295
1295
|
});
|
|
1296
|
-
n === "undo" ? f.redo = a.inverse : f.inverse = a.inverse, i && (f.view =
|
|
1296
|
+
n === "undo" ? f.redo = a.inverse : f.inverse = a.inverse, i && (f.view = qr(r.content.value));
|
|
1297
1297
|
}
|
|
1298
1298
|
se(s, t, {
|
|
1299
1299
|
undone: n === "undo",
|
|
1300
1300
|
failure: void 0
|
|
1301
1301
|
});
|
|
1302
1302
|
} catch (e) {
|
|
1303
|
-
if (!E(s) ||
|
|
1303
|
+
if (!E(s) || Jr(e)) return;
|
|
1304
1304
|
q(e), se(s, t, { failure: {
|
|
1305
|
-
error:
|
|
1305
|
+
error: Yr(e),
|
|
1306
1306
|
context: n
|
|
1307
1307
|
} });
|
|
1308
1308
|
}
|
|
@@ -1316,7 +1316,7 @@ function Qr(e) {
|
|
|
1316
1316
|
locale: e.locale,
|
|
1317
1317
|
text: e.text,
|
|
1318
1318
|
attachments: e.attachments ?? [],
|
|
1319
|
-
operationCount:
|
|
1319
|
+
operationCount: Xr(e),
|
|
1320
1320
|
undone: e.undone,
|
|
1321
1321
|
canUndo: !1,
|
|
1322
1322
|
canRedo: !1,
|
|
@@ -1328,7 +1328,7 @@ function Qr(e) {
|
|
|
1328
1328
|
...ce(n, t)
|
|
1329
1329
|
};
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function X(e, t) {
|
|
1332
1332
|
for (let n of e) t.storedIds.add(n.id);
|
|
1333
1333
|
let n = new Map(t.items.map((e) => [e.id, e])), r = e.map((e) => {
|
|
1334
1334
|
let r = fe(e, t), i = n.get(r.id);
|
|
@@ -1355,7 +1355,7 @@ function Qr(e) {
|
|
|
1355
1355
|
}
|
|
1356
1356
|
return r;
|
|
1357
1357
|
}
|
|
1358
|
-
async function
|
|
1358
|
+
async function pe(e, t = !1, n = !1, r = e.scope.historyGeneration) {
|
|
1359
1359
|
let { scope: i } = e;
|
|
1360
1360
|
if (!E(i) || r !== i.historyGeneration || !n && e.controller.signal.aborted || !t && i.loaded) return;
|
|
1361
1361
|
let o = i.memory;
|
|
@@ -1364,12 +1364,12 @@ function Qr(e) {
|
|
|
1364
1364
|
i.isLoadingHistory.value = !0, i.loaded = !1;
|
|
1365
1365
|
try {
|
|
1366
1366
|
await W(a.list(i.id).then((t) => {
|
|
1367
|
-
!l && o.generation === i.generation && r === i.historyGeneration && (n || E(i) && !e.controller.signal.aborted) && (o.items =
|
|
1367
|
+
!l && o.generation === i.generation && r === i.historyGeneration && (n || E(i) && !e.controller.signal.aborted) && (o.items = X(t, o), i.messages.value = o.items, i.loaded = !0, i.failure.value?.context === "history" && (i.failure.value = null));
|
|
1368
1368
|
}), n ? i.lifetime.signal : e.controller.signal);
|
|
1369
1369
|
} catch (e) {
|
|
1370
|
-
if (!E(i) || r !== i.historyGeneration ||
|
|
1370
|
+
if (!E(i) || r !== i.historyGeneration || Jr(e)) return;
|
|
1371
1371
|
q(e), i.failure.value = {
|
|
1372
|
-
error:
|
|
1372
|
+
error: Yr(e),
|
|
1373
1373
|
context: "history"
|
|
1374
1374
|
};
|
|
1375
1375
|
} finally {
|
|
@@ -1377,7 +1377,7 @@ function Qr(e) {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1380
|
+
function me(e = T()) {
|
|
1381
1381
|
if (!e || !E(e)) return Promise.resolve();
|
|
1382
1382
|
if (e.pendingHistory?.generation === e.historyGeneration) return e.pendingHistory.promise;
|
|
1383
1383
|
if (e.loaded) return Promise.resolve();
|
|
@@ -1385,11 +1385,11 @@ function Qr(e) {
|
|
|
1385
1385
|
generation: t,
|
|
1386
1386
|
promise: Promise.resolve()
|
|
1387
1387
|
};
|
|
1388
|
-
return n.promise = V("history", e, (e) =>
|
|
1388
|
+
return n.promise = V("history", e, (e) => pe(e, !1, !1, t), () => {}).finally(() => {
|
|
1389
1389
|
e.pendingHistory === n && (e.pendingHistory = null);
|
|
1390
1390
|
}), e.pendingHistory = n, n.promise;
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1392
|
+
function he() {
|
|
1393
1393
|
let e = T();
|
|
1394
1394
|
return !e || a && typeof a.clear != "function" || e.active && e.active.kind !== "history" && e.active.kind !== "read" || e.queue.some((e) => e.kind !== "history" && e.kind !== "read") ? Promise.resolve() : (B(e), e.active?.controller.abort(), V("clear", e, async () => {
|
|
1395
1395
|
try {
|
|
@@ -1398,39 +1398,39 @@ function Qr(e) {
|
|
|
1398
1398
|
} catch (t) {
|
|
1399
1399
|
if (!E(e)) return;
|
|
1400
1400
|
q(t), e.failure.value = {
|
|
1401
|
-
error:
|
|
1401
|
+
error: Yr(t),
|
|
1402
1402
|
context: "history"
|
|
1403
1403
|
};
|
|
1404
1404
|
}
|
|
1405
1405
|
}, () => {}));
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1408
|
-
E(e) &&
|
|
1407
|
+
function ge(e) {
|
|
1408
|
+
E(e) && me(e);
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function _e(t) {
|
|
1411
1411
|
let n = T();
|
|
1412
|
-
n && E(n) && (s.value !== t && n.busy.value &&
|
|
1412
|
+
n && E(n) && (s.value !== t && n.busy.value && xe(), s.value = t, e.commentsOpen && (e.commentsOpen.value = !1), t === "chat" && ge(n));
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1415
|
-
e.length !== 0 && w("chatAttachments") && (z.value = [...e],
|
|
1414
|
+
function ve(e) {
|
|
1415
|
+
e.length !== 0 && w("chatAttachments") && (z.value = [...e], _e("chat"));
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function ye(e) {
|
|
1418
1418
|
e.active?.controller.abort();
|
|
1419
1419
|
for (let t of e.queue) t.kind !== "reconcile" && t.controller.abort();
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1422
|
-
e.lifetime.abort(),
|
|
1421
|
+
function be(e) {
|
|
1422
|
+
e.lifetime.abort(), ye(e), e.busy.value = !1, e.isLoadingHistory.value = !1;
|
|
1423
1423
|
for (let t of e.timers) clearTimeout(t);
|
|
1424
1424
|
e.timers.clear();
|
|
1425
1425
|
}
|
|
1426
|
-
function
|
|
1426
|
+
function xe() {
|
|
1427
1427
|
let e = T();
|
|
1428
|
-
e &&
|
|
1428
|
+
e && ye(e);
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1431
|
-
|
|
1430
|
+
function Ce() {
|
|
1431
|
+
xe(), s.value = null;
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function Te() {
|
|
1434
1434
|
if (l) return;
|
|
1435
1435
|
p?.();
|
|
1436
1436
|
let e = f === 0, n = () => t(r.content, () => {
|
|
@@ -1442,29 +1442,29 @@ function Qr(e) {
|
|
|
1442
1442
|
});
|
|
1443
1443
|
p = m?.active ? m.run(n) : n();
|
|
1444
1444
|
}
|
|
1445
|
-
|
|
1446
|
-
let
|
|
1445
|
+
Te();
|
|
1446
|
+
let Ee = [() => p?.(), t(() => r.state.isDirty, (e, t) => {
|
|
1447
1447
|
t === !0 && e === !1 && r.state.isSaving && (I.value = !1);
|
|
1448
1448
|
}, { flush: "sync" })];
|
|
1449
|
-
e.commentsOpen &&
|
|
1450
|
-
e &&
|
|
1451
|
-
})),
|
|
1449
|
+
e.commentsOpen && Ee.push(t(e.commentsOpen, (e) => {
|
|
1450
|
+
e && Ce();
|
|
1451
|
+
})), Ee.push(t(() => r.loadVersion?.value ?? g.value, () => {
|
|
1452
1452
|
if (l) return;
|
|
1453
1453
|
let e = _.value;
|
|
1454
1454
|
if (e?.committingReload && E(e)) {
|
|
1455
1455
|
e.committingReload = !1;
|
|
1456
1456
|
return;
|
|
1457
1457
|
}
|
|
1458
|
-
e &&
|
|
1458
|
+
e && be(e);
|
|
1459
1459
|
let t = g.value, n = t === null ? null : h(t);
|
|
1460
|
-
_.value = n, n && s.value === "chat" &&
|
|
1460
|
+
_.value = n, n && s.value === "chat" && ge(n);
|
|
1461
1461
|
}, { flush: "sync" }));
|
|
1462
|
-
async function
|
|
1462
|
+
async function De(t, a) {
|
|
1463
1463
|
let s = b, c = T(), l = n.altText, u = new AbortController(), d = () => u.abort(a?.reason), f = () => u.abort();
|
|
1464
1464
|
try {
|
|
1465
|
-
if (a?.throwIfAborted(), !c || typeof l != "function") throw new
|
|
1466
|
-
let n = N(r.content.value), p = r.activeLocale?.value ?? null, m =
|
|
1467
|
-
if (!h) throw new
|
|
1465
|
+
if (a?.throwIfAborted(), !c || typeof l != "function") throw new Q("This AI feature isn't available.", 403, "feature_unavailable");
|
|
1466
|
+
let n = N(r.content.value), p = r.activeLocale?.value ?? null, m = Fe(n, p ?? Z(n)), h = xn(m, t);
|
|
1467
|
+
if (!h) throw new Q("The image is no longer available.", 409, "block_missing");
|
|
1468
1468
|
a?.addEventListener("abort", d, { once: !0 }), c.lifetime.signal.addEventListener("abort", f, { once: !0 });
|
|
1469
1469
|
let { url: g, ..._ } = h, v = await W(l({
|
|
1470
1470
|
templateId: c.id,
|
|
@@ -1483,13 +1483,13 @@ function Qr(e) {
|
|
|
1483
1483
|
a?.removeEventListener("abort", d), c?.lifetime.signal.removeEventListener("abort", f);
|
|
1484
1484
|
}
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1486
|
+
function Ae(e) {
|
|
1487
1487
|
let t = b, n = T();
|
|
1488
1488
|
if (!n || e.length === 0) return Promise.resolve();
|
|
1489
|
-
let i = r.activeLocale?.value ?? null, a = N(r.content.value), o =
|
|
1489
|
+
let i = r.activeLocale?.value ?? null, a = N(r.content.value), o = Fe(a, i ?? Z(a)), s = e.map(({ blockId: e, alt: t, decorative: n, expect: r }) => ({
|
|
1490
1490
|
op: "updateBlock",
|
|
1491
1491
|
blockId: e,
|
|
1492
|
-
expect: { ...r ??
|
|
1492
|
+
expect: { ...r ?? bn(o, e) ?? {
|
|
1493
1493
|
src: null,
|
|
1494
1494
|
alt: null,
|
|
1495
1495
|
decorative: null
|
|
@@ -1506,7 +1506,7 @@ function Qr(e) {
|
|
|
1506
1506
|
for (let t = 0; t < s.length; t += 100) {
|
|
1507
1507
|
U(e);
|
|
1508
1508
|
let a = ae(s.slice(t, t + 100), r, n, i);
|
|
1509
|
-
if (!a.applied) throw new
|
|
1509
|
+
if (!a.applied) throw new Pe(a.message, {
|
|
1510
1510
|
code: a.code,
|
|
1511
1511
|
opIndex: a.opIndex
|
|
1512
1512
|
});
|
|
@@ -1519,13 +1519,13 @@ function Qr(e) {
|
|
|
1519
1519
|
return {
|
|
1520
1520
|
capability: {
|
|
1521
1521
|
isFeatureEnabled: (e) => v.value && w(e),
|
|
1522
|
-
open:
|
|
1523
|
-
startImport:
|
|
1522
|
+
open: _e,
|
|
1523
|
+
startImport: ve,
|
|
1524
1524
|
highlightOf: (e) => _.value?.highlights.value.get(e) ?? null
|
|
1525
1525
|
},
|
|
1526
1526
|
panel: s,
|
|
1527
|
-
open:
|
|
1528
|
-
close:
|
|
1527
|
+
open: _e,
|
|
1528
|
+
close: Ce,
|
|
1529
1529
|
has: w,
|
|
1530
1530
|
templateId: g,
|
|
1531
1531
|
sessionIdentity: y(() => _.value),
|
|
@@ -1546,7 +1546,7 @@ function Qr(e) {
|
|
|
1546
1546
|
failedPrompt: L,
|
|
1547
1547
|
failedAttachments: R,
|
|
1548
1548
|
importQueue: z,
|
|
1549
|
-
startImport:
|
|
1549
|
+
startImport: ve,
|
|
1550
1550
|
isTemplateEmpty: k,
|
|
1551
1551
|
send: (e, t = []) => {
|
|
1552
1552
|
let r = n.chat;
|
|
@@ -1578,8 +1578,8 @@ function Qr(e) {
|
|
|
1578
1578
|
failed: !0
|
|
1579
1579
|
});
|
|
1580
1580
|
},
|
|
1581
|
-
stop:
|
|
1582
|
-
newChat:
|
|
1581
|
+
stop: xe,
|
|
1582
|
+
newChat: he,
|
|
1583
1583
|
undoMessage: (e) => de(e, "undo"),
|
|
1584
1584
|
redoMessage: (e) => de(e, "redo"),
|
|
1585
1585
|
rewrite: (e, t, r) => {
|
|
@@ -1605,69 +1605,69 @@ function Qr(e) {
|
|
|
1605
1605
|
throw new DOMException("Rewrite stopped.", "AbortError");
|
|
1606
1606
|
});
|
|
1607
1607
|
},
|
|
1608
|
-
draftAltText:
|
|
1609
|
-
applyAltTexts:
|
|
1608
|
+
draftAltText: De,
|
|
1609
|
+
applyAltTexts: Ae,
|
|
1610
1610
|
destroy: () => {
|
|
1611
1611
|
if (l) return;
|
|
1612
1612
|
l = !0;
|
|
1613
1613
|
let e = _.value;
|
|
1614
|
-
e &&
|
|
1615
|
-
for (let e of
|
|
1616
|
-
|
|
1614
|
+
e && be(e), _.value = null, x();
|
|
1615
|
+
for (let e of Ee) e();
|
|
1616
|
+
Ee.length = 0;
|
|
1617
1617
|
}
|
|
1618
1618
|
};
|
|
1619
1619
|
}
|
|
1620
1620
|
// src/utils/aiMergeTags.ts
|
|
1621
|
-
var
|
|
1621
|
+
var ei = {
|
|
1622
1622
|
tags: 500,
|
|
1623
1623
|
value: 200,
|
|
1624
1624
|
label: 100,
|
|
1625
1625
|
group: 100,
|
|
1626
1626
|
description: 200
|
|
1627
1627
|
};
|
|
1628
|
-
function
|
|
1628
|
+
function ti(e, t) {
|
|
1629
1629
|
let n = Array.from(e);
|
|
1630
1630
|
return n.length > t ? n.slice(0, t).join("") : e;
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1633
|
-
return
|
|
1632
|
+
function ni(e) {
|
|
1633
|
+
return je(e) ?? "custom";
|
|
1634
1634
|
}
|
|
1635
|
-
function
|
|
1635
|
+
function ri(e, t) {
|
|
1636
1636
|
let n = [];
|
|
1637
1637
|
for (let t of e) {
|
|
1638
|
-
if (n.length ===
|
|
1638
|
+
if (n.length === ei.tags) break;
|
|
1639
1639
|
let e = typeof t?.value == "string" ? t.value : "";
|
|
1640
|
-
if (e === "" || Array.from(e).length >
|
|
1640
|
+
if (e === "" || Array.from(e).length > ei.value) continue;
|
|
1641
1641
|
let r = typeof t.label == "string" && t.label !== "" ? t.label : e;
|
|
1642
1642
|
n.push({
|
|
1643
1643
|
value: e,
|
|
1644
|
-
label:
|
|
1645
|
-
...typeof t.group == "string" && t.group !== "" ? { group:
|
|
1646
|
-
...typeof t.description == "string" && t.description !== "" ? { description:
|
|
1644
|
+
label: ti(r, ei.label),
|
|
1645
|
+
...typeof t.group == "string" && t.group !== "" ? { group: ti(t.group, ei.group) } : {},
|
|
1646
|
+
...typeof t.description == "string" && t.description !== "" ? { description: ti(t.description, ei.description) } : {}
|
|
1647
1647
|
});
|
|
1648
1648
|
}
|
|
1649
1649
|
return {
|
|
1650
|
-
syntax:
|
|
1650
|
+
syntax: ni(t),
|
|
1651
1651
|
tags: n
|
|
1652
1652
|
};
|
|
1653
1653
|
}
|
|
1654
1654
|
// src/composables/useMediaFeature.ts
|
|
1655
|
-
function
|
|
1655
|
+
function ii(e) {
|
|
1656
1656
|
return e instanceof Error ? e : Error(String(e));
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1658
|
+
function ai(e, t, n) {
|
|
1659
1659
|
let r = e.maxFileSize ?? Infinity;
|
|
1660
1660
|
if (t.size > r) return /* @__PURE__ */ Error(`Image is too large (${t.size} bytes). Maximum allowed is ${r} bytes.`);
|
|
1661
1661
|
let i = e.mimeTypes;
|
|
1662
1662
|
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"}.`);
|
|
1663
1663
|
}
|
|
1664
|
-
function
|
|
1664
|
+
function oi(e) {
|
|
1665
1665
|
let { provider: t, onRequestMedia: n, getTemplateId: r, onError: i } = e, a = S(!1), o = S(void 0), s = y(() => r?.()), c = y(() => !!n || typeof t?.create == "function"), l = null;
|
|
1666
1666
|
function u(e) {
|
|
1667
1667
|
a.value = !1, l?.(e), l = null;
|
|
1668
1668
|
}
|
|
1669
1669
|
function d(e) {
|
|
1670
|
-
u(
|
|
1670
|
+
u(si(e));
|
|
1671
1671
|
}
|
|
1672
1672
|
function f() {
|
|
1673
1673
|
u(null);
|
|
@@ -1680,7 +1680,7 @@ function ai(e) {
|
|
|
1680
1680
|
if (!t) return null;
|
|
1681
1681
|
if (e?.files?.length) {
|
|
1682
1682
|
if (typeof t.create != "function") return null;
|
|
1683
|
-
let n = e.files[0], a =
|
|
1683
|
+
let n = e.files[0], a = ai(t, n, e.accept);
|
|
1684
1684
|
if (a) return i?.(a), null;
|
|
1685
1685
|
let o = r?.();
|
|
1686
1686
|
try {
|
|
@@ -1691,11 +1691,11 @@ function ai(e) {
|
|
|
1691
1691
|
try {
|
|
1692
1692
|
t.onCreated?.(e);
|
|
1693
1693
|
} catch (e) {
|
|
1694
|
-
i?.(
|
|
1694
|
+
i?.(ii(e));
|
|
1695
1695
|
}
|
|
1696
|
-
return
|
|
1696
|
+
return si(e);
|
|
1697
1697
|
} catch (e) {
|
|
1698
|
-
return i?.(
|
|
1698
|
+
return i?.(ii(e)), null;
|
|
1699
1699
|
}
|
|
1700
1700
|
}
|
|
1701
1701
|
return l &&= (l(null), null), o.value = e?.accept, a.value = !0, new Promise((e) => {
|
|
@@ -1711,7 +1711,7 @@ function ai(e) {
|
|
|
1711
1711
|
onError: i
|
|
1712
1712
|
};
|
|
1713
1713
|
}
|
|
1714
|
-
function
|
|
1714
|
+
function si(e) {
|
|
1715
1715
|
let t = re(e.width, e.height);
|
|
1716
1716
|
return {
|
|
1717
1717
|
url: e.url,
|
|
@@ -1723,7 +1723,7 @@ function oi(e) {
|
|
|
1723
1723
|
};
|
|
1724
1724
|
}
|
|
1725
1725
|
// src/composables/useSavedBlocksFeature.ts
|
|
1726
|
-
function
|
|
1726
|
+
function ci(e) {
|
|
1727
1727
|
let { provider: n, editor: r } = e, i = ne({
|
|
1728
1728
|
provider: n,
|
|
1729
1729
|
onError: e.onError
|
|
@@ -1759,7 +1759,7 @@ function si(e) {
|
|
|
1759
1759
|
}
|
|
1760
1760
|
function x(e, t) {
|
|
1761
1761
|
for (let n = 0; n < e.content.length; n++) {
|
|
1762
|
-
let i =
|
|
1762
|
+
let i = ce(e.content[n]), a = t === void 0 ? void 0 : t + n;
|
|
1763
1763
|
r.addBlock(i, void 0, void 0, a);
|
|
1764
1764
|
}
|
|
1765
1765
|
o.value = !1;
|
|
@@ -1804,11 +1804,11 @@ function si(e) {
|
|
|
1804
1804
|
};
|
|
1805
1805
|
}
|
|
1806
1806
|
// src/composables/useTemplatesFeature.ts
|
|
1807
|
-
var
|
|
1808
|
-
function
|
|
1809
|
-
let { provider: t, editor: n } = e, r = S("idle"), i = S(""), { start: a, stop: o } =
|
|
1807
|
+
var li = 3e3;
|
|
1808
|
+
function ui(e) {
|
|
1809
|
+
let { provider: t, editor: n } = e, r = S("idle"), i = S(""), { start: a, stop: o } = Un(() => {
|
|
1810
1810
|
r.value = "idle";
|
|
1811
|
-
},
|
|
1811
|
+
}, li, { immediate: !1 }), s = y(() => typeof t.create == "function"), c = y(() => typeof t.save == "function"), l = y(() => e.isAvailable?.() ?? !0), u = y(() => n.state.template?.name), d = y(() => {
|
|
1812
1812
|
let e = n.state.template;
|
|
1813
1813
|
return e?.updatedAt ? {
|
|
1814
1814
|
iso: e.updatedAt,
|
|
@@ -1872,7 +1872,7 @@ function li(e) {
|
|
|
1872
1872
|
let t = e.trim();
|
|
1873
1873
|
t && t !== n.state.template?.name && (n.setName(t), w("rename"));
|
|
1874
1874
|
}
|
|
1875
|
-
return e.guardUnsavedChanges !== !1 &&
|
|
1875
|
+
return e.guardUnsavedChanges !== !1 && Dn(window, "beforeunload", (e) => {
|
|
1876
1876
|
n.state.isDirty && (e.preventDefault(), e.returnValue = "");
|
|
1877
1877
|
}), {
|
|
1878
1878
|
save: g,
|
|
@@ -1906,15 +1906,15 @@ function li(e) {
|
|
|
1906
1906
|
};
|
|
1907
1907
|
}
|
|
1908
1908
|
// src/utils/toMjml.ts
|
|
1909
|
-
async function
|
|
1909
|
+
async function di() {
|
|
1910
1910
|
try {
|
|
1911
1911
|
return await import("@templatical/renderer");
|
|
1912
1912
|
} catch {
|
|
1913
1913
|
return null;
|
|
1914
1914
|
}
|
|
1915
1915
|
}
|
|
1916
|
-
async function
|
|
1917
|
-
let n = await
|
|
1916
|
+
async function fi(e, t) {
|
|
1917
|
+
let n = await di();
|
|
1918
1918
|
if (!n) throw Error("[Templatical] toMjml() requires the @templatical/renderer package. Please install it.");
|
|
1919
1919
|
let r = e.getCustomBlockStylesheet, i = e.getFonts?.(), a = e.getLayout?.();
|
|
1920
1920
|
return n.renderToMjml(e.getContent(), {
|
|
@@ -1930,11 +1930,11 @@ async function di(e, t) {
|
|
|
1930
1930
|
});
|
|
1931
1931
|
}
|
|
1932
1932
|
// src/composables/useTestEmailFeature.ts
|
|
1933
|
-
var
|
|
1934
|
-
function
|
|
1933
|
+
var pi = 1200;
|
|
1934
|
+
function mi(e) {
|
|
1935
1935
|
return e instanceof Error ? e : Error(String(e));
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1937
|
+
function hi(e) {
|
|
1938
1938
|
let { provider: t } = e, n = S(!1), r = S(!1), i = S(!1), a = S(null), o = null, s = !1;
|
|
1939
1939
|
function c() {
|
|
1940
1940
|
o !== null && (clearTimeout(o), o = null);
|
|
@@ -1956,8 +1956,8 @@ function mi(e) {
|
|
|
1956
1956
|
if (t.includeMjml && e.renderMjml) try {
|
|
1957
1957
|
return await e.renderMjml();
|
|
1958
1958
|
} catch (t) {
|
|
1959
|
-
if ((e.usesLocalRenderer?.() ?? !0) && await
|
|
1960
|
-
s || (s = !0,
|
|
1959
|
+
if ((e.usesLocalRenderer?.() ?? !0) && await di() === null) {
|
|
1960
|
+
s || (s = !0, On.warn("testEmail.includeMjml is set but @templatical/renderer is not installed — sending the template as JSON only. Install it to receive `payload.mjml`."));
|
|
1961
1961
|
return;
|
|
1962
1962
|
}
|
|
1963
1963
|
throw t;
|
|
@@ -1967,7 +1967,7 @@ function mi(e) {
|
|
|
1967
1967
|
try {
|
|
1968
1968
|
t.onSent?.(n);
|
|
1969
1969
|
} catch (t) {
|
|
1970
|
-
e.onError?.(
|
|
1970
|
+
e.onError?.(mi(t));
|
|
1971
1971
|
}
|
|
1972
1972
|
}
|
|
1973
1973
|
async function g(n) {
|
|
@@ -1983,9 +1983,9 @@ function mi(e) {
|
|
|
1983
1983
|
...r === void 0 ? {} : { mjml: r },
|
|
1984
1984
|
...s === void 0 ? {} : { allowedRecipients: s }
|
|
1985
1985
|
};
|
|
1986
|
-
await t.send(a), i.value = !0, o = setTimeout(p,
|
|
1986
|
+
await t.send(a), i.value = !0, o = setTimeout(p, pi), h(a);
|
|
1987
1987
|
} catch (t) {
|
|
1988
|
-
let n =
|
|
1988
|
+
let n = mi(t);
|
|
1989
1989
|
a.value = {
|
|
1990
1990
|
kind: "provider",
|
|
1991
1991
|
message: n.message
|
|
@@ -2013,7 +2013,7 @@ function mi(e) {
|
|
|
2013
2013
|
};
|
|
2014
2014
|
}
|
|
2015
2015
|
// src/composables/useVersionHistoryFeature.ts
|
|
2016
|
-
function
|
|
2016
|
+
function gi(e) {
|
|
2017
2017
|
let { provider: t, editor: n, history: r, conditionPreview: i, autoSave: a } = e, o = e.collaboration ?? null, s = G({
|
|
2018
2018
|
provider: t,
|
|
2019
2019
|
getTemplateId: () => n.state.template?.id ?? null,
|
|
@@ -2040,7 +2040,7 @@ function hi(e) {
|
|
|
2040
2040
|
return;
|
|
2041
2041
|
}
|
|
2042
2042
|
let t = await s.resolveContent(e);
|
|
2043
|
-
f || (l.value =
|
|
2043
|
+
f || (l.value = we(n.content.value), a?.pause(), o?.suspend(), c.value = e, n.setContent(t, !1));
|
|
2044
2044
|
}
|
|
2045
2045
|
async function O() {
|
|
2046
2046
|
c.value && (n.state.isDirty ? u.value = !0 : await M());
|
|
@@ -2124,11 +2124,11 @@ function hi(e) {
|
|
|
2124
2124
|
};
|
|
2125
2125
|
}
|
|
2126
2126
|
// src/types/auto-save.ts
|
|
2127
|
-
function
|
|
2127
|
+
function _i(e, t) {
|
|
2128
2128
|
return e ?? t;
|
|
2129
2129
|
}
|
|
2130
2130
|
// src/utils/resolveInsertPosition.ts
|
|
2131
|
-
function
|
|
2131
|
+
function vi(e) {
|
|
2132
2132
|
let { blockType: t, selectedBlockId: n, findBlockLocation: r, isBlockLocked: i } = e;
|
|
2133
2133
|
if (!n) return {};
|
|
2134
2134
|
let a = r(n);
|
|
@@ -2145,8 +2145,8 @@ function _i(e) {
|
|
|
2145
2145
|
};
|
|
2146
2146
|
}
|
|
2147
2147
|
// src/utils/insertBlockAtSelection.ts
|
|
2148
|
-
function
|
|
2149
|
-
let { targetSectionId: n, columnIndex: r, index: i } =
|
|
2148
|
+
function yi(e, t) {
|
|
2149
|
+
let { targetSectionId: n, columnIndex: r, index: i } = vi({
|
|
2150
2150
|
blockType: t.type,
|
|
2151
2151
|
selectedBlockId: e.state.selectedBlockId,
|
|
2152
2152
|
findBlockLocation: e.findBlockLocation,
|
|
@@ -2155,7 +2155,7 @@ function vi(e, t) {
|
|
|
2155
2155
|
return e.addBlock(t, n, r, i), e.findBlockLocation(t.id) ? (e.selectBlock(t.id), !0) : !1;
|
|
2156
2156
|
}
|
|
2157
2157
|
// src/utils/withCollaborativeSave.ts
|
|
2158
|
-
function
|
|
2158
|
+
function bi(e, t, n) {
|
|
2159
2159
|
let { save: r, create: i } = e;
|
|
2160
2160
|
if (typeof r != "function") return e;
|
|
2161
2161
|
let a = /* @__PURE__ */ new Map(), o = (e) => (a.set(e.id, e.name), e);
|
|
@@ -2171,27 +2171,27 @@ function yi(e, t, n) {
|
|
|
2171
2171
|
};
|
|
2172
2172
|
}
|
|
2173
2173
|
// src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
|
|
2174
|
-
var
|
|
2174
|
+
var xi = ["aria-label"], Si = ["lang", "dir"], Ci = {
|
|
2175
2175
|
key: 0,
|
|
2176
2176
|
role: "status",
|
|
2177
2177
|
"aria-busy": "true",
|
|
2178
2178
|
"data-testid": "preview-resolution-loading",
|
|
2179
2179
|
class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-6"
|
|
2180
|
-
},
|
|
2180
|
+
}, wi = { class: "tpl:sr-only" }, Ti = {
|
|
2181
2181
|
key: 1,
|
|
2182
2182
|
role: "status",
|
|
2183
2183
|
"data-testid": "preview-resolution-failed",
|
|
2184
2184
|
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)]"
|
|
2185
|
-
},
|
|
2185
|
+
}, Ei = {
|
|
2186
2186
|
key: 0,
|
|
2187
2187
|
class: "tpl-canvas-empty-content tpl:flex tpl:flex-col tpl:items-center"
|
|
2188
|
-
},
|
|
2188
|
+
}, Di = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, Oi = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, ki = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, Ai = {
|
|
2189
2189
|
key: 0,
|
|
2190
2190
|
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)]"
|
|
2191
|
-
},
|
|
2191
|
+
}, ji = {
|
|
2192
2192
|
key: 1,
|
|
2193
2193
|
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)]"
|
|
2194
|
-
},
|
|
2194
|
+
}, Mi = { class: "tpl:relative" }, Ni = /*#__PURE__*/ ze(/* @__PURE__ */ R({
|
|
2195
2195
|
__name: "Canvas",
|
|
2196
2196
|
props: {
|
|
2197
2197
|
viewport: {},
|
|
@@ -2203,25 +2203,25 @@ var bi = ["aria-label"], xi = ["lang", "dir"], Si = {
|
|
|
2203
2203
|
emits: ["select-block"],
|
|
2204
2204
|
setup(e, { emit: t }) {
|
|
2205
2205
|
let r = {
|
|
2206
|
-
section:
|
|
2207
|
-
title:
|
|
2208
|
-
paragraph:
|
|
2209
|
-
image:
|
|
2210
|
-
button:
|
|
2211
|
-
divider:
|
|
2212
|
-
spacer:
|
|
2213
|
-
html:
|
|
2214
|
-
social:
|
|
2215
|
-
menu:
|
|
2216
|
-
table:
|
|
2217
|
-
video:
|
|
2218
|
-
custom:
|
|
2219
|
-
wrapper:
|
|
2220
|
-
}, i = e, u = t, { t: p } = $(), m =
|
|
2206
|
+
section: cn,
|
|
2207
|
+
title: Jt,
|
|
2208
|
+
paragraph: nn,
|
|
2209
|
+
image: Xt,
|
|
2210
|
+
button: fn,
|
|
2211
|
+
divider: dn,
|
|
2212
|
+
spacer: Gt,
|
|
2213
|
+
html: Wt,
|
|
2214
|
+
social: an,
|
|
2215
|
+
menu: Zt,
|
|
2216
|
+
table: Qt,
|
|
2217
|
+
video: sn,
|
|
2218
|
+
custom: pn,
|
|
2219
|
+
wrapper: Mn
|
|
2220
|
+
}, i = e, u = t, { t: p } = $(), m = ot(xt, "Canvas"), { displayBlock: _, settings: T } = Ue({
|
|
2221
2221
|
content: y(() => i.content),
|
|
2222
2222
|
activeLocale: y(() => i.previewMode ? null : m.activeLocale?.value ?? null)
|
|
2223
|
-
}), E =
|
|
2224
|
-
l(
|
|
2223
|
+
}), E = ot(it, "Canvas"), D = L(mt, null), k = L(pt, null), A = L(st, {}), j = L($e, null), N = L(Ye, null);
|
|
2224
|
+
l(et, y(() => i.previewMode)), l(vt, y(() => i.previewMode && (j?.value ?? !1) && !N?.isConfigured));
|
|
2225
2225
|
let P = y(() => A.ai?.isFeatureEnabled("chat") ?? !1), I = y(() => P.value && (A.ai?.isFeatureEnabled("chatAttachments") ?? !1)), R = S(null);
|
|
2226
2226
|
function z() {
|
|
2227
2227
|
R.value?.click();
|
|
@@ -2232,8 +2232,10 @@ var bi = ["aria-label"], xi = ["lang", "dir"], Si = {
|
|
|
2232
2232
|
}
|
|
2233
2233
|
let V = L(nt, null), U = y({
|
|
2234
2234
|
get: () => i.content.blocks,
|
|
2235
|
-
set: (e) =>
|
|
2236
|
-
|
|
2235
|
+
set: (e) => {
|
|
2236
|
+
i.previewMode || on(m, e);
|
|
2237
|
+
}
|
|
2238
|
+
}), W = y(() => se(T.value, i.viewport)), G = y(() => W.value + 192), ee = y(() => Pt(T.value, E.resolveFontFamily)), K = y(() => T.value?.locale?.trim() || void 0), q = y(() => pe(T.value)), J = y(() => U.value.length === 0 && !i.previewMode), Y = S(0), te = y(() => J.value && Y.value > 0);
|
|
2237
2239
|
function ne() {
|
|
2238
2240
|
J.value && (Y.value += 1);
|
|
2239
2241
|
}
|
|
@@ -2247,22 +2249,22 @@ var bi = ["aria-label"], xi = ["lang", "dir"], Si = {
|
|
|
2247
2249
|
i.previewMode || A.savedBlocks?.isPicking.value || e.target === e.currentTarget && u("select-block", null);
|
|
2248
2250
|
}
|
|
2249
2251
|
function ce(e) {
|
|
2250
|
-
return
|
|
2252
|
+
return en(e, k, r);
|
|
2251
2253
|
}
|
|
2252
|
-
function
|
|
2254
|
+
function le(e) {
|
|
2253
2255
|
return A.collaboration?.lockOf(e) != null;
|
|
2254
2256
|
}
|
|
2255
|
-
function
|
|
2256
|
-
if (i.previewMode ||
|
|
2257
|
+
function ue(e) {
|
|
2258
|
+
if (i.previewMode || le(e)) return;
|
|
2257
2259
|
let t = A.savedBlocks;
|
|
2258
2260
|
t?.isPicking.value ? t.togglePick(e) : u("select-block", e);
|
|
2259
2261
|
}
|
|
2260
|
-
function
|
|
2262
|
+
function de(e) {
|
|
2261
2263
|
return A.savedBlocks?.isPicked(e) ?? !1;
|
|
2262
2264
|
}
|
|
2263
2265
|
let fe = y(() => A.savedBlocks?.isPicking.value === !0);
|
|
2264
|
-
function
|
|
2265
|
-
e.type
|
|
2266
|
+
function X(e, t) {
|
|
2267
|
+
i.previewMode || e.type !== "custom" || m.updateBlock(e.id, {
|
|
2266
2268
|
fieldValues: t.fieldValues,
|
|
2267
2269
|
dataSourceFetched: t.dataSourceFetched
|
|
2268
2270
|
});
|
|
@@ -2290,7 +2292,7 @@ var bi = ["aria-label"], xi = ["lang", "dir"], Si = {
|
|
|
2290
2292
|
class: "tpl-canvas-wrapper tpl:relative",
|
|
2291
2293
|
style: f({
|
|
2292
2294
|
width: `${W.value}px`,
|
|
2293
|
-
[b(
|
|
2295
|
+
[b(Ht)]: `${W.value}px`,
|
|
2294
2296
|
transition: b(ae)
|
|
2295
2297
|
})
|
|
2296
2298
|
}, [O("div", {
|
|
@@ -2302,11 +2304,11 @@ var bi = ["aria-label"], xi = ["lang", "dir"], Si = {
|
|
|
2302
2304
|
dir: q.value,
|
|
2303
2305
|
style: f(ee.value),
|
|
2304
2306
|
onClick: oe
|
|
2305
|
-
}, [b(N)?.isInitialResolve.value ? (s(), C("div",
|
|
2307
|
+
}, [b(N)?.isInitialResolve.value ? (s(), C("div", Ci, [O("span", wi, a(b(p).previewResolution.resolving), 1), (s(), C(M, null, d(3, (e) => O("div", {
|
|
2306
2308
|
key: e,
|
|
2307
2309
|
"aria-hidden": "true",
|
|
2308
2310
|
class: "tpl-pulse tpl:h-16 tpl:rounded-md tpl:bg-[var(--tpl-bg-hover)]"
|
|
2309
|
-
})), 64))])) : b(N)?.hasFailed.value ? (s(), C("p",
|
|
2311
|
+
})), 64))])) : b(N)?.hasFailed.value ? (s(), C("p", Ti, a(b(p).previewResolution.failed), 1)) : x("", !0), g(v(b(qt), {
|
|
2310
2312
|
modelValue: U.value,
|
|
2311
2313
|
"onUpdate:modelValue": r[1] ||= (e) => U.value = e,
|
|
2312
2314
|
group: "blocks",
|
|
@@ -2325,40 +2327,40 @@ var bi = ["aria-label"], xi = ["lang", "dir"], Si = {
|
|
|
2325
2327
|
J.value && te.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
|
|
2326
2328
|
J.value && !te.value ? "tpl:border-[var(--tpl-primary)]" : ""
|
|
2327
2329
|
]),
|
|
2328
|
-
onUpdate: r[2] ||= (
|
|
2330
|
+
onUpdate: r[2] ||= (t) => !e.previewMode && b(on)(b(m), U.value, void 0, 0, t),
|
|
2329
2331
|
onDragenter: ne,
|
|
2330
2332
|
onDragleave: re,
|
|
2331
2333
|
onDrop: ie
|
|
2332
2334
|
}, {
|
|
2333
|
-
default: h(() => [J.value ? (s(), C("div",
|
|
2334
|
-
O("div",
|
|
2335
|
+
default: h(() => [J.value ? (s(), C("div", Ei, [
|
|
2336
|
+
O("div", Di, [v(b(dr), {
|
|
2335
2337
|
size: 48,
|
|
2336
2338
|
"stroke-width": 1
|
|
2337
2339
|
})]),
|
|
2338
|
-
O("p",
|
|
2339
|
-
O("p",
|
|
2340
|
-
P.value ? (s(), C("p",
|
|
2340
|
+
O("p", Oi, a(b(p).canvas.noBlocks), 1),
|
|
2341
|
+
O("p", ki, a(b(p).canvas.dragHint), 1),
|
|
2342
|
+
P.value ? (s(), C("p", Ai, [
|
|
2341
2343
|
w(a(b(p).ai.canvas.chatHint) + " ", 1),
|
|
2342
2344
|
O("button", {
|
|
2343
2345
|
type: "button",
|
|
2344
2346
|
"data-testid": "canvas-ai-chat",
|
|
2345
2347
|
class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
2346
2348
|
onClick: r[0] ||= (e) => b(A).ai?.open("chat")
|
|
2347
|
-
}, [v(b(
|
|
2349
|
+
}, [v(b(jn), {
|
|
2348
2350
|
size: 14,
|
|
2349
2351
|
"stroke-width": 2,
|
|
2350
2352
|
"aria-hidden": "true"
|
|
2351
2353
|
}), w(" " + a(b(p).ai.menu.chat), 1)]),
|
|
2352
2354
|
w(" " + a(b(p).ai.canvas.chatHintSuffix), 1)
|
|
2353
2355
|
])) : x("", !0),
|
|
2354
|
-
I.value ? (s(), C("p",
|
|
2356
|
+
I.value ? (s(), C("p", ji, [
|
|
2355
2357
|
w(a(b(p).ai.canvas.importHint) + " ", 1),
|
|
2356
2358
|
O("button", {
|
|
2357
2359
|
type: "button",
|
|
2358
2360
|
"data-testid": "canvas-ai-import",
|
|
2359
2361
|
class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
2360
2362
|
onClick: z
|
|
2361
|
-
}, [v(b(
|
|
2363
|
+
}, [v(b(ar), {
|
|
2362
2364
|
size: 14,
|
|
2363
2365
|
"stroke-width": 2,
|
|
2364
2366
|
"aria-hidden": "true"
|
|
@@ -2376,24 +2378,24 @@ var bi = ["aria-label"], xi = ["lang", "dir"], Si = {
|
|
|
2376
2378
|
])) : x("", !0), (s(!0), C(M, null, d(U.value, (t) => g((s(), C("div", {
|
|
2377
2379
|
key: t.id,
|
|
2378
2380
|
class: "tpl-block-item"
|
|
2379
|
-
}, [O("div",
|
|
2381
|
+
}, [O("div", Mi, [t.type === "wrapper" ? (s(), F(o(ce(t)), {
|
|
2380
2382
|
key: 0,
|
|
2381
2383
|
block: t,
|
|
2382
2384
|
viewport: e.viewport
|
|
2383
|
-
}, null, 8, ["block", "viewport"])) : (s(), F(
|
|
2385
|
+
}, null, 8, ["block", "viewport"])) : (s(), F(Yt, {
|
|
2384
2386
|
key: 1,
|
|
2385
2387
|
block: t,
|
|
2386
2388
|
"display-block": b(_)(t),
|
|
2387
|
-
"is-selected": !e.previewMode && !fe.value && e.selectedBlockId === t.id && !
|
|
2388
|
-
picked:
|
|
2389
|
+
"is-selected": !e.previewMode && !fe.value && e.selectedBlockId === t.id && !le(t.id),
|
|
2390
|
+
picked: de(t.id),
|
|
2389
2391
|
viewport: e.viewport,
|
|
2390
2392
|
"preview-mode": e.previewMode,
|
|
2391
|
-
onSelect: (e) =>
|
|
2393
|
+
onSelect: (e) => ue(t.id)
|
|
2392
2394
|
}, {
|
|
2393
2395
|
default: h(() => [(s(), F(o(ce(t)), n({ block: b(_)(t) }, { ref_for: !0 }, t.type === "section" ? { sourceBlock: t } : {}, {
|
|
2394
2396
|
viewport: e.viewport,
|
|
2395
|
-
onFetchData: (e) =>
|
|
2396
|
-
onUpdate: (
|
|
2397
|
+
onFetchData: (e) => X(t, e),
|
|
2398
|
+
onUpdate: (n) => !e.previewMode && b(m).updateBlock(t.id, n)
|
|
2397
2399
|
}), null, 16, [
|
|
2398
2400
|
"block",
|
|
2399
2401
|
"viewport",
|
|
@@ -2415,12 +2417,12 @@ var bi = ["aria-label"], xi = ["lang", "dir"], Si = {
|
|
|
2415
2417
|
"modelValue",
|
|
2416
2418
|
"disabled",
|
|
2417
2419
|
"class"
|
|
2418
|
-
]), [[H, !b(N)?.isInitialResolve.value]])], 14,
|
|
2420
|
+
]), [[H, !b(N)?.isInitialResolve.value]])], 14, Si)], 12, xi)], 4));
|
|
2419
2421
|
}
|
|
2420
|
-
}), [["__scopeId", "data-v-
|
|
2422
|
+
}), [["__scopeId", "data-v-03a9d286"]]), Pi = R({
|
|
2421
2423
|
name: "CustomBlockStylesheets",
|
|
2422
2424
|
setup() {
|
|
2423
|
-
let e = L(
|
|
2425
|
+
let e = L(lt, null);
|
|
2424
2426
|
return () => e ? e.value.map((e, t) => m("style", {
|
|
2425
2427
|
key: t,
|
|
2426
2428
|
"data-tpl-custom-block-stylesheet": "",
|
|
@@ -2429,7 +2431,7 @@ var bi = ["aria-label"], xi = ["lang", "dir"], Si = {
|
|
|
2429
2431
|
}
|
|
2430
2432
|
});
|
|
2431
2433
|
// src/utils/resolvePaletteBlocks.ts
|
|
2432
|
-
function
|
|
2434
|
+
function Fi(e, t) {
|
|
2433
2435
|
if (!t || t.length === 0) return {
|
|
2434
2436
|
items: e,
|
|
2435
2437
|
unknown: []
|
|
@@ -2447,24 +2449,24 @@ function Pi(e, t) {
|
|
|
2447
2449
|
};
|
|
2448
2450
|
}
|
|
2449
2451
|
// src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
2450
|
-
var
|
|
2452
|
+
var Ii = ["aria-label"], Li = {
|
|
2451
2453
|
key: 0,
|
|
2452
2454
|
class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
|
|
2453
|
-
},
|
|
2455
|
+
}, Ri = ["aria-label"], zi = {
|
|
2454
2456
|
key: 0,
|
|
2455
2457
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
2456
|
-
},
|
|
2458
|
+
}, Bi = [
|
|
2457
2459
|
"data-palette-type",
|
|
2458
2460
|
"aria-label",
|
|
2459
2461
|
"onClick",
|
|
2460
2462
|
"onKeydown"
|
|
2461
|
-
],
|
|
2463
|
+
], Vi = { 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" }, Hi = {
|
|
2462
2464
|
key: 0,
|
|
2463
2465
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
2464
|
-
},
|
|
2466
|
+
}, Ui = 4, Wi = /* @__PURE__ */ R({
|
|
2465
2467
|
__name: "Sidebar",
|
|
2466
2468
|
setup(e) {
|
|
2467
|
-
let { t: n, format: r } = $(), i = L(
|
|
2469
|
+
let { t: n, format: r } = $(), i = L(ut, []), c = L(Xe, void 0), l = L(at, void 0), u = L(xt, null), p = En(), m = L(st, {}), g = y(() => m.savedBlocks?.isAvailable.value === !0), w = S(!1), T = S(!1), E = S(null), D = !1, k = 0;
|
|
2468
2470
|
_(() => {
|
|
2469
2471
|
window.clearTimeout(k);
|
|
2470
2472
|
});
|
|
@@ -2505,7 +2507,7 @@ var Fi = ["aria-label"], Ii = {
|
|
|
2505
2507
|
}
|
|
2506
2508
|
let V = [
|
|
2507
2509
|
"section",
|
|
2508
|
-
|
|
2510
|
+
tn,
|
|
2509
2511
|
"image",
|
|
2510
2512
|
"title",
|
|
2511
2513
|
"paragraph",
|
|
@@ -2531,21 +2533,21 @@ var Fi = ["aria-label"], Ii = {
|
|
|
2531
2533
|
label: e.name,
|
|
2532
2534
|
isCustom: !0,
|
|
2533
2535
|
icon: e.icon
|
|
2534
|
-
}))), W = y(() => [...H.value, ...U.value]), G = y(() =>
|
|
2536
|
+
}))), W = y(() => [...H.value, ...U.value]), G = y(() => Fi(W.value, c)), ee = y(() => G.value.items), K = /* @__PURE__ */ new Set();
|
|
2535
2537
|
t(() => G.value.unknown, (e) => {
|
|
2536
|
-
for (let t of e) K.has(t) || (K.add(t),
|
|
2538
|
+
for (let t of e) K.has(t) || (K.add(t), On.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.`));
|
|
2537
2539
|
}, { immediate: !0 });
|
|
2538
2540
|
function q(e) {
|
|
2539
2541
|
if (e.isCustom) {
|
|
2540
2542
|
let t = e.type.replace("custom:", ""), n = i.find((e) => e.type === t);
|
|
2541
|
-
if (n) return
|
|
2543
|
+
if (n) return me(n);
|
|
2542
2544
|
}
|
|
2543
|
-
return e.type === "hero" ?
|
|
2545
|
+
return e.type === "hero" ? un(l?.value, n.blockDefaults.paragraph) : _e(e.type, l?.value);
|
|
2544
2546
|
}
|
|
2545
2547
|
function J(e) {
|
|
2546
2548
|
if (!u) return;
|
|
2547
2549
|
let t = q(e);
|
|
2548
|
-
|
|
2550
|
+
yi(u, t) && p(t.id);
|
|
2549
2551
|
}
|
|
2550
2552
|
function Y(e) {
|
|
2551
2553
|
D || J(e);
|
|
@@ -2569,17 +2571,17 @@ var Fi = ["aria-label"], Ii = {
|
|
|
2569
2571
|
onMouseleave: j,
|
|
2570
2572
|
onFocusin: t[2] ||= (e) => w.value = !0,
|
|
2571
2573
|
onFocusout: R
|
|
2572
|
-
}, [g.value ? (s(), C("div",
|
|
2574
|
+
}, [g.value ? (s(), C("div", Li, [O("button", {
|
|
2573
2575
|
type: "button",
|
|
2574
2576
|
"aria-label": b(n).sidebarNav.browseSavedBlocks,
|
|
2575
2577
|
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)]",
|
|
2576
2578
|
style: f({ justifyContent: w.value ? "flex-start" : "center" }),
|
|
2577
2579
|
onClick: t[0] ||= (e) => b(m).savedBlocks?.openBrowser()
|
|
2578
|
-
}, [v(b(
|
|
2580
|
+
}, [v(b(Nn), {
|
|
2579
2581
|
size: 20,
|
|
2580
2582
|
"stroke-width": 1.5,
|
|
2581
2583
|
class: "tpl:shrink-0"
|
|
2582
|
-
}), w.value ? (s(), C("span",
|
|
2584
|
+
}), w.value ? (s(), C("span", zi, a(b(n).savedBlocks.title), 1)) : x("", !0)], 12, Ri)])) : x("", !0), v(b(qt), {
|
|
2583
2585
|
"model-value": ee.value,
|
|
2584
2586
|
group: {
|
|
2585
2587
|
name: "blocks",
|
|
@@ -2590,7 +2592,7 @@ var Fi = ["aria-label"], Ii = {
|
|
|
2590
2592
|
sort: !1,
|
|
2591
2593
|
animation: 150,
|
|
2592
2594
|
"force-fallback": !0,
|
|
2593
|
-
"fallback-tolerance":
|
|
2595
|
+
"fallback-tolerance": Ui,
|
|
2594
2596
|
class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl:gap-0.5 tpl:overflow-y-auto tpl:p-1",
|
|
2595
2597
|
onChoose: N,
|
|
2596
2598
|
onStart: I,
|
|
@@ -2606,58 +2608,58 @@ var Fi = ["aria-label"], Ii = {
|
|
|
2606
2608
|
style: f({ justifyContent: w.value ? "flex-start" : "center" }),
|
|
2607
2609
|
onClick: (t) => Y(e),
|
|
2608
2610
|
onKeydown: (t) => te(t, e)
|
|
2609
|
-
}, [O("div",
|
|
2611
|
+
}, [O("div", Vi, [b(Pn)[e.type] ? (s(), F(o(b(Pn)[e.type]), {
|
|
2610
2612
|
key: 0,
|
|
2611
2613
|
size: 20,
|
|
2612
2614
|
"stroke-width": 1.5
|
|
2613
|
-
})) : e.isCustom ? (s(), F(
|
|
2615
|
+
})) : e.isCustom ? (s(), F(Kt, {
|
|
2614
2616
|
key: 1,
|
|
2615
2617
|
icon: e.icon,
|
|
2616
2618
|
size: 20
|
|
2617
|
-
}, null, 8, ["icon"])) : x("", !0)]), w.value ? (s(), C("span",
|
|
2619
|
+
}, null, 8, ["icon"])) : x("", !0)]), w.value ? (s(), C("span", Hi, a(e.label), 1)) : x("", !0)], 44, Bi))), 128))]),
|
|
2618
2620
|
_: 1
|
|
2619
|
-
}, 8, ["model-value"])], 44,
|
|
2621
|
+
}, 8, ["model-value"])], 44, Ii));
|
|
2620
2622
|
}
|
|
2621
|
-
}),
|
|
2623
|
+
}), Gi = ["aria-label"], Ki = {
|
|
2622
2624
|
role: "tablist",
|
|
2623
2625
|
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"
|
|
2624
|
-
},
|
|
2626
|
+
}, qi = [
|
|
2625
2627
|
"aria-selected",
|
|
2626
2628
|
"aria-label",
|
|
2627
2629
|
"title"
|
|
2628
|
-
],
|
|
2630
|
+
], Ji = { key: 0 }, Yi = [
|
|
2629
2631
|
"aria-selected",
|
|
2630
2632
|
"aria-label",
|
|
2631
2633
|
"title"
|
|
2632
|
-
],
|
|
2634
|
+
], Xi = { key: 0 }, Zi = [
|
|
2633
2635
|
"aria-selected",
|
|
2634
2636
|
"aria-label",
|
|
2635
2637
|
"title"
|
|
2636
|
-
],
|
|
2638
|
+
], Qi = { key: 0 }, $i = {
|
|
2637
2639
|
key: 1,
|
|
2638
2640
|
class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
|
|
2639
|
-
},
|
|
2641
|
+
}, ea = {
|
|
2640
2642
|
key: 0,
|
|
2641
2643
|
id: "tpl-tabpanel-content",
|
|
2642
2644
|
role: "tabpanel",
|
|
2643
2645
|
"aria-labelledby": "tpl-tab-content",
|
|
2644
2646
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2645
|
-
},
|
|
2647
|
+
}, ta = {
|
|
2646
2648
|
key: 1,
|
|
2647
2649
|
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)]"
|
|
2648
|
-
},
|
|
2650
|
+
}, na = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, ra = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ia = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, aa = {
|
|
2649
2651
|
key: 1,
|
|
2650
2652
|
id: "tpl-tabpanel-settings",
|
|
2651
2653
|
role: "tabpanel",
|
|
2652
2654
|
"aria-labelledby": "tpl-tab-settings",
|
|
2653
2655
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2654
|
-
},
|
|
2656
|
+
}, oa = {
|
|
2655
2657
|
key: 2,
|
|
2656
2658
|
id: "tpl-tabpanel-issues",
|
|
2657
2659
|
role: "tabpanel",
|
|
2658
2660
|
"aria-labelledby": "tpl-tab-issues",
|
|
2659
2661
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2660
|
-
},
|
|
2662
|
+
}, sa = /* @__PURE__ */ R({
|
|
2661
2663
|
__name: "RightSidebar",
|
|
2662
2664
|
props: /*@__PURE__*/ r({
|
|
2663
2665
|
selectedBlock: {},
|
|
@@ -2674,7 +2676,7 @@ var Fi = ["aria-label"], Ii = {
|
|
|
2674
2676
|
"update-settings"
|
|
2675
2677
|
], ["update:tab"]),
|
|
2676
2678
|
setup(e, { emit: n }) {
|
|
2677
|
-
let r = I(() => import("./Toolbar-
|
|
2679
|
+
let r = I(() => import("./Toolbar-BUVRjylH.js").then((e) => e.t)), i = I(() => import("./TemplateSettings-eMBAy_wd.js")), o = I(() => import("./IssuesPanel-BUKc8lld.js")), l = e, u = n, { t: d } = $(), m = p(e, "tab"), h = L(ct, null), g = y(() => h !== null && !h.unavailable.value), _ = y(() => h?.issues.value.length ?? 0), S = L(bt, new Set(Fn)), w = y(() => S.size > 0);
|
|
2678
2680
|
function T(e) {
|
|
2679
2681
|
return m.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)]";
|
|
2680
2682
|
}
|
|
@@ -2690,9 +2692,9 @@ var Fi = ["aria-label"], Ii = {
|
|
|
2690
2692
|
!e && m.value === "issues" && (m.value = "content");
|
|
2691
2693
|
}), (t, n) => (s(), C("aside", {
|
|
2692
2694
|
"aria-label": b(d).landmarks.rightSidebar,
|
|
2693
|
-
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:
|
|
2695
|
+
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"])
|
|
2694
2696
|
}, [
|
|
2695
|
-
O("div",
|
|
2697
|
+
O("div", Ki, [
|
|
2696
2698
|
O("button", {
|
|
2697
2699
|
id: "tpl-tab-content",
|
|
2698
2700
|
role: "tab",
|
|
@@ -2703,10 +2705,10 @@ var Fi = ["aria-label"], Ii = {
|
|
|
2703
2705
|
class: c(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", T("content")]),
|
|
2704
2706
|
style: f(E("content")),
|
|
2705
2707
|
onClick: n[0] ||= (e) => m.value = "content"
|
|
2706
|
-
}, [v(b(
|
|
2708
|
+
}, [v(b(cr), {
|
|
2707
2709
|
size: 14,
|
|
2708
2710
|
"stroke-width": 2
|
|
2709
|
-
}), m.value === "content" ? (s(), C("span",
|
|
2711
|
+
}), m.value === "content" ? (s(), C("span", Ji, a(b(d).sidebar.content), 1)) : x("", !0)], 14, qi),
|
|
2710
2712
|
w.value ? (s(), C("button", {
|
|
2711
2713
|
key: 0,
|
|
2712
2714
|
id: "tpl-tab-settings",
|
|
@@ -2718,10 +2720,10 @@ var Fi = ["aria-label"], Ii = {
|
|
|
2718
2720
|
class: c(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", T("settings")]),
|
|
2719
2721
|
style: f(E("settings")),
|
|
2720
2722
|
onClick: n[1] ||= (e) => m.value = "settings"
|
|
2721
|
-
}, [v(b(
|
|
2723
|
+
}, [v(b(ur), {
|
|
2722
2724
|
size: 14,
|
|
2723
2725
|
"stroke-width": 1.5
|
|
2724
|
-
}), m.value === "settings" ? (s(), C("span",
|
|
2726
|
+
}), m.value === "settings" ? (s(), C("span", Xi, a(b(d).sidebar.settings), 1)) : x("", !0)], 14, Yi)) : x("", !0),
|
|
2725
2727
|
g.value ? (s(), C("button", {
|
|
2726
2728
|
key: 1,
|
|
2727
2729
|
id: "tpl-tab-issues",
|
|
@@ -2734,79 +2736,80 @@ var Fi = ["aria-label"], Ii = {
|
|
|
2734
2736
|
style: f(E("issues")),
|
|
2735
2737
|
onClick: n[2] ||= (e) => m.value = "issues"
|
|
2736
2738
|
}, [
|
|
2737
|
-
v(b(
|
|
2739
|
+
v(b(wn), {
|
|
2738
2740
|
size: 14,
|
|
2739
2741
|
"stroke-width": 1.5
|
|
2740
2742
|
}),
|
|
2741
|
-
m.value === "issues" ? (s(), C("span",
|
|
2742
|
-
_.value > 0 ? (s(), C("span",
|
|
2743
|
-
], 14,
|
|
2743
|
+
m.value === "issues" ? (s(), C("span", Qi, a(b(d).issues.panelTabLabel), 1)) : x("", !0),
|
|
2744
|
+
_.value > 0 ? (s(), C("span", $i, a(_.value), 1)) : x("", !0)
|
|
2745
|
+
], 14, Zi)) : x("", !0)
|
|
2744
2746
|
]),
|
|
2745
|
-
m.value === "content" ? (s(), C("div",
|
|
2747
|
+
m.value === "content" ? (s(), C("div", ea, [e.selectedBlock ? (s(), F(b(r), {
|
|
2746
2748
|
key: 0,
|
|
2747
2749
|
block: e.selectedBlock,
|
|
2748
2750
|
onUpdate: n[3] ||= (e) => u("update-block", e),
|
|
2749
2751
|
onDelete: n[4] ||= (e) => u("delete-block"),
|
|
2750
2752
|
onDuplicate: n[5] ||= (e) => u("duplicate-block")
|
|
2751
|
-
}, null, 8, ["block"])) : (s(), C("div",
|
|
2752
|
-
O("div",
|
|
2753
|
+
}, null, 8, ["block"])) : (s(), C("div", ta, [
|
|
2754
|
+
O("div", na, [v(b(or), {
|
|
2753
2755
|
size: 40,
|
|
2754
2756
|
"stroke-width": 1.5
|
|
2755
2757
|
})]),
|
|
2756
|
-
O("h3",
|
|
2757
|
-
O("p",
|
|
2758
|
+
O("h3", ra, a(b(d).sidebar.noSelection), 1),
|
|
2759
|
+
O("p", ia, a(b(d).sidebar.noSelectionHint), 1)
|
|
2758
2760
|
]))])) : x("", !0),
|
|
2759
|
-
m.value === "settings" && w.value ? (s(), C("div",
|
|
2761
|
+
m.value === "settings" && w.value ? (s(), C("div", aa, [v(b(i), {
|
|
2760
2762
|
settings: e.settings,
|
|
2761
2763
|
onUpdate: n[6] ||= (e) => u("update-settings", e)
|
|
2762
2764
|
}, null, 8, ["settings"])])) : x("", !0),
|
|
2763
|
-
m.value === "issues" && g.value ? (s(), C("div",
|
|
2764
|
-
], 10,
|
|
2765
|
+
m.value === "issues" && g.value ? (s(), C("div", oa, [v(b(o))])) : x("", !0)
|
|
2766
|
+
], 10, Gi));
|
|
2765
2767
|
}
|
|
2766
|
-
}),
|
|
2768
|
+
}), ca = {
|
|
2767
2769
|
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)]",
|
|
2768
2770
|
style: { "z-index": "10001" },
|
|
2769
2771
|
role: "status",
|
|
2770
2772
|
"data-testid": "small-screen-notice"
|
|
2771
|
-
},
|
|
2773
|
+
}, la = { class: "tpl:text-[var(--tpl-text-dim)]" }, ua = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, da = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, fa = /* @__PURE__ */ R({
|
|
2772
2774
|
__name: "SmallScreenNotice",
|
|
2773
2775
|
setup(e) {
|
|
2774
2776
|
let { t } = $();
|
|
2775
|
-
return (e, n) => (s(), C("div",
|
|
2776
|
-
O("div",
|
|
2777
|
+
return (e, n) => (s(), C("div", ca, [
|
|
2778
|
+
O("div", la, [v(b(In), {
|
|
2777
2779
|
size: 48,
|
|
2778
2780
|
"stroke-width": 1.5
|
|
2779
2781
|
})]),
|
|
2780
|
-
O("h2",
|
|
2781
|
-
O("p",
|
|
2782
|
+
O("h2", ua, a(b(t).smallScreen.title), 1),
|
|
2783
|
+
O("p", da, a(b(t).smallScreen.message), 1)
|
|
2782
2784
|
]));
|
|
2783
2785
|
}
|
|
2784
|
-
}),
|
|
2786
|
+
}), pa = {
|
|
2785
2787
|
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
|
|
2786
2788
|
style: {
|
|
2787
2789
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
|
|
2788
2790
|
"backdrop-filter": "blur(8px)",
|
|
2789
2791
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
2790
2792
|
}
|
|
2791
|
-
},
|
|
2793
|
+
}, ma = /* @__PURE__ */ R({
|
|
2792
2794
|
__name: "EditorFooter",
|
|
2793
2795
|
props: { positionClass: {} },
|
|
2794
2796
|
setup(e) {
|
|
2795
2797
|
let { t } = $();
|
|
2796
|
-
return (n, r) => (s(), C("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]) }, [O("div",
|
|
2798
|
+
return (n, r) => (s(), C("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]) }, [O("div", pa, [O("span", null, a(b(t).footer.poweredBy), 1), r[0] ||= T("<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));
|
|
2797
2799
|
}
|
|
2798
|
-
}),
|
|
2799
|
-
function
|
|
2800
|
-
let t = e.centerWidth + 2 * Math.max(e.leftWidth,
|
|
2800
|
+
}), ha = (e) => Number.parseFloat(e) || 0;
|
|
2801
|
+
function ga(e) {
|
|
2802
|
+
let t = (t) => e.centerWidth + 2 * Math.max(e.leftWidth, t) + e.paddingWidth + 2 * e.columnGap + e.borderWidth, n = e.statusLabelWidth ?? 0, r = t(e.rightWidth - n), i = e.availableWidth < r;
|
|
2801
2803
|
return {
|
|
2802
|
-
compact:
|
|
2803
|
-
fullWidth:
|
|
2804
|
+
compact: i,
|
|
2805
|
+
fullWidth: r,
|
|
2806
|
+
statusLabel: !i && e.availableWidth >= t(e.rightWidth)
|
|
2804
2807
|
};
|
|
2805
2808
|
}
|
|
2806
|
-
function
|
|
2807
|
-
let r = A(!1), i = A(0), a, o, s = !1,
|
|
2808
|
-
function
|
|
2809
|
-
return
|
|
2809
|
+
function _a(t, n) {
|
|
2810
|
+
let r = A(!1), i = A(0), a = A(!1), o = 0, s, c, l = !1, u = !0, d = null, f, p = 0, m = 0, h = [];
|
|
2811
|
+
function g() {
|
|
2812
|
+
return h.some((e) => {
|
|
2810
2813
|
let t = e.getBoundingClientRect();
|
|
2811
2814
|
return Array.from(e.children).some((e) => {
|
|
2812
2815
|
let n = e.getBoundingClientRect();
|
|
@@ -2814,20 +2817,20 @@ function ga(t, n) {
|
|
|
2814
2817
|
});
|
|
2815
2818
|
});
|
|
2816
2819
|
}
|
|
2817
|
-
function
|
|
2818
|
-
if (!
|
|
2820
|
+
function _() {
|
|
2821
|
+
if (!l || !t.value || !n.value) return;
|
|
2819
2822
|
let e = t.value.getBoundingClientRect().width;
|
|
2820
2823
|
if (e <= 0) return;
|
|
2821
|
-
if (!
|
|
2822
|
-
r.value = e < i.value;
|
|
2824
|
+
if (!u && !r.value && e >= i.value && g() && (u = !0), !u && i.value > 0) {
|
|
2825
|
+
r.value = e < i.value, a.value = !r.value && e >= o;
|
|
2823
2826
|
return;
|
|
2824
2827
|
}
|
|
2825
|
-
let
|
|
2826
|
-
for (let e of
|
|
2827
|
-
|
|
2828
|
-
for (let e of
|
|
2829
|
-
for (let e of
|
|
2830
|
-
Object.assign(
|
|
2828
|
+
let s = n.value, c = s.ownerDocument.createElement("div");
|
|
2829
|
+
for (let e of s.attributes) e.name.startsWith("data-") || c.setAttribute(e.name, e.value);
|
|
2830
|
+
c.classList.remove("tpl-header"), c.classList.add("tpl-header-measure"), c.setAttribute("aria-hidden", "true"), c.inert = !0;
|
|
2831
|
+
for (let e of s.childNodes) e !== f && c.appendChild(e.cloneNode(!0));
|
|
2832
|
+
for (let e of c.querySelectorAll("*")) e.removeAttribute("id"), e.removeAttribute("data-testid");
|
|
2833
|
+
Object.assign(c.style, {
|
|
2831
2834
|
position: "absolute",
|
|
2832
2835
|
inset: "0 auto auto 0",
|
|
2833
2836
|
width: "max-content",
|
|
@@ -2836,44 +2839,47 @@ function ga(t, n) {
|
|
|
2836
2839
|
pointerEvents: "none",
|
|
2837
2840
|
gridTemplateColumns: "max-content max-content max-content"
|
|
2838
2841
|
});
|
|
2839
|
-
let
|
|
2842
|
+
let d = [
|
|
2840
2843
|
".tpl-header-left",
|
|
2841
2844
|
".tpl-header-center",
|
|
2842
2845
|
".tpl-header-right"
|
|
2843
|
-
].map((e) =>
|
|
2844
|
-
for (let e of
|
|
2845
|
-
let
|
|
2846
|
-
if (
|
|
2847
|
-
|
|
2848
|
-
for (let e of
|
|
2846
|
+
].map((e) => c.querySelector(e));
|
|
2847
|
+
for (let e of d) e.style.width = "max-content", e.style.minWidth = "0";
|
|
2848
|
+
let p = c.querySelector(".tpl-header-identity");
|
|
2849
|
+
if (p) {
|
|
2850
|
+
p.style.width = "24px", p.style.minWidth = "24px", p.style.flexShrink = "0";
|
|
2851
|
+
for (let e of p.children) e.style.maxWidth = "100%";
|
|
2849
2852
|
}
|
|
2850
|
-
t.value.appendChild(
|
|
2853
|
+
t.value.appendChild(c);
|
|
2851
2854
|
try {
|
|
2852
|
-
let t = getComputedStyle(
|
|
2855
|
+
let t = getComputedStyle(c), n = d.map((e) => e.getBoundingClientRect().width), s = c.querySelector(".tpl-status-label"), l = s ? s.getBoundingClientRect().width + ha(getComputedStyle(s.parentElement).columnGap) : 0, f = {
|
|
2853
2856
|
availableWidth: e,
|
|
2854
2857
|
leftWidth: n[0],
|
|
2855
2858
|
centerWidth: n[1],
|
|
2856
2859
|
rightWidth: n[2],
|
|
2857
|
-
paddingWidth:
|
|
2858
|
-
columnGap:
|
|
2859
|
-
borderWidth:
|
|
2860
|
+
paddingWidth: ha(t.paddingLeft || t.paddingInline) + ha(t.paddingRight || t.paddingInline),
|
|
2861
|
+
columnGap: ha(t.columnGap),
|
|
2862
|
+
borderWidth: ha(t.borderLeftWidth) + ha(t.borderRightWidth)
|
|
2863
|
+
}, p = ga({
|
|
2864
|
+
...f,
|
|
2865
|
+
statusLabelWidth: l
|
|
2860
2866
|
});
|
|
2861
|
-
i.value =
|
|
2867
|
+
i.value = p.fullWidth, r.value = p.compact, a.value = p.statusLabel, o = ga(f).fullWidth, u = !1;
|
|
2862
2868
|
} finally {
|
|
2863
|
-
|
|
2869
|
+
c.remove();
|
|
2864
2870
|
}
|
|
2865
2871
|
}
|
|
2866
|
-
function
|
|
2867
|
-
|
|
2868
|
-
|
|
2872
|
+
function v() {
|
|
2873
|
+
l && d === null && (d = window.requestAnimationFrame(() => {
|
|
2874
|
+
d = null, _();
|
|
2869
2875
|
}));
|
|
2870
2876
|
}
|
|
2871
|
-
function
|
|
2872
|
-
|
|
2877
|
+
function y() {
|
|
2878
|
+
l && (u = !0, v());
|
|
2873
2879
|
}
|
|
2874
2880
|
return e(() => {
|
|
2875
|
-
if (
|
|
2876
|
-
|
|
2881
|
+
if (l = !0, h = Array.from(n.value?.children ?? []), _(), !t.value || !n.value) return;
|
|
2882
|
+
f = n.value.ownerDocument.createElement("span"), f.className = "tpl-header-metric-probe", f.setAttribute("aria-hidden", "true"), f.inert = !0, f.textContent = "MWmw0123456789", Object.assign(f.style, {
|
|
2877
2883
|
position: "absolute",
|
|
2878
2884
|
inset: "0 auto auto 0",
|
|
2879
2885
|
width: "max-content",
|
|
@@ -2884,22 +2890,22 @@ function ga(t, n) {
|
|
|
2884
2890
|
whiteSpace: "pre",
|
|
2885
2891
|
visibility: "hidden",
|
|
2886
2892
|
pointerEvents: "none"
|
|
2887
|
-
}), n.value.appendChild(
|
|
2888
|
-
let e =
|
|
2889
|
-
if (
|
|
2890
|
-
|
|
2893
|
+
}), n.value.appendChild(f);
|
|
2894
|
+
let e = f.getBoundingClientRect();
|
|
2895
|
+
if (p = e.width, m = e.height, typeof ResizeObserver < "u") {
|
|
2896
|
+
s = new ResizeObserver((e) => {
|
|
2891
2897
|
let t = !1;
|
|
2892
2898
|
for (let n of e) {
|
|
2893
|
-
if (n.target !==
|
|
2899
|
+
if (n.target !== f) continue;
|
|
2894
2900
|
let { width: e, height: r } = n.contentRect;
|
|
2895
|
-
(e !==
|
|
2901
|
+
(e !== p || r !== m) && (t = !0), p = e, m = r;
|
|
2896
2902
|
}
|
|
2897
|
-
t ?
|
|
2898
|
-
}),
|
|
2899
|
-
for (let e of
|
|
2900
|
-
|
|
2903
|
+
t ? y() : v();
|
|
2904
|
+
}), s.observe(t.value);
|
|
2905
|
+
for (let e of h) s.observe(e);
|
|
2906
|
+
s.observe(f);
|
|
2901
2907
|
}
|
|
2902
|
-
|
|
2908
|
+
c = new MutationObserver(y), c.observe(n.value, {
|
|
2903
2909
|
subtree: !0,
|
|
2904
2910
|
childList: !0,
|
|
2905
2911
|
characterData: !0,
|
|
@@ -2911,22 +2917,23 @@ function ga(t, n) {
|
|
|
2911
2917
|
"aria-label",
|
|
2912
2918
|
"hidden"
|
|
2913
2919
|
]
|
|
2914
|
-
}), window.addEventListener("resize",
|
|
2920
|
+
}), window.addEventListener("resize", v);
|
|
2915
2921
|
let r = n.value.ownerDocument.fonts;
|
|
2916
|
-
r?.addEventListener("loadingdone",
|
|
2922
|
+
r?.addEventListener("loadingdone", y), r?.status === "loading" && r.ready.then(y);
|
|
2917
2923
|
}), D(() => {
|
|
2918
|
-
|
|
2924
|
+
l = !1, d !== null && (window.cancelAnimationFrame(d), d = null), s?.disconnect(), c?.disconnect(), f?.remove(), f = void 0, h = [], window.removeEventListener("resize", v), n.value?.ownerDocument.fonts?.removeEventListener("loadingdone", y);
|
|
2919
2925
|
}), {
|
|
2920
2926
|
compact: r,
|
|
2921
|
-
fullWidth: i
|
|
2927
|
+
fullWidth: i,
|
|
2928
|
+
statusLabel: a
|
|
2922
2929
|
};
|
|
2923
2930
|
}
|
|
2924
2931
|
// src/components/DarkModeToggle.vue?vue&type=script&setup=true&lang.ts
|
|
2925
|
-
var
|
|
2932
|
+
var va = [
|
|
2926
2933
|
"aria-label",
|
|
2927
2934
|
"title",
|
|
2928
2935
|
"aria-pressed"
|
|
2929
|
-
],
|
|
2936
|
+
], ya = /*#__PURE__*/ ze(/* @__PURE__ */ R({
|
|
2930
2937
|
__name: "DarkModeToggle",
|
|
2931
2938
|
props: { darkMode: { type: Boolean } },
|
|
2932
2939
|
emits: ["change"],
|
|
@@ -2949,23 +2956,23 @@ var _a = [
|
|
|
2949
2956
|
"leave-to-class": "tpl-icon-leave-to",
|
|
2950
2957
|
mode: "out-in"
|
|
2951
2958
|
}, {
|
|
2952
|
-
default: h(() => [e.darkMode ? (s(), F(b(
|
|
2959
|
+
default: h(() => [e.darkMode ? (s(), F(b(sr), {
|
|
2953
2960
|
key: "moon",
|
|
2954
2961
|
size: 18,
|
|
2955
2962
|
"stroke-width": 1.5
|
|
2956
|
-
})) : (s(), F(b(
|
|
2963
|
+
})) : (s(), F(b(fr), {
|
|
2957
2964
|
key: "sun",
|
|
2958
2965
|
size: 18,
|
|
2959
2966
|
"stroke-width": 1.5
|
|
2960
2967
|
}))]),
|
|
2961
2968
|
_: 1
|
|
2962
|
-
})], 12,
|
|
2969
|
+
})], 12, va));
|
|
2963
2970
|
}
|
|
2964
|
-
}), [["__scopeId", "data-v-632aa74f"]]),
|
|
2971
|
+
}), [["__scopeId", "data-v-632aa74f"]]), ba = [
|
|
2965
2972
|
"aria-label",
|
|
2966
2973
|
"title",
|
|
2967
2974
|
"aria-pressed"
|
|
2968
|
-
],
|
|
2975
|
+
], xa = /*#__PURE__*/ ze(/* @__PURE__ */ R({
|
|
2969
2976
|
__name: "PreviewToggle",
|
|
2970
2977
|
props: { previewMode: { type: Boolean } },
|
|
2971
2978
|
emits: ["change"],
|
|
@@ -2988,19 +2995,19 @@ var _a = [
|
|
|
2988
2995
|
"leave-to-class": "tpl-icon-leave-to",
|
|
2989
2996
|
mode: "out-in"
|
|
2990
2997
|
}, {
|
|
2991
|
-
default: h(() => [e.previewMode ? (s(), F(b(
|
|
2998
|
+
default: h(() => [e.previewMode ? (s(), F(b(Hn), {
|
|
2992
2999
|
key: "eye",
|
|
2993
3000
|
size: 18,
|
|
2994
3001
|
"stroke-width": 1.5
|
|
2995
|
-
})) : (s(), F(b(
|
|
3002
|
+
})) : (s(), F(b(It), {
|
|
2996
3003
|
key: "eye-off",
|
|
2997
3004
|
size: 18,
|
|
2998
3005
|
"stroke-width": 1.5
|
|
2999
3006
|
}))]),
|
|
3000
3007
|
_: 1
|
|
3001
|
-
})], 12,
|
|
3008
|
+
})], 12, ba));
|
|
3002
3009
|
}
|
|
3003
|
-
}), [["__scopeId", "data-v-eef7b2ca"]]),
|
|
3010
|
+
}), [["__scopeId", "data-v-eef7b2ca"]]), Sa = ["aria-label", "onKeydown"], Ca = ["title", "aria-label"], wa = /* @__PURE__ */ R({
|
|
3004
3011
|
__name: "TemplateNameField",
|
|
3005
3012
|
props: {
|
|
3006
3013
|
name: {},
|
|
@@ -3029,10 +3036,10 @@ var _a = [
|
|
|
3029
3036
|
type: "text",
|
|
3030
3037
|
"data-testid": "template-name-input",
|
|
3031
3038
|
"aria-label": b(i).header.templateName,
|
|
3032
|
-
class: c([b(
|
|
3039
|
+
class: c([b(Ot), "tpl:h-8 tpl:max-w-[260px] tpl:text-sm tpl:font-medium"]),
|
|
3033
3040
|
onKeydown: [U(B(p, ["prevent"]), ["enter"]), U(B(m, ["prevent"]), ["esc"])],
|
|
3034
3041
|
onBlur: p
|
|
3035
|
-
}, null, 42,
|
|
3042
|
+
}, null, 42, Sa)), [[z, l.value]]) : e.editable ? (s(), C("button", {
|
|
3036
3043
|
key: 1,
|
|
3037
3044
|
type: "button",
|
|
3038
3045
|
"data-testid": "template-name",
|
|
@@ -3040,48 +3047,49 @@ var _a = [
|
|
|
3040
3047
|
"aria-label": b(i).header.rename,
|
|
3041
3048
|
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 }]),
|
|
3042
3049
|
onClick: f
|
|
3043
|
-
}, a(e.name || b(i).header.untitled), 11,
|
|
3050
|
+
}, a(e.name || b(i).header.untitled), 11, Ca)) : (s(), C("span", {
|
|
3044
3051
|
key: 2,
|
|
3045
3052
|
"data-testid": "template-name",
|
|
3046
3053
|
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 }])
|
|
3047
3054
|
}, a(e.name || b(i).header.untitled), 3));
|
|
3048
3055
|
}
|
|
3049
|
-
}),
|
|
3056
|
+
}), Ta = ["title"], Ea = /* @__PURE__ */ R({
|
|
3050
3057
|
__name: "TemplateTimestamp",
|
|
3051
3058
|
props: {
|
|
3052
3059
|
iso: {},
|
|
3053
3060
|
kind: {}
|
|
3054
3061
|
},
|
|
3055
3062
|
setup(e) {
|
|
3056
|
-
let t = e, { t: n, format: r } = $(), i = L(
|
|
3057
|
-
|
|
3063
|
+
let t = e, { t: n, format: r } = $(), i = L(rt, void 0), o = S(0);
|
|
3064
|
+
Gn(() => {
|
|
3058
3065
|
o.value += 1;
|
|
3059
3066
|
}, 6e4);
|
|
3060
3067
|
let c = y(() => {
|
|
3061
3068
|
o.value;
|
|
3062
|
-
let e =
|
|
3069
|
+
let e = qn(t.iso, n.time, r);
|
|
3063
3070
|
if (e === null) return "";
|
|
3064
3071
|
let i = e === n.time.justNow;
|
|
3065
3072
|
return t.kind === "updatedAt" ? i ? n.header.updatedJustNow : r(n.header.updatedAt, { time: e }) : i ? n.header.createdJustNow : r(n.header.createdAt, { time: e });
|
|
3066
|
-
}), l = y(() =>
|
|
3073
|
+
}), l = y(() => Kn(t.iso, i));
|
|
3067
3074
|
return (e, t) => c.value ? (s(), C("span", {
|
|
3068
3075
|
key: 0,
|
|
3069
3076
|
"data-testid": "template-timestamp",
|
|
3070
3077
|
title: l.value,
|
|
3071
3078
|
class: "tpl:max-w-[260px] tpl:truncate tpl:px-2 tpl:text-xs tpl:leading-tight tpl:text-[var(--tpl-text-dim)]"
|
|
3072
|
-
}, a(c.value), 9,
|
|
3079
|
+
}, a(c.value), 9, Ta)) : x("", !0);
|
|
3073
3080
|
}
|
|
3074
|
-
}),
|
|
3075
|
-
|
|
3076
|
-
"
|
|
3077
|
-
"
|
|
3078
|
-
|
|
3079
|
-
|
|
3081
|
+
}), Da = [
|
|
3082
|
+
"aria-live",
|
|
3083
|
+
"data-testid",
|
|
3084
|
+
"title",
|
|
3085
|
+
"data-tooltip"
|
|
3086
|
+
], Oa = {
|
|
3080
3087
|
key: 2,
|
|
3081
|
-
"
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3088
|
+
class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]"
|
|
3089
|
+
}, ka = {
|
|
3090
|
+
key: 0,
|
|
3091
|
+
class: "tpl-status-label"
|
|
3092
|
+
}, Aa = /* @__PURE__ */ R({
|
|
3085
3093
|
__name: "TemplateSaveStatus",
|
|
3086
3094
|
props: {
|
|
3087
3095
|
status: {},
|
|
@@ -3089,26 +3097,35 @@ var _a = [
|
|
|
3089
3097
|
isDirty: { type: Boolean }
|
|
3090
3098
|
},
|
|
3091
3099
|
setup(e) {
|
|
3092
|
-
let { t } = $()
|
|
3093
|
-
|
|
3100
|
+
let t = e, { t: n } = $(), r = y(() => t.status === "error" ? "error" : t.status === "saved" ? "saved" : t.isDirty ? "unsaved" : "none"), i = {
|
|
3101
|
+
error: "saveFailed",
|
|
3102
|
+
saved: "saved",
|
|
3103
|
+
unsaved: "unsaved"
|
|
3104
|
+
}, o = y(() => r.value === "none" ? "" : n.header[i[r.value]]), l = y(() => r.value === "error" ? "tpl:text-[var(--tpl-danger)]" : r.value === "saved" ? "tpl:text-[var(--tpl-success)]" : "tpl:text-[var(--tpl-text-muted)]");
|
|
3105
|
+
return (t, n) => (s(), C("div", {
|
|
3106
|
+
"aria-live": r.value === "error" ? "assertive" : "polite",
|
|
3107
|
+
"data-testid": r.value === "none" ? void 0 : `save-status-${r.value}`,
|
|
3108
|
+
title: r.value === "saved" || r.value === "unsaved" ? o.value : void 0,
|
|
3109
|
+
"data-tooltip": r.value === "error" ? e.errorMessage : void 0,
|
|
3110
|
+
class: c(["tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs", [l.value, { "tpl-tooltip": r.value === "error" }]])
|
|
3111
|
+
}, [O("span", {
|
|
3112
|
+
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" }]),
|
|
3113
|
+
"aria-hidden": "true"
|
|
3114
|
+
}, [r.value === "error" ? (s(), F(b(Yn), {
|
|
3094
3115
|
key: 0,
|
|
3095
|
-
"aria-live": "assertive",
|
|
3096
|
-
"data-testid": "save-status-error",
|
|
3097
|
-
class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
|
|
3098
|
-
"data-tooltip": e.errorMessage
|
|
3099
|
-
}, [v(b(Jn), {
|
|
3100
3116
|
size: 12,
|
|
3101
3117
|
"stroke-width": 2.5
|
|
3102
|
-
})
|
|
3118
|
+
})) : r.value === "saved" ? (s(), F(b(Jn), {
|
|
3119
|
+
key: 1,
|
|
3103
3120
|
size: 12,
|
|
3104
3121
|
"stroke-width": 2.5
|
|
3105
|
-
})
|
|
3122
|
+
})) : r.value === "unsaved" ? (s(), C("span", Oa)) : x("", !0)], 2), r.value === "none" ? x("", !0) : (s(), C("span", ka, a(o.value), 1))], 10, Da));
|
|
3106
3123
|
}
|
|
3107
|
-
}),
|
|
3124
|
+
}), ja = [
|
|
3108
3125
|
"aria-pressed",
|
|
3109
3126
|
"aria-label",
|
|
3110
3127
|
"title"
|
|
3111
|
-
],
|
|
3128
|
+
], Ma = { class: "tpl-header-label" }, Na = /* @__PURE__ */ R({
|
|
3112
3129
|
__name: "AiHeaderMenu",
|
|
3113
3130
|
props: { feature: {} },
|
|
3114
3131
|
setup(e) {
|
|
@@ -3123,35 +3140,39 @@ var _a = [
|
|
|
3123
3140
|
"aria-pressed": r.value,
|
|
3124
3141
|
"aria-label": b(n).ai.menu.chat,
|
|
3125
3142
|
title: b(n).ai.menu.chat,
|
|
3126
|
-
class: c(b(
|
|
3143
|
+
class: c(b(At)),
|
|
3127
3144
|
style: f(r.value ? {
|
|
3128
3145
|
backgroundColor: "var(--tpl-primary-light)",
|
|
3129
3146
|
borderColor: "var(--tpl-primary-light)"
|
|
3130
3147
|
} : void 0),
|
|
3131
3148
|
onClick: B(i, ["stop"])
|
|
3132
|
-
}, [v(b(
|
|
3149
|
+
}, [v(b(jn), {
|
|
3133
3150
|
size: 16,
|
|
3134
3151
|
"stroke-width": 2,
|
|
3135
3152
|
class: "tpl:text-[var(--tpl-primary-hover)]",
|
|
3136
3153
|
"aria-hidden": "true"
|
|
3137
|
-
}), O("span",
|
|
3154
|
+
}), O("span", Ma, a(b(n).ai.menu.button), 1)], 14, ja)) : x("", !0);
|
|
3138
3155
|
}
|
|
3139
|
-
}),
|
|
3156
|
+
}), Pa = [
|
|
3157
|
+
"data-compact",
|
|
3158
|
+
"data-full-width",
|
|
3159
|
+
"data-status-label"
|
|
3160
|
+
], Fa = { class: "tpl-header-left tpl:flex tpl:min-w-0 tpl:items-center tpl:gap-2.5" }, Ia = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, La = { class: "tpl-header-right tpl:flex tpl:min-w-0 tpl:items-center tpl:justify-end tpl:gap-3" }, Ra = [
|
|
3140
3161
|
"aria-label",
|
|
3141
3162
|
"title",
|
|
3142
3163
|
"aria-expanded"
|
|
3143
|
-
],
|
|
3164
|
+
], za = { class: "tpl-header-label" }, Ba = {
|
|
3144
3165
|
key: 0,
|
|
3145
3166
|
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)]"
|
|
3146
|
-
},
|
|
3167
|
+
}, Va = [
|
|
3147
3168
|
"aria-label",
|
|
3148
3169
|
"title",
|
|
3149
3170
|
"disabled"
|
|
3150
|
-
],
|
|
3171
|
+
], Ha = { class: "tpl-header-label" }, Ua = [
|
|
3151
3172
|
"aria-label",
|
|
3152
3173
|
"disabled",
|
|
3153
3174
|
"title"
|
|
3154
|
-
],
|
|
3175
|
+
], Wa = { class: "tpl-header-label" }, Ga = /* @__PURE__ */ R({
|
|
3155
3176
|
__name: "EditorHeader",
|
|
3156
3177
|
props: {
|
|
3157
3178
|
editor: {},
|
|
@@ -3166,8 +3187,8 @@ var _a = [
|
|
|
3166
3187
|
ai: {}
|
|
3167
3188
|
},
|
|
3168
3189
|
setup(e) {
|
|
3169
|
-
let t = I(() => import("./VersionHistoryMenu
|
|
3170
|
-
return (
|
|
3190
|
+
let t = I(() => import("./VersionHistoryMenu-Cd2IaHgT.js")), n = I(() => import("./LanguageMenu-DruJAMET.js")), r = I(() => import("./CollaboratorBar-xDweDvB6.js")), o = A(null), l = A(null), { compact: u, fullWidth: d, statusLabel: p } = _a(o, l);
|
|
3191
|
+
return (m, h) => (s(), C("div", {
|
|
3171
3192
|
ref_key: "containerElement",
|
|
3172
3193
|
ref: o,
|
|
3173
3194
|
class: "tpl-header-container tpl:absolute tpl:inset-x-0 tpl:top-0 tpl:z-50 tpl:h-14"
|
|
@@ -3176,13 +3197,14 @@ var _a = [
|
|
|
3176
3197
|
ref: l,
|
|
3177
3198
|
"data-compact": b(u),
|
|
3178
3199
|
"data-full-width": b(d),
|
|
3200
|
+
"data-status-label": b(p),
|
|
3179
3201
|
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)]"
|
|
3180
3202
|
}, [
|
|
3181
|
-
O("div",
|
|
3203
|
+
O("div", Fa, [
|
|
3182
3204
|
e.templates?.isAvailable.value && e.templates.hasTemplate.value && (e.showTemplateName || e.templates.timestamp.value) ? (s(), C("div", {
|
|
3183
3205
|
key: 0,
|
|
3184
3206
|
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 }])
|
|
3185
|
-
}, [e.showTemplateName ? (s(), F(
|
|
3207
|
+
}, [e.showTemplateName ? (s(), F(wa, {
|
|
3186
3208
|
key: 0,
|
|
3187
3209
|
name: e.templates.name.value,
|
|
3188
3210
|
editable: e.templates.canSave.value,
|
|
@@ -3191,7 +3213,7 @@ var _a = [
|
|
|
3191
3213
|
"name",
|
|
3192
3214
|
"editable",
|
|
3193
3215
|
"onCommit"
|
|
3194
|
-
])) : x("", !0), e.templates.timestamp.value ? (s(), F(
|
|
3216
|
+
])) : x("", !0), e.templates.timestamp.value ? (s(), F(Ea, {
|
|
3195
3217
|
key: 1,
|
|
3196
3218
|
class: "tpl-header-timestamp",
|
|
3197
3219
|
iso: e.templates.timestamp.value.iso,
|
|
@@ -3208,8 +3230,8 @@ var _a = [
|
|
|
3208
3230
|
"is-loading": e.versionHistory.isLoading.value,
|
|
3209
3231
|
"is-restoring": e.versionHistory.isRestoring.value,
|
|
3210
3232
|
"previewing-id": e.versionHistory.previewingVersion.value?.id ?? null,
|
|
3211
|
-
onOpen:
|
|
3212
|
-
onNavigate:
|
|
3233
|
+
onOpen: h[0] ||= (t) => e.versionHistory.refresh(),
|
|
3234
|
+
onNavigate: h[1] ||= (t) => e.versionHistory.navigate(t)
|
|
3213
3235
|
}, null, 8, [
|
|
3214
3236
|
"versions",
|
|
3215
3237
|
"is-loading",
|
|
@@ -3221,24 +3243,24 @@ var _a = [
|
|
|
3221
3243
|
people: e.collaboration.people.value,
|
|
3222
3244
|
connection: e.collaboration.connection.value
|
|
3223
3245
|
}, null, 8, ["people", "connection"])) : x("", !0),
|
|
3224
|
-
i(
|
|
3246
|
+
i(m.$slots, "left-extras")
|
|
3225
3247
|
]),
|
|
3226
|
-
O("div",
|
|
3227
|
-
v(
|
|
3248
|
+
O("div", Ia, [
|
|
3249
|
+
v(Bn, {
|
|
3228
3250
|
viewport: e.editor.state.viewport,
|
|
3229
3251
|
onChange: e.editor.setViewport
|
|
3230
3252
|
}, null, 8, ["viewport", "onChange"]),
|
|
3231
|
-
v(
|
|
3253
|
+
v(ya, {
|
|
3232
3254
|
"dark-mode": e.editor.state.darkMode,
|
|
3233
3255
|
onChange: e.editor.setDarkMode
|
|
3234
3256
|
}, null, 8, ["dark-mode", "onChange"]),
|
|
3235
|
-
v(
|
|
3257
|
+
v(xa, {
|
|
3236
3258
|
"preview-mode": e.editor.state.previewMode,
|
|
3237
3259
|
onChange: e.editor.setPreviewMode
|
|
3238
3260
|
}, null, 8, ["preview-mode", "onChange"])
|
|
3239
3261
|
]),
|
|
3240
|
-
O("div",
|
|
3241
|
-
e.templates?.isAvailable.value && e.templates.canSave.value ? (s(), F(
|
|
3262
|
+
O("div", La, [
|
|
3263
|
+
e.templates?.isAvailable.value && e.templates.canSave.value ? (s(), F(Aa, {
|
|
3242
3264
|
key: 0,
|
|
3243
3265
|
class: "tpl-header-save-status",
|
|
3244
3266
|
status: e.templates.status.value,
|
|
@@ -3256,25 +3278,25 @@ var _a = [
|
|
|
3256
3278
|
"aria-label": e.comments.unresolvedCount.value > 0 ? `${e.core.t.comments.button} (${e.comments.unresolvedCount.value})` : e.core.t.comments.button,
|
|
3257
3279
|
title: e.core.t.comments.button,
|
|
3258
3280
|
"aria-expanded": e.comments.isOpen.value,
|
|
3259
|
-
class: c(b(
|
|
3281
|
+
class: c(b(At)),
|
|
3260
3282
|
style: f(e.comments.isOpen.value ? {
|
|
3261
3283
|
backgroundColor: "var(--tpl-primary-light)",
|
|
3262
3284
|
borderColor: "var(--tpl-primary-light)"
|
|
3263
3285
|
} : void 0),
|
|
3264
|
-
onClick:
|
|
3286
|
+
onClick: h[2] ||= (t) => e.comments.toggle()
|
|
3265
3287
|
}, [
|
|
3266
|
-
v(b(
|
|
3288
|
+
v(b(Rn), {
|
|
3267
3289
|
size: 16,
|
|
3268
3290
|
"stroke-width": 2
|
|
3269
3291
|
}),
|
|
3270
|
-
O("span",
|
|
3271
|
-
e.comments.unresolvedCount.value > 0 && !e.comments.isOpen.value ? (s(), C("span",
|
|
3272
|
-
], 14,
|
|
3273
|
-
e.ai ? (s(), F(
|
|
3292
|
+
O("span", za, a(e.core.t.comments.button), 1),
|
|
3293
|
+
e.comments.unresolvedCount.value > 0 && !e.comments.isOpen.value ? (s(), C("span", Ba, a(e.comments.unresolvedCount.value), 1)) : x("", !0)
|
|
3294
|
+
], 14, Ra)) : x("", !0),
|
|
3295
|
+
e.ai ? (s(), F(Na, {
|
|
3274
3296
|
key: 2,
|
|
3275
3297
|
feature: e.ai
|
|
3276
3298
|
}, null, 8, ["feature"])) : x("", !0),
|
|
3277
|
-
i(
|
|
3299
|
+
i(m.$slots, "right-extras"),
|
|
3278
3300
|
e.testEmail?.isAvailable.value ? (s(), C("button", {
|
|
3279
3301
|
key: 3,
|
|
3280
3302
|
type: "button",
|
|
@@ -3282,64 +3304,64 @@ var _a = [
|
|
|
3282
3304
|
"aria-label": e.core.t.testEmail.title,
|
|
3283
3305
|
title: e.core.t.testEmail.title,
|
|
3284
3306
|
disabled: e.testEmail.isSending.value,
|
|
3285
|
-
class: c(b(
|
|
3286
|
-
onClick:
|
|
3287
|
-
}, [e.testEmail.isSending.value ? (s(), F(b(
|
|
3307
|
+
class: c(b(At)),
|
|
3308
|
+
onClick: h[3] ||= (t) => e.testEmail.open()
|
|
3309
|
+
}, [e.testEmail.isSending.value ? (s(), F(b(Ln), {
|
|
3288
3310
|
key: 1,
|
|
3289
3311
|
class: "tpl-spinner",
|
|
3290
3312
|
size: 16,
|
|
3291
3313
|
"stroke-width": 2
|
|
3292
|
-
})) : (s(), F(b(
|
|
3314
|
+
})) : (s(), F(b(zn), {
|
|
3293
3315
|
key: 0,
|
|
3294
3316
|
size: 16,
|
|
3295
3317
|
"stroke-width": 2
|
|
3296
|
-
})), O("span",
|
|
3318
|
+
})), O("span", Ha, a(e.core.t.testEmail.button), 1)], 10, Va)) : x("", !0),
|
|
3297
3319
|
e.templates?.isAvailable.value && e.templates.canSave.value ? (s(), C("button", {
|
|
3298
3320
|
key: 4,
|
|
3299
3321
|
type: "button",
|
|
3300
3322
|
"data-testid": "template-save",
|
|
3301
|
-
class: c(e.editor.state.isDirty && e.templates.hasTemplate.value ? b(
|
|
3323
|
+
class: c(e.editor.state.isDirty && e.templates.hasTemplate.value ? b(jt) : b(At)),
|
|
3302
3324
|
style: f(e.editor.state.isDirty && e.templates.hasTemplate.value ? { boxShadow: "var(--tpl-shadow-sm)" } : void 0),
|
|
3303
3325
|
"aria-label": e.templates.isSaving.value ? e.core.t.header.saving : e.core.t.header.save,
|
|
3304
3326
|
disabled: e.templates.isSaving.value || !e.templates.hasTemplate.value,
|
|
3305
3327
|
title: e.templates.hasTemplate.value ? e.core.t.header.save : e.core.t.header.saveNoTemplate,
|
|
3306
|
-
onClick:
|
|
3307
|
-
}, [e.templates.isSaving.value ? (s(), F(b(
|
|
3328
|
+
onClick: h[4] ||= (t) => e.templates.requestSave()
|
|
3329
|
+
}, [e.templates.isSaving.value ? (s(), F(b(Ln), {
|
|
3308
3330
|
key: 1,
|
|
3309
3331
|
class: "tpl-spinner",
|
|
3310
3332
|
size: 16,
|
|
3311
3333
|
"stroke-width": 2
|
|
3312
|
-
})) : (s(), F(b(
|
|
3334
|
+
})) : (s(), F(b(lr), {
|
|
3313
3335
|
key: 0,
|
|
3314
3336
|
size: 16,
|
|
3315
3337
|
"stroke-width": 2
|
|
3316
|
-
})), O("span",
|
|
3338
|
+
})), O("span", Wa, a(e.templates.isSaving.value ? e.core.t.header.saving : e.core.t.header.save), 1)], 14, Ua)) : x("", !0)
|
|
3317
3339
|
])
|
|
3318
|
-
], 8,
|
|
3340
|
+
], 8, Pa)], 512));
|
|
3319
3341
|
}
|
|
3320
|
-
}),
|
|
3342
|
+
}), Ka = ["aria-labelledby", "data-tpl-theme"], qa = { 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" }, Ja = ["id"], Ya = ["aria-label"], Xa = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Za = [
|
|
3321
3343
|
"id",
|
|
3322
3344
|
"placeholder",
|
|
3323
3345
|
"aria-label",
|
|
3324
3346
|
"aria-activedescendant"
|
|
3325
|
-
],
|
|
3347
|
+
], Qa = {
|
|
3326
3348
|
key: 0,
|
|
3327
3349
|
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",
|
|
3328
3350
|
"data-testid": "merge-tag-picker-group-pills"
|
|
3329
|
-
},
|
|
3351
|
+
}, $a = ["data-group-name", "onClick"], eo = ["aria-label"], to = {
|
|
3330
3352
|
key: 0,
|
|
3331
3353
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3332
3354
|
"data-testid": "merge-tag-picker-empty"
|
|
3333
|
-
},
|
|
3355
|
+
}, no = {
|
|
3334
3356
|
key: 1,
|
|
3335
3357
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3336
3358
|
"data-testid": "merge-tag-picker-empty"
|
|
3337
|
-
},
|
|
3359
|
+
}, ro = [
|
|
3338
3360
|
"aria-expanded",
|
|
3339
3361
|
"data-group-name",
|
|
3340
3362
|
"data-group-collapsed",
|
|
3341
3363
|
"onClick"
|
|
3342
|
-
],
|
|
3364
|
+
], io = { class: "tpl:ml-1 tpl:font-normal" }, ao = [
|
|
3343
3365
|
"id",
|
|
3344
3366
|
"aria-selected",
|
|
3345
3367
|
"data-selected",
|
|
@@ -3349,21 +3371,21 @@ var _a = [
|
|
|
3349
3371
|
"title",
|
|
3350
3372
|
"onMousemove",
|
|
3351
3373
|
"onClick"
|
|
3352
|
-
],
|
|
3374
|
+
], oo = { class: "tpl:text-sm tpl:font-medium" }, so = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, co = {
|
|
3353
3375
|
key: 0,
|
|
3354
3376
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3355
|
-
},
|
|
3377
|
+
}, lo = {
|
|
3356
3378
|
key: 1,
|
|
3357
3379
|
"data-testid": "merge-tag-picker-sample",
|
|
3358
3380
|
class: "tpl:line-clamp-1 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3359
|
-
},
|
|
3381
|
+
}, uo = "tpl-merge-tag-picker-list", fo = /* @__PURE__ */ R({
|
|
3360
3382
|
__name: "MergeTagPickerModal",
|
|
3361
3383
|
setup(e) {
|
|
3362
|
-
let n =
|
|
3384
|
+
let n = ot(Je, "MergeTagPickerModal"), { t: r, format: i } = $(), o = L(gt, null), l = L(_t, null), p = L(St, !0), m = y(() => n.current.value !== null), _ = y(() => m.value ? r.mergeTag.picker.changeTitle : r.mergeTag.picker.title);
|
|
3363
3385
|
function w(e) {
|
|
3364
3386
|
return p ? e.description ? `${e.value} — ${e.description}` : e.value : e.description || void 0;
|
|
3365
3387
|
}
|
|
3366
|
-
let T = S(""), E =
|
|
3388
|
+
let T = S(""), E = Wn(T, 200), D = S(null), k = y(() => E.value.trim().length > 0), A = S(0), j = y(() => n.tags.value.some((e) => !!e.group)), N = S(/* @__PURE__ */ new Set());
|
|
3367
3389
|
function P(e) {
|
|
3368
3390
|
return N.value.has(e);
|
|
3369
3391
|
}
|
|
@@ -3483,13 +3505,13 @@ var _a = [
|
|
|
3483
3505
|
}
|
|
3484
3506
|
}
|
|
3485
3507
|
function se() {
|
|
3486
|
-
if (W.value.length !== 0) return `${
|
|
3508
|
+
if (W.value.length !== 0) return `${uo}-opt-${A.value}`;
|
|
3487
3509
|
}
|
|
3488
3510
|
function ce(e) {
|
|
3489
|
-
return `${
|
|
3511
|
+
return `${uo}-opt-${e}`;
|
|
3490
3512
|
}
|
|
3491
3513
|
let le = y(() => n.tags.value.length === 0), ue = y(() => !le.value && R.value.length === 0), de = y(() => j.value && V.value.length > 1 && !k.value);
|
|
3492
|
-
return (e, t) => (s(), F(
|
|
3514
|
+
return (e, t) => (s(), F(Mt, {
|
|
3493
3515
|
visible: b(n).isOpen.value,
|
|
3494
3516
|
onClose: J,
|
|
3495
3517
|
onKeydown: oe
|
|
@@ -3497,16 +3519,16 @@ var _a = [
|
|
|
3497
3519
|
default: h(() => [O("div", {
|
|
3498
3520
|
role: "dialog",
|
|
3499
3521
|
"aria-modal": "true",
|
|
3500
|
-
"aria-labelledby": `${
|
|
3522
|
+
"aria-labelledby": `${uo}-title`,
|
|
3501
3523
|
"data-tpl-theme": b(l),
|
|
3502
3524
|
"data-testid": "merge-tag-picker-modal",
|
|
3503
3525
|
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)]",
|
|
3504
3526
|
style: f(b(o))
|
|
3505
3527
|
}, [
|
|
3506
|
-
O("header",
|
|
3507
|
-
id: `${
|
|
3528
|
+
O("header", qa, [O("h2", {
|
|
3529
|
+
id: `${uo}-title`,
|
|
3508
3530
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
3509
|
-
}, a(_.value), 9,
|
|
3531
|
+
}, a(_.value), 9, Ja), O("button", {
|
|
3510
3532
|
type: "button",
|
|
3511
3533
|
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)]",
|
|
3512
3534
|
"aria-label": b(r).mergeTag.picker.close,
|
|
@@ -3515,13 +3537,13 @@ var _a = [
|
|
|
3515
3537
|
}, [v(b(He), {
|
|
3516
3538
|
size: 16,
|
|
3517
3539
|
"stroke-width": 2
|
|
3518
|
-
})], 8,
|
|
3519
|
-
O("div",
|
|
3540
|
+
})], 8, Ya)]),
|
|
3541
|
+
O("div", Xa, [v(b(Zn), {
|
|
3520
3542
|
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)]",
|
|
3521
3543
|
size: 14,
|
|
3522
3544
|
"stroke-width": 2
|
|
3523
3545
|
}), g(O("input", {
|
|
3524
|
-
id: `${
|
|
3546
|
+
id: `${uo}-search`,
|
|
3525
3547
|
ref_key: "searchInputRef",
|
|
3526
3548
|
ref: D,
|
|
3527
3549
|
"onUpdate:modelValue": t[0] ||= (e) => T.value = e,
|
|
@@ -3529,48 +3551,48 @@ var _a = [
|
|
|
3529
3551
|
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)]",
|
|
3530
3552
|
placeholder: b(r).mergeTag.picker.searchPlaceholder,
|
|
3531
3553
|
"aria-label": b(r).mergeTag.picker.searchAriaLabel,
|
|
3532
|
-
"aria-controls":
|
|
3554
|
+
"aria-controls": uo,
|
|
3533
3555
|
"aria-activedescendant": se(),
|
|
3534
3556
|
"data-testid": "merge-tag-picker-search",
|
|
3535
3557
|
onKeydown: t[1] ||= U(B(() => {}, ["prevent"]), ["enter"])
|
|
3536
|
-
}, null, 40,
|
|
3537
|
-
de.value ? (s(), C("div",
|
|
3558
|
+
}, null, 40, Za), [[z, T.value]])]),
|
|
3559
|
+
de.value ? (s(), C("div", Qa, [(s(!0), C(M, null, d(V.value, (e) => (s(), C("button", {
|
|
3538
3560
|
key: e,
|
|
3539
3561
|
type: "button",
|
|
3540
3562
|
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)]",
|
|
3541
3563
|
"data-testid": "merge-tag-picker-group-pill",
|
|
3542
3564
|
"data-group-name": e,
|
|
3543
3565
|
onClick: (t) => ae(e)
|
|
3544
|
-
}, a(e), 9,
|
|
3566
|
+
}, a(e), 9, $a))), 128))])) : x("", !0),
|
|
3545
3567
|
O("div", {
|
|
3546
|
-
id:
|
|
3568
|
+
id: uo,
|
|
3547
3569
|
ref_key: "listRef",
|
|
3548
3570
|
ref: te,
|
|
3549
3571
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
3550
3572
|
role: "listbox",
|
|
3551
3573
|
"aria-label": _.value,
|
|
3552
3574
|
"data-testid": "merge-tag-picker-list"
|
|
3553
|
-
}, [le.value ? (s(), C("div",
|
|
3575
|
+
}, [le.value ? (s(), C("div", to, a(b(r).mergeTag.picker.empty), 1)) : ue.value ? (s(), C("div", no, a(b(r).mergeTag.picker.noResults), 1)) : (s(!0), C(M, { key: 2 }, d(H.value, (e, t) => (s(), C(M, { key: t }, [e.kind === "header" ? (s(), C("button", {
|
|
3554
3576
|
key: 0,
|
|
3555
3577
|
ref_for: !0,
|
|
3556
3578
|
ref: (t) => re(e.group, t),
|
|
3557
3579
|
type: "button",
|
|
3558
3580
|
"aria-expanded": !P(e.group),
|
|
3559
|
-
"aria-controls":
|
|
3581
|
+
"aria-controls": uo,
|
|
3560
3582
|
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)]",
|
|
3561
3583
|
"data-testid": "merge-tag-picker-group-header",
|
|
3562
3584
|
"data-group-name": e.group,
|
|
3563
3585
|
"data-group-collapsed": P(e.group) ? "true" : "false",
|
|
3564
3586
|
onClick: (t) => I(e.group)
|
|
3565
3587
|
}, [
|
|
3566
|
-
v(b(
|
|
3588
|
+
v(b(Xn), {
|
|
3567
3589
|
size: 12,
|
|
3568
3590
|
"stroke-width": 2,
|
|
3569
3591
|
class: c(["tpl:transition-transform", P(e.group) ? "tpl:-rotate-90" : ""])
|
|
3570
3592
|
}, null, 8, ["class"]),
|
|
3571
3593
|
O("span", null, a(e.group), 1),
|
|
3572
|
-
O("span",
|
|
3573
|
-
], 8,
|
|
3594
|
+
O("span", io, " (" + a(b(i)(b(r).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
|
|
3595
|
+
], 8, ro)) : (s(), C("button", {
|
|
3574
3596
|
key: 1,
|
|
3575
3597
|
id: ce(e.index),
|
|
3576
3598
|
type: "button",
|
|
@@ -3586,23 +3608,23 @@ var _a = [
|
|
|
3586
3608
|
onMousemove: (t) => K(e.index),
|
|
3587
3609
|
onClick: (t) => q(e.tag)
|
|
3588
3610
|
}, [
|
|
3589
|
-
O("span",
|
|
3590
|
-
O("span",
|
|
3591
|
-
e.tag.description ? (s(), C("span",
|
|
3592
|
-
e.tag.sample === void 0 ? x("", !0) : (s(), C("span",
|
|
3593
|
-
], 42,
|
|
3594
|
-
], 12,
|
|
3611
|
+
O("span", oo, a(e.tag.label), 1),
|
|
3612
|
+
O("span", so, a(e.tag.value), 1),
|
|
3613
|
+
e.tag.description ? (s(), C("span", co, a(e.tag.description), 1)) : x("", !0),
|
|
3614
|
+
e.tag.sample === void 0 ? x("", !0) : (s(), C("span", lo, a(b(i)(b(r).mergeTag.picker.sample, { sample: e.tag.sample })), 1))
|
|
3615
|
+
], 42, ao))], 64))), 128))], 8, eo)
|
|
3616
|
+
], 12, Ka)]),
|
|
3595
3617
|
_: 1
|
|
3596
3618
|
}, 8, ["visible"]));
|
|
3597
3619
|
}
|
|
3598
|
-
}),
|
|
3620
|
+
}), po = ["data-logic-keyword"], mo = /* @__PURE__ */ R({
|
|
3599
3621
|
__name: "LogicTagBadge",
|
|
3600
3622
|
props: {
|
|
3601
3623
|
value: {},
|
|
3602
3624
|
syntax: {}
|
|
3603
3625
|
},
|
|
3604
3626
|
setup(e) {
|
|
3605
|
-
let t = e, n = y(() => Re(t.value, t.syntax)), r = y(() =>
|
|
3627
|
+
let t = e, n = y(() => Re(t.value, t.syntax)), r = y(() => De(t.value, t.syntax));
|
|
3606
3628
|
return (e, t) => n.value ? (s(), C("span", {
|
|
3607
3629
|
key: 0,
|
|
3608
3630
|
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",
|
|
@@ -3612,22 +3634,22 @@ var _a = [
|
|
|
3612
3634
|
},
|
|
3613
3635
|
"data-testid": "merge-tag-logic-badge",
|
|
3614
3636
|
"data-logic-keyword": r.value
|
|
3615
|
-
}, a(r.value), 9,
|
|
3637
|
+
}, a(r.value), 9, po)) : x("", !0);
|
|
3616
3638
|
}
|
|
3617
|
-
}),
|
|
3639
|
+
}), ho = ["aria-labelledby", "data-tpl-theme"], go = { 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" }, _o = ["id"], vo = ["aria-label"], yo = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, bo = [
|
|
3618
3640
|
"id",
|
|
3619
3641
|
"placeholder",
|
|
3620
3642
|
"aria-label",
|
|
3621
3643
|
"aria-activedescendant"
|
|
3622
|
-
],
|
|
3644
|
+
], xo = ["aria-label"], So = {
|
|
3623
3645
|
key: 0,
|
|
3624
3646
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3625
3647
|
"data-testid": "logic-picker-empty"
|
|
3626
|
-
},
|
|
3648
|
+
}, Co = {
|
|
3627
3649
|
key: 1,
|
|
3628
3650
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3629
3651
|
"data-testid": "logic-picker-empty"
|
|
3630
|
-
},
|
|
3652
|
+
}, wo = ["data-group-name"], To = [
|
|
3631
3653
|
"id",
|
|
3632
3654
|
"aria-selected",
|
|
3633
3655
|
"data-selected",
|
|
@@ -3635,19 +3657,19 @@ var _a = [
|
|
|
3635
3657
|
"data-logic-kind",
|
|
3636
3658
|
"onMousemove",
|
|
3637
3659
|
"onClick"
|
|
3638
|
-
],
|
|
3660
|
+
], Eo = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, Do = { class: "tpl:text-sm tpl:font-medium" }, Oo = {
|
|
3639
3661
|
key: 0,
|
|
3640
3662
|
class: "tpl:flex tpl:items-center"
|
|
3641
|
-
},
|
|
3663
|
+
}, ko = {
|
|
3642
3664
|
key: 1,
|
|
3643
3665
|
class: "tpl:flex tpl:items-center tpl:gap-1"
|
|
3644
|
-
},
|
|
3666
|
+
}, Ao = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, jo = {
|
|
3645
3667
|
key: 0,
|
|
3646
3668
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3647
|
-
},
|
|
3669
|
+
}, Mo = "tpl-logic-picker-list", No = /* @__PURE__ */ R({
|
|
3648
3670
|
__name: "LogicTagPickerModal",
|
|
3649
3671
|
setup(e) {
|
|
3650
|
-
let n =
|
|
3672
|
+
let n = ot(Ze, "LogicTagPickerModal"), { t: r } = $(), i = L(Ke, Te.liquid), o = L(gt, null), l = L(_t, null), p = S(""), m = Wn(p, 200), _ = S(null), w = y(() => m.value.trim().length > 0), T = S(0);
|
|
3651
3673
|
function E(e) {
|
|
3652
3674
|
let t = m.value.trim().toLowerCase();
|
|
3653
3675
|
return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
|
|
@@ -3730,12 +3752,12 @@ var _a = [
|
|
|
3730
3752
|
}
|
|
3731
3753
|
}
|
|
3732
3754
|
function q(e) {
|
|
3733
|
-
return `${
|
|
3755
|
+
return `${Mo}-opt-${e}`;
|
|
3734
3756
|
}
|
|
3735
3757
|
function J() {
|
|
3736
|
-
return I.value.length === 0 ? void 0 : `${
|
|
3758
|
+
return I.value.length === 0 ? void 0 : `${Mo}-opt-${T.value}`;
|
|
3737
3759
|
}
|
|
3738
|
-
return (e, t) => (s(), F(
|
|
3760
|
+
return (e, t) => (s(), F(Mt, {
|
|
3739
3761
|
visible: b(n).isOpen.value,
|
|
3740
3762
|
onClose: G,
|
|
3741
3763
|
onKeydown: K
|
|
@@ -3743,16 +3765,16 @@ var _a = [
|
|
|
3743
3765
|
default: h(() => [O("div", {
|
|
3744
3766
|
role: "dialog",
|
|
3745
3767
|
"aria-modal": "true",
|
|
3746
|
-
"aria-labelledby": `${
|
|
3768
|
+
"aria-labelledby": `${Mo}-title`,
|
|
3747
3769
|
"data-tpl-theme": b(l),
|
|
3748
3770
|
"data-testid": "logic-picker-modal",
|
|
3749
3771
|
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)]",
|
|
3750
3772
|
style: f(b(o))
|
|
3751
3773
|
}, [
|
|
3752
|
-
O("header",
|
|
3753
|
-
id: `${
|
|
3774
|
+
O("header", go, [O("h2", {
|
|
3775
|
+
id: `${Mo}-title`,
|
|
3754
3776
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
3755
|
-
}, a(b(r).logicTag.picker.title), 9,
|
|
3777
|
+
}, a(b(r).logicTag.picker.title), 9, _o), O("button", {
|
|
3756
3778
|
type: "button",
|
|
3757
3779
|
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)]",
|
|
3758
3780
|
"aria-label": b(r).logicTag.picker.close,
|
|
@@ -3761,13 +3783,13 @@ var _a = [
|
|
|
3761
3783
|
}, [v(b(He), {
|
|
3762
3784
|
size: 16,
|
|
3763
3785
|
"stroke-width": 2
|
|
3764
|
-
})], 8,
|
|
3765
|
-
O("div",
|
|
3786
|
+
})], 8, vo)]),
|
|
3787
|
+
O("div", yo, [v(b(Zn), {
|
|
3766
3788
|
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)]",
|
|
3767
3789
|
size: 14,
|
|
3768
3790
|
"stroke-width": 2
|
|
3769
3791
|
}), g(O("input", {
|
|
3770
|
-
id: `${
|
|
3792
|
+
id: `${Mo}-search`,
|
|
3771
3793
|
ref_key: "searchInputRef",
|
|
3772
3794
|
ref: _,
|
|
3773
3795
|
"onUpdate:modelValue": t[0] ||= (e) => p.value = e,
|
|
@@ -3775,25 +3797,25 @@ var _a = [
|
|
|
3775
3797
|
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)]",
|
|
3776
3798
|
placeholder: b(r).logicTag.picker.searchPlaceholder,
|
|
3777
3799
|
"aria-label": b(r).logicTag.picker.searchAriaLabel,
|
|
3778
|
-
"aria-controls":
|
|
3800
|
+
"aria-controls": Mo,
|
|
3779
3801
|
"aria-activedescendant": J(),
|
|
3780
3802
|
"data-testid": "logic-picker-search",
|
|
3781
3803
|
onKeydown: t[1] ||= U(B(() => {}, ["prevent"]), ["enter"])
|
|
3782
|
-
}, null, 40,
|
|
3804
|
+
}, null, 40, bo), [[z, p.value]])]),
|
|
3783
3805
|
O("div", {
|
|
3784
|
-
id:
|
|
3806
|
+
id: Mo,
|
|
3785
3807
|
ref_key: "listRef",
|
|
3786
3808
|
ref: H,
|
|
3787
3809
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
3788
3810
|
role: "listbox",
|
|
3789
3811
|
"aria-label": b(r).logicTag.picker.title,
|
|
3790
3812
|
"data-testid": "logic-picker-list"
|
|
3791
|
-
}, [R.value ? (s(), C("div",
|
|
3813
|
+
}, [R.value ? (s(), C("div", So, a(b(r).logicTag.picker.empty), 1)) : V.value ? (s(), C("div", Co, a(b(r).logicTag.picker.noResults), 1)) : (s(!0), C(M, { key: 2 }, d(P.value.rows, (e, n) => (s(), C(M, { key: n }, [e.kind === "header" ? (s(), C("div", {
|
|
3792
3814
|
key: 0,
|
|
3793
3815
|
class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
|
|
3794
3816
|
"data-testid": "logic-picker-header",
|
|
3795
3817
|
"data-group-name": e.label
|
|
3796
|
-
}, a(e.label), 9,
|
|
3818
|
+
}, a(e.label), 9, wo)) : (s(), C("button", {
|
|
3797
3819
|
key: 1,
|
|
3798
3820
|
id: q(e.index),
|
|
3799
3821
|
type: "button",
|
|
@@ -3807,32 +3829,32 @@ var _a = [
|
|
|
3807
3829
|
onMousemove: (t) => T.value = e.index,
|
|
3808
3830
|
onClick: (t) => W(e.kind === "tag" ? e.tag : e.pair)
|
|
3809
3831
|
}, [
|
|
3810
|
-
O("span",
|
|
3832
|
+
O("span", Eo, [O("span", Do, a(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (s(), C("span", Oo, [v(mo, {
|
|
3811
3833
|
value: e.tag.value,
|
|
3812
3834
|
syntax: b(i)
|
|
3813
|
-
}, null, 8, ["value", "syntax"])])) : (s(), C("span",
|
|
3814
|
-
v(
|
|
3835
|
+
}, null, 8, ["value", "syntax"])])) : (s(), C("span", ko, [
|
|
3836
|
+
v(mo, {
|
|
3815
3837
|
value: e.pair.before,
|
|
3816
3838
|
syntax: b(i)
|
|
3817
3839
|
}, null, 8, ["value", "syntax"]),
|
|
3818
3840
|
t[2] ||= O("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
|
|
3819
|
-
v(
|
|
3841
|
+
v(mo, {
|
|
3820
3842
|
value: e.pair.after,
|
|
3821
3843
|
syntax: b(i)
|
|
3822
3844
|
}, null, 8, ["value", "syntax"])
|
|
3823
3845
|
]))]),
|
|
3824
|
-
O("span",
|
|
3825
|
-
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), C("span",
|
|
3826
|
-
], 42,
|
|
3827
|
-
], 12,
|
|
3846
|
+
O("span", Ao, a(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
|
|
3847
|
+
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), C("span", jo, a(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : x("", !0)
|
|
3848
|
+
], 42, To))], 64))), 128))], 8, xo)
|
|
3849
|
+
], 12, ho)]),
|
|
3828
3850
|
_: 1
|
|
3829
3851
|
}, 8, ["visible"]));
|
|
3830
3852
|
}
|
|
3831
|
-
}),
|
|
3853
|
+
}), Po = ["data-tpl-theme"], Fo = { class: "tpl:absolute tpl:inset-0 tpl:overflow-hidden" }, Io = { class: "tpl-preview-overlay tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Lo = { 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" }, Ro = {
|
|
3832
3854
|
key: 0,
|
|
3833
3855
|
"data-testid": "merge-tag-mode-toggle-anchor",
|
|
3834
3856
|
class: "tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-[var(--tpl-shadow-md)]"
|
|
3835
|
-
},
|
|
3857
|
+
}, zo = { class: "tpl-main tpl-canvas-pane tpl:flex tpl:py-8" }, Bo = ["aria-label"], Vo = /*#__PURE__*/ ze(/* @__PURE__ */ R({
|
|
3836
3858
|
__name: "Editor",
|
|
3837
3859
|
props: {
|
|
3838
3860
|
config: {},
|
|
@@ -3847,7 +3869,7 @@ var _a = [
|
|
|
3847
3869
|
},
|
|
3848
3870
|
setup(n, { expose: r }) {
|
|
3849
3871
|
let i = n;
|
|
3850
|
-
l(
|
|
3872
|
+
l(Ge, {
|
|
3851
3873
|
renderHtml: () => i.renderHtml?.() ?? Promise.reject(/* @__PURE__ */ Error("HTML rendering is unavailable")),
|
|
3852
3874
|
canRenderHtml: () => i.canRenderHtml?.() ?? !1,
|
|
3853
3875
|
cloud: !!i.cloud,
|
|
@@ -3860,20 +3882,20 @@ var _a = [
|
|
|
3860
3882
|
get syntax() {
|
|
3861
3883
|
return X.mergeTagSyntax;
|
|
3862
3884
|
}
|
|
3863
|
-
}, u = i.config.templates ?
|
|
3864
|
-
i.config.collaboration && !u &&
|
|
3865
|
-
let d = i.config.collaboration && u ?
|
|
3885
|
+
}, u = i.config.templates ? _n(i.config.templates, o) : void 0;
|
|
3886
|
+
i.config.collaboration && !u && On.warn("config.collaboration needs config.templates: collaboration runs on a loaded template, and only a templates provider loads one. Collaboration is off.");
|
|
3887
|
+
let d = i.config.collaboration && u ? Ur({
|
|
3866
3888
|
provider: i.config.collaboration,
|
|
3867
3889
|
loadTemplate: (e) => u.load(e),
|
|
3868
3890
|
user: i.config.user,
|
|
3869
3891
|
mergeTags: o,
|
|
3870
3892
|
onRemoteChange: i.config.onRemoteChange,
|
|
3871
3893
|
onError: i.config.onError
|
|
3872
|
-
}) : null, p = u && d ?
|
|
3894
|
+
}) : null, p = u && d ? bi(u, d.core, () => {
|
|
3873
3895
|
let e = _.state.template;
|
|
3874
3896
|
return e ? {
|
|
3875
3897
|
...N(e),
|
|
3876
|
-
content:
|
|
3898
|
+
content: we(N(_.content.value))
|
|
3877
3899
|
} : null;
|
|
3878
3900
|
}) : u, m = S(0);
|
|
3879
3901
|
l(Qe, i.config.localization);
|
|
@@ -3885,39 +3907,39 @@ var _a = [
|
|
|
3885
3907
|
},
|
|
3886
3908
|
content: i.config.content,
|
|
3887
3909
|
defaultFontFamily: i.config.fonts?.defaultFont,
|
|
3888
|
-
templateDefaults:
|
|
3910
|
+
templateDefaults: er(i.config),
|
|
3889
3911
|
templates: p,
|
|
3890
3912
|
onError: i.config.onError,
|
|
3891
3913
|
lockedBlocks: d?.locks,
|
|
3892
3914
|
lockLocale: d?.core.lockLocale,
|
|
3893
3915
|
lockSessionId: d?.core.sessionId
|
|
3894
3916
|
}), T = Ue(_);
|
|
3895
|
-
l(
|
|
3896
|
-
let D = i.cloud ? i.cloud.attach({ editor: _ }) : null, A = p ?
|
|
3917
|
+
l(ft, T.content), _.setCustomBlockDefinitions(i.config.customBlocks ?? []), d && t(_.activeLocale, (e) => d.core.setLockLocale(e), { flush: "sync" }), d?.attach(_);
|
|
3918
|
+
let D = i.cloud ? i.cloud.attach({ editor: _ }) : null, A = p ? ui({
|
|
3897
3919
|
provider: p,
|
|
3898
3920
|
editor: _,
|
|
3899
3921
|
guardUnsavedChanges: i.config.templates?.unsavedChangesGuard,
|
|
3900
3922
|
getSaveGate: i.cloud ? () => i.cloud.getSaveGate() : void 0
|
|
3901
3923
|
}) : null;
|
|
3902
3924
|
i.config.onDirtyChange && t(() => _.state.isDirty, (e) => i.config.onDirtyChange(e));
|
|
3903
|
-
let j = S(null), M = i.config.savedBlocks ?
|
|
3925
|
+
let j = S(null), M = i.config.savedBlocks ? ci({
|
|
3904
3926
|
provider: i.config.savedBlocks,
|
|
3905
3927
|
editor: _,
|
|
3906
3928
|
onError: i.config.onError,
|
|
3907
3929
|
isAvailable: i.cloud ? () => i.cloud.isSavedBlocksAvailable() : void 0
|
|
3908
|
-
}) : null, P = I(() => import("./SavedBlocksPanels-
|
|
3930
|
+
}) : null, P = I(() => import("./SavedBlocksPanels-BuzEwYfp.js")), L = i.config.media || i.config.onRequestMedia ? oi({
|
|
3909
3931
|
provider: i.config.media,
|
|
3910
3932
|
onRequestMedia: i.config.onRequestMedia,
|
|
3911
3933
|
getTemplateId: () => _.state.template?.id,
|
|
3912
3934
|
onError: i.config.onError
|
|
3913
|
-
}) : null, R = I(() => import("./MediaPanels-
|
|
3935
|
+
}) : null, R = I(() => import("./MediaPanels-BiUxsTMM.js")), z = i.config.testEmail ? hi({
|
|
3914
3936
|
provider: i.config.testEmail,
|
|
3915
3937
|
getContent: () => _.content.value,
|
|
3916
3938
|
renderMjml: i.renderMjml,
|
|
3917
3939
|
usesLocalRenderer: i.usesLocalRenderer,
|
|
3918
3940
|
onError: i.config.onError,
|
|
3919
3941
|
isAvailable: i.cloud ? () => i.cloud.isTestEmailAvailable() : void 0
|
|
3920
|
-
}) : null, V = I(() => import("./TestEmailPanel-
|
|
3942
|
+
}) : null, V = I(() => import("./TestEmailPanel-DbeZjj0u.js")), U = i.config.comments ? Wr({
|
|
3921
3943
|
provider: i.config.comments,
|
|
3922
3944
|
editor: _,
|
|
3923
3945
|
user: i.config.user,
|
|
@@ -3925,7 +3947,7 @@ var _a = [
|
|
|
3925
3947
|
onError: i.config.onError,
|
|
3926
3948
|
isAvailable: i.cloud ? () => i.cloud.isCommentsAvailable() : void 0,
|
|
3927
3949
|
isBlockSaved: i.cloud ? (e) => i.cloud.isBlockSaved(e) : void 0
|
|
3928
|
-
}) : null, G = I(() => import("./CommentsPanel-
|
|
3950
|
+
}) : null, G = I(() => import("./CommentsPanel-t3w16YUl.js")), ee = I(() => import("./AiPanels-D_CdHqFZ.js")), K = i.config.ai ? $r({
|
|
3929
3951
|
provider: i.config.ai,
|
|
3930
3952
|
editor: _,
|
|
3931
3953
|
localization: i.config.localization ?? { locales: [] },
|
|
@@ -3936,16 +3958,16 @@ var _a = [
|
|
|
3936
3958
|
collaboration: d,
|
|
3937
3959
|
history: () => X.history,
|
|
3938
3960
|
reload: A ? (e, t) => A.load(e, t) : null,
|
|
3939
|
-
altMaxLength: () =>
|
|
3940
|
-
mergeTags: () =>
|
|
3941
|
-
normalize: (e, t) =>
|
|
3961
|
+
altMaxLength: () => Sn(Vt(i.config)),
|
|
3962
|
+
mergeTags: () => ri(X.mergeTags.value, X.mergeTagSyntax),
|
|
3963
|
+
normalize: (e, t) => hn(e, t, o),
|
|
3942
3964
|
commentsOpen: U?.isOpen ?? null,
|
|
3943
3965
|
onError: i.config.onError
|
|
3944
3966
|
}) : null;
|
|
3945
|
-
K && l(
|
|
3967
|
+
K && l(ht, K);
|
|
3946
3968
|
let q = We(_, i.config.customBlocks ?? []);
|
|
3947
|
-
l(
|
|
3948
|
-
let J = i.config.translation ?
|
|
3969
|
+
l(yt, q);
|
|
3970
|
+
let J = i.config.translation ? Rr({
|
|
3949
3971
|
provider: i.config.translation,
|
|
3950
3972
|
editor: _,
|
|
3951
3973
|
localization: i.config.localization,
|
|
@@ -3955,14 +3977,14 @@ var _a = [
|
|
|
3955
3977
|
syntax: () => X.mergeTagSyntax,
|
|
3956
3978
|
coverage: () => q.value
|
|
3957
3979
|
}) : null;
|
|
3958
|
-
J && l(
|
|
3980
|
+
J && l(dt, J);
|
|
3959
3981
|
let Y = S(null);
|
|
3960
3982
|
t([() => _.state.template?.id ?? null, _.loadVersion], () => {
|
|
3961
3983
|
Y.value = null;
|
|
3962
|
-
}, { flush: "sync" }), t(() =>
|
|
3984
|
+
}, { flush: "sync" }), t(() => Z(_.content.value), (e) => {
|
|
3963
3985
|
Y.value && Y.value.language !== e && (Y.value = null);
|
|
3964
3986
|
}, { flush: "sync" });
|
|
3965
|
-
let ne =
|
|
3987
|
+
let ne = Mr({
|
|
3966
3988
|
editor: _,
|
|
3967
3989
|
history: () => X.history,
|
|
3968
3990
|
collaboration: d
|
|
@@ -3970,26 +3992,26 @@ var _a = [
|
|
|
3970
3992
|
l(qe, { setDefaultLocale(e) {
|
|
3971
3993
|
let t = {
|
|
3972
3994
|
language: e,
|
|
3973
|
-
old:
|
|
3974
|
-
count:
|
|
3995
|
+
old: Z(_.content.value),
|
|
3996
|
+
count: Ne(_.content.value, e, i.config.customBlocks).length
|
|
3975
3997
|
}, n = ne.setDefaultLocale(e);
|
|
3976
3998
|
return n.applied && (Y.value = t), n;
|
|
3977
3999
|
} });
|
|
3978
|
-
let re = I(() => import("./LocaleNotices-
|
|
3979
|
-
|
|
3980
|
-
let
|
|
4000
|
+
let re = I(() => import("./LocaleNotices-D6zk-QCL.js")), ie = I(() => import("./CollaborationNotices-DkYX-ose.js")), ae = I(() => import("./CloudPanels-Cb54vtYC.js")), oe = I(() => import("./CloudHeaderExtras-CJsXi4Ku.js")), se = I(() => import("./VersionHistoryPanels-BNONrE-8.js")), le = _i(i.config.templates?.autoSave, !1), ue = le && A !== null;
|
|
4001
|
+
le && A !== null && !A.canSave.value && On.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."), i.config.changeDebounce !== void 0 && A !== null && i.config.templates?.autoSave === void 0 && !i.config.onChange && On.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.");
|
|
4002
|
+
let de = i.config.onChange || ue ? {
|
|
3981
4003
|
onChange: () => {
|
|
3982
|
-
i.config.onChange?.(JSON.parse(JSON.stringify(_.state.content))),
|
|
4004
|
+
i.config.onChange?.(JSON.parse(JSON.stringify(_.state.content))), ue && A.requestAutoSave();
|
|
3983
4005
|
},
|
|
3984
4006
|
...i.config.changeDebounce === void 0 ? {} : { debounce: i.config.changeDebounce }
|
|
3985
|
-
} : null,
|
|
4007
|
+
} : null, fe = {
|
|
3986
4008
|
...M ? { savedBlocks: M.capability } : {},
|
|
3987
4009
|
...A ? { templates: A.capability } : {},
|
|
3988
4010
|
...z ? { testEmail: z.capability } : {},
|
|
3989
4011
|
...U ? { comments: U.capability } : {},
|
|
3990
4012
|
...d ? { collaboration: d.capability } : {},
|
|
3991
4013
|
...K ? { ai: K.capability } : {}
|
|
3992
|
-
}, X =
|
|
4014
|
+
}, X = rn({
|
|
3993
4015
|
editor: _,
|
|
3994
4016
|
containerEl: j,
|
|
3995
4017
|
config: {
|
|
@@ -4011,25 +4033,25 @@ var _a = [
|
|
|
4011
4033
|
canDropMedia: L?.canDrop ?? null,
|
|
4012
4034
|
resolvePreview: i.config.resolvePreview,
|
|
4013
4035
|
resolveImageUrl: i.config.resolveImageUrl,
|
|
4014
|
-
lint:
|
|
4036
|
+
lint: Vt(i.config),
|
|
4015
4037
|
locale: i.config.locale
|
|
4016
4038
|
},
|
|
4017
4039
|
translations: i.translations,
|
|
4018
4040
|
fontsManager: i.fontsManager,
|
|
4019
|
-
autoSaveOptions:
|
|
4020
|
-
capabilities:
|
|
4041
|
+
autoSaveOptions: de,
|
|
4042
|
+
capabilities: fe,
|
|
4021
4043
|
editorRoot: i.shadowRoot,
|
|
4022
4044
|
history: d?.history
|
|
4023
|
-
}),
|
|
4045
|
+
}), pe = S("content");
|
|
4024
4046
|
t(() => _.state.template?.id, () => {
|
|
4025
|
-
_.selectedBlock.value && (
|
|
4047
|
+
_.selectedBlock.value && (pe.value = "content");
|
|
4026
4048
|
});
|
|
4027
|
-
let
|
|
4049
|
+
let me = i.cloud && D ? i.cloud.ready({
|
|
4028
4050
|
core: X,
|
|
4029
|
-
capabilities:
|
|
4030
|
-
}) : null, he = i.config.versionHistory ?
|
|
4051
|
+
capabilities: fe
|
|
4052
|
+
}) : null, he = i.config.versionHistory ? gi({
|
|
4031
4053
|
provider: i.config.versionHistory,
|
|
4032
|
-
editor:
|
|
4054
|
+
editor: mn(_, o),
|
|
4033
4055
|
history: X.history,
|
|
4034
4056
|
conditionPreview: X.conditionPreview,
|
|
4035
4057
|
autoSave: X.autoSave,
|
|
@@ -4045,29 +4067,29 @@ var _a = [
|
|
|
4045
4067
|
} : null,
|
|
4046
4068
|
onError: i.config.onError
|
|
4047
4069
|
}) : null;
|
|
4048
|
-
he && (
|
|
4070
|
+
he && (fe.versionHistory = he.capability);
|
|
4049
4071
|
let ge = y(() => U?.isOpen.value === !0 || K !== null && K.panel.value !== null || D?.panelState.rightPanelOpen.value === !0), _e = y(() => _.state.previewMode ? "tpl:left-0 tpl:right-0" : ge.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"), ve = S(null), ye = S(0), be = y(() => ({ top: `calc(3.5 * var(--tpl-base-size) + ${ye.value}px)` })), xe;
|
|
4050
4072
|
e(() => {
|
|
4051
4073
|
ye.value = ve.value?.offsetHeight ?? 0, ve.value && typeof ResizeObserver < "u" && (xe = new ResizeObserver(([e]) => {
|
|
4052
4074
|
e && (ye.value = e.borderBoxSize?.[0]?.blockSize ?? e.contentRect.height);
|
|
4053
4075
|
}), xe.observe(ve.value));
|
|
4054
4076
|
}), E(() => xe?.disconnect());
|
|
4055
|
-
let { showNotice: Se } =
|
|
4077
|
+
let { showNotice: Se } = ln(() => i.config.smallScreenNotice);
|
|
4056
4078
|
e(async () => {
|
|
4057
4079
|
await i.fontsManager.loadCustomFonts();
|
|
4058
4080
|
}), E(() => {
|
|
4059
4081
|
i.fontsManager.cleanupFontLinks(), K?.destroy(), i.cloud?.destroy(), X.destroy();
|
|
4060
4082
|
});
|
|
4061
|
-
let Ce = A ?? _,
|
|
4083
|
+
let Ce = A ?? _, Te = En(X.editorRoot);
|
|
4062
4084
|
return r({
|
|
4063
|
-
getLocale: () => _.activeLocale.value ??
|
|
4085
|
+
getLocale: () => _.activeLocale.value ?? Z(_.content.value),
|
|
4064
4086
|
setLocale: (e) => _.setActiveLocale(e),
|
|
4065
4087
|
getContent: () => _.content.value,
|
|
4066
4088
|
setContent: (e) => _.setContent(e),
|
|
4067
4089
|
insertBlock: (e) => {
|
|
4068
|
-
if (_.state.previewMode) return
|
|
4069
|
-
let t =
|
|
4070
|
-
return
|
|
4090
|
+
if (_.state.previewMode) return On.warn("insertBlock() does nothing in preview mode."), null;
|
|
4091
|
+
let t = ce(e);
|
|
4092
|
+
return yi(_, t) ? (Te(t.id), t.id) : null;
|
|
4071
4093
|
},
|
|
4072
4094
|
setTheme: (e) => _.setUiTheme(e),
|
|
4073
4095
|
setMergeTags: X.setMergeTags,
|
|
@@ -4086,9 +4108,9 @@ var _a = [
|
|
|
4086
4108
|
onDragover: t[8] ||= B(() => {}, ["prevent"]),
|
|
4087
4109
|
onDrop: t[9] ||= B(() => {}, ["prevent"])
|
|
4088
4110
|
}, [
|
|
4089
|
-
v(
|
|
4090
|
-
O("div",
|
|
4091
|
-
v(
|
|
4111
|
+
v(Pi),
|
|
4112
|
+
O("div", Fo, [
|
|
4113
|
+
v(Ga, {
|
|
4092
4114
|
editor: b(_),
|
|
4093
4115
|
localization: i.config.localization,
|
|
4094
4116
|
core: b(X),
|
|
@@ -4125,12 +4147,12 @@ var _a = [
|
|
|
4125
4147
|
"collaboration",
|
|
4126
4148
|
"ai"
|
|
4127
4149
|
]),
|
|
4128
|
-
g(v(
|
|
4150
|
+
g(v(Wi, { style: f(be.value) }, null, 8, ["style"]), [[H, !b(_).state.previewMode]]),
|
|
4129
4151
|
O("div", {
|
|
4130
4152
|
class: c(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]", _e.value]),
|
|
4131
|
-
style: f(
|
|
4132
|
-
}, [O("div",
|
|
4133
|
-
default: h(() => [b(_).state.previewMode && !b(X).previewResolution.supersedesSamples.value ? (s(), C("div",
|
|
4153
|
+
style: f(be.value)
|
|
4154
|
+
}, [O("div", Io, [O("div", Lo, [v(W, { name: "tpl-preview-pill" }, {
|
|
4155
|
+
default: h(() => [b(_).state.previewMode && !b(X).previewResolution.supersedesSamples.value ? (s(), C("div", Ro, [v(Vn, {
|
|
4134
4156
|
"sample-mode": b(X).mergeTagSampleMode.value,
|
|
4135
4157
|
onChange: t[0] ||= (e) => b(X).mergeTagSampleMode.value = e
|
|
4136
4158
|
}, null, 8, ["sample-mode"])])) : x("", !0)]),
|
|
@@ -4139,15 +4161,15 @@ var _a = [
|
|
|
4139
4161
|
default: h(() => [b(X).conditionPreview.hasHiddenBlocks.value && b(X).appliesConditionFilter.value ? (s(), C("button", {
|
|
4140
4162
|
key: 0,
|
|
4141
4163
|
type: "button",
|
|
4142
|
-
class: c([b(
|
|
4164
|
+
class: c([b(Et), "tpl:shadow-[var(--tpl-shadow-md)]"]),
|
|
4143
4165
|
"data-testid": "restore-hidden-blocks",
|
|
4144
4166
|
onClick: t[1] ||= (e) => b(X).conditionPreview.reset()
|
|
4145
|
-
}, [v(b(
|
|
4167
|
+
}, [v(b(kn), {
|
|
4146
4168
|
size: 16,
|
|
4147
4169
|
"stroke-width": 2
|
|
4148
4170
|
}), w(" " + a(b(X).t.blockSettings.restoreHiddenBlocks), 1)], 2)) : x("", !0)]),
|
|
4149
4171
|
_: 1
|
|
4150
|
-
})])]), O("main",
|
|
4172
|
+
})])]), O("main", zo, [v(Ni, {
|
|
4151
4173
|
viewport: b(_).state.viewport,
|
|
4152
4174
|
content: b(X).previewResolution.content.value,
|
|
4153
4175
|
"selected-block-id": b(_).state.selectedBlockId,
|
|
@@ -4162,7 +4184,7 @@ var _a = [
|
|
|
4162
4184
|
"preview-mode",
|
|
4163
4185
|
"onSelectBlock"
|
|
4164
4186
|
])])], 6),
|
|
4165
|
-
n.config.branding === !1 ? x("", !0) : (s(), F(
|
|
4187
|
+
n.config.branding === !1 ? x("", !0) : (s(), F(ma, {
|
|
4166
4188
|
key: 0,
|
|
4167
4189
|
"position-class": [_e.value]
|
|
4168
4190
|
}, null, 8, ["position-class"])),
|
|
@@ -4172,11 +4194,11 @@ var _a = [
|
|
|
4172
4194
|
"aria-live": "polite",
|
|
4173
4195
|
"aria-atomic": "true",
|
|
4174
4196
|
"aria-label": b(X).t.landmarks.reorderAnnouncements
|
|
4175
|
-
}, a(b(X).keyboardReorder.announcement.value), 9,
|
|
4176
|
-
g(v(
|
|
4177
|
-
tab:
|
|
4178
|
-
"onUpdate:tab": t[2] ||= (e) =>
|
|
4179
|
-
style: f(
|
|
4197
|
+
}, a(b(X).keyboardReorder.announcement.value), 9, Bo),
|
|
4198
|
+
g(v(sa, {
|
|
4199
|
+
tab: pe.value,
|
|
4200
|
+
"onUpdate:tab": t[2] ||= (e) => pe.value = e,
|
|
4201
|
+
style: f(be.value),
|
|
4180
4202
|
"selected-block": b(_).selectedBlock.value ? b(T).displayBlock(b(_).selectedBlock.value) : null,
|
|
4181
4203
|
settings: b(T).settings.value,
|
|
4182
4204
|
"shifted-left": ge.value,
|
|
@@ -4202,7 +4224,7 @@ var _a = [
|
|
|
4202
4224
|
}, [b(he)?.isAvailable.value ? (s(), F(b(se), {
|
|
4203
4225
|
key: 0,
|
|
4204
4226
|
feature: b(he)
|
|
4205
|
-
}, null, 8, ["feature"])) : x("", !0), n.config.localization ? (s(), F(
|
|
4227
|
+
}, null, 8, ["feature"])) : x("", !0), n.config.localization ? (s(), F(jr, {
|
|
4206
4228
|
key: 1,
|
|
4207
4229
|
editor: b(_),
|
|
4208
4230
|
locales: n.config.localization.locales,
|
|
@@ -4219,8 +4241,8 @@ var _a = [
|
|
|
4219
4241
|
ref: (e) => b(X).popoverRoot.value = e,
|
|
4220
4242
|
class: "tpl-popover-root"
|
|
4221
4243
|
}, null, 512),
|
|
4222
|
-
v(
|
|
4223
|
-
v(
|
|
4244
|
+
v(fo),
|
|
4245
|
+
v(No),
|
|
4224
4246
|
b(M)?.isAvailable.value ? (s(), F(b(P), {
|
|
4225
4247
|
key: 0,
|
|
4226
4248
|
feature: b(M)
|
|
@@ -4251,7 +4273,7 @@ var _a = [
|
|
|
4251
4273
|
key: 4,
|
|
4252
4274
|
feature: b(K)
|
|
4253
4275
|
}, null, 8, ["feature"])) : x("", !0),
|
|
4254
|
-
b(d) || Y.value ? (s(), F(
|
|
4276
|
+
b(d) || Y.value ? (s(), F(ir, { key: 5 }, {
|
|
4255
4277
|
default: h(() => [b(d) ? (s(), F(b(ie), {
|
|
4256
4278
|
key: 0,
|
|
4257
4279
|
feature: b(d)
|
|
@@ -4262,13 +4284,13 @@ var _a = [
|
|
|
4262
4284
|
}, null, 8, ["notice"])) : x("", !0)]),
|
|
4263
4285
|
_: 1
|
|
4264
4286
|
})) : x("", !0),
|
|
4265
|
-
n.cloud && b(D) && b(
|
|
4287
|
+
n.cloud && b(D) && b(me) ? (s(), F(b(ae), {
|
|
4266
4288
|
key: 6,
|
|
4267
4289
|
editor: b(_),
|
|
4268
4290
|
core: b(X),
|
|
4269
4291
|
runtime: n.cloud,
|
|
4270
4292
|
cloud: b(D),
|
|
4271
|
-
ready: b(
|
|
4293
|
+
ready: b(me)
|
|
4272
4294
|
}, null, 8, [
|
|
4273
4295
|
"editor",
|
|
4274
4296
|
"core",
|
|
@@ -4276,23 +4298,23 @@ var _a = [
|
|
|
4276
4298
|
"cloud",
|
|
4277
4299
|
"ready"
|
|
4278
4300
|
])) : x("", !0),
|
|
4279
|
-
b(Se) ? (s(), F(
|
|
4280
|
-
], 46,
|
|
4301
|
+
b(Se) ? (s(), F(fa, { key: 7 })) : x("", !0)
|
|
4302
|
+
], 46, Po));
|
|
4281
4303
|
}
|
|
4282
|
-
}), [["__scopeId", "data-v-
|
|
4283
|
-
function
|
|
4284
|
-
return e.replace(
|
|
4304
|
+
}), [["__scopeId", "data-v-d30a2d38"]]), Ho = /@import\s*(?:url\(\s*(?:"[^"]*"|'[^']*'|[^)]*)\s*\)|"[^"]*"|'[^']*')[^;]*;/g;
|
|
4305
|
+
function Uo(e) {
|
|
4306
|
+
return e.replace(Ho, "");
|
|
4285
4307
|
}
|
|
4286
4308
|
// src/utils/renderProvider.ts
|
|
4287
|
-
function
|
|
4309
|
+
function Wo(e) {
|
|
4288
4310
|
return {
|
|
4289
4311
|
customFonts: e.customFonts.value,
|
|
4290
4312
|
defaultFallback: e.defaultFallback.value
|
|
4291
4313
|
};
|
|
4292
4314
|
}
|
|
4293
|
-
async function
|
|
4294
|
-
let n =
|
|
4295
|
-
return a || (
|
|
4315
|
+
async function Go(e, t) {
|
|
4316
|
+
let n = we(e.getContent()), r = t?.locale ?? Z(n), i = t?.locale !== void 0 || n.settings?.locales?.length ? Fe(n, r) : n, a = e.getLayout?.(), o = a ? xe(Fe(a, r, { missing: "default" }), i) : i;
|
|
4317
|
+
return a || (X(o), de(o)), await Qn(o, {
|
|
4296
4318
|
renderCustomBlock: e.renderCustomBlock,
|
|
4297
4319
|
getCustomBlockStylesheet: e.getCustomBlockStylesheet
|
|
4298
4320
|
}), {
|
|
@@ -4300,7 +4322,7 @@ async function Wo(e, t) {
|
|
|
4300
4322
|
fonts: e.getFonts()
|
|
4301
4323
|
};
|
|
4302
4324
|
}
|
|
4303
|
-
function
|
|
4325
|
+
function Ko(e) {
|
|
4304
4326
|
async function t(t) {
|
|
4305
4327
|
let n = e.provider, r = n?.toMjml?.bind(n);
|
|
4306
4328
|
return r ? r(await e.buildPayload(t)) : e.renderLocalMjml(t);
|
|
@@ -4326,69 +4348,69 @@ function Go(e) {
|
|
|
4326
4348
|
};
|
|
4327
4349
|
}
|
|
4328
4350
|
// \0virtual:editor-css
|
|
4329
|
-
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-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;-webkit-user-select:none;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{-webkit-user-select:none;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;-webkit-user-select:none;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;-webkit-user-select:none;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;
|
|
4330
|
-
function
|
|
4331
|
-
if (
|
|
4351
|
+
var qo = "@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;-webkit-user-select:none;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{-webkit-user-select:none;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;-webkit-user-select:none;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;-webkit-user-select:none;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*/", Jo = null;
|
|
4352
|
+
function Yo() {
|
|
4353
|
+
if (Jo === null) {
|
|
4332
4354
|
let e = new CSSStyleSheet();
|
|
4333
|
-
e.replaceSync(
|
|
4355
|
+
e.replaceSync(Uo(qo)), Jo = e;
|
|
4334
4356
|
}
|
|
4335
|
-
return
|
|
4357
|
+
return Jo;
|
|
4336
4358
|
}
|
|
4337
|
-
function
|
|
4359
|
+
function Xo(e) {
|
|
4338
4360
|
return () => {};
|
|
4339
4361
|
}
|
|
4340
|
-
function
|
|
4362
|
+
function Zo(e, t) {
|
|
4341
4363
|
if (!t) return {
|
|
4342
4364
|
target: e,
|
|
4343
4365
|
shadowRoot: null,
|
|
4344
4366
|
cleanup: () => {}
|
|
4345
4367
|
};
|
|
4346
4368
|
let n = e.shadowRoot ?? e.attachShadow({ mode: "open" });
|
|
4347
|
-
for (n.adoptedStyleSheets = [
|
|
4369
|
+
for (n.adoptedStyleSheets = [Yo()]; n.firstChild;) n.removeChild(n.firstChild);
|
|
4348
4370
|
let r = document.createElement("div");
|
|
4349
4371
|
return r.className = "tpl-editor-host", r.style.cssText = "display:block;height:100%;width:100%;", n.appendChild(r), {
|
|
4350
4372
|
target: r,
|
|
4351
4373
|
shadowRoot: n,
|
|
4352
|
-
cleanup:
|
|
4374
|
+
cleanup: Xo(n)
|
|
4353
4375
|
};
|
|
4354
4376
|
}
|
|
4355
|
-
var
|
|
4356
|
-
function
|
|
4377
|
+
var Qo = /* @__PURE__ */ new Map(), $o = null, es = 0, ts = /* @__PURE__ */ new WeakMap();
|
|
4378
|
+
function ns(e) {
|
|
4357
4379
|
let t = typeof e == "string" ? document.querySelector(e) : e;
|
|
4358
4380
|
if (!t) throw Error(`[Templatical] Container element not found: ${e}`);
|
|
4359
|
-
let n =
|
|
4360
|
-
return
|
|
4381
|
+
let n = ++es;
|
|
4382
|
+
return ts.set(t, n), {
|
|
4361
4383
|
container: t,
|
|
4362
4384
|
token: n
|
|
4363
4385
|
};
|
|
4364
4386
|
}
|
|
4365
|
-
function
|
|
4366
|
-
let n =
|
|
4367
|
-
n && (t && n.app !== t || (n.cleanup(), n.app.unmount(),
|
|
4387
|
+
function rs(e, t) {
|
|
4388
|
+
let n = Qo.get(e);
|
|
4389
|
+
n && (t && n.app !== t || (n.cleanup(), n.app.unmount(), Qo.delete(e), $o === e && ($o = null)));
|
|
4368
4390
|
}
|
|
4369
|
-
function
|
|
4370
|
-
e.layout && (e.layout =
|
|
4391
|
+
function is(e) {
|
|
4392
|
+
e.layout && (e.layout = gn(e.layout, e.mergeTags), Ie(e.layout)), e.content && (e.content = gn(e.content, e.mergeTags), X(e.content), de(e.content));
|
|
4371
4393
|
}
|
|
4372
|
-
async function
|
|
4394
|
+
async function as(e) {
|
|
4373
4395
|
let t = { ...e };
|
|
4374
|
-
if (t.translation !== void 0 && (t.translation === null || typeof t.translation != "object" || typeof t.translation.translate != "function")) throw new
|
|
4375
|
-
for (let e of t.localization?.locales ?? []) if (!
|
|
4396
|
+
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.");
|
|
4397
|
+
for (let e of t.localization?.locales ?? []) if (!Ee(e)) throw new Q(`Invalid localization locale "${e}".`);
|
|
4376
4398
|
let n = t.localization?.doNotTranslate;
|
|
4377
|
-
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
|
|
4378
|
-
return
|
|
4399
|
+
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.");
|
|
4400
|
+
return is(t), os(t, ns(t.container));
|
|
4379
4401
|
}
|
|
4380
|
-
async function
|
|
4381
|
-
e.locale !== void 0 && !
|
|
4382
|
-
let i = await
|
|
4383
|
-
if (
|
|
4402
|
+
async function os(e, { container: t, token: n }, r) {
|
|
4403
|
+
e.locale !== void 0 && !Bt(e.locale) && On.warn(`config.locale: "${e.locale}" has no translations — falling back to English. Supported: ${Rt().sort().join(", ")}.`);
|
|
4404
|
+
let i = await Lt(e.locale ?? "en"), a = Ut(e.fonts);
|
|
4405
|
+
if (ts.get(t) !== n) return ss({
|
|
4384
4406
|
config: e,
|
|
4385
4407
|
editorRef: S(null),
|
|
4386
4408
|
fontsManager: a,
|
|
4387
4409
|
unmount: () => {}
|
|
4388
4410
|
}).instance;
|
|
4389
|
-
|
|
4390
|
-
let o =
|
|
4391
|
-
return () => m(
|
|
4411
|
+
rs(t);
|
|
4412
|
+
let o = Zo(t, e.shadowDom ?? !0), s = S(null), c = V({ setup() {
|
|
4413
|
+
return () => m(Vo, {
|
|
4392
4414
|
config: e,
|
|
4393
4415
|
translations: i,
|
|
4394
4416
|
fontsManager: a,
|
|
@@ -4401,39 +4423,39 @@ async function as(e, { container: t, token: n }, r) {
|
|
|
4401
4423
|
ref: s
|
|
4402
4424
|
});
|
|
4403
4425
|
} });
|
|
4404
|
-
c.mount(o.target),
|
|
4426
|
+
c.mount(o.target), Qo.set(t, {
|
|
4405
4427
|
app: c,
|
|
4406
4428
|
editorRef: s,
|
|
4407
4429
|
cleanup: o.cleanup
|
|
4408
|
-
}),
|
|
4409
|
-
let { instance: l, render: u } =
|
|
4430
|
+
}), $o = t;
|
|
4431
|
+
let { instance: l, render: u } = ss({
|
|
4410
4432
|
config: e,
|
|
4411
4433
|
editorRef: s,
|
|
4412
4434
|
fontsManager: a,
|
|
4413
|
-
unmount: () =>
|
|
4435
|
+
unmount: () => rs(t, c)
|
|
4414
4436
|
});
|
|
4415
4437
|
return l;
|
|
4416
4438
|
}
|
|
4417
|
-
function
|
|
4439
|
+
function ss({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
4418
4440
|
let i = {
|
|
4419
4441
|
getContent() {
|
|
4420
|
-
return t.value ?
|
|
4442
|
+
return t.value ? we(t.value.getContent()) : we(e.content ?? be(e.fonts?.defaultFont, er(e)));
|
|
4421
4443
|
},
|
|
4422
4444
|
getLocale() {
|
|
4423
|
-
return t.value?.getLocale() ??
|
|
4445
|
+
return t.value?.getLocale() ?? Z(i.getContent());
|
|
4424
4446
|
},
|
|
4425
4447
|
setLocale(n) {
|
|
4426
4448
|
let r = i.getContent();
|
|
4427
|
-
if (n !==
|
|
4449
|
+
if (n !== Z(r) && (!e.localization || !r.settings.locales?.includes(n))) throw new Q(`This template has no "${n}" version.`, void 0, "unknown_locale");
|
|
4428
4450
|
t.value?.setLocale(n);
|
|
4429
4451
|
},
|
|
4430
4452
|
setContent(n) {
|
|
4431
|
-
let r =
|
|
4453
|
+
let r = gn(n, e.mergeTags);
|
|
4432
4454
|
t.value && t.value.setContent(r), e.content = r;
|
|
4433
4455
|
},
|
|
4434
4456
|
insertBlock(n) {
|
|
4435
4457
|
let r = { blocks: [n] };
|
|
4436
|
-
return
|
|
4458
|
+
return X(r), de(r), t.value ? t.value.insertBlock(vn(n, e.mergeTags)) : null;
|
|
4437
4459
|
},
|
|
4438
4460
|
setTheme(e) {
|
|
4439
4461
|
t.value && t.value.setTheme(e);
|
|
@@ -4448,7 +4470,7 @@ function os({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
4448
4470
|
create(n) {
|
|
4449
4471
|
return t.value ? t.value.create(n?.content ? {
|
|
4450
4472
|
...n,
|
|
4451
|
-
content:
|
|
4473
|
+
content: gn(n.content, e.mergeTags)
|
|
4452
4474
|
} : n) : Promise.reject(/* @__PURE__ */ Error("[Templatical] Editor not ready"));
|
|
4453
4475
|
},
|
|
4454
4476
|
load(e) {
|
|
@@ -4468,20 +4490,20 @@ function os({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
4468
4490
|
},
|
|
4469
4491
|
toMjml: (e) => a.toMjml(e),
|
|
4470
4492
|
toHtml: (e) => a.toHtml(e)
|
|
4471
|
-
}, a =
|
|
4493
|
+
}, a = Ko({
|
|
4472
4494
|
provider: e.render,
|
|
4473
|
-
buildPayload: (t) =>
|
|
4495
|
+
buildPayload: (t) => Go({
|
|
4474
4496
|
getContent: () => i.getContent(),
|
|
4475
4497
|
renderCustomBlock: (e) => i.renderCustomBlock(e),
|
|
4476
4498
|
getCustomBlockStylesheet: (e) => i.getCustomBlockStylesheet(e),
|
|
4477
|
-
getFonts: () =>
|
|
4499
|
+
getFonts: () => Wo(n),
|
|
4478
4500
|
getLayout: () => e.layout
|
|
4479
4501
|
}, t),
|
|
4480
|
-
renderLocalMjml: (t) =>
|
|
4502
|
+
renderLocalMjml: (t) => fi({
|
|
4481
4503
|
getContent: () => i.getContent(),
|
|
4482
4504
|
renderCustomBlock: (e) => i.renderCustomBlock(e),
|
|
4483
4505
|
getCustomBlockStylesheet: (e) => i.getCustomBlockStylesheet(e),
|
|
4484
|
-
getFonts: () =>
|
|
4506
|
+
getFonts: () => Wo(n),
|
|
4485
4507
|
socialIconsBaseUrl: e.socialIconsBaseUrl,
|
|
4486
4508
|
getLayout: () => e.layout
|
|
4487
4509
|
}, ...t ? [t] : [])
|
|
@@ -4491,18 +4513,18 @@ function os({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
4491
4513
|
render: a
|
|
4492
4514
|
};
|
|
4493
4515
|
}
|
|
4494
|
-
async function
|
|
4516
|
+
async function cs(e) {
|
|
4495
4517
|
let t = {
|
|
4496
4518
|
layout: e.layout,
|
|
4497
4519
|
content: e.content,
|
|
4498
4520
|
mergeTags: e.mergeTags
|
|
4499
4521
|
};
|
|
4500
|
-
|
|
4501
|
-
let n =
|
|
4522
|
+
is(t);
|
|
4523
|
+
let n = ns(e.container), [{ bootstrapCloud: r }, i] = await Promise.all([import("./createCloudRuntime-CHsFF8DI.js"), Ft(e.locale ?? "en")]), { runtime: a, providers: o, user: s } = await r({
|
|
4502
4524
|
config: e,
|
|
4503
4525
|
cloudTranslations: i
|
|
4504
4526
|
});
|
|
4505
|
-
return
|
|
4527
|
+
return os({
|
|
4506
4528
|
container: e.container,
|
|
4507
4529
|
content: t.content,
|
|
4508
4530
|
layout: t.layout,
|
|
@@ -4546,7 +4568,7 @@ async function ss(e) {
|
|
|
4546
4568
|
user: s
|
|
4547
4569
|
}, n, a);
|
|
4548
4570
|
}
|
|
4549
|
-
function
|
|
4550
|
-
|
|
4571
|
+
function ls() {
|
|
4572
|
+
$o && rs($o);
|
|
4551
4573
|
}
|
|
4552
|
-
export {
|
|
4574
|
+
export { Cn as AI_ALT_TEXT_RULES, Tn as AI_FIXABLE_RULES, xe as applyLayout, be as createDefaultTemplateContent, oe as createLocalStorageMediaProvider, q as createLocalStorageSavedBlocksProvider, Ce as createParagraphBlock, he as createSlotBlock, ye as createWrapperBlock, Nt as getBaseLocale, $t as getSupportedCloudLocales, Rt as getSupportedLocales, as as init, cs as initCloud, zt as isCloudLocaleSupported, Bt as isLocaleSupported, fe as isSlot, le as isWrapper, Ae as layoutWrapsSlot, ls as unmount, Ie as validateLayout };
|