@templatical/editor 0.52.0 → 0.52.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiAltTextPopover-Cm11CsKH.js → AiAltTextPopover-DawbUywc.js} +13 -13
- package/dist/{AiAltTextReview-DE8t8Rud.js → AiAltTextReview-9ySsXOTU.js} +22 -22
- package/dist/{AiChatPanel-7ftS7d40.js → AiChatPanel-CupPhmsN.js} +137 -137
- package/dist/{AiPanels-CxGp6klr.js → AiPanels-DqT4PgQ0.js} +4 -4
- package/dist/{AiRewriteMenu-DNI-5CUj.js → AiRewriteMenu-28agTycW.js} +62 -62
- package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
- package/dist/{BlockPreviewCanvas-Df9iz7sK.js → BlockPreviewCanvas-B-4bmJ3t.js} +23 -23
- package/dist/{CloudHeaderExtras-CsgyNNV1.js → CloudHeaderExtras-QI82yF54.js} +3 -3
- package/dist/{CloudPanels-BDV4XQ_l.js → CloudPanels-BKJaLkUN.js} +50 -50
- package/dist/{CollaborationNotices-JQ3vQoqO.js → CollaborationNotices-CTw4JThq.js} +11 -11
- package/dist/{CollaboratorBar-EeqqWcX6.js → CollaboratorBar-CXQqN3VP.js} +15 -15
- package/dist/{CommentsPanel-BuftXc0U.js → CommentsPanel-DwwFuh1h.js} +2 -2
- package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
- package/dist/{CountdownBlock-BT3ZTH1F.js → CountdownBlock-CU2yTWtF.js} +20 -20
- package/dist/{CountdownToolbar-CrL4WKy9.js → CountdownToolbar-BqoYzf_6.js} +53 -53
- package/dist/IssuesPanel-4ykrf1ax.js +359 -0
- package/dist/{LoadingTrack-DZA5AoP9.js → LoadingTrack-DM4g6j7b.js} +1 -1
- package/dist/{LogicTagInsertButton-CSD9cfJB.js → LogicTagInsertButton-CfscnwCn.js} +234 -234
- package/dist/{MediaEditModal-DQl5w44r.js → MediaEditModal-Dy08GEwE.js} +446 -446
- package/dist/{MediaPanels-BFWYuJot.js → MediaPanels-BgEp7iCp.js} +2 -2
- package/dist/{MergeTagInput-DE7kWwXx.js → MergeTagInput-B9dtUthD.js} +11 -11
- package/dist/{MergeTagModeToggle-DvD0ne7N.js → MergeTagModeToggle-DxujhYJ4.js} +30 -30
- package/dist/{MergeTagTextarea-DVPQkiYY.js → MergeTagTextarea-CPFEjJZd.js} +11 -11
- package/dist/{ParagraphEditor-D-nqs82g.js → ParagraphEditor-CWXfurGh.js} +201 -201
- package/dist/{RestoreVersionDialog-DqUPsLB9.js → RestoreVersionDialog-C4s_JYCx.js} +14 -14
- package/dist/{RichTextEditorContent-Xq9D0Zs3.js → RichTextEditorContent-o6HmE8GR.js} +40 -39
- package/dist/{SaveBlockDialog-DAPv70p4.js → SaveBlockDialog-CWLrly6l.js} +56 -56
- package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
- package/dist/{SavedBlocksPanels-ChbL9v9x.js → SavedBlocksPanels-BE1N9rNZ.js} +6 -6
- package/dist/{SavedBlocksPickBar-hRaiLNdu.js → SavedBlocksPickBar-Dwl94xhP.js} +12 -12
- package/dist/{TemplateSettings-D0XcH32O.js → TemplateSettings-CS0f1Ues.js} +74 -74
- package/dist/{TestEmailModal-Cb5t0yB2.js → TestEmailModal-DBD0X5nV.js} +52 -52
- package/dist/{TestEmailPanel-COJQa2A9.js → TestEmailPanel-DaFjP9QK.js} +2 -2
- package/dist/{TitleEditor-BYk_9SpQ.js → TitleEditor-DSqtle77.js} +75 -75
- package/dist/{ToggleSwitch-poGWbduy.js → ToggleSwitch-JykPyD_8.js} +4 -4
- package/dist/{Toolbar-Dku_pZni.js → Toolbar-BZPFfKrf.js} +913 -913
- package/dist/{TplModal-9IndEYk5.js → TplModal-DLMssVlt.js} +15 -15
- package/dist/{VersionHistoryMenu-BG5qayvg.js → VersionHistoryMenu-BkbYUs0Q.js} +35 -35
- package/dist/{VersionHistoryPanels-hPg7Q5-f.js → VersionHistoryPanels-DP7HaYWv.js} +4 -4
- package/dist/{VersionPreviewBanner-CSs7zum_.js → VersionPreviewBanner-DECaBwLq.js} +9 -9
- package/dist/{WrapperBlock-DwjK_IdJ.js → WrapperBlock-BsJv_Fiw.js} +16 -16
- package/dist/{blockTypeIcons-yt7SLzub.js → blockTypeIcons-BHjlPnPf.js} +23 -22
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js → AiAltTextPopover-SEEjkd-I.js} +21 -21
- package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js → AiAltTextReview-BGLLSKLm.js} +41 -41
- package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js → AiChatPanel-DKDAaBNi.js} +127 -127
- package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js → AiPanels-0wBarZSH.js} +3 -3
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js.map → AiPanels-0wBarZSH.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js → AiRewriteMenu-qf-cfEpy.js} +43 -43
- package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js.map → AiRewriteMenu-qf-cfEpy.js.map} +1 -1
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js → BlockPreviewCanvas-DGBh6mqe.js} +20 -20
- package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js → CloudHeaderExtras-BMNK_F9p.js} +3 -3
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js → CloudPanels-JMWIoVWh.js} +32 -32
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js → CollaborationNotices-Bsf1rGW9.js} +12 -12
- package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js → CollaboratorBar-CXByAoUz.js} +14 -14
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js → CommentsPanel-DoJnKLXI.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Dj8sDiLN.js → CommentsSidebar-CUtgvdBC.js} +100 -99
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js → CountdownBlock-BqRw147R.js} +18 -18
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js → CountdownToolbar-xobieKoU.js} +26 -26
- package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js → IssuesPanel-C7LfxaAY.js} +75 -75
- package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js → LoadingTrack-CZuLTazv.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js → LogicTagInsertButton-BIi05UQu.js} +250 -250
- package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js → MediaEditModal-Cpcod6_U.js} +148 -148
- package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js → MediaPanels-BIdcW_1f.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js → MergeTagInput-BvWg8o5E.js} +32 -32
- package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js → MergeTagModeToggle-BgKEVUtV.js} +27 -27
- package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js → MergeTagTextarea-tBz8McZf.js} +32 -32
- package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DsPLVAgm.js → ParagraphEditor-B3Rj_cWF.js} +191 -191
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js → RestoreVersionDialog-CjOdD2xj.js} +19 -19
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js → RichTextEditorContent-DNjR_sNN.js} +29 -29
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js → SaveBlockDialog-CUhpawq0.js} +75 -75
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-B9XCjDfm.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js → SavedBlocksPanels-C6--Bc81.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js → SavedBlocksPickBar-DUavxpbU.js} +14 -14
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js → TemplateSettings-CKtI-dof.js} +69 -69
- package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js → TestEmailModal-CDQTgESD.js} +65 -65
- package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js → TestEmailPanel-CcUpEpAn.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-R2lQw6WA.js → TitleEditor-Cob7RLyK.js} +70 -70
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
- package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js → ToggleSwitch-J7Vwhvha.js} +5 -5
- package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-CnvfW72e.js → Toolbar-CdpsvNOR.js} +893 -893
- package/dist/cdn/chunks/{Toolbar-CnvfW72e.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
- package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
- package/dist/cdn/chunks/{TplModal-BDyeS69p.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js → VersionHistoryMenu-BYlLRvRJ.js} +32 -32
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js → VersionHistoryPanels-C6SOVoiT.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js → VersionPreviewBanner-Dvg0ZfAW.js} +10 -10
- package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js → WrapperBlock-C7Md56IT.js} +13 -13
- package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js → createCloudRuntime-Cth2JCEh.js} +36 -36
- package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
- package/dist/cdn/chunks/{dist-C2epoAwW.js → dist-8ym3y-pH.js} +43 -43
- package/dist/cdn/chunks/{dist-C2epoAwW.js.map → dist-8ym3y-pH.js.map} +1 -1
- package/dist/{dist-BA-jTQgw.js → cdn/chunks/dist-BMzNabtD.js} +106 -107
- package/dist/cdn/chunks/{dist-CONcGNwy.js.map → dist-BMzNabtD.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-B8hTTYFO.js → draggable-Du8AUMFT.js} +639 -636
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js → editor-modal-CyCe560f.js} +891 -891
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js.map → editor-modal-CyCe560f.js.map} +1 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
- package/dist/cdn/chunks/{extensions-ClDhn88e.js → extensions-CFF2KWy-.js} +55 -55
- package/dist/cdn/chunks/{extensions-ClDhn88e.js.map → extensions-CFF2KWy-.js.map} +1 -1
- package/dist/cdn/chunks/{icons-HCBP93Ch.js → icons-okSPsLOa.js} +99 -97
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
- package/dist/cdn/chunks/{keys-BF9gazbd.js → keys-CUj6UA38.js} +2 -2
- package/dist/cdn/chunks/{keys-BF9gazbd.js.map → keys-CUj6UA38.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-DkLBNrft.js → liquid.browser-rubac0VA.js} +782 -746
- package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js → normalizeMergeTagMarkup-C_KlfSW4.js} +2 -2
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js → preRenderCustomBlocks-BcXIz7oJ.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js → sanitizeHtml-CN85EDrO.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js.map → sanitizeHtml-CN85EDrO.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js → socialIcons-jsTDmkbb.js} +480 -480
- package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
- package/dist/cdn/chunks/{src-CUH_EI7k.js → src-C7bkofBL.js} +6 -6
- package/dist/cdn/chunks/{src-CUH_EI7k.js.map → src-C7bkofBL.js.map} +1 -1
- package/dist/cdn/chunks/{src-BKpAis_q.js → src-DEd87i_U.js} +2 -2
- package/dist/cdn/chunks/{src-BKpAis_q.js.map → src-DEd87i_U.js.map} +1 -1
- package/dist/cdn/chunks/{src-C9DTvn1H.js → src-DwWrYnUj.js} +3 -22
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js → tiptap-CbiTlECY.js} +45 -45
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js.map → tiptap-CbiTlECY.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js → useCloudI18n-DY8_-ETE.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-BT3c9CXj.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js → useI18n-D8pY4LTq.js} +3 -3
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js.map → useI18n-D8pY4LTq.js.map} +1 -1
- package/dist/{useLogicTag-DFDYJeMN.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +5 -3
- package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
- package/dist/{useMergeTag-B46vACAG.js → cdn/chunks/useMergeTag-B-aG--s1.js} +7 -5
- package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js → usePopoverPosition-DSMtmu2W.js} +4 -4
- package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js → useScrollToBlock-vjQ0fe-L.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js → withCurrentFont-hZTvYBHO.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1422 -1422
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-N3x4z_rH.js → check-BZ8o0eet.js} +1 -1
- package/dist/{chevron-down-gXu9qNwO.js → chevron-down-DfAAfILv.js} +1 -1
- package/dist/{chevron-right-rL0ayGk5.js → chevron-right-Bk4mGdr7.js} +1 -1
- package/dist/{chevron-up-0ugh8HnW.js → chevron-up-MhUf_azW.js} +1 -1
- package/dist/{circle-alert-B9Ls75B5.js → circle-alert-CShJwVFv.js} +1 -1
- package/dist/{clock-BqHBaCLm.js → clock-CTfD6OCt.js} +1 -1
- package/dist/{createCloudRuntime-B5VIdnwz.js → createCloudRuntime-DCgO4A1r.js} +24 -24
- package/dist/{createLucideIcon-BV7Gwz_Z.js → createLucideIcon-CvhTA2KG.js} +6 -6
- package/dist/{cdn/chunks/dist-CONcGNwy.js → dist-ByCWA2Tv.js} +100 -99
- package/dist/{dist-CzrLYq2s.js → dist-CKi_npZM.js} +2 -21
- package/dist/{dist-CEdyyDn7.js → dist-CVy-7PHQ.js} +54 -54
- package/dist/{dist-DDN7yR-w.js → dist-D6cMdrfG.js} +129 -129
- package/dist/{editor-modal-Du9VI9q4.js → editor-modal-zaZHcmlO.js} +812 -812
- package/dist/en-Db76vJbY.js +1 -0
- package/dist/{extensions-FRYhx7qa.js → extensions-fo_c-vqf.js} +32 -32
- package/dist/{eye-BKj9Tfnc.js → eye-7W4t5e0Q.js} +1 -1
- package/dist/{image-DNdvdTla.js → image-BDiRFzSd.js} +1 -1
- package/dist/{info-Bx-kBkbH.js → info-Cxi3-Kh9.js} +1 -1
- package/dist/{keys-DBjrQkYH.js → keys-BgRERHzu.js} +1 -1
- package/dist/{link-D8-rYdIQ.js → link-ju_2Cmir.js} +1 -1
- package/dist/{liquid.browser-D1RxawkY.js → liquid.browser-DUXEekoN.js} +781 -745
- package/dist/{list-BneisA27.js → list-DYZJf0aZ.js} +1 -1
- package/dist/{loader-circle-DBEXphyx.js → loader-circle-BZRD0a4I.js} +1 -1
- package/dist/{message-circle-Bg4xInCM.js → message-circle-DuEw4Zfx.js} +1 -1
- package/dist/{normalizeMergeTagMarkup-IH8COHzd.js → normalizeMergeTagMarkup-CELnOlgK.js} +1 -1
- package/dist/{package-B40Vkfsp.js → package-CePMr2kK.js} +1 -1
- package/dist/{pencil-CYdAHTds.js → pencil-D3aFCL7c.js} +1 -1
- package/dist/{preRenderCustomBlocks-AbZArwkR.js → preRenderCustomBlocks--_xc0XK3.js} +1 -1
- package/dist/{refresh-cw-Bb1FWrU0.js → refresh-cw-xnro7_Sk.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CLGymEyk.js → runtime-dom.esm-bundler-BURR-bj5.js} +118 -118
- package/dist/{sanitizeHtml-CnOA1efV.js → sanitizeHtml-BzfzpYJY.js} +1 -1
- package/dist/{search-BZEo08gi.js → search-CDrstRBv.js} +1 -1
- package/dist/{send-DHtrnXQs.js → send-DROkPOaX.js} +1 -1
- package/dist/{smartphone-dlN3vpA3.js → smartphone-Bx6u_tjn.js} +1 -1
- package/dist/{socialIcons-B_d52_eS.js → socialIcons-D7MGsg0d.js} +366 -366
- package/dist/{sparkles-NOttoDnJ.js → sparkles-CdaTtvoz.js} +1 -1
- package/dist/{square-B1CJgdt2.js → square-BbCROH_f.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +1096 -1096
- package/dist/{text-align-start-zpoXmb-Z.js → text-align-start-CGacJ9Vw.js} +1 -1
- package/dist/{trash-CGbk4Sgt.js → trash-DxCd7zIy.js} +1 -1
- package/dist/{triangle-alert-CKLMyGVp.js → triangle-alert-7_oaitpf.js} +1 -1
- package/dist/{upload-DQoackAn.js → upload-DuFEOi_0.js} +1 -1
- package/dist/{useCloudI18n-DcLtxOQZ.js → useCloudI18n-DEMmUKuO.js} +2 -2
- package/dist/{useEditorCore-DG9UvWUm.js → useEditorCore-BSo2sSID.js} +1518 -1470
- package/dist/useEditorRoot-BMcoCLBx.js +7 -0
- package/dist/{useI18n-CeTm777E.js → useI18n-BBrHTdu8.js} +2 -2
- package/dist/{cdn/chunks/useLogicTag-vy5KGg5D.js → useLogicTag-ZPC39rfH.js} +3 -5
- package/dist/{cdn/chunks/useMergeTag-BFBBjnwh.js → useMergeTag-BQ4qqWpQ.js} +5 -7
- package/dist/{usePopoverPosition-C42kD7zt.js → usePopoverPosition-DV1PxL66.js} +3 -3
- package/dist/{useScrollToBlock-C-NzvjeO.js → useScrollToBlock-BSyAV4pk.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-CrlI8j5R.js → vue.runtime.esm-bundler-CnEeTfhs.js} +993 -990
- package/dist/{withCurrentFont-v_a4Oso8.js → withCurrentFont-B22FXAF5.js} +1 -1
- package/dist/{x-zcrnmcmU.js → x-BpfG7v9g.js} +1 -1
- package/package.json +10 -10
- package/dist/BlockIssueBadge-6Ri2FfX-.js +0 -33
- package/dist/CommentsSidebar-Co3x4uH0.js +0 -499
- package/dist/IssuesPanel-BHFQ3wrP.js +0 -359
- package/dist/SavedBlocksBrowserModal-SRtN5h9q.js +0 -359
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-B9XCjDfm.js +0 -356
- package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js.map +0 -1
- package/dist/cdn/chunks/TplModal-BDyeS69p.js +0 -51
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js +0 -21
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js.map +0 -1
- package/dist/cdn/chunks/draggable-B8hTTYFO.js.map +0 -1
- package/dist/cdn/chunks/en-CKAXAo3Z.js +0 -1
- package/dist/cdn/chunks/icons-HCBP93Ch.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +0 -1
- package/dist/cdn/chunks/src-C9DTvn1H.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js +0 -2534
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +0 -9
- package/dist/en-CyEE7FPY.js +0 -1
- package/dist/useEditorRoot-BKr6nNkC.js +0 -7
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as h, t as g } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import { C as _ } from "./useEditorCore-
|
|
4
|
-
import { J as v, Z as y } from "./keys-
|
|
5
|
-
import { n as b } from "./usePopoverPosition-
|
|
1
|
+
import { $ as e, C as t, H as n, Mt as r, P as i, _ as a, a as o, c as s, d as c, f as l, j as u, l as d, st as f, u as p, y as m } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
+
import { c as h, t as g } from "./runtime-dom.esm-bundler-BURR-bj5.js";
|
|
3
|
+
import { C as _ } from "./useEditorCore-BSo2sSID.js";
|
|
4
|
+
import { J as v, Z as y } from "./keys-BgRERHzu.js";
|
|
5
|
+
import { n as b } from "./usePopoverPosition-DV1PxL66.js";
|
|
6
6
|
// src/components/TplModal.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var x = ["data-tpl-theme"], S = /* @__PURE__ */ m({
|
|
8
8
|
__name: "TplModal",
|
|
9
9
|
props: { visible: { type: Boolean } },
|
|
10
10
|
emits: ["close", "keydown"],
|
|
11
11
|
setup(m, { emit: S }) {
|
|
12
|
-
let C = m, w = S, T =
|
|
12
|
+
let C = m, w = S, T = e(null), E = s(() => C.visible);
|
|
13
13
|
_(T, E);
|
|
14
|
-
let D =
|
|
14
|
+
let D = t(y), O = t(v, null), k = b();
|
|
15
15
|
function A(e) {
|
|
16
16
|
e.key === "Escape" && w("close"), w("keydown", e);
|
|
17
17
|
}
|
|
18
|
-
return (e,
|
|
18
|
+
return (e, t) => f(k) ? (u(), p(o, {
|
|
19
19
|
key: 0,
|
|
20
20
|
to: f(k)
|
|
21
|
-
}, [
|
|
21
|
+
}, [a(g, {
|
|
22
22
|
"enter-active-class": "tpl:transition",
|
|
23
23
|
"enter-from-class": "tpl:opacity-0",
|
|
24
24
|
"enter-to-class": "tpl:opacity-100",
|
|
@@ -26,25 +26,25 @@ var x = ["data-tpl-theme"], S = /* @__PURE__ */ m({
|
|
|
26
26
|
"leave-from-class": "tpl:opacity-100",
|
|
27
27
|
"leave-to-class": "tpl:opacity-0"
|
|
28
28
|
}, {
|
|
29
|
-
default:
|
|
29
|
+
default: n(() => [m.visible ? (u(), l("div", {
|
|
30
30
|
key: 0,
|
|
31
31
|
"data-tpl-theme": f(D),
|
|
32
32
|
class: "tpl tpl:fixed tpl:inset-0 tpl:z-10 tpl:box-border tpl:flex tpl:items-center tpl:justify-center tpl:p-4",
|
|
33
|
-
style:
|
|
33
|
+
style: r([{
|
|
34
34
|
"background-color": "var(--tpl-overlay)",
|
|
35
35
|
"backdrop-filter": "blur(8px)",
|
|
36
36
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
37
37
|
}, f(O)]),
|
|
38
|
-
onClick:
|
|
38
|
+
onClick: t[1] ||= h((e) => w("close"), ["self"]),
|
|
39
39
|
onKeydown: A
|
|
40
40
|
}, [d("div", {
|
|
41
41
|
ref_key: "dialogRef",
|
|
42
42
|
ref: T,
|
|
43
43
|
class: "tpl:flex tpl:h-full tpl:items-center tpl:justify-center",
|
|
44
|
-
onClick:
|
|
45
|
-
}, [
|
|
44
|
+
onClick: t[0] ||= h((e) => w("close"), ["self"])
|
|
45
|
+
}, [i(e.$slots, "default")], 512)], 44, x)) : c("", !0)]),
|
|
46
46
|
_: 3
|
|
47
|
-
})], 8, ["to"])) :
|
|
47
|
+
})], 8, ["to"])) : c("", !0);
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
export { S as t };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as g, t as _ } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import { t as v } from "./dist-
|
|
4
|
-
import { X as y } from "./keys-
|
|
5
|
-
import { t as b } from "./useI18n-
|
|
6
|
-
import { t as x } from "./createLucideIcon-
|
|
7
|
-
import { t as S } from "./chevron-down-
|
|
8
|
-
import { t as C } from "./chevron-right-
|
|
9
|
-
import { t as w } from "./clock-
|
|
10
|
-
import { t as ee } from "./loader-circle-
|
|
1
|
+
import { $ as e, C as t, H as n, N as r, Nt as i, _ as a, c as o, d as s, f as c, g as l, j as u, jt as d, l as f, r as p, st as m, y as h } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
+
import { c as g, t as _ } from "./runtime-dom.esm-bundler-BURR-bj5.js";
|
|
3
|
+
import { t as v } from "./dist-ByCWA2Tv.js";
|
|
4
|
+
import { X as y } from "./keys-BgRERHzu.js";
|
|
5
|
+
import { t as b } from "./useI18n-BBrHTdu8.js";
|
|
6
|
+
import { t as x } from "./createLucideIcon-CvhTA2KG.js";
|
|
7
|
+
import { t as S } from "./chevron-down-DfAAfILv.js";
|
|
8
|
+
import { t as C } from "./chevron-right-Bk4mGdr7.js";
|
|
9
|
+
import { t as w } from "./clock-CTfD6OCt.js";
|
|
10
|
+
import { t as ee } from "./loader-circle-BZRD0a4I.js";
|
|
11
11
|
import { t as T } from "./formatAbsoluteDateTime-Ck2_zXra.js";
|
|
12
12
|
import { t as E } from "./formatRelativeTime-BTD8Ktt-.js";
|
|
13
13
|
var D = x({
|
|
@@ -65,7 +65,7 @@ var D = x({
|
|
|
65
65
|
},
|
|
66
66
|
emits: ["open", "navigate"],
|
|
67
67
|
setup(h, { emit: x }) {
|
|
68
|
-
let V = h, H = x, { t: U, format: W } = b(), G = t(y, void 0), K =
|
|
68
|
+
let V = h, H = x, { t: U, format: W } = b(), G = t(y, void 0), K = e(!1), q = e(null), J = o(() => V.previewingId === null ? -1 : V.versions.findIndex((e) => e.id === V.previewingId)), Y = o(() => J.value > 0 && !V.isRestoring && !V.isLoading), X = o(() => J.value < V.versions.length - 1 && V.versions.length > 0 && !V.isRestoring && !V.isLoading);
|
|
69
69
|
function Z() {
|
|
70
70
|
Y.value && H("navigate", V.versions[J.value - 1]);
|
|
71
71
|
}
|
|
@@ -89,7 +89,7 @@ var D = x({
|
|
|
89
89
|
}
|
|
90
90
|
return v(q, () => {
|
|
91
91
|
K.value = !1;
|
|
92
|
-
}), (
|
|
92
|
+
}), (e, t) => (u(), c("div", {
|
|
93
93
|
ref_key: "dropdownRef",
|
|
94
94
|
ref: q,
|
|
95
95
|
class: "tpl:relative tpl:flex tpl:items-center tpl:gap-0.5",
|
|
@@ -99,10 +99,10 @@ var D = x({
|
|
|
99
99
|
class: "tpl:flex tpl:size-7 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-30 tpl:disabled:hover:bg-transparent tpl:text-[var(--tpl-text-muted)]",
|
|
100
100
|
"data-testid": "version-history-older",
|
|
101
101
|
disabled: !X.value,
|
|
102
|
-
title:
|
|
103
|
-
"aria-label":
|
|
102
|
+
title: m(U).versionHistory.olderVersion,
|
|
103
|
+
"aria-label": m(U).versionHistory.olderVersion,
|
|
104
104
|
onClick: g(Q, ["stop"])
|
|
105
|
-
}, [
|
|
105
|
+
}, [a(m(D), {
|
|
106
106
|
size: 14,
|
|
107
107
|
"stroke-width": 2
|
|
108
108
|
})], 8, O),
|
|
@@ -110,45 +110,45 @@ var D = x({
|
|
|
110
110
|
class: "tpl:flex tpl:h-7 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-0.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-1.5 tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
|
|
111
111
|
"data-testid": "version-history-toggle",
|
|
112
112
|
"aria-expanded": K.value,
|
|
113
|
-
title:
|
|
114
|
-
"aria-label":
|
|
113
|
+
title: m(U).versionHistory.tooltip,
|
|
114
|
+
"aria-label": m(U).versionHistory.tooltip,
|
|
115
115
|
onClick: g(te, ["stop"])
|
|
116
|
-
}, [
|
|
116
|
+
}, [a(m(w), {
|
|
117
117
|
size: 16,
|
|
118
118
|
"stroke-width": 1.5
|
|
119
|
-
}),
|
|
120
|
-
class:
|
|
119
|
+
}), a(m(S), {
|
|
120
|
+
class: d(["tpl:transition-transform", { "tpl:rotate-180": K.value }]),
|
|
121
121
|
size: 10,
|
|
122
122
|
"stroke-width": 2
|
|
123
123
|
}, null, 8, ["class"])], 8, k),
|
|
124
|
-
|
|
125
|
-
default:
|
|
124
|
+
a(_, { name: "tpl-dropdown" }, {
|
|
125
|
+
default: n(() => [K.value ? (u(), c("div", A, [f("div", j, i(m(U).versionHistory.dropdownTitle), 1), h.isLoading && h.versions.length === 0 ? (u(), c("div", M, [a(m(ee), {
|
|
126
126
|
class: "tpl:animate-spin tpl:text-[var(--tpl-primary)]",
|
|
127
127
|
size: 20,
|
|
128
128
|
"stroke-width": 2
|
|
129
|
-
})])) : h.versions.length === 0 ? (
|
|
130
|
-
key:
|
|
131
|
-
class:
|
|
129
|
+
})])) : h.versions.length === 0 ? (u(), c("div", N, i(m(U).versionHistory.empty), 1)) : (u(), c("div", P, [(u(!0), c(p, null, r(h.versions, (e) => (u(), c("button", {
|
|
130
|
+
key: e.id,
|
|
131
|
+
class: d(["tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:border-l-2 tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-all tpl:hover:border-l-[var(--tpl-primary)] tpl:hover:bg-[var(--tpl-bg-hover)]", e.id === h.previewingId ? "tpl:border-l-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg-active)]" : "tpl:border-l-transparent"]),
|
|
132
132
|
style: { "background-color": "transparent" },
|
|
133
133
|
"data-testid": "version-history-entry",
|
|
134
|
-
"data-version-id":
|
|
134
|
+
"data-version-id": e.id,
|
|
135
135
|
disabled: h.isRestoring,
|
|
136
|
-
onClick: (
|
|
137
|
-
}, [f("div", I, [f("div", L, [f("span", null,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
])) :
|
|
136
|
+
onClick: (t) => ne(e)
|
|
137
|
+
}, [f("div", I, [f("div", L, [f("span", null, i(e.label ?? $(e.createdAt)), 1), e.isAutomatic ? (u(), c("span", R, i(m(U).versionHistory.auto), 1)) : s("", !0)]), e.label || e.author?.name ? (u(), c("div", z, [
|
|
138
|
+
e.label ? (u(), c(p, { key: 0 }, [l(i($(e.createdAt)), 1)], 64)) : s("", !0),
|
|
139
|
+
e.label && e.author?.name ? (u(), c(p, { key: 1 }, [l(" · ")], 64)) : s("", !0),
|
|
140
|
+
e.author?.name ? (u(), c(p, { key: 2 }, [l(i(e.author.name), 1)], 64)) : s("", !0)
|
|
141
|
+
])) : s("", !0)])], 10, F))), 128))]))])) : s("", !0)]),
|
|
142
142
|
_: 1
|
|
143
143
|
}),
|
|
144
144
|
f("button", {
|
|
145
145
|
class: "tpl:flex tpl:size-7 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-30 tpl:disabled:hover:bg-transparent tpl:text-[var(--tpl-text-muted)]",
|
|
146
146
|
"data-testid": "version-history-newer",
|
|
147
147
|
disabled: !Y.value,
|
|
148
|
-
title:
|
|
149
|
-
"aria-label":
|
|
148
|
+
title: m(U).versionHistory.newerVersion,
|
|
149
|
+
"aria-label": m(U).versionHistory.newerVersion,
|
|
150
150
|
onClick: g(Z, ["stop"])
|
|
151
|
-
}, [
|
|
151
|
+
}, [a(m(C), {
|
|
152
152
|
size: 14,
|
|
153
153
|
"stroke-width": 2
|
|
154
154
|
})], 8, B)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as e, f as t, j as n,
|
|
1
|
+
import { d as e, f as t, j as n, r, st as i, u as a, v as o, y as s } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
2
|
// src/components/VersionHistoryPanels.vue
|
|
3
3
|
var c = /* @__PURE__ */ s({
|
|
4
4
|
__name: "VersionHistoryPanels",
|
|
5
5
|
props: { feature: {} },
|
|
6
6
|
setup(s) {
|
|
7
|
-
let c = s, l = o(() => import("./VersionPreviewBanner-
|
|
7
|
+
let c = s, l = o(() => import("./VersionPreviewBanner-DECaBwLq.js")), u = o(() => import("./RestoreVersionDialog-C4s_JYCx.js"));
|
|
8
8
|
async function d() {
|
|
9
9
|
try {
|
|
10
10
|
await c.feature.requestRestore();
|
|
@@ -20,13 +20,13 @@ var c = /* @__PURE__ */ s({
|
|
|
20
20
|
await c.feature.discardAndRestore();
|
|
21
21
|
} catch {}
|
|
22
22
|
}
|
|
23
|
-
return (o, c) => (n(), t(
|
|
23
|
+
return (o, c) => (n(), t(r, null, [s.feature.isPreviewing.value ? (n(), a(i(l), {
|
|
24
24
|
key: 0,
|
|
25
25
|
visible: s.feature.isPreviewing.value,
|
|
26
26
|
"can-restore": s.feature.canRestore.value,
|
|
27
27
|
onCancel: c[0] ||= (e) => s.feature.cancelPreview(),
|
|
28
28
|
onConfirm: d
|
|
29
|
-
}, null, 8, ["visible", "can-restore"])) : e("", !0), s.feature.isConfirmingRestore.value ? (n(), a(
|
|
29
|
+
}, null, 8, ["visible", "can-restore"])) : e("", !0), s.feature.isConfirmingRestore.value ? (n(), a(i(u), {
|
|
30
30
|
key: 1,
|
|
31
31
|
visible: s.feature.isConfirmingRestore.value,
|
|
32
32
|
"can-save": s.feature.canSaveBeforeRestore.value,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as l } from "./useI18n-
|
|
3
|
-
import { t as u } from "./clock-
|
|
1
|
+
import { Nt as e, _ as t, d as n, f as r, j as i, jt as a, l as o, st as s, y as c } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
+
import { t as l } from "./useI18n-BBrHTdu8.js";
|
|
3
|
+
import { t as u } from "./clock-CTfD6OCt.js";
|
|
4
4
|
import { f as d, v as f } from "./styleConstants-B8xVRiwX.js";
|
|
5
5
|
// src/components/VersionPreviewBanner.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var p = {
|
|
@@ -17,21 +17,21 @@ var p = {
|
|
|
17
17
|
emits: ["cancel", "confirm"],
|
|
18
18
|
setup(c, { emit: g }) {
|
|
19
19
|
let _ = g, { t: v } = l();
|
|
20
|
-
return (l, g) => c.visible ? (
|
|
20
|
+
return (l, g) => c.visible ? (i(), r("div", p, [o("div", m, [t(s(u), {
|
|
21
21
|
size: 18,
|
|
22
22
|
"stroke-width": 2,
|
|
23
23
|
class: "tpl:text-[var(--tpl-primary)]"
|
|
24
|
-
}), o("span", null,
|
|
25
|
-
class:
|
|
24
|
+
}), o("span", null, e(s(v).versionPreview.message), 1)]), o("div", h, [o("button", {
|
|
25
|
+
class: a(s(d)),
|
|
26
26
|
style: { "background-color": "transparent" },
|
|
27
27
|
"data-testid": "version-preview-cancel",
|
|
28
28
|
onClick: g[0] ||= (e) => _("cancel")
|
|
29
|
-
},
|
|
29
|
+
}, e(s(v).versionPreview.cancel), 3), c.canRestore ? (i(), r("button", {
|
|
30
30
|
key: 0,
|
|
31
|
-
class:
|
|
31
|
+
class: a(s(f)),
|
|
32
32
|
"data-testid": "version-preview-restore",
|
|
33
33
|
onClick: g[1] ||= (e) => _("confirm")
|
|
34
|
-
},
|
|
34
|
+
}, e(s(v).versionPreview.restore), 3)) : n("", !0)])])) : n("", !0);
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
export { g as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { p } from "./dist-
|
|
3
|
-
import { D as m, T as h, a as g } from "./socialIcons-
|
|
4
|
-
import { N as _, P as v, j as y, k as b } from "./useEditorCore-
|
|
5
|
-
import { C as x, P as S, g as C, s as w, x as T } from "./keys-
|
|
1
|
+
import { C as e, I as t, Mt as n, N as r, c as i, f as a, j as o, jt as s, r as c, st as l, u, y as d, z as f } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
+
import { p } from "./dist-CKi_npZM.js";
|
|
3
|
+
import { D as m, T as h, a as g } from "./socialIcons-D7MGsg0d.js";
|
|
4
|
+
import { N as _, P as v, j as y, k as b } from "./useEditorCore-BSo2sSID.js";
|
|
5
|
+
import { C as x, P as S, g as C, s as w, x as T } from "./keys-BgRERHzu.js";
|
|
6
6
|
// src/components/blocks/WrapperBlock.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var E = ["data-block-id"], D = /* @__PURE__ */ d({
|
|
8
8
|
name: "WrapperBlock",
|
|
@@ -12,7 +12,7 @@ var E = ["data-block-id"], D = /* @__PURE__ */ d({
|
|
|
12
12
|
viewport: {}
|
|
13
13
|
},
|
|
14
14
|
setup(d) {
|
|
15
|
-
let D = d, O =
|
|
15
|
+
let D = d, O = e(w, null), k = e(T, null), A = e(S, p.liquid), j = e(C, null), M = e(x, void 0), N = m(() => D.block.backgroundImage), P = i(() => _(D.block, { backgroundImageUrl: N.value }) ?? {}), F = i(() => D.block.children.flatMap((e) => {
|
|
16
16
|
let t = e.type === "section" ? h(e.backgroundImage, A) : void 0;
|
|
17
17
|
return t ? [t] : [];
|
|
18
18
|
}));
|
|
@@ -26,17 +26,17 @@ var E = ["data-block-id"], D = /* @__PURE__ */ d({
|
|
|
26
26
|
function L(e) {
|
|
27
27
|
return v(e, O, {});
|
|
28
28
|
}
|
|
29
|
-
return (
|
|
29
|
+
return (e, i) => (o(), a("div", {
|
|
30
30
|
"data-testid": "layout-wrapper",
|
|
31
|
-
class:
|
|
32
|
-
style:
|
|
33
|
-
}, [(o(!0), a(
|
|
34
|
-
key:
|
|
35
|
-
"data-block-id":
|
|
36
|
-
style:
|
|
37
|
-
class:
|
|
38
|
-
}, [(o(), u(
|
|
39
|
-
block:
|
|
31
|
+
class: s(["tpl-email-surface tpl:w-full", l(b)(P.value)]),
|
|
32
|
+
style: n(P.value)
|
|
33
|
+
}, [(o(!0), a(c, null, r(I.value, ({ child: e, style: r }) => (o(), a("div", {
|
|
34
|
+
key: e.id,
|
|
35
|
+
"data-block-id": e.id,
|
|
36
|
+
style: n(r),
|
|
37
|
+
class: s(l(b)(r))
|
|
38
|
+
}, [(o(), u(t(L(e)), {
|
|
39
|
+
block: e,
|
|
40
40
|
viewport: d.viewport
|
|
41
41
|
}, null, 8, ["block", "viewport"]))], 14, E))), 128))], 6));
|
|
42
42
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as e, b as t, v as n, y as r } from "./socialIcons-
|
|
2
|
-
import { t as i } from "./createLucideIcon-
|
|
3
|
-
import { t as a } from "./image-
|
|
1
|
+
import { _ as e, b as t, v as n, y as r } from "./socialIcons-D7MGsg0d.js";
|
|
2
|
+
import { t as i } from "./createLucideIcon-CvhTA2KG.js";
|
|
3
|
+
import { t as a } from "./image-BDiRFzSd.js";
|
|
4
4
|
var o = i({
|
|
5
5
|
name: "columns-3",
|
|
6
6
|
size: 24,
|
|
@@ -24,23 +24,6 @@ var o = i({
|
|
|
24
24
|
],
|
|
25
25
|
aliases: ["panels-left-right"]
|
|
26
26
|
}), s = i({
|
|
27
|
-
name: "heading",
|
|
28
|
-
size: 24,
|
|
29
|
-
node: [
|
|
30
|
-
["path", {
|
|
31
|
-
d: "M6 12h12",
|
|
32
|
-
key: "8npq4p"
|
|
33
|
-
}],
|
|
34
|
-
["path", {
|
|
35
|
-
d: "M6 20V4",
|
|
36
|
-
key: "1w1bmo"
|
|
37
|
-
}],
|
|
38
|
-
["path", {
|
|
39
|
-
d: "M18 20V4",
|
|
40
|
-
key: "o2hl4u"
|
|
41
|
-
}]
|
|
42
|
-
]
|
|
43
|
-
}), c = i({
|
|
44
27
|
name: "layout-panel-top",
|
|
45
28
|
size: 24,
|
|
46
29
|
node: [
|
|
@@ -69,6 +52,24 @@ var o = i({
|
|
|
69
52
|
key: "nxv5o0"
|
|
70
53
|
}]
|
|
71
54
|
]
|
|
55
|
+
}), c = i({
|
|
56
|
+
name: "letter-h",
|
|
57
|
+
size: 24,
|
|
58
|
+
node: [
|
|
59
|
+
["path", {
|
|
60
|
+
d: "M18 20V4",
|
|
61
|
+
key: "o2hl4u"
|
|
62
|
+
}],
|
|
63
|
+
["path", {
|
|
64
|
+
d: "M6 12H18",
|
|
65
|
+
key: "1fx1vx"
|
|
66
|
+
}],
|
|
67
|
+
["path", {
|
|
68
|
+
d: "M6 20V4",
|
|
69
|
+
key: "1w1bmo"
|
|
70
|
+
}]
|
|
71
|
+
],
|
|
72
|
+
aliases: ["heading"]
|
|
72
73
|
}), l = i({
|
|
73
74
|
name: "minus",
|
|
74
75
|
size: 24,
|
|
@@ -155,8 +156,8 @@ var o = i({
|
|
|
155
156
|
]
|
|
156
157
|
}), h = {
|
|
157
158
|
section: o,
|
|
158
|
-
hero:
|
|
159
|
-
title:
|
|
159
|
+
hero: s,
|
|
160
|
+
title: c,
|
|
160
161
|
paragraph: d,
|
|
161
162
|
image: a,
|
|
162
163
|
button: p,
|
package/dist/bundle-stats.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.52.
|
|
3
|
-
"initialGzipBytes":
|
|
4
|
-
"initialRawBytes":
|
|
2
|
+
"version": "0.52.1",
|
|
3
|
+
"initialGzipBytes": 218617,
|
|
4
|
+
"initialRawBytes": 723358,
|
|
5
5
|
"initialFileCount": 50,
|
|
6
|
-
"lazyGzipBytes":
|
|
7
|
-
"lazyRawBytes":
|
|
6
|
+
"lazyGzipBytes": 455729,
|
|
7
|
+
"lazyRawBytes": 1602711,
|
|
8
8
|
"lazyFileCount": 86,
|
|
9
|
-
"generatedAt": "2026-11-
|
|
9
|
+
"generatedAt": "2026-11-02T10:13:53.738Z"
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { X as g, g as _, t as v } from "./keys-
|
|
3
|
-
import { t as y } from "./useI18n-
|
|
1
|
+
import { A as e, C as t, D as n, M as r, N as i, P as a, V as o, _ as s, c, et as l, ft as u, g as d, l as f, m as p, p as m, st as h } from "./draggable-Du8AUMFT.js";
|
|
2
|
+
import { X as g, g as _, t as v } from "./keys-CUj6UA38.js";
|
|
3
|
+
import { t as y } from "./useI18n-D8pY4LTq.js";
|
|
4
4
|
import { n as b, r as x } from "./aiErrors-C3QEMB0x.js";
|
|
5
5
|
import { n as S, r as C } from "./aiImageContext-BQ5mQ6B5.js";
|
|
6
6
|
// src/components/ai/AiAltTextPopover.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -18,12 +18,12 @@ var w = ["onKeydown"], T = [
|
|
|
18
18
|
key: 1,
|
|
19
19
|
role: "alert",
|
|
20
20
|
class: "tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
21
|
-
}, k = { class: "tpl:flex tpl:flex-wrap tpl:gap-2" }, A = ["disabled"], j = ["disabled"], M = /* @__PURE__ */
|
|
21
|
+
}, k = { class: "tpl:flex tpl:flex-wrap tpl:gap-2" }, A = ["disabled"], j = ["disabled"], M = /* @__PURE__ */ t({
|
|
22
22
|
__name: "AiAltTextPopover",
|
|
23
23
|
props: { blockId: {} },
|
|
24
24
|
emits: ["close", "drafting"],
|
|
25
|
-
setup(
|
|
26
|
-
let N =
|
|
25
|
+
setup(t, { emit: M }) {
|
|
26
|
+
let N = t, P = M, F = n(v, null), I = n(_, null), L = I ? S(I.content.value, N.blockId) : null, R = l(!1), z = m(() => R.value || I !== null && !C(S(I.content.value, N.blockId), L)), B = n(g, "en"), { t: V, format: H } = y(), U = l(""), W = l(!0), G = l(!1), K = l(!1), q = l(""), J = l(null), Y = new AbortController(), X = !1;
|
|
27
27
|
function Z(e) {
|
|
28
28
|
let t = e.target;
|
|
29
29
|
W.value ? t.value = U.value : U.value = t.value;
|
|
@@ -31,16 +31,16 @@ var w = ["onKeydown"], T = [
|
|
|
31
31
|
function Q() {
|
|
32
32
|
X = !0, Y.abort(), P("drafting", null), P("close");
|
|
33
33
|
}
|
|
34
|
-
F &&
|
|
34
|
+
F && o(F.templateSession, Q, { flush: "sync" }), r(async () => {
|
|
35
35
|
P("drafting", Y);
|
|
36
36
|
try {
|
|
37
37
|
F && (U.value = await F.draftAltText(N.blockId, Y.signal));
|
|
38
38
|
} catch (e) {
|
|
39
39
|
Y.signal.aborted || (K.value = !0, q.value = b(e, V.ai.errors, H, B));
|
|
40
40
|
} finally {
|
|
41
|
-
W.value = !1, P("drafting", null), await
|
|
41
|
+
W.value = !1, P("drafting", null), await e(), X || J.value?.focus();
|
|
42
42
|
}
|
|
43
|
-
}),
|
|
43
|
+
}), i(() => {
|
|
44
44
|
X = !0, Y.abort(), P("drafting", null);
|
|
45
45
|
});
|
|
46
46
|
async function $(e) {
|
|
@@ -60,9 +60,9 @@ var w = ["onKeydown"], T = [
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
return (e, t) => (
|
|
63
|
+
return (e, t) => (a(), s("div", {
|
|
64
64
|
class: "tpl:mt-3 tpl:flex tpl:flex-col tpl:gap-2",
|
|
65
|
-
onKeydown:
|
|
65
|
+
onKeydown: c(f(Q, ["stop", "prevent"]), ["esc"])
|
|
66
66
|
}, [
|
|
67
67
|
p("textarea", {
|
|
68
68
|
ref_key: "textarea",
|
|
@@ -72,35 +72,35 @@ var w = ["onKeydown"], T = [
|
|
|
72
72
|
readonly: W.value,
|
|
73
73
|
"aria-busy": W.value,
|
|
74
74
|
onInput: Z,
|
|
75
|
-
"aria-label":
|
|
75
|
+
"aria-label": h(V).ai.altText.title,
|
|
76
76
|
rows: "3",
|
|
77
77
|
class: "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)]"
|
|
78
78
|
}, null, 40, T),
|
|
79
|
-
p("p", E, u(
|
|
80
|
-
z.value ? (
|
|
81
|
-
K.value && !z.value ? (
|
|
79
|
+
p("p", E, u(h(V).ai.altText.note), 1),
|
|
80
|
+
z.value ? (a(), s("p", D, u(h(V).ai.altText.stale), 1)) : d("", !0),
|
|
81
|
+
K.value && !z.value ? (a(), s("p", O, u(h(V).ai.altText.failed) + " " + u(q.value), 1)) : d("", !0),
|
|
82
82
|
p("div", k, [
|
|
83
83
|
p("button", {
|
|
84
84
|
type: "button",
|
|
85
|
-
disabled: W.value || G.value ||
|
|
85
|
+
disabled: W.value || G.value || h(F)?.busy.value || z.value,
|
|
86
86
|
class: "tpl:rounded-md tpl:bg-[var(--tpl-primary)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-on-primary)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60",
|
|
87
87
|
onClick: t[0] ||= (e) => $(!1)
|
|
88
|
-
}, u(
|
|
88
|
+
}, u(h(V).ai.altText.accept), 9, A),
|
|
89
89
|
p("button", {
|
|
90
90
|
type: "button",
|
|
91
|
-
disabled: W.value || G.value ||
|
|
91
|
+
disabled: W.value || G.value || h(F)?.busy.value || z.value,
|
|
92
92
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60",
|
|
93
93
|
onClick: t[1] ||= (e) => $(!0)
|
|
94
|
-
}, u(
|
|
94
|
+
}, u(h(V).ai.altText.decorative), 9, j),
|
|
95
95
|
p("button", {
|
|
96
96
|
type: "button",
|
|
97
97
|
class: "tpl:rounded-md tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)]",
|
|
98
98
|
onClick: Q
|
|
99
|
-
}, u(
|
|
99
|
+
}, u(h(V).ai.altText.cancel), 1)
|
|
100
100
|
])
|
|
101
101
|
], 40, w));
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
export { M as default };
|
|
105
105
|
|
|
106
|
-
//# sourceMappingURL=AiAltTextPopover-
|
|
106
|
+
//# sourceMappingURL=AiAltTextPopover-SEEjkd-I.js.map
|
package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js.map → AiAltTextPopover-SEEjkd-I.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiAltTextPopover-DjMoJCgU.js","names":["_openBlock","_createElementBlock","_withKeys","_withModifiers","_createElementVNode","_unref","_toDisplayString","_createCommentVNode","_sfc_main","ref","nextTick","defineComponent","inject","onMounted","onUnmounted","openBlock","watch","createElementBlock","withKeys","toDisplayString","createCommentVNode","withModifiers","createBaseVNode","unref","computed","UI_LOCALE_KEY","EDITOR_KEY","AI_FEATURE_KEY","useI18n","aiErrorMessage","isSdkError","aiImageSnapshot","sameAiImage","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","AiAltTextPopover_default","__emit","props","__props","emit","ai","editor","captured","refused","stale","locale","alt","drafting","applying","failed","detail","textarea","controller","closed","editAlt","input","event","close","error","t","format","apply","decorative","_cache"],"sources":["../../../src/components/ai/AiAltTextPopover.vue","../../../src/components/ai/AiAltTextPopover.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {\n computed,\n inject,\n nextTick,\n onMounted,\n onUnmounted,\n ref,\n watch,\n} from \"vue\";\nimport { AI_FEATURE_KEY, EDITOR_KEY, UI_LOCALE_KEY } from \"../../keys\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { aiErrorMessage } from \"../../utils/aiErrors\";\nimport { aiImageSnapshot, sameAiImage } from \"../../utils/aiImageContext\";\nimport { isSdkError } from \"../../utils/isSdkError\";\n\nconst props = defineProps<{ blockId: string }>();\nconst emit = defineEmits<{\n close: [];\n drafting: [controller: AbortController | null];\n}>();\nconst ai = inject(AI_FEATURE_KEY, null);\nconst editor = inject(EDITOR_KEY, null);\nconst captured = editor\n ? aiImageSnapshot(editor.content.value, props.blockId)\n : null;\nconst refused = ref(false);\nconst stale = computed(\n () =>\n refused.value ||\n (editor !== null &&\n !sameAiImage(\n aiImageSnapshot(editor.content.value, props.blockId),\n captured,\n )),\n);\nconst locale = inject(UI_LOCALE_KEY, \"en\");\nconst { t, format } = useI18n();\nconst alt = ref(\"\");\nconst drafting = ref(true);\nconst applying = ref(false);\nconst failed = ref(false);\nconst detail = ref(\"\");\nconst textarea = ref<HTMLTextAreaElement | null>(null);\nconst controller = new AbortController();\nlet closed = false;\nfunction editAlt(event: Event): void {\n const input = event.target as HTMLTextAreaElement;\n if (drafting.value) {\n input.value = alt.value;\n return;\n }\n alt.value = input.value;\n}\nfunction close(): void {\n closed = true;\n controller.abort();\n emit(\"drafting\", null);\n emit(\"close\");\n}\nif (ai) watch(ai.templateSession, close, { flush: \"sync\" });\nonMounted(async () => {\n emit(\"drafting\", controller);\n try {\n if (ai) alt.value = await ai.draftAltText(props.blockId, controller.signal);\n } catch (error) {\n if (!controller.signal.aborted) {\n failed.value = true;\n detail.value = aiErrorMessage(error, t.ai.errors, format, locale);\n }\n } finally {\n drafting.value = false;\n emit(\"drafting\", null);\n await nextTick();\n if (!closed) textarea.value?.focus();\n }\n});\nonUnmounted(() => {\n closed = true;\n controller.abort();\n emit(\"drafting\", null);\n});\nasync function apply(decorative: boolean): Promise<void> {\n if (!ai || applying.value || drafting.value || ai.busy.value || stale.value)\n return;\n applying.value = true;\n try {\n await ai.applyAltTexts([\n {\n blockId: props.blockId,\n alt: decorative ? \"\" : alt.value,\n decorative,\n ...(captured ? { expect: captured } : {}),\n },\n ]);\n close();\n } catch (error) {\n if (\n isSdkError(error) &&\n (error.code === \"precondition_failed\" || error.code === \"block_missing\")\n )\n refused.value = true;\n failed.value = true;\n detail.value = aiErrorMessage(error, t.ai.errors, format, locale);\n } finally {\n applying.value = false;\n }\n}\n</script>\n\n<template>\n <div\n class=\"tpl:mt-3 tpl:flex tpl:flex-col tpl:gap-2\"\n @keydown.esc.stop.prevent=\"close\"\n >\n <textarea\n ref=\"textarea\"\n :value=\"alt\"\n :disabled=\"drafting\"\n :readonly=\"drafting\"\n :aria-busy=\"drafting\"\n @input=\"editAlt\"\n :aria-label=\"t.ai.altText.title\"\n rows=\"3\"\n class=\"tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)]\"\n />\n <p class=\"tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-text-muted)]\">\n {{ t.ai.altText.note }}\n </p>\n <p\n v-if=\"stale\"\n role=\"alert\"\n class=\"tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-danger)]\"\n >\n {{ t.ai.altText.stale }}\n </p>\n <p\n v-if=\"failed && !stale\"\n role=\"alert\"\n class=\"tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-danger)]\"\n >\n {{ t.ai.altText.failed }} {{ detail }}\n </p>\n <div class=\"tpl:flex tpl:flex-wrap tpl:gap-2\">\n <button\n type=\"button\"\n :disabled=\"drafting || applying || ai?.busy.value || stale\"\n class=\"tpl:rounded-md tpl:bg-[var(--tpl-primary)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-on-primary)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60\"\n @click=\"apply(false)\"\n >\n {{ t.ai.altText.accept }}\n </button>\n <button\n type=\"button\"\n :disabled=\"drafting || applying || ai?.busy.value || stale\"\n class=\"tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60\"\n @click=\"apply(true)\"\n >\n {{ t.ai.altText.decorative }}\n </button>\n <button\n type=\"button\"\n class=\"tpl:rounded-md tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)]\"\n @click=\"close\"\n >\n {{ t.ai.altText.cancel }}\n </button>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport {\n computed,\n inject,\n nextTick,\n onMounted,\n onUnmounted,\n ref,\n watch,\n} from \"vue\";\nimport { AI_FEATURE_KEY, EDITOR_KEY, UI_LOCALE_KEY } from \"../../keys\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { aiErrorMessage } from \"../../utils/aiErrors\";\nimport { aiImageSnapshot, sameAiImage } from \"../../utils/aiImageContext\";\nimport { isSdkError } from \"../../utils/isSdkError\";\n\nconst props = defineProps<{ blockId: string }>();\nconst emit = defineEmits<{\n close: [];\n drafting: [controller: AbortController | null];\n}>();\nconst ai = inject(AI_FEATURE_KEY, null);\nconst editor = inject(EDITOR_KEY, null);\nconst captured = editor\n ? aiImageSnapshot(editor.content.value, props.blockId)\n : null;\nconst refused = ref(false);\nconst stale = computed(\n () =>\n refused.value ||\n (editor !== null &&\n !sameAiImage(\n aiImageSnapshot(editor.content.value, props.blockId),\n captured,\n )),\n);\nconst locale = inject(UI_LOCALE_KEY, \"en\");\nconst { t, format } = useI18n();\nconst alt = ref(\"\");\nconst drafting = ref(true);\nconst applying = ref(false);\nconst failed = ref(false);\nconst detail = ref(\"\");\nconst textarea = ref<HTMLTextAreaElement | null>(null);\nconst controller = new AbortController();\nlet closed = false;\nfunction editAlt(event: Event): void {\n const input = event.target as HTMLTextAreaElement;\n if (drafting.value) {\n input.value = alt.value;\n return;\n }\n alt.value = input.value;\n}\nfunction close(): void {\n closed = true;\n controller.abort();\n emit(\"drafting\", null);\n emit(\"close\");\n}\nif (ai) watch(ai.templateSession, close, { flush: \"sync\" });\nonMounted(async () => {\n emit(\"drafting\", controller);\n try {\n if (ai) alt.value = await ai.draftAltText(props.blockId, controller.signal);\n } catch (error) {\n if (!controller.signal.aborted) {\n failed.value = true;\n detail.value = aiErrorMessage(error, t.ai.errors, format, locale);\n }\n } finally {\n drafting.value = false;\n emit(\"drafting\", null);\n await nextTick();\n if (!closed) textarea.value?.focus();\n }\n});\nonUnmounted(() => {\n closed = true;\n controller.abort();\n emit(\"drafting\", null);\n});\nasync function apply(decorative: boolean): Promise<void> {\n if (!ai || applying.value || drafting.value || ai.busy.value || stale.value)\n return;\n applying.value = true;\n try {\n await ai.applyAltTexts([\n {\n blockId: props.blockId,\n alt: decorative ? \"\" : alt.value,\n decorative,\n ...(captured ? { expect: captured } : {}),\n },\n ]);\n close();\n } catch (error) {\n if (\n isSdkError(error) &&\n (error.code === \"precondition_failed\" || error.code === \"block_missing\")\n )\n refused.value = true;\n failed.value = true;\n detail.value = aiErrorMessage(error, t.ai.errors, format, locale);\n } finally {\n applying.value = false;\n }\n}\n</script>\n\n<template>\n <div\n class=\"tpl:mt-3 tpl:flex tpl:flex-col tpl:gap-2\"\n @keydown.esc.stop.prevent=\"close\"\n >\n <textarea\n ref=\"textarea\"\n :value=\"alt\"\n :disabled=\"drafting\"\n :readonly=\"drafting\"\n :aria-busy=\"drafting\"\n @input=\"editAlt\"\n :aria-label=\"t.ai.altText.title\"\n rows=\"3\"\n class=\"tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)]\"\n />\n <p class=\"tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-text-muted)]\">\n {{ t.ai.altText.note }}\n </p>\n <p\n v-if=\"stale\"\n role=\"alert\"\n class=\"tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-danger)]\"\n >\n {{ t.ai.altText.stale }}\n </p>\n <p\n v-if=\"failed && !stale\"\n role=\"alert\"\n class=\"tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-danger)]\"\n >\n {{ t.ai.altText.failed }} {{ detail }}\n </p>\n <div class=\"tpl:flex tpl:flex-wrap tpl:gap-2\">\n <button\n type=\"button\"\n :disabled=\"drafting || applying || ai?.busy.value || stale\"\n class=\"tpl:rounded-md tpl:bg-[var(--tpl-primary)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-on-primary)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60\"\n @click=\"apply(false)\"\n >\n {{ t.ai.altText.accept }}\n </button>\n <button\n type=\"button\"\n :disabled=\"drafting || applying || ai?.busy.value || stale\"\n class=\"tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60\"\n @click=\"apply(true)\"\n >\n {{ t.ai.altText.decorative }}\n </button>\n <button\n type=\"button\"\n class=\"tpl:rounded-md tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)]\"\n @click=\"close\"\n >\n {{ t.ai.altText.cancel }}\n </button>\n </div>\n </div>\n</template>\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"AiAltTextPopover-SEEjkd-I.js","names":["_openBlock","_createElementBlock","_withKeys","_withModifiers","_createElementVNode","_unref","_toDisplayString","_createCommentVNode","_sfc_main","nextTick","defineComponent","inject","onMounted","onUnmounted","openBlock","watch","createElementBlock","ref","toDisplayString","createCommentVNode","withModifiers","createBaseVNode","computed","unref","UI_LOCALE_KEY","EDITOR_KEY","AI_FEATURE_KEY","useI18n","aiErrorMessage","isSdkError","aiImageSnapshot","sameAiImage","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","AiAltTextPopover_default","__emit","props","__props","emit","ai","editor","captured","refused","stale","locale","alt","drafting","applying","failed","detail","textarea","controller","closed","editAlt","input","event","close","error","t","format","apply","decorative","withKeys","_cache"],"sources":["../../../src/components/ai/AiAltTextPopover.vue","../../../src/components/ai/AiAltTextPopover.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {\n computed,\n inject,\n nextTick,\n onMounted,\n onUnmounted,\n ref,\n watch,\n} from \"vue\";\nimport { AI_FEATURE_KEY, EDITOR_KEY, UI_LOCALE_KEY } from \"../../keys\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { aiErrorMessage } from \"../../utils/aiErrors\";\nimport { aiImageSnapshot, sameAiImage } from \"../../utils/aiImageContext\";\nimport { isSdkError } from \"../../utils/isSdkError\";\n\nconst props = defineProps<{ blockId: string }>();\nconst emit = defineEmits<{\n close: [];\n drafting: [controller: AbortController | null];\n}>();\nconst ai = inject(AI_FEATURE_KEY, null);\nconst editor = inject(EDITOR_KEY, null);\nconst captured = editor\n ? aiImageSnapshot(editor.content.value, props.blockId)\n : null;\nconst refused = ref(false);\nconst stale = computed(\n () =>\n refused.value ||\n (editor !== null &&\n !sameAiImage(\n aiImageSnapshot(editor.content.value, props.blockId),\n captured,\n )),\n);\nconst locale = inject(UI_LOCALE_KEY, \"en\");\nconst { t, format } = useI18n();\nconst alt = ref(\"\");\nconst drafting = ref(true);\nconst applying = ref(false);\nconst failed = ref(false);\nconst detail = ref(\"\");\nconst textarea = ref<HTMLTextAreaElement | null>(null);\nconst controller = new AbortController();\nlet closed = false;\nfunction editAlt(event: Event): void {\n const input = event.target as HTMLTextAreaElement;\n if (drafting.value) {\n input.value = alt.value;\n return;\n }\n alt.value = input.value;\n}\nfunction close(): void {\n closed = true;\n controller.abort();\n emit(\"drafting\", null);\n emit(\"close\");\n}\nif (ai) watch(ai.templateSession, close, { flush: \"sync\" });\nonMounted(async () => {\n emit(\"drafting\", controller);\n try {\n if (ai) alt.value = await ai.draftAltText(props.blockId, controller.signal);\n } catch (error) {\n if (!controller.signal.aborted) {\n failed.value = true;\n detail.value = aiErrorMessage(error, t.ai.errors, format, locale);\n }\n } finally {\n drafting.value = false;\n emit(\"drafting\", null);\n await nextTick();\n if (!closed) textarea.value?.focus();\n }\n});\nonUnmounted(() => {\n closed = true;\n controller.abort();\n emit(\"drafting\", null);\n});\nasync function apply(decorative: boolean): Promise<void> {\n if (!ai || applying.value || drafting.value || ai.busy.value || stale.value)\n return;\n applying.value = true;\n try {\n await ai.applyAltTexts([\n {\n blockId: props.blockId,\n alt: decorative ? \"\" : alt.value,\n decorative,\n ...(captured ? { expect: captured } : {}),\n },\n ]);\n close();\n } catch (error) {\n if (\n isSdkError(error) &&\n (error.code === \"precondition_failed\" || error.code === \"block_missing\")\n )\n refused.value = true;\n failed.value = true;\n detail.value = aiErrorMessage(error, t.ai.errors, format, locale);\n } finally {\n applying.value = false;\n }\n}\n</script>\n\n<template>\n <div\n class=\"tpl:mt-3 tpl:flex tpl:flex-col tpl:gap-2\"\n @keydown.esc.stop.prevent=\"close\"\n >\n <textarea\n ref=\"textarea\"\n :value=\"alt\"\n :disabled=\"drafting\"\n :readonly=\"drafting\"\n :aria-busy=\"drafting\"\n @input=\"editAlt\"\n :aria-label=\"t.ai.altText.title\"\n rows=\"3\"\n class=\"tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)]\"\n />\n <p class=\"tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-text-muted)]\">\n {{ t.ai.altText.note }}\n </p>\n <p\n v-if=\"stale\"\n role=\"alert\"\n class=\"tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-danger)]\"\n >\n {{ t.ai.altText.stale }}\n </p>\n <p\n v-if=\"failed && !stale\"\n role=\"alert\"\n class=\"tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-danger)]\"\n >\n {{ t.ai.altText.failed }} {{ detail }}\n </p>\n <div class=\"tpl:flex tpl:flex-wrap tpl:gap-2\">\n <button\n type=\"button\"\n :disabled=\"drafting || applying || ai?.busy.value || stale\"\n class=\"tpl:rounded-md tpl:bg-[var(--tpl-primary)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-on-primary)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60\"\n @click=\"apply(false)\"\n >\n {{ t.ai.altText.accept }}\n </button>\n <button\n type=\"button\"\n :disabled=\"drafting || applying || ai?.busy.value || stale\"\n class=\"tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60\"\n @click=\"apply(true)\"\n >\n {{ t.ai.altText.decorative }}\n </button>\n <button\n type=\"button\"\n class=\"tpl:rounded-md tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)]\"\n @click=\"close\"\n >\n {{ t.ai.altText.cancel }}\n </button>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport {\n computed,\n inject,\n nextTick,\n onMounted,\n onUnmounted,\n ref,\n watch,\n} from \"vue\";\nimport { AI_FEATURE_KEY, EDITOR_KEY, UI_LOCALE_KEY } from \"../../keys\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { aiErrorMessage } from \"../../utils/aiErrors\";\nimport { aiImageSnapshot, sameAiImage } from \"../../utils/aiImageContext\";\nimport { isSdkError } from \"../../utils/isSdkError\";\n\nconst props = defineProps<{ blockId: string }>();\nconst emit = defineEmits<{\n close: [];\n drafting: [controller: AbortController | null];\n}>();\nconst ai = inject(AI_FEATURE_KEY, null);\nconst editor = inject(EDITOR_KEY, null);\nconst captured = editor\n ? aiImageSnapshot(editor.content.value, props.blockId)\n : null;\nconst refused = ref(false);\nconst stale = computed(\n () =>\n refused.value ||\n (editor !== null &&\n !sameAiImage(\n aiImageSnapshot(editor.content.value, props.blockId),\n captured,\n )),\n);\nconst locale = inject(UI_LOCALE_KEY, \"en\");\nconst { t, format } = useI18n();\nconst alt = ref(\"\");\nconst drafting = ref(true);\nconst applying = ref(false);\nconst failed = ref(false);\nconst detail = ref(\"\");\nconst textarea = ref<HTMLTextAreaElement | null>(null);\nconst controller = new AbortController();\nlet closed = false;\nfunction editAlt(event: Event): void {\n const input = event.target as HTMLTextAreaElement;\n if (drafting.value) {\n input.value = alt.value;\n return;\n }\n alt.value = input.value;\n}\nfunction close(): void {\n closed = true;\n controller.abort();\n emit(\"drafting\", null);\n emit(\"close\");\n}\nif (ai) watch(ai.templateSession, close, { flush: \"sync\" });\nonMounted(async () => {\n emit(\"drafting\", controller);\n try {\n if (ai) alt.value = await ai.draftAltText(props.blockId, controller.signal);\n } catch (error) {\n if (!controller.signal.aborted) {\n failed.value = true;\n detail.value = aiErrorMessage(error, t.ai.errors, format, locale);\n }\n } finally {\n drafting.value = false;\n emit(\"drafting\", null);\n await nextTick();\n if (!closed) textarea.value?.focus();\n }\n});\nonUnmounted(() => {\n closed = true;\n controller.abort();\n emit(\"drafting\", null);\n});\nasync function apply(decorative: boolean): Promise<void> {\n if (!ai || applying.value || drafting.value || ai.busy.value || stale.value)\n return;\n applying.value = true;\n try {\n await ai.applyAltTexts([\n {\n blockId: props.blockId,\n alt: decorative ? \"\" : alt.value,\n decorative,\n ...(captured ? { expect: captured } : {}),\n },\n ]);\n close();\n } catch (error) {\n if (\n isSdkError(error) &&\n (error.code === \"precondition_failed\" || error.code === \"block_missing\")\n )\n refused.value = true;\n failed.value = true;\n detail.value = aiErrorMessage(error, t.ai.errors, format, locale);\n } finally {\n applying.value = false;\n }\n}\n</script>\n\n<template>\n <div\n class=\"tpl:mt-3 tpl:flex tpl:flex-col tpl:gap-2\"\n @keydown.esc.stop.prevent=\"close\"\n >\n <textarea\n ref=\"textarea\"\n :value=\"alt\"\n :disabled=\"drafting\"\n :readonly=\"drafting\"\n :aria-busy=\"drafting\"\n @input=\"editAlt\"\n :aria-label=\"t.ai.altText.title\"\n rows=\"3\"\n class=\"tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)]\"\n />\n <p class=\"tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-text-muted)]\">\n {{ t.ai.altText.note }}\n </p>\n <p\n v-if=\"stale\"\n role=\"alert\"\n class=\"tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-danger)]\"\n >\n {{ t.ai.altText.stale }}\n </p>\n <p\n v-if=\"failed && !stale\"\n role=\"alert\"\n class=\"tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-danger)]\"\n >\n {{ t.ai.altText.failed }} {{ detail }}\n </p>\n <div class=\"tpl:flex tpl:flex-wrap tpl:gap-2\">\n <button\n type=\"button\"\n :disabled=\"drafting || applying || ai?.busy.value || stale\"\n class=\"tpl:rounded-md tpl:bg-[var(--tpl-primary)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-on-primary)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60\"\n @click=\"apply(false)\"\n >\n {{ t.ai.altText.accept }}\n </button>\n <button\n type=\"button\"\n :disabled=\"drafting || applying || ai?.busy.value || stale\"\n class=\"tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60\"\n @click=\"apply(true)\"\n >\n {{ t.ai.altText.decorative }}\n </button>\n <button\n type=\"button\"\n class=\"tpl:rounded-md tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)]\"\n @click=\"close\"\n >\n {{ t.ai.altText.cancel }}\n </button>\n </div>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAgBA,IAAM0C,IAAQC,GACRC,IAAOH,GAIPI,IAAKlC,EAAOe,GAAgB,IAAI,GAChCoB,IAASnC,EAAOc,GAAY,IAAI,GAChCsB,IAAWD,IACbhB,EAAgBgB,EAAO,QAAQ,OAAOJ,EAAM,OAAO,IACnD,MACEM,IAAU/B,EAAI,EAAK,GACnBgC,IAAQ3B,QAEV0B,EAAQ,SACPF,MAAW,QACV,CAACf,EACCD,EAAgBgB,EAAO,QAAQ,OAAOJ,EAAM,OAAO,GACnDK,CACF,CACN,GACMG,IAASvC,EAAOa,GAAe,IAAI,GACnC,EAAE,MAAG,cAAWG,EAAQ,GACxBwB,IAAMlC,EAAI,EAAE,GACZmC,IAAWnC,EAAI,EAAI,GACnBoC,IAAWpC,EAAI,EAAK,GACpBqC,IAASrC,EAAI,EAAK,GAClBsC,IAAStC,EAAI,EAAE,GACfuC,IAAWvC,EAAgC,IAAI,GAC/CwC,IAAa,IAAI,gBAAgB,GACnCC,IAAS;EACb,SAASC,EAAQ,GAAoB;GACnC,IAAMC,IAAQC,EAAM;GACpB,AAAIT,EAAS,QACX,EAAM,QAAQD,EAAI,QAGpB,EAAI,QAAQS,EAAM;EACpB;EACA,SAASE,IAAc;GAIrB,AAHA,IAAS,IACTL,EAAW,MAAM,GACjBb,EAAK,YAAY,IAAI,GACrBA,EAAK,OAAO;EACd;EAkBA,AAjBIC,KAAI9B,EAAM8B,EAAG,iBAAiBiB,GAAO,EAAE,OAAO,OAAO,CAAC,GAC1DlD,EAAU,YAAY;GACpB,EAAK,YAAY6C,CAAU;GAC3B,IAAI;IACF,AAAIZ,MAAI,EAAI,QAAQ,MAAMA,EAAG,aAAaH,EAAM,SAASe,EAAW,MAAM;GAC5E,SAASM,GAAO;IACd,AAAKN,EAAW,OAAO,YACrB,EAAO,QAAQ,IACf,EAAO,QAAQ7B,EAAemC,GAAOC,EAAE,GAAG,QAAQC,GAAQf,CAAM;GAEpE,UAAU;IAIR,AAHA,EAAS,QAAQ,IACjBN,EAAK,YAAY,IAAI,GACrB,MAAMnC,EAAS,GACViD,KAAQF,EAAS,OAAO,MAAM;GACrC;EACF,CAAC,GACD3C,QAAkB;GAGhB,AAFA,IAAS,IACT4C,EAAW,MAAM,GACjBb,EAAK,YAAY,IAAI;EACvB,CAAC;EACD,eAAesB,EAAM,GAAoC;GACvD,IAAI,GAACrB,KAAMQ,EAAS,SAASD,EAAS,SAASP,EAAG,KAAK,SAASI,EAAM,QAEtE;MAAS,QAAQ;IACjB,IAAI;KASF,AARA,MAAMJ,EAAG,cAAc,CACrB;MACE,SAASH,EAAM;MACf,KAAKyB,IAAa,KAAKhB,EAAI;MAC3B;MACA,GAAIJ,IAAW,EAAE,QAAQA,EAAS,IAAI,CAAC;KACzC,CACF,CAAC,GACDe,EAAM;IACR,SAASC,GAAO;KAOd,AALElC,EAAWkC,CAAK,MACfA,EAAM,SAAS,yBAAyBA,EAAM,SAAS,qBAExD,EAAQ,QAAQ,KAClB,EAAO,QAAQ,IACf,EAAO,QAAQnC,EAAemC,GAAOC,EAAE,GAAG,QAAQC,GAAQf,CAAM;IAClE,UAAU;KACR,EAAS,QAAQ;IACnB;GArBiB;EAsBnB;E,kBAIElD,EAAA,GAAAC,EAyDM,OAAA;GAxDJ,OAAM;GACL,WAAOC,EAAAC,EAAmB2D,GAAK,CAAA,QAAA,SAAA,CAAA,GAAA,CAAA,KAAA,CAAA;;GAEhC1D,EAUE,YAAA;IATI,SAAA;IAAJ,KAAIoD;IACH,OAAOL,EAAA;IACP,UAAUC,EAAA;IACV,UAAUA,EAAA;IACV,aAAWA,EAAA;IACX,SAAOO;IACP,cAAYtD,EAAA2D,CAAA,CAAC,CAAC,GAAG,QAAQ;IAC1B,MAAK;IACL,OAAM;;GAER5D,EAEI,KAFJ8B,GAEI5B,EADCD,EAAA2D,CAAA,CAAC,CAAC,GAAG,QAAQ,IAAI,GAAA,CAAA;GAGdf,EAAA,SADRjD,EAAA,GAAAC,EAMI,KANJkC,GAMI7B,EADCD,EAAA2D,CAAA,CAAC,CAAC,GAAG,QAAQ,KAAK,GAAA,CAAA,K;GAGfV,EAAA,SAAM,CAAKL,EAAA,SADnBjD,EAAA,GAAAC,EAMI,KANJmC,GAMI9B,EADCD,EAAA2D,CAAA,CAAC,CAAC,GAAG,QAAQ,MAAM,IAAG,MAAC1D,EAAGiD,EAAA,KAAM,GAAA,CAAA,K;GAErCnD,EAwBM,OAxBNiC,GAwBM;IAvBJjC,EAOS,UAAA;KANP,MAAK;KACJ,UAAUgD,EAAA,SAAYC,EAAA,SAAYhD,EAAAwC,CAAA,CAAE,EAAE,KAAK,SAASI,EAAA;KACrD,OAAM;KACL,SAAK,AAAAoB,EAAA,QAAA,MAAEH,EAAK,EAAA;IAEV,GAAA5D,EAAAD,EAAA2D,CAAA,CAAC,CAAC,GAAG,QAAQ,MAAM,GAAA,GAAA1B,CAAA;IAExBlC,EAOS,UAAA;KANP,MAAK;KACJ,UAAUgD,EAAA,SAAYC,EAAA,SAAYhD,EAAAwC,CAAA,CAAE,EAAE,KAAK,SAASI,EAAA;KACrD,OAAM;KACL,SAAK,AAAAoB,EAAA,QAAA,MAAEH,EAAK,EAAA;IAEV,GAAA5D,EAAAD,EAAA2D,CAAA,CAAC,CAAC,GAAG,QAAQ,UAAU,GAAA,GAAAzB,CAAA;IAE5BnC,EAMS,UAAA;KALP,MAAK;KACL,OAAM;KACL,SAAO0D;IAEL,GAAAxD,EAAAD,EAAA2D,CAAA,CAAC,CAAC,GAAG,QAAQ,MAAM,GAAA,CAAA"}
|