@templatical/editor 0.51.1 → 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/THIRD_PARTY_NOTICES.md +208 -0
- package/dist/{AiAltTextPopover-BZQ95GXL.js → AiAltTextPopover-DawbUywc.js} +16 -17
- package/dist/{AiAltTextReview-DoBEudnE.js → AiAltTextReview-9ySsXOTU.js} +25 -26
- package/dist/{AiChatPanel-Bs6sES3b.js → AiChatPanel-CupPhmsN.js} +141 -143
- package/dist/{AiPanels-CfN7A-ZA.js → AiPanels-DqT4PgQ0.js} +6 -8
- package/dist/{AiRewriteMenu-C3ZfDDYy.js → AiRewriteMenu-28agTycW.js} +66 -67
- package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
- package/dist/{BlockPreviewCanvas-BXNLLLYi.js → BlockPreviewCanvas-B-4bmJ3t.js} +26 -27
- package/dist/{CloudHeaderExtras-CsJMEiyN.js → CloudHeaderExtras-QI82yF54.js} +4 -5
- package/dist/{CloudPanels-B4F5m7vy.js → CloudPanels-BKJaLkUN.js} +52 -53
- package/dist/{CollaborationNotices-CNuDp7Y2.js → CollaborationNotices-CTw4JThq.js} +12 -13
- package/dist/{CollaboratorBar-BtHPiuHq.js → CollaboratorBar-CXQqN3VP.js} +16 -17
- package/dist/{CommentsPanel-CyCM-BvT.js → CommentsPanel-DwwFuh1h.js} +3 -5
- package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
- package/dist/{CountdownBlock-DR4Xm2-T.js → CountdownBlock-CU2yTWtF.js} +21 -22
- package/dist/{CountdownToolbar-CEIMPojJ.js → CountdownToolbar-BqoYzf_6.js} +55 -56
- package/dist/IssuesPanel-4ykrf1ax.js +359 -0
- package/dist/{LoadingTrack-B0RKQWq3.js → LoadingTrack-DM4g6j7b.js} +3 -4
- package/dist/{LogicTagInsertButton-CqfU52CO.js → LogicTagInsertButton-CfscnwCn.js} +243 -250
- package/dist/{MediaEditModal-DHtkZ4OU.js → MediaEditModal-Dy08GEwE.js} +449 -452
- package/dist/{MediaPanels-CGcOB2pR.js → MediaPanels-BgEp7iCp.js} +3 -5
- package/dist/{MergeTagInput-YnEkorTZ.js → MergeTagInput-B9dtUthD.js} +14 -15
- package/dist/{MergeTagModeToggle-Dhb1DAcQ.js → MergeTagModeToggle-DxujhYJ4.js} +30 -31
- package/dist/{MergeTagTextarea-e4lnwtqZ.js → MergeTagTextarea-CPFEjJZd.js} +12 -13
- package/dist/{ParagraphEditor-B6NK0ytw.js → ParagraphEditor-CWXfurGh.js} +233 -236
- package/dist/{RestoreVersionDialog-Bq_IGOLJ.js → RestoreVersionDialog-C4s_JYCx.js} +16 -17
- package/dist/{RichTextEditorContent-AOM6fylS.js → RichTextEditorContent-o6HmE8GR.js} +40 -40
- package/dist/{SaveBlockDialog-C8GngfQx.js → SaveBlockDialog-CWLrly6l.js} +58 -59
- package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
- package/dist/{SavedBlocksPanels-C2s3q0pJ.js → SavedBlocksPanels-BE1N9rNZ.js} +7 -9
- package/dist/{SavedBlocksPickBar-BjcTiV87.js → SavedBlocksPickBar-Dwl94xhP.js} +14 -15
- package/dist/{TemplateSettings-BVBWpiDU.js → TemplateSettings-CS0f1Ues.js} +75 -76
- package/dist/{TestEmailModal-SyhO9bn3.js → TestEmailModal-DBD0X5nV.js} +54 -56
- package/dist/{TestEmailPanel-BDd2Rtav.js → TestEmailPanel-DaFjP9QK.js} +3 -5
- package/dist/{TitleEditor-pxD53y_l.js → TitleEditor-DSqtle77.js} +78 -79
- package/dist/{ToggleSwitch-D51U9cmR.js → ToggleSwitch-JykPyD_8.js} +5 -6
- package/dist/{Toolbar-CZSPZYbj.js → Toolbar-BZPFfKrf.js} +977 -985
- package/dist/{TplModal-DCzBzicE.js → TplModal-DLMssVlt.js} +16 -17
- package/dist/{VersionHistoryMenu-BQeWPT85.js → VersionHistoryMenu-BkbYUs0Q.js} +37 -38
- package/dist/{VersionHistoryPanels-BBm7YbRQ.js → VersionHistoryPanels-DP7HaYWv.js} +5 -7
- package/dist/{VersionPreviewBanner-DUGF0tUJ.js → VersionPreviewBanner-DECaBwLq.js} +11 -12
- package/dist/WrapperBlock-BsJv_Fiw.js +44 -0
- package/dist/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
- package/dist/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +3 -5
- package/dist/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +2 -3
- package/dist/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +1 -2
- package/dist/{blockTypeIcons-NzaYvAI4.js → blockTypeIcons-BHjlPnPf.js} +23 -23
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +1 -2
- package/dist/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +1 -2
- package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js → AiAltTextPopover-SEEjkd-I.js} +24 -25
- package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js → AiAltTextReview-BGLLSKLm.js} +43 -44
- package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js → AiChatPanel-DKDAaBNi.js} +129 -131
- package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js → AiPanels-0wBarZSH.js} +5 -7
- package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js.map → AiPanels-0wBarZSH.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-Bhh71zcc.js → AiRewriteMenu-qf-cfEpy.js} +52 -53
- package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +1 -0
- 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-D0--EQkP.js → BlockPreviewCanvas-DGBh6mqe.js} +22 -23
- package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js → CloudHeaderExtras-BMNK_F9p.js} +4 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js → CloudPanels-JMWIoVWh.js} +34 -35
- package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js → CollaborationNotices-Bsf1rGW9.js} +13 -14
- package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js → CollaboratorBar-CXByAoUz.js} +16 -17
- package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js → CommentsPanel-DoJnKLXI.js} +4 -6
- package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js → CommentsSidebar-CUtgvdBC.js} +110 -110
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js → CountdownBlock-BqRw147R.js} +19 -20
- package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js → CountdownToolbar-xobieKoU.js} +28 -29
- package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js → IssuesPanel-C7LfxaAY.js} +76 -77
- package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
- package/dist/cdn/chunks/LoadingTrack-CZuLTazv.js +11 -0
- package/dist/cdn/chunks/{LoadingTrack-BIcL4NiY.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js → LogicTagInsertButton-BIi05UQu.js} +258 -265
- package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js → MediaEditModal-Cpcod6_U.js} +152 -155
- package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js → MediaPanels-BIdcW_1f.js} +4 -6
- package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js → MergeTagInput-BvWg8o5E.js} +35 -36
- package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js → MergeTagModeToggle-BgKEVUtV.js} +28 -29
- package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js → MergeTagTextarea-tBz8McZf.js} +33 -34
- package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js → ParagraphEditor-B3Rj_cWF.js} +197 -200
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js → RestoreVersionDialog-CjOdD2xj.js} +21 -22
- package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js → RichTextEditorContent-DNjR_sNN.js} +30 -31
- package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js → SaveBlockDialog-CUhpawq0.js} +77 -78
- package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js → SavedBlocksPanels-C6--Bc81.js} +4 -6
- package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js → SavedBlocksPickBar-DUavxpbU.js} +16 -17
- package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js → TemplateSettings-CKtI-dof.js} +72 -73
- package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js → TestEmailModal-CDQTgESD.js} +68 -70
- package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js → TestEmailPanel-CcUpEpAn.js} +4 -6
- package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js → TitleEditor-Cob7RLyK.js} +71 -72
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
- package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js → ToggleSwitch-J7Vwhvha.js} +6 -7
- package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-DoprRgTn.js → Toolbar-CdpsvNOR.js} +977 -985
- package/dist/cdn/chunks/{Toolbar-DoprRgTn.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
- package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
- package/dist/cdn/chunks/{TplModal-BXQzmsJX.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js → VersionHistoryMenu-BYlLRvRJ.js} +34 -35
- package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js → VersionHistoryPanels-C6SOVoiT.js} +4 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js → VersionPreviewBanner-Dvg0ZfAW.js} +12 -13
- package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js → WrapperBlock-C7Md56IT.js} +14 -15
- package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
- package/dist/cdn/chunks/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
- package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +4 -6
- package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js.map → aiErrors-C3QEMB0x.js.map} +1 -1
- package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +3 -4
- package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js.map → aiImageContext-BQ5mQ6B5.js.map} +1 -1
- package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +2 -3
- package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js.map → aiRewritePreview-DlMyx6Si.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/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +2 -3
- package/dist/cdn/chunks/{ca-C7mTzW1r.js.map → ca-CD-Kt1qz.js.map} +1 -1
- package/dist/cdn/chunks/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +2 -3
- package/dist/cdn/chunks/{ca-CYQH3J0b.js.map → ca-Cc6eL0ZS.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js → createCloudRuntime-Cth2JCEh.js} +58 -77
- package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
- package/dist/cdn/chunks/{de-DBOTcDj2.js → de-6M4JoHoD.js} +2 -3
- package/dist/cdn/chunks/{de-DBOTcDj2.js.map → de-6M4JoHoD.js.map} +1 -1
- package/dist/cdn/chunks/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +2 -3
- package/dist/cdn/chunks/{de-DNuYQTmS.js.map → de-CeFJ6wbM.js.map} +1 -1
- package/dist/cdn/chunks/{de-JvCTMJPy.js → de-DtrXVcuY.js} +2 -3
- package/dist/cdn/chunks/{de-JvCTMJPy.js.map → de-DtrXVcuY.js.map} +1 -1
- package/dist/cdn/chunks/{dist-Bo8Thh8v.js → dist-8ym3y-pH.js} +44 -45
- package/dist/cdn/chunks/{dist-Bo8Thh8v.js.map → dist-8ym3y-pH.js.map} +1 -1
- package/dist/{dist-DI4_YSnG.js → cdn/chunks/dist-BMzNabtD.js} +107 -109
- package/dist/cdn/chunks/{dist-S-rLGqax.js.map → dist-BMzNabtD.js.map} +1 -1
- package/dist/cdn/chunks/dompurify-JVtr5-B1.js +872 -0
- package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +1 -0
- package/dist/cdn/chunks/{draggable-DZ0gwUJ6.js → draggable-Du8AUMFT.js} +654 -654
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
- package/dist/{editor-modal-Bzhl-PgI.js → cdn/chunks/editor-modal-CyCe560f.js} +893 -979
- package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js.map → editor-modal-CyCe560f.js.map} +1 -1
- package/dist/cdn/chunks/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +2 -3
- package/dist/cdn/chunks/{emojiData-6m0DBh7O.js.map → emojiData-CBNuCfum.js.map} +1 -1
- package/dist/cdn/chunks/{en-CW71OK66.js → en-D14i5nFh.js} +2 -3
- package/dist/cdn/chunks/{en-CW71OK66.js.map → en-D14i5nFh.js.map} +1 -1
- package/dist/cdn/chunks/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +2 -3
- package/dist/cdn/chunks/{en-CDhWRrF_.js.map → en-FzUuJ8HW.js.map} +1 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
- package/dist/cdn/chunks/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +2 -3
- package/dist/cdn/chunks/{es-CAv-Vldw.js.map → es-Dw_h7Oll.js.map} +1 -1
- package/dist/cdn/chunks/{es-DdK7zQfi.js → es-zDacbMhs.js} +2 -3
- package/dist/cdn/chunks/{es-DdK7zQfi.js.map → es-zDacbMhs.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-taJTZlLK.js → extensions-CFF2KWy-.js} +60 -65
- package/dist/cdn/chunks/{extensions-taJTZlLK.js.map → extensions-CFF2KWy-.js.map} +1 -1
- package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +2 -3
- package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js.map → formatAbsoluteDateTime-Ck2_zXra.js.map} +1 -1
- package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +1 -2
- package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js.map → formatRelativeTime-BTD8Ktt-.js.map} +1 -1
- package/dist/cdn/chunks/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +2 -3
- package/dist/cdn/chunks/{fr-DVPtxpR6.js.map → fr-BJaeKu_8.js.map} +1 -1
- package/dist/cdn/chunks/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +2 -3
- package/dist/cdn/chunks/{fr-Dz5Bgb7-.js.map → fr-CSgYtjOd.js.map} +1 -1
- package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js → htmlparser-hu3YnNQU.js} +6 -11
- package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js.map → htmlparser-hu3YnNQU.js.map} +1 -1
- package/dist/cdn/chunks/{icons-DNX6StSs.js → icons-okSPsLOa.js} +111 -114
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
- package/dist/cdn/chunks/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +2 -3
- package/dist/cdn/chunks/{ja-Di-zJiT8.js.map → ja-B7H3ID8O.js.map} +1 -1
- package/dist/cdn/chunks/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +2 -3
- package/dist/cdn/chunks/{ja-dcWzjStz.js.map → ja-Cu2HdYaK.js.map} +1 -1
- package/dist/cdn/chunks/{keys-BTpmg2Tt.js → keys-CUj6UA38.js} +3 -4
- package/dist/cdn/chunks/{keys-BTpmg2Tt.js.map → keys-CUj6UA38.js.map} +1 -1
- package/dist/{liquid.browser-Ct2-EezB.js → cdn/chunks/liquid.browser-rubac0VA.js} +993 -937
- package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
- package/dist/cdn/chunks/{logger-Tj0RPskW.js → logger-CqQTfJGx.js} +2 -3
- package/dist/cdn/chunks/{logger-Tj0RPskW.js.map → logger-CqQTfJGx.js.map} +1 -1
- package/dist/cdn/chunks/{nl-CvVuHYFL.js → nl-176ySmc5.js} +2 -3
- package/dist/cdn/chunks/{nl-CvVuHYFL.js.map → nl-176ySmc5.js.map} +1 -1
- package/dist/cdn/chunks/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +2 -3
- package/dist/cdn/chunks/{nl-LZNqQgE4.js.map → nl-1Ai2NykB.js.map} +1 -1
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js → normalizeMergeTagMarkup-C_KlfSW4.js} +3 -4
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js → preRenderCustomBlocks-BcXIz7oJ.js} +6 -7
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js.map → pt-BR-Bp92Fc6J.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js.map → pt-BR-CIbp__Z7.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js.map → pt-BR-dDlTwX18.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-Cs4GGEtd.js → pusher-x9rNqzon.js} +3 -4
- package/dist/cdn/chunks/{pusher-Cs4GGEtd.js.map → pusher-x9rNqzon.js.map} +1 -1
- package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +2 -3
- package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js.map → readableTextColor-BfZUGnVj.js.map} +1 -1
- package/dist/cdn/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +72 -0
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +1 -0
- package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js → socialIcons-jsTDmkbb.js} +608 -632
- package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
- package/dist/cdn/chunks/src-C7bkofBL.js +647 -0
- package/dist/cdn/chunks/src-C7bkofBL.js.map +1 -0
- package/dist/cdn/chunks/{src-Bs_yxk3h.js → src-DEd87i_U.js} +502 -537
- package/dist/cdn/chunks/src-DEd87i_U.js.map +1 -0
- package/dist/cdn/chunks/{src-BNFnxfrA.js → src-DwWrYnUj.js} +188 -171
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
- package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +2 -3
- package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js.map → styleConstants-B8xVRiwX.js.map} +1 -1
- package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +2 -3
- package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js.map → templateSettingsFields-cjlP-jdw.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-CtVrAViq.js → tiptap-CbiTlECY.js} +3402 -3278
- package/dist/cdn/chunks/tiptap-CbiTlECY.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js → useCloudI18n-DY8_-ETE.js} +4 -5
- package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.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-CR5GjJD6.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-CbVubQhM.js → useI18n-D8pY4LTq.js} +4 -5
- package/dist/cdn/chunks/{useI18n-CbVubQhM.js.map → useI18n-D8pY4LTq.js.map} +1 -1
- package/dist/{useLogicTag-DKLZ1T9H.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +6 -5
- package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
- package/dist/{useMergeTag-Bhdx7AKk.js → cdn/chunks/useMergeTag-B-aG--s1.js} +8 -7
- package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
- package/dist/{usePopoverPosition-BZea45XK.js → cdn/chunks/usePopoverPosition-DSMtmu2W.js} +8 -10
- package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js → useScrollToBlock-vjQ0fe-L.js} +5 -7
- package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js → withCurrentFont-hZTvYBHO.js} +3 -4
- package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1433 -1454
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-yYsp5Xpk.js → check-BZ8o0eet.js} +1 -2
- package/dist/{chevron-down-DTmD06_j.js → chevron-down-DfAAfILv.js} +1 -2
- package/dist/{chevron-right-BSeYZOxc.js → chevron-right-Bk4mGdr7.js} +1 -2
- package/dist/{chevron-up-BOApwrxi.js → chevron-up-MhUf_azW.js} +1 -2
- package/dist/{circle-alert-BMszY8im.js → circle-alert-CShJwVFv.js} +1 -2
- package/dist/{clock-HADxnl6-.js → clock-CTfD6OCt.js} +1 -2
- package/dist/{createCloudRuntime-DVQI_ReU.js → createCloudRuntime-DCgO4A1r.js} +31 -37
- package/dist/{createLucideIcon-0lYYH3EW.js → createLucideIcon-CvhTA2KG.js} +6 -11
- package/dist/{de-DBOTcDj2.js → de-6M4JoHoD.js} +1 -2
- package/dist/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +1 -2
- package/dist/{de-JvCTMJPy.js → de-DtrXVcuY.js} +1 -2
- package/dist/{dist-BC-ZEYLd.js → dist-BF5zEHop.js} +2 -3
- package/dist/{dist-CyBwSiAa.js → dist-BS5uKktL.js} +2 -3
- package/dist/{cdn/chunks/dist-S-rLGqax.js → dist-ByCWA2Tv.js} +101 -101
- package/dist/{dist-DtOF3bDW.js → dist-CKi_npZM.js} +378 -343
- package/dist/{dist-C7EtxNCb.js → dist-CVy-7PHQ.js} +55 -56
- package/dist/{dist-Cr7RPxI9.js → dist-CWSG7Kj0.js} +478 -461
- package/dist/{dist-DXyGqIDE.js → dist-Cy8I5scI.js} +2 -3
- package/dist/{dist-C_dV9QAx.js → dist-D6cMdrfG.js} +133 -133
- package/dist/{dist-DVNjPKsH.js → dist-D6fZec6r.js} +3 -4
- package/dist/{dist-CuLwJF7H.js → dist-Dd5MU2Ev.js} +23 -14
- package/dist/dist-DyFArF_G.js +4 -0
- package/dist/{dist-DBxgrOeo.js → dist-V7W1UhVr.js} +1882 -1792
- package/dist/{dist-DPcf6XZ8.js → dist-p3wymUDt.js} +2 -3
- package/dist/dist-pA3ooG6N.js +4 -0
- package/dist/{dist-3HpYixwF.js → dist-txQLT2sF.js} +173 -161
- package/dist/{cdn/chunks/editor-modal-CI6EfeMd.js → editor-modal-zaZHcmlO.js} +915 -859
- package/dist/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +1 -2
- package/dist/{en-CW71OK66.js → en-D14i5nFh.js} +1 -2
- package/dist/en-Db76vJbY.js +1 -0
- package/dist/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +1 -2
- package/dist/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +1 -2
- package/dist/{es-DdK7zQfi.js → es-zDacbMhs.js} +1 -2
- package/dist/{extensions-CdyweA50.js → extensions-fo_c-vqf.js} +82 -91
- package/dist/{eye-DWkSvYpj.js → eye-7W4t5e0Q.js} +1 -2
- package/dist/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +1 -2
- package/dist/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +0 -1
- package/dist/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +1 -2
- package/dist/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +1 -2
- package/dist/{image-DesWjcZ4.js → image-BDiRFzSd.js} +1 -2
- package/dist/index.d.ts +6 -6
- package/dist/{info-ClWJGoZy.js → info-Cxi3-Kh9.js} +1 -2
- package/dist/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +1 -2
- package/dist/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +1 -2
- package/dist/{keys-Zd9KWRD1.js → keys-BgRERHzu.js} +2 -3
- package/dist/{link-BqRicFTA.js → link-ju_2Cmir.js} +1 -2
- package/dist/{cdn/chunks/liquid.browser-Bbt17cVz.js → liquid.browser-DUXEekoN.js} +991 -939
- package/dist/{list-bojQr9bn.js → list-DYZJf0aZ.js} +1 -2
- package/dist/{loader-circle-B2B8LbUu.js → loader-circle-BZRD0a4I.js} +1 -2
- package/dist/{logger-k9Nbj3Cp.js → logger-BOu7oEtk.js} +1 -2
- package/dist/{message-circle-BEuiNsyZ.js → message-circle-DuEw4Zfx.js} +1 -2
- package/dist/{nl-CvVuHYFL.js → nl-176ySmc5.js} +1 -2
- package/dist/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +1 -2
- package/dist/{normalizeMergeTagMarkup-P6SUBuPv.js → normalizeMergeTagMarkup-CELnOlgK.js} +30 -31
- package/dist/{package-DCROB4aM.js → package-CePMr2kK.js} +1 -2
- package/dist/{pencil-CEotCKbf.js → pencil-D3aFCL7c.js} +1 -2
- package/dist/{preRenderCustomBlocks-D8rr61_z.js → preRenderCustomBlocks--_xc0XK3.js} +4 -5
- package/dist/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +1 -2
- package/dist/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +1 -2
- package/dist/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +1 -2
- package/dist/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +1 -2
- package/dist/{refresh-cw-C6M2mHNC.js → refresh-cw-xnro7_Sk.js} +1 -2
- package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
- package/dist/{runtime-dom.esm-bundler-B8WCZWUm.js → runtime-dom.esm-bundler-BURR-bj5.js} +121 -122
- package/dist/sanitizeHtml-BzfzpYJY.js +942 -0
- package/dist/{search-Cy99zPYf.js → search-CDrstRBv.js} +1 -2
- package/dist/{send-BDLJFsf3.js → send-DROkPOaX.js} +1 -2
- package/dist/{smartphone-CVvQaNA4.js → smartphone-Bx6u_tjn.js} +1 -2
- package/dist/{socialIcons-Dd-jRiVe.js → socialIcons-D7MGsg0d.js} +553 -564
- package/dist/{sparkles-Ce0Qz0ox.js → sparkles-CdaTtvoz.js} +1 -2
- package/dist/{square-BWlolnXe.js → square-BbCROH_f.js} +1 -2
- package/dist/style.css +1 -1
- package/dist/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +1 -2
- package/dist/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +1 -2
- package/dist/templatical-editor.js +1231 -1251
- package/dist/{text-align-start-D1V5gPTy.js → text-align-start-CGacJ9Vw.js} +1 -2
- package/dist/{trash-CZfiUFmw.js → trash-DxCd7zIy.js} +1 -2
- package/dist/{triangle-alert-CFDzyFC7.js → triangle-alert-7_oaitpf.js} +1 -2
- package/dist/{upload-BJfvdIrD.js → upload-DuFEOi_0.js} +1 -2
- package/dist/{useCloudI18n-Dcjua65H.js → useCloudI18n-DEMmUKuO.js} +3 -4
- package/dist/{useEditorCore-BTLeAVlM.js → useEditorCore-BSo2sSID.js} +1568 -1573
- package/dist/useEditorRoot-BMcoCLBx.js +7 -0
- package/dist/{useI18n-BdoY7xDE.js → useI18n-BBrHTdu8.js} +3 -4
- package/dist/{cdn/chunks/useLogicTag-B49Nc53Y.js → useLogicTag-ZPC39rfH.js} +4 -7
- package/dist/{cdn/chunks/useMergeTag-B0KryMj8.js → useMergeTag-BQ4qqWpQ.js} +6 -9
- package/dist/{cdn/chunks/usePopoverPosition-C829ps5i.js → usePopoverPosition-DV1PxL66.js} +6 -12
- package/dist/{useScrollToBlock-FmNMALM_.js → useScrollToBlock-BSyAV4pk.js} +4 -6
- package/dist/{vue.runtime.esm-bundler-DgFJ6GPG.js → vue.runtime.esm-bundler-CnEeTfhs.js} +1001 -1002
- package/dist/{withCurrentFont-BATJHNve.js → withCurrentFont-B22FXAF5.js} +2 -3
- package/dist/{x-CZ0Js0hA.js → x-BpfG7v9g.js} +1 -2
- package/package.json +26 -24
- package/dist/BlockIssueBadge-CKwZ1Vgn.js +0 -34
- package/dist/CommentsSidebar-Ca3DyFOX.js +0 -500
- package/dist/IssuesPanel-C8nMUccy.js +0 -360
- package/dist/SavedBlocksBrowserModal-wnkvxpm_.js +0 -360
- package/dist/WrapperBlock-BO619LAb.js +0 -45
- package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js +0 -35
- package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js.map +0 -1
- package/dist/cdn/chunks/LoadingTrack-BIcL4NiY.js +0 -12
- package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +0 -357
- package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js.map +0 -1
- package/dist/cdn/chunks/TplModal-BXQzmsJX.js +0 -52
- package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +0 -22
- package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js.map +0 -1
- package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +0 -1
- package/dist/cdn/chunks/en-ifvu6oPv.js +0 -1
- package/dist/cdn/chunks/icons-DNX6StSs.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-Bbt17cVz.js.map +0 -1
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +0 -62
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +0 -1
- package/dist/cdn/chunks/src-BNFnxfrA.js.map +0 -1
- package/dist/cdn/chunks/src-Bs_yxk3h.js.map +0 -1
- package/dist/cdn/chunks/src-YGkzYyu0.js +0 -649
- package/dist/cdn/chunks/src-YGkzYyu0.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CtVrAViq.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +0 -2586
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +0 -10
- package/dist/dist-BPFcLKTw.js +0 -5
- package/dist/dist-D7Yj7E-F.js +0 -5
- package/dist/en-DwV15ltA.js +0 -1
- package/dist/sanitizeRichTextHtml-DeISfLFr.js +0 -60
- package/dist/useEditorRoot-DUy67lJu.js +0 -8
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as I, c as L, n as R, o as z, s as B, t as V } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import {
|
|
4
|
-
import { A as pe, C as me, F as he, H as ge, I as _e, P as ve, U as ye, c as be, g as xe, j as Se, s as Ce, z as we } from "./socialIcons-
|
|
5
|
-
import { _ as Te, d as Ee, g as De } from "./dist-
|
|
6
|
-
import { a as Oe } from "./dist-
|
|
7
|
-
import { B as ke, E as Ae, F as je, I as Me, L as Ne, M as Pe, O as Fe, P as Ie, R as Le, V as Re, _ as ze, a as Be, c as Ve, d as He, f as Ue, g as We, h as Ge, i as Ke, l as qe, m as Je, n as Ye, o as Xe, p as Ze, r as Qe, s as $e, t as et, u as tt, v as nt, w as rt, x as it, z as at } from "./useEditorCore-
|
|
8
|
-
import { $ as ot, A as st, E as ct, G as lt, J as ut, K as dt, M as ft, N as pt, P as mt, Q as ht, U as gt, V as _t, X as vt, Z as yt, f as bt, g as xt, l as St, m as Ct, o as wt, p as Tt, q as Et, r as Dt, s as Ot, t as kt, v as At, z as jt } from "./keys-
|
|
9
|
-
import { t as Mt } from "./logger-
|
|
10
|
-
import { t as $ } from "./useI18n-
|
|
11
|
-
import { t as Nt } from "./templateSettingsFields-
|
|
12
|
-
import { t as Pt } from "./createLucideIcon-
|
|
13
|
-
import { t as Ft } from "./check-
|
|
14
|
-
import { t as It } from "./chevron-down-
|
|
15
|
-
import { t as Lt } from "./circle-alert-
|
|
16
|
-
import { t as Rt } from "./blockTypeIcons-
|
|
17
|
-
import { t as zt } from "./eye-
|
|
18
|
-
import { i as Bt, n as Vt, o as Ht, r as Ut, t as Wt } from "./useScrollToBlock-
|
|
19
|
-
import { t as Gt } from "./loader-circle-
|
|
20
|
-
import { t as Kt } from "./message-circle-
|
|
21
|
-
import { n as qt } from "./smartphone-
|
|
22
|
-
import { t as Jt } from "./package-
|
|
23
|
-
import { t as Yt } from "./search-
|
|
24
|
-
import { t as Xt } from "./send-
|
|
25
|
-
import { t as Zt } from "./sparkles-
|
|
26
|
-
import { n as Qt, t as $t } from "./MergeTagModeToggle-
|
|
27
|
-
import { t as en } from "./x-
|
|
28
|
-
import { t as tn } from "./_plugin-vue_export-helper-
|
|
29
|
-
import { a as nn, i as rn, n as an, o as on, t as sn } from "./normalizeMergeTagMarkup-
|
|
30
|
-
import { t as cn } from "./aiErrors-
|
|
31
|
-
import { t as ln } from "./formatAbsoluteDateTime-
|
|
32
|
-
import { n as un, t as dn } from "./aiImageContext-
|
|
33
|
-
import { C as fn, S as pn, p as mn, y as hn } from "./styleConstants-
|
|
34
|
-
import { t as gn } from "./WrapperBlock-
|
|
35
|
-
import { t as _n } from "./formatRelativeTime-
|
|
36
|
-
import { t as vn } from "./TplModal-
|
|
37
|
-
import { t as yn } from "./preRenderCustomBlocks
|
|
38
|
-
|
|
1
|
+
import { $ as e, A as t, C as n, D as r, H as i, I as a, K as o, L as s, M as c, Mt as l, N as u, Nt as d, P as f, T as p, U as m, X as h, _ as g, c as _, d as v, f as y, g as b, h as x, j as S, jt as C, k as w, l as T, m as E, nt as D, r as O, st as k, tt as A, u as j, v as M, x as N, y as P, z as F } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
+
import { a as I, c as L, n as R, o as z, s as B, t as V } from "./runtime-dom.esm-bundler-BURR-bj5.js";
|
|
3
|
+
import { D as H, H as ee, I as U, Mt as W, P as G, St as K, Z as q, a as J, b as Y, dt as X, ft as te, g as ne, gt as re, it as Z, k as ie, l as ae, m as Q, ot as oe, p as se, pt as ce, v as le, w as ue, x as de, y as fe } from "./dist-CKi_npZM.js";
|
|
4
|
+
import { A as pe, C as me, F as he, H as ge, I as _e, P as ve, U as ye, c as be, g as xe, j as Se, s as Ce, z as we } from "./socialIcons-D7MGsg0d.js";
|
|
5
|
+
import { _ as Te, d as Ee, g as De } from "./dist-CVy-7PHQ.js";
|
|
6
|
+
import { a as Oe } from "./dist-ByCWA2Tv.js";
|
|
7
|
+
import { B as ke, E as Ae, F as je, I as Me, L as Ne, M as Pe, O as Fe, P as Ie, R as Le, V as Re, _ as ze, a as Be, c as Ve, d as He, f as Ue, g as We, h as Ge, i as Ke, l as qe, m as Je, n as Ye, o as Xe, p as Ze, r as Qe, s as $e, t as et, u as tt, v as nt, w as rt, x as it, z as at } from "./useEditorCore-BSo2sSID.js";
|
|
8
|
+
import { $ as ot, A as st, E as ct, G as lt, J as ut, K as dt, M as ft, N as pt, P as mt, Q as ht, U as gt, V as _t, X as vt, Z as yt, f as bt, g as xt, l as St, m as Ct, o as wt, p as Tt, q as Et, r as Dt, s as Ot, t as kt, v as At, z as jt } from "./keys-BgRERHzu.js";
|
|
9
|
+
import { t as Mt } from "./logger-BOu7oEtk.js";
|
|
10
|
+
import { t as $ } from "./useI18n-BBrHTdu8.js";
|
|
11
|
+
import { t as Nt } from "./templateSettingsFields-cjlP-jdw.js";
|
|
12
|
+
import { t as Pt } from "./createLucideIcon-CvhTA2KG.js";
|
|
13
|
+
import { t as Ft } from "./check-BZ8o0eet.js";
|
|
14
|
+
import { t as It } from "./chevron-down-DfAAfILv.js";
|
|
15
|
+
import { t as Lt } from "./circle-alert-CShJwVFv.js";
|
|
16
|
+
import { t as Rt } from "./blockTypeIcons-BHjlPnPf.js";
|
|
17
|
+
import { t as zt } from "./eye-7W4t5e0Q.js";
|
|
18
|
+
import { i as Bt, n as Vt, o as Ht, r as Ut, t as Wt } from "./useScrollToBlock-BSyAV4pk.js";
|
|
19
|
+
import { t as Gt } from "./loader-circle-BZRD0a4I.js";
|
|
20
|
+
import { t as Kt } from "./message-circle-DuEw4Zfx.js";
|
|
21
|
+
import { n as qt } from "./smartphone-Bx6u_tjn.js";
|
|
22
|
+
import { t as Jt } from "./package-CePMr2kK.js";
|
|
23
|
+
import { t as Yt } from "./search-CDrstRBv.js";
|
|
24
|
+
import { t as Xt } from "./send-DROkPOaX.js";
|
|
25
|
+
import { t as Zt } from "./sparkles-CdaTtvoz.js";
|
|
26
|
+
import { n as Qt, t as $t } from "./MergeTagModeToggle-DxujhYJ4.js";
|
|
27
|
+
import { t as en } from "./x-BpfG7v9g.js";
|
|
28
|
+
import { t as tn } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
29
|
+
import { a as nn, i as rn, n as an, o as on, t as sn } from "./normalizeMergeTagMarkup-CELnOlgK.js";
|
|
30
|
+
import { t as cn } from "./aiErrors-C3QEMB0x.js";
|
|
31
|
+
import { t as ln } from "./formatAbsoluteDateTime-Ck2_zXra.js";
|
|
32
|
+
import { n as un, t as dn } from "./aiImageContext-BQ5mQ6B5.js";
|
|
33
|
+
import { C as fn, S as pn, p as mn, y as hn } from "./styleConstants-B8xVRiwX.js";
|
|
34
|
+
import { t as gn } from "./WrapperBlock-BsJv_Fiw.js";
|
|
35
|
+
import { t as _n } from "./formatRelativeTime-BTD8Ktt-.js";
|
|
36
|
+
import { t as vn } from "./TplModal-DLMssVlt.js";
|
|
37
|
+
import { t as yn } from "./preRenderCustomBlocks--_xc0XK3.js";
|
|
38
|
+
// src/utils/resolveTemplateDefaults.ts
|
|
39
39
|
var bn = /^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i;
|
|
40
40
|
function xn(e) {
|
|
41
41
|
let t = e.locale?.trim().replace(/_/g, "-"), n = t && bn.test(t) ? { locale: t } : void 0;
|
|
@@ -235,74 +235,74 @@ function Pn(e) {
|
|
|
235
235
|
templateUpdated: r
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
|
-
function Fn(
|
|
239
|
-
let
|
|
238
|
+
function Fn(t) {
|
|
239
|
+
let n = e([]), r = 1, i = /* @__PURE__ */ new Map();
|
|
240
240
|
function a(e) {
|
|
241
|
-
let t =
|
|
242
|
-
t && clearTimeout(t),
|
|
243
|
-
}
|
|
244
|
-
function o(e) {
|
|
245
|
-
let r = n++;
|
|
246
|
-
return t.value = [{
|
|
247
|
-
...e,
|
|
248
|
-
id: r
|
|
249
|
-
}], a(r), r;
|
|
241
|
+
let t = i.get(e);
|
|
242
|
+
t && clearTimeout(t), i.set(e, setTimeout(() => c(e), jn));
|
|
250
243
|
}
|
|
251
244
|
function s(e) {
|
|
252
|
-
let
|
|
253
|
-
|
|
245
|
+
let t = r++;
|
|
246
|
+
return n.value = [{
|
|
247
|
+
...e,
|
|
248
|
+
id: t
|
|
249
|
+
}], a(t), t;
|
|
254
250
|
}
|
|
255
251
|
function c(e) {
|
|
256
|
-
|
|
252
|
+
let t = i.get(e);
|
|
253
|
+
t && (clearTimeout(t), i.delete(e)), n.value = n.value.filter((t) => t.id !== e);
|
|
254
|
+
}
|
|
255
|
+
function l(e) {
|
|
256
|
+
e.type === "selectionRefused" ? s({
|
|
257
257
|
kind: "selectionRefused",
|
|
258
258
|
name: e.holder.name,
|
|
259
259
|
isGuest: e.holder.type === "guest"
|
|
260
|
-
}) : e.type === "editRefused" ?
|
|
260
|
+
}) : e.type === "editRefused" ? s({
|
|
261
261
|
kind: "editRefused",
|
|
262
262
|
code: e.code,
|
|
263
263
|
...e.holder ? {
|
|
264
264
|
name: e.holder.name,
|
|
265
265
|
isGuest: e.holder.type === "guest"
|
|
266
266
|
} : {}
|
|
267
|
-
}) :
|
|
267
|
+
}) : s({ kind: "undoSkipped" });
|
|
268
268
|
}
|
|
269
|
-
let
|
|
269
|
+
let u = null, d = A(/* @__PURE__ */ new Map()), f = /* @__PURE__ */ new Map(), p = 0;
|
|
270
270
|
function m(e) {
|
|
271
271
|
if (e.length === 0) return;
|
|
272
|
-
let t = ++p, n = new Map(
|
|
272
|
+
let t = ++p, n = new Map(d.value);
|
|
273
273
|
for (let r of e) {
|
|
274
274
|
n.set(r, t);
|
|
275
|
-
let e =
|
|
276
|
-
e && clearTimeout(e),
|
|
277
|
-
|
|
278
|
-
let e = new Map(
|
|
279
|
-
e.delete(r),
|
|
275
|
+
let e = f.get(r);
|
|
276
|
+
e && clearTimeout(e), f.set(r, setTimeout(() => {
|
|
277
|
+
f.delete(r);
|
|
278
|
+
let e = new Map(d.value);
|
|
279
|
+
e.delete(r), d.value = e;
|
|
280
280
|
}, Mn));
|
|
281
281
|
}
|
|
282
|
-
|
|
282
|
+
d.value = n;
|
|
283
283
|
}
|
|
284
|
-
function g(e,
|
|
284
|
+
function g(e, t) {
|
|
285
285
|
if (e.type !== "mcp" && e.type !== "ai") return;
|
|
286
286
|
let r = e.type === "ai";
|
|
287
287
|
if (r && e.sessionId === v.sessionId) {
|
|
288
|
-
|
|
288
|
+
t.templateUpdated || m(t.blockIds);
|
|
289
289
|
return;
|
|
290
290
|
}
|
|
291
|
-
let i = !r && typeof e.client == "string" && e.client.trim() !== "" ? e.client : null,
|
|
292
|
-
(!
|
|
293
|
-
key:
|
|
291
|
+
let i = !r && typeof e.client == "string" && e.client.trim() !== "" ? e.client : null, o = `${e.type}\n${e.id ?? ""}\n${i ?? ""}`, c = Date.now(), l = u;
|
|
292
|
+
(!l || l.key !== o || c - l.lastAt > 2e3 || n.value.at(-1)?.id !== l.noticeId) && (l = {
|
|
293
|
+
key: o,
|
|
294
294
|
noticeId: 0,
|
|
295
295
|
lastAt: c,
|
|
296
296
|
blockIds: /* @__PURE__ */ new Set(),
|
|
297
297
|
settings: !1,
|
|
298
298
|
templateUpdated: !1
|
|
299
299
|
});
|
|
300
|
-
for (let e of
|
|
301
|
-
|
|
300
|
+
for (let e of t.blockIds) l.blockIds.add(e);
|
|
301
|
+
l.settings ||= t.settings, l.templateUpdated ||= t.templateUpdated, l.lastAt = c;
|
|
302
302
|
let d = {
|
|
303
|
-
blocks:
|
|
304
|
-
settings:
|
|
305
|
-
templateUpdated:
|
|
303
|
+
blocks: l.blockIds.size,
|
|
304
|
+
settings: l.settings,
|
|
305
|
+
templateUpdated: l.templateUpdated
|
|
306
306
|
}, f = r ? {
|
|
307
307
|
kind: "aiEdited",
|
|
308
308
|
name: e.name,
|
|
@@ -313,49 +313,49 @@ function Fn(e) {
|
|
|
313
313
|
name: e.name,
|
|
314
314
|
...d
|
|
315
315
|
};
|
|
316
|
-
|
|
316
|
+
l === u ? (n.value = [{
|
|
317
317
|
...f,
|
|
318
|
-
id:
|
|
319
|
-
}], a(
|
|
318
|
+
id: l.noticeId
|
|
319
|
+
}], a(l.noticeId)) : (l.noticeId = s(f), u = l), t.templateUpdated || m(t.blockIds);
|
|
320
320
|
}
|
|
321
321
|
let v = ve({
|
|
322
|
-
provider:
|
|
323
|
-
loadTemplate:
|
|
324
|
-
normalizeRemoteOperations: (
|
|
325
|
-
onRemoteChange: (
|
|
322
|
+
provider: t.provider,
|
|
323
|
+
loadTemplate: t.loadTemplate,
|
|
324
|
+
normalizeRemoteOperations: (e, n) => rn(e, n, t.mergeTags),
|
|
325
|
+
onRemoteChange: (e) => {
|
|
326
326
|
try {
|
|
327
|
-
g(
|
|
327
|
+
g(e.actor, Pn(e.ops));
|
|
328
328
|
} finally {
|
|
329
|
-
|
|
329
|
+
t.onRemoteChange?.(e);
|
|
330
330
|
}
|
|
331
331
|
},
|
|
332
332
|
onRemoteResync: ({ actor: e }) => g(e, Nn),
|
|
333
|
-
onNotice:
|
|
334
|
-
onError:
|
|
333
|
+
onNotice: l,
|
|
334
|
+
onError: t.onError
|
|
335
335
|
});
|
|
336
|
-
|
|
337
|
-
for (let e of
|
|
338
|
-
for (let e of
|
|
339
|
-
|
|
336
|
+
o() && h(() => {
|
|
337
|
+
for (let e of i.values()) clearTimeout(e);
|
|
338
|
+
for (let e of f.values()) clearTimeout(e);
|
|
339
|
+
i.clear(), f.clear();
|
|
340
340
|
});
|
|
341
|
-
let
|
|
342
|
-
let
|
|
343
|
-
for (let
|
|
344
|
-
if (
|
|
345
|
-
let
|
|
346
|
-
r.has(
|
|
347
|
-
key:
|
|
348
|
-
type:
|
|
349
|
-
name:
|
|
350
|
-
...
|
|
351
|
-
color:
|
|
341
|
+
let y = _(() => {
|
|
342
|
+
let e = v.members.value, n = e.find((e) => e.sessionId === v.sessionId)?.userId ?? t.user?.id ?? null, r = /* @__PURE__ */ new Map();
|
|
343
|
+
for (let t of e) {
|
|
344
|
+
if (t.sessionId === v.sessionId || t.userId !== null && t.userId === n) continue;
|
|
345
|
+
let e = t.userId === null ? `guest:${t.sessionId}` : `user:${t.userId}`;
|
|
346
|
+
r.has(e) || r.set(e, {
|
|
347
|
+
key: e,
|
|
348
|
+
type: t.type,
|
|
349
|
+
name: t.name,
|
|
350
|
+
...t.avatarUrl ? { avatarUrl: t.avatarUrl } : {},
|
|
351
|
+
color: t.color
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
354
|
return [...r.values()];
|
|
355
|
-
}),
|
|
355
|
+
}), b = {
|
|
356
356
|
canUndo: v.canUndo,
|
|
357
357
|
canRedo: v.canRedo,
|
|
358
|
-
isNavigating:
|
|
358
|
+
isNavigating: e(!1),
|
|
359
359
|
undo: v.undo,
|
|
360
360
|
redo: v.redo,
|
|
361
361
|
record: () => {},
|
|
@@ -367,13 +367,13 @@ function Fn(e) {
|
|
|
367
367
|
core: v,
|
|
368
368
|
locks: v.locks,
|
|
369
369
|
attach: v.attach,
|
|
370
|
-
history:
|
|
371
|
-
people:
|
|
370
|
+
history: b,
|
|
371
|
+
people: y,
|
|
372
372
|
isLive: _(() => v.members.value.length > 0),
|
|
373
373
|
connection: v.connection,
|
|
374
|
-
notices:
|
|
375
|
-
dismissNotice:
|
|
376
|
-
reportReplaceRefused: (e) =>
|
|
374
|
+
notices: n,
|
|
375
|
+
dismissNotice: c,
|
|
376
|
+
reportReplaceRefused: (e) => s({
|
|
377
377
|
kind: "replaceRefused",
|
|
378
378
|
holders: [...new Map(e.map((e) => [e.type === "guest" ? `guest:${e.sessionId}` : e.id, {
|
|
379
379
|
name: e.name,
|
|
@@ -383,66 +383,64 @@ function Fn(e) {
|
|
|
383
383
|
outline: m,
|
|
384
384
|
capability: {
|
|
385
385
|
lockOf: (e) => v.locks.value.get(e) ?? null,
|
|
386
|
-
agentHighlightOf: (e) =>
|
|
386
|
+
agentHighlightOf: (e) => d.value.get(e) ?? null
|
|
387
387
|
}
|
|
388
388
|
};
|
|
389
389
|
}
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
onError: e.onError
|
|
390
|
+
// src/composables/useCommentsFeature.ts
|
|
391
|
+
function In(t) {
|
|
392
|
+
let { provider: n, editor: r } = t, i = _e({
|
|
393
|
+
provider: n,
|
|
394
|
+
getTemplateId: () => r.state.template?.id ?? null,
|
|
395
|
+
getUser: () => t.user ?? null,
|
|
396
|
+
onError: t.onError
|
|
398
397
|
});
|
|
399
398
|
he({
|
|
400
|
-
comments:
|
|
401
|
-
provider:
|
|
402
|
-
getTemplateId: () =>
|
|
399
|
+
comments: i,
|
|
400
|
+
provider: n,
|
|
401
|
+
getTemplateId: () => r.state.template?.id ?? null
|
|
403
402
|
});
|
|
404
|
-
let
|
|
405
|
-
F(
|
|
406
|
-
e || (
|
|
407
|
-
}), F([
|
|
408
|
-
e && t &&
|
|
409
|
-
}, { immediate: !0 }), F(
|
|
410
|
-
e &&
|
|
403
|
+
let a = t.isOpen ?? e(!1), o = e(null), s = _(() => !!r.state.template?.id), c = i.unresolvedCount, l = _(() => t.user ? t.isAvailable?.() ?? !0 : !1);
|
|
404
|
+
F(l, (e) => {
|
|
405
|
+
e || (a.value = !1);
|
|
406
|
+
}), F([l, s], ([e, t]) => {
|
|
407
|
+
e && t && i.load().catch(() => {});
|
|
408
|
+
}, { immediate: !0 }), F(a, (e) => {
|
|
409
|
+
e && s.value && i.load().catch(() => {});
|
|
411
410
|
});
|
|
412
|
-
function l() {
|
|
413
|
-
c.value && (i.value = !i.value);
|
|
414
|
-
}
|
|
415
411
|
function u() {
|
|
416
|
-
|
|
412
|
+
l.value && (a.value = !a.value);
|
|
417
413
|
}
|
|
418
|
-
function d(
|
|
419
|
-
|
|
414
|
+
function d() {
|
|
415
|
+
a.value = !1;
|
|
416
|
+
}
|
|
417
|
+
function f(e) {
|
|
418
|
+
l.value && (o.value = e, a.value ? s.value && i.load().catch(() => {}) : a.value = !0);
|
|
420
419
|
}
|
|
421
420
|
return {
|
|
422
|
-
headless:
|
|
423
|
-
isOpen:
|
|
424
|
-
isAvailable:
|
|
425
|
-
hasTemplate:
|
|
426
|
-
unresolvedCount:
|
|
427
|
-
filterBlockId:
|
|
428
|
-
toggle:
|
|
429
|
-
close:
|
|
430
|
-
openForBlock:
|
|
421
|
+
headless: i,
|
|
422
|
+
isOpen: a,
|
|
423
|
+
isAvailable: l,
|
|
424
|
+
hasTemplate: s,
|
|
425
|
+
unresolvedCount: c,
|
|
426
|
+
filterBlockId: o,
|
|
427
|
+
toggle: u,
|
|
428
|
+
close: d,
|
|
429
|
+
openForBlock: f,
|
|
431
430
|
capability: {
|
|
432
|
-
getBlockCount: (e) =>
|
|
433
|
-
openForBlock:
|
|
434
|
-
isBlockSaved: (
|
|
435
|
-
isAvailable:
|
|
436
|
-
unresolvedCount:
|
|
437
|
-
canCreate:
|
|
438
|
-
canUpdate:
|
|
439
|
-
canDelete:
|
|
440
|
-
canResolve:
|
|
431
|
+
getBlockCount: (e) => i.commentCountByBlock.value.get(e) ?? 0,
|
|
432
|
+
openForBlock: f,
|
|
433
|
+
isBlockSaved: (e) => t.isBlockSaved?.(e) ?? !0,
|
|
434
|
+
isAvailable: l,
|
|
435
|
+
unresolvedCount: c,
|
|
436
|
+
canCreate: i.canCreate,
|
|
437
|
+
canUpdate: i.canUpdate,
|
|
438
|
+
canDelete: i.canDelete,
|
|
439
|
+
canResolve: i.canResolve
|
|
441
440
|
}
|
|
442
441
|
};
|
|
443
442
|
}
|
|
444
|
-
|
|
445
|
-
//#region src/composables/useAiFeature.ts
|
|
443
|
+
// src/composables/useAiFeature.ts
|
|
446
444
|
var Ln = 3e3, Rn = 1e3, zn = (e) => e instanceof Error && e.name === "AbortError", Bn = (e) => e instanceof Error ? e : Error(String(e)), Vn = (e) => e.batches.reduce((e, t) => e + t.operationCount, 0);
|
|
447
445
|
function Hn(e, t) {
|
|
448
446
|
return e.some((e) => e.id === t || e.type === "section" && Array.isArray(e.children) && e.children.some((e) => Array.isArray(e) && Hn(e, t)));
|
|
@@ -455,22 +453,22 @@ function Un(e) {
|
|
|
455
453
|
message: e.message
|
|
456
454
|
};
|
|
457
455
|
}
|
|
458
|
-
function Wn(
|
|
459
|
-
let { provider:
|
|
460
|
-
function
|
|
461
|
-
let
|
|
456
|
+
function Wn(t) {
|
|
457
|
+
let { provider: n, editor: r, collaboration: i } = t, a = n.conversation ?? null, o = crypto.randomUUID(), s = e(null), c = /* @__PURE__ */ new Map(), l = !1, u = 0, d = !1;
|
|
458
|
+
function f(t) {
|
|
459
|
+
let n = z(t);
|
|
462
460
|
return {
|
|
463
|
-
id:
|
|
464
|
-
memory:
|
|
465
|
-
generation: ++
|
|
466
|
-
messages:
|
|
467
|
-
isLoadingHistory:
|
|
468
|
-
busy:
|
|
469
|
-
keptYourVersion:
|
|
470
|
-
failure:
|
|
471
|
-
failedPrompt:
|
|
472
|
-
failedAttachments:
|
|
473
|
-
importQueue:
|
|
461
|
+
id: t,
|
|
462
|
+
memory: n,
|
|
463
|
+
generation: ++n.generation,
|
|
464
|
+
messages: e(n.items),
|
|
465
|
+
isLoadingHistory: e(!1),
|
|
466
|
+
busy: e(!1),
|
|
467
|
+
keptYourVersion: e(!1),
|
|
468
|
+
failure: e(null),
|
|
469
|
+
failedPrompt: e(null),
|
|
470
|
+
failedAttachments: A([]),
|
|
471
|
+
importQueue: A([]),
|
|
474
472
|
loaded: !1,
|
|
475
473
|
historyGeneration: 0,
|
|
476
474
|
pendingHistory: null,
|
|
@@ -480,12 +478,12 @@ function Wn(e) {
|
|
|
480
478
|
committingReload: !1,
|
|
481
479
|
lastRecordedTurn: null,
|
|
482
480
|
timers: /* @__PURE__ */ new Set(),
|
|
483
|
-
highlights:
|
|
481
|
+
highlights: A(/* @__PURE__ */ new Map()),
|
|
484
482
|
highlightSequence: 0
|
|
485
483
|
};
|
|
486
484
|
}
|
|
487
|
-
let p = _(() =>
|
|
488
|
-
function
|
|
485
|
+
let p = _(() => r.state.template?.id ?? null), m = A(p.value === null ? null : f(p.value)), h = _(() => m.value !== null && !l && p.value !== null), g = (e) => e === "chatAttachments" ? h.value && n.chatAttachments === !0 && typeof n.chat == "function" : typeof n[e] == "function", v = () => l ? null : m.value, y = (e) => !l && m.value === e && !e.lifetime.signal.aborted && p.value === e.id;
|
|
486
|
+
function b(e, t) {
|
|
489
487
|
return _({
|
|
490
488
|
get: () => m.value ? e(m.value).value : t,
|
|
491
489
|
set: (t) => {
|
|
@@ -494,22 +492,22 @@ function Wn(e) {
|
|
|
494
492
|
}
|
|
495
493
|
});
|
|
496
494
|
}
|
|
497
|
-
let
|
|
495
|
+
let x = b((e) => e.messages, []), S = _(() => r.content.value.blocks.length === 0), C = b((e) => e.isLoadingHistory, !1), w = b((e) => e.busy, !1), T = b((e) => e.failure, null), E = b((e) => e.keptYourVersion, !1), O = b((e) => e.failedPrompt, null), k = b((e) => e.failedAttachments, []), j = b((e) => e.importQueue, []);
|
|
498
496
|
function M(e) {
|
|
499
497
|
e.historyGeneration++, e.pendingHistory = null, e.loaded = !1, e.isLoadingHistory.value = !1;
|
|
500
498
|
}
|
|
501
499
|
function N(e, t, n, r) {
|
|
502
|
-
return
|
|
500
|
+
return y(t) ? new Promise((i, a) => {
|
|
503
501
|
let o = {
|
|
504
502
|
kind: e,
|
|
505
503
|
scope: t,
|
|
506
504
|
controller: new AbortController(),
|
|
507
505
|
authorVersion: 0,
|
|
508
506
|
execute: async () => {
|
|
509
|
-
o.authorVersion =
|
|
507
|
+
o.authorVersion = u;
|
|
510
508
|
let e;
|
|
511
509
|
try {
|
|
512
|
-
e = await (o.controller.signal.aborted || !
|
|
510
|
+
e = await (o.controller.signal.aborted || !y(t) ? r() : n(o));
|
|
513
511
|
} catch (e) {
|
|
514
512
|
a(e);
|
|
515
513
|
return;
|
|
@@ -525,10 +523,10 @@ function Wn(e) {
|
|
|
525
523
|
function P(e) {
|
|
526
524
|
if (e.active) return;
|
|
527
525
|
let t = e.queue.shift();
|
|
528
|
-
t && (e.active = t,
|
|
526
|
+
t && (e.active = t, y(e) && (e.busy.value = !0), t.execute());
|
|
529
527
|
}
|
|
530
528
|
function I(e) {
|
|
531
|
-
if (e.controller.signal.throwIfAborted(), !
|
|
529
|
+
if (e.controller.signal.throwIfAborted(), !y(e.scope)) throw new DOMException("The template changed.", "AbortError");
|
|
532
530
|
}
|
|
533
531
|
async function L(e, t) {
|
|
534
532
|
t.throwIfAborted();
|
|
@@ -541,23 +539,23 @@ function Wn(e) {
|
|
|
541
539
|
t.removeEventListener("abort", n);
|
|
542
540
|
}
|
|
543
541
|
}
|
|
544
|
-
async function R(
|
|
545
|
-
let { scope: i } =
|
|
546
|
-
if (
|
|
547
|
-
await L(
|
|
542
|
+
async function R(e, n = !1, r = e.authorVersion) {
|
|
543
|
+
let { scope: i } = e, a = () => i.active === e && y(i) && (n || !e.controller.signal.aborted), o = () => a() ? r === u || (i.keptYourVersion.value = !0, !1) : !1;
|
|
544
|
+
if (t.reload && o()) try {
|
|
545
|
+
await L(t.reload(i.id, () => o() ? (i.keptYourVersion.value = !1, i.committingReload = !0, !0) : !1), i.lifetime.signal);
|
|
548
546
|
} finally {
|
|
549
547
|
i.committingReload = !1;
|
|
550
548
|
}
|
|
551
549
|
}
|
|
552
550
|
function z(e) {
|
|
553
|
-
let t =
|
|
551
|
+
let t = c.get(e);
|
|
554
552
|
return t || (t = {
|
|
555
553
|
generation: 0,
|
|
556
554
|
items: [],
|
|
557
555
|
records: /* @__PURE__ */ new Map(),
|
|
558
556
|
storedIds: /* @__PURE__ */ new Set(),
|
|
559
557
|
recoveries: /* @__PURE__ */ new Map()
|
|
560
|
-
},
|
|
558
|
+
}, c.set(e, t)), t;
|
|
561
559
|
}
|
|
562
560
|
function B(e, t, n) {
|
|
563
561
|
let r = setTimeout(() => {
|
|
@@ -565,47 +563,47 @@ function Wn(e) {
|
|
|
565
563
|
}, n);
|
|
566
564
|
e.timers.add(r);
|
|
567
565
|
}
|
|
568
|
-
function V(
|
|
569
|
-
zn(
|
|
566
|
+
function V(e) {
|
|
567
|
+
zn(e) || t.onError?.(Bn(e));
|
|
570
568
|
}
|
|
571
569
|
function H(e, t) {
|
|
572
570
|
if (t.length === 0) return;
|
|
573
|
-
if (
|
|
574
|
-
|
|
571
|
+
if (i) {
|
|
572
|
+
i.outline(t);
|
|
575
573
|
return;
|
|
576
574
|
}
|
|
577
|
-
let n = ++e.highlightSequence,
|
|
578
|
-
for (let e of t)
|
|
579
|
-
e.highlights.value =
|
|
575
|
+
let n = ++e.highlightSequence, r = new Map(e.highlights.value);
|
|
576
|
+
for (let e of t) r.set(e, n);
|
|
577
|
+
e.highlights.value = r, B(e, () => {
|
|
580
578
|
let r = new Map(e.highlights.value);
|
|
581
579
|
for (let e of t) r.get(e) === n && r.delete(e);
|
|
582
580
|
e.highlights.value = r;
|
|
583
581
|
}, Mn);
|
|
584
582
|
}
|
|
585
583
|
async function ee(e) {
|
|
586
|
-
|
|
584
|
+
i && await Promise.race([i.core.settle().catch(() => {}), new Promise((t) => B(e, t, Ln))]);
|
|
587
585
|
}
|
|
588
|
-
function U(
|
|
589
|
-
let
|
|
590
|
-
if (new TextEncoder().encode(JSON.stringify(
|
|
586
|
+
function U(e) {
|
|
587
|
+
let n = K(D(r.content.value));
|
|
588
|
+
if (new TextEncoder().encode(JSON.stringify(n)).length > 2e5) throw new Q("This template is too large for AI.", 413, "content_too_large");
|
|
591
589
|
return {
|
|
592
|
-
templateId:
|
|
593
|
-
content:
|
|
594
|
-
revision:
|
|
595
|
-
sessionId:
|
|
596
|
-
mergeTags:
|
|
590
|
+
templateId: e,
|
|
591
|
+
content: n,
|
|
592
|
+
revision: i ? i.core.revision.value : null,
|
|
593
|
+
sessionId: i ? i.core.sessionId : o,
|
|
594
|
+
mergeTags: t.mergeTags()
|
|
597
595
|
};
|
|
598
596
|
}
|
|
599
597
|
function W() {
|
|
600
|
-
let e =
|
|
601
|
-
return e ?
|
|
598
|
+
let e = r.state.selectedBlockId;
|
|
599
|
+
return e ? i ? i.core.hasConfirmedBlock(e) ? e : null : Hn(r.content.value.blocks, e) ? e : null : null;
|
|
602
600
|
}
|
|
603
|
-
function G(
|
|
604
|
-
let o =
|
|
605
|
-
if (
|
|
606
|
-
let e =
|
|
601
|
+
function G(e, n, a) {
|
|
602
|
+
let o = t.normalize(e, D(r.content.value)), s = Pn(o);
|
|
603
|
+
if (i) {
|
|
604
|
+
let e = i.core.applyOperations(o, {
|
|
607
605
|
origin: "ai",
|
|
608
|
-
turn:
|
|
606
|
+
turn: n
|
|
609
607
|
});
|
|
610
608
|
return e.applied ? (s.templateUpdated || H(a, s.blockIds), {
|
|
611
609
|
applied: !0,
|
|
@@ -614,31 +612,31 @@ function Wn(e) {
|
|
|
614
612
|
}
|
|
615
613
|
let c;
|
|
616
614
|
try {
|
|
617
|
-
c =
|
|
615
|
+
c = Z(D(r.content.value), o);
|
|
618
616
|
} catch (e) {
|
|
619
|
-
if (e instanceof
|
|
617
|
+
if (e instanceof ae) return Un(e);
|
|
620
618
|
throw e;
|
|
621
619
|
}
|
|
622
|
-
a.lastRecordedTurn !==
|
|
620
|
+
a.lastRecordedTurn !== n && (t.history().record(), a.lastRecordedTurn = n), d = !0;
|
|
623
621
|
try {
|
|
624
|
-
|
|
622
|
+
le(r.content.value, K(o)), r.markDirty();
|
|
625
623
|
} finally {
|
|
626
|
-
|
|
624
|
+
d = !1;
|
|
627
625
|
}
|
|
628
|
-
let l =
|
|
629
|
-
return l && !Hn(
|
|
626
|
+
let l = r.state.selectedBlockId;
|
|
627
|
+
return l && !Hn(r.content.value.blocks, l) && r.selectBlock(null), s.templateUpdated || H(a, s.blockIds), {
|
|
630
628
|
applied: !0,
|
|
631
629
|
inverse: c
|
|
632
630
|
};
|
|
633
631
|
}
|
|
634
|
-
function
|
|
635
|
-
if (!
|
|
636
|
-
let n =
|
|
632
|
+
function q(e, t) {
|
|
633
|
+
if (!i || !y(t)) return;
|
|
634
|
+
let n = i.core;
|
|
637
635
|
n.revision.value >= e || (n.connection.value === "connected" ? B(t, () => {
|
|
638
|
-
|
|
636
|
+
y(t) && n.revision.value < e && n.catchUp();
|
|
639
637
|
}, Rn) : n.catchUp());
|
|
640
638
|
}
|
|
641
|
-
function
|
|
639
|
+
function Y(e, t, n) {
|
|
642
640
|
let r = e.memory;
|
|
643
641
|
r.items = r.items.map((e) => {
|
|
644
642
|
if (e.id !== t) return e;
|
|
@@ -648,17 +646,17 @@ function Wn(e) {
|
|
|
648
646
|
};
|
|
649
647
|
return {
|
|
650
648
|
...i,
|
|
651
|
-
...
|
|
649
|
+
...X(i, r)
|
|
652
650
|
};
|
|
653
651
|
});
|
|
654
652
|
for (let e of r.recoveries.values()) e.item.id === t && (e.item = r.items.find((e) => e.id === (n.id ?? t)) ?? e.item);
|
|
655
653
|
e.messages.value = r.items;
|
|
656
654
|
}
|
|
657
|
-
function
|
|
655
|
+
function X(e, t) {
|
|
658
656
|
let n = e.role === "assistant" && e.operationCount > 0;
|
|
659
657
|
if (t.storedIds.has(e.id)) return {
|
|
660
|
-
canUndo: n && !e.undone && typeof
|
|
661
|
-
canRedo: n && e.undone && typeof
|
|
658
|
+
canUndo: n && !e.undone && typeof a?.undo == "function",
|
|
659
|
+
canRedo: n && e.undone && typeof a?.redo == "function"
|
|
662
660
|
};
|
|
663
661
|
let r = t.records.get(e.id);
|
|
664
662
|
return {
|
|
@@ -666,36 +664,36 @@ function Wn(e) {
|
|
|
666
664
|
canRedo: n && e.undone && !r?.serverApplied && (r?.redo?.length ?? 0) > 0
|
|
667
665
|
};
|
|
668
666
|
}
|
|
669
|
-
let
|
|
667
|
+
let te = () => ({
|
|
670
668
|
messageId: null,
|
|
671
669
|
operationCount: 0,
|
|
672
670
|
text: "",
|
|
673
671
|
failed: !0
|
|
674
672
|
});
|
|
675
|
-
function
|
|
673
|
+
function ne(e, n, r, o = []) {
|
|
676
674
|
let s = v();
|
|
677
|
-
return !s || s.active?.kind === "turn" || s.queue.some((e) => e.kind === "turn") ? Promise.resolve(
|
|
675
|
+
return !s || s.active?.kind === "turn" || s.queue.some((e) => e.kind === "turn") ? Promise.resolve(te()) : N("turn", s, async (c) => {
|
|
678
676
|
let { controller: l } = c, u = s.memory, d = crypto.randomUUID(), f = crypto.randomUUID(), p = crypto.randomUUID(), m = 0, h = "", g = !1, _ = null, v = {
|
|
679
677
|
inverse: [],
|
|
680
678
|
redo: null,
|
|
681
679
|
serverApplied: !1,
|
|
682
680
|
batchIds: /* @__PURE__ */ new Set()
|
|
683
|
-
},
|
|
681
|
+
}, b, x = !1, S = !1, C = (e) => Y(s, p, e), w = () => {
|
|
684
682
|
let e = u.items.find((e) => e.id === p);
|
|
685
|
-
|
|
683
|
+
a && e && u.recoveries.set(d, {
|
|
686
684
|
item: e,
|
|
687
685
|
user: u.items.find((e) => e.id === f),
|
|
688
686
|
record: v
|
|
689
687
|
});
|
|
690
688
|
}, T = () => {
|
|
691
|
-
!S && (
|
|
689
|
+
!S && (a || !i && t.reload) && (S = !0, N("reconcile", s, async (e) => {
|
|
692
690
|
try {
|
|
693
691
|
let n;
|
|
694
692
|
do
|
|
695
|
-
n = m, !
|
|
696
|
-
while (
|
|
693
|
+
n = m, !i && t.reload && await R(e, !0, c.authorVersion), a && await se(e, !0, !0);
|
|
694
|
+
while (y(s) && n !== m);
|
|
697
695
|
} catch (e) {
|
|
698
|
-
|
|
696
|
+
y(s) && V(e);
|
|
699
697
|
} finally {
|
|
700
698
|
S = !1;
|
|
701
699
|
}
|
|
@@ -711,22 +709,22 @@ function Wn(e) {
|
|
|
711
709
|
let t = G(e, d, s);
|
|
712
710
|
return t.applied && (v.inverse = [...t.inverse, ...v.inverse], m += e.length, C({ operationCount: m })), t;
|
|
713
711
|
},
|
|
714
|
-
onApplied: (
|
|
715
|
-
if (!
|
|
716
|
-
if (!
|
|
717
|
-
v.serverApplied = !0, v.batchIds.add(
|
|
712
|
+
onApplied: (e) => {
|
|
713
|
+
if (!y(s)) throw new DOMException("The template changed.", "AbortError");
|
|
714
|
+
if (!i && !t.reload) throw _ ??= new Q(cn, 502, "ai_provider_error"), _;
|
|
715
|
+
v.serverApplied = !0, v.batchIds.add(e.batchId), m += e.operationCount, C({ operationCount: m }), q(e.revision, s), x && (w(), T());
|
|
718
716
|
}
|
|
719
717
|
};
|
|
720
718
|
try {
|
|
721
719
|
try {
|
|
722
|
-
await
|
|
723
|
-
let
|
|
720
|
+
await se(c), I(c), s.failure.value = null, s.failedPrompt.value = null, s.failedAttachments.value = [];
|
|
721
|
+
let t = (/* @__PURE__ */ new Date()).toISOString();
|
|
724
722
|
u.records.set(p, v), u.items = [
|
|
725
723
|
...u.items,
|
|
726
724
|
{
|
|
727
725
|
id: f,
|
|
728
726
|
role: "user",
|
|
729
|
-
kind:
|
|
727
|
+
kind: e,
|
|
730
728
|
text: n,
|
|
731
729
|
attachments: o.map((e) => ({
|
|
732
730
|
name: e.name,
|
|
@@ -736,44 +734,44 @@ function Wn(e) {
|
|
|
736
734
|
undone: !1,
|
|
737
735
|
canUndo: !1,
|
|
738
736
|
canRedo: !1,
|
|
739
|
-
createdAt:
|
|
737
|
+
createdAt: t,
|
|
740
738
|
status: "done"
|
|
741
739
|
},
|
|
742
740
|
{
|
|
743
741
|
id: p,
|
|
744
742
|
role: "assistant",
|
|
745
|
-
kind:
|
|
743
|
+
kind: e,
|
|
746
744
|
text: "",
|
|
747
745
|
attachments: [],
|
|
748
746
|
operationCount: 0,
|
|
749
747
|
undone: !1,
|
|
750
748
|
canUndo: !1,
|
|
751
749
|
canRedo: !1,
|
|
752
|
-
createdAt:
|
|
750
|
+
createdAt: t,
|
|
753
751
|
status: "streaming"
|
|
754
752
|
}
|
|
755
753
|
], s.messages.value = u.items, await L(ee(s), c.controller.signal), I(c);
|
|
756
|
-
let
|
|
754
|
+
let i = await L(r(U(s.id), E, l.signal), l.signal);
|
|
757
755
|
if (I(c), _) throw _;
|
|
758
|
-
if (
|
|
756
|
+
if (i.text !== "" && (h = i.text), i.messageId !== null && a) {
|
|
759
757
|
let e = p;
|
|
760
|
-
p =
|
|
758
|
+
p = i.messageId, u.storedIds.add(p), u.records.delete(e), u.records.set(p, v), Y(s, e, { id: p });
|
|
761
759
|
}
|
|
762
760
|
C({
|
|
763
761
|
text: h,
|
|
764
762
|
status: "done"
|
|
765
|
-
}),
|
|
763
|
+
}), b = {
|
|
766
764
|
messageId: p,
|
|
767
765
|
operationCount: m,
|
|
768
766
|
text: h,
|
|
769
767
|
failed: !1
|
|
770
768
|
};
|
|
771
|
-
} catch (
|
|
772
|
-
let r = _ ??
|
|
773
|
-
g = l.signal.aborted || zn(r), g || V(r), m === 0 && (!g || h === "") ? (u.items = u.items.filter((e) => e.id !== p && e.id !== f),
|
|
769
|
+
} catch (t) {
|
|
770
|
+
let r = _ ?? t;
|
|
771
|
+
g = l.signal.aborted || zn(r), g || V(r), m === 0 && (!g || h === "") ? (u.items = u.items.filter((e) => e.id !== p && e.id !== f), y(s) && (s.messages.value = u.items, g || (e === "chat" && (s.failedPrompt.value = n, s.failedAttachments.value = o), s.failure.value = {
|
|
774
772
|
error: Bn(r),
|
|
775
773
|
context: "turn"
|
|
776
|
-
})),
|
|
774
|
+
})), b = {
|
|
777
775
|
messageId: null,
|
|
778
776
|
operationCount: 0,
|
|
779
777
|
text: "",
|
|
@@ -784,103 +782,103 @@ function Wn(e) {
|
|
|
784
782
|
error: Bn(r),
|
|
785
783
|
context: "turn"
|
|
786
784
|
}
|
|
787
|
-
}),
|
|
785
|
+
}), b = {
|
|
788
786
|
messageId: p,
|
|
789
787
|
operationCount: m,
|
|
790
788
|
text: h,
|
|
791
789
|
failed: !g
|
|
792
790
|
});
|
|
793
791
|
}
|
|
794
|
-
|
|
792
|
+
a && b.messageId !== null && m > 0 && (b.failed || g) && w();
|
|
795
793
|
let x;
|
|
796
794
|
do
|
|
797
|
-
if (x = m, v.serverApplied && !
|
|
798
|
-
|
|
799
|
-
}),
|
|
800
|
-
await
|
|
795
|
+
if (x = m, v.serverApplied && !i && t.reload && y(s) && await R(c, !0).catch((e) => {
|
|
796
|
+
y(s) && V(e);
|
|
797
|
+
}), a && u.recoveries.has(d) && y(s)) {
|
|
798
|
+
await se(c, !0, !0);
|
|
801
799
|
let e = u.recoveries.get(d);
|
|
802
|
-
e && (
|
|
800
|
+
e && (b.messageId = e.item.id, b.text = e.item.text);
|
|
803
801
|
}
|
|
804
|
-
while (
|
|
805
|
-
return
|
|
802
|
+
while (y(s) && v.serverApplied && x !== m);
|
|
803
|
+
return b.operationCount = m, (g || l.signal.aborted) && (b.failed = !0), b;
|
|
806
804
|
} finally {
|
|
807
805
|
x = !0, s.messages.value = u.items;
|
|
808
806
|
}
|
|
809
|
-
},
|
|
807
|
+
}, te);
|
|
810
808
|
}
|
|
811
|
-
function
|
|
812
|
-
let
|
|
813
|
-
return !
|
|
814
|
-
let c =
|
|
809
|
+
function re(e, n) {
|
|
810
|
+
let r = v();
|
|
811
|
+
return !r || r.busy.value ? Promise.resolve() : N("replay", r, async (s) => {
|
|
812
|
+
let c = r.memory, l = c.items.find((t) => t.id === e);
|
|
815
813
|
if (!l) return;
|
|
816
|
-
let u =
|
|
814
|
+
let u = a?.[n], d = c.records.get(e);
|
|
817
815
|
try {
|
|
818
|
-
if (I(s), c.storedIds.has(
|
|
816
|
+
if (I(s), c.storedIds.has(e)) {
|
|
819
817
|
if (typeof u != "function") throw new Q(`This AI backend does not support ${n}.`, 403, "feature_unavailable");
|
|
820
818
|
if (l.undone !== (n === "redo")) return;
|
|
821
|
-
let c = await L(u(
|
|
822
|
-
if (!
|
|
819
|
+
let c = await L(u(r.id, e, { sessionId: i ? i.core.sessionId : o }), r.lifetime.signal);
|
|
820
|
+
if (!y(r)) return;
|
|
823
821
|
if ("operations" in c) {
|
|
824
822
|
if (s.controller.signal.aborted) return;
|
|
825
|
-
let
|
|
826
|
-
|
|
823
|
+
let t = G(c.operations, `${n}:${e}:${crypto.randomUUID()}`, r);
|
|
824
|
+
t.applied && Y(r, e, {
|
|
827
825
|
undone: n === "undo",
|
|
828
826
|
failure: void 0
|
|
829
827
|
});
|
|
830
828
|
try {
|
|
831
|
-
await L(
|
|
829
|
+
await L(a.settleReplay(r.id, e, {
|
|
832
830
|
replayId: c.replayId,
|
|
833
831
|
direction: n,
|
|
834
|
-
applied:
|
|
835
|
-
sessionId:
|
|
836
|
-
}),
|
|
837
|
-
} catch (
|
|
838
|
-
if (!
|
|
839
|
-
V(
|
|
840
|
-
error: Bn(
|
|
832
|
+
applied: t.applied,
|
|
833
|
+
sessionId: i ? i.core.sessionId : o
|
|
834
|
+
}), r.lifetime.signal);
|
|
835
|
+
} catch (t) {
|
|
836
|
+
if (!y(r)) return;
|
|
837
|
+
V(t), Y(r, e, { failure: {
|
|
838
|
+
error: Bn(t),
|
|
841
839
|
context: n
|
|
842
840
|
} });
|
|
843
841
|
}
|
|
844
|
-
if (!
|
|
845
|
-
if (!
|
|
846
|
-
code:
|
|
847
|
-
opIndex:
|
|
842
|
+
if (!y(r)) return;
|
|
843
|
+
if (!t.applied) throw new J(t.message, {
|
|
844
|
+
code: t.code,
|
|
845
|
+
opIndex: t.opIndex
|
|
848
846
|
});
|
|
849
847
|
return;
|
|
850
848
|
}
|
|
851
|
-
if (
|
|
849
|
+
if (Y(r, e, {
|
|
852
850
|
undone: n === "undo",
|
|
853
851
|
failure: void 0
|
|
854
|
-
}),
|
|
855
|
-
else if (
|
|
852
|
+
}), i) q(c.applied.revision, r);
|
|
853
|
+
else if (t.reload) await R(s, !0);
|
|
856
854
|
else throw new Q(cn, 502, "ai_provider_error");
|
|
857
855
|
return;
|
|
858
856
|
}
|
|
859
857
|
{
|
|
860
858
|
if (l.undone !== (n === "redo")) return;
|
|
861
|
-
let
|
|
862
|
-
if (!d || d.serverApplied || !
|
|
863
|
-
let
|
|
864
|
-
if (!
|
|
865
|
-
code:
|
|
866
|
-
opIndex:
|
|
859
|
+
let t = n === "undo" ? d?.inverse : d?.redo;
|
|
860
|
+
if (!d || d.serverApplied || !t || t.length === 0) return;
|
|
861
|
+
let i = G(t, `${n}:${e}:${crypto.randomUUID()}`, r);
|
|
862
|
+
if (!i.applied) throw new J(i.message, {
|
|
863
|
+
code: i.code,
|
|
864
|
+
opIndex: i.opIndex
|
|
867
865
|
});
|
|
868
|
-
n === "undo" ? d.redo =
|
|
866
|
+
n === "undo" ? d.redo = i.inverse : d.inverse = i.inverse;
|
|
869
867
|
}
|
|
870
|
-
|
|
868
|
+
Y(r, e, {
|
|
871
869
|
undone: n === "undo",
|
|
872
870
|
failure: void 0
|
|
873
871
|
});
|
|
874
|
-
} catch (
|
|
875
|
-
if (!
|
|
876
|
-
V(
|
|
877
|
-
error: Bn(
|
|
872
|
+
} catch (t) {
|
|
873
|
+
if (!y(r) || zn(t)) return;
|
|
874
|
+
V(t), Y(r, e, { failure: {
|
|
875
|
+
error: Bn(t),
|
|
878
876
|
context: n
|
|
879
877
|
} });
|
|
880
878
|
}
|
|
881
879
|
}, () => {});
|
|
882
880
|
}
|
|
883
|
-
function
|
|
881
|
+
function ie(e, t) {
|
|
884
882
|
let n = {
|
|
885
883
|
id: e.id,
|
|
886
884
|
role: e.role,
|
|
@@ -896,13 +894,13 @@ function Wn(e) {
|
|
|
896
894
|
};
|
|
897
895
|
return {
|
|
898
896
|
...n,
|
|
899
|
-
...
|
|
897
|
+
...X(n, t)
|
|
900
898
|
};
|
|
901
899
|
}
|
|
902
|
-
function
|
|
900
|
+
function oe(e, t) {
|
|
903
901
|
for (let n of e) t.storedIds.add(n.id);
|
|
904
902
|
let n = new Map(t.items.map((e) => [e.id, e])), r = e.map((e) => {
|
|
905
|
-
let r =
|
|
903
|
+
let r = ie(e, t), i = n.get(r.id);
|
|
906
904
|
return i?.status === "failed" ? {
|
|
907
905
|
...r,
|
|
908
906
|
status: i.status,
|
|
@@ -914,60 +912,60 @@ function Wn(e) {
|
|
|
914
912
|
if (s) {
|
|
915
913
|
t.records.delete(i.id), t.records.set(s.id, a);
|
|
916
914
|
let e = {
|
|
917
|
-
...
|
|
915
|
+
...ie(s, t),
|
|
918
916
|
status: i.status,
|
|
919
917
|
failure: i.failure
|
|
920
918
|
};
|
|
921
919
|
n.item = e, r = r.map((t) => t.id === s.id ? e : t);
|
|
922
920
|
} else n.user && !r.some((e) => e.id === n.user.id) && r.push(n.user), r.push({
|
|
923
921
|
...i,
|
|
924
|
-
...
|
|
922
|
+
...X(i, t)
|
|
925
923
|
});
|
|
926
924
|
}
|
|
927
925
|
return r;
|
|
928
926
|
}
|
|
929
|
-
async function
|
|
930
|
-
let { scope:
|
|
931
|
-
if (!
|
|
932
|
-
let o =
|
|
933
|
-
if (!
|
|
927
|
+
async function se(e, t = !1, n = !1, r = e.scope.historyGeneration) {
|
|
928
|
+
let { scope: i } = e;
|
|
929
|
+
if (!y(i) || r !== i.historyGeneration || !n && e.controller.signal.aborted || !t && i.loaded) return;
|
|
930
|
+
let o = i.memory;
|
|
931
|
+
if (!a) i.messages.value = o.items, i.loaded = !0;
|
|
934
932
|
else {
|
|
935
|
-
|
|
933
|
+
i.isLoadingHistory.value = !0, i.loaded = !1;
|
|
936
934
|
try {
|
|
937
|
-
await L(
|
|
938
|
-
!
|
|
939
|
-
}), n ?
|
|
935
|
+
await L(a.list(i.id).then((t) => {
|
|
936
|
+
!l && o.generation === i.generation && r === i.historyGeneration && (n || y(i) && !e.controller.signal.aborted) && (o.items = oe(t, o), i.messages.value = o.items, i.loaded = !0, i.failure.value?.context === "history" && (i.failure.value = null));
|
|
937
|
+
}), n ? i.lifetime.signal : e.controller.signal);
|
|
940
938
|
} catch (e) {
|
|
941
|
-
if (!
|
|
942
|
-
V(e),
|
|
939
|
+
if (!y(i) || r !== i.historyGeneration || zn(e)) return;
|
|
940
|
+
V(e), i.failure.value = {
|
|
943
941
|
error: Bn(e),
|
|
944
942
|
context: "history"
|
|
945
943
|
};
|
|
946
944
|
} finally {
|
|
947
|
-
r ===
|
|
945
|
+
r === i.historyGeneration && (i.isLoadingHistory.value = !1);
|
|
948
946
|
}
|
|
949
947
|
}
|
|
950
948
|
}
|
|
951
|
-
function
|
|
952
|
-
if (!e || !
|
|
949
|
+
function ce(e = v()) {
|
|
950
|
+
if (!e || !y(e)) return Promise.resolve();
|
|
953
951
|
if (e.pendingHistory?.generation === e.historyGeneration) return e.pendingHistory.promise;
|
|
954
952
|
if (e.loaded) return Promise.resolve();
|
|
955
953
|
let t = e.historyGeneration, n = {
|
|
956
954
|
generation: t,
|
|
957
955
|
promise: Promise.resolve()
|
|
958
956
|
};
|
|
959
|
-
return n.promise = N("history", e, (e) =>
|
|
957
|
+
return n.promise = N("history", e, (e) => se(e, !1, !1, t), () => {}).finally(() => {
|
|
960
958
|
e.pendingHistory === n && (e.pendingHistory = null);
|
|
961
959
|
}), e.pendingHistory = n, n.promise;
|
|
962
960
|
}
|
|
963
|
-
function
|
|
961
|
+
function ue() {
|
|
964
962
|
let e = v();
|
|
965
|
-
return !e ||
|
|
963
|
+
return !e || a && typeof a.clear != "function" || e.active && e.active.kind !== "history" && e.active.kind !== "read" || e.queue.some((e) => e.kind !== "history" && e.kind !== "read") ? Promise.resolve() : (M(e), e.active?.controller.abort(), N("clear", e, async () => {
|
|
966
964
|
try {
|
|
967
|
-
if (
|
|
968
|
-
|
|
965
|
+
if (a && typeof a.clear == "function" && await a.clear(e.id), e.memory.generation !== e.generation) return;
|
|
966
|
+
c.delete(e.id), e.memory.items = [], e.memory.records.clear(), e.memory.storedIds.clear(), e.memory.recoveries.clear(), M(e), e.messages.value = [], e.loaded = !0, e.failure.value = null, e.failedPrompt.value = null, e.failedAttachments.value = [], y(e) && c.set(e.id, e.memory);
|
|
969
967
|
} catch (t) {
|
|
970
|
-
if (!
|
|
968
|
+
if (!y(e)) return;
|
|
971
969
|
V(t), e.failure.value = {
|
|
972
970
|
error: Bn(t),
|
|
973
971
|
context: "history"
|
|
@@ -975,12 +973,12 @@ function Wn(e) {
|
|
|
975
973
|
}
|
|
976
974
|
}, () => {}));
|
|
977
975
|
}
|
|
978
|
-
function
|
|
979
|
-
|
|
976
|
+
function de(e) {
|
|
977
|
+
y(e) && ce(e);
|
|
980
978
|
}
|
|
981
|
-
function fe(
|
|
979
|
+
function fe(e) {
|
|
982
980
|
let n = v();
|
|
983
|
-
n &&
|
|
981
|
+
n && y(n) && (s.value !== e && n.busy.value && ge(), s.value = e, t.commentsOpen && (t.commentsOpen.value = !1), e === "chat" && de(n));
|
|
984
982
|
}
|
|
985
983
|
function pe(e) {
|
|
986
984
|
e.length !== 0 && g("chatAttachments") && (j.value = [...e], fe("chat"));
|
|
@@ -999,76 +997,76 @@ function Wn(e) {
|
|
|
999
997
|
e && me(e);
|
|
1000
998
|
}
|
|
1001
999
|
function _e() {
|
|
1002
|
-
ge(),
|
|
1000
|
+
ge(), s.value = null;
|
|
1003
1001
|
}
|
|
1004
|
-
let ve = [F(() =>
|
|
1005
|
-
t === !0 && e === !1 &&
|
|
1006
|
-
}, { flush: "sync" }), F(
|
|
1007
|
-
!
|
|
1002
|
+
let ve = [F(() => r.state.isDirty, (e, t) => {
|
|
1003
|
+
t === !0 && e === !1 && r.state.isSaving && (E.value = !1);
|
|
1004
|
+
}, { flush: "sync" }), F(r.content, () => {
|
|
1005
|
+
!d && !m.value?.committingReload && u++;
|
|
1008
1006
|
}, {
|
|
1009
1007
|
deep: !0,
|
|
1010
1008
|
flush: "sync"
|
|
1011
1009
|
})];
|
|
1012
|
-
|
|
1010
|
+
t.commentsOpen && ve.push(F(t.commentsOpen, (e) => {
|
|
1013
1011
|
e && _e();
|
|
1014
|
-
})), ve.push(F(() =>
|
|
1015
|
-
if (
|
|
1012
|
+
})), ve.push(F(() => r.loadVersion?.value ?? p.value, () => {
|
|
1013
|
+
if (l) return;
|
|
1016
1014
|
let e = m.value;
|
|
1017
|
-
if (e?.committingReload &&
|
|
1015
|
+
if (e?.committingReload && y(e)) {
|
|
1018
1016
|
e.committingReload = !1;
|
|
1019
1017
|
return;
|
|
1020
1018
|
}
|
|
1021
1019
|
e && he(e);
|
|
1022
|
-
let t = p.value, n = t === null ? null :
|
|
1023
|
-
m.value = n, n &&
|
|
1020
|
+
let t = p.value, n = t === null ? null : f(t);
|
|
1021
|
+
m.value = n, n && s.value === "chat" && de(n);
|
|
1024
1022
|
}, { flush: "sync" }));
|
|
1025
|
-
async function ye(
|
|
1026
|
-
let s = v(), c =
|
|
1023
|
+
async function ye(e, a) {
|
|
1024
|
+
let s = v(), c = n.altText, l = new AbortController(), u = () => l.abort(a?.reason), d = () => l.abort();
|
|
1027
1025
|
try {
|
|
1028
|
-
if (
|
|
1029
|
-
let
|
|
1030
|
-
if (!
|
|
1031
|
-
|
|
1032
|
-
let { url: f, ...p } =
|
|
1026
|
+
if (a?.throwIfAborted(), !s || typeof c != "function") throw new Q("This AI feature isn't available.", 403, "feature_unavailable");
|
|
1027
|
+
let n = dn(r.content.value, e);
|
|
1028
|
+
if (!n) throw new Q("The image is no longer available.", 409, "block_missing");
|
|
1029
|
+
a?.addEventListener("abort", u, { once: !0 }), s.lifetime.signal.addEventListener("abort", d, { once: !0 });
|
|
1030
|
+
let { url: f, ...p } = n, m = await L(c({
|
|
1033
1031
|
templateId: s.id,
|
|
1034
|
-
sessionId:
|
|
1035
|
-
blockId:
|
|
1032
|
+
sessionId: i ? i.core.sessionId : o,
|
|
1033
|
+
blockId: e,
|
|
1036
1034
|
image: { url: f },
|
|
1037
1035
|
...p,
|
|
1038
|
-
locale:
|
|
1039
|
-
maxLength:
|
|
1036
|
+
locale: r.content.value.settings.locale,
|
|
1037
|
+
maxLength: t.altMaxLength?.() ?? 125
|
|
1040
1038
|
}, l.signal), l.signal);
|
|
1041
|
-
if (l.signal.throwIfAborted(), !
|
|
1039
|
+
if (l.signal.throwIfAborted(), !y(s)) throw new DOMException("The template changed.", "AbortError");
|
|
1042
1040
|
return m.alt;
|
|
1043
1041
|
} catch (e) {
|
|
1044
1042
|
throw V(e), e;
|
|
1045
1043
|
} finally {
|
|
1046
|
-
|
|
1044
|
+
a?.removeEventListener("abort", u), s?.lifetime.signal.removeEventListener("abort", d);
|
|
1047
1045
|
}
|
|
1048
1046
|
}
|
|
1049
1047
|
function be(e) {
|
|
1050
1048
|
let t = v();
|
|
1051
1049
|
if (!t || e.length === 0) return Promise.resolve();
|
|
1052
|
-
let
|
|
1050
|
+
let n = e.map(({ blockId: e, alt: t, decorative: n, expect: i }) => ({
|
|
1053
1051
|
op: "updateBlock",
|
|
1054
1052
|
blockId: e,
|
|
1055
|
-
expect: { ...i ?? un(
|
|
1053
|
+
expect: { ...i ?? un(r.content.value, e) ?? {
|
|
1056
1054
|
src: null,
|
|
1057
1055
|
alt: null,
|
|
1058
1056
|
decorative: null
|
|
1059
1057
|
} },
|
|
1060
1058
|
set: {
|
|
1061
1059
|
alt: t,
|
|
1062
|
-
decorative:
|
|
1060
|
+
decorative: n
|
|
1063
1061
|
}
|
|
1064
1062
|
}));
|
|
1065
1063
|
return N("replay", t, async (e) => {
|
|
1066
1064
|
try {
|
|
1067
1065
|
I(e);
|
|
1068
|
-
let
|
|
1069
|
-
for (let i = 0; i <
|
|
1066
|
+
let r = crypto.randomUUID();
|
|
1067
|
+
for (let i = 0; i < n.length; i += 100) {
|
|
1070
1068
|
I(e);
|
|
1071
|
-
let a = G(
|
|
1069
|
+
let a = G(n.slice(i, i + 100), r, t);
|
|
1072
1070
|
if (!a.applied) throw new J(a.message, {
|
|
1073
1071
|
code: a.code,
|
|
1074
1072
|
opIndex: a.opIndex
|
|
@@ -1086,22 +1084,22 @@ function Wn(e) {
|
|
|
1086
1084
|
startImport: pe,
|
|
1087
1085
|
highlightOf: (e) => m.value?.highlights.value.get(e) ?? null
|
|
1088
1086
|
},
|
|
1089
|
-
panel:
|
|
1087
|
+
panel: s,
|
|
1090
1088
|
open: fe,
|
|
1091
1089
|
close: _e,
|
|
1092
1090
|
has: g,
|
|
1093
1091
|
templateId: p,
|
|
1094
1092
|
sessionIdentity: _(() => m.value),
|
|
1095
|
-
templateSession: _(() =>
|
|
1093
|
+
templateSession: _(() => r.loadVersion?.value ?? p.value),
|
|
1096
1094
|
isAvailable: h,
|
|
1097
|
-
hasConversation:
|
|
1098
|
-
canClear:
|
|
1099
|
-
messages:
|
|
1100
|
-
isLoadingHistory:
|
|
1101
|
-
isRunning:
|
|
1102
|
-
busy:
|
|
1103
|
-
failure:
|
|
1104
|
-
keptYourVersion:
|
|
1095
|
+
hasConversation: a !== null,
|
|
1096
|
+
canClear: a === null || typeof a.clear == "function",
|
|
1097
|
+
messages: x,
|
|
1098
|
+
isLoadingHistory: C,
|
|
1099
|
+
isRunning: w,
|
|
1100
|
+
busy: w,
|
|
1101
|
+
failure: T,
|
|
1102
|
+
keptYourVersion: E,
|
|
1105
1103
|
reloadTemplate: () => {
|
|
1106
1104
|
let e = v();
|
|
1107
1105
|
return e ? N("reconcile", e, (e) => R(e), () => {}) : Promise.resolve();
|
|
@@ -1110,19 +1108,19 @@ function Wn(e) {
|
|
|
1110
1108
|
failedAttachments: k,
|
|
1111
1109
|
importQueue: j,
|
|
1112
1110
|
startImport: pe,
|
|
1113
|
-
isTemplateEmpty:
|
|
1114
|
-
send: (e,
|
|
1115
|
-
let r =
|
|
1116
|
-
return typeof r == "function" ?
|
|
1117
|
-
...
|
|
1111
|
+
isTemplateEmpty: S,
|
|
1112
|
+
send: (e, t = []) => {
|
|
1113
|
+
let r = n.chat;
|
|
1114
|
+
return typeof r == "function" ? ne("chat", e, (n, i, a) => r({
|
|
1115
|
+
...n,
|
|
1118
1116
|
message: e,
|
|
1119
1117
|
selectedBlockId: W(),
|
|
1120
|
-
attachments:
|
|
1118
|
+
attachments: t.map((e) => ({
|
|
1121
1119
|
file: e,
|
|
1122
1120
|
name: e.name,
|
|
1123
1121
|
kind: e.type === "application/pdf" ? "pdf" : "image"
|
|
1124
1122
|
}))
|
|
1125
|
-
}, i, a),
|
|
1123
|
+
}, i, a), t) : Promise.resolve({
|
|
1126
1124
|
messageId: null,
|
|
1127
1125
|
operationCount: 0,
|
|
1128
1126
|
text: "",
|
|
@@ -1130,9 +1128,9 @@ function Wn(e) {
|
|
|
1130
1128
|
});
|
|
1131
1129
|
},
|
|
1132
1130
|
fix: (e) => {
|
|
1133
|
-
let
|
|
1134
|
-
return typeof
|
|
1135
|
-
...
|
|
1131
|
+
let t = n.fixFinding;
|
|
1132
|
+
return typeof t == "function" ? ne("fix", `Fix: ${e.message}`, (n, r, i) => t({
|
|
1133
|
+
...n,
|
|
1136
1134
|
finding: e
|
|
1137
1135
|
}, r, i)) : Promise.resolve({
|
|
1138
1136
|
messageId: null,
|
|
@@ -1142,21 +1140,21 @@ function Wn(e) {
|
|
|
1142
1140
|
});
|
|
1143
1141
|
},
|
|
1144
1142
|
stop: ge,
|
|
1145
|
-
newChat:
|
|
1146
|
-
undoMessage: (e) =>
|
|
1147
|
-
redoMessage: (e) =>
|
|
1148
|
-
rewrite: (e,
|
|
1149
|
-
let i = v(), a =
|
|
1150
|
-
return !i || typeof a != "function" ? Promise.reject(/* @__PURE__ */ Error("Rewrite isn't available.")) : N("read", i, async (
|
|
1151
|
-
let o = () =>
|
|
1143
|
+
newChat: ue,
|
|
1144
|
+
undoMessage: (e) => re(e, "undo"),
|
|
1145
|
+
redoMessage: (e) => re(e, "redo"),
|
|
1146
|
+
rewrite: (e, t, r) => {
|
|
1147
|
+
let i = v(), a = n.rewrite;
|
|
1148
|
+
return !i || typeof a != "function" ? Promise.reject(/* @__PURE__ */ Error("Rewrite isn't available.")) : N("read", i, async (n) => {
|
|
1149
|
+
let o = () => n.controller.abort(r.reason);
|
|
1152
1150
|
r.addEventListener("abort", o, { once: !0 });
|
|
1153
1151
|
try {
|
|
1154
|
-
return r.throwIfAborted(), I(
|
|
1152
|
+
return r.throwIfAborted(), I(n), await L(a({
|
|
1155
1153
|
...U(i.id),
|
|
1156
1154
|
...e
|
|
1157
1155
|
}, { onText: (e) => {
|
|
1158
|
-
I(
|
|
1159
|
-
} },
|
|
1156
|
+
I(n), t(e);
|
|
1157
|
+
} }, n.controller.signal), n.controller.signal);
|
|
1160
1158
|
} catch (e) {
|
|
1161
1159
|
throw V(e), e;
|
|
1162
1160
|
} finally {
|
|
@@ -1169,8 +1167,8 @@ function Wn(e) {
|
|
|
1169
1167
|
draftAltText: ye,
|
|
1170
1168
|
applyAltTexts: be,
|
|
1171
1169
|
destroy: () => {
|
|
1172
|
-
if (
|
|
1173
|
-
|
|
1170
|
+
if (l) return;
|
|
1171
|
+
l = !0;
|
|
1174
1172
|
let e = m.value;
|
|
1175
1173
|
e && he(e), m.value = null;
|
|
1176
1174
|
for (let e of ve) e();
|
|
@@ -1178,8 +1176,7 @@ function Wn(e) {
|
|
|
1178
1176
|
}
|
|
1179
1177
|
};
|
|
1180
1178
|
}
|
|
1181
|
-
|
|
1182
|
-
//#region src/utils/aiMergeTags.ts
|
|
1179
|
+
// src/utils/aiMergeTags.ts
|
|
1183
1180
|
var Gn = {
|
|
1184
1181
|
tags: 500,
|
|
1185
1182
|
value: 200,
|
|
@@ -1192,8 +1189,8 @@ function Kn(e, t) {
|
|
|
1192
1189
|
return n.length > t ? n.slice(0, t).join("") : e;
|
|
1193
1190
|
}
|
|
1194
1191
|
function qn(e) {
|
|
1195
|
-
for (let t of Object.keys(
|
|
1196
|
-
let n =
|
|
1192
|
+
for (let t of Object.keys(se)) {
|
|
1193
|
+
let n = se[t];
|
|
1197
1194
|
if (n.value.source === e.value.source && n.logic.source === e.logic.source) return t;
|
|
1198
1195
|
}
|
|
1199
1196
|
return "custom";
|
|
@@ -1217,8 +1214,7 @@ function Jn(e, t) {
|
|
|
1217
1214
|
tags: n
|
|
1218
1215
|
};
|
|
1219
1216
|
}
|
|
1220
|
-
|
|
1221
|
-
//#region src/composables/useMediaFeature.ts
|
|
1217
|
+
// src/composables/useMediaFeature.ts
|
|
1222
1218
|
function Yn(e) {
|
|
1223
1219
|
return e instanceof Error ? e : Error(String(e));
|
|
1224
1220
|
}
|
|
@@ -1228,54 +1224,54 @@ function Xn(e, t, n) {
|
|
|
1228
1224
|
let i = e.mimeTypes;
|
|
1229
1225
|
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"}.`);
|
|
1230
1226
|
}
|
|
1231
|
-
function Zn(
|
|
1232
|
-
let { provider:
|
|
1233
|
-
function u(e) {
|
|
1234
|
-
a.value = !1, l?.(e), l = null;
|
|
1235
|
-
}
|
|
1227
|
+
function Zn(t) {
|
|
1228
|
+
let { provider: n, onRequestMedia: r, getTemplateId: i, onError: a } = t, o = e(!1), s = e(void 0), c = _(() => i?.()), l = _(() => !!r || typeof n?.create == "function"), u = null;
|
|
1236
1229
|
function d(e) {
|
|
1237
|
-
u(
|
|
1230
|
+
o.value = !1, u?.(e), u = null;
|
|
1231
|
+
}
|
|
1232
|
+
function f(e) {
|
|
1233
|
+
d(Qn(e));
|
|
1238
1234
|
}
|
|
1239
1235
|
function p() {
|
|
1240
|
-
|
|
1236
|
+
d(null);
|
|
1241
1237
|
}
|
|
1242
1238
|
return h(() => {
|
|
1243
|
-
|
|
1239
|
+
u && d(null);
|
|
1244
1240
|
}), {
|
|
1245
|
-
requestMedia:
|
|
1246
|
-
if (
|
|
1247
|
-
if (!
|
|
1241
|
+
requestMedia: r || n ? async (e) => {
|
|
1242
|
+
if (r) return r(e);
|
|
1243
|
+
if (!n) return null;
|
|
1248
1244
|
if (e?.files?.length) {
|
|
1249
|
-
if (typeof
|
|
1250
|
-
let
|
|
1251
|
-
if (
|
|
1252
|
-
let o =
|
|
1245
|
+
if (typeof n.create != "function") return null;
|
|
1246
|
+
let t = e.files[0], r = Xn(n, t, e.accept);
|
|
1247
|
+
if (r) return a?.(r), null;
|
|
1248
|
+
let o = i?.();
|
|
1253
1249
|
try {
|
|
1254
|
-
let e = await
|
|
1255
|
-
file:
|
|
1250
|
+
let e = await n.create({
|
|
1251
|
+
file: t,
|
|
1256
1252
|
...o ? { templateId: o } : {}
|
|
1257
1253
|
});
|
|
1258
1254
|
try {
|
|
1259
|
-
|
|
1255
|
+
n.onCreated?.(e);
|
|
1260
1256
|
} catch (e) {
|
|
1261
|
-
|
|
1257
|
+
a?.(Yn(e));
|
|
1262
1258
|
}
|
|
1263
1259
|
return Qn(e);
|
|
1264
1260
|
} catch (e) {
|
|
1265
|
-
return
|
|
1261
|
+
return a?.(Yn(e)), null;
|
|
1266
1262
|
}
|
|
1267
1263
|
}
|
|
1268
|
-
return
|
|
1269
|
-
|
|
1264
|
+
return u &&= (u(null), null), s.value = e?.accept, o.value = !0, new Promise((e) => {
|
|
1265
|
+
u = e;
|
|
1270
1266
|
});
|
|
1271
1267
|
} : null,
|
|
1272
|
-
canDrop:
|
|
1273
|
-
isModalOpen:
|
|
1274
|
-
accept:
|
|
1268
|
+
canDrop: l,
|
|
1269
|
+
isModalOpen: o,
|
|
1270
|
+
accept: s,
|
|
1275
1271
|
close: p,
|
|
1276
|
-
select:
|
|
1277
|
-
templateId:
|
|
1278
|
-
onError:
|
|
1272
|
+
select: f,
|
|
1273
|
+
templateId: c,
|
|
1274
|
+
onError: a
|
|
1279
1275
|
};
|
|
1280
1276
|
}
|
|
1281
1277
|
function Qn(e) {
|
|
@@ -1289,96 +1285,94 @@ function Qn(e) {
|
|
|
1289
1285
|
} : {}
|
|
1290
1286
|
};
|
|
1291
1287
|
}
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
r.canCreate.value && (n.state.previewMode || (s.value = /* @__PURE__ */ new Set([e]), o.value = !0));
|
|
1288
|
+
// src/composables/useSavedBlocksFeature.ts
|
|
1289
|
+
function $n(t) {
|
|
1290
|
+
let { provider: n, editor: r } = t, i = ge({
|
|
1291
|
+
provider: n,
|
|
1292
|
+
onError: t.onError
|
|
1293
|
+
}), a = e(!1), o = e(!1), s = e(!1), l = e(/* @__PURE__ */ new Set()), u = _(() => s.value), d = _(() => l.value.size);
|
|
1294
|
+
function f(e) {
|
|
1295
|
+
i.canCreate.value && (r.state.previewMode || (l.value = /* @__PURE__ */ new Set([e]), s.value = !0));
|
|
1301
1296
|
}
|
|
1302
1297
|
function p(e) {
|
|
1303
|
-
if (!
|
|
1304
|
-
let t = new Set(
|
|
1305
|
-
t.has(e) ? t.delete(e) : t.add(e),
|
|
1298
|
+
if (!s.value) return;
|
|
1299
|
+
let t = new Set(l.value);
|
|
1300
|
+
t.has(e) ? t.delete(e) : t.add(e), l.value = t;
|
|
1306
1301
|
}
|
|
1307
1302
|
function m(e) {
|
|
1308
|
-
return
|
|
1303
|
+
return l.value.has(e);
|
|
1309
1304
|
}
|
|
1310
1305
|
function h() {
|
|
1311
|
-
|
|
1306
|
+
s.value = !1, l.value = /* @__PURE__ */ new Set();
|
|
1312
1307
|
}
|
|
1313
1308
|
function g() {
|
|
1314
|
-
|
|
1309
|
+
d.value !== 0 && (s.value = !1, a.value = !0, S());
|
|
1315
1310
|
}
|
|
1316
1311
|
function v() {
|
|
1317
|
-
|
|
1312
|
+
a.value = !1, l.value = /* @__PURE__ */ new Set();
|
|
1318
1313
|
}
|
|
1319
|
-
F(() =>
|
|
1320
|
-
e &&
|
|
1314
|
+
F(() => r.state.previewMode, (e) => {
|
|
1315
|
+
e && s.value && h();
|
|
1321
1316
|
});
|
|
1322
1317
|
function y() {
|
|
1323
|
-
|
|
1318
|
+
o.value = !0, S();
|
|
1324
1319
|
}
|
|
1325
1320
|
function b() {
|
|
1326
|
-
|
|
1321
|
+
o.value = !1;
|
|
1327
1322
|
}
|
|
1328
1323
|
function x(e, t) {
|
|
1329
|
-
for (let
|
|
1330
|
-
let i =
|
|
1331
|
-
|
|
1324
|
+
for (let n = 0; n < e.content.length; n++) {
|
|
1325
|
+
let i = de(e.content[n]), a = t === void 0 ? void 0 : t + n;
|
|
1326
|
+
r.addBlock(i, void 0, void 0, a);
|
|
1332
1327
|
}
|
|
1333
|
-
|
|
1328
|
+
o.value = !1;
|
|
1334
1329
|
}
|
|
1335
1330
|
function S() {
|
|
1336
|
-
|
|
1337
|
-
}
|
|
1338
|
-
let C = _(() =>
|
|
1339
|
-
return c(gt,
|
|
1340
|
-
headless:
|
|
1341
|
-
isPicking:
|
|
1342
|
-
pickedIds:
|
|
1343
|
-
pickedCount:
|
|
1344
|
-
startPicking:
|
|
1331
|
+
i.load().catch(() => {});
|
|
1332
|
+
}
|
|
1333
|
+
let C = _(() => i.savedBlocks.value.length), w = _(() => t.isAvailable?.() ?? !0);
|
|
1334
|
+
return c(gt, i), {
|
|
1335
|
+
headless: i,
|
|
1336
|
+
isPicking: u,
|
|
1337
|
+
pickedIds: l,
|
|
1338
|
+
pickedCount: d,
|
|
1339
|
+
startPicking: f,
|
|
1345
1340
|
togglePick: p,
|
|
1346
1341
|
isPicked: m,
|
|
1347
1342
|
confirmPicking: g,
|
|
1348
1343
|
cancelPicking: h,
|
|
1349
|
-
isSaveDialogOpen:
|
|
1344
|
+
isSaveDialogOpen: a,
|
|
1350
1345
|
closeSaveDialog: v,
|
|
1351
|
-
isBrowserOpen:
|
|
1346
|
+
isBrowserOpen: o,
|
|
1352
1347
|
openBrowser: y,
|
|
1353
1348
|
closeBrowser: b,
|
|
1354
1349
|
insert: x,
|
|
1355
1350
|
refresh: S,
|
|
1356
1351
|
capability: {
|
|
1357
|
-
startPicking:
|
|
1352
|
+
startPicking: f,
|
|
1358
1353
|
togglePick: p,
|
|
1359
1354
|
isPicked: m,
|
|
1360
|
-
isPicking:
|
|
1355
|
+
isPicking: u,
|
|
1361
1356
|
confirmPicking: g,
|
|
1362
1357
|
cancelPicking: h,
|
|
1363
1358
|
openBrowser: y,
|
|
1364
1359
|
count: C,
|
|
1365
1360
|
isAvailable: w,
|
|
1366
|
-
canCreate:
|
|
1367
|
-
canUpdate:
|
|
1368
|
-
canDelete:
|
|
1361
|
+
canCreate: i.canCreate,
|
|
1362
|
+
canUpdate: i.canUpdate,
|
|
1363
|
+
canDelete: i.canDelete
|
|
1369
1364
|
},
|
|
1370
1365
|
count: C,
|
|
1371
1366
|
isAvailable: w
|
|
1372
1367
|
};
|
|
1373
1368
|
}
|
|
1374
|
-
|
|
1375
|
-
//#region src/composables/useTemplatesFeature.ts
|
|
1369
|
+
// src/composables/useTemplatesFeature.ts
|
|
1376
1370
|
var er = 3e3;
|
|
1377
|
-
function tr(
|
|
1378
|
-
let { provider:
|
|
1379
|
-
|
|
1380
|
-
}, er, { immediate: !1 }),
|
|
1381
|
-
let e =
|
|
1371
|
+
function tr(t) {
|
|
1372
|
+
let { provider: n, editor: r } = t, i = e("idle"), a = e(""), { start: o, stop: s } = Te(() => {
|
|
1373
|
+
i.value = "idle";
|
|
1374
|
+
}, er, { immediate: !1 }), c = _(() => typeof n.create == "function"), l = _(() => typeof n.save == "function"), u = _(() => t.isAvailable?.() ?? !0), d = _(() => r.state.template?.name), f = _(() => {
|
|
1375
|
+
let e = r.state.template;
|
|
1382
1376
|
return e?.updatedAt ? {
|
|
1383
1377
|
iso: e.updatedAt,
|
|
1384
1378
|
kind: "updatedAt"
|
|
@@ -1386,16 +1380,16 @@ function tr(e) {
|
|
|
1386
1380
|
iso: e.createdAt,
|
|
1387
1381
|
kind: "createdAt"
|
|
1388
1382
|
} : null;
|
|
1389
|
-
}), p = _(() =>
|
|
1383
|
+
}), p = _(() => r.state.template !== null), m = _(() => r.state.isSaving);
|
|
1390
1384
|
function h() {
|
|
1391
|
-
|
|
1385
|
+
a.value = "", i.value = "saved", s(), o();
|
|
1392
1386
|
}
|
|
1393
1387
|
function g(e) {
|
|
1394
|
-
|
|
1388
|
+
s(), i.value = "error", a.value = e instanceof Error && e.message ? e.message : "Save failed";
|
|
1395
1389
|
}
|
|
1396
1390
|
async function v(e) {
|
|
1397
1391
|
try {
|
|
1398
|
-
let t = await
|
|
1392
|
+
let t = await r.save(e);
|
|
1399
1393
|
return h(), t;
|
|
1400
1394
|
} catch (e) {
|
|
1401
1395
|
throw g(e), e;
|
|
@@ -1403,46 +1397,46 @@ function tr(e) {
|
|
|
1403
1397
|
}
|
|
1404
1398
|
async function y(e) {
|
|
1405
1399
|
try {
|
|
1406
|
-
let t = await
|
|
1407
|
-
return
|
|
1400
|
+
let t = await r.create(e);
|
|
1401
|
+
return s(), i.value = "idle", a.value = "", t;
|
|
1408
1402
|
} catch (e) {
|
|
1409
1403
|
throw g(e), e;
|
|
1410
1404
|
}
|
|
1411
1405
|
}
|
|
1412
1406
|
function b(e, t) {
|
|
1413
|
-
return
|
|
1407
|
+
return s(), i.value = "idle", a.value = "", t ? r.load(e, t) : r.load(e);
|
|
1414
1408
|
}
|
|
1415
1409
|
let x = !1;
|
|
1416
1410
|
function S(e) {
|
|
1417
1411
|
return v(e).then(() => {
|
|
1418
|
-
x && (x = !1,
|
|
1412
|
+
x && (x = !1, r.state.isDirty && T());
|
|
1419
1413
|
}, () => {
|
|
1420
1414
|
x = !1;
|
|
1421
1415
|
});
|
|
1422
1416
|
}
|
|
1423
1417
|
function C() {
|
|
1424
|
-
return !
|
|
1418
|
+
return !l.value || !p.value || m.value;
|
|
1425
1419
|
}
|
|
1426
|
-
function w(
|
|
1420
|
+
function w(e = "manual") {
|
|
1427
1421
|
if (C()) return;
|
|
1428
|
-
let n =
|
|
1429
|
-
n ? n.tryRunSave(() => S(
|
|
1422
|
+
let n = t.getSaveGate?.();
|
|
1423
|
+
n ? n.tryRunSave(() => S(e)) : S(e);
|
|
1430
1424
|
}
|
|
1431
1425
|
function T() {
|
|
1432
|
-
if (!
|
|
1426
|
+
if (!l.value || !p.value) return;
|
|
1433
1427
|
if (m.value) {
|
|
1434
1428
|
x = !0;
|
|
1435
1429
|
return;
|
|
1436
1430
|
}
|
|
1437
|
-
let
|
|
1438
|
-
|
|
1431
|
+
let e = t.getSaveGate?.();
|
|
1432
|
+
e ? e.runUnlessBlocked(() => S("autosave")) : S("autosave");
|
|
1439
1433
|
}
|
|
1440
1434
|
function E(e) {
|
|
1441
1435
|
let t = e.trim();
|
|
1442
|
-
t && t !==
|
|
1436
|
+
t && t !== r.state.template?.name && (r.setName(t), w("rename"));
|
|
1443
1437
|
}
|
|
1444
|
-
return
|
|
1445
|
-
|
|
1438
|
+
return t.guardUnsavedChanges !== !1 && Oe(window, "beforeunload", (e) => {
|
|
1439
|
+
r.state.isDirty && (e.preventDefault(), e.returnValue = "");
|
|
1446
1440
|
}), {
|
|
1447
1441
|
save: v,
|
|
1448
1442
|
create: y,
|
|
@@ -1450,32 +1444,31 @@ function tr(e) {
|
|
|
1450
1444
|
requestSave: w,
|
|
1451
1445
|
requestAutoSave: T,
|
|
1452
1446
|
rename: E,
|
|
1453
|
-
name:
|
|
1454
|
-
timestamp:
|
|
1447
|
+
name: d,
|
|
1448
|
+
timestamp: f,
|
|
1455
1449
|
hasTemplate: p,
|
|
1456
1450
|
isSaving: m,
|
|
1457
|
-
status:
|
|
1458
|
-
errorMessage:
|
|
1459
|
-
canCreate:
|
|
1460
|
-
canSave:
|
|
1461
|
-
isAvailable:
|
|
1451
|
+
status: i,
|
|
1452
|
+
errorMessage: a,
|
|
1453
|
+
canCreate: c,
|
|
1454
|
+
canSave: l,
|
|
1455
|
+
isAvailable: u,
|
|
1462
1456
|
capability: {
|
|
1463
1457
|
save: w,
|
|
1464
1458
|
rename: E,
|
|
1465
|
-
name:
|
|
1466
|
-
timestamp:
|
|
1459
|
+
name: d,
|
|
1460
|
+
timestamp: f,
|
|
1467
1461
|
hasTemplate: p,
|
|
1468
1462
|
isSaving: m,
|
|
1469
|
-
status:
|
|
1470
|
-
errorMessage:
|
|
1471
|
-
canCreate:
|
|
1472
|
-
canSave:
|
|
1473
|
-
isAvailable:
|
|
1463
|
+
status: i,
|
|
1464
|
+
errorMessage: a,
|
|
1465
|
+
canCreate: c,
|
|
1466
|
+
canSave: l,
|
|
1467
|
+
isAvailable: u
|
|
1474
1468
|
}
|
|
1475
1469
|
};
|
|
1476
1470
|
}
|
|
1477
|
-
|
|
1478
|
-
//#region src/utils/toMjml.ts
|
|
1471
|
+
// src/utils/toMjml.ts
|
|
1479
1472
|
async function nr() {
|
|
1480
1473
|
try {
|
|
1481
1474
|
return await import("@templatical/renderer");
|
|
@@ -1498,137 +1491,135 @@ async function rr(e) {
|
|
|
1498
1491
|
...i ? { layout: i } : {}
|
|
1499
1492
|
});
|
|
1500
1493
|
}
|
|
1501
|
-
|
|
1502
|
-
//#region src/composables/useTestEmailFeature.ts
|
|
1494
|
+
// src/composables/useTestEmailFeature.ts
|
|
1503
1495
|
var ir = 1200;
|
|
1504
1496
|
function ar(e) {
|
|
1505
1497
|
return e instanceof Error ? e : Error(String(e));
|
|
1506
1498
|
}
|
|
1507
|
-
function or(
|
|
1508
|
-
let { provider:
|
|
1509
|
-
function
|
|
1510
|
-
|
|
1511
|
-
}
|
|
1512
|
-
h(
|
|
1513
|
-
let
|
|
1514
|
-
let e =
|
|
1499
|
+
function or(t) {
|
|
1500
|
+
let { provider: n } = t, r = e(!1), i = e(!1), a = e(!1), o = e(null), s = null, c = !1;
|
|
1501
|
+
function l() {
|
|
1502
|
+
s !== null && (clearTimeout(s), s = null);
|
|
1503
|
+
}
|
|
1504
|
+
h(l);
|
|
1505
|
+
let u = _(() => n.allowedRecipients), d = _(() => {
|
|
1506
|
+
let e = n.defaultRecipient;
|
|
1515
1507
|
if (e === void 0) return;
|
|
1516
|
-
let
|
|
1517
|
-
if (!
|
|
1518
|
-
}),
|
|
1508
|
+
let t = u.value;
|
|
1509
|
+
if (!t || t.includes(e)) return e;
|
|
1510
|
+
}), f = _(() => u.value?.length === 0 ? !1 : t.isAvailable?.() ?? !0);
|
|
1519
1511
|
function p() {
|
|
1520
|
-
|
|
1512
|
+
f.value && (o.value = null, a.value = !1, l(), r.value = !0);
|
|
1521
1513
|
}
|
|
1522
1514
|
function m() {
|
|
1523
|
-
|
|
1515
|
+
l(), r.value = !1, a.value = !1;
|
|
1524
1516
|
}
|
|
1525
1517
|
async function g() {
|
|
1526
|
-
if (
|
|
1527
|
-
return await
|
|
1528
|
-
} catch (
|
|
1529
|
-
if ((
|
|
1530
|
-
|
|
1518
|
+
if (n.includeMjml && t.renderMjml) try {
|
|
1519
|
+
return await t.renderMjml();
|
|
1520
|
+
} catch (e) {
|
|
1521
|
+
if ((t.usesLocalRenderer?.() ?? !0) && await nr() === null) {
|
|
1522
|
+
c || (c = !0, Mt.warn("testEmail.includeMjml is set but @templatical/renderer is not installed — sending the template as JSON only. Install it to receive `payload.mjml`."));
|
|
1531
1523
|
return;
|
|
1532
1524
|
}
|
|
1533
|
-
throw
|
|
1525
|
+
throw e;
|
|
1534
1526
|
}
|
|
1535
1527
|
}
|
|
1536
|
-
function v(
|
|
1528
|
+
function v(e) {
|
|
1537
1529
|
try {
|
|
1538
|
-
|
|
1539
|
-
} catch (
|
|
1540
|
-
|
|
1530
|
+
n.onSent?.(e);
|
|
1531
|
+
} catch (e) {
|
|
1532
|
+
t.onError?.(ar(e));
|
|
1541
1533
|
}
|
|
1542
1534
|
}
|
|
1543
|
-
async function y(
|
|
1544
|
-
if (
|
|
1545
|
-
let
|
|
1546
|
-
if (
|
|
1535
|
+
async function y(e) {
|
|
1536
|
+
if (i.value) return;
|
|
1537
|
+
let r = u.value;
|
|
1538
|
+
if (r && !r.includes(e)) o.value = { kind: "recipientNotAllowed" };
|
|
1547
1539
|
else {
|
|
1548
|
-
|
|
1540
|
+
i.value = !0, o.value = null;
|
|
1549
1541
|
try {
|
|
1550
|
-
let
|
|
1551
|
-
recipient:
|
|
1552
|
-
content:
|
|
1553
|
-
...
|
|
1554
|
-
...
|
|
1542
|
+
let i = await g(), o = {
|
|
1543
|
+
recipient: e,
|
|
1544
|
+
content: t.getContent(),
|
|
1545
|
+
...i === void 0 ? {} : { mjml: i },
|
|
1546
|
+
...r === void 0 ? {} : { allowedRecipients: r }
|
|
1555
1547
|
};
|
|
1556
|
-
await
|
|
1557
|
-
} catch (
|
|
1558
|
-
let n = ar(
|
|
1559
|
-
|
|
1548
|
+
await n.send(o), a.value = !0, s = setTimeout(m, ir), v(o);
|
|
1549
|
+
} catch (e) {
|
|
1550
|
+
let n = ar(e);
|
|
1551
|
+
o.value = {
|
|
1560
1552
|
kind: "provider",
|
|
1561
1553
|
message: n.message
|
|
1562
|
-
},
|
|
1554
|
+
}, t.onError?.(n);
|
|
1563
1555
|
} finally {
|
|
1564
|
-
|
|
1556
|
+
i.value = !1;
|
|
1565
1557
|
}
|
|
1566
1558
|
}
|
|
1567
1559
|
}
|
|
1568
1560
|
return {
|
|
1569
|
-
isModalOpen:
|
|
1561
|
+
isModalOpen: r,
|
|
1570
1562
|
open: p,
|
|
1571
1563
|
close: m,
|
|
1572
|
-
isSending:
|
|
1573
|
-
justSent:
|
|
1574
|
-
error:
|
|
1564
|
+
isSending: i,
|
|
1565
|
+
justSent: a,
|
|
1566
|
+
error: o,
|
|
1575
1567
|
send: y,
|
|
1576
|
-
allowedRecipients:
|
|
1577
|
-
defaultRecipient:
|
|
1578
|
-
isAvailable:
|
|
1568
|
+
allowedRecipients: u,
|
|
1569
|
+
defaultRecipient: d,
|
|
1570
|
+
isAvailable: f,
|
|
1579
1571
|
capability: {
|
|
1580
1572
|
open: p,
|
|
1581
|
-
isAvailable:
|
|
1573
|
+
isAvailable: f
|
|
1582
1574
|
}
|
|
1583
1575
|
};
|
|
1584
1576
|
}
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
}), c = f(null), l = f(null), u = f(!1), d = f(!1), p = !1;
|
|
1577
|
+
// src/composables/useVersionHistoryFeature.ts
|
|
1578
|
+
function sr(t) {
|
|
1579
|
+
let { provider: n, editor: r, history: i, conditionPreview: a, autoSave: o } = t, s = t.collaboration ?? null, c = ye({
|
|
1580
|
+
provider: n,
|
|
1581
|
+
getTemplateId: () => r.state.template?.id ?? null,
|
|
1582
|
+
onError: t.onError
|
|
1583
|
+
}), l = e(null), u = e(null), d = e(!1), f = e(!1), p = !1;
|
|
1593
1584
|
h(() => {
|
|
1594
1585
|
p = !0;
|
|
1595
1586
|
});
|
|
1596
|
-
let m = _(() =>
|
|
1587
|
+
let m = _(() => c.versions.value), g = _(() => c.isLoading.value), v = _(() => c.isRestoring.value), y = c.canCreate, b = c.canRestore, x = _(() => !!r.state.template?.id), S = _(() => t.isAvailable?.() ?? !0), C = _(() => l.value !== null), w = _(() => t.saveBeforeRestore?.canSave() === !0), T = _(() => f.value || v.value);
|
|
1597
1588
|
function E() {
|
|
1598
|
-
x.value &&
|
|
1589
|
+
x.value && c.load().catch(() => {});
|
|
1599
1590
|
}
|
|
1600
1591
|
async function D(e) {
|
|
1601
1592
|
if (p) return;
|
|
1602
|
-
if (
|
|
1603
|
-
let t =
|
|
1593
|
+
if (d.value = !1, l.value) {
|
|
1594
|
+
let t = c.peekContent(e);
|
|
1604
1595
|
if (t) {
|
|
1605
|
-
|
|
1596
|
+
l.value = e, r.setContent(t, !1);
|
|
1606
1597
|
return;
|
|
1607
1598
|
}
|
|
1608
|
-
let
|
|
1599
|
+
let n = await c.resolveContent(e);
|
|
1609
1600
|
if (p) return;
|
|
1610
|
-
|
|
1601
|
+
l.value = e, r.setContent(n, !1);
|
|
1611
1602
|
return;
|
|
1612
1603
|
}
|
|
1613
|
-
let t = await
|
|
1614
|
-
p || (
|
|
1604
|
+
let t = await c.resolveContent(e);
|
|
1605
|
+
p || (u.value = K(r.content.value), o?.pause(), s?.suspend(), l.value = e, r.setContent(t, !1));
|
|
1615
1606
|
}
|
|
1616
1607
|
async function O() {
|
|
1617
|
-
|
|
1608
|
+
l.value && (r.state.isDirty ? d.value = !0 : await M());
|
|
1618
1609
|
}
|
|
1619
1610
|
async function k() {
|
|
1620
|
-
let
|
|
1621
|
-
if (
|
|
1622
|
-
|
|
1611
|
+
let e = l.value, n = u.value, i = t.saveBeforeRestore;
|
|
1612
|
+
if (e && n && i?.canSave() && !T.value) {
|
|
1613
|
+
r.setContent(n, !1), f.value = !0;
|
|
1623
1614
|
try {
|
|
1624
1615
|
await i.save();
|
|
1625
1616
|
} catch {
|
|
1626
1617
|
if (p) return;
|
|
1627
|
-
let
|
|
1628
|
-
|
|
1618
|
+
let t = c.peekContent(e);
|
|
1619
|
+
t && r.setContent(t, !1);
|
|
1629
1620
|
return;
|
|
1630
1621
|
} finally {
|
|
1631
|
-
p || (
|
|
1622
|
+
p || (f.value = !1);
|
|
1632
1623
|
}
|
|
1633
1624
|
p || await M();
|
|
1634
1625
|
}
|
|
@@ -1637,33 +1628,33 @@ function sr(e) {
|
|
|
1637
1628
|
T.value || await M();
|
|
1638
1629
|
}
|
|
1639
1630
|
function j() {
|
|
1640
|
-
|
|
1631
|
+
d.value = !1;
|
|
1641
1632
|
}
|
|
1642
1633
|
async function M() {
|
|
1643
|
-
if (
|
|
1644
|
-
let e = await
|
|
1634
|
+
if (l.value) try {
|
|
1635
|
+
let e = await c.restore(l.value.id);
|
|
1645
1636
|
if (p) return;
|
|
1646
|
-
if (
|
|
1647
|
-
if (await
|
|
1648
|
-
|
|
1637
|
+
if (s) {
|
|
1638
|
+
if (await s.catchUp(), p) return;
|
|
1639
|
+
i.clear(), a.reset();
|
|
1649
1640
|
} else N(e.content);
|
|
1650
|
-
if (await
|
|
1641
|
+
if (await c.load(), p) return;
|
|
1651
1642
|
} catch (e) {
|
|
1652
|
-
!p &&
|
|
1643
|
+
!p && u.value && r.setContent(u.value, !1);
|
|
1653
1644
|
let t = e;
|
|
1654
|
-
throw
|
|
1645
|
+
throw s && t?.code === "locked_by_others" && s.reportReplaceRefused(Array.isArray(t.holders) ? t.holders : []), e;
|
|
1655
1646
|
} finally {
|
|
1656
|
-
p || (
|
|
1647
|
+
p || (l.value = null, u.value = null, d.value = !1, o?.resume(), s?.resume());
|
|
1657
1648
|
}
|
|
1658
1649
|
}
|
|
1659
1650
|
function N(e) {
|
|
1660
|
-
|
|
1651
|
+
r.setContent(e, !1), i.clear(), a.reset();
|
|
1661
1652
|
}
|
|
1662
1653
|
function P() {
|
|
1663
|
-
|
|
1654
|
+
l.value && u.value && (r.setContent(u.value, !1), l.value = null, u.value = null, d.value = !1, o?.resume(), s?.resume());
|
|
1664
1655
|
}
|
|
1665
1656
|
return {
|
|
1666
|
-
headless:
|
|
1657
|
+
headless: c,
|
|
1667
1658
|
versions: m,
|
|
1668
1659
|
isLoading: g,
|
|
1669
1660
|
isRestoring: v,
|
|
@@ -1671,9 +1662,9 @@ function sr(e) {
|
|
|
1671
1662
|
canRestore: b,
|
|
1672
1663
|
hasTemplate: x,
|
|
1673
1664
|
isAvailable: S,
|
|
1674
|
-
previewingVersion:
|
|
1665
|
+
previewingVersion: l,
|
|
1675
1666
|
isPreviewing: C,
|
|
1676
|
-
isConfirmingRestore:
|
|
1667
|
+
isConfirmingRestore: d,
|
|
1677
1668
|
canSaveBeforeRestore: w,
|
|
1678
1669
|
isConfirmBusy: T,
|
|
1679
1670
|
refresh: E,
|
|
@@ -1694,21 +1685,18 @@ function sr(e) {
|
|
|
1694
1685
|
}
|
|
1695
1686
|
};
|
|
1696
1687
|
}
|
|
1697
|
-
|
|
1698
|
-
//#region src/types/auto-save.ts
|
|
1688
|
+
// src/types/auto-save.ts
|
|
1699
1689
|
function cr(e, t) {
|
|
1700
1690
|
return e ?? t;
|
|
1701
1691
|
}
|
|
1702
|
-
|
|
1703
|
-
//#region src/utils/resolveLintOptions.ts
|
|
1692
|
+
// src/utils/resolveLintOptions.ts
|
|
1704
1693
|
function lr(e) {
|
|
1705
1694
|
return {
|
|
1706
1695
|
...e.lint,
|
|
1707
1696
|
locale: e.locale
|
|
1708
1697
|
};
|
|
1709
1698
|
}
|
|
1710
|
-
|
|
1711
|
-
//#region src/utils/resolveInsertPosition.ts
|
|
1699
|
+
// src/utils/resolveInsertPosition.ts
|
|
1712
1700
|
function ur(e) {
|
|
1713
1701
|
let { blockType: t, selectedBlockId: n, findBlockLocation: r, isBlockLocked: i } = e;
|
|
1714
1702
|
if (!n) return {};
|
|
@@ -1725,8 +1713,7 @@ function ur(e) {
|
|
|
1725
1713
|
index: a.index + 1
|
|
1726
1714
|
};
|
|
1727
1715
|
}
|
|
1728
|
-
|
|
1729
|
-
//#region src/utils/insertBlockAtSelection.ts
|
|
1716
|
+
// src/utils/insertBlockAtSelection.ts
|
|
1730
1717
|
function dr(e, t) {
|
|
1731
1718
|
let { targetSectionId: n, columnIndex: r, index: i } = ur({
|
|
1732
1719
|
blockType: t.type,
|
|
@@ -1736,8 +1723,7 @@ function dr(e, t) {
|
|
|
1736
1723
|
});
|
|
1737
1724
|
return e.addBlock(t, n, r, i), e.findBlockLocation(t.id) ? (e.selectBlock(t.id), !0) : !1;
|
|
1738
1725
|
}
|
|
1739
|
-
|
|
1740
|
-
//#region src/utils/withCollaborativeSave.ts
|
|
1726
|
+
// src/utils/withCollaborativeSave.ts
|
|
1741
1727
|
function fr(e, t, n) {
|
|
1742
1728
|
let { save: r, create: i } = e;
|
|
1743
1729
|
if (typeof r != "function") return e;
|
|
@@ -1753,8 +1739,7 @@ function fr(e, t, n) {
|
|
|
1753
1739
|
}
|
|
1754
1740
|
};
|
|
1755
1741
|
}
|
|
1756
|
-
|
|
1757
|
-
//#region src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
|
|
1742
|
+
// src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
|
|
1758
1743
|
var pr = ["aria-label"], mr = ["lang", "dir"], hr = {
|
|
1759
1744
|
key: 0,
|
|
1760
1745
|
role: "status",
|
|
@@ -1785,8 +1770,8 @@ var pr = ["aria-label"], mr = ["lang", "dir"], hr = {
|
|
|
1785
1770
|
previewMode: { type: Boolean }
|
|
1786
1771
|
},
|
|
1787
1772
|
emits: ["select-block"],
|
|
1788
|
-
setup(
|
|
1789
|
-
let
|
|
1773
|
+
setup(t, { emit: r }) {
|
|
1774
|
+
let o = {
|
|
1790
1775
|
section: Xe,
|
|
1791
1776
|
title: tt,
|
|
1792
1777
|
paragraph: Ue,
|
|
@@ -1801,9 +1786,9 @@ var pr = ["aria-label"], mr = ["lang", "dir"], hr = {
|
|
|
1801
1786
|
video: Ye,
|
|
1802
1787
|
custom: ze,
|
|
1803
1788
|
wrapper: gn
|
|
1804
|
-
}, s =
|
|
1789
|
+
}, s = t, f = r, { t: p } = $(), h = ot(xt, "Canvas"), x = ot(At, "Canvas"), w = n(bt, null), E = n(Ot, null), D = n(St, {}), A = n(ft, null), M = n(_t, null);
|
|
1805
1790
|
c(ht, _(() => s.previewMode && (A?.value ?? !1) && !M?.isConfigured));
|
|
1806
|
-
let N = _(() => D.ai?.isFeatureEnabled("chat") ?? !1), P = _(() => N.value && (D.ai?.isFeatureEnabled("chatAttachments") ?? !1)), F =
|
|
1791
|
+
let N = _(() => D.ai?.isFeatureEnabled("chat") ?? !1), P = _(() => N.value && (D.ai?.isFeatureEnabled("chatAttachments") ?? !1)), F = e(null);
|
|
1807
1792
|
function I() {
|
|
1808
1793
|
F.value?.click();
|
|
1809
1794
|
}
|
|
@@ -1819,81 +1804,81 @@ var pr = ["aria-label"], mr = ["lang", "dir"], hr = {
|
|
|
1819
1804
|
blocks: e
|
|
1820
1805
|
});
|
|
1821
1806
|
}
|
|
1822
|
-
}), V = _(() => be(s.content.settings, s.viewport)), H = _(() => V.value + 192), ee = _(() => Pe(s.content.settings,
|
|
1823
|
-
function
|
|
1807
|
+
}), V = _(() => be(s.content.settings, s.viewport)), H = _(() => V.value + 192), ee = _(() => Pe(s.content.settings, x.resolveFontFamily)), U = _(() => s.content.settings?.locale?.trim() || void 0), W = _(() => re(s.content.settings)), G = _(() => B.value.length === 0 && !s.previewMode), K = e(0), q = _(() => G.value && K.value > 0);
|
|
1808
|
+
function J() {
|
|
1824
1809
|
G.value && (K.value += 1);
|
|
1825
1810
|
}
|
|
1826
|
-
function
|
|
1811
|
+
function Y() {
|
|
1827
1812
|
G.value && (K.value = Math.max(0, K.value - 1));
|
|
1828
1813
|
}
|
|
1829
|
-
function
|
|
1814
|
+
function X() {
|
|
1830
1815
|
K.value = 0;
|
|
1831
1816
|
}
|
|
1832
|
-
function
|
|
1833
|
-
s.previewMode || D.savedBlocks?.isPicking.value || e.target === e.currentTarget &&
|
|
1817
|
+
function te(e) {
|
|
1818
|
+
s.previewMode || D.savedBlocks?.isPicking.value || e.target === e.currentTarget && f("select-block", null);
|
|
1834
1819
|
}
|
|
1835
|
-
function
|
|
1836
|
-
return Ie(e,
|
|
1820
|
+
function ne(e) {
|
|
1821
|
+
return Ie(e, E, o);
|
|
1837
1822
|
}
|
|
1838
|
-
function
|
|
1823
|
+
function Z(e) {
|
|
1839
1824
|
return D.collaboration?.lockOf(e) != null;
|
|
1840
1825
|
}
|
|
1841
|
-
function
|
|
1842
|
-
if (s.previewMode ||
|
|
1826
|
+
function ie(e) {
|
|
1827
|
+
if (s.previewMode || Z(e)) return;
|
|
1843
1828
|
let t = D.savedBlocks;
|
|
1844
|
-
t?.isPicking.value ? t.togglePick(e) :
|
|
1829
|
+
t?.isPicking.value ? t.togglePick(e) : f("select-block", e);
|
|
1845
1830
|
}
|
|
1846
|
-
function
|
|
1831
|
+
function ae(e) {
|
|
1847
1832
|
return D.savedBlocks?.isPicked(e) ?? !1;
|
|
1848
1833
|
}
|
|
1849
|
-
let
|
|
1850
|
-
function
|
|
1834
|
+
let Q = _(() => D.savedBlocks?.isPicking.value === !0);
|
|
1835
|
+
function oe(e, t) {
|
|
1851
1836
|
e.type === "custom" && h.updateBlock(e.id, {
|
|
1852
1837
|
fieldValues: t.fieldValues,
|
|
1853
1838
|
dataSourceFetched: t.dataSourceFetched
|
|
1854
1839
|
});
|
|
1855
1840
|
}
|
|
1856
|
-
return (
|
|
1841
|
+
return (e, n) => (S(), y("div", {
|
|
1857
1842
|
class: "tpl-canvas-stage tpl:relative tpl:mx-auto tpl:flex tpl:justify-center tpl:rounded-lg",
|
|
1858
|
-
style:
|
|
1843
|
+
style: l({
|
|
1859
1844
|
width: `${H.value}px`,
|
|
1860
1845
|
maxWidth: "calc(100% - 4 * var(--tpl-base-size))",
|
|
1861
1846
|
minWidth: "min-content",
|
|
1862
|
-
boxShadow:
|
|
1863
|
-
transition:
|
|
1847
|
+
boxShadow: t.darkMode ? "none" : "var(--tpl-shadow-xl)",
|
|
1848
|
+
transition: k(Ce)
|
|
1864
1849
|
})
|
|
1865
|
-
}, [
|
|
1850
|
+
}, [T("div", {
|
|
1866
1851
|
class: "tpl-canvas-bg tpl:absolute tpl:inset-0 tpl:rounded-lg tpl:pointer-events-none",
|
|
1867
|
-
style:
|
|
1868
|
-
backgroundColor:
|
|
1869
|
-
...
|
|
1852
|
+
style: l({
|
|
1853
|
+
backgroundColor: t.content.settings.backgroundColor,
|
|
1854
|
+
...t.darkMode ? { filter: "invert(1) hue-rotate(180deg)" } : {},
|
|
1870
1855
|
transition: "filter 300ms ease"
|
|
1871
1856
|
})
|
|
1872
|
-
}, null, 4),
|
|
1857
|
+
}, null, 4), T("div", {
|
|
1873
1858
|
"data-testid": "canvas-wrapper",
|
|
1874
1859
|
role: "region",
|
|
1875
|
-
"aria-label":
|
|
1860
|
+
"aria-label": k(p).landmarks.canvas,
|
|
1876
1861
|
class: "tpl-canvas-wrapper tpl:relative",
|
|
1877
|
-
style:
|
|
1862
|
+
style: l({
|
|
1878
1863
|
width: `${V.value}px`,
|
|
1879
|
-
transition:
|
|
1864
|
+
transition: k(Ce)
|
|
1880
1865
|
})
|
|
1881
|
-
}, [
|
|
1882
|
-
class:
|
|
1883
|
-
"tpl-canvas--dark-mode":
|
|
1884
|
-
"tpl-preview-mode":
|
|
1866
|
+
}, [T("div", {
|
|
1867
|
+
class: C(["tpl-canvas tpl:relative tpl:rounded-lg", {
|
|
1868
|
+
"tpl-canvas--dark-mode": t.darkMode,
|
|
1869
|
+
"tpl-preview-mode": t.previewMode
|
|
1885
1870
|
}]),
|
|
1886
1871
|
lang: U.value,
|
|
1887
1872
|
dir: W.value,
|
|
1888
|
-
style:
|
|
1889
|
-
onClick:
|
|
1890
|
-
}, [
|
|
1873
|
+
style: l(ee.value),
|
|
1874
|
+
onClick: te
|
|
1875
|
+
}, [k(M)?.isInitialResolve.value ? (S(), y("div", hr, [T("span", gr, d(k(p).previewResolution.resolving), 1), (S(), y(O, null, u(3, (e) => T("div", {
|
|
1891
1876
|
key: e,
|
|
1892
1877
|
"aria-hidden": "true",
|
|
1893
1878
|
class: "tpl-pulse tpl:h-16 tpl:rounded-md tpl:bg-[var(--tpl-bg-hover)]"
|
|
1894
|
-
})), 64))])) :
|
|
1879
|
+
})), 64))])) : k(M)?.hasFailed.value ? (S(), y("p", _r, d(k(p).previewResolution.failed), 1)) : v("", !0), m(g(k($e), {
|
|
1895
1880
|
modelValue: B.value,
|
|
1896
|
-
"onUpdate:modelValue":
|
|
1881
|
+
"onUpdate:modelValue": n[1] ||= (e) => B.value = e,
|
|
1897
1882
|
group: "blocks",
|
|
1898
1883
|
animation: 150,
|
|
1899
1884
|
"ghost-class": "tpl-ghost",
|
|
@@ -1901,53 +1886,53 @@ var pr = ["aria-label"], mr = ["lang", "dir"], hr = {
|
|
|
1901
1886
|
handle: ".tpl-block-btn",
|
|
1902
1887
|
"invert-swap": !0,
|
|
1903
1888
|
"inverted-swap-threshold": .65,
|
|
1904
|
-
disabled:
|
|
1889
|
+
disabled: t.previewMode,
|
|
1905
1890
|
draggable: ">:not(.tpl-canvas-empty-content)",
|
|
1906
1891
|
"force-fallback": !0,
|
|
1907
|
-
class:
|
|
1892
|
+
class: C([
|
|
1908
1893
|
"tpl-canvas-blocks",
|
|
1909
1894
|
G.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" : "",
|
|
1910
1895
|
G.value && q.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
|
|
1911
1896
|
G.value && !q.value ? "tpl:border-[var(--tpl-primary)]" : ""
|
|
1912
1897
|
]),
|
|
1913
|
-
onDragenter:
|
|
1914
|
-
onDragleave:
|
|
1915
|
-
onDrop:
|
|
1898
|
+
onDragenter: J,
|
|
1899
|
+
onDragleave: Y,
|
|
1900
|
+
onDrop: X
|
|
1916
1901
|
}, {
|
|
1917
|
-
default:
|
|
1918
|
-
|
|
1902
|
+
default: i(() => [G.value ? (S(), y("div", vr, [
|
|
1903
|
+
T("div", yr, [g(k(kn), {
|
|
1919
1904
|
size: 48,
|
|
1920
1905
|
"stroke-width": 1
|
|
1921
1906
|
})]),
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
N.value ? (
|
|
1925
|
-
|
|
1926
|
-
|
|
1907
|
+
T("p", br, d(k(p).canvas.noBlocks), 1),
|
|
1908
|
+
T("p", xr, d(k(p).canvas.dragHint), 1),
|
|
1909
|
+
N.value ? (S(), y("p", Sr, [
|
|
1910
|
+
b(d(k(p).ai.canvas.chatHint) + " ", 1),
|
|
1911
|
+
T("button", {
|
|
1927
1912
|
type: "button",
|
|
1928
1913
|
"data-testid": "canvas-ai-chat",
|
|
1929
1914
|
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)]",
|
|
1930
|
-
onClick:
|
|
1931
|
-
}, [g(
|
|
1915
|
+
onClick: n[0] ||= (e) => k(D).ai?.open("chat")
|
|
1916
|
+
}, [g(k(Zt), {
|
|
1932
1917
|
size: 14,
|
|
1933
1918
|
"stroke-width": 2,
|
|
1934
1919
|
"aria-hidden": "true"
|
|
1935
|
-
}),
|
|
1936
|
-
|
|
1920
|
+
}), b(" " + d(k(p).ai.menu.chat), 1)]),
|
|
1921
|
+
b(" " + d(k(p).ai.canvas.chatHintSuffix), 1)
|
|
1937
1922
|
])) : v("", !0),
|
|
1938
|
-
P.value ? (
|
|
1939
|
-
|
|
1940
|
-
|
|
1923
|
+
P.value ? (S(), y("p", Cr, [
|
|
1924
|
+
b(d(k(p).ai.canvas.importHint) + " ", 1),
|
|
1925
|
+
T("button", {
|
|
1941
1926
|
type: "button",
|
|
1942
1927
|
"data-testid": "canvas-ai-import",
|
|
1943
1928
|
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)]",
|
|
1944
1929
|
onClick: I
|
|
1945
|
-
}, [g(
|
|
1930
|
+
}, [g(k(Sn), {
|
|
1946
1931
|
size: 14,
|
|
1947
1932
|
"stroke-width": 2,
|
|
1948
1933
|
"aria-hidden": "true"
|
|
1949
|
-
}),
|
|
1950
|
-
|
|
1934
|
+
}), b(" " + d(k(p).ai.import.menu), 1)]),
|
|
1935
|
+
T("input", {
|
|
1951
1936
|
ref_key: "importInput",
|
|
1952
1937
|
ref: F,
|
|
1953
1938
|
type: "file",
|
|
@@ -1957,27 +1942,27 @@ var pr = ["aria-label"], mr = ["lang", "dir"], hr = {
|
|
|
1957
1942
|
onChange: L
|
|
1958
1943
|
}, null, 544)
|
|
1959
1944
|
])) : v("", !0)
|
|
1960
|
-
])) : v("", !0), (
|
|
1961
|
-
key:
|
|
1945
|
+
])) : v("", !0), (S(!0), y(O, null, u(B.value, (e) => m((S(), y("div", {
|
|
1946
|
+
key: e.id,
|
|
1962
1947
|
class: "tpl-block-item"
|
|
1963
|
-
}, [
|
|
1948
|
+
}, [T("div", wr, [e.type === "wrapper" ? (S(), j(a(ne(e)), {
|
|
1964
1949
|
key: 0,
|
|
1965
|
-
block:
|
|
1966
|
-
viewport:
|
|
1967
|
-
}, null, 8, ["block", "viewport"])) : (
|
|
1950
|
+
block: e,
|
|
1951
|
+
viewport: t.viewport
|
|
1952
|
+
}, null, 8, ["block", "viewport"])) : (S(), j(He, {
|
|
1968
1953
|
key: 1,
|
|
1969
|
-
block:
|
|
1970
|
-
"is-selected": !
|
|
1971
|
-
picked:
|
|
1972
|
-
viewport:
|
|
1973
|
-
"preview-mode":
|
|
1974
|
-
onSelect: (
|
|
1954
|
+
block: e,
|
|
1955
|
+
"is-selected": !t.previewMode && !Q.value && t.selectedBlockId === e.id && !Z(e.id),
|
|
1956
|
+
picked: ae(e.id),
|
|
1957
|
+
viewport: t.viewport,
|
|
1958
|
+
"preview-mode": t.previewMode,
|
|
1959
|
+
onSelect: (t) => ie(e.id)
|
|
1975
1960
|
}, {
|
|
1976
|
-
default:
|
|
1977
|
-
block:
|
|
1978
|
-
viewport:
|
|
1979
|
-
onFetchData: (
|
|
1980
|
-
onUpdate: (
|
|
1961
|
+
default: i(() => [(S(), j(a(ne(e)), {
|
|
1962
|
+
block: e,
|
|
1963
|
+
viewport: t.viewport,
|
|
1964
|
+
onFetchData: (t) => oe(e, t),
|
|
1965
|
+
onUpdate: (t) => k(h).updateBlock(e.id, t)
|
|
1981
1966
|
}, null, 40, [
|
|
1982
1967
|
"block",
|
|
1983
1968
|
"viewport",
|
|
@@ -1992,13 +1977,13 @@ var pr = ["aria-label"], mr = ["lang", "dir"], hr = {
|
|
|
1992
1977
|
"viewport",
|
|
1993
1978
|
"preview-mode",
|
|
1994
1979
|
"onSelect"
|
|
1995
|
-
]))])])), [[z,
|
|
1980
|
+
]))])])), [[z, k(R) === !1 || !k(w)?.isHidden(e.id)]])), 128))]),
|
|
1996
1981
|
_: 1
|
|
1997
1982
|
}, 8, [
|
|
1998
1983
|
"modelValue",
|
|
1999
1984
|
"disabled",
|
|
2000
1985
|
"class"
|
|
2001
|
-
]), [[z, !
|
|
1986
|
+
]), [[z, !k(M)?.isInitialResolve.value]])], 14, mr)], 12, pr)], 4));
|
|
2002
1987
|
}
|
|
2003
1988
|
}), [["__scopeId", "data-v-b9798ef2"]]), Er = P({
|
|
2004
1989
|
name: "CustomBlockStylesheets",
|
|
@@ -2011,8 +1996,7 @@ var pr = ["aria-label"], mr = ["lang", "dir"], hr = {
|
|
|
2011
1996
|
})) : null;
|
|
2012
1997
|
}
|
|
2013
1998
|
});
|
|
2014
|
-
|
|
2015
|
-
//#region src/utils/resolvePaletteBlocks.ts
|
|
1999
|
+
// src/utils/resolvePaletteBlocks.ts
|
|
2016
2000
|
function Dr(e, t) {
|
|
2017
2001
|
if (!t || t.length === 0) return {
|
|
2018
2002
|
items: e,
|
|
@@ -2030,8 +2014,7 @@ function Dr(e, t) {
|
|
|
2030
2014
|
unknown: i
|
|
2031
2015
|
};
|
|
2032
2016
|
}
|
|
2033
|
-
|
|
2034
|
-
//#region src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
2017
|
+
// src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
2035
2018
|
var Or = ["aria-label"], kr = {
|
|
2036
2019
|
key: 0,
|
|
2037
2020
|
class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
|
|
@@ -2048,43 +2031,43 @@ var Or = ["aria-label"], kr = {
|
|
|
2048
2031
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
2049
2032
|
}, Fr = 4, Ir = /* @__PURE__ */ P({
|
|
2050
2033
|
__name: "Sidebar",
|
|
2051
|
-
setup(
|
|
2052
|
-
let { t, format:
|
|
2034
|
+
setup(t) {
|
|
2035
|
+
let { t: r, format: o } = $(), s = n(Tt, []), c = n(jt, void 0), f = n(wt, void 0), p = n(xt, null), m = Wt(), b = n(St, {}), x = _(() => b.savedBlocks?.isAvailable.value === !0), C = e(!1), w = e(!1), E = e(null), D = !1, A = 0;
|
|
2053
2036
|
h(() => {
|
|
2054
2037
|
window.clearTimeout(A);
|
|
2055
2038
|
});
|
|
2056
2039
|
function M() {
|
|
2057
2040
|
try {
|
|
2058
|
-
return
|
|
2041
|
+
return E.value?.querySelector(":focus-visible") != null;
|
|
2059
2042
|
} catch {
|
|
2060
2043
|
return !1;
|
|
2061
2044
|
}
|
|
2062
2045
|
}
|
|
2063
2046
|
function N() {
|
|
2064
|
-
|
|
2047
|
+
w.value || M() || (C.value = !1);
|
|
2065
2048
|
}
|
|
2066
2049
|
function P() {
|
|
2067
|
-
|
|
2050
|
+
w.value = !0;
|
|
2068
2051
|
}
|
|
2069
2052
|
function I() {
|
|
2070
|
-
|
|
2053
|
+
w.value = !1;
|
|
2071
2054
|
}
|
|
2072
2055
|
function L() {
|
|
2073
2056
|
D = !0, window.clearTimeout(A);
|
|
2074
2057
|
}
|
|
2075
2058
|
function R(e) {
|
|
2076
2059
|
let t = e.relatedTarget;
|
|
2077
|
-
t instanceof Node &&
|
|
2060
|
+
t instanceof Node && E.value?.contains(t) || E.value?.matches(":hover") || (C.value = !1);
|
|
2078
2061
|
}
|
|
2079
2062
|
function z() {
|
|
2080
|
-
|
|
2063
|
+
E.value?.ownerDocument.dispatchEvent(new MouseEvent("click", {
|
|
2081
2064
|
bubbles: !0,
|
|
2082
2065
|
cancelable: !0,
|
|
2083
2066
|
composed: !0
|
|
2084
2067
|
}));
|
|
2085
2068
|
}
|
|
2086
2069
|
function B() {
|
|
2087
|
-
|
|
2070
|
+
w.value = !1, E.value?.matches(":hover") ? (C.value = !0, z()) : C.value = !1, window.clearTimeout(A), A = window.setTimeout(() => {
|
|
2088
2071
|
D = !1;
|
|
2089
2072
|
}, 0);
|
|
2090
2073
|
}
|
|
@@ -2102,76 +2085,76 @@ var Or = ["aria-label"], kr = {
|
|
|
2102
2085
|
"table",
|
|
2103
2086
|
"spacer",
|
|
2104
2087
|
"html"
|
|
2105
|
-
],
|
|
2088
|
+
], ee = _(() => {
|
|
2106
2089
|
let e = V.map((e) => ({
|
|
2107
2090
|
type: e,
|
|
2108
|
-
label: me(e,
|
|
2091
|
+
label: me(e, r)
|
|
2109
2092
|
}));
|
|
2110
|
-
return
|
|
2093
|
+
return b.plan && e.splice(-1, 0, {
|
|
2111
2094
|
type: "countdown",
|
|
2112
|
-
label: me("countdown",
|
|
2095
|
+
label: me("countdown", r)
|
|
2113
2096
|
}), e;
|
|
2114
|
-
}), U = _(() =>
|
|
2097
|
+
}), U = _(() => s.map((e) => ({
|
|
2115
2098
|
type: `custom:${e.type}`,
|
|
2116
2099
|
label: e.name,
|
|
2117
2100
|
isCustom: !0,
|
|
2118
2101
|
icon: e.icon
|
|
2119
|
-
}))),
|
|
2120
|
-
F(() =>
|
|
2121
|
-
for (let t of e)
|
|
2102
|
+
}))), W = _(() => [...ee.value, ...U.value]), G = _(() => Dr(W.value, c)), K = _(() => G.value.items), q = /* @__PURE__ */ new Set();
|
|
2103
|
+
F(() => G.value.unknown, (e) => {
|
|
2104
|
+
for (let t of e) q.has(t) || (q.add(t), Mt.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.`));
|
|
2122
2105
|
}, { immediate: !0 });
|
|
2123
|
-
function
|
|
2106
|
+
function J(e) {
|
|
2124
2107
|
if (e.isCustom) {
|
|
2125
|
-
let t = e.type.replace("custom:", ""), n =
|
|
2126
|
-
if (n) return
|
|
2108
|
+
let t = e.type.replace("custom:", ""), n = s.find((e) => e.type === t);
|
|
2109
|
+
if (n) return H(n);
|
|
2127
2110
|
}
|
|
2128
|
-
return e.type === "hero" ? qe(
|
|
2111
|
+
return e.type === "hero" ? qe(f?.value, r.blockDefaults.paragraph) : ue(e.type, f?.value);
|
|
2129
2112
|
}
|
|
2130
|
-
function
|
|
2131
|
-
if (!
|
|
2132
|
-
let t =
|
|
2133
|
-
dr(
|
|
2113
|
+
function Y(e) {
|
|
2114
|
+
if (!p) return;
|
|
2115
|
+
let t = J(e);
|
|
2116
|
+
dr(p, t) && m(t.id);
|
|
2134
2117
|
}
|
|
2135
|
-
function
|
|
2136
|
-
D ||
|
|
2118
|
+
function X(e) {
|
|
2119
|
+
D || Y(e);
|
|
2137
2120
|
}
|
|
2138
|
-
function
|
|
2139
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
2121
|
+
function te(e, t) {
|
|
2122
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), Y(t));
|
|
2140
2123
|
}
|
|
2141
|
-
return (e,
|
|
2124
|
+
return (e, t) => (S(), y("aside", {
|
|
2142
2125
|
ref_key: "railEl",
|
|
2143
|
-
ref:
|
|
2144
|
-
"aria-label":
|
|
2126
|
+
ref: E,
|
|
2127
|
+
"aria-label": k(r).sidebarNav.palette,
|
|
2145
2128
|
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",
|
|
2146
|
-
style:
|
|
2147
|
-
width:
|
|
2129
|
+
style: l({
|
|
2130
|
+
width: C.value ? "200px" : "48px",
|
|
2148
2131
|
backgroundColor: "var(--tpl-bg-elevated)",
|
|
2149
2132
|
borderRight: "1px solid var(--tpl-border)",
|
|
2150
|
-
boxShadow:
|
|
2133
|
+
boxShadow: C.value ? "var(--tpl-shadow-lg)" : "none",
|
|
2151
2134
|
transition: "width 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
2152
2135
|
}),
|
|
2153
|
-
onMouseenter:
|
|
2136
|
+
onMouseenter: t[1] ||= (e) => C.value = !0,
|
|
2154
2137
|
onMouseleave: N,
|
|
2155
|
-
onFocusin:
|
|
2138
|
+
onFocusin: t[2] ||= (e) => C.value = !0,
|
|
2156
2139
|
onFocusout: R
|
|
2157
|
-
}, [
|
|
2140
|
+
}, [x.value ? (S(), y("div", kr, [T("button", {
|
|
2158
2141
|
type: "button",
|
|
2159
|
-
"aria-label":
|
|
2142
|
+
"aria-label": k(r).sidebarNav.browseSavedBlocks,
|
|
2160
2143
|
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)]",
|
|
2161
|
-
style:
|
|
2162
|
-
onClick:
|
|
2163
|
-
}, [g(
|
|
2144
|
+
style: l({ justifyContent: C.value ? "flex-start" : "center" }),
|
|
2145
|
+
onClick: t[0] ||= (e) => k(b).savedBlocks?.openBrowser()
|
|
2146
|
+
}, [g(k(Jt), {
|
|
2164
2147
|
size: 20,
|
|
2165
2148
|
"stroke-width": 1.5,
|
|
2166
2149
|
class: "tpl:shrink-0"
|
|
2167
|
-
}),
|
|
2168
|
-
"model-value":
|
|
2150
|
+
}), C.value ? (S(), y("span", jr, d(k(r).savedBlocks.title), 1)) : v("", !0)], 12, Ar)])) : v("", !0), g(k($e), {
|
|
2151
|
+
"model-value": K.value,
|
|
2169
2152
|
group: {
|
|
2170
2153
|
name: "blocks",
|
|
2171
2154
|
pull: "clone",
|
|
2172
2155
|
put: !1
|
|
2173
2156
|
},
|
|
2174
|
-
clone:
|
|
2157
|
+
clone: J,
|
|
2175
2158
|
sort: !1,
|
|
2176
2159
|
animation: 150,
|
|
2177
2160
|
"force-fallback": !0,
|
|
@@ -2182,24 +2165,24 @@ var Or = ["aria-label"], kr = {
|
|
|
2182
2165
|
onUnchoose: I,
|
|
2183
2166
|
onEnd: B
|
|
2184
2167
|
}, {
|
|
2185
|
-
default:
|
|
2168
|
+
default: i(() => [(S(!0), y(O, null, u(K.value, (e) => (S(), y("button", {
|
|
2186
2169
|
key: e.type,
|
|
2187
2170
|
type: "button",
|
|
2188
2171
|
"data-palette-type": e.type,
|
|
2189
|
-
"aria-label":
|
|
2172
|
+
"aria-label": k(o)(k(r).sidebarNav.insertBlock, { block: e.label }),
|
|
2190
2173
|
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",
|
|
2191
|
-
style:
|
|
2192
|
-
onClick: (t) =>
|
|
2193
|
-
onKeydown: (t) =>
|
|
2194
|
-
}, [
|
|
2174
|
+
style: l({ justifyContent: C.value ? "flex-start" : "center" }),
|
|
2175
|
+
onClick: (t) => X(e),
|
|
2176
|
+
onKeydown: (t) => te(t, e)
|
|
2177
|
+
}, [T("div", Nr, [k(Rt)[e.type] ? (S(), j(a(k(Rt)[e.type]), {
|
|
2195
2178
|
key: 0,
|
|
2196
2179
|
size: 20,
|
|
2197
2180
|
"stroke-width": 1.5
|
|
2198
|
-
})) : e.isCustom ? (
|
|
2181
|
+
})) : e.isCustom ? (S(), j(rt, {
|
|
2199
2182
|
key: 1,
|
|
2200
2183
|
icon: e.icon,
|
|
2201
2184
|
size: 20
|
|
2202
|
-
}, null, 8, ["icon"])) : v("", !0)]),
|
|
2185
|
+
}, null, 8, ["icon"])) : v("", !0)]), C.value ? (S(), y("span", Pr, d(e.label), 1)) : v("", !0)], 44, Mr))), 128))]),
|
|
2203
2186
|
_: 1
|
|
2204
2187
|
}, 8, ["model-value"])], 44, Or));
|
|
2205
2188
|
}
|
|
@@ -2258,94 +2241,94 @@ var Or = ["aria-label"], kr = {
|
|
|
2258
2241
|
"duplicate-block",
|
|
2259
2242
|
"update-settings"
|
|
2260
2243
|
], ["update:tab"]),
|
|
2261
|
-
setup(e, { emit:
|
|
2262
|
-
let
|
|
2263
|
-
function
|
|
2244
|
+
setup(e, { emit: t }) {
|
|
2245
|
+
let r = M(() => import("./Toolbar-BZPFfKrf.js").then((e) => e.t)), i = M(() => import("./TemplateSettings-CS0f1Ues.js")), a = M(() => import("./IssuesPanel-4ykrf1ax.js")), o = e, c = t, { t: u } = $(), f = s(e, "tab"), p = n(dt, null), m = _(() => p !== null && !p.unavailable.value), h = _(() => p?.issues.value.length ?? 0), b = n(Et, new Set(Nt)), x = _(() => b.size > 0);
|
|
2246
|
+
function w(e) {
|
|
2264
2247
|
return f.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)]";
|
|
2265
2248
|
}
|
|
2266
|
-
function
|
|
2249
|
+
function E(e) {
|
|
2267
2250
|
return f.value === e ? {
|
|
2268
2251
|
backgroundColor: "var(--tpl-bg)",
|
|
2269
2252
|
boxShadow: "var(--tpl-shadow-sm)"
|
|
2270
2253
|
} : { backgroundColor: "transparent" };
|
|
2271
2254
|
}
|
|
2272
|
-
return F(() =>
|
|
2255
|
+
return F(() => o.selectedBlock, (e) => {
|
|
2273
2256
|
e && (f.value = "content");
|
|
2274
2257
|
}), F(m, (e) => {
|
|
2275
2258
|
!e && f.value === "issues" && (f.value = "content");
|
|
2276
|
-
}), (
|
|
2277
|
-
"aria-label":
|
|
2278
|
-
class:
|
|
2259
|
+
}), (t, n) => (S(), y("aside", {
|
|
2260
|
+
"aria-label": k(u).landmarks.rightSidebar,
|
|
2261
|
+
class: C(["tpl-right-sidebar tpl:absolute tpl:top-14 tpl:bottom-0 tpl:z-40 tpl:flex tpl:box-border tpl:w-[320px] tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)] tpl:transition-all tpl:duration-200 tpl:border-l tpl:border-[var(--tpl-border)]", e.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"])
|
|
2279
2262
|
}, [
|
|
2280
|
-
|
|
2281
|
-
|
|
2263
|
+
T("div", Rr, [
|
|
2264
|
+
T("button", {
|
|
2282
2265
|
id: "tpl-tab-content",
|
|
2283
2266
|
role: "tab",
|
|
2284
2267
|
"aria-selected": f.value === "content",
|
|
2285
2268
|
"aria-controls": "tpl-tabpanel-content",
|
|
2286
|
-
"aria-label":
|
|
2287
|
-
title:
|
|
2288
|
-
class:
|
|
2289
|
-
style:
|
|
2290
|
-
onClick:
|
|
2291
|
-
}, [g(
|
|
2269
|
+
"aria-label": k(u).sidebar.content,
|
|
2270
|
+
title: k(u).sidebar.content,
|
|
2271
|
+
class: C(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", w("content")]),
|
|
2272
|
+
style: l(E("content")),
|
|
2273
|
+
onClick: n[0] ||= (e) => f.value = "content"
|
|
2274
|
+
}, [g(k(Tn), {
|
|
2292
2275
|
size: 14,
|
|
2293
2276
|
"stroke-width": 2
|
|
2294
|
-
}), f.value === "content" ? (
|
|
2295
|
-
x.value ? (
|
|
2277
|
+
}), f.value === "content" ? (S(), y("span", Br, d(k(u).sidebar.content), 1)) : v("", !0)], 14, zr),
|
|
2278
|
+
x.value ? (S(), y("button", {
|
|
2296
2279
|
key: 0,
|
|
2297
2280
|
id: "tpl-tab-settings",
|
|
2298
2281
|
role: "tab",
|
|
2299
2282
|
"aria-selected": f.value === "settings",
|
|
2300
2283
|
"aria-controls": "tpl-tabpanel-settings",
|
|
2301
|
-
"aria-label":
|
|
2302
|
-
title:
|
|
2303
|
-
class:
|
|
2304
|
-
style:
|
|
2305
|
-
onClick:
|
|
2306
|
-
}, [g(
|
|
2284
|
+
"aria-label": k(u).sidebar.settings,
|
|
2285
|
+
title: k(u).sidebar.settings,
|
|
2286
|
+
class: C(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", w("settings")]),
|
|
2287
|
+
style: l(E("settings")),
|
|
2288
|
+
onClick: n[1] ||= (e) => f.value = "settings"
|
|
2289
|
+
}, [g(k(On), {
|
|
2307
2290
|
size: 14,
|
|
2308
2291
|
"stroke-width": 1.5
|
|
2309
|
-
}), f.value === "settings" ? (
|
|
2310
|
-
m.value ? (
|
|
2292
|
+
}), f.value === "settings" ? (S(), y("span", Hr, d(k(u).sidebar.settings), 1)) : v("", !0)], 14, Vr)) : v("", !0),
|
|
2293
|
+
m.value ? (S(), y("button", {
|
|
2311
2294
|
key: 1,
|
|
2312
2295
|
id: "tpl-tab-issues",
|
|
2313
2296
|
role: "tab",
|
|
2314
2297
|
"aria-selected": f.value === "issues",
|
|
2315
2298
|
"aria-controls": "tpl-tabpanel-issues",
|
|
2316
|
-
"aria-label":
|
|
2317
|
-
title:
|
|
2318
|
-
class:
|
|
2319
|
-
style:
|
|
2320
|
-
onClick:
|
|
2299
|
+
"aria-label": k(u).issues.panelTabLabel,
|
|
2300
|
+
title: k(u).issues.panelTabLabel,
|
|
2301
|
+
class: C(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", w("issues")]),
|
|
2302
|
+
style: l(E("issues")),
|
|
2303
|
+
onClick: n[2] ||= (e) => f.value = "issues"
|
|
2321
2304
|
}, [
|
|
2322
|
-
g(
|
|
2305
|
+
g(k(Ht), {
|
|
2323
2306
|
size: 14,
|
|
2324
2307
|
"stroke-width": 1.5
|
|
2325
2308
|
}),
|
|
2326
|
-
f.value === "issues" ? (
|
|
2327
|
-
h.value > 0 ? (
|
|
2309
|
+
f.value === "issues" ? (S(), y("span", Wr, d(k(u).issues.panelTabLabel), 1)) : v("", !0),
|
|
2310
|
+
h.value > 0 ? (S(), y("span", Gr, d(h.value), 1)) : v("", !0)
|
|
2328
2311
|
], 14, Ur)) : v("", !0)
|
|
2329
2312
|
]),
|
|
2330
|
-
f.value === "content" ? (
|
|
2313
|
+
f.value === "content" ? (S(), y("div", Kr, [e.selectedBlock ? (S(), j(k(r), {
|
|
2331
2314
|
key: 0,
|
|
2332
2315
|
block: e.selectedBlock,
|
|
2333
|
-
onUpdate:
|
|
2334
|
-
onDelete:
|
|
2335
|
-
onDuplicate:
|
|
2336
|
-
}, null, 8, ["block"])) : (
|
|
2337
|
-
|
|
2316
|
+
onUpdate: n[3] ||= (e) => c("update-block", e),
|
|
2317
|
+
onDelete: n[4] ||= (e) => c("delete-block"),
|
|
2318
|
+
onDuplicate: n[5] ||= (e) => c("duplicate-block")
|
|
2319
|
+
}, null, 8, ["block"])) : (S(), y("div", qr, [
|
|
2320
|
+
T("div", Jr, [g(k(Cn), {
|
|
2338
2321
|
size: 40,
|
|
2339
2322
|
"stroke-width": 1.5
|
|
2340
2323
|
})]),
|
|
2341
|
-
|
|
2342
|
-
|
|
2324
|
+
T("h3", Yr, d(k(u).sidebar.noSelection), 1),
|
|
2325
|
+
T("p", Xr, d(k(u).sidebar.noSelectionHint), 1)
|
|
2343
2326
|
]))])) : v("", !0),
|
|
2344
|
-
f.value === "settings" && x.value ? (
|
|
2327
|
+
f.value === "settings" && x.value ? (S(), y("div", Zr, [g(k(i), {
|
|
2345
2328
|
settings: e.settings,
|
|
2346
|
-
onUpdate:
|
|
2329
|
+
onUpdate: n[6] ||= (e) => c("update-settings", e)
|
|
2347
2330
|
}, null, 8, ["settings"])])) : v("", !0),
|
|
2348
|
-
f.value === "issues" && m.value ? (
|
|
2331
|
+
f.value === "issues" && m.value ? (S(), y("div", Qr, [g(k(a))])) : v("", !0)
|
|
2349
2332
|
], 10, Lr));
|
|
2350
2333
|
}
|
|
2351
2334
|
}), ei = {
|
|
@@ -2357,13 +2340,13 @@ var Or = ["aria-label"], kr = {
|
|
|
2357
2340
|
__name: "SmallScreenNotice",
|
|
2358
2341
|
setup(e) {
|
|
2359
2342
|
let { t } = $();
|
|
2360
|
-
return (e, n) => (
|
|
2361
|
-
|
|
2343
|
+
return (e, n) => (S(), y("div", ei, [
|
|
2344
|
+
T("div", ti, [g(k(qt), {
|
|
2362
2345
|
size: 48,
|
|
2363
2346
|
"stroke-width": 1.5
|
|
2364
2347
|
})]),
|
|
2365
|
-
|
|
2366
|
-
|
|
2348
|
+
T("h2", ni, d(k(t).smallScreen.title), 1),
|
|
2349
|
+
T("p", ri, d(k(t).smallScreen.message), 1)
|
|
2367
2350
|
]));
|
|
2368
2351
|
}
|
|
2369
2352
|
}), ai = {
|
|
@@ -2377,8 +2360,8 @@ var Or = ["aria-label"], kr = {
|
|
|
2377
2360
|
__name: "EditorFooter",
|
|
2378
2361
|
props: { positionClass: {} },
|
|
2379
2362
|
setup(e) {
|
|
2380
|
-
let { t
|
|
2381
|
-
return (
|
|
2363
|
+
let { t } = $();
|
|
2364
|
+
return (n, r) => (S(), y("footer", { class: C(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[10px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [T("div", ai, [T("span", null, d(k(t).footer.poweredBy), 1), r[0] ||= x("<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));
|
|
2382
2365
|
}
|
|
2383
2366
|
}), si = [
|
|
2384
2367
|
"aria-label",
|
|
@@ -2390,16 +2373,16 @@ var Or = ["aria-label"], kr = {
|
|
|
2390
2373
|
emits: ["change"],
|
|
2391
2374
|
setup(e, { emit: t }) {
|
|
2392
2375
|
let n = t, { t: r } = $();
|
|
2393
|
-
return (t,
|
|
2376
|
+
return (t, a) => (S(), y("button", {
|
|
2394
2377
|
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",
|
|
2395
|
-
style:
|
|
2378
|
+
style: l({
|
|
2396
2379
|
color: e.darkMode ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
2397
2380
|
backgroundColor: e.darkMode ? "var(--tpl-primary-light)" : "transparent"
|
|
2398
2381
|
}),
|
|
2399
|
-
"aria-label": e.darkMode ?
|
|
2400
|
-
title: e.darkMode ?
|
|
2382
|
+
"aria-label": e.darkMode ? k(r).darkMode.disable : k(r).darkMode.enable,
|
|
2383
|
+
title: e.darkMode ? k(r).darkMode.disable : k(r).darkMode.enable,
|
|
2401
2384
|
"aria-pressed": e.darkMode,
|
|
2402
|
-
onClick:
|
|
2385
|
+
onClick: a[0] ||= (t) => n("change", !e.darkMode)
|
|
2403
2386
|
}, [g(V, {
|
|
2404
2387
|
"enter-active-class": "tpl-icon-enter-active",
|
|
2405
2388
|
"leave-active-class": "tpl-icon-leave-active",
|
|
@@ -2407,11 +2390,11 @@ var Or = ["aria-label"], kr = {
|
|
|
2407
2390
|
"leave-to-class": "tpl-icon-leave-to",
|
|
2408
2391
|
mode: "out-in"
|
|
2409
2392
|
}, {
|
|
2410
|
-
default:
|
|
2393
|
+
default: i(() => [e.darkMode ? (S(), j(k(wn), {
|
|
2411
2394
|
key: "moon",
|
|
2412
2395
|
size: 18,
|
|
2413
2396
|
"stroke-width": 1.5
|
|
2414
|
-
})) : (
|
|
2397
|
+
})) : (S(), j(k(An), {
|
|
2415
2398
|
key: "sun",
|
|
2416
2399
|
size: 18,
|
|
2417
2400
|
"stroke-width": 1.5
|
|
@@ -2429,16 +2412,16 @@ var Or = ["aria-label"], kr = {
|
|
|
2429
2412
|
emits: ["change"],
|
|
2430
2413
|
setup(e, { emit: t }) {
|
|
2431
2414
|
let n = t, { t: r } = $();
|
|
2432
|
-
return (t,
|
|
2415
|
+
return (t, a) => (S(), y("button", {
|
|
2433
2416
|
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",
|
|
2434
|
-
style:
|
|
2417
|
+
style: l({
|
|
2435
2418
|
color: e.previewMode ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
2436
2419
|
backgroundColor: e.previewMode ? "var(--tpl-primary-light)" : "transparent"
|
|
2437
2420
|
}),
|
|
2438
|
-
"aria-label": e.previewMode ?
|
|
2439
|
-
title: e.previewMode ?
|
|
2421
|
+
"aria-label": e.previewMode ? k(r).previewMode.disable : k(r).previewMode.enable,
|
|
2422
|
+
title: e.previewMode ? k(r).previewMode.disable : k(r).previewMode.enable,
|
|
2440
2423
|
"aria-pressed": e.previewMode,
|
|
2441
|
-
onClick:
|
|
2424
|
+
onClick: a[0] ||= (t) => n("change", !e.previewMode)
|
|
2442
2425
|
}, [g(V, {
|
|
2443
2426
|
"enter-active-class": "tpl-icon-enter-active",
|
|
2444
2427
|
"leave-active-class": "tpl-icon-leave-active",
|
|
@@ -2446,11 +2429,11 @@ var Or = ["aria-label"], kr = {
|
|
|
2446
2429
|
"leave-to-class": "tpl-icon-leave-to",
|
|
2447
2430
|
mode: "out-in"
|
|
2448
2431
|
}, {
|
|
2449
|
-
default:
|
|
2432
|
+
default: i(() => [e.previewMode ? (S(), j(k(zt), {
|
|
2450
2433
|
key: "eye",
|
|
2451
2434
|
size: 18,
|
|
2452
2435
|
"stroke-width": 1.5
|
|
2453
|
-
})) : (
|
|
2436
|
+
})) : (S(), j(k(Ae), {
|
|
2454
2437
|
key: "eye-off",
|
|
2455
2438
|
size: 18,
|
|
2456
2439
|
"stroke-width": 1.5
|
|
@@ -2465,44 +2448,44 @@ var Or = ["aria-label"], kr = {
|
|
|
2465
2448
|
editable: { type: Boolean }
|
|
2466
2449
|
},
|
|
2467
2450
|
emits: ["commit"],
|
|
2468
|
-
setup(
|
|
2469
|
-
let i =
|
|
2470
|
-
async function
|
|
2471
|
-
i.editable && (
|
|
2451
|
+
setup(t, { emit: n }) {
|
|
2452
|
+
let i = t, a = n, { t: o } = $(), s = e(!1), c = e(""), l = e(null);
|
|
2453
|
+
async function u() {
|
|
2454
|
+
i.editable && (c.value = i.name ?? "", s.value = !0, await r(), l.value?.focus(), l.value?.select());
|
|
2472
2455
|
}
|
|
2473
|
-
function
|
|
2474
|
-
if (!
|
|
2475
|
-
|
|
2476
|
-
let e =
|
|
2477
|
-
e && e !== i.name &&
|
|
2456
|
+
function f() {
|
|
2457
|
+
if (!s.value) return;
|
|
2458
|
+
s.value = !1;
|
|
2459
|
+
let e = c.value.trim();
|
|
2460
|
+
e && e !== i.name && a("commit", e);
|
|
2478
2461
|
}
|
|
2479
|
-
function
|
|
2480
|
-
|
|
2462
|
+
function p() {
|
|
2463
|
+
s.value = !1;
|
|
2481
2464
|
}
|
|
2482
|
-
return (
|
|
2465
|
+
return (e, n) => s.value ? m((S(), y("input", {
|
|
2483
2466
|
key: 0,
|
|
2484
2467
|
ref_key: "inputEl",
|
|
2485
|
-
ref:
|
|
2486
|
-
"onUpdate:modelValue":
|
|
2468
|
+
ref: l,
|
|
2469
|
+
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
2487
2470
|
type: "text",
|
|
2488
2471
|
"data-testid": "template-name-input",
|
|
2489
|
-
"aria-label":
|
|
2490
|
-
class:
|
|
2491
|
-
onKeydown: [B(L(
|
|
2492
|
-
onBlur:
|
|
2493
|
-
}, null, 42, di)), [[I,
|
|
2472
|
+
"aria-label": k(o).header.templateName,
|
|
2473
|
+
class: C([k(mn), "tpl:h-8 tpl:max-w-[260px] tpl:text-sm tpl:font-medium"]),
|
|
2474
|
+
onKeydown: [B(L(f, ["prevent"]), ["enter"]), B(L(p, ["prevent"]), ["esc"])],
|
|
2475
|
+
onBlur: f
|
|
2476
|
+
}, null, 42, di)), [[I, c.value]]) : t.editable ? (S(), y("button", {
|
|
2494
2477
|
key: 1,
|
|
2495
2478
|
type: "button",
|
|
2496
2479
|
"data-testid": "template-name",
|
|
2497
|
-
title:
|
|
2498
|
-
"aria-label":
|
|
2499
|
-
class:
|
|
2500
|
-
onClick:
|
|
2501
|
-
},
|
|
2480
|
+
title: k(o).header.rename,
|
|
2481
|
+
"aria-label": k(o).header.rename,
|
|
2482
|
+
class: C(["tpl:max-w-[260px] tpl:cursor-pointer tpl:truncate tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-transparent tpl:px-2 tpl:py-1 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:border-[var(--tpl-border)] tpl:hover:bg-[var(--tpl-bg-hover)]", { "tpl:text-[var(--tpl-text-dim)]": !t.name }]),
|
|
2483
|
+
onClick: u
|
|
2484
|
+
}, d(t.name || k(o).header.untitled), 11, fi)) : (S(), y("span", {
|
|
2502
2485
|
key: 2,
|
|
2503
2486
|
"data-testid": "template-name",
|
|
2504
|
-
class:
|
|
2505
|
-
},
|
|
2487
|
+
class: C(["tpl:max-w-[260px] tpl:truncate tpl:px-2 tpl:py-1 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]", { "tpl:text-[var(--tpl-text-dim)]": !t.name }])
|
|
2488
|
+
}, d(t.name || k(o).header.untitled), 3));
|
|
2506
2489
|
}
|
|
2507
2490
|
}), mi = ["title"], hi = /* @__PURE__ */ P({
|
|
2508
2491
|
__name: "TemplateTimestamp",
|
|
@@ -2510,24 +2493,24 @@ var Or = ["aria-label"], kr = {
|
|
|
2510
2493
|
iso: {},
|
|
2511
2494
|
kind: {}
|
|
2512
2495
|
},
|
|
2513
|
-
setup(
|
|
2514
|
-
let
|
|
2496
|
+
setup(t) {
|
|
2497
|
+
let r = t, { t: i, format: a } = $(), o = n(vt, void 0), s = e(0);
|
|
2515
2498
|
De(() => {
|
|
2516
|
-
|
|
2499
|
+
s.value += 1;
|
|
2517
2500
|
}, 6e4);
|
|
2518
|
-
let
|
|
2519
|
-
|
|
2520
|
-
let e = _n(
|
|
2501
|
+
let c = _(() => {
|
|
2502
|
+
s.value;
|
|
2503
|
+
let e = _n(r.iso, i.time, a);
|
|
2521
2504
|
if (e === null) return "";
|
|
2522
|
-
let
|
|
2523
|
-
return
|
|
2524
|
-
}),
|
|
2525
|
-
return (e, t) =>
|
|
2505
|
+
let t = e === i.time.justNow;
|
|
2506
|
+
return r.kind === "updatedAt" ? t ? i.header.updatedJustNow : a(i.header.updatedAt, { time: e }) : t ? i.header.createdJustNow : a(i.header.createdAt, { time: e });
|
|
2507
|
+
}), l = _(() => ln(r.iso, o));
|
|
2508
|
+
return (e, t) => c.value ? (S(), y("span", {
|
|
2526
2509
|
key: 0,
|
|
2527
2510
|
"data-testid": "template-timestamp",
|
|
2528
|
-
title:
|
|
2511
|
+
title: l.value,
|
|
2529
2512
|
class: "tpl:max-w-[260px] tpl:truncate tpl:px-2 tpl:text-xs tpl:leading-tight tpl:text-[var(--tpl-text-dim)]"
|
|
2530
|
-
},
|
|
2513
|
+
}, d(c.value), 9, mi)) : v("", !0);
|
|
2531
2514
|
}
|
|
2532
2515
|
}), gi = ["data-tooltip"], _i = {
|
|
2533
2516
|
key: 1,
|
|
@@ -2548,19 +2531,19 @@ var Or = ["aria-label"], kr = {
|
|
|
2548
2531
|
},
|
|
2549
2532
|
setup(e) {
|
|
2550
2533
|
let { t } = $();
|
|
2551
|
-
return (n, r) => e.status === "error" ? (
|
|
2534
|
+
return (n, r) => e.status === "error" ? (S(), y("div", {
|
|
2552
2535
|
key: 0,
|
|
2553
2536
|
"aria-live": "assertive",
|
|
2554
2537
|
"data-testid": "save-status-error",
|
|
2555
2538
|
class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
|
|
2556
2539
|
"data-tooltip": e.errorMessage
|
|
2557
|
-
}, [g(
|
|
2540
|
+
}, [g(k(Lt), {
|
|
2558
2541
|
size: 12,
|
|
2559
2542
|
"stroke-width": 2.5
|
|
2560
|
-
}),
|
|
2543
|
+
}), b(" " + d(k(t).header.saveFailed), 1)], 8, gi)) : e.status === "saved" ? (S(), y("div", _i, [g(k(Ft), {
|
|
2561
2544
|
size: 12,
|
|
2562
2545
|
"stroke-width": 2.5
|
|
2563
|
-
}),
|
|
2546
|
+
}), b(" " + d(k(t).header.saved), 1)])) : e.isDirty ? (S(), y("div", vi, [r[0] ||= T("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), b(" " + d(k(t).header.unsaved), 1)])) : v("", !0);
|
|
2564
2547
|
}
|
|
2565
2548
|
}), bi = [
|
|
2566
2549
|
"aria-pressed",
|
|
@@ -2570,29 +2553,29 @@ var Or = ["aria-label"], kr = {
|
|
|
2570
2553
|
__name: "AiHeaderMenu",
|
|
2571
2554
|
props: { feature: {} },
|
|
2572
2555
|
setup(e) {
|
|
2573
|
-
let
|
|
2574
|
-
function
|
|
2575
|
-
|
|
2556
|
+
let t = e, { t: n } = $(), r = _(() => t.feature.panel.value === "chat");
|
|
2557
|
+
function i() {
|
|
2558
|
+
r.value ? t.feature.close() : t.feature.open("chat");
|
|
2576
2559
|
}
|
|
2577
|
-
return (
|
|
2560
|
+
return (t, a) => e.feature.isAvailable.value && e.feature.has("chat") ? (S(), y("button", {
|
|
2578
2561
|
key: 0,
|
|
2579
2562
|
type: "button",
|
|
2580
2563
|
"data-testid": "ai-menu-trigger",
|
|
2581
|
-
"aria-pressed":
|
|
2582
|
-
"aria-label":
|
|
2583
|
-
title:
|
|
2584
|
-
class:
|
|
2585
|
-
style:
|
|
2564
|
+
"aria-pressed": r.value,
|
|
2565
|
+
"aria-label": k(n).ai.menu.chat,
|
|
2566
|
+
title: k(n).ai.menu.chat,
|
|
2567
|
+
class: C(k(pn)),
|
|
2568
|
+
style: l(r.value ? {
|
|
2586
2569
|
backgroundColor: "var(--tpl-primary-light)",
|
|
2587
2570
|
borderColor: "var(--tpl-primary-light)"
|
|
2588
2571
|
} : void 0),
|
|
2589
|
-
onClick: L(
|
|
2590
|
-
}, [g(
|
|
2572
|
+
onClick: L(i, ["stop"])
|
|
2573
|
+
}, [g(k(Zt), {
|
|
2591
2574
|
size: 16,
|
|
2592
2575
|
"stroke-width": 2,
|
|
2593
2576
|
class: "tpl:text-[var(--tpl-primary-hover)]",
|
|
2594
2577
|
"aria-hidden": "true"
|
|
2595
|
-
}),
|
|
2578
|
+
}), b(" " + d(k(n).ai.menu.button), 1)], 14, bi)) : v("", !0);
|
|
2596
2579
|
}
|
|
2597
2580
|
}), Si = { 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)]" }, Ci = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-2.5" }, wi = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, Ti = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, Ei = ["aria-label", "aria-expanded"], Di = {
|
|
2598
2581
|
key: 0,
|
|
@@ -2615,13 +2598,13 @@ var Or = ["aria-label"], kr = {
|
|
|
2615
2598
|
ai: {}
|
|
2616
2599
|
},
|
|
2617
2600
|
setup(e) {
|
|
2618
|
-
let
|
|
2619
|
-
return (
|
|
2620
|
-
|
|
2621
|
-
e.templates?.isAvailable.value && e.templates.hasTemplate.value && (e.showTemplateName || e.templates.timestamp.value) ? (
|
|
2601
|
+
let t = M(() => import("./VersionHistoryMenu-BkbYUs0Q.js")), n = M(() => import("./CollaboratorBar-CXQqN3VP.js"));
|
|
2602
|
+
return (r, i) => (S(), y("header", Si, [
|
|
2603
|
+
T("div", Ci, [
|
|
2604
|
+
e.templates?.isAvailable.value && e.templates.hasTemplate.value && (e.showTemplateName || e.templates.timestamp.value) ? (S(), y("div", {
|
|
2622
2605
|
key: 0,
|
|
2623
|
-
class:
|
|
2624
|
-
}, [e.showTemplateName ? (
|
|
2606
|
+
class: C(["tpl:flex tpl:min-w-0 tpl:flex-col tpl:items-start", { "tpl:pb-1.5": e.showTemplateName && e.templates.timestamp.value !== null }])
|
|
2607
|
+
}, [e.showTemplateName ? (S(), j(pi, {
|
|
2625
2608
|
key: 0,
|
|
2626
2609
|
name: e.templates.name.value,
|
|
2627
2610
|
editable: e.templates.canSave.value,
|
|
@@ -2630,33 +2613,33 @@ var Or = ["aria-label"], kr = {
|
|
|
2630
2613
|
"name",
|
|
2631
2614
|
"editable",
|
|
2632
2615
|
"onCommit"
|
|
2633
|
-
])) : v("", !0), e.templates.timestamp.value ? (
|
|
2616
|
+
])) : v("", !0), e.templates.timestamp.value ? (S(), j(hi, {
|
|
2634
2617
|
key: 1,
|
|
2635
2618
|
iso: e.templates.timestamp.value.iso,
|
|
2636
2619
|
kind: e.templates.timestamp.value.kind
|
|
2637
2620
|
}, null, 8, ["iso", "kind"])) : v("", !0)], 2)) : v("", !0),
|
|
2638
|
-
e.versionHistory?.isAvailable.value && e.versionHistory.hasTemplate.value ? (
|
|
2621
|
+
e.versionHistory?.isAvailable.value && e.versionHistory.hasTemplate.value ? (S(), j(k(t), {
|
|
2639
2622
|
key: 1,
|
|
2640
2623
|
versions: e.versionHistory.versions.value,
|
|
2641
2624
|
"is-loading": e.versionHistory.isLoading.value,
|
|
2642
2625
|
"is-restoring": e.versionHistory.isRestoring.value,
|
|
2643
2626
|
"previewing-id": e.versionHistory.previewingVersion.value?.id ?? null,
|
|
2644
|
-
onOpen:
|
|
2645
|
-
onNavigate:
|
|
2627
|
+
onOpen: i[0] ||= (t) => e.versionHistory.refresh(),
|
|
2628
|
+
onNavigate: i[1] ||= (t) => e.versionHistory.navigate(t)
|
|
2646
2629
|
}, null, 8, [
|
|
2647
2630
|
"versions",
|
|
2648
2631
|
"is-loading",
|
|
2649
2632
|
"is-restoring",
|
|
2650
2633
|
"previewing-id"
|
|
2651
2634
|
])) : v("", !0),
|
|
2652
|
-
e.collaboration?.isLive.value ? (
|
|
2635
|
+
e.collaboration?.isLive.value ? (S(), j(k(n), {
|
|
2653
2636
|
key: 2,
|
|
2654
2637
|
people: e.collaboration.people.value,
|
|
2655
2638
|
connection: e.collaboration.connection.value
|
|
2656
2639
|
}, null, 8, ["people", "connection"])) : v("", !0),
|
|
2657
|
-
|
|
2640
|
+
f(r.$slots, "left-extras")
|
|
2658
2641
|
]),
|
|
2659
|
-
|
|
2642
|
+
T("div", wi, [
|
|
2660
2643
|
g(Qt, {
|
|
2661
2644
|
viewport: e.editor.state.viewport,
|
|
2662
2645
|
onChange: e.editor.setViewport
|
|
@@ -2670,8 +2653,8 @@ var Or = ["aria-label"], kr = {
|
|
|
2670
2653
|
onChange: e.editor.setPreviewMode
|
|
2671
2654
|
}, null, 8, ["preview-mode", "onChange"])
|
|
2672
2655
|
]),
|
|
2673
|
-
|
|
2674
|
-
e.templates?.isAvailable.value && e.templates.canSave.value ? (
|
|
2656
|
+
T("div", Ti, [
|
|
2657
|
+
e.templates?.isAvailable.value && e.templates.canSave.value ? (S(), j(yi, {
|
|
2675
2658
|
key: 0,
|
|
2676
2659
|
status: e.templates.status.value,
|
|
2677
2660
|
"error-message": e.templates.errorMessage.value,
|
|
@@ -2681,69 +2664,69 @@ var Or = ["aria-label"], kr = {
|
|
|
2681
2664
|
"error-message",
|
|
2682
2665
|
"is-dirty"
|
|
2683
2666
|
])) : v("", !0),
|
|
2684
|
-
e.comments?.isAvailable.value && e.comments.hasTemplate.value ? (
|
|
2667
|
+
e.comments?.isAvailable.value && e.comments.hasTemplate.value ? (S(), y("button", {
|
|
2685
2668
|
key: 1,
|
|
2686
2669
|
type: "button",
|
|
2687
2670
|
"data-testid": "comments-trigger",
|
|
2688
2671
|
"aria-label": e.comments.unresolvedCount.value > 0 ? `${e.core.t.comments.button} (${e.comments.unresolvedCount.value})` : e.core.t.comments.button,
|
|
2689
2672
|
"aria-expanded": e.comments.isOpen.value,
|
|
2690
|
-
class:
|
|
2691
|
-
style:
|
|
2673
|
+
class: C(k(pn)),
|
|
2674
|
+
style: l(e.comments.isOpen.value ? {
|
|
2692
2675
|
backgroundColor: "var(--tpl-primary-light)",
|
|
2693
2676
|
borderColor: "var(--tpl-primary-light)"
|
|
2694
2677
|
} : void 0),
|
|
2695
|
-
onClick:
|
|
2678
|
+
onClick: i[2] ||= (t) => e.comments.toggle()
|
|
2696
2679
|
}, [
|
|
2697
|
-
g(
|
|
2680
|
+
g(k(Kt), {
|
|
2698
2681
|
size: 16,
|
|
2699
2682
|
"stroke-width": 2
|
|
2700
2683
|
}),
|
|
2701
|
-
|
|
2702
|
-
e.comments.unresolvedCount.value > 0 && !e.comments.isOpen.value ? (
|
|
2684
|
+
b(" " + d(e.core.t.comments.button) + " ", 1),
|
|
2685
|
+
e.comments.unresolvedCount.value > 0 && !e.comments.isOpen.value ? (S(), y("span", Di, d(e.comments.unresolvedCount.value), 1)) : v("", !0)
|
|
2703
2686
|
], 14, Ei)) : v("", !0),
|
|
2704
|
-
e.ai ? (
|
|
2687
|
+
e.ai ? (S(), j(xi, {
|
|
2705
2688
|
key: 2,
|
|
2706
2689
|
feature: e.ai
|
|
2707
2690
|
}, null, 8, ["feature"])) : v("", !0),
|
|
2708
|
-
|
|
2709
|
-
e.testEmail?.isAvailable.value ? (
|
|
2691
|
+
f(r.$slots, "right-extras"),
|
|
2692
|
+
e.testEmail?.isAvailable.value ? (S(), y("button", {
|
|
2710
2693
|
key: 3,
|
|
2711
2694
|
type: "button",
|
|
2712
2695
|
"data-testid": "test-email-trigger",
|
|
2713
2696
|
"aria-label": e.core.t.testEmail.title,
|
|
2714
2697
|
title: e.core.t.testEmail.title,
|
|
2715
2698
|
disabled: e.testEmail.isSending.value,
|
|
2716
|
-
class:
|
|
2717
|
-
onClick:
|
|
2718
|
-
}, [e.testEmail.isSending.value ? (
|
|
2699
|
+
class: C(k(pn)),
|
|
2700
|
+
onClick: i[3] ||= (t) => e.testEmail.open()
|
|
2701
|
+
}, [e.testEmail.isSending.value ? (S(), j(k(Gt), {
|
|
2719
2702
|
key: 1,
|
|
2720
2703
|
class: "tpl-spinner",
|
|
2721
2704
|
size: 16,
|
|
2722
2705
|
"stroke-width": 2
|
|
2723
|
-
})) : (
|
|
2706
|
+
})) : (S(), j(k(Xt), {
|
|
2724
2707
|
key: 0,
|
|
2725
2708
|
size: 16,
|
|
2726
2709
|
"stroke-width": 2
|
|
2727
|
-
})),
|
|
2728
|
-
e.templates?.isAvailable.value && e.templates.canSave.value ? (
|
|
2710
|
+
})), b(" " + d(e.core.t.testEmail.button), 1)], 10, Oi)) : v("", !0),
|
|
2711
|
+
e.templates?.isAvailable.value && e.templates.canSave.value ? (S(), y("button", {
|
|
2729
2712
|
key: 4,
|
|
2730
2713
|
type: "button",
|
|
2731
2714
|
"data-testid": "template-save",
|
|
2732
|
-
class:
|
|
2733
|
-
style:
|
|
2715
|
+
class: C(e.editor.state.isDirty && e.templates.hasTemplate.value ? k(hn) : k(pn)),
|
|
2716
|
+
style: l(e.editor.state.isDirty && e.templates.hasTemplate.value ? { boxShadow: "var(--tpl-shadow-sm)" } : void 0),
|
|
2734
2717
|
disabled: e.templates.isSaving.value || !e.templates.hasTemplate.value,
|
|
2735
2718
|
title: e.templates.hasTemplate.value ? e.core.t.header.save : e.core.t.header.saveNoTemplate,
|
|
2736
|
-
onClick:
|
|
2737
|
-
}, [e.templates.isSaving.value ? (
|
|
2719
|
+
onClick: i[4] ||= (t) => e.templates.requestSave()
|
|
2720
|
+
}, [e.templates.isSaving.value ? (S(), j(k(Gt), {
|
|
2738
2721
|
key: 1,
|
|
2739
2722
|
class: "tpl-spinner",
|
|
2740
2723
|
size: 16,
|
|
2741
2724
|
"stroke-width": 2
|
|
2742
|
-
})) : (
|
|
2725
|
+
})) : (S(), j(k(Dn), {
|
|
2743
2726
|
key: 0,
|
|
2744
2727
|
size: 16,
|
|
2745
2728
|
"stroke-width": 2
|
|
2746
|
-
})),
|
|
2729
|
+
})), b(" " + d(e.templates.isSaving.value ? e.core.t.header.saving : e.core.t.header.save), 1)], 14, ki)) : v("", !0)
|
|
2747
2730
|
])
|
|
2748
2731
|
]));
|
|
2749
2732
|
}
|
|
@@ -2788,12 +2771,12 @@ var Or = ["aria-label"], kr = {
|
|
|
2788
2771
|
class: "tpl:line-clamp-1 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
2789
2772
|
}, Yi = "tpl-merge-tag-picker-list", Xi = /* @__PURE__ */ P({
|
|
2790
2773
|
__name: "MergeTagPickerModal",
|
|
2791
|
-
setup(
|
|
2792
|
-
let
|
|
2774
|
+
setup(t) {
|
|
2775
|
+
let a = ot(st, "MergeTagPickerModal"), { t: o, format: s } = $(), c = n(ut, null), f = n(yt, null), p = n(pt, !0), h = _(() => a.current.value !== null), b = _(() => h.value ? o.mergeTag.picker.changeTitle : o.mergeTag.picker.title);
|
|
2793
2776
|
function x(e) {
|
|
2794
2777
|
return p ? e.description ? `${e.value} — ${e.description}` : e.value : e.description || void 0;
|
|
2795
2778
|
}
|
|
2796
|
-
let
|
|
2779
|
+
let w = e(""), E = Ee(w, 200), D = e(null), A = _(() => E.value.trim().length > 0), M = e(0), N = _(() => a.tags.value.some((e) => !!e.group)), P = e(/* @__PURE__ */ new Set());
|
|
2797
2780
|
function R(e) {
|
|
2798
2781
|
return P.value.has(e);
|
|
2799
2782
|
}
|
|
@@ -2802,16 +2785,16 @@ var Or = ["aria-label"], kr = {
|
|
|
2802
2785
|
t.has(e) ? t.delete(e) : t.add(e), P.value = t, M.value = 0;
|
|
2803
2786
|
}
|
|
2804
2787
|
let V = _(() => {
|
|
2805
|
-
let e =
|
|
2806
|
-
return e ?
|
|
2788
|
+
let e = E.value.trim().toLowerCase();
|
|
2789
|
+
return e ? a.tags.value.filter((t) => [
|
|
2807
2790
|
t.label,
|
|
2808
2791
|
t.value,
|
|
2809
2792
|
t.description ?? ""
|
|
2810
|
-
].join(" ").toLowerCase().includes(e)) :
|
|
2793
|
+
].join(" ").toLowerCase().includes(e)) : a.tags.value;
|
|
2811
2794
|
}), H = _(() => {
|
|
2812
2795
|
if (!N.value) return [];
|
|
2813
2796
|
let e = o.mergeTag.picker.otherGroup, t = /* @__PURE__ */ new Set(), n = [];
|
|
2814
|
-
for (let r of
|
|
2797
|
+
for (let r of a.tags.value) {
|
|
2815
2798
|
let i = r.group ?? e;
|
|
2816
2799
|
t.has(i) || (t.add(i), n.push(i));
|
|
2817
2800
|
}
|
|
@@ -2844,7 +2827,7 @@ var Or = ["aria-label"], kr = {
|
|
|
2844
2827
|
return i;
|
|
2845
2828
|
}), U = _(() => ee.value.flatMap((e) => e.kind === "tag" ? [e.tag] : [])), W = !1;
|
|
2846
2829
|
function G(e) {
|
|
2847
|
-
let t =
|
|
2830
|
+
let t = a.current.value;
|
|
2848
2831
|
if (!t) return !1;
|
|
2849
2832
|
let n = e.findIndex((e) => e.value === t.value);
|
|
2850
2833
|
return n !== -1 && (M.value = n, !0);
|
|
@@ -2852,42 +2835,42 @@ var Or = ["aria-label"], kr = {
|
|
|
2852
2835
|
function K(e) {
|
|
2853
2836
|
W = !1, M.value = e;
|
|
2854
2837
|
}
|
|
2855
|
-
F(() =>
|
|
2856
|
-
e ? (
|
|
2838
|
+
F(() => a.isOpen.value, (e) => {
|
|
2839
|
+
e ? (w.value = "", M.value = 0, P.value = /* @__PURE__ */ new Set(), W = !G(U.value), r(() => {
|
|
2857
2840
|
D.value?.focus();
|
|
2858
2841
|
})) : W = !1;
|
|
2859
2842
|
}), F(U, (e) => {
|
|
2860
2843
|
W && G(e) ? W = !1 : M.value >= e.length && (M.value = Math.max(0, e.length - 1));
|
|
2861
2844
|
});
|
|
2862
2845
|
function q(e) {
|
|
2863
|
-
|
|
2846
|
+
a.resolve(e);
|
|
2864
2847
|
}
|
|
2865
|
-
function
|
|
2866
|
-
|
|
2848
|
+
function J() {
|
|
2849
|
+
a.resolve(null);
|
|
2867
2850
|
}
|
|
2868
|
-
function
|
|
2851
|
+
function Y(e) {
|
|
2869
2852
|
if (U.value.length === 0) return;
|
|
2870
2853
|
W = !1;
|
|
2871
2854
|
let t = M.value + e;
|
|
2872
|
-
M.value = Math.max(0, Math.min(U.value.length - 1, t)),
|
|
2855
|
+
M.value = Math.max(0, Math.min(U.value.length - 1, t)), re();
|
|
2873
2856
|
}
|
|
2874
|
-
let
|
|
2875
|
-
function
|
|
2876
|
-
|
|
2857
|
+
let X = e(null), te = e({});
|
|
2858
|
+
function ne(e, t) {
|
|
2859
|
+
te.value[e] = t ?? null;
|
|
2877
2860
|
}
|
|
2878
|
-
function
|
|
2861
|
+
function re() {
|
|
2879
2862
|
r(() => {
|
|
2880
|
-
let e =
|
|
2863
|
+
let e = X.value;
|
|
2881
2864
|
e && e.querySelector(`[data-merge-tag-index="${M.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
2882
2865
|
});
|
|
2883
2866
|
}
|
|
2884
|
-
function
|
|
2867
|
+
function Z(e) {
|
|
2885
2868
|
if (P.value.has(e)) {
|
|
2886
2869
|
let t = new Set(P.value);
|
|
2887
2870
|
t.delete(e), P.value = t;
|
|
2888
2871
|
}
|
|
2889
2872
|
r(() => {
|
|
2890
|
-
let t =
|
|
2873
|
+
let t = X.value;
|
|
2891
2874
|
if (!t) return;
|
|
2892
2875
|
let n = 0, r = !1;
|
|
2893
2876
|
for (let i of Array.from(t.children)) {
|
|
@@ -2903,87 +2886,87 @@ var Or = ["aria-label"], kr = {
|
|
|
2903
2886
|
});
|
|
2904
2887
|
});
|
|
2905
2888
|
}
|
|
2906
|
-
function
|
|
2907
|
-
if (e.key === "ArrowDown") e.preventDefault(),
|
|
2908
|
-
else if (e.key === "ArrowUp") e.preventDefault(),
|
|
2889
|
+
function ie(e) {
|
|
2890
|
+
if (e.key === "ArrowDown") e.preventDefault(), Y(1);
|
|
2891
|
+
else if (e.key === "ArrowUp") e.preventDefault(), Y(-1);
|
|
2909
2892
|
else if (e.key === "Enter") {
|
|
2910
2893
|
e.preventDefault();
|
|
2911
2894
|
let t = U.value[M.value];
|
|
2912
2895
|
t && q(t);
|
|
2913
2896
|
}
|
|
2914
2897
|
}
|
|
2915
|
-
function
|
|
2898
|
+
function ae() {
|
|
2916
2899
|
if (U.value.length !== 0) return `${Yi}-opt-${M.value}`;
|
|
2917
2900
|
}
|
|
2918
|
-
function
|
|
2901
|
+
function Q(e) {
|
|
2919
2902
|
return `${Yi}-opt-${e}`;
|
|
2920
2903
|
}
|
|
2921
|
-
let
|
|
2922
|
-
return (e,
|
|
2923
|
-
visible:
|
|
2924
|
-
onClose:
|
|
2925
|
-
onKeydown:
|
|
2904
|
+
let oe = _(() => a.tags.value.length === 0), se = _(() => !oe.value && V.value.length === 0), ce = _(() => N.value && H.value.length > 1 && !A.value);
|
|
2905
|
+
return (e, t) => (S(), j(vn, {
|
|
2906
|
+
visible: k(a).isOpen.value,
|
|
2907
|
+
onClose: J,
|
|
2908
|
+
onKeydown: ie
|
|
2926
2909
|
}, {
|
|
2927
|
-
default:
|
|
2910
|
+
default: i(() => [T("div", {
|
|
2928
2911
|
role: "dialog",
|
|
2929
2912
|
"aria-modal": "true",
|
|
2930
2913
|
"aria-labelledby": `${Yi}-title`,
|
|
2931
|
-
"data-tpl-theme":
|
|
2914
|
+
"data-tpl-theme": k(f),
|
|
2932
2915
|
"data-testid": "merge-tag-picker-modal",
|
|
2933
2916
|
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)]",
|
|
2934
|
-
style:
|
|
2917
|
+
style: l(k(c))
|
|
2935
2918
|
}, [
|
|
2936
|
-
|
|
2919
|
+
T("header", Mi, [T("h2", {
|
|
2937
2920
|
id: `${Yi}-title`,
|
|
2938
2921
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
2939
|
-
},
|
|
2922
|
+
}, d(b.value), 9, Ni), T("button", {
|
|
2940
2923
|
type: "button",
|
|
2941
2924
|
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)]",
|
|
2942
|
-
"aria-label":
|
|
2925
|
+
"aria-label": k(o).mergeTag.picker.close,
|
|
2943
2926
|
"data-testid": "merge-tag-picker-close",
|
|
2944
|
-
onClick:
|
|
2945
|
-
}, [g(
|
|
2927
|
+
onClick: J
|
|
2928
|
+
}, [g(k(en), {
|
|
2946
2929
|
size: 16,
|
|
2947
2930
|
"stroke-width": 2
|
|
2948
2931
|
})], 8, Pi)]),
|
|
2949
|
-
|
|
2932
|
+
T("div", Fi, [g(k(Yt), {
|
|
2950
2933
|
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)]",
|
|
2951
2934
|
size: 14,
|
|
2952
2935
|
"stroke-width": 2
|
|
2953
|
-
}),
|
|
2936
|
+
}), m(T("input", {
|
|
2954
2937
|
id: `${Yi}-search`,
|
|
2955
2938
|
ref_key: "searchInputRef",
|
|
2956
2939
|
ref: D,
|
|
2957
|
-
"onUpdate:modelValue":
|
|
2940
|
+
"onUpdate:modelValue": t[0] ||= (e) => w.value = e,
|
|
2958
2941
|
type: "text",
|
|
2959
2942
|
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)]",
|
|
2960
|
-
placeholder:
|
|
2961
|
-
"aria-label":
|
|
2943
|
+
placeholder: k(o).mergeTag.picker.searchPlaceholder,
|
|
2944
|
+
"aria-label": k(o).mergeTag.picker.searchAriaLabel,
|
|
2962
2945
|
"aria-controls": Yi,
|
|
2963
|
-
"aria-activedescendant":
|
|
2946
|
+
"aria-activedescendant": ae(),
|
|
2964
2947
|
"data-testid": "merge-tag-picker-search",
|
|
2965
|
-
onKeydown:
|
|
2966
|
-
}, null, 40, Ii), [[I,
|
|
2967
|
-
ce.value ? (
|
|
2948
|
+
onKeydown: t[1] ||= B(L(() => {}, ["prevent"]), ["enter"])
|
|
2949
|
+
}, null, 40, Ii), [[I, w.value]])]),
|
|
2950
|
+
ce.value ? (S(), y("div", Li, [(S(!0), y(O, null, u(H.value, (e) => (S(), y("button", {
|
|
2968
2951
|
key: e,
|
|
2969
2952
|
type: "button",
|
|
2970
2953
|
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)]",
|
|
2971
2954
|
"data-testid": "merge-tag-picker-group-pill",
|
|
2972
2955
|
"data-group-name": e,
|
|
2973
|
-
onClick: (t) =>
|
|
2974
|
-
},
|
|
2975
|
-
|
|
2956
|
+
onClick: (t) => Z(e)
|
|
2957
|
+
}, d(e), 9, Ri))), 128))])) : v("", !0),
|
|
2958
|
+
T("div", {
|
|
2976
2959
|
id: Yi,
|
|
2977
2960
|
ref_key: "listRef",
|
|
2978
|
-
ref:
|
|
2961
|
+
ref: X,
|
|
2979
2962
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
2980
2963
|
role: "listbox",
|
|
2981
|
-
"aria-label":
|
|
2964
|
+
"aria-label": b.value,
|
|
2982
2965
|
"data-testid": "merge-tag-picker-list"
|
|
2983
|
-
}, [
|
|
2966
|
+
}, [oe.value ? (S(), y("div", Bi, d(k(o).mergeTag.picker.empty), 1)) : se.value ? (S(), y("div", Vi, d(k(o).mergeTag.picker.noResults), 1)) : (S(!0), y(O, { key: 2 }, u(ee.value, (e, t) => (S(), y(O, { key: t }, [e.kind === "header" ? (S(), y("button", {
|
|
2984
2967
|
key: 0,
|
|
2985
2968
|
ref_for: !0,
|
|
2986
|
-
ref: (t) =>
|
|
2969
|
+
ref: (t) => ne(e.group, t),
|
|
2987
2970
|
type: "button",
|
|
2988
2971
|
"aria-expanded": !R(e.group),
|
|
2989
2972
|
"aria-controls": Yi,
|
|
@@ -2993,33 +2976,33 @@ var Or = ["aria-label"], kr = {
|
|
|
2993
2976
|
"data-group-collapsed": R(e.group) ? "true" : "false",
|
|
2994
2977
|
onClick: (t) => z(e.group)
|
|
2995
2978
|
}, [
|
|
2996
|
-
g(
|
|
2979
|
+
g(k(It), {
|
|
2997
2980
|
size: 12,
|
|
2998
2981
|
"stroke-width": 2,
|
|
2999
|
-
class:
|
|
2982
|
+
class: C(["tpl:transition-transform", R(e.group) ? "tpl:-rotate-90" : ""])
|
|
3000
2983
|
}, null, 8, ["class"]),
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
], 8, Hi)) : (
|
|
2984
|
+
T("span", null, d(e.group), 1),
|
|
2985
|
+
T("span", Ui, " (" + d(k(s)(k(o).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
|
|
2986
|
+
], 8, Hi)) : (S(), y("button", {
|
|
3004
2987
|
key: 1,
|
|
3005
|
-
id:
|
|
2988
|
+
id: Q(e.index),
|
|
3006
2989
|
type: "button",
|
|
3007
2990
|
role: "option",
|
|
3008
2991
|
"aria-selected": e.index === M.value,
|
|
3009
2992
|
"data-selected": e.index === M.value ? "true" : "false",
|
|
3010
2993
|
"data-merge-tag-index": e.index,
|
|
3011
2994
|
"data-merge-tag-value": e.tag.value,
|
|
3012
|
-
"aria-current": e.tag.value ===
|
|
2995
|
+
"aria-current": e.tag.value === k(a).current.value?.value ? "true" : void 0,
|
|
3013
2996
|
title: x(e.tag),
|
|
3014
|
-
class:
|
|
2997
|
+
class: C(["tpl:flex tpl:w-full tpl:cursor-pointer tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:border-none tpl:px-3 tpl:py-1.5 tpl:text-left tpl:transition-colors", e.index === M.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)]"]),
|
|
3015
2998
|
"data-testid": "merge-tag-picker-item",
|
|
3016
2999
|
onMousemove: (t) => K(e.index),
|
|
3017
3000
|
onClick: (t) => q(e.tag)
|
|
3018
3001
|
}, [
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
e.tag.description ? (
|
|
3022
|
-
e.tag.sample === void 0 ? v("", !0) : (
|
|
3002
|
+
T("span", Gi, d(e.tag.label), 1),
|
|
3003
|
+
T("span", Ki, d(e.tag.value), 1),
|
|
3004
|
+
e.tag.description ? (S(), y("span", qi, d(e.tag.description), 1)) : v("", !0),
|
|
3005
|
+
e.tag.sample === void 0 ? v("", !0) : (S(), y("span", Ji, d(k(s)(k(o).mergeTag.picker.sample, { sample: e.tag.sample })), 1))
|
|
3023
3006
|
], 42, Wi))], 64))), 128))], 8, zi)
|
|
3024
3007
|
], 12, ji)]),
|
|
3025
3008
|
_: 1
|
|
@@ -3032,8 +3015,8 @@ var Or = ["aria-label"], kr = {
|
|
|
3032
3015
|
syntax: {}
|
|
3033
3016
|
},
|
|
3034
3017
|
setup(e) {
|
|
3035
|
-
let t = e, n = _(() =>
|
|
3036
|
-
return (e, t) => n.value ? (
|
|
3018
|
+
let t = e, n = _(() => oe(t.value, t.syntax)), r = _(() => q(t.value, t.syntax));
|
|
3019
|
+
return (e, t) => n.value ? (S(), y("span", {
|
|
3037
3020
|
key: 0,
|
|
3038
3021
|
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",
|
|
3039
3022
|
style: {
|
|
@@ -3042,7 +3025,7 @@ var Or = ["aria-label"], kr = {
|
|
|
3042
3025
|
},
|
|
3043
3026
|
"data-testid": "merge-tag-logic-badge",
|
|
3044
3027
|
"data-logic-keyword": r.value
|
|
3045
|
-
},
|
|
3028
|
+
}, d(r.value), 9, Zi)) : v("", !0);
|
|
3046
3029
|
}
|
|
3047
3030
|
}), $i = ["aria-labelledby", "data-tpl-theme"], ea = { 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" }, ta = ["id"], na = ["aria-label"], ra = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, ia = [
|
|
3048
3031
|
"id",
|
|
@@ -3076,17 +3059,17 @@ var Or = ["aria-label"], kr = {
|
|
|
3076
3059
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3077
3060
|
}, ga = "tpl-logic-picker-list", _a = /* @__PURE__ */ P({
|
|
3078
3061
|
__name: "LogicTagPickerModal",
|
|
3079
|
-
setup(
|
|
3080
|
-
let
|
|
3081
|
-
function
|
|
3062
|
+
setup(t) {
|
|
3063
|
+
let a = ot(ct, "LogicTagPickerModal"), { t: o } = $(), s = n(mt, se.liquid), c = n(ut, null), f = n(yt, null), p = e(""), h = Ee(p, 200), b = e(null), x = _(() => h.value.trim().length > 0), w = e(0);
|
|
3064
|
+
function E(e) {
|
|
3082
3065
|
let t = h.value.trim().toLowerCase();
|
|
3083
3066
|
return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
|
|
3084
3067
|
}
|
|
3085
|
-
let D = _(() =>
|
|
3068
|
+
let D = _(() => a.tags.value.filter((e) => E([
|
|
3086
3069
|
e.label,
|
|
3087
3070
|
e.value,
|
|
3088
3071
|
e.description
|
|
3089
|
-
]))), A = _(() =>
|
|
3072
|
+
]))), A = _(() => a.pairs.value.filter((e) => E([
|
|
3090
3073
|
e.label,
|
|
3091
3074
|
e.before,
|
|
3092
3075
|
e.after,
|
|
@@ -3099,7 +3082,7 @@ var Or = ["aria-label"], kr = {
|
|
|
3099
3082
|
kind: "tag",
|
|
3100
3083
|
tag: e,
|
|
3101
3084
|
group: e.group
|
|
3102
|
-
}))]), N = _(() =>
|
|
3085
|
+
}))]), N = _(() => a.tags.value.some((e) => !!e.group) || a.pairs.value.some((e) => !!e.group));
|
|
3103
3086
|
function P(e) {
|
|
3104
3087
|
let t = o.logicTag.picker.otherGroup, n = /* @__PURE__ */ new Map(), r = [];
|
|
3105
3088
|
for (let i of e) {
|
|
@@ -3132,22 +3115,22 @@ var Or = ["aria-label"], kr = {
|
|
|
3132
3115
|
rows: e,
|
|
3133
3116
|
items: t
|
|
3134
3117
|
};
|
|
3135
|
-
}), z = _(() => R.value.items), V = _(() =>
|
|
3136
|
-
F(() =>
|
|
3137
|
-
e && (p.value = "",
|
|
3118
|
+
}), z = _(() => R.value.items), V = _(() => a.tags.value.length === 0 && a.pairs.value.length === 0), H = _(() => !V.value && z.value.length === 0);
|
|
3119
|
+
F(() => a.isOpen.value, (e) => {
|
|
3120
|
+
e && (p.value = "", w.value = 0, r(() => b.value?.focus()));
|
|
3138
3121
|
}), F(z, (e) => {
|
|
3139
|
-
|
|
3122
|
+
w.value >= e.length && (w.value = Math.max(0, e.length - 1));
|
|
3140
3123
|
});
|
|
3141
|
-
let ee =
|
|
3124
|
+
let ee = e(null);
|
|
3142
3125
|
function U(e) {
|
|
3143
|
-
|
|
3126
|
+
a.resolve(e);
|
|
3144
3127
|
}
|
|
3145
3128
|
function W() {
|
|
3146
|
-
|
|
3129
|
+
a.resolve(null);
|
|
3147
3130
|
}
|
|
3148
3131
|
function G(e) {
|
|
3149
|
-
z.value.length !== 0 && (
|
|
3150
|
-
ee.value?.querySelector(`[data-logic-index="${
|
|
3132
|
+
z.value.length !== 0 && (w.value = Math.max(0, Math.min(z.value.length - 1, w.value + e)), r(() => {
|
|
3133
|
+
ee.value?.querySelector(`[data-logic-index="${w.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
3151
3134
|
}));
|
|
3152
3135
|
}
|
|
3153
3136
|
function K(e) {
|
|
@@ -3155,104 +3138,104 @@ var Or = ["aria-label"], kr = {
|
|
|
3155
3138
|
else if (e.key === "ArrowUp") e.preventDefault(), G(-1);
|
|
3156
3139
|
else if (e.key === "Enter") {
|
|
3157
3140
|
e.preventDefault();
|
|
3158
|
-
let t = z.value[
|
|
3141
|
+
let t = z.value[w.value];
|
|
3159
3142
|
t && U(t);
|
|
3160
3143
|
}
|
|
3161
3144
|
}
|
|
3162
3145
|
function q(e) {
|
|
3163
3146
|
return `${ga}-opt-${e}`;
|
|
3164
3147
|
}
|
|
3165
|
-
function
|
|
3166
|
-
return z.value.length === 0 ? void 0 : `${ga}-opt-${
|
|
3148
|
+
function J() {
|
|
3149
|
+
return z.value.length === 0 ? void 0 : `${ga}-opt-${w.value}`;
|
|
3167
3150
|
}
|
|
3168
|
-
return (e,
|
|
3169
|
-
visible:
|
|
3151
|
+
return (e, t) => (S(), j(vn, {
|
|
3152
|
+
visible: k(a).isOpen.value,
|
|
3170
3153
|
onClose: W,
|
|
3171
3154
|
onKeydown: K
|
|
3172
3155
|
}, {
|
|
3173
|
-
default:
|
|
3156
|
+
default: i(() => [T("div", {
|
|
3174
3157
|
role: "dialog",
|
|
3175
3158
|
"aria-modal": "true",
|
|
3176
3159
|
"aria-labelledby": `${ga}-title`,
|
|
3177
|
-
"data-tpl-theme":
|
|
3160
|
+
"data-tpl-theme": k(f),
|
|
3178
3161
|
"data-testid": "logic-picker-modal",
|
|
3179
3162
|
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)]",
|
|
3180
|
-
style:
|
|
3163
|
+
style: l(k(c))
|
|
3181
3164
|
}, [
|
|
3182
|
-
|
|
3165
|
+
T("header", ea, [T("h2", {
|
|
3183
3166
|
id: `${ga}-title`,
|
|
3184
3167
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
3185
|
-
},
|
|
3168
|
+
}, d(k(o).logicTag.picker.title), 9, ta), T("button", {
|
|
3186
3169
|
type: "button",
|
|
3187
3170
|
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)]",
|
|
3188
|
-
"aria-label":
|
|
3171
|
+
"aria-label": k(o).logicTag.picker.close,
|
|
3189
3172
|
"data-testid": "logic-picker-close",
|
|
3190
3173
|
onClick: W
|
|
3191
|
-
}, [g(
|
|
3174
|
+
}, [g(k(en), {
|
|
3192
3175
|
size: 16,
|
|
3193
3176
|
"stroke-width": 2
|
|
3194
3177
|
})], 8, na)]),
|
|
3195
|
-
|
|
3178
|
+
T("div", ra, [g(k(Yt), {
|
|
3196
3179
|
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)]",
|
|
3197
3180
|
size: 14,
|
|
3198
3181
|
"stroke-width": 2
|
|
3199
|
-
}),
|
|
3182
|
+
}), m(T("input", {
|
|
3200
3183
|
id: `${ga}-search`,
|
|
3201
3184
|
ref_key: "searchInputRef",
|
|
3202
|
-
ref:
|
|
3203
|
-
"onUpdate:modelValue":
|
|
3185
|
+
ref: b,
|
|
3186
|
+
"onUpdate:modelValue": t[0] ||= (e) => p.value = e,
|
|
3204
3187
|
type: "text",
|
|
3205
3188
|
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)]",
|
|
3206
|
-
placeholder:
|
|
3207
|
-
"aria-label":
|
|
3189
|
+
placeholder: k(o).logicTag.picker.searchPlaceholder,
|
|
3190
|
+
"aria-label": k(o).logicTag.picker.searchAriaLabel,
|
|
3208
3191
|
"aria-controls": ga,
|
|
3209
|
-
"aria-activedescendant":
|
|
3192
|
+
"aria-activedescendant": J(),
|
|
3210
3193
|
"data-testid": "logic-picker-search",
|
|
3211
|
-
onKeydown:
|
|
3194
|
+
onKeydown: t[1] ||= B(L(() => {}, ["prevent"]), ["enter"])
|
|
3212
3195
|
}, null, 40, ia), [[I, p.value]])]),
|
|
3213
|
-
|
|
3196
|
+
T("div", {
|
|
3214
3197
|
id: ga,
|
|
3215
3198
|
ref_key: "listRef",
|
|
3216
3199
|
ref: ee,
|
|
3217
3200
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
3218
3201
|
role: "listbox",
|
|
3219
|
-
"aria-label":
|
|
3202
|
+
"aria-label": k(o).logicTag.picker.title,
|
|
3220
3203
|
"data-testid": "logic-picker-list"
|
|
3221
|
-
}, [V.value ? (
|
|
3204
|
+
}, [V.value ? (S(), y("div", oa, d(k(o).logicTag.picker.empty), 1)) : H.value ? (S(), y("div", sa, d(k(o).logicTag.picker.noResults), 1)) : (S(!0), y(O, { key: 2 }, u(R.value.rows, (e, n) => (S(), y(O, { key: n }, [e.kind === "header" ? (S(), y("div", {
|
|
3222
3205
|
key: 0,
|
|
3223
3206
|
class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
|
|
3224
3207
|
"data-testid": "logic-picker-header",
|
|
3225
3208
|
"data-group-name": e.label
|
|
3226
|
-
},
|
|
3209
|
+
}, d(e.label), 9, ca)) : (S(), y("button", {
|
|
3227
3210
|
key: 1,
|
|
3228
3211
|
id: q(e.index),
|
|
3229
3212
|
type: "button",
|
|
3230
3213
|
role: "option",
|
|
3231
|
-
"aria-selected": e.index ===
|
|
3232
|
-
"data-selected": e.index ===
|
|
3214
|
+
"aria-selected": e.index === w.value,
|
|
3215
|
+
"data-selected": e.index === w.value ? "true" : "false",
|
|
3233
3216
|
"data-logic-index": e.index,
|
|
3234
3217
|
"data-logic-kind": e.kind,
|
|
3235
|
-
class:
|
|
3218
|
+
class: C(["tpl:flex tpl:w-full tpl:cursor-pointer tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:border-none tpl:px-3 tpl:py-1.5 tpl:text-left tpl:transition-colors", e.index === w.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)]"]),
|
|
3236
3219
|
"data-testid": "logic-picker-item",
|
|
3237
|
-
onMousemove: (t) =>
|
|
3220
|
+
onMousemove: (t) => w.value = e.index,
|
|
3238
3221
|
onClick: (t) => U(e.kind === "tag" ? e.tag : e.pair)
|
|
3239
3222
|
}, [
|
|
3240
|
-
|
|
3223
|
+
T("span", ua, [T("span", da, d(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (S(), y("span", fa, [g(Qi, {
|
|
3241
3224
|
value: e.tag.value,
|
|
3242
|
-
syntax:
|
|
3243
|
-
}, null, 8, ["value", "syntax"])])) : (
|
|
3225
|
+
syntax: k(s)
|
|
3226
|
+
}, null, 8, ["value", "syntax"])])) : (S(), y("span", pa, [
|
|
3244
3227
|
g(Qi, {
|
|
3245
3228
|
value: e.pair.before,
|
|
3246
|
-
syntax:
|
|
3229
|
+
syntax: k(s)
|
|
3247
3230
|
}, null, 8, ["value", "syntax"]),
|
|
3248
|
-
|
|
3231
|
+
t[2] ||= T("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
|
|
3249
3232
|
g(Qi, {
|
|
3250
3233
|
value: e.pair.after,
|
|
3251
|
-
syntax:
|
|
3234
|
+
syntax: k(s)
|
|
3252
3235
|
}, null, 8, ["value", "syntax"])
|
|
3253
3236
|
]))]),
|
|
3254
|
-
|
|
3255
|
-
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (
|
|
3237
|
+
T("span", ma, d(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
|
|
3238
|
+
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (S(), y("span", ha, d(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : v("", !0)
|
|
3256
3239
|
], 42, la))], 64))), 128))], 8, aa)
|
|
3257
3240
|
], 12, $i)]),
|
|
3258
3241
|
_: 1
|
|
@@ -3276,212 +3259,212 @@ var Or = ["aria-label"], kr = {
|
|
|
3276
3259
|
usesLocalRenderer: { type: Function }
|
|
3277
3260
|
},
|
|
3278
3261
|
setup(n, { expose: r }) {
|
|
3279
|
-
let
|
|
3262
|
+
let a = n;
|
|
3280
3263
|
c(lt, {
|
|
3281
|
-
renderHtml: () =>
|
|
3282
|
-
canRenderHtml: () =>
|
|
3283
|
-
cloud: !!
|
|
3284
|
-
options:
|
|
3264
|
+
renderHtml: () => a.renderHtml?.() ?? Promise.reject(/* @__PURE__ */ Error("HTML rendering is unavailable")),
|
|
3265
|
+
canRenderHtml: () => a.canRenderHtml?.() ?? !1,
|
|
3266
|
+
cloud: !!a.cloud,
|
|
3267
|
+
options: a.config.lint ?? {}
|
|
3285
3268
|
});
|
|
3286
3269
|
let o = {
|
|
3287
3270
|
get tags() {
|
|
3288
|
-
return
|
|
3271
|
+
return Z.mergeTags.value;
|
|
3289
3272
|
},
|
|
3290
3273
|
get syntax() {
|
|
3291
|
-
return
|
|
3274
|
+
return Z.mergeTagSyntax;
|
|
3292
3275
|
}
|
|
3293
|
-
}, s =
|
|
3294
|
-
|
|
3295
|
-
let u =
|
|
3296
|
-
provider:
|
|
3276
|
+
}, s = a.config.templates ? on(a.config.templates, o) : void 0;
|
|
3277
|
+
a.config.collaboration && !s && Mt.warn("config.collaboration needs config.templates: collaboration runs on a loaded template, and only a templates provider loads one. Collaboration is off.");
|
|
3278
|
+
let u = a.config.collaboration && s ? Fn({
|
|
3279
|
+
provider: a.config.collaboration,
|
|
3297
3280
|
loadTemplate: (e) => s.load(e),
|
|
3298
|
-
user:
|
|
3281
|
+
user: a.config.user,
|
|
3299
3282
|
mergeTags: o,
|
|
3300
|
-
onRemoteChange:
|
|
3301
|
-
onError:
|
|
3302
|
-
}) : null,
|
|
3283
|
+
onRemoteChange: a.config.onRemoteChange,
|
|
3284
|
+
onError: a.config.onError
|
|
3285
|
+
}) : null, f = s && u ? fr(s, u.core, () => {
|
|
3303
3286
|
let e = p.state.template;
|
|
3304
3287
|
return e ? {
|
|
3305
|
-
...
|
|
3306
|
-
content:
|
|
3288
|
+
...D(e),
|
|
3289
|
+
content: K(D(p.content.value))
|
|
3307
3290
|
} : null;
|
|
3308
3291
|
}) : s, p = we({
|
|
3309
|
-
content:
|
|
3310
|
-
defaultFontFamily:
|
|
3311
|
-
templateDefaults: xn(
|
|
3312
|
-
templates:
|
|
3313
|
-
onError:
|
|
3292
|
+
content: a.config.content,
|
|
3293
|
+
defaultFontFamily: a.config.fonts?.defaultFont,
|
|
3294
|
+
templateDefaults: xn(a.config),
|
|
3295
|
+
templates: f,
|
|
3296
|
+
onError: a.config.onError,
|
|
3314
3297
|
lockedBlocks: u?.locks
|
|
3315
3298
|
});
|
|
3316
3299
|
u?.attach(p);
|
|
3317
|
-
let h =
|
|
3318
|
-
provider:
|
|
3300
|
+
let h = a.cloud ? a.cloud.attach({ editor: p }) : null, x = f ? tr({
|
|
3301
|
+
provider: f,
|
|
3319
3302
|
editor: p,
|
|
3320
|
-
guardUnsavedChanges:
|
|
3321
|
-
getSaveGate:
|
|
3303
|
+
guardUnsavedChanges: a.config.templates?.unsavedChangesGuard,
|
|
3304
|
+
getSaveGate: a.cloud ? () => a.cloud.getSaveGate() : void 0
|
|
3322
3305
|
}) : null;
|
|
3323
|
-
|
|
3324
|
-
let
|
|
3325
|
-
provider:
|
|
3306
|
+
a.config.onDirtyChange && F(() => p.state.isDirty, (e) => a.config.onDirtyChange(e));
|
|
3307
|
+
let O = e(null), A = a.config.savedBlocks ? $n({
|
|
3308
|
+
provider: a.config.savedBlocks,
|
|
3326
3309
|
editor: p,
|
|
3327
|
-
onError:
|
|
3328
|
-
isAvailable:
|
|
3329
|
-
}) : null, N = M(() => import("./SavedBlocksPanels-
|
|
3330
|
-
provider:
|
|
3331
|
-
onRequestMedia:
|
|
3310
|
+
onError: a.config.onError,
|
|
3311
|
+
isAvailable: a.cloud ? () => a.cloud.isSavedBlocksAvailable() : void 0
|
|
3312
|
+
}) : null, N = M(() => import("./SavedBlocksPanels-BE1N9rNZ.js")), P = a.config.media || a.config.onRequestMedia ? Zn({
|
|
3313
|
+
provider: a.config.media,
|
|
3314
|
+
onRequestMedia: a.config.onRequestMedia,
|
|
3332
3315
|
getTemplateId: () => p.state.template?.id,
|
|
3333
|
-
onError:
|
|
3334
|
-
}) : null, I = M(() => import("./MediaPanels-
|
|
3335
|
-
provider:
|
|
3316
|
+
onError: a.config.onError
|
|
3317
|
+
}) : null, I = M(() => import("./MediaPanels-BgEp7iCp.js")), R = a.config.testEmail ? or({
|
|
3318
|
+
provider: a.config.testEmail,
|
|
3336
3319
|
getContent: () => p.content.value,
|
|
3337
|
-
renderMjml:
|
|
3338
|
-
usesLocalRenderer:
|
|
3339
|
-
onError:
|
|
3340
|
-
isAvailable:
|
|
3341
|
-
}) : null, B = M(() => import("./TestEmailPanel-
|
|
3342
|
-
provider:
|
|
3320
|
+
renderMjml: a.renderMjml,
|
|
3321
|
+
usesLocalRenderer: a.usesLocalRenderer,
|
|
3322
|
+
onError: a.config.onError,
|
|
3323
|
+
isAvailable: a.cloud ? () => a.cloud.isTestEmailAvailable() : void 0
|
|
3324
|
+
}) : null, B = M(() => import("./TestEmailPanel-DaFjP9QK.js")), H = a.config.comments ? In({
|
|
3325
|
+
provider: a.config.comments,
|
|
3343
3326
|
editor: p,
|
|
3344
|
-
user:
|
|
3327
|
+
user: a.config.user,
|
|
3345
3328
|
isOpen: h?.panelState.commentsOpen,
|
|
3346
|
-
onError:
|
|
3347
|
-
isAvailable:
|
|
3348
|
-
isBlockSaved:
|
|
3349
|
-
}) : null, ee = M(() => import("./CommentsPanel-
|
|
3350
|
-
provider:
|
|
3329
|
+
onError: a.config.onError,
|
|
3330
|
+
isAvailable: a.cloud ? () => a.cloud.isCommentsAvailable() : void 0,
|
|
3331
|
+
isBlockSaved: a.cloud ? (e) => a.cloud.isBlockSaved(e) : void 0
|
|
3332
|
+
}) : null, ee = M(() => import("./CommentsPanel-DwwFuh1h.js")), U = M(() => import("./AiPanels-DqT4PgQ0.js")), W = a.config.ai ? Wn({
|
|
3333
|
+
provider: a.config.ai,
|
|
3351
3334
|
editor: p,
|
|
3352
3335
|
collaboration: u,
|
|
3353
|
-
history: () =>
|
|
3354
|
-
reload:
|
|
3355
|
-
altMaxLength: () => Bt(lr(
|
|
3356
|
-
mergeTags: () => Jn(
|
|
3336
|
+
history: () => Z.history,
|
|
3337
|
+
reload: x ? (e, t) => x.load(e, t) : null,
|
|
3338
|
+
altMaxLength: () => Bt(lr(a.config)),
|
|
3339
|
+
mergeTags: () => Jn(Z.mergeTags.value, Z.mergeTagSyntax),
|
|
3357
3340
|
normalize: (e, t) => rn(e, t, o),
|
|
3358
3341
|
commentsOpen: H?.isOpen ?? null,
|
|
3359
|
-
onError:
|
|
3342
|
+
onError: a.config.onError
|
|
3360
3343
|
}) : null;
|
|
3361
3344
|
W && c(kt, W);
|
|
3362
|
-
let G = M(() => import("./CollaborationNotices-
|
|
3363
|
-
|
|
3364
|
-
let
|
|
3345
|
+
let G = M(() => import("./CollaborationNotices-CTw4JThq.js")), q = M(() => import("./CloudPanels-BKJaLkUN.js")), J = M(() => import("./CloudHeaderExtras-QI82yF54.js")), Y = M(() => import("./VersionHistoryPanels-DP7HaYWv.js")), X = cr(a.config.templates?.autoSave, !1), te = X && x !== null;
|
|
3346
|
+
X && x !== null && !x.canSave.value && Mt.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."), a.config.changeDebounce !== void 0 && x !== null && a.config.templates?.autoSave === void 0 && !a.config.onChange && Mt.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.");
|
|
3347
|
+
let ne = a.config.onChange || te ? {
|
|
3365
3348
|
onChange: () => {
|
|
3366
|
-
|
|
3349
|
+
a.config.onChange?.(JSON.parse(JSON.stringify(p.state.content))), te && x.requestAutoSave();
|
|
3367
3350
|
},
|
|
3368
|
-
...
|
|
3369
|
-
} : null,
|
|
3370
|
-
...
|
|
3371
|
-
...
|
|
3351
|
+
...a.config.changeDebounce === void 0 ? {} : { debounce: a.config.changeDebounce }
|
|
3352
|
+
} : null, re = {
|
|
3353
|
+
...A ? { savedBlocks: A.capability } : {},
|
|
3354
|
+
...x ? { templates: x.capability } : {},
|
|
3372
3355
|
...R ? { testEmail: R.capability } : {},
|
|
3373
3356
|
...H ? { comments: H.capability } : {},
|
|
3374
3357
|
...u ? { collaboration: u.capability } : {},
|
|
3375
3358
|
...W ? { ai: W.capability } : {}
|
|
3376
|
-
},
|
|
3359
|
+
}, Z = et({
|
|
3377
3360
|
editor: p,
|
|
3378
|
-
containerEl:
|
|
3361
|
+
containerEl: O,
|
|
3379
3362
|
config: {
|
|
3380
|
-
uiTheme:
|
|
3381
|
-
theme:
|
|
3382
|
-
blockDefaults:
|
|
3383
|
-
templateDefaults:
|
|
3384
|
-
customBlocks:
|
|
3385
|
-
paletteBlocks:
|
|
3386
|
-
htmlBlockPreview:
|
|
3387
|
-
layout:
|
|
3388
|
-
sectionWrapper:
|
|
3389
|
-
colors:
|
|
3390
|
-
templateSettings:
|
|
3391
|
-
mergeTags:
|
|
3392
|
-
logicTags:
|
|
3393
|
-
displayConditions:
|
|
3363
|
+
uiTheme: a.config.uiTheme,
|
|
3364
|
+
theme: a.config.theme,
|
|
3365
|
+
blockDefaults: a.config.blockDefaults,
|
|
3366
|
+
templateDefaults: a.config.templateDefaults,
|
|
3367
|
+
customBlocks: a.config.customBlocks,
|
|
3368
|
+
paletteBlocks: a.config.paletteBlocks,
|
|
3369
|
+
htmlBlockPreview: a.config.htmlBlockPreview,
|
|
3370
|
+
layout: a.config.layout,
|
|
3371
|
+
sectionWrapper: a.config.sectionWrapper,
|
|
3372
|
+
colors: a.config.colors,
|
|
3373
|
+
templateSettings: a.config.templateSettings,
|
|
3374
|
+
mergeTags: a.config.mergeTags,
|
|
3375
|
+
logicTags: a.config.logicTags,
|
|
3376
|
+
displayConditions: a.config.displayConditions,
|
|
3394
3377
|
onRequestMedia: P?.requestMedia ?? null,
|
|
3395
3378
|
canDropMedia: P?.canDrop ?? null,
|
|
3396
|
-
resolvePreview:
|
|
3397
|
-
resolveImageUrl:
|
|
3398
|
-
lint: lr(
|
|
3399
|
-
locale:
|
|
3379
|
+
resolvePreview: a.config.resolvePreview,
|
|
3380
|
+
resolveImageUrl: a.config.resolveImageUrl,
|
|
3381
|
+
lint: lr(a.config),
|
|
3382
|
+
locale: a.config.locale
|
|
3400
3383
|
},
|
|
3401
|
-
translations:
|
|
3402
|
-
fontsManager:
|
|
3403
|
-
autoSaveOptions:
|
|
3404
|
-
capabilities:
|
|
3405
|
-
editorRoot:
|
|
3384
|
+
translations: a.translations,
|
|
3385
|
+
fontsManager: a.fontsManager,
|
|
3386
|
+
autoSaveOptions: ne,
|
|
3387
|
+
capabilities: re,
|
|
3388
|
+
editorRoot: a.shadowRoot,
|
|
3406
3389
|
history: u?.history
|
|
3407
|
-
}),
|
|
3408
|
-
core:
|
|
3409
|
-
capabilities:
|
|
3410
|
-
}) : null,
|
|
3411
|
-
provider:
|
|
3390
|
+
}), ie = e("content"), ae = a.cloud && h ? a.cloud.ready({
|
|
3391
|
+
core: Z,
|
|
3392
|
+
capabilities: re
|
|
3393
|
+
}) : null, Q = a.config.versionHistory ? sr({
|
|
3394
|
+
provider: a.config.versionHistory,
|
|
3412
3395
|
editor: nn(p, o),
|
|
3413
|
-
history:
|
|
3414
|
-
conditionPreview:
|
|
3415
|
-
autoSave:
|
|
3396
|
+
history: Z.history,
|
|
3397
|
+
conditionPreview: Z.conditionPreview,
|
|
3398
|
+
autoSave: Z.autoSave,
|
|
3416
3399
|
collaboration: u ? {
|
|
3417
3400
|
suspend: u.core.suspend,
|
|
3418
3401
|
resume: u.core.resume,
|
|
3419
3402
|
catchUp: u.core.catchUp,
|
|
3420
3403
|
reportReplaceRefused: u.reportReplaceRefused
|
|
3421
3404
|
} : null,
|
|
3422
|
-
saveBeforeRestore:
|
|
3423
|
-
canSave: () =>
|
|
3424
|
-
save: () =>
|
|
3405
|
+
saveBeforeRestore: x ? {
|
|
3406
|
+
canSave: () => x.canSave.value && !(a.cloud?.getSaveGate()?.shouldBlock.value ?? !1),
|
|
3407
|
+
save: () => x.save("restore")
|
|
3425
3408
|
} : null,
|
|
3426
|
-
onError:
|
|
3409
|
+
onError: a.config.onError
|
|
3427
3410
|
}) : null;
|
|
3428
|
-
|
|
3429
|
-
let
|
|
3430
|
-
|
|
3431
|
-
await
|
|
3432
|
-
}),
|
|
3433
|
-
|
|
3411
|
+
Q && (re.versionHistory = Q.capability);
|
|
3412
|
+
let oe = _(() => H?.isOpen.value === !0 || W !== null && W.panel.value !== null || h?.panelState.rightPanelOpen.value === !0), se = _(() => p.state.previewMode ? "tpl:left-0 tpl:right-0" : oe.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"), { showNotice: ce } = nt(() => a.config.smallScreenNotice);
|
|
3413
|
+
w(async () => {
|
|
3414
|
+
await a.fontsManager.loadCustomFonts();
|
|
3415
|
+
}), t(() => {
|
|
3416
|
+
a.fontsManager.cleanupFontLinks(), W?.destroy(), a.cloud?.destroy(), Z.destroy();
|
|
3434
3417
|
});
|
|
3435
|
-
let le =
|
|
3418
|
+
let le = x ?? p, ue = Wt(Z.editorRoot);
|
|
3436
3419
|
return r({
|
|
3437
3420
|
getContent: () => p.content.value,
|
|
3438
3421
|
setContent: (e) => p.setContent(e),
|
|
3439
3422
|
insertBlock: (e) => {
|
|
3440
3423
|
if (p.state.previewMode) return Mt.warn("insertBlock() does nothing in preview mode."), null;
|
|
3441
|
-
let t =
|
|
3424
|
+
let t = de(e);
|
|
3442
3425
|
return dr(p, t) ? (ue(t.id), t.id) : null;
|
|
3443
3426
|
},
|
|
3444
3427
|
setTheme: (e) => p.setUiTheme(e),
|
|
3445
|
-
setMergeTags:
|
|
3428
|
+
setMergeTags: Z.setMergeTags,
|
|
3446
3429
|
isDirty: () => p.state.isDirty,
|
|
3447
3430
|
create: le.create,
|
|
3448
3431
|
load: le.load,
|
|
3449
3432
|
save: le.save,
|
|
3450
|
-
renderCustomBlock:
|
|
3451
|
-
getCustomBlockStylesheet: (e) =>
|
|
3452
|
-
}), (e,
|
|
3433
|
+
renderCustomBlock: Z.registry.renderCustomBlock,
|
|
3434
|
+
getCustomBlockStylesheet: (e) => Z.registry.getDefinition(e)?.stylesheet
|
|
3435
|
+
}), (e, t) => (S(), y("div", {
|
|
3453
3436
|
ref_key: "rootEl",
|
|
3454
|
-
ref:
|
|
3455
|
-
class:
|
|
3456
|
-
"data-tpl-theme":
|
|
3457
|
-
style:
|
|
3458
|
-
onDragover:
|
|
3459
|
-
onDrop:
|
|
3437
|
+
ref: O,
|
|
3438
|
+
class: C(["tpl tpl:relative tpl:h-full", { "tpl:dark": k(p).state.darkMode }]),
|
|
3439
|
+
"data-tpl-theme": k(Z).resolvedTheme.value,
|
|
3440
|
+
style: l(k(Z).themeStyles.value),
|
|
3441
|
+
onDragover: t[7] ||= L(() => {}, ["prevent"]),
|
|
3442
|
+
onDrop: t[8] ||= L(() => {}, ["prevent"])
|
|
3460
3443
|
}, [
|
|
3461
3444
|
g(Er),
|
|
3462
|
-
|
|
3445
|
+
T("div", ya, [
|
|
3463
3446
|
g(Ai, {
|
|
3464
|
-
editor:
|
|
3465
|
-
core:
|
|
3466
|
-
templates:
|
|
3447
|
+
editor: k(p),
|
|
3448
|
+
core: k(Z),
|
|
3449
|
+
templates: k(x),
|
|
3467
3450
|
"show-template-name": n.config.templates?.nameField !== !1,
|
|
3468
|
-
"test-email":
|
|
3469
|
-
"version-history":
|
|
3470
|
-
comments:
|
|
3471
|
-
collaboration:
|
|
3472
|
-
ai:
|
|
3473
|
-
},
|
|
3451
|
+
"test-email": k(R),
|
|
3452
|
+
"version-history": k(Q),
|
|
3453
|
+
comments: k(H),
|
|
3454
|
+
collaboration: k(u),
|
|
3455
|
+
ai: k(W)
|
|
3456
|
+
}, E({ _: 2 }, [k(h) ? {
|
|
3474
3457
|
name: "left-extras",
|
|
3475
|
-
fn:
|
|
3458
|
+
fn: i(() => [g(k(J), {
|
|
3476
3459
|
part: "left",
|
|
3477
|
-
cloud:
|
|
3460
|
+
cloud: k(h)
|
|
3478
3461
|
}, null, 8, ["cloud"])]),
|
|
3479
3462
|
key: "0"
|
|
3480
|
-
} : void 0,
|
|
3463
|
+
} : void 0, k(h) ? {
|
|
3481
3464
|
name: "right-extras",
|
|
3482
|
-
fn:
|
|
3465
|
+
fn: i(() => [g(k(J), {
|
|
3483
3466
|
part: "right",
|
|
3484
|
-
cloud:
|
|
3467
|
+
cloud: k(h)
|
|
3485
3468
|
}, null, 8, ["cloud"])]),
|
|
3486
3469
|
key: "1"
|
|
3487
3470
|
} : void 0]), 1032, [
|
|
@@ -3495,35 +3478,35 @@ var Or = ["aria-label"], kr = {
|
|
|
3495
3478
|
"collaboration",
|
|
3496
3479
|
"ai"
|
|
3497
3480
|
]),
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
class:
|
|
3481
|
+
m(g(Ir, null, null, 512), [[z, !k(p).state.previewMode]]),
|
|
3482
|
+
T("div", {
|
|
3483
|
+
class: C(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]", [se.value, k(Q)?.isPreviewing.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
|
|
3501
3484
|
style: { transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)" }
|
|
3502
|
-
}, [
|
|
3503
|
-
default:
|
|
3504
|
-
"sample-mode":
|
|
3505
|
-
onChange:
|
|
3485
|
+
}, [T("div", ba, [T("div", xa, [g(V, { name: "tpl-preview-pill" }, {
|
|
3486
|
+
default: i(() => [k(p).state.previewMode && !k(Z).previewResolution.supersedesSamples.value ? (S(), y("div", Sa, [g($t, {
|
|
3487
|
+
"sample-mode": k(Z).mergeTagSampleMode.value,
|
|
3488
|
+
onChange: t[0] ||= (e) => k(Z).mergeTagSampleMode.value = e
|
|
3506
3489
|
}, null, 8, ["sample-mode"])])) : v("", !0)]),
|
|
3507
3490
|
_: 1
|
|
3508
3491
|
}), g(V, { name: "tpl-preview-pill" }, {
|
|
3509
|
-
default:
|
|
3492
|
+
default: i(() => [k(Z).conditionPreview.hasHiddenBlocks.value && k(Z).appliesConditionFilter.value ? (S(), y("button", {
|
|
3510
3493
|
key: 0,
|
|
3511
3494
|
type: "button",
|
|
3512
|
-
class:
|
|
3495
|
+
class: C([k(fn), "tpl:shadow-[var(--tpl-shadow-md)]"]),
|
|
3513
3496
|
"data-testid": "restore-hidden-blocks",
|
|
3514
|
-
onClick:
|
|
3515
|
-
}, [g(
|
|
3497
|
+
onClick: t[1] ||= (e) => k(Z).conditionPreview.reset()
|
|
3498
|
+
}, [g(k(En), {
|
|
3516
3499
|
size: 16,
|
|
3517
3500
|
"stroke-width": 2
|
|
3518
|
-
}),
|
|
3501
|
+
}), b(" " + d(k(Z).t.blockSettings.restoreHiddenBlocks), 1)], 2)) : v("", !0)]),
|
|
3519
3502
|
_: 1
|
|
3520
|
-
})])]),
|
|
3521
|
-
viewport:
|
|
3522
|
-
content:
|
|
3523
|
-
"selected-block-id":
|
|
3524
|
-
"dark-mode":
|
|
3525
|
-
"preview-mode":
|
|
3526
|
-
onSelectBlock:
|
|
3503
|
+
})])]), T("main", Ca, [g(Tr, {
|
|
3504
|
+
viewport: k(p).state.viewport,
|
|
3505
|
+
content: k(Z).previewResolution.content.value,
|
|
3506
|
+
"selected-block-id": k(p).state.selectedBlockId,
|
|
3507
|
+
"dark-mode": k(p).state.darkMode,
|
|
3508
|
+
"preview-mode": k(p).state.previewMode,
|
|
3509
|
+
onSelectBlock: k(p).selectBlock
|
|
3527
3510
|
}, null, 8, [
|
|
3528
3511
|
"viewport",
|
|
3529
3512
|
"content",
|
|
@@ -3532,55 +3515,55 @@ var Or = ["aria-label"], kr = {
|
|
|
3532
3515
|
"preview-mode",
|
|
3533
3516
|
"onSelectBlock"
|
|
3534
3517
|
])])], 2),
|
|
3535
|
-
n.config.branding === !1 ? v("", !0) : (
|
|
3518
|
+
n.config.branding === !1 ? v("", !0) : (S(), j(oi, {
|
|
3536
3519
|
key: 0,
|
|
3537
3520
|
"position-class": [se.value]
|
|
3538
3521
|
}, null, 8, ["position-class"])),
|
|
3539
|
-
|
|
3522
|
+
T("div", {
|
|
3540
3523
|
class: "tpl-sr-only",
|
|
3541
3524
|
role: "status",
|
|
3542
3525
|
"aria-live": "polite",
|
|
3543
3526
|
"aria-atomic": "true",
|
|
3544
|
-
"aria-label":
|
|
3545
|
-
},
|
|
3546
|
-
|
|
3547
|
-
tab:
|
|
3548
|
-
"onUpdate:tab":
|
|
3549
|
-
"selected-block":
|
|
3550
|
-
settings:
|
|
3551
|
-
"shifted-left":
|
|
3552
|
-
onUpdateBlock:
|
|
3553
|
-
onDeleteBlock:
|
|
3554
|
-
|
|
3527
|
+
"aria-label": k(Z).t.landmarks.reorderAnnouncements
|
|
3528
|
+
}, d(k(Z).keyboardReorder.announcement.value), 9, wa),
|
|
3529
|
+
m(g($r, {
|
|
3530
|
+
tab: ie.value,
|
|
3531
|
+
"onUpdate:tab": t[2] ||= (e) => ie.value = e,
|
|
3532
|
+
"selected-block": k(p).selectedBlock.value,
|
|
3533
|
+
settings: k(p).content.value.settings,
|
|
3534
|
+
"shifted-left": oe.value,
|
|
3535
|
+
onUpdateBlock: t[3] ||= (e) => k(p).updateBlock(k(p).state.selectedBlockId, e),
|
|
3536
|
+
onDeleteBlock: t[4] ||= () => {
|
|
3537
|
+
k(p).state.selectedBlockId && k(Z).blockActions.deleteBlock(k(p).state.selectedBlockId);
|
|
3555
3538
|
},
|
|
3556
|
-
onDuplicateBlock:
|
|
3557
|
-
|
|
3539
|
+
onDuplicateBlock: t[5] ||= () => {
|
|
3540
|
+
k(p).selectedBlock.value && k(Z).blockActions.duplicateBlock(k(p).selectedBlock.value);
|
|
3558
3541
|
},
|
|
3559
|
-
onUpdateSettings:
|
|
3542
|
+
onUpdateSettings: t[6] ||= (e) => k(p).updateSettings(e)
|
|
3560
3543
|
}, null, 8, [
|
|
3561
3544
|
"tab",
|
|
3562
3545
|
"selected-block",
|
|
3563
3546
|
"settings",
|
|
3564
3547
|
"shifted-left"
|
|
3565
|
-
]), [[z, !
|
|
3548
|
+
]), [[z, !k(p).state.previewMode]])
|
|
3566
3549
|
]),
|
|
3567
|
-
|
|
3568
|
-
ref: (e) =>
|
|
3550
|
+
T("div", {
|
|
3551
|
+
ref: (e) => k(Z).popoverRoot.value = e,
|
|
3569
3552
|
class: "tpl-popover-root"
|
|
3570
3553
|
}, null, 512),
|
|
3571
3554
|
g(Xi),
|
|
3572
3555
|
g(_a),
|
|
3573
|
-
|
|
3556
|
+
k(A)?.isAvailable.value ? (S(), j(k(N), {
|
|
3574
3557
|
key: 0,
|
|
3575
|
-
feature:
|
|
3558
|
+
feature: k(A)
|
|
3576
3559
|
}, null, 8, ["feature"])) : v("", !0),
|
|
3577
|
-
n.config.media &&
|
|
3560
|
+
n.config.media && k(P) ? (S(), j(k(I), {
|
|
3578
3561
|
key: 1,
|
|
3579
|
-
feature:
|
|
3562
|
+
feature: k(P),
|
|
3580
3563
|
provider: n.config.media,
|
|
3581
3564
|
locale: n.config.locale,
|
|
3582
|
-
"ui-theme":
|
|
3583
|
-
"popover-target":
|
|
3565
|
+
"ui-theme": k(Z).resolvedTheme.value,
|
|
3566
|
+
"popover-target": k(Z).popoverRoot.value
|
|
3584
3567
|
}, null, 8, [
|
|
3585
3568
|
"feature",
|
|
3586
3569
|
"provider",
|
|
@@ -3588,33 +3571,33 @@ var Or = ["aria-label"], kr = {
|
|
|
3588
3571
|
"ui-theme",
|
|
3589
3572
|
"popover-target"
|
|
3590
3573
|
])) : v("", !0),
|
|
3591
|
-
|
|
3574
|
+
k(R)?.isAvailable.value ? (S(), j(k(B), {
|
|
3592
3575
|
key: 2,
|
|
3593
|
-
feature:
|
|
3576
|
+
feature: k(R)
|
|
3594
3577
|
}, null, 8, ["feature"])) : v("", !0),
|
|
3595
|
-
|
|
3578
|
+
k(H)?.isAvailable.value ? (S(), j(k(ee), {
|
|
3596
3579
|
key: 3,
|
|
3597
|
-
feature:
|
|
3580
|
+
feature: k(H)
|
|
3598
3581
|
}, null, 8, ["feature"])) : v("", !0),
|
|
3599
|
-
|
|
3582
|
+
k(W) ? (S(), j(k(U), {
|
|
3600
3583
|
key: 4,
|
|
3601
|
-
feature:
|
|
3584
|
+
feature: k(W)
|
|
3602
3585
|
}, null, 8, ["feature"])) : v("", !0),
|
|
3603
|
-
|
|
3586
|
+
k(u) ? (S(), j(k(G), {
|
|
3604
3587
|
key: 5,
|
|
3605
|
-
feature:
|
|
3588
|
+
feature: k(u)
|
|
3606
3589
|
}, null, 8, ["feature"])) : v("", !0),
|
|
3607
|
-
|
|
3590
|
+
k(Q)?.isAvailable.value ? (S(), j(k(Y), {
|
|
3608
3591
|
key: 6,
|
|
3609
|
-
feature:
|
|
3592
|
+
feature: k(Q)
|
|
3610
3593
|
}, null, 8, ["feature"])) : v("", !0),
|
|
3611
|
-
n.cloud &&
|
|
3594
|
+
n.cloud && k(h) && k(ae) ? (S(), j(k(q), {
|
|
3612
3595
|
key: 7,
|
|
3613
|
-
editor:
|
|
3614
|
-
core:
|
|
3596
|
+
editor: k(p),
|
|
3597
|
+
core: k(Z),
|
|
3615
3598
|
runtime: n.cloud,
|
|
3616
|
-
cloud:
|
|
3617
|
-
ready:
|
|
3599
|
+
cloud: k(h),
|
|
3600
|
+
ready: k(ae)
|
|
3618
3601
|
}, null, 8, [
|
|
3619
3602
|
"editor",
|
|
3620
3603
|
"core",
|
|
@@ -3622,15 +3605,14 @@ var Or = ["aria-label"], kr = {
|
|
|
3622
3605
|
"cloud",
|
|
3623
3606
|
"ready"
|
|
3624
3607
|
])) : v("", !0),
|
|
3625
|
-
|
|
3608
|
+
k(ce) ? (S(), j(ii, { key: 8 })) : v("", !0)
|
|
3626
3609
|
], 46, va));
|
|
3627
3610
|
}
|
|
3628
3611
|
}), [["__scopeId", "data-v-42dbfd6a"]]), Ea = /@import\s*(?:url\(\s*(?:"[^"]*"|'[^']*'|[^)]*)\s*\)|"[^"]*"|'[^']*')[^;]*;/g;
|
|
3629
3612
|
function Da(e) {
|
|
3630
3613
|
return e.replace(Ea, "");
|
|
3631
3614
|
}
|
|
3632
|
-
|
|
3633
|
-
//#region src/utils/renderProvider.ts
|
|
3615
|
+
// src/utils/renderProvider.ts
|
|
3634
3616
|
function Oa(e) {
|
|
3635
3617
|
return {
|
|
3636
3618
|
customFonts: e.customFonts.value,
|
|
@@ -3638,8 +3620,8 @@ function Oa(e) {
|
|
|
3638
3620
|
};
|
|
3639
3621
|
}
|
|
3640
3622
|
async function ka(e) {
|
|
3641
|
-
let t =
|
|
3642
|
-
return n || (
|
|
3623
|
+
let t = K(e.getContent()), n = e.getLayout?.(), r = n ? ne(n, t) : t;
|
|
3624
|
+
return n || (fe(r), Y(r)), await yn(r, {
|
|
3643
3625
|
renderCustomBlock: e.renderCustomBlock,
|
|
3644
3626
|
getCustomBlockStylesheet: e.getCustomBlockStylesheet
|
|
3645
3627
|
}), {
|
|
@@ -3672,9 +3654,8 @@ function Aa(e) {
|
|
|
3672
3654
|
usesLocalRenderer: r
|
|
3673
3655
|
};
|
|
3674
3656
|
}
|
|
3675
|
-
|
|
3676
|
-
//#region \0virtual:editor-css
|
|
3677
|
-
var ja = "@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;-webkit-user-select:none;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{-webkit-user-select:none;user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;-webkit-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;-webkit-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}[data-v-7d9a1872] .tpl-cropper-background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper{background-color:transparent!important}[data-v-7d9a1872] .vue-advanced-cropper__background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper__foreground{background-color:var(--tpl-overlay)!important}\n/*$vite$:1*/", Ma = null;
|
|
3657
|
+
// \0virtual:editor-css
|
|
3658
|
+
var ja = "@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;-webkit-user-select:none;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{-webkit-user-select:none;user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;-webkit-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;-webkit-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}[data-v-7d9a1872] .tpl-cropper-background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper{background-color:transparent!important}[data-v-7d9a1872] .vue-advanced-cropper__background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper__foreground{background-color:var(--tpl-overlay)!important}\n/*$vite$:1*/", Ma = null;
|
|
3678
3659
|
function Na() {
|
|
3679
3660
|
if (Ma === null) {
|
|
3680
3661
|
let e = new CSSStyleSheet();
|
|
@@ -3715,53 +3696,53 @@ function Va(e, t) {
|
|
|
3715
3696
|
n && (t && n.app !== t || (n.cleanup(), n.app.unmount(), Ia.delete(e), La === e && (La = null)));
|
|
3716
3697
|
}
|
|
3717
3698
|
function Ha(e) {
|
|
3718
|
-
e.layout && (e.layout = an(e.layout, e.mergeTags),
|
|
3699
|
+
e.layout && (e.layout = an(e.layout, e.mergeTags), W(e.layout)), e.content && (e.content = an(e.content, e.mergeTags), fe(e.content), Y(e.content));
|
|
3719
3700
|
}
|
|
3720
3701
|
async function Ua(e) {
|
|
3721
3702
|
let t = { ...e };
|
|
3722
3703
|
return Ha(t), Wa(t, Ba(t.container));
|
|
3723
3704
|
}
|
|
3724
|
-
async function Wa(
|
|
3725
|
-
|
|
3726
|
-
let
|
|
3727
|
-
if (za.get(
|
|
3728
|
-
config:
|
|
3729
|
-
editorRef:
|
|
3730
|
-
fontsManager:
|
|
3705
|
+
async function Wa(t, { container: n, token: r }, i) {
|
|
3706
|
+
t.locale !== void 0 && !at(t.locale) && Mt.warn(`config.locale: "${t.locale}" has no translations — falling back to English. Supported: ${Ne().sort().join(", ")}.`);
|
|
3707
|
+
let a = await Re(t.locale ?? "en"), o = it(t.fonts);
|
|
3708
|
+
if (za.get(n) !== r) return Ga({
|
|
3709
|
+
config: t,
|
|
3710
|
+
editorRef: e(null),
|
|
3711
|
+
fontsManager: o,
|
|
3731
3712
|
unmount: () => {}
|
|
3732
3713
|
}).instance;
|
|
3733
|
-
Va(
|
|
3734
|
-
let
|
|
3714
|
+
Va(n);
|
|
3715
|
+
let s = Fa(n, t.shadowDom ?? !0), c = e(null), l = R({ setup() {
|
|
3735
3716
|
return () => N(Ta, {
|
|
3736
|
-
config:
|
|
3737
|
-
translations:
|
|
3738
|
-
fontsManager:
|
|
3739
|
-
shadowRoot:
|
|
3740
|
-
cloud:
|
|
3741
|
-
renderMjml: () =>
|
|
3742
|
-
renderHtml: () =>
|
|
3743
|
-
canRenderHtml: () =>
|
|
3744
|
-
usesLocalRenderer: () =>
|
|
3745
|
-
ref:
|
|
3717
|
+
config: t,
|
|
3718
|
+
translations: a,
|
|
3719
|
+
fontsManager: o,
|
|
3720
|
+
shadowRoot: s.shadowRoot ?? void 0,
|
|
3721
|
+
cloud: i,
|
|
3722
|
+
renderMjml: () => d.toMjml(),
|
|
3723
|
+
renderHtml: () => d.toHtml(),
|
|
3724
|
+
canRenderHtml: () => d.canRenderHtml(),
|
|
3725
|
+
usesLocalRenderer: () => d.usesLocalRenderer(),
|
|
3726
|
+
ref: c
|
|
3746
3727
|
});
|
|
3747
3728
|
} });
|
|
3748
|
-
|
|
3749
|
-
app:
|
|
3750
|
-
editorRef:
|
|
3751
|
-
cleanup:
|
|
3752
|
-
}), La =
|
|
3753
|
-
let { instance:
|
|
3754
|
-
config:
|
|
3755
|
-
editorRef:
|
|
3756
|
-
fontsManager:
|
|
3757
|
-
unmount: () => Va(
|
|
3729
|
+
l.mount(s.target), Ia.set(n, {
|
|
3730
|
+
app: l,
|
|
3731
|
+
editorRef: c,
|
|
3732
|
+
cleanup: s.cleanup
|
|
3733
|
+
}), La = n;
|
|
3734
|
+
let { instance: u, render: d } = Ga({
|
|
3735
|
+
config: t,
|
|
3736
|
+
editorRef: c,
|
|
3737
|
+
fontsManager: o,
|
|
3738
|
+
unmount: () => Va(n, l)
|
|
3758
3739
|
});
|
|
3759
|
-
return
|
|
3740
|
+
return u;
|
|
3760
3741
|
}
|
|
3761
3742
|
function Ga({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
3762
3743
|
let i = {
|
|
3763
3744
|
getContent() {
|
|
3764
|
-
return t.value ?
|
|
3745
|
+
return t.value ? K(t.value.getContent()) : K(e.content ?? ie(e.fonts?.defaultFont, xn(e)));
|
|
3765
3746
|
},
|
|
3766
3747
|
setContent(n) {
|
|
3767
3748
|
let r = an(n, e.mergeTags);
|
|
@@ -3769,7 +3750,7 @@ function Ga({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
|
|
|
3769
3750
|
},
|
|
3770
3751
|
insertBlock(n) {
|
|
3771
3752
|
let r = { blocks: [n] };
|
|
3772
|
-
return
|
|
3753
|
+
return fe(r), Y(r), t.value ? t.value.insertBlock(sn(n, e.mergeTags)) : null;
|
|
3773
3754
|
},
|
|
3774
3755
|
setTheme(e) {
|
|
3775
3756
|
t.value && t.value.setTheme(e);
|
|
@@ -3834,7 +3815,7 @@ async function Ka(e) {
|
|
|
3834
3815
|
mergeTags: e.mergeTags
|
|
3835
3816
|
};
|
|
3836
3817
|
Ha(t);
|
|
3837
|
-
let n = Ba(e.container), [{ bootstrapCloud: r }, i] = await Promise.all([import("./createCloudRuntime-
|
|
3818
|
+
let n = Ba(e.container), [{ bootstrapCloud: r }, i] = await Promise.all([import("./createCloudRuntime-DCgO4A1r.js"), ke(e.locale ?? "en")]), { runtime: a, providers: o, user: s } = await r({
|
|
3838
3819
|
config: e,
|
|
3839
3820
|
cloudTranslations: i
|
|
3840
3821
|
});
|
|
@@ -3885,5 +3866,4 @@ async function Ka(e) {
|
|
|
3885
3866
|
function qa() {
|
|
3886
3867
|
La && Va(La);
|
|
3887
3868
|
}
|
|
3888
|
-
|
|
3889
|
-
export { Vt as AI_ALT_TEXT_RULES, Ut as AI_FIXABLE_RULES, ae as applyLayout, U as createDefaultTemplateContent, pe as createLocalStorageMediaProvider, Se as createLocalStorageSavedBlocksProvider, K as createParagraphBlock, te as createSlotBlock, H as createWrapperBlock, je as getBaseLocale, Me as getSupportedCloudLocales, Ne as getSupportedLocales, Ua as init, Ka as initCloud, Le as isCloudLocaleSupported, at as isLocaleSupported, ce as isSlot, ie as isWrapper, Z as layoutWrapsSlot, qa as unmount, q as validateLayout };
|
|
3869
|
+
export { Vt as AI_ALT_TEXT_RULES, Ut as AI_FIXABLE_RULES, ne as applyLayout, ie as createDefaultTemplateContent, pe as createLocalStorageMediaProvider, Se as createLocalStorageSavedBlocksProvider, G as createParagraphBlock, U as createSlotBlock, ee as createWrapperBlock, je as getBaseLocale, Me as getSupportedCloudLocales, Ne as getSupportedLocales, Ua as init, Ka as initCloud, Le as isCloudLocaleSupported, at as isLocaleSupported, X as isSlot, te as isWrapper, ce as layoutWrapsSlot, qa as unmount, W as validateLayout };
|