@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
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import { A as e, B as t, D as n, E as r, F as i, Ft as a, L as o, M as s, Mt as c, N as l, O as u, P as d, Pt as f, R as p, S as m, U as h, W as g, Z as _, _ as v, c as y, ct as b, d as x, et as S, f as C, g as w, h as T, j as E, k as D, l as O, m as k, nt as A, q as j, r as M, rt as N, tt as P, u as F, v as I, w as L, y as R } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
|
-
import { a as z, c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as xt } from "./
|
|
11
|
-
import { t as St } from "./
|
|
12
|
-
import { t as Ct } from "./
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import {
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import {
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import {
|
|
24
|
-
import { t as
|
|
25
|
-
import {
|
|
26
|
-
import { t as
|
|
27
|
-
import {
|
|
28
|
-
import { t as
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { t as
|
|
34
|
-
import { t as
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import { t as
|
|
38
|
-
import { t as
|
|
39
|
-
import {
|
|
40
|
-
import { t as
|
|
41
|
-
import { t as
|
|
42
|
-
import { t as
|
|
2
|
+
import { a as z, c as B, n as V, o as H, s as U, t as W } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
|
|
3
|
+
import { G, I as ee, L as K, M as q, N as J, R as Y, V as te, W as ne, _ as re, b as ie, c as ae, j as oe, l as se } from "./socialIcons-oo4uL16Y.js";
|
|
4
|
+
import { At as ce, Bt as le, D as ue, E as de, Gt as X, I as fe, Mt as pe, O as me, Ot as he, P as ge, Q as _e, S as ve, T as ye, Tt as be, V as xe, W as Se, X as Ce, _ as Z, a as we, cn as Te, d as Ee, et as De, g as Oe, gt as ke, j as Ae, kt as je, lt as Me, qt as Ne, sn as Pe, tt as Q, vt as Fe, w as Ie, x as Le, yt as Re } from "./dist-BMUUt3zJ.js";
|
|
5
|
+
import { t as ze } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
6
|
+
import { r as Be, t as Ve } from "./sanitizeHtml-wBibnBF4.js";
|
|
7
|
+
import { t as He } from "./x-DZSFHafL.js";
|
|
8
|
+
import { t as $ } from "./useI18n-zeWYtWSv.js";
|
|
9
|
+
import { n as Ue, t as We } from "./useLocalizedDisplay-Cbhx208c.js";
|
|
10
|
+
import { $ as Ge, B as Ke, E as qe, I as Je, J as Ye, K as Xe, M as Ze, O as Qe, Q as $e, R as et, X as tt, a as nt, at as rt, b as it, c as at, d as ot, et as st, g as ct, h as lt, it as ut, k as dt, l as ft, m as pt, n as mt, ot as ht, rt as gt, st as _t, t as vt, tt as yt, v as bt, z as xt } from "./keys-w_VRjoMu.js";
|
|
11
|
+
import { t as St } from "./plural-CyxrJXL1.js";
|
|
12
|
+
import { t as Ct } from "./languageName-DEEOhDWI.js";
|
|
13
|
+
import { C as wt, T as Tt, b as Et, h as Dt, m as Ot, w as kt, x as At } from "./styleConstants-CgiNKdnc.js";
|
|
14
|
+
import { t as jt } from "./TplModal-WNuWhHZm.js";
|
|
15
|
+
import { A as Mt, D as Nt, F as Pt, G as Ft, I as It, M as Lt, N as Rt, P as zt, R as Bt, S as Vt, V as Ht, _ as Ut, a as Wt, b as Gt, c as Kt, d as qt, f as Jt, g as Yt, h as Xt, i as Zt, j as Qt, k as $t, l as en, m as tn, n as nn, o as rn, p as an, r as on, s as sn, t as cn, u as ln, v as un, x as dn, y as fn } from "./composables-DreAt_0A.js";
|
|
16
|
+
import { a as pn, i as mn, n as hn, o as gn, t as _n } from "./normalizeMergeTagMarkup-Da9JAgx7.js";
|
|
17
|
+
import { t as vn } from "./aiErrors-C3QEMB0x.js";
|
|
18
|
+
import { n as yn, t as bn } from "./aiImageContext-BQ5mQ6B5.js";
|
|
19
|
+
import { i as xn, n as Sn, o as Cn, r as wn, t as Tn } from "./useScrollToBlock-BfOzc1Z6.js";
|
|
20
|
+
import { a as En } from "./dist-CiYotUR8.js";
|
|
21
|
+
import { t as Dn } from "./logger-BOu7oEtk.js";
|
|
22
|
+
import { t as On } from "./rotate-ccw-BFTGCpHn.js";
|
|
23
|
+
import { t as kn } from "./createLucideIcon-CfBdtoUw.js";
|
|
24
|
+
import { t as An } from "./sparkles-IHfEwEcd.js";
|
|
25
|
+
import { t as jn } from "./WrapperBlock-CjfCPceb.js";
|
|
26
|
+
import { t as Mn } from "./package-9OkiEO4S.js";
|
|
27
|
+
import { t as Nn } from "./blockTypeIcons-12OMwVyN.js";
|
|
28
|
+
import { t as Pn } from "./templateSettingsFields-cjlP-jdw.js";
|
|
29
|
+
import { n as Fn } from "./smartphone-CVA29CU_.js";
|
|
30
|
+
import { t as In } from "./loader-circle-DqKWsMHO.js";
|
|
31
|
+
import { t as Ln } from "./message-circle-C4TonoBs.js";
|
|
32
|
+
import { t as Rn } from "./send-DGB1ar02.js";
|
|
33
|
+
import { n as zn, t as Bn } from "./MergeTagModeToggle-DXvb80OE.js";
|
|
34
|
+
import { t as Vn } from "./eye-B3psrAqd.js";
|
|
35
|
+
import { _ as Hn, d as Un, g as Wn } from "./dist-CX7skkvG.js";
|
|
36
|
+
import { t as Gn } from "./formatAbsoluteDateTime-Ck2_zXra.js";
|
|
37
|
+
import { t as Kn } from "./formatRelativeTime-BTD8Ktt-.js";
|
|
38
|
+
import { t as qn } from "./check-CcuCoJDh.js";
|
|
39
|
+
import { t as Jn } from "./circle-alert-Tq7kAh9S.js";
|
|
40
|
+
import { t as Yn } from "./chevron-down-BfYIbFbC.js";
|
|
41
|
+
import { t as Xn } from "./search-RuGJnMEn.js";
|
|
42
|
+
import { t as Zn } from "./preRenderCustomBlocks-CdqSp2P7.js";
|
|
43
43
|
// src/utils/resolveTemplateDefaults.ts
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
let t = e.locale?.trim().replace(/_/g, "-"), n = t &&
|
|
44
|
+
var Qn = /^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i;
|
|
45
|
+
function $n(e) {
|
|
46
|
+
let t = e.locale?.trim().replace(/_/g, "-"), n = t && Qn.test(t) ? { locale: t } : void 0;
|
|
47
47
|
if (n || e.templateDefaults) return {
|
|
48
48
|
...n,
|
|
49
49
|
...e.templateDefaults
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
// src/components/NoticeStack.vue
|
|
53
|
-
var
|
|
54
|
-
function
|
|
55
|
-
return s(), C("div",
|
|
53
|
+
var er = {}, tr = { class: "tpl:pointer-events-none tpl:absolute tpl:top-16 tpl:left-1/2 tpl:z-[60] tpl:flex tpl:-translate-x-1/2 tpl:flex-col tpl:items-center tpl:gap-2" };
|
|
54
|
+
function nr(e, t) {
|
|
55
|
+
return s(), C("div", tr, [i(e.$slots, "default")]);
|
|
56
56
|
}
|
|
57
|
-
var
|
|
57
|
+
var rr = /*#__PURE__*/ ze(er, [["render", nr]]), ir = kn({
|
|
58
58
|
name: "image-up",
|
|
59
59
|
size: 24,
|
|
60
60
|
node: [
|
|
@@ -77,7 +77,7 @@ var tr = /*#__PURE__*/ Re(Qn, [["render", er]]), nr = ze({
|
|
|
77
77
|
key: "af1f0g"
|
|
78
78
|
}]
|
|
79
79
|
]
|
|
80
|
-
}),
|
|
80
|
+
}), ar = kn({
|
|
81
81
|
name: "layout-template",
|
|
82
82
|
size: 24,
|
|
83
83
|
node: [
|
|
@@ -106,14 +106,14 @@ var tr = /*#__PURE__*/ Re(Qn, [["render", er]]), nr = ze({
|
|
|
106
106
|
key: "q5h2i8"
|
|
107
107
|
}]
|
|
108
108
|
]
|
|
109
|
-
}),
|
|
109
|
+
}), or = kn({
|
|
110
110
|
name: "moon",
|
|
111
111
|
size: 24,
|
|
112
112
|
node: [["path", {
|
|
113
113
|
d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",
|
|
114
114
|
key: "kfwtm"
|
|
115
115
|
}]]
|
|
116
|
-
}),
|
|
116
|
+
}), sr = kn({
|
|
117
117
|
name: "panel-top",
|
|
118
118
|
size: 24,
|
|
119
119
|
node: [["rect", {
|
|
@@ -127,7 +127,7 @@ var tr = /*#__PURE__*/ Re(Qn, [["render", er]]), nr = ze({
|
|
|
127
127
|
d: "M3 9h18",
|
|
128
128
|
key: "1pudct"
|
|
129
129
|
}]]
|
|
130
|
-
}),
|
|
130
|
+
}), cr = kn({
|
|
131
131
|
name: "save",
|
|
132
132
|
size: 24,
|
|
133
133
|
node: [
|
|
@@ -144,7 +144,7 @@ var tr = /*#__PURE__*/ Re(Qn, [["render", er]]), nr = ze({
|
|
|
144
144
|
key: "t51u73"
|
|
145
145
|
}]
|
|
146
146
|
]
|
|
147
|
-
}),
|
|
147
|
+
}), lr = kn({
|
|
148
148
|
name: "settings",
|
|
149
149
|
size: 24,
|
|
150
150
|
node: [["path", {
|
|
@@ -156,7 +156,7 @@ var tr = /*#__PURE__*/ Re(Qn, [["render", er]]), nr = ze({
|
|
|
156
156
|
r: "3",
|
|
157
157
|
key: "1v7zrd"
|
|
158
158
|
}]]
|
|
159
|
-
}),
|
|
159
|
+
}), ur = kn({
|
|
160
160
|
name: "square-plus",
|
|
161
161
|
size: 24,
|
|
162
162
|
node: [
|
|
@@ -178,7 +178,7 @@ var tr = /*#__PURE__*/ Re(Qn, [["render", er]]), nr = ze({
|
|
|
178
178
|
}]
|
|
179
179
|
],
|
|
180
180
|
aliases: ["plus-square"]
|
|
181
|
-
}),
|
|
181
|
+
}), dr = kn({
|
|
182
182
|
name: "sun",
|
|
183
183
|
size: 24,
|
|
184
184
|
node: [
|
|
@@ -221,29 +221,29 @@ var tr = /*#__PURE__*/ Re(Qn, [["render", er]]), nr = ze({
|
|
|
221
221
|
key: "1shlcs"
|
|
222
222
|
}]
|
|
223
223
|
]
|
|
224
|
-
}),
|
|
224
|
+
}), fr = {
|
|
225
225
|
key: 0,
|
|
226
226
|
"data-testid": "language-bar",
|
|
227
227
|
class: "tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-4 tpl:py-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
228
|
-
},
|
|
228
|
+
}, pr = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-between tpl:gap-x-6 tpl:gap-y-2" }, mr = { class: "tpl:flex tpl:min-w-0 tpl:grow tpl:basis-64 tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1" }, hr = {
|
|
229
229
|
"data-testid": "language-bar-label",
|
|
230
230
|
class: "tpl:inline-flex tpl:items-center tpl:gap-2 tpl:font-medium tpl:whitespace-nowrap tpl:text-[var(--tpl-text)]"
|
|
231
|
-
},
|
|
231
|
+
}, gr = {
|
|
232
232
|
"data-testid": "language-bar-status",
|
|
233
233
|
role: "status",
|
|
234
234
|
"aria-live": "polite",
|
|
235
235
|
"aria-atomic": "true",
|
|
236
236
|
class: "tpl:whitespace-nowrap"
|
|
237
|
-
},
|
|
237
|
+
}, _r = {
|
|
238
238
|
key: 1,
|
|
239
239
|
"data-testid": "translation-result",
|
|
240
240
|
class: "tpl:whitespace-normal"
|
|
241
|
-
},
|
|
241
|
+
}, vr = ["aria-label"], yr = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-2" }, br = ["disabled"], xr = ["disabled"], Sr = {
|
|
242
242
|
key: 0,
|
|
243
243
|
"data-testid": "structure-notice",
|
|
244
244
|
role: "status",
|
|
245
245
|
class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-2"
|
|
246
|
-
},
|
|
246
|
+
}, Cr = ["aria-label"], wr = ["aria-label"], Tr = { class: "tpl:m-0 tpl:mb-4 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Er = { class: "tpl:mb-4 tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Dr = { class: "tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Or = ["disabled"], kr = /* @__PURE__ */ new Set(), Ar = /* @__PURE__ */ R({
|
|
247
247
|
__name: "LanguageBar",
|
|
248
248
|
props: {
|
|
249
249
|
editor: {},
|
|
@@ -252,15 +252,15 @@ var tr = /*#__PURE__*/ Re(Qn, [["render", er]]), nr = ze({
|
|
|
252
252
|
change: {}
|
|
253
253
|
},
|
|
254
254
|
setup(e) {
|
|
255
|
-
let n = e, { t: r, format: i } = $(), o = L(
|
|
255
|
+
let n = e, { t: r, format: i } = $(), o = L(ut, void 0) ?? "en", l = L(lt, []), d = y(() => Q(n.editor.content.value)), f = y(() => n.editor.activeLocale?.value ?? d.value), p = y(() => n.locales.includes(f.value)), m = L(vt, null) ?? We(n.editor, l), g = y(() => p.value ? !m.value?.missing.length && !m.value?.stale.length ? r.localization.complete : i(r.localization.gapTooltip, {
|
|
256
256
|
missing: m.value.missing.length,
|
|
257
257
|
stale: m.value.stale.length
|
|
258
|
-
}) : i(r.localization.languageReadOnly, { language:
|
|
258
|
+
}) : i(r.localization.languageReadOnly, { language: Ct(f.value) })), _ = y(() => {
|
|
259
259
|
let e = n.feature?.lastResult.value;
|
|
260
260
|
if (!e) return "";
|
|
261
|
-
let t = [
|
|
262
|
-
return e.tagsChanged.length && t.push(
|
|
263
|
-
}), T = S(!1), E = !1, D = S(null), k = S(null), A = y(() => n.feature?.counts.value.all ?? 0), j = y(() =>
|
|
261
|
+
let t = [St(r.localization.translatedFields, e.translated, o)];
|
|
262
|
+
return e.tagsChanged.length && t.push(St(r.localization.translationTagsChanged, e.tagsChanged.length, o)), e.skippedLocked.length && t.push(St(r.localization.translationSkippedLocked, e.skippedLocked.length, o)), e.missing.length && t.push(St(r.localization.translationMissing, e.missing.length, o)), e.tooLarge.length && t.push(St(r.localization.translationTooLarge, e.tooLarge.length, o)), e.error && t.push(i(r.localization.translationError, { message: e.error.message })), t.join(" ");
|
|
263
|
+
}), T = S(!1), E = !1, D = S(null), k = S(null), A = y(() => n.feature?.counts.value.all ?? 0), j = y(() => St(r.localization.translationConfirmation, A.value, o));
|
|
264
264
|
function N() {
|
|
265
265
|
D.value = null, u(() => k.value?.focus());
|
|
266
266
|
}
|
|
@@ -281,67 +281,67 @@ var tr = /*#__PURE__*/ Re(Qn, [["render", er]]), nr = ze({
|
|
|
281
281
|
D.value && N();
|
|
282
282
|
}), t(() => n.change, () => {
|
|
283
283
|
let e = n.editor.state.template?.id;
|
|
284
|
-
(e ?
|
|
285
|
-
}), (t, n) => f.value === d.value ? x("", !0) : (s(), C("div",
|
|
286
|
-
O("div",
|
|
287
|
-
O("span",
|
|
284
|
+
(e ? kr.has(e) : E) || (e ? kr.add(e) : E = !0, T.value = !0);
|
|
285
|
+
}), (t, n) => f.value === d.value ? x("", !0) : (s(), C("div", fr, [
|
|
286
|
+
O("div", pr, [O("div", mr, [
|
|
287
|
+
O("span", hr, [v(b(Be), {
|
|
288
288
|
size: 14,
|
|
289
289
|
"aria-hidden": "true",
|
|
290
290
|
class: "tpl:shrink-0"
|
|
291
|
-
}), w(" " + a(b(i)(b(r).localization.editingLanguage, { language: b(
|
|
292
|
-
O("span",
|
|
291
|
+
}), w(" " + a(b(i)(b(r).localization.editingLanguage, { language: b(Ct)(f.value) })), 1)]),
|
|
292
|
+
O("span", gr, [e.feature?.running.value ? (s(), C(M, { key: 0 }, [w(a(b(i)(b(r).localization.translating, e.feature.running.value)), 1)], 64)) : e.feature?.lastResult.value ? (s(), C("span", _r, a(_.value), 1)) : (s(), C(M, { key: 2 }, [w(a(g.value), 1)], 64))]),
|
|
293
293
|
e.feature?.lastResult.value && !e.feature.running.value ? (s(), C("button", {
|
|
294
294
|
key: 0,
|
|
295
295
|
type: "button",
|
|
296
296
|
"data-testid": "translation-dismiss",
|
|
297
297
|
"aria-label": b(r).localization.dismiss,
|
|
298
|
-
class: c(b(
|
|
298
|
+
class: c(b(Ot)),
|
|
299
299
|
onClick: n[0] ||= (t) => e.feature.dismissResult()
|
|
300
|
-
}, [v(b(
|
|
300
|
+
}, [v(b(He), {
|
|
301
301
|
size: 14,
|
|
302
302
|
"aria-hidden": "true"
|
|
303
|
-
})], 10,
|
|
304
|
-
]), O("div",
|
|
303
|
+
})], 10, vr)) : x("", !0)
|
|
304
|
+
]), O("div", yr, [
|
|
305
305
|
e.feature?.running.value ? (s(), C("button", {
|
|
306
306
|
key: 0,
|
|
307
307
|
type: "button",
|
|
308
308
|
"data-testid": "translation-cancel",
|
|
309
|
-
class: c(b(
|
|
309
|
+
class: c(b(Ot)),
|
|
310
310
|
onClick: n[1] ||= (t) => e.feature.cancel()
|
|
311
311
|
}, a(b(r).localization.cancel), 3)) : x("", !0),
|
|
312
312
|
p.value && e.feature?.isAvailable.value ? (s(), C(M, { key: 1 }, [e.feature.counts.value.gaps > 0 ? (s(), C("button", {
|
|
313
313
|
key: 0,
|
|
314
314
|
type: "button",
|
|
315
315
|
"data-testid": "translate-language",
|
|
316
|
-
class: c(b(
|
|
316
|
+
class: c(b(At)),
|
|
317
317
|
disabled: !!e.feature.running.value,
|
|
318
318
|
onClick: n[2] ||= (t) => e.feature.translate({ only: "gaps" })
|
|
319
|
-
}, a(b(
|
|
319
|
+
}, a(b(St)(b(r).localization.translateFields, e.feature.counts.value.gaps, b(o))), 11, br)) : x("", !0), O("button", {
|
|
320
320
|
ref_key: "allAgain",
|
|
321
321
|
ref: k,
|
|
322
322
|
type: "button",
|
|
323
323
|
"data-testid": "translate-all-again",
|
|
324
|
-
class: c(b(
|
|
324
|
+
class: c(b(Ot)),
|
|
325
325
|
disabled: !!e.feature.running.value || A.value === 0,
|
|
326
326
|
onClick: P
|
|
327
|
-
}, a(b(r).localization.translateAllAgain), 11,
|
|
327
|
+
}, a(b(r).localization.translateAllAgain), 11, xr)], 64)) : x("", !0),
|
|
328
328
|
O("button", {
|
|
329
329
|
type: "button",
|
|
330
330
|
"data-testid": "language-back-default",
|
|
331
|
-
class: c(b(
|
|
331
|
+
class: c(b(Ot)),
|
|
332
332
|
onClick: n[3] ||= (t) => e.editor.setActiveLocale?.(null)
|
|
333
|
-
}, a(b(i)(b(r).localization.backToDefault, { default: b(
|
|
333
|
+
}, a(b(i)(b(r).localization.backToDefault, { default: b(Ct)(d.value) })), 3)
|
|
334
334
|
])]),
|
|
335
|
-
T.value ? (s(), C("div",
|
|
335
|
+
T.value ? (s(), C("div", Sr, [O("span", null, a(b(r).localization.structureNotice), 1), O("button", {
|
|
336
336
|
type: "button",
|
|
337
337
|
"aria-label": b(r).localization.dismiss,
|
|
338
|
-
class: c(b(
|
|
338
|
+
class: c(b(Ot)),
|
|
339
339
|
onClick: n[4] ||= (e) => T.value = !1
|
|
340
|
-
}, [v(b(
|
|
340
|
+
}, [v(b(He), {
|
|
341
341
|
size: 14,
|
|
342
342
|
"aria-hidden": "true"
|
|
343
|
-
})], 10,
|
|
344
|
-
v(
|
|
343
|
+
})], 10, Cr)])) : x("", !0),
|
|
344
|
+
v(jt, {
|
|
345
345
|
visible: D.value !== null,
|
|
346
346
|
onClose: N
|
|
347
347
|
}, {
|
|
@@ -351,35 +351,35 @@ var tr = /*#__PURE__*/ Re(Qn, [["render", er]]), nr = ze({
|
|
|
351
351
|
"aria-label": j.value,
|
|
352
352
|
class: "tpl:w-96 tpl:max-w-full tpl:max-h-[90%] tpl:overflow-y-auto tpl:box-border tpl:rounded-[var(--tpl-radius)] tpl:bg-[var(--tpl-bg)] tpl:p-5 tpl:shadow-[var(--tpl-shadow-lg)]"
|
|
353
353
|
}, [
|
|
354
|
-
O("h3",
|
|
355
|
-
O("p",
|
|
356
|
-
O("div",
|
|
354
|
+
O("h3", Tr, a(j.value), 1),
|
|
355
|
+
O("p", Er, a(b(i)(b(r).localization.translationDescription, { language: b(Ct)(D.value?.locale ?? f.value) })), 1),
|
|
356
|
+
O("div", Dr, [O("button", {
|
|
357
357
|
type: "button",
|
|
358
358
|
"data-testid": "translation-confirm-cancel",
|
|
359
|
-
class: c(b(
|
|
359
|
+
class: c(b(wt)),
|
|
360
360
|
onClick: N
|
|
361
361
|
}, a(b(r).localization.cancel), 3), O("button", {
|
|
362
362
|
type: "button",
|
|
363
363
|
"data-testid": "translation-confirm",
|
|
364
|
-
class: c(b(
|
|
364
|
+
class: c(b(Et)),
|
|
365
365
|
disabled: !!e.feature?.running.value || !e.feature?.isAvailable.value || A.value === 0,
|
|
366
366
|
onClick: F
|
|
367
|
-
}, a(b(
|
|
368
|
-
], 8,
|
|
367
|
+
}, a(b(St)(b(r).localization.translateAllFields, A.value, b(o))), 11, Or)])
|
|
368
|
+
], 8, wr)]),
|
|
369
369
|
_: 1
|
|
370
370
|
}, 8, ["visible"])
|
|
371
371
|
]));
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
374
|
// src/composables/useLocaleActions.ts
|
|
375
|
-
function
|
|
375
|
+
function jr(e) {
|
|
376
376
|
let { editor: t } = e;
|
|
377
377
|
return { setDefaultLocale(n) {
|
|
378
378
|
let r;
|
|
379
379
|
try {
|
|
380
|
-
r = [t.createSetDefaultLocaleOperation(n)], e.collaboration ||
|
|
380
|
+
r = [t.createSetDefaultLocaleOperation(n)], e.collaboration || ke(t.content.value, r);
|
|
381
381
|
} catch (e) {
|
|
382
|
-
if (e instanceof
|
|
382
|
+
if (e instanceof Ee) return {
|
|
383
383
|
applied: !1,
|
|
384
384
|
error: e
|
|
385
385
|
};
|
|
@@ -388,12 +388,12 @@ function kr(e) {
|
|
|
388
388
|
if (e.collaboration) {
|
|
389
389
|
let t = e.collaboration.core.applyOperations(r, {});
|
|
390
390
|
if (!t.applied) return t;
|
|
391
|
-
} else e.history().record(),
|
|
391
|
+
} else e.history().record(), Ie(t.content.value, r), t.markDirty();
|
|
392
392
|
return t.setActiveLocale(n), { applied: !0 };
|
|
393
393
|
} };
|
|
394
394
|
}
|
|
395
395
|
// src/composables/useTranslationFeature.ts
|
|
396
|
-
function
|
|
396
|
+
function Mr(e) {
|
|
397
397
|
if (typeof e != "object" || !e) return null;
|
|
398
398
|
let t = e;
|
|
399
399
|
return t.code !== "rate_limited" && t.code !== "limit_reached" && t.code !== "content_too_large" && t.code !== "translation_failed" || t.statusCode !== void 0 && typeof t.statusCode != "number" ? null : {
|
|
@@ -402,24 +402,24 @@ function Ar(e) {
|
|
|
402
402
|
...t.statusCode === void 0 ? {} : { statusCode: t.statusCode }
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function Nr(e) {
|
|
406
406
|
let t = /* @__PURE__ */ new Set();
|
|
407
407
|
if (typeof DOMParser > "u") return t;
|
|
408
408
|
let n = new DOMParser().parseFromString(e, "text/html");
|
|
409
409
|
for (let e of n.querySelectorAll("[style]")) t.add(e.getAttribute("style") ?? "");
|
|
410
410
|
return t;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
413
|
-
let n =
|
|
414
|
-
return [...
|
|
412
|
+
function Pr(e, t) {
|
|
413
|
+
let n = Nr(t);
|
|
414
|
+
return [...Nr(e)].every((e) => n.has(e));
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
let t = `tpl-translation-${crypto.randomUUID()}-`, n = [], r = e.replace(/<x id="\d+"\s*\/>|<x id="\d+"><\/x>|__x\d+__/g, (e) => `${t}${n.push(e)}-end`), i =
|
|
416
|
+
function Fr(e) {
|
|
417
|
+
let t = `tpl-translation-${crypto.randomUUID()}-`, n = [], r = e.replace(/<x id="\d+"\s*\/>|<x id="\d+"><\/x>|__x\d+__/g, (e) => `${t}${n.push(e)}-end`), i = Ve(r);
|
|
418
418
|
return n.forEach((e, n) => {
|
|
419
419
|
i = i.replaceAll(`${t}${n + 1}-end`, e);
|
|
420
420
|
}), i;
|
|
421
421
|
}
|
|
422
|
-
async function
|
|
422
|
+
async function Ir(e, t) {
|
|
423
423
|
t.throwIfAborted();
|
|
424
424
|
let n, r = new Promise((e, r) => {
|
|
425
425
|
n = () => r(t.reason), t.addEventListener("abort", n, { once: !0 });
|
|
@@ -430,7 +430,7 @@ async function Pr(e, t) {
|
|
|
430
430
|
t.removeEventListener("abort", n);
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function Lr(e) {
|
|
434
434
|
let { editor: n } = e, r = A(null), i = A(null), a = null, o = A(!1), s = y(() => {
|
|
435
435
|
let t = n.activeLocale.value;
|
|
436
436
|
return !o.value && !!t && t !== Q(n.content.value) && !!e.localization?.locales.includes(t) && !!n.content.value.settings.locales?.includes(t);
|
|
@@ -439,7 +439,7 @@ function Fr(e) {
|
|
|
439
439
|
gaps: 0,
|
|
440
440
|
all: 0
|
|
441
441
|
};
|
|
442
|
-
let t = n.activeLocale.value, r = e.definitions(), i = e.coverage?.() ??
|
|
442
|
+
let t = n.activeLocale.value, r = e.definitions(), i = e.coverage?.() ?? ce(n.content.value, t, r), a = /* @__PURE__ */ new Set([...i.missing, ...i.stale]), { strings: o } = pe(n.content.value, t, {
|
|
443
443
|
definitions: r,
|
|
444
444
|
syntax: e.syntax(),
|
|
445
445
|
doNotTranslate: e.localization?.doNotTranslate,
|
|
@@ -466,11 +466,11 @@ function Fr(e) {
|
|
|
466
466
|
o.value = !0, u();
|
|
467
467
|
});
|
|
468
468
|
async function d(t) {
|
|
469
|
-
if (a) throw new
|
|
470
|
-
if (!s.value) throw new
|
|
469
|
+
if (a) throw new Z("A translation is already running.", 409, "translation_running");
|
|
470
|
+
if (!s.value) throw new Z("Translation isn't available in this language.", 403, "feature_unavailable");
|
|
471
471
|
let o = e.collaboration?.core;
|
|
472
472
|
o?.flush();
|
|
473
|
-
let c = n.activeLocale.value, l = n.state.template?.id ?? null, u = Q(n.content.value), d =
|
|
473
|
+
let c = n.activeLocale.value, l = n.state.template?.id ?? null, u = Q(n.content.value), d = Ne(N([...e.definitions()])), f = e.syntax(), p = e.localization?.doNotTranslate?.slice(), m = pe(n.content.value, c, {
|
|
474
474
|
...t,
|
|
475
475
|
definitions: d,
|
|
476
476
|
syntax: f,
|
|
@@ -506,7 +506,7 @@ function Fr(e) {
|
|
|
506
506
|
}
|
|
507
507
|
let i;
|
|
508
508
|
try {
|
|
509
|
-
i = await
|
|
509
|
+
i = await Ir(e.provider.translate({
|
|
510
510
|
templateId: l,
|
|
511
511
|
sourceLocale: u,
|
|
512
512
|
targetLocale: c,
|
|
@@ -517,7 +517,7 @@ function Fr(e) {
|
|
|
517
517
|
}))
|
|
518
518
|
}, g.controller.signal), g.controller.signal), g.controller.signal.throwIfAborted();
|
|
519
519
|
} catch (e) {
|
|
520
|
-
if (!g.controller.signal.aborted &&
|
|
520
|
+
if (!g.controller.signal.aborted && Mr(e)?.code === "content_too_large" && t.length > 1) {
|
|
521
521
|
y = Math.floor(t.length / 2);
|
|
522
522
|
continue;
|
|
523
523
|
}
|
|
@@ -529,10 +529,10 @@ function Fr(e) {
|
|
|
529
529
|
h.missing.push(e.id);
|
|
530
530
|
continue;
|
|
531
531
|
}
|
|
532
|
-
let n = m.tokens[e.id], r =
|
|
533
|
-
r === null || e.format === "html" && !
|
|
532
|
+
let n = m.tokens[e.id], r = Pe(t.text, n);
|
|
533
|
+
r === null || e.format === "html" && !Pr(r, Pe(e.source, n)) ? h.tagsChanged.push(e.id) : _.push({
|
|
534
534
|
id: e.id,
|
|
535
|
-
text: e.format === "html" ?
|
|
535
|
+
text: e.format === "html" ? Fr(t.text) : t.text,
|
|
536
536
|
sourceHash: e.sourceHash
|
|
537
537
|
});
|
|
538
538
|
}
|
|
@@ -543,14 +543,14 @@ function Fr(e) {
|
|
|
543
543
|
}
|
|
544
544
|
} catch (e) {
|
|
545
545
|
g.controller.signal.aborted || e instanceof Error && e.name === "AbortError" ? h.cancelled = !0 : h.error = {
|
|
546
|
-
code:
|
|
547
|
-
message:
|
|
546
|
+
code: Mr(e)?.code ?? "translation_failed",
|
|
547
|
+
message: Mr(e)?.message ?? (e instanceof Error ? e.message : String(e))
|
|
548
548
|
};
|
|
549
549
|
}
|
|
550
550
|
try {
|
|
551
551
|
if (!g.discarded) {
|
|
552
552
|
o?.flush();
|
|
553
|
-
let t =
|
|
553
|
+
let t = ve(n.content.value, c, _, {
|
|
554
554
|
definitions: d,
|
|
555
555
|
syntax: f,
|
|
556
556
|
doNotTranslate: p,
|
|
@@ -573,7 +573,7 @@ function Fr(e) {
|
|
|
573
573
|
let t = o.locksOf(e.blockId).some((e) => e.holder.sessionId !== o.sessionId && (e.locale == null || e.locale === c));
|
|
574
574
|
return t && h.skippedLocked.push(...Object.keys(e.text ?? {}).map((t) => `${e.blockId}/${t}`)), !t;
|
|
575
575
|
});
|
|
576
|
-
s.length && (
|
|
576
|
+
s.length && (ke(N(n.content.value), s), e.history().record(), Ie(n.content.value, s), n.markDirty(), o?.flush(), h.translated = s.reduce((e, t) => e + (t.op === "updateBlockLocale" || t.op === "updateSettingsLocale" ? Object.keys(t.text ?? {}).length : 0), 0)), n.activeLocale.value === c && (i.value = h);
|
|
577
577
|
}
|
|
578
578
|
} finally {
|
|
579
579
|
a = null, r.value = null;
|
|
@@ -593,12 +593,12 @@ function Fr(e) {
|
|
|
593
593
|
};
|
|
594
594
|
}
|
|
595
595
|
// src/composables/useCollaborationFeature.ts
|
|
596
|
-
var
|
|
596
|
+
var Rr = 5e3, zr = 2e3, Br = {
|
|
597
597
|
blockIds: [],
|
|
598
598
|
settings: !1,
|
|
599
599
|
templateUpdated: !0
|
|
600
600
|
};
|
|
601
|
-
function
|
|
601
|
+
function Vr(e) {
|
|
602
602
|
let t = /* @__PURE__ */ new Set(), n = !1, r = !1;
|
|
603
603
|
for (let i of e) i.op === "addBlock" ? typeof i.block?.id == "string" && t.add(i.block.id) : i.op === "updateSettings" || i.op === "addLocale" || i.op === "removeLocale" || i.op === "updateSettingsLocale" ? n = !0 : i.op === "setContent" || i.op === "setDefaultLocale" ? r = !0 : t.add(i.blockId);
|
|
604
604
|
return {
|
|
@@ -607,11 +607,11 @@ function zr(e) {
|
|
|
607
607
|
templateUpdated: r
|
|
608
608
|
};
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function Hr(e) {
|
|
611
611
|
let t = S([]), n = 1, r = /* @__PURE__ */ new Map();
|
|
612
612
|
function i(e) {
|
|
613
613
|
let t = r.get(e);
|
|
614
|
-
t && clearTimeout(t), r.set(e, setTimeout(() => o(e),
|
|
614
|
+
t && clearTimeout(t), r.set(e, setTimeout(() => o(e), Rr));
|
|
615
615
|
}
|
|
616
616
|
function a(e) {
|
|
617
617
|
let r = n++;
|
|
@@ -649,7 +649,7 @@ function Br(e) {
|
|
|
649
649
|
u.delete(r);
|
|
650
650
|
let e = new Map(l.value);
|
|
651
651
|
e.delete(r), l.value = e;
|
|
652
|
-
},
|
|
652
|
+
}, zr));
|
|
653
653
|
}
|
|
654
654
|
l.value = n;
|
|
655
655
|
}
|
|
@@ -690,18 +690,18 @@ function Br(e) {
|
|
|
690
690
|
id: u.noticeId
|
|
691
691
|
}], i(u.noticeId)) : (u.noticeId = a(p), c = u), n.templateUpdated || f(n.blockIds);
|
|
692
692
|
}
|
|
693
|
-
let m =
|
|
693
|
+
let m = ee({
|
|
694
694
|
provider: e.provider,
|
|
695
695
|
loadTemplate: e.loadTemplate,
|
|
696
|
-
normalizeRemoteOperations: (t, n) =>
|
|
696
|
+
normalizeRemoteOperations: (t, n) => mn(t, n, e.mergeTags),
|
|
697
697
|
onRemoteChange: (t) => {
|
|
698
698
|
try {
|
|
699
|
-
p(t.actor,
|
|
699
|
+
p(t.actor, Vr(t.ops));
|
|
700
700
|
} finally {
|
|
701
701
|
e.onRemoteChange?.(t);
|
|
702
702
|
}
|
|
703
703
|
},
|
|
704
|
-
onRemoteResync: ({ actor: e }) => p(e,
|
|
704
|
+
onRemoteResync: ({ actor: e }) => p(e, Br),
|
|
705
705
|
onNotice: s,
|
|
706
706
|
onError: e.onError
|
|
707
707
|
});
|
|
@@ -763,14 +763,14 @@ function Br(e) {
|
|
|
763
763
|
};
|
|
764
764
|
}
|
|
765
765
|
// src/composables/useCommentsFeature.ts
|
|
766
|
-
function
|
|
767
|
-
let { provider: n, editor: r } = e, i =
|
|
766
|
+
function Ur(e) {
|
|
767
|
+
let { provider: n, editor: r } = e, i = Y({
|
|
768
768
|
provider: n,
|
|
769
769
|
getTemplateId: () => r.state.template?.id ?? null,
|
|
770
770
|
getUser: () => e.user ?? null,
|
|
771
771
|
onError: e.onError
|
|
772
772
|
});
|
|
773
|
-
|
|
773
|
+
K({
|
|
774
774
|
comments: i,
|
|
775
775
|
provider: n,
|
|
776
776
|
getTemplateId: () => r.state.template?.id ?? null
|
|
@@ -816,22 +816,22 @@ function Vr(e) {
|
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
818
|
// src/composables/useAiFeature.ts
|
|
819
|
-
var
|
|
820
|
-
function Wr(e) {
|
|
821
|
-
return ie(N(e));
|
|
822
|
-
}
|
|
823
|
-
var Gr = (e) => e instanceof Error && e.name === "AbortError";
|
|
819
|
+
var Wr = 3e3, Gr = 1e3;
|
|
824
820
|
function Kr(e) {
|
|
821
|
+
return Ne(N(e));
|
|
822
|
+
}
|
|
823
|
+
var qr = (e) => e instanceof Error && e.name === "AbortError";
|
|
824
|
+
function Jr(e) {
|
|
825
825
|
if (e instanceof Error) return e;
|
|
826
826
|
if (typeof e != "object" || !e) return Error(String(e));
|
|
827
827
|
let t = e;
|
|
828
828
|
return Object.assign(Error(typeof t.message == "string" ? t.message : String(e)), typeof t.code == "string" ? { code: t.code } : {}, typeof t.statusCode == "number" ? { statusCode: t.statusCode } : {}, t.details === void 0 ? {} : { details: t.details });
|
|
829
829
|
}
|
|
830
|
-
var
|
|
831
|
-
function
|
|
832
|
-
return e.some((e) => e.id === t || e.type === "section" && Array.isArray(e.children) && e.children.some((e) => Array.isArray(e) &&
|
|
830
|
+
var Yr = (e) => e.batches.reduce((e, t) => e + t.operationCount, 0);
|
|
831
|
+
function Xr(e, t) {
|
|
832
|
+
return e.some((e) => e.id === t || e.type === "section" && Array.isArray(e.children) && e.children.some((e) => Array.isArray(e) && Xr(e, t)));
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function Zr(e) {
|
|
835
835
|
return {
|
|
836
836
|
applied: !1,
|
|
837
837
|
code: e.code,
|
|
@@ -839,10 +839,10 @@ function Yr(e) {
|
|
|
839
839
|
message: e.message
|
|
840
840
|
};
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function Qr(e) {
|
|
843
843
|
let { provider: n, editor: r, collaboration: i } = e, a = n.conversation ?? null, o = crypto.randomUUID(), s = S(null), c = /* @__PURE__ */ new Map(), l = !1, u = 0, d = !1, f = 0, p = null, m = j();
|
|
844
844
|
function h(e) {
|
|
845
|
-
let t =
|
|
845
|
+
let t = ee(e);
|
|
846
846
|
return {
|
|
847
847
|
id: e,
|
|
848
848
|
memory: t,
|
|
@@ -885,10 +885,10 @@ function Xr(e) {
|
|
|
885
885
|
});
|
|
886
886
|
}
|
|
887
887
|
let O = D((e) => e.messages, []), k = y(() => r.content.value.blocks.length === 0), M = D((e) => e.isLoadingHistory, !1), P = D((e) => e.busy, !1), F = D((e) => e.failure, null), I = D((e) => e.keptYourVersion, !1), L = D((e) => e.failedPrompt, null), R = D((e) => e.failedAttachments, []), z = D((e) => e.importQueue, []);
|
|
888
|
-
function
|
|
888
|
+
function B(e) {
|
|
889
889
|
e.historyGeneration++, e.pendingHistory = null, e.loaded = !1, e.isLoadingHistory.value = !1;
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function V(e, t, n, r) {
|
|
892
892
|
return E(t) ? new Promise((i, a) => {
|
|
893
893
|
let o = {
|
|
894
894
|
kind: e,
|
|
@@ -904,23 +904,23 @@ function Xr(e) {
|
|
|
904
904
|
a(e);
|
|
905
905
|
return;
|
|
906
906
|
} finally {
|
|
907
|
-
t.active = null, t.busy.value = !1, --f === 0 &&
|
|
907
|
+
t.active = null, t.busy.value = !1, --f === 0 && De(), H(t);
|
|
908
908
|
}
|
|
909
909
|
i(e);
|
|
910
910
|
}
|
|
911
911
|
};
|
|
912
|
-
t.queue.push(o), f++ === 0 &&
|
|
912
|
+
t.queue.push(o), f++ === 0 && De(), H(t);
|
|
913
913
|
}) : Promise.resolve().then(r);
|
|
914
914
|
}
|
|
915
|
-
function
|
|
915
|
+
function H(e) {
|
|
916
916
|
if (e.active) return;
|
|
917
917
|
let t = e.queue.shift();
|
|
918
918
|
t && (e.active = t, E(e) && (e.busy.value = !0), t.execute());
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function U(e) {
|
|
921
921
|
if (e.controller.signal.throwIfAborted(), !E(e.scope)) throw new DOMException("The template changed.", "AbortError");
|
|
922
922
|
}
|
|
923
|
-
async function
|
|
923
|
+
async function W(e, t) {
|
|
924
924
|
t.throwIfAborted();
|
|
925
925
|
let n, r = new Promise((e, r) => {
|
|
926
926
|
n = () => r(t.reason), t.addEventListener("abort", n, { once: !0 });
|
|
@@ -931,15 +931,15 @@ function Xr(e) {
|
|
|
931
931
|
t.removeEventListener("abort", n);
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
|
-
async function
|
|
934
|
+
async function G(t, n = !1, r = t.authorVersion) {
|
|
935
935
|
let { scope: i } = t, a = () => i.active === t && E(i) && (n || !t.controller.signal.aborted), o = () => a() ? r === u || (i.keptYourVersion.value = !0, !1) : !1;
|
|
936
936
|
if (e.reload && o()) try {
|
|
937
|
-
await
|
|
937
|
+
await W(e.reload(i.id, () => o() ? (i.keptYourVersion.value = !1, i.committingReload = !0, !0) : !1), i.lifetime.signal);
|
|
938
938
|
} finally {
|
|
939
939
|
i.committingReload = !1;
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function ee(e) {
|
|
943
943
|
let t = c.get(e);
|
|
944
944
|
return t || (t = {
|
|
945
945
|
generation: 0,
|
|
@@ -949,16 +949,16 @@ function Xr(e) {
|
|
|
949
949
|
recoveries: /* @__PURE__ */ new Map()
|
|
950
950
|
}, c.set(e, t)), t;
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function K(e, t, n) {
|
|
953
953
|
let r = setTimeout(() => {
|
|
954
954
|
e.timers.delete(r), t();
|
|
955
955
|
}, n);
|
|
956
956
|
e.timers.add(r);
|
|
957
957
|
}
|
|
958
|
-
function
|
|
959
|
-
|
|
958
|
+
function q(t) {
|
|
959
|
+
qr(t) || e.onError?.(Jr(t));
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function Y(e, t) {
|
|
962
962
|
if (t.length === 0) return;
|
|
963
963
|
if (i) {
|
|
964
964
|
i.outline(t);
|
|
@@ -966,18 +966,18 @@ function Xr(e) {
|
|
|
966
966
|
}
|
|
967
967
|
let n = ++e.highlightSequence, r = new Map(e.highlights.value);
|
|
968
968
|
for (let e of t) r.set(e, n);
|
|
969
|
-
e.highlights.value = r,
|
|
969
|
+
e.highlights.value = r, K(e, () => {
|
|
970
970
|
let r = new Map(e.highlights.value);
|
|
971
971
|
for (let e of t) r.get(e) === n && r.delete(e);
|
|
972
972
|
e.highlights.value = r;
|
|
973
|
-
},
|
|
973
|
+
}, zr);
|
|
974
974
|
}
|
|
975
|
-
async function
|
|
976
|
-
i && await Promise.race([i.core.settle().catch(() => {}), new Promise((t) =>
|
|
975
|
+
async function te(e) {
|
|
976
|
+
i && await Promise.race([i.core.settle().catch(() => {}), new Promise((t) => K(e, t, Wr))]);
|
|
977
977
|
}
|
|
978
|
-
function
|
|
979
|
-
let n = N(r.content.value), a = r.activeLocale?.value ?? null, s =
|
|
980
|
-
if (a === null && n.settings.locale === void 0 && delete s.settings.locale, new TextEncoder().encode(JSON.stringify(s)).length > 2e5) throw new
|
|
978
|
+
function ne(t) {
|
|
979
|
+
let n = N(r.content.value), a = r.activeLocale?.value ?? null, s = X(n, a ?? Q(n));
|
|
980
|
+
if (a === null && n.settings.locale === void 0 && delete s.settings.locale, new TextEncoder().encode(JSON.stringify(s)).length > 2e5) throw new Z("This template is too large for AI.", 413, "content_too_large");
|
|
981
981
|
return {
|
|
982
982
|
templateId: t,
|
|
983
983
|
locale: a,
|
|
@@ -987,11 +987,11 @@ function Xr(e) {
|
|
|
987
987
|
mergeTags: e.mergeTags()
|
|
988
988
|
};
|
|
989
989
|
}
|
|
990
|
-
function
|
|
990
|
+
function re() {
|
|
991
991
|
let e = r.state.selectedBlockId;
|
|
992
|
-
return e ? i ? i.core.hasConfirmedBlock(e) ? e : null :
|
|
992
|
+
return e ? i ? i.core.hasConfirmedBlock(e) ? e : null : Xr(r.content.value.blocks, e) ? e : null : null;
|
|
993
993
|
}
|
|
994
|
-
function
|
|
994
|
+
function ie(t, n, a) {
|
|
995
995
|
if (t.length === 0) return {
|
|
996
996
|
applied: !0,
|
|
997
997
|
inverse: []
|
|
@@ -1000,55 +1000,55 @@ function Xr(e) {
|
|
|
1000
1000
|
try {
|
|
1001
1001
|
o = e.normalize(t, N(r.content.value));
|
|
1002
1002
|
} catch (e) {
|
|
1003
|
-
if (e instanceof
|
|
1003
|
+
if (e instanceof Ee) return Zr(e);
|
|
1004
1004
|
throw e;
|
|
1005
1005
|
}
|
|
1006
1006
|
if (o.length === 0) return {
|
|
1007
1007
|
applied: !0,
|
|
1008
1008
|
inverse: []
|
|
1009
1009
|
};
|
|
1010
|
-
let s =
|
|
1010
|
+
let s = Vr(o);
|
|
1011
1011
|
if (i) {
|
|
1012
1012
|
let e = i.core.applyOperations(o, {
|
|
1013
1013
|
origin: "ai",
|
|
1014
1014
|
turn: n
|
|
1015
1015
|
});
|
|
1016
|
-
return e.applied ? (s.templateUpdated ||
|
|
1016
|
+
return e.applied ? (s.templateUpdated || Y(a, s.blockIds), {
|
|
1017
1017
|
applied: !0,
|
|
1018
1018
|
inverse: e.inverse
|
|
1019
|
-
}) :
|
|
1019
|
+
}) : Zr(e.error);
|
|
1020
1020
|
}
|
|
1021
1021
|
let c;
|
|
1022
1022
|
try {
|
|
1023
|
-
c =
|
|
1023
|
+
c = ke(N(r.content.value), o);
|
|
1024
1024
|
} catch (e) {
|
|
1025
|
-
if (e instanceof
|
|
1025
|
+
if (e instanceof Ee) return Zr(e);
|
|
1026
1026
|
throw e;
|
|
1027
1027
|
}
|
|
1028
1028
|
a.lastRecordedTurn !== n && (e.history().record(), a.lastRecordedTurn = n), d = !0;
|
|
1029
1029
|
try {
|
|
1030
|
-
|
|
1030
|
+
Ie(r.content.value, Ne(o)), r.markDirty();
|
|
1031
1031
|
} finally {
|
|
1032
1032
|
d = !1;
|
|
1033
1033
|
}
|
|
1034
1034
|
let l = r.state.selectedBlockId;
|
|
1035
|
-
return l && !
|
|
1035
|
+
return l && !Xr(r.content.value.blocks, l) && r.selectBlock(null), s.templateUpdated || Y(a, s.blockIds), {
|
|
1036
1036
|
applied: !0,
|
|
1037
1037
|
inverse: c
|
|
1038
1038
|
};
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function ae(t, n, i, a) {
|
|
1041
1041
|
let o = t;
|
|
1042
1042
|
try {
|
|
1043
1043
|
if (a !== null) {
|
|
1044
|
-
if (e.localization && !e.localization.locales.includes(a)) throw new
|
|
1045
|
-
o =
|
|
1044
|
+
if (e.localization && !e.localization.locales.includes(a)) throw new Ee("invalid_operation", 0, `Locale "${a}" is not enabled.`);
|
|
1045
|
+
o = J(N(r.content.value), a, t, e.customBlockDefinitions?.());
|
|
1046
1046
|
}
|
|
1047
1047
|
} catch (e) {
|
|
1048
|
-
if (e instanceof
|
|
1048
|
+
if (e instanceof Ee) return Zr(e);
|
|
1049
1049
|
throw e;
|
|
1050
1050
|
}
|
|
1051
|
-
let s =
|
|
1051
|
+
let s = ie(o, n, i);
|
|
1052
1052
|
return s.applied && s.inverse.length > 0 && a !== null && o.some((e) => [
|
|
1053
1053
|
"addBlock",
|
|
1054
1054
|
"moveBlock",
|
|
@@ -1056,14 +1056,14 @@ function Xr(e) {
|
|
|
1056
1056
|
"updateBlock"
|
|
1057
1057
|
].includes(e.op)) && e.onStructureChange?.(), s;
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function oe(e, t) {
|
|
1060
1060
|
if (!i || !E(t)) return;
|
|
1061
1061
|
let n = i.core;
|
|
1062
|
-
n.revision.value >= e || (n.connection.value === "connected" ?
|
|
1062
|
+
n.revision.value >= e || (n.connection.value === "connected" ? K(t, () => {
|
|
1063
1063
|
E(t) && n.revision.value < e && n.catchUp();
|
|
1064
|
-
},
|
|
1064
|
+
}, Gr) : n.catchUp());
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function se(e, t, n) {
|
|
1067
1067
|
let r = e.memory;
|
|
1068
1068
|
r.items = r.items.map((e) => {
|
|
1069
1069
|
if (e.id !== t) return e;
|
|
@@ -1073,13 +1073,13 @@ function Xr(e) {
|
|
|
1073
1073
|
};
|
|
1074
1074
|
return {
|
|
1075
1075
|
...i,
|
|
1076
|
-
...
|
|
1076
|
+
...ce(i, r)
|
|
1077
1077
|
};
|
|
1078
1078
|
});
|
|
1079
1079
|
for (let e of r.recoveries.values()) e.item.id === t && (e.item = r.items.find((e) => e.id === (n.id ?? t)) ?? e.item);
|
|
1080
1080
|
e.messages.value = r.items;
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function ce(e, t) {
|
|
1083
1083
|
let n = e.role === "assistant" && e.operationCount > 0;
|
|
1084
1084
|
if (t.storedIds.has(e.id)) return {
|
|
1085
1085
|
canUndo: n && !e.undone && typeof a?.undo == "function",
|
|
@@ -1091,21 +1091,21 @@ function Xr(e) {
|
|
|
1091
1091
|
canRedo: n && e.undone && !r?.serverApplied && (r?.redo?.length ?? 0) > 0
|
|
1092
1092
|
};
|
|
1093
1093
|
}
|
|
1094
|
-
let
|
|
1094
|
+
let le = () => ({
|
|
1095
1095
|
messageId: null,
|
|
1096
1096
|
operationCount: 0,
|
|
1097
1097
|
text: "",
|
|
1098
1098
|
failed: !0
|
|
1099
1099
|
});
|
|
1100
|
-
function
|
|
1100
|
+
function ue(t, n, o, s = []) {
|
|
1101
1101
|
let c = b, l = r.activeLocale?.value ?? null, u = T();
|
|
1102
|
-
return !u || u.active?.kind === "turn" || u.queue.some((e) => e.kind === "turn") ? Promise.resolve(
|
|
1102
|
+
return !u || u.active?.kind === "turn" || u.queue.some((e) => e.kind === "turn") ? Promise.resolve(le()) : V("turn", u, async (d) => {
|
|
1103
1103
|
let { controller: f } = d, p = u.memory, m = crypto.randomUUID(), h = crypto.randomUUID(), g = crypto.randomUUID(), _ = 0, v = "", y = !1, b = null, x = {
|
|
1104
1104
|
inverse: [],
|
|
1105
1105
|
redo: null,
|
|
1106
1106
|
serverApplied: !1,
|
|
1107
1107
|
batchIds: /* @__PURE__ */ new Set()
|
|
1108
|
-
}, S, w = !1, T = !1, D = (e) =>
|
|
1108
|
+
}, S, w = !1, T = !1, D = (e) => se(u, g, e), O = () => {
|
|
1109
1109
|
let e = p.items.find((e) => e.id === g);
|
|
1110
1110
|
a && e && p.recoveries.set(m, {
|
|
1111
1111
|
item: e,
|
|
@@ -1113,14 +1113,14 @@ function Xr(e) {
|
|
|
1113
1113
|
record: x
|
|
1114
1114
|
});
|
|
1115
1115
|
}, k = () => {
|
|
1116
|
-
!T && (a || !i && e.reload) && (T = !0,
|
|
1116
|
+
!T && (a || !i && e.reload) && (T = !0, V("reconcile", u, async (t) => {
|
|
1117
1117
|
try {
|
|
1118
1118
|
let n;
|
|
1119
1119
|
do
|
|
1120
|
-
n = _, !i && e.reload && await
|
|
1120
|
+
n = _, !i && e.reload && await G(t, !0, d.authorVersion), a && await me(t, !0, !0);
|
|
1121
1121
|
while (E(u) && n !== _);
|
|
1122
1122
|
} catch (e) {
|
|
1123
|
-
E(u) &&
|
|
1123
|
+
E(u) && q(e);
|
|
1124
1124
|
} finally {
|
|
1125
1125
|
T = !1;
|
|
1126
1126
|
}
|
|
@@ -1129,22 +1129,22 @@ function Xr(e) {
|
|
|
1129
1129
|
}));
|
|
1130
1130
|
}, A = {
|
|
1131
1131
|
onText: (e) => {
|
|
1132
|
-
|
|
1132
|
+
U(d), v += e, D({ text: v });
|
|
1133
1133
|
},
|
|
1134
1134
|
onOperations: async (e) => {
|
|
1135
|
-
|
|
1136
|
-
let t = i ?
|
|
1137
|
-
return n.applied && n.inverse.length > 0 && (x.inverse = [...n.inverse, ...x.inverse], i && (x.view = x.view === void 0 || x.view !== null &&
|
|
1135
|
+
U(d), C(c);
|
|
1136
|
+
let t = i ? Kr(r.content.value) : null, n = ae(e, m, u, l);
|
|
1137
|
+
return n.applied && n.inverse.length > 0 && (x.inverse = [...n.inverse, ...x.inverse], i && (x.view = x.view === void 0 || x.view !== null && _e(x.view, t) ? Kr(r.content.value) : null), _ += e.length, D({ operationCount: _ })), n;
|
|
1138
1138
|
},
|
|
1139
1139
|
onApplied: (t) => {
|
|
1140
1140
|
if (!E(u)) throw new DOMException("The template changed.", "AbortError");
|
|
1141
|
-
if (!i && !e.reload) throw b ??= new
|
|
1142
|
-
x.serverApplied = !0, x.batchIds.add(t.batchId), _ += t.operationCount, D({ operationCount: _ }),
|
|
1141
|
+
if (!i && !e.reload) throw b ??= new Z(vn, 502, "ai_provider_error"), b;
|
|
1142
|
+
x.serverApplied = !0, x.batchIds.add(t.batchId), _ += t.operationCount, D({ operationCount: _ }), oe(t.revision, u), w && (O(), k());
|
|
1143
1143
|
}
|
|
1144
1144
|
};
|
|
1145
1145
|
try {
|
|
1146
1146
|
try {
|
|
1147
|
-
await
|
|
1147
|
+
await me(d), U(d), C(c), u.failure.value = null, u.failedPrompt.value = null, u.failedAttachments.value = [];
|
|
1148
1148
|
let e = (/* @__PURE__ */ new Date()).toISOString();
|
|
1149
1149
|
p.records.set(g, x), p.items = [
|
|
1150
1150
|
...p.items,
|
|
@@ -1179,12 +1179,12 @@ function Xr(e) {
|
|
|
1179
1179
|
createdAt: e,
|
|
1180
1180
|
status: "streaming"
|
|
1181
1181
|
}
|
|
1182
|
-
], u.messages.value = p.items, await
|
|
1183
|
-
let r = await
|
|
1184
|
-
if (
|
|
1182
|
+
], u.messages.value = p.items, await W(te(u), d.controller.signal), U(d), C(c);
|
|
1183
|
+
let r = await W(o(ne(u.id), A, f.signal), f.signal);
|
|
1184
|
+
if (U(d), b) throw b;
|
|
1185
1185
|
if (r.text !== "" && (v = r.text), r.messageId !== null && a) {
|
|
1186
1186
|
let e = g;
|
|
1187
|
-
g = r.messageId, p.storedIds.add(g), p.records.delete(e), p.records.set(g, x),
|
|
1187
|
+
g = r.messageId, p.storedIds.add(g), p.records.delete(e), p.records.set(g, x), se(u, e, { id: g });
|
|
1188
1188
|
}
|
|
1189
1189
|
D({
|
|
1190
1190
|
text: v,
|
|
@@ -1197,8 +1197,8 @@ function Xr(e) {
|
|
|
1197
1197
|
};
|
|
1198
1198
|
} catch (e) {
|
|
1199
1199
|
let r = b ?? e;
|
|
1200
|
-
y = f.signal.aborted ||
|
|
1201
|
-
error:
|
|
1200
|
+
y = f.signal.aborted || qr(r), y || q(r), _ === 0 && (!y || v === "") ? (p.items = p.items.filter((e) => e.id !== g && e.id !== h), E(u) && (u.messages.value = p.items, y || (t === "chat" && (u.failedPrompt.value = n, u.failedAttachments.value = s), u.failure.value = {
|
|
1201
|
+
error: Jr(r),
|
|
1202
1202
|
context: "turn"
|
|
1203
1203
|
})), S = {
|
|
1204
1204
|
messageId: null,
|
|
@@ -1208,7 +1208,7 @@ function Xr(e) {
|
|
|
1208
1208
|
}) : (D({
|
|
1209
1209
|
status: y ? "done" : "failed",
|
|
1210
1210
|
failure: y ? void 0 : {
|
|
1211
|
-
error:
|
|
1211
|
+
error: Jr(r),
|
|
1212
1212
|
context: "turn"
|
|
1213
1213
|
}
|
|
1214
1214
|
}), S = {
|
|
@@ -1221,10 +1221,10 @@ function Xr(e) {
|
|
|
1221
1221
|
a && S.messageId !== null && _ > 0 && (S.failed || y) && O();
|
|
1222
1222
|
let r;
|
|
1223
1223
|
do
|
|
1224
|
-
if (r = _, x.serverApplied && !i && e.reload && E(u) && await
|
|
1225
|
-
E(u) &&
|
|
1224
|
+
if (r = _, x.serverApplied && !i && e.reload && E(u) && await G(d, !0).catch((e) => {
|
|
1225
|
+
E(u) && q(e);
|
|
1226
1226
|
}), a && p.recoveries.has(m) && E(u)) {
|
|
1227
|
-
await
|
|
1227
|
+
await me(d, !0, !0);
|
|
1228
1228
|
let e = p.recoveries.get(m);
|
|
1229
1229
|
e && (S.messageId = e.item.id, S.text = e.item.text);
|
|
1230
1230
|
}
|
|
@@ -1233,29 +1233,29 @@ function Xr(e) {
|
|
|
1233
1233
|
} finally {
|
|
1234
1234
|
w = !0, u.messages.value = p.items;
|
|
1235
1235
|
}
|
|
1236
|
-
},
|
|
1236
|
+
}, le);
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function de(t, n) {
|
|
1239
1239
|
let s = T();
|
|
1240
|
-
return !s || s.busy.value ? Promise.resolve() :
|
|
1240
|
+
return !s || s.busy.value ? Promise.resolve() : V("replay", s, async (c) => {
|
|
1241
1241
|
let l = s.memory, u = l.items.find((e) => e.id === t);
|
|
1242
1242
|
if (!u) return;
|
|
1243
1243
|
let d = a?.[n], f = l.records.get(t);
|
|
1244
1244
|
try {
|
|
1245
|
-
if (
|
|
1246
|
-
if (typeof d != "function") throw new
|
|
1245
|
+
if (U(c), l.storedIds.has(t)) {
|
|
1246
|
+
if (typeof d != "function") throw new Z(`This AI backend does not support ${n}.`, 403, "feature_unavailable");
|
|
1247
1247
|
if (u.undone !== (n === "redo")) return;
|
|
1248
|
-
let r = await
|
|
1248
|
+
let r = await W(d(s.id, t, { sessionId: i ? i.core.sessionId : o }), s.lifetime.signal);
|
|
1249
1249
|
if (!E(s)) return;
|
|
1250
1250
|
if ("operations" in r) {
|
|
1251
1251
|
if (c.controller.signal.aborted) return;
|
|
1252
|
-
let e =
|
|
1253
|
-
e.applied &&
|
|
1252
|
+
let e = ae(r.operations, `${n}:${t}:${crypto.randomUUID()}`, s, u.locale ?? null);
|
|
1253
|
+
e.applied && se(s, t, {
|
|
1254
1254
|
undone: n === "undo",
|
|
1255
1255
|
failure: void 0
|
|
1256
1256
|
});
|
|
1257
1257
|
try {
|
|
1258
|
-
await
|
|
1258
|
+
await W(a.settleReplay(s.id, t, {
|
|
1259
1259
|
replayId: r.replayId,
|
|
1260
1260
|
direction: n,
|
|
1261
1261
|
applied: e.applied,
|
|
@@ -1263,52 +1263,52 @@ function Xr(e) {
|
|
|
1263
1263
|
}), s.lifetime.signal);
|
|
1264
1264
|
} catch (e) {
|
|
1265
1265
|
if (!E(s)) return;
|
|
1266
|
-
|
|
1267
|
-
error:
|
|
1266
|
+
q(e), se(s, t, { failure: {
|
|
1267
|
+
error: Jr(e),
|
|
1268
1268
|
context: n
|
|
1269
1269
|
} });
|
|
1270
1270
|
}
|
|
1271
1271
|
if (!E(s)) return;
|
|
1272
|
-
if (!e.applied) throw new
|
|
1272
|
+
if (!e.applied) throw new we(e.message, {
|
|
1273
1273
|
code: e.code,
|
|
1274
1274
|
opIndex: e.opIndex
|
|
1275
1275
|
});
|
|
1276
1276
|
return;
|
|
1277
1277
|
}
|
|
1278
|
-
if (
|
|
1278
|
+
if (se(s, t, {
|
|
1279
1279
|
undone: n === "undo",
|
|
1280
1280
|
failure: void 0
|
|
1281
|
-
}), i)
|
|
1282
|
-
else if (e.reload) await
|
|
1283
|
-
else throw new
|
|
1281
|
+
}), i) oe(r.applied.revision, s);
|
|
1282
|
+
else if (e.reload) await G(c, !0);
|
|
1283
|
+
else throw new Z(vn, 502, "ai_provider_error");
|
|
1284
1284
|
return;
|
|
1285
1285
|
}
|
|
1286
1286
|
{
|
|
1287
1287
|
if (u.undone !== (n === "redo")) return;
|
|
1288
1288
|
let e = n === "undo" ? f?.inverse : f?.redo;
|
|
1289
1289
|
if (!f || f.serverApplied || !e || e.length === 0) return;
|
|
1290
|
-
if (i && e.some((e) => e.op === "setContent") && (!f.view || !
|
|
1291
|
-
let a =
|
|
1292
|
-
if (!a.applied) throw new
|
|
1290
|
+
if (i && e.some((e) => e.op === "setContent") && (!f.view || !_e(f.view, N(r.content.value)))) throw new we(`The template changed since this message's changes, so ${n === "undo" ? "undoing" : "redoing"} them would overwrite that.`, { code: "precondition_failed" });
|
|
1291
|
+
let a = ie(e, `${n}:${t}:${crypto.randomUUID()}`, s);
|
|
1292
|
+
if (!a.applied) throw new we(a.message, {
|
|
1293
1293
|
code: a.code,
|
|
1294
1294
|
opIndex: a.opIndex
|
|
1295
1295
|
});
|
|
1296
|
-
n === "undo" ? f.redo = a.inverse : f.inverse = a.inverse, i && (f.view =
|
|
1296
|
+
n === "undo" ? f.redo = a.inverse : f.inverse = a.inverse, i && (f.view = Kr(r.content.value));
|
|
1297
1297
|
}
|
|
1298
|
-
|
|
1298
|
+
se(s, t, {
|
|
1299
1299
|
undone: n === "undo",
|
|
1300
1300
|
failure: void 0
|
|
1301
1301
|
});
|
|
1302
1302
|
} catch (e) {
|
|
1303
|
-
if (!E(s) ||
|
|
1304
|
-
|
|
1305
|
-
error:
|
|
1303
|
+
if (!E(s) || qr(e)) return;
|
|
1304
|
+
q(e), se(s, t, { failure: {
|
|
1305
|
+
error: Jr(e),
|
|
1306
1306
|
context: n
|
|
1307
1307
|
} });
|
|
1308
1308
|
}
|
|
1309
1309
|
}, () => {});
|
|
1310
1310
|
}
|
|
1311
|
-
function
|
|
1311
|
+
function fe(e, t) {
|
|
1312
1312
|
let n = {
|
|
1313
1313
|
id: e.id,
|
|
1314
1314
|
role: e.role,
|
|
@@ -1316,7 +1316,7 @@ function Xr(e) {
|
|
|
1316
1316
|
locale: e.locale,
|
|
1317
1317
|
text: e.text,
|
|
1318
1318
|
attachments: e.attachments ?? [],
|
|
1319
|
-
operationCount:
|
|
1319
|
+
operationCount: Yr(e),
|
|
1320
1320
|
undone: e.undone,
|
|
1321
1321
|
canUndo: !1,
|
|
1322
1322
|
canRedo: !1,
|
|
@@ -1325,13 +1325,13 @@ function Xr(e) {
|
|
|
1325
1325
|
};
|
|
1326
1326
|
return {
|
|
1327
1327
|
...n,
|
|
1328
|
-
...
|
|
1328
|
+
...ce(n, t)
|
|
1329
1329
|
};
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function pe(e, t) {
|
|
1332
1332
|
for (let n of e) t.storedIds.add(n.id);
|
|
1333
1333
|
let n = new Map(t.items.map((e) => [e.id, e])), r = e.map((e) => {
|
|
1334
|
-
let r =
|
|
1334
|
+
let r = fe(e, t), i = n.get(r.id);
|
|
1335
1335
|
return i?.status === "failed" ? {
|
|
1336
1336
|
...r,
|
|
1337
1337
|
status: i.status,
|
|
@@ -1343,19 +1343,19 @@ function Xr(e) {
|
|
|
1343
1343
|
if (s) {
|
|
1344
1344
|
t.records.delete(i.id), t.records.set(s.id, a);
|
|
1345
1345
|
let e = {
|
|
1346
|
-
...
|
|
1346
|
+
...fe(s, t),
|
|
1347
1347
|
status: i.status,
|
|
1348
1348
|
failure: i.failure
|
|
1349
1349
|
};
|
|
1350
1350
|
n.item = e, r = r.map((t) => t.id === s.id ? e : t);
|
|
1351
1351
|
} else n.user && !r.some((e) => e.id === n.user.id) && r.push(n.user), r.push({
|
|
1352
1352
|
...i,
|
|
1353
|
-
...
|
|
1353
|
+
...ce(i, t)
|
|
1354
1354
|
});
|
|
1355
1355
|
}
|
|
1356
1356
|
return r;
|
|
1357
1357
|
}
|
|
1358
|
-
async function
|
|
1358
|
+
async function me(e, t = !1, n = !1, r = e.scope.historyGeneration) {
|
|
1359
1359
|
let { scope: i } = e;
|
|
1360
1360
|
if (!E(i) || r !== i.historyGeneration || !n && e.controller.signal.aborted || !t && i.loaded) return;
|
|
1361
1361
|
let o = i.memory;
|
|
@@ -1363,13 +1363,13 @@ function Xr(e) {
|
|
|
1363
1363
|
else {
|
|
1364
1364
|
i.isLoadingHistory.value = !0, i.loaded = !1;
|
|
1365
1365
|
try {
|
|
1366
|
-
await
|
|
1367
|
-
!l && o.generation === i.generation && r === i.historyGeneration && (n || E(i) && !e.controller.signal.aborted) && (o.items =
|
|
1366
|
+
await W(a.list(i.id).then((t) => {
|
|
1367
|
+
!l && o.generation === i.generation && r === i.historyGeneration && (n || E(i) && !e.controller.signal.aborted) && (o.items = pe(t, o), i.messages.value = o.items, i.loaded = !0, i.failure.value?.context === "history" && (i.failure.value = null));
|
|
1368
1368
|
}), n ? i.lifetime.signal : e.controller.signal);
|
|
1369
1369
|
} catch (e) {
|
|
1370
|
-
if (!E(i) || r !== i.historyGeneration ||
|
|
1371
|
-
|
|
1372
|
-
error:
|
|
1370
|
+
if (!E(i) || r !== i.historyGeneration || qr(e)) return;
|
|
1371
|
+
q(e), i.failure.value = {
|
|
1372
|
+
error: Jr(e),
|
|
1373
1373
|
context: "history"
|
|
1374
1374
|
};
|
|
1375
1375
|
} finally {
|
|
@@ -1377,7 +1377,7 @@ function Xr(e) {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1380
|
+
function he(e = T()) {
|
|
1381
1381
|
if (!e || !E(e)) return Promise.resolve();
|
|
1382
1382
|
if (e.pendingHistory?.generation === e.historyGeneration) return e.pendingHistory.promise;
|
|
1383
1383
|
if (e.loaded) return Promise.resolve();
|
|
@@ -1385,52 +1385,52 @@ function Xr(e) {
|
|
|
1385
1385
|
generation: t,
|
|
1386
1386
|
promise: Promise.resolve()
|
|
1387
1387
|
};
|
|
1388
|
-
return n.promise =
|
|
1388
|
+
return n.promise = V("history", e, (e) => me(e, !1, !1, t), () => {}).finally(() => {
|
|
1389
1389
|
e.pendingHistory === n && (e.pendingHistory = null);
|
|
1390
1390
|
}), e.pendingHistory = n, n.promise;
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1392
|
+
function ge() {
|
|
1393
1393
|
let e = T();
|
|
1394
|
-
return !e || a && typeof a.clear != "function" || e.active && e.active.kind !== "history" && e.active.kind !== "read" || e.queue.some((e) => e.kind !== "history" && e.kind !== "read") ? Promise.resolve() : (
|
|
1394
|
+
return !e || a && typeof a.clear != "function" || e.active && e.active.kind !== "history" && e.active.kind !== "read" || e.queue.some((e) => e.kind !== "history" && e.kind !== "read") ? Promise.resolve() : (B(e), e.active?.controller.abort(), V("clear", e, async () => {
|
|
1395
1395
|
try {
|
|
1396
1396
|
if (a && typeof a.clear == "function" && await a.clear(e.id), e.memory.generation !== e.generation) return;
|
|
1397
|
-
c.delete(e.id), e.memory.items = [], e.memory.records.clear(), e.memory.storedIds.clear(), e.memory.recoveries.clear(),
|
|
1397
|
+
c.delete(e.id), e.memory.items = [], e.memory.records.clear(), e.memory.storedIds.clear(), e.memory.recoveries.clear(), B(e), e.messages.value = [], e.loaded = !0, e.failure.value = null, e.failedPrompt.value = null, e.failedAttachments.value = [], E(e) && c.set(e.id, e.memory);
|
|
1398
1398
|
} catch (t) {
|
|
1399
1399
|
if (!E(e)) return;
|
|
1400
|
-
|
|
1401
|
-
error:
|
|
1400
|
+
q(t), e.failure.value = {
|
|
1401
|
+
error: Jr(t),
|
|
1402
1402
|
context: "history"
|
|
1403
1403
|
};
|
|
1404
1404
|
}
|
|
1405
1405
|
}, () => {}));
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1408
|
-
E(e) &&
|
|
1407
|
+
function ve(e) {
|
|
1408
|
+
E(e) && he(e);
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function ye(t) {
|
|
1411
1411
|
let n = T();
|
|
1412
|
-
n && E(n) && (s.value !== t && n.busy.value &&
|
|
1412
|
+
n && E(n) && (s.value !== t && n.busy.value && Ce(), s.value = t, e.commentsOpen && (e.commentsOpen.value = !1), t === "chat" && ve(n));
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1415
|
-
e.length !== 0 && w("chatAttachments") && (z.value = [...e],
|
|
1414
|
+
function be(e) {
|
|
1415
|
+
e.length !== 0 && w("chatAttachments") && (z.value = [...e], ye("chat"));
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function xe(e) {
|
|
1418
1418
|
e.active?.controller.abort();
|
|
1419
1419
|
for (let t of e.queue) t.kind !== "reconcile" && t.controller.abort();
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1422
|
-
e.lifetime.abort(),
|
|
1421
|
+
function Se(e) {
|
|
1422
|
+
e.lifetime.abort(), xe(e), e.busy.value = !1, e.isLoadingHistory.value = !1;
|
|
1423
1423
|
for (let t of e.timers) clearTimeout(t);
|
|
1424
1424
|
e.timers.clear();
|
|
1425
1425
|
}
|
|
1426
|
-
function
|
|
1426
|
+
function Ce() {
|
|
1427
1427
|
let e = T();
|
|
1428
|
-
e &&
|
|
1428
|
+
e && xe(e);
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1431
|
-
|
|
1430
|
+
function Te() {
|
|
1431
|
+
Ce(), s.value = null;
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function De() {
|
|
1434
1434
|
if (l) return;
|
|
1435
1435
|
p?.();
|
|
1436
1436
|
let e = f === 0, n = () => t(r.content, () => {
|
|
@@ -1442,31 +1442,31 @@ function Xr(e) {
|
|
|
1442
1442
|
});
|
|
1443
1443
|
p = m?.active ? m.run(n) : n();
|
|
1444
1444
|
}
|
|
1445
|
-
|
|
1446
|
-
let
|
|
1445
|
+
De();
|
|
1446
|
+
let Oe = [() => p?.(), t(() => r.state.isDirty, (e, t) => {
|
|
1447
1447
|
t === !0 && e === !1 && r.state.isSaving && (I.value = !1);
|
|
1448
1448
|
}, { flush: "sync" })];
|
|
1449
|
-
e.commentsOpen &&
|
|
1450
|
-
e &&
|
|
1451
|
-
})),
|
|
1449
|
+
e.commentsOpen && Oe.push(t(e.commentsOpen, (e) => {
|
|
1450
|
+
e && Te();
|
|
1451
|
+
})), Oe.push(t(() => r.loadVersion?.value ?? g.value, () => {
|
|
1452
1452
|
if (l) return;
|
|
1453
1453
|
let e = _.value;
|
|
1454
1454
|
if (e?.committingReload && E(e)) {
|
|
1455
1455
|
e.committingReload = !1;
|
|
1456
1456
|
return;
|
|
1457
1457
|
}
|
|
1458
|
-
e &&
|
|
1458
|
+
e && Se(e);
|
|
1459
1459
|
let t = g.value, n = t === null ? null : h(t);
|
|
1460
|
-
_.value = n, n && s.value === "chat" &&
|
|
1460
|
+
_.value = n, n && s.value === "chat" && ve(n);
|
|
1461
1461
|
}, { flush: "sync" }));
|
|
1462
|
-
async function
|
|
1462
|
+
async function Ae(t, a) {
|
|
1463
1463
|
let s = b, c = T(), l = n.altText, u = new AbortController(), d = () => u.abort(a?.reason), f = () => u.abort();
|
|
1464
1464
|
try {
|
|
1465
|
-
if (a?.throwIfAborted(), !c || typeof l != "function") throw new
|
|
1466
|
-
let n = N(r.content.value), p = r.activeLocale?.value ?? null, m =
|
|
1467
|
-
if (!h) throw new
|
|
1465
|
+
if (a?.throwIfAborted(), !c || typeof l != "function") throw new Z("This AI feature isn't available.", 403, "feature_unavailable");
|
|
1466
|
+
let n = N(r.content.value), p = r.activeLocale?.value ?? null, m = X(n, p ?? Q(n)), h = bn(m, t);
|
|
1467
|
+
if (!h) throw new Z("The image is no longer available.", 409, "block_missing");
|
|
1468
1468
|
a?.addEventListener("abort", d, { once: !0 }), c.lifetime.signal.addEventListener("abort", f, { once: !0 });
|
|
1469
|
-
let { url: g, ..._ } = h, v = await
|
|
1469
|
+
let { url: g, ..._ } = h, v = await W(l({
|
|
1470
1470
|
templateId: c.id,
|
|
1471
1471
|
sessionId: i ? i.core.sessionId : o,
|
|
1472
1472
|
blockId: t,
|
|
@@ -1478,18 +1478,18 @@ function Xr(e) {
|
|
|
1478
1478
|
if (u.signal.throwIfAborted(), C(s), !E(c)) throw new DOMException("The template changed.", "AbortError");
|
|
1479
1479
|
return v.alt;
|
|
1480
1480
|
} catch (e) {
|
|
1481
|
-
throw
|
|
1481
|
+
throw q(e), e;
|
|
1482
1482
|
} finally {
|
|
1483
1483
|
a?.removeEventListener("abort", d), c?.lifetime.signal.removeEventListener("abort", f);
|
|
1484
1484
|
}
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1486
|
+
function je(e) {
|
|
1487
1487
|
let t = b, n = T();
|
|
1488
1488
|
if (!n || e.length === 0) return Promise.resolve();
|
|
1489
|
-
let i = r.activeLocale?.value ?? null, a = N(r.content.value), o =
|
|
1489
|
+
let i = r.activeLocale?.value ?? null, a = N(r.content.value), o = X(a, i ?? Q(a)), s = e.map(({ blockId: e, alt: t, decorative: n, expect: r }) => ({
|
|
1490
1490
|
op: "updateBlock",
|
|
1491
1491
|
blockId: e,
|
|
1492
|
-
expect: { ...r ??
|
|
1492
|
+
expect: { ...r ?? yn(o, e) ?? {
|
|
1493
1493
|
src: null,
|
|
1494
1494
|
alt: null,
|
|
1495
1495
|
decorative: null
|
|
@@ -1499,33 +1499,33 @@ function Xr(e) {
|
|
|
1499
1499
|
decorative: n
|
|
1500
1500
|
}
|
|
1501
1501
|
}));
|
|
1502
|
-
return
|
|
1502
|
+
return V("replay", n, async (e) => {
|
|
1503
1503
|
try {
|
|
1504
|
-
|
|
1504
|
+
U(e), C(t);
|
|
1505
1505
|
let r = crypto.randomUUID();
|
|
1506
1506
|
for (let t = 0; t < s.length; t += 100) {
|
|
1507
|
-
|
|
1508
|
-
let a =
|
|
1509
|
-
if (!a.applied) throw new
|
|
1507
|
+
U(e);
|
|
1508
|
+
let a = ae(s.slice(t, t + 100), r, n, i);
|
|
1509
|
+
if (!a.applied) throw new we(a.message, {
|
|
1510
1510
|
code: a.code,
|
|
1511
1511
|
opIndex: a.opIndex
|
|
1512
1512
|
});
|
|
1513
1513
|
}
|
|
1514
1514
|
} catch (e) {
|
|
1515
|
-
throw
|
|
1515
|
+
throw q(e), e;
|
|
1516
1516
|
}
|
|
1517
1517
|
}, () => {});
|
|
1518
1518
|
}
|
|
1519
1519
|
return {
|
|
1520
1520
|
capability: {
|
|
1521
1521
|
isFeatureEnabled: (e) => v.value && w(e),
|
|
1522
|
-
open:
|
|
1523
|
-
startImport:
|
|
1522
|
+
open: ye,
|
|
1523
|
+
startImport: be,
|
|
1524
1524
|
highlightOf: (e) => _.value?.highlights.value.get(e) ?? null
|
|
1525
1525
|
},
|
|
1526
1526
|
panel: s,
|
|
1527
|
-
open:
|
|
1528
|
-
close:
|
|
1527
|
+
open: ye,
|
|
1528
|
+
close: Te,
|
|
1529
1529
|
has: w,
|
|
1530
1530
|
templateId: g,
|
|
1531
1531
|
sessionIdentity: y(() => _.value),
|
|
@@ -1541,19 +1541,19 @@ function Xr(e) {
|
|
|
1541
1541
|
keptYourVersion: I,
|
|
1542
1542
|
reloadTemplate: () => {
|
|
1543
1543
|
let e = T();
|
|
1544
|
-
return e ?
|
|
1544
|
+
return e ? V("reconcile", e, (e) => G(e), () => {}) : Promise.resolve();
|
|
1545
1545
|
},
|
|
1546
1546
|
failedPrompt: L,
|
|
1547
1547
|
failedAttachments: R,
|
|
1548
1548
|
importQueue: z,
|
|
1549
|
-
startImport:
|
|
1549
|
+
startImport: be,
|
|
1550
1550
|
isTemplateEmpty: k,
|
|
1551
1551
|
send: (e, t = []) => {
|
|
1552
1552
|
let r = n.chat;
|
|
1553
|
-
return typeof r == "function" ?
|
|
1553
|
+
return typeof r == "function" ? ue("chat", e, (n, i, a) => r({
|
|
1554
1554
|
...n,
|
|
1555
1555
|
message: e,
|
|
1556
|
-
selectedBlockId:
|
|
1556
|
+
selectedBlockId: re(),
|
|
1557
1557
|
attachments: t.map((e) => ({
|
|
1558
1558
|
file: e,
|
|
1559
1559
|
name: e.name,
|
|
@@ -1568,7 +1568,7 @@ function Xr(e) {
|
|
|
1568
1568
|
},
|
|
1569
1569
|
fix: (e) => {
|
|
1570
1570
|
let t = n.fixFinding;
|
|
1571
|
-
return typeof t == "function" ?
|
|
1571
|
+
return typeof t == "function" ? ue("fix", `Fix: ${e.message}`, (n, r, i) => t({
|
|
1572
1572
|
...n,
|
|
1573
1573
|
finding: e
|
|
1574
1574
|
}, r, i)) : Promise.resolve({
|
|
@@ -1578,26 +1578,26 @@ function Xr(e) {
|
|
|
1578
1578
|
failed: !0
|
|
1579
1579
|
});
|
|
1580
1580
|
},
|
|
1581
|
-
stop:
|
|
1582
|
-
newChat:
|
|
1583
|
-
undoMessage: (e) =>
|
|
1584
|
-
redoMessage: (e) =>
|
|
1581
|
+
stop: Ce,
|
|
1582
|
+
newChat: ge,
|
|
1583
|
+
undoMessage: (e) => de(e, "undo"),
|
|
1584
|
+
redoMessage: (e) => de(e, "redo"),
|
|
1585
1585
|
rewrite: (e, t, r) => {
|
|
1586
1586
|
let i = b, a = T(), o = n.rewrite;
|
|
1587
|
-
return !a || typeof o != "function" ? Promise.reject(/* @__PURE__ */ Error("Rewrite isn't available.")) :
|
|
1587
|
+
return !a || typeof o != "function" ? Promise.reject(/* @__PURE__ */ Error("Rewrite isn't available.")) : V("read", a, async (n) => {
|
|
1588
1588
|
let s = () => n.controller.abort(r.reason);
|
|
1589
1589
|
r.addEventListener("abort", s, { once: !0 });
|
|
1590
1590
|
try {
|
|
1591
|
-
r.throwIfAborted(),
|
|
1592
|
-
let s = await
|
|
1593
|
-
...
|
|
1591
|
+
r.throwIfAborted(), U(n), C(i);
|
|
1592
|
+
let s = await W(o({
|
|
1593
|
+
...ne(a.id),
|
|
1594
1594
|
...e
|
|
1595
1595
|
}, { onText: (e) => {
|
|
1596
|
-
|
|
1596
|
+
U(n), C(i), t(e);
|
|
1597
1597
|
} }, n.controller.signal), n.controller.signal);
|
|
1598
1598
|
return C(i), s;
|
|
1599
1599
|
} catch (e) {
|
|
1600
|
-
throw
|
|
1600
|
+
throw q(e), e;
|
|
1601
1601
|
} finally {
|
|
1602
1602
|
r.removeEventListener("abort", s);
|
|
1603
1603
|
}
|
|
@@ -1605,73 +1605,69 @@ function Xr(e) {
|
|
|
1605
1605
|
throw new DOMException("Rewrite stopped.", "AbortError");
|
|
1606
1606
|
});
|
|
1607
1607
|
},
|
|
1608
|
-
draftAltText:
|
|
1609
|
-
applyAltTexts:
|
|
1608
|
+
draftAltText: Ae,
|
|
1609
|
+
applyAltTexts: je,
|
|
1610
1610
|
destroy: () => {
|
|
1611
1611
|
if (l) return;
|
|
1612
1612
|
l = !0;
|
|
1613
1613
|
let e = _.value;
|
|
1614
|
-
e &&
|
|
1615
|
-
for (let e of
|
|
1616
|
-
|
|
1614
|
+
e && Se(e), _.value = null, x();
|
|
1615
|
+
for (let e of Oe) e();
|
|
1616
|
+
Oe.length = 0;
|
|
1617
1617
|
}
|
|
1618
1618
|
};
|
|
1619
1619
|
}
|
|
1620
1620
|
// src/utils/aiMergeTags.ts
|
|
1621
|
-
var
|
|
1621
|
+
var $r = {
|
|
1622
1622
|
tags: 500,
|
|
1623
1623
|
value: 200,
|
|
1624
1624
|
label: 100,
|
|
1625
1625
|
group: 100,
|
|
1626
1626
|
description: 200
|
|
1627
1627
|
};
|
|
1628
|
-
function
|
|
1628
|
+
function ei(e, t) {
|
|
1629
1629
|
let n = Array.from(e);
|
|
1630
1630
|
return n.length > t ? n.slice(0, t).join("") : e;
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1633
|
-
|
|
1634
|
-
let n = me[t];
|
|
1635
|
-
if (n.value.source === e.value.source && n.logic.source === e.logic.source) return t;
|
|
1636
|
-
}
|
|
1637
|
-
return "custom";
|
|
1632
|
+
function ti(e) {
|
|
1633
|
+
return ue(e) ?? "custom";
|
|
1638
1634
|
}
|
|
1639
|
-
function
|
|
1635
|
+
function ni(e, t) {
|
|
1640
1636
|
let n = [];
|
|
1641
1637
|
for (let t of e) {
|
|
1642
|
-
if (n.length ===
|
|
1638
|
+
if (n.length === $r.tags) break;
|
|
1643
1639
|
let e = typeof t?.value == "string" ? t.value : "";
|
|
1644
|
-
if (e === "" || Array.from(e).length >
|
|
1640
|
+
if (e === "" || Array.from(e).length > $r.value) continue;
|
|
1645
1641
|
let r = typeof t.label == "string" && t.label !== "" ? t.label : e;
|
|
1646
1642
|
n.push({
|
|
1647
1643
|
value: e,
|
|
1648
|
-
label:
|
|
1649
|
-
...typeof t.group == "string" && t.group !== "" ? { group:
|
|
1650
|
-
...typeof t.description == "string" && t.description !== "" ? { description:
|
|
1644
|
+
label: ei(r, $r.label),
|
|
1645
|
+
...typeof t.group == "string" && t.group !== "" ? { group: ei(t.group, $r.group) } : {},
|
|
1646
|
+
...typeof t.description == "string" && t.description !== "" ? { description: ei(t.description, $r.description) } : {}
|
|
1651
1647
|
});
|
|
1652
1648
|
}
|
|
1653
1649
|
return {
|
|
1654
|
-
syntax:
|
|
1650
|
+
syntax: ti(t),
|
|
1655
1651
|
tags: n
|
|
1656
1652
|
};
|
|
1657
1653
|
}
|
|
1658
1654
|
// src/composables/useMediaFeature.ts
|
|
1659
|
-
function
|
|
1655
|
+
function ri(e) {
|
|
1660
1656
|
return e instanceof Error ? e : Error(String(e));
|
|
1661
1657
|
}
|
|
1662
|
-
function
|
|
1658
|
+
function ii(e, t, n) {
|
|
1663
1659
|
let r = e.maxFileSize ?? Infinity;
|
|
1664
1660
|
if (t.size > r) return /* @__PURE__ */ Error(`Image is too large (${t.size} bytes). Maximum allowed is ${r} bytes.`);
|
|
1665
1661
|
let i = e.mimeTypes;
|
|
1666
1662
|
return !i || (n && n.length > 0 ? n : Object.keys(i)).some((e) => i[e]?.includes(t.type) ?? !1) ? null : /* @__PURE__ */ Error(`Unsupported image type: ${t.type || "unknown"}.`);
|
|
1667
1663
|
}
|
|
1668
|
-
function
|
|
1664
|
+
function ai(e) {
|
|
1669
1665
|
let { provider: t, onRequestMedia: n, getTemplateId: r, onError: i } = e, a = S(!1), o = S(void 0), s = y(() => r?.()), c = y(() => !!n || typeof t?.create == "function"), l = null;
|
|
1670
1666
|
function u(e) {
|
|
1671
1667
|
a.value = !1, l?.(e), l = null;
|
|
1672
1668
|
}
|
|
1673
1669
|
function d(e) {
|
|
1674
|
-
u(
|
|
1670
|
+
u(oi(e));
|
|
1675
1671
|
}
|
|
1676
1672
|
function f() {
|
|
1677
1673
|
u(null);
|
|
@@ -1684,7 +1680,7 @@ function ri(e) {
|
|
|
1684
1680
|
if (!t) return null;
|
|
1685
1681
|
if (e?.files?.length) {
|
|
1686
1682
|
if (typeof t.create != "function") return null;
|
|
1687
|
-
let n = e.files[0], a =
|
|
1683
|
+
let n = e.files[0], a = ii(t, n, e.accept);
|
|
1688
1684
|
if (a) return i?.(a), null;
|
|
1689
1685
|
let o = r?.();
|
|
1690
1686
|
try {
|
|
@@ -1695,11 +1691,11 @@ function ri(e) {
|
|
|
1695
1691
|
try {
|
|
1696
1692
|
t.onCreated?.(e);
|
|
1697
1693
|
} catch (e) {
|
|
1698
|
-
i?.(
|
|
1694
|
+
i?.(ri(e));
|
|
1699
1695
|
}
|
|
1700
|
-
return
|
|
1696
|
+
return oi(e);
|
|
1701
1697
|
} catch (e) {
|
|
1702
|
-
return i?.(
|
|
1698
|
+
return i?.(ri(e)), null;
|
|
1703
1699
|
}
|
|
1704
1700
|
}
|
|
1705
1701
|
return l &&= (l(null), null), o.value = e?.accept, a.value = !0, new Promise((e) => {
|
|
@@ -1715,8 +1711,8 @@ function ri(e) {
|
|
|
1715
1711
|
onError: i
|
|
1716
1712
|
};
|
|
1717
1713
|
}
|
|
1718
|
-
function
|
|
1719
|
-
let t =
|
|
1714
|
+
function oi(e) {
|
|
1715
|
+
let t = re(e.width, e.height);
|
|
1720
1716
|
return {
|
|
1721
1717
|
url: e.url,
|
|
1722
1718
|
alt: e.alt,
|
|
@@ -1727,8 +1723,8 @@ function ii(e) {
|
|
|
1727
1723
|
};
|
|
1728
1724
|
}
|
|
1729
1725
|
// src/composables/useSavedBlocksFeature.ts
|
|
1730
|
-
function
|
|
1731
|
-
let { provider: n, editor: r } = e, i =
|
|
1726
|
+
function si(e) {
|
|
1727
|
+
let { provider: n, editor: r } = e, i = ne({
|
|
1732
1728
|
provider: n,
|
|
1733
1729
|
onError: e.onError
|
|
1734
1730
|
}), a = S(!1), o = S(!1), s = S(!1), c = S(/* @__PURE__ */ new Set()), u = y(() => s.value), d = y(() => c.value.size);
|
|
@@ -1763,7 +1759,7 @@ function ai(e) {
|
|
|
1763
1759
|
}
|
|
1764
1760
|
function x(e, t) {
|
|
1765
1761
|
for (let n = 0; n < e.content.length; n++) {
|
|
1766
|
-
let i =
|
|
1762
|
+
let i = me(e.content[n]), a = t === void 0 ? void 0 : t + n;
|
|
1767
1763
|
r.addBlock(i, void 0, void 0, a);
|
|
1768
1764
|
}
|
|
1769
1765
|
o.value = !1;
|
|
@@ -1772,7 +1768,7 @@ function ai(e) {
|
|
|
1772
1768
|
i.load().catch(() => {});
|
|
1773
1769
|
}
|
|
1774
1770
|
let w = y(() => i.savedBlocks.value.length), T = y(() => e.isAvailable?.() ?? !0);
|
|
1775
|
-
return l(
|
|
1771
|
+
return l(tt, i), {
|
|
1776
1772
|
headless: i,
|
|
1777
1773
|
isPicking: u,
|
|
1778
1774
|
pickedIds: c,
|
|
@@ -1808,11 +1804,11 @@ function ai(e) {
|
|
|
1808
1804
|
};
|
|
1809
1805
|
}
|
|
1810
1806
|
// src/composables/useTemplatesFeature.ts
|
|
1811
|
-
var
|
|
1812
|
-
function
|
|
1813
|
-
let { provider: t, editor: n } = e, r = S("idle"), i = S(""), { start: a, stop: o } =
|
|
1807
|
+
var ci = 3e3;
|
|
1808
|
+
function li(e) {
|
|
1809
|
+
let { provider: t, editor: n } = e, r = S("idle"), i = S(""), { start: a, stop: o } = Hn(() => {
|
|
1814
1810
|
r.value = "idle";
|
|
1815
|
-
},
|
|
1811
|
+
}, ci, { immediate: !1 }), s = y(() => typeof t.create == "function"), c = y(() => typeof t.save == "function"), l = y(() => e.isAvailable?.() ?? !0), u = y(() => n.state.template?.name), d = y(() => {
|
|
1816
1812
|
let e = n.state.template;
|
|
1817
1813
|
return e?.updatedAt ? {
|
|
1818
1814
|
iso: e.updatedAt,
|
|
@@ -1876,7 +1872,7 @@ function si(e) {
|
|
|
1876
1872
|
let t = e.trim();
|
|
1877
1873
|
t && t !== n.state.template?.name && (n.setName(t), w("rename"));
|
|
1878
1874
|
}
|
|
1879
|
-
return e.guardUnsavedChanges !== !1 &&
|
|
1875
|
+
return e.guardUnsavedChanges !== !1 && En(window, "beforeunload", (e) => {
|
|
1880
1876
|
n.state.isDirty && (e.preventDefault(), e.returnValue = "");
|
|
1881
1877
|
}), {
|
|
1882
1878
|
save: g,
|
|
@@ -1910,15 +1906,15 @@ function si(e) {
|
|
|
1910
1906
|
};
|
|
1911
1907
|
}
|
|
1912
1908
|
// src/utils/toMjml.ts
|
|
1913
|
-
async function
|
|
1909
|
+
async function ui() {
|
|
1914
1910
|
try {
|
|
1915
1911
|
return await import("@templatical/renderer");
|
|
1916
1912
|
} catch {
|
|
1917
1913
|
return null;
|
|
1918
1914
|
}
|
|
1919
1915
|
}
|
|
1920
|
-
async function
|
|
1921
|
-
let n = await
|
|
1916
|
+
async function di(e, t) {
|
|
1917
|
+
let n = await ui();
|
|
1922
1918
|
if (!n) throw Error("[Templatical] toMjml() requires the @templatical/renderer package. Please install it.");
|
|
1923
1919
|
let r = e.getCustomBlockStylesheet, i = e.getFonts?.(), a = e.getLayout?.();
|
|
1924
1920
|
return n.renderToMjml(e.getContent(), {
|
|
@@ -1934,11 +1930,11 @@ async function li(e, t) {
|
|
|
1934
1930
|
});
|
|
1935
1931
|
}
|
|
1936
1932
|
// src/composables/useTestEmailFeature.ts
|
|
1937
|
-
var
|
|
1938
|
-
function
|
|
1933
|
+
var fi = 1200;
|
|
1934
|
+
function pi(e) {
|
|
1939
1935
|
return e instanceof Error ? e : Error(String(e));
|
|
1940
1936
|
}
|
|
1941
|
-
function
|
|
1937
|
+
function mi(e) {
|
|
1942
1938
|
let { provider: t } = e, n = S(!1), r = S(!1), i = S(!1), a = S(null), o = null, s = !1;
|
|
1943
1939
|
function c() {
|
|
1944
1940
|
o !== null && (clearTimeout(o), o = null);
|
|
@@ -1960,8 +1956,8 @@ function fi(e) {
|
|
|
1960
1956
|
if (t.includeMjml && e.renderMjml) try {
|
|
1961
1957
|
return await e.renderMjml();
|
|
1962
1958
|
} catch (t) {
|
|
1963
|
-
if ((e.usesLocalRenderer?.() ?? !0) && await
|
|
1964
|
-
s || (s = !0,
|
|
1959
|
+
if ((e.usesLocalRenderer?.() ?? !0) && await ui() === null) {
|
|
1960
|
+
s || (s = !0, Dn.warn("testEmail.includeMjml is set but @templatical/renderer is not installed — sending the template as JSON only. Install it to receive `payload.mjml`."));
|
|
1965
1961
|
return;
|
|
1966
1962
|
}
|
|
1967
1963
|
throw t;
|
|
@@ -1971,7 +1967,7 @@ function fi(e) {
|
|
|
1971
1967
|
try {
|
|
1972
1968
|
t.onSent?.(n);
|
|
1973
1969
|
} catch (t) {
|
|
1974
|
-
e.onError?.(
|
|
1970
|
+
e.onError?.(pi(t));
|
|
1975
1971
|
}
|
|
1976
1972
|
}
|
|
1977
1973
|
async function g(n) {
|
|
@@ -1987,9 +1983,9 @@ function fi(e) {
|
|
|
1987
1983
|
...r === void 0 ? {} : { mjml: r },
|
|
1988
1984
|
...s === void 0 ? {} : { allowedRecipients: s }
|
|
1989
1985
|
};
|
|
1990
|
-
await t.send(a), i.value = !0, o = setTimeout(p,
|
|
1986
|
+
await t.send(a), i.value = !0, o = setTimeout(p, fi), h(a);
|
|
1991
1987
|
} catch (t) {
|
|
1992
|
-
let n =
|
|
1988
|
+
let n = pi(t);
|
|
1993
1989
|
a.value = {
|
|
1994
1990
|
kind: "provider",
|
|
1995
1991
|
message: n.message
|
|
@@ -2017,8 +2013,8 @@ function fi(e) {
|
|
|
2017
2013
|
};
|
|
2018
2014
|
}
|
|
2019
2015
|
// src/composables/useVersionHistoryFeature.ts
|
|
2020
|
-
function
|
|
2021
|
-
let { provider: t, editor: n, history: r, conditionPreview: i, autoSave: a } = e, o = e.collaboration ?? null, s =
|
|
2016
|
+
function hi(e) {
|
|
2017
|
+
let { provider: t, editor: n, history: r, conditionPreview: i, autoSave: a } = e, o = e.collaboration ?? null, s = G({
|
|
2022
2018
|
provider: t,
|
|
2023
2019
|
getTemplateId: () => n.state.template?.id ?? null,
|
|
2024
2020
|
onError: e.onError
|
|
@@ -2044,7 +2040,7 @@ function pi(e) {
|
|
|
2044
2040
|
return;
|
|
2045
2041
|
}
|
|
2046
2042
|
let t = await s.resolveContent(e);
|
|
2047
|
-
f || (l.value =
|
|
2043
|
+
f || (l.value = Ne(n.content.value), a?.pause(), o?.suspend(), c.value = e, n.setContent(t, !1));
|
|
2048
2044
|
}
|
|
2049
2045
|
async function O() {
|
|
2050
2046
|
c.value && (n.state.isDirty ? u.value = !0 : await M());
|
|
@@ -2128,11 +2124,11 @@ function pi(e) {
|
|
|
2128
2124
|
};
|
|
2129
2125
|
}
|
|
2130
2126
|
// src/types/auto-save.ts
|
|
2131
|
-
function
|
|
2127
|
+
function gi(e, t) {
|
|
2132
2128
|
return e ?? t;
|
|
2133
2129
|
}
|
|
2134
2130
|
// src/utils/resolveInsertPosition.ts
|
|
2135
|
-
function
|
|
2131
|
+
function _i(e) {
|
|
2136
2132
|
let { blockType: t, selectedBlockId: n, findBlockLocation: r, isBlockLocked: i } = e;
|
|
2137
2133
|
if (!n) return {};
|
|
2138
2134
|
let a = r(n);
|
|
@@ -2149,8 +2145,8 @@ function hi(e) {
|
|
|
2149
2145
|
};
|
|
2150
2146
|
}
|
|
2151
2147
|
// src/utils/insertBlockAtSelection.ts
|
|
2152
|
-
function
|
|
2153
|
-
let { targetSectionId: n, columnIndex: r, index: i } =
|
|
2148
|
+
function vi(e, t) {
|
|
2149
|
+
let { targetSectionId: n, columnIndex: r, index: i } = _i({
|
|
2154
2150
|
blockType: t.type,
|
|
2155
2151
|
selectedBlockId: e.state.selectedBlockId,
|
|
2156
2152
|
findBlockLocation: e.findBlockLocation,
|
|
@@ -2159,7 +2155,7 @@ function gi(e, t) {
|
|
|
2159
2155
|
return e.addBlock(t, n, r, i), e.findBlockLocation(t.id) ? (e.selectBlock(t.id), !0) : !1;
|
|
2160
2156
|
}
|
|
2161
2157
|
// src/utils/withCollaborativeSave.ts
|
|
2162
|
-
function
|
|
2158
|
+
function yi(e, t, n) {
|
|
2163
2159
|
let { save: r, create: i } = e;
|
|
2164
2160
|
if (typeof r != "function") return e;
|
|
2165
2161
|
let a = /* @__PURE__ */ new Map(), o = (e) => (a.set(e.id, e.name), e);
|
|
@@ -2175,27 +2171,27 @@ function _i(e, t, n) {
|
|
|
2175
2171
|
};
|
|
2176
2172
|
}
|
|
2177
2173
|
// src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
|
|
2178
|
-
var
|
|
2174
|
+
var bi = ["aria-label"], xi = ["lang", "dir"], Si = {
|
|
2179
2175
|
key: 0,
|
|
2180
2176
|
role: "status",
|
|
2181
2177
|
"aria-busy": "true",
|
|
2182
2178
|
"data-testid": "preview-resolution-loading",
|
|
2183
2179
|
class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-6"
|
|
2184
|
-
},
|
|
2180
|
+
}, Ci = { class: "tpl:sr-only" }, wi = {
|
|
2185
2181
|
key: 1,
|
|
2186
2182
|
role: "status",
|
|
2187
2183
|
"data-testid": "preview-resolution-failed",
|
|
2188
2184
|
class: "tpl:mx-6 tpl:mt-4 tpl:rounded-md tpl:px-3 tpl:py-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg-hover)]"
|
|
2189
|
-
},
|
|
2185
|
+
}, Ti = {
|
|
2190
2186
|
key: 0,
|
|
2191
2187
|
class: "tpl-canvas-empty-content tpl:flex tpl:flex-col tpl:items-center"
|
|
2192
|
-
},
|
|
2188
|
+
}, Ei = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, Di = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, Oi = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, ki = {
|
|
2193
2189
|
key: 0,
|
|
2194
2190
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
2195
|
-
},
|
|
2191
|
+
}, Ai = {
|
|
2196
2192
|
key: 1,
|
|
2197
2193
|
class: "tpl:m-0 tpl:mt-4 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
2198
|
-
},
|
|
2194
|
+
}, ji = { class: "tpl:relative" }, Mi = /*#__PURE__*/ ze(/* @__PURE__ */ R({
|
|
2199
2195
|
__name: "Canvas",
|
|
2200
2196
|
props: {
|
|
2201
2197
|
viewport: {},
|
|
@@ -2207,65 +2203,65 @@ var vi = ["aria-label"], yi = ["lang", "dir"], bi = {
|
|
|
2207
2203
|
emits: ["select-block"],
|
|
2208
2204
|
setup(e, { emit: t }) {
|
|
2209
2205
|
let r = {
|
|
2210
|
-
section:
|
|
2211
|
-
title:
|
|
2212
|
-
paragraph:
|
|
2213
|
-
image:
|
|
2214
|
-
button:
|
|
2215
|
-
divider:
|
|
2216
|
-
spacer:
|
|
2217
|
-
html:
|
|
2218
|
-
social:
|
|
2219
|
-
menu:
|
|
2220
|
-
table:
|
|
2221
|
-
video:
|
|
2222
|
-
custom:
|
|
2223
|
-
wrapper:
|
|
2224
|
-
}, i = e, u = t, { t: p } = $(), m =
|
|
2206
|
+
section: sn,
|
|
2207
|
+
title: qt,
|
|
2208
|
+
paragraph: tn,
|
|
2209
|
+
image: Yt,
|
|
2210
|
+
button: dn,
|
|
2211
|
+
divider: un,
|
|
2212
|
+
spacer: Wt,
|
|
2213
|
+
html: Ut,
|
|
2214
|
+
social: rn,
|
|
2215
|
+
menu: Xt,
|
|
2216
|
+
table: Zt,
|
|
2217
|
+
video: on,
|
|
2218
|
+
custom: fn,
|
|
2219
|
+
wrapper: jn
|
|
2220
|
+
}, i = e, u = t, { t: p } = $(), m = _t(bt, "Canvas"), { displayBlock: _, settings: T } = Ue({
|
|
2225
2221
|
content: y(() => i.content),
|
|
2226
2222
|
activeLocale: y(() => i.previewMode ? null : m.activeLocale?.value ?? null)
|
|
2227
|
-
}), E =
|
|
2228
|
-
l(
|
|
2223
|
+
}), E = _t(it, "Canvas"), D = L(pt, null), k = L(ft, null), A = L(ot, {}), j = L(et, null), N = L(Ye, null);
|
|
2224
|
+
l(ht, y(() => i.previewMode && (j?.value ?? !1) && !N?.isConfigured));
|
|
2229
2225
|
let P = y(() => A.ai?.isFeatureEnabled("chat") ?? !1), I = y(() => P.value && (A.ai?.isFeatureEnabled("chatAttachments") ?? !1)), R = S(null);
|
|
2230
2226
|
function z() {
|
|
2231
2227
|
R.value?.click();
|
|
2232
2228
|
}
|
|
2233
|
-
function
|
|
2229
|
+
function B(e) {
|
|
2234
2230
|
let t = e.target, n = Array.from(t.files ?? []);
|
|
2235
2231
|
t.value = "", n.length && A.ai?.startImport(n);
|
|
2236
2232
|
}
|
|
2237
|
-
let
|
|
2233
|
+
let V = L(nt, null), U = y({
|
|
2238
2234
|
get: () => i.content.blocks,
|
|
2239
|
-
set: (e) =>
|
|
2240
|
-
}),
|
|
2241
|
-
function
|
|
2242
|
-
|
|
2235
|
+
set: (e) => an(m, e)
|
|
2236
|
+
}), W = y(() => se(T.value, i.viewport)), G = y(() => W.value + 192), ee = y(() => Nt(T.value, E.resolveFontFamily)), K = y(() => T.value?.locale?.trim() || void 0), q = y(() => le(T.value)), J = y(() => U.value.length === 0 && !i.previewMode), Y = S(0), te = y(() => J.value && Y.value > 0);
|
|
2237
|
+
function ne() {
|
|
2238
|
+
J.value && (Y.value += 1);
|
|
2243
2239
|
}
|
|
2244
|
-
function
|
|
2245
|
-
|
|
2240
|
+
function re() {
|
|
2241
|
+
J.value && (Y.value = Math.max(0, Y.value - 1));
|
|
2246
2242
|
}
|
|
2247
|
-
function
|
|
2248
|
-
|
|
2243
|
+
function ie() {
|
|
2244
|
+
Y.value = 0;
|
|
2249
2245
|
}
|
|
2250
2246
|
function oe(e) {
|
|
2251
2247
|
i.previewMode || A.savedBlocks?.isPicking.value || e.target === e.currentTarget && u("select-block", null);
|
|
2252
2248
|
}
|
|
2253
|
-
function
|
|
2254
|
-
return
|
|
2249
|
+
function ce(e) {
|
|
2250
|
+
return $t(e, k, r);
|
|
2255
2251
|
}
|
|
2256
|
-
function
|
|
2252
|
+
function ue(e) {
|
|
2257
2253
|
return A.collaboration?.lockOf(e) != null;
|
|
2258
2254
|
}
|
|
2259
|
-
function
|
|
2260
|
-
if (i.previewMode ||
|
|
2255
|
+
function de(e) {
|
|
2256
|
+
if (i.previewMode || ue(e)) return;
|
|
2261
2257
|
let t = A.savedBlocks;
|
|
2262
2258
|
t?.isPicking.value ? t.togglePick(e) : u("select-block", e);
|
|
2263
2259
|
}
|
|
2264
|
-
function
|
|
2260
|
+
function X(e) {
|
|
2265
2261
|
return A.savedBlocks?.isPicked(e) ?? !1;
|
|
2266
2262
|
}
|
|
2267
|
-
let
|
|
2268
|
-
function
|
|
2263
|
+
let fe = y(() => A.savedBlocks?.isPicking.value === !0);
|
|
2264
|
+
function pe(e, t) {
|
|
2269
2265
|
e.type === "custom" && m.updateBlock(e.id, {
|
|
2270
2266
|
fieldValues: t.fieldValues,
|
|
2271
2267
|
dataSourceFetched: t.dataSourceFetched
|
|
@@ -2274,11 +2270,11 @@ var vi = ["aria-label"], yi = ["lang", "dir"], bi = {
|
|
|
2274
2270
|
return (t, r) => (s(), C("div", {
|
|
2275
2271
|
class: "tpl-canvas-stage tpl:relative tpl:mx-auto tpl:flex tpl:justify-center tpl:rounded-lg",
|
|
2276
2272
|
style: f({
|
|
2277
|
-
width: `${
|
|
2273
|
+
width: `${G.value}px`,
|
|
2278
2274
|
maxWidth: "calc(100% - 4 * var(--tpl-base-size))",
|
|
2279
2275
|
minWidth: "min-content",
|
|
2280
2276
|
boxShadow: e.darkMode ? "none" : "var(--tpl-shadow-xl)",
|
|
2281
|
-
transition: b(
|
|
2277
|
+
transition: b(ae)
|
|
2282
2278
|
})
|
|
2283
2279
|
}, [O("div", {
|
|
2284
2280
|
class: "tpl-canvas-bg tpl:absolute tpl:inset-0 tpl:rounded-lg tpl:pointer-events-none",
|
|
@@ -2293,25 +2289,26 @@ var vi = ["aria-label"], yi = ["lang", "dir"], bi = {
|
|
|
2293
2289
|
"aria-label": b(p).landmarks.canvas,
|
|
2294
2290
|
class: "tpl-canvas-wrapper tpl:relative",
|
|
2295
2291
|
style: f({
|
|
2296
|
-
width: `${
|
|
2297
|
-
|
|
2292
|
+
width: `${W.value}px`,
|
|
2293
|
+
[b(Vt)]: `${W.value}px`,
|
|
2294
|
+
transition: b(ae)
|
|
2298
2295
|
})
|
|
2299
2296
|
}, [O("div", {
|
|
2300
2297
|
class: c(["tpl-canvas tpl:relative tpl:rounded-lg", {
|
|
2301
2298
|
"tpl-canvas--dark-mode": e.darkMode,
|
|
2302
2299
|
"tpl-preview-mode": e.previewMode
|
|
2303
2300
|
}]),
|
|
2304
|
-
lang:
|
|
2305
|
-
dir:
|
|
2306
|
-
style: f(
|
|
2301
|
+
lang: K.value,
|
|
2302
|
+
dir: q.value,
|
|
2303
|
+
style: f(ee.value),
|
|
2307
2304
|
onClick: oe
|
|
2308
|
-
}, [b(N)?.isInitialResolve.value ? (s(), C("div",
|
|
2305
|
+
}, [b(N)?.isInitialResolve.value ? (s(), C("div", Si, [O("span", Ci, a(b(p).previewResolution.resolving), 1), (s(), C(M, null, d(3, (e) => O("div", {
|
|
2309
2306
|
key: e,
|
|
2310
2307
|
"aria-hidden": "true",
|
|
2311
2308
|
class: "tpl-pulse tpl:h-16 tpl:rounded-md tpl:bg-[var(--tpl-bg-hover)]"
|
|
2312
|
-
})), 64))])) : b(N)?.hasFailed.value ? (s(), C("p",
|
|
2313
|
-
modelValue:
|
|
2314
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
2309
|
+
})), 64))])) : b(N)?.hasFailed.value ? (s(), C("p", wi, a(b(p).previewResolution.failed), 1)) : x("", !0), g(v(b(Kt), {
|
|
2310
|
+
modelValue: U.value,
|
|
2311
|
+
"onUpdate:modelValue": r[1] ||= (e) => U.value = e,
|
|
2315
2312
|
group: "blocks",
|
|
2316
2313
|
animation: 150,
|
|
2317
2314
|
"ghost-class": "tpl-ghost",
|
|
@@ -2324,44 +2321,44 @@ var vi = ["aria-label"], yi = ["lang", "dir"], bi = {
|
|
|
2324
2321
|
"force-fallback": !0,
|
|
2325
2322
|
class: c([
|
|
2326
2323
|
"tpl-canvas-blocks",
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2324
|
+
J.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" : "",
|
|
2325
|
+
J.value && te.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
|
|
2326
|
+
J.value && !te.value ? "tpl:border-[var(--tpl-primary)]" : ""
|
|
2330
2327
|
]),
|
|
2331
|
-
onUpdate: r[2] ||= (e) => b(
|
|
2332
|
-
onDragenter:
|
|
2333
|
-
onDragleave:
|
|
2334
|
-
onDrop:
|
|
2328
|
+
onUpdate: r[2] ||= (e) => b(an)(b(m), U.value, void 0, 0, e),
|
|
2329
|
+
onDragenter: ne,
|
|
2330
|
+
onDragleave: re,
|
|
2331
|
+
onDrop: ie
|
|
2335
2332
|
}, {
|
|
2336
|
-
default: h(() => [
|
|
2337
|
-
O("div",
|
|
2333
|
+
default: h(() => [J.value ? (s(), C("div", Ti, [
|
|
2334
|
+
O("div", Ei, [v(b(ur), {
|
|
2338
2335
|
size: 48,
|
|
2339
2336
|
"stroke-width": 1
|
|
2340
2337
|
})]),
|
|
2341
|
-
O("p",
|
|
2342
|
-
O("p",
|
|
2343
|
-
P.value ? (s(), C("p",
|
|
2338
|
+
O("p", Di, a(b(p).canvas.noBlocks), 1),
|
|
2339
|
+
O("p", Oi, a(b(p).canvas.dragHint), 1),
|
|
2340
|
+
P.value ? (s(), C("p", ki, [
|
|
2344
2341
|
w(a(b(p).ai.canvas.chatHint) + " ", 1),
|
|
2345
2342
|
O("button", {
|
|
2346
2343
|
type: "button",
|
|
2347
2344
|
"data-testid": "canvas-ai-chat",
|
|
2348
2345
|
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)]",
|
|
2349
2346
|
onClick: r[0] ||= (e) => b(A).ai?.open("chat")
|
|
2350
|
-
}, [v(b(
|
|
2347
|
+
}, [v(b(An), {
|
|
2351
2348
|
size: 14,
|
|
2352
2349
|
"stroke-width": 2,
|
|
2353
2350
|
"aria-hidden": "true"
|
|
2354
2351
|
}), w(" " + a(b(p).ai.menu.chat), 1)]),
|
|
2355
2352
|
w(" " + a(b(p).ai.canvas.chatHintSuffix), 1)
|
|
2356
2353
|
])) : x("", !0),
|
|
2357
|
-
I.value ? (s(), C("p",
|
|
2354
|
+
I.value ? (s(), C("p", Ai, [
|
|
2358
2355
|
w(a(b(p).ai.canvas.importHint) + " ", 1),
|
|
2359
2356
|
O("button", {
|
|
2360
2357
|
type: "button",
|
|
2361
2358
|
"data-testid": "canvas-ai-import",
|
|
2362
2359
|
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)]",
|
|
2363
2360
|
onClick: z
|
|
2364
|
-
}, [v(b(
|
|
2361
|
+
}, [v(b(ir), {
|
|
2365
2362
|
size: 14,
|
|
2366
2363
|
"stroke-width": 2,
|
|
2367
2364
|
"aria-hidden": "true"
|
|
@@ -2373,29 +2370,29 @@ var vi = ["aria-label"], yi = ["lang", "dir"], bi = {
|
|
|
2373
2370
|
multiple: "",
|
|
2374
2371
|
accept: "image/png,image/jpeg,image/webp,image/gif,application/pdf",
|
|
2375
2372
|
hidden: "",
|
|
2376
|
-
onChange:
|
|
2373
|
+
onChange: B
|
|
2377
2374
|
}, null, 544)
|
|
2378
2375
|
])) : x("", !0)
|
|
2379
|
-
])) : x("", !0), (s(!0), C(M, null, d(
|
|
2376
|
+
])) : x("", !0), (s(!0), C(M, null, d(U.value, (t) => g((s(), C("div", {
|
|
2380
2377
|
key: t.id,
|
|
2381
2378
|
class: "tpl-block-item"
|
|
2382
|
-
}, [O("div",
|
|
2379
|
+
}, [O("div", ji, [t.type === "wrapper" ? (s(), F(o(ce(t)), {
|
|
2383
2380
|
key: 0,
|
|
2384
2381
|
block: t,
|
|
2385
2382
|
viewport: e.viewport
|
|
2386
|
-
}, null, 8, ["block", "viewport"])) : (s(), F(
|
|
2383
|
+
}, null, 8, ["block", "viewport"])) : (s(), F(Jt, {
|
|
2387
2384
|
key: 1,
|
|
2388
2385
|
block: t,
|
|
2389
2386
|
"display-block": b(_)(t),
|
|
2390
|
-
"is-selected": !e.previewMode && !
|
|
2391
|
-
picked:
|
|
2387
|
+
"is-selected": !e.previewMode && !fe.value && e.selectedBlockId === t.id && !ue(t.id),
|
|
2388
|
+
picked: X(t.id),
|
|
2392
2389
|
viewport: e.viewport,
|
|
2393
2390
|
"preview-mode": e.previewMode,
|
|
2394
|
-
onSelect: (e) =>
|
|
2391
|
+
onSelect: (e) => de(t.id)
|
|
2395
2392
|
}, {
|
|
2396
|
-
default: h(() => [(s(), F(o(
|
|
2393
|
+
default: h(() => [(s(), F(o(ce(t)), n({ block: b(_)(t) }, { ref_for: !0 }, t.type === "section" ? { sourceBlock: t } : {}, {
|
|
2397
2394
|
viewport: e.viewport,
|
|
2398
|
-
onFetchData: (e) =>
|
|
2395
|
+
onFetchData: (e) => pe(t, e),
|
|
2399
2396
|
onUpdate: (e) => b(m).updateBlock(t.id, e)
|
|
2400
2397
|
}), null, 16, [
|
|
2401
2398
|
"block",
|
|
@@ -2412,18 +2409,18 @@ var vi = ["aria-label"], yi = ["lang", "dir"], bi = {
|
|
|
2412
2409
|
"viewport",
|
|
2413
2410
|
"preview-mode",
|
|
2414
2411
|
"onSelect"
|
|
2415
|
-
]))])])), [[
|
|
2412
|
+
]))])])), [[H, b(V) === !1 || !b(D)?.isHidden(t.id)]])), 128))]),
|
|
2416
2413
|
_: 1
|
|
2417
2414
|
}, 8, [
|
|
2418
2415
|
"modelValue",
|
|
2419
2416
|
"disabled",
|
|
2420
2417
|
"class"
|
|
2421
|
-
]), [[
|
|
2418
|
+
]), [[H, !b(N)?.isInitialResolve.value]])], 14, xi)], 12, bi)], 4));
|
|
2422
2419
|
}
|
|
2423
|
-
}), [["__scopeId", "data-v-
|
|
2420
|
+
}), [["__scopeId", "data-v-c72f1327"]]), Ni = R({
|
|
2424
2421
|
name: "CustomBlockStylesheets",
|
|
2425
2422
|
setup() {
|
|
2426
|
-
let e = L(
|
|
2423
|
+
let e = L(ct, null);
|
|
2427
2424
|
return () => e ? e.value.map((e, t) => m("style", {
|
|
2428
2425
|
key: t,
|
|
2429
2426
|
"data-tpl-custom-block-stylesheet": "",
|
|
@@ -2432,7 +2429,7 @@ var vi = ["aria-label"], yi = ["lang", "dir"], bi = {
|
|
|
2432
2429
|
}
|
|
2433
2430
|
});
|
|
2434
2431
|
// src/utils/resolvePaletteBlocks.ts
|
|
2435
|
-
function
|
|
2432
|
+
function Pi(e, t) {
|
|
2436
2433
|
if (!t || t.length === 0) return {
|
|
2437
2434
|
items: e,
|
|
2438
2435
|
unknown: []
|
|
@@ -2450,24 +2447,24 @@ function Mi(e, t) {
|
|
|
2450
2447
|
};
|
|
2451
2448
|
}
|
|
2452
2449
|
// src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
2453
|
-
var
|
|
2450
|
+
var Fi = ["aria-label"], Ii = {
|
|
2454
2451
|
key: 0,
|
|
2455
2452
|
class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
|
|
2456
|
-
},
|
|
2453
|
+
}, Li = ["aria-label"], Ri = {
|
|
2457
2454
|
key: 0,
|
|
2458
2455
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
2459
|
-
},
|
|
2456
|
+
}, zi = [
|
|
2460
2457
|
"data-palette-type",
|
|
2461
2458
|
"aria-label",
|
|
2462
2459
|
"onClick",
|
|
2463
2460
|
"onKeydown"
|
|
2464
|
-
],
|
|
2461
|
+
], Bi = { class: "tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:transition-transform tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:scale-105" }, Vi = {
|
|
2465
2462
|
key: 0,
|
|
2466
2463
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
2467
|
-
},
|
|
2464
|
+
}, Hi = 4, Ui = /* @__PURE__ */ R({
|
|
2468
2465
|
__name: "Sidebar",
|
|
2469
2466
|
setup(e) {
|
|
2470
|
-
let { t: n, format: r } = $(), i = L(
|
|
2467
|
+
let { t: n, format: r } = $(), i = L(lt, []), c = L(Xe, void 0), l = L(at, void 0), u = L(bt, null), p = Tn(), m = L(ot, {}), g = y(() => m.savedBlocks?.isAvailable.value === !0), w = S(!1), T = S(!1), E = S(null), D = !1, k = 0;
|
|
2471
2468
|
_(() => {
|
|
2472
2469
|
window.clearTimeout(k);
|
|
2473
2470
|
});
|
|
@@ -2501,14 +2498,14 @@ var Ni = ["aria-label"], Pi = {
|
|
|
2501
2498
|
composed: !0
|
|
2502
2499
|
}));
|
|
2503
2500
|
}
|
|
2504
|
-
function
|
|
2501
|
+
function B() {
|
|
2505
2502
|
T.value = !1, E.value?.matches(":hover") ? (w.value = !0, z()) : w.value = !1, window.clearTimeout(k), k = window.setTimeout(() => {
|
|
2506
2503
|
D = !1;
|
|
2507
2504
|
}, 0);
|
|
2508
2505
|
}
|
|
2509
|
-
let
|
|
2506
|
+
let V = [
|
|
2510
2507
|
"section",
|
|
2511
|
-
|
|
2508
|
+
en,
|
|
2512
2509
|
"image",
|
|
2513
2510
|
"title",
|
|
2514
2511
|
"paragraph",
|
|
@@ -2520,41 +2517,41 @@ var Ni = ["aria-label"], Pi = {
|
|
|
2520
2517
|
"table",
|
|
2521
2518
|
"spacer",
|
|
2522
2519
|
"html"
|
|
2523
|
-
],
|
|
2524
|
-
let e =
|
|
2520
|
+
], H = y(() => {
|
|
2521
|
+
let e = V.map((e) => ({
|
|
2525
2522
|
type: e,
|
|
2526
|
-
label:
|
|
2523
|
+
label: ie(e, n)
|
|
2527
2524
|
}));
|
|
2528
2525
|
return m.plan && e.splice(-1, 0, {
|
|
2529
2526
|
type: "countdown",
|
|
2530
|
-
label:
|
|
2527
|
+
label: ie("countdown", n)
|
|
2531
2528
|
}), e;
|
|
2532
|
-
}),
|
|
2529
|
+
}), U = y(() => i.map((e) => ({
|
|
2533
2530
|
type: `custom:${e.type}`,
|
|
2534
2531
|
label: e.name,
|
|
2535
2532
|
isCustom: !0,
|
|
2536
2533
|
icon: e.icon
|
|
2537
|
-
}))),
|
|
2538
|
-
t(() =>
|
|
2539
|
-
for (let t of e)
|
|
2534
|
+
}))), W = y(() => [...H.value, ...U.value]), G = y(() => Pi(W.value, c)), ee = y(() => G.value.items), K = /* @__PURE__ */ new Set();
|
|
2535
|
+
t(() => G.value.unknown, (e) => {
|
|
2536
|
+
for (let t of e) K.has(t) || (K.add(t), Dn.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.`));
|
|
2540
2537
|
}, { immediate: !0 });
|
|
2541
|
-
function
|
|
2538
|
+
function q(e) {
|
|
2542
2539
|
if (e.isCustom) {
|
|
2543
2540
|
let t = e.type.replace("custom:", ""), n = i.find((e) => e.type === t);
|
|
2544
|
-
if (n) return
|
|
2541
|
+
if (n) return ge(n);
|
|
2545
2542
|
}
|
|
2546
|
-
return e.type === "hero" ?
|
|
2543
|
+
return e.type === "hero" ? ln(l?.value, n.blockDefaults.paragraph) : Ae(e.type, l?.value);
|
|
2547
2544
|
}
|
|
2548
|
-
function
|
|
2545
|
+
function J(e) {
|
|
2549
2546
|
if (!u) return;
|
|
2550
|
-
let t =
|
|
2551
|
-
|
|
2547
|
+
let t = q(e);
|
|
2548
|
+
vi(u, t) && p(t.id);
|
|
2552
2549
|
}
|
|
2553
|
-
function
|
|
2554
|
-
D ||
|
|
2550
|
+
function Y(e) {
|
|
2551
|
+
D || J(e);
|
|
2555
2552
|
}
|
|
2556
|
-
function
|
|
2557
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
2553
|
+
function te(e, t) {
|
|
2554
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), J(t));
|
|
2558
2555
|
}
|
|
2559
2556
|
return (e, t) => (s(), C("aside", {
|
|
2560
2557
|
ref_key: "railEl",
|
|
@@ -2572,95 +2569,95 @@ var Ni = ["aria-label"], Pi = {
|
|
|
2572
2569
|
onMouseleave: j,
|
|
2573
2570
|
onFocusin: t[2] ||= (e) => w.value = !0,
|
|
2574
2571
|
onFocusout: R
|
|
2575
|
-
}, [g.value ? (s(), C("div",
|
|
2572
|
+
}, [g.value ? (s(), C("div", Ii, [O("button", {
|
|
2576
2573
|
type: "button",
|
|
2577
2574
|
"aria-label": b(n).sidebarNav.browseSavedBlocks,
|
|
2578
2575
|
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)]",
|
|
2579
2576
|
style: f({ justifyContent: w.value ? "flex-start" : "center" }),
|
|
2580
2577
|
onClick: t[0] ||= (e) => b(m).savedBlocks?.openBrowser()
|
|
2581
|
-
}, [v(b(
|
|
2578
|
+
}, [v(b(Mn), {
|
|
2582
2579
|
size: 20,
|
|
2583
2580
|
"stroke-width": 1.5,
|
|
2584
2581
|
class: "tpl:shrink-0"
|
|
2585
|
-
}), w.value ? (s(), C("span",
|
|
2586
|
-
"model-value":
|
|
2582
|
+
}), w.value ? (s(), C("span", Ri, a(b(n).savedBlocks.title), 1)) : x("", !0)], 12, Li)])) : x("", !0), v(b(Kt), {
|
|
2583
|
+
"model-value": ee.value,
|
|
2587
2584
|
group: {
|
|
2588
2585
|
name: "blocks",
|
|
2589
2586
|
pull: "clone",
|
|
2590
2587
|
put: !1
|
|
2591
2588
|
},
|
|
2592
|
-
clone:
|
|
2589
|
+
clone: q,
|
|
2593
2590
|
sort: !1,
|
|
2594
2591
|
animation: 150,
|
|
2595
2592
|
"force-fallback": !0,
|
|
2596
|
-
"fallback-tolerance":
|
|
2593
|
+
"fallback-tolerance": Hi,
|
|
2597
2594
|
class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl:gap-0.5 tpl:overflow-y-auto tpl:p-1",
|
|
2598
2595
|
onChoose: N,
|
|
2599
2596
|
onStart: I,
|
|
2600
2597
|
onUnchoose: P,
|
|
2601
|
-
onEnd:
|
|
2598
|
+
onEnd: B
|
|
2602
2599
|
}, {
|
|
2603
|
-
default: h(() => [(s(!0), C(M, null, d(
|
|
2600
|
+
default: h(() => [(s(!0), C(M, null, d(ee.value, (e) => (s(), C("button", {
|
|
2604
2601
|
key: e.type,
|
|
2605
2602
|
type: "button",
|
|
2606
2603
|
"data-palette-type": e.type,
|
|
2607
2604
|
"aria-label": b(r)(b(n).sidebarNav.insertBlock, { block: e.label }),
|
|
2608
2605
|
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",
|
|
2609
2606
|
style: f({ justifyContent: w.value ? "flex-start" : "center" }),
|
|
2610
|
-
onClick: (t) =>
|
|
2611
|
-
onKeydown: (t) =>
|
|
2612
|
-
}, [O("div",
|
|
2607
|
+
onClick: (t) => Y(e),
|
|
2608
|
+
onKeydown: (t) => te(t, e)
|
|
2609
|
+
}, [O("div", Bi, [b(Nn)[e.type] ? (s(), F(o(b(Nn)[e.type]), {
|
|
2613
2610
|
key: 0,
|
|
2614
2611
|
size: 20,
|
|
2615
2612
|
"stroke-width": 1.5
|
|
2616
|
-
})) : e.isCustom ? (s(), F(
|
|
2613
|
+
})) : e.isCustom ? (s(), F(Gt, {
|
|
2617
2614
|
key: 1,
|
|
2618
2615
|
icon: e.icon,
|
|
2619
2616
|
size: 20
|
|
2620
|
-
}, null, 8, ["icon"])) : x("", !0)]), w.value ? (s(), C("span",
|
|
2617
|
+
}, null, 8, ["icon"])) : x("", !0)]), w.value ? (s(), C("span", Vi, a(e.label), 1)) : x("", !0)], 44, zi))), 128))]),
|
|
2621
2618
|
_: 1
|
|
2622
|
-
}, 8, ["model-value"])], 44,
|
|
2619
|
+
}, 8, ["model-value"])], 44, Fi));
|
|
2623
2620
|
}
|
|
2624
|
-
}),
|
|
2621
|
+
}), Wi = ["aria-label"], Gi = {
|
|
2625
2622
|
role: "tablist",
|
|
2626
2623
|
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"
|
|
2627
|
-
},
|
|
2624
|
+
}, Ki = [
|
|
2628
2625
|
"aria-selected",
|
|
2629
2626
|
"aria-label",
|
|
2630
2627
|
"title"
|
|
2631
|
-
],
|
|
2628
|
+
], qi = { key: 0 }, Ji = [
|
|
2632
2629
|
"aria-selected",
|
|
2633
2630
|
"aria-label",
|
|
2634
2631
|
"title"
|
|
2635
|
-
],
|
|
2632
|
+
], Yi = { key: 0 }, Xi = [
|
|
2636
2633
|
"aria-selected",
|
|
2637
2634
|
"aria-label",
|
|
2638
2635
|
"title"
|
|
2639
|
-
],
|
|
2636
|
+
], Zi = { key: 0 }, Qi = {
|
|
2640
2637
|
key: 1,
|
|
2641
2638
|
class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
|
|
2642
|
-
},
|
|
2639
|
+
}, $i = {
|
|
2643
2640
|
key: 0,
|
|
2644
2641
|
id: "tpl-tabpanel-content",
|
|
2645
2642
|
role: "tabpanel",
|
|
2646
2643
|
"aria-labelledby": "tpl-tab-content",
|
|
2647
2644
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2648
|
-
},
|
|
2645
|
+
}, ea = {
|
|
2649
2646
|
key: 1,
|
|
2650
2647
|
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)]"
|
|
2651
|
-
},
|
|
2648
|
+
}, ta = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, na = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ra = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, ia = {
|
|
2652
2649
|
key: 1,
|
|
2653
2650
|
id: "tpl-tabpanel-settings",
|
|
2654
2651
|
role: "tabpanel",
|
|
2655
2652
|
"aria-labelledby": "tpl-tab-settings",
|
|
2656
2653
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2657
|
-
},
|
|
2654
|
+
}, aa = {
|
|
2658
2655
|
key: 2,
|
|
2659
2656
|
id: "tpl-tabpanel-issues",
|
|
2660
2657
|
role: "tabpanel",
|
|
2661
2658
|
"aria-labelledby": "tpl-tab-issues",
|
|
2662
2659
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2663
|
-
},
|
|
2660
|
+
}, oa = /* @__PURE__ */ R({
|
|
2664
2661
|
__name: "RightSidebar",
|
|
2665
2662
|
props: /*@__PURE__*/ r({
|
|
2666
2663
|
selectedBlock: {},
|
|
@@ -2677,7 +2674,7 @@ var Ni = ["aria-label"], Pi = {
|
|
|
2677
2674
|
"update-settings"
|
|
2678
2675
|
], ["update:tab"]),
|
|
2679
2676
|
setup(e, { emit: n }) {
|
|
2680
|
-
let r = I(() => import("./Toolbar-
|
|
2677
|
+
let r = I(() => import("./Toolbar-pzNIakGM.js").then((e) => e.t)), i = I(() => import("./TemplateSettings-CYFtR8zv.js")), o = I(() => import("./IssuesPanel-uwuzeMSW.js")), l = e, u = n, { t: d } = $(), m = p(e, "tab"), h = L(Ge, null), g = y(() => h !== null && !h.unavailable.value), _ = y(() => h?.issues.value.length ?? 0), S = L(st, new Set(Pn)), w = y(() => S.size > 0);
|
|
2681
2678
|
function T(e) {
|
|
2682
2679
|
return m.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] tpl:hover:text-[var(--tpl-text)]";
|
|
2683
2680
|
}
|
|
@@ -2695,7 +2692,7 @@ var Ni = ["aria-label"], Pi = {
|
|
|
2695
2692
|
"aria-label": b(d).landmarks.rightSidebar,
|
|
2696
2693
|
class: c(["tpl-right-sidebar tpl:absolute tpl:top-14 tpl:bottom-0 tpl:z-40 tpl:flex tpl:box-border tpl:w-[320px] tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)] tpl:transition-all tpl:duration-200 tpl:border-l tpl:border-[var(--tpl-border)]", e.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"])
|
|
2697
2694
|
}, [
|
|
2698
|
-
O("div",
|
|
2695
|
+
O("div", Gi, [
|
|
2699
2696
|
O("button", {
|
|
2700
2697
|
id: "tpl-tab-content",
|
|
2701
2698
|
role: "tab",
|
|
@@ -2706,10 +2703,10 @@ var Ni = ["aria-label"], Pi = {
|
|
|
2706
2703
|
class: c(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", T("content")]),
|
|
2707
2704
|
style: f(E("content")),
|
|
2708
2705
|
onClick: n[0] ||= (e) => m.value = "content"
|
|
2709
|
-
}, [v(b(
|
|
2706
|
+
}, [v(b(sr), {
|
|
2710
2707
|
size: 14,
|
|
2711
2708
|
"stroke-width": 2
|
|
2712
|
-
}), m.value === "content" ? (s(), C("span",
|
|
2709
|
+
}), m.value === "content" ? (s(), C("span", qi, a(b(d).sidebar.content), 1)) : x("", !0)], 14, Ki),
|
|
2713
2710
|
w.value ? (s(), C("button", {
|
|
2714
2711
|
key: 0,
|
|
2715
2712
|
id: "tpl-tab-settings",
|
|
@@ -2721,10 +2718,10 @@ var Ni = ["aria-label"], Pi = {
|
|
|
2721
2718
|
class: c(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", T("settings")]),
|
|
2722
2719
|
style: f(E("settings")),
|
|
2723
2720
|
onClick: n[1] ||= (e) => m.value = "settings"
|
|
2724
|
-
}, [v(b(
|
|
2721
|
+
}, [v(b(lr), {
|
|
2725
2722
|
size: 14,
|
|
2726
2723
|
"stroke-width": 1.5
|
|
2727
|
-
}), m.value === "settings" ? (s(), C("span",
|
|
2724
|
+
}), m.value === "settings" ? (s(), C("span", Yi, a(b(d).sidebar.settings), 1)) : x("", !0)], 14, Ji)) : x("", !0),
|
|
2728
2725
|
g.value ? (s(), C("button", {
|
|
2729
2726
|
key: 1,
|
|
2730
2727
|
id: "tpl-tab-issues",
|
|
@@ -2737,76 +2734,76 @@ var Ni = ["aria-label"], Pi = {
|
|
|
2737
2734
|
style: f(E("issues")),
|
|
2738
2735
|
onClick: n[2] ||= (e) => m.value = "issues"
|
|
2739
2736
|
}, [
|
|
2740
|
-
v(b(
|
|
2737
|
+
v(b(Cn), {
|
|
2741
2738
|
size: 14,
|
|
2742
2739
|
"stroke-width": 1.5
|
|
2743
2740
|
}),
|
|
2744
|
-
m.value === "issues" ? (s(), C("span",
|
|
2745
|
-
_.value > 0 ? (s(), C("span",
|
|
2746
|
-
], 14,
|
|
2741
|
+
m.value === "issues" ? (s(), C("span", Zi, a(b(d).issues.panelTabLabel), 1)) : x("", !0),
|
|
2742
|
+
_.value > 0 ? (s(), C("span", Qi, a(_.value), 1)) : x("", !0)
|
|
2743
|
+
], 14, Xi)) : x("", !0)
|
|
2747
2744
|
]),
|
|
2748
|
-
m.value === "content" ? (s(), C("div",
|
|
2745
|
+
m.value === "content" ? (s(), C("div", $i, [e.selectedBlock ? (s(), F(b(r), {
|
|
2749
2746
|
key: 0,
|
|
2750
2747
|
block: e.selectedBlock,
|
|
2751
2748
|
onUpdate: n[3] ||= (e) => u("update-block", e),
|
|
2752
2749
|
onDelete: n[4] ||= (e) => u("delete-block"),
|
|
2753
2750
|
onDuplicate: n[5] ||= (e) => u("duplicate-block")
|
|
2754
|
-
}, null, 8, ["block"])) : (s(), C("div",
|
|
2755
|
-
O("div",
|
|
2751
|
+
}, null, 8, ["block"])) : (s(), C("div", ea, [
|
|
2752
|
+
O("div", ta, [v(b(ar), {
|
|
2756
2753
|
size: 40,
|
|
2757
2754
|
"stroke-width": 1.5
|
|
2758
2755
|
})]),
|
|
2759
|
-
O("h3",
|
|
2760
|
-
O("p",
|
|
2756
|
+
O("h3", na, a(b(d).sidebar.noSelection), 1),
|
|
2757
|
+
O("p", ra, a(b(d).sidebar.noSelectionHint), 1)
|
|
2761
2758
|
]))])) : x("", !0),
|
|
2762
|
-
m.value === "settings" && w.value ? (s(), C("div",
|
|
2759
|
+
m.value === "settings" && w.value ? (s(), C("div", ia, [v(b(i), {
|
|
2763
2760
|
settings: e.settings,
|
|
2764
2761
|
onUpdate: n[6] ||= (e) => u("update-settings", e)
|
|
2765
2762
|
}, null, 8, ["settings"])])) : x("", !0),
|
|
2766
|
-
m.value === "issues" && g.value ? (s(), C("div",
|
|
2767
|
-
], 10,
|
|
2763
|
+
m.value === "issues" && g.value ? (s(), C("div", aa, [v(b(o))])) : x("", !0)
|
|
2764
|
+
], 10, Wi));
|
|
2768
2765
|
}
|
|
2769
|
-
}),
|
|
2766
|
+
}), sa = {
|
|
2770
2767
|
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)]",
|
|
2771
2768
|
style: { "z-index": "10001" },
|
|
2772
2769
|
role: "status",
|
|
2773
2770
|
"data-testid": "small-screen-notice"
|
|
2774
|
-
},
|
|
2771
|
+
}, ca = { class: "tpl:text-[var(--tpl-text-dim)]" }, la = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ua = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, da = /* @__PURE__ */ R({
|
|
2775
2772
|
__name: "SmallScreenNotice",
|
|
2776
2773
|
setup(e) {
|
|
2777
2774
|
let { t } = $();
|
|
2778
|
-
return (e, n) => (s(), C("div",
|
|
2779
|
-
O("div",
|
|
2775
|
+
return (e, n) => (s(), C("div", sa, [
|
|
2776
|
+
O("div", ca, [v(b(Fn), {
|
|
2780
2777
|
size: 48,
|
|
2781
2778
|
"stroke-width": 1.5
|
|
2782
2779
|
})]),
|
|
2783
|
-
O("h2",
|
|
2784
|
-
O("p",
|
|
2780
|
+
O("h2", la, a(b(t).smallScreen.title), 1),
|
|
2781
|
+
O("p", ua, a(b(t).smallScreen.message), 1)
|
|
2785
2782
|
]));
|
|
2786
2783
|
}
|
|
2787
|
-
}),
|
|
2784
|
+
}), fa = {
|
|
2788
2785
|
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
|
|
2789
2786
|
style: {
|
|
2790
2787
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
|
|
2791
2788
|
"backdrop-filter": "blur(8px)",
|
|
2792
2789
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
2793
2790
|
}
|
|
2794
|
-
},
|
|
2791
|
+
}, pa = /* @__PURE__ */ R({
|
|
2795
2792
|
__name: "EditorFooter",
|
|
2796
2793
|
props: { positionClass: {} },
|
|
2797
2794
|
setup(e) {
|
|
2798
2795
|
let { t } = $();
|
|
2799
|
-
return (n, r) => (s(), C("footer", { class: c(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[10px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [O("div",
|
|
2796
|
+
return (n, r) => (s(), C("footer", { class: c(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[10px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [O("div", fa, [O("span", null, a(b(t).footer.poweredBy), 1), r[0] ||= T("<a href=\"https://templatical.com\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"tpl:inline-flex tpl:items-center tpl:gap-1 tpl:font-medium tpl:transition-colors tpl:hover:opacity-80 tpl:text-[var(--tpl-text-muted)]\" style=\"text-decoration:none;\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><rect x=\"10\" y=\"1\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(85% 0.08 55)\" transform=\"rotate(8 19 12)\"></rect><rect x=\"6\" y=\"2\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(77% 0.12 55)\" transform=\"rotate(-4 15 13)\"></rect><rect x=\"2\" y=\"4\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(70% 0.16 55)\"></rect><rect x=\"6\" y=\"9\" width=\"10\" height=\"1.8\" rx=\"0.9\" fill=\"white\" opacity=\"0.9\"></rect><rect x=\"6\" y=\"13.5\" width=\"7\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.6\"></rect><rect x=\"6\" y=\"17\" width=\"9\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.6\"></rect><rect x=\"6\" y=\"20.5\" width=\"5\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.4\"></rect></svg> Templatical </a>", 1)])], 2));
|
|
2800
2797
|
}
|
|
2801
|
-
}),
|
|
2802
|
-
function
|
|
2798
|
+
}), ma = (e) => Number.parseFloat(e) || 0;
|
|
2799
|
+
function ha(e) {
|
|
2803
2800
|
let t = e.centerWidth + 2 * Math.max(e.leftWidth, e.rightWidth) + e.paddingWidth + 2 * e.columnGap + e.borderWidth;
|
|
2804
2801
|
return {
|
|
2805
2802
|
compact: e.availableWidth < t,
|
|
2806
2803
|
fullWidth: t
|
|
2807
2804
|
};
|
|
2808
2805
|
}
|
|
2809
|
-
function
|
|
2806
|
+
function ga(t, n) {
|
|
2810
2807
|
let r = A(!1), i = A(0), a, o, s = !1, c = !0, l = null, u, d = 0, f = 0, p = [];
|
|
2811
2808
|
function m() {
|
|
2812
2809
|
return p.some((e) => {
|
|
@@ -2852,14 +2849,14 @@ function ma(t, n) {
|
|
|
2852
2849
|
}
|
|
2853
2850
|
t.value.appendChild(o);
|
|
2854
2851
|
try {
|
|
2855
|
-
let t = getComputedStyle(o), n = l.map((e) => e.getBoundingClientRect().width), a =
|
|
2852
|
+
let t = getComputedStyle(o), n = l.map((e) => e.getBoundingClientRect().width), a = ha({
|
|
2856
2853
|
availableWidth: e,
|
|
2857
2854
|
leftWidth: n[0],
|
|
2858
2855
|
centerWidth: n[1],
|
|
2859
2856
|
rightWidth: n[2],
|
|
2860
|
-
paddingWidth:
|
|
2861
|
-
columnGap:
|
|
2862
|
-
borderWidth:
|
|
2857
|
+
paddingWidth: ma(t.paddingLeft || t.paddingInline) + ma(t.paddingRight || t.paddingInline),
|
|
2858
|
+
columnGap: ma(t.columnGap),
|
|
2859
|
+
borderWidth: ma(t.borderLeftWidth) + ma(t.borderRightWidth)
|
|
2863
2860
|
});
|
|
2864
2861
|
i.value = a.fullWidth, r.value = a.compact, c = !1;
|
|
2865
2862
|
} finally {
|
|
@@ -2925,11 +2922,11 @@ function ma(t, n) {
|
|
|
2925
2922
|
};
|
|
2926
2923
|
}
|
|
2927
2924
|
// src/components/DarkModeToggle.vue?vue&type=script&setup=true&lang.ts
|
|
2928
|
-
var
|
|
2925
|
+
var _a = [
|
|
2929
2926
|
"aria-label",
|
|
2930
2927
|
"title",
|
|
2931
2928
|
"aria-pressed"
|
|
2932
|
-
],
|
|
2929
|
+
], va = /*#__PURE__*/ ze(/* @__PURE__ */ R({
|
|
2933
2930
|
__name: "DarkModeToggle",
|
|
2934
2931
|
props: { darkMode: { type: Boolean } },
|
|
2935
2932
|
emits: ["change"],
|
|
@@ -2945,30 +2942,30 @@ var ha = [
|
|
|
2945
2942
|
title: e.darkMode ? b(r).darkMode.disable : b(r).darkMode.enable,
|
|
2946
2943
|
"aria-pressed": e.darkMode,
|
|
2947
2944
|
onClick: i[0] ||= (t) => n("change", !e.darkMode)
|
|
2948
|
-
}, [v(
|
|
2945
|
+
}, [v(W, {
|
|
2949
2946
|
"enter-active-class": "tpl-icon-enter-active",
|
|
2950
2947
|
"leave-active-class": "tpl-icon-leave-active",
|
|
2951
2948
|
"enter-from-class": "tpl-icon-enter-from",
|
|
2952
2949
|
"leave-to-class": "tpl-icon-leave-to",
|
|
2953
2950
|
mode: "out-in"
|
|
2954
2951
|
}, {
|
|
2955
|
-
default: h(() => [e.darkMode ? (s(), F(b(
|
|
2952
|
+
default: h(() => [e.darkMode ? (s(), F(b(or), {
|
|
2956
2953
|
key: "moon",
|
|
2957
2954
|
size: 18,
|
|
2958
2955
|
"stroke-width": 1.5
|
|
2959
|
-
})) : (s(), F(b(
|
|
2956
|
+
})) : (s(), F(b(dr), {
|
|
2960
2957
|
key: "sun",
|
|
2961
2958
|
size: 18,
|
|
2962
2959
|
"stroke-width": 1.5
|
|
2963
2960
|
}))]),
|
|
2964
2961
|
_: 1
|
|
2965
|
-
})], 12,
|
|
2962
|
+
})], 12, _a));
|
|
2966
2963
|
}
|
|
2967
|
-
}), [["__scopeId", "data-v-632aa74f"]]),
|
|
2964
|
+
}), [["__scopeId", "data-v-632aa74f"]]), ya = [
|
|
2968
2965
|
"aria-label",
|
|
2969
2966
|
"title",
|
|
2970
2967
|
"aria-pressed"
|
|
2971
|
-
],
|
|
2968
|
+
], ba = /*#__PURE__*/ ze(/* @__PURE__ */ R({
|
|
2972
2969
|
__name: "PreviewToggle",
|
|
2973
2970
|
props: { previewMode: { type: Boolean } },
|
|
2974
2971
|
emits: ["change"],
|
|
@@ -2984,26 +2981,26 @@ var ha = [
|
|
|
2984
2981
|
title: e.previewMode ? b(r).previewMode.disable : b(r).previewMode.enable,
|
|
2985
2982
|
"aria-pressed": e.previewMode,
|
|
2986
2983
|
onClick: i[0] ||= (t) => n("change", !e.previewMode)
|
|
2987
|
-
}, [v(
|
|
2984
|
+
}, [v(W, {
|
|
2988
2985
|
"enter-active-class": "tpl-icon-enter-active",
|
|
2989
2986
|
"leave-active-class": "tpl-icon-leave-active",
|
|
2990
2987
|
"enter-from-class": "tpl-icon-enter-from",
|
|
2991
2988
|
"leave-to-class": "tpl-icon-leave-to",
|
|
2992
2989
|
mode: "out-in"
|
|
2993
2990
|
}, {
|
|
2994
|
-
default: h(() => [e.previewMode ? (s(), F(b(
|
|
2991
|
+
default: h(() => [e.previewMode ? (s(), F(b(Vn), {
|
|
2995
2992
|
key: "eye",
|
|
2996
2993
|
size: 18,
|
|
2997
2994
|
"stroke-width": 1.5
|
|
2998
|
-
})) : (s(), F(b(
|
|
2995
|
+
})) : (s(), F(b(Ft), {
|
|
2999
2996
|
key: "eye-off",
|
|
3000
2997
|
size: 18,
|
|
3001
2998
|
"stroke-width": 1.5
|
|
3002
2999
|
}))]),
|
|
3003
3000
|
_: 1
|
|
3004
|
-
})], 12,
|
|
3001
|
+
})], 12, ya));
|
|
3005
3002
|
}
|
|
3006
|
-
}), [["__scopeId", "data-v-eef7b2ca"]]),
|
|
3003
|
+
}), [["__scopeId", "data-v-eef7b2ca"]]), xa = ["aria-label", "onKeydown"], Sa = ["title", "aria-label"], Ca = /* @__PURE__ */ R({
|
|
3007
3004
|
__name: "TemplateNameField",
|
|
3008
3005
|
props: {
|
|
3009
3006
|
name: {},
|
|
@@ -3032,10 +3029,10 @@ var ha = [
|
|
|
3032
3029
|
type: "text",
|
|
3033
3030
|
"data-testid": "template-name-input",
|
|
3034
3031
|
"aria-label": b(i).header.templateName,
|
|
3035
|
-
class: c([b(
|
|
3036
|
-
onKeydown: [
|
|
3032
|
+
class: c([b(Dt), "tpl:h-8 tpl:max-w-[260px] tpl:text-sm tpl:font-medium"]),
|
|
3033
|
+
onKeydown: [U(B(p, ["prevent"]), ["enter"]), U(B(m, ["prevent"]), ["esc"])],
|
|
3037
3034
|
onBlur: p
|
|
3038
|
-
}, null, 42,
|
|
3035
|
+
}, null, 42, xa)), [[z, l.value]]) : e.editable ? (s(), C("button", {
|
|
3039
3036
|
key: 1,
|
|
3040
3037
|
type: "button",
|
|
3041
3038
|
"data-testid": "template-name",
|
|
@@ -3043,48 +3040,48 @@ var ha = [
|
|
|
3043
3040
|
"aria-label": b(i).header.rename,
|
|
3044
3041
|
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 }]),
|
|
3045
3042
|
onClick: f
|
|
3046
|
-
}, a(e.name || b(i).header.untitled), 11,
|
|
3043
|
+
}, a(e.name || b(i).header.untitled), 11, Sa)) : (s(), C("span", {
|
|
3047
3044
|
key: 2,
|
|
3048
3045
|
"data-testid": "template-name",
|
|
3049
3046
|
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 }])
|
|
3050
3047
|
}, a(e.name || b(i).header.untitled), 3));
|
|
3051
3048
|
}
|
|
3052
|
-
}),
|
|
3049
|
+
}), wa = ["title"], Ta = /* @__PURE__ */ R({
|
|
3053
3050
|
__name: "TemplateTimestamp",
|
|
3054
3051
|
props: {
|
|
3055
3052
|
iso: {},
|
|
3056
3053
|
kind: {}
|
|
3057
3054
|
},
|
|
3058
3055
|
setup(e) {
|
|
3059
|
-
let t = e, { t: n, format: r } = $(), i = L(
|
|
3060
|
-
|
|
3056
|
+
let t = e, { t: n, format: r } = $(), i = L(ut, void 0), o = S(0);
|
|
3057
|
+
Wn(() => {
|
|
3061
3058
|
o.value += 1;
|
|
3062
3059
|
}, 6e4);
|
|
3063
3060
|
let c = y(() => {
|
|
3064
3061
|
o.value;
|
|
3065
|
-
let e =
|
|
3062
|
+
let e = Kn(t.iso, n.time, r);
|
|
3066
3063
|
if (e === null) return "";
|
|
3067
3064
|
let i = e === n.time.justNow;
|
|
3068
3065
|
return t.kind === "updatedAt" ? i ? n.header.updatedJustNow : r(n.header.updatedAt, { time: e }) : i ? n.header.createdJustNow : r(n.header.createdAt, { time: e });
|
|
3069
|
-
}), l = y(() =>
|
|
3066
|
+
}), l = y(() => Gn(t.iso, i));
|
|
3070
3067
|
return (e, t) => c.value ? (s(), C("span", {
|
|
3071
3068
|
key: 0,
|
|
3072
3069
|
"data-testid": "template-timestamp",
|
|
3073
3070
|
title: l.value,
|
|
3074
3071
|
class: "tpl:max-w-[260px] tpl:truncate tpl:px-2 tpl:text-xs tpl:leading-tight tpl:text-[var(--tpl-text-dim)]"
|
|
3075
|
-
}, a(c.value), 9,
|
|
3072
|
+
}, a(c.value), 9, wa)) : x("", !0);
|
|
3076
3073
|
}
|
|
3077
|
-
}),
|
|
3074
|
+
}), Ea = ["data-tooltip"], Da = {
|
|
3078
3075
|
key: 1,
|
|
3079
3076
|
"aria-live": "polite",
|
|
3080
3077
|
"data-testid": "save-status-saved",
|
|
3081
3078
|
class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-success)]"
|
|
3082
|
-
},
|
|
3079
|
+
}, Oa = {
|
|
3083
3080
|
key: 2,
|
|
3084
3081
|
"aria-live": "polite",
|
|
3085
3082
|
"data-testid": "save-status-unsaved",
|
|
3086
3083
|
class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
3087
|
-
},
|
|
3084
|
+
}, ka = /* @__PURE__ */ R({
|
|
3088
3085
|
__name: "TemplateSaveStatus",
|
|
3089
3086
|
props: {
|
|
3090
3087
|
status: {},
|
|
@@ -3099,19 +3096,19 @@ var ha = [
|
|
|
3099
3096
|
"data-testid": "save-status-error",
|
|
3100
3097
|
class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
|
|
3101
3098
|
"data-tooltip": e.errorMessage
|
|
3102
|
-
}, [v(b(
|
|
3099
|
+
}, [v(b(Jn), {
|
|
3103
3100
|
size: 12,
|
|
3104
3101
|
"stroke-width": 2.5
|
|
3105
|
-
}), w(" " + a(b(t).header.saveFailed), 1)], 8,
|
|
3102
|
+
}), w(" " + a(b(t).header.saveFailed), 1)], 8, Ea)) : e.status === "saved" ? (s(), C("div", Da, [v(b(qn), {
|
|
3106
3103
|
size: 12,
|
|
3107
3104
|
"stroke-width": 2.5
|
|
3108
|
-
}), w(" " + a(b(t).header.saved), 1)])) : e.isDirty ? (s(), C("div",
|
|
3105
|
+
}), w(" " + a(b(t).header.saved), 1)])) : e.isDirty ? (s(), C("div", Oa, [r[0] ||= O("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), w(" " + a(b(t).header.unsaved), 1)])) : x("", !0);
|
|
3109
3106
|
}
|
|
3110
|
-
}),
|
|
3107
|
+
}), Aa = [
|
|
3111
3108
|
"aria-pressed",
|
|
3112
3109
|
"aria-label",
|
|
3113
3110
|
"title"
|
|
3114
|
-
],
|
|
3111
|
+
], ja = { class: "tpl-header-label" }, Ma = /* @__PURE__ */ R({
|
|
3115
3112
|
__name: "AiHeaderMenu",
|
|
3116
3113
|
props: { feature: {} },
|
|
3117
3114
|
setup(e) {
|
|
@@ -3126,35 +3123,35 @@ var ha = [
|
|
|
3126
3123
|
"aria-pressed": r.value,
|
|
3127
3124
|
"aria-label": b(n).ai.menu.chat,
|
|
3128
3125
|
title: b(n).ai.menu.chat,
|
|
3129
|
-
class: c(b(
|
|
3126
|
+
class: c(b(kt)),
|
|
3130
3127
|
style: f(r.value ? {
|
|
3131
3128
|
backgroundColor: "var(--tpl-primary-light)",
|
|
3132
3129
|
borderColor: "var(--tpl-primary-light)"
|
|
3133
3130
|
} : void 0),
|
|
3134
|
-
onClick:
|
|
3135
|
-
}, [v(b(
|
|
3131
|
+
onClick: B(i, ["stop"])
|
|
3132
|
+
}, [v(b(An), {
|
|
3136
3133
|
size: 16,
|
|
3137
3134
|
"stroke-width": 2,
|
|
3138
3135
|
class: "tpl:text-[var(--tpl-primary-hover)]",
|
|
3139
3136
|
"aria-hidden": "true"
|
|
3140
|
-
}), O("span",
|
|
3137
|
+
}), O("span", ja, a(b(n).ai.menu.button), 1)], 14, Aa)) : x("", !0);
|
|
3141
3138
|
}
|
|
3142
|
-
}),
|
|
3139
|
+
}), Na = ["data-compact", "data-full-width"], Pa = { class: "tpl-header-left tpl:flex tpl:min-w-0 tpl:items-center tpl:gap-2.5" }, Fa = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, Ia = { class: "tpl-header-right tpl:flex tpl:min-w-0 tpl:items-center tpl:justify-end tpl:gap-3" }, La = [
|
|
3143
3140
|
"aria-label",
|
|
3144
3141
|
"title",
|
|
3145
3142
|
"aria-expanded"
|
|
3146
|
-
],
|
|
3143
|
+
], Ra = { class: "tpl-header-label" }, za = {
|
|
3147
3144
|
key: 0,
|
|
3148
3145
|
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)]"
|
|
3149
|
-
},
|
|
3146
|
+
}, Ba = [
|
|
3150
3147
|
"aria-label",
|
|
3151
3148
|
"title",
|
|
3152
3149
|
"disabled"
|
|
3153
|
-
],
|
|
3150
|
+
], Va = { class: "tpl-header-label" }, Ha = [
|
|
3154
3151
|
"aria-label",
|
|
3155
3152
|
"disabled",
|
|
3156
3153
|
"title"
|
|
3157
|
-
],
|
|
3154
|
+
], Ua = { class: "tpl-header-label" }, Wa = /* @__PURE__ */ R({
|
|
3158
3155
|
__name: "EditorHeader",
|
|
3159
3156
|
props: {
|
|
3160
3157
|
editor: {},
|
|
@@ -3169,7 +3166,7 @@ var ha = [
|
|
|
3169
3166
|
ai: {}
|
|
3170
3167
|
},
|
|
3171
3168
|
setup(e) {
|
|
3172
|
-
let t = I(() => import("./VersionHistoryMenu-
|
|
3169
|
+
let t = I(() => import("./VersionHistoryMenu--T-Qp_mH.js")), n = I(() => import("./LanguageMenu-C-eQ0lFy.js")), r = I(() => import("./CollaboratorBar-CLQjksX-.js")), o = A(null), l = A(null), { compact: u, fullWidth: d } = ga(o, l);
|
|
3173
3170
|
return (p, m) => (s(), C("div", {
|
|
3174
3171
|
ref_key: "containerElement",
|
|
3175
3172
|
ref: o,
|
|
@@ -3181,11 +3178,11 @@ var ha = [
|
|
|
3181
3178
|
"data-full-width": b(d),
|
|
3182
3179
|
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)]"
|
|
3183
3180
|
}, [
|
|
3184
|
-
O("div",
|
|
3181
|
+
O("div", Pa, [
|
|
3185
3182
|
e.templates?.isAvailable.value && e.templates.hasTemplate.value && (e.showTemplateName || e.templates.timestamp.value) ? (s(), C("div", {
|
|
3186
3183
|
key: 0,
|
|
3187
3184
|
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 }])
|
|
3188
|
-
}, [e.showTemplateName ? (s(), F(
|
|
3185
|
+
}, [e.showTemplateName ? (s(), F(Ca, {
|
|
3189
3186
|
key: 0,
|
|
3190
3187
|
name: e.templates.name.value,
|
|
3191
3188
|
editable: e.templates.canSave.value,
|
|
@@ -3194,7 +3191,7 @@ var ha = [
|
|
|
3194
3191
|
"name",
|
|
3195
3192
|
"editable",
|
|
3196
3193
|
"onCommit"
|
|
3197
|
-
])) : x("", !0), e.templates.timestamp.value ? (s(), F(
|
|
3194
|
+
])) : x("", !0), e.templates.timestamp.value ? (s(), F(Ta, {
|
|
3198
3195
|
key: 1,
|
|
3199
3196
|
class: "tpl-header-timestamp",
|
|
3200
3197
|
iso: e.templates.timestamp.value.iso,
|
|
@@ -3226,22 +3223,22 @@ var ha = [
|
|
|
3226
3223
|
}, null, 8, ["people", "connection"])) : x("", !0),
|
|
3227
3224
|
i(p.$slots, "left-extras")
|
|
3228
3225
|
]),
|
|
3229
|
-
O("div",
|
|
3230
|
-
v(
|
|
3226
|
+
O("div", Fa, [
|
|
3227
|
+
v(zn, {
|
|
3231
3228
|
viewport: e.editor.state.viewport,
|
|
3232
3229
|
onChange: e.editor.setViewport
|
|
3233
3230
|
}, null, 8, ["viewport", "onChange"]),
|
|
3234
|
-
v(
|
|
3231
|
+
v(va, {
|
|
3235
3232
|
"dark-mode": e.editor.state.darkMode,
|
|
3236
3233
|
onChange: e.editor.setDarkMode
|
|
3237
3234
|
}, null, 8, ["dark-mode", "onChange"]),
|
|
3238
|
-
v(
|
|
3235
|
+
v(ba, {
|
|
3239
3236
|
"preview-mode": e.editor.state.previewMode,
|
|
3240
3237
|
onChange: e.editor.setPreviewMode
|
|
3241
3238
|
}, null, 8, ["preview-mode", "onChange"])
|
|
3242
3239
|
]),
|
|
3243
|
-
O("div",
|
|
3244
|
-
e.templates?.isAvailable.value && e.templates.canSave.value ? (s(), F(
|
|
3240
|
+
O("div", Ia, [
|
|
3241
|
+
e.templates?.isAvailable.value && e.templates.canSave.value ? (s(), F(ka, {
|
|
3245
3242
|
key: 0,
|
|
3246
3243
|
class: "tpl-header-save-status",
|
|
3247
3244
|
status: e.templates.status.value,
|
|
@@ -3259,21 +3256,21 @@ var ha = [
|
|
|
3259
3256
|
"aria-label": e.comments.unresolvedCount.value > 0 ? `${e.core.t.comments.button} (${e.comments.unresolvedCount.value})` : e.core.t.comments.button,
|
|
3260
3257
|
title: e.core.t.comments.button,
|
|
3261
3258
|
"aria-expanded": e.comments.isOpen.value,
|
|
3262
|
-
class: c(b(
|
|
3259
|
+
class: c(b(kt)),
|
|
3263
3260
|
style: f(e.comments.isOpen.value ? {
|
|
3264
3261
|
backgroundColor: "var(--tpl-primary-light)",
|
|
3265
3262
|
borderColor: "var(--tpl-primary-light)"
|
|
3266
3263
|
} : void 0),
|
|
3267
3264
|
onClick: m[2] ||= (t) => e.comments.toggle()
|
|
3268
3265
|
}, [
|
|
3269
|
-
v(b(
|
|
3266
|
+
v(b(Ln), {
|
|
3270
3267
|
size: 16,
|
|
3271
3268
|
"stroke-width": 2
|
|
3272
3269
|
}),
|
|
3273
|
-
O("span",
|
|
3274
|
-
e.comments.unresolvedCount.value > 0 && !e.comments.isOpen.value ? (s(), C("span",
|
|
3275
|
-
], 14,
|
|
3276
|
-
e.ai ? (s(), F(
|
|
3270
|
+
O("span", Ra, a(e.core.t.comments.button), 1),
|
|
3271
|
+
e.comments.unresolvedCount.value > 0 && !e.comments.isOpen.value ? (s(), C("span", za, a(e.comments.unresolvedCount.value), 1)) : x("", !0)
|
|
3272
|
+
], 14, La)) : x("", !0),
|
|
3273
|
+
e.ai ? (s(), F(Ma, {
|
|
3277
3274
|
key: 2,
|
|
3278
3275
|
feature: e.ai
|
|
3279
3276
|
}, null, 8, ["feature"])) : x("", !0),
|
|
@@ -3285,64 +3282,64 @@ var ha = [
|
|
|
3285
3282
|
"aria-label": e.core.t.testEmail.title,
|
|
3286
3283
|
title: e.core.t.testEmail.title,
|
|
3287
3284
|
disabled: e.testEmail.isSending.value,
|
|
3288
|
-
class: c(b(
|
|
3285
|
+
class: c(b(kt)),
|
|
3289
3286
|
onClick: m[3] ||= (t) => e.testEmail.open()
|
|
3290
|
-
}, [e.testEmail.isSending.value ? (s(), F(b(
|
|
3287
|
+
}, [e.testEmail.isSending.value ? (s(), F(b(In), {
|
|
3291
3288
|
key: 1,
|
|
3292
3289
|
class: "tpl-spinner",
|
|
3293
3290
|
size: 16,
|
|
3294
3291
|
"stroke-width": 2
|
|
3295
|
-
})) : (s(), F(b(
|
|
3292
|
+
})) : (s(), F(b(Rn), {
|
|
3296
3293
|
key: 0,
|
|
3297
3294
|
size: 16,
|
|
3298
3295
|
"stroke-width": 2
|
|
3299
|
-
})), O("span",
|
|
3296
|
+
})), O("span", Va, a(e.core.t.testEmail.button), 1)], 10, Ba)) : x("", !0),
|
|
3300
3297
|
e.templates?.isAvailable.value && e.templates.canSave.value ? (s(), C("button", {
|
|
3301
3298
|
key: 4,
|
|
3302
3299
|
type: "button",
|
|
3303
3300
|
"data-testid": "template-save",
|
|
3304
|
-
class: c(e.editor.state.isDirty && e.templates.hasTemplate.value ? b(
|
|
3301
|
+
class: c(e.editor.state.isDirty && e.templates.hasTemplate.value ? b(At) : b(kt)),
|
|
3305
3302
|
style: f(e.editor.state.isDirty && e.templates.hasTemplate.value ? { boxShadow: "var(--tpl-shadow-sm)" } : void 0),
|
|
3306
3303
|
"aria-label": e.templates.isSaving.value ? e.core.t.header.saving : e.core.t.header.save,
|
|
3307
3304
|
disabled: e.templates.isSaving.value || !e.templates.hasTemplate.value,
|
|
3308
3305
|
title: e.templates.hasTemplate.value ? e.core.t.header.save : e.core.t.header.saveNoTemplate,
|
|
3309
3306
|
onClick: m[4] ||= (t) => e.templates.requestSave()
|
|
3310
|
-
}, [e.templates.isSaving.value ? (s(), F(b(
|
|
3307
|
+
}, [e.templates.isSaving.value ? (s(), F(b(In), {
|
|
3311
3308
|
key: 1,
|
|
3312
3309
|
class: "tpl-spinner",
|
|
3313
3310
|
size: 16,
|
|
3314
3311
|
"stroke-width": 2
|
|
3315
|
-
})) : (s(), F(b(
|
|
3312
|
+
})) : (s(), F(b(cr), {
|
|
3316
3313
|
key: 0,
|
|
3317
3314
|
size: 16,
|
|
3318
3315
|
"stroke-width": 2
|
|
3319
|
-
})), O("span",
|
|
3316
|
+
})), O("span", Ua, a(e.templates.isSaving.value ? e.core.t.header.saving : e.core.t.header.save), 1)], 14, Ha)) : x("", !0)
|
|
3320
3317
|
])
|
|
3321
|
-
], 8,
|
|
3318
|
+
], 8, Na)], 512));
|
|
3322
3319
|
}
|
|
3323
|
-
}),
|
|
3320
|
+
}), Ga = ["aria-labelledby", "data-tpl-theme"], Ka = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, qa = ["id"], Ja = ["aria-label"], Ya = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Xa = [
|
|
3324
3321
|
"id",
|
|
3325
3322
|
"placeholder",
|
|
3326
3323
|
"aria-label",
|
|
3327
3324
|
"aria-activedescendant"
|
|
3328
|
-
],
|
|
3325
|
+
], Za = {
|
|
3329
3326
|
key: 0,
|
|
3330
3327
|
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",
|
|
3331
3328
|
"data-testid": "merge-tag-picker-group-pills"
|
|
3332
|
-
},
|
|
3329
|
+
}, Qa = ["data-group-name", "onClick"], $a = ["aria-label"], eo = {
|
|
3333
3330
|
key: 0,
|
|
3334
3331
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3335
3332
|
"data-testid": "merge-tag-picker-empty"
|
|
3336
|
-
},
|
|
3333
|
+
}, to = {
|
|
3337
3334
|
key: 1,
|
|
3338
3335
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3339
3336
|
"data-testid": "merge-tag-picker-empty"
|
|
3340
|
-
},
|
|
3337
|
+
}, no = [
|
|
3341
3338
|
"aria-expanded",
|
|
3342
3339
|
"data-group-name",
|
|
3343
3340
|
"data-group-collapsed",
|
|
3344
3341
|
"onClick"
|
|
3345
|
-
],
|
|
3342
|
+
], ro = { class: "tpl:ml-1 tpl:font-normal" }, io = [
|
|
3346
3343
|
"id",
|
|
3347
3344
|
"aria-selected",
|
|
3348
3345
|
"data-selected",
|
|
@@ -3352,21 +3349,21 @@ var ha = [
|
|
|
3352
3349
|
"title",
|
|
3353
3350
|
"onMousemove",
|
|
3354
3351
|
"onClick"
|
|
3355
|
-
],
|
|
3352
|
+
], ao = { class: "tpl:text-sm tpl:font-medium" }, oo = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, so = {
|
|
3356
3353
|
key: 0,
|
|
3357
3354
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3358
|
-
},
|
|
3355
|
+
}, co = {
|
|
3359
3356
|
key: 1,
|
|
3360
3357
|
"data-testid": "merge-tag-picker-sample",
|
|
3361
3358
|
class: "tpl:line-clamp-1 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3362
|
-
},
|
|
3359
|
+
}, lo = "tpl-merge-tag-picker-list", uo = /* @__PURE__ */ R({
|
|
3363
3360
|
__name: "MergeTagPickerModal",
|
|
3364
3361
|
setup(e) {
|
|
3365
|
-
let n =
|
|
3362
|
+
let n = _t(Je, "MergeTagPickerModal"), { t: r, format: i } = $(), o = L(yt, null), l = L(rt, null), p = L(xt, !0), m = y(() => n.current.value !== null), _ = y(() => m.value ? r.mergeTag.picker.changeTitle : r.mergeTag.picker.title);
|
|
3366
3363
|
function w(e) {
|
|
3367
3364
|
return p ? e.description ? `${e.value} — ${e.description}` : e.value : e.description || void 0;
|
|
3368
3365
|
}
|
|
3369
|
-
let T = S(""), E =
|
|
3366
|
+
let T = S(""), E = Un(T, 200), D = S(null), k = y(() => E.value.trim().length > 0), A = S(0), j = y(() => n.tags.value.some((e) => !!e.group)), N = S(/* @__PURE__ */ new Set());
|
|
3370
3367
|
function P(e) {
|
|
3371
3368
|
return N.value.has(e);
|
|
3372
3369
|
}
|
|
@@ -3381,7 +3378,7 @@ var ha = [
|
|
|
3381
3378
|
t.value,
|
|
3382
3379
|
t.description ?? ""
|
|
3383
3380
|
].join(" ").toLowerCase().includes(e)) : n.tags.value;
|
|
3384
|
-
}),
|
|
3381
|
+
}), V = y(() => {
|
|
3385
3382
|
if (!j.value) return [];
|
|
3386
3383
|
let e = r.mergeTag.picker.otherGroup, t = /* @__PURE__ */ new Set(), i = [];
|
|
3387
3384
|
for (let r of n.tags.value) {
|
|
@@ -3389,7 +3386,7 @@ var ha = [
|
|
|
3389
3386
|
t.has(n) || (t.add(n), i.push(n));
|
|
3390
3387
|
}
|
|
3391
3388
|
return i;
|
|
3392
|
-
}),
|
|
3389
|
+
}), H = y(() => {
|
|
3393
3390
|
let e = R.value;
|
|
3394
3391
|
if (!j.value || k.value) return e.map((e, t) => ({
|
|
3395
3392
|
kind: "tag",
|
|
@@ -3415,52 +3412,52 @@ var ha = [
|
|
|
3415
3412
|
}), o++;
|
|
3416
3413
|
}
|
|
3417
3414
|
return a;
|
|
3418
|
-
}),
|
|
3419
|
-
function
|
|
3415
|
+
}), W = y(() => H.value.flatMap((e) => e.kind === "tag" ? [e.tag] : [])), G = !1;
|
|
3416
|
+
function ee(e) {
|
|
3420
3417
|
let t = n.current.value;
|
|
3421
3418
|
if (!t) return !1;
|
|
3422
3419
|
let r = e.findIndex((e) => e.value === t.value);
|
|
3423
3420
|
return r !== -1 && (A.value = r, !0);
|
|
3424
3421
|
}
|
|
3425
|
-
function
|
|
3426
|
-
|
|
3422
|
+
function K(e) {
|
|
3423
|
+
G = !1, A.value = e;
|
|
3427
3424
|
}
|
|
3428
3425
|
t(() => n.isOpen.value, (e) => {
|
|
3429
|
-
e ? (T.value = "", A.value = 0, N.value = /* @__PURE__ */ new Set(),
|
|
3426
|
+
e ? (T.value = "", A.value = 0, N.value = /* @__PURE__ */ new Set(), G = !ee(W.value), u(() => {
|
|
3430
3427
|
D.value?.focus();
|
|
3431
|
-
})) :
|
|
3432
|
-
}), t(
|
|
3433
|
-
|
|
3428
|
+
})) : G = !1;
|
|
3429
|
+
}), t(W, (e) => {
|
|
3430
|
+
G && ee(e) ? G = !1 : A.value >= e.length && (A.value = Math.max(0, e.length - 1));
|
|
3434
3431
|
});
|
|
3435
|
-
function
|
|
3432
|
+
function q(e) {
|
|
3436
3433
|
n.resolve(e);
|
|
3437
3434
|
}
|
|
3438
|
-
function
|
|
3435
|
+
function J() {
|
|
3439
3436
|
n.resolve(null);
|
|
3440
3437
|
}
|
|
3441
|
-
function
|
|
3442
|
-
if (
|
|
3443
|
-
|
|
3438
|
+
function Y(e) {
|
|
3439
|
+
if (W.value.length === 0) return;
|
|
3440
|
+
G = !1;
|
|
3444
3441
|
let t = A.value + e;
|
|
3445
|
-
A.value = Math.max(0, Math.min(
|
|
3442
|
+
A.value = Math.max(0, Math.min(W.value.length - 1, t)), ie();
|
|
3446
3443
|
}
|
|
3447
|
-
let
|
|
3448
|
-
function
|
|
3449
|
-
|
|
3444
|
+
let te = S(null), ne = S({});
|
|
3445
|
+
function re(e, t) {
|
|
3446
|
+
ne.value[e] = t ?? null;
|
|
3450
3447
|
}
|
|
3451
|
-
function
|
|
3448
|
+
function ie() {
|
|
3452
3449
|
u(() => {
|
|
3453
|
-
let e =
|
|
3450
|
+
let e = te.value;
|
|
3454
3451
|
e && e.querySelector(`[data-merge-tag-index="${A.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
3455
3452
|
});
|
|
3456
3453
|
}
|
|
3457
|
-
function
|
|
3454
|
+
function ae(e) {
|
|
3458
3455
|
if (N.value.has(e)) {
|
|
3459
3456
|
let t = new Set(N.value);
|
|
3460
3457
|
t.delete(e), N.value = t;
|
|
3461
3458
|
}
|
|
3462
3459
|
u(() => {
|
|
3463
|
-
let t =
|
|
3460
|
+
let t = te.value;
|
|
3464
3461
|
if (!t) return;
|
|
3465
3462
|
let n = 0, r = !1;
|
|
3466
3463
|
for (let i of Array.from(t.children)) {
|
|
@@ -3476,55 +3473,55 @@ var ha = [
|
|
|
3476
3473
|
});
|
|
3477
3474
|
});
|
|
3478
3475
|
}
|
|
3479
|
-
function
|
|
3480
|
-
if (e.key === "ArrowDown") e.preventDefault(),
|
|
3481
|
-
else if (e.key === "ArrowUp") e.preventDefault(),
|
|
3476
|
+
function oe(e) {
|
|
3477
|
+
if (e.key === "ArrowDown") e.preventDefault(), Y(1);
|
|
3478
|
+
else if (e.key === "ArrowUp") e.preventDefault(), Y(-1);
|
|
3482
3479
|
else if (e.key === "Enter") {
|
|
3483
3480
|
e.preventDefault();
|
|
3484
|
-
let t =
|
|
3485
|
-
t &&
|
|
3481
|
+
let t = W.value[A.value];
|
|
3482
|
+
t && q(t);
|
|
3486
3483
|
}
|
|
3487
3484
|
}
|
|
3488
|
-
function
|
|
3489
|
-
if (
|
|
3485
|
+
function se() {
|
|
3486
|
+
if (W.value.length !== 0) return `${lo}-opt-${A.value}`;
|
|
3490
3487
|
}
|
|
3491
3488
|
function ce(e) {
|
|
3492
|
-
return `${
|
|
3489
|
+
return `${lo}-opt-${e}`;
|
|
3493
3490
|
}
|
|
3494
|
-
let le = y(() => n.tags.value.length === 0), ue = y(() => !le.value && R.value.length === 0),
|
|
3495
|
-
return (e, t) => (s(), F(
|
|
3491
|
+
let le = y(() => n.tags.value.length === 0), ue = y(() => !le.value && R.value.length === 0), de = y(() => j.value && V.value.length > 1 && !k.value);
|
|
3492
|
+
return (e, t) => (s(), F(jt, {
|
|
3496
3493
|
visible: b(n).isOpen.value,
|
|
3497
|
-
onClose:
|
|
3498
|
-
onKeydown:
|
|
3494
|
+
onClose: J,
|
|
3495
|
+
onKeydown: oe
|
|
3499
3496
|
}, {
|
|
3500
3497
|
default: h(() => [O("div", {
|
|
3501
3498
|
role: "dialog",
|
|
3502
3499
|
"aria-modal": "true",
|
|
3503
|
-
"aria-labelledby": `${
|
|
3500
|
+
"aria-labelledby": `${lo}-title`,
|
|
3504
3501
|
"data-tpl-theme": b(l),
|
|
3505
3502
|
"data-testid": "merge-tag-picker-modal",
|
|
3506
3503
|
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)]",
|
|
3507
3504
|
style: f(b(o))
|
|
3508
3505
|
}, [
|
|
3509
|
-
O("header",
|
|
3510
|
-
id: `${
|
|
3506
|
+
O("header", Ka, [O("h2", {
|
|
3507
|
+
id: `${lo}-title`,
|
|
3511
3508
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
3512
|
-
}, a(_.value), 9,
|
|
3509
|
+
}, a(_.value), 9, qa), O("button", {
|
|
3513
3510
|
type: "button",
|
|
3514
3511
|
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)]",
|
|
3515
3512
|
"aria-label": b(r).mergeTag.picker.close,
|
|
3516
3513
|
"data-testid": "merge-tag-picker-close",
|
|
3517
|
-
onClick:
|
|
3518
|
-
}, [v(b(
|
|
3514
|
+
onClick: J
|
|
3515
|
+
}, [v(b(He), {
|
|
3519
3516
|
size: 16,
|
|
3520
3517
|
"stroke-width": 2
|
|
3521
|
-
})], 8,
|
|
3522
|
-
O("div",
|
|
3518
|
+
})], 8, Ja)]),
|
|
3519
|
+
O("div", Ya, [v(b(Xn), {
|
|
3523
3520
|
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)]",
|
|
3524
3521
|
size: 14,
|
|
3525
3522
|
"stroke-width": 2
|
|
3526
3523
|
}), g(O("input", {
|
|
3527
|
-
id: `${
|
|
3524
|
+
id: `${lo}-search`,
|
|
3528
3525
|
ref_key: "searchInputRef",
|
|
3529
3526
|
ref: D,
|
|
3530
3527
|
"onUpdate:modelValue": t[0] ||= (e) => T.value = e,
|
|
@@ -3532,48 +3529,48 @@ var ha = [
|
|
|
3532
3529
|
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)]",
|
|
3533
3530
|
placeholder: b(r).mergeTag.picker.searchPlaceholder,
|
|
3534
3531
|
"aria-label": b(r).mergeTag.picker.searchAriaLabel,
|
|
3535
|
-
"aria-controls":
|
|
3536
|
-
"aria-activedescendant":
|
|
3532
|
+
"aria-controls": lo,
|
|
3533
|
+
"aria-activedescendant": se(),
|
|
3537
3534
|
"data-testid": "merge-tag-picker-search",
|
|
3538
|
-
onKeydown: t[1] ||=
|
|
3539
|
-
}, null, 40,
|
|
3540
|
-
|
|
3535
|
+
onKeydown: t[1] ||= U(B(() => {}, ["prevent"]), ["enter"])
|
|
3536
|
+
}, null, 40, Xa), [[z, T.value]])]),
|
|
3537
|
+
de.value ? (s(), C("div", Za, [(s(!0), C(M, null, d(V.value, (e) => (s(), C("button", {
|
|
3541
3538
|
key: e,
|
|
3542
3539
|
type: "button",
|
|
3543
3540
|
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)]",
|
|
3544
3541
|
"data-testid": "merge-tag-picker-group-pill",
|
|
3545
3542
|
"data-group-name": e,
|
|
3546
|
-
onClick: (t) =>
|
|
3547
|
-
}, a(e), 9,
|
|
3543
|
+
onClick: (t) => ae(e)
|
|
3544
|
+
}, a(e), 9, Qa))), 128))])) : x("", !0),
|
|
3548
3545
|
O("div", {
|
|
3549
|
-
id:
|
|
3546
|
+
id: lo,
|
|
3550
3547
|
ref_key: "listRef",
|
|
3551
|
-
ref:
|
|
3548
|
+
ref: te,
|
|
3552
3549
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
3553
3550
|
role: "listbox",
|
|
3554
3551
|
"aria-label": _.value,
|
|
3555
3552
|
"data-testid": "merge-tag-picker-list"
|
|
3556
|
-
}, [le.value ? (s(), C("div",
|
|
3553
|
+
}, [le.value ? (s(), C("div", eo, a(b(r).mergeTag.picker.empty), 1)) : ue.value ? (s(), C("div", to, a(b(r).mergeTag.picker.noResults), 1)) : (s(!0), C(M, { key: 2 }, d(H.value, (e, t) => (s(), C(M, { key: t }, [e.kind === "header" ? (s(), C("button", {
|
|
3557
3554
|
key: 0,
|
|
3558
3555
|
ref_for: !0,
|
|
3559
|
-
ref: (t) =>
|
|
3556
|
+
ref: (t) => re(e.group, t),
|
|
3560
3557
|
type: "button",
|
|
3561
3558
|
"aria-expanded": !P(e.group),
|
|
3562
|
-
"aria-controls":
|
|
3559
|
+
"aria-controls": lo,
|
|
3563
3560
|
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)]",
|
|
3564
3561
|
"data-testid": "merge-tag-picker-group-header",
|
|
3565
3562
|
"data-group-name": e.group,
|
|
3566
3563
|
"data-group-collapsed": P(e.group) ? "true" : "false",
|
|
3567
3564
|
onClick: (t) => I(e.group)
|
|
3568
3565
|
}, [
|
|
3569
|
-
v(b(
|
|
3566
|
+
v(b(Yn), {
|
|
3570
3567
|
size: 12,
|
|
3571
3568
|
"stroke-width": 2,
|
|
3572
3569
|
class: c(["tpl:transition-transform", P(e.group) ? "tpl:-rotate-90" : ""])
|
|
3573
3570
|
}, null, 8, ["class"]),
|
|
3574
3571
|
O("span", null, a(e.group), 1),
|
|
3575
|
-
O("span",
|
|
3576
|
-
], 8,
|
|
3572
|
+
O("span", ro, " (" + a(b(i)(b(r).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
|
|
3573
|
+
], 8, no)) : (s(), C("button", {
|
|
3577
3574
|
key: 1,
|
|
3578
3575
|
id: ce(e.index),
|
|
3579
3576
|
type: "button",
|
|
@@ -3586,26 +3583,26 @@ var ha = [
|
|
|
3586
3583
|
title: w(e.tag),
|
|
3587
3584
|
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 === A.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)]"]),
|
|
3588
3585
|
"data-testid": "merge-tag-picker-item",
|
|
3589
|
-
onMousemove: (t) =>
|
|
3590
|
-
onClick: (t) =>
|
|
3586
|
+
onMousemove: (t) => K(e.index),
|
|
3587
|
+
onClick: (t) => q(e.tag)
|
|
3591
3588
|
}, [
|
|
3592
|
-
O("span",
|
|
3593
|
-
O("span",
|
|
3594
|
-
e.tag.description ? (s(), C("span",
|
|
3595
|
-
e.tag.sample === void 0 ? x("", !0) : (s(), C("span",
|
|
3596
|
-
], 42,
|
|
3597
|
-
], 12,
|
|
3589
|
+
O("span", ao, a(e.tag.label), 1),
|
|
3590
|
+
O("span", oo, a(e.tag.value), 1),
|
|
3591
|
+
e.tag.description ? (s(), C("span", so, a(e.tag.description), 1)) : x("", !0),
|
|
3592
|
+
e.tag.sample === void 0 ? x("", !0) : (s(), C("span", co, a(b(i)(b(r).mergeTag.picker.sample, { sample: e.tag.sample })), 1))
|
|
3593
|
+
], 42, io))], 64))), 128))], 8, $a)
|
|
3594
|
+
], 12, Ga)]),
|
|
3598
3595
|
_: 1
|
|
3599
3596
|
}, 8, ["visible"]));
|
|
3600
3597
|
}
|
|
3601
|
-
}),
|
|
3598
|
+
}), fo = ["data-logic-keyword"], po = /* @__PURE__ */ R({
|
|
3602
3599
|
__name: "LogicTagBadge",
|
|
3603
3600
|
props: {
|
|
3604
3601
|
value: {},
|
|
3605
3602
|
syntax: {}
|
|
3606
3603
|
},
|
|
3607
3604
|
setup(e) {
|
|
3608
|
-
let t = e, n = y(() =>
|
|
3605
|
+
let t = e, n = y(() => Re(t.value, t.syntax)), r = y(() => Me(t.value, t.syntax));
|
|
3609
3606
|
return (e, t) => n.value ? (s(), C("span", {
|
|
3610
3607
|
key: 0,
|
|
3611
3608
|
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",
|
|
@@ -3615,22 +3612,22 @@ var ha = [
|
|
|
3615
3612
|
},
|
|
3616
3613
|
"data-testid": "merge-tag-logic-badge",
|
|
3617
3614
|
"data-logic-keyword": r.value
|
|
3618
|
-
}, a(r.value), 9,
|
|
3615
|
+
}, a(r.value), 9, fo)) : x("", !0);
|
|
3619
3616
|
}
|
|
3620
|
-
}),
|
|
3617
|
+
}), mo = ["aria-labelledby", "data-tpl-theme"], ho = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, go = ["id"], _o = ["aria-label"], vo = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, yo = [
|
|
3621
3618
|
"id",
|
|
3622
3619
|
"placeholder",
|
|
3623
3620
|
"aria-label",
|
|
3624
3621
|
"aria-activedescendant"
|
|
3625
|
-
],
|
|
3622
|
+
], bo = ["aria-label"], xo = {
|
|
3626
3623
|
key: 0,
|
|
3627
3624
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3628
3625
|
"data-testid": "logic-picker-empty"
|
|
3629
|
-
},
|
|
3626
|
+
}, So = {
|
|
3630
3627
|
key: 1,
|
|
3631
3628
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3632
3629
|
"data-testid": "logic-picker-empty"
|
|
3633
|
-
},
|
|
3630
|
+
}, Co = ["data-group-name"], wo = [
|
|
3634
3631
|
"id",
|
|
3635
3632
|
"aria-selected",
|
|
3636
3633
|
"data-selected",
|
|
@@ -3638,19 +3635,19 @@ var ha = [
|
|
|
3638
3635
|
"data-logic-kind",
|
|
3639
3636
|
"onMousemove",
|
|
3640
3637
|
"onClick"
|
|
3641
|
-
],
|
|
3638
|
+
], To = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, Eo = { class: "tpl:text-sm tpl:font-medium" }, Do = {
|
|
3642
3639
|
key: 0,
|
|
3643
3640
|
class: "tpl:flex tpl:items-center"
|
|
3644
|
-
},
|
|
3641
|
+
}, Oo = {
|
|
3645
3642
|
key: 1,
|
|
3646
3643
|
class: "tpl:flex tpl:items-center tpl:gap-1"
|
|
3647
|
-
},
|
|
3644
|
+
}, ko = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Ao = {
|
|
3648
3645
|
key: 0,
|
|
3649
3646
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3650
|
-
},
|
|
3647
|
+
}, jo = "tpl-logic-picker-list", Mo = /* @__PURE__ */ R({
|
|
3651
3648
|
__name: "LogicTagPickerModal",
|
|
3652
3649
|
setup(e) {
|
|
3653
|
-
let n =
|
|
3650
|
+
let n = _t(Ze, "LogicTagPickerModal"), { t: r } = $(), i = L(Ke, Oe.liquid), o = L(yt, null), l = L(rt, null), p = S(""), m = Un(p, 200), _ = S(null), w = y(() => m.value.trim().length > 0), T = S(0);
|
|
3654
3651
|
function E(e) {
|
|
3655
3652
|
let t = m.value.trim().toLowerCase();
|
|
3656
3653
|
return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
|
|
@@ -3705,72 +3702,72 @@ var ha = [
|
|
|
3705
3702
|
rows: e,
|
|
3706
3703
|
items: t
|
|
3707
3704
|
};
|
|
3708
|
-
}), I = y(() => P.value.items), R = y(() => n.tags.value.length === 0 && n.pairs.value.length === 0),
|
|
3705
|
+
}), I = y(() => P.value.items), R = y(() => n.tags.value.length === 0 && n.pairs.value.length === 0), V = y(() => !R.value && I.value.length === 0);
|
|
3709
3706
|
t(() => n.isOpen.value, (e) => {
|
|
3710
3707
|
e && (p.value = "", T.value = 0, u(() => _.value?.focus()));
|
|
3711
3708
|
}), t(I, (e) => {
|
|
3712
3709
|
T.value >= e.length && (T.value = Math.max(0, e.length - 1));
|
|
3713
3710
|
});
|
|
3714
|
-
let
|
|
3715
|
-
function
|
|
3711
|
+
let H = S(null);
|
|
3712
|
+
function W(e) {
|
|
3716
3713
|
n.resolve(e);
|
|
3717
3714
|
}
|
|
3718
|
-
function
|
|
3715
|
+
function G() {
|
|
3719
3716
|
n.resolve(null);
|
|
3720
3717
|
}
|
|
3721
|
-
function
|
|
3718
|
+
function ee(e) {
|
|
3722
3719
|
I.value.length !== 0 && (T.value = Math.max(0, Math.min(I.value.length - 1, T.value + e)), u(() => {
|
|
3723
|
-
|
|
3720
|
+
H.value?.querySelector(`[data-logic-index="${T.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
3724
3721
|
}));
|
|
3725
3722
|
}
|
|
3726
|
-
function
|
|
3727
|
-
if (e.key === "ArrowDown") e.preventDefault(),
|
|
3728
|
-
else if (e.key === "ArrowUp") e.preventDefault(),
|
|
3723
|
+
function K(e) {
|
|
3724
|
+
if (e.key === "ArrowDown") e.preventDefault(), ee(1);
|
|
3725
|
+
else if (e.key === "ArrowUp") e.preventDefault(), ee(-1);
|
|
3729
3726
|
else if (e.key === "Enter") {
|
|
3730
3727
|
e.preventDefault();
|
|
3731
3728
|
let t = I.value[T.value];
|
|
3732
|
-
t &&
|
|
3729
|
+
t && W(t);
|
|
3733
3730
|
}
|
|
3734
3731
|
}
|
|
3735
|
-
function
|
|
3736
|
-
return `${
|
|
3732
|
+
function q(e) {
|
|
3733
|
+
return `${jo}-opt-${e}`;
|
|
3737
3734
|
}
|
|
3738
|
-
function
|
|
3739
|
-
return I.value.length === 0 ? void 0 : `${
|
|
3735
|
+
function J() {
|
|
3736
|
+
return I.value.length === 0 ? void 0 : `${jo}-opt-${T.value}`;
|
|
3740
3737
|
}
|
|
3741
|
-
return (e, t) => (s(), F(
|
|
3738
|
+
return (e, t) => (s(), F(jt, {
|
|
3742
3739
|
visible: b(n).isOpen.value,
|
|
3743
|
-
onClose:
|
|
3744
|
-
onKeydown:
|
|
3740
|
+
onClose: G,
|
|
3741
|
+
onKeydown: K
|
|
3745
3742
|
}, {
|
|
3746
3743
|
default: h(() => [O("div", {
|
|
3747
3744
|
role: "dialog",
|
|
3748
3745
|
"aria-modal": "true",
|
|
3749
|
-
"aria-labelledby": `${
|
|
3746
|
+
"aria-labelledby": `${jo}-title`,
|
|
3750
3747
|
"data-tpl-theme": b(l),
|
|
3751
3748
|
"data-testid": "logic-picker-modal",
|
|
3752
3749
|
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)]",
|
|
3753
3750
|
style: f(b(o))
|
|
3754
3751
|
}, [
|
|
3755
|
-
O("header",
|
|
3756
|
-
id: `${
|
|
3752
|
+
O("header", ho, [O("h2", {
|
|
3753
|
+
id: `${jo}-title`,
|
|
3757
3754
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
3758
|
-
}, a(b(r).logicTag.picker.title), 9,
|
|
3755
|
+
}, a(b(r).logicTag.picker.title), 9, go), O("button", {
|
|
3759
3756
|
type: "button",
|
|
3760
3757
|
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)]",
|
|
3761
3758
|
"aria-label": b(r).logicTag.picker.close,
|
|
3762
3759
|
"data-testid": "logic-picker-close",
|
|
3763
|
-
onClick:
|
|
3764
|
-
}, [v(b(
|
|
3760
|
+
onClick: G
|
|
3761
|
+
}, [v(b(He), {
|
|
3765
3762
|
size: 16,
|
|
3766
3763
|
"stroke-width": 2
|
|
3767
|
-
})], 8,
|
|
3768
|
-
O("div",
|
|
3764
|
+
})], 8, _o)]),
|
|
3765
|
+
O("div", vo, [v(b(Xn), {
|
|
3769
3766
|
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)]",
|
|
3770
3767
|
size: 14,
|
|
3771
3768
|
"stroke-width": 2
|
|
3772
3769
|
}), g(O("input", {
|
|
3773
|
-
id: `${
|
|
3770
|
+
id: `${jo}-search`,
|
|
3774
3771
|
ref_key: "searchInputRef",
|
|
3775
3772
|
ref: _,
|
|
3776
3773
|
"onUpdate:modelValue": t[0] ||= (e) => p.value = e,
|
|
@@ -3778,27 +3775,27 @@ var ha = [
|
|
|
3778
3775
|
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)]",
|
|
3779
3776
|
placeholder: b(r).logicTag.picker.searchPlaceholder,
|
|
3780
3777
|
"aria-label": b(r).logicTag.picker.searchAriaLabel,
|
|
3781
|
-
"aria-controls":
|
|
3782
|
-
"aria-activedescendant":
|
|
3778
|
+
"aria-controls": jo,
|
|
3779
|
+
"aria-activedescendant": J(),
|
|
3783
3780
|
"data-testid": "logic-picker-search",
|
|
3784
|
-
onKeydown: t[1] ||=
|
|
3785
|
-
}, null, 40,
|
|
3781
|
+
onKeydown: t[1] ||= U(B(() => {}, ["prevent"]), ["enter"])
|
|
3782
|
+
}, null, 40, yo), [[z, p.value]])]),
|
|
3786
3783
|
O("div", {
|
|
3787
|
-
id:
|
|
3784
|
+
id: jo,
|
|
3788
3785
|
ref_key: "listRef",
|
|
3789
|
-
ref:
|
|
3786
|
+
ref: H,
|
|
3790
3787
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
3791
3788
|
role: "listbox",
|
|
3792
3789
|
"aria-label": b(r).logicTag.picker.title,
|
|
3793
3790
|
"data-testid": "logic-picker-list"
|
|
3794
|
-
}, [R.value ? (s(), C("div",
|
|
3791
|
+
}, [R.value ? (s(), C("div", xo, a(b(r).logicTag.picker.empty), 1)) : V.value ? (s(), C("div", So, a(b(r).logicTag.picker.noResults), 1)) : (s(!0), C(M, { key: 2 }, d(P.value.rows, (e, n) => (s(), C(M, { key: n }, [e.kind === "header" ? (s(), C("div", {
|
|
3795
3792
|
key: 0,
|
|
3796
3793
|
class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
|
|
3797
3794
|
"data-testid": "logic-picker-header",
|
|
3798
3795
|
"data-group-name": e.label
|
|
3799
|
-
}, a(e.label), 9,
|
|
3796
|
+
}, a(e.label), 9, Co)) : (s(), C("button", {
|
|
3800
3797
|
key: 1,
|
|
3801
|
-
id:
|
|
3798
|
+
id: q(e.index),
|
|
3802
3799
|
type: "button",
|
|
3803
3800
|
role: "option",
|
|
3804
3801
|
"aria-selected": e.index === T.value,
|
|
@@ -3808,34 +3805,34 @@ var ha = [
|
|
|
3808
3805
|
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 === T.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)]"]),
|
|
3809
3806
|
"data-testid": "logic-picker-item",
|
|
3810
3807
|
onMousemove: (t) => T.value = e.index,
|
|
3811
|
-
onClick: (t) =>
|
|
3808
|
+
onClick: (t) => W(e.kind === "tag" ? e.tag : e.pair)
|
|
3812
3809
|
}, [
|
|
3813
|
-
O("span",
|
|
3810
|
+
O("span", To, [O("span", Eo, a(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (s(), C("span", Do, [v(po, {
|
|
3814
3811
|
value: e.tag.value,
|
|
3815
3812
|
syntax: b(i)
|
|
3816
|
-
}, null, 8, ["value", "syntax"])])) : (s(), C("span",
|
|
3817
|
-
v(
|
|
3813
|
+
}, null, 8, ["value", "syntax"])])) : (s(), C("span", Oo, [
|
|
3814
|
+
v(po, {
|
|
3818
3815
|
value: e.pair.before,
|
|
3819
3816
|
syntax: b(i)
|
|
3820
3817
|
}, null, 8, ["value", "syntax"]),
|
|
3821
3818
|
t[2] ||= O("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
|
|
3822
|
-
v(
|
|
3819
|
+
v(po, {
|
|
3823
3820
|
value: e.pair.after,
|
|
3824
3821
|
syntax: b(i)
|
|
3825
3822
|
}, null, 8, ["value", "syntax"])
|
|
3826
3823
|
]))]),
|
|
3827
|
-
O("span",
|
|
3828
|
-
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), C("span",
|
|
3829
|
-
], 42,
|
|
3830
|
-
], 12,
|
|
3824
|
+
O("span", ko, a(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
|
|
3825
|
+
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), C("span", Ao, a(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : x("", !0)
|
|
3826
|
+
], 42, wo))], 64))), 128))], 8, bo)
|
|
3827
|
+
], 12, mo)]),
|
|
3831
3828
|
_: 1
|
|
3832
3829
|
}, 8, ["visible"]));
|
|
3833
3830
|
}
|
|
3834
|
-
}),
|
|
3831
|
+
}), No = ["data-tpl-theme"], Po = { class: "tpl:absolute tpl:inset-0 tpl:overflow-hidden" }, Fo = { class: "tpl-preview-overlay tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Io = { class: "tpl:absolute tpl:left-1/2 tpl:top-2 tpl:flex tpl:-translate-x-1/2 tpl:flex-col tpl:items-center tpl:gap-2" }, Lo = {
|
|
3835
3832
|
key: 0,
|
|
3836
3833
|
"data-testid": "merge-tag-mode-toggle-anchor",
|
|
3837
3834
|
class: "tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-[var(--tpl-shadow-md)]"
|
|
3838
|
-
},
|
|
3835
|
+
}, Ro = { class: "tpl-main tpl-canvas-pane tpl:flex tpl:py-8" }, zo = ["aria-label"], Bo = /*#__PURE__*/ ze(/* @__PURE__ */ R({
|
|
3839
3836
|
__name: "Editor",
|
|
3840
3837
|
props: {
|
|
3841
3838
|
config: {},
|
|
@@ -3850,7 +3847,7 @@ var ha = [
|
|
|
3850
3847
|
},
|
|
3851
3848
|
setup(n, { expose: r }) {
|
|
3852
3849
|
let i = n;
|
|
3853
|
-
l(
|
|
3850
|
+
l($e, {
|
|
3854
3851
|
renderHtml: () => i.renderHtml?.() ?? Promise.reject(/* @__PURE__ */ Error("HTML rendering is unavailable")),
|
|
3855
3852
|
canRenderHtml: () => i.canRenderHtml?.() ?? !1,
|
|
3856
3853
|
cloud: !!i.cloud,
|
|
@@ -3858,29 +3855,29 @@ var ha = [
|
|
|
3858
3855
|
});
|
|
3859
3856
|
let o = {
|
|
3860
3857
|
get tags() {
|
|
3861
|
-
return
|
|
3858
|
+
return X.mergeTags.value;
|
|
3862
3859
|
},
|
|
3863
3860
|
get syntax() {
|
|
3864
|
-
return
|
|
3861
|
+
return X.mergeTagSyntax;
|
|
3865
3862
|
}
|
|
3866
|
-
}, u = i.config.templates ?
|
|
3867
|
-
i.config.collaboration && !u &&
|
|
3868
|
-
let d = i.config.collaboration && u ?
|
|
3863
|
+
}, u = i.config.templates ? gn(i.config.templates, o) : void 0;
|
|
3864
|
+
i.config.collaboration && !u && Dn.warn("config.collaboration needs config.templates: collaboration runs on a loaded template, and only a templates provider loads one. Collaboration is off.");
|
|
3865
|
+
let d = i.config.collaboration && u ? Hr({
|
|
3869
3866
|
provider: i.config.collaboration,
|
|
3870
3867
|
loadTemplate: (e) => u.load(e),
|
|
3871
3868
|
user: i.config.user,
|
|
3872
3869
|
mergeTags: o,
|
|
3873
3870
|
onRemoteChange: i.config.onRemoteChange,
|
|
3874
3871
|
onError: i.config.onError
|
|
3875
|
-
}) : null, p = u && d ?
|
|
3872
|
+
}) : null, p = u && d ? yi(u, d.core, () => {
|
|
3876
3873
|
let e = _.state.template;
|
|
3877
3874
|
return e ? {
|
|
3878
3875
|
...N(e),
|
|
3879
|
-
content:
|
|
3876
|
+
content: Ne(N(_.content.value))
|
|
3880
3877
|
} : null;
|
|
3881
3878
|
}) : u, m = S(0);
|
|
3882
|
-
l(
|
|
3883
|
-
let _ =
|
|
3879
|
+
l(Qe, i.config.localization);
|
|
3880
|
+
let _ = te({
|
|
3884
3881
|
localization: i.config.localization ?? { locales: [] },
|
|
3885
3882
|
onLocaleChange: i.config.onLocaleChange,
|
|
3886
3883
|
onStructureChange: () => {
|
|
@@ -3888,39 +3885,39 @@ var ha = [
|
|
|
3888
3885
|
},
|
|
3889
3886
|
content: i.config.content,
|
|
3890
3887
|
defaultFontFamily: i.config.fonts?.defaultFont,
|
|
3891
|
-
templateDefaults:
|
|
3888
|
+
templateDefaults: $n(i.config),
|
|
3892
3889
|
templates: p,
|
|
3893
3890
|
onError: i.config.onError,
|
|
3894
3891
|
lockedBlocks: d?.locks,
|
|
3895
3892
|
lockLocale: d?.core.lockLocale,
|
|
3896
3893
|
lockSessionId: d?.core.sessionId
|
|
3897
|
-
}), T =
|
|
3898
|
-
l(
|
|
3899
|
-
let D = i.cloud ? i.cloud.attach({ editor: _ }) : null, A = p ?
|
|
3894
|
+
}), T = Ue(_);
|
|
3895
|
+
l(dt, T.content), _.setCustomBlockDefinitions(i.config.customBlocks ?? []), d && t(_.activeLocale, (e) => d.core.setLockLocale(e), { flush: "sync" }), d?.attach(_);
|
|
3896
|
+
let D = i.cloud ? i.cloud.attach({ editor: _ }) : null, A = p ? li({
|
|
3900
3897
|
provider: p,
|
|
3901
3898
|
editor: _,
|
|
3902
3899
|
guardUnsavedChanges: i.config.templates?.unsavedChangesGuard,
|
|
3903
3900
|
getSaveGate: i.cloud ? () => i.cloud.getSaveGate() : void 0
|
|
3904
3901
|
}) : null;
|
|
3905
3902
|
i.config.onDirtyChange && t(() => _.state.isDirty, (e) => i.config.onDirtyChange(e));
|
|
3906
|
-
let j = S(null), M = i.config.savedBlocks ?
|
|
3903
|
+
let j = S(null), M = i.config.savedBlocks ? si({
|
|
3907
3904
|
provider: i.config.savedBlocks,
|
|
3908
3905
|
editor: _,
|
|
3909
3906
|
onError: i.config.onError,
|
|
3910
3907
|
isAvailable: i.cloud ? () => i.cloud.isSavedBlocksAvailable() : void 0
|
|
3911
|
-
}) : null, P = I(() => import("./SavedBlocksPanels-
|
|
3908
|
+
}) : null, P = I(() => import("./SavedBlocksPanels-BKUzbamj.js")), L = i.config.media || i.config.onRequestMedia ? ai({
|
|
3912
3909
|
provider: i.config.media,
|
|
3913
3910
|
onRequestMedia: i.config.onRequestMedia,
|
|
3914
3911
|
getTemplateId: () => _.state.template?.id,
|
|
3915
3912
|
onError: i.config.onError
|
|
3916
|
-
}) : null, R = I(() => import("./MediaPanels-
|
|
3913
|
+
}) : null, R = I(() => import("./MediaPanels-FI4I8asn.js")), z = i.config.testEmail ? mi({
|
|
3917
3914
|
provider: i.config.testEmail,
|
|
3918
3915
|
getContent: () => _.content.value,
|
|
3919
3916
|
renderMjml: i.renderMjml,
|
|
3920
3917
|
usesLocalRenderer: i.usesLocalRenderer,
|
|
3921
3918
|
onError: i.config.onError,
|
|
3922
3919
|
isAvailable: i.cloud ? () => i.cloud.isTestEmailAvailable() : void 0
|
|
3923
|
-
}) : null,
|
|
3920
|
+
}) : null, V = I(() => import("./TestEmailPanel-DhB1CSpg.js")), U = i.config.comments ? Ur({
|
|
3924
3921
|
provider: i.config.comments,
|
|
3925
3922
|
editor: _,
|
|
3926
3923
|
user: i.config.user,
|
|
@@ -3928,7 +3925,7 @@ var ha = [
|
|
|
3928
3925
|
onError: i.config.onError,
|
|
3929
3926
|
isAvailable: i.cloud ? () => i.cloud.isCommentsAvailable() : void 0,
|
|
3930
3927
|
isBlockSaved: i.cloud ? (e) => i.cloud.isBlockSaved(e) : void 0
|
|
3931
|
-
}) : null,
|
|
3928
|
+
}) : null, G = I(() => import("./CommentsPanel-B5NqPMmY.js")), ee = I(() => import("./AiPanels-CwKmXzyr.js")), K = i.config.ai ? Qr({
|
|
3932
3929
|
provider: i.config.ai,
|
|
3933
3930
|
editor: _,
|
|
3934
3931
|
localization: i.config.localization ?? { locales: [] },
|
|
@@ -3937,62 +3934,62 @@ var ha = [
|
|
|
3937
3934
|
m.value++;
|
|
3938
3935
|
},
|
|
3939
3936
|
collaboration: d,
|
|
3940
|
-
history: () =>
|
|
3937
|
+
history: () => X.history,
|
|
3941
3938
|
reload: A ? (e, t) => A.load(e, t) : null,
|
|
3942
|
-
altMaxLength: () =>
|
|
3943
|
-
mergeTags: () =>
|
|
3944
|
-
normalize: (e, t) =>
|
|
3945
|
-
commentsOpen:
|
|
3939
|
+
altMaxLength: () => xn(Bt(i.config)),
|
|
3940
|
+
mergeTags: () => ni(X.mergeTags.value, X.mergeTagSyntax),
|
|
3941
|
+
normalize: (e, t) => mn(e, t, o),
|
|
3942
|
+
commentsOpen: U?.isOpen ?? null,
|
|
3946
3943
|
onError: i.config.onError
|
|
3947
3944
|
}) : null;
|
|
3948
|
-
|
|
3949
|
-
let
|
|
3950
|
-
l(
|
|
3951
|
-
let
|
|
3945
|
+
K && l(mt, K);
|
|
3946
|
+
let q = We(_, i.config.customBlocks ?? []);
|
|
3947
|
+
l(vt, q);
|
|
3948
|
+
let J = i.config.translation ? Lr({
|
|
3952
3949
|
provider: i.config.translation,
|
|
3953
3950
|
editor: _,
|
|
3954
3951
|
localization: i.config.localization,
|
|
3955
3952
|
collaboration: d,
|
|
3956
|
-
history: () =>
|
|
3953
|
+
history: () => X.history,
|
|
3957
3954
|
definitions: () => i.config.customBlocks ?? [],
|
|
3958
|
-
syntax: () =>
|
|
3959
|
-
coverage: () =>
|
|
3955
|
+
syntax: () => X.mergeTagSyntax,
|
|
3956
|
+
coverage: () => q.value
|
|
3960
3957
|
}) : null;
|
|
3961
|
-
|
|
3962
|
-
let
|
|
3958
|
+
J && l(gt, J);
|
|
3959
|
+
let Y = S(null);
|
|
3963
3960
|
t([() => _.state.template?.id ?? null, _.loadVersion], () => {
|
|
3964
|
-
|
|
3961
|
+
Y.value = null;
|
|
3965
3962
|
}, { flush: "sync" }), t(() => Q(_.content.value), (e) => {
|
|
3966
|
-
|
|
3963
|
+
Y.value && Y.value.language !== e && (Y.value = null);
|
|
3967
3964
|
}, { flush: "sync" });
|
|
3968
|
-
let
|
|
3965
|
+
let ne = jr({
|
|
3969
3966
|
editor: _,
|
|
3970
|
-
history: () =>
|
|
3967
|
+
history: () => X.history,
|
|
3971
3968
|
collaboration: d
|
|
3972
3969
|
});
|
|
3973
|
-
l(
|
|
3970
|
+
l(qe, { setDefaultLocale(e) {
|
|
3974
3971
|
let t = {
|
|
3975
3972
|
language: e,
|
|
3976
3973
|
old: Q(_.content.value),
|
|
3977
|
-
count:
|
|
3978
|
-
}, n =
|
|
3979
|
-
return n.applied && (
|
|
3974
|
+
count: De(_.content.value, e, i.config.customBlocks).length
|
|
3975
|
+
}, n = ne.setDefaultLocale(e);
|
|
3976
|
+
return n.applied && (Y.value = t), n;
|
|
3980
3977
|
} });
|
|
3981
|
-
let
|
|
3982
|
-
|
|
3983
|
-
let
|
|
3978
|
+
let re = I(() => import("./LocaleNotices-CDK_9D7P.js")), ie = I(() => import("./CollaborationNotices-C27GCMvK.js")), ae = I(() => import("./CloudPanels-Bmlf05Il.js")), oe = I(() => import("./CloudHeaderExtras-Cqhw-jMz.js")), se = I(() => import("./VersionHistoryPanels-BPubvYIE.js")), ce = gi(i.config.templates?.autoSave, !1), le = ce && A !== null;
|
|
3979
|
+
ce && A !== null && !A.canSave.value && Dn.warn("config.templates.autoSave is on but this provider's save is false — there is nothing to persist to. Give it a real save function, or use `onChange` to persist the content yourself."), i.config.changeDebounce !== void 0 && A !== null && i.config.templates?.autoSave === void 0 && !i.config.onChange && Dn.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.");
|
|
3980
|
+
let ue = i.config.onChange || le ? {
|
|
3984
3981
|
onChange: () => {
|
|
3985
|
-
i.config.onChange?.(JSON.parse(JSON.stringify(_.state.content))),
|
|
3982
|
+
i.config.onChange?.(JSON.parse(JSON.stringify(_.state.content))), le && A.requestAutoSave();
|
|
3986
3983
|
},
|
|
3987
3984
|
...i.config.changeDebounce === void 0 ? {} : { debounce: i.config.changeDebounce }
|
|
3988
|
-
} : null,
|
|
3985
|
+
} : null, de = {
|
|
3989
3986
|
...M ? { savedBlocks: M.capability } : {},
|
|
3990
3987
|
...A ? { templates: A.capability } : {},
|
|
3991
3988
|
...z ? { testEmail: z.capability } : {},
|
|
3992
|
-
...
|
|
3989
|
+
...U ? { comments: U.capability } : {},
|
|
3993
3990
|
...d ? { collaboration: d.capability } : {},
|
|
3994
|
-
...
|
|
3995
|
-
},
|
|
3991
|
+
...K ? { ai: K.capability } : {}
|
|
3992
|
+
}, X = nn({
|
|
3996
3993
|
editor: _,
|
|
3997
3994
|
containerEl: j,
|
|
3998
3995
|
config: {
|
|
@@ -4014,28 +4011,28 @@ var ha = [
|
|
|
4014
4011
|
canDropMedia: L?.canDrop ?? null,
|
|
4015
4012
|
resolvePreview: i.config.resolvePreview,
|
|
4016
4013
|
resolveImageUrl: i.config.resolveImageUrl,
|
|
4017
|
-
lint:
|
|
4014
|
+
lint: Bt(i.config),
|
|
4018
4015
|
locale: i.config.locale
|
|
4019
4016
|
},
|
|
4020
4017
|
translations: i.translations,
|
|
4021
4018
|
fontsManager: i.fontsManager,
|
|
4022
|
-
autoSaveOptions:
|
|
4023
|
-
capabilities:
|
|
4019
|
+
autoSaveOptions: ue,
|
|
4020
|
+
capabilities: de,
|
|
4024
4021
|
editorRoot: i.shadowRoot,
|
|
4025
4022
|
history: d?.history
|
|
4026
|
-
}),
|
|
4023
|
+
}), fe = S("content");
|
|
4027
4024
|
t(() => _.state.template?.id, () => {
|
|
4028
|
-
_.selectedBlock.value && (
|
|
4025
|
+
_.selectedBlock.value && (fe.value = "content");
|
|
4029
4026
|
});
|
|
4030
|
-
let
|
|
4031
|
-
core:
|
|
4032
|
-
capabilities:
|
|
4033
|
-
}) : null, he = i.config.versionHistory ?
|
|
4027
|
+
let pe = i.cloud && D ? i.cloud.ready({
|
|
4028
|
+
core: X,
|
|
4029
|
+
capabilities: de
|
|
4030
|
+
}) : null, he = i.config.versionHistory ? hi({
|
|
4034
4031
|
provider: i.config.versionHistory,
|
|
4035
|
-
editor:
|
|
4036
|
-
history:
|
|
4037
|
-
conditionPreview:
|
|
4038
|
-
autoSave:
|
|
4032
|
+
editor: pn(_, o),
|
|
4033
|
+
history: X.history,
|
|
4034
|
+
conditionPreview: X.conditionPreview,
|
|
4035
|
+
autoSave: X.autoSave,
|
|
4039
4036
|
collaboration: d ? {
|
|
4040
4037
|
suspend: d.core.suspend,
|
|
4041
4038
|
resume: d.core.resume,
|
|
@@ -4048,70 +4045,70 @@ var ha = [
|
|
|
4048
4045
|
} : null,
|
|
4049
4046
|
onError: i.config.onError
|
|
4050
4047
|
}) : null;
|
|
4051
|
-
he && (
|
|
4052
|
-
let ge = y(() =>
|
|
4048
|
+
he && (de.versionHistory = he.capability);
|
|
4049
|
+
let ge = y(() => U?.isOpen.value === !0 || K !== null && K.panel.value !== null || D?.panelState.rightPanelOpen.value === !0), _e = y(() => _.state.previewMode ? "tpl:left-0 tpl:right-0" : ge.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"), ve = S(null), ye = S(0), be = y(() => ({ top: `calc(3.5 * var(--tpl-base-size) + ${ye.value}px)` })), xe;
|
|
4053
4050
|
e(() => {
|
|
4054
4051
|
ye.value = ve.value?.offsetHeight ?? 0, ve.value && typeof ResizeObserver < "u" && (xe = new ResizeObserver(([e]) => {
|
|
4055
4052
|
e && (ye.value = e.borderBoxSize?.[0]?.blockSize ?? e.contentRect.height);
|
|
4056
4053
|
}), xe.observe(ve.value));
|
|
4057
4054
|
}), E(() => xe?.disconnect());
|
|
4058
|
-
let { showNotice: Se } =
|
|
4055
|
+
let { showNotice: Se } = cn(() => i.config.smallScreenNotice);
|
|
4059
4056
|
e(async () => {
|
|
4060
4057
|
await i.fontsManager.loadCustomFonts();
|
|
4061
4058
|
}), E(() => {
|
|
4062
|
-
i.fontsManager.cleanupFontLinks(),
|
|
4059
|
+
i.fontsManager.cleanupFontLinks(), K?.destroy(), i.cloud?.destroy(), X.destroy();
|
|
4063
4060
|
});
|
|
4064
|
-
let Ce = A ?? _,
|
|
4061
|
+
let Ce = A ?? _, Z = Tn(X.editorRoot);
|
|
4065
4062
|
return r({
|
|
4066
4063
|
getLocale: () => _.activeLocale.value ?? Q(_.content.value),
|
|
4067
4064
|
setLocale: (e) => _.setActiveLocale(e),
|
|
4068
4065
|
getContent: () => _.content.value,
|
|
4069
4066
|
setContent: (e) => _.setContent(e),
|
|
4070
4067
|
insertBlock: (e) => {
|
|
4071
|
-
if (_.state.previewMode) return
|
|
4072
|
-
let t =
|
|
4073
|
-
return
|
|
4068
|
+
if (_.state.previewMode) return Dn.warn("insertBlock() does nothing in preview mode."), null;
|
|
4069
|
+
let t = me(e);
|
|
4070
|
+
return vi(_, t) ? (Z(t.id), t.id) : null;
|
|
4074
4071
|
},
|
|
4075
4072
|
setTheme: (e) => _.setUiTheme(e),
|
|
4076
|
-
setMergeTags:
|
|
4073
|
+
setMergeTags: X.setMergeTags,
|
|
4077
4074
|
isDirty: () => _.state.isDirty,
|
|
4078
4075
|
create: Ce.create,
|
|
4079
4076
|
load: Ce.load,
|
|
4080
4077
|
save: Ce.save,
|
|
4081
|
-
renderCustomBlock:
|
|
4082
|
-
getCustomBlockStylesheet: (e) =>
|
|
4078
|
+
renderCustomBlock: X.registry.renderCustomBlock,
|
|
4079
|
+
getCustomBlockStylesheet: (e) => X.registry.getDefinition(e)?.stylesheet
|
|
4083
4080
|
}), (e, t) => (s(), C("div", {
|
|
4084
4081
|
ref_key: "rootEl",
|
|
4085
4082
|
ref: j,
|
|
4086
4083
|
class: c(["tpl tpl:relative tpl:h-full", { "tpl:dark": b(_).state.darkMode }]),
|
|
4087
|
-
"data-tpl-theme": b(
|
|
4088
|
-
style: f(b(
|
|
4089
|
-
onDragover: t[8] ||=
|
|
4090
|
-
onDrop: t[9] ||=
|
|
4084
|
+
"data-tpl-theme": b(X).resolvedTheme.value,
|
|
4085
|
+
style: f(b(X).themeStyles.value),
|
|
4086
|
+
onDragover: t[8] ||= B(() => {}, ["prevent"]),
|
|
4087
|
+
onDrop: t[9] ||= B(() => {}, ["prevent"])
|
|
4091
4088
|
}, [
|
|
4092
|
-
v(
|
|
4093
|
-
O("div",
|
|
4094
|
-
v(
|
|
4089
|
+
v(Ni),
|
|
4090
|
+
O("div", Po, [
|
|
4091
|
+
v(Wa, {
|
|
4095
4092
|
editor: b(_),
|
|
4096
4093
|
localization: i.config.localization,
|
|
4097
|
-
core: b(
|
|
4094
|
+
core: b(X),
|
|
4098
4095
|
templates: b(A),
|
|
4099
4096
|
"show-template-name": n.config.templates?.nameField !== !1,
|
|
4100
4097
|
"test-email": b(z),
|
|
4101
4098
|
"version-history": b(he),
|
|
4102
|
-
comments: b(
|
|
4099
|
+
comments: b(U),
|
|
4103
4100
|
collaboration: b(d),
|
|
4104
|
-
ai: b(
|
|
4101
|
+
ai: b(K)
|
|
4105
4102
|
}, k({ _: 2 }, [b(D) ? {
|
|
4106
4103
|
name: "left-extras",
|
|
4107
|
-
fn: h(() => [v(b(
|
|
4104
|
+
fn: h(() => [v(b(oe), {
|
|
4108
4105
|
part: "left",
|
|
4109
4106
|
cloud: b(D)
|
|
4110
4107
|
}, null, 8, ["cloud"])]),
|
|
4111
4108
|
key: "0"
|
|
4112
4109
|
} : void 0, b(D) ? {
|
|
4113
4110
|
name: "right-extras",
|
|
4114
|
-
fn: h(() => [v(b(
|
|
4111
|
+
fn: h(() => [v(b(oe), {
|
|
4115
4112
|
part: "right",
|
|
4116
4113
|
cloud: b(D)
|
|
4117
4114
|
}, null, 8, ["cloud"])]),
|
|
@@ -4128,31 +4125,31 @@ var ha = [
|
|
|
4128
4125
|
"collaboration",
|
|
4129
4126
|
"ai"
|
|
4130
4127
|
]),
|
|
4131
|
-
g(v(
|
|
4128
|
+
g(v(Ui, { style: f(be.value) }, null, 8, ["style"]), [[H, !b(_).state.previewMode]]),
|
|
4132
4129
|
O("div", {
|
|
4133
4130
|
class: c(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]", _e.value]),
|
|
4134
4131
|
style: f([{ transition: "left var(--tpl-transition),\n right var(--tpl-transition)" }, be.value])
|
|
4135
|
-
}, [O("div",
|
|
4136
|
-
default: h(() => [b(_).state.previewMode && !b(
|
|
4137
|
-
"sample-mode": b(
|
|
4138
|
-
onChange: t[0] ||= (e) => b(
|
|
4132
|
+
}, [O("div", Fo, [O("div", Io, [v(W, { name: "tpl-preview-pill" }, {
|
|
4133
|
+
default: h(() => [b(_).state.previewMode && !b(X).previewResolution.supersedesSamples.value ? (s(), C("div", Lo, [v(Bn, {
|
|
4134
|
+
"sample-mode": b(X).mergeTagSampleMode.value,
|
|
4135
|
+
onChange: t[0] ||= (e) => b(X).mergeTagSampleMode.value = e
|
|
4139
4136
|
}, null, 8, ["sample-mode"])])) : x("", !0)]),
|
|
4140
4137
|
_: 1
|
|
4141
|
-
}), v(
|
|
4142
|
-
default: h(() => [b(
|
|
4138
|
+
}), v(W, { name: "tpl-preview-pill" }, {
|
|
4139
|
+
default: h(() => [b(X).conditionPreview.hasHiddenBlocks.value && b(X).appliesConditionFilter.value ? (s(), C("button", {
|
|
4143
4140
|
key: 0,
|
|
4144
4141
|
type: "button",
|
|
4145
|
-
class: c([b(
|
|
4142
|
+
class: c([b(Tt), "tpl:shadow-[var(--tpl-shadow-md)]"]),
|
|
4146
4143
|
"data-testid": "restore-hidden-blocks",
|
|
4147
|
-
onClick: t[1] ||= (e) => b(
|
|
4148
|
-
}, [v(b(
|
|
4144
|
+
onClick: t[1] ||= (e) => b(X).conditionPreview.reset()
|
|
4145
|
+
}, [v(b(On), {
|
|
4149
4146
|
size: 16,
|
|
4150
4147
|
"stroke-width": 2
|
|
4151
|
-
}), w(" " + a(b(
|
|
4148
|
+
}), w(" " + a(b(X).t.blockSettings.restoreHiddenBlocks), 1)], 2)) : x("", !0)]),
|
|
4152
4149
|
_: 1
|
|
4153
|
-
})])]), O("main",
|
|
4150
|
+
})])]), O("main", Ro, [v(Mi, {
|
|
4154
4151
|
viewport: b(_).state.viewport,
|
|
4155
|
-
content: b(
|
|
4152
|
+
content: b(X).previewResolution.content.value,
|
|
4156
4153
|
"selected-block-id": b(_).state.selectedBlockId,
|
|
4157
4154
|
"dark-mode": b(_).state.darkMode,
|
|
4158
4155
|
"preview-mode": b(_).state.previewMode,
|
|
@@ -4165,7 +4162,7 @@ var ha = [
|
|
|
4165
4162
|
"preview-mode",
|
|
4166
4163
|
"onSelectBlock"
|
|
4167
4164
|
])])], 6),
|
|
4168
|
-
n.config.branding === !1 ? x("", !0) : (s(), F(
|
|
4165
|
+
n.config.branding === !1 ? x("", !0) : (s(), F(pa, {
|
|
4169
4166
|
key: 0,
|
|
4170
4167
|
"position-class": [_e.value]
|
|
4171
4168
|
}, null, 8, ["position-class"])),
|
|
@@ -4174,21 +4171,21 @@ var ha = [
|
|
|
4174
4171
|
role: "status",
|
|
4175
4172
|
"aria-live": "polite",
|
|
4176
4173
|
"aria-atomic": "true",
|
|
4177
|
-
"aria-label": b(
|
|
4178
|
-
}, a(b(
|
|
4179
|
-
g(v(
|
|
4180
|
-
tab:
|
|
4181
|
-
"onUpdate:tab": t[2] ||= (e) =>
|
|
4174
|
+
"aria-label": b(X).t.landmarks.reorderAnnouncements
|
|
4175
|
+
}, a(b(X).keyboardReorder.announcement.value), 9, zo),
|
|
4176
|
+
g(v(oa, {
|
|
4177
|
+
tab: fe.value,
|
|
4178
|
+
"onUpdate:tab": t[2] ||= (e) => fe.value = e,
|
|
4182
4179
|
style: f([be.value, { "transition-property": "right" }]),
|
|
4183
4180
|
"selected-block": b(_).selectedBlock.value ? b(T).displayBlock(b(_).selectedBlock.value) : null,
|
|
4184
4181
|
settings: b(T).settings.value,
|
|
4185
4182
|
"shifted-left": ge.value,
|
|
4186
4183
|
onUpdateBlock: t[3] ||= (e) => b(_).updateBlock(b(_).state.selectedBlockId, e),
|
|
4187
4184
|
onDeleteBlock: t[4] ||= () => {
|
|
4188
|
-
b(_).state.selectedBlockId && b(
|
|
4185
|
+
b(_).state.selectedBlockId && b(X).blockActions.deleteBlock(b(_).state.selectedBlockId);
|
|
4189
4186
|
},
|
|
4190
4187
|
onDuplicateBlock: t[5] ||= () => {
|
|
4191
|
-
b(_).selectedBlock.value && b(
|
|
4188
|
+
b(_).selectedBlock.value && b(X).blockActions.duplicateBlock(b(_).selectedBlock.value);
|
|
4192
4189
|
},
|
|
4193
4190
|
onUpdateSettings: t[6] ||= (e) => b(_).updateSettings(e)
|
|
4194
4191
|
}, null, 8, [
|
|
@@ -4197,19 +4194,19 @@ var ha = [
|
|
|
4197
4194
|
"selected-block",
|
|
4198
4195
|
"settings",
|
|
4199
4196
|
"shifted-left"
|
|
4200
|
-
]), [[
|
|
4197
|
+
]), [[H, !b(_).state.previewMode]]),
|
|
4201
4198
|
O("div", {
|
|
4202
4199
|
ref_key: "topChrome",
|
|
4203
4200
|
ref: ve,
|
|
4204
4201
|
class: "tpl-top-chrome tpl:absolute tpl:top-14 tpl:right-0 tpl:left-0 tpl:z-40"
|
|
4205
|
-
}, [b(he)?.isAvailable.value ? (s(), F(b(
|
|
4202
|
+
}, [b(he)?.isAvailable.value ? (s(), F(b(se), {
|
|
4206
4203
|
key: 0,
|
|
4207
4204
|
feature: b(he)
|
|
4208
|
-
}, null, 8, ["feature"])) : x("", !0), n.config.localization ? (s(), F(
|
|
4205
|
+
}, null, 8, ["feature"])) : x("", !0), n.config.localization ? (s(), F(Ar, {
|
|
4209
4206
|
key: 1,
|
|
4210
4207
|
editor: b(_),
|
|
4211
4208
|
locales: n.config.localization.locales,
|
|
4212
|
-
feature: b(
|
|
4209
|
+
feature: b(J),
|
|
4213
4210
|
change: m.value
|
|
4214
4211
|
}, null, 8, [
|
|
4215
4212
|
"editor",
|
|
@@ -4219,11 +4216,11 @@ var ha = [
|
|
|
4219
4216
|
])) : x("", !0)], 512)
|
|
4220
4217
|
]),
|
|
4221
4218
|
O("div", {
|
|
4222
|
-
ref: (e) => b(
|
|
4219
|
+
ref: (e) => b(X).popoverRoot.value = e,
|
|
4223
4220
|
class: "tpl-popover-root"
|
|
4224
4221
|
}, null, 512),
|
|
4225
|
-
v(
|
|
4226
|
-
v(
|
|
4222
|
+
v(uo),
|
|
4223
|
+
v(Mo),
|
|
4227
4224
|
b(M)?.isAvailable.value ? (s(), F(b(P), {
|
|
4228
4225
|
key: 0,
|
|
4229
4226
|
feature: b(M)
|
|
@@ -4233,8 +4230,8 @@ var ha = [
|
|
|
4233
4230
|
feature: b(L),
|
|
4234
4231
|
provider: n.config.media,
|
|
4235
4232
|
locale: n.config.locale,
|
|
4236
|
-
"ui-theme": b(
|
|
4237
|
-
"popover-target": b(
|
|
4233
|
+
"ui-theme": b(X).resolvedTheme.value,
|
|
4234
|
+
"popover-target": b(X).popoverRoot.value
|
|
4238
4235
|
}, null, 8, [
|
|
4239
4236
|
"feature",
|
|
4240
4237
|
"provider",
|
|
@@ -4242,36 +4239,36 @@ var ha = [
|
|
|
4242
4239
|
"ui-theme",
|
|
4243
4240
|
"popover-target"
|
|
4244
4241
|
])) : x("", !0),
|
|
4245
|
-
b(z)?.isAvailable.value ? (s(), F(b(
|
|
4242
|
+
b(z)?.isAvailable.value ? (s(), F(b(V), {
|
|
4246
4243
|
key: 2,
|
|
4247
4244
|
feature: b(z)
|
|
4248
4245
|
}, null, 8, ["feature"])) : x("", !0),
|
|
4249
|
-
b(
|
|
4246
|
+
b(U)?.isAvailable.value ? (s(), F(b(G), {
|
|
4250
4247
|
key: 3,
|
|
4251
|
-
feature: b(
|
|
4248
|
+
feature: b(U)
|
|
4252
4249
|
}, null, 8, ["feature"])) : x("", !0),
|
|
4253
|
-
b(
|
|
4250
|
+
b(K) ? (s(), F(b(ee), {
|
|
4254
4251
|
key: 4,
|
|
4255
|
-
feature: b(
|
|
4252
|
+
feature: b(K)
|
|
4256
4253
|
}, null, 8, ["feature"])) : x("", !0),
|
|
4257
|
-
b(d) ||
|
|
4258
|
-
default: h(() => [b(d) ? (s(), F(b(
|
|
4254
|
+
b(d) || Y.value ? (s(), F(rr, { key: 5 }, {
|
|
4255
|
+
default: h(() => [b(d) ? (s(), F(b(ie), {
|
|
4259
4256
|
key: 0,
|
|
4260
4257
|
feature: b(d)
|
|
4261
|
-
}, null, 8, ["feature"])) : x("", !0),
|
|
4258
|
+
}, null, 8, ["feature"])) : x("", !0), Y.value ? (s(), F(b(re), {
|
|
4262
4259
|
key: 1,
|
|
4263
|
-
notice:
|
|
4264
|
-
onDismiss: t[7] ||= (e) =>
|
|
4260
|
+
notice: Y.value,
|
|
4261
|
+
onDismiss: t[7] ||= (e) => Y.value = null
|
|
4265
4262
|
}, null, 8, ["notice"])) : x("", !0)]),
|
|
4266
4263
|
_: 1
|
|
4267
4264
|
})) : x("", !0),
|
|
4268
|
-
n.cloud && b(D) && b(
|
|
4265
|
+
n.cloud && b(D) && b(pe) ? (s(), F(b(ae), {
|
|
4269
4266
|
key: 6,
|
|
4270
4267
|
editor: b(_),
|
|
4271
|
-
core: b(
|
|
4268
|
+
core: b(X),
|
|
4272
4269
|
runtime: n.cloud,
|
|
4273
4270
|
cloud: b(D),
|
|
4274
|
-
ready: b(
|
|
4271
|
+
ready: b(pe)
|
|
4275
4272
|
}, null, 8, [
|
|
4276
4273
|
"editor",
|
|
4277
4274
|
"core",
|
|
@@ -4279,23 +4276,23 @@ var ha = [
|
|
|
4279
4276
|
"cloud",
|
|
4280
4277
|
"ready"
|
|
4281
4278
|
])) : x("", !0),
|
|
4282
|
-
b(Se) ? (s(), F(
|
|
4283
|
-
], 46,
|
|
4279
|
+
b(Se) ? (s(), F(da, { key: 7 })) : x("", !0)
|
|
4280
|
+
], 46, No));
|
|
4284
4281
|
}
|
|
4285
|
-
}), [["__scopeId", "data-v-
|
|
4286
|
-
function
|
|
4287
|
-
return e.replace(
|
|
4282
|
+
}), [["__scopeId", "data-v-e3760a37"]]), Vo = /@import\s*(?:url\(\s*(?:"[^"]*"|'[^']*'|[^)]*)\s*\)|"[^"]*"|'[^']*')[^;]*;/g;
|
|
4283
|
+
function Ho(e) {
|
|
4284
|
+
return e.replace(Vo, "");
|
|
4288
4285
|
}
|
|
4289
4286
|
// src/utils/renderProvider.ts
|
|
4290
|
-
function
|
|
4287
|
+
function Uo(e) {
|
|
4291
4288
|
return {
|
|
4292
4289
|
customFonts: e.customFonts.value,
|
|
4293
4290
|
defaultFallback: e.defaultFallback.value
|
|
4294
4291
|
};
|
|
4295
4292
|
}
|
|
4296
|
-
async function
|
|
4297
|
-
let n =
|
|
4298
|
-
return a || (
|
|
4293
|
+
async function Wo(e, t) {
|
|
4294
|
+
let n = Ne(e.getContent()), r = t?.locale ?? Q(n), i = t?.locale !== void 0 || n.settings?.locales?.length ? X(n, r) : n, a = e.getLayout?.(), o = a ? Le(X(a, r, { missing: "default" }), i) : i;
|
|
4295
|
+
return a || (ye(o), de(o)), await Zn(o, {
|
|
4299
4296
|
renderCustomBlock: e.renderCustomBlock,
|
|
4300
4297
|
getCustomBlockStylesheet: e.getCustomBlockStylesheet
|
|
4301
4298
|
}), {
|
|
@@ -4303,7 +4300,7 @@ async function Ho(e, t) {
|
|
|
4303
4300
|
fonts: e.getFonts()
|
|
4304
4301
|
};
|
|
4305
4302
|
}
|
|
4306
|
-
function
|
|
4303
|
+
function Go(e) {
|
|
4307
4304
|
async function t(t) {
|
|
4308
4305
|
let n = e.provider, r = n?.toMjml?.bind(n);
|
|
4309
4306
|
return r ? r(await e.buildPayload(t)) : e.renderLocalMjml(t);
|
|
@@ -4329,69 +4326,69 @@ function Uo(e) {
|
|
|
4329
4326
|
};
|
|
4330
4327
|
}
|
|
4331
4328
|
// \0virtual:editor-css
|
|
4332
|
-
var Wo = "@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;-webkit-user-select:none;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{-webkit-user-select:none;user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;-webkit-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;-webkit-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}[data-v-7d9a1872] .tpl-cropper-background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper{background-color:transparent!important}[data-v-7d9a1872] .vue-advanced-cropper__background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper__foreground{background-color:var(--tpl-overlay)!important}\n/*$vite$:1*/", Go = null;
|
|
4333
|
-
function
|
|
4334
|
-
if (
|
|
4329
|
+
var Ko = "@import\"https://fonts.bunny.net/css?family=geist:400,500,600\";.tpl-loading-track[data-v-e61f3b63]{height:3px;width:100%;border-radius:9999px;background:linear-gradient(90deg,transparent 0%,color-mix(in srgb,var(--tpl-primary) 10%,transparent) 15%,color-mix(in srgb,var(--tpl-primary) 30%,transparent) 30%,var(--tpl-primary) 50%,color-mix(in srgb,var(--tpl-primary) 30%,transparent) 70%,color-mix(in srgb,var(--tpl-primary) 10%,transparent) 85%,transparent 100%);background-size:200% 100%;animation:tpl-loading-flow-e61f3b63 3s ease-in-out infinite}@keyframes tpl-loading-flow-e61f3b63{0%{background-position:100% 0}to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.tpl-loading-track[data-v-e61f3b63]{animation:none;background-position:50% 0}}.tpl-locale-chip[data-state=changed][data-v-3343ae7d]{color:var(--tpl-secondary)}.tpl-locale-chip[data-state=missing][data-v-3343ae7d],.tpl-locale-chip[data-state=stale][data-v-3343ae7d],.tpl-locale-chip[data-state=tags-differ][data-v-3343ae7d]{color:var(--tpl-warning)}.tpl-block--locale-hidden>.tpl-email-surface[data-v-872194d3]{opacity:.35}.tpl-block--idle[data-v-872194d3]{outline:1.5px dashed color-mix(in srgb,var(--tpl-primary) 30%,transparent);outline-offset:-1px;transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block--idle[data-v-872194d3]:hover{outline:1.5px solid color-mix(in srgb,var(--tpl-primary) 50%,transparent);outline-offset:-1px;box-shadow:0 0 8px color-mix(in srgb,var(--tpl-primary) 8%,transparent)}.tpl-block--picked[data-v-872194d3]{outline:2px solid var(--tpl-primary);outline-offset:-1px;box-shadow:0 0 0 4px color-mix(in srgb,var(--tpl-primary) 18%,transparent);transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block--selected[data-v-872194d3]{outline:2px solid color-mix(in srgb,var(--tpl-primary) 60%,transparent);outline-offset:-1px;box-shadow:0 0 12px color-mix(in srgb,var(--tpl-primary) 15%,transparent);transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block-action-btn[data-v-872194d3]{color:var(--tpl-chrome-text-muted);background-color:transparent}.tpl-block-action-btn[data-v-872194d3]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-chrome-text)}.tpl-block-action-btn[data-v-872194d3]:active{transform:scale(.9)}.tpl-block-delete-btn[data-v-872194d3]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-condition-toggle[data-v-872194d3]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-condition-toggle[data-v-872194d3]:active{transform:scale(.9)}.tpl-block-hidden-overlay[data-v-872194d3]{background-color:color-mix(in srgb,var(--tpl-bg) 60%,transparent)}.tpl-block-agent-highlight[data-v-872194d3]{outline:2px solid var(--tpl-secondary);outline-offset:-1px;animation:tpl-agent-highlight-872194d3 2s ease-out forwards}@keyframes tpl-agent-highlight-872194d3{0%,50%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.tpl-block-agent-highlight[data-v-872194d3]{animation:none}}.tpl-table-editable[data-v-6751d456] th[contenteditable],.tpl-table-editable[data-v-6751d456] td[contenteditable]{outline:none;cursor:text;min-width:calc(2 * var(--tpl-base-size))}.tpl-table-editable[data-v-6751d456] th[contenteditable]:empty:before,.tpl-table-editable[data-v-6751d456] td[contenteditable]:empty:before{content:attr(data-placeholder);color:var(--tpl-text-dim);pointer-events:none}.tpl-table-editable[data-v-6751d456] th[contenteditable]:focus,.tpl-table-editable[data-v-6751d456] td[contenteditable]:focus{outline:2px solid var(--tpl-primary);outline-offset:-2px;border-radius:1px}.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface:not(.tpl-email-surface *){filter:invert(1) hue-rotate(180deg)}[data-v-c72f1327] .tpl-email-surface{transition:filter .3s ease}.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface img{filter:invert(1) hue-rotate(180deg)}.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface.tpl-has-bg-image,.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface .tpl-has-bg-image{position:relative;isolation:isolate;background-image:none!important}.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface.tpl-has-bg-image:before,.tpl-canvas--dark-mode[data-v-c72f1327] .tpl-email-surface .tpl-has-bg-image:before{content:\"\";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:var(--tpl-block-bg-layer, none);filter:invert(1) hue-rotate(180deg)}.tpl-icon-enter-active[data-v-632aa74f],.tpl-icon-leave-active[data-v-632aa74f]{transition:opacity .12s cubic-bezier(.16,1,.3,1),transform .12s cubic-bezier(.16,1,.3,1)}.tpl-icon-enter-from[data-v-632aa74f],.tpl-icon-leave-to[data-v-632aa74f]{opacity:0;transform:scale(.8)}.tpl-dark-mode-toggle[data-v-632aa74f]:hover{background-color:var(--tpl-bg-hover)}.tpl-dark-mode-toggle[data-v-632aa74f]:active{transform:scale(.92)}.tpl-icon-enter-active[data-v-eef7b2ca],.tpl-icon-leave-active[data-v-eef7b2ca]{transition:opacity .12s cubic-bezier(.16,1,.3,1),transform .12s cubic-bezier(.16,1,.3,1)}.tpl-icon-enter-from[data-v-eef7b2ca],.tpl-icon-leave-to[data-v-eef7b2ca]{opacity:0;transform:scale(.8)}.tpl-preview-toggle[data-v-eef7b2ca]:hover{background-color:var(--tpl-bg-hover)}.tpl-preview-toggle[data-v-eef7b2ca]:active{transform:scale(.92)}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--tpl-radius-sm:calc(.25 * var(--tpl-base-size));--tpl-radius-md:calc(.375 * var(--tpl-base-size));--tpl-radius-lg:calc(.5 * var(--tpl-base-size));--tpl-shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--tpl-shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--tpl-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--tpl-shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--tpl-radius:calc(.25 * var(--tpl-base-size))}}.tpl\\:pointer-events-auto{pointer-events:auto}.tpl\\:pointer-events-none{pointer-events:none}.tpl\\:invisible{visibility:hidden}.tpl\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl\\:absolute{position:absolute}.tpl\\:fixed{position:fixed}.tpl\\:relative{position:relative}.tpl\\:sticky{position:sticky}.tpl\\:inset-0{inset:0}.tpl\\:inset-x-0{inset-inline:0}.tpl\\:inset-y-1{inset-block:calc(var(--tpl-base-size) / 4)}.tpl\\:inset-s-full{inset-inline-start:100%}.tpl\\:inset-e-1{inset-inline-end:calc(var(--tpl-base-size) / 4)}.tpl\\:-top-0\\.5{top:calc(calc(var(--tpl-base-size) / 4) * -.5)}.tpl\\:-top-1{top:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:-top-2{top:calc(calc(var(--tpl-base-size) / 4) * -2)}.tpl\\:top-0{top:0}.tpl\\:top-1{top:calc(var(--tpl-base-size) / 4)}.tpl\\:top-1\\.5{top:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:top-1\\/2{top:50%}.tpl\\:top-2{top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:top-14{top:calc(calc(var(--tpl-base-size) / 4) * 14)}.tpl\\:top-16{top:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:top-full{top:100%}.tpl\\:right-0{right:0}.tpl\\:right-1{right:calc(var(--tpl-base-size) / 4)}.tpl\\:right-1\\.5{right:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:right-2{right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:right-2\\.5{right:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:right-\\[320px\\]{right:320px}.tpl\\:right-\\[360px\\]{right:360px}.tpl\\:right-\\[680px\\]{right:680px}.tpl\\:bottom-0{bottom:0}.tpl\\:bottom-1{bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:bottom-10{bottom:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:bottom-full{bottom:100%}.tpl\\:-left-1{left:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:left-0{left:0}.tpl\\:left-1\\.5{left:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:left-1\\/2{left:50%}.tpl\\:left-2\\.5{left:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:left-3{left:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:left-5{left:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:left-12{left:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:left-full{left:100%}.tpl\\:z-10{z-index:10}.tpl\\:z-20{z-index:20}.tpl\\:z-40{z-index:40}.tpl\\:z-50{z-index:50}.tpl\\:z-\\[4\\]{z-index:4}.tpl\\:z-\\[5\\]{z-index:5}.tpl\\:z-\\[60\\]{z-index:60}.tpl\\:z-\\[100\\]{z-index:100}.tpl\\:z-\\[10000\\]{z-index:10000}.tpl\\:m-0{margin:0}.tpl\\:m-6{margin:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:mx-0\\.5{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:mx-1{margin-inline:calc(var(--tpl-base-size) / 4)}.tpl\\:mx-1\\.5{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mx-3{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mx-4{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:mx-6{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:mx-auto{margin-inline:auto}.tpl\\:ms-2{margin-inline-start:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mt-0\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:mt-1{margin-top:calc(var(--tpl-base-size) / 4)}.tpl\\:mt-1\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mt-2{margin-top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mt-3{margin-top:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mt-3\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:mt-4{margin-top:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:-mr-1\\.5{margin-right:calc(calc(var(--tpl-base-size) / 4) * -1.5)}.tpl\\:mr-2{margin-right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mb-0{margin-bottom:0}.tpl\\:mb-1{margin-bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:mb-1\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mb-2{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mb-2\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:mb-3{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mb-3\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:mb-4{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:mb-px{margin-bottom:1px}.tpl\\:-ml-1\\.5{margin-left:calc(calc(var(--tpl-base-size) / 4) * -1.5)}.tpl\\:-ml-48{margin-left:calc(calc(var(--tpl-base-size) / 4) * -48)}.tpl\\:ml-0{margin-left:0}.tpl\\:ml-0\\.5{margin-left:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:ml-1{margin-left:calc(var(--tpl-base-size) / 4)}.tpl\\:ml-5{margin-left:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:ml-auto{margin-left:auto}.tpl\\:box-border{box-sizing:border-box}.tpl\\:line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tpl\\:line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tpl\\:\\!flex{display:flex!important}.tpl\\:block{display:block}.tpl\\:contents{display:contents}.tpl\\:flex{display:flex}.tpl\\:grid{display:grid}.tpl\\:inline{display:inline}.tpl\\:inline-block{display:inline-block}.tpl\\:inline-flex{display:inline-flex}.tpl\\:aspect-square{aspect-ratio:1}.tpl\\:size-1\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 1.5);height:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:size-2{width:calc(calc(var(--tpl-base-size) / 4) * 2);height:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:size-4{width:calc(calc(var(--tpl-base-size) / 4) * 4);height:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:size-4\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 4.5);height:calc(calc(var(--tpl-base-size) / 4) * 4.5)}.tpl\\:size-5{width:calc(calc(var(--tpl-base-size) / 4) * 5);height:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:size-6{width:calc(calc(var(--tpl-base-size) / 4) * 6);height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:size-7{width:calc(calc(var(--tpl-base-size) / 4) * 7);height:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:size-8{width:calc(calc(var(--tpl-base-size) / 4) * 8);height:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:size-10{width:calc(calc(var(--tpl-base-size) / 4) * 10);height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:size-16{width:calc(calc(var(--tpl-base-size) / 4) * 16);height:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:size-full{width:100%;height:100%}.tpl\\:h-0{height:0}.tpl\\:h-1\\.5{height:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:h-2\\.5{height:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:h-3{height:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:h-4{height:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:h-5{height:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:h-6{height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:h-7{height:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:h-8{height:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:h-9{height:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:h-10{height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:h-12{height:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:h-14{height:calc(calc(var(--tpl-base-size) / 4) * 14)}.tpl\\:h-16{height:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:h-32{height:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:h-44{height:calc(calc(var(--tpl-base-size) / 4) * 44)}.tpl\\:h-\\[32px\\]{height:32px}.tpl\\:h-full{height:100%}.tpl\\:max-h-24{max-height:calc(calc(var(--tpl-base-size) / 4) * 24)}.tpl\\:max-h-32{max-height:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:max-h-48{max-height:calc(calc(var(--tpl-base-size) / 4) * 48)}.tpl\\:max-h-56{max-height:calc(calc(var(--tpl-base-size) / 4) * 56)}.tpl\\:max-h-64{max-height:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:max-h-\\[50vh\\]{max-height:50vh}.tpl\\:max-h-\\[60vh\\]{max-height:60vh}.tpl\\:max-h-\\[80\\%\\]{max-height:80%}.tpl\\:max-h-\\[80vh\\]{max-height:80vh}.tpl\\:max-h-\\[90\\%\\]{max-height:90%}.tpl\\:max-h-\\[90vh\\]{max-height:90vh}.tpl\\:max-h-full{max-height:100%}.tpl\\:min-h-0{min-height:0}.tpl\\:min-h-6{min-height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:min-h-10{min-height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:min-h-20{min-height:calc(calc(var(--tpl-base-size) / 4) * 20)}.tpl\\:min-h-\\[1em\\]{min-height:1em}.tpl\\:min-h-\\[34px\\]{min-height:34px}.tpl\\:min-h-\\[44px\\]{min-height:44px}.tpl\\:min-h-\\[48px\\]{min-height:48px}.tpl\\:min-h-\\[60px\\]{min-height:60px}.tpl\\:min-h-\\[68px\\]{min-height:68px}.tpl\\:min-h-\\[80px\\]{min-height:80px}.tpl\\:min-h-\\[100px\\]{min-height:100px}.tpl\\:min-h-\\[120px\\]{min-height:120px}.tpl\\:min-h-\\[150px\\]{min-height:150px}.tpl\\:min-h-\\[400px\\]{min-height:400px}.tpl\\:w-1\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:w-1\\/2{width:50%}.tpl\\:w-1\\/3{width:33.3333%}.tpl\\:w-1\\/4{width:25%}.tpl\\:w-2\\/3{width:66.6667%}.tpl\\:w-3{width:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:w-3\\/4{width:75%}.tpl\\:w-5\\/6{width:83.3333%}.tpl\\:w-7{width:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:w-8{width:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:w-9{width:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:w-10{width:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:w-12{width:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:w-16{width:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:w-20{width:calc(calc(var(--tpl-base-size) / 4) * 20)}.tpl\\:w-24{width:calc(calc(var(--tpl-base-size) / 4) * 24)}.tpl\\:w-28{width:calc(calc(var(--tpl-base-size) / 4) * 28)}.tpl\\:w-32{width:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:w-36{width:calc(calc(var(--tpl-base-size) / 4) * 36)}.tpl\\:w-40{width:calc(calc(var(--tpl-base-size) / 4) * 40)}.tpl\\:w-48{width:calc(calc(var(--tpl-base-size) / 4) * 48)}.tpl\\:w-52{width:calc(calc(var(--tpl-base-size) / 4) * 52)}.tpl\\:w-56{width:calc(calc(var(--tpl-base-size) / 4) * 56)}.tpl\\:w-64{width:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:w-72{width:calc(calc(var(--tpl-base-size) / 4) * 72)}.tpl\\:w-80{width:calc(calc(var(--tpl-base-size) / 4) * 80)}.tpl\\:w-96{width:calc(calc(var(--tpl-base-size) / 4) * 96)}.tpl\\:w-\\[300px\\]{width:300px}.tpl\\:w-\\[320px\\]{width:320px}.tpl\\:w-\\[360px\\]{width:360px}.tpl\\:w-\\[400px\\]{width:400px}.tpl\\:w-\\[420px\\]{width:420px}.tpl\\:w-\\[1000px\\]{width:1000px}.tpl\\:w-\\[min\\(420px\\,92vw\\)\\]{width:min(420px,92vw)}.tpl\\:w-full{width:100%}.tpl\\:w-px{width:1px}.tpl\\:max-w-2xl{max-width:calc(42 * var(--tpl-base-size))}.tpl\\:max-w-3xl{max-width:calc(48 * var(--tpl-base-size))}.tpl\\:max-w-\\[220px\\]{max-width:220px}.tpl\\:max-w-\\[240px\\]{max-width:240px}.tpl\\:max-w-\\[260px\\]{max-width:260px}.tpl\\:max-w-\\[320px\\]{max-width:320px}.tpl\\:max-w-\\[600px\\]{max-width:600px}.tpl\\:max-w-\\[calc\\(100\\%_-_2\\*var\\(--tpl-base-size\\)\\)\\]{max-width:calc(100% - 2 * var(--tpl-base-size))}.tpl\\:max-w-\\[calc\\(100vw_-_2\\*var\\(--tpl-base-size\\)\\)\\]{max-width:calc(100vw - 2 * var(--tpl-base-size))}.tpl\\:max-w-full{max-width:100%}.tpl\\:max-w-md{max-width:calc(28 * var(--tpl-base-size))}.tpl\\:max-w-sm{max-width:calc(24 * var(--tpl-base-size))}.tpl\\:min-w-0{min-width:0}.tpl\\:min-w-6{min-width:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:min-w-\\[20px\\]{min-width:20px}.tpl\\:min-w-\\[200px\\]{min-width:200px}.tpl\\:flex-1{flex:1}.tpl\\:flex-shrink-0,.tpl\\:shrink-0{flex-shrink:0}.tpl\\:grow{flex-grow:1}.tpl\\:basis-64{flex-basis:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-4{--tw-translate-x:calc(calc(var(--tpl-base-size) / 4) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-2{--tw-translate-y:calc(calc(var(--tpl-base-size) / 4) * -2);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-y-1{--tw-translate-y:calc(var(--tpl-base-size) / 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:-rotate-90{rotate:-90deg}.tpl\\:rotate-0{rotate:0deg}.tpl\\:rotate-45{rotate:45deg}.tpl\\:rotate-90{rotate:90deg}.tpl\\:rotate-180{rotate:180deg}.tpl\\:animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.tpl\\:animate-spin{animation:1s linear infinite spin}.tpl\\:cursor-default{cursor:default}.tpl\\:cursor-grab{cursor:grab}.tpl\\:cursor-help{cursor:help}.tpl\\:cursor-not-allowed{cursor:not-allowed}.tpl\\:cursor-pointer{cursor:pointer}.tpl\\:resize-none{resize:none}.tpl\\:resize-y{resize:vertical}.tpl\\:list-disc{list-style-type:disc}.tpl\\:list-none{list-style-type:none}.tpl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.tpl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.tpl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.tpl\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.tpl\\:grid-cols-\\[minmax\\(0\\,1fr\\)_auto_minmax\\(0\\,1fr\\)\\]{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.tpl\\:flex-col{flex-direction:column}.tpl\\:flex-row-reverse{flex-direction:row-reverse}.tpl\\:flex-wrap{flex-wrap:wrap}.tpl\\:items-center{align-items:center}.tpl\\:items-end{align-items:flex-end}.tpl\\:items-start{align-items:flex-start}.tpl\\:items-stretch{align-items:stretch}.tpl\\:justify-between{justify-content:space-between}.tpl\\:justify-center{justify-content:center}.tpl\\:justify-end{justify-content:flex-end}.tpl\\:gap-0{gap:0}.tpl\\:gap-0\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:gap-1{gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-1\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:gap-2{gap:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:gap-2\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:gap-3{gap:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:gap-3\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:gap-4{gap:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:gap-5{gap:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:gap-6{gap:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:gap-10{gap:calc(calc(var(--tpl-base-size) / 4) * 10)}:where(.tpl\\:space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--tpl-base-size) / 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--tpl-base-size) / 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-3\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 3.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 3.5) * calc(1 - var(--tw-space-y-reverse)))}.tpl\\:gap-x-1{column-gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-x-3{column-gap:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:gap-x-6{column-gap:calc(calc(var(--tpl-base-size) / 4) * 6)}:where(.tpl\\:-space-x-1\\.5>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(calc(var(--tpl-base-size) / 4) * -1.5) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(calc(var(--tpl-base-size) / 4) * -1.5) * calc(1 - var(--tw-space-x-reverse)))}.tpl\\:gap-y-0\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:gap-y-1{row-gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-y-1\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:gap-y-2{row-gap:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:self-end{align-self:flex-end}.tpl\\:self-start{align-self:flex-start}.tpl\\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tpl\\:overflow-auto{overflow:auto}.tpl\\:overflow-hidden{overflow:hidden}.tpl\\:overflow-x-auto{overflow-x:auto}.tpl\\:overflow-y-auto{overflow-y:auto}.tpl\\:rounded{border-radius:calc(.25 * var(--tpl-base-size))}.tpl\\:rounded-\\[calc\\(var\\(--tpl-radius-sm\\)-2px\\)\\]{border-radius:calc(var(--tpl-radius-sm) - 2px)}.tpl\\:rounded-\\[var\\(--tpl-radius\\)\\]{border-radius:var(--tpl-radius)}.tpl\\:rounded-\\[var\\(--tpl-radius-lg\\)\\]{border-radius:var(--tpl-radius-lg)}.tpl\\:rounded-\\[var\\(--tpl-radius-md\\)\\]{border-radius:var(--tpl-radius-md)}.tpl\\:rounded-\\[var\\(--tpl-radius-sm\\)\\]{border-radius:var(--tpl-radius-sm)}.tpl\\:rounded-full{border-radius:2147483647px}.tpl\\:rounded-lg{border-radius:calc(.5 * var(--tpl-base-size))}.tpl\\:rounded-md{border-radius:calc(.375 * var(--tpl-base-size))}.tpl\\:rounded-sm{border-radius:calc(.25 * var(--tpl-base-size))}.tpl\\:rounded-xl{border-radius:calc(.75 * var(--tpl-base-size))}.tpl\\:rounded-l-\\[var\\(--tpl-radius-sm\\)\\]{border-top-left-radius:var(--tpl-radius-sm);border-bottom-left-radius:var(--tpl-radius-sm)}.tpl\\:rounded-tl-lg{border-top-left-radius:calc(.5 * var(--tpl-base-size))}.tpl\\:rounded-r-\\[var\\(--tpl-radius-sm\\)\\]{border-top-right-radius:var(--tpl-radius-sm);border-bottom-right-radius:var(--tpl-radius-sm)}.tpl\\:rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.tpl\\:border{border-style:var(--tw-border-style);border-width:1px}.tpl\\:border-0{border-style:var(--tw-border-style);border-width:0}.tpl\\:border-2{border-style:var(--tw-border-style);border-width:2px}.tpl\\:border-x-0{border-inline-style:var(--tw-border-style);border-inline-width:0}.tpl\\:border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.tpl\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.tpl\\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.tpl\\:border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.tpl\\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.tpl\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.tpl\\:border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.tpl\\:border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.tpl\\:border-dashed{--tw-border-style:dashed;border-style:dashed}.tpl\\:border-none{--tw-border-style:none;border-style:none}.tpl\\:border-\\[var\\(--tpl-bg\\)\\]{border-color:var(--tpl-bg)}.tpl\\:border-\\[var\\(--tpl-border\\)\\]{border-color:var(--tpl-border)}.tpl\\:border-\\[var\\(--tpl-border-light\\)\\]{border-color:var(--tpl-border-light)}.tpl\\:border-\\[var\\(--tpl-danger\\)\\]{border-color:var(--tpl-danger)}.tpl\\:border-\\[var\\(--tpl-primary\\)\\]{border-color:var(--tpl-primary)}.tpl\\:border-\\[var\\(--tpl-primary-hover\\)\\]{border-color:var(--tpl-primary-hover)}.tpl\\:border-\\[var\\(--tpl-warning\\)\\]{border-color:var(--tpl-warning)}.tpl\\:border-transparent{border-color:#0000}.tpl\\:border-l-\\[var\\(--tpl-primary\\)\\]{border-left-color:var(--tpl-primary)}.tpl\\:border-l-transparent{border-left-color:#0000}.tpl\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-bg\\)_90\\%\\,transparent\\)\\]{background-color:var(--tpl-bg)}@supports (color:color-mix(in lab,red,red)){.tpl\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-bg\\)_90\\%\\,transparent\\)\\]{background-color:color-mix(in srgb,var(--tpl-bg) 90%,transparent)}}.tpl\\:bg-\\[var\\(--tpl-bg\\)\\]{background-color:var(--tpl-bg)}.tpl\\:bg-\\[var\\(--tpl-bg-active\\)\\]{background-color:var(--tpl-bg-active)}.tpl\\:bg-\\[var\\(--tpl-bg-elevated\\)\\]{background-color:var(--tpl-bg-elevated)}.tpl\\:bg-\\[var\\(--tpl-bg-hover\\)\\]{background-color:var(--tpl-bg-hover)}.tpl\\:bg-\\[var\\(--tpl-border\\)\\]{background-color:var(--tpl-border)}.tpl\\:bg-\\[var\\(--tpl-canvas-bg\\)\\]{background-color:var(--tpl-canvas-bg)}.tpl\\:bg-\\[var\\(--tpl-chrome-bg-elevated\\)\\]{background-color:var(--tpl-chrome-bg-elevated)}.tpl\\:bg-\\[var\\(--tpl-chrome-primary-light\\)\\]{background-color:var(--tpl-chrome-primary-light)}.tpl\\:bg-\\[var\\(--tpl-danger\\)\\]{background-color:var(--tpl-danger)}.tpl\\:bg-\\[var\\(--tpl-danger-light\\)\\]{background-color:var(--tpl-danger-light)}.tpl\\:bg-\\[var\\(--tpl-primary\\)\\]{background-color:var(--tpl-primary)}.tpl\\:bg-\\[var\\(--tpl-primary-light\\)\\]{background-color:var(--tpl-primary-light)}.tpl\\:bg-\\[var\\(--tpl-secondary-light\\)\\]{background-color:var(--tpl-secondary-light)}.tpl\\:bg-\\[var\\(--tpl-text-dim\\)\\]{background-color:var(--tpl-text-dim)}.tpl\\:bg-\\[var\\(--tpl-warning-light\\)\\]{background-color:var(--tpl-warning-light)}.tpl\\:bg-black\\/30{background-color:oklab(0% none none/.3)}.tpl\\:bg-transparent{background-color:#0000}.tpl\\:object-contain{object-fit:contain}.tpl\\:object-cover{object-fit:cover}.tpl\\:p-0{padding:0}.tpl\\:p-0\\.5{padding:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:p-1{padding:calc(var(--tpl-base-size) / 4)}.tpl\\:p-1\\.5{padding:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:p-2{padding:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:p-3{padding:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:p-4{padding:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:p-5{padding:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:p-6{padding:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:p-8{padding:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:px-0\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:px-1{padding-inline:calc(var(--tpl-base-size) / 4)}.tpl\\:px-1\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:px-2{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:px-2\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:px-3{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:px-3\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:px-4{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:px-5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:px-6{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:px-8{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:px-10{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:py-0{padding-block:0}.tpl\\:py-0\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:py-1{padding-block:calc(var(--tpl-base-size) / 4)}.tpl\\:py-1\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:py-2{padding-block:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:py-2\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:py-3{padding-block:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:py-3\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:py-4{padding-block:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:py-5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:py-6{padding-block:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:py-8{padding-block:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:py-10{padding-block:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:py-12{padding-block:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:py-16{padding-block:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:py-\\[5px\\]{padding-block:5px}.tpl\\:py-\\[7px\\]{padding-block:7px}.tpl\\:py-px{padding-block:1px}.tpl\\:pt-2{padding-top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pt-2\\.5{padding-top:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:pt-3{padding-top:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pt-4{padding-top:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pr-2{padding-right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pr-3{padding-right:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pr-4{padding-right:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pr-7{padding-right:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:pr-8{padding-right:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:pb-1{padding-bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:pb-1\\.5{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:pb-3{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pb-4{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pl-2\\.5{padding-left:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:pl-3{padding-left:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pl-4{padding-left:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pl-8{padding-left:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:pl-9{padding-left:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:pl-\\[18px\\]{padding-left:18px}.tpl\\:text-center{text-align:center}.tpl\\:text-left{text-align:left}.tpl\\:font-\\[inherit\\]{font-family:inherit}.tpl\\:font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.tpl\\:font-sans{font-family:Geist,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tpl\\:text-base{font-size:var(--tpl-base-size);line-height:var(--tw-leading, 1.5 )}.tpl\\:text-lg{font-size:calc(1.125 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.75 / 1.125))}.tpl\\:text-sm{font-size:calc(.875 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.25 / .875))}.tpl\\:text-xs{font-size:calc(.75 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1 / .75))}.tpl\\:text-\\[0\\.8em\\]{font-size:.8em}.tpl\\:text-\\[0\\.9em\\]{font-size:.9em}.tpl\\:text-\\[1em\\]{font-size:1em}.tpl\\:text-\\[10px\\]{font-size:10px}.tpl\\:text-\\[12px\\]{font-size:12px}.tpl\\:text-\\[13px\\]{font-size:13px}.tpl\\:text-\\[length\\:inherit\\]{font-size:inherit}.tpl\\:leading-\\[inherit\\]{--tw-leading:inherit;line-height:inherit}.tpl\\:leading-none{--tw-leading:1;line-height:1}.tpl\\:leading-normal{--tw-leading:1.5;line-height:1.5}.tpl\\:leading-relaxed{--tw-leading:1.625;line-height:1.625}.tpl\\:leading-snug{--tw-leading:1.375;line-height:1.375}.tpl\\:leading-tight{--tw-leading:1.25;line-height:1.25}.tpl\\:font-\\[var\\(--tpl-font-family\\)\\]{--tw-font-weight:var(--tpl-font-family);font-weight:var(--tpl-font-family)}.tpl\\:font-bold{--tw-font-weight:700;font-weight:700}.tpl\\:font-medium{--tw-font-weight:500;font-weight:500}.tpl\\:font-normal{--tw-font-weight:400;font-weight:400}.tpl\\:font-semibold{--tw-font-weight:600;font-weight:600}.tpl\\:tracking-wide{--tw-tracking:.025em;letter-spacing:.025em}.tpl\\:tracking-wider{--tw-tracking:.05em;letter-spacing:.05em}.tpl\\:break-words{overflow-wrap:break-word}.tpl\\:break-all{word-break:break-all}.tpl\\:text-ellipsis{text-overflow:ellipsis}.tpl\\:whitespace-normal{white-space:normal}.tpl\\:whitespace-nowrap{white-space:nowrap}.tpl\\:whitespace-pre-wrap{white-space:pre-wrap}.tpl\\:text-\\[var\\(--tpl-bg\\)\\]{color:var(--tpl-bg)}.tpl\\:text-\\[var\\(--tpl-border-light\\)\\]{color:var(--tpl-border-light)}.tpl\\:text-\\[var\\(--tpl-chrome-text\\)\\]{color:var(--tpl-chrome-text)}.tpl\\:text-\\[var\\(--tpl-chrome-text-dim\\)\\]{color:var(--tpl-chrome-text-dim)}.tpl\\:text-\\[var\\(--tpl-chrome-text-muted\\)\\]{color:var(--tpl-chrome-text-muted)}.tpl\\:text-\\[var\\(--tpl-danger\\)\\]{color:var(--tpl-danger)}.tpl\\:text-\\[var\\(--tpl-on-primary\\)\\]{color:var(--tpl-on-primary)}.tpl\\:text-\\[var\\(--tpl-primary\\)\\]{color:var(--tpl-primary)}.tpl\\:text-\\[var\\(--tpl-primary-hover\\)\\]{color:var(--tpl-primary-hover)}.tpl\\:text-\\[var\\(--tpl-success\\)\\]{color:var(--tpl-success)}.tpl\\:text-\\[var\\(--tpl-success\\,var\\(--tpl-primary\\)\\)\\]{color:var(--tpl-success,var(--tpl-primary))}.tpl\\:text-\\[var\\(--tpl-text\\)\\]{color:var(--tpl-text)}.tpl\\:text-\\[var\\(--tpl-text-dim\\)\\]{color:var(--tpl-text-dim)}.tpl\\:text-\\[var\\(--tpl-text-muted\\)\\]{color:var(--tpl-text-muted)}.tpl\\:text-\\[var\\(--tpl-warning\\)\\]{color:var(--tpl-warning)}.tpl\\:normal-case{text-transform:none}.tpl\\:uppercase{text-transform:uppercase}.tpl\\:italic{font-style:italic}.tpl\\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, )}.tpl\\:no-underline{text-decoration-line:none}.tpl\\:underline{text-decoration-line:underline}.tpl\\:underline-offset-2{text-underline-offset:2px}.tpl\\:accent-\\[var\\(--tpl-primary\\)\\]{accent-color:var(--tpl-primary)}.tpl\\:opacity-0{opacity:0}.tpl\\:opacity-50{opacity:.5}.tpl\\:opacity-60{opacity:.6}.tpl\\:opacity-70{opacity:.7}.tpl\\:opacity-90{opacity:.9}.tpl\\:opacity-100{opacity:1}.tpl\\:shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-ring\\)\\]{--tw-shadow:var(--tpl-ring);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow\\)\\]{--tw-shadow:var(--tpl-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-lg\\)\\]{--tw-shadow:var(--tpl-shadow-lg);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-md\\)\\]{--tw-shadow:var(--tpl-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-sm\\)\\]{--tw-shadow:var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-1{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-2{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-\\[var\\(--tpl-border\\)\\]{--tw-ring-color:var(--tpl-border)}.tpl\\:ring-\\[var\\(--tpl-primary\\)\\]{--tw-ring-color:var(--tpl-primary)}.tpl\\:ring-offset-1{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.tpl\\:ring-offset-\\[var\\(--tpl-bg-elevated\\)\\]{--tw-ring-offset-color:var(--tpl-bg-elevated)}.tpl\\:backdrop-blur-\\[2px\\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, )}.tpl\\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:duration-100{--tw-duration:.1s;transition-duration:.1s}.tpl\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.tpl\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.tpl\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.tpl\\:duration-\\[80ms\\]{--tw-duration:80ms;transition-duration:80ms}.tpl\\:duration-\\[120ms\\]{--tw-duration:.12s;transition-duration:.12s}.tpl\\:ease-\\[cubic-bezier\\(0\\.16\\,1\\,0\\.3\\,1\\)\\]{--tw-ease:cubic-bezier(.16,1,.3,1);transition-timing-function:cubic-bezier(.16,1,.3,1)}.tpl\\:ease-in{--tw-ease:cubic-bezier(.4, 0, 1, 1);transition-timing-function:cubic-bezier(.4,0,1,1)}.tpl\\:ease-out{--tw-ease:cubic-bezier(0, 0, .2, 1);transition-timing-function:cubic-bezier(0,0,.2,1)}.tpl\\:outline-none{--tw-outline-style:none;outline-style:none}.tpl\\:select-none{-webkit-user-select:none;user-select:none}:is(:where(.tpl\\:group):focus-within .tpl\\:group-focus-within\\:opacity-100){opacity:1}@media(hover:hover){:is(:where(.tpl\\:group):hover .tpl\\:group-hover\\:bg-black\\/40){background-color:oklab(0% none none/.4)}:is(:where(.tpl\\:group):hover .tpl\\:group-hover\\:opacity-100){opacity:1}}.tpl\\:placeholder\\:text-\\[var\\(--tpl-text-dim\\)\\]::placeholder{color:var(--tpl-text-dim)}.tpl\\:last\\:mb-0:last-child{margin-bottom:0}@media(hover:hover){.tpl\\:hover\\:z-10:hover{z-index:10}.tpl\\:hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:border-\\[var\\(--tpl-border\\)\\]:hover{border-color:var(--tpl-border)}.tpl\\:hover\\:border-\\[var\\(--tpl-danger\\)\\]:hover{border-color:var(--tpl-danger)}.tpl\\:hover\\:border-\\[var\\(--tpl-primary\\)\\]:hover{border-color:var(--tpl-primary)}.tpl\\:hover\\:border-\\[var\\(--tpl-text-dim\\)\\]:hover{border-color:var(--tpl-text-dim)}.tpl\\:hover\\:border-l-\\[var\\(--tpl-primary\\)\\]:hover{border-left-color:var(--tpl-primary)}.tpl\\:hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-text\\)_8\\%\\,transparent\\)\\]:hover{background-color:var(--tpl-text)}@supports (color:color-mix(in lab,red,red)){.tpl\\:hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-text\\)_8\\%\\,transparent\\)\\]:hover{background-color:color-mix(in srgb,var(--tpl-text) 8%,transparent)}}.tpl\\:hover\\:bg-\\[var\\(--tpl-bg-active\\)\\]:hover{background-color:var(--tpl-bg-active)}.tpl\\:hover\\:bg-\\[var\\(--tpl-bg-hover\\)\\]:hover{background-color:var(--tpl-bg-hover)}.tpl\\:hover\\:bg-\\[var\\(--tpl-danger-light\\)\\]:hover{background-color:var(--tpl-danger-light)}.tpl\\:hover\\:bg-\\[var\\(--tpl-primary-hover\\)\\]:hover{background-color:var(--tpl-primary-hover)}.tpl\\:hover\\:bg-\\[var\\(--tpl-primary-light\\)\\]:hover{background-color:var(--tpl-primary-light)}.tpl\\:hover\\:bg-\\[var\\(--tpl-warning-light\\)\\]:hover{background-color:var(--tpl-warning-light)}.tpl\\:hover\\:text-\\[var\\(--tpl-danger\\)\\]:hover{color:var(--tpl-danger)}.tpl\\:hover\\:text-\\[var\\(--tpl-primary\\)\\]:hover{color:var(--tpl-primary)}.tpl\\:hover\\:text-\\[var\\(--tpl-text\\)\\]:hover{color:var(--tpl-text)}.tpl\\:hover\\:underline:hover{text-decoration-line:underline}.tpl\\:hover\\:opacity-80:hover{opacity:.8}.tpl\\:hover\\:opacity-100:hover{opacity:1}.tpl\\:hover\\:shadow-\\[var\\(--tpl-shadow-md\\)\\]:hover{--tw-shadow:var(--tpl-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:hover\\:shadow-\\[var\\(--tpl-shadow-sm\\)\\]:hover{--tw-shadow:var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.tpl\\:focus\\:border-\\[var\\(--tpl-primary\\)\\]:focus{border-color:var(--tpl-primary)}.tpl\\:focus\\:shadow-\\[0_0_0_3px_var\\(--tpl-primary-light\\)\\]:focus{--tw-shadow:0 0 0 3px var(--tw-shadow-color,var(--tpl-primary-light));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus\\:shadow-\\[var\\(--tpl-ring\\)\\]:focus,.tpl\\:focus-visible\\:shadow-\\[var\\(--tpl-ring\\)\\]:focus-visible{--tw-shadow:var(--tpl-ring);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus-visible\\:ring-\\[var\\(--tpl-primary\\)\\]:focus-visible{--tw-ring-color:var(--tpl-primary)}.tpl\\:focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.tpl\\:focus-visible\\:ring-offset-\\[var\\(--tpl-bg-elevated\\)\\]:focus-visible{--tw-ring-offset-color:var(--tpl-bg-elevated)}.tpl\\:focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.tpl\\:focus-visible\\:outline-\\[var\\(--tpl-primary\\)\\]:focus-visible{outline-color:var(--tpl-primary)}.tpl\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}@media(hover:hover){.tpl\\:hover\\:focus-visible\\:shadow-\\[var\\(--tpl-ring\\)\\,var\\(--tpl-shadow-sm\\)\\]:hover:focus-visible{--tw-shadow:var(--tpl-ring), var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.tpl\\:active\\:cursor-grabbing:active{cursor:grabbing}.tpl\\:active\\:bg-\\[var\\(--tpl-bg-active\\)\\]:active{background-color:var(--tpl-bg-active)}.tpl\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.tpl\\:disabled\\:opacity-30:disabled{opacity:.3}.tpl\\:disabled\\:opacity-40:disabled{opacity:.4}.tpl\\:disabled\\:opacity-50:disabled{opacity:.5}.tpl\\:disabled\\:opacity-60:disabled{opacity:.6}@media(hover:hover){.tpl\\:disabled\\:hover\\:bg-transparent:disabled:hover{background-color:#0000}}.tpl\\:\\[\\&_p\\]\\:mb-2 p{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}@layer base{:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)):after,:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)):before,:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}:where(.tpl) :where(hr):not(:where(.tpl-email-surface,.tpl-email-surface *)){height:0;color:inherit;border-top-width:1px}:where(.tpl) :where(abbr[title]):not(:where(.tpl-email-surface,.tpl-email-surface *)){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}:where(.tpl) :where(h1):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h2):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h3):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h4):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h5):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h6):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-size:inherit;font-weight:inherit}:where(.tpl) :where(a):not(:where(.tpl-email-surface,.tpl-email-surface *)){color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}:where(.tpl) :where(b):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(strong):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-weight:bolder}:where(.tpl) :where(code):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(kbd):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(samp):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(pre):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}:where(.tpl) :where(small):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-size:80%}:where(.tpl) :where(sub):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(sup):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:baseline;font-size:75%;line-height:0;position:relative}:where(.tpl) :where(sub):not(:where(.tpl-email-surface,.tpl-email-surface *)){bottom:-.25em}:where(.tpl) :where(sup):not(:where(.tpl-email-surface,.tpl-email-surface *)){top:-.5em}:where(.tpl) :where(table):not(:where(.tpl-email-surface,.tpl-email-surface *)){text-indent:0;border-color:inherit;border-collapse:collapse}:where(.tpl) :where(:-moz-focusring:not(iframe)):not(:where(.tpl-email-surface,.tpl-email-surface *)){outline:auto}:where(.tpl) :where(progress):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:baseline}:where(.tpl) :where(summary):not(:where(.tpl-email-surface,.tpl-email-surface *)){display:list-item}:where(.tpl) :where(ol):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(ul):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(menu):not(:where(.tpl-email-surface,.tpl-email-surface *)){list-style:none}:where(.tpl) :where(img):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(svg):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(video):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(canvas):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(audio):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(iframe):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(embed):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(object):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:middle;display:block}:where(.tpl) :where(img):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(video):not(:where(.tpl-email-surface,.tpl-email-surface *)){max-width:100%;height:auto}:where(.tpl) :where(button):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(input):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(select):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(optgroup):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(textarea):not(:where(.tpl-email-surface,.tpl-email-surface *)){font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(.tpl) :where(select:is([multiple],[size]) optgroup):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-weight:bolder}:where(.tpl) :where(select:is([multiple],[size]) optgroup option):not(:where(.tpl-email-surface,.tpl-email-surface *)){padding-inline-start:20px}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{margin-inline-end:4px}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}:where(.tpl) :where(textarea):not(:where(.tpl-email-surface,.tpl-email-surface *)){resize:vertical}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-search-decoration{-webkit-appearance:none}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit{display:inline-flex}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-fields-wrapper{padding:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-year-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-month-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-day-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-hour-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-minute-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-second-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-millisecond-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-meridiem-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-calendar-picker-indicator{line-height:1}:where(.tpl) :where(:-moz-ui-invalid):not(:where(.tpl-email-surface,.tpl-email-surface *)){box-shadow:none}:where(.tpl) :where(button):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(input:is([type=button],[type=reset],[type=submit])):not(:where(.tpl-email-surface,.tpl-email-surface *)){appearance:button}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{appearance:button}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-inner-spin-button{height:auto}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-outer-spin-button{height:auto}:where(.tpl) :where([hidden]:not([hidden=until-found])):not(:where(.tpl-email-surface,.tpl-email-surface *)){display:none!important}}@layer components;.tpl{--tpl-base-size:var(--tpl-user-base-size,16px);--tpl-bg:var(--tpl-user-bg,oklch(99.5% .002 60));--tpl-bg-elevated:var(--tpl-user-bg-elevated,oklch(98% .004 60));--tpl-bg-hover:var(--tpl-user-bg-hover,oklch(96% .006 60));--tpl-bg-active:var(--tpl-user-bg-active,oklch(93.5% .008 60));--tpl-border:var(--tpl-user-border,oklch(92% .006 60));--tpl-border-light:var(--tpl-user-border-light,oklch(86% .01 60));--tpl-text:var(--tpl-user-text,oklch(18% .01 60));--tpl-text-muted:var(--tpl-user-text-muted,oklch(50% .015 60));--tpl-text-dim:var(--tpl-user-text-dim,oklch(68% .012 60));--tpl-primary:var(--tpl-user-primary,oklch(70% .16 55));--tpl-primary-hover:var(--tpl-user-primary-hover,oklch(63% .17 55));--tpl-primary-light:var(--tpl-user-primary-light,oklch(95% .04 55));--tpl-on-primary:var(--tpl-user-on-primary,var(--tpl-bg));--tpl-secondary:var(--tpl-user-secondary,oklch(60% .118 184.71));--tpl-secondary-hover:var(--tpl-user-secondary-hover,oklch(53.2% .105 186.39));--tpl-secondary-light:var(--tpl-user-secondary-light,oklch(93.8% .03 186.82));--tpl-success:var(--tpl-user-success,oklch(62.8% .194 155.1));--tpl-success-light:var(--tpl-user-success-light,oklch(93.6% .043 163.51));--tpl-warning:var(--tpl-user-warning,oklch(76.9% .168 70.08));--tpl-warning-light:var(--tpl-user-warning-light,oklch(95% .038 73.59));--tpl-danger:var(--tpl-user-danger,oklch(63.7% .237 25.33));--tpl-danger-light:var(--tpl-user-danger-light,oklch(93.6% .032 17.72));--tpl-canvas-bg:var(--tpl-user-canvas-bg,oklch(97.5% .003 60));--tpl-chrome-bg-elevated:var(--tpl-bg-elevated);--tpl-chrome-border-light:var(--tpl-border-light);--tpl-chrome-text:var(--tpl-text);--tpl-chrome-text-muted:var(--tpl-text-muted);--tpl-chrome-text-dim:var(--tpl-text-dim);--tpl-chrome-primary-light:var(--tpl-primary-light);--tpl-chrome-primary-hover:var(--tpl-primary-hover);--tpl-radius:var(--tpl-user-radius,10px);--tpl-radius-sm:var(--tpl-user-radius-sm,7px);--tpl-radius-lg:var(--tpl-user-radius-lg,14px);--tpl-font-family:var(--tpl-user-font-family,\"Geist\", ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");--tpl-shadow-sm:var(--tpl-user-shadow-sm,0 1px 2px #00000008);--tpl-shadow:var(--tpl-user-shadow,0 1px 2px #0000000a, 0 1px 3px #00000008);--tpl-shadow-md:var(--tpl-user-shadow-md,0 2px 8px #0000000f, 0 1px 3px #0000000a);--tpl-shadow-lg:var(--tpl-user-shadow-lg,0 4px 16px #00000014, 0 2px 6px #0000000a);--tpl-shadow-xl:var(--tpl-user-shadow-xl,0 8px 32px #0000001a, 0 4px 12px #0000000f);--tpl-overlay:var(--tpl-user-overlay,#00000080);--tpl-ring:var(--tpl-user-ring,0 0 0 3px var(--tpl-primary-light));--tpl-transition:var(--tpl-user-transition,.12s cubic-bezier(.16, 1, .3, 1))}.tpl[data-tpl-theme=dark]{--tpl-bg:var(--tpl-user-dark-bg,oklch(16% .005 60));--tpl-bg-elevated:var(--tpl-user-dark-bg-elevated,oklch(21% .006 60));--tpl-bg-hover:var(--tpl-user-dark-bg-hover,oklch(26% .007 60));--tpl-bg-active:var(--tpl-user-dark-bg-active,oklch(30% .008 60));--tpl-border:var(--tpl-user-dark-border,oklch(30% .006 60));--tpl-border-light:var(--tpl-user-dark-border-light,oklch(38% .008 60));--tpl-text:var(--tpl-user-dark-text,oklch(93% .005 60));--tpl-text-muted:var(--tpl-user-dark-text-muted,oklch(65% .01 60));--tpl-text-dim:var(--tpl-user-dark-text-dim,oklch(50% .008 60));--tpl-primary:var(--tpl-user-dark-primary,oklch(73% .15 55));--tpl-primary-hover:var(--tpl-user-dark-primary-hover,oklch(78% .14 55));--tpl-primary-light:var(--tpl-user-dark-primary-light,oklch(28% .05 55));--tpl-secondary:var(--tpl-user-dark-secondary,oklch(63% .11 184.71));--tpl-secondary-hover:var(--tpl-user-dark-secondary-hover,oklch(68% .1 186.39));--tpl-secondary-light:var(--tpl-user-dark-secondary-light,oklch(25% .03 186.82));--tpl-success:var(--tpl-user-dark-success,oklch(65% .18 155.1));--tpl-success-light:var(--tpl-user-dark-success-light,oklch(25% .04 163.51));--tpl-warning:var(--tpl-user-dark-warning,oklch(78% .16 70.08));--tpl-warning-light:var(--tpl-user-dark-warning-light,oklch(28% .04 73.59));--tpl-danger:var(--tpl-user-dark-danger,oklch(65% .22 25.33));--tpl-danger-light:var(--tpl-user-dark-danger-light,oklch(25% .04 17.72));--tpl-canvas-bg:var(--tpl-user-dark-canvas-bg,oklch(10% .003 60));--tpl-shadow-sm:var(--tpl-user-dark-shadow-sm,0 1px 2px #0003);--tpl-shadow:var(--tpl-user-dark-shadow,0 1px 2px #0000004d, 0 1px 3px #0003);--tpl-shadow-md:var(--tpl-user-dark-shadow-md,0 2px 8px #00000059, 0 1px 3px #00000040);--tpl-shadow-lg:var(--tpl-user-dark-shadow-lg,0 4px 16px #0006, 0 2px 6px #0000004d);--tpl-shadow-xl:var(--tpl-user-dark-shadow-xl,0 8px 32px #00000080, 0 4px 12px #00000059);--tpl-overlay:var(--tpl-user-dark-overlay,#000000b3);--tpl-ring:var(--tpl-user-dark-ring,0 0 0 3px var(--tpl-primary-light))}.tpl[data-tpl-theme=dark] .tpl-block-content,.tpl[data-tpl-theme=dark] .tpl-canvas-empty{--tpl-bg-elevated:oklch(98% .004 60);--tpl-border-light:oklch(86% .01 60);--tpl-text:oklch(18% .01 60);--tpl-text-muted:oklch(50% .015 60);--tpl-text-dim:oklch(68% .012 60);--tpl-primary-light:oklch(95% .04 55);--tpl-primary-hover:oklch(60% .16 55);color:var(--tpl-text)}.tpl{height:100%;font-family:Geist,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:calc(.875 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.25 / .875));--tw-leading:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--tpl-bg);min-height:320px;color:var(--tpl-text);line-height:1.5;font-family:var(--tpl-font-family);letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0;text-align:start;white-space:normal;cursor:auto;font-variant-numeric:normal;text-shadow:none;flex-direction:column;font-style:normal;font-weight:400;list-style-type:disc;display:flex}:where(.tpl) button,:where(.tpl) input,:where(.tpl) select,:where(.tpl) textarea{box-sizing:border-box;font-family:inherit}:where(.tpl) button{cursor:pointer;background:0 0;border:none;margin:0;padding:0}:where(.tpl) button:focus-visible,:where(.tpl) input:focus-visible,:where(.tpl) select:focus-visible,:where(.tpl) textarea:focus-visible{box-shadow:var(--tpl-ring);outline:none}:where(.tpl) .tpl-focus-ring-host:focus-within :is(input,select,textarea):focus-visible{box-shadow:none}.tpl ::-webkit-scrollbar{width:6px;height:6px}.tpl ::-webkit-scrollbar-track{background:0 0}.tpl ::-webkit-scrollbar-thumb{background-color:var(--tpl-border-light)}@supports (color:color-mix(in lab,red,red)){.tpl ::-webkit-scrollbar-thumb{background-color:color-mix(in srgb,var(--tpl-border-light) 60%,transparent)}}.tpl ::-webkit-scrollbar-thumb{border-radius:calc(.25 * var(--tpl-base-size))}.tpl ::-webkit-scrollbar-thumb:hover{background-color:var(--tpl-border-light)}@keyframes tpl-pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes tpl-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tpl-popover-root{z-index:10000;position:relative}.tpl-merge-tag-label{text-underline-offset:3px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}@supports (color:color-mix(in lab,red,red)){.tpl-merge-tag-label{-webkit-text-decoration-color:color-mix(in srgb,currentColor 55%,transparent);text-decoration-color:color-mix(in srgb,currentColor 55%,transparent)}}.tpl-merge-tag-label{unicode-bidi:isolate}.tpl-pulse{animation:2s infinite tpl-pulse}.tpl-spinner{animation:1s linear infinite tpl-spin}@keyframes tpl-fade-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes tpl-scale-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}@keyframes tpl-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.tpl-fade-in{animation:.2s cubic-bezier(.16,1,.3,1) tpl-fade-in}.tpl-scale-in{animation:.15s cubic-bezier(.16,1,.3,1) tpl-scale-in}.tpl-shimmer{background:linear-gradient(90deg,var(--tpl-bg-hover) 25%,var(--tpl-bg-active) 50%,var(--tpl-bg-hover) 75%);background-size:200% 100%;animation:1.5s linear infinite tpl-shimmer}.tpl-preview-mode .tpl-block--idle,.tpl-preview-mode .tpl-block--idle:hover,.tpl-preview-mode .tpl-block--selected{box-shadow:none!important;outline:none!important}.tpl-preview-mode .tpl-block{cursor:default;pointer-events:none}.tpl-canvas-pane{container:tpl-canvas-pane/inline-size}.tpl-preview-mode .tpl-block-actions,.tpl-preview-mode .tpl-block-hidden-overlay,.tpl-preview-mode .tpl-condition-toggle,.tpl-preview-mode .tpl-comment-indicator,.tpl-preview-mode .tpl-collab-lock,.tpl-preview-mode .tpl-block-issue-badge{display:none}.tpl-ghost{border:none!important;border-top:2px dotted var(--tpl-primary)!important;background-color:#0000!important;justify-content:center!important;align-items:center!important;width:100%!important;height:0!important;min-height:0!important;max-height:0!important;margin:12px 0!important;padding:0!important;display:flex!important;position:relative!important;overflow:visible!important}@supports (color:color-mix(in lab,red,red)){.tpl-ghost{border-top:2px dotted color-mix(in srgb,var(--tpl-primary) 50%,transparent)!important}}.tpl-ghost{box-shadow:none!important;border-radius:0!important}.tpl-ghost>*{display:none!important}.tpl-ghost:before{content:var(--tpl-drop-text,\"Drop here\");white-space:nowrap!important;color:var(--tpl-primary)!important;background-color:var(--tpl-primary)!important;padding:2px 8px!important;font-size:12px!important;font-weight:500!important;position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important}@supports (color:color-mix(in lab,red,red)){.tpl-ghost:before{background-color:color-mix(in srgb,var(--tpl-primary) 15%,var(--tpl-bg))!important}}.tpl-ghost:before{border-radius:var(--tpl-radius-sm)!important;box-shadow:none!important}.tpl-canvas-empty .tpl-ghost{display:none!important}.tpl-dragging{opacity:.8;box-shadow:var(--tpl-shadow-xl)}.sortable-fallback{transition:none!important;animation:none!important}.tpl-block--lifted{outline:2px dashed var(--tpl-primary)!important;outline-offset:2px!important;box-shadow:var(--tpl-shadow-xl),0 0 0 4px var(--tpl-primary)!important}@supports (color:color-mix(in lab,red,red)){.tpl-block--lifted{box-shadow:var(--tpl-shadow-xl),0 0 0 4px color-mix(in srgb,var(--tpl-primary) 20%,transparent)!important}}.tpl-block--lifted{transition:transform .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1);transform:scale(1.01)}.tpl-sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl-text-toolbar-btn{width:calc(calc(var(--tpl-base-size) / 4) * 8);height:calc(calc(var(--tpl-base-size) / 4) * 8);cursor:pointer;border-radius:calc(.25 * var(--tpl-base-size));--tw-border-style:none;transition-property:all;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s);color:var(--tpl-text);background-color:#0000;border-style:none;justify-content:center;align-items:center;padding:0;display:flex}.tpl-text-toolbar-btn:hover{background-color:var(--tpl-bg-active)}.tpl-text-toolbar-btn--active{box-shadow:inset 0 0 0 1.5px var(--tpl-primary-hover);background-color:var(--tpl-primary)!important;color:var(--tpl-bg)!important}.tpl-text-toolbar-btn--active svg{stroke-width:2.75px}.tpl-text-content,.tpl-text-editable .tiptap{--tw-outline-style:none;outline-style:none}.tpl-text-editable{border-radius:calc(.25 * var(--tpl-base-size));outline:1px dashed var(--tpl-primary);outline-offset:4px}.tpl-text-editable--error{outline-color:var(--tpl-danger)}.tpl-text-content p,.tpl-text-editable .tiptap p{margin:0 0 var(--tpl-doc-paragraph-spacing,8px)}.tpl-text-content p:last-child,.tpl-text-editable .tiptap p:last-child{margin-bottom:0}.tpl-text-content ul,.tpl-text-content ol,.tpl-text-editable .tiptap ul,.tpl-text-editable .tiptap ol{margin:8px 0;padding-inline-start:24px}.tpl-text-content li,.tpl-text-editable .tiptap li{margin:4px 0}.tpl-text-content s,.tpl-text-editable .tiptap s{text-decoration-line:line-through}.tpl-text-content sub,.tpl-text-editable .tiptap sub{vertical-align:sub;font-size:.75em}.tpl-text-content sup,.tpl-text-editable .tiptap sup{vertical-align:super;font-size:.75em}.tpl-text-content a,.tpl-text-editable a{color:var(--tpl-doc-link-color,inherit);-webkit-text-decoration:var(--tpl-doc-link-underline,none);text-decoration:var(--tpl-doc-link-underline,none)}.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5);border-radius:calc(.25 * var(--tpl-base-size));padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5);padding-block:calc(calc(var(--tpl-base-size) / 4) * .5);--tw-font-weight:500;background-color:var(--tpl-primary);align-items:center;font-size:.9em;font-weight:500;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{background-color:color-mix(in srgb,var(--tpl-primary) 20%,transparent)}}.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{color:var(--tpl-primary);unicode-bidi:isolate}.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5);border-radius:calc(.25 * var(--tpl-base-size));padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5);padding-block:calc(calc(var(--tpl-base-size) / 4) * .5);--tw-font-weight:700;--tw-tracking:.025em;letter-spacing:.025em;text-transform:uppercase;border:1.5px solid var(--tpl-primary);unicode-bidi:isolate;background-color:#0000;align-items:center;font-size:.8em;font-weight:700;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{border:1.5px solid color-mix(in srgb,var(--tpl-primary) 50%,transparent)}}.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{color:var(--tpl-primary)}.tpl-tooltip{position:relative}.tpl-tooltip:after{content:attr(data-tooltip);border-radius:var(--tpl-radius-sm);background-color:var(--tpl-chrome-text);color:var(--tpl-bg);white-space:normal;text-align:center;pointer-events:none;opacity:0;text-transform:none;z-index:50;width:max-content;max-width:min(320px,90vw);padding:4px 10px;font-size:12px;font-weight:500;line-height:1.4;transition:opacity .15s;position:absolute;top:calc(100% + 6px);left:50%;transform:translate(-50%)}.tpl-tooltip:before{content:\"\";border:4px solid #0000;border-bottom-color:var(--tpl-chrome-text);pointer-events:none;opacity:0;z-index:50;transition:opacity .15s;position:absolute;top:calc(100% + 2px);left:50%;transform:translate(-50%)}.tpl-tooltip:hover:after,.tpl-tooltip:hover:before{opacity:1}.tpl-media-overlay{background-color:var(--tpl-overlay);-webkit-backdrop-filter:blur(8px);height:100%;min-height:0;color:var(--tpl-text);flex-direction:row;justify-content:center;align-items:center;display:flex}.tpl.tpl-text-toolbar{flex-direction:row;height:auto;min-height:0;display:flex}.tpl.tpl-link-dialog{background-color:var(--tpl-overlay);flex-direction:row;justify-content:center;align-items:center;height:100%;min-height:0;display:flex}.tpl-upload-zone-active{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.tpl-merge-tag-delete:hover{color:var(--tpl-danger)!important}@media(prefers-reduced-motion:reduce){.tpl-pulse,.tpl-shimmer,.tpl-fade-in,.tpl-scale-in{animation:none}.tpl-shimmer{background:var(--tpl-bg-hover)}.tpl-spinner{animation:1s linear infinite tpl-spin}}.tpl-header-container{container:tpl-header/inline-size}.tpl-header-identity [data-testid=template-name],.tpl-header-identity [data-testid=template-name-input]{max-width:100%}.tpl-language-tag{display:none}.tpl-header-identity{flex-shrink:1;min-width:24px}.tpl-header-timestamp{max-width:100%}.tpl-header[data-compact=true]{grid-template-columns:minmax(0,1fr) auto auto;column-gap:8px;padding-inline:8px}.tpl-header[data-compact=true] .tpl-header-left,.tpl-header[data-compact=true] .tpl-header-right{gap:4px;min-width:0}.tpl-header[data-compact=true] .tpl-header-center{gap:4px}.tpl-header[data-compact=true] .tpl-header-identity{flex:0 auto;min-width:24px;max-width:none;padding-bottom:0}.tpl-header[data-compact=true] .tpl-header-timestamp,.tpl-header[data-compact=true] .tpl-header-label,.tpl-header[data-compact=true] .tpl-header-comment-count,.tpl-header[data-compact=true] .tpl-language-name,.tpl-header[data-compact=true] .tpl-language-count,.tpl-header[data-compact=true] .tpl-language-chevron{display:none}.tpl-header[data-compact=true] .tpl-header-left .tpl-language-tag{display:inline}.tpl-header[data-compact=true] .tpl-language-control{flex-shrink:1}.tpl-header[data-compact=true] .tpl-language-trigger{gap:4px;padding-inline:6px;width:100%!important;max-width:72px!important}.tpl-header[data-compact=true] .tpl-header-center [role=radio]{padding-inline:6px}.tpl-header[data-compact=true] [data-testid=version-history]{gap:0}.tpl-header[data-compact=true] [data-testid=version-history-toggle]{padding-inline:4px}.tpl-header[data-compact=true] .tpl-header-right>button{gap:0;min-width:32px;padding-inline:7px}.tpl-header[data-compact=true] .tpl-header-save-status{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}.tpl-preview-pill-enter-active[data-v-e3760a37]{transition:opacity .2s cubic-bezier(.16,1,.3,1),transform .2s cubic-bezier(.16,1,.3,1)}.tpl-preview-pill-leave-active[data-v-e3760a37]{transition:opacity .15s ease-in,transform .15s ease-in}.tpl-preview-pill-enter-from[data-v-e3760a37],.tpl-preview-pill-leave-to[data-v-e3760a37]{opacity:0;transform:translateY(-8px) scale(.9)}.tpl-preview-pill-enter-to[data-v-e3760a37],.tpl-preview-pill-leave-from[data-v-e3760a37]{opacity:1;transform:translateY(0) scale(1)}hex-color-picker{--hcp-width: 200px}hex-color-picker::part(hue){border-radius:var(--tpl-radius-sm, 7px)}hex-color-picker::part(saturation){border-radius:var(--tpl-radius-sm, 7px) var(--tpl-radius-sm, 7px) 0 0}.tpl-color-swatch-empty{background-color:var(--tpl-bg);background-image:linear-gradient(to top right,transparent calc(50% - .75px),var(--tpl-text-dim) calc(50% - .75px),var(--tpl-text-dim) calc(50% + .75px),transparent calc(50% + .75px))}.tpl-color-swatch-transparent{background-color:var(--tpl-bg);background-image:repeating-conic-gradient(var(--tpl-border) 0% 25%,var(--tpl-bg) 0% 50%);background-size:8px 8px}.tpl-pulse-fill[data-v-fca026e4]{animation:tpl-field-pulse-fca026e4 1s ease-out}@keyframes tpl-field-pulse-fca026e4{0%{box-shadow:0 0 color-mix(in srgb,var(--tpl-warning) 30%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 6%,transparent)}40%{box-shadow:0 0 0 3px color-mix(in srgb,var(--tpl-warning) 15%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 5%,transparent)}to{box-shadow:0 0 0 0 transparent;background-color:transparent}}@media(prefers-reduced-motion:reduce){.tpl-pulse-fill[data-v-fca026e4]{animation:none}}input[type=number][data-v-94c2e6ff]::-webkit-outer-spin-button,input[type=number][data-v-94c2e6ff]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-94c2e6ff]{-moz-appearance:textfield}.tpl-collapsible[data-v-206f038f]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s cubic-bezier(.16,1,.3,1)}.tpl-collapsible--open[data-v-206f038f]{grid-template-rows:1fr}.tpl-collapsible>div[data-v-206f038f]{overflow:hidden}@container tpl-header (max-width: 760px){.tpl-language-submenu[data-v-9b071249]{left:0;top:100%;bottom:auto;margin:4px 0 0;max-width:100%}}.tpl-language-row[data-v-9b071249]:hover,.tpl-language-row[data-v-9b071249]:focus-within,[role=menuitem][data-v-9b071249]:hover{background:var(--tpl-bg-hover)}.tpl-language-row[data-active=true][data-v-9b071249]{background:var(--tpl-bg-active)}.tpl-language-row[data-active=true] .tpl-language-pill[data-v-9b071249]{background:var(--tpl-bg)}[aria-disabled=true][data-v-9b071249]{cursor:not-allowed;color:var(--tpl-text-muted)}[aria-disabled=true] svg[data-v-9b071249]{color:var(--tpl-text-dim)}@media(hover:hover)and (pointer:fine){.tpl-language-actions[data-v-9b071249]{opacity:0}.tpl-language-row:hover .tpl-language-actions[data-v-9b071249],.tpl-language-row:focus-within .tpl-language-actions[data-v-9b071249],.tpl-language-actions[aria-expanded=true][data-v-9b071249]{opacity:1}}.tpl-language-actions[data-v-9b071249]{transition:opacity var(--tpl-transition)}.tpl-ai-slide-enter-active[data-v-3d8e197c]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-ai-slide-leave-active[data-v-3d8e197c]{transition:transform .2s cubic-bezier(.16,1,.3,1)}@media(prefers-reduced-motion:reduce){.tpl-ai-slide-enter-active[data-v-3d8e197c],.tpl-ai-slide-leave-active[data-v-3d8e197c]{transition:none}}.tpl-saved-block-skeleton{animation:tpl-saved-block-pulse 1.4s ease-in-out infinite}@keyframes tpl-saved-block-pulse{0%,to{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.tpl-saved-block-skeleton{animation:none}}.tpl-saved-block-select:focus-visible{box-shadow:none}.tpl-saved-block-select:focus-visible:after{content:\"\";position:absolute;inset:-1px;border-radius:var(--tpl-radius-sm);box-shadow:var(--tpl-ring);pointer-events:none}.tpl-saved-block-delete-btn:hover{color:var(--tpl-danger)!important}.tpl-saved-block-rename-btn:hover{color:var(--tpl-primary)!important}.tpl-media-item[data-v-57c35946]:not(.tpl-media-item--selected):hover{border-color:var(--tpl-border)!important}.tpl-media-list-item[data-v-57c35946]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-list-icon[data-v-57c35946]{transform:scale(.35);transform-origin:center}.tpl-preview-icon[data-v-50993988]{transform:scale(.45);transform-origin:center}.tpl-comments-slide-enter-active[data-v-ebc3c2c6]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-comments-slide-leave-active[data-v-ebc3c2c6]{transition:transform .2s cubic-bezier(.16,1,.3,1)}.tpl-comments-input-wrapper[data-v-ebc3c2c6]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-comments-send-btn[data-v-ebc3c2c6]:not(:disabled):hover{transform:scale(1.05)}.tpl-comment-filter[data-v-ebc3c2c6]{color:var(--tpl-text-muted);background-color:transparent}.tpl-comment-filter[data-v-ebc3c2c6]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-filter--active[data-v-ebc3c2c6]{background-color:var(--tpl-primary-light);color:var(--tpl-primary)}.tpl-comment-action[data-v-ebc3c2c6]{color:var(--tpl-text-dim);background-color:transparent}.tpl-comment-action[data-v-ebc3c2c6]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-delete[data-v-ebc3c2c6]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-comment-card[data-v-ebc3c2c6],.tpl-comment-reply-card[data-v-ebc3c2c6]{border-color:var(--tpl-border);background-color:var(--tpl-bg)}.tpl-resolve-enter-active[data-v-ebc3c2c6],.tpl-resolve-leave-active[data-v-ebc3c2c6]{transition:opacity .3s ease,transform .3s ease}.tpl-resolve-enter-from[data-v-ebc3c2c6],.tpl-resolve-leave-to[data-v-ebc3c2c6]{opacity:0;transform:translateY(-4px)}.tpl-resolve-icon[data-v-ebc3c2c6]{transition:color .3s ease,transform .2s ease}.tpl-resolve-icon[data-v-ebc3c2c6]:active{transform:scale(1.3)}.tpl-replies-enter-active[data-v-ebc3c2c6],.tpl-replies-leave-active[data-v-ebc3c2c6]{transition:opacity .25s ease,transform .25s ease}.tpl-replies-enter-from[data-v-ebc3c2c6],.tpl-replies-leave-to[data-v-ebc3c2c6]{opacity:0;transform:translateY(-4px)}.tpl-ai-input-wrapper[data-v-d3e3a1af]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-ai-send-btn[data-v-d3e3a1af]:not(:disabled):hover{transform:scale(1.05)}.tpl-starter-btn[data-v-d3e3a1af]:hover{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.vue-advanced-cropper{text-align:center;position:relative;-webkit-user-select:none;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{-webkit-user-select:none;user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;-webkit-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;-webkit-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}[data-v-7d9a1872] .tpl-cropper-background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper{background-color:transparent!important}[data-v-7d9a1872] .vue-advanced-cropper__background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper__foreground{background-color:var(--tpl-overlay)!important}\n/*$vite$:1*/", qo = null;
|
|
4330
|
+
function Jo() {
|
|
4331
|
+
if (qo === null) {
|
|
4335
4332
|
let e = new CSSStyleSheet();
|
|
4336
|
-
e.replaceSync(
|
|
4333
|
+
e.replaceSync(Ho(Ko)), qo = e;
|
|
4337
4334
|
}
|
|
4338
|
-
return
|
|
4335
|
+
return qo;
|
|
4339
4336
|
}
|
|
4340
|
-
function
|
|
4337
|
+
function Yo(e) {
|
|
4341
4338
|
return () => {};
|
|
4342
4339
|
}
|
|
4343
|
-
function
|
|
4340
|
+
function Xo(e, t) {
|
|
4344
4341
|
if (!t) return {
|
|
4345
4342
|
target: e,
|
|
4346
4343
|
shadowRoot: null,
|
|
4347
4344
|
cleanup: () => {}
|
|
4348
4345
|
};
|
|
4349
4346
|
let n = e.shadowRoot ?? e.attachShadow({ mode: "open" });
|
|
4350
|
-
for (n.adoptedStyleSheets = [
|
|
4347
|
+
for (n.adoptedStyleSheets = [Jo()]; n.firstChild;) n.removeChild(n.firstChild);
|
|
4351
4348
|
let r = document.createElement("div");
|
|
4352
4349
|
return r.className = "tpl-editor-host", r.style.cssText = "display:block;height:100%;width:100%;", n.appendChild(r), {
|
|
4353
4350
|
target: r,
|
|
4354
4351
|
shadowRoot: n,
|
|
4355
|
-
cleanup:
|
|
4352
|
+
cleanup: Yo(n)
|
|
4356
4353
|
};
|
|
4357
4354
|
}
|
|
4358
|
-
var
|
|
4359
|
-
function
|
|
4355
|
+
var Zo = /* @__PURE__ */ new Map(), Qo = null, $o = 0, es = /* @__PURE__ */ new WeakMap();
|
|
4356
|
+
function ts(e) {
|
|
4360
4357
|
let t = typeof e == "string" ? document.querySelector(e) : e;
|
|
4361
4358
|
if (!t) throw Error(`[Templatical] Container element not found: ${e}`);
|
|
4362
|
-
let n =
|
|
4363
|
-
return
|
|
4359
|
+
let n = ++$o;
|
|
4360
|
+
return es.set(t, n), {
|
|
4364
4361
|
container: t,
|
|
4365
4362
|
token: n
|
|
4366
4363
|
};
|
|
4367
4364
|
}
|
|
4368
|
-
function
|
|
4369
|
-
let n =
|
|
4370
|
-
n && (t && n.app !== t || (n.cleanup(), n.app.unmount(),
|
|
4365
|
+
function ns(e, t) {
|
|
4366
|
+
let n = Zo.get(e);
|
|
4367
|
+
n && (t && n.app !== t || (n.cleanup(), n.app.unmount(), Zo.delete(e), Qo === e && (Qo = null)));
|
|
4371
4368
|
}
|
|
4372
|
-
function
|
|
4373
|
-
e.layout && (e.layout =
|
|
4369
|
+
function rs(e) {
|
|
4370
|
+
e.layout && (e.layout = hn(e.layout, e.mergeTags), Te(e.layout)), e.content && (e.content = hn(e.content, e.mergeTags), ye(e.content), de(e.content));
|
|
4374
4371
|
}
|
|
4375
|
-
async function
|
|
4372
|
+
async function is(e) {
|
|
4376
4373
|
let t = { ...e };
|
|
4377
|
-
if (t.translation !== void 0 && (t.translation === null || typeof t.translation != "object" || typeof t.translation.translate != "function")) throw new
|
|
4378
|
-
for (let e of t.localization?.locales ?? []) if (!
|
|
4374
|
+
if (t.translation !== void 0 && (t.translation === null || typeof t.translation != "object" || typeof t.translation.translate != "function")) throw new Z("translation must be an object with a translate function.");
|
|
4375
|
+
for (let e of t.localization?.locales ?? []) if (!Fe(e)) throw new Z(`Invalid localization locale "${e}".`);
|
|
4379
4376
|
let n = t.localization?.doNotTranslate;
|
|
4380
|
-
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
|
|
4381
|
-
return
|
|
4377
|
+
if (n !== void 0 && (!Array.isArray(n) || n.length > 500 || n.some((e) => typeof e != "string" || e.trim().length < 1 || e.trim().length > 100))) throw new Z("localization.doNotTranslate must be an array of at most 500 terms, each 1–100 characters.");
|
|
4378
|
+
return rs(t), as(t, ts(t.container));
|
|
4382
4379
|
}
|
|
4383
|
-
async function
|
|
4384
|
-
e.locale !== void 0 && !
|
|
4385
|
-
let i = await
|
|
4386
|
-
if (
|
|
4380
|
+
async function as(e, { container: t, token: n }, r) {
|
|
4381
|
+
e.locale !== void 0 && !zt(e.locale) && Dn.warn(`config.locale: "${e.locale}" has no translations — falling back to English. Supported: ${Lt().sort().join(", ")}.`);
|
|
4382
|
+
let i = await It(e.locale ?? "en"), a = Ht(e.fonts);
|
|
4383
|
+
if (es.get(t) !== n) return os({
|
|
4387
4384
|
config: e,
|
|
4388
4385
|
editorRef: S(null),
|
|
4389
4386
|
fontsManager: a,
|
|
4390
4387
|
unmount: () => {}
|
|
4391
4388
|
}).instance;
|
|
4392
|
-
|
|
4393
|
-
let o =
|
|
4394
|
-
return () => m(
|
|
4389
|
+
ns(t);
|
|
4390
|
+
let o = Xo(t, e.shadowDom ?? !0), s = S(null), c = V({ setup() {
|
|
4391
|
+
return () => m(Bo, {
|
|
4395
4392
|
config: e,
|
|
4396
4393
|
translations: i,
|
|
4397
4394
|
fontsManager: a,
|
|
@@ -4404,39 +4401,39 @@ async function rs(e, { container: t, token: n }, r) {
|
|
|
4404
4401
|
ref: s
|
|
4405
4402
|
});
|
|
4406
4403
|
} });
|
|
4407
|
-
c.mount(o.target),
|
|
4404
|
+
c.mount(o.target), Zo.set(t, {
|
|
4408
4405
|
app: c,
|
|
4409
4406
|
editorRef: s,
|
|
4410
4407
|
cleanup: o.cleanup
|
|
4411
|
-
}),
|
|
4412
|
-
let { instance: l, render: u } =
|
|
4408
|
+
}), Qo = t;
|
|
4409
|
+
let { instance: l, render: u } = os({
|
|
4413
4410
|
config: e,
|
|
4414
4411
|
editorRef: s,
|
|
4415
4412
|
fontsManager: a,
|
|
4416
|
-
unmount: () =>
|
|
4413
|
+
unmount: () => ns(t, c)
|
|
4417
4414
|
});
|
|
4418
4415
|
return l;
|
|
4419
4416
|
}
|
|
4420
|
-
function
|
|
4417
|
+
function os({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
4421
4418
|
let i = {
|
|
4422
4419
|
getContent() {
|
|
4423
|
-
return t.value ?
|
|
4420
|
+
return t.value ? Ne(t.value.getContent()) : Ne(e.content ?? fe(e.fonts?.defaultFont, $n(e)));
|
|
4424
4421
|
},
|
|
4425
4422
|
getLocale() {
|
|
4426
4423
|
return t.value?.getLocale() ?? Q(i.getContent());
|
|
4427
4424
|
},
|
|
4428
4425
|
setLocale(n) {
|
|
4429
4426
|
let r = i.getContent();
|
|
4430
|
-
if (n !== Q(r) && (!e.localization || !r.settings.locales?.includes(n))) throw new
|
|
4427
|
+
if (n !== Q(r) && (!e.localization || !r.settings.locales?.includes(n))) throw new Z(`This template has no "${n}" version.`, void 0, "unknown_locale");
|
|
4431
4428
|
t.value?.setLocale(n);
|
|
4432
4429
|
},
|
|
4433
4430
|
setContent(n) {
|
|
4434
|
-
let r =
|
|
4431
|
+
let r = hn(n, e.mergeTags);
|
|
4435
4432
|
t.value && t.value.setContent(r), e.content = r;
|
|
4436
4433
|
},
|
|
4437
4434
|
insertBlock(n) {
|
|
4438
4435
|
let r = { blocks: [n] };
|
|
4439
|
-
return
|
|
4436
|
+
return ye(r), de(r), t.value ? t.value.insertBlock(_n(n, e.mergeTags)) : null;
|
|
4440
4437
|
},
|
|
4441
4438
|
setTheme(e) {
|
|
4442
4439
|
t.value && t.value.setTheme(e);
|
|
@@ -4451,7 +4448,7 @@ function is({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
4451
4448
|
create(n) {
|
|
4452
4449
|
return t.value ? t.value.create(n?.content ? {
|
|
4453
4450
|
...n,
|
|
4454
|
-
content:
|
|
4451
|
+
content: hn(n.content, e.mergeTags)
|
|
4455
4452
|
} : n) : Promise.reject(/* @__PURE__ */ Error("[Templatical] Editor not ready"));
|
|
4456
4453
|
},
|
|
4457
4454
|
load(e) {
|
|
@@ -4471,20 +4468,20 @@ function is({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
4471
4468
|
},
|
|
4472
4469
|
toMjml: (e) => a.toMjml(e),
|
|
4473
4470
|
toHtml: (e) => a.toHtml(e)
|
|
4474
|
-
}, a =
|
|
4471
|
+
}, a = Go({
|
|
4475
4472
|
provider: e.render,
|
|
4476
|
-
buildPayload: (t) =>
|
|
4473
|
+
buildPayload: (t) => Wo({
|
|
4477
4474
|
getContent: () => i.getContent(),
|
|
4478
4475
|
renderCustomBlock: (e) => i.renderCustomBlock(e),
|
|
4479
4476
|
getCustomBlockStylesheet: (e) => i.getCustomBlockStylesheet(e),
|
|
4480
|
-
getFonts: () =>
|
|
4477
|
+
getFonts: () => Uo(n),
|
|
4481
4478
|
getLayout: () => e.layout
|
|
4482
4479
|
}, t),
|
|
4483
|
-
renderLocalMjml: (t) =>
|
|
4480
|
+
renderLocalMjml: (t) => di({
|
|
4484
4481
|
getContent: () => i.getContent(),
|
|
4485
4482
|
renderCustomBlock: (e) => i.renderCustomBlock(e),
|
|
4486
4483
|
getCustomBlockStylesheet: (e) => i.getCustomBlockStylesheet(e),
|
|
4487
|
-
getFonts: () =>
|
|
4484
|
+
getFonts: () => Uo(n),
|
|
4488
4485
|
socialIconsBaseUrl: e.socialIconsBaseUrl,
|
|
4489
4486
|
getLayout: () => e.layout
|
|
4490
4487
|
}, ...t ? [t] : [])
|
|
@@ -4494,18 +4491,18 @@ function is({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
4494
4491
|
render: a
|
|
4495
4492
|
};
|
|
4496
4493
|
}
|
|
4497
|
-
async function
|
|
4494
|
+
async function ss(e) {
|
|
4498
4495
|
let t = {
|
|
4499
4496
|
layout: e.layout,
|
|
4500
4497
|
content: e.content,
|
|
4501
4498
|
mergeTags: e.mergeTags
|
|
4502
4499
|
};
|
|
4503
|
-
|
|
4504
|
-
let n =
|
|
4500
|
+
rs(t);
|
|
4501
|
+
let n = ts(e.container), [{ bootstrapCloud: r }, i] = await Promise.all([import("./createCloudRuntime-CL4tUlDC.js"), Pt(e.locale ?? "en")]), { runtime: a, providers: o, user: s } = await r({
|
|
4505
4502
|
config: e,
|
|
4506
4503
|
cloudTranslations: i
|
|
4507
4504
|
});
|
|
4508
|
-
return
|
|
4505
|
+
return as({
|
|
4509
4506
|
container: e.container,
|
|
4510
4507
|
content: t.content,
|
|
4511
4508
|
layout: t.layout,
|
|
@@ -4549,7 +4546,7 @@ async function as(e) {
|
|
|
4549
4546
|
user: s
|
|
4550
4547
|
}, n, a);
|
|
4551
4548
|
}
|
|
4552
|
-
function
|
|
4553
|
-
|
|
4549
|
+
function cs() {
|
|
4550
|
+
Qo && ns(Qo);
|
|
4554
4551
|
}
|
|
4555
|
-
export {
|
|
4552
|
+
export { Sn as AI_ALT_TEXT_RULES, wn as AI_FIXABLE_RULES, Le as applyLayout, fe as createDefaultTemplateContent, oe as createLocalStorageMediaProvider, q as createLocalStorageSavedBlocksProvider, xe as createParagraphBlock, Se as createSlotBlock, Ce as createWrapperBlock, Mt as getBaseLocale, Qt as getSupportedCloudLocales, Lt as getSupportedLocales, is as init, ss as initCloud, Rt as isCloudLocaleSupported, zt as isLocaleSupported, be as isSlot, he as isWrapper, je as layoutWrapsSlot, cs as unmount, Te as validateLayout };
|