@templatical/editor 0.55.0 → 0.56.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/dist/{AiAltTextPopover-D5QosKvB.js → AiAltTextPopover-CpZ7UeAZ.js} +4 -4
- package/dist/{AiAltTextReview-D1W_lrI_.js → AiAltTextReview-LYxvn7Qe.js} +4 -4
- package/dist/{AiChatPanel-C8SeEJRP.js → AiChatPanel-Cy05P-iO.js} +56 -56
- package/dist/{AiPanels-CR6zphjP.js → AiPanels-CwKmXzyr.js} +1 -1
- package/dist/{AiRewriteMenu-BwztoMov.js → AiRewriteMenu-DgqJHnza.js} +13 -13
- package/dist/{BlockIssueBadge-DaPTq1RE.js → BlockIssueBadge-CxHJmuOh.js} +5 -5
- package/dist/BlockPreviewCanvas-DEmNZkEG.js +154 -0
- package/dist/{CloudHeaderExtras-XpjJjn3o.js → CloudHeaderExtras-Cqhw-jMz.js} +1 -1
- package/dist/{CloudPanels-Baoaj6Xf.js → CloudPanels-Bmlf05Il.js} +12 -12
- package/dist/{CollaborationNotices-Cnx0XHzZ.js → CollaborationNotices-C27GCMvK.js} +8 -8
- package/dist/{CollaboratorBar-BaBoNhwB.js → CollaboratorBar-CLQjksX-.js} +2 -2
- package/dist/{CommentsPanel-Ck3QmqiC.js → CommentsPanel-B5NqPMmY.js} +1 -1
- package/dist/{CommentsSidebar-CHknhOar.js → CommentsSidebar-BDrcrDxS.js} +42 -42
- package/dist/{CountdownBlock-BMezkFbJ.js → CountdownBlock-D8dqjm3F.js} +6 -6
- package/dist/{CountdownToolbar-CA_gDIdZ.js → CountdownToolbar-IjpCOjCd.js} +30 -30
- package/dist/{IssuesPanel-nmFhWG1p.js → IssuesPanel-uwuzeMSW.js} +89 -89
- package/dist/LanguageMenu-C-eQ0lFy.js +403 -0
- package/dist/{LocaleNotices-WzsYtBRs.js → LocaleNotices-CDK_9D7P.js} +10 -10
- package/dist/{LogicTagInsertButton-qZ82VMFx.js → LogicTagInsertButton-BSolF7Fd.js} +24 -24
- package/dist/{MediaEditModal-C3U9Mi31.js → MediaEditModal-C8yc9dxt.js} +7 -7
- package/dist/{MediaPanels-CGmk9ufe.js → MediaPanels-FI4I8asn.js} +1 -1
- package/dist/{MergeTagInput-JJeZbFkD.js → MergeTagInput-B1nl2ZMT.js} +12 -12
- package/dist/{MergeTagModeToggle-DDucd1eC.js → MergeTagModeToggle-DXvb80OE.js} +6 -6
- package/dist/{MergeTagTextarea-dQ2LRrNB.js → MergeTagTextarea-DJlf3VbS.js} +5 -5
- package/dist/{ParagraphEditor-VXYwGoz_.js → ParagraphEditor-Dqco128s.js} +173 -173
- package/dist/{RestoreVersionDialog-BibNvAaJ.js → RestoreVersionDialog-hqLCuGV5.js} +12 -12
- package/dist/{RichTextEditorContent-CU5EOlM_.js → RichTextEditorContent-xIEF0Y3Z.js} +8 -8
- package/dist/{SaveBlockDialog-S9aFi0cy.js → SaveBlockDialog-CQlCP_XC.js} +47 -47
- package/dist/{SavedBlocksBrowserModal-DIdn6B0J.js → SavedBlocksBrowserModal-BXA32Fx6.js} +24 -24
- package/dist/{SavedBlocksPanels-Cme2M6u8.js → SavedBlocksPanels-BKUzbamj.js} +1 -1
- package/dist/{SavedBlocksPickBar-BDmA7r3m.js → SavedBlocksPickBar-BlvF-4UF.js} +9 -9
- package/dist/{TemplateSettings-C_LHLm5M.js → TemplateSettings-CYFtR8zv.js} +41 -41
- package/dist/{TestEmailModal-CLIRn7eL.js → TestEmailModal-BbaL17HO.js} +20 -20
- package/dist/{TestEmailPanel-frdtjC8h.js → TestEmailPanel-DhB1CSpg.js} +1 -1
- package/dist/{TitleEditor-D5kC56Jl.js → TitleEditor-3BRl8u5l.js} +22 -22
- package/dist/{Toolbar-D904Yw_R.js → Toolbar-pzNIakGM.js} +1090 -856
- package/dist/{TplModal-BBdotDf1.js → TplModal-WNuWhHZm.js} +4 -4
- package/dist/{VersionHistoryMenu-BnP0EyLl.js → VersionHistoryMenu--T-Qp_mH.js} +17 -17
- package/dist/{VersionHistoryPanels-DhagEgOk.js → VersionHistoryPanels-BPubvYIE.js} +1 -1
- package/dist/{VersionPreviewBanner-BPP939cD.js → VersionPreviewBanner-ClL3Wkln.js} +7 -7
- package/dist/WrapperBlock-CjfCPceb.js +56 -0
- package/dist/{blockTypeIcons-CoRQV_hP.js → blockTypeIcons-12OMwVyN.js} +3 -3
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-DIkMxYCN.js → ca-BJn8lcJx.js} +8 -0
- package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js → AiAltTextPopover-PFjTrl0y.js} +5 -5
- package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js.map → AiAltTextPopover-PFjTrl0y.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js → AiAltTextReview-BMjzvApH.js} +5 -5
- package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js.map → AiAltTextReview-BMjzvApH.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js → AiChatPanel-C2gpq4kP.js} +107 -107
- package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js.map → AiChatPanel-C2gpq4kP.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-BblCSkQy.js → AiPanels-Cx3PE2mE.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-BblCSkQy.js.map → AiPanels-Cx3PE2mE.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js → AiRewriteMenu-CnkyjPEu.js} +13 -13
- package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js.map → AiRewriteMenu-CnkyjPEu.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js → BlockIssueBadge-DncZ-HDf.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js.map → BlockIssueBadge-DncZ-HDf.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js +156 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js → CloudHeaderExtras-uUJYJFJ6.js} +2 -2
- package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js.map → CloudHeaderExtras-uUJYJFJ6.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-CQ0vNgsH.js → CloudPanels-CRztnw4M.js} +4 -4
- package/dist/cdn/chunks/{CloudPanels-CQ0vNgsH.js.map → CloudPanels-CRztnw4M.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js → CollaborationNotices-IuLYT2x7.js} +9 -9
- package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js.map → CollaborationNotices-IuLYT2x7.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js → CollaboratorBar-C1ZI2xwa.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js.map → CollaboratorBar-C1ZI2xwa.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js → CommentsPanel-lgjJNrrY.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js.map → CommentsPanel-lgjJNrrY.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js → CommentsSidebar-DTold7iy.js} +214 -214
- package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js.map → CommentsSidebar-DTold7iy.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js → CountdownBlock-8aPSExrv.js} +7 -7
- package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js.map → CountdownBlock-8aPSExrv.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js → CountdownToolbar-CnWQEW5g.js} +50 -50
- package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js.map → CountdownToolbar-CnWQEW5g.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js → IssuesPanel-CrplCzo8.js} +13 -13
- package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js.map → IssuesPanel-CrplCzo8.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js → LanguageMenu-B6MNInCL.js} +57 -57
- package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js.map → LanguageMenu-B6MNInCL.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js → LocaleNotices-TxeAl8Iq.js} +10 -10
- package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js.map → LocaleNotices-TxeAl8Iq.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-Bt2PXbQ0.js → LogicTagInsertButton-DvSVx2DB.js} +30 -30
- package/dist/cdn/chunks/LogicTagInsertButton-DvSVx2DB.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js → MediaEditModal-tGK6htBl.js} +8 -8
- package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js.map → MediaEditModal-tGK6htBl.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js → MediaPanels-BVrQYz2C.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js.map → MediaPanels-BVrQYz2C.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js → MergeTagInput-DeuNH3re.js} +13 -13
- package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js.map → MergeTagInput-DeuNH3re.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js → MergeTagModeToggle-D7maMGIM.js} +5 -5
- package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js.map → MergeTagModeToggle-D7maMGIM.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js → MergeTagTextarea-B2xxIU3e.js} +6 -6
- package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js.map → MergeTagTextarea-B2xxIU3e.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js → ParagraphEditor-Bx_Hlw8d.js} +106 -106
- package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js.map → ParagraphEditor-Bx_Hlw8d.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js → RestoreVersionDialog-CPrrWTsT.js} +12 -12
- package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js.map → RestoreVersionDialog-CPrrWTsT.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js → RichTextEditorContent-Dze4C9VI.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js.map → RichTextEditorContent-Dze4C9VI.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js → SaveBlockDialog-CXVwnfsy.js} +51 -51
- package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js.map → SaveBlockDialog-CXVwnfsy.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js → SavedBlocksBrowserModal-BDTmenOE.js} +23 -23
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js.map → SavedBlocksBrowserModal-BDTmenOE.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js → SavedBlocksPanels-B41Rk_v1.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js.map → SavedBlocksPanels-B41Rk_v1.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js → SavedBlocksPickBar-B97z_rFH.js} +11 -11
- package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js.map → SavedBlocksPickBar-B97z_rFH.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js → TemplateSettings-YwwRbxPc.js} +102 -102
- package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js.map → TemplateSettings-YwwRbxPc.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js → TestEmailModal-BiFP2Cbx.js} +20 -20
- package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js.map → TestEmailModal-BiFP2Cbx.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js → TestEmailPanel-BrivPMk2.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js.map → TestEmailPanel-BrivPMk2.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js → TitleEditor-CzPkkL2s.js} +19 -19
- package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js.map → TitleEditor-CzPkkL2s.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-NEE8qxYh.js → Toolbar-VH07SzX7.js} +1153 -919
- package/dist/cdn/chunks/Toolbar-VH07SzX7.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-B1MgvtX8.js → TplModal-DMe6J811.js} +6 -6
- package/dist/cdn/chunks/{TplModal-B1MgvtX8.js.map → TplModal-DMe6J811.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js → VersionHistoryMenu-DkwbKhBl.js} +16 -16
- package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js.map → VersionHistoryMenu-DkwbKhBl.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js → VersionHistoryPanels-CgxhMRAl.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js.map → VersionHistoryPanels-CgxhMRAl.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js → VersionPreviewBanner-WVBDBrwQ.js} +8 -8
- package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js.map → VersionPreviewBanner-WVBDBrwQ.js.map} +1 -1
- package/dist/cdn/chunks/WrapperBlock-CCCIcqe2.js +58 -0
- package/dist/cdn/chunks/WrapperBlock-CCCIcqe2.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js → blockTypeIcons-CzYA5DF9.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js.map → blockTypeIcons-CzYA5DF9.js.map} +1 -1
- package/dist/cdn/chunks/{ca-DIkMxYCN.js → ca-BJn8lcJx.js} +9 -1
- package/dist/cdn/chunks/ca-BJn8lcJx.js.map +1 -0
- package/dist/cdn/chunks/composables-D3lsO7Io.js +3101 -0
- package/dist/cdn/chunks/composables-D3lsO7Io.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js → createCloudRuntime-CE79GB1H.js} +16 -16
- package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js.map → createCloudRuntime-CE79GB1H.js.map} +1 -1
- package/dist/{de-Cc6Ue0UD.js → cdn/chunks/de-BLFp3nWx.js} +10 -0
- package/dist/cdn/chunks/de-BLFp3nWx.js.map +1 -0
- package/dist/cdn/chunks/dist-Cf1pSluo.js +405 -0
- package/dist/cdn/chunks/{dist-DqGgijFI.js.map → dist-Cf1pSluo.js.map} +1 -1
- package/dist/cdn/chunks/{editor-modal-erQEOHZN.js → editor-modal-CN69NlOK.js} +187 -187
- package/dist/cdn/chunks/{editor-modal-erQEOHZN.js.map → editor-modal-CN69NlOK.js.map} +1 -1
- package/dist/cdn/chunks/en-Bcz4gS9U.js +1 -0
- package/dist/cdn/chunks/{en-BX4FujAQ.js → en-DGGQJGbm.js} +9 -1
- package/dist/cdn/chunks/en-DGGQJGbm.js.map +1 -0
- package/dist/cdn/chunks/{es-Do5b-MKU.js → es-DTY9qgLv.js} +9 -1
- package/dist/cdn/chunks/es-DTY9qgLv.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BcwkOjVq.js → extensions-8dlM-fU4.js} +112 -112
- package/dist/cdn/chunks/extensions-8dlM-fU4.js.map +1 -0
- package/dist/{fr-S1n2Ebzp.js → cdn/chunks/fr-L4FqO9Gp.js} +10 -0
- package/dist/cdn/chunks/{fr-S1n2Ebzp.js.map → fr-L4FqO9Gp.js.map} +1 -1
- package/dist/cdn/chunks/{icons-Da9GKjPx.js → icons-DHExFLlT.js} +43 -43
- package/dist/cdn/chunks/{icons-Da9GKjPx.js.map → icons-DHExFLlT.js.map} +1 -1
- package/dist/cdn/chunks/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +9 -1
- package/dist/cdn/chunks/ja-6uOXkh4v.js.map +1 -0
- package/dist/cdn/chunks/{keys-CoQtCqNv.js → keys-BUmIvYy3.js} +4 -4
- package/dist/cdn/chunks/keys-BUmIvYy3.js.map +1 -0
- package/dist/{nl-0JSWaZpT.js → cdn/chunks/nl-DCxuxwNq.js} +10 -0
- package/dist/cdn/chunks/nl-DCxuxwNq.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-BrGw5jxk.js → normalizeMergeTagMarkup-aWjkotui.js} +67 -67
- package/dist/cdn/chunks/normalizeMergeTagMarkup-aWjkotui.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js → preRenderCustomBlocks-Dn6dFUwx.js} +4 -4
- package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js.map → preRenderCustomBlocks-Dn6dFUwx.js.map} +1 -1
- package/dist/{pt-BR-D3VlIMDZ.js → cdn/chunks/pt-BR-CBkcrebr.js} +10 -0
- package/dist/cdn/chunks/pt-BR-CBkcrebr.js.map +1 -0
- package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js → sanitizeHtml-B3njfkSy.js} +11 -11
- package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js.map → sanitizeHtml-B3njfkSy.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js → socialIcons-BFgc3qqJ.js} +354 -341
- package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js.map → socialIcons-BFgc3qqJ.js.map} +1 -1
- package/dist/cdn/chunks/{src-Diw9SLIe.js → src-C9JWWxAk.js} +419 -423
- package/dist/cdn/chunks/src-C9JWWxAk.js.map +1 -0
- package/dist/cdn/chunks/src-GgKlXNxy.js +710 -0
- package/dist/cdn/chunks/src-GgKlXNxy.js.map +1 -0
- package/dist/cdn/chunks/{src-v47QHNmB.js → src-mXG-Of9A.js} +669 -662
- package/dist/cdn/chunks/src-mXG-Of9A.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js → tiptap-C940SvId.js} +3 -3
- package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js.map → tiptap-C940SvId.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js → useCloudI18n-Xsih9yRH.js} +2 -2
- package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js.map → useCloudI18n-Xsih9yRH.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js → useEditorRoot-Beau2Z_T.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js.map → useEditorRoot-Beau2Z_T.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-BnJYydPv.js → useI18n-D8s7HtTn.js} +2 -2
- package/dist/cdn/chunks/{useI18n-BnJYydPv.js.map → useI18n-D8s7HtTn.js.map} +1 -1
- package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js → useLocalizedDisplay-Bgg4qpev.js} +6 -6
- package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js.map → useLocalizedDisplay-Bgg4qpev.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js → useLogicTag-B0PDeDxl.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js.map → useLogicTag-B0PDeDxl.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js → useMergeTag-BSU75bKk.js} +8 -8
- package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js.map → useMergeTag-BSU75bKk.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js → usePopoverPosition-esO6wjvU.js} +5 -5
- package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js.map → usePopoverPosition-esO6wjvU.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js → useScrollToBlock-CJuUu7Xj.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js.map → useScrollToBlock-CJuUu7Xj.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js → withCurrentFont-QqBilClC.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js.map → withCurrentFont-QqBilClC.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +814 -817
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-XMnOOIEC.js → check-CcuCoJDh.js} +1 -1
- package/dist/{chevron-down-DmamTEWQ.js → chevron-down-BfYIbFbC.js} +1 -1
- package/dist/{chevron-right-BEFXOH27.js → chevron-right-DyjFqY35.js} +1 -1
- package/dist/{chevron-up-Dw7woXj8.js → chevron-up-BHEIxuS-.js} +1 -1
- package/dist/{circle-alert-BTKC9vkq.js → circle-alert-Tq7kAh9S.js} +1 -1
- package/dist/{clock-BVT5u2uG.js → clock-Df0ZiXwQ.js} +1 -1
- package/dist/{composables-DPgNn9GZ.js → composables-DreAt_0A.js} +1660 -1620
- package/dist/{createCloudRuntime-Bw8TLmQ8.js → createCloudRuntime-CL4tUlDC.js} +15 -15
- package/dist/{createLucideIcon-CgDE3xAR.js → createLucideIcon-CfBdtoUw.js} +5 -5
- package/dist/{cdn/chunks/de-Cc6Ue0UD.js → de-BLFp3nWx.js} +8 -2
- package/dist/{dist-ChOb5XHW.js → dist-0GWMyHtM.js} +1 -1
- package/dist/{dist-CBdk1Vcb.js → dist-BMUUt3zJ.js} +284 -277
- package/dist/{dist-6DU0me3E.js → dist-B_0FPmoy.js} +1 -1
- package/dist/{dist-B8dY8drK.js → dist-BjzK1g4Z.js} +1 -1
- package/dist/{dist-54VCNoC0.js → dist-BsumKKh9.js} +1 -1
- package/dist/{dist-BWflWcpW.js → dist-C3avsUq9.js} +2 -2
- package/dist/{dist-fqSers8_.js → dist-CCLRTtJP.js} +197 -197
- package/dist/dist-CiYotUR8.js +406 -0
- package/dist/{dist-C3hu_C3w.js → dist-Cr1CLCmx.js} +1 -1
- package/dist/{dist-D_XrUEET.js → dist-CsknfjrZ.js} +3 -3
- package/dist/{dist-TAv500j6.js → dist-DDytHU_6.js} +1 -1
- package/dist/{dist-CcOn7WCo.js → dist-DKV9m4Uu.js} +1 -1
- package/dist/{dist-B9a7iVye.js → dist-Dq9VnANT.js} +1 -1
- package/dist/{dist-DZ3X-uB8.js → dist-ZrT0vAB6.js} +1 -1
- package/dist/{editor-modal-BeX6otLk.js → editor-modal-BD32TXws.js} +107 -107
- package/dist/{en-BX4FujAQ.js → en-DGGQJGbm.js} +8 -0
- package/dist/en-Dgs_-NBw.js +1 -0
- package/dist/{es-Do5b-MKU.js → es-DTY9qgLv.js} +8 -0
- package/dist/{extensions-QFAARrjF.js → extensions-DKxHlSd7.js} +385 -385
- package/dist/{eye-ByMgHeA_.js → eye-B3psrAqd.js} +1 -1
- package/dist/{cdn/chunks/fr-S1n2Ebzp.js → fr-L4FqO9Gp.js} +8 -2
- package/dist/{image-Ch8tR35K.js → image-C3yuPDxx.js} +1 -1
- package/dist/index.d.ts +60 -12
- package/dist/{info-DzSD-Wpk.js → info-DKja7A68.js} +1 -1
- package/dist/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +8 -0
- package/dist/{keys-BCqskl51.js → keys-w_VRjoMu.js} +3 -3
- package/dist/{link-oDn9AR2w.js → link-DhzPI4Hn.js} +1 -1
- package/dist/{list-C5t07dp8.js → list-DVGn7Ik2.js} +1 -1
- package/dist/{loader-circle-k6xvKgUB.js → loader-circle-DqKWsMHO.js} +1 -1
- package/dist/{message-circle-C23R6OJR.js → message-circle-C4TonoBs.js} +1 -1
- package/dist/{cdn/chunks/nl-0JSWaZpT.js → nl-DCxuxwNq.js} +8 -2
- package/dist/{normalizeMergeTagMarkup-BS0nRvhq.js → normalizeMergeTagMarkup-Da9JAgx7.js} +75 -75
- package/dist/{package-C90eQ7NU.js → package-9OkiEO4S.js} +1 -1
- package/dist/{pencil-BK7GrQuA.js → pencil-M9vkOB7C.js} +1 -1
- package/dist/{plus-Cr0Mis63.js → plus-DxZiv9YC.js} +1 -1
- package/dist/{preRenderCustomBlocks-CiKvKd8V.js → preRenderCustomBlocks-CdqSp2P7.js} +4 -4
- package/dist/{cdn/chunks/pt-BR-D3VlIMDZ.js → pt-BR-CBkcrebr.js} +8 -2
- package/dist/{refresh-cw-_ZLOIEvA.js → refresh-cw-UY8_sdFG.js} +1 -1
- package/dist/{rotate-ccw-CB5wsHwv.js → rotate-ccw-BFTGCpHn.js} +1 -1
- package/dist/{sanitizeHtml-USjTyALR.js → sanitizeHtml-wBibnBF4.js} +6 -6
- package/dist/{search-BmrQNox8.js → search-RuGJnMEn.js} +1 -1
- package/dist/{send-blAsIBBg.js → send-DGB1ar02.js} +1 -1
- package/dist/{smartphone-BPpWYrwV.js → smartphone-CVA29CU_.js} +1 -1
- package/dist/{socialIcons-NvIg5ahU.js → socialIcons-oo4uL16Y.js} +427 -414
- package/dist/{sparkles-OqIxrNp-.js → sparkles-IHfEwEcd.js} +1 -1
- package/dist/{square-BP-V7iT-.js → square-_Cl44UU6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +922 -925
- package/dist/{text-align-start-4mwX2o-F.js → text-align-start-Dqk2Xt_Q.js} +13 -13
- package/dist/{trash-B99WixTA.js → trash-Cr7rD5Hh.js} +1 -1
- package/dist/{triangle-alert-CHMiDkHa.js → triangle-alert-CKcpwtUj.js} +1 -1
- package/dist/{upload-Cp8o-hrN.js → upload-DR9pqVON.js} +1 -1
- package/dist/{useCloudI18n-Dh2iydo1.js → useCloudI18n-BczJoFf4.js} +1 -1
- package/dist/{useEditorRoot-DY3mgcHm.js → useEditorRoot-BcXKhM_8.js} +1 -1
- package/dist/{useI18n-CgtvtF4C.js → useI18n-zeWYtWSv.js} +1 -1
- package/dist/useLocalizedDisplay-Cbhx208c.js +31 -0
- package/dist/{useLogicTag-D8zgkXfb.js → useLogicTag-B4Zpk3eo.js} +4 -4
- package/dist/{useMergeTag-k7Kr0nMd.js → useMergeTag-B5qlq8px.js} +8 -8
- package/dist/{usePopoverPosition-VDQjyX_A.js → usePopoverPosition-Br3zt_MQ.js} +4 -4
- package/dist/{useScrollToBlock-B35ObCGK.js → useScrollToBlock-BfOzc1Z6.js} +2 -2
- package/dist/{withCurrentFont-Bzeg_gfH.js → withCurrentFont-m_PHcOD0.js} +1 -1
- package/dist/{x-BIBStNMS.js → x-DZSFHafL.js} +1 -1
- package/package.json +10 -10
- package/dist/BlockPreviewCanvas-C23A6FRm.js +0 -140
- package/dist/LanguageMenu-DcABUYop.js +0 -403
- package/dist/WrapperBlock-BAT3T0Cz.js +0 -44
- package/dist/cdn/chunks/BlockPreviewCanvas-Dr-xGq6v.js +0 -142
- package/dist/cdn/chunks/BlockPreviewCanvas-Dr-xGq6v.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-Bt2PXbQ0.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-NEE8qxYh.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js +0 -46
- package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js.map +0 -1
- package/dist/cdn/chunks/ca-DIkMxYCN.js.map +0 -1
- package/dist/cdn/chunks/composables-nyxwrM27.js +0 -3061
- package/dist/cdn/chunks/composables-nyxwrM27.js.map +0 -1
- package/dist/cdn/chunks/de-Cc6Ue0UD.js.map +0 -1
- package/dist/cdn/chunks/dist-DqGgijFI.js +0 -405
- package/dist/cdn/chunks/en-B6tLGRHq.js +0 -1
- package/dist/cdn/chunks/en-BX4FujAQ.js.map +0 -1
- package/dist/cdn/chunks/es-Do5b-MKU.js.map +0 -1
- package/dist/cdn/chunks/extensions-BcwkOjVq.js.map +0 -1
- package/dist/cdn/chunks/ja-DLwcq4bA.js.map +0 -1
- package/dist/cdn/chunks/keys-CoQtCqNv.js.map +0 -1
- package/dist/cdn/chunks/nl-0JSWaZpT.js.map +0 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-BrGw5jxk.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-D3VlIMDZ.js.map +0 -1
- package/dist/cdn/chunks/src-Diw9SLIe.js.map +0 -1
- package/dist/cdn/chunks/src-UR3AQocX.js +0 -683
- package/dist/cdn/chunks/src-UR3AQocX.js.map +0 -1
- package/dist/cdn/chunks/src-v47QHNmB.js.map +0 -1
- package/dist/dist-0alKVRc_.js +0 -406
- package/dist/en-Do0SU6tR.js +0 -1
- package/dist/useLocalizedDisplay-LdjosX4w.js +0 -31
package/dist/cdn/editor.js
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
import { A as e, B as t, C as n, E as r, F as i, G as a, H as o, I as s, K as c, L as l, M as u, N as d, O as f, P as p, Q as m, R as h, S as g, V as _, Y as v, _ as y, b, c as x, ct as S, dt as C, g as w, h as T, it as E, j as D, k as O, l as k, m as A, mt as j, n as M, nt as N, o as ee, p as P, pt as F, r as I, rt as L, s as te, t as R, tt as z, u as B, v as V, x as H, y as U } from "./chunks/draggable-DepKdldn.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { $ as
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import { n as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { C as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { A as nn,
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { a as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { t as
|
|
28
|
-
import { t as
|
|
2
|
+
import { A as ne, D as W, E as G, M as K, N as q, O as J, V as re, _ as ie, b as ae, c as oe, j as se, k as Y, l as ce } from "./chunks/socialIcons-BFgc3qqJ.js";
|
|
3
|
+
import { B as le, Bt as ue, D as de, F as fe, G as X, H as pe, Ht as me, It as he, Kt as ge, Mt as _e, Nt as ve, Pt as ye, Qt as be, S as xe, Tt as Se, U as Ce, V as we, Vt as Z, Z as Te, _ as Ee, dt as De, ft as Oe, g as ke, h as Ae, jt as je, k as Me, m as Ne, nn as Pe, p as Fe, rn as Ie, tn as Q, v as Le, y as Re, z as ze } from "./chunks/src-mXG-Of9A.js";
|
|
4
|
+
import { t as Be } from "./chunks/_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
5
|
+
import { $ as Ve, A as He, Bt as Ue, D as We, Dt as Ge, E as Ke, F as qe, It as Je, M as Ye, Ot as Xe, P as Ze, Q as Qe, Vt as $e, Y as et, at as tt, ct as nt, ft as rt, j as it, mt as at, nt as ot, q as st, t as ct, vt as lt, x as ut } from "./chunks/icons-DHExFLlT.js";
|
|
6
|
+
import { t as $ } from "./chunks/useI18n-D8s7HtTn.js";
|
|
7
|
+
import { n as dt, t as ft } from "./chunks/useLocalizedDisplay-Bgg4qpev.js";
|
|
8
|
+
import { $ as pt, B as mt, E as ht, I as gt, J as _t, K as vt, M as yt, O as bt, Q as xt, R as St, X as Ct, a as wt, at as Tt, b as Et, c as Dt, d as Ot, et as kt, g as At, h as jt, it as Mt, k as Nt, l as Pt, m as Ft, n as It, ot as Lt, rt as Rt, st as zt, t as Bt, tt as Vt, v as Ht, z as Ut } from "./chunks/keys-BUmIvYy3.js";
|
|
9
|
+
import { t as Wt } from "./chunks/plural-CyxrJXL1.js";
|
|
10
|
+
import { t as Gt } from "./chunks/languageName-DEEOhDWI.js";
|
|
11
|
+
import { C as Kt, T as qt, b as Jt, h as Yt, m as Xt, w as Zt, x as Qt } from "./chunks/styleConstants-CgiNKdnc.js";
|
|
12
|
+
import { t as $t } from "./chunks/TplModal-DMe6J811.js";
|
|
13
|
+
import { t as en } from "./chunks/sanitizeHtml-B3njfkSy.js";
|
|
14
|
+
import { A as tn, B as nn, E as rn, F as an, L as on, M as sn, N as cn, O as ln, P as un, _ as dn, a as fn, b as pn, c as mn, d as hn, f as gn, g as _n, h as vn, i as yn, j as bn, k as xn, l as Sn, m as Cn, n as wn, o as Tn, p as En, r as Dn, s as On, t as kn, u as An, v as jn, x as Mn, y as Nn } from "./chunks/composables-D3lsO7Io.js";
|
|
15
|
+
import { a as Pn, i as Fn, n as In, o as Ln, t as Rn } from "./chunks/normalizeMergeTagMarkup-aWjkotui.js";
|
|
16
|
+
import { t as zn } from "./chunks/aiErrors-C3QEMB0x.js";
|
|
17
|
+
import { n as Bn, t as Vn } from "./chunks/aiImageContext-BQ5mQ6B5.js";
|
|
18
|
+
import { i as Hn, n as Un, r as Wn, t as Gn } from "./chunks/useScrollToBlock-CJuUu7Xj.js";
|
|
19
|
+
import { a as Kn } from "./chunks/dist-Cf1pSluo.js";
|
|
20
|
+
import { t as qn } from "./chunks/logger-CqQTfJGx.js";
|
|
21
|
+
import { t as Jn } from "./chunks/WrapperBlock-CCCIcqe2.js";
|
|
22
|
+
import { t as Yn } from "./chunks/blockTypeIcons-CzYA5DF9.js";
|
|
23
|
+
import { t as Xn } from "./chunks/templateSettingsFields-cjlP-jdw.js";
|
|
24
|
+
import { n as Zn, t as Qn } from "./chunks/MergeTagModeToggle-D7maMGIM.js";
|
|
25
|
+
import { _ as $n, d as er, g as tr } from "./chunks/dist-BzXULHvI.js";
|
|
26
|
+
import { t as nr } from "./chunks/formatAbsoluteDateTime-Ck2_zXra.js";
|
|
27
|
+
import { t as rr } from "./chunks/formatRelativeTime-BTD8Ktt-.js";
|
|
28
|
+
import { t as ir } from "./chunks/preRenderCustomBlocks-Dn6dFUwx.js";
|
|
29
29
|
// src/utils/resolveTemplateDefaults.ts
|
|
30
|
-
var
|
|
31
|
-
function
|
|
32
|
-
let t = e.locale?.trim().replace(/_/g, "-"), n = t &&
|
|
30
|
+
var ar = /^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i;
|
|
31
|
+
function or(e) {
|
|
32
|
+
let t = e.locale?.trim().replace(/_/g, "-"), n = t && ar.test(t) ? { locale: t } : void 0;
|
|
33
33
|
if (n || e.templateDefaults) return {
|
|
34
34
|
...n,
|
|
35
35
|
...e.templateDefaults
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
// src/components/NoticeStack.vue
|
|
39
|
-
var
|
|
40
|
-
function
|
|
41
|
-
return i(), y("div",
|
|
39
|
+
var sr = {}, cr = { class: "tpl:pointer-events-none tpl:absolute tpl:top-16 tpl:left-1/2 tpl:z-[60] tpl:flex tpl:-translate-x-1/2 tpl:flex-col tpl:items-center tpl:gap-2" };
|
|
40
|
+
function lr(e, t) {
|
|
41
|
+
return i(), y("div", cr, [h(e.$slots, "default")]);
|
|
42
42
|
}
|
|
43
|
-
var
|
|
43
|
+
var ur = /*#__PURE__*/ Be(sr, [["render", lr]]), dr = {
|
|
44
44
|
key: 0,
|
|
45
45
|
"data-testid": "language-bar",
|
|
46
46
|
class: "tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-4 tpl:py-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
47
|
-
},
|
|
47
|
+
}, fr = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-between tpl:gap-x-6 tpl:gap-y-2" }, pr = { 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" }, mr = {
|
|
48
48
|
"data-testid": "language-bar-label",
|
|
49
49
|
class: "tpl:inline-flex tpl:items-center tpl:gap-2 tpl:font-medium tpl:whitespace-nowrap tpl:text-[var(--tpl-text)]"
|
|
50
|
-
},
|
|
50
|
+
}, hr = {
|
|
51
51
|
"data-testid": "language-bar-status",
|
|
52
52
|
role: "status",
|
|
53
53
|
"aria-live": "polite",
|
|
54
54
|
"aria-atomic": "true",
|
|
55
55
|
class: "tpl:whitespace-nowrap"
|
|
56
|
-
},
|
|
56
|
+
}, gr = {
|
|
57
57
|
key: 1,
|
|
58
58
|
"data-testid": "translation-result",
|
|
59
59
|
class: "tpl:whitespace-normal"
|
|
60
|
-
},
|
|
60
|
+
}, _r = ["aria-label"], vr = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-2" }, yr = ["disabled"], br = ["disabled"], xr = {
|
|
61
61
|
key: 0,
|
|
62
62
|
"data-testid": "structure-notice",
|
|
63
63
|
role: "status",
|
|
64
64
|
class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-2"
|
|
65
|
-
},
|
|
65
|
+
}, Sr = ["aria-label"], Cr = ["aria-label"], wr = { class: "tpl:m-0 tpl:mb-4 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Tr = { class: "tpl:mb-4 tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Er = { class: "tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Dr = ["disabled"], Or = /* @__PURE__ */ new Set(), kr = /* @__PURE__ */ n({
|
|
66
66
|
__name: "LanguageBar",
|
|
67
67
|
props: {
|
|
68
68
|
editor: {},
|
|
@@ -71,15 +71,15 @@ var cr = /*#__PURE__*/ ze(ar, [["render", sr]]), lr = {
|
|
|
71
71
|
change: {}
|
|
72
72
|
},
|
|
73
73
|
setup(e) {
|
|
74
|
-
let t = e, { t: n, format: r } = $(), s = f(
|
|
74
|
+
let t = e, { t: n, format: r } = $(), s = f(Mt, void 0) ?? "en", c = f(jt, []), l = P(() => Z(t.editor.content.value)), u = P(() => t.editor.activeLocale?.value ?? l.value), d = P(() => t.locales.includes(u.value)), p = f(Bt, null) ?? ft(t.editor, c), m = P(() => d.value ? !p.value?.missing.length && !p.value?.stale.length ? n.localization.complete : r(n.localization.gapTooltip, {
|
|
75
75
|
missing: p.value.missing.length,
|
|
76
76
|
stale: p.value.stale.length
|
|
77
|
-
}) : r(n.localization.languageReadOnly, { language:
|
|
77
|
+
}) : r(n.localization.languageReadOnly, { language: Gt(u.value) })), h = P(() => {
|
|
78
78
|
let e = t.feature?.lastResult.value;
|
|
79
79
|
if (!e) return "";
|
|
80
|
-
let i = [
|
|
81
|
-
return e.tagsChanged.length && i.push(
|
|
82
|
-
}), g = z(!1), _ = !1, v = z(null), x = z(null), T = P(() => t.feature?.counts.value.all ?? 0), E = P(() =>
|
|
80
|
+
let i = [Wt(n.localization.translatedFields, e.translated, s)];
|
|
81
|
+
return e.tagsChanged.length && i.push(Wt(n.localization.translationTagsChanged, e.tagsChanged.length, s)), e.skippedLocked.length && i.push(Wt(n.localization.translationSkippedLocked, e.skippedLocked.length, s)), e.missing.length && i.push(Wt(n.localization.translationMissing, e.missing.length, s)), e.tooLarge.length && i.push(Wt(n.localization.translationTooLarge, e.tooLarge.length, s)), e.error && i.push(r(n.localization.translationError, { message: e.error.message })), i.join(" ");
|
|
82
|
+
}), g = z(!1), _ = !1, v = z(null), x = z(null), T = P(() => t.feature?.counts.value.all ?? 0), E = P(() => Wt(n.localization.translationConfirmation, T.value, s));
|
|
83
83
|
function O() {
|
|
84
84
|
v.value = null, D(() => x.value?.focus());
|
|
85
85
|
}
|
|
@@ -100,67 +100,67 @@ var cr = /*#__PURE__*/ ze(ar, [["render", sr]]), lr = {
|
|
|
100
100
|
v.value && O();
|
|
101
101
|
}), o(() => t.change, () => {
|
|
102
102
|
let e = t.editor.state.template?.id;
|
|
103
|
-
(e ?
|
|
104
|
-
}), (t, o) => u.value === l.value ? w("", !0) : (i(), y("div",
|
|
105
|
-
A("div",
|
|
106
|
-
A("span",
|
|
103
|
+
(e ? Or.has(e) : _) || (e ? Or.add(e) : _ = !0, g.value = !0);
|
|
104
|
+
}), (t, o) => u.value === l.value ? w("", !0) : (i(), y("div", dr, [
|
|
105
|
+
A("div", fr, [A("div", pr, [
|
|
106
|
+
A("span", mr, [H(S(at), {
|
|
107
107
|
size: 14,
|
|
108
108
|
"aria-hidden": "true",
|
|
109
109
|
class: "tpl:shrink-0"
|
|
110
|
-
}), b(" " + j(S(r)(S(n).localization.editingLanguage, { language: S(
|
|
111
|
-
A("span",
|
|
110
|
+
}), b(" " + j(S(r)(S(n).localization.editingLanguage, { language: S(Gt)(u.value) })), 1)]),
|
|
111
|
+
A("span", hr, [e.feature?.running.value ? (i(), y(B, { key: 0 }, [b(j(S(r)(S(n).localization.translating, e.feature.running.value)), 1)], 64)) : e.feature?.lastResult.value ? (i(), y("span", gr, j(h.value), 1)) : (i(), y(B, { key: 2 }, [b(j(m.value), 1)], 64))]),
|
|
112
112
|
e.feature?.lastResult.value && !e.feature.running.value ? (i(), y("button", {
|
|
113
113
|
key: 0,
|
|
114
114
|
type: "button",
|
|
115
115
|
"data-testid": "translation-dismiss",
|
|
116
116
|
"aria-label": S(n).localization.dismiss,
|
|
117
|
-
class: C(S(
|
|
117
|
+
class: C(S(Xt)),
|
|
118
118
|
onClick: o[0] ||= (t) => e.feature.dismissResult()
|
|
119
|
-
}, [H(S(
|
|
119
|
+
}, [H(S(ct), {
|
|
120
120
|
size: 14,
|
|
121
121
|
"aria-hidden": "true"
|
|
122
|
-
})], 10,
|
|
123
|
-
]), A("div",
|
|
122
|
+
})], 10, _r)) : w("", !0)
|
|
123
|
+
]), A("div", vr, [
|
|
124
124
|
e.feature?.running.value ? (i(), y("button", {
|
|
125
125
|
key: 0,
|
|
126
126
|
type: "button",
|
|
127
127
|
"data-testid": "translation-cancel",
|
|
128
|
-
class: C(S(
|
|
128
|
+
class: C(S(Xt)),
|
|
129
129
|
onClick: o[1] ||= (t) => e.feature.cancel()
|
|
130
130
|
}, j(S(n).localization.cancel), 3)) : w("", !0),
|
|
131
131
|
d.value && e.feature?.isAvailable.value ? (i(), y(B, { key: 1 }, [e.feature.counts.value.gaps > 0 ? (i(), y("button", {
|
|
132
132
|
key: 0,
|
|
133
133
|
type: "button",
|
|
134
134
|
"data-testid": "translate-language",
|
|
135
|
-
class: C(S(
|
|
135
|
+
class: C(S(Qt)),
|
|
136
136
|
disabled: !!e.feature.running.value,
|
|
137
137
|
onClick: o[2] ||= (t) => e.feature.translate({ only: "gaps" })
|
|
138
|
-
}, j(S(
|
|
138
|
+
}, j(S(Wt)(S(n).localization.translateFields, e.feature.counts.value.gaps, S(s))), 11, yr)) : w("", !0), A("button", {
|
|
139
139
|
ref_key: "allAgain",
|
|
140
140
|
ref: x,
|
|
141
141
|
type: "button",
|
|
142
142
|
"data-testid": "translate-all-again",
|
|
143
|
-
class: C(S(
|
|
143
|
+
class: C(S(Xt)),
|
|
144
144
|
disabled: !!e.feature.running.value || T.value === 0,
|
|
145
145
|
onClick: k
|
|
146
|
-
}, j(S(n).localization.translateAllAgain), 11,
|
|
146
|
+
}, j(S(n).localization.translateAllAgain), 11, br)], 64)) : w("", !0),
|
|
147
147
|
A("button", {
|
|
148
148
|
type: "button",
|
|
149
149
|
"data-testid": "language-back-default",
|
|
150
|
-
class: C(S(
|
|
150
|
+
class: C(S(Xt)),
|
|
151
151
|
onClick: o[3] ||= (t) => e.editor.setActiveLocale?.(null)
|
|
152
|
-
}, j(S(r)(S(n).localization.backToDefault, { default: S(
|
|
152
|
+
}, j(S(r)(S(n).localization.backToDefault, { default: S(Gt)(l.value) })), 3)
|
|
153
153
|
])]),
|
|
154
|
-
g.value ? (i(), y("div",
|
|
154
|
+
g.value ? (i(), y("div", xr, [A("span", null, j(S(n).localization.structureNotice), 1), A("button", {
|
|
155
155
|
type: "button",
|
|
156
156
|
"aria-label": S(n).localization.dismiss,
|
|
157
|
-
class: C(S(
|
|
157
|
+
class: C(S(Xt)),
|
|
158
158
|
onClick: o[4] ||= (e) => g.value = !1
|
|
159
|
-
}, [H(S(
|
|
159
|
+
}, [H(S(ct), {
|
|
160
160
|
size: 14,
|
|
161
161
|
"aria-hidden": "true"
|
|
162
|
-
})], 10,
|
|
163
|
-
H(
|
|
162
|
+
})], 10, Sr)])) : w("", !0),
|
|
163
|
+
H($t, {
|
|
164
164
|
visible: v.value !== null,
|
|
165
165
|
onClose: O
|
|
166
166
|
}, {
|
|
@@ -170,35 +170,35 @@ var cr = /*#__PURE__*/ ze(ar, [["render", sr]]), lr = {
|
|
|
170
170
|
"aria-label": E.value,
|
|
171
171
|
class: "tpl:w-96 tpl:max-w-full tpl:max-h-[90%] tpl:overflow-y-auto tpl:box-border tpl:rounded-[var(--tpl-radius)] tpl:bg-[var(--tpl-bg)] tpl:p-5 tpl:shadow-[var(--tpl-shadow-lg)]"
|
|
172
172
|
}, [
|
|
173
|
-
A("h3",
|
|
174
|
-
A("p",
|
|
175
|
-
A("div",
|
|
173
|
+
A("h3", wr, j(E.value), 1),
|
|
174
|
+
A("p", Tr, j(S(r)(S(n).localization.translationDescription, { language: S(Gt)(v.value?.locale ?? u.value) })), 1),
|
|
175
|
+
A("div", Er, [A("button", {
|
|
176
176
|
type: "button",
|
|
177
177
|
"data-testid": "translation-confirm-cancel",
|
|
178
|
-
class: C(S(
|
|
178
|
+
class: C(S(Kt)),
|
|
179
179
|
onClick: O
|
|
180
180
|
}, j(S(n).localization.cancel), 3), A("button", {
|
|
181
181
|
type: "button",
|
|
182
182
|
"data-testid": "translation-confirm",
|
|
183
|
-
class: C(S(
|
|
183
|
+
class: C(S(Jt)),
|
|
184
184
|
disabled: !!e.feature?.running.value || !e.feature?.isAvailable.value || T.value === 0,
|
|
185
185
|
onClick: M
|
|
186
|
-
}, j(S(
|
|
187
|
-
], 8,
|
|
186
|
+
}, j(S(Wt)(S(n).localization.translateAllFields, T.value, S(s))), 11, Dr)])
|
|
187
|
+
], 8, Cr)]),
|
|
188
188
|
_: 1
|
|
189
189
|
}, 8, ["visible"])
|
|
190
190
|
]));
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
193
|
// src/composables/useLocaleActions.ts
|
|
194
|
-
function
|
|
194
|
+
function Ar(e) {
|
|
195
195
|
let { editor: t } = e;
|
|
196
196
|
return { setDefaultLocale(n) {
|
|
197
197
|
let r;
|
|
198
198
|
try {
|
|
199
|
-
r = [t.createSetDefaultLocaleOperation(n)], e.collaboration ||
|
|
199
|
+
r = [t.createSetDefaultLocaleOperation(n)], e.collaboration || ve(t.content.value, r);
|
|
200
200
|
} catch (e) {
|
|
201
|
-
if (e instanceof
|
|
201
|
+
if (e instanceof ye) return {
|
|
202
202
|
applied: !1,
|
|
203
203
|
error: e
|
|
204
204
|
};
|
|
@@ -207,12 +207,12 @@ function Or(e) {
|
|
|
207
207
|
if (e.collaboration) {
|
|
208
208
|
let t = e.collaboration.core.applyOperations(r, {});
|
|
209
209
|
if (!t.applied) return t;
|
|
210
|
-
} else e.history().record(),
|
|
210
|
+
} else e.history().record(), he(t.content.value, r), t.markDirty();
|
|
211
211
|
return t.setActiveLocale(n), { applied: !0 };
|
|
212
212
|
} };
|
|
213
213
|
}
|
|
214
214
|
// src/composables/useTranslationFeature.ts
|
|
215
|
-
function
|
|
215
|
+
function jr(e) {
|
|
216
216
|
if (typeof e != "object" || !e) return null;
|
|
217
217
|
let t = e;
|
|
218
218
|
return t.code !== "rate_limited" && t.code !== "limit_reached" && t.code !== "content_too_large" && t.code !== "translation_failed" || t.statusCode !== void 0 && typeof t.statusCode != "number" ? null : {
|
|
@@ -221,24 +221,24 @@ function kr(e) {
|
|
|
221
221
|
...t.statusCode === void 0 ? {} : { statusCode: t.statusCode }
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function Mr(e) {
|
|
225
225
|
let t = /* @__PURE__ */ new Set();
|
|
226
226
|
if (typeof DOMParser > "u") return t;
|
|
227
227
|
let n = new DOMParser().parseFromString(e, "text/html");
|
|
228
228
|
for (let e of n.querySelectorAll("[style]")) t.add(e.getAttribute("style") ?? "");
|
|
229
229
|
return t;
|
|
230
230
|
}
|
|
231
|
-
function
|
|
232
|
-
let n =
|
|
233
|
-
return [...
|
|
231
|
+
function Nr(e, t) {
|
|
232
|
+
let n = Mr(t);
|
|
233
|
+
return [...Mr(e)].every((e) => n.has(e));
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
let t = `tpl-translation-${crypto.randomUUID()}-`, n = [], r = e.replace(/<x id="\d+"\s*\/>|<x id="\d+"><\/x>|__x\d+__/g, (e) => `${t}${n.push(e)}-end`), i =
|
|
235
|
+
function Pr(e) {
|
|
236
|
+
let t = `tpl-translation-${crypto.randomUUID()}-`, n = [], r = e.replace(/<x id="\d+"\s*\/>|<x id="\d+"><\/x>|__x\d+__/g, (e) => `${t}${n.push(e)}-end`), i = en(r);
|
|
237
237
|
return n.forEach((e, n) => {
|
|
238
238
|
i = i.replaceAll(`${t}${n + 1}-end`, e);
|
|
239
239
|
}), i;
|
|
240
240
|
}
|
|
241
|
-
async function
|
|
241
|
+
async function Fr(e, t) {
|
|
242
242
|
t.throwIfAborted();
|
|
243
243
|
let n, r = new Promise((e, r) => {
|
|
244
244
|
n = () => r(t.reason), t.addEventListener("abort", n, { once: !0 });
|
|
@@ -249,16 +249,16 @@ async function Nr(e, t) {
|
|
|
249
249
|
t.removeEventListener("abort", n);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function Ir(e) {
|
|
253
253
|
let { editor: t } = e, n = L(null), r = L(null), i = null, a = L(!1), s = P(() => {
|
|
254
254
|
let n = t.activeLocale.value;
|
|
255
|
-
return !a.value && !!n && n !==
|
|
255
|
+
return !a.value && !!n && n !== Z(t.content.value) && !!e.localization?.locales.includes(n) && !!t.content.value.settings.locales?.includes(n);
|
|
256
256
|
}), c = P(() => {
|
|
257
257
|
if (!s.value) return {
|
|
258
258
|
gaps: 0,
|
|
259
259
|
all: 0
|
|
260
260
|
};
|
|
261
|
-
let n = t.activeLocale.value, r = e.definitions(), i = e.coverage?.() ??
|
|
261
|
+
let n = t.activeLocale.value, r = e.definitions(), i = e.coverage?.() ?? ge(t.content.value, n, r), a = /* @__PURE__ */ new Set([...i.missing, ...i.stale]), { strings: o } = le(t.content.value, n, {
|
|
262
262
|
definitions: r,
|
|
263
263
|
syntax: e.syntax(),
|
|
264
264
|
doNotTranslate: e.localization?.doNotTranslate,
|
|
@@ -289,7 +289,7 @@ function Pr(e) {
|
|
|
289
289
|
if (!s.value) throw new Q("Translation isn't available in this language.", 403, "feature_unavailable");
|
|
290
290
|
let o = e.collaboration?.core;
|
|
291
291
|
o?.flush();
|
|
292
|
-
let c = t.activeLocale.value, l = t.state.template?.id ?? null, u =
|
|
292
|
+
let c = t.activeLocale.value, l = t.state.template?.id ?? null, u = Z(t.content.value), d = Ie(E([...e.definitions()])), f = e.syntax(), p = e.localization?.doNotTranslate?.slice(), m = le(t.content.value, c, {
|
|
293
293
|
...a,
|
|
294
294
|
definitions: d,
|
|
295
295
|
syntax: f,
|
|
@@ -325,7 +325,7 @@ function Pr(e) {
|
|
|
325
325
|
}
|
|
326
326
|
let i;
|
|
327
327
|
try {
|
|
328
|
-
i = await
|
|
328
|
+
i = await Fr(e.provider.translate({
|
|
329
329
|
templateId: l,
|
|
330
330
|
sourceLocale: u,
|
|
331
331
|
targetLocale: c,
|
|
@@ -336,7 +336,7 @@ function Pr(e) {
|
|
|
336
336
|
}))
|
|
337
337
|
}, g.controller.signal), g.controller.signal), g.controller.signal.throwIfAborted();
|
|
338
338
|
} catch (e) {
|
|
339
|
-
if (!g.controller.signal.aborted &&
|
|
339
|
+
if (!g.controller.signal.aborted && jr(e)?.code === "content_too_large" && t.length > 1) {
|
|
340
340
|
y = Math.floor(t.length / 2);
|
|
341
341
|
continue;
|
|
342
342
|
}
|
|
@@ -348,10 +348,10 @@ function Pr(e) {
|
|
|
348
348
|
h.missing.push(e.id);
|
|
349
349
|
continue;
|
|
350
350
|
}
|
|
351
|
-
let n = m.tokens[e.id], r =
|
|
352
|
-
r === null || e.format === "html" && !
|
|
351
|
+
let n = m.tokens[e.id], r = we(t.text, n);
|
|
352
|
+
r === null || e.format === "html" && !Nr(r, we(e.source, n)) ? h.tagsChanged.push(e.id) : _.push({
|
|
353
353
|
id: e.id,
|
|
354
|
-
text: e.format === "html" ?
|
|
354
|
+
text: e.format === "html" ? Pr(t.text) : t.text,
|
|
355
355
|
sourceHash: e.sourceHash
|
|
356
356
|
});
|
|
357
357
|
}
|
|
@@ -362,14 +362,14 @@ function Pr(e) {
|
|
|
362
362
|
}
|
|
363
363
|
} catch (e) {
|
|
364
364
|
g.controller.signal.aborted || e instanceof Error && e.name === "AbortError" ? h.cancelled = !0 : h.error = {
|
|
365
|
-
code:
|
|
366
|
-
message:
|
|
365
|
+
code: jr(e)?.code ?? "translation_failed",
|
|
366
|
+
message: jr(e)?.message ?? (e instanceof Error ? e.message : String(e))
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
try {
|
|
370
370
|
if (!g.discarded) {
|
|
371
371
|
o?.flush();
|
|
372
|
-
let n =
|
|
372
|
+
let n = ze(t.content.value, c, _, {
|
|
373
373
|
definitions: d,
|
|
374
374
|
syntax: f,
|
|
375
375
|
doNotTranslate: p,
|
|
@@ -392,7 +392,7 @@ function Pr(e) {
|
|
|
392
392
|
let t = o.locksOf(e.blockId).some((e) => e.holder.sessionId !== o.sessionId && (e.locale == null || e.locale === c));
|
|
393
393
|
return t && h.skippedLocked.push(...Object.keys(e.text ?? {}).map((t) => `${e.blockId}/${t}`)), !t;
|
|
394
394
|
});
|
|
395
|
-
s.length && (
|
|
395
|
+
s.length && (ve(E(t.content.value), s), e.history().record(), he(t.content.value, s), t.markDirty(), o?.flush(), h.translated = s.reduce((e, t) => e + (t.op === "updateBlockLocale" || t.op === "updateSettingsLocale" ? Object.keys(t.text ?? {}).length : 0), 0)), t.activeLocale.value === c && (r.value = h);
|
|
396
396
|
}
|
|
397
397
|
} finally {
|
|
398
398
|
i = null, n.value = null;
|
|
@@ -412,12 +412,12 @@ function Pr(e) {
|
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
414
|
// src/composables/useCollaborationFeature.ts
|
|
415
|
-
var
|
|
415
|
+
var Lr = 5e3, Rr = 2e3, zr = {
|
|
416
416
|
blockIds: [],
|
|
417
417
|
settings: !1,
|
|
418
418
|
templateUpdated: !0
|
|
419
419
|
};
|
|
420
|
-
function
|
|
420
|
+
function Br(e) {
|
|
421
421
|
let t = /* @__PURE__ */ new Set(), n = !1, r = !1;
|
|
422
422
|
for (let i of e) i.op === "addBlock" ? typeof i.block?.id == "string" && t.add(i.block.id) : i.op === "updateSettings" || i.op === "addLocale" || i.op === "removeLocale" || i.op === "updateSettingsLocale" ? n = !0 : i.op === "setContent" || i.op === "setDefaultLocale" ? r = !0 : t.add(i.blockId);
|
|
423
423
|
return {
|
|
@@ -426,11 +426,11 @@ function Rr(e) {
|
|
|
426
426
|
templateUpdated: r
|
|
427
427
|
};
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function Vr(e) {
|
|
430
430
|
let t = z([]), n = 1, r = /* @__PURE__ */ new Map();
|
|
431
431
|
function i(e) {
|
|
432
432
|
let t = r.get(e);
|
|
433
|
-
t && clearTimeout(t), r.set(e, setTimeout(() => o(e),
|
|
433
|
+
t && clearTimeout(t), r.set(e, setTimeout(() => o(e), Lr));
|
|
434
434
|
}
|
|
435
435
|
function a(e) {
|
|
436
436
|
let r = n++;
|
|
@@ -468,7 +468,7 @@ function zr(e) {
|
|
|
468
468
|
u.delete(r);
|
|
469
469
|
let e = new Map(l.value);
|
|
470
470
|
e.delete(r), l.value = e;
|
|
471
|
-
},
|
|
471
|
+
}, Rr));
|
|
472
472
|
}
|
|
473
473
|
l.value = n;
|
|
474
474
|
}
|
|
@@ -509,18 +509,18 @@ function zr(e) {
|
|
|
509
509
|
id: u.noticeId
|
|
510
510
|
}], i(u.noticeId)) : (u.noticeId = a(p), c = u), n.templateUpdated || f(n.blockIds);
|
|
511
511
|
}
|
|
512
|
-
let h =
|
|
512
|
+
let h = K({
|
|
513
513
|
provider: e.provider,
|
|
514
514
|
loadTemplate: e.loadTemplate,
|
|
515
|
-
normalizeRemoteOperations: (t, n) =>
|
|
515
|
+
normalizeRemoteOperations: (t, n) => Fn(t, n, e.mergeTags),
|
|
516
516
|
onRemoteChange: (t) => {
|
|
517
517
|
try {
|
|
518
|
-
p(t.actor,
|
|
518
|
+
p(t.actor, Br(t.ops));
|
|
519
519
|
} finally {
|
|
520
520
|
e.onRemoteChange?.(t);
|
|
521
521
|
}
|
|
522
522
|
},
|
|
523
|
-
onRemoteResync: ({ actor: e }) => p(e,
|
|
523
|
+
onRemoteResync: ({ actor: e }) => p(e, zr),
|
|
524
524
|
onNotice: s,
|
|
525
525
|
onError: e.onError
|
|
526
526
|
});
|
|
@@ -582,14 +582,14 @@ function zr(e) {
|
|
|
582
582
|
};
|
|
583
583
|
}
|
|
584
584
|
// src/composables/useCommentsFeature.ts
|
|
585
|
-
function
|
|
586
|
-
let { provider: t, editor: n } = e, r =
|
|
585
|
+
function Hr(e) {
|
|
586
|
+
let { provider: t, editor: n } = e, r = W({
|
|
587
587
|
provider: t,
|
|
588
588
|
getTemplateId: () => n.state.template?.id ?? null,
|
|
589
589
|
getUser: () => e.user ?? null,
|
|
590
590
|
onError: e.onError
|
|
591
591
|
});
|
|
592
|
-
|
|
592
|
+
G({
|
|
593
593
|
comments: r,
|
|
594
594
|
provider: t,
|
|
595
595
|
getTemplateId: () => n.state.template?.id ?? null
|
|
@@ -635,22 +635,22 @@ function Br(e) {
|
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
637
|
// src/composables/useAiFeature.ts
|
|
638
|
-
var
|
|
639
|
-
function Ur(e) {
|
|
640
|
-
return _e(E(e));
|
|
641
|
-
}
|
|
642
|
-
var Wr = (e) => e instanceof Error && e.name === "AbortError";
|
|
638
|
+
var Ur = 3e3, Wr = 1e3;
|
|
643
639
|
function Gr(e) {
|
|
640
|
+
return Ie(E(e));
|
|
641
|
+
}
|
|
642
|
+
var Kr = (e) => e instanceof Error && e.name === "AbortError";
|
|
643
|
+
function qr(e) {
|
|
644
644
|
if (e instanceof Error) return e;
|
|
645
645
|
if (typeof e != "object" || !e) return Error(String(e));
|
|
646
646
|
let t = e;
|
|
647
647
|
return Object.assign(Error(typeof t.message == "string" ? t.message : String(e)), typeof t.code == "string" ? { code: t.code } : {}, typeof t.statusCode == "number" ? { statusCode: t.statusCode } : {}, t.details === void 0 ? {} : { details: t.details });
|
|
648
648
|
}
|
|
649
|
-
var
|
|
650
|
-
function
|
|
651
|
-
return e.some((e) => e.id === t || e.type === "section" && Array.isArray(e.children) && e.children.some((e) => Array.isArray(e) &&
|
|
649
|
+
var Jr = (e) => e.batches.reduce((e, t) => e + t.operationCount, 0);
|
|
650
|
+
function Yr(e, t) {
|
|
651
|
+
return e.some((e) => e.id === t || e.type === "section" && Array.isArray(e.children) && e.children.some((e) => Array.isArray(e) && Yr(e, t)));
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function Xr(e) {
|
|
654
654
|
return {
|
|
655
655
|
applied: !1,
|
|
656
656
|
code: e.code,
|
|
@@ -658,10 +658,10 @@ function Jr(e) {
|
|
|
658
658
|
message: e.message
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function Zr(e) {
|
|
662
662
|
let { provider: t, editor: n, collaboration: r } = e, i = t.conversation ?? null, a = crypto.randomUUID(), s = z(null), c = /* @__PURE__ */ new Map(), l = !1, u = 0, d = !1, f = 0, p = null, m = v();
|
|
663
663
|
function h(e) {
|
|
664
|
-
let t =
|
|
664
|
+
let t = ne(e);
|
|
665
665
|
return {
|
|
666
666
|
id: e,
|
|
667
667
|
memory: t,
|
|
@@ -723,12 +723,12 @@ function Yr(e) {
|
|
|
723
723
|
a(e);
|
|
724
724
|
return;
|
|
725
725
|
} finally {
|
|
726
|
-
t.active = null, t.busy.value = !1, --f === 0 &&
|
|
726
|
+
t.active = null, t.busy.value = !1, --f === 0 && Oe(), B(t);
|
|
727
727
|
}
|
|
728
728
|
i(e);
|
|
729
729
|
}
|
|
730
730
|
};
|
|
731
|
-
t.queue.push(o), f++ === 0 &&
|
|
731
|
+
t.queue.push(o), f++ === 0 && Oe(), B(t);
|
|
732
732
|
}) : Promise.resolve().then(r);
|
|
733
733
|
}
|
|
734
734
|
function B(e) {
|
|
@@ -758,7 +758,7 @@ function Yr(e) {
|
|
|
758
758
|
i.committingReload = !1;
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function ne(e) {
|
|
762
762
|
let t = c.get(e);
|
|
763
763
|
return t || (t = {
|
|
764
764
|
generation: 0,
|
|
@@ -768,16 +768,16 @@ function Yr(e) {
|
|
|
768
768
|
recoveries: /* @__PURE__ */ new Map()
|
|
769
769
|
}, c.set(e, t)), t;
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function W(e, t, n) {
|
|
772
772
|
let r = setTimeout(() => {
|
|
773
773
|
e.timers.delete(r), t();
|
|
774
774
|
}, n);
|
|
775
775
|
e.timers.add(r);
|
|
776
776
|
}
|
|
777
|
-
function
|
|
778
|
-
|
|
777
|
+
function G(t) {
|
|
778
|
+
Kr(t) || e.onError?.(qr(t));
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function K(e, t) {
|
|
781
781
|
if (t.length === 0) return;
|
|
782
782
|
if (r) {
|
|
783
783
|
r.outline(t);
|
|
@@ -785,17 +785,17 @@ function Yr(e) {
|
|
|
785
785
|
}
|
|
786
786
|
let n = ++e.highlightSequence, i = new Map(e.highlights.value);
|
|
787
787
|
for (let e of t) i.set(e, n);
|
|
788
|
-
e.highlights.value = i,
|
|
788
|
+
e.highlights.value = i, W(e, () => {
|
|
789
789
|
let r = new Map(e.highlights.value);
|
|
790
790
|
for (let e of t) r.get(e) === n && r.delete(e);
|
|
791
791
|
e.highlights.value = r;
|
|
792
|
-
},
|
|
792
|
+
}, Rr);
|
|
793
793
|
}
|
|
794
|
-
async function
|
|
795
|
-
r && await Promise.race([r.core.settle().catch(() => {}), new Promise((t) =>
|
|
794
|
+
async function J(e) {
|
|
795
|
+
r && await Promise.race([r.core.settle().catch(() => {}), new Promise((t) => W(e, t, Ur))]);
|
|
796
796
|
}
|
|
797
797
|
function re(t) {
|
|
798
|
-
let i = E(n.content.value), o = n.activeLocale?.value ?? null, s =
|
|
798
|
+
let i = E(n.content.value), o = n.activeLocale?.value ?? null, s = be(i, o ?? Z(i));
|
|
799
799
|
if (o === null && i.settings.locale === void 0 && delete s.settings.locale, new TextEncoder().encode(JSON.stringify(s)).length > 2e5) throw new Q("This template is too large for AI.", 413, "content_too_large");
|
|
800
800
|
return {
|
|
801
801
|
templateId: t,
|
|
@@ -806,11 +806,11 @@ function Yr(e) {
|
|
|
806
806
|
mergeTags: e.mergeTags()
|
|
807
807
|
};
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function ie() {
|
|
810
810
|
let e = n.state.selectedBlockId;
|
|
811
|
-
return e ? r ? r.core.hasConfirmedBlock(e) ? e : null :
|
|
811
|
+
return e ? r ? r.core.hasConfirmedBlock(e) ? e : null : Yr(n.content.value.blocks, e) ? e : null : null;
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function ae(t, i, a) {
|
|
814
814
|
if (t.length === 0) return {
|
|
815
815
|
applied: !0,
|
|
816
816
|
inverse: []
|
|
@@ -819,55 +819,55 @@ function Yr(e) {
|
|
|
819
819
|
try {
|
|
820
820
|
o = e.normalize(t, E(n.content.value));
|
|
821
821
|
} catch (e) {
|
|
822
|
-
if (e instanceof
|
|
822
|
+
if (e instanceof ye) return Xr(e);
|
|
823
823
|
throw e;
|
|
824
824
|
}
|
|
825
825
|
if (o.length === 0) return {
|
|
826
826
|
applied: !0,
|
|
827
827
|
inverse: []
|
|
828
828
|
};
|
|
829
|
-
let s =
|
|
829
|
+
let s = Br(o);
|
|
830
830
|
if (r) {
|
|
831
831
|
let e = r.core.applyOperations(o, {
|
|
832
832
|
origin: "ai",
|
|
833
833
|
turn: i
|
|
834
834
|
});
|
|
835
|
-
return e.applied ? (s.templateUpdated ||
|
|
835
|
+
return e.applied ? (s.templateUpdated || K(a, s.blockIds), {
|
|
836
836
|
applied: !0,
|
|
837
837
|
inverse: e.inverse
|
|
838
|
-
}) :
|
|
838
|
+
}) : Xr(e.error);
|
|
839
839
|
}
|
|
840
840
|
let c;
|
|
841
841
|
try {
|
|
842
|
-
c =
|
|
842
|
+
c = ve(E(n.content.value), o);
|
|
843
843
|
} catch (e) {
|
|
844
|
-
if (e instanceof
|
|
844
|
+
if (e instanceof ye) return Xr(e);
|
|
845
845
|
throw e;
|
|
846
846
|
}
|
|
847
847
|
a.lastRecordedTurn !== i && (e.history().record(), a.lastRecordedTurn = i), d = !0;
|
|
848
848
|
try {
|
|
849
|
-
|
|
849
|
+
he(n.content.value, Ie(o)), n.markDirty();
|
|
850
850
|
} finally {
|
|
851
851
|
d = !1;
|
|
852
852
|
}
|
|
853
853
|
let l = n.state.selectedBlockId;
|
|
854
|
-
return l && !
|
|
854
|
+
return l && !Yr(n.content.value.blocks, l) && n.selectBlock(null), s.templateUpdated || K(a, s.blockIds), {
|
|
855
855
|
applied: !0,
|
|
856
856
|
inverse: c
|
|
857
857
|
};
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function oe(t, r, i, a) {
|
|
860
860
|
let o = t;
|
|
861
861
|
try {
|
|
862
862
|
if (a !== null) {
|
|
863
|
-
if (e.localization && !e.localization.locales.includes(a)) throw new
|
|
864
|
-
o =
|
|
863
|
+
if (e.localization && !e.localization.locales.includes(a)) throw new ye("invalid_operation", 0, `Locale "${a}" is not enabled.`);
|
|
864
|
+
o = q(E(n.content.value), a, t, e.customBlockDefinitions?.());
|
|
865
865
|
}
|
|
866
866
|
} catch (e) {
|
|
867
|
-
if (e instanceof
|
|
867
|
+
if (e instanceof ye) return Xr(e);
|
|
868
868
|
throw e;
|
|
869
869
|
}
|
|
870
|
-
let s =
|
|
870
|
+
let s = ae(o, r, i);
|
|
871
871
|
return s.applied && s.inverse.length > 0 && a !== null && o.some((e) => [
|
|
872
872
|
"addBlock",
|
|
873
873
|
"moveBlock",
|
|
@@ -875,14 +875,14 @@ function Yr(e) {
|
|
|
875
875
|
"updateBlock"
|
|
876
876
|
].includes(e.op)) && e.onStructureChange?.(), s;
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function se(e, t) {
|
|
879
879
|
if (!r || !T(t)) return;
|
|
880
880
|
let n = r.core;
|
|
881
|
-
n.revision.value >= e || (n.connection.value === "connected" ?
|
|
881
|
+
n.revision.value >= e || (n.connection.value === "connected" ? W(t, () => {
|
|
882
882
|
T(t) && n.revision.value < e && n.catchUp();
|
|
883
|
-
},
|
|
883
|
+
}, Wr) : n.catchUp());
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function Y(e, t, n) {
|
|
886
886
|
let r = e.memory;
|
|
887
887
|
r.items = r.items.map((e) => {
|
|
888
888
|
if (e.id !== t) return e;
|
|
@@ -892,13 +892,13 @@ function Yr(e) {
|
|
|
892
892
|
};
|
|
893
893
|
return {
|
|
894
894
|
...i,
|
|
895
|
-
...
|
|
895
|
+
...ce(i, r)
|
|
896
896
|
};
|
|
897
897
|
});
|
|
898
898
|
for (let e of r.recoveries.values()) e.item.id === t && (e.item = r.items.find((e) => e.id === (n.id ?? t)) ?? e.item);
|
|
899
899
|
e.messages.value = r.items;
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function ce(e, t) {
|
|
902
902
|
let n = e.role === "assistant" && e.operationCount > 0;
|
|
903
903
|
if (t.storedIds.has(e.id)) return {
|
|
904
904
|
canUndo: n && !e.undone && typeof i?.undo == "function",
|
|
@@ -910,21 +910,21 @@ function Yr(e) {
|
|
|
910
910
|
canRedo: n && e.undone && !r?.serverApplied && (r?.redo?.length ?? 0) > 0
|
|
911
911
|
};
|
|
912
912
|
}
|
|
913
|
-
let
|
|
913
|
+
let le = () => ({
|
|
914
914
|
messageId: null,
|
|
915
915
|
operationCount: 0,
|
|
916
916
|
text: "",
|
|
917
917
|
failed: !0
|
|
918
918
|
});
|
|
919
|
-
function
|
|
919
|
+
function ue(t, a, o, s = []) {
|
|
920
920
|
let c = b, l = n.activeLocale?.value ?? null, u = w();
|
|
921
|
-
return !u || u.active?.kind === "turn" || u.queue.some((e) => e.kind === "turn") ? Promise.resolve(
|
|
921
|
+
return !u || u.active?.kind === "turn" || u.queue.some((e) => e.kind === "turn") ? Promise.resolve(le()) : R("turn", u, async (d) => {
|
|
922
922
|
let { controller: f } = d, p = u.memory, m = crypto.randomUUID(), h = crypto.randomUUID(), g = crypto.randomUUID(), _ = 0, v = "", y = !1, b = null, x = {
|
|
923
923
|
inverse: [],
|
|
924
924
|
redo: null,
|
|
925
925
|
serverApplied: !1,
|
|
926
926
|
batchIds: /* @__PURE__ */ new Set()
|
|
927
|
-
}, C, w = !1, E = !1, D = (e) =>
|
|
927
|
+
}, C, w = !1, E = !1, D = (e) => Y(u, g, e), O = () => {
|
|
928
928
|
let e = p.items.find((e) => e.id === g);
|
|
929
929
|
i && e && p.recoveries.set(m, {
|
|
930
930
|
item: e,
|
|
@@ -936,10 +936,10 @@ function Yr(e) {
|
|
|
936
936
|
try {
|
|
937
937
|
let n;
|
|
938
938
|
do
|
|
939
|
-
n = _, !r && e.reload && await U(t, !0, d.authorVersion), i && await
|
|
939
|
+
n = _, !r && e.reload && await U(t, !0, d.authorVersion), i && await pe(t, !0, !0);
|
|
940
940
|
while (T(u) && n !== _);
|
|
941
941
|
} catch (e) {
|
|
942
|
-
T(u) &&
|
|
942
|
+
T(u) && G(e);
|
|
943
943
|
} finally {
|
|
944
944
|
E = !1;
|
|
945
945
|
}
|
|
@@ -952,18 +952,18 @@ function Yr(e) {
|
|
|
952
952
|
},
|
|
953
953
|
onOperations: async (e) => {
|
|
954
954
|
V(d), S(c);
|
|
955
|
-
let t = r ?
|
|
956
|
-
return i.applied && i.inverse.length > 0 && (x.inverse = [...i.inverse, ...x.inverse], r && (x.view = x.view === void 0 || x.view !== null &&
|
|
955
|
+
let t = r ? Gr(n.content.value) : null, i = oe(e, m, u, l);
|
|
956
|
+
return i.applied && i.inverse.length > 0 && (x.inverse = [...i.inverse, ...x.inverse], r && (x.view = x.view === void 0 || x.view !== null && Pe(x.view, t) ? Gr(n.content.value) : null), _ += e.length, D({ operationCount: _ })), i;
|
|
957
957
|
},
|
|
958
958
|
onApplied: (t) => {
|
|
959
959
|
if (!T(u)) throw new DOMException("The template changed.", "AbortError");
|
|
960
|
-
if (!r && !e.reload) throw b ??= new Q(
|
|
961
|
-
x.serverApplied = !0, x.batchIds.add(t.batchId), _ += t.operationCount, D({ operationCount: _ }),
|
|
960
|
+
if (!r && !e.reload) throw b ??= new Q(zn, 502, "ai_provider_error"), b;
|
|
961
|
+
x.serverApplied = !0, x.batchIds.add(t.batchId), _ += t.operationCount, D({ operationCount: _ }), se(t.revision, u), w && (O(), k());
|
|
962
962
|
}
|
|
963
963
|
};
|
|
964
964
|
try {
|
|
965
965
|
try {
|
|
966
|
-
await
|
|
966
|
+
await pe(d), V(d), S(c), u.failure.value = null, u.failedPrompt.value = null, u.failedAttachments.value = [];
|
|
967
967
|
let e = (/* @__PURE__ */ new Date()).toISOString();
|
|
968
968
|
p.records.set(g, x), p.items = [
|
|
969
969
|
...p.items,
|
|
@@ -998,12 +998,12 @@ function Yr(e) {
|
|
|
998
998
|
createdAt: e,
|
|
999
999
|
status: "streaming"
|
|
1000
1000
|
}
|
|
1001
|
-
], u.messages.value = p.items, await H(
|
|
1001
|
+
], u.messages.value = p.items, await H(J(u), d.controller.signal), V(d), S(c);
|
|
1002
1002
|
let n = await H(o(re(u.id), A, f.signal), f.signal);
|
|
1003
1003
|
if (V(d), b) throw b;
|
|
1004
1004
|
if (n.text !== "" && (v = n.text), n.messageId !== null && i) {
|
|
1005
1005
|
let e = g;
|
|
1006
|
-
g = n.messageId, p.storedIds.add(g), p.records.delete(e), p.records.set(g, x),
|
|
1006
|
+
g = n.messageId, p.storedIds.add(g), p.records.delete(e), p.records.set(g, x), Y(u, e, { id: g });
|
|
1007
1007
|
}
|
|
1008
1008
|
D({
|
|
1009
1009
|
text: v,
|
|
@@ -1016,8 +1016,8 @@ function Yr(e) {
|
|
|
1016
1016
|
};
|
|
1017
1017
|
} catch (e) {
|
|
1018
1018
|
let n = b ?? e;
|
|
1019
|
-
y = f.signal.aborted ||
|
|
1020
|
-
error:
|
|
1019
|
+
y = f.signal.aborted || Kr(n), y || G(n), _ === 0 && (!y || v === "") ? (p.items = p.items.filter((e) => e.id !== g && e.id !== h), T(u) && (u.messages.value = p.items, y || (t === "chat" && (u.failedPrompt.value = a, u.failedAttachments.value = s), u.failure.value = {
|
|
1020
|
+
error: qr(n),
|
|
1021
1021
|
context: "turn"
|
|
1022
1022
|
})), C = {
|
|
1023
1023
|
messageId: null,
|
|
@@ -1027,7 +1027,7 @@ function Yr(e) {
|
|
|
1027
1027
|
}) : (D({
|
|
1028
1028
|
status: y ? "done" : "failed",
|
|
1029
1029
|
failure: y ? void 0 : {
|
|
1030
|
-
error:
|
|
1030
|
+
error: qr(n),
|
|
1031
1031
|
context: "turn"
|
|
1032
1032
|
}
|
|
1033
1033
|
}), C = {
|
|
@@ -1041,9 +1041,9 @@ function Yr(e) {
|
|
|
1041
1041
|
let n;
|
|
1042
1042
|
do
|
|
1043
1043
|
if (n = _, x.serverApplied && !r && e.reload && T(u) && await U(d, !0).catch((e) => {
|
|
1044
|
-
T(u) &&
|
|
1044
|
+
T(u) && G(e);
|
|
1045
1045
|
}), i && p.recoveries.has(m) && T(u)) {
|
|
1046
|
-
await
|
|
1046
|
+
await pe(d, !0, !0);
|
|
1047
1047
|
let e = p.recoveries.get(m);
|
|
1048
1048
|
e && (C.messageId = e.item.id, C.text = e.item.text);
|
|
1049
1049
|
}
|
|
@@ -1052,9 +1052,9 @@ function Yr(e) {
|
|
|
1052
1052
|
} finally {
|
|
1053
1053
|
w = !0, u.messages.value = p.items;
|
|
1054
1054
|
}
|
|
1055
|
-
},
|
|
1055
|
+
}, le);
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function de(t, o) {
|
|
1058
1058
|
let s = w();
|
|
1059
1059
|
return !s || s.busy.value ? Promise.resolve() : R("replay", s, async (c) => {
|
|
1060
1060
|
let l = s.memory, u = l.items.find((e) => e.id === t);
|
|
@@ -1068,8 +1068,8 @@ function Yr(e) {
|
|
|
1068
1068
|
if (!T(s)) return;
|
|
1069
1069
|
if ("operations" in n) {
|
|
1070
1070
|
if (c.controller.signal.aborted) return;
|
|
1071
|
-
let e =
|
|
1072
|
-
e.applied &&
|
|
1071
|
+
let e = oe(n.operations, `${o}:${t}:${crypto.randomUUID()}`, s, u.locale ?? null);
|
|
1072
|
+
e.applied && Y(s, t, {
|
|
1073
1073
|
undone: o === "undo",
|
|
1074
1074
|
failure: void 0
|
|
1075
1075
|
});
|
|
@@ -1082,52 +1082,52 @@ function Yr(e) {
|
|
|
1082
1082
|
}), s.lifetime.signal);
|
|
1083
1083
|
} catch (e) {
|
|
1084
1084
|
if (!T(s)) return;
|
|
1085
|
-
|
|
1086
|
-
error:
|
|
1085
|
+
G(e), Y(s, t, { failure: {
|
|
1086
|
+
error: qr(e),
|
|
1087
1087
|
context: o
|
|
1088
1088
|
} });
|
|
1089
1089
|
}
|
|
1090
1090
|
if (!T(s)) return;
|
|
1091
|
-
if (!e.applied) throw new
|
|
1091
|
+
if (!e.applied) throw new _e(e.message, {
|
|
1092
1092
|
code: e.code,
|
|
1093
1093
|
opIndex: e.opIndex
|
|
1094
1094
|
});
|
|
1095
1095
|
return;
|
|
1096
1096
|
}
|
|
1097
|
-
if (
|
|
1097
|
+
if (Y(s, t, {
|
|
1098
1098
|
undone: o === "undo",
|
|
1099
1099
|
failure: void 0
|
|
1100
|
-
}), r)
|
|
1100
|
+
}), r) se(n.applied.revision, s);
|
|
1101
1101
|
else if (e.reload) await U(c, !0);
|
|
1102
|
-
else throw new Q(
|
|
1102
|
+
else throw new Q(zn, 502, "ai_provider_error");
|
|
1103
1103
|
return;
|
|
1104
1104
|
}
|
|
1105
1105
|
{
|
|
1106
1106
|
if (u.undone !== (o === "redo")) return;
|
|
1107
1107
|
let e = o === "undo" ? f?.inverse : f?.redo;
|
|
1108
1108
|
if (!f || f.serverApplied || !e || e.length === 0) return;
|
|
1109
|
-
if (r && e.some((e) => e.op === "setContent") && (!f.view || !
|
|
1110
|
-
let i =
|
|
1111
|
-
if (!i.applied) throw new
|
|
1109
|
+
if (r && e.some((e) => e.op === "setContent") && (!f.view || !Pe(f.view, E(n.content.value)))) throw new _e(`The template changed since this message's changes, so ${o === "undo" ? "undoing" : "redoing"} them would overwrite that.`, { code: "precondition_failed" });
|
|
1110
|
+
let i = ae(e, `${o}:${t}:${crypto.randomUUID()}`, s);
|
|
1111
|
+
if (!i.applied) throw new _e(i.message, {
|
|
1112
1112
|
code: i.code,
|
|
1113
1113
|
opIndex: i.opIndex
|
|
1114
1114
|
});
|
|
1115
|
-
o === "undo" ? f.redo = i.inverse : f.inverse = i.inverse, r && (f.view =
|
|
1115
|
+
o === "undo" ? f.redo = i.inverse : f.inverse = i.inverse, r && (f.view = Gr(n.content.value));
|
|
1116
1116
|
}
|
|
1117
|
-
|
|
1117
|
+
Y(s, t, {
|
|
1118
1118
|
undone: o === "undo",
|
|
1119
1119
|
failure: void 0
|
|
1120
1120
|
});
|
|
1121
1121
|
} catch (e) {
|
|
1122
|
-
if (!T(s) ||
|
|
1123
|
-
|
|
1124
|
-
error:
|
|
1122
|
+
if (!T(s) || Kr(e)) return;
|
|
1123
|
+
G(e), Y(s, t, { failure: {
|
|
1124
|
+
error: qr(e),
|
|
1125
1125
|
context: o
|
|
1126
1126
|
} });
|
|
1127
1127
|
}
|
|
1128
1128
|
}, () => {});
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1130
|
+
function fe(e, t) {
|
|
1131
1131
|
let n = {
|
|
1132
1132
|
id: e.id,
|
|
1133
1133
|
role: e.role,
|
|
@@ -1135,7 +1135,7 @@ function Yr(e) {
|
|
|
1135
1135
|
locale: e.locale,
|
|
1136
1136
|
text: e.text,
|
|
1137
1137
|
attachments: e.attachments ?? [],
|
|
1138
|
-
operationCount:
|
|
1138
|
+
operationCount: Jr(e),
|
|
1139
1139
|
undone: e.undone,
|
|
1140
1140
|
canUndo: !1,
|
|
1141
1141
|
canRedo: !1,
|
|
@@ -1144,13 +1144,13 @@ function Yr(e) {
|
|
|
1144
1144
|
};
|
|
1145
1145
|
return {
|
|
1146
1146
|
...n,
|
|
1147
|
-
...
|
|
1147
|
+
...ce(n, t)
|
|
1148
1148
|
};
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function X(e, t) {
|
|
1151
1151
|
for (let n of e) t.storedIds.add(n.id);
|
|
1152
1152
|
let n = new Map(t.items.map((e) => [e.id, e])), r = e.map((e) => {
|
|
1153
|
-
let r =
|
|
1153
|
+
let r = fe(e, t), i = n.get(r.id);
|
|
1154
1154
|
return i?.status === "failed" ? {
|
|
1155
1155
|
...r,
|
|
1156
1156
|
status: i.status,
|
|
@@ -1162,19 +1162,19 @@ function Yr(e) {
|
|
|
1162
1162
|
if (s) {
|
|
1163
1163
|
t.records.delete(i.id), t.records.set(s.id, a);
|
|
1164
1164
|
let e = {
|
|
1165
|
-
...
|
|
1165
|
+
...fe(s, t),
|
|
1166
1166
|
status: i.status,
|
|
1167
1167
|
failure: i.failure
|
|
1168
1168
|
};
|
|
1169
1169
|
n.item = e, r = r.map((t) => t.id === s.id ? e : t);
|
|
1170
1170
|
} else n.user && !r.some((e) => e.id === n.user.id) && r.push(n.user), r.push({
|
|
1171
1171
|
...i,
|
|
1172
|
-
...
|
|
1172
|
+
...ce(i, t)
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
1175
1175
|
return r;
|
|
1176
1176
|
}
|
|
1177
|
-
async function
|
|
1177
|
+
async function pe(e, t = !1, n = !1, r = e.scope.historyGeneration) {
|
|
1178
1178
|
let { scope: a } = e;
|
|
1179
1179
|
if (!T(a) || r !== a.historyGeneration || !n && e.controller.signal.aborted || !t && a.loaded) return;
|
|
1180
1180
|
let o = a.memory;
|
|
@@ -1183,12 +1183,12 @@ function Yr(e) {
|
|
|
1183
1183
|
a.isLoadingHistory.value = !0, a.loaded = !1;
|
|
1184
1184
|
try {
|
|
1185
1185
|
await H(i.list(a.id).then((t) => {
|
|
1186
|
-
!l && o.generation === a.generation && r === a.historyGeneration && (n || T(a) && !e.controller.signal.aborted) && (o.items =
|
|
1186
|
+
!l && o.generation === a.generation && r === a.historyGeneration && (n || T(a) && !e.controller.signal.aborted) && (o.items = X(t, o), a.messages.value = o.items, a.loaded = !0, a.failure.value?.context === "history" && (a.failure.value = null));
|
|
1187
1187
|
}), n ? a.lifetime.signal : e.controller.signal);
|
|
1188
1188
|
} catch (e) {
|
|
1189
|
-
if (!T(a) || r !== a.historyGeneration ||
|
|
1190
|
-
|
|
1191
|
-
error:
|
|
1189
|
+
if (!T(a) || r !== a.historyGeneration || Kr(e)) return;
|
|
1190
|
+
G(e), a.failure.value = {
|
|
1191
|
+
error: qr(e),
|
|
1192
1192
|
context: "history"
|
|
1193
1193
|
};
|
|
1194
1194
|
} finally {
|
|
@@ -1196,7 +1196,7 @@ function Yr(e) {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function me(e = w()) {
|
|
1200
1200
|
if (!e || !T(e)) return Promise.resolve();
|
|
1201
1201
|
if (e.pendingHistory?.generation === e.historyGeneration) return e.pendingHistory.promise;
|
|
1202
1202
|
if (e.loaded) return Promise.resolve();
|
|
@@ -1204,11 +1204,11 @@ function Yr(e) {
|
|
|
1204
1204
|
generation: t,
|
|
1205
1205
|
promise: Promise.resolve()
|
|
1206
1206
|
};
|
|
1207
|
-
return n.promise = R("history", e, (e) =>
|
|
1207
|
+
return n.promise = R("history", e, (e) => pe(e, !1, !1, t), () => {}).finally(() => {
|
|
1208
1208
|
e.pendingHistory === n && (e.pendingHistory = null);
|
|
1209
1209
|
}), e.pendingHistory = n, n.promise;
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function ge() {
|
|
1212
1212
|
let e = w();
|
|
1213
1213
|
return !e || i && typeof i.clear != "function" || e.active && e.active.kind !== "history" && e.active.kind !== "read" || e.queue.some((e) => e.kind !== "history" && e.kind !== "read") ? Promise.resolve() : (te(e), e.active?.controller.abort(), R("clear", e, async () => {
|
|
1214
1214
|
try {
|
|
@@ -1216,40 +1216,40 @@ function Yr(e) {
|
|
|
1216
1216
|
c.delete(e.id), e.memory.items = [], e.memory.records.clear(), e.memory.storedIds.clear(), e.memory.recoveries.clear(), te(e), e.messages.value = [], e.loaded = !0, e.failure.value = null, e.failedPrompt.value = null, e.failedAttachments.value = [], T(e) && c.set(e.id, e.memory);
|
|
1217
1217
|
} catch (t) {
|
|
1218
1218
|
if (!T(e)) return;
|
|
1219
|
-
|
|
1220
|
-
error:
|
|
1219
|
+
G(t), e.failure.value = {
|
|
1220
|
+
error: qr(t),
|
|
1221
1221
|
context: "history"
|
|
1222
1222
|
};
|
|
1223
1223
|
}
|
|
1224
1224
|
}, () => {}));
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1227
|
-
T(e) &&
|
|
1226
|
+
function xe(e) {
|
|
1227
|
+
T(e) && me(e);
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1229
|
+
function Se(t) {
|
|
1230
1230
|
let n = w();
|
|
1231
|
-
n && T(n) && (s.value !== t && n.busy.value &&
|
|
1231
|
+
n && T(n) && (s.value !== t && n.busy.value && Ee(), s.value = t, e.commentsOpen && (e.commentsOpen.value = !1), t === "chat" && xe(n));
|
|
1232
1232
|
}
|
|
1233
|
-
function
|
|
1234
|
-
e.length !== 0 && C("chatAttachments") && (I.value = [...e],
|
|
1233
|
+
function Ce(e) {
|
|
1234
|
+
e.length !== 0 && C("chatAttachments") && (I.value = [...e], Se("chat"));
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1236
|
+
function we(e) {
|
|
1237
1237
|
e.active?.controller.abort();
|
|
1238
1238
|
for (let t of e.queue) t.kind !== "reconcile" && t.controller.abort();
|
|
1239
1239
|
}
|
|
1240
|
-
function
|
|
1241
|
-
e.lifetime.abort(),
|
|
1240
|
+
function Te(e) {
|
|
1241
|
+
e.lifetime.abort(), we(e), e.busy.value = !1, e.isLoadingHistory.value = !1;
|
|
1242
1242
|
for (let t of e.timers) clearTimeout(t);
|
|
1243
1243
|
e.timers.clear();
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function Ee() {
|
|
1246
1246
|
let e = w();
|
|
1247
|
-
e &&
|
|
1247
|
+
e && we(e);
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1250
|
-
|
|
1249
|
+
function De() {
|
|
1250
|
+
Ee(), s.value = null;
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function Oe() {
|
|
1253
1253
|
if (l) return;
|
|
1254
1254
|
p?.();
|
|
1255
1255
|
let e = f === 0, t = () => o(n.content, () => {
|
|
@@ -1261,28 +1261,28 @@ function Yr(e) {
|
|
|
1261
1261
|
});
|
|
1262
1262
|
p = m?.active ? m.run(t) : t();
|
|
1263
1263
|
}
|
|
1264
|
-
|
|
1265
|
-
let
|
|
1264
|
+
Oe();
|
|
1265
|
+
let ke = [() => p?.(), o(() => n.state.isDirty, (e, t) => {
|
|
1266
1266
|
t === !0 && e === !1 && n.state.isSaving && (N.value = !1);
|
|
1267
1267
|
}, { flush: "sync" })];
|
|
1268
|
-
e.commentsOpen &&
|
|
1269
|
-
e &&
|
|
1270
|
-
})),
|
|
1268
|
+
e.commentsOpen && ke.push(o(e.commentsOpen, (e) => {
|
|
1269
|
+
e && De();
|
|
1270
|
+
})), ke.push(o(() => n.loadVersion?.value ?? g.value, () => {
|
|
1271
1271
|
if (l) return;
|
|
1272
1272
|
let e = _.value;
|
|
1273
1273
|
if (e?.committingReload && T(e)) {
|
|
1274
1274
|
e.committingReload = !1;
|
|
1275
1275
|
return;
|
|
1276
1276
|
}
|
|
1277
|
-
e &&
|
|
1277
|
+
e && Te(e);
|
|
1278
1278
|
let t = g.value, n = t === null ? null : h(t);
|
|
1279
|
-
_.value = n, n && s.value === "chat" &&
|
|
1279
|
+
_.value = n, n && s.value === "chat" && xe(n);
|
|
1280
1280
|
}, { flush: "sync" }));
|
|
1281
|
-
async function
|
|
1281
|
+
async function Ae(i, o) {
|
|
1282
1282
|
let s = b, c = w(), l = t.altText, u = new AbortController(), d = () => u.abort(o?.reason), f = () => u.abort();
|
|
1283
1283
|
try {
|
|
1284
1284
|
if (o?.throwIfAborted(), !c || typeof l != "function") throw new Q("This AI feature isn't available.", 403, "feature_unavailable");
|
|
1285
|
-
let t = E(n.content.value), p = n.activeLocale?.value ?? null, m =
|
|
1285
|
+
let t = E(n.content.value), p = n.activeLocale?.value ?? null, m = be(t, p ?? Z(t)), h = Vn(m, i);
|
|
1286
1286
|
if (!h) throw new Q("The image is no longer available.", 409, "block_missing");
|
|
1287
1287
|
o?.addEventListener("abort", d, { once: !0 }), c.lifetime.signal.addEventListener("abort", f, { once: !0 });
|
|
1288
1288
|
let { url: g, ..._ } = h, v = await H(l({
|
|
@@ -1297,18 +1297,18 @@ function Yr(e) {
|
|
|
1297
1297
|
if (u.signal.throwIfAborted(), S(s), !T(c)) throw new DOMException("The template changed.", "AbortError");
|
|
1298
1298
|
return v.alt;
|
|
1299
1299
|
} catch (e) {
|
|
1300
|
-
throw
|
|
1300
|
+
throw G(e), e;
|
|
1301
1301
|
} finally {
|
|
1302
1302
|
o?.removeEventListener("abort", d), c?.lifetime.signal.removeEventListener("abort", f);
|
|
1303
1303
|
}
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1305
|
+
function je(e) {
|
|
1306
1306
|
let t = b, r = w();
|
|
1307
1307
|
if (!r || e.length === 0) return Promise.resolve();
|
|
1308
|
-
let i = n.activeLocale?.value ?? null, a = E(n.content.value), o =
|
|
1308
|
+
let i = n.activeLocale?.value ?? null, a = E(n.content.value), o = be(a, i ?? Z(a)), s = e.map(({ blockId: e, alt: t, decorative: n, expect: r }) => ({
|
|
1309
1309
|
op: "updateBlock",
|
|
1310
1310
|
blockId: e,
|
|
1311
|
-
expect: { ...r ??
|
|
1311
|
+
expect: { ...r ?? Bn(o, e) ?? {
|
|
1312
1312
|
src: null,
|
|
1313
1313
|
alt: null,
|
|
1314
1314
|
decorative: null
|
|
@@ -1324,27 +1324,27 @@ function Yr(e) {
|
|
|
1324
1324
|
let n = crypto.randomUUID();
|
|
1325
1325
|
for (let t = 0; t < s.length; t += 100) {
|
|
1326
1326
|
V(e);
|
|
1327
|
-
let a =
|
|
1328
|
-
if (!a.applied) throw new
|
|
1327
|
+
let a = oe(s.slice(t, t + 100), n, r, i);
|
|
1328
|
+
if (!a.applied) throw new _e(a.message, {
|
|
1329
1329
|
code: a.code,
|
|
1330
1330
|
opIndex: a.opIndex
|
|
1331
1331
|
});
|
|
1332
1332
|
}
|
|
1333
1333
|
} catch (e) {
|
|
1334
|
-
throw
|
|
1334
|
+
throw G(e), e;
|
|
1335
1335
|
}
|
|
1336
1336
|
}, () => {});
|
|
1337
1337
|
}
|
|
1338
1338
|
return {
|
|
1339
1339
|
capability: {
|
|
1340
1340
|
isFeatureEnabled: (e) => y.value && C(e),
|
|
1341
|
-
open:
|
|
1342
|
-
startImport:
|
|
1341
|
+
open: Se,
|
|
1342
|
+
startImport: Ce,
|
|
1343
1343
|
highlightOf: (e) => _.value?.highlights.value.get(e) ?? null
|
|
1344
1344
|
},
|
|
1345
1345
|
panel: s,
|
|
1346
|
-
open:
|
|
1347
|
-
close:
|
|
1346
|
+
open: Se,
|
|
1347
|
+
close: De,
|
|
1348
1348
|
has: C,
|
|
1349
1349
|
templateId: g,
|
|
1350
1350
|
sessionIdentity: P(() => _.value),
|
|
@@ -1365,14 +1365,14 @@ function Yr(e) {
|
|
|
1365
1365
|
failedPrompt: ee,
|
|
1366
1366
|
failedAttachments: F,
|
|
1367
1367
|
importQueue: I,
|
|
1368
|
-
startImport:
|
|
1368
|
+
startImport: Ce,
|
|
1369
1369
|
isTemplateEmpty: k,
|
|
1370
1370
|
send: (e, n = []) => {
|
|
1371
1371
|
let r = t.chat;
|
|
1372
|
-
return typeof r == "function" ?
|
|
1372
|
+
return typeof r == "function" ? ue("chat", e, (t, i, a) => r({
|
|
1373
1373
|
...t,
|
|
1374
1374
|
message: e,
|
|
1375
|
-
selectedBlockId:
|
|
1375
|
+
selectedBlockId: ie(),
|
|
1376
1376
|
attachments: n.map((e) => ({
|
|
1377
1377
|
file: e,
|
|
1378
1378
|
name: e.name,
|
|
@@ -1387,7 +1387,7 @@ function Yr(e) {
|
|
|
1387
1387
|
},
|
|
1388
1388
|
fix: (e) => {
|
|
1389
1389
|
let n = t.fixFinding;
|
|
1390
|
-
return typeof n == "function" ?
|
|
1390
|
+
return typeof n == "function" ? ue("fix", `Fix: ${e.message}`, (t, r, i) => n({
|
|
1391
1391
|
...t,
|
|
1392
1392
|
finding: e
|
|
1393
1393
|
}, r, i)) : Promise.resolve({
|
|
@@ -1397,10 +1397,10 @@ function Yr(e) {
|
|
|
1397
1397
|
failed: !0
|
|
1398
1398
|
});
|
|
1399
1399
|
},
|
|
1400
|
-
stop:
|
|
1401
|
-
newChat:
|
|
1402
|
-
undoMessage: (e) =>
|
|
1403
|
-
redoMessage: (e) =>
|
|
1400
|
+
stop: Ee,
|
|
1401
|
+
newChat: ge,
|
|
1402
|
+
undoMessage: (e) => de(e, "undo"),
|
|
1403
|
+
redoMessage: (e) => de(e, "redo"),
|
|
1404
1404
|
rewrite: (e, n, r) => {
|
|
1405
1405
|
let i = b, a = w(), o = t.rewrite;
|
|
1406
1406
|
return !a || typeof o != "function" ? Promise.reject(/* @__PURE__ */ Error("Rewrite isn't available.")) : R("read", a, async (t) => {
|
|
@@ -1416,7 +1416,7 @@ function Yr(e) {
|
|
|
1416
1416
|
} }, t.controller.signal), t.controller.signal);
|
|
1417
1417
|
return S(i), s;
|
|
1418
1418
|
} catch (e) {
|
|
1419
|
-
throw
|
|
1419
|
+
throw G(e), e;
|
|
1420
1420
|
} finally {
|
|
1421
1421
|
r.removeEventListener("abort", s);
|
|
1422
1422
|
}
|
|
@@ -1424,71 +1424,67 @@ function Yr(e) {
|
|
|
1424
1424
|
throw new DOMException("Rewrite stopped.", "AbortError");
|
|
1425
1425
|
});
|
|
1426
1426
|
},
|
|
1427
|
-
draftAltText:
|
|
1428
|
-
applyAltTexts:
|
|
1427
|
+
draftAltText: Ae,
|
|
1428
|
+
applyAltTexts: je,
|
|
1429
1429
|
destroy: () => {
|
|
1430
1430
|
if (l) return;
|
|
1431
1431
|
l = !0;
|
|
1432
1432
|
let e = _.value;
|
|
1433
|
-
e &&
|
|
1434
|
-
for (let e of
|
|
1435
|
-
|
|
1433
|
+
e && Te(e), _.value = null, x();
|
|
1434
|
+
for (let e of ke) e();
|
|
1435
|
+
ke.length = 0;
|
|
1436
1436
|
}
|
|
1437
1437
|
};
|
|
1438
1438
|
}
|
|
1439
1439
|
// src/utils/aiMergeTags.ts
|
|
1440
|
-
var
|
|
1440
|
+
var Qr = {
|
|
1441
1441
|
tags: 500,
|
|
1442
1442
|
value: 200,
|
|
1443
1443
|
label: 100,
|
|
1444
1444
|
group: 100,
|
|
1445
1445
|
description: 200
|
|
1446
1446
|
};
|
|
1447
|
-
function
|
|
1447
|
+
function $r(e, t) {
|
|
1448
1448
|
let n = Array.from(e);
|
|
1449
1449
|
return n.length > t ? n.slice(0, t).join("") : e;
|
|
1450
1450
|
}
|
|
1451
|
-
function
|
|
1452
|
-
|
|
1453
|
-
let n = re[t];
|
|
1454
|
-
if (n.value.source === e.value.source && n.logic.source === e.logic.source) return t;
|
|
1455
|
-
}
|
|
1456
|
-
return "custom";
|
|
1451
|
+
function ei(e) {
|
|
1452
|
+
return Ce(e) ?? "custom";
|
|
1457
1453
|
}
|
|
1458
|
-
function
|
|
1454
|
+
function ti(e, t) {
|
|
1459
1455
|
let n = [];
|
|
1460
1456
|
for (let t of e) {
|
|
1461
|
-
if (n.length ===
|
|
1457
|
+
if (n.length === Qr.tags) break;
|
|
1462
1458
|
let e = typeof t?.value == "string" ? t.value : "";
|
|
1463
|
-
e === "" || Array.from(e).length >
|
|
1459
|
+
e === "" || Array.from(e).length > Qr.value || n.push({
|
|
1464
1460
|
value: e,
|
|
1465
|
-
label:
|
|
1466
|
-
...typeof t.group == "string" && t.group !== "" ? { group:
|
|
1467
|
-
...typeof t.description == "string" && t.description !== "" ? { description:
|
|
1461
|
+
label: $r(typeof t.label == "string" && t.label !== "" ? t.label : e, Qr.label),
|
|
1462
|
+
...typeof t.group == "string" && t.group !== "" ? { group: $r(t.group, Qr.group) } : {},
|
|
1463
|
+
...typeof t.description == "string" && t.description !== "" ? { description: $r(t.description, Qr.description) } : {}
|
|
1468
1464
|
});
|
|
1469
1465
|
}
|
|
1470
1466
|
return {
|
|
1471
|
-
syntax:
|
|
1467
|
+
syntax: ei(t),
|
|
1472
1468
|
tags: n
|
|
1473
1469
|
};
|
|
1474
1470
|
}
|
|
1475
1471
|
// src/composables/useMediaFeature.ts
|
|
1476
|
-
function
|
|
1472
|
+
function ni(e) {
|
|
1477
1473
|
return e instanceof Error ? e : Error(String(e));
|
|
1478
1474
|
}
|
|
1479
|
-
function
|
|
1475
|
+
function ri(e, t, n) {
|
|
1480
1476
|
let r = e.maxFileSize ?? Infinity;
|
|
1481
1477
|
if (t.size > r) return /* @__PURE__ */ Error(`Image is too large (${t.size} bytes). Maximum allowed is ${r} bytes.`);
|
|
1482
1478
|
let i = e.mimeTypes;
|
|
1483
1479
|
return !i || (n && n.length > 0 ? n : Object.keys(i)).some((e) => i[e]?.includes(t.type) ?? !1) ? null : /* @__PURE__ */ Error(`Unsupported image type: ${t.type || "unknown"}.`);
|
|
1484
1480
|
}
|
|
1485
|
-
function
|
|
1481
|
+
function ii(e) {
|
|
1486
1482
|
let { provider: t, onRequestMedia: n, getTemplateId: r, onError: i } = e, a = z(!1), o = z(void 0), s = P(() => r?.()), c = P(() => !!n || typeof t?.create == "function"), l = null;
|
|
1487
1483
|
function u(e) {
|
|
1488
1484
|
a.value = !1, l?.(e), l = null;
|
|
1489
1485
|
}
|
|
1490
1486
|
function d(e) {
|
|
1491
|
-
u(
|
|
1487
|
+
u(ai(e));
|
|
1492
1488
|
}
|
|
1493
1489
|
function f() {
|
|
1494
1490
|
u(null);
|
|
@@ -1501,7 +1497,7 @@ function ni(e) {
|
|
|
1501
1497
|
if (!t) return null;
|
|
1502
1498
|
if (e?.files?.length) {
|
|
1503
1499
|
if (typeof t.create != "function") return null;
|
|
1504
|
-
let n = e.files[0], a =
|
|
1500
|
+
let n = e.files[0], a = ri(t, n, e.accept);
|
|
1505
1501
|
if (a) return i?.(a), null;
|
|
1506
1502
|
let o = r?.();
|
|
1507
1503
|
try {
|
|
@@ -1512,11 +1508,11 @@ function ni(e) {
|
|
|
1512
1508
|
try {
|
|
1513
1509
|
t.onCreated?.(e);
|
|
1514
1510
|
} catch (e) {
|
|
1515
|
-
i?.(
|
|
1511
|
+
i?.(ni(e));
|
|
1516
1512
|
}
|
|
1517
|
-
return
|
|
1513
|
+
return ai(e);
|
|
1518
1514
|
} catch (e) {
|
|
1519
|
-
return i?.(
|
|
1515
|
+
return i?.(ni(e)), null;
|
|
1520
1516
|
}
|
|
1521
1517
|
}
|
|
1522
1518
|
return l &&= (l(null), null), o.value = e?.accept, a.value = !0, new Promise((e) => {
|
|
@@ -1532,8 +1528,8 @@ function ni(e) {
|
|
|
1532
1528
|
onError: i
|
|
1533
1529
|
};
|
|
1534
1530
|
}
|
|
1535
|
-
function
|
|
1536
|
-
let t =
|
|
1531
|
+
function ai(e) {
|
|
1532
|
+
let t = ie(e.width, e.height);
|
|
1537
1533
|
return {
|
|
1538
1534
|
url: e.url,
|
|
1539
1535
|
alt: e.alt,
|
|
@@ -1544,8 +1540,8 @@ function ri(e) {
|
|
|
1544
1540
|
};
|
|
1545
1541
|
}
|
|
1546
1542
|
// src/composables/useSavedBlocksFeature.ts
|
|
1547
|
-
function
|
|
1548
|
-
let { provider: t, editor: n } = e, r =
|
|
1543
|
+
function oi(e) {
|
|
1544
|
+
let { provider: t, editor: n } = e, r = se({
|
|
1549
1545
|
provider: t,
|
|
1550
1546
|
onError: e.onError
|
|
1551
1547
|
}), i = z(!1), a = z(!1), c = z(!1), l = z(/* @__PURE__ */ new Set()), u = P(() => c.value), d = P(() => l.value.size);
|
|
@@ -1580,7 +1576,7 @@ function ii(e) {
|
|
|
1580
1576
|
}
|
|
1581
1577
|
function b(e, t) {
|
|
1582
1578
|
for (let r = 0; r < e.content.length; r++) {
|
|
1583
|
-
let i =
|
|
1579
|
+
let i = Le(e.content[r]), a = t === void 0 ? void 0 : t + r;
|
|
1584
1580
|
n.addBlock(i, void 0, void 0, a);
|
|
1585
1581
|
}
|
|
1586
1582
|
a.value = !1;
|
|
@@ -1589,7 +1585,7 @@ function ii(e) {
|
|
|
1589
1585
|
r.load().catch(() => {});
|
|
1590
1586
|
}
|
|
1591
1587
|
let S = P(() => r.savedBlocks.value.length), C = P(() => e.isAvailable?.() ?? !0);
|
|
1592
|
-
return s(
|
|
1588
|
+
return s(Ct, r), {
|
|
1593
1589
|
headless: r,
|
|
1594
1590
|
isPicking: u,
|
|
1595
1591
|
pickedIds: l,
|
|
@@ -1625,11 +1621,11 @@ function ii(e) {
|
|
|
1625
1621
|
};
|
|
1626
1622
|
}
|
|
1627
1623
|
// src/composables/useTemplatesFeature.ts
|
|
1628
|
-
var
|
|
1629
|
-
function
|
|
1630
|
-
let { provider: t, editor: n } = e, r = z("idle"), i = z(""), { start: a, stop: o } =
|
|
1624
|
+
var si = 3e3;
|
|
1625
|
+
function ci(e) {
|
|
1626
|
+
let { provider: t, editor: n } = e, r = z("idle"), i = z(""), { start: a, stop: o } = $n(() => {
|
|
1631
1627
|
r.value = "idle";
|
|
1632
|
-
},
|
|
1628
|
+
}, si, { immediate: !1 }), s = P(() => typeof t.create == "function"), c = P(() => typeof t.save == "function"), l = P(() => e.isAvailable?.() ?? !0), u = P(() => n.state.template?.name), d = P(() => {
|
|
1633
1629
|
let e = n.state.template;
|
|
1634
1630
|
return e?.updatedAt ? {
|
|
1635
1631
|
iso: e.updatedAt,
|
|
@@ -1693,7 +1689,7 @@ function oi(e) {
|
|
|
1693
1689
|
let t = e.trim();
|
|
1694
1690
|
t && t !== n.state.template?.name && (n.setName(t), S("rename"));
|
|
1695
1691
|
}
|
|
1696
|
-
return e.guardUnsavedChanges !== !1 &&
|
|
1692
|
+
return e.guardUnsavedChanges !== !1 && Kn(window, "beforeunload", (e) => {
|
|
1697
1693
|
n.state.isDirty && (e.preventDefault(), e.returnValue = "");
|
|
1698
1694
|
}), {
|
|
1699
1695
|
save: g,
|
|
@@ -1727,15 +1723,15 @@ function oi(e) {
|
|
|
1727
1723
|
};
|
|
1728
1724
|
}
|
|
1729
1725
|
// src/utils/toMjml.ts
|
|
1730
|
-
async function
|
|
1726
|
+
async function li() {
|
|
1731
1727
|
try {
|
|
1732
|
-
return await import("./chunks/src-
|
|
1728
|
+
return await import("./chunks/src-GgKlXNxy.js");
|
|
1733
1729
|
} catch {
|
|
1734
1730
|
return null;
|
|
1735
1731
|
}
|
|
1736
1732
|
}
|
|
1737
|
-
async function
|
|
1738
|
-
let n = await
|
|
1733
|
+
async function ui(e, t) {
|
|
1734
|
+
let n = await li();
|
|
1739
1735
|
if (!n) throw Error("[Templatical] toMjml() requires the @templatical/renderer package. Please install it.");
|
|
1740
1736
|
let r = e.getCustomBlockStylesheet, i = e.getFonts?.(), a = e.getLayout?.();
|
|
1741
1737
|
return n.renderToMjml(e.getContent(), {
|
|
@@ -1751,11 +1747,11 @@ async function ci(e, t) {
|
|
|
1751
1747
|
});
|
|
1752
1748
|
}
|
|
1753
1749
|
// src/composables/useTestEmailFeature.ts
|
|
1754
|
-
var
|
|
1755
|
-
function
|
|
1750
|
+
var di = 1200;
|
|
1751
|
+
function fi(e) {
|
|
1756
1752
|
return e instanceof Error ? e : Error(String(e));
|
|
1757
1753
|
}
|
|
1758
|
-
function
|
|
1754
|
+
function pi(e) {
|
|
1759
1755
|
let { provider: t } = e, n = z(!1), r = z(!1), i = z(!1), a = z(null), o = null, s = !1;
|
|
1760
1756
|
function c() {
|
|
1761
1757
|
o !== null && (clearTimeout(o), o = null);
|
|
@@ -1777,8 +1773,8 @@ function di(e) {
|
|
|
1777
1773
|
if (t.includeMjml && e.renderMjml) try {
|
|
1778
1774
|
return await e.renderMjml();
|
|
1779
1775
|
} catch (t) {
|
|
1780
|
-
if ((e.usesLocalRenderer?.() ?? !0) && await
|
|
1781
|
-
s || (s = !0,
|
|
1776
|
+
if ((e.usesLocalRenderer?.() ?? !0) && await li() === null) {
|
|
1777
|
+
s || (s = !0, qn.warn("testEmail.includeMjml is set but @templatical/renderer is not installed — sending the template as JSON only. Install it to receive `payload.mjml`."));
|
|
1782
1778
|
return;
|
|
1783
1779
|
}
|
|
1784
1780
|
throw t;
|
|
@@ -1788,7 +1784,7 @@ function di(e) {
|
|
|
1788
1784
|
try {
|
|
1789
1785
|
t.onSent?.(n);
|
|
1790
1786
|
} catch (t) {
|
|
1791
|
-
e.onError?.(
|
|
1787
|
+
e.onError?.(fi(t));
|
|
1792
1788
|
}
|
|
1793
1789
|
}
|
|
1794
1790
|
async function _(n) {
|
|
@@ -1804,9 +1800,9 @@ function di(e) {
|
|
|
1804
1800
|
...r === void 0 ? {} : { mjml: r },
|
|
1805
1801
|
...s === void 0 ? {} : { allowedRecipients: s }
|
|
1806
1802
|
};
|
|
1807
|
-
await t.send(a), i.value = !0, o = setTimeout(p,
|
|
1803
|
+
await t.send(a), i.value = !0, o = setTimeout(p, di), g(a);
|
|
1808
1804
|
} catch (t) {
|
|
1809
|
-
let n =
|
|
1805
|
+
let n = fi(t);
|
|
1810
1806
|
a.value = {
|
|
1811
1807
|
kind: "provider",
|
|
1812
1808
|
message: n.message
|
|
@@ -1834,8 +1830,8 @@ function di(e) {
|
|
|
1834
1830
|
};
|
|
1835
1831
|
}
|
|
1836
1832
|
// src/composables/useVersionHistoryFeature.ts
|
|
1837
|
-
function
|
|
1838
|
-
let { provider: t, editor: n, history: r, conditionPreview: i, autoSave: a } = e, o = e.collaboration ?? null, s =
|
|
1833
|
+
function mi(e) {
|
|
1834
|
+
let { provider: t, editor: n, history: r, conditionPreview: i, autoSave: a } = e, o = e.collaboration ?? null, s = J({
|
|
1839
1835
|
provider: t,
|
|
1840
1836
|
getTemplateId: () => n.state.template?.id ?? null,
|
|
1841
1837
|
onError: e.onError
|
|
@@ -1861,7 +1857,7 @@ function fi(e) {
|
|
|
1861
1857
|
return;
|
|
1862
1858
|
}
|
|
1863
1859
|
let t = await s.resolveContent(e);
|
|
1864
|
-
f || (l.value =
|
|
1860
|
+
f || (l.value = Ie(n.content.value), a?.pause(), o?.suspend(), c.value = e, n.setContent(t, !1));
|
|
1865
1861
|
}
|
|
1866
1862
|
async function E() {
|
|
1867
1863
|
c.value && (n.state.isDirty ? u.value = !0 : await A());
|
|
@@ -1945,11 +1941,11 @@ function fi(e) {
|
|
|
1945
1941
|
};
|
|
1946
1942
|
}
|
|
1947
1943
|
// src/types/auto-save.ts
|
|
1948
|
-
function
|
|
1944
|
+
function hi(e, t) {
|
|
1949
1945
|
return e ?? t;
|
|
1950
1946
|
}
|
|
1951
1947
|
// src/utils/resolveInsertPosition.ts
|
|
1952
|
-
function
|
|
1948
|
+
function gi(e) {
|
|
1953
1949
|
let { blockType: t, selectedBlockId: n, findBlockLocation: r, isBlockLocked: i } = e;
|
|
1954
1950
|
if (!n) return {};
|
|
1955
1951
|
let a = r(n);
|
|
@@ -1966,8 +1962,8 @@ function mi(e) {
|
|
|
1966
1962
|
};
|
|
1967
1963
|
}
|
|
1968
1964
|
// src/utils/insertBlockAtSelection.ts
|
|
1969
|
-
function
|
|
1970
|
-
let { targetSectionId: n, columnIndex: r, index: i } =
|
|
1965
|
+
function _i(e, t) {
|
|
1966
|
+
let { targetSectionId: n, columnIndex: r, index: i } = gi({
|
|
1971
1967
|
blockType: t.type,
|
|
1972
1968
|
selectedBlockId: e.state.selectedBlockId,
|
|
1973
1969
|
findBlockLocation: e.findBlockLocation,
|
|
@@ -1976,7 +1972,7 @@ function hi(e, t) {
|
|
|
1976
1972
|
return e.addBlock(t, n, r, i), e.findBlockLocation(t.id) ? (e.selectBlock(t.id), !0) : !1;
|
|
1977
1973
|
}
|
|
1978
1974
|
// src/utils/withCollaborativeSave.ts
|
|
1979
|
-
function
|
|
1975
|
+
function vi(e, t, n) {
|
|
1980
1976
|
let { save: r, create: i } = e;
|
|
1981
1977
|
if (typeof r != "function") return e;
|
|
1982
1978
|
let a = /* @__PURE__ */ new Map(), o = (e) => (a.set(e.id, e.name), e);
|
|
@@ -1992,27 +1988,27 @@ function gi(e, t, n) {
|
|
|
1992
1988
|
};
|
|
1993
1989
|
}
|
|
1994
1990
|
// src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
|
|
1995
|
-
var
|
|
1991
|
+
var yi = ["aria-label"], bi = ["lang", "dir"], xi = {
|
|
1996
1992
|
key: 0,
|
|
1997
1993
|
role: "status",
|
|
1998
1994
|
"aria-busy": "true",
|
|
1999
1995
|
"data-testid": "preview-resolution-loading",
|
|
2000
1996
|
class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-6"
|
|
2001
|
-
},
|
|
1997
|
+
}, Si = { class: "tpl:sr-only" }, Ci = {
|
|
2002
1998
|
key: 1,
|
|
2003
1999
|
role: "status",
|
|
2004
2000
|
"data-testid": "preview-resolution-failed",
|
|
2005
2001
|
class: "tpl:mx-6 tpl:mt-4 tpl:rounded-md tpl:px-3 tpl:py-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg-hover)]"
|
|
2006
|
-
},
|
|
2002
|
+
}, wi = {
|
|
2007
2003
|
key: 0,
|
|
2008
2004
|
class: "tpl-canvas-empty-content tpl:flex tpl:flex-col tpl:items-center"
|
|
2009
|
-
},
|
|
2005
|
+
}, Ti = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, Ei = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, Di = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, Oi = {
|
|
2010
2006
|
key: 0,
|
|
2011
2007
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
2012
|
-
},
|
|
2008
|
+
}, ki = {
|
|
2013
2009
|
key: 1,
|
|
2014
2010
|
class: "tpl:m-0 tpl:mt-4 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
2015
|
-
},
|
|
2011
|
+
}, Ai = { class: "tpl:relative" }, ji = /*#__PURE__*/ Be(/* @__PURE__ */ n({
|
|
2016
2012
|
__name: "Canvas",
|
|
2017
2013
|
props: {
|
|
2018
2014
|
viewport: {},
|
|
@@ -2037,12 +2033,12 @@ var _i = ["aria-label"], vi = ["lang", "dir"], yi = {
|
|
|
2037
2033
|
table: yn,
|
|
2038
2034
|
video: Dn,
|
|
2039
2035
|
custom: jn,
|
|
2040
|
-
wrapper:
|
|
2041
|
-
}, u = n, d = r, { t: p } = $(), m =
|
|
2036
|
+
wrapper: Jn
|
|
2037
|
+
}, u = n, d = r, { t: p } = $(), m = zt(Ht, "Canvas"), { displayBlock: h, settings: g } = dt({
|
|
2042
2038
|
content: P(() => u.content),
|
|
2043
2039
|
activeLocale: P(() => u.previewMode ? null : m.activeLocale?.value ?? null)
|
|
2044
|
-
}), _ =
|
|
2045
|
-
s(
|
|
2040
|
+
}), _ = zt(Et, "Canvas"), v = f(Ft, null), x = f(Pt, null), E = f(Ot, {}), D = f(St, null), O = f(_t, null);
|
|
2041
|
+
s(Lt, P(() => u.previewMode && (D?.value ?? !1) && !O?.isConfigured));
|
|
2046
2042
|
let k = P(() => E.ai?.isFeatureEnabled("chat") ?? !1), M = P(() => k.value && (E.ai?.isFeatureEnabled("chatAttachments") ?? !1)), N = z(null);
|
|
2047
2043
|
function ee() {
|
|
2048
2044
|
N.value?.click();
|
|
@@ -2051,38 +2047,38 @@ var _i = ["aria-label"], vi = ["lang", "dir"], yi = {
|
|
|
2051
2047
|
let t = e.target, n = Array.from(t.files ?? []);
|
|
2052
2048
|
t.value = "", n.length && E.ai?.startImport(n);
|
|
2053
2049
|
}
|
|
2054
|
-
let L = f(
|
|
2050
|
+
let L = f(wt, null), V = P({
|
|
2055
2051
|
get: () => u.content.blocks,
|
|
2056
2052
|
set: (e) => gn(m, e)
|
|
2057
|
-
}), U = P(() =>
|
|
2058
|
-
function re() {
|
|
2059
|
-
J.value && (Y.value += 1);
|
|
2060
|
-
}
|
|
2053
|
+
}), U = P(() => ce(g.value, u.viewport)), ne = P(() => U.value + 192), W = P(() => rn(g.value, _.resolveFontFamily)), G = P(() => g.value?.locale?.trim() || void 0), K = P(() => De(g.value)), q = P(() => V.value.length === 0 && !u.previewMode), J = z(0), re = P(() => q.value && J.value > 0);
|
|
2061
2054
|
function ie() {
|
|
2062
|
-
|
|
2055
|
+
q.value && (J.value += 1);
|
|
2063
2056
|
}
|
|
2064
2057
|
function ae() {
|
|
2065
|
-
|
|
2058
|
+
q.value && (J.value = Math.max(0, J.value - 1));
|
|
2066
2059
|
}
|
|
2067
|
-
function
|
|
2060
|
+
function se() {
|
|
2061
|
+
J.value = 0;
|
|
2062
|
+
}
|
|
2063
|
+
function Y(e) {
|
|
2068
2064
|
u.previewMode || E.savedBlocks?.isPicking.value || e.target === e.currentTarget && d("select-block", null);
|
|
2069
2065
|
}
|
|
2070
|
-
function
|
|
2071
|
-
return
|
|
2066
|
+
function le(e) {
|
|
2067
|
+
return ln(e, x, o);
|
|
2072
2068
|
}
|
|
2073
|
-
function
|
|
2069
|
+
function ue(e) {
|
|
2074
2070
|
return E.collaboration?.lockOf(e) != null;
|
|
2075
2071
|
}
|
|
2076
|
-
function
|
|
2077
|
-
if (u.previewMode ||
|
|
2072
|
+
function de(e) {
|
|
2073
|
+
if (u.previewMode || ue(e)) return;
|
|
2078
2074
|
let t = E.savedBlocks;
|
|
2079
2075
|
t?.isPicking.value ? t.togglePick(e) : d("select-block", e);
|
|
2080
2076
|
}
|
|
2081
|
-
function
|
|
2077
|
+
function fe(e) {
|
|
2082
2078
|
return E.savedBlocks?.isPicked(e) ?? !1;
|
|
2083
2079
|
}
|
|
2084
|
-
let
|
|
2085
|
-
function
|
|
2080
|
+
let X = P(() => E.savedBlocks?.isPicking.value === !0);
|
|
2081
|
+
function pe(e, t) {
|
|
2086
2082
|
e.type === "custom" && m.updateBlock(e.id, {
|
|
2087
2083
|
fieldValues: t.fieldValues,
|
|
2088
2084
|
dataSourceFetched: t.dataSourceFetched
|
|
@@ -2091,11 +2087,11 @@ var _i = ["aria-label"], vi = ["lang", "dir"], yi = {
|
|
|
2091
2087
|
return (r, o) => (i(), y("div", {
|
|
2092
2088
|
class: "tpl-canvas-stage tpl:relative tpl:mx-auto tpl:flex tpl:justify-center tpl:rounded-lg",
|
|
2093
2089
|
style: F({
|
|
2094
|
-
width: `${
|
|
2090
|
+
width: `${ne.value}px`,
|
|
2095
2091
|
maxWidth: "calc(100% - 4 * var(--tpl-base-size))",
|
|
2096
2092
|
minWidth: "min-content",
|
|
2097
2093
|
boxShadow: n.darkMode ? "none" : "var(--tpl-shadow-xl)",
|
|
2098
|
-
transition: S(
|
|
2094
|
+
transition: S(oe)
|
|
2099
2095
|
})
|
|
2100
2096
|
}, [A("div", {
|
|
2101
2097
|
class: "tpl-canvas-bg tpl:absolute tpl:inset-0 tpl:rounded-lg tpl:pointer-events-none",
|
|
@@ -2111,22 +2107,23 @@ var _i = ["aria-label"], vi = ["lang", "dir"], yi = {
|
|
|
2111
2107
|
class: "tpl-canvas-wrapper tpl:relative",
|
|
2112
2108
|
style: F({
|
|
2113
2109
|
width: `${U.value}px`,
|
|
2114
|
-
|
|
2110
|
+
[S(Mn)]: `${U.value}px`,
|
|
2111
|
+
transition: S(oe)
|
|
2115
2112
|
})
|
|
2116
2113
|
}, [A("div", {
|
|
2117
2114
|
class: C(["tpl-canvas tpl:relative tpl:rounded-lg", {
|
|
2118
2115
|
"tpl-canvas--dark-mode": n.darkMode,
|
|
2119
2116
|
"tpl-preview-mode": n.previewMode
|
|
2120
2117
|
}]),
|
|
2121
|
-
lang:
|
|
2122
|
-
dir:
|
|
2123
|
-
style: F(
|
|
2124
|
-
onClick:
|
|
2125
|
-
}, [S(O)?.isInitialResolve.value ? (i(), y("div",
|
|
2118
|
+
lang: G.value,
|
|
2119
|
+
dir: K.value,
|
|
2120
|
+
style: F(W.value),
|
|
2121
|
+
onClick: Y
|
|
2122
|
+
}, [S(O)?.isInitialResolve.value ? (i(), y("div", xi, [A("span", Si, j(S(p).previewResolution.resolving), 1), (i(), y(B, null, l(3, (e) => A("div", {
|
|
2126
2123
|
key: e,
|
|
2127
2124
|
"aria-hidden": "true",
|
|
2128
2125
|
class: "tpl-pulse tpl:h-16 tpl:rounded-md tpl:bg-[var(--tpl-bg-hover)]"
|
|
2129
|
-
})), 64))])) : S(O)?.hasFailed.value ? (i(), y("p",
|
|
2126
|
+
})), 64))])) : S(O)?.hasFailed.value ? (i(), y("p", Ci, j(S(p).previewResolution.failed), 1)) : w("", !0), c(H(S(R), {
|
|
2130
2127
|
modelValue: V.value,
|
|
2131
2128
|
"onUpdate:modelValue": o[1] ||= (e) => V.value = e,
|
|
2132
2129
|
group: "blocks",
|
|
@@ -2141,44 +2138,44 @@ var _i = ["aria-label"], vi = ["lang", "dir"], yi = {
|
|
|
2141
2138
|
"force-fallback": !0,
|
|
2142
2139
|
class: C([
|
|
2143
2140
|
"tpl-canvas-blocks",
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2141
|
+
q.value ? "tpl-canvas-empty tpl:m-6 tpl:flex tpl:min-h-[400px] tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-xl tpl:border-2 tpl:border-dashed tpl:px-10 tpl:py-12 tpl:text-center tpl:bg-[var(--tpl-bg-elevated)] tpl:font-[var(--tpl-font-family)] tpl:transition-colors" : "",
|
|
2142
|
+
q.value && re.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
|
|
2143
|
+
q.value && !re.value ? "tpl:border-[var(--tpl-primary)]" : ""
|
|
2147
2144
|
]),
|
|
2148
2145
|
onUpdate: o[2] ||= (e) => S(gn)(S(m), V.value, void 0, 0, e),
|
|
2149
|
-
onDragenter:
|
|
2150
|
-
onDragleave:
|
|
2151
|
-
onDrop:
|
|
2146
|
+
onDragenter: ie,
|
|
2147
|
+
onDragleave: ae,
|
|
2148
|
+
onDrop: se
|
|
2152
2149
|
}, {
|
|
2153
|
-
default: a(() => [
|
|
2154
|
-
A("div",
|
|
2150
|
+
default: a(() => [q.value ? (i(), y("div", wi, [
|
|
2151
|
+
A("div", Ti, [H(S(Ke), {
|
|
2155
2152
|
size: 48,
|
|
2156
2153
|
"stroke-width": 1
|
|
2157
2154
|
})]),
|
|
2158
|
-
A("p",
|
|
2159
|
-
A("p",
|
|
2160
|
-
k.value ? (i(), y("p",
|
|
2155
|
+
A("p", Ei, j(S(p).canvas.noBlocks), 1),
|
|
2156
|
+
A("p", Di, j(S(p).canvas.dragHint), 1),
|
|
2157
|
+
k.value ? (i(), y("p", Oi, [
|
|
2161
2158
|
b(j(S(p).ai.canvas.chatHint) + " ", 1),
|
|
2162
2159
|
A("button", {
|
|
2163
2160
|
type: "button",
|
|
2164
2161
|
"data-testid": "canvas-ai-chat",
|
|
2165
2162
|
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)]",
|
|
2166
2163
|
onClick: o[0] ||= (e) => S(E).ai?.open("chat")
|
|
2167
|
-
}, [H(S(
|
|
2164
|
+
}, [H(S(We), {
|
|
2168
2165
|
size: 14,
|
|
2169
2166
|
"stroke-width": 2,
|
|
2170
2167
|
"aria-hidden": "true"
|
|
2171
2168
|
}), b(" " + j(S(p).ai.menu.chat), 1)]),
|
|
2172
2169
|
b(" " + j(S(p).ai.canvas.chatHintSuffix), 1)
|
|
2173
2170
|
])) : w("", !0),
|
|
2174
|
-
M.value ? (i(), y("p",
|
|
2171
|
+
M.value ? (i(), y("p", ki, [
|
|
2175
2172
|
b(j(S(p).ai.canvas.importHint) + " ", 1),
|
|
2176
2173
|
A("button", {
|
|
2177
2174
|
type: "button",
|
|
2178
2175
|
"data-testid": "canvas-ai-import",
|
|
2179
2176
|
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)]",
|
|
2180
2177
|
onClick: ee
|
|
2181
|
-
}, [H(S(
|
|
2178
|
+
}, [H(S(lt), {
|
|
2182
2179
|
size: 14,
|
|
2183
2180
|
"stroke-width": 2,
|
|
2184
2181
|
"aria-hidden": "true"
|
|
@@ -2196,7 +2193,7 @@ var _i = ["aria-label"], vi = ["lang", "dir"], yi = {
|
|
|
2196
2193
|
])) : w("", !0), (i(!0), y(B, null, l(V.value, (r) => c((i(), y("div", {
|
|
2197
2194
|
key: r.id,
|
|
2198
2195
|
class: "tpl-block-item"
|
|
2199
|
-
}, [A("div",
|
|
2196
|
+
}, [A("div", Ai, [r.type === "wrapper" ? (i(), T(t(le(r)), {
|
|
2200
2197
|
key: 0,
|
|
2201
2198
|
block: r,
|
|
2202
2199
|
viewport: n.viewport
|
|
@@ -2204,15 +2201,15 @@ var _i = ["aria-label"], vi = ["lang", "dir"], yi = {
|
|
|
2204
2201
|
key: 1,
|
|
2205
2202
|
block: r,
|
|
2206
2203
|
"display-block": S(h)(r),
|
|
2207
|
-
"is-selected": !n.previewMode && !
|
|
2208
|
-
picked:
|
|
2204
|
+
"is-selected": !n.previewMode && !X.value && n.selectedBlockId === r.id && !ue(r.id),
|
|
2205
|
+
picked: fe(r.id),
|
|
2209
2206
|
viewport: n.viewport,
|
|
2210
2207
|
"preview-mode": n.previewMode,
|
|
2211
|
-
onSelect: (e) =>
|
|
2208
|
+
onSelect: (e) => de(r.id)
|
|
2212
2209
|
}, {
|
|
2213
|
-
default: a(() => [(i(), T(t(
|
|
2210
|
+
default: a(() => [(i(), T(t(le(r)), e({ block: S(h)(r) }, { ref_for: !0 }, r.type === "section" ? { sourceBlock: r } : {}, {
|
|
2214
2211
|
viewport: n.viewport,
|
|
2215
|
-
onFetchData: (e) =>
|
|
2212
|
+
onFetchData: (e) => pe(r, e),
|
|
2216
2213
|
onUpdate: (e) => S(m).updateBlock(r.id, e)
|
|
2217
2214
|
}), null, 16, [
|
|
2218
2215
|
"block",
|
|
@@ -2235,12 +2232,12 @@ var _i = ["aria-label"], vi = ["lang", "dir"], yi = {
|
|
|
2235
2232
|
"modelValue",
|
|
2236
2233
|
"disabled",
|
|
2237
2234
|
"class"
|
|
2238
|
-
]), [[te, !S(O)?.isInitialResolve.value]])], 14,
|
|
2235
|
+
]), [[te, !S(O)?.isInitialResolve.value]])], 14, bi)], 12, yi)], 4));
|
|
2239
2236
|
}
|
|
2240
|
-
}), [["__scopeId", "data-v-
|
|
2237
|
+
}), [["__scopeId", "data-v-c72f1327"]]), Mi = n({
|
|
2241
2238
|
name: "CustomBlockStylesheets",
|
|
2242
2239
|
setup() {
|
|
2243
|
-
let e = f(
|
|
2240
|
+
let e = f(At, null);
|
|
2244
2241
|
return () => e ? e.value.map((e, t) => r("style", {
|
|
2245
2242
|
key: t,
|
|
2246
2243
|
"data-tpl-custom-block-stylesheet": "",
|
|
@@ -2249,7 +2246,7 @@ var _i = ["aria-label"], vi = ["lang", "dir"], yi = {
|
|
|
2249
2246
|
}
|
|
2250
2247
|
});
|
|
2251
2248
|
// src/utils/resolvePaletteBlocks.ts
|
|
2252
|
-
function
|
|
2249
|
+
function Ni(e, t) {
|
|
2253
2250
|
if (!t || t.length === 0) return {
|
|
2254
2251
|
items: e,
|
|
2255
2252
|
unknown: []
|
|
@@ -2267,24 +2264,24 @@ function ji(e, t) {
|
|
|
2267
2264
|
};
|
|
2268
2265
|
}
|
|
2269
2266
|
// src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
2270
|
-
var
|
|
2267
|
+
var Pi = ["aria-label"], Fi = {
|
|
2271
2268
|
key: 0,
|
|
2272
2269
|
class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
|
|
2273
|
-
},
|
|
2270
|
+
}, Ii = ["aria-label"], Li = {
|
|
2274
2271
|
key: 0,
|
|
2275
2272
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
2276
|
-
},
|
|
2273
|
+
}, Ri = [
|
|
2277
2274
|
"data-palette-type",
|
|
2278
2275
|
"aria-label",
|
|
2279
2276
|
"onClick",
|
|
2280
2277
|
"onKeydown"
|
|
2281
|
-
],
|
|
2278
|
+
], zi = { 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" }, Bi = {
|
|
2282
2279
|
key: 0,
|
|
2283
2280
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
2284
|
-
},
|
|
2281
|
+
}, Vi = 4, Hi = /* @__PURE__ */ n({
|
|
2285
2282
|
__name: "Sidebar",
|
|
2286
2283
|
setup(e) {
|
|
2287
|
-
let { t: n, format: r } = $(), s = f(
|
|
2284
|
+
let { t: n, format: r } = $(), s = f(jt, []), c = f(vt, void 0), u = f(Dt, void 0), d = f(Ht, null), p = Gn(), h = f(Ot, {}), g = P(() => h.savedBlocks?.isAvailable.value === !0), _ = z(!1), v = z(!1), b = z(null), x = !1, C = 0;
|
|
2288
2285
|
m(() => {
|
|
2289
2286
|
window.clearTimeout(C);
|
|
2290
2287
|
});
|
|
@@ -2340,38 +2337,38 @@ var Mi = ["aria-label"], Ni = {
|
|
|
2340
2337
|
], te = P(() => {
|
|
2341
2338
|
let e = L.map((e) => ({
|
|
2342
2339
|
type: e,
|
|
2343
|
-
label:
|
|
2340
|
+
label: ae(e, n)
|
|
2344
2341
|
}));
|
|
2345
2342
|
return h.plan && e.splice(-1, 0, {
|
|
2346
2343
|
type: "countdown",
|
|
2347
|
-
label:
|
|
2344
|
+
label: ae("countdown", n)
|
|
2348
2345
|
}), e;
|
|
2349
2346
|
}), V = P(() => s.map((e) => ({
|
|
2350
2347
|
type: `custom:${e.type}`,
|
|
2351
2348
|
label: e.name,
|
|
2352
2349
|
isCustom: !0,
|
|
2353
2350
|
icon: e.icon
|
|
2354
|
-
}))), U = P(() => [...te.value, ...V.value]),
|
|
2355
|
-
o(() =>
|
|
2356
|
-
for (let t of e)
|
|
2351
|
+
}))), U = P(() => [...te.value, ...V.value]), ne = P(() => Ni(U.value, c)), W = P(() => ne.value.items), G = /* @__PURE__ */ new Set();
|
|
2352
|
+
o(() => ne.value.unknown, (e) => {
|
|
2353
|
+
for (let t of e) G.has(t) || (G.add(t), qn.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.`));
|
|
2357
2354
|
}, { immediate: !0 });
|
|
2358
|
-
function
|
|
2355
|
+
function K(e) {
|
|
2359
2356
|
if (e.isCustom) {
|
|
2360
2357
|
let t = e.type.replace("custom:", ""), n = s.find((e) => e.type === t);
|
|
2361
|
-
if (n) return
|
|
2358
|
+
if (n) return xe(n);
|
|
2362
2359
|
}
|
|
2363
|
-
return e.type === "hero" ? Sn(u?.value, n.blockDefaults.paragraph) :
|
|
2360
|
+
return e.type === "hero" ? Sn(u?.value, n.blockDefaults.paragraph) : Re(e.type, u?.value);
|
|
2364
2361
|
}
|
|
2365
|
-
function
|
|
2362
|
+
function q(e) {
|
|
2366
2363
|
if (!d) return;
|
|
2367
|
-
let t =
|
|
2368
|
-
|
|
2364
|
+
let t = K(e);
|
|
2365
|
+
_i(d, t) && p(t.id);
|
|
2369
2366
|
}
|
|
2370
|
-
function
|
|
2371
|
-
x ||
|
|
2367
|
+
function J(e) {
|
|
2368
|
+
x || q(e);
|
|
2372
2369
|
}
|
|
2373
|
-
function
|
|
2374
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
2370
|
+
function re(e, t) {
|
|
2371
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), q(t));
|
|
2375
2372
|
}
|
|
2376
2373
|
return (e, o) => (i(), y("aside", {
|
|
2377
2374
|
ref_key: "railEl",
|
|
@@ -2389,44 +2386,44 @@ var Mi = ["aria-label"], Ni = {
|
|
|
2389
2386
|
onMouseleave: D,
|
|
2390
2387
|
onFocusin: o[2] ||= (e) => _.value = !0,
|
|
2391
2388
|
onFocusout: N
|
|
2392
|
-
}, [g.value ? (i(), y("div",
|
|
2389
|
+
}, [g.value ? (i(), y("div", Fi, [A("button", {
|
|
2393
2390
|
type: "button",
|
|
2394
2391
|
"aria-label": S(n).sidebarNav.browseSavedBlocks,
|
|
2395
2392
|
class: "tpl:flex tpl:h-10 tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)]",
|
|
2396
2393
|
style: F({ justifyContent: _.value ? "flex-start" : "center" }),
|
|
2397
2394
|
onClick: o[0] ||= (e) => S(h).savedBlocks?.openBrowser()
|
|
2398
|
-
}, [H(S(
|
|
2395
|
+
}, [H(S(et), {
|
|
2399
2396
|
size: 20,
|
|
2400
2397
|
"stroke-width": 1.5,
|
|
2401
2398
|
class: "tpl:shrink-0"
|
|
2402
|
-
}), _.value ? (i(), y("span",
|
|
2403
|
-
"model-value":
|
|
2399
|
+
}), _.value ? (i(), y("span", Li, j(S(n).savedBlocks.title), 1)) : w("", !0)], 12, Ii)])) : w("", !0), H(S(R), {
|
|
2400
|
+
"model-value": W.value,
|
|
2404
2401
|
group: {
|
|
2405
2402
|
name: "blocks",
|
|
2406
2403
|
pull: "clone",
|
|
2407
2404
|
put: !1
|
|
2408
2405
|
},
|
|
2409
|
-
clone:
|
|
2406
|
+
clone: K,
|
|
2410
2407
|
sort: !1,
|
|
2411
2408
|
animation: 150,
|
|
2412
2409
|
"force-fallback": !0,
|
|
2413
|
-
"fallback-tolerance":
|
|
2410
|
+
"fallback-tolerance": Vi,
|
|
2414
2411
|
class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl:gap-0.5 tpl:overflow-y-auto tpl:p-1",
|
|
2415
2412
|
onChoose: O,
|
|
2416
2413
|
onStart: M,
|
|
2417
2414
|
onUnchoose: k,
|
|
2418
2415
|
onEnd: I
|
|
2419
2416
|
}, {
|
|
2420
|
-
default: a(() => [(i(!0), y(B, null, l(
|
|
2417
|
+
default: a(() => [(i(!0), y(B, null, l(W.value, (e) => (i(), y("button", {
|
|
2421
2418
|
key: e.type,
|
|
2422
2419
|
type: "button",
|
|
2423
2420
|
"data-palette-type": e.type,
|
|
2424
2421
|
"aria-label": S(r)(S(n).sidebarNav.insertBlock, { block: e.label }),
|
|
2425
2422
|
class: "tpl:flex tpl:h-10 tpl:w-full tpl:shrink-0 tpl:cursor-grab 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:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:active:cursor-grabbing",
|
|
2426
2423
|
style: F({ justifyContent: _.value ? "flex-start" : "center" }),
|
|
2427
|
-
onClick: (t) =>
|
|
2428
|
-
onKeydown: (t) =>
|
|
2429
|
-
}, [A("div",
|
|
2424
|
+
onClick: (t) => J(e),
|
|
2425
|
+
onKeydown: (t) => re(t, e)
|
|
2426
|
+
}, [A("div", zi, [S(Yn)[e.type] ? (i(), T(t(S(Yn)[e.type]), {
|
|
2430
2427
|
key: 0,
|
|
2431
2428
|
size: 20,
|
|
2432
2429
|
"stroke-width": 1.5
|
|
@@ -2434,50 +2431,50 @@ var Mi = ["aria-label"], Ni = {
|
|
|
2434
2431
|
key: 1,
|
|
2435
2432
|
icon: e.icon,
|
|
2436
2433
|
size: 20
|
|
2437
|
-
}, null, 8, ["icon"])) : w("", !0)]), _.value ? (i(), y("span",
|
|
2434
|
+
}, null, 8, ["icon"])) : w("", !0)]), _.value ? (i(), y("span", Bi, j(e.label), 1)) : w("", !0)], 44, Ri))), 128))]),
|
|
2438
2435
|
_: 1
|
|
2439
|
-
}, 8, ["model-value"])], 44,
|
|
2436
|
+
}, 8, ["model-value"])], 44, Pi));
|
|
2440
2437
|
}
|
|
2441
|
-
}),
|
|
2438
|
+
}), Ui = ["aria-label"], Wi = {
|
|
2442
2439
|
role: "tablist",
|
|
2443
2440
|
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"
|
|
2444
|
-
},
|
|
2441
|
+
}, Gi = [
|
|
2445
2442
|
"aria-selected",
|
|
2446
2443
|
"aria-label",
|
|
2447
2444
|
"title"
|
|
2448
|
-
],
|
|
2445
|
+
], Ki = { key: 0 }, qi = [
|
|
2449
2446
|
"aria-selected",
|
|
2450
2447
|
"aria-label",
|
|
2451
2448
|
"title"
|
|
2452
|
-
],
|
|
2449
|
+
], Ji = { key: 0 }, Yi = [
|
|
2453
2450
|
"aria-selected",
|
|
2454
2451
|
"aria-label",
|
|
2455
2452
|
"title"
|
|
2456
|
-
],
|
|
2453
|
+
], Xi = { key: 0 }, Zi = {
|
|
2457
2454
|
key: 1,
|
|
2458
2455
|
class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
|
|
2459
|
-
},
|
|
2456
|
+
}, Qi = {
|
|
2460
2457
|
key: 0,
|
|
2461
2458
|
id: "tpl-tabpanel-content",
|
|
2462
2459
|
role: "tabpanel",
|
|
2463
2460
|
"aria-labelledby": "tpl-tab-content",
|
|
2464
2461
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2465
|
-
},
|
|
2462
|
+
}, $i = {
|
|
2466
2463
|
key: 1,
|
|
2467
2464
|
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)]"
|
|
2468
|
-
},
|
|
2465
|
+
}, ea = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, ta = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, na = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, ra = {
|
|
2469
2466
|
key: 1,
|
|
2470
2467
|
id: "tpl-tabpanel-settings",
|
|
2471
2468
|
role: "tabpanel",
|
|
2472
2469
|
"aria-labelledby": "tpl-tab-settings",
|
|
2473
2470
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2474
|
-
},
|
|
2471
|
+
}, ia = {
|
|
2475
2472
|
key: 2,
|
|
2476
2473
|
id: "tpl-tabpanel-issues",
|
|
2477
2474
|
role: "tabpanel",
|
|
2478
2475
|
"aria-labelledby": "tpl-tab-issues",
|
|
2479
2476
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2480
|
-
},
|
|
2477
|
+
}, aa = /* @__PURE__ */ n({
|
|
2481
2478
|
__name: "RightSidebar",
|
|
2482
2479
|
props: /*@__PURE__*/ O({
|
|
2483
2480
|
selectedBlock: {},
|
|
@@ -2494,7 +2491,7 @@ var Mi = ["aria-label"], Ni = {
|
|
|
2494
2491
|
"update-settings"
|
|
2495
2492
|
], ["update:tab"]),
|
|
2496
2493
|
setup(e, { emit: t }) {
|
|
2497
|
-
let n = g(() => import("./chunks/Toolbar-
|
|
2494
|
+
let n = g(() => import("./chunks/Toolbar-VH07SzX7.js").then((e) => e.t)), r = g(() => import("./chunks/TemplateSettings-YwwRbxPc.js")), a = g(() => import("./chunks/IssuesPanel-CrplCzo8.js")), s = e, c = t, { t: l } = $(), u = _(e, "tab"), d = f(pt, null), p = P(() => d !== null && !d.unavailable.value), m = P(() => d?.issues.value.length ?? 0), h = f(kt, new Set(Xn)), v = P(() => h.size > 0);
|
|
2498
2495
|
function b(e) {
|
|
2499
2496
|
return u.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] tpl:hover:text-[var(--tpl-text)]";
|
|
2500
2497
|
}
|
|
@@ -2512,7 +2509,7 @@ var Mi = ["aria-label"], Ni = {
|
|
|
2512
2509
|
"aria-label": S(l).landmarks.rightSidebar,
|
|
2513
2510
|
class: C(["tpl-right-sidebar tpl:absolute tpl:top-14 tpl:bottom-0 tpl:z-40 tpl:flex tpl:box-border tpl:w-[320px] tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)] tpl:transition-all tpl:duration-200 tpl:border-l tpl:border-[var(--tpl-border)]", e.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"])
|
|
2514
2511
|
}, [
|
|
2515
|
-
A("div",
|
|
2512
|
+
A("div", Wi, [
|
|
2516
2513
|
A("button", {
|
|
2517
2514
|
id: "tpl-tab-content",
|
|
2518
2515
|
role: "tab",
|
|
@@ -2523,10 +2520,10 @@ var Mi = ["aria-label"], Ni = {
|
|
|
2523
2520
|
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)]", b("content")]),
|
|
2524
2521
|
style: F(x("content")),
|
|
2525
2522
|
onClick: o[0] ||= (e) => u.value = "content"
|
|
2526
|
-
}, [H(S(
|
|
2523
|
+
}, [H(S(st), {
|
|
2527
2524
|
size: 14,
|
|
2528
2525
|
"stroke-width": 2
|
|
2529
|
-
}), u.value === "content" ? (i(), y("span",
|
|
2526
|
+
}), u.value === "content" ? (i(), y("span", Ki, j(S(l).sidebar.content), 1)) : w("", !0)], 14, Gi),
|
|
2530
2527
|
v.value ? (i(), y("button", {
|
|
2531
2528
|
key: 0,
|
|
2532
2529
|
id: "tpl-tab-settings",
|
|
@@ -2538,10 +2535,10 @@ var Mi = ["aria-label"], Ni = {
|
|
|
2538
2535
|
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)]", b("settings")]),
|
|
2539
2536
|
style: F(x("settings")),
|
|
2540
2537
|
onClick: o[1] ||= (e) => u.value = "settings"
|
|
2541
|
-
}, [H(S(
|
|
2538
|
+
}, [H(S(He), {
|
|
2542
2539
|
size: 14,
|
|
2543
2540
|
"stroke-width": 1.5
|
|
2544
|
-
}), u.value === "settings" ? (i(), y("span",
|
|
2541
|
+
}), u.value === "settings" ? (i(), y("span", Ji, j(S(l).sidebar.settings), 1)) : w("", !0)], 14, qi)) : w("", !0),
|
|
2545
2542
|
p.value ? (i(), y("button", {
|
|
2546
2543
|
key: 1,
|
|
2547
2544
|
id: "tpl-tab-issues",
|
|
@@ -2554,76 +2551,76 @@ var Mi = ["aria-label"], Ni = {
|
|
|
2554
2551
|
style: F(x("issues")),
|
|
2555
2552
|
onClick: o[2] ||= (e) => u.value = "issues"
|
|
2556
2553
|
}, [
|
|
2557
|
-
H(S(
|
|
2554
|
+
H(S(nt), {
|
|
2558
2555
|
size: 14,
|
|
2559
2556
|
"stroke-width": 1.5
|
|
2560
2557
|
}),
|
|
2561
|
-
u.value === "issues" ? (i(), y("span",
|
|
2562
|
-
m.value > 0 ? (i(), y("span",
|
|
2563
|
-
], 14,
|
|
2558
|
+
u.value === "issues" ? (i(), y("span", Xi, j(S(l).issues.panelTabLabel), 1)) : w("", !0),
|
|
2559
|
+
m.value > 0 ? (i(), y("span", Zi, j(m.value), 1)) : w("", !0)
|
|
2560
|
+
], 14, Yi)) : w("", !0)
|
|
2564
2561
|
]),
|
|
2565
|
-
u.value === "content" ? (i(), y("div",
|
|
2562
|
+
u.value === "content" ? (i(), y("div", Qi, [e.selectedBlock ? (i(), T(S(n), {
|
|
2566
2563
|
key: 0,
|
|
2567
2564
|
block: e.selectedBlock,
|
|
2568
2565
|
onUpdate: o[3] ||= (e) => c("update-block", e),
|
|
2569
2566
|
onDelete: o[4] ||= (e) => c("delete-block"),
|
|
2570
2567
|
onDuplicate: o[5] ||= (e) => c("duplicate-block")
|
|
2571
|
-
}, null, 8, ["block"])) : (i(), y("div",
|
|
2572
|
-
A("div",
|
|
2568
|
+
}, null, 8, ["block"])) : (i(), y("div", $i, [
|
|
2569
|
+
A("div", ea, [H(S(rt), {
|
|
2573
2570
|
size: 40,
|
|
2574
2571
|
"stroke-width": 1.5
|
|
2575
2572
|
})]),
|
|
2576
|
-
A("h3",
|
|
2577
|
-
A("p",
|
|
2573
|
+
A("h3", ta, j(S(l).sidebar.noSelection), 1),
|
|
2574
|
+
A("p", na, j(S(l).sidebar.noSelectionHint), 1)
|
|
2578
2575
|
]))])) : w("", !0),
|
|
2579
|
-
u.value === "settings" && v.value ? (i(), y("div",
|
|
2576
|
+
u.value === "settings" && v.value ? (i(), y("div", ra, [H(S(r), {
|
|
2580
2577
|
settings: e.settings,
|
|
2581
2578
|
onUpdate: o[6] ||= (e) => c("update-settings", e)
|
|
2582
2579
|
}, null, 8, ["settings"])])) : w("", !0),
|
|
2583
|
-
u.value === "issues" && p.value ? (i(), y("div",
|
|
2584
|
-
], 10,
|
|
2580
|
+
u.value === "issues" && p.value ? (i(), y("div", ia, [H(S(a))])) : w("", !0)
|
|
2581
|
+
], 10, Ui));
|
|
2585
2582
|
}
|
|
2586
|
-
}),
|
|
2583
|
+
}), oa = {
|
|
2587
2584
|
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)]",
|
|
2588
2585
|
style: { "z-index": "10001" },
|
|
2589
2586
|
role: "status",
|
|
2590
2587
|
"data-testid": "small-screen-notice"
|
|
2591
|
-
},
|
|
2588
|
+
}, sa = { class: "tpl:text-[var(--tpl-text-dim)]" }, ca = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, la = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, ua = /* @__PURE__ */ n({
|
|
2592
2589
|
__name: "SmallScreenNotice",
|
|
2593
2590
|
setup(e) {
|
|
2594
2591
|
let { t } = $();
|
|
2595
|
-
return (e, n) => (i(), y("div",
|
|
2596
|
-
A("div",
|
|
2592
|
+
return (e, n) => (i(), y("div", oa, [
|
|
2593
|
+
A("div", sa, [H(S(Ve), {
|
|
2597
2594
|
size: 48,
|
|
2598
2595
|
"stroke-width": 1.5
|
|
2599
2596
|
})]),
|
|
2600
|
-
A("h2",
|
|
2601
|
-
A("p",
|
|
2597
|
+
A("h2", ca, j(S(t).smallScreen.title), 1),
|
|
2598
|
+
A("p", la, j(S(t).smallScreen.message), 1)
|
|
2602
2599
|
]));
|
|
2603
2600
|
}
|
|
2604
|
-
}),
|
|
2601
|
+
}), da = {
|
|
2605
2602
|
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
|
|
2606
2603
|
style: {
|
|
2607
2604
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
|
|
2608
2605
|
"backdrop-filter": "blur(8px)",
|
|
2609
2606
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
2610
2607
|
}
|
|
2611
|
-
},
|
|
2608
|
+
}, fa = /* @__PURE__ */ n({
|
|
2612
2609
|
__name: "EditorFooter",
|
|
2613
2610
|
props: { positionClass: {} },
|
|
2614
2611
|
setup(e) {
|
|
2615
2612
|
let { t } = $();
|
|
2616
|
-
return (n, r) => (i(), y("footer", { class: C(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[10px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [A("div",
|
|
2613
|
+
return (n, r) => (i(), y("footer", { class: C(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[10px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [A("div", da, [A("span", null, j(S(t).footer.poweredBy), 1), r[0] ||= U("<a href=\"https://templatical.com\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"tpl:inline-flex tpl:items-center tpl:gap-1 tpl:font-medium tpl:transition-colors tpl:hover:opacity-80 tpl:text-[var(--tpl-text-muted)]\" style=\"text-decoration:none;\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><rect x=\"10\" y=\"1\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(85% 0.08 55)\" transform=\"rotate(8 19 12)\"></rect><rect x=\"6\" y=\"2\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(77% 0.12 55)\" transform=\"rotate(-4 15 13)\"></rect><rect x=\"2\" y=\"4\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(70% 0.16 55)\"></rect><rect x=\"6\" y=\"9\" width=\"10\" height=\"1.8\" rx=\"0.9\" fill=\"white\" opacity=\"0.9\"></rect><rect x=\"6\" y=\"13.5\" width=\"7\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.6\"></rect><rect x=\"6\" y=\"17\" width=\"9\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.6\"></rect><rect x=\"6\" y=\"20.5\" width=\"5\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.4\"></rect></svg> Templatical </a>", 1)])], 2));
|
|
2617
2614
|
}
|
|
2618
|
-
}),
|
|
2619
|
-
function
|
|
2615
|
+
}), pa = (e) => Number.parseFloat(e) || 0;
|
|
2616
|
+
function ma(e) {
|
|
2620
2617
|
let t = e.centerWidth + 2 * Math.max(e.leftWidth, e.rightWidth) + e.paddingWidth + 2 * e.columnGap + e.borderWidth;
|
|
2621
2618
|
return {
|
|
2622
2619
|
compact: e.availableWidth < t,
|
|
2623
2620
|
fullWidth: t
|
|
2624
2621
|
};
|
|
2625
2622
|
}
|
|
2626
|
-
function
|
|
2623
|
+
function ha(e, t) {
|
|
2627
2624
|
let n = L(!1), r = L(0), i, a, o = !1, s = !0, c = null, l, f = 0, p = 0, m = [];
|
|
2628
2625
|
function h() {
|
|
2629
2626
|
return m.some((e) => {
|
|
@@ -2669,14 +2666,14 @@ function pa(e, t) {
|
|
|
2669
2666
|
}
|
|
2670
2667
|
e.value.appendChild(c);
|
|
2671
2668
|
try {
|
|
2672
|
-
let e = getComputedStyle(c), t = u.map((e) => e.getBoundingClientRect().width), a =
|
|
2669
|
+
let e = getComputedStyle(c), t = u.map((e) => e.getBoundingClientRect().width), a = ma({
|
|
2673
2670
|
availableWidth: i,
|
|
2674
2671
|
leftWidth: t[0],
|
|
2675
2672
|
centerWidth: t[1],
|
|
2676
2673
|
rightWidth: t[2],
|
|
2677
|
-
paddingWidth:
|
|
2678
|
-
columnGap:
|
|
2679
|
-
borderWidth:
|
|
2674
|
+
paddingWidth: pa(e.paddingLeft || e.paddingInline) + pa(e.paddingRight || e.paddingInline),
|
|
2675
|
+
columnGap: pa(e.columnGap),
|
|
2676
|
+
borderWidth: pa(e.borderLeftWidth) + pa(e.borderRightWidth)
|
|
2680
2677
|
});
|
|
2681
2678
|
r.value = a.fullWidth, n.value = a.compact, s = !1;
|
|
2682
2679
|
} finally {
|
|
@@ -2742,11 +2739,11 @@ function pa(e, t) {
|
|
|
2742
2739
|
};
|
|
2743
2740
|
}
|
|
2744
2741
|
// src/components/DarkModeToggle.vue?vue&type=script&setup=true&lang.ts
|
|
2745
|
-
var
|
|
2742
|
+
var ga = [
|
|
2746
2743
|
"aria-label",
|
|
2747
2744
|
"title",
|
|
2748
2745
|
"aria-pressed"
|
|
2749
|
-
],
|
|
2746
|
+
], _a = /*#__PURE__*/ Be(/* @__PURE__ */ n({
|
|
2750
2747
|
__name: "DarkModeToggle",
|
|
2751
2748
|
props: { darkMode: { type: Boolean } },
|
|
2752
2749
|
emits: ["change"],
|
|
@@ -2769,23 +2766,23 @@ var ma = [
|
|
|
2769
2766
|
"leave-to-class": "tpl-icon-leave-to",
|
|
2770
2767
|
mode: "out-in"
|
|
2771
2768
|
}, {
|
|
2772
|
-
default: a(() => [e.darkMode ? (i(), T(S(
|
|
2769
|
+
default: a(() => [e.darkMode ? (i(), T(S(Qe), {
|
|
2773
2770
|
key: "moon",
|
|
2774
2771
|
size: 18,
|
|
2775
2772
|
"stroke-width": 1.5
|
|
2776
|
-
})) : (i(), T(S(
|
|
2773
|
+
})) : (i(), T(S(ut), {
|
|
2777
2774
|
key: "sun",
|
|
2778
2775
|
size: 18,
|
|
2779
2776
|
"stroke-width": 1.5
|
|
2780
2777
|
}))]),
|
|
2781
2778
|
_: 1
|
|
2782
|
-
})], 12,
|
|
2779
|
+
})], 12, ga));
|
|
2783
2780
|
}
|
|
2784
|
-
}), [["__scopeId", "data-v-632aa74f"]]),
|
|
2781
|
+
}), [["__scopeId", "data-v-632aa74f"]]), va = [
|
|
2785
2782
|
"aria-label",
|
|
2786
2783
|
"title",
|
|
2787
2784
|
"aria-pressed"
|
|
2788
|
-
],
|
|
2785
|
+
], ya = /*#__PURE__*/ Be(/* @__PURE__ */ n({
|
|
2789
2786
|
__name: "PreviewToggle",
|
|
2790
2787
|
props: { previewMode: { type: Boolean } },
|
|
2791
2788
|
emits: ["change"],
|
|
@@ -2808,19 +2805,19 @@ var ma = [
|
|
|
2808
2805
|
"leave-to-class": "tpl-icon-leave-to",
|
|
2809
2806
|
mode: "out-in"
|
|
2810
2807
|
}, {
|
|
2811
|
-
default: a(() => [e.previewMode ? (i(), T(S(
|
|
2808
|
+
default: a(() => [e.previewMode ? (i(), T(S(Ge), {
|
|
2812
2809
|
key: "eye",
|
|
2813
2810
|
size: 18,
|
|
2814
2811
|
"stroke-width": 1.5
|
|
2815
|
-
})) : (i(), T(S(
|
|
2812
|
+
})) : (i(), T(S(Xe), {
|
|
2816
2813
|
key: "eye-off",
|
|
2817
2814
|
size: 18,
|
|
2818
2815
|
"stroke-width": 1.5
|
|
2819
2816
|
}))]),
|
|
2820
2817
|
_: 1
|
|
2821
|
-
})], 12,
|
|
2818
|
+
})], 12, va));
|
|
2822
2819
|
}
|
|
2823
|
-
}), [["__scopeId", "data-v-eef7b2ca"]]),
|
|
2820
|
+
}), [["__scopeId", "data-v-eef7b2ca"]]), ba = ["aria-label", "onKeydown"], xa = ["title", "aria-label"], Sa = /* @__PURE__ */ n({
|
|
2824
2821
|
__name: "TemplateNameField",
|
|
2825
2822
|
props: {
|
|
2826
2823
|
name: {},
|
|
@@ -2849,10 +2846,10 @@ var ma = [
|
|
|
2849
2846
|
type: "text",
|
|
2850
2847
|
"data-testid": "template-name-input",
|
|
2851
2848
|
"aria-label": S(a).header.templateName,
|
|
2852
|
-
class: C([S(
|
|
2849
|
+
class: C([S(Yt), "tpl:h-8 tpl:max-w-[260px] tpl:text-sm tpl:font-medium"]),
|
|
2853
2850
|
onKeydown: [x(k(d, ["prevent"]), ["enter"]), x(k(f, ["prevent"]), ["esc"])],
|
|
2854
2851
|
onBlur: d
|
|
2855
|
-
}, null, 42,
|
|
2852
|
+
}, null, 42, ba)), [[ee, s.value]]) : e.editable ? (i(), y("button", {
|
|
2856
2853
|
key: 1,
|
|
2857
2854
|
type: "button",
|
|
2858
2855
|
"data-testid": "template-name",
|
|
@@ -2860,47 +2857,47 @@ var ma = [
|
|
|
2860
2857
|
"aria-label": S(a).header.rename,
|
|
2861
2858
|
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 }]),
|
|
2862
2859
|
onClick: u
|
|
2863
|
-
}, j(e.name || S(a).header.untitled), 11,
|
|
2860
|
+
}, j(e.name || S(a).header.untitled), 11, xa)) : (i(), y("span", {
|
|
2864
2861
|
key: 2,
|
|
2865
2862
|
"data-testid": "template-name",
|
|
2866
2863
|
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 }])
|
|
2867
2864
|
}, j(e.name || S(a).header.untitled), 3));
|
|
2868
2865
|
}
|
|
2869
|
-
}),
|
|
2866
|
+
}), Ca = ["title"], wa = /* @__PURE__ */ n({
|
|
2870
2867
|
__name: "TemplateTimestamp",
|
|
2871
2868
|
props: {
|
|
2872
2869
|
iso: {},
|
|
2873
2870
|
kind: {}
|
|
2874
2871
|
},
|
|
2875
2872
|
setup(e) {
|
|
2876
|
-
let t = e, { t: n, format: r } = $(), a = f(
|
|
2877
|
-
|
|
2873
|
+
let t = e, { t: n, format: r } = $(), a = f(Mt, void 0), o = z(0);
|
|
2874
|
+
tr(() => {
|
|
2878
2875
|
o.value += 1;
|
|
2879
2876
|
}, 6e4);
|
|
2880
2877
|
let s = P(() => {
|
|
2881
|
-
let e =
|
|
2878
|
+
let e = rr(t.iso, n.time, r);
|
|
2882
2879
|
if (e === null) return "";
|
|
2883
2880
|
let i = e === n.time.justNow;
|
|
2884
2881
|
return t.kind === "updatedAt" ? i ? n.header.updatedJustNow : r(n.header.updatedAt, { time: e }) : i ? n.header.createdJustNow : r(n.header.createdAt, { time: e });
|
|
2885
|
-
}), c = P(() =>
|
|
2882
|
+
}), c = P(() => nr(t.iso, a));
|
|
2886
2883
|
return (e, t) => s.value ? (i(), y("span", {
|
|
2887
2884
|
key: 0,
|
|
2888
2885
|
"data-testid": "template-timestamp",
|
|
2889
2886
|
title: c.value,
|
|
2890
2887
|
class: "tpl:max-w-[260px] tpl:truncate tpl:px-2 tpl:text-xs tpl:leading-tight tpl:text-[var(--tpl-text-dim)]"
|
|
2891
|
-
}, j(s.value), 9,
|
|
2888
|
+
}, j(s.value), 9, Ca)) : w("", !0);
|
|
2892
2889
|
}
|
|
2893
|
-
}),
|
|
2890
|
+
}), Ta = ["data-tooltip"], Ea = {
|
|
2894
2891
|
key: 1,
|
|
2895
2892
|
"aria-live": "polite",
|
|
2896
2893
|
"data-testid": "save-status-saved",
|
|
2897
2894
|
class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-success)]"
|
|
2898
|
-
},
|
|
2895
|
+
}, Da = {
|
|
2899
2896
|
key: 2,
|
|
2900
2897
|
"aria-live": "polite",
|
|
2901
2898
|
"data-testid": "save-status-unsaved",
|
|
2902
2899
|
class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2903
|
-
},
|
|
2900
|
+
}, Oa = /* @__PURE__ */ n({
|
|
2904
2901
|
__name: "TemplateSaveStatus",
|
|
2905
2902
|
props: {
|
|
2906
2903
|
status: {},
|
|
@@ -2915,19 +2912,19 @@ var ma = [
|
|
|
2915
2912
|
"data-testid": "save-status-error",
|
|
2916
2913
|
class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
|
|
2917
2914
|
"data-tooltip": e.errorMessage
|
|
2918
|
-
}, [H(S(
|
|
2915
|
+
}, [H(S(Je), {
|
|
2919
2916
|
size: 12,
|
|
2920
2917
|
"stroke-width": 2.5
|
|
2921
|
-
}), b(" " + j(S(t).header.saveFailed), 1)], 8,
|
|
2918
|
+
}), b(" " + j(S(t).header.saveFailed), 1)], 8, Ta)) : e.status === "saved" ? (i(), y("div", Ea, [H(S($e), {
|
|
2922
2919
|
size: 12,
|
|
2923
2920
|
"stroke-width": 2.5
|
|
2924
|
-
}), b(" " + j(S(t).header.saved), 1)])) : e.isDirty ? (i(), y("div",
|
|
2921
|
+
}), b(" " + j(S(t).header.saved), 1)])) : e.isDirty ? (i(), y("div", Da, [r[0] ||= A("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), b(" " + j(S(t).header.unsaved), 1)])) : w("", !0);
|
|
2925
2922
|
}
|
|
2926
|
-
}),
|
|
2923
|
+
}), ka = [
|
|
2927
2924
|
"aria-pressed",
|
|
2928
2925
|
"aria-label",
|
|
2929
2926
|
"title"
|
|
2930
|
-
],
|
|
2927
|
+
], Aa = { class: "tpl-header-label" }, ja = /* @__PURE__ */ n({
|
|
2931
2928
|
__name: "AiHeaderMenu",
|
|
2932
2929
|
props: { feature: {} },
|
|
2933
2930
|
setup(e) {
|
|
@@ -2942,35 +2939,35 @@ var ma = [
|
|
|
2942
2939
|
"aria-pressed": r.value,
|
|
2943
2940
|
"aria-label": S(n).ai.menu.chat,
|
|
2944
2941
|
title: S(n).ai.menu.chat,
|
|
2945
|
-
class: C(S(
|
|
2942
|
+
class: C(S(Zt)),
|
|
2946
2943
|
style: F(r.value ? {
|
|
2947
2944
|
backgroundColor: "var(--tpl-primary-light)",
|
|
2948
2945
|
borderColor: "var(--tpl-primary-light)"
|
|
2949
2946
|
} : void 0),
|
|
2950
2947
|
onClick: k(a, ["stop"])
|
|
2951
|
-
}, [H(S(
|
|
2948
|
+
}, [H(S(We), {
|
|
2952
2949
|
size: 16,
|
|
2953
2950
|
"stroke-width": 2,
|
|
2954
2951
|
class: "tpl:text-[var(--tpl-primary-hover)]",
|
|
2955
2952
|
"aria-hidden": "true"
|
|
2956
|
-
}), A("span",
|
|
2953
|
+
}), A("span", Aa, j(S(n).ai.menu.button), 1)], 14, ka)) : w("", !0);
|
|
2957
2954
|
}
|
|
2958
|
-
}),
|
|
2955
|
+
}), Ma = ["data-compact", "data-full-width"], Na = { class: "tpl-header-left tpl:flex tpl:min-w-0 tpl:items-center tpl:gap-2.5" }, Pa = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, Fa = { class: "tpl-header-right tpl:flex tpl:min-w-0 tpl:items-center tpl:justify-end tpl:gap-3" }, Ia = [
|
|
2959
2956
|
"aria-label",
|
|
2960
2957
|
"title",
|
|
2961
2958
|
"aria-expanded"
|
|
2962
|
-
],
|
|
2959
|
+
], La = { class: "tpl-header-label" }, Ra = {
|
|
2963
2960
|
key: 0,
|
|
2964
2961
|
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)]"
|
|
2965
|
-
},
|
|
2962
|
+
}, za = [
|
|
2966
2963
|
"aria-label",
|
|
2967
2964
|
"title",
|
|
2968
2965
|
"disabled"
|
|
2969
|
-
],
|
|
2966
|
+
], Ba = { class: "tpl-header-label" }, Va = [
|
|
2970
2967
|
"aria-label",
|
|
2971
2968
|
"disabled",
|
|
2972
2969
|
"title"
|
|
2973
|
-
],
|
|
2970
|
+
], Ha = { class: "tpl-header-label" }, Ua = /* @__PURE__ */ n({
|
|
2974
2971
|
__name: "EditorHeader",
|
|
2975
2972
|
props: {
|
|
2976
2973
|
editor: {},
|
|
@@ -2985,7 +2982,7 @@ var ma = [
|
|
|
2985
2982
|
ai: {}
|
|
2986
2983
|
},
|
|
2987
2984
|
setup(e) {
|
|
2988
|
-
let t = g(() => import("./chunks/VersionHistoryMenu-
|
|
2985
|
+
let t = g(() => import("./chunks/VersionHistoryMenu-DkwbKhBl.js")), n = g(() => import("./chunks/LanguageMenu-B6MNInCL.js")), r = g(() => import("./chunks/CollaboratorBar-C1ZI2xwa.js")), a = L(null), o = L(null), { compact: s, fullWidth: c } = ha(a, o);
|
|
2989
2986
|
return (l, u) => (i(), y("div", {
|
|
2990
2987
|
ref_key: "containerElement",
|
|
2991
2988
|
ref: a,
|
|
@@ -2997,11 +2994,11 @@ var ma = [
|
|
|
2997
2994
|
"data-full-width": S(c),
|
|
2998
2995
|
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)]"
|
|
2999
2996
|
}, [
|
|
3000
|
-
A("div",
|
|
2997
|
+
A("div", Na, [
|
|
3001
2998
|
e.templates?.isAvailable.value && e.templates.hasTemplate.value && (e.showTemplateName || e.templates.timestamp.value) ? (i(), y("div", {
|
|
3002
2999
|
key: 0,
|
|
3003
3000
|
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 }])
|
|
3004
|
-
}, [e.showTemplateName ? (i(), T(
|
|
3001
|
+
}, [e.showTemplateName ? (i(), T(Sa, {
|
|
3005
3002
|
key: 0,
|
|
3006
3003
|
name: e.templates.name.value,
|
|
3007
3004
|
editable: e.templates.canSave.value,
|
|
@@ -3010,7 +3007,7 @@ var ma = [
|
|
|
3010
3007
|
"name",
|
|
3011
3008
|
"editable",
|
|
3012
3009
|
"onCommit"
|
|
3013
|
-
])) : w("", !0), e.templates.timestamp.value ? (i(), T(
|
|
3010
|
+
])) : w("", !0), e.templates.timestamp.value ? (i(), T(wa, {
|
|
3014
3011
|
key: 1,
|
|
3015
3012
|
class: "tpl-header-timestamp",
|
|
3016
3013
|
iso: e.templates.timestamp.value.iso,
|
|
@@ -3042,22 +3039,22 @@ var ma = [
|
|
|
3042
3039
|
}, null, 8, ["people", "connection"])) : w("", !0),
|
|
3043
3040
|
h(l.$slots, "left-extras")
|
|
3044
3041
|
]),
|
|
3045
|
-
A("div",
|
|
3046
|
-
H(
|
|
3042
|
+
A("div", Pa, [
|
|
3043
|
+
H(Zn, {
|
|
3047
3044
|
viewport: e.editor.state.viewport,
|
|
3048
3045
|
onChange: e.editor.setViewport
|
|
3049
3046
|
}, null, 8, ["viewport", "onChange"]),
|
|
3050
|
-
H(
|
|
3047
|
+
H(_a, {
|
|
3051
3048
|
"dark-mode": e.editor.state.darkMode,
|
|
3052
3049
|
onChange: e.editor.setDarkMode
|
|
3053
3050
|
}, null, 8, ["dark-mode", "onChange"]),
|
|
3054
|
-
H(
|
|
3051
|
+
H(ya, {
|
|
3055
3052
|
"preview-mode": e.editor.state.previewMode,
|
|
3056
3053
|
onChange: e.editor.setPreviewMode
|
|
3057
3054
|
}, null, 8, ["preview-mode", "onChange"])
|
|
3058
3055
|
]),
|
|
3059
|
-
A("div",
|
|
3060
|
-
e.templates?.isAvailable.value && e.templates.canSave.value ? (i(), T(
|
|
3056
|
+
A("div", Fa, [
|
|
3057
|
+
e.templates?.isAvailable.value && e.templates.canSave.value ? (i(), T(Oa, {
|
|
3061
3058
|
key: 0,
|
|
3062
3059
|
class: "tpl-header-save-status",
|
|
3063
3060
|
status: e.templates.status.value,
|
|
@@ -3075,21 +3072,21 @@ var ma = [
|
|
|
3075
3072
|
"aria-label": e.comments.unresolvedCount.value > 0 ? `${e.core.t.comments.button} (${e.comments.unresolvedCount.value})` : e.core.t.comments.button,
|
|
3076
3073
|
title: e.core.t.comments.button,
|
|
3077
3074
|
"aria-expanded": e.comments.isOpen.value,
|
|
3078
|
-
class: C(S(
|
|
3075
|
+
class: C(S(Zt)),
|
|
3079
3076
|
style: F(e.comments.isOpen.value ? {
|
|
3080
3077
|
backgroundColor: "var(--tpl-primary-light)",
|
|
3081
3078
|
borderColor: "var(--tpl-primary-light)"
|
|
3082
3079
|
} : void 0),
|
|
3083
3080
|
onClick: u[2] ||= (t) => e.comments.toggle()
|
|
3084
3081
|
}, [
|
|
3085
|
-
H(S(
|
|
3082
|
+
H(S(ot), {
|
|
3086
3083
|
size: 16,
|
|
3087
3084
|
"stroke-width": 2
|
|
3088
3085
|
}),
|
|
3089
|
-
A("span",
|
|
3090
|
-
e.comments.unresolvedCount.value > 0 && !e.comments.isOpen.value ? (i(), y("span",
|
|
3091
|
-
], 14,
|
|
3092
|
-
e.ai ? (i(), T(
|
|
3086
|
+
A("span", La, j(e.core.t.comments.button), 1),
|
|
3087
|
+
e.comments.unresolvedCount.value > 0 && !e.comments.isOpen.value ? (i(), y("span", Ra, j(e.comments.unresolvedCount.value), 1)) : w("", !0)
|
|
3088
|
+
], 14, Ia)) : w("", !0),
|
|
3089
|
+
e.ai ? (i(), T(ja, {
|
|
3093
3090
|
key: 2,
|
|
3094
3091
|
feature: e.ai
|
|
3095
3092
|
}, null, 8, ["feature"])) : w("", !0),
|
|
@@ -3101,64 +3098,64 @@ var ma = [
|
|
|
3101
3098
|
"aria-label": e.core.t.testEmail.title,
|
|
3102
3099
|
title: e.core.t.testEmail.title,
|
|
3103
3100
|
disabled: e.testEmail.isSending.value,
|
|
3104
|
-
class: C(S(
|
|
3101
|
+
class: C(S(Zt)),
|
|
3105
3102
|
onClick: u[3] ||= (t) => e.testEmail.open()
|
|
3106
|
-
}, [e.testEmail.isSending.value ? (i(), T(S(
|
|
3103
|
+
}, [e.testEmail.isSending.value ? (i(), T(S(tt), {
|
|
3107
3104
|
key: 1,
|
|
3108
3105
|
class: "tpl-spinner",
|
|
3109
3106
|
size: 16,
|
|
3110
3107
|
"stroke-width": 2
|
|
3111
|
-
})) : (i(), T(S(
|
|
3108
|
+
})) : (i(), T(S(it), {
|
|
3112
3109
|
key: 0,
|
|
3113
3110
|
size: 16,
|
|
3114
3111
|
"stroke-width": 2
|
|
3115
|
-
})), A("span",
|
|
3112
|
+
})), A("span", Ba, j(e.core.t.testEmail.button), 1)], 10, za)) : w("", !0),
|
|
3116
3113
|
e.templates?.isAvailable.value && e.templates.canSave.value ? (i(), y("button", {
|
|
3117
3114
|
key: 4,
|
|
3118
3115
|
type: "button",
|
|
3119
3116
|
"data-testid": "template-save",
|
|
3120
|
-
class: C(S(e.editor.state.isDirty && e.templates.hasTemplate.value ?
|
|
3117
|
+
class: C(S(e.editor.state.isDirty && e.templates.hasTemplate.value ? Qt : Zt)),
|
|
3121
3118
|
style: F(e.editor.state.isDirty && e.templates.hasTemplate.value ? { boxShadow: "var(--tpl-shadow-sm)" } : void 0),
|
|
3122
3119
|
"aria-label": e.templates.isSaving.value ? e.core.t.header.saving : e.core.t.header.save,
|
|
3123
3120
|
disabled: e.templates.isSaving.value || !e.templates.hasTemplate.value,
|
|
3124
3121
|
title: e.templates.hasTemplate.value ? e.core.t.header.save : e.core.t.header.saveNoTemplate,
|
|
3125
3122
|
onClick: u[4] ||= (t) => e.templates.requestSave()
|
|
3126
|
-
}, [e.templates.isSaving.value ? (i(), T(S(
|
|
3123
|
+
}, [e.templates.isSaving.value ? (i(), T(S(tt), {
|
|
3127
3124
|
key: 1,
|
|
3128
3125
|
class: "tpl-spinner",
|
|
3129
3126
|
size: 16,
|
|
3130
3127
|
"stroke-width": 2
|
|
3131
|
-
})) : (i(), T(S(
|
|
3128
|
+
})) : (i(), T(S(Ze), {
|
|
3132
3129
|
key: 0,
|
|
3133
3130
|
size: 16,
|
|
3134
3131
|
"stroke-width": 2
|
|
3135
|
-
})), A("span",
|
|
3132
|
+
})), A("span", Ha, j(e.templates.isSaving.value ? e.core.t.header.saving : e.core.t.header.save), 1)], 14, Va)) : w("", !0)
|
|
3136
3133
|
])
|
|
3137
|
-
], 8,
|
|
3134
|
+
], 8, Ma)], 512));
|
|
3138
3135
|
}
|
|
3139
|
-
}),
|
|
3136
|
+
}), Wa = ["aria-labelledby", "data-tpl-theme"], Ga = { 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" }, Ka = ["id"], qa = ["aria-label"], Ja = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Ya = [
|
|
3140
3137
|
"id",
|
|
3141
3138
|
"placeholder",
|
|
3142
3139
|
"aria-label",
|
|
3143
3140
|
"aria-activedescendant"
|
|
3144
|
-
],
|
|
3141
|
+
], Xa = {
|
|
3145
3142
|
key: 0,
|
|
3146
3143
|
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",
|
|
3147
3144
|
"data-testid": "merge-tag-picker-group-pills"
|
|
3148
|
-
},
|
|
3145
|
+
}, Za = ["data-group-name", "onClick"], Qa = ["aria-label"], $a = {
|
|
3149
3146
|
key: 0,
|
|
3150
3147
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3151
3148
|
"data-testid": "merge-tag-picker-empty"
|
|
3152
|
-
},
|
|
3149
|
+
}, eo = {
|
|
3153
3150
|
key: 1,
|
|
3154
3151
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3155
3152
|
"data-testid": "merge-tag-picker-empty"
|
|
3156
|
-
},
|
|
3153
|
+
}, to = [
|
|
3157
3154
|
"aria-expanded",
|
|
3158
3155
|
"data-group-name",
|
|
3159
3156
|
"data-group-collapsed",
|
|
3160
3157
|
"onClick"
|
|
3161
|
-
],
|
|
3158
|
+
], no = { class: "tpl:ml-1 tpl:font-normal" }, ro = [
|
|
3162
3159
|
"id",
|
|
3163
3160
|
"aria-selected",
|
|
3164
3161
|
"data-selected",
|
|
@@ -3168,21 +3165,21 @@ var ma = [
|
|
|
3168
3165
|
"title",
|
|
3169
3166
|
"onMousemove",
|
|
3170
3167
|
"onClick"
|
|
3171
|
-
],
|
|
3168
|
+
], io = { class: "tpl:text-sm tpl:font-medium" }, ao = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, oo = {
|
|
3172
3169
|
key: 0,
|
|
3173
3170
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3174
|
-
},
|
|
3171
|
+
}, so = {
|
|
3175
3172
|
key: 1,
|
|
3176
3173
|
"data-testid": "merge-tag-picker-sample",
|
|
3177
3174
|
class: "tpl:line-clamp-1 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3178
|
-
},
|
|
3175
|
+
}, co = "tpl-merge-tag-picker-list", lo = /* @__PURE__ */ n({
|
|
3179
3176
|
__name: "MergeTagPickerModal",
|
|
3180
3177
|
setup(e) {
|
|
3181
|
-
let t =
|
|
3178
|
+
let t = zt(gt, "MergeTagPickerModal"), { t: n, format: r } = $(), s = f(Vt, null), u = f(Tt, null), d = f(Ut, !0), p = P(() => t.current.value !== null), m = P(() => p.value ? n.mergeTag.picker.changeTitle : n.mergeTag.picker.title);
|
|
3182
3179
|
function h(e) {
|
|
3183
3180
|
return d ? e.description ? `${e.value} — ${e.description}` : e.value : e.description || void 0;
|
|
3184
3181
|
}
|
|
3185
|
-
let g = z(""), _ =
|
|
3182
|
+
let g = z(""), _ = er(g, 200), v = z(null), b = P(() => _.value.trim().length > 0), E = z(0), O = P(() => t.tags.value.some((e) => !!e.group)), M = z(/* @__PURE__ */ new Set());
|
|
3186
3183
|
function N(e) {
|
|
3187
3184
|
return M.value.has(e);
|
|
3188
3185
|
}
|
|
@@ -3232,51 +3229,51 @@ var ma = [
|
|
|
3232
3229
|
}
|
|
3233
3230
|
return a;
|
|
3234
3231
|
}), V = P(() => R.value.flatMap((e) => e.kind === "tag" ? [e.tag] : [])), U = !1;
|
|
3235
|
-
function
|
|
3232
|
+
function ne(e) {
|
|
3236
3233
|
let n = t.current.value;
|
|
3237
3234
|
if (!n) return !1;
|
|
3238
3235
|
let r = e.findIndex((e) => e.value === n.value);
|
|
3239
3236
|
return r !== -1 && (E.value = r, !0);
|
|
3240
3237
|
}
|
|
3241
|
-
function
|
|
3238
|
+
function W(e) {
|
|
3242
3239
|
U = !1, E.value = e;
|
|
3243
3240
|
}
|
|
3244
3241
|
o(() => t.isOpen.value, (e) => {
|
|
3245
|
-
e ? (g.value = "", E.value = 0, M.value = /* @__PURE__ */ new Set(), U = !
|
|
3242
|
+
e ? (g.value = "", E.value = 0, M.value = /* @__PURE__ */ new Set(), U = !ne(V.value), D(() => {
|
|
3246
3243
|
v.value?.focus();
|
|
3247
3244
|
})) : U = !1;
|
|
3248
3245
|
}), o(V, (e) => {
|
|
3249
|
-
U &&
|
|
3246
|
+
U && ne(e) ? U = !1 : E.value >= e.length && (E.value = Math.max(0, e.length - 1));
|
|
3250
3247
|
});
|
|
3251
|
-
function
|
|
3248
|
+
function G(e) {
|
|
3252
3249
|
t.resolve(e);
|
|
3253
3250
|
}
|
|
3254
|
-
function
|
|
3251
|
+
function K() {
|
|
3255
3252
|
t.resolve(null);
|
|
3256
3253
|
}
|
|
3257
|
-
function
|
|
3254
|
+
function q(e) {
|
|
3258
3255
|
if (V.value.length === 0) return;
|
|
3259
3256
|
U = !1;
|
|
3260
3257
|
let t = E.value + e;
|
|
3261
|
-
E.value = Math.max(0, Math.min(V.value.length - 1, t)),
|
|
3258
|
+
E.value = Math.max(0, Math.min(V.value.length - 1, t)), ae();
|
|
3262
3259
|
}
|
|
3263
|
-
let
|
|
3264
|
-
function
|
|
3265
|
-
|
|
3260
|
+
let J = z(null), re = z({});
|
|
3261
|
+
function ie(e, t) {
|
|
3262
|
+
re.value[e] = t ?? null;
|
|
3266
3263
|
}
|
|
3267
|
-
function
|
|
3264
|
+
function ae() {
|
|
3268
3265
|
D(() => {
|
|
3269
|
-
let e =
|
|
3266
|
+
let e = J.value;
|
|
3270
3267
|
e && e.querySelector(`[data-merge-tag-index="${E.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
3271
3268
|
});
|
|
3272
3269
|
}
|
|
3273
|
-
function
|
|
3270
|
+
function oe(e) {
|
|
3274
3271
|
if (M.value.has(e)) {
|
|
3275
3272
|
let t = new Set(M.value);
|
|
3276
3273
|
t.delete(e), M.value = t;
|
|
3277
3274
|
}
|
|
3278
3275
|
D(() => {
|
|
3279
|
-
let t =
|
|
3276
|
+
let t = J.value;
|
|
3280
3277
|
if (!t) return;
|
|
3281
3278
|
let n = 0, r = !1;
|
|
3282
3279
|
for (let i of Array.from(t.children)) {
|
|
@@ -3292,55 +3289,55 @@ var ma = [
|
|
|
3292
3289
|
});
|
|
3293
3290
|
});
|
|
3294
3291
|
}
|
|
3295
|
-
function
|
|
3296
|
-
if (e.key === "ArrowDown") e.preventDefault(),
|
|
3297
|
-
else if (e.key === "ArrowUp") e.preventDefault(),
|
|
3292
|
+
function se(e) {
|
|
3293
|
+
if (e.key === "ArrowDown") e.preventDefault(), q(1);
|
|
3294
|
+
else if (e.key === "ArrowUp") e.preventDefault(), q(-1);
|
|
3298
3295
|
else if (e.key === "Enter") {
|
|
3299
3296
|
e.preventDefault();
|
|
3300
3297
|
let t = V.value[E.value];
|
|
3301
|
-
t &&
|
|
3298
|
+
t && G(t);
|
|
3302
3299
|
}
|
|
3303
3300
|
}
|
|
3304
|
-
function
|
|
3305
|
-
if (V.value.length !== 0) return `${
|
|
3301
|
+
function Y() {
|
|
3302
|
+
if (V.value.length !== 0) return `${co}-opt-${E.value}`;
|
|
3306
3303
|
}
|
|
3307
3304
|
function ce(e) {
|
|
3308
|
-
return `${
|
|
3305
|
+
return `${co}-opt-${e}`;
|
|
3309
3306
|
}
|
|
3310
|
-
let le = P(() => t.tags.value.length === 0),
|
|
3311
|
-
return (e, o) => (i(), T(
|
|
3307
|
+
let le = P(() => t.tags.value.length === 0), ue = P(() => !le.value && L.value.length === 0), de = P(() => O.value && te.value.length > 1 && !b.value);
|
|
3308
|
+
return (e, o) => (i(), T($t, {
|
|
3312
3309
|
visible: S(t).isOpen.value,
|
|
3313
|
-
onClose:
|
|
3314
|
-
onKeydown:
|
|
3310
|
+
onClose: K,
|
|
3311
|
+
onKeydown: se
|
|
3315
3312
|
}, {
|
|
3316
3313
|
default: a(() => [A("div", {
|
|
3317
3314
|
role: "dialog",
|
|
3318
3315
|
"aria-modal": "true",
|
|
3319
|
-
"aria-labelledby": `${
|
|
3316
|
+
"aria-labelledby": `${co}-title`,
|
|
3320
3317
|
"data-tpl-theme": S(u),
|
|
3321
3318
|
"data-testid": "merge-tag-picker-modal",
|
|
3322
3319
|
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)]",
|
|
3323
3320
|
style: F(S(s))
|
|
3324
3321
|
}, [
|
|
3325
|
-
A("header",
|
|
3326
|
-
id: `${
|
|
3322
|
+
A("header", Ga, [A("h2", {
|
|
3323
|
+
id: `${co}-title`,
|
|
3327
3324
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
3328
|
-
}, j(m.value), 9,
|
|
3325
|
+
}, j(m.value), 9, Ka), A("button", {
|
|
3329
3326
|
type: "button",
|
|
3330
3327
|
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)]",
|
|
3331
3328
|
"aria-label": S(n).mergeTag.picker.close,
|
|
3332
3329
|
"data-testid": "merge-tag-picker-close",
|
|
3333
|
-
onClick:
|
|
3334
|
-
}, [H(S(
|
|
3330
|
+
onClick: K
|
|
3331
|
+
}, [H(S(ct), {
|
|
3335
3332
|
size: 16,
|
|
3336
3333
|
"stroke-width": 2
|
|
3337
|
-
})], 8,
|
|
3338
|
-
A("div",
|
|
3334
|
+
})], 8, qa)]),
|
|
3335
|
+
A("div", Ja, [H(S(Ye), {
|
|
3339
3336
|
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)]",
|
|
3340
3337
|
size: 14,
|
|
3341
3338
|
"stroke-width": 2
|
|
3342
3339
|
}), c(A("input", {
|
|
3343
|
-
id: `${
|
|
3340
|
+
id: `${co}-search`,
|
|
3344
3341
|
ref_key: "searchInputRef",
|
|
3345
3342
|
ref: v,
|
|
3346
3343
|
"onUpdate:modelValue": o[0] ||= (e) => g.value = e,
|
|
@@ -3348,48 +3345,48 @@ var ma = [
|
|
|
3348
3345
|
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)]",
|
|
3349
3346
|
placeholder: S(n).mergeTag.picker.searchPlaceholder,
|
|
3350
3347
|
"aria-label": S(n).mergeTag.picker.searchAriaLabel,
|
|
3351
|
-
"aria-controls":
|
|
3352
|
-
"aria-activedescendant":
|
|
3348
|
+
"aria-controls": co,
|
|
3349
|
+
"aria-activedescendant": Y(),
|
|
3353
3350
|
"data-testid": "merge-tag-picker-search",
|
|
3354
3351
|
onKeydown: o[1] ||= x(k(() => {}, ["prevent"]), ["enter"])
|
|
3355
|
-
}, null, 40,
|
|
3356
|
-
|
|
3352
|
+
}, null, 40, Ya), [[ee, g.value]])]),
|
|
3353
|
+
de.value ? (i(), y("div", Xa, [(i(!0), y(B, null, l(te.value, (e) => (i(), y("button", {
|
|
3357
3354
|
key: e,
|
|
3358
3355
|
type: "button",
|
|
3359
3356
|
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)]",
|
|
3360
3357
|
"data-testid": "merge-tag-picker-group-pill",
|
|
3361
3358
|
"data-group-name": e,
|
|
3362
|
-
onClick: (t) =>
|
|
3363
|
-
}, j(e), 9,
|
|
3359
|
+
onClick: (t) => oe(e)
|
|
3360
|
+
}, j(e), 9, Za))), 128))])) : w("", !0),
|
|
3364
3361
|
A("div", {
|
|
3365
|
-
id:
|
|
3362
|
+
id: co,
|
|
3366
3363
|
ref_key: "listRef",
|
|
3367
|
-
ref:
|
|
3364
|
+
ref: J,
|
|
3368
3365
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
3369
3366
|
role: "listbox",
|
|
3370
3367
|
"aria-label": m.value,
|
|
3371
3368
|
"data-testid": "merge-tag-picker-list"
|
|
3372
|
-
}, [le.value ? (i(), y("div",
|
|
3369
|
+
}, [le.value ? (i(), y("div", $a, j(S(n).mergeTag.picker.empty), 1)) : ue.value ? (i(), y("div", eo, j(S(n).mergeTag.picker.noResults), 1)) : (i(!0), y(B, { key: 2 }, l(R.value, (e, a) => (i(), y(B, { key: a }, [e.kind === "header" ? (i(), y("button", {
|
|
3373
3370
|
key: 0,
|
|
3374
3371
|
ref_for: !0,
|
|
3375
|
-
ref: (t) =>
|
|
3372
|
+
ref: (t) => ie(e.group, t),
|
|
3376
3373
|
type: "button",
|
|
3377
3374
|
"aria-expanded": !N(e.group),
|
|
3378
|
-
"aria-controls":
|
|
3375
|
+
"aria-controls": co,
|
|
3379
3376
|
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)]",
|
|
3380
3377
|
"data-testid": "merge-tag-picker-group-header",
|
|
3381
3378
|
"data-group-name": e.group,
|
|
3382
3379
|
"data-group-collapsed": N(e.group) ? "true" : "false",
|
|
3383
3380
|
onClick: (t) => I(e.group)
|
|
3384
3381
|
}, [
|
|
3385
|
-
H(S(
|
|
3382
|
+
H(S(Ue), {
|
|
3386
3383
|
size: 12,
|
|
3387
3384
|
"stroke-width": 2,
|
|
3388
3385
|
class: C(["tpl:transition-transform", N(e.group) ? "tpl:-rotate-90" : ""])
|
|
3389
3386
|
}, null, 8, ["class"]),
|
|
3390
3387
|
A("span", null, j(e.group), 1),
|
|
3391
|
-
A("span",
|
|
3392
|
-
], 8,
|
|
3388
|
+
A("span", no, " (" + j(S(r)(S(n).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
|
|
3389
|
+
], 8, to)) : (i(), y("button", {
|
|
3393
3390
|
key: 1,
|
|
3394
3391
|
id: ce(e.index),
|
|
3395
3392
|
type: "button",
|
|
@@ -3402,26 +3399,26 @@ var ma = [
|
|
|
3402
3399
|
title: h(e.tag),
|
|
3403
3400
|
class: C(["tpl:flex tpl:w-full tpl:cursor-pointer tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:border-none tpl:px-3 tpl:py-1.5 tpl:text-left tpl:transition-colors", e.index === E.value ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:bg-transparent tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
3404
3401
|
"data-testid": "merge-tag-picker-item",
|
|
3405
|
-
onMousemove: (t) =>
|
|
3406
|
-
onClick: (t) =>
|
|
3402
|
+
onMousemove: (t) => W(e.index),
|
|
3403
|
+
onClick: (t) => G(e.tag)
|
|
3407
3404
|
}, [
|
|
3408
|
-
A("span",
|
|
3409
|
-
A("span",
|
|
3410
|
-
e.tag.description ? (i(), y("span",
|
|
3411
|
-
e.tag.sample === void 0 ? w("", !0) : (i(), y("span",
|
|
3412
|
-
], 42,
|
|
3413
|
-
], 12,
|
|
3405
|
+
A("span", io, j(e.tag.label), 1),
|
|
3406
|
+
A("span", ao, j(e.tag.value), 1),
|
|
3407
|
+
e.tag.description ? (i(), y("span", oo, j(e.tag.description), 1)) : w("", !0),
|
|
3408
|
+
e.tag.sample === void 0 ? w("", !0) : (i(), y("span", so, j(S(r)(S(n).mergeTag.picker.sample, { sample: e.tag.sample })), 1))
|
|
3409
|
+
], 42, ro))], 64))), 128))], 8, Qa)
|
|
3410
|
+
], 12, Wa)]),
|
|
3414
3411
|
_: 1
|
|
3415
3412
|
}, 8, ["visible"]));
|
|
3416
3413
|
}
|
|
3417
|
-
}),
|
|
3414
|
+
}), uo = ["data-logic-keyword"], fo = /* @__PURE__ */ n({
|
|
3418
3415
|
__name: "LogicTagBadge",
|
|
3419
3416
|
props: {
|
|
3420
3417
|
value: {},
|
|
3421
3418
|
syntax: {}
|
|
3422
3419
|
},
|
|
3423
3420
|
setup(e) {
|
|
3424
|
-
let t = e, n = P(() =>
|
|
3421
|
+
let t = e, n = P(() => Te(t.value, t.syntax)), r = P(() => X(t.value, t.syntax));
|
|
3425
3422
|
return (e, t) => n.value ? (i(), y("span", {
|
|
3426
3423
|
key: 0,
|
|
3427
3424
|
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",
|
|
@@ -3431,22 +3428,22 @@ var ma = [
|
|
|
3431
3428
|
},
|
|
3432
3429
|
"data-testid": "merge-tag-logic-badge",
|
|
3433
3430
|
"data-logic-keyword": r.value
|
|
3434
|
-
}, j(r.value), 9,
|
|
3431
|
+
}, j(r.value), 9, uo)) : w("", !0);
|
|
3435
3432
|
}
|
|
3436
|
-
}),
|
|
3433
|
+
}), po = ["aria-labelledby", "data-tpl-theme"], mo = { 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" }, ho = ["id"], go = ["aria-label"], _o = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, vo = [
|
|
3437
3434
|
"id",
|
|
3438
3435
|
"placeholder",
|
|
3439
3436
|
"aria-label",
|
|
3440
3437
|
"aria-activedescendant"
|
|
3441
|
-
],
|
|
3438
|
+
], yo = ["aria-label"], bo = {
|
|
3442
3439
|
key: 0,
|
|
3443
3440
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3444
3441
|
"data-testid": "logic-picker-empty"
|
|
3445
|
-
},
|
|
3442
|
+
}, xo = {
|
|
3446
3443
|
key: 1,
|
|
3447
3444
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3448
3445
|
"data-testid": "logic-picker-empty"
|
|
3449
|
-
},
|
|
3446
|
+
}, So = ["data-group-name"], Co = [
|
|
3450
3447
|
"id",
|
|
3451
3448
|
"aria-selected",
|
|
3452
3449
|
"data-selected",
|
|
@@ -3454,19 +3451,19 @@ var ma = [
|
|
|
3454
3451
|
"data-logic-kind",
|
|
3455
3452
|
"onMousemove",
|
|
3456
3453
|
"onClick"
|
|
3457
|
-
],
|
|
3454
|
+
], wo = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, To = { class: "tpl:text-sm tpl:font-medium" }, Eo = {
|
|
3458
3455
|
key: 0,
|
|
3459
3456
|
class: "tpl:flex tpl:items-center"
|
|
3460
|
-
},
|
|
3457
|
+
}, Do = {
|
|
3461
3458
|
key: 1,
|
|
3462
3459
|
class: "tpl:flex tpl:items-center tpl:gap-1"
|
|
3463
|
-
},
|
|
3460
|
+
}, Oo = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, ko = {
|
|
3464
3461
|
key: 0,
|
|
3465
3462
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3466
|
-
},
|
|
3463
|
+
}, Ao = "tpl-logic-picker-list", jo = /* @__PURE__ */ n({
|
|
3467
3464
|
__name: "LogicTagPickerModal",
|
|
3468
3465
|
setup(e) {
|
|
3469
|
-
let t =
|
|
3466
|
+
let t = zt(yt, "LogicTagPickerModal"), { t: n } = $(), r = f(mt, pe.liquid), s = f(Vt, null), u = f(Tt, null), d = z(""), p = er(d, 200), m = z(null), h = P(() => p.value.trim().length > 0), g = z(0);
|
|
3470
3467
|
function _(e) {
|
|
3471
3468
|
let t = p.value.trim().toLowerCase();
|
|
3472
3469
|
return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
|
|
@@ -3534,59 +3531,59 @@ var ma = [
|
|
|
3534
3531
|
function U() {
|
|
3535
3532
|
t.resolve(null);
|
|
3536
3533
|
}
|
|
3537
|
-
function
|
|
3534
|
+
function ne(e) {
|
|
3538
3535
|
I.value.length !== 0 && (g.value = Math.max(0, Math.min(I.value.length - 1, g.value + e)), D(() => {
|
|
3539
3536
|
R.value?.querySelector(`[data-logic-index="${g.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
3540
3537
|
}));
|
|
3541
3538
|
}
|
|
3542
|
-
function
|
|
3543
|
-
if (e.key === "ArrowDown") e.preventDefault(),
|
|
3544
|
-
else if (e.key === "ArrowUp") e.preventDefault(),
|
|
3539
|
+
function W(e) {
|
|
3540
|
+
if (e.key === "ArrowDown") e.preventDefault(), ne(1);
|
|
3541
|
+
else if (e.key === "ArrowUp") e.preventDefault(), ne(-1);
|
|
3545
3542
|
else if (e.key === "Enter") {
|
|
3546
3543
|
e.preventDefault();
|
|
3547
3544
|
let t = I.value[g.value];
|
|
3548
3545
|
t && V(t);
|
|
3549
3546
|
}
|
|
3550
3547
|
}
|
|
3551
|
-
function
|
|
3552
|
-
return `${
|
|
3548
|
+
function G(e) {
|
|
3549
|
+
return `${Ao}-opt-${e}`;
|
|
3553
3550
|
}
|
|
3554
|
-
function
|
|
3555
|
-
return I.value.length === 0 ? void 0 : `${
|
|
3551
|
+
function K() {
|
|
3552
|
+
return I.value.length === 0 ? void 0 : `${Ao}-opt-${g.value}`;
|
|
3556
3553
|
}
|
|
3557
|
-
return (e, o) => (i(), T(
|
|
3554
|
+
return (e, o) => (i(), T($t, {
|
|
3558
3555
|
visible: S(t).isOpen.value,
|
|
3559
3556
|
onClose: U,
|
|
3560
|
-
onKeydown:
|
|
3557
|
+
onKeydown: W
|
|
3561
3558
|
}, {
|
|
3562
3559
|
default: a(() => [A("div", {
|
|
3563
3560
|
role: "dialog",
|
|
3564
3561
|
"aria-modal": "true",
|
|
3565
|
-
"aria-labelledby": `${
|
|
3562
|
+
"aria-labelledby": `${Ao}-title`,
|
|
3566
3563
|
"data-tpl-theme": S(u),
|
|
3567
3564
|
"data-testid": "logic-picker-modal",
|
|
3568
3565
|
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)]",
|
|
3569
3566
|
style: F(S(s))
|
|
3570
3567
|
}, [
|
|
3571
|
-
A("header",
|
|
3572
|
-
id: `${
|
|
3568
|
+
A("header", mo, [A("h2", {
|
|
3569
|
+
id: `${Ao}-title`,
|
|
3573
3570
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
3574
|
-
}, j(S(n).logicTag.picker.title), 9,
|
|
3571
|
+
}, j(S(n).logicTag.picker.title), 9, ho), A("button", {
|
|
3575
3572
|
type: "button",
|
|
3576
3573
|
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)]",
|
|
3577
3574
|
"aria-label": S(n).logicTag.picker.close,
|
|
3578
3575
|
"data-testid": "logic-picker-close",
|
|
3579
3576
|
onClick: U
|
|
3580
|
-
}, [H(S(
|
|
3577
|
+
}, [H(S(ct), {
|
|
3581
3578
|
size: 16,
|
|
3582
3579
|
"stroke-width": 2
|
|
3583
|
-
})], 8,
|
|
3584
|
-
A("div",
|
|
3580
|
+
})], 8, go)]),
|
|
3581
|
+
A("div", _o, [H(S(Ye), {
|
|
3585
3582
|
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)]",
|
|
3586
3583
|
size: 14,
|
|
3587
3584
|
"stroke-width": 2
|
|
3588
3585
|
}), c(A("input", {
|
|
3589
|
-
id: `${
|
|
3586
|
+
id: `${Ao}-search`,
|
|
3590
3587
|
ref_key: "searchInputRef",
|
|
3591
3588
|
ref: m,
|
|
3592
3589
|
"onUpdate:modelValue": o[0] ||= (e) => d.value = e,
|
|
@@ -3594,27 +3591,27 @@ var ma = [
|
|
|
3594
3591
|
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)]",
|
|
3595
3592
|
placeholder: S(n).logicTag.picker.searchPlaceholder,
|
|
3596
3593
|
"aria-label": S(n).logicTag.picker.searchAriaLabel,
|
|
3597
|
-
"aria-controls":
|
|
3598
|
-
"aria-activedescendant":
|
|
3594
|
+
"aria-controls": Ao,
|
|
3595
|
+
"aria-activedescendant": K(),
|
|
3599
3596
|
"data-testid": "logic-picker-search",
|
|
3600
3597
|
onKeydown: o[1] ||= x(k(() => {}, ["prevent"]), ["enter"])
|
|
3601
|
-
}, null, 40,
|
|
3598
|
+
}, null, 40, vo), [[ee, d.value]])]),
|
|
3602
3599
|
A("div", {
|
|
3603
|
-
id:
|
|
3600
|
+
id: Ao,
|
|
3604
3601
|
ref_key: "listRef",
|
|
3605
3602
|
ref: R,
|
|
3606
3603
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
3607
3604
|
role: "listbox",
|
|
3608
3605
|
"aria-label": S(n).logicTag.picker.title,
|
|
3609
3606
|
"data-testid": "logic-picker-list"
|
|
3610
|
-
}, [L.value ? (i(), y("div",
|
|
3607
|
+
}, [L.value ? (i(), y("div", bo, j(S(n).logicTag.picker.empty), 1)) : te.value ? (i(), y("div", xo, j(S(n).logicTag.picker.noResults), 1)) : (i(!0), y(B, { key: 2 }, l(N.value.rows, (e, t) => (i(), y(B, { key: t }, [e.kind === "header" ? (i(), y("div", {
|
|
3611
3608
|
key: 0,
|
|
3612
3609
|
class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
|
|
3613
3610
|
"data-testid": "logic-picker-header",
|
|
3614
3611
|
"data-group-name": e.label
|
|
3615
|
-
}, j(e.label), 9,
|
|
3612
|
+
}, j(e.label), 9, So)) : (i(), y("button", {
|
|
3616
3613
|
key: 1,
|
|
3617
|
-
id:
|
|
3614
|
+
id: G(e.index),
|
|
3618
3615
|
type: "button",
|
|
3619
3616
|
role: "option",
|
|
3620
3617
|
"aria-selected": e.index === g.value,
|
|
@@ -3626,32 +3623,32 @@ var ma = [
|
|
|
3626
3623
|
onMousemove: (t) => g.value = e.index,
|
|
3627
3624
|
onClick: (t) => V(e.kind === "tag" ? e.tag : e.pair)
|
|
3628
3625
|
}, [
|
|
3629
|
-
A("span",
|
|
3626
|
+
A("span", wo, [A("span", To, j(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (i(), y("span", Eo, [H(fo, {
|
|
3630
3627
|
value: e.tag.value,
|
|
3631
3628
|
syntax: S(r)
|
|
3632
|
-
}, null, 8, ["value", "syntax"])])) : (i(), y("span",
|
|
3633
|
-
H(
|
|
3629
|
+
}, null, 8, ["value", "syntax"])])) : (i(), y("span", Do, [
|
|
3630
|
+
H(fo, {
|
|
3634
3631
|
value: e.pair.before,
|
|
3635
3632
|
syntax: S(r)
|
|
3636
3633
|
}, null, 8, ["value", "syntax"]),
|
|
3637
3634
|
o[2] ||= A("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
|
|
3638
|
-
H(
|
|
3635
|
+
H(fo, {
|
|
3639
3636
|
value: e.pair.after,
|
|
3640
3637
|
syntax: S(r)
|
|
3641
3638
|
}, null, 8, ["value", "syntax"])
|
|
3642
3639
|
]))]),
|
|
3643
|
-
A("span",
|
|
3644
|
-
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (i(), y("span",
|
|
3645
|
-
], 42,
|
|
3646
|
-
], 12,
|
|
3640
|
+
A("span", Oo, j(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
|
|
3641
|
+
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (i(), y("span", ko, j(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : w("", !0)
|
|
3642
|
+
], 42, Co))], 64))), 128))], 8, yo)
|
|
3643
|
+
], 12, po)]),
|
|
3647
3644
|
_: 1
|
|
3648
3645
|
}, 8, ["visible"]));
|
|
3649
3646
|
}
|
|
3650
|
-
}),
|
|
3647
|
+
}), Mo = ["data-tpl-theme"], No = { class: "tpl:absolute tpl:inset-0 tpl:overflow-hidden" }, Po = { class: "tpl-preview-overlay tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Fo = { 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" }, Io = {
|
|
3651
3648
|
key: 0,
|
|
3652
3649
|
"data-testid": "merge-tag-mode-toggle-anchor",
|
|
3653
3650
|
class: "tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-[var(--tpl-shadow-md)]"
|
|
3654
|
-
},
|
|
3651
|
+
}, Lo = { class: "tpl-main tpl-canvas-pane tpl:flex tpl:py-8" }, Ro = ["aria-label"], zo = /*#__PURE__*/ Be(/* @__PURE__ */ n({
|
|
3655
3652
|
__name: "Editor",
|
|
3656
3653
|
props: {
|
|
3657
3654
|
config: {},
|
|
@@ -3666,7 +3663,7 @@ var ma = [
|
|
|
3666
3663
|
},
|
|
3667
3664
|
setup(e, { expose: t }) {
|
|
3668
3665
|
let n = e;
|
|
3669
|
-
s(
|
|
3666
|
+
s(xt, {
|
|
3670
3667
|
renderHtml: () => n.renderHtml?.() ?? Promise.reject(/* @__PURE__ */ Error("HTML rendering is unavailable")),
|
|
3671
3668
|
canRenderHtml: () => n.canRenderHtml?.() ?? !1,
|
|
3672
3669
|
cloud: !!n.cloud,
|
|
@@ -3674,29 +3671,29 @@ var ma = [
|
|
|
3674
3671
|
});
|
|
3675
3672
|
let r = {
|
|
3676
3673
|
get tags() {
|
|
3677
|
-
return
|
|
3674
|
+
return X.mergeTags.value;
|
|
3678
3675
|
},
|
|
3679
3676
|
get syntax() {
|
|
3680
|
-
return
|
|
3677
|
+
return X.mergeTagSyntax;
|
|
3681
3678
|
}
|
|
3682
|
-
}, l = n.config.templates ?
|
|
3683
|
-
n.config.collaboration && !l &&
|
|
3684
|
-
let u = n.config.collaboration && l ?
|
|
3679
|
+
}, l = n.config.templates ? Ln(n.config.templates, r) : void 0;
|
|
3680
|
+
n.config.collaboration && !l && qn.warn("config.collaboration needs config.templates: collaboration runs on a loaded template, and only a templates provider loads one. Collaboration is off.");
|
|
3681
|
+
let u = n.config.collaboration && l ? Vr({
|
|
3685
3682
|
provider: n.config.collaboration,
|
|
3686
3683
|
loadTemplate: (e) => l.load(e),
|
|
3687
3684
|
user: n.config.user,
|
|
3688
3685
|
mergeTags: r,
|
|
3689
3686
|
onRemoteChange: n.config.onRemoteChange,
|
|
3690
3687
|
onError: n.config.onError
|
|
3691
|
-
}) : null, f = l && u ?
|
|
3688
|
+
}) : null, f = l && u ? vi(l, u.core, () => {
|
|
3692
3689
|
let e = h.state.template;
|
|
3693
3690
|
return e ? {
|
|
3694
3691
|
...E(e),
|
|
3695
|
-
content:
|
|
3692
|
+
content: Ie(E(h.content.value))
|
|
3696
3693
|
} : null;
|
|
3697
3694
|
}) : l, m = z(0);
|
|
3698
|
-
s(
|
|
3699
|
-
let h =
|
|
3695
|
+
s(bt, n.config.localization);
|
|
3696
|
+
let h = re({
|
|
3700
3697
|
localization: n.config.localization ?? { locales: [] },
|
|
3701
3698
|
onLocaleChange: n.config.onLocaleChange,
|
|
3702
3699
|
onStructureChange: () => {
|
|
@@ -3704,39 +3701,39 @@ var ma = [
|
|
|
3704
3701
|
},
|
|
3705
3702
|
content: n.config.content,
|
|
3706
3703
|
defaultFontFamily: n.config.fonts?.defaultFont,
|
|
3707
|
-
templateDefaults:
|
|
3704
|
+
templateDefaults: or(n.config),
|
|
3708
3705
|
templates: f,
|
|
3709
3706
|
onError: n.config.onError,
|
|
3710
3707
|
lockedBlocks: u?.locks,
|
|
3711
3708
|
lockLocale: u?.core.lockLocale,
|
|
3712
3709
|
lockSessionId: u?.core.sessionId
|
|
3713
|
-
}), _ =
|
|
3714
|
-
s(
|
|
3715
|
-
let v = n.cloud ? n.cloud.attach({ editor: h }) : null, x = f ?
|
|
3710
|
+
}), _ = dt(h);
|
|
3711
|
+
s(Nt, _.content), h.setCustomBlockDefinitions(n.config.customBlocks ?? []), u && o(h.activeLocale, (e) => u.core.setLockLocale(e), { flush: "sync" }), u?.attach(h);
|
|
3712
|
+
let v = n.cloud ? n.cloud.attach({ editor: h }) : null, x = f ? ci({
|
|
3716
3713
|
provider: f,
|
|
3717
3714
|
editor: h,
|
|
3718
3715
|
guardUnsavedChanges: n.config.templates?.unsavedChangesGuard,
|
|
3719
3716
|
getSaveGate: n.cloud ? () => n.cloud.getSaveGate() : void 0
|
|
3720
3717
|
}) : null;
|
|
3721
3718
|
n.config.onDirtyChange && o(() => h.state.isDirty, (e) => n.config.onDirtyChange(e));
|
|
3722
|
-
let D = z(null), O = n.config.savedBlocks ?
|
|
3719
|
+
let D = z(null), O = n.config.savedBlocks ? oi({
|
|
3723
3720
|
provider: n.config.savedBlocks,
|
|
3724
3721
|
editor: h,
|
|
3725
3722
|
onError: n.config.onError,
|
|
3726
3723
|
isAvailable: n.cloud ? () => n.cloud.isSavedBlocksAvailable() : void 0
|
|
3727
|
-
}) : null, N = g(() => import("./chunks/SavedBlocksPanels-
|
|
3724
|
+
}) : null, N = g(() => import("./chunks/SavedBlocksPanels-B41Rk_v1.js")), ee = n.config.media || n.config.onRequestMedia ? ii({
|
|
3728
3725
|
provider: n.config.media,
|
|
3729
3726
|
onRequestMedia: n.config.onRequestMedia,
|
|
3730
3727
|
getTemplateId: () => h.state.template?.id,
|
|
3731
3728
|
onError: n.config.onError
|
|
3732
|
-
}) : null, I = g(() => import("./chunks/MediaPanels-
|
|
3729
|
+
}) : null, I = g(() => import("./chunks/MediaPanels-BVrQYz2C.js")), L = n.config.testEmail ? pi({
|
|
3733
3730
|
provider: n.config.testEmail,
|
|
3734
3731
|
getContent: () => h.content.value,
|
|
3735
3732
|
renderMjml: n.renderMjml,
|
|
3736
3733
|
usesLocalRenderer: n.usesLocalRenderer,
|
|
3737
3734
|
onError: n.config.onError,
|
|
3738
3735
|
isAvailable: n.cloud ? () => n.cloud.isTestEmailAvailable() : void 0
|
|
3739
|
-
}) : null, R = g(() => import("./chunks/TestEmailPanel-
|
|
3736
|
+
}) : null, R = g(() => import("./chunks/TestEmailPanel-BrivPMk2.js")), B = n.config.comments ? Hr({
|
|
3740
3737
|
provider: n.config.comments,
|
|
3741
3738
|
editor: h,
|
|
3742
3739
|
user: n.config.user,
|
|
@@ -3744,7 +3741,7 @@ var ma = [
|
|
|
3744
3741
|
onError: n.config.onError,
|
|
3745
3742
|
isAvailable: n.cloud ? () => n.cloud.isCommentsAvailable() : void 0,
|
|
3746
3743
|
isBlockSaved: n.cloud ? (e) => n.cloud.isBlockSaved(e) : void 0
|
|
3747
|
-
}) : null, U = g(() => import("./chunks/CommentsPanel-
|
|
3744
|
+
}) : null, U = g(() => import("./chunks/CommentsPanel-lgjJNrrY.js")), ne = g(() => import("./chunks/AiPanels-Cx3PE2mE.js")), W = n.config.ai ? Zr({
|
|
3748
3745
|
provider: n.config.ai,
|
|
3749
3746
|
editor: h,
|
|
3750
3747
|
localization: n.config.localization ?? { locales: [] },
|
|
@@ -3753,62 +3750,62 @@ var ma = [
|
|
|
3753
3750
|
m.value++;
|
|
3754
3751
|
},
|
|
3755
3752
|
collaboration: u,
|
|
3756
|
-
history: () =>
|
|
3753
|
+
history: () => X.history,
|
|
3757
3754
|
reload: x ? (e, t) => x.load(e, t) : null,
|
|
3758
|
-
altMaxLength: () =>
|
|
3759
|
-
mergeTags: () =>
|
|
3760
|
-
normalize: (e, t) =>
|
|
3755
|
+
altMaxLength: () => Hn(on(n.config)),
|
|
3756
|
+
mergeTags: () => ti(X.mergeTags.value, X.mergeTagSyntax),
|
|
3757
|
+
normalize: (e, t) => Fn(e, t, r),
|
|
3761
3758
|
commentsOpen: B?.isOpen ?? null,
|
|
3762
3759
|
onError: n.config.onError
|
|
3763
3760
|
}) : null;
|
|
3764
|
-
|
|
3765
|
-
let
|
|
3766
|
-
s(
|
|
3767
|
-
let
|
|
3761
|
+
W && s(It, W);
|
|
3762
|
+
let G = ft(h, n.config.customBlocks ?? []);
|
|
3763
|
+
s(Bt, G);
|
|
3764
|
+
let K = n.config.translation ? Ir({
|
|
3768
3765
|
provider: n.config.translation,
|
|
3769
3766
|
editor: h,
|
|
3770
3767
|
localization: n.config.localization,
|
|
3771
3768
|
collaboration: u,
|
|
3772
|
-
history: () =>
|
|
3769
|
+
history: () => X.history,
|
|
3773
3770
|
definitions: () => n.config.customBlocks ?? [],
|
|
3774
|
-
syntax: () =>
|
|
3775
|
-
coverage: () =>
|
|
3771
|
+
syntax: () => X.mergeTagSyntax,
|
|
3772
|
+
coverage: () => G.value
|
|
3776
3773
|
}) : null;
|
|
3777
|
-
|
|
3778
|
-
let
|
|
3774
|
+
K && s(Rt, K);
|
|
3775
|
+
let q = z(null);
|
|
3779
3776
|
o([() => h.state.template?.id ?? null, h.loadVersion], () => {
|
|
3780
|
-
|
|
3781
|
-
}, { flush: "sync" }), o(() =>
|
|
3782
|
-
|
|
3777
|
+
q.value = null;
|
|
3778
|
+
}, { flush: "sync" }), o(() => Z(h.content.value), (e) => {
|
|
3779
|
+
q.value && q.value.language !== e && (q.value = null);
|
|
3783
3780
|
}, { flush: "sync" });
|
|
3784
|
-
let
|
|
3781
|
+
let J = Ar({
|
|
3785
3782
|
editor: h,
|
|
3786
|
-
history: () =>
|
|
3783
|
+
history: () => X.history,
|
|
3787
3784
|
collaboration: u
|
|
3788
3785
|
});
|
|
3789
|
-
s(
|
|
3786
|
+
s(ht, { setDefaultLocale(e) {
|
|
3790
3787
|
let t = {
|
|
3791
3788
|
language: e,
|
|
3792
|
-
old:
|
|
3793
|
-
count:
|
|
3794
|
-
}, r =
|
|
3795
|
-
return r.applied && (
|
|
3789
|
+
old: Z(h.content.value),
|
|
3790
|
+
count: ue(h.content.value, e, n.config.customBlocks).length
|
|
3791
|
+
}, r = J.setDefaultLocale(e);
|
|
3792
|
+
return r.applied && (q.value = t), r;
|
|
3796
3793
|
} });
|
|
3797
|
-
let
|
|
3798
|
-
ce && x !== null && !x.canSave.value &&
|
|
3799
|
-
let
|
|
3794
|
+
let ie = g(() => import("./chunks/LocaleNotices-TxeAl8Iq.js")), ae = g(() => import("./chunks/CollaborationNotices-IuLYT2x7.js")), oe = g(() => import("./chunks/CloudPanels-CRztnw4M.js")), se = g(() => import("./chunks/CloudHeaderExtras-uUJYJFJ6.js")), Y = g(() => import("./chunks/VersionHistoryPanels-CgxhMRAl.js")), ce = hi(n.config.templates?.autoSave, !1), le = ce && x !== null;
|
|
3795
|
+
ce && x !== null && !x.canSave.value && qn.warn("config.templates.autoSave is on but this provider's save is false — there is nothing to persist to. Give it a real save function, or use `onChange` to persist the content yourself."), n.config.changeDebounce !== void 0 && x !== null && n.config.templates?.autoSave === void 0 && !n.config.onChange && qn.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.");
|
|
3796
|
+
let de = n.config.onChange || le ? {
|
|
3800
3797
|
onChange: () => {
|
|
3801
3798
|
n.config.onChange?.(JSON.parse(JSON.stringify(h.state.content))), le && x.requestAutoSave();
|
|
3802
3799
|
},
|
|
3803
3800
|
...n.config.changeDebounce === void 0 ? {} : { debounce: n.config.changeDebounce }
|
|
3804
|
-
} : null,
|
|
3801
|
+
} : null, fe = {
|
|
3805
3802
|
...O ? { savedBlocks: O.capability } : {},
|
|
3806
3803
|
...x ? { templates: x.capability } : {},
|
|
3807
3804
|
...L ? { testEmail: L.capability } : {},
|
|
3808
3805
|
...B ? { comments: B.capability } : {},
|
|
3809
3806
|
...u ? { collaboration: u.capability } : {},
|
|
3810
|
-
...
|
|
3811
|
-
},
|
|
3807
|
+
...W ? { ai: W.capability } : {}
|
|
3808
|
+
}, X = wn({
|
|
3812
3809
|
editor: h,
|
|
3813
3810
|
containerEl: D,
|
|
3814
3811
|
config: {
|
|
@@ -3835,23 +3832,23 @@ var ma = [
|
|
|
3835
3832
|
},
|
|
3836
3833
|
translations: n.translations,
|
|
3837
3834
|
fontsManager: n.fontsManager,
|
|
3838
|
-
autoSaveOptions:
|
|
3839
|
-
capabilities:
|
|
3835
|
+
autoSaveOptions: de,
|
|
3836
|
+
capabilities: fe,
|
|
3840
3837
|
editorRoot: n.shadowRoot,
|
|
3841
3838
|
history: u?.history
|
|
3842
|
-
}),
|
|
3839
|
+
}), pe = z("content");
|
|
3843
3840
|
o(() => h.state.template?.id, () => {
|
|
3844
|
-
h.selectedBlock.value && (
|
|
3841
|
+
h.selectedBlock.value && (pe.value = "content");
|
|
3845
3842
|
});
|
|
3846
|
-
let
|
|
3847
|
-
core:
|
|
3848
|
-
capabilities:
|
|
3849
|
-
}) : null,
|
|
3843
|
+
let me = n.cloud && v ? n.cloud.ready({
|
|
3844
|
+
core: X,
|
|
3845
|
+
capabilities: fe
|
|
3846
|
+
}) : null, he = n.config.versionHistory ? mi({
|
|
3850
3847
|
provider: n.config.versionHistory,
|
|
3851
|
-
editor:
|
|
3852
|
-
history:
|
|
3853
|
-
conditionPreview:
|
|
3854
|
-
autoSave:
|
|
3848
|
+
editor: Pn(h, r),
|
|
3849
|
+
history: X.history,
|
|
3850
|
+
conditionPreview: X.conditionPreview,
|
|
3851
|
+
autoSave: X.autoSave,
|
|
3855
3852
|
collaboration: u ? {
|
|
3856
3853
|
suspend: u.core.suspend,
|
|
3857
3854
|
resume: u.core.resume,
|
|
@@ -3864,70 +3861,70 @@ var ma = [
|
|
|
3864
3861
|
} : null,
|
|
3865
3862
|
onError: n.config.onError
|
|
3866
3863
|
}) : null;
|
|
3867
|
-
|
|
3868
|
-
let
|
|
3864
|
+
he && (fe.versionHistory = he.capability);
|
|
3865
|
+
let ge = P(() => B?.isOpen.value === !0 || W !== null && W.panel.value !== null || v?.panelState.rightPanelOpen.value === !0), _e = P(() => h.state.previewMode ? "tpl:left-0 tpl:right-0" : ge.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"), ve = z(null), ye = z(0), be = P(() => ({ top: `calc(3.5 * var(--tpl-base-size) + ${ye.value}px)` })), xe;
|
|
3869
3866
|
d(() => {
|
|
3870
|
-
|
|
3871
|
-
e && (
|
|
3872
|
-
}),
|
|
3873
|
-
}), p(() =>
|
|
3874
|
-
let { showNotice:
|
|
3867
|
+
ye.value = ve.value?.offsetHeight ?? 0, ve.value && typeof ResizeObserver < "u" && (xe = new ResizeObserver(([e]) => {
|
|
3868
|
+
e && (ye.value = e.borderBoxSize?.[0]?.blockSize ?? e.contentRect.height);
|
|
3869
|
+
}), xe.observe(ve.value));
|
|
3870
|
+
}), p(() => xe?.disconnect());
|
|
3871
|
+
let { showNotice: Se } = kn(() => n.config.smallScreenNotice);
|
|
3875
3872
|
d(async () => {
|
|
3876
3873
|
await n.fontsManager.loadCustomFonts();
|
|
3877
3874
|
}), p(() => {
|
|
3878
|
-
n.fontsManager.cleanupFontLinks(),
|
|
3875
|
+
n.fontsManager.cleanupFontLinks(), W?.destroy(), n.cloud?.destroy(), X.destroy();
|
|
3879
3876
|
});
|
|
3880
|
-
let
|
|
3877
|
+
let Ce = x ?? h, we = Gn(X.editorRoot);
|
|
3881
3878
|
return t({
|
|
3882
|
-
getLocale: () => h.activeLocale.value ??
|
|
3879
|
+
getLocale: () => h.activeLocale.value ?? Z(h.content.value),
|
|
3883
3880
|
setLocale: (e) => h.setActiveLocale(e),
|
|
3884
3881
|
getContent: () => h.content.value,
|
|
3885
3882
|
setContent: (e) => h.setContent(e),
|
|
3886
3883
|
insertBlock: (e) => {
|
|
3887
|
-
if (h.state.previewMode) return
|
|
3888
|
-
let t =
|
|
3889
|
-
return
|
|
3884
|
+
if (h.state.previewMode) return qn.warn("insertBlock() does nothing in preview mode."), null;
|
|
3885
|
+
let t = Le(e);
|
|
3886
|
+
return _i(h, t) ? (we(t.id), t.id) : null;
|
|
3890
3887
|
},
|
|
3891
3888
|
setTheme: (e) => h.setUiTheme(e),
|
|
3892
|
-
setMergeTags:
|
|
3889
|
+
setMergeTags: X.setMergeTags,
|
|
3893
3890
|
isDirty: () => h.state.isDirty,
|
|
3894
|
-
create:
|
|
3895
|
-
load:
|
|
3896
|
-
save:
|
|
3897
|
-
renderCustomBlock:
|
|
3898
|
-
getCustomBlockStylesheet: (e) =>
|
|
3891
|
+
create: Ce.create,
|
|
3892
|
+
load: Ce.load,
|
|
3893
|
+
save: Ce.save,
|
|
3894
|
+
renderCustomBlock: X.registry.renderCustomBlock,
|
|
3895
|
+
getCustomBlockStylesheet: (e) => X.registry.getDefinition(e)?.stylesheet
|
|
3899
3896
|
}), (t, r) => (i(), y("div", {
|
|
3900
3897
|
ref_key: "rootEl",
|
|
3901
3898
|
ref: D,
|
|
3902
3899
|
class: C(["tpl tpl:relative tpl:h-full", { "tpl:dark": S(h).state.darkMode }]),
|
|
3903
|
-
"data-tpl-theme": S(
|
|
3904
|
-
style: F(S(
|
|
3900
|
+
"data-tpl-theme": S(X).resolvedTheme.value,
|
|
3901
|
+
style: F(S(X).themeStyles.value),
|
|
3905
3902
|
onDragover: r[8] ||= k(() => {}, ["prevent"]),
|
|
3906
3903
|
onDrop: r[9] ||= k(() => {}, ["prevent"])
|
|
3907
3904
|
}, [
|
|
3908
|
-
H(
|
|
3909
|
-
A("div",
|
|
3910
|
-
H(
|
|
3905
|
+
H(Mi),
|
|
3906
|
+
A("div", No, [
|
|
3907
|
+
H(Ua, {
|
|
3911
3908
|
editor: S(h),
|
|
3912
3909
|
localization: n.config.localization,
|
|
3913
|
-
core: S(
|
|
3910
|
+
core: S(X),
|
|
3914
3911
|
templates: S(x),
|
|
3915
3912
|
"show-template-name": e.config.templates?.nameField !== !1,
|
|
3916
3913
|
"test-email": S(L),
|
|
3917
|
-
"version-history": S(
|
|
3914
|
+
"version-history": S(he),
|
|
3918
3915
|
comments: S(B),
|
|
3919
3916
|
collaboration: S(u),
|
|
3920
|
-
ai: S(
|
|
3917
|
+
ai: S(W)
|
|
3921
3918
|
}, V({ _: 2 }, [S(v) ? {
|
|
3922
3919
|
name: "left-extras",
|
|
3923
|
-
fn: a(() => [H(S(
|
|
3920
|
+
fn: a(() => [H(S(se), {
|
|
3924
3921
|
part: "left",
|
|
3925
3922
|
cloud: S(v)
|
|
3926
3923
|
}, null, 8, ["cloud"])]),
|
|
3927
3924
|
key: "0"
|
|
3928
3925
|
} : void 0, S(v) ? {
|
|
3929
3926
|
name: "right-extras",
|
|
3930
|
-
fn: a(() => [H(S(
|
|
3927
|
+
fn: a(() => [H(S(se), {
|
|
3931
3928
|
part: "right",
|
|
3932
3929
|
cloud: S(v)
|
|
3933
3930
|
}, null, 8, ["cloud"])]),
|
|
@@ -3944,31 +3941,31 @@ var ma = [
|
|
|
3944
3941
|
"collaboration",
|
|
3945
3942
|
"ai"
|
|
3946
3943
|
]),
|
|
3947
|
-
c(H(
|
|
3944
|
+
c(H(Hi, { style: F(be.value) }, null, 8, ["style"]), [[te, !S(h).state.previewMode]]),
|
|
3948
3945
|
A("div", {
|
|
3949
|
-
class: C(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]",
|
|
3950
|
-
style: F([{ transition: "left var(--tpl-transition),\n right var(--tpl-transition)" },
|
|
3951
|
-
}, [A("div",
|
|
3952
|
-
default: a(() => [S(h).state.previewMode && !S(
|
|
3953
|
-
"sample-mode": S(
|
|
3954
|
-
onChange: r[0] ||= (e) => S(
|
|
3946
|
+
class: C(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]", _e.value]),
|
|
3947
|
+
style: F([{ transition: "left var(--tpl-transition),\n right var(--tpl-transition)" }, be.value])
|
|
3948
|
+
}, [A("div", Po, [A("div", Fo, [H(M, { name: "tpl-preview-pill" }, {
|
|
3949
|
+
default: a(() => [S(h).state.previewMode && !S(X).previewResolution.supersedesSamples.value ? (i(), y("div", Io, [H(Qn, {
|
|
3950
|
+
"sample-mode": S(X).mergeTagSampleMode.value,
|
|
3951
|
+
onChange: r[0] ||= (e) => S(X).mergeTagSampleMode.value = e
|
|
3955
3952
|
}, null, 8, ["sample-mode"])])) : w("", !0)]),
|
|
3956
3953
|
_: 1
|
|
3957
3954
|
}), H(M, { name: "tpl-preview-pill" }, {
|
|
3958
|
-
default: a(() => [S(
|
|
3955
|
+
default: a(() => [S(X).conditionPreview.hasHiddenBlocks.value && S(X).appliesConditionFilter.value ? (i(), y("button", {
|
|
3959
3956
|
key: 0,
|
|
3960
3957
|
type: "button",
|
|
3961
|
-
class: C([S(
|
|
3958
|
+
class: C([S(qt), "tpl:shadow-[var(--tpl-shadow-md)]"]),
|
|
3962
3959
|
"data-testid": "restore-hidden-blocks",
|
|
3963
|
-
onClick: r[1] ||= (e) => S(
|
|
3964
|
-
}, [H(S(
|
|
3960
|
+
onClick: r[1] ||= (e) => S(X).conditionPreview.reset()
|
|
3961
|
+
}, [H(S(qe), {
|
|
3965
3962
|
size: 16,
|
|
3966
3963
|
"stroke-width": 2
|
|
3967
|
-
}), b(" " + j(S(
|
|
3964
|
+
}), b(" " + j(S(X).t.blockSettings.restoreHiddenBlocks), 1)], 2)) : w("", !0)]),
|
|
3968
3965
|
_: 1
|
|
3969
|
-
})])]), A("main",
|
|
3966
|
+
})])]), A("main", Lo, [H(ji, {
|
|
3970
3967
|
viewport: S(h).state.viewport,
|
|
3971
|
-
content: S(
|
|
3968
|
+
content: S(X).previewResolution.content.value,
|
|
3972
3969
|
"selected-block-id": S(h).state.selectedBlockId,
|
|
3973
3970
|
"dark-mode": S(h).state.darkMode,
|
|
3974
3971
|
"preview-mode": S(h).state.previewMode,
|
|
@@ -3981,30 +3978,30 @@ var ma = [
|
|
|
3981
3978
|
"preview-mode",
|
|
3982
3979
|
"onSelectBlock"
|
|
3983
3980
|
])])], 6),
|
|
3984
|
-
e.config.branding === !1 ? w("", !0) : (i(), T(
|
|
3981
|
+
e.config.branding === !1 ? w("", !0) : (i(), T(fa, {
|
|
3985
3982
|
key: 0,
|
|
3986
|
-
"position-class": [
|
|
3983
|
+
"position-class": [_e.value]
|
|
3987
3984
|
}, null, 8, ["position-class"])),
|
|
3988
3985
|
A("div", {
|
|
3989
3986
|
class: "tpl-sr-only",
|
|
3990
3987
|
role: "status",
|
|
3991
3988
|
"aria-live": "polite",
|
|
3992
3989
|
"aria-atomic": "true",
|
|
3993
|
-
"aria-label": S(
|
|
3994
|
-
}, j(S(
|
|
3995
|
-
c(H(
|
|
3996
|
-
tab:
|
|
3997
|
-
"onUpdate:tab": r[2] ||= (e) =>
|
|
3998
|
-
style: F([
|
|
3990
|
+
"aria-label": S(X).t.landmarks.reorderAnnouncements
|
|
3991
|
+
}, j(S(X).keyboardReorder.announcement.value), 9, Ro),
|
|
3992
|
+
c(H(aa, {
|
|
3993
|
+
tab: pe.value,
|
|
3994
|
+
"onUpdate:tab": r[2] ||= (e) => pe.value = e,
|
|
3995
|
+
style: F([be.value, { "transition-property": "right" }]),
|
|
3999
3996
|
"selected-block": S(h).selectedBlock.value ? S(_).displayBlock(S(h).selectedBlock.value) : null,
|
|
4000
3997
|
settings: S(_).settings.value,
|
|
4001
|
-
"shifted-left":
|
|
3998
|
+
"shifted-left": ge.value,
|
|
4002
3999
|
onUpdateBlock: r[3] ||= (e) => S(h).updateBlock(S(h).state.selectedBlockId, e),
|
|
4003
4000
|
onDeleteBlock: r[4] ||= () => {
|
|
4004
|
-
S(h).state.selectedBlockId && S(
|
|
4001
|
+
S(h).state.selectedBlockId && S(X).blockActions.deleteBlock(S(h).state.selectedBlockId);
|
|
4005
4002
|
},
|
|
4006
4003
|
onDuplicateBlock: r[5] ||= () => {
|
|
4007
|
-
S(h).selectedBlock.value && S(
|
|
4004
|
+
S(h).selectedBlock.value && S(X).blockActions.duplicateBlock(S(h).selectedBlock.value);
|
|
4008
4005
|
},
|
|
4009
4006
|
onUpdateSettings: r[6] ||= (e) => S(h).updateSettings(e)
|
|
4010
4007
|
}, null, 8, [
|
|
@@ -4016,16 +4013,16 @@ var ma = [
|
|
|
4016
4013
|
]), [[te, !S(h).state.previewMode]]),
|
|
4017
4014
|
A("div", {
|
|
4018
4015
|
ref_key: "topChrome",
|
|
4019
|
-
ref:
|
|
4016
|
+
ref: ve,
|
|
4020
4017
|
class: "tpl-top-chrome tpl:absolute tpl:top-14 tpl:right-0 tpl:left-0 tpl:z-40"
|
|
4021
|
-
}, [S(
|
|
4018
|
+
}, [S(he)?.isAvailable.value ? (i(), T(S(Y), {
|
|
4022
4019
|
key: 0,
|
|
4023
|
-
feature: S(
|
|
4024
|
-
}, null, 8, ["feature"])) : w("", !0), e.config.localization ? (i(), T(
|
|
4020
|
+
feature: S(he)
|
|
4021
|
+
}, null, 8, ["feature"])) : w("", !0), e.config.localization ? (i(), T(kr, {
|
|
4025
4022
|
key: 1,
|
|
4026
4023
|
editor: S(h),
|
|
4027
4024
|
locales: e.config.localization.locales,
|
|
4028
|
-
feature: S(
|
|
4025
|
+
feature: S(K),
|
|
4029
4026
|
change: m.value
|
|
4030
4027
|
}, null, 8, [
|
|
4031
4028
|
"editor",
|
|
@@ -4035,11 +4032,11 @@ var ma = [
|
|
|
4035
4032
|
])) : w("", !0)], 512)
|
|
4036
4033
|
]),
|
|
4037
4034
|
A("div", {
|
|
4038
|
-
ref: (e) => S(
|
|
4035
|
+
ref: (e) => S(X).popoverRoot.value = e,
|
|
4039
4036
|
class: "tpl-popover-root"
|
|
4040
4037
|
}, null, 512),
|
|
4041
|
-
H(
|
|
4042
|
-
H(
|
|
4038
|
+
H(lo),
|
|
4039
|
+
H(jo),
|
|
4043
4040
|
S(O)?.isAvailable.value ? (i(), T(S(N), {
|
|
4044
4041
|
key: 0,
|
|
4045
4042
|
feature: S(O)
|
|
@@ -4049,8 +4046,8 @@ var ma = [
|
|
|
4049
4046
|
feature: S(ee),
|
|
4050
4047
|
provider: e.config.media,
|
|
4051
4048
|
locale: e.config.locale,
|
|
4052
|
-
"ui-theme": S(
|
|
4053
|
-
"popover-target": S(
|
|
4049
|
+
"ui-theme": S(X).resolvedTheme.value,
|
|
4050
|
+
"popover-target": S(X).popoverRoot.value
|
|
4054
4051
|
}, null, 8, [
|
|
4055
4052
|
"feature",
|
|
4056
4053
|
"provider",
|
|
@@ -4066,28 +4063,28 @@ var ma = [
|
|
|
4066
4063
|
key: 3,
|
|
4067
4064
|
feature: S(B)
|
|
4068
4065
|
}, null, 8, ["feature"])) : w("", !0),
|
|
4069
|
-
S(
|
|
4066
|
+
S(W) ? (i(), T(S(ne), {
|
|
4070
4067
|
key: 4,
|
|
4071
|
-
feature: S(
|
|
4068
|
+
feature: S(W)
|
|
4072
4069
|
}, null, 8, ["feature"])) : w("", !0),
|
|
4073
|
-
S(u) ||
|
|
4074
|
-
default: a(() => [S(u) ? (i(), T(S(
|
|
4070
|
+
S(u) || q.value ? (i(), T(ur, { key: 5 }, {
|
|
4071
|
+
default: a(() => [S(u) ? (i(), T(S(ae), {
|
|
4075
4072
|
key: 0,
|
|
4076
4073
|
feature: S(u)
|
|
4077
|
-
}, null, 8, ["feature"])) : w("", !0),
|
|
4074
|
+
}, null, 8, ["feature"])) : w("", !0), q.value ? (i(), T(S(ie), {
|
|
4078
4075
|
key: 1,
|
|
4079
|
-
notice:
|
|
4080
|
-
onDismiss: r[7] ||= (e) =>
|
|
4076
|
+
notice: q.value,
|
|
4077
|
+
onDismiss: r[7] ||= (e) => q.value = null
|
|
4081
4078
|
}, null, 8, ["notice"])) : w("", !0)]),
|
|
4082
4079
|
_: 1
|
|
4083
4080
|
})) : w("", !0),
|
|
4084
|
-
e.cloud && S(v) && S(
|
|
4081
|
+
e.cloud && S(v) && S(me) ? (i(), T(S(oe), {
|
|
4085
4082
|
key: 6,
|
|
4086
4083
|
editor: S(h),
|
|
4087
|
-
core: S(
|
|
4084
|
+
core: S(X),
|
|
4088
4085
|
runtime: e.cloud,
|
|
4089
4086
|
cloud: S(v),
|
|
4090
|
-
ready: S(
|
|
4087
|
+
ready: S(me)
|
|
4091
4088
|
}, null, 8, [
|
|
4092
4089
|
"editor",
|
|
4093
4090
|
"core",
|
|
@@ -4095,23 +4092,23 @@ var ma = [
|
|
|
4095
4092
|
"cloud",
|
|
4096
4093
|
"ready"
|
|
4097
4094
|
])) : w("", !0),
|
|
4098
|
-
S(
|
|
4099
|
-
], 46,
|
|
4095
|
+
S(Se) ? (i(), T(ua, { key: 7 })) : w("", !0)
|
|
4096
|
+
], 46, Mo));
|
|
4100
4097
|
}
|
|
4101
|
-
}), [["__scopeId", "data-v-
|
|
4102
|
-
function
|
|
4103
|
-
return e.replace(
|
|
4098
|
+
}), [["__scopeId", "data-v-e3760a37"]]), Bo = /@import\s*(?:url\(\s*(?:"[^"]*"|'[^']*'|[^)]*)\s*\)|"[^"]*"|'[^']*')[^;]*;/g;
|
|
4099
|
+
function Vo(e) {
|
|
4100
|
+
return e.replace(Bo, "");
|
|
4104
4101
|
}
|
|
4105
4102
|
// src/utils/renderProvider.ts
|
|
4106
|
-
function
|
|
4103
|
+
function Ho(e) {
|
|
4107
4104
|
return {
|
|
4108
4105
|
customFonts: e.customFonts.value,
|
|
4109
4106
|
defaultFallback: e.defaultFallback.value
|
|
4110
4107
|
};
|
|
4111
4108
|
}
|
|
4112
|
-
async function
|
|
4113
|
-
let n =
|
|
4114
|
-
return a || (
|
|
4109
|
+
async function Uo(e, t) {
|
|
4110
|
+
let n = Ie(e.getContent()), r = t?.locale ?? Z(n), i = t?.locale !== void 0 || n.settings?.locales?.length ? be(n, r) : n, a = e.getLayout?.(), o = a ? Fe(be(a, r, { missing: "default" }), i) : i;
|
|
4111
|
+
return a || (Ne(o), Ae(o)), await ir(o, {
|
|
4115
4112
|
renderCustomBlock: e.renderCustomBlock,
|
|
4116
4113
|
getCustomBlockStylesheet: e.getCustomBlockStylesheet
|
|
4117
4114
|
}), {
|
|
@@ -4119,7 +4116,7 @@ async function Vo(e, t) {
|
|
|
4119
4116
|
fonts: e.getFonts()
|
|
4120
4117
|
};
|
|
4121
4118
|
}
|
|
4122
|
-
function
|
|
4119
|
+
function Wo(e) {
|
|
4123
4120
|
async function t(t) {
|
|
4124
4121
|
let n = e.provider, r = n?.toMjml?.bind(n);
|
|
4125
4122
|
return r ? r(await e.buildPayload(t)) : e.renderLocalMjml(t);
|
|
@@ -4145,69 +4142,69 @@ function Ho(e) {
|
|
|
4145
4142
|
};
|
|
4146
4143
|
}
|
|
4147
4144
|
// \0virtual:editor-css
|
|
4148
|
-
var Uo = "@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-8c371dc9]{opacity:.35}.tpl-block--idle[data-v-8c371dc9]{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-8c371dc9]: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-8c371dc9]{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-8c371dc9]{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-8c371dc9]{color:var(--tpl-chrome-text-muted);background-color:transparent}.tpl-block-action-btn[data-v-8c371dc9]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-chrome-text)}.tpl-block-action-btn[data-v-8c371dc9]:active{transform:scale(.9)}.tpl-block-delete-btn[data-v-8c371dc9]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-condition-toggle[data-v-8c371dc9]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-condition-toggle[data-v-8c371dc9]:active{transform:scale(.9)}.tpl-block-hidden-overlay[data-v-8c371dc9]{background-color:color-mix(in srgb,var(--tpl-bg) 60%,transparent)}.tpl-block-agent-highlight[data-v-8c371dc9]{outline:2px solid var(--tpl-secondary);outline-offset:-1px;animation:tpl-agent-highlight-8c371dc9 2s ease-out forwards}@keyframes tpl-agent-highlight-8c371dc9{0%,50%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.tpl-block-agent-highlight[data-v-8c371dc9]{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-f8e8256c] .tpl-email-surface:not(.tpl-email-surface *){filter:invert(1) hue-rotate(180deg)}[data-v-f8e8256c] .tpl-email-surface{transition:filter .3s ease}.tpl-canvas--dark-mode[data-v-f8e8256c] .tpl-email-surface img{filter:invert(1) hue-rotate(180deg)}.tpl-canvas--dark-mode[data-v-f8e8256c] .tpl-email-surface.tpl-has-bg-image,.tpl-canvas--dark-mode[data-v-f8e8256c] .tpl-email-surface .tpl-has-bg-image{position:relative;isolation:isolate;background-image:none!important}.tpl-canvas--dark-mode[data-v-f8e8256c] .tpl-email-surface.tpl-has-bg-image:before,.tpl-canvas--dark-mode[data-v-f8e8256c] .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:inline))) 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:3.40282e38px}.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}.tpl\\:group-focus-within\\:opacity-100:is(:where(.tpl\\:group):focus-within *){opacity:1}@media(hover:hover){.tpl\\:group-hover\\:bg-black\\/40:is(:where(.tpl\\:group):hover *){background-color:oklab(0% none none/.4)}.tpl\\:group-hover\\:opacity-100:is(:where(.tpl\\:group):hover *){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-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-87f85584]{transition:opacity .2s cubic-bezier(.16,1,.3,1),transform .2s cubic-bezier(.16,1,.3,1)}.tpl-preview-pill-leave-active[data-v-87f85584]{transition:opacity .15s ease-in,transform .15s ease-in}.tpl-preview-pill-enter-from[data-v-87f85584],.tpl-preview-pill-leave-to[data-v-87f85584]{opacity:0;transform:translateY(-8px) scale(.9)}.tpl-preview-pill-enter-to[data-v-87f85584],.tpl-preview-pill-leave-from[data-v-87f85584]{opacity:1;transform:translateY(0) scale(1)}hex-color-picker{--hcp-width: 200px}hex-color-picker::part(hue){border-radius:var(--tpl-radius-sm, 7px)}hex-color-picker::part(saturation){border-radius:var(--tpl-radius-sm, 7px) var(--tpl-radius-sm, 7px) 0 0}.tpl-color-swatch-empty{background-color:var(--tpl-bg);background-image:linear-gradient(to top right,transparent calc(50% - .75px),var(--tpl-text-dim) calc(50% - .75px),var(--tpl-text-dim) calc(50% + .75px),transparent calc(50% + .75px))}.tpl-color-swatch-transparent{background-color:var(--tpl-bg);background-image:repeating-conic-gradient(var(--tpl-border) 0% 25%,var(--tpl-bg) 0% 50%);background-size:8px 8px}.tpl-pulse-fill[data-v-fca026e4]{animation:tpl-field-pulse-fca026e4 1s ease-out}@keyframes tpl-field-pulse-fca026e4{0%{box-shadow:0 0 color-mix(in srgb,var(--tpl-warning) 30%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 6%,transparent)}40%{box-shadow:0 0 0 3px color-mix(in srgb,var(--tpl-warning) 15%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 5%,transparent)}to{box-shadow:0 0 0 0 transparent;background-color:transparent}}@media(prefers-reduced-motion:reduce){.tpl-pulse-fill[data-v-fca026e4]{animation:none}}input[type=number][data-v-94c2e6ff]::-webkit-outer-spin-button,input[type=number][data-v-94c2e6ff]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-94c2e6ff]{-moz-appearance:textfield}.tpl-collapsible[data-v-206f038f]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s cubic-bezier(.16,1,.3,1)}.tpl-collapsible--open[data-v-206f038f]{grid-template-rows:1fr}.tpl-collapsible>div[data-v-206f038f]{overflow:hidden}@container tpl-header (max-width: 760px){.tpl-language-submenu[data-v-9b071249]{left:0;top:100%;bottom:auto;margin:4px 0 0;max-width:100%}}.tpl-language-row[data-v-9b071249]:hover,.tpl-language-row[data-v-9b071249]:focus-within,[role=menuitem][data-v-9b071249]:hover{background:var(--tpl-bg-hover)}.tpl-language-row[data-active=true][data-v-9b071249]{background:var(--tpl-bg-active)}.tpl-language-row[data-active=true] .tpl-language-pill[data-v-9b071249]{background:var(--tpl-bg)}[aria-disabled=true][data-v-9b071249]{cursor:not-allowed;color:var(--tpl-text-muted)}[aria-disabled=true] svg[data-v-9b071249]{color:var(--tpl-text-dim)}@media(hover:hover)and (pointer:fine){.tpl-language-actions[data-v-9b071249]{opacity:0}.tpl-language-row:hover .tpl-language-actions[data-v-9b071249],.tpl-language-row:focus-within .tpl-language-actions[data-v-9b071249],.tpl-language-actions[aria-expanded=true][data-v-9b071249]{opacity:1}}.tpl-language-actions[data-v-9b071249]{transition:opacity var(--tpl-transition)}.tpl-ai-slide-enter-active[data-v-3d8e197c]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-ai-slide-leave-active[data-v-3d8e197c]{transition:transform .2s cubic-bezier(.16,1,.3,1)}@media(prefers-reduced-motion:reduce){.tpl-ai-slide-enter-active[data-v-3d8e197c],.tpl-ai-slide-leave-active[data-v-3d8e197c]{transition:none}}.tpl-saved-block-skeleton{animation:tpl-saved-block-pulse 1.4s ease-in-out infinite}@keyframes tpl-saved-block-pulse{0%,to{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.tpl-saved-block-skeleton{animation:none}}.tpl-saved-block-select:focus-visible{box-shadow:none}.tpl-saved-block-select:focus-visible:after{content:\"\";position:absolute;inset:-1px;border-radius:var(--tpl-radius-sm);box-shadow:var(--tpl-ring);pointer-events:none}.tpl-saved-block-delete-btn:hover{color:var(--tpl-danger)!important}.tpl-saved-block-rename-btn:hover{color:var(--tpl-primary)!important}.tpl-media-item[data-v-57c35946]:not(.tpl-media-item--selected):hover{border-color:var(--tpl-border)!important}.tpl-media-list-item[data-v-57c35946]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-list-icon[data-v-57c35946]{transform:scale(.35);transform-origin:center}.tpl-preview-icon[data-v-50993988]{transform:scale(.45);transform-origin:center}.tpl-comments-slide-enter-active[data-v-ebc3c2c6]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-comments-slide-leave-active[data-v-ebc3c2c6]{transition:transform .2s cubic-bezier(.16,1,.3,1)}.tpl-comments-input-wrapper[data-v-ebc3c2c6]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-comments-send-btn[data-v-ebc3c2c6]:not(:disabled):hover{transform:scale(1.05)}.tpl-comment-filter[data-v-ebc3c2c6]{color:var(--tpl-text-muted);background-color:transparent}.tpl-comment-filter[data-v-ebc3c2c6]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-filter--active[data-v-ebc3c2c6]{background-color:var(--tpl-primary-light);color:var(--tpl-primary)}.tpl-comment-action[data-v-ebc3c2c6]{color:var(--tpl-text-dim);background-color:transparent}.tpl-comment-action[data-v-ebc3c2c6]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-delete[data-v-ebc3c2c6]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-comment-card[data-v-ebc3c2c6],.tpl-comment-reply-card[data-v-ebc3c2c6]{border-color:var(--tpl-border);background-color:var(--tpl-bg)}.tpl-resolve-enter-active[data-v-ebc3c2c6],.tpl-resolve-leave-active[data-v-ebc3c2c6]{transition:opacity .3s ease,transform .3s ease}.tpl-resolve-enter-from[data-v-ebc3c2c6],.tpl-resolve-leave-to[data-v-ebc3c2c6]{opacity:0;transform:translateY(-4px)}.tpl-resolve-icon[data-v-ebc3c2c6]{transition:color .3s ease,transform .2s ease}.tpl-resolve-icon[data-v-ebc3c2c6]:active{transform:scale(1.3)}.tpl-replies-enter-active[data-v-ebc3c2c6],.tpl-replies-leave-active[data-v-ebc3c2c6]{transition:opacity .25s ease,transform .25s ease}.tpl-replies-enter-from[data-v-ebc3c2c6],.tpl-replies-leave-to[data-v-ebc3c2c6]{opacity:0;transform:translateY(-4px)}.tpl-ai-input-wrapper[data-v-d3e3a1af]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-ai-send-btn[data-v-d3e3a1af]:not(:disabled):hover{transform:scale(1.05)}.tpl-starter-btn[data-v-d3e3a1af]:hover{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.vue-advanced-cropper{text-align:center;position:relative;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}[data-v-7d9a1872] .tpl-cropper-background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper{background-color:transparent!important}[data-v-7d9a1872] .vue-advanced-cropper__background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper__foreground{background-color:var(--tpl-overlay)!important}\n/*$vite$:1*/", Wo = null;
|
|
4149
|
-
function
|
|
4150
|
-
if (
|
|
4145
|
+
var Go = "@import\"https://fonts.bunny.net/css?family=geist:400,500,600\";.tpl-loading-track[data-v-e61f3b63]{height:3px;width:100%;border-radius:9999px;background:linear-gradient(90deg,transparent 0%,color-mix(in srgb,var(--tpl-primary) 10%,transparent) 15%,color-mix(in srgb,var(--tpl-primary) 30%,transparent) 30%,var(--tpl-primary) 50%,color-mix(in srgb,var(--tpl-primary) 30%,transparent) 70%,color-mix(in srgb,var(--tpl-primary) 10%,transparent) 85%,transparent 100%);background-size:200% 100%;animation:tpl-loading-flow-e61f3b63 3s ease-in-out infinite}@keyframes tpl-loading-flow-e61f3b63{0%{background-position:100% 0}to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.tpl-loading-track[data-v-e61f3b63]{animation:none;background-position:50% 0}}.tpl-locale-chip[data-state=changed][data-v-3343ae7d]{color:var(--tpl-secondary)}.tpl-locale-chip[data-state=missing][data-v-3343ae7d],.tpl-locale-chip[data-state=stale][data-v-3343ae7d],.tpl-locale-chip[data-state=tags-differ][data-v-3343ae7d]{color:var(--tpl-warning)}.tpl-block--locale-hidden>.tpl-email-surface[data-v-872194d3]{opacity:.35}.tpl-block--idle[data-v-872194d3]{outline:1.5px dashed color-mix(in srgb,var(--tpl-primary) 30%,transparent);outline-offset:-1px;transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block--idle[data-v-872194d3]:hover{outline:1.5px solid color-mix(in srgb,var(--tpl-primary) 50%,transparent);outline-offset:-1px;box-shadow:0 0 8px color-mix(in srgb,var(--tpl-primary) 8%,transparent)}.tpl-block--picked[data-v-872194d3]{outline:2px solid var(--tpl-primary);outline-offset:-1px;box-shadow:0 0 0 4px color-mix(in srgb,var(--tpl-primary) 18%,transparent);transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block--selected[data-v-872194d3]{outline:2px solid color-mix(in srgb,var(--tpl-primary) 60%,transparent);outline-offset:-1px;box-shadow:0 0 12px color-mix(in srgb,var(--tpl-primary) 15%,transparent);transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block-action-btn[data-v-872194d3]{color:var(--tpl-chrome-text-muted);background-color:transparent}.tpl-block-action-btn[data-v-872194d3]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-chrome-text)}.tpl-block-action-btn[data-v-872194d3]:active{transform:scale(.9)}.tpl-block-delete-btn[data-v-872194d3]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-condition-toggle[data-v-872194d3]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-condition-toggle[data-v-872194d3]:active{transform:scale(.9)}.tpl-block-hidden-overlay[data-v-872194d3]{background-color:color-mix(in srgb,var(--tpl-bg) 60%,transparent)}.tpl-block-agent-highlight[data-v-872194d3]{outline:2px solid var(--tpl-secondary);outline-offset:-1px;animation:tpl-agent-highlight-872194d3 2s ease-out forwards}@keyframes tpl-agent-highlight-872194d3{0%,50%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.tpl-block-agent-highlight[data-v-872194d3]{animation:none}}.tpl-table-editable[data-v-6751d456] th[contenteditable],.tpl-table-editable[data-v-6751d456] td[contenteditable]{outline:none;cursor:text;min-width:calc(2 * var(--tpl-base-size))}.tpl-table-editable[data-v-6751d456] th[contenteditable]:empty:before,.tpl-table-editable[data-v-6751d456] td[contenteditable]:empty:before{content:attr(data-placeholder);color:var(--tpl-text-dim);pointer-events:none}.tpl-table-editable[data-v-6751d456] th[contenteditable]:focus,.tpl-table-editable[data-v-6751d456] td[contenteditable]:focus{outline:2px solid var(--tpl-primary);outline-offset:-2px;border-radius:1px}.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface:not(.tpl-email-surface *){filter:invert(1) hue-rotate(180deg)}[data-v-c72f1327] .tpl-email-surface{transition:filter .3s ease}.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface img{filter:invert(1) hue-rotate(180deg)}.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface.tpl-has-bg-image,.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface .tpl-has-bg-image{position:relative;isolation:isolate;background-image:none!important}.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface.tpl-has-bg-image:before,.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface .tpl-has-bg-image:before{content:\"\";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:var(--tpl-block-bg-layer, none);filter:invert(1) hue-rotate(180deg)}.tpl-icon-enter-active[data-v-632aa74f],.tpl-icon-leave-active[data-v-632aa74f]{transition:opacity .12s cubic-bezier(.16,1,.3,1),transform .12s cubic-bezier(.16,1,.3,1)}.tpl-icon-enter-from[data-v-632aa74f],.tpl-icon-leave-to[data-v-632aa74f]{opacity:0;transform:scale(.8)}.tpl-dark-mode-toggle[data-v-632aa74f]:hover{background-color:var(--tpl-bg-hover)}.tpl-dark-mode-toggle[data-v-632aa74f]:active{transform:scale(.92)}.tpl-icon-enter-active[data-v-eef7b2ca],.tpl-icon-leave-active[data-v-eef7b2ca]{transition:opacity .12s cubic-bezier(.16,1,.3,1),transform .12s cubic-bezier(.16,1,.3,1)}.tpl-icon-enter-from[data-v-eef7b2ca],.tpl-icon-leave-to[data-v-eef7b2ca]{opacity:0;transform:scale(.8)}.tpl-preview-toggle[data-v-eef7b2ca]:hover{background-color:var(--tpl-bg-hover)}.tpl-preview-toggle[data-v-eef7b2ca]:active{transform:scale(.92)}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--tpl-radius-sm:calc(.25 * var(--tpl-base-size));--tpl-radius-md:calc(.375 * var(--tpl-base-size));--tpl-radius-lg:calc(.5 * var(--tpl-base-size));--tpl-shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--tpl-shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--tpl-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--tpl-shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--tpl-radius:calc(.25 * var(--tpl-base-size))}}.tpl\\:pointer-events-auto{pointer-events:auto}.tpl\\:pointer-events-none{pointer-events:none}.tpl\\:invisible{visibility:hidden}.tpl\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl\\:absolute{position:absolute}.tpl\\:fixed{position:fixed}.tpl\\:relative{position:relative}.tpl\\:sticky{position:sticky}.tpl\\:inset-0{inset:0}.tpl\\:inset-x-0{inset-inline:0}.tpl\\:inset-y-1{inset-block:calc(var(--tpl-base-size) / 4)}.tpl\\:inset-s-full{inset-inline-start:100%}.tpl\\:inset-e-1{inset-inline-end:calc(var(--tpl-base-size) / 4)}.tpl\\:-top-0\\.5{top:calc(calc(var(--tpl-base-size) / 4) * -.5)}.tpl\\:-top-1{top:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:-top-2{top:calc(calc(var(--tpl-base-size) / 4) * -2)}.tpl\\:top-0{top:0}.tpl\\:top-1{top:calc(var(--tpl-base-size) / 4)}.tpl\\:top-1\\.5{top:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:top-1\\/2{top:50%}.tpl\\:top-2{top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:top-14{top:calc(calc(var(--tpl-base-size) / 4) * 14)}.tpl\\:top-16{top:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:top-full{top:100%}.tpl\\:right-0{right:0}.tpl\\:right-1{right:calc(var(--tpl-base-size) / 4)}.tpl\\:right-1\\.5{right:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:right-2{right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:right-2\\.5{right:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:right-\\[320px\\]{right:320px}.tpl\\:right-\\[360px\\]{right:360px}.tpl\\:right-\\[680px\\]{right:680px}.tpl\\:bottom-0{bottom:0}.tpl\\:bottom-1{bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:bottom-10{bottom:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:bottom-full{bottom:100%}.tpl\\:-left-1{left:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:left-0{left:0}.tpl\\:left-1\\.5{left:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:left-1\\/2{left:50%}.tpl\\:left-2\\.5{left:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:left-3{left:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:left-5{left:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:left-12{left:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:left-full{left:100%}.tpl\\:z-10{z-index:10}.tpl\\:z-20{z-index:20}.tpl\\:z-40{z-index:40}.tpl\\:z-50{z-index:50}.tpl\\:z-\\[4\\]{z-index:4}.tpl\\:z-\\[5\\]{z-index:5}.tpl\\:z-\\[60\\]{z-index:60}.tpl\\:z-\\[100\\]{z-index:100}.tpl\\:z-\\[10000\\]{z-index:10000}.tpl\\:m-0{margin:0}.tpl\\:m-6{margin:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:mx-0\\.5{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:mx-1{margin-inline:calc(var(--tpl-base-size) / 4)}.tpl\\:mx-1\\.5{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mx-3{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mx-4{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:mx-6{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:mx-auto{margin-inline:auto}.tpl\\:ms-2{margin-inline-start:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mt-0\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:mt-1{margin-top:calc(var(--tpl-base-size) / 4)}.tpl\\:mt-1\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mt-2{margin-top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mt-3{margin-top:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mt-3\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:mt-4{margin-top:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:-mr-1\\.5{margin-right:calc(calc(var(--tpl-base-size) / 4) * -1.5)}.tpl\\:mr-2{margin-right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mb-0{margin-bottom:0}.tpl\\:mb-1{margin-bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:mb-1\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mb-2{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mb-2\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:mb-3{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mb-3\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:mb-4{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:mb-px{margin-bottom:1px}.tpl\\:-ml-1\\.5{margin-left:calc(calc(var(--tpl-base-size) / 4) * -1.5)}.tpl\\:-ml-48{margin-left:calc(calc(var(--tpl-base-size) / 4) * -48)}.tpl\\:ml-0{margin-left:0}.tpl\\:ml-0\\.5{margin-left:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:ml-1{margin-left:calc(var(--tpl-base-size) / 4)}.tpl\\:ml-5{margin-left:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:ml-auto{margin-left:auto}.tpl\\:box-border{box-sizing:border-box}.tpl\\:line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tpl\\:line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tpl\\:\\!flex{display:flex!important}.tpl\\:block{display:block}.tpl\\:contents{display:contents}.tpl\\:flex{display:flex}.tpl\\:grid{display:grid}.tpl\\:inline{display:inline}.tpl\\:inline-block{display:inline-block}.tpl\\:inline-flex{display:inline-flex}.tpl\\:aspect-square{aspect-ratio:1}.tpl\\:size-1\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 1.5);height:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:size-2{width:calc(calc(var(--tpl-base-size) / 4) * 2);height:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:size-4{width:calc(calc(var(--tpl-base-size) / 4) * 4);height:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:size-4\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 4.5);height:calc(calc(var(--tpl-base-size) / 4) * 4.5)}.tpl\\:size-5{width:calc(calc(var(--tpl-base-size) / 4) * 5);height:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:size-6{width:calc(calc(var(--tpl-base-size) / 4) * 6);height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:size-7{width:calc(calc(var(--tpl-base-size) / 4) * 7);height:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:size-8{width:calc(calc(var(--tpl-base-size) / 4) * 8);height:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:size-10{width:calc(calc(var(--tpl-base-size) / 4) * 10);height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:size-16{width:calc(calc(var(--tpl-base-size) / 4) * 16);height:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:size-full{width:100%;height:100%}.tpl\\:h-0{height:0}.tpl\\:h-1\\.5{height:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:h-2\\.5{height:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:h-3{height:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:h-4{height:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:h-5{height:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:h-6{height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:h-7{height:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:h-8{height:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:h-9{height:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:h-10{height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:h-12{height:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:h-14{height:calc(calc(var(--tpl-base-size) / 4) * 14)}.tpl\\:h-16{height:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:h-32{height:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:h-44{height:calc(calc(var(--tpl-base-size) / 4) * 44)}.tpl\\:h-\\[32px\\]{height:32px}.tpl\\:h-full{height:100%}.tpl\\:max-h-24{max-height:calc(calc(var(--tpl-base-size) / 4) * 24)}.tpl\\:max-h-32{max-height:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:max-h-48{max-height:calc(calc(var(--tpl-base-size) / 4) * 48)}.tpl\\:max-h-56{max-height:calc(calc(var(--tpl-base-size) / 4) * 56)}.tpl\\:max-h-64{max-height:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:max-h-\\[50vh\\]{max-height:50vh}.tpl\\:max-h-\\[60vh\\]{max-height:60vh}.tpl\\:max-h-\\[80\\%\\]{max-height:80%}.tpl\\:max-h-\\[80vh\\]{max-height:80vh}.tpl\\:max-h-\\[90\\%\\]{max-height:90%}.tpl\\:max-h-\\[90vh\\]{max-height:90vh}.tpl\\:max-h-full{max-height:100%}.tpl\\:min-h-0{min-height:0}.tpl\\:min-h-6{min-height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:min-h-10{min-height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:min-h-20{min-height:calc(calc(var(--tpl-base-size) / 4) * 20)}.tpl\\:min-h-\\[1em\\]{min-height:1em}.tpl\\:min-h-\\[34px\\]{min-height:34px}.tpl\\:min-h-\\[44px\\]{min-height:44px}.tpl\\:min-h-\\[48px\\]{min-height:48px}.tpl\\:min-h-\\[60px\\]{min-height:60px}.tpl\\:min-h-\\[68px\\]{min-height:68px}.tpl\\:min-h-\\[80px\\]{min-height:80px}.tpl\\:min-h-\\[100px\\]{min-height:100px}.tpl\\:min-h-\\[120px\\]{min-height:120px}.tpl\\:min-h-\\[150px\\]{min-height:150px}.tpl\\:min-h-\\[400px\\]{min-height:400px}.tpl\\:w-1\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:w-1\\/2{width:50%}.tpl\\:w-1\\/3{width:33.3333%}.tpl\\:w-1\\/4{width:25%}.tpl\\:w-2\\/3{width:66.6667%}.tpl\\:w-3{width:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:w-3\\/4{width:75%}.tpl\\:w-5\\/6{width:83.3333%}.tpl\\:w-7{width:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:w-8{width:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:w-9{width:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:w-10{width:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:w-12{width:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:w-16{width:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:w-20{width:calc(calc(var(--tpl-base-size) / 4) * 20)}.tpl\\:w-24{width:calc(calc(var(--tpl-base-size) / 4) * 24)}.tpl\\:w-28{width:calc(calc(var(--tpl-base-size) / 4) * 28)}.tpl\\:w-32{width:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:w-36{width:calc(calc(var(--tpl-base-size) / 4) * 36)}.tpl\\:w-40{width:calc(calc(var(--tpl-base-size) / 4) * 40)}.tpl\\:w-48{width:calc(calc(var(--tpl-base-size) / 4) * 48)}.tpl\\:w-52{width:calc(calc(var(--tpl-base-size) / 4) * 52)}.tpl\\:w-56{width:calc(calc(var(--tpl-base-size) / 4) * 56)}.tpl\\:w-64{width:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:w-72{width:calc(calc(var(--tpl-base-size) / 4) * 72)}.tpl\\:w-80{width:calc(calc(var(--tpl-base-size) / 4) * 80)}.tpl\\:w-96{width:calc(calc(var(--tpl-base-size) / 4) * 96)}.tpl\\:w-\\[300px\\]{width:300px}.tpl\\:w-\\[320px\\]{width:320px}.tpl\\:w-\\[360px\\]{width:360px}.tpl\\:w-\\[400px\\]{width:400px}.tpl\\:w-\\[420px\\]{width:420px}.tpl\\:w-\\[1000px\\]{width:1000px}.tpl\\:w-\\[min\\(420px\\,92vw\\)\\]{width:min(420px,92vw)}.tpl\\:w-full{width:100%}.tpl\\:w-px{width:1px}.tpl\\:max-w-2xl{max-width:calc(42 * var(--tpl-base-size))}.tpl\\:max-w-3xl{max-width:calc(48 * var(--tpl-base-size))}.tpl\\:max-w-\\[220px\\]{max-width:220px}.tpl\\:max-w-\\[240px\\]{max-width:240px}.tpl\\:max-w-\\[260px\\]{max-width:260px}.tpl\\:max-w-\\[320px\\]{max-width:320px}.tpl\\:max-w-\\[600px\\]{max-width:600px}.tpl\\:max-w-\\[calc\\(100\\%_-_2\\*var\\(--tpl-base-size\\)\\)\\]{max-width:calc(100% - 2 * var(--tpl-base-size))}.tpl\\:max-w-\\[calc\\(100vw_-_2\\*var\\(--tpl-base-size\\)\\)\\]{max-width:calc(100vw - 2 * var(--tpl-base-size))}.tpl\\:max-w-full{max-width:100%}.tpl\\:max-w-md{max-width:calc(28 * var(--tpl-base-size))}.tpl\\:max-w-sm{max-width:calc(24 * var(--tpl-base-size))}.tpl\\:min-w-0{min-width:0}.tpl\\:min-w-6{min-width:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:min-w-\\[20px\\]{min-width:20px}.tpl\\:min-w-\\[200px\\]{min-width:200px}.tpl\\:flex-1{flex:1}.tpl\\:flex-shrink-0,.tpl\\:shrink-0{flex-shrink:0}.tpl\\:grow{flex-grow:1}.tpl\\:basis-64{flex-basis:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-4{--tw-translate-x:calc(calc(var(--tpl-base-size) / 4) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-2{--tw-translate-y:calc(calc(var(--tpl-base-size) / 4) * -2);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-y-1{--tw-translate-y:calc(var(--tpl-base-size) / 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:-rotate-90{rotate:-90deg}.tpl\\:rotate-0{rotate:0deg}.tpl\\:rotate-45{rotate:45deg}.tpl\\:rotate-90{rotate:90deg}.tpl\\:rotate-180{rotate:180deg}.tpl\\:animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.tpl\\:animate-spin{animation:1s linear infinite spin}.tpl\\:cursor-default{cursor:default}.tpl\\:cursor-grab{cursor:grab}.tpl\\:cursor-help{cursor:help}.tpl\\:cursor-not-allowed{cursor:not-allowed}.tpl\\:cursor-pointer{cursor:pointer}.tpl\\:resize-none{resize:none}.tpl\\:resize-y{resize:vertical}.tpl\\:list-disc{list-style-type:disc}.tpl\\:list-none{list-style-type:none}.tpl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.tpl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.tpl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.tpl\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.tpl\\:grid-cols-\\[minmax\\(0\\,1fr\\)_auto_minmax\\(0\\,1fr\\)\\]{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.tpl\\:flex-col{flex-direction:column}.tpl\\:flex-row-reverse{flex-direction:row-reverse}.tpl\\:flex-wrap{flex-wrap:wrap}.tpl\\:items-center{align-items:center}.tpl\\:items-end{align-items:flex-end}.tpl\\:items-start{align-items:flex-start}.tpl\\:items-stretch{align-items:stretch}.tpl\\:justify-between{justify-content:space-between}.tpl\\:justify-center{justify-content:center}.tpl\\:justify-end{justify-content:flex-end}.tpl\\:gap-0{gap:0}.tpl\\:gap-0\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:gap-1{gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-1\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:gap-2{gap:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:gap-2\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:gap-3{gap:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:gap-3\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:gap-4{gap:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:gap-5{gap:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:gap-6{gap:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:gap-10{gap:calc(calc(var(--tpl-base-size) / 4) * 10)}:where(.tpl\\:space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--tpl-base-size) / 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--tpl-base-size) / 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-3\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 3.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 3.5) * calc(1 - var(--tw-space-y-reverse)))}.tpl\\:gap-x-1{column-gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-x-3{column-gap:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:gap-x-6{column-gap:calc(calc(var(--tpl-base-size) / 4) * 6)}:where(.tpl\\:-space-x-1\\.5>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(calc(var(--tpl-base-size) / 4) * -1.5) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(calc(var(--tpl-base-size) / 4) * -1.5) * calc(1 - var(--tw-space-x-reverse)))}.tpl\\:gap-y-0\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:gap-y-1{row-gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-y-1\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:gap-y-2{row-gap:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:self-end{align-self:flex-end}.tpl\\:self-start{align-self:flex-start}.tpl\\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tpl\\:overflow-auto{overflow:auto}.tpl\\:overflow-hidden{overflow:hidden}.tpl\\:overflow-x-auto{overflow-x:auto}.tpl\\:overflow-y-auto{overflow-y:auto}.tpl\\:rounded{border-radius:calc(.25 * var(--tpl-base-size))}.tpl\\:rounded-\\[calc\\(var\\(--tpl-radius-sm\\)-2px\\)\\]{border-radius:calc(var(--tpl-radius-sm) - 2px)}.tpl\\:rounded-\\[var\\(--tpl-radius\\)\\]{border-radius:var(--tpl-radius)}.tpl\\:rounded-\\[var\\(--tpl-radius-lg\\)\\]{border-radius:var(--tpl-radius-lg)}.tpl\\:rounded-\\[var\\(--tpl-radius-md\\)\\]{border-radius:var(--tpl-radius-md)}.tpl\\:rounded-\\[var\\(--tpl-radius-sm\\)\\]{border-radius:var(--tpl-radius-sm)}.tpl\\:rounded-full{border-radius:2147483647px}.tpl\\:rounded-lg{border-radius:calc(.5 * var(--tpl-base-size))}.tpl\\:rounded-md{border-radius:calc(.375 * var(--tpl-base-size))}.tpl\\:rounded-sm{border-radius:calc(.25 * var(--tpl-base-size))}.tpl\\:rounded-xl{border-radius:calc(.75 * var(--tpl-base-size))}.tpl\\:rounded-l-\\[var\\(--tpl-radius-sm\\)\\]{border-top-left-radius:var(--tpl-radius-sm);border-bottom-left-radius:var(--tpl-radius-sm)}.tpl\\:rounded-tl-lg{border-top-left-radius:calc(.5 * var(--tpl-base-size))}.tpl\\:rounded-r-\\[var\\(--tpl-radius-sm\\)\\]{border-top-right-radius:var(--tpl-radius-sm);border-bottom-right-radius:var(--tpl-radius-sm)}.tpl\\:rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.tpl\\:border{border-style:var(--tw-border-style);border-width:1px}.tpl\\:border-0{border-style:var(--tw-border-style);border-width:0}.tpl\\:border-2{border-style:var(--tw-border-style);border-width:2px}.tpl\\:border-x-0{border-inline-style:var(--tw-border-style);border-inline-width:0}.tpl\\:border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.tpl\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.tpl\\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.tpl\\:border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.tpl\\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.tpl\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.tpl\\:border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.tpl\\:border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.tpl\\:border-dashed{--tw-border-style:dashed;border-style:dashed}.tpl\\:border-none{--tw-border-style:none;border-style:none}.tpl\\:border-\\[var\\(--tpl-bg\\)\\]{border-color:var(--tpl-bg)}.tpl\\:border-\\[var\\(--tpl-border\\)\\]{border-color:var(--tpl-border)}.tpl\\:border-\\[var\\(--tpl-border-light\\)\\]{border-color:var(--tpl-border-light)}.tpl\\:border-\\[var\\(--tpl-danger\\)\\]{border-color:var(--tpl-danger)}.tpl\\:border-\\[var\\(--tpl-primary\\)\\]{border-color:var(--tpl-primary)}.tpl\\:border-\\[var\\(--tpl-primary-hover\\)\\]{border-color:var(--tpl-primary-hover)}.tpl\\:border-\\[var\\(--tpl-warning\\)\\]{border-color:var(--tpl-warning)}.tpl\\:border-transparent{border-color:#0000}.tpl\\:border-l-\\[var\\(--tpl-primary\\)\\]{border-left-color:var(--tpl-primary)}.tpl\\:border-l-transparent{border-left-color:#0000}.tpl\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-bg\\)_90\\%\\,transparent\\)\\]{background-color:var(--tpl-bg)}@supports (color:color-mix(in lab,red,red)){.tpl\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-bg\\)_90\\%\\,transparent\\)\\]{background-color:color-mix(in srgb,var(--tpl-bg) 90%,transparent)}}.tpl\\:bg-\\[var\\(--tpl-bg\\)\\]{background-color:var(--tpl-bg)}.tpl\\:bg-\\[var\\(--tpl-bg-active\\)\\]{background-color:var(--tpl-bg-active)}.tpl\\:bg-\\[var\\(--tpl-bg-elevated\\)\\]{background-color:var(--tpl-bg-elevated)}.tpl\\:bg-\\[var\\(--tpl-bg-hover\\)\\]{background-color:var(--tpl-bg-hover)}.tpl\\:bg-\\[var\\(--tpl-border\\)\\]{background-color:var(--tpl-border)}.tpl\\:bg-\\[var\\(--tpl-canvas-bg\\)\\]{background-color:var(--tpl-canvas-bg)}.tpl\\:bg-\\[var\\(--tpl-chrome-bg-elevated\\)\\]{background-color:var(--tpl-chrome-bg-elevated)}.tpl\\:bg-\\[var\\(--tpl-chrome-primary-light\\)\\]{background-color:var(--tpl-chrome-primary-light)}.tpl\\:bg-\\[var\\(--tpl-danger\\)\\]{background-color:var(--tpl-danger)}.tpl\\:bg-\\[var\\(--tpl-danger-light\\)\\]{background-color:var(--tpl-danger-light)}.tpl\\:bg-\\[var\\(--tpl-primary\\)\\]{background-color:var(--tpl-primary)}.tpl\\:bg-\\[var\\(--tpl-primary-light\\)\\]{background-color:var(--tpl-primary-light)}.tpl\\:bg-\\[var\\(--tpl-secondary-light\\)\\]{background-color:var(--tpl-secondary-light)}.tpl\\:bg-\\[var\\(--tpl-text-dim\\)\\]{background-color:var(--tpl-text-dim)}.tpl\\:bg-\\[var\\(--tpl-warning-light\\)\\]{background-color:var(--tpl-warning-light)}.tpl\\:bg-black\\/30{background-color:oklab(0% none none/.3)}.tpl\\:bg-transparent{background-color:#0000}.tpl\\:object-contain{object-fit:contain}.tpl\\:object-cover{object-fit:cover}.tpl\\:p-0{padding:0}.tpl\\:p-0\\.5{padding:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:p-1{padding:calc(var(--tpl-base-size) / 4)}.tpl\\:p-1\\.5{padding:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:p-2{padding:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:p-3{padding:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:p-4{padding:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:p-5{padding:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:p-6{padding:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:p-8{padding:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:px-0\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:px-1{padding-inline:calc(var(--tpl-base-size) / 4)}.tpl\\:px-1\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:px-2{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:px-2\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:px-3{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:px-3\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:px-4{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:px-5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:px-6{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:px-8{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:px-10{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:py-0{padding-block:0}.tpl\\:py-0\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:py-1{padding-block:calc(var(--tpl-base-size) / 4)}.tpl\\:py-1\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:py-2{padding-block:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:py-2\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:py-3{padding-block:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:py-3\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:py-4{padding-block:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:py-5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:py-6{padding-block:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:py-8{padding-block:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:py-10{padding-block:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:py-12{padding-block:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:py-16{padding-block:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:py-\\[5px\\]{padding-block:5px}.tpl\\:py-\\[7px\\]{padding-block:7px}.tpl\\:py-px{padding-block:1px}.tpl\\:pt-2{padding-top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pt-2\\.5{padding-top:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:pt-3{padding-top:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pt-4{padding-top:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pr-2{padding-right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pr-3{padding-right:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pr-4{padding-right:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pr-7{padding-right:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:pr-8{padding-right:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:pb-1{padding-bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:pb-1\\.5{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:pb-3{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pb-4{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pl-2\\.5{padding-left:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:pl-3{padding-left:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pl-4{padding-left:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pl-8{padding-left:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:pl-9{padding-left:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:pl-\\[18px\\]{padding-left:18px}.tpl\\:text-center{text-align:center}.tpl\\:text-left{text-align:left}.tpl\\:font-\\[inherit\\]{font-family:inherit}.tpl\\:font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.tpl\\:font-sans{font-family:Geist,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tpl\\:text-base{font-size:var(--tpl-base-size);line-height:var(--tw-leading, 1.5 )}.tpl\\:text-lg{font-size:calc(1.125 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.75 / 1.125))}.tpl\\:text-sm{font-size:calc(.875 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.25 / .875))}.tpl\\:text-xs{font-size:calc(.75 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1 / .75))}.tpl\\:text-\\[0\\.8em\\]{font-size:.8em}.tpl\\:text-\\[0\\.9em\\]{font-size:.9em}.tpl\\:text-\\[1em\\]{font-size:1em}.tpl\\:text-\\[10px\\]{font-size:10px}.tpl\\:text-\\[12px\\]{font-size:12px}.tpl\\:text-\\[13px\\]{font-size:13px}.tpl\\:text-\\[length\\:inherit\\]{font-size:inherit}.tpl\\:leading-\\[inherit\\]{--tw-leading:inherit;line-height:inherit}.tpl\\:leading-none{--tw-leading:1;line-height:1}.tpl\\:leading-normal{--tw-leading:1.5;line-height:1.5}.tpl\\:leading-relaxed{--tw-leading:1.625;line-height:1.625}.tpl\\:leading-snug{--tw-leading:1.375;line-height:1.375}.tpl\\:leading-tight{--tw-leading:1.25;line-height:1.25}.tpl\\:font-\\[var\\(--tpl-font-family\\)\\]{--tw-font-weight:var(--tpl-font-family);font-weight:var(--tpl-font-family)}.tpl\\:font-bold{--tw-font-weight:700;font-weight:700}.tpl\\:font-medium{--tw-font-weight:500;font-weight:500}.tpl\\:font-normal{--tw-font-weight:400;font-weight:400}.tpl\\:font-semibold{--tw-font-weight:600;font-weight:600}.tpl\\:tracking-wide{--tw-tracking:.025em;letter-spacing:.025em}.tpl\\:tracking-wider{--tw-tracking:.05em;letter-spacing:.05em}.tpl\\:break-words{overflow-wrap:break-word}.tpl\\:break-all{word-break:break-all}.tpl\\:text-ellipsis{text-overflow:ellipsis}.tpl\\:whitespace-normal{white-space:normal}.tpl\\:whitespace-nowrap{white-space:nowrap}.tpl\\:whitespace-pre-wrap{white-space:pre-wrap}.tpl\\:text-\\[var\\(--tpl-bg\\)\\]{color:var(--tpl-bg)}.tpl\\:text-\\[var\\(--tpl-border-light\\)\\]{color:var(--tpl-border-light)}.tpl\\:text-\\[var\\(--tpl-chrome-text\\)\\]{color:var(--tpl-chrome-text)}.tpl\\:text-\\[var\\(--tpl-chrome-text-dim\\)\\]{color:var(--tpl-chrome-text-dim)}.tpl\\:text-\\[var\\(--tpl-chrome-text-muted\\)\\]{color:var(--tpl-chrome-text-muted)}.tpl\\:text-\\[var\\(--tpl-danger\\)\\]{color:var(--tpl-danger)}.tpl\\:text-\\[var\\(--tpl-on-primary\\)\\]{color:var(--tpl-on-primary)}.tpl\\:text-\\[var\\(--tpl-primary\\)\\]{color:var(--tpl-primary)}.tpl\\:text-\\[var\\(--tpl-primary-hover\\)\\]{color:var(--tpl-primary-hover)}.tpl\\:text-\\[var\\(--tpl-success\\)\\]{color:var(--tpl-success)}.tpl\\:text-\\[var\\(--tpl-success\\,var\\(--tpl-primary\\)\\)\\]{color:var(--tpl-success,var(--tpl-primary))}.tpl\\:text-\\[var\\(--tpl-text\\)\\]{color:var(--tpl-text)}.tpl\\:text-\\[var\\(--tpl-text-dim\\)\\]{color:var(--tpl-text-dim)}.tpl\\:text-\\[var\\(--tpl-text-muted\\)\\]{color:var(--tpl-text-muted)}.tpl\\:text-\\[var\\(--tpl-warning\\)\\]{color:var(--tpl-warning)}.tpl\\:normal-case{text-transform:none}.tpl\\:uppercase{text-transform:uppercase}.tpl\\:italic{font-style:italic}.tpl\\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, )}.tpl\\:no-underline{text-decoration-line:none}.tpl\\:underline{text-decoration-line:underline}.tpl\\:underline-offset-2{text-underline-offset:2px}.tpl\\:accent-\\[var\\(--tpl-primary\\)\\]{accent-color:var(--tpl-primary)}.tpl\\:opacity-0{opacity:0}.tpl\\:opacity-50{opacity:.5}.tpl\\:opacity-60{opacity:.6}.tpl\\:opacity-70{opacity:.7}.tpl\\:opacity-90{opacity:.9}.tpl\\:opacity-100{opacity:1}.tpl\\:shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-ring\\)\\]{--tw-shadow:var(--tpl-ring);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow\\)\\]{--tw-shadow:var(--tpl-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-lg\\)\\]{--tw-shadow:var(--tpl-shadow-lg);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-md\\)\\]{--tw-shadow:var(--tpl-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-sm\\)\\]{--tw-shadow:var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-1{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-2{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-\\[var\\(--tpl-border\\)\\]{--tw-ring-color:var(--tpl-border)}.tpl\\:ring-\\[var\\(--tpl-primary\\)\\]{--tw-ring-color:var(--tpl-primary)}.tpl\\:ring-offset-1{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.tpl\\:ring-offset-\\[var\\(--tpl-bg-elevated\\)\\]{--tw-ring-offset-color:var(--tpl-bg-elevated)}.tpl\\:backdrop-blur-\\[2px\\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, )}.tpl\\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:duration-100{--tw-duration:.1s;transition-duration:.1s}.tpl\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.tpl\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.tpl\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.tpl\\:duration-\\[80ms\\]{--tw-duration:80ms;transition-duration:80ms}.tpl\\:duration-\\[120ms\\]{--tw-duration:.12s;transition-duration:.12s}.tpl\\:ease-\\[cubic-bezier\\(0\\.16\\,1\\,0\\.3\\,1\\)\\]{--tw-ease:cubic-bezier(.16,1,.3,1);transition-timing-function:cubic-bezier(.16,1,.3,1)}.tpl\\:ease-in{--tw-ease:cubic-bezier(.4, 0, 1, 1);transition-timing-function:cubic-bezier(.4,0,1,1)}.tpl\\:ease-out{--tw-ease:cubic-bezier(0, 0, .2, 1);transition-timing-function:cubic-bezier(0,0,.2,1)}.tpl\\:outline-none{--tw-outline-style:none;outline-style:none}.tpl\\:select-none{-webkit-user-select:none;user-select:none}:is(:where(.tpl\\:group):focus-within .tpl\\:group-focus-within\\:opacity-100){opacity:1}@media(hover:hover){:is(:where(.tpl\\:group):hover .tpl\\:group-hover\\:bg-black\\/40){background-color:oklab(0% none none/.4)}:is(:where(.tpl\\:group):hover .tpl\\:group-hover\\:opacity-100){opacity:1}}.tpl\\:placeholder\\:text-\\[var\\(--tpl-text-dim\\)\\]::placeholder{color:var(--tpl-text-dim)}.tpl\\:last\\:mb-0:last-child{margin-bottom:0}@media(hover:hover){.tpl\\:hover\\:z-10:hover{z-index:10}.tpl\\:hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:border-\\[var\\(--tpl-border\\)\\]:hover{border-color:var(--tpl-border)}.tpl\\:hover\\:border-\\[var\\(--tpl-danger\\)\\]:hover{border-color:var(--tpl-danger)}.tpl\\:hover\\:border-\\[var\\(--tpl-primary\\)\\]:hover{border-color:var(--tpl-primary)}.tpl\\:hover\\:border-\\[var\\(--tpl-text-dim\\)\\]:hover{border-color:var(--tpl-text-dim)}.tpl\\:hover\\:border-l-\\[var\\(--tpl-primary\\)\\]:hover{border-left-color:var(--tpl-primary)}.tpl\\:hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-text\\)_8\\%\\,transparent\\)\\]:hover{background-color:var(--tpl-text)}@supports (color:color-mix(in lab,red,red)){.tpl\\:hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-text\\)_8\\%\\,transparent\\)\\]:hover{background-color:color-mix(in srgb,var(--tpl-text) 8%,transparent)}}.tpl\\:hover\\:bg-\\[var\\(--tpl-bg-active\\)\\]:hover{background-color:var(--tpl-bg-active)}.tpl\\:hover\\:bg-\\[var\\(--tpl-bg-hover\\)\\]:hover{background-color:var(--tpl-bg-hover)}.tpl\\:hover\\:bg-\\[var\\(--tpl-danger-light\\)\\]:hover{background-color:var(--tpl-danger-light)}.tpl\\:hover\\:bg-\\[var\\(--tpl-primary-hover\\)\\]:hover{background-color:var(--tpl-primary-hover)}.tpl\\:hover\\:bg-\\[var\\(--tpl-primary-light\\)\\]:hover{background-color:var(--tpl-primary-light)}.tpl\\:hover\\:bg-\\[var\\(--tpl-warning-light\\)\\]:hover{background-color:var(--tpl-warning-light)}.tpl\\:hover\\:text-\\[var\\(--tpl-danger\\)\\]:hover{color:var(--tpl-danger)}.tpl\\:hover\\:text-\\[var\\(--tpl-primary\\)\\]:hover{color:var(--tpl-primary)}.tpl\\:hover\\:text-\\[var\\(--tpl-text\\)\\]:hover{color:var(--tpl-text)}.tpl\\:hover\\:underline:hover{text-decoration-line:underline}.tpl\\:hover\\:opacity-80:hover{opacity:.8}.tpl\\:hover\\:opacity-100:hover{opacity:1}.tpl\\:hover\\:shadow-\\[var\\(--tpl-shadow-md\\)\\]:hover{--tw-shadow:var(--tpl-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:hover\\:shadow-\\[var\\(--tpl-shadow-sm\\)\\]:hover{--tw-shadow:var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.tpl\\:focus\\:border-\\[var\\(--tpl-primary\\)\\]:focus{border-color:var(--tpl-primary)}.tpl\\:focus\\:shadow-\\[0_0_0_3px_var\\(--tpl-primary-light\\)\\]:focus{--tw-shadow:0 0 0 3px var(--tw-shadow-color,var(--tpl-primary-light));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus\\:shadow-\\[var\\(--tpl-ring\\)\\]:focus,.tpl\\:focus-visible\\:shadow-\\[var\\(--tpl-ring\\)\\]:focus-visible{--tw-shadow:var(--tpl-ring);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus-visible\\:ring-\\[var\\(--tpl-primary\\)\\]:focus-visible{--tw-ring-color:var(--tpl-primary)}.tpl\\:focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.tpl\\:focus-visible\\:ring-offset-\\[var\\(--tpl-bg-elevated\\)\\]:focus-visible{--tw-ring-offset-color:var(--tpl-bg-elevated)}.tpl\\:focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.tpl\\:focus-visible\\:outline-\\[var\\(--tpl-primary\\)\\]:focus-visible{outline-color:var(--tpl-primary)}.tpl\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}@media(hover:hover){.tpl\\:hover\\:focus-visible\\:shadow-\\[var\\(--tpl-ring\\)\\,var\\(--tpl-shadow-sm\\)\\]:hover:focus-visible{--tw-shadow:var(--tpl-ring), var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.tpl\\:active\\:cursor-grabbing:active{cursor:grabbing}.tpl\\:active\\:bg-\\[var\\(--tpl-bg-active\\)\\]:active{background-color:var(--tpl-bg-active)}.tpl\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.tpl\\:disabled\\:opacity-30:disabled{opacity:.3}.tpl\\:disabled\\:opacity-40:disabled{opacity:.4}.tpl\\:disabled\\:opacity-50:disabled{opacity:.5}.tpl\\:disabled\\:opacity-60:disabled{opacity:.6}@media(hover:hover){.tpl\\:disabled\\:hover\\:bg-transparent:disabled:hover{background-color:#0000}}.tpl\\:\\[\\&_p\\]\\:mb-2 p{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}@layer base{:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)):after,:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)):before,:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}:where(.tpl) :where(hr):not(:where(.tpl-email-surface,.tpl-email-surface *)){height:0;color:inherit;border-top-width:1px}:where(.tpl) :where(abbr[title]):not(:where(.tpl-email-surface,.tpl-email-surface *)){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}:where(.tpl) :where(h1):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h2):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h3):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h4):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h5):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h6):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-size:inherit;font-weight:inherit}:where(.tpl) :where(a):not(:where(.tpl-email-surface,.tpl-email-surface *)){color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}:where(.tpl) :where(b):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(strong):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-weight:bolder}:where(.tpl) :where(code):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(kbd):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(samp):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(pre):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}:where(.tpl) :where(small):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-size:80%}:where(.tpl) :where(sub):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(sup):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:baseline;font-size:75%;line-height:0;position:relative}:where(.tpl) :where(sub):not(:where(.tpl-email-surface,.tpl-email-surface *)){bottom:-.25em}:where(.tpl) :where(sup):not(:where(.tpl-email-surface,.tpl-email-surface *)){top:-.5em}:where(.tpl) :where(table):not(:where(.tpl-email-surface,.tpl-email-surface *)){text-indent:0;border-color:inherit;border-collapse:collapse}:where(.tpl) :where(:-moz-focusring:not(iframe)):not(:where(.tpl-email-surface,.tpl-email-surface *)){outline:auto}:where(.tpl) :where(progress):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:baseline}:where(.tpl) :where(summary):not(:where(.tpl-email-surface,.tpl-email-surface *)){display:list-item}:where(.tpl) :where(ol):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(ul):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(menu):not(:where(.tpl-email-surface,.tpl-email-surface *)){list-style:none}:where(.tpl) :where(img):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(svg):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(video):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(canvas):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(audio):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(iframe):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(embed):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(object):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:middle;display:block}:where(.tpl) :where(img):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(video):not(:where(.tpl-email-surface,.tpl-email-surface *)){max-width:100%;height:auto}:where(.tpl) :where(button):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(input):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(select):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(optgroup):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(textarea):not(:where(.tpl-email-surface,.tpl-email-surface *)){font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(.tpl) :where(select:is([multiple],[size]) optgroup):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-weight:bolder}:where(.tpl) :where(select:is([multiple],[size]) optgroup option):not(:where(.tpl-email-surface,.tpl-email-surface *)){padding-inline-start:20px}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{margin-inline-end:4px}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}:where(.tpl) :where(textarea):not(:where(.tpl-email-surface,.tpl-email-surface *)){resize:vertical}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-search-decoration{-webkit-appearance:none}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit{display:inline-flex}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-fields-wrapper{padding:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-year-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-month-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-day-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-hour-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-minute-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-second-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-millisecond-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-meridiem-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-calendar-picker-indicator{line-height:1}:where(.tpl) :where(:-moz-ui-invalid):not(:where(.tpl-email-surface,.tpl-email-surface *)){box-shadow:none}:where(.tpl) :where(button):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(input:is([type=button],[type=reset],[type=submit])):not(:where(.tpl-email-surface,.tpl-email-surface *)){appearance:button}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{appearance:button}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-inner-spin-button{height:auto}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-outer-spin-button{height:auto}:where(.tpl) :where([hidden]:not([hidden=until-found])):not(:where(.tpl-email-surface,.tpl-email-surface *)){display:none!important}}@layer components;.tpl{--tpl-base-size:var(--tpl-user-base-size,16px);--tpl-bg:var(--tpl-user-bg,oklch(99.5% .002 60));--tpl-bg-elevated:var(--tpl-user-bg-elevated,oklch(98% .004 60));--tpl-bg-hover:var(--tpl-user-bg-hover,oklch(96% .006 60));--tpl-bg-active:var(--tpl-user-bg-active,oklch(93.5% .008 60));--tpl-border:var(--tpl-user-border,oklch(92% .006 60));--tpl-border-light:var(--tpl-user-border-light,oklch(86% .01 60));--tpl-text:var(--tpl-user-text,oklch(18% .01 60));--tpl-text-muted:var(--tpl-user-text-muted,oklch(50% .015 60));--tpl-text-dim:var(--tpl-user-text-dim,oklch(68% .012 60));--tpl-primary:var(--tpl-user-primary,oklch(70% .16 55));--tpl-primary-hover:var(--tpl-user-primary-hover,oklch(63% .17 55));--tpl-primary-light:var(--tpl-user-primary-light,oklch(95% .04 55));--tpl-on-primary:var(--tpl-user-on-primary,var(--tpl-bg));--tpl-secondary:var(--tpl-user-secondary,oklch(60% .118 184.71));--tpl-secondary-hover:var(--tpl-user-secondary-hover,oklch(53.2% .105 186.39));--tpl-secondary-light:var(--tpl-user-secondary-light,oklch(93.8% .03 186.82));--tpl-success:var(--tpl-user-success,oklch(62.8% .194 155.1));--tpl-success-light:var(--tpl-user-success-light,oklch(93.6% .043 163.51));--tpl-warning:var(--tpl-user-warning,oklch(76.9% .168 70.08));--tpl-warning-light:var(--tpl-user-warning-light,oklch(95% .038 73.59));--tpl-danger:var(--tpl-user-danger,oklch(63.7% .237 25.33));--tpl-danger-light:var(--tpl-user-danger-light,oklch(93.6% .032 17.72));--tpl-canvas-bg:var(--tpl-user-canvas-bg,oklch(97.5% .003 60));--tpl-chrome-bg-elevated:var(--tpl-bg-elevated);--tpl-chrome-border-light:var(--tpl-border-light);--tpl-chrome-text:var(--tpl-text);--tpl-chrome-text-muted:var(--tpl-text-muted);--tpl-chrome-text-dim:var(--tpl-text-dim);--tpl-chrome-primary-light:var(--tpl-primary-light);--tpl-chrome-primary-hover:var(--tpl-primary-hover);--tpl-radius:var(--tpl-user-radius,10px);--tpl-radius-sm:var(--tpl-user-radius-sm,7px);--tpl-radius-lg:var(--tpl-user-radius-lg,14px);--tpl-font-family:var(--tpl-user-font-family,\"Geist\", ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");--tpl-shadow-sm:var(--tpl-user-shadow-sm,0 1px 2px #00000008);--tpl-shadow:var(--tpl-user-shadow,0 1px 2px #0000000a, 0 1px 3px #00000008);--tpl-shadow-md:var(--tpl-user-shadow-md,0 2px 8px #0000000f, 0 1px 3px #0000000a);--tpl-shadow-lg:var(--tpl-user-shadow-lg,0 4px 16px #00000014, 0 2px 6px #0000000a);--tpl-shadow-xl:var(--tpl-user-shadow-xl,0 8px 32px #0000001a, 0 4px 12px #0000000f);--tpl-overlay:var(--tpl-user-overlay,#00000080);--tpl-ring:var(--tpl-user-ring,0 0 0 3px var(--tpl-primary-light));--tpl-transition:var(--tpl-user-transition,.12s cubic-bezier(.16, 1, .3, 1))}.tpl[data-tpl-theme=dark]{--tpl-bg:var(--tpl-user-dark-bg,oklch(16% .005 60));--tpl-bg-elevated:var(--tpl-user-dark-bg-elevated,oklch(21% .006 60));--tpl-bg-hover:var(--tpl-user-dark-bg-hover,oklch(26% .007 60));--tpl-bg-active:var(--tpl-user-dark-bg-active,oklch(30% .008 60));--tpl-border:var(--tpl-user-dark-border,oklch(30% .006 60));--tpl-border-light:var(--tpl-user-dark-border-light,oklch(38% .008 60));--tpl-text:var(--tpl-user-dark-text,oklch(93% .005 60));--tpl-text-muted:var(--tpl-user-dark-text-muted,oklch(65% .01 60));--tpl-text-dim:var(--tpl-user-dark-text-dim,oklch(50% .008 60));--tpl-primary:var(--tpl-user-dark-primary,oklch(73% .15 55));--tpl-primary-hover:var(--tpl-user-dark-primary-hover,oklch(78% .14 55));--tpl-primary-light:var(--tpl-user-dark-primary-light,oklch(28% .05 55));--tpl-secondary:var(--tpl-user-dark-secondary,oklch(63% .11 184.71));--tpl-secondary-hover:var(--tpl-user-dark-secondary-hover,oklch(68% .1 186.39));--tpl-secondary-light:var(--tpl-user-dark-secondary-light,oklch(25% .03 186.82));--tpl-success:var(--tpl-user-dark-success,oklch(65% .18 155.1));--tpl-success-light:var(--tpl-user-dark-success-light,oklch(25% .04 163.51));--tpl-warning:var(--tpl-user-dark-warning,oklch(78% .16 70.08));--tpl-warning-light:var(--tpl-user-dark-warning-light,oklch(28% .04 73.59));--tpl-danger:var(--tpl-user-dark-danger,oklch(65% .22 25.33));--tpl-danger-light:var(--tpl-user-dark-danger-light,oklch(25% .04 17.72));--tpl-canvas-bg:var(--tpl-user-dark-canvas-bg,oklch(10% .003 60));--tpl-shadow-sm:var(--tpl-user-dark-shadow-sm,0 1px 2px #0003);--tpl-shadow:var(--tpl-user-dark-shadow,0 1px 2px #0000004d, 0 1px 3px #0003);--tpl-shadow-md:var(--tpl-user-dark-shadow-md,0 2px 8px #00000059, 0 1px 3px #00000040);--tpl-shadow-lg:var(--tpl-user-dark-shadow-lg,0 4px 16px #0006, 0 2px 6px #0000004d);--tpl-shadow-xl:var(--tpl-user-dark-shadow-xl,0 8px 32px #00000080, 0 4px 12px #00000059);--tpl-overlay:var(--tpl-user-dark-overlay,#000000b3);--tpl-ring:var(--tpl-user-dark-ring,0 0 0 3px var(--tpl-primary-light))}.tpl[data-tpl-theme=dark] .tpl-block-content,.tpl[data-tpl-theme=dark] .tpl-canvas-empty{--tpl-bg-elevated:oklch(98% .004 60);--tpl-border-light:oklch(86% .01 60);--tpl-text:oklch(18% .01 60);--tpl-text-muted:oklch(50% .015 60);--tpl-text-dim:oklch(68% .012 60);--tpl-primary-light:oklch(95% .04 55);--tpl-primary-hover:oklch(60% .16 55);color:var(--tpl-text)}.tpl{height:100%;font-family:Geist,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:calc(.875 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.25 / .875));--tw-leading:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--tpl-bg);min-height:320px;color:var(--tpl-text);line-height:1.5;font-family:var(--tpl-font-family);letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0;text-align:start;white-space:normal;cursor:auto;font-variant-numeric:normal;text-shadow:none;flex-direction:column;font-style:normal;font-weight:400;list-style-type:disc;display:flex}:where(.tpl) button,:where(.tpl) input,:where(.tpl) select,:where(.tpl) textarea{box-sizing:border-box;font-family:inherit}:where(.tpl) button{cursor:pointer;background:0 0;border:none;margin:0;padding:0}:where(.tpl) button:focus-visible,:where(.tpl) input:focus-visible,:where(.tpl) select:focus-visible,:where(.tpl) textarea:focus-visible{box-shadow:var(--tpl-ring);outline:none}:where(.tpl) .tpl-focus-ring-host:focus-within :is(input,select,textarea):focus-visible{box-shadow:none}.tpl ::-webkit-scrollbar{width:6px;height:6px}.tpl ::-webkit-scrollbar-track{background:0 0}.tpl ::-webkit-scrollbar-thumb{background-color:var(--tpl-border-light)}@supports (color:color-mix(in lab,red,red)){.tpl ::-webkit-scrollbar-thumb{background-color:color-mix(in srgb,var(--tpl-border-light) 60%,transparent)}}.tpl ::-webkit-scrollbar-thumb{border-radius:calc(.25 * var(--tpl-base-size))}.tpl ::-webkit-scrollbar-thumb:hover{background-color:var(--tpl-border-light)}@keyframes tpl-pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes tpl-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tpl-popover-root{z-index:10000;position:relative}.tpl-merge-tag-label{text-underline-offset:3px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}@supports (color:color-mix(in lab,red,red)){.tpl-merge-tag-label{-webkit-text-decoration-color:color-mix(in srgb,currentColor 55%,transparent);text-decoration-color:color-mix(in srgb,currentColor 55%,transparent)}}.tpl-merge-tag-label{unicode-bidi:isolate}.tpl-pulse{animation:2s infinite tpl-pulse}.tpl-spinner{animation:1s linear infinite tpl-spin}@keyframes tpl-fade-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes tpl-scale-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}@keyframes tpl-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.tpl-fade-in{animation:.2s cubic-bezier(.16,1,.3,1) tpl-fade-in}.tpl-scale-in{animation:.15s cubic-bezier(.16,1,.3,1) tpl-scale-in}.tpl-shimmer{background:linear-gradient(90deg,var(--tpl-bg-hover) 25%,var(--tpl-bg-active) 50%,var(--tpl-bg-hover) 75%);background-size:200% 100%;animation:1.5s linear infinite tpl-shimmer}.tpl-preview-mode .tpl-block--idle,.tpl-preview-mode .tpl-block--idle:hover,.tpl-preview-mode .tpl-block--selected{box-shadow:none!important;outline:none!important}.tpl-preview-mode .tpl-block{cursor:default;pointer-events:none}.tpl-canvas-pane{container:tpl-canvas-pane/inline-size}.tpl-preview-mode .tpl-block-actions,.tpl-preview-mode .tpl-block-hidden-overlay,.tpl-preview-mode .tpl-condition-toggle,.tpl-preview-mode .tpl-comment-indicator,.tpl-preview-mode .tpl-collab-lock,.tpl-preview-mode .tpl-block-issue-badge{display:none}.tpl-ghost{border:none!important;border-top:2px dotted var(--tpl-primary)!important;background-color:#0000!important;justify-content:center!important;align-items:center!important;width:100%!important;height:0!important;min-height:0!important;max-height:0!important;margin:12px 0!important;padding:0!important;display:flex!important;position:relative!important;overflow:visible!important}@supports (color:color-mix(in lab,red,red)){.tpl-ghost{border-top:2px dotted color-mix(in srgb,var(--tpl-primary) 50%,transparent)!important}}.tpl-ghost{box-shadow:none!important;border-radius:0!important}.tpl-ghost>*{display:none!important}.tpl-ghost:before{content:var(--tpl-drop-text,\"Drop here\");white-space:nowrap!important;color:var(--tpl-primary)!important;background-color:var(--tpl-primary)!important;padding:2px 8px!important;font-size:12px!important;font-weight:500!important;position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important}@supports (color:color-mix(in lab,red,red)){.tpl-ghost:before{background-color:color-mix(in srgb,var(--tpl-primary) 15%,var(--tpl-bg))!important}}.tpl-ghost:before{border-radius:var(--tpl-radius-sm)!important;box-shadow:none!important}.tpl-canvas-empty .tpl-ghost{display:none!important}.tpl-dragging{opacity:.8;box-shadow:var(--tpl-shadow-xl)}.sortable-fallback{transition:none!important;animation:none!important}.tpl-block--lifted{outline:2px dashed var(--tpl-primary)!important;outline-offset:2px!important;box-shadow:var(--tpl-shadow-xl),0 0 0 4px var(--tpl-primary)!important}@supports (color:color-mix(in lab,red,red)){.tpl-block--lifted{box-shadow:var(--tpl-shadow-xl),0 0 0 4px color-mix(in srgb,var(--tpl-primary) 20%,transparent)!important}}.tpl-block--lifted{transition:transform .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1);transform:scale(1.01)}.tpl-sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl-text-toolbar-btn{width:calc(calc(var(--tpl-base-size) / 4) * 8);height:calc(calc(var(--tpl-base-size) / 4) * 8);cursor:pointer;border-radius:calc(.25 * var(--tpl-base-size));--tw-border-style:none;transition-property:all;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s);color:var(--tpl-text);background-color:#0000;border-style:none;justify-content:center;align-items:center;padding:0;display:flex}.tpl-text-toolbar-btn:hover{background-color:var(--tpl-bg-active)}.tpl-text-toolbar-btn--active{box-shadow:inset 0 0 0 1.5px var(--tpl-primary-hover);background-color:var(--tpl-primary)!important;color:var(--tpl-bg)!important}.tpl-text-toolbar-btn--active svg{stroke-width:2.75px}.tpl-text-content,.tpl-text-editable .tiptap{--tw-outline-style:none;outline-style:none}.tpl-text-editable{border-radius:calc(.25 * var(--tpl-base-size));outline:1px dashed var(--tpl-primary);outline-offset:4px}.tpl-text-editable--error{outline-color:var(--tpl-danger)}.tpl-text-content p,.tpl-text-editable .tiptap p{margin:0 0 var(--tpl-doc-paragraph-spacing,8px)}.tpl-text-content p:last-child,.tpl-text-editable .tiptap p:last-child{margin-bottom:0}.tpl-text-content ul,.tpl-text-content ol,.tpl-text-editable .tiptap ul,.tpl-text-editable .tiptap ol{margin:8px 0;padding-inline-start:24px}.tpl-text-content li,.tpl-text-editable .tiptap li{margin:4px 0}.tpl-text-content s,.tpl-text-editable .tiptap s{text-decoration-line:line-through}.tpl-text-content sub,.tpl-text-editable .tiptap sub{vertical-align:sub;font-size:.75em}.tpl-text-content sup,.tpl-text-editable .tiptap sup{vertical-align:super;font-size:.75em}.tpl-text-content a,.tpl-text-editable a{color:var(--tpl-doc-link-color,inherit);-webkit-text-decoration:var(--tpl-doc-link-underline,none);text-decoration:var(--tpl-doc-link-underline,none)}.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5);border-radius:calc(.25 * var(--tpl-base-size));padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5);padding-block:calc(calc(var(--tpl-base-size) / 4) * .5);--tw-font-weight:500;background-color:var(--tpl-primary);align-items:center;font-size:.9em;font-weight:500;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{background-color:color-mix(in srgb,var(--tpl-primary) 20%,transparent)}}.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{color:var(--tpl-primary);unicode-bidi:isolate}.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5);border-radius:calc(.25 * var(--tpl-base-size));padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5);padding-block:calc(calc(var(--tpl-base-size) / 4) * .5);--tw-font-weight:700;--tw-tracking:.025em;letter-spacing:.025em;text-transform:uppercase;border:1.5px solid var(--tpl-primary);unicode-bidi:isolate;background-color:#0000;align-items:center;font-size:.8em;font-weight:700;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{border:1.5px solid color-mix(in srgb,var(--tpl-primary) 50%,transparent)}}.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{color:var(--tpl-primary)}.tpl-tooltip{position:relative}.tpl-tooltip:after{content:attr(data-tooltip);border-radius:var(--tpl-radius-sm);background-color:var(--tpl-chrome-text);color:var(--tpl-bg);white-space:normal;text-align:center;pointer-events:none;opacity:0;text-transform:none;z-index:50;width:max-content;max-width:min(320px,90vw);padding:4px 10px;font-size:12px;font-weight:500;line-height:1.4;transition:opacity .15s;position:absolute;top:calc(100% + 6px);left:50%;transform:translate(-50%)}.tpl-tooltip:before{content:\"\";border:4px solid #0000;border-bottom-color:var(--tpl-chrome-text);pointer-events:none;opacity:0;z-index:50;transition:opacity .15s;position:absolute;top:calc(100% + 2px);left:50%;transform:translate(-50%)}.tpl-tooltip:hover:after,.tpl-tooltip:hover:before{opacity:1}.tpl-media-overlay{background-color:var(--tpl-overlay);-webkit-backdrop-filter:blur(8px);height:100%;min-height:0;color:var(--tpl-text);flex-direction:row;justify-content:center;align-items:center;display:flex}.tpl.tpl-text-toolbar{flex-direction:row;height:auto;min-height:0;display:flex}.tpl.tpl-link-dialog{background-color:var(--tpl-overlay);flex-direction:row;justify-content:center;align-items:center;height:100%;min-height:0;display:flex}.tpl-upload-zone-active{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.tpl-merge-tag-delete:hover{color:var(--tpl-danger)!important}@media(prefers-reduced-motion:reduce){.tpl-pulse,.tpl-shimmer,.tpl-fade-in,.tpl-scale-in{animation:none}.tpl-shimmer{background:var(--tpl-bg-hover)}.tpl-spinner{animation:1s linear infinite tpl-spin}}.tpl-header-container{container:tpl-header/inline-size}.tpl-header-identity [data-testid=template-name],.tpl-header-identity [data-testid=template-name-input]{max-width:100%}.tpl-language-tag{display:none}.tpl-header-identity{flex-shrink:1;min-width:24px}.tpl-header-timestamp{max-width:100%}.tpl-header[data-compact=true]{grid-template-columns:minmax(0,1fr) auto auto;column-gap:8px;padding-inline:8px}.tpl-header[data-compact=true] .tpl-header-left,.tpl-header[data-compact=true] .tpl-header-right{gap:4px;min-width:0}.tpl-header[data-compact=true] .tpl-header-center{gap:4px}.tpl-header[data-compact=true] .tpl-header-identity{flex:0 auto;min-width:24px;max-width:none;padding-bottom:0}.tpl-header[data-compact=true] .tpl-header-timestamp,.tpl-header[data-compact=true] .tpl-header-label,.tpl-header[data-compact=true] .tpl-header-comment-count,.tpl-header[data-compact=true] .tpl-language-name,.tpl-header[data-compact=true] .tpl-language-count,.tpl-header[data-compact=true] .tpl-language-chevron{display:none}.tpl-header[data-compact=true] .tpl-header-left .tpl-language-tag{display:inline}.tpl-header[data-compact=true] .tpl-language-control{flex-shrink:1}.tpl-header[data-compact=true] .tpl-language-trigger{gap:4px;padding-inline:6px;width:100%!important;max-width:72px!important}.tpl-header[data-compact=true] .tpl-header-center [role=radio]{padding-inline:6px}.tpl-header[data-compact=true] [data-testid=version-history]{gap:0}.tpl-header[data-compact=true] [data-testid=version-history-toggle]{padding-inline:4px}.tpl-header[data-compact=true] .tpl-header-right>button{gap:0;min-width:32px;padding-inline:7px}.tpl-header[data-compact=true] .tpl-header-save-status{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}.tpl-preview-pill-enter-active[data-v-e3760a37]{transition:opacity .2s cubic-bezier(.16,1,.3,1),transform .2s cubic-bezier(.16,1,.3,1)}.tpl-preview-pill-leave-active[data-v-e3760a37]{transition:opacity .15s ease-in,transform .15s ease-in}.tpl-preview-pill-enter-from[data-v-e3760a37],.tpl-preview-pill-leave-to[data-v-e3760a37]{opacity:0;transform:translateY(-8px) scale(.9)}.tpl-preview-pill-enter-to[data-v-e3760a37],.tpl-preview-pill-leave-from[data-v-e3760a37]{opacity:1;transform:translateY(0) scale(1)}hex-color-picker{--hcp-width: 200px}hex-color-picker::part(hue){border-radius:var(--tpl-radius-sm, 7px)}hex-color-picker::part(saturation){border-radius:var(--tpl-radius-sm, 7px) var(--tpl-radius-sm, 7px) 0 0}.tpl-color-swatch-empty{background-color:var(--tpl-bg);background-image:linear-gradient(to top right,transparent calc(50% - .75px),var(--tpl-text-dim) calc(50% - .75px),var(--tpl-text-dim) calc(50% + .75px),transparent calc(50% + .75px))}.tpl-color-swatch-transparent{background-color:var(--tpl-bg);background-image:repeating-conic-gradient(var(--tpl-border) 0% 25%,var(--tpl-bg) 0% 50%);background-size:8px 8px}.tpl-pulse-fill[data-v-fca026e4]{animation:tpl-field-pulse-fca026e4 1s ease-out}@keyframes tpl-field-pulse-fca026e4{0%{box-shadow:0 0 color-mix(in srgb,var(--tpl-warning) 30%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 6%,transparent)}40%{box-shadow:0 0 0 3px color-mix(in srgb,var(--tpl-warning) 15%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 5%,transparent)}to{box-shadow:0 0 0 0 transparent;background-color:transparent}}@media(prefers-reduced-motion:reduce){.tpl-pulse-fill[data-v-fca026e4]{animation:none}}input[type=number][data-v-94c2e6ff]::-webkit-outer-spin-button,input[type=number][data-v-94c2e6ff]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-94c2e6ff]{-moz-appearance:textfield}.tpl-collapsible[data-v-206f038f]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s cubic-bezier(.16,1,.3,1)}.tpl-collapsible--open[data-v-206f038f]{grid-template-rows:1fr}.tpl-collapsible>div[data-v-206f038f]{overflow:hidden}@container tpl-header (max-width: 760px){.tpl-language-submenu[data-v-9b071249]{left:0;top:100%;bottom:auto;margin:4px 0 0;max-width:100%}}.tpl-language-row[data-v-9b071249]:hover,.tpl-language-row[data-v-9b071249]:focus-within,[role=menuitem][data-v-9b071249]:hover{background:var(--tpl-bg-hover)}.tpl-language-row[data-active=true][data-v-9b071249]{background:var(--tpl-bg-active)}.tpl-language-row[data-active=true] .tpl-language-pill[data-v-9b071249]{background:var(--tpl-bg)}[aria-disabled=true][data-v-9b071249]{cursor:not-allowed;color:var(--tpl-text-muted)}[aria-disabled=true] svg[data-v-9b071249]{color:var(--tpl-text-dim)}@media(hover:hover)and (pointer:fine){.tpl-language-actions[data-v-9b071249]{opacity:0}.tpl-language-row:hover .tpl-language-actions[data-v-9b071249],.tpl-language-row:focus-within .tpl-language-actions[data-v-9b071249],.tpl-language-actions[aria-expanded=true][data-v-9b071249]{opacity:1}}.tpl-language-actions[data-v-9b071249]{transition:opacity var(--tpl-transition)}.tpl-ai-slide-enter-active[data-v-3d8e197c]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-ai-slide-leave-active[data-v-3d8e197c]{transition:transform .2s cubic-bezier(.16,1,.3,1)}@media(prefers-reduced-motion:reduce){.tpl-ai-slide-enter-active[data-v-3d8e197c],.tpl-ai-slide-leave-active[data-v-3d8e197c]{transition:none}}.tpl-saved-block-skeleton{animation:tpl-saved-block-pulse 1.4s ease-in-out infinite}@keyframes tpl-saved-block-pulse{0%,to{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.tpl-saved-block-skeleton{animation:none}}.tpl-saved-block-select:focus-visible{box-shadow:none}.tpl-saved-block-select:focus-visible:after{content:\"\";position:absolute;inset:-1px;border-radius:var(--tpl-radius-sm);box-shadow:var(--tpl-ring);pointer-events:none}.tpl-saved-block-delete-btn:hover{color:var(--tpl-danger)!important}.tpl-saved-block-rename-btn:hover{color:var(--tpl-primary)!important}.tpl-media-item[data-v-57c35946]:not(.tpl-media-item--selected):hover{border-color:var(--tpl-border)!important}.tpl-media-list-item[data-v-57c35946]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-list-icon[data-v-57c35946]{transform:scale(.35);transform-origin:center}.tpl-preview-icon[data-v-50993988]{transform:scale(.45);transform-origin:center}.tpl-comments-slide-enter-active[data-v-ebc3c2c6]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-comments-slide-leave-active[data-v-ebc3c2c6]{transition:transform .2s cubic-bezier(.16,1,.3,1)}.tpl-comments-input-wrapper[data-v-ebc3c2c6]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-comments-send-btn[data-v-ebc3c2c6]:not(:disabled):hover{transform:scale(1.05)}.tpl-comment-filter[data-v-ebc3c2c6]{color:var(--tpl-text-muted);background-color:transparent}.tpl-comment-filter[data-v-ebc3c2c6]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-filter--active[data-v-ebc3c2c6]{background-color:var(--tpl-primary-light);color:var(--tpl-primary)}.tpl-comment-action[data-v-ebc3c2c6]{color:var(--tpl-text-dim);background-color:transparent}.tpl-comment-action[data-v-ebc3c2c6]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-delete[data-v-ebc3c2c6]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-comment-card[data-v-ebc3c2c6],.tpl-comment-reply-card[data-v-ebc3c2c6]{border-color:var(--tpl-border);background-color:var(--tpl-bg)}.tpl-resolve-enter-active[data-v-ebc3c2c6],.tpl-resolve-leave-active[data-v-ebc3c2c6]{transition:opacity .3s ease,transform .3s ease}.tpl-resolve-enter-from[data-v-ebc3c2c6],.tpl-resolve-leave-to[data-v-ebc3c2c6]{opacity:0;transform:translateY(-4px)}.tpl-resolve-icon[data-v-ebc3c2c6]{transition:color .3s ease,transform .2s ease}.tpl-resolve-icon[data-v-ebc3c2c6]:active{transform:scale(1.3)}.tpl-replies-enter-active[data-v-ebc3c2c6],.tpl-replies-leave-active[data-v-ebc3c2c6]{transition:opacity .25s ease,transform .25s ease}.tpl-replies-enter-from[data-v-ebc3c2c6],.tpl-replies-leave-to[data-v-ebc3c2c6]{opacity:0;transform:translateY(-4px)}.tpl-ai-input-wrapper[data-v-d3e3a1af]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-ai-send-btn[data-v-d3e3a1af]:not(:disabled):hover{transform:scale(1.05)}.tpl-starter-btn[data-v-d3e3a1af]:hover{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.vue-advanced-cropper{text-align:center;position:relative;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}[data-v-7d9a1872] .tpl-cropper-background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper{background-color:transparent!important}[data-v-7d9a1872] .vue-advanced-cropper__background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper__foreground{background-color:var(--tpl-overlay)!important}\n/*$vite$:1*/", Ko = null;
|
|
4146
|
+
function qo() {
|
|
4147
|
+
if (Ko === null) {
|
|
4151
4148
|
let e = new CSSStyleSheet();
|
|
4152
|
-
e.replaceSync(
|
|
4149
|
+
e.replaceSync(Vo(Go)), Ko = e;
|
|
4153
4150
|
}
|
|
4154
|
-
return
|
|
4151
|
+
return Ko;
|
|
4155
4152
|
}
|
|
4156
|
-
function
|
|
4153
|
+
function Jo(e) {
|
|
4157
4154
|
return () => {};
|
|
4158
4155
|
}
|
|
4159
|
-
function
|
|
4156
|
+
function Yo(e, t) {
|
|
4160
4157
|
if (!t) return {
|
|
4161
4158
|
target: e,
|
|
4162
4159
|
shadowRoot: null,
|
|
4163
4160
|
cleanup: () => {}
|
|
4164
4161
|
};
|
|
4165
4162
|
let n = e.shadowRoot ?? e.attachShadow({ mode: "open" });
|
|
4166
|
-
for (n.adoptedStyleSheets = [
|
|
4163
|
+
for (n.adoptedStyleSheets = [qo()]; n.firstChild;) n.removeChild(n.firstChild);
|
|
4167
4164
|
let r = document.createElement("div");
|
|
4168
4165
|
return r.className = "tpl-editor-host", r.style.cssText = "display:block;height:100%;width:100%;", n.appendChild(r), {
|
|
4169
4166
|
target: r,
|
|
4170
4167
|
shadowRoot: n,
|
|
4171
|
-
cleanup:
|
|
4168
|
+
cleanup: Jo(n)
|
|
4172
4169
|
};
|
|
4173
4170
|
}
|
|
4174
|
-
var
|
|
4175
|
-
function
|
|
4171
|
+
var Xo = /* @__PURE__ */ new Map(), Zo = null, Qo = 0, $o = /* @__PURE__ */ new WeakMap();
|
|
4172
|
+
function es(e) {
|
|
4176
4173
|
let t = typeof e == "string" ? document.querySelector(e) : e;
|
|
4177
4174
|
if (!t) throw Error(`[Templatical] Container element not found: ${e}`);
|
|
4178
|
-
let n = ++
|
|
4179
|
-
return
|
|
4175
|
+
let n = ++Qo;
|
|
4176
|
+
return $o.set(t, n), {
|
|
4180
4177
|
container: t,
|
|
4181
4178
|
token: n
|
|
4182
4179
|
};
|
|
4183
4180
|
}
|
|
4184
|
-
function
|
|
4185
|
-
let n =
|
|
4186
|
-
n && (t && n.app !== t || (n.cleanup(), n.app.unmount(),
|
|
4181
|
+
function ts(e, t) {
|
|
4182
|
+
let n = Xo.get(e);
|
|
4183
|
+
n && (t && n.app !== t || (n.cleanup(), n.app.unmount(), Xo.delete(e), Zo === e && (Zo = null)));
|
|
4187
4184
|
}
|
|
4188
|
-
function
|
|
4189
|
-
e.layout && (e.layout =
|
|
4185
|
+
function ns(e) {
|
|
4186
|
+
e.layout && (e.layout = In(e.layout, e.mergeTags), Ee(e.layout)), e.content && (e.content = In(e.content, e.mergeTags), Ne(e.content), Ae(e.content));
|
|
4190
4187
|
}
|
|
4191
|
-
async function
|
|
4188
|
+
async function rs(e) {
|
|
4192
4189
|
let t = { ...e };
|
|
4193
4190
|
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.");
|
|
4194
|
-
for (let e of t.localization?.locales ?? []) if (!
|
|
4191
|
+
for (let e of t.localization?.locales ?? []) if (!me(e)) throw new Q(`Invalid localization locale "${e}".`);
|
|
4195
4192
|
let n = t.localization?.doNotTranslate;
|
|
4196
4193
|
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.");
|
|
4197
|
-
return
|
|
4194
|
+
return ns(t), is(t, es(t.container));
|
|
4198
4195
|
}
|
|
4199
|
-
async function
|
|
4200
|
-
e.locale !== void 0 && !
|
|
4201
|
-
let a = await
|
|
4202
|
-
if (
|
|
4196
|
+
async function is(e, { container: t, token: n }, i) {
|
|
4197
|
+
e.locale !== void 0 && !cn(e.locale) && qn.warn(`config.locale: "${e.locale}" has no translations — falling back to English. Supported: ${bn().sort().join(", ")}.`);
|
|
4198
|
+
let a = await an(e.locale ?? "en"), o = nn(e.fonts);
|
|
4199
|
+
if ($o.get(t) !== n) return as({
|
|
4203
4200
|
config: e,
|
|
4204
4201
|
editorRef: z(null),
|
|
4205
4202
|
fontsManager: o,
|
|
4206
4203
|
unmount: () => {}
|
|
4207
4204
|
}).instance;
|
|
4208
|
-
|
|
4209
|
-
let s =
|
|
4210
|
-
return () => r(
|
|
4205
|
+
ts(t);
|
|
4206
|
+
let s = Yo(t, e.shadowDom ?? !0), c = z(null), l = I({ setup() {
|
|
4207
|
+
return () => r(zo, {
|
|
4211
4208
|
config: e,
|
|
4212
4209
|
translations: a,
|
|
4213
4210
|
fontsManager: o,
|
|
@@ -4220,39 +4217,39 @@ async function ns(e, { container: t, token: n }, i) {
|
|
|
4220
4217
|
ref: c
|
|
4221
4218
|
});
|
|
4222
4219
|
} });
|
|
4223
|
-
l.mount(s.target),
|
|
4220
|
+
l.mount(s.target), Xo.set(t, {
|
|
4224
4221
|
app: l,
|
|
4225
4222
|
editorRef: c,
|
|
4226
4223
|
cleanup: s.cleanup
|
|
4227
|
-
}),
|
|
4228
|
-
let { instance: u, render: d } =
|
|
4224
|
+
}), Zo = t;
|
|
4225
|
+
let { instance: u, render: d } = as({
|
|
4229
4226
|
config: e,
|
|
4230
4227
|
editorRef: c,
|
|
4231
4228
|
fontsManager: o,
|
|
4232
|
-
unmount: () =>
|
|
4229
|
+
unmount: () => ts(t, l)
|
|
4233
4230
|
});
|
|
4234
4231
|
return u;
|
|
4235
4232
|
}
|
|
4236
|
-
function
|
|
4233
|
+
function as({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
4237
4234
|
let i = {
|
|
4238
4235
|
getContent() {
|
|
4239
|
-
return
|
|
4236
|
+
return Ie(t.value ? t.value.getContent() : e.content ?? Oe(e.fonts?.defaultFont, or(e)));
|
|
4240
4237
|
},
|
|
4241
4238
|
getLocale() {
|
|
4242
|
-
return t.value?.getLocale() ??
|
|
4239
|
+
return t.value?.getLocale() ?? Z(i.getContent());
|
|
4243
4240
|
},
|
|
4244
4241
|
setLocale(n) {
|
|
4245
4242
|
let r = i.getContent();
|
|
4246
|
-
if (n !==
|
|
4243
|
+
if (n !== Z(r) && (!e.localization || !r.settings.locales?.includes(n))) throw new Q(`This template has no "${n}" version.`, void 0, "unknown_locale");
|
|
4247
4244
|
t.value?.setLocale(n);
|
|
4248
4245
|
},
|
|
4249
4246
|
setContent(n) {
|
|
4250
|
-
let r =
|
|
4247
|
+
let r = In(n, e.mergeTags);
|
|
4251
4248
|
t.value && t.value.setContent(r), e.content = r;
|
|
4252
4249
|
},
|
|
4253
4250
|
insertBlock(n) {
|
|
4254
4251
|
let r = { blocks: [n] };
|
|
4255
|
-
return
|
|
4252
|
+
return Ne(r), Ae(r), t.value ? t.value.insertBlock(Rn(n, e.mergeTags)) : null;
|
|
4256
4253
|
},
|
|
4257
4254
|
setTheme(e) {
|
|
4258
4255
|
t.value && t.value.setTheme(e);
|
|
@@ -4267,7 +4264,7 @@ function rs({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
4267
4264
|
create(n) {
|
|
4268
4265
|
return t.value ? t.value.create(n?.content ? {
|
|
4269
4266
|
...n,
|
|
4270
|
-
content:
|
|
4267
|
+
content: In(n.content, e.mergeTags)
|
|
4271
4268
|
} : n) : Promise.reject(/* @__PURE__ */ Error("[Templatical] Editor not ready"));
|
|
4272
4269
|
},
|
|
4273
4270
|
load(e) {
|
|
@@ -4287,20 +4284,20 @@ function rs({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
4287
4284
|
},
|
|
4288
4285
|
toMjml: (e) => a.toMjml(e),
|
|
4289
4286
|
toHtml: (e) => a.toHtml(e)
|
|
4290
|
-
}, a =
|
|
4287
|
+
}, a = Wo({
|
|
4291
4288
|
provider: e.render,
|
|
4292
|
-
buildPayload: (t) =>
|
|
4289
|
+
buildPayload: (t) => Uo({
|
|
4293
4290
|
getContent: () => i.getContent(),
|
|
4294
4291
|
renderCustomBlock: (e) => i.renderCustomBlock(e),
|
|
4295
4292
|
getCustomBlockStylesheet: (e) => i.getCustomBlockStylesheet(e),
|
|
4296
|
-
getFonts: () =>
|
|
4293
|
+
getFonts: () => Ho(n),
|
|
4297
4294
|
getLayout: () => e.layout
|
|
4298
4295
|
}, t),
|
|
4299
|
-
renderLocalMjml: (t) =>
|
|
4296
|
+
renderLocalMjml: (t) => ui({
|
|
4300
4297
|
getContent: () => i.getContent(),
|
|
4301
4298
|
renderCustomBlock: (e) => i.renderCustomBlock(e),
|
|
4302
4299
|
getCustomBlockStylesheet: (e) => i.getCustomBlockStylesheet(e),
|
|
4303
|
-
getFonts: () =>
|
|
4300
|
+
getFonts: () => Ho(n),
|
|
4304
4301
|
socialIconsBaseUrl: e.socialIconsBaseUrl,
|
|
4305
4302
|
getLayout: () => e.layout
|
|
4306
4303
|
}, ...t ? [t] : [])
|
|
@@ -4310,18 +4307,18 @@ function rs({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
4310
4307
|
render: a
|
|
4311
4308
|
};
|
|
4312
4309
|
}
|
|
4313
|
-
async function
|
|
4310
|
+
async function os(e) {
|
|
4314
4311
|
let t = {
|
|
4315
4312
|
layout: e.layout,
|
|
4316
4313
|
content: e.content,
|
|
4317
4314
|
mergeTags: e.mergeTags
|
|
4318
4315
|
};
|
|
4319
|
-
|
|
4320
|
-
let n =
|
|
4316
|
+
ns(t);
|
|
4317
|
+
let n = es(e.container), [{ bootstrapCloud: r }, i] = await Promise.all([import("./chunks/createCloudRuntime-CE79GB1H.js"), un(e.locale ?? "en")]), { runtime: a, providers: o, user: s } = await r({
|
|
4321
4318
|
config: e,
|
|
4322
4319
|
cloudTranslations: i
|
|
4323
4320
|
});
|
|
4324
|
-
return
|
|
4321
|
+
return is({
|
|
4325
4322
|
container: e.container,
|
|
4326
4323
|
content: t.content,
|
|
4327
4324
|
layout: t.layout,
|
|
@@ -4365,9 +4362,9 @@ async function is(e) {
|
|
|
4365
4362
|
user: s
|
|
4366
4363
|
}, n, a);
|
|
4367
4364
|
}
|
|
4368
|
-
function
|
|
4369
|
-
|
|
4365
|
+
function ss() {
|
|
4366
|
+
Zo && ts(Zo);
|
|
4370
4367
|
}
|
|
4371
|
-
export {
|
|
4368
|
+
export { Un as AI_ALT_TEXT_RULES, Wn as AI_FIXABLE_RULES, Fe as applyLayout, Oe as createDefaultTemplateContent, Y as createLocalStorageMediaProvider, ne as createLocalStorageSavedBlocksProvider, de as createParagraphBlock, Me as createSlotBlock, fe as createWrapperBlock, xn as getBaseLocale, tn as getSupportedCloudLocales, bn as getSupportedLocales, rs as init, os as initCloud, sn as isCloudLocaleSupported, cn as isLocaleSupported, Se as isSlot, je as isWrapper, ke as layoutWrapsSlot, ss as unmount, Ee as validateLayout };
|
|
4372
4369
|
|
|
4373
4370
|
//# sourceMappingURL=editor.js.map
|