@templatical/editor 0.25.1 → 0.26.0
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/{AiChatSidebar-BYMdVldY.js → AiChatSidebar-c-3yyjN1.js} +14 -14
- package/dist/{AiFeatureMenu-BhHhnu9G.js → AiFeatureMenu-B-COyG7k.js} +7 -7
- package/dist/{BlockIssueBadge-De36PJC4.js → BlockIssueBadge-Buk3_6QF.js} +5 -5
- package/dist/{BlockPreviewCanvas-BxSoA1QV.js → BlockPreviewCanvas-CJPHGI93.js} +3 -3
- package/dist/{CloudEditor-BXfuytQj.js → CloudEditor-BdSQ8hfv.js} +26 -26
- package/dist/{CollaboratorBar-D9AfWRTH.js → CollaboratorBar-mGoi6yye.js} +4 -4
- package/dist/{ColorPicker-VPq4ASC8.js → ColorPicker-ClETsjA3.js} +6 -6
- package/dist/{CommentsSidebar-C8BLy3Pr.js → CommentsSidebar-CdRCCSDD.js} +15 -15
- package/dist/{CountdownBlock-Bs2Q_bFX.js → CountdownBlock-DuyvGcr8.js} +3 -3
- package/dist/{CountdownToolbar-Cic6cdOw.js → CountdownToolbar-CBE9wRaV.js} +4 -4
- package/dist/{DesignReferenceSidebar-k-26nkJI.js → DesignReferenceSidebar-CgYkySre.js} +11 -11
- package/dist/{IssuesPanel-NPzwTPYW.js → IssuesPanel-Do7RLXsP.js} +8 -8
- package/dist/{LoadingTrack-DH3OEM3z.js → LoadingTrack-BexpNuTV.js} +1 -1
- package/dist/{MergeTagModeToggle-DEGyx8tw.js → MergeTagModeToggle-hAJgIKhw.js} +6 -6
- package/dist/{MergeTagSuggestion-DvisJ9im.js → MergeTagSuggestion-BJ43ihWR.js} +34 -32
- package/dist/{NumberWithSuffix-CuHCIwSn.js → NumberWithSuffix-D37ZWiZh.js} +2 -2
- package/dist/{ParagraphEditor-DK_IPi9H.js → ParagraphEditor-DBG63S70.js} +74 -80
- package/dist/{RichTextEditorContent-DznIQcdY.js → RichTextEditorContent-fbYJXAio.js} +8 -8
- package/dist/{SaveBlockDialog-R9PbMsy-.js → SaveBlockDialog-Dq9UVihi.js} +10 -10
- package/dist/{SavedBlocksBrowserModal-ttPAklPE.js → SavedBlocksBrowserModal-CtFG4zeV.js} +11 -11
- package/dist/{SavedBlocksPanels-BCwQgKLF.js → SavedBlocksPanels-DNVdso_W.js} +2 -2
- package/dist/{SavedBlocksPickBar-DD5Ddv9t.js → SavedBlocksPickBar-Cv4dIpP-.js} +4 -4
- package/dist/{SnapshotHistory-BXSTGgBh.js → SnapshotHistory-DsOtMHOV.js} +10 -10
- package/dist/{TemplateScoringPanel-Ue6Dfnjb.js → TemplateScoringPanel-BZUsb3FD.js} +15 -15
- package/dist/{TestEmailModal-KPFc5oSv.js → TestEmailModal-CIwqtGfr.js} +11 -11
- package/dist/{TestEmailPanel-b8GHTrnE.js → TestEmailPanel-l6LDmBGM.js} +2 -2
- package/dist/{TitleEditor-8ln7UBr_.js → TitleEditor-imoBUynh.js} +12 -12
- package/dist/{TplModal-D_FA3Wm3.js → TplModal-DDDHcoir.js} +5 -5
- package/dist/{blockTypeIcons-BoZeK6l7.js → blockTypeIcons-CfLN4A6t.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiChatSidebar-D6jGwb4y.js → AiChatSidebar-BHqNxNcX.js} +35 -35
- package/dist/cdn/chunks/{AiChatSidebar-D6jGwb4y.js.map → AiChatSidebar-BHqNxNcX.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-BtEcjxLL.js → AiFeatureMenu-D2AIDwEG.js} +13 -13
- package/dist/cdn/chunks/{AiFeatureMenu-BtEcjxLL.js.map → AiFeatureMenu-D2AIDwEG.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-dnqZk6pl.js → BlockIssueBadge-BEEY9o2o.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-dnqZk6pl.js.map → BlockIssueBadge-BEEY9o2o.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-D8pfTFWi.js → BlockPreviewCanvas-DH5ULGkw.js} +22 -22
- package/dist/cdn/chunks/{BlockPreviewCanvas-D8pfTFWi.js.map → BlockPreviewCanvas-DH5ULGkw.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BJ4-pPAl.js → CloudEditor-C0nB1JfD.js} +67 -67
- package/dist/cdn/chunks/{CloudEditor-BJ4-pPAl.js.map → CloudEditor-C0nB1JfD.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-SeUOuLeJ.js → CollaboratorBar-f6Ni7KNH.js} +12 -12
- package/dist/cdn/chunks/{CollaboratorBar-SeUOuLeJ.js.map → CollaboratorBar-f6Ni7KNH.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-yxvrro60.js → ColorPicker-W_UyiVGc.js} +131 -131
- package/dist/cdn/chunks/{ColorPicker-yxvrro60.js.map → ColorPicker-W_UyiVGc.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-FPbg-FuU.js → CommentsSidebar-BLRZRSSC.js} +112 -112
- package/dist/cdn/chunks/{CommentsSidebar-FPbg-FuU.js.map → CommentsSidebar-BLRZRSSC.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-D2Oth7YY.js → CountdownBlock-vLTkTI9e.js} +11 -11
- package/dist/cdn/chunks/{CountdownBlock-D2Oth7YY.js.map → CountdownBlock-vLTkTI9e.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BNgTBQGB.js → CountdownToolbar-DPjcgcVR.js} +41 -41
- package/dist/cdn/chunks/{CountdownToolbar-BNgTBQGB.js.map → CountdownToolbar-DPjcgcVR.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-ChB_HBK1.js → DesignReferenceSidebar-DBoEBKxQ.js} +34 -34
- package/dist/cdn/chunks/{DesignReferenceSidebar-ChB_HBK1.js.map → DesignReferenceSidebar-DBoEBKxQ.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CjiZ8cLW.js → IssuesPanel-DKTS4QVb.js} +32 -32
- package/dist/cdn/chunks/{IssuesPanel-CjiZ8cLW.js.map → IssuesPanel-DKTS4QVb.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-CiNg9s16.js → LoadingTrack-C52ZGL5q.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-CiNg9s16.js.map → LoadingTrack-C52ZGL5q.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-CiYbOKzd.js → MergeTagModeToggle-D8iKvz7v.js} +28 -28
- package/dist/cdn/chunks/{MergeTagModeToggle-CiYbOKzd.js.map → MergeTagModeToggle-D8iKvz7v.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-CvZLI6Np.js → MergeTagSuggestion-Dn8dExNa.js} +18 -18
- package/dist/cdn/chunks/{MergeTagSuggestion-CvZLI6Np.js.map → MergeTagSuggestion-Dn8dExNa.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-vVwCWrd_.js → NumberWithSuffix-BXrRdfq1.js} +22 -22
- package/dist/cdn/chunks/{NumberWithSuffix-vVwCWrd_.js.map → NumberWithSuffix-BXrRdfq1.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-o4hs9mgy.js → ParagraphEditor-Cuc83Blj.js} +58 -58
- package/dist/cdn/chunks/{ParagraphEditor-o4hs9mgy.js.map → ParagraphEditor-Cuc83Blj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BAriGldd.js → RichTextEditorContent-DtL49Jpo.js} +20 -20
- package/dist/cdn/chunks/{RichTextEditorContent-BAriGldd.js.map → RichTextEditorContent-DtL49Jpo.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-D3-oILb5.js → SaveBlockDialog-B8KHhVkI.js} +50 -50
- package/dist/cdn/chunks/{SaveBlockDialog-D3-oILb5.js.map → SaveBlockDialog-B8KHhVkI.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-jMnNd4wn.js → SavedBlocksBrowserModal-B-sjsIJv.js} +62 -62
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-jMnNd4wn.js.map → SavedBlocksBrowserModal-B-sjsIJv.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BDd8FH6l.js → SavedBlocksPanels-Bb-eDMAh.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-BDd8FH6l.js.map → SavedBlocksPanels-Bb-eDMAh.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BNkLe8In.js → SavedBlocksPickBar-GudFfXa4.js} +12 -12
- package/dist/cdn/chunks/{SavedBlocksPickBar-BNkLe8In.js.map → SavedBlocksPickBar-GudFfXa4.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-CYVi7fvQ.js → SnapshotHistory-Srpzt2na.js} +26 -26
- package/dist/cdn/chunks/{SnapshotHistory-CYVi7fvQ.js.map → SnapshotHistory-Srpzt2na.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-D0KrxVnr.js → TemplateScoringPanel-NucRtAP0.js} +42 -42
- package/dist/cdn/chunks/{TemplateScoringPanel-D0KrxVnr.js.map → TemplateScoringPanel-NucRtAP0.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-_RbTD787.js → TestEmailModal-DLeoJqaJ.js} +31 -31
- package/dist/cdn/chunks/{TestEmailModal-_RbTD787.js.map → TestEmailModal-DLeoJqaJ.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BAnKtbSu.js → TestEmailPanel-Dr7Dkq2P.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-BAnKtbSu.js.map → TestEmailPanel-Dr7Dkq2P.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-LiUvXGPw.js → TitleEditor-DzYRr18C.js} +35 -35
- package/dist/cdn/chunks/{TitleEditor-LiUvXGPw.js.map → TitleEditor-DzYRr18C.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-C1iguuZz.js → TplModal-byw7-3wg.js} +17 -17
- package/dist/cdn/chunks/{TplModal-C1iguuZz.js.map → TplModal-byw7-3wg.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-FXlMM3PL.js +21 -0
- package/dist/cdn/chunks/{blockTypeIcons-CrPzyP_k.js.map → blockTypeIcons-FXlMM3PL.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-CxNsW3hp.js → cloud-CuItCnN_.js} +4 -4
- package/dist/cdn/chunks/{cloud-CxNsW3hp.js.map → cloud-CuItCnN_.js.map} +1 -1
- package/dist/cdn/chunks/{dist-BLF-S9_A.js → dist-B2HKGHnc.js} +9 -7
- package/dist/cdn/chunks/{dist-BLF-S9_A.js.map → dist-B2HKGHnc.js.map} +1 -1
- package/dist/cdn/chunks/{dist-Dp46rwVY.js → dist-C6z8AjBC.js} +2 -2
- package/dist/cdn/chunks/{dist-Dp46rwVY.js.map → dist-C6z8AjBC.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-BRF_Q_jB.js → draggable-DCs9qL-b.js} +114 -92
- package/dist/cdn/chunks/{draggable-BRF_Q_jB.js.map → draggable-DCs9qL-b.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-yNQlgLNE.js → extensions-B7laxHjs.js} +22 -22
- package/dist/cdn/chunks/{extensions-yNQlgLNE.js.map → extensions-B7laxHjs.js.map} +1 -1
- package/dist/cdn/chunks/{htmlparser-CPhs2cYE.js → htmlparser-DTML8Gvz.js} +8 -7
- package/dist/cdn/chunks/{htmlparser-CPhs2cYE.js.map → htmlparser-DTML8Gvz.js.map} +1 -1
- package/dist/cdn/chunks/{icons-DN008liP.js → icons-CvYN6zrM.js} +74 -80
- package/dist/cdn/chunks/icons-CvYN6zrM.js.map +1 -0
- package/dist/cdn/chunks/{keys-CZOBuCQd.js → keys-Cmc2Yl3D.js} +2 -2
- package/dist/cdn/chunks/{keys-CZOBuCQd.js.map → keys-Cmc2Yl3D.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-CZaQe87t.js → liquid.browser-UlAOKBjI.js} +120 -110
- package/dist/cdn/chunks/liquid.browser-UlAOKBjI.js.map +1 -0
- package/dist/cdn/chunks/{pusher-kUlkqMvR.js → pusher-BbIHJKf3.js} +29 -25
- package/dist/cdn/chunks/{pusher-kUlkqMvR.js.map → pusher-BbIHJKf3.js.map} +1 -1
- package/dist/cdn/chunks/{src-uc_Mb_yH.js → src-BYKYmEOD.js} +7 -6
- package/dist/cdn/chunks/src-BYKYmEOD.js.map +1 -0
- package/dist/cdn/chunks/{src-D_3bXt7-.js → src-Bi-Qhtfs.js} +3 -3
- package/dist/cdn/chunks/{src-D_3bXt7-.js.map → src-Bi-Qhtfs.js.map} +1 -1
- package/dist/cdn/chunks/{src-B2LpXMIw.js → src-C0N74uvF.js} +280 -277
- package/dist/cdn/chunks/{src-B2LpXMIw.js.map → src-C0N74uvF.js.map} +1 -1
- package/dist/cdn/chunks/{src-CZjSXPYq.js → src-EKTTBQ0y.js} +3 -2
- package/dist/cdn/chunks/src-EKTTBQ0y.js.map +1 -0
- package/dist/cdn/chunks/{styles-BzP13r-I.js → styles-C7s-VtJi.js} +1112 -1094
- package/dist/cdn/chunks/styles-C7s-VtJi.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-CgwK_fKJ.js → tiptap-C44S1Cmh.js} +3681 -2965
- package/dist/cdn/chunks/tiptap-C44S1Cmh.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-Ctyt3GgH.js → useAliveFlag-Dxwgo6P4.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-Ctyt3GgH.js.map → useAliveFlag-Dxwgo6P4.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-CML0BxqX.js → useCloudI18n-8wkJtuJD.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-CML0BxqX.js.map → useCloudI18n-8wkJtuJD.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-CTYH6u4r.js → useEditorCore-C_nUXiph.js} +275 -275
- package/dist/cdn/chunks/useEditorCore-C_nUXiph.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-aRMtgYRj.js → useI18n-UMs0F71x.js} +3 -3
- package/dist/cdn/chunks/{useI18n-aRMtgYRj.js.map → useI18n-UMs0F71x.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-8a8BnIZp.js → useMergeTag-CPa_9VOq.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-8a8BnIZp.js.map → useMergeTag-CPa_9VOq.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-Dm1jv3y5.js → usePopoverPosition-cf8Y-ynK.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-Dm1jv3y5.js.map → usePopoverPosition-cf8Y-ynK.js.map} +1 -1
- package/dist/cdn/editor.js +47 -47
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-Bqimqf7l.js → check-On4TSac-.js} +1 -1
- package/dist/{chevron-down-CYOoeGBd.js → chevron-down-69EiBGoB.js} +1 -1
- package/dist/{chevron-up-DYknsfm0.js → chevron-up-Dh3MG1Dw.js} +1 -1
- package/dist/{circle-alert-6q_jgtv_.js → circle-alert-cilwzafX.js} +1 -1
- package/dist/{clock-CnadSSTD.js → clock-Dt0APH92.js} +1 -1
- package/dist/{cloud-BJLg_SlM.js → cloud-C7-FhzMc.js} +2 -2
- package/dist/{createLucideIcon-D7GKhya2.js → createLucideIcon-C8WzBYCv.js} +3 -3
- package/dist/dist-6YJAWMuf.js +5 -0
- package/dist/dist-8vlm9kfO.js +5 -0
- package/dist/{dist-DSIgxp0v.js → dist-BImfm-46.js} +2 -2
- package/dist/{dist-DDfXShPv.js → dist-BpKxrUi2.js} +1 -1
- package/dist/{dist-B6Px6GPj.js → dist-C08jiemd.js} +7 -7
- package/dist/{dist-BxbTVeY0.js → dist-C27SeFL5.js} +15 -15
- package/dist/{dist-nR6mxyqI.js → dist-CYx-E82k.js} +2 -2
- package/dist/{dist-CcQFPJMF.js → dist-ChYLhoJ4.js} +2300 -1704
- package/dist/{dist-C31bMR4x.js → dist-Cl8J0IES.js} +270 -182
- package/dist/{dist-CQ0fVBQ3.js → dist-D5zCZFdU.js} +2 -1
- package/dist/{dist-Dx71pluS.js → dist-DMJRSouD.js} +470 -440
- package/dist/{dist-DyCHUyRR.js → dist-DfpeSdmE.js} +2 -2
- package/dist/{dist-DX4x6mQ1.js → dist-M7m1lYRe.js} +47 -47
- package/dist/{dist-CRH880TV.js → dist-g6cbzhZW.js} +2 -2
- package/dist/{extensions-CbiWtzS6.js → extensions-CxwhoG8v.js} +19 -19
- package/dist/{image-up-BfukboIn.js → image-up-Ceggh_R3.js} +1 -1
- package/dist/{info-DSYRzSZo.js → info-DO5odBcZ.js} +1 -1
- package/dist/{keys-BI6VSUh4.js → keys-fwF3qZax.js} +1 -1
- package/dist/{liquid.browser-BECWFL5Z.js → liquid.browser-B-rGrnrQ.js} +119 -109
- package/dist/{list-checks-URZOyLhr.js → list-checks-BSkPKbuI.js} +1 -1
- package/dist/{loader-circle-GADaYcyQ.js → loader-circle-bO7o7_HD.js} +1 -1
- package/dist/{message-circle-B62fdo0b.js → message-circle-BEkAk65X.js} +1 -1
- package/dist/{pencil-BGwkOpD_.js → pencil-t6m0EtKL.js} +1 -1
- package/dist/{refresh-cw-Z4wXfduO.js → refresh-cw-CkOYVzK5.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-BkOsapVg.js → runtime-dom.esm-bundler-CepEmvwF.js} +13 -10
- package/dist/{scan-line-D8Oh5xos.js → scan-line-DwSVj25O.js} +1 -1
- package/dist/{send-BYp4k38T.js → send-CWsWN8PQ.js} +1 -1
- package/dist/{shield-check-Cm0RePnW.js → shield-check-qje8Kufw.js} +1 -1
- package/dist/{sparkles-BHEE-vRD.js → sparkles-DumaWRW-.js} +1 -1
- package/dist/{styles-B0MEBpOK.js → styles-C_slTGwp.js} +454 -436
- package/dist/templatical-editor.js +11 -11
- package/dist/{text-align-start-CHrg3vK8.js → text-align-start-Ir8Ah4mT.js} +1 -1
- package/dist/{trash-2-BoNT8wbq.js → trash-2-CklAFCmO.js} +1 -1
- package/dist/{triangle-alert-CiN0ssB3.js → triangle-alert-BBi4n93g.js} +1 -1
- package/dist/{upload-WvZGBySw.js → upload-sVqqppuv.js} +1 -1
- package/dist/{useAliveFlag-eT67QCMf.js → useAliveFlag-cvyBxHp7.js} +1 -1
- package/dist/{useCloudI18n-KgIWl-IE.js → useCloudI18n-DKVm6PCa.js} +2 -2
- package/dist/{useEditorCore-BMbxdUbY.js → useEditorCore-r4gWzCBA.js} +893 -893
- package/dist/{useI18n-BkHfCWC6.js → useI18n-DoVKdCTH.js} +2 -2
- package/dist/{useMergeTag-CZ4XYAxu.js → useMergeTag-C-_WxrgL.js} +3 -3
- package/dist/{usePopoverPosition-D93u-EZm.js → usePopoverPosition-C0dPEF4X.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-0R1UhmZB.js → vue.runtime.esm-bundler-D1diBMsm.js} +119 -95
- package/dist/{x-B4WnJVRx.js → x-Mby7KlhS.js} +1 -1
- package/package.json +23 -23
- package/dist/cdn/chunks/blockTypeIcons-CrPzyP_k.js +0 -21
- package/dist/cdn/chunks/icons-DN008liP.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-CZaQe87t.js.map +0 -1
- package/dist/cdn/chunks/src-CZjSXPYq.js.map +0 -1
- package/dist/cdn/chunks/src-uc_Mb_yH.js.map +0 -1
- package/dist/cdn/chunks/styles-BzP13r-I.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CgwK_fKJ.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CTYH6u4r.js.map +0 -1
- package/dist/dist-CkPvZCld.js +0 -5
- package/dist/dist-iCEDH3cC.js +0 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { H as e, M as t, O as n, P as r, V as i, Z as a, ct as
|
|
2
|
-
import { G as b, d as ne, g as re, i as ie } from "./keys-
|
|
3
|
-
import { t as ae } from "./useI18n-
|
|
4
|
-
import { It as oe,
|
|
1
|
+
import { H as e, M as t, O as n, P as r, V as i, Z as a, ct as ee, f as o, g as s, h as c, it as l, lt as u, m as d, n as f, o as p, p as m, st as h, u as g, v as te, x as _, y as v, z as y } from "./draggable-DCs9qL-b.js";
|
|
2
|
+
import { G as b, d as ne, g as re, i as ie } from "./keys-Cmc2Yl3D.js";
|
|
3
|
+
import { t as ae } from "./useI18n-UMs0F71x.js";
|
|
4
|
+
import { It as oe, K as x, L as se, Lt as ce, M as S, Nt as le, d as C, it as w, jt as ue, n as de, tt as T } from "./icons-CvYN6zrM.js";
|
|
5
5
|
import { t as E } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
|
-
import { n as fe } from "./useCloudI18n-
|
|
6
|
+
import { n as fe } from "./useCloudI18n-8wkJtuJD.js";
|
|
7
7
|
import { t as pe } from "./formatRelativeTime-CtUU-QZ8.js";
|
|
8
8
|
//#region src/cloud/components/CommentsSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var me = {
|
|
@@ -71,7 +71,7 @@ var me = {
|
|
|
71
71
|
props: { visible: { type: Boolean } },
|
|
72
72
|
emits: ["close", "filterBlock"],
|
|
73
73
|
setup(_, { expose: E, emit: D }) {
|
|
74
|
-
let xt = _, O = D, { format: k } = ae(), { t: A } = fe(), j = b(re, "CommentsSidebar"), St = b(ie, "CommentsSidebar"), M = b(ne, "CommentsSidebar"), N = a("unresolved"), P = a(null), F = a(""), I = a(null), L = a(""), R = a(null), z = a(""), B = a(/* @__PURE__ */ new Set()), V = a(null), H = a(null), Ct =
|
|
74
|
+
let xt = _, O = D, { format: k } = ae(), { t: A } = fe(), j = b(re, "CommentsSidebar"), St = b(ie, "CommentsSidebar"), M = b(ne, "CommentsSidebar"), N = a("unresolved"), P = a(null), F = a(""), I = a(null), L = a(""), R = a(null), z = a(""), B = a(/* @__PURE__ */ new Set()), V = a(null), H = a(null), Ct = o(() => St.userConfig?.id ?? null), wt = o(() => {
|
|
75
75
|
let e = /* @__PURE__ */ new Set();
|
|
76
76
|
for (let t of j.content.value.blocks) if (e.add(t.id), t.type === "section") for (let n of t.children) for (let t of n) e.add(t.id);
|
|
77
77
|
return e;
|
|
@@ -79,7 +79,7 @@ var me = {
|
|
|
79
79
|
function Tt(e) {
|
|
80
80
|
return e ? !wt.value.has(e) : !1;
|
|
81
81
|
}
|
|
82
|
-
let Et =
|
|
82
|
+
let Et = o(() => N.value !== "block" || !P.value ? !1 : !(j.savedBlockIds?.value.has(P.value) ?? !0)), U = o(() => {
|
|
83
83
|
let e = M.comments.value;
|
|
84
84
|
return N.value === "unresolved" ? e = e.filter((e) => !e.resolved_at) : N.value === "block" && P.value && (e = e.filter((e) => e.block_id === P.value)), e;
|
|
85
85
|
});
|
|
@@ -166,242 +166,242 @@ var me = {
|
|
|
166
166
|
"leave-from-class": "tpl:translate-x-0",
|
|
167
167
|
"leave-to-class": "tpl:translate-x-full"
|
|
168
168
|
}, {
|
|
169
|
-
default: i(() => [_.visible ? (t(),
|
|
170
|
-
|
|
171
|
-
v(
|
|
169
|
+
default: i(() => [_.visible ? (t(), s("div", me, [
|
|
170
|
+
m("div", he, [m("div", ge, [
|
|
171
|
+
v(l(T), {
|
|
172
172
|
size: 13,
|
|
173
173
|
"stroke-width": 2
|
|
174
174
|
}),
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
]),
|
|
175
|
+
m("span", null, u(l(A).comments.title), 1),
|
|
176
|
+
l(M).unresolvedCount.value > 0 ? (t(), s("span", _e, u(l(M).unresolvedCount.value), 1)) : c("", !0)
|
|
177
|
+
]), m("button", {
|
|
178
178
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
179
179
|
onClick: a[0] ||= (e) => O("close")
|
|
180
|
-
}, [v(
|
|
180
|
+
}, [v(l(de), {
|
|
181
181
|
size: 14,
|
|
182
182
|
"stroke-width": 2
|
|
183
183
|
})])]),
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
class:
|
|
184
|
+
m("div", ve, [
|
|
185
|
+
m("button", {
|
|
186
|
+
class: h(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150", N.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
|
|
187
187
|
onClick: a[1] ||= (e) => W("unresolved")
|
|
188
|
-
},
|
|
189
|
-
|
|
190
|
-
class:
|
|
188
|
+
}, u(l(A).comments.filterUnresolved), 3),
|
|
189
|
+
m("button", {
|
|
190
|
+
class: h(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150", N.value === "all" ? "tpl-comment-filter--active" : ""]),
|
|
191
191
|
onClick: a[2] ||= (e) => W("all")
|
|
192
|
-
},
|
|
193
|
-
|
|
192
|
+
}, u(l(A).comments.filterAll), 3),
|
|
193
|
+
l(j).state.selectedBlockId ? (t(), s("button", {
|
|
194
194
|
key: 0,
|
|
195
|
-
class:
|
|
196
|
-
onClick: a[3] ||= (e) => W("block",
|
|
197
|
-
},
|
|
195
|
+
class: h(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150", N.value === "block" ? "tpl-comment-filter--active" : ""]),
|
|
196
|
+
onClick: a[3] ||= (e) => W("block", l(j).state.selectedBlockId ?? void 0)
|
|
197
|
+
}, u(l(A).comments.filterBlock), 3)) : c("", !0)
|
|
198
198
|
]),
|
|
199
|
-
|
|
199
|
+
m("div", ye, [l(M).isLoading.value ? (t(), s("div", be, [v(l(w), {
|
|
200
200
|
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
201
201
|
size: 24,
|
|
202
202
|
"stroke-width": 2
|
|
203
|
-
})])) : U.value.length === 0 ? (t(),
|
|
203
|
+
})])) : U.value.length === 0 ? (t(), s("div", xe, [v(l(T), {
|
|
204
204
|
size: 32,
|
|
205
205
|
"stroke-width": 1.5,
|
|
206
206
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
207
|
-
}),
|
|
207
|
+
}), m("p", Se, u(N.value === "all" ? l(A).comments.noCommentsHint : l(A).comments.noComments), 1)])) : (t(), s("div", Ce, [(t(!0), s(g, null, r(U.value, (n) => (t(), s("div", {
|
|
208
208
|
key: n.id,
|
|
209
209
|
class: "tpl-comment-thread"
|
|
210
210
|
}, [
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
n.updated_at === n.created_at ?
|
|
216
|
-
]),
|
|
217
|
-
|
|
211
|
+
m("div", we, [
|
|
212
|
+
m("div", Te, [m("div", Ee, [
|
|
213
|
+
m("span", De, u($(n) ? l(A).comments.ownedByYou : n.author_name), 1),
|
|
214
|
+
m("span", Oe, u(Mt(n.created_at)), 1),
|
|
215
|
+
n.updated_at === n.created_at ? c("", !0) : (t(), s("span", ke, " (" + u(l(A).comments.edited) + ") ", 1))
|
|
216
|
+
]), m("div", Ae, [
|
|
217
|
+
m("button", {
|
|
218
218
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
|
|
219
|
-
title: n.resolved_at ?
|
|
219
|
+
title: n.resolved_at ? l(A).comments.unresolve : l(A).comments.resolve,
|
|
220
220
|
onClick: (e) => jt(n.id)
|
|
221
|
-
}, [v(
|
|
221
|
+
}, [v(l(ue), {
|
|
222
222
|
size: 13,
|
|
223
223
|
"stroke-width": 2,
|
|
224
224
|
class: "tpl-resolve-icon",
|
|
225
225
|
style: ee({ color: n.resolved_at ? "var(--tpl-primary)" : void 0 })
|
|
226
226
|
}, null, 8, ["style"])], 8, je),
|
|
227
|
-
$(n) ? (t(),
|
|
227
|
+
$(n) ? (t(), s("button", {
|
|
228
228
|
key: 0,
|
|
229
229
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
|
|
230
|
-
title:
|
|
230
|
+
title: l(A).comments.edit,
|
|
231
231
|
onClick: (e) => G(n)
|
|
232
|
-
}, [v(
|
|
232
|
+
}, [v(l(x), {
|
|
233
233
|
size: 12,
|
|
234
234
|
"stroke-width": 2
|
|
235
|
-
})], 8, Me)) :
|
|
236
|
-
$(n) ? (t(),
|
|
235
|
+
})], 8, Me)) : c("", !0),
|
|
236
|
+
$(n) ? (t(), s("button", {
|
|
237
237
|
key: 1,
|
|
238
238
|
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
|
|
239
|
-
title:
|
|
239
|
+
title: l(A).comments.delete,
|
|
240
240
|
onClick: (e) => q(n.id)
|
|
241
|
-
}, [v(
|
|
241
|
+
}, [v(l(C), {
|
|
242
242
|
size: 12,
|
|
243
243
|
"stroke-width": 2
|
|
244
|
-
})], 8, Ne)) :
|
|
244
|
+
})], 8, Ne)) : c("", !0)
|
|
245
245
|
])]),
|
|
246
246
|
v(f, { name: "tpl-resolve" }, {
|
|
247
|
-
default: i(() => [n.resolved_at ? (t(),
|
|
247
|
+
default: i(() => [n.resolved_at ? (t(), s("div", Pe, [v(l(ce), {
|
|
248
248
|
size: 10,
|
|
249
249
|
"stroke-width": 2.5
|
|
250
|
-
}),
|
|
250
|
+
}), m("span", null, u(l(k)(l(A).comments.resolvedBy, { name: n.resolved_by_name ?? "" })), 1)])) : c("", !0)]),
|
|
251
251
|
_: 2
|
|
252
252
|
}, 1024),
|
|
253
|
-
n.block_id && Tt(n.block_id) ? (t(),
|
|
253
|
+
n.block_id && Tt(n.block_id) ? (t(), s("span", Fe, u(l(A).comments.missingBlock), 1)) : n.block_id ? (t(), s("button", {
|
|
254
254
|
key: 1,
|
|
255
255
|
class: "tpl:mt-1 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
|
|
256
|
-
onClick: (e) =>
|
|
257
|
-
}, " Block ", 8, Ie)) :
|
|
258
|
-
R.value === n.id ? (t(),
|
|
256
|
+
onClick: (e) => l(j).selectBlock(n.block_id ?? "")
|
|
257
|
+
}, " Block ", 8, Ie)) : c("", !0),
|
|
258
|
+
R.value === n.id ? (t(), s("div", Le, [e(m("textarea", {
|
|
259
259
|
"onUpdate:modelValue": a[4] ||= (e) => z.value = e,
|
|
260
260
|
class: "tpl:w-full tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
261
261
|
rows: "3",
|
|
262
262
|
onKeydown: (e) => Ft(e, n.id)
|
|
263
|
-
}, null, 40, Re), [[p, z.value]]),
|
|
263
|
+
}, null, 40, Re), [[p, z.value]]), m("div", ze, [m("button", {
|
|
264
264
|
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
|
|
265
|
-
disabled: !z.value.trim() ||
|
|
265
|
+
disabled: !z.value.trim() || l(M).isSubmitting.value,
|
|
266
266
|
onClick: (e) => Z(n.id)
|
|
267
|
-
},
|
|
267
|
+
}, u(l(A).comments.save), 9, Be), m("button", {
|
|
268
268
|
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
269
269
|
onClick: a[5] ||= (e) => K()
|
|
270
|
-
},
|
|
271
|
-
V.value === n.id ? (t(),
|
|
272
|
-
|
|
273
|
-
|
|
270
|
+
}, u(l(A).comments.cancel), 1)])])) : (t(), s("p", Ve, u(n.body), 1)),
|
|
271
|
+
V.value === n.id ? (t(), s("div", He, [
|
|
272
|
+
m("span", Ue, u(l(A).comments.deleteConfirm), 1),
|
|
273
|
+
m("button", {
|
|
274
274
|
class: "tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-danger)] tpl:text-[var(--tpl-bg)]",
|
|
275
275
|
onClick: (e) => Q(n.id)
|
|
276
|
-
},
|
|
277
|
-
|
|
276
|
+
}, u(l(A).comments.delete), 9, We),
|
|
277
|
+
m("button", {
|
|
278
278
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
279
279
|
onClick: a[6] ||= (e) => J()
|
|
280
|
-
},
|
|
281
|
-
])) :
|
|
282
|
-
R.value !== n.id && V.value !== n.id ? (t(),
|
|
280
|
+
}, u(l(A).comments.cancel), 1)
|
|
281
|
+
])) : c("", !0),
|
|
282
|
+
R.value !== n.id && V.value !== n.id ? (t(), s("div", Ge, [m("button", {
|
|
283
283
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
|
|
284
|
-
title:
|
|
284
|
+
title: l(A).comments.reply,
|
|
285
285
|
onClick: (e) => kt(n.id)
|
|
286
|
-
}, [v(
|
|
286
|
+
}, [v(l(se), {
|
|
287
287
|
size: 13,
|
|
288
288
|
"stroke-width": 2,
|
|
289
289
|
class: "tpl:text-[var(--tpl-primary)]"
|
|
290
|
-
})], 8, Ke), (n.replies?.length ?? 0) > 0 ? (t(),
|
|
290
|
+
})], 8, Ke), (n.replies?.length ?? 0) > 0 ? (t(), s("button", {
|
|
291
291
|
key: 0,
|
|
292
292
|
class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:text-[11px] tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
293
293
|
onClick: (e) => Ot(n.id)
|
|
294
|
-
}, [B.value.has(n.id) ? (t(), d(
|
|
294
|
+
}, [B.value.has(n.id) ? (t(), d(l(le), {
|
|
295
295
|
key: 0,
|
|
296
296
|
size: 11,
|
|
297
297
|
"stroke-width": 2
|
|
298
|
-
})) : (t(), d(
|
|
298
|
+
})) : (t(), d(l(oe), {
|
|
299
299
|
key: 1,
|
|
300
300
|
size: 11,
|
|
301
301
|
"stroke-width": 2
|
|
302
|
-
})), te(" " +
|
|
302
|
+
})), te(" " + u((n.replies?.length ?? 0) === 1 ? l(k)(l(A).comments.replyOne, { count: String(n.replies?.length ?? 0) }) : l(k)(l(A).comments.replyMany, { count: String(n.replies?.length ?? 0) })), 1)], 8, qe)) : c("", !0)])) : c("", !0)
|
|
303
303
|
]),
|
|
304
304
|
v(f, { name: "tpl-replies" }, {
|
|
305
|
-
default: i(() => [B.value.has(n.id) && (n.replies?.length ?? 0) > 0 ? (t(),
|
|
305
|
+
default: i(() => [B.value.has(n.id) && (n.replies?.length ?? 0) > 0 ? (t(), s("div", Je, [(t(!0), s(g, null, r(n.replies, (r, i) => (t(), s("div", {
|
|
306
306
|
key: r.id,
|
|
307
|
-
class:
|
|
307
|
+
class: h(["tpl-comment-reply-card tpl:relative tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-2.5", i < (n.replies?.length ?? 0) - 1 ? "tpl:mb-2" : ""])
|
|
308
308
|
}, [
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
r.updated_at === r.created_at ?
|
|
313
|
-
]),
|
|
309
|
+
m("div", Ye, [m("div", Xe, [
|
|
310
|
+
m("span", Ze, u($(r) ? l(A).comments.ownedByYou : r.author_name), 1),
|
|
311
|
+
m("span", Qe, u(Mt(r.created_at)), 1),
|
|
312
|
+
r.updated_at === r.created_at ? c("", !0) : (t(), s("span", $e, " (" + u(l(A).comments.edited) + ") ", 1))
|
|
313
|
+
]), m("div", et, [$(r) ? (t(), s("button", {
|
|
314
314
|
key: 0,
|
|
315
315
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
|
|
316
|
-
title:
|
|
316
|
+
title: l(A).comments.edit,
|
|
317
317
|
onClick: (e) => G(r)
|
|
318
|
-
}, [v(
|
|
318
|
+
}, [v(l(x), {
|
|
319
319
|
size: 11,
|
|
320
320
|
"stroke-width": 2
|
|
321
|
-
})], 8, tt)) :
|
|
321
|
+
})], 8, tt)) : c("", !0), $(r) ? (t(), s("button", {
|
|
322
322
|
key: 1,
|
|
323
323
|
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
|
|
324
|
-
title:
|
|
324
|
+
title: l(A).comments.delete,
|
|
325
325
|
onClick: (e) => q(r.id)
|
|
326
|
-
}, [v(
|
|
326
|
+
}, [v(l(C), {
|
|
327
327
|
size: 11,
|
|
328
328
|
"stroke-width": 2
|
|
329
|
-
})], 8, nt)) :
|
|
330
|
-
R.value === r.id ? (t(),
|
|
329
|
+
})], 8, nt)) : c("", !0)])]),
|
|
330
|
+
R.value === r.id ? (t(), s("div", rt, [e(m("textarea", {
|
|
331
331
|
"onUpdate:modelValue": a[7] ||= (e) => z.value = e,
|
|
332
332
|
class: "tpl:w-full tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
333
333
|
rows: "2",
|
|
334
334
|
onKeydown: (e) => Ft(e, r.id)
|
|
335
|
-
}, null, 40, it), [[p, z.value]]),
|
|
335
|
+
}, null, 40, it), [[p, z.value]]), m("div", at, [m("button", {
|
|
336
336
|
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
|
|
337
|
-
disabled: !z.value.trim() ||
|
|
337
|
+
disabled: !z.value.trim() || l(M).isSubmitting.value,
|
|
338
338
|
onClick: (e) => Z(r.id)
|
|
339
|
-
},
|
|
339
|
+
}, u(l(A).comments.save), 9, ot), m("button", {
|
|
340
340
|
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
341
341
|
onClick: a[8] ||= (e) => K()
|
|
342
|
-
},
|
|
343
|
-
V.value === r.id ? (t(),
|
|
344
|
-
|
|
345
|
-
|
|
342
|
+
}, u(l(A).comments.cancel), 1)])])) : (t(), s("p", st, u(r.body), 1)),
|
|
343
|
+
V.value === r.id ? (t(), s("div", ct, [
|
|
344
|
+
m("span", lt, u(l(A).comments.deleteConfirm), 1),
|
|
345
|
+
m("button", {
|
|
346
346
|
class: "tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-danger)] tpl:text-[var(--tpl-bg)]",
|
|
347
347
|
onClick: (e) => Q(r.id)
|
|
348
|
-
},
|
|
349
|
-
|
|
348
|
+
}, u(l(A).comments.delete), 9, ut),
|
|
349
|
+
m("button", {
|
|
350
350
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
351
351
|
onClick: a[9] ||= (e) => J()
|
|
352
|
-
},
|
|
353
|
-
])) :
|
|
354
|
-
], 2))), 128))])) :
|
|
352
|
+
}, u(l(A).comments.cancel), 1)
|
|
353
|
+
])) : c("", !0)
|
|
354
|
+
], 2))), 128))])) : c("", !0)]),
|
|
355
355
|
_: 2
|
|
356
356
|
}, 1024),
|
|
357
357
|
v(f, { name: "tpl-replies" }, {
|
|
358
|
-
default: i(() => [I.value === n.id ? (t(),
|
|
358
|
+
default: i(() => [I.value === n.id ? (t(), s("div", dt, [m("div", ft, [e(m("textarea", {
|
|
359
359
|
"onUpdate:modelValue": a[10] ||= (e) => L.value = e,
|
|
360
360
|
class: "tpl:flex-1 tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
361
|
-
placeholder:
|
|
361
|
+
placeholder: l(A).comments.replyPlaceholder,
|
|
362
362
|
rows: "2",
|
|
363
363
|
onKeydown: (e) => Pt(e, n.id)
|
|
364
|
-
}, null, 40, pt), [[p, L.value]]),
|
|
364
|
+
}, null, 40, pt), [[p, L.value]]), m("div", mt, [m("button", {
|
|
365
365
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-colors tpl:duration-150 tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
|
|
366
|
-
disabled: !L.value.trim() ||
|
|
366
|
+
disabled: !L.value.trim() || l(M).isSubmitting.value,
|
|
367
367
|
onClick: (e) => X(n.id)
|
|
368
|
-
}, [v(
|
|
368
|
+
}, [v(l(S), {
|
|
369
369
|
size: 14,
|
|
370
370
|
"stroke-width": 2
|
|
371
|
-
})], 8, ht),
|
|
371
|
+
})], 8, ht), m("button", {
|
|
372
372
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
373
373
|
onClick: a[11] ||= (e) => At()
|
|
374
|
-
}, [v(
|
|
374
|
+
}, [v(l(de), {
|
|
375
375
|
size: 14,
|
|
376
376
|
"stroke-width": 2
|
|
377
|
-
})])])])])) :
|
|
377
|
+
})])])])])) : c("", !0)]),
|
|
378
378
|
_: 2
|
|
379
379
|
}, 1024)
|
|
380
380
|
]))), 128))]))]),
|
|
381
|
-
|
|
381
|
+
m("div", gt, [Et.value ? (t(), s("div", _t, u(l(A).comments.saveTemplateFirst), 1)) : (t(), s("div", vt, [e(m("textarea", {
|
|
382
382
|
ref_key: "newCommentInput",
|
|
383
383
|
ref: H,
|
|
384
384
|
"onUpdate:modelValue": a[12] ||= (e) => F.value = e,
|
|
385
385
|
class: "tpl:max-h-24 tpl:min-h-[48px] tpl:flex-1 tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-xs tpl:outline-none tpl:text-[var(--tpl-text)]",
|
|
386
|
-
placeholder:
|
|
387
|
-
disabled:
|
|
386
|
+
placeholder: l(A).comments.placeholder,
|
|
387
|
+
disabled: l(M).isSubmitting.value,
|
|
388
388
|
rows: "2",
|
|
389
389
|
onKeydown: Nt
|
|
390
|
-
}, null, 40, yt), [[p, F.value]]),
|
|
390
|
+
}, null, 40, yt), [[p, F.value]]), m("button", {
|
|
391
391
|
class: "tpl-comments-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:duration-150 tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
|
|
392
|
-
disabled: !F.value.trim() ||
|
|
392
|
+
disabled: !F.value.trim() || l(M).isSubmitting.value,
|
|
393
393
|
onClick: Y
|
|
394
|
-
}, [
|
|
394
|
+
}, [l(M).isSubmitting.value ? (t(), d(l(w), {
|
|
395
395
|
key: 0,
|
|
396
396
|
class: "tpl-spinner",
|
|
397
397
|
size: 16,
|
|
398
398
|
"stroke-width": 2
|
|
399
|
-
})) : (t(), d(
|
|
399
|
+
})) : (t(), d(l(S), {
|
|
400
400
|
key: 1,
|
|
401
401
|
size: 16,
|
|
402
402
|
"stroke-width": 2
|
|
403
403
|
}))], 8, bt)]))])
|
|
404
|
-
])) :
|
|
404
|
+
])) : c("", !0)]),
|
|
405
405
|
_: 1
|
|
406
406
|
}));
|
|
407
407
|
}
|
|
@@ -409,4 +409,4 @@ var me = {
|
|
|
409
409
|
//#endregion
|
|
410
410
|
export { D as default };
|
|
411
411
|
|
|
412
|
-
//# sourceMappingURL=CommentsSidebar-
|
|
412
|
+
//# sourceMappingURL=CommentsSidebar-BLRZRSSC.js.map
|