@templatical/editor 0.25.2 → 0.26.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/{AiChatSidebar-JLsbPnsH.js → AiChatSidebar-B_fwa6zc.js} +8 -8
- package/dist/{AiFeatureMenu-BvA-lViN.js → AiFeatureMenu-BBBKsYD4.js} +4 -4
- package/dist/{BlockIssueBadge-Cf0-GC3o.js → BlockIssueBadge-Buk3_6QF.js} +2 -2
- package/dist/{BlockPreviewCanvas-CnJIM5TO.js → BlockPreviewCanvas-zyyq2de0.js} +1 -1
- package/dist/{CloudEditor-Caq7z4-7.js → CloudEditor-DM3RRCVn.js} +19 -19
- package/dist/{CollaboratorBar-BFz4LgA0.js → CollaboratorBar-Coj8Ebwf.js} +2 -2
- package/dist/{ColorPicker-B5xXWWX5.js → ColorPicker-ClETsjA3.js} +1 -1
- package/dist/{CommentsSidebar-CGihWwn9.js → CommentsSidebar-CdRCCSDD.js} +10 -10
- package/dist/{CountdownToolbar-DpNCZAUI.js → CountdownToolbar-CBE9wRaV.js} +2 -2
- package/dist/{DesignReferenceSidebar-CiIHHiil.js → DesignReferenceSidebar-hDXOvGoV.js} +6 -6
- package/dist/{IssuesPanel-CUkmAC_S.js → IssuesPanel-Do7RLXsP.js} +5 -5
- package/dist/{MergeTagModeToggle-C6nS3qri.js → MergeTagModeToggle-D0t5NHBZ.js} +3 -3
- package/dist/{MergeTagSuggestion-98fAcuM-.js → MergeTagSuggestion-BJ43ihWR.js} +9 -9
- package/dist/{NumberWithSuffix-DB-1GNvx.js → NumberWithSuffix-D37ZWiZh.js} +1 -1
- package/dist/{ParagraphEditor-NgW-T9YV.js → ParagraphEditor-B-CYrQMY.js} +19 -19
- package/dist/{RichTextEditorContent-CN7OVR6u.js → RichTextEditorContent-fbYJXAio.js} +3 -3
- package/dist/{SaveBlockDialog-lgcmhAsO.js → SaveBlockDialog-CoVPZfUv.js} +6 -6
- package/dist/{SavedBlocksBrowserModal-3u247V2z.js → SavedBlocksBrowserModal-DX13xw0O.js} +7 -7
- package/dist/{SavedBlocksPanels-Dh6dABJt.js → SavedBlocksPanels-B7pBiZcc.js} +1 -1
- package/dist/{SavedBlocksPickBar-Bo82D3Qy.js → SavedBlocksPickBar-ZfqXByph.js} +2 -2
- package/dist/{SnapshotHistory-Dsb1i40w.js → SnapshotHistory-BxABntv5.js} +11 -11
- package/dist/{TemplateScoringPanel-Bzd_YSag.js → TemplateScoringPanel-BZUsb3FD.js} +10 -10
- package/dist/{TestEmailModal-DvqDTOcO.js → TestEmailModal-Db4qheuy.js} +7 -7
- package/dist/{TestEmailPanel-BXoVnAqu.js → TestEmailPanel-B-SXSnRg.js} +1 -1
- package/dist/{TitleEditor-DWSi998C.js → TitleEditor-DmoaKooA.js} +8 -8
- package/dist/{TplModal-DKn0h2qe.js → TplModal-Bym-Kf_i.js} +1 -1
- package/dist/{blockTypeIcons-DKlza6aR.js → blockTypeIcons-BnCXsB2I.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiChatSidebar-BY1Iy-e8.js → AiChatSidebar-CFvS4-EZ.js} +35 -35
- package/dist/cdn/chunks/{AiChatSidebar-BY1Iy-e8.js.map → AiChatSidebar-CFvS4-EZ.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-BS4Rek6j.js → AiFeatureMenu-a0gBZiJ9.js} +11 -11
- package/dist/cdn/chunks/{AiFeatureMenu-BS4Rek6j.js.map → AiFeatureMenu-a0gBZiJ9.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BcIQUe_Q.js → BlockIssueBadge-BEEY9o2o.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-BcIQUe_Q.js.map → BlockIssueBadge-BEEY9o2o.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-oND1iXLL.js → BlockPreviewCanvas-C27XK2q0.js} +22 -22
- package/dist/cdn/chunks/{BlockPreviewCanvas-oND1iXLL.js.map → BlockPreviewCanvas-C27XK2q0.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BaqiFbf0.js → CloudEditor-Ddnatfuw.js} +65 -65
- package/dist/cdn/chunks/{CloudEditor-BaqiFbf0.js.map → CloudEditor-Ddnatfuw.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-DF02nTwF.js → CollaboratorBar-C5Xf6Mz9.js} +12 -12
- package/dist/cdn/chunks/{CollaboratorBar-DF02nTwF.js.map → CollaboratorBar-C5Xf6Mz9.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-BXH44v2H.js → ColorPicker-W_UyiVGc.js} +131 -131
- package/dist/cdn/chunks/{ColorPicker-BXH44v2H.js.map → ColorPicker-W_UyiVGc.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-B9bWvvbl.js → CommentsSidebar-BLRZRSSC.js} +112 -112
- package/dist/cdn/chunks/{CommentsSidebar-B9bWvvbl.js.map → CommentsSidebar-BLRZRSSC.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-BTpRd0Hn.js → CountdownBlock-vLTkTI9e.js} +11 -11
- package/dist/cdn/chunks/{CountdownBlock-BTpRd0Hn.js.map → CountdownBlock-vLTkTI9e.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CW10rbWt.js → CountdownToolbar-DPjcgcVR.js} +41 -41
- package/dist/cdn/chunks/{CountdownToolbar-CW10rbWt.js.map → CountdownToolbar-DPjcgcVR.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-BXjH47QC.js → DesignReferenceSidebar-CZiP00JN.js} +28 -28
- package/dist/cdn/chunks/{DesignReferenceSidebar-BXjH47QC.js.map → DesignReferenceSidebar-CZiP00JN.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DStHCHfr.js → IssuesPanel-DKTS4QVb.js} +32 -32
- package/dist/cdn/chunks/{IssuesPanel-DStHCHfr.js.map → IssuesPanel-DKTS4QVb.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-DQowK3MV.js → LoadingTrack-C52ZGL5q.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DQowK3MV.js.map → LoadingTrack-C52ZGL5q.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BCmQg4Qe.js → MergeTagModeToggle-ClGdRNpZ.js} +20 -20
- package/dist/cdn/chunks/{MergeTagModeToggle-BCmQg4Qe.js.map → MergeTagModeToggle-ClGdRNpZ.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-BgExdloL.js → MergeTagSuggestion-Dn8dExNa.js} +18 -18
- package/dist/cdn/chunks/{MergeTagSuggestion-BgExdloL.js.map → MergeTagSuggestion-Dn8dExNa.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-BANVbpT0.js → NumberWithSuffix-BXrRdfq1.js} +22 -22
- package/dist/cdn/chunks/{NumberWithSuffix-BANVbpT0.js.map → NumberWithSuffix-BXrRdfq1.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DqilB4_f.js → ParagraphEditor-BNc146Pp.js} +43 -43
- package/dist/cdn/chunks/{ParagraphEditor-DqilB4_f.js.map → ParagraphEditor-BNc146Pp.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BeJx4LVH.js → RichTextEditorContent-DtL49Jpo.js} +20 -20
- package/dist/cdn/chunks/{RichTextEditorContent-BeJx4LVH.js.map → RichTextEditorContent-DtL49Jpo.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-Dm31xRZy.js → SaveBlockDialog-ogieDQp7.js} +43 -43
- package/dist/cdn/chunks/{SaveBlockDialog-Dm31xRZy.js.map → SaveBlockDialog-ogieDQp7.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Tp37b4y7.js → SavedBlocksBrowserModal-DSpZcT_T.js} +62 -62
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Tp37b4y7.js.map → SavedBlocksBrowserModal-DSpZcT_T.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-ElerTTa_.js → SavedBlocksPanels-WYrSyf-l.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-ElerTTa_.js.map → SavedBlocksPanels-WYrSyf-l.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-QHJ-Mjx0.js → SavedBlocksPickBar-DGbLBG5P.js} +12 -12
- package/dist/cdn/chunks/{SavedBlocksPickBar-QHJ-Mjx0.js.map → SavedBlocksPickBar-DGbLBG5P.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-jogWGLB-.js → SnapshotHistory-VyL4tJwn.js} +26 -26
- package/dist/cdn/chunks/{SnapshotHistory-jogWGLB-.js.map → SnapshotHistory-VyL4tJwn.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-B2XIOTl-.js → TemplateScoringPanel-NucRtAP0.js} +34 -34
- package/dist/cdn/chunks/{TemplateScoringPanel-B2XIOTl-.js.map → TemplateScoringPanel-NucRtAP0.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BcPjQygV.js → TestEmailModal-DRte11oT.js} +31 -31
- package/dist/cdn/chunks/{TestEmailModal-BcPjQygV.js.map → TestEmailModal-DRte11oT.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-1zxRa00s.js → TestEmailPanel-CpK5t4E3.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-1zxRa00s.js.map → TestEmailPanel-CpK5t4E3.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-DTrmublj.js → TitleEditor-EkDchueW.js} +35 -35
- package/dist/cdn/chunks/{TitleEditor-DTrmublj.js.map → TitleEditor-EkDchueW.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-By50gtwa.js → TplModal-BGLstO3F.js} +17 -17
- package/dist/cdn/chunks/{TplModal-By50gtwa.js.map → TplModal-BGLstO3F.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BhFhHuFt.js → blockTypeIcons-FXlMM3PL.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-BhFhHuFt.js.map → blockTypeIcons-FXlMM3PL.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-B0f7Ub8f.js → cloud-CNpvDuv7.js} +3 -3
- package/dist/cdn/chunks/{cloud-B0f7Ub8f.js.map → cloud-CNpvDuv7.js.map} +1 -1
- package/dist/cdn/chunks/{dist-H51neg3K.js → dist-B2HKGHnc.js} +3 -3
- package/dist/cdn/chunks/{dist-H51neg3K.js.map → dist-B2HKGHnc.js.map} +1 -1
- package/dist/cdn/chunks/{dist-B4VIlp1g.js → dist-C6z8AjBC.js} +2 -2
- package/dist/cdn/chunks/{dist-B4VIlp1g.js.map → dist-C6z8AjBC.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-Z4XXmbPC.js → draggable-DCs9qL-b.js} +2 -2
- package/dist/cdn/chunks/{draggable-Z4XXmbPC.js.map → draggable-DCs9qL-b.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-Dq0D79tq.js → extensions-CZAB08kD.js} +22 -22
- package/dist/cdn/chunks/{extensions-Dq0D79tq.js.map → extensions-CZAB08kD.js.map} +1 -1
- package/dist/cdn/chunks/{icons-C_kRN0_C.js → icons-CvYN6zrM.js} +8 -8
- package/dist/cdn/chunks/{icons-C_kRN0_C.js.map → icons-CvYN6zrM.js.map} +1 -1
- package/dist/cdn/chunks/{keys-DsoX52o_.js → keys-Cmc2Yl3D.js} +2 -2
- package/dist/cdn/chunks/{keys-DsoX52o_.js.map → keys-Cmc2Yl3D.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-DrGys_ek.js → liquid.browser-UlAOKBjI.js} +99 -91
- package/dist/cdn/chunks/liquid.browser-UlAOKBjI.js.map +1 -0
- package/dist/cdn/chunks/{src-CRvTVX4F.js → src-BRRRFqXr.js} +201 -201
- package/dist/cdn/chunks/{src-CRvTVX4F.js.map → src-BRRRFqXr.js.map} +1 -1
- package/dist/cdn/chunks/{src-Aea1Vl1H.js → src-COnW7gMq.js} +123 -123
- package/dist/cdn/chunks/src-COnW7gMq.js.map +1 -0
- package/dist/cdn/chunks/{src-CZjSXPYq.js → src-DsvVSm7Z.js} +221 -166
- package/dist/cdn/chunks/src-DsvVSm7Z.js.map +1 -0
- package/dist/cdn/chunks/{src-_GNJgPcS.js → src-DzH5U9Vm.js} +79 -79
- package/dist/cdn/chunks/{src-_GNJgPcS.js.map → src-DzH5U9Vm.js.map} +1 -1
- package/dist/cdn/chunks/{styles-znpPfrFd.js → styles-DEU_sn3k.js} +935 -917
- package/dist/cdn/chunks/styles-DEU_sn3k.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-C5vzWlHv.js → tiptap-C44S1Cmh.js} +3480 -2806
- package/dist/cdn/chunks/tiptap-C44S1Cmh.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-4IDYQRNu.js → useAliveFlag-Dxwgo6P4.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-4IDYQRNu.js.map → useAliveFlag-Dxwgo6P4.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-D4JpHTPk.js → useCloudI18n-8wkJtuJD.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-D4JpHTPk.js.map → useCloudI18n-8wkJtuJD.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-BMXBmdd8.js → useEditorCore-fyFmWS3D.js} +297 -297
- package/dist/cdn/chunks/useEditorCore-fyFmWS3D.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-BvcEYzrI.js → useI18n-UMs0F71x.js} +3 -3
- package/dist/cdn/chunks/{useI18n-BvcEYzrI.js.map → useI18n-UMs0F71x.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-BSdxMUzg.js → useMergeTag-DjQoCGEz.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-BSdxMUzg.js.map → useMergeTag-DjQoCGEz.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-ig-71caO.js → usePopoverPosition-cf8Y-ynK.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-ig-71caO.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-COV27dGb.js → check-On4TSac-.js} +1 -1
- package/dist/{chevron-down-vsU88vcr.js → chevron-down-69EiBGoB.js} +1 -1
- package/dist/{chevron-up-RrZ0Rjn9.js → chevron-up-Dh3MG1Dw.js} +1 -1
- package/dist/{circle-alert-B6GlHmmi.js → circle-alert-cilwzafX.js} +1 -1
- package/dist/{clock-egOt8zjQ.js → clock-Dt0APH92.js} +1 -1
- package/dist/{cloud-D-2StbvU.js → cloud-4SuOLNTK.js} +1 -1
- package/dist/{createLucideIcon-D6cqT5Pm.js → createLucideIcon-C8WzBYCv.js} +2 -2
- package/dist/dist-6YJAWMuf.js +5 -0
- package/dist/dist-8vlm9kfO.js +5 -0
- package/dist/{dist-DHwnYYx0.js → dist-BImfm-46.js} +2 -2
- package/dist/{dist-CQ0fVBQ3.js → dist-BvYvG5SQ.js} +110 -57
- package/dist/{dist-DzzTB4eE.js → dist-C08jiemd.js} +7 -7
- package/dist/{dist-CqV4XslQ.js → dist-C27SeFL5.js} +15 -15
- package/dist/{dist-MwT7T6Xp.js → dist-CYx-E82k.js} +2 -2
- package/dist/{dist-CHxPjcxA.js → dist-ChYLhoJ4.js} +2143 -1583
- package/dist/{dist-UkG5ZJ1P.js → dist-Cl8J0IES.js} +258 -172
- package/dist/{dist-D4GoAr2g.js → dist-DMJRSouD.js} +464 -436
- package/dist/{dist-GUZZpDK3.js → dist-DfpeSdmE.js} +2 -2
- package/dist/{dist-Du95Y9M3.js → dist-M7m1lYRe.js} +47 -47
- package/dist/{dist-vpuiQ7_Q.js → dist-g6cbzhZW.js} +2 -2
- package/dist/{extensions-y6KjLr9t.js → extensions-Dz5jj0wf.js} +16 -16
- package/dist/{image-up-CycES-MQ.js → image-up-Ceggh_R3.js} +1 -1
- package/dist/{info-BUdvm046.js → info-DO5odBcZ.js} +1 -1
- package/dist/{liquid.browser-Di5zMIEx.js → liquid.browser-B-rGrnrQ.js} +98 -90
- package/dist/{list-checks-BAeuuATD.js → list-checks-BSkPKbuI.js} +1 -1
- package/dist/{loader-circle-L5yuAx_j.js → loader-circle-bO7o7_HD.js} +1 -1
- package/dist/{message-circle-DRdaapVc.js → message-circle-BEkAk65X.js} +1 -1
- package/dist/{pencil-BfErVPf_.js → pencil-t6m0EtKL.js} +1 -1
- package/dist/{refresh-cw-D0PYatER.js → refresh-cw-CkOYVzK5.js} +1 -1
- package/dist/{scan-line-Byi3fJcr.js → scan-line-DwSVj25O.js} +1 -1
- package/dist/{send-DuyNexMY.js → send-CWsWN8PQ.js} +1 -1
- package/dist/{shield-check-BkkN_1qw.js → shield-check-qje8Kufw.js} +1 -1
- package/dist/{sparkles-DAw2sBXk.js → sparkles-DumaWRW-.js} +1 -1
- package/dist/{styles-BzwheHH_.js → styles-DbP2S8Z1.js} +446 -428
- package/dist/templatical-editor.js +9 -9
- package/dist/{text-align-start-Ba3xJKn6.js → text-align-start-Ir8Ah4mT.js} +1 -1
- package/dist/{trash-2-CapEBXBI.js → trash-2-CklAFCmO.js} +1 -1
- package/dist/{triangle-alert-52pdw8jI.js → triangle-alert-BBi4n93g.js} +1 -1
- package/dist/{upload-oAgigC31.js → upload-sVqqppuv.js} +1 -1
- package/dist/{useEditorCore-BhjEMSeE.js → useEditorCore-CbcmGpwp.js} +889 -889
- package/dist/{useMergeTag-DTSOQnyr.js → useMergeTag-B9xG9EJ7.js} +1 -1
- package/dist/{x-DvBgbDuf.js → x-Mby7KlhS.js} +1 -1
- package/package.json +23 -23
- package/dist/cdn/chunks/liquid.browser-DrGys_ek.js.map +0 -1
- package/dist/cdn/chunks/src-Aea1Vl1H.js.map +0 -1
- package/dist/cdn/chunks/src-CZjSXPYq.js.map +0 -1
- package/dist/cdn/chunks/styles-znpPfrFd.js.map +0 -1
- package/dist/cdn/chunks/tiptap-C5vzWlHv.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-BMXBmdd8.js.map +0 -1
- package/dist/dist-B56SufAv.js +0 -5
- package/dist/dist-BQZkRg05.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, 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-
|
|
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
|