@templatical/editor 0.52.0 → 0.52.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-Cm11CsKH.js → AiAltTextPopover-DawbUywc.js} +13 -13
- package/dist/{AiAltTextReview-DE8t8Rud.js → AiAltTextReview-9ySsXOTU.js} +22 -22
- package/dist/{AiChatPanel-7ftS7d40.js → AiChatPanel-CupPhmsN.js} +137 -137
- package/dist/{AiPanels-CxGp6klr.js → AiPanels-DqT4PgQ0.js} +4 -4
- package/dist/{AiRewriteMenu-DNI-5CUj.js → AiRewriteMenu-28agTycW.js} +62 -62
- package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
- package/dist/{BlockPreviewCanvas-Df9iz7sK.js → BlockPreviewCanvas-B-4bmJ3t.js} +23 -23
- package/dist/{CloudHeaderExtras-CsgyNNV1.js → CloudHeaderExtras-QI82yF54.js} +3 -3
- package/dist/{CloudPanels-BDV4XQ_l.js → CloudPanels-BKJaLkUN.js} +50 -50
- package/dist/{CollaborationNotices-JQ3vQoqO.js → CollaborationNotices-CTw4JThq.js} +11 -11
- package/dist/{CollaboratorBar-EeqqWcX6.js → CollaboratorBar-CXQqN3VP.js} +15 -15
- package/dist/{CommentsPanel-BuftXc0U.js → CommentsPanel-DwwFuh1h.js} +2 -2
- package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
- package/dist/{CountdownBlock-BT3ZTH1F.js → CountdownBlock-CU2yTWtF.js} +20 -20
- package/dist/{CountdownToolbar-CrL4WKy9.js → CountdownToolbar-BqoYzf_6.js} +53 -53
- package/dist/IssuesPanel-4ykrf1ax.js +359 -0
- package/dist/{LoadingTrack-DZA5AoP9.js → LoadingTrack-DM4g6j7b.js} +1 -1
- package/dist/{LogicTagInsertButton-CSD9cfJB.js → LogicTagInsertButton-CfscnwCn.js} +234 -234
- package/dist/{MediaEditModal-DQl5w44r.js → MediaEditModal-Dy08GEwE.js} +446 -446
- package/dist/{MediaPanels-BFWYuJot.js → MediaPanels-BgEp7iCp.js} +2 -2
- package/dist/{MergeTagInput-DE7kWwXx.js → MergeTagInput-B9dtUthD.js} +11 -11
- package/dist/{MergeTagModeToggle-DvD0ne7N.js → MergeTagModeToggle-DxujhYJ4.js} +30 -30
- package/dist/{MergeTagTextarea-DVPQkiYY.js → MergeTagTextarea-CPFEjJZd.js} +11 -11
- package/dist/{ParagraphEditor-D-nqs82g.js → ParagraphEditor-CWXfurGh.js} +201 -201
- package/dist/{RestoreVersionDialog-DqUPsLB9.js → RestoreVersionDialog-C4s_JYCx.js} +14 -14
- package/dist/{RichTextEditorContent-Xq9D0Zs3.js → RichTextEditorContent-o6HmE8GR.js} +40 -39
- package/dist/{SaveBlockDialog-DAPv70p4.js → SaveBlockDialog-CWLrly6l.js} +56 -56
- package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
- package/dist/{SavedBlocksPanels-ChbL9v9x.js → SavedBlocksPanels-BE1N9rNZ.js} +6 -6
- package/dist/{SavedBlocksPickBar-hRaiLNdu.js → SavedBlocksPickBar-Dwl94xhP.js} +12 -12
- package/dist/{TemplateSettings-D0XcH32O.js → TemplateSettings-CS0f1Ues.js} +74 -74
- package/dist/{TestEmailModal-Cb5t0yB2.js → TestEmailModal-DBD0X5nV.js} +52 -52
- package/dist/{TestEmailPanel-COJQa2A9.js → TestEmailPanel-DaFjP9QK.js} +2 -2
- package/dist/{TitleEditor-BYk_9SpQ.js → TitleEditor-DSqtle77.js} +75 -75
- package/dist/{ToggleSwitch-poGWbduy.js → ToggleSwitch-JykPyD_8.js} +4 -4
- package/dist/{Toolbar-Dku_pZni.js → Toolbar-BZPFfKrf.js} +913 -913
- package/dist/{TplModal-9IndEYk5.js → TplModal-DLMssVlt.js} +15 -15
- package/dist/{VersionHistoryMenu-BG5qayvg.js → VersionHistoryMenu-BkbYUs0Q.js} +35 -35
- package/dist/{VersionHistoryPanels-hPg7Q5-f.js → VersionHistoryPanels-DP7HaYWv.js} +4 -4
- package/dist/{VersionPreviewBanner-CSs7zum_.js → VersionPreviewBanner-DECaBwLq.js} +9 -9
- package/dist/{WrapperBlock-DwjK_IdJ.js → WrapperBlock-BsJv_Fiw.js} +16 -16
- package/dist/{blockTypeIcons-yt7SLzub.js → blockTypeIcons-BHjlPnPf.js} +23 -22
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js → AiAltTextPopover-SEEjkd-I.js} +21 -21
- package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js → AiAltTextReview-BGLLSKLm.js} +41 -41
- package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js → AiChatPanel-DKDAaBNi.js} +127 -127
- package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js → AiPanels-0wBarZSH.js} +3 -3
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js.map → AiPanels-0wBarZSH.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js → AiRewriteMenu-qf-cfEpy.js} +43 -43
- package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js.map → AiRewriteMenu-qf-cfEpy.js.map} +1 -1
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js → BlockPreviewCanvas-DGBh6mqe.js} +20 -20
- package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js → CloudHeaderExtras-BMNK_F9p.js} +3 -3
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js → CloudPanels-JMWIoVWh.js} +32 -32
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js → CollaborationNotices-Bsf1rGW9.js} +12 -12
- package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js → CollaboratorBar-CXByAoUz.js} +14 -14
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js → CommentsPanel-DoJnKLXI.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Dj8sDiLN.js → CommentsSidebar-CUtgvdBC.js} +100 -99
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js → CountdownBlock-BqRw147R.js} +18 -18
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js → CountdownToolbar-xobieKoU.js} +26 -26
- package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js → IssuesPanel-C7LfxaAY.js} +75 -75
- package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js → LoadingTrack-CZuLTazv.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js → LogicTagInsertButton-BIi05UQu.js} +250 -250
- package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js → MediaEditModal-Cpcod6_U.js} +148 -148
- package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js → MediaPanels-BIdcW_1f.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js → MergeTagInput-BvWg8o5E.js} +32 -32
- package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js → MergeTagModeToggle-BgKEVUtV.js} +27 -27
- package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js → MergeTagTextarea-tBz8McZf.js} +32 -32
- package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DsPLVAgm.js → ParagraphEditor-B3Rj_cWF.js} +191 -191
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js → RestoreVersionDialog-CjOdD2xj.js} +19 -19
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js → RichTextEditorContent-DNjR_sNN.js} +29 -29
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js → SaveBlockDialog-CUhpawq0.js} +75 -75
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-B9XCjDfm.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js → SavedBlocksPanels-C6--Bc81.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js → SavedBlocksPickBar-DUavxpbU.js} +14 -14
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js → TemplateSettings-CKtI-dof.js} +69 -69
- package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js → TestEmailModal-CDQTgESD.js} +65 -65
- package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js → TestEmailPanel-CcUpEpAn.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-R2lQw6WA.js → TitleEditor-Cob7RLyK.js} +70 -70
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
- package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js → ToggleSwitch-J7Vwhvha.js} +5 -5
- package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-CnvfW72e.js → Toolbar-CdpsvNOR.js} +893 -893
- package/dist/cdn/chunks/{Toolbar-CnvfW72e.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
- package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
- package/dist/cdn/chunks/{TplModal-BDyeS69p.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js → VersionHistoryMenu-BYlLRvRJ.js} +32 -32
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js → VersionHistoryPanels-C6SOVoiT.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js → VersionPreviewBanner-Dvg0ZfAW.js} +10 -10
- package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js → WrapperBlock-C7Md56IT.js} +13 -13
- package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js → createCloudRuntime-Cth2JCEh.js} +36 -36
- package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
- package/dist/cdn/chunks/{dist-C2epoAwW.js → dist-8ym3y-pH.js} +43 -43
- package/dist/cdn/chunks/{dist-C2epoAwW.js.map → dist-8ym3y-pH.js.map} +1 -1
- package/dist/{dist-BA-jTQgw.js → cdn/chunks/dist-BMzNabtD.js} +106 -107
- package/dist/cdn/chunks/{dist-CONcGNwy.js.map → dist-BMzNabtD.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-B8hTTYFO.js → draggable-Du8AUMFT.js} +639 -636
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js → editor-modal-CyCe560f.js} +891 -891
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js.map → editor-modal-CyCe560f.js.map} +1 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
- package/dist/cdn/chunks/{extensions-ClDhn88e.js → extensions-CFF2KWy-.js} +55 -55
- package/dist/cdn/chunks/{extensions-ClDhn88e.js.map → extensions-CFF2KWy-.js.map} +1 -1
- package/dist/cdn/chunks/{icons-HCBP93Ch.js → icons-okSPsLOa.js} +99 -97
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
- package/dist/cdn/chunks/{keys-BF9gazbd.js → keys-CUj6UA38.js} +2 -2
- package/dist/cdn/chunks/{keys-BF9gazbd.js.map → keys-CUj6UA38.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-DkLBNrft.js → liquid.browser-rubac0VA.js} +782 -746
- package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js → normalizeMergeTagMarkup-C_KlfSW4.js} +2 -2
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js → preRenderCustomBlocks-BcXIz7oJ.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js → sanitizeHtml-CN85EDrO.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js.map → sanitizeHtml-CN85EDrO.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js → socialIcons-jsTDmkbb.js} +480 -480
- package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
- package/dist/cdn/chunks/{src-CUH_EI7k.js → src-C7bkofBL.js} +6 -6
- package/dist/cdn/chunks/{src-CUH_EI7k.js.map → src-C7bkofBL.js.map} +1 -1
- package/dist/cdn/chunks/{src-BKpAis_q.js → src-DEd87i_U.js} +2 -2
- package/dist/cdn/chunks/{src-BKpAis_q.js.map → src-DEd87i_U.js.map} +1 -1
- package/dist/cdn/chunks/{src-C9DTvn1H.js → src-DwWrYnUj.js} +3 -22
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js → tiptap-CbiTlECY.js} +45 -45
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js.map → tiptap-CbiTlECY.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js → useCloudI18n-DY8_-ETE.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-BT3c9CXj.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js → useI18n-D8pY4LTq.js} +3 -3
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js.map → useI18n-D8pY4LTq.js.map} +1 -1
- package/dist/{useLogicTag-DFDYJeMN.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +5 -3
- package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
- package/dist/{useMergeTag-B46vACAG.js → cdn/chunks/useMergeTag-B-aG--s1.js} +7 -5
- package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js → usePopoverPosition-DSMtmu2W.js} +4 -4
- package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js → useScrollToBlock-vjQ0fe-L.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js → withCurrentFont-hZTvYBHO.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1422 -1422
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-N3x4z_rH.js → check-BZ8o0eet.js} +1 -1
- package/dist/{chevron-down-gXu9qNwO.js → chevron-down-DfAAfILv.js} +1 -1
- package/dist/{chevron-right-rL0ayGk5.js → chevron-right-Bk4mGdr7.js} +1 -1
- package/dist/{chevron-up-0ugh8HnW.js → chevron-up-MhUf_azW.js} +1 -1
- package/dist/{circle-alert-B9Ls75B5.js → circle-alert-CShJwVFv.js} +1 -1
- package/dist/{clock-BqHBaCLm.js → clock-CTfD6OCt.js} +1 -1
- package/dist/{createCloudRuntime-B5VIdnwz.js → createCloudRuntime-DCgO4A1r.js} +24 -24
- package/dist/{createLucideIcon-BV7Gwz_Z.js → createLucideIcon-CvhTA2KG.js} +6 -6
- package/dist/{cdn/chunks/dist-CONcGNwy.js → dist-ByCWA2Tv.js} +100 -99
- package/dist/{dist-CzrLYq2s.js → dist-CKi_npZM.js} +2 -21
- package/dist/{dist-CEdyyDn7.js → dist-CVy-7PHQ.js} +54 -54
- package/dist/{dist-DDN7yR-w.js → dist-D6cMdrfG.js} +129 -129
- package/dist/{editor-modal-Du9VI9q4.js → editor-modal-zaZHcmlO.js} +812 -812
- package/dist/en-Db76vJbY.js +1 -0
- package/dist/{extensions-FRYhx7qa.js → extensions-fo_c-vqf.js} +32 -32
- package/dist/{eye-BKj9Tfnc.js → eye-7W4t5e0Q.js} +1 -1
- package/dist/{image-DNdvdTla.js → image-BDiRFzSd.js} +1 -1
- package/dist/{info-Bx-kBkbH.js → info-Cxi3-Kh9.js} +1 -1
- package/dist/{keys-DBjrQkYH.js → keys-BgRERHzu.js} +1 -1
- package/dist/{link-D8-rYdIQ.js → link-ju_2Cmir.js} +1 -1
- package/dist/{liquid.browser-D1RxawkY.js → liquid.browser-DUXEekoN.js} +781 -745
- package/dist/{list-BneisA27.js → list-DYZJf0aZ.js} +1 -1
- package/dist/{loader-circle-DBEXphyx.js → loader-circle-BZRD0a4I.js} +1 -1
- package/dist/{message-circle-Bg4xInCM.js → message-circle-DuEw4Zfx.js} +1 -1
- package/dist/{normalizeMergeTagMarkup-IH8COHzd.js → normalizeMergeTagMarkup-CELnOlgK.js} +1 -1
- package/dist/{package-B40Vkfsp.js → package-CePMr2kK.js} +1 -1
- package/dist/{pencil-CYdAHTds.js → pencil-D3aFCL7c.js} +1 -1
- package/dist/{preRenderCustomBlocks-AbZArwkR.js → preRenderCustomBlocks--_xc0XK3.js} +1 -1
- package/dist/{refresh-cw-Bb1FWrU0.js → refresh-cw-xnro7_Sk.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CLGymEyk.js → runtime-dom.esm-bundler-BURR-bj5.js} +118 -118
- package/dist/{sanitizeHtml-CnOA1efV.js → sanitizeHtml-BzfzpYJY.js} +1 -1
- package/dist/{search-BZEo08gi.js → search-CDrstRBv.js} +1 -1
- package/dist/{send-DHtrnXQs.js → send-DROkPOaX.js} +1 -1
- package/dist/{smartphone-dlN3vpA3.js → smartphone-Bx6u_tjn.js} +1 -1
- package/dist/{socialIcons-B_d52_eS.js → socialIcons-D7MGsg0d.js} +366 -366
- package/dist/{sparkles-NOttoDnJ.js → sparkles-CdaTtvoz.js} +1 -1
- package/dist/{square-B1CJgdt2.js → square-BbCROH_f.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +1096 -1096
- package/dist/{text-align-start-zpoXmb-Z.js → text-align-start-CGacJ9Vw.js} +1 -1
- package/dist/{trash-CGbk4Sgt.js → trash-DxCd7zIy.js} +1 -1
- package/dist/{triangle-alert-CKLMyGVp.js → triangle-alert-7_oaitpf.js} +1 -1
- package/dist/{upload-DQoackAn.js → upload-DuFEOi_0.js} +1 -1
- package/dist/{useCloudI18n-DcLtxOQZ.js → useCloudI18n-DEMmUKuO.js} +2 -2
- package/dist/{useEditorCore-DG9UvWUm.js → useEditorCore-BSo2sSID.js} +1518 -1470
- package/dist/useEditorRoot-BMcoCLBx.js +7 -0
- package/dist/{useI18n-CeTm777E.js → useI18n-BBrHTdu8.js} +2 -2
- package/dist/{cdn/chunks/useLogicTag-vy5KGg5D.js → useLogicTag-ZPC39rfH.js} +3 -5
- package/dist/{cdn/chunks/useMergeTag-BFBBjnwh.js → useMergeTag-BQ4qqWpQ.js} +5 -7
- package/dist/{usePopoverPosition-C42kD7zt.js → usePopoverPosition-DV1PxL66.js} +3 -3
- package/dist/{useScrollToBlock-C-NzvjeO.js → useScrollToBlock-BSyAV4pk.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-CrlI8j5R.js → vue.runtime.esm-bundler-CnEeTfhs.js} +993 -990
- package/dist/{withCurrentFont-v_a4Oso8.js → withCurrentFont-B22FXAF5.js} +1 -1
- package/dist/{x-zcrnmcmU.js → x-BpfG7v9g.js} +1 -1
- package/package.json +10 -10
- package/dist/BlockIssueBadge-6Ri2FfX-.js +0 -33
- package/dist/CommentsSidebar-Co3x4uH0.js +0 -499
- package/dist/IssuesPanel-BHFQ3wrP.js +0 -359
- package/dist/SavedBlocksBrowserModal-SRtN5h9q.js +0 -359
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-B9XCjDfm.js +0 -356
- package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js.map +0 -1
- package/dist/cdn/chunks/TplModal-BDyeS69p.js +0 -51
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js +0 -21
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js.map +0 -1
- package/dist/cdn/chunks/draggable-B8hTTYFO.js.map +0 -1
- package/dist/cdn/chunks/en-CKAXAo3Z.js +0 -1
- package/dist/cdn/chunks/icons-HCBP93Ch.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +0 -1
- package/dist/cdn/chunks/src-C9DTvn1H.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js +0 -2534
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +0 -9
- package/dist/en-CyEE7FPY.js +0 -1
- package/dist/useEditorRoot-BKr6nNkC.js +0 -7
package/dist/cdn/editor.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as
|
|
3
|
-
import { A as me, D as he, E as ge, O as _e, T as ve, c as ye, g as be, j as xe, k as Se, s as Ce, y as we, z as Te } from "./chunks/socialIcons-
|
|
4
|
-
import { _ as Ee, d as De, g as Oe } from "./chunks/dist-
|
|
5
|
-
import { a as ke } from "./chunks/dist-
|
|
6
|
-
import { A as Ae, C as je, F as Me, I as Ne, L as Pe, M as Fe, N as Ie, O as Le, P as Re, _ as ze, a as Be, b as Ve, c as He, d as Ue, f as We, g as Ge, h as Ke, i as qe, j as Je, l as Ye, m as Xe, n as Ze, o as Qe, p as $e, r as et, s as tt, t as nt, u as rt, w as it } from "./chunks/useEditorCore-
|
|
7
|
-
import { $ as at, A as ot, E as st, G as ct, J as lt, K as ut, M as dt, N as ft, P as pt, Q as mt, U as ht, V as gt, X as _t, Z as vt, f as yt, g as bt, l as xt, m as St, o as Ct, p as wt, q as Tt, r as Et, s as Dt, t as Ot, v as kt, z as At } from "./chunks/keys-
|
|
1
|
+
import { A as e, B as t, C as n, D as r, F as i, G as a, I as o, J as s, L as c, M as l, N as u, O as d, P as f, S as p, T as m, V as h, W as g, Z as _, _ as v, b as y, c as b, dt as x, et as S, ft as C, g as w, h as T, l as E, m as D, n as O, nt as k, o as ee, p as A, r as j, rt as M, s as N, st as P, t as F, u as I, ut as L, v as R, x as z, y as B, z as V } from "./chunks/draggable-Du8AUMFT.js";
|
|
2
|
+
import { $ as te, A as H, Ct as U, H as W, L as G, M as K, N as q, O as J, Ot as Y, P as ne, St as re, Tt as ie, W as X, X as Z, bt as ae, et as oe, i as Q, j as se, k as ce, n as le, pt as ue, u as de, xt as fe, yt as pe } from "./chunks/src-DwWrYnUj.js";
|
|
3
|
+
import { A as me, D as he, E as ge, O as _e, T as ve, c as ye, g as be, j as xe, k as Se, s as Ce, y as we, z as Te } from "./chunks/socialIcons-jsTDmkbb.js";
|
|
4
|
+
import { _ as Ee, d as De, g as Oe } from "./chunks/dist-8ym3y-pH.js";
|
|
5
|
+
import { a as ke } from "./chunks/dist-BMzNabtD.js";
|
|
6
|
+
import { A as Ae, C as je, F as Me, I as Ne, L as Pe, M as Fe, N as Ie, O as Le, P as Re, _ as ze, a as Be, b as Ve, c as He, d as Ue, f as We, g as Ge, h as Ke, i as qe, j as Je, l as Ye, m as Xe, n as Ze, o as Qe, p as $e, r as et, s as tt, t as nt, u as rt, w as it } from "./chunks/useEditorCore-BrY66C2y.js";
|
|
7
|
+
import { $ as at, A as ot, E as st, G as ct, J as lt, K as ut, M as dt, N as ft, P as pt, Q as mt, U as ht, V as gt, X as _t, Z as vt, f as yt, g as bt, l as xt, m as St, o as Ct, p as wt, q as Tt, r as Et, s as Dt, t as Ot, v as kt, z as At } from "./chunks/keys-CUj6UA38.js";
|
|
8
8
|
import { t as jt } from "./chunks/logger-CqQTfJGx.js";
|
|
9
|
-
import { t as $ } from "./chunks/useI18n-
|
|
9
|
+
import { t as $ } from "./chunks/useI18n-D8pY4LTq.js";
|
|
10
10
|
import { t as Mt } from "./chunks/templateSettingsFields-cjlP-jdw.js";
|
|
11
|
-
import { $ as Nt, A as Pt,
|
|
11
|
+
import { $ as Nt, A as Pt, Bt as Ft, D as It, Dt as Lt, E as Rt, F as zt, Ft as Bt, M as Vt, Ot as Ht, P as Ut, Q as Wt, Y as Gt, at as Kt, ct as qt, ft as Jt, j as Yt, nt as Xt, q as Zt, t as Qt, vt as $t, x as en, zt as tn } from "./chunks/icons-okSPsLOa.js";
|
|
12
12
|
import { t as nn } from "./chunks/_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
13
|
-
import { a as rn, i as an, n as on, o as sn, t as cn } from "./chunks/normalizeMergeTagMarkup-
|
|
13
|
+
import { a as rn, i as an, n as on, o as sn, t as cn } from "./chunks/normalizeMergeTagMarkup-C_KlfSW4.js";
|
|
14
14
|
import { t as ln } from "./chunks/aiErrors-C3QEMB0x.js";
|
|
15
15
|
import { t as un } from "./chunks/formatAbsoluteDateTime-Ck2_zXra.js";
|
|
16
16
|
import { n as dn, t as fn } from "./chunks/aiImageContext-BQ5mQ6B5.js";
|
|
17
|
-
import { i as pn, n as mn, r as hn, t as gn } from "./chunks/useScrollToBlock-
|
|
17
|
+
import { i as pn, n as mn, r as hn, t as gn } from "./chunks/useScrollToBlock-vjQ0fe-L.js";
|
|
18
18
|
import { C as _n, S as vn, p as yn, y as bn } from "./chunks/styleConstants-B8xVRiwX.js";
|
|
19
|
-
import { t as xn } from "./chunks/WrapperBlock-
|
|
20
|
-
import { t as Sn } from "./chunks/blockTypeIcons-
|
|
21
|
-
import { n as Cn, t as wn } from "./chunks/MergeTagModeToggle-
|
|
19
|
+
import { t as xn } from "./chunks/WrapperBlock-C7Md56IT.js";
|
|
20
|
+
import { t as Sn } from "./chunks/blockTypeIcons-D7FW7Ypo.js";
|
|
21
|
+
import { n as Cn, t as wn } from "./chunks/MergeTagModeToggle-BgKEVUtV.js";
|
|
22
22
|
import { t as Tn } from "./chunks/formatRelativeTime-BTD8Ktt-.js";
|
|
23
|
-
import { t as En } from "./chunks/TplModal-
|
|
24
|
-
import { t as Dn } from "./chunks/preRenderCustomBlocks-
|
|
23
|
+
import { t as En } from "./chunks/TplModal-CFPDgbwQ.js";
|
|
24
|
+
import { t as Dn } from "./chunks/preRenderCustomBlocks-BcXIz7oJ.js";
|
|
25
25
|
// src/utils/resolveTemplateDefaults.ts
|
|
26
26
|
var On = /^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i;
|
|
27
27
|
function kn(e) {
|
|
@@ -46,25 +46,25 @@ function Nn(e) {
|
|
|
46
46
|
templateUpdated: r
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function Pn(
|
|
50
|
-
let
|
|
51
|
-
function
|
|
52
|
-
let t =
|
|
53
|
-
t && clearTimeout(t),
|
|
49
|
+
function Pn(e) {
|
|
50
|
+
let t = S([]), n = 1, r = /* @__PURE__ */ new Map();
|
|
51
|
+
function i(e) {
|
|
52
|
+
let t = r.get(e);
|
|
53
|
+
t && clearTimeout(t), r.set(e, setTimeout(() => o(e), An));
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
let
|
|
57
|
-
return
|
|
55
|
+
function a(e) {
|
|
56
|
+
let r = n++;
|
|
57
|
+
return t.value = [{
|
|
58
58
|
...e,
|
|
59
|
-
id:
|
|
60
|
-
}],
|
|
59
|
+
id: r
|
|
60
|
+
}], i(r), r;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
let
|
|
64
|
-
|
|
62
|
+
function o(e) {
|
|
63
|
+
let n = r.get(e);
|
|
64
|
+
n && (clearTimeout(n), r.delete(e)), t.value = t.value.filter((t) => t.id !== e);
|
|
65
65
|
}
|
|
66
66
|
function c(e) {
|
|
67
|
-
|
|
67
|
+
a(e.type === "selectionRefused" ? {
|
|
68
68
|
kind: "selectionRefused",
|
|
69
69
|
name: e.holder.name,
|
|
70
70
|
isGuest: e.holder.type === "guest"
|
|
@@ -77,7 +77,7 @@ function Pn(t) {
|
|
|
77
77
|
} : {}
|
|
78
78
|
} : { kind: "undoSkipped" });
|
|
79
79
|
}
|
|
80
|
-
let l = null, u =
|
|
80
|
+
let l = null, u = k(/* @__PURE__ */ new Map()), d = /* @__PURE__ */ new Map(), f = 0;
|
|
81
81
|
function p(e) {
|
|
82
82
|
if (e.length === 0) return;
|
|
83
83
|
let t = ++f, n = new Map(u.value);
|
|
@@ -92,15 +92,15 @@ function Pn(t) {
|
|
|
92
92
|
}
|
|
93
93
|
u.value = n;
|
|
94
94
|
}
|
|
95
|
-
function m(e,
|
|
95
|
+
function m(e, n) {
|
|
96
96
|
if (e.type !== "mcp" && e.type !== "ai") return;
|
|
97
97
|
let r = e.type === "ai";
|
|
98
98
|
if (r && e.sessionId === h.sessionId) {
|
|
99
|
-
|
|
99
|
+
n.templateUpdated || p(n.blockIds);
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
|
-
let
|
|
103
|
-
(!u || u.key !== s || c - u.lastAt > 2e3 ||
|
|
102
|
+
let o = !r && typeof e.client == "string" && e.client.trim() !== "" ? e.client : null, s = `${e.type}\n${e.id ?? ""}\n${o ?? ""}`, c = Date.now(), u = l;
|
|
103
|
+
(!u || u.key !== s || c - u.lastAt > 2e3 || t.value.at(-1)?.id !== u.noticeId) && (u = {
|
|
104
104
|
key: s,
|
|
105
105
|
noticeId: 0,
|
|
106
106
|
lastAt: c,
|
|
@@ -108,8 +108,8 @@ function Pn(t) {
|
|
|
108
108
|
settings: !1,
|
|
109
109
|
templateUpdated: !1
|
|
110
110
|
});
|
|
111
|
-
for (let e of
|
|
112
|
-
u.settings ||=
|
|
111
|
+
for (let e of n.blockIds) u.blockIds.add(e);
|
|
112
|
+
u.settings ||= n.settings, u.templateUpdated ||= n.templateUpdated, u.lastAt = c;
|
|
113
113
|
let d = {
|
|
114
114
|
blocks: u.blockIds.size,
|
|
115
115
|
settings: u.settings,
|
|
@@ -120,53 +120,53 @@ function Pn(t) {
|
|
|
120
120
|
...d
|
|
121
121
|
} : {
|
|
122
122
|
kind: "agentEdited",
|
|
123
|
-
client:
|
|
123
|
+
client: o,
|
|
124
124
|
name: e.name,
|
|
125
125
|
...d
|
|
126
126
|
};
|
|
127
|
-
u === l ? (
|
|
127
|
+
u === l ? (t.value = [{
|
|
128
128
|
...f,
|
|
129
129
|
id: u.noticeId
|
|
130
|
-
}],
|
|
130
|
+
}], i(u.noticeId)) : (u.noticeId = a(f), l = u), n.templateUpdated || p(n.blockIds);
|
|
131
131
|
}
|
|
132
132
|
let h = xe({
|
|
133
|
-
provider:
|
|
134
|
-
loadTemplate:
|
|
135
|
-
normalizeRemoteOperations: (
|
|
136
|
-
onRemoteChange: (
|
|
133
|
+
provider: e.provider,
|
|
134
|
+
loadTemplate: e.loadTemplate,
|
|
135
|
+
normalizeRemoteOperations: (t, n) => an(t, n, e.mergeTags),
|
|
136
|
+
onRemoteChange: (t) => {
|
|
137
137
|
try {
|
|
138
|
-
m(
|
|
138
|
+
m(t.actor, Nn(t.ops));
|
|
139
139
|
} finally {
|
|
140
|
-
|
|
140
|
+
e.onRemoteChange?.(t);
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
143
|
onRemoteResync: ({ actor: e }) => m(e, Mn),
|
|
144
144
|
onNotice: c,
|
|
145
|
-
onError:
|
|
145
|
+
onError: e.onError
|
|
146
146
|
});
|
|
147
|
-
|
|
148
|
-
for (let e of
|
|
147
|
+
s() && _(() => {
|
|
148
|
+
for (let e of r.values()) clearTimeout(e);
|
|
149
149
|
for (let e of d.values()) clearTimeout(e);
|
|
150
|
-
|
|
150
|
+
r.clear(), d.clear();
|
|
151
151
|
});
|
|
152
|
-
let g =
|
|
153
|
-
let
|
|
154
|
-
for (let
|
|
155
|
-
if (
|
|
156
|
-
let
|
|
157
|
-
r.has(
|
|
158
|
-
key:
|
|
159
|
-
type:
|
|
160
|
-
name:
|
|
161
|
-
...
|
|
162
|
-
color:
|
|
152
|
+
let g = A(() => {
|
|
153
|
+
let t = h.members.value, n = t.find((e) => e.sessionId === h.sessionId)?.userId ?? e.user?.id ?? null, r = /* @__PURE__ */ new Map();
|
|
154
|
+
for (let e of t) {
|
|
155
|
+
if (e.sessionId === h.sessionId || e.userId !== null && e.userId === n) continue;
|
|
156
|
+
let t = e.userId === null ? `guest:${e.sessionId}` : `user:${e.userId}`;
|
|
157
|
+
r.has(t) || r.set(t, {
|
|
158
|
+
key: t,
|
|
159
|
+
type: e.type,
|
|
160
|
+
name: e.name,
|
|
161
|
+
...e.avatarUrl ? { avatarUrl: e.avatarUrl } : {},
|
|
162
|
+
color: e.color
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
return [...r.values()];
|
|
166
166
|
}), v = {
|
|
167
167
|
canUndo: h.canUndo,
|
|
168
168
|
canRedo: h.canRedo,
|
|
169
|
-
isNavigating:
|
|
169
|
+
isNavigating: S(!1),
|
|
170
170
|
undo: h.undo,
|
|
171
171
|
redo: h.redo,
|
|
172
172
|
record: () => {},
|
|
@@ -180,11 +180,11 @@ function Pn(t) {
|
|
|
180
180
|
attach: h.attach,
|
|
181
181
|
history: v,
|
|
182
182
|
people: g,
|
|
183
|
-
isLive:
|
|
183
|
+
isLive: A(() => h.members.value.length > 0),
|
|
184
184
|
connection: h.connection,
|
|
185
|
-
notices:
|
|
186
|
-
dismissNotice:
|
|
187
|
-
reportReplaceRefused: (e) =>
|
|
185
|
+
notices: t,
|
|
186
|
+
dismissNotice: o,
|
|
187
|
+
reportReplaceRefused: (e) => a({
|
|
188
188
|
kind: "replaceRefused",
|
|
189
189
|
holders: [...new Map(e.map((e) => [e.type === "guest" ? `guest:${e.sessionId}` : e.id, {
|
|
190
190
|
name: e.name,
|
|
@@ -199,55 +199,55 @@ function Pn(t) {
|
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
201
|
// src/composables/useCommentsFeature.ts
|
|
202
|
-
function Fn(
|
|
203
|
-
let { provider:
|
|
204
|
-
provider:
|
|
205
|
-
getTemplateId: () =>
|
|
206
|
-
getUser: () =>
|
|
207
|
-
onError:
|
|
202
|
+
function Fn(e) {
|
|
203
|
+
let { provider: t, editor: n } = e, r = ge({
|
|
204
|
+
provider: t,
|
|
205
|
+
getTemplateId: () => n.state.template?.id ?? null,
|
|
206
|
+
getUser: () => e.user ?? null,
|
|
207
|
+
onError: e.onError
|
|
208
208
|
});
|
|
209
209
|
ve({
|
|
210
|
-
comments:
|
|
211
|
-
provider:
|
|
212
|
-
getTemplateId: () =>
|
|
210
|
+
comments: r,
|
|
211
|
+
provider: t,
|
|
212
|
+
getTemplateId: () => n.state.template?.id ?? null
|
|
213
213
|
});
|
|
214
|
-
let
|
|
215
|
-
h(
|
|
216
|
-
e || (
|
|
217
|
-
}), h([
|
|
218
|
-
e && t &&
|
|
219
|
-
}, { immediate: !0 }), h(
|
|
220
|
-
e &&
|
|
214
|
+
let i = e.isOpen ?? S(!1), a = S(null), o = A(() => !!n.state.template?.id), s = r.unresolvedCount, c = A(() => e.user ? e.isAvailable?.() ?? !0 : !1);
|
|
215
|
+
h(c, (e) => {
|
|
216
|
+
e || (i.value = !1);
|
|
217
|
+
}), h([c, o], ([e, t]) => {
|
|
218
|
+
e && t && r.load().catch(() => {});
|
|
219
|
+
}, { immediate: !0 }), h(i, (e) => {
|
|
220
|
+
e && o.value && r.load().catch(() => {});
|
|
221
221
|
});
|
|
222
|
-
function
|
|
223
|
-
|
|
222
|
+
function l() {
|
|
223
|
+
c.value && (i.value = !i.value);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
|
|
225
|
+
function u() {
|
|
226
|
+
i.value = !1;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
|
|
228
|
+
function d(e) {
|
|
229
|
+
c.value && (a.value = e, i.value ? o.value && r.load().catch(() => {}) : i.value = !0);
|
|
230
230
|
}
|
|
231
231
|
return {
|
|
232
|
-
headless:
|
|
233
|
-
isOpen:
|
|
234
|
-
isAvailable:
|
|
235
|
-
hasTemplate:
|
|
236
|
-
unresolvedCount:
|
|
237
|
-
filterBlockId:
|
|
238
|
-
toggle:
|
|
239
|
-
close:
|
|
240
|
-
openForBlock:
|
|
232
|
+
headless: r,
|
|
233
|
+
isOpen: i,
|
|
234
|
+
isAvailable: c,
|
|
235
|
+
hasTemplate: o,
|
|
236
|
+
unresolvedCount: s,
|
|
237
|
+
filterBlockId: a,
|
|
238
|
+
toggle: l,
|
|
239
|
+
close: u,
|
|
240
|
+
openForBlock: d,
|
|
241
241
|
capability: {
|
|
242
|
-
getBlockCount: (e) =>
|
|
243
|
-
openForBlock:
|
|
244
|
-
isBlockSaved: (
|
|
245
|
-
isAvailable:
|
|
246
|
-
unresolvedCount:
|
|
247
|
-
canCreate:
|
|
248
|
-
canUpdate:
|
|
249
|
-
canDelete:
|
|
250
|
-
canResolve:
|
|
242
|
+
getBlockCount: (e) => r.commentCountByBlock.value.get(e) ?? 0,
|
|
243
|
+
openForBlock: d,
|
|
244
|
+
isBlockSaved: (t) => e.isBlockSaved?.(t) ?? !0,
|
|
245
|
+
isAvailable: c,
|
|
246
|
+
unresolvedCount: s,
|
|
247
|
+
canCreate: r.canCreate,
|
|
248
|
+
canUpdate: r.canUpdate,
|
|
249
|
+
canDelete: r.canDelete,
|
|
250
|
+
canResolve: r.canResolve
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
253
|
}
|
|
@@ -264,22 +264,22 @@ function Hn(e) {
|
|
|
264
264
|
message: e.message
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
|
-
function Un(
|
|
268
|
-
let { provider:
|
|
269
|
-
function
|
|
270
|
-
let
|
|
267
|
+
function Un(e) {
|
|
268
|
+
let { provider: t, editor: n, collaboration: r } = e, i = t.conversation ?? null, a = crypto.randomUUID(), o = S(null), s = /* @__PURE__ */ new Map(), c = !1, l = 0, u = !1;
|
|
269
|
+
function d(e) {
|
|
270
|
+
let t = R(e);
|
|
271
271
|
return {
|
|
272
|
-
id:
|
|
273
|
-
memory:
|
|
274
|
-
generation: ++
|
|
275
|
-
messages:
|
|
276
|
-
isLoadingHistory:
|
|
277
|
-
busy:
|
|
278
|
-
keptYourVersion:
|
|
279
|
-
failure:
|
|
280
|
-
failedPrompt:
|
|
281
|
-
failedAttachments:
|
|
282
|
-
importQueue:
|
|
272
|
+
id: e,
|
|
273
|
+
memory: t,
|
|
274
|
+
generation: ++t.generation,
|
|
275
|
+
messages: S(t.items),
|
|
276
|
+
isLoadingHistory: S(!1),
|
|
277
|
+
busy: S(!1),
|
|
278
|
+
keptYourVersion: S(!1),
|
|
279
|
+
failure: S(null),
|
|
280
|
+
failedPrompt: S(null),
|
|
281
|
+
failedAttachments: k([]),
|
|
282
|
+
importQueue: k([]),
|
|
283
283
|
loaded: !1,
|
|
284
284
|
historyGeneration: 0,
|
|
285
285
|
pendingHistory: null,
|
|
@@ -289,36 +289,36 @@ function Un(t) {
|
|
|
289
289
|
committingReload: !1,
|
|
290
290
|
lastRecordedTurn: null,
|
|
291
291
|
timers: /* @__PURE__ */ new Set(),
|
|
292
|
-
highlights:
|
|
292
|
+
highlights: k(/* @__PURE__ */ new Map()),
|
|
293
293
|
highlightSequence: 0
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
let
|
|
297
|
-
function
|
|
298
|
-
return
|
|
299
|
-
get: () =>
|
|
296
|
+
let f = A(() => n.state.template?.id ?? null), p = k(f.value === null ? null : d(f.value)), m = A(() => p.value !== null && !c && f.value !== null), g = (e) => e === "chatAttachments" ? m.value && t.chatAttachments === !0 && typeof t.chat == "function" : typeof t[e] == "function", _ = () => c ? null : p.value, v = (e) => !c && p.value === e && !e.lifetime.signal.aborted && f.value === e.id;
|
|
297
|
+
function y(e, t) {
|
|
298
|
+
return A({
|
|
299
|
+
get: () => p.value ? e(p.value).value : t,
|
|
300
300
|
set: (t) => {
|
|
301
|
-
let n =
|
|
301
|
+
let n = _();
|
|
302
302
|
n && (e(n).value = t);
|
|
303
303
|
}
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
|
-
let
|
|
307
|
-
function
|
|
306
|
+
let b = y((e) => e.messages, []), x = A(() => n.content.value.blocks.length === 0), C = y((e) => e.isLoadingHistory, !1), w = y((e) => e.busy, !1), T = y((e) => e.failure, null), E = y((e) => e.keptYourVersion, !1), D = y((e) => e.failedPrompt, null), O = y((e) => e.failedAttachments, []), ee = y((e) => e.importQueue, []);
|
|
307
|
+
function j(e) {
|
|
308
308
|
e.historyGeneration++, e.pendingHistory = null, e.loaded = !1, e.isLoadingHistory.value = !1;
|
|
309
309
|
}
|
|
310
310
|
function N(e, t, n, r) {
|
|
311
|
-
return
|
|
311
|
+
return v(t) ? new Promise((i, a) => {
|
|
312
312
|
let o = {
|
|
313
313
|
kind: e,
|
|
314
314
|
scope: t,
|
|
315
315
|
controller: new AbortController(),
|
|
316
316
|
authorVersion: 0,
|
|
317
317
|
execute: async () => {
|
|
318
|
-
o.authorVersion =
|
|
318
|
+
o.authorVersion = l;
|
|
319
319
|
let e;
|
|
320
320
|
try {
|
|
321
|
-
e = await (o.controller.signal.aborted || !
|
|
321
|
+
e = await (o.controller.signal.aborted || !v(t) ? r() : n(o));
|
|
322
322
|
} catch (e) {
|
|
323
323
|
a(e);
|
|
324
324
|
return;
|
|
@@ -334,12 +334,12 @@ function Un(t) {
|
|
|
334
334
|
function P(e) {
|
|
335
335
|
if (e.active) return;
|
|
336
336
|
let t = e.queue.shift();
|
|
337
|
-
t && (e.active = t,
|
|
337
|
+
t && (e.active = t, v(e) && (e.busy.value = !0), t.execute());
|
|
338
338
|
}
|
|
339
339
|
function F(e) {
|
|
340
|
-
if (e.controller.signal.throwIfAborted(), !
|
|
340
|
+
if (e.controller.signal.throwIfAborted(), !v(e.scope)) throw new DOMException("The template changed.", "AbortError");
|
|
341
341
|
}
|
|
342
|
-
async function
|
|
342
|
+
async function I(e, t) {
|
|
343
343
|
t.throwIfAborted();
|
|
344
344
|
let n, r = new Promise((e, r) => {
|
|
345
345
|
n = () => r(t.reason), t.addEventListener("abort", n, { once: !0 });
|
|
@@ -350,104 +350,104 @@ function Un(t) {
|
|
|
350
350
|
t.removeEventListener("abort", n);
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
async function
|
|
354
|
-
let { scope: i } =
|
|
355
|
-
if (
|
|
356
|
-
await
|
|
353
|
+
async function L(t, n = !1, r = t.authorVersion) {
|
|
354
|
+
let { scope: i } = t, a = () => i.active === t && v(i) && (n || !t.controller.signal.aborted), o = () => a() ? r === l || (i.keptYourVersion.value = !0, !1) : !1;
|
|
355
|
+
if (e.reload && o()) try {
|
|
356
|
+
await I(e.reload(i.id, () => o() ? (i.keptYourVersion.value = !1, i.committingReload = !0, !0) : !1), i.lifetime.signal);
|
|
357
357
|
} finally {
|
|
358
358
|
i.committingReload = !1;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
function
|
|
362
|
-
let t =
|
|
361
|
+
function R(e) {
|
|
362
|
+
let t = s.get(e);
|
|
363
363
|
return t || (t = {
|
|
364
364
|
generation: 0,
|
|
365
365
|
items: [],
|
|
366
366
|
records: /* @__PURE__ */ new Map(),
|
|
367
367
|
storedIds: /* @__PURE__ */ new Set(),
|
|
368
368
|
recoveries: /* @__PURE__ */ new Map()
|
|
369
|
-
},
|
|
369
|
+
}, s.set(e, t)), t;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function z(e, t, n) {
|
|
372
372
|
let r = setTimeout(() => {
|
|
373
373
|
e.timers.delete(r), t();
|
|
374
374
|
}, n);
|
|
375
375
|
e.timers.add(r);
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
Rn(
|
|
377
|
+
function B(t) {
|
|
378
|
+
Rn(t) || e.onError?.(zn(t));
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function V(e, t) {
|
|
381
381
|
if (t.length === 0) return;
|
|
382
|
-
if (
|
|
383
|
-
|
|
382
|
+
if (r) {
|
|
383
|
+
r.outline(t);
|
|
384
384
|
return;
|
|
385
385
|
}
|
|
386
|
-
let n = ++e.highlightSequence,
|
|
387
|
-
for (let e of t)
|
|
388
|
-
e.highlights.value =
|
|
386
|
+
let n = ++e.highlightSequence, i = new Map(e.highlights.value);
|
|
387
|
+
for (let e of t) i.set(e, n);
|
|
388
|
+
e.highlights.value = i, z(e, () => {
|
|
389
389
|
let r = new Map(e.highlights.value);
|
|
390
390
|
for (let e of t) r.get(e) === n && r.delete(e);
|
|
391
391
|
e.highlights.value = r;
|
|
392
392
|
}, jn);
|
|
393
393
|
}
|
|
394
|
-
async function
|
|
395
|
-
|
|
394
|
+
async function te(e) {
|
|
395
|
+
r && await Promise.race([r.core.settle().catch(() => {}), new Promise((t) => z(e, t, In))]);
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
let
|
|
399
|
-
if (new TextEncoder().encode(JSON.stringify(
|
|
397
|
+
function H(t) {
|
|
398
|
+
let i = Y(M(n.content.value));
|
|
399
|
+
if (new TextEncoder().encode(JSON.stringify(i)).length > 2e5) throw new fe("This template is too large for AI.", 413, "content_too_large");
|
|
400
400
|
return {
|
|
401
|
-
templateId:
|
|
402
|
-
content:
|
|
403
|
-
revision:
|
|
404
|
-
sessionId:
|
|
405
|
-
mergeTags:
|
|
401
|
+
templateId: t,
|
|
402
|
+
content: i,
|
|
403
|
+
revision: r ? r.core.revision.value : null,
|
|
404
|
+
sessionId: r ? r.core.sessionId : a,
|
|
405
|
+
mergeTags: e.mergeTags()
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
-
function
|
|
409
|
-
let e =
|
|
410
|
-
return e ?
|
|
408
|
+
function W() {
|
|
409
|
+
let e = n.state.selectedBlockId;
|
|
410
|
+
return e ? r ? r.core.hasConfirmedBlock(e) ? e : null : Vn(n.content.value.blocks, e) ? e : null : null;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
413
|
-
let o =
|
|
414
|
-
if (
|
|
415
|
-
let e =
|
|
412
|
+
function G(t, i, a) {
|
|
413
|
+
let o = e.normalize(t, M(n.content.value)), s = Nn(o);
|
|
414
|
+
if (r) {
|
|
415
|
+
let e = r.core.applyOperations(o, {
|
|
416
416
|
origin: "ai",
|
|
417
|
-
turn:
|
|
417
|
+
turn: i
|
|
418
418
|
});
|
|
419
|
-
return e.applied ? (s.templateUpdated ||
|
|
419
|
+
return e.applied ? (s.templateUpdated || V(a, s.blockIds), {
|
|
420
420
|
applied: !0,
|
|
421
421
|
inverse: e.inverse
|
|
422
422
|
}) : Hn(e.error);
|
|
423
423
|
}
|
|
424
424
|
let c;
|
|
425
425
|
try {
|
|
426
|
-
c =
|
|
426
|
+
c = re(M(n.content.value), o);
|
|
427
427
|
} catch (e) {
|
|
428
|
-
if (e instanceof
|
|
428
|
+
if (e instanceof U) return Hn(e);
|
|
429
429
|
throw e;
|
|
430
430
|
}
|
|
431
|
-
a.lastRecordedTurn !==
|
|
431
|
+
a.lastRecordedTurn !== i && (e.history().record(), a.lastRecordedTurn = i), u = !0;
|
|
432
432
|
try {
|
|
433
|
-
|
|
433
|
+
ie(n.content.value, Y(o)), n.markDirty();
|
|
434
434
|
} finally {
|
|
435
|
-
|
|
435
|
+
u = !1;
|
|
436
436
|
}
|
|
437
|
-
let l =
|
|
438
|
-
return l && !Vn(
|
|
437
|
+
let l = n.state.selectedBlockId;
|
|
438
|
+
return l && !Vn(n.content.value.blocks, l) && n.selectBlock(null), s.templateUpdated || V(a, s.blockIds), {
|
|
439
439
|
applied: !0,
|
|
440
440
|
inverse: c
|
|
441
441
|
};
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
if (!
|
|
445
|
-
let n =
|
|
446
|
-
n.revision.value >= e || (n.connection.value === "connected" ?
|
|
447
|
-
|
|
443
|
+
function K(e, t) {
|
|
444
|
+
if (!r || !v(t)) return;
|
|
445
|
+
let n = r.core;
|
|
446
|
+
n.revision.value >= e || (n.connection.value === "connected" ? z(t, () => {
|
|
447
|
+
v(t) && n.revision.value < e && n.catchUp();
|
|
448
448
|
}, Ln) : n.catchUp());
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function q(e, t, n) {
|
|
451
451
|
let r = e.memory;
|
|
452
452
|
r.items = r.items.map((e) => {
|
|
453
453
|
if (e.id !== t) return e;
|
|
@@ -457,17 +457,17 @@ function Un(t) {
|
|
|
457
457
|
};
|
|
458
458
|
return {
|
|
459
459
|
...i,
|
|
460
|
-
...
|
|
460
|
+
...J(i, r)
|
|
461
461
|
};
|
|
462
462
|
});
|
|
463
463
|
for (let e of r.recoveries.values()) e.item.id === t && (e.item = r.items.find((e) => e.id === (n.id ?? t)) ?? e.item);
|
|
464
464
|
e.messages.value = r.items;
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function J(e, t) {
|
|
467
467
|
let n = e.role === "assistant" && e.operationCount > 0;
|
|
468
468
|
if (t.storedIds.has(e.id)) return {
|
|
469
|
-
canUndo: n && !e.undone && typeof
|
|
470
|
-
canRedo: n && e.undone && typeof
|
|
469
|
+
canUndo: n && !e.undone && typeof i?.undo == "function",
|
|
470
|
+
canRedo: n && e.undone && typeof i?.redo == "function"
|
|
471
471
|
};
|
|
472
472
|
let r = t.records.get(e.id);
|
|
473
473
|
return {
|
|
@@ -475,36 +475,36 @@ function Un(t) {
|
|
|
475
475
|
canRedo: n && e.undone && !r?.serverApplied && (r?.redo?.length ?? 0) > 0
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
-
let
|
|
478
|
+
let ne = () => ({
|
|
479
479
|
messageId: null,
|
|
480
480
|
operationCount: 0,
|
|
481
481
|
text: "",
|
|
482
482
|
failed: !0
|
|
483
483
|
});
|
|
484
|
-
function
|
|
485
|
-
let s =
|
|
486
|
-
return !s || s.active?.kind === "turn" || s.queue.some((e) => e.kind === "turn") ? Promise.resolve(
|
|
487
|
-
let { controller: l } = c, u = s.memory, d = crypto.randomUUID(), f = crypto.randomUUID(), p = crypto.randomUUID(), m = 0, h = "", g = !1, _ = null,
|
|
484
|
+
function X(t, n, a, o = []) {
|
|
485
|
+
let s = _();
|
|
486
|
+
return !s || s.active?.kind === "turn" || s.queue.some((e) => e.kind === "turn") ? Promise.resolve(ne()) : N("turn", s, async (c) => {
|
|
487
|
+
let { controller: l } = c, u = s.memory, d = crypto.randomUUID(), f = crypto.randomUUID(), p = crypto.randomUUID(), m = 0, h = "", g = !1, _ = null, y = {
|
|
488
488
|
inverse: [],
|
|
489
489
|
redo: null,
|
|
490
490
|
serverApplied: !1,
|
|
491
491
|
batchIds: /* @__PURE__ */ new Set()
|
|
492
|
-
}, b, x = !1, S = !1, C = (e) =>
|
|
492
|
+
}, b, x = !1, S = !1, C = (e) => q(s, p, e), w = () => {
|
|
493
493
|
let e = u.items.find((e) => e.id === p);
|
|
494
|
-
|
|
494
|
+
i && e && u.recoveries.set(d, {
|
|
495
495
|
item: e,
|
|
496
496
|
user: u.items.find((e) => e.id === f),
|
|
497
|
-
record:
|
|
497
|
+
record: y
|
|
498
498
|
});
|
|
499
499
|
}, T = () => {
|
|
500
|
-
!S && (
|
|
500
|
+
!S && (i || !r && e.reload) && (S = !0, N("reconcile", s, async (t) => {
|
|
501
501
|
try {
|
|
502
502
|
let n;
|
|
503
503
|
do
|
|
504
|
-
n = m, !
|
|
505
|
-
while (
|
|
504
|
+
n = m, !r && e.reload && await L(t, !0, c.authorVersion), i && await se(t, !0, !0);
|
|
505
|
+
while (v(s) && n !== m);
|
|
506
506
|
} catch (e) {
|
|
507
|
-
|
|
507
|
+
v(s) && B(e);
|
|
508
508
|
} finally {
|
|
509
509
|
S = !1;
|
|
510
510
|
}
|
|
@@ -517,25 +517,25 @@ function Un(t) {
|
|
|
517
517
|
},
|
|
518
518
|
onOperations: async (e) => {
|
|
519
519
|
F(c);
|
|
520
|
-
let t =
|
|
521
|
-
return t.applied && (
|
|
520
|
+
let t = G(e, d, s);
|
|
521
|
+
return t.applied && (y.inverse = [...t.inverse, ...y.inverse], m += e.length, C({ operationCount: m })), t;
|
|
522
522
|
},
|
|
523
|
-
onApplied: (
|
|
524
|
-
if (!
|
|
525
|
-
if (!
|
|
526
|
-
|
|
523
|
+
onApplied: (t) => {
|
|
524
|
+
if (!v(s)) throw new DOMException("The template changed.", "AbortError");
|
|
525
|
+
if (!r && !e.reload) throw _ ??= new fe(ln, 502, "ai_provider_error"), _;
|
|
526
|
+
y.serverApplied = !0, y.batchIds.add(t.batchId), m += t.operationCount, C({ operationCount: m }), K(t.revision, s), x && (w(), T());
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
529
|
try {
|
|
530
530
|
try {
|
|
531
531
|
await se(c), F(c), s.failure.value = null, s.failedPrompt.value = null, s.failedAttachments.value = [];
|
|
532
|
-
let
|
|
533
|
-
u.records.set(p,
|
|
532
|
+
let e = (/* @__PURE__ */ new Date()).toISOString();
|
|
533
|
+
u.records.set(p, y), u.items = [
|
|
534
534
|
...u.items,
|
|
535
535
|
{
|
|
536
536
|
id: f,
|
|
537
537
|
role: "user",
|
|
538
|
-
kind:
|
|
538
|
+
kind: t,
|
|
539
539
|
text: n,
|
|
540
540
|
attachments: o.map((e) => ({
|
|
541
541
|
name: e.name,
|
|
@@ -545,28 +545,28 @@ function Un(t) {
|
|
|
545
545
|
undone: !1,
|
|
546
546
|
canUndo: !1,
|
|
547
547
|
canRedo: !1,
|
|
548
|
-
createdAt:
|
|
548
|
+
createdAt: e,
|
|
549
549
|
status: "done"
|
|
550
550
|
},
|
|
551
551
|
{
|
|
552
552
|
id: p,
|
|
553
553
|
role: "assistant",
|
|
554
|
-
kind:
|
|
554
|
+
kind: t,
|
|
555
555
|
text: "",
|
|
556
556
|
attachments: [],
|
|
557
557
|
operationCount: 0,
|
|
558
558
|
undone: !1,
|
|
559
559
|
canUndo: !1,
|
|
560
560
|
canRedo: !1,
|
|
561
|
-
createdAt:
|
|
561
|
+
createdAt: e,
|
|
562
562
|
status: "streaming"
|
|
563
563
|
}
|
|
564
|
-
], s.messages.value = u.items, await
|
|
565
|
-
let
|
|
564
|
+
], s.messages.value = u.items, await I(te(s), c.controller.signal), F(c);
|
|
565
|
+
let r = await I(a(H(s.id), E, l.signal), l.signal);
|
|
566
566
|
if (F(c), _) throw _;
|
|
567
|
-
if (
|
|
567
|
+
if (r.text !== "" && (h = r.text), r.messageId !== null && i) {
|
|
568
568
|
let e = p;
|
|
569
|
-
p =
|
|
569
|
+
p = r.messageId, u.storedIds.add(p), u.records.delete(e), u.records.set(p, y), q(s, e, { id: p });
|
|
570
570
|
}
|
|
571
571
|
C({
|
|
572
572
|
text: h,
|
|
@@ -577,9 +577,9 @@ function Un(t) {
|
|
|
577
577
|
text: h,
|
|
578
578
|
failed: !1
|
|
579
579
|
};
|
|
580
|
-
} catch (
|
|
581
|
-
let r = _ ??
|
|
582
|
-
g = l.signal.aborted || Rn(r), g ||
|
|
580
|
+
} catch (e) {
|
|
581
|
+
let r = _ ?? e;
|
|
582
|
+
g = l.signal.aborted || Rn(r), g || B(r), m === 0 && (!g || h === "") ? (u.items = u.items.filter((e) => e.id !== p && e.id !== f), v(s) && (s.messages.value = u.items, g || (t === "chat" && (s.failedPrompt.value = n, s.failedAttachments.value = o), s.failure.value = {
|
|
583
583
|
error: zn(r),
|
|
584
584
|
context: "turn"
|
|
585
585
|
})), b = {
|
|
@@ -600,90 +600,90 @@ function Un(t) {
|
|
|
600
600
|
failed: !g
|
|
601
601
|
});
|
|
602
602
|
}
|
|
603
|
-
|
|
603
|
+
i && b.messageId !== null && m > 0 && (b.failed || g) && w();
|
|
604
604
|
let x;
|
|
605
605
|
do
|
|
606
|
-
if (x = m,
|
|
607
|
-
|
|
608
|
-
}),
|
|
606
|
+
if (x = m, y.serverApplied && !r && e.reload && v(s) && await L(c, !0).catch((e) => {
|
|
607
|
+
v(s) && B(e);
|
|
608
|
+
}), i && u.recoveries.has(d) && v(s)) {
|
|
609
609
|
await se(c, !0, !0);
|
|
610
610
|
let e = u.recoveries.get(d);
|
|
611
611
|
e && (b.messageId = e.item.id, b.text = e.item.text);
|
|
612
612
|
}
|
|
613
|
-
while (
|
|
613
|
+
while (v(s) && y.serverApplied && x !== m);
|
|
614
614
|
return b.operationCount = m, (g || l.signal.aborted) && (b.failed = !0), b;
|
|
615
615
|
} finally {
|
|
616
616
|
x = !0, s.messages.value = u.items;
|
|
617
617
|
}
|
|
618
|
-
},
|
|
618
|
+
}, ne);
|
|
619
619
|
}
|
|
620
|
-
function Z(
|
|
621
|
-
let
|
|
622
|
-
return !
|
|
623
|
-
let c =
|
|
620
|
+
function Z(t, n) {
|
|
621
|
+
let o = _();
|
|
622
|
+
return !o || o.busy.value ? Promise.resolve() : N("replay", o, async (s) => {
|
|
623
|
+
let c = o.memory, l = c.items.find((e) => e.id === t);
|
|
624
624
|
if (!l) return;
|
|
625
|
-
let u =
|
|
625
|
+
let u = i?.[n], d = c.records.get(t);
|
|
626
626
|
try {
|
|
627
|
-
if (F(s), c.storedIds.has(
|
|
627
|
+
if (F(s), c.storedIds.has(t)) {
|
|
628
628
|
if (typeof u != "function") throw new fe(`This AI backend does not support ${n}.`, 403, "feature_unavailable");
|
|
629
629
|
if (l.undone !== (n === "redo")) return;
|
|
630
|
-
let c = await
|
|
631
|
-
if (!
|
|
630
|
+
let c = await I(u(o.id, t, { sessionId: r ? r.core.sessionId : a }), o.lifetime.signal);
|
|
631
|
+
if (!v(o)) return;
|
|
632
632
|
if ("operations" in c) {
|
|
633
633
|
if (s.controller.signal.aborted) return;
|
|
634
|
-
let
|
|
635
|
-
|
|
634
|
+
let e = G(c.operations, `${n}:${t}:${crypto.randomUUID()}`, o);
|
|
635
|
+
e.applied && q(o, t, {
|
|
636
636
|
undone: n === "undo",
|
|
637
637
|
failure: void 0
|
|
638
638
|
});
|
|
639
639
|
try {
|
|
640
|
-
await
|
|
640
|
+
await I(i.settleReplay(o.id, t, {
|
|
641
641
|
replayId: c.replayId,
|
|
642
642
|
direction: n,
|
|
643
|
-
applied:
|
|
644
|
-
sessionId:
|
|
645
|
-
}),
|
|
646
|
-
} catch (
|
|
647
|
-
if (!
|
|
648
|
-
|
|
649
|
-
error: zn(
|
|
643
|
+
applied: e.applied,
|
|
644
|
+
sessionId: r ? r.core.sessionId : a
|
|
645
|
+
}), o.lifetime.signal);
|
|
646
|
+
} catch (e) {
|
|
647
|
+
if (!v(o)) return;
|
|
648
|
+
B(e), q(o, t, { failure: {
|
|
649
|
+
error: zn(e),
|
|
650
650
|
context: n
|
|
651
651
|
} });
|
|
652
652
|
}
|
|
653
|
-
if (!
|
|
654
|
-
if (!
|
|
655
|
-
code:
|
|
656
|
-
opIndex:
|
|
653
|
+
if (!v(o)) return;
|
|
654
|
+
if (!e.applied) throw new ae(e.message, {
|
|
655
|
+
code: e.code,
|
|
656
|
+
opIndex: e.opIndex
|
|
657
657
|
});
|
|
658
658
|
return;
|
|
659
659
|
}
|
|
660
|
-
if (
|
|
660
|
+
if (q(o, t, {
|
|
661
661
|
undone: n === "undo",
|
|
662
662
|
failure: void 0
|
|
663
|
-
}),
|
|
664
|
-
else if (
|
|
663
|
+
}), r) K(c.applied.revision, o);
|
|
664
|
+
else if (e.reload) await L(s, !0);
|
|
665
665
|
else throw new fe(ln, 502, "ai_provider_error");
|
|
666
666
|
return;
|
|
667
667
|
}
|
|
668
668
|
{
|
|
669
669
|
if (l.undone !== (n === "redo")) return;
|
|
670
|
-
let
|
|
671
|
-
if (!d || d.serverApplied || !
|
|
672
|
-
let
|
|
673
|
-
if (!
|
|
674
|
-
code:
|
|
675
|
-
opIndex:
|
|
670
|
+
let e = n === "undo" ? d?.inverse : d?.redo;
|
|
671
|
+
if (!d || d.serverApplied || !e || e.length === 0) return;
|
|
672
|
+
let r = G(e, `${n}:${t}:${crypto.randomUUID()}`, o);
|
|
673
|
+
if (!r.applied) throw new ae(r.message, {
|
|
674
|
+
code: r.code,
|
|
675
|
+
opIndex: r.opIndex
|
|
676
676
|
});
|
|
677
|
-
n === "undo" ? d.redo =
|
|
677
|
+
n === "undo" ? d.redo = r.inverse : d.inverse = r.inverse;
|
|
678
678
|
}
|
|
679
|
-
|
|
679
|
+
q(o, t, {
|
|
680
680
|
undone: n === "undo",
|
|
681
681
|
failure: void 0
|
|
682
682
|
});
|
|
683
|
-
} catch (
|
|
684
|
-
if (!
|
|
685
|
-
|
|
686
|
-
error: zn(
|
|
683
|
+
} catch (e) {
|
|
684
|
+
if (!v(o) || Rn(e)) return;
|
|
685
|
+
B(e), q(o, t, { failure: {
|
|
686
|
+
error: zn(e),
|
|
687
687
|
context: n
|
|
688
688
|
} });
|
|
689
689
|
}
|
|
@@ -705,7 +705,7 @@ function Un(t) {
|
|
|
705
705
|
};
|
|
706
706
|
return {
|
|
707
707
|
...n,
|
|
708
|
-
...
|
|
708
|
+
...J(n, t)
|
|
709
709
|
};
|
|
710
710
|
}
|
|
711
711
|
function Q(e, t) {
|
|
@@ -730,35 +730,35 @@ function Un(t) {
|
|
|
730
730
|
n.item = e, r = r.map((t) => t.id === s.id ? e : t);
|
|
731
731
|
} else n.user && !r.some((e) => e.id === n.user.id) && r.push(n.user), r.push({
|
|
732
732
|
...i,
|
|
733
|
-
...
|
|
733
|
+
...J(i, t)
|
|
734
734
|
});
|
|
735
735
|
}
|
|
736
736
|
return r;
|
|
737
737
|
}
|
|
738
738
|
async function se(e, t = !1, n = !1, r = e.scope.historyGeneration) {
|
|
739
|
-
let { scope:
|
|
740
|
-
if (!
|
|
741
|
-
let o =
|
|
742
|
-
if (!
|
|
739
|
+
let { scope: a } = e;
|
|
740
|
+
if (!v(a) || r !== a.historyGeneration || !n && e.controller.signal.aborted || !t && a.loaded) return;
|
|
741
|
+
let o = a.memory;
|
|
742
|
+
if (!i) a.messages.value = o.items, a.loaded = !0;
|
|
743
743
|
else {
|
|
744
|
-
|
|
744
|
+
a.isLoadingHistory.value = !0, a.loaded = !1;
|
|
745
745
|
try {
|
|
746
|
-
await
|
|
747
|
-
!
|
|
748
|
-
}), n ?
|
|
746
|
+
await I(i.list(a.id).then((t) => {
|
|
747
|
+
!c && o.generation === a.generation && r === a.historyGeneration && (n || v(a) && !e.controller.signal.aborted) && (o.items = Q(t, o), a.messages.value = o.items, a.loaded = !0, a.failure.value?.context === "history" && (a.failure.value = null));
|
|
748
|
+
}), n ? a.lifetime.signal : e.controller.signal);
|
|
749
749
|
} catch (e) {
|
|
750
|
-
if (!
|
|
751
|
-
|
|
750
|
+
if (!v(a) || r !== a.historyGeneration || Rn(e)) return;
|
|
751
|
+
B(e), a.failure.value = {
|
|
752
752
|
error: zn(e),
|
|
753
753
|
context: "history"
|
|
754
754
|
};
|
|
755
755
|
} finally {
|
|
756
|
-
r ===
|
|
756
|
+
r === a.historyGeneration && (a.isLoadingHistory.value = !1);
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
|
-
function ce(e =
|
|
761
|
-
if (!e || !
|
|
760
|
+
function ce(e = _()) {
|
|
761
|
+
if (!e || !v(e)) return Promise.resolve();
|
|
762
762
|
if (e.pendingHistory?.generation === e.historyGeneration) return e.pendingHistory.promise;
|
|
763
763
|
if (e.loaded) return Promise.resolve();
|
|
764
764
|
let t = e.historyGeneration, n = {
|
|
@@ -770,14 +770,14 @@ function Un(t) {
|
|
|
770
770
|
}), e.pendingHistory = n, n.promise;
|
|
771
771
|
}
|
|
772
772
|
function le() {
|
|
773
|
-
let e =
|
|
774
|
-
return !e ||
|
|
773
|
+
let e = _();
|
|
774
|
+
return !e || i && typeof i.clear != "function" || e.active && e.active.kind !== "history" && e.active.kind !== "read" || e.queue.some((e) => e.kind !== "history" && e.kind !== "read") ? Promise.resolve() : (j(e), e.active?.controller.abort(), N("clear", e, async () => {
|
|
775
775
|
try {
|
|
776
|
-
if (
|
|
777
|
-
|
|
776
|
+
if (i && typeof i.clear == "function" && await i.clear(e.id), e.memory.generation !== e.generation) return;
|
|
777
|
+
s.delete(e.id), e.memory.items = [], e.memory.records.clear(), e.memory.storedIds.clear(), e.memory.recoveries.clear(), j(e), e.messages.value = [], e.loaded = !0, e.failure.value = null, e.failedPrompt.value = null, e.failedAttachments.value = [], v(e) && s.set(e.id, e.memory);
|
|
778
778
|
} catch (t) {
|
|
779
|
-
if (!
|
|
780
|
-
|
|
779
|
+
if (!v(e)) return;
|
|
780
|
+
B(t), e.failure.value = {
|
|
781
781
|
error: zn(t),
|
|
782
782
|
context: "history"
|
|
783
783
|
};
|
|
@@ -785,14 +785,14 @@ function Un(t) {
|
|
|
785
785
|
}, () => {}));
|
|
786
786
|
}
|
|
787
787
|
function ue(e) {
|
|
788
|
-
|
|
788
|
+
v(e) && ce(e);
|
|
789
789
|
}
|
|
790
|
-
function de(
|
|
791
|
-
let n =
|
|
792
|
-
n &&
|
|
790
|
+
function de(t) {
|
|
791
|
+
let n = _();
|
|
792
|
+
n && v(n) && (o.value !== t && n.busy.value && ge(), o.value = t, e.commentsOpen && (e.commentsOpen.value = !1), t === "chat" && ue(n));
|
|
793
793
|
}
|
|
794
794
|
function pe(e) {
|
|
795
|
-
e.length !== 0 &&
|
|
795
|
+
e.length !== 0 && g("chatAttachments") && (ee.value = [...e], de("chat"));
|
|
796
796
|
}
|
|
797
797
|
function me(e) {
|
|
798
798
|
e.active?.controller.abort();
|
|
@@ -804,134 +804,134 @@ function Un(t) {
|
|
|
804
804
|
e.timers.clear();
|
|
805
805
|
}
|
|
806
806
|
function ge() {
|
|
807
|
-
let e =
|
|
807
|
+
let e = _();
|
|
808
808
|
e && me(e);
|
|
809
809
|
}
|
|
810
810
|
function _e() {
|
|
811
|
-
ge(),
|
|
811
|
+
ge(), o.value = null;
|
|
812
812
|
}
|
|
813
|
-
let ve = [h(() =>
|
|
814
|
-
t === !0 && e === !1 &&
|
|
815
|
-
}, { flush: "sync" }), h(
|
|
816
|
-
!
|
|
813
|
+
let ve = [h(() => n.state.isDirty, (e, t) => {
|
|
814
|
+
t === !0 && e === !1 && n.state.isSaving && (E.value = !1);
|
|
815
|
+
}, { flush: "sync" }), h(n.content, () => {
|
|
816
|
+
!u && !p.value?.committingReload && l++;
|
|
817
817
|
}, {
|
|
818
818
|
deep: !0,
|
|
819
819
|
flush: "sync"
|
|
820
820
|
})];
|
|
821
|
-
|
|
821
|
+
e.commentsOpen && ve.push(h(e.commentsOpen, (e) => {
|
|
822
822
|
e && _e();
|
|
823
|
-
})), ve.push(h(() =>
|
|
824
|
-
if (
|
|
825
|
-
let e =
|
|
826
|
-
if (e?.committingReload &&
|
|
823
|
+
})), ve.push(h(() => n.loadVersion?.value ?? f.value, () => {
|
|
824
|
+
if (c) return;
|
|
825
|
+
let e = p.value;
|
|
826
|
+
if (e?.committingReload && v(e)) {
|
|
827
827
|
e.committingReload = !1;
|
|
828
828
|
return;
|
|
829
829
|
}
|
|
830
830
|
e && he(e);
|
|
831
|
-
let t =
|
|
832
|
-
|
|
831
|
+
let t = f.value, n = t === null ? null : d(t);
|
|
832
|
+
p.value = n, n && o.value === "chat" && ue(n);
|
|
833
833
|
}, { flush: "sync" }));
|
|
834
|
-
async function ye(
|
|
835
|
-
let s =
|
|
834
|
+
async function ye(i, o) {
|
|
835
|
+
let s = _(), c = t.altText, l = new AbortController(), u = () => l.abort(o?.reason), d = () => l.abort();
|
|
836
836
|
try {
|
|
837
|
-
if (
|
|
838
|
-
let
|
|
839
|
-
if (!
|
|
840
|
-
|
|
841
|
-
let { url: f, ...p } =
|
|
837
|
+
if (o?.throwIfAborted(), !s || typeof c != "function") throw new fe("This AI feature isn't available.", 403, "feature_unavailable");
|
|
838
|
+
let t = fn(n.content.value, i);
|
|
839
|
+
if (!t) throw new fe("The image is no longer available.", 409, "block_missing");
|
|
840
|
+
o?.addEventListener("abort", u, { once: !0 }), s.lifetime.signal.addEventListener("abort", d, { once: !0 });
|
|
841
|
+
let { url: f, ...p } = t, m = await I(c({
|
|
842
842
|
templateId: s.id,
|
|
843
|
-
sessionId:
|
|
844
|
-
blockId:
|
|
843
|
+
sessionId: r ? r.core.sessionId : a,
|
|
844
|
+
blockId: i,
|
|
845
845
|
image: { url: f },
|
|
846
846
|
...p,
|
|
847
|
-
locale:
|
|
848
|
-
maxLength:
|
|
847
|
+
locale: n.content.value.settings.locale,
|
|
848
|
+
maxLength: e.altMaxLength?.() ?? 125
|
|
849
849
|
}, l.signal), l.signal);
|
|
850
|
-
if (l.signal.throwIfAborted(), !
|
|
850
|
+
if (l.signal.throwIfAborted(), !v(s)) throw new DOMException("The template changed.", "AbortError");
|
|
851
851
|
return m.alt;
|
|
852
852
|
} catch (e) {
|
|
853
|
-
throw
|
|
853
|
+
throw B(e), e;
|
|
854
854
|
} finally {
|
|
855
|
-
|
|
855
|
+
o?.removeEventListener("abort", u), s?.lifetime.signal.removeEventListener("abort", d);
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
function be(e) {
|
|
859
|
-
let t =
|
|
859
|
+
let t = _();
|
|
860
860
|
if (!t || e.length === 0) return Promise.resolve();
|
|
861
|
-
let
|
|
861
|
+
let r = e.map(({ blockId: e, alt: t, decorative: r, expect: i }) => ({
|
|
862
862
|
op: "updateBlock",
|
|
863
863
|
blockId: e,
|
|
864
|
-
expect: { ...i ?? dn(
|
|
864
|
+
expect: { ...i ?? dn(n.content.value, e) ?? {
|
|
865
865
|
src: null,
|
|
866
866
|
alt: null,
|
|
867
867
|
decorative: null
|
|
868
868
|
} },
|
|
869
869
|
set: {
|
|
870
870
|
alt: t,
|
|
871
|
-
decorative:
|
|
871
|
+
decorative: r
|
|
872
872
|
}
|
|
873
873
|
}));
|
|
874
874
|
return N("replay", t, async (e) => {
|
|
875
875
|
try {
|
|
876
876
|
F(e);
|
|
877
|
-
let
|
|
878
|
-
for (let i = 0; i <
|
|
877
|
+
let n = crypto.randomUUID();
|
|
878
|
+
for (let i = 0; i < r.length; i += 100) {
|
|
879
879
|
F(e);
|
|
880
|
-
let a =
|
|
880
|
+
let a = G(r.slice(i, i + 100), n, t);
|
|
881
881
|
if (!a.applied) throw new ae(a.message, {
|
|
882
882
|
code: a.code,
|
|
883
883
|
opIndex: a.opIndex
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
886
|
} catch (e) {
|
|
887
|
-
throw
|
|
887
|
+
throw B(e), e;
|
|
888
888
|
}
|
|
889
889
|
}, () => {});
|
|
890
890
|
}
|
|
891
891
|
return {
|
|
892
892
|
capability: {
|
|
893
|
-
isFeatureEnabled: (e) =>
|
|
893
|
+
isFeatureEnabled: (e) => m.value && g(e),
|
|
894
894
|
open: de,
|
|
895
895
|
startImport: pe,
|
|
896
|
-
highlightOf: (e) =>
|
|
896
|
+
highlightOf: (e) => p.value?.highlights.value.get(e) ?? null
|
|
897
897
|
},
|
|
898
|
-
panel:
|
|
898
|
+
panel: o,
|
|
899
899
|
open: de,
|
|
900
900
|
close: _e,
|
|
901
|
-
has:
|
|
902
|
-
templateId:
|
|
903
|
-
sessionIdentity:
|
|
904
|
-
templateSession:
|
|
905
|
-
isAvailable:
|
|
906
|
-
hasConversation:
|
|
907
|
-
canClear:
|
|
908
|
-
messages:
|
|
901
|
+
has: g,
|
|
902
|
+
templateId: f,
|
|
903
|
+
sessionIdentity: A(() => p.value),
|
|
904
|
+
templateSession: A(() => n.loadVersion?.value ?? f.value),
|
|
905
|
+
isAvailable: m,
|
|
906
|
+
hasConversation: i !== null,
|
|
907
|
+
canClear: i === null || typeof i.clear == "function",
|
|
908
|
+
messages: b,
|
|
909
909
|
isLoadingHistory: C,
|
|
910
910
|
isRunning: w,
|
|
911
911
|
busy: w,
|
|
912
912
|
failure: T,
|
|
913
913
|
keptYourVersion: E,
|
|
914
914
|
reloadTemplate: () => {
|
|
915
|
-
let e =
|
|
916
|
-
return e ? N("reconcile", e, (e) =>
|
|
915
|
+
let e = _();
|
|
916
|
+
return e ? N("reconcile", e, (e) => L(e), () => {}) : Promise.resolve();
|
|
917
917
|
},
|
|
918
918
|
failedPrompt: D,
|
|
919
|
-
failedAttachments:
|
|
920
|
-
importQueue:
|
|
919
|
+
failedAttachments: O,
|
|
920
|
+
importQueue: ee,
|
|
921
921
|
startImport: pe,
|
|
922
|
-
isTemplateEmpty:
|
|
923
|
-
send: (e,
|
|
924
|
-
let r =
|
|
925
|
-
return typeof r == "function" ?
|
|
926
|
-
...
|
|
922
|
+
isTemplateEmpty: x,
|
|
923
|
+
send: (e, n = []) => {
|
|
924
|
+
let r = t.chat;
|
|
925
|
+
return typeof r == "function" ? X("chat", e, (t, i, a) => r({
|
|
926
|
+
...t,
|
|
927
927
|
message: e,
|
|
928
|
-
selectedBlockId:
|
|
929
|
-
attachments:
|
|
928
|
+
selectedBlockId: W(),
|
|
929
|
+
attachments: n.map((e) => ({
|
|
930
930
|
file: e,
|
|
931
931
|
name: e.name,
|
|
932
932
|
kind: e.type === "application/pdf" ? "pdf" : "image"
|
|
933
933
|
}))
|
|
934
|
-
}, i, a),
|
|
934
|
+
}, i, a), n) : Promise.resolve({
|
|
935
935
|
messageId: null,
|
|
936
936
|
operationCount: 0,
|
|
937
937
|
text: "",
|
|
@@ -939,9 +939,9 @@ function Un(t) {
|
|
|
939
939
|
});
|
|
940
940
|
},
|
|
941
941
|
fix: (e) => {
|
|
942
|
-
let
|
|
943
|
-
return typeof
|
|
944
|
-
...
|
|
942
|
+
let n = t.fixFinding;
|
|
943
|
+
return typeof n == "function" ? X("fix", `Fix: ${e.message}`, (t, r, i) => n({
|
|
944
|
+
...t,
|
|
945
945
|
finding: e
|
|
946
946
|
}, r, i)) : Promise.resolve({
|
|
947
947
|
messageId: null,
|
|
@@ -954,20 +954,20 @@ function Un(t) {
|
|
|
954
954
|
newChat: le,
|
|
955
955
|
undoMessage: (e) => Z(e, "undo"),
|
|
956
956
|
redoMessage: (e) => Z(e, "redo"),
|
|
957
|
-
rewrite: (e,
|
|
958
|
-
let i =
|
|
959
|
-
return !i || typeof a != "function" ? Promise.reject(/* @__PURE__ */ Error("Rewrite isn't available.")) : N("read", i, async (
|
|
960
|
-
let o = () =>
|
|
957
|
+
rewrite: (e, n, r) => {
|
|
958
|
+
let i = _(), a = t.rewrite;
|
|
959
|
+
return !i || typeof a != "function" ? Promise.reject(/* @__PURE__ */ Error("Rewrite isn't available.")) : N("read", i, async (t) => {
|
|
960
|
+
let o = () => t.controller.abort(r.reason);
|
|
961
961
|
r.addEventListener("abort", o, { once: !0 });
|
|
962
962
|
try {
|
|
963
|
-
return r.throwIfAborted(), F(
|
|
964
|
-
...
|
|
963
|
+
return r.throwIfAborted(), F(t), await I(a({
|
|
964
|
+
...H(i.id),
|
|
965
965
|
...e
|
|
966
966
|
}, { onText: (e) => {
|
|
967
|
-
F(
|
|
968
|
-
} },
|
|
967
|
+
F(t), n(e);
|
|
968
|
+
} }, t.controller.signal), t.controller.signal);
|
|
969
969
|
} catch (e) {
|
|
970
|
-
throw
|
|
970
|
+
throw B(e), e;
|
|
971
971
|
} finally {
|
|
972
972
|
r.removeEventListener("abort", o);
|
|
973
973
|
}
|
|
@@ -978,10 +978,10 @@ function Un(t) {
|
|
|
978
978
|
draftAltText: ye,
|
|
979
979
|
applyAltTexts: be,
|
|
980
980
|
destroy: () => {
|
|
981
|
-
if (
|
|
982
|
-
|
|
983
|
-
let e =
|
|
984
|
-
e && he(e),
|
|
981
|
+
if (c) return;
|
|
982
|
+
c = !0;
|
|
983
|
+
let e = p.value;
|
|
984
|
+
e && he(e), p.value = null;
|
|
985
985
|
for (let e of ve) e();
|
|
986
986
|
ve.length = 0;
|
|
987
987
|
}
|
|
@@ -1033,54 +1033,54 @@ function Yn(e, t, n) {
|
|
|
1033
1033
|
let i = e.mimeTypes;
|
|
1034
1034
|
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"}.`);
|
|
1035
1035
|
}
|
|
1036
|
-
function Xn(
|
|
1037
|
-
let { provider:
|
|
1038
|
-
function
|
|
1039
|
-
|
|
1036
|
+
function Xn(e) {
|
|
1037
|
+
let { provider: t, onRequestMedia: n, getTemplateId: r, onError: i } = e, a = S(!1), o = S(void 0), s = A(() => r?.()), c = A(() => !!n || typeof t?.create == "function"), l = null;
|
|
1038
|
+
function u(e) {
|
|
1039
|
+
a.value = !1, l?.(e), l = null;
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1042
|
-
|
|
1041
|
+
function d(e) {
|
|
1042
|
+
u(Zn(e));
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1045
|
-
|
|
1044
|
+
function f() {
|
|
1045
|
+
u(null);
|
|
1046
1046
|
}
|
|
1047
1047
|
return _(() => {
|
|
1048
|
-
|
|
1048
|
+
l && u(null);
|
|
1049
1049
|
}), {
|
|
1050
|
-
requestMedia:
|
|
1051
|
-
if (
|
|
1052
|
-
if (!
|
|
1050
|
+
requestMedia: n || t ? async (e) => {
|
|
1051
|
+
if (n) return n(e);
|
|
1052
|
+
if (!t) return null;
|
|
1053
1053
|
if (e?.files?.length) {
|
|
1054
|
-
if (typeof
|
|
1055
|
-
let
|
|
1056
|
-
if (
|
|
1057
|
-
let o =
|
|
1054
|
+
if (typeof t.create != "function") return null;
|
|
1055
|
+
let n = e.files[0], a = Yn(t, n, e.accept);
|
|
1056
|
+
if (a) return i?.(a), null;
|
|
1057
|
+
let o = r?.();
|
|
1058
1058
|
try {
|
|
1059
|
-
let e = await
|
|
1060
|
-
file:
|
|
1059
|
+
let e = await t.create({
|
|
1060
|
+
file: n,
|
|
1061
1061
|
...o ? { templateId: o } : {}
|
|
1062
1062
|
});
|
|
1063
1063
|
try {
|
|
1064
|
-
|
|
1064
|
+
t.onCreated?.(e);
|
|
1065
1065
|
} catch (e) {
|
|
1066
|
-
|
|
1066
|
+
i?.(Jn(e));
|
|
1067
1067
|
}
|
|
1068
1068
|
return Zn(e);
|
|
1069
1069
|
} catch (e) {
|
|
1070
|
-
return
|
|
1070
|
+
return i?.(Jn(e)), null;
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
|
-
return
|
|
1074
|
-
|
|
1073
|
+
return l &&= (l(null), null), o.value = e?.accept, a.value = !0, new Promise((e) => {
|
|
1074
|
+
l = e;
|
|
1075
1075
|
});
|
|
1076
1076
|
} : null,
|
|
1077
|
-
canDrop:
|
|
1078
|
-
isModalOpen:
|
|
1079
|
-
accept:
|
|
1080
|
-
close:
|
|
1081
|
-
select:
|
|
1082
|
-
templateId:
|
|
1083
|
-
onError:
|
|
1077
|
+
canDrop: c,
|
|
1078
|
+
isModalOpen: a,
|
|
1079
|
+
accept: o,
|
|
1080
|
+
close: f,
|
|
1081
|
+
select: d,
|
|
1082
|
+
templateId: s,
|
|
1083
|
+
onError: i
|
|
1084
1084
|
};
|
|
1085
1085
|
}
|
|
1086
1086
|
function Zn(e) {
|
|
@@ -1095,81 +1095,81 @@ function Zn(e) {
|
|
|
1095
1095
|
};
|
|
1096
1096
|
}
|
|
1097
1097
|
// src/composables/useSavedBlocksFeature.ts
|
|
1098
|
-
function Qn(
|
|
1099
|
-
let { provider:
|
|
1100
|
-
provider:
|
|
1101
|
-
onError:
|
|
1102
|
-
}),
|
|
1098
|
+
function Qn(e) {
|
|
1099
|
+
let { provider: t, editor: n } = e, r = me({
|
|
1100
|
+
provider: t,
|
|
1101
|
+
onError: e.onError
|
|
1102
|
+
}), a = S(!1), o = S(!1), s = S(!1), c = S(/* @__PURE__ */ new Set()), l = A(() => s.value), u = A(() => c.value.size);
|
|
1103
|
+
function d(e) {
|
|
1104
|
+
r.canCreate.value && (n.state.previewMode || (c.value = /* @__PURE__ */ new Set([e]), s.value = !0));
|
|
1105
|
+
}
|
|
1103
1106
|
function f(e) {
|
|
1104
|
-
|
|
1107
|
+
if (!s.value) return;
|
|
1108
|
+
let t = new Set(c.value);
|
|
1109
|
+
t.has(e) ? t.delete(e) : t.add(e), c.value = t;
|
|
1105
1110
|
}
|
|
1106
1111
|
function p(e) {
|
|
1107
|
-
|
|
1108
|
-
let t = new Set(l.value);
|
|
1109
|
-
t.has(e) ? t.delete(e) : t.add(e), l.value = t;
|
|
1112
|
+
return c.value.has(e);
|
|
1110
1113
|
}
|
|
1111
|
-
function m(
|
|
1112
|
-
|
|
1114
|
+
function m() {
|
|
1115
|
+
s.value = !1, c.value = /* @__PURE__ */ new Set();
|
|
1113
1116
|
}
|
|
1114
1117
|
function g() {
|
|
1115
|
-
|
|
1118
|
+
u.value !== 0 && (s.value = !1, a.value = !0, x());
|
|
1116
1119
|
}
|
|
1117
1120
|
function _() {
|
|
1118
|
-
|
|
1121
|
+
a.value = !1, c.value = /* @__PURE__ */ new Set();
|
|
1119
1122
|
}
|
|
1123
|
+
h(() => n.state.previewMode, (e) => {
|
|
1124
|
+
e && s.value && m();
|
|
1125
|
+
});
|
|
1120
1126
|
function v() {
|
|
1121
|
-
o.value = !
|
|
1127
|
+
o.value = !0, x();
|
|
1122
1128
|
}
|
|
1123
|
-
h(() => r.state.previewMode, (e) => {
|
|
1124
|
-
e && c.value && g();
|
|
1125
|
-
});
|
|
1126
1129
|
function y() {
|
|
1127
|
-
|
|
1128
|
-
}
|
|
1129
|
-
function b() {
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
closeBrowser: b,
|
|
1158
|
-
insert: x,
|
|
1159
|
-
refresh: S,
|
|
1130
|
+
o.value = !1;
|
|
1131
|
+
}
|
|
1132
|
+
function b(e, t) {
|
|
1133
|
+
for (let r = 0; r < e.content.length; r++) {
|
|
1134
|
+
let i = q(e.content[r]), a = t === void 0 ? void 0 : t + r;
|
|
1135
|
+
n.addBlock(i, void 0, void 0, a);
|
|
1136
|
+
}
|
|
1137
|
+
o.value = !1;
|
|
1138
|
+
}
|
|
1139
|
+
function x() {
|
|
1140
|
+
r.load().catch(() => {});
|
|
1141
|
+
}
|
|
1142
|
+
let C = A(() => r.savedBlocks.value.length), w = A(() => e.isAvailable?.() ?? !0);
|
|
1143
|
+
return i(ht, r), {
|
|
1144
|
+
headless: r,
|
|
1145
|
+
isPicking: l,
|
|
1146
|
+
pickedIds: c,
|
|
1147
|
+
pickedCount: u,
|
|
1148
|
+
startPicking: d,
|
|
1149
|
+
togglePick: f,
|
|
1150
|
+
isPicked: p,
|
|
1151
|
+
confirmPicking: g,
|
|
1152
|
+
cancelPicking: m,
|
|
1153
|
+
isSaveDialogOpen: a,
|
|
1154
|
+
closeSaveDialog: _,
|
|
1155
|
+
isBrowserOpen: o,
|
|
1156
|
+
openBrowser: v,
|
|
1157
|
+
closeBrowser: y,
|
|
1158
|
+
insert: b,
|
|
1159
|
+
refresh: x,
|
|
1160
1160
|
capability: {
|
|
1161
|
-
startPicking:
|
|
1162
|
-
togglePick:
|
|
1163
|
-
isPicked:
|
|
1164
|
-
isPicking:
|
|
1165
|
-
confirmPicking:
|
|
1166
|
-
cancelPicking:
|
|
1167
|
-
openBrowser:
|
|
1161
|
+
startPicking: d,
|
|
1162
|
+
togglePick: f,
|
|
1163
|
+
isPicked: p,
|
|
1164
|
+
isPicking: l,
|
|
1165
|
+
confirmPicking: g,
|
|
1166
|
+
cancelPicking: m,
|
|
1167
|
+
openBrowser: v,
|
|
1168
1168
|
count: C,
|
|
1169
1169
|
isAvailable: w,
|
|
1170
|
-
canCreate:
|
|
1171
|
-
canUpdate:
|
|
1172
|
-
canDelete:
|
|
1170
|
+
canCreate: r.canCreate,
|
|
1171
|
+
canUpdate: r.canUpdate,
|
|
1172
|
+
canDelete: r.canDelete
|
|
1173
1173
|
},
|
|
1174
1174
|
count: C,
|
|
1175
1175
|
isAvailable: w
|
|
@@ -1177,11 +1177,11 @@ function Qn(t) {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
// src/composables/useTemplatesFeature.ts
|
|
1179
1179
|
var $n = 3e3;
|
|
1180
|
-
function er(
|
|
1181
|
-
let { provider:
|
|
1182
|
-
|
|
1183
|
-
}, $n, { immediate: !1 }),
|
|
1184
|
-
let e =
|
|
1180
|
+
function er(e) {
|
|
1181
|
+
let { provider: t, editor: n } = e, r = S("idle"), i = S(""), { start: a, stop: o } = Ee(() => {
|
|
1182
|
+
r.value = "idle";
|
|
1183
|
+
}, $n, { immediate: !1 }), s = A(() => typeof t.create == "function"), c = A(() => typeof t.save == "function"), l = A(() => e.isAvailable?.() ?? !0), u = A(() => n.state.template?.name), d = A(() => {
|
|
1184
|
+
let e = n.state.template;
|
|
1185
1185
|
return e?.updatedAt ? {
|
|
1186
1186
|
iso: e.updatedAt,
|
|
1187
1187
|
kind: "updatedAt"
|
|
@@ -1189,98 +1189,98 @@ function er(t) {
|
|
|
1189
1189
|
iso: e.createdAt,
|
|
1190
1190
|
kind: "createdAt"
|
|
1191
1191
|
} : null;
|
|
1192
|
-
}),
|
|
1193
|
-
function
|
|
1194
|
-
|
|
1192
|
+
}), f = A(() => n.state.template !== null), p = A(() => n.state.isSaving);
|
|
1193
|
+
function m() {
|
|
1194
|
+
i.value = "", r.value = "saved", o(), a();
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1197
|
-
|
|
1196
|
+
function h(e) {
|
|
1197
|
+
o(), r.value = "error", i.value = e instanceof Error && e.message ? e.message : "Save failed";
|
|
1198
1198
|
}
|
|
1199
|
-
async function
|
|
1199
|
+
async function g(e) {
|
|
1200
1200
|
try {
|
|
1201
|
-
let t = await
|
|
1202
|
-
return
|
|
1201
|
+
let t = await n.save(e);
|
|
1202
|
+
return m(), t;
|
|
1203
1203
|
} catch (e) {
|
|
1204
|
-
throw
|
|
1204
|
+
throw h(e), e;
|
|
1205
1205
|
}
|
|
1206
1206
|
}
|
|
1207
|
-
async function
|
|
1207
|
+
async function _(e) {
|
|
1208
1208
|
try {
|
|
1209
|
-
let t = await
|
|
1210
|
-
return
|
|
1209
|
+
let t = await n.create(e);
|
|
1210
|
+
return o(), r.value = "idle", i.value = "", t;
|
|
1211
1211
|
} catch (e) {
|
|
1212
|
-
throw
|
|
1212
|
+
throw h(e), e;
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1216
|
-
return
|
|
1215
|
+
function v(e, t) {
|
|
1216
|
+
return o(), r.value = "idle", i.value = "", t ? n.load(e, t) : n.load(e);
|
|
1217
1217
|
}
|
|
1218
|
-
let
|
|
1219
|
-
function
|
|
1220
|
-
return
|
|
1221
|
-
|
|
1218
|
+
let y = !1;
|
|
1219
|
+
function b(e) {
|
|
1220
|
+
return g(e).then(() => {
|
|
1221
|
+
y && (y = !1, n.state.isDirty && w());
|
|
1222
1222
|
}, () => {
|
|
1223
|
-
|
|
1223
|
+
y = !1;
|
|
1224
1224
|
});
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1227
|
-
return !
|
|
1226
|
+
function x() {
|
|
1227
|
+
return !c.value || !f.value || p.value;
|
|
1228
1228
|
}
|
|
1229
|
-
function C(
|
|
1230
|
-
if (
|
|
1231
|
-
let n =
|
|
1232
|
-
n ? n.tryRunSave(() =>
|
|
1229
|
+
function C(t = "manual") {
|
|
1230
|
+
if (x()) return;
|
|
1231
|
+
let n = e.getSaveGate?.();
|
|
1232
|
+
n ? n.tryRunSave(() => b(t)) : b(t);
|
|
1233
1233
|
}
|
|
1234
1234
|
function w() {
|
|
1235
|
-
if (!
|
|
1236
|
-
if (
|
|
1237
|
-
|
|
1235
|
+
if (!c.value || !f.value) return;
|
|
1236
|
+
if (p.value) {
|
|
1237
|
+
y = !0;
|
|
1238
1238
|
return;
|
|
1239
1239
|
}
|
|
1240
|
-
let
|
|
1241
|
-
|
|
1240
|
+
let t = e.getSaveGate?.();
|
|
1241
|
+
t ? t.runUnlessBlocked(() => b("autosave")) : b("autosave");
|
|
1242
1242
|
}
|
|
1243
1243
|
function T(e) {
|
|
1244
1244
|
let t = e.trim();
|
|
1245
|
-
t && t !==
|
|
1245
|
+
t && t !== n.state.template?.name && (n.setName(t), C("rename"));
|
|
1246
1246
|
}
|
|
1247
|
-
return
|
|
1248
|
-
|
|
1247
|
+
return e.guardUnsavedChanges !== !1 && ke(window, "beforeunload", (e) => {
|
|
1248
|
+
n.state.isDirty && (e.preventDefault(), e.returnValue = "");
|
|
1249
1249
|
}), {
|
|
1250
|
-
save:
|
|
1251
|
-
create:
|
|
1252
|
-
load:
|
|
1250
|
+
save: g,
|
|
1251
|
+
create: _,
|
|
1252
|
+
load: v,
|
|
1253
1253
|
requestSave: C,
|
|
1254
1254
|
requestAutoSave: w,
|
|
1255
1255
|
rename: T,
|
|
1256
|
-
name:
|
|
1257
|
-
timestamp:
|
|
1258
|
-
hasTemplate:
|
|
1259
|
-
isSaving:
|
|
1260
|
-
status:
|
|
1261
|
-
errorMessage:
|
|
1262
|
-
canCreate:
|
|
1263
|
-
canSave:
|
|
1264
|
-
isAvailable:
|
|
1256
|
+
name: u,
|
|
1257
|
+
timestamp: d,
|
|
1258
|
+
hasTemplate: f,
|
|
1259
|
+
isSaving: p,
|
|
1260
|
+
status: r,
|
|
1261
|
+
errorMessage: i,
|
|
1262
|
+
canCreate: s,
|
|
1263
|
+
canSave: c,
|
|
1264
|
+
isAvailable: l,
|
|
1265
1265
|
capability: {
|
|
1266
1266
|
save: C,
|
|
1267
1267
|
rename: T,
|
|
1268
|
-
name:
|
|
1269
|
-
timestamp:
|
|
1270
|
-
hasTemplate:
|
|
1271
|
-
isSaving:
|
|
1272
|
-
status:
|
|
1273
|
-
errorMessage:
|
|
1274
|
-
canCreate:
|
|
1275
|
-
canSave:
|
|
1276
|
-
isAvailable:
|
|
1268
|
+
name: u,
|
|
1269
|
+
timestamp: d,
|
|
1270
|
+
hasTemplate: f,
|
|
1271
|
+
isSaving: p,
|
|
1272
|
+
status: r,
|
|
1273
|
+
errorMessage: i,
|
|
1274
|
+
canCreate: s,
|
|
1275
|
+
canSave: c,
|
|
1276
|
+
isAvailable: l
|
|
1277
1277
|
}
|
|
1278
1278
|
};
|
|
1279
1279
|
}
|
|
1280
1280
|
// src/utils/toMjml.ts
|
|
1281
1281
|
async function tr() {
|
|
1282
1282
|
try {
|
|
1283
|
-
return await import("./chunks/src-
|
|
1283
|
+
return await import("./chunks/src-C7bkofBL.js");
|
|
1284
1284
|
} catch {
|
|
1285
1285
|
return null;
|
|
1286
1286
|
}
|
|
@@ -1305,175 +1305,175 @@ var rr = 1200;
|
|
|
1305
1305
|
function ir(e) {
|
|
1306
1306
|
return e instanceof Error ? e : Error(String(e));
|
|
1307
1307
|
}
|
|
1308
|
-
function ar(
|
|
1309
|
-
let { provider:
|
|
1310
|
-
function
|
|
1311
|
-
|
|
1312
|
-
}
|
|
1313
|
-
_(
|
|
1314
|
-
let
|
|
1315
|
-
let e =
|
|
1308
|
+
function ar(e) {
|
|
1309
|
+
let { provider: t } = e, n = S(!1), r = S(!1), i = S(!1), a = S(null), o = null, s = !1;
|
|
1310
|
+
function c() {
|
|
1311
|
+
o !== null && (clearTimeout(o), o = null);
|
|
1312
|
+
}
|
|
1313
|
+
_(c);
|
|
1314
|
+
let l = A(() => t.allowedRecipients), u = A(() => {
|
|
1315
|
+
let e = t.defaultRecipient;
|
|
1316
1316
|
if (e === void 0) return;
|
|
1317
|
-
let
|
|
1318
|
-
if (!
|
|
1319
|
-
}),
|
|
1320
|
-
function
|
|
1321
|
-
|
|
1322
|
-
}
|
|
1323
|
-
function m() {
|
|
1324
|
-
l(), r.value = !1, a.value = !1;
|
|
1317
|
+
let n = l.value;
|
|
1318
|
+
if (!n || n.includes(e)) return e;
|
|
1319
|
+
}), d = A(() => l.value?.length === 0 ? !1 : e.isAvailable?.() ?? !0);
|
|
1320
|
+
function f() {
|
|
1321
|
+
d.value && (a.value = null, i.value = !1, c(), n.value = !0);
|
|
1325
1322
|
}
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1323
|
+
function p() {
|
|
1324
|
+
c(), n.value = !1, i.value = !1;
|
|
1325
|
+
}
|
|
1326
|
+
async function m() {
|
|
1327
|
+
if (t.includeMjml && e.renderMjml) try {
|
|
1328
|
+
return await e.renderMjml();
|
|
1329
|
+
} catch (t) {
|
|
1330
|
+
if ((e.usesLocalRenderer?.() ?? !0) && await tr() === null) {
|
|
1331
|
+
s || (s = !0, jt.warn("testEmail.includeMjml is set but @templatical/renderer is not installed — sending the template as JSON only. Install it to receive `payload.mjml`."));
|
|
1332
1332
|
return;
|
|
1333
1333
|
}
|
|
1334
|
-
throw
|
|
1334
|
+
throw t;
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1337
|
+
function h(n) {
|
|
1338
1338
|
try {
|
|
1339
|
-
|
|
1340
|
-
} catch (
|
|
1341
|
-
|
|
1339
|
+
t.onSent?.(n);
|
|
1340
|
+
} catch (t) {
|
|
1341
|
+
e.onError?.(ir(t));
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
|
-
async function
|
|
1345
|
-
if (
|
|
1346
|
-
let
|
|
1347
|
-
if (
|
|
1344
|
+
async function g(n) {
|
|
1345
|
+
if (r.value) return;
|
|
1346
|
+
let s = l.value;
|
|
1347
|
+
if (s && !s.includes(n)) a.value = { kind: "recipientNotAllowed" };
|
|
1348
1348
|
else {
|
|
1349
|
-
|
|
1349
|
+
r.value = !0, a.value = null;
|
|
1350
1350
|
try {
|
|
1351
|
-
let
|
|
1352
|
-
recipient:
|
|
1353
|
-
content:
|
|
1354
|
-
...
|
|
1355
|
-
...
|
|
1351
|
+
let r = await m(), a = {
|
|
1352
|
+
recipient: n,
|
|
1353
|
+
content: e.getContent(),
|
|
1354
|
+
...r === void 0 ? {} : { mjml: r },
|
|
1355
|
+
...s === void 0 ? {} : { allowedRecipients: s }
|
|
1356
1356
|
};
|
|
1357
|
-
await
|
|
1358
|
-
} catch (
|
|
1359
|
-
let n = ir(
|
|
1360
|
-
|
|
1357
|
+
await t.send(a), i.value = !0, o = setTimeout(p, rr), h(a);
|
|
1358
|
+
} catch (t) {
|
|
1359
|
+
let n = ir(t);
|
|
1360
|
+
a.value = {
|
|
1361
1361
|
kind: "provider",
|
|
1362
1362
|
message: n.message
|
|
1363
|
-
},
|
|
1363
|
+
}, e.onError?.(n);
|
|
1364
1364
|
} finally {
|
|
1365
|
-
|
|
1365
|
+
r.value = !1;
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
1369
1369
|
return {
|
|
1370
|
-
isModalOpen:
|
|
1371
|
-
open:
|
|
1372
|
-
close:
|
|
1373
|
-
isSending:
|
|
1374
|
-
justSent:
|
|
1375
|
-
error:
|
|
1376
|
-
send:
|
|
1377
|
-
allowedRecipients:
|
|
1378
|
-
defaultRecipient:
|
|
1379
|
-
isAvailable:
|
|
1370
|
+
isModalOpen: n,
|
|
1371
|
+
open: f,
|
|
1372
|
+
close: p,
|
|
1373
|
+
isSending: r,
|
|
1374
|
+
justSent: i,
|
|
1375
|
+
error: a,
|
|
1376
|
+
send: g,
|
|
1377
|
+
allowedRecipients: l,
|
|
1378
|
+
defaultRecipient: u,
|
|
1379
|
+
isAvailable: d,
|
|
1380
1380
|
capability: {
|
|
1381
|
-
open:
|
|
1382
|
-
isAvailable:
|
|
1381
|
+
open: f,
|
|
1382
|
+
isAvailable: d
|
|
1383
1383
|
}
|
|
1384
1384
|
};
|
|
1385
1385
|
}
|
|
1386
1386
|
// src/composables/useVersionHistoryFeature.ts
|
|
1387
|
-
function or(
|
|
1388
|
-
let { provider:
|
|
1389
|
-
provider:
|
|
1390
|
-
getTemplateId: () =>
|
|
1391
|
-
onError:
|
|
1392
|
-
}),
|
|
1387
|
+
function or(e) {
|
|
1388
|
+
let { provider: t, editor: n, history: r, conditionPreview: i, autoSave: a } = e, o = e.collaboration ?? null, s = he({
|
|
1389
|
+
provider: t,
|
|
1390
|
+
getTemplateId: () => n.state.template?.id ?? null,
|
|
1391
|
+
onError: e.onError
|
|
1392
|
+
}), c = S(null), l = S(null), u = S(!1), d = S(!1), f = !1;
|
|
1393
1393
|
_(() => {
|
|
1394
|
-
|
|
1394
|
+
f = !0;
|
|
1395
1395
|
});
|
|
1396
|
-
let
|
|
1396
|
+
let p = A(() => s.versions.value), m = A(() => s.isLoading.value), h = A(() => s.isRestoring.value), g = s.canCreate, v = s.canRestore, y = A(() => !!n.state.template?.id), b = A(() => e.isAvailable?.() ?? !0), x = A(() => c.value !== null), C = A(() => e.saveBeforeRestore?.canSave() === !0), w = A(() => d.value || h.value);
|
|
1397
1397
|
function T() {
|
|
1398
|
-
|
|
1398
|
+
y.value && s.load().catch(() => {});
|
|
1399
1399
|
}
|
|
1400
1400
|
async function E(e) {
|
|
1401
|
-
if (
|
|
1402
|
-
if (
|
|
1403
|
-
let t =
|
|
1401
|
+
if (f) return;
|
|
1402
|
+
if (u.value = !1, c.value) {
|
|
1403
|
+
let t = s.peekContent(e);
|
|
1404
1404
|
if (t) {
|
|
1405
|
-
|
|
1405
|
+
c.value = e, n.setContent(t, !1);
|
|
1406
1406
|
return;
|
|
1407
1407
|
}
|
|
1408
|
-
let
|
|
1409
|
-
if (
|
|
1410
|
-
|
|
1408
|
+
let r = await s.resolveContent(e);
|
|
1409
|
+
if (f) return;
|
|
1410
|
+
c.value = e, n.setContent(r, !1);
|
|
1411
1411
|
return;
|
|
1412
1412
|
}
|
|
1413
|
-
let t = await
|
|
1414
|
-
|
|
1413
|
+
let t = await s.resolveContent(e);
|
|
1414
|
+
f || (l.value = Y(n.content.value), a?.pause(), o?.suspend(), c.value = e, n.setContent(t, !1));
|
|
1415
1415
|
}
|
|
1416
1416
|
async function D() {
|
|
1417
|
-
|
|
1417
|
+
c.value && (n.state.isDirty ? u.value = !0 : await j());
|
|
1418
1418
|
}
|
|
1419
1419
|
async function O() {
|
|
1420
|
-
let
|
|
1421
|
-
if (
|
|
1422
|
-
|
|
1420
|
+
let t = c.value, r = l.value, i = e.saveBeforeRestore;
|
|
1421
|
+
if (t && r && i?.canSave() && !w.value) {
|
|
1422
|
+
n.setContent(r, !1), d.value = !0;
|
|
1423
1423
|
try {
|
|
1424
1424
|
await i.save();
|
|
1425
1425
|
} catch {
|
|
1426
|
-
if (
|
|
1427
|
-
let
|
|
1428
|
-
|
|
1426
|
+
if (f) return;
|
|
1427
|
+
let e = s.peekContent(t);
|
|
1428
|
+
e && n.setContent(e, !1);
|
|
1429
1429
|
return;
|
|
1430
1430
|
} finally {
|
|
1431
|
-
|
|
1431
|
+
f || (d.value = !1);
|
|
1432
1432
|
}
|
|
1433
|
-
|
|
1433
|
+
f || await j();
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
1436
|
async function k() {
|
|
1437
|
-
w.value || await
|
|
1438
|
-
}
|
|
1439
|
-
function
|
|
1440
|
-
|
|
1441
|
-
}
|
|
1442
|
-
async function
|
|
1443
|
-
if (
|
|
1444
|
-
let e = await
|
|
1445
|
-
if (
|
|
1446
|
-
if (
|
|
1447
|
-
if (await
|
|
1448
|
-
|
|
1449
|
-
} else
|
|
1450
|
-
if (await
|
|
1437
|
+
w.value || await j();
|
|
1438
|
+
}
|
|
1439
|
+
function ee() {
|
|
1440
|
+
u.value = !1;
|
|
1441
|
+
}
|
|
1442
|
+
async function j() {
|
|
1443
|
+
if (c.value) try {
|
|
1444
|
+
let e = await s.restore(c.value.id);
|
|
1445
|
+
if (f) return;
|
|
1446
|
+
if (o) {
|
|
1447
|
+
if (await o.catchUp(), f) return;
|
|
1448
|
+
r.clear(), i.reset();
|
|
1449
|
+
} else M(e.content);
|
|
1450
|
+
if (await s.load(), f) return;
|
|
1451
1451
|
} catch (e) {
|
|
1452
|
-
!
|
|
1452
|
+
!f && l.value && n.setContent(l.value, !1);
|
|
1453
1453
|
let t = e;
|
|
1454
|
-
throw
|
|
1454
|
+
throw o && t?.code === "locked_by_others" && o.reportReplaceRefused(Array.isArray(t.holders) ? t.holders : []), e;
|
|
1455
1455
|
} finally {
|
|
1456
|
-
|
|
1456
|
+
f || (c.value = null, l.value = null, u.value = !1, a?.resume(), o?.resume());
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1460
|
-
|
|
1459
|
+
function M(e) {
|
|
1460
|
+
n.setContent(e, !1), r.clear(), i.reset();
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1463
|
-
|
|
1462
|
+
function N() {
|
|
1463
|
+
c.value && l.value && (n.setContent(l.value, !1), c.value = null, l.value = null, u.value = !1, a?.resume(), o?.resume());
|
|
1464
1464
|
}
|
|
1465
1465
|
return {
|
|
1466
|
-
headless:
|
|
1467
|
-
versions:
|
|
1468
|
-
isLoading:
|
|
1469
|
-
isRestoring:
|
|
1470
|
-
canCreate:
|
|
1471
|
-
canRestore:
|
|
1472
|
-
hasTemplate:
|
|
1473
|
-
isAvailable:
|
|
1474
|
-
previewingVersion:
|
|
1475
|
-
isPreviewing:
|
|
1476
|
-
isConfirmingRestore:
|
|
1466
|
+
headless: s,
|
|
1467
|
+
versions: p,
|
|
1468
|
+
isLoading: m,
|
|
1469
|
+
isRestoring: h,
|
|
1470
|
+
canCreate: g,
|
|
1471
|
+
canRestore: v,
|
|
1472
|
+
hasTemplate: y,
|
|
1473
|
+
isAvailable: b,
|
|
1474
|
+
previewingVersion: c,
|
|
1475
|
+
isPreviewing: x,
|
|
1476
|
+
isConfirmingRestore: u,
|
|
1477
1477
|
canSaveBeforeRestore: C,
|
|
1478
1478
|
isConfirmBusy: w,
|
|
1479
1479
|
refresh: T,
|
|
@@ -1481,16 +1481,16 @@ function or(t) {
|
|
|
1481
1481
|
requestRestore: D,
|
|
1482
1482
|
saveAndRestore: O,
|
|
1483
1483
|
discardAndRestore: k,
|
|
1484
|
-
cancelRestoreConfirm:
|
|
1485
|
-
confirmRestore:
|
|
1486
|
-
cancelPreview:
|
|
1484
|
+
cancelRestoreConfirm: ee,
|
|
1485
|
+
confirmRestore: j,
|
|
1486
|
+
cancelPreview: N,
|
|
1487
1487
|
capability: {
|
|
1488
1488
|
refresh: T,
|
|
1489
|
-
isPreviewing:
|
|
1490
|
-
hasTemplate:
|
|
1491
|
-
isAvailable:
|
|
1492
|
-
canCreate:
|
|
1493
|
-
canRestore:
|
|
1489
|
+
isPreviewing: x,
|
|
1490
|
+
hasTemplate: y,
|
|
1491
|
+
isAvailable: b,
|
|
1492
|
+
canCreate: g,
|
|
1493
|
+
canRestore: v
|
|
1494
1494
|
}
|
|
1495
1495
|
};
|
|
1496
1496
|
}
|
|
@@ -1569,7 +1569,7 @@ var fr = ["aria-label"], pr = ["lang", "dir"], mr = {
|
|
|
1569
1569
|
}, Sr = {
|
|
1570
1570
|
key: 1,
|
|
1571
1571
|
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)]"
|
|
1572
|
-
}, Cr = { class: "tpl:relative" }, wr = /*#__PURE__*/ nn(/* @__PURE__ */
|
|
1572
|
+
}, Cr = { class: "tpl:relative" }, wr = /*#__PURE__*/ nn(/* @__PURE__ */ n({
|
|
1573
1573
|
__name: "Canvas",
|
|
1574
1574
|
props: {
|
|
1575
1575
|
viewport: {},
|
|
@@ -1579,8 +1579,8 @@ var fr = ["aria-label"], pr = ["lang", "dir"], mr = {
|
|
|
1579
1579
|
previewMode: { type: Boolean }
|
|
1580
1580
|
},
|
|
1581
1581
|
emits: ["select-block"],
|
|
1582
|
-
setup(
|
|
1583
|
-
let
|
|
1582
|
+
setup(e, { emit: t }) {
|
|
1583
|
+
let n = {
|
|
1584
1584
|
section: Qe,
|
|
1585
1585
|
title: Ye,
|
|
1586
1586
|
paragraph: Ue,
|
|
@@ -1595,17 +1595,17 @@ var fr = ["aria-label"], pr = ["lang", "dir"], mr = {
|
|
|
1595
1595
|
video: Ze,
|
|
1596
1596
|
custom: Ge,
|
|
1597
1597
|
wrapper: xn
|
|
1598
|
-
}, s =
|
|
1599
|
-
|
|
1600
|
-
let
|
|
1601
|
-
function
|
|
1598
|
+
}, s = e, c = t, { t: l } = $(), u = at(bt, "Canvas"), d = at(kt, "Canvas"), p = r(yt, null), m = r(Dt, null), h = r(xt, {}), _ = r(dt, null), b = r(gt, null);
|
|
1599
|
+
i(mt, A(() => s.previewMode && (_?.value ?? !1) && !b?.isConfigured));
|
|
1600
|
+
let E = A(() => h.ai?.isFeatureEnabled("chat") ?? !1), O = A(() => E.value && (h.ai?.isFeatureEnabled("chatAttachments") ?? !1)), k = S(null);
|
|
1601
|
+
function ee() {
|
|
1602
1602
|
k.value?.click();
|
|
1603
1603
|
}
|
|
1604
|
-
function
|
|
1604
|
+
function j(e) {
|
|
1605
1605
|
let t = e.target, n = Array.from(t.files ?? []);
|
|
1606
|
-
t.value = "", n.length &&
|
|
1606
|
+
t.value = "", n.length && h.ai?.startImport(n);
|
|
1607
1607
|
}
|
|
1608
|
-
let
|
|
1608
|
+
let M = r(Et, null), R = A({
|
|
1609
1609
|
get: () => s.content.blocks,
|
|
1610
1610
|
set: (e) => {
|
|
1611
1611
|
u.setContent({
|
|
@@ -1613,81 +1613,81 @@ var fr = ["aria-label"], pr = ["lang", "dir"], mr = {
|
|
|
1613
1613
|
blocks: e
|
|
1614
1614
|
});
|
|
1615
1615
|
}
|
|
1616
|
-
}),
|
|
1617
|
-
function
|
|
1618
|
-
|
|
1619
|
-
}
|
|
1620
|
-
function te() {
|
|
1621
|
-
q.value && (J.value = Math.max(0, J.value - 1));
|
|
1616
|
+
}), B = A(() => ye(s.content.settings, s.viewport)), H = A(() => B.value + 192), U = A(() => Le(s.content.settings, d.resolveFontFamily)), W = A(() => s.content.settings?.locale?.trim() || void 0), G = A(() => te(s.content.settings)), K = A(() => R.value.length === 0 && !s.previewMode), q = S(0), J = A(() => K.value && q.value > 0);
|
|
1617
|
+
function Y() {
|
|
1618
|
+
K.value && (q.value += 1);
|
|
1622
1619
|
}
|
|
1623
1620
|
function ne() {
|
|
1624
|
-
|
|
1621
|
+
K.value && (q.value = Math.max(0, q.value - 1));
|
|
1625
1622
|
}
|
|
1626
|
-
function re(
|
|
1627
|
-
|
|
1623
|
+
function re() {
|
|
1624
|
+
q.value = 0;
|
|
1628
1625
|
}
|
|
1629
1626
|
function ie(e) {
|
|
1630
|
-
|
|
1627
|
+
s.previewMode || h.savedBlocks?.isPicking.value || e.target === e.currentTarget && c("select-block", null);
|
|
1628
|
+
}
|
|
1629
|
+
function X(e) {
|
|
1630
|
+
return Ae(e, m, n);
|
|
1631
1631
|
}
|
|
1632
1632
|
function Z(e) {
|
|
1633
|
-
return
|
|
1633
|
+
return h.collaboration?.lockOf(e) != null;
|
|
1634
1634
|
}
|
|
1635
1635
|
function ae(e) {
|
|
1636
1636
|
if (s.previewMode || Z(e)) return;
|
|
1637
|
-
let t =
|
|
1637
|
+
let t = h.savedBlocks;
|
|
1638
1638
|
t?.isPicking.value ? t.togglePick(e) : c("select-block", e);
|
|
1639
1639
|
}
|
|
1640
1640
|
function oe(e) {
|
|
1641
|
-
return
|
|
1641
|
+
return h.savedBlocks?.isPicked(e) ?? !1;
|
|
1642
1642
|
}
|
|
1643
|
-
let Q =
|
|
1643
|
+
let Q = A(() => h.savedBlocks?.isPicking.value === !0);
|
|
1644
1644
|
function se(e, t) {
|
|
1645
1645
|
e.type === "custom" && u.updateBlock(e.id, {
|
|
1646
1646
|
fieldValues: t.fieldValues,
|
|
1647
1647
|
dataSourceFetched: t.dataSourceFetched
|
|
1648
1648
|
});
|
|
1649
1649
|
}
|
|
1650
|
-
return (
|
|
1650
|
+
return (t, n) => (f(), v("div", {
|
|
1651
1651
|
class: "tpl-canvas-stage tpl:relative tpl:mx-auto tpl:flex tpl:justify-center tpl:rounded-lg",
|
|
1652
|
-
style:
|
|
1653
|
-
width: `${
|
|
1652
|
+
style: x({
|
|
1653
|
+
width: `${H.value}px`,
|
|
1654
1654
|
maxWidth: "calc(100% - 4 * var(--tpl-base-size))",
|
|
1655
1655
|
minWidth: "min-content",
|
|
1656
|
-
boxShadow:
|
|
1657
|
-
transition:
|
|
1656
|
+
boxShadow: e.darkMode ? "none" : "var(--tpl-shadow-xl)",
|
|
1657
|
+
transition: P(Ce)
|
|
1658
1658
|
})
|
|
1659
|
-
}, [
|
|
1659
|
+
}, [D("div", {
|
|
1660
1660
|
class: "tpl-canvas-bg tpl:absolute tpl:inset-0 tpl:rounded-lg tpl:pointer-events-none",
|
|
1661
|
-
style:
|
|
1662
|
-
backgroundColor:
|
|
1663
|
-
...
|
|
1661
|
+
style: x({
|
|
1662
|
+
backgroundColor: e.content.settings.backgroundColor,
|
|
1663
|
+
...e.darkMode ? { filter: "invert(1) hue-rotate(180deg)" } : {},
|
|
1664
1664
|
transition: "filter 300ms ease"
|
|
1665
1665
|
})
|
|
1666
|
-
}, null, 4),
|
|
1666
|
+
}, null, 4), D("div", {
|
|
1667
1667
|
"data-testid": "canvas-wrapper",
|
|
1668
1668
|
role: "region",
|
|
1669
|
-
"aria-label":
|
|
1669
|
+
"aria-label": P(l).landmarks.canvas,
|
|
1670
1670
|
class: "tpl-canvas-wrapper tpl:relative",
|
|
1671
|
-
style:
|
|
1672
|
-
width: `${
|
|
1673
|
-
transition:
|
|
1671
|
+
style: x({
|
|
1672
|
+
width: `${B.value}px`,
|
|
1673
|
+
transition: P(Ce)
|
|
1674
1674
|
})
|
|
1675
|
-
}, [
|
|
1676
|
-
class:
|
|
1677
|
-
"tpl-canvas--dark-mode":
|
|
1678
|
-
"tpl-preview-mode":
|
|
1675
|
+
}, [D("div", {
|
|
1676
|
+
class: L(["tpl-canvas tpl:relative tpl:rounded-lg", {
|
|
1677
|
+
"tpl-canvas--dark-mode": e.darkMode,
|
|
1678
|
+
"tpl-preview-mode": e.previewMode
|
|
1679
1679
|
}]),
|
|
1680
|
-
lang:
|
|
1681
|
-
dir:
|
|
1682
|
-
style:
|
|
1683
|
-
onClick:
|
|
1684
|
-
}, [
|
|
1680
|
+
lang: W.value,
|
|
1681
|
+
dir: G.value,
|
|
1682
|
+
style: x(U.value),
|
|
1683
|
+
onClick: ie
|
|
1684
|
+
}, [P(b)?.isInitialResolve.value ? (f(), v("div", mr, [D("span", hr, C(P(l).previewResolution.resolving), 1), (f(), v(I, null, o(3, (e) => D("div", {
|
|
1685
1685
|
key: e,
|
|
1686
1686
|
"aria-hidden": "true",
|
|
1687
1687
|
class: "tpl-pulse tpl:h-16 tpl:rounded-md tpl:bg-[var(--tpl-bg-hover)]"
|
|
1688
|
-
})), 64))])) :
|
|
1689
|
-
modelValue:
|
|
1690
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
1688
|
+
})), 64))])) : P(b)?.hasFailed.value ? (f(), v("p", gr, C(P(l).previewResolution.failed), 1)) : w("", !0), a(z(P(F), {
|
|
1689
|
+
modelValue: R.value,
|
|
1690
|
+
"onUpdate:modelValue": n[1] ||= (e) => R.value = e,
|
|
1691
1691
|
group: "blocks",
|
|
1692
1692
|
animation: 150,
|
|
1693
1693
|
"ghost-class": "tpl-ghost",
|
|
@@ -1695,83 +1695,83 @@ var fr = ["aria-label"], pr = ["lang", "dir"], mr = {
|
|
|
1695
1695
|
handle: ".tpl-block-btn",
|
|
1696
1696
|
"invert-swap": !0,
|
|
1697
1697
|
"inverted-swap-threshold": .65,
|
|
1698
|
-
disabled:
|
|
1698
|
+
disabled: e.previewMode,
|
|
1699
1699
|
draggable: ">:not(.tpl-canvas-empty-content)",
|
|
1700
1700
|
"force-fallback": !0,
|
|
1701
|
-
class:
|
|
1701
|
+
class: L([
|
|
1702
1702
|
"tpl-canvas-blocks",
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1703
|
+
K.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" : "",
|
|
1704
|
+
K.value && J.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
|
|
1705
|
+
K.value && !J.value ? "tpl:border-[var(--tpl-primary)]" : ""
|
|
1706
1706
|
]),
|
|
1707
|
-
onDragenter:
|
|
1708
|
-
onDragleave:
|
|
1709
|
-
onDrop:
|
|
1707
|
+
onDragenter: Y,
|
|
1708
|
+
onDragleave: ne,
|
|
1709
|
+
onDrop: re
|
|
1710
1710
|
}, {
|
|
1711
|
-
default:
|
|
1712
|
-
|
|
1711
|
+
default: g(() => [K.value ? (f(), v("div", _r, [
|
|
1712
|
+
D("div", vr, [z(P(Rt), {
|
|
1713
1713
|
size: 48,
|
|
1714
1714
|
"stroke-width": 1
|
|
1715
1715
|
})]),
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
y(
|
|
1720
|
-
|
|
1716
|
+
D("p", yr, C(P(l).canvas.noBlocks), 1),
|
|
1717
|
+
D("p", br, C(P(l).canvas.dragHint), 1),
|
|
1718
|
+
E.value ? (f(), v("p", xr, [
|
|
1719
|
+
y(C(P(l).ai.canvas.chatHint) + " ", 1),
|
|
1720
|
+
D("button", {
|
|
1721
1721
|
type: "button",
|
|
1722
1722
|
"data-testid": "canvas-ai-chat",
|
|
1723
1723
|
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)]",
|
|
1724
|
-
onClick: n[0] ||= (e) =>
|
|
1725
|
-
}, [
|
|
1724
|
+
onClick: n[0] ||= (e) => P(h).ai?.open("chat")
|
|
1725
|
+
}, [z(P(It), {
|
|
1726
1726
|
size: 14,
|
|
1727
1727
|
"stroke-width": 2,
|
|
1728
1728
|
"aria-hidden": "true"
|
|
1729
|
-
}), y(" " +
|
|
1730
|
-
y(" " +
|
|
1731
|
-
])) :
|
|
1732
|
-
O.value ? (
|
|
1733
|
-
y(
|
|
1734
|
-
|
|
1729
|
+
}), y(" " + C(P(l).ai.menu.chat), 1)]),
|
|
1730
|
+
y(" " + C(P(l).ai.canvas.chatHintSuffix), 1)
|
|
1731
|
+
])) : w("", !0),
|
|
1732
|
+
O.value ? (f(), v("p", Sr, [
|
|
1733
|
+
y(C(P(l).ai.canvas.importHint) + " ", 1),
|
|
1734
|
+
D("button", {
|
|
1735
1735
|
type: "button",
|
|
1736
1736
|
"data-testid": "canvas-ai-import",
|
|
1737
1737
|
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)]",
|
|
1738
|
-
onClick:
|
|
1739
|
-
}, [
|
|
1738
|
+
onClick: ee
|
|
1739
|
+
}, [z(P($t), {
|
|
1740
1740
|
size: 14,
|
|
1741
1741
|
"stroke-width": 2,
|
|
1742
1742
|
"aria-hidden": "true"
|
|
1743
|
-
}), y(" " +
|
|
1744
|
-
|
|
1743
|
+
}), y(" " + C(P(l).ai.import.menu), 1)]),
|
|
1744
|
+
D("input", {
|
|
1745
1745
|
ref_key: "importInput",
|
|
1746
1746
|
ref: k,
|
|
1747
1747
|
type: "file",
|
|
1748
1748
|
multiple: "",
|
|
1749
1749
|
accept: "image/png,image/jpeg,image/webp,image/gif,application/pdf",
|
|
1750
1750
|
hidden: "",
|
|
1751
|
-
onChange:
|
|
1751
|
+
onChange: j
|
|
1752
1752
|
}, null, 544)
|
|
1753
|
-
])) :
|
|
1754
|
-
])) :
|
|
1755
|
-
key:
|
|
1753
|
+
])) : w("", !0)
|
|
1754
|
+
])) : w("", !0), (f(!0), v(I, null, o(R.value, (t) => a((f(), v("div", {
|
|
1755
|
+
key: t.id,
|
|
1756
1756
|
class: "tpl-block-item"
|
|
1757
|
-
}, [
|
|
1757
|
+
}, [D("div", Cr, [t.type === "wrapper" ? (f(), T(V(X(t)), {
|
|
1758
1758
|
key: 0,
|
|
1759
|
-
block:
|
|
1760
|
-
viewport:
|
|
1761
|
-
}, null, 8, ["block", "viewport"])) : (
|
|
1759
|
+
block: t,
|
|
1760
|
+
viewport: e.viewport
|
|
1761
|
+
}, null, 8, ["block", "viewport"])) : (f(), T(rt, {
|
|
1762
1762
|
key: 1,
|
|
1763
|
-
block:
|
|
1764
|
-
"is-selected": !
|
|
1765
|
-
picked: oe(
|
|
1766
|
-
viewport:
|
|
1767
|
-
"preview-mode":
|
|
1768
|
-
onSelect: (
|
|
1763
|
+
block: t,
|
|
1764
|
+
"is-selected": !e.previewMode && !Q.value && e.selectedBlockId === t.id && !Z(t.id),
|
|
1765
|
+
picked: oe(t.id),
|
|
1766
|
+
viewport: e.viewport,
|
|
1767
|
+
"preview-mode": e.previewMode,
|
|
1768
|
+
onSelect: (e) => ae(t.id)
|
|
1769
1769
|
}, {
|
|
1770
|
-
default:
|
|
1771
|
-
block:
|
|
1772
|
-
viewport:
|
|
1773
|
-
onFetchData: (
|
|
1774
|
-
onUpdate: (
|
|
1770
|
+
default: g(() => [(f(), T(V(X(t)), {
|
|
1771
|
+
block: t,
|
|
1772
|
+
viewport: e.viewport,
|
|
1773
|
+
onFetchData: (e) => se(t, e),
|
|
1774
|
+
onUpdate: (e) => P(u).updateBlock(t.id, e)
|
|
1775
1775
|
}, null, 40, [
|
|
1776
1776
|
"block",
|
|
1777
1777
|
"viewport",
|
|
@@ -1786,19 +1786,19 @@ var fr = ["aria-label"], pr = ["lang", "dir"], mr = {
|
|
|
1786
1786
|
"viewport",
|
|
1787
1787
|
"preview-mode",
|
|
1788
1788
|
"onSelect"
|
|
1789
|
-
]))])])), [[
|
|
1789
|
+
]))])])), [[N, P(M) === !1 || !P(p)?.isHidden(t.id)]])), 128))]),
|
|
1790
1790
|
_: 1
|
|
1791
1791
|
}, 8, [
|
|
1792
1792
|
"modelValue",
|
|
1793
1793
|
"disabled",
|
|
1794
1794
|
"class"
|
|
1795
|
-
]), [[
|
|
1795
|
+
]), [[N, !P(b)?.isInitialResolve.value]])], 14, pr)], 12, fr)], 4));
|
|
1796
1796
|
}
|
|
1797
|
-
}), [["__scopeId", "data-v-b9798ef2"]]), Tr =
|
|
1797
|
+
}), [["__scopeId", "data-v-b9798ef2"]]), Tr = n({
|
|
1798
1798
|
name: "CustomBlockStylesheets",
|
|
1799
1799
|
setup() {
|
|
1800
|
-
let e =
|
|
1801
|
-
return () => e ? e.value.map((e, t) =>
|
|
1800
|
+
let e = r(St, null);
|
|
1801
|
+
return () => e ? e.value.map((e, t) => m("style", {
|
|
1802
1802
|
key: t,
|
|
1803
1803
|
"data-tpl-custom-block-stylesheet": "",
|
|
1804
1804
|
innerHTML: e
|
|
@@ -1838,49 +1838,49 @@ var Dr = ["aria-label"], Or = {
|
|
|
1838
1838
|
], Mr = { 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" }, Nr = {
|
|
1839
1839
|
key: 0,
|
|
1840
1840
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
1841
|
-
}, Pr = 4, Fr = /* @__PURE__ */
|
|
1841
|
+
}, Pr = 4, Fr = /* @__PURE__ */ n({
|
|
1842
1842
|
__name: "Sidebar",
|
|
1843
|
-
setup(
|
|
1844
|
-
let { t
|
|
1843
|
+
setup(e) {
|
|
1844
|
+
let { t, format: n } = $(), i = r(wt, []), a = r(At, void 0), s = r(Ct, void 0), c = r(bt, null), l = gn(), u = r(xt, {}), d = A(() => u.savedBlocks?.isAvailable.value === !0), p = S(!1), m = S(!1), y = S(null), b = !1, E = 0;
|
|
1845
1845
|
_(() => {
|
|
1846
|
-
window.clearTimeout(
|
|
1846
|
+
window.clearTimeout(E);
|
|
1847
1847
|
});
|
|
1848
|
-
function
|
|
1848
|
+
function O() {
|
|
1849
1849
|
try {
|
|
1850
|
-
return
|
|
1850
|
+
return y.value?.querySelector(":focus-visible") != null;
|
|
1851
1851
|
} catch {
|
|
1852
1852
|
return !1;
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
|
-
function O() {
|
|
1856
|
-
y.value || D() || (g.value = !1);
|
|
1857
|
-
}
|
|
1858
1855
|
function k() {
|
|
1859
|
-
|
|
1856
|
+
m.value || O() || (p.value = !1);
|
|
1860
1857
|
}
|
|
1861
|
-
function
|
|
1862
|
-
|
|
1858
|
+
function ee() {
|
|
1859
|
+
m.value = !0;
|
|
1863
1860
|
}
|
|
1864
|
-
function
|
|
1865
|
-
|
|
1861
|
+
function j() {
|
|
1862
|
+
m.value = !1;
|
|
1866
1863
|
}
|
|
1867
|
-
function
|
|
1864
|
+
function M() {
|
|
1865
|
+
b = !0, window.clearTimeout(E);
|
|
1866
|
+
}
|
|
1867
|
+
function N(e) {
|
|
1868
1868
|
let t = e.relatedTarget;
|
|
1869
|
-
t instanceof Node &&
|
|
1869
|
+
t instanceof Node && y.value?.contains(t) || y.value?.matches(":hover") || (p.value = !1);
|
|
1870
1870
|
}
|
|
1871
|
-
function
|
|
1872
|
-
|
|
1871
|
+
function L() {
|
|
1872
|
+
y.value?.ownerDocument.dispatchEvent(new MouseEvent("click", {
|
|
1873
1873
|
bubbles: !0,
|
|
1874
1874
|
cancelable: !0,
|
|
1875
1875
|
composed: !0
|
|
1876
1876
|
}));
|
|
1877
1877
|
}
|
|
1878
|
-
function
|
|
1879
|
-
|
|
1880
|
-
|
|
1878
|
+
function R() {
|
|
1879
|
+
m.value = !1, y.value?.matches(":hover") ? (p.value = !0, L()) : p.value = !1, window.clearTimeout(E), E = window.setTimeout(() => {
|
|
1880
|
+
b = !1;
|
|
1881
1881
|
}, 0);
|
|
1882
1882
|
}
|
|
1883
|
-
let
|
|
1883
|
+
let B = [
|
|
1884
1884
|
"section",
|
|
1885
1885
|
tt,
|
|
1886
1886
|
"image",
|
|
@@ -1894,104 +1894,104 @@ var Dr = ["aria-label"], Or = {
|
|
|
1894
1894
|
"table",
|
|
1895
1895
|
"spacer",
|
|
1896
1896
|
"html"
|
|
1897
|
-
],
|
|
1898
|
-
let e =
|
|
1897
|
+
], te = A(() => {
|
|
1898
|
+
let e = B.map((e) => ({
|
|
1899
1899
|
type: e,
|
|
1900
|
-
label: we(e,
|
|
1900
|
+
label: we(e, t)
|
|
1901
1901
|
}));
|
|
1902
|
-
return
|
|
1902
|
+
return u.plan && e.splice(-1, 0, {
|
|
1903
1903
|
type: "countdown",
|
|
1904
|
-
label: we("countdown",
|
|
1904
|
+
label: we("countdown", t)
|
|
1905
1905
|
}), e;
|
|
1906
|
-
}),
|
|
1906
|
+
}), H = A(() => i.map((e) => ({
|
|
1907
1907
|
type: `custom:${e.type}`,
|
|
1908
1908
|
label: e.name,
|
|
1909
1909
|
isCustom: !0,
|
|
1910
1910
|
icon: e.icon
|
|
1911
|
-
}))),
|
|
1912
|
-
h(() =>
|
|
1913
|
-
for (let t of e)
|
|
1911
|
+
}))), U = A(() => [...te.value, ...H.value]), W = A(() => Er(U.value, a)), K = A(() => W.value.items), q = /* @__PURE__ */ new Set();
|
|
1912
|
+
h(() => W.value.unknown, (e) => {
|
|
1913
|
+
for (let t of e) q.has(t) || (q.add(t), jt.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.`));
|
|
1914
1914
|
}, { immediate: !0 });
|
|
1915
|
-
function
|
|
1915
|
+
function J(e) {
|
|
1916
1916
|
if (e.isCustom) {
|
|
1917
|
-
let t = e.type.replace("custom:", ""), n =
|
|
1918
|
-
if (n) return
|
|
1917
|
+
let t = e.type.replace("custom:", ""), n = i.find((e) => e.type === t);
|
|
1918
|
+
if (n) return G(n);
|
|
1919
1919
|
}
|
|
1920
|
-
return e.type === "hero" ? He(
|
|
1920
|
+
return e.type === "hero" ? He(s?.value, t.blockDefaults.paragraph) : ne(e.type, s?.value);
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1923
|
-
if (!
|
|
1924
|
-
let t =
|
|
1925
|
-
ur(
|
|
1922
|
+
function Y(e) {
|
|
1923
|
+
if (!c) return;
|
|
1924
|
+
let t = J(e);
|
|
1925
|
+
ur(c, t) && l(t.id);
|
|
1926
1926
|
}
|
|
1927
|
-
function
|
|
1928
|
-
|
|
1927
|
+
function re(e) {
|
|
1928
|
+
b || Y(e);
|
|
1929
1929
|
}
|
|
1930
|
-
function
|
|
1931
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
1930
|
+
function ie(e, t) {
|
|
1931
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), Y(t));
|
|
1932
1932
|
}
|
|
1933
|
-
return (e,
|
|
1933
|
+
return (e, r) => (f(), v("aside", {
|
|
1934
1934
|
ref_key: "railEl",
|
|
1935
|
-
ref:
|
|
1936
|
-
"aria-label":
|
|
1935
|
+
ref: y,
|
|
1936
|
+
"aria-label": P(t).sidebarNav.palette,
|
|
1937
1937
|
class: "tpl-sidebar-rail tpl:absolute tpl:top-14 tpl:bottom-0 tpl:left-0 tpl:z-40 tpl:box-border tpl:flex tpl:flex-col tpl:overflow-hidden",
|
|
1938
|
-
style:
|
|
1939
|
-
width:
|
|
1938
|
+
style: x({
|
|
1939
|
+
width: p.value ? "200px" : "48px",
|
|
1940
1940
|
backgroundColor: "var(--tpl-bg-elevated)",
|
|
1941
1941
|
borderRight: "1px solid var(--tpl-border)",
|
|
1942
|
-
boxShadow:
|
|
1942
|
+
boxShadow: p.value ? "var(--tpl-shadow-lg)" : "none",
|
|
1943
1943
|
transition: "width 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
1944
1944
|
}),
|
|
1945
|
-
onMouseenter:
|
|
1946
|
-
onMouseleave:
|
|
1947
|
-
onFocusin:
|
|
1948
|
-
onFocusout:
|
|
1949
|
-
}, [
|
|
1945
|
+
onMouseenter: r[1] ||= (e) => p.value = !0,
|
|
1946
|
+
onMouseleave: k,
|
|
1947
|
+
onFocusin: r[2] ||= (e) => p.value = !0,
|
|
1948
|
+
onFocusout: N
|
|
1949
|
+
}, [d.value ? (f(), v("div", Or, [D("button", {
|
|
1950
1950
|
type: "button",
|
|
1951
|
-
"aria-label":
|
|
1951
|
+
"aria-label": P(t).sidebarNav.browseSavedBlocks,
|
|
1952
1952
|
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)]",
|
|
1953
|
-
style:
|
|
1954
|
-
onClick:
|
|
1955
|
-
}, [
|
|
1953
|
+
style: x({ justifyContent: p.value ? "flex-start" : "center" }),
|
|
1954
|
+
onClick: r[0] ||= (e) => P(u).savedBlocks?.openBrowser()
|
|
1955
|
+
}, [z(P(Gt), {
|
|
1956
1956
|
size: 20,
|
|
1957
1957
|
"stroke-width": 1.5,
|
|
1958
1958
|
class: "tpl:shrink-0"
|
|
1959
|
-
}),
|
|
1960
|
-
"model-value":
|
|
1959
|
+
}), p.value ? (f(), v("span", Ar, C(P(t).savedBlocks.title), 1)) : w("", !0)], 12, kr)])) : w("", !0), z(P(F), {
|
|
1960
|
+
"model-value": K.value,
|
|
1961
1961
|
group: {
|
|
1962
1962
|
name: "blocks",
|
|
1963
1963
|
pull: "clone",
|
|
1964
1964
|
put: !1
|
|
1965
1965
|
},
|
|
1966
|
-
clone:
|
|
1966
|
+
clone: J,
|
|
1967
1967
|
sort: !1,
|
|
1968
1968
|
animation: 150,
|
|
1969
1969
|
"force-fallback": !0,
|
|
1970
1970
|
"fallback-tolerance": Pr,
|
|
1971
1971
|
class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl:gap-0.5 tpl:overflow-y-auto tpl:p-1",
|
|
1972
|
-
onChoose:
|
|
1973
|
-
onStart:
|
|
1974
|
-
onUnchoose:
|
|
1975
|
-
onEnd:
|
|
1972
|
+
onChoose: ee,
|
|
1973
|
+
onStart: M,
|
|
1974
|
+
onUnchoose: j,
|
|
1975
|
+
onEnd: R
|
|
1976
1976
|
}, {
|
|
1977
|
-
default:
|
|
1977
|
+
default: g(() => [(f(!0), v(I, null, o(K.value, (e) => (f(), v("button", {
|
|
1978
1978
|
key: e.type,
|
|
1979
1979
|
type: "button",
|
|
1980
1980
|
"data-palette-type": e.type,
|
|
1981
|
-
"aria-label":
|
|
1981
|
+
"aria-label": P(n)(P(t).sidebarNav.insertBlock, { block: e.label }),
|
|
1982
1982
|
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",
|
|
1983
|
-
style:
|
|
1984
|
-
onClick: (t) =>
|
|
1985
|
-
onKeydown: (t) =>
|
|
1986
|
-
}, [
|
|
1983
|
+
style: x({ justifyContent: p.value ? "flex-start" : "center" }),
|
|
1984
|
+
onClick: (t) => re(e),
|
|
1985
|
+
onKeydown: (t) => ie(t, e)
|
|
1986
|
+
}, [D("div", Mr, [P(Sn)[e.type] ? (f(), T(V(P(Sn)[e.type]), {
|
|
1987
1987
|
key: 0,
|
|
1988
1988
|
size: 20,
|
|
1989
1989
|
"stroke-width": 1.5
|
|
1990
|
-
})) : e.isCustom ? (
|
|
1990
|
+
})) : e.isCustom ? (f(), T(je, {
|
|
1991
1991
|
key: 1,
|
|
1992
1992
|
icon: e.icon,
|
|
1993
1993
|
size: 20
|
|
1994
|
-
}, null, 8, ["icon"])) :
|
|
1994
|
+
}, null, 8, ["icon"])) : w("", !0)]), p.value ? (f(), v("span", Nr, C(e.label), 1)) : w("", !0)], 44, jr))), 128))]),
|
|
1995
1995
|
_: 1
|
|
1996
1996
|
}, 8, ["model-value"])], 44, Dr));
|
|
1997
1997
|
}
|
|
@@ -2034,9 +2034,9 @@ var Dr = ["aria-label"], Or = {
|
|
|
2034
2034
|
role: "tabpanel",
|
|
2035
2035
|
"aria-labelledby": "tpl-tab-issues",
|
|
2036
2036
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2037
|
-
}, Qr = /* @__PURE__ */
|
|
2037
|
+
}, Qr = /* @__PURE__ */ n({
|
|
2038
2038
|
__name: "RightSidebar",
|
|
2039
|
-
props: /*@__PURE__*/
|
|
2039
|
+
props: /*@__PURE__*/ d({
|
|
2040
2040
|
selectedBlock: {},
|
|
2041
2041
|
settings: {},
|
|
2042
2042
|
shiftedLeft: { type: Boolean }
|
|
@@ -2044,18 +2044,18 @@ var Dr = ["aria-label"], Or = {
|
|
|
2044
2044
|
tab: { default: "content" },
|
|
2045
2045
|
tabModifiers: {}
|
|
2046
2046
|
}),
|
|
2047
|
-
emits: /*@__PURE__*/
|
|
2047
|
+
emits: /*@__PURE__*/ d([
|
|
2048
2048
|
"update-block",
|
|
2049
2049
|
"delete-block",
|
|
2050
2050
|
"duplicate-block",
|
|
2051
2051
|
"update-settings"
|
|
2052
2052
|
], ["update:tab"]),
|
|
2053
|
-
setup(e, { emit:
|
|
2054
|
-
let
|
|
2053
|
+
setup(e, { emit: n }) {
|
|
2054
|
+
let i = p(() => import("./chunks/Toolbar-CdpsvNOR.js").then((e) => e.t)), a = p(() => import("./chunks/TemplateSettings-CKtI-dof.js")), o = p(() => import("./chunks/IssuesPanel-C7LfxaAY.js")), s = e, c = n, { t: l } = $(), u = t(e, "tab"), d = r(ut, null), m = A(() => d !== null && !d.unavailable.value), g = A(() => d?.issues.value.length ?? 0), _ = r(Tt, new Set(Mt)), y = A(() => _.size > 0);
|
|
2055
2055
|
function b(e) {
|
|
2056
2056
|
return u.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] tpl:hover:text-[var(--tpl-text)]";
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2058
|
+
function S(e) {
|
|
2059
2059
|
return u.value === e ? {
|
|
2060
2060
|
backgroundColor: "var(--tpl-bg)",
|
|
2061
2061
|
boxShadow: "var(--tpl-shadow-sm)"
|
|
@@ -2065,79 +2065,79 @@ var Dr = ["aria-label"], Or = {
|
|
|
2065
2065
|
e && (u.value = "content");
|
|
2066
2066
|
}), h(m, (e) => {
|
|
2067
2067
|
!e && u.value === "issues" && (u.value = "content");
|
|
2068
|
-
}), (t, n) => (
|
|
2069
|
-
"aria-label":
|
|
2070
|
-
class:
|
|
2068
|
+
}), (t, n) => (f(), v("aside", {
|
|
2069
|
+
"aria-label": P(l).landmarks.rightSidebar,
|
|
2070
|
+
class: L(["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"])
|
|
2071
2071
|
}, [
|
|
2072
|
-
|
|
2073
|
-
|
|
2072
|
+
D("div", Lr, [
|
|
2073
|
+
D("button", {
|
|
2074
2074
|
id: "tpl-tab-content",
|
|
2075
2075
|
role: "tab",
|
|
2076
2076
|
"aria-selected": u.value === "content",
|
|
2077
2077
|
"aria-controls": "tpl-tabpanel-content",
|
|
2078
|
-
"aria-label":
|
|
2079
|
-
title:
|
|
2080
|
-
class:
|
|
2081
|
-
style:
|
|
2078
|
+
"aria-label": P(l).sidebar.content,
|
|
2079
|
+
title: P(l).sidebar.content,
|
|
2080
|
+
class: L(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", b("content")]),
|
|
2081
|
+
style: x(S("content")),
|
|
2082
2082
|
onClick: n[0] ||= (e) => u.value = "content"
|
|
2083
|
-
}, [
|
|
2083
|
+
}, [z(P(Zt), {
|
|
2084
2084
|
size: 14,
|
|
2085
2085
|
"stroke-width": 2
|
|
2086
|
-
}), u.value === "content" ? (
|
|
2087
|
-
y.value ? (
|
|
2086
|
+
}), u.value === "content" ? (f(), v("span", zr, C(P(l).sidebar.content), 1)) : w("", !0)], 14, Rr),
|
|
2087
|
+
y.value ? (f(), v("button", {
|
|
2088
2088
|
key: 0,
|
|
2089
2089
|
id: "tpl-tab-settings",
|
|
2090
2090
|
role: "tab",
|
|
2091
2091
|
"aria-selected": u.value === "settings",
|
|
2092
2092
|
"aria-controls": "tpl-tabpanel-settings",
|
|
2093
|
-
"aria-label":
|
|
2094
|
-
title:
|
|
2095
|
-
class:
|
|
2096
|
-
style:
|
|
2093
|
+
"aria-label": P(l).sidebar.settings,
|
|
2094
|
+
title: P(l).sidebar.settings,
|
|
2095
|
+
class: L(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", b("settings")]),
|
|
2096
|
+
style: x(S("settings")),
|
|
2097
2097
|
onClick: n[1] ||= (e) => u.value = "settings"
|
|
2098
|
-
}, [
|
|
2098
|
+
}, [z(P(Pt), {
|
|
2099
2099
|
size: 14,
|
|
2100
2100
|
"stroke-width": 1.5
|
|
2101
|
-
}), u.value === "settings" ? (
|
|
2102
|
-
m.value ? (
|
|
2101
|
+
}), u.value === "settings" ? (f(), v("span", Vr, C(P(l).sidebar.settings), 1)) : w("", !0)], 14, Br)) : w("", !0),
|
|
2102
|
+
m.value ? (f(), v("button", {
|
|
2103
2103
|
key: 1,
|
|
2104
2104
|
id: "tpl-tab-issues",
|
|
2105
2105
|
role: "tab",
|
|
2106
2106
|
"aria-selected": u.value === "issues",
|
|
2107
2107
|
"aria-controls": "tpl-tabpanel-issues",
|
|
2108
|
-
"aria-label":
|
|
2109
|
-
title:
|
|
2110
|
-
class:
|
|
2111
|
-
style:
|
|
2108
|
+
"aria-label": P(l).issues.panelTabLabel,
|
|
2109
|
+
title: P(l).issues.panelTabLabel,
|
|
2110
|
+
class: L(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", b("issues")]),
|
|
2111
|
+
style: x(S("issues")),
|
|
2112
2112
|
onClick: n[2] ||= (e) => u.value = "issues"
|
|
2113
2113
|
}, [
|
|
2114
|
-
|
|
2114
|
+
z(P(qt), {
|
|
2115
2115
|
size: 14,
|
|
2116
2116
|
"stroke-width": 1.5
|
|
2117
2117
|
}),
|
|
2118
|
-
u.value === "issues" ? (
|
|
2119
|
-
g.value > 0 ? (
|
|
2120
|
-
], 14, Hr)) :
|
|
2118
|
+
u.value === "issues" ? (f(), v("span", Ur, C(P(l).issues.panelTabLabel), 1)) : w("", !0),
|
|
2119
|
+
g.value > 0 ? (f(), v("span", Wr, C(g.value), 1)) : w("", !0)
|
|
2120
|
+
], 14, Hr)) : w("", !0)
|
|
2121
2121
|
]),
|
|
2122
|
-
u.value === "content" ? (
|
|
2122
|
+
u.value === "content" ? (f(), v("div", Gr, [e.selectedBlock ? (f(), T(P(i), {
|
|
2123
2123
|
key: 0,
|
|
2124
2124
|
block: e.selectedBlock,
|
|
2125
2125
|
onUpdate: n[3] ||= (e) => c("update-block", e),
|
|
2126
2126
|
onDelete: n[4] ||= (e) => c("delete-block"),
|
|
2127
2127
|
onDuplicate: n[5] ||= (e) => c("duplicate-block")
|
|
2128
|
-
}, null, 8, ["block"])) : (
|
|
2129
|
-
|
|
2128
|
+
}, null, 8, ["block"])) : (f(), v("div", Kr, [
|
|
2129
|
+
D("div", qr, [z(P(Jt), {
|
|
2130
2130
|
size: 40,
|
|
2131
2131
|
"stroke-width": 1.5
|
|
2132
2132
|
})]),
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
]))])) :
|
|
2136
|
-
u.value === "settings" && y.value ? (
|
|
2133
|
+
D("h3", Jr, C(P(l).sidebar.noSelection), 1),
|
|
2134
|
+
D("p", Yr, C(P(l).sidebar.noSelectionHint), 1)
|
|
2135
|
+
]))])) : w("", !0),
|
|
2136
|
+
u.value === "settings" && y.value ? (f(), v("div", Xr, [z(P(a), {
|
|
2137
2137
|
settings: e.settings,
|
|
2138
2138
|
onUpdate: n[6] ||= (e) => c("update-settings", e)
|
|
2139
|
-
}, null, 8, ["settings"])])) :
|
|
2140
|
-
u.value === "issues" && m.value ? (
|
|
2139
|
+
}, null, 8, ["settings"])])) : w("", !0),
|
|
2140
|
+
u.value === "issues" && m.value ? (f(), v("div", Zr, [z(P(o))])) : w("", !0)
|
|
2141
2141
|
], 10, Ir));
|
|
2142
2142
|
}
|
|
2143
2143
|
}), $r = {
|
|
@@ -2145,17 +2145,17 @@ var Dr = ["aria-label"], Or = {
|
|
|
2145
2145
|
style: { "z-index": "10001" },
|
|
2146
2146
|
role: "status",
|
|
2147
2147
|
"data-testid": "small-screen-notice"
|
|
2148
|
-
}, ei = { class: "tpl:text-[var(--tpl-text-dim)]" }, ti = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ni = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, ri = /* @__PURE__ */
|
|
2148
|
+
}, ei = { class: "tpl:text-[var(--tpl-text-dim)]" }, ti = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ni = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, ri = /* @__PURE__ */ n({
|
|
2149
2149
|
__name: "SmallScreenNotice",
|
|
2150
2150
|
setup(e) {
|
|
2151
2151
|
let { t } = $();
|
|
2152
|
-
return (e, n) => (
|
|
2153
|
-
|
|
2152
|
+
return (e, n) => (f(), v("div", $r, [
|
|
2153
|
+
D("div", ei, [z(P(Nt), {
|
|
2154
2154
|
size: 48,
|
|
2155
2155
|
"stroke-width": 1.5
|
|
2156
2156
|
})]),
|
|
2157
|
-
|
|
2158
|
-
|
|
2157
|
+
D("h2", ti, C(P(t).smallScreen.title), 1),
|
|
2158
|
+
D("p", ni, C(P(t).smallScreen.message), 1)
|
|
2159
2159
|
]));
|
|
2160
2160
|
}
|
|
2161
2161
|
}), ii = {
|
|
@@ -2165,45 +2165,45 @@ var Dr = ["aria-label"], Or = {
|
|
|
2165
2165
|
"backdrop-filter": "blur(8px)",
|
|
2166
2166
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
2167
2167
|
}
|
|
2168
|
-
}, ai = /* @__PURE__ */
|
|
2168
|
+
}, ai = /* @__PURE__ */ n({
|
|
2169
2169
|
__name: "EditorFooter",
|
|
2170
2170
|
props: { positionClass: {} },
|
|
2171
2171
|
setup(e) {
|
|
2172
2172
|
let { t } = $();
|
|
2173
|
-
return (n, r) => (
|
|
2173
|
+
return (n, r) => (f(), v("footer", { class: L(["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]) }, [D("div", ii, [D("span", null, C(P(t).footer.poweredBy), 1), r[0] ||= B("<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));
|
|
2174
2174
|
}
|
|
2175
2175
|
}), oi = [
|
|
2176
2176
|
"aria-label",
|
|
2177
2177
|
"title",
|
|
2178
2178
|
"aria-pressed"
|
|
2179
|
-
], si = /*#__PURE__*/ nn(/* @__PURE__ */
|
|
2179
|
+
], si = /*#__PURE__*/ nn(/* @__PURE__ */ n({
|
|
2180
2180
|
__name: "DarkModeToggle",
|
|
2181
2181
|
props: { darkMode: { type: Boolean } },
|
|
2182
2182
|
emits: ["change"],
|
|
2183
2183
|
setup(e, { emit: t }) {
|
|
2184
2184
|
let n = t, { t: r } = $();
|
|
2185
|
-
return (t, i) => (
|
|
2185
|
+
return (t, i) => (f(), v("button", {
|
|
2186
2186
|
class: "tpl-dark-mode-toggle tpl:relative tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:p-2 tpl:transition-all",
|
|
2187
|
-
style:
|
|
2187
|
+
style: x({
|
|
2188
2188
|
color: e.darkMode ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
2189
2189
|
backgroundColor: e.darkMode ? "var(--tpl-primary-light)" : "transparent"
|
|
2190
2190
|
}),
|
|
2191
|
-
"aria-label": e.darkMode ?
|
|
2192
|
-
title: e.darkMode ?
|
|
2191
|
+
"aria-label": e.darkMode ? P(r).darkMode.disable : P(r).darkMode.enable,
|
|
2192
|
+
title: e.darkMode ? P(r).darkMode.disable : P(r).darkMode.enable,
|
|
2193
2193
|
"aria-pressed": e.darkMode,
|
|
2194
2194
|
onClick: i[0] ||= (t) => n("change", !e.darkMode)
|
|
2195
|
-
}, [
|
|
2195
|
+
}, [z(O, {
|
|
2196
2196
|
"enter-active-class": "tpl-icon-enter-active",
|
|
2197
2197
|
"leave-active-class": "tpl-icon-leave-active",
|
|
2198
2198
|
"enter-from-class": "tpl-icon-enter-from",
|
|
2199
2199
|
"leave-to-class": "tpl-icon-leave-to",
|
|
2200
2200
|
mode: "out-in"
|
|
2201
2201
|
}, {
|
|
2202
|
-
default:
|
|
2202
|
+
default: g(() => [e.darkMode ? (f(), T(P(Wt), {
|
|
2203
2203
|
key: "moon",
|
|
2204
2204
|
size: 18,
|
|
2205
2205
|
"stroke-width": 1.5
|
|
2206
|
-
})) : (
|
|
2206
|
+
})) : (f(), T(P(en), {
|
|
2207
2207
|
key: "sun",
|
|
2208
2208
|
size: 18,
|
|
2209
2209
|
"stroke-width": 1.5
|
|
@@ -2215,34 +2215,34 @@ var Dr = ["aria-label"], Or = {
|
|
|
2215
2215
|
"aria-label",
|
|
2216
2216
|
"title",
|
|
2217
2217
|
"aria-pressed"
|
|
2218
|
-
], li = /*#__PURE__*/ nn(/* @__PURE__ */
|
|
2218
|
+
], li = /*#__PURE__*/ nn(/* @__PURE__ */ n({
|
|
2219
2219
|
__name: "PreviewToggle",
|
|
2220
2220
|
props: { previewMode: { type: Boolean } },
|
|
2221
2221
|
emits: ["change"],
|
|
2222
2222
|
setup(e, { emit: t }) {
|
|
2223
2223
|
let n = t, { t: r } = $();
|
|
2224
|
-
return (t, i) => (
|
|
2224
|
+
return (t, i) => (f(), v("button", {
|
|
2225
2225
|
class: "tpl-preview-toggle tpl:relative tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:p-2 tpl:transition-all",
|
|
2226
|
-
style:
|
|
2226
|
+
style: x({
|
|
2227
2227
|
color: e.previewMode ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
2228
2228
|
backgroundColor: e.previewMode ? "var(--tpl-primary-light)" : "transparent"
|
|
2229
2229
|
}),
|
|
2230
|
-
"aria-label": e.previewMode ?
|
|
2231
|
-
title: e.previewMode ?
|
|
2230
|
+
"aria-label": e.previewMode ? P(r).previewMode.disable : P(r).previewMode.enable,
|
|
2231
|
+
title: e.previewMode ? P(r).previewMode.disable : P(r).previewMode.enable,
|
|
2232
2232
|
"aria-pressed": e.previewMode,
|
|
2233
2233
|
onClick: i[0] ||= (t) => n("change", !e.previewMode)
|
|
2234
|
-
}, [
|
|
2234
|
+
}, [z(O, {
|
|
2235
2235
|
"enter-active-class": "tpl-icon-enter-active",
|
|
2236
2236
|
"leave-active-class": "tpl-icon-leave-active",
|
|
2237
2237
|
"enter-from-class": "tpl-icon-enter-from",
|
|
2238
2238
|
"leave-to-class": "tpl-icon-leave-to",
|
|
2239
2239
|
mode: "out-in"
|
|
2240
2240
|
}, {
|
|
2241
|
-
default:
|
|
2241
|
+
default: g(() => [e.previewMode ? (f(), T(P(Lt), {
|
|
2242
2242
|
key: "eye",
|
|
2243
2243
|
size: 18,
|
|
2244
2244
|
"stroke-width": 1.5
|
|
2245
|
-
})) : (
|
|
2245
|
+
})) : (f(), T(P(Ht), {
|
|
2246
2246
|
key: "eye-off",
|
|
2247
2247
|
size: 18,
|
|
2248
2248
|
"stroke-width": 1.5
|
|
@@ -2250,75 +2250,75 @@ var Dr = ["aria-label"], Or = {
|
|
|
2250
2250
|
_: 1
|
|
2251
2251
|
})], 12, ci));
|
|
2252
2252
|
}
|
|
2253
|
-
}), [["__scopeId", "data-v-eef7b2ca"]]), ui = ["aria-label", "onKeydown"], di = ["title", "aria-label"], fi = /* @__PURE__ */
|
|
2253
|
+
}), [["__scopeId", "data-v-eef7b2ca"]]), ui = ["aria-label", "onKeydown"], di = ["title", "aria-label"], fi = /* @__PURE__ */ n({
|
|
2254
2254
|
__name: "TemplateNameField",
|
|
2255
2255
|
props: {
|
|
2256
2256
|
name: {},
|
|
2257
2257
|
editable: { type: Boolean }
|
|
2258
2258
|
},
|
|
2259
2259
|
emits: ["commit"],
|
|
2260
|
-
setup(
|
|
2261
|
-
let
|
|
2260
|
+
setup(t, { emit: n }) {
|
|
2261
|
+
let r = t, i = n, { t: o } = $(), s = S(!1), c = S(""), l = S(null);
|
|
2262
2262
|
async function u() {
|
|
2263
|
-
|
|
2263
|
+
r.editable && (c.value = r.name ?? "", s.value = !0, await e(), l.value?.focus(), l.value?.select());
|
|
2264
2264
|
}
|
|
2265
|
-
function
|
|
2265
|
+
function d() {
|
|
2266
2266
|
if (!s.value) return;
|
|
2267
2267
|
s.value = !1;
|
|
2268
2268
|
let e = c.value.trim();
|
|
2269
|
-
e && e !==
|
|
2269
|
+
e && e !== r.name && i("commit", e);
|
|
2270
2270
|
}
|
|
2271
2271
|
function p() {
|
|
2272
2272
|
s.value = !1;
|
|
2273
2273
|
}
|
|
2274
|
-
return (e,
|
|
2274
|
+
return (e, n) => s.value ? a((f(), v("input", {
|
|
2275
2275
|
key: 0,
|
|
2276
2276
|
ref_key: "inputEl",
|
|
2277
2277
|
ref: l,
|
|
2278
|
-
"onUpdate:modelValue":
|
|
2278
|
+
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
2279
2279
|
type: "text",
|
|
2280
2280
|
"data-testid": "template-name-input",
|
|
2281
|
-
"aria-label":
|
|
2282
|
-
class:
|
|
2283
|
-
onKeydown: [b(
|
|
2284
|
-
onBlur:
|
|
2285
|
-
}, null, 42, ui)), [[
|
|
2281
|
+
"aria-label": P(o).header.templateName,
|
|
2282
|
+
class: L([P(yn), "tpl:h-8 tpl:max-w-[260px] tpl:text-sm tpl:font-medium"]),
|
|
2283
|
+
onKeydown: [b(E(d, ["prevent"]), ["enter"]), b(E(p, ["prevent"]), ["esc"])],
|
|
2284
|
+
onBlur: d
|
|
2285
|
+
}, null, 42, ui)), [[ee, c.value]]) : t.editable ? (f(), v("button", {
|
|
2286
2286
|
key: 1,
|
|
2287
2287
|
type: "button",
|
|
2288
2288
|
"data-testid": "template-name",
|
|
2289
|
-
title:
|
|
2290
|
-
"aria-label":
|
|
2291
|
-
class:
|
|
2289
|
+
title: P(o).header.rename,
|
|
2290
|
+
"aria-label": P(o).header.rename,
|
|
2291
|
+
class: L(["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)]": !t.name }]),
|
|
2292
2292
|
onClick: u
|
|
2293
|
-
},
|
|
2293
|
+
}, C(t.name || P(o).header.untitled), 11, di)) : (f(), v("span", {
|
|
2294
2294
|
key: 2,
|
|
2295
2295
|
"data-testid": "template-name",
|
|
2296
|
-
class:
|
|
2297
|
-
},
|
|
2296
|
+
class: L(["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)]": !t.name }])
|
|
2297
|
+
}, C(t.name || P(o).header.untitled), 3));
|
|
2298
2298
|
}
|
|
2299
|
-
}), pi = ["title"], mi = /* @__PURE__ */
|
|
2299
|
+
}), pi = ["title"], mi = /* @__PURE__ */ n({
|
|
2300
2300
|
__name: "TemplateTimestamp",
|
|
2301
2301
|
props: {
|
|
2302
2302
|
iso: {},
|
|
2303
2303
|
kind: {}
|
|
2304
2304
|
},
|
|
2305
|
-
setup(
|
|
2306
|
-
let
|
|
2305
|
+
setup(e) {
|
|
2306
|
+
let t = e, { t: n, format: i } = $(), a = r(_t, void 0), o = S(0);
|
|
2307
2307
|
Oe(() => {
|
|
2308
|
-
|
|
2308
|
+
o.value += 1;
|
|
2309
2309
|
}, 6e4);
|
|
2310
|
-
let
|
|
2311
|
-
let e = Tn(
|
|
2310
|
+
let s = A(() => {
|
|
2311
|
+
let e = Tn(t.iso, n.time, i);
|
|
2312
2312
|
if (e === null) return "";
|
|
2313
|
-
let
|
|
2314
|
-
return
|
|
2315
|
-
}),
|
|
2316
|
-
return (e, t) =>
|
|
2313
|
+
let r = e === n.time.justNow;
|
|
2314
|
+
return t.kind === "updatedAt" ? r ? n.header.updatedJustNow : i(n.header.updatedAt, { time: e }) : r ? n.header.createdJustNow : i(n.header.createdAt, { time: e });
|
|
2315
|
+
}), c = A(() => un(t.iso, a));
|
|
2316
|
+
return (e, t) => s.value ? (f(), v("span", {
|
|
2317
2317
|
key: 0,
|
|
2318
2318
|
"data-testid": "template-timestamp",
|
|
2319
|
-
title:
|
|
2319
|
+
title: c.value,
|
|
2320
2320
|
class: "tpl:max-w-[260px] tpl:truncate tpl:px-2 tpl:text-xs tpl:leading-tight tpl:text-[var(--tpl-text-dim)]"
|
|
2321
|
-
},
|
|
2321
|
+
}, C(s.value), 9, pi)) : w("", !0);
|
|
2322
2322
|
}
|
|
2323
2323
|
}), hi = ["data-tooltip"], gi = {
|
|
2324
2324
|
key: 1,
|
|
@@ -2330,7 +2330,7 @@ var Dr = ["aria-label"], Or = {
|
|
|
2330
2330
|
"aria-live": "polite",
|
|
2331
2331
|
"data-testid": "save-status-unsaved",
|
|
2332
2332
|
class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2333
|
-
}, vi = /* @__PURE__ */
|
|
2333
|
+
}, vi = /* @__PURE__ */ n({
|
|
2334
2334
|
__name: "TemplateSaveStatus",
|
|
2335
2335
|
props: {
|
|
2336
2336
|
status: {},
|
|
@@ -2339,51 +2339,51 @@ var Dr = ["aria-label"], Or = {
|
|
|
2339
2339
|
},
|
|
2340
2340
|
setup(e) {
|
|
2341
2341
|
let { t } = $();
|
|
2342
|
-
return (n, r) => e.status === "error" ? (
|
|
2342
|
+
return (n, r) => e.status === "error" ? (f(), v("div", {
|
|
2343
2343
|
key: 0,
|
|
2344
2344
|
"aria-live": "assertive",
|
|
2345
2345
|
"data-testid": "save-status-error",
|
|
2346
2346
|
class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
|
|
2347
2347
|
"data-tooltip": e.errorMessage
|
|
2348
|
-
}, [
|
|
2348
|
+
}, [z(P(Bt), {
|
|
2349
2349
|
size: 12,
|
|
2350
2350
|
"stroke-width": 2.5
|
|
2351
|
-
}), y(" " +
|
|
2351
|
+
}), y(" " + C(P(t).header.saveFailed), 1)], 8, hi)) : e.status === "saved" ? (f(), v("div", gi, [z(P(Ft), {
|
|
2352
2352
|
size: 12,
|
|
2353
2353
|
"stroke-width": 2.5
|
|
2354
|
-
}), y(" " +
|
|
2354
|
+
}), y(" " + C(P(t).header.saved), 1)])) : e.isDirty ? (f(), v("div", _i, [r[0] ||= D("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), y(" " + C(P(t).header.unsaved), 1)])) : w("", !0);
|
|
2355
2355
|
}
|
|
2356
2356
|
}), yi = [
|
|
2357
2357
|
"aria-pressed",
|
|
2358
2358
|
"aria-label",
|
|
2359
2359
|
"title"
|
|
2360
|
-
], bi = /* @__PURE__ */
|
|
2360
|
+
], bi = /* @__PURE__ */ n({
|
|
2361
2361
|
__name: "AiHeaderMenu",
|
|
2362
2362
|
props: { feature: {} },
|
|
2363
2363
|
setup(e) {
|
|
2364
|
-
let t = e, { t: n } = $(), r =
|
|
2364
|
+
let t = e, { t: n } = $(), r = A(() => t.feature.panel.value === "chat");
|
|
2365
2365
|
function i() {
|
|
2366
2366
|
r.value ? t.feature.close() : t.feature.open("chat");
|
|
2367
2367
|
}
|
|
2368
|
-
return (t, a) => e.feature.isAvailable.value && e.feature.has("chat") ? (
|
|
2368
|
+
return (t, a) => e.feature.isAvailable.value && e.feature.has("chat") ? (f(), v("button", {
|
|
2369
2369
|
key: 0,
|
|
2370
2370
|
type: "button",
|
|
2371
2371
|
"data-testid": "ai-menu-trigger",
|
|
2372
2372
|
"aria-pressed": r.value,
|
|
2373
|
-
"aria-label":
|
|
2374
|
-
title:
|
|
2375
|
-
class:
|
|
2376
|
-
style:
|
|
2373
|
+
"aria-label": P(n).ai.menu.chat,
|
|
2374
|
+
title: P(n).ai.menu.chat,
|
|
2375
|
+
class: L(P(vn)),
|
|
2376
|
+
style: x(r.value ? {
|
|
2377
2377
|
backgroundColor: "var(--tpl-primary-light)",
|
|
2378
2378
|
borderColor: "var(--tpl-primary-light)"
|
|
2379
2379
|
} : void 0),
|
|
2380
|
-
onClick:
|
|
2381
|
-
}, [
|
|
2380
|
+
onClick: E(i, ["stop"])
|
|
2381
|
+
}, [z(P(It), {
|
|
2382
2382
|
size: 16,
|
|
2383
2383
|
"stroke-width": 2,
|
|
2384
2384
|
class: "tpl:text-[var(--tpl-primary-hover)]",
|
|
2385
2385
|
"aria-hidden": "true"
|
|
2386
|
-
}), y(" " +
|
|
2386
|
+
}), y(" " + C(P(n).ai.menu.button), 1)], 14, yi)) : w("", !0);
|
|
2387
2387
|
}
|
|
2388
2388
|
}), xi = { 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-[1fr_auto_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)]" }, Si = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-2.5" }, Ci = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, wi = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, Ti = ["aria-label", "aria-expanded"], Ei = {
|
|
2389
2389
|
key: 0,
|
|
@@ -2392,7 +2392,7 @@ var Dr = ["aria-label"], Or = {
|
|
|
2392
2392
|
"aria-label",
|
|
2393
2393
|
"title",
|
|
2394
2394
|
"disabled"
|
|
2395
|
-
], Oi = ["disabled", "title"], ki = /* @__PURE__ */
|
|
2395
|
+
], Oi = ["disabled", "title"], ki = /* @__PURE__ */ n({
|
|
2396
2396
|
__name: "EditorHeader",
|
|
2397
2397
|
props: {
|
|
2398
2398
|
editor: {},
|
|
@@ -2406,13 +2406,13 @@ var Dr = ["aria-label"], Or = {
|
|
|
2406
2406
|
ai: {}
|
|
2407
2407
|
},
|
|
2408
2408
|
setup(e) {
|
|
2409
|
-
let t =
|
|
2410
|
-
return (r, i) => (
|
|
2411
|
-
|
|
2412
|
-
e.templates?.isAvailable.value && e.templates.hasTemplate.value && (e.showTemplateName || e.templates.timestamp.value) ? (
|
|
2409
|
+
let t = p(() => import("./chunks/VersionHistoryMenu-BYlLRvRJ.js")), n = p(() => import("./chunks/CollaboratorBar-CXByAoUz.js"));
|
|
2410
|
+
return (r, i) => (f(), v("header", xi, [
|
|
2411
|
+
D("div", Si, [
|
|
2412
|
+
e.templates?.isAvailable.value && e.templates.hasTemplate.value && (e.showTemplateName || e.templates.timestamp.value) ? (f(), v("div", {
|
|
2413
2413
|
key: 0,
|
|
2414
|
-
class:
|
|
2415
|
-
}, [e.showTemplateName ? (
|
|
2414
|
+
class: L(["tpl:flex tpl:min-w-0 tpl:flex-col tpl:items-start", { "tpl:pb-1.5": e.showTemplateName && e.templates.timestamp.value !== null }])
|
|
2415
|
+
}, [e.showTemplateName ? (f(), T(fi, {
|
|
2416
2416
|
key: 0,
|
|
2417
2417
|
name: e.templates.name.value,
|
|
2418
2418
|
editable: e.templates.canSave.value,
|
|
@@ -2421,12 +2421,12 @@ var Dr = ["aria-label"], Or = {
|
|
|
2421
2421
|
"name",
|
|
2422
2422
|
"editable",
|
|
2423
2423
|
"onCommit"
|
|
2424
|
-
])) :
|
|
2424
|
+
])) : w("", !0), e.templates.timestamp.value ? (f(), T(mi, {
|
|
2425
2425
|
key: 1,
|
|
2426
2426
|
iso: e.templates.timestamp.value.iso,
|
|
2427
2427
|
kind: e.templates.timestamp.value.kind
|
|
2428
|
-
}, null, 8, ["iso", "kind"])) :
|
|
2429
|
-
e.versionHistory?.isAvailable.value && e.versionHistory.hasTemplate.value ? (
|
|
2428
|
+
}, null, 8, ["iso", "kind"])) : w("", !0)], 2)) : w("", !0),
|
|
2429
|
+
e.versionHistory?.isAvailable.value && e.versionHistory.hasTemplate.value ? (f(), T(P(t), {
|
|
2430
2430
|
key: 1,
|
|
2431
2431
|
versions: e.versionHistory.versions.value,
|
|
2432
2432
|
"is-loading": e.versionHistory.isLoading.value,
|
|
@@ -2439,30 +2439,30 @@ var Dr = ["aria-label"], Or = {
|
|
|
2439
2439
|
"is-loading",
|
|
2440
2440
|
"is-restoring",
|
|
2441
2441
|
"previewing-id"
|
|
2442
|
-
])) :
|
|
2443
|
-
e.collaboration?.isLive.value ? (
|
|
2442
|
+
])) : w("", !0),
|
|
2443
|
+
e.collaboration?.isLive.value ? (f(), T(P(n), {
|
|
2444
2444
|
key: 2,
|
|
2445
2445
|
people: e.collaboration.people.value,
|
|
2446
2446
|
connection: e.collaboration.connection.value
|
|
2447
|
-
}, null, 8, ["people", "connection"])) :
|
|
2448
|
-
|
|
2447
|
+
}, null, 8, ["people", "connection"])) : w("", !0),
|
|
2448
|
+
c(r.$slots, "left-extras")
|
|
2449
2449
|
]),
|
|
2450
|
-
|
|
2451
|
-
|
|
2450
|
+
D("div", Ci, [
|
|
2451
|
+
z(Cn, {
|
|
2452
2452
|
viewport: e.editor.state.viewport,
|
|
2453
2453
|
onChange: e.editor.setViewport
|
|
2454
2454
|
}, null, 8, ["viewport", "onChange"]),
|
|
2455
|
-
|
|
2455
|
+
z(si, {
|
|
2456
2456
|
"dark-mode": e.editor.state.darkMode,
|
|
2457
2457
|
onChange: e.editor.setDarkMode
|
|
2458
2458
|
}, null, 8, ["dark-mode", "onChange"]),
|
|
2459
|
-
|
|
2459
|
+
z(li, {
|
|
2460
2460
|
"preview-mode": e.editor.state.previewMode,
|
|
2461
2461
|
onChange: e.editor.setPreviewMode
|
|
2462
2462
|
}, null, 8, ["preview-mode", "onChange"])
|
|
2463
2463
|
]),
|
|
2464
|
-
|
|
2465
|
-
e.templates?.isAvailable.value && e.templates.canSave.value ? (
|
|
2464
|
+
D("div", wi, [
|
|
2465
|
+
e.templates?.isAvailable.value && e.templates.canSave.value ? (f(), T(vi, {
|
|
2466
2466
|
key: 0,
|
|
2467
2467
|
status: e.templates.status.value,
|
|
2468
2468
|
"error-message": e.templates.errorMessage.value,
|
|
@@ -2471,70 +2471,70 @@ var Dr = ["aria-label"], Or = {
|
|
|
2471
2471
|
"status",
|
|
2472
2472
|
"error-message",
|
|
2473
2473
|
"is-dirty"
|
|
2474
|
-
])) :
|
|
2475
|
-
e.comments?.isAvailable.value && e.comments.hasTemplate.value ? (
|
|
2474
|
+
])) : w("", !0),
|
|
2475
|
+
e.comments?.isAvailable.value && e.comments.hasTemplate.value ? (f(), v("button", {
|
|
2476
2476
|
key: 1,
|
|
2477
2477
|
type: "button",
|
|
2478
2478
|
"data-testid": "comments-trigger",
|
|
2479
2479
|
"aria-label": e.comments.unresolvedCount.value > 0 ? `${e.core.t.comments.button} (${e.comments.unresolvedCount.value})` : e.core.t.comments.button,
|
|
2480
2480
|
"aria-expanded": e.comments.isOpen.value,
|
|
2481
|
-
class:
|
|
2482
|
-
style:
|
|
2481
|
+
class: L(P(vn)),
|
|
2482
|
+
style: x(e.comments.isOpen.value ? {
|
|
2483
2483
|
backgroundColor: "var(--tpl-primary-light)",
|
|
2484
2484
|
borderColor: "var(--tpl-primary-light)"
|
|
2485
2485
|
} : void 0),
|
|
2486
2486
|
onClick: i[2] ||= (t) => e.comments.toggle()
|
|
2487
2487
|
}, [
|
|
2488
|
-
|
|
2488
|
+
z(P(Xt), {
|
|
2489
2489
|
size: 16,
|
|
2490
2490
|
"stroke-width": 2
|
|
2491
2491
|
}),
|
|
2492
|
-
y(" " +
|
|
2493
|
-
e.comments.unresolvedCount.value > 0 && !e.comments.isOpen.value ? (
|
|
2494
|
-
], 14, Ti)) :
|
|
2495
|
-
e.ai ? (
|
|
2492
|
+
y(" " + C(e.core.t.comments.button) + " ", 1),
|
|
2493
|
+
e.comments.unresolvedCount.value > 0 && !e.comments.isOpen.value ? (f(), v("span", Ei, C(e.comments.unresolvedCount.value), 1)) : w("", !0)
|
|
2494
|
+
], 14, Ti)) : w("", !0),
|
|
2495
|
+
e.ai ? (f(), T(bi, {
|
|
2496
2496
|
key: 2,
|
|
2497
2497
|
feature: e.ai
|
|
2498
|
-
}, null, 8, ["feature"])) :
|
|
2499
|
-
|
|
2500
|
-
e.testEmail?.isAvailable.value ? (
|
|
2498
|
+
}, null, 8, ["feature"])) : w("", !0),
|
|
2499
|
+
c(r.$slots, "right-extras"),
|
|
2500
|
+
e.testEmail?.isAvailable.value ? (f(), v("button", {
|
|
2501
2501
|
key: 3,
|
|
2502
2502
|
type: "button",
|
|
2503
2503
|
"data-testid": "test-email-trigger",
|
|
2504
2504
|
"aria-label": e.core.t.testEmail.title,
|
|
2505
2505
|
title: e.core.t.testEmail.title,
|
|
2506
2506
|
disabled: e.testEmail.isSending.value,
|
|
2507
|
-
class:
|
|
2507
|
+
class: L(P(vn)),
|
|
2508
2508
|
onClick: i[3] ||= (t) => e.testEmail.open()
|
|
2509
|
-
}, [e.testEmail.isSending.value ? (
|
|
2509
|
+
}, [e.testEmail.isSending.value ? (f(), T(P(Kt), {
|
|
2510
2510
|
key: 1,
|
|
2511
2511
|
class: "tpl-spinner",
|
|
2512
2512
|
size: 16,
|
|
2513
2513
|
"stroke-width": 2
|
|
2514
|
-
})) : (
|
|
2514
|
+
})) : (f(), T(P(Yt), {
|
|
2515
2515
|
key: 0,
|
|
2516
2516
|
size: 16,
|
|
2517
2517
|
"stroke-width": 2
|
|
2518
|
-
})), y(" " +
|
|
2519
|
-
e.templates?.isAvailable.value && e.templates.canSave.value ? (
|
|
2518
|
+
})), y(" " + C(e.core.t.testEmail.button), 1)], 10, Di)) : w("", !0),
|
|
2519
|
+
e.templates?.isAvailable.value && e.templates.canSave.value ? (f(), v("button", {
|
|
2520
2520
|
key: 4,
|
|
2521
2521
|
type: "button",
|
|
2522
2522
|
"data-testid": "template-save",
|
|
2523
|
-
class:
|
|
2524
|
-
style:
|
|
2523
|
+
class: L(P(e.editor.state.isDirty && e.templates.hasTemplate.value ? bn : vn)),
|
|
2524
|
+
style: x(e.editor.state.isDirty && e.templates.hasTemplate.value ? { boxShadow: "var(--tpl-shadow-sm)" } : void 0),
|
|
2525
2525
|
disabled: e.templates.isSaving.value || !e.templates.hasTemplate.value,
|
|
2526
2526
|
title: e.templates.hasTemplate.value ? e.core.t.header.save : e.core.t.header.saveNoTemplate,
|
|
2527
2527
|
onClick: i[4] ||= (t) => e.templates.requestSave()
|
|
2528
|
-
}, [e.templates.isSaving.value ? (
|
|
2528
|
+
}, [e.templates.isSaving.value ? (f(), T(P(Kt), {
|
|
2529
2529
|
key: 1,
|
|
2530
2530
|
class: "tpl-spinner",
|
|
2531
2531
|
size: 16,
|
|
2532
2532
|
"stroke-width": 2
|
|
2533
|
-
})) : (
|
|
2533
|
+
})) : (f(), T(P(Ut), {
|
|
2534
2534
|
key: 0,
|
|
2535
2535
|
size: 16,
|
|
2536
2536
|
"stroke-width": 2
|
|
2537
|
-
})), y(" " +
|
|
2537
|
+
})), y(" " + C(e.templates.isSaving.value ? e.core.t.header.saving : e.core.t.header.save), 1)], 14, Oi)) : w("", !0)
|
|
2538
2538
|
])
|
|
2539
2539
|
]));
|
|
2540
2540
|
}
|
|
@@ -2577,254 +2577,254 @@ var Dr = ["aria-label"], Or = {
|
|
|
2577
2577
|
key: 1,
|
|
2578
2578
|
"data-testid": "merge-tag-picker-sample",
|
|
2579
2579
|
class: "tpl:line-clamp-1 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
2580
|
-
}, Ji = "tpl-merge-tag-picker-list", Yi = /* @__PURE__ */
|
|
2580
|
+
}, Ji = "tpl-merge-tag-picker-list", Yi = /* @__PURE__ */ n({
|
|
2581
2581
|
__name: "MergeTagPickerModal",
|
|
2582
|
-
setup(
|
|
2583
|
-
let
|
|
2584
|
-
function
|
|
2582
|
+
setup(t) {
|
|
2583
|
+
let n = at(ot, "MergeTagPickerModal"), { t: i, format: s } = $(), c = r(lt, null), l = r(vt, null), u = r(ft, !0), d = A(() => n.current.value !== null), p = A(() => d.value ? i.mergeTag.picker.changeTitle : i.mergeTag.picker.title);
|
|
2584
|
+
function m(e) {
|
|
2585
2585
|
return u ? e.description ? `${e.value} — ${e.description}` : e.value : e.description || void 0;
|
|
2586
2586
|
}
|
|
2587
|
-
let
|
|
2588
|
-
function
|
|
2589
|
-
return
|
|
2587
|
+
let _ = S(""), y = De(_, 200), O = S(null), k = A(() => y.value.trim().length > 0), j = S(0), M = A(() => n.tags.value.some((e) => !!e.group)), N = S(/* @__PURE__ */ new Set());
|
|
2588
|
+
function F(e) {
|
|
2589
|
+
return N.value.has(e);
|
|
2590
2590
|
}
|
|
2591
|
-
function
|
|
2592
|
-
let t = new Set(
|
|
2593
|
-
t.has(e) ? t.delete(e) : t.add(e),
|
|
2591
|
+
function R(e) {
|
|
2592
|
+
let t = new Set(N.value);
|
|
2593
|
+
t.has(e) ? t.delete(e) : t.add(e), N.value = t, j.value = 0;
|
|
2594
2594
|
}
|
|
2595
|
-
let
|
|
2596
|
-
let e =
|
|
2597
|
-
return e ?
|
|
2595
|
+
let B = A(() => {
|
|
2596
|
+
let e = y.value.trim().toLowerCase();
|
|
2597
|
+
return e ? n.tags.value.filter((t) => [
|
|
2598
2598
|
t.label,
|
|
2599
2599
|
t.value,
|
|
2600
2600
|
t.description ?? ""
|
|
2601
|
-
].join(" ").toLowerCase().includes(e)) :
|
|
2602
|
-
}),
|
|
2603
|
-
if (!
|
|
2604
|
-
let e =
|
|
2605
|
-
for (let i of
|
|
2606
|
-
let
|
|
2607
|
-
t.has(
|
|
2601
|
+
].join(" ").toLowerCase().includes(e)) : n.tags.value;
|
|
2602
|
+
}), V = A(() => {
|
|
2603
|
+
if (!M.value) return [];
|
|
2604
|
+
let e = i.mergeTag.picker.otherGroup, t = /* @__PURE__ */ new Set(), r = [];
|
|
2605
|
+
for (let i of n.tags.value) {
|
|
2606
|
+
let n = i.group ?? e;
|
|
2607
|
+
t.has(n) || (t.add(n), r.push(n));
|
|
2608
2608
|
}
|
|
2609
|
-
return
|
|
2610
|
-
}),
|
|
2611
|
-
let e =
|
|
2612
|
-
if (!
|
|
2609
|
+
return r;
|
|
2610
|
+
}), te = A(() => {
|
|
2611
|
+
let e = B.value;
|
|
2612
|
+
if (!M.value || k.value) return e.map((e, t) => ({
|
|
2613
2613
|
kind: "tag",
|
|
2614
2614
|
tag: e,
|
|
2615
2615
|
index: t
|
|
2616
2616
|
}));
|
|
2617
|
-
let t =
|
|
2617
|
+
let t = i.mergeTag.picker.otherGroup, n = /* @__PURE__ */ new Map(), r = [];
|
|
2618
2618
|
for (let i of e) {
|
|
2619
2619
|
let e = i.group ?? t;
|
|
2620
2620
|
n.has(e) || (n.set(e, []), r.push(e)), n.get(e).push(i);
|
|
2621
2621
|
}
|
|
2622
|
-
let
|
|
2622
|
+
let a = [], o = 0;
|
|
2623
2623
|
for (let e of r) {
|
|
2624
2624
|
let t = n.get(e);
|
|
2625
|
-
if (
|
|
2625
|
+
if (a.push({
|
|
2626
2626
|
kind: "header",
|
|
2627
2627
|
group: e,
|
|
2628
2628
|
count: t.length
|
|
2629
|
-
}), !
|
|
2629
|
+
}), !N.value.has(e)) for (let e of t) a.push({
|
|
2630
2630
|
kind: "tag",
|
|
2631
2631
|
tag: e,
|
|
2632
2632
|
index: o
|
|
2633
2633
|
}), o++;
|
|
2634
2634
|
}
|
|
2635
|
-
return
|
|
2636
|
-
}),
|
|
2637
|
-
function
|
|
2638
|
-
let t =
|
|
2635
|
+
return a;
|
|
2636
|
+
}), H = A(() => te.value.flatMap((e) => e.kind === "tag" ? [e.tag] : [])), U = !1;
|
|
2637
|
+
function W(e) {
|
|
2638
|
+
let t = n.current.value;
|
|
2639
2639
|
if (!t) return !1;
|
|
2640
|
-
let
|
|
2641
|
-
return
|
|
2640
|
+
let r = e.findIndex((e) => e.value === t.value);
|
|
2641
|
+
return r !== -1 && (j.value = r, !0);
|
|
2642
2642
|
}
|
|
2643
|
-
function
|
|
2644
|
-
|
|
2643
|
+
function G(e) {
|
|
2644
|
+
U = !1, j.value = e;
|
|
2645
2645
|
}
|
|
2646
|
-
h(() =>
|
|
2647
|
-
|
|
2646
|
+
h(() => n.isOpen.value, (t) => {
|
|
2647
|
+
t ? (_.value = "", j.value = 0, N.value = /* @__PURE__ */ new Set(), U = !W(H.value), e(() => {
|
|
2648
2648
|
O.value?.focus();
|
|
2649
|
-
})) :
|
|
2650
|
-
}), h(
|
|
2651
|
-
|
|
2649
|
+
})) : U = !1;
|
|
2650
|
+
}), h(H, (e) => {
|
|
2651
|
+
U && W(e) ? U = !1 : j.value >= e.length && (j.value = Math.max(0, e.length - 1));
|
|
2652
2652
|
});
|
|
2653
|
-
function
|
|
2654
|
-
|
|
2653
|
+
function K(e) {
|
|
2654
|
+
n.resolve(e);
|
|
2655
2655
|
}
|
|
2656
|
-
function
|
|
2657
|
-
|
|
2656
|
+
function q() {
|
|
2657
|
+
n.resolve(null);
|
|
2658
2658
|
}
|
|
2659
|
-
function
|
|
2660
|
-
if (
|
|
2661
|
-
|
|
2662
|
-
let t =
|
|
2663
|
-
|
|
2659
|
+
function J(e) {
|
|
2660
|
+
if (H.value.length === 0) return;
|
|
2661
|
+
U = !1;
|
|
2662
|
+
let t = j.value + e;
|
|
2663
|
+
j.value = Math.max(0, Math.min(H.value.length - 1, t)), ie();
|
|
2664
2664
|
}
|
|
2665
|
-
let
|
|
2666
|
-
function
|
|
2667
|
-
|
|
2665
|
+
let Y = S(null), ne = S({});
|
|
2666
|
+
function re(e, t) {
|
|
2667
|
+
ne.value[e] = t ?? null;
|
|
2668
2668
|
}
|
|
2669
|
-
function
|
|
2670
|
-
|
|
2671
|
-
let e =
|
|
2672
|
-
e && e.querySelector(`[data-merge-tag-index="${
|
|
2669
|
+
function ie() {
|
|
2670
|
+
e(() => {
|
|
2671
|
+
let e = Y.value;
|
|
2672
|
+
e && e.querySelector(`[data-merge-tag-index="${j.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
2673
2673
|
});
|
|
2674
2674
|
}
|
|
2675
|
-
function
|
|
2676
|
-
if (
|
|
2677
|
-
let
|
|
2678
|
-
|
|
2675
|
+
function X(t) {
|
|
2676
|
+
if (N.value.has(t)) {
|
|
2677
|
+
let e = new Set(N.value);
|
|
2678
|
+
e.delete(t), N.value = e;
|
|
2679
2679
|
}
|
|
2680
|
-
|
|
2681
|
-
let
|
|
2682
|
-
if (!
|
|
2680
|
+
e(() => {
|
|
2681
|
+
let e = Y.value;
|
|
2682
|
+
if (!e) return;
|
|
2683
2683
|
let n = 0, r = !1;
|
|
2684
|
-
for (let i of Array.from(
|
|
2685
|
-
if (i.dataset.testid === "merge-tag-picker-group-header" && i.dataset.groupName ===
|
|
2684
|
+
for (let i of Array.from(e.children)) {
|
|
2685
|
+
if (i.dataset.testid === "merge-tag-picker-group-header" && i.dataset.groupName === t) {
|
|
2686
2686
|
r = !0;
|
|
2687
2687
|
break;
|
|
2688
2688
|
}
|
|
2689
2689
|
n += i.offsetHeight;
|
|
2690
2690
|
}
|
|
2691
|
-
r &&
|
|
2691
|
+
r && e.scrollTo({
|
|
2692
2692
|
top: n,
|
|
2693
2693
|
behavior: "smooth"
|
|
2694
2694
|
});
|
|
2695
2695
|
});
|
|
2696
2696
|
}
|
|
2697
2697
|
function Z(e) {
|
|
2698
|
-
if (e.key === "ArrowDown") e.preventDefault(),
|
|
2699
|
-
else if (e.key === "ArrowUp") e.preventDefault(),
|
|
2698
|
+
if (e.key === "ArrowDown") e.preventDefault(), J(1);
|
|
2699
|
+
else if (e.key === "ArrowUp") e.preventDefault(), J(-1);
|
|
2700
2700
|
else if (e.key === "Enter") {
|
|
2701
2701
|
e.preventDefault();
|
|
2702
|
-
let t =
|
|
2703
|
-
t &&
|
|
2702
|
+
let t = H.value[j.value];
|
|
2703
|
+
t && K(t);
|
|
2704
2704
|
}
|
|
2705
2705
|
}
|
|
2706
2706
|
function ae() {
|
|
2707
|
-
if (
|
|
2707
|
+
if (H.value.length !== 0) return `${Ji}-opt-${j.value}`;
|
|
2708
2708
|
}
|
|
2709
2709
|
function oe(e) {
|
|
2710
2710
|
return `${Ji}-opt-${e}`;
|
|
2711
2711
|
}
|
|
2712
|
-
let Q =
|
|
2713
|
-
return (e, t) => (
|
|
2714
|
-
visible:
|
|
2715
|
-
onClose:
|
|
2712
|
+
let Q = A(() => n.tags.value.length === 0), se = A(() => !Q.value && B.value.length === 0), ce = A(() => M.value && V.value.length > 1 && !k.value);
|
|
2713
|
+
return (e, t) => (f(), T(En, {
|
|
2714
|
+
visible: P(n).isOpen.value,
|
|
2715
|
+
onClose: q,
|
|
2716
2716
|
onKeydown: Z
|
|
2717
2717
|
}, {
|
|
2718
|
-
default:
|
|
2718
|
+
default: g(() => [D("div", {
|
|
2719
2719
|
role: "dialog",
|
|
2720
2720
|
"aria-modal": "true",
|
|
2721
2721
|
"aria-labelledby": `${Ji}-title`,
|
|
2722
|
-
"data-tpl-theme":
|
|
2722
|
+
"data-tpl-theme": P(l),
|
|
2723
2723
|
"data-testid": "merge-tag-picker-modal",
|
|
2724
2724
|
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)]",
|
|
2725
|
-
style:
|
|
2725
|
+
style: x(P(c))
|
|
2726
2726
|
}, [
|
|
2727
|
-
|
|
2727
|
+
D("header", ji, [D("h2", {
|
|
2728
2728
|
id: `${Ji}-title`,
|
|
2729
2729
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
2730
|
-
},
|
|
2730
|
+
}, C(p.value), 9, Mi), D("button", {
|
|
2731
2731
|
type: "button",
|
|
2732
2732
|
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)]",
|
|
2733
|
-
"aria-label":
|
|
2733
|
+
"aria-label": P(i).mergeTag.picker.close,
|
|
2734
2734
|
"data-testid": "merge-tag-picker-close",
|
|
2735
|
-
onClick:
|
|
2736
|
-
}, [
|
|
2735
|
+
onClick: q
|
|
2736
|
+
}, [z(P(Qt), {
|
|
2737
2737
|
size: 16,
|
|
2738
2738
|
"stroke-width": 2
|
|
2739
2739
|
})], 8, Ni)]),
|
|
2740
|
-
|
|
2740
|
+
D("div", Pi, [z(P(Vt), {
|
|
2741
2741
|
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)]",
|
|
2742
2742
|
size: 14,
|
|
2743
2743
|
"stroke-width": 2
|
|
2744
|
-
}),
|
|
2744
|
+
}), a(D("input", {
|
|
2745
2745
|
id: `${Ji}-search`,
|
|
2746
2746
|
ref_key: "searchInputRef",
|
|
2747
2747
|
ref: O,
|
|
2748
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
2748
|
+
"onUpdate:modelValue": t[0] ||= (e) => _.value = e,
|
|
2749
2749
|
type: "text",
|
|
2750
2750
|
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)]",
|
|
2751
|
-
placeholder:
|
|
2752
|
-
"aria-label":
|
|
2751
|
+
placeholder: P(i).mergeTag.picker.searchPlaceholder,
|
|
2752
|
+
"aria-label": P(i).mergeTag.picker.searchAriaLabel,
|
|
2753
2753
|
"aria-controls": Ji,
|
|
2754
2754
|
"aria-activedescendant": ae(),
|
|
2755
2755
|
"data-testid": "merge-tag-picker-search",
|
|
2756
|
-
onKeydown: t[1] ||= b(
|
|
2757
|
-
}, null, 40, Fi), [[
|
|
2758
|
-
ce.value ? (
|
|
2756
|
+
onKeydown: t[1] ||= b(E(() => {}, ["prevent"]), ["enter"])
|
|
2757
|
+
}, null, 40, Fi), [[ee, _.value]])]),
|
|
2758
|
+
ce.value ? (f(), v("div", Ii, [(f(!0), v(I, null, o(V.value, (e) => (f(), v("button", {
|
|
2759
2759
|
key: e,
|
|
2760
2760
|
type: "button",
|
|
2761
2761
|
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)]",
|
|
2762
2762
|
"data-testid": "merge-tag-picker-group-pill",
|
|
2763
2763
|
"data-group-name": e,
|
|
2764
|
-
onClick: (t) =>
|
|
2765
|
-
},
|
|
2766
|
-
|
|
2764
|
+
onClick: (t) => X(e)
|
|
2765
|
+
}, C(e), 9, Li))), 128))])) : w("", !0),
|
|
2766
|
+
D("div", {
|
|
2767
2767
|
id: Ji,
|
|
2768
2768
|
ref_key: "listRef",
|
|
2769
|
-
ref:
|
|
2769
|
+
ref: Y,
|
|
2770
2770
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
2771
2771
|
role: "listbox",
|
|
2772
2772
|
"aria-label": p.value,
|
|
2773
2773
|
"data-testid": "merge-tag-picker-list"
|
|
2774
|
-
}, [Q.value ? (
|
|
2774
|
+
}, [Q.value ? (f(), v("div", zi, C(P(i).mergeTag.picker.empty), 1)) : se.value ? (f(), v("div", Bi, C(P(i).mergeTag.picker.noResults), 1)) : (f(!0), v(I, { key: 2 }, o(te.value, (e, t) => (f(), v(I, { key: t }, [e.kind === "header" ? (f(), v("button", {
|
|
2775
2775
|
key: 0,
|
|
2776
2776
|
ref_for: !0,
|
|
2777
|
-
ref: (t) =>
|
|
2777
|
+
ref: (t) => re(e.group, t),
|
|
2778
2778
|
type: "button",
|
|
2779
|
-
"aria-expanded": !
|
|
2779
|
+
"aria-expanded": !F(e.group),
|
|
2780
2780
|
"aria-controls": Ji,
|
|
2781
2781
|
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)]",
|
|
2782
2782
|
"data-testid": "merge-tag-picker-group-header",
|
|
2783
2783
|
"data-group-name": e.group,
|
|
2784
|
-
"data-group-collapsed":
|
|
2785
|
-
onClick: (t) =>
|
|
2784
|
+
"data-group-collapsed": F(e.group) ? "true" : "false",
|
|
2785
|
+
onClick: (t) => R(e.group)
|
|
2786
2786
|
}, [
|
|
2787
|
-
|
|
2787
|
+
z(P(tn), {
|
|
2788
2788
|
size: 12,
|
|
2789
2789
|
"stroke-width": 2,
|
|
2790
|
-
class:
|
|
2790
|
+
class: L(["tpl:transition-transform", F(e.group) ? "tpl:-rotate-90" : ""])
|
|
2791
2791
|
}, null, 8, ["class"]),
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
], 8, Vi)) : (
|
|
2792
|
+
D("span", null, C(e.group), 1),
|
|
2793
|
+
D("span", Hi, " (" + C(P(s)(P(i).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
|
|
2794
|
+
], 8, Vi)) : (f(), v("button", {
|
|
2795
2795
|
key: 1,
|
|
2796
2796
|
id: oe(e.index),
|
|
2797
2797
|
type: "button",
|
|
2798
2798
|
role: "option",
|
|
2799
|
-
"aria-selected": e.index ===
|
|
2800
|
-
"data-selected": e.index ===
|
|
2799
|
+
"aria-selected": e.index === j.value,
|
|
2800
|
+
"data-selected": e.index === j.value ? "true" : "false",
|
|
2801
2801
|
"data-merge-tag-index": e.index,
|
|
2802
2802
|
"data-merge-tag-value": e.tag.value,
|
|
2803
|
-
"aria-current": e.tag.value ===
|
|
2804
|
-
title:
|
|
2805
|
-
class:
|
|
2803
|
+
"aria-current": e.tag.value === P(n).current.value?.value ? "true" : void 0,
|
|
2804
|
+
title: m(e.tag),
|
|
2805
|
+
class: L(["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 === j.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)]"]),
|
|
2806
2806
|
"data-testid": "merge-tag-picker-item",
|
|
2807
|
-
onMousemove: (t) =>
|
|
2808
|
-
onClick: (t) =>
|
|
2807
|
+
onMousemove: (t) => G(e.index),
|
|
2808
|
+
onClick: (t) => K(e.tag)
|
|
2809
2809
|
}, [
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
e.tag.description ? (
|
|
2813
|
-
e.tag.sample === void 0 ?
|
|
2810
|
+
D("span", Wi, C(e.tag.label), 1),
|
|
2811
|
+
D("span", Gi, C(e.tag.value), 1),
|
|
2812
|
+
e.tag.description ? (f(), v("span", Ki, C(e.tag.description), 1)) : w("", !0),
|
|
2813
|
+
e.tag.sample === void 0 ? w("", !0) : (f(), v("span", qi, C(P(s)(P(i).mergeTag.picker.sample, { sample: e.tag.sample })), 1))
|
|
2814
2814
|
], 42, Ui))], 64))), 128))], 8, Ri)
|
|
2815
2815
|
], 12, Ai)]),
|
|
2816
2816
|
_: 1
|
|
2817
2817
|
}, 8, ["visible"]));
|
|
2818
2818
|
}
|
|
2819
|
-
}), Xi = ["data-logic-keyword"], Zi = /* @__PURE__ */
|
|
2819
|
+
}), Xi = ["data-logic-keyword"], Zi = /* @__PURE__ */ n({
|
|
2820
2820
|
__name: "LogicTagBadge",
|
|
2821
2821
|
props: {
|
|
2822
2822
|
value: {},
|
|
2823
2823
|
syntax: {}
|
|
2824
2824
|
},
|
|
2825
2825
|
setup(e) {
|
|
2826
|
-
let t = e, n =
|
|
2827
|
-
return (e, t) => n.value ? (
|
|
2826
|
+
let t = e, n = A(() => de(t.value, t.syntax)), r = A(() => Q(t.value, t.syntax));
|
|
2827
|
+
return (e, t) => n.value ? (f(), v("span", {
|
|
2828
2828
|
key: 0,
|
|
2829
2829
|
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",
|
|
2830
2830
|
style: {
|
|
@@ -2833,7 +2833,7 @@ var Dr = ["aria-label"], Or = {
|
|
|
2833
2833
|
},
|
|
2834
2834
|
"data-testid": "merge-tag-logic-badge",
|
|
2835
2835
|
"data-logic-keyword": r.value
|
|
2836
|
-
},
|
|
2836
|
+
}, C(r.value), 9, Xi)) : w("", !0);
|
|
2837
2837
|
}
|
|
2838
2838
|
}), Qi = ["aria-labelledby", "data-tpl-theme"], $i = { 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" }, ea = ["id"], ta = ["aria-label"], na = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, ra = [
|
|
2839
2839
|
"id",
|
|
@@ -2865,24 +2865,24 @@ var Dr = ["aria-label"], Or = {
|
|
|
2865
2865
|
}, pa = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, ma = {
|
|
2866
2866
|
key: 0,
|
|
2867
2867
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
2868
|
-
}, ha = "tpl-logic-picker-list", ga = /* @__PURE__ */
|
|
2868
|
+
}, ha = "tpl-logic-picker-list", ga = /* @__PURE__ */ n({
|
|
2869
2869
|
__name: "LogicTagPickerModal",
|
|
2870
|
-
setup(
|
|
2871
|
-
let
|
|
2872
|
-
function
|
|
2873
|
-
let t =
|
|
2870
|
+
setup(t) {
|
|
2871
|
+
let n = at(st, "LogicTagPickerModal"), { t: i } = $(), s = r(pt, le.liquid), c = r(lt, null), l = r(vt, null), u = S(""), d = De(u, 200), p = S(null), m = A(() => d.value.trim().length > 0), _ = S(0);
|
|
2872
|
+
function y(e) {
|
|
2873
|
+
let t = d.value.trim().toLowerCase();
|
|
2874
2874
|
return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
|
|
2875
2875
|
}
|
|
2876
|
-
let O =
|
|
2876
|
+
let O = A(() => n.tags.value.filter((e) => y([
|
|
2877
2877
|
e.label,
|
|
2878
2878
|
e.value,
|
|
2879
2879
|
e.description
|
|
2880
|
-
]))),
|
|
2880
|
+
]))), k = A(() => n.pairs.value.filter((e) => y([
|
|
2881
2881
|
e.label,
|
|
2882
2882
|
e.before,
|
|
2883
2883
|
e.after,
|
|
2884
2884
|
e.description
|
|
2885
|
-
]))),
|
|
2885
|
+
]))), j = A(() => [...k.value.map((e) => ({
|
|
2886
2886
|
kind: "pair",
|
|
2887
2887
|
pair: e,
|
|
2888
2888
|
group: e.group
|
|
@@ -2890,16 +2890,16 @@ var Dr = ["aria-label"], Or = {
|
|
|
2890
2890
|
kind: "tag",
|
|
2891
2891
|
tag: e,
|
|
2892
2892
|
group: e.group
|
|
2893
|
-
}))]),
|
|
2894
|
-
function
|
|
2895
|
-
let t =
|
|
2893
|
+
}))]), M = A(() => n.tags.value.some((e) => !!e.group) || n.pairs.value.some((e) => !!e.group));
|
|
2894
|
+
function N(e) {
|
|
2895
|
+
let t = i.logicTag.picker.otherGroup, n = /* @__PURE__ */ new Map(), r = [];
|
|
2896
2896
|
for (let i of e) {
|
|
2897
2897
|
let e = i.group ?? t;
|
|
2898
2898
|
n.has(e) || (n.set(e, []), r.push(e)), n.get(e).push(i);
|
|
2899
2899
|
}
|
|
2900
2900
|
return r.map((e) => [e, n.get(e)]);
|
|
2901
2901
|
}
|
|
2902
|
-
let
|
|
2902
|
+
let F = A(() => {
|
|
2903
2903
|
let e = [], t = [], n = 0, r = (r) => {
|
|
2904
2904
|
r.kind === "tag" ? (e.push({
|
|
2905
2905
|
kind: "tag",
|
|
@@ -2910,9 +2910,9 @@ var Dr = ["aria-label"], Or = {
|
|
|
2910
2910
|
pair: r.pair,
|
|
2911
2911
|
index: n
|
|
2912
2912
|
}), t.push(r.pair)), n++;
|
|
2913
|
-
}, i =
|
|
2914
|
-
if (
|
|
2915
|
-
else for (let [t, n] of
|
|
2913
|
+
}, i = j.value;
|
|
2914
|
+
if (m.value || !M.value) for (let e of i) r(e);
|
|
2915
|
+
else for (let [t, n] of N(i)) {
|
|
2916
2916
|
e.push({
|
|
2917
2917
|
kind: "header",
|
|
2918
2918
|
label: t
|
|
@@ -2923,127 +2923,127 @@ var Dr = ["aria-label"], Or = {
|
|
|
2923
2923
|
rows: e,
|
|
2924
2924
|
items: t
|
|
2925
2925
|
};
|
|
2926
|
-
}),
|
|
2927
|
-
h(() =>
|
|
2928
|
-
|
|
2929
|
-
}), h(
|
|
2930
|
-
|
|
2926
|
+
}), R = A(() => F.value.items), B = A(() => n.tags.value.length === 0 && n.pairs.value.length === 0), V = A(() => !B.value && R.value.length === 0);
|
|
2927
|
+
h(() => n.isOpen.value, (t) => {
|
|
2928
|
+
t && (u.value = "", _.value = 0, e(() => p.value?.focus()));
|
|
2929
|
+
}), h(R, (e) => {
|
|
2930
|
+
_.value >= e.length && (_.value = Math.max(0, e.length - 1));
|
|
2931
2931
|
});
|
|
2932
|
-
let
|
|
2933
|
-
function
|
|
2934
|
-
|
|
2932
|
+
let te = S(null);
|
|
2933
|
+
function H(e) {
|
|
2934
|
+
n.resolve(e);
|
|
2935
2935
|
}
|
|
2936
|
-
function
|
|
2937
|
-
|
|
2936
|
+
function U() {
|
|
2937
|
+
n.resolve(null);
|
|
2938
2938
|
}
|
|
2939
|
-
function
|
|
2940
|
-
|
|
2941
|
-
|
|
2939
|
+
function W(t) {
|
|
2940
|
+
R.value.length !== 0 && (_.value = Math.max(0, Math.min(R.value.length - 1, _.value + t)), e(() => {
|
|
2941
|
+
te.value?.querySelector(`[data-logic-index="${_.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
2942
2942
|
}));
|
|
2943
2943
|
}
|
|
2944
|
-
function
|
|
2945
|
-
if (e.key === "ArrowDown") e.preventDefault(),
|
|
2946
|
-
else if (e.key === "ArrowUp") e.preventDefault(),
|
|
2944
|
+
function G(e) {
|
|
2945
|
+
if (e.key === "ArrowDown") e.preventDefault(), W(1);
|
|
2946
|
+
else if (e.key === "ArrowUp") e.preventDefault(), W(-1);
|
|
2947
2947
|
else if (e.key === "Enter") {
|
|
2948
2948
|
e.preventDefault();
|
|
2949
|
-
let t =
|
|
2950
|
-
t &&
|
|
2949
|
+
let t = R.value[_.value];
|
|
2950
|
+
t && H(t);
|
|
2951
2951
|
}
|
|
2952
2952
|
}
|
|
2953
|
-
function
|
|
2953
|
+
function K(e) {
|
|
2954
2954
|
return `${ha}-opt-${e}`;
|
|
2955
2955
|
}
|
|
2956
|
-
function
|
|
2957
|
-
return
|
|
2956
|
+
function q() {
|
|
2957
|
+
return R.value.length === 0 ? void 0 : `${ha}-opt-${_.value}`;
|
|
2958
2958
|
}
|
|
2959
|
-
return (e, t) => (
|
|
2960
|
-
visible:
|
|
2961
|
-
onClose:
|
|
2962
|
-
onKeydown:
|
|
2959
|
+
return (e, t) => (f(), T(En, {
|
|
2960
|
+
visible: P(n).isOpen.value,
|
|
2961
|
+
onClose: U,
|
|
2962
|
+
onKeydown: G
|
|
2963
2963
|
}, {
|
|
2964
|
-
default:
|
|
2964
|
+
default: g(() => [D("div", {
|
|
2965
2965
|
role: "dialog",
|
|
2966
2966
|
"aria-modal": "true",
|
|
2967
2967
|
"aria-labelledby": `${ha}-title`,
|
|
2968
|
-
"data-tpl-theme":
|
|
2968
|
+
"data-tpl-theme": P(l),
|
|
2969
2969
|
"data-testid": "logic-picker-modal",
|
|
2970
2970
|
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)]",
|
|
2971
|
-
style:
|
|
2971
|
+
style: x(P(c))
|
|
2972
2972
|
}, [
|
|
2973
|
-
|
|
2973
|
+
D("header", $i, [D("h2", {
|
|
2974
2974
|
id: `${ha}-title`,
|
|
2975
2975
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
2976
|
-
},
|
|
2976
|
+
}, C(P(i).logicTag.picker.title), 9, ea), D("button", {
|
|
2977
2977
|
type: "button",
|
|
2978
2978
|
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)]",
|
|
2979
|
-
"aria-label":
|
|
2979
|
+
"aria-label": P(i).logicTag.picker.close,
|
|
2980
2980
|
"data-testid": "logic-picker-close",
|
|
2981
|
-
onClick:
|
|
2982
|
-
}, [
|
|
2981
|
+
onClick: U
|
|
2982
|
+
}, [z(P(Qt), {
|
|
2983
2983
|
size: 16,
|
|
2984
2984
|
"stroke-width": 2
|
|
2985
2985
|
})], 8, ta)]),
|
|
2986
|
-
|
|
2986
|
+
D("div", na, [z(P(Vt), {
|
|
2987
2987
|
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)]",
|
|
2988
2988
|
size: 14,
|
|
2989
2989
|
"stroke-width": 2
|
|
2990
|
-
}),
|
|
2990
|
+
}), a(D("input", {
|
|
2991
2991
|
id: `${ha}-search`,
|
|
2992
2992
|
ref_key: "searchInputRef",
|
|
2993
2993
|
ref: p,
|
|
2994
2994
|
"onUpdate:modelValue": t[0] ||= (e) => u.value = e,
|
|
2995
2995
|
type: "text",
|
|
2996
2996
|
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)]",
|
|
2997
|
-
placeholder:
|
|
2998
|
-
"aria-label":
|
|
2997
|
+
placeholder: P(i).logicTag.picker.searchPlaceholder,
|
|
2998
|
+
"aria-label": P(i).logicTag.picker.searchAriaLabel,
|
|
2999
2999
|
"aria-controls": ha,
|
|
3000
|
-
"aria-activedescendant":
|
|
3000
|
+
"aria-activedescendant": q(),
|
|
3001
3001
|
"data-testid": "logic-picker-search",
|
|
3002
|
-
onKeydown: t[1] ||= b(
|
|
3003
|
-
}, null, 40, ra), [[
|
|
3004
|
-
|
|
3002
|
+
onKeydown: t[1] ||= b(E(() => {}, ["prevent"]), ["enter"])
|
|
3003
|
+
}, null, 40, ra), [[ee, u.value]])]),
|
|
3004
|
+
D("div", {
|
|
3005
3005
|
id: ha,
|
|
3006
3006
|
ref_key: "listRef",
|
|
3007
|
-
ref:
|
|
3007
|
+
ref: te,
|
|
3008
3008
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
3009
3009
|
role: "listbox",
|
|
3010
|
-
"aria-label":
|
|
3010
|
+
"aria-label": P(i).logicTag.picker.title,
|
|
3011
3011
|
"data-testid": "logic-picker-list"
|
|
3012
|
-
}, [
|
|
3012
|
+
}, [B.value ? (f(), v("div", aa, C(P(i).logicTag.picker.empty), 1)) : V.value ? (f(), v("div", oa, C(P(i).logicTag.picker.noResults), 1)) : (f(!0), v(I, { key: 2 }, o(F.value.rows, (e, n) => (f(), v(I, { key: n }, [e.kind === "header" ? (f(), v("div", {
|
|
3013
3013
|
key: 0,
|
|
3014
3014
|
class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
|
|
3015
3015
|
"data-testid": "logic-picker-header",
|
|
3016
3016
|
"data-group-name": e.label
|
|
3017
|
-
},
|
|
3017
|
+
}, C(e.label), 9, sa)) : (f(), v("button", {
|
|
3018
3018
|
key: 1,
|
|
3019
|
-
id:
|
|
3019
|
+
id: K(e.index),
|
|
3020
3020
|
type: "button",
|
|
3021
3021
|
role: "option",
|
|
3022
|
-
"aria-selected": e.index ===
|
|
3023
|
-
"data-selected": e.index ===
|
|
3022
|
+
"aria-selected": e.index === _.value,
|
|
3023
|
+
"data-selected": e.index === _.value ? "true" : "false",
|
|
3024
3024
|
"data-logic-index": e.index,
|
|
3025
3025
|
"data-logic-kind": e.kind,
|
|
3026
|
-
class:
|
|
3026
|
+
class: L(["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 === _.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)]"]),
|
|
3027
3027
|
"data-testid": "logic-picker-item",
|
|
3028
|
-
onMousemove: (t) =>
|
|
3029
|
-
onClick: (t) =>
|
|
3028
|
+
onMousemove: (t) => _.value = e.index,
|
|
3029
|
+
onClick: (t) => H(e.kind === "tag" ? e.tag : e.pair)
|
|
3030
3030
|
}, [
|
|
3031
|
-
|
|
3031
|
+
D("span", la, [D("span", ua, C(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (f(), v("span", da, [z(Zi, {
|
|
3032
3032
|
value: e.tag.value,
|
|
3033
|
-
syntax:
|
|
3034
|
-
}, null, 8, ["value", "syntax"])])) : (
|
|
3035
|
-
|
|
3033
|
+
syntax: P(s)
|
|
3034
|
+
}, null, 8, ["value", "syntax"])])) : (f(), v("span", fa, [
|
|
3035
|
+
z(Zi, {
|
|
3036
3036
|
value: e.pair.before,
|
|
3037
|
-
syntax:
|
|
3037
|
+
syntax: P(s)
|
|
3038
3038
|
}, null, 8, ["value", "syntax"]),
|
|
3039
|
-
t[2] ||=
|
|
3040
|
-
|
|
3039
|
+
t[2] ||= D("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
|
|
3040
|
+
z(Zi, {
|
|
3041
3041
|
value: e.pair.after,
|
|
3042
|
-
syntax:
|
|
3042
|
+
syntax: P(s)
|
|
3043
3043
|
}, null, 8, ["value", "syntax"])
|
|
3044
3044
|
]))]),
|
|
3045
|
-
|
|
3046
|
-
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (
|
|
3045
|
+
D("span", pa, C(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
|
|
3046
|
+
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (f(), v("span", ma, C(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : w("", !0)
|
|
3047
3047
|
], 42, ca))], 64))), 128))], 8, ia)
|
|
3048
3048
|
], 12, Qi)]),
|
|
3049
3049
|
_: 1
|
|
@@ -3053,7 +3053,7 @@ var Dr = ["aria-label"], Or = {
|
|
|
3053
3053
|
key: 0,
|
|
3054
3054
|
"data-testid": "merge-tag-mode-toggle-anchor",
|
|
3055
3055
|
class: "tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-[var(--tpl-shadow-md)]"
|
|
3056
|
-
}, Sa = { class: "tpl-main tpl:flex tpl:py-8" }, Ca = ["aria-label"], wa = /*#__PURE__*/ nn(/* @__PURE__ */
|
|
3056
|
+
}, Sa = { class: "tpl-main tpl:flex tpl:py-8" }, Ca = ["aria-label"], wa = /*#__PURE__*/ nn(/* @__PURE__ */ n({
|
|
3057
3057
|
__name: "Editor",
|
|
3058
3058
|
props: {
|
|
3059
3059
|
config: {},
|
|
@@ -3066,141 +3066,141 @@ var Dr = ["aria-label"], Or = {
|
|
|
3066
3066
|
canRenderHtml: { type: Function },
|
|
3067
3067
|
usesLocalRenderer: { type: Function }
|
|
3068
3068
|
},
|
|
3069
|
-
setup(
|
|
3070
|
-
let
|
|
3071
|
-
|
|
3072
|
-
renderHtml: () =>
|
|
3073
|
-
canRenderHtml: () =>
|
|
3074
|
-
cloud: !!
|
|
3075
|
-
options:
|
|
3069
|
+
setup(e, { expose: t }) {
|
|
3070
|
+
let n = e;
|
|
3071
|
+
i(ct, {
|
|
3072
|
+
renderHtml: () => n.renderHtml?.() ?? Promise.reject(/* @__PURE__ */ Error("HTML rendering is unavailable")),
|
|
3073
|
+
canRenderHtml: () => n.canRenderHtml?.() ?? !1,
|
|
3074
|
+
cloud: !!n.cloud,
|
|
3075
|
+
options: n.config.lint ?? {}
|
|
3076
3076
|
});
|
|
3077
|
-
let
|
|
3077
|
+
let r = {
|
|
3078
3078
|
get tags() {
|
|
3079
3079
|
return Z.mergeTags.value;
|
|
3080
3080
|
},
|
|
3081
3081
|
get syntax() {
|
|
3082
3082
|
return Z.mergeTagSyntax;
|
|
3083
3083
|
}
|
|
3084
|
-
}, o =
|
|
3085
|
-
|
|
3086
|
-
let s =
|
|
3087
|
-
provider:
|
|
3084
|
+
}, o = n.config.templates ? sn(n.config.templates, r) : void 0;
|
|
3085
|
+
n.config.collaboration && !o && jt.warn("config.collaboration needs config.templates: collaboration runs on a loaded template, and only a templates provider loads one. Collaboration is off.");
|
|
3086
|
+
let s = n.config.collaboration && o ? Pn({
|
|
3087
|
+
provider: n.config.collaboration,
|
|
3088
3088
|
loadTemplate: (e) => o.load(e),
|
|
3089
|
-
user:
|
|
3090
|
-
mergeTags:
|
|
3091
|
-
onRemoteChange:
|
|
3092
|
-
onError:
|
|
3093
|
-
}) : null,
|
|
3094
|
-
let e =
|
|
3089
|
+
user: n.config.user,
|
|
3090
|
+
mergeTags: r,
|
|
3091
|
+
onRemoteChange: n.config.onRemoteChange,
|
|
3092
|
+
onError: n.config.onError
|
|
3093
|
+
}) : null, c = o && s ? dr(o, s.core, () => {
|
|
3094
|
+
let e = d.state.template;
|
|
3095
3095
|
return e ? {
|
|
3096
|
-
...
|
|
3097
|
-
content:
|
|
3096
|
+
...M(e),
|
|
3097
|
+
content: Y(M(d.content.value))
|
|
3098
3098
|
} : null;
|
|
3099
|
-
}) : o,
|
|
3100
|
-
content:
|
|
3101
|
-
defaultFontFamily:
|
|
3102
|
-
templateDefaults: kn(
|
|
3103
|
-
templates:
|
|
3104
|
-
onError:
|
|
3099
|
+
}) : o, d = Te({
|
|
3100
|
+
content: n.config.content,
|
|
3101
|
+
defaultFontFamily: n.config.fonts?.defaultFont,
|
|
3102
|
+
templateDefaults: kn(n.config),
|
|
3103
|
+
templates: c,
|
|
3104
|
+
onError: n.config.onError,
|
|
3105
3105
|
lockedBlocks: s?.locks
|
|
3106
3106
|
});
|
|
3107
|
-
s?.attach(
|
|
3108
|
-
let
|
|
3109
|
-
provider:
|
|
3110
|
-
editor:
|
|
3111
|
-
guardUnsavedChanges:
|
|
3112
|
-
getSaveGate:
|
|
3107
|
+
s?.attach(d);
|
|
3108
|
+
let m = n.cloud ? n.cloud.attach({ editor: d }) : null, _ = c ? er({
|
|
3109
|
+
provider: c,
|
|
3110
|
+
editor: d,
|
|
3111
|
+
guardUnsavedChanges: n.config.templates?.unsavedChangesGuard,
|
|
3112
|
+
getSaveGate: n.cloud ? () => n.cloud.getSaveGate() : void 0
|
|
3113
3113
|
}) : null;
|
|
3114
|
-
|
|
3115
|
-
let
|
|
3116
|
-
provider:
|
|
3117
|
-
editor:
|
|
3118
|
-
onError:
|
|
3119
|
-
isAvailable:
|
|
3120
|
-
}) : null,
|
|
3121
|
-
provider:
|
|
3122
|
-
onRequestMedia:
|
|
3123
|
-
getTemplateId: () =>
|
|
3124
|
-
onError:
|
|
3125
|
-
}) : null,
|
|
3126
|
-
provider:
|
|
3127
|
-
getContent: () =>
|
|
3128
|
-
renderMjml:
|
|
3129
|
-
usesLocalRenderer:
|
|
3130
|
-
onError:
|
|
3131
|
-
isAvailable:
|
|
3132
|
-
}) : null,
|
|
3133
|
-
provider:
|
|
3134
|
-
editor:
|
|
3135
|
-
user:
|
|
3136
|
-
isOpen:
|
|
3137
|
-
onError:
|
|
3138
|
-
isAvailable:
|
|
3139
|
-
isBlockSaved:
|
|
3140
|
-
}) : null,
|
|
3141
|
-
provider:
|
|
3142
|
-
editor:
|
|
3114
|
+
n.config.onDirtyChange && h(() => d.state.isDirty, (e) => n.config.onDirtyChange(e));
|
|
3115
|
+
let b = S(null), k = n.config.savedBlocks ? Qn({
|
|
3116
|
+
provider: n.config.savedBlocks,
|
|
3117
|
+
editor: d,
|
|
3118
|
+
onError: n.config.onError,
|
|
3119
|
+
isAvailable: n.cloud ? () => n.cloud.isSavedBlocksAvailable() : void 0
|
|
3120
|
+
}) : null, ee = p(() => import("./chunks/SavedBlocksPanels-C6--Bc81.js")), j = n.config.media || n.config.onRequestMedia ? Xn({
|
|
3121
|
+
provider: n.config.media,
|
|
3122
|
+
onRequestMedia: n.config.onRequestMedia,
|
|
3123
|
+
getTemplateId: () => d.state.template?.id,
|
|
3124
|
+
onError: n.config.onError
|
|
3125
|
+
}) : null, F = p(() => import("./chunks/MediaPanels-BIdcW_1f.js")), I = n.config.testEmail ? ar({
|
|
3126
|
+
provider: n.config.testEmail,
|
|
3127
|
+
getContent: () => d.content.value,
|
|
3128
|
+
renderMjml: n.renderMjml,
|
|
3129
|
+
usesLocalRenderer: n.usesLocalRenderer,
|
|
3130
|
+
onError: n.config.onError,
|
|
3131
|
+
isAvailable: n.cloud ? () => n.cloud.isTestEmailAvailable() : void 0
|
|
3132
|
+
}) : null, B = p(() => import("./chunks/TestEmailPanel-CcUpEpAn.js")), V = n.config.comments ? Fn({
|
|
3133
|
+
provider: n.config.comments,
|
|
3134
|
+
editor: d,
|
|
3135
|
+
user: n.config.user,
|
|
3136
|
+
isOpen: m?.panelState.commentsOpen,
|
|
3137
|
+
onError: n.config.onError,
|
|
3138
|
+
isAvailable: n.cloud ? () => n.cloud.isCommentsAvailable() : void 0,
|
|
3139
|
+
isBlockSaved: n.cloud ? (e) => n.cloud.isBlockSaved(e) : void 0
|
|
3140
|
+
}) : null, te = p(() => import("./chunks/CommentsPanel-DoJnKLXI.js")), H = p(() => import("./chunks/AiPanels-0wBarZSH.js")), U = n.config.ai ? Un({
|
|
3141
|
+
provider: n.config.ai,
|
|
3142
|
+
editor: d,
|
|
3143
3143
|
collaboration: s,
|
|
3144
3144
|
history: () => Z.history,
|
|
3145
|
-
reload:
|
|
3146
|
-
altMaxLength: () => pn(cr(
|
|
3145
|
+
reload: _ ? (e, t) => _.load(e, t) : null,
|
|
3146
|
+
altMaxLength: () => pn(cr(n.config)),
|
|
3147
3147
|
mergeTags: () => qn(Z.mergeTags.value, Z.mergeTagSyntax),
|
|
3148
|
-
normalize: (e, t) => an(e, t,
|
|
3149
|
-
commentsOpen:
|
|
3150
|
-
onError:
|
|
3148
|
+
normalize: (e, t) => an(e, t, r),
|
|
3149
|
+
commentsOpen: V?.isOpen ?? null,
|
|
3150
|
+
onError: n.config.onError
|
|
3151
3151
|
}) : null;
|
|
3152
|
-
|
|
3153
|
-
let
|
|
3154
|
-
|
|
3155
|
-
let
|
|
3152
|
+
U && i(Ot, U);
|
|
3153
|
+
let W = p(() => import("./chunks/CollaborationNotices-Bsf1rGW9.js")), G = p(() => import("./chunks/CloudPanels-JMWIoVWh.js")), K = p(() => import("./chunks/CloudHeaderExtras-BMNK_F9p.js")), J = p(() => import("./chunks/VersionHistoryPanels-C6SOVoiT.js")), ne = sr(n.config.templates?.autoSave, !1), re = ne && _ !== null;
|
|
3154
|
+
ne && _ !== null && !_.canSave.value && jt.warn("config.templates.autoSave is on but this provider's save is false — there is nothing to persist to. Give it a real save function, or use `onChange` to persist the content yourself."), n.config.changeDebounce !== void 0 && _ !== null && n.config.templates?.autoSave === void 0 && !n.config.onChange && jt.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.");
|
|
3155
|
+
let ie = n.config.onChange || re ? {
|
|
3156
3156
|
onChange: () => {
|
|
3157
|
-
|
|
3157
|
+
n.config.onChange?.(JSON.parse(JSON.stringify(d.state.content))), re && _.requestAutoSave();
|
|
3158
3158
|
},
|
|
3159
|
-
...
|
|
3160
|
-
} : null,
|
|
3161
|
-
...
|
|
3162
|
-
...
|
|
3163
|
-
...
|
|
3164
|
-
...
|
|
3159
|
+
...n.config.changeDebounce === void 0 ? {} : { debounce: n.config.changeDebounce }
|
|
3160
|
+
} : null, X = {
|
|
3161
|
+
...k ? { savedBlocks: k.capability } : {},
|
|
3162
|
+
..._ ? { templates: _.capability } : {},
|
|
3163
|
+
...I ? { testEmail: I.capability } : {},
|
|
3164
|
+
...V ? { comments: V.capability } : {},
|
|
3165
3165
|
...s ? { collaboration: s.capability } : {},
|
|
3166
|
-
...
|
|
3166
|
+
...U ? { ai: U.capability } : {}
|
|
3167
3167
|
}, Z = nt({
|
|
3168
|
-
editor:
|
|
3169
|
-
containerEl:
|
|
3168
|
+
editor: d,
|
|
3169
|
+
containerEl: b,
|
|
3170
3170
|
config: {
|
|
3171
|
-
uiTheme:
|
|
3172
|
-
theme:
|
|
3173
|
-
blockDefaults:
|
|
3174
|
-
templateDefaults:
|
|
3175
|
-
customBlocks:
|
|
3176
|
-
paletteBlocks:
|
|
3177
|
-
htmlBlockPreview:
|
|
3178
|
-
layout:
|
|
3179
|
-
sectionWrapper:
|
|
3180
|
-
colors:
|
|
3181
|
-
templateSettings:
|
|
3182
|
-
mergeTags:
|
|
3183
|
-
logicTags:
|
|
3184
|
-
displayConditions:
|
|
3185
|
-
onRequestMedia:
|
|
3186
|
-
canDropMedia:
|
|
3187
|
-
resolvePreview:
|
|
3188
|
-
resolveImageUrl:
|
|
3189
|
-
lint: cr(
|
|
3190
|
-
locale:
|
|
3171
|
+
uiTheme: n.config.uiTheme,
|
|
3172
|
+
theme: n.config.theme,
|
|
3173
|
+
blockDefaults: n.config.blockDefaults,
|
|
3174
|
+
templateDefaults: n.config.templateDefaults,
|
|
3175
|
+
customBlocks: n.config.customBlocks,
|
|
3176
|
+
paletteBlocks: n.config.paletteBlocks,
|
|
3177
|
+
htmlBlockPreview: n.config.htmlBlockPreview,
|
|
3178
|
+
layout: n.config.layout,
|
|
3179
|
+
sectionWrapper: n.config.sectionWrapper,
|
|
3180
|
+
colors: n.config.colors,
|
|
3181
|
+
templateSettings: n.config.templateSettings,
|
|
3182
|
+
mergeTags: n.config.mergeTags,
|
|
3183
|
+
logicTags: n.config.logicTags,
|
|
3184
|
+
displayConditions: n.config.displayConditions,
|
|
3185
|
+
onRequestMedia: j?.requestMedia ?? null,
|
|
3186
|
+
canDropMedia: j?.canDrop ?? null,
|
|
3187
|
+
resolvePreview: n.config.resolvePreview,
|
|
3188
|
+
resolveImageUrl: n.config.resolveImageUrl,
|
|
3189
|
+
lint: cr(n.config),
|
|
3190
|
+
locale: n.config.locale
|
|
3191
3191
|
},
|
|
3192
|
-
translations:
|
|
3193
|
-
fontsManager:
|
|
3194
|
-
autoSaveOptions:
|
|
3195
|
-
capabilities:
|
|
3196
|
-
editorRoot:
|
|
3192
|
+
translations: n.translations,
|
|
3193
|
+
fontsManager: n.fontsManager,
|
|
3194
|
+
autoSaveOptions: ie,
|
|
3195
|
+
capabilities: X,
|
|
3196
|
+
editorRoot: n.shadowRoot,
|
|
3197
3197
|
history: s?.history
|
|
3198
|
-
}), ae =
|
|
3198
|
+
}), ae = S("content"), oe = n.cloud && m ? n.cloud.ready({
|
|
3199
3199
|
core: Z,
|
|
3200
|
-
capabilities:
|
|
3201
|
-
}) : null, Q =
|
|
3202
|
-
provider:
|
|
3203
|
-
editor: rn(
|
|
3200
|
+
capabilities: X
|
|
3201
|
+
}) : null, Q = n.config.versionHistory ? or({
|
|
3202
|
+
provider: n.config.versionHistory,
|
|
3203
|
+
editor: rn(d, r),
|
|
3204
3204
|
history: Z.history,
|
|
3205
3205
|
conditionPreview: Z.conditionPreview,
|
|
3206
3206
|
autoSave: Z.autoSave,
|
|
@@ -3210,69 +3210,69 @@ var Dr = ["aria-label"], Or = {
|
|
|
3210
3210
|
catchUp: s.core.catchUp,
|
|
3211
3211
|
reportReplaceRefused: s.reportReplaceRefused
|
|
3212
3212
|
} : null,
|
|
3213
|
-
saveBeforeRestore:
|
|
3214
|
-
canSave: () =>
|
|
3215
|
-
save: () =>
|
|
3213
|
+
saveBeforeRestore: _ ? {
|
|
3214
|
+
canSave: () => _.canSave.value && !(n.cloud?.getSaveGate()?.shouldBlock.value ?? !1),
|
|
3215
|
+
save: () => _.save("restore")
|
|
3216
3216
|
} : null,
|
|
3217
|
-
onError:
|
|
3217
|
+
onError: n.config.onError
|
|
3218
3218
|
}) : null;
|
|
3219
|
-
Q && (
|
|
3220
|
-
let se =
|
|
3221
|
-
|
|
3222
|
-
await
|
|
3223
|
-
}),
|
|
3224
|
-
|
|
3219
|
+
Q && (X.versionHistory = Q.capability);
|
|
3220
|
+
let se = A(() => V?.isOpen.value === !0 || U !== null && U.panel.value !== null || m?.panelState.rightPanelOpen.value === !0), ce = A(() => d.state.previewMode ? "tpl:left-0 tpl:right-0" : se.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"), { showNotice: le } = ze(() => n.config.smallScreenNotice);
|
|
3221
|
+
l(async () => {
|
|
3222
|
+
await n.fontsManager.loadCustomFonts();
|
|
3223
|
+
}), u(() => {
|
|
3224
|
+
n.fontsManager.cleanupFontLinks(), U?.destroy(), n.cloud?.destroy(), Z.destroy();
|
|
3225
3225
|
});
|
|
3226
|
-
let ue =
|
|
3227
|
-
return
|
|
3228
|
-
getContent: () =>
|
|
3229
|
-
setContent: (e) =>
|
|
3226
|
+
let ue = _ ?? d, de = gn(Z.editorRoot);
|
|
3227
|
+
return t({
|
|
3228
|
+
getContent: () => d.content.value,
|
|
3229
|
+
setContent: (e) => d.setContent(e),
|
|
3230
3230
|
insertBlock: (e) => {
|
|
3231
|
-
if (
|
|
3232
|
-
let t =
|
|
3233
|
-
return ur(
|
|
3231
|
+
if (d.state.previewMode) return jt.warn("insertBlock() does nothing in preview mode."), null;
|
|
3232
|
+
let t = q(e);
|
|
3233
|
+
return ur(d, t) ? (de(t.id), t.id) : null;
|
|
3234
3234
|
},
|
|
3235
|
-
setTheme: (e) =>
|
|
3235
|
+
setTheme: (e) => d.setUiTheme(e),
|
|
3236
3236
|
setMergeTags: Z.setMergeTags,
|
|
3237
|
-
isDirty: () =>
|
|
3237
|
+
isDirty: () => d.state.isDirty,
|
|
3238
3238
|
create: ue.create,
|
|
3239
3239
|
load: ue.load,
|
|
3240
3240
|
save: ue.save,
|
|
3241
3241
|
renderCustomBlock: Z.registry.renderCustomBlock,
|
|
3242
3242
|
getCustomBlockStylesheet: (e) => Z.registry.getDefinition(e)?.stylesheet
|
|
3243
|
-
}), (
|
|
3243
|
+
}), (t, n) => (f(), v("div", {
|
|
3244
3244
|
ref_key: "rootEl",
|
|
3245
|
-
ref:
|
|
3246
|
-
class:
|
|
3247
|
-
"data-tpl-theme":
|
|
3248
|
-
style:
|
|
3249
|
-
onDragover: n[7] ||=
|
|
3250
|
-
onDrop: n[8] ||=
|
|
3245
|
+
ref: b,
|
|
3246
|
+
class: L(["tpl tpl:relative tpl:h-full", { "tpl:dark": P(d).state.darkMode }]),
|
|
3247
|
+
"data-tpl-theme": P(Z).resolvedTheme.value,
|
|
3248
|
+
style: x(P(Z).themeStyles.value),
|
|
3249
|
+
onDragover: n[7] ||= E(() => {}, ["prevent"]),
|
|
3250
|
+
onDrop: n[8] ||= E(() => {}, ["prevent"])
|
|
3251
3251
|
}, [
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
editor:
|
|
3256
|
-
core:
|
|
3257
|
-
templates:
|
|
3258
|
-
"show-template-name":
|
|
3259
|
-
"test-email":
|
|
3260
|
-
"version-history":
|
|
3261
|
-
comments:
|
|
3262
|
-
collaboration:
|
|
3263
|
-
ai:
|
|
3264
|
-
},
|
|
3252
|
+
z(Tr),
|
|
3253
|
+
D("div", va, [
|
|
3254
|
+
z(ki, {
|
|
3255
|
+
editor: P(d),
|
|
3256
|
+
core: P(Z),
|
|
3257
|
+
templates: P(_),
|
|
3258
|
+
"show-template-name": e.config.templates?.nameField !== !1,
|
|
3259
|
+
"test-email": P(I),
|
|
3260
|
+
"version-history": P(Q),
|
|
3261
|
+
comments: P(V),
|
|
3262
|
+
collaboration: P(s),
|
|
3263
|
+
ai: P(U)
|
|
3264
|
+
}, R({ _: 2 }, [P(m) ? {
|
|
3265
3265
|
name: "left-extras",
|
|
3266
|
-
fn:
|
|
3266
|
+
fn: g(() => [z(P(K), {
|
|
3267
3267
|
part: "left",
|
|
3268
|
-
cloud:
|
|
3268
|
+
cloud: P(m)
|
|
3269
3269
|
}, null, 8, ["cloud"])]),
|
|
3270
3270
|
key: "0"
|
|
3271
|
-
} : void 0,
|
|
3271
|
+
} : void 0, P(m) ? {
|
|
3272
3272
|
name: "right-extras",
|
|
3273
|
-
fn:
|
|
3273
|
+
fn: g(() => [z(P(K), {
|
|
3274
3274
|
part: "right",
|
|
3275
|
-
cloud:
|
|
3275
|
+
cloud: P(m)
|
|
3276
3276
|
}, null, 8, ["cloud"])]),
|
|
3277
3277
|
key: "1"
|
|
3278
3278
|
} : void 0]), 1032, [
|
|
@@ -3286,35 +3286,35 @@ var Dr = ["aria-label"], Or = {
|
|
|
3286
3286
|
"collaboration",
|
|
3287
3287
|
"ai"
|
|
3288
3288
|
]),
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
class:
|
|
3289
|
+
a(z(Fr, null, null, 512), [[N, !P(d).state.previewMode]]),
|
|
3290
|
+
D("div", {
|
|
3291
|
+
class: L(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]", [ce.value, P(Q)?.isPreviewing.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
|
|
3292
3292
|
style: { transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)" }
|
|
3293
|
-
}, [
|
|
3294
|
-
default:
|
|
3295
|
-
"sample-mode":
|
|
3296
|
-
onChange: n[0] ||= (e) =>
|
|
3297
|
-
}, null, 8, ["sample-mode"])])) :
|
|
3293
|
+
}, [D("div", ya, [D("div", ba, [z(O, { name: "tpl-preview-pill" }, {
|
|
3294
|
+
default: g(() => [P(d).state.previewMode && !P(Z).previewResolution.supersedesSamples.value ? (f(), v("div", xa, [z(wn, {
|
|
3295
|
+
"sample-mode": P(Z).mergeTagSampleMode.value,
|
|
3296
|
+
onChange: n[0] ||= (e) => P(Z).mergeTagSampleMode.value = e
|
|
3297
|
+
}, null, 8, ["sample-mode"])])) : w("", !0)]),
|
|
3298
3298
|
_: 1
|
|
3299
|
-
}),
|
|
3300
|
-
default:
|
|
3299
|
+
}), z(O, { name: "tpl-preview-pill" }, {
|
|
3300
|
+
default: g(() => [P(Z).conditionPreview.hasHiddenBlocks.value && P(Z).appliesConditionFilter.value ? (f(), v("button", {
|
|
3301
3301
|
key: 0,
|
|
3302
3302
|
type: "button",
|
|
3303
|
-
class:
|
|
3303
|
+
class: L([P(_n), "tpl:shadow-[var(--tpl-shadow-md)]"]),
|
|
3304
3304
|
"data-testid": "restore-hidden-blocks",
|
|
3305
|
-
onClick: n[1] ||= (e) =>
|
|
3306
|
-
}, [
|
|
3305
|
+
onClick: n[1] ||= (e) => P(Z).conditionPreview.reset()
|
|
3306
|
+
}, [z(P(zt), {
|
|
3307
3307
|
size: 16,
|
|
3308
3308
|
"stroke-width": 2
|
|
3309
|
-
}), y(" " +
|
|
3309
|
+
}), y(" " + C(P(Z).t.blockSettings.restoreHiddenBlocks), 1)], 2)) : w("", !0)]),
|
|
3310
3310
|
_: 1
|
|
3311
|
-
})])]),
|
|
3312
|
-
viewport:
|
|
3313
|
-
content:
|
|
3314
|
-
"selected-block-id":
|
|
3315
|
-
"dark-mode":
|
|
3316
|
-
"preview-mode":
|
|
3317
|
-
onSelectBlock:
|
|
3311
|
+
})])]), D("main", Sa, [z(wr, {
|
|
3312
|
+
viewport: P(d).state.viewport,
|
|
3313
|
+
content: P(Z).previewResolution.content.value,
|
|
3314
|
+
"selected-block-id": P(d).state.selectedBlockId,
|
|
3315
|
+
"dark-mode": P(d).state.darkMode,
|
|
3316
|
+
"preview-mode": P(d).state.previewMode,
|
|
3317
|
+
onSelectBlock: P(d).selectBlock
|
|
3318
3318
|
}, null, 8, [
|
|
3319
3319
|
"viewport",
|
|
3320
3320
|
"content",
|
|
@@ -3323,97 +3323,97 @@ var Dr = ["aria-label"], Or = {
|
|
|
3323
3323
|
"preview-mode",
|
|
3324
3324
|
"onSelectBlock"
|
|
3325
3325
|
])])], 2),
|
|
3326
|
-
|
|
3326
|
+
e.config.branding === !1 ? w("", !0) : (f(), T(ai, {
|
|
3327
3327
|
key: 0,
|
|
3328
3328
|
"position-class": [ce.value]
|
|
3329
3329
|
}, null, 8, ["position-class"])),
|
|
3330
|
-
|
|
3330
|
+
D("div", {
|
|
3331
3331
|
class: "tpl-sr-only",
|
|
3332
3332
|
role: "status",
|
|
3333
3333
|
"aria-live": "polite",
|
|
3334
3334
|
"aria-atomic": "true",
|
|
3335
|
-
"aria-label":
|
|
3336
|
-
},
|
|
3337
|
-
|
|
3335
|
+
"aria-label": P(Z).t.landmarks.reorderAnnouncements
|
|
3336
|
+
}, C(P(Z).keyboardReorder.announcement.value), 9, Ca),
|
|
3337
|
+
a(z(Qr, {
|
|
3338
3338
|
tab: ae.value,
|
|
3339
3339
|
"onUpdate:tab": n[2] ||= (e) => ae.value = e,
|
|
3340
|
-
"selected-block":
|
|
3341
|
-
settings:
|
|
3340
|
+
"selected-block": P(d).selectedBlock.value,
|
|
3341
|
+
settings: P(d).content.value.settings,
|
|
3342
3342
|
"shifted-left": se.value,
|
|
3343
|
-
onUpdateBlock: n[3] ||= (e) =>
|
|
3343
|
+
onUpdateBlock: n[3] ||= (e) => P(d).updateBlock(P(d).state.selectedBlockId, e),
|
|
3344
3344
|
onDeleteBlock: n[4] ||= () => {
|
|
3345
|
-
|
|
3345
|
+
P(d).state.selectedBlockId && P(Z).blockActions.deleteBlock(P(d).state.selectedBlockId);
|
|
3346
3346
|
},
|
|
3347
3347
|
onDuplicateBlock: n[5] ||= () => {
|
|
3348
|
-
|
|
3348
|
+
P(d).selectedBlock.value && P(Z).blockActions.duplicateBlock(P(d).selectedBlock.value);
|
|
3349
3349
|
},
|
|
3350
|
-
onUpdateSettings: n[6] ||= (e) =>
|
|
3350
|
+
onUpdateSettings: n[6] ||= (e) => P(d).updateSettings(e)
|
|
3351
3351
|
}, null, 8, [
|
|
3352
3352
|
"tab",
|
|
3353
3353
|
"selected-block",
|
|
3354
3354
|
"settings",
|
|
3355
3355
|
"shifted-left"
|
|
3356
|
-
]), [[
|
|
3356
|
+
]), [[N, !P(d).state.previewMode]])
|
|
3357
3357
|
]),
|
|
3358
|
-
|
|
3359
|
-
ref: (e) =>
|
|
3358
|
+
D("div", {
|
|
3359
|
+
ref: (e) => P(Z).popoverRoot.value = e,
|
|
3360
3360
|
class: "tpl-popover-root"
|
|
3361
3361
|
}, null, 512),
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3362
|
+
z(Yi),
|
|
3363
|
+
z(ga),
|
|
3364
|
+
P(k)?.isAvailable.value ? (f(), T(P(ee), {
|
|
3365
3365
|
key: 0,
|
|
3366
|
-
feature:
|
|
3367
|
-
}, null, 8, ["feature"])) :
|
|
3368
|
-
|
|
3366
|
+
feature: P(k)
|
|
3367
|
+
}, null, 8, ["feature"])) : w("", !0),
|
|
3368
|
+
e.config.media && P(j) ? (f(), T(P(F), {
|
|
3369
3369
|
key: 1,
|
|
3370
|
-
feature:
|
|
3371
|
-
provider:
|
|
3372
|
-
locale:
|
|
3373
|
-
"ui-theme":
|
|
3374
|
-
"popover-target":
|
|
3370
|
+
feature: P(j),
|
|
3371
|
+
provider: e.config.media,
|
|
3372
|
+
locale: e.config.locale,
|
|
3373
|
+
"ui-theme": P(Z).resolvedTheme.value,
|
|
3374
|
+
"popover-target": P(Z).popoverRoot.value
|
|
3375
3375
|
}, null, 8, [
|
|
3376
3376
|
"feature",
|
|
3377
3377
|
"provider",
|
|
3378
3378
|
"locale",
|
|
3379
3379
|
"ui-theme",
|
|
3380
3380
|
"popover-target"
|
|
3381
|
-
])) :
|
|
3382
|
-
|
|
3381
|
+
])) : w("", !0),
|
|
3382
|
+
P(I)?.isAvailable.value ? (f(), T(P(B), {
|
|
3383
3383
|
key: 2,
|
|
3384
|
-
feature:
|
|
3385
|
-
}, null, 8, ["feature"])) :
|
|
3386
|
-
|
|
3384
|
+
feature: P(I)
|
|
3385
|
+
}, null, 8, ["feature"])) : w("", !0),
|
|
3386
|
+
P(V)?.isAvailable.value ? (f(), T(P(te), {
|
|
3387
3387
|
key: 3,
|
|
3388
|
-
feature:
|
|
3389
|
-
}, null, 8, ["feature"])) :
|
|
3390
|
-
|
|
3388
|
+
feature: P(V)
|
|
3389
|
+
}, null, 8, ["feature"])) : w("", !0),
|
|
3390
|
+
P(U) ? (f(), T(P(H), {
|
|
3391
3391
|
key: 4,
|
|
3392
|
-
feature:
|
|
3393
|
-
}, null, 8, ["feature"])) :
|
|
3394
|
-
|
|
3392
|
+
feature: P(U)
|
|
3393
|
+
}, null, 8, ["feature"])) : w("", !0),
|
|
3394
|
+
P(s) ? (f(), T(P(W), {
|
|
3395
3395
|
key: 5,
|
|
3396
|
-
feature:
|
|
3397
|
-
}, null, 8, ["feature"])) :
|
|
3398
|
-
|
|
3396
|
+
feature: P(s)
|
|
3397
|
+
}, null, 8, ["feature"])) : w("", !0),
|
|
3398
|
+
P(Q)?.isAvailable.value ? (f(), T(P(J), {
|
|
3399
3399
|
key: 6,
|
|
3400
|
-
feature:
|
|
3401
|
-
}, null, 8, ["feature"])) :
|
|
3402
|
-
|
|
3400
|
+
feature: P(Q)
|
|
3401
|
+
}, null, 8, ["feature"])) : w("", !0),
|
|
3402
|
+
e.cloud && P(m) && P(oe) ? (f(), T(P(G), {
|
|
3403
3403
|
key: 7,
|
|
3404
|
-
editor:
|
|
3405
|
-
core:
|
|
3406
|
-
runtime:
|
|
3407
|
-
cloud:
|
|
3408
|
-
ready:
|
|
3404
|
+
editor: P(d),
|
|
3405
|
+
core: P(Z),
|
|
3406
|
+
runtime: e.cloud,
|
|
3407
|
+
cloud: P(m),
|
|
3408
|
+
ready: P(oe)
|
|
3409
3409
|
}, null, 8, [
|
|
3410
3410
|
"editor",
|
|
3411
3411
|
"core",
|
|
3412
3412
|
"runtime",
|
|
3413
3413
|
"cloud",
|
|
3414
3414
|
"ready"
|
|
3415
|
-
])) :
|
|
3416
|
-
|
|
3415
|
+
])) : w("", !0),
|
|
3416
|
+
P(le) ? (f(), T(ri, { key: 8 })) : w("", !0)
|
|
3417
3417
|
], 46, _a));
|
|
3418
3418
|
}
|
|
3419
3419
|
}), [["__scopeId", "data-v-42dbfd6a"]]), Ta = /@import\s*(?:url\(\s*(?:"[^"]*"|'[^']*'|[^)]*)\s*\)|"[^"]*"|'[^']*')[^;]*;/g;
|
|
@@ -3428,8 +3428,8 @@ function Da(e) {
|
|
|
3428
3428
|
};
|
|
3429
3429
|
}
|
|
3430
3430
|
async function Oa(e) {
|
|
3431
|
-
let t =
|
|
3432
|
-
return n || (ce(r),
|
|
3431
|
+
let t = Y(e.getContent()), n = e.getLayout?.(), r = n ? J(n, t) : t;
|
|
3432
|
+
return n || (ce(r), H(r)), await Dn(r, {
|
|
3433
3433
|
renderCustomBlock: e.renderCustomBlock,
|
|
3434
3434
|
getCustomBlockStylesheet: e.getCustomBlockStylesheet
|
|
3435
3435
|
}), {
|
|
@@ -3463,7 +3463,7 @@ function ka(e) {
|
|
|
3463
3463
|
};
|
|
3464
3464
|
}
|
|
3465
3465
|
// \0virtual:editor-css
|
|
3466
|
-
var Aa = "@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-block--idle[data-v-126b991e]{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-126b991e]: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-126b991e]{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-126b991e]{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-126b991e]{color:var(--tpl-chrome-text-muted);background-color:transparent}.tpl-block-action-btn[data-v-126b991e]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-chrome-text)}.tpl-block-action-btn[data-v-126b991e]:active{transform:scale(.9)}.tpl-block-delete-btn[data-v-126b991e]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-condition-toggle[data-v-126b991e]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-condition-toggle[data-v-126b991e]:active{transform:scale(.9)}.tpl-block-hidden-overlay[data-v-126b991e]{background-color:color-mix(in srgb,var(--tpl-bg) 60%,transparent)}.tpl-block-agent-highlight[data-v-126b991e]{outline:2px solid var(--tpl-secondary);outline-offset:-1px;animation:tpl-agent-highlight-126b991e 2s ease-out forwards}@keyframes tpl-agent-highlight-126b991e{0%,50%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.tpl-block-agent-highlight[data-v-126b991e]{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-b9798ef2] .tpl-email-surface:not(.tpl-email-surface *){filter:invert(1) hue-rotate(180deg)}[data-v-b9798ef2] .tpl-email-surface{transition:filter .3s ease}.tpl-canvas--dark-mode[data-v-b9798ef2] .tpl-email-surface img{filter:invert(1) hue-rotate(180deg)}.tpl-canvas--dark-mode[data-v-b9798ef2] .tpl-email-surface.tpl-has-bg-image,.tpl-canvas--dark-mode[data-v-b9798ef2] .tpl-email-surface .tpl-has-bg-image{position:relative;isolation:isolate;background-image:none!important}.tpl-canvas--dark-mode[data-v-b9798ef2] .tpl-email-surface.tpl-has-bg-image:before,.tpl-canvas--dark-mode[data-v-b9798ef2] .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\\:-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-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-\\[104px\\]{top:104px}.tpl\\:top-full{top:100%}.tpl\\:-right-1{right:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:-right-2{right:calc(calc(var(--tpl-base-size) / 4) * -2)}.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\\: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\\: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\\: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\\:\\!mb-0{margin-bottom:0!important}.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\\/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-72{width:calc(calc(var(--tpl-base-size) / 4) * 72)}.tpl\\:w-80{width:calc(calc(var(--tpl-base-size) / 4) * 80)}.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\\:-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-\\[1fr_auto_1fr\\]{grid-template-columns:1fr auto 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)}: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\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.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-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-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}.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{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}}@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-42dbfd6a]{transition:opacity .2s cubic-bezier(.16,1,.3,1),transform .2s cubic-bezier(.16,1,.3,1)}.tpl-preview-pill-leave-active[data-v-42dbfd6a]{transition:opacity .15s ease-in,transform .15s ease-in}.tpl-preview-pill-enter-from[data-v-42dbfd6a],.tpl-preview-pill-leave-to[data-v-42dbfd6a]{opacity:0;transform:translateY(-8px) scale(.9)}.tpl-preview-pill-enter-to[data-v-42dbfd6a],.tpl-preview-pill-leave-from[data-v-42dbfd6a]{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-69591c1e]::-webkit-outer-spin-button,input[type=number][data-v-69591c1e]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-69591c1e]{-moz-appearance:textfield}.tpl-collapsible[data-v-e2d2c22f]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s cubic-bezier(.16,1,.3,1)}.tpl-collapsible--open[data-v-e2d2c22f]{grid-template-rows:1fr}.tpl-collapsible>div[data-v-e2d2c22f]{overflow:hidden}.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-32af5912]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-comments-slide-leave-active[data-v-32af5912]{transition:transform .2s cubic-bezier(.16,1,.3,1)}.tpl-comments-input-wrapper[data-v-32af5912]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-comments-send-btn[data-v-32af5912]:not(:disabled):hover{transform:scale(1.05)}.tpl-comment-filter[data-v-32af5912]{color:var(--tpl-text-muted);background-color:transparent}.tpl-comment-filter[data-v-32af5912]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-filter--active[data-v-32af5912]{background-color:var(--tpl-primary-light);color:var(--tpl-primary)}.tpl-comment-action[data-v-32af5912]{color:var(--tpl-text-dim);background-color:transparent}.tpl-comment-action[data-v-32af5912]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-delete[data-v-32af5912]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-comment-card[data-v-32af5912],.tpl-comment-reply-card[data-v-32af5912]{border-color:var(--tpl-border);background-color:var(--tpl-bg)}.tpl-resolve-enter-active[data-v-32af5912],.tpl-resolve-leave-active[data-v-32af5912]{transition:opacity .3s ease,transform .3s ease}.tpl-resolve-enter-from[data-v-32af5912],.tpl-resolve-leave-to[data-v-32af5912]{opacity:0;transform:translateY(-4px)}.tpl-resolve-icon[data-v-32af5912]{transition:color .3s ease,transform .2s ease}.tpl-resolve-icon[data-v-32af5912]:active{transform:scale(1.3)}.tpl-replies-enter-active[data-v-32af5912],.tpl-replies-leave-active[data-v-32af5912]{transition:opacity .25s ease,transform .25s ease}.tpl-replies-enter-from[data-v-32af5912],.tpl-replies-leave-to[data-v-32af5912]{opacity:0;transform:translateY(-4px)}.tpl-ai-input-wrapper[data-v-e0f79f23]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-ai-send-btn[data-v-e0f79f23]:not(:disabled):hover{transform:scale(1.05)}.tpl-starter-btn[data-v-e0f79f23]:hover{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.vue-advanced-cropper{text-align:center;position:relative;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}[data-v-7d9a1872] .tpl-cropper-background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper{background-color:transparent!important}[data-v-7d9a1872] .vue-advanced-cropper__background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper__foreground{background-color:var(--tpl-overlay)!important}\n/*$vite$:1*/", ja = null;
|
|
3466
|
+
var Aa = "@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-block--idle[data-v-f3a7bfbf]{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-f3a7bfbf]: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-f3a7bfbf]{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-f3a7bfbf]{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-f3a7bfbf]{color:var(--tpl-chrome-text-muted);background-color:transparent}.tpl-block-action-btn[data-v-f3a7bfbf]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-chrome-text)}.tpl-block-action-btn[data-v-f3a7bfbf]:active{transform:scale(.9)}.tpl-block-delete-btn[data-v-f3a7bfbf]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-condition-toggle[data-v-f3a7bfbf]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-condition-toggle[data-v-f3a7bfbf]:active{transform:scale(.9)}.tpl-block-hidden-overlay[data-v-f3a7bfbf]{background-color:color-mix(in srgb,var(--tpl-bg) 60%,transparent)}.tpl-block-agent-highlight[data-v-f3a7bfbf]{outline:2px solid var(--tpl-secondary);outline-offset:-1px;animation:tpl-agent-highlight-f3a7bfbf 2s ease-out forwards}@keyframes tpl-agent-highlight-f3a7bfbf{0%,50%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.tpl-block-agent-highlight[data-v-f3a7bfbf]{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-b9798ef2] .tpl-email-surface:not(.tpl-email-surface *){filter:invert(1) hue-rotate(180deg)}[data-v-b9798ef2] .tpl-email-surface{transition:filter .3s ease}.tpl-canvas--dark-mode[data-v-b9798ef2] .tpl-email-surface img{filter:invert(1) hue-rotate(180deg)}.tpl-canvas--dark-mode[data-v-b9798ef2] .tpl-email-surface.tpl-has-bg-image,.tpl-canvas--dark-mode[data-v-b9798ef2] .tpl-email-surface .tpl-has-bg-image{position:relative;isolation:isolate;background-image:none!important}.tpl-canvas--dark-mode[data-v-b9798ef2] .tpl-email-surface.tpl-has-bg-image:before,.tpl-canvas--dark-mode[data-v-b9798ef2] .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\\:-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-\\[104px\\]{top:104px}.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\\: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\\: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\\:\\!mb-0{margin-bottom:0!important}.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-2{margin-left:calc(calc(var(--tpl-base-size) / 4) * 2)}.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\\/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-72{width:calc(calc(var(--tpl-base-size) / 4) * 72)}.tpl\\:w-80{width:calc(calc(var(--tpl-base-size) / 4) * 80)}.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\\:-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-\\[1fr_auto_1fr\\]{grid-template-columns:1fr auto 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)}: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\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.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-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-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}.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{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}}@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-42dbfd6a]{transition:opacity .2s cubic-bezier(.16,1,.3,1),transform .2s cubic-bezier(.16,1,.3,1)}.tpl-preview-pill-leave-active[data-v-42dbfd6a]{transition:opacity .15s ease-in,transform .15s ease-in}.tpl-preview-pill-enter-from[data-v-42dbfd6a],.tpl-preview-pill-leave-to[data-v-42dbfd6a]{opacity:0;transform:translateY(-8px) scale(.9)}.tpl-preview-pill-enter-to[data-v-42dbfd6a],.tpl-preview-pill-leave-from[data-v-42dbfd6a]{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-69591c1e]::-webkit-outer-spin-button,input[type=number][data-v-69591c1e]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-69591c1e]{-moz-appearance:textfield}.tpl-collapsible[data-v-e2d2c22f]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s cubic-bezier(.16,1,.3,1)}.tpl-collapsible--open[data-v-e2d2c22f]{grid-template-rows:1fr}.tpl-collapsible>div[data-v-e2d2c22f]{overflow:hidden}.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-7efe6a5c]{transition:transform .28s cubic-bezier(.16,1,.3,1)}.tpl-comments-slide-leave-active[data-v-7efe6a5c]{transition:transform .2s cubic-bezier(.16,1,.3,1)}.tpl-comments-input-wrapper[data-v-7efe6a5c]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-comments-send-btn[data-v-7efe6a5c]:not(:disabled):hover{transform:scale(1.05)}.tpl-comment-filter[data-v-7efe6a5c]{color:var(--tpl-text-muted);background-color:transparent}.tpl-comment-filter[data-v-7efe6a5c]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-filter--active[data-v-7efe6a5c]{background-color:var(--tpl-primary-light);color:var(--tpl-primary)}.tpl-comment-action[data-v-7efe6a5c]{color:var(--tpl-text-dim);background-color:transparent}.tpl-comment-action[data-v-7efe6a5c]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-delete[data-v-7efe6a5c]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-comment-card[data-v-7efe6a5c],.tpl-comment-reply-card[data-v-7efe6a5c]{border-color:var(--tpl-border);background-color:var(--tpl-bg)}.tpl-resolve-enter-active[data-v-7efe6a5c],.tpl-resolve-leave-active[data-v-7efe6a5c]{transition:opacity .3s ease,transform .3s ease}.tpl-resolve-enter-from[data-v-7efe6a5c],.tpl-resolve-leave-to[data-v-7efe6a5c]{opacity:0;transform:translateY(-4px)}.tpl-resolve-icon[data-v-7efe6a5c]{transition:color .3s ease,transform .2s ease}.tpl-resolve-icon[data-v-7efe6a5c]:active{transform:scale(1.3)}.tpl-replies-enter-active[data-v-7efe6a5c],.tpl-replies-leave-active[data-v-7efe6a5c]{transition:opacity .25s ease,transform .25s ease}.tpl-replies-enter-from[data-v-7efe6a5c],.tpl-replies-leave-to[data-v-7efe6a5c]{opacity:0;transform:translateY(-4px)}.tpl-ai-input-wrapper[data-v-e0f79f23]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-ai-send-btn[data-v-e0f79f23]:not(:disabled):hover{transform:scale(1.05)}.tpl-starter-btn[data-v-e0f79f23]:hover{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.vue-advanced-cropper{text-align:center;position:relative;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}[data-v-7d9a1872] .tpl-cropper-background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper{background-color:transparent!important}[data-v-7d9a1872] .vue-advanced-cropper__background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper__foreground{background-color:var(--tpl-overlay)!important}\n/*$vite$:1*/", ja = null;
|
|
3467
3467
|
function Ma() {
|
|
3468
3468
|
if (ja === null) {
|
|
3469
3469
|
let e = new CSSStyleSheet();
|
|
@@ -3504,53 +3504,53 @@ function Ba(e, t) {
|
|
|
3504
3504
|
n && (t && n.app !== t || (n.cleanup(), n.app.unmount(), Fa.delete(e), Ia === e && (Ia = null)));
|
|
3505
3505
|
}
|
|
3506
3506
|
function Va(e) {
|
|
3507
|
-
e.layout && (e.layout = on(e.layout, e.mergeTags),
|
|
3507
|
+
e.layout && (e.layout = on(e.layout, e.mergeTags), K(e.layout)), e.content && (e.content = on(e.content, e.mergeTags), ce(e.content), H(e.content));
|
|
3508
3508
|
}
|
|
3509
3509
|
async function Ha(e) {
|
|
3510
3510
|
let t = { ...e };
|
|
3511
3511
|
return Va(t), Ua(t, za(t.container));
|
|
3512
3512
|
}
|
|
3513
|
-
async function Ua(
|
|
3514
|
-
|
|
3515
|
-
let
|
|
3516
|
-
if (Ra.get(
|
|
3517
|
-
config:
|
|
3518
|
-
editorRef:
|
|
3519
|
-
fontsManager:
|
|
3513
|
+
async function Ua(e, { container: t, token: n }, r) {
|
|
3514
|
+
e.locale !== void 0 && !Me(e.locale) && jt.warn(`config.locale: "${e.locale}" has no translations — falling back to English. Supported: ${Ie().sort().join(", ")}.`);
|
|
3515
|
+
let i = await Pe(e.locale ?? "en"), a = Ve(e.fonts);
|
|
3516
|
+
if (Ra.get(t) !== n) return Wa({
|
|
3517
|
+
config: e,
|
|
3518
|
+
editorRef: S(null),
|
|
3519
|
+
fontsManager: a,
|
|
3520
3520
|
unmount: () => {}
|
|
3521
3521
|
}).instance;
|
|
3522
|
-
Ba(
|
|
3523
|
-
let
|
|
3524
|
-
return () =>
|
|
3525
|
-
config:
|
|
3526
|
-
translations:
|
|
3527
|
-
fontsManager:
|
|
3528
|
-
shadowRoot:
|
|
3529
|
-
cloud:
|
|
3530
|
-
renderMjml: () =>
|
|
3531
|
-
renderHtml: () =>
|
|
3532
|
-
canRenderHtml: () =>
|
|
3533
|
-
usesLocalRenderer: () =>
|
|
3534
|
-
ref:
|
|
3522
|
+
Ba(t);
|
|
3523
|
+
let o = Pa(t, e.shadowDom ?? !0), s = S(null), c = j({ setup() {
|
|
3524
|
+
return () => m(wa, {
|
|
3525
|
+
config: e,
|
|
3526
|
+
translations: i,
|
|
3527
|
+
fontsManager: a,
|
|
3528
|
+
shadowRoot: o.shadowRoot ?? void 0,
|
|
3529
|
+
cloud: r,
|
|
3530
|
+
renderMjml: () => u.toMjml(),
|
|
3531
|
+
renderHtml: () => u.toHtml(),
|
|
3532
|
+
canRenderHtml: () => u.canRenderHtml(),
|
|
3533
|
+
usesLocalRenderer: () => u.usesLocalRenderer(),
|
|
3534
|
+
ref: s
|
|
3535
3535
|
});
|
|
3536
3536
|
} });
|
|
3537
|
-
|
|
3538
|
-
app:
|
|
3539
|
-
editorRef:
|
|
3540
|
-
cleanup:
|
|
3541
|
-
}), Ia =
|
|
3542
|
-
let { instance:
|
|
3543
|
-
config:
|
|
3544
|
-
editorRef:
|
|
3545
|
-
fontsManager:
|
|
3546
|
-
unmount: () => Ba(
|
|
3537
|
+
c.mount(o.target), Fa.set(t, {
|
|
3538
|
+
app: c,
|
|
3539
|
+
editorRef: s,
|
|
3540
|
+
cleanup: o.cleanup
|
|
3541
|
+
}), Ia = t;
|
|
3542
|
+
let { instance: l, render: u } = Wa({
|
|
3543
|
+
config: e,
|
|
3544
|
+
editorRef: s,
|
|
3545
|
+
fontsManager: a,
|
|
3546
|
+
unmount: () => Ba(t, c)
|
|
3547
3547
|
});
|
|
3548
|
-
return
|
|
3548
|
+
return l;
|
|
3549
3549
|
}
|
|
3550
3550
|
function Wa({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
3551
3551
|
let i = {
|
|
3552
3552
|
getContent() {
|
|
3553
|
-
return
|
|
3553
|
+
return Y(t.value ? t.value.getContent() : e.content ?? oe(e.fonts?.defaultFont, kn(e)));
|
|
3554
3554
|
},
|
|
3555
3555
|
setContent(n) {
|
|
3556
3556
|
let r = on(n, e.mergeTags);
|
|
@@ -3558,7 +3558,7 @@ function Wa({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
3558
3558
|
},
|
|
3559
3559
|
insertBlock(n) {
|
|
3560
3560
|
let r = { blocks: [n] };
|
|
3561
|
-
return ce(r),
|
|
3561
|
+
return ce(r), H(r), t.value ? t.value.insertBlock(cn(n, e.mergeTags)) : null;
|
|
3562
3562
|
},
|
|
3563
3563
|
setTheme(e) {
|
|
3564
3564
|
t.value && t.value.setTheme(e);
|
|
@@ -3623,7 +3623,7 @@ async function Ga(e) {
|
|
|
3623
3623
|
mergeTags: e.mergeTags
|
|
3624
3624
|
};
|
|
3625
3625
|
Va(t);
|
|
3626
|
-
let n = za(e.container), [{ bootstrapCloud: r }, i] = await Promise.all([import("./chunks/createCloudRuntime-
|
|
3626
|
+
let n = za(e.container), [{ bootstrapCloud: r }, i] = await Promise.all([import("./chunks/createCloudRuntime-Cth2JCEh.js"), Ne(e.locale ?? "en")]), { runtime: a, providers: o, user: s } = await r({
|
|
3627
3627
|
config: e,
|
|
3628
3628
|
cloudTranslations: i
|
|
3629
3629
|
});
|
|
@@ -3674,6 +3674,6 @@ async function Ga(e) {
|
|
|
3674
3674
|
function Ka() {
|
|
3675
3675
|
Ia && Ba(Ia);
|
|
3676
3676
|
}
|
|
3677
|
-
export { mn as AI_ALT_TEXT_RULES, hn as AI_FIXABLE_RULES,
|
|
3677
|
+
export { mn as AI_ALT_TEXT_RULES, hn as AI_FIXABLE_RULES, J as applyLayout, oe as createDefaultTemplateContent, _e as createLocalStorageMediaProvider, Se as createLocalStorageSavedBlocksProvider, W as createParagraphBlock, X as createSlotBlock, Z as createWrapperBlock, Je as getBaseLocale, Fe as getSupportedCloudLocales, Ie as getSupportedLocales, Ha as init, Ga as initCloud, Re as isCloudLocaleSupported, Me as isLocaleSupported, ue as isSlot, pe as isWrapper, se as layoutWrapsSlot, Ka as unmount, K as validateLayout };
|
|
3678
3678
|
|
|
3679
3679
|
//# sourceMappingURL=editor.js.map
|