@templatical/editor 0.39.1 → 0.39.3

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.
Files changed (171) hide show
  1. package/dist/{AiChatSidebar-pOxCZWz9.js → AiChatSidebar-5qqrS6uy.js} +69 -63
  2. package/dist/{AiFeatureMenu-Bljk6Qjv.js → AiFeatureMenu-BBO_Ojlp.js} +1 -1
  3. package/dist/{BlockPreviewCanvas-DXGjUECG.js → BlockPreviewCanvas-BMC16_QU.js} +1 -1
  4. package/dist/{CloudHeaderExtras-DaocwNmy.js → CloudHeaderExtras-Cg6uF-yQ.js} +1 -1
  5. package/dist/{CloudPanels-CyZAnSJY.js → CloudPanels-D1Gg4qrG.js} +80 -66
  6. package/dist/{CollaboratorBar-C7Zca3g1.js → CollaboratorBar-Cmn0LccS.js} +3 -3
  7. package/dist/{CommentsPanel-CNOb7YCm.js → CommentsPanel-twNhYUqZ.js} +1 -1
  8. package/dist/{CommentsSidebar-VmwjU9va.js → CommentsSidebar-DDO0Qx8U.js} +122 -112
  9. package/dist/{CountdownToolbar-C2kfS6Oy.js → CountdownToolbar-nvHxu8Gu.js} +1 -1
  10. package/dist/DesignReferenceSidebar-C8ohNhOd.js +280 -0
  11. package/dist/{IssuesPanel-DL2Xr14_.js → IssuesPanel-Ck0EGoV5.js} +4 -4
  12. package/dist/{LoadingTrack-C2jKCU2d.js → LoadingTrack-C1Epulqq.js} +1 -1
  13. package/dist/MediaEditModal-D4GEq2md.js +3545 -0
  14. package/dist/{MediaPanels-Cc4UkfG1.js → MediaPanels-sapgKtxu.js} +1 -1
  15. package/dist/{ParagraphEditor-DkkPSexG.js → ParagraphEditor-D6FRxr8Y.js} +2 -2
  16. package/dist/{RestoreVersionDialog-BgueZnZr.js → RestoreVersionDialog--b0qfNaK.js} +1 -1
  17. package/dist/{SaveBlockDialog-BuTuVlLr.js → SaveBlockDialog-C0BdEGeL.js} +6 -6
  18. package/dist/{SavedBlocksBrowserModal-Srhix8BB.js → SavedBlocksBrowserModal-BzDgXtr4.js} +8 -8
  19. package/dist/{SavedBlocksPanels-B2iScCS-.js → SavedBlocksPanels-DN-bDZzy.js} +1 -1
  20. package/dist/SavedBlocksPickBar-pEi9Et8Q.js +53 -0
  21. package/dist/{TemplateScoringPanel-C2Rdlyn6.js → TemplateScoringPanel-B1wcfE0w.js} +62 -56
  22. package/dist/{TestEmailModal-DJ5q_u4N.js → TestEmailModal-maM8SLBV.js} +6 -6
  23. package/dist/{TestEmailPanel-CP24UGst.js → TestEmailPanel-8iAZYpCK.js} +1 -1
  24. package/dist/{TitleEditor-QBBOXtxx.js → TitleEditor-L26QXwna.js} +1 -1
  25. package/dist/{Toolbar-COD2TW20.js → Toolbar-B2kDLFhn.js} +314 -314
  26. package/dist/{TplModal-C8xGjC1l.js → TplModal-DVMS_nAn.js} +1 -1
  27. package/dist/{VersionHistoryPanels-BrK6na4A.js → VersionHistoryPanels-D8f8KvKX.js} +1 -1
  28. package/dist/bundle-stats.json +7 -7
  29. package/dist/{ca-Jx2CDwtn.js → ca-BTf1Zbqb.js} +9 -0
  30. package/dist/{ca-YlPDhElv.js → ca-Bqeygp1_.js} +1 -0
  31. package/dist/cdn/chunks/{AiChatSidebar-CjSEoK4x.js → AiChatSidebar-ctfIU4i0.js} +67 -61
  32. package/dist/cdn/chunks/AiChatSidebar-ctfIU4i0.js.map +1 -0
  33. package/dist/cdn/chunks/{AiFeatureMenu-l0K5TOSn.js → AiFeatureMenu-ByygdH_9.js} +2 -2
  34. package/dist/cdn/chunks/{AiFeatureMenu-l0K5TOSn.js.map → AiFeatureMenu-ByygdH_9.js.map} +1 -1
  35. package/dist/cdn/chunks/{BlockPreviewCanvas-lQrAdgG3.js → BlockPreviewCanvas-DeS7Sa--.js} +2 -2
  36. package/dist/cdn/chunks/{BlockPreviewCanvas-lQrAdgG3.js.map → BlockPreviewCanvas-DeS7Sa--.js.map} +1 -1
  37. package/dist/cdn/chunks/{CloudHeaderExtras-CXNe7Q-4.js → CloudHeaderExtras-BxsMpvVr.js} +2 -2
  38. package/dist/cdn/chunks/{CloudHeaderExtras-CXNe7Q-4.js.map → CloudHeaderExtras-BxsMpvVr.js.map} +1 -1
  39. package/dist/cdn/chunks/{CloudPanels-bHhh9AUA.js → CloudPanels-DmxmqAS_.js} +78 -64
  40. package/dist/cdn/chunks/CloudPanels-DmxmqAS_.js.map +1 -0
  41. package/dist/cdn/chunks/{CollaboratorBar-DgqcaGGI.js → CollaboratorBar-B8ttqAqX.js} +4 -4
  42. package/dist/cdn/chunks/CollaboratorBar-B8ttqAqX.js.map +1 -0
  43. package/dist/cdn/chunks/{CommentsPanel-Cy4TlTHC.js → CommentsPanel-C8ibhaiK.js} +2 -2
  44. package/dist/cdn/chunks/{CommentsPanel-Cy4TlTHC.js.map → CommentsPanel-C8ibhaiK.js.map} +1 -1
  45. package/dist/cdn/chunks/{CommentsSidebar-C7oAP3Mx.js → CommentsSidebar-CybWfZ3V.js} +118 -108
  46. package/dist/cdn/chunks/CommentsSidebar-CybWfZ3V.js.map +1 -0
  47. package/dist/cdn/chunks/{CountdownToolbar-CN9h4nlC.js → CountdownToolbar-DRESXiVD.js} +2 -2
  48. package/dist/cdn/chunks/{CountdownToolbar-CN9h4nlC.js.map → CountdownToolbar-DRESXiVD.js.map} +1 -1
  49. package/dist/cdn/chunks/DesignReferenceSidebar-CtaoY-hl.js +230 -0
  50. package/dist/cdn/chunks/DesignReferenceSidebar-CtaoY-hl.js.map +1 -0
  51. package/dist/cdn/chunks/{IssuesPanel-DdFk-Blf.js → IssuesPanel-C6RlIxoi.js} +5 -5
  52. package/dist/cdn/chunks/IssuesPanel-C6RlIxoi.js.map +1 -0
  53. package/dist/cdn/chunks/{LoadingTrack-Ba5xh5HD.js → LoadingTrack-_7DH_5aw.js} +2 -2
  54. package/dist/cdn/chunks/{LoadingTrack-Ba5xh5HD.js.map → LoadingTrack-_7DH_5aw.js.map} +1 -1
  55. package/dist/cdn/chunks/MediaEditModal-BBZRcYKe.js +3529 -0
  56. package/dist/cdn/chunks/MediaEditModal-BBZRcYKe.js.map +1 -0
  57. package/dist/cdn/chunks/{MediaPanels-kX9AZQ7K.js → MediaPanels-CSBCsFwT.js} +2 -2
  58. package/dist/cdn/chunks/{MediaPanels-kX9AZQ7K.js.map → MediaPanels-CSBCsFwT.js.map} +1 -1
  59. package/dist/cdn/chunks/{ParagraphEditor-DO4RzP8l.js → ParagraphEditor-R2ph_UOo.js} +3 -3
  60. package/dist/cdn/chunks/ParagraphEditor-R2ph_UOo.js.map +1 -0
  61. package/dist/cdn/chunks/{RestoreVersionDialog-CzZ_sFnz.js → RestoreVersionDialog-C-dwbb7T.js} +2 -2
  62. package/dist/cdn/chunks/{RestoreVersionDialog-CzZ_sFnz.js.map → RestoreVersionDialog-C-dwbb7T.js.map} +1 -1
  63. package/dist/cdn/chunks/{SaveBlockDialog-LgxYrXyx.js → SaveBlockDialog-C_BPjVv6.js} +7 -7
  64. package/dist/cdn/chunks/SaveBlockDialog-C_BPjVv6.js.map +1 -0
  65. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CdeSsTpb.js → SavedBlocksBrowserModal-CrrGEfFb.js} +9 -9
  66. package/dist/cdn/chunks/SavedBlocksBrowserModal-CrrGEfFb.js.map +1 -0
  67. package/dist/cdn/chunks/{SavedBlocksPanels-B5hakNJj.js → SavedBlocksPanels-DfTaMPAr.js} +2 -2
  68. package/dist/cdn/chunks/{SavedBlocksPanels-B5hakNJj.js.map → SavedBlocksPanels-DfTaMPAr.js.map} +1 -1
  69. package/dist/cdn/chunks/SavedBlocksPickBar-DziwHYSu.js +55 -0
  70. package/dist/cdn/chunks/SavedBlocksPickBar-DziwHYSu.js.map +1 -0
  71. package/dist/cdn/chunks/{TemplateScoringPanel--JxR6CsQ.js → TemplateScoringPanel-CR6RG6dZ.js} +95 -89
  72. package/dist/cdn/chunks/TemplateScoringPanel-CR6RG6dZ.js.map +1 -0
  73. package/dist/cdn/chunks/{TestEmailModal-BAuDxJtD.js → TestEmailModal-DId9Og-N.js} +7 -7
  74. package/dist/cdn/chunks/TestEmailModal-DId9Og-N.js.map +1 -0
  75. package/dist/cdn/chunks/{TestEmailPanel-GUGZisLp.js → TestEmailPanel-B8LwXmeX.js} +2 -2
  76. package/dist/cdn/chunks/{TestEmailPanel-GUGZisLp.js.map → TestEmailPanel-B8LwXmeX.js.map} +1 -1
  77. package/dist/cdn/chunks/{TitleEditor-uKu33Nwr.js → TitleEditor-C7KMzX1e.js} +2 -2
  78. package/dist/cdn/chunks/{TitleEditor-uKu33Nwr.js.map → TitleEditor-C7KMzX1e.js.map} +1 -1
  79. package/dist/cdn/chunks/{Toolbar-dxDYwN5E.js → Toolbar-DqFhWxgW.js} +310 -310
  80. package/dist/cdn/chunks/Toolbar-DqFhWxgW.js.map +1 -0
  81. package/dist/cdn/chunks/{TplModal-DuwS2ifK.js → TplModal-BKqDFLq3.js} +2 -2
  82. package/dist/cdn/chunks/{TplModal-DuwS2ifK.js.map → TplModal-BKqDFLq3.js.map} +1 -1
  83. package/dist/cdn/chunks/{VersionHistoryPanels-GeR6MStB.js → VersionHistoryPanels-DcCFFDK6.js} +2 -2
  84. package/dist/cdn/chunks/{VersionHistoryPanels-GeR6MStB.js.map → VersionHistoryPanels-DcCFFDK6.js.map} +1 -1
  85. package/dist/cdn/chunks/{ca-Jx2CDwtn.js → ca-BTf1Zbqb.js} +10 -1
  86. package/dist/cdn/chunks/{ca-Jx2CDwtn.js.map → ca-BTf1Zbqb.js.map} +1 -1
  87. package/dist/cdn/chunks/{ca-YlPDhElv.js → ca-Bqeygp1_.js} +2 -1
  88. package/dist/cdn/chunks/{ca-YlPDhElv.js.map → ca-Bqeygp1_.js.map} +1 -1
  89. package/dist/cdn/chunks/{de-CONjnzrF.js → de-CY6SlqBx.js} +2 -1
  90. package/dist/cdn/chunks/{de-CONjnzrF.js.map → de-CY6SlqBx.js.map} +1 -1
  91. package/dist/{de-BytZwgn6.js → cdn/chunks/de-mMY5yQJu.js} +5 -0
  92. package/dist/cdn/chunks/de-mMY5yQJu.js.map +1 -0
  93. package/dist/cdn/chunks/{de-Ck0pBGHu.js → de-xzrh9PA3.js} +10 -1
  94. package/dist/cdn/chunks/{de-Ck0pBGHu.js.map → de-xzrh9PA3.js.map} +1 -1
  95. package/dist/cdn/chunks/editor-modal-C-yBlj2C.js +2700 -0
  96. package/dist/cdn/chunks/editor-modal-C-yBlj2C.js.map +1 -0
  97. package/dist/cdn/chunks/{en-BAMooiOF.js → en-8V-2kDcp.js} +2 -1
  98. package/dist/cdn/chunks/{en-BAMooiOF.js.map → en-8V-2kDcp.js.map} +1 -1
  99. package/dist/{en-DyOSV0lY.js → cdn/chunks/en-ChVeGQBY.js} +5 -0
  100. package/dist/cdn/chunks/en-ChVeGQBY.js.map +1 -0
  101. package/dist/cdn/chunks/en-DYtFUE2l.js +2 -0
  102. package/dist/cdn/chunks/{es-lagTvUfX.js → es-BT4LSpE2.js} +10 -1
  103. package/dist/cdn/chunks/{es-lagTvUfX.js.map → es-BT4LSpE2.js.map} +1 -1
  104. package/dist/cdn/chunks/{es-I47lHs2m.js → es-Cmn1rT3l.js} +2 -1
  105. package/dist/cdn/chunks/{es-I47lHs2m.js.map → es-Cmn1rT3l.js.map} +1 -1
  106. package/dist/cdn/chunks/{fr-B8MIKjT4.js → fr-2yDa4zXM.js} +2 -1
  107. package/dist/cdn/chunks/{fr-B8MIKjT4.js.map → fr-2yDa4zXM.js.map} +1 -1
  108. package/dist/cdn/chunks/{fr-C4hVl5Lk.js → fr-CI7OJoql.js} +10 -1
  109. package/dist/cdn/chunks/{fr-C4hVl5Lk.js.map → fr-CI7OJoql.js.map} +1 -1
  110. package/dist/cdn/chunks/{nl-CBLxcb-0.js → nl-Bzk2zRI8.js} +2 -1
  111. package/dist/cdn/chunks/{nl-CBLxcb-0.js.map → nl-Bzk2zRI8.js.map} +1 -1
  112. package/dist/cdn/chunks/{nl-CReD7Apd.js → nl-D8y5OWGB.js} +10 -1
  113. package/dist/cdn/chunks/{nl-CReD7Apd.js.map → nl-D8y5OWGB.js.map} +1 -1
  114. package/dist/cdn/chunks/{pt-BR-C1WLSGDh.js → pt-BR-CoCwRUi0.js} +4 -1
  115. package/dist/cdn/chunks/pt-BR-CoCwRUi0.js.map +1 -0
  116. package/dist/{pt-BR-BRA0-vGP.js → cdn/chunks/pt-BR-DMCbUBvJ.js} +11 -0
  117. package/dist/cdn/chunks/{pt-BR-BRA0-vGP.js.map → pt-BR-DMCbUBvJ.js.map} +1 -1
  118. package/dist/cdn/chunks/{pt-BR-CMSRfX7t.js → pt-BR-DqtSCTUi.js} +2 -1
  119. package/dist/cdn/chunks/{pt-BR-CMSRfX7t.js.map → pt-BR-DqtSCTUi.js.map} +1 -1
  120. package/dist/cdn/chunks/{src-CZ-W8YBa.js → src-kSeXM7B2.js} +2 -2
  121. package/dist/cdn/chunks/{src-CZ-W8YBa.js.map → src-kSeXM7B2.js.map} +1 -1
  122. package/dist/cdn/chunks/{useEditorCore-BHmIp1hW.js → useEditorCore-CXYI14ux.js} +14 -14
  123. package/dist/cdn/chunks/{useEditorCore-BHmIp1hW.js.map → useEditorCore-CXYI14ux.js.map} +1 -1
  124. package/dist/cdn/editor.css +1 -1
  125. package/dist/cdn/editor.js +15 -15
  126. package/dist/cdn/editor.js.map +1 -1
  127. package/dist/{de-CONjnzrF.js → de-CY6SlqBx.js} +1 -0
  128. package/dist/{cdn/chunks/de-BytZwgn6.js → de-mMY5yQJu.js} +3 -2
  129. package/dist/{de-Ck0pBGHu.js → de-xzrh9PA3.js} +9 -0
  130. package/dist/editor-modal-oD1qNz_P.js +2773 -0
  131. package/dist/{en-BAMooiOF.js → en-8V-2kDcp.js} +1 -0
  132. package/dist/en-CM5fTFSo.js +2 -0
  133. package/dist/{cdn/chunks/en-DyOSV0lY.js → en-ChVeGQBY.js} +3 -2
  134. package/dist/{es-lagTvUfX.js → es-BT4LSpE2.js} +9 -0
  135. package/dist/{es-I47lHs2m.js → es-Cmn1rT3l.js} +1 -0
  136. package/dist/{fr-B8MIKjT4.js → fr-2yDa4zXM.js} +1 -0
  137. package/dist/{fr-C4hVl5Lk.js → fr-CI7OJoql.js} +9 -0
  138. package/dist/{nl-CBLxcb-0.js → nl-Bzk2zRI8.js} +1 -0
  139. package/dist/{nl-CReD7Apd.js → nl-D8y5OWGB.js} +9 -0
  140. package/dist/{pt-BR-C1WLSGDh.js → pt-BR-CoCwRUi0.js} +3 -0
  141. package/dist/{cdn/chunks/pt-BR-BRA0-vGP.js → pt-BR-DMCbUBvJ.js} +9 -2
  142. package/dist/{pt-BR-CMSRfX7t.js → pt-BR-DqtSCTUi.js} +1 -0
  143. package/dist/style.css +1 -1
  144. package/dist/templatical-editor.js +14 -14
  145. package/dist/{useEditorCore-C5APBjjV.js → useEditorCore-BUVbQgwb.js} +13 -13
  146. package/package.json +7 -7
  147. package/dist/DesignReferenceSidebar-QC4gEUWp.js +0 -273
  148. package/dist/SavedBlocksPickBar-cI7bDQQi.js +0 -52
  149. package/dist/cdn/chunks/AiChatSidebar-CjSEoK4x.js.map +0 -1
  150. package/dist/cdn/chunks/CloudPanels-bHhh9AUA.js.map +0 -1
  151. package/dist/cdn/chunks/CollaboratorBar-DgqcaGGI.js.map +0 -1
  152. package/dist/cdn/chunks/CommentsSidebar-C7oAP3Mx.js.map +0 -1
  153. package/dist/cdn/chunks/DesignReferenceSidebar-Bjo0M-AY.js +0 -223
  154. package/dist/cdn/chunks/DesignReferenceSidebar-Bjo0M-AY.js.map +0 -1
  155. package/dist/cdn/chunks/IssuesPanel-DdFk-Blf.js.map +0 -1
  156. package/dist/cdn/chunks/ParagraphEditor-DO4RzP8l.js.map +0 -1
  157. package/dist/cdn/chunks/SaveBlockDialog-LgxYrXyx.js.map +0 -1
  158. package/dist/cdn/chunks/SavedBlocksBrowserModal-CdeSsTpb.js.map +0 -1
  159. package/dist/cdn/chunks/SavedBlocksPickBar-Cl6PLwwV.js +0 -54
  160. package/dist/cdn/chunks/SavedBlocksPickBar-Cl6PLwwV.js.map +0 -1
  161. package/dist/cdn/chunks/TemplateScoringPanel--JxR6CsQ.js.map +0 -1
  162. package/dist/cdn/chunks/TestEmailModal-BAuDxJtD.js.map +0 -1
  163. package/dist/cdn/chunks/Toolbar-dxDYwN5E.js.map +0 -1
  164. package/dist/cdn/chunks/de-BytZwgn6.js.map +0 -1
  165. package/dist/cdn/chunks/editor-modal-C_xYN_66.js +0 -5908
  166. package/dist/cdn/chunks/editor-modal-C_xYN_66.js.map +0 -1
  167. package/dist/cdn/chunks/en-BwfjKb4M.js +0 -2
  168. package/dist/cdn/chunks/en-DyOSV0lY.js.map +0 -1
  169. package/dist/cdn/chunks/pt-BR-C1WLSGDh.js.map +0 -1
  170. package/dist/editor-modal-OPhP71YO.js +0 -5998
  171. package/dist/en-CjNopehs.js +0 -2
@@ -37,71 +37,67 @@ var ce = x({
37
37
  d: "m9 17-5-5 5-5",
38
38
  key: "nvlc11"
39
39
  }]]
40
- }), ue = {
41
- key: 0,
42
- "data-testid": "comments-sidebar",
43
- class: "tpl-comments-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
44
- }, de = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, fe = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, pe = {
40
+ }), ue = ["aria-label"], de = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, fe = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, pe = {
45
41
  key: 0,
46
42
  class: "tpl:ml-1 tpl:inline-flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[10px] tpl:font-semibold tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]"
47
- }, me = { class: "tpl:flex tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2" }, he = { class: "tpl:flex-1 tpl:overflow-y-auto" }, ge = {
43
+ }, me = ["aria-label"], he = { class: "tpl:flex tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2" }, ge = ["aria-pressed"], _e = ["aria-pressed"], ve = ["aria-pressed"], ye = { class: "tpl:flex-1 tpl:overflow-y-auto" }, be = {
48
44
  key: 0,
49
45
  class: "tpl:flex tpl:h-full tpl:items-center tpl:justify-center"
50
- }, _e = {
46
+ }, xe = {
51
47
  key: 1,
52
48
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:px-6 tpl:text-center"
53
- }, ve = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ye = {
49
+ }, Se = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ce = {
54
50
  key: 2,
55
51
  class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-3"
56
- }, be = { class: "tpl-comment-card tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-3" }, xe = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Se = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, Ce = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, we = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Te = {
52
+ }, we = { class: "tpl-comment-card tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-3" }, Te = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Ee = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, De = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Oe = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, ke = {
57
53
  key: 0,
58
54
  class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
59
- }, Ee = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, De = ["title", "onClick"], Oe = ["title", "onClick"], ke = ["title", "onClick"], Ae = {
55
+ }, Ae = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, je = ["title", "onClick"], Me = ["title", "onClick"], Ne = ["title", "onClick"], Pe = {
60
56
  key: 0,
61
57
  class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:text-[10px] tpl:text-[var(--tpl-primary)]"
62
- }, je = {
58
+ }, Fe = {
63
59
  key: 0,
64
60
  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:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)]"
65
- }, Me = ["onClick"], Ne = {
61
+ }, Ie = ["onClick"], Le = {
66
62
  key: 2,
67
63
  class: "tpl:mt-2"
68
- }, Pe = ["onKeydown"], Fe = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, Ie = ["disabled", "onClick"], Le = {
64
+ }, Re = ["onKeydown"], ze = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, Be = ["disabled", "onClick"], Ve = {
69
65
  key: 3,
70
66
  class: "tpl:mt-1.5 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
71
- }, Re = {
67
+ }, He = {
72
68
  key: 4,
73
69
  class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
74
- }, ze = { class: "tpl:flex-1" }, Be = ["onClick"], Ve = {
70
+ }, Ue = { class: "tpl:flex-1" }, We = ["onClick"], Ge = {
75
71
  key: 5,
76
72
  class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2"
77
- }, He = ["title", "onClick"], Ue = ["onClick"], We = {
73
+ }, Ke = ["title", "onClick"], qe = ["onClick"], Je = {
78
74
  key: 0,
79
75
  class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
80
- }, Ge = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Ke = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, qe = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Je = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Ye = {
76
+ }, Ye = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Xe = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, Ze = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Qe = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, $e = {
81
77
  key: 0,
82
78
  class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
83
- }, Xe = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, Ze = ["title", "onClick"], Qe = ["title", "onClick"], $e = {
79
+ }, et = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, tt = ["title", "onClick"], nt = ["title", "onClick"], rt = {
84
80
  key: 0,
85
81
  class: "tpl:mt-1.5"
86
- }, et = ["onKeydown"], tt = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, nt = ["disabled", "onClick"], rt = {
82
+ }, it = ["onKeydown"], at = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, ot = ["disabled", "onClick"], st = {
87
83
  key: 1,
88
84
  class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
89
- }, it = {
85
+ }, ct = {
90
86
  key: 2,
91
87
  class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
92
- }, at = { class: "tpl:flex-1" }, ot = ["onClick"], st = {
88
+ }, lt = { class: "tpl:flex-1" }, ut = ["onClick"], dt = {
93
89
  key: 0,
94
90
  class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
95
- }, ct = { class: "tpl-comments-input-wrapper tpl-focus-ring-host tpl:flex tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, lt = ["placeholder", "onKeydown"], ut = ["disabled", "onClick"], dt = {
91
+ }, ft = { class: "tpl-comments-input-wrapper tpl-focus-ring-host tpl:flex tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, pt = ["placeholder", "onKeydown"], mt = ["disabled", "onClick"], ht = {
96
92
  key: 0,
97
93
  class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]"
98
- }, ft = {
94
+ }, gt = {
99
95
  key: 0,
100
96
  class: "tpl:flex tpl:min-h-[68px] tpl:items-center tpl:rounded-md tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)]"
101
- }, pt = {
97
+ }, _t = {
102
98
  key: 1,
103
99
  class: "tpl-comments-input-wrapper tpl-focus-ring-host tpl:flex tpl:min-h-[68px] tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]"
104
- }, mt = ["placeholder", "disabled"], ht = ["disabled"], k = /*#__PURE__*/ O(/* @__PURE__ */ v({
100
+ }, vt = ["placeholder", "disabled"], yt = ["disabled"], k = /*#__PURE__*/ O(/* @__PURE__ */ v({
105
101
  __name: "CommentsSidebar",
106
102
  props: {
107
103
  visible: { type: Boolean },
@@ -109,19 +105,19 @@ var ce = x({
109
105
  },
110
106
  emits: ["close"],
111
107
  setup(v, { expose: x, emit: O }) {
112
- let k = v, gt = O, { t: A, format: j } = re(), M = te(ne, "CommentsSidebar"), N = g(() => k.feature.headless), P = s("unresolved"), F = s(""), I = s(null), L = s(""), R = s(null), z = s(""), B = s(/* @__PURE__ */ new Set()), V = s(null), H = s(null), U = g(() => k.feature.filterBlockId.value);
108
+ let k = v, bt = O, { t: A, format: j } = re(), M = te(ne, "CommentsSidebar"), N = g(() => k.feature.headless), P = s("unresolved"), F = s(""), I = s(null), L = s(""), R = s(null), z = s(""), B = s(/* @__PURE__ */ new Set()), V = s(null), H = s(null), U = g(() => k.feature.filterBlockId.value);
113
109
  a(U, (e) => {
114
110
  e && (P.value = "block");
115
111
  }, { immediate: !0 });
116
- let _t = g(() => N.value.isLoading.value && N.value.comments.value.length === 0), vt = g(() => {
112
+ let xt = g(() => N.value.isLoading.value && N.value.comments.value.length === 0), St = g(() => {
117
113
  let e = /* @__PURE__ */ new Set();
118
114
  for (let t of M.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);
119
115
  return e;
120
116
  });
121
- function yt(e) {
122
- return e ? !vt.value.has(e) : !1;
117
+ function Ct(e) {
118
+ return e ? !St.value.has(e) : !1;
123
119
  }
124
- let bt = g(() => P.value !== "block" || !U.value ? !1 : k.feature.capability.isBlockSaved(U.value) === !1), W = g(() => {
120
+ let wt = g(() => P.value !== "block" || !U.value ? !1 : k.feature.capability.isBlockSaved(U.value) === !1), W = g(() => {
125
121
  let e = N.value.comments.value;
126
122
  return P.value === "unresolved" ? e = e.filter((e) => !e.resolvedAt) : P.value === "block" && U.value && (e = e.filter((e) => e.blockId === U.value)), e;
127
123
  });
@@ -131,16 +127,16 @@ var ce = x({
131
127
  function G(e, t) {
132
128
  P.value = e, k.feature.filterBlockId.value = e === "block" ? t ?? null : null;
133
129
  }
134
- function xt(e) {
130
+ function Tt(e) {
135
131
  G("block", e);
136
132
  }
137
- function St(e) {
133
+ function Et(e) {
138
134
  B.value.has(e) ? B.value.delete(e) : B.value.add(e);
139
135
  }
140
- function Ct(e) {
136
+ function Dt(e) {
141
137
  I.value = e, L.value = "", R.value = null, B.value.has(e) || B.value.add(e);
142
138
  }
143
- function wt() {
139
+ function Ot() {
144
140
  I.value = null, L.value = "";
145
141
  }
146
142
  function K(e) {
@@ -184,43 +180,43 @@ var ce = x({
184
180
  await N.value.update(e, { body: t }), R.value = null, z.value = "";
185
181
  } catch {}
186
182
  }
187
- async function Tt(e) {
183
+ async function kt(e) {
188
184
  try {
189
185
  await N.value.remove(e);
190
186
  } catch {}
191
187
  V.value = null;
192
188
  }
193
- async function Et(e) {
189
+ async function At(e) {
194
190
  try {
195
191
  await N.value.setResolved(e.id, !e.resolvedAt);
196
192
  } catch {}
197
193
  }
198
- function Dt(e) {
194
+ function jt(e) {
199
195
  return N.value.canUpdate.value && N.value.isOwn(e);
200
196
  }
201
- function Ot(e) {
197
+ function Mt(e) {
202
198
  return N.value.canDelete.value && N.value.isOwn(e);
203
199
  }
204
- function kt(e) {
200
+ function Nt(e) {
205
201
  return se(e, A.time) ?? e;
206
202
  }
207
- function At(e) {
203
+ function Pt(e) {
208
204
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), X());
209
205
  }
210
- function jt(e, t) {
206
+ function Ft(e, t) {
211
207
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Z(t));
212
208
  }
213
209
  function $(e, t) {
214
210
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q(t)), e.key === "Escape" && q();
215
211
  }
216
- function Mt() {
212
+ function It() {
217
213
  r(() => {
218
214
  H.value?.focus();
219
215
  });
220
216
  }
221
217
  return x({
222
- filterByBlock: xt,
223
- focusNewComment: Mt
218
+ filterByBlock: Tt,
219
+ focusNewComment: It
224
220
  }), (r, a) => (e(), m(b, {
225
221
  "enter-active-class": "tpl-comments-slide-enter-active",
226
222
  "enter-from-class": "tpl:translate-x-full",
@@ -229,7 +225,13 @@ var ce = x({
229
225
  "leave-from-class": "tpl:translate-x-0",
230
226
  "leave-to-class": "tpl:translate-x-full"
231
227
  }, {
232
- default: n(() => [v.visible ? (e(), u("div", ue, [
228
+ default: n(() => [v.visible ? (e(), u("div", {
229
+ key: 0,
230
+ role: "complementary",
231
+ "aria-label": c(A).comments.title,
232
+ "data-testid": "comments-sidebar",
233
+ class: "tpl-comments-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
234
+ }, [
233
235
  l("div", de, [l("div", fe, [
234
236
  d(c(C), {
235
237
  size: 13,
@@ -238,61 +240,69 @@ var ce = x({
238
240
  l("span", null, f(c(A).comments.title), 1),
239
241
  v.feature.unresolvedCount.value > 0 ? (e(), u("span", pe, f(v.feature.unresolvedCount.value), 1)) : _("", !0)
240
242
  ]), l("button", {
243
+ type: "button",
241
244
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
242
- onClick: a[0] ||= (e) => gt("close")
245
+ "aria-label": c(A).comments.close,
246
+ onClick: a[0] ||= (e) => bt("close")
243
247
  }, [d(c(D), {
244
248
  size: 14,
245
249
  "stroke-width": 2
246
- })])]),
247
- l("div", me, [
250
+ })], 8, me)]),
251
+ l("div", he, [
248
252
  l("button", {
253
+ type: "button",
249
254
  class: p(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
255
+ "aria-pressed": P.value === "unresolved",
250
256
  "data-testid": "comments-filter-unresolved",
251
257
  onClick: a[1] ||= (e) => G("unresolved")
252
- }, f(c(A).comments.filterUnresolved), 3),
258
+ }, f(c(A).comments.filterUnresolved), 11, ge),
253
259
  l("button", {
260
+ type: "button",
254
261
  class: p(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "all" ? "tpl-comment-filter--active" : ""]),
262
+ "aria-pressed": P.value === "all",
255
263
  "data-testid": "comments-filter-all",
256
264
  onClick: a[2] ||= (e) => G("all")
257
- }, f(c(A).comments.filterAll), 3),
265
+ }, f(c(A).comments.filterAll), 11, _e),
258
266
  c(M).state.selectedBlockId ? (e(), u("button", {
259
267
  key: 0,
268
+ type: "button",
260
269
  class: p(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "block" ? "tpl-comment-filter--active" : ""]),
270
+ "aria-pressed": P.value === "block",
261
271
  onClick: a[3] ||= (e) => G("block", c(M).state.selectedBlockId ?? void 0)
262
- }, f(c(A).comments.filterBlock), 3)) : _("", !0)
272
+ }, f(c(A).comments.filterBlock), 11, ve)) : _("", !0)
263
273
  ]),
264
- l("div", he, [_t.value ? (e(), u("div", ge, [d(c(S), {
274
+ l("div", ye, [xt.value ? (e(), u("div", be, [d(c(S), {
265
275
  class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
266
276
  size: 24,
267
277
  "stroke-width": 2
268
- })])) : W.value.length === 0 ? (e(), u("div", _e, [d(c(C), {
278
+ })])) : W.value.length === 0 ? (e(), u("div", xe, [d(c(C), {
269
279
  size: 32,
270
280
  "stroke-width": 1.5,
271
281
  class: "tpl:text-[var(--tpl-text-dim)]"
272
- }), l("p", ve, f(P.value === "all" ? c(A).comments.noCommentsHint : c(A).comments.noComments), 1)])) : (e(), u("div", ye, [(e(!0), u(h, null, i(W.value, (r) => (e(), u("div", {
282
+ }), l("p", Se, f(P.value === "all" ? c(A).comments.noCommentsHint : c(A).comments.noComments), 1)])) : (e(), u("div", Ce, [(e(!0), u(h, null, i(W.value, (r) => (e(), u("div", {
273
283
  key: r.id,
274
284
  class: "tpl-comment-thread",
275
285
  "data-testid": "comment-thread"
276
286
  }, [
277
- l("div", be, [
278
- l("div", xe, [l("div", Se, [
279
- l("span", Ce, f(N.value.isOwn(r) ? c(A).comments.ownedByYou : r.author.name), 1),
280
- l("span", we, f(kt(r.createdAt)), 1),
281
- r.updatedAt ? (e(), u("span", Te, " (" + f(c(A).comments.edited) + ") ", 1)) : _("", !0)
282
- ]), l("div", Ee, [
287
+ l("div", we, [
288
+ l("div", Te, [l("div", Ee, [
289
+ l("span", De, f(N.value.isOwn(r) ? c(A).comments.ownedByYou : r.author.name), 1),
290
+ l("span", Oe, f(Nt(r.createdAt)), 1),
291
+ r.updatedAt ? (e(), u("span", ke, " (" + f(c(A).comments.edited) + ") ", 1)) : _("", !0)
292
+ ]), l("div", Ae, [
283
293
  N.value.canResolve.value ? (e(), u("button", {
284
294
  key: 0,
285
295
  "data-testid": "comment-resolve",
286
296
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
287
297
  title: r.resolvedAt ? c(A).comments.unresolve : c(A).comments.resolve,
288
- onClick: (e) => Et(r)
298
+ onClick: (e) => At(r)
289
299
  }, [d(c(ce), {
290
300
  size: 13,
291
301
  "stroke-width": 2,
292
302
  class: "tpl-resolve-icon",
293
303
  style: t({ color: r.resolvedAt ? "var(--tpl-primary)" : void 0 })
294
- }, null, 8, ["style"])], 8, De)) : _("", !0),
295
- Dt(r) ? (e(), u("button", {
304
+ }, null, 8, ["style"])], 8, je)) : _("", !0),
305
+ jt(r) ? (e(), u("button", {
296
306
  key: 1,
297
307
  "data-testid": "comment-edit",
298
308
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
@@ -301,8 +311,8 @@ var ce = x({
301
311
  }, [d(c(w), {
302
312
  size: 12,
303
313
  "stroke-width": 2
304
- })], 8, Oe)) : _("", !0),
305
- Ot(r) ? (e(), u("button", {
314
+ })], 8, Me)) : _("", !0),
315
+ Mt(r) ? (e(), u("button", {
306
316
  key: 2,
307
317
  "data-testid": "comment-delete",
308
318
  class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
@@ -311,59 +321,59 @@ var ce = x({
311
321
  }, [d(c(E), {
312
322
  size: 12,
313
323
  "stroke-width": 2
314
- })], 8, ke)) : _("", !0)
324
+ })], 8, Ne)) : _("", !0)
315
325
  ])]),
316
326
  d(b, { name: "tpl-resolve" }, {
317
- default: n(() => [r.resolvedAt ? (e(), u("div", Ae, [d(c(ie), {
327
+ default: n(() => [r.resolvedAt ? (e(), u("div", Pe, [d(c(ie), {
318
328
  size: 10,
319
329
  "stroke-width": 2.5
320
330
  }), l("span", null, f(c(j)(c(A).comments.resolvedBy, { name: r.resolvedBy?.name ?? "" })), 1)])) : _("", !0)]),
321
331
  _: 2
322
332
  }, 1024),
323
- r.blockId && yt(r.blockId) ? (e(), u("span", je, f(c(A).comments.missingBlock), 1)) : r.blockId ? (e(), u("button", {
333
+ r.blockId && Ct(r.blockId) ? (e(), u("span", Fe, f(c(A).comments.missingBlock), 1)) : r.blockId ? (e(), u("button", {
324
334
  key: 1,
325
335
  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:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
326
336
  onClick: (e) => c(M).selectBlock(r.blockId ?? "")
327
- }, f(c(A).comments.jumpToBlock), 9, Me)) : _("", !0),
328
- R.value === r.id ? (e(), u("div", Ne, [o(l("textarea", {
337
+ }, f(c(A).comments.jumpToBlock), 9, Ie)) : _("", !0),
338
+ R.value === r.id ? (e(), u("div", Le, [o(l("textarea", {
329
339
  "onUpdate:modelValue": a[4] ||= (e) => z.value = e,
330
- 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)]",
340
+ 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)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]",
331
341
  rows: "3",
332
342
  onKeydown: (e) => $(e, r.id)
333
- }, null, 40, Pe), [[y, z.value]]), l("div", Fe, [l("button", {
343
+ }, null, 40, Re), [[y, z.value]]), l("div", ze, [l("button", {
334
344
  class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]",
335
345
  disabled: !z.value.trim() || N.value.isSubmitting.value,
336
346
  onClick: (e) => Q(r.id)
337
- }, f(c(A).comments.save), 9, Ie), l("button", {
347
+ }, f(c(A).comments.save), 9, Be), l("button", {
338
348
  class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
339
349
  onClick: a[5] ||= (e) => q()
340
- }, f(c(A).comments.cancel), 1)])])) : (e(), u("p", Le, f(r.body), 1)),
341
- V.value === r.id ? (e(), u("div", Re, [
342
- l("span", ze, f(c(A).comments.deleteConfirm), 1),
350
+ }, f(c(A).comments.cancel), 1)])])) : (e(), u("p", Ve, f(r.body), 1)),
351
+ V.value === r.id ? (e(), u("div", He, [
352
+ l("span", Ue, f(c(A).comments.deleteConfirm), 1),
343
353
  l("button", {
344
354
  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)]",
345
355
  "data-testid": "comment-delete-confirm",
346
- onClick: (e) => Tt(r.id)
347
- }, f(c(A).comments.delete), 9, Be),
356
+ onClick: (e) => kt(r.id)
357
+ }, f(c(A).comments.delete), 9, We),
348
358
  l("button", {
349
359
  class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
350
360
  onClick: a[6] ||= (e) => Y()
351
361
  }, f(c(A).comments.cancel), 1)
352
362
  ])) : _("", !0),
353
- R.value !== r.id && V.value !== r.id ? (e(), u("div", Ve, [N.value.canCreate.value ? (e(), u("button", {
363
+ R.value !== r.id && V.value !== r.id ? (e(), u("div", Ge, [N.value.canCreate.value ? (e(), u("button", {
354
364
  key: 0,
355
365
  "data-testid": "comment-reply",
356
366
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
357
367
  title: c(A).comments.reply,
358
- onClick: (e) => Ct(r.id)
368
+ onClick: (e) => Dt(r.id)
359
369
  }, [d(c(le), {
360
370
  size: 13,
361
371
  "stroke-width": 2,
362
372
  class: "tpl:text-[var(--tpl-primary)]"
363
- })], 8, He)) : _("", !0), (r.replies?.length ?? 0) > 0 ? (e(), u("button", {
373
+ })], 8, Ke)) : _("", !0), (r.replies?.length ?? 0) > 0 ? (e(), u("button", {
364
374
  key: 1,
365
- class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:text-[11px] tpl:font-medium tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
366
- onClick: (e) => St(r.id)
375
+ class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
376
+ onClick: (e) => Et(r.id)
367
377
  }, [B.value.has(r.id) ? (e(), m(c(oe), {
368
378
  key: 0,
369
379
  size: 11,
@@ -372,18 +382,18 @@ var ce = x({
372
382
  key: 1,
373
383
  size: 11,
374
384
  "stroke-width": 2
375
- })), ee(" " + f((r.replies?.length ?? 0) === 1 ? c(j)(c(A).comments.replyOne, { count: String(r.replies?.length ?? 0) }) : c(j)(c(A).comments.replyMany, { count: String(r.replies?.length ?? 0) })), 1)], 8, Ue)) : _("", !0)])) : _("", !0)
385
+ })), ee(" " + f((r.replies?.length ?? 0) === 1 ? c(j)(c(A).comments.replyOne, { count: String(r.replies?.length ?? 0) }) : c(j)(c(A).comments.replyMany, { count: String(r.replies?.length ?? 0) })), 1)], 8, qe)) : _("", !0)])) : _("", !0)
376
386
  ]),
377
387
  d(b, { name: "tpl-replies" }, {
378
- default: n(() => [B.value.has(r.id) && (r.replies?.length ?? 0) > 0 ? (e(), u("div", We, [(e(!0), u(h, null, i(r.replies, (t, n) => (e(), u("div", {
388
+ default: n(() => [B.value.has(r.id) && (r.replies?.length ?? 0) > 0 ? (e(), u("div", Je, [(e(!0), u(h, null, i(r.replies, (t, n) => (e(), u("div", {
379
389
  key: t.id,
380
390
  class: p(["tpl-comment-reply-card tpl:relative tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-2.5", n < (r.replies?.length ?? 0) - 1 ? "tpl:mb-2" : ""])
381
391
  }, [
382
- l("div", Ge, [l("div", Ke, [
383
- l("span", qe, f(N.value.isOwn(t) ? c(A).comments.ownedByYou : t.author.name), 1),
384
- l("span", Je, f(kt(t.createdAt)), 1),
385
- t.updatedAt ? (e(), u("span", Ye, " (" + f(c(A).comments.edited) + ") ", 1)) : _("", !0)
386
- ]), l("div", Xe, [Dt(t) ? (e(), u("button", {
392
+ l("div", Ye, [l("div", Xe, [
393
+ l("span", Ze, f(N.value.isOwn(t) ? c(A).comments.ownedByYou : t.author.name), 1),
394
+ l("span", Qe, f(Nt(t.createdAt)), 1),
395
+ t.updatedAt ? (e(), u("span", $e, " (" + f(c(A).comments.edited) + ") ", 1)) : _("", !0)
396
+ ]), l("div", et, [jt(t) ? (e(), u("button", {
387
397
  key: 0,
388
398
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
389
399
  title: c(A).comments.edit,
@@ -391,7 +401,7 @@ var ce = x({
391
401
  }, [d(c(w), {
392
402
  size: 11,
393
403
  "stroke-width": 2
394
- })], 8, Ze)) : _("", !0), Ot(t) ? (e(), u("button", {
404
+ })], 8, tt)) : _("", !0), Mt(t) ? (e(), u("button", {
395
405
  key: 1,
396
406
  class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
397
407
  title: c(A).comments.delete,
@@ -399,27 +409,27 @@ var ce = x({
399
409
  }, [d(c(E), {
400
410
  size: 11,
401
411
  "stroke-width": 2
402
- })], 8, Qe)) : _("", !0)])]),
403
- R.value === t.id ? (e(), u("div", $e, [o(l("textarea", {
412
+ })], 8, nt)) : _("", !0)])]),
413
+ R.value === t.id ? (e(), u("div", rt, [o(l("textarea", {
404
414
  "onUpdate:modelValue": a[7] ||= (e) => z.value = e,
405
- 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)]",
415
+ 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)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]",
406
416
  rows: "2",
407
417
  onKeydown: (e) => $(e, t.id)
408
- }, null, 40, et), [[y, z.value]]), l("div", tt, [l("button", {
418
+ }, null, 40, it), [[y, z.value]]), l("div", at, [l("button", {
409
419
  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-on-primary)]",
410
420
  disabled: !z.value.trim() || N.value.isSubmitting.value,
411
421
  onClick: (e) => Q(t.id)
412
- }, f(c(A).comments.save), 9, nt), l("button", {
422
+ }, f(c(A).comments.save), 9, ot), l("button", {
413
423
  class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
414
424
  onClick: a[8] ||= (e) => q()
415
- }, f(c(A).comments.cancel), 1)])])) : (e(), u("p", rt, f(t.body), 1)),
416
- V.value === t.id ? (e(), u("div", it, [
417
- l("span", at, f(c(A).comments.deleteConfirm), 1),
425
+ }, f(c(A).comments.cancel), 1)])])) : (e(), u("p", st, f(t.body), 1)),
426
+ V.value === t.id ? (e(), u("div", ct, [
427
+ l("span", lt, f(c(A).comments.deleteConfirm), 1),
418
428
  l("button", {
419
429
  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)]",
420
430
  "data-testid": "comment-delete-confirm",
421
- onClick: (e) => Tt(t.id)
422
- }, f(c(A).comments.delete), 9, ot),
431
+ onClick: (e) => kt(t.id)
432
+ }, f(c(A).comments.delete), 9, ut),
423
433
  l("button", {
424
434
  class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
425
435
  onClick: a[9] ||= (e) => Y()
@@ -429,14 +439,14 @@ var ce = x({
429
439
  _: 2
430
440
  }, 1024),
431
441
  d(b, { name: "tpl-replies" }, {
432
- default: n(() => [I.value === r.id ? (e(), u("div", st, [l("div", ct, [
442
+ default: n(() => [I.value === r.id ? (e(), u("div", dt, [l("div", ft, [
433
443
  o(l("textarea", {
434
444
  "onUpdate:modelValue": a[10] ||= (e) => L.value = e,
435
445
  class: "tpl:max-h-24 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)]",
436
446
  placeholder: c(A).comments.replyPlaceholder,
437
447
  rows: "2",
438
- onKeydown: (e) => jt(e, r.id)
439
- }, null, 40, lt), [[y, L.value]]),
448
+ onKeydown: (e) => Ft(e, r.id)
449
+ }, null, 40, pt), [[y, L.value]]),
440
450
  l("button", {
441
451
  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:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
442
452
  disabled: !L.value.trim() || N.value.isSubmitting.value,
@@ -444,10 +454,10 @@ var ce = x({
444
454
  }, [d(c(T), {
445
455
  size: 14,
446
456
  "stroke-width": 2
447
- })], 8, ut),
457
+ })], 8, mt),
448
458
  l("button", {
449
459
  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:text-[var(--tpl-text-muted)]",
450
- onClick: a[11] ||= (e) => wt()
460
+ onClick: a[11] ||= (e) => Ot()
451
461
  }, [d(c(D), {
452
462
  size: 14,
453
463
  "stroke-width": 2
@@ -456,7 +466,7 @@ var ce = x({
456
466
  _: 2
457
467
  }, 1024)
458
468
  ]))), 128))]))]),
459
- N.value.canCreate.value ? (e(), u("div", dt, [bt.value ? (e(), u("div", ft, f(c(A).comments.saveTemplateFirst), 1)) : (e(), u("div", pt, [o(l("textarea", {
469
+ N.value.canCreate.value ? (e(), u("div", ht, [wt.value ? (e(), u("div", gt, f(c(A).comments.saveTemplateFirst), 1)) : (e(), u("div", _t, [o(l("textarea", {
460
470
  ref_key: "newCommentInput",
461
471
  ref: H,
462
472
  "onUpdate:modelValue": a[12] ||= (e) => F.value = e,
@@ -465,8 +475,8 @@ var ce = x({
465
475
  placeholder: c(A).comments.placeholder,
466
476
  disabled: N.value.isSubmitting.value,
467
477
  rows: "2",
468
- onKeydown: At
469
- }, null, 40, mt), [[y, F.value]]), l("button", {
478
+ onKeydown: Pt
479
+ }, null, 40, vt), [[y, F.value]]), l("button", {
470
480
  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:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
471
481
  "data-testid": "comments-send",
472
482
  disabled: !F.value.trim() || N.value.isSubmitting.value,
@@ -480,11 +490,11 @@ var ce = x({
480
490
  key: 1,
481
491
  size: 16,
482
492
  "stroke-width": 2
483
- }))], 8, ht)]))])) : _("", !0)
484
- ])) : _("", !0)]),
493
+ }))], 8, yt)]))])) : _("", !0)
494
+ ], 8, ue)) : _("", !0)]),
485
495
  _: 1
486
496
  }));
487
497
  }
488
- }), [["__scopeId", "data-v-3692da54"]]);
498
+ }), [["__scopeId", "data-v-32af5912"]]);
489
499
  //#endregion
490
500
  export { k as default };
@@ -3,7 +3,7 @@ import { t as p } from "./useI18n-Ds_-druD.js";
3
3
  import { c as m } from "./LogicTagInsertButton-D8IwH-9Z.js";
4
4
  import { p as h } from "./styleConstants-C_YAPdQS.js";
5
5
  import { t as g } from "./ToggleSwitch-JvQ_CmI1.js";
6
- import { i as _, n as v, r as y } from "./Toolbar-COD2TW20.js";
6
+ import { i as _, n as v, r as y } from "./Toolbar-B2kDLFhn.js";
7
7
  //#region src/components/toolbar/CountdownToolbar.vue?vue&type=script&setup=true&lang.ts
8
8
  var b = ["value"], x = ["value"], S = ["value"], C = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, w = ["value"], T = { value: "" }, E = ["value"], D = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, O = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, k = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, A = [
9
9
  "value",