@futdevpro/ccap 1.1.3080 → 1.1.3091

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 (202) hide show
  1. package/client-dist/{agent-instances.module-T3FIPSNM.js → agent-instances.module-O4X2F7LQ.js} +2 -2
  2. package/client-dist/{ca.module-SERHUBQ4.js → ca.module-55I6KUEP.js} +2 -2
  3. package/client-dist/{cc-usage-dashboard.component-JOXT7BKW.js → cc-usage-dashboard.component-CQ7LFS2R.js} +2 -2
  4. package/client-dist/{cc.module-HXLPF5AR.js → cc.module-RPI65QBI.js} +2 -2
  5. package/client-dist/{chunk-D47FE53T.js → chunk-2MUJHI5A.js} +2 -2
  6. package/client-dist/{chunk-6RBMBOAL.js → chunk-2QSAR32U.js} +2 -2
  7. package/client-dist/{chunk-ZUABLPQU.js → chunk-3PWBQJ4M.js} +2 -2
  8. package/client-dist/{chunk-JAAFDVEO.js → chunk-3SDY7S56.js} +2 -2
  9. package/client-dist/chunk-4P4OUN3W.js +2 -0
  10. package/client-dist/chunk-4P4OUN3W.js.map +7 -0
  11. package/client-dist/{chunk-AYMTESIQ.js → chunk-66F6YPRF.js} +2 -2
  12. package/client-dist/{chunk-LI5BFFUF.js → chunk-6ALMEEKI.js} +2 -2
  13. package/client-dist/{chunk-FWJC7PZ5.js → chunk-6SYXRJL2.js} +2 -2
  14. package/client-dist/{chunk-ICSRQYOG.js → chunk-7A6FYQFJ.js} +2 -2
  15. package/client-dist/{chunk-LSG4FC4S.js → chunk-7GOR2GBC.js} +2 -2
  16. package/client-dist/{chunk-WBSH4VM3.js → chunk-7LWJBGL4.js} +2 -2
  17. package/client-dist/{chunk-RMWBPGDF.js → chunk-ALFIKH7E.js} +2 -2
  18. package/client-dist/{chunk-U6FT5DX6.js → chunk-B7U7QHU6.js} +2 -2
  19. package/client-dist/{chunk-RFR32U64.js → chunk-BQSN75P4.js} +2 -2
  20. package/client-dist/{chunk-TDNLCOTM.js → chunk-BT5EHOCQ.js} +2 -2
  21. package/client-dist/{chunk-SARFTVZD.js → chunk-CP5F6KVS.js} +2 -2
  22. package/client-dist/{chunk-AFIOQKJM.js → chunk-DAHSKF6G.js} +2 -2
  23. package/client-dist/{chunk-VZZRCCYJ.js → chunk-DTBXYUNS.js} +2 -2
  24. package/client-dist/{chunk-GCPHDFMB.js → chunk-ECB63DP7.js} +2 -2
  25. package/client-dist/{chunk-ZEACNG3V.js → chunk-ELA6J2TW.js} +2 -2
  26. package/client-dist/{chunk-P4ZNYMDK.js → chunk-EO3EZUUJ.js} +2 -2
  27. package/client-dist/{chunk-ADZQ7RWS.js → chunk-FGO677RH.js} +2 -2
  28. package/client-dist/{chunk-J5FHTYJI.js → chunk-H426VGC4.js} +2 -2
  29. package/client-dist/{chunk-EGDK3H4V.js → chunk-HBCFMIW2.js} +2 -2
  30. package/client-dist/{chunk-44LSDHLE.js → chunk-HGDZCCLA.js} +2 -2
  31. package/client-dist/{chunk-TQRFQTYL.js → chunk-I7ELHYQN.js} +2 -2
  32. package/client-dist/{chunk-TJZTR4ZA.js → chunk-IQKLEPPG.js} +2 -2
  33. package/client-dist/{chunk-OGLCZ5PF.js → chunk-IT32VCIH.js} +2 -2
  34. package/client-dist/{chunk-N3U7GSXB.js → chunk-K5SBQVP3.js} +2 -2
  35. package/client-dist/{chunk-HKFQB2DP.js → chunk-KNX6PXMA.js} +2 -2
  36. package/client-dist/{chunk-HKFQB2DP.js.map → chunk-KNX6PXMA.js.map} +1 -1
  37. package/client-dist/{chunk-QDWAQWHI.js → chunk-LSLNEGFB.js} +2 -2
  38. package/client-dist/{chunk-VS7XCNU4.js → chunk-N7GDFSBT.js} +2 -2
  39. package/client-dist/{chunk-P25XSELJ.js → chunk-NHTWNNA7.js} +2 -2
  40. package/client-dist/{chunk-SOM7BFLB.js → chunk-NJZDOSTR.js} +2 -2
  41. package/client-dist/{chunk-KIXP6BPF.js → chunk-NRLG6DK5.js} +2 -2
  42. package/client-dist/{chunk-ZPYMYX4G.js → chunk-O6YDDGMV.js} +2 -2
  43. package/client-dist/{chunk-PJUFFAQO.js → chunk-OF2ONF6M.js} +2 -2
  44. package/client-dist/{chunk-LE6MT4FU.js → chunk-QIJSGEFW.js} +2 -2
  45. package/client-dist/{chunk-3CNQKHOG.js → chunk-QSDRSULH.js} +2 -2
  46. package/client-dist/{chunk-4QJQ42Z2.js → chunk-ROFLYYQN.js} +2 -2
  47. package/client-dist/{chunk-NYTGXX6H.js → chunk-SBTGHAYK.js} +2 -2
  48. package/client-dist/{chunk-IHXS3RZI.js → chunk-SPEFMR4R.js} +2 -2
  49. package/client-dist/{chunk-BKZUZRTC.js → chunk-TBT57I7I.js} +2 -2
  50. package/client-dist/{chunk-UEJF4FN2.js → chunk-THHGLNFI.js} +2 -2
  51. package/client-dist/{chunk-GEMMP35S.js → chunk-TP7RKDPV.js} +2 -2
  52. package/client-dist/{chunk-EQP2GOHM.js → chunk-TRNNWPOH.js} +2 -2
  53. package/client-dist/{chunk-7UVQNGAS.js → chunk-TYWRMRAZ.js} +2 -2
  54. package/client-dist/{chunk-IM4THCNH.js → chunk-V5NW6HMC.js} +2 -2
  55. package/client-dist/{chunk-H6AWRT5Q.js → chunk-W3VVTZI7.js} +2 -2
  56. package/client-dist/{chunk-WH4AQVRT.js → chunk-W6XVJPUX.js} +2 -2
  57. package/client-dist/{chunk-RTI3MIMV.js → chunk-X6LQ5NDB.js} +2 -2
  58. package/client-dist/{chunk-HIZPGG42.js → chunk-XXCU3VRL.js} +2 -2
  59. package/client-dist/{chunk-TAEPIX4H.js → chunk-XYQGWUC4.js} +2 -2
  60. package/client-dist/{chunk-OQDWKISV.js → chunk-Y2L3PCW4.js} +2 -2
  61. package/client-dist/{chunk-3JNMH7S2.js → chunk-Z3RMRSY7.js} +2 -2
  62. package/client-dist/{chunk-Q5M3WLDQ.js → chunk-Z76NRHPI.js} +2 -2
  63. package/client-dist/{consultant.module-TMQIDQRI.js → consultant.module-E3VLLZDN.js} +2 -2
  64. package/client-dist/{crd.module-4WLV2OFB.js → crd.module-3RSUP6DI.js} +2 -2
  65. package/client-dist/{dashboard.module-IKIYOYBX.js → dashboard.module-PYBGY56O.js} +2 -2
  66. package/client-dist/{do.module-HCL5N6UW.js → do.module-PD25CGC7.js} +2 -2
  67. package/client-dist/{document-library.module-AL7ZLZAD.js → document-library.module-VAFSW6G6.js} +2 -2
  68. package/client-dist/{embedding-eval.module-QDFOESPD.js → embedding-eval.module-2CDS7F52.js} +2 -2
  69. package/client-dist/{embedding-registry.module-XUGDYKZR.js → embedding-registry.module-IZVNOH7A.js} +2 -2
  70. package/client-dist/{err.module-DVGALBD3.js → err.module-3NVH4NC7.js} +2 -2
  71. package/client-dist/{feedback.module-LFR2FOID.js → feedback.module-X5QXB76I.js} +2 -2
  72. package/client-dist/{host-runtime-mcp.module-LCBJZ6RC.js → host-runtime-mcp.module-DNDJGQ6T.js} +2 -2
  73. package/client-dist/index.html +1 -1
  74. package/client-dist/{live-dev-pipeline.module-4D2IPHP6.js → live-dev-pipeline.module-HFMV5IJN.js} +2 -2
  75. package/client-dist/{logs.module-MEPAEBYW.js → logs.module-FMAQMKQG.js} +2 -2
  76. package/client-dist/{main-PK5UCYRP.js → main-A3GB5DKS.js} +3 -3
  77. package/client-dist/{master-control-remote-poc.module-LLBVMF4X.js → master-control-remote-poc.module-6X42ODCA.js} +2 -2
  78. package/client-dist/{mobile-app.module-SDJ2NQM7.js → mobile-app.module-WVXOGJ44.js} +2 -2
  79. package/client-dist/{model-registry.module-ZQCHARJO.js → model-registry.module-VJWYB5V7.js} +2 -2
  80. package/client-dist/{oc.module-5NKEVNFH.js → oc.module-WMJBA6KT.js} +2 -2
  81. package/client-dist/{orc.module-MK5GH4GP.js → orc.module-3SBAFMI4.js} +2 -2
  82. package/client-dist/{project-management.module-Y5CAZ5HP.js → project-management.module-ATZOSRRL.js} +2 -2
  83. package/client-dist/project-source-routed.module-M5G7A42W.js +2 -0
  84. package/client-dist/{scheduler.module-2O7ZHXQZ.js → scheduler.module-EC7PAAAQ.js} +2 -2
  85. package/client-dist/{session.module-SYN2WJPA.js → session.module-FEBNYHS6.js} +2 -2
  86. package/client-dist/{set.module-TLGYA74I.js → set.module-MDPOOWNA.js} +2 -2
  87. package/client-dist/{setup.module-T6K3OZUU.js → setup.module-T7R5ZKVW.js} +2 -2
  88. package/client-dist/{terminals.module-ARGBB72C.js → terminals.module-TQNCPJ2W.js} +2 -2
  89. package/client-dist/{voice-notes-poc.module-GTOSJJ7N.js → voice-notes-poc.module-DBALDSBW.js} +2 -2
  90. package/client-dist/{wfs.module-OUVID73U.js → wfs.module-43UB5OI3.js} +2 -2
  91. package/package.json +1 -1
  92. package/server/build/src/_modules/ccap-agent/_modules/agent-core/_models/interfaces/conversation-messages/ac-message.interface.d.ts +10 -0
  93. package/server/build/src/_modules/ccap-agent/_modules/agent-core/_models/interfaces/conversation-messages/ac-message.interface.d.ts.map +1 -1
  94. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_collections/utils/ses-query-param.util.d.ts +8 -1
  95. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_collections/utils/ses-query-param.util.d.ts.map +1 -1
  96. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_collections/utils/ses-query-param.util.js +22 -1
  97. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_collections/utils/ses-query-param.util.js.map +1 -1
  98. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_collections/utils/ses-query-param.util.spec.js +21 -0
  99. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_collections/utils/ses-query-param.util.spec.js.map +1 -1
  100. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_enums/ses-archive-scope.type-enum.d.ts +18 -0
  101. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_enums/ses-archive-scope.type-enum.d.ts.map +1 -0
  102. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_enums/ses-archive-scope.type-enum.js +22 -0
  103. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_enums/ses-archive-scope.type-enum.js.map +1 -0
  104. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_models/interfaces/ses-messages-chunk-response.interface.d.ts +7 -3
  105. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_models/interfaces/ses-messages-chunk-response.interface.d.ts.map +1 -1
  106. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_routes/ccap-sessions.controller.d.ts.map +1 -1
  107. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_routes/ccap-sessions.controller.js +1 -0
  108. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_routes/ccap-sessions.controller.js.map +1 -1
  109. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_services/ses-conversation-chunk.data-service.spec.js +111 -0
  110. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_services/ses-conversation-chunk.data-service.spec.js.map +1 -1
  111. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_services/ses-conversation.data-service.d.ts +10 -4
  112. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_services/ses-conversation.data-service.d.ts.map +1 -1
  113. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_services/ses-conversation.data-service.js +23 -7
  114. package/server/build/src/_modules/ccap-agent/_modules/ccap-sessions/_services/ses-conversation.data-service.js.map +1 -1
  115. package/client-dist/chunk-X3UVLBOY.js +0 -2
  116. package/client-dist/chunk-X3UVLBOY.js.map +0 -7
  117. package/client-dist/project-source-routed.module-ZINEDOO3.js +0 -2
  118. /package/client-dist/{agent-instances.module-T3FIPSNM.js.map → agent-instances.module-O4X2F7LQ.js.map} +0 -0
  119. /package/client-dist/{ca.module-SERHUBQ4.js.map → ca.module-55I6KUEP.js.map} +0 -0
  120. /package/client-dist/{cc-usage-dashboard.component-JOXT7BKW.js.map → cc-usage-dashboard.component-CQ7LFS2R.js.map} +0 -0
  121. /package/client-dist/{cc.module-HXLPF5AR.js.map → cc.module-RPI65QBI.js.map} +0 -0
  122. /package/client-dist/{chunk-D47FE53T.js.map → chunk-2MUJHI5A.js.map} +0 -0
  123. /package/client-dist/{chunk-6RBMBOAL.js.map → chunk-2QSAR32U.js.map} +0 -0
  124. /package/client-dist/{chunk-ZUABLPQU.js.map → chunk-3PWBQJ4M.js.map} +0 -0
  125. /package/client-dist/{chunk-JAAFDVEO.js.map → chunk-3SDY7S56.js.map} +0 -0
  126. /package/client-dist/{chunk-AYMTESIQ.js.map → chunk-66F6YPRF.js.map} +0 -0
  127. /package/client-dist/{chunk-LI5BFFUF.js.map → chunk-6ALMEEKI.js.map} +0 -0
  128. /package/client-dist/{chunk-FWJC7PZ5.js.map → chunk-6SYXRJL2.js.map} +0 -0
  129. /package/client-dist/{chunk-ICSRQYOG.js.map → chunk-7A6FYQFJ.js.map} +0 -0
  130. /package/client-dist/{chunk-LSG4FC4S.js.map → chunk-7GOR2GBC.js.map} +0 -0
  131. /package/client-dist/{chunk-WBSH4VM3.js.map → chunk-7LWJBGL4.js.map} +0 -0
  132. /package/client-dist/{chunk-RMWBPGDF.js.map → chunk-ALFIKH7E.js.map} +0 -0
  133. /package/client-dist/{chunk-U6FT5DX6.js.map → chunk-B7U7QHU6.js.map} +0 -0
  134. /package/client-dist/{chunk-RFR32U64.js.map → chunk-BQSN75P4.js.map} +0 -0
  135. /package/client-dist/{chunk-TDNLCOTM.js.map → chunk-BT5EHOCQ.js.map} +0 -0
  136. /package/client-dist/{chunk-SARFTVZD.js.map → chunk-CP5F6KVS.js.map} +0 -0
  137. /package/client-dist/{chunk-AFIOQKJM.js.map → chunk-DAHSKF6G.js.map} +0 -0
  138. /package/client-dist/{chunk-VZZRCCYJ.js.map → chunk-DTBXYUNS.js.map} +0 -0
  139. /package/client-dist/{chunk-GCPHDFMB.js.map → chunk-ECB63DP7.js.map} +0 -0
  140. /package/client-dist/{chunk-ZEACNG3V.js.map → chunk-ELA6J2TW.js.map} +0 -0
  141. /package/client-dist/{chunk-P4ZNYMDK.js.map → chunk-EO3EZUUJ.js.map} +0 -0
  142. /package/client-dist/{chunk-ADZQ7RWS.js.map → chunk-FGO677RH.js.map} +0 -0
  143. /package/client-dist/{chunk-J5FHTYJI.js.map → chunk-H426VGC4.js.map} +0 -0
  144. /package/client-dist/{chunk-EGDK3H4V.js.map → chunk-HBCFMIW2.js.map} +0 -0
  145. /package/client-dist/{chunk-44LSDHLE.js.map → chunk-HGDZCCLA.js.map} +0 -0
  146. /package/client-dist/{chunk-TQRFQTYL.js.map → chunk-I7ELHYQN.js.map} +0 -0
  147. /package/client-dist/{chunk-TJZTR4ZA.js.map → chunk-IQKLEPPG.js.map} +0 -0
  148. /package/client-dist/{chunk-OGLCZ5PF.js.map → chunk-IT32VCIH.js.map} +0 -0
  149. /package/client-dist/{chunk-N3U7GSXB.js.map → chunk-K5SBQVP3.js.map} +0 -0
  150. /package/client-dist/{chunk-QDWAQWHI.js.map → chunk-LSLNEGFB.js.map} +0 -0
  151. /package/client-dist/{chunk-VS7XCNU4.js.map → chunk-N7GDFSBT.js.map} +0 -0
  152. /package/client-dist/{chunk-P25XSELJ.js.map → chunk-NHTWNNA7.js.map} +0 -0
  153. /package/client-dist/{chunk-SOM7BFLB.js.map → chunk-NJZDOSTR.js.map} +0 -0
  154. /package/client-dist/{chunk-KIXP6BPF.js.map → chunk-NRLG6DK5.js.map} +0 -0
  155. /package/client-dist/{chunk-ZPYMYX4G.js.map → chunk-O6YDDGMV.js.map} +0 -0
  156. /package/client-dist/{chunk-PJUFFAQO.js.map → chunk-OF2ONF6M.js.map} +0 -0
  157. /package/client-dist/{chunk-LE6MT4FU.js.map → chunk-QIJSGEFW.js.map} +0 -0
  158. /package/client-dist/{chunk-3CNQKHOG.js.map → chunk-QSDRSULH.js.map} +0 -0
  159. /package/client-dist/{chunk-4QJQ42Z2.js.map → chunk-ROFLYYQN.js.map} +0 -0
  160. /package/client-dist/{chunk-NYTGXX6H.js.map → chunk-SBTGHAYK.js.map} +0 -0
  161. /package/client-dist/{chunk-IHXS3RZI.js.map → chunk-SPEFMR4R.js.map} +0 -0
  162. /package/client-dist/{chunk-BKZUZRTC.js.map → chunk-TBT57I7I.js.map} +0 -0
  163. /package/client-dist/{chunk-UEJF4FN2.js.map → chunk-THHGLNFI.js.map} +0 -0
  164. /package/client-dist/{chunk-GEMMP35S.js.map → chunk-TP7RKDPV.js.map} +0 -0
  165. /package/client-dist/{chunk-EQP2GOHM.js.map → chunk-TRNNWPOH.js.map} +0 -0
  166. /package/client-dist/{chunk-7UVQNGAS.js.map → chunk-TYWRMRAZ.js.map} +0 -0
  167. /package/client-dist/{chunk-IM4THCNH.js.map → chunk-V5NW6HMC.js.map} +0 -0
  168. /package/client-dist/{chunk-H6AWRT5Q.js.map → chunk-W3VVTZI7.js.map} +0 -0
  169. /package/client-dist/{chunk-WH4AQVRT.js.map → chunk-W6XVJPUX.js.map} +0 -0
  170. /package/client-dist/{chunk-RTI3MIMV.js.map → chunk-X6LQ5NDB.js.map} +0 -0
  171. /package/client-dist/{chunk-HIZPGG42.js.map → chunk-XXCU3VRL.js.map} +0 -0
  172. /package/client-dist/{chunk-TAEPIX4H.js.map → chunk-XYQGWUC4.js.map} +0 -0
  173. /package/client-dist/{chunk-OQDWKISV.js.map → chunk-Y2L3PCW4.js.map} +0 -0
  174. /package/client-dist/{chunk-3JNMH7S2.js.map → chunk-Z3RMRSY7.js.map} +0 -0
  175. /package/client-dist/{chunk-Q5M3WLDQ.js.map → chunk-Z76NRHPI.js.map} +0 -0
  176. /package/client-dist/{consultant.module-TMQIDQRI.js.map → consultant.module-E3VLLZDN.js.map} +0 -0
  177. /package/client-dist/{crd.module-4WLV2OFB.js.map → crd.module-3RSUP6DI.js.map} +0 -0
  178. /package/client-dist/{dashboard.module-IKIYOYBX.js.map → dashboard.module-PYBGY56O.js.map} +0 -0
  179. /package/client-dist/{do.module-HCL5N6UW.js.map → do.module-PD25CGC7.js.map} +0 -0
  180. /package/client-dist/{document-library.module-AL7ZLZAD.js.map → document-library.module-VAFSW6G6.js.map} +0 -0
  181. /package/client-dist/{embedding-eval.module-QDFOESPD.js.map → embedding-eval.module-2CDS7F52.js.map} +0 -0
  182. /package/client-dist/{embedding-registry.module-XUGDYKZR.js.map → embedding-registry.module-IZVNOH7A.js.map} +0 -0
  183. /package/client-dist/{err.module-DVGALBD3.js.map → err.module-3NVH4NC7.js.map} +0 -0
  184. /package/client-dist/{feedback.module-LFR2FOID.js.map → feedback.module-X5QXB76I.js.map} +0 -0
  185. /package/client-dist/{host-runtime-mcp.module-LCBJZ6RC.js.map → host-runtime-mcp.module-DNDJGQ6T.js.map} +0 -0
  186. /package/client-dist/{live-dev-pipeline.module-4D2IPHP6.js.map → live-dev-pipeline.module-HFMV5IJN.js.map} +0 -0
  187. /package/client-dist/{logs.module-MEPAEBYW.js.map → logs.module-FMAQMKQG.js.map} +0 -0
  188. /package/client-dist/{main-PK5UCYRP.js.map → main-A3GB5DKS.js.map} +0 -0
  189. /package/client-dist/{master-control-remote-poc.module-LLBVMF4X.js.map → master-control-remote-poc.module-6X42ODCA.js.map} +0 -0
  190. /package/client-dist/{mobile-app.module-SDJ2NQM7.js.map → mobile-app.module-WVXOGJ44.js.map} +0 -0
  191. /package/client-dist/{model-registry.module-ZQCHARJO.js.map → model-registry.module-VJWYB5V7.js.map} +0 -0
  192. /package/client-dist/{oc.module-5NKEVNFH.js.map → oc.module-WMJBA6KT.js.map} +0 -0
  193. /package/client-dist/{orc.module-MK5GH4GP.js.map → orc.module-3SBAFMI4.js.map} +0 -0
  194. /package/client-dist/{project-management.module-Y5CAZ5HP.js.map → project-management.module-ATZOSRRL.js.map} +0 -0
  195. /package/client-dist/{project-source-routed.module-ZINEDOO3.js.map → project-source-routed.module-M5G7A42W.js.map} +0 -0
  196. /package/client-dist/{scheduler.module-2O7ZHXQZ.js.map → scheduler.module-EC7PAAAQ.js.map} +0 -0
  197. /package/client-dist/{session.module-SYN2WJPA.js.map → session.module-FEBNYHS6.js.map} +0 -0
  198. /package/client-dist/{set.module-TLGYA74I.js.map → set.module-MDPOOWNA.js.map} +0 -0
  199. /package/client-dist/{setup.module-T6K3OZUU.js.map → setup.module-T7R5ZKVW.js.map} +0 -0
  200. /package/client-dist/{terminals.module-ARGBB72C.js.map → terminals.module-TQNCPJ2W.js.map} +0 -0
  201. /package/client-dist/{voice-notes-poc.module-GTOSJJ7N.js.map → voice-notes-poc.module-DBALDSBW.js.map} +0 -0
  202. /package/client-dist/{wfs.module-OUVID73U.js.map → wfs.module-43UB5OI3.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as Ce}from"./chunk-LI5BFFUF.js";import{a as ve}from"./chunk-7JUIBZEE.js";import{a as we,b as xe,c as ke}from"./chunk-C7XPBJTG.js";import{e as Me,f as Te,g as Pe,i as De}from"./chunk-OQDWKISV.js";import{a as be}from"./chunk-WPHEQXWB.js";import{c as _e}from"./chunk-LE6MT4FU.js";import{a as he}from"./chunk-Q2NVIOCY.js";import{a as ye}from"./chunk-7UVQNGAS.js";import{a as Se}from"./chunk-ZBTWQZNB.js";import{a as ge}from"./chunk-FLAJXIYW.js";import{a as ue,c as E,e as fe,f as j,i as F,v as H}from"./chunk-EO4DNTT4.js";import{$a as K,C as O,Cb as me,D as g,E as Z,Fa as m,G as ee,Ga as x,Ha as $,J as R,K as B,L as I,M as N,Ma as ie,Na as re,O as te,Oa as ae,Pa as se,Qa as le,Ra as pe,Sa as de,T as y,Ta as _,U as i,W as z,Wa as v,Z as r,_ as ne,aa as X,ab as W,da as b,fa as M,fb as ce,ga as l,ha as oe,hb as d,ia as V,ja as S,la as h,mb as A,qa as a,ra as s,sa as D,ua as L,ub as f,va as C,wa as u,x as U,xa as T,ya as w,z as Q}from"./chunk-TBMJSIBB.js";var Ve=["*"];function Ne(t,p){if(t&1&&(a(0,"div",5),w(1),s()),t&2){let e=u();l("ngClass",e.spacingClassMap_$())}}var Ae=(()=>{class t{expanded=i.required();title=i.required();contentSpacingClass=i("space-y-3");panelClass=i("rounded-lg border border-neonDefault/60 bg-neutral-900/40");titleClass=i("text-base font-semibold text-neutral-200");spacingClassMap_$=d(()=>({[this.contentSpacingClass().trim()]:!0}));toggle=y();handleHeaderClick(){this.toggle.emit()}handleHeaderKeydownEnter(){this.toggle.emit()}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=g({type:t,selectors:[["app-s-settings-collapsible-panel"]],hostAttrs:[1,"block"],inputs:{expanded:[1,"expanded"],title:[1,"title"],contentSpacingClass:[1,"contentSpacingClass"],panelClass:[1,"panelClass"],titleClass:[1,"titleClass"]},outputs:{toggle:"toggle"},standalone:!0,features:[_],ngContentSelectors:Ve,decls:8,vars:12,consts:[[3,"ngClass"],["role","button","tabindex","0",1,"flex","items-center","gap-2","cursor-pointer","select-none",3,"click","keydown.enter"],["aria-hidden","true",1,"inline-flex","shrink-0","text-neutral-400"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"w-3.5","h-3.5","transition-transform","duration-150"],["points","6 9 12 15 18 9"],[1,"mt-3",3,"ngClass"]],template:function(o,n){o&1&&(T(),a(0,"div",0)(1,"div",1),C("click",function(){return n.handleHeaderClick()})("keydown.enter",function(){return n.handleHeaderKeydownEnter()}),a(2,"span",2),I(),a(3,"svg",3),D(4,"polyline",4),s()(),N(),a(5,"h3",0),m(6),s()(),b(7,Ne,2,1,"div",5),s()),o&2&&(V("p-4",n.expanded())("px-4",!n.expanded())("py-2",!n.expanded()),l("ngClass",n.panelClass()),r(3),V("-rotate-90",!n.expanded()),r(2),l("ngClass",n.titleClass()),r(),x(n.title()),r(),h(n.expanded()?7:-1))},dependencies:[f,A],encapsulation:2})}return t})();var ze=["*"];function Ke(t,p){if(t&1&&(a(0,"p",1),m(1),s()),t&2){let e=u();r(),x(e.subtitle())}}var Re=(()=>{class t{title=i.required();subtitle=i("");marginBottom=i("mb-6");hasSubtitle_$=d(()=>this.subtitle().trim().length>0);static \u0275fac=function(o){return new(o||t)};static \u0275cmp=g({type:t,selectors:[["app-s-page-header"]],hostAttrs:[1,"block"],inputs:{title:[1,"title"],subtitle:[1,"subtitle"],marginBottom:[1,"marginBottom"]},standalone:!0,features:[_],ngContentSelectors:ze,decls:7,vars:4,consts:[[1,"text-2xl","gt-xs:text-3xl","font-bold","text-neutral-100"],[1,"text-neutral-400","text-sm","gt-xs:text-base","mt-1"],[1,"flex","items-center","gap-2","shrink-0"]],template:function(o,n){o&1&&(T(),a(0,"header")(1,"div")(2,"h1",0),m(3),s(),b(4,Ke,2,1,"p",1),s(),a(5,"div",2),w(6),s()()),o&2&&(S("flex items-center justify-between gap-4 "+n.marginBottom()),r(3),x(n.title()),r(),h(n.hasSubtitle_$()?4:-1))},dependencies:[f],encapsulation:2})}return t})();function We(t,p){t&1&&(I(),a(0,"svg",3),D(1,"path",4),s())}function qe(t,p){t&1&&(I(),a(0,"svg",3),D(1,"path",5)(2,"path",6),s())}var Ie=(()=>{class t{placeholder=i("");disabled=i(!1);disabledByControl_$=X(!1);name=i("");autocomplete=i("off");dataBwignore=i(!1);suppressPasswordManagerAutofill=i(!1);inputClass=i("");blurEvent=y();visible_$=X(!1);inputType_$=d(()=>this.visible_$()?"text":"password");toggleAriaLabel_$=d(()=>this.visible_$()?"Jelsz\xF3 elrejt\xE9se":"Jelsz\xF3 megjelen\xEDt\xE9se");toggleTitle_$=d(()=>this.visible_$()?"Jelsz\xF3 elrejt\xE9se":"Jelsz\xF3 megjelen\xEDt\xE9se");isDisabled_$=d(()=>this.disabled()||this.disabledByControl_$());effectiveAutocomplete_$=d(()=>this.suppressPasswordManagerAutofill()?"new-password":this.autocomplete());effectiveDataBwignore_$=d(()=>this.dataBwignore()||this.suppressPasswordManagerAutofill());value="";onChange=()=>{};onTouched=()=>{};cdr=O(ce);injector=O(te);ngControl=null;ngOnInit(){this.ngControl=this.injector.get(fe,null,{optional:!0,self:!0}),this.ngControl!=null&&(this.ngControl.valueAccessor=this)}toggleVisible(){this.visible_$.update(e=>!e)}get innerValue(){return this.value}set innerValue(e){this.value!==e&&(this.value=e,this.onChange(e))}writeValue(e){this.value=e??"",this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabledByControl_$.set(e),this.cdr.markForCheck()}onBlur(){this.onTouched(),this.blurEvent.emit()}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=g({type:t,selectors:[["app-s-password-input"]],hostAttrs:[1,"block","min-w-0","flex-1"],inputs:{placeholder:[1,"placeholder"],disabled:[1,"disabled"],name:[1,"name"],autocomplete:[1,"autocomplete"],dataBwignore:[1,"dataBwignore"],suppressPasswordManagerAutofill:[1,"suppressPasswordManagerAutofill"],inputClass:[1,"inputClass"]},outputs:{blurEvent:"blurEvent"},standalone:!0,features:[de([{provide:ue,useExisting:U(()=>t),multi:!0}]),_],decls:5,vars:16,consts:[[1,"flex","flex-wrap","gap-2","items-center","min-w-0"],[3,"ngModelChange","blur","type","ngModel","name","placeholder","disabled"],["type","button",1,"shrink-0","w-9","h-9","flex","items-center","justify-center","rounded","border","border-neonDefault","text-neutral-400","hover:text-neonCyan","hover:shadow-neon-glow-cyan","hover:border-neonCyan","disabled:opacity-50","transition-colors",3,"click","disabled"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor","aria-hidden","true",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"],["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","M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"]],template:function(o,n){o&1&&(a(0,"div",0)(1,"input",1),ae("ngModelChange",function(k){return re(n.innerValue,k)||(n.innerValue=k),k}),C("blur",function(){return n.onBlur()}),s(),a(2,"button",2),C("click",function(){return n.toggleVisible()}),b(3,We,2,0,":svg:svg",3)(4,qe,3,0,":svg:svg",3),s()()),o&2&&(r(),S("flex-1 min-w-0 px-3 py-2 bg-neutral-800 border border-neonDefault rounded text-neutral-100 focus:shadow-neon-glow-cyan disabled:opacity-70 "+n.inputClass()),l("type",n.inputType_$()),ie("ngModel",n.innerValue),l("name",n.name())("placeholder",n.placeholder())("disabled",n.isDisabled_$()),M("autocomplete",n.effectiveAutocomplete_$())("data-bwignore",n.effectiveDataBwignore_$()?"1":null)("data-lpignore",n.suppressPasswordManagerAutofill()?"true":null)("data-1p-ignore",n.suppressPasswordManagerAutofill()?"true":null)("data-form-type",n.suppressPasswordManagerAutofill()?"other":null),r(),l("disabled",n.isDisabled_$()),M("aria-label",n.toggleAriaLabel_$())("title",n.toggleTitle_$()),r(),h(n.visible_$()?3:4))},dependencies:[f,H,E,j,F],encapsulation:2})}return t})();function Ge(t,p){if(t&1&&(a(0,"span",2),m(1," \u26A0\uFE0F "),s()),t&2){let e,o=u();M("title",(e=o.warningTooltip())!==null&&e!==void 0?e:"")}}function Je(t,p){if(t&1){let e=L();a(0,"button",5),C("click",function(){R(e);let n=u();return B(n.emitStartEdit())}),m(1," Szerkeszt\xE9s "),s()}}function Oe(t,p){if(t&1){let e=L();a(0,"button",6),C("click",function(){R(e);let n=u();return B(n.emitSave())}),m(1),s()}if(t&2){let e=u();l("disabled",e.saveDisabled()),r(),$(" ",e.saveButtonLabel_$()," ")}}var Le=(()=>{class t{name=i("");displayValue=i.required();placeholder=i("");editMode=i(!1);saveDisabled=i(!1);savePending=i(!1);saveLabel=i("Ment\xE9s");savePendingLabel=i("Ment\xE9s\u2026");warningTooltip=i(null);inputClass=i("");dataBwignore=i(!0);valueChange=y();startEdit=y();save=y();inputReadonly_$=d(()=>!this.editMode());showWarning_$=d(()=>{let e=this.warningTooltip();return e!=null&&e.trim().length>0});saveButtonLabel_$=d(()=>this.savePending()?this.savePendingLabel():this.saveLabel());inputClassCombined_$=d(()=>{let e="flex-1 min-w-0 px-3 py-2 font-mono text-sm bg-neutral-800 border border-neonDefault rounded text-neutral-100 focus:shadow-neon-glow-cyan",o=this.inputReadonly_$()?" opacity-90":"",n=this.inputClass().trim().length>0?" "+this.inputClass():"";return e+o+n});onDisplayValueChange(e){this.editMode()&&this.valueChange.emit(e)}emitStartEdit(){this.startEdit.emit()}emitSave(){this.save.emit()}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=g({type:t,selectors:[["app-s-settings-secret-key-row"]],hostAttrs:[1,"block"],inputs:{name:[1,"name"],displayValue:[1,"displayValue"],placeholder:[1,"placeholder"],editMode:[1,"editMode"],saveDisabled:[1,"saveDisabled"],savePending:[1,"savePending"],saveLabel:[1,"saveLabel"],savePendingLabel:[1,"savePendingLabel"],warningTooltip:[1,"warningTooltip"],inputClass:[1,"inputClass"],dataBwignore:[1,"dataBwignore"]},outputs:{valueChange:"valueChange",startEdit:"startEdit",save:"save"},standalone:!0,features:[_],decls:5,vars:9,consts:[[1,"flex","flex-wrap","gap-2","items-center"],["type","text",3,"ngModelChange","name","ngModel","readonly"],[1,"text-amber-300","text-sm"],["type","button",1,"px-4","py-2","border","border-neonCyan","rounded","text-neutral-300","hover:shadow-neon-glow-cyan","whitespace-nowrap"],["type","button",1,"px-4","py-2","bg-ccapAccent","text-white","rounded","whitespace-nowrap","disabled:opacity-50",3,"disabled"],["type","button",1,"px-4","py-2","border","border-neonCyan","rounded","text-neutral-300","hover:shadow-neon-glow-cyan","whitespace-nowrap",3,"click"],["type","button",1,"px-4","py-2","bg-ccapAccent","text-white","rounded","whitespace-nowrap","disabled:opacity-50",3,"click","disabled"]],template:function(o,n){o&1&&(a(0,"div",0)(1,"input",1),C("ngModelChange",function(k){return n.onDisplayValueChange(k)}),s(),b(2,Ge,2,1,"span",2)(3,Je,2,0,"button",3)(4,Oe,2,2,"button",4),s()),o&2&&(r(),S(n.inputClassCombined_$()),l("name",n.name())("ngModel",n.displayValue())("readonly",n.inputReadonly_$()),M("placeholder",n.placeholder())("data-bwignore",n.dataBwignore()?"true":null),r(),h(n.showWarning_$()?2:-1),r(),h(n.editMode()?4:3))},dependencies:[f,H,E,j,F],encapsulation:2})}return t})();var Xe=[[["","sComposerPrefix",""]],[["","sComposerTextareaAccessory",""]],[["","sComposerBelowTextarea",""]],[["","sComposerBeforeSend",""]]],Ye=["[sComposerPrefix]","[sComposerTextareaAccessory]","[sComposerBelowTextarea]","[sComposerBeforeSend]"],$e=(()=>{class t{draftText=i("");draftTextChange=y();isSending=i(!1);isSendDisabled=i(!1);placeholder=i("");textareaRows=i(3);sendButtonLabel=i("Send");sendingButtonLabel=i("\u2026");sendRequested=y();handleKeyDown(e){e.key!=="Enter"||e.shiftKey||(e.preventDefault(),this.emitSendIfAllowed())}handleSendClick(){this.emitSendIfAllowed()}emitSendIfAllowed(){this.isSending()||this.isSendDisabled()||this.sendRequested.emit()}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=g({type:t,selectors:[["app-s-session-prompt-composer"]],hostAttrs:[1,"block","shrink-0","border-t","border-neonDefault","bg-ccapSurface"],inputs:{draftText:[1,"draftText"],isSending:[1,"isSending"],isSendDisabled:[1,"isSendDisabled"],placeholder:[1,"placeholder"],textareaRows:[1,"textareaRows"],sendButtonLabel:[1,"sendButtonLabel"],sendingButtonLabel:[1,"sendingButtonLabel"]},outputs:{draftTextChange:"draftTextChange",sendRequested:"sendRequested"},standalone:!0,features:[_],ngContentSelectors:Ye,decls:11,vars:5,consts:[[1,"flex","flex-col","gap-2","p-2"],[1,"relative","min-w-0","w-full"],[1,"min-h-[60px]","max-h-[200px]","w-full","resize-none","rounded","border","border-neutral-700","bg-neutral-800","px-2","py-1.5","font-mono","text-xs","text-neutral-200","placeholder-neutral-600","focus:border-ccapAccent","focus:outline-none",3,"ngModelChange","keydown","placeholder","ngModel"],[1,"flex","flex-wrap","items-end","justify-end","gap-2"],["type","button",1,"px-3","py-1.5","text-xs","bg-ccapAccent","text-black","font-medium","rounded","hover:bg-ccapAccent/80","transition-colors","disabled:opacity-50","shrink-0",3,"click","disabled"]],template:function(o,n){o&1&&(T(Xe),a(0,"div",0),w(1),a(2,"div",1)(3,"textarea",2),C("ngModelChange",function(k){return n.draftTextChange.emit(k)})("keydown",function(k){return n.handleKeyDown(k)}),m(4," "),s(),w(5,1),s(),w(6,2),a(7,"div",3),w(8,3),a(9,"button",4),C("click",function(){return n.handleSendClick()}),m(10),s()()()),o&2&&(r(3),l("placeholder",n.placeholder())("ngModel",n.draftText()),M("rows",n.textareaRows()),r(6),l("disabled",n.isSendDisabled()||n.isSending()),r(),$(" ",n.isSending()?n.sendingButtonLabel():n.sendButtonLabel()," "))},dependencies:[f,H,E,j,F],encapsulation:2})}return t})();var Ue=[[["","sDisclosureSummaryTrailing",""]],"*"],Qe=["[sDisclosureSummaryTrailing]","*"],q=(()=>{class t{summaryLabel=i.required();density=i("comfortable");tone=i("changes");summaryRowClass_$=d(()=>{let e=this.density(),o=this.tone(),n="flex items-center gap-1 cursor-pointer select-none transition-colors list-none [&::-webkit-details-marker]:hidden";return o==="changes"?e==="comfortable"?`${n} px-2.5 py-1 bg-neutral-800/20 hover:bg-neutral-800/40`:`${n} px-1.5 py-0.5 bg-neutral-800/15 hover:bg-neutral-800/30`:e==="comfortable"?`${n} px-2.5 py-1 bg-neutral-800/30 hover:bg-neutral-800/50`:`${n} px-1.5 py-0.5 bg-neutral-800/20 hover:bg-neutral-800/40`});summaryLabelClass_$=d(()=>{let e=this.density();return this.tone()==="changes"?e==="comfortable"?"text-[10px] text-orange-300/50":"text-[9px] text-orange-300/40":e==="comfortable"?"text-[10px] text-neutral-400 truncate leading-relaxed":"text-[9px] text-neutral-500 truncate"});chevronSizeClass_$=d(()=>this.density()==="comfortable"?"w-3 h-3":"w-2.5 h-2.5");bodyWrapperClass_$=d(()=>{let e=this.density();return this.tone()==="changes"?e==="comfortable"?"px-2.5 py-1.5 bg-neutral-800/20 border-t border-neutral-700/15":"px-1.5 py-1 bg-neutral-800/15 border-t border-neutral-700/10":e==="comfortable"?"px-2.5 py-1.5 bg-neutral-800/30 border-t border-neutral-700/20":"px-1.5 py-1 bg-neutral-800/20 border-t border-neutral-700/15"});static \u0275fac=function(o){return new(o||t)};static \u0275cmp=g({type:t,selectors:[["app-s-collapsible-disclosure"]],hostAttrs:[1,"block","border-t","border-orange-500/20"],inputs:{summaryLabel:[1,"summaryLabel"],density:[1,"density"],tone:[1,"tone"]},standalone:!0,features:[_],ngContentSelectors:Qe,decls:9,vars:8,consts:[[1,"group/sdisclosure","group/pr"],["viewBox","0 0 12 12","fill","none",1,"text-neutral-500","shrink-0","transition-transform","[[open]>&]:rotate-90",3,"ngClass"],["d","M4.5 2.5l4 3.5-4 3.5","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"]],template:function(o,n){o&1&&(T(Ue),a(0,"details",0)(1,"summary"),I(),a(2,"svg",1),D(3,"path",2),s(),N(),a(4,"span"),m(5),s(),w(6),s(),a(7,"div"),w(8,1),s()()),o&2&&(r(),S(n.summaryRowClass_$()),r(),l("ngClass",n.chevronSizeClass_$()),r(2),S(n.summaryLabelClass_$()),r(),x(n.summaryLabel()),r(2),S(n.bodyWrapperClass_$()))},dependencies:[f,A],encapsulation:2})}return t})();var Ze=["*"],G=(()=>{class t{maxHeightPx=i(250);density=i("comfortable");innerClass_$=d(()=>(this.density()==="comfortable","font-mono"));static \u0275fac=function(o){return new(o||t)};static \u0275cmp=g({type:t,selectors:[["app-s-monospace-scroll-block"]],hostAttrs:[1,"block"],inputs:{maxHeightPx:[1,"maxHeightPx"],density:[1,"density"]},standalone:!0,features:[_],ngContentSelectors:Ze,decls:2,vars:4,consts:[[1,"overflow-y-auto","overflow-x-auto","font-mono"]],template:function(o,n){o&1&&(T(),a(0,"div",0),w(1),s()),o&2&&(S(n.innerClass_$()),oe("max-height",n.maxHeightPx(),"px"))},dependencies:[f],encapsulation:2})}return t})();var Ee=(()=>{class t{sanitizer;constructor(e){this.sanitizer=e}transform(e){let o=this.getSvgForTool(e??"");return this.sanitizer.bypassSecurityTrustHtml(o)}getSvgForTool(e){switch(e){case"Read":return`<svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
1
+ import{a as Ce}from"./chunk-6ALMEEKI.js";import{a as ve}from"./chunk-7JUIBZEE.js";import{a as we,b as xe,c as ke}from"./chunk-C7XPBJTG.js";import{e as Me,f as Te,g as Pe,i as De}from"./chunk-Y2L3PCW4.js";import{a as be}from"./chunk-WPHEQXWB.js";import{c as _e}from"./chunk-QIJSGEFW.js";import{a as he}from"./chunk-Q2NVIOCY.js";import{a as ye}from"./chunk-TYWRMRAZ.js";import{a as Se}from"./chunk-ZBTWQZNB.js";import{a as ge}from"./chunk-FLAJXIYW.js";import{a as ue,c as E,e as fe,f as j,i as F,v as H}from"./chunk-EO4DNTT4.js";import{$a as K,C as O,Cb as me,D as g,E as Z,Fa as m,G as ee,Ga as x,Ha as $,J as R,K as B,L as I,M as N,Ma as ie,Na as re,O as te,Oa as ae,Pa as se,Qa as le,Ra as pe,Sa as de,T as y,Ta as _,U as i,W as z,Wa as v,Z as r,_ as ne,aa as X,ab as W,da as b,fa as M,fb as ce,ga as l,ha as oe,hb as d,ia as V,ja as S,la as h,mb as A,qa as a,ra as s,sa as D,ua as L,ub as f,va as C,wa as u,x as U,xa as T,ya as w,z as Q}from"./chunk-TBMJSIBB.js";var Ve=["*"];function Ne(t,p){if(t&1&&(a(0,"div",5),w(1),s()),t&2){let e=u();l("ngClass",e.spacingClassMap_$())}}var Ae=(()=>{class t{expanded=i.required();title=i.required();contentSpacingClass=i("space-y-3");panelClass=i("rounded-lg border border-neonDefault/60 bg-neutral-900/40");titleClass=i("text-base font-semibold text-neutral-200");spacingClassMap_$=d(()=>({[this.contentSpacingClass().trim()]:!0}));toggle=y();handleHeaderClick(){this.toggle.emit()}handleHeaderKeydownEnter(){this.toggle.emit()}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=g({type:t,selectors:[["app-s-settings-collapsible-panel"]],hostAttrs:[1,"block"],inputs:{expanded:[1,"expanded"],title:[1,"title"],contentSpacingClass:[1,"contentSpacingClass"],panelClass:[1,"panelClass"],titleClass:[1,"titleClass"]},outputs:{toggle:"toggle"},standalone:!0,features:[_],ngContentSelectors:Ve,decls:8,vars:12,consts:[[3,"ngClass"],["role","button","tabindex","0",1,"flex","items-center","gap-2","cursor-pointer","select-none",3,"click","keydown.enter"],["aria-hidden","true",1,"inline-flex","shrink-0","text-neutral-400"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"w-3.5","h-3.5","transition-transform","duration-150"],["points","6 9 12 15 18 9"],[1,"mt-3",3,"ngClass"]],template:function(o,n){o&1&&(T(),a(0,"div",0)(1,"div",1),C("click",function(){return n.handleHeaderClick()})("keydown.enter",function(){return n.handleHeaderKeydownEnter()}),a(2,"span",2),I(),a(3,"svg",3),D(4,"polyline",4),s()(),N(),a(5,"h3",0),m(6),s()(),b(7,Ne,2,1,"div",5),s()),o&2&&(V("p-4",n.expanded())("px-4",!n.expanded())("py-2",!n.expanded()),l("ngClass",n.panelClass()),r(3),V("-rotate-90",!n.expanded()),r(2),l("ngClass",n.titleClass()),r(),x(n.title()),r(),h(n.expanded()?7:-1))},dependencies:[f,A],encapsulation:2})}return t})();var ze=["*"];function Ke(t,p){if(t&1&&(a(0,"p",1),m(1),s()),t&2){let e=u();r(),x(e.subtitle())}}var Re=(()=>{class t{title=i.required();subtitle=i("");marginBottom=i("mb-6");hasSubtitle_$=d(()=>this.subtitle().trim().length>0);static \u0275fac=function(o){return new(o||t)};static \u0275cmp=g({type:t,selectors:[["app-s-page-header"]],hostAttrs:[1,"block"],inputs:{title:[1,"title"],subtitle:[1,"subtitle"],marginBottom:[1,"marginBottom"]},standalone:!0,features:[_],ngContentSelectors:ze,decls:7,vars:4,consts:[[1,"text-2xl","gt-xs:text-3xl","font-bold","text-neutral-100"],[1,"text-neutral-400","text-sm","gt-xs:text-base","mt-1"],[1,"flex","items-center","gap-2","shrink-0"]],template:function(o,n){o&1&&(T(),a(0,"header")(1,"div")(2,"h1",0),m(3),s(),b(4,Ke,2,1,"p",1),s(),a(5,"div",2),w(6),s()()),o&2&&(S("flex items-center justify-between gap-4 "+n.marginBottom()),r(3),x(n.title()),r(),h(n.hasSubtitle_$()?4:-1))},dependencies:[f],encapsulation:2})}return t})();function We(t,p){t&1&&(I(),a(0,"svg",3),D(1,"path",4),s())}function qe(t,p){t&1&&(I(),a(0,"svg",3),D(1,"path",5)(2,"path",6),s())}var Ie=(()=>{class t{placeholder=i("");disabled=i(!1);disabledByControl_$=X(!1);name=i("");autocomplete=i("off");dataBwignore=i(!1);suppressPasswordManagerAutofill=i(!1);inputClass=i("");blurEvent=y();visible_$=X(!1);inputType_$=d(()=>this.visible_$()?"text":"password");toggleAriaLabel_$=d(()=>this.visible_$()?"Jelsz\xF3 elrejt\xE9se":"Jelsz\xF3 megjelen\xEDt\xE9se");toggleTitle_$=d(()=>this.visible_$()?"Jelsz\xF3 elrejt\xE9se":"Jelsz\xF3 megjelen\xEDt\xE9se");isDisabled_$=d(()=>this.disabled()||this.disabledByControl_$());effectiveAutocomplete_$=d(()=>this.suppressPasswordManagerAutofill()?"new-password":this.autocomplete());effectiveDataBwignore_$=d(()=>this.dataBwignore()||this.suppressPasswordManagerAutofill());value="";onChange=()=>{};onTouched=()=>{};cdr=O(ce);injector=O(te);ngControl=null;ngOnInit(){this.ngControl=this.injector.get(fe,null,{optional:!0,self:!0}),this.ngControl!=null&&(this.ngControl.valueAccessor=this)}toggleVisible(){this.visible_$.update(e=>!e)}get innerValue(){return this.value}set innerValue(e){this.value!==e&&(this.value=e,this.onChange(e))}writeValue(e){this.value=e??"",this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabledByControl_$.set(e),this.cdr.markForCheck()}onBlur(){this.onTouched(),this.blurEvent.emit()}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=g({type:t,selectors:[["app-s-password-input"]],hostAttrs:[1,"block","min-w-0","flex-1"],inputs:{placeholder:[1,"placeholder"],disabled:[1,"disabled"],name:[1,"name"],autocomplete:[1,"autocomplete"],dataBwignore:[1,"dataBwignore"],suppressPasswordManagerAutofill:[1,"suppressPasswordManagerAutofill"],inputClass:[1,"inputClass"]},outputs:{blurEvent:"blurEvent"},standalone:!0,features:[de([{provide:ue,useExisting:U(()=>t),multi:!0}]),_],decls:5,vars:16,consts:[[1,"flex","flex-wrap","gap-2","items-center","min-w-0"],[3,"ngModelChange","blur","type","ngModel","name","placeholder","disabled"],["type","button",1,"shrink-0","w-9","h-9","flex","items-center","justify-center","rounded","border","border-neonDefault","text-neutral-400","hover:text-neonCyan","hover:shadow-neon-glow-cyan","hover:border-neonCyan","disabled:opacity-50","transition-colors",3,"click","disabled"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor","aria-hidden","true",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"],["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","M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"]],template:function(o,n){o&1&&(a(0,"div",0)(1,"input",1),ae("ngModelChange",function(k){return re(n.innerValue,k)||(n.innerValue=k),k}),C("blur",function(){return n.onBlur()}),s(),a(2,"button",2),C("click",function(){return n.toggleVisible()}),b(3,We,2,0,":svg:svg",3)(4,qe,3,0,":svg:svg",3),s()()),o&2&&(r(),S("flex-1 min-w-0 px-3 py-2 bg-neutral-800 border border-neonDefault rounded text-neutral-100 focus:shadow-neon-glow-cyan disabled:opacity-70 "+n.inputClass()),l("type",n.inputType_$()),ie("ngModel",n.innerValue),l("name",n.name())("placeholder",n.placeholder())("disabled",n.isDisabled_$()),M("autocomplete",n.effectiveAutocomplete_$())("data-bwignore",n.effectiveDataBwignore_$()?"1":null)("data-lpignore",n.suppressPasswordManagerAutofill()?"true":null)("data-1p-ignore",n.suppressPasswordManagerAutofill()?"true":null)("data-form-type",n.suppressPasswordManagerAutofill()?"other":null),r(),l("disabled",n.isDisabled_$()),M("aria-label",n.toggleAriaLabel_$())("title",n.toggleTitle_$()),r(),h(n.visible_$()?3:4))},dependencies:[f,H,E,j,F],encapsulation:2})}return t})();function Ge(t,p){if(t&1&&(a(0,"span",2),m(1," \u26A0\uFE0F "),s()),t&2){let e,o=u();M("title",(e=o.warningTooltip())!==null&&e!==void 0?e:"")}}function Je(t,p){if(t&1){let e=L();a(0,"button",5),C("click",function(){R(e);let n=u();return B(n.emitStartEdit())}),m(1," Szerkeszt\xE9s "),s()}}function Oe(t,p){if(t&1){let e=L();a(0,"button",6),C("click",function(){R(e);let n=u();return B(n.emitSave())}),m(1),s()}if(t&2){let e=u();l("disabled",e.saveDisabled()),r(),$(" ",e.saveButtonLabel_$()," ")}}var Le=(()=>{class t{name=i("");displayValue=i.required();placeholder=i("");editMode=i(!1);saveDisabled=i(!1);savePending=i(!1);saveLabel=i("Ment\xE9s");savePendingLabel=i("Ment\xE9s\u2026");warningTooltip=i(null);inputClass=i("");dataBwignore=i(!0);valueChange=y();startEdit=y();save=y();inputReadonly_$=d(()=>!this.editMode());showWarning_$=d(()=>{let e=this.warningTooltip();return e!=null&&e.trim().length>0});saveButtonLabel_$=d(()=>this.savePending()?this.savePendingLabel():this.saveLabel());inputClassCombined_$=d(()=>{let e="flex-1 min-w-0 px-3 py-2 font-mono text-sm bg-neutral-800 border border-neonDefault rounded text-neutral-100 focus:shadow-neon-glow-cyan",o=this.inputReadonly_$()?" opacity-90":"",n=this.inputClass().trim().length>0?" "+this.inputClass():"";return e+o+n});onDisplayValueChange(e){this.editMode()&&this.valueChange.emit(e)}emitStartEdit(){this.startEdit.emit()}emitSave(){this.save.emit()}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=g({type:t,selectors:[["app-s-settings-secret-key-row"]],hostAttrs:[1,"block"],inputs:{name:[1,"name"],displayValue:[1,"displayValue"],placeholder:[1,"placeholder"],editMode:[1,"editMode"],saveDisabled:[1,"saveDisabled"],savePending:[1,"savePending"],saveLabel:[1,"saveLabel"],savePendingLabel:[1,"savePendingLabel"],warningTooltip:[1,"warningTooltip"],inputClass:[1,"inputClass"],dataBwignore:[1,"dataBwignore"]},outputs:{valueChange:"valueChange",startEdit:"startEdit",save:"save"},standalone:!0,features:[_],decls:5,vars:9,consts:[[1,"flex","flex-wrap","gap-2","items-center"],["type","text",3,"ngModelChange","name","ngModel","readonly"],[1,"text-amber-300","text-sm"],["type","button",1,"px-4","py-2","border","border-neonCyan","rounded","text-neutral-300","hover:shadow-neon-glow-cyan","whitespace-nowrap"],["type","button",1,"px-4","py-2","bg-ccapAccent","text-white","rounded","whitespace-nowrap","disabled:opacity-50",3,"disabled"],["type","button",1,"px-4","py-2","border","border-neonCyan","rounded","text-neutral-300","hover:shadow-neon-glow-cyan","whitespace-nowrap",3,"click"],["type","button",1,"px-4","py-2","bg-ccapAccent","text-white","rounded","whitespace-nowrap","disabled:opacity-50",3,"click","disabled"]],template:function(o,n){o&1&&(a(0,"div",0)(1,"input",1),C("ngModelChange",function(k){return n.onDisplayValueChange(k)}),s(),b(2,Ge,2,1,"span",2)(3,Je,2,0,"button",3)(4,Oe,2,2,"button",4),s()),o&2&&(r(),S(n.inputClassCombined_$()),l("name",n.name())("ngModel",n.displayValue())("readonly",n.inputReadonly_$()),M("placeholder",n.placeholder())("data-bwignore",n.dataBwignore()?"true":null),r(),h(n.showWarning_$()?2:-1),r(),h(n.editMode()?4:3))},dependencies:[f,H,E,j,F],encapsulation:2})}return t})();var Xe=[[["","sComposerPrefix",""]],[["","sComposerTextareaAccessory",""]],[["","sComposerBelowTextarea",""]],[["","sComposerBeforeSend",""]]],Ye=["[sComposerPrefix]","[sComposerTextareaAccessory]","[sComposerBelowTextarea]","[sComposerBeforeSend]"],$e=(()=>{class t{draftText=i("");draftTextChange=y();isSending=i(!1);isSendDisabled=i(!1);placeholder=i("");textareaRows=i(3);sendButtonLabel=i("Send");sendingButtonLabel=i("\u2026");sendRequested=y();handleKeyDown(e){e.key!=="Enter"||e.shiftKey||(e.preventDefault(),this.emitSendIfAllowed())}handleSendClick(){this.emitSendIfAllowed()}emitSendIfAllowed(){this.isSending()||this.isSendDisabled()||this.sendRequested.emit()}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=g({type:t,selectors:[["app-s-session-prompt-composer"]],hostAttrs:[1,"block","shrink-0","border-t","border-neonDefault","bg-ccapSurface"],inputs:{draftText:[1,"draftText"],isSending:[1,"isSending"],isSendDisabled:[1,"isSendDisabled"],placeholder:[1,"placeholder"],textareaRows:[1,"textareaRows"],sendButtonLabel:[1,"sendButtonLabel"],sendingButtonLabel:[1,"sendingButtonLabel"]},outputs:{draftTextChange:"draftTextChange",sendRequested:"sendRequested"},standalone:!0,features:[_],ngContentSelectors:Ye,decls:11,vars:5,consts:[[1,"flex","flex-col","gap-2","p-2"],[1,"relative","min-w-0","w-full"],[1,"min-h-[60px]","max-h-[200px]","w-full","resize-none","rounded","border","border-neutral-700","bg-neutral-800","px-2","py-1.5","font-mono","text-xs","text-neutral-200","placeholder-neutral-600","focus:border-ccapAccent","focus:outline-none",3,"ngModelChange","keydown","placeholder","ngModel"],[1,"flex","flex-wrap","items-end","justify-end","gap-2"],["type","button",1,"px-3","py-1.5","text-xs","bg-ccapAccent","text-black","font-medium","rounded","hover:bg-ccapAccent/80","transition-colors","disabled:opacity-50","shrink-0",3,"click","disabled"]],template:function(o,n){o&1&&(T(Xe),a(0,"div",0),w(1),a(2,"div",1)(3,"textarea",2),C("ngModelChange",function(k){return n.draftTextChange.emit(k)})("keydown",function(k){return n.handleKeyDown(k)}),m(4," "),s(),w(5,1),s(),w(6,2),a(7,"div",3),w(8,3),a(9,"button",4),C("click",function(){return n.handleSendClick()}),m(10),s()()()),o&2&&(r(3),l("placeholder",n.placeholder())("ngModel",n.draftText()),M("rows",n.textareaRows()),r(6),l("disabled",n.isSendDisabled()||n.isSending()),r(),$(" ",n.isSending()?n.sendingButtonLabel():n.sendButtonLabel()," "))},dependencies:[f,H,E,j,F],encapsulation:2})}return t})();var Ue=[[["","sDisclosureSummaryTrailing",""]],"*"],Qe=["[sDisclosureSummaryTrailing]","*"],q=(()=>{class t{summaryLabel=i.required();density=i("comfortable");tone=i("changes");summaryRowClass_$=d(()=>{let e=this.density(),o=this.tone(),n="flex items-center gap-1 cursor-pointer select-none transition-colors list-none [&::-webkit-details-marker]:hidden";return o==="changes"?e==="comfortable"?`${n} px-2.5 py-1 bg-neutral-800/20 hover:bg-neutral-800/40`:`${n} px-1.5 py-0.5 bg-neutral-800/15 hover:bg-neutral-800/30`:e==="comfortable"?`${n} px-2.5 py-1 bg-neutral-800/30 hover:bg-neutral-800/50`:`${n} px-1.5 py-0.5 bg-neutral-800/20 hover:bg-neutral-800/40`});summaryLabelClass_$=d(()=>{let e=this.density();return this.tone()==="changes"?e==="comfortable"?"text-[10px] text-orange-300/50":"text-[9px] text-orange-300/40":e==="comfortable"?"text-[10px] text-neutral-400 truncate leading-relaxed":"text-[9px] text-neutral-500 truncate"});chevronSizeClass_$=d(()=>this.density()==="comfortable"?"w-3 h-3":"w-2.5 h-2.5");bodyWrapperClass_$=d(()=>{let e=this.density();return this.tone()==="changes"?e==="comfortable"?"px-2.5 py-1.5 bg-neutral-800/20 border-t border-neutral-700/15":"px-1.5 py-1 bg-neutral-800/15 border-t border-neutral-700/10":e==="comfortable"?"px-2.5 py-1.5 bg-neutral-800/30 border-t border-neutral-700/20":"px-1.5 py-1 bg-neutral-800/20 border-t border-neutral-700/15"});static \u0275fac=function(o){return new(o||t)};static \u0275cmp=g({type:t,selectors:[["app-s-collapsible-disclosure"]],hostAttrs:[1,"block","border-t","border-orange-500/20"],inputs:{summaryLabel:[1,"summaryLabel"],density:[1,"density"],tone:[1,"tone"]},standalone:!0,features:[_],ngContentSelectors:Qe,decls:9,vars:8,consts:[[1,"group/sdisclosure","group/pr"],["viewBox","0 0 12 12","fill","none",1,"text-neutral-500","shrink-0","transition-transform","[[open]>&]:rotate-90",3,"ngClass"],["d","M4.5 2.5l4 3.5-4 3.5","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"]],template:function(o,n){o&1&&(T(Ue),a(0,"details",0)(1,"summary"),I(),a(2,"svg",1),D(3,"path",2),s(),N(),a(4,"span"),m(5),s(),w(6),s(),a(7,"div"),w(8,1),s()()),o&2&&(r(),S(n.summaryRowClass_$()),r(),l("ngClass",n.chevronSizeClass_$()),r(2),S(n.summaryLabelClass_$()),r(),x(n.summaryLabel()),r(2),S(n.bodyWrapperClass_$()))},dependencies:[f,A],encapsulation:2})}return t})();var Ze=["*"],G=(()=>{class t{maxHeightPx=i(250);density=i("comfortable");innerClass_$=d(()=>(this.density()==="comfortable","font-mono"));static \u0275fac=function(o){return new(o||t)};static \u0275cmp=g({type:t,selectors:[["app-s-monospace-scroll-block"]],hostAttrs:[1,"block"],inputs:{maxHeightPx:[1,"maxHeightPx"],density:[1,"density"]},standalone:!0,features:[_],ngContentSelectors:Ze,decls:2,vars:4,consts:[[1,"overflow-y-auto","overflow-x-auto","font-mono"]],template:function(o,n){o&1&&(T(),a(0,"div",0),w(1),s()),o&2&&(S(n.innerClass_$()),oe("max-height",n.maxHeightPx(),"px"))},dependencies:[f],encapsulation:2})}return t})();var Ee=(()=>{class t{sanitizer;constructor(e){this.sanitizer=e}transform(e){let o=this.getSvgForTool(e??"");return this.sanitizer.bypassSecurityTrustHtml(o)}getSvgForTool(e){switch(e){case"Read":return`<svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
2
2
  <path d="M4 2h6l4 4v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1z"/>
3
3
  <path d="M10 2v4h4"/>
4
4
  <path d="M6 9h4"/><path d="M6 12h2"/>
@@ -35,4 +35,4 @@ import{a as Ce}from"./chunk-LI5BFFUF.js";import{a as ve}from"./chunk-7JUIBZEE.js
35
35
  </svg>`;default:return`<svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
36
36
  <path d="M10.5 1.5a4 4 0 0 0-5 5L2 10l-.5 4.5L6 14l3.5-3.5a4 4 0 0 0 5-5l-2.5 2.5-2-2L12.5 3.5z"/>
37
37
  </svg>`}}static \u0275fac=function(o){return new(o||t)(ne(me,16))};static \u0275pipe=ee({name:"sAgentToolIcon",type:t,pure:!0,standalone:!0})}return t})();var et=(t,p)=>({"[&>svg]:w-3":t,"[&>svg]:h-3":p}),je=(t,p)=>({"text-[11px] text-orange-300/90 max-w-[400px]":t,"text-[10px] text-orange-300/70 max-w-[350px]":p}),tt=(t,p)=>({"w-4 h-4 border-orange-500/30 bg-orange-500/20 hover:bg-orange-500/40":t,"w-3.5 h-3.5 bg-orange-500/15 hover:bg-orange-500/30":p}),nt=(t,p)=>({"text-[8px] text-orange-300":t,"text-[7px] text-orange-300/70":p});function ot(t,p){if(t&1&&(a(0,"span",2),m(1),s()),t&2){let e=u();r(),x(e.toolName())}}function it(t,p){if(t&1&&(a(0,"span",3),m(1),s()),t&2){let e=u();l("ngClass",v(2,je,e.density()==="comfortable",e.density()==="compact")),r(),x(e.toolDescription())}}function rt(t,p){if(t&1&&(a(0,"span",3),m(1),s()),t&2){let e=u(),o=pe(4);l("ngClass",v(3,je,e.density()==="comfortable",e.density()==="compact")),M("dir",e.isPathRtl()?"rtl":null),r(),$(" ",o," ")}}function at(t,p){if(t&1){let e=L();a(0,"button",5),C("click",function(n){R(e);let c=u();return B(c.handleRawInfoClick(n))}),a(1,"span",6),m(2,"i"),s()()}if(t&2){let e=u();l("ngClass",v(2,tt,e.density()==="comfortable",e.density()==="compact")),r(),l("ngClass",v(5,nt,e.density()==="comfortable",e.density()==="compact"))}}var J=(()=>{class t{toolName=i("");summaryText=i("");toolDescription=i("");isPathRtl=i(!1);showRawInfoButton=i(!1);density=i("comfortable");static PATH_DISPLAY_MAX_CHARS=80;displaySummary_$=d(()=>{let e=this.summaryText(),o=this.toolName();if(!e||e===o)return null;let n=`${o}: `,c=e.startsWith(n)?e.substring(n.length):e;return c.length===0?null:this.isPathRtl()&&c.length>t.PATH_DISPLAY_MAX_CHARS?`\u2026${c.slice(-(t.PATH_DISPLAY_MAX_CHARS-1))}`:c});rawInfoClick=y();handleRawInfoClick(e){e.stopPropagation(),this.rawInfoClick.emit()}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=g({type:t,selectors:[["app-s-agent-tool-summary-row"]],hostAttrs:[1,"block"],inputs:{toolName:[1,"toolName"],summaryText:[1,"summaryText"],toolDescription:[1,"toolDescription"],isPathRtl:[1,"isPathRtl"],showRawInfoButton:[1,"showRawInfoButton"],density:[1,"density"]},outputs:{rawInfoClick:"rawInfoClick"},standalone:!0,features:[_],decls:8,vars:19,consts:[[1,"flex","items-center","gap-1.5"],[1,"text-orange-400","shrink-0","flex","items-center",3,"ngClass","innerHTML"],[1,"text-[11px]","text-orange-300/90","font-medium","shrink-0"],[1,"truncate",3,"ngClass"],["type","button",1,"ml-auto","shrink-0","rounded-full","border","flex","items-center","justify-center","cursor-pointer",3,"ngClass"],["type","button",1,"ml-auto","shrink-0","rounded-full","border","flex","items-center","justify-center","cursor-pointer",3,"click","ngClass"],[1,"font-bold","leading-none",3,"ngClass"]],template:function(o,n){if(o&1&&(a(0,"div",0),D(1,"span",1),K(2,"sAgentToolIcon"),b(3,ot,2,1,"span",2),se(4),b(5,it,2,5,"span",3)(6,rt,2,6,"span",3)(7,at,3,8,"button",4),s()),o&2){V("px-2",n.density()==="comfortable")("py-1",n.density()==="comfortable")("px-1",n.density()==="compact")("py-0",n.density()==="compact"),r(),l("ngClass",v(16,et,n.density()==="compact",n.density()==="compact"))("innerHTML",W(2,13,n.toolName()),z),r(2),h(n.density()==="comfortable"?3:-1),r();let c=le(n.displaySummary_$());r(),h(n.toolDescription()?5:c?6:-1),r(2),h(n.showRawInfoButton()?7:-1)}},dependencies:[f,A,Ee],encapsulation:2})}return t})();var Fe=(t,p)=>({"text-[10px]":t,"text-[9px]":p}),st=(t,p)=>({"w-3.5 h-3.5 bg-neutral-700/60":t,"w-3 h-3 bg-neutral-700/60":p}),lt=(t,p)=>({"text-[7px]":t,"text-[6px]":p});function pt(t,p){if(t&1&&(a(0,"app-s-collapsible-disclosure",1)(1,"app-s-monospace-scroll-block",3)(2,"pre",4),K(3,"sEditDiff"),m(4," "),s()()()),t&2){let e=u();l("summaryLabel",e.changesSummaryLabel())("density",e.density()),r(),l("maxHeightPx",e.scrollMaxHeightPx_$())("density",e.density()),r(),l("ngClass",v(8,Fe,e.density()==="comfortable",e.density()==="compact"))("innerHTML",W(3,6,e.expandableContent()),z)}}function dt(t,p){if(t&1){let e=L();a(0,"button",7),C("click",function(n){R(e);let c=u(2);return B(c.handlePairedRawClick(n))}),a(1,"span",8),m(2,"i"),s()()}if(t&2){let e=u(2);l("ngClass",v(2,st,e.density()==="comfortable",e.density()==="compact")),r(),l("ngClass",v(5,lt,e.density()==="comfortable",e.density()==="compact"))}}function ct(t,p){if(t&1&&(a(0,"app-s-collapsible-disclosure",2),b(1,dt,3,8,"button",5),a(2,"app-s-monospace-scroll-block",3)(3,"pre",6),m(4),s()()()),t&2){let e=p,o=u();l("summaryLabel",e.text)("density",o.density()),r(),h(e.rawData?1:-1),r(),l("maxHeightPx",o.scrollMaxHeightPx_$())("density",o.density()),r(),l("ngClass",v(7,Fe,o.density()==="comfortable",o.density()==="compact")),r(),x(e.expandableContent||e.text)}}var He=(()=>{class t{toolName=i("");summaryText=i("");toolDescription=i("");isPathRtl=i(!1);showToolRawInfo=i(!1);expandableContent=i("");pairedResult=i(null);density=i("comfortable");layout=i("full");changesSummaryLabel=i("Changes");toolRawInfoClick=y();pairedRawInfoClick=y();containerClass_$=d(()=>this.layout()==="full"?"overflow-hidden":"overflow-hidden border border-orange-500/10 rounded");scrollMaxHeightPx_$=d(()=>this.density()==="comfortable"?250:150);handlePairedRawClick(e){e.stopPropagation(),this.pairedRawInfoClick.emit()}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=g({type:t,selectors:[["app-s-agent-tool-call-card"]],hostAttrs:[1,"block"],inputs:{toolName:[1,"toolName"],summaryText:[1,"summaryText"],toolDescription:[1,"toolDescription"],isPathRtl:[1,"isPathRtl"],showToolRawInfo:[1,"showToolRawInfo"],expandableContent:[1,"expandableContent"],pairedResult:[1,"pairedResult"],density:[1,"density"],layout:[1,"layout"],changesSummaryLabel:[1,"changesSummaryLabel"]},outputs:{toolRawInfoClick:"toolRawInfoClick",pairedRawInfoClick:"pairedRawInfoClick"},standalone:!0,features:[_],decls:4,vars:10,consts:[[3,"rawInfoClick","toolName","summaryText","toolDescription","isPathRtl","showRawInfoButton","density"],["tone","changes",3,"summaryLabel","density"],["tone","result",3,"summaryLabel","density"],[3,"maxHeightPx","density"],[1,"text-neutral-400","whitespace-pre-wrap","break-words","leading-relaxed","m-0","overflow-x-auto",3,"ngClass","innerHTML"],["sDisclosureSummaryTrailing","","type","button",1,"ml-auto","shrink-0","rounded-full","border","border-neutral-600/40","flex","items-center","justify-center","cursor-pointer","hover:bg-neutral-600",3,"ngClass"],[1,"text-neutral-400","whitespace-pre-wrap","break-words","leading-relaxed","m-0","overflow-x-auto",3,"ngClass"],["sDisclosureSummaryTrailing","","type","button",1,"ml-auto","shrink-0","rounded-full","border","border-neutral-600/40","flex","items-center","justify-center","cursor-pointer","hover:bg-neutral-600",3,"click","ngClass"],[1,"font-bold","leading-none","text-neutral-300",3,"ngClass"]],template:function(o,n){if(o&1&&(a(0,"div")(1,"app-s-agent-tool-summary-row",0),C("rawInfoClick",function(){return n.toolRawInfoClick.emit()}),s(),b(2,pt,5,11,"app-s-collapsible-disclosure",1)(3,ct,5,10,"app-s-collapsible-disclosure",2),s()),o&2){let c;S(n.containerClass_$()),r(),l("toolName",n.toolName())("summaryText",n.summaryText())("toolDescription",n.toolDescription())("isPathRtl",n.isPathRtl())("showRawInfoButton",n.showToolRawInfo())("density",n.density()),r(),h(n.expandableContent()?2:-1),r(),h((c=n.pairedResult())?3:-1,c)}},dependencies:[f,A,Me,J,q,G],encapsulation:2})}return t})();var Wn=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=Z({type:t});static \u0275inj=Q({imports:[f,Ie,Le,Ae,Ce,ge,ye,be,he,Re,Se,we,xe,ve,$e,ke,Te,q,G,J,He,Pe,De,_e]})}return t})();export{Ie as a,Le as b,Ae as c,Re as d,Ee as e,He as f,Wn as g};
38
- //# sourceMappingURL=chunk-NYTGXX6H.js.map
38
+ //# sourceMappingURL=chunk-SBTGHAYK.js.map
@@ -1,4 +1,4 @@
1
- import{c as Tl}from"./chunk-44LSDHLE.js";import{a as he,b as _e,c as Ol,e as $a,h as Xa,j as Il,k as zo,l as Wo,m as Yo,o as Fl,p as vt}from"./chunk-HKFQB2DP.js";import{F as Va,a as j,b as Z,c as Ka,f,h as ge,i as fe,k as Se}from"./chunk-TBMJSIBB.js";var Ht=f(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.DyNM_allButtonNewBorderRadius=Je.DyNM_ButtonNewBorderRadius=void 0;var qo=function(e){return e.full="full",e.rounded="rounded",e.smallRadius="smallRadius",e.square="square",e}(qo||(Je.DyNM_ButtonNewBorderRadius=qo={}));Je.DyNM_allButtonNewBorderRadius=Object.values(qo)});var Ut=f(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.DyNM_allButtonNewSizes=Qe.DyNM_ButtonNewSize=void 0;var Zo=function(e){return e.xs="xs",e.small="small",e.medium="medium",e.large="large",e.xl="xl",e}(Zo||(Qe.DyNM_ButtonNewSize=Zo={}));Qe.DyNM_allButtonNewSizes=Object.values(Zo)});var Kt=f(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DyNM_allButtonNewStyleTypes=et.DyNM_ButtonNewStyleType=void 0;var Jo=function(e){return e.filled="filled",e.stroked="stroked",e.outstanding="outstanding",e.tonal="tonal",e.backgroundless="backgroundless",e}(Jo||(et.DyNM_ButtonNewStyleType=Jo={}));et.DyNM_allButtonNewStyleTypes=Object.values(Jo)});var St=f(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.DyNM_allMaterialColors=tt.DyNM_MaterialColor=void 0;var Qo=function(e){return e.primary="primary",e.accent="accent",e.warn="warn",e.none="",e}(Qo||(tt.DyNM_MaterialColor=Qo={}));tt.DyNM_allMaterialColors=Object.values(Qo)});var ti=f(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.DyNM_allButtonNewIconStyleTypes=nt.DyNM_ButtonNewIconStyleType=void 0;var ei=function(e){return e.rounded="rounded",e.outlined="outlined",e}(ei||(nt.DyNM_ButtonNewIconStyleType=ei={}));nt.DyNM_allButtonNewIconStyleTypes=Object.values(ei)});var oi=f(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.DyNM_ButtonNewStyle_Settings=void 0;var kl=Ht(),ja=ti(),Ll=Ut(),Gl=Kt(),Hl=St(),ni=class{size=Ll.DyNM_ButtonNewSize.medium;color=Hl.DyNM_MaterialColor.primary;styleType=Gl.DyNM_ButtonNewStyleType.filled;borderRadius=kl.DyNM_ButtonNewBorderRadius.smallRadius;isIconButton;iconFill;iconStyle=ja.DyNM_ButtonNewIconStyleType.rounded;constructor(t){t&&Object.assign(this,t),this.isIconButton&&!this.iconStyle&&(this.iconStyle=ja.DyNM_ButtonNewIconStyleType.rounded)}};Vt.DyNM_ButtonNewStyle_Settings=ni});var Wa=f($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.DyNM_ButtonNewStyleSettingsPresets=void 0;var Le=Ht(),z=Ut(),Q=Kt(),za=St(),K=oi();$t.DyNM_ButtonNewStyleSettingsPresets={xs:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs}),xsIcon:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,isIconButton:!0}),xsRounded:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded}),xsStroked:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,styleType:Q.DyNM_ButtonNewStyleType.stroked}),xsStrokedIcon:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,styleType:Q.DyNM_ButtonNewStyleType.stroked,isIconButton:!0}),xsBackgroundlessIcon:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0}),xsRoundedTonal:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,styleType:Q.DyNM_ButtonNewStyleType.tonal}),small:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.small}),smallIcon:new K.DyNM_ButtonNewStyle_Settings({isIconButton:!0,size:z.DyNM_ButtonNewSize.small}),smallStrokedIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,isIconButton:!0,size:z.DyNM_ButtonNewSize.small}),smallTonalIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.tonal,isIconButton:!0,size:z.DyNM_ButtonNewSize.small}),smallRounded:new K.DyNM_ButtonNewStyle_Settings({borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,size:z.DyNM_ButtonNewSize.small}),smallStroked:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,size:z.DyNM_ButtonNewSize.small}),smallTonal:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.tonal,size:z.DyNM_ButtonNewSize.small}),smallRoundedTonal:new K.DyNM_ButtonNewStyle_Settings({borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,styleType:Q.DyNM_ButtonNewStyleType.tonal,size:z.DyNM_ButtonNewSize.small}),smallStrokedRounded:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,size:z.DyNM_ButtonNewSize.small}),smallBackgroundless:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,size:z.DyNM_ButtonNewSize.small}),icon:new K.DyNM_ButtonNewStyle_Settings({isIconButton:!0}),backgroundlessSmallIconUnset:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0,size:z.DyNM_ButtonNewSize.small,color:""}),backgroundlessIconUnset:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0,color:""}),smallBackgroundlessIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0,size:z.DyNM_ButtonNewSize.small}),strokedIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,isIconButton:!0}),backgroundlessIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0}),accent:new K.DyNM_ButtonNewStyle_Settings({color:za.DyNM_MaterialColor.accent}),strokedAccent:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,color:za.DyNM_MaterialColor.accent}),stroked:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked}),round:new K.DyNM_ButtonNewStyle_Settings({borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded}),strokedRound:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded}),large:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.large}),largeStroked:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,size:z.DyNM_ButtonNewSize.large}),largeStrokedRound:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,size:z.DyNM_ButtonNewSize.large}),largeTonal:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.tonal,size:z.DyNM_ButtonNewSize.large}),largeIcon:new K.DyNM_ButtonNewStyle_Settings({isIconButton:!0,size:z.DyNM_ButtonNewSize.large}),largeStrokedIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,isIconButton:!0,size:z.DyNM_ButtonNewSize.large}),xl:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xl}),xlIcon:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xl,isIconButton:!0})}});var ii=f(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.DyNM_Container_Type=void 0;var Ya=function(e){return e.card="card",e.accordion="accordion",e.dynamo="dynamo",e.dynamoSmall="dynamo-small",e.none="none",e}(Ya||(Xt.DyNM_Container_Type=Ya={}))});var ai=f(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.DyNM_FieldAppearance=void 0;var qa=function(e){return e.fill="fill",e.outline="outline",e}(qa||(jt.DyNM_FieldAppearance=qa={}))});var si=f(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.DyNM_Storage_Type=void 0;var Za=function(e){return e.session="session",e.local="local",e.none="",e}(Za||(zt.DyNM_Storage_Type=Za={}))});var Qa=f(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.DyNM_global_settings=void 0;var Ul=ii(),Kl=ai(),Ja=si();Wt.DyNM_global_settings={fieldAppearance:Kl.DyNM_FieldAppearance.outline,baseUrl:"/api",usageEndpoints:{startSession:"/usage/new-session",updateUsage:"/usage/update/{sessionId}",closeSession:"/usage/close-session/{sessionId}",getUsageData:"/usage/get/all"},alwaysLookForFieldAdder:!1,fieldErrorMessages:{required:"This field is required",email:"This is not a valid email format",mask:"This is not a valid format"},defaultStorage:Ja.DyNM_Storage_Type.session,storageEncryptionKey:"DEFAULT_DyFM_ENCRYPTION_KEY_CHANGE_THIS_XXXXXXX00000009999999999",defaultFormStorage:Ja.DyNM_Storage_Type.session,defaultFormContainerType:Ul.DyNM_Container_Type.none,formMessages:{required:"There are required fields to set!",invalid:"The form is not set correctly",submitSuccess:"Save was successful!",submitFailed:"Saving data has failed!"},questionDefaultOptions:{a:"No",b:"Yes"},fieldTooltipShowDelay:300,snackBarHideLabel:"Hide",log_settings:{api_calls:!0,messagesCS_debug:!1}}});var ri=f(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.DyNM_Button_Type=void 0;var es=function(e){return e.default="default",e.big="big",e.stroked="stroked",e.bigStroked="big-stroked",e.small="small",e.smallStroked="small-stroked",e.round="round",e.strokedRound="stroked-round",e.bigStrokedRound="big-stroked-round",e.block="block",e.bigBlock="big-block",e.strokedBlock="stroked-block",e.bigStrokedBlock="big-stroked-block",e.outstanding="outstanding",e.icon="icon",e.iconSmall="icon-small",e.iconBig="icon-big",e.iconStroked="icon-stroked",e.iconSmallStroked="icon-small-stroked",e.iconBigStroked="icon-big-stroked",e.iconOutstanding="icon-outstanding",e}(es||(Yt.DyNM_Button_Type=es={}))});var ns=f(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.DyNM_CheckboxLabelPosition=void 0;var ts=function(e){return e.before="before",e.after="after",e}(ts||(qt.DyNM_CheckboxLabelPosition=ts={}))});var is=f(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.DyNM_Field_Type=void 0;var os=function(e){return e.spacer="spacer",e.checkbox="checkbox",e.toggle="toggle",e.text="text",e.textList="textList",e.password="password",e.textarea="textarea",e.richtextarea="richtextarea",e.number="number",e.numberRange="numberRange",e.slider="slider",e.sliderRange="sliderRange",e.select="select",e.multiselect="multiselect",e.chipSelect="chipSelect",e.chipMultiselect="chipMultiselect",e.radioSelect="radioSelect",e.date="date",e.dateRange="dateRange",e.dateTime="dateTime",e.dateTimeRange="dateTimeRange",e.file="file",e.files="files",e.picture="picture",e.pictures="pictures",e.fieldAdder="fieldAdder",e.multifield="multifield",e}(os||(Zt.DyNM_Field_Type=os={}))});var ss=f(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.DyNM_File_Type=void 0;var as=function(e){return e.arrayBuffer="arrayBuffer",e.binaryString="binaryString",e.dataUrl="dataUrl",e.text="text",e.blob="blob",e.file="file",e}(as||(Jt.DyNM_File_Type=as={}))});var ds=f(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.DyNM_FormAccess=void 0;var rs=function(e){return e.readOnly="read-only",e.writeOnly="write-only",e.readNWrite="read-n-write",e}(rs||(Qt.DyNM_FormAccess=rs={}))});var ls=f(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.DyNM_FormResetData=void 0;var cs=function(e){return e.null="null",e.empty="empty",e.default="deafult",e.dataHandler="data-handler",e.init="init",e.stored="stored",e}(cs||(en.DyNM_FormResetData=cs={}))});var us=f(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.DyNM_FormStoreOn=void 0;var ms=function(e){return e.close="close",e.change="change",e}(ms||(tn.DyNM_FormStoreOn=ms={}))});var ci=f(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.DyNM_allMaterialTooltipPositions=ot.DyNM_MaterialTooltipPosition=void 0;var di=function(e){return e.above="above",e.below="below",e.before="before",e.after="after",e.left="left",e.right="right",e}(di||(ot.DyNM_MaterialTooltipPosition=di={}));ot.DyNM_allMaterialTooltipPositions=Object.values(di)});var gs=f(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.DyNM_PreconfiguredField_Type=void 0;var ps=function(e){return e.email="email",e.phone="phone",e}(ps||(nn.DyNM_PreconfiguredField_Type=ps={}))});var hs=f(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.DyNM_Validator_Type=void 0;var fs=function(e){return e.requiredCheckbox="requiredCheckbox",e}(fs||(on.DyNM_Validator_Type=fs={}))});var ys=f(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.DyNM_FXLayoutAlignPerDir=it.DyNM_FXLayoutAlignLayDir=void 0;var _s=function(e){return e.none="none",e.start="start",e.center="center",e.end="end",e.spaceAround="space-around",e.spaceBetween="space-between",e}(_s||(it.DyNM_FXLayoutAlignLayDir=_s={})),Cs=function(e){return e.none="none",e.start="start",e.center="center",e.end="end",e.stretch="stretch",e}(Cs||(it.DyNM_FXLayoutAlignPerDir=Cs={}))});var bs=f(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.DyNM_FXLayout=void 0;var xs=function(e){return e.row="row",e.column="column",e}(xs||(an.DyNM_FXLayout=xs={}))});var Ss=f(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.DyNM_HTMLInput_Type=void 0;var vs=function(e){return e.button="button",e.checkbox="checkbox",e.color="color",e.date="date",e.datetimeLocal="datetime-local",e.email="email",e.file="file",e.hidden="hidden",e.image="image",e.month="month",e.number="number",e.password="password",e.radio="radio",e.range="range",e.reset="reset",e.search="search",e.submit="submit",e.tel="tel",e.text="text",e.time="time",e.url="url",e.week="week",e}(vs||(sn.DyNM_HTMLInput_Type=vs={}))});var mi=f(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.DyNM_Button_Params=void 0;var Vl=vt(),Y=ri(),$l=St(),Xl=ci(),jl=Xl.DyNM_MaterialTooltipPosition.above,zl=250,li=class{id;label;color=$l.DyNM_MaterialColor.primary;icon;description;descriptionPosition;descriptionDelay;type;disabled;dontRoute;routerLink;routerLinkQueryParams;iconAfter;buttonType;class;contentClass;classOnActive;contentClassOnActive;customClass;customContentClass;customClassOnActive;customContentClassOnActive;onClickEvents=[];useDisablerWhileEventsInProgress;constructor(t){t&&Object.assign(this,t),this.type||(this.icon&&!this.label?this.type=Y.DyNM_Button_Type.icon:this.type=Y.DyNM_Button_Type.default),this.id||(this.id=`${this.label}-${this.type}-${this.color}-button`),(this.description||this.type.includes("icon")&&this.label)&&(this.descriptionPosition||(this.descriptionPosition=jl),this.descriptionDelay||(this.descriptionDelay=zl)),this.class=Wl(this.type,this.color)+(this.customClass??""),this.contentClass=ql(this.type,this.customContentClass)+(this.customContentClass??""),(this.customClassOnActive||this.routerLink)&&(this.classOnActive=Yl(this.type,this.color)+(this.customClassOnActive??""),this.contentClassOnActive=this.customContentClassOnActive??"")}executeEvents(t){return Se(this,null,function*(){yield Vl.DyFM_Array.asyncForEach(this.onClickEvents,n=>Se(this,null,function*(){yield n(t)}))})}};rn.DyNM_Button_Params=li;function Wl(e,t,n=!0){let o="";switch(n?(o+="disabled:bg-neutral-800 ",o+="disabled:hover:bg-neutral-600 ",o+="disabled:text-neutral-600 ",o+="disabled:hover:text-neutral-900 "):(o+="disabled:bg-neutral-200 ",o+="disabled:hover:bg-neutral-400 ",o+="disabled:text-neutral-400 ",o+="disabled:hover:text-neutral-100 "),o+="disabled:cursor-not-allowed ",e){case Y.DyNM_Button_Type.default:case Y.DyNM_Button_Type.stroked:o+="rounded-xl ";break;case Y.DyNM_Button_Type.small:case Y.DyNM_Button_Type.smallStroked:o+="rounded-md ";break;case Y.DyNM_Button_Type.big:case Y.DyNM_Button_Type.bigStroked:o+="rounded-2xl ";break}return e.includes("stroked")?(e.includes("big")?o+="border-4 ":o+="border-2 ",o+=`border-${t}-500 `,o+=`text-${t}-500 `,n?(o+=`hover:bg-${t}-950 `,o+="disabled:border-neutral-600 "):(o+=`hover:bg-${t}-50 `,o+="disabled:border-neutral-400 ")):(o+=`bg-${t}-500 `,o+=`text-${t}C-500 `,n?(o+=`hover:bg-${t}-300 `,o+=`hover:text-${t}C-300 `):(o+=`hover:bg-${t}-700 `,o+=`hover:text-${t}C-700 `)),e.includes("round")&&(o+="rounded-full "),e.includes("icon")?o+="rounded-full ":o+="w-full ",e.includes("outstanding")&&(o+="outstanding ",o.includes("rounded-full")||(o+="rounded-full ")),o}function Yl(e,t,n=!0){let o=" ";return e.includes("stroked")?n?o+=`bg-${t}-950 `:o+=`bg-${t}-50 `:n?(o+=`bg-${t}-300 `,o+=`text-${t}C-300 `):(o+=`bg-${t}-700 `,o+=`text-${t}C-700 `),o}function ql(e,t){let n="flex ";switch(t?.includes("items-")||(n+="items-center "),t?.includes("justify-")||(n+="justify-center "),e.includes("icon")||(e.includes("big")?n+="text-2xl ":n+="text-md "),e.includes("icon")||(e.includes("small")?n+="mx-2 ":n+="mx-5 "),e){case Y.DyNM_Button_Type.default:case Y.DyNM_Button_Type.block:n+="my-3 ";break;case Y.DyNM_Button_Type.stroked:case Y.DyNM_Button_Type.strokedBlock:n+="my-2.5 ";break;case Y.DyNM_Button_Type.big:case Y.DyNM_Button_Type.bigBlock:case Y.DyNM_Button_Type.bigStroked:case Y.DyNM_Button_Type.bigStrokedBlock:n+="my-3 ";break;case Y.DyNM_Button_Type.round:n+="my-3 ";break;case Y.DyNM_Button_Type.strokedRound:n+="my-2.5 ";break;case Y.DyNM_Button_Type.outstanding:n+="my-3 ";break;case Y.DyNM_Button_Type.icon:n+="p-2 ",n+="text-2xl ";break;case Y.DyNM_Button_Type.iconStroked:n+="p-1.5 ",n+="text-2xl ";break;case Y.DyNM_Button_Type.iconSmall:case Y.DyNM_Button_Type.iconSmallStroked:n+="p-1 ",n+="text-lg ";break;case Y.DyNM_Button_Type.iconBig:n+="p-4 ",n+="text-4xl ";break;case Y.DyNM_Button_Type.iconBigStroked:n+="p-3 ",n+="text-4xl ";break;case Y.DyNM_Button_Type.iconOutstanding:n+="p-2.5 ";break}return n}});var Ms=f(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.DyNM_DataHandler=void 0;var at=vt(),ui=class e{name;get data(){return this.data_$()}lastLoadedBy;get;set;getPostProcesses=[];noId;waitsOnLoad=[];dependentDataHandlers=[];loopSafetyCollection=[];loopSafetyTimeout=at.second;loopSafety=10;debugLog;constructor(t,n){try{t.name||(t.name="Unnamed DataHandler "+ +new Date,at.DyFM_Log.warn(`DYNAMO DH.constructor (${this.name}) WARN:
1
+ import{c as Tl}from"./chunk-HGDZCCLA.js";import{a as he,b as _e,c as Ol,e as $a,h as Xa,j as Il,k as zo,l as Wo,m as Yo,o as Fl,p as vt}from"./chunk-KNX6PXMA.js";import{F as Va,a as j,b as Z,c as Ka,f,h as ge,i as fe,k as Se}from"./chunk-TBMJSIBB.js";var Ht=f(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.DyNM_allButtonNewBorderRadius=Je.DyNM_ButtonNewBorderRadius=void 0;var qo=function(e){return e.full="full",e.rounded="rounded",e.smallRadius="smallRadius",e.square="square",e}(qo||(Je.DyNM_ButtonNewBorderRadius=qo={}));Je.DyNM_allButtonNewBorderRadius=Object.values(qo)});var Ut=f(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.DyNM_allButtonNewSizes=Qe.DyNM_ButtonNewSize=void 0;var Zo=function(e){return e.xs="xs",e.small="small",e.medium="medium",e.large="large",e.xl="xl",e}(Zo||(Qe.DyNM_ButtonNewSize=Zo={}));Qe.DyNM_allButtonNewSizes=Object.values(Zo)});var Kt=f(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DyNM_allButtonNewStyleTypes=et.DyNM_ButtonNewStyleType=void 0;var Jo=function(e){return e.filled="filled",e.stroked="stroked",e.outstanding="outstanding",e.tonal="tonal",e.backgroundless="backgroundless",e}(Jo||(et.DyNM_ButtonNewStyleType=Jo={}));et.DyNM_allButtonNewStyleTypes=Object.values(Jo)});var St=f(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.DyNM_allMaterialColors=tt.DyNM_MaterialColor=void 0;var Qo=function(e){return e.primary="primary",e.accent="accent",e.warn="warn",e.none="",e}(Qo||(tt.DyNM_MaterialColor=Qo={}));tt.DyNM_allMaterialColors=Object.values(Qo)});var ti=f(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.DyNM_allButtonNewIconStyleTypes=nt.DyNM_ButtonNewIconStyleType=void 0;var ei=function(e){return e.rounded="rounded",e.outlined="outlined",e}(ei||(nt.DyNM_ButtonNewIconStyleType=ei={}));nt.DyNM_allButtonNewIconStyleTypes=Object.values(ei)});var oi=f(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.DyNM_ButtonNewStyle_Settings=void 0;var kl=Ht(),ja=ti(),Ll=Ut(),Gl=Kt(),Hl=St(),ni=class{size=Ll.DyNM_ButtonNewSize.medium;color=Hl.DyNM_MaterialColor.primary;styleType=Gl.DyNM_ButtonNewStyleType.filled;borderRadius=kl.DyNM_ButtonNewBorderRadius.smallRadius;isIconButton;iconFill;iconStyle=ja.DyNM_ButtonNewIconStyleType.rounded;constructor(t){t&&Object.assign(this,t),this.isIconButton&&!this.iconStyle&&(this.iconStyle=ja.DyNM_ButtonNewIconStyleType.rounded)}};Vt.DyNM_ButtonNewStyle_Settings=ni});var Wa=f($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.DyNM_ButtonNewStyleSettingsPresets=void 0;var Le=Ht(),z=Ut(),Q=Kt(),za=St(),K=oi();$t.DyNM_ButtonNewStyleSettingsPresets={xs:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs}),xsIcon:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,isIconButton:!0}),xsRounded:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded}),xsStroked:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,styleType:Q.DyNM_ButtonNewStyleType.stroked}),xsStrokedIcon:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,styleType:Q.DyNM_ButtonNewStyleType.stroked,isIconButton:!0}),xsBackgroundlessIcon:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0}),xsRoundedTonal:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,styleType:Q.DyNM_ButtonNewStyleType.tonal}),small:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.small}),smallIcon:new K.DyNM_ButtonNewStyle_Settings({isIconButton:!0,size:z.DyNM_ButtonNewSize.small}),smallStrokedIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,isIconButton:!0,size:z.DyNM_ButtonNewSize.small}),smallTonalIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.tonal,isIconButton:!0,size:z.DyNM_ButtonNewSize.small}),smallRounded:new K.DyNM_ButtonNewStyle_Settings({borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,size:z.DyNM_ButtonNewSize.small}),smallStroked:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,size:z.DyNM_ButtonNewSize.small}),smallTonal:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.tonal,size:z.DyNM_ButtonNewSize.small}),smallRoundedTonal:new K.DyNM_ButtonNewStyle_Settings({borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,styleType:Q.DyNM_ButtonNewStyleType.tonal,size:z.DyNM_ButtonNewSize.small}),smallStrokedRounded:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,size:z.DyNM_ButtonNewSize.small}),smallBackgroundless:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,size:z.DyNM_ButtonNewSize.small}),icon:new K.DyNM_ButtonNewStyle_Settings({isIconButton:!0}),backgroundlessSmallIconUnset:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0,size:z.DyNM_ButtonNewSize.small,color:""}),backgroundlessIconUnset:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0,color:""}),smallBackgroundlessIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0,size:z.DyNM_ButtonNewSize.small}),strokedIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,isIconButton:!0}),backgroundlessIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0}),accent:new K.DyNM_ButtonNewStyle_Settings({color:za.DyNM_MaterialColor.accent}),strokedAccent:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,color:za.DyNM_MaterialColor.accent}),stroked:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked}),round:new K.DyNM_ButtonNewStyle_Settings({borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded}),strokedRound:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded}),large:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.large}),largeStroked:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,size:z.DyNM_ButtonNewSize.large}),largeStrokedRound:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,size:z.DyNM_ButtonNewSize.large}),largeTonal:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.tonal,size:z.DyNM_ButtonNewSize.large}),largeIcon:new K.DyNM_ButtonNewStyle_Settings({isIconButton:!0,size:z.DyNM_ButtonNewSize.large}),largeStrokedIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,isIconButton:!0,size:z.DyNM_ButtonNewSize.large}),xl:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xl}),xlIcon:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xl,isIconButton:!0})}});var ii=f(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.DyNM_Container_Type=void 0;var Ya=function(e){return e.card="card",e.accordion="accordion",e.dynamo="dynamo",e.dynamoSmall="dynamo-small",e.none="none",e}(Ya||(Xt.DyNM_Container_Type=Ya={}))});var ai=f(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.DyNM_FieldAppearance=void 0;var qa=function(e){return e.fill="fill",e.outline="outline",e}(qa||(jt.DyNM_FieldAppearance=qa={}))});var si=f(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.DyNM_Storage_Type=void 0;var Za=function(e){return e.session="session",e.local="local",e.none="",e}(Za||(zt.DyNM_Storage_Type=Za={}))});var Qa=f(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.DyNM_global_settings=void 0;var Ul=ii(),Kl=ai(),Ja=si();Wt.DyNM_global_settings={fieldAppearance:Kl.DyNM_FieldAppearance.outline,baseUrl:"/api",usageEndpoints:{startSession:"/usage/new-session",updateUsage:"/usage/update/{sessionId}",closeSession:"/usage/close-session/{sessionId}",getUsageData:"/usage/get/all"},alwaysLookForFieldAdder:!1,fieldErrorMessages:{required:"This field is required",email:"This is not a valid email format",mask:"This is not a valid format"},defaultStorage:Ja.DyNM_Storage_Type.session,storageEncryptionKey:"DEFAULT_DyFM_ENCRYPTION_KEY_CHANGE_THIS_XXXXXXX00000009999999999",defaultFormStorage:Ja.DyNM_Storage_Type.session,defaultFormContainerType:Ul.DyNM_Container_Type.none,formMessages:{required:"There are required fields to set!",invalid:"The form is not set correctly",submitSuccess:"Save was successful!",submitFailed:"Saving data has failed!"},questionDefaultOptions:{a:"No",b:"Yes"},fieldTooltipShowDelay:300,snackBarHideLabel:"Hide",log_settings:{api_calls:!0,messagesCS_debug:!1}}});var ri=f(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.DyNM_Button_Type=void 0;var es=function(e){return e.default="default",e.big="big",e.stroked="stroked",e.bigStroked="big-stroked",e.small="small",e.smallStroked="small-stroked",e.round="round",e.strokedRound="stroked-round",e.bigStrokedRound="big-stroked-round",e.block="block",e.bigBlock="big-block",e.strokedBlock="stroked-block",e.bigStrokedBlock="big-stroked-block",e.outstanding="outstanding",e.icon="icon",e.iconSmall="icon-small",e.iconBig="icon-big",e.iconStroked="icon-stroked",e.iconSmallStroked="icon-small-stroked",e.iconBigStroked="icon-big-stroked",e.iconOutstanding="icon-outstanding",e}(es||(Yt.DyNM_Button_Type=es={}))});var ns=f(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.DyNM_CheckboxLabelPosition=void 0;var ts=function(e){return e.before="before",e.after="after",e}(ts||(qt.DyNM_CheckboxLabelPosition=ts={}))});var is=f(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.DyNM_Field_Type=void 0;var os=function(e){return e.spacer="spacer",e.checkbox="checkbox",e.toggle="toggle",e.text="text",e.textList="textList",e.password="password",e.textarea="textarea",e.richtextarea="richtextarea",e.number="number",e.numberRange="numberRange",e.slider="slider",e.sliderRange="sliderRange",e.select="select",e.multiselect="multiselect",e.chipSelect="chipSelect",e.chipMultiselect="chipMultiselect",e.radioSelect="radioSelect",e.date="date",e.dateRange="dateRange",e.dateTime="dateTime",e.dateTimeRange="dateTimeRange",e.file="file",e.files="files",e.picture="picture",e.pictures="pictures",e.fieldAdder="fieldAdder",e.multifield="multifield",e}(os||(Zt.DyNM_Field_Type=os={}))});var ss=f(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.DyNM_File_Type=void 0;var as=function(e){return e.arrayBuffer="arrayBuffer",e.binaryString="binaryString",e.dataUrl="dataUrl",e.text="text",e.blob="blob",e.file="file",e}(as||(Jt.DyNM_File_Type=as={}))});var ds=f(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.DyNM_FormAccess=void 0;var rs=function(e){return e.readOnly="read-only",e.writeOnly="write-only",e.readNWrite="read-n-write",e}(rs||(Qt.DyNM_FormAccess=rs={}))});var ls=f(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.DyNM_FormResetData=void 0;var cs=function(e){return e.null="null",e.empty="empty",e.default="deafult",e.dataHandler="data-handler",e.init="init",e.stored="stored",e}(cs||(en.DyNM_FormResetData=cs={}))});var us=f(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.DyNM_FormStoreOn=void 0;var ms=function(e){return e.close="close",e.change="change",e}(ms||(tn.DyNM_FormStoreOn=ms={}))});var ci=f(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.DyNM_allMaterialTooltipPositions=ot.DyNM_MaterialTooltipPosition=void 0;var di=function(e){return e.above="above",e.below="below",e.before="before",e.after="after",e.left="left",e.right="right",e}(di||(ot.DyNM_MaterialTooltipPosition=di={}));ot.DyNM_allMaterialTooltipPositions=Object.values(di)});var gs=f(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.DyNM_PreconfiguredField_Type=void 0;var ps=function(e){return e.email="email",e.phone="phone",e}(ps||(nn.DyNM_PreconfiguredField_Type=ps={}))});var hs=f(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.DyNM_Validator_Type=void 0;var fs=function(e){return e.requiredCheckbox="requiredCheckbox",e}(fs||(on.DyNM_Validator_Type=fs={}))});var ys=f(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.DyNM_FXLayoutAlignPerDir=it.DyNM_FXLayoutAlignLayDir=void 0;var _s=function(e){return e.none="none",e.start="start",e.center="center",e.end="end",e.spaceAround="space-around",e.spaceBetween="space-between",e}(_s||(it.DyNM_FXLayoutAlignLayDir=_s={})),Cs=function(e){return e.none="none",e.start="start",e.center="center",e.end="end",e.stretch="stretch",e}(Cs||(it.DyNM_FXLayoutAlignPerDir=Cs={}))});var bs=f(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.DyNM_FXLayout=void 0;var xs=function(e){return e.row="row",e.column="column",e}(xs||(an.DyNM_FXLayout=xs={}))});var Ss=f(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.DyNM_HTMLInput_Type=void 0;var vs=function(e){return e.button="button",e.checkbox="checkbox",e.color="color",e.date="date",e.datetimeLocal="datetime-local",e.email="email",e.file="file",e.hidden="hidden",e.image="image",e.month="month",e.number="number",e.password="password",e.radio="radio",e.range="range",e.reset="reset",e.search="search",e.submit="submit",e.tel="tel",e.text="text",e.time="time",e.url="url",e.week="week",e}(vs||(sn.DyNM_HTMLInput_Type=vs={}))});var mi=f(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.DyNM_Button_Params=void 0;var Vl=vt(),Y=ri(),$l=St(),Xl=ci(),jl=Xl.DyNM_MaterialTooltipPosition.above,zl=250,li=class{id;label;color=$l.DyNM_MaterialColor.primary;icon;description;descriptionPosition;descriptionDelay;type;disabled;dontRoute;routerLink;routerLinkQueryParams;iconAfter;buttonType;class;contentClass;classOnActive;contentClassOnActive;customClass;customContentClass;customClassOnActive;customContentClassOnActive;onClickEvents=[];useDisablerWhileEventsInProgress;constructor(t){t&&Object.assign(this,t),this.type||(this.icon&&!this.label?this.type=Y.DyNM_Button_Type.icon:this.type=Y.DyNM_Button_Type.default),this.id||(this.id=`${this.label}-${this.type}-${this.color}-button`),(this.description||this.type.includes("icon")&&this.label)&&(this.descriptionPosition||(this.descriptionPosition=jl),this.descriptionDelay||(this.descriptionDelay=zl)),this.class=Wl(this.type,this.color)+(this.customClass??""),this.contentClass=ql(this.type,this.customContentClass)+(this.customContentClass??""),(this.customClassOnActive||this.routerLink)&&(this.classOnActive=Yl(this.type,this.color)+(this.customClassOnActive??""),this.contentClassOnActive=this.customContentClassOnActive??"")}executeEvents(t){return Se(this,null,function*(){yield Vl.DyFM_Array.asyncForEach(this.onClickEvents,n=>Se(this,null,function*(){yield n(t)}))})}};rn.DyNM_Button_Params=li;function Wl(e,t,n=!0){let o="";switch(n?(o+="disabled:bg-neutral-800 ",o+="disabled:hover:bg-neutral-600 ",o+="disabled:text-neutral-600 ",o+="disabled:hover:text-neutral-900 "):(o+="disabled:bg-neutral-200 ",o+="disabled:hover:bg-neutral-400 ",o+="disabled:text-neutral-400 ",o+="disabled:hover:text-neutral-100 "),o+="disabled:cursor-not-allowed ",e){case Y.DyNM_Button_Type.default:case Y.DyNM_Button_Type.stroked:o+="rounded-xl ";break;case Y.DyNM_Button_Type.small:case Y.DyNM_Button_Type.smallStroked:o+="rounded-md ";break;case Y.DyNM_Button_Type.big:case Y.DyNM_Button_Type.bigStroked:o+="rounded-2xl ";break}return e.includes("stroked")?(e.includes("big")?o+="border-4 ":o+="border-2 ",o+=`border-${t}-500 `,o+=`text-${t}-500 `,n?(o+=`hover:bg-${t}-950 `,o+="disabled:border-neutral-600 "):(o+=`hover:bg-${t}-50 `,o+="disabled:border-neutral-400 ")):(o+=`bg-${t}-500 `,o+=`text-${t}C-500 `,n?(o+=`hover:bg-${t}-300 `,o+=`hover:text-${t}C-300 `):(o+=`hover:bg-${t}-700 `,o+=`hover:text-${t}C-700 `)),e.includes("round")&&(o+="rounded-full "),e.includes("icon")?o+="rounded-full ":o+="w-full ",e.includes("outstanding")&&(o+="outstanding ",o.includes("rounded-full")||(o+="rounded-full ")),o}function Yl(e,t,n=!0){let o=" ";return e.includes("stroked")?n?o+=`bg-${t}-950 `:o+=`bg-${t}-50 `:n?(o+=`bg-${t}-300 `,o+=`text-${t}C-300 `):(o+=`bg-${t}-700 `,o+=`text-${t}C-700 `),o}function ql(e,t){let n="flex ";switch(t?.includes("items-")||(n+="items-center "),t?.includes("justify-")||(n+="justify-center "),e.includes("icon")||(e.includes("big")?n+="text-2xl ":n+="text-md "),e.includes("icon")||(e.includes("small")?n+="mx-2 ":n+="mx-5 "),e){case Y.DyNM_Button_Type.default:case Y.DyNM_Button_Type.block:n+="my-3 ";break;case Y.DyNM_Button_Type.stroked:case Y.DyNM_Button_Type.strokedBlock:n+="my-2.5 ";break;case Y.DyNM_Button_Type.big:case Y.DyNM_Button_Type.bigBlock:case Y.DyNM_Button_Type.bigStroked:case Y.DyNM_Button_Type.bigStrokedBlock:n+="my-3 ";break;case Y.DyNM_Button_Type.round:n+="my-3 ";break;case Y.DyNM_Button_Type.strokedRound:n+="my-2.5 ";break;case Y.DyNM_Button_Type.outstanding:n+="my-3 ";break;case Y.DyNM_Button_Type.icon:n+="p-2 ",n+="text-2xl ";break;case Y.DyNM_Button_Type.iconStroked:n+="p-1.5 ",n+="text-2xl ";break;case Y.DyNM_Button_Type.iconSmall:case Y.DyNM_Button_Type.iconSmallStroked:n+="p-1 ",n+="text-lg ";break;case Y.DyNM_Button_Type.iconBig:n+="p-4 ",n+="text-4xl ";break;case Y.DyNM_Button_Type.iconBigStroked:n+="p-3 ",n+="text-4xl ";break;case Y.DyNM_Button_Type.iconOutstanding:n+="p-2.5 ";break}return n}});var Ms=f(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.DyNM_DataHandler=void 0;var at=vt(),ui=class e{name;get data(){return this.data_$()}lastLoadedBy;get;set;getPostProcesses=[];noId;waitsOnLoad=[];dependentDataHandlers=[];loopSafetyCollection=[];loopSafetyTimeout=at.second;loopSafety=10;debugLog;constructor(t,n){try{t.name||(t.name="Unnamed DataHandler "+ +new Date,at.DyFM_Log.warn(`DYNAMO DH.constructor (${this.name}) WARN:
2
2
  Name is not set!`,`
3
3
 
4
4
  `,new Error)),this.name=t.name,this.debugLog=t?.debugLog,t.loopSafety===void 0?t.loopSafety=10:this.loopSafety=t.loopSafety,t.get&&(this.get=t.get),t.set&&(this.set=t.set),this.noId=!!t.noId,n||(t.dependencyDataHandler&&this.addDependencyDataHandler(t.dependencyDataHandler,!0),t.dependentDataHandlers&&this.addDependentDataHandlers(t.dependentDataHandlers,!0)),t.getPostProcess&&this.getPostProcesses.push(t.getPostProcess)}catch(o){at.DyFM_Log.error(`Error creating DyNM_DataHandler (${t.name}):`,o)}}addDependencyDataHandler(t,n){try{if(!t)throw new Error(`DYNAMO DH.addDependencyDataHandler (${this.name}) ERROR:
@@ -112,4 +112,4 @@ This usually indicates:
112
112
  2) Invalid encryption key,
113
113
  3) Serialization failure.`),g}}return e})();so.DyFM_Crypto=H0});var ld=f(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});var U0=(_e(),fe(he));U0.__exportStar(cd(),ea)});var Ie=f(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.DyFM_AI_Provider=void 0;var md=function(e){return e.OpenAI="open-ai",e.Anthropic="anthropic",e.Google="google",e.LocalAI="local-ai",e.FdpAI="fdp-ai",e}(md||(ro.DyFM_AI_Provider=md={}))});var ud=f(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.DyFM_AI_ModelRef_Util=void 0;var K0=Ie(),ta=class e{static separator=":";static validProviders=new Set(Object.values(K0.DyFM_AI_Provider));static create(t,n){return`${t}${e.separator}${n}`}static parse(t){let n=t.indexOf(e.separator);if(n<0)throw new Error(`Ervenytelen modelRef formatum: "${t}" -- hianyzik a "${e.separator}" elvlaszto`);let o=t.substring(0,n),g=t.substring(n+1);if(!e.validProviders.has(o))throw new Error(`Ismeretlen AI provider: "${o}" a modelRef-ben: "${t}"`);if(!g)throw new Error(`Ures modell azonosito a modelRef-ben: "${t}"`);return{provider:o,model:g}}static getProvider(t){return e.parse(t).provider}static getModel(t){return e.parse(t).model}static isValid(t){if(!t)return!1;let n=t.indexOf(e.separator);if(n<0)return!1;let o=t.substring(0,n),g=t.substring(n+1);return e.validProviders.has(o)&&!!g}};co.DyFM_AI_ModelRef_Util=ta});var gd=f(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.DyFM_AI_ModelType=void 0;var pd=function(e){return e.LLM="llm",e.Embedding="embedding",e.Chat="chat",e}(pd||(lo.DyFM_AI_ModelType=pd={}))});var hd=f(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.DyFM_AI_MessageRole=void 0;var fd=function(e){return e.system="system",e.user="user",e.assistant="assistant",e}(fd||(mo.DyFM_AI_MessageRole=fd={}))});var Rt=f(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.DyFM_AI_CallSettings=void 0;var na=class{systemPrompt="";useModel;project;debugLog;temperature=0;maxTokens=2e3;topP=.75;frequencyPenalty=0;presencePenalty=0;constructor(t){t&&Object.assign(this,t)}};uo.DyFM_AI_CallSettings=na});var Cd=f(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0})});var xd=f(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0})});var vd=f(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0})});var Md=f(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0})});var Ad=f(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0})});var Bd=f(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0})});var Nd=f(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0})});var Bt=f(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.DyFM_AI_Settings=void 0;var oa=class{provider;config;defaultSettings;constructor(t){t&&Object.assign(this,t)}};po.DyFM_AI_Settings=oa});var Et=f(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.DyFM_AI_UserProviderConfig=void 0;var ia=class{provider;encryptedApiKey;keySuffix;isActive;label;lastTestedAt;lastUsedAt;selectedModels;constructor(t){t&&Object.assign(this,t)}};go.DyFM_AI_UserProviderConfig=ia});var wd=f(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});var Ce=(_e(),fe(he));Ce.__exportStar(ud(),de);Ce.__exportStar(Ie(),de);Ce.__exportStar(gd(),de);Ce.__exportStar(hd(),de);Ce.__exportStar(Rt(),de);Ce.__exportStar(Cd(),de);Ce.__exportStar(xd(),de);Ce.__exportStar(vd(),de);Ce.__exportStar(Md(),de);Ce.__exportStar(Ad(),de);Ce.__exportStar(Bd(),de);Ce.__exportStar(Nd(),de);Ce.__exportStar(Bt(),de);Ce.__exportStar(Et(),de)});var fo=f(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.DyFM_OAI_allEmbeddingModels=dt.DyFM_OAI_Model=void 0;var Nt=function(e){return e.gpt5="gpt-5",e.gpt51="gpt-5.1",e.gpt5_mini="gpt-5-mini",e.gpt5_nano="gpt-5-nano",e.gpt5_chatLatest="gpt-5-chat-latest",e.gpt51_chatLatest="gpt-5.1-chat-latest",e.gpt5_codex="gpt-5-codex",e.gpt51_codex="gpt-5.1-codex",e.gpt4o="gpt-4o",e.gpt4o_20240806="gpt-4o-2024-08-06",e.gpt4o_20240513="gpt-4o-2024-05-13",e.gpt4o_mini="gpt-4o-mini",e.gpt4o_mini20240718="gpt-4o-mini-2024-07-18",e.textEmbedding_3Small="text-embedding-3-small",e.textEmbedding_3Large="text-embedding-3-large",e.textEmbedding_ada002="text-embedding-ada-002",e}(Nt||(dt.DyFM_OAI_Model=Nt={}));dt.DyFM_OAI_allEmbeddingModels=[Nt.textEmbedding_3Small,Nt.textEmbedding_3Large,Nt.textEmbedding_ada002]});var Pd=f(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.DyFM_OAI_EmbeddingModelDimensions=void 0;var aa=fo();ho.DyFM_OAI_EmbeddingModelDimensions={[aa.DyFM_OAI_Model.textEmbedding_3Small]:1536,[aa.DyFM_OAI_Model.textEmbedding_3Large]:3072,[aa.DyFM_OAI_Model.textEmbedding_ada002]:1536}});var ra=f(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.DyFM_OAI_CallSettings=void 0;var V0=Rt(),$0=fo(),sa=class extends V0.DyFM_AI_CallSettings{useModel=$0.DyFM_OAI_Model.gpt4o;constructor(t){super(t),t&&Object.assign(this,t)}};_o.DyFM_OAI_CallSettings=sa});var Id=f(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0})});var Td=f(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0})});var kd=f(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.DyFM_OAI_Settings=void 0;var X0=Bt(),j0=Ie(),z0=ra(),da=class extends X0.DyFM_AI_Settings{provider=j0.DyFM_AI_Provider.OpenAI;defaultSettings=new z0.DyFM_OAI_CallSettings;config={};constructor(t){super(t),t&&Object.assign(this,t)}};Co.DyFM_OAI_Settings=da});var Ld=f(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.DyFM_OAI_UserProviderConfig=void 0;var W0=Et(),Y0=Ie(),ca=class extends W0.DyFM_AI_UserProviderConfig{provider=Y0.DyFM_AI_Provider.OpenAI;organization;project;constructor(t){super(t),t&&Object.assign(this,t)}};yo.DyFM_OAI_UserProviderConfig=ca});var Gd=f(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});var Ve=(_e(),fe(he));Ve.__exportStar(Pd(),Fe);Ve.__exportStar(fo(),Fe);Ve.__exportStar(ra(),Fe);Ve.__exportStar(Id(),Fe);Ve.__exportStar(Td(),Fe);Ve.__exportStar(kd(),Fe);Ve.__exportStar(Ld(),Fe)});var la=f(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.DyFM_AAI_Model=void 0;var Hd=function(e){return e.claude_3_5_sonnet_latest="claude-3-5-sonnet-latest",e.claude_3_5_sonnet_20241022="claude-3-5-sonnet-20241022",e.claude_3_5_haiku_latest="claude-3-5-haiku-latest",e.claude_3_opus_latest="claude-3-opus-latest",e.claude_3_sonnet_latest="claude-3-sonnet-latest",e.claude_3_haiku_latest="claude-3-haiku-latest",e}(Hd||(xo.DyFM_AAI_Model=Hd={}))});var Kd=f(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0})});var ua=f(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.DyFM_AAI_CallSettings=void 0;var q0=Rt(),Z0=la(),ma=class extends q0.DyFM_AI_CallSettings{useModel=Z0.DyFM_AAI_Model.claude_3_5_sonnet_latest;constructor(t){super(t),t&&Object.assign(this,t)}};bo.DyFM_AAI_CallSettings=ma});var Vd=f(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.DyFM_AAI_Settings=void 0;var J0=Bt(),Q0=Ie(),em=ua(),pa=class extends J0.DyFM_AI_Settings{provider=Q0.DyFM_AI_Provider.Anthropic;defaultSettings=new em.DyFM_AAI_CallSettings;config={};constructor(t){super(t),t&&Object.assign(this,t)}};vo.DyFM_AAI_Settings=pa});var $d=f(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.DyFM_AAI_UserProviderConfig=void 0;var tm=Et(),nm=Ie(),ga=class extends tm.DyFM_AI_UserProviderConfig{provider=nm.DyFM_AI_Provider.Anthropic;baseURL;constructor(t){super(t),t&&Object.assign(this,t)}};So.DyFM_AAI_UserProviderConfig=ga});var Xd=f($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});var wt=(_e(),fe(he));wt.__exportStar(la(),$e);wt.__exportStar(Kd(),$e);wt.__exportStar(ua(),$e);wt.__exportStar(Vd(),$e);wt.__exportStar($d(),$e)});var fa=f(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.DyFM_FdpAI_Model=void 0;var jd=function(e){return e.fdpBase1="fdp-base-1",e}(jd||(Mo.DyFM_FdpAI_Model=jd={}))});var Wd=f(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0})});var _a=f(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.DyFM_FdpAI_CallSettings=void 0;var om=Rt(),im=fa(),ha=class extends om.DyFM_AI_CallSettings{useModel=im.DyFM_FdpAI_Model.fdpBase1;constructor(t){super(t),t&&Object.assign(this,t)}};Do.DyFM_FdpAI_CallSettings=ha});var Yd=f(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.DyFM_FdpAI_Settings=void 0;var am=Bt(),sm=Ie(),rm=_a(),Ca=class extends am.DyFM_AI_Settings{provider=sm.DyFM_AI_Provider.FdpAI;defaultSettings=new rm.DyFM_FdpAI_CallSettings;config={};constructor(t){super(t),t&&Object.assign(this,t)}};Ao.DyFM_FdpAI_Settings=Ca});var qd=f(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.DyFM_FdpAI_UserProviderConfig=void 0;var dm=Et(),cm=Ie(),ya=class extends dm.DyFM_AI_UserProviderConfig{provider=cm.DyFM_AI_Provider.FdpAI;baseURL;constructor(t){super(t),t&&Object.assign(this,t)}};Ro.DyFM_FdpAI_UserProviderConfig=ya});var Zd=f(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});var Pt=(_e(),fe(he));Pt.__exportStar(fa(),Xe);Pt.__exportStar(Wd(),Xe);Pt.__exportStar(_a(),Xe);Pt.__exportStar(Yd(),Xe);Pt.__exportStar(qd(),Xe)});var Qd=f(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.DyFM_Msg_Type=void 0;var Jd=function(e){return e.text="text",e.userToUser="user-to-user",e.userToAi="user-to-ai",e.aiToUser="ai-to-user",e.system="system",e.agentProcess="agent-process",e}(Jd||(Bo.DyFM_Msg_Type=Jd={}))});var tc=f(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.DyFM_Msg_Status=void 0;var ec=function(e){return e.draft="draft",e.sending="sending",e.sent="sent",e.delivered="delivered",e.read="read",e.failed="failed",e.deleted="deleted",e}(ec||(Eo.DyFM_Msg_Status=ec={}))});var oc=f(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.DyFM_Msg_DeliveryStatus=void 0;var nc=function(e){return e.pending="pending",e.delivered="delivered",e.failed="failed",e.read="read",e}(nc||(No.DyFM_Msg_DeliveryStatus=nc={}))});var ac=f(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.DyFM_Msg_ConversationType=void 0;var ic=function(e){return e.direct="direct",e.group="group",e.assistantChat="assistant-chat",e.agentProcess="agent-process",e.channel="channel",e}(ic||(wo.DyFM_Msg_ConversationType=ic={}))});var rc=f(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.DyFM_Msg_ParticipantRole=void 0;var sc=function(e){return e.owner="owner",e.admin="admin",e.member="member",e.assistant="assistant",e.agent="agent",e}(sc||(Po.DyFM_Msg_ParticipantRole=sc={}))});var cc=f(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.DyFM_Msg_Provider_Type=void 0;var dc=function(e){return e.discord="discord",e.slack="slack",e.teams="teams",e.dynamo="dynamo",e.custom="custom",e}(dc||(Oo.DyFM_Msg_Provider_Type=dc={}))});var mc=f(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.DyFM_Msg_AttachmentType=void 0;var lc=function(e){return e.image="image",e.video="video",e.audio="audio",e.document="document",e.archive="archive",e.code="code",e.file="file",e}(lc||(Io.DyFM_Msg_AttachmentType=lc={}))});var pc=f(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.DyFM_Msg_EventKey=void 0;var uc=function(e){return e.messageSent="msg:message-sent",e.messageUpdated="msg:message-updated",e.messageDeleted="msg:message-deleted",e.messageDelivered="msg:message-delivered",e.messageRead="msg:message-read",e.conversationCreated="msg:conversation-created",e.conversationUpdated="msg:conversation-updated",e.conversationDeleted="msg:conversation-deleted",e.participantAdded="msg:participant-added",e.participantRemoved="msg:participant-removed",e.typingStart="msg:typing-start",e.typingStop="msg:typing-stop",e.reactionAdded="msg:reaction-added",e.reactionRemoved="msg:reaction-removed",e.agentStepAdded="msg:agent-step-added",e.agentProcessComplete="msg:agent-process-complete",e}(uc||(Fo.DyFM_Msg_EventKey=uc={}))});var gc=f(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.DyFM_msgMessage_dataParams=ct.DyFM_Msg_Message=void 0;var lm=zo(),mm=Yo(),xa=class extends lm.DyFM_Metadata{conversationId;content;type;status;senderId;senderName;senderDisplayName;recipientIds;parentMessageId;threadId;threadInfo;attachments;mentions;reactions;aiProvider;aiModel;isAIGenerated;systemPrompt;agentProcessSteps;platformSource;platformMessageId;platformChannelId;sentAt;deliveredAt;readAt;editedAt;constructor(t){super(t),t&&Object.assign(this,t)}};ct.DyFM_Msg_Message=xa;ct.DyFM_msgMessage_dataParams=new mm.DyFM_DataModel_Params({dataName:"msg_message",properties:{conversationId:{key:"conversationId",type:"string",required:!0,index:!0},content:{key:"content",type:"string",required:!0},type:{key:"type",type:"string",required:!0},status:{key:"status",type:"string",required:!0,index:!0},senderId:{key:"senderId",type:"string",required:!0,index:!0},senderName:{key:"senderName",type:"string"},senderDisplayName:{key:"senderDisplayName",type:"string"},recipientIds:{key:"recipientIds",type:"string[]"},parentMessageId:{key:"parentMessageId",type:"string",index:!0},threadId:{key:"threadId",type:"string",index:!0},threadInfo:{key:"threadInfo",type:"object"},attachments:{key:"attachments",type:"object[]"},mentions:{key:"mentions",type:"object[]"},reactions:{key:"reactions",type:"object[]"},aiProvider:{key:"aiProvider",type:"string"},aiModel:{key:"aiModel",type:"string"},isAIGenerated:{key:"isAIGenerated",type:"boolean"},systemPrompt:{key:"systemPrompt",type:"string"},agentProcessSteps:{key:"agentProcessSteps",type:"object[]"},platformSource:{key:"platformSource",type:"string"},platformMessageId:{key:"platformMessageId",type:"string",index:!0},platformChannelId:{key:"platformChannelId",type:"string",index:!0},sentAt:{key:"sentAt",type:"Date",index:!0},deliveredAt:{key:"deliveredAt",type:"Date"},readAt:{key:"readAt",type:"Date"},editedAt:{key:"editedAt",type:"Date"}}})});var fc=f(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.DyFM_msgConversation_dataParams=lt.DyFM_Msg_Conversation=void 0;var um=zo(),pm=Yo(),ba=class extends um.DyFM_Metadata{title;type;participants;lastMessageId;lastMessageAt;lastMessagePreview;isArchived;isMuted;isPinned;platformSource;platformChannelId;platformChannelName;aiProvider;aiModel;systemPrompt;messageCount;unreadCount;constructor(t){super(t),t&&Object.assign(this,t)}};lt.DyFM_Msg_Conversation=ba;lt.DyFM_msgConversation_dataParams=new pm.DyFM_DataModel_Params({dataName:"msg_conversation",properties:{title:{key:"title",type:"string"},type:{key:"type",type:"string",required:!0,index:!0},participants:{key:"participants",type:"DyFM_Msg_Participant[]",required:!0,subObjectParams:{userId:{key:"userId",type:"string"},role:{key:"role",type:"string"},joinedAt:{key:"joinedAt",type:"Date"}}},lastMessageId:{key:"lastMessageId",type:"string"},lastMessageAt:{key:"lastMessageAt",type:"Date",index:!0},lastMessagePreview:{key:"lastMessagePreview",type:"string"},isArchived:{key:"isArchived",type:"boolean"},isMuted:{key:"isMuted",type:"boolean"},isPinned:{key:"isPinned",type:"boolean"},platformSource:{key:"platformSource",type:"string",index:!0},platformChannelId:{key:"platformChannelId",type:"string",index:!0},platformChannelName:{key:"platformChannelName",type:"string"},aiProvider:{key:"aiProvider",type:"string"},aiModel:{key:"aiModel",type:"string"},systemPrompt:{key:"systemPrompt",type:"string"},messageCount:{key:"messageCount",type:"number"},unreadCount:{key:"unreadCount",type:"number"}}})});var _c=f(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0})});var yc=f(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0})});var bc=f(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0})});var Sc=f(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0})});var Dc=f(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0})});var Ac=f(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.DyFM_msgModule_settings=mt.DyFM_MsgRoute=void 0;var se=function(e){return e.getConversations="getConversations",e.getConversation="getConversation",e.createConversation="createConversation",e.updateConversation="updateConversation",e.deleteConversation="deleteConversation",e.getMessages="getMessages",e.sendMessage="sendMessage",e.editMessage="editMessage",e.deleteMessage="deleteMessage",e.markAsRead="markAsRead",e.addReaction="addReaction",e.removeReaction="removeReaction",e.addParticipant="addParticipant",e.removeParticipant="removeParticipant",e.getAgentProcess="getAgentProcess",e}(se||(mt.DyFM_MsgRoute=se={}));mt.DyFM_msgModule_settings={mainRoute:"/messaging",endPoints:{[se.getConversations]:"/conversations",[se.getConversation]:"/conversations/:conversationId",[se.createConversation]:"/conversations/create",[se.updateConversation]:"/conversations/:conversationId",[se.deleteConversation]:"/conversations/:conversationId",[se.getMessages]:"/conversations/:conversationId/messages",[se.sendMessage]:"/conversations/:conversationId/messages/send",[se.editMessage]:"/messages/:messageId/edit",[se.deleteMessage]:"/messages/:messageId",[se.markAsRead]:"/messages/mark-read",[se.addReaction]:"/messages/:messageId/reactions",[se.removeReaction]:"/messages/:messageId/reactions/:emoji",[se.addParticipant]:"/conversations/:conversationId/participants",[se.removeParticipant]:"/conversations/:conversationId/participants/:userId",[se.getAgentProcess]:"/messages/:messageId/agent-process"}}});var Rc=f(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});var ce=(_e(),fe(he));ce.__exportStar(Qd(),ae);ce.__exportStar(tc(),ae);ce.__exportStar(oc(),ae);ce.__exportStar(ac(),ae);ce.__exportStar(rc(),ae);ce.__exportStar(cc(),ae);ce.__exportStar(mc(),ae);ce.__exportStar(pc(),ae);ce.__exportStar(gc(),ae);ce.__exportStar(fc(),ae);ce.__exportStar(_c(),ae);ce.__exportStar(yc(),ae);ce.__exportStar(bc(),ae);ce.__exportStar(Sc(),ae);ce.__exportStar(Dc(),ae);ce.__exportStar(Ac(),ae)});var Ec=f(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.DyFM_Agt_ProcessStepType=void 0;var Bc=function(e){return e.collectContext="collect-context",e.analyze="analyze",e.reason="reason",e.plan="plan",e.toolUse="tool-use",e.retrieve="retrieve",e.generate="generate",e.validate="validate",e.error="error",e.complete="complete",e}(Bc||(To.DyFM_Agt_ProcessStepType=Bc={}))});var wc=f(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.DyFM_Agt_ToolStatus=void 0;var Nc=function(e){return e.pending="pending",e.running="running",e.success="success",e.failed="failed",e.cancelled="cancelled",e.timeout="timeout",e}(Nc||(ko.DyFM_Agt_ToolStatus=Nc={}))});var Oc=f(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0})});var Fc=f(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0})});var kc=f(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0})});var Lc=f(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});var Ot=(_e(),fe(he));Ot.__exportStar(Ec(),je);Ot.__exportStar(wc(),je);Ot.__exportStar(Oc(),je);Ot.__exportStar(Fc(),je);Ot.__exportStar(kc(),je)});var Gc=f(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.DyFM_fullTestRoute=te.DyFM_testModule_settings=te.DyFM_TestRoute=void 0;var me=function(e){return e.testGet="test-get",e.testPost="test-post",e.testPut="test-put",e.testPatch="test-patch",e.testDelete="test-delete",e.getServerStatus="get-server-status",e}(me||(te.DyFM_TestRoute=me={}));te.DyFM_testModule_settings={mainRoute:"/test",endPoints:j({},Object.fromEntries(Object.values(me).map(e=>[e,`/${e}`])))};te.DyFM_fullTestRoute={[me.testGet]:te.DyFM_testModule_settings.mainRoute+te.DyFM_testModule_settings.endPoints[me.testGet],[me.testPost]:te.DyFM_testModule_settings.mainRoute+te.DyFM_testModule_settings.endPoints[me.testPost],[me.testPut]:te.DyFM_testModule_settings.mainRoute+te.DyFM_testModule_settings.endPoints[me.testPut],[me.testPatch]:te.DyFM_testModule_settings.mainRoute+te.DyFM_testModule_settings.endPoints[me.testPatch],[me.testDelete]:te.DyFM_testModule_settings.mainRoute+te.DyFM_testModule_settings.endPoints[me.testDelete],[me.getServerStatus]:te.DyFM_testModule_settings.mainRoute+te.DyFM_testModule_settings.endPoints[me.getServerStatus]}});var Hc=f(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});var gm=(_e(),fe(he));gm.__exportStar(Gc(),va)});var Uc=f(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.DyFM_usageModule_settings=pt.DyFM_UsageRoute=void 0;var ut=function(e){return e.newSession="newSession",e.closeSession="closeSession",e.updateUsage="updateUsage",e.getUsageData="getUsageData",e}(ut||(pt.DyFM_UsageRoute=ut={}));pt.DyFM_usageModule_settings={mainRoute:"/usage",endPoints:{[ut.newSession]:"/new-session",[ut.closeSession]:"/close-session/:sessionId",[ut.updateUsage]:"/update/:sessionId",[ut.getUsageData]:"/get/:range"}}});var Kc=f(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.DyFM_usageSession_dataParams=gt.DyFM_UsageSession=void 0;var fm=Yo(),hm=zo(),Sa=class extends hm.DyFM_Metadata{date;sessionStart;sessionEnd;address;issuer;locationData;usageData=[];totalSessionTime;loggedInAs;constructor(t){super(t),t&&(!t.date&&t.sessionStart&&(t.date=t.sessionStart.toISOString().substring(0,10)),Object.assign(this,t))}};gt.DyFM_UsageSession=Sa;gt.DyFM_usageSession_dataParams=new fm.DyFM_DataModel_Params({dataName:"usage_session",properties:{date:{key:"date",type:"string",required:!0,index:!0},sessionStart:{key:"sessionStart",type:"Date",required:!0,index:!0},sessionEnd:{key:"sessionEnd",type:"Date"},address:{key:"address",type:"string"},issuer:{key:"issuer",type:"string"},locationData:{key:"locationData",type:"IpApiLocation"},usageData:{key:"usageData",type:"UsageData[]"},totalSessionTime:{key:"totalSessionTime",type:"number"},loggedInAs:{key:"loggedInAs",type:"string"}}})});var Vc=f(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.DyFM_UsageData=void 0;var Ma=class{page;opened;timeSpentOnPage;actions=[];constructor(t){t&&Object.assign(this,t)}};Lo.DyFM_UsageData=Ma});var $c=f(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.DyFM_DailyUsageData=void 0;var Da=class{date;totalVisitTime=0;averageVisitTime=0;visitorsHun=0;visitorsElse=0;visitations=[];constructor(t){t&&Object.assign(this,t)}};Go.DyFM_DailyUsageData=Da});var Xc=f(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.DyFM_UsageAction=void 0;var Aa=class{action;time;constructor(t){t&&Object.assign(this,t)}};Ho.DyFM_UsageAction=Aa});var jc=f(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});var It=(_e(),fe(he));It.__exportStar(Uc(),ze);It.__exportStar(Kc(),ze);It.__exportStar(Vc(),ze);It.__exportStar($c(),ze);It.__exportStar(Xc(),ze)});var Wc=f(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.DyFM_Region=void 0;var zc=function(e){return e.europe="Europe",e.asia="Asia",e.africa="Africa",e.oceania="Oceania",e.americas="Americas",e}(zc||(Uo.DyFM_Region=zc={}))});var qc=f(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.DyFM_SubRegion=void 0;var Yc=function(e){return e.northernEurope="Northern Europe",e.southernEurope="Southern Europe",e.westernEurope="Western Europe",e.easternEurope="Eastern Europe",e.northernAfrica="Northern Africa",e.subSaharanAfrica="Sub-Saharan Africa",e.northernAmerica="Northern America",e.latinAmericaAndTheCaribbean="Latin America and the Caribbean",e.southEasternAsia="South-eastern Asia",e.easternAsia="Eastern Asia",e.southernAsia="Southern Asia",e.westernAsia="Western Asia",e.centralAsia="Central Asia",e.australiaAndNewZealand="Australia and New Zealand",e.melanesia="Melanesia",e.micronesia="Micronesia",e.polynesia="Polynesia",e}(Yc||(Ko.DyFM_SubRegion=Yc={}))});var Jc=f(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.DyFM_SubdivisionRegionType=void 0;var Zc=function(e){return e[e.parish=0]="parish",e[e.emirate=1]="emirate",e[e.province=2]="province",e[e.dependency=3]="dependency",e[e.county=4]="county",e[e.city=5]="city",e[e.region=6]="region",e[e.state=7]="state",e[e.territory=8]="territory",e[e.autonomousRepublic=9]="autonomousRepublic",e[e.municipate=10]="municipate",e[e.rayon=11]="rayon",e[e.division=12]="division",e[e.district=13]="district",e[e.governorate=14]="governorate",e[e.department=15]="department",e[e.specialMunicipality=16]="specialMunicipality",e[e.federalDistrict=17]="federalDistrict",e[e.island=18]="island",e[e.town=19]="town",e[e.oblast=20]="oblast",e[e.commune=21]="commune",e[e.prefecture=22]="prefecture",e[e.economicPrefecture=23]="economicPrefecture",e[e.canton=24]="canton",e[e.autonomousRegion=25]="autonomousRegion",e[e.specialAdministrativeRegion=26]="specialAdministrativeRegion",e[e.capitalDistrict=27]="capitalDistrict",e[e.geographicalRegion=28]="geographicalRegion",e[e.capitalCity=29]="capitalCity",e[e.ruralMunicipality=30]="ruralMunicipality",e[e.urbanMunicipality=31]="urbanMunicipality",e[e.autonomousCommunity=32]="autonomousCommunity",e[e.autonomousCity=33]="autonomousCity",e[e.administration=34]="administration",e[e.regionalState=35]="regionalState",e[e.metropolitanRegion=36]="metropolitanRegion",e[e.overseasCollectivity=37]="overseasCollectivity",e}(Zc||(Vo.DyFM_SubdivisionRegionType=Zc={}))});var Qc=f($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.DyFM_Location=void 0;var _m=Wo(),Ft=Il(),Ra=class{static getDistanceInKilometres(t,n){let g=Ft.DyFM_Trigonometry.angleToRadians(t.latitude),s=Ft.DyFM_Trigonometry.angleToRadians(n.latitude),C=Ft.DyFM_Trigonometry.angleToRadians(n.latitude-t.latitude),i=Ft.DyFM_Trigonometry.angleToRadians(n.longitude-t.longitude),l=Math.sin(C/2)*Math.sin(C/2)+Math.cos(g)*Math.cos(s)*Math.sin(i/2)*Math.sin(i/2);return 6371*(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)))}static getLocationDegByKilometers(t,n,o){if(t==="latitude")return n/110.574;if(o)return n/(Math.cos(Ft.DyFM_Trigonometry.angleToRadians(o))*111.32);throw new _m.DyFM_Error({status:417,errorCode:"FSM-DSS-505",addECToUserMsg:!0,message:`When using getLocationDegByKilometers for longitude, you need to give latitude! (latiOrLong: ${t}, distanceInKm: ${n}, latitude: ${o})`,userMessage:"We encountered an uncought BackEnd Error, please contact the responsible development team."})}};$o.DyFM_Location=Ra});var tl=f(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0})});var ol=f(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0})});var al=f(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0})});var rl=f(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0})});var cl=f(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0})});var ml=f(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0})});var pl=f(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0})});var gl=f(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});var ye=(_e(),fe(he));ye.__exportStar(Wc(),le);ye.__exportStar(qc(),le);ye.__exportStar(Jc(),le);ye.__exportStar(Ni(),le);ye.__exportStar(hn(),le);ye.__exportStar(Qc(),le);ye.__exportStar(gn(),le);ye.__exportStar(tl(),le);ye.__exportStar(ol(),le);ye.__exportStar(al(),le);ye.__exportStar(rl(),le);ye.__exportStar(cl(),le);ye.__exportStar(ml(),le);ye.__exportStar(pl(),le)});var re=ge(vt(),1);var F=ge(Ls(),1),ue=ge(Js(),1);var Cm=ge(ld(),1);var _l=ge(wd(),1),ym=ge(Gd(),1),xm=ge(Xd(),1),bm=ge(Zd(),1),We=ge(Rc(),1),Ba=ge(Tl(),1),vm=ge(Lc(),1),Cl=ge(Hc(),1),Ea=ge(jc(),1),yl=ge(gl(),1);var Af=(()=>{class e{subscriptions=[];markedSubscriptions={};polls=[];markedPolls={};ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe());for(let n in this.markedSubscriptions)this.markedSubscriptions[n]?.unsubscribe();this.polls.forEach(n=>n.stop());for(let n in this.markedPolls)this.markedPolls[n]?.stop()}addSubscription(n){this.subscriptions.push(n)}addSubscriptions(n){this.subscriptions.push(...n)}addMarkedSubscription(n,o){this.markedSubscriptions[n]?.unsubscribe(),this.markedSubscriptions[n]=o}addMarkedSubscriptions(n){for(let o in n)this.markedSubscriptions[o]?.unsubscribe(),this.markedSubscriptions[o]=n[o]}removeMarkedSubscription(n){this.markedSubscriptions[n]?.unsubscribe(),this.markedSubscriptions[n]=null}removeMarkedSubscriptions(n){n.forEach(o=>this.removeMarkedSubscription(o))}addNewPoll(n){this.polls.push(n)}addNewMarkedPoll(n,o){this.markedPolls[n]?.stop(),this.markedPolls[n]=o}removeMarkedPoll(n){this.markedPolls[n]?.stop(),this.markedPolls[n]=null}static \u0275fac=function(o){return new(o||e)};static \u0275dir=Va({type:e})}return e})(),Tt=function(e){return e.info="info",e.success="success",e.warning="warning",e.error="error",e}(Tt||{});var Rf={[Tt.error]:{icon:"error",iconClass:"text-red-500",backgroundClass:"bg-red-50"},[Tt.info]:{icon:"info",iconClass:"text-blue-500",backgroundClass:"bg-blue-50"},[Tt.success]:{icon:"check_circle",iconClass:"text-green-500",backgroundClass:"bg-green-50"},[Tt.warning]:{icon:"warning",iconClass:"text-orange-500",backgroundClass:"bg-orange-50"}};var Sm="17.09",Bf=Sm.split(".")[0];var fl=class{static defaultDescriptionPosition=F.DyNM_MaterialTooltipPosition.above;static defaultDescriptionDelay=300;static definedButtonClasses={};static definedButtonContentClasses={};static getButtonStyleName(t){return[t.color,t.styleType,t.size,t.borderRadius,t.isIconButton?"icon":"",t.iconStyle,t.iconFill?"icon-fill":""].filter(o=>!!o).join("-")}static getButtonClasses(t){let n=this.getButtonStyleName(t);if(this.definedButtonClasses[n])return this.definedButtonClasses[n];{let o=this.assembleButtonClasses(t);return this.definedButtonClasses[n]=o,o}}static getButtonContentClasses(t){let n=this.getButtonStyleName(t);if(this.definedButtonContentClasses[n])return this.definedButtonContentClasses[n];{let o=this.assembleButtonContentClasses(t);return this.definedButtonContentClasses[n]=o,o}}static assembleButtonClasses(t){let n=[];return n.push(this.getButtonStyleName(t)),n.push(...this.getDefaultButtonClasses(t)),n.push("disabled:cursor-not-allowed"),n.push(...this.getColoringButtonClasses(t)),n.push(...this.getBorderRadiusClasses(t)),t.isIconButton||n.push("w-full"),n}static assembleButtonContentClasses(t){let n=["flex","items-center","justify-center"];return n.push(this.getButtonStyleName(t)),n.push(...this.getTextSizeButtonContentClasses(t)),t.iconFill&&n.push("dynamo-icon-fill"),t.isIconButton?n.push(...this.getIconMarginButtonContentClasses(t)):n.push(...this.getMarginButtonContentClasses(t)),n}static getDefaultButtonClasses(t){return t.styleType&&!(t.isIconButton||t.iconStyle!==F.DyNM_ButtonNewIconStyleType.outlined)&&![F.DyNM_ButtonNewStyleType.stroked,F.DyNM_ButtonNewStyleType.backgroundless].includes(t.styleType)?["disabled:bg-neutral-400/50","disabled:text-neutral-600","disabled:hover:bg-neutral-700/50","disabled:hover:text-neutral-200","dark:disabled:bg-neutral-600/50","dark:disabled:text-neutral-200","dark:disabled:hover:bg-neutral-600"]:[]}static getColoringButtonClasses(t){let n=[];switch(t.styleType){case F.DyNM_ButtonNewStyleType.stroked:return n.push("border-2",`border-${t.color}-500`,`text-${t.color}-500`,`hover:bg-${t.color}-500/10`,"disabled:border-neutral-500","disabled:bg-neutral-500/10","disabled:text-neutral-500","disabled:hover:bg-neutral-500/25"),F.DyNM_allMaterialColors.includes(t.color)||n.push(`dark:border-${t.color}-200`,`dark:text-${t.color}-200`,`dark:hover:bg-${t.color}-200`,`dark:hover:text-${t.color}C-200`,"dark:disabled:border-neutral-600"),n;case F.DyNM_ButtonNewStyleType.backgroundless:return n.push(`text-${t.color}-500`,`hover:bg-${t.color?t.color:"neutral"}-500/10`,"disabled:text-neutral-600","disabled:hover:bg-neutral-500/10"),F.DyNM_allMaterialColors.includes(t.color)||n.push(`dark:border-${t.color}-200`,`dark:text-${t.color}-200`,`dark:hover:bg-${t.color}-200`,`dark:hover:text-${t.color}C-200`),n;case F.DyNM_ButtonNewStyleType.tonal:return n.push(`text-${t.color}-600`,`dark:text-${t.color}-300`,`bg-${t.color}-100`,`dark:bg-${t.color}-800`,`hover:bg-${t.color}-200`,`dark:hover:bg-${t.color}-900`),F.DyNM_allMaterialColors.includes(t.color)||n.push(`dark:bg-${t.color}-200/50`,`dark:text-${t.color}C-500`),n;case F.DyNM_ButtonNewStyleType.filled:return[`bg-${t.color}-500`,`text-${t.color}C-500`,`hover:bg-${t.color}-700`,"disabled:bg-neutral-600","disabled:hover:bg-neutral-500/10"];default:return[]}}static getBorderRadiusClasses(t){if(t.isIconButton)return["rounded-full"];switch(t.borderRadius){case F.DyNM_ButtonNewBorderRadius.square:return["rounded-none"];case F.DyNM_ButtonNewBorderRadius.full:return["rounded-full"];case F.DyNM_ButtonNewBorderRadius.rounded:return["rounded-full"];default:switch(t.size){case F.DyNM_ButtonNewSize.xs:return["rounded-sm"];case F.DyNM_ButtonNewSize.small:return["rounded-lg"];case F.DyNM_ButtonNewSize.medium:return["rounded-2xl"];case F.DyNM_ButtonNewSize.large:return["rounded-3xl"];case F.DyNM_ButtonNewSize.xl:return["rounded-4xl"];default:return console.warn("CustomButtonSettingsModel: no border radius set. Default is rounded-lg."),["rounded-2xl"]}}}static getTextSizeButtonContentClasses(t){switch(t.size){case F.DyNM_ButtonNewSize.xs:return["text-xs"];case F.DyNM_ButtonNewSize.small:return["text-sm"];case F.DyNM_ButtonNewSize.medium:return["text-base"];case F.DyNM_ButtonNewSize.large:return["text-lg"];case F.DyNM_ButtonNewSize.xl:return["text-2xl"];default:return["text-base"]}}static getIconMarginButtonContentClasses(t){switch(t.size){case F.DyNM_ButtonNewSize.xs:return["m-0"];case F.DyNM_ButtonNewSize.small:return["m-0.5"];case F.DyNM_ButtonNewSize.medium:return["m-1"];case F.DyNM_ButtonNewSize.large:return["m-1.5"];case F.DyNM_ButtonNewSize.xl:return["m-2"];default:switch(t.styleType){case F.DyNM_ButtonNewStyleType.stroked:return["m-0.5"];case F.DyNM_ButtonNewStyleType.backgroundless:return["m-1.5"];default:return["m-1"]}}}static getMarginButtonContentClasses(t){switch(t.size){case F.DyNM_ButtonNewSize.xs:return t.styleType===F.DyNM_ButtonNewStyleType.stroked?["my-0","mx-2"]:["my-0.5","mx-2"];case F.DyNM_ButtonNewSize.small:return t.styleType===F.DyNM_ButtonNewStyleType.stroked?["my-1.5","mx-4"]:["my-2","mx-4"];case F.DyNM_ButtonNewSize.medium:return t.styleType===F.DyNM_ButtonNewStyleType.stroked?["my-3","mx-6"]:["my-3.5","mx-6"];case F.DyNM_ButtonNewSize.large:case F.DyNM_ButtonNewSize.xl:return t.styleType===F.DyNM_ButtonNewStyleType.stroked?["my-3.5","mx-7"]:["my-4","mx-7"];default:return console.warn("CustomButtonSettingsModel: no size set. Default is medium."),t.styleType===F.DyNM_ButtonNewStyleType.stroked?["my-3","mx-6"]:["my-3.5","mx-6"]}}static iconButtonSettingsValidation(t){t.style_$().isIconButton&&(t.label&&!t.description&&t.description!==null&&(t.description=t.label,console.warn(`CustomButtonSettingsModel: icon button has no description, but label is set. The label is set as description. Please set description for the icon button.
114
114
  (${t.id})`)),t.icon||console.error(`CustomButtonSettingsModel: icon button has no icon set. Please set icon. (${t.id})`))}};var hl=class{static phoneCodeOptions=yl.DyFM_Regions?.phoneCodes.map(t=>{let n=t.code.includes("-")?t.code.split("-")[0]:t.code;return new F.DyNM_Select(`${t.country} (+${n})`,n)})};export{Af as a};
115
- //# sourceMappingURL=chunk-IHXS3RZI.js.map
115
+ //# sourceMappingURL=chunk-SPEFMR4R.js.map
@@ -1,4 +1,4 @@
1
- import{I as _,K as T,N as D,p as U}from"./chunk-HKFQB2DP.js";import{C,Gb as H,a as b,aa as I,b as j,h as w,k as L,p as g,q as h,wb as d,xb as M,y as F}from"./chunk-TBMJSIBB.js";var y=[{prefix:"/setup",hint:"Setup \u2014 client/src/app/_modules/config/_modules/setup/"},{prefix:"/settings",hint:"Settings \u2014 client/src/app/_modules/config/_modules/settings/"},{prefix:"/model-registry",hint:"Model registry \u2014 client/src/app/_modules/model-registry/"},{prefix:"/embedding-registry",hint:"Embedding registry \u2014 client/src/app/_modules/ai-systems/_modules/embedding-registry/"},{prefix:"/embedding-eval",hint:"Embedding eval \u2014 client/src/app/_modules/embedding-eval/"},{prefix:"/session",hint:"CCAP Session UI \u2014 client/src/app/_modules/session/"},{prefix:"/errors",hint:"Errors list \u2014 client/src/app/_modules/system/_modules/errors/"},{prefix:"/feedback",hint:"Feedback \u2014 client/src/app/_modules/feedback/"},{prefix:"/logs",hint:"Logs \u2014 client/src/app/_modules/dev/_modules/devtools/_modules/logs/"},{prefix:"/host-runtime-mcp",hint:"Host runtime MCP \u2014 client/src/app/_modules/dev/_modules/host-runtime-mcp/"},{prefix:"/voice-notes-poc",hint:"Voice notes POC \u2014 client/src/app/_modules/dev/_modules/poc/voice-notes-poc/"},{prefix:"/master-control-remote-poc",hint:"Master control remote POC \u2014 client/src/app/_modules/dev/_modules/poc/master-control-remote-poc/"},{prefix:"/workflow-settings",hint:"Workflow settings \u2014 client/src/app/_modules/config/_modules/workflow-settings/"},{prefix:"/coordinator",hint:"Coordinator \u2014 client/src/app/_modules/coordinator/"},{prefix:"/dark-office",hint:"Dark Office \u2014 client/src/app/_modules/dark-office/"},{prefix:"/project-management",hint:"Project management \u2014 client/src/app/_modules/project-management/"},{prefix:"/cc-session",hint:"CC Session UI \u2014 client/src/app/_modules/cc-session/"},{prefix:"/mobile-app",hint:"Mobile app \u2014 client/src/app/_modules/dev/_modules/poc/mobile-app/"},{prefix:"/oc-session",hint:"OC Session \u2014 client/src/app/_modules/oc/"},{prefix:"/ca-session",hint:"CA Session \u2014 client/src/app/_modules/ca-session/"},{prefix:"/consultant",hint:"Consultant \u2014 client/src/app/_modules/consultant/"},{prefix:"/agent-instances",hint:"Agent instances \u2014 client/src/app/_modules/agent-instances/"},{prefix:"/terminals",hint:"Terminals \u2014 client/src/app/_modules/dev/_modules/devtools/_modules/terminals/"},{prefix:"/live-development-pipeline",hint:"Live Development Pipeline \u2014 client/src/app/_modules/dev/_modules/devtools/_modules/live-dev-pipeline/"},{prefix:"/system-status",hint:"Legacy route \u2192 redirects to /live-development-pipeline \u2014 client/src/app/_modules/dev/_modules/devtools/_modules/live-dev-pipeline/"},{prefix:"/",hint:"Dashboard (root) \u2014 client/src/app/_modules/dashboard/"}];var q="NG0203",S=class r{static isNg0203Message(n){return n.trim()===q}static buildDiagnostics(n){let t={route:n.context.route,url:n.context.url,userAgent:n.context.userAgent,timestamp:n.context.timestamp},e=r.parseStackFrames(n.stack),i=typeof n.context.route=="string"?n.context.route:"",o=r.resolveRouteFeatureHints(i),s=r.buildStaticGuidance(),l=r.buildToolSteps({clientSnapshot:t,clientSource:n.clientSource,stackFrames:e,routeFeatureHints:o});return{summary:"Angular NG0203: inject() was called outside an injection context (constructor, field initializer, factory, or runInInjectionContext).",clientSource:n.clientSource,clientSnapshot:t,stackFrames:e,routeFeatureHints:o,staticGuidance:s,toolSteps:l}}static formatDiagnosticsAppendix(n){let t;try{t=JSON.stringify(n,null,2)}catch{t='{"ng0203Diagnostics":"JSON stringify failed"}'}return`
1
+ import{I as _,K as T,N as D,p as U}from"./chunk-KNX6PXMA.js";import{C,Gb as H,a as b,aa as I,b as j,h as w,k as L,p as g,q as h,wb as d,xb as M,y as F}from"./chunk-TBMJSIBB.js";var y=[{prefix:"/setup",hint:"Setup \u2014 client/src/app/_modules/config/_modules/setup/"},{prefix:"/settings",hint:"Settings \u2014 client/src/app/_modules/config/_modules/settings/"},{prefix:"/model-registry",hint:"Model registry \u2014 client/src/app/_modules/model-registry/"},{prefix:"/embedding-registry",hint:"Embedding registry \u2014 client/src/app/_modules/ai-systems/_modules/embedding-registry/"},{prefix:"/embedding-eval",hint:"Embedding eval \u2014 client/src/app/_modules/embedding-eval/"},{prefix:"/session",hint:"CCAP Session UI \u2014 client/src/app/_modules/session/"},{prefix:"/errors",hint:"Errors list \u2014 client/src/app/_modules/system/_modules/errors/"},{prefix:"/feedback",hint:"Feedback \u2014 client/src/app/_modules/feedback/"},{prefix:"/logs",hint:"Logs \u2014 client/src/app/_modules/dev/_modules/devtools/_modules/logs/"},{prefix:"/host-runtime-mcp",hint:"Host runtime MCP \u2014 client/src/app/_modules/dev/_modules/host-runtime-mcp/"},{prefix:"/voice-notes-poc",hint:"Voice notes POC \u2014 client/src/app/_modules/dev/_modules/poc/voice-notes-poc/"},{prefix:"/master-control-remote-poc",hint:"Master control remote POC \u2014 client/src/app/_modules/dev/_modules/poc/master-control-remote-poc/"},{prefix:"/workflow-settings",hint:"Workflow settings \u2014 client/src/app/_modules/config/_modules/workflow-settings/"},{prefix:"/coordinator",hint:"Coordinator \u2014 client/src/app/_modules/coordinator/"},{prefix:"/dark-office",hint:"Dark Office \u2014 client/src/app/_modules/dark-office/"},{prefix:"/project-management",hint:"Project management \u2014 client/src/app/_modules/project-management/"},{prefix:"/cc-session",hint:"CC Session UI \u2014 client/src/app/_modules/cc-session/"},{prefix:"/mobile-app",hint:"Mobile app \u2014 client/src/app/_modules/dev/_modules/poc/mobile-app/"},{prefix:"/oc-session",hint:"OC Session \u2014 client/src/app/_modules/oc/"},{prefix:"/ca-session",hint:"CA Session \u2014 client/src/app/_modules/ca-session/"},{prefix:"/consultant",hint:"Consultant \u2014 client/src/app/_modules/consultant/"},{prefix:"/agent-instances",hint:"Agent instances \u2014 client/src/app/_modules/agent-instances/"},{prefix:"/terminals",hint:"Terminals \u2014 client/src/app/_modules/dev/_modules/devtools/_modules/terminals/"},{prefix:"/live-development-pipeline",hint:"Live Development Pipeline \u2014 client/src/app/_modules/dev/_modules/devtools/_modules/live-dev-pipeline/"},{prefix:"/system-status",hint:"Legacy route \u2192 redirects to /live-development-pipeline \u2014 client/src/app/_modules/dev/_modules/devtools/_modules/live-dev-pipeline/"},{prefix:"/",hint:"Dashboard (root) \u2014 client/src/app/_modules/dashboard/"}];var q="NG0203",S=class r{static isNg0203Message(n){return n.trim()===q}static buildDiagnostics(n){let t={route:n.context.route,url:n.context.url,userAgent:n.context.userAgent,timestamp:n.context.timestamp},e=r.parseStackFrames(n.stack),i=typeof n.context.route=="string"?n.context.route:"",o=r.resolveRouteFeatureHints(i),s=r.buildStaticGuidance(),l=r.buildToolSteps({clientSnapshot:t,clientSource:n.clientSource,stackFrames:e,routeFeatureHints:o});return{summary:"Angular NG0203: inject() was called outside an injection context (constructor, field initializer, factory, or runInInjectionContext).",clientSource:n.clientSource,clientSnapshot:t,stackFrames:e,routeFeatureHints:o,staticGuidance:s,toolSteps:l}}static formatDiagnosticsAppendix(n){let t;try{t=JSON.stringify(n,null,2)}catch{t='{"ng0203Diagnostics":"JSON stringify failed"}'}return`
2
2
 
3
3
  [NG0203 diagnostics]
4
4
  ${t}`}static parseStackFrames(n){if(n==null||!n.trim())return[];let t=n.split(`
@@ -24,4 +24,4 @@ ${String(n)}`}function nt(r){if(r instanceof Error&&typeof r.stack=="string"&&r.
24
24
  `),s=t!=null&&t.trim().length>0?t.trim():"(no stack)";return`${o}
25
25
 
26
26
  ${s}`}buildReportPayloadFromError(t,e){let i=this.getCurrentContext(),o=f.getErrorMessageForDisplay(t),s=r.enrichMessageForReport(t,o),l=f.getStackForReport(t),m=this.buildStackWithContext(l,i),R=r.extractErrorCode(t),E=r.extractAdditionalContent(t);return{message:s,stack:m,source:e??"client-app",errorCode:R,errorAdditionalContent:E,clientContext:i}}static enrichMessageForReport(t,e){if(!(t instanceof d))return e;let i=t.url?`URL: ${t.url}`:"URL: (?)",o=`status: ${t.status}`;return`${e} | ${i} | ${o}`}static extractErrorCode(t){if(t==null||typeof t!="object")return;let e=t;if(typeof e.errorCode=="string"&&e.errorCode.length>0)return e.errorCode;if(typeof e._errorCode=="string"&&e._errorCode.length>0)return e._errorCode}static extractAdditionalContent(t){if(t==null||typeof t!="object")return;let e=t;if(e.additionalContent!=null&&typeof e.additionalContent=="object")return e.additionalContent}buildReportPayloadFromParams(t){let e=this.getCurrentContext(),i=this.buildStackWithContext(t.stack,e);return{message:t.message,stack:i,source:t.source,clientContext:e}}showError(t,e){setTimeout(()=>{try{let i=f.getErrorMessageForDisplay(t),o=N.tryGetShortNotificationAffix({error:t});if(o.length>0&&(i=i+o),!(t instanceof d)&&!(this.settingsGeneral_DS.section_$().form.reportSocketConnectionErrorsToErrorList===!0)&&x.matchesDisplayMessage(i)){t instanceof Error&&p.DyFM_Log.error("[CCAP]",e??"client-app",t);return}let s=this.getCurrentContext(),l;if(k.isNg0600Message(i))try{l=k.buildDiagnostics({stack:f.getStackForReport(t),context:{route:s.route,url:s.url,userAgent:s.userAgent,timestamp:s.timestamp},clientSource:e})}catch(a){p.DyFM_Log.error("CCAP NG0600 diagnostics failed",a)}let m;if(S.isNg0203Message(i))try{m=S.buildDiagnostics({stack:f.getStackForReport(t),context:{route:s.route,url:s.url,userAgent:s.userAgent,timestamp:s.timestamp},clientSource:e})}catch(a){p.DyFM_Log.error("CCAP NG0203 diagnostics failed",a)}let R=e!=null&&e.trim().length>0?e.trim():void 0,E={id:this.nextNotificationId++,error:t,displayMessage:i,timestamp:Date.now(),isDismissing:!1,clientSource:R,ng0600Diagnostics:l,ng0203Diagnostics:m};if(this.errors_$.update(a=>{let u=[...a,E];return u.length>r.maxNotifications?u.slice(u.length-r.maxNotifications):u}),setTimeout(()=>{this.dismissNotification(E.id)},r.autoDismissMs),t instanceof Error&&p.DyFM_Log.error("[CCAP]",e??"client-app",t),!(t instanceof d)){let a=this.buildReportPayloadFromError(t,e??"client-app"),u="";l!=null?u=k.formatDiagnosticsAppendix(l):m!=null&&(u=S.formatDiagnosticsAppendix(m));let X=u.length>0?`${a.stack??""}${u}`:a.stack??"",Y={message:a.message,stack:X,source:a.source,sessionId:a.sessionId,runId:a.runId,errorCode:a.errorCode,errorAdditionalContent:a.errorAdditionalContent,clientContext:a.clientContext};this.errors_AS.reportError(Y).catch(()=>{})}}catch(i){p.DyFM_Log.error("CCAP showError set failed",i)}},0)}selectError(t){let e=this.errors_$().find(i=>i.id===t);e!=null&&this.selectedNotificationForModal_$.set(e)}dismissNotification(t){let i=this.errors_$().find(o=>o.id===t);i==null||i.isDismissing||(this.errors_$.update(o=>o.map(s=>s.id===t?j(b({},s),{isDismissing:!0}):s)),setTimeout(()=>{this.errors_$.update(o=>o.filter(s=>s.id!==t))},r.exitAnimationMs))}dismissSelected(){this.selectedNotificationForModal_$.set(null)}dismissAll(){this.errors_$.set([]),this.selectedNotificationForModal_$.set(null)}copyToClipboard(t){return L(this,null,function*(){return(yield this.tryWriteTextWithNavigatorClipboard(t))?{ok:!0}:this.copyTextWithExecCommand(t)?{ok:!0}:{ok:!1,error:new Error("Clipboard copy failed (secure Clipboard API unavailable or denied, and legacy execCommand copy failed)")}})}tryWriteTextWithNavigatorClipboard(t){return L(this,null,function*(){let e=typeof navigator<"u"?navigator.clipboard:void 0;if(e==null||typeof e.writeText!="function")return!1;try{return yield e.writeText(t),!0}catch{return!1}})}copyTextWithExecCommand(t){if(typeof document>"u"||typeof document.execCommand!="function")return!1;let e=document.createElement("textarea");e.value=t,e.setAttribute("readonly",""),e.setAttribute("aria-hidden","true"),e.style.position="fixed",e.style.top="0",e.style.left="0",e.style.width="1px",e.style.height="1px",e.style.padding="0",e.style.margin="0",e.style.border="none",e.style.outline="none",e.style.opacity="0",e.style.pointerEvents="none",document.body.appendChild(e),e.focus(),e.select();let i=t.length;e.setSelectionRange(0,i);let o=!1;try{o=document.execCommand("copy")}catch{o=!1}return e.remove(),o}reportErrorOnly(t){if(!(this.settingsGeneral_DS.section_$().form.reportSocketConnectionErrorsToErrorList===!0)&&(t.source==="client-socket"||x.matchesDisplayMessage(t.message)))return;let i=this.buildReportPayloadFromParams(t);this.errors_AS.reportError(i).catch(()=>{})}static \u0275fac=function(e){return new(e||r)};static \u0275prov=F({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{S as a,k as b,c,$ as d,v as e,z as f,N as g,f as h,V as i,Ot as j};
27
- //# sourceMappingURL=chunk-BKZUZRTC.js.map
27
+ //# sourceMappingURL=chunk-TBT57I7I.js.map
@@ -1,2 +1,2 @@
1
- import{I as p}from"./chunk-HKFQB2DP.js";import{C as a,p as r,vb as o,xb as n,y as s}from"./chunk-TBMJSIBB.js";var h=(()=>{class t{baseUrl=`${p.api.baseUrl}/server`;http=a(n);getStatus(){return r(this.http.get(`${this.baseUrl}/status`))}getLiveDevPipelineStatus(i){let e=new o;return i.isPrevious&&(e=e.set("previous","true")),r(this.http.get(`${this.baseUrl}/live-dev-pipeline-status`,{params:e}))}static \u0275fac=function(e){return new(e||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{h as a};
2
- //# sourceMappingURL=chunk-UEJF4FN2.js.map
1
+ import{I as p}from"./chunk-KNX6PXMA.js";import{C as a,p as r,vb as o,xb as n,y as s}from"./chunk-TBMJSIBB.js";var h=(()=>{class t{baseUrl=`${p.api.baseUrl}/server`;http=a(n);getStatus(){return r(this.http.get(`${this.baseUrl}/status`))}getLiveDevPipelineStatus(i){let e=new o;return i.isPrevious&&(e=e.set("previous","true")),r(this.http.get(`${this.baseUrl}/live-dev-pipeline-status`,{params:e}))}static \u0275fac=function(e){return new(e||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{h as a};
2
+ //# sourceMappingURL=chunk-THHGLNFI.js.map
@@ -1,2 +1,2 @@
1
- import{a as h}from"./chunk-ZEACNG3V.js";import{I as c,p as _}from"./chunk-HKFQB2DP.js";import{C as a,aa as r,h as u,k as n,p as o,xb as f,y as l}from"./chunk-TBMJSIBB.js";var p=u(_());var $=6e4,y=(()=>{class i{api_AS=a(h);instancePresenceMap_$=r(new Map);intervalHandle=void 0;lastRefreshAt_$=r(null);startPeriodicRefresh(){this.intervalHandle===void 0&&(this.refreshNow(),this.intervalHandle=setInterval(()=>{this.refreshNow()},$))}stopPeriodicRefresh(){this.intervalHandle!==void 0&&(clearInterval(this.intervalHandle),this.intervalHandle=void 0)}refreshNow(){return n(this,null,function*(){try{let t=yield this.api_AS.getPresence(),e=new Map;for(let s of t.list??[])s.instanceKey&&e.set(s.instanceKey,s);this.instancePresenceMap_$.set(e),this.lastRefreshAt_$.set(new Date().toISOString())}catch(t){p.DyFM_Log.warn(`[CCAP] ExS_InstancePresence_DataService refresh failed (non-fatal): ${t instanceof Error?t.message:String(t)}`)}})}getPresence(t){let e=this.instancePresenceMap_$().get(t);return e||{instanceKey:t,presence:"unknown",wsConnected:!1,reason:"presence map not loaded yet"}}ngOnDestroy(){this.stopPeriodicRefresh()}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var g=5e3,P=18,v=5e3,L=(()=>{class i{versionInfo_$=r(null);loading_$=r(!1);loadError_$=r(null);lastLoadedAt_$=r(null);triggering_$=r(!1);triggerResult_$=r(null);triggerError_$=r(null);pollingPostUpdate_$=r(!1);triggerSucceeded_$=r(null);triggerTimedOut_$=r(!1);http=a(f);pollTimer=null;loadVersionInfo(){return n(this,null,function*(){this.loading_$.set(!0),this.loadError_$.set(null);try{let t=`${c.api.baseUrl}/server/health/version-info`,e=yield o(this.http.get(t));this.versionInfo_$.set(e),this.lastLoadedAt_$.set(new Date)}catch(t){let e=t instanceof Error?t.message:String(t);this.loadError_$.set(e),this.versionInfo_$.set(null)}finally{this.loading_$.set(!1)}})}triggerUpdate(t){return n(this,null,function*(){this.cancelPostUpdatePolling(),this.triggerSucceeded_$.set(null),this.triggerTimedOut_$.set(!1),this.triggering_$.set(!0),this.triggerError_$.set(null),this.triggerResult_$.set(null);try{let e=`${c.api.baseUrl}/server/health/trigger-update`,s=yield o(this.http.post(e,{force:t===!0}));this.triggerResult_$.set(s),s.status==="started"&&s.currentVersion&&this.startPostUpdatePolling(s.currentVersion)}catch(e){let s=e instanceof Error?e.message:String(e);this.triggerError_$.set(s)}finally{this.triggering_$.set(!1)}})}startPostUpdatePolling(t){this.pollingPostUpdate_$.set(!0);let e=0,s=()=>n(this,null,function*(){e+=1;let d=yield this.pollHealthPid();if(d&&d!==t){this.triggerSucceeded_$.set({oldVersion:t,newVersion:d,detectedAtMs:Date.now()}),this.pollingPostUpdate_$.set(!1),this.pollTimer=null,setTimeout(()=>{typeof window<"u"&&window?.location&&window.location.reload()},v);return}if(e>=P){this.triggerTimedOut_$.set(!0),this.pollingPostUpdate_$.set(!1),this.pollTimer=null;return}this.pollTimer=setTimeout(()=>{s()},g)});this.pollTimer=setTimeout(()=>{s()},g)}cancelPostUpdatePolling(){this.pollTimer&&(clearTimeout(this.pollTimer),this.pollTimer=null),this.pollingPostUpdate_$.set(!1)}pollHealthPid(){return n(this,null,function*(){try{let t=`${c.api.baseUrl}/server/health/pid`,e=yield o(this.http.get(t));return typeof e?.ccapVersion=="string"?e.ccapVersion:null}catch{return null}})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();export{y as a,L as b};
2
- //# sourceMappingURL=chunk-GEMMP35S.js.map
1
+ import{a as h}from"./chunk-ELA6J2TW.js";import{I as c,p as _}from"./chunk-KNX6PXMA.js";import{C as a,aa as r,h as u,k as n,p as o,xb as f,y as l}from"./chunk-TBMJSIBB.js";var p=u(_());var $=6e4,y=(()=>{class i{api_AS=a(h);instancePresenceMap_$=r(new Map);intervalHandle=void 0;lastRefreshAt_$=r(null);startPeriodicRefresh(){this.intervalHandle===void 0&&(this.refreshNow(),this.intervalHandle=setInterval(()=>{this.refreshNow()},$))}stopPeriodicRefresh(){this.intervalHandle!==void 0&&(clearInterval(this.intervalHandle),this.intervalHandle=void 0)}refreshNow(){return n(this,null,function*(){try{let t=yield this.api_AS.getPresence(),e=new Map;for(let s of t.list??[])s.instanceKey&&e.set(s.instanceKey,s);this.instancePresenceMap_$.set(e),this.lastRefreshAt_$.set(new Date().toISOString())}catch(t){p.DyFM_Log.warn(`[CCAP] ExS_InstancePresence_DataService refresh failed (non-fatal): ${t instanceof Error?t.message:String(t)}`)}})}getPresence(t){let e=this.instancePresenceMap_$().get(t);return e||{instanceKey:t,presence:"unknown",wsConnected:!1,reason:"presence map not loaded yet"}}ngOnDestroy(){this.stopPeriodicRefresh()}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var g=5e3,P=18,v=5e3,L=(()=>{class i{versionInfo_$=r(null);loading_$=r(!1);loadError_$=r(null);lastLoadedAt_$=r(null);triggering_$=r(!1);triggerResult_$=r(null);triggerError_$=r(null);pollingPostUpdate_$=r(!1);triggerSucceeded_$=r(null);triggerTimedOut_$=r(!1);http=a(f);pollTimer=null;loadVersionInfo(){return n(this,null,function*(){this.loading_$.set(!0),this.loadError_$.set(null);try{let t=`${c.api.baseUrl}/server/health/version-info`,e=yield o(this.http.get(t));this.versionInfo_$.set(e),this.lastLoadedAt_$.set(new Date)}catch(t){let e=t instanceof Error?t.message:String(t);this.loadError_$.set(e),this.versionInfo_$.set(null)}finally{this.loading_$.set(!1)}})}triggerUpdate(t){return n(this,null,function*(){this.cancelPostUpdatePolling(),this.triggerSucceeded_$.set(null),this.triggerTimedOut_$.set(!1),this.triggering_$.set(!0),this.triggerError_$.set(null),this.triggerResult_$.set(null);try{let e=`${c.api.baseUrl}/server/health/trigger-update`,s=yield o(this.http.post(e,{force:t===!0}));this.triggerResult_$.set(s),s.status==="started"&&s.currentVersion&&this.startPostUpdatePolling(s.currentVersion)}catch(e){let s=e instanceof Error?e.message:String(e);this.triggerError_$.set(s)}finally{this.triggering_$.set(!1)}})}startPostUpdatePolling(t){this.pollingPostUpdate_$.set(!0);let e=0,s=()=>n(this,null,function*(){e+=1;let d=yield this.pollHealthPid();if(d&&d!==t){this.triggerSucceeded_$.set({oldVersion:t,newVersion:d,detectedAtMs:Date.now()}),this.pollingPostUpdate_$.set(!1),this.pollTimer=null,setTimeout(()=>{typeof window<"u"&&window?.location&&window.location.reload()},v);return}if(e>=P){this.triggerTimedOut_$.set(!0),this.pollingPostUpdate_$.set(!1),this.pollTimer=null;return}this.pollTimer=setTimeout(()=>{s()},g)});this.pollTimer=setTimeout(()=>{s()},g)}cancelPostUpdatePolling(){this.pollTimer&&(clearTimeout(this.pollTimer),this.pollTimer=null),this.pollingPostUpdate_$.set(!1)}pollHealthPid(){return n(this,null,function*(){try{let t=`${c.api.baseUrl}/server/health/pid`,e=yield o(this.http.get(t));return typeof e?.ccapVersion=="string"?e.ccapVersion:null}catch{return null}})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();export{y as a,L as b};
2
+ //# sourceMappingURL=chunk-TP7RKDPV.js.map
@@ -1,2 +1,2 @@
1
- import{p as h}from"./chunk-HKFQB2DP.js";import{h as S}from"./chunk-TBMJSIBB.js";var c=S(h()),f=60,d=60*60,g=60*60*24,M=7,m=class{static formatRelativeTime(t){if(t==null)return"";let n=typeof t=="string"?new Date(t):t;if(Number.isNaN(n.getTime()))return"";let a=new Date,i=a.getTime()-n.getTime(),o=Math.floor(i/c.second);if(o<0)return"";if(o<f)return"just now";let e=Math.floor(o/f);if(e<60)return e===1?"1 minute ago":`${e} minutes ago`;let s=Math.floor(o/d);if(s<24)return s===1?"1 hour ago":`${s} hours ago`;let r=Math.floor(o/g);if(r<=M)return r===1?"1 day ago":`${r} days ago`;let u={month:"short",day:"numeric",year:n.getFullYear()!==a.getFullYear()?"numeric":void 0};return n.toLocaleDateString(void 0,u)}static formatCompactRelativeTime(t){if(t==null)return"";let n=typeof t=="string"?new Date(t):t;if(Number.isNaN(n.getTime()))return"";let i=Date.now()-n.getTime();if(i<0)return"just now";let o=Math.floor(i/c.second),e=Math.floor(o/f),s=Math.floor(o/d),r=Math.floor(o/g);return o<f?"just now":e<60?`${e}m ago`:s<24?`${s}h ago`:r<30?`${r}d ago`:`${Math.floor(r/30)}mo ago`}static formatAbsoluteForTooltip(t){if(t==null)return"";let n=typeof t=="string"?new Date(t):t;if(Number.isNaN(n.getTime()))return"";let a=String(n.getFullYear()),i=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0"),e=String(n.getHours()).padStart(2,"0"),s=String(n.getMinutes()).padStart(2,"0"),r=String(n.getSeconds()).padStart(2,"0");return`${a}-${i}-${o} ${e}:${s}:${r}`}};export{m as a};
2
- //# sourceMappingURL=chunk-EQP2GOHM.js.map
1
+ import{p as h}from"./chunk-KNX6PXMA.js";import{h as S}from"./chunk-TBMJSIBB.js";var c=S(h()),f=60,d=60*60,g=60*60*24,M=7,m=class{static formatRelativeTime(t){if(t==null)return"";let n=typeof t=="string"?new Date(t):t;if(Number.isNaN(n.getTime()))return"";let a=new Date,i=a.getTime()-n.getTime(),o=Math.floor(i/c.second);if(o<0)return"";if(o<f)return"just now";let e=Math.floor(o/f);if(e<60)return e===1?"1 minute ago":`${e} minutes ago`;let s=Math.floor(o/d);if(s<24)return s===1?"1 hour ago":`${s} hours ago`;let r=Math.floor(o/g);if(r<=M)return r===1?"1 day ago":`${r} days ago`;let u={month:"short",day:"numeric",year:n.getFullYear()!==a.getFullYear()?"numeric":void 0};return n.toLocaleDateString(void 0,u)}static formatCompactRelativeTime(t){if(t==null)return"";let n=typeof t=="string"?new Date(t):t;if(Number.isNaN(n.getTime()))return"";let i=Date.now()-n.getTime();if(i<0)return"just now";let o=Math.floor(i/c.second),e=Math.floor(o/f),s=Math.floor(o/d),r=Math.floor(o/g);return o<f?"just now":e<60?`${e}m ago`:s<24?`${s}h ago`:r<30?`${r}d ago`:`${Math.floor(r/30)}mo ago`}static formatAbsoluteForTooltip(t){if(t==null)return"";let n=typeof t=="string"?new Date(t):t;if(Number.isNaN(n.getTime()))return"";let a=String(n.getFullYear()),i=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0"),e=String(n.getHours()).padStart(2,"0"),s=String(n.getMinutes()).padStart(2,"0"),r=String(n.getSeconds()).padStart(2,"0");return`${a}-${i}-${o} ${e}:${s}:${r}`}};export{m as a};
2
+ //# sourceMappingURL=chunk-TRNNWPOH.js.map
@@ -1,2 +1,2 @@
1
- import{h as d,j as M}from"./chunk-BKZUZRTC.js";import{p as F}from"./chunk-HKFQB2DP.js";import{C as u,D as f,Fa as y,Ga as w,L as h,Ta as S,U as o,Z as r,aa as l,da as b,fa as k,ga as x,h as E,hb as a,ia as _,ja as c,k as m,la as C,qa as s,ra as p,sa as g,ub as $,va as T,wa as v}from"./chunk-TBMJSIBB.js";var z=E(F());function O(i,B){if(i&1&&(s(0,"span",4),y(1),p()),i&2){let e=v();_("text-green-400",e.feedbackOk_$())("text-red-400",!e.feedbackOk_$()),r(),w(e.feedbackText_$())}}var q=(()=>{class i{content=o.required();buttonTitle=o("M\xE1sol\xE1s v\xE1g\xF3lapra");size=o("sm");feedbackText_$=l("");feedbackOk_$=l(!0);hasFeedback_$=a(()=>this.feedbackText_$().length>0);sizeClass_$=a(()=>this.size()==="md"?"p-2 min-h-[44px] min-w-[44px]":"p-1.5 gt-xs:p-2 min-h-[32px] min-w-[32px] gt-xs:min-h-[36px] gt-xs:min-w-[36px]");iconSizeClass_$=a(()=>this.size()==="md"?"h-5 w-5":"h-4 w-4");globalError_CS=u(M);static feedbackResetMs=2*z.second;feedbackTimer=null;handleCopy(){return m(this,null,function*(){let e=this.content();if(!e)return;let t=yield this.globalError_CS.copyToClipboard(e);t.ok?this.showFeedback("M\xE1solva!",!0):(this.showFeedback("Sikertelen",!1),this.globalError_CS.reportErrorOnly({message:d.getErrorMessageForDisplay(t.error),source:"copy-button",stack:d.getStackForReport(t.error)}))})}showFeedback(e,t){this.feedbackTimer!==null&&clearTimeout(this.feedbackTimer),this.feedbackText_$.set(e),this.feedbackOk_$.set(t),this.feedbackTimer=setTimeout(()=>{this.feedbackText_$.set(""),this.feedbackTimer=null},i.feedbackResetMs)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=f({type:i,selectors:[["app-s-copy-button"]],hostAttrs:[1,"inline-flex","items-center","gap-1.5"],inputs:{content:[1,"content"],buttonTitle:[1,"buttonTitle"],size:[1,"size"]},standalone:!0,features:[S],decls:4,vars:7,consts:[["type","button",3,"click","title"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor","aria-hidden","true"],["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"],[1,"text-[11px]","gt-xs:text-xs","shrink-0",3,"text-green-400","text-red-400"],[1,"text-[11px]","gt-xs:text-xs","shrink-0"]],template:function(t,n){t&1&&(s(0,"button",0),T("click",function(){return n.handleCopy()}),h(),s(1,"svg",1),g(2,"path",2),p()(),b(3,O,2,5,"span",3)),t&2&&(c(n.sizeClass_$()+" flex items-center justify-center rounded text-neutral-400 hover:text-neutral-200 hover:bg-neutral-700 transition-colors shrink-0"),x("title",n.buttonTitle()),k("aria-label",n.buttonTitle()),r(),c(n.iconSizeClass_$()),r(2),C(n.hasFeedback_$()?3:-1))},dependencies:[$],encapsulation:2})}return i})();export{q as a};
2
- //# sourceMappingURL=chunk-7UVQNGAS.js.map
1
+ import{h as d,j as M}from"./chunk-TBT57I7I.js";import{p as F}from"./chunk-KNX6PXMA.js";import{C as u,D as f,Fa as y,Ga as w,L as h,Ta as S,U as o,Z as r,aa as l,da as b,fa as k,ga as x,h as E,hb as a,ia as _,ja as c,k as m,la as C,qa as s,ra as p,sa as g,ub as $,va as T,wa as v}from"./chunk-TBMJSIBB.js";var z=E(F());function O(i,B){if(i&1&&(s(0,"span",4),y(1),p()),i&2){let e=v();_("text-green-400",e.feedbackOk_$())("text-red-400",!e.feedbackOk_$()),r(),w(e.feedbackText_$())}}var q=(()=>{class i{content=o.required();buttonTitle=o("M\xE1sol\xE1s v\xE1g\xF3lapra");size=o("sm");feedbackText_$=l("");feedbackOk_$=l(!0);hasFeedback_$=a(()=>this.feedbackText_$().length>0);sizeClass_$=a(()=>this.size()==="md"?"p-2 min-h-[44px] min-w-[44px]":"p-1.5 gt-xs:p-2 min-h-[32px] min-w-[32px] gt-xs:min-h-[36px] gt-xs:min-w-[36px]");iconSizeClass_$=a(()=>this.size()==="md"?"h-5 w-5":"h-4 w-4");globalError_CS=u(M);static feedbackResetMs=2*z.second;feedbackTimer=null;handleCopy(){return m(this,null,function*(){let e=this.content();if(!e)return;let t=yield this.globalError_CS.copyToClipboard(e);t.ok?this.showFeedback("M\xE1solva!",!0):(this.showFeedback("Sikertelen",!1),this.globalError_CS.reportErrorOnly({message:d.getErrorMessageForDisplay(t.error),source:"copy-button",stack:d.getStackForReport(t.error)}))})}showFeedback(e,t){this.feedbackTimer!==null&&clearTimeout(this.feedbackTimer),this.feedbackText_$.set(e),this.feedbackOk_$.set(t),this.feedbackTimer=setTimeout(()=>{this.feedbackText_$.set(""),this.feedbackTimer=null},i.feedbackResetMs)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=f({type:i,selectors:[["app-s-copy-button"]],hostAttrs:[1,"inline-flex","items-center","gap-1.5"],inputs:{content:[1,"content"],buttonTitle:[1,"buttonTitle"],size:[1,"size"]},standalone:!0,features:[S],decls:4,vars:7,consts:[["type","button",3,"click","title"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor","aria-hidden","true"],["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"],[1,"text-[11px]","gt-xs:text-xs","shrink-0",3,"text-green-400","text-red-400"],[1,"text-[11px]","gt-xs:text-xs","shrink-0"]],template:function(t,n){t&1&&(s(0,"button",0),T("click",function(){return n.handleCopy()}),h(),s(1,"svg",1),g(2,"path",2),p()(),b(3,O,2,5,"span",3)),t&2&&(c(n.sizeClass_$()+" flex items-center justify-center rounded text-neutral-400 hover:text-neutral-200 hover:bg-neutral-700 transition-colors shrink-0"),x("title",n.buttonTitle()),k("aria-label",n.buttonTitle()),r(),c(n.iconSizeClass_$()),r(2),C(n.hasFeedback_$()?3:-1))},dependencies:[$],encapsulation:2})}return i})();export{q as a};
2
+ //# sourceMappingURL=chunk-TYWRMRAZ.js.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-EQP2GOHM.js";import{G as i}from"./chunk-TBMJSIBB.js";var p=(()=>{class e{transform(t){return r.formatRelativeTime(t)}static \u0275fac=function(a){return new(a||e)};static \u0275pipe=i({name:"ccapRelativeTime",type:e,pure:!0,standalone:!0})}return e})();export{p as a};
2
- //# sourceMappingURL=chunk-IM4THCNH.js.map
1
+ import{a as r}from"./chunk-TRNNWPOH.js";import{G as i}from"./chunk-TBMJSIBB.js";var p=(()=>{class e{transform(t){return r.formatRelativeTime(t)}static \u0275fac=function(a){return new(a||e)};static \u0275pipe=i({name:"ccapRelativeTime",type:e,pure:!0,standalone:!0})}return e})();export{p as a};
2
+ //# sourceMappingURL=chunk-V5NW6HMC.js.map
@@ -1,4 +1,4 @@
1
- import{a as G}from"./chunk-ZUABLPQU.js";import{a as K}from"./chunk-AYMTESIQ.js";import{e as F}from"./chunk-44LSDHLE.js";import{h as f,j as U}from"./chunk-BKZUZRTC.js";import{I as D,p as H}from"./chunk-HKFQB2DP.js";import{C as _,R as L,a as w,aa as p,b as $,d as k,h as O,k as h,p as d,vb as g,xb as P,y as M}from"./chunk-TBMJSIBB.js";var C=O(H());var I=(()=>{class l{static GATEWAY_CHAT_MESSAGE_TIMESTAMP_FIELD_NAMES=["timestamp","createdAt","updatedAt","ts","time","sentAt","messageTimestamp","created_at","updated_at","lastMessageAt","last_message_at","startedAt","started_at","lastActivityAt","last_activity_at"];static GATEWAY_SESSION_LAST_ACTIVITY_FIELD_NAMES=["lastActivityAt","updatedAt","lastMessageAt","updated_at","last_activity_at","last_message_at","startedAt","started_at","createdAt","created_at"];static GATEWAY_SESSION_STARTED_FIELD_NAMES=["startedAt","started_at","createdAt","created_at"];static GATEWAY_OUTPUT_ONLY_TIMESTAMP_FIELD_NAMES=["lastMessageAt","last_message_at","lastOutputAt","last_output_at"];static extractTimestamp(t,s){for(let e of s){let n=t[e];if(typeof n=="string"&&n)return n;if(typeof n=="number"&&n>0){let o=n<1e12?n*1e3:n;return new Date(o).toISOString()}}}}return l})();var E=class l{static buildGatewaySessionsFetch(y){let t=y.response._firstSessionKeys,s=Array.isArray(t)?t:[],e=Array.isArray(y.response.sessions)?y.response.sessions:[],n=e.map(i=>l.mapRawSessionToListItem({raw:i,gatewayUrl:y.response.gatewayUrl}));return{listItems:l.sortListItemsByLastActivityDesc({items:n}),rawSessions:e,gatewayUrl:y.response.gatewayUrl,source:y.response.source,instanceId:y.response.instanceId,firstSessionKeys:s}}static mapRawSessionToListItem(y){let t=y.raw;return{sessionId:typeof t.key=="string"?t.key:typeof t.sessionId=="string"?t.sessionId:typeof t.id=="string"?t.id:String(t.key??t.sessionId??t.id??""),label:typeof t.label=="string"?t.label:typeof t.name=="string"?t.name:typeof t.title=="string"?t.title:void 0,workspacePath:typeof t.workspacePath=="string"?t.workspacePath:typeof t.cwd=="string"?t.cwd:"",status:typeof t.status=="string"?t.status:"unknown",statusMessage:typeof t.statusMessage=="string"?t.statusMessage:void 0,gatewayUrl:y.gatewayUrl,openclawAgentName:typeof t.agentName=="string"?t.agentName:typeof t.agent=="string"?t.agent:void 0,promptCount:typeof t.promptCount=="number"?t.promptCount:typeof t.messageCount=="number"?t.messageCount:0,toolCallCount:typeof t.toolCallCount=="number"?t.toolCallCount:0,lastActivityAt:I.extractTimestamp(t,I.GATEWAY_SESSION_LAST_ACTIVITY_FIELD_NAMES),startedAt:I.extractTimestamp(t,I.GATEWAY_SESSION_STARTED_FIELD_NAMES),lastPrompt:typeof t.lastPrompt=="string"?t.lastPrompt:void 0,mode:typeof t.mode=="string"?t.mode:void 0,reasoningEffort:typeof t.reasoningEffort=="string"?t.reasoningEffort:typeof t.thinking=="string"?t.thinking:void 0,isArchived:typeof t.isArchived=="boolean"?t.isArchived:!1}}static sortListItemsByLastActivityDesc(y){return[...y.items].sort((t,s)=>{let e=t.lastActivityAt?new Date(t.lastActivityAt).getTime():0;return(s.lastActivityAt?new Date(s.lastActivityAt).getTime():0)-e})}};var N=(()=>{class l{baseUrl=`${D.api.baseUrl}/oc-session`;http=_(P);peiContext_DS=_(K);withCcapId(t){let s=this.peiContext_DS.activeCcapId_$();return s?t.set("ccapId",s):t}createSession(t){let s=this.withCcapId(new g);return d(this.http.post(this.baseUrl,t,{params:s}))}listSessions(t){let s=this.withCcapId(new g);return t?.status&&(s=s.set("status",t.status)),t?.workspacePath&&(s=s.set("workspacePath",t.workspacePath)),t?.gatewayUrl&&(s=s.set("gatewayUrl",t.gatewayUrl)),t?.includeArchived&&(s=s.set("includeArchived","1")),t?.limit!=null&&(s=s.set("limit",String(t.limit))),t?.offset!=null&&(s=s.set("offset",String(t.offset))),d(this.http.get(this.baseUrl,{params:s}))}listGatewaySessions(t){let s=new g().set("instanceId",t.instanceId);return d(this.http.get(`${this.baseUrl}/gateway-sessions`,{params:s}))}getGatewaySessionHistory(t){let s=new g().set("instanceId",t.instanceId);return d(this.http.get(`${this.baseUrl}/gateway-sessions/${t.sessionId}/history`,{params:s}))}sendGatewayPrompt(t){return d(this.http.post(`${this.baseUrl}/gateway-sessions/${t.sessionId}/send`,{instanceId:t.instanceId,content:t.content,agentName:t.agentName}))}abortGatewaySession(t){return d(this.http.post(`${this.baseUrl}/gateway-sessions/${t.sessionId}/abort`,{instanceId:t.instanceId}))}deleteGatewaySession(t){let s=new g().set("instanceId",t.instanceId);return d(this.http.delete(`${this.baseUrl}/gateway-sessions/${t.sessionId}`,{params:s}))}getSession(t){let s=this.withCcapId(new g);return d(this.http.get(`${this.baseUrl}/${t.sessionId}`,{params:s}))}sendPrompt(t){let s=this.withCcapId(new g);return d(this.http.post(`${this.baseUrl}/${t.sessionId}/prompt`,{content:t.content},{params:s}))}reconnectSession(t){let s=this.withCcapId(new g);return d(this.http.post(`${this.baseUrl}/${t.sessionId}/reconnect`,{},{params:s}))}stopExecution(t){let s=this.withCcapId(new g);return d(this.http.post(`${this.baseUrl}/${t.sessionId}/stop-execution`,{},{params:s}))}terminateSession(t){let s=this.withCcapId(new g);return d(this.http.post(`${this.baseUrl}/${t.sessionId}/terminate`,{},{params:s}))}updateSessionConfig(t){let o=t,{sessionId:s}=o,e=k(o,["sessionId"]),n=this.withCcapId(new g);return d(this.http.patch(`${this.baseUrl}/${s}/config`,e,{params:n}))}setSessionArchived(t){let s=this.withCcapId(new g);return d(this.http.patch(`${this.baseUrl}/${t.sessionId}/archive`,{isArchived:t.isArchived},{params:s}))}getSessionEvents(t){let s=this.withCcapId(new g);return t.eventType&&(s=s.set("eventType",t.eventType)),t.since&&(s=s.set("since",t.since)),t.sinceSequence!=null&&(s=s.set("sinceSequence",String(t.sinceSequence))),t.limit!=null&&(s=s.set("limit",String(t.limit))),t.offset!=null&&(s=s.set("offset",String(t.offset))),t.latest&&(s=s.set("latest","1")),d(this.http.get(`${this.baseUrl}/${t.sessionId}/events`,{params:s}))}getSessionEventStreamUrl(t){let s=`${this.baseUrl}/${t.sessionId}/events/stream`,e=this.peiContext_DS.activeCcapId_$();return e?`${s}?ccapId=${encodeURIComponent(e)}`:s}static \u0275fac=function(s){return new(s||l)};static \u0275prov=M({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();var lt=(()=>{class l{sessions_$=p([]);sessionsLoading_$=p(!1);sessionsLoadError_$=p(null);selectedSession_$=p(null);selectedSessionLoading_$=p(!1);selectedSessionEvents_$=p([]);consoleMessages_$=p([]);assembledMessages_$=p([]);lastStatusUpdate_$=p(null);sessionUsage_$=p({inputTokens:0,outputTokens:0,costUsd:0});activeSessionId_$=p("");activeInstanceId_$=p("");gatewayFilter_$=p(null);extSessionMsg_AS=_(G);ocSession_AS=_(N);globalError_CS=_(U);socket_CS=_(F);ngZone=_(L);eventSubscription=null;reconnectSubscription=null;lastKnownEventSequence=-1;chatPollHandle=null;detailPollHandle=null;lastPolledHistoryFingerprint="";constructor(){this.eventSubscription=this.socket_CS.event$.subscribe(t=>{this.handleSocketEvent(t)}),this.reconnectSubscription=this.socket_CS.connected$.subscribe(t=>{if(t){let s=this.activeSessionId_$();s&&(this.socket_CS.emit("oc-session:subscribe",{sessionId:s}),this.loadAssembledMessages({sessionId:s}).catch(()=>{})),this.backfillMissedEvents()}})}ngOnDestroy(){this.stopChatPolling(),this.eventSubscription&&(this.eventSubscription.unsubscribe(),this.eventSubscription=null),this.reconnectSubscription&&(this.reconnectSubscription.unsubscribe(),this.reconnectSubscription=null)}setGatewayFilter(t){this.gatewayFilter_$.set(t),this.loadSessions().catch(()=>{})}setGatewayFilterOnly(t){this.gatewayFilter_$.set(t)}loadSessions(t){return h(this,null,function*(){this.sessionsLoading_$.set(!0),this.sessionsLoadError_$.set(null);try{let e=[...(yield this.ocSession_AS.listSessions({status:t?.status,workspacePath:t?.workspacePath,gatewayUrl:this.gatewayFilter_$()??void 0,includeArchived:t?.includeArchived})).sessions].sort((n,o)=>{let i=n.lastActivityAt?new Date(n.lastActivityAt).getTime():0;return(o.lastActivityAt?new Date(o.lastActivityAt).getTime():0)-i});this.sessions_$.set(e)}catch(s){this.sessionsLoadError_$.set(s),this.pushConsoleMessage({type:"error",text:`Load sessions failed: ${f.getErrorMessageForDisplay(s)}`})}finally{this.sessionsLoading_$.set(!1)}})}fetchGatewaySessionsForInstance(t){return h(this,null,function*(){let s=yield this.ocSession_AS.listGatewaySessions({instanceId:t.instanceId});return E.buildGatewaySessionsFetch({response:s})})}loadGatewaySessions(t){return h(this,null,function*(){this.sessionsLoading_$.set(!0),this.sessionsLoadError_$.set(null);try{let s=yield this.fetchGatewaySessionsForInstance({instanceId:t.instanceId});!s.listItems.length&&s.rawSessions.length>0&&this.pushConsoleMessage({type:"error",text:`Gateway returned ${s.rawSessions.length} sessions but mapping produced 0.
1
+ import{a as G}from"./chunk-3PWBQJ4M.js";import{a as K}from"./chunk-66F6YPRF.js";import{e as F}from"./chunk-HGDZCCLA.js";import{h as f,j as U}from"./chunk-TBT57I7I.js";import{I as D,p as H}from"./chunk-KNX6PXMA.js";import{C as _,R as L,a as w,aa as p,b as $,d as k,h as O,k as h,p as d,vb as g,xb as P,y as M}from"./chunk-TBMJSIBB.js";var C=O(H());var I=(()=>{class l{static GATEWAY_CHAT_MESSAGE_TIMESTAMP_FIELD_NAMES=["timestamp","createdAt","updatedAt","ts","time","sentAt","messageTimestamp","created_at","updated_at","lastMessageAt","last_message_at","startedAt","started_at","lastActivityAt","last_activity_at"];static GATEWAY_SESSION_LAST_ACTIVITY_FIELD_NAMES=["lastActivityAt","updatedAt","lastMessageAt","updated_at","last_activity_at","last_message_at","startedAt","started_at","createdAt","created_at"];static GATEWAY_SESSION_STARTED_FIELD_NAMES=["startedAt","started_at","createdAt","created_at"];static GATEWAY_OUTPUT_ONLY_TIMESTAMP_FIELD_NAMES=["lastMessageAt","last_message_at","lastOutputAt","last_output_at"];static extractTimestamp(t,s){for(let e of s){let n=t[e];if(typeof n=="string"&&n)return n;if(typeof n=="number"&&n>0){let o=n<1e12?n*1e3:n;return new Date(o).toISOString()}}}}return l})();var E=class l{static buildGatewaySessionsFetch(y){let t=y.response._firstSessionKeys,s=Array.isArray(t)?t:[],e=Array.isArray(y.response.sessions)?y.response.sessions:[],n=e.map(i=>l.mapRawSessionToListItem({raw:i,gatewayUrl:y.response.gatewayUrl}));return{listItems:l.sortListItemsByLastActivityDesc({items:n}),rawSessions:e,gatewayUrl:y.response.gatewayUrl,source:y.response.source,instanceId:y.response.instanceId,firstSessionKeys:s}}static mapRawSessionToListItem(y){let t=y.raw;return{sessionId:typeof t.key=="string"?t.key:typeof t.sessionId=="string"?t.sessionId:typeof t.id=="string"?t.id:String(t.key??t.sessionId??t.id??""),label:typeof t.label=="string"?t.label:typeof t.name=="string"?t.name:typeof t.title=="string"?t.title:void 0,workspacePath:typeof t.workspacePath=="string"?t.workspacePath:typeof t.cwd=="string"?t.cwd:"",status:typeof t.status=="string"?t.status:"unknown",statusMessage:typeof t.statusMessage=="string"?t.statusMessage:void 0,gatewayUrl:y.gatewayUrl,openclawAgentName:typeof t.agentName=="string"?t.agentName:typeof t.agent=="string"?t.agent:void 0,promptCount:typeof t.promptCount=="number"?t.promptCount:typeof t.messageCount=="number"?t.messageCount:0,toolCallCount:typeof t.toolCallCount=="number"?t.toolCallCount:0,lastActivityAt:I.extractTimestamp(t,I.GATEWAY_SESSION_LAST_ACTIVITY_FIELD_NAMES),startedAt:I.extractTimestamp(t,I.GATEWAY_SESSION_STARTED_FIELD_NAMES),lastPrompt:typeof t.lastPrompt=="string"?t.lastPrompt:void 0,mode:typeof t.mode=="string"?t.mode:void 0,reasoningEffort:typeof t.reasoningEffort=="string"?t.reasoningEffort:typeof t.thinking=="string"?t.thinking:void 0,isArchived:typeof t.isArchived=="boolean"?t.isArchived:!1}}static sortListItemsByLastActivityDesc(y){return[...y.items].sort((t,s)=>{let e=t.lastActivityAt?new Date(t.lastActivityAt).getTime():0;return(s.lastActivityAt?new Date(s.lastActivityAt).getTime():0)-e})}};var N=(()=>{class l{baseUrl=`${D.api.baseUrl}/oc-session`;http=_(P);peiContext_DS=_(K);withCcapId(t){let s=this.peiContext_DS.activeCcapId_$();return s?t.set("ccapId",s):t}createSession(t){let s=this.withCcapId(new g);return d(this.http.post(this.baseUrl,t,{params:s}))}listSessions(t){let s=this.withCcapId(new g);return t?.status&&(s=s.set("status",t.status)),t?.workspacePath&&(s=s.set("workspacePath",t.workspacePath)),t?.gatewayUrl&&(s=s.set("gatewayUrl",t.gatewayUrl)),t?.includeArchived&&(s=s.set("includeArchived","1")),t?.limit!=null&&(s=s.set("limit",String(t.limit))),t?.offset!=null&&(s=s.set("offset",String(t.offset))),d(this.http.get(this.baseUrl,{params:s}))}listGatewaySessions(t){let s=new g().set("instanceId",t.instanceId);return d(this.http.get(`${this.baseUrl}/gateway-sessions`,{params:s}))}getGatewaySessionHistory(t){let s=new g().set("instanceId",t.instanceId);return d(this.http.get(`${this.baseUrl}/gateway-sessions/${t.sessionId}/history`,{params:s}))}sendGatewayPrompt(t){return d(this.http.post(`${this.baseUrl}/gateway-sessions/${t.sessionId}/send`,{instanceId:t.instanceId,content:t.content,agentName:t.agentName}))}abortGatewaySession(t){return d(this.http.post(`${this.baseUrl}/gateway-sessions/${t.sessionId}/abort`,{instanceId:t.instanceId}))}deleteGatewaySession(t){let s=new g().set("instanceId",t.instanceId);return d(this.http.delete(`${this.baseUrl}/gateway-sessions/${t.sessionId}`,{params:s}))}getSession(t){let s=this.withCcapId(new g);return d(this.http.get(`${this.baseUrl}/${t.sessionId}`,{params:s}))}sendPrompt(t){let s=this.withCcapId(new g);return d(this.http.post(`${this.baseUrl}/${t.sessionId}/prompt`,{content:t.content},{params:s}))}reconnectSession(t){let s=this.withCcapId(new g);return d(this.http.post(`${this.baseUrl}/${t.sessionId}/reconnect`,{},{params:s}))}stopExecution(t){let s=this.withCcapId(new g);return d(this.http.post(`${this.baseUrl}/${t.sessionId}/stop-execution`,{},{params:s}))}terminateSession(t){let s=this.withCcapId(new g);return d(this.http.post(`${this.baseUrl}/${t.sessionId}/terminate`,{},{params:s}))}updateSessionConfig(t){let o=t,{sessionId:s}=o,e=k(o,["sessionId"]),n=this.withCcapId(new g);return d(this.http.patch(`${this.baseUrl}/${s}/config`,e,{params:n}))}setSessionArchived(t){let s=this.withCcapId(new g);return d(this.http.patch(`${this.baseUrl}/${t.sessionId}/archive`,{isArchived:t.isArchived},{params:s}))}getSessionEvents(t){let s=this.withCcapId(new g);return t.eventType&&(s=s.set("eventType",t.eventType)),t.since&&(s=s.set("since",t.since)),t.sinceSequence!=null&&(s=s.set("sinceSequence",String(t.sinceSequence))),t.limit!=null&&(s=s.set("limit",String(t.limit))),t.offset!=null&&(s=s.set("offset",String(t.offset))),t.latest&&(s=s.set("latest","1")),d(this.http.get(`${this.baseUrl}/${t.sessionId}/events`,{params:s}))}getSessionEventStreamUrl(t){let s=`${this.baseUrl}/${t.sessionId}/events/stream`,e=this.peiContext_DS.activeCcapId_$();return e?`${s}?ccapId=${encodeURIComponent(e)}`:s}static \u0275fac=function(s){return new(s||l)};static \u0275prov=M({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();var lt=(()=>{class l{sessions_$=p([]);sessionsLoading_$=p(!1);sessionsLoadError_$=p(null);selectedSession_$=p(null);selectedSessionLoading_$=p(!1);selectedSessionEvents_$=p([]);consoleMessages_$=p([]);assembledMessages_$=p([]);lastStatusUpdate_$=p(null);sessionUsage_$=p({inputTokens:0,outputTokens:0,costUsd:0});activeSessionId_$=p("");activeInstanceId_$=p("");gatewayFilter_$=p(null);extSessionMsg_AS=_(G);ocSession_AS=_(N);globalError_CS=_(U);socket_CS=_(F);ngZone=_(L);eventSubscription=null;reconnectSubscription=null;lastKnownEventSequence=-1;chatPollHandle=null;detailPollHandle=null;lastPolledHistoryFingerprint="";constructor(){this.eventSubscription=this.socket_CS.event$.subscribe(t=>{this.handleSocketEvent(t)}),this.reconnectSubscription=this.socket_CS.connected$.subscribe(t=>{if(t){let s=this.activeSessionId_$();s&&(this.socket_CS.emit("oc-session:subscribe",{sessionId:s}),this.loadAssembledMessages({sessionId:s}).catch(()=>{})),this.backfillMissedEvents()}})}ngOnDestroy(){this.stopChatPolling(),this.eventSubscription&&(this.eventSubscription.unsubscribe(),this.eventSubscription=null),this.reconnectSubscription&&(this.reconnectSubscription.unsubscribe(),this.reconnectSubscription=null)}setGatewayFilter(t){this.gatewayFilter_$.set(t),this.loadSessions().catch(()=>{})}setGatewayFilterOnly(t){this.gatewayFilter_$.set(t)}loadSessions(t){return h(this,null,function*(){this.sessionsLoading_$.set(!0),this.sessionsLoadError_$.set(null);try{let e=[...(yield this.ocSession_AS.listSessions({status:t?.status,workspacePath:t?.workspacePath,gatewayUrl:this.gatewayFilter_$()??void 0,includeArchived:t?.includeArchived})).sessions].sort((n,o)=>{let i=n.lastActivityAt?new Date(n.lastActivityAt).getTime():0;return(o.lastActivityAt?new Date(o.lastActivityAt).getTime():0)-i});this.sessions_$.set(e)}catch(s){this.sessionsLoadError_$.set(s),this.pushConsoleMessage({type:"error",text:`Load sessions failed: ${f.getErrorMessageForDisplay(s)}`})}finally{this.sessionsLoading_$.set(!1)}})}fetchGatewaySessionsForInstance(t){return h(this,null,function*(){let s=yield this.ocSession_AS.listGatewaySessions({instanceId:t.instanceId});return E.buildGatewaySessionsFetch({response:s})})}loadGatewaySessions(t){return h(this,null,function*(){this.sessionsLoading_$.set(!0),this.sessionsLoadError_$.set(null);try{let s=yield this.fetchGatewaySessionsForInstance({instanceId:t.instanceId});!s.listItems.length&&s.rawSessions.length>0&&this.pushConsoleMessage({type:"error",text:`Gateway returned ${s.rawSessions.length} sessions but mapping produced 0.
2
2
  First session keys: ${s.firstSessionKeys.join(", ")}`}),this.sessions_$.set(s.listItems)}catch(s){this.sessionsLoadError_$.set(s),this.pushConsoleMessage({type:"error",text:`Load gateway sessions failed: ${f.getErrorMessageForDisplay(s)}`})}finally{this.sessionsLoading_$.set(!1)}})}loadSessionDetail(t){return h(this,null,function*(){let s=t.isSilent===!0;s||this.selectedSessionLoading_$.set(!0);try{let e=yield this.ocSession_AS.getSession({sessionId:t.sessionId});this.selectedSession_$.set(e),this.loadAssembledMessages({sessionId:t.sessionId}).catch(()=>{})}catch(e){if(!s){this.selectedSession_$.set(null);let n=e instanceof Error?e.message:"Failed to load session details";this.pushConsoleMessage({type:"error",text:`Load session failed: ${n}`})}}finally{s||this.selectedSessionLoading_$.set(!1)}})}loadGatewaySessionHistory(t){return h(this,null,function*(){this.selectedSessionLoading_$.set(!0),this.consoleMessages_$.set([]);try{let s=yield this.ocSession_AS.getGatewaySessionHistory({sessionId:t.sessionId,instanceId:t.instanceId}),e=s,n=Array.isArray(e._rawKeys)?e._rawKeys:[],o=Array.isArray(s.history)?s.history:[],i=this.parseGatewayHistory(o),a=typeof e.messageCount=="number"?e.messageCount:0,r=Array.isArray(e._firstMessageKeys)?e._firstMessageKeys:[];i.length?this.consoleMessages_$.set(i):a>0?this.consoleMessages_$.set([{listKey:this.allocateConsoleListKey(),type:"error",text:`Gateway session has ${a} messages, but mapping failed.
3
3
  Message keys: ${r.join(", ")||"unknown"}
4
4
  Gateway response keys: ${n.join(", ")||"none"}`,timestamp:new Date().toISOString()}]):this.consoleMessages_$.set([{listKey:this.allocateConsoleListKey(),type:"info",text:"Gateway session loaded \u2014 session has no messages yet.",timestamp:new Date().toISOString()}]),this.selectedSession_$.set({session:{sessionId:t.sessionId,workspacePath:"",status:"unknown",promptCount:0,toolCallCount:0,isArchived:!1},runtime:{isLive:!1,runtimeStatus:null,outputBufferLength:0}}),this.lastPolledHistoryFingerprint=this.computeGatewayHistoryFingerprint(o),this.startChatPolling()}catch(s){this.selectedSession_$.set(null),this.pushConsoleMessage({type:"error",text:`Load gateway session history failed: ${f.getErrorMessageForDisplay(s)}`})}finally{this.selectedSessionLoading_$.set(!1)}})}loadSessionEvents(t){return h(this,null,function*(){try{let s=yield this.ocSession_AS.getSessionEvents({sessionId:t.sessionId,eventType:t.eventType,limit:t.limit??500,latest:!0});this.selectedSessionEvents_$.set(s.events),this.updateLastKnownSequence(s.events);for(let e of s.events)this.pushConsoleMessageFromEvent(e)}catch(s){this.selectedSessionEvents_$.set([]),this.pushConsoleMessage({type:"error",text:`Load events failed: ${f.getErrorMessageForDisplay(s)}`})}})}createSession(t){return h(this,null,function*(){try{let s=yield this.ocSession_AS.createSession(t),e=String(s.session.sessionId||"");return yield this.loadSessions(),e}catch(s){throw this.pushConsoleMessage({type:"error",text:`Create session failed: ${f.getErrorMessageForDisplay(s)}`}),s}})}sendPrompt(t){return h(this,null,function*(){this.pushConsoleMessage({type:"prompt",text:t.content});try{let s=this.activeInstanceId_$();s?yield this.ocSession_AS.sendGatewayPrompt({sessionId:t.sessionId,instanceId:s,content:t.content}):yield this.ocSession_AS.sendPrompt(t)}catch(s){throw this.pushConsoleMessage({type:"error",text:`Send failed: ${f.getErrorMessageForDisplay(s)}`}),s}})}reconnectSession(t){return h(this,null,function*(){try{yield this.ocSession_AS.reconnectSession(t),yield this.loadSessions()}catch(s){throw this.pushConsoleMessage({type:"error",text:`Reconnect failed: ${f.getErrorMessageForDisplay(s)}`}),s}})}stopExecution(t){return h(this,null,function*(){try{yield this.ocSession_AS.stopExecution(t)}catch(s){throw this.pushConsoleMessage({type:"error",text:`Stop execution failed: ${f.getErrorMessageForDisplay(s)}`}),s}})}terminateSession(t){return h(this,null,function*(){try{yield this.ocSession_AS.terminateSession(t),yield this.loadSessions()}catch(s){throw this.pushConsoleMessage({type:"error",text:`Terminate failed: ${f.getErrorMessageForDisplay(s)}`}),s}})}setSessionArchived(t){return h(this,null,function*(){try{yield this.ocSession_AS.setSessionArchived(t),yield this.loadSessions()}catch(s){throw this.pushConsoleMessage({type:"error",text:`Archive failed: ${f.getErrorMessageForDisplay(s)}`}),s}})}updateSessionConfig(t){return h(this,null,function*(){try{yield this.ocSession_AS.updateSessionConfig(t);let s=this.selectedSession_$();if(s?.session.sessionId===t.sessionId){let e=w({},s.session);t.mode!=null&&(e.mode=t.mode),t.reasoningEffort!=null&&(e.reasoningEffort=t.reasoningEffort),t.openclawAgentName!=null&&(e.openclawAgentName=t.openclawAgentName),this.selectedSession_$.set($(w({},s),{session:e}))}}catch(s){throw this.pushConsoleMessage({type:"error",text:`Config update failed: ${f.getErrorMessageForDisplay(s)}`}),s}})}setActiveSessionId(t){let s=this.activeSessionId_$();s&&s!==t&&this.socket_CS.emit("oc-session:unsubscribe",{sessionId:s}),this.activeSessionId_$.set(t),t&&this.socket_CS.emit("oc-session:subscribe",{sessionId:t})}clearLiveOutput(){this.stopChatPolling(),this.consoleMessages_$.set([]),this.sessionUsage_$.set({inputTokens:0,outputTokens:0,costUsd:0}),this.lastKnownEventSequence=-1}allocateConsoleListKey(){return globalThis.crypto.randomUUID()}pushConsoleMessage(t){let s=t.type==="assistant"||t.type==="prompt"?t.text.trim():t.text,e={listKey:t.listKey??this.allocateConsoleListKey(),type:t.type,text:s,timestamp:t.timestamp??new Date().toISOString(),expandableContent:t.expandableContent,rawData:t.rawData},n=this.consoleMessages_$();this.consoleMessages_$.set([...n,e])}static CHAT_POLL_INTERVAL_MS=5*C.second;static DETAIL_POLL_INTERVAL_MS=10*C.second;startChatPolling(){this.stopChatPolling(),this.chatPollHandle=setInterval(()=>{this.pollChatHistory()},l.CHAT_POLL_INTERVAL_MS),this.detailPollHandle=setInterval(()=>{let t=this.activeSessionId_$();t&&this.loadSessionDetail({sessionId:t,isSilent:!0})},l.DETAIL_POLL_INTERVAL_MS)}stopChatPolling(){this.chatPollHandle&&(clearInterval(this.chatPollHandle),this.chatPollHandle=null),this.detailPollHandle&&(clearInterval(this.detailPollHandle),this.detailPollHandle=null),this.lastPolledHistoryFingerprint=""}computeGatewayHistoryFingerprint(t){let s=t.length;if(!s)return"0";let e=t[s-1],n=typeof e.id=="string"?e.id:typeof e.messageId=="string"?e.messageId:"",o=l.extractGatewayChatMessageTimestamp(e),i=this.extractTextFromMessage(e),a=400,r=i.length>a?i.slice(0,a):i;return`${s}${n}${o}${r}`}pollChatHistory(){return h(this,null,function*(){let t=this.activeSessionId_$(),s=this.activeInstanceId_$();if(!(!t||!s))try{let e=yield this.ocSession_AS.getGatewaySessionHistory({sessionId:t,instanceId:s}),n=Array.isArray(e.history)?e.history:[],o=this.computeGatewayHistoryFingerprint(n);if(o===this.lastPolledHistoryFingerprint)return;this.lastPolledHistoryFingerprint=o;let i=this.parseGatewayHistory(n);this.ngZone.run(()=>{this.consoleMessages_$.set(i)})}catch{}})}parseGatewayHistory(t){let s=[],e=new Map,n=[];for(let i of t){let a=i.content;if(Array.isArray(a))for(let r of a){let u=typeof r.type=="string"?r.type:"";if(u==="tool_use"||u==="toolCall"){let S=typeof r.id=="string"?r.id:"";S&&n.push(S)}if(u==="tool_result"){let S=typeof r.tool_use_id=="string"?r.tool_use_id:"";S&&e.set(S,this.extractTextFromContentBlock(r))}}}let o=0;for(let i of t){let a=typeof i.role=="string"?i.role:"";if(a==="toolResult"||a==="tool_result"){let r=this.extractTextFromMessage(i);o<n.length&&(e.set(n[o],r),o++)}}for(let i of t){let a=typeof i.role=="string"?i.role:"unknown",r=i.content,u=l.extractGatewayChatMessageTimestamp(i);if(a==="toolResult"||a==="tool_result")continue;if(typeof r=="string"){s.push({listKey:this.allocateConsoleListKey(),type:a==="user"||a==="human"?"prompt":a==="assistant"?"assistant":"info",text:r,timestamp:u,rawData:i});continue}if(Array.isArray(r)){for(let c of r){let v=typeof c.type=="string"?c.type:"";if(v==="text")s.push({listKey:this.allocateConsoleListKey(),type:a==="user"||a==="human"?"prompt":"assistant",text:typeof c.text=="string"?c.text:"",timestamp:u,rawData:{_block:c,_message:{role:a,timestamp:u,contentBlockCount:r.length}}});else if(v==="tool_use"||v==="toolCall"){let b=typeof c.name=="string"?c.name:"unknown tool",T=typeof c.id=="string"?c.id:"",m=c.input??c.arguments,A=e.get(T);s.push({listKey:this.allocateConsoleListKey(),type:"tool",text:`${b}
@@ -6,4 +6,4 @@ ${JSON.stringify(m,null,2)}`,timestamp:u,expandableContent:A,rawData:{_block:c,_
6
6
  `):A=JSON.stringify(c,null,2),s.push({listKey:this.allocateConsoleListKey(),type:"tool-result",text:A,timestamp:u,rawData:{_block:c}})}}else v==="thinking"?s.push({listKey:this.allocateConsoleListKey(),type:"info",text:typeof c.thinking=="string"?c.thinking:JSON.stringify(c,null,2),timestamp:u,rawData:{_block:c}}):s.push({listKey:this.allocateConsoleListKey(),type:"info",text:JSON.stringify(c,null,2),timestamp:u,rawData:{_block:c}})}continue}let S=typeof i.text=="string"?i.text:typeof i.message=="string"?i.message:JSON.stringify(i,null,2);s.push({listKey:this.allocateConsoleListKey(),type:a==="user"||a==="human"?"prompt":a==="assistant"?"assistant":a==="tool"||a==="tool_result"||a==="tool_use"?"tool":"info",text:S,timestamp:u,rawData:i})}return s}backfillMissedEvents(){return h(this,null,function*(){let t=this.activeSessionId_$();if(!(!t||this.lastKnownEventSequence<0))try{let e=(yield this.ocSession_AS.getSessionEvents({sessionId:t,sinceSequence:this.lastKnownEventSequence})).events;if(!e.length)return;this.ngZone.run(()=>{let n=this.selectedSessionEvents_$();this.selectedSessionEvents_$.set([...n,...e]);for(let o of e)this.pushConsoleMessageFromEvent(o);this.updateLastKnownSequence(e)})}catch(s){C.DyFM_Log.warn("CCAP_OcSession_DS | backfill failed",s)}})}updateLastKnownSequence(t){for(let s of t)s.sequence>this.lastKnownEventSequence&&(this.lastKnownEventSequence=s.sequence)}handleSocketEvent(t){let s=t.event,e=t.payload;try{this.ngZone.run(()=>{switch(s){case"oc-session:status":this.handleStatusUpdate(e);break;case"oc-session:output":this.handleOutputChunk(e);break;case"oc-session:event":this.handleSessionEvent(e);break;case"oc-session:list-update":this.handleListUpdate(e);break;case"ext-session-msg:message":this.handleAssembledMessage(e);break;case"ext-session-msg:update":this.handleAssembledMessageUpdate(e);break}})}catch(n){C.DyFM_Log.error(`CCAP_OcSession_DS | socket event error | event: ${s}`,n)}}handleStatusUpdate(t){let s=t.sessionId??"",e=t.status??"",n=t.statusMessage;this.lastStatusUpdate_$.set({sessionId:s,status:e,statusMessage:n});let i=this.sessions_$().map(r=>r.sessionId===s?$(w({},r),{status:e,statusMessage:n}):r);this.sessions_$.set(i);let a=this.selectedSession_$();if(a?.session.sessionId===s){let r=e==="running"||e==="waiting-input";this.selectedSession_$.set($(w({},a),{session:$(w({},a.session),{status:e,statusMessage:n}),runtime:$(w({},a.runtime),{isLive:r,runtimeStatus:e})}))}if(e==="errored"){let r=n?`OC Session error (${s}): ${n}`:`OC Session error (${s}): session entered errored state`;this.globalError_CS.showError(new Error(r),"oc-session-status")}}handleOutputChunk(t){let s=t.sessionId??"";if(s&&s!==this.activeSessionId_$())return;let e=t.content??"",n=t.type??"response";e&&this.pushConsoleMessage({type:n==="error"?"error":"assistant",text:e})}handleSessionEvent(t){let s=t.sessionId??"";if(s&&s!==this.activeSessionId_$())return;let e=t.event??{},n={sessionId:s,eventType:e.eventType??"",timestamp:e.timestamp??"",data:e.data??{},sequence:e.sequence??0};if(n.sequence<=this.lastKnownEventSequence)return;this.lastKnownEventSequence=n.sequence;let o=this.selectedSessionEvents_$();this.selectedSessionEvents_$.set([...o,n]),this.pushConsoleMessageFromEvent(n)}handleListUpdate(t){this.loadSessions().catch(()=>{})}extractTextFromContentBlock(t){let s=t.content;return typeof s=="string"?s:Array.isArray(s)?s.map(e=>typeof e.text=="string"?e.text:JSON.stringify(e,null,2)).join(`
7
7
  `):typeof t.text=="string"?t.text:JSON.stringify(t,null,2)}extractTextFromMessage(t){let s=t.content;return typeof s=="string"?s:Array.isArray(s)?s.map(e=>typeof e.text=="string"?e.text:JSON.stringify(e,null,2)).join(`
8
8
  `):JSON.stringify(t,null,2)}pushConsoleMessageFromEvent(t){let s=t.data;switch(t.eventType){case"response-chunk":{let e=typeof s.content=="string"?s.content:"";e&&this.pushConsoleMessage({type:"assistant",text:e});break}case"response-complete":{let e=s.usage;if(e&&typeof e=="object"){let n=e,o=this.sessionUsage_$();this.sessionUsage_$.set({inputTokens:o.inputTokens+(typeof n.inputTokens=="number"?n.inputTokens:0),outputTokens:o.outputTokens+(typeof n.outputTokens=="number"?n.outputTokens:0),costUsd:o.costUsd+(typeof n.costUsd=="number"?n.costUsd:0)})}break}case"tool-call-start":{let e=typeof s.name=="string"?s.name:"unknown",n=s.input,o=n?this.summarizeToolInput(n):"",i=o?`${e}: ${o}`:e;this.pushConsoleMessage({type:"tool",text:i,rawData:s});break}case"tool-call-end":{let e=s.content??s.output,n=typeof e=="string"?e:JSON.stringify(e??{});this.pushConsoleMessage({type:"tool-result",text:n.length>200?n.substring(0,200)+"\u2026":n,expandableContent:n.length>200?n:void 0,rawData:s});break}case"error":{let e=s.message??s.content;typeof e=="string"&&e&&this.pushConsoleMessage({type:"error",text:e});break}case"connection-change":{let e=typeof s.state=="string"?s.state:"";e&&this.pushConsoleMessage({type:"info",text:`Gateway connection: ${e}`,rawData:s});break}default:break}}summarizeToolInput(t){if(typeof t=="string")return t.length>80?t.substring(0,80)+"\u2026":t;if(typeof t=="object"&&t!==null){let s=JSON.stringify(t);return s.length>80?s.substring(0,80)+"\u2026":s}return""}static extractGatewayChatMessageTimestamp(t){return I.extractTimestamp(t,I.GATEWAY_CHAT_MESSAGE_TIMESTAMP_FIELD_NAMES)??""}loadAssembledMessages(t){return h(this,null,function*(){try{let s=yield this.extSessionMsg_AS.getMessages({sessionId:t.sessionId,latest:!0});this.assembledMessages_$.set(s.messages)}catch(s){C.DyFM_Log.error(`CCAP_OcSession_DS | loadAssembledMessages failed | sessionId: ${t.sessionId}`,s)}})}handleAssembledMessage(t){let s=typeof t.sessionId=="string"?t.sessionId:"";if(!s||s!==this.activeSessionId_$())return;let e=t.message;if(!e||typeof e!="object")return;let n=e,o=this.assembledMessages_$();this.assembledMessages_$.set([...o,n])}handleAssembledMessageUpdate(t){let s=typeof t.sessionId=="string"?t.sessionId:"";if(!s||s!==this.activeSessionId_$())return;let e=typeof t.messageKey=="string"?t.messageKey:"";if(!e)return;let n=t.update;if(!n||typeof n!="object")return;let o=n,i=this.assembledMessages_$(),a=i.findIndex(S=>S.messageKey===e);if(a<0)return;let r=w({},i[a]);typeof o.bodyText=="string"&&(r.bodyText=o.bodyText),o.toolResult!==void 0&&(r.toolResult=o.toolResult),typeof o.toolStatus=="string"&&(r.toolStatus=o.toolStatus),o.headerStatusDot!==void 0&&(r.headerStatusDot=typeof o.headerStatusDot=="string"?o.headerStatusDot:void 0);let u=[...i];u[a]=r,this.assembledMessages_$.set(u)}static \u0275fac=function(s){return new(s||l)};static \u0275prov=M({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();export{I as a,lt as b};
9
- //# sourceMappingURL=chunk-H6AWRT5Q.js.map
9
+ //# sourceMappingURL=chunk-W3VVTZI7.js.map