@futdevpro/ccap 1.1.3545 → 1.1.3557

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 (245) hide show
  1. package/cli/build/_collections/npm-global/npm-global-paths.interface.d.ts +28 -0
  2. package/cli/build/_collections/npm-global/npm-global-paths.interface.d.ts.map +1 -0
  3. package/cli/build/_collections/npm-global/npm-global-paths.interface.js +3 -0
  4. package/cli/build/_collections/npm-global/npm-global-paths.interface.js.map +1 -0
  5. package/cli/build/_collections/npm-global/npm-global-paths.util.d.ts +30 -0
  6. package/cli/build/_collections/npm-global/npm-global-paths.util.d.ts.map +1 -0
  7. package/cli/build/_collections/npm-global/npm-global-paths.util.js +124 -0
  8. package/cli/build/_collections/npm-global/npm-global-paths.util.js.map +1 -0
  9. package/cli/build/_collections/npm-global/npm-global-paths.util.spec.d.ts +8 -0
  10. package/cli/build/_collections/npm-global/npm-global-paths.util.spec.d.ts.map +1 -0
  11. package/cli/build/_collections/npm-global/npm-global-paths.util.spec.js +107 -0
  12. package/cli/build/_collections/npm-global/npm-global-paths.util.spec.js.map +1 -0
  13. package/cli/build/_collections/staging/staging-cleanup.util.d.ts +5 -2
  14. package/cli/build/_collections/staging/staging-cleanup.util.d.ts.map +1 -1
  15. package/cli/build/_collections/staging/staging-cleanup.util.js +10 -18
  16. package/cli/build/_collections/staging/staging-cleanup.util.js.map +1 -1
  17. package/cli/build/_collections/update/update-verify-install.util.d.ts +13 -17
  18. package/cli/build/_collections/update/update-verify-install.util.d.ts.map +1 -1
  19. package/cli/build/_collections/update/update-verify-install.util.js +55 -83
  20. package/cli/build/_collections/update/update-verify-install.util.js.map +1 -1
  21. package/cli/build/_collections/update/update-verify-install.util.spec.d.ts +3 -0
  22. package/cli/build/_collections/update/update-verify-install.util.spec.d.ts.map +1 -1
  23. package/cli/build/_collections/update/update-verify-install.util.spec.js +82 -22
  24. package/cli/build/_collections/update/update-verify-install.util.spec.js.map +1 -1
  25. package/cli/build/_collections/update/update-version-check.util.d.ts +6 -4
  26. package/cli/build/_collections/update/update-version-check.util.d.ts.map +1 -1
  27. package/cli/build/_collections/update/update-version-check.util.js +10 -20
  28. package/cli/build/_collections/update/update-version-check.util.js.map +1 -1
  29. package/client-dist/{agent-instances.module-M37UL5ZS.js → agent-instances.module-NDNG4HC6.js} +2 -2
  30. package/client-dist/{ca.module-LQG6N5PN.js → ca.module-Y5FJIVDH.js} +2 -2
  31. package/client-dist/{cc-usage-dashboard.component-26DXWVRC.js → cc-usage-dashboard.component-DAJMNYQD.js} +2 -2
  32. package/client-dist/{cc.module-UPRIKRHQ.js → cc.module-IHZXPJ3G.js} +2 -2
  33. package/client-dist/{chunk-PGUTP7BT.js → chunk-2EGN5OIA.js} +2 -2
  34. package/client-dist/{chunk-2QXYE2FN.js → chunk-2P5XNKSU.js} +2 -2
  35. package/client-dist/{chunk-IJFDZQDF.js → chunk-2XSAWMFD.js} +2 -2
  36. package/client-dist/{chunk-ORKQJA72.js → chunk-3EQBM3NI.js} +2 -2
  37. package/client-dist/chunk-3KUKN53F.js +73 -0
  38. package/client-dist/chunk-3KUKN53F.js.map +1 -0
  39. package/client-dist/{chunk-INFA5WNP.js → chunk-3NI6EUGP.js} +2 -2
  40. package/client-dist/{chunk-BR3NTMK5.js → chunk-5F77NGYL.js} +2 -2
  41. package/client-dist/{chunk-JVMAUZVZ.js → chunk-5UV722GH.js} +2 -2
  42. package/client-dist/{chunk-K7HRLFLM.js → chunk-65R5RLWC.js} +2 -2
  43. package/client-dist/{chunk-OL6YRR73.js → chunk-73EAXEDI.js} +2 -2
  44. package/client-dist/{chunk-BOKJPFNS.js → chunk-7XUJIV75.js} +2 -2
  45. package/client-dist/{chunk-XWHBNOEF.js → chunk-ALKI4J2W.js} +2 -2
  46. package/client-dist/{chunk-IAZNXEV5.js → chunk-C7746ZDD.js} +2 -2
  47. package/client-dist/{chunk-H3QG3XIB.js → chunk-CEXJQIOB.js} +2 -2
  48. package/client-dist/{chunk-5SRB4WVQ.js → chunk-CVIA6GIV.js} +2 -2
  49. package/client-dist/{chunk-OVKQVCOI.js → chunk-CVSG4HQU.js} +2 -2
  50. package/client-dist/{chunk-QXZTZC7X.js → chunk-D4C3OD6J.js} +2 -2
  51. package/client-dist/{chunk-QNOKNRNK.js → chunk-EAFI4YMD.js} +2 -2
  52. package/client-dist/{chunk-JH7JGPFQ.js → chunk-EGAUOFDI.js} +2 -2
  53. package/client-dist/{chunk-PZQA4FCL.js → chunk-EHT2HQDT.js} +2 -2
  54. package/client-dist/{chunk-G6TB4WUF.js → chunk-ER7KIQXW.js} +2 -2
  55. package/client-dist/{chunk-EFN7DGQP.js → chunk-EZ2OC4CA.js} +2 -2
  56. package/client-dist/{chunk-RY33S66J.js → chunk-F3NE5SNS.js} +2 -2
  57. package/client-dist/{chunk-ZKLQIMQZ.js → chunk-FCYMPE2S.js} +2 -2
  58. package/client-dist/{chunk-KHPHT7M2.js → chunk-FHGZ3DH7.js} +2 -2
  59. package/client-dist/{chunk-NGKAIBKH.js → chunk-FHOK7MOR.js} +2 -2
  60. package/client-dist/{chunk-5AVCLDUF.js → chunk-GLY7XIEO.js} +2 -2
  61. package/client-dist/{chunk-5AVCLDUF.js.map → chunk-GLY7XIEO.js.map} +1 -1
  62. package/client-dist/{chunk-VCKPIPJZ.js → chunk-GWT4NLC6.js} +2 -2
  63. package/client-dist/{chunk-DEUH7G5Q.js → chunk-HBDXPQIC.js} +2 -2
  64. package/client-dist/{chunk-F45D4UGB.js → chunk-HIRPZSS5.js} +2 -2
  65. package/client-dist/{chunk-YHYAAVDM.js → chunk-HO6SWXO3.js} +2 -2
  66. package/client-dist/{chunk-ZOJX6LQ2.js → chunk-I5DLHGUT.js} +2 -2
  67. package/client-dist/{chunk-KNMJ3JEH.js → chunk-IB5B5H24.js} +2 -2
  68. package/client-dist/{chunk-LRNXI5PI.js → chunk-IMILT6U5.js} +2 -2
  69. package/client-dist/{chunk-XN7YOYCH.js → chunk-IN2UAFFX.js} +2 -2
  70. package/client-dist/{chunk-BYE5D2MY.js → chunk-IRITCLVX.js} +2 -2
  71. package/client-dist/{chunk-YOYVBN2F.js → chunk-J66SGQQK.js} +2 -2
  72. package/client-dist/{chunk-PBFFGCZP.js → chunk-KRSUKF3L.js} +2 -2
  73. package/client-dist/{chunk-BQI6NBXW.js → chunk-MN6YUX6R.js} +2 -2
  74. package/client-dist/{chunk-DN67NEP3.js → chunk-O2QGLI7P.js} +2 -2
  75. package/client-dist/{chunk-OFWL36K2.js → chunk-ODQXZPME.js} +2 -2
  76. package/client-dist/{chunk-GV2Y7K5T.js → chunk-PB5GJJMR.js} +2 -2
  77. package/client-dist/{chunk-QFI5KDQS.js → chunk-QBRVPAZB.js} +2 -2
  78. package/client-dist/{chunk-Y7WEET42.js → chunk-QZVMUDW7.js} +2 -2
  79. package/client-dist/{chunk-UIZMS7RF.js → chunk-R77S4JY5.js} +2 -2
  80. package/client-dist/{chunk-ZYNLISTI.js → chunk-RNENIOVE.js} +2 -2
  81. package/client-dist/{chunk-PMMQZ476.js → chunk-TGBNDSOS.js} +2 -2
  82. package/client-dist/{chunk-U7KCQYK3.js → chunk-UUJ5VF4E.js} +2 -2
  83. package/client-dist/{chunk-IPJWDV7N.js → chunk-UV7YDW6X.js} +2 -2
  84. package/client-dist/{chunk-LLMVHG5S.js → chunk-UXTS2HWD.js} +2 -2
  85. package/client-dist/{chunk-VHAC2WS6.js → chunk-VSY6ABSB.js} +2 -2
  86. package/client-dist/{chunk-C527FWS7.js → chunk-WB44FME2.js} +2 -2
  87. package/client-dist/{chunk-QEMMWIWJ.js → chunk-WHJDIPTM.js} +2 -2
  88. package/client-dist/{chunk-A747EWKG.js → chunk-YBKSPRVS.js} +2 -2
  89. package/client-dist/{chunk-N7CMLQRV.js → chunk-YD7R724R.js} +2 -2
  90. package/client-dist/{chunk-UHFX32HG.js → chunk-YD7T74SA.js} +2 -2
  91. package/client-dist/{chunk-NL6KS2PG.js → chunk-YTJ626F2.js} +2 -2
  92. package/client-dist/{consultant.module-5O4QS6MV.js → consultant.module-OCAX7KQT.js} +2 -2
  93. package/client-dist/{crd.module-JDDURK3D.js → crd.module-LO6GCSNU.js} +2 -2
  94. package/client-dist/{dashboard.module-CPX4AHDB.js → dashboard.module-SPGBUCMD.js} +2 -2
  95. package/client-dist/{do.module-GPVMSSUT.js → do.module-KALYZEB6.js} +2 -2
  96. package/client-dist/{document-library.module-FC5QOT5U.js → document-library.module-HX5BXVZ2.js} +2 -2
  97. package/client-dist/{embedding-eval.module-4E3DEQE2.js → embedding-eval.module-BZ7QMCT5.js} +2 -2
  98. package/client-dist/{embedding-registry.module-EVJW6GDG.js → embedding-registry.module-4KH7QGE5.js} +2 -2
  99. package/client-dist/{err.module-QCEQ4XHL.js → err.module-M4E27OWR.js} +2 -2
  100. package/client-dist/{feedback.module-7OY7EZAS.js → feedback.module-E7FYACM4.js} +2 -2
  101. package/client-dist/{host-runtime-mcp.module-WCA4GRIQ.js → host-runtime-mcp.module-AV3EO5I3.js} +2 -2
  102. package/client-dist/index.html +1 -1
  103. package/client-dist/{live-dev-pipeline.module-CWOXURFE.js → live-dev-pipeline.module-EAH5255G.js} +2 -2
  104. package/client-dist/{logs.module-LZA7HKW2.js → logs.module-KONMW55W.js} +2 -2
  105. package/client-dist/main-4IV3NJMV.js +7 -0
  106. package/client-dist/main-4IV3NJMV.js.map +7 -0
  107. package/client-dist/{master-control-remote-poc.module-ZXTIM7U2.js → master-control-remote-poc.module-3KAKM6EL.js} +2 -2
  108. package/client-dist/{mobile-app.module-GYANFQRM.js → mobile-app.module-C7IMUTOE.js} +2 -2
  109. package/client-dist/{model-registry.module-GFN6PSBG.js → model-registry.module-A35YFVEE.js} +2 -2
  110. package/client-dist/{oc.module-FLPI4WQK.js → oc.module-XT7VDCSU.js} +2 -2
  111. package/client-dist/{orc.module-GF3YPUTO.js → orc.module-4YGRTRV6.js} +2 -2
  112. package/client-dist/{project-management.module-JCP3QYMC.js → project-management.module-LI3L4WCD.js} +2 -2
  113. package/client-dist/project-source-routed.module-CJB4YJND.js +2 -0
  114. package/client-dist/{scheduler.module-SRO6H5K6.js → scheduler.module-HEG5JCVO.js} +2 -2
  115. package/client-dist/{session.module-VQ7PBBDQ.js → session.module-DEIGFE2V.js} +2 -2
  116. package/client-dist/{set.module-P76APIOK.js → set.module-DSD6PIYI.js} +2 -2
  117. package/client-dist/{setup.module-VTMU43WO.js → setup.module-WDIRWV32.js} +2 -2
  118. package/client-dist/{terminals.module-AAU3GPWE.js → terminals.module-4KEH5NED.js} +2 -2
  119. package/client-dist/{voice-notes-poc.module-IGR2R6XD.js → voice-notes-poc.module-UWGARHN5.js} +2 -2
  120. package/client-dist/{wfs.module-J34NQGDG.js → wfs.module-XAEMCUIF.js} +2 -2
  121. package/package.json +1 -1
  122. package/server/build/src/_modules/ccap-agent/_modules/integrations/_modules/voice/_collections/utils/elevenlabs-tts.util.d.ts.map +1 -1
  123. package/server/build/src/_modules/ccap-agent/_modules/integrations/_modules/voice/_collections/utils/elevenlabs-tts.util.js +17 -0
  124. package/server/build/src/_modules/ccap-agent/_modules/integrations/_modules/voice/_collections/utils/elevenlabs-tts.util.js.map +1 -1
  125. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/code-search/_collections/consts/code-search-tool-schema.const.d.ts.map +1 -1
  126. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/code-search/_collections/consts/code-search-tool-schema.const.js +3 -1
  127. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/code-search/_collections/consts/code-search-tool-schema.const.js.map +1 -1
  128. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/environment-readiness/_collections/consts/environment-readiness-tool-definition.const.d.ts.map +1 -1
  129. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/environment-readiness/_collections/consts/environment-readiness-tool-definition.const.js +3 -1
  130. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/environment-readiness/_collections/consts/environment-readiness-tool-definition.const.js.map +1 -1
  131. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/exec/_collections/consts/exec-tool-usage-rules.const.d.ts.map +1 -1
  132. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/exec/_collections/consts/exec-tool-usage-rules.const.js +5 -1
  133. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/exec/_collections/consts/exec-tool-usage-rules.const.js.map +1 -1
  134. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-explore/_collections/consts/ffe-explore-tool-usage-rules.const.d.ts.map +1 -1
  135. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-explore/_collections/consts/ffe-explore-tool-usage-rules.const.js +6 -1
  136. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-explore/_collections/consts/ffe-explore-tool-usage-rules.const.js.map +1 -1
  137. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-handling/_collections/consts/fh-handling-tool-usage-rules.const.d.ts.map +1 -1
  138. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-handling/_collections/consts/fh-handling-tool-usage-rules.const.js +6 -1
  139. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-handling/_collections/consts/fh-handling-tool-usage-rules.const.js.map +1 -1
  140. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-search/_collections/consts/fs-search-tool-usage-rules.const.d.ts.map +1 -1
  141. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-search/_collections/consts/fs-search-tool-usage-rules.const.js +6 -1
  142. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-search/_collections/consts/fs-search-tool-usage-rules.const.js.map +1 -1
  143. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/received-files/_collections/consts/save-received-files-tool-definition.const.d.ts.map +1 -1
  144. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/received-files/_collections/consts/save-received-files-tool-definition.const.js +3 -1
  145. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/received-files/_collections/consts/save-received-files-tool-definition.const.js.map +1 -1
  146. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/self/_collections/consts/self-tool-definition.const.d.ts.map +1 -1
  147. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/self/_collections/consts/self-tool-definition.const.js +14 -12
  148. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/self/_collections/consts/self-tool-definition.const.js.map +1 -1
  149. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/self/_collections/consts/self-tool-definition.const.spec.js +19 -15
  150. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/self/_collections/consts/self-tool-definition.const.spec.js.map +1 -1
  151. package/server/build/src/_modules/external-sessions/_modules/ext-message/_collections/utils/cc-assembly.util.d.ts.map +1 -1
  152. package/server/build/src/_modules/external-sessions/_modules/ext-message/_collections/utils/cc-assembly.util.js +20 -1
  153. package/server/build/src/_modules/external-sessions/_modules/ext-message/_collections/utils/cc-assembly.util.js.map +1 -1
  154. package/server/build/src/_modules/external-sessions/_modules/ext-message/_collections/utils/cc-assembly.util.spec.js +89 -0
  155. package/server/build/src/_modules/external-sessions/_modules/ext-message/_collections/utils/cc-assembly.util.spec.js.map +1 -1
  156. package/client-dist/chunk-SMSOT7W7.js +0 -73
  157. package/client-dist/chunk-SMSOT7W7.js.map +0 -1
  158. package/client-dist/main-7TNGY6HW.js +0 -7
  159. package/client-dist/main-7TNGY6HW.js.map +0 -7
  160. package/client-dist/project-source-routed.module-H7SKWQ5J.js +0 -2
  161. /package/client-dist/{agent-instances.module-M37UL5ZS.js.map → agent-instances.module-NDNG4HC6.js.map} +0 -0
  162. /package/client-dist/{ca.module-LQG6N5PN.js.map → ca.module-Y5FJIVDH.js.map} +0 -0
  163. /package/client-dist/{cc-usage-dashboard.component-26DXWVRC.js.map → cc-usage-dashboard.component-DAJMNYQD.js.map} +0 -0
  164. /package/client-dist/{cc.module-UPRIKRHQ.js.map → cc.module-IHZXPJ3G.js.map} +0 -0
  165. /package/client-dist/{chunk-PGUTP7BT.js.map → chunk-2EGN5OIA.js.map} +0 -0
  166. /package/client-dist/{chunk-2QXYE2FN.js.map → chunk-2P5XNKSU.js.map} +0 -0
  167. /package/client-dist/{chunk-IJFDZQDF.js.map → chunk-2XSAWMFD.js.map} +0 -0
  168. /package/client-dist/{chunk-ORKQJA72.js.map → chunk-3EQBM3NI.js.map} +0 -0
  169. /package/client-dist/{chunk-INFA5WNP.js.map → chunk-3NI6EUGP.js.map} +0 -0
  170. /package/client-dist/{chunk-BR3NTMK5.js.map → chunk-5F77NGYL.js.map} +0 -0
  171. /package/client-dist/{chunk-JVMAUZVZ.js.map → chunk-5UV722GH.js.map} +0 -0
  172. /package/client-dist/{chunk-K7HRLFLM.js.map → chunk-65R5RLWC.js.map} +0 -0
  173. /package/client-dist/{chunk-OL6YRR73.js.map → chunk-73EAXEDI.js.map} +0 -0
  174. /package/client-dist/{chunk-BOKJPFNS.js.map → chunk-7XUJIV75.js.map} +0 -0
  175. /package/client-dist/{chunk-XWHBNOEF.js.map → chunk-ALKI4J2W.js.map} +0 -0
  176. /package/client-dist/{chunk-IAZNXEV5.js.map → chunk-C7746ZDD.js.map} +0 -0
  177. /package/client-dist/{chunk-H3QG3XIB.js.map → chunk-CEXJQIOB.js.map} +0 -0
  178. /package/client-dist/{chunk-5SRB4WVQ.js.map → chunk-CVIA6GIV.js.map} +0 -0
  179. /package/client-dist/{chunk-OVKQVCOI.js.map → chunk-CVSG4HQU.js.map} +0 -0
  180. /package/client-dist/{chunk-QXZTZC7X.js.map → chunk-D4C3OD6J.js.map} +0 -0
  181. /package/client-dist/{chunk-QNOKNRNK.js.map → chunk-EAFI4YMD.js.map} +0 -0
  182. /package/client-dist/{chunk-JH7JGPFQ.js.map → chunk-EGAUOFDI.js.map} +0 -0
  183. /package/client-dist/{chunk-PZQA4FCL.js.map → chunk-EHT2HQDT.js.map} +0 -0
  184. /package/client-dist/{chunk-G6TB4WUF.js.map → chunk-ER7KIQXW.js.map} +0 -0
  185. /package/client-dist/{chunk-EFN7DGQP.js.map → chunk-EZ2OC4CA.js.map} +0 -0
  186. /package/client-dist/{chunk-RY33S66J.js.map → chunk-F3NE5SNS.js.map} +0 -0
  187. /package/client-dist/{chunk-ZKLQIMQZ.js.map → chunk-FCYMPE2S.js.map} +0 -0
  188. /package/client-dist/{chunk-KHPHT7M2.js.map → chunk-FHGZ3DH7.js.map} +0 -0
  189. /package/client-dist/{chunk-NGKAIBKH.js.map → chunk-FHOK7MOR.js.map} +0 -0
  190. /package/client-dist/{chunk-VCKPIPJZ.js.map → chunk-GWT4NLC6.js.map} +0 -0
  191. /package/client-dist/{chunk-DEUH7G5Q.js.map → chunk-HBDXPQIC.js.map} +0 -0
  192. /package/client-dist/{chunk-F45D4UGB.js.map → chunk-HIRPZSS5.js.map} +0 -0
  193. /package/client-dist/{chunk-YHYAAVDM.js.map → chunk-HO6SWXO3.js.map} +0 -0
  194. /package/client-dist/{chunk-ZOJX6LQ2.js.map → chunk-I5DLHGUT.js.map} +0 -0
  195. /package/client-dist/{chunk-KNMJ3JEH.js.map → chunk-IB5B5H24.js.map} +0 -0
  196. /package/client-dist/{chunk-LRNXI5PI.js.map → chunk-IMILT6U5.js.map} +0 -0
  197. /package/client-dist/{chunk-XN7YOYCH.js.map → chunk-IN2UAFFX.js.map} +0 -0
  198. /package/client-dist/{chunk-BYE5D2MY.js.map → chunk-IRITCLVX.js.map} +0 -0
  199. /package/client-dist/{chunk-YOYVBN2F.js.map → chunk-J66SGQQK.js.map} +0 -0
  200. /package/client-dist/{chunk-PBFFGCZP.js.map → chunk-KRSUKF3L.js.map} +0 -0
  201. /package/client-dist/{chunk-BQI6NBXW.js.map → chunk-MN6YUX6R.js.map} +0 -0
  202. /package/client-dist/{chunk-DN67NEP3.js.map → chunk-O2QGLI7P.js.map} +0 -0
  203. /package/client-dist/{chunk-OFWL36K2.js.map → chunk-ODQXZPME.js.map} +0 -0
  204. /package/client-dist/{chunk-GV2Y7K5T.js.map → chunk-PB5GJJMR.js.map} +0 -0
  205. /package/client-dist/{chunk-QFI5KDQS.js.map → chunk-QBRVPAZB.js.map} +0 -0
  206. /package/client-dist/{chunk-Y7WEET42.js.map → chunk-QZVMUDW7.js.map} +0 -0
  207. /package/client-dist/{chunk-UIZMS7RF.js.map → chunk-R77S4JY5.js.map} +0 -0
  208. /package/client-dist/{chunk-ZYNLISTI.js.map → chunk-RNENIOVE.js.map} +0 -0
  209. /package/client-dist/{chunk-PMMQZ476.js.map → chunk-TGBNDSOS.js.map} +0 -0
  210. /package/client-dist/{chunk-U7KCQYK3.js.map → chunk-UUJ5VF4E.js.map} +0 -0
  211. /package/client-dist/{chunk-IPJWDV7N.js.map → chunk-UV7YDW6X.js.map} +0 -0
  212. /package/client-dist/{chunk-LLMVHG5S.js.map → chunk-UXTS2HWD.js.map} +0 -0
  213. /package/client-dist/{chunk-VHAC2WS6.js.map → chunk-VSY6ABSB.js.map} +0 -0
  214. /package/client-dist/{chunk-C527FWS7.js.map → chunk-WB44FME2.js.map} +0 -0
  215. /package/client-dist/{chunk-QEMMWIWJ.js.map → chunk-WHJDIPTM.js.map} +0 -0
  216. /package/client-dist/{chunk-A747EWKG.js.map → chunk-YBKSPRVS.js.map} +0 -0
  217. /package/client-dist/{chunk-N7CMLQRV.js.map → chunk-YD7R724R.js.map} +0 -0
  218. /package/client-dist/{chunk-UHFX32HG.js.map → chunk-YD7T74SA.js.map} +0 -0
  219. /package/client-dist/{chunk-NL6KS2PG.js.map → chunk-YTJ626F2.js.map} +0 -0
  220. /package/client-dist/{consultant.module-5O4QS6MV.js.map → consultant.module-OCAX7KQT.js.map} +0 -0
  221. /package/client-dist/{crd.module-JDDURK3D.js.map → crd.module-LO6GCSNU.js.map} +0 -0
  222. /package/client-dist/{dashboard.module-CPX4AHDB.js.map → dashboard.module-SPGBUCMD.js.map} +0 -0
  223. /package/client-dist/{do.module-GPVMSSUT.js.map → do.module-KALYZEB6.js.map} +0 -0
  224. /package/client-dist/{document-library.module-FC5QOT5U.js.map → document-library.module-HX5BXVZ2.js.map} +0 -0
  225. /package/client-dist/{embedding-eval.module-4E3DEQE2.js.map → embedding-eval.module-BZ7QMCT5.js.map} +0 -0
  226. /package/client-dist/{embedding-registry.module-EVJW6GDG.js.map → embedding-registry.module-4KH7QGE5.js.map} +0 -0
  227. /package/client-dist/{err.module-QCEQ4XHL.js.map → err.module-M4E27OWR.js.map} +0 -0
  228. /package/client-dist/{feedback.module-7OY7EZAS.js.map → feedback.module-E7FYACM4.js.map} +0 -0
  229. /package/client-dist/{host-runtime-mcp.module-WCA4GRIQ.js.map → host-runtime-mcp.module-AV3EO5I3.js.map} +0 -0
  230. /package/client-dist/{live-dev-pipeline.module-CWOXURFE.js.map → live-dev-pipeline.module-EAH5255G.js.map} +0 -0
  231. /package/client-dist/{logs.module-LZA7HKW2.js.map → logs.module-KONMW55W.js.map} +0 -0
  232. /package/client-dist/{master-control-remote-poc.module-ZXTIM7U2.js.map → master-control-remote-poc.module-3KAKM6EL.js.map} +0 -0
  233. /package/client-dist/{mobile-app.module-GYANFQRM.js.map → mobile-app.module-C7IMUTOE.js.map} +0 -0
  234. /package/client-dist/{model-registry.module-GFN6PSBG.js.map → model-registry.module-A35YFVEE.js.map} +0 -0
  235. /package/client-dist/{oc.module-FLPI4WQK.js.map → oc.module-XT7VDCSU.js.map} +0 -0
  236. /package/client-dist/{orc.module-GF3YPUTO.js.map → orc.module-4YGRTRV6.js.map} +0 -0
  237. /package/client-dist/{project-management.module-JCP3QYMC.js.map → project-management.module-LI3L4WCD.js.map} +0 -0
  238. /package/client-dist/{project-source-routed.module-H7SKWQ5J.js.map → project-source-routed.module-CJB4YJND.js.map} +0 -0
  239. /package/client-dist/{scheduler.module-SRO6H5K6.js.map → scheduler.module-HEG5JCVO.js.map} +0 -0
  240. /package/client-dist/{session.module-VQ7PBBDQ.js.map → session.module-DEIGFE2V.js.map} +0 -0
  241. /package/client-dist/{set.module-P76APIOK.js.map → set.module-DSD6PIYI.js.map} +0 -0
  242. /package/client-dist/{setup.module-VTMU43WO.js.map → setup.module-WDIRWV32.js.map} +0 -0
  243. /package/client-dist/{terminals.module-AAU3GPWE.js.map → terminals.module-4KEH5NED.js.map} +0 -0
  244. /package/client-dist/{voice-notes-poc.module-IGR2R6XD.js.map → voice-notes-poc.module-UWGARHN5.js.map} +0 -0
  245. /package/client-dist/{wfs.module-J34NQGDG.js.map → wfs.module-XAEMCUIF.js.map} +0 -0
@@ -0,0 +1,7 @@
1
+ import{a as Ae,b as ft}from"./chunk-HBDXPQIC.js";import{e as Rn}from"./chunk-GWT4NLC6.js";import{a as xt}from"./chunk-ALKI4J2W.js";import{a as $n,b as Mn}from"./chunk-UV7YDW6X.js";import{a as Me}from"./chunk-KRSUKF3L.js";import{a as ht}from"./chunk-Z4OXAMEA.js";import{a as oe}from"./chunk-YRVQSWSZ.js";import{a as Sn}from"./chunk-3NI6EUGP.js";import{a as an,c as Pe}from"./chunk-VSY6ABSB.js";import"./chunk-QZVMUDW7.js";import{b as En}from"./chunk-3EQBM3NI.js";import"./chunk-HO6SWXO3.js";import"./chunk-2P5XNKSU.js";import{a as In}from"./chunk-D4C3OD6J.js";import{a as Tn}from"./chunk-I5DLHGUT.js";import{a as An}from"./chunk-ODQXZPME.js";import"./chunk-PB5GJJMR.js";import{a as vn}from"./chunk-EAFI4YMD.js";import{a as gn,b as kn}from"./chunk-FHOK7MOR.js";import{b as yn}from"./chunk-FCYMPE2S.js";import"./chunk-IMILT6U5.js";import"./chunk-UFBTR2BG.js";import"./chunk-R77S4JY5.js";import"./chunk-MN6YUX6R.js";import"./chunk-EGAUOFDI.js";import{a as Pn,c as Dn}from"./chunk-EHT2HQDT.js";import"./chunk-J66SGQQK.js";import"./chunk-YD7T74SA.js";import"./chunk-UUJ5VF4E.js";import{a as wn}from"./chunk-C7746ZDD.js";import"./chunk-YTJ626F2.js";import"./chunk-2EGN5OIA.js";import"./chunk-V3VQWJQL.js";import{d as He,e as Ct}from"./chunk-CEXJQIOB.js";import{a as $e}from"./chunk-FLAJXIYW.js";import{b as dt,c as de,f as pe,i as ue,k as pn,n as pt,o as ut,p as _t,q as un,r as _n,t as mn,v as te}from"./chunk-EO4DNTT4.js";import{a as Cn,b as Pt,c as we,d as Be,e as ze,g as fn,h as hn,i as G,k as ie}from"./chunk-IN2UAFFX.js";import{a as H}from"./chunk-5UPNU54P.js";import{i as bn,j as ne}from"./chunk-WHJDIPTM.js";import{A as mt,B as Ee,C as _e,I as B,N as xn,p as Qe,w as Mt,z as fe}from"./chunk-GLY7XIEO.js";import{$a as ke,Aa as Le,Ab as on,Ba as Ne,Bb as rn,C as y,D as R,Db as sn,E as Ze,Fa as c,Fb as ln,Ga as $,Gb as Te,Ha as w,Hb as ct,Ia as ae,Ib as cn,J as C,Jb as dn,K as f,Kb as Ce,L as k,M as P,Ma as ot,Na as rt,O as Je,Oa as at,P as qt,Q as le,S as et,Ta as F,U as Wt,Ua as Kt,V as ve,Va as ye,Wa as st,Xa as Xt,Y as Gt,Z as l,a as Y,aa as S,ab as Zt,b as se,bb as je,ca as Yt,da as h,ea as tt,fa as q,ga as _,h as Ve,ha as nt,hb as v,ia as O,jb as W,k as A,la as u,mb as ce,na as it,nb as Ie,o as Bt,oa as L,p as Se,pa as N,pb as lt,qa as o,ra as r,sa as b,t as zt,u as Ht,ua as I,ub as j,va as m,wa as d,wb as Jt,xb as en,y as ee,yb as tn,z as Xe,za as Ue,zb as nn}from"./chunk-TBMJSIBB.js";var At=Ve(Qe());var Fn=Ve(Qe());var On=(()=>{class t{socket_CS=y(Ct);presence_DS=y(gn);subscription=null;initialize(){this.subscription||(this.subscription=this.socket_CS.event$.subscribe(e=>{e.event==="instance:presence-update"&&this.presence_DS.refreshNow().catch(n=>{Fn.DyFM_Log.warn(`[CCAP] ExS_InstancePresenceSubscriber_CS: refreshNow failed (non-fatal): ${n instanceof Error?n.message:String(n)}`)})}))}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ii(t,s){if(t&1&&(o(0,"span",7),c(1),r()),t&2){let e=d(2);_("title",e.updater_CS.lastError_$()),l(),w(" ",e.updater_CS.lastError_$()," ")}}function Ti(t,s){if(t&1){let e=I();o(0,"div",0)(1,"div",1),b(2,"span",2),o(3,"span",3),c(4," \xDAj app verzi\xF3 el\xE9rhet\u0151: "),o(5,"span",4),c(6),r(),o(7,"span",5),c(8),r()()(),o(9,"div",6),h(10,Ii,2,2,"span",7),o(11,"button",8),m("click",function(){C(e);let i=d();return f(i.handleInstall())}),c(12),r()()()}if(t&2){let e=d();l(6),w("v",e.versionCheck_CS.latestPackageVersion_$(),""),l(2),w(" (jelenleg v",e.currentVersion,")"),l(2),u(e.updater_CS.lastError_$()?10:-1),l(),_("disabled",e.isInstallDisabled_$()),l(),w(" ",e.installButtonLabel_$()," ")}}var Vn=(()=>{class t{versionCheck_CS=y(yn);updater_CS=y(ft);currentVersion=B.version;installButtonLabel_$=v(()=>{let e=this.updater_CS.phase_$();return e===Ae.downloading?"Let\xF6lt\xE9s\u2026":e===Ae.installing?"Telep\xEDt\xE9s\u2026":e===Ae.failed?"\xDAjra pr\xF3b\xE1l\xE1s":"Telep\xEDt\xE9s"});isInstallDisabled_$=v(()=>{let e=this.updater_CS.phase_$();return e===Ae.downloading||e===Ae.installing});handleInstall(){this.updater_CS.startUpdate()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-app-update-banner"]],standalone:!0,features:[F],decls:1,vars:1,consts:[[1,"shrink-0","border-b","border-ccapAccent/40","bg-ccapAccent/10","px-3","py-2","text-sm","text-neutral-200","flex","flex-wrap","items-center","justify-between","gap-2"],[1,"flex","items-center","gap-2","min-w-0"],["aria-hidden","true",1,"inline-block","w-2","h-2","rounded-full","bg-ccapAccent","animate-pulse","shrink-0"],[1,"truncate"],[1,"font-mono"],[1,"text-neutral-400"],[1,"flex","items-center","gap-2","shrink-0"],[1,"text-xs","text-red-400","max-w-[200px]","truncate",3,"title"],["type","button",1,"rounded-md","border","border-ccapAccent/60","bg-ccapAccent/15","px-3","py-1","text-xs","font-medium","text-ccapAccent","hover:bg-ccapAccent/25","disabled:opacity-40","disabled:cursor-not-allowed","transition-colors",3,"click","disabled"]],template:function(n,i){n&1&&h(0,Ti,13,5,"div",0),n&2&&u(i.versionCheck_CS.updateAvailable_$()?0:-1)},encapsulation:2,changeDetection:0})}return t})();function wi(t,s){t&1&&(b(0,"span",9),c(1," Friss\xEDt\xE9s ind\xEDt\xE1sa\u2026 "))}function Ei(t,s){t&1&&c(0," \u23F3 Server \xFAjraindul\u2026 ")}function Ai(t,s){t&1&&c(0," \u{1F504} Friss\xEDt\xE9s most ")}function $i(t,s){t&1&&(o(0,"p",6),c(1," \u26A0 Friss\xEDt\xE9s hiba: "),o(2,"span",10),c(3),r()()),t&2&&(l(3),$(s))}function Pi(t,s){if(t&1&&c(0),t&2){let e=d();w(" \u2713 ",e.message," ")}}function Mi(t,s){if(t&1&&c(0),t&2){let e=d();w(" \u2139 ",e.message," ")}}function Di(t,s){if(t&1&&c(0),t&2){let e=d();w(" \u26A0 ",e.message," ")}}function Ri(t,s){if(t&1&&(o(0,"p",11),h(1,Pi,1,1)(2,Mi,1,1)(3,Di,1,1),r()),t&2){let e=s;l(),u(e.status==="started"?1:e.status==="already-latest"?2:3)}}function Fi(t,s){if(t&1&&h(0,Ri,4,1,"p",11),t&2){let e,n=d(3);u((e=n.versionInfo_DS.triggerResult_$())?0:-1,e)}}function Oi(t,s){t&1&&(o(0,"p",7),b(1,"span",12),c(2," V\xE1rakoz\xE1s a server visszaj\xF6vetel\xE9re (max 90s)\u2026 "),r())}function Vi(t,s){if(t&1&&(o(0,"p",8),c(1," \u2705 Friss\xEDtve "),o(2,"span",10),c(3),r(),c(4," \u2192 "),o(5,"span",10),c(6),r(),c(7," \u2014 oldal \xFAjrat\xF6lt\xE9se 5s m\xFAlva\u2026 "),r()),t&2){let e=s;l(3),w("v",e.oldVersion,""),l(3),w("v",e.newVersion,"")}}function Ui(t,s){t&1&&(o(0,"p",6),c(1," \u26A0 A friss\xEDt\xE9s 90s alatt nem fejez\u0151d\xF6tt be. Ellen\u0151rizd a server logot ("),o(2,"span",10),c(3,"~/.ccap/server.log"),r(),c(4,") vagy futtasd manu\xE1lisan: "),o(5,"span",13),c(6,"ccap --version"),r(),c(7,". "),r())}function Li(t,s){if(t&1){let e=I();o(0,"div",0)(1,"span",1),c(2," UPDATE "),r(),o(3,"span",2),c(4),r(),o(5,"button",3),m("click",function(){C(e);let i=d(2);return f(i.handleTriggerUpdate())}),h(6,wi,2,0)(7,Ei,1,0)(8,Ai,1,0),r(),o(9,"a",4),c(10," Settings "),r(),o(11,"button",5),m("click",function(){C(e);let i=d(2);return f(i.handleDismiss())}),c(12," \u2715 "),r(),h(13,$i,4,1,"p",6)(14,Fi,1,1)(15,Oi,3,0,"p",7)(16,Vi,8,2,"p",8)(17,Ui,8,0,"p",6),r()}if(t&2){let e,n,i,a,p=d(),x=d();l(4),ae(" Server elavult: v",p.serverVersion," \u2192 v",p.npmLatestVersion,". "),l(),_("disabled",x.versionInfo_DS.triggering_$()||((e=x.versionInfo_DS.triggerResult_$())==null?null:e.status)==="started"),l(),u(x.versionInfo_DS.triggering_$()?6:((n=x.versionInfo_DS.triggerResult_$())==null?null:n.status)==="started"?7:8),l(7),u((i=x.versionInfo_DS.triggerError_$())?13:14,i),l(2),u(x.versionInfo_DS.pollingPostUpdate_$()?15:-1),l(),u((a=x.versionInfo_DS.triggerSucceeded_$())?16:-1,a),l(),u(x.versionInfo_DS.triggerTimedOut_$()?17:-1)}}function Ni(t,s){if(t&1&&h(0,Li,18,8,"div",0),t&2){let e=d();u(!e.dismissed_$()&&s.serverIsOutdated?0:-1)}}var Un=(()=>{class t{versionInfo_DS=y(kn);dismissed_$=S(!1);ngOnInit(){this.versionInfo_DS.loadVersionInfo()}handleDismiss(){this.dismissed_$.set(!0)}handleTriggerUpdate(){return A(this,null,function*(){yield this.versionInfo_DS.triggerUpdate()})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-server-update-banner"]],standalone:!0,features:[F],decls:1,vars:1,consts:[[1,"relative","w-full","px-3","py-2","gt-xs:px-4","gt-xs:py-3","bg-amber-950/95","border-b","border-amber-700","text-amber-100","shadow-lg","flex","flex-wrap","items-center","gap-2","gt-xs:gap-3","text-xs","gt-xs:text-sm"],[1,"px-1.5","py-0.5","text-[10px]","uppercase","font-mono","tracking-wider","bg-amber-600","text-amber-950","rounded","shrink-0"],[1,"font-medium"],["type","button",1,"px-3","py-1.5","rounded","border","border-amber-400","bg-amber-700/40","text-amber-50","hover:bg-amber-600/60","hover:shadow-neon-glow-amber","transition-colors","duration-200","disabled:opacity-50","disabled:cursor-not-allowed","font-medium","shrink-0",3,"click","disabled"],["routerLink","/settings",1,"ml-auto","px-2","py-1","text-amber-200","hover:bg-amber-900/40","rounded","transition-colors","shrink-0"],["type","button","aria-label","Banner elrejt\xE9se",1,"px-2","py-1","text-amber-300","hover:bg-amber-900/40","rounded","transition-colors","shrink-0",3,"click"],[1,"basis-full","text-rose-300","text-xs","mt-1"],[1,"basis-full","text-amber-300","text-xs","mt-1","italic"],[1,"basis-full","text-emerald-300","text-xs","mt-1","font-semibold"],[1,"inline-block","w-3","h-3","mr-2","align-middle","border-2","border-amber-200/40","border-t-amber-100","rounded-full","animate-spin"],[1,"font-mono"],[1,"basis-full","text-amber-200","text-xs","mt-1"],[1,"inline-block","w-3","h-3","mr-1","align-middle","border-2","border-amber-300/40","border-t-amber-200","rounded-full","animate-spin"],[1,"font-mono","select-all"]],template:function(n,i){if(n&1&&h(0,Ni,1,1),n&2){let a;u((a=i.versionInfo_DS.versionInfo_$())?0:-1,a)}},dependencies:[ct],encapsulation:2})}return t})();var ji=(t,s)=>s.id;function Qi(t,s){if(t&1){let e=I();o(0,"div",4),m("click",function(){let i=C(e).$implicit,a=d(2);return f(a.selectError(i.id))}),b(1,"span",5),o(2,"span",6),c(3),r(),o(4,"button",7),m("click",function(i){let a=C(e).$implicit,p=d(2);return f(p.dismissNotification(i,a.id))}),k(),o(5,"svg",8),b(6,"path",9),r()()()}if(t&2){let e=s.$implicit;O("animate-slide-in-left",!e.isDismissing)("animate-slide-out-left",e.isDismissing),l(3),$(e.displayMessage)}}function Bi(t,s){if(t&1&&(o(0,"div",0),L(1,Qi,7,5,"div",3,ji),r()),t&2){let e=d();l(),N(e.globalError_CS.errors_$())}}var Ln=(()=>{class t{globalError_CS=y(ne);userInput_DS=y(G);constructor(){W(()=>{this.globalError_CS.selectedNotificationForModal_$()!==null?this.userInput_DS.pushQuickInputOverlayAreaContextByOverlayId(Be.globalErrorDetailModal):this.userInput_DS.popQuickInputOverlayAreaContext(Be.globalErrorDetailModal)},{allowSignalWrites:!0})}selectError(e){this.globalError_CS.selectError(e)}dismissNotification(e,n){e.stopPropagation(),this.globalError_CS.dismissNotification(n)}dismissSelected(){this.globalError_CS.dismissSelected()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-error-popup"]],standalone:!0,features:[F],decls:3,vars:12,consts:[[1,"absolute","top-3","left-3","z-50","flex","flex-col","gap-2","max-w-md","sm:max-w-lg","pointer-events-auto"],[3,"closed","isOpen","maxWidth","zIndex","backdropOpacity","headerBorderClass","closeOnBackdropClick","bodyFlexColumn"],[3,"error","errorClientSource","ng0600Diagnostics","ng0203Diagnostics"],["title","Kattint\xE1s a r\xE9szletek\xE9rt",1,"flex","items-center","gap-2","pl-3","pr-1.5","py-2","rounded-lg","border","border-neonRed/60","bg-neutral-800/95","shadow-lg","cursor-pointer","hover:border-neonRed","hover:bg-neutral-700/95","transition-colors","duration-150","backdrop-blur-sm",3,"animate-slide-in-left","animate-slide-out-left"],["title","Kattint\xE1s a r\xE9szletek\xE9rt",1,"flex","items-center","gap-2","pl-3","pr-1.5","py-2","rounded-lg","border","border-neonRed/60","bg-neutral-800/95","shadow-lg","cursor-pointer","hover:border-neonRed","hover:bg-neutral-700/95","transition-colors","duration-150","backdrop-blur-sm",3,"click"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-red-500","shrink-0","animate-pulse"],[1,"text-sm","text-red-300","flex-1","select-none","line-clamp-4","break-words","leading-snug","text-left"],["type","button","title","Bez\xE1r\xE1s","aria-label","\xC9rtes\xEDt\xE9s bez\xE1r\xE1sa",1,"p-1","rounded","text-neutral-500","hover:text-white","hover:bg-neutral-600","transition-colors","duration-150","shrink-0",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-3.5","h-3.5"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"]],template:function(n,i){if(n&1&&(h(0,Bi,3,0,"div",0),o(1,"app-s-modal",1),m("closed",function(){return i.dismissSelected()}),b(2,"app-ccap-error-display",2),r()),n&2){let a,p,x,g;u(i.globalError_CS.errors_$().length>0?0:-1),l(),_("isOpen",!!i.globalError_CS.selectedNotificationForModal_$())("maxWidth","3xl")("zIndex","9999")("backdropOpacity","70")("headerBorderClass","border-neonRed/50")("closeOnBackdropClick",!1)("bodyFlexColumn",!0),l(),_("error",(a=(a=i.globalError_CS.selectedNotificationForModal_$())==null?null:a.error)!==null&&a!==void 0?a:null)("errorClientSource",(p=i.globalError_CS.selectedNotificationForModal_$())==null?null:p.clientSource)("ng0600Diagnostics",(x=(x=i.globalError_CS.selectedNotificationForModal_$())==null?null:x.ng0600Diagnostics)!==null&&x!==void 0?x:null)("ng0203Diagnostics",(g=(g=i.globalError_CS.selectedNotificationForModal_$())==null?null:g.ng0203Diagnostics)!==null&&g!==void 0?g:null)}},dependencies:[j,ie,$e],encapsulation:2})}return t})();var De=class{static probeServer(s){return A(this,null,function*(){let e=s.replace(/\/$/,"")+"/api/server/status",n=Date.now(),i=new Date().toISOString(),a=new AbortController,p=setTimeout(()=>{a.abort()},8e3);try{let x=yield fetch(e,{method:"GET",signal:a.signal,cache:"no-store"});clearTimeout(p);let g=Date.now()-n,T="";try{let D=yield x.text();T=D.length>500?D.slice(0,500)+"\u2026":D}catch{T="(could not read body)"}let E=x.ok,M=E?void 0:`HTTP ${x.status} \u2014 server responded but not OK`,V={targetUrl:e,isSuccess:E,httpStatus:x.status,httpStatusText:x.statusText,responseBodyPreview:T,errorCategory:M,durationMs:g,timestamp:i};return E||(V.errorForDisplay=this.buildErrorForDisplay(V)),V}catch(x){clearTimeout(p);let g=Date.now()-n,T=x instanceof Error?x.name:"unknown",E=x instanceof Error?x.message:String(x),M={targetUrl:e,isSuccess:!1,errorName:T,errorMessage:E,errorCategory:this.categorizeError(T,E),durationMs:g,timestamp:i};return M.errorForDisplay=this.buildErrorForDisplay(M),M}})}static buildErrorForDisplay(s){let e=s.errorCategory??s.errorMessage??`HTTP ${s.httpStatus??"?"}`,n=this.pickErrorCode(s),i={targetUrl:s.targetUrl,durationMs:s.durationMs,timestamp:s.timestamp};return s.httpStatus!==void 0&&(i.httpStatus=s.httpStatus),s.httpStatusText&&(i.httpStatusText=s.httpStatusText),s.responseBodyPreview&&(i.responseBodyPreview=s.responseBodyPreview),s.errorName&&(i.errorName=s.errorName),s.errorMessage&&(i.errorMessage=s.errorMessage),{message:e,errorCode:n,additionalContent:i}}static pickErrorCode(s){return s.errorName==="AbortError"?"CCAP-NET-FETCH-TIMEOUT":s.errorName==="TypeError"?"CCAP-NET-FETCH-FAILED":s.errorName==="SyntaxError"?"CCAP-NET-RESPONSE-NOT-JSON":s.httpStatus!==void 0?`CCAP-NET-HTTP-${s.httpStatus}`:"CCAP-NET-UNKNOWN"}static categorizeError(s,e){let n=e.toLowerCase();return s==="AbortError"?"Timeout (>8000ms) \u2014 szerver nem v\xE1laszolt id\u0151ben. Gyakori ok: firewall, blokkolt port, rossz IP.":s==="TypeError"&&n.includes("failed to fetch")?"Network failure \u2014 a b\xF6ng\xE9sz\u0151 nem tud csatlakozni a szerverhez. Lehets\xE9ges okok: szerver nem fut a megadott IP-n, t\u0171zfal blokkolja a portot, WiFi router client-isolation, vagy mobile data-n vagy (nem LAN-on).":n.includes("ssl")||n.includes("certificate")||n.includes("cert")?"SSL / TLS cert error \u2014 self-signed cert-et nem fogad el az Android network stack. Kapcsold ki a HTTPS-t (HTTP-re v\xE1lts), vagy telep\xEDtsd a cert-et a device trust store-ba.":n.includes("cors")?"CORS policy blokkolja a k\xE9r\xE9st. Szerveren kell enged\xE9lyezni az origin-t. (CCAP szerver `origin: true`-val engedi \u2014 ez furcsa, ha m\xE9gis CORS hib\xE1t kapsz.)":n.includes("refused")||n.includes("econnrefused")?"Connection refused \u2014 az IP v\xE1laszol, de a port nem fut (szerver nincs, vagy m\xE1s port).":n.includes("unreachable")||n.includes("ehostunreach")?"Host unreachable \u2014 az IP c\xEDm nem \xE9rhet\u0151 el a h\xE1l\xF3zatr\xF3l (rossz h\xE1l\xF3zat, routing hiba, vagy offline).":n.includes("dns")||n.includes("name")||n.includes("resolve")?"DNS / name resolution fail \u2014 az IP/hostname nem feloldhat\xF3.":s==="SyntaxError"?"A v\xE1lasz nem JSON \u2014 lehet, hogy HTTP-n egy HTTPS-only szervert h\xEDvtunk (redirect / HTML error page), vagy a szerver nem a v\xE1rt tartalmat adja.":`Unknown error (${s}) \u2014 l\xE1sd az error \xFCzenetet.`}};function zi(t,s){t&1&&(o(0,"div",14)(1,"strong",19),c(2,"HTTPS figyelmeztet\xE9s:"),r(),c(3," self-signed cert-et a rendszer nem trust-olja automatikusan. HTTPS-sel csak akkor m\u0171k\xF6dik, ha a szerver cert-je: "),o(4,"ul",20)(5,"li"),c(6,"\xE9rv\xE9nyes publikus CA-t\xF3l (pl. Let's Encrypt), VAGY"),r(),o(7,"li"),c(8,"manu\xE1lisan telep\xEDtve van a device trust store-j\xE1ba (Settings \u2192 Security \u2192 Install cert from storage)"),r()(),c(9," Ha nem biztos, hagyd kikapcsolva (HTTP) \u2014 a LAN-on HTTP alap\xE9rtelmezetten m\u0171k\xF6dik. "),r())}function Hi(t,s){if(t&1&&(o(0,"div",15)(1,"span",21),c(2,"Connection URL:"),r(),o(3,"p",22),c(4),r()()),t&2){let e=d(2);l(4),w(" ",e.previewUrl_$()," ")}}function qi(t,s){if(t&1&&(o(0,"div",23)(1,"div",25),c(2,"\u2713 Szerver el\xE9rhet\u0151"),r(),o(3,"div",26),c(4),r()()),t&2){let e=d();l(4),ae(" GET ",e.targetUrl," \u2014 ",e.durationMs,"ms ")}}function Wi(t,s){if(t&1&&(o(0,"div",24),b(1,"app-ccap-error-display",27),r()),t&2){let e=d();l(),_("error",e.errorForDisplay)}}function Gi(t,s){if(t&1&&h(0,qi,5,2,"div",23)(1,Wi,2,1,"div",24),t&2){let e=s;u(e.isSuccess?0:e.errorForDisplay?1:-1)}}function Yi(t,s){t&1&&c(0," Teszt\u2026 ")}function Ki(t,s){t&1&&c(0," Kapcsolat teszt ")}function Xi(t,s){if(t&1){let e=I();o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),c(4," Server connection setup "),r()(),o(5,"div",4)(6,"p",5),c(7," Enter the IP address of the CCAP server to connect. "),r(),o(8,"div",6)(9,"label",7),c(10," Server IP address "),r(),o(11,"input",8),m("ngModelChange",function(i){C(e);let a=d();return f(a.ipAddress_$.set(i))}),r()(),o(12,"div",6)(13,"label",9),c(14," Port "),r(),o(15,"input",10),m("ngModelChange",function(i){C(e);let a=d();return f(a.port_$.set(i))}),r()(),o(16,"div",11)(17,"input",12),m("ngModelChange",function(i){C(e);let a=d();return f(a.handleHttpsToggle(i))}),r(),o(18,"label",13),c(19," Use HTTPS "),r()(),h(20,zi,10,0,"div",14)(21,Hi,5,1,"div",15),r(),h(22,Gi,2,1),o(23,"div",16)(24,"button",17),m("click",function(){C(e);let i=d();return f(i.handleTestConnection())}),h(25,Yi,1,0)(26,Ki,1,0),r(),o(27,"button",18),m("click",function(){C(e);let i=d();return f(i.handleSave())}),c(28," Connect "),r()()()()}if(t&2){let e,n=d();l(11),_("ngModel",n.ipAddress_$()),l(4),_("ngModel",n.port_$()),l(2),_("ngModel",n.isHttps_$()),l(3),u(n.isHttps_$()?20:-1),l(),u(n.previewUrl_$()?21:-1),l(),u((e=n.diagnosticResult_$())?22:-1,e),l(2),_("disabled",n.isSaveDisabled_$()||n.isTestingConnection_$()),l(),u(n.isTestingConnection_$()?25:26),l(2),_("disabled",n.isSaveDisabled_$())}}var Nn="ccap-server-url",Dt=39050,jn=39051;function Zi(){return typeof window.Capacitor<"u"&&window.Capacitor.isNativePlatform?.()===!0}var Qn=(()=>{class t{isVisible_$=S(Zi()&&!H.readString(Nn));ipAddress_$=S("");port_$=S(Dt);isHttps_$=S(!1);handleHttpsToggle(e){let n=this.port_$();this.isHttps_$.set(e),e&&n===Dt?this.port_$.set(jn):!e&&n===jn&&this.port_$.set(Dt)}previewUrl_$=v(()=>{let e=this.isHttps_$()?"https":"http",n=this.ipAddress_$().trim(),i=this.port_$();return n?`${e}://${n}:${i}`:""});isSaveDisabled_$=v(()=>!this.ipAddress_$().trim());isTestingConnection_$=S(!1);diagnosticResult_$=S(null);handleTestConnection(){return A(this,null,function*(){let e=this.previewUrl_$();if(!(!e||this.isTestingConnection_$())){this.isTestingConnection_$.set(!0),this.diagnosticResult_$.set(null);try{let n=yield De.probeServer(e);this.diagnosticResult_$.set(n)}finally{this.isTestingConnection_$.set(!1)}}})}handleSave(){let e=this.previewUrl_$();!e||!H.writeString(Nn,e)||this.reloadApplication()}reloadApplication(){window.location.reload()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-mobile-server-setup"]],standalone:!0,features:[F],decls:1,vars:1,consts:[[1,"fixed","inset-0","z-[9999]","flex","items-center","justify-center","bg-black/80","p-4"],["role","dialog","aria-labelledby","mobile-setup-title",1,"relative","w-[95vw]","max-w-md","rounded-lg","border-2","border-neonCyan/40","bg-neutral-900","shadow-xl","flex","flex-col","overflow-hidden"],[1,"flex","items-center","px-4","py-3","border-b","border-neonCyan/40","shrink-0"],["id","mobile-setup-title",1,"text-sm","font-semibold","text-neutral-200"],[1,"flex-1","min-h-0","overflow-y-auto","p-4","flex","flex-col","gap-4"],[1,"text-sm","text-neutral-400"],[1,"flex","flex-col","gap-1"],["for","mobile-setup-ip",1,"text-xs","font-medium","text-neutral-300"],["id","mobile-setup-ip","type","text","inputmode","decimal","autocomplete","off","placeholder","192.168.1.100",1,"w-full","rounded-md","border","border-neutral-600","bg-neutral-800","px-3","py-2","text-sm","text-neutral-100","placeholder:text-neutral-500","focus:border-neonCyan","focus:outline-none","focus:ring-1","focus:ring-neonCyan",3,"ngModelChange","ngModel"],["for","mobile-setup-port",1,"text-xs","font-medium","text-neutral-300"],["id","mobile-setup-port","type","number","min","1","max","65535",1,"w-full","rounded-md","border","border-neutral-600","bg-neutral-800","px-3","py-2","text-sm","text-neutral-100","focus:border-neonCyan","focus:outline-none","focus:ring-1","focus:ring-neonCyan",3,"ngModelChange","ngModel"],[1,"flex","items-center","gap-2"],["id","mobile-setup-https","type","checkbox",1,"h-4","w-4","rounded","border-neutral-600","bg-neutral-800","text-neonCyan","focus:ring-neonCyan","focus:ring-offset-neutral-900",3,"ngModelChange","ngModel"],["for","mobile-setup-https",1,"text-sm","text-neutral-300"],[1,"rounded-md","border","border-amber-500/50","bg-amber-500/10","px-3","py-2","text-xs","text-amber-200"],[1,"rounded-md","border","border-neutral-700","bg-neutral-800/60","px-3","py-2"],[1,"flex","justify-between","gap-2","px-4","py-3","border-t","border-neutral-700","shrink-0"],["type","button",1,"rounded-md","border","border-neutral-600","bg-neutral-800","px-3","py-2","text-sm","font-medium","text-neutral-200","hover:bg-neutral-700","disabled:opacity-40","disabled:cursor-not-allowed","transition-colors",3,"click","disabled"],["type","button",1,"rounded-md","border","border-neonCyan/60","bg-neonCyan/15","px-4","py-2","text-sm","font-medium","text-neonCyan","hover:bg-neonCyan/25","disabled:opacity-40","disabled:cursor-not-allowed","transition-colors",3,"click","disabled"],[1,"font-semibold"],[1,"list-disc","list-inside","mt-1","space-y-0.5","text-amber-200/80"],[1,"text-xs","text-neutral-500"],[1,"text-sm","text-neonCyan","font-mono","break-all","mt-0.5"],[1,"mx-4","mb-2","rounded-md","border","border-emerald-500/60","bg-emerald-500/10","px-3","py-2","text-xs","text-emerald-200"],[1,"mx-4","mb-2"],[1,"font-semibold","mb-1"],[1,"font-mono","text-[10px]","text-neutral-400","break-all"],["sourceLabelOverride","Kapcsolat teszt",3,"error"]],template:function(n,i){n&1&&h(0,Xi,29,9,"div",0),n&2&&u(i.isVisible_$()?0:-1)},dependencies:[j,te,de,pn,dt,pe,_n,un,ue,ie],encapsulation:2,changeDetection:0})}return t})();var Bn=(()=>{class t{panels_$=S([]);closedPanels_$=v(()=>this.panels_$().filter(n=>!n.isOpen).map(n=>({id:n.id,label:n.label,icon:n.icon,open:n.open})));closedPanelsLeft_$=v(()=>this.closedPanels_$().filter(e=>this.getPanelSide(e.id)==="left"));closedPanelsRight_$=v(()=>this.closedPanels_$().filter(e=>this.getPanelSide(e.id)==="right"));register(e){let n={id:e.id,label:e.label,icon:e.icon,side:e.side??"left",isOpen:e.isOpen,open:e.open};this.panels_$.update(i=>{let a=i.filter(p=>p.id!==e.id);return a.push(n),a})}getPanelSide(e){return this.panels_$().find(i=>i.id===e)?.side??"left"}unregister(e){this.panels_$.update(n=>n.filter(i=>i.id!==e))}updatePanelState(e,n){this.panels_$.update(i=>i.map(a=>a.id===e?se(Y({},a),{isOpen:n}):a))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Re=class{static resolveSessionRoute(s){if(!s)return null;let e=s.trim();return e.length?e.startsWith("ccs-")?`/cc-session/${e}`:e.startsWith("oss-")?`/oc-session/${e}`:e.startsWith("cas-")?`/ca-session/${e}`:`/session/${e}`:null}};var zn=(()=>{class t{static originalDocumentTitle=null;static titleFlashHandle=null;static audioContext=null;static notifyNewNotification(e){t.flashDocumentTitle(e.title),t.playBeep(),t.showBrowserNotification(e)}static flashDocumentTitle(e){if(typeof document>"u")return;t.originalDocumentTitle===null&&(t.originalDocumentTitle=document.title),t.stopTitleFlash();let n=`\u26A0 ${e.slice(0,40)}`,i=!0;t.titleFlashHandle=window.setInterval(()=>{document.title=i?n:t.originalDocumentTitle??"CCAP",i=!i},1100);let a=()=>{document.hidden||(t.stopTitleFlash(),document.removeEventListener("visibilitychange",a))};document.addEventListener("visibilitychange",a)}static stopTitleFlash(){t.titleFlashHandle!==null&&(window.clearInterval(t.titleFlashHandle),t.titleFlashHandle=null),t.originalDocumentTitle!==null&&(document.title=t.originalDocumentTitle)}static playBeep(){try{let e=typeof window<"u"&&window.AudioContext?window.AudioContext:void 0;if(!e)return;t.audioContext||(t.audioContext=new e);let n=t.audioContext,i=n.createOscillator(),a=n.createGain();i.type="sine",i.frequency.value=800,a.gain.setValueAtTime(.15,n.currentTime),a.gain.exponentialRampToValueAtTime(.001,n.currentTime+.15),i.connect(a),a.connect(n.destination),i.start(n.currentTime),i.stop(n.currentTime+.16)}catch{}}static showBrowserNotification(e){return A(this,null,function*(){try{if(typeof window>"u"||typeof Notification>"u")return;let n=Notification.permission;if(n==="default"&&(n=yield Notification.requestPermission()),n!=="granted")return;let i=e.description??"CCAP \u2014 open the notification tray for details.",a=new Notification(e.title,{body:i,tag:e.notificationId,icon:"/favicon.ico"}),p=Re.resolveSessionRoute(e.sessionId);a.onclick=()=>{try{window.focus()}catch{}if(p)try{window.location.assign(p)}catch{}a.close()}}catch{}})}}return t})();function Ji(){let t=window;return t.Capacitor!==void 0&&t.Capacitor.isNativePlatform?.()===!0}function eo(t){let s=0;for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);s=(s<<5)-s+n,s=s|0}return Math.abs(s)}var bt=(()=>{class t{notification_DS=y(gt);isInitialized=!1;localNotificationsPlugin=null;initialize(){return A(this,null,function*(){if(!(this.isInitialized||!Ji())){this.isInitialized=!0;try{let n=(yield import("@capacitor/local-notifications")).LocalNotifications;if(this.localNotificationsPlugin=n,(yield n.requestPermissions()).display!=="granted")return;yield n.addListener("localNotificationActionPerformed",a=>{let p=a.notification.extra,x=typeof p?.notificationId=="string"?p.notificationId:"";this.notification_DS.isTrayOpen_$.set(!0),x&&this.notification_DS.markAsRead(x)})}catch{this.localNotificationsPlugin=null}}})}showLocalNotification(e){return A(this,null,function*(){if(this.localNotificationsPlugin&&document.hidden)try{let n=eo(e.notificationId),i=e.title,a=e.description??this.buildBodyFromType(e);yield this.localNotificationsPlugin.schedule({notifications:[{id:n,title:i,body:a,extra:{notificationId:e.notificationId},smallIcon:"ic_notification",largeIcon:"ic_launcher"}]})}catch{}})}buildBodyFromType(e){switch(e.type){case"confirm":return e.confirmMessage??"Eld\xF6ntend\u0151 k\xE9rd\xE9s \xE9rkezett.";case"option-select":return"V\xE1laszt\xE1si lehet\u0151s\xE9g \xE9rkezett.";case"question":return"K\xE9rd\xE9s \xE9rkezett \u2014 v\xE1lasz sz\xFCks\xE9ges.";default:return"\xDAj \xE9rtes\xEDt\xE9s \xE9rkezett."}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Hn=(()=>{class t{baseUrl=`${B.api.baseUrl}/notification`;http=y(en);listNotifications(e){let n=[];e?.sessionId&&n.push(`sessionId=${encodeURIComponent(e.sessionId)}`),e?.status&&n.push(`status=${encodeURIComponent(e.status)}`),e?.limit&&n.push(`limit=${e.limit}`);let i=n.length?`?${n.join("&")}`:"";return Se(this.http.get(`${this.baseUrl}${i}`))}respondToNotification(e,n){return Se(this.http.post(`${this.baseUrl}/${encodeURIComponent(e)}/respond`,se(Y({},n),{respondedVia:"ui"})))}dismissNotification(e){return Se(this.http.post(`${this.baseUrl}/${encodeURIComponent(e)}/dismiss`,{}))}markAsRead(e){return Se(this.http.post(`${this.baseUrl}/${encodeURIComponent(e)}/read`,{}))}markAllAsRead(){return Se(this.http.post(`${this.baseUrl}/read-all`,{}))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qn="notification:respond",Wn="notification:dismiss",Gn="notification:read";var gt=(()=>{class t{socket_CS=y(Ct);notification_AS=y(Hn);injector=y(Je);mobileNotification_CS=null;notifications_$=S([]);unreadCount_$=v(()=>this.notifications_$().filter(e=>!e.isRead).length);isLoading_$=S(!1);isTrayOpen_$=S(!1);eventSubscription=null;constructor(){this.eventSubscription=this.socket_CS.event$.subscribe(e=>{this.handleSocketEvent(e)}),this.loadNotifications()}ngOnDestroy(){this.eventSubscription?.unsubscribe()}loadNotifications(){return A(this,null,function*(){this.isLoading_$.set(!0);try{let e=yield this.notification_AS.listNotifications({limit:50});this.notifications_$.set(e)}catch{}finally{this.isLoading_$.set(!1)}})}respondToNotification(e,n){this.socket_CS.emit(qn,{notificationId:e,response:n}),this.updateNotificationInList(e,{status:"responded",response:n,respondedAt:new Date().toISOString()})}dismissNotification(e){this.socket_CS.emit(Wn,{notificationId:e}),this.updateNotificationInList(e,{status:"dismissed",response:{isDismissed:!0}})}markAsRead(e){this.socket_CS.emit(Gn,{notificationId:e}),this.updateNotificationInList(e,{isRead:!0})}markAllAsRead(){return A(this,null,function*(){try{yield this.notification_AS.markAllAsRead(),this.notifications_$.update(e=>e.map(n=>se(Y({},n),{isRead:!0})))}catch{}})}toggleTray(){this.isTrayOpen_$.update(e=>!e)}closeTray(){this.isTrayOpen_$.set(!1)}handleSocketEvent(e){let n=e.event,i=e.payload;if(n==="user-notification"){let a=typeof i.type=="string"?i.type:"",p=i.notification;a==="notification:created"&&p&&(this.notifications_$.update(g=>[p,...g]),(this.mobileNotification_CS??(this.mobileNotification_CS=this.injector.get(bt))).showLocalNotification(p),(p.priority==="warning"||p.priority==="error")&&zn.notifyNewNotification(p)),a==="notification:updated"&&p&&this.updateNotificationInList(p.notificationId,p)}}updateNotificationInList(e,n){this.notifications_$.update(i=>i.map(a=>a.notificationId===e?Y(Y({},a),n):a))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var to=(t,s)=>s.id,no=t=>({"bg-neonCyan/10":t});function io(t,s){if(t&1&&(o(0,"p",4),c(1),r()),t&2){let e=d(3);l(),$(e.notification.confirmMessage)}}function oo(t,s){if(t&1){let e=I();h(0,io,2,1,"p",4),o(1,"div",1)(2,"button",5),m("click",function(){C(e);let i=d(2);return f(i.handleConfirm(!0))}),c(3," Igen "),r(),o(4,"button",6),m("click",function(){C(e);let i=d(2);return f(i.handleConfirm(!1))}),c(5," Nem "),r()()}if(t&2){let e=d(2);u(e.notification.confirmMessage?0:-1),l(2),_("disabled",e.isSubmitted_$()),l(2),_("disabled",e.isSubmitted_$())}}function ro(t,s){if(t&1&&(o(0,"span",12),c(1),r()),t&2){let e=d().$implicit;l(),$(e.description)}}function ao(t,s){if(t&1){let e=I();o(0,"button",10),m("click",function(){let i=C(e).$implicit,a=d(3);return f(a.selectOption(i.id))}),o(1,"span",11),c(2),r(),h(3,ro,2,1,"span",12),r()}if(t&2){let e=s.$implicit,n=d(3);O("border-neonCyan",n.selectedOptionId_$()===e.id)("text-neonCyan",n.selectedOptionId_$()===e.id)("border-neutral-600",n.selectedOptionId_$()!==e.id)("text-neutral-300",n.selectedOptionId_$()!==e.id)("hover:border-neutral-500",n.selectedOptionId_$()!==e.id),_("disabled",n.isSubmitted_$())("ngClass",ye(14,no,n.selectedOptionId_$()===e.id)),l(2),$(e.label),l(),u(e.description?3:-1)}}function so(t,s){if(t&1){let e=I();o(0,"button",13),m("click",function(){C(e);let i=d(3);return f(i.handleOptionSelect())}),c(1," Kiv\xE1laszt\xE1s "),r()}if(t&2){let e=d(3);_("disabled",e.isSubmitted_$())}}function lo(t,s){if(t&1&&(o(0,"div",7),L(1,ao,4,16,"button",8,to),r(),h(3,so,2,1,"button",9)),t&2){let e=d(2);l(),N(e.notification.options),l(2),u(e.selectedOptionId_$()?3:-1)}}function co(t,s){if(t&1){let e=I();o(0,"textarea",14),at("ngModelChange",function(i){C(e);let a=d(2);return rt(a.textResponse,i)||(a.textResponse=i),f(i)}),r(),o(1,"button",13),m("click",function(){C(e);let i=d(2);return f(i.handleQuestionSubmit())}),c(2," K\xFCld\xE9s "),r()}if(t&2){let e,n=d(2);ot("ngModel",n.textResponse),_("placeholder",(e=n.notification.textPlaceholder)!==null&&e!==void 0?e:"V\xE1lasz...")("disabled",n.isSubmitted_$()),l(),_("disabled",n.isSubmitted_$()||!n.textResponse)}}function po(t,s){if(t&1){let e=I();o(0,"button",13),m("click",function(){C(e);let i=d(3);return f(i.handleMessageTextSubmit())}),c(1," K\xFCld\xE9s "),r()}if(t&2){let e=d(3);_("disabled",e.isSubmitted_$())}}function uo(t,s){if(t&1){let e=I();o(0,"textarea",14),at("ngModelChange",function(i){C(e);let a=d(2);return rt(a.textResponse,i)||(a.textResponse=i),f(i)}),r(),h(1,po,2,1,"button",9)}if(t&2){let e,n=d(2);ot("ngModel",n.textResponse),_("placeholder",(e=n.notification.textPlaceholder)!==null&&e!==void 0?e:"Opcion\xE1lis v\xE1lasz...")("disabled",n.isSubmitted_$()),l(),u(n.textResponse?1:-1)}}function _o(t,s){if(t&1){let e=I();o(0,"textarea",15),at("ngModelChange",function(i){C(e);let a=d(2);return rt(a.textResponse,i)||(a.textResponse=i),f(i)}),r()}if(t&2){let e,n=d(2);ot("ngModel",n.textResponse),_("placeholder",(e=n.notification.textPlaceholder)!==null&&e!==void 0?e:"Opcion\xE1lis megjegyz\xE9s...")("disabled",n.isSubmitted_$())}}function mo(t,s){if(t&1){let e=I();o(0,"div",0),h(1,oo,6,3,"div",1)(2,lo,4,1)(3,co,3,4)(4,uo,2,4)(5,_o,1,3,"textarea",2),o(6,"button",3),m("click",function(){C(e);let i=d();return f(i.handleDismiss())}),c(7," Kihagy\xE1s "),r()()}if(t&2){let e=d();l(),u(e.notification.type==="confirm"?1:-1),l(),u(e.notification.type==="option-select"&&e.notification.options?2:-1),l(),u(e.notification.type==="question"?3:-1),l(),u(e.notification.type==="message"&&e.notification.allowTextResponse?4:-1),l(),u((e.notification.type==="confirm"||e.notification.type==="option-select")&&e.notification.allowTextResponse?5:-1),l(),_("disabled",e.isSubmitted_$())}}var Yn=(()=>{class t{notification=null;responded=new le;dismissed=new le;selectedOptionId_$=S("");textResponse="";isSubmitted_$=S(!1);handleConfirm(e){if(this.isSubmitted_$())return;this.isSubmitted_$.set(!0);let n={confirmed:e};this.notification?.allowTextResponse&&this.textResponse.trim()&&(n.textResponse=this.textResponse.trim()),this.responded.emit(n)}handleOptionSelect(){if(this.isSubmitted_$())return;let e=this.selectedOptionId_$();if(!e)return;this.isSubmitted_$.set(!0);let n={selectedOptionId:e};this.notification?.allowTextResponse&&this.textResponse.trim()&&(n.textResponse=this.textResponse.trim()),this.responded.emit(n)}handleQuestionSubmit(){if(this.isSubmitted_$())return;let e=this.textResponse.trim();e&&(this.isSubmitted_$.set(!0),this.responded.emit({textResponse:e}))}handleMessageTextSubmit(){if(this.isSubmitted_$())return;let e=this.textResponse.trim();e&&(this.isSubmitted_$.set(!0),this.responded.emit({textResponse:e}))}handleDismiss(){this.isSubmitted_$()||(this.isSubmitted_$.set(!0),this.dismissed.emit())}selectOption(e){this.selectedOptionId_$.set(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ntf-response-controls"]],inputs:{notification:"notification"},outputs:{responded:"responded",dismissed:"dismissed"},standalone:!0,features:[F],decls:1,vars:1,consts:[[1,"flex","flex-col","gap-2","mt-2"],[1,"flex","gap-2"],["rows","1",1,"w-full","px-3","py-1.5","text-xs","rounded","border","border-neutral-600","bg-neutral-800/50","text-neutral-200","placeholder:text-neutral-500","focus:border-neonCyan","focus:outline-none","disabled:opacity-50","resize-none",3,"ngModel","placeholder","disabled"],["type","button",1,"px-2","py-1","text-xs","text-neutral-500","hover:text-neutral-300","transition-colors","self-start",3,"click","disabled"],[1,"text-sm","text-neutral-300"],["type","button",1,"px-3","py-1.5","text-sm","font-medium","rounded","bg-green-600/20","border","border-green-500/50","text-green-400","hover:bg-green-600/30","disabled:opacity-50","transition-colors",3,"click","disabled"],["type","button",1,"px-3","py-1.5","text-sm","font-medium","rounded","bg-red-600/20","border","border-red-500/50","text-red-400","hover:bg-red-600/30","disabled:opacity-50","transition-colors",3,"click","disabled"],[1,"flex","flex-col","gap-1"],["type","button",1,"px-3","py-2","text-sm","rounded","border","text-left","transition-colors",3,"disabled","border-neonCyan","ngClass","text-neonCyan","border-neutral-600","text-neutral-300","hover:border-neutral-500"],["type","button",1,"px-3","py-1.5","text-sm","font-medium","rounded","bg-neonCyan/15","border","border-neonCyan/50","text-neonCyan","hover:bg-neonCyan/25","disabled:opacity-50","transition-colors","self-start",3,"disabled"],["type","button",1,"px-3","py-2","text-sm","rounded","border","text-left","transition-colors",3,"click","disabled","ngClass"],[1,"font-medium"],[1,"block","text-xs","text-neutral-400","mt-0.5"],["type","button",1,"px-3","py-1.5","text-sm","font-medium","rounded","bg-neonCyan/15","border","border-neonCyan/50","text-neonCyan","hover:bg-neonCyan/25","disabled:opacity-50","transition-colors","self-start",3,"click","disabled"],["rows","2",1,"w-full","px-3","py-2","text-sm","rounded","border","border-neutral-600","bg-neutral-800/50","text-neutral-200","placeholder:text-neutral-500","focus:border-neonCyan","focus:outline-none","disabled:opacity-50","resize-none",3,"ngModelChange","ngModel","placeholder","disabled"],["rows","1",1,"w-full","px-3","py-1.5","text-xs","rounded","border","border-neutral-600","bg-neutral-800/50","text-neutral-200","placeholder:text-neutral-500","focus:border-neonCyan","focus:outline-none","disabled:opacity-50","resize-none",3,"ngModelChange","ngModel","placeholder","disabled"]],template:function(n,i){n&1&&h(0,mo,8,6,"div",0),n&2&&u(i.notification?0:-1)},dependencies:[j,ce,te,de,pe,ue],encapsulation:2})}return t})();var Co=t=>({"bg-neutral-800/30":t,"hover:bg-neutral-800/50":!0});function fo(t,s){t&1&&(k(),o(0,"svg",4),b(1,"path",19),r())}function ho(t,s){t&1&&(k(),o(0,"svg",4),b(1,"path",20),r())}function xo(t,s){t&1&&(k(),o(0,"svg",4),b(1,"path",21),r())}function bo(t,s){t&1&&(k(),o(0,"svg",4),b(1,"path",22),r())}function go(t,s){if(t&1&&(o(0,"p",9),c(1),r()),t&2){let e=d();l(),$(e.description)}}function So(t,s){if(t&1&&(o(0,"span",10),c(1),r()),t&2){let e=d();l(),$(e.sourceLabel)}}function vo(t,s){t&1&&(o(0,"span",11),c(1," Session "),r())}function yo(t,s){if(t&1){let e=I();o(0,"button",23),m("click",function(i){C(e);let a=d(2);return f(a.handleOpenSession(i))}),c(1," Open session "),k(),o(2,"svg",24),b(3,"path",25),r()()}t&2&&_("title","Open "+s)}function ko(t,s){t&1&&(o(0,"span",13),c(1," Megv\xE1laszolva "),r())}function Io(t,s){t&1&&(o(0,"span",14),c(1," Lej\xE1rt "),r())}function To(t,s){t&1&&(o(0,"span",15),c(1," Kihagyva "),r())}function wo(t,s){if(t&1&&(o(0,"span"),c(1),r()),t&2){let e=d(2);l(),$(e.response.confirmed?"Igen":"Nem")}}function Eo(t,s){if(t&1&&(o(0,"span"),c(1),r()),t&2){let e=d(2);l(),w("Kiv\xE1lasztva: ",e.response.selectedOptionId,"")}}function Ao(t,s){if(t&1&&(o(0,"p",26),c(1),r()),t&2){let e=d(2);l(),$(e.response.textResponse)}}function $o(t,s){if(t&1&&(o(0,"div",16),h(1,wo,2,1,"span")(2,Eo,2,1,"span")(3,Ao,2,1,"p",26),r()),t&2){let e=d();l(),u(e.response.confirmed!==void 0?1:-1),l(),u(e.response.selectedOptionId?2:-1),l(),u(e.response.textResponse?3:-1)}}function Po(t,s){if(t&1){let e=I();o(0,"app-ntf-response-controls",27),m("responded",function(i){C(e);let a=d(2);return f(a.handleResponded(i))})("dismissed",function(){C(e);let i=d(2);return f(i.handleDismissed())}),r()}if(t&2){let e=d();_("notification",e)}}function Mo(t,s){if(t&1){let e=I();o(0,"app-ntf-response-controls",27),m("responded",function(i){C(e);let a=d(3);return f(a.handleResponded(i))})("dismissed",function(){C(e);let i=d(3);return f(i.handleDismissed())}),r()}if(t&2){let e=d(2);_("notification",e)}}function Do(t,s){if(t&1){let e=I();o(0,"button",29),m("click",function(i){return C(e),d(3).handleDismissed(),f(i.stopPropagation())}),c(1," Elvet\xE9s "),r()}}function Ro(t,s){if(t&1&&h(0,Mo,1,1,"app-ntf-response-controls",17)(1,Do,2,0,"button",28),t&2){let e=d();u(e.allowTextResponse?0:1)}}function Fo(t,s){t&1&&b(0,"span",18)}function Oo(t,s){if(t&1){let e=I();o(0,"div",1),m("click",function(){C(e);let i=d();return f(i.handleClick())}),o(1,"div",2)(2,"div",3),h(3,fo,2,0,":svg:svg",4)(4,ho,2,0,":svg:svg",4)(5,xo,2,0,":svg:svg",4)(6,bo,2,0,":svg:svg",4),r(),o(7,"div",5)(8,"div",6)(9,"span",7),c(10),r(),o(11,"span",8),c(12),r()(),h(13,go,2,1,"p",9)(14,So,2,1,"span",10)(15,vo,2,0,"span",11)(16,yo,4,1,"button",12)(17,ko,2,0,"span",13)(18,Io,2,0,"span",14)(19,To,2,0,"span",15)(20,$o,4,3,"div",16)(21,Po,1,1,"app-ntf-response-controls",17)(22,Ro,2,1),r(),h(23,Fo,1,0,"span",18),r()()}if(t&2){let e,n,i=s,a=d();_("ngClass",ye(18,Co,!i.isRead)),l(2),_("ngClass",a.priorityColorClass_$()),l(),u((e=i.type)==="message"?3:e==="confirm"?4:e==="option-select"?5:e==="question"?6:-1),l(6),O("font-semibold",!i.isRead),l(),w(" ",i.title," "),l(2),$(a.relativeTime_$()),l(),u(i.description?13:-1),l(),u(i.sourceLabel?14:-1),l(),u(a.isLinkedInteraction_$()?15:-1),l(),u((n=a.targetSessionRoute_$())?16:-1,n),l(),u(i.status==="responded"?17:-1),l(),u(i.status==="expired"?18:-1),l(),u(i.status==="dismissed"?19:-1),l(),u(i.status==="responded"&&i.response?20:-1),l(),u(a.isInteractiveAndPending_$()?21:-1),l(),u(a.isMessageAndActive_$()?22:-1),l(),u(i.isRead?-1:23)}}var Kn=(()=>{class t{notification=Wt(null);router=y(Te);responded=new le;dismissed=new le;markedAsRead=new le;opened=new le;targetSessionRoute_$=v(()=>{let e=this.notification();return Re.resolveSessionRoute(e?.sessionId)});priorityColorClass_$=v(()=>{switch(this.notification()?.priority){case"error":return"border-red-500/50 text-red-400";case"warning":return"border-amber-500/50 text-amber-400";case"success":return"border-green-500/50 text-green-400";default:return"border-neonCyan/50 text-neonCyan"}});relativeTime_$=v(()=>{let e=this.notification();if(!e?.__created)return"";let n=Date.now(),i=new Date(e.__created).getTime(),a=n-i,p=Math.floor(a/1e3);if(p<60)return"most";let x=Math.floor(p/60);if(x<60)return`${x} perce`;let g=Math.floor(x/60);return g<24?`${g} \xF3r\xE1ja`:`${Math.floor(g/24)} napja`});isLinkedInteraction_$=v(()=>!!this.notification()?.linkedInteractionId);isInteractiveAndPending_$=v(()=>{let e=this.notification();return e?e.type!=="message"&&(e.status==="pending"||e.status==="delivered"):!1});isMessageAndActive_$=v(()=>{let e=this.notification();return e?e.type==="message"&&(e.status==="pending"||e.status==="delivered"):!1});handleResponded(e){let n=this.notification();n&&this.responded.emit({notificationId:n.notificationId,response:e})}handleDismissed(){let e=this.notification();e&&this.dismissed.emit(e.notificationId)}handleClick(){let e=this.notification();e&&!e.isRead&&this.markedAsRead.emit(e.notificationId)}handleOpenSession(e){e.stopPropagation();let n=this.targetSessionRoute_$();if(!n)return;let i=this.notification();i&&!i.isRead&&this.markedAsRead.emit(i.notificationId),this.opened.emit(),this.router.navigateByUrl(n)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ntf-item"]],inputs:{notification:[1,"notification"]},outputs:{responded:"responded",dismissed:"dismissed",markedAsRead:"markedAsRead",opened:"opened"},standalone:!0,features:[F],decls:1,vars:1,consts:[[1,"px-3","py-2.5","border-b","border-neutral-700/50","transition-colors","cursor-pointer",3,"ngClass"],[1,"px-3","py-2.5","border-b","border-neutral-700/50","transition-colors","cursor-pointer",3,"click","ngClass"],[1,"flex","items-start","gap-2"],[1,"shrink-0","mt-0.5",3,"ngClass"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-4","h-4"],[1,"flex-1","min-w-0"],[1,"flex","items-center","justify-between","gap-2"],[1,"text-sm","font-medium","text-neutral-200","truncate"],[1,"text-[11px]","text-neutral-500","shrink-0"],[1,"text-xs","text-neutral-400","mt-0.5","line-clamp-2"],[1,"text-[10px]","text-neutral-500","mt-0.5","inline-block"],[1,"inline-block","mt-0.5","ml-1","px-1.5","py-0.5","rounded","text-[10px]","font-medium","bg-neonCyan/10","text-neonCyan","border","border-neonCyan/20"],["type","button",1,"inline-flex","items-center","gap-0.5","mt-0.5","ml-1","px-1.5","py-0.5","rounded","text-[10px]","font-medium","bg-neonCyan/15","text-neonCyan","border","border-neonCyan/30","hover:bg-neonCyan/25","hover:border-neonCyan/50","transition-colors",3,"title"],[1,"inline-block","mt-1","px-1.5","py-0.5","rounded","text-[10px]","font-medium","bg-green-900/30","text-green-400","border","border-green-700/30"],[1,"inline-block","mt-1","px-1.5","py-0.5","rounded","text-[10px]","font-medium","bg-amber-900/30","text-amber-400","border","border-amber-700/30"],[1,"inline-block","mt-1","px-1.5","py-0.5","rounded","text-[10px]","font-medium","bg-neutral-700/30","text-neutral-400","border","border-neutral-600/30"],[1,"mt-1.5","px-2","py-1.5","rounded","bg-neutral-800/50","border","border-neutral-700/50","text-xs","text-neutral-300"],[3,"notification"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-neonCyan","shrink-0","mt-1.5"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M4 6h16M4 10h16M4 14h16M4 18h16"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"],["type","button",1,"inline-flex","items-center","gap-0.5","mt-0.5","ml-1","px-1.5","py-0.5","rounded","text-[10px]","font-medium","bg-neonCyan/15","text-neonCyan","border","border-neonCyan/30","hover:bg-neonCyan/25","hover:border-neonCyan/50","transition-colors",3,"click","title"],["viewBox","0 0 12 12","fill","none","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"w-3","h-3"],["d","M3 6h6m-2.5-2.5L9 6 6.5 8.5"],[1,"mt-0.5","text-neutral-400"],[3,"responded","dismissed","notification"],["type","button",1,"mt-1.5","px-2","py-1","text-xs","text-neutral-500","hover:text-neutral-300","transition-colors"],["type","button",1,"mt-1.5","px-2","py-1","text-xs","text-neutral-500","hover:text-neutral-300","transition-colors",3,"click"]],template:function(n,i){if(n&1&&h(0,Oo,24,20,"div",0),n&2){let a;u((a=i.notification())?0:-1,a)}},dependencies:[j,ce,Yn],encapsulation:2})}return t})();var Vo=(t,s)=>s.notificationId;function Uo(t,s){if(t&1&&(o(0,"span",4),c(1),r()),t&2){let e=d();l(),w(" ",e.notification_DS.unreadCount_$()>99?"99+":e.notification_DS.unreadCount_$()," ")}}function Lo(t,s){if(t&1){let e=I();o(0,"button",13),m("click",function(){C(e);let i=d(2);return f(i.handleMarkAllAsRead())}),c(1," Mind olvasott "),r()}}function No(t,s){t&1&&(o(0,"div",12),c(1," Bet\xF6lt\xE9s... "),r())}function jo(t,s){if(t&1){let e=I();o(0,"app-ntf-item",15),m("responded",function(i){C(e);let a=d(3);return f(a.handleNotificationResponded(i))})("dismissed",function(i){C(e);let a=d(3);return f(a.handleNotificationDismissed(i))})("markedAsRead",function(i){C(e);let a=d(3);return f(a.handleNotificationMarkedAsRead(i))})("opened",function(){C(e);let i=d(3);return f(i.handleNotificationOpened())}),r()}if(t&2){let e=s.$implicit;_("notification",e)}}function Qo(t,s){if(t&1&&L(0,jo,1,1,"app-ntf-item",14,Vo),t&2){let e=d(2);N(e.notification_DS.notifications_$())}}function Bo(t,s){t&1&&(o(0,"div",12),c(1," Nincs \xE9rtes\xEDt\xE9s "),r())}function zo(t,s){if(t&1){let e=I();o(0,"div",6),m("click",function(i){return C(e),f(i.stopPropagation())}),o(1,"div",7)(2,"span",8),c(3,"Notifications"),r(),o(4,"div",9),h(5,Lo,2,0,"button",10),r()(),o(6,"div",11),h(7,No,2,0,"div",12)(8,Qo,2,0)(9,Bo,2,0,"div",12),r()()}if(t&2){let e=d();l(5),u(e.notification_DS.unreadCount_$()>0?5:-1),l(2),u(e.notification_DS.isLoading_$()?7:e.notification_DS.notifications_$().length?8:9)}}var Xn=(()=>{class t{notification_DS=y(gt);elementRef=y(ve);handleDocumentClick(e){if(!this.notification_DS.isTrayOpen_$())return;let n=e.target;n instanceof Node&&!this.elementRef.nativeElement.contains(n)&&this.notification_DS.closeTray()}handleToggleTray(e){e.stopPropagation(),this.notification_DS.toggleTray()}handleMarkAllAsRead(){this.notification_DS.markAllAsRead()}handleNotificationResponded(e){this.notification_DS.respondToNotification(e.notificationId,e.response)}handleNotificationDismissed(e){this.notification_DS.dismissNotification(e)}handleNotificationMarkedAsRead(e){this.notification_DS.markAsRead(e)}handleNotificationOpened(){this.notification_DS.closeTray()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ntf-tray"]],hostBindings:function(n,i){n&1&&m("click",function(p){return i.handleDocumentClick(p)},!1,Gt)},standalone:!0,features:[F],decls:6,vars:3,consts:[[1,"relative","flex","items-center","justify-center"],["type","button","title","\xC9rtes\xEDt\xE9sek",1,"flex","items-center","justify-center","p-1","rounded-md","text-neutral-400","hover:text-neutral-200","hover:bg-neutral-800","transition-colors","duration-200","relative",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-5","h-5"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"],[1,"absolute","-top-0.5","-right-0.5","min-w-[1rem]","h-4","px-1","flex","items-center","justify-center","rounded-full","text-[10px]","font-bold","text-neutral-950","bg-neonCyan","animate-pulse","leading-none"],[1,"absolute","top-full","right-0","mt-2","z-50","w-[min(400px,calc(100vw-2rem))]","max-h-[60vh]","rounded-lg","border","border-neonDefault","bg-ccapSurface","shadow-xl","flex","flex-col","overflow-hidden"],[1,"absolute","top-full","right-0","mt-2","z-50","w-[min(400px,calc(100vw-2rem))]","max-h-[60vh]","rounded-lg","border","border-neonDefault","bg-ccapSurface","shadow-xl","flex","flex-col","overflow-hidden",3,"click"],[1,"flex","items-center","justify-between","px-3","py-2.5","border-b","border-neutral-700/50","shrink-0"],[1,"text-sm","font-semibold","text-neutral-200"],[1,"flex","items-center","gap-2"],["type","button",1,"text-xs","text-neonCyan","hover:underline"],[1,"flex-1","overflow-y-auto","min-h-0"],[1,"flex","items-center","justify-center","py-8","text-neutral-500","text-sm"],["type","button",1,"text-xs","text-neonCyan","hover:underline",3,"click"],[3,"notification"],[3,"responded","dismissed","markedAsRead","opened","notification"]],template:function(n,i){n&1&&(o(0,"div",0)(1,"button",1),m("click",function(p){return i.handleToggleTray(p)}),k(),o(2,"svg",2),b(3,"path",3),r(),h(4,Uo,2,1,"span",4),r(),h(5,zo,10,2,"div",5),r()),n&2&&(l(),q("aria-label",i.notification_DS.unreadCount_$()>0?"\xC9rtes\xEDt\xE9sek: "+i.notification_DS.unreadCount_$()+" olvasatlan":"\xC9rtes\xEDt\xE9sek"),l(3),u(i.notification_DS.unreadCount_$()>0?4:-1),l(),u(i.notification_DS.isTrayOpen_$()?5:-1))},dependencies:[j,Kn],encapsulation:2})}return t})();var Ho=["quickInputAnchorMain"],qo=(t,s)=>s.routerLink,ni=(t,s)=>s.id,Wo=(t,s)=>({"xs:-translate-x-full":t,"xs:translate-x-0":s}),Go=()=>({exact:!0}),Yo=t=>({exact:t});function Ko(t,s){t&1&&(k(),o(0,"svg",5),b(1,"path",31),r())}function Xo(t,s){t&1&&(k(),o(0,"svg",5),b(1,"path",32),r())}function Zo(t,s){if(t&1){let e=I();o(0,"div",33),m("click",function(i){return C(e),f(i.stopPropagation())}),o(1,"button",34),m("click",function(){C(e);let i=d();return f(i.handleRunDiagnosis())}),c(2),r(),o(3,"div",35),b(4,"app-ccap-error-display",36),r(),o(5,"p",37),c(6,"Kattint\xE1s az indik\xE1torra: \xFAjracsatlakoz\xE1s"),r()()}if(t&2){let e=d();l(),_("disabled",e.isDiagnosing_$()),l(),w(" ",e.isDiagnosing_$()?"Diagnosztika fut\u2026":"Kapcsolat diagn\xF3zis"," "),l(2),_("error",e.lastSocketError_$())}}function Jo(t,s){if(t&1&&(o(0,"span",14),c(1),r()),t&2){let e=d();l(),w(" ",e.socketStatusLabel_$()," ")}}function er(t,s){t&1&&b(0,"span",16)}function tr(t,s){t&1&&b(0,"span",17)}function nr(t,s){t&1&&b(0,"span",18)}function ir(t,s){t&1&&b(0,"span",19)}function or(t,s){if(t&1){let e=I();o(0,"div",38),m("click",function(){C(e);let i=d();return f(i.toggleSideNav())}),r()}}function rr(t,s){t&1&&b(0,"span",49)}function ar(t,s){t&1&&b(0,"span",52)}function sr(t,s){t&1&&(o(0,"div",61)(1,"a",65),k(),o(2,"svg",66),b(3,"path",67),r(),c(4," Koordin\xE1tor "),r(),P(),o(5,"a",68),k(),o(6,"svg",66),b(7,"path",69),r(),c(8," Orchestrator "),r(),P(),o(9,"a",70),k(),o(10,"svg",66),b(11,"path",71),r(),c(12," Voice Notes POC "),r(),P(),o(13,"a",72),k(),o(14,"svg",66),b(15,"path",73),r(),c(16," CA Sessions "),r(),P(),o(17,"a",74),k(),o(18,"svg",66),b(19,"path",75),r(),c(20," OC Sessions "),r(),P(),o(21,"a",76),k(),o(22,"svg",66),b(23,"path",77),r(),c(24," Consultant "),r(),P(),o(25,"a",78),k(),o(26,"svg",66),b(27,"path",79),r(),c(28," POC Remote "),r()())}function lr(t,s){if(t&1&&(k(),o(0,"svg",66),b(1,"path",81),r()),t&2){let e=d().$implicit;l(),q("d",e.iconSvgPath)}}function cr(t,s){if(t&1&&(o(0,"a",80),h(1,lr,2,1,":svg:svg",66),c(2),r()),t&2){let e=s.$implicit;_("routerLink",e.routerLink)("routerLinkActiveOptions",ye(4,Yo,e.isRouterLinkActiveExactInSideNav)),l(),u(e.iconSvgPath?1:-1),l(),w(" ",e.label," ")}}function dr(t,s){if(t&1&&(o(0,"div",61),L(1,cr,3,6,"a",80,qo),r()),t&2){let e=d(2);l(),N(e.settingsSubmenuNavLinks)}}function pr(t,s){if(t&1&&(o(0,"span",99),c(1),r()),t&2){let e=d(3);l(),w(" ",e.recordedSystemErrorsCount_$()," ")}}function ur(t,s){if(t&1&&(o(0,"span",99),c(1),r()),t&2){let e=d(3);l(),w(" ",e.recordedAgentFeedbackCount_$()," ")}}function _r(t,s){if(t&1&&(o(0,"div",61)(1,"a",82),k(),o(2,"svg",66),b(3,"path",83),r(),c(4," Live Development Pipeline "),r(),P(),o(5,"a",84),k(),o(6,"svg",66),b(7,"path",85),r(),c(8," Model Registry "),r(),P(),o(9,"a",86),k(),o(10,"svg",66),b(11,"path",87),r(),c(12," Cost Tracking "),r(),P(),o(13,"a",88),k(),o(14,"svg",66),b(15,"path",89),r(),c(16," CC Usage "),r(),P(),o(17,"a",90),c(18," Costs "),r(),o(19,"a",91),k(),o(20,"svg",66),b(21,"path",92),r(),c(22," Embedding registry "),r(),P(),o(23,"a",93),k(),o(24,"svg",66),b(25,"path",94),r(),c(26," Document Library "),r(),P(),o(27,"a",95),k(),o(28,"svg",66),b(29,"path",96),r(),c(30," Project Source "),r(),P(),o(31,"a",97),k(),o(32,"svg",66),b(33,"path",98),r(),P(),o(34,"span"),c(35,"Hib\xE1k"),r(),h(36,pr,2,1,"span",99),r(),o(37,"a",100),k(),o(38,"svg",66),b(39,"path",101),r(),c(40," Host Runtime MCP "),r(),P(),o(41,"a",102),k(),o(42,"svg",66),b(43,"path",103),r(),P(),o(44,"span"),c(45,"Feedback"),r(),h(46,ur,2,1,"span",99),r(),o(47,"a",104),k(),o(48,"svg",66),b(49,"path",105),r(),c(50," LLM Debug Log "),r(),P(),o(51,"a",106),k(),o(52,"svg",66),b(53,"path",107),r(),c(54," Workflow be\xE1ll\xEDt\xE1sok "),r(),P(),o(55,"a",108),k(),o(56,"svg",66),b(57,"path",73),r(),c(58," Terminals "),r(),P(),o(59,"a",109),k(),o(60,"svg",66),b(61,"path",67),r(),c(62," Agent Instances "),r(),P(),o(63,"a",110),k(),o(64,"svg",66),b(65,"path",111),r(),c(66," Mobile App "),r()()),t&2){let e=d(2);l(31),q("aria-label",e.recordedSystemErrorsCount_$()>0?"Hib\xE1k, "+e.recordedSystemErrorsCount_$()+" r\xF6gz\xEDtett bejegyz\xE9s a list\xE1ban":null)("title",e.recordedSystemErrorsCount_$()>0?"Rendszer hib\xE1k sz\xE1ma: "+e.recordedSystemErrorsCount_$():null),l(5),u(e.recordedSystemErrorsCount_$()>0?36:-1),l(5),q("aria-label",e.recordedAgentFeedbackCount_$()>0?"Feedback, "+e.recordedAgentFeedbackCount_$()+" r\xF6gz\xEDtett bejegyz\xE9s a list\xE1ban":null)("title",e.recordedAgentFeedbackCount_$()>0?"Feedback bejegyz\xE9sek sz\xE1ma: "+e.recordedAgentFeedbackCount_$():null),l(5),u(e.recordedAgentFeedbackCount_$()>0?46:-1)}}function mr(t,s){if(t&1){let e=I();o(0,"nav",25)(1,"div",39)(2,"a",40),k(),o(3,"svg",41),b(4,"path",42),r(),c(5," Dashboard "),r(),P(),o(6,"a",43),k(),o(7,"svg",41),b(8,"path",44),r(),c(9," Dark Office "),r(),P(),o(10,"a",45),k(),o(11,"svg",41),b(12,"path",46),r(),c(13," Project Management "),r(),P(),o(14,"a",47),k(),o(15,"svg",41),b(16,"path",48),r(),P(),o(17,"span"),c(18,"CCAP Sessions"),r(),h(19,rr,1,0,"span",49),r(),o(20,"a",50),k(),o(21,"svg",41),b(22,"path",51),r(),P(),o(23,"span"),c(24,"CC Sessions"),r(),h(25,ar,1,0,"span",52),r(),o(26,"a",53),k(),o(27,"svg",41),b(28,"path",54),r(),c(29," Scheduler "),r(),P(),o(30,"div",55)(31,"button",56),m("click",function(){C(e);let i=d();return f(i.togglePocSubmenu())}),k(),o(32,"svg",41),b(33,"path",57),r(),c(34," POC "),P(),o(35,"span",58),k(),o(36,"svg",59),b(37,"path",60),r()()(),h(38,sr,29,0,"div",61),r(),P(),o(39,"div",55)(40,"button",56),m("click",function(){C(e);let i=d();return f(i.toggleSettingsSubmenu())}),k(),o(41,"svg",41),b(42,"path",62)(43,"path",63),r(),c(44," Be\xE1ll\xEDt\xE1sok "),P(),o(45,"span",58),k(),o(46,"svg",59),b(47,"path",60),r()()(),h(48,dr,3,0,"div",61),r(),P(),o(49,"div",55)(50,"button",56),m("click",function(){C(e);let i=d();return f(i.toggleMaintenanceSubmenu())}),k(),o(51,"svg",41),b(52,"path",64),r(),c(53," Maintenance "),P(),o(54,"span",58),k(),o(55,"svg",59),b(56,"path",60),r()()(),h(57,_r,67,6,"div",61),r()()()}if(t&2){let e=d();l(2),_("routerLinkActiveOptions",Kt(24,Go)),l(17),u(e.hasRunningCcapSession_$()?19:-1),l(6),u(e.hasRunningCcSession_$()?25:-1),l(6),O("text-ccapAccent",e.pocSubmenuOpen_$())("border-ccapAccent",e.pocSubmenuOpen_$()),l(4),O("rotate-90",e.pocSubmenuOpen_$()),l(3),u(e.pocSubmenuOpen_$()?38:-1),l(2),O("text-ccapAccent",e.settingsSubmenuOpen_$())("border-ccapAccent",e.settingsSubmenuOpen_$()),l(5),O("rotate-90",e.settingsSubmenuOpen_$()),l(3),u(e.settingsSubmenuOpen_$()?48:-1),l(2),O("text-ccapAccent",e.maintenanceSubmenuOpen_$())("border-ccapAccent",e.maintenanceSubmenuOpen_$()),l(4),O("rotate-90",e.maintenanceSubmenuOpen_$()),l(3),u(e.maintenanceSubmenuOpen_$()?57:-1)}}function Cr(t,s){t&1&&(k(),o(0,"svg",114),b(1,"path",32),r())}function fr(t,s){t&1&&(k(),o(0,"svg",114),b(1,"path",116),r())}function hr(t,s){t&1&&(k(),o(0,"svg",114),b(1,"path",117),r())}function xr(t,s){t&1&&(o(0,"span",115),c(1,"\u203A"),r())}function br(t,s){if(t&1){let e=I();o(0,"button",113),m("click",function(){let i=C(e).$implicit;return f(i.open())}),h(1,Cr,2,0,":svg:svg",114)(2,fr,2,0,":svg:svg",114)(3,hr,2,0,":svg:svg",114)(4,xr,2,0,"span",115),r()}if(t&2){let e,n=s.$implicit;_("title",n.label),l(),u((e=n.icon)==="menu"?1:e==="list"?2:e==="info"?3:4)}}function gr(t,s){if(t&1&&(o(0,"div",27),L(1,br,5,2,"button",112,ni),r()),t&2){let e=d();l(),N(e.closedPanelsLeftStrip_$())}}function Sr(t,s){t&1&&(k(),o(0,"svg",114),b(1,"path",32),r())}function vr(t,s){t&1&&(k(),o(0,"svg",114),b(1,"path",116),r())}function yr(t,s){t&1&&(k(),o(0,"svg",114),b(1,"path",117),r())}function kr(t,s){t&1&&(o(0,"span",115),c(1,"\u2039"),r())}function Ir(t,s){if(t&1){let e=I();o(0,"button",113),m("click",function(){let i=C(e).$implicit;return f(i.open())}),h(1,Sr,2,0,":svg:svg",114)(2,vr,2,0,":svg:svg",114)(3,yr,2,0,":svg:svg",114)(4,kr,2,0,"span",115),r()}if(t&2){let e,n=s.$implicit;_("title",n.label),l(),u((e=n.icon)==="menu"?1:e==="list"?2:e==="info"?3:4)}}function Tr(t,s){if(t&1&&(o(0,"div",28),L(1,Ir,5,2,"button",112,ni),r()),t&2){let e=d();l(),N(e.layoutOverlay_CS.closedPanelsRight_$())}}function wr(t,s){t&1&&(o(0,"span",121),c(1),r()),t&2&&(l(),w(" \u2014 ",s.promptId,""))}function Er(t,s){if(t&1&&(o(0,"div",30)(1,"span",118),b(2,"span",119),o(3,"span",120),c(4," Modellteszt fut a h\xE1tt\xE9rben "),h(5,wr,2,1,"span",121),r()(),o(6,"a",122),c(7," Model Registry "),r()()),t&2){let e,n=d();l(5),u((e=n.modelRegistry_DS.modelTestRunProgressCurrentTask_$())?5:-1,e)}}var Zn="ccap-sideNavOpen",Jn="ccap-nav-settingsSubmenuOpen",ei="ccap-nav-maintenanceSubmenuOpen",ti="ccap-nav-pocSubmenuOpen",St=(()=>{class t extends Sn{setup_DS=y(vn);session_DS=y(Pe);errors_DS=y(In);recordedSystemErrorsCount_$=v(()=>this.errors_DS.errorsTotalCount_$());agentFeedback_DS=y(Tn);recordedAgentFeedbackCount_$=v(()=>this.agentFeedback_DS.feedbackTotalCount_$());userInput_DS=y(G);quickInputAnchorMainRef;quickInputMainResizeObs;modelRegistry_DS=y(wn);claudeCode_DS=y(Me);hasRunningCcSession_$=v(()=>this.claudeCode_DS.sessions_$().some(e=>oe.isRunning(e.status)));hasRunningCcapSession_$=v(()=>this.session_DS.sessions_$().some(e=>oe.isRunning(e.status)));settingsGeneral_DS=y(xn);mobileAppUpdater_CS=y(ft);mobileNotification_CS=y(bt);router=y(Te);routerUrl_$=S("");version=B.version;settingsSubmenuNavLinks=Cn;activeSessionId_$=this.session_DS.activeSessionId_$;socketStatus_$=this.session_DS.socketStatus_$;lastSocketError_$=this.session_DS.lastSocketError_$;connectAttemptCount_$=this.session_DS.connectAttemptCount_$;isDiagnosing_$=S(!1);modelTestRunGlobalBannerVisible_$=v(()=>{if(this.routerUrl_$().startsWith("/model-registry"))return!1;let n=this.modelRegistry_DS.testRunId_$(),i=this.modelRegistry_DS.testRunStatus_$();return!n||i==null?!1:i.status===Mt.running||i.status===Mt.pending});socketStatusLabel_$=v(()=>{let e=this.socketStatus_$(),n=this.connectAttemptCount_$();return e===He.connected?"WebSocket csatlakozva \u2013 kattint\xE1s: \xFAjracsatlakoz\xE1s":e===He.error?`WebSocket hiba${n>0?` (${n}x)`:""} \u2013 kattint\xE1s: \xFAjracsatlakoz\xE1s`:"Csatlakoz\xE1s\u2026 \u2013 kattint\xE1s: \xFAjracsatlakoz\xE1s"});sideNavOpen_$=S(t.readSideNavOpenFromStorage());settingsSubmenuOpen_$=S(t.readNavSubmenuOpenFromStorage(Jn));maintenanceSubmenuOpen_$=S(t.readNavSubmenuOpenFromStorage(ei));pocSubmenuOpen_$=S(t.readNavSubmenuOpenFromStorage(ti));closedPanelsLeftStrip_$=v(()=>{let e=this.layoutOverlay_CS.closedPanelsLeft_$();return this.layoutBreakpoint_CS.isMobile_$()?e:e.filter(n=>n.id!=="navbar")});layoutOverlay_CS=y(Bn);layoutBreakpoint_CS=y(ht);constructor(){super(),this.layoutBreakpoint_CS.isMobile_$()&&this.sideNavOpen_$.set(!1),this.layoutOverlay_CS.register({id:"navbar",label:"Men\xFC",icon:"menu",isOpen:this.sideNavOpen_$(),open:()=>this.toggleSideNav()}),W(()=>{let e=this.sideNavOpen_$();H.writeString(Zn,String(e)),this.layoutOverlay_CS.updatePanelState("navbar",e)},{allowSignalWrites:!0}),W(()=>{let e=this.settingsSubmenuOpen_$(),n=this.maintenanceSubmenuOpen_$(),i=this.pocSubmenuOpen_$();H.writeString(Jn,String(e)),H.writeString(ei,String(n)),H.writeString(ti,String(i))})}ngOnInit(){this.router.url.startsWith("/setup")||this.checkSetupAndRedirect(),this.settingsGeneral_DS.load().then(()=>{this.settingsGeneral_DS.section_$().form.mobileAutoUpdateEnabled&&this.mobileAppUpdater_CS.autoUpdateIfAvailable()}),this.errors_DS.loadErrors(),this.agentFeedback_DS.loadFeedback(),this.mobileNotification_CS.initialize(),this.routerUrl_$.set(this.router.url??""),this.addSubscription(this.router.events.pipe(zt(n=>n instanceof sn)).subscribe(n=>{let i=n.urlAfterRedirects??n.url??"";this.routerUrl_$.set(i),this.userInput_DS.syncComposerAreaFromNavigation(i),this.layoutBreakpoint_CS.isMobile_$()&&this.sideNavOpen_$.set(!1),(i.startsWith("/setup")||i.startsWith("/settings"))&&this.settingsSubmenuOpen_$.set(!0),this.isMaintenanceRoute(i)&&this.maintenanceSubmenuOpen_$.set(!0),(i.includes("voice-notes-poc")||i.includes("master-control-remote-poc")||i.includes("oc-session")||i.includes("ca-session")||i.includes("consultant"))&&this.pocSubmenuOpen_$.set(!0)}));let e=this.router.url??"";(e.startsWith("/setup")||e.startsWith("/settings"))&&this.settingsSubmenuOpen_$.set(!0),this.isMaintenanceRoute(e)&&this.maintenanceSubmenuOpen_$.set(!0),(e.includes("voice-notes-poc")||e.includes("master-control-remote-poc")||e.includes("oc-session")||e.includes("ca-session")||e.includes("consultant"))&&this.pocSubmenuOpen_$.set(!0),this.userInput_DS.syncComposerAreaFromNavigation(this.router.url??"")}ngAfterViewInit(){let e=this.quickInputAnchorMainRef?.nativeElement;if(e===void 0)return;let n=()=>{this.userInput_DS.syncQuickInputMainBoundsFromMainElement(e),this.userInput_DS.clampFabOffsetsToMain(e)};n(),this.quickInputMainResizeObs=new ResizeObserver(n),this.quickInputMainResizeObs.observe(e)}ngOnDestroy(){super.ngOnDestroy(),this.quickInputMainResizeObs?.disconnect()}checkSetupAndRedirect(){return A(this,null,function*(){try{(yield this.setup_DS.getSetupStatus()).setupCompleted||this.router.navigate(["/setup"])}catch{}})}toggleSideNav(){this.sideNavOpen_$.update(e=>!e)}toggleSettingsSubmenu(){this.settingsSubmenuOpen_$.update(e=>!e)}toggleMaintenanceSubmenu(){this.maintenanceSubmenuOpen_$.update(e=>!e)}togglePocSubmenu(){this.pocSubmenuOpen_$.update(e=>!e)}isMaintenanceRoute(e){return e.startsWith("/model-registry")||e.startsWith("/cost-tracking")||e.startsWith("/costs")||e.startsWith("/embedding-registry")||e.startsWith("/document-library")||e.startsWith("/project-source")||e.startsWith("/errors")||e.startsWith("/host-runtime-mcp")||e.startsWith("/feedback")||e.startsWith("/logs")||e.startsWith("/workflow-settings")||e.startsWith("/mobile-app")||e.startsWith("/agent-instances")||e.startsWith("/terminals")||e.startsWith("/live-development-pipeline")||e.startsWith("/system-status")}reconnectSocket(){this.session_DS.reconnectSocket()}handleRunDiagnosis(){this.isDiagnosing_$()||(this.isDiagnosing_$.set(!0),this.session_DS.diagnoseConnection().then(e=>{this.mergeDiagnosisIntoLastError(e),this.isDiagnosing_$.set(!1)}).catch(e=>{this.mergeDiagnosisIntoLastError({diagnosisError:e instanceof Error?e.message:String(e)}),this.isDiagnosing_$.set(!1)}))}mergeDiagnosisIntoLastError(e){let n=this.lastSocketError_$();if(n!==null&&typeof n=="object"){let i=Y({},n);i.diagnosis=e,this.lastSocketError_$.set(i)}}static readSideNavOpenFromStorage(){return H.readString(Zn)!=="false"}static readNavSubmenuOpenFromStorage(e){return H.readString(e)==="true"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-main-frame"]],viewQuery:function(n,i){if(n&1&&Ue(Ho,5,ve),n&2){let a;Le(a=Ne())&&(i.quickInputAnchorMainRef=a.first)}},standalone:!0,features:[Yt,F],decls:43,vars:24,consts:[["quickInputAnchorMain",""],[1,"flex","flex-col","h-dvh","overflow-hidden"],[1,"shrink-0","h-14","min-h-[44px]","border-b","border-neonDefault","bg-ccapSurface","flex","items-center","justify-between","px-4","gap-2","overflow-visible","pt-[var(--sat)]"],[1,"flex","items-center","gap-2","min-w-0","flex-1"],["type","button",1,"p-2","-ml-2","rounded-md","text-neutral-400","hover:text-neutral-200","hover:bg-neutral-800","transition-colors","duration-200","flex-shrink-0",3,"click","title"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-6","h-6"],[1,"min-w-0"],[1,"text-lg","font-semibold","text-neutral-100"],[1,"ml-2","text-sm","text-neutral-400","gt-xs:inline","xs:hidden"],[1,"text-sm","font-medium","tracking-widest","text-neutral-400","uppercase","select-none","gt-xs:inline","xs:hidden"],[1,"flex","items-center","gap-2","flex-1","justify-end"],[1,"relative","flex","items-center","justify-center","group"],[1,"absolute","top-full","right-0","pt-2","z-50","opacity-0","group-hover:opacity-100","transition-opacity","duration-150","pointer-events-none","[&.tooltip-error]:group-hover:pointer-events-auto","w-max","max-w-[min(420px,calc(100vw-5rem))]"],[1,"rounded","px-1","py-1","text-xs","text-neutral-100","bg-neutral-700","shadow-md","border","border-red-500/70","w-full","max-w-[min(420px,calc(100vw-5rem))]"],[1,"whitespace-nowrap","rounded","px-2","py-1","text-xs","text-neutral-100","bg-neutral-700","shadow-md","border","border-neonDefault"],["type","button",1,"flex","items-center","justify-center","p-0.5","rounded-full","text-neutral-400","hover:text-neutral-200","transition-colors","duration-200","cursor-pointer",3,"click"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-green-500","shrink-0"],["aria-hidden","true",1,"inline-block","w-3","h-3","shrink-0","animate-spin","rounded-full","border-2","border-neonCyan/50","border-t-neonCyan"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-red-500","shrink-0"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-neutral-500","shrink-0"],["title","Client version",1,"text-sm","text-neutral-300"],[1,"text-neutral-500","font-normal","xs:hidden","gt-xs:inline"],["aria-hidden","true",1,"fixed","inset-0","z-30","bg-black/50","xs:block","gt-xs:hidden"],[1,"flex","flex-1","min-h-0"],[1,"shrink-0","border-r","border-neonDefault","bg-ccapSurface","overflow-y-auto","flex","flex-col","xs:fixed","xs:inset-y-0","xs:left-0","xs:z-40","xs:w-64","xs:max-w-[85vw]","xs:top-14","xs:bottom-0","xs:transition-transform","xs:duration-200","xs:ease-out","gt-xs:!translate-x-0","overflow-hidden","transition-[width]","duration-200","ease-out",3,"ngClass"],[1,"flex","flex-col","flex-1","min-h-0","p-2"],[1,"flex","flex-col","flex-1","min-h-0","min-w-0","relative","pb-[var(--sab)]"],[1,"absolute","top-0","left-0","z-10","flex","gap-1","p-2","rounded-br-md","border-b","border-r","border-neonDefault","bg-ccapSurface/95","shadow-sm","xs:hidden"],[1,"absolute","top-0","right-0","z-10","flex","gap-1","p-2","rounded-bl-md","border-b","border-l","border-neonDefault","bg-ccapSurface/95","shadow-sm"],[1,"flex","flex-col","flex-1","min-h-0","overflow-x-hidden","overflow-y-auto"],[1,"shrink-0","px-3","py-2","border-b","border-ccapAccent/40","bg-ccapAccent/10","text-sm","text-neutral-200","flex","flex-wrap","items-center","justify-between","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 19l-7-7 7-7"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M4 6h16M4 12h16M4 18h16"],[1,"rounded","px-1","py-1","text-xs","text-neutral-100","bg-neutral-700","shadow-md","border","border-red-500/70","w-full","max-w-[min(420px,calc(100vw-5rem))]",3,"click"],["type","button",1,"w-full","mb-1","px-2","py-1.5","text-xs","font-medium","rounded","bg-neonCyan/15","border","border-neonCyan/50","text-neonCyan","hover:bg-neonCyan/25","disabled:opacity-50","transition-colors",3,"click","disabled"],[1,"max-h-72","overflow-y-auto","overflow-x-hidden","[&_h2]:text-sm","[&_h2]:mb-0"],["sourceLabelOverride","WebSocket",3,"error"],[1,"text-neutral-500","text-[11px]","mt-1","px-1"],["aria-hidden","true",1,"fixed","inset-0","z-30","bg-black/50","xs:block","gt-xs:hidden",3,"click"],[1,"flex","flex-col","gap-0.5","flex-1","overflow-y-auto"],["routerLink","/","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3",3,"routerLinkActiveOptions"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-5","h-5","shrink-0"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"],["routerLink","/dark-office","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"],["routerLink","/project-management","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"],["routerLink","/session","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"],["title","Legal\xE1bb egy CCAP Session fut","aria-label","Legal\xE1bb egy CCAP Session fut",1,"inline-block","w-2","h-2","rounded-full","bg-yellow-400","animate-pulse","shrink-0"],["routerLink","/cc-session","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"],["title","Legal\xE1bb egy CC Session fut","aria-label","Legal\xE1bb egy CC Session fut",1,"inline-block","w-2","h-2","rounded-full","bg-yellow-400","animate-pulse","shrink-0"],["routerLink","/scheduler","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"],[1,"flex","flex-col","gap-0.5"],["type","button",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3","w-full","text-left",3,"click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"],[1,"ml-auto","shrink-0","transition-transform","duration-200"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 5l7 7-7 7"],[1,"flex","flex-col","gap-0.5","pl-4","ml-5","border-l","border-neutral-600"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 12a3 3 0 11-6 0 3 3 0 016 0z"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.049.58.025 1.193-.14 1.743"],["routerLink","/coordinator","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-4","h-4","shrink-0"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"],["routerLink","/orchestrator","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 10V3L4 14h7v7l9-11h-7z"],["routerLink","/voice-notes-poc","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m-4 0h8m-4-16a3 3 0 00-3 3v4a3 3 0 006 0V7a3 3 0 00-3-3z"],["routerLink","/ca-session","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"],["routerLink","/oc-session","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"],["routerLink","/consultant","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"],["routerLink","/master-control-remote-poc","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5.636 18.364a9 9 0 010-12.728m12.728 0a9 9 0 010 12.728m-9.9-2.829a5 5 0 010-7.07m7.072 0a5 5 0 010 7.07M13 12a1 1 0 11-2 0 1 1 0 012 0z"],["routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2",3,"routerLink","routerLinkActiveOptions"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2"],["routerLink","/live-development-pipeline","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M22 12h-4l-3 9L9 3l-3 9H2"],["routerLink","/model-registry","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"],["routerLink","/cost-tracking","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"],["routerLink","/cc-usage","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 19V6l3-3 3 3v13M5 21h14a2 2 0 002-2v-7l-7-7-7 7v7a2 2 0 002 2z"],["routerLink","/costs","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["routerLink","/embedding-registry","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"],["routerLink","/document-library","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"],["routerLink","/project-source","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"],["routerLink","/errors","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"],[1,"ml-auto","shrink-0","min-w-[1.25rem]","px-1.5","py-0.5","rounded-full","text-xs","font-semibold","text-neutral-950","bg-amber-400","border","border-amber-500/80","text-center","leading-none"],["routerLink","/host-runtime-mcp","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"],["routerLink","/feedback","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"],["routerLink","/logs","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"],["routerLink","/workflow-settings","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"],["routerLink","/terminals","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["routerLink","/agent-instances","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["routerLink","/mobile-app","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z"],["type","button",1,"p-2","rounded-md","text-neutral-400","hover:text-neutral-200","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","justify-center",3,"title"],["type","button",1,"p-2","rounded-md","text-neutral-400","hover:text-neutral-200","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","justify-center",3,"click","title"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-5","h-5"],[1,"text-lg"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M4 6h16M4 10h16M4 14h16M4 18h16"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"],[1,"flex","items-center","gap-2","min-w-0"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-ccapAccent","animate-pulse","shrink-0"],[1,"truncate"],[1,"text-neutral-400"],["routerLink","/model-registry",1,"shrink-0","text-ccapAccent","hover:underline","font-medium","text-xs","uppercase","tracking-wide"]],template:function(n,i){if(n&1){let a=I();o(0,"div",1)(1,"header",2)(2,"div",3)(3,"button",4),m("click",function(){return C(a),f(i.toggleSideNav())}),h(4,Ko,2,0,":svg:svg",5)(5,Xo,2,0,":svg:svg",5),r(),o(6,"div",6)(7,"span",7),c(8,"CCAP"),r(),o(9,"span",8),c(10,"Agentic AI System"),r()()(),o(11,"span",9),c(12,"Command Center"),r(),o(13,"div",10),b(14,"app-ntf-tray"),o(15,"div",11)(16,"div",12),h(17,Zo,7,3,"div",13)(18,Jo,2,1,"span",14),r(),o(19,"button",15),m("click",function(){return C(a),f(i.reconnectSocket())}),h(20,er,1,0,"span",16)(21,tr,1,0,"span",17)(22,nr,1,0,"span",18)(23,ir,1,0,"span",19),r()(),o(24,"span",20)(25,"span",21),c(26,"Version"),r(),c(27),r()()(),h(28,or,1,0,"div",22),o(29,"div",23)(30,"aside",24),h(31,mr,58,25,"nav",25),r(),o(32,"main",26,0),b(34,"app-ccap-app-update-banner")(35,"app-ccap-server-update-banner")(36,"app-ccap-error-popup"),h(37,gr,3,0,"div",27)(38,Tr,3,0,"div",28),o(39,"div",29),h(40,Er,8,1,"div",30),b(41,"router-outlet"),r()()(),b(42,"app-ccap-mobile-server-setup"),r()}if(n&2){let a;l(3),_("title",i.sideNavOpen_$()?"Men\xFC bez\xE1r\xE1sa":"Men\xFC megnyit\xE1sa"),q("aria-label",i.sideNavOpen_$()?"Men\xFC bez\xE1r\xE1sa":"Men\xFC megnyit\xE1sa"),l(),u(i.sideNavOpen_$()?4:5),l(12),O("tooltip-error",i.socketStatus_$()==="error"&&i.lastSocketError_$()),l(),u(i.socketStatus_$()==="error"&&i.lastSocketError_$()?17:18),l(2),q("aria-label",i.socketStatusLabel_$()),l(),u((a=i.socketStatus_$())==="connected"?20:a==="connecting"?21:a==="error"?22:23),l(7),w(" v",i.version," "),l(),u(i.sideNavOpen_$()?28:-1),l(2),O("w-64",i.sideNavOpen_$())("w-0",!i.sideNavOpen_$())("border-r-0",!i.sideNavOpen_$()),_("ngClass",st(21,Wo,!i.sideNavOpen_$(),i.sideNavOpen_$())),l(),u(i.sideNavOpen_$()?31:-1),l(6),u(i.closedPanelsLeftStrip_$().length>0?37:-1),l(),u(i.layoutOverlay_CS.closedPanelsRight_$().length>0?38:-1),l(2),u(i.modelTestRunGlobalBannerVisible_$()?40:-1)}},dependencies:[j,ce,Ce,ln,ct,cn,ie,Ln,Qn,Vn,Un,Xn],encapsulation:2})}return t})();function $r(t,s){let e=t>>>0,n=s>>>0;return e*2654435761+n*1597334677+1013904223>>>0||1}function Pr(t){return t>>>0||1}function Mr(t){return t.value=t.value*1664525+1013904223>>>0,t.value}function z(t,s,e){let n=e-s+1,i=Mr(t);return s+i%n}function me(t,s,e){return t<s?s:t>e?e:t}function Dr(t){let s=z(t,0,99);return s<40?z(t,-3,3):s<70?z(t,-6,6):s<80?z(t,-11,-5):s<90?z(t,5,11):s<95?z(t,-20,-12):z(t,12,20)}function Rr(t,s,e,n){let i=me(s,e,n);if(i<40||i>60||z(t,1,100)>55)return i;let a=z(t,0,1)===0,p=z(t,5,13),x=me(a?i-p:i+p,e,n);return x<40||x>60?x:me(a?i+p:i-p,e,n)}function ii(t){let s=[];for(let e=0;e<t.length;e++){let n=t[e],i=s[s.length-1];i?.x===n.x&&i.y===n.y||s.push(n)}return s}function Fr(t){let s=ii(t);if(s.length===0)return"M 0 0 L 0 0";let e=`M ${s[0].x} ${s[0].y}`;for(let n=1;n<s.length;n++)e+=` L ${s[n].x} ${s[n].y}`;return e}function Or(t){if(t.length===0)return[];let s=[{x:t[0].x,y:t[0].y,cumLen:0}],e=0;for(let n=1;n<t.length;n++){let i=t[n].x-t[n-1].x,a=t[n].y-t[n-1].y;e+=Math.hypot(i,a),s.push({x:t[n].x,y:t[n].y,cumLen:e})}return s}function Vr(t){let e=50+z(t,-5,5),n=z(t,70,90),i=z(t,14,26),a=z(t,4,11),p=n-a,x=[{x:0,y:e},{x:i,y:e}],g=i,T=e,E=0;for(;g<p-1&&E<56;){E+=1;let yi=Dr(t),re=me(T+yi,30,70);if(re===T){let be=z(t,1,3);re=me(T+(z(t,0,1)===0?-be:be),30,70)}re=Rr(t,re,30,70);let Oe=re-T,$t=Math.abs(Oe),Ke=g+$t;if(Ke>p){let be=p-g;if(be<1.5)break;$t=Math.floor(be);let ge=Oe>=0?1:-1;re=me(T+ge*$t,30,70),Oe=re-T,Ke=g+Math.abs(Oe)}if(Math.abs(Oe)<1e-4)continue;x.push({x:Ke,y:re}),g=Ke,T=re;let Qt=p-g;if(Qt>1e-4){let ge=Math.min(12,Math.floor(Qt));if(ge>=3){let ki=z(t,3,ge);g=Math.min(g+ki,p),x.push({x:g,y:T})}else ge>=1&&(g=Math.min(g+ge,p),x.push({x:g,y:T}))}}let M=z(t,4,8),V=z(t,4,8),D=x[x.length-1];x.push({x:n,y:D.y});let X=D.y,Z=n,J=me(X-M,8,X-1),jt=me(X+V,X+1,92),bi=`M ${Z} ${X} L ${Z} ${J}`,gi=`M ${Z} ${X} L ${Z} ${jt}`,Si=ii(x),Ye=Or(Si),vi=Ye.length>0?Ye[Ye.length-1].cumLen:0;return{main:Fr(x),wallRippleUp:bi,wallRippleDown:gi,mainPoints:Ye,totalLength:vi,wallX:Z,wallY:X,wallRippleUpEndY:J,wallRippleDownEndY:jt}}var he=class{static buildTraceForSpawnId(s){if(s<1)return{main:"M 0 0 L 0 0",wallRippleUp:"M 0 0 L 0 0",wallRippleDown:"M 0 0 L 0 0",mainPoints:[{x:0,y:0,cumLen:0}],totalLength:0,wallX:0,wallY:0,wallRippleUpEndY:0,wallRippleDownEndY:0};let e=$r(s,0),n={value:Pr(e)};return Vr(n)}static getPointAtDistance(s,e){if(s.length===0)return{x:0,y:0};if(e<=0)return{x:s[0].x,y:s[0].y};let n=s[s.length-1];if(e>=n.cumLen)return{x:n.x,y:n.y};let i=0,a=s.length-1;for(;a-i>1;){let E=Math.floor((i+a)/2);s[E].cumLen<=e?i=E:a=E}let p=s[i],x=s[a],g=x.cumLen-p.cumLen;if(g<1e-9)return{x:p.x,y:p.y};let T=(e-p.cumLen)/g;return{x:p.x+T*(x.x-p.x),y:p.y+T*(x.y-p.y)}}};function Br(t,s){t&1&&(o(0,"div",13),b(1,"app-ccap-error-display",17),r()),t&2&&(l(),_("error",s))}function zr(t,s){t&1&&c(0," Teszt\u2026 ")}function Hr(t,s){t&1&&c(0," Kapcsolat teszt ")}function qr(t,s){if(t&1&&(o(0,"div",18)(1,"div",20),c(2,"\u2713 Szerver el\xE9rhet\u0151"),r(),o(3,"div",21),c(4),r()()),t&2){let e=d();l(4),ae(" GET ",e.targetUrl," \u2014 ",e.durationMs,"ms ")}}function Wr(t,s){if(t&1&&(o(0,"div",19),b(1,"app-ccap-error-display",22),r()),t&2){let e=d();l(),_("error",e.errorForDisplay)}}function Gr(t,s){if(t&1&&h(0,qr,5,2,"div",18)(1,Wr,2,1,"div",19),t&2){let e=s;u(e.isSuccess?0:e.errorForDisplay?1:-1)}}function Yr(t,s){if(t&1){let e=I();o(0,"p",12),c(1),r(),h(2,Br,2,1,"div",13),o(3,"div",14)(4,"button",15),m("click",function(){C(e);let i=d(3);return f(i.handleTestConnection())}),h(5,zr,1,0)(6,Hr,1,0),r(),o(7,"button",16),m("click",function(){C(e);let i=d(3);return f(i.handleResetServerUrl())}),c(8," Szerver \xFAjrakonfigur\xE1l\xE1sa "),r()(),h(9,Gr,2,1)}if(t&2){let e,n,i=d(3);l(),w(" ",i.configuredServerUrl_$()," "),l(),u((e=i.bootStatusError_$())?2:-1,e),l(2),_("disabled",i.isTestingConnection_$()),l(),u(i.isTestingConnection_$()?5:6),l(4),u((n=i.diagnosticResult_$())?9:-1,n)}}function Kr(t,s){if(t&1){let e=I();o(0,"div",4)(1,"div",6),b(2,"span",7),o(3,"div",8)(4,"p",9),c(5,"Server unavailable"),r(),o(6,"p",10),c(7," Use the status control in the header to reconnect. "),r(),h(8,Yr,10,5),r(),o(9,"button",11),m("click",function(){C(e);let i=d(2);return f(i.handleToggleOverlaySubdued())}),c(10," Dim overlay "),r()()()}if(t&2){let e=d(2);l(8),u(e.isCapacitorNative_$()?8:-1)}}function Xr(t,s){if(t&1){let e=I();o(0,"button",23),m("click",function(){C(e);let i=d(2);return f(i.handleToggleOverlaySubdued())}),c(1," Full overlay "),r()}}function Zr(t,s){if(t&1&&(o(0,"div",0)(1,"div",1),b(2,"div",2)(3,"canvas",3),h(4,Kr,11,1,"div",4)(5,Xr,2,0,"button",5),r()()),t&2){let e=d();l(),O("ccap-server-unavailable-dim-stack--subdued",e.isOverlaySubdued_$())("ccap-circuit--reduced-motion",e.circuitReducedMotion_$()),l(),O("ccap-server-unavailable-scrim--subdued",e.isOverlaySubdued_$()),l(2),u(e.isOverlaySubdued_$()?5:4)}}var qe=100,Jr=96/2.54,vt=(()=>{class t{session_DS=y(Pe);_injector=y(Je);_hostRef=y(ve);isOverlaySubdued_$=S(!1);isCapacitorNative_$=S(typeof window.Capacitor<"u"&&window.Capacitor.isNativePlatform?.()===!0);showOverlay_$=v(()=>this.session_DS.socketStatus_$()===He.error);circuitTravelLanes_$=S([]);circuitReducedMotion_$=S(!1);_laneSeq=0;_lanes=[];_rafId=null;_lastRafApplyMs=null;_laneTeardownTimeouts=new Map;_canvasCtx=null;_canvasEl=null;_cachedDpr=1;_cachedCssW=1;_cachedCssH=1;_trailMaxUserUnits=50;handleToggleOverlaySubdued(){this.isOverlaySubdued_$.update(e=>!e)}isTestingConnection_$=S(!1);diagnosticResult_$=S(null);handleTestConnection(){return A(this,null,function*(){if(!this.isTestingConnection_$()){this.isTestingConnection_$.set(!0),this.diagnosticResult_$.set(null);try{let e=yield De.probeServer(B.baseUrl);this.diagnosticResult_$.set(e)}finally{this.isTestingConnection_$.set(!1)}}})}configuredServerUrl_$=S(B.baseUrl);bootStatusError_$=S(this.readBootStatusError());readBootStatusError(){let e=H.readJson("ccap-boot-status-error",null);if(e==null||typeof e!="object"||!("targetUrl"in e)||!("errorName"in e))return null;let n=e,i=typeof n.errorMessage=="string"?n.errorMessage:"",a=typeof n.errorName=="string"?n.errorName:"unknown";return{message:i?`Indul\xE1skor a szerver nem v\xE1laszolt (${a}): ${i}`:`Indul\xE1skor a szerver nem v\xE1laszolt (${a})`,errorCode:`CCAP-NET-BOOT-${a.toUpperCase()}`,additionalContent:n}}handleResetServerUrl(){H.remove("ccap-server-url"),this.reloadApplication()}reloadApplication(){window.location.reload()}constructor(){W(e=>{let n=globalThis.window;if(typeof n<"u"&&typeof n.matchMedia=="function"){let i=n.matchMedia("(prefers-reduced-motion: reduce)"),a=()=>{this.circuitReducedMotion_$.set(i.matches)};a(),i.addEventListener("change",a),e(()=>{i.removeEventListener("change",a)})}},{allowSignalWrites:!0}),W(e=>{if(!this.showOverlay_$()){this.stopAllAnimation(),this.isOverlaySubdued_$.set(!1);return}let i=globalThis.document,a=()=>{if(!i||!i.hidden){this._lanes.length>0&&this.ensureRafLoop();return}this.stopRafOnly()};i&&i.addEventListener("visibilitychange",a),this.spawnLane(),tt(()=>{this.showOverlay_$()&&(this.initCanvas(),this.ensureRafLoop())},{injector:this._injector});let x=setInterval(()=>{this.spawnLane()},1e3);e(()=>{i&&i.removeEventListener("visibilitychange",a),clearInterval(x),this.stopAllAnimation()})},{allowSignalWrites:!0}),W(e=>{if(!this.showOverlay_$())return;let i=()=>{this.handleResize()};globalThis.window.addEventListener("resize",i),e(()=>{globalThis.window.removeEventListener("resize",i)})},{allowSignalWrites:!0})}spawnLane(){if(!this.showOverlay_$()||globalThis.document?.hidden)return;this._laneSeq+=1;let n=this._laneSeq,i=`lane-${n}`,a=he.buildTraceForSpawnId(n),p={trackId:i,pathSeedId:n,main:a.main,points:a.mainPoints,totalLength:a.totalLength,wallX:a.wallX,wallY:a.wallY,wallRippleUpEndY:a.wallRippleUpEndY,wallRippleDownEndY:a.wallRippleDownEndY,startTimeMs:0,wallRippleActive:!1,didScheduleRippleAndTeardown:!1};this._lanes.push(p);let x=5;for(;this._lanes.length>x;){let g=this._lanes.shift();g&&this.clearLaneTeardownTimer(g.trackId)}this.circuitTravelLanes_$.set([...this._lanes]),this.ensureRafLoop()}enqueueLaneTeardown(e){if(this._laneTeardownTimeouts.has(e))return;let n=1420,i=setTimeout(()=>{this._laneTeardownTimeouts.delete(e),this.showOverlay_$()&&(this._lanes=this._lanes.filter(a=>a.trackId!==e),this.circuitTravelLanes_$.set([...this._lanes]))},n);this._laneTeardownTimeouts.set(e,i)}clearLaneTeardownTimer(e){let n=this._laneTeardownTimeouts.get(e);n!==void 0&&(clearTimeout(n),this._laneTeardownTimeouts.delete(e))}initCanvas(){let n=this._hostRef.nativeElement.querySelector("canvas");n&&(this._canvasEl=n,this._canvasCtx=n.getContext("2d"),this.handleResize())}handleResize(){let e=this._canvasEl;if(!e)return;let n=globalThis.devicePixelRatio||1,i=Math.max(e.clientWidth,1),a=Math.max(e.clientHeight,1);e.width=Math.round(i*n),e.height=Math.round(a*n),this._cachedDpr=n,this._cachedCssW=i,this._cachedCssH=a,this.updateTrailMaxUserUnits(Math.max(i,a))}updateTrailMaxUserUnits(e){let n=Math.max(e,1),i=37.5*Jr;this._trailMaxUserUnits=i/n*qe}ensureRafLoop(){if(this._rafId!==null||globalThis.document?.hidden)return;let n=i=>{if(globalThis.document?.hidden){this.stopRafOnly();return}if(!this.showOverlay_$()){this.stopRafOnly();return}if(this._lanes.length===0){this.stopRafOnly();return}if(this.circuitReducedMotion_$()){let g=33;if(this._lastRafApplyMs!==null&&i-this._lastRafApplyMs<g){this._rafId=requestAnimationFrame(n);return}}this._lastRafApplyMs=i;for(let g of this._lanes)g.startTimeMs===0&&(g.startTimeMs=i);for(let g of this._lanes){if(g.startTimeMs===0)continue;let T=i-g.startTimeMs;if(!g.didScheduleRippleAndTeardown){let E=1722;T>=E&&(g.wallRippleActive=!0,g.didScheduleRippleAndTeardown=!0,this.enqueueLaneTeardown(g.trackId))}}this.drawFrame(i);let p=2118;this._lanes.some(g=>g.startTimeMs===0?!1:i-g.startTimeMs<p)?this._rafId=requestAnimationFrame(n):this._rafId=null};this._rafId=requestAnimationFrame(n)}stopRafOnly(){this._rafId!==null&&(cancelAnimationFrame(this._rafId),this._rafId=null),this._lastRafApplyMs=null}stopAllAnimation(){this.stopRafOnly(),this._laneTeardownTimeouts.forEach(e=>{clearTimeout(e)}),this._laneTeardownTimeouts.clear(),this._lanes=[],this.circuitTravelLanes_$.set([]),this._laneSeq=0,this._canvasCtx=null,this._canvasEl=null}drawFrame(e){let n=this._canvasCtx;if(!n)return;let i=this._cachedDpr,a=this._cachedCssW,p=this._cachedCssH;n.setTransform(i,0,0,i,0,0),n.clearRect(0,0,a,p);let x=p>a,g,T;x?(n.translate(0,p),n.rotate(-Math.PI/2),g=p/qe,T=(a-qe*g)/2):(g=a/qe,T=(p-qe*g)/2),n.save(),this.isOverlaySubdued_$()&&(n.globalAlpha=.38);for(let E of this._lanes)E.startTimeMs!==0&&this.drawLane(n,E,e,g,T);n.restore()}drawLane(e,n,i,a,p){let x=i-n.startTimeMs,g=1650,T,E,M;if(x<g)E=!0,T=x/g*n.totalLength,M=1;else{E=!1,T=n.totalLength;let V=x-g;if(V<420){let D=V/420;M=Math.max(0,1-D*D)}else M=0}if(M>0&&n.points.length>=2){let V=this._trailMaxUserUnits*M,D=Math.max(0,T-V);this.drawTrail(e,n.points,D,T,a,p,M)}if(E){let V=he.getPointAtDistance(n.points,T);this.drawHead(e,V.x,V.y,a,p)}if(n.wallRippleActive){let V=g+72,D=x-V;D>=0&&D<=520&&this.drawWallRipple(e,n,D,a,p)}}drawTrail(e,n,i,a,p,x,g){if(a-i<.01||n.length<2)return;let T=he.getPointAtDistance(n,i),E=he.getPointAtDistance(n,a),M=T.x*p,V=T.y*p+x,D=E.x*p,X=E.y*p+x,Z=e.createLinearGradient(M,V,D,X);Z.addColorStop(0,"rgba(34, 211, 238, 0.1)"),Z.addColorStop(.48,"rgba(56, 189, 248, 0.52)"),Z.addColorStop(1,"rgba(165, 243, 252, 0.98)"),e.save(),e.globalAlpha=e.globalAlpha*g,e.strokeStyle=Z,e.lineWidth=.26*p,e.lineCap="butt",e.lineJoin="round",e.beginPath(),e.moveTo(M,V);for(let J=0;J<n.length;J++)if(!(n[J].cumLen<=i)){if(n[J].cumLen>=a)break;e.lineTo(n[J].x*p,n[J].y*p+x)}e.lineTo(D,X),e.stroke(),e.restore()}drawHead(e,n,i,a,p){let x=n*a,g=i*a+p,T=Math.max(.38*a,.5);e.save(),e.shadowBlur=Math.max(1.2*a,2),e.shadowColor="rgba(34, 211, 238, 0.7)";let E=e.createRadialGradient(x,g,0,x,g,T);E.addColorStop(0,"rgba(255, 255, 255, 1)"),E.addColorStop(.42,"rgba(186, 230, 254, 1)"),E.addColorStop(1,"rgba(56, 189, 248, 1)"),e.fillStyle=E,e.beginPath(),e.arc(x,g,T,0,Math.PI*2),e.fill(),e.restore()}drawWallRipple(e,n,i,a,p){let g=Math.min(i/520,1),T=1-(1-g)*(1-g),E;if(T<.1?E=T/.1*.85:T<.3?E=.85+(T-.1)/(.3-.1)*(.5-.85):E=.5*(1-(T-.3)/(1-.3)),E<.005)return;let M=n.wallX*a,V=n.wallY*a+p,D=n.wallRippleUpEndY*a+p,X=n.wallRippleDownEndY*a+p;e.save(),e.globalAlpha=e.globalAlpha*E,e.lineWidth=.36*a,e.lineCap="butt",e.shadowBlur=Math.max(.8*a,2),e.shadowColor="rgba(34, 211, 238, 0.6)";let Z=[{endY:D,color:"rgb(56, 189, 248)"},{endY:X,color:"rgb(34, 211, 238)"}];for(let J of Z)e.strokeStyle=J.color,e.beginPath(),e.moveTo(M,V),e.lineTo(M,V+(J.endY-V)*T),e.stroke();e.restore()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-server-unavailable-overlay"]],standalone:!0,features:[F],decls:1,vars:1,consts:[[1,"absolute","inset-0","flex","items-center","justify-center","pointer-events-none"],[1,"ccap-server-unavailable-dim-stack","absolute","inset-0","z-0","flex","flex-col","items-center","justify-center"],["aria-hidden","true",1,"ccap-server-unavailable-scrim","absolute","inset-0","z-0"],["aria-hidden","true",1,"ccap-circuit-canvas","absolute","inset-0","z-0","pointer-events-none"],["role","status","aria-live","polite",1,"relative","z-[2]","px-4","max-w-[min(520px,calc(100vw-2rem))]","w-full","flex","justify-center","isolation","isolate"],["type","button","aria-label","Toggle dimming of the server unavailable overlay",1,"ccap-server-unavailable-overlay-dim-toggle","ccap-server-unavailable-overlay-dim-toggle--subdued","pointer-events-auto","absolute","top-3","left-3","z-[2]","shrink-0","rounded-md","border","border-neonCyan/60","bg-neutral-900/85","px-3","py-1.5","text-xs","font-medium","text-neutral-200","shadow-md","hover:border-neonCyan","hover:bg-neutral-900","hover:text-neutral-50","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-neonCyan"],[1,"ccap-server-unavailable-status","pointer-events-auto","flex","flex-col","items-center","gap-4","rounded-xl","border","border-neonCyan/30","bg-neutral-950/86","px-6","py-5","shadow-xl","w-full","sm:w-auto","backdrop-blur-md"],["aria-hidden","true",1,"inline-block","w-10","h-10","shrink-0","animate-spin","rounded-full","border-2","border-neonCyan/50","border-t-neonCyan"],[1,"text-center","max-w-[min(480px,calc(100vw-4rem))]"],[1,"text-lg","font-semibold","text-neutral-100"],[1,"text-sm","text-neutral-400","mt-1"],["type","button","aria-label","Toggle dimming of the server unavailable overlay",1,"ccap-server-unavailable-overlay-dim-toggle","pointer-events-auto","shrink-0","rounded-md","border","border-neonCyan/60","bg-neutral-900/85","px-3","py-1.5","text-xs","font-medium","text-neutral-200","shadow-md","hover:border-neonCyan","hover:bg-neutral-900","hover:text-neutral-50","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-neonCyan","backdrop-blur-sm",3,"click"],[1,"text-[11px]","font-mono","text-neutral-500","mt-2","break-all"],[1,"mt-2","text-left","pointer-events-auto"],[1,"flex","flex-wrap","justify-center","gap-2","mt-3"],["type","button",1,"rounded-md","border","border-neonCyan/60","bg-neonCyan/15","px-3","py-1.5","text-xs","font-medium","text-neonCyan","hover:bg-neonCyan/25","transition-colors","pointer-events-auto","disabled:opacity-40","disabled:cursor-not-allowed",3,"click","disabled"],["type","button",1,"rounded-md","border","border-neonCyan/60","bg-neonCyan/15","px-3","py-1.5","text-xs","font-medium","text-neonCyan","hover:bg-neonCyan/25","transition-colors","pointer-events-auto",3,"click"],["sourceLabelOverride","Indul\xE1si szerver probe",3,"error"],[1,"mt-3","rounded-md","border","border-emerald-500/60","bg-emerald-500/10","px-3","py-2","text-[11px]","text-emerald-200","text-left","pointer-events-auto"],[1,"mt-3","text-left","pointer-events-auto"],[1,"font-semibold","mb-1"],[1,"font-mono","text-[10px]","text-neutral-400","break-all"],["sourceLabelOverride","Kapcsolat teszt",3,"error"],["type","button","aria-label","Toggle dimming of the server unavailable overlay",1,"ccap-server-unavailable-overlay-dim-toggle","ccap-server-unavailable-overlay-dim-toggle--subdued","pointer-events-auto","absolute","top-3","left-3","z-[2]","shrink-0","rounded-md","border","border-neonCyan/60","bg-neutral-900/85","px-3","py-1.5","text-xs","font-medium","text-neutral-200","shadow-md","hover:border-neonCyan","hover:bg-neutral-900","hover:text-neutral-50","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-neonCyan",3,"click"]],template:function(n,i){n&1&&h(0,Zr,6,7,"div",0),n&2&&u(i.showOverlay_$()?0:-1)},dependencies:[j,ie],styles:[`@charset "UTF-8";[_nghost-%COMP%]{display:block;position:fixed;inset:0;z-index:58;pointer-events:none}.ccap-server-unavailable-scrim[_ngcontent-%COMP%]{background-color:#0009;transition:background-color .3s ease-out}.ccap-server-unavailable-scrim.ccap-server-unavailable-scrim--subdued[_ngcontent-%COMP%]{background-color:#00000038}.ccap-circuit-canvas[_ngcontent-%COMP%]{width:100%;height:100%}.ccap-server-unavailable-dim-stack.ccap-circuit--reduced-motion[_ngcontent-%COMP%] .animate-spin[_ngcontent-%COMP%], .ccap-server-unavailable-dim-stack--subdued[_ngcontent-%COMP%] .animate-spin[_ngcontent-%COMP%]{animation:none}.ccap-server-unavailable-status--subdued[_ngcontent-%COMP%]{background-color:#0a0a0c9e;border-color:#22d3ee38;box-shadow:0 8px 28px #00000047}.ccap-server-unavailable-overlay-dim-toggle--subdued[_ngcontent-%COMP%]{background-color:#17171761;border-color:#22d3ee59;color:#f5f5f5d1}
2
+ /*# sourceMappingURL=ccap-server-unavailable-overlay.component-LXXXGPVJ.css.map */`],changeDetection:0})}return t})();function ta(t,s){if(t&1&&(o(0,"span",4),c(1),r()),t&2){let e=d();l(),w(" ",e.activeCount_$()," ")}}var na=8,ri=(()=>{class t{userInput_DS=y(G);activeCount_$=v(()=>0);isDraggingFab_$=S(!1);pointerDownClientX=0;pointerDownClientY=0;dragStartRightPx=0;dragStartBottomPx=0;dragStartClientX=0;dragStartClientY=0;isPointerDragging=!1;isPrimaryButtonDownOnFab=!1;suppressNextFabClick=!1;activePointerId=null;fabButtonElement=null;constructor(){tt(()=>{let e=this.getMainElement();e!==null&&this.userInput_DS.clampFabOffsetsToMain(e)})}handleFabClick(e){if(this.suppressNextFabClick){e.preventDefault(),e.stopPropagation(),this.suppressNextFabClick=!1;return}this.userInput_DS.togglePanel()}handleFabPointerDown(e){e.button===0&&(this.fabButtonElement=e.currentTarget instanceof HTMLElement?e.currentTarget:null,this.isPrimaryButtonDownOnFab=!0,this.pointerDownClientX=e.clientX,this.pointerDownClientY=e.clientY,this.isPointerDragging=!1)}handleFabPointerMove(e){if(this.isPointerDragging){this.applyFabPointerDragMove(e);return}if(!this.isPrimaryButtonDownOnFab||e.pointerType==="mouse"&&(e.buttons&1)!==1)return;let n=e.clientX-this.pointerDownClientX,i=e.clientY-this.pointerDownClientY;Math.hypot(n,i)>na&&this.beginFabPointerDrag(e),this.isPointerDragging&&this.applyFabPointerDragMove(e)}applyFabPointerDragMove(e){if(!this.isPointerDragging)return;let n=e.clientX-this.dragStartClientX,i=e.clientY-this.dragStartClientY,a=this.dragStartRightPx-n,p=this.dragStartBottomPx-i,x=this.getMainElement();x!==null&&this.userInput_DS.setFabOffsetsClampedToMain({mainEl:x,rightPx:a,bottomPx:p})}handleFabPointerUp(e){if(this.isPointerDragging){this.endFabPointerDrag(e);return}this.isPrimaryButtonDownOnFab=!1,this.fabButtonElement=null}handleFabPointerCancel(e){this.handleFabPointerUp(e)}beginFabPointerDrag(e){this.getMainElement()!==null&&(this.isPointerDragging=!0,this.isDraggingFab_$.set(!0),this.dragStartRightPx=this.userInput_DS.fabOffsetRightPx_$(),this.dragStartBottomPx=this.userInput_DS.fabOffsetBottomPx_$(),this.dragStartClientX=e.clientX,this.dragStartClientY=e.clientY,this.activePointerId=e.pointerId,this.fabButtonElement!==null&&this.fabButtonElement.setPointerCapture(e.pointerId))}endFabPointerDrag(e){let n=this.getMainElement();if(this.activePointerId!==null&&this.fabButtonElement!==null)try{this.fabButtonElement.releasePointerCapture(this.activePointerId)}catch{}this.activePointerId=null,this.isPointerDragging=!1,this.isDraggingFab_$.set(!1),this.suppressNextFabClick=!0,n!==null&&this.userInput_DS.finalizeFabDragPosition(n),this.isPrimaryButtonDownOnFab=!1,this.fabButtonElement=null}getMainElement(){return typeof document>"u"?null:document.querySelector("main")}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-user-input-fab"]],standalone:!0,features:[F],decls:5,vars:6,consts:[[1,"absolute","z-[10050]","pointer-events-auto"],["type","button","aria-label","Quick Input panel megnyit\xE1sa vagy bez\xE1r\xE1sa",1,"relative","w-12","h-12","flex","items-center","justify-center","rounded-full","bg-ccapAccent","text-neutral-900","shadow-lg","hover:bg-ccapAccent/80","hover:shadow-xl","transition-all","duration-200","focus:outline-none","focus:ring-2","focus:ring-ccapAccent/50","touch-none",3,"click","pointerdown","pointermove","pointerup","pointercancel","title"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-6","h-6","pointer-events-none"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"],[1,"absolute","-top-1","-right-1","w-5","h-5","flex","items-center","justify-center","rounded-full","bg-neonCyan","text-neutral-900","text-xs","font-bold","animate-pulse","pointer-events-none"]],template:function(n,i){n&1&&(o(0,"div",0)(1,"button",1),m("click",function(p){return i.handleFabClick(p)})("pointerdown",function(p){return i.handleFabPointerDown(p)})("pointermove",function(p){return i.handleFabPointerMove(p)})("pointerup",function(p){return i.handleFabPointerUp(p)})("pointercancel",function(p){return i.handleFabPointerCancel(p)}),k(),o(2,"svg",2),b(3,"path",3),r(),h(4,ta,2,1,"span",4),r()()),n&2&&(nt("right",i.userInput_DS.fabOffsetRightPx_$(),"px")("bottom",i.userInput_DS.fabOffsetBottomPx_$(),"px"),l(),_("title",i.userInput_DS.isPanelOpen_$()?"Quick Input panel bez\xE1r\xE1sa":"Quick Input megnyit\xE1sa; h\xFAz\xE1s: mozd\xEDtsd el a gombot lenyomva"),l(3),u(i.activeCount_$()>0?4:-1))},styles:[`[_nghost-%COMP%]{display:contents}
3
+ /*# sourceMappingURL=uin-fab.component-2M3EWEJ5.css.map */`]})}return t})();var yt="__ccap-quick-input-area-custom__";var We=function(t){return t.alignPanelRightEdgeToFabRight="align-panel-right-edge-to-fab-right",t.openPanelToRightOfFab="open-panel-to-right-of-fab",t}(We||{});var Ge=function(t){return t.panelAboveFab="panel-above-fab",t.panelBelowFab="panel-below-fab",t}(Ge||{});var ai=(()=>{class t{static resolveHorizontalAnchorType(e){let n=e.mainWidthPx,i=ze.fabSizePx;return n-e.fabOffsetRightPx-i+i/2<n/2?We.openPanelToRightOfFab:We.alignPanelRightEdgeToFabRight}static resolveVerticalAnchorType(e){let n=e.mainHeightPx,i=ze.fabSizePx;return n-e.fabOffsetBottomPx-i+i/2<n/2?Ge.panelBelowFab:Ge.panelAboveFab}static panelEdgeMarginPx=8;static buildPanelOverlayStyles(e){let n=e.mainWidthPx,i=e.mainHeightPx,a=ze.fabSizePx,p=ze.fabPanelGapPx,x=e.fabOffsetRightPx,g=e.fabOffsetBottomPx,T=t.panelEdgeMarginPx;if(n<=0||i<=0){let D={bottom:`${g+a+p}px`,top:`${T}px`};return e.isMobileXs||(D.right=`${x}px`,D.left="auto"),D}let E=t.resolveVerticalAnchorType({mainHeightPx:i,fabOffsetBottomPx:g}),M={};if(E===Ge.panelBelowFab){let D=i-g-a;M.top=`${D+a+p}px`,M.bottom=`${T}px`}else M.bottom=`${g+a+p}px`,M.top=`${T}px`;if(e.isMobileXs)return M;if(t.resolveHorizontalAnchorType({mainWidthPx:n,fabOffsetRightPx:x})===We.openPanelToRightOfFab){let D=n-x-a;M.left=`${D+a+p}px`,M.right="auto"}else M.right=`${x}px`,M.left="auto";return M}}return t})();var oa=["quickInputListScrollContainer"],ra=["quickInputListAnchor"],aa=(t,s)=>s._id,sa=(t,s)=>s.areaValue,la=(t,s)=>s.quickInputId,ca=(t,s)=>s.path,da=(t,s)=>s.sessionId,pa=(t,s,e)=>({"border-neonCyan/50 text-neonCyan/90 hover:bg-neonCyan/10":t,"border-amber-500/70 text-amber-300 hover:bg-amber-500/10":s,"border-neutral-700 text-neutral-500":e}),ua=(t,s)=>({"border-neutral-600 bg-neutral-800/80 text-neutral-300 hover:border-neutral-500 hover:bg-neutral-800":t,"border-neonCyan bg-neonCyan/15 text-neonCyan ring-1 ring-inset ring-neonCyan/35":s});function _a(t,s){t&1&&b(0,"span",27)}function ma(t,s){t&1&&(k(),o(0,"svg",28),b(1,"path",29),r())}function Ca(t,s){if(t&1&&(h(0,ma,2,0,":svg:svg",28),c(1)),t&2){let e=d(2);u(e.sendAllWarningActive_$()?0:-1),l(),w(" Send All (",e.activeQuickInputCount_$(),") ")}}function fa(t,s){if(t&1){let e=I();o(0,"button",26),m("click",function(){C(e);let i=d();return f(i.handleOpenSendAllConfirm())}),h(1,_a,1,0,"span",27)(2,Ca,2,2),r()}if(t&2){let e=d();_("ngClass",Xt(4,pa,!e.sendAllDisabled_$()&&!e.sendAllWarningActive_$(),!e.sendAllDisabled_$()&&e.sendAllWarningActive_$(),e.sendAllDisabled_$()))("disabled",e.sendAllDisabled_$())("title",e.sendAllButtonTitle_$()),l(),u(e.userInput_DS.sendAllToCcSessionBusy_$()?1:2)}}function ha(t,s){t&1&&(o(0,"option",33),c(1,"V\xE1lassz projektet..."),r())}function xa(t,s){if(t&1&&(o(0,"option",34),c(1),r()),t&2){let e=s.$implicit;_("value",e._id),l(),$(e.name)}}function ba(t,s){if(t&1){let e=I();o(0,"label",38)(1,"input",41),m("ngModelChange",function(i){C(e);let a=d(3);return f(a.handleAreaAutofollowChange(i))}),r()()}if(t&2){let e=d(3);l(),_("ngModel",e.userInput_DS.quickInputAreaAutofollow_$())}}function ga(t,s){if(t&1&&(o(0,"span",44),c(1),r(),o(2,"span",45),c(3),r()),t&2){let e=d(4);l(),$(e.userInput_DS.quickInputComposerArea_$()),l(2),w("(",e.autofollowAreaDisplayLabel_$(),")")}}function Sa(t,s){t&1&&(o(0,"span",43),c(1,"\u2014 nincs route area \u2014"),r())}function va(t,s){if(t&1&&(o(0,"div",39)(1,"span",42),c(2,"Area"),r(),h(3,ga,4,2)(4,Sa,2,0,"span",43),r()),t&2){let e=d(3);l(3),u(e.userInput_DS.quickInputComposerArea_$().trim().length?3:4)}}function ya(t,s){if(t&1&&(o(0,"option",34),c(1),r()),t&2){let e=s.$implicit;_("value",e.areaValue),l(),$(e.displayLabel)}}function ka(t,s){if(t&1){let e=I();o(0,"select",46),m("ngModelChange",function(i){C(e);let a=d(3);return f(a.handleAreaSelectChange(i))}),o(1,"option",47),c(2,"\u2014 Nincs area \u2014"),r(),L(3,ya,2,2,"option",34,sa),o(5,"option",34),c(6,"Egy\xE9ni\u2026"),r()()}if(t&2){let e=d(3);_("ngModel",e.areaSelectBoundValue_$()),l(3),N(e.quickInputAreaCatalogOptions),l(2),_("value",e.customAreaSelectValue)}}function Ia(t,s){if(t&1&&(o(0,"div",35)(1,"div",37),h(2,ba,2,1,"label",38)(3,va,5,1,"div",39)(4,ka,7,2,"select",40),r()()),t&2){let e=d(2);l(2),u(-1),l(),u(e.userInput_DS.quickInputAreaAutofollow_$()?3:4)}}function Ta(t,s){if(t&1){let e=I();o(0,"input",48),m("ngModelChange",function(i){C(e);let a=d(2);return f(a.handleCustomAreaInputChange(i))}),r()}if(t&2){let e=d(2);_("ngModel",e.userInput_DS.quickInputComposerArea_$())}}function wa(t,s){if(t&1){let e=I();o(0,"div",49)(1,"button",55),m("click",function(){C(e);let i=d(3);return f(i.handleDomPickToggleClick())}),c(2," Elem.track "),r()()}if(t&2){let e=d(3);l(),_("ngClass",st(2,ua,!e.userInput_DS.quickInputDomPickActive_$(),e.userInput_DS.quickInputDomPickActive_$())),q("aria-pressed",e.userInput_DS.quickInputDomPickActive_$())}}function Ea(t,s){if(t&1){let e=I();o(0,"span",56)(1,"span",57),c(2),r(),o(3,"button",58),m("click",function(){let i=C(e).$index,a=d(4);return f(a.handleComposerElementRemoveAt(i))}),k(),o(4,"svg",59),b(5,"path",13),r()()()}if(t&2){let e=s.$implicit;l(2),$(e)}}function Aa(t,s){if(t&1&&(o(0,"div",54),L(1,Ea,6,1,"span",56,it),r()),t&2){let e=d(3);l(),N(e.userInput_DS.quickInputComposerElements_$())}}function $a(t,s){if(t&1){let e=I();h(0,wa,3,5,"div",49),o(1,"div",50)(2,"div",37)(3,"span",51),c(4," Elem. "),r(),o(5,"input",52),m("ngModelChange",function(i){C(e);let a=d(2);return f(a.newComposerElementId_$.set(i))})("keydown.enter",function(i){return C(e),d(2).handleComposerElementSubmitFromField(),f(i.preventDefault())}),r(),o(6,"button",53),m("click",function(){C(e);let i=d(2);return f(i.handleComposerElementSubmitFromField())}),c(7," + "),r()()(),h(8,Aa,3,0,"div",54)}if(t&2){let e=d(2);u(-1),l(5),_("ngModel",e.newComposerElementId_$()),l(3),u(e.userInput_DS.quickInputComposerElements_$().length>0?8:-1)}}function Pa(t,s){if(t&1){let e=I();o(0,"div",30)(1,"input",60),m("ngModelChange",function(i){C(e);let a=d(2);return f(a.handleQuickInputListSearchQueryChange(i))}),r()()}if(t&2){let e=d(2);l(),_("ngModel",e.quickInputListSearchQuery_$())}}function Ma(t,s){if(t&1){let e=I();o(0,"div",30)(1,"div",31)(2,"select",32),m("ngModelChange",function(i){C(e);let a=d();return f(a.handleProjectChange(i))}),h(3,ha,2,0,"option",33),o(4,"option",34),c(5,"Mind"),r(),L(6,xa,2,2,"option",34,aa),r(),h(8,Ia,5,2,"div",35),r(),h(9,Ta,1,1,"input",36)(10,$a,9,3),r(),h(11,Pa,2,1,"div",30)}if(t&2){let e=d();l(2),_("ngModel",e.userInput_DS.selectedProjectId_$()),l(),u(e.userInput_DS.selectedProjectId_$()?-1:3),l(),_("value",e.allProjectsFilterValue),l(2),N(e.userInput_DS.projects_$()),l(2),u(e.userInput_DS.selectedProjectIsCcapRevisionedHost_$()?8:-1),l(),u(e.userInput_DS.selectedProjectIsCcapRevisionedHost_$()&&!e.userInput_DS.quickInputAreaAutofollow_$()&&e.areaSelectBoundValue_$()===e.customAreaSelectValue?9:-1),l(),u(e.userInput_DS.selectedProjectIsCcapRevisionedHost_$()?10:-1),l(),u(e.userInput_DS.selectedProjectId_$()&&!e.userInput_DS.isLoading_$()&&e.userInput_DS.inputs_$().length>0?11:-1)}}function Da(t,s){t&1&&(o(0,"div",15)(1,"p"),c(2,"V\xE1lassz egy projektet a fenti list\xE1b\xF3l."),r()())}function Ra(t,s){t&1&&(o(0,"div",16),b(1,"span",61),c(2," Bet\xF6lt\xE9s... "),r())}function Fa(t,s){t&1&&(o(0,"div",15)(1,"p"),c(2,"M\xE9g nincs Quick Input ehhez a projekthez."),r(),o(3,"p",62),c(4,"\xCDrj egy jegyzetet lent \u2014 kattint\xE1sra megny\xEDlnak az akci\xF3k (modal)."),r()())}function Oa(t,s){t&1&&(o(0,"div",15)(1,"p"),c(2,"Nincs tal\xE1lat erre a sz\u0171r\u0151re."),r(),o(3,"p",62),c(4,"M\xF3dos\xEDtsd a keres\u0151sz\xF6veget vagy t\xF6r\xF6ld a mez\u0151t."),r()())}function Va(t,s){if(t&1&&(o(0,"span",70),c(1),r()),t&2){let e=d().$implicit;l(),w(" ",e.projectName," ")}}function Ua(t,s){t&1&&c(0," USER-INPUT ")}function La(t,s){t&1&&c(0," BUG ")}function Na(t,s){t&1&&c(0," discarded ")}function ja(t,s){if(t&1&&(o(0,"span",71),h(1,Ua,1,0)(2,La,1,0)(3,Na,1,0),r()),t&2){let e,n=d().$implicit,i=d(2);l(),u((e=n.status)===i.QiStatus.promotedUserInput?1:e===i.QiStatus.promotedBug?2:e===i.QiStatus.discarded?3:-1)}}function Qa(t,s){t&1&&c(0," pri: low ")}function Ba(t,s){t&1&&c(0," pri: medium ")}function za(t,s){t&1&&c(0," pri: high ")}function Ha(t,s){t&1&&c(0," pri: urgent ")}function qa(t,s){if(t&1&&(o(0,"span",72),h(1,Qa,1,0)(2,Ba,1,0)(3,za,1,0)(4,Ha,1,0),r()),t&2){let e,n=d().$implicit,i=d(2);l(),u((e=n.priority)===i.QiPriority.low?1:e===i.QiPriority.medium?2:e===i.QiPriority.high?3:e===i.QiPriority.urgent?4:-1)}}function Wa(t,s){t&1&&c(0," pred: user-input ")}function Ga(t,s){t&1&&c(0," pred: bug ")}function Ya(t,s){t&1&&c(0," pred: ? ")}function Ka(t,s){if(t&1&&(o(0,"span",73),h(1,Wa,1,0)(2,Ga,1,0)(3,Ya,1,0),r()),t&2){let e,n=d().$implicit,i=d(2);l(),u((e=n.predictedType)===i.QiPredType.userInput?1:e===i.QiPredType.bugReport?2:e===i.QiPredType.unspecified?3:-1)}}function Xa(t,s){if(t&1&&(o(0,"p",74),c(1),r()),t&2){let e=d().$implicit;l(),$(e.predictedCleanDescription)}}function Za(t,s){if(t&1){let e=I();o(0,"button",64),m("click",function(){let i=C(e).$implicit,a=d(2);return f(a.handleOpenActionsModal(i.quickInputId))}),b(1,"span",65),o(2,"div",66)(3,"p",67),c(4),r(),o(5,"div",68)(6,"p",69),ke(7,"date"),c(8),ke(9,"ccapRelativeTime"),r(),h(10,Va,2,1,"span",70)(11,ja,4,1,"span",71)(12,qa,5,1,"span",72)(13,Ka,4,1,"span",73),r(),h(14,Xa,2,1,"p",74),r()()}if(t&2){let e=s.$implicit,n=d(2);l(3),_("title",e.rawContent),l(),$(e.rawContent),l(2),_("title",je(7,9,e.createdAt,"yyyy.MM.dd HH:mm")),l(2),$(Zt(9,12,e.createdAt)),l(2),u(e.projectName?10:-1),l(),u(e.status!==n.QiStatus.draft?11:-1),l(),u(e.priority?12:-1),l(),u(e.predictedType?13:-1),l(),u(e.predictedCleanDescription?14:-1)}}function Ja(t,s){if(t&1&&(o(0,"div",17),L(1,Za,15,14,"button",63,la),b(3,"div",null,1),r()),t&2){let e=d();l(),N(e.filteredQuickInputs_$())}}function es(t,s){if(t&1&&(o(0,"option",34),c(1),r()),t&2){let e=s.$implicit;_("value",e.path),l(),ae("",e.label," \u2014 ",e.path,"")}}function ts(t,s){if(t&1){let e=I();o(0,"input",89),m("ngModelChange",function(i){C(e);let a=d(2);return f(a.sendAllSessionName_$.set(i))}),r(),o(1,"select",90),m("ngModelChange",function(i){C(e);let a=d(2);return f(a.handleSendAllWorkspacePathChange(i))}),L(2,es,2,3,"option",34,ca),r()}if(t&2){let e=d(2);_("ngModel",e.sendAllSessionName_$()),l(),_("ngModel",e.sendAllWorkspacePath_$()),l(),N(e.newAgentSessionWorkspace_DS.workspacePathPickerOptions_$())}}function ns(t,s){if(t&1&&(o(0,"option",34),c(1),r()),t&2){let e=s.$implicit;_("value",e.sessionId),l(),ae(" ",e.label||e.sessionId," \u2014 ",e.status," ")}}function is(t,s){t&1&&(o(0,"p",92),c(1,"Nincs el\xE9rhet\u0151 session."),r())}function os(t,s){if(t&1){let e=I();o(0,"select",91),m("ngModelChange",function(i){C(e);let a=d(2);return f(a.sendAllExistingSessionId_$.set(i))}),o(1,"option",33),c(2,"V\xE1lassz session-t..."),r(),L(3,ns,2,3,"option",34,da),r(),h(5,is,2,0,"p",92)}if(t&2){let e=d(2);_("ngModel",e.sendAllExistingSessionId_$()),l(3),N(e.sendAllActiveSessions_$()),l(2),u(e.sendAllActiveSessions_$().length===0?5:-1)}}function rs(t,s){t&1&&(b(0,"span",93),c(1," K\xFCld\xE9s... "))}function as(t,s){t&1&&c(0," Send All ")}function ss(t,s){if(t&1){let e=I();o(0,"app-s-modal",75),m("closed",function(){C(e);let i=d();return f(i.handleSendAllConfirmClosed())}),o(1,"div",76)(2,"p",77),c(3),r(),o(4,"fieldset",78)(5,"legend",79),c(6,"Session"),r(),o(7,"label",80)(8,"input",81),m("change",function(){C(e);let i=d();return f(i.handleSendAllTargetChange("new"))}),r(),c(9," \xDAj session "),r(),h(10,ts,4,2),o(11,"label",80)(12,"input",82),m("change",function(){C(e);let i=d();return f(i.handleSendAllTargetChange("existing"))}),r(),c(13," Megl\xE9v\u0151 session "),r(),h(14,os,6,2),r(),o(15,"div",83)(16,"label",84),c(17,"Prompt"),r(),o(18,"textarea",85),m("ngModelChange",function(i){C(e);let a=d();return f(a.sendAllPromptContent_$.set(i))}),r()(),o(19,"div",86)(20,"button",87),m("click",function(){C(e);let i=d();return f(i.handleSendAllConfirmClosed())}),c(21," M\xE9gse "),r(),o(22,"button",88),m("click",function(){C(e);let i=d();return f(i.handleConfirmSendAll())}),h(23,rs,2,0)(24,as,1,0),r()()()()}if(t&2){let e=d();_("isOpen",e.sendAllConfirmOpen_$())("title","Send All to CC Session")("maxWidth","3xl")("zIndex","10060"),l(3),w(" ",e.userInput_DS.inputs_$().length," Quick Input elem ker\xFCl elk\xFCld\xE9sre. Sikeres k\xFCld\xE9s ut\xE1n az elemek archiv\xE1l\xF3dnak. "),l(5),_("checked",e.sendAllTarget_$()==="new"),l(2),u(e.sendAllTarget_$()==="new"?10:-1),l(2),_("checked",e.sendAllTarget_$()==="existing"),l(2),u(e.sendAllTarget_$()==="existing"?14:-1),l(4),_("ngModel",e.sendAllPromptContent_$()),l(2),_("disabled",e.userInput_DS.sendAllToCcSessionBusy_$()),l(2),_("disabled",e.sendAllSubmitDisabled_$()),l(),u(e.userInput_DS.sendAllToCcSessionBusy_$()?23:24)}}var si="ccap-qi-bulk-send-workspace",li="ccap-qi-header-collapsed",kt=(()=>{class t{userInput_DS=y(G);ccSession_DS=y(Me);newAgentSessionWorkspace_DS=y(xt);globalError_CS=y(ne);layoutBreakpoint_CS=y(ht);QiStatus=fe;QiPredType=mt;QiPriority=_e;composerPlaceholder=fn;allProjectsFilterValue=hn;quickInputAreaCatalogOptions=Pt.catalogOptionsForDisplay();customAreaSelectValue=yt;areaSelectBoundValue_$=v(()=>{let e=this.userInput_DS.quickInputComposerArea_$().trim();return e.length?this.quickInputAreaCatalogOptions.some(i=>i.areaValue===e)?e:yt:""});autofollowAreaDisplayLabel_$=v(()=>Pt.getDisplayLabelForAreaValue({areaValue:this.userInput_DS.quickInputComposerArea_$()}));panelOverlayStyle_$=v(()=>{let e=this.userInput_DS.quickInputMainBoundsPx_$(),n=ai.buildPanelOverlayStyles({mainWidthPx:e.widthPx,mainHeightPx:e.heightPx,fabOffsetRightPx:this.userInput_DS.fabOffsetRightPx_$(),fabOffsetBottomPx:this.userInput_DS.fabOffsetBottomPx_$(),isMobileXs:this.layoutBreakpoint_CS.isMobile_$()});return Y({display:"grid","grid-template-rows":"auto 1fr auto",overflow:"hidden"},n)});newInputText_$=S("");newComposerElementId_$=S("");quickInputListSearchQuery_$=S("");headerControlsCollapsed_$=S(t.readQiHeaderCollapsed());filteredQuickInputs_$=v(()=>{let e=this.userInput_DS.inputs_$(),n=this.quickInputListSearchQuery_$().trim().toLowerCase();return(n.length===0?[...e]:e.filter(a=>t.quickInputItemMatchesNormalizedQuery(a,n))).reverse()});quickInputListScrollContainerRef=null;quickInputListAnchorRef=null;isQuickInputListAtBottom=!0;quickInputListPrevLength=0;constructor(){W(()=>{let e=this.userInput_DS.isPanelOpen_$(),n=this.userInput_DS.selectedProjectId_$();if(!e)return;let i=we.loadPayload(n);this.newInputText_$.set(i.text),this.userInput_DS.selectedProjectIsCcapRevisionedHost_$()?(this.userInput_DS.setQuickInputComposerElementsForUser(i.elements),this.userInput_DS.quickInputAreaAutofollow_$()?this.userInput_DS.syncComposerAreaFromCurrentNavigation():this.userInput_DS.applyComposerAreaFromDraftWhenManual(i.area)):this.userInput_DS.setQuickInputComposerElementsForUser([])},{allowSignalWrites:!0}),W(()=>{this.userInput_DS.quickInputComposerDraftPersistBump_$()!==0&&this.userInput_DS.isPanelOpen_$()&&this.persistQuickInputComposerDraft()},{allowSignalWrites:!0}),W(()=>{let e=this.filteredQuickInputs_$(),n=this.quickInputListPrevLength;this.quickInputListPrevLength=e.length,e.length>n&&this.isQuickInputListAtBottom&&setTimeout(()=>{this.quickInputListAnchorRef?.nativeElement?.scrollIntoView({behavior:"instant"})},0)})}handleQuickInputListScroll(){let e=this.quickInputListScrollContainerRef?.nativeElement;if(!e)return;let n=e.scrollHeight-e.scrollTop-e.clientHeight;this.isQuickInputListAtBottom=n<=50}handleDomPickToggleClick(){let e=!this.userInput_DS.quickInputDomPickActive_$();this.userInput_DS.setQuickInputDomPickActive(e)}handleComposerTextChange(e){this.newInputText_$.set(e),this.persistQuickInputComposerDraft()}persistQuickInputComposerDraft(){let e=this.userInput_DS.selectedProjectId_$(),n=this.newInputText_$();if(this.userInput_DS.selectedProjectIsCcapRevisionedHost_$()){let i=[...this.userInput_DS.quickInputComposerElements_$()];if(this.userInput_DS.quickInputAreaAutofollow_$()){we.save(e,n,{elements:i});return}we.save(e,n,{area:this.userInput_DS.quickInputComposerArea_$(),elements:i});return}we.save(e,n)}handleComposerElementAdd(e){this.userInput_DS.appendQuickInputComposerElement(e),this.persistQuickInputComposerDraft()}handleComposerElementRemoveAt(e){this.userInput_DS.removeQuickInputComposerElementAt(e),this.persistQuickInputComposerDraft()}handleComposerElementSubmitFromField(){let e=this.newComposerElementId_$().trim();e.length&&(this.handleComposerElementAdd(e),this.newComposerElementId_$.set(""))}ngOnInit(){this.userInput_DS.drainOfflineQueue()}handleSubmitInput(){return A(this,null,function*(){let e=this.newInputText_$();if(!e.trim())return;let n=this.userInput_DS.selectedProjectId_$();(yield this.userInput_DS.submitInput(e)).ok&&(we.clear(n),this.newInputText_$.set(""))})}handleKeydown(e){e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),this.handleSubmitInput())}handleVoiceTranscript(e){let n=e?.trim()??"";n.length&&(this.newInputText_$.update(i=>i?`${i}
4
+ ${n}`:n),this.persistQuickInputComposerDraft())}handleProjectChange(e){this.quickInputListSearchQuery_$.set(""),this.userInput_DS.setProject(e)}handleQuickInputListSearchQueryChange(e){this.quickInputListSearchQuery_$.set(e)}handleHeaderCollapseToggle(){let e=!this.headerControlsCollapsed_$();this.headerControlsCollapsed_$.set(e),t.persistQiHeaderCollapsed(e)}static quickInputItemMatchesNormalizedQuery(e,n){if(String(e.rawContent??"").toLowerCase().includes(n)||String(e.predictedCleanDescription??"").toLowerCase().includes(n)||String(e.area??"").toLowerCase().includes(n))return!0;let x=e.elements;if(!x?.length)return!1;for(let g of x)if(String(g??"").toLowerCase().includes(n))return!0;return!1}handleAreaSelectChange(e){if(e===""){this.userInput_DS.setQuickInputComposerAreaValueForUser(""),this.persistQuickInputComposerDraft();return}if(e===yt){this.persistQuickInputComposerDraft();return}this.userInput_DS.setQuickInputComposerAreaValueForUser(e),this.persistQuickInputComposerDraft()}handleCustomAreaInputChange(e){this.userInput_DS.setQuickInputComposerAreaValueForUser(e),this.persistQuickInputComposerDraft()}handleAreaAutofollowChange(e){this.userInput_DS.setQuickInputAreaAutofollow(e),this.persistQuickInputComposerDraft()}handleOpenActionsModal(e){this.userInput_DS.openQuickInputActionsModal(e)}sendAllConfirmOpen_$=S(!1);sendAllTarget_$=S("new");sendAllExistingSessionId_$=S("");sendAllSessionName_$=S("");sendAllWorkspacePath_$=S("");sendAllPromptContent_$=S("");sendAllActiveSessions_$=v(()=>this.ccSession_DS.sessions_$().filter(e=>!e.isArchived));sendAllDisabled_$=v(()=>this.userInput_DS.sendAllToCcSessionBusy_$()?!0:this.userInput_DS.inputs_$().length===0);sendAllWarningThreshold=20;activeQuickInputCount_$=v(()=>this.userInput_DS.inputs_$().length);sendAllWarningActive_$=v(()=>this.activeQuickInputCount_$()>=this.sendAllWarningThreshold);sendAllButtonTitle_$=v(()=>{let e=this.activeQuickInputCount_$();return this.sendAllWarningActive_$()?`${e} akt\xEDv Quick Input \u2014 itt az ideje feldolgozni ezeket. Send All: \xF6sszes egy \xFAj CC Session-be, majd archiv\xE1l\xE1s.`:`${e} akt\xEDv Quick Input. Send All: \xF6sszes egy \xFAj CC Session-be, majd archiv\xE1l\xE1s.`});newInputSendButtonTitle_$=v(()=>this.userInput_DS.selectedProjectId_$()===this.allProjectsFilterValue?'Disabled \u2014 V\xE1lassz egy konkr\xE9t projektet a fenti list\xE1b\xF3l (jelenleg "All projects" sz\u0171r\u0151 akt\xEDv).':this.userInput_DS.projects_$().length?this.newInputText_$().trim()?this.userInput_DS.isSending_$()?"Disabled \u2014 Egy kor\xE1bbi ment\xE9s m\xE9g folyamatban van, v\xE1rj egy pillanatot.":"Quick Input ment\xE9s staging-k\xE9nt":"Disabled \u2014 \xCDrj be Quick Input sz\xF6veget a ment\xE9shez.":"Disabled \u2014 Nincs el\xE9rhet\u0151 projekt. Hozz l\xE9tre projektet a Project Management oldalon.");sendAllSubmitDisabled_$=v(()=>!!(this.userInput_DS.sendAllToCcSessionBusy_$()||!this.sendAllPromptContent_$().trim()||this.sendAllTarget_$()==="existing"&&!this.sendAllExistingSessionId_$()));handleOpenSendAllConfirm(){if(this.sendAllDisabled_$())return;let e=this.userInput_DS.inputs_$();this.sendAllTarget_$.set("new"),this.sendAllExistingSessionId_$.set(""),this.sendAllSessionName_$.set(`QI Bulk Import (${e.length} items)`),this.sendAllWorkspacePath_$.set(t.readQiBulkSendWorkspace()),this.sendAllPromptContent_$.set(G.buildSendAllMessageContent(e)),this.ccSession_DS.loadSessions({includeArchived:!1}),this.newAgentSessionWorkspace_DS.refreshWorkspacePathPickerOptions().then(()=>{let n=this.newAgentSessionWorkspace_DS.workspacePathPickerOptions_$();if(n.length===0)return;let i=this.sendAllWorkspacePath_$();i!==""&&n.some(p=>p.path===i)||this.sendAllWorkspacePath_$.set(n[0].path)}),this.sendAllConfirmOpen_$.set(!0)}handleSendAllConfirmClosed(){this.userInput_DS.sendAllToCcSessionBusy_$()||this.sendAllConfirmOpen_$.set(!1)}handleSendAllTargetChange(e){this.sendAllTarget_$.set(e)}handleSendAllWorkspacePathChange(e){this.sendAllWorkspacePath_$.set(e),t.persistQiBulkSendWorkspace(e)}handleConfirmSendAll(){return A(this,null,function*(){let e=this.userInput_DS.inputs_$();if(e.length){this.userInput_DS.sendAllToCcSessionBusy_$.set(!0);try{let n;if(this.sendAllTarget_$()==="new"){if(n=yield this.ccSession_DS.createSession({workspacePath:this.sendAllWorkspacePath_$(),label:this.sendAllSessionName_$()}),!n){this.globalError_CS.showError(new Error("Failed to create CC Session for Quick Input bulk send"),"ccap-quick-input-send-all-create");return}}else n=this.sendAllExistingSessionId_$();let i=this.sendAllPromptContent_$();yield this.ccSession_DS.sendPrompt({sessionId:n,content:i});let a=e.map(p=>p.quickInputId);yield this.userInput_DS.bulkArchiveQuickInputs(a),this.sendAllConfirmOpen_$.set(!1)}catch(n){this.globalError_CS.showError(n,"ccap-quick-input-send-all")}finally{this.userInput_DS.sendAllToCcSessionBusy_$.set(!1)}}})}handleClose(){this.userInput_DS.closePanel()}static readQiBulkSendWorkspace(){return H.readString(si)??""}static persistQiBulkSendWorkspace(e){H.writeString(si,e)}static readQiHeaderCollapsed(){return H.readString(li)==="true"}static persistQiHeaderCollapsed(e){H.writeString(li,e?"true":"false")}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-user-input-panel"]],viewQuery:function(n,i){if(n&1&&(Ue(oa,5),Ue(ra,5)),n&2){let a;Le(a=Ne())&&(i.quickInputListScrollContainerRef=a.first),Le(a=Ne())&&(i.quickInputListAnchorRef=a.first)}},standalone:!0,features:[F],decls:30,vars:14,consts:[["quickInputListScrollContainer",""],["quickInputListAnchor",""],[1,"absolute","z-[10050]","pointer-events-auto","rounded-lg","border-2","border-neonDefault","bg-neutral-900","shadow-xl","left-3","right-3","w-auto","max-w-none","gt-xs:left-auto","gt-xs:w-[min(42rem,calc(100vw-5rem))]","gt-xs:max-w-[42rem]",3,"ngStyle"],[1,"border-b","border-neonDefault"],[1,"flex","items-center","justify-between","px-3","py-2","gap-2"],[1,"text-sm","font-semibold","text-neutral-100","truncate"],[1,"flex","items-center","gap-1","shrink-0"],["type","button","aria-label","Send All to CC Session",1,"rounded","px-2","py-1","text-[11px]","font-semibold","uppercase","tracking-wide","border","transition-colors","duration-150","flex","items-center","gap-1.5","disabled:opacity-40","disabled:cursor-not-allowed",3,"ngClass","disabled","title"],["type","button",1,"p-1","rounded","text-neutral-400","hover:text-neutral-200","hover:bg-neutral-800","transition-colors","duration-150","shrink-0",3,"click","title"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-4","h-4","transition-transform","duration-150"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 15l-7-7-7 7"],["type","button","title","Bez\xE1r\xE1s","aria-label","Quick Input panel bez\xE1r\xE1s",1,"p-1","rounded","text-neutral-400","hover:text-neutral-200","hover:bg-neutral-800","transition-colors","duration-150","shrink-0",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],[2,"min-height","0","overflow-y","auto",3,"scroll"],[1,"flex","flex-col","items-center","justify-center","py-8","px-4","text-neutral-500","text-sm","text-center"],[1,"flex","items-center","justify-center","py-8","text-neutral-500","text-sm"],[1,"flex","flex-col"],[1,"px-3","py-2","border-t","border-neonDefault"],[1,"flex","items-end","gap-3"],["rows","3",1,"flex-1","min-w-0","min-h-[5rem]","gt-xs:min-h-[7rem]","max-h-[40rem]","resize-y","rounded-md","border","border-neutral-700","bg-neutral-800","px-3","py-2","text-sm","text-neutral-200","placeholder-neutral-500","focus:outline-none","focus:border-neonCyan/60","transition-colors","duration-150",3,"ngModelChange","keydown","placeholder","ngModel"],[1,"shrink-0","self-end","flex","flex-col","items-end","gap-2"],[3,"transcriptReady"],["type","button","aria-label","Quick Input ment\xE9s",1,"shrink-0","p-2","rounded-md","bg-ccapAccent","text-neutral-900","hover:bg-ccapAccent/80","disabled:opacity-40","disabled:cursor-not-allowed","transition-colors","duration-150",3,"click","disabled","title"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 19l9 2-9-18-9 18 9-2zm0 0v-8"],[3,"isOpen","title","maxWidth","zIndex"],["type","button","aria-label","Send All to CC Session",1,"rounded","px-2","py-1","text-[11px]","font-semibold","uppercase","tracking-wide","border","transition-colors","duration-150","flex","items-center","gap-1.5","disabled:opacity-40","disabled:cursor-not-allowed",3,"click","ngClass","disabled","title"],[1,"animate-spin","inline-block","w-3","h-3","border-2","border-neonCyan/50","border-t-neonCyan","rounded-full"],["fill","currentColor","viewBox","0 0 20 20","aria-hidden","true",1,"w-3","h-3","shrink-0"],["fill-rule","evenodd","d","M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z","clip-rule","evenodd"],[1,"px-3","py-2","border-b","border-neutral-800"],[1,"flex","flex-wrap","items-start","gap-2"],["title","Projekt",1,"min-w-0","flex-1","basis-[min(100%,10rem)]","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1.5","text-sm","text-neutral-200","focus:outline-none","focus:border-neonCyan/60","transition-colors","duration-150",3,"ngModelChange","ngModel"],["value","","disabled",""],[3,"value"],[1,"min-w-0","flex-1","basis-[min(100%,12rem)]","flex","flex-col","gap-1","rounded-md","border","border-neutral-700/80","bg-neutral-900/40","px-2","py-1.5"],["type","text","placeholder","pl. frontend/session","title","Egy\xE9ni area \xE9rt\xE9k",1,"mt-1.5","w-full","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1","text-xs","text-neutral-200","font-mono","placeholder:text-neutral-600","focus:outline-none","focus:border-neonCyan/60",3,"ngModel"],[1,"flex","flex-wrap","items-center","gap-x-2","gap-y-1"],["title","Area autofollow: a composer area a jelenlegi route alapj\xE1n friss\xFCl.","aria-label","Area autofollow: a composer area a jelenlegi route alapj\xE1n friss\xFCl.",1,"inline-flex","shrink-0","cursor-pointer","select-none","rounded","px-0.5","hover:bg-neutral-800/60","transition-colors"],[1,"flex","min-w-0","flex-1","items-center","gap-1.5","text-xs","text-neutral-300"],["title","Ter\xFClet / preset",1,"min-w-0","max-w-full","flex-1","basis-[6rem]","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1","text-xs","text-neutral-200","focus:outline-none","focus:border-neonCyan/60",3,"ngModel"],["type","checkbox",1,"rounded","border-neutral-600","bg-neutral-800","text-neonCyan","focus:ring-neonCyan/40",3,"ngModelChange","ngModel"],[1,"shrink-0","text-[10px]","font-semibold","uppercase","tracking-wide","text-neutral-500"],[1,"truncate","text-neutral-500"],[1,"min-w-0","truncate","font-mono","text-neonCyan/90"],[1,"hidden","min-w-0","truncate","text-neutral-500","sm:inline"],["title","Ter\xFClet / preset",1,"min-w-0","max-w-full","flex-1","basis-[6rem]","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1","text-xs","text-neutral-200","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","ngModel"],["value",""],["type","text","placeholder","pl. frontend/session","title","Egy\xE9ni area \xE9rt\xE9k",1,"mt-1.5","w-full","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1","text-xs","text-neutral-200","font-mono","placeholder:text-neutral-600","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","ngModel"],[1,"mt-2","border-t","border-neutral-800/80","pt-2"],[1,"border-t","border-b","border-neutral-800/80","py-2"],["title","LMID / azonos\xEDt\xF3k (elements) a Quick Input rekordhoz \u2014 k\xE9zi hozz\xE1ad\xE1s",1,"shrink-0","text-[10px]","font-semibold","uppercase","tracking-wide","text-neutral-500"],["type","text","placeholder","id / token","title","K\xE9zi azonos\xEDt\xF3 \u2014 Enter vagy +",1,"min-w-0","flex-1","basis-[6rem]","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1","text-xs","text-neutral-200","font-mono","placeholder:text-neutral-600","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","keydown.enter","ngModel"],["type","button","title","Azonos\xEDt\xF3 hozz\xE1ad\xE1sa",1,"shrink-0","rounded-md","border","border-neutral-600","px-2","py-1","text-xs","text-neutral-200","hover:border-neonCyan/50","hover:text-neonCyan","transition-colors",3,"click"],[1,"mt-1.5","flex","flex-wrap","gap-1"],["type","button","title","Elem.track: kurzor alatti ID-s DOM elem kiemel\xE9se; kattint\xE1s hozz\xE1ad az Elements list\xE1hoz. Esc: kil\xE9p\xE9s.","aria-label","Elem.track: DOM ID picker. Bekapcsolva kurzor alatti elem kiemel\xE9se, kattint\xE1sra hozz\xE1ad\xE1s. Esc: kil\xE9p\xE9s.",1,"rounded-md","border","px-2","py-1.5","text-[11px]","font-semibold","uppercase","tracking-wide","transition-colors","duration-150","focus:outline-none","focus:ring-2","focus:ring-neonCyan/40","focus:ring-offset-2","focus:ring-offset-neutral-900",3,"click","ngClass"],[1,"inline-flex","max-w-full","items-center","gap-1","rounded","border","border-neutral-600","bg-neutral-800/80","py-0.5","pl-2","pr-1","font-mono","text-[11px]","text-neutral-300"],[1,"max-w-[14rem]","truncate"],["type","button","title","Elt\xE1vol\xEDt\xE1s","aria-label","Element elt\xE1vol\xEDt\xE1s",1,"shrink-0","rounded","p-0.5","text-neutral-500","hover:bg-neutral-900/80","hover:text-red-400",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"h-3","w-3"],["type","text","placeholder","Sz\u0171r\xE9s tartalom szerint\u2026","title","Quick Input lista sz\u0171r\xE9se","aria-label","Quick Input lista sz\u0171r\xE9se tartalom szerint",1,"w-full","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1.5","text-xs","text-neutral-200","placeholder:text-neutral-600","font-sans","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","ngModel"],[1,"animate-spin","inline-block","w-4","h-4","border-2","border-neonCyan/50","border-t-neonCyan","rounded-full","mr-2"],[1,"text-xs","mt-1"],["type","button",1,"flex","items-start","gap-2","px-4","py-2","text-left","border-b","border-neutral-800","hover:bg-neutral-800/60","transition-colors","duration-150","w-full"],["type","button",1,"flex","items-start","gap-2","px-4","py-2","text-left","border-b","border-neutral-800","hover:bg-neutral-800/60","transition-colors","duration-150","w-full",3,"click"],[1,"w-2","h-2","mt-1.5","rounded-full","bg-neonCyan/60","shrink-0"],[1,"flex-1","min-w-0"],[1,"text-sm","text-neutral-200","line-clamp-3",3,"title"],[1,"flex","flex-wrap","items-center","gap-x-2","gap-y-0.5","mt-0.5"],[1,"text-xs","text-neutral-500",3,"title"],[1,"text-[10px]","uppercase","tracking-wide","px-1.5","py-0.5","rounded","border","border-sky-700/60","text-sky-400/90"],[1,"text-[10px]","uppercase","tracking-wide","px-1.5","py-0.5","rounded","border","border-neutral-600","text-neutral-400"],[1,"text-[10px]","uppercase","tracking-wide","px-1.5","py-0.5","rounded","border","border-amber-900/50","text-amber-400/90"],[1,"text-[10px]","uppercase","tracking-wide","px-1.5","py-0.5","rounded","border","border-neutral-700","text-neutral-500"],[1,"text-[11px]","text-neutral-500","mt-0.5","line-clamp-2"],[3,"closed","isOpen","title","maxWidth","zIndex"],[1,"p-4","flex","flex-col","gap-4"],[1,"text-sm","text-neutral-300"],[1,"flex","flex-col","gap-2"],[1,"text-xs","font-semibold","uppercase","tracking-wide","text-neutral-500","mb-1"],[1,"flex","items-center","gap-2","cursor-pointer","text-sm","text-neutral-200"],["type","radio","name","sendAllTarget","value","new",1,"accent-neonCyan",3,"change","checked"],["type","radio","name","sendAllTarget","value","existing",1,"accent-neonCyan",3,"change","checked"],[1,"flex","flex-col","gap-1"],[1,"text-xs","font-semibold","uppercase","tracking-wide","text-neutral-500"],["placeholder","Prompt tartalom...",1,"w-full","h-64","resize-y","rounded-md","border","border-neutral-700","bg-neutral-800","px-3","py-2","text-sm","text-neutral-200","placeholder:text-neutral-600","font-mono","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","ngModel"],[1,"flex","items-center","justify-end","gap-3","pt-2","border-t","border-neutral-800"],["type","button",1,"rounded-md","px-3","py-1.5","text-sm","text-neutral-400","hover:text-neutral-200","transition-colors","duration-150",3,"click","disabled"],["type","button",1,"rounded-md","px-4","py-1.5","text-sm","font-semibold","bg-neonCyan/20","text-neonCyan","border","border-neonCyan/40","hover:bg-neonCyan/30","disabled:opacity-40","disabled:cursor-not-allowed","transition-colors","duration-150",3,"click","disabled"],["type","text","placeholder","Session n\xE9v","title","\xDAj CC Session n\xE9v",1,"ml-6","w-full","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1.5","text-sm","text-neutral-200","placeholder:text-neutral-600","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","ngModel"],["title","Workspace path",1,"ml-6","w-full","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1.5","text-sm","text-neutral-200","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","ngModel"],["title","Megl\xE9v\u0151 CC Session kiv\xE1laszt\xE1sa",1,"ml-6","w-full","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1.5","text-sm","text-neutral-200","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","ngModel"],[1,"ml-6","text-xs","text-neutral-500"],[1,"animate-spin","inline-block","w-3.5","h-3.5","border-2","border-neonCyan/50","border-t-neonCyan","rounded-full","mr-1.5"]],template:function(n,i){if(n&1){let a=I();o(0,"div",2)(1,"div",3)(2,"div",4)(3,"span",5),c(4,"Quick Input"),r(),o(5,"div",6),h(6,fa,3,8,"button",7),o(7,"button",8),m("click",function(){return C(a),f(i.handleHeaderCollapseToggle())}),k(),o(8,"svg",9),b(9,"path",10),r()(),P(),o(10,"button",11),m("click",function(){return C(a),f(i.handleClose())}),k(),o(11,"svg",12),b(12,"path",13),r()()()()(),P(),o(13,"div",14,0),m("scroll",function(){return C(a),f(i.handleQuickInputListScroll())}),h(15,Ma,12,7)(16,Da,3,0,"div",15)(17,Ra,3,0,"div",16)(18,Fa,5,0,"div",15)(19,Oa,5,0,"div",15)(20,Ja,5,0,"div",17),r(),o(21,"div",18)(22,"div",19)(23,"textarea",20),m("ngModelChange",function(x){return C(a),f(i.handleComposerTextChange(x))})("keydown",function(x){return C(a),f(i.handleKeydown(x))}),r(),o(24,"div",21)(25,"app-ccap-voice-record-button",22),m("transcriptReady",function(x){return C(a),f(i.handleVoiceTranscript(x))}),r(),o(26,"button",23),m("click",function(){return C(a),f(i.handleSubmitInput())}),k(),o(27,"svg",12),b(28,"path",24),r()()()()()(),h(29,ss,25,13,"app-s-modal",25)}n&2&&(_("ngStyle",i.panelOverlayStyle_$()),l(6),u(i.activeQuickInputCount_$()>0?6:-1),l(),_("title",i.headerControlsCollapsed_$()?"Be\xE1ll\xEDt\xE1sok mutat\xE1sa":"Be\xE1ll\xEDt\xE1sok bez\xE1r\xE1sa"),q("aria-label",i.headerControlsCollapsed_$()?"Be\xE1ll\xEDt\xE1sok mutat\xE1sa":"Be\xE1ll\xEDt\xE1sok bez\xE1r\xE1sa")("aria-expanded",!i.headerControlsCollapsed_$()),l(),O("rotate-180",i.headerControlsCollapsed_$()),l(7),u(i.headerControlsCollapsed_$()?-1:15),l(),u(i.userInput_DS.selectedProjectId_$()?i.userInput_DS.isLoading_$()?17:i.userInput_DS.inputs_$().length===0?18:i.filteredQuickInputs_$().length===0&&i.quickInputListSearchQuery_$().trim().length>0?19:20:16),l(7),_("placeholder",i.composerPlaceholder)("ngModel",i.newInputText_$()),l(3),_("disabled",!i.newInputText_$().trim()||i.userInput_DS.isSending_$()||!i.userInput_DS.projects_$().length||i.userInput_DS.selectedProjectId_$()===i.allProjectsFilterValue)("title",i.newInputSendButtonTitle_$()),l(3),u(i.sendAllConfirmOpen_$()?29:-1))},dependencies:[j,ce,Ie,lt,te,ut,_t,de,dt,pt,pe,ue,En,$e,An],encapsulation:2})}return t})();var Ut=Ve(Qe());var ci="10060",di="10045";var cs="QI-",It=class t{static buildDisplayNameFromQuickInput(s){let e=t.normalizeQuickInputSnippet(s.title??"");return e.length>0?t.truncateSnippetToMaxLength(e,48):t.buildDisplayNameFromQuickInputRaw(s.rawContent)}static buildDisplayNameFromQuickInputRaw(s){let e=t.normalizeQuickInputSnippet(s),n=cs,i=48-n.length;if(i<=0)return n.slice(0,48);if(!e.length)return n;let a=t.truncateSnippetToMaxLength(e,i);return`${n}${a}`}static normalizeQuickInputSnippet(s){return(s??"").replace(/\s+/gu," ").trim()}static truncateSnippetToMaxLength(s,e){if(s.length<=e)return s;let n=s.slice(0,e),i=n.lastIndexOf(" ");return i>e/2?n.slice(0,i).trim():n.trim()}};var K=function(t){return t.hub="hub",t.edit="edit",t.wizard="wizard",t.direct="direct",t}(K||{});var Q=function(t){return t.caSession="ca-session",t.ccSession="cc-session",t.ccapSession="ccap-session",t}(Q||{});var ds=(t,s)=>s._id;function ps(t,s){if(t&1&&(o(0,"span",26),c(1),r()),t&2){let e=d(3);l(),$(e.copyFeedback_$())}}function us(t,s){t&1&&(o(0,"p",18),c(1),r()),t&2&&(l(),$(s))}function _s(t,s){t&1&&c(0," draft ")}function ms(t,s){t&1&&c(0," USER-INPUT ")}function Cs(t,s){t&1&&c(0," BUG ")}function fs(t,s){t&1&&c(0," discarded ")}function hs(t,s){if(t&1){let e=I();o(0,"span",66)(1,"span",67),c(2),r(),o(3,"button",68),m("click",function(){let i=C(e).$index,a=d(4);return f(a.handleHubRemoveElementAt(i))}),k(),o(4,"svg",69),b(5,"path",70),r()()()}if(t&2){let e=s.$implicit,n=d(4);l(2),$(e),l(),_("disabled",n.hubGridPatchBusy_$()||n.hubDeleteDisabled_$())}}function xs(t,s){if(t&1&&(o(0,"div",49),L(1,hs,6,2,"span",66,it),r()),t&2){let e=d(3);l(),N(e.elementsDraft_$())}}function bs(t,s){if(t&1&&(c(0),ke(1,"date")),t&2){let e=d(2);w(" ",je(1,1,e.createdAt,"yyyy.MM.dd HH:mm")," ")}}function gs(t,s){t&1&&c(0," \u2014 ")}function Ss(t,s){if(t&1&&(c(0),ke(1,"date")),t&2){let e=d(2);w(" ",je(1,1,e.updatedAt,"yyyy.MM.dd HH:mm")," ")}}function vs(t,s){t&1&&c(0," \u2014 ")}function ys(t,s){if(t&1&&(o(0,"span",35),c(1,"User request ID"),r(),o(2,"span",36),c(3),r()),t&2){let e=d(2);l(3),$(e.promotedUserRequestId)}}function ks(t,s){if(t&1&&(o(0,"span",35),c(1,"Bug code"),r(),o(2,"span",36),c(3),r()),t&2){let e=d(2);l(3),$(e.promotedBugCode)}}function Is(t,s){t&1&&c(0," user-input ")}function Ts(t,s){t&1&&c(0," bug-report ")}function ws(t,s){t&1&&c(0," unspecified ")}function Es(t,s){if(t&1&&(o(0,"span",35),c(1,"Predicted type"),r(),o(2,"span")(3,"span",37),h(4,Is,1,0)(5,Ts,1,0)(6,ws,1,0),r()()),t&2){let e,n=d(2),i=d();l(4),u((e=n.predictedType)===i.QiPredType.userInput?4:e===i.QiPredType.bugReport?5:e===i.QiPredType.unspecified?6:-1)}}function As(t,s){if(t&1&&(o(0,"span",35),c(1,"Predicted project ID"),r(),o(2,"span",36),c(3),r()),t&2){let e=d(2);l(3),$(e.predictedProjectId)}}function $s(t,s){if(t&1&&(o(0,"div",52)(1,"span",71),c(2,"Predicted summary"),r(),o(3,"p",72),c(4),r()()),t&2){let e=d(2);l(4),w(" ",e.predictedCleanDescription," ")}}function Ps(t,s){if(t&1&&(o(0,"option",40),c(1),r()),t&2){let e=s.$implicit;_("value",e._id),l(),$(e.name)}}function Ms(t,s){t&1&&(o(0,"p",18),c(1),r()),t&2&&(l(),$(s))}function Ds(t,s){t&1&&(o(0,"p",18),c(1),r()),t&2&&(l(),$(s))}function Rs(t,s){t&1&&(o(0,"p",18),c(1),r()),t&2&&(l(),$(s))}function Fs(t,s){t&1&&(o(0,"p",78),c(1," Target project differs from the record. Save target project before promoting, or the promotion APIs would disagree with the stored home project. "),r())}function Os(t,s){if(t&1){let e=I();o(0,"p",18),c(1," Classify with LLM sets predicted type (USER-INPUT vs bug-report vs unspecified) and may suggest a target project id from the registered list. Use Apply prediction to copy an LLM-suggested project into the select above. "),r(),o(2,"select",73),m("ngModelChange",function(i){C(e);let a=d(3);return f(a.targetProjectId_$.set(i))}),L(3,Ps,2,2,"option",40,ds),r(),o(5,"div",74)(6,"button",75),m("click",function(){C(e);let i=d(3);return f(i.handleOpenClassifyConfirm())}),c(7),r(),o(8,"button",76),m("click",function(){C(e);let i=d(3);return f(i.handleOpenApplyPredictionConfirm())}),c(9," Apply prediction "),r(),o(10,"button",77),m("click",function(){C(e);let i=d(3);return f(i.handleOpenSaveTargetProjectConfirm())}),c(11),r()(),h(12,Ms,2,1,"p",18)(13,Ds,2,1,"p",18)(14,Rs,2,1,"p",18)(15,Fs,2,0,"p",78)}if(t&2){let e,n,i,a=d(3);l(2),_("ngModel",a.targetProjectId_$()),l(),N(a.userInput_DS.projects_$()),l(3),_("disabled",a.hubClassifyLlmDisabled_$()||a.classifyQuickInputBusy_$()),l(),w(" ",a.classifyQuickInputBusy_$()?"Classifying\u2026":"Classify with LLM"," "),l(),_("disabled",a.hubApplyPredictionDisabled_$()),l(2),_("disabled",!a.isTargetProjectDirty_$()||a.saveTargetProjectBusy_$()),l(),w(" ",a.saveTargetProjectBusy_$()?"Saving\u2026":"Save target project"," "),l(),u((e=a.hubClassifyLlmDisabledHint_$())?12:-1,e),l(),u((n=a.hubApplyPredictionDisabledHint_$())?13:-1,n),l(),u((i=a.hubSaveTargetProjectDisabledHint_$())?14:-1,i),l(),u(a.isTargetProjectDirty_$()?15:-1)}}function Vs(t,s){t&1&&(o(0,"p",26),c(1),r()),t&2&&(l(),$(s))}function Us(t,s){t&1&&(o(0,"p",18),c(1,"Send is disabled: raw content is empty."),r())}function Ls(t,s){if(t&1){let e=I();o(0,"p",18),c(1," Send the raw content of this Quick Input as a prompt to an active CA, CC, or CCAP session. "),r(),h(2,Vs,2,1,"p",26),o(3,"div",74)(4,"button",79),m("click",function(){C(e);let i=d(3);return f(i.handleOpenSendToSession(i.SendTarget.caSession))}),c(5," Send to CA Session "),r(),o(6,"button",80),m("click",function(){C(e);let i=d(3);return f(i.handleOpenSendToSession(i.SendTarget.ccSession))}),c(7," Send to CC Session "),r(),o(8,"button",81),m("click",function(){C(e);let i=d(3);return f(i.handleOpenSendToSession(i.SendTarget.ccapSession))}),c(9," Send to CCAP Session "),r()(),h(10,Us,2,0,"p",18)}if(t&2){let e,n=d(3);l(2),u((e=n.sendToSessionFeedback_$())?2:-1,e),l(2),_("disabled",n.hubSendToSessionDisabled_$()),l(2),_("disabled",n.hubSendToSessionDisabled_$()),l(2),_("disabled",n.hubSendToSessionDisabled_$()),l(2),u(n.hubSendToSessionDisabled_$()?10:-1)}}function Ns(t,s){t&1&&(o(0,"p",59),c(1," This quick input is already promoted. You can still edit the staging text. "),r())}function js(t,s){t&1&&(o(0,"p",63),c(1),r()),t&2&&(l(),$(s))}function Qs(t,s){t&1&&(o(0,"p",82),c(1),r()),t&2&&(l(),w(" ",s," "))}function Bs(t,s){if(t&1){let e=I();o(0,"p",18),c(1," Wizard, direct finalize, and report bug use the target project above. They stay disabled until a target project is selected, the record matches it (save if you changed the select), and the item is still a draft. "),r(),h(2,Qs,2,1,"p",82),o(3,"div",83)(4,"button",84),m("click",function(){C(e);let i=d(3);return f(i.handleOpenWizardConfirm())}),c(5," USER-INPUT wizard (AI) "),r(),o(6,"button",85),m("click",function(){C(e);let i=d(3);return f(i.handleOpenDirectConfirm())}),c(7," Direct finalize "),r(),o(8,"button",86),m("click",function(){C(e);let i=d(3);return f(i.handleOpenBugConfirm())}),c(9," Report bug "),r()()}if(t&2){let e,n=d(3);l(2),u((e=n.hubProjectPromotionActionsHint_$())?2:-1,e),l(2),_("disabled",!n.canPromoteWithSyncedTarget_$()),l(2),_("disabled",!n.canPromoteWithSyncedTarget_$()),l(2),_("disabled",!n.canPromoteWithSyncedTarget_$())}}function zs(t,s){if(t&1){let e=I();o(0,"div",20)(1,"div",21)(2,"div",22)(3,"div",23)(4,"span",24),c(5,"User Quick Input Content"),r(),o(6,"div",25),h(7,ps,2,1,"span",26),o(8,"button",27),m("click",function(){C(e);let i=d(2);return f(i.handleOpenCopyConfirm())}),k(),o(9,"svg",28),b(10,"path",29),r()(),P(),o(11,"button",30),m("click",function(){C(e);let i=d(2);return f(i.executeOpenEdit())}),k(),o(12,"svg",28),b(13,"path",31),r()()()(),h(14,us,2,1,"p",18),r(),P(),o(15,"div",32)(16,"p",33),c(17),r()()(),o(18,"div",34)(19,"span",35),c(20,"ID"),r(),o(21,"span",36),c(22),r(),o(23,"span",35),c(24,"Project ID"),r(),o(25,"span",36),c(26),r(),o(27,"span",35),c(28,"Status"),r(),o(29,"span")(30,"span",37),h(31,_s,1,0)(32,ms,1,0)(33,Cs,1,0)(34,fs,1,0),r()(),o(35,"span",35),c(36,"Task difficulty"),r(),o(37,"span")(38,"select",38),m("ngModelChange",function(i){C(e);let a=d(2);return f(a.handleTaskDifficultySelectChange(i))}),o(39,"option",39),c(40,"\u2014"),r(),o(41,"option",40),c(42,"Easy"),r(),o(43,"option",40),c(44,"Medium"),r(),o(45,"option",40),c(46,"Hard"),r(),o(47,"option",40),c(48,"Komplex"),r()()(),o(49,"span",35),c(50,"Priority"),r(),o(51,"span")(52,"select",38),m("ngModelChange",function(i){C(e);let a=d(2);return f(a.handlePrioritySelectChange(i))}),o(53,"option",39),c(54,"\u2014"),r(),o(55,"option",40),c(56,"Low"),r(),o(57,"option",40),c(58,"Medium"),r(),o(59,"option",40),c(60,"High"),r(),o(61,"option",40),c(62,"Urgent"),r()()(),o(63,"span",41),c(64,"Area"),r(),o(65,"span",42)(66,"input",43),m("ngModelChange",function(i){C(e);let a=d(2);return f(a.area_$.set(i))}),r(),o(67,"div",44)(68,"button",45),m("click",function(){C(e);let i=d(2);return f(i.handleSaveArea())}),c(69),r()()(),o(70,"span",41),c(71,"Elements"),r(),o(72,"span",42)(73,"div",46)(74,"input",47),m("ngModelChange",function(i){C(e);let a=d(2);return f(a.newElementLine_$.set(i))})("keydown.enter",function(i){return C(e),d(2).handleHubAddElementLine(),f(i.preventDefault())}),r(),o(75,"button",48),m("click",function(){C(e);let i=d(2);return f(i.handleHubAddElementLine())}),c(76," Add "),r()(),h(77,xs,3,0,"div",49),o(78,"button",50),m("click",function(){C(e);let i=d(2);return f(i.handleSaveElements())}),c(79),r()(),o(80,"span",35),c(81,"Created"),r(),o(82,"span",51),h(83,bs,2,4)(84,gs,1,0),r(),o(85,"span",35),c(86,"Updated"),r(),o(87,"span",51),h(88,Ss,2,4)(89,vs,1,0),r(),h(90,ys,4,1)(91,ks,4,1)(92,Es,7,1)(93,As,4,1),r(),h(94,$s,5,1,"div",52),o(95,"div",53)(96,"button",54),m("click",function(){C(e);let i=d(2);return f(i.toggleHubBlock("target-project"))}),k(),o(97,"svg",55),b(98,"polyline",56),r(),P(),o(99,"span"),c(100,"Target project (promotion)"),r()(),h(101,Os,16,10),r(),o(102,"div",57)(103,"button",58),m("click",function(){C(e);let i=d(2);return f(i.toggleHubBlock("send-to-session"))}),k(),o(104,"svg",55),b(105,"polyline",56),r(),P(),o(106,"span"),c(107,"Send to session"),r()(),h(108,Ls,11,5),r(),h(109,Ns,2,0,"p",59),o(110,"div",60)(111,"div",61)(112,"button",62),m("click",function(){C(e);let i=d(2);return f(i.handleOpenQuickInputDeleteConfirm())}),c(113," Delete quick input "),r(),h(114,js,2,1,"p",63),r(),o(115,"div",64)(116,"button",65),m("click",function(){C(e);let i=d(2);return f(i.toggleHubBlock("project-promotion"))}),k(),o(117,"svg",55),b(118,"polyline",56),r(),P(),o(119,"span"),c(120,"Project-related promotion"),r()(),h(121,Bs,10,4),r()()()}if(t&2){let e,n,i,a=d(),p=d();l(7),u(p.copyFeedback_$()?7:-1),l(),_("disabled",p.hubCopyDisabled_$()),l(6),u((e=p.hubCopyDisabledHint_$())?14:-1,e),l(3),$(a.rawContent),l(5),$(a.quickInputId),l(4),$(a.projectId),l(5),u((n=a.status)===p.QiStatus.draft?31:n===p.QiStatus.promotedUserInput?32:n===p.QiStatus.promotedBug?33:n===p.QiStatus.discarded?34:-1),l(7),_("ngModel",p.taskDifficulty_$())("disabled",p.hubGridPatchBusy_$()||p.hubDeleteDisabled_$()),l(3),_("value",p.QiTaskDiff.easy),l(2),_("value",p.QiTaskDiff.medium),l(2),_("value",p.QiTaskDiff.hard),l(2),_("value",p.QiTaskDiff.komplex),l(5),_("ngModel",p.priority_$())("disabled",p.hubGridPatchBusy_$()||p.hubDeleteDisabled_$()),l(3),_("value",p.QiPriority.low),l(2),_("value",p.QiPriority.medium),l(2),_("value",p.QiPriority.high),l(2),_("value",p.QiPriority.urgent),l(5),_("ngModel",p.area_$())("disabled",p.hubGridPatchBusy_$()||p.hubDeleteDisabled_$()),l(2),_("disabled",!p.isAreaDirty_$()||p.hubGridPatchBusy_$()||p.hubDeleteDisabled_$()),l(),w(" ",p.areaPatchBusy_$()?"Saving\u2026":"Save area"," "),l(5),_("ngModel",p.newElementLine_$())("disabled",p.hubGridPatchBusy_$()||p.hubDeleteDisabled_$()),l(),_("disabled",p.hubGridPatchBusy_$()||p.hubDeleteDisabled_$()),l(2),u(p.elementsDraft_$().length>0?77:-1),l(),_("disabled",!p.isElementsDirty_$()||p.hubGridPatchBusy_$()||p.hubDeleteDisabled_$()),l(),w(" ",p.elementsPatchBusy_$()?"Saving\u2026":"Save elements"," "),l(4),u(a.createdAt?83:84),l(5),u(a.updatedAt?88:89),l(2),u(a.promotedUserRequestId?90:-1),l(),u(a.promotedBugCode?91:-1),l(),u(a.predictedType?92:-1),l(),u(a.predictedProjectId?93:-1),l(),u(a.predictedCleanDescription?94:-1),l(2),q("aria-expanded",!p.hubCollapsedBlocks_$()["target-project"]),l(),O("-rotate-90",p.hubCollapsedBlocks_$()["target-project"]),l(4),u(p.hubCollapsedBlocks_$()["target-project"]?-1:101),l(2),q("aria-expanded",!p.hubCollapsedBlocks_$()["send-to-session"]),l(),O("-rotate-90",p.hubCollapsedBlocks_$()["send-to-session"]),l(4),u(p.hubCollapsedBlocks_$()["send-to-session"]?-1:108),l(),u(p.canPromote_$()?-1:109),l(3),_("disabled",p.hubDeleteDisabled_$()),l(2),u((i=p.hubDeleteDisabledHint_$())?114:-1,i),l(2),q("aria-expanded",!p.hubCollapsedBlocks_$()["project-promotion"]),l(),O("-rotate-90",p.hubCollapsedBlocks_$()["project-promotion"]),l(4),u(p.hubCollapsedBlocks_$()["project-promotion"]?-1:121)}}function Hs(t,s){t&1&&(o(0,"p",91),c(1),r()),t&2&&(l(),$(s))}function qs(t,s){if(t&1){let e=I();o(0,"div",12)(1,"label",87),c(2,"Title (optional \u2014 used as CCAP Session name)"),r(),o(3,"input",88),m("ngModelChange",function(i){C(e);let a=d(2);return f(a.editTitle_$.set(i))}),r(),o(4,"label",87),c(5,"Raw content"),r(),o(6,"textarea",89),m("ngModelChange",function(i){C(e);let a=d(2);return f(a.editRaw_$.set(i))}),r(),o(7,"div",90),h(8,Hs,2,1,"p",91),o(9,"div",92)(10,"button",93),m("click",function(){C(e);let i=d(2);return f(i.handleBackToHub())}),c(11," Back "),r(),o(12,"button",94),m("click",function(){C(e);let i=d(2);return f(i.handleSaveEdit())}),c(13),r()()()()}if(t&2){let e,n=d(2);l(3),_("ngModel",n.editTitle_$()),l(3),_("ngModel",n.editRaw_$()),l(2),u((e=n.editSaveDisabledHint_$())?8:-1,e),l(4),_("disabled",n.editSaveSubmitDisabled_$()),l(),w(" ",n.editSaveBusy_$()?"Saving\u2026":"Save"," ")}}function Ws(t,s){if(t&1){let e=I();o(0,"app-pm-user-input-wizard",98),m("wizardFinalizeSuccess",function(i){C(e);let a=d(3);return f(a.handleWizardFinalizeSuccess(i))}),r()}if(t&2){let e=d(3);_("projectId",e.targetProjectId_$())("isEmbeddedInModal",!0)("quickInputDraftId",e.userInput_DS.selectedQuickInputId_$())("initialRawContent",e.wizardSeedRaw_$())("initialStagingPriority",e.wizardStagingPriority_$())("skipSuggestMode",!1)}}function Gs(t,s){t&1&&(o(0,"p",97),c(1," No target project is set. Go back and choose a target project under Target project (promotion); those actions stay disabled until a target project is selected. "),r())}function Ys(t,s){if(t&1){let e=I();o(0,"div",21)(1,"button",95),m("click",function(){C(e);let i=d(2);return f(i.handleBackToHub())}),c(2," \u2190 Back "),r(),h(3,Ws,1,6,"app-pm-user-input-wizard",96)(4,Gs,2,0,"p",97),r()}if(t&2){let e=d(2);l(3),u(e.hasSelectedProject_$()?3:4)}}function Ks(t,s){if(t&1){let e=I();o(0,"app-pm-user-input-wizard",98),m("wizardFinalizeSuccess",function(i){C(e);let a=d(3);return f(a.handleWizardFinalizeSuccess(i))}),r()}if(t&2){let e=d(3);_("projectId",e.targetProjectId_$())("isEmbeddedInModal",!0)("quickInputDraftId",e.userInput_DS.selectedQuickInputId_$())("initialRawContent",e.wizardSeedRaw_$())("initialStagingPriority",e.wizardStagingPriority_$())("skipSuggestMode",!0)}}function Xs(t,s){t&1&&(o(0,"p",97),c(1," No target project is set. Go back and choose a target project under Target project (promotion); those actions stay disabled until a target project is selected. "),r())}function Zs(t,s){if(t&1){let e=I();o(0,"div",21)(1,"button",95),m("click",function(){C(e);let i=d(2);return f(i.handleBackToHub())}),c(2," \u2190 Back "),r(),h(3,Ks,1,6,"app-pm-user-input-wizard",96)(4,Xs,2,0,"p",97),r()}if(t&2){let e=d(2);l(3),u(e.hasSelectedProject_$()?3:4)}}function Js(t,s){if(t&1&&h(0,zs,122,51,"div",20)(1,qs,14,5,"div",12)(2,Ys,5,1,"div",21)(3,Zs,5,1,"div",21),t&2){let e,n=d();u((e=n.pane_$())===n.Pane.hub?0:e===n.Pane.edit?1:e===n.Pane.wizard?2:e===n.Pane.direct?3:-1)}}function el(t,s){t&1&&(o(0,"p",1),c(1,"No quick input selected."),r())}function tl(t,s){t&1&&(o(0,"p",99),c(1," This permanently removes the quick input staging entity from the server. This cannot be undone. "),r(),o(2,"p",100),c(3,"Document id"),r(),o(4,"p",101),c(5),r()),t&2&&(l(5),$(s.quickInputId))}function nl(t,s){if(t&1){let e=I();o(0,"div",12)(1,"div",22)(2,"label",87),c(3,"Target session"),r(),o(4,"div",102)(5,"app-s-session-select",103),m("selected",function(i){C(e);let a=d();return f(a.sendToSessionSelectedId_$.set(i))}),r()()(),o(6,"div",22)(7,"label",87),c(8,"Message content"),r(),o(9,"textarea",104),m("ngModelChange",function(i){C(e);let a=d();return f(a.sendToSessionContent_$.set(i))}),r()()()}if(t&2){let e=d();l(5),_("kind",e.sendToSessionSelectKind_$())("rows",e.sendToSessionRowViews_$())("activeId",e.sendToSessionSelectedId_$()),l(4),_("ngModel",e.sendToSessionContent_$())}}function il(t,s){t&1&&(o(0,"p",18),c(1,"Document id: "),o(2,"span",105),c(3),r()()),t&2&&(l(3),$(s.quickInputId))}function ol(t,s){if(t&1){let e=I();o(0,"button",14),m("click",function(){C(e);let i=d();return f(i.handlePostPromotionGoToSession())}),c(1," Go to session "),r()}if(t&2){let e=d();_("disabled",e.postPromotionCleanupBusy_$())}}var Tt=(()=>{class t{quickInputOverlayModalZIndex_Value=ci;userInput_DS=y(G);pm_DS=y(Pn);globalError_CS=y(ne);caSession_DS=y(Rn);ccSession_DS=y(Me);session_DS=y(Pe);router=y(Te);newAgentSessionWorkspace_DS=y(xt);Pane=K;QiStatus=fe;QiPredType=mt;QiTaskDiff=Ee;QiPriority=_e;SendTarget=Q;pane_$=S(K.hub);targetProjectId_$=S("");lastSyncedQuickInputId="";saveTargetProjectBusy_$=S(!1);taskDifficulty_$=S("");taskDifficultyPatchBusy_$=S(!1);priority_$=S("");priorityPatchBusy_$=S(!1);area_$=S("");areaPatchBusy_$=S(!1);elementsDraft_$=S([]);newElementLine_$=S("");elementsPatchBusy_$=S(!1);hubGridPatchBusy_$=v(()=>this.taskDifficultyPatchBusy_$()||this.priorityPatchBusy_$()||this.areaPatchBusy_$()||this.elementsPatchBusy_$());classifyQuickInputBusy_$=S(!1);manualBugModalOpen_$=S(!1);manualBugBusy_$=S(!1);quickInputDeleteConfirmOpen_$=S(!1);deleteQuickInputBusy_$=S(!1);editRaw_$=S("");editTitle_$=S("");editSaveBusy_$=S(!1);wizardSeedRaw_$=S("");bugPrefillTitle_$=S("");bugPrefillDetails_$=S("");copyFeedback_$=S("");copyFeedbackClearHandle;genericConfirmOpen_$=S(!1);genericConfirmTitle_$=S("");genericConfirmBody_$=S("");genericConfirmBusy_$=S(!1);genericConfirmButtonLabel_$=S("Confirm");pendingGenericConfirmAction_=null;SEND_NEW_SESSION_VALUE="__new__";sendToSessionOpen_$=S(!1);sendToSessionType_$=S(Q.caSession);sendToSessionSelectedId_$=S("__new__");sendToSessionContent_$=S("");sendToSessionRowViews_$=v(()=>{let e={id:this.SEND_NEW_SESSION_VALUE,label:"+ Create new session",status:"",statusColorClass:"bg-neonCyan",isArchived:!1,isRunning:!1},n=this.sendToSessionType_$(),i=[];return n===Q.caSession?i=this.caSession_DS.sessions_$().map(a=>({id:a.sessionId??"",label:a.label||a.sessionId||"",status:a.status??"",statusColorClass:oe.resolve(a.status),isArchived:!!a.isArchived,isRunning:oe.isRunning(a.status)})):n===Q.ccSession?i=this.ccSession_DS.sessions_$().map(a=>({id:a.sessionId??"",label:a.label||a.sessionId||"",status:a.status??"",statusColorClass:oe.resolve(a.status),isArchived:!!a.isArchived,isRunning:oe.isRunning(a.status)})):i=this.session_DS.sessions_$().map(a=>({id:a._id??"",label:a.name||a._id||"",status:a.status??"",statusColorClass:oe.resolve(a.status),isArchived:!1,isRunning:oe.isRunning(a.status)})),[e,...i]});sendToSessionSelectKind_$=v(()=>{let e=this.sendToSessionType_$();return e===Q.caSession?"ca":e===Q.ccSession?"cc":"ccap"});postPromotionCleanupOpen_$=S(!1);postPromotionCleanupBusy_$=S(!1);postPromotionCleanupEntityLabel_$=S("");postPromotionCleanupRouteCmds_$=S(null);sendToSessionBusy_$=S(!1);sendToSessionFeedback_$=S("");sendToSessionFeedbackClearHandle;hubCollapsedBlocks_$=S({});toggleHubBlock(e){let n=this.hubCollapsedBlocks_$(),i=se(Y({},n),{[e]:!n[e]});this.hubCollapsedBlocks_$.set(i)}selectedItem_$=v(()=>{if(this.userInput_DS.quickInputActionsModalOpen_$())return this.userInput_DS.getSelectedQuickInputListItem()});wizardStagingPriority_$=v(()=>this.selectedItem_$()?.priority);canPromote_$=v(()=>{let e=this.selectedItem_$();return e?e.status===fe.draft:!1});hubCopyDisabled_$=v(()=>{let e=this.selectedItem_$();return e?!e.rawContent.trim():!0});hasSelectedProject_$=v(()=>this.targetProjectId_$().trim().length>0);isTargetProjectDirty_$=v(()=>{let e=this.selectedItem_$();return e?String(e.projectId??"").trim()!==this.targetProjectId_$().trim():!1});canPromoteWithSyncedTarget_$=v(()=>this.canPromote_$()?!this.isTargetProjectDirty_$():!1);hubDeleteDisabled_$=v(()=>{let e=this.selectedItem_$();return e?!String(e.projectId??"").trim().length:!0});hubDeleteDisabledHint_$=v(()=>this.hubDeleteDisabled_$()?"Delete is disabled: this quick input has no stored project id (cannot call DELETE path).":null);hubClassifyLlmDisabled_$=v(()=>this.hubDeleteDisabled_$()||this.hubCopyDisabled_$());hubClassifyLlmDisabledHint_$=v(()=>this.hubClassifyLlmDisabled_$()?this.hubDeleteDisabled_$()?this.hubDeleteDisabledHint_$():"Classify with LLM is disabled: raw content is empty.":null);hubProjectPromotionActionsHint_$=v(()=>this.canPromoteWithSyncedTarget_$()?null:this.canPromote_$()?this.hasSelectedProject_$()?this.isTargetProjectDirty_$()?"Save target project first so the stored home project matches the selection; promotion APIs use the record project id.":null:"Choose a target project in Target project (promotion) above. These actions are unavailable until a target project is selected.":"Wizard, direct finalize, and report bug need a draft quick input. This item is already promoted or discarded.");hubCopyDisabledHint_$=v(()=>this.hubCopyDisabled_$()?"Copy is disabled because raw content is empty.":null);hubApplyPredictionDisabled_$=v(()=>{let e=this.selectedItem_$();return e?!String(e.predictedProjectId??"").trim().length:!0});hubApplyPredictionDisabledHint_$=v(()=>this.hubApplyPredictionDisabled_$()?"Apply prediction is disabled: this quick input has no predicted project id.":null);hubSaveTargetProjectDisabledHint_$=v(()=>this.saveTargetProjectBusy_$()||this.isTargetProjectDirty_$()?null:"Save target project is disabled: the selected target already matches the record.");isAreaDirty_$=v(()=>{let e=this.selectedItem_$();if(!e)return!1;let n=String(e.area??"").trim(),i=this.area_$().trim();return n!==i});isElementsDirty_$=v(()=>{let e=this.selectedItem_$();if(!e)return!1;let n=e.elements!==void 0?[...e.elements]:[],i=[...this.elementsDraft_$()];return!t.quickInputElementListsEqual(n,i)});editSaveSubmitDisabled_$=v(()=>this.editSaveBusy_$()||!this.editRaw_$().trim().length);editSaveDisabledHint_$=v(()=>this.editSaveBusy_$()||this.editRaw_$().trim().length>0?null:"Save is disabled: raw content is empty.");mainModalTitle_$=v(()=>{let e=this.pane_$();return e===K.edit?"Quick Input \u2014 edit":e===K.wizard?"Quick Input \u2014 USER-INPUT wizard":e===K.direct?"Quick Input \u2014 direct finalize":"Quick Input Entity Details"});sendToSessionModalTitle_$=v(()=>{let e=this.sendToSessionType_$();return e===Q.caSession?"Send to CA Session":e===Q.ccSession?"Send to CC Session":"Send to CCAP Session"});hubSendToSessionDisabled_$=v(()=>this.hubCopyDisabled_$());sendToSessionConfirmDisabled_$=v(()=>!!(this.sendToSessionBusy_$()||!this.sendToSessionSelectedId_$().trim().length||!this.sendToSessionContent_$().trim().length));constructor(){W(()=>{this.userInput_DS.quickInputActionsModalOpen_$()||(this.pane_$.set(K.hub),this.manualBugModalOpen_$.set(!1),this.editRaw_$.set(""),this.editTitle_$.set(""),this.wizardSeedRaw_$.set(""),this.copyFeedback_$.set(""),this.targetProjectId_$.set(""),this.taskDifficulty_$.set(""),this.taskDifficultyPatchBusy_$.set(!1),this.priority_$.set(""),this.priorityPatchBusy_$.set(!1),this.area_$.set(""),this.areaPatchBusy_$.set(!1),this.elementsDraft_$.set([]),this.newElementLine_$.set(""),this.elementsPatchBusy_$.set(!1),this.lastSyncedQuickInputId="",this.copyFeedbackClearHandle!==void 0&&(clearTimeout(this.copyFeedbackClearHandle),this.copyFeedbackClearHandle=void 0),this.quickInputDeleteConfirmOpen_$.set(!1),this.deleteQuickInputBusy_$.set(!1),this.classifyQuickInputBusy_$.set(!1),this.genericConfirmOpen_$.set(!1),this.genericConfirmBusy_$.set(!1),this.pendingGenericConfirmAction_=null,this.sendToSessionOpen_$.set(!1),this.sendToSessionBusy_$.set(!1),this.sendToSessionSelectedId_$.set("__new__"),this.sendToSessionContent_$.set(""),this.sendToSessionFeedback_$.set(""),this.sendToSessionFeedbackClearHandle!==void 0&&(clearTimeout(this.sendToSessionFeedbackClearHandle),this.sendToSessionFeedbackClearHandle=void 0),this.postPromotionCleanupOpen_$.set(!1),this.postPromotionCleanupBusy_$.set(!1),this.postPromotionCleanupEntityLabel_$.set(""))},{allowSignalWrites:!0}),W(()=>{this.userInput_DS.quickInputActionsModalOpen_$()?this.userInput_DS.pushQuickInputOverlayAreaContextByOverlayId(Be.quickInputActionsModal):this.userInput_DS.closeQuickInputActionsModalOverlayChain()},{allowSignalWrites:!0}),W(()=>{if(!this.userInput_DS.quickInputActionsModalOpen_$())return;let e=this.userInput_DS.selectedQuickInputId_$().trim();if(!e.length||e===this.lastSyncedQuickInputId)return;this.lastSyncedQuickInputId=e;let n=this.userInput_DS.getSelectedQuickInputListItem();n&&(this.targetProjectId_$.set(String(n.projectId??"").trim()),this.taskDifficulty_$.set(n.taskDifficulty!==void 0?n.taskDifficulty:""),this.priority_$.set(n.priority!==void 0?n.priority:""),this.area_$.set(n.area!==void 0?n.area:""),this.elementsDraft_$.set(n.elements!==void 0&&n.elements.length>0?[...n.elements]:[]),this.newElementLine_$.set(""))},{allowSignalWrites:!0})}static quickInputElementListsEqual(e,n){if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==n[i])return!1;return!0}handleTaskDifficultySelectChange(e){return A(this,null,function*(){let n=this.selectedItem_$(),i=String(n?.projectId??"").trim();if(!n||!i.length)return;let a=e==="",p=n.taskDifficulty===void 0;if(a&&p||!a&&e===n.taskDifficulty)return;let x=[Ee.easy,Ee.medium,Ee.hard,Ee.komplex],g;if(a)g={taskDifficulty:null};else{let E=x.find(M=>M===e);if(E===void 0)return;g={taskDifficulty:E}}let T=n.taskDifficulty!==void 0?n.taskDifficulty:"";this.taskDifficulty_$.set(e),this.taskDifficultyPatchBusy_$.set(!0);try{(yield this.userInput_DS.patchQuickInput({pathProjectId:i,quickInputId:n.quickInputId,body:g}))===null&&(this.taskDifficulty_$.set(T),this.globalError_CS.showError(new Error("Quick input task difficulty PATCH failed"),"ccap-quick-input-task-difficulty"))}finally{this.taskDifficultyPatchBusy_$.set(!1)}})}handlePrioritySelectChange(e){return A(this,null,function*(){let n=this.selectedItem_$(),i=String(n?.projectId??"").trim();if(!n||!i.length)return;let a=e==="",p=n.priority===void 0;if(a&&p||!a&&e===n.priority)return;let x=[_e.low,_e.medium,_e.high,_e.urgent],g;if(a)g={priority:null};else{let E=x.find(M=>M===e);if(E===void 0)return;g={priority:E}}let T=n.priority!==void 0?n.priority:"";this.priority_$.set(e),this.priorityPatchBusy_$.set(!0);try{(yield this.userInput_DS.patchQuickInput({pathProjectId:i,quickInputId:n.quickInputId,body:g}))===null&&(this.priority_$.set(T),this.globalError_CS.showError(new Error("Quick input priority PATCH failed"),"ccap-quick-input-priority"))}finally{this.priorityPatchBusy_$.set(!1)}})}handleSaveArea(){return A(this,null,function*(){let e=this.selectedItem_$(),n=String(e?.projectId??"").trim();if(!e||!n.length||!this.isAreaDirty_$())return;let i=this.area_$().trim(),a=i.length?{area:i}:{area:null},p=e.area!==void 0?e.area:"";this.areaPatchBusy_$.set(!0);try{(yield this.userInput_DS.patchQuickInput({pathProjectId:n,quickInputId:e.quickInputId,body:a}))===null&&(this.area_$.set(p),this.globalError_CS.showError(new Error("Quick input area PATCH failed"),"ccap-quick-input-area"))}finally{this.areaPatchBusy_$.set(!1)}})}handleHubAddElementLine(){let e=this.newElementLine_$().trim();if(!e.length)return;let n=[...this.elementsDraft_$()];if(n.includes(e)){this.newElementLine_$.set("");return}n.push(e),this.elementsDraft_$.set(n),this.newElementLine_$.set("")}handleHubRemoveElementAt(e){let n=[...this.elementsDraft_$()];e<0||e>=n.length||(n.splice(e,1),this.elementsDraft_$.set(n))}handleSaveElements(){return A(this,null,function*(){let e=this.selectedItem_$(),n=String(e?.projectId??"").trim();if(!e||!n.length||!this.isElementsDirty_$())return;let i=[...this.elementsDraft_$()],a=i.length>0?{elements:i}:{elements:null},p=e.elements!==void 0&&e.elements.length>0?[...e.elements]:[];this.elementsPatchBusy_$.set(!0);try{if(!((yield this.userInput_DS.patchQuickInput({pathProjectId:n,quickInputId:e.quickInputId,body:a}))!==null)){this.elementsDraft_$.set(p),this.globalError_CS.showError(new Error("Quick input elements PATCH failed"),"ccap-quick-input-elements");return}let g=this.userInput_DS.getSelectedQuickInputListItem();this.elementsDraft_$.set(g?.elements!==void 0&&g.elements.length>0?[...g.elements]:[])}finally{this.elementsPatchBusy_$.set(!1)}})}handleOpenCopyConfirm(){this.hubCopyDisabled_$()||this.openGenericConfirm("Copy to clipboard?","The raw content of this Quick Input will be copied to the clipboard.","Copy",()=>A(this,null,function*(){yield this.executeCopyRawContent()}))}executeCopyRawContent(){return A(this,null,function*(){let e=this.selectedItem_$(),n=e!==void 0?String(e.rawContent??""):"";if(!n.trim())return;this.copyFeedbackClearHandle!==void 0&&(clearTimeout(this.copyFeedbackClearHandle),this.copyFeedbackClearHandle=void 0);let i=yield this.globalError_CS.copyToClipboard(n);if(!i.ok){this.globalError_CS.showError(i.error,"ccap-quick-input-entity-details-copy");return}this.copyFeedback_$.set("Copied."),this.copyFeedbackClearHandle=window.setTimeout(()=>{this.copyFeedback_$.set(""),this.copyFeedbackClearHandle=void 0},2*Ut.second)})}handleMainModalClosed(){this.userInput_DS.closeQuickInputActionsModal()}handleBackToHub(){this.pane_$.set(K.hub)}handleOpenApplyPredictionConfirm(){if(this.hubApplyPredictionDisabled_$())return;let e=this.selectedItem_$(),n=String(e?.predictedProjectId??"").trim();this.openGenericConfirm("Apply prediction?",`Copy the LLM-predicted project ID (${n}) into the target project selector. This is a local change \u2014 no server request.`,"Apply",()=>A(this,null,function*(){this.executeApplyPredictedProject()}))}executeApplyPredictedProject(){let e=this.selectedItem_$(),n=String(e?.predictedProjectId??"").trim();n.length&&this.targetProjectId_$.set(n)}handleOpenSaveTargetProjectConfirm(){!this.isTargetProjectDirty_$()||this.saveTargetProjectBusy_$()||this.openGenericConfirm("Save target project?","This will update the stored home project on the server. The Quick Input will be moved to the selected target project.","Save",()=>A(this,null,function*(){yield this.executeSaveTargetProject()}))}executeSaveTargetProject(){return A(this,null,function*(){let e=this.selectedItem_$();if(!e)return;let n=String(e.projectId??"").trim(),i=this.targetProjectId_$().trim();if(!(!n.length||!i.length)&&n!==i){this.saveTargetProjectBusy_$.set(!0);try{if((yield this.userInput_DS.patchQuickInput({pathProjectId:n,quickInputId:e.quickInputId,body:{projectId:i}}))===null){this.globalError_CS.showError(new Error("Quick input target project PATCH failed"),"ccap-quick-input-save-target-project");return}i!==this.userInput_DS.selectedProjectId_$().trim()&&this.userInput_DS.closeQuickInputActionsModal()}finally{this.saveTargetProjectBusy_$.set(!1)}}})}handleOpenClassifyConfirm(){this.hubClassifyLlmDisabled_$()||this.openGenericConfirm("Classify with LLM?","This will use the default LLM to set predicted type (USER-INPUT / bug-report / unspecified), and may suggest a target project and a clean description.","Classify",()=>A(this,null,function*(){yield this.executeClassifyQuickInputWithLlm()}))}executeClassifyQuickInputWithLlm(){return A(this,null,function*(){let e=this.selectedItem_$(),n=String(e?.projectId??"").trim();if(!(!e||!n.length||!e.rawContent.trim())&&!this.hubClassifyLlmDisabled_$()){this.classifyQuickInputBusy_$.set(!0);try{(yield this.userInput_DS.classifyQuickInputWithLlm({pathProjectId:n,quickInputId:e.quickInputId}))||this.globalError_CS.showError(new Error("Quick input LLM classify failed"),"ccap-quick-input-llm-classify")}finally{this.classifyQuickInputBusy_$.set(!1)}}})}handleOpenEditConfirm(){this.openGenericConfirm("Edit raw content?","This opens the text editor for the raw content of this Quick Input.","Open editor",()=>A(this,null,function*(){this.executeOpenEdit()}))}executeOpenEdit(){let e=this.selectedItem_$();e&&(this.editRaw_$.set(e.rawContent),this.editTitle_$.set(e.title??""),this.pane_$.set(K.edit))}handleSaveEdit(){return A(this,null,function*(){let e=this.selectedItem_$(),n=String(e?.projectId??"").trim();if(!e||!n.length)return;let i=this.editRaw_$().trim();if(!i.length)return;let a=this.editTitle_$().trim(),p=String(e.title??"").trim(),x={rawContent:i};a!==p&&(x.title=a.length>0?a:null),this.editSaveBusy_$.set(!0);try{(yield this.userInput_DS.patchQuickInput({pathProjectId:n,quickInputId:e.quickInputId,body:x}))!==null&&this.pane_$.set(K.hub)}finally{this.editSaveBusy_$.set(!1)}})}handleOpenWizardConfirm(){this.canPromoteWithSyncedTarget_$()&&this.openGenericConfirm("Start USER-INPUT wizard?","This starts the AI-assisted USER-INPUT wizard. The Quick Input raw content will be used as seed text.","Start wizard",()=>A(this,null,function*(){this.executeOpenWizard()}))}executeOpenWizard(){let e=this.selectedItem_$();!e||!this.canPromote_$()||(this.wizardSeedRaw_$.set(e.rawContent),this.pane_$.set(K.wizard))}handleOpenDirectConfirm(){this.canPromoteWithSyncedTarget_$()&&this.openGenericConfirm("Start direct finalize?","This opens the direct finalization form (without AI suggestions). The Quick Input raw content will be used as seed text.","Start direct",()=>A(this,null,function*(){this.executeOpenDirect()}))}executeOpenDirect(){let e=this.selectedItem_$();!e||!this.canPromote_$()||(this.wizardSeedRaw_$.set(e.rawContent),this.pane_$.set(K.direct))}handleWizardFinalizeSuccess(e){return A(this,null,function*(){let n=this.selectedItem_$();if(!n)return;let i=String(e.userRequest._id??""),a=String(n.projectId??"").trim();if((yield this.userInput_DS.patchQuickInput({pathProjectId:a,quickInputId:n.quickInputId,body:{status:fe.promotedUserInput,promotedUserRequestId:i}}))===null){this.globalError_CS.showError(new Error("Quick input promotion PATCH failed after USER-INPUT finalize"),"ccap-quick-input-promote-user-input");return}let x=String(e.userRequest.code??i);this.postPromotionCleanupEntityLabel_$.set("USER-INPUT "+x),this.postPromotionCleanupOpen_$.set(!0)})}handleOpenBugConfirm(){this.canPromoteWithSyncedTarget_$()&&this.openGenericConfirm("Report bug?","This opens the bug report form pre-filled with the Quick Input raw content.","Open bug form",()=>A(this,null,function*(){this.executeOpenBugModal()}))}executeOpenBugModal(){let e=this.selectedItem_$();if(!e||!this.canPromote_$())return;let n=e.rawContent,i=n.split(`
5
+ `)[0]?.trim()??"",a=i.length>0?i:"Quick input";this.bugPrefillTitle_$.set(a),this.bugPrefillDetails_$.set(n),this.manualBugModalOpen_$.set(!0)}handleBugModalClosed(){this.manualBugModalOpen_$.set(!1)}handleBugSubmitted(e){return A(this,null,function*(){let n=this.selectedItem_$(),i=this.targetProjectId_$().trim(),a=String(n?.projectId??"").trim();if(!(!n||!i.length||!a.length)){this.manualBugBusy_$.set(!0);try{let p=yield this.pm_DS.createManualBugAndRefresh(i,e);if((yield this.userInput_DS.patchQuickInput({pathProjectId:a,quickInputId:n.quickInputId,body:{status:fe.promotedBug,promotedBugCode:p.createdCode,promotedUserRequestId:p.userRequestId}}))===null){this.globalError_CS.showError(new Error("Quick input promotion PATCH failed after manual bug create"),"ccap-quick-input-promote-bug");return}this.manualBugModalOpen_$.set(!1),this.postPromotionCleanupEntityLabel_$.set("Bug "+String(p.createdCode??"")),this.postPromotionCleanupOpen_$.set(!0)}catch(p){this.globalError_CS.showError(p,"ccap-quick-input-manual-bug")}finally{this.manualBugBusy_$.set(!1)}}})}handleOpenQuickInputDeleteConfirm(){this.hubDeleteDisabled_$()||this.quickInputDeleteConfirmOpen_$.set(!0)}handleQuickInputDeleteConfirmClosed(){this.quickInputDeleteConfirmOpen_$.set(!1)}handleConfirmDeleteQuickInput(){return A(this,null,function*(){let e=this.selectedItem_$(),n=String(e?.projectId??"").trim();if(!(!e||!n.length)){this.deleteQuickInputBusy_$.set(!0);try{if(!(yield this.userInput_DS.deleteQuickInput({pathProjectId:n,quickInputId:e.quickInputId}))){this.globalError_CS.showError(new Error("Quick input DELETE failed"),"ccap-quick-input-delete");return}this.quickInputDeleteConfirmOpen_$.set(!1),this.userInput_DS.closeQuickInputActionsModal()}finally{this.deleteQuickInputBusy_$.set(!1)}}})}openGenericConfirm(e,n,i,a){this.genericConfirmTitle_$.set(e),this.genericConfirmBody_$.set(n),this.genericConfirmButtonLabel_$.set(i),this.pendingGenericConfirmAction_=a,this.genericConfirmOpen_$.set(!0)}handleGenericConfirm(){return A(this,null,function*(){if(this.pendingGenericConfirmAction_){this.genericConfirmBusy_$.set(!0);try{yield this.pendingGenericConfirmAction_()}catch(e){this.globalError_CS.showError(e,"ccap-quick-input-generic-confirm")}finally{this.genericConfirmBusy_$.set(!1),this.genericConfirmOpen_$.set(!1),this.pendingGenericConfirmAction_=null}}})}handleGenericConfirmClosed(){this.genericConfirmOpen_$.set(!1),this.pendingGenericConfirmAction_=null}handlePostPromotionDelete(){return A(this,null,function*(){let e=this.selectedItem_$(),n=String(e?.projectId??"").trim();if(!e||!n.length){this.postPromotionCleanupOpen_$.set(!1),this.userInput_DS.closeQuickInputActionsModal();return}this.postPromotionCleanupBusy_$.set(!0);try{(yield this.userInput_DS.deleteQuickInput({pathProjectId:n,quickInputId:e.quickInputId}))||this.globalError_CS.showError(new Error("Quick input DELETE failed during post-promotion cleanup"),"ccap-quick-input-post-promotion-delete")}finally{this.postPromotionCleanupBusy_$.set(!1),this.postPromotionCleanupOpen_$.set(!1),this.postPromotionCleanupRouteCmds_$.set(null),this.userInput_DS.closeQuickInputActionsModal()}})}handlePostPromotionKeep(){this.postPromotionCleanupOpen_$.set(!1),this.postPromotionCleanupRouteCmds_$.set(null),this.userInput_DS.closeQuickInputActionsModal()}handlePostPromotionGoToSession(){let e=this.postPromotionCleanupRouteCmds_$();this.postPromotionCleanupOpen_$.set(!1),this.postPromotionCleanupRouteCmds_$.set(null),this.userInput_DS.closeQuickInputActionsModal(),e&&this.router.navigate(e)}handlePostPromotionCleanupClosed(){this.postPromotionCleanupBusy_$()||this.handlePostPromotionKeep()}handleOpenSendToSession(e){return A(this,null,function*(){if(this.hubSendToSessionDisabled_$())return;let n=this.selectedItem_$();this.sendToSessionType_$.set(e),this.sendToSessionSelectedId_$.set(this.SEND_NEW_SESSION_VALUE),this.sendToSessionContent_$.set(n?.rawContent??""),this.sendToSessionBusy_$.set(!1),this.sendToSessionFeedback_$.set(""),this.sendToSessionOpen_$.set(!0);try{e===Q.caSession?yield Promise.all([this.caSession_DS.loadSessions(),this.newAgentSessionWorkspace_DS.refreshWorkspacePathPickerOptions()]):e===Q.ccSession?yield Promise.all([this.ccSession_DS.loadSessions(),this.newAgentSessionWorkspace_DS.refreshWorkspacePathPickerOptions()]):yield this.session_DS.loadSessions()}catch(i){this.globalError_CS.showError(i,"ccap-quick-input-send-to-session-load")}})}handleSendToSessionClosed(){this.sendToSessionOpen_$.set(!1),this.sendToSessionSelectedId_$.set(this.SEND_NEW_SESSION_VALUE),this.sendToSessionContent_$.set(""),this.sendToSessionFeedbackClearHandle!==void 0&&(clearTimeout(this.sendToSessionFeedbackClearHandle),this.sendToSessionFeedbackClearHandle=void 0)}handleConfirmSendToSession(){return A(this,null,function*(){let e=this.sendToSessionContent_$().trim();if(!e.length)return;let n=this.sendToSessionSelectedId_$().trim();if(n.length){this.sendToSessionBusy_$.set(!0);try{let i=this.sendToSessionType_$(),a=n===this.SEND_NEW_SESSION_VALUE,p=a?"":n;if(a){let x=this.selectedItem_$(),g=It.buildDisplayNameFromQuickInput({rawContent:e,title:x?.title});p=yield this.createNewSessionForSend(i,{displayName:g})}if(!p.length){this.globalError_CS.showError(new Error("Failed to resolve session id for send"),"ccap-quick-input-send-to-session-resolve");return}if(i===Q.caSession?yield this.caSession_DS.sendPrompt({sessionId:p,content:e}):i===Q.ccSession?yield this.ccSession_DS.sendPrompt({sessionId:p,content:e}):yield this.session_DS.sendMessageToSession({sessionId:p,content:e}),this.sendToSessionFeedback_$.set("Sent."),this.sendToSessionFeedbackClearHandle!==void 0&&clearTimeout(this.sendToSessionFeedbackClearHandle),this.sendToSessionFeedbackClearHandle=window.setTimeout(()=>{this.sendToSessionFeedback_$.set(""),this.sendToSessionFeedbackClearHandle=void 0},3*Ut.second),this.sendToSessionOpen_$.set(!1),a){let x=i===Q.caSession?"CA Session":i===Q.ccSession?"CC Session":"Session";this.postPromotionCleanupEntityLabel_$.set(x+" "+p);let g=i===Q.caSession?"/ca-session":i===Q.ccSession?"/cc-session":"/session";this.postPromotionCleanupRouteCmds_$.set([g,p]),this.postPromotionCleanupOpen_$.set(!0)}}catch(i){this.globalError_CS.showError(i,"ccap-quick-input-send-to-session")}finally{this.sendToSessionBusy_$.set(!1)}}})}createNewSessionForSend(e,n){return A(this,null,function*(){if(e===Q.caSession){let a=this.resolveDefaultWorkspacePath();return yield this.caSession_DS.createSession({workspacePath:a,label:n.displayName})}if(e===Q.ccSession){let a=this.resolveDefaultWorkspacePath();return yield this.ccSession_DS.createSession({workspacePath:a,label:n.displayName})}let i=yield this.session_DS.createSession({name:n.displayName});return String(i._id??"")})}resolveDefaultWorkspacePath(){let e=this.newAgentSessionWorkspace_DS.workspacePathPickerOptions_$();return e.length>0?e[0].path:""}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-quick-input-actions-modal"]],standalone:!0,features:[F],decls:39,vars:41,consts:[["maxWidth","5xl","headerBorderClass","border-ccapAccent/30",3,"closed","isOpen","title","zIndex"],[1,"text-sm","text-neutral-500"],[3,"closed","submitted","isOpen","isBusy","modalZIndex","prefillTitle","prefillDetails","prefillPriority"],["maxWidth","lg","headerBorderClass","border-neonRed/40",3,"closed","isOpen","title","zIndex"],["modal-footer","",1,"flex","flex-wrap","gap-3","px-4","py-3","border-t","border-neonRed/30"],["type","button",1,"px-4","py-2","rounded","bg-neonRed/90","text-neutral-950","text-sm","font-medium","hover:bg-neonRed","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button",1,"px-4","py-2","rounded","border","border-neutral-600","text-neutral-200","text-sm","hover:bg-neutral-800","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["maxWidth","lg","headerBorderClass","border-ccapAccent/30",3,"closed","isOpen","title","zIndex"],[1,"text-sm","text-neutral-300","mb-4"],["modal-footer","",1,"flex","flex-wrap","gap-3","px-4","py-3","border-t","border-neutral-700/60"],["type","button",1,"px-4","py-2","rounded","border","border-ccapAccent","text-ccapAccent","text-sm","font-medium","hover:bg-ccapAccent/10","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["maxWidth","lg","headerBorderClass","border-neonCyan/30",3,"closed","isOpen","title","zIndex"],[1,"flex","flex-col","gap-3"],["modal-footer","",1,"flex","flex-wrap","gap-3","px-4","py-3","border-t","border-neonCyan/30"],["type","button",1,"px-4","py-2","rounded","border","border-neonCyan/70","text-neonCyan","text-sm","font-medium","hover:bg-neonCyan/10","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["maxWidth","lg","headerBorderClass","border-neonCyan/30",3,"closed","isOpen","title","zIndex","closeOnBackdropClick"],[1,"text-sm","text-neonCyan/90","font-medium"],[1,"text-sm","text-neutral-300"],[1,"text-xs","text-neutral-500"],["type","button",1,"px-4","py-2","rounded","border","border-neonCyan/70","text-neonCyan","text-sm","font-medium","hover:bg-neonCyan/10","disabled:opacity-40","disabled:pointer-events-none",3,"disabled"],[1,"flex","flex-col","gap-4","text-sm","text-neutral-200"],[1,"flex","flex-col","gap-2"],[1,"flex","flex-col","gap-1"],[1,"flex","items-center","justify-between","gap-2","min-h-8"],[1,"text-xs","font-medium","text-neutral-400"],[1,"flex","items-center","gap-2","shrink-0"],[1,"text-xs","text-neonCyan/90"],["type","button","title","Copy raw content to clipboard","aria-label","Copy Quick Input raw content to clipboard",1,"p-1.5","rounded-md","border","border-neutral-600","text-neutral-300","hover:border-ccapAccent/50","hover:text-ccapAccent","hover:bg-neutral-800/80","transition-colors","duration-150","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"],["type","button","title","Edit raw content","aria-label","Edit Quick Input raw content",1,"p-1.5","rounded-md","border","border-neutral-600","text-neutral-300","hover:border-ccapAccent/50","hover:text-ccapAccent","hover:bg-neutral-800/80","transition-colors","duration-150",3,"click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"],[1,"rounded-lg","border","border-ccapAccent/30","bg-neutral-950/70","px-3","py-2.5","max-h-[min(40dvh,18rem)]","overflow-y-auto"],[1,"text-sm","text-neutral-100","whitespace-pre-wrap","break-words"],[1,"grid","grid-cols-[minmax(6rem,auto)_1fr]","gap-x-3","gap-y-2","text-xs","border","border-neutral-700/80","rounded-lg","bg-neutral-950/50","px-3","py-2.5"],[1,"text-neutral-500","shrink-0"],[1,"font-mono","text-neutral-300","break-all"],[1,"text-[10px]","uppercase","tracking-wide","px-1.5","py-0.5","rounded","border","border-neutral-600","text-neutral-400"],[1,"w-full","max-w-[14rem]","rounded-md","border","border-neutral-600","bg-neutral-900","px-2","py-1","text-xs","text-neutral-200","focus:outline-none","focus:border-ccapAccent/50",3,"ngModelChange","ngModel","disabled"],["value",""],[3,"value"],[1,"text-neutral-500","shrink-0","self-start","pt-1.5"],[1,"flex","flex-col","gap-1.5","min-w-0"],["type","text","placeholder","e.g. frontend/session",1,"w-full","max-w-md","rounded-md","border","border-neutral-600","bg-neutral-900","px-2","py-1","text-xs","text-neutral-200","font-mono","placeholder:text-neutral-600","focus:outline-none","focus:border-ccapAccent/50",3,"ngModelChange","ngModel","disabled"],[1,"flex","flex-wrap","items-center","gap-2"],["type","button","title","Persist the edited Area tag (triage grouping) on this Quick Input.",1,"px-2","py-1","rounded","border","border-ccapAccent/50","text-ccapAccent","text-xs","font-medium","hover:bg-ccapAccent/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],[1,"flex","flex-wrap","gap-2","items-center"],["type","text","placeholder","Add identifier",1,"flex-1","min-w-[10rem]","max-w-md","rounded-md","border","border-neutral-600","bg-neutral-900","px-2","py-1","text-xs","text-neutral-200","font-mono","placeholder:text-neutral-600","focus:outline-none","focus:border-ccapAccent/50",3,"ngModelChange","keydown.enter","ngModel","disabled"],["type","button","title","Append the typed identifier to the Elements draft list (Save elements to persist).",1,"px-2","py-1","rounded","border","border-neutral-600","text-xs","text-neutral-200","hover:border-ccapAccent/50","shrink-0","disabled:opacity-40",3,"click","disabled"],[1,"flex","flex-wrap","gap-1.5"],["type","button","title","Persist the edited Elements list (identifier tags) on this Quick Input.",1,"px-2","py-1","rounded","border","border-ccapAccent/50","text-ccapAccent","text-xs","font-medium","hover:bg-ccapAccent/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none","w-fit",3,"click","disabled"],[1,"text-neutral-300"],[1,"rounded-lg","border","border-neutral-700/60","bg-neutral-950/40","px-3","py-2"],[1,"flex","flex-col","gap-2","rounded-lg","border","border-neutral-700/80","bg-neutral-950/30","px-3","py-2.5"],["type","button","aria-label","Target project block \xF6sszecsuk\xE1sa / kinyit\xE1sa",1,"flex","items-center","gap-2","text-left","text-xs","font-medium","text-neutral-400","hover:text-ccapAccent","transition-colors",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"w-3","h-3","shrink-0","transition-transform"],["points","6 9 12 15 18 9"],[1,"rounded-lg","border","border-neutral-700/80","bg-neutral-950/30","px-3","py-2.5","flex","flex-col","gap-2"],["type","button","aria-label","Send to session block \xF6sszecsuk\xE1sa / kinyit\xE1sa",1,"flex","items-center","gap-2","text-left","text-xs","font-medium","text-neutral-400","hover:text-ccapAccent","transition-colors",3,"click"],[1,"text-xs","text-amber-400/90","border","border-amber-900/40","rounded","px-2","py-1.5"],[1,"flex","flex-col","gap-1.5"],[1,"flex","flex-col","gap-1","w-full","sm:w-auto","sm:self-start"],["type","button","title","Permanently delete this Quick Input from the list. Requires confirm; disabled after promotion.",1,"px-2","py-1.5","rounded","border","border-neonRed/45","text-neonRed/90","text-xs","font-medium","hover:bg-neonRed/10","transition-colors","text-left","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],[1,"text-xs","text-neutral-500","max-w-md"],[1,"rounded-lg","border","border-neutral-700/80","bg-neutral-950/25","px-3","py-2.5","flex","flex-col","gap-2"],["type","button","aria-label","Project-related promotion block \xF6sszecsuk\xE1sa / kinyit\xE1sa",1,"flex","items-center","gap-2","text-left","text-xs","font-medium","text-neutral-300","hover:text-ccapAccent","transition-colors",3,"click"],[1,"inline-flex","items-center","gap-1","pl-2","pr-1","py-0.5","rounded","border","border-neutral-600","bg-neutral-900/80","text-[11px]","font-mono","text-neutral-300","max-w-full"],[1,"truncate","max-w-[12rem]"],["type","button","title","Remove","aria-label","Remove element",1,"p-0.5","rounded","text-neutral-500","hover:text-red-400","shrink-0",3,"click","disabled"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-3","h-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],[1,"text-[10px]","uppercase","tracking-wide","text-neutral-500"],[1,"text-xs","text-neutral-400","mt-1","whitespace-pre-wrap","break-words"],[1,"w-full","rounded-md","border","border-neutral-600","bg-neutral-900","px-2","py-1.5","text-sm","text-neutral-200","focus:outline-none","focus:border-ccapAccent/50",3,"ngModelChange","ngModel"],[1,"flex","flex-wrap","gap-2"],["type","button","title","Run an LLM classification on the raw content; fills predicted type, clean description, and staging priority.",1,"px-2","py-1","rounded","border","border-neonCyan/45","text-neonCyan/90","text-xs","font-medium","hover:bg-neonCyan/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Copy the LLM prediction (task difficulty, priority, area) into the editable hub fields without persisting yet.",1,"px-2","py-1","rounded","border","border-neutral-600","text-neutral-200","text-xs","font-medium","hover:border-ccapAccent/50","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Persist the selected target project as this Quick Input's home project (required before promotion).",1,"px-2","py-1","rounded","border","border-ccapAccent/50","text-ccapAccent","text-xs","font-medium","hover:bg-ccapAccent/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],[1,"text-xs","text-amber-400/90","border","border-amber-900/30","rounded","px-2","py-1"],["type","button","title","Send the raw content as a prompt to a CA (Cursor ACP) session you pick in the next step.",1,"px-2","py-1","rounded","border","border-neonCyan/45","text-neonCyan/90","text-xs","font-medium","hover:bg-neonCyan/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Send the raw content as a prompt to a CC (Claude Code) session you pick in the next step.",1,"px-2","py-1","rounded","border","border-neonCyan/45","text-neonCyan/90","text-xs","font-medium","hover:bg-neonCyan/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Send the raw content as a user message to a CCAP Session (the internal agent) you pick in the next step.",1,"px-2","py-1","rounded","border","border-neonCyan/45","text-neonCyan/90","text-xs","font-medium","hover:bg-neonCyan/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],[1,"text-xs","text-amber-400/85","border","border-amber-900/35","rounded","px-2","py-1.5"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-1.5"],["type","button","title","Open the multi-step AI-assisted USER-INPUT wizard; guides refinement before promotion.",1,"px-2","py-1.5","rounded","border","border-ccapAccent/50","text-ccapAccent","text-xs","font-medium","hover:bg-ccapAccent/10","transition-colors","text-left","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Directly finalize the promotion (skip the wizard): converts the draft into a USER-INPUT entry on the target project.",1,"px-2","py-1.5","rounded","border","border-neutral-500","text-neutral-200","text-xs","font-medium","hover:border-neonCyan/50","transition-colors","text-left","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Promote this Quick Input directly into a BUG entry on the target project.",1,"px-2","py-1.5","rounded","border","border-neonRed/40","text-neonRed/90","text-xs","font-medium","hover:bg-neonRed/10","transition-colors","text-left","disabled:opacity-40","sm:col-span-2","disabled:pointer-events-none",3,"click","disabled"],[1,"text-xs","text-neutral-400"],["type","text","maxlength","200","placeholder","Leave empty to fall back to QI- + raw content snippet",1,"w-full","rounded","border","border-neutral-600","bg-neutral-900","px-3","py-2","text-sm","text-neutral-100",3,"ngModelChange","ngModel"],["rows","10",1,"w-full","rounded","border","border-neutral-600","bg-neutral-900","px-3","py-2","text-sm","text-neutral-100","font-mono","resize-y","min-h-[160px]",3,"ngModelChange","ngModel"],[1,"flex","flex-col","gap-2","items-end"],[1,"text-xs","text-neutral-500","w-full","text-left"],[1,"flex","flex-wrap","gap-2","justify-end","w-full"],["type","button",1,"px-3","py-1.5","text-xs","rounded","border","border-neutral-600","text-neutral-300","hover:bg-neutral-800",3,"click"],["type","button",1,"px-3","py-1.5","text-xs","rounded","border","border-ccapAccent","text-ccapAccent","hover:bg-ccapAccent/10","disabled:opacity-40",3,"click","disabled"],["type","button",1,"self-start","px-2","py-1","text-xs","text-neutral-400","hover:text-neutral-200","border","border-transparent","hover:border-neutral-700","rounded","mb-2",3,"click"],[3,"projectId","isEmbeddedInModal","quickInputDraftId","initialRawContent","initialStagingPriority","skipSuggestMode"],[1,"text-xs","text-neutral-500","border","border-neutral-700","rounded","px-2","py-2"],[3,"wizardFinalizeSuccess","projectId","isEmbeddedInModal","quickInputDraftId","initialRawContent","initialStagingPriority","skipSuggestMode"],[1,"text-sm","text-neutral-300","mb-2"],[1,"text-xs","text-neutral-500","mb-1"],[1,"text-xs","font-mono","text-neutral-400","break-all","mb-4"],[1,"rounded-md","border","border-neutral-600","bg-neutral-900","max-h-64","overflow-y-auto"],["searchPlaceholder","Keres\xE9s sessionre\u2026",3,"selected","kind","rows","activeId"],["rows","6",1,"w-full","rounded","border","border-neutral-600","bg-neutral-900","px-3","py-2","text-sm","text-neutral-100","font-mono","resize-y","min-h-[100px]",3,"ngModelChange","ngModel"],[1,"font-mono","text-neutral-400"]],template:function(n,i){if(n&1&&(o(0,"app-s-modal",0),m("closed",function(){return i.handleMainModalClosed()}),h(1,Js,4,1)(2,el,2,0,"p",1),r(),o(3,"app-pm-manual-bug-modal",2),m("closed",function(){return i.handleBugModalClosed()})("submitted",function(p){return i.handleBugSubmitted(p)}),r(),o(4,"app-s-modal",3),m("closed",function(){return i.handleQuickInputDeleteConfirmClosed()}),h(5,tl,6,1),o(6,"div",4)(7,"button",5),m("click",function(){return i.handleConfirmDeleteQuickInput()}),c(8),r(),o(9,"button",6),m("click",function(){return i.handleQuickInputDeleteConfirmClosed()}),c(10," Cancel "),r()()(),o(11,"app-s-modal",7),m("closed",function(){return i.handleGenericConfirmClosed()}),o(12,"p",8),c(13),r(),o(14,"div",9)(15,"button",10),m("click",function(){return i.handleGenericConfirm()}),c(16),r(),o(17,"button",6),m("click",function(){return i.handleGenericConfirmClosed()}),c(18," Cancel "),r()()(),o(19,"app-s-modal",11),m("closed",function(){return i.handleSendToSessionClosed()}),h(20,nl,10,4,"div",12),o(21,"div",13)(22,"button",14),m("click",function(){return i.handleConfirmSendToSession()}),c(23),r(),o(24,"button",6),m("click",function(){return i.handleSendToSessionClosed()}),c(25," Cancel "),r()()(),o(26,"app-s-modal",15),m("closed",function(){return i.handlePostPromotionCleanupClosed()}),o(27,"div",12)(28,"p",16),c(29),r(),o(30,"p",17),c(31," Would you like to delete this Quick Input now, or keep it for reference? "),r(),h(32,il,4,1,"p",18),r(),o(33,"div",9),h(34,ol,2,1,"button",19),o(35,"button",5),m("click",function(){return i.handlePostPromotionDelete()}),c(36),r(),o(37,"button",10),m("click",function(){return i.handlePostPromotionKeep()}),c(38," Keep "),r()()()),n&2){let a,p,x,g;_("isOpen",i.userInput_DS.quickInputActionsModalOpen_$())("title",i.mainModalTitle_$())("zIndex",i.quickInputOverlayModalZIndex_Value),l(),u((a=i.selectedItem_$())?1:2,a),l(2),_("isOpen",i.manualBugModalOpen_$())("isBusy",i.manualBugBusy_$())("modalZIndex",i.quickInputOverlayModalZIndex_Value)("prefillTitle",i.bugPrefillTitle_$())("prefillDetails",i.bugPrefillDetails_$())("prefillPriority",i.wizardStagingPriority_$()),l(),_("isOpen",i.quickInputDeleteConfirmOpen_$())("title","Delete quick input?")("zIndex",i.quickInputOverlayModalZIndex_Value),l(),u((p=i.selectedItem_$())?5:-1,p),l(2),_("disabled",i.deleteQuickInputBusy_$()||i.hubDeleteDisabled_$()),l(),w(" ",i.deleteQuickInputBusy_$()?"Deleting\u2026":"Delete"," "),l(),_("disabled",i.deleteQuickInputBusy_$()),l(2),_("isOpen",i.genericConfirmOpen_$())("title",i.genericConfirmTitle_$())("zIndex",i.quickInputOverlayModalZIndex_Value),l(2),$(i.genericConfirmBody_$()),l(2),_("disabled",i.genericConfirmBusy_$()),l(),w(" ",i.genericConfirmBusy_$()?"Working\u2026":i.genericConfirmButtonLabel_$()," "),l(),_("disabled",i.genericConfirmBusy_$()),l(2),_("isOpen",i.sendToSessionOpen_$())("title",i.sendToSessionModalTitle_$())("zIndex",i.quickInputOverlayModalZIndex_Value),l(),u((x=i.selectedItem_$())?20:-1,x),l(2),_("disabled",i.sendToSessionConfirmDisabled_$()),l(),w(" ",i.sendToSessionBusy_$()?"Sending\u2026":"Send"," "),l(),_("disabled",i.sendToSessionBusy_$()),l(2),_("isOpen",i.postPromotionCleanupOpen_$())("title","Quick Input cleanup")("zIndex",i.quickInputOverlayModalZIndex_Value)("closeOnBackdropClick",!i.postPromotionCleanupBusy_$()),l(3),w(" ",i.postPromotionCleanupEntityLabel_$()," successfully created. "),l(3),u((g=i.selectedItem_$())?32:-1,g),l(2),u(i.postPromotionCleanupRouteCmds_$()?34:-1),l(),_("disabled",i.postPromotionCleanupBusy_$()),l(),w(" ",i.postPromotionCleanupBusy_$()?"Deleting\u2026":"Delete Quick Input"," "),l(),_("disabled",i.postPromotionCleanupBusy_$())}},dependencies:[j,lt,te,ut,_t,de,pt,pe,mn,ue,$e,Dn,Mn,$n],encapsulation:2})}return t})();var wt=(()=>{class t{static PICKER_ROOT_ATTR="data-ccap-qi-dom-picker-root";static TOKEN_MAX_LENGTH=120;static isUnderQuickInputChrome(e){return e===null?!0:e.closest("app-ccap-user-input-fab")!==null||e.closest("app-ccap-user-input-panel")!==null||e.closest("app-ccap-quick-input-actions-modal")!==null||e.closest(`[${t.PICKER_ROOT_ATTR}]`)!==null}static resolvePickTargetAtPoint(e){let n=e.doc.elementsFromPoint(e.clientX,e.clientY);for(let i of n){if(!(i instanceof HTMLElement)||t.isUnderQuickInputChrome(i)||!String(i.id??"").trim().length)continue;let p=i.localName.toLowerCase();if(!(p==="html"||p==="body"))return i}return null}static buildElementsListTokenFromElement(e){let n=e.localName.toLowerCase(),i=e.id.trim(),a=`dom:${n}#${i}`,p=e.classList;if(p.length>0){let x=[];for(let T=0;T<p.length&&x.length<2;T++){let E=String(p.item(T)??"").trim();E.length&&x.push(E)}x.length>0&&(a=`${a}.${x.join(".")}`)}return a.length<=t.TOKEN_MAX_LENGTH?a:a.slice(0,t.TOKEN_MAX_LENGTH)}static buildHoverLabelForElement(e){let n=e.id.trim(),i=e.localName.toLowerCase();return`#${n} \xB7 ${i}`}}return t})();function al(t,s){if(t&1&&(o(0,"div",2),c(1),r()),t&2){let e=d(2);_("ngStyle",s),l(),w(" ",e.userInput_DS.quickInputDomPickHoverLabel_$()," ")}}function sl(t,s){if(t&1&&(b(0,"div",1),h(1,al,2,2,"div",2)),t&2){let e,n=d();_("ngStyle",s),l(),u((e=n.domPickLabelStyle_$())?1:-1,e)}}var Et=(()=>{class t{userInput_DS=y(G);destroyRef=y(qt);domPickZIndexValue=di;pendingClientX=0;pendingClientY=0;isRafScheduled=!1;lastHoverTarget=null;domPickHighlightBoxStyle_$=v(()=>{let e=this.userInput_DS.quickInputDomPickHoverRect_$();return e===null?null:{top:`${e.topPx}px`,left:`${e.leftPx}px`,width:`${e.widthPx}px`,height:`${e.heightPx}px`}});domPickLabelStyle_$=v(()=>{let e=this.userInput_DS.quickInputDomPickHoverRect_$();return e===null?null:{top:`${Math.max(0,e.topPx-22-4)}px`,left:`${e.leftPx}px`,maxWidth:"min(24rem, calc(100vw - 1rem))"}});constructor(){if(typeof window>"u")return;let e=a=>{this.pendingClientX=a.clientX,this.pendingClientY=a.clientY,!this.isRafScheduled&&(this.isRafScheduled=!0,window.requestAnimationFrame(()=>{this.isRafScheduled=!1,this.applyHoverAtPoint(this.pendingClientX,this.pendingClientY)}))},n=a=>{if(!this.userInput_DS.quickInputDomPickActive_$()||!this.userInput_DS.isPanelOpen_$()||!this.userInput_DS.selectedProjectIsCcapRevisionedHost_$()||this.lastHoverTarget===null)return;a.preventDefault(),a.stopImmediatePropagation();let p=wt.buildElementsListTokenFromElement(this.lastHoverTarget);this.userInput_DS.appendQuickInputComposerElement(p),this.userInput_DS.requestComposerDraftPersistBump()},i=a=>{a.key==="Escape"&&this.userInput_DS.quickInputDomPickActive_$()&&this.userInput_DS.setQuickInputDomPickActive(!1)};window.addEventListener("mousemove",e,{passive:!0}),window.addEventListener("click",n,!0),window.addEventListener("keydown",i),this.destroyRef.onDestroy(()=>{window.removeEventListener("mousemove",e),window.removeEventListener("click",n,!0),window.removeEventListener("keydown",i)})}applyHoverAtPoint(e,n){if(!this.userInput_DS.quickInputDomPickActive_$()||!this.userInput_DS.isPanelOpen_$()||!this.userInput_DS.selectedProjectIsCcapRevisionedHost_$()){this.lastHoverTarget=null,this.userInput_DS.setQuickInputDomPickHoverPreview({rect:null,label:""});return}let i=wt.resolvePickTargetAtPoint({clientX:e,clientY:n,doc:document});if(this.lastHoverTarget=i,i===null){this.userInput_DS.setQuickInputDomPickHoverPreview({rect:null,label:""});return}let a=i.getBoundingClientRect();this.userInput_DS.setQuickInputDomPickHoverPreview({rect:{topPx:a.top,leftPx:a.left,widthPx:a.width,heightPx:a.height},label:wt.buildHoverLabelForElement(i)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-quick-input-dom-picker-overlay"]],standalone:!0,features:[F],decls:2,vars:4,consts:[[1,"pointer-events-none","fixed","inset-0","w-screen","h-screen"],[1,"pointer-events-none","fixed","rounded","border-2","border-neonCyan","shadow-[0_0_0_1px_rgba(34,211,238,0.35)]","bg-neonCyan/5",3,"ngStyle"],[1,"pointer-events-none","fixed","z-[1]","px-1.5","py-0.5","rounded","border","border-neonCyan/80","bg-neutral-950/95","text-[11px]","font-mono","text-neonCyan","shadow-md","truncate",3,"ngStyle"]],template:function(n,i){if(n&1&&(o(0,"div",0),h(1,sl,2,2),r()),n&2){let a;nt("z-index",i.domPickZIndexValue),q("data-ccap-qi-dom-picker-root",""),l(),u((a=i.userInput_DS.quickInputDomPickActive_$()&&i.domPickHighlightBoxStyle_$())?1:-1,a)}},dependencies:[j,Ie],encapsulation:2})}return t})();function cl(t,s){t&1&&b(0,"app-ccap-user-input-panel")}var pi=(()=>{class t{title="ccap-revisioned";userInput_DS=y(G);presenceSubscriber_CS=y(On);constructor(){this.presenceSubscriber_CS.initialize()}quickInputAppHostStyle_$=v(()=>{let e=this.userInput_DS.quickInputMainBoundsPx_$();return{top:`${e.topPx}px`,left:`${e.leftPx}px`,width:`${e.widthPx}px`,height:`${e.heightPx}px`}});static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-root"]],decls:8,vars:2,consts:[[1,"fixed","pointer-events-none","z-[10050]",3,"ngStyle"],[1,"relative","w-full","h-full","pointer-events-none"]],template:function(n,i){n&1&&(b(0,"app-ccap-main-frame")(1,"app-ccap-server-unavailable-overlay"),o(2,"div",0)(3,"div",1),b(4,"app-ccap-quick-input-dom-picker-overlay")(5,"app-ccap-user-input-fab"),h(6,cl,1,0,"app-ccap-user-input-panel"),b(7,"app-ccap-quick-input-actions-modal"),r()()),n&2&&(l(2),_("ngStyle",i.quickInputAppHostStyle_$()),l(4),u(i.userInput_DS.isPanelOpen_$()?6:-1))},dependencies:[Ie,St,vt,ri,kt,Tt,Et],encapsulation:2})}return t})();var dl=[{path:"",loadChildren:()=>import("./dashboard.module-SPGBUCMD.js").then(t=>t.Dashboard_Module)},{path:"setup",loadChildren:()=>import("./setup.module-WDIRWV32.js").then(t=>t.Setup_Module)},{path:"settings",loadChildren:()=>import("./set.module-DSD6PIYI.js").then(t=>t.Settings_Module)},{path:"model-registry",loadChildren:()=>import("./model-registry.module-A35YFVEE.js").then(t=>t.ModelRegistry_Module)},{path:"cost-tracking",loadChildren:()=>import("./ct.module-Y4TCJ6NH.js").then(t=>t.CostTracking_Module)},{path:"costs",loadChildren:()=>import("./ct-costs.module-A7FMQDTT.js").then(t=>t.Costs_Module)},{path:"embedding-registry",loadChildren:()=>import("./embedding-registry.module-4KH7QGE5.js").then(t=>t.EmbeddingRegistry_Module)},{path:"embedding-model-registry",redirectTo:"embedding-registry",pathMatch:"prefix"},{path:"document-library",loadChildren:()=>import("./document-library.module-HX5BXVZ2.js").then(t=>t.DocumentLibrary_Module)},{path:"project-source",loadChildren:()=>import("./project-source-routed.module-CJB4YJND.js").then(t=>t.ProjectSource_RoutedModule)},{path:"embedding-eval",loadChildren:()=>import("./embedding-eval.module-BZ7QMCT5.js").then(t=>t.EmbeddingEval_Module)},{path:"session",loadChildren:()=>import("./session.module-DEIGFE2V.js").then(t=>t.Session_Module)},{path:"errors",loadChildren:()=>import("./err.module-M4E27OWR.js").then(t=>t.Errors_Module)},{path:"feedback",loadChildren:()=>import("./feedback.module-E7FYACM4.js").then(t=>t.Feedback_Module)},{path:"logs",loadChildren:()=>import("./logs.module-KONMW55W.js").then(t=>t.Logs_Module)},{path:"host-runtime-mcp",loadChildren:()=>import("./host-runtime-mcp.module-AV3EO5I3.js").then(t=>t.HostRuntimeMcp_Module)},{path:"voice-notes-poc",loadChildren:()=>import("./voice-notes-poc.module-UWGARHN5.js").then(t=>t.VoiceNotesPoc_Module)},{path:"master-control-remote-poc",loadChildren:()=>import("./master-control-remote-poc.module-3KAKM6EL.js").then(t=>t.MasterControlRemotePoc_Module)},{path:"workflow-settings",loadChildren:()=>import("./wfs.module-XAEMCUIF.js").then(t=>t.WorkflowSettings_Module)},{path:"coordinator",loadChildren:()=>import("./crd.module-LO6GCSNU.js").then(t=>t.Coordinator_Module)},{path:"scheduler",loadChildren:()=>import("./scheduler.module-HEG5JCVO.js").then(t=>t.Scheduler_Module)},{path:"orchestrator",loadChildren:()=>import("./orc.module-4YGRTRV6.js").then(t=>t.Orchestrator_Module)},{path:"dark-office",loadChildren:()=>import("./do.module-KALYZEB6.js").then(t=>t.DarkOffice_Module)},{path:"project-management",loadChildren:()=>import("./project-management.module-LI3L4WCD.js").then(t=>t.ProjectManagement_Module)},{path:"cc-session",loadChildren:()=>import("./cc.module-IHZXPJ3G.js").then(t=>t.CcSession_Module)},{path:"cc-usage",loadComponent:()=>import("./cc-usage-dashboard.component-DAJMNYQD.js").then(t=>t.CC_UsageDashboard_Component)},{path:"mobile-app",loadChildren:()=>import("./mobile-app.module-C7IMUTOE.js").then(t=>t.MobileApp_Module)},{path:"oc-session",loadChildren:()=>import("./oc.module-XT7VDCSU.js").then(t=>t.OcSession_Module)},{path:"ca-session",loadChildren:()=>import("./ca.module-Y5FJIVDH.js").then(t=>t.CaSession_Module)},{path:"consultant",loadChildren:()=>import("./consultant.module-OCAX7KQT.js").then(t=>t.Consultant_Module)},{path:"agent-instances",loadChildren:()=>import("./agent-instances.module-NDNG4HC6.js").then(t=>t.AgentInstances_Module)},{path:"terminals",loadChildren:()=>import("./terminals.module-4KEH5NED.js").then(t=>t.Terminals_Module)},{path:"live-development-pipeline",loadChildren:()=>import("./live-dev-pipeline.module-EAH5255G.js").then(t=>t.LiveDevPipeline_Module)},{path:"system-status",redirectTo:"live-development-pipeline",pathMatch:"full"},{path:"**",redirectTo:""}],ui=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ze({type:t});static \u0275inj=Xe({imports:[Ce.forRoot(dl,{preloadingStrategy:dn}),Ce]})}return t})();var xe=Ve(Qe());function pl(t){return t.includes("/errors")}var _i=(t,s)=>{let e=y(ne),n=y(bn);return s(t).pipe(Ht(i=>{if(i instanceof Jt){let a=pl(t.url);if(e.isErrorHandlingInProgress())xe.DyFM_Error.logSimple("[CCAP HTTP error] re-entrant, only log",i);else if(a)xe.DyFM_Error.logSimple("[CCAP HTTP error] errors API failure, only log",i);else if(i.status===0)xe.DyFM_Error.logSimple("[CCAP HTTP error] status 0 (no response), only log",i);else{e.beginErrorHandling();try{let x=e.buildReportPayloadFromError(i,"client-http");e.showError(i),n.reportError(x).catch(()=>{}),xe.DyFM_Error.logSimple("[CCAP HTTP error] "+x.message,i)}catch(x){xe.DyFM_Log.error("CCAP error interceptor failed",x)}finally{e.endErrorHandling()}}}return Bt(()=>i)}))};var Lt=Ve(Qe());var mi=(()=>{class t extends et{globalError_CS=y(ne);constructor(){super()}handleError(e){try{if(this.globalError_CS.isErrorHandlingInProgress()){Lt.DyFM_Log.error("CCAP GlobalError_Handler re-entrant, only log",e),super.handleError(e);return}this.globalError_CS.beginErrorHandling();try{this.globalError_CS.showError(e,"client-global")}finally{this.globalError_CS.endErrorHandling()}}catch(n){Lt.DyFM_Log.error("CCAP GlobalError_Handler failed",n)}super.handleError(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ci=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ze({type:t,bootstrap:[pi]});static \u0275inj=Xe({providers:[tn(nn([_i])),{provide:et,useClass:mi}],imports:[rn,te,Ce,ui,ie,St,vt,kt,Tt,Et]})}return t})();function ul(){return typeof window.Capacitor<"u"&&window.Capacitor.isNativePlatform?.()===!0}var _l=new URL(window.location.href);if(ul()){let t=localStorage.getItem("ccap-server-url");B.baseUrl=t??"http://localhost:39050"}else B.baseUrl=_l.origin;B.api.baseUrl=B.baseUrl+"/api";var Nt=3,ml=800;function Cl(t){return fetch(t).then(s=>s.json())}function fl(){on().bootstrapModule(Ci).then(()=>{fi()}).catch(t=>{At.DyFM_Log.H_error(`CCAP Revisioned client init error
6
+ `,t),fi()})}var hl=300,xl=320;function fi(){requestAnimationFrame(()=>{requestAnimationFrame(()=>{let t=document.getElementById("ccap-splash");t&&(t.classList.add("ccap-splash--fade-out"),setTimeout(()=>{t.remove()},xl)),window.Capacitor?.Plugins?.SplashScreen?.hide?.({fadeOutDuration:hl})})})}var hi="ccap-boot-status-error";function xi(t){let s=B.baseUrl,e=s+"/api/server/status";Cl(e).then(n=>{let i=typeof n.httpPort=="number"&&n.httpPort>0?n.httpPort:void 0,a=typeof n.socketPort=="number"&&n.socketPort>0?n.socketPort:void 0;B.socketUrl=an.computeSocketUrlFromStatus({httpPort:n.httpPort,socketPort:n.socketPort},s);try{localStorage.removeItem(hi)}catch{}At.DyFM_Log.info("CCAP_Socket | status ok, socketUrl set to",B.socketUrl)}).catch(n=>{if(t>=Nt){B.socketUrl=s;let i={targetUrl:e,errorName:n instanceof Error?n.name:"unknown",errorMessage:n instanceof Error?n.message:String(n),attempts:Nt,timestamp:new Date().toISOString()};try{localStorage.setItem(hi,JSON.stringify(i))}catch{}At.DyFM_Log.warn("CCAP_Socket | status fetch failed after retries, socketUrl fallback to",s,i)}else{setTimeout(()=>xi(t+1),ml);return}}).finally(()=>{(B.socketUrl!==void 0||t>=Nt)&&fl()})}function bl(){xi(0)}bl();
7
+ //# sourceMappingURL=main-4IV3NJMV.js.map