@saluzi/saluzi-edu 0.7.32 → 0.7.34

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 (158) hide show
  1. package/dist/cli.js +47 -47
  2. package/dist/rcs-web/assets/{AdminPanel-BEIm2F_-.js → AdminPanel-gJWYsoQr.js} +1 -1
  3. package/dist/rcs-web/assets/{ArtifactView-CZKO-Ra0.js → ArtifactView-Dcn-Ytyf.js} +1 -1
  4. package/{packages/remote-control-server/web/dist/assets/ArtifactsGallery-kBspV_gT.js → dist/rcs-web/assets/ArtifactsGallery-DTDBumAW.js} +1 -1
  5. package/{packages/remote-control-server/web/dist/assets/Claim-ClIDCsLg.js → dist/rcs-web/assets/Claim-B8s9SPXu.js} +1 -1
  6. package/dist/rcs-web/assets/{Dashboard-B0C1Kjb8.js → Dashboard-aB82EvLp.js} +1 -1
  7. package/dist/rcs-web/assets/{Join-D5QrMyg3.js → Join-Sn3AKhd-.js} +1 -1
  8. package/{packages/remote-control-server/web/dist/assets/Login-D57h9EIo.js → dist/rcs-web/assets/Login-CezyYoqD.js} +1 -1
  9. package/dist/rcs-web/assets/{MemoriesPage-CAGpiSYE.js → MemoriesPage-Wz2xm_Sx.js} +1 -1
  10. package/dist/rcs-web/assets/{MemoryTypeChips-z_9ym6v4.js → MemoryTypeChips-DuOHvrLG.js} +1 -1
  11. package/dist/rcs-web/assets/{Register-DOpczMOw.js → Register-DgD1eDUW.js} +1 -1
  12. package/dist/rcs-web/assets/{RegisterEmpty-CXI0Ojtl.js → RegisterEmpty-Bp4ijU6c.js} +1 -1
  13. package/dist/rcs-web/assets/{SessionDetail-Pa_3-tHC.js → SessionDetail-D580xm-q.js} +2 -2
  14. package/dist/rcs-web/assets/{SessionVisibilityBadge-Ms42FP3g.js → SessionVisibilityBadge-hjXhLkpx.js} +1 -1
  15. package/dist/rcs-web/assets/{Setup-BaeUxMJW.js → Setup-PlsB2xkS.js} +1 -1
  16. package/dist/rcs-web/assets/{ShareLanding-BAz-ruFE.js → ShareLanding-CZcA2cNQ.js} +1 -1
  17. package/{packages/remote-control-server/web/dist/assets/TeamDetail-D-pSnwNJ.js → dist/rcs-web/assets/TeamDetail-Dk_93Z0k.js} +1 -1
  18. package/dist/rcs-web/assets/{TeamList-DYShr8dY.js → TeamList-CijY_W_f.js} +1 -1
  19. package/dist/rcs-web/assets/{TeamSettings-_yqhv9CX.js → TeamSettings-C3M-aGm0.js} +1 -1
  20. package/dist/rcs-web/assets/{UserSearchInput-DWNXdEsr.js → UserSearchInput-BHQO5MGU.js} +1 -1
  21. package/dist/rcs-web/assets/{UserSettings-CDyon2Tx.js → UserSettings-DumkRY-s.js} +1 -1
  22. package/dist/rcs-web/assets/{arc-N7vJOveK.js → arc-B_Bgarfu.js} +1 -1
  23. package/dist/rcs-web/assets/{architectureDiagram-3BPJPVTR-CkEgO9_z.js → architectureDiagram-3BPJPVTR-DfVLTz_r.js} +1 -1
  24. package/{packages/remote-control-server/web/dist/assets/blockDiagram-GPEHLZMM-C8o_A8Ug.js → dist/rcs-web/assets/blockDiagram-GPEHLZMM-DDZ7y1j3.js} +1 -1
  25. package/dist/rcs-web/assets/{c4Diagram-AAUBKEIU-BO09Cv6-.js → c4Diagram-AAUBKEIU-CRCn_dZ4.js} +1 -1
  26. package/dist/rcs-web/assets/channel-Cl-DZrA-.js +1 -0
  27. package/dist/rcs-web/assets/{chunk-2J33WTMH-DPjN7DwE.js → chunk-2J33WTMH-CB7J33fu.js} +1 -1
  28. package/dist/rcs-web/assets/{chunk-4BX2VUAB-gr9RFplW.js → chunk-4BX2VUAB-CsGAZA3y.js} +1 -1
  29. package/dist/rcs-web/assets/{chunk-55IACEB6-icITUMdQ.js → chunk-55IACEB6-BMq3yddb.js} +1 -1
  30. package/{packages/remote-control-server/web/dist/assets/chunk-727SXJPM-ZiUuR6Cv.js → dist/rcs-web/assets/chunk-727SXJPM-BkZTIlHS.js} +1 -1
  31. package/{packages/remote-control-server/web/dist/assets/chunk-AQP2D5EJ-tQCs9xo6.js → dist/rcs-web/assets/chunk-AQP2D5EJ-CsiM2lma.js} +1 -1
  32. package/dist/rcs-web/assets/{chunk-FMBD7UC4-CHBO5gWz.js → chunk-FMBD7UC4-CMzmGgg8.js} +1 -1
  33. package/dist/rcs-web/assets/{chunk-ND2GUHAM-CPtJyPU9.js → chunk-ND2GUHAM-CvXQ2BBP.js} +1 -1
  34. package/dist/rcs-web/assets/{chunk-QZHKN3VN-Bx0fzAHm.js → chunk-QZHKN3VN-De77sr34.js} +1 -1
  35. package/dist/rcs-web/assets/classDiagram-4FO5ZUOK-BiAxDlqk.js +1 -0
  36. package/dist/rcs-web/assets/classDiagram-v2-Q7XG4LA2-BiAxDlqk.js +1 -0
  37. package/dist/rcs-web/assets/{code-block-IT6T5CEO-Bl9-7K3a.js → code-block-IT6T5CEO-BbUag7xL.js} +1 -1
  38. package/dist/rcs-web/assets/{copy-5Km5hy3S.js → copy-D0pf7ohg.js} +1 -1
  39. package/dist/rcs-web/assets/{cose-bilkent-S5V4N54A-B1pnWHlH.js → cose-bilkent-S5V4N54A-cCqCJZ0k.js} +1 -1
  40. package/dist/rcs-web/assets/{dagre-BM42HDAG-BtB8DAeJ.js → dagre-BM42HDAG-3e2AVH4q.js} +1 -1
  41. package/dist/rcs-web/assets/{diagram-2AECGRRQ-bjYozEIc.js → diagram-2AECGRRQ-t5XWI3y7.js} +1 -1
  42. package/dist/rcs-web/assets/{diagram-5GNKFQAL-DGd_hCDQ.js → diagram-5GNKFQAL-Bomno2dS.js} +1 -1
  43. package/{packages/remote-control-server/web/dist/assets/diagram-KO2AKTUF-fyV9evh2.js → dist/rcs-web/assets/diagram-KO2AKTUF-C2hVUfj2.js} +1 -1
  44. package/dist/rcs-web/assets/{diagram-LMA3HP47-C8C4_No7.js → diagram-LMA3HP47-COY_061g.js} +1 -1
  45. package/{packages/remote-control-server/web/dist/assets/diagram-OG6HWLK6-C_nUGwSc.js → dist/rcs-web/assets/diagram-OG6HWLK6-Bau_gRm1.js} +1 -1
  46. package/dist/rcs-web/assets/{dialog-uWDnwMIc.js → dialog-1duL__fs.js} +1 -1
  47. package/{packages/remote-control-server/web/dist/assets/erDiagram-TEJ5UH35-DTiqK_Hx.js → dist/rcs-web/assets/erDiagram-TEJ5UH35-B6o-4kpo.js} +1 -1
  48. package/{packages/remote-control-server/web/dist/assets/flowDiagram-I6XJVG4X-kOJGSsEi.js → dist/rcs-web/assets/flowDiagram-I6XJVG4X-DAraOQo5.js} +1 -1
  49. package/{packages/remote-control-server/web/dist/assets/ganttDiagram-6RSMTGT7-OwiyurnL.js → dist/rcs-web/assets/ganttDiagram-6RSMTGT7-DYJx4lRc.js} +1 -1
  50. package/dist/rcs-web/assets/{gitGraphDiagram-PVQCEYII-BbS1oj-3.js → gitGraphDiagram-PVQCEYII-o4bVF72x.js} +1 -1
  51. package/dist/rcs-web/assets/{infoDiagram-5YYISTIA-CU747Bbf.js → infoDiagram-5YYISTIA-D2udf4lA.js} +1 -1
  52. package/{packages/remote-control-server/web/dist/assets/ishikawaDiagram-YF4QCWOH-5xDBKeSz.js → dist/rcs-web/assets/ishikawaDiagram-YF4QCWOH-B3mNkN5l.js} +1 -1
  53. package/{packages/remote-control-server/web/dist/assets/journeyDiagram-JHISSGLW-Bux1bQDq.js → dist/rcs-web/assets/journeyDiagram-JHISSGLW-Ry1Fr21k.js} +1 -1
  54. package/{packages/remote-control-server/web/dist/assets/kanban-definition-UN3LZRKU-BmC8OpAP.js → dist/rcs-web/assets/kanban-definition-UN3LZRKU-DvxHDfWf.js} +1 -1
  55. package/dist/rcs-web/assets/{linear-DsYTuz04.js → linear-s8jVu6QY.js} +1 -1
  56. package/dist/rcs-web/assets/{main-NnYVszZ7.js → main-Mn7R0A18.js} +5 -5
  57. package/dist/rcs-web/assets/main-oFvzHCs3.css +1 -0
  58. package/{packages/remote-control-server/web/dist/assets/mermaid-VLURNSYL-Bi9iYBgP.js → dist/rcs-web/assets/mermaid-VLURNSYL-z8qNKcJT.js} +4 -4
  59. package/dist/rcs-web/assets/{mermaid.core-DGqdpgkt.js → mermaid.core-B98fAraT.js} +5 -5
  60. package/{packages/remote-control-server/web/dist/assets/mindmap-definition-RKZ34NQL-Bmenu2WL.js → dist/rcs-web/assets/mindmap-definition-RKZ34NQL-Cs7AOVl2.js} +1 -1
  61. package/dist/rcs-web/assets/{notifications-RUHp--2y.js → notifications-C2qTba5c.js} +1 -1
  62. package/dist/rcs-web/assets/{pieDiagram-4H26LBE5-B8iqNkqw.js → pieDiagram-4H26LBE5-BOSw3AKh.js} +1 -1
  63. package/dist/rcs-web/assets/{quadrantDiagram-W4KKPZXB-BXKHIGjZ.js → quadrantDiagram-W4KKPZXB-Be8mhczt.js} +1 -1
  64. package/dist/rcs-web/assets/{refresh-cw-BcXnr-wn.js → refresh-cw-Bo4t-P1R.js} +1 -1
  65. package/{packages/remote-control-server/web/dist/assets/requirementDiagram-4Y6WPE33-nxbFJxBv.js → dist/rcs-web/assets/requirementDiagram-4Y6WPE33-CgI_5y27.js} +1 -1
  66. package/{packages/remote-control-server/web/dist/assets/sankeyDiagram-5OEKKPKP-B7zFzWAp.js → dist/rcs-web/assets/sankeyDiagram-5OEKKPKP-2361M3Hs.js} +1 -1
  67. package/dist/rcs-web/assets/{sequenceDiagram-3UESZ5HK-BDIKJ0rX.js → sequenceDiagram-3UESZ5HK-liblY9ZR.js} +1 -1
  68. package/{packages/remote-control-server/web/dist/assets/stateDiagram-AJRCARHV-CiaXOzte.js → dist/rcs-web/assets/stateDiagram-AJRCARHV-ChgrbHxu.js} +1 -1
  69. package/dist/rcs-web/assets/{stateDiagram-v2-BHNVJYJU-BmMra9py.js → stateDiagram-v2-BHNVJYJU-CVitJD-x.js} +1 -1
  70. package/dist/rcs-web/assets/{timeline-definition-PNZ67QCA-Bg5JXXBp.js → timeline-definition-PNZ67QCA-Cnh3IdcT.js} +1 -1
  71. package/dist/rcs-web/assets/{vennDiagram-CIIHVFJN-u1jwdK8C.js → vennDiagram-CIIHVFJN-0W2x0guu.js} +1 -1
  72. package/dist/rcs-web/assets/{wardleyDiagram-YWT4CUSO-ew2IaFv7.js → wardleyDiagram-YWT4CUSO-BJkcCRAQ.js} +1 -1
  73. package/dist/rcs-web/assets/{workerType-CYFEJHte.js → workerType-BYUJv8QQ.js} +1 -1
  74. package/dist/rcs-web/assets/{xychartDiagram-2RQKCTM6-DIP-YEyl.js → xychartDiagram-2RQKCTM6-BeVIeL0V.js} +1 -1
  75. package/dist/rcs-web/index.html +2 -2
  76. package/package.json +1 -1
  77. package/packages/remote-control-server/web/dist/assets/{AdminPanel-BEIm2F_-.js → AdminPanel-gJWYsoQr.js} +1 -1
  78. package/packages/remote-control-server/web/dist/assets/{ArtifactView-CZKO-Ra0.js → ArtifactView-Dcn-Ytyf.js} +1 -1
  79. package/{dist/rcs-web/assets/ArtifactsGallery-kBspV_gT.js → packages/remote-control-server/web/dist/assets/ArtifactsGallery-DTDBumAW.js} +1 -1
  80. package/{dist/rcs-web/assets/Claim-ClIDCsLg.js → packages/remote-control-server/web/dist/assets/Claim-B8s9SPXu.js} +1 -1
  81. package/packages/remote-control-server/web/dist/assets/{Dashboard-B0C1Kjb8.js → Dashboard-aB82EvLp.js} +1 -1
  82. package/packages/remote-control-server/web/dist/assets/{Join-D5QrMyg3.js → Join-Sn3AKhd-.js} +1 -1
  83. package/{dist/rcs-web/assets/Login-D57h9EIo.js → packages/remote-control-server/web/dist/assets/Login-CezyYoqD.js} +1 -1
  84. package/packages/remote-control-server/web/dist/assets/{MemoriesPage-CAGpiSYE.js → MemoriesPage-Wz2xm_Sx.js} +1 -1
  85. package/packages/remote-control-server/web/dist/assets/{MemoryTypeChips-z_9ym6v4.js → MemoryTypeChips-DuOHvrLG.js} +1 -1
  86. package/packages/remote-control-server/web/dist/assets/{Register-DOpczMOw.js → Register-DgD1eDUW.js} +1 -1
  87. package/packages/remote-control-server/web/dist/assets/{RegisterEmpty-CXI0Ojtl.js → RegisterEmpty-Bp4ijU6c.js} +1 -1
  88. package/packages/remote-control-server/web/dist/assets/{SessionDetail-Pa_3-tHC.js → SessionDetail-D580xm-q.js} +2 -2
  89. package/packages/remote-control-server/web/dist/assets/{SessionVisibilityBadge-Ms42FP3g.js → SessionVisibilityBadge-hjXhLkpx.js} +1 -1
  90. package/packages/remote-control-server/web/dist/assets/{Setup-BaeUxMJW.js → Setup-PlsB2xkS.js} +1 -1
  91. package/packages/remote-control-server/web/dist/assets/{ShareLanding-BAz-ruFE.js → ShareLanding-CZcA2cNQ.js} +1 -1
  92. package/{dist/rcs-web/assets/TeamDetail-D-pSnwNJ.js → packages/remote-control-server/web/dist/assets/TeamDetail-Dk_93Z0k.js} +1 -1
  93. package/packages/remote-control-server/web/dist/assets/{TeamList-DYShr8dY.js → TeamList-CijY_W_f.js} +1 -1
  94. package/packages/remote-control-server/web/dist/assets/{TeamSettings-_yqhv9CX.js → TeamSettings-C3M-aGm0.js} +1 -1
  95. package/packages/remote-control-server/web/dist/assets/{UserSearchInput-DWNXdEsr.js → UserSearchInput-BHQO5MGU.js} +1 -1
  96. package/packages/remote-control-server/web/dist/assets/{UserSettings-CDyon2Tx.js → UserSettings-DumkRY-s.js} +1 -1
  97. package/packages/remote-control-server/web/dist/assets/{arc-N7vJOveK.js → arc-B_Bgarfu.js} +1 -1
  98. package/packages/remote-control-server/web/dist/assets/{architectureDiagram-3BPJPVTR-CkEgO9_z.js → architectureDiagram-3BPJPVTR-DfVLTz_r.js} +1 -1
  99. package/{dist/rcs-web/assets/blockDiagram-GPEHLZMM-C8o_A8Ug.js → packages/remote-control-server/web/dist/assets/blockDiagram-GPEHLZMM-DDZ7y1j3.js} +1 -1
  100. package/packages/remote-control-server/web/dist/assets/{c4Diagram-AAUBKEIU-BO09Cv6-.js → c4Diagram-AAUBKEIU-CRCn_dZ4.js} +1 -1
  101. package/packages/remote-control-server/web/dist/assets/channel-Cl-DZrA-.js +1 -0
  102. package/packages/remote-control-server/web/dist/assets/{chunk-2J33WTMH-DPjN7DwE.js → chunk-2J33WTMH-CB7J33fu.js} +1 -1
  103. package/packages/remote-control-server/web/dist/assets/{chunk-4BX2VUAB-gr9RFplW.js → chunk-4BX2VUAB-CsGAZA3y.js} +1 -1
  104. package/packages/remote-control-server/web/dist/assets/{chunk-55IACEB6-icITUMdQ.js → chunk-55IACEB6-BMq3yddb.js} +1 -1
  105. package/{dist/rcs-web/assets/chunk-727SXJPM-ZiUuR6Cv.js → packages/remote-control-server/web/dist/assets/chunk-727SXJPM-BkZTIlHS.js} +1 -1
  106. package/{dist/rcs-web/assets/chunk-AQP2D5EJ-tQCs9xo6.js → packages/remote-control-server/web/dist/assets/chunk-AQP2D5EJ-CsiM2lma.js} +1 -1
  107. package/packages/remote-control-server/web/dist/assets/{chunk-FMBD7UC4-CHBO5gWz.js → chunk-FMBD7UC4-CMzmGgg8.js} +1 -1
  108. package/packages/remote-control-server/web/dist/assets/{chunk-ND2GUHAM-CPtJyPU9.js → chunk-ND2GUHAM-CvXQ2BBP.js} +1 -1
  109. package/packages/remote-control-server/web/dist/assets/{chunk-QZHKN3VN-Bx0fzAHm.js → chunk-QZHKN3VN-De77sr34.js} +1 -1
  110. package/packages/remote-control-server/web/dist/assets/classDiagram-4FO5ZUOK-BiAxDlqk.js +1 -0
  111. package/packages/remote-control-server/web/dist/assets/classDiagram-v2-Q7XG4LA2-BiAxDlqk.js +1 -0
  112. package/packages/remote-control-server/web/dist/assets/{code-block-IT6T5CEO-Bl9-7K3a.js → code-block-IT6T5CEO-BbUag7xL.js} +1 -1
  113. package/packages/remote-control-server/web/dist/assets/{copy-5Km5hy3S.js → copy-D0pf7ohg.js} +1 -1
  114. package/packages/remote-control-server/web/dist/assets/{cose-bilkent-S5V4N54A-B1pnWHlH.js → cose-bilkent-S5V4N54A-cCqCJZ0k.js} +1 -1
  115. package/packages/remote-control-server/web/dist/assets/{dagre-BM42HDAG-BtB8DAeJ.js → dagre-BM42HDAG-3e2AVH4q.js} +1 -1
  116. package/packages/remote-control-server/web/dist/assets/{diagram-2AECGRRQ-bjYozEIc.js → diagram-2AECGRRQ-t5XWI3y7.js} +1 -1
  117. package/packages/remote-control-server/web/dist/assets/{diagram-5GNKFQAL-DGd_hCDQ.js → diagram-5GNKFQAL-Bomno2dS.js} +1 -1
  118. package/{dist/rcs-web/assets/diagram-KO2AKTUF-fyV9evh2.js → packages/remote-control-server/web/dist/assets/diagram-KO2AKTUF-C2hVUfj2.js} +1 -1
  119. package/packages/remote-control-server/web/dist/assets/{diagram-LMA3HP47-C8C4_No7.js → diagram-LMA3HP47-COY_061g.js} +1 -1
  120. package/{dist/rcs-web/assets/diagram-OG6HWLK6-C_nUGwSc.js → packages/remote-control-server/web/dist/assets/diagram-OG6HWLK6-Bau_gRm1.js} +1 -1
  121. package/packages/remote-control-server/web/dist/assets/{dialog-uWDnwMIc.js → dialog-1duL__fs.js} +1 -1
  122. package/{dist/rcs-web/assets/erDiagram-TEJ5UH35-DTiqK_Hx.js → packages/remote-control-server/web/dist/assets/erDiagram-TEJ5UH35-B6o-4kpo.js} +1 -1
  123. package/{dist/rcs-web/assets/flowDiagram-I6XJVG4X-kOJGSsEi.js → packages/remote-control-server/web/dist/assets/flowDiagram-I6XJVG4X-DAraOQo5.js} +1 -1
  124. package/{dist/rcs-web/assets/ganttDiagram-6RSMTGT7-OwiyurnL.js → packages/remote-control-server/web/dist/assets/ganttDiagram-6RSMTGT7-DYJx4lRc.js} +1 -1
  125. package/packages/remote-control-server/web/dist/assets/{gitGraphDiagram-PVQCEYII-BbS1oj-3.js → gitGraphDiagram-PVQCEYII-o4bVF72x.js} +1 -1
  126. package/packages/remote-control-server/web/dist/assets/{infoDiagram-5YYISTIA-CU747Bbf.js → infoDiagram-5YYISTIA-D2udf4lA.js} +1 -1
  127. package/{dist/rcs-web/assets/ishikawaDiagram-YF4QCWOH-5xDBKeSz.js → packages/remote-control-server/web/dist/assets/ishikawaDiagram-YF4QCWOH-B3mNkN5l.js} +1 -1
  128. package/{dist/rcs-web/assets/journeyDiagram-JHISSGLW-Bux1bQDq.js → packages/remote-control-server/web/dist/assets/journeyDiagram-JHISSGLW-Ry1Fr21k.js} +1 -1
  129. package/{dist/rcs-web/assets/kanban-definition-UN3LZRKU-BmC8OpAP.js → packages/remote-control-server/web/dist/assets/kanban-definition-UN3LZRKU-DvxHDfWf.js} +1 -1
  130. package/packages/remote-control-server/web/dist/assets/{linear-DsYTuz04.js → linear-s8jVu6QY.js} +1 -1
  131. package/packages/remote-control-server/web/dist/assets/{main-NnYVszZ7.js → main-Mn7R0A18.js} +5 -5
  132. package/packages/remote-control-server/web/dist/assets/main-oFvzHCs3.css +1 -0
  133. package/{dist/rcs-web/assets/mermaid-VLURNSYL-Bi9iYBgP.js → packages/remote-control-server/web/dist/assets/mermaid-VLURNSYL-z8qNKcJT.js} +4 -4
  134. package/packages/remote-control-server/web/dist/assets/{mermaid.core-DGqdpgkt.js → mermaid.core-B98fAraT.js} +5 -5
  135. package/{dist/rcs-web/assets/mindmap-definition-RKZ34NQL-Bmenu2WL.js → packages/remote-control-server/web/dist/assets/mindmap-definition-RKZ34NQL-Cs7AOVl2.js} +1 -1
  136. package/packages/remote-control-server/web/dist/assets/{notifications-RUHp--2y.js → notifications-C2qTba5c.js} +1 -1
  137. package/packages/remote-control-server/web/dist/assets/{pieDiagram-4H26LBE5-B8iqNkqw.js → pieDiagram-4H26LBE5-BOSw3AKh.js} +1 -1
  138. package/packages/remote-control-server/web/dist/assets/{quadrantDiagram-W4KKPZXB-BXKHIGjZ.js → quadrantDiagram-W4KKPZXB-Be8mhczt.js} +1 -1
  139. package/packages/remote-control-server/web/dist/assets/{refresh-cw-BcXnr-wn.js → refresh-cw-Bo4t-P1R.js} +1 -1
  140. package/{dist/rcs-web/assets/requirementDiagram-4Y6WPE33-nxbFJxBv.js → packages/remote-control-server/web/dist/assets/requirementDiagram-4Y6WPE33-CgI_5y27.js} +1 -1
  141. package/{dist/rcs-web/assets/sankeyDiagram-5OEKKPKP-B7zFzWAp.js → packages/remote-control-server/web/dist/assets/sankeyDiagram-5OEKKPKP-2361M3Hs.js} +1 -1
  142. package/packages/remote-control-server/web/dist/assets/{sequenceDiagram-3UESZ5HK-BDIKJ0rX.js → sequenceDiagram-3UESZ5HK-liblY9ZR.js} +1 -1
  143. package/{dist/rcs-web/assets/stateDiagram-AJRCARHV-CiaXOzte.js → packages/remote-control-server/web/dist/assets/stateDiagram-AJRCARHV-ChgrbHxu.js} +1 -1
  144. package/packages/remote-control-server/web/dist/assets/{stateDiagram-v2-BHNVJYJU-BmMra9py.js → stateDiagram-v2-BHNVJYJU-CVitJD-x.js} +1 -1
  145. package/packages/remote-control-server/web/dist/assets/{timeline-definition-PNZ67QCA-Bg5JXXBp.js → timeline-definition-PNZ67QCA-Cnh3IdcT.js} +1 -1
  146. package/packages/remote-control-server/web/dist/assets/{vennDiagram-CIIHVFJN-u1jwdK8C.js → vennDiagram-CIIHVFJN-0W2x0guu.js} +1 -1
  147. package/packages/remote-control-server/web/dist/assets/{wardleyDiagram-YWT4CUSO-ew2IaFv7.js → wardleyDiagram-YWT4CUSO-BJkcCRAQ.js} +1 -1
  148. package/packages/remote-control-server/web/dist/assets/{workerType-CYFEJHte.js → workerType-BYUJv8QQ.js} +1 -1
  149. package/packages/remote-control-server/web/dist/assets/{xychartDiagram-2RQKCTM6-DIP-YEyl.js → xychartDiagram-2RQKCTM6-BeVIeL0V.js} +1 -1
  150. package/packages/remote-control-server/web/dist/index.html +2 -2
  151. package/dist/rcs-web/assets/channel-jHEJeF3X.js +0 -1
  152. package/dist/rcs-web/assets/classDiagram-4FO5ZUOK-DY7dnok1.js +0 -1
  153. package/dist/rcs-web/assets/classDiagram-v2-Q7XG4LA2-DY7dnok1.js +0 -1
  154. package/dist/rcs-web/assets/main-CEfbNf3v.css +0 -1
  155. package/packages/remote-control-server/web/dist/assets/channel-jHEJeF3X.js +0 -1
  156. package/packages/remote-control-server/web/dist/assets/classDiagram-4FO5ZUOK-DY7dnok1.js +0 -1
  157. package/packages/remote-control-server/web/dist/assets/classDiagram-v2-Q7XG4LA2-DY7dnok1.js +0 -1
  158. package/packages/remote-control-server/web/dist/assets/main-CEfbNf3v.css +0 -1
@@ -1 +1 @@
1
- import{e as d,j as e}from"./vendor-DE_-CLIE.js";import{aW as x,aX as o,a5 as m,aO as s,aE as l,I as u}from"./main-NnYVszZ7.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";function j(){x();const[a,i]=d.useState([]),{myTeams:r,isLoading:c}=o(),n=d.useCallback(async()=>{try{const t=await m();i(t||[])}catch(t){console.error("Admin: failed to load sessions",t)}},[]);return d.useEffect(()=>{n()},[n]),e.jsx("div",{className:"flex-1 overflow-y-auto",children:e.jsxs("div",{className:"mx-auto max-w-5xl px-4 py-8",children:[e.jsx("h1",{className:"mb-6 font-display text-2xl font-semibold text-text-primary",children:s("admin.title")}),e.jsxs("section",{className:"mb-10",children:[e.jsxs("h2",{className:"mb-4 font-display text-lg font-semibold text-text-primary",children:[s("admin.teams")," (",r.length,")"]}),c?e.jsx("div",{className:"rounded-xl border border-border bg-surface-1 p-4 text-center text-text-muted",children:s("common.loading")}):r.length===0?e.jsx("div",{className:"rounded-xl border border-border bg-surface-1 p-4 text-center text-text-muted",children:s("admin.noTeams")}):e.jsx("div",{className:"space-y-2",children:r.map(t=>e.jsxs("a",{href:`/teams/${t.slug}`,className:"flex items-center justify-between rounded-xl border border-border bg-surface-1 px-4 py-3 no-underline transition-colors hover:border-border-light hover:bg-surface-2",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"font-medium text-text-primary",children:t.name}),e.jsx("span",{className:"ml-2 text-xs text-text-muted",children:t.slug})]}),e.jsx("span",{className:"text-xs text-text-muted",children:l(new Date(t.created_at).getTime()/1e3)})]},t.id))})]}),e.jsxs("section",{children:[e.jsxs("h2",{className:"mb-4 font-display text-lg font-semibold text-text-primary",children:[s("admin.sessions")," (",a.length,")"]}),a.length===0?e.jsx("div",{className:"rounded-xl border border-border bg-surface-1 p-4 text-center text-text-muted",children:s("admin.noSessions")}):e.jsx("div",{className:"space-y-2",children:a.map(t=>e.jsxs("a",{href:`/code/${t.id}`,className:"flex items-center justify-between rounded-xl border border-border bg-surface-1 px-4 py-3 no-underline transition-colors hover:border-border-light hover:bg-surface-2",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"truncate font-medium text-text-primary",children:t.title||t.id}),e.jsx("span",{className:"rounded-full bg-surface-2 px-2 py-0.5 text-xs text-text-muted",children:t.source||"unknown"})]}),e.jsx("div",{className:"truncate text-xs text-text-muted",children:t.id})]}),e.jsxs("div",{className:"ml-4 flex items-center gap-3",children:[e.jsx(u,{status:t.status}),e.jsx("span",{className:"text-xs text-text-muted",children:l(t.updated_at||t.created_at)})]})]},t.id))})]})]})})}export{j as AdminPanel};
1
+ import{e as d,j as e}from"./vendor-DE_-CLIE.js";import{aW as x,aX as o,a5 as m,aO as s,aE as l,I as u}from"./main-Mn7R0A18.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";function j(){x();const[a,i]=d.useState([]),{myTeams:r,isLoading:c}=o(),n=d.useCallback(async()=>{try{const t=await m();i(t||[])}catch(t){console.error("Admin: failed to load sessions",t)}},[]);return d.useEffect(()=>{n()},[n]),e.jsx("div",{className:"flex-1 overflow-y-auto",children:e.jsxs("div",{className:"mx-auto max-w-5xl px-4 py-8",children:[e.jsx("h1",{className:"mb-6 font-display text-2xl font-semibold text-text-primary",children:s("admin.title")}),e.jsxs("section",{className:"mb-10",children:[e.jsxs("h2",{className:"mb-4 font-display text-lg font-semibold text-text-primary",children:[s("admin.teams")," (",r.length,")"]}),c?e.jsx("div",{className:"rounded-xl border border-border bg-surface-1 p-4 text-center text-text-muted",children:s("common.loading")}):r.length===0?e.jsx("div",{className:"rounded-xl border border-border bg-surface-1 p-4 text-center text-text-muted",children:s("admin.noTeams")}):e.jsx("div",{className:"space-y-2",children:r.map(t=>e.jsxs("a",{href:`/teams/${t.slug}`,className:"flex items-center justify-between rounded-xl border border-border bg-surface-1 px-4 py-3 no-underline transition-colors hover:border-border-light hover:bg-surface-2",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"font-medium text-text-primary",children:t.name}),e.jsx("span",{className:"ml-2 text-xs text-text-muted",children:t.slug})]}),e.jsx("span",{className:"text-xs text-text-muted",children:l(new Date(t.created_at).getTime()/1e3)})]},t.id))})]}),e.jsxs("section",{children:[e.jsxs("h2",{className:"mb-4 font-display text-lg font-semibold text-text-primary",children:[s("admin.sessions")," (",a.length,")"]}),a.length===0?e.jsx("div",{className:"rounded-xl border border-border bg-surface-1 p-4 text-center text-text-muted",children:s("admin.noSessions")}):e.jsx("div",{className:"space-y-2",children:a.map(t=>e.jsxs("a",{href:`/code/${t.id}`,className:"flex items-center justify-between rounded-xl border border-border bg-surface-1 px-4 py-3 no-underline transition-colors hover:border-border-light hover:bg-surface-2",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"truncate font-medium text-text-primary",children:t.title||t.id}),e.jsx("span",{className:"rounded-full bg-surface-2 px-2 py-0.5 text-xs text-text-muted",children:t.source||"unknown"})]}),e.jsx("div",{className:"truncate text-xs text-text-muted",children:t.id})]}),e.jsxs("div",{className:"ml-4 flex items-center gap-3",children:[e.jsx(u,{status:t.status}),e.jsx("span",{className:"text-xs text-text-muted",children:l(t.updated_at||t.created_at)})]})]},t.id))})]})]})})}export{j as AdminPanel};
@@ -1 +1 @@
1
- import{e as a,j as t}from"./vendor-DE_-CLIE.js";import{aW as A,a6 as j,aO as r,a2 as q,az as O,P as R,N as U}from"./main-NnYVszZ7.js";import{S as F,E as G,C as K}from"./ArtifactsGallery-kBspV_gT.js";import{R as P}from"./refresh-cw-BcXnr-wn.js";import{C as z}from"./copy-5Km5hy3S.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";import"./dialog-uWDnwMIc.js";let m=null;function J(n,c,e=0){b();const o=`/web/sessions/${n}/events`,l=new EventSource(o,{withCredentials:!0});m=l;let u=e;l.addEventListener("message",p=>{try{const x=JSON.parse(p.data);if(x.seqNum!==void 0&&x.seqNum<=u)return;x.seqNum!==void 0&&(u=x.seqNum),c(x)}catch{}}),l.addEventListener("error",()=>{console.warn("[SSE] error, readyState:",l.readyState),l.readyState===EventSource.CLOSED&&(l.close(),b())})}function b(){m&&(m.close(),m=null)}function M(n,c){const e=a.useRef(c);e.current=c;const o=a.useCallback(l=>{e.current(l)},[]);a.useEffect(()=>{if(n)return J(n,o),()=>{b()}},[n,o])}function I({artifactId:n,onBack:c}){A();const[e,o]=a.useState(null),[l,u]=a.useState(""),[p,x]=a.useState(!1),[S,f]=a.useState(0),[w,h]=a.useState(!1),[g,C]=a.useState(null),[E,k]=a.useState("template"),[d,y]=a.useState(!1);a.useEffect(()=>{let s=!1;return j(n).then(i=>{s||o(i)}).catch(i=>{s||u(i instanceof Error?i.message:r("artifacts.viewNotFound"))}),()=>{s=!0}},[n]);const v=a.useCallback(()=>{j(n).then(s=>o(s)).catch(()=>{})},[n]),_=a.useCallback(s=>{var i;s.type==="artifact_updated"&&((i=s.payload)!=null&&i.id&&s.payload.id!==n||(v(),f(D=>D+1),y(!0)))},[n,v]);M((e==null?void 0:e.session_id)??null,_),a.useEffect(()=>{if(!d)return;const s=setTimeout(()=>y(!1),2500);return()=>clearTimeout(s)},[d]);const N=a.useCallback(s=>{e&&(C(e),k(s),h(!0))},[e]),$=a.useCallback(s=>{h(!1),o(i=>i?{...i,...s}:s),f(i=>i+1)},[]),T=a.useCallback(async()=>{if(window.confirm(r("artifacts.delete")+" — "+n.slice(0,8)+"…?"))try{await q(n),c()}catch(s){alert(s instanceof Error?s.message:r("artifacts.deleteFailed"))}},[n,c]),L=a.useCallback(async()=>{if(!e)return;await O(`${window.location.origin}${e.url}`)&&(x(!0),setTimeout(()=>x(!1),1500))},[e]);return l?t.jsx("div",{className:"flex flex-1 items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx("p",{className:"text-status-error",children:r("artifacts.viewNotFound")}),t.jsx("p",{className:"mt-1 text-xs text-text-muted",children:l}),t.jsx("button",{type:"button",onClick:c,className:"mt-4 rounded-md border border-border px-4 py-2 text-sm text-text-secondary hover:bg-surface-2",children:r("artifacts.backToGallery")})]})}):e?t.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-border bg-surface-1 px-4 py-2.5",children:[t.jsx("button",{type:"button",onClick:c,className:"text-sm text-text-muted hover:text-text-primary",children:r("artifacts.backToGallery")}),t.jsx("span",{className:"text-text-muted/40",children:"/"}),t.jsx("span",{className:"truncate font-medium text-text-primary",children:e.title||e.id.slice(0,12)}),t.jsx("span",{className:`rounded-full px-2 py-0.5 text-[10px] transition-colors ${d?"bg-status-active/15 text-status-active":"bg-surface-3 text-text-muted"}`,title:d?r("artifacts.view.liveUpdated"):void 0,children:d?`↻ v${e.version}`:`v${e.version}`}),e.session_id&&t.jsxs("a",{href:`/code/${e.session_id}`,className:"truncate font-mono text-[10px] text-text-muted hover:text-accent",title:e.session_id,children:[r("artifacts.session"),": ",e.session_id.slice(0,14),"…"]}),e.expires_at&&t.jsxs("span",{className:"text-[10px] text-text-muted",title:e.expires_at,children:[r("artifacts.expires"),": ",new Date(e.expires_at).toLocaleDateString()]}),t.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[t.jsx("button",{type:"button",onClick:()=>f(s=>s+1),className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-surface-2 hover:text-text-primary",title:r("common.loading"),children:t.jsx(P,{className:"h-3.5 w-3.5"})}),t.jsx("button",{type:"button",onClick:()=>N("ai"),className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-surface-2 hover:text-text-primary",title:r("artifacts.aiUpdate"),children:t.jsx(F,{className:"h-3.5 w-3.5"})}),e.can_manage&&t.jsx("button",{type:"button",onClick:()=>N("template"),className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-surface-2 hover:text-text-primary",title:r("artifacts.edit"),children:t.jsx(R,{className:"h-3.5 w-3.5"})}),t.jsxs("button",{type:"button",onClick:L,className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-surface-2 hover:text-text-primary",title:`${r("artifacts.copyLink")} · ${r("artifacts.linkNotice")}`,children:[t.jsx(z,{className:"h-3.5 w-3.5"}),p&&t.jsx("span",{className:"text-status-active",children:r("artifacts.copied")})]}),t.jsx("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-surface-2 hover:text-text-primary",title:r("artifacts.openInNewTab"),children:t.jsx(G,{className:"h-3.5 w-3.5"})}),t.jsx("button",{type:"button",onClick:T,className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-status-error/10 hover:text-status-error",title:r("artifacts.delete"),children:t.jsx(U,{className:"h-3.5 w-3.5"})})]})]}),t.jsx("iframe",{src:`${e.url}${e.url.includes("?")?"&":"?"}_=${Date.now()}`,title:e.title||e.id,className:"min-h-0 w-full flex-1 border-0 bg-white",sandbox:"allow-scripts allow-popups allow-forms"},S),t.jsx(K,{open:w,onClose:()=>h(!1),onCreated:$,editArtifact:g,initialMode:E})]}):t.jsx("div",{className:"flex flex-1 items-center justify-center text-text-muted",children:r("common.loading")})}export{I as ArtifactView};
1
+ import{e as a,j as t}from"./vendor-DE_-CLIE.js";import{aW as A,a6 as j,aO as r,a2 as q,az as O,P as R,N as U}from"./main-Mn7R0A18.js";import{S as F,E as G,C as K}from"./ArtifactsGallery-DTDBumAW.js";import{R as P}from"./refresh-cw-Bo4t-P1R.js";import{C as z}from"./copy-D0pf7ohg.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";import"./dialog-1duL__fs.js";let m=null;function J(n,c,e=0){b();const o=`/web/sessions/${n}/events`,l=new EventSource(o,{withCredentials:!0});m=l;let u=e;l.addEventListener("message",p=>{try{const x=JSON.parse(p.data);if(x.seqNum!==void 0&&x.seqNum<=u)return;x.seqNum!==void 0&&(u=x.seqNum),c(x)}catch{}}),l.addEventListener("error",()=>{console.warn("[SSE] error, readyState:",l.readyState),l.readyState===EventSource.CLOSED&&(l.close(),b())})}function b(){m&&(m.close(),m=null)}function M(n,c){const e=a.useRef(c);e.current=c;const o=a.useCallback(l=>{e.current(l)},[]);a.useEffect(()=>{if(n)return J(n,o),()=>{b()}},[n,o])}function I({artifactId:n,onBack:c}){A();const[e,o]=a.useState(null),[l,u]=a.useState(""),[p,x]=a.useState(!1),[S,f]=a.useState(0),[w,h]=a.useState(!1),[g,C]=a.useState(null),[E,k]=a.useState("template"),[d,y]=a.useState(!1);a.useEffect(()=>{let s=!1;return j(n).then(i=>{s||o(i)}).catch(i=>{s||u(i instanceof Error?i.message:r("artifacts.viewNotFound"))}),()=>{s=!0}},[n]);const v=a.useCallback(()=>{j(n).then(s=>o(s)).catch(()=>{})},[n]),_=a.useCallback(s=>{var i;s.type==="artifact_updated"&&((i=s.payload)!=null&&i.id&&s.payload.id!==n||(v(),f(D=>D+1),y(!0)))},[n,v]);M((e==null?void 0:e.session_id)??null,_),a.useEffect(()=>{if(!d)return;const s=setTimeout(()=>y(!1),2500);return()=>clearTimeout(s)},[d]);const N=a.useCallback(s=>{e&&(C(e),k(s),h(!0))},[e]),$=a.useCallback(s=>{h(!1),o(i=>i?{...i,...s}:s),f(i=>i+1)},[]),T=a.useCallback(async()=>{if(window.confirm(r("artifacts.delete")+" — "+n.slice(0,8)+"…?"))try{await q(n),c()}catch(s){alert(s instanceof Error?s.message:r("artifacts.deleteFailed"))}},[n,c]),L=a.useCallback(async()=>{if(!e)return;await O(`${window.location.origin}${e.url}`)&&(x(!0),setTimeout(()=>x(!1),1500))},[e]);return l?t.jsx("div",{className:"flex flex-1 items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx("p",{className:"text-status-error",children:r("artifacts.viewNotFound")}),t.jsx("p",{className:"mt-1 text-xs text-text-muted",children:l}),t.jsx("button",{type:"button",onClick:c,className:"mt-4 rounded-md border border-border px-4 py-2 text-sm text-text-secondary hover:bg-surface-2",children:r("artifacts.backToGallery")})]})}):e?t.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-border bg-surface-1 px-4 py-2.5",children:[t.jsx("button",{type:"button",onClick:c,className:"text-sm text-text-muted hover:text-text-primary",children:r("artifacts.backToGallery")}),t.jsx("span",{className:"text-text-muted/40",children:"/"}),t.jsx("span",{className:"truncate font-medium text-text-primary",children:e.title||e.id.slice(0,12)}),t.jsx("span",{className:`rounded-full px-2 py-0.5 text-[10px] transition-colors ${d?"bg-status-active/15 text-status-active":"bg-surface-3 text-text-muted"}`,title:d?r("artifacts.view.liveUpdated"):void 0,children:d?`↻ v${e.version}`:`v${e.version}`}),e.session_id&&t.jsxs("a",{href:`/code/${e.session_id}`,className:"truncate font-mono text-[10px] text-text-muted hover:text-accent",title:e.session_id,children:[r("artifacts.session"),": ",e.session_id.slice(0,14),"…"]}),e.expires_at&&t.jsxs("span",{className:"text-[10px] text-text-muted",title:e.expires_at,children:[r("artifacts.expires"),": ",new Date(e.expires_at).toLocaleDateString()]}),t.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[t.jsx("button",{type:"button",onClick:()=>f(s=>s+1),className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-surface-2 hover:text-text-primary",title:r("common.loading"),children:t.jsx(P,{className:"h-3.5 w-3.5"})}),t.jsx("button",{type:"button",onClick:()=>N("ai"),className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-surface-2 hover:text-text-primary",title:r("artifacts.aiUpdate"),children:t.jsx(F,{className:"h-3.5 w-3.5"})}),e.can_manage&&t.jsx("button",{type:"button",onClick:()=>N("template"),className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-surface-2 hover:text-text-primary",title:r("artifacts.edit"),children:t.jsx(R,{className:"h-3.5 w-3.5"})}),t.jsxs("button",{type:"button",onClick:L,className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-surface-2 hover:text-text-primary",title:`${r("artifacts.copyLink")} · ${r("artifacts.linkNotice")}`,children:[t.jsx(z,{className:"h-3.5 w-3.5"}),p&&t.jsx("span",{className:"text-status-active",children:r("artifacts.copied")})]}),t.jsx("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-surface-2 hover:text-text-primary",title:r("artifacts.openInNewTab"),children:t.jsx(G,{className:"h-3.5 w-3.5"})}),t.jsx("button",{type:"button",onClick:T,className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-status-error/10 hover:text-status-error",title:r("artifacts.delete"),children:t.jsx(U,{className:"h-3.5 w-3.5"})})]})]}),t.jsx("iframe",{src:`${e.url}${e.url.includes("?")?"&":"?"}_=${Date.now()}`,title:e.title||e.id,className:"min-h-0 w-full flex-1 border-0 bg-white",sandbox:"allow-scripts allow-popups allow-forms"},S),t.jsx(K,{open:w,onClose:()=>h(!1),onCreated:$,editArtifact:g,initialMode:E})]}):t.jsx("div",{className:"flex flex-1 items-center justify-center text-text-muted",children:r("common.loading")})}export{I as ArtifactView};
@@ -1,4 +1,4 @@
1
- var pt=Object.defineProperty;var ht=(t,e,r)=>e in t?pt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var S=(t,e,r)=>ht(t,typeof e!="symbol"?e+"":e,r);import{e as k,j as o}from"./vendor-DE_-CLIE.js";import{aA as Te,aF as ut,aW as Qe,aX as ft,a7 as mt,aO as f,a2 as xt,az as gt,F as bt,i as kt,P as yt,N as wt,t as vt,a6 as St,ah as Rt,aJ as Tt,ag as $t,as as jt,at as Et,_ as Nt,b as Ct}from"./main-NnYVszZ7.js";import{D as It,a as At,c as zt,d as Lt,b as _t}from"./dialog-uWDnwMIc.js";import{C as Dt}from"./copy-5Km5hy3S.js";/**
1
+ var pt=Object.defineProperty;var ht=(t,e,r)=>e in t?pt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var S=(t,e,r)=>ht(t,typeof e!="symbol"?e+"":e,r);import{e as k,j as o}from"./vendor-DE_-CLIE.js";import{aA as Te,aF as ut,aW as Qe,aX as ft,a7 as mt,aO as f,a2 as xt,az as gt,F as bt,i as kt,P as yt,N as wt,t as vt,a6 as St,ah as Rt,aJ as Tt,ag as $t,as as jt,at as Et,_ as Nt,b as Ct}from"./main-Mn7R0A18.js";import{D as It,a as At,c as zt,d as Lt,b as _t}from"./dialog-1duL__fs.js";import{C as Dt}from"./copy-D0pf7ohg.js";/**
2
2
  * @license lucide-react v0.555.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{e as r,j as e}from"./vendor-DE_-CLIE.js";import{Y as u,a5 as f}from"./main-NnYVszZ7.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";const v=2e3,N=3e4;function E(){const c=window.location.pathname.split("/"),i=c[c.length-1]||"",[s,n]=r.useState("idle"),[m,l]=r.useState(null),[a,d]=r.useState(null);return r.useEffect(()=>{if(!i||!i.startsWith("clm_")){l("Invalid claim token"),n("error");return}n("claiming"),u(i).then(t=>{d(t.environment_id),n("waiting")}).catch(t=>{l(t instanceof Error?t.message:"Claim failed"),n("error")})},[i]),r.useEffect(()=>{if(s!=="waiting"||!a)return;let t=!1;const x=Date.now(),o=setInterval(()=>{if(Date.now()-x>N){clearInterval(o),t||n("timeout");return}f().then(h=>{t||(h||[]).some(p=>p.environment_id===a)&&(clearInterval(o),window.location.href="/code/")}).catch(()=>{})},v);return()=>{t=!0,clearInterval(o)}},[s,a]),s==="claiming"?e.jsx("div",{className:"px-6 py-16 sm:px-10 sm:py-20",children:e.jsx("p",{className:"text-sm text-text-muted",children:"Claiming environment..."})}):s==="error"?e.jsxs("div",{className:"px-6 py-16 sm:px-10 sm:py-20",children:[e.jsx("p",{className:"text-sm text-destructive",children:m}),e.jsx("a",{href:"/code",className:"mt-4 inline-block text-accent hover:underline",children:"Back to dashboard"})]}):s==="waiting"||s==="timeout"?e.jsxs("div",{className:"px-6 py-16 sm:px-10 sm:py-20",children:[e.jsxs("header",{className:"mb-10",children:[e.jsx("h1",{className:"font-display text-2xl font-semibold tracking-tight text-text-primary",children:"Environment claimed"}),e.jsx("p",{className:"mt-2 text-sm text-text-muted",children:"You are now the owner of this environment."})]}),e.jsxs("div",{className:"space-y-4",children:[a&&e.jsx("p",{className:"font-mono text-xs text-text-muted",children:a}),s==="waiting"?e.jsxs("p",{className:"text-sm text-text-muted",children:["Waiting for the worker to create a session",e.jsx("span",{className:"animate-pulse",children:"…"})]}):e.jsx("p",{className:"text-sm text-text-muted",children:"The worker has not created a session yet — it may be offline or stopped. The session will appear on the dashboard once the worker connects."}),e.jsx("a",{href:"/code",className:"inline-block rounded-md bg-accent px-4 py-2 text-sm font-medium text-white hover:bg-accent/90 transition-colors",children:"Go to dashboard"})]})]}):e.jsx("div",{className:"px-6 py-16 sm:px-10 sm:py-20",children:e.jsx("p",{className:"text-sm text-text-muted",children:"Claiming environment..."})})}export{E as Claim};
1
+ import{e as r,j as e}from"./vendor-DE_-CLIE.js";import{Y as u,a5 as f}from"./main-Mn7R0A18.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";const v=2e3,N=3e4;function E(){const c=window.location.pathname.split("/"),i=c[c.length-1]||"",[s,n]=r.useState("idle"),[m,l]=r.useState(null),[a,d]=r.useState(null);return r.useEffect(()=>{if(!i||!i.startsWith("clm_")){l("Invalid claim token"),n("error");return}n("claiming"),u(i).then(t=>{d(t.environment_id),n("waiting")}).catch(t=>{l(t instanceof Error?t.message:"Claim failed"),n("error")})},[i]),r.useEffect(()=>{if(s!=="waiting"||!a)return;let t=!1;const x=Date.now(),o=setInterval(()=>{if(Date.now()-x>N){clearInterval(o),t||n("timeout");return}f().then(h=>{t||(h||[]).some(p=>p.environment_id===a)&&(clearInterval(o),window.location.href="/code/")}).catch(()=>{})},v);return()=>{t=!0,clearInterval(o)}},[s,a]),s==="claiming"?e.jsx("div",{className:"px-6 py-16 sm:px-10 sm:py-20",children:e.jsx("p",{className:"text-sm text-text-muted",children:"Claiming environment..."})}):s==="error"?e.jsxs("div",{className:"px-6 py-16 sm:px-10 sm:py-20",children:[e.jsx("p",{className:"text-sm text-destructive",children:m}),e.jsx("a",{href:"/code",className:"mt-4 inline-block text-accent hover:underline",children:"Back to dashboard"})]}):s==="waiting"||s==="timeout"?e.jsxs("div",{className:"px-6 py-16 sm:px-10 sm:py-20",children:[e.jsxs("header",{className:"mb-10",children:[e.jsx("h1",{className:"font-display text-2xl font-semibold tracking-tight text-text-primary",children:"Environment claimed"}),e.jsx("p",{className:"mt-2 text-sm text-text-muted",children:"You are now the owner of this environment."})]}),e.jsxs("div",{className:"space-y-4",children:[a&&e.jsx("p",{className:"font-mono text-xs text-text-muted",children:a}),s==="waiting"?e.jsxs("p",{className:"text-sm text-text-muted",children:["Waiting for the worker to create a session",e.jsx("span",{className:"animate-pulse",children:"…"})]}):e.jsx("p",{className:"text-sm text-text-muted",children:"The worker has not created a session yet — it may be offline or stopped. The session will appear on the dashboard once the worker connects."}),e.jsx("a",{href:"/code",className:"inline-block rounded-md bg-accent px-4 py-2 text-sm font-medium text-white hover:bg-accent/90 transition-colors",children:"Go to dashboard"})]})]}):e.jsx("div",{className:"px-6 py-16 sm:px-10 sm:py-20",children:e.jsx("p",{className:"text-sm text-text-muted",children:"Claiming environment..."})})}export{E as Claim};
@@ -1,4 +1,4 @@
1
- import{j as e,e as r}from"./vendor-DE_-CLIE.js";import{aA as Q,ay as E,aX as O,aV as I,aO as t,U as X,aE as $,aW as P,I as K,f as B,e as U,a0 as Z,ar as G,a5 as J,a8 as Y,a4 as ee,S as W,X as se,aP as ae}from"./main-NnYVszZ7.js";import{R as q,E as te}from"./RegisterEmpty-CXI0Ojtl.js";import{g as L}from"./workerType-CYFEJHte.js";import{S as ne}from"./SessionVisibilityBadge-Ms42FP3g.js";import{D as re,a as le,d as ce}from"./dialog-uWDnwMIc.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";/**
1
+ import{j as e,e as r}from"./vendor-DE_-CLIE.js";import{aA as Q,ay as E,aX as O,aV as I,aO as t,U as X,aE as $,aW as P,I as K,f as B,e as U,a0 as Z,ar as G,a5 as J,a8 as Y,a4 as ee,S as W,X as se,aP as ae}from"./main-Mn7R0A18.js";import{R as q,E as te}from"./RegisterEmpty-Bp4ijU6c.js";import{g as L}from"./workerType-BYUJv8QQ.js";import{S as ne}from"./SessionVisibilityBadge-hjXhLkpx.js";import{D as re,a as le,d as ce}from"./dialog-1duL__fs.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";/**
2
2
  * @license lucide-react v0.555.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{e as r,j as e}from"./vendor-DE_-CLIE.js";import{aV as v,c as N,aO as t}from"./main-NnYVszZ7.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";function P({onSuccess:h,onInvalidInvite:i}){const{join:b}=v(),[l,f]=r.useState(""),[u,w]=r.useState(""),[o,j]=r.useState(""),[c,g]=r.useState(""),[m,n]=r.useState(""),[x,p]=r.useState(!1);r.useEffect(()=>{const a=new URLSearchParams(window.location.search).get("invite");a?f(a):i()},[i]);const y=async s=>{if(s.preventDefault(),n(""),o.length<8){n(t("auth.setup.passwordTooShort"));return}if(o!==c){n(t("auth.setup.passwordMismatch"));return}p(!0);try{await b(l,u,o),h()}catch(a){const d=a instanceof Error?a.message:"Join failed";if(d.includes("Invalid invitation")||d.includes("expired")||d.includes("already used")){i();return}n(d)}finally{p(!1)}};return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-surface-0 px-4",children:e.jsxs("div",{className:"hero-enter w-full max-w-sm space-y-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(N,{className:"mx-auto mb-5 h-10 w-10"}),e.jsx("h1",{className:"font-display text-3xl font-semibold tracking-tight text-text-primary",children:t("auth.join.title")}),e.jsx("p",{className:"mt-2 text-sm text-text-muted",children:t("auth.join.welcome")}),e.jsx("p",{className:"mt-1 text-sm text-text-muted",children:t("auth.join.description")})]}),e.jsxs("form",{onSubmit:y,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.join.username")}),e.jsx("input",{type:"text",value:u,onChange:s=>w(s.target.value),required:!0,autoComplete:"username",autoFocus:!0,className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.join.password")}),e.jsx("input",{type:"password",value:o,onChange:s=>j(s.target.value),required:!0,autoComplete:"new-password",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.join.confirmPassword")}),e.jsx("input",{type:"password",value:c,onChange:s=>g(s.target.value),required:!0,autoComplete:"new-password",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),m&&e.jsx("p",{className:"text-sm text-status-error",children:m}),e.jsx("button",{type:"submit",disabled:x||!l,className:"w-full rounded-lg bg-brand px-4 py-2.5 font-display text-sm font-medium text-white shadow-lg shadow-brand/25 transition-all hover:-translate-y-0.5 hover:bg-brand-light hover:shadow-brand/40 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:translate-y-0 disabled:hover:shadow-none",children:x?t("common.loading"):t("auth.join.submit")})]})]})})}export{P as Join};
1
+ import{e as r,j as e}from"./vendor-DE_-CLIE.js";import{aV as v,c as N,aO as t}from"./main-Mn7R0A18.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";function P({onSuccess:h,onInvalidInvite:i}){const{join:b}=v(),[l,f]=r.useState(""),[u,w]=r.useState(""),[o,j]=r.useState(""),[c,g]=r.useState(""),[m,n]=r.useState(""),[x,p]=r.useState(!1);r.useEffect(()=>{const a=new URLSearchParams(window.location.search).get("invite");a?f(a):i()},[i]);const y=async s=>{if(s.preventDefault(),n(""),o.length<8){n(t("auth.setup.passwordTooShort"));return}if(o!==c){n(t("auth.setup.passwordMismatch"));return}p(!0);try{await b(l,u,o),h()}catch(a){const d=a instanceof Error?a.message:"Join failed";if(d.includes("Invalid invitation")||d.includes("expired")||d.includes("already used")){i();return}n(d)}finally{p(!1)}};return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-surface-0 px-4",children:e.jsxs("div",{className:"hero-enter w-full max-w-sm space-y-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(N,{className:"mx-auto mb-5 h-10 w-10"}),e.jsx("h1",{className:"font-display text-3xl font-semibold tracking-tight text-text-primary",children:t("auth.join.title")}),e.jsx("p",{className:"mt-2 text-sm text-text-muted",children:t("auth.join.welcome")}),e.jsx("p",{className:"mt-1 text-sm text-text-muted",children:t("auth.join.description")})]}),e.jsxs("form",{onSubmit:y,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.join.username")}),e.jsx("input",{type:"text",value:u,onChange:s=>w(s.target.value),required:!0,autoComplete:"username",autoFocus:!0,className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.join.password")}),e.jsx("input",{type:"password",value:o,onChange:s=>j(s.target.value),required:!0,autoComplete:"new-password",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.join.confirmPassword")}),e.jsx("input",{type:"password",value:c,onChange:s=>g(s.target.value),required:!0,autoComplete:"new-password",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),m&&e.jsx("p",{className:"text-sm text-status-error",children:m}),e.jsx("button",{type:"submit",disabled:x||!l,className:"w-full rounded-lg bg-brand px-4 py-2.5 font-display text-sm font-medium text-white shadow-lg shadow-brand/25 transition-all hover:-translate-y-0.5 hover:bg-brand-light hover:shadow-brand/40 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:translate-y-0 disabled:hover:shadow-none",children:x?t("common.loading"):t("auth.join.submit")})]})]})})}export{P as Join};
@@ -1 +1 @@
1
- import{e as n,j as e}from"./vendor-DE_-CLIE.js";import{aO as t,aP as y,aV as j,c as w}from"./main-NnYVszZ7.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";function v(r){if(!(r instanceof Error))return t("auth.login.failed");if(r instanceof TypeError)return t("auth.login.unreachable");const s=r.message;return/failed to fetch|network|load failed/i.test(s)?t("auth.login.unreachable"):/csrf/i.test(s)?t("auth.login.csrfBlocked"):/too many/i.test(s)?t("auth.login.rateLimited"):/invalid credentials/i.test(s)?t("auth.login.failed"):!s||/^login failed$/i.test(s)?t("auth.login.failed"):y("auth.login.failedWithReason",{message:s})}function C({onSuccess:r,onNavigateRegister:s}){const{login:m,registrationAllowed:x,singleUserMode:h}=j(),[o,f]=n.useState(""),[i,b]=n.useState(""),[l,d]=n.useState(""),[u,c]=n.useState(!1),g=async a=>{a.preventDefault(),d(""),c(!0);try{await m(o,i),r()}catch(p){d(v(p))}finally{c(!1)}};return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-surface-0 px-4",children:e.jsxs("div",{className:"hero-enter w-full max-w-sm space-y-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(w,{className:"mx-auto mb-5 h-10 w-10"}),e.jsx("h1",{className:"font-display text-3xl font-semibold tracking-tight text-text-primary",children:t("auth.login.title")}),e.jsx("p",{className:"mt-2 text-sm text-text-muted",children:t("auth.login.description")})]}),e.jsxs("form",{onSubmit:g,className:"space-y-4",children:[h&&e.jsxs("div",{className:"rounded-lg border border-border bg-surface-2 px-3 py-2 text-xs text-text-secondary",children:[e.jsx("p",{children:t("auth.login.singleUserHint")}),e.jsx("p",{className:"mt-1 font-mono text-text-primary",children:"admin / admin123"}),e.jsx("p",{className:"mt-1 text-text-muted",children:t("auth.login.singleUserHintFooter")})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.login.username")}),e.jsx("input",{type:"text",value:o,onChange:a=>f(a.target.value),required:!0,autoComplete:"username",autoFocus:!0,className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.login.password")}),e.jsx("input",{type:"password",value:i,onChange:a=>b(a.target.value),required:!0,autoComplete:"current-password",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),l&&e.jsx("p",{className:"text-sm text-status-error",children:l}),e.jsx("button",{type:"submit",disabled:u,className:"w-full rounded-lg bg-brand px-4 py-2.5 font-display text-sm font-medium text-white shadow-lg shadow-brand/25 transition-all hover:-translate-y-0.5 hover:bg-brand-light hover:shadow-brand/40 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:translate-y-0 disabled:hover:shadow-none",children:u?t("common.loading"):t("auth.login.submit")})]}),x&&e.jsx("button",{type:"button",onClick:s,className:"w-full text-center text-sm text-text-muted hover:text-text-primary transition-colors",children:t("auth.login.register")})]})})}export{C as Login};
1
+ import{e as n,j as e}from"./vendor-DE_-CLIE.js";import{aO as t,aP as y,aV as j,c as w}from"./main-Mn7R0A18.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";function v(r){if(!(r instanceof Error))return t("auth.login.failed");if(r instanceof TypeError)return t("auth.login.unreachable");const s=r.message;return/failed to fetch|network|load failed/i.test(s)?t("auth.login.unreachable"):/csrf/i.test(s)?t("auth.login.csrfBlocked"):/too many/i.test(s)?t("auth.login.rateLimited"):/invalid credentials/i.test(s)?t("auth.login.failed"):!s||/^login failed$/i.test(s)?t("auth.login.failed"):y("auth.login.failedWithReason",{message:s})}function C({onSuccess:r,onNavigateRegister:s}){const{login:m,registrationAllowed:x,singleUserMode:h}=j(),[o,f]=n.useState(""),[i,b]=n.useState(""),[l,d]=n.useState(""),[u,c]=n.useState(!1),g=async a=>{a.preventDefault(),d(""),c(!0);try{await m(o,i),r()}catch(p){d(v(p))}finally{c(!1)}};return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-surface-0 px-4",children:e.jsxs("div",{className:"hero-enter w-full max-w-sm space-y-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(w,{className:"mx-auto mb-5 h-10 w-10"}),e.jsx("h1",{className:"font-display text-3xl font-semibold tracking-tight text-text-primary",children:t("auth.login.title")}),e.jsx("p",{className:"mt-2 text-sm text-text-muted",children:t("auth.login.description")})]}),e.jsxs("form",{onSubmit:g,className:"space-y-4",children:[h&&e.jsxs("div",{className:"rounded-lg border border-border bg-surface-2 px-3 py-2 text-xs text-text-secondary",children:[e.jsx("p",{children:t("auth.login.singleUserHint")}),e.jsx("p",{className:"mt-1 font-mono text-text-primary",children:"admin / admin123"}),e.jsx("p",{className:"mt-1 text-text-muted",children:t("auth.login.singleUserHintFooter")})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.login.username")}),e.jsx("input",{type:"text",value:o,onChange:a=>f(a.target.value),required:!0,autoComplete:"username",autoFocus:!0,className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.login.password")}),e.jsx("input",{type:"password",value:i,onChange:a=>b(a.target.value),required:!0,autoComplete:"current-password",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),l&&e.jsx("p",{className:"text-sm text-status-error",children:l}),e.jsx("button",{type:"submit",disabled:u,className:"w-full rounded-lg bg-brand px-4 py-2.5 font-display text-sm font-medium text-white shadow-lg shadow-brand/25 transition-all hover:-translate-y-0.5 hover:bg-brand-light hover:shadow-brand/40 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:translate-y-0 disabled:hover:shadow-none",children:u?t("common.loading"):t("auth.login.submit")})]}),x&&e.jsx("button",{type:"button",onClick:s,className:"w-full text-center text-sm text-text-muted hover:text-text-primary transition-colors",children:t("auth.login.register")})]})})}export{C as Login};
@@ -1 +1 @@
1
- import{e as a,j as e}from"./vendor-DE_-CLIE.js";import{aW as B,aX as H,aO as s,$ as U,ad as W,ab as J,ac as V,aq as Z,t as ee,aP as L,X as te,S as se}from"./main-NnYVszZ7.js";import{D,u as re,e as ae,d as ne,h as le,T as oe,c as ce,b as ie,a as me,F as de,M as xe}from"./MemoryTypeChips-z_9ym6v4.js";import{D as ue,a as pe,c as he,d as fe,b as be}from"./dialog-uWDnwMIc.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";const ye=["user","feedback","project","reference"];function je({open:l,mode:c,onClose:d,onCreated:x}){B();const{myTeams:o}=H(),[b,y]=a.useState(""),[h,N]=a.useState(""),[i,F]=a.useState("project"),[f,T]=a.useState(""),[n,m]=a.useState("personal"),[u,P]=a.useState(""),[C,j]=a.useState(!1),[S,g]=a.useState("");a.useEffect(()=>{var r;l&&(y(""),N(""),F("project"),T(""),m("personal"),P(((r=o[0])==null?void 0:r.id)??""),j(!1),g(""))},[l,o]);const w=b.trim().length>0&&f.trim().length>0&&!C&&(n==="personal"||c==="memdir"||!!u),O=async()=>{j(!0),g("");try{await U({scope:n,name:b.trim(),description:h.trim()||void 0,type:i,content:f,...c==="sqlite"&&n==="team"?{teamId:u}:{}}),x()}catch(r){g(r instanceof Error?r.message:s("memorySidebar.createFailed"))}finally{j(!1)}};return e.jsx(ue,{open:l,onOpenChange:r=>r?void 0:d(),children:e.jsxs(pe,{className:"max-h-[85vh] overflow-y-auto sm:max-w-2xl",children:[e.jsx(he,{children:e.jsx(fe,{children:s("memories.create.title")})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-name",children:s("memorySidebar.create.namePlaceholder")}),e.jsx("input",{id:"memory-create-name",type:"text",value:b,onChange:r=>y(r.target.value),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-description",children:s("memorySidebar.create.descriptionPlaceholder")}),e.jsx("input",{id:"memory-create-description",type:"text",value:h,onChange:r=>N(r.target.value),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none"})]}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-type",children:s("memories.create.type")}),e.jsx("select",{id:"memory-create-type",value:i,onChange:r=>F(r.target.value),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none",children:ye.map(r=>e.jsx("option",{value:r,children:s(`memories.type.${r}`)},r))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-scope",children:s("memories.create.scope")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("select",{id:"memory-create-scope",value:n,onChange:r=>m(r.target.value),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none",children:[e.jsx("option",{value:"personal",children:s("memories.create.scope.personal")}),e.jsx("option",{value:"team",children:s("memories.scope.team")})]}),c==="sqlite"&&n==="team"&&e.jsxs("select",{value:u,onChange:r=>P(r.target.value),"aria-label":s("memories.scope.team"),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none",children:[o.length===0&&e.jsx("option",{value:"",children:"—"}),o.map(r=>e.jsx("option",{value:r.id,children:r.name},r.id))]})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-content",children:s("memories.create.content")}),e.jsx("textarea",{id:"memory-create-content",value:f,onChange:r=>T(r.target.value),placeholder:s("memorySidebar.create.contentPlaceholder"),rows:10,spellCheck:!1,className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 font-mono text-xs text-text-primary focus:border-accent focus:outline-none"})]}),S&&e.jsx("p",{className:"text-sm text-status-error",children:S})]}),e.jsxs(be,{children:[e.jsx("button",{type:"button",onClick:d,className:"rounded-md border border-border px-4 py-2 text-sm text-text-secondary hover:bg-surface-2",children:s("common.cancel")}),e.jsx("button",{type:"button",onClick:O,disabled:!w,className:"rounded-md bg-accent px-4 py-2 text-sm font-medium text-white hover:bg-accent/90 disabled:opacity-50",children:C?"…":s("memories.create.title")})]})]})})}function ge(){return e.jsx("div",{className:"space-y-3",children:[0,1,2].map(l=>e.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-surface-2"},l))})}function _({options:l,value:c,onChange:d,disabled:x=!1}){return e.jsx("div",{className:`flex rounded-md bg-surface-2 p-0.5 text-[11px] ${x?"pointer-events-none opacity-40":""}`,children:l.map(o=>e.jsx("button",{type:"button",onClick:()=>d(o.value),className:`rounded px-2 py-0.5 transition-colors ${c===o.value?"bg-brand-light text-white":"text-text-muted hover:text-text-secondary"}`,children:o.label},String(o.value)))})}function Ee(){B();const[l,c]=a.useState(null),[d,x]=a.useState(0);return a.useEffect(()=>{W().then(c).catch(()=>c({mode:"sqlite"}))},[]),a.useEffect(()=>{const o=()=>x(b=>b+1);return window.addEventListener("focus",o),()=>window.removeEventListener("focus",o)},[]),l===null?e.jsx("div",{className:"flex-1 overflow-y-auto",children:e.jsx("div",{className:"ds-page",children:e.jsx(ge,{})})}):e.jsx(ve,{mode:l.mode,status:l,refreshTick:d})}function ve({mode:l,status:c,refreshTick:d}){var K;const x=l==="sqlite",{myTeams:o}=H(),[b,y]=a.useState(!1),[h,N]=a.useState([]),[i,F]=a.useState("all"),[f,T]=a.useState("all"),[n,m]=a.useState(D),[u,P]=a.useState([]),[C,j]=a.useState(!0),[S,g]=a.useState(""),[w,O]=a.useState(""),[r,A]=a.useState(null),k=a.useRef(null),v=re(),$=a.useCallback(async()=>{j(!0),g("");try{const t=await J(f==="all"?void 0:f,i);P(t||[])}catch{g(s("memorySidebar.loadFailed"))}finally{j(!1)}},[i,f]);a.useEffect(()=>{V().then(N).catch(()=>N([]))},[d]),a.useEffect(()=>{$()},[$,d]),a.useEffect(()=>{k.current&&clearTimeout(k.current);const t=w.trim();if(!t){A(null);return}return k.current=setTimeout(()=>{Z(t,i).then(A).catch(()=>A([]))},300),()=>{k.current&&clearTimeout(k.current)}},[w,i]);const R=a.useMemo(()=>Object.fromEntries(h.map(t=>[t.key,t.shortName])),[h]),Y=a.useMemo(()=>ae(u),[u]),Q=(K=h.find(t=>t.isCurrent))==null?void 0:K.key,M=a.useMemo(()=>ne(u,n),[u,n]),q=a.useMemo(()=>new Set(M.map(t=>t.project).filter(Boolean)).size,[M]),E=r!==null,I=le(n),X=[{value:"all",label:s("memories.filter.scopeAll")},{value:"personal",label:s("memorySidebar.personal")},{value:"team",label:s("memorySidebar.team")}],z=oe.map(t=>({value:t.value,label:s(t.labelKey)}));return e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[e.jsxs("div",{className:"mx-auto flex min-h-0 w-full max-w-4xl flex-1 flex-col px-5 pt-7 pb-6 sm:px-8 sm:pt-9",children:[e.jsxs("header",{className:"ds-page-head",children:[e.jsxs("div",{className:"ds-page-titlerow",children:[e.jsx("h1",{className:"ds-page-title font-display font-semibold tracking-tight text-text-primary",children:s("memories.title")}),e.jsxs("button",{type:"button",onClick:()=>y(!0),className:"btn-ticket",children:[e.jsx(ee,{className:"h-3.5 w-3.5"}),s("memories.new")]})]}),e.jsx("p",{className:"ds-page-sub",children:x?s("memories.subtitle"):s("memories.subtitleMemdir")})]}),e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden rounded-xl border border-border bg-surface-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-border px-3 py-2",children:[h.length>0&&e.jsxs("select",{value:i,onChange:t=>F(t.target.value),className:"max-w-52 rounded-md border border-border bg-surface-2 px-2 py-1 text-xs text-text-primary focus:border-accent focus:outline-none",title:s("memories.filter.project"),"aria-label":s("memories.filter.project"),children:[e.jsx("option",{value:"all",children:s("memories.filter.projectAll")}),h.map(t=>e.jsxs("option",{value:t.key,children:[t.shortName,t.isCurrent?` · ${s("memories.filter.currentTag")}`:""]},t.key))]}),e.jsx(_,{options:X,value:f,onChange:T,disabled:E}),e.jsxs("span",{className:"ml-auto flex-shrink-0 font-mono text-[10px] text-text-muted",children:[L("memories.resultCount",{n:E?r.length:M.length}),i==="all"&&q>0?L("memories.resultProjects",{m:q}):""]})]}),e.jsxs("div",{className:`flex flex-wrap items-center gap-x-3 gap-y-1.5 border-b border-border px-3 py-1.5 ${E?"pointer-events-none opacity-40":""}`,children:[e.jsx(ce,{filters:n,onChange:m}),e.jsx(ie,{filters:n,onChange:m,counts:Y}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"text-[10px] text-text-muted",children:s("memories.filter.time")}),e.jsx(_,{options:z,value:n.days,onChange:t=>m(p=>({...p,days:t}))})]}),e.jsxs("div",{className:"flex min-w-32 flex-1 items-center gap-1.5",title:s("memories.filter.confidence"),children:[e.jsx("span",{className:"flex-shrink-0 text-[10px] text-text-muted",children:s("memories.filter.confidence")}),e.jsx("input",{type:"range",min:0,max:100,step:10,value:n.minConfidence*100,onChange:t=>m(p=>({...p,minConfidence:Number(t.target.value)/100})),className:"h-1 min-w-16 flex-1 accent-brand"}),e.jsx("span",{className:`flex-shrink-0 font-mono text-[10px] ${n.minConfidence>0?"text-brand-text":"text-text-muted"}`,children:L("memories.filter.minConfidence",{pct:n.minConfidence*100})})]}),e.jsxs("div",{className:"flex min-w-28 flex-1 items-center gap-1.5",title:s("memories.filter.access"),children:[e.jsx("span",{className:"flex-shrink-0 text-[10px] text-text-muted",children:s("memories.filter.access")}),e.jsx("input",{type:"range",min:0,max:10,step:1,value:n.minAccessCount,onChange:t=>m(p=>({...p,minAccessCount:Number(t.target.value)})),className:"h-1 min-w-12 flex-1 accent-brand"}),e.jsx("span",{className:`flex-shrink-0 font-mono text-[10px] ${n.minAccessCount>0?"text-brand-text":"text-text-muted"}`,children:L("memories.filter.minAccess",{n:n.minAccessCount})})]}),I&&e.jsxs("button",{type:"button",onClick:()=>m(D),className:"flex flex-shrink-0 items-center gap-1 rounded-md px-1.5 py-0.5 text-[10px] text-text-muted hover:bg-surface-2 hover:text-text-primary",title:s("memories.filter.clear"),children:[e.jsx(te,{className:"h-3 w-3"}),s("memories.filter.clear")]})]}),e.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-3 py-1.5",children:[e.jsx(se,{className:"h-3 w-3 flex-shrink-0 text-text-muted"}),e.jsx("input",{value:w,onChange:t=>O(t.target.value),placeholder:s("memorySidebar.searchPlaceholder"),title:s("memorySidebar.searchHint"),className:"w-full bg-transparent text-xs text-text-primary placeholder:text-text-muted focus:outline-none"})]}),S&&e.jsx("p",{className:"px-3 py-1 text-xs text-status-error",children:S}),E&&e.jsx("div",{className:"flex-1 overflow-y-auto p-3",children:r.length===0?e.jsx("p",{className:"py-8 text-center text-xs text-text-muted",children:s("memorySidebar.noResults")}):e.jsx("ul",{className:"space-y-1.5",children:r.map(t=>e.jsxs("li",{children:[e.jsxs("button",{type:"button",onClick:()=>void v.toggleExpand(t),className:"w-full rounded-md px-2 py-1.5 text-left hover:bg-surface-2",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"truncate text-xs font-medium text-text-primary",children:t.name}),e.jsx(me,{layer:t.layer}),t.project&&e.jsx("span",{className:"max-w-24 flex-shrink-0 truncate rounded-full bg-surface-3 px-1.5 py-0.5 text-[9px] font-medium text-text-muted",title:t.project,children:R[t.project]??t.project.split("-").pop()}),t.teamName&&e.jsx("span",{className:"max-w-24 flex-shrink-0 truncate rounded-full bg-surface-3 px-1.5 py-0.5 text-[9px] font-medium text-text-muted",title:t.teamName,children:t.teamName})]}),e.jsx("ul",{className:"mt-0.5 space-y-0.5",children:t.matches.map((p,G)=>e.jsxs("li",{className:"flex gap-1.5 text-[10px] leading-relaxed",children:[e.jsx("span",{className:"flex-shrink-0 font-mono text-text-muted",children:p.line===0?"file":`L${p.line}`}),e.jsx("span",{className:"truncate text-text-secondary",children:p.text})]},G))})]}),v.expandedKey===(t.project?`${t.project}::${t.path}`:t.path)&&e.jsx("pre",{className:"mx-2 mt-1 max-h-48 overflow-y-auto whitespace-pre-wrap rounded bg-surface-3 p-2 text-[10px] leading-relaxed text-text-secondary",children:v.fileContent[t.project?`${t.project}::${t.path}`:t.path]??"…"})]},`${t.project??""}::${t.path}`))})}),!E&&e.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:!C&&u.length>0&&M.length===0?e.jsxs("div",{className:"py-10 text-center",children:[e.jsx(de,{className:"mx-auto h-6 w-6 text-text-muted/40"}),e.jsx("p",{className:"mt-2 text-xs text-text-muted",children:s("memories.filter.empty")}),I?e.jsx("button",{type:"button",onClick:()=>m(D),className:"mt-2 rounded-md border border-border px-2.5 py-1 text-[11px] text-text-secondary hover:bg-surface-2",children:s("memories.filter.clear")}):e.jsx("p",{className:"mt-1 px-4 text-[10px] leading-relaxed text-text-muted",children:s("memories.filter.layersHidden")})]}):e.jsx(xe,{files:M,isLoading:C,canManage:t=>!t.project||t.project===Q,teamEnabled:x||c.teamEnabled===!0,teams:x?o:void 0,showProject:i==="all",projectNames:R,onChanged:$,expandedKey:v.expandedKey,fileContent:v.fileContent,onToggleExpand:v.toggleExpand})})]})]}),e.jsx(je,{open:b,mode:l,onClose:()=>y(!1),onCreated:()=>{y(!1),$()}})]})}export{Ee as MemoriesPage};
1
+ import{e as a,j as e}from"./vendor-DE_-CLIE.js";import{aW as B,aX as H,aO as s,$ as U,ad as W,ab as J,ac as V,aq as Z,t as ee,aP as L,X as te,S as se}from"./main-Mn7R0A18.js";import{D,u as re,e as ae,d as ne,h as le,T as oe,c as ce,b as ie,a as me,F as de,M as xe}from"./MemoryTypeChips-DuOHvrLG.js";import{D as ue,a as pe,c as he,d as fe,b as be}from"./dialog-1duL__fs.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";const ye=["user","feedback","project","reference"];function je({open:l,mode:c,onClose:d,onCreated:x}){B();const{myTeams:o}=H(),[b,y]=a.useState(""),[h,N]=a.useState(""),[i,F]=a.useState("project"),[f,T]=a.useState(""),[n,m]=a.useState("personal"),[u,P]=a.useState(""),[C,j]=a.useState(!1),[S,g]=a.useState("");a.useEffect(()=>{var r;l&&(y(""),N(""),F("project"),T(""),m("personal"),P(((r=o[0])==null?void 0:r.id)??""),j(!1),g(""))},[l,o]);const w=b.trim().length>0&&f.trim().length>0&&!C&&(n==="personal"||c==="memdir"||!!u),O=async()=>{j(!0),g("");try{await U({scope:n,name:b.trim(),description:h.trim()||void 0,type:i,content:f,...c==="sqlite"&&n==="team"?{teamId:u}:{}}),x()}catch(r){g(r instanceof Error?r.message:s("memorySidebar.createFailed"))}finally{j(!1)}};return e.jsx(ue,{open:l,onOpenChange:r=>r?void 0:d(),children:e.jsxs(pe,{className:"max-h-[85vh] overflow-y-auto sm:max-w-2xl",children:[e.jsx(he,{children:e.jsx(fe,{children:s("memories.create.title")})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-name",children:s("memorySidebar.create.namePlaceholder")}),e.jsx("input",{id:"memory-create-name",type:"text",value:b,onChange:r=>y(r.target.value),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-description",children:s("memorySidebar.create.descriptionPlaceholder")}),e.jsx("input",{id:"memory-create-description",type:"text",value:h,onChange:r=>N(r.target.value),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none"})]}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-type",children:s("memories.create.type")}),e.jsx("select",{id:"memory-create-type",value:i,onChange:r=>F(r.target.value),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none",children:ye.map(r=>e.jsx("option",{value:r,children:s(`memories.type.${r}`)},r))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-scope",children:s("memories.create.scope")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("select",{id:"memory-create-scope",value:n,onChange:r=>m(r.target.value),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none",children:[e.jsx("option",{value:"personal",children:s("memories.create.scope.personal")}),e.jsx("option",{value:"team",children:s("memories.scope.team")})]}),c==="sqlite"&&n==="team"&&e.jsxs("select",{value:u,onChange:r=>P(r.target.value),"aria-label":s("memories.scope.team"),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none",children:[o.length===0&&e.jsx("option",{value:"",children:"—"}),o.map(r=>e.jsx("option",{value:r.id,children:r.name},r.id))]})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-content",children:s("memories.create.content")}),e.jsx("textarea",{id:"memory-create-content",value:f,onChange:r=>T(r.target.value),placeholder:s("memorySidebar.create.contentPlaceholder"),rows:10,spellCheck:!1,className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 font-mono text-xs text-text-primary focus:border-accent focus:outline-none"})]}),S&&e.jsx("p",{className:"text-sm text-status-error",children:S})]}),e.jsxs(be,{children:[e.jsx("button",{type:"button",onClick:d,className:"rounded-md border border-border px-4 py-2 text-sm text-text-secondary hover:bg-surface-2",children:s("common.cancel")}),e.jsx("button",{type:"button",onClick:O,disabled:!w,className:"rounded-md bg-accent px-4 py-2 text-sm font-medium text-white hover:bg-accent/90 disabled:opacity-50",children:C?"…":s("memories.create.title")})]})]})})}function ge(){return e.jsx("div",{className:"space-y-3",children:[0,1,2].map(l=>e.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-surface-2"},l))})}function _({options:l,value:c,onChange:d,disabled:x=!1}){return e.jsx("div",{className:`flex rounded-md bg-surface-2 p-0.5 text-[11px] ${x?"pointer-events-none opacity-40":""}`,children:l.map(o=>e.jsx("button",{type:"button",onClick:()=>d(o.value),className:`rounded px-2 py-0.5 transition-colors ${c===o.value?"bg-brand-light text-white":"text-text-muted hover:text-text-secondary"}`,children:o.label},String(o.value)))})}function Ee(){B();const[l,c]=a.useState(null),[d,x]=a.useState(0);return a.useEffect(()=>{W().then(c).catch(()=>c({mode:"sqlite"}))},[]),a.useEffect(()=>{const o=()=>x(b=>b+1);return window.addEventListener("focus",o),()=>window.removeEventListener("focus",o)},[]),l===null?e.jsx("div",{className:"flex-1 overflow-y-auto",children:e.jsx("div",{className:"ds-page",children:e.jsx(ge,{})})}):e.jsx(ve,{mode:l.mode,status:l,refreshTick:d})}function ve({mode:l,status:c,refreshTick:d}){var K;const x=l==="sqlite",{myTeams:o}=H(),[b,y]=a.useState(!1),[h,N]=a.useState([]),[i,F]=a.useState("all"),[f,T]=a.useState("all"),[n,m]=a.useState(D),[u,P]=a.useState([]),[C,j]=a.useState(!0),[S,g]=a.useState(""),[w,O]=a.useState(""),[r,A]=a.useState(null),k=a.useRef(null),v=re(),$=a.useCallback(async()=>{j(!0),g("");try{const t=await J(f==="all"?void 0:f,i);P(t||[])}catch{g(s("memorySidebar.loadFailed"))}finally{j(!1)}},[i,f]);a.useEffect(()=>{V().then(N).catch(()=>N([]))},[d]),a.useEffect(()=>{$()},[$,d]),a.useEffect(()=>{k.current&&clearTimeout(k.current);const t=w.trim();if(!t){A(null);return}return k.current=setTimeout(()=>{Z(t,i).then(A).catch(()=>A([]))},300),()=>{k.current&&clearTimeout(k.current)}},[w,i]);const R=a.useMemo(()=>Object.fromEntries(h.map(t=>[t.key,t.shortName])),[h]),Y=a.useMemo(()=>ae(u),[u]),Q=(K=h.find(t=>t.isCurrent))==null?void 0:K.key,M=a.useMemo(()=>ne(u,n),[u,n]),q=a.useMemo(()=>new Set(M.map(t=>t.project).filter(Boolean)).size,[M]),E=r!==null,I=le(n),X=[{value:"all",label:s("memories.filter.scopeAll")},{value:"personal",label:s("memorySidebar.personal")},{value:"team",label:s("memorySidebar.team")}],z=oe.map(t=>({value:t.value,label:s(t.labelKey)}));return e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[e.jsxs("div",{className:"mx-auto flex min-h-0 w-full max-w-4xl flex-1 flex-col px-5 pt-7 pb-6 sm:px-8 sm:pt-9",children:[e.jsxs("header",{className:"ds-page-head",children:[e.jsxs("div",{className:"ds-page-titlerow",children:[e.jsx("h1",{className:"ds-page-title font-display font-semibold tracking-tight text-text-primary",children:s("memories.title")}),e.jsxs("button",{type:"button",onClick:()=>y(!0),className:"btn-ticket",children:[e.jsx(ee,{className:"h-3.5 w-3.5"}),s("memories.new")]})]}),e.jsx("p",{className:"ds-page-sub",children:x?s("memories.subtitle"):s("memories.subtitleMemdir")})]}),e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden rounded-xl border border-border bg-surface-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-border px-3 py-2",children:[h.length>0&&e.jsxs("select",{value:i,onChange:t=>F(t.target.value),className:"max-w-52 rounded-md border border-border bg-surface-2 px-2 py-1 text-xs text-text-primary focus:border-accent focus:outline-none",title:s("memories.filter.project"),"aria-label":s("memories.filter.project"),children:[e.jsx("option",{value:"all",children:s("memories.filter.projectAll")}),h.map(t=>e.jsxs("option",{value:t.key,children:[t.shortName,t.isCurrent?` · ${s("memories.filter.currentTag")}`:""]},t.key))]}),e.jsx(_,{options:X,value:f,onChange:T,disabled:E}),e.jsxs("span",{className:"ml-auto flex-shrink-0 font-mono text-[10px] text-text-muted",children:[L("memories.resultCount",{n:E?r.length:M.length}),i==="all"&&q>0?L("memories.resultProjects",{m:q}):""]})]}),e.jsxs("div",{className:`flex flex-wrap items-center gap-x-3 gap-y-1.5 border-b border-border px-3 py-1.5 ${E?"pointer-events-none opacity-40":""}`,children:[e.jsx(ce,{filters:n,onChange:m}),e.jsx(ie,{filters:n,onChange:m,counts:Y}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"text-[10px] text-text-muted",children:s("memories.filter.time")}),e.jsx(_,{options:z,value:n.days,onChange:t=>m(p=>({...p,days:t}))})]}),e.jsxs("div",{className:"flex min-w-32 flex-1 items-center gap-1.5",title:s("memories.filter.confidence"),children:[e.jsx("span",{className:"flex-shrink-0 text-[10px] text-text-muted",children:s("memories.filter.confidence")}),e.jsx("input",{type:"range",min:0,max:100,step:10,value:n.minConfidence*100,onChange:t=>m(p=>({...p,minConfidence:Number(t.target.value)/100})),className:"h-1 min-w-16 flex-1 accent-brand"}),e.jsx("span",{className:`flex-shrink-0 font-mono text-[10px] ${n.minConfidence>0?"text-brand-text":"text-text-muted"}`,children:L("memories.filter.minConfidence",{pct:n.minConfidence*100})})]}),e.jsxs("div",{className:"flex min-w-28 flex-1 items-center gap-1.5",title:s("memories.filter.access"),children:[e.jsx("span",{className:"flex-shrink-0 text-[10px] text-text-muted",children:s("memories.filter.access")}),e.jsx("input",{type:"range",min:0,max:10,step:1,value:n.minAccessCount,onChange:t=>m(p=>({...p,minAccessCount:Number(t.target.value)})),className:"h-1 min-w-12 flex-1 accent-brand"}),e.jsx("span",{className:`flex-shrink-0 font-mono text-[10px] ${n.minAccessCount>0?"text-brand-text":"text-text-muted"}`,children:L("memories.filter.minAccess",{n:n.minAccessCount})})]}),I&&e.jsxs("button",{type:"button",onClick:()=>m(D),className:"flex flex-shrink-0 items-center gap-1 rounded-md px-1.5 py-0.5 text-[10px] text-text-muted hover:bg-surface-2 hover:text-text-primary",title:s("memories.filter.clear"),children:[e.jsx(te,{className:"h-3 w-3"}),s("memories.filter.clear")]})]}),e.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-3 py-1.5",children:[e.jsx(se,{className:"h-3 w-3 flex-shrink-0 text-text-muted"}),e.jsx("input",{value:w,onChange:t=>O(t.target.value),placeholder:s("memorySidebar.searchPlaceholder"),title:s("memorySidebar.searchHint"),className:"w-full bg-transparent text-xs text-text-primary placeholder:text-text-muted focus:outline-none"})]}),S&&e.jsx("p",{className:"px-3 py-1 text-xs text-status-error",children:S}),E&&e.jsx("div",{className:"flex-1 overflow-y-auto p-3",children:r.length===0?e.jsx("p",{className:"py-8 text-center text-xs text-text-muted",children:s("memorySidebar.noResults")}):e.jsx("ul",{className:"space-y-1.5",children:r.map(t=>e.jsxs("li",{children:[e.jsxs("button",{type:"button",onClick:()=>void v.toggleExpand(t),className:"w-full rounded-md px-2 py-1.5 text-left hover:bg-surface-2",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"truncate text-xs font-medium text-text-primary",children:t.name}),e.jsx(me,{layer:t.layer}),t.project&&e.jsx("span",{className:"max-w-24 flex-shrink-0 truncate rounded-full bg-surface-3 px-1.5 py-0.5 text-[9px] font-medium text-text-muted",title:t.project,children:R[t.project]??t.project.split("-").pop()}),t.teamName&&e.jsx("span",{className:"max-w-24 flex-shrink-0 truncate rounded-full bg-surface-3 px-1.5 py-0.5 text-[9px] font-medium text-text-muted",title:t.teamName,children:t.teamName})]}),e.jsx("ul",{className:"mt-0.5 space-y-0.5",children:t.matches.map((p,G)=>e.jsxs("li",{className:"flex gap-1.5 text-[10px] leading-relaxed",children:[e.jsx("span",{className:"flex-shrink-0 font-mono text-text-muted",children:p.line===0?"file":`L${p.line}`}),e.jsx("span",{className:"truncate text-text-secondary",children:p.text})]},G))})]}),v.expandedKey===(t.project?`${t.project}::${t.path}`:t.path)&&e.jsx("pre",{className:"mx-2 mt-1 max-h-48 overflow-y-auto whitespace-pre-wrap rounded bg-surface-3 p-2 text-[10px] leading-relaxed text-text-secondary",children:v.fileContent[t.project?`${t.project}::${t.path}`:t.path]??"…"})]},`${t.project??""}::${t.path}`))})}),!E&&e.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:!C&&u.length>0&&M.length===0?e.jsxs("div",{className:"py-10 text-center",children:[e.jsx(de,{className:"mx-auto h-6 w-6 text-text-muted/40"}),e.jsx("p",{className:"mt-2 text-xs text-text-muted",children:s("memories.filter.empty")}),I?e.jsx("button",{type:"button",onClick:()=>m(D),className:"mt-2 rounded-md border border-border px-2.5 py-1 text-[11px] text-text-secondary hover:bg-surface-2",children:s("memories.filter.clear")}):e.jsx("p",{className:"mt-1 px-4 text-[10px] leading-relaxed text-text-muted",children:s("memories.filter.layersHidden")})]}):e.jsx(xe,{files:M,isLoading:C,canManage:t=>!t.project||t.project===Q,teamEnabled:x||c.teamEnabled===!0,teams:x?o:void 0,showProject:i==="all",projectNames:R,onChanged:$,expandedKey:v.expandedKey,fileContent:v.fileContent,onToggleExpand:v.toggleExpand})})]})]}),e.jsx(je,{open:b,mode:l,onClose:()=>y(!1),onCreated:()=>{y(!1),$()}})]})}export{Ee as MemoriesPage};
@@ -1,4 +1,4 @@
1
- import{aA as Y,aa as L,aO as c,aW as B,ak as D,B as z,P as H,V,N as U,a3 as q,aw as W}from"./main-NnYVszZ7.js";import{e as d,j as e}from"./vendor-DE_-CLIE.js";import{D as G,a as J,c as Q,d as X,b as Z}from"./dialog-uWDnwMIc.js";/**
1
+ import{aA as Y,aa as L,aO as c,aW as B,ak as D,B as z,P as H,V,N as U,a3 as q,aw as W}from"./main-Mn7R0A18.js";import{e as d,j as e}from"./vendor-DE_-CLIE.js";import{D as G,a as J,c as Q,d as X,b as Z}from"./dialog-1duL__fs.js";/**
2
2
  * @license lucide-react v0.555.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{e as r,j as e}from"./vendor-DE_-CLIE.js";import{aV as w,c as y,aO as t}from"./main-NnYVszZ7.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";function C({onSuccess:m,onBack:x}){const{register:h}=w(),[n,p]=r.useState(""),[a,b]=r.useState(""),[l,f]=r.useState(""),[d,o]=r.useState(""),[i,u]=r.useState(!1),g=async s=>{if(s.preventDefault(),o(""),a.length<8){o(t("auth.setup.passwordTooShort"));return}if(a!==l){o(t("auth.setup.passwordMismatch"));return}u(!0);try{await h(n,a),m()}catch(c){o(c instanceof Error?c.message:t("auth.register.failed"))}finally{u(!1)}};return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-surface-0 px-4",children:e.jsxs("div",{className:"hero-enter w-full max-w-sm space-y-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(y,{className:"mx-auto mb-5 h-10 w-10"}),e.jsx("h1",{className:"font-display text-3xl font-semibold tracking-tight text-text-primary",children:t("auth.register.title")}),e.jsx("p",{className:"mt-2 text-sm text-text-muted",children:t("auth.register.description")})]}),e.jsxs("form",{onSubmit:g,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.login.username")}),e.jsx("input",{type:"text",value:n,onChange:s=>p(s.target.value),required:!0,autoComplete:"username",autoFocus:!0,className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.login.password")}),e.jsx("input",{type:"password",value:a,onChange:s=>b(s.target.value),required:!0,autoComplete:"new-password",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.join.confirmPassword")}),e.jsx("input",{type:"password",value:l,onChange:s=>f(s.target.value),required:!0,autoComplete:"new-password",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),d&&e.jsx("p",{className:"text-sm text-status-error",children:d}),e.jsx("button",{type:"submit",disabled:i,className:"w-full rounded-lg bg-brand px-4 py-2.5 font-display text-sm font-medium text-white shadow-lg shadow-brand/25 transition-all hover:-translate-y-0.5 hover:bg-brand-light hover:shadow-brand/40 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:translate-y-0 disabled:hover:shadow-none",children:i?t("common.loading"):t("auth.register.submit")})]}),e.jsx("button",{type:"button",onClick:x,className:"w-full text-center text-sm text-text-muted hover:text-text-primary transition-colors",children:t("auth.register.backToLogin")})]})})}export{C as Register};
1
+ import{e as r,j as e}from"./vendor-DE_-CLIE.js";import{aV as w,c as y,aO as t}from"./main-Mn7R0A18.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";function C({onSuccess:m,onBack:x}){const{register:h}=w(),[n,p]=r.useState(""),[a,b]=r.useState(""),[l,f]=r.useState(""),[d,o]=r.useState(""),[i,u]=r.useState(!1),g=async s=>{if(s.preventDefault(),o(""),a.length<8){o(t("auth.setup.passwordTooShort"));return}if(a!==l){o(t("auth.setup.passwordMismatch"));return}u(!0);try{await h(n,a),m()}catch(c){o(c instanceof Error?c.message:t("auth.register.failed"))}finally{u(!1)}};return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-surface-0 px-4",children:e.jsxs("div",{className:"hero-enter w-full max-w-sm space-y-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(y,{className:"mx-auto mb-5 h-10 w-10"}),e.jsx("h1",{className:"font-display text-3xl font-semibold tracking-tight text-text-primary",children:t("auth.register.title")}),e.jsx("p",{className:"mt-2 text-sm text-text-muted",children:t("auth.register.description")})]}),e.jsxs("form",{onSubmit:g,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.login.username")}),e.jsx("input",{type:"text",value:n,onChange:s=>p(s.target.value),required:!0,autoComplete:"username",autoFocus:!0,className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.login.password")}),e.jsx("input",{type:"password",value:a,onChange:s=>b(s.target.value),required:!0,autoComplete:"new-password",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.join.confirmPassword")}),e.jsx("input",{type:"password",value:l,onChange:s=>f(s.target.value),required:!0,autoComplete:"new-password",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),d&&e.jsx("p",{className:"text-sm text-status-error",children:d}),e.jsx("button",{type:"submit",disabled:i,className:"w-full rounded-lg bg-brand px-4 py-2.5 font-display text-sm font-medium text-white shadow-lg shadow-brand/25 transition-all hover:-translate-y-0.5 hover:bg-brand-light hover:shadow-brand/40 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:translate-y-0 disabled:hover:shadow-none",children:i?t("common.loading"):t("auth.register.submit")})]}),e.jsx("button",{type:"button",onClick:x,className:"w-full text-center text-sm text-text-muted hover:text-text-primary transition-colors",children:t("auth.register.backToLogin")})]})})}export{C as Register};
@@ -1,4 +1,4 @@
1
- import{j as e}from"./vendor-DE_-CLIE.js";import{aA as a,i as d,h as l,ay as p,aO as h}from"./main-NnYVszZ7.js";import{A as y}from"./workerType-CYFEJHte.js";/**
1
+ import{j as e}from"./vendor-DE_-CLIE.js";import{aA as a,i as d,h as l,ay as p,aO as h}from"./main-Mn7R0A18.js";import{A as y}from"./workerType-BYUJv8QQ.js";/**
2
2
  * @license lucide-react v0.555.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.