pi-roundtable-web 0.27.0 → 0.28.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.
Files changed (253) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +23 -7
  3. package/dist/chunk-account-678dgbww.js +1 -0
  4. package/dist/chunk-action-menu-qpp9bdxh.js +1 -0
  5. package/dist/chunk-agent-x0yvvdq2.js +1 -0
  6. package/dist/chunk-arranged-rooms-6rdkk8t1.js +1 -0
  7. package/dist/chunk-bulk-actions-zbwdaxtc.js +1 -0
  8. package/dist/chunk-character-creator-215psy17.js +1 -0
  9. package/dist/chunk-codeeditor-jgj32247.js +2 -0
  10. package/dist/chunk-confirm-2pzrt272.js +1 -0
  11. package/dist/chunk-connectors-zha2d834.js +37 -0
  12. package/dist/chunk-conversations-fb071rez.js +1 -0
  13. package/dist/chunk-council-sheet-k5fycefd.js +2 -0
  14. package/dist/chunk-drag-04qfef58.js +1 -0
  15. package/dist/chunk-entry-mws704mc.js +1 -0
  16. package/dist/chunk-folder-list-qxhmczwv.js +1 -0
  17. package/dist/chunk-folds-b7asegfs.js +1 -0
  18. package/dist/chunk-gate-vxetvn8t.js +1 -0
  19. package/dist/chunk-group-scene-63yhh1mh.js +1 -0
  20. package/dist/chunk-group-table-zy4hmgk3.js +1 -0
  21. package/dist/chunk-host-icons-tyktazzz.js +1 -0
  22. package/dist/chunk-host-picture-ebhejn2k.js +1 -0
  23. package/dist/chunk-host-state-wajep0yr.js +1 -0
  24. package/dist/chunk-host-ui-pc9r24e3.js +1 -0
  25. package/dist/chunk-index-1af8vsyb.js +2 -0
  26. package/dist/{chunk-index-g1awv7rk.js → chunk-index-20xgx0k2.js} +2 -2
  27. package/dist/chunk-index-254701sm.js +3 -0
  28. package/dist/{chunk-index-ffbrm6tr.js → chunk-index-2822z600.js} +3 -3
  29. package/dist/{chunk-index-2fdns8tn.js → chunk-index-2hvn2kte.js} +2 -2
  30. package/dist/chunk-index-2syyyjnq.js +2 -0
  31. package/dist/chunk-index-2tr41qht.js +2 -0
  32. package/dist/chunk-index-2y8r4s4f.js +2 -0
  33. package/dist/chunk-index-31m1b2f5.js +2 -0
  34. package/dist/{chunk-index-ak6ecqy3.js → chunk-index-3gfbhmpb.js} +2 -2
  35. package/dist/chunk-index-3yy10a5h.js +2 -0
  36. package/dist/{chunk-index-sm7m4fej.js → chunk-index-4t6vnwap.js} +2 -2
  37. package/dist/{chunk-index-j4x9dq30.css → chunk-index-5hbq6g2e.css} +1 -1
  38. package/dist/chunk-index-5t2jkecy.js +2 -0
  39. package/dist/chunk-index-5vatmakn.js +2 -0
  40. package/dist/{chunk-index-zyvwhxga.js → chunk-index-6cg8xp1c.js} +1 -1
  41. package/dist/chunk-index-6yra9kdq.js +2 -0
  42. package/dist/{chunk-index-ac1ktr56.js → chunk-index-7qd604rq.js} +2 -2
  43. package/dist/chunk-index-9bdstf8t.js +2 -0
  44. package/dist/chunk-index-acj4xxgq.js +100 -0
  45. package/dist/chunk-index-aexy023z.js +2 -0
  46. package/dist/chunk-index-amxa2bn3.js +2 -0
  47. package/dist/chunk-index-bef0fc2m.js +2 -0
  48. package/dist/chunk-index-c6tphrjr.js +1 -0
  49. package/dist/chunk-index-c7dbvkrq.js +2 -0
  50. package/dist/chunk-index-cn49mawx.js +50 -0
  51. package/dist/{chunk-index-3d8s3565.js → chunk-index-e2gy763y.js} +2 -2
  52. package/dist/{chunk-index-31x6krbs.js → chunk-index-e35v554x.js} +3 -3
  53. package/dist/chunk-index-fepsbhr6.js +47 -0
  54. package/dist/chunk-index-gcmmwh8t.js +2 -0
  55. package/dist/{chunk-index-kbrg32sx.js → chunk-index-gwkhs8s3.js} +2 -2
  56. package/dist/chunk-index-h2vhv4kh.js +2 -0
  57. package/dist/chunk-index-h9ccz1r3.js +2 -0
  58. package/dist/{chunk-index-0w4bfjb5.js → chunk-index-jc3r4qam.js} +2 -2
  59. package/dist/{chunk-index-8d81qy69.js → chunk-index-m81362sc.js} +2 -2
  60. package/dist/{chunk-index-xq84gg8w.js → chunk-index-n0cmnwd2.js} +2 -2
  61. package/dist/chunk-index-n0ejy0wd.js +2 -0
  62. package/dist/chunk-index-nkdg1dfz.js +7 -0
  63. package/dist/chunk-index-p7jkr7gv.js +14 -0
  64. package/dist/{chunk-index-e2dqjde8.js → chunk-index-q5fyrtx4.js} +1 -1
  65. package/dist/{chunk-index-jgzygbt8.js → chunk-index-qxynr1hf.js} +2 -2
  66. package/dist/chunk-index-r7fdgzy1.js +2 -0
  67. package/dist/chunk-index-rgf4rvns.js +4 -0
  68. package/dist/chunk-index-rsd8rftk.js +2 -0
  69. package/dist/{chunk-index-rh0x9rzf.js → chunk-index-s53bxwkk.js} +2 -2
  70. package/dist/{chunk-index-xxeb2xp0.js → chunk-index-s9p27f9b.js} +3 -3
  71. package/dist/chunk-index-sdcpf5dp.js +2 -0
  72. package/dist/chunk-index-sm7kfb07.js +2 -0
  73. package/dist/chunk-index-sw9r4aa4.js +2 -0
  74. package/dist/chunk-index-t5bmsqqd.js +1 -0
  75. package/dist/chunk-index-v8mma5np.js +2 -0
  76. package/dist/{chunk-index-q7g62sgm.js → chunk-index-v9gbt5tz.js} +3 -3
  77. package/dist/chunk-index-vsfsv8hd.js +2 -0
  78. package/dist/chunk-index-wxft0aqb.js +2 -0
  79. package/dist/chunk-index-x60n1me6.js +2 -0
  80. package/dist/chunk-index-zcfr8jdv.js +13 -0
  81. package/dist/{chunk-index-w42rcbx1.js → chunk-index-zj0gjcvr.js} +2 -2
  82. package/dist/{chunk-index-2t30xwed.js → chunk-index-zt19fdmc.js} +2 -2
  83. package/dist/chunk-index-zvvwxkev.js +2 -0
  84. package/dist/chunk-lang-css-7q1dtpgm.js +1 -0
  85. package/dist/{chunk-lang-dockerfile-cnwqn660.js → chunk-lang-dockerfile-n4bt8jbt.js} +1 -1
  86. package/dist/{chunk-lang-go-yy6kgsxv.js → chunk-lang-go-9k4y107e.js} +3 -3
  87. package/dist/chunk-lang-html-xgvba8rn.js +1 -0
  88. package/dist/chunk-lang-javascript-vgxmgd0a.js +1 -0
  89. package/dist/chunk-lang-json-hr12bzs1.js +1 -0
  90. package/dist/chunk-lang-markdown-ttzcpgkg.js +6 -0
  91. package/dist/chunk-lang-python-ntj8maem.js +3 -0
  92. package/dist/chunk-lang-rust-gv8y859d.js +1 -0
  93. package/dist/{chunk-lang-shell-1rpgtepw.js → chunk-lang-shell-5zzs09b7.js} +1 -1
  94. package/dist/chunk-lang-sql-6vmze4pg.js +2 -0
  95. package/dist/{chunk-lang-toml-tbj7467c.js → chunk-lang-toml-tt0d4rw9.js} +1 -1
  96. package/dist/chunk-lang-typescript-2v652sh5.js +1 -0
  97. package/dist/chunk-lang-xml-r2sbqnjv.js +1 -0
  98. package/dist/chunk-lang-yaml-ex31qbph.js +1 -0
  99. package/dist/chunk-layout-actions-bfqtg71d.js +1 -0
  100. package/dist/chunk-menu-items-rztgekfj.js +1 -0
  101. package/dist/chunk-mode-toggle-m5kgb7c7.js +1 -0
  102. package/dist/chunk-note-row-40ypghn9.js +204 -0
  103. package/dist/chunk-notes-a8nqffbf.js +1 -0
  104. package/dist/chunk-notice-bell-rdnfmtf2.js +1 -0
  105. package/dist/{chunk-notices-fte9f196.js → chunk-notices-tefx93s6.js} +1 -1
  106. package/dist/chunk-onboarding-wvh0s3vg.js +1 -0
  107. package/dist/chunk-overview-zrx3bpwf.js +1 -0
  108. package/dist/chunk-palette-5xtdvy9a.js +1 -0
  109. package/dist/chunk-placement-items-rgyrktvy.js +1 -0
  110. package/dist/chunk-profile-tyb48b79.js +1 -0
  111. package/dist/chunk-prompt-history-wv0vdsjv.js +1 -0
  112. package/dist/chunk-prompts-75hgb0t0.js +1 -0
  113. package/dist/chunk-room-confirms-bcvhpcry.js +1 -0
  114. package/dist/chunk-room-menu-ha1evv71.js +1 -0
  115. package/dist/chunk-rooms-menu-button-ej3a2hyc.js +1 -0
  116. package/dist/chunk-schedules-a5pewkhd.js +1 -0
  117. package/dist/{chunk-seat-menu-r0k0eawr.js → chunk-seat-menu-eh3ymmks.js} +1 -1
  118. package/dist/chunk-sheet-hosts-d5zbwbbr.js +29 -0
  119. package/dist/{chunk-shortcut-help-a6pkjcq7.js → chunk-shortcut-help-bh9ntk9s.js} +2 -2
  120. package/dist/{chunk-shortcuts-cgt87jkz.js → chunk-shortcuts-6em0atk9.js} +1 -1
  121. package/dist/chunk-skill-editor-e43mwz01.js +8 -0
  122. package/dist/chunk-skills-vp107wrp.js +1 -0
  123. package/dist/chunk-start-over-line-xd1v2p0g.js +16 -0
  124. package/dist/chunk-switcher-list-dtfh87zy.js +1 -0
  125. package/dist/{chunk-tab-dot-vr11dfrw.js → chunk-tab-dot-qd640mjr.js} +1 -1
  126. package/dist/chunk-table-svb2xhfd.js +1 -0
  127. package/dist/chunk-table2d-5nrhfwft.js +1 -0
  128. package/dist/chunk-table3d-5cb66d99.js +4220 -0
  129. package/dist/chunk-thread-actions-926eab0w.js +1 -0
  130. package/dist/{chunk-thread-cards-c2mrp2gj.js → chunk-thread-cards-kgt22sbp.js} +1 -1
  131. package/dist/chunk-thread-list-j2v1pqkz.js +217 -0
  132. package/dist/chunk-transcript-a0p3vwh6.js +1 -0
  133. package/dist/chunk-waiting-cdyz7r1g.js +1 -0
  134. package/dist/chunk-waiting-chip-58ttx9av.js +28 -0
  135. package/dist/chunk-where-9jp6g029.js +1 -0
  136. package/dist/chunk-workspace-d34njy4p.js +578 -0
  137. package/dist/chunk-zh-tw-y3jb20wc.js +1 -0
  138. package/dist/index.html +1 -1
  139. package/dist/sw.js +1 -1
  140. package/package.json +3 -3
  141. package/src/api-types.ts +98 -1
  142. package/src/app/app.ts +4 -7
  143. package/src/app/desk.ts +19 -4
  144. package/src/app/room-log.ts +66 -18
  145. package/src/app/rooms.ts +15 -5
  146. package/src/app/routes.ts +60 -9
  147. package/src/app/skill-doc-routes.ts +12 -2
  148. package/src/app/surface.ts +26 -2
  149. package/src/app/team-routes.ts +3 -7
  150. package/src/authz.ts +1 -0
  151. package/src/cleanup-api.ts +9 -2
  152. package/src/connector-manage-api.ts +257 -0
  153. package/src/console-api.ts +60 -2
  154. package/src/features.ts +91 -0
  155. package/src/host/reads.ts +10 -1
  156. package/src/i18n/zh-tw.ts +107 -4
  157. package/src/web-plugin.ts +7 -1
  158. package/dist/chunk-account-1ecx5kt7.js +0 -1
  159. package/dist/chunk-action-menu-zh2n0ahf.js +0 -1
  160. package/dist/chunk-agent-ynm2tcbx.js +0 -1
  161. package/dist/chunk-arranged-rooms-qnz8vese.js +0 -1
  162. package/dist/chunk-bulk-actions-pr0mw0kc.js +0 -1
  163. package/dist/chunk-character-creator-caj4pmg4.js +0 -1
  164. package/dist/chunk-codeeditor-dga6s78p.js +0 -2
  165. package/dist/chunk-confirm-g76v5d9r.js +0 -1
  166. package/dist/chunk-connectors-j79ze3j1.js +0 -1
  167. package/dist/chunk-conversations-2farn72g.js +0 -1
  168. package/dist/chunk-council-sheet-s9sz1bzf.js +0 -2
  169. package/dist/chunk-drag-45e8222r.js +0 -1
  170. package/dist/chunk-entry-q11n47h9.js +0 -1
  171. package/dist/chunk-folder-list-4gcj7g7h.js +0 -1
  172. package/dist/chunk-folds-ten4ykfw.js +0 -1
  173. package/dist/chunk-gate-kcv1a4t0.js +0 -1
  174. package/dist/chunk-group-scene-12ghcvzd.js +0 -1
  175. package/dist/chunk-group-table-t458kdgn.js +0 -1
  176. package/dist/chunk-host-icons-h1k9k96a.js +0 -1
  177. package/dist/chunk-host-picture-3p0wzn3v.js +0 -1
  178. package/dist/chunk-host-state-7mdve7cb.js +0 -1
  179. package/dist/chunk-host-ui-bdgwa6sf.js +0 -1
  180. package/dist/chunk-index-02vfshtt.js +0 -2
  181. package/dist/chunk-index-0a81da8z.js +0 -2
  182. package/dist/chunk-index-12zyshae.js +0 -2
  183. package/dist/chunk-index-18pgxxw3.js +0 -2
  184. package/dist/chunk-index-2e4am3hw.js +0 -50
  185. package/dist/chunk-index-5bfqek1d.js +0 -2
  186. package/dist/chunk-index-64rsz6pf.js +0 -2
  187. package/dist/chunk-index-6bkcq9ka.js +0 -2
  188. package/dist/chunk-index-92zgb7my.js +0 -2
  189. package/dist/chunk-index-aamhjg5n.js +0 -2
  190. package/dist/chunk-index-b73y2gc0.js +0 -47
  191. package/dist/chunk-index-b8cpvr7y.js +0 -2
  192. package/dist/chunk-index-bhqczxr3.js +0 -2
  193. package/dist/chunk-index-cbqhzf40.js +0 -13
  194. package/dist/chunk-index-cdctnw71.js +0 -2
  195. package/dist/chunk-index-dj0tbfyb.js +0 -2
  196. package/dist/chunk-index-dnjftvtq.js +0 -2
  197. package/dist/chunk-index-ebg48jgy.js +0 -2
  198. package/dist/chunk-index-ek5mek4j.js +0 -14
  199. package/dist/chunk-index-f6q0stqx.js +0 -2
  200. package/dist/chunk-index-g3wrs02w.js +0 -1
  201. package/dist/chunk-index-j0m16cj1.js +0 -2
  202. package/dist/chunk-index-j4kk1m59.js +0 -2
  203. package/dist/chunk-index-kb3w11mn.js +0 -7
  204. package/dist/chunk-index-msqhgvfx.js +0 -2
  205. package/dist/chunk-index-pefwfm26.js +0 -2
  206. package/dist/chunk-index-pyfx77cj.js +0 -2
  207. package/dist/chunk-index-qfgkfq86.js +0 -2
  208. package/dist/chunk-index-sv9qpmhv.js +0 -1
  209. package/dist/chunk-index-t998yg8y.js +0 -2
  210. package/dist/chunk-index-tk4se135.js +0 -4
  211. package/dist/chunk-index-v6smgw77.js +0 -2
  212. package/dist/chunk-index-x4enmj72.js +0 -2
  213. package/dist/chunk-lang-css-y9133ktr.js +0 -1
  214. package/dist/chunk-lang-html-r2xmryek.js +0 -1
  215. package/dist/chunk-lang-javascript-1r6wd177.js +0 -1
  216. package/dist/chunk-lang-json-dx56g11y.js +0 -1
  217. package/dist/chunk-lang-markdown-fpcf2dfq.js +0 -6
  218. package/dist/chunk-lang-python-zzp95955.js +0 -3
  219. package/dist/chunk-lang-rust-214fh7sp.js +0 -1
  220. package/dist/chunk-lang-sql-vvp46hpj.js +0 -2
  221. package/dist/chunk-lang-typescript-y5w4tt4g.js +0 -1
  222. package/dist/chunk-lang-xml-tbcqmedk.js +0 -1
  223. package/dist/chunk-lang-yaml-jh56t3sv.js +0 -1
  224. package/dist/chunk-layout-actions-y73mpsh1.js +0 -1
  225. package/dist/chunk-menu-items-bza16bw6.js +0 -2
  226. package/dist/chunk-mode-toggle-nj9gnt3b.js +0 -1
  227. package/dist/chunk-note-row-6fmhrdng.js +0 -75
  228. package/dist/chunk-notes-wv0e6ssf.js +0 -1
  229. package/dist/chunk-notice-bell-9z27epd2.js +0 -1
  230. package/dist/chunk-onboarding-c5twahc3.js +0 -1
  231. package/dist/chunk-overview-k4ccprax.js +0 -1
  232. package/dist/chunk-palette-9rbp2fab.js +0 -1
  233. package/dist/chunk-placement-items-me598wsb.js +0 -1
  234. package/dist/chunk-profile-s7r7fcvz.js +0 -1
  235. package/dist/chunk-prompt-history-hf296e7v.js +0 -1
  236. package/dist/chunk-prompts-c8s0nhkm.js +0 -1
  237. package/dist/chunk-room-confirms-ga2sbvhc.js +0 -1
  238. package/dist/chunk-room-menu-7h4jym2b.js +0 -1
  239. package/dist/chunk-rooms-menu-button-pgtaanb6.js +0 -1
  240. package/dist/chunk-schedules-mbnwcxpc.js +0 -1
  241. package/dist/chunk-sheet-hosts-a5dfevy9.js +0 -1
  242. package/dist/chunk-skill-editor-67yk4x7t.js +0 -8
  243. package/dist/chunk-skills-rewemey4.js +0 -1
  244. package/dist/chunk-switcher-list-t8rbay2y.js +0 -1
  245. package/dist/chunk-table-52nh0azk.js +0 -1
  246. package/dist/chunk-table2d-g57vr6h0.js +0 -1
  247. package/dist/chunk-table3d-rp0w6kt4.js +0 -4220
  248. package/dist/chunk-thread-actions-qcxt1y1g.js +0 -1
  249. package/dist/chunk-thread-list-0071q455.js +0 -217
  250. package/dist/chunk-transcript-789yqysq.js +0 -1
  251. package/dist/chunk-where-hmwmme9e.js +0 -1
  252. package/dist/chunk-workspace-wr1qrtsh.js +0 -578
  253. package/dist/chunk-zh-tw-z5p5mpph.js +0 -1
@@ -0,0 +1 @@
1
+ import{Yr,Hr,jr}from"./chunk-index-5t2jkecy.js";import"./chunk-index-s53bxwkk.js";export{Hr as clearAcross,jr as clearFinished,Yr as dismissThread};
@@ -1 +1 @@
1
- import{t,Le,pe,mn,Fo,Xn,Wi}from"./chunk-index-2e4am3hw.js";import{Nr,Xr}from"./chunk-index-6bkcq9ka.js";import{gr}from"./chunk-index-12zyshae.js";import"./chunk-index-rh0x9rzf.js";var E=12,R=24,y=180,L=150,C=100,w=".thread-card",h=".thread-group",g=(e)=>e instanceof Element?e.closest(w):null,B=(e)=>e.closest("li"),m=(e)=>e.dataset.closed==="",I=(e)=>new Promise((i)=>setTimeout(i,e));function X(e){return[...e.closest(h)?.querySelectorAll(`${w}[data-closed]`)??[]].flatMap((n)=>n.dataset.thread?[n.dataset.thread]:[])}function q(e){let i=B(e);if(delete e.dataset.armed,e.style.transition="",e.style.transform="",e.style.opacity="",i)i.style.transition="",i.style.height="",i.style.marginBottom="",i.style.opacity=""}async function F(e){let i=B(e);if(!i||Le())return;e.dataset.leaving="",e.style.transition=`transform ${y}ms var(--ease-out), opacity ${y}ms var(--ease-out)`,e.style.transform="translate3d(110%, 0, 0)",e.style.opacity="0",await I(y),i.style.height=`${i.offsetHeight}px`,i.getBoundingClientRect(),i.style.transition=`height ${L}ms var(--ease-out), margin-bottom ${L}ms var(--ease-out)`,i.style.height="0px",i.style.marginBottom="calc(var(--space-1) * -1)",await I(L)}function _(e){let i=[...e.closest(h)?.querySelectorAll(`${w} .thread-link`)??[]],n=e.querySelector(".thread-link"),o=n?i.indexOf(n):-1;if(document.activeElement&&!e.contains(document.activeElement))return;(i[o+1]??i[o-1]??e.closest(h)?.querySelector("summary"))?.closest("a, summary")?.focus()}async function T(e){let i=e.dataset.thread;if(!i||!m(e)||e.dataset.leaving!==void 0)return;if(_(e),await F(e),!await Nr(i))q(e);delete e.dataset.leaving}function M(e,i,n){let o=[];if(m(e))o.push({id:"clear",label:t("Clear this thread"),icon:"trash",tone:"danger",run:()=>T(e)});let l=X(e),f=e.closest(h)?.dataset.parent||void 0;if(l.length>0)o.push({id:"clear-all",label:t("Clear all finished"),icon:"trash",tone:"danger",run:()=>Xr(f,l)});pe({title:e.querySelector(".thread-title")?.textContent??"",items:o,at:i,via:n,source:e.querySelector(".thread-link")??e})}var O=(e)=>{if(e.cancelable)e.preventDefault()};function W(e,i){let n=e.at(-1);if(!n||i-n.t>C)return 0;let o=e.find((l)=>n.t-l.t<=C);if(!o||n.t<=o.t)return 0;return(n.x-o.x)/(n.t-o.t)}function z(e){let i=gr(),n,o=!1,l=()=>{n?.press.cancel(),window.removeEventListener("touchmove",O),n=void 0},f=(s)=>{if(o=!1,s.pointerType==="mouse"||!s.isPrimary)return;let r=g(s.target);if(!r||s.target.closest(".thread-more"))return;l();let a={x:s.clientX,y:s.clientY},c=new mn((d)=>{if(o=!0,typeof navigator.vibrate==="function")navigator.vibrate(10);if(n)n.state="reject";v(r),M(r,d,"hold")});c.begin(a.x,a.y),n={id:s.pointerId,card:r,origin:a,press:c,swipes:!Xn(a.x,window.innerWidth),state:"wait",offset:0,samples:[{x:a.x,t:s.timeStamp}]}},v=(s)=>{if(s.dataset.leaving!==void 0)return;delete s.dataset.armed,s.style.transition=`transform ${Le()?0:y}ms var(--ease-out)`,s.style.transform=""},x=(s)=>{if(!n||n.id!==s.pointerId)return;let{card:r}=n,a=s.clientX-n.origin.x,c=s.clientY-n.origin.y;if(n.state==="wait"){n.press.move(s.clientX,s.clientY);let p=Math.abs(a);if(!n.swipes)return;if(p>=E&&p>Fo*Math.abs(c)){if(n.state=a>0?"drag":"reject",n.state==="drag")n.press.cancel(),r.style.transition="none",window.addEventListener("touchmove",O,{passive:!1})}else if(Math.abs(c)>=E)n.state="reject";if(n.state!=="drag")return}if(n.state!=="drag")return;let d=Math.max(0,a-E),u=r.offsetWidth||1;if(n.offset=m(r)?Math.min(d,u):Math.min(R,d*0.3),n.samples.push({x:s.clientX,t:s.timeStamp}),r.style.transform=`translate3d(${n.offset}px, 0, 0)`,m(r))if(Wi(n.offset/u,0))r.dataset.armed="";else delete r.dataset.armed},H=(s)=>{if(!n||n.id!==s.pointerId)return;let{card:r,state:a,offset:c,samples:d}=n,u=n.press.end();if(l(),u)o=!0;if(a!=="drag")return;o=!0;let p=r.offsetWidth||1,A=W(d,s.timeStamp);if(m(r)&&c>E&&Wi(c/p,A))T(r);else v(r)},b=(s)=>{if(!n||n.id!==s.pointerId)return;let{card:r,state:a}=n;if(l(),a==="drag")v(r)},S=(s)=>{let r=g(s.target);if(!r)return;if(s.preventDefault(),o)return;n?.press.cancel(),M(r,{x:s.clientX,y:s.clientY},"contextmenu")},P=(s)=>{o=!1;let r=g(s.target);if(!r)return;if(s.key==="Delete"&&m(r))s.preventDefault(),T(r);else if(s.key==="ContextMenu"||s.key==="F10"&&s.shiftKey){s.preventDefault();let a=r.getBoundingClientRect();M(r,{x:a.left+Math.min(a.width/2,48),y:a.top+24},"key")}},k=(s)=>{if(!o)return;o=!1,s.preventDefault(),s.stopPropagation()},D=(s)=>{if(g(s.target))s.preventDefault()};return e.addEventListener("pointerdown",f),e.addEventListener("pointermove",x),e.addEventListener("pointerup",H),e.addEventListener("pointercancel",b),e.addEventListener("contextmenu",S),e.addEventListener("keydown",P),e.addEventListener("click",k,!0),e.addEventListener("dragstart",D),()=>{l(),i(),e.removeEventListener("pointerdown",f),e.removeEventListener("pointermove",x),e.removeEventListener("pointerup",H),e.removeEventListener("pointercancel",b),e.removeEventListener("contextmenu",S),e.removeEventListener("keydown",P),e.removeEventListener("click",k,!0),e.removeEventListener("dragstart",D)}}export{z as attachThreadCards,M as openCardMenu};
1
+ import{t,Pe,me,On,us,Vn,sr}from"./chunk-index-cn49mawx.js";import{Yr,jr}from"./chunk-index-5t2jkecy.js";import{wr}from"./chunk-index-2tr41qht.js";import"./chunk-index-s53bxwkk.js";var E=12,R=24,y=180,L=150,C=100,w=".thread-card",h=".thread-group",g=(e)=>e instanceof Element?e.closest(w):null,B=(e)=>e.closest("li"),m=(e)=>e.dataset.closed==="",I=(e)=>new Promise((i)=>setTimeout(i,e));function X(e){return[...e.closest(h)?.querySelectorAll(`${w}[data-closed]`)??[]].flatMap((n)=>n.dataset.thread?[n.dataset.thread]:[])}function q(e){let i=B(e);if(delete e.dataset.armed,e.style.transition="",e.style.transform="",e.style.opacity="",i)i.style.transition="",i.style.height="",i.style.marginBottom="",i.style.opacity=""}async function F(e){let i=B(e);if(!i||Pe())return;e.dataset.leaving="",e.style.transition=`transform ${y}ms var(--ease-out), opacity ${y}ms var(--ease-out)`,e.style.transform="translate3d(110%, 0, 0)",e.style.opacity="0",await I(y),i.style.height=`${i.offsetHeight}px`,i.getBoundingClientRect(),i.style.transition=`height ${L}ms var(--ease-out), margin-bottom ${L}ms var(--ease-out)`,i.style.height="0px",i.style.marginBottom="calc(var(--space-1) * -1)",await I(L)}function _(e){let i=[...e.closest(h)?.querySelectorAll(`${w} .thread-link`)??[]],n=e.querySelector(".thread-link"),o=n?i.indexOf(n):-1;if(document.activeElement&&!e.contains(document.activeElement))return;(i[o+1]??i[o-1]??e.closest(h)?.querySelector("summary"))?.closest("a, summary")?.focus()}async function T(e){let i=e.dataset.thread;if(!i||!m(e)||e.dataset.leaving!==void 0)return;if(_(e),await F(e),!await Yr(i))q(e);delete e.dataset.leaving}function M(e,i,n){let o=[];if(m(e))o.push({id:"clear",label:t("Clear this thread"),icon:"trash",tone:"danger",run:()=>T(e)});let l=X(e),f=e.closest(h)?.dataset.parent||void 0;if(l.length>0)o.push({id:"clear-all",label:t("Clear all finished"),icon:"trash",tone:"danger",run:()=>jr(f,l)});me({title:e.querySelector(".thread-title")?.textContent??"",items:o,at:i,via:n,source:e.querySelector(".thread-link")??e})}var O=(e)=>{if(e.cancelable)e.preventDefault()};function W(e,i){let n=e.at(-1);if(!n||i-n.t>C)return 0;let o=e.find((l)=>n.t-l.t<=C);if(!o||n.t<=o.t)return 0;return(n.x-o.x)/(n.t-o.t)}function z(e){let i=wr(),n,o=!1,l=()=>{n?.press.cancel(),window.removeEventListener("touchmove",O),n=void 0},f=(s)=>{if(o=!1,s.pointerType==="mouse"||!s.isPrimary)return;let r=g(s.target);if(!r||s.target.closest(".thread-more"))return;l();let a={x:s.clientX,y:s.clientY},c=new On((d)=>{if(o=!0,typeof navigator.vibrate==="function")navigator.vibrate(10);if(n)n.state="reject";v(r),M(r,d,"hold")});c.begin(a.x,a.y),n={id:s.pointerId,card:r,origin:a,press:c,swipes:!Vn(a.x,window.innerWidth),state:"wait",offset:0,samples:[{x:a.x,t:s.timeStamp}]}},v=(s)=>{if(s.dataset.leaving!==void 0)return;delete s.dataset.armed,s.style.transition=`transform ${Pe()?0:y}ms var(--ease-out)`,s.style.transform=""},x=(s)=>{if(!n||n.id!==s.pointerId)return;let{card:r}=n,a=s.clientX-n.origin.x,c=s.clientY-n.origin.y;if(n.state==="wait"){n.press.move(s.clientX,s.clientY);let p=Math.abs(a);if(!n.swipes)return;if(p>=E&&p>us*Math.abs(c)){if(n.state=a>0?"drag":"reject",n.state==="drag")n.press.cancel(),r.style.transition="none",window.addEventListener("touchmove",O,{passive:!1})}else if(Math.abs(c)>=E)n.state="reject";if(n.state!=="drag")return}if(n.state!=="drag")return;let d=Math.max(0,a-E),u=r.offsetWidth||1;if(n.offset=m(r)?Math.min(d,u):Math.min(R,d*0.3),n.samples.push({x:s.clientX,t:s.timeStamp}),r.style.transform=`translate3d(${n.offset}px, 0, 0)`,m(r))if(sr(n.offset/u,0))r.dataset.armed="";else delete r.dataset.armed},H=(s)=>{if(!n||n.id!==s.pointerId)return;let{card:r,state:a,offset:c,samples:d}=n,u=n.press.end();if(l(),u)o=!0;if(a!=="drag")return;o=!0;let p=r.offsetWidth||1,A=W(d,s.timeStamp);if(m(r)&&c>E&&sr(c/p,A))T(r);else v(r)},b=(s)=>{if(!n||n.id!==s.pointerId)return;let{card:r,state:a}=n;if(l(),a==="drag")v(r)},S=(s)=>{let r=g(s.target);if(!r)return;if(s.preventDefault(),o)return;n?.press.cancel(),M(r,{x:s.clientX,y:s.clientY},"contextmenu")},P=(s)=>{o=!1;let r=g(s.target);if(!r)return;if(s.key==="Delete"&&m(r))s.preventDefault(),T(r);else if(s.key==="ContextMenu"||s.key==="F10"&&s.shiftKey){s.preventDefault();let a=r.getBoundingClientRect();M(r,{x:a.left+Math.min(a.width/2,48),y:a.top+24},"key")}},k=(s)=>{if(!o)return;o=!1,s.preventDefault(),s.stopPropagation()},D=(s)=>{if(g(s.target))s.preventDefault()};return e.addEventListener("pointerdown",f),e.addEventListener("pointermove",x),e.addEventListener("pointerup",H),e.addEventListener("pointercancel",b),e.addEventListener("contextmenu",S),e.addEventListener("keydown",P),e.addEventListener("click",k,!0),e.addEventListener("dragstart",D),()=>{l(),i(),e.removeEventListener("pointerdown",f),e.removeEventListener("pointermove",x),e.removeEventListener("pointerup",H),e.removeEventListener("pointercancel",b),e.removeEventListener("contextmenu",S),e.removeEventListener("keydown",P),e.removeEventListener("click",k,!0),e.removeEventListener("dragstart",D)}}export{z as attachThreadCards,M as openCardMenu};
@@ -0,0 +1,217 @@
1
+ import{p,j,o,a,t,K,g,e,n,s,x,l,M,_,xe,J,Ki,Ue,jt,qn,Sn,Nt}from"./chunk-index-cn49mawx.js";var C="roundtable-console:helpers-folded";function Z(){try{let i=localStorage.getItem(C),r=i?JSON.parse(i):{};if(typeof r!=="object"||r===null||Array.isArray(r))return{};return Object.fromEntries(Object.entries(r).filter((d)=>typeof d[1]==="boolean"))}catch{return{}}}var N,{emit:z,use:O}=M(),H=()=>(N??=Z(),N);function E(i,r){return O(H)[i]??!r}function L(i,r){N={...H(),[i]:r};try{localStorage.setItem(C,JSON.stringify(N))}catch{}z()}var T=!1;function D(){if(T||typeof document>"u")return;if(T=!0,typeof CSSStyleSheet<"u"&&"adoptedStyleSheets"in Document.prototype)try{let r=new CSSStyleSheet;r.replaceSync(`
2
+ .helper-group {
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: var(--space-1);
6
+ margin: var(--space-2) 0 var(--space-2) var(--space-5);
7
+ }
8
+
9
+ .helper-head {
10
+ display: flex;
11
+ align-items: center;
12
+ gap: var(--space-2);
13
+ min-height: 2rem;
14
+ padding: 0 var(--space-2);
15
+ border: 0;
16
+ background: transparent;
17
+ color: var(--muted);
18
+ font-size: var(--text-xs);
19
+ font-weight: var(--weight-medium);
20
+ text-align: left;
21
+ }
22
+
23
+ .helper-head::before {
24
+ content: "";
25
+ flex: none;
26
+ width: 0.5rem;
27
+ height: 0.5rem;
28
+ border-right: 2px solid currentColor;
29
+ border-bottom: 2px solid currentColor;
30
+ transform: rotate(-45deg);
31
+ transition: transform 120ms var(--ease-out);
32
+ }
33
+
34
+ .helper-head[aria-expanded="true"]::before {
35
+ transform: rotate(45deg);
36
+ }
37
+
38
+ .helper-list {
39
+ display: flex;
40
+ flex-direction: column;
41
+ gap: 2px;
42
+ margin: 0;
43
+ padding: 0;
44
+ list-style: none;
45
+ }
46
+
47
+ .helper-link {
48
+ display: flex;
49
+ align-items: center;
50
+ gap: var(--space-2);
51
+ min-width: 0;
52
+ min-height: var(--touch);
53
+ padding: 0 var(--space-3);
54
+ border-radius: var(--radius);
55
+ color: inherit;
56
+ text-decoration: none;
57
+ }
58
+
59
+ .helper-link:hover {
60
+ background: var(--surface-2);
61
+ }
62
+
63
+ .helper-link[aria-current="page"] {
64
+ background: var(--accent-soft);
65
+ }
66
+
67
+ .helper-link strong {
68
+ min-width: 0;
69
+ overflow: hidden;
70
+ font-weight: var(--weight-medium);
71
+ text-overflow: ellipsis;
72
+ white-space: nowrap;
73
+ }
74
+
75
+ .helper-state {
76
+ display: flex;
77
+ flex: none;
78
+ align-items: center;
79
+ gap: var(--space-2);
80
+ margin-left: auto;
81
+ color: var(--muted);
82
+ font-size: var(--text-xs);
83
+ }
84
+
85
+ .helper-link[data-finished] strong,
86
+ .helper-link[data-finished] .helper-state {
87
+ opacity: 0.6;
88
+ }
89
+
90
+ .helper-dot {
91
+ width: 0.5rem;
92
+ height: 0.5rem;
93
+ border-radius: 50%;
94
+ background: var(--accent);
95
+ animation: helper-pulse 1.2s ease-in-out infinite;
96
+ }
97
+
98
+ @keyframes helper-pulse {
99
+ 50% {
100
+ opacity: 0.35;
101
+ }
102
+ }
103
+
104
+ @media (prefers-reduced-motion: reduce) {
105
+ .helper-dot {
106
+ animation: none;
107
+ }
108
+ }
109
+ `),document.adoptedStyleSheets=[...document.adoptedStyleSheets,r];return}catch{}let i=document.createElement("style");i.textContent=`
110
+ .helper-group {
111
+ display: flex;
112
+ flex-direction: column;
113
+ gap: var(--space-1);
114
+ margin: var(--space-2) 0 var(--space-2) var(--space-5);
115
+ }
116
+
117
+ .helper-head {
118
+ display: flex;
119
+ align-items: center;
120
+ gap: var(--space-2);
121
+ min-height: 2rem;
122
+ padding: 0 var(--space-2);
123
+ border: 0;
124
+ background: transparent;
125
+ color: var(--muted);
126
+ font-size: var(--text-xs);
127
+ font-weight: var(--weight-medium);
128
+ text-align: left;
129
+ }
130
+
131
+ .helper-head::before {
132
+ content: "";
133
+ flex: none;
134
+ width: 0.5rem;
135
+ height: 0.5rem;
136
+ border-right: 2px solid currentColor;
137
+ border-bottom: 2px solid currentColor;
138
+ transform: rotate(-45deg);
139
+ transition: transform 120ms var(--ease-out);
140
+ }
141
+
142
+ .helper-head[aria-expanded="true"]::before {
143
+ transform: rotate(45deg);
144
+ }
145
+
146
+ .helper-list {
147
+ display: flex;
148
+ flex-direction: column;
149
+ gap: 2px;
150
+ margin: 0;
151
+ padding: 0;
152
+ list-style: none;
153
+ }
154
+
155
+ .helper-link {
156
+ display: flex;
157
+ align-items: center;
158
+ gap: var(--space-2);
159
+ min-width: 0;
160
+ min-height: var(--touch);
161
+ padding: 0 var(--space-3);
162
+ border-radius: var(--radius);
163
+ color: inherit;
164
+ text-decoration: none;
165
+ }
166
+
167
+ .helper-link:hover {
168
+ background: var(--surface-2);
169
+ }
170
+
171
+ .helper-link[aria-current="page"] {
172
+ background: var(--accent-soft);
173
+ }
174
+
175
+ .helper-link strong {
176
+ min-width: 0;
177
+ overflow: hidden;
178
+ font-weight: var(--weight-medium);
179
+ text-overflow: ellipsis;
180
+ white-space: nowrap;
181
+ }
182
+
183
+ .helper-state {
184
+ display: flex;
185
+ flex: none;
186
+ align-items: center;
187
+ gap: var(--space-2);
188
+ margin-left: auto;
189
+ color: var(--muted);
190
+ font-size: var(--text-xs);
191
+ }
192
+
193
+ .helper-link[data-finished] strong,
194
+ .helper-link[data-finished] .helper-state {
195
+ opacity: 0.6;
196
+ }
197
+
198
+ .helper-dot {
199
+ width: 0.5rem;
200
+ height: 0.5rem;
201
+ border-radius: 50%;
202
+ background: var(--accent);
203
+ animation: helper-pulse 1.2s ease-in-out infinite;
204
+ }
205
+
206
+ @keyframes helper-pulse {
207
+ 50% {
208
+ opacity: 0.35;
209
+ }
210
+ }
211
+
212
+ @media (prefers-reduced-motion: reduce) {
213
+ .helper-dot {
214
+ animation: none;
215
+ }
216
+ }
217
+ `,document.head.append(i)}D();var P=j(function(r){let{view:d}=r,m=d.helper?.finished===!0;return e("li",{children:n("a",{className:"helper-link",href:x("room",d.key),"data-helper":d.name,"data-finished":m?"":void 0,"aria-current":r.active?"page":void 0,children:[e(Ue,{view:d,size:20}),e("strong",{children:d.displayName}),e(jt,{room:d.key}),n("span",{className:"helper-state",children:[r.waiting?e(Sn,{count:r.waiting}):null,!m&&!r.waiting?e("span",{className:"helper-dot",role:"img","aria-label":t("Working")}):null,m?e("span",{children:t("Ended")}):null,m&&r.at?e("span",{className:"room-row-time",children:xe(r.at,r.now,r.timeZone)}):null]})]})})});function F(i){let{now:r}=J(),{timeZone:d}=_(),m=Nt(i.keys),w=m.some((h)=>h.view.helper?.finished!==!0),u=i.parent??"",y=!E(u,w)||m.some((h)=>h.key===i.active)?m:[];if(m.length===0)return null;return n("div",{className:"helper-group","data-parent":i.parent,children:[e("button",{type:"button",className:"helper-head","aria-expanded":y.length>0,onClick:()=>L(u,y.length>0),children:K(m.length,"{count} temp knight","{count} temp knights")}),y.length>0?e("ul",{className:"helper-list",children:y.map(({key:h,...v})=>e(P,{...v,active:h===i.active,now:r,timeZone:d},h))}):null]})}var I=j(function(r){let{view:d,parent:m}=r,w=Ki(d.key),u=Boolean(d.closed);return n("li",{className:"thread-item",children:[u?n("span",{className:"thread-reveal","aria-hidden":"true",children:[e(s,{name:"trash",size:18}),t("Clear")]}):null,n("div",{className:"thread-card","data-hold":"row","data-thread":d.key,"data-closed":u?"":void 0,style:w,children:[n("a",{className:"thread-link",href:x("room",d.key),"aria-current":r.active?"page":void 0,children:[m?e(Ue,{view:m,size:36}):e(s,{name:"conversations",size:20,className:"thread-row-icon"}),n("span",{className:"thread-card-main",children:[n("span",{className:"thread-card-top",children:[e("strong",{className:"thread-title",children:d.displayName}),e(jt,{room:d.key})]}),n("span",{className:"thread-card-meta",children:[r.typing?e(qn,{}):null,e("span",{className:u?"badge":"badge badge-accent",children:u?t("Finished"):t("In progress")}),r.waiting?e(Sn,{count:r.waiting}):null,e("span",{className:"room-row-time",children:r.at?xe(r.at,r.now,r.timeZone):""})]})]})]}),u?e("button",{type:"button",className:"thread-more","aria-haspopup":"menu","aria-label":t("More actions for {name}",{name:d.displayName}),onClick:(f)=>{let y=f.currentTarget,h=y.closest(".thread-card"),v=y.getBoundingClientRect();if(h)(p("kgt22sbp"),import("./chunk-thread-cards-kgt22sbp.js")).then((k)=>k.openCardMenu(h,{x:v.right,y:v.bottom},"key"))},children:e(s,{name:"more",size:18})}):null]})]})});function A(i){let{now:r}=J(),{timeZone:d}=_(),m=Nt(i.open),w=m.filter((c)=>c.view.helper).map((c)=>c.key),u=m.filter((c)=>!c.view.helper),f=Nt(i.closed),y=l((c)=>i.parent?c.rooms[i.parent]?.view:void 0,i.parent??""),h=a(null),v=u.length+f.length>0;if(o(()=>{let c=h.current;if(!v||!c)return;let b=!1,S;return (p("kgt22sbp"),import("./chunk-thread-cards-kgt22sbp.js")).then((R)=>{if(!b)S=R.attachThreadCards(c)}),()=>{b=!0,S?.()}},[v]),!v&&w.length===0)return null;let k=({key:c,...b})=>e(I,{...b,active:c===i.active,now:r,timeZone:d,parent:y},c);if(!v)return e(F,{keys:w,parent:i.parent,active:i.active});return n(g,{children:[w.length?e(F,{keys:w,parent:i.parent,active:i.active}):null,n("div",{className:"thread-group",ref:h,"data-parent":i.parent,children:[u.length?e("ul",{className:"thread-list","aria-label":t("Dispatch threads"),children:u.map(k)}):null,f.length?n("div",{className:"thread-finished",children:[n("details",{className:"thread-closed",...f.some((c)=>c.key===i.active)?{open:!0}:{},children:[e("summary",{children:K(f.length,"{count} finished thread","{count} finished threads")}),e("ul",{className:"thread-list",children:f.map(k)})]}),e("button",{type:"button",className:"thread-clear",onClick:()=>(p("926eab0w"),import("./chunk-thread-actions-926eab0w.js")).then((c)=>c.clearFinished(i.parent,f.map((b)=>b.key))),children:t("Clear finished")})]}):null]})]})}export{A as default};
@@ -0,0 +1 @@
1
+ import{o,z,a,r,t,u,g,e,n,x,y,v,m,k,T,_,re,vi}from"./chunk-index-cn49mawx.js";import{ve}from"./chunk-index-gcmmwh8t.js";import{Te}from"./chunk-index-e35v554x.js";function P({conversationKey:s}){let[c,N]=r(),p=z(),d=a(!1),{data:i,error:h}=ve(()=>y.transcript(s,c),`${s}|${c??""}`);o(()=>{if(i&&!d.current)d.current=!0,window.scrollTo(0,document.body.scrollHeight)},[i]);let w=n("a",{className:"back",href:x("conversations"),children:["← ",t("Conversations")]});if(!i)return n(g,{children:[w,h?e(m,{message:h}):e(v,{})]});let{conversation:f}=i,E=f.kind==="outside"?t("Outside AI client · {id}",{id:f.id.slice(0,8)}):vi(f);return n(g,{children:[w,n("section",{className:"stack",children:[n("div",{className:"card-head",children:[e("h2",{children:E}),f.busy>0?e(T,{tone:"busy",children:t("running")}):null]}),i.archives.length>0?n("label",{className:"inline",htmlFor:p,children:[t("Showing")," ",n(Te,{id:p,value:c??"",onChange:(l)=>{d.current=!1,N(l.target.value||void 0)},children:[e("option",{value:"",children:t("Current conversation")}),i.archives.map((l)=>e("option",{value:l,children:t("Archived {name}",{name:l})},l))]})]}):null,h?e(m,{message:h}):null,i.truncated?e("p",{className:"hint",children:t("This conversation is longer than the console reads; the oldest entries are not shown.")}):null,i.entries.length===0?e(k,{children:t("Nothing to show.")}):null,e("ol",{className:"transcript",children:i.entries.map((l,b)=>e(S,{entry:l},b))})]})]})}function S({entry:s}){let{timeZone:c}=_(),N=s.at?re(s.at,c):"";if(s.role==="tool")return e("li",{className:"entry entry-tool",children:n("details",{children:[n("summary",{children:[s.failed?t("Tool failed"):t("Tool result"),s.tool?` · ${s.tool}`:""]}),e("pre",{children:s.text||t("(empty)")})]})});return n("li",{className:`entry entry-${s.role}`,children:[n("div",{className:"entry-head",children:[e("span",{className:"role",children:t(A[s.role])}),e("span",{className:"meta",children:N})]}),s.text?e("p",{className:"text",children:s.text}):null,s.calls?.map((p,d)=>n("code",{className:"call",children:[p.name," ",p.preview]},d))]})}var A={user:u("User"),assistant:u("Knight"),tool:u("Tool"),compaction:u("Summary of earlier conversation")};export{P as TranscriptPage};
@@ -0,0 +1 @@
1
+ import{cn,oa,qi,Rr,Bi,Cr,Er,fi,Fi}from"./chunk-index-h2vhv4kh.js";export{fi as cardSlot,qi as closeWaitingList,Bi as jumpToCard,oa as openWaiting,Fi as showCard,Er as targetShown,Cr as useTarget,Rr as useWaitingList,cn as waitingList};
@@ -0,0 +1,28 @@
1
+ import{o,r,K,e,n,s,l}from"./chunk-index-cn49mawx.js";import{cn,Cr,Er,fi,Fi}from"./chunk-index-h2vhv4kh.js";import{se}from"./chunk-index-amxa2bn3.js";var M=1500,E=`
2
+ .waiting-chip-slot {
3
+ position: relative;
4
+ z-index: 3;
5
+ height: 0;
6
+ }
7
+
8
+ .waiting-chip {
9
+ position: absolute;
10
+ top: var(--space-2);
11
+ left: 50%;
12
+ min-height: 2.25rem;
13
+ padding: 0 var(--space-3);
14
+ border-radius: var(--radius-full);
15
+ border-color: transparent;
16
+ background: var(--warn);
17
+ color: var(--bg);
18
+ box-shadow: var(--shadow-2);
19
+ transform: translateX(-50%);
20
+ animation: toast-in var(--dur-slow) var(--ease-spring) both;
21
+ }
22
+
23
+ .slot[data-lit] > .prompt {
24
+ outline: 3px solid var(--warn);
25
+ outline-offset: 3px;
26
+ transition: outline-color var(--dur-slow) var(--ease-out);
27
+ }
28
+ `;function I(S){se("waiting",E);let{roomKey:b,scroller:p,loaded:w}=S,c=l((t)=>cn(t).filter((a)=>a.card.room===b).map((a)=>a.id).join(" "),b),d=Cr(),[T,y]=r([]);o(()=>{let t=p.current;if(!t||!w||typeof IntersectionObserver>"u")return;let a=new Map,m=new IntersectionObserver((u)=>{for(let i of u){let f=i.target.dataset.card;if(f)a.set(f,i.isIntersecting)}y([...a].flatMap(([i,f])=>f?[]:[i]))},{root:t});for(let u of c.split(" ")){let i=u?fi(t,u):void 0;if(i)m.observe(i)}return()=>m.disconnect()},[c,p,w]),o(()=>{let t=p.current;if(!t||!w||!d||!c.split(" ").includes(d))return;let a,m=()=>{let g=fi(t,d);if(!g||g===a)return;a=g,Fi(t,d)},u=requestAnimationFrame(m),i=typeof MutationObserver>"u"?void 0:new MutationObserver(m);i?.observe(t,{childList:!0,subtree:!0});let f=setTimeout(()=>Er(d),M);return()=>{cancelAnimationFrame(u),i?.disconnect(),clearTimeout(f)}},[w,d,c,p]);let h=c?c.split(" ").length:0,[v]=T;return e("div",{className:"waiting-chip-slot",children:v&&h?n("button",{type:"button",className:"waiting-chip",onClick:()=>Fi(p.current,v),children:[e(s,{name:"shield",size:16}),K(h,"{count} card waiting for an answer","{count} cards waiting for an answer")]}):null})}export{I as default};
@@ -0,0 +1 @@
1
+ import{$n,Qr}from"./chunk-index-zt19fdmc.js";export{$n as currentQuery,Qr as followUrl};