@futdevpro/ccap 1.1.2972 → 1.1.2976
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.
- package/client-dist/{agent-instances.module-7JIOUWBV.js → agent-instances.module-RDNI5YIM.js} +2 -2
- package/client-dist/{ca.module-6RTUEF6F.js → ca.module-DOSQOA3X.js} +2 -2
- package/client-dist/{cc-usage-dashboard.component-MUE3JFHY.js → cc-usage-dashboard.component-QRHS53KB.js} +2 -2
- package/client-dist/{cc.module-MNX3GMAU.js → cc.module-QHHXHWQG.js} +2 -2
- package/client-dist/{chunk-N3TQEDBL.js → chunk-2NU642AU.js} +2 -2
- package/client-dist/{chunk-ZQT44XRN.js → chunk-2TJTUYN7.js} +2 -2
- package/client-dist/{chunk-GK3RSZLZ.js → chunk-32TKSQQ4.js} +2 -2
- package/client-dist/{chunk-IOXSJK5R.js → chunk-357BATFQ.js} +2 -2
- package/client-dist/{chunk-J6ZXTCHI.js → chunk-3L2A6OYA.js} +2 -2
- package/client-dist/{chunk-VOITLR7O.js → chunk-3WAVQMV4.js} +2 -2
- package/client-dist/{chunk-WDV7MFNU.js → chunk-5PH776OB.js} +2 -2
- package/client-dist/{chunk-OSJXI65X.js → chunk-65TRXF6Q.js} +2 -2
- package/client-dist/{chunk-MEDDAUB3.js → chunk-AOG3C4MB.js} +2 -2
- package/client-dist/{chunk-UYLV7WAB.js → chunk-AVF5CZDZ.js} +2 -2
- package/client-dist/{chunk-AAFXSEZA.js → chunk-BPXKOVJB.js} +2 -2
- package/client-dist/{chunk-KVUL77OV.js → chunk-C5SF72NF.js} +2 -2
- package/client-dist/{chunk-SE7LVQMB.js → chunk-CA2S6A5N.js} +2 -2
- package/client-dist/{chunk-QSOEXUHP.js → chunk-CFMCTGZ2.js} +2 -2
- package/client-dist/{chunk-U2WBKQML.js → chunk-CGYDBFFX.js} +2 -2
- package/client-dist/{chunk-MUV3H7Z7.js → chunk-CQLAXUA5.js} +2 -2
- package/client-dist/{chunk-K4GGODV4.js → chunk-D2YJ6ZB6.js} +2 -2
- package/client-dist/{chunk-RL2M6DJN.js → chunk-DI2UBL2H.js} +2 -2
- package/client-dist/{chunk-T2722QP4.js → chunk-ECCH2DHZ.js} +2 -2
- package/client-dist/{chunk-4WYWBPHC.js → chunk-F3FKLFEZ.js} +2 -2
- package/client-dist/{chunk-K35DOQT7.js → chunk-FLTRXJF5.js} +2 -2
- package/client-dist/{chunk-UNNGLS4Y.js → chunk-GHCL3MSY.js} +2 -2
- package/client-dist/{chunk-BM4UEP47.js → chunk-GIZQX4FZ.js} +2 -2
- package/client-dist/{chunk-LZ2PMXWH.js → chunk-GJLKW7DM.js} +2 -2
- package/client-dist/{chunk-E4TY6O3W.js → chunk-GQJGST2S.js} +2 -2
- package/client-dist/{chunk-QEMJBYC2.js → chunk-HMKEVINB.js} +2 -2
- package/client-dist/{chunk-PQVFWHXC.js → chunk-HQPGIGEE.js} +2 -2
- package/client-dist/{chunk-XYNIZC5J.js → chunk-HWDURMDH.js} +2 -2
- package/client-dist/{chunk-WKAKYIU5.js → chunk-JOP5IVM2.js} +2 -2
- package/client-dist/{chunk-QB2UH3OX.js → chunk-K2LUZEU7.js} +2 -2
- package/client-dist/{chunk-VY4R2KTU.js → chunk-K4J73VA4.js} +2 -2
- package/client-dist/{chunk-UE4NDJOE.js → chunk-K5GHIIP6.js} +2 -2
- package/client-dist/{chunk-IPLQJBDL.js → chunk-KRFIZINJ.js} +2 -2
- package/client-dist/{chunk-UYNSNX4F.js → chunk-KZGPAAZC.js} +2 -2
- package/client-dist/{chunk-N3AR5TZI.js → chunk-LSKYY36G.js} +2 -2
- package/client-dist/{chunk-QJKK7MN2.js → chunk-MMOBWOV2.js} +2 -2
- package/client-dist/{chunk-MBE24QTZ.js → chunk-MQGZMZG3.js} +2 -2
- package/client-dist/{chunk-ZOWPV7TY.js → chunk-O6W4XLGA.js} +2 -2
- package/client-dist/{chunk-D4MN4WBX.js → chunk-OEP5AH6P.js} +2 -2
- package/client-dist/{chunk-TKONBOQQ.js → chunk-P2DWOMGE.js} +2 -2
- package/client-dist/{chunk-ECVTQRJ7.js → chunk-PKJ7Y62N.js} +2 -2
- package/client-dist/{chunk-F5SAKHCX.js → chunk-QUTV6V23.js} +2 -2
- package/client-dist/{chunk-ZO5UJXHI.js → chunk-RE5XOANX.js} +2 -2
- package/client-dist/{chunk-K4ZQ4DD5.js → chunk-RM323G5Y.js} +2 -2
- package/client-dist/{chunk-BEGOF2N7.js → chunk-ROLVKMOV.js} +2 -2
- package/client-dist/{chunk-NEZJG3XV.js → chunk-SHWCVDPA.js} +2 -2
- package/client-dist/{chunk-QFCHFWGA.js → chunk-TC4ZWWYN.js} +2 -2
- package/client-dist/{chunk-STIDSZ7I.js → chunk-TRSQKYJ3.js} +2 -2
- package/client-dist/{chunk-VJEPWZGD.js → chunk-VA24IMJT.js} +2 -2
- package/client-dist/{chunk-GAQBLHO3.js → chunk-VGGHOZL3.js} +2 -2
- package/client-dist/{chunk-AX73SZY3.js → chunk-W3LVU52O.js} +2 -2
- package/client-dist/{chunk-65KI3GR5.js → chunk-WA3EVNKZ.js} +2 -2
- package/client-dist/{chunk-RXRE3G4K.js → chunk-WJQ3I2JP.js} +2 -2
- package/client-dist/{chunk-RXRE3G4K.js.map → chunk-WJQ3I2JP.js.map} +1 -1
- package/client-dist/{chunk-4XIUSDLS.js → chunk-ZB3FCA3E.js} +2 -2
- package/client-dist/{chunk-GAS7HMJI.js → chunk-ZKIPL7J4.js} +2 -2
- package/client-dist/{chunk-P3UG3XEN.js → chunk-ZXZYTEBK.js} +2 -2
- package/client-dist/{consultant.module-DMGMZCMM.js → consultant.module-YJXM54HJ.js} +2 -2
- package/client-dist/{crd.module-UY2I7Q6C.js → crd.module-WTDKZXIE.js} +2 -2
- package/client-dist/{dashboard.module-YAB6AARF.js → dashboard.module-NKQHPS5Q.js} +2 -2
- package/client-dist/{do.module-BQ4IIBCS.js → do.module-FNFK3G5K.js} +2 -2
- package/client-dist/{document-library.module-DDFSHADI.js → document-library.module-3P3ZFDV7.js} +2 -2
- package/client-dist/{embedding-eval.module-FJTNYACK.js → embedding-eval.module-WWIPZ3TY.js} +2 -2
- package/client-dist/{embedding-registry.module-Q7H4MSJI.js → embedding-registry.module-BO7LYJLR.js} +2 -2
- package/client-dist/{err.module-TEYGZOAQ.js → err.module-AKZYERWR.js} +2 -2
- package/client-dist/{feedback.module-46D4VD2U.js → feedback.module-QL52SIU3.js} +2 -2
- package/client-dist/{host-runtime-mcp.module-MOMBWPOG.js → host-runtime-mcp.module-WGN2WK3K.js} +2 -2
- package/client-dist/index.html +1 -1
- package/client-dist/{live-dev-pipeline.module-3ZZC7EDM.js → live-dev-pipeline.module-WHO3NH3W.js} +2 -2
- package/client-dist/{logs.module-CFTLPVNZ.js → logs.module-YAFAVQPS.js} +2 -2
- package/client-dist/{main-4A2EJGC7.js → main-IHO52LAW.js} +3 -3
- package/client-dist/{master-control-remote-poc.module-4NVA4X32.js → master-control-remote-poc.module-KGXVVQQM.js} +2 -2
- package/client-dist/{mobile-app.module-46TKS6V5.js → mobile-app.module-JTAPGOXX.js} +2 -2
- package/client-dist/{model-registry.module-L56ALPDT.js → model-registry.module-7ZYZ3XZ2.js} +2 -2
- package/client-dist/{oc.module-OTDAUU73.js → oc.module-CMKG3TIN.js} +2 -2
- package/client-dist/{orc.module-L6G3GB6S.js → orc.module-D5QH6N6Q.js} +2 -2
- package/client-dist/{project-management.module-U75UPDGP.js → project-management.module-EJLPHJD6.js} +2 -2
- package/client-dist/project-source-routed.module-2OY6I5WD.js +2 -0
- package/client-dist/{scheduler.module-V7JUED6T.js → scheduler.module-7IWANUWU.js} +2 -2
- package/client-dist/{session.module-CZCDYPUM.js → session.module-42CEXVHT.js} +2 -2
- package/client-dist/{set.module-XQ6TPATG.js → set.module-QXF6DZFG.js} +2 -2
- package/client-dist/{setup.module-M5RVUX4A.js → setup.module-4U42JK32.js} +2 -2
- package/client-dist/{terminals.module-LPJ4TLM7.js → terminals.module-RZXNECJ7.js} +2 -2
- package/client-dist/{voice-notes-poc.module-UXJM32VE.js → voice-notes-poc.module-TB6PFTCF.js} +2 -2
- package/client-dist/{wfs.module-UIBLZ4KZ.js → wfs.module-K3NJ47QV.js} +2 -2
- package/package.json +1 -1
- package/server/build/src/_modules/ai-systems/_modules/model-registry/_models/data-models/mrg-instance-registry.data-model.d.ts +6 -1
- package/server/build/src/_modules/ai-systems/_modules/model-registry/_models/data-models/mrg-instance-registry.data-model.d.ts.map +1 -1
- package/server/build/src/_modules/ai-systems/_modules/model-registry/_models/data-models/mrg-instance-registry.data-model.js +6 -1
- package/server/build/src/_modules/ai-systems/_modules/model-registry/_models/data-models/mrg-instance-registry.data-model.js.map +1 -1
- package/server/build/src/_modules/peer-instance/_services/pei-dispatch.control-service.d.ts.map +1 -1
- package/server/build/src/_modules/peer-instance/_services/pei-dispatch.control-service.js +14 -3
- package/server/build/src/_modules/peer-instance/_services/pei-dispatch.control-service.js.map +1 -1
- package/server/build/src/_modules/peer-instance/_services/pei-heartbeat.control-service.d.ts +3 -2
- package/server/build/src/_modules/peer-instance/_services/pei-heartbeat.control-service.d.ts.map +1 -1
- package/server/build/src/_modules/peer-instance/_services/pei-heartbeat.control-service.js +14 -9
- package/server/build/src/_modules/peer-instance/_services/pei-heartbeat.control-service.js.map +1 -1
- package/server/build/src/_modules/peer-instance/_services/pei-ws-client-active-reconnect.spec.js +18 -0
- package/server/build/src/_modules/peer-instance/_services/pei-ws-client-active-reconnect.spec.js.map +1 -1
- package/server/build/src/_modules/peer-instance/_services/pei-ws-client.control-service.d.ts +6 -0
- package/server/build/src/_modules/peer-instance/_services/pei-ws-client.control-service.d.ts.map +1 -1
- package/server/build/src/_modules/peer-instance/_services/pei-ws-client.control-service.js +13 -0
- package/server/build/src/_modules/peer-instance/_services/pei-ws-client.control-service.js.map +1 -1
- package/server/build/src/_modules/setup-config/_models/interfaces/cluster/sc-cluster-diagnostics-result.interface.d.ts +2 -2
- package/server/build/src/_modules/setup-config/_models/interfaces/cluster/sc-cluster-diagnostics-result.interface.d.ts.map +1 -1
- package/client-dist/project-source-routed.module-I4WHFL6T.js +0 -2
- /package/client-dist/{agent-instances.module-7JIOUWBV.js.map → agent-instances.module-RDNI5YIM.js.map} +0 -0
- /package/client-dist/{ca.module-6RTUEF6F.js.map → ca.module-DOSQOA3X.js.map} +0 -0
- /package/client-dist/{cc-usage-dashboard.component-MUE3JFHY.js.map → cc-usage-dashboard.component-QRHS53KB.js.map} +0 -0
- /package/client-dist/{cc.module-MNX3GMAU.js.map → cc.module-QHHXHWQG.js.map} +0 -0
- /package/client-dist/{chunk-N3TQEDBL.js.map → chunk-2NU642AU.js.map} +0 -0
- /package/client-dist/{chunk-ZQT44XRN.js.map → chunk-2TJTUYN7.js.map} +0 -0
- /package/client-dist/{chunk-GK3RSZLZ.js.map → chunk-32TKSQQ4.js.map} +0 -0
- /package/client-dist/{chunk-IOXSJK5R.js.map → chunk-357BATFQ.js.map} +0 -0
- /package/client-dist/{chunk-J6ZXTCHI.js.map → chunk-3L2A6OYA.js.map} +0 -0
- /package/client-dist/{chunk-VOITLR7O.js.map → chunk-3WAVQMV4.js.map} +0 -0
- /package/client-dist/{chunk-WDV7MFNU.js.map → chunk-5PH776OB.js.map} +0 -0
- /package/client-dist/{chunk-OSJXI65X.js.map → chunk-65TRXF6Q.js.map} +0 -0
- /package/client-dist/{chunk-MEDDAUB3.js.map → chunk-AOG3C4MB.js.map} +0 -0
- /package/client-dist/{chunk-UYLV7WAB.js.map → chunk-AVF5CZDZ.js.map} +0 -0
- /package/client-dist/{chunk-AAFXSEZA.js.map → chunk-BPXKOVJB.js.map} +0 -0
- /package/client-dist/{chunk-KVUL77OV.js.map → chunk-C5SF72NF.js.map} +0 -0
- /package/client-dist/{chunk-SE7LVQMB.js.map → chunk-CA2S6A5N.js.map} +0 -0
- /package/client-dist/{chunk-QSOEXUHP.js.map → chunk-CFMCTGZ2.js.map} +0 -0
- /package/client-dist/{chunk-U2WBKQML.js.map → chunk-CGYDBFFX.js.map} +0 -0
- /package/client-dist/{chunk-MUV3H7Z7.js.map → chunk-CQLAXUA5.js.map} +0 -0
- /package/client-dist/{chunk-K4GGODV4.js.map → chunk-D2YJ6ZB6.js.map} +0 -0
- /package/client-dist/{chunk-RL2M6DJN.js.map → chunk-DI2UBL2H.js.map} +0 -0
- /package/client-dist/{chunk-T2722QP4.js.map → chunk-ECCH2DHZ.js.map} +0 -0
- /package/client-dist/{chunk-4WYWBPHC.js.map → chunk-F3FKLFEZ.js.map} +0 -0
- /package/client-dist/{chunk-K35DOQT7.js.map → chunk-FLTRXJF5.js.map} +0 -0
- /package/client-dist/{chunk-UNNGLS4Y.js.map → chunk-GHCL3MSY.js.map} +0 -0
- /package/client-dist/{chunk-BM4UEP47.js.map → chunk-GIZQX4FZ.js.map} +0 -0
- /package/client-dist/{chunk-LZ2PMXWH.js.map → chunk-GJLKW7DM.js.map} +0 -0
- /package/client-dist/{chunk-E4TY6O3W.js.map → chunk-GQJGST2S.js.map} +0 -0
- /package/client-dist/{chunk-QEMJBYC2.js.map → chunk-HMKEVINB.js.map} +0 -0
- /package/client-dist/{chunk-PQVFWHXC.js.map → chunk-HQPGIGEE.js.map} +0 -0
- /package/client-dist/{chunk-XYNIZC5J.js.map → chunk-HWDURMDH.js.map} +0 -0
- /package/client-dist/{chunk-WKAKYIU5.js.map → chunk-JOP5IVM2.js.map} +0 -0
- /package/client-dist/{chunk-QB2UH3OX.js.map → chunk-K2LUZEU7.js.map} +0 -0
- /package/client-dist/{chunk-VY4R2KTU.js.map → chunk-K4J73VA4.js.map} +0 -0
- /package/client-dist/{chunk-UE4NDJOE.js.map → chunk-K5GHIIP6.js.map} +0 -0
- /package/client-dist/{chunk-IPLQJBDL.js.map → chunk-KRFIZINJ.js.map} +0 -0
- /package/client-dist/{chunk-UYNSNX4F.js.map → chunk-KZGPAAZC.js.map} +0 -0
- /package/client-dist/{chunk-N3AR5TZI.js.map → chunk-LSKYY36G.js.map} +0 -0
- /package/client-dist/{chunk-QJKK7MN2.js.map → chunk-MMOBWOV2.js.map} +0 -0
- /package/client-dist/{chunk-MBE24QTZ.js.map → chunk-MQGZMZG3.js.map} +0 -0
- /package/client-dist/{chunk-ZOWPV7TY.js.map → chunk-O6W4XLGA.js.map} +0 -0
- /package/client-dist/{chunk-D4MN4WBX.js.map → chunk-OEP5AH6P.js.map} +0 -0
- /package/client-dist/{chunk-TKONBOQQ.js.map → chunk-P2DWOMGE.js.map} +0 -0
- /package/client-dist/{chunk-ECVTQRJ7.js.map → chunk-PKJ7Y62N.js.map} +0 -0
- /package/client-dist/{chunk-F5SAKHCX.js.map → chunk-QUTV6V23.js.map} +0 -0
- /package/client-dist/{chunk-ZO5UJXHI.js.map → chunk-RE5XOANX.js.map} +0 -0
- /package/client-dist/{chunk-K4ZQ4DD5.js.map → chunk-RM323G5Y.js.map} +0 -0
- /package/client-dist/{chunk-BEGOF2N7.js.map → chunk-ROLVKMOV.js.map} +0 -0
- /package/client-dist/{chunk-NEZJG3XV.js.map → chunk-SHWCVDPA.js.map} +0 -0
- /package/client-dist/{chunk-QFCHFWGA.js.map → chunk-TC4ZWWYN.js.map} +0 -0
- /package/client-dist/{chunk-STIDSZ7I.js.map → chunk-TRSQKYJ3.js.map} +0 -0
- /package/client-dist/{chunk-VJEPWZGD.js.map → chunk-VA24IMJT.js.map} +0 -0
- /package/client-dist/{chunk-GAQBLHO3.js.map → chunk-VGGHOZL3.js.map} +0 -0
- /package/client-dist/{chunk-AX73SZY3.js.map → chunk-W3LVU52O.js.map} +0 -0
- /package/client-dist/{chunk-65KI3GR5.js.map → chunk-WA3EVNKZ.js.map} +0 -0
- /package/client-dist/{chunk-4XIUSDLS.js.map → chunk-ZB3FCA3E.js.map} +0 -0
- /package/client-dist/{chunk-GAS7HMJI.js.map → chunk-ZKIPL7J4.js.map} +0 -0
- /package/client-dist/{chunk-P3UG3XEN.js.map → chunk-ZXZYTEBK.js.map} +0 -0
- /package/client-dist/{consultant.module-DMGMZCMM.js.map → consultant.module-YJXM54HJ.js.map} +0 -0
- /package/client-dist/{crd.module-UY2I7Q6C.js.map → crd.module-WTDKZXIE.js.map} +0 -0
- /package/client-dist/{dashboard.module-YAB6AARF.js.map → dashboard.module-NKQHPS5Q.js.map} +0 -0
- /package/client-dist/{do.module-BQ4IIBCS.js.map → do.module-FNFK3G5K.js.map} +0 -0
- /package/client-dist/{document-library.module-DDFSHADI.js.map → document-library.module-3P3ZFDV7.js.map} +0 -0
- /package/client-dist/{embedding-eval.module-FJTNYACK.js.map → embedding-eval.module-WWIPZ3TY.js.map} +0 -0
- /package/client-dist/{embedding-registry.module-Q7H4MSJI.js.map → embedding-registry.module-BO7LYJLR.js.map} +0 -0
- /package/client-dist/{err.module-TEYGZOAQ.js.map → err.module-AKZYERWR.js.map} +0 -0
- /package/client-dist/{feedback.module-46D4VD2U.js.map → feedback.module-QL52SIU3.js.map} +0 -0
- /package/client-dist/{host-runtime-mcp.module-MOMBWPOG.js.map → host-runtime-mcp.module-WGN2WK3K.js.map} +0 -0
- /package/client-dist/{live-dev-pipeline.module-3ZZC7EDM.js.map → live-dev-pipeline.module-WHO3NH3W.js.map} +0 -0
- /package/client-dist/{logs.module-CFTLPVNZ.js.map → logs.module-YAFAVQPS.js.map} +0 -0
- /package/client-dist/{main-4A2EJGC7.js.map → main-IHO52LAW.js.map} +0 -0
- /package/client-dist/{master-control-remote-poc.module-4NVA4X32.js.map → master-control-remote-poc.module-KGXVVQQM.js.map} +0 -0
- /package/client-dist/{mobile-app.module-46TKS6V5.js.map → mobile-app.module-JTAPGOXX.js.map} +0 -0
- /package/client-dist/{model-registry.module-L56ALPDT.js.map → model-registry.module-7ZYZ3XZ2.js.map} +0 -0
- /package/client-dist/{oc.module-OTDAUU73.js.map → oc.module-CMKG3TIN.js.map} +0 -0
- /package/client-dist/{orc.module-L6G3GB6S.js.map → orc.module-D5QH6N6Q.js.map} +0 -0
- /package/client-dist/{project-management.module-U75UPDGP.js.map → project-management.module-EJLPHJD6.js.map} +0 -0
- /package/client-dist/{project-source-routed.module-I4WHFL6T.js.map → project-source-routed.module-2OY6I5WD.js.map} +0 -0
- /package/client-dist/{scheduler.module-V7JUED6T.js.map → scheduler.module-7IWANUWU.js.map} +0 -0
- /package/client-dist/{session.module-CZCDYPUM.js.map → session.module-42CEXVHT.js.map} +0 -0
- /package/client-dist/{set.module-XQ6TPATG.js.map → set.module-QXF6DZFG.js.map} +0 -0
- /package/client-dist/{setup.module-M5RVUX4A.js.map → setup.module-4U42JK32.js.map} +0 -0
- /package/client-dist/{terminals.module-LPJ4TLM7.js.map → terminals.module-RZXNECJ7.js.map} +0 -0
- /package/client-dist/{voice-notes-poc.module-UXJM32VE.js.map → voice-notes-poc.module-TB6PFTCF.js.map} +0 -0
- /package/client-dist/{wfs.module-UIBLZ4KZ.js.map → wfs.module-K3NJ47QV.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{a as we,b as Ct}from"./chunk-P3UG3XEN.js";import{e as Dn}from"./chunk-K4GGODV4.js";import{a as ht}from"./chunk-MEDDAUB3.js";import{a as An,b as $n}from"./chunk-4XIUSDLS.js";import{a as $e}from"./chunk-MBE24QTZ.js";import{a as ft}from"./chunk-Z4OXAMEA.js";import{a as oe}from"./chunk-YRVQSWSZ.js";import{a as gn}from"./chunk-VJEPWZGD.js";import{a as rn,c as Pe}from"./chunk-F5SAKHCX.js";import"./chunk-SE7LVQMB.js";import{b as En}from"./chunk-GAS7HMJI.js";import"./chunk-KVUL77OV.js";import"./chunk-WKAKYIU5.js";import{a as kn}from"./chunk-QB2UH3OX.js";import{a as In}from"./chunk-U2WBKQML.js";import{a as wn}from"./chunk-T2722QP4.js";import"./chunk-GK3RSZLZ.js";import{a as Sn}from"./chunk-ECVTQRJ7.js";import{a as bn,b as yn}from"./chunk-UYNSNX4F.js";import{b as vn}from"./chunk-WDV7MFNU.js";import"./chunk-VOITLR7O.js";import"./chunk-UFBTR2BG.js";import"./chunk-ZO5UJXHI.js";import"./chunk-VY4R2KTU.js";import"./chunk-BEGOF2N7.js";import{a as Pn,c as Mn}from"./chunk-N3TQEDBL.js";import"./chunk-E4TY6O3W.js";import"./chunk-N3AR5TZI.js";import"./chunk-UNNGLS4Y.js";import{a as Tn}from"./chunk-QSOEXUHP.js";import"./chunk-NEZJG3XV.js";import"./chunk-J6ZXTCHI.js";import"./chunk-V3VQWJQL.js";import{d as Be,e as mt}from"./chunk-AAFXSEZA.js";import{a as Ae}from"./chunk-FLAJXIYW.js";import{b as ct,c as ce,f as de,i as pe,k as dn,n as dt,o as pt,p as ut,q as pn,r as un,t as _n,v as te}from"./chunk-EO4DNTT4.js";import{a as mn,b as Pt,c as Te,d as je,e as Qe,g as Cn,h as fn,i as G,k as ie}from"./chunk-D4MN4WBX.js";import{a as H}from"./chunk-5UPNU54P.js";import{i as xn,j as ne}from"./chunk-XYNIZC5J.js";import{A as _t,B as Ee,C as ue,I as B,N as hn,p as Ne,w as $t,z as fe}from"./chunk-RXRE3G4K.js";import{$a as ke,Aa as Fe,Ab as nn,Ba as Le,Bb as on,C as y,D as R,Db as an,E as Ke,Fa as c,Fb as sn,Ga as P,Gb as st,Ha as E,Hb as lt,Ia as ae,Ib as ln,J as f,Jb as cn,K as h,Kb as Ce,L as k,M as $,Ma as nt,Na as it,O as Xe,Oa as ot,P as Ht,Q as me,S as Ze,Ta as U,U as qt,Ua as Yt,V as ve,Va as ye,Wa as rt,Xa as Kt,Y as Wt,Z as l,a as Y,aa as S,ab as Xt,b as se,bb as Ve,ca as Gt,da as C,ea as Je,fa as q,ga as _,h as Ue,ha as et,hb as v,ia as O,jb as W,k as A,la as u,mb as le,na as tt,nb as Ie,o as Qt,oa as V,p as Se,pa as N,pb as at,qa as o,ra as r,sa as b,t as Bt,u as zt,ua as I,ub as j,va as m,wa as d,wb as Zt,xb as Jt,y as ee,yb as en,z as Ye,za as Oe,zb as tn}from"./chunk-TBMJSIBB.js";var wt=Ue(Ne());var Rn=Ue(Ne());var Un=(()=>{class t{socket_CS=y(mt);presence_DS=y(bn);subscription=null;initialize(){this.subscription||(this.subscription=this.socket_CS.event$.subscribe(e=>{e.event==="instance:presence-update"&&this.presence_DS.refreshNow().catch(n=>{Rn.DyFM_Log.warn(`[CCAP] ExS_InstancePresenceSubscriber_CS: refreshNow failed (non-fatal): ${n instanceof Error?n.message:String(n)}`)})}))}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yi(t,a){if(t&1&&(o(0,"span",7),c(1),r()),t&2){let e=d(2);_("title",e.updater_CS.lastError_$()),l(),E(" ",e.updater_CS.lastError_$()," ")}}function ki(t,a){if(t&1){let e=I();o(0,"div",0)(1,"div",1),b(2,"span",2),o(3,"span",3),c(4," \xDAj app verzi\xF3 el\xE9rhet\u0151: "),o(5,"span",4),c(6),r(),o(7,"span",5),c(8),r()()(),o(9,"div",6),C(10,yi,2,2,"span",7),o(11,"button",8),m("click",function(){f(e);let i=d();return h(i.handleInstall())}),c(12),r()()()}if(t&2){let e=d();l(6),E("v",e.versionCheck_CS.latestPackageVersion_$(),""),l(2),E(" (jelenleg v",e.currentVersion,")"),l(2),u(e.updater_CS.lastError_$()?10:-1),l(),_("disabled",e.isInstallDisabled_$()),l(),E(" ",e.installButtonLabel_$()," ")}}var On=(()=>{class t{versionCheck_CS=y(vn);updater_CS=y(Ct);currentVersion=B.version;installButtonLabel_$=v(()=>{let e=this.updater_CS.phase_$();return e===we.downloading?"Let\xF6lt\xE9s\u2026":e===we.installing?"Telep\xEDt\xE9s\u2026":e===we.failed?"\xDAjra pr\xF3b\xE1l\xE1s":"Telep\xEDt\xE9s"});isInstallDisabled_$=v(()=>{let e=this.updater_CS.phase_$();return e===we.downloading||e===we.installing});handleInstall(){this.updater_CS.startUpdate()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-app-update-banner"]],standalone:!0,features:[U],decls:1,vars:1,consts:[[1,"shrink-0","border-b","border-ccapAccent/40","bg-ccapAccent/10","px-3","py-2","text-sm","text-neutral-200","flex","flex-wrap","items-center","justify-between","gap-2"],[1,"flex","items-center","gap-2","min-w-0"],["aria-hidden","true",1,"inline-block","w-2","h-2","rounded-full","bg-ccapAccent","animate-pulse","shrink-0"],[1,"truncate"],[1,"font-mono"],[1,"text-neutral-400"],[1,"flex","items-center","gap-2","shrink-0"],[1,"text-xs","text-red-400","max-w-[200px]","truncate",3,"title"],["type","button",1,"rounded-md","border","border-ccapAccent/60","bg-ccapAccent/15","px-3","py-1","text-xs","font-medium","text-ccapAccent","hover:bg-ccapAccent/25","disabled:opacity-40","disabled:cursor-not-allowed","transition-colors",3,"click","disabled"]],template:function(n,i){n&1&&C(0,ki,13,5,"div",0),n&2&&u(i.versionCheck_CS.updateAvailable_$()?0:-1)},encapsulation:2,changeDetection:0})}return t})();function Ii(t,a){t&1&&(b(0,"span",9),c(1," Friss\xEDt\xE9s ind\xEDt\xE1sa\u2026 "))}function Ti(t,a){t&1&&c(0," \u23F3 Server \xFAjraindul\u2026 ")}function Ei(t,a){t&1&&c(0," \u{1F504} Friss\xEDt\xE9s most ")}function wi(t,a){t&1&&(o(0,"p",6),c(1," \u26A0 Friss\xEDt\xE9s hiba: "),o(2,"span",10),c(3),r()()),t&2&&(l(3),P(a))}function Ai(t,a){if(t&1&&c(0),t&2){let e=d();E(" \u2713 ",e.message," ")}}function Pi(t,a){if(t&1&&c(0),t&2){let e=d();E(" \u2139 ",e.message," ")}}function $i(t,a){if(t&1&&c(0),t&2){let e=d();E(" \u26A0 ",e.message," ")}}function Mi(t,a){if(t&1&&(o(0,"p",11),C(1,Ai,1,1)(2,Pi,1,1)(3,$i,1,1),r()),t&2){let e=a;l(),u(e.status==="started"?1:e.status==="already-latest"?2:3)}}function Di(t,a){if(t&1&&C(0,Mi,4,1,"p",11),t&2){let e,n=d(3);u((e=n.versionInfo_DS.triggerResult_$())?0:-1,e)}}function Ri(t,a){t&1&&(o(0,"p",7),b(1,"span",12),c(2," V\xE1rakoz\xE1s a server visszaj\xF6vetel\xE9re (max 90s)\u2026 "),r())}function Ui(t,a){if(t&1&&(o(0,"p",8),c(1," \u2705 Friss\xEDtve "),o(2,"span",10),c(3),r(),c(4," \u2192 "),o(5,"span",10),c(6),r(),c(7," \u2014 oldal \xFAjrat\xF6lt\xE9se 5s m\xFAlva\u2026 "),r()),t&2){let e=a;l(3),E("v",e.oldVersion,""),l(3),E("v",e.newVersion,"")}}function Oi(t,a){t&1&&(o(0,"p",6),c(1," \u26A0 A friss\xEDt\xE9s 90s alatt nem fejez\u0151d\xF6tt be. Ellen\u0151rizd a server logot ("),o(2,"span",10),c(3,"~/.ccap/server.log"),r(),c(4,") vagy futtasd manu\xE1lisan: "),o(5,"span",13),c(6,"ccap --version"),r(),c(7,". "),r())}function Fi(t,a){if(t&1){let e=I();o(0,"div",0)(1,"span",1),c(2," UPDATE "),r(),o(3,"span",2),c(4),r(),o(5,"button",3),m("click",function(){f(e);let i=d(2);return h(i.handleTriggerUpdate())}),C(6,Ii,2,0)(7,Ti,1,0)(8,Ei,1,0),r(),o(9,"a",4),c(10," Settings "),r(),o(11,"button",5),m("click",function(){f(e);let i=d(2);return h(i.handleDismiss())}),c(12," \u2715 "),r(),C(13,wi,4,1,"p",6)(14,Di,1,1)(15,Ri,3,0,"p",7)(16,Ui,8,2,"p",8)(17,Oi,8,0,"p",6),r()}if(t&2){let e,n,i,s,p=d(),x=d();l(4),ae(" Server elavult: v",p.serverVersion," \u2192 v",p.npmLatestVersion,". "),l(),_("disabled",x.versionInfo_DS.triggering_$()||((e=x.versionInfo_DS.triggerResult_$())==null?null:e.status)==="started"),l(),u(x.versionInfo_DS.triggering_$()?6:((n=x.versionInfo_DS.triggerResult_$())==null?null:n.status)==="started"?7:8),l(7),u((i=x.versionInfo_DS.triggerError_$())?13:14,i),l(2),u(x.versionInfo_DS.pollingPostUpdate_$()?15:-1),l(),u((s=x.versionInfo_DS.triggerSucceeded_$())?16:-1,s),l(),u(x.versionInfo_DS.triggerTimedOut_$()?17:-1)}}function Li(t,a){if(t&1&&C(0,Fi,18,8,"div",0),t&2){let e=d();u(!e.dismissed_$()&&a.serverIsOutdated?0:-1)}}var Fn=(()=>{class t{versionInfo_DS=y(yn);dismissed_$=S(!1);ngOnInit(){this.versionInfo_DS.loadVersionInfo()}handleDismiss(){this.dismissed_$.set(!0)}handleTriggerUpdate(){return A(this,null,function*(){yield this.versionInfo_DS.triggerUpdate()})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-server-update-banner"]],standalone:!0,features:[U],decls:1,vars:1,consts:[[1,"relative","w-full","px-3","py-2","gt-xs:px-4","gt-xs:py-3","bg-amber-950/95","border-b","border-amber-700","text-amber-100","shadow-lg","flex","flex-wrap","items-center","gap-2","gt-xs:gap-3","text-xs","gt-xs:text-sm"],[1,"px-1.5","py-0.5","text-[10px]","uppercase","font-mono","tracking-wider","bg-amber-600","text-amber-950","rounded","shrink-0"],[1,"font-medium"],["type","button",1,"px-3","py-1.5","rounded","border","border-amber-400","bg-amber-700/40","text-amber-50","hover:bg-amber-600/60","hover:shadow-neon-glow-amber","transition-colors","duration-200","disabled:opacity-50","disabled:cursor-not-allowed","font-medium","shrink-0",3,"click","disabled"],["routerLink","/settings",1,"ml-auto","px-2","py-1","text-amber-200","hover:bg-amber-900/40","rounded","transition-colors","shrink-0"],["type","button","aria-label","Banner elrejt\xE9se",1,"px-2","py-1","text-amber-300","hover:bg-amber-900/40","rounded","transition-colors","shrink-0",3,"click"],[1,"basis-full","text-rose-300","text-xs","mt-1"],[1,"basis-full","text-amber-300","text-xs","mt-1","italic"],[1,"basis-full","text-emerald-300","text-xs","mt-1","font-semibold"],[1,"inline-block","w-3","h-3","mr-2","align-middle","border-2","border-amber-200/40","border-t-amber-100","rounded-full","animate-spin"],[1,"font-mono"],[1,"basis-full","text-amber-200","text-xs","mt-1"],[1,"inline-block","w-3","h-3","mr-1","align-middle","border-2","border-amber-300/40","border-t-amber-200","rounded-full","animate-spin"],[1,"font-mono","select-all"]],template:function(n,i){if(n&1&&C(0,Li,1,1),n&2){let s;u((s=i.versionInfo_DS.versionInfo_$())?0:-1,s)}},dependencies:[lt],encapsulation:2})}return t})();var Vi=(t,a)=>a.id;function Ni(t,a){if(t&1){let e=I();o(0,"div",4),m("click",function(){let i=f(e).$implicit,s=d(2);return h(s.selectError(i.id))}),b(1,"span",5),o(2,"span",6),c(3),r(),o(4,"button",7),m("click",function(i){let s=f(e).$implicit,p=d(2);return h(p.dismissNotification(i,s.id))}),k(),o(5,"svg",8),b(6,"path",9),r()()()}if(t&2){let e=a.$implicit;O("animate-slide-in-left",!e.isDismissing)("animate-slide-out-left",e.isDismissing),l(3),P(e.displayMessage)}}function ji(t,a){if(t&1&&(o(0,"div",0),V(1,Ni,7,5,"div",3,Vi),r()),t&2){let e=d();l(),N(e.globalError_CS.errors_$())}}var Ln=(()=>{class t{globalError_CS=y(ne);userInput_DS=y(G);constructor(){W(()=>{this.globalError_CS.selectedNotificationForModal_$()!==null?this.userInput_DS.pushQuickInputOverlayAreaContextByOverlayId(je.globalErrorDetailModal):this.userInput_DS.popQuickInputOverlayAreaContext(je.globalErrorDetailModal)},{allowSignalWrites:!0})}selectError(e){this.globalError_CS.selectError(e)}dismissNotification(e,n){e.stopPropagation(),this.globalError_CS.dismissNotification(n)}dismissSelected(){this.globalError_CS.dismissSelected()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-error-popup"]],standalone:!0,features:[U],decls:3,vars:12,consts:[[1,"absolute","top-3","left-3","z-50","flex","flex-col","gap-2","max-w-md","sm:max-w-lg","pointer-events-auto"],[3,"closed","isOpen","maxWidth","zIndex","backdropOpacity","headerBorderClass","closeOnBackdropClick","bodyFlexColumn"],[3,"error","errorClientSource","ng0600Diagnostics","ng0203Diagnostics"],["title","Kattint\xE1s a r\xE9szletek\xE9rt",1,"flex","items-center","gap-2","pl-3","pr-1.5","py-2","rounded-lg","border","border-neonRed/60","bg-neutral-800/95","shadow-lg","cursor-pointer","hover:border-neonRed","hover:bg-neutral-700/95","transition-colors","duration-150","backdrop-blur-sm",3,"animate-slide-in-left","animate-slide-out-left"],["title","Kattint\xE1s a r\xE9szletek\xE9rt",1,"flex","items-center","gap-2","pl-3","pr-1.5","py-2","rounded-lg","border","border-neonRed/60","bg-neutral-800/95","shadow-lg","cursor-pointer","hover:border-neonRed","hover:bg-neutral-700/95","transition-colors","duration-150","backdrop-blur-sm",3,"click"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-red-500","shrink-0","animate-pulse"],[1,"text-sm","text-red-300","flex-1","select-none","line-clamp-4","break-words","leading-snug","text-left"],["type","button","title","Bez\xE1r\xE1s","aria-label","\xC9rtes\xEDt\xE9s bez\xE1r\xE1sa",1,"p-1","rounded","text-neutral-500","hover:text-white","hover:bg-neutral-600","transition-colors","duration-150","shrink-0",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-3.5","h-3.5"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"]],template:function(n,i){if(n&1&&(C(0,ji,3,0,"div",0),o(1,"app-s-modal",1),m("closed",function(){return i.dismissSelected()}),b(2,"app-ccap-error-display",2),r()),n&2){let s,p,x,g;u(i.globalError_CS.errors_$().length>0?0:-1),l(),_("isOpen",!!i.globalError_CS.selectedNotificationForModal_$())("maxWidth","3xl")("zIndex","9999")("backdropOpacity","70")("headerBorderClass","border-neonRed/50")("closeOnBackdropClick",!1)("bodyFlexColumn",!0),l(),_("error",(s=(s=i.globalError_CS.selectedNotificationForModal_$())==null?null:s.error)!==null&&s!==void 0?s:null)("errorClientSource",(p=i.globalError_CS.selectedNotificationForModal_$())==null?null:p.clientSource)("ng0600Diagnostics",(x=(x=i.globalError_CS.selectedNotificationForModal_$())==null?null:x.ng0600Diagnostics)!==null&&x!==void 0?x:null)("ng0203Diagnostics",(g=(g=i.globalError_CS.selectedNotificationForModal_$())==null?null:g.ng0203Diagnostics)!==null&&g!==void 0?g:null)}},dependencies:[j,ie,Ae],encapsulation:2})}return t})();var Me=class{static probeServer(a){return A(this,null,function*(){let e=a.replace(/\/$/,"")+"/api/server/status",n=Date.now(),i=new Date().toISOString(),s=new AbortController,p=setTimeout(()=>{s.abort()},8e3);try{let x=yield fetch(e,{method:"GET",signal:s.signal,cache:"no-store"});clearTimeout(p);let g=Date.now()-n,T="";try{let D=yield x.text();T=D.length>500?D.slice(0,500)+"\u2026":D}catch{T="(could not read body)"}let w=x.ok,M=w?void 0:`HTTP ${x.status} \u2014 server responded but not OK`,F={targetUrl:e,isSuccess:w,httpStatus:x.status,httpStatusText:x.statusText,responseBodyPreview:T,errorCategory:M,durationMs:g,timestamp:i};return w||(F.errorForDisplay=this.buildErrorForDisplay(F)),F}catch(x){clearTimeout(p);let g=Date.now()-n,T=x instanceof Error?x.name:"unknown",w=x instanceof Error?x.message:String(x),M={targetUrl:e,isSuccess:!1,errorName:T,errorMessage:w,errorCategory:this.categorizeError(T,w),durationMs:g,timestamp:i};return M.errorForDisplay=this.buildErrorForDisplay(M),M}})}static buildErrorForDisplay(a){let e=a.errorCategory??a.errorMessage??`HTTP ${a.httpStatus??"?"}`,n=this.pickErrorCode(a),i={targetUrl:a.targetUrl,durationMs:a.durationMs,timestamp:a.timestamp};return a.httpStatus!==void 0&&(i.httpStatus=a.httpStatus),a.httpStatusText&&(i.httpStatusText=a.httpStatusText),a.responseBodyPreview&&(i.responseBodyPreview=a.responseBodyPreview),a.errorName&&(i.errorName=a.errorName),a.errorMessage&&(i.errorMessage=a.errorMessage),{message:e,errorCode:n,additionalContent:i}}static pickErrorCode(a){return a.errorName==="AbortError"?"CCAP-NET-FETCH-TIMEOUT":a.errorName==="TypeError"?"CCAP-NET-FETCH-FAILED":a.errorName==="SyntaxError"?"CCAP-NET-RESPONSE-NOT-JSON":a.httpStatus!==void 0?`CCAP-NET-HTTP-${a.httpStatus}`:"CCAP-NET-UNKNOWN"}static categorizeError(a,e){let n=e.toLowerCase();return a==="AbortError"?"Timeout (>8000ms) \u2014 szerver nem v\xE1laszolt id\u0151ben. Gyakori ok: firewall, blokkolt port, rossz IP.":a==="TypeError"&&n.includes("failed to fetch")?"Network failure \u2014 a b\xF6ng\xE9sz\u0151 nem tud csatlakozni a szerverhez. Lehets\xE9ges okok: szerver nem fut a megadott IP-n, t\u0171zfal blokkolja a portot, WiFi router client-isolation, vagy mobile data-n vagy (nem LAN-on).":n.includes("ssl")||n.includes("certificate")||n.includes("cert")?"SSL / TLS cert error \u2014 self-signed cert-et nem fogad el az Android network stack. Kapcsold ki a HTTPS-t (HTTP-re v\xE1lts), vagy telep\xEDtsd a cert-et a device trust store-ba.":n.includes("cors")?"CORS policy blokkolja a k\xE9r\xE9st. Szerveren kell enged\xE9lyezni az origin-t. (CCAP szerver `origin: true`-val engedi \u2014 ez furcsa, ha m\xE9gis CORS hib\xE1t kapsz.)":n.includes("refused")||n.includes("econnrefused")?"Connection refused \u2014 az IP v\xE1laszol, de a port nem fut (szerver nincs, vagy m\xE1s port).":n.includes("unreachable")||n.includes("ehostunreach")?"Host unreachable \u2014 az IP c\xEDm nem \xE9rhet\u0151 el a h\xE1l\xF3zatr\xF3l (rossz h\xE1l\xF3zat, routing hiba, vagy offline).":n.includes("dns")||n.includes("name")||n.includes("resolve")?"DNS / name resolution fail \u2014 az IP/hostname nem feloldhat\xF3.":a==="SyntaxError"?"A v\xE1lasz nem JSON \u2014 lehet, hogy HTTP-n egy HTTPS-only szervert h\xEDvtunk (redirect / HTML error page), vagy a szerver nem a v\xE1rt tartalmat adja.":`Unknown error (${a}) \u2014 l\xE1sd az error \xFCzenetet.`}};function Qi(t,a){t&1&&(o(0,"div",14)(1,"strong",19),c(2,"HTTPS figyelmeztet\xE9s:"),r(),c(3," self-signed cert-et a rendszer nem trust-olja automatikusan. HTTPS-sel csak akkor m\u0171k\xF6dik, ha a szerver cert-je: "),o(4,"ul",20)(5,"li"),c(6,"\xE9rv\xE9nyes publikus CA-t\xF3l (pl. Let's Encrypt), VAGY"),r(),o(7,"li"),c(8,"manu\xE1lisan telep\xEDtve van a device trust store-j\xE1ba (Settings \u2192 Security \u2192 Install cert from storage)"),r()(),c(9," Ha nem biztos, hagyd kikapcsolva (HTTP) \u2014 a LAN-on HTTP alap\xE9rtelmezetten m\u0171k\xF6dik. "),r())}function Bi(t,a){if(t&1&&(o(0,"div",15)(1,"span",21),c(2,"Connection URL:"),r(),o(3,"p",22),c(4),r()()),t&2){let e=d(2);l(4),E(" ",e.previewUrl_$()," ")}}function zi(t,a){if(t&1&&(o(0,"div",23)(1,"div",25),c(2,"\u2713 Szerver el\xE9rhet\u0151"),r(),o(3,"div",26),c(4),r()()),t&2){let e=d();l(4),ae(" GET ",e.targetUrl," \u2014 ",e.durationMs,"ms ")}}function Hi(t,a){if(t&1&&(o(0,"div",24),b(1,"app-ccap-error-display",27),r()),t&2){let e=d();l(),_("error",e.errorForDisplay)}}function qi(t,a){if(t&1&&C(0,zi,5,2,"div",23)(1,Hi,2,1,"div",24),t&2){let e=a;u(e.isSuccess?0:e.errorForDisplay?1:-1)}}function Wi(t,a){t&1&&c(0," Teszt\u2026 ")}function Gi(t,a){t&1&&c(0," Kapcsolat teszt ")}function Yi(t,a){if(t&1){let e=I();o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),c(4," Server connection setup "),r()(),o(5,"div",4)(6,"p",5),c(7," Enter the IP address of the CCAP server to connect. "),r(),o(8,"div",6)(9,"label",7),c(10," Server IP address "),r(),o(11,"input",8),m("ngModelChange",function(i){f(e);let s=d();return h(s.ipAddress_$.set(i))}),r()(),o(12,"div",6)(13,"label",9),c(14," Port "),r(),o(15,"input",10),m("ngModelChange",function(i){f(e);let s=d();return h(s.port_$.set(i))}),r()(),o(16,"div",11)(17,"input",12),m("ngModelChange",function(i){f(e);let s=d();return h(s.handleHttpsToggle(i))}),r(),o(18,"label",13),c(19," Use HTTPS "),r()(),C(20,Qi,10,0,"div",14)(21,Bi,5,1,"div",15),r(),C(22,qi,2,1),o(23,"div",16)(24,"button",17),m("click",function(){f(e);let i=d();return h(i.handleTestConnection())}),C(25,Wi,1,0)(26,Gi,1,0),r(),o(27,"button",18),m("click",function(){f(e);let i=d();return h(i.handleSave())}),c(28," Connect "),r()()()()}if(t&2){let e,n=d();l(11),_("ngModel",n.ipAddress_$()),l(4),_("ngModel",n.port_$()),l(2),_("ngModel",n.isHttps_$()),l(3),u(n.isHttps_$()?20:-1),l(),u(n.previewUrl_$()?21:-1),l(),u((e=n.diagnosticResult_$())?22:-1,e),l(2),_("disabled",n.isSaveDisabled_$()||n.isTestingConnection_$()),l(),u(n.isTestingConnection_$()?25:26),l(2),_("disabled",n.isSaveDisabled_$())}}var Vn="ccap-server-url",Mt=39050,Nn=39051;function Ki(){return typeof window.Capacitor<"u"&&window.Capacitor.isNativePlatform?.()===!0}var jn=(()=>{class t{isVisible_$=S(Ki()&&!H.readString(Vn));ipAddress_$=S("");port_$=S(Mt);isHttps_$=S(!1);handleHttpsToggle(e){let n=this.port_$();this.isHttps_$.set(e),e&&n===Mt?this.port_$.set(Nn):!e&&n===Nn&&this.port_$.set(Mt)}previewUrl_$=v(()=>{let e=this.isHttps_$()?"https":"http",n=this.ipAddress_$().trim(),i=this.port_$();return n?`${e}://${n}:${i}`:""});isSaveDisabled_$=v(()=>!this.ipAddress_$().trim());isTestingConnection_$=S(!1);diagnosticResult_$=S(null);handleTestConnection(){return A(this,null,function*(){let e=this.previewUrl_$();if(!(!e||this.isTestingConnection_$())){this.isTestingConnection_$.set(!0),this.diagnosticResult_$.set(null);try{let n=yield Me.probeServer(e);this.diagnosticResult_$.set(n)}finally{this.isTestingConnection_$.set(!1)}}})}handleSave(){let e=this.previewUrl_$();!e||!H.writeString(Vn,e)||this.reloadApplication()}reloadApplication(){window.location.reload()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-mobile-server-setup"]],standalone:!0,features:[U],decls:1,vars:1,consts:[[1,"fixed","inset-0","z-[9999]","flex","items-center","justify-center","bg-black/80","p-4"],["role","dialog","aria-labelledby","mobile-setup-title",1,"relative","w-[95vw]","max-w-md","rounded-lg","border-2","border-neonCyan/40","bg-neutral-900","shadow-xl","flex","flex-col","overflow-hidden"],[1,"flex","items-center","px-4","py-3","border-b","border-neonCyan/40","shrink-0"],["id","mobile-setup-title",1,"text-sm","font-semibold","text-neutral-200"],[1,"flex-1","min-h-0","overflow-y-auto","p-4","flex","flex-col","gap-4"],[1,"text-sm","text-neutral-400"],[1,"flex","flex-col","gap-1"],["for","mobile-setup-ip",1,"text-xs","font-medium","text-neutral-300"],["id","mobile-setup-ip","type","text","inputmode","decimal","autocomplete","off","placeholder","192.168.1.100",1,"w-full","rounded-md","border","border-neutral-600","bg-neutral-800","px-3","py-2","text-sm","text-neutral-100","placeholder:text-neutral-500","focus:border-neonCyan","focus:outline-none","focus:ring-1","focus:ring-neonCyan",3,"ngModelChange","ngModel"],["for","mobile-setup-port",1,"text-xs","font-medium","text-neutral-300"],["id","mobile-setup-port","type","number","min","1","max","65535",1,"w-full","rounded-md","border","border-neutral-600","bg-neutral-800","px-3","py-2","text-sm","text-neutral-100","focus:border-neonCyan","focus:outline-none","focus:ring-1","focus:ring-neonCyan",3,"ngModelChange","ngModel"],[1,"flex","items-center","gap-2"],["id","mobile-setup-https","type","checkbox",1,"h-4","w-4","rounded","border-neutral-600","bg-neutral-800","text-neonCyan","focus:ring-neonCyan","focus:ring-offset-neutral-900",3,"ngModelChange","ngModel"],["for","mobile-setup-https",1,"text-sm","text-neutral-300"],[1,"rounded-md","border","border-amber-500/50","bg-amber-500/10","px-3","py-2","text-xs","text-amber-200"],[1,"rounded-md","border","border-neutral-700","bg-neutral-800/60","px-3","py-2"],[1,"flex","justify-between","gap-2","px-4","py-3","border-t","border-neutral-700","shrink-0"],["type","button",1,"rounded-md","border","border-neutral-600","bg-neutral-800","px-3","py-2","text-sm","font-medium","text-neutral-200","hover:bg-neutral-700","disabled:opacity-40","disabled:cursor-not-allowed","transition-colors",3,"click","disabled"],["type","button",1,"rounded-md","border","border-neonCyan/60","bg-neonCyan/15","px-4","py-2","text-sm","font-medium","text-neonCyan","hover:bg-neonCyan/25","disabled:opacity-40","disabled:cursor-not-allowed","transition-colors",3,"click","disabled"],[1,"font-semibold"],[1,"list-disc","list-inside","mt-1","space-y-0.5","text-amber-200/80"],[1,"text-xs","text-neutral-500"],[1,"text-sm","text-neonCyan","font-mono","break-all","mt-0.5"],[1,"mx-4","mb-2","rounded-md","border","border-emerald-500/60","bg-emerald-500/10","px-3","py-2","text-xs","text-emerald-200"],[1,"mx-4","mb-2"],[1,"font-semibold","mb-1"],[1,"font-mono","text-[10px]","text-neutral-400","break-all"],["sourceLabelOverride","Kapcsolat teszt",3,"error"]],template:function(n,i){n&1&&C(0,Yi,29,9,"div",0),n&2&&u(i.isVisible_$()?0:-1)},dependencies:[j,te,ce,dn,ct,de,un,pn,pe,ie],encapsulation:2,changeDetection:0})}return t})();var Qn=(()=>{class t{panels_$=S([]);closedPanels_$=v(()=>this.panels_$().filter(n=>!n.isOpen).map(n=>({id:n.id,label:n.label,icon:n.icon,open:n.open})));closedPanelsLeft_$=v(()=>this.closedPanels_$().filter(e=>this.getPanelSide(e.id)==="left"));closedPanelsRight_$=v(()=>this.closedPanels_$().filter(e=>this.getPanelSide(e.id)==="right"));register(e){let n={id:e.id,label:e.label,icon:e.icon,side:e.side??"left",isOpen:e.isOpen,open:e.open};this.panels_$.update(i=>{let s=i.filter(p=>p.id!==e.id);return s.push(n),s})}getPanelSide(e){return this.panels_$().find(i=>i.id===e)?.side??"left"}unregister(e){this.panels_$.update(n=>n.filter(i=>i.id!==e))}updatePanelState(e,n){this.panels_$.update(i=>i.map(s=>s.id===e?se(Y({},s),{isOpen:n}):s))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Xi(){let t=window;return t.Capacitor!==void 0&&t.Capacitor.isNativePlatform?.()===!0}function Zi(t){let a=0;for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);a=(a<<5)-a+n,a=a|0}return Math.abs(a)}var xt=(()=>{class t{notification_DS=y(bt);isInitialized=!1;localNotificationsPlugin=null;initialize(){return A(this,null,function*(){if(!(this.isInitialized||!Xi())){this.isInitialized=!0;try{let n=(yield import("@capacitor/local-notifications")).LocalNotifications;if(this.localNotificationsPlugin=n,(yield n.requestPermissions()).display!=="granted")return;yield n.addListener("localNotificationActionPerformed",s=>{let p=s.notification.extra,x=typeof p?.notificationId=="string"?p.notificationId:"";this.notification_DS.isTrayOpen_$.set(!0),x&&this.notification_DS.markAsRead(x)})}catch{this.localNotificationsPlugin=null}}})}showLocalNotification(e){return A(this,null,function*(){if(this.localNotificationsPlugin&&document.hidden)try{let n=Zi(e.notificationId),i=e.title,s=e.description??this.buildBodyFromType(e);yield this.localNotificationsPlugin.schedule({notifications:[{id:n,title:i,body:s,extra:{notificationId:e.notificationId},smallIcon:"ic_notification",largeIcon:"ic_launcher"}]})}catch{}})}buildBodyFromType(e){switch(e.type){case"confirm":return e.confirmMessage??"Eld\xF6ntend\u0151 k\xE9rd\xE9s \xE9rkezett.";case"option-select":return"V\xE1laszt\xE1si lehet\u0151s\xE9g \xE9rkezett.";case"question":return"K\xE9rd\xE9s \xE9rkezett \u2014 v\xE1lasz sz\xFCks\xE9ges.";default:return"\xDAj \xE9rtes\xEDt\xE9s \xE9rkezett."}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Bn=(()=>{class t{baseUrl=`${B.api.baseUrl}/notification`;http=y(Jt);listNotifications(e){let n=[];e?.sessionId&&n.push(`sessionId=${encodeURIComponent(e.sessionId)}`),e?.status&&n.push(`status=${encodeURIComponent(e.status)}`),e?.limit&&n.push(`limit=${e.limit}`);let i=n.length?`?${n.join("&")}`:"";return Se(this.http.get(`${this.baseUrl}${i}`))}respondToNotification(e,n){return Se(this.http.post(`${this.baseUrl}/${encodeURIComponent(e)}/respond`,se(Y({},n),{respondedVia:"ui"})))}dismissNotification(e){return Se(this.http.post(`${this.baseUrl}/${encodeURIComponent(e)}/dismiss`,{}))}markAsRead(e){return Se(this.http.post(`${this.baseUrl}/${encodeURIComponent(e)}/read`,{}))}markAllAsRead(){return Se(this.http.post(`${this.baseUrl}/read-all`,{}))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var zn="notification:respond",Hn="notification:dismiss",qn="notification:read";var bt=(()=>{class t{socket_CS=y(mt);notification_AS=y(Bn);injector=y(Xe);mobileNotification_CS=null;notifications_$=S([]);unreadCount_$=v(()=>this.notifications_$().filter(e=>!e.isRead).length);isLoading_$=S(!1);isTrayOpen_$=S(!1);eventSubscription=null;constructor(){this.eventSubscription=this.socket_CS.event$.subscribe(e=>{this.handleSocketEvent(e)}),this.loadNotifications()}ngOnDestroy(){this.eventSubscription?.unsubscribe()}loadNotifications(){return A(this,null,function*(){this.isLoading_$.set(!0);try{let e=yield this.notification_AS.listNotifications({limit:50});this.notifications_$.set(e)}catch{}finally{this.isLoading_$.set(!1)}})}respondToNotification(e,n){this.socket_CS.emit(zn,{notificationId:e,response:n}),this.updateNotificationInList(e,{status:"responded",response:n,respondedAt:new Date().toISOString()})}dismissNotification(e){this.socket_CS.emit(Hn,{notificationId:e}),this.updateNotificationInList(e,{status:"dismissed",response:{isDismissed:!0}})}markAsRead(e){this.socket_CS.emit(qn,{notificationId:e}),this.updateNotificationInList(e,{isRead:!0})}markAllAsRead(){return A(this,null,function*(){try{yield this.notification_AS.markAllAsRead(),this.notifications_$.update(e=>e.map(n=>se(Y({},n),{isRead:!0})))}catch{}})}toggleTray(){this.isTrayOpen_$.update(e=>!e)}closeTray(){this.isTrayOpen_$.set(!1)}handleSocketEvent(e){let n=e.event,i=e.payload;if(n==="user-notification"){let s=typeof i.type=="string"?i.type:"",p=i.notification;s==="notification:created"&&p&&(this.notifications_$.update(g=>[p,...g]),(this.mobileNotification_CS??(this.mobileNotification_CS=this.injector.get(xt))).showLocalNotification(p)),s==="notification:updated"&&p&&this.updateNotificationInList(p.notificationId,p)}}updateNotificationInList(e,n){this.notifications_$.update(i=>i.map(s=>s.notificationId===e?Y(Y({},s),n):s))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ji=(t,a)=>a.id,eo=t=>({"bg-neonCyan/10":t});function to(t,a){if(t&1&&(o(0,"p",4),c(1),r()),t&2){let e=d(3);l(),P(e.notification.confirmMessage)}}function no(t,a){if(t&1){let e=I();C(0,to,2,1,"p",4),o(1,"div",1)(2,"button",5),m("click",function(){f(e);let i=d(2);return h(i.handleConfirm(!0))}),c(3," Igen "),r(),o(4,"button",6),m("click",function(){f(e);let i=d(2);return h(i.handleConfirm(!1))}),c(5," Nem "),r()()}if(t&2){let e=d(2);u(e.notification.confirmMessage?0:-1),l(2),_("disabled",e.isSubmitted_$()),l(2),_("disabled",e.isSubmitted_$())}}function io(t,a){if(t&1&&(o(0,"span",12),c(1),r()),t&2){let e=d().$implicit;l(),P(e.description)}}function oo(t,a){if(t&1){let e=I();o(0,"button",10),m("click",function(){let i=f(e).$implicit,s=d(3);return h(s.selectOption(i.id))}),o(1,"span",11),c(2),r(),C(3,io,2,1,"span",12),r()}if(t&2){let e=a.$implicit,n=d(3);O("border-neonCyan",n.selectedOptionId_$()===e.id)("text-neonCyan",n.selectedOptionId_$()===e.id)("border-neutral-600",n.selectedOptionId_$()!==e.id)("text-neutral-300",n.selectedOptionId_$()!==e.id)("hover:border-neutral-500",n.selectedOptionId_$()!==e.id),_("disabled",n.isSubmitted_$())("ngClass",ye(14,eo,n.selectedOptionId_$()===e.id)),l(2),P(e.label),l(),u(e.description?3:-1)}}function ro(t,a){if(t&1){let e=I();o(0,"button",13),m("click",function(){f(e);let i=d(3);return h(i.handleOptionSelect())}),c(1," Kiv\xE1laszt\xE1s "),r()}if(t&2){let e=d(3);_("disabled",e.isSubmitted_$())}}function ao(t,a){if(t&1&&(o(0,"div",7),V(1,oo,4,16,"button",8,Ji),r(),C(3,ro,2,1,"button",9)),t&2){let e=d(2);l(),N(e.notification.options),l(2),u(e.selectedOptionId_$()?3:-1)}}function so(t,a){if(t&1){let e=I();o(0,"textarea",14),ot("ngModelChange",function(i){f(e);let s=d(2);return it(s.textResponse,i)||(s.textResponse=i),h(i)}),r(),o(1,"button",13),m("click",function(){f(e);let i=d(2);return h(i.handleQuestionSubmit())}),c(2," K\xFCld\xE9s "),r()}if(t&2){let e,n=d(2);nt("ngModel",n.textResponse),_("placeholder",(e=n.notification.textPlaceholder)!==null&&e!==void 0?e:"V\xE1lasz...")("disabled",n.isSubmitted_$()),l(),_("disabled",n.isSubmitted_$()||!n.textResponse)}}function lo(t,a){if(t&1){let e=I();o(0,"button",13),m("click",function(){f(e);let i=d(3);return h(i.handleMessageTextSubmit())}),c(1," K\xFCld\xE9s "),r()}if(t&2){let e=d(3);_("disabled",e.isSubmitted_$())}}function co(t,a){if(t&1){let e=I();o(0,"textarea",14),ot("ngModelChange",function(i){f(e);let s=d(2);return it(s.textResponse,i)||(s.textResponse=i),h(i)}),r(),C(1,lo,2,1,"button",9)}if(t&2){let e,n=d(2);nt("ngModel",n.textResponse),_("placeholder",(e=n.notification.textPlaceholder)!==null&&e!==void 0?e:"Opcion\xE1lis v\xE1lasz...")("disabled",n.isSubmitted_$()),l(),u(n.textResponse?1:-1)}}function po(t,a){if(t&1){let e=I();o(0,"textarea",15),ot("ngModelChange",function(i){f(e);let s=d(2);return it(s.textResponse,i)||(s.textResponse=i),h(i)}),r()}if(t&2){let e,n=d(2);nt("ngModel",n.textResponse),_("placeholder",(e=n.notification.textPlaceholder)!==null&&e!==void 0?e:"Opcion\xE1lis megjegyz\xE9s...")("disabled",n.isSubmitted_$())}}function uo(t,a){if(t&1){let e=I();o(0,"div",0),C(1,no,6,3,"div",1)(2,ao,4,1)(3,so,3,4)(4,co,2,4)(5,po,1,3,"textarea",2),o(6,"button",3),m("click",function(){f(e);let i=d();return h(i.handleDismiss())}),c(7," Kihagy\xE1s "),r()()}if(t&2){let e=d();l(),u(e.notification.type==="confirm"?1:-1),l(),u(e.notification.type==="option-select"&&e.notification.options?2:-1),l(),u(e.notification.type==="question"?3:-1),l(),u(e.notification.type==="message"&&e.notification.allowTextResponse?4:-1),l(),u((e.notification.type==="confirm"||e.notification.type==="option-select")&&e.notification.allowTextResponse?5:-1),l(),_("disabled",e.isSubmitted_$())}}var Wn=(()=>{class t{notification=null;responded=new me;dismissed=new me;selectedOptionId_$=S("");textResponse="";isSubmitted_$=S(!1);handleConfirm(e){if(this.isSubmitted_$())return;this.isSubmitted_$.set(!0);let n={confirmed:e};this.notification?.allowTextResponse&&this.textResponse.trim()&&(n.textResponse=this.textResponse.trim()),this.responded.emit(n)}handleOptionSelect(){if(this.isSubmitted_$())return;let e=this.selectedOptionId_$();if(!e)return;this.isSubmitted_$.set(!0);let n={selectedOptionId:e};this.notification?.allowTextResponse&&this.textResponse.trim()&&(n.textResponse=this.textResponse.trim()),this.responded.emit(n)}handleQuestionSubmit(){if(this.isSubmitted_$())return;let e=this.textResponse.trim();e&&(this.isSubmitted_$.set(!0),this.responded.emit({textResponse:e}))}handleMessageTextSubmit(){if(this.isSubmitted_$())return;let e=this.textResponse.trim();e&&(this.isSubmitted_$.set(!0),this.responded.emit({textResponse:e}))}handleDismiss(){this.isSubmitted_$()||(this.isSubmitted_$.set(!0),this.dismissed.emit())}selectOption(e){this.selectedOptionId_$.set(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ntf-response-controls"]],inputs:{notification:"notification"},outputs:{responded:"responded",dismissed:"dismissed"},standalone:!0,features:[U],decls:1,vars:1,consts:[[1,"flex","flex-col","gap-2","mt-2"],[1,"flex","gap-2"],["rows","1",1,"w-full","px-3","py-1.5","text-xs","rounded","border","border-neutral-600","bg-neutral-800/50","text-neutral-200","placeholder:text-neutral-500","focus:border-neonCyan","focus:outline-none","disabled:opacity-50","resize-none",3,"ngModel","placeholder","disabled"],["type","button",1,"px-2","py-1","text-xs","text-neutral-500","hover:text-neutral-300","transition-colors","self-start",3,"click","disabled"],[1,"text-sm","text-neutral-300"],["type","button",1,"px-3","py-1.5","text-sm","font-medium","rounded","bg-green-600/20","border","border-green-500/50","text-green-400","hover:bg-green-600/30","disabled:opacity-50","transition-colors",3,"click","disabled"],["type","button",1,"px-3","py-1.5","text-sm","font-medium","rounded","bg-red-600/20","border","border-red-500/50","text-red-400","hover:bg-red-600/30","disabled:opacity-50","transition-colors",3,"click","disabled"],[1,"flex","flex-col","gap-1"],["type","button",1,"px-3","py-2","text-sm","rounded","border","text-left","transition-colors",3,"disabled","border-neonCyan","ngClass","text-neonCyan","border-neutral-600","text-neutral-300","hover:border-neutral-500"],["type","button",1,"px-3","py-1.5","text-sm","font-medium","rounded","bg-neonCyan/15","border","border-neonCyan/50","text-neonCyan","hover:bg-neonCyan/25","disabled:opacity-50","transition-colors","self-start",3,"disabled"],["type","button",1,"px-3","py-2","text-sm","rounded","border","text-left","transition-colors",3,"click","disabled","ngClass"],[1,"font-medium"],[1,"block","text-xs","text-neutral-400","mt-0.5"],["type","button",1,"px-3","py-1.5","text-sm","font-medium","rounded","bg-neonCyan/15","border","border-neonCyan/50","text-neonCyan","hover:bg-neonCyan/25","disabled:opacity-50","transition-colors","self-start",3,"click","disabled"],["rows","2",1,"w-full","px-3","py-2","text-sm","rounded","border","border-neutral-600","bg-neutral-800/50","text-neutral-200","placeholder:text-neutral-500","focus:border-neonCyan","focus:outline-none","disabled:opacity-50","resize-none",3,"ngModelChange","ngModel","placeholder","disabled"],["rows","1",1,"w-full","px-3","py-1.5","text-xs","rounded","border","border-neutral-600","bg-neutral-800/50","text-neutral-200","placeholder:text-neutral-500","focus:border-neonCyan","focus:outline-none","disabled:opacity-50","resize-none",3,"ngModelChange","ngModel","placeholder","disabled"]],template:function(n,i){n&1&&C(0,uo,8,6,"div",0),n&2&&u(i.notification?0:-1)},dependencies:[j,le,te,ce,de,pe],encapsulation:2})}return t})();var _o=t=>({"bg-neutral-800/30":t,"hover:bg-neutral-800/50":!0});function mo(t,a){t&1&&(k(),o(0,"svg",4),b(1,"path",18),r())}function Co(t,a){t&1&&(k(),o(0,"svg",4),b(1,"path",19),r())}function fo(t,a){t&1&&(k(),o(0,"svg",4),b(1,"path",20),r())}function ho(t,a){t&1&&(k(),o(0,"svg",4),b(1,"path",21),r())}function xo(t,a){if(t&1&&(o(0,"p",9),c(1),r()),t&2){let e=d();l(),P(e.description)}}function bo(t,a){if(t&1&&(o(0,"span",10),c(1),r()),t&2){let e=d();l(),P(e.sourceLabel)}}function go(t,a){t&1&&(o(0,"span",11),c(1," Session "),r())}function So(t,a){t&1&&(o(0,"span",12),c(1," Megv\xE1laszolva "),r())}function vo(t,a){t&1&&(o(0,"span",13),c(1," Lej\xE1rt "),r())}function yo(t,a){t&1&&(o(0,"span",14),c(1," Kihagyva "),r())}function ko(t,a){if(t&1&&(o(0,"span"),c(1),r()),t&2){let e=d(2);l(),P(e.response.confirmed?"Igen":"Nem")}}function Io(t,a){if(t&1&&(o(0,"span"),c(1),r()),t&2){let e=d(2);l(),E("Kiv\xE1lasztva: ",e.response.selectedOptionId,"")}}function To(t,a){if(t&1&&(o(0,"p",22),c(1),r()),t&2){let e=d(2);l(),P(e.response.textResponse)}}function Eo(t,a){if(t&1&&(o(0,"div",15),C(1,ko,2,1,"span")(2,Io,2,1,"span")(3,To,2,1,"p",22),r()),t&2){let e=d();l(),u(e.response.confirmed!==void 0?1:-1),l(),u(e.response.selectedOptionId?2:-1),l(),u(e.response.textResponse?3:-1)}}function wo(t,a){if(t&1){let e=I();o(0,"app-ntf-response-controls",23),m("responded",function(i){f(e);let s=d(2);return h(s.handleResponded(i))})("dismissed",function(){f(e);let i=d(2);return h(i.handleDismissed())}),r()}if(t&2){let e=d();_("notification",e)}}function Ao(t,a){if(t&1){let e=I();o(0,"app-ntf-response-controls",23),m("responded",function(i){f(e);let s=d(3);return h(s.handleResponded(i))})("dismissed",function(){f(e);let i=d(3);return h(i.handleDismissed())}),r()}if(t&2){let e=d(2);_("notification",e)}}function Po(t,a){if(t&1){let e=I();o(0,"button",25),m("click",function(i){return f(e),d(3).handleDismissed(),h(i.stopPropagation())}),c(1," Elvet\xE9s "),r()}}function $o(t,a){if(t&1&&C(0,Ao,1,1,"app-ntf-response-controls",16)(1,Po,2,0,"button",24),t&2){let e=d();u(e.allowTextResponse?0:1)}}function Mo(t,a){t&1&&b(0,"span",17)}function Do(t,a){if(t&1){let e=I();o(0,"div",1),m("click",function(){f(e);let i=d();return h(i.handleClick())}),o(1,"div",2)(2,"div",3),C(3,mo,2,0,":svg:svg",4)(4,Co,2,0,":svg:svg",4)(5,fo,2,0,":svg:svg",4)(6,ho,2,0,":svg:svg",4),r(),o(7,"div",5)(8,"div",6)(9,"span",7),c(10),r(),o(11,"span",8),c(12),r()(),C(13,xo,2,1,"p",9)(14,bo,2,1,"span",10)(15,go,2,0,"span",11)(16,So,2,0,"span",12)(17,vo,2,0,"span",13)(18,yo,2,0,"span",14)(19,Eo,4,3,"div",15)(20,wo,1,1,"app-ntf-response-controls",16)(21,$o,2,1),r(),C(22,Mo,1,0,"span",17),r()()}if(t&2){let e,n=a,i=d();_("ngClass",ye(17,_o,!n.isRead)),l(2),_("ngClass",i.priorityColorClass_$()),l(),u((e=n.type)==="message"?3:e==="confirm"?4:e==="option-select"?5:e==="question"?6:-1),l(6),O("font-semibold",!n.isRead),l(),E(" ",n.title," "),l(2),P(i.relativeTime_$()),l(),u(n.description?13:-1),l(),u(n.sourceLabel?14:-1),l(),u(i.isLinkedInteraction_$()?15:-1),l(),u(n.status==="responded"?16:-1),l(),u(n.status==="expired"?17:-1),l(),u(n.status==="dismissed"?18:-1),l(),u(n.status==="responded"&&n.response?19:-1),l(),u(i.isInteractiveAndPending_$()?20:-1),l(),u(i.isMessageAndActive_$()?21:-1),l(),u(n.isRead?-1:22)}}var Gn=(()=>{class t{notification=qt(null);responded=new me;dismissed=new me;markedAsRead=new me;priorityColorClass_$=v(()=>{switch(this.notification()?.priority){case"error":return"border-red-500/50 text-red-400";case"warning":return"border-amber-500/50 text-amber-400";case"success":return"border-green-500/50 text-green-400";default:return"border-neonCyan/50 text-neonCyan"}});relativeTime_$=v(()=>{let e=this.notification();if(!e?.__created)return"";let n=Date.now(),i=new Date(e.__created).getTime(),s=n-i,p=Math.floor(s/1e3);if(p<60)return"most";let x=Math.floor(p/60);if(x<60)return`${x} perce`;let g=Math.floor(x/60);return g<24?`${g} \xF3r\xE1ja`:`${Math.floor(g/24)} napja`});isLinkedInteraction_$=v(()=>!!this.notification()?.linkedInteractionId);isInteractiveAndPending_$=v(()=>{let e=this.notification();return e?e.type!=="message"&&(e.status==="pending"||e.status==="delivered"):!1});isMessageAndActive_$=v(()=>{let e=this.notification();return e?e.type==="message"&&(e.status==="pending"||e.status==="delivered"):!1});handleResponded(e){let n=this.notification();n&&this.responded.emit({notificationId:n.notificationId,response:e})}handleDismissed(){let e=this.notification();e&&this.dismissed.emit(e.notificationId)}handleClick(){let e=this.notification();e&&!e.isRead&&this.markedAsRead.emit(e.notificationId)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ntf-item"]],inputs:{notification:[1,"notification"]},outputs:{responded:"responded",dismissed:"dismissed",markedAsRead:"markedAsRead"},standalone:!0,features:[U],decls:1,vars:1,consts:[[1,"px-3","py-2.5","border-b","border-neutral-700/50","transition-colors","cursor-pointer",3,"ngClass"],[1,"px-3","py-2.5","border-b","border-neutral-700/50","transition-colors","cursor-pointer",3,"click","ngClass"],[1,"flex","items-start","gap-2"],[1,"shrink-0","mt-0.5",3,"ngClass"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-4","h-4"],[1,"flex-1","min-w-0"],[1,"flex","items-center","justify-between","gap-2"],[1,"text-sm","font-medium","text-neutral-200","truncate"],[1,"text-[11px]","text-neutral-500","shrink-0"],[1,"text-xs","text-neutral-400","mt-0.5","line-clamp-2"],[1,"text-[10px]","text-neutral-500","mt-0.5","inline-block"],[1,"inline-block","mt-0.5","ml-1","px-1.5","py-0.5","rounded","text-[10px]","font-medium","bg-neonCyan/10","text-neonCyan","border","border-neonCyan/20"],[1,"inline-block","mt-1","px-1.5","py-0.5","rounded","text-[10px]","font-medium","bg-green-900/30","text-green-400","border","border-green-700/30"],[1,"inline-block","mt-1","px-1.5","py-0.5","rounded","text-[10px]","font-medium","bg-amber-900/30","text-amber-400","border","border-amber-700/30"],[1,"inline-block","mt-1","px-1.5","py-0.5","rounded","text-[10px]","font-medium","bg-neutral-700/30","text-neutral-400","border","border-neutral-600/30"],[1,"mt-1.5","px-2","py-1.5","rounded","bg-neutral-800/50","border","border-neutral-700/50","text-xs","text-neutral-300"],[3,"notification"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-neonCyan","shrink-0","mt-1.5"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M4 6h16M4 10h16M4 14h16M4 18h16"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"],[1,"mt-0.5","text-neutral-400"],[3,"responded","dismissed","notification"],["type","button",1,"mt-1.5","px-2","py-1","text-xs","text-neutral-500","hover:text-neutral-300","transition-colors"],["type","button",1,"mt-1.5","px-2","py-1","text-xs","text-neutral-500","hover:text-neutral-300","transition-colors",3,"click"]],template:function(n,i){if(n&1&&C(0,Do,23,19,"div",0),n&2){let s;u((s=i.notification())?0:-1,s)}},dependencies:[j,le,Wn],encapsulation:2})}return t})();var Ro=(t,a)=>a.notificationId;function Uo(t,a){if(t&1&&(o(0,"span",4),c(1),r()),t&2){let e=d();l(),E(" ",e.notification_DS.unreadCount_$()>99?"99+":e.notification_DS.unreadCount_$()," ")}}function Oo(t,a){if(t&1){let e=I();o(0,"button",13),m("click",function(){f(e);let i=d(2);return h(i.handleMarkAllAsRead())}),c(1," Mind olvasott "),r()}}function Fo(t,a){t&1&&(o(0,"div",12),c(1," Bet\xF6lt\xE9s... "),r())}function Lo(t,a){if(t&1){let e=I();o(0,"app-ntf-item",15),m("responded",function(i){f(e);let s=d(3);return h(s.handleNotificationResponded(i))})("dismissed",function(i){f(e);let s=d(3);return h(s.handleNotificationDismissed(i))})("markedAsRead",function(i){f(e);let s=d(3);return h(s.handleNotificationMarkedAsRead(i))}),r()}if(t&2){let e=a.$implicit;_("notification",e)}}function Vo(t,a){if(t&1&&V(0,Lo,1,1,"app-ntf-item",14,Ro),t&2){let e=d(2);N(e.notification_DS.notifications_$())}}function No(t,a){t&1&&(o(0,"div",12),c(1," Nincs \xE9rtes\xEDt\xE9s "),r())}function jo(t,a){if(t&1){let e=I();o(0,"div",6),m("click",function(i){return f(e),h(i.stopPropagation())}),o(1,"div",7)(2,"span",8),c(3,"Notifications"),r(),o(4,"div",9),C(5,Oo,2,0,"button",10),r()(),o(6,"div",11),C(7,Fo,2,0,"div",12)(8,Vo,2,0)(9,No,2,0,"div",12),r()()}if(t&2){let e=d();l(5),u(e.notification_DS.unreadCount_$()>0?5:-1),l(2),u(e.notification_DS.isLoading_$()?7:e.notification_DS.notifications_$().length?8:9)}}var Yn=(()=>{class t{notification_DS=y(bt);elementRef=y(ve);handleDocumentClick(e){if(!this.notification_DS.isTrayOpen_$())return;let n=e.target;n instanceof Node&&!this.elementRef.nativeElement.contains(n)&&this.notification_DS.closeTray()}handleToggleTray(e){e.stopPropagation(),this.notification_DS.toggleTray()}handleMarkAllAsRead(){this.notification_DS.markAllAsRead()}handleNotificationResponded(e){this.notification_DS.respondToNotification(e.notificationId,e.response)}handleNotificationDismissed(e){this.notification_DS.dismissNotification(e)}handleNotificationMarkedAsRead(e){this.notification_DS.markAsRead(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ntf-tray"]],hostBindings:function(n,i){n&1&&m("click",function(p){return i.handleDocumentClick(p)},!1,Wt)},standalone:!0,features:[U],decls:6,vars:3,consts:[[1,"relative","flex","items-center","justify-center"],["type","button","title","\xC9rtes\xEDt\xE9sek",1,"flex","items-center","justify-center","p-1","rounded-md","text-neutral-400","hover:text-neutral-200","hover:bg-neutral-800","transition-colors","duration-200","relative",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-5","h-5"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"],[1,"absolute","-top-0.5","-right-0.5","min-w-[1rem]","h-4","px-1","flex","items-center","justify-center","rounded-full","text-[10px]","font-bold","text-neutral-950","bg-neonCyan","animate-pulse","leading-none"],[1,"absolute","top-full","right-0","mt-2","z-50","w-[min(400px,calc(100vw-2rem))]","max-h-[60vh]","rounded-lg","border","border-neonDefault","bg-ccapSurface","shadow-xl","flex","flex-col","overflow-hidden"],[1,"absolute","top-full","right-0","mt-2","z-50","w-[min(400px,calc(100vw-2rem))]","max-h-[60vh]","rounded-lg","border","border-neonDefault","bg-ccapSurface","shadow-xl","flex","flex-col","overflow-hidden",3,"click"],[1,"flex","items-center","justify-between","px-3","py-2.5","border-b","border-neutral-700/50","shrink-0"],[1,"text-sm","font-semibold","text-neutral-200"],[1,"flex","items-center","gap-2"],["type","button",1,"text-xs","text-neonCyan","hover:underline"],[1,"flex-1","overflow-y-auto","min-h-0"],[1,"flex","items-center","justify-center","py-8","text-neutral-500","text-sm"],["type","button",1,"text-xs","text-neonCyan","hover:underline",3,"click"],[3,"notification"],[3,"responded","dismissed","markedAsRead","notification"]],template:function(n,i){n&1&&(o(0,"div",0)(1,"button",1),m("click",function(p){return i.handleToggleTray(p)}),k(),o(2,"svg",2),b(3,"path",3),r(),C(4,Uo,2,1,"span",4),r(),C(5,jo,10,2,"div",5),r()),n&2&&(l(),q("aria-label",i.notification_DS.unreadCount_$()>0?"\xC9rtes\xEDt\xE9sek: "+i.notification_DS.unreadCount_$()+" olvasatlan":"\xC9rtes\xEDt\xE9sek"),l(3),u(i.notification_DS.unreadCount_$()>0?4:-1),l(),u(i.notification_DS.isTrayOpen_$()?5:-1))},dependencies:[j,Gn],encapsulation:2})}return t})();var Qo=["quickInputAnchorMain"],Bo=(t,a)=>a.routerLink,ei=(t,a)=>a.id,zo=(t,a)=>({"xs:-translate-x-full":t,"xs:translate-x-0":a}),Ho=()=>({exact:!0}),qo=t=>({exact:t});function Wo(t,a){t&1&&(k(),o(0,"svg",5),b(1,"path",31),r())}function Go(t,a){t&1&&(k(),o(0,"svg",5),b(1,"path",32),r())}function Yo(t,a){if(t&1){let e=I();o(0,"div",33),m("click",function(i){return f(e),h(i.stopPropagation())}),o(1,"button",34),m("click",function(){f(e);let i=d();return h(i.handleRunDiagnosis())}),c(2),r(),o(3,"div",35),b(4,"app-ccap-error-display",36),r(),o(5,"p",37),c(6,"Kattint\xE1s az indik\xE1torra: \xFAjracsatlakoz\xE1s"),r()()}if(t&2){let e=d();l(),_("disabled",e.isDiagnosing_$()),l(),E(" ",e.isDiagnosing_$()?"Diagnosztika fut\u2026":"Kapcsolat diagn\xF3zis"," "),l(2),_("error",e.lastSocketError_$())}}function Ko(t,a){if(t&1&&(o(0,"span",14),c(1),r()),t&2){let e=d();l(),E(" ",e.socketStatusLabel_$()," ")}}function Xo(t,a){t&1&&b(0,"span",16)}function Zo(t,a){t&1&&b(0,"span",17)}function Jo(t,a){t&1&&b(0,"span",18)}function er(t,a){t&1&&b(0,"span",19)}function tr(t,a){if(t&1){let e=I();o(0,"div",38),m("click",function(){f(e);let i=d();return h(i.toggleSideNav())}),r()}}function nr(t,a){t&1&&b(0,"span",49)}function ir(t,a){t&1&&b(0,"span",52)}function or(t,a){t&1&&(o(0,"div",61)(1,"a",65),k(),o(2,"svg",66),b(3,"path",67),r(),c(4," Koordin\xE1tor "),r(),$(),o(5,"a",68),k(),o(6,"svg",66),b(7,"path",69),r(),c(8," Orchestrator "),r(),$(),o(9,"a",70),k(),o(10,"svg",66),b(11,"path",71),r(),c(12," Voice Notes POC "),r(),$(),o(13,"a",72),k(),o(14,"svg",66),b(15,"path",73),r(),c(16," CA Sessions "),r(),$(),o(17,"a",74),k(),o(18,"svg",66),b(19,"path",75),r(),c(20," OC Sessions "),r(),$(),o(21,"a",76),k(),o(22,"svg",66),b(23,"path",77),r(),c(24," Consultant "),r(),$(),o(25,"a",78),k(),o(26,"svg",66),b(27,"path",79),r(),c(28," POC Remote "),r()())}function rr(t,a){if(t&1&&(k(),o(0,"svg",66),b(1,"path",81),r()),t&2){let e=d().$implicit;l(),q("d",e.iconSvgPath)}}function ar(t,a){if(t&1&&(o(0,"a",80),C(1,rr,2,1,":svg:svg",66),c(2),r()),t&2){let e=a.$implicit;_("routerLink",e.routerLink)("routerLinkActiveOptions",ye(4,qo,e.isRouterLinkActiveExactInSideNav)),l(),u(e.iconSvgPath?1:-1),l(),E(" ",e.label," ")}}function sr(t,a){if(t&1&&(o(0,"div",61),V(1,ar,3,6,"a",80,Bo),r()),t&2){let e=d(2);l(),N(e.settingsSubmenuNavLinks)}}function lr(t,a){if(t&1&&(o(0,"span",99),c(1),r()),t&2){let e=d(3);l(),E(" ",e.recordedSystemErrorsCount_$()," ")}}function cr(t,a){if(t&1&&(o(0,"span",99),c(1),r()),t&2){let e=d(3);l(),E(" ",e.recordedAgentFeedbackCount_$()," ")}}function dr(t,a){if(t&1&&(o(0,"div",61)(1,"a",82),k(),o(2,"svg",66),b(3,"path",83),r(),c(4," Live Development Pipeline "),r(),$(),o(5,"a",84),k(),o(6,"svg",66),b(7,"path",85),r(),c(8," Model Registry "),r(),$(),o(9,"a",86),k(),o(10,"svg",66),b(11,"path",87),r(),c(12," Cost Tracking "),r(),$(),o(13,"a",88),k(),o(14,"svg",66),b(15,"path",89),r(),c(16," CC Usage "),r(),$(),o(17,"a",90),c(18," Costs "),r(),o(19,"a",91),k(),o(20,"svg",66),b(21,"path",92),r(),c(22," Embedding registry "),r(),$(),o(23,"a",93),k(),o(24,"svg",66),b(25,"path",94),r(),c(26," Document Library "),r(),$(),o(27,"a",95),k(),o(28,"svg",66),b(29,"path",96),r(),c(30," Project Source "),r(),$(),o(31,"a",97),k(),o(32,"svg",66),b(33,"path",98),r(),$(),o(34,"span"),c(35,"Hib\xE1k"),r(),C(36,lr,2,1,"span",99),r(),o(37,"a",100),k(),o(38,"svg",66),b(39,"path",101),r(),c(40," Host Runtime MCP "),r(),$(),o(41,"a",102),k(),o(42,"svg",66),b(43,"path",103),r(),$(),o(44,"span"),c(45,"Feedback"),r(),C(46,cr,2,1,"span",99),r(),o(47,"a",104),k(),o(48,"svg",66),b(49,"path",105),r(),c(50," LLM Debug Log "),r(),$(),o(51,"a",106),k(),o(52,"svg",66),b(53,"path",107),r(),c(54," Workflow be\xE1ll\xEDt\xE1sok "),r(),$(),o(55,"a",108),k(),o(56,"svg",66),b(57,"path",73),r(),c(58," Terminals "),r(),$(),o(59,"a",109),k(),o(60,"svg",66),b(61,"path",67),r(),c(62," Agent Instances "),r(),$(),o(63,"a",110),k(),o(64,"svg",66),b(65,"path",111),r(),c(66," Mobile App "),r()()),t&2){let e=d(2);l(31),q("aria-label",e.recordedSystemErrorsCount_$()>0?"Hib\xE1k, "+e.recordedSystemErrorsCount_$()+" r\xF6gz\xEDtett bejegyz\xE9s a list\xE1ban":null)("title",e.recordedSystemErrorsCount_$()>0?"Rendszer hib\xE1k sz\xE1ma: "+e.recordedSystemErrorsCount_$():null),l(5),u(e.recordedSystemErrorsCount_$()>0?36:-1),l(5),q("aria-label",e.recordedAgentFeedbackCount_$()>0?"Feedback, "+e.recordedAgentFeedbackCount_$()+" r\xF6gz\xEDtett bejegyz\xE9s a list\xE1ban":null)("title",e.recordedAgentFeedbackCount_$()>0?"Feedback bejegyz\xE9sek sz\xE1ma: "+e.recordedAgentFeedbackCount_$():null),l(5),u(e.recordedAgentFeedbackCount_$()>0?46:-1)}}function pr(t,a){if(t&1){let e=I();o(0,"nav",25)(1,"div",39)(2,"a",40),k(),o(3,"svg",41),b(4,"path",42),r(),c(5," Dashboard "),r(),$(),o(6,"a",43),k(),o(7,"svg",41),b(8,"path",44),r(),c(9," Dark Office "),r(),$(),o(10,"a",45),k(),o(11,"svg",41),b(12,"path",46),r(),c(13," Project Management "),r(),$(),o(14,"a",47),k(),o(15,"svg",41),b(16,"path",48),r(),$(),o(17,"span"),c(18,"CCAP Sessions"),r(),C(19,nr,1,0,"span",49),r(),o(20,"a",50),k(),o(21,"svg",41),b(22,"path",51),r(),$(),o(23,"span"),c(24,"CC Sessions"),r(),C(25,ir,1,0,"span",52),r(),o(26,"a",53),k(),o(27,"svg",41),b(28,"path",54),r(),c(29," Scheduler "),r(),$(),o(30,"div",55)(31,"button",56),m("click",function(){f(e);let i=d();return h(i.togglePocSubmenu())}),k(),o(32,"svg",41),b(33,"path",57),r(),c(34," POC "),$(),o(35,"span",58),k(),o(36,"svg",59),b(37,"path",60),r()()(),C(38,or,29,0,"div",61),r(),$(),o(39,"div",55)(40,"button",56),m("click",function(){f(e);let i=d();return h(i.toggleSettingsSubmenu())}),k(),o(41,"svg",41),b(42,"path",62)(43,"path",63),r(),c(44," Be\xE1ll\xEDt\xE1sok "),$(),o(45,"span",58),k(),o(46,"svg",59),b(47,"path",60),r()()(),C(48,sr,3,0,"div",61),r(),$(),o(49,"div",55)(50,"button",56),m("click",function(){f(e);let i=d();return h(i.toggleMaintenanceSubmenu())}),k(),o(51,"svg",41),b(52,"path",64),r(),c(53," Maintenance "),$(),o(54,"span",58),k(),o(55,"svg",59),b(56,"path",60),r()()(),C(57,dr,67,6,"div",61),r()()()}if(t&2){let e=d();l(2),_("routerLinkActiveOptions",Yt(24,Ho)),l(17),u(e.hasRunningCcapSession_$()?19:-1),l(6),u(e.hasRunningCcSession_$()?25:-1),l(6),O("text-ccapAccent",e.pocSubmenuOpen_$())("border-ccapAccent",e.pocSubmenuOpen_$()),l(4),O("rotate-90",e.pocSubmenuOpen_$()),l(3),u(e.pocSubmenuOpen_$()?38:-1),l(2),O("text-ccapAccent",e.settingsSubmenuOpen_$())("border-ccapAccent",e.settingsSubmenuOpen_$()),l(5),O("rotate-90",e.settingsSubmenuOpen_$()),l(3),u(e.settingsSubmenuOpen_$()?48:-1),l(2),O("text-ccapAccent",e.maintenanceSubmenuOpen_$())("border-ccapAccent",e.maintenanceSubmenuOpen_$()),l(4),O("rotate-90",e.maintenanceSubmenuOpen_$()),l(3),u(e.maintenanceSubmenuOpen_$()?57:-1)}}function ur(t,a){t&1&&(k(),o(0,"svg",114),b(1,"path",32),r())}function _r(t,a){t&1&&(k(),o(0,"svg",114),b(1,"path",116),r())}function mr(t,a){t&1&&(k(),o(0,"svg",114),b(1,"path",117),r())}function Cr(t,a){t&1&&(o(0,"span",115),c(1,"\u203A"),r())}function fr(t,a){if(t&1){let e=I();o(0,"button",113),m("click",function(){let i=f(e).$implicit;return h(i.open())}),C(1,ur,2,0,":svg:svg",114)(2,_r,2,0,":svg:svg",114)(3,mr,2,0,":svg:svg",114)(4,Cr,2,0,"span",115),r()}if(t&2){let e,n=a.$implicit;_("title",n.label),l(),u((e=n.icon)==="menu"?1:e==="list"?2:e==="info"?3:4)}}function hr(t,a){if(t&1&&(o(0,"div",27),V(1,fr,5,2,"button",112,ei),r()),t&2){let e=d();l(),N(e.closedPanelsLeftStrip_$())}}function xr(t,a){t&1&&(k(),o(0,"svg",114),b(1,"path",32),r())}function br(t,a){t&1&&(k(),o(0,"svg",114),b(1,"path",116),r())}function gr(t,a){t&1&&(k(),o(0,"svg",114),b(1,"path",117),r())}function Sr(t,a){t&1&&(o(0,"span",115),c(1,"\u2039"),r())}function vr(t,a){if(t&1){let e=I();o(0,"button",113),m("click",function(){let i=f(e).$implicit;return h(i.open())}),C(1,xr,2,0,":svg:svg",114)(2,br,2,0,":svg:svg",114)(3,gr,2,0,":svg:svg",114)(4,Sr,2,0,"span",115),r()}if(t&2){let e,n=a.$implicit;_("title",n.label),l(),u((e=n.icon)==="menu"?1:e==="list"?2:e==="info"?3:4)}}function yr(t,a){if(t&1&&(o(0,"div",28),V(1,vr,5,2,"button",112,ei),r()),t&2){let e=d();l(),N(e.layoutOverlay_CS.closedPanelsRight_$())}}function kr(t,a){t&1&&(o(0,"span",121),c(1),r()),t&2&&(l(),E(" \u2014 ",a.promptId,""))}function Ir(t,a){if(t&1&&(o(0,"div",30)(1,"span",118),b(2,"span",119),o(3,"span",120),c(4," Modellteszt fut a h\xE1tt\xE9rben "),C(5,kr,2,1,"span",121),r()(),o(6,"a",122),c(7," Model Registry "),r()()),t&2){let e,n=d();l(5),u((e=n.modelRegistry_DS.modelTestRunProgressCurrentTask_$())?5:-1,e)}}var Kn="ccap-sideNavOpen",Xn="ccap-nav-settingsSubmenuOpen",Zn="ccap-nav-maintenanceSubmenuOpen",Jn="ccap-nav-pocSubmenuOpen",gt=(()=>{class t extends gn{setup_DS=y(Sn);session_DS=y(Pe);errors_DS=y(kn);recordedSystemErrorsCount_$=v(()=>this.errors_DS.errorsTotalCount_$());agentFeedback_DS=y(In);recordedAgentFeedbackCount_$=v(()=>this.agentFeedback_DS.feedbackTotalCount_$());userInput_DS=y(G);quickInputAnchorMainRef;quickInputMainResizeObs;modelRegistry_DS=y(Tn);claudeCode_DS=y($e);hasRunningCcSession_$=v(()=>this.claudeCode_DS.sessions_$().some(e=>oe.isRunning(e.status)));hasRunningCcapSession_$=v(()=>this.session_DS.sessions_$().some(e=>oe.isRunning(e.status)));settingsGeneral_DS=y(hn);mobileAppUpdater_CS=y(Ct);mobileNotification_CS=y(xt);router=y(st);routerUrl_$=S("");version=B.version;settingsSubmenuNavLinks=mn;activeSessionId_$=this.session_DS.activeSessionId_$;socketStatus_$=this.session_DS.socketStatus_$;lastSocketError_$=this.session_DS.lastSocketError_$;connectAttemptCount_$=this.session_DS.connectAttemptCount_$;isDiagnosing_$=S(!1);modelTestRunGlobalBannerVisible_$=v(()=>{if(this.routerUrl_$().startsWith("/model-registry"))return!1;let n=this.modelRegistry_DS.testRunId_$(),i=this.modelRegistry_DS.testRunStatus_$();return!n||i==null?!1:i.status===$t.running||i.status===$t.pending});socketStatusLabel_$=v(()=>{let e=this.socketStatus_$(),n=this.connectAttemptCount_$();return e===Be.connected?"WebSocket csatlakozva \u2013 kattint\xE1s: \xFAjracsatlakoz\xE1s":e===Be.error?`WebSocket hiba${n>0?` (${n}x)`:""} \u2013 kattint\xE1s: \xFAjracsatlakoz\xE1s`:"Csatlakoz\xE1s\u2026 \u2013 kattint\xE1s: \xFAjracsatlakoz\xE1s"});sideNavOpen_$=S(t.readSideNavOpenFromStorage());settingsSubmenuOpen_$=S(t.readNavSubmenuOpenFromStorage(Xn));maintenanceSubmenuOpen_$=S(t.readNavSubmenuOpenFromStorage(Zn));pocSubmenuOpen_$=S(t.readNavSubmenuOpenFromStorage(Jn));closedPanelsLeftStrip_$=v(()=>{let e=this.layoutOverlay_CS.closedPanelsLeft_$();return this.layoutBreakpoint_CS.isMobile_$()?e:e.filter(n=>n.id!=="navbar")});layoutOverlay_CS=y(Qn);layoutBreakpoint_CS=y(ft);constructor(){super(),this.layoutBreakpoint_CS.isMobile_$()&&this.sideNavOpen_$.set(!1),this.layoutOverlay_CS.register({id:"navbar",label:"Men\xFC",icon:"menu",isOpen:this.sideNavOpen_$(),open:()=>this.toggleSideNav()}),W(()=>{let e=this.sideNavOpen_$();H.writeString(Kn,String(e)),this.layoutOverlay_CS.updatePanelState("navbar",e)},{allowSignalWrites:!0}),W(()=>{let e=this.settingsSubmenuOpen_$(),n=this.maintenanceSubmenuOpen_$(),i=this.pocSubmenuOpen_$();H.writeString(Xn,String(e)),H.writeString(Zn,String(n)),H.writeString(Jn,String(i))})}ngOnInit(){this.router.url.startsWith("/setup")||this.checkSetupAndRedirect(),this.settingsGeneral_DS.load().then(()=>{this.settingsGeneral_DS.section_$().form.mobileAutoUpdateEnabled&&this.mobileAppUpdater_CS.autoUpdateIfAvailable()}),this.errors_DS.loadErrors(),this.agentFeedback_DS.loadFeedback(),this.mobileNotification_CS.initialize(),this.routerUrl_$.set(this.router.url??""),this.addSubscription(this.router.events.pipe(Bt(n=>n instanceof an)).subscribe(n=>{let i=n.urlAfterRedirects??n.url??"";this.routerUrl_$.set(i),this.userInput_DS.syncComposerAreaFromNavigation(i),this.layoutBreakpoint_CS.isMobile_$()&&this.sideNavOpen_$.set(!1),(i.startsWith("/setup")||i.startsWith("/settings"))&&this.settingsSubmenuOpen_$.set(!0),this.isMaintenanceRoute(i)&&this.maintenanceSubmenuOpen_$.set(!0),(i.includes("voice-notes-poc")||i.includes("master-control-remote-poc")||i.includes("oc-session")||i.includes("ca-session")||i.includes("consultant"))&&this.pocSubmenuOpen_$.set(!0)}));let e=this.router.url??"";(e.startsWith("/setup")||e.startsWith("/settings"))&&this.settingsSubmenuOpen_$.set(!0),this.isMaintenanceRoute(e)&&this.maintenanceSubmenuOpen_$.set(!0),(e.includes("voice-notes-poc")||e.includes("master-control-remote-poc")||e.includes("oc-session")||e.includes("ca-session")||e.includes("consultant"))&&this.pocSubmenuOpen_$.set(!0),this.userInput_DS.syncComposerAreaFromNavigation(this.router.url??"")}ngAfterViewInit(){let e=this.quickInputAnchorMainRef?.nativeElement;if(e===void 0)return;let n=()=>{this.userInput_DS.syncQuickInputMainBoundsFromMainElement(e),this.userInput_DS.clampFabOffsetsToMain(e)};n(),this.quickInputMainResizeObs=new ResizeObserver(n),this.quickInputMainResizeObs.observe(e)}ngOnDestroy(){super.ngOnDestroy(),this.quickInputMainResizeObs?.disconnect()}checkSetupAndRedirect(){return A(this,null,function*(){try{(yield this.setup_DS.getSetupStatus()).setupCompleted||this.router.navigate(["/setup"])}catch{}})}toggleSideNav(){this.sideNavOpen_$.update(e=>!e)}toggleSettingsSubmenu(){this.settingsSubmenuOpen_$.update(e=>!e)}toggleMaintenanceSubmenu(){this.maintenanceSubmenuOpen_$.update(e=>!e)}togglePocSubmenu(){this.pocSubmenuOpen_$.update(e=>!e)}isMaintenanceRoute(e){return e.startsWith("/model-registry")||e.startsWith("/cost-tracking")||e.startsWith("/costs")||e.startsWith("/embedding-registry")||e.startsWith("/document-library")||e.startsWith("/project-source")||e.startsWith("/errors")||e.startsWith("/host-runtime-mcp")||e.startsWith("/feedback")||e.startsWith("/logs")||e.startsWith("/workflow-settings")||e.startsWith("/mobile-app")||e.startsWith("/agent-instances")||e.startsWith("/terminals")||e.startsWith("/live-development-pipeline")||e.startsWith("/system-status")}reconnectSocket(){this.session_DS.reconnectSocket()}handleRunDiagnosis(){this.isDiagnosing_$()||(this.isDiagnosing_$.set(!0),this.session_DS.diagnoseConnection().then(e=>{this.mergeDiagnosisIntoLastError(e),this.isDiagnosing_$.set(!1)}).catch(e=>{this.mergeDiagnosisIntoLastError({diagnosisError:e instanceof Error?e.message:String(e)}),this.isDiagnosing_$.set(!1)}))}mergeDiagnosisIntoLastError(e){let n=this.lastSocketError_$();if(n!==null&&typeof n=="object"){let i=Y({},n);i.diagnosis=e,this.lastSocketError_$.set(i)}}static readSideNavOpenFromStorage(){return H.readString(Kn)!=="false"}static readNavSubmenuOpenFromStorage(e){return H.readString(e)==="true"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-main-frame"]],viewQuery:function(n,i){if(n&1&&Oe(Qo,5,ve),n&2){let s;Fe(s=Le())&&(i.quickInputAnchorMainRef=s.first)}},standalone:!0,features:[Gt,U],decls:43,vars:24,consts:[["quickInputAnchorMain",""],[1,"flex","flex-col","h-dvh","overflow-hidden"],[1,"shrink-0","h-14","min-h-[44px]","border-b","border-neonDefault","bg-ccapSurface","flex","items-center","justify-between","px-4","gap-2","overflow-visible","pt-[var(--sat)]"],[1,"flex","items-center","gap-2","min-w-0","flex-1"],["type","button",1,"p-2","-ml-2","rounded-md","text-neutral-400","hover:text-neutral-200","hover:bg-neutral-800","transition-colors","duration-200","flex-shrink-0",3,"click","title"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-6","h-6"],[1,"min-w-0"],[1,"text-lg","font-semibold","text-neutral-100"],[1,"ml-2","text-sm","text-neutral-400","gt-xs:inline","xs:hidden"],[1,"text-sm","font-medium","tracking-widest","text-neutral-400","uppercase","select-none","gt-xs:inline","xs:hidden"],[1,"flex","items-center","gap-2","flex-1","justify-end"],[1,"relative","flex","items-center","justify-center","group"],[1,"absolute","top-full","right-0","pt-2","z-50","opacity-0","group-hover:opacity-100","transition-opacity","duration-150","pointer-events-none","[&.tooltip-error]:group-hover:pointer-events-auto","w-max","max-w-[min(420px,calc(100vw-5rem))]"],[1,"rounded","px-1","py-1","text-xs","text-neutral-100","bg-neutral-700","shadow-md","border","border-red-500/70","w-full","max-w-[min(420px,calc(100vw-5rem))]"],[1,"whitespace-nowrap","rounded","px-2","py-1","text-xs","text-neutral-100","bg-neutral-700","shadow-md","border","border-neonDefault"],["type","button",1,"flex","items-center","justify-center","p-0.5","rounded-full","text-neutral-400","hover:text-neutral-200","transition-colors","duration-200","cursor-pointer",3,"click"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-green-500","shrink-0"],["aria-hidden","true",1,"inline-block","w-3","h-3","shrink-0","animate-spin","rounded-full","border-2","border-neonCyan/50","border-t-neonCyan"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-red-500","shrink-0"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-neutral-500","shrink-0"],["title","Client version",1,"text-sm","text-neutral-300"],[1,"text-neutral-500","font-normal","xs:hidden","gt-xs:inline"],["aria-hidden","true",1,"fixed","inset-0","z-30","bg-black/50","xs:block","gt-xs:hidden"],[1,"flex","flex-1","min-h-0"],[1,"shrink-0","border-r","border-neonDefault","bg-ccapSurface","overflow-y-auto","flex","flex-col","xs:fixed","xs:inset-y-0","xs:left-0","xs:z-40","xs:w-64","xs:max-w-[85vw]","xs:top-14","xs:bottom-0","xs:transition-transform","xs:duration-200","xs:ease-out","gt-xs:!translate-x-0","overflow-hidden","transition-[width]","duration-200","ease-out",3,"ngClass"],[1,"flex","flex-col","flex-1","min-h-0","p-2"],[1,"flex","flex-col","flex-1","min-h-0","min-w-0","relative","pb-[var(--sab)]"],[1,"absolute","top-0","left-0","z-10","flex","gap-1","p-2","rounded-br-md","border-b","border-r","border-neonDefault","bg-ccapSurface/95","shadow-sm","xs:hidden"],[1,"absolute","top-0","right-0","z-10","flex","gap-1","p-2","rounded-bl-md","border-b","border-l","border-neonDefault","bg-ccapSurface/95","shadow-sm"],[1,"flex","flex-col","flex-1","min-h-0","overflow-x-hidden","overflow-y-auto"],[1,"shrink-0","px-3","py-2","border-b","border-ccapAccent/40","bg-ccapAccent/10","text-sm","text-neutral-200","flex","flex-wrap","items-center","justify-between","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 19l-7-7 7-7"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M4 6h16M4 12h16M4 18h16"],[1,"rounded","px-1","py-1","text-xs","text-neutral-100","bg-neutral-700","shadow-md","border","border-red-500/70","w-full","max-w-[min(420px,calc(100vw-5rem))]",3,"click"],["type","button",1,"w-full","mb-1","px-2","py-1.5","text-xs","font-medium","rounded","bg-neonCyan/15","border","border-neonCyan/50","text-neonCyan","hover:bg-neonCyan/25","disabled:opacity-50","transition-colors",3,"click","disabled"],[1,"max-h-72","overflow-y-auto","overflow-x-hidden","[&_h2]:text-sm","[&_h2]:mb-0"],["sourceLabelOverride","WebSocket",3,"error"],[1,"text-neutral-500","text-[11px]","mt-1","px-1"],["aria-hidden","true",1,"fixed","inset-0","z-30","bg-black/50","xs:block","gt-xs:hidden",3,"click"],[1,"flex","flex-col","gap-0.5","flex-1","overflow-y-auto"],["routerLink","/","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3",3,"routerLinkActiveOptions"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-5","h-5","shrink-0"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"],["routerLink","/dark-office","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"],["routerLink","/project-management","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"],["routerLink","/session","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"],["title","Legal\xE1bb egy CCAP Session fut","aria-label","Legal\xE1bb egy CCAP Session fut",1,"inline-block","w-2","h-2","rounded-full","bg-yellow-400","animate-pulse","shrink-0"],["routerLink","/cc-session","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"],["title","Legal\xE1bb egy CC Session fut","aria-label","Legal\xE1bb egy CC Session fut",1,"inline-block","w-2","h-2","rounded-full","bg-yellow-400","animate-pulse","shrink-0"],["routerLink","/scheduler","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"],[1,"flex","flex-col","gap-0.5"],["type","button",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3","w-full","text-left",3,"click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"],[1,"ml-auto","shrink-0","transition-transform","duration-200"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 5l7 7-7 7"],[1,"flex","flex-col","gap-0.5","pl-4","ml-5","border-l","border-neutral-600"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 12a3 3 0 11-6 0 3 3 0 016 0z"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.049.58.025 1.193-.14 1.743"],["routerLink","/coordinator","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-4","h-4","shrink-0"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"],["routerLink","/orchestrator","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 10V3L4 14h7v7l9-11h-7z"],["routerLink","/voice-notes-poc","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m-4 0h8m-4-16a3 3 0 00-3 3v4a3 3 0 006 0V7a3 3 0 00-3-3z"],["routerLink","/ca-session","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"],["routerLink","/oc-session","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"],["routerLink","/consultant","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"],["routerLink","/master-control-remote-poc","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5.636 18.364a9 9 0 010-12.728m12.728 0a9 9 0 010 12.728m-9.9-2.829a5 5 0 010-7.07m7.072 0a5 5 0 010 7.07M13 12a1 1 0 11-2 0 1 1 0 012 0z"],["routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2",3,"routerLink","routerLinkActiveOptions"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2"],["routerLink","/live-development-pipeline","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M22 12h-4l-3 9L9 3l-3 9H2"],["routerLink","/model-registry","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"],["routerLink","/cost-tracking","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"],["routerLink","/cc-usage","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 19V6l3-3 3 3v13M5 21h14a2 2 0 002-2v-7l-7-7-7 7v7a2 2 0 002 2z"],["routerLink","/costs","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["routerLink","/embedding-registry","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"],["routerLink","/document-library","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"],["routerLink","/project-source","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"],["routerLink","/errors","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"],[1,"ml-auto","shrink-0","min-w-[1.25rem]","px-1.5","py-0.5","rounded-full","text-xs","font-semibold","text-neutral-950","bg-amber-400","border","border-amber-500/80","text-center","leading-none"],["routerLink","/host-runtime-mcp","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"],["routerLink","/feedback","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"],["routerLink","/logs","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"],["routerLink","/workflow-settings","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"],["routerLink","/terminals","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["routerLink","/agent-instances","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["routerLink","/mobile-app","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z"],["type","button",1,"p-2","rounded-md","text-neutral-400","hover:text-neutral-200","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","justify-center",3,"title"],["type","button",1,"p-2","rounded-md","text-neutral-400","hover:text-neutral-200","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","justify-center",3,"click","title"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-5","h-5"],[1,"text-lg"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M4 6h16M4 10h16M4 14h16M4 18h16"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"],[1,"flex","items-center","gap-2","min-w-0"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-ccapAccent","animate-pulse","shrink-0"],[1,"truncate"],[1,"text-neutral-400"],["routerLink","/model-registry",1,"shrink-0","text-ccapAccent","hover:underline","font-medium","text-xs","uppercase","tracking-wide"]],template:function(n,i){if(n&1){let s=I();o(0,"div",1)(1,"header",2)(2,"div",3)(3,"button",4),m("click",function(){return f(s),h(i.toggleSideNav())}),C(4,Wo,2,0,":svg:svg",5)(5,Go,2,0,":svg:svg",5),r(),o(6,"div",6)(7,"span",7),c(8,"CCAP"),r(),o(9,"span",8),c(10,"Agentic AI System"),r()()(),o(11,"span",9),c(12,"Command Center"),r(),o(13,"div",10),b(14,"app-ntf-tray"),o(15,"div",11)(16,"div",12),C(17,Yo,7,3,"div",13)(18,Ko,2,1,"span",14),r(),o(19,"button",15),m("click",function(){return f(s),h(i.reconnectSocket())}),C(20,Xo,1,0,"span",16)(21,Zo,1,0,"span",17)(22,Jo,1,0,"span",18)(23,er,1,0,"span",19),r()(),o(24,"span",20)(25,"span",21),c(26,"Version"),r(),c(27),r()()(),C(28,tr,1,0,"div",22),o(29,"div",23)(30,"aside",24),C(31,pr,58,25,"nav",25),r(),o(32,"main",26,0),b(34,"app-ccap-app-update-banner")(35,"app-ccap-server-update-banner")(36,"app-ccap-error-popup"),C(37,hr,3,0,"div",27)(38,yr,3,0,"div",28),o(39,"div",29),C(40,Ir,8,1,"div",30),b(41,"router-outlet"),r()()(),b(42,"app-ccap-mobile-server-setup"),r()}if(n&2){let s;l(3),_("title",i.sideNavOpen_$()?"Men\xFC bez\xE1r\xE1sa":"Men\xFC megnyit\xE1sa"),q("aria-label",i.sideNavOpen_$()?"Men\xFC bez\xE1r\xE1sa":"Men\xFC megnyit\xE1sa"),l(),u(i.sideNavOpen_$()?4:5),l(12),O("tooltip-error",i.socketStatus_$()==="error"&&i.lastSocketError_$()),l(),u(i.socketStatus_$()==="error"&&i.lastSocketError_$()?17:18),l(2),q("aria-label",i.socketStatusLabel_$()),l(),u((s=i.socketStatus_$())==="connected"?20:s==="connecting"?21:s==="error"?22:23),l(7),E(" v",i.version," "),l(),u(i.sideNavOpen_$()?28:-1),l(2),O("w-64",i.sideNavOpen_$())("w-0",!i.sideNavOpen_$())("border-r-0",!i.sideNavOpen_$()),_("ngClass",rt(21,zo,!i.sideNavOpen_$(),i.sideNavOpen_$())),l(),u(i.sideNavOpen_$()?31:-1),l(6),u(i.closedPanelsLeftStrip_$().length>0?37:-1),l(),u(i.layoutOverlay_CS.closedPanelsRight_$().length>0?38:-1),l(2),u(i.modelTestRunGlobalBannerVisible_$()?40:-1)}},dependencies:[j,le,Ce,sn,lt,ln,ie,Ln,jn,On,Fn,Yn],encapsulation:2})}return t})();function Er(t,a){let e=t>>>0,n=a>>>0;return e*2654435761+n*1597334677+1013904223>>>0||1}function wr(t){return t>>>0||1}function Ar(t){return t.value=t.value*1664525+1013904223>>>0,t.value}function z(t,a,e){let n=e-a+1,i=Ar(t);return a+i%n}function _e(t,a,e){return t<a?a:t>e?e:t}function Pr(t){let a=z(t,0,99);return a<40?z(t,-3,3):a<70?z(t,-6,6):a<80?z(t,-11,-5):a<90?z(t,5,11):a<95?z(t,-20,-12):z(t,12,20)}function $r(t,a,e,n){let i=_e(a,e,n);if(i<40||i>60||z(t,1,100)>55)return i;let s=z(t,0,1)===0,p=z(t,5,13),x=_e(s?i-p:i+p,e,n);return x<40||x>60?x:_e(s?i+p:i-p,e,n)}function ti(t){let a=[];for(let e=0;e<t.length;e++){let n=t[e],i=a[a.length-1];i?.x===n.x&&i.y===n.y||a.push(n)}return a}function Mr(t){let a=ti(t);if(a.length===0)return"M 0 0 L 0 0";let e=`M ${a[0].x} ${a[0].y}`;for(let n=1;n<a.length;n++)e+=` L ${a[n].x} ${a[n].y}`;return e}function Dr(t){if(t.length===0)return[];let a=[{x:t[0].x,y:t[0].y,cumLen:0}],e=0;for(let n=1;n<t.length;n++){let i=t[n].x-t[n-1].x,s=t[n].y-t[n-1].y;e+=Math.hypot(i,s),a.push({x:t[n].x,y:t[n].y,cumLen:e})}return a}function Rr(t){let e=50+z(t,-5,5),n=z(t,70,90),i=z(t,14,26),s=z(t,4,11),p=n-s,x=[{x:0,y:e},{x:i,y:e}],g=i,T=e,w=0;for(;g<p-1&&w<56;){w+=1;let Si=Pr(t),re=_e(T+Si,30,70);if(re===T){let be=z(t,1,3);re=_e(T+(z(t,0,1)===0?-be:be),30,70)}re=$r(t,re,30,70);let Re=re-T,At=Math.abs(Re),Ge=g+At;if(Ge>p){let be=p-g;if(be<1.5)break;At=Math.floor(be);let ge=Re>=0?1:-1;re=_e(T+ge*At,30,70),Re=re-T,Ge=g+Math.abs(Re)}if(Math.abs(Re)<1e-4)continue;x.push({x:Ge,y:re}),g=Ge,T=re;let jt=p-g;if(jt>1e-4){let ge=Math.min(12,Math.floor(jt));if(ge>=3){let vi=z(t,3,ge);g=Math.min(g+vi,p),x.push({x:g,y:T})}else ge>=1&&(g=Math.min(g+ge,p),x.push({x:g,y:T}))}}let M=z(t,4,8),F=z(t,4,8),D=x[x.length-1];x.push({x:n,y:D.y});let X=D.y,Z=n,J=_e(X-M,8,X-1),Nt=_e(X+F,X+1,92),hi=`M ${Z} ${X} L ${Z} ${J}`,xi=`M ${Z} ${X} L ${Z} ${Nt}`,bi=ti(x),We=Dr(bi),gi=We.length>0?We[We.length-1].cumLen:0;return{main:Mr(x),wallRippleUp:hi,wallRippleDown:xi,mainPoints:We,totalLength:gi,wallX:Z,wallY:X,wallRippleUpEndY:J,wallRippleDownEndY:Nt}}var he=class{static buildTraceForSpawnId(a){if(a<1)return{main:"M 0 0 L 0 0",wallRippleUp:"M 0 0 L 0 0",wallRippleDown:"M 0 0 L 0 0",mainPoints:[{x:0,y:0,cumLen:0}],totalLength:0,wallX:0,wallY:0,wallRippleUpEndY:0,wallRippleDownEndY:0};let e=Er(a,0),n={value:wr(e)};return Rr(n)}static getPointAtDistance(a,e){if(a.length===0)return{x:0,y:0};if(e<=0)return{x:a[0].x,y:a[0].y};let n=a[a.length-1];if(e>=n.cumLen)return{x:n.x,y:n.y};let i=0,s=a.length-1;for(;s-i>1;){let w=Math.floor((i+s)/2);a[w].cumLen<=e?i=w:s=w}let p=a[i],x=a[s],g=x.cumLen-p.cumLen;if(g<1e-9)return{x:p.x,y:p.y};let T=(e-p.cumLen)/g;return{x:p.x+T*(x.x-p.x),y:p.y+T*(x.y-p.y)}}};function Nr(t,a){t&1&&(o(0,"div",13),b(1,"app-ccap-error-display",17),r()),t&2&&(l(),_("error",a))}function jr(t,a){t&1&&c(0," Teszt\u2026 ")}function Qr(t,a){t&1&&c(0," Kapcsolat teszt ")}function Br(t,a){if(t&1&&(o(0,"div",18)(1,"div",20),c(2,"\u2713 Szerver el\xE9rhet\u0151"),r(),o(3,"div",21),c(4),r()()),t&2){let e=d();l(4),ae(" GET ",e.targetUrl," \u2014 ",e.durationMs,"ms ")}}function zr(t,a){if(t&1&&(o(0,"div",19),b(1,"app-ccap-error-display",22),r()),t&2){let e=d();l(),_("error",e.errorForDisplay)}}function Hr(t,a){if(t&1&&C(0,Br,5,2,"div",18)(1,zr,2,1,"div",19),t&2){let e=a;u(e.isSuccess?0:e.errorForDisplay?1:-1)}}function qr(t,a){if(t&1){let e=I();o(0,"p",12),c(1),r(),C(2,Nr,2,1,"div",13),o(3,"div",14)(4,"button",15),m("click",function(){f(e);let i=d(3);return h(i.handleTestConnection())}),C(5,jr,1,0)(6,Qr,1,0),r(),o(7,"button",16),m("click",function(){f(e);let i=d(3);return h(i.handleResetServerUrl())}),c(8," Szerver \xFAjrakonfigur\xE1l\xE1sa "),r()(),C(9,Hr,2,1)}if(t&2){let e,n,i=d(3);l(),E(" ",i.configuredServerUrl_$()," "),l(),u((e=i.bootStatusError_$())?2:-1,e),l(2),_("disabled",i.isTestingConnection_$()),l(),u(i.isTestingConnection_$()?5:6),l(4),u((n=i.diagnosticResult_$())?9:-1,n)}}function Wr(t,a){if(t&1){let e=I();o(0,"div",4)(1,"div",6),b(2,"span",7),o(3,"div",8)(4,"p",9),c(5,"Server unavailable"),r(),o(6,"p",10),c(7," Use the status control in the header to reconnect. "),r(),C(8,qr,10,5),r(),o(9,"button",11),m("click",function(){f(e);let i=d(2);return h(i.handleToggleOverlaySubdued())}),c(10," Dim overlay "),r()()()}if(t&2){let e=d(2);l(8),u(e.isCapacitorNative_$()?8:-1)}}function Gr(t,a){if(t&1){let e=I();o(0,"button",23),m("click",function(){f(e);let i=d(2);return h(i.handleToggleOverlaySubdued())}),c(1," Full overlay "),r()}}function Yr(t,a){if(t&1&&(o(0,"div",0)(1,"div",1),b(2,"div",2)(3,"canvas",3),C(4,Wr,11,1,"div",4)(5,Gr,2,0,"button",5),r()()),t&2){let e=d();l(),O("ccap-server-unavailable-dim-stack--subdued",e.isOverlaySubdued_$())("ccap-circuit--reduced-motion",e.circuitReducedMotion_$()),l(),O("ccap-server-unavailable-scrim--subdued",e.isOverlaySubdued_$()),l(2),u(e.isOverlaySubdued_$()?5:4)}}var ze=100,Kr=96/2.54,St=(()=>{class t{session_DS=y(Pe);_injector=y(Xe);_hostRef=y(ve);isOverlaySubdued_$=S(!1);isCapacitorNative_$=S(typeof window.Capacitor<"u"&&window.Capacitor.isNativePlatform?.()===!0);showOverlay_$=v(()=>this.session_DS.socketStatus_$()===Be.error);circuitTravelLanes_$=S([]);circuitReducedMotion_$=S(!1);_laneSeq=0;_lanes=[];_rafId=null;_lastRafApplyMs=null;_laneTeardownTimeouts=new Map;_canvasCtx=null;_canvasEl=null;_cachedDpr=1;_cachedCssW=1;_cachedCssH=1;_trailMaxUserUnits=50;handleToggleOverlaySubdued(){this.isOverlaySubdued_$.update(e=>!e)}isTestingConnection_$=S(!1);diagnosticResult_$=S(null);handleTestConnection(){return A(this,null,function*(){if(!this.isTestingConnection_$()){this.isTestingConnection_$.set(!0),this.diagnosticResult_$.set(null);try{let e=yield Me.probeServer(B.baseUrl);this.diagnosticResult_$.set(e)}finally{this.isTestingConnection_$.set(!1)}}})}configuredServerUrl_$=S(B.baseUrl);bootStatusError_$=S(this.readBootStatusError());readBootStatusError(){let e=H.readJson("ccap-boot-status-error",null);if(e==null||typeof e!="object"||!("targetUrl"in e)||!("errorName"in e))return null;let n=e,i=typeof n.errorMessage=="string"?n.errorMessage:"",s=typeof n.errorName=="string"?n.errorName:"unknown";return{message:i?`Indul\xE1skor a szerver nem v\xE1laszolt (${s}): ${i}`:`Indul\xE1skor a szerver nem v\xE1laszolt (${s})`,errorCode:`CCAP-NET-BOOT-${s.toUpperCase()}`,additionalContent:n}}handleResetServerUrl(){H.remove("ccap-server-url"),this.reloadApplication()}reloadApplication(){window.location.reload()}constructor(){W(e=>{let n=globalThis.window;if(typeof n<"u"&&typeof n.matchMedia=="function"){let i=n.matchMedia("(prefers-reduced-motion: reduce)"),s=()=>{this.circuitReducedMotion_$.set(i.matches)};s(),i.addEventListener("change",s),e(()=>{i.removeEventListener("change",s)})}},{allowSignalWrites:!0}),W(e=>{if(!this.showOverlay_$()){this.stopAllAnimation(),this.isOverlaySubdued_$.set(!1);return}let i=globalThis.document,s=()=>{if(!i||!i.hidden){this._lanes.length>0&&this.ensureRafLoop();return}this.stopRafOnly()};i&&i.addEventListener("visibilitychange",s),this.spawnLane(),Je(()=>{this.showOverlay_$()&&(this.initCanvas(),this.ensureRafLoop())},{injector:this._injector});let x=setInterval(()=>{this.spawnLane()},1e3);e(()=>{i&&i.removeEventListener("visibilitychange",s),clearInterval(x),this.stopAllAnimation()})},{allowSignalWrites:!0}),W(e=>{if(!this.showOverlay_$())return;let i=()=>{this.handleResize()};globalThis.window.addEventListener("resize",i),e(()=>{globalThis.window.removeEventListener("resize",i)})},{allowSignalWrites:!0})}spawnLane(){if(!this.showOverlay_$()||globalThis.document?.hidden)return;this._laneSeq+=1;let n=this._laneSeq,i=`lane-${n}`,s=he.buildTraceForSpawnId(n),p={trackId:i,pathSeedId:n,main:s.main,points:s.mainPoints,totalLength:s.totalLength,wallX:s.wallX,wallY:s.wallY,wallRippleUpEndY:s.wallRippleUpEndY,wallRippleDownEndY:s.wallRippleDownEndY,startTimeMs:0,wallRippleActive:!1,didScheduleRippleAndTeardown:!1};this._lanes.push(p);let x=5;for(;this._lanes.length>x;){let g=this._lanes.shift();g&&this.clearLaneTeardownTimer(g.trackId)}this.circuitTravelLanes_$.set([...this._lanes]),this.ensureRafLoop()}enqueueLaneTeardown(e){if(this._laneTeardownTimeouts.has(e))return;let n=1420,i=setTimeout(()=>{this._laneTeardownTimeouts.delete(e),this.showOverlay_$()&&(this._lanes=this._lanes.filter(s=>s.trackId!==e),this.circuitTravelLanes_$.set([...this._lanes]))},n);this._laneTeardownTimeouts.set(e,i)}clearLaneTeardownTimer(e){let n=this._laneTeardownTimeouts.get(e);n!==void 0&&(clearTimeout(n),this._laneTeardownTimeouts.delete(e))}initCanvas(){let n=this._hostRef.nativeElement.querySelector("canvas");n&&(this._canvasEl=n,this._canvasCtx=n.getContext("2d"),this.handleResize())}handleResize(){let e=this._canvasEl;if(!e)return;let n=globalThis.devicePixelRatio||1,i=Math.max(e.clientWidth,1),s=Math.max(e.clientHeight,1);e.width=Math.round(i*n),e.height=Math.round(s*n),this._cachedDpr=n,this._cachedCssW=i,this._cachedCssH=s,this.updateTrailMaxUserUnits(Math.max(i,s))}updateTrailMaxUserUnits(e){let n=Math.max(e,1),i=37.5*Kr;this._trailMaxUserUnits=i/n*ze}ensureRafLoop(){if(this._rafId!==null||globalThis.document?.hidden)return;let n=i=>{if(globalThis.document?.hidden){this.stopRafOnly();return}if(!this.showOverlay_$()){this.stopRafOnly();return}if(this._lanes.length===0){this.stopRafOnly();return}if(this.circuitReducedMotion_$()){let g=33;if(this._lastRafApplyMs!==null&&i-this._lastRafApplyMs<g){this._rafId=requestAnimationFrame(n);return}}this._lastRafApplyMs=i;for(let g of this._lanes)g.startTimeMs===0&&(g.startTimeMs=i);for(let g of this._lanes){if(g.startTimeMs===0)continue;let T=i-g.startTimeMs;if(!g.didScheduleRippleAndTeardown){let w=1722;T>=w&&(g.wallRippleActive=!0,g.didScheduleRippleAndTeardown=!0,this.enqueueLaneTeardown(g.trackId))}}this.drawFrame(i);let p=2118;this._lanes.some(g=>g.startTimeMs===0?!1:i-g.startTimeMs<p)?this._rafId=requestAnimationFrame(n):this._rafId=null};this._rafId=requestAnimationFrame(n)}stopRafOnly(){this._rafId!==null&&(cancelAnimationFrame(this._rafId),this._rafId=null),this._lastRafApplyMs=null}stopAllAnimation(){this.stopRafOnly(),this._laneTeardownTimeouts.forEach(e=>{clearTimeout(e)}),this._laneTeardownTimeouts.clear(),this._lanes=[],this.circuitTravelLanes_$.set([]),this._laneSeq=0,this._canvasCtx=null,this._canvasEl=null}drawFrame(e){let n=this._canvasCtx;if(!n)return;let i=this._cachedDpr,s=this._cachedCssW,p=this._cachedCssH;n.setTransform(i,0,0,i,0,0),n.clearRect(0,0,s,p);let x=p>s,g,T;x?(n.translate(0,p),n.rotate(-Math.PI/2),g=p/ze,T=(s-ze*g)/2):(g=s/ze,T=(p-ze*g)/2),n.save(),this.isOverlaySubdued_$()&&(n.globalAlpha=.38);for(let w of this._lanes)w.startTimeMs!==0&&this.drawLane(n,w,e,g,T);n.restore()}drawLane(e,n,i,s,p){let x=i-n.startTimeMs,g=1650,T,w,M;if(x<g)w=!0,T=x/g*n.totalLength,M=1;else{w=!1,T=n.totalLength;let F=x-g;if(F<420){let D=F/420;M=Math.max(0,1-D*D)}else M=0}if(M>0&&n.points.length>=2){let F=this._trailMaxUserUnits*M,D=Math.max(0,T-F);this.drawTrail(e,n.points,D,T,s,p,M)}if(w){let F=he.getPointAtDistance(n.points,T);this.drawHead(e,F.x,F.y,s,p)}if(n.wallRippleActive){let F=g+72,D=x-F;D>=0&&D<=520&&this.drawWallRipple(e,n,D,s,p)}}drawTrail(e,n,i,s,p,x,g){if(s-i<.01||n.length<2)return;let T=he.getPointAtDistance(n,i),w=he.getPointAtDistance(n,s),M=T.x*p,F=T.y*p+x,D=w.x*p,X=w.y*p+x,Z=e.createLinearGradient(M,F,D,X);Z.addColorStop(0,"rgba(34, 211, 238, 0.1)"),Z.addColorStop(.48,"rgba(56, 189, 248, 0.52)"),Z.addColorStop(1,"rgba(165, 243, 252, 0.98)"),e.save(),e.globalAlpha=e.globalAlpha*g,e.strokeStyle=Z,e.lineWidth=.26*p,e.lineCap="butt",e.lineJoin="round",e.beginPath(),e.moveTo(M,F);for(let J=0;J<n.length;J++)if(!(n[J].cumLen<=i)){if(n[J].cumLen>=s)break;e.lineTo(n[J].x*p,n[J].y*p+x)}e.lineTo(D,X),e.stroke(),e.restore()}drawHead(e,n,i,s,p){let x=n*s,g=i*s+p,T=Math.max(.38*s,.5);e.save(),e.shadowBlur=Math.max(1.2*s,2),e.shadowColor="rgba(34, 211, 238, 0.7)";let w=e.createRadialGradient(x,g,0,x,g,T);w.addColorStop(0,"rgba(255, 255, 255, 1)"),w.addColorStop(.42,"rgba(186, 230, 254, 1)"),w.addColorStop(1,"rgba(56, 189, 248, 1)"),e.fillStyle=w,e.beginPath(),e.arc(x,g,T,0,Math.PI*2),e.fill(),e.restore()}drawWallRipple(e,n,i,s,p){let g=Math.min(i/520,1),T=1-(1-g)*(1-g),w;if(T<.1?w=T/.1*.85:T<.3?w=.85+(T-.1)/(.3-.1)*(.5-.85):w=.5*(1-(T-.3)/(1-.3)),w<.005)return;let M=n.wallX*s,F=n.wallY*s+p,D=n.wallRippleUpEndY*s+p,X=n.wallRippleDownEndY*s+p;e.save(),e.globalAlpha=e.globalAlpha*w,e.lineWidth=.36*s,e.lineCap="butt",e.shadowBlur=Math.max(.8*s,2),e.shadowColor="rgba(34, 211, 238, 0.6)";let Z=[{endY:D,color:"rgb(56, 189, 248)"},{endY:X,color:"rgb(34, 211, 238)"}];for(let J of Z)e.strokeStyle=J.color,e.beginPath(),e.moveTo(M,F),e.lineTo(M,F+(J.endY-F)*T),e.stroke();e.restore()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-server-unavailable-overlay"]],standalone:!0,features:[U],decls:1,vars:1,consts:[[1,"absolute","inset-0","flex","items-center","justify-center","pointer-events-none"],[1,"ccap-server-unavailable-dim-stack","absolute","inset-0","z-0","flex","flex-col","items-center","justify-center"],["aria-hidden","true",1,"ccap-server-unavailable-scrim","absolute","inset-0","z-0"],["aria-hidden","true",1,"ccap-circuit-canvas","absolute","inset-0","z-0","pointer-events-none"],["role","status","aria-live","polite",1,"relative","z-[2]","px-4","max-w-[min(520px,calc(100vw-2rem))]","w-full","flex","justify-center","isolation","isolate"],["type","button","aria-label","Toggle dimming of the server unavailable overlay",1,"ccap-server-unavailable-overlay-dim-toggle","ccap-server-unavailable-overlay-dim-toggle--subdued","pointer-events-auto","absolute","top-3","left-3","z-[2]","shrink-0","rounded-md","border","border-neonCyan/60","bg-neutral-900/85","px-3","py-1.5","text-xs","font-medium","text-neutral-200","shadow-md","hover:border-neonCyan","hover:bg-neutral-900","hover:text-neutral-50","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-neonCyan"],[1,"ccap-server-unavailable-status","pointer-events-auto","flex","flex-col","items-center","gap-4","rounded-xl","border","border-neonCyan/30","bg-neutral-950/86","px-6","py-5","shadow-xl","w-full","sm:w-auto","backdrop-blur-md"],["aria-hidden","true",1,"inline-block","w-10","h-10","shrink-0","animate-spin","rounded-full","border-2","border-neonCyan/50","border-t-neonCyan"],[1,"text-center","max-w-[min(480px,calc(100vw-4rem))]"],[1,"text-lg","font-semibold","text-neutral-100"],[1,"text-sm","text-neutral-400","mt-1"],["type","button","aria-label","Toggle dimming of the server unavailable overlay",1,"ccap-server-unavailable-overlay-dim-toggle","pointer-events-auto","shrink-0","rounded-md","border","border-neonCyan/60","bg-neutral-900/85","px-3","py-1.5","text-xs","font-medium","text-neutral-200","shadow-md","hover:border-neonCyan","hover:bg-neutral-900","hover:text-neutral-50","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-neonCyan","backdrop-blur-sm",3,"click"],[1,"text-[11px]","font-mono","text-neutral-500","mt-2","break-all"],[1,"mt-2","text-left","pointer-events-auto"],[1,"flex","flex-wrap","justify-center","gap-2","mt-3"],["type","button",1,"rounded-md","border","border-neonCyan/60","bg-neonCyan/15","px-3","py-1.5","text-xs","font-medium","text-neonCyan","hover:bg-neonCyan/25","transition-colors","pointer-events-auto","disabled:opacity-40","disabled:cursor-not-allowed",3,"click","disabled"],["type","button",1,"rounded-md","border","border-neonCyan/60","bg-neonCyan/15","px-3","py-1.5","text-xs","font-medium","text-neonCyan","hover:bg-neonCyan/25","transition-colors","pointer-events-auto",3,"click"],["sourceLabelOverride","Indul\xE1si szerver probe",3,"error"],[1,"mt-3","rounded-md","border","border-emerald-500/60","bg-emerald-500/10","px-3","py-2","text-[11px]","text-emerald-200","text-left","pointer-events-auto"],[1,"mt-3","text-left","pointer-events-auto"],[1,"font-semibold","mb-1"],[1,"font-mono","text-[10px]","text-neutral-400","break-all"],["sourceLabelOverride","Kapcsolat teszt",3,"error"],["type","button","aria-label","Toggle dimming of the server unavailable overlay",1,"ccap-server-unavailable-overlay-dim-toggle","ccap-server-unavailable-overlay-dim-toggle--subdued","pointer-events-auto","absolute","top-3","left-3","z-[2]","shrink-0","rounded-md","border","border-neonCyan/60","bg-neutral-900/85","px-3","py-1.5","text-xs","font-medium","text-neutral-200","shadow-md","hover:border-neonCyan","hover:bg-neutral-900","hover:text-neutral-50","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-neonCyan",3,"click"]],template:function(n,i){n&1&&C(0,Yr,6,7,"div",0),n&2&&u(i.showOverlay_$()?0:-1)},dependencies:[j,ie],styles:[`@charset "UTF-8";[_nghost-%COMP%]{display:block;position:fixed;inset:0;z-index:58;pointer-events:none}.ccap-server-unavailable-scrim[_ngcontent-%COMP%]{background-color:#0009;transition:background-color .3s ease-out}.ccap-server-unavailable-scrim.ccap-server-unavailable-scrim--subdued[_ngcontent-%COMP%]{background-color:#00000038}.ccap-circuit-canvas[_ngcontent-%COMP%]{width:100%;height:100%}.ccap-server-unavailable-dim-stack.ccap-circuit--reduced-motion[_ngcontent-%COMP%] .animate-spin[_ngcontent-%COMP%], .ccap-server-unavailable-dim-stack--subdued[_ngcontent-%COMP%] .animate-spin[_ngcontent-%COMP%]{animation:none}.ccap-server-unavailable-status--subdued[_ngcontent-%COMP%]{background-color:#0a0a0c9e;border-color:#22d3ee38;box-shadow:0 8px 28px #00000047}.ccap-server-unavailable-overlay-dim-toggle--subdued[_ngcontent-%COMP%]{background-color:#17171761;border-color:#22d3ee59;color:#f5f5f5d1}
|
|
1
|
+
import{a as we,b as Ct}from"./chunk-ZXZYTEBK.js";import{e as Dn}from"./chunk-D2YJ6ZB6.js";import{a as ht}from"./chunk-AOG3C4MB.js";import{a as An,b as $n}from"./chunk-ZB3FCA3E.js";import{a as $e}from"./chunk-MQGZMZG3.js";import{a as ft}from"./chunk-Z4OXAMEA.js";import{a as oe}from"./chunk-YRVQSWSZ.js";import{a as gn}from"./chunk-VA24IMJT.js";import{a as rn,c as Pe}from"./chunk-QUTV6V23.js";import"./chunk-CA2S6A5N.js";import{b as En}from"./chunk-ZKIPL7J4.js";import"./chunk-C5SF72NF.js";import"./chunk-JOP5IVM2.js";import{a as kn}from"./chunk-K2LUZEU7.js";import{a as In}from"./chunk-CGYDBFFX.js";import{a as wn}from"./chunk-ECCH2DHZ.js";import"./chunk-32TKSQQ4.js";import{a as Sn}from"./chunk-PKJ7Y62N.js";import{a as bn,b as yn}from"./chunk-KZGPAAZC.js";import{b as vn}from"./chunk-5PH776OB.js";import"./chunk-3WAVQMV4.js";import"./chunk-UFBTR2BG.js";import"./chunk-RE5XOANX.js";import"./chunk-K4J73VA4.js";import"./chunk-ROLVKMOV.js";import{a as Pn,c as Mn}from"./chunk-2NU642AU.js";import"./chunk-GQJGST2S.js";import"./chunk-LSKYY36G.js";import"./chunk-GHCL3MSY.js";import{a as Tn}from"./chunk-CFMCTGZ2.js";import"./chunk-SHWCVDPA.js";import"./chunk-3L2A6OYA.js";import"./chunk-V3VQWJQL.js";import{d as Be,e as mt}from"./chunk-BPXKOVJB.js";import{a as Ae}from"./chunk-FLAJXIYW.js";import{b as ct,c as ce,f as de,i as pe,k as dn,n as dt,o as pt,p as ut,q as pn,r as un,t as _n,v as te}from"./chunk-EO4DNTT4.js";import{a as mn,b as Pt,c as Te,d as je,e as Qe,g as Cn,h as fn,i as G,k as ie}from"./chunk-OEP5AH6P.js";import{a as H}from"./chunk-5UPNU54P.js";import{i as xn,j as ne}from"./chunk-HWDURMDH.js";import{A as _t,B as Ee,C as ue,I as B,N as hn,p as Ne,w as $t,z as fe}from"./chunk-WJQ3I2JP.js";import{$a as ke,Aa as Fe,Ab as nn,Ba as Le,Bb as on,C as y,D as R,Db as an,E as Ke,Fa as c,Fb as sn,Ga as P,Gb as st,Ha as E,Hb as lt,Ia as ae,Ib as ln,J as f,Jb as cn,K as h,Kb as Ce,L as k,M as $,Ma as nt,Na as it,O as Xe,Oa as ot,P as Ht,Q as me,S as Ze,Ta as U,U as qt,Ua as Yt,V as ve,Va as ye,Wa as rt,Xa as Kt,Y as Wt,Z as l,a as Y,aa as S,ab as Xt,b as se,bb as Ve,ca as Gt,da as C,ea as Je,fa as q,ga as _,h as Ue,ha as et,hb as v,ia as O,jb as W,k as A,la as u,mb as le,na as tt,nb as Ie,o as Qt,oa as V,p as Se,pa as N,pb as at,qa as o,ra as r,sa as b,t as Bt,u as zt,ua as I,ub as j,va as m,wa as d,wb as Zt,xb as Jt,y as ee,yb as en,z as Ye,za as Oe,zb as tn}from"./chunk-TBMJSIBB.js";var wt=Ue(Ne());var Rn=Ue(Ne());var Un=(()=>{class t{socket_CS=y(mt);presence_DS=y(bn);subscription=null;initialize(){this.subscription||(this.subscription=this.socket_CS.event$.subscribe(e=>{e.event==="instance:presence-update"&&this.presence_DS.refreshNow().catch(n=>{Rn.DyFM_Log.warn(`[CCAP] ExS_InstancePresenceSubscriber_CS: refreshNow failed (non-fatal): ${n instanceof Error?n.message:String(n)}`)})}))}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yi(t,a){if(t&1&&(o(0,"span",7),c(1),r()),t&2){let e=d(2);_("title",e.updater_CS.lastError_$()),l(),E(" ",e.updater_CS.lastError_$()," ")}}function ki(t,a){if(t&1){let e=I();o(0,"div",0)(1,"div",1),b(2,"span",2),o(3,"span",3),c(4," \xDAj app verzi\xF3 el\xE9rhet\u0151: "),o(5,"span",4),c(6),r(),o(7,"span",5),c(8),r()()(),o(9,"div",6),C(10,yi,2,2,"span",7),o(11,"button",8),m("click",function(){f(e);let i=d();return h(i.handleInstall())}),c(12),r()()()}if(t&2){let e=d();l(6),E("v",e.versionCheck_CS.latestPackageVersion_$(),""),l(2),E(" (jelenleg v",e.currentVersion,")"),l(2),u(e.updater_CS.lastError_$()?10:-1),l(),_("disabled",e.isInstallDisabled_$()),l(),E(" ",e.installButtonLabel_$()," ")}}var On=(()=>{class t{versionCheck_CS=y(vn);updater_CS=y(Ct);currentVersion=B.version;installButtonLabel_$=v(()=>{let e=this.updater_CS.phase_$();return e===we.downloading?"Let\xF6lt\xE9s\u2026":e===we.installing?"Telep\xEDt\xE9s\u2026":e===we.failed?"\xDAjra pr\xF3b\xE1l\xE1s":"Telep\xEDt\xE9s"});isInstallDisabled_$=v(()=>{let e=this.updater_CS.phase_$();return e===we.downloading||e===we.installing});handleInstall(){this.updater_CS.startUpdate()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-app-update-banner"]],standalone:!0,features:[U],decls:1,vars:1,consts:[[1,"shrink-0","border-b","border-ccapAccent/40","bg-ccapAccent/10","px-3","py-2","text-sm","text-neutral-200","flex","flex-wrap","items-center","justify-between","gap-2"],[1,"flex","items-center","gap-2","min-w-0"],["aria-hidden","true",1,"inline-block","w-2","h-2","rounded-full","bg-ccapAccent","animate-pulse","shrink-0"],[1,"truncate"],[1,"font-mono"],[1,"text-neutral-400"],[1,"flex","items-center","gap-2","shrink-0"],[1,"text-xs","text-red-400","max-w-[200px]","truncate",3,"title"],["type","button",1,"rounded-md","border","border-ccapAccent/60","bg-ccapAccent/15","px-3","py-1","text-xs","font-medium","text-ccapAccent","hover:bg-ccapAccent/25","disabled:opacity-40","disabled:cursor-not-allowed","transition-colors",3,"click","disabled"]],template:function(n,i){n&1&&C(0,ki,13,5,"div",0),n&2&&u(i.versionCheck_CS.updateAvailable_$()?0:-1)},encapsulation:2,changeDetection:0})}return t})();function Ii(t,a){t&1&&(b(0,"span",9),c(1," Friss\xEDt\xE9s ind\xEDt\xE1sa\u2026 "))}function Ti(t,a){t&1&&c(0," \u23F3 Server \xFAjraindul\u2026 ")}function Ei(t,a){t&1&&c(0," \u{1F504} Friss\xEDt\xE9s most ")}function wi(t,a){t&1&&(o(0,"p",6),c(1," \u26A0 Friss\xEDt\xE9s hiba: "),o(2,"span",10),c(3),r()()),t&2&&(l(3),P(a))}function Ai(t,a){if(t&1&&c(0),t&2){let e=d();E(" \u2713 ",e.message," ")}}function Pi(t,a){if(t&1&&c(0),t&2){let e=d();E(" \u2139 ",e.message," ")}}function $i(t,a){if(t&1&&c(0),t&2){let e=d();E(" \u26A0 ",e.message," ")}}function Mi(t,a){if(t&1&&(o(0,"p",11),C(1,Ai,1,1)(2,Pi,1,1)(3,$i,1,1),r()),t&2){let e=a;l(),u(e.status==="started"?1:e.status==="already-latest"?2:3)}}function Di(t,a){if(t&1&&C(0,Mi,4,1,"p",11),t&2){let e,n=d(3);u((e=n.versionInfo_DS.triggerResult_$())?0:-1,e)}}function Ri(t,a){t&1&&(o(0,"p",7),b(1,"span",12),c(2," V\xE1rakoz\xE1s a server visszaj\xF6vetel\xE9re (max 90s)\u2026 "),r())}function Ui(t,a){if(t&1&&(o(0,"p",8),c(1," \u2705 Friss\xEDtve "),o(2,"span",10),c(3),r(),c(4," \u2192 "),o(5,"span",10),c(6),r(),c(7," \u2014 oldal \xFAjrat\xF6lt\xE9se 5s m\xFAlva\u2026 "),r()),t&2){let e=a;l(3),E("v",e.oldVersion,""),l(3),E("v",e.newVersion,"")}}function Oi(t,a){t&1&&(o(0,"p",6),c(1," \u26A0 A friss\xEDt\xE9s 90s alatt nem fejez\u0151d\xF6tt be. Ellen\u0151rizd a server logot ("),o(2,"span",10),c(3,"~/.ccap/server.log"),r(),c(4,") vagy futtasd manu\xE1lisan: "),o(5,"span",13),c(6,"ccap --version"),r(),c(7,". "),r())}function Fi(t,a){if(t&1){let e=I();o(0,"div",0)(1,"span",1),c(2," UPDATE "),r(),o(3,"span",2),c(4),r(),o(5,"button",3),m("click",function(){f(e);let i=d(2);return h(i.handleTriggerUpdate())}),C(6,Ii,2,0)(7,Ti,1,0)(8,Ei,1,0),r(),o(9,"a",4),c(10," Settings "),r(),o(11,"button",5),m("click",function(){f(e);let i=d(2);return h(i.handleDismiss())}),c(12," \u2715 "),r(),C(13,wi,4,1,"p",6)(14,Di,1,1)(15,Ri,3,0,"p",7)(16,Ui,8,2,"p",8)(17,Oi,8,0,"p",6),r()}if(t&2){let e,n,i,s,p=d(),x=d();l(4),ae(" Server elavult: v",p.serverVersion," \u2192 v",p.npmLatestVersion,". "),l(),_("disabled",x.versionInfo_DS.triggering_$()||((e=x.versionInfo_DS.triggerResult_$())==null?null:e.status)==="started"),l(),u(x.versionInfo_DS.triggering_$()?6:((n=x.versionInfo_DS.triggerResult_$())==null?null:n.status)==="started"?7:8),l(7),u((i=x.versionInfo_DS.triggerError_$())?13:14,i),l(2),u(x.versionInfo_DS.pollingPostUpdate_$()?15:-1),l(),u((s=x.versionInfo_DS.triggerSucceeded_$())?16:-1,s),l(),u(x.versionInfo_DS.triggerTimedOut_$()?17:-1)}}function Li(t,a){if(t&1&&C(0,Fi,18,8,"div",0),t&2){let e=d();u(!e.dismissed_$()&&a.serverIsOutdated?0:-1)}}var Fn=(()=>{class t{versionInfo_DS=y(yn);dismissed_$=S(!1);ngOnInit(){this.versionInfo_DS.loadVersionInfo()}handleDismiss(){this.dismissed_$.set(!0)}handleTriggerUpdate(){return A(this,null,function*(){yield this.versionInfo_DS.triggerUpdate()})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-server-update-banner"]],standalone:!0,features:[U],decls:1,vars:1,consts:[[1,"relative","w-full","px-3","py-2","gt-xs:px-4","gt-xs:py-3","bg-amber-950/95","border-b","border-amber-700","text-amber-100","shadow-lg","flex","flex-wrap","items-center","gap-2","gt-xs:gap-3","text-xs","gt-xs:text-sm"],[1,"px-1.5","py-0.5","text-[10px]","uppercase","font-mono","tracking-wider","bg-amber-600","text-amber-950","rounded","shrink-0"],[1,"font-medium"],["type","button",1,"px-3","py-1.5","rounded","border","border-amber-400","bg-amber-700/40","text-amber-50","hover:bg-amber-600/60","hover:shadow-neon-glow-amber","transition-colors","duration-200","disabled:opacity-50","disabled:cursor-not-allowed","font-medium","shrink-0",3,"click","disabled"],["routerLink","/settings",1,"ml-auto","px-2","py-1","text-amber-200","hover:bg-amber-900/40","rounded","transition-colors","shrink-0"],["type","button","aria-label","Banner elrejt\xE9se",1,"px-2","py-1","text-amber-300","hover:bg-amber-900/40","rounded","transition-colors","shrink-0",3,"click"],[1,"basis-full","text-rose-300","text-xs","mt-1"],[1,"basis-full","text-amber-300","text-xs","mt-1","italic"],[1,"basis-full","text-emerald-300","text-xs","mt-1","font-semibold"],[1,"inline-block","w-3","h-3","mr-2","align-middle","border-2","border-amber-200/40","border-t-amber-100","rounded-full","animate-spin"],[1,"font-mono"],[1,"basis-full","text-amber-200","text-xs","mt-1"],[1,"inline-block","w-3","h-3","mr-1","align-middle","border-2","border-amber-300/40","border-t-amber-200","rounded-full","animate-spin"],[1,"font-mono","select-all"]],template:function(n,i){if(n&1&&C(0,Li,1,1),n&2){let s;u((s=i.versionInfo_DS.versionInfo_$())?0:-1,s)}},dependencies:[lt],encapsulation:2})}return t})();var Vi=(t,a)=>a.id;function Ni(t,a){if(t&1){let e=I();o(0,"div",4),m("click",function(){let i=f(e).$implicit,s=d(2);return h(s.selectError(i.id))}),b(1,"span",5),o(2,"span",6),c(3),r(),o(4,"button",7),m("click",function(i){let s=f(e).$implicit,p=d(2);return h(p.dismissNotification(i,s.id))}),k(),o(5,"svg",8),b(6,"path",9),r()()()}if(t&2){let e=a.$implicit;O("animate-slide-in-left",!e.isDismissing)("animate-slide-out-left",e.isDismissing),l(3),P(e.displayMessage)}}function ji(t,a){if(t&1&&(o(0,"div",0),V(1,Ni,7,5,"div",3,Vi),r()),t&2){let e=d();l(),N(e.globalError_CS.errors_$())}}var Ln=(()=>{class t{globalError_CS=y(ne);userInput_DS=y(G);constructor(){W(()=>{this.globalError_CS.selectedNotificationForModal_$()!==null?this.userInput_DS.pushQuickInputOverlayAreaContextByOverlayId(je.globalErrorDetailModal):this.userInput_DS.popQuickInputOverlayAreaContext(je.globalErrorDetailModal)},{allowSignalWrites:!0})}selectError(e){this.globalError_CS.selectError(e)}dismissNotification(e,n){e.stopPropagation(),this.globalError_CS.dismissNotification(n)}dismissSelected(){this.globalError_CS.dismissSelected()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-error-popup"]],standalone:!0,features:[U],decls:3,vars:12,consts:[[1,"absolute","top-3","left-3","z-50","flex","flex-col","gap-2","max-w-md","sm:max-w-lg","pointer-events-auto"],[3,"closed","isOpen","maxWidth","zIndex","backdropOpacity","headerBorderClass","closeOnBackdropClick","bodyFlexColumn"],[3,"error","errorClientSource","ng0600Diagnostics","ng0203Diagnostics"],["title","Kattint\xE1s a r\xE9szletek\xE9rt",1,"flex","items-center","gap-2","pl-3","pr-1.5","py-2","rounded-lg","border","border-neonRed/60","bg-neutral-800/95","shadow-lg","cursor-pointer","hover:border-neonRed","hover:bg-neutral-700/95","transition-colors","duration-150","backdrop-blur-sm",3,"animate-slide-in-left","animate-slide-out-left"],["title","Kattint\xE1s a r\xE9szletek\xE9rt",1,"flex","items-center","gap-2","pl-3","pr-1.5","py-2","rounded-lg","border","border-neonRed/60","bg-neutral-800/95","shadow-lg","cursor-pointer","hover:border-neonRed","hover:bg-neutral-700/95","transition-colors","duration-150","backdrop-blur-sm",3,"click"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-red-500","shrink-0","animate-pulse"],[1,"text-sm","text-red-300","flex-1","select-none","line-clamp-4","break-words","leading-snug","text-left"],["type","button","title","Bez\xE1r\xE1s","aria-label","\xC9rtes\xEDt\xE9s bez\xE1r\xE1sa",1,"p-1","rounded","text-neutral-500","hover:text-white","hover:bg-neutral-600","transition-colors","duration-150","shrink-0",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-3.5","h-3.5"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"]],template:function(n,i){if(n&1&&(C(0,ji,3,0,"div",0),o(1,"app-s-modal",1),m("closed",function(){return i.dismissSelected()}),b(2,"app-ccap-error-display",2),r()),n&2){let s,p,x,g;u(i.globalError_CS.errors_$().length>0?0:-1),l(),_("isOpen",!!i.globalError_CS.selectedNotificationForModal_$())("maxWidth","3xl")("zIndex","9999")("backdropOpacity","70")("headerBorderClass","border-neonRed/50")("closeOnBackdropClick",!1)("bodyFlexColumn",!0),l(),_("error",(s=(s=i.globalError_CS.selectedNotificationForModal_$())==null?null:s.error)!==null&&s!==void 0?s:null)("errorClientSource",(p=i.globalError_CS.selectedNotificationForModal_$())==null?null:p.clientSource)("ng0600Diagnostics",(x=(x=i.globalError_CS.selectedNotificationForModal_$())==null?null:x.ng0600Diagnostics)!==null&&x!==void 0?x:null)("ng0203Diagnostics",(g=(g=i.globalError_CS.selectedNotificationForModal_$())==null?null:g.ng0203Diagnostics)!==null&&g!==void 0?g:null)}},dependencies:[j,ie,Ae],encapsulation:2})}return t})();var Me=class{static probeServer(a){return A(this,null,function*(){let e=a.replace(/\/$/,"")+"/api/server/status",n=Date.now(),i=new Date().toISOString(),s=new AbortController,p=setTimeout(()=>{s.abort()},8e3);try{let x=yield fetch(e,{method:"GET",signal:s.signal,cache:"no-store"});clearTimeout(p);let g=Date.now()-n,T="";try{let D=yield x.text();T=D.length>500?D.slice(0,500)+"\u2026":D}catch{T="(could not read body)"}let w=x.ok,M=w?void 0:`HTTP ${x.status} \u2014 server responded but not OK`,F={targetUrl:e,isSuccess:w,httpStatus:x.status,httpStatusText:x.statusText,responseBodyPreview:T,errorCategory:M,durationMs:g,timestamp:i};return w||(F.errorForDisplay=this.buildErrorForDisplay(F)),F}catch(x){clearTimeout(p);let g=Date.now()-n,T=x instanceof Error?x.name:"unknown",w=x instanceof Error?x.message:String(x),M={targetUrl:e,isSuccess:!1,errorName:T,errorMessage:w,errorCategory:this.categorizeError(T,w),durationMs:g,timestamp:i};return M.errorForDisplay=this.buildErrorForDisplay(M),M}})}static buildErrorForDisplay(a){let e=a.errorCategory??a.errorMessage??`HTTP ${a.httpStatus??"?"}`,n=this.pickErrorCode(a),i={targetUrl:a.targetUrl,durationMs:a.durationMs,timestamp:a.timestamp};return a.httpStatus!==void 0&&(i.httpStatus=a.httpStatus),a.httpStatusText&&(i.httpStatusText=a.httpStatusText),a.responseBodyPreview&&(i.responseBodyPreview=a.responseBodyPreview),a.errorName&&(i.errorName=a.errorName),a.errorMessage&&(i.errorMessage=a.errorMessage),{message:e,errorCode:n,additionalContent:i}}static pickErrorCode(a){return a.errorName==="AbortError"?"CCAP-NET-FETCH-TIMEOUT":a.errorName==="TypeError"?"CCAP-NET-FETCH-FAILED":a.errorName==="SyntaxError"?"CCAP-NET-RESPONSE-NOT-JSON":a.httpStatus!==void 0?`CCAP-NET-HTTP-${a.httpStatus}`:"CCAP-NET-UNKNOWN"}static categorizeError(a,e){let n=e.toLowerCase();return a==="AbortError"?"Timeout (>8000ms) \u2014 szerver nem v\xE1laszolt id\u0151ben. Gyakori ok: firewall, blokkolt port, rossz IP.":a==="TypeError"&&n.includes("failed to fetch")?"Network failure \u2014 a b\xF6ng\xE9sz\u0151 nem tud csatlakozni a szerverhez. Lehets\xE9ges okok: szerver nem fut a megadott IP-n, t\u0171zfal blokkolja a portot, WiFi router client-isolation, vagy mobile data-n vagy (nem LAN-on).":n.includes("ssl")||n.includes("certificate")||n.includes("cert")?"SSL / TLS cert error \u2014 self-signed cert-et nem fogad el az Android network stack. Kapcsold ki a HTTPS-t (HTTP-re v\xE1lts), vagy telep\xEDtsd a cert-et a device trust store-ba.":n.includes("cors")?"CORS policy blokkolja a k\xE9r\xE9st. Szerveren kell enged\xE9lyezni az origin-t. (CCAP szerver `origin: true`-val engedi \u2014 ez furcsa, ha m\xE9gis CORS hib\xE1t kapsz.)":n.includes("refused")||n.includes("econnrefused")?"Connection refused \u2014 az IP v\xE1laszol, de a port nem fut (szerver nincs, vagy m\xE1s port).":n.includes("unreachable")||n.includes("ehostunreach")?"Host unreachable \u2014 az IP c\xEDm nem \xE9rhet\u0151 el a h\xE1l\xF3zatr\xF3l (rossz h\xE1l\xF3zat, routing hiba, vagy offline).":n.includes("dns")||n.includes("name")||n.includes("resolve")?"DNS / name resolution fail \u2014 az IP/hostname nem feloldhat\xF3.":a==="SyntaxError"?"A v\xE1lasz nem JSON \u2014 lehet, hogy HTTP-n egy HTTPS-only szervert h\xEDvtunk (redirect / HTML error page), vagy a szerver nem a v\xE1rt tartalmat adja.":`Unknown error (${a}) \u2014 l\xE1sd az error \xFCzenetet.`}};function Qi(t,a){t&1&&(o(0,"div",14)(1,"strong",19),c(2,"HTTPS figyelmeztet\xE9s:"),r(),c(3," self-signed cert-et a rendszer nem trust-olja automatikusan. HTTPS-sel csak akkor m\u0171k\xF6dik, ha a szerver cert-je: "),o(4,"ul",20)(5,"li"),c(6,"\xE9rv\xE9nyes publikus CA-t\xF3l (pl. Let's Encrypt), VAGY"),r(),o(7,"li"),c(8,"manu\xE1lisan telep\xEDtve van a device trust store-j\xE1ba (Settings \u2192 Security \u2192 Install cert from storage)"),r()(),c(9," Ha nem biztos, hagyd kikapcsolva (HTTP) \u2014 a LAN-on HTTP alap\xE9rtelmezetten m\u0171k\xF6dik. "),r())}function Bi(t,a){if(t&1&&(o(0,"div",15)(1,"span",21),c(2,"Connection URL:"),r(),o(3,"p",22),c(4),r()()),t&2){let e=d(2);l(4),E(" ",e.previewUrl_$()," ")}}function zi(t,a){if(t&1&&(o(0,"div",23)(1,"div",25),c(2,"\u2713 Szerver el\xE9rhet\u0151"),r(),o(3,"div",26),c(4),r()()),t&2){let e=d();l(4),ae(" GET ",e.targetUrl," \u2014 ",e.durationMs,"ms ")}}function Hi(t,a){if(t&1&&(o(0,"div",24),b(1,"app-ccap-error-display",27),r()),t&2){let e=d();l(),_("error",e.errorForDisplay)}}function qi(t,a){if(t&1&&C(0,zi,5,2,"div",23)(1,Hi,2,1,"div",24),t&2){let e=a;u(e.isSuccess?0:e.errorForDisplay?1:-1)}}function Wi(t,a){t&1&&c(0," Teszt\u2026 ")}function Gi(t,a){t&1&&c(0," Kapcsolat teszt ")}function Yi(t,a){if(t&1){let e=I();o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),c(4," Server connection setup "),r()(),o(5,"div",4)(6,"p",5),c(7," Enter the IP address of the CCAP server to connect. "),r(),o(8,"div",6)(9,"label",7),c(10," Server IP address "),r(),o(11,"input",8),m("ngModelChange",function(i){f(e);let s=d();return h(s.ipAddress_$.set(i))}),r()(),o(12,"div",6)(13,"label",9),c(14," Port "),r(),o(15,"input",10),m("ngModelChange",function(i){f(e);let s=d();return h(s.port_$.set(i))}),r()(),o(16,"div",11)(17,"input",12),m("ngModelChange",function(i){f(e);let s=d();return h(s.handleHttpsToggle(i))}),r(),o(18,"label",13),c(19," Use HTTPS "),r()(),C(20,Qi,10,0,"div",14)(21,Bi,5,1,"div",15),r(),C(22,qi,2,1),o(23,"div",16)(24,"button",17),m("click",function(){f(e);let i=d();return h(i.handleTestConnection())}),C(25,Wi,1,0)(26,Gi,1,0),r(),o(27,"button",18),m("click",function(){f(e);let i=d();return h(i.handleSave())}),c(28," Connect "),r()()()()}if(t&2){let e,n=d();l(11),_("ngModel",n.ipAddress_$()),l(4),_("ngModel",n.port_$()),l(2),_("ngModel",n.isHttps_$()),l(3),u(n.isHttps_$()?20:-1),l(),u(n.previewUrl_$()?21:-1),l(),u((e=n.diagnosticResult_$())?22:-1,e),l(2),_("disabled",n.isSaveDisabled_$()||n.isTestingConnection_$()),l(),u(n.isTestingConnection_$()?25:26),l(2),_("disabled",n.isSaveDisabled_$())}}var Vn="ccap-server-url",Mt=39050,Nn=39051;function Ki(){return typeof window.Capacitor<"u"&&window.Capacitor.isNativePlatform?.()===!0}var jn=(()=>{class t{isVisible_$=S(Ki()&&!H.readString(Vn));ipAddress_$=S("");port_$=S(Mt);isHttps_$=S(!1);handleHttpsToggle(e){let n=this.port_$();this.isHttps_$.set(e),e&&n===Mt?this.port_$.set(Nn):!e&&n===Nn&&this.port_$.set(Mt)}previewUrl_$=v(()=>{let e=this.isHttps_$()?"https":"http",n=this.ipAddress_$().trim(),i=this.port_$();return n?`${e}://${n}:${i}`:""});isSaveDisabled_$=v(()=>!this.ipAddress_$().trim());isTestingConnection_$=S(!1);diagnosticResult_$=S(null);handleTestConnection(){return A(this,null,function*(){let e=this.previewUrl_$();if(!(!e||this.isTestingConnection_$())){this.isTestingConnection_$.set(!0),this.diagnosticResult_$.set(null);try{let n=yield Me.probeServer(e);this.diagnosticResult_$.set(n)}finally{this.isTestingConnection_$.set(!1)}}})}handleSave(){let e=this.previewUrl_$();!e||!H.writeString(Vn,e)||this.reloadApplication()}reloadApplication(){window.location.reload()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-mobile-server-setup"]],standalone:!0,features:[U],decls:1,vars:1,consts:[[1,"fixed","inset-0","z-[9999]","flex","items-center","justify-center","bg-black/80","p-4"],["role","dialog","aria-labelledby","mobile-setup-title",1,"relative","w-[95vw]","max-w-md","rounded-lg","border-2","border-neonCyan/40","bg-neutral-900","shadow-xl","flex","flex-col","overflow-hidden"],[1,"flex","items-center","px-4","py-3","border-b","border-neonCyan/40","shrink-0"],["id","mobile-setup-title",1,"text-sm","font-semibold","text-neutral-200"],[1,"flex-1","min-h-0","overflow-y-auto","p-4","flex","flex-col","gap-4"],[1,"text-sm","text-neutral-400"],[1,"flex","flex-col","gap-1"],["for","mobile-setup-ip",1,"text-xs","font-medium","text-neutral-300"],["id","mobile-setup-ip","type","text","inputmode","decimal","autocomplete","off","placeholder","192.168.1.100",1,"w-full","rounded-md","border","border-neutral-600","bg-neutral-800","px-3","py-2","text-sm","text-neutral-100","placeholder:text-neutral-500","focus:border-neonCyan","focus:outline-none","focus:ring-1","focus:ring-neonCyan",3,"ngModelChange","ngModel"],["for","mobile-setup-port",1,"text-xs","font-medium","text-neutral-300"],["id","mobile-setup-port","type","number","min","1","max","65535",1,"w-full","rounded-md","border","border-neutral-600","bg-neutral-800","px-3","py-2","text-sm","text-neutral-100","focus:border-neonCyan","focus:outline-none","focus:ring-1","focus:ring-neonCyan",3,"ngModelChange","ngModel"],[1,"flex","items-center","gap-2"],["id","mobile-setup-https","type","checkbox",1,"h-4","w-4","rounded","border-neutral-600","bg-neutral-800","text-neonCyan","focus:ring-neonCyan","focus:ring-offset-neutral-900",3,"ngModelChange","ngModel"],["for","mobile-setup-https",1,"text-sm","text-neutral-300"],[1,"rounded-md","border","border-amber-500/50","bg-amber-500/10","px-3","py-2","text-xs","text-amber-200"],[1,"rounded-md","border","border-neutral-700","bg-neutral-800/60","px-3","py-2"],[1,"flex","justify-between","gap-2","px-4","py-3","border-t","border-neutral-700","shrink-0"],["type","button",1,"rounded-md","border","border-neutral-600","bg-neutral-800","px-3","py-2","text-sm","font-medium","text-neutral-200","hover:bg-neutral-700","disabled:opacity-40","disabled:cursor-not-allowed","transition-colors",3,"click","disabled"],["type","button",1,"rounded-md","border","border-neonCyan/60","bg-neonCyan/15","px-4","py-2","text-sm","font-medium","text-neonCyan","hover:bg-neonCyan/25","disabled:opacity-40","disabled:cursor-not-allowed","transition-colors",3,"click","disabled"],[1,"font-semibold"],[1,"list-disc","list-inside","mt-1","space-y-0.5","text-amber-200/80"],[1,"text-xs","text-neutral-500"],[1,"text-sm","text-neonCyan","font-mono","break-all","mt-0.5"],[1,"mx-4","mb-2","rounded-md","border","border-emerald-500/60","bg-emerald-500/10","px-3","py-2","text-xs","text-emerald-200"],[1,"mx-4","mb-2"],[1,"font-semibold","mb-1"],[1,"font-mono","text-[10px]","text-neutral-400","break-all"],["sourceLabelOverride","Kapcsolat teszt",3,"error"]],template:function(n,i){n&1&&C(0,Yi,29,9,"div",0),n&2&&u(i.isVisible_$()?0:-1)},dependencies:[j,te,ce,dn,ct,de,un,pn,pe,ie],encapsulation:2,changeDetection:0})}return t})();var Qn=(()=>{class t{panels_$=S([]);closedPanels_$=v(()=>this.panels_$().filter(n=>!n.isOpen).map(n=>({id:n.id,label:n.label,icon:n.icon,open:n.open})));closedPanelsLeft_$=v(()=>this.closedPanels_$().filter(e=>this.getPanelSide(e.id)==="left"));closedPanelsRight_$=v(()=>this.closedPanels_$().filter(e=>this.getPanelSide(e.id)==="right"));register(e){let n={id:e.id,label:e.label,icon:e.icon,side:e.side??"left",isOpen:e.isOpen,open:e.open};this.panels_$.update(i=>{let s=i.filter(p=>p.id!==e.id);return s.push(n),s})}getPanelSide(e){return this.panels_$().find(i=>i.id===e)?.side??"left"}unregister(e){this.panels_$.update(n=>n.filter(i=>i.id!==e))}updatePanelState(e,n){this.panels_$.update(i=>i.map(s=>s.id===e?se(Y({},s),{isOpen:n}):s))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Xi(){let t=window;return t.Capacitor!==void 0&&t.Capacitor.isNativePlatform?.()===!0}function Zi(t){let a=0;for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);a=(a<<5)-a+n,a=a|0}return Math.abs(a)}var xt=(()=>{class t{notification_DS=y(bt);isInitialized=!1;localNotificationsPlugin=null;initialize(){return A(this,null,function*(){if(!(this.isInitialized||!Xi())){this.isInitialized=!0;try{let n=(yield import("@capacitor/local-notifications")).LocalNotifications;if(this.localNotificationsPlugin=n,(yield n.requestPermissions()).display!=="granted")return;yield n.addListener("localNotificationActionPerformed",s=>{let p=s.notification.extra,x=typeof p?.notificationId=="string"?p.notificationId:"";this.notification_DS.isTrayOpen_$.set(!0),x&&this.notification_DS.markAsRead(x)})}catch{this.localNotificationsPlugin=null}}})}showLocalNotification(e){return A(this,null,function*(){if(this.localNotificationsPlugin&&document.hidden)try{let n=Zi(e.notificationId),i=e.title,s=e.description??this.buildBodyFromType(e);yield this.localNotificationsPlugin.schedule({notifications:[{id:n,title:i,body:s,extra:{notificationId:e.notificationId},smallIcon:"ic_notification",largeIcon:"ic_launcher"}]})}catch{}})}buildBodyFromType(e){switch(e.type){case"confirm":return e.confirmMessage??"Eld\xF6ntend\u0151 k\xE9rd\xE9s \xE9rkezett.";case"option-select":return"V\xE1laszt\xE1si lehet\u0151s\xE9g \xE9rkezett.";case"question":return"K\xE9rd\xE9s \xE9rkezett \u2014 v\xE1lasz sz\xFCks\xE9ges.";default:return"\xDAj \xE9rtes\xEDt\xE9s \xE9rkezett."}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Bn=(()=>{class t{baseUrl=`${B.api.baseUrl}/notification`;http=y(Jt);listNotifications(e){let n=[];e?.sessionId&&n.push(`sessionId=${encodeURIComponent(e.sessionId)}`),e?.status&&n.push(`status=${encodeURIComponent(e.status)}`),e?.limit&&n.push(`limit=${e.limit}`);let i=n.length?`?${n.join("&")}`:"";return Se(this.http.get(`${this.baseUrl}${i}`))}respondToNotification(e,n){return Se(this.http.post(`${this.baseUrl}/${encodeURIComponent(e)}/respond`,se(Y({},n),{respondedVia:"ui"})))}dismissNotification(e){return Se(this.http.post(`${this.baseUrl}/${encodeURIComponent(e)}/dismiss`,{}))}markAsRead(e){return Se(this.http.post(`${this.baseUrl}/${encodeURIComponent(e)}/read`,{}))}markAllAsRead(){return Se(this.http.post(`${this.baseUrl}/read-all`,{}))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var zn="notification:respond",Hn="notification:dismiss",qn="notification:read";var bt=(()=>{class t{socket_CS=y(mt);notification_AS=y(Bn);injector=y(Xe);mobileNotification_CS=null;notifications_$=S([]);unreadCount_$=v(()=>this.notifications_$().filter(e=>!e.isRead).length);isLoading_$=S(!1);isTrayOpen_$=S(!1);eventSubscription=null;constructor(){this.eventSubscription=this.socket_CS.event$.subscribe(e=>{this.handleSocketEvent(e)}),this.loadNotifications()}ngOnDestroy(){this.eventSubscription?.unsubscribe()}loadNotifications(){return A(this,null,function*(){this.isLoading_$.set(!0);try{let e=yield this.notification_AS.listNotifications({limit:50});this.notifications_$.set(e)}catch{}finally{this.isLoading_$.set(!1)}})}respondToNotification(e,n){this.socket_CS.emit(zn,{notificationId:e,response:n}),this.updateNotificationInList(e,{status:"responded",response:n,respondedAt:new Date().toISOString()})}dismissNotification(e){this.socket_CS.emit(Hn,{notificationId:e}),this.updateNotificationInList(e,{status:"dismissed",response:{isDismissed:!0}})}markAsRead(e){this.socket_CS.emit(qn,{notificationId:e}),this.updateNotificationInList(e,{isRead:!0})}markAllAsRead(){return A(this,null,function*(){try{yield this.notification_AS.markAllAsRead(),this.notifications_$.update(e=>e.map(n=>se(Y({},n),{isRead:!0})))}catch{}})}toggleTray(){this.isTrayOpen_$.update(e=>!e)}closeTray(){this.isTrayOpen_$.set(!1)}handleSocketEvent(e){let n=e.event,i=e.payload;if(n==="user-notification"){let s=typeof i.type=="string"?i.type:"",p=i.notification;s==="notification:created"&&p&&(this.notifications_$.update(g=>[p,...g]),(this.mobileNotification_CS??(this.mobileNotification_CS=this.injector.get(xt))).showLocalNotification(p)),s==="notification:updated"&&p&&this.updateNotificationInList(p.notificationId,p)}}updateNotificationInList(e,n){this.notifications_$.update(i=>i.map(s=>s.notificationId===e?Y(Y({},s),n):s))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ji=(t,a)=>a.id,eo=t=>({"bg-neonCyan/10":t});function to(t,a){if(t&1&&(o(0,"p",4),c(1),r()),t&2){let e=d(3);l(),P(e.notification.confirmMessage)}}function no(t,a){if(t&1){let e=I();C(0,to,2,1,"p",4),o(1,"div",1)(2,"button",5),m("click",function(){f(e);let i=d(2);return h(i.handleConfirm(!0))}),c(3," Igen "),r(),o(4,"button",6),m("click",function(){f(e);let i=d(2);return h(i.handleConfirm(!1))}),c(5," Nem "),r()()}if(t&2){let e=d(2);u(e.notification.confirmMessage?0:-1),l(2),_("disabled",e.isSubmitted_$()),l(2),_("disabled",e.isSubmitted_$())}}function io(t,a){if(t&1&&(o(0,"span",12),c(1),r()),t&2){let e=d().$implicit;l(),P(e.description)}}function oo(t,a){if(t&1){let e=I();o(0,"button",10),m("click",function(){let i=f(e).$implicit,s=d(3);return h(s.selectOption(i.id))}),o(1,"span",11),c(2),r(),C(3,io,2,1,"span",12),r()}if(t&2){let e=a.$implicit,n=d(3);O("border-neonCyan",n.selectedOptionId_$()===e.id)("text-neonCyan",n.selectedOptionId_$()===e.id)("border-neutral-600",n.selectedOptionId_$()!==e.id)("text-neutral-300",n.selectedOptionId_$()!==e.id)("hover:border-neutral-500",n.selectedOptionId_$()!==e.id),_("disabled",n.isSubmitted_$())("ngClass",ye(14,eo,n.selectedOptionId_$()===e.id)),l(2),P(e.label),l(),u(e.description?3:-1)}}function ro(t,a){if(t&1){let e=I();o(0,"button",13),m("click",function(){f(e);let i=d(3);return h(i.handleOptionSelect())}),c(1," Kiv\xE1laszt\xE1s "),r()}if(t&2){let e=d(3);_("disabled",e.isSubmitted_$())}}function ao(t,a){if(t&1&&(o(0,"div",7),V(1,oo,4,16,"button",8,Ji),r(),C(3,ro,2,1,"button",9)),t&2){let e=d(2);l(),N(e.notification.options),l(2),u(e.selectedOptionId_$()?3:-1)}}function so(t,a){if(t&1){let e=I();o(0,"textarea",14),ot("ngModelChange",function(i){f(e);let s=d(2);return it(s.textResponse,i)||(s.textResponse=i),h(i)}),r(),o(1,"button",13),m("click",function(){f(e);let i=d(2);return h(i.handleQuestionSubmit())}),c(2," K\xFCld\xE9s "),r()}if(t&2){let e,n=d(2);nt("ngModel",n.textResponse),_("placeholder",(e=n.notification.textPlaceholder)!==null&&e!==void 0?e:"V\xE1lasz...")("disabled",n.isSubmitted_$()),l(),_("disabled",n.isSubmitted_$()||!n.textResponse)}}function lo(t,a){if(t&1){let e=I();o(0,"button",13),m("click",function(){f(e);let i=d(3);return h(i.handleMessageTextSubmit())}),c(1," K\xFCld\xE9s "),r()}if(t&2){let e=d(3);_("disabled",e.isSubmitted_$())}}function co(t,a){if(t&1){let e=I();o(0,"textarea",14),ot("ngModelChange",function(i){f(e);let s=d(2);return it(s.textResponse,i)||(s.textResponse=i),h(i)}),r(),C(1,lo,2,1,"button",9)}if(t&2){let e,n=d(2);nt("ngModel",n.textResponse),_("placeholder",(e=n.notification.textPlaceholder)!==null&&e!==void 0?e:"Opcion\xE1lis v\xE1lasz...")("disabled",n.isSubmitted_$()),l(),u(n.textResponse?1:-1)}}function po(t,a){if(t&1){let e=I();o(0,"textarea",15),ot("ngModelChange",function(i){f(e);let s=d(2);return it(s.textResponse,i)||(s.textResponse=i),h(i)}),r()}if(t&2){let e,n=d(2);nt("ngModel",n.textResponse),_("placeholder",(e=n.notification.textPlaceholder)!==null&&e!==void 0?e:"Opcion\xE1lis megjegyz\xE9s...")("disabled",n.isSubmitted_$())}}function uo(t,a){if(t&1){let e=I();o(0,"div",0),C(1,no,6,3,"div",1)(2,ao,4,1)(3,so,3,4)(4,co,2,4)(5,po,1,3,"textarea",2),o(6,"button",3),m("click",function(){f(e);let i=d();return h(i.handleDismiss())}),c(7," Kihagy\xE1s "),r()()}if(t&2){let e=d();l(),u(e.notification.type==="confirm"?1:-1),l(),u(e.notification.type==="option-select"&&e.notification.options?2:-1),l(),u(e.notification.type==="question"?3:-1),l(),u(e.notification.type==="message"&&e.notification.allowTextResponse?4:-1),l(),u((e.notification.type==="confirm"||e.notification.type==="option-select")&&e.notification.allowTextResponse?5:-1),l(),_("disabled",e.isSubmitted_$())}}var Wn=(()=>{class t{notification=null;responded=new me;dismissed=new me;selectedOptionId_$=S("");textResponse="";isSubmitted_$=S(!1);handleConfirm(e){if(this.isSubmitted_$())return;this.isSubmitted_$.set(!0);let n={confirmed:e};this.notification?.allowTextResponse&&this.textResponse.trim()&&(n.textResponse=this.textResponse.trim()),this.responded.emit(n)}handleOptionSelect(){if(this.isSubmitted_$())return;let e=this.selectedOptionId_$();if(!e)return;this.isSubmitted_$.set(!0);let n={selectedOptionId:e};this.notification?.allowTextResponse&&this.textResponse.trim()&&(n.textResponse=this.textResponse.trim()),this.responded.emit(n)}handleQuestionSubmit(){if(this.isSubmitted_$())return;let e=this.textResponse.trim();e&&(this.isSubmitted_$.set(!0),this.responded.emit({textResponse:e}))}handleMessageTextSubmit(){if(this.isSubmitted_$())return;let e=this.textResponse.trim();e&&(this.isSubmitted_$.set(!0),this.responded.emit({textResponse:e}))}handleDismiss(){this.isSubmitted_$()||(this.isSubmitted_$.set(!0),this.dismissed.emit())}selectOption(e){this.selectedOptionId_$.set(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ntf-response-controls"]],inputs:{notification:"notification"},outputs:{responded:"responded",dismissed:"dismissed"},standalone:!0,features:[U],decls:1,vars:1,consts:[[1,"flex","flex-col","gap-2","mt-2"],[1,"flex","gap-2"],["rows","1",1,"w-full","px-3","py-1.5","text-xs","rounded","border","border-neutral-600","bg-neutral-800/50","text-neutral-200","placeholder:text-neutral-500","focus:border-neonCyan","focus:outline-none","disabled:opacity-50","resize-none",3,"ngModel","placeholder","disabled"],["type","button",1,"px-2","py-1","text-xs","text-neutral-500","hover:text-neutral-300","transition-colors","self-start",3,"click","disabled"],[1,"text-sm","text-neutral-300"],["type","button",1,"px-3","py-1.5","text-sm","font-medium","rounded","bg-green-600/20","border","border-green-500/50","text-green-400","hover:bg-green-600/30","disabled:opacity-50","transition-colors",3,"click","disabled"],["type","button",1,"px-3","py-1.5","text-sm","font-medium","rounded","bg-red-600/20","border","border-red-500/50","text-red-400","hover:bg-red-600/30","disabled:opacity-50","transition-colors",3,"click","disabled"],[1,"flex","flex-col","gap-1"],["type","button",1,"px-3","py-2","text-sm","rounded","border","text-left","transition-colors",3,"disabled","border-neonCyan","ngClass","text-neonCyan","border-neutral-600","text-neutral-300","hover:border-neutral-500"],["type","button",1,"px-3","py-1.5","text-sm","font-medium","rounded","bg-neonCyan/15","border","border-neonCyan/50","text-neonCyan","hover:bg-neonCyan/25","disabled:opacity-50","transition-colors","self-start",3,"disabled"],["type","button",1,"px-3","py-2","text-sm","rounded","border","text-left","transition-colors",3,"click","disabled","ngClass"],[1,"font-medium"],[1,"block","text-xs","text-neutral-400","mt-0.5"],["type","button",1,"px-3","py-1.5","text-sm","font-medium","rounded","bg-neonCyan/15","border","border-neonCyan/50","text-neonCyan","hover:bg-neonCyan/25","disabled:opacity-50","transition-colors","self-start",3,"click","disabled"],["rows","2",1,"w-full","px-3","py-2","text-sm","rounded","border","border-neutral-600","bg-neutral-800/50","text-neutral-200","placeholder:text-neutral-500","focus:border-neonCyan","focus:outline-none","disabled:opacity-50","resize-none",3,"ngModelChange","ngModel","placeholder","disabled"],["rows","1",1,"w-full","px-3","py-1.5","text-xs","rounded","border","border-neutral-600","bg-neutral-800/50","text-neutral-200","placeholder:text-neutral-500","focus:border-neonCyan","focus:outline-none","disabled:opacity-50","resize-none",3,"ngModelChange","ngModel","placeholder","disabled"]],template:function(n,i){n&1&&C(0,uo,8,6,"div",0),n&2&&u(i.notification?0:-1)},dependencies:[j,le,te,ce,de,pe],encapsulation:2})}return t})();var _o=t=>({"bg-neutral-800/30":t,"hover:bg-neutral-800/50":!0});function mo(t,a){t&1&&(k(),o(0,"svg",4),b(1,"path",18),r())}function Co(t,a){t&1&&(k(),o(0,"svg",4),b(1,"path",19),r())}function fo(t,a){t&1&&(k(),o(0,"svg",4),b(1,"path",20),r())}function ho(t,a){t&1&&(k(),o(0,"svg",4),b(1,"path",21),r())}function xo(t,a){if(t&1&&(o(0,"p",9),c(1),r()),t&2){let e=d();l(),P(e.description)}}function bo(t,a){if(t&1&&(o(0,"span",10),c(1),r()),t&2){let e=d();l(),P(e.sourceLabel)}}function go(t,a){t&1&&(o(0,"span",11),c(1," Session "),r())}function So(t,a){t&1&&(o(0,"span",12),c(1," Megv\xE1laszolva "),r())}function vo(t,a){t&1&&(o(0,"span",13),c(1," Lej\xE1rt "),r())}function yo(t,a){t&1&&(o(0,"span",14),c(1," Kihagyva "),r())}function ko(t,a){if(t&1&&(o(0,"span"),c(1),r()),t&2){let e=d(2);l(),P(e.response.confirmed?"Igen":"Nem")}}function Io(t,a){if(t&1&&(o(0,"span"),c(1),r()),t&2){let e=d(2);l(),E("Kiv\xE1lasztva: ",e.response.selectedOptionId,"")}}function To(t,a){if(t&1&&(o(0,"p",22),c(1),r()),t&2){let e=d(2);l(),P(e.response.textResponse)}}function Eo(t,a){if(t&1&&(o(0,"div",15),C(1,ko,2,1,"span")(2,Io,2,1,"span")(3,To,2,1,"p",22),r()),t&2){let e=d();l(),u(e.response.confirmed!==void 0?1:-1),l(),u(e.response.selectedOptionId?2:-1),l(),u(e.response.textResponse?3:-1)}}function wo(t,a){if(t&1){let e=I();o(0,"app-ntf-response-controls",23),m("responded",function(i){f(e);let s=d(2);return h(s.handleResponded(i))})("dismissed",function(){f(e);let i=d(2);return h(i.handleDismissed())}),r()}if(t&2){let e=d();_("notification",e)}}function Ao(t,a){if(t&1){let e=I();o(0,"app-ntf-response-controls",23),m("responded",function(i){f(e);let s=d(3);return h(s.handleResponded(i))})("dismissed",function(){f(e);let i=d(3);return h(i.handleDismissed())}),r()}if(t&2){let e=d(2);_("notification",e)}}function Po(t,a){if(t&1){let e=I();o(0,"button",25),m("click",function(i){return f(e),d(3).handleDismissed(),h(i.stopPropagation())}),c(1," Elvet\xE9s "),r()}}function $o(t,a){if(t&1&&C(0,Ao,1,1,"app-ntf-response-controls",16)(1,Po,2,0,"button",24),t&2){let e=d();u(e.allowTextResponse?0:1)}}function Mo(t,a){t&1&&b(0,"span",17)}function Do(t,a){if(t&1){let e=I();o(0,"div",1),m("click",function(){f(e);let i=d();return h(i.handleClick())}),o(1,"div",2)(2,"div",3),C(3,mo,2,0,":svg:svg",4)(4,Co,2,0,":svg:svg",4)(5,fo,2,0,":svg:svg",4)(6,ho,2,0,":svg:svg",4),r(),o(7,"div",5)(8,"div",6)(9,"span",7),c(10),r(),o(11,"span",8),c(12),r()(),C(13,xo,2,1,"p",9)(14,bo,2,1,"span",10)(15,go,2,0,"span",11)(16,So,2,0,"span",12)(17,vo,2,0,"span",13)(18,yo,2,0,"span",14)(19,Eo,4,3,"div",15)(20,wo,1,1,"app-ntf-response-controls",16)(21,$o,2,1),r(),C(22,Mo,1,0,"span",17),r()()}if(t&2){let e,n=a,i=d();_("ngClass",ye(17,_o,!n.isRead)),l(2),_("ngClass",i.priorityColorClass_$()),l(),u((e=n.type)==="message"?3:e==="confirm"?4:e==="option-select"?5:e==="question"?6:-1),l(6),O("font-semibold",!n.isRead),l(),E(" ",n.title," "),l(2),P(i.relativeTime_$()),l(),u(n.description?13:-1),l(),u(n.sourceLabel?14:-1),l(),u(i.isLinkedInteraction_$()?15:-1),l(),u(n.status==="responded"?16:-1),l(),u(n.status==="expired"?17:-1),l(),u(n.status==="dismissed"?18:-1),l(),u(n.status==="responded"&&n.response?19:-1),l(),u(i.isInteractiveAndPending_$()?20:-1),l(),u(i.isMessageAndActive_$()?21:-1),l(),u(n.isRead?-1:22)}}var Gn=(()=>{class t{notification=qt(null);responded=new me;dismissed=new me;markedAsRead=new me;priorityColorClass_$=v(()=>{switch(this.notification()?.priority){case"error":return"border-red-500/50 text-red-400";case"warning":return"border-amber-500/50 text-amber-400";case"success":return"border-green-500/50 text-green-400";default:return"border-neonCyan/50 text-neonCyan"}});relativeTime_$=v(()=>{let e=this.notification();if(!e?.__created)return"";let n=Date.now(),i=new Date(e.__created).getTime(),s=n-i,p=Math.floor(s/1e3);if(p<60)return"most";let x=Math.floor(p/60);if(x<60)return`${x} perce`;let g=Math.floor(x/60);return g<24?`${g} \xF3r\xE1ja`:`${Math.floor(g/24)} napja`});isLinkedInteraction_$=v(()=>!!this.notification()?.linkedInteractionId);isInteractiveAndPending_$=v(()=>{let e=this.notification();return e?e.type!=="message"&&(e.status==="pending"||e.status==="delivered"):!1});isMessageAndActive_$=v(()=>{let e=this.notification();return e?e.type==="message"&&(e.status==="pending"||e.status==="delivered"):!1});handleResponded(e){let n=this.notification();n&&this.responded.emit({notificationId:n.notificationId,response:e})}handleDismissed(){let e=this.notification();e&&this.dismissed.emit(e.notificationId)}handleClick(){let e=this.notification();e&&!e.isRead&&this.markedAsRead.emit(e.notificationId)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ntf-item"]],inputs:{notification:[1,"notification"]},outputs:{responded:"responded",dismissed:"dismissed",markedAsRead:"markedAsRead"},standalone:!0,features:[U],decls:1,vars:1,consts:[[1,"px-3","py-2.5","border-b","border-neutral-700/50","transition-colors","cursor-pointer",3,"ngClass"],[1,"px-3","py-2.5","border-b","border-neutral-700/50","transition-colors","cursor-pointer",3,"click","ngClass"],[1,"flex","items-start","gap-2"],[1,"shrink-0","mt-0.5",3,"ngClass"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-4","h-4"],[1,"flex-1","min-w-0"],[1,"flex","items-center","justify-between","gap-2"],[1,"text-sm","font-medium","text-neutral-200","truncate"],[1,"text-[11px]","text-neutral-500","shrink-0"],[1,"text-xs","text-neutral-400","mt-0.5","line-clamp-2"],[1,"text-[10px]","text-neutral-500","mt-0.5","inline-block"],[1,"inline-block","mt-0.5","ml-1","px-1.5","py-0.5","rounded","text-[10px]","font-medium","bg-neonCyan/10","text-neonCyan","border","border-neonCyan/20"],[1,"inline-block","mt-1","px-1.5","py-0.5","rounded","text-[10px]","font-medium","bg-green-900/30","text-green-400","border","border-green-700/30"],[1,"inline-block","mt-1","px-1.5","py-0.5","rounded","text-[10px]","font-medium","bg-amber-900/30","text-amber-400","border","border-amber-700/30"],[1,"inline-block","mt-1","px-1.5","py-0.5","rounded","text-[10px]","font-medium","bg-neutral-700/30","text-neutral-400","border","border-neutral-600/30"],[1,"mt-1.5","px-2","py-1.5","rounded","bg-neutral-800/50","border","border-neutral-700/50","text-xs","text-neutral-300"],[3,"notification"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-neonCyan","shrink-0","mt-1.5"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M4 6h16M4 10h16M4 14h16M4 18h16"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"],[1,"mt-0.5","text-neutral-400"],[3,"responded","dismissed","notification"],["type","button",1,"mt-1.5","px-2","py-1","text-xs","text-neutral-500","hover:text-neutral-300","transition-colors"],["type","button",1,"mt-1.5","px-2","py-1","text-xs","text-neutral-500","hover:text-neutral-300","transition-colors",3,"click"]],template:function(n,i){if(n&1&&C(0,Do,23,19,"div",0),n&2){let s;u((s=i.notification())?0:-1,s)}},dependencies:[j,le,Wn],encapsulation:2})}return t})();var Ro=(t,a)=>a.notificationId;function Uo(t,a){if(t&1&&(o(0,"span",4),c(1),r()),t&2){let e=d();l(),E(" ",e.notification_DS.unreadCount_$()>99?"99+":e.notification_DS.unreadCount_$()," ")}}function Oo(t,a){if(t&1){let e=I();o(0,"button",13),m("click",function(){f(e);let i=d(2);return h(i.handleMarkAllAsRead())}),c(1," Mind olvasott "),r()}}function Fo(t,a){t&1&&(o(0,"div",12),c(1," Bet\xF6lt\xE9s... "),r())}function Lo(t,a){if(t&1){let e=I();o(0,"app-ntf-item",15),m("responded",function(i){f(e);let s=d(3);return h(s.handleNotificationResponded(i))})("dismissed",function(i){f(e);let s=d(3);return h(s.handleNotificationDismissed(i))})("markedAsRead",function(i){f(e);let s=d(3);return h(s.handleNotificationMarkedAsRead(i))}),r()}if(t&2){let e=a.$implicit;_("notification",e)}}function Vo(t,a){if(t&1&&V(0,Lo,1,1,"app-ntf-item",14,Ro),t&2){let e=d(2);N(e.notification_DS.notifications_$())}}function No(t,a){t&1&&(o(0,"div",12),c(1," Nincs \xE9rtes\xEDt\xE9s "),r())}function jo(t,a){if(t&1){let e=I();o(0,"div",6),m("click",function(i){return f(e),h(i.stopPropagation())}),o(1,"div",7)(2,"span",8),c(3,"Notifications"),r(),o(4,"div",9),C(5,Oo,2,0,"button",10),r()(),o(6,"div",11),C(7,Fo,2,0,"div",12)(8,Vo,2,0)(9,No,2,0,"div",12),r()()}if(t&2){let e=d();l(5),u(e.notification_DS.unreadCount_$()>0?5:-1),l(2),u(e.notification_DS.isLoading_$()?7:e.notification_DS.notifications_$().length?8:9)}}var Yn=(()=>{class t{notification_DS=y(bt);elementRef=y(ve);handleDocumentClick(e){if(!this.notification_DS.isTrayOpen_$())return;let n=e.target;n instanceof Node&&!this.elementRef.nativeElement.contains(n)&&this.notification_DS.closeTray()}handleToggleTray(e){e.stopPropagation(),this.notification_DS.toggleTray()}handleMarkAllAsRead(){this.notification_DS.markAllAsRead()}handleNotificationResponded(e){this.notification_DS.respondToNotification(e.notificationId,e.response)}handleNotificationDismissed(e){this.notification_DS.dismissNotification(e)}handleNotificationMarkedAsRead(e){this.notification_DS.markAsRead(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ntf-tray"]],hostBindings:function(n,i){n&1&&m("click",function(p){return i.handleDocumentClick(p)},!1,Wt)},standalone:!0,features:[U],decls:6,vars:3,consts:[[1,"relative","flex","items-center","justify-center"],["type","button","title","\xC9rtes\xEDt\xE9sek",1,"flex","items-center","justify-center","p-1","rounded-md","text-neutral-400","hover:text-neutral-200","hover:bg-neutral-800","transition-colors","duration-200","relative",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-5","h-5"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"],[1,"absolute","-top-0.5","-right-0.5","min-w-[1rem]","h-4","px-1","flex","items-center","justify-center","rounded-full","text-[10px]","font-bold","text-neutral-950","bg-neonCyan","animate-pulse","leading-none"],[1,"absolute","top-full","right-0","mt-2","z-50","w-[min(400px,calc(100vw-2rem))]","max-h-[60vh]","rounded-lg","border","border-neonDefault","bg-ccapSurface","shadow-xl","flex","flex-col","overflow-hidden"],[1,"absolute","top-full","right-0","mt-2","z-50","w-[min(400px,calc(100vw-2rem))]","max-h-[60vh]","rounded-lg","border","border-neonDefault","bg-ccapSurface","shadow-xl","flex","flex-col","overflow-hidden",3,"click"],[1,"flex","items-center","justify-between","px-3","py-2.5","border-b","border-neutral-700/50","shrink-0"],[1,"text-sm","font-semibold","text-neutral-200"],[1,"flex","items-center","gap-2"],["type","button",1,"text-xs","text-neonCyan","hover:underline"],[1,"flex-1","overflow-y-auto","min-h-0"],[1,"flex","items-center","justify-center","py-8","text-neutral-500","text-sm"],["type","button",1,"text-xs","text-neonCyan","hover:underline",3,"click"],[3,"notification"],[3,"responded","dismissed","markedAsRead","notification"]],template:function(n,i){n&1&&(o(0,"div",0)(1,"button",1),m("click",function(p){return i.handleToggleTray(p)}),k(),o(2,"svg",2),b(3,"path",3),r(),C(4,Uo,2,1,"span",4),r(),C(5,jo,10,2,"div",5),r()),n&2&&(l(),q("aria-label",i.notification_DS.unreadCount_$()>0?"\xC9rtes\xEDt\xE9sek: "+i.notification_DS.unreadCount_$()+" olvasatlan":"\xC9rtes\xEDt\xE9sek"),l(3),u(i.notification_DS.unreadCount_$()>0?4:-1),l(),u(i.notification_DS.isTrayOpen_$()?5:-1))},dependencies:[j,Gn],encapsulation:2})}return t})();var Qo=["quickInputAnchorMain"],Bo=(t,a)=>a.routerLink,ei=(t,a)=>a.id,zo=(t,a)=>({"xs:-translate-x-full":t,"xs:translate-x-0":a}),Ho=()=>({exact:!0}),qo=t=>({exact:t});function Wo(t,a){t&1&&(k(),o(0,"svg",5),b(1,"path",31),r())}function Go(t,a){t&1&&(k(),o(0,"svg",5),b(1,"path",32),r())}function Yo(t,a){if(t&1){let e=I();o(0,"div",33),m("click",function(i){return f(e),h(i.stopPropagation())}),o(1,"button",34),m("click",function(){f(e);let i=d();return h(i.handleRunDiagnosis())}),c(2),r(),o(3,"div",35),b(4,"app-ccap-error-display",36),r(),o(5,"p",37),c(6,"Kattint\xE1s az indik\xE1torra: \xFAjracsatlakoz\xE1s"),r()()}if(t&2){let e=d();l(),_("disabled",e.isDiagnosing_$()),l(),E(" ",e.isDiagnosing_$()?"Diagnosztika fut\u2026":"Kapcsolat diagn\xF3zis"," "),l(2),_("error",e.lastSocketError_$())}}function Ko(t,a){if(t&1&&(o(0,"span",14),c(1),r()),t&2){let e=d();l(),E(" ",e.socketStatusLabel_$()," ")}}function Xo(t,a){t&1&&b(0,"span",16)}function Zo(t,a){t&1&&b(0,"span",17)}function Jo(t,a){t&1&&b(0,"span",18)}function er(t,a){t&1&&b(0,"span",19)}function tr(t,a){if(t&1){let e=I();o(0,"div",38),m("click",function(){f(e);let i=d();return h(i.toggleSideNav())}),r()}}function nr(t,a){t&1&&b(0,"span",49)}function ir(t,a){t&1&&b(0,"span",52)}function or(t,a){t&1&&(o(0,"div",61)(1,"a",65),k(),o(2,"svg",66),b(3,"path",67),r(),c(4," Koordin\xE1tor "),r(),$(),o(5,"a",68),k(),o(6,"svg",66),b(7,"path",69),r(),c(8," Orchestrator "),r(),$(),o(9,"a",70),k(),o(10,"svg",66),b(11,"path",71),r(),c(12," Voice Notes POC "),r(),$(),o(13,"a",72),k(),o(14,"svg",66),b(15,"path",73),r(),c(16," CA Sessions "),r(),$(),o(17,"a",74),k(),o(18,"svg",66),b(19,"path",75),r(),c(20," OC Sessions "),r(),$(),o(21,"a",76),k(),o(22,"svg",66),b(23,"path",77),r(),c(24," Consultant "),r(),$(),o(25,"a",78),k(),o(26,"svg",66),b(27,"path",79),r(),c(28," POC Remote "),r()())}function rr(t,a){if(t&1&&(k(),o(0,"svg",66),b(1,"path",81),r()),t&2){let e=d().$implicit;l(),q("d",e.iconSvgPath)}}function ar(t,a){if(t&1&&(o(0,"a",80),C(1,rr,2,1,":svg:svg",66),c(2),r()),t&2){let e=a.$implicit;_("routerLink",e.routerLink)("routerLinkActiveOptions",ye(4,qo,e.isRouterLinkActiveExactInSideNav)),l(),u(e.iconSvgPath?1:-1),l(),E(" ",e.label," ")}}function sr(t,a){if(t&1&&(o(0,"div",61),V(1,ar,3,6,"a",80,Bo),r()),t&2){let e=d(2);l(),N(e.settingsSubmenuNavLinks)}}function lr(t,a){if(t&1&&(o(0,"span",99),c(1),r()),t&2){let e=d(3);l(),E(" ",e.recordedSystemErrorsCount_$()," ")}}function cr(t,a){if(t&1&&(o(0,"span",99),c(1),r()),t&2){let e=d(3);l(),E(" ",e.recordedAgentFeedbackCount_$()," ")}}function dr(t,a){if(t&1&&(o(0,"div",61)(1,"a",82),k(),o(2,"svg",66),b(3,"path",83),r(),c(4," Live Development Pipeline "),r(),$(),o(5,"a",84),k(),o(6,"svg",66),b(7,"path",85),r(),c(8," Model Registry "),r(),$(),o(9,"a",86),k(),o(10,"svg",66),b(11,"path",87),r(),c(12," Cost Tracking "),r(),$(),o(13,"a",88),k(),o(14,"svg",66),b(15,"path",89),r(),c(16," CC Usage "),r(),$(),o(17,"a",90),c(18," Costs "),r(),o(19,"a",91),k(),o(20,"svg",66),b(21,"path",92),r(),c(22," Embedding registry "),r(),$(),o(23,"a",93),k(),o(24,"svg",66),b(25,"path",94),r(),c(26," Document Library "),r(),$(),o(27,"a",95),k(),o(28,"svg",66),b(29,"path",96),r(),c(30," Project Source "),r(),$(),o(31,"a",97),k(),o(32,"svg",66),b(33,"path",98),r(),$(),o(34,"span"),c(35,"Hib\xE1k"),r(),C(36,lr,2,1,"span",99),r(),o(37,"a",100),k(),o(38,"svg",66),b(39,"path",101),r(),c(40," Host Runtime MCP "),r(),$(),o(41,"a",102),k(),o(42,"svg",66),b(43,"path",103),r(),$(),o(44,"span"),c(45,"Feedback"),r(),C(46,cr,2,1,"span",99),r(),o(47,"a",104),k(),o(48,"svg",66),b(49,"path",105),r(),c(50," LLM Debug Log "),r(),$(),o(51,"a",106),k(),o(52,"svg",66),b(53,"path",107),r(),c(54," Workflow be\xE1ll\xEDt\xE1sok "),r(),$(),o(55,"a",108),k(),o(56,"svg",66),b(57,"path",73),r(),c(58," Terminals "),r(),$(),o(59,"a",109),k(),o(60,"svg",66),b(61,"path",67),r(),c(62," Agent Instances "),r(),$(),o(63,"a",110),k(),o(64,"svg",66),b(65,"path",111),r(),c(66," Mobile App "),r()()),t&2){let e=d(2);l(31),q("aria-label",e.recordedSystemErrorsCount_$()>0?"Hib\xE1k, "+e.recordedSystemErrorsCount_$()+" r\xF6gz\xEDtett bejegyz\xE9s a list\xE1ban":null)("title",e.recordedSystemErrorsCount_$()>0?"Rendszer hib\xE1k sz\xE1ma: "+e.recordedSystemErrorsCount_$():null),l(5),u(e.recordedSystemErrorsCount_$()>0?36:-1),l(5),q("aria-label",e.recordedAgentFeedbackCount_$()>0?"Feedback, "+e.recordedAgentFeedbackCount_$()+" r\xF6gz\xEDtett bejegyz\xE9s a list\xE1ban":null)("title",e.recordedAgentFeedbackCount_$()>0?"Feedback bejegyz\xE9sek sz\xE1ma: "+e.recordedAgentFeedbackCount_$():null),l(5),u(e.recordedAgentFeedbackCount_$()>0?46:-1)}}function pr(t,a){if(t&1){let e=I();o(0,"nav",25)(1,"div",39)(2,"a",40),k(),o(3,"svg",41),b(4,"path",42),r(),c(5," Dashboard "),r(),$(),o(6,"a",43),k(),o(7,"svg",41),b(8,"path",44),r(),c(9," Dark Office "),r(),$(),o(10,"a",45),k(),o(11,"svg",41),b(12,"path",46),r(),c(13," Project Management "),r(),$(),o(14,"a",47),k(),o(15,"svg",41),b(16,"path",48),r(),$(),o(17,"span"),c(18,"CCAP Sessions"),r(),C(19,nr,1,0,"span",49),r(),o(20,"a",50),k(),o(21,"svg",41),b(22,"path",51),r(),$(),o(23,"span"),c(24,"CC Sessions"),r(),C(25,ir,1,0,"span",52),r(),o(26,"a",53),k(),o(27,"svg",41),b(28,"path",54),r(),c(29," Scheduler "),r(),$(),o(30,"div",55)(31,"button",56),m("click",function(){f(e);let i=d();return h(i.togglePocSubmenu())}),k(),o(32,"svg",41),b(33,"path",57),r(),c(34," POC "),$(),o(35,"span",58),k(),o(36,"svg",59),b(37,"path",60),r()()(),C(38,or,29,0,"div",61),r(),$(),o(39,"div",55)(40,"button",56),m("click",function(){f(e);let i=d();return h(i.toggleSettingsSubmenu())}),k(),o(41,"svg",41),b(42,"path",62)(43,"path",63),r(),c(44," Be\xE1ll\xEDt\xE1sok "),$(),o(45,"span",58),k(),o(46,"svg",59),b(47,"path",60),r()()(),C(48,sr,3,0,"div",61),r(),$(),o(49,"div",55)(50,"button",56),m("click",function(){f(e);let i=d();return h(i.toggleMaintenanceSubmenu())}),k(),o(51,"svg",41),b(52,"path",64),r(),c(53," Maintenance "),$(),o(54,"span",58),k(),o(55,"svg",59),b(56,"path",60),r()()(),C(57,dr,67,6,"div",61),r()()()}if(t&2){let e=d();l(2),_("routerLinkActiveOptions",Yt(24,Ho)),l(17),u(e.hasRunningCcapSession_$()?19:-1),l(6),u(e.hasRunningCcSession_$()?25:-1),l(6),O("text-ccapAccent",e.pocSubmenuOpen_$())("border-ccapAccent",e.pocSubmenuOpen_$()),l(4),O("rotate-90",e.pocSubmenuOpen_$()),l(3),u(e.pocSubmenuOpen_$()?38:-1),l(2),O("text-ccapAccent",e.settingsSubmenuOpen_$())("border-ccapAccent",e.settingsSubmenuOpen_$()),l(5),O("rotate-90",e.settingsSubmenuOpen_$()),l(3),u(e.settingsSubmenuOpen_$()?48:-1),l(2),O("text-ccapAccent",e.maintenanceSubmenuOpen_$())("border-ccapAccent",e.maintenanceSubmenuOpen_$()),l(4),O("rotate-90",e.maintenanceSubmenuOpen_$()),l(3),u(e.maintenanceSubmenuOpen_$()?57:-1)}}function ur(t,a){t&1&&(k(),o(0,"svg",114),b(1,"path",32),r())}function _r(t,a){t&1&&(k(),o(0,"svg",114),b(1,"path",116),r())}function mr(t,a){t&1&&(k(),o(0,"svg",114),b(1,"path",117),r())}function Cr(t,a){t&1&&(o(0,"span",115),c(1,"\u203A"),r())}function fr(t,a){if(t&1){let e=I();o(0,"button",113),m("click",function(){let i=f(e).$implicit;return h(i.open())}),C(1,ur,2,0,":svg:svg",114)(2,_r,2,0,":svg:svg",114)(3,mr,2,0,":svg:svg",114)(4,Cr,2,0,"span",115),r()}if(t&2){let e,n=a.$implicit;_("title",n.label),l(),u((e=n.icon)==="menu"?1:e==="list"?2:e==="info"?3:4)}}function hr(t,a){if(t&1&&(o(0,"div",27),V(1,fr,5,2,"button",112,ei),r()),t&2){let e=d();l(),N(e.closedPanelsLeftStrip_$())}}function xr(t,a){t&1&&(k(),o(0,"svg",114),b(1,"path",32),r())}function br(t,a){t&1&&(k(),o(0,"svg",114),b(1,"path",116),r())}function gr(t,a){t&1&&(k(),o(0,"svg",114),b(1,"path",117),r())}function Sr(t,a){t&1&&(o(0,"span",115),c(1,"\u2039"),r())}function vr(t,a){if(t&1){let e=I();o(0,"button",113),m("click",function(){let i=f(e).$implicit;return h(i.open())}),C(1,xr,2,0,":svg:svg",114)(2,br,2,0,":svg:svg",114)(3,gr,2,0,":svg:svg",114)(4,Sr,2,0,"span",115),r()}if(t&2){let e,n=a.$implicit;_("title",n.label),l(),u((e=n.icon)==="menu"?1:e==="list"?2:e==="info"?3:4)}}function yr(t,a){if(t&1&&(o(0,"div",28),V(1,vr,5,2,"button",112,ei),r()),t&2){let e=d();l(),N(e.layoutOverlay_CS.closedPanelsRight_$())}}function kr(t,a){t&1&&(o(0,"span",121),c(1),r()),t&2&&(l(),E(" \u2014 ",a.promptId,""))}function Ir(t,a){if(t&1&&(o(0,"div",30)(1,"span",118),b(2,"span",119),o(3,"span",120),c(4," Modellteszt fut a h\xE1tt\xE9rben "),C(5,kr,2,1,"span",121),r()(),o(6,"a",122),c(7," Model Registry "),r()()),t&2){let e,n=d();l(5),u((e=n.modelRegistry_DS.modelTestRunProgressCurrentTask_$())?5:-1,e)}}var Kn="ccap-sideNavOpen",Xn="ccap-nav-settingsSubmenuOpen",Zn="ccap-nav-maintenanceSubmenuOpen",Jn="ccap-nav-pocSubmenuOpen",gt=(()=>{class t extends gn{setup_DS=y(Sn);session_DS=y(Pe);errors_DS=y(kn);recordedSystemErrorsCount_$=v(()=>this.errors_DS.errorsTotalCount_$());agentFeedback_DS=y(In);recordedAgentFeedbackCount_$=v(()=>this.agentFeedback_DS.feedbackTotalCount_$());userInput_DS=y(G);quickInputAnchorMainRef;quickInputMainResizeObs;modelRegistry_DS=y(Tn);claudeCode_DS=y($e);hasRunningCcSession_$=v(()=>this.claudeCode_DS.sessions_$().some(e=>oe.isRunning(e.status)));hasRunningCcapSession_$=v(()=>this.session_DS.sessions_$().some(e=>oe.isRunning(e.status)));settingsGeneral_DS=y(hn);mobileAppUpdater_CS=y(Ct);mobileNotification_CS=y(xt);router=y(st);routerUrl_$=S("");version=B.version;settingsSubmenuNavLinks=mn;activeSessionId_$=this.session_DS.activeSessionId_$;socketStatus_$=this.session_DS.socketStatus_$;lastSocketError_$=this.session_DS.lastSocketError_$;connectAttemptCount_$=this.session_DS.connectAttemptCount_$;isDiagnosing_$=S(!1);modelTestRunGlobalBannerVisible_$=v(()=>{if(this.routerUrl_$().startsWith("/model-registry"))return!1;let n=this.modelRegistry_DS.testRunId_$(),i=this.modelRegistry_DS.testRunStatus_$();return!n||i==null?!1:i.status===$t.running||i.status===$t.pending});socketStatusLabel_$=v(()=>{let e=this.socketStatus_$(),n=this.connectAttemptCount_$();return e===Be.connected?"WebSocket csatlakozva \u2013 kattint\xE1s: \xFAjracsatlakoz\xE1s":e===Be.error?`WebSocket hiba${n>0?` (${n}x)`:""} \u2013 kattint\xE1s: \xFAjracsatlakoz\xE1s`:"Csatlakoz\xE1s\u2026 \u2013 kattint\xE1s: \xFAjracsatlakoz\xE1s"});sideNavOpen_$=S(t.readSideNavOpenFromStorage());settingsSubmenuOpen_$=S(t.readNavSubmenuOpenFromStorage(Xn));maintenanceSubmenuOpen_$=S(t.readNavSubmenuOpenFromStorage(Zn));pocSubmenuOpen_$=S(t.readNavSubmenuOpenFromStorage(Jn));closedPanelsLeftStrip_$=v(()=>{let e=this.layoutOverlay_CS.closedPanelsLeft_$();return this.layoutBreakpoint_CS.isMobile_$()?e:e.filter(n=>n.id!=="navbar")});layoutOverlay_CS=y(Qn);layoutBreakpoint_CS=y(ft);constructor(){super(),this.layoutBreakpoint_CS.isMobile_$()&&this.sideNavOpen_$.set(!1),this.layoutOverlay_CS.register({id:"navbar",label:"Men\xFC",icon:"menu",isOpen:this.sideNavOpen_$(),open:()=>this.toggleSideNav()}),W(()=>{let e=this.sideNavOpen_$();H.writeString(Kn,String(e)),this.layoutOverlay_CS.updatePanelState("navbar",e)},{allowSignalWrites:!0}),W(()=>{let e=this.settingsSubmenuOpen_$(),n=this.maintenanceSubmenuOpen_$(),i=this.pocSubmenuOpen_$();H.writeString(Xn,String(e)),H.writeString(Zn,String(n)),H.writeString(Jn,String(i))})}ngOnInit(){this.router.url.startsWith("/setup")||this.checkSetupAndRedirect(),this.settingsGeneral_DS.load().then(()=>{this.settingsGeneral_DS.section_$().form.mobileAutoUpdateEnabled&&this.mobileAppUpdater_CS.autoUpdateIfAvailable()}),this.errors_DS.loadErrors(),this.agentFeedback_DS.loadFeedback(),this.mobileNotification_CS.initialize(),this.routerUrl_$.set(this.router.url??""),this.addSubscription(this.router.events.pipe(Bt(n=>n instanceof an)).subscribe(n=>{let i=n.urlAfterRedirects??n.url??"";this.routerUrl_$.set(i),this.userInput_DS.syncComposerAreaFromNavigation(i),this.layoutBreakpoint_CS.isMobile_$()&&this.sideNavOpen_$.set(!1),(i.startsWith("/setup")||i.startsWith("/settings"))&&this.settingsSubmenuOpen_$.set(!0),this.isMaintenanceRoute(i)&&this.maintenanceSubmenuOpen_$.set(!0),(i.includes("voice-notes-poc")||i.includes("master-control-remote-poc")||i.includes("oc-session")||i.includes("ca-session")||i.includes("consultant"))&&this.pocSubmenuOpen_$.set(!0)}));let e=this.router.url??"";(e.startsWith("/setup")||e.startsWith("/settings"))&&this.settingsSubmenuOpen_$.set(!0),this.isMaintenanceRoute(e)&&this.maintenanceSubmenuOpen_$.set(!0),(e.includes("voice-notes-poc")||e.includes("master-control-remote-poc")||e.includes("oc-session")||e.includes("ca-session")||e.includes("consultant"))&&this.pocSubmenuOpen_$.set(!0),this.userInput_DS.syncComposerAreaFromNavigation(this.router.url??"")}ngAfterViewInit(){let e=this.quickInputAnchorMainRef?.nativeElement;if(e===void 0)return;let n=()=>{this.userInput_DS.syncQuickInputMainBoundsFromMainElement(e),this.userInput_DS.clampFabOffsetsToMain(e)};n(),this.quickInputMainResizeObs=new ResizeObserver(n),this.quickInputMainResizeObs.observe(e)}ngOnDestroy(){super.ngOnDestroy(),this.quickInputMainResizeObs?.disconnect()}checkSetupAndRedirect(){return A(this,null,function*(){try{(yield this.setup_DS.getSetupStatus()).setupCompleted||this.router.navigate(["/setup"])}catch{}})}toggleSideNav(){this.sideNavOpen_$.update(e=>!e)}toggleSettingsSubmenu(){this.settingsSubmenuOpen_$.update(e=>!e)}toggleMaintenanceSubmenu(){this.maintenanceSubmenuOpen_$.update(e=>!e)}togglePocSubmenu(){this.pocSubmenuOpen_$.update(e=>!e)}isMaintenanceRoute(e){return e.startsWith("/model-registry")||e.startsWith("/cost-tracking")||e.startsWith("/costs")||e.startsWith("/embedding-registry")||e.startsWith("/document-library")||e.startsWith("/project-source")||e.startsWith("/errors")||e.startsWith("/host-runtime-mcp")||e.startsWith("/feedback")||e.startsWith("/logs")||e.startsWith("/workflow-settings")||e.startsWith("/mobile-app")||e.startsWith("/agent-instances")||e.startsWith("/terminals")||e.startsWith("/live-development-pipeline")||e.startsWith("/system-status")}reconnectSocket(){this.session_DS.reconnectSocket()}handleRunDiagnosis(){this.isDiagnosing_$()||(this.isDiagnosing_$.set(!0),this.session_DS.diagnoseConnection().then(e=>{this.mergeDiagnosisIntoLastError(e),this.isDiagnosing_$.set(!1)}).catch(e=>{this.mergeDiagnosisIntoLastError({diagnosisError:e instanceof Error?e.message:String(e)}),this.isDiagnosing_$.set(!1)}))}mergeDiagnosisIntoLastError(e){let n=this.lastSocketError_$();if(n!==null&&typeof n=="object"){let i=Y({},n);i.diagnosis=e,this.lastSocketError_$.set(i)}}static readSideNavOpenFromStorage(){return H.readString(Kn)!=="false"}static readNavSubmenuOpenFromStorage(e){return H.readString(e)==="true"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-main-frame"]],viewQuery:function(n,i){if(n&1&&Oe(Qo,5,ve),n&2){let s;Fe(s=Le())&&(i.quickInputAnchorMainRef=s.first)}},standalone:!0,features:[Gt,U],decls:43,vars:24,consts:[["quickInputAnchorMain",""],[1,"flex","flex-col","h-dvh","overflow-hidden"],[1,"shrink-0","h-14","min-h-[44px]","border-b","border-neonDefault","bg-ccapSurface","flex","items-center","justify-between","px-4","gap-2","overflow-visible","pt-[var(--sat)]"],[1,"flex","items-center","gap-2","min-w-0","flex-1"],["type","button",1,"p-2","-ml-2","rounded-md","text-neutral-400","hover:text-neutral-200","hover:bg-neutral-800","transition-colors","duration-200","flex-shrink-0",3,"click","title"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-6","h-6"],[1,"min-w-0"],[1,"text-lg","font-semibold","text-neutral-100"],[1,"ml-2","text-sm","text-neutral-400","gt-xs:inline","xs:hidden"],[1,"text-sm","font-medium","tracking-widest","text-neutral-400","uppercase","select-none","gt-xs:inline","xs:hidden"],[1,"flex","items-center","gap-2","flex-1","justify-end"],[1,"relative","flex","items-center","justify-center","group"],[1,"absolute","top-full","right-0","pt-2","z-50","opacity-0","group-hover:opacity-100","transition-opacity","duration-150","pointer-events-none","[&.tooltip-error]:group-hover:pointer-events-auto","w-max","max-w-[min(420px,calc(100vw-5rem))]"],[1,"rounded","px-1","py-1","text-xs","text-neutral-100","bg-neutral-700","shadow-md","border","border-red-500/70","w-full","max-w-[min(420px,calc(100vw-5rem))]"],[1,"whitespace-nowrap","rounded","px-2","py-1","text-xs","text-neutral-100","bg-neutral-700","shadow-md","border","border-neonDefault"],["type","button",1,"flex","items-center","justify-center","p-0.5","rounded-full","text-neutral-400","hover:text-neutral-200","transition-colors","duration-200","cursor-pointer",3,"click"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-green-500","shrink-0"],["aria-hidden","true",1,"inline-block","w-3","h-3","shrink-0","animate-spin","rounded-full","border-2","border-neonCyan/50","border-t-neonCyan"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-red-500","shrink-0"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-neutral-500","shrink-0"],["title","Client version",1,"text-sm","text-neutral-300"],[1,"text-neutral-500","font-normal","xs:hidden","gt-xs:inline"],["aria-hidden","true",1,"fixed","inset-0","z-30","bg-black/50","xs:block","gt-xs:hidden"],[1,"flex","flex-1","min-h-0"],[1,"shrink-0","border-r","border-neonDefault","bg-ccapSurface","overflow-y-auto","flex","flex-col","xs:fixed","xs:inset-y-0","xs:left-0","xs:z-40","xs:w-64","xs:max-w-[85vw]","xs:top-14","xs:bottom-0","xs:transition-transform","xs:duration-200","xs:ease-out","gt-xs:!translate-x-0","overflow-hidden","transition-[width]","duration-200","ease-out",3,"ngClass"],[1,"flex","flex-col","flex-1","min-h-0","p-2"],[1,"flex","flex-col","flex-1","min-h-0","min-w-0","relative","pb-[var(--sab)]"],[1,"absolute","top-0","left-0","z-10","flex","gap-1","p-2","rounded-br-md","border-b","border-r","border-neonDefault","bg-ccapSurface/95","shadow-sm","xs:hidden"],[1,"absolute","top-0","right-0","z-10","flex","gap-1","p-2","rounded-bl-md","border-b","border-l","border-neonDefault","bg-ccapSurface/95","shadow-sm"],[1,"flex","flex-col","flex-1","min-h-0","overflow-x-hidden","overflow-y-auto"],[1,"shrink-0","px-3","py-2","border-b","border-ccapAccent/40","bg-ccapAccent/10","text-sm","text-neutral-200","flex","flex-wrap","items-center","justify-between","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 19l-7-7 7-7"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M4 6h16M4 12h16M4 18h16"],[1,"rounded","px-1","py-1","text-xs","text-neutral-100","bg-neutral-700","shadow-md","border","border-red-500/70","w-full","max-w-[min(420px,calc(100vw-5rem))]",3,"click"],["type","button",1,"w-full","mb-1","px-2","py-1.5","text-xs","font-medium","rounded","bg-neonCyan/15","border","border-neonCyan/50","text-neonCyan","hover:bg-neonCyan/25","disabled:opacity-50","transition-colors",3,"click","disabled"],[1,"max-h-72","overflow-y-auto","overflow-x-hidden","[&_h2]:text-sm","[&_h2]:mb-0"],["sourceLabelOverride","WebSocket",3,"error"],[1,"text-neutral-500","text-[11px]","mt-1","px-1"],["aria-hidden","true",1,"fixed","inset-0","z-30","bg-black/50","xs:block","gt-xs:hidden",3,"click"],[1,"flex","flex-col","gap-0.5","flex-1","overflow-y-auto"],["routerLink","/","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3",3,"routerLinkActiveOptions"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-5","h-5","shrink-0"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"],["routerLink","/dark-office","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"],["routerLink","/project-management","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"],["routerLink","/session","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"],["title","Legal\xE1bb egy CCAP Session fut","aria-label","Legal\xE1bb egy CCAP Session fut",1,"inline-block","w-2","h-2","rounded-full","bg-yellow-400","animate-pulse","shrink-0"],["routerLink","/cc-session","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"],["title","Legal\xE1bb egy CC Session fut","aria-label","Legal\xE1bb egy CC Session fut",1,"inline-block","w-2","h-2","rounded-full","bg-yellow-400","animate-pulse","shrink-0"],["routerLink","/scheduler","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"],[1,"flex","flex-col","gap-0.5"],["type","button",1,"px-4","py-2.5","rounded-md","text-neutral-200","text-sm","font-medium","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-3","w-full","text-left",3,"click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"],[1,"ml-auto","shrink-0","transition-transform","duration-200"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 5l7 7-7 7"],[1,"flex","flex-col","gap-0.5","pl-4","ml-5","border-l","border-neutral-600"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 12a3 3 0 11-6 0 3 3 0 016 0z"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.049.58.025 1.193-.14 1.743"],["routerLink","/coordinator","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-4","h-4","shrink-0"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"],["routerLink","/orchestrator","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 10V3L4 14h7v7l9-11h-7z"],["routerLink","/voice-notes-poc","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m-4 0h8m-4-16a3 3 0 00-3 3v4a3 3 0 006 0V7a3 3 0 00-3-3z"],["routerLink","/ca-session","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"],["routerLink","/oc-session","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"],["routerLink","/consultant","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"],["routerLink","/master-control-remote-poc","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5.636 18.364a9 9 0 010-12.728m12.728 0a9 9 0 010 12.728m-9.9-2.829a5 5 0 010-7.07m7.072 0a5 5 0 010 7.07M13 12a1 1 0 11-2 0 1 1 0 012 0z"],["routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2",3,"routerLink","routerLinkActiveOptions"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2"],["routerLink","/live-development-pipeline","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M22 12h-4l-3 9L9 3l-3 9H2"],["routerLink","/model-registry","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"],["routerLink","/cost-tracking","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"],["routerLink","/cc-usage","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 19V6l3-3 3 3v13M5 21h14a2 2 0 002-2v-7l-7-7-7 7v7a2 2 0 002 2z"],["routerLink","/costs","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["routerLink","/embedding-registry","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"],["routerLink","/document-library","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"],["routerLink","/project-source","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"],["routerLink","/errors","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"],[1,"ml-auto","shrink-0","min-w-[1.25rem]","px-1.5","py-0.5","rounded-full","text-xs","font-semibold","text-neutral-950","bg-amber-400","border","border-amber-500/80","text-center","leading-none"],["routerLink","/host-runtime-mcp","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"],["routerLink","/feedback","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"],["routerLink","/logs","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"],["routerLink","/workflow-settings","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"],["routerLink","/terminals","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["routerLink","/agent-instances","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["routerLink","/mobile-app","routerLinkActive","text-ccapAccent !border-ccapAccent shadow-neon-glow-accent",1,"px-3","py-2","rounded-md","text-neutral-300","text-sm","border","border-transparent","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","gap-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z"],["type","button",1,"p-2","rounded-md","text-neutral-400","hover:text-neutral-200","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","justify-center",3,"title"],["type","button",1,"p-2","rounded-md","text-neutral-400","hover:text-neutral-200","hover:bg-neutral-800","transition-colors","duration-200","flex","items-center","justify-center",3,"click","title"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-5","h-5"],[1,"text-lg"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M4 6h16M4 10h16M4 14h16M4 18h16"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"],[1,"flex","items-center","gap-2","min-w-0"],["aria-hidden","true",1,"w-2","h-2","rounded-full","bg-ccapAccent","animate-pulse","shrink-0"],[1,"truncate"],[1,"text-neutral-400"],["routerLink","/model-registry",1,"shrink-0","text-ccapAccent","hover:underline","font-medium","text-xs","uppercase","tracking-wide"]],template:function(n,i){if(n&1){let s=I();o(0,"div",1)(1,"header",2)(2,"div",3)(3,"button",4),m("click",function(){return f(s),h(i.toggleSideNav())}),C(4,Wo,2,0,":svg:svg",5)(5,Go,2,0,":svg:svg",5),r(),o(6,"div",6)(7,"span",7),c(8,"CCAP"),r(),o(9,"span",8),c(10,"Agentic AI System"),r()()(),o(11,"span",9),c(12,"Command Center"),r(),o(13,"div",10),b(14,"app-ntf-tray"),o(15,"div",11)(16,"div",12),C(17,Yo,7,3,"div",13)(18,Ko,2,1,"span",14),r(),o(19,"button",15),m("click",function(){return f(s),h(i.reconnectSocket())}),C(20,Xo,1,0,"span",16)(21,Zo,1,0,"span",17)(22,Jo,1,0,"span",18)(23,er,1,0,"span",19),r()(),o(24,"span",20)(25,"span",21),c(26,"Version"),r(),c(27),r()()(),C(28,tr,1,0,"div",22),o(29,"div",23)(30,"aside",24),C(31,pr,58,25,"nav",25),r(),o(32,"main",26,0),b(34,"app-ccap-app-update-banner")(35,"app-ccap-server-update-banner")(36,"app-ccap-error-popup"),C(37,hr,3,0,"div",27)(38,yr,3,0,"div",28),o(39,"div",29),C(40,Ir,8,1,"div",30),b(41,"router-outlet"),r()()(),b(42,"app-ccap-mobile-server-setup"),r()}if(n&2){let s;l(3),_("title",i.sideNavOpen_$()?"Men\xFC bez\xE1r\xE1sa":"Men\xFC megnyit\xE1sa"),q("aria-label",i.sideNavOpen_$()?"Men\xFC bez\xE1r\xE1sa":"Men\xFC megnyit\xE1sa"),l(),u(i.sideNavOpen_$()?4:5),l(12),O("tooltip-error",i.socketStatus_$()==="error"&&i.lastSocketError_$()),l(),u(i.socketStatus_$()==="error"&&i.lastSocketError_$()?17:18),l(2),q("aria-label",i.socketStatusLabel_$()),l(),u((s=i.socketStatus_$())==="connected"?20:s==="connecting"?21:s==="error"?22:23),l(7),E(" v",i.version," "),l(),u(i.sideNavOpen_$()?28:-1),l(2),O("w-64",i.sideNavOpen_$())("w-0",!i.sideNavOpen_$())("border-r-0",!i.sideNavOpen_$()),_("ngClass",rt(21,zo,!i.sideNavOpen_$(),i.sideNavOpen_$())),l(),u(i.sideNavOpen_$()?31:-1),l(6),u(i.closedPanelsLeftStrip_$().length>0?37:-1),l(),u(i.layoutOverlay_CS.closedPanelsRight_$().length>0?38:-1),l(2),u(i.modelTestRunGlobalBannerVisible_$()?40:-1)}},dependencies:[j,le,Ce,sn,lt,ln,ie,Ln,jn,On,Fn,Yn],encapsulation:2})}return t})();function Er(t,a){let e=t>>>0,n=a>>>0;return e*2654435761+n*1597334677+1013904223>>>0||1}function wr(t){return t>>>0||1}function Ar(t){return t.value=t.value*1664525+1013904223>>>0,t.value}function z(t,a,e){let n=e-a+1,i=Ar(t);return a+i%n}function _e(t,a,e){return t<a?a:t>e?e:t}function Pr(t){let a=z(t,0,99);return a<40?z(t,-3,3):a<70?z(t,-6,6):a<80?z(t,-11,-5):a<90?z(t,5,11):a<95?z(t,-20,-12):z(t,12,20)}function $r(t,a,e,n){let i=_e(a,e,n);if(i<40||i>60||z(t,1,100)>55)return i;let s=z(t,0,1)===0,p=z(t,5,13),x=_e(s?i-p:i+p,e,n);return x<40||x>60?x:_e(s?i+p:i-p,e,n)}function ti(t){let a=[];for(let e=0;e<t.length;e++){let n=t[e],i=a[a.length-1];i?.x===n.x&&i.y===n.y||a.push(n)}return a}function Mr(t){let a=ti(t);if(a.length===0)return"M 0 0 L 0 0";let e=`M ${a[0].x} ${a[0].y}`;for(let n=1;n<a.length;n++)e+=` L ${a[n].x} ${a[n].y}`;return e}function Dr(t){if(t.length===0)return[];let a=[{x:t[0].x,y:t[0].y,cumLen:0}],e=0;for(let n=1;n<t.length;n++){let i=t[n].x-t[n-1].x,s=t[n].y-t[n-1].y;e+=Math.hypot(i,s),a.push({x:t[n].x,y:t[n].y,cumLen:e})}return a}function Rr(t){let e=50+z(t,-5,5),n=z(t,70,90),i=z(t,14,26),s=z(t,4,11),p=n-s,x=[{x:0,y:e},{x:i,y:e}],g=i,T=e,w=0;for(;g<p-1&&w<56;){w+=1;let Si=Pr(t),re=_e(T+Si,30,70);if(re===T){let be=z(t,1,3);re=_e(T+(z(t,0,1)===0?-be:be),30,70)}re=$r(t,re,30,70);let Re=re-T,At=Math.abs(Re),Ge=g+At;if(Ge>p){let be=p-g;if(be<1.5)break;At=Math.floor(be);let ge=Re>=0?1:-1;re=_e(T+ge*At,30,70),Re=re-T,Ge=g+Math.abs(Re)}if(Math.abs(Re)<1e-4)continue;x.push({x:Ge,y:re}),g=Ge,T=re;let jt=p-g;if(jt>1e-4){let ge=Math.min(12,Math.floor(jt));if(ge>=3){let vi=z(t,3,ge);g=Math.min(g+vi,p),x.push({x:g,y:T})}else ge>=1&&(g=Math.min(g+ge,p),x.push({x:g,y:T}))}}let M=z(t,4,8),F=z(t,4,8),D=x[x.length-1];x.push({x:n,y:D.y});let X=D.y,Z=n,J=_e(X-M,8,X-1),Nt=_e(X+F,X+1,92),hi=`M ${Z} ${X} L ${Z} ${J}`,xi=`M ${Z} ${X} L ${Z} ${Nt}`,bi=ti(x),We=Dr(bi),gi=We.length>0?We[We.length-1].cumLen:0;return{main:Mr(x),wallRippleUp:hi,wallRippleDown:xi,mainPoints:We,totalLength:gi,wallX:Z,wallY:X,wallRippleUpEndY:J,wallRippleDownEndY:Nt}}var he=class{static buildTraceForSpawnId(a){if(a<1)return{main:"M 0 0 L 0 0",wallRippleUp:"M 0 0 L 0 0",wallRippleDown:"M 0 0 L 0 0",mainPoints:[{x:0,y:0,cumLen:0}],totalLength:0,wallX:0,wallY:0,wallRippleUpEndY:0,wallRippleDownEndY:0};let e=Er(a,0),n={value:wr(e)};return Rr(n)}static getPointAtDistance(a,e){if(a.length===0)return{x:0,y:0};if(e<=0)return{x:a[0].x,y:a[0].y};let n=a[a.length-1];if(e>=n.cumLen)return{x:n.x,y:n.y};let i=0,s=a.length-1;for(;s-i>1;){let w=Math.floor((i+s)/2);a[w].cumLen<=e?i=w:s=w}let p=a[i],x=a[s],g=x.cumLen-p.cumLen;if(g<1e-9)return{x:p.x,y:p.y};let T=(e-p.cumLen)/g;return{x:p.x+T*(x.x-p.x),y:p.y+T*(x.y-p.y)}}};function Nr(t,a){t&1&&(o(0,"div",13),b(1,"app-ccap-error-display",17),r()),t&2&&(l(),_("error",a))}function jr(t,a){t&1&&c(0," Teszt\u2026 ")}function Qr(t,a){t&1&&c(0," Kapcsolat teszt ")}function Br(t,a){if(t&1&&(o(0,"div",18)(1,"div",20),c(2,"\u2713 Szerver el\xE9rhet\u0151"),r(),o(3,"div",21),c(4),r()()),t&2){let e=d();l(4),ae(" GET ",e.targetUrl," \u2014 ",e.durationMs,"ms ")}}function zr(t,a){if(t&1&&(o(0,"div",19),b(1,"app-ccap-error-display",22),r()),t&2){let e=d();l(),_("error",e.errorForDisplay)}}function Hr(t,a){if(t&1&&C(0,Br,5,2,"div",18)(1,zr,2,1,"div",19),t&2){let e=a;u(e.isSuccess?0:e.errorForDisplay?1:-1)}}function qr(t,a){if(t&1){let e=I();o(0,"p",12),c(1),r(),C(2,Nr,2,1,"div",13),o(3,"div",14)(4,"button",15),m("click",function(){f(e);let i=d(3);return h(i.handleTestConnection())}),C(5,jr,1,0)(6,Qr,1,0),r(),o(7,"button",16),m("click",function(){f(e);let i=d(3);return h(i.handleResetServerUrl())}),c(8," Szerver \xFAjrakonfigur\xE1l\xE1sa "),r()(),C(9,Hr,2,1)}if(t&2){let e,n,i=d(3);l(),E(" ",i.configuredServerUrl_$()," "),l(),u((e=i.bootStatusError_$())?2:-1,e),l(2),_("disabled",i.isTestingConnection_$()),l(),u(i.isTestingConnection_$()?5:6),l(4),u((n=i.diagnosticResult_$())?9:-1,n)}}function Wr(t,a){if(t&1){let e=I();o(0,"div",4)(1,"div",6),b(2,"span",7),o(3,"div",8)(4,"p",9),c(5,"Server unavailable"),r(),o(6,"p",10),c(7," Use the status control in the header to reconnect. "),r(),C(8,qr,10,5),r(),o(9,"button",11),m("click",function(){f(e);let i=d(2);return h(i.handleToggleOverlaySubdued())}),c(10," Dim overlay "),r()()()}if(t&2){let e=d(2);l(8),u(e.isCapacitorNative_$()?8:-1)}}function Gr(t,a){if(t&1){let e=I();o(0,"button",23),m("click",function(){f(e);let i=d(2);return h(i.handleToggleOverlaySubdued())}),c(1," Full overlay "),r()}}function Yr(t,a){if(t&1&&(o(0,"div",0)(1,"div",1),b(2,"div",2)(3,"canvas",3),C(4,Wr,11,1,"div",4)(5,Gr,2,0,"button",5),r()()),t&2){let e=d();l(),O("ccap-server-unavailable-dim-stack--subdued",e.isOverlaySubdued_$())("ccap-circuit--reduced-motion",e.circuitReducedMotion_$()),l(),O("ccap-server-unavailable-scrim--subdued",e.isOverlaySubdued_$()),l(2),u(e.isOverlaySubdued_$()?5:4)}}var ze=100,Kr=96/2.54,St=(()=>{class t{session_DS=y(Pe);_injector=y(Xe);_hostRef=y(ve);isOverlaySubdued_$=S(!1);isCapacitorNative_$=S(typeof window.Capacitor<"u"&&window.Capacitor.isNativePlatform?.()===!0);showOverlay_$=v(()=>this.session_DS.socketStatus_$()===Be.error);circuitTravelLanes_$=S([]);circuitReducedMotion_$=S(!1);_laneSeq=0;_lanes=[];_rafId=null;_lastRafApplyMs=null;_laneTeardownTimeouts=new Map;_canvasCtx=null;_canvasEl=null;_cachedDpr=1;_cachedCssW=1;_cachedCssH=1;_trailMaxUserUnits=50;handleToggleOverlaySubdued(){this.isOverlaySubdued_$.update(e=>!e)}isTestingConnection_$=S(!1);diagnosticResult_$=S(null);handleTestConnection(){return A(this,null,function*(){if(!this.isTestingConnection_$()){this.isTestingConnection_$.set(!0),this.diagnosticResult_$.set(null);try{let e=yield Me.probeServer(B.baseUrl);this.diagnosticResult_$.set(e)}finally{this.isTestingConnection_$.set(!1)}}})}configuredServerUrl_$=S(B.baseUrl);bootStatusError_$=S(this.readBootStatusError());readBootStatusError(){let e=H.readJson("ccap-boot-status-error",null);if(e==null||typeof e!="object"||!("targetUrl"in e)||!("errorName"in e))return null;let n=e,i=typeof n.errorMessage=="string"?n.errorMessage:"",s=typeof n.errorName=="string"?n.errorName:"unknown";return{message:i?`Indul\xE1skor a szerver nem v\xE1laszolt (${s}): ${i}`:`Indul\xE1skor a szerver nem v\xE1laszolt (${s})`,errorCode:`CCAP-NET-BOOT-${s.toUpperCase()}`,additionalContent:n}}handleResetServerUrl(){H.remove("ccap-server-url"),this.reloadApplication()}reloadApplication(){window.location.reload()}constructor(){W(e=>{let n=globalThis.window;if(typeof n<"u"&&typeof n.matchMedia=="function"){let i=n.matchMedia("(prefers-reduced-motion: reduce)"),s=()=>{this.circuitReducedMotion_$.set(i.matches)};s(),i.addEventListener("change",s),e(()=>{i.removeEventListener("change",s)})}},{allowSignalWrites:!0}),W(e=>{if(!this.showOverlay_$()){this.stopAllAnimation(),this.isOverlaySubdued_$.set(!1);return}let i=globalThis.document,s=()=>{if(!i||!i.hidden){this._lanes.length>0&&this.ensureRafLoop();return}this.stopRafOnly()};i&&i.addEventListener("visibilitychange",s),this.spawnLane(),Je(()=>{this.showOverlay_$()&&(this.initCanvas(),this.ensureRafLoop())},{injector:this._injector});let x=setInterval(()=>{this.spawnLane()},1e3);e(()=>{i&&i.removeEventListener("visibilitychange",s),clearInterval(x),this.stopAllAnimation()})},{allowSignalWrites:!0}),W(e=>{if(!this.showOverlay_$())return;let i=()=>{this.handleResize()};globalThis.window.addEventListener("resize",i),e(()=>{globalThis.window.removeEventListener("resize",i)})},{allowSignalWrites:!0})}spawnLane(){if(!this.showOverlay_$()||globalThis.document?.hidden)return;this._laneSeq+=1;let n=this._laneSeq,i=`lane-${n}`,s=he.buildTraceForSpawnId(n),p={trackId:i,pathSeedId:n,main:s.main,points:s.mainPoints,totalLength:s.totalLength,wallX:s.wallX,wallY:s.wallY,wallRippleUpEndY:s.wallRippleUpEndY,wallRippleDownEndY:s.wallRippleDownEndY,startTimeMs:0,wallRippleActive:!1,didScheduleRippleAndTeardown:!1};this._lanes.push(p);let x=5;for(;this._lanes.length>x;){let g=this._lanes.shift();g&&this.clearLaneTeardownTimer(g.trackId)}this.circuitTravelLanes_$.set([...this._lanes]),this.ensureRafLoop()}enqueueLaneTeardown(e){if(this._laneTeardownTimeouts.has(e))return;let n=1420,i=setTimeout(()=>{this._laneTeardownTimeouts.delete(e),this.showOverlay_$()&&(this._lanes=this._lanes.filter(s=>s.trackId!==e),this.circuitTravelLanes_$.set([...this._lanes]))},n);this._laneTeardownTimeouts.set(e,i)}clearLaneTeardownTimer(e){let n=this._laneTeardownTimeouts.get(e);n!==void 0&&(clearTimeout(n),this._laneTeardownTimeouts.delete(e))}initCanvas(){let n=this._hostRef.nativeElement.querySelector("canvas");n&&(this._canvasEl=n,this._canvasCtx=n.getContext("2d"),this.handleResize())}handleResize(){let e=this._canvasEl;if(!e)return;let n=globalThis.devicePixelRatio||1,i=Math.max(e.clientWidth,1),s=Math.max(e.clientHeight,1);e.width=Math.round(i*n),e.height=Math.round(s*n),this._cachedDpr=n,this._cachedCssW=i,this._cachedCssH=s,this.updateTrailMaxUserUnits(Math.max(i,s))}updateTrailMaxUserUnits(e){let n=Math.max(e,1),i=37.5*Kr;this._trailMaxUserUnits=i/n*ze}ensureRafLoop(){if(this._rafId!==null||globalThis.document?.hidden)return;let n=i=>{if(globalThis.document?.hidden){this.stopRafOnly();return}if(!this.showOverlay_$()){this.stopRafOnly();return}if(this._lanes.length===0){this.stopRafOnly();return}if(this.circuitReducedMotion_$()){let g=33;if(this._lastRafApplyMs!==null&&i-this._lastRafApplyMs<g){this._rafId=requestAnimationFrame(n);return}}this._lastRafApplyMs=i;for(let g of this._lanes)g.startTimeMs===0&&(g.startTimeMs=i);for(let g of this._lanes){if(g.startTimeMs===0)continue;let T=i-g.startTimeMs;if(!g.didScheduleRippleAndTeardown){let w=1722;T>=w&&(g.wallRippleActive=!0,g.didScheduleRippleAndTeardown=!0,this.enqueueLaneTeardown(g.trackId))}}this.drawFrame(i);let p=2118;this._lanes.some(g=>g.startTimeMs===0?!1:i-g.startTimeMs<p)?this._rafId=requestAnimationFrame(n):this._rafId=null};this._rafId=requestAnimationFrame(n)}stopRafOnly(){this._rafId!==null&&(cancelAnimationFrame(this._rafId),this._rafId=null),this._lastRafApplyMs=null}stopAllAnimation(){this.stopRafOnly(),this._laneTeardownTimeouts.forEach(e=>{clearTimeout(e)}),this._laneTeardownTimeouts.clear(),this._lanes=[],this.circuitTravelLanes_$.set([]),this._laneSeq=0,this._canvasCtx=null,this._canvasEl=null}drawFrame(e){let n=this._canvasCtx;if(!n)return;let i=this._cachedDpr,s=this._cachedCssW,p=this._cachedCssH;n.setTransform(i,0,0,i,0,0),n.clearRect(0,0,s,p);let x=p>s,g,T;x?(n.translate(0,p),n.rotate(-Math.PI/2),g=p/ze,T=(s-ze*g)/2):(g=s/ze,T=(p-ze*g)/2),n.save(),this.isOverlaySubdued_$()&&(n.globalAlpha=.38);for(let w of this._lanes)w.startTimeMs!==0&&this.drawLane(n,w,e,g,T);n.restore()}drawLane(e,n,i,s,p){let x=i-n.startTimeMs,g=1650,T,w,M;if(x<g)w=!0,T=x/g*n.totalLength,M=1;else{w=!1,T=n.totalLength;let F=x-g;if(F<420){let D=F/420;M=Math.max(0,1-D*D)}else M=0}if(M>0&&n.points.length>=2){let F=this._trailMaxUserUnits*M,D=Math.max(0,T-F);this.drawTrail(e,n.points,D,T,s,p,M)}if(w){let F=he.getPointAtDistance(n.points,T);this.drawHead(e,F.x,F.y,s,p)}if(n.wallRippleActive){let F=g+72,D=x-F;D>=0&&D<=520&&this.drawWallRipple(e,n,D,s,p)}}drawTrail(e,n,i,s,p,x,g){if(s-i<.01||n.length<2)return;let T=he.getPointAtDistance(n,i),w=he.getPointAtDistance(n,s),M=T.x*p,F=T.y*p+x,D=w.x*p,X=w.y*p+x,Z=e.createLinearGradient(M,F,D,X);Z.addColorStop(0,"rgba(34, 211, 238, 0.1)"),Z.addColorStop(.48,"rgba(56, 189, 248, 0.52)"),Z.addColorStop(1,"rgba(165, 243, 252, 0.98)"),e.save(),e.globalAlpha=e.globalAlpha*g,e.strokeStyle=Z,e.lineWidth=.26*p,e.lineCap="butt",e.lineJoin="round",e.beginPath(),e.moveTo(M,F);for(let J=0;J<n.length;J++)if(!(n[J].cumLen<=i)){if(n[J].cumLen>=s)break;e.lineTo(n[J].x*p,n[J].y*p+x)}e.lineTo(D,X),e.stroke(),e.restore()}drawHead(e,n,i,s,p){let x=n*s,g=i*s+p,T=Math.max(.38*s,.5);e.save(),e.shadowBlur=Math.max(1.2*s,2),e.shadowColor="rgba(34, 211, 238, 0.7)";let w=e.createRadialGradient(x,g,0,x,g,T);w.addColorStop(0,"rgba(255, 255, 255, 1)"),w.addColorStop(.42,"rgba(186, 230, 254, 1)"),w.addColorStop(1,"rgba(56, 189, 248, 1)"),e.fillStyle=w,e.beginPath(),e.arc(x,g,T,0,Math.PI*2),e.fill(),e.restore()}drawWallRipple(e,n,i,s,p){let g=Math.min(i/520,1),T=1-(1-g)*(1-g),w;if(T<.1?w=T/.1*.85:T<.3?w=.85+(T-.1)/(.3-.1)*(.5-.85):w=.5*(1-(T-.3)/(1-.3)),w<.005)return;let M=n.wallX*s,F=n.wallY*s+p,D=n.wallRippleUpEndY*s+p,X=n.wallRippleDownEndY*s+p;e.save(),e.globalAlpha=e.globalAlpha*w,e.lineWidth=.36*s,e.lineCap="butt",e.shadowBlur=Math.max(.8*s,2),e.shadowColor="rgba(34, 211, 238, 0.6)";let Z=[{endY:D,color:"rgb(56, 189, 248)"},{endY:X,color:"rgb(34, 211, 238)"}];for(let J of Z)e.strokeStyle=J.color,e.beginPath(),e.moveTo(M,F),e.lineTo(M,F+(J.endY-F)*T),e.stroke();e.restore()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-server-unavailable-overlay"]],standalone:!0,features:[U],decls:1,vars:1,consts:[[1,"absolute","inset-0","flex","items-center","justify-center","pointer-events-none"],[1,"ccap-server-unavailable-dim-stack","absolute","inset-0","z-0","flex","flex-col","items-center","justify-center"],["aria-hidden","true",1,"ccap-server-unavailable-scrim","absolute","inset-0","z-0"],["aria-hidden","true",1,"ccap-circuit-canvas","absolute","inset-0","z-0","pointer-events-none"],["role","status","aria-live","polite",1,"relative","z-[2]","px-4","max-w-[min(520px,calc(100vw-2rem))]","w-full","flex","justify-center","isolation","isolate"],["type","button","aria-label","Toggle dimming of the server unavailable overlay",1,"ccap-server-unavailable-overlay-dim-toggle","ccap-server-unavailable-overlay-dim-toggle--subdued","pointer-events-auto","absolute","top-3","left-3","z-[2]","shrink-0","rounded-md","border","border-neonCyan/60","bg-neutral-900/85","px-3","py-1.5","text-xs","font-medium","text-neutral-200","shadow-md","hover:border-neonCyan","hover:bg-neutral-900","hover:text-neutral-50","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-neonCyan"],[1,"ccap-server-unavailable-status","pointer-events-auto","flex","flex-col","items-center","gap-4","rounded-xl","border","border-neonCyan/30","bg-neutral-950/86","px-6","py-5","shadow-xl","w-full","sm:w-auto","backdrop-blur-md"],["aria-hidden","true",1,"inline-block","w-10","h-10","shrink-0","animate-spin","rounded-full","border-2","border-neonCyan/50","border-t-neonCyan"],[1,"text-center","max-w-[min(480px,calc(100vw-4rem))]"],[1,"text-lg","font-semibold","text-neutral-100"],[1,"text-sm","text-neutral-400","mt-1"],["type","button","aria-label","Toggle dimming of the server unavailable overlay",1,"ccap-server-unavailable-overlay-dim-toggle","pointer-events-auto","shrink-0","rounded-md","border","border-neonCyan/60","bg-neutral-900/85","px-3","py-1.5","text-xs","font-medium","text-neutral-200","shadow-md","hover:border-neonCyan","hover:bg-neutral-900","hover:text-neutral-50","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-neonCyan","backdrop-blur-sm",3,"click"],[1,"text-[11px]","font-mono","text-neutral-500","mt-2","break-all"],[1,"mt-2","text-left","pointer-events-auto"],[1,"flex","flex-wrap","justify-center","gap-2","mt-3"],["type","button",1,"rounded-md","border","border-neonCyan/60","bg-neonCyan/15","px-3","py-1.5","text-xs","font-medium","text-neonCyan","hover:bg-neonCyan/25","transition-colors","pointer-events-auto","disabled:opacity-40","disabled:cursor-not-allowed",3,"click","disabled"],["type","button",1,"rounded-md","border","border-neonCyan/60","bg-neonCyan/15","px-3","py-1.5","text-xs","font-medium","text-neonCyan","hover:bg-neonCyan/25","transition-colors","pointer-events-auto",3,"click"],["sourceLabelOverride","Indul\xE1si szerver probe",3,"error"],[1,"mt-3","rounded-md","border","border-emerald-500/60","bg-emerald-500/10","px-3","py-2","text-[11px]","text-emerald-200","text-left","pointer-events-auto"],[1,"mt-3","text-left","pointer-events-auto"],[1,"font-semibold","mb-1"],[1,"font-mono","text-[10px]","text-neutral-400","break-all"],["sourceLabelOverride","Kapcsolat teszt",3,"error"],["type","button","aria-label","Toggle dimming of the server unavailable overlay",1,"ccap-server-unavailable-overlay-dim-toggle","ccap-server-unavailable-overlay-dim-toggle--subdued","pointer-events-auto","absolute","top-3","left-3","z-[2]","shrink-0","rounded-md","border","border-neonCyan/60","bg-neutral-900/85","px-3","py-1.5","text-xs","font-medium","text-neutral-200","shadow-md","hover:border-neonCyan","hover:bg-neutral-900","hover:text-neutral-50","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-neonCyan",3,"click"]],template:function(n,i){n&1&&C(0,Yr,6,7,"div",0),n&2&&u(i.showOverlay_$()?0:-1)},dependencies:[j,ie],styles:[`@charset "UTF-8";[_nghost-%COMP%]{display:block;position:fixed;inset:0;z-index:58;pointer-events:none}.ccap-server-unavailable-scrim[_ngcontent-%COMP%]{background-color:#0009;transition:background-color .3s ease-out}.ccap-server-unavailable-scrim.ccap-server-unavailable-scrim--subdued[_ngcontent-%COMP%]{background-color:#00000038}.ccap-circuit-canvas[_ngcontent-%COMP%]{width:100%;height:100%}.ccap-server-unavailable-dim-stack.ccap-circuit--reduced-motion[_ngcontent-%COMP%] .animate-spin[_ngcontent-%COMP%], .ccap-server-unavailable-dim-stack--subdued[_ngcontent-%COMP%] .animate-spin[_ngcontent-%COMP%]{animation:none}.ccap-server-unavailable-status--subdued[_ngcontent-%COMP%]{background-color:#0a0a0c9e;border-color:#22d3ee38;box-shadow:0 8px 28px #00000047}.ccap-server-unavailable-overlay-dim-toggle--subdued[_ngcontent-%COMP%]{background-color:#17171761;border-color:#22d3ee59;color:#f5f5f5d1}
|
|
2
2
|
/*# sourceMappingURL=ccap-server-unavailable-overlay.component-LXXXGPVJ.css.map */`],changeDetection:0})}return t})();function Zr(t,a){if(t&1&&(o(0,"span",4),c(1),r()),t&2){let e=d();l(),E(" ",e.activeCount_$()," ")}}var Jr=8,ii=(()=>{class t{userInput_DS=y(G);activeCount_$=v(()=>0);isDraggingFab_$=S(!1);pointerDownClientX=0;pointerDownClientY=0;dragStartRightPx=0;dragStartBottomPx=0;dragStartClientX=0;dragStartClientY=0;isPointerDragging=!1;isPrimaryButtonDownOnFab=!1;suppressNextFabClick=!1;activePointerId=null;fabButtonElement=null;constructor(){Je(()=>{let e=this.getMainElement();e!==null&&this.userInput_DS.clampFabOffsetsToMain(e)})}handleFabClick(e){if(this.suppressNextFabClick){e.preventDefault(),e.stopPropagation(),this.suppressNextFabClick=!1;return}this.userInput_DS.togglePanel()}handleFabPointerDown(e){e.button===0&&(this.fabButtonElement=e.currentTarget instanceof HTMLElement?e.currentTarget:null,this.isPrimaryButtonDownOnFab=!0,this.pointerDownClientX=e.clientX,this.pointerDownClientY=e.clientY,this.isPointerDragging=!1)}handleFabPointerMove(e){if(this.isPointerDragging){this.applyFabPointerDragMove(e);return}if(!this.isPrimaryButtonDownOnFab||e.pointerType==="mouse"&&(e.buttons&1)!==1)return;let n=e.clientX-this.pointerDownClientX,i=e.clientY-this.pointerDownClientY;Math.hypot(n,i)>Jr&&this.beginFabPointerDrag(e),this.isPointerDragging&&this.applyFabPointerDragMove(e)}applyFabPointerDragMove(e){if(!this.isPointerDragging)return;let n=e.clientX-this.dragStartClientX,i=e.clientY-this.dragStartClientY,s=this.dragStartRightPx-n,p=this.dragStartBottomPx-i,x=this.getMainElement();x!==null&&this.userInput_DS.setFabOffsetsClampedToMain({mainEl:x,rightPx:s,bottomPx:p})}handleFabPointerUp(e){if(this.isPointerDragging){this.endFabPointerDrag(e);return}this.isPrimaryButtonDownOnFab=!1,this.fabButtonElement=null}handleFabPointerCancel(e){this.handleFabPointerUp(e)}beginFabPointerDrag(e){this.getMainElement()!==null&&(this.isPointerDragging=!0,this.isDraggingFab_$.set(!0),this.dragStartRightPx=this.userInput_DS.fabOffsetRightPx_$(),this.dragStartBottomPx=this.userInput_DS.fabOffsetBottomPx_$(),this.dragStartClientX=e.clientX,this.dragStartClientY=e.clientY,this.activePointerId=e.pointerId,this.fabButtonElement!==null&&this.fabButtonElement.setPointerCapture(e.pointerId))}endFabPointerDrag(e){let n=this.getMainElement();if(this.activePointerId!==null&&this.fabButtonElement!==null)try{this.fabButtonElement.releasePointerCapture(this.activePointerId)}catch{}this.activePointerId=null,this.isPointerDragging=!1,this.isDraggingFab_$.set(!1),this.suppressNextFabClick=!0,n!==null&&this.userInput_DS.finalizeFabDragPosition(n),this.isPrimaryButtonDownOnFab=!1,this.fabButtonElement=null}getMainElement(){return typeof document>"u"?null:document.querySelector("main")}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-user-input-fab"]],standalone:!0,features:[U],decls:5,vars:6,consts:[[1,"absolute","z-[10050]","pointer-events-auto"],["type","button","aria-label","Quick Input panel megnyit\xE1sa vagy bez\xE1r\xE1sa",1,"relative","w-12","h-12","flex","items-center","justify-center","rounded-full","bg-ccapAccent","text-neutral-900","shadow-lg","hover:bg-ccapAccent/80","hover:shadow-xl","transition-all","duration-200","focus:outline-none","focus:ring-2","focus:ring-ccapAccent/50","touch-none",3,"click","pointerdown","pointermove","pointerup","pointercancel","title"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-6","h-6","pointer-events-none"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"],[1,"absolute","-top-1","-right-1","w-5","h-5","flex","items-center","justify-center","rounded-full","bg-neonCyan","text-neutral-900","text-xs","font-bold","animate-pulse","pointer-events-none"]],template:function(n,i){n&1&&(o(0,"div",0)(1,"button",1),m("click",function(p){return i.handleFabClick(p)})("pointerdown",function(p){return i.handleFabPointerDown(p)})("pointermove",function(p){return i.handleFabPointerMove(p)})("pointerup",function(p){return i.handleFabPointerUp(p)})("pointercancel",function(p){return i.handleFabPointerCancel(p)}),k(),o(2,"svg",2),b(3,"path",3),r(),C(4,Zr,2,1,"span",4),r()()),n&2&&(et("right",i.userInput_DS.fabOffsetRightPx_$(),"px")("bottom",i.userInput_DS.fabOffsetBottomPx_$(),"px"),l(),_("title",i.userInput_DS.isPanelOpen_$()?"Quick Input panel bez\xE1r\xE1sa":"Quick Input megnyit\xE1sa; h\xFAz\xE1s: mozd\xEDtsd el a gombot lenyomva"),l(3),u(i.activeCount_$()>0?4:-1))},styles:[`[_nghost-%COMP%]{display:contents}
|
|
3
3
|
/*# sourceMappingURL=uin-fab.component-2M3EWEJ5.css.map */`]})}return t})();var vt="__ccap-quick-input-area-custom__";var He=function(t){return t.alignPanelRightEdgeToFabRight="align-panel-right-edge-to-fab-right",t.openPanelToRightOfFab="open-panel-to-right-of-fab",t}(He||{});var qe=function(t){return t.panelAboveFab="panel-above-fab",t.panelBelowFab="panel-below-fab",t}(qe||{});var oi=(()=>{class t{static resolveHorizontalAnchorType(e){let n=e.mainWidthPx,i=Qe.fabSizePx;return n-e.fabOffsetRightPx-i+i/2<n/2?He.openPanelToRightOfFab:He.alignPanelRightEdgeToFabRight}static resolveVerticalAnchorType(e){let n=e.mainHeightPx,i=Qe.fabSizePx;return n-e.fabOffsetBottomPx-i+i/2<n/2?qe.panelBelowFab:qe.panelAboveFab}static panelEdgeMarginPx=8;static buildPanelOverlayStyles(e){let n=e.mainWidthPx,i=e.mainHeightPx,s=Qe.fabSizePx,p=Qe.fabPanelGapPx,x=e.fabOffsetRightPx,g=e.fabOffsetBottomPx,T=t.panelEdgeMarginPx;if(n<=0||i<=0){let D={bottom:`${g+s+p}px`,top:`${T}px`};return e.isMobileXs||(D.right=`${x}px`,D.left="auto"),D}let w=t.resolveVerticalAnchorType({mainHeightPx:i,fabOffsetBottomPx:g}),M={};if(w===qe.panelBelowFab){let D=i-g-s;M.top=`${D+s+p}px`,M.bottom=`${T}px`}else M.bottom=`${g+s+p}px`,M.top=`${T}px`;if(e.isMobileXs)return M;if(t.resolveHorizontalAnchorType({mainWidthPx:n,fabOffsetRightPx:x})===He.openPanelToRightOfFab){let D=n-x-s;M.left=`${D+s+p}px`,M.right="auto"}else M.right=`${x}px`,M.left="auto";return M}}return t})();var ta=["quickInputListScrollContainer"],na=["quickInputListAnchor"],ia=(t,a)=>a._id,oa=(t,a)=>a.areaValue,ra=(t,a)=>a.quickInputId,aa=(t,a)=>a.path,sa=(t,a)=>a.sessionId,la=(t,a,e)=>({"border-neonCyan/50 text-neonCyan/90 hover:bg-neonCyan/10":t,"border-amber-500/70 text-amber-300 hover:bg-amber-500/10":a,"border-neutral-700 text-neutral-500":e}),ca=(t,a)=>({"border-neutral-600 bg-neutral-800/80 text-neutral-300 hover:border-neutral-500 hover:bg-neutral-800":t,"border-neonCyan bg-neonCyan/15 text-neonCyan ring-1 ring-inset ring-neonCyan/35":a});function da(t,a){t&1&&b(0,"span",27)}function pa(t,a){t&1&&(k(),o(0,"svg",28),b(1,"path",29),r())}function ua(t,a){if(t&1&&(C(0,pa,2,0,":svg:svg",28),c(1)),t&2){let e=d(2);u(e.sendAllWarningActive_$()?0:-1),l(),E(" Send All (",e.activeQuickInputCount_$(),") ")}}function _a(t,a){if(t&1){let e=I();o(0,"button",26),m("click",function(){f(e);let i=d();return h(i.handleOpenSendAllConfirm())}),C(1,da,1,0,"span",27)(2,ua,2,2),r()}if(t&2){let e=d();_("ngClass",Kt(4,la,!e.sendAllDisabled_$()&&!e.sendAllWarningActive_$(),!e.sendAllDisabled_$()&&e.sendAllWarningActive_$(),e.sendAllDisabled_$()))("disabled",e.sendAllDisabled_$())("title",e.sendAllButtonTitle_$()),l(),u(e.userInput_DS.sendAllToCcSessionBusy_$()?1:2)}}function ma(t,a){t&1&&(o(0,"option",33),c(1,"V\xE1lassz projektet..."),r())}function Ca(t,a){if(t&1&&(o(0,"option",34),c(1),r()),t&2){let e=a.$implicit;_("value",e._id),l(),P(e.name)}}function fa(t,a){if(t&1){let e=I();o(0,"label",38)(1,"input",41),m("ngModelChange",function(i){f(e);let s=d(3);return h(s.handleAreaAutofollowChange(i))}),r()()}if(t&2){let e=d(3);l(),_("ngModel",e.userInput_DS.quickInputAreaAutofollow_$())}}function ha(t,a){if(t&1&&(o(0,"span",44),c(1),r(),o(2,"span",45),c(3),r()),t&2){let e=d(4);l(),P(e.userInput_DS.quickInputComposerArea_$()),l(2),E("(",e.autofollowAreaDisplayLabel_$(),")")}}function xa(t,a){t&1&&(o(0,"span",43),c(1,"\u2014 nincs route area \u2014"),r())}function ba(t,a){if(t&1&&(o(0,"div",39)(1,"span",42),c(2,"Area"),r(),C(3,ha,4,2)(4,xa,2,0,"span",43),r()),t&2){let e=d(3);l(3),u(e.userInput_DS.quickInputComposerArea_$().trim().length?3:4)}}function ga(t,a){if(t&1&&(o(0,"option",34),c(1),r()),t&2){let e=a.$implicit;_("value",e.areaValue),l(),P(e.displayLabel)}}function Sa(t,a){if(t&1){let e=I();o(0,"select",46),m("ngModelChange",function(i){f(e);let s=d(3);return h(s.handleAreaSelectChange(i))}),o(1,"option",47),c(2,"\u2014 Nincs area \u2014"),r(),V(3,ga,2,2,"option",34,oa),o(5,"option",34),c(6,"Egy\xE9ni\u2026"),r()()}if(t&2){let e=d(3);_("ngModel",e.areaSelectBoundValue_$()),l(3),N(e.quickInputAreaCatalogOptions),l(2),_("value",e.customAreaSelectValue)}}function va(t,a){if(t&1&&(o(0,"div",35)(1,"div",37),C(2,fa,2,1,"label",38)(3,ba,5,1,"div",39)(4,Sa,7,2,"select",40),r()()),t&2){let e=d(2);l(2),u(-1),l(),u(e.userInput_DS.quickInputAreaAutofollow_$()?3:4)}}function ya(t,a){if(t&1){let e=I();o(0,"input",48),m("ngModelChange",function(i){f(e);let s=d(2);return h(s.handleCustomAreaInputChange(i))}),r()}if(t&2){let e=d(2);_("ngModel",e.userInput_DS.quickInputComposerArea_$())}}function ka(t,a){if(t&1){let e=I();o(0,"div",49)(1,"button",55),m("click",function(){f(e);let i=d(3);return h(i.handleDomPickToggleClick())}),c(2," Elem.track "),r()()}if(t&2){let e=d(3);l(),_("ngClass",rt(2,ca,!e.userInput_DS.quickInputDomPickActive_$(),e.userInput_DS.quickInputDomPickActive_$())),q("aria-pressed",e.userInput_DS.quickInputDomPickActive_$())}}function Ia(t,a){if(t&1){let e=I();o(0,"span",56)(1,"span",57),c(2),r(),o(3,"button",58),m("click",function(){let i=f(e).$index,s=d(4);return h(s.handleComposerElementRemoveAt(i))}),k(),o(4,"svg",59),b(5,"path",13),r()()()}if(t&2){let e=a.$implicit;l(2),P(e)}}function Ta(t,a){if(t&1&&(o(0,"div",54),V(1,Ia,6,1,"span",56,tt),r()),t&2){let e=d(3);l(),N(e.userInput_DS.quickInputComposerElements_$())}}function Ea(t,a){if(t&1){let e=I();C(0,ka,3,5,"div",49),o(1,"div",50)(2,"div",37)(3,"span",51),c(4," Elem. "),r(),o(5,"input",52),m("ngModelChange",function(i){f(e);let s=d(2);return h(s.newComposerElementId_$.set(i))})("keydown.enter",function(i){return f(e),d(2).handleComposerElementSubmitFromField(),h(i.preventDefault())}),r(),o(6,"button",53),m("click",function(){f(e);let i=d(2);return h(i.handleComposerElementSubmitFromField())}),c(7," + "),r()()(),C(8,Ta,3,0,"div",54)}if(t&2){let e=d(2);u(-1),l(5),_("ngModel",e.newComposerElementId_$()),l(3),u(e.userInput_DS.quickInputComposerElements_$().length>0?8:-1)}}function wa(t,a){if(t&1){let e=I();o(0,"div",30)(1,"input",60),m("ngModelChange",function(i){f(e);let s=d(2);return h(s.handleQuickInputListSearchQueryChange(i))}),r()()}if(t&2){let e=d(2);l(),_("ngModel",e.quickInputListSearchQuery_$())}}function Aa(t,a){if(t&1){let e=I();o(0,"div",30)(1,"div",31)(2,"select",32),m("ngModelChange",function(i){f(e);let s=d();return h(s.handleProjectChange(i))}),C(3,ma,2,0,"option",33),o(4,"option",34),c(5,"Mind"),r(),V(6,Ca,2,2,"option",34,ia),r(),C(8,va,5,2,"div",35),r(),C(9,ya,1,1,"input",36)(10,Ea,9,3),r(),C(11,wa,2,1,"div",30)}if(t&2){let e=d();l(2),_("ngModel",e.userInput_DS.selectedProjectId_$()),l(),u(e.userInput_DS.selectedProjectId_$()?-1:3),l(),_("value",e.allProjectsFilterValue),l(2),N(e.userInput_DS.projects_$()),l(2),u(e.userInput_DS.selectedProjectIsCcapRevisionedHost_$()?8:-1),l(),u(e.userInput_DS.selectedProjectIsCcapRevisionedHost_$()&&!e.userInput_DS.quickInputAreaAutofollow_$()&&e.areaSelectBoundValue_$()===e.customAreaSelectValue?9:-1),l(),u(e.userInput_DS.selectedProjectIsCcapRevisionedHost_$()?10:-1),l(),u(e.userInput_DS.selectedProjectId_$()&&!e.userInput_DS.isLoading_$()&&e.userInput_DS.inputs_$().length>0?11:-1)}}function Pa(t,a){t&1&&(o(0,"div",15)(1,"p"),c(2,"V\xE1lassz egy projektet a fenti list\xE1b\xF3l."),r()())}function $a(t,a){t&1&&(o(0,"div",16),b(1,"span",61),c(2," Bet\xF6lt\xE9s... "),r())}function Ma(t,a){t&1&&(o(0,"div",15)(1,"p"),c(2,"M\xE9g nincs Quick Input ehhez a projekthez."),r(),o(3,"p",62),c(4,"\xCDrj egy jegyzetet lent \u2014 kattint\xE1sra megny\xEDlnak az akci\xF3k (modal)."),r()())}function Da(t,a){t&1&&(o(0,"div",15)(1,"p"),c(2,"Nincs tal\xE1lat erre a sz\u0171r\u0151re."),r(),o(3,"p",62),c(4,"M\xF3dos\xEDtsd a keres\u0151sz\xF6veget vagy t\xF6r\xF6ld a mez\u0151t."),r()())}function Ra(t,a){if(t&1&&(o(0,"span",70),c(1),r()),t&2){let e=d().$implicit;l(),E(" ",e.projectName," ")}}function Ua(t,a){t&1&&c(0," USER-INPUT ")}function Oa(t,a){t&1&&c(0," BUG ")}function Fa(t,a){t&1&&c(0," discarded ")}function La(t,a){if(t&1&&(o(0,"span",71),C(1,Ua,1,0)(2,Oa,1,0)(3,Fa,1,0),r()),t&2){let e,n=d().$implicit,i=d(2);l(),u((e=n.status)===i.QiStatus.promotedUserInput?1:e===i.QiStatus.promotedBug?2:e===i.QiStatus.discarded?3:-1)}}function Va(t,a){t&1&&c(0," pri: low ")}function Na(t,a){t&1&&c(0," pri: medium ")}function ja(t,a){t&1&&c(0," pri: high ")}function Qa(t,a){t&1&&c(0," pri: urgent ")}function Ba(t,a){if(t&1&&(o(0,"span",72),C(1,Va,1,0)(2,Na,1,0)(3,ja,1,0)(4,Qa,1,0),r()),t&2){let e,n=d().$implicit,i=d(2);l(),u((e=n.priority)===i.QiPriority.low?1:e===i.QiPriority.medium?2:e===i.QiPriority.high?3:e===i.QiPriority.urgent?4:-1)}}function za(t,a){t&1&&c(0," pred: user-input ")}function Ha(t,a){t&1&&c(0," pred: bug ")}function qa(t,a){t&1&&c(0," pred: ? ")}function Wa(t,a){if(t&1&&(o(0,"span",73),C(1,za,1,0)(2,Ha,1,0)(3,qa,1,0),r()),t&2){let e,n=d().$implicit,i=d(2);l(),u((e=n.predictedType)===i.QiPredType.userInput?1:e===i.QiPredType.bugReport?2:e===i.QiPredType.unspecified?3:-1)}}function Ga(t,a){if(t&1&&(o(0,"p",74),c(1),r()),t&2){let e=d().$implicit;l(),P(e.predictedCleanDescription)}}function Ya(t,a){if(t&1){let e=I();o(0,"button",64),m("click",function(){let i=f(e).$implicit,s=d(2);return h(s.handleOpenActionsModal(i.quickInputId))}),b(1,"span",65),o(2,"div",66)(3,"p",67),c(4),r(),o(5,"div",68)(6,"p",69),ke(7,"date"),c(8),ke(9,"ccapRelativeTime"),r(),C(10,Ra,2,1,"span",70)(11,La,4,1,"span",71)(12,Ba,5,1,"span",72)(13,Wa,4,1,"span",73),r(),C(14,Ga,2,1,"p",74),r()()}if(t&2){let e=a.$implicit,n=d(2);l(3),_("title",e.rawContent),l(),P(e.rawContent),l(2),_("title",Ve(7,9,e.createdAt,"yyyy.MM.dd HH:mm")),l(2),P(Xt(9,12,e.createdAt)),l(2),u(e.projectName?10:-1),l(),u(e.status!==n.QiStatus.draft?11:-1),l(),u(e.priority?12:-1),l(),u(e.predictedType?13:-1),l(),u(e.predictedCleanDescription?14:-1)}}function Ka(t,a){if(t&1&&(o(0,"div",17),V(1,Ya,15,14,"button",63,ra),b(3,"div",null,1),r()),t&2){let e=d();l(),N(e.filteredQuickInputs_$())}}function Xa(t,a){if(t&1&&(o(0,"option",34),c(1),r()),t&2){let e=a.$implicit;_("value",e.path),l(),ae("",e.label," \u2014 ",e.path,"")}}function Za(t,a){if(t&1){let e=I();o(0,"input",89),m("ngModelChange",function(i){f(e);let s=d(2);return h(s.sendAllSessionName_$.set(i))}),r(),o(1,"select",90),m("ngModelChange",function(i){f(e);let s=d(2);return h(s.handleSendAllWorkspacePathChange(i))}),V(2,Xa,2,3,"option",34,aa),r()}if(t&2){let e=d(2);_("ngModel",e.sendAllSessionName_$()),l(),_("ngModel",e.sendAllWorkspacePath_$()),l(),N(e.newAgentSessionWorkspace_DS.workspacePathPickerOptions_$())}}function Ja(t,a){if(t&1&&(o(0,"option",34),c(1),r()),t&2){let e=a.$implicit;_("value",e.sessionId),l(),ae(" ",e.label||e.sessionId," \u2014 ",e.status," ")}}function es(t,a){t&1&&(o(0,"p",92),c(1,"Nincs el\xE9rhet\u0151 session."),r())}function ts(t,a){if(t&1){let e=I();o(0,"select",91),m("ngModelChange",function(i){f(e);let s=d(2);return h(s.sendAllExistingSessionId_$.set(i))}),o(1,"option",33),c(2,"V\xE1lassz session-t..."),r(),V(3,Ja,2,3,"option",34,sa),r(),C(5,es,2,0,"p",92)}if(t&2){let e=d(2);_("ngModel",e.sendAllExistingSessionId_$()),l(3),N(e.sendAllActiveSessions_$()),l(2),u(e.sendAllActiveSessions_$().length===0?5:-1)}}function ns(t,a){t&1&&(b(0,"span",93),c(1," K\xFCld\xE9s... "))}function is(t,a){t&1&&c(0," Send All ")}function os(t,a){if(t&1){let e=I();o(0,"app-s-modal",75),m("closed",function(){f(e);let i=d();return h(i.handleSendAllConfirmClosed())}),o(1,"div",76)(2,"p",77),c(3),r(),o(4,"fieldset",78)(5,"legend",79),c(6,"Session"),r(),o(7,"label",80)(8,"input",81),m("change",function(){f(e);let i=d();return h(i.handleSendAllTargetChange("new"))}),r(),c(9," \xDAj session "),r(),C(10,Za,4,2),o(11,"label",80)(12,"input",82),m("change",function(){f(e);let i=d();return h(i.handleSendAllTargetChange("existing"))}),r(),c(13," Megl\xE9v\u0151 session "),r(),C(14,ts,6,2),r(),o(15,"div",83)(16,"label",84),c(17,"Prompt"),r(),o(18,"textarea",85),m("ngModelChange",function(i){f(e);let s=d();return h(s.sendAllPromptContent_$.set(i))}),r()(),o(19,"div",86)(20,"button",87),m("click",function(){f(e);let i=d();return h(i.handleSendAllConfirmClosed())}),c(21," M\xE9gse "),r(),o(22,"button",88),m("click",function(){f(e);let i=d();return h(i.handleConfirmSendAll())}),C(23,ns,2,0)(24,is,1,0),r()()()()}if(t&2){let e=d();_("isOpen",e.sendAllConfirmOpen_$())("title","Send All to CC Session")("maxWidth","3xl")("zIndex","10060"),l(3),E(" ",e.userInput_DS.inputs_$().length," Quick Input elem ker\xFCl elk\xFCld\xE9sre. Sikeres k\xFCld\xE9s ut\xE1n az elemek archiv\xE1l\xF3dnak. "),l(5),_("checked",e.sendAllTarget_$()==="new"),l(2),u(e.sendAllTarget_$()==="new"?10:-1),l(2),_("checked",e.sendAllTarget_$()==="existing"),l(2),u(e.sendAllTarget_$()==="existing"?14:-1),l(4),_("ngModel",e.sendAllPromptContent_$()),l(2),_("disabled",e.userInput_DS.sendAllToCcSessionBusy_$()),l(2),_("disabled",e.sendAllSubmitDisabled_$()),l(),u(e.userInput_DS.sendAllToCcSessionBusy_$()?23:24)}}var ri="ccap-qi-bulk-send-workspace",ai="ccap-qi-header-collapsed",yt=(()=>{class t{userInput_DS=y(G);ccSession_DS=y($e);newAgentSessionWorkspace_DS=y(ht);globalError_CS=y(ne);layoutBreakpoint_CS=y(ft);QiStatus=fe;QiPredType=_t;QiPriority=ue;composerPlaceholder=Cn;allProjectsFilterValue=fn;quickInputAreaCatalogOptions=Pt.catalogOptionsForDisplay();customAreaSelectValue=vt;areaSelectBoundValue_$=v(()=>{let e=this.userInput_DS.quickInputComposerArea_$().trim();return e.length?this.quickInputAreaCatalogOptions.some(i=>i.areaValue===e)?e:vt:""});autofollowAreaDisplayLabel_$=v(()=>Pt.getDisplayLabelForAreaValue({areaValue:this.userInput_DS.quickInputComposerArea_$()}));panelOverlayStyle_$=v(()=>{let e=this.userInput_DS.quickInputMainBoundsPx_$(),n=oi.buildPanelOverlayStyles({mainWidthPx:e.widthPx,mainHeightPx:e.heightPx,fabOffsetRightPx:this.userInput_DS.fabOffsetRightPx_$(),fabOffsetBottomPx:this.userInput_DS.fabOffsetBottomPx_$(),isMobileXs:this.layoutBreakpoint_CS.isMobile_$()});return Y({display:"grid","grid-template-rows":"auto 1fr auto",overflow:"hidden"},n)});newInputText_$=S("");newComposerElementId_$=S("");quickInputListSearchQuery_$=S("");headerControlsCollapsed_$=S(t.readQiHeaderCollapsed());filteredQuickInputs_$=v(()=>{let e=this.userInput_DS.inputs_$(),n=this.quickInputListSearchQuery_$().trim().toLowerCase();return(n.length===0?[...e]:e.filter(s=>t.quickInputItemMatchesNormalizedQuery(s,n))).reverse()});quickInputListScrollContainerRef=null;quickInputListAnchorRef=null;isQuickInputListAtBottom=!0;quickInputListPrevLength=0;constructor(){W(()=>{let e=this.userInput_DS.isPanelOpen_$(),n=this.userInput_DS.selectedProjectId_$();if(!e)return;let i=Te.loadPayload(n);this.newInputText_$.set(i.text),this.userInput_DS.selectedProjectIsCcapRevisionedHost_$()?(this.userInput_DS.setQuickInputComposerElementsForUser(i.elements),this.userInput_DS.quickInputAreaAutofollow_$()?this.userInput_DS.syncComposerAreaFromCurrentNavigation():this.userInput_DS.applyComposerAreaFromDraftWhenManual(i.area)):this.userInput_DS.setQuickInputComposerElementsForUser([])},{allowSignalWrites:!0}),W(()=>{this.userInput_DS.quickInputComposerDraftPersistBump_$()!==0&&this.userInput_DS.isPanelOpen_$()&&this.persistQuickInputComposerDraft()},{allowSignalWrites:!0}),W(()=>{let e=this.filteredQuickInputs_$(),n=this.quickInputListPrevLength;this.quickInputListPrevLength=e.length,e.length>n&&this.isQuickInputListAtBottom&&setTimeout(()=>{this.quickInputListAnchorRef?.nativeElement?.scrollIntoView({behavior:"instant"})},0)})}handleQuickInputListScroll(){let e=this.quickInputListScrollContainerRef?.nativeElement;if(!e)return;let n=e.scrollHeight-e.scrollTop-e.clientHeight;this.isQuickInputListAtBottom=n<=50}handleDomPickToggleClick(){let e=!this.userInput_DS.quickInputDomPickActive_$();this.userInput_DS.setQuickInputDomPickActive(e)}handleComposerTextChange(e){this.newInputText_$.set(e),this.persistQuickInputComposerDraft()}persistQuickInputComposerDraft(){let e=this.userInput_DS.selectedProjectId_$(),n=this.newInputText_$();if(this.userInput_DS.selectedProjectIsCcapRevisionedHost_$()){let i=[...this.userInput_DS.quickInputComposerElements_$()];if(this.userInput_DS.quickInputAreaAutofollow_$()){Te.save(e,n,{elements:i});return}Te.save(e,n,{area:this.userInput_DS.quickInputComposerArea_$(),elements:i});return}Te.save(e,n)}handleComposerElementAdd(e){this.userInput_DS.appendQuickInputComposerElement(e),this.persistQuickInputComposerDraft()}handleComposerElementRemoveAt(e){this.userInput_DS.removeQuickInputComposerElementAt(e),this.persistQuickInputComposerDraft()}handleComposerElementSubmitFromField(){let e=this.newComposerElementId_$().trim();e.length&&(this.handleComposerElementAdd(e),this.newComposerElementId_$.set(""))}ngOnInit(){this.userInput_DS.drainOfflineQueue()}handleSubmitInput(){return A(this,null,function*(){let e=this.newInputText_$();if(!e.trim())return;let n=this.userInput_DS.selectedProjectId_$();(yield this.userInput_DS.submitInput(e))&&(Te.clear(n),this.newInputText_$.set(""))})}handleKeydown(e){e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),this.handleSubmitInput())}handleVoiceTranscript(e){let n=e?.trim()??"";n.length&&(this.newInputText_$.update(i=>i?`${i}
|
|
4
4
|
${n}`:n),this.persistQuickInputComposerDraft())}handleProjectChange(e){this.quickInputListSearchQuery_$.set(""),this.userInput_DS.setProject(e)}handleQuickInputListSearchQueryChange(e){this.quickInputListSearchQuery_$.set(e)}handleHeaderCollapseToggle(){let e=!this.headerControlsCollapsed_$();this.headerControlsCollapsed_$.set(e),t.persistQiHeaderCollapsed(e)}static quickInputItemMatchesNormalizedQuery(e,n){if(String(e.rawContent??"").toLowerCase().includes(n)||String(e.predictedCleanDescription??"").toLowerCase().includes(n)||String(e.area??"").toLowerCase().includes(n))return!0;let x=e.elements;if(!x?.length)return!1;for(let g of x)if(String(g??"").toLowerCase().includes(n))return!0;return!1}handleAreaSelectChange(e){if(e===""){this.userInput_DS.setQuickInputComposerAreaValueForUser(""),this.persistQuickInputComposerDraft();return}if(e===vt){this.persistQuickInputComposerDraft();return}this.userInput_DS.setQuickInputComposerAreaValueForUser(e),this.persistQuickInputComposerDraft()}handleCustomAreaInputChange(e){this.userInput_DS.setQuickInputComposerAreaValueForUser(e),this.persistQuickInputComposerDraft()}handleAreaAutofollowChange(e){this.userInput_DS.setQuickInputAreaAutofollow(e),this.persistQuickInputComposerDraft()}handleOpenActionsModal(e){this.userInput_DS.openQuickInputActionsModal(e)}sendAllConfirmOpen_$=S(!1);sendAllTarget_$=S("new");sendAllExistingSessionId_$=S("");sendAllSessionName_$=S("");sendAllWorkspacePath_$=S("");sendAllPromptContent_$=S("");sendAllActiveSessions_$=v(()=>this.ccSession_DS.sessions_$().filter(e=>!e.isArchived));sendAllDisabled_$=v(()=>this.userInput_DS.sendAllToCcSessionBusy_$()?!0:this.userInput_DS.inputs_$().length===0);sendAllWarningThreshold=20;activeQuickInputCount_$=v(()=>this.userInput_DS.inputs_$().length);sendAllWarningActive_$=v(()=>this.activeQuickInputCount_$()>=this.sendAllWarningThreshold);sendAllButtonTitle_$=v(()=>{let e=this.activeQuickInputCount_$();return this.sendAllWarningActive_$()?`${e} akt\xEDv Quick Input \u2014 itt az ideje feldolgozni ezeket. Send All: \xF6sszes egy \xFAj CC Session-be, majd archiv\xE1l\xE1s.`:`${e} akt\xEDv Quick Input. Send All: \xF6sszes egy \xFAj CC Session-be, majd archiv\xE1l\xE1s.`});newInputSendButtonTitle_$=v(()=>this.userInput_DS.selectedProjectId_$()===this.allProjectsFilterValue?'Disabled \u2014 V\xE1lassz egy konkr\xE9t projektet a fenti list\xE1b\xF3l (jelenleg "All projects" sz\u0171r\u0151 akt\xEDv).':this.userInput_DS.projects_$().length?this.newInputText_$().trim()?this.userInput_DS.isSending_$()?"Disabled \u2014 Egy kor\xE1bbi ment\xE9s m\xE9g folyamatban van, v\xE1rj egy pillanatot.":"Quick Input ment\xE9s staging-k\xE9nt":"Disabled \u2014 \xCDrj be Quick Input sz\xF6veget a ment\xE9shez.":"Disabled \u2014 Nincs el\xE9rhet\u0151 projekt. Hozz l\xE9tre projektet a Project Management oldalon.");sendAllSubmitDisabled_$=v(()=>!!(this.userInput_DS.sendAllToCcSessionBusy_$()||!this.sendAllPromptContent_$().trim()||this.sendAllTarget_$()==="existing"&&!this.sendAllExistingSessionId_$()));handleOpenSendAllConfirm(){if(this.sendAllDisabled_$())return;let e=this.userInput_DS.inputs_$();this.sendAllTarget_$.set("new"),this.sendAllExistingSessionId_$.set(""),this.sendAllSessionName_$.set(`QI Bulk Import (${e.length} items)`),this.sendAllWorkspacePath_$.set(t.readQiBulkSendWorkspace()),this.sendAllPromptContent_$.set(G.buildSendAllMessageContent(e)),this.ccSession_DS.loadSessions({includeArchived:!1}),this.newAgentSessionWorkspace_DS.refreshWorkspacePathPickerOptions().then(()=>{let n=this.newAgentSessionWorkspace_DS.workspacePathPickerOptions_$();if(n.length===0)return;let i=this.sendAllWorkspacePath_$();i!==""&&n.some(p=>p.path===i)||this.sendAllWorkspacePath_$.set(n[0].path)}),this.sendAllConfirmOpen_$.set(!0)}handleSendAllConfirmClosed(){this.userInput_DS.sendAllToCcSessionBusy_$()||this.sendAllConfirmOpen_$.set(!1)}handleSendAllTargetChange(e){this.sendAllTarget_$.set(e)}handleSendAllWorkspacePathChange(e){this.sendAllWorkspacePath_$.set(e),t.persistQiBulkSendWorkspace(e)}handleConfirmSendAll(){return A(this,null,function*(){let e=this.userInput_DS.inputs_$();if(e.length){this.userInput_DS.sendAllToCcSessionBusy_$.set(!0);try{let n;if(this.sendAllTarget_$()==="new"){if(n=yield this.ccSession_DS.createSession({workspacePath:this.sendAllWorkspacePath_$(),label:this.sendAllSessionName_$()}),!n){this.globalError_CS.showError(new Error("Failed to create CC Session for Quick Input bulk send"),"ccap-quick-input-send-all-create");return}}else n=this.sendAllExistingSessionId_$();let i=this.sendAllPromptContent_$();yield this.ccSession_DS.sendPrompt({sessionId:n,content:i});let s=e.map(p=>p.quickInputId);yield this.userInput_DS.bulkArchiveQuickInputs(s),this.sendAllConfirmOpen_$.set(!1)}catch(n){this.globalError_CS.showError(n,"ccap-quick-input-send-all")}finally{this.userInput_DS.sendAllToCcSessionBusy_$.set(!1)}}})}handleClose(){this.userInput_DS.closePanel()}static readQiBulkSendWorkspace(){return H.readString(ri)??""}static persistQiBulkSendWorkspace(e){H.writeString(ri,e)}static readQiHeaderCollapsed(){return H.readString(ai)==="true"}static persistQiHeaderCollapsed(e){H.writeString(ai,e?"true":"false")}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-user-input-panel"]],viewQuery:function(n,i){if(n&1&&(Oe(ta,5),Oe(na,5)),n&2){let s;Fe(s=Le())&&(i.quickInputListScrollContainerRef=s.first),Fe(s=Le())&&(i.quickInputListAnchorRef=s.first)}},standalone:!0,features:[U],decls:30,vars:14,consts:[["quickInputListScrollContainer",""],["quickInputListAnchor",""],[1,"absolute","z-[10050]","pointer-events-auto","rounded-lg","border-2","border-neonDefault","bg-neutral-900","shadow-xl","left-3","right-3","w-auto","max-w-none","gt-xs:left-auto","gt-xs:w-[min(42rem,calc(100vw-5rem))]","gt-xs:max-w-[42rem]",3,"ngStyle"],[1,"border-b","border-neonDefault"],[1,"flex","items-center","justify-between","px-3","py-2","gap-2"],[1,"text-sm","font-semibold","text-neutral-100","truncate"],[1,"flex","items-center","gap-1","shrink-0"],["type","button","aria-label","Send All to CC Session",1,"rounded","px-2","py-1","text-[11px]","font-semibold","uppercase","tracking-wide","border","transition-colors","duration-150","flex","items-center","gap-1.5","disabled:opacity-40","disabled:cursor-not-allowed",3,"ngClass","disabled","title"],["type","button",1,"p-1","rounded","text-neutral-400","hover:text-neutral-200","hover:bg-neutral-800","transition-colors","duration-150","shrink-0",3,"click","title"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-4","h-4","transition-transform","duration-150"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 15l-7-7-7 7"],["type","button","title","Bez\xE1r\xE1s","aria-label","Quick Input panel bez\xE1r\xE1s",1,"p-1","rounded","text-neutral-400","hover:text-neutral-200","hover:bg-neutral-800","transition-colors","duration-150","shrink-0",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],[2,"min-height","0","overflow-y","auto",3,"scroll"],[1,"flex","flex-col","items-center","justify-center","py-8","px-4","text-neutral-500","text-sm","text-center"],[1,"flex","items-center","justify-center","py-8","text-neutral-500","text-sm"],[1,"flex","flex-col"],[1,"px-3","py-2","border-t","border-neonDefault"],[1,"flex","items-end","gap-3"],["rows","3",1,"flex-1","min-w-0","min-h-[5rem]","gt-xs:min-h-[7rem]","max-h-[40rem]","resize-y","rounded-md","border","border-neutral-700","bg-neutral-800","px-3","py-2","text-sm","text-neutral-200","placeholder-neutral-500","focus:outline-none","focus:border-neonCyan/60","transition-colors","duration-150",3,"ngModelChange","keydown","placeholder","ngModel"],[1,"shrink-0","self-end","flex","flex-col","items-end","gap-2"],[3,"transcriptReady"],["type","button","aria-label","Quick Input ment\xE9s",1,"shrink-0","p-2","rounded-md","bg-ccapAccent","text-neutral-900","hover:bg-ccapAccent/80","disabled:opacity-40","disabled:cursor-not-allowed","transition-colors","duration-150",3,"click","disabled","title"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 19l9 2-9-18-9 18 9-2zm0 0v-8"],[3,"isOpen","title","maxWidth","zIndex"],["type","button","aria-label","Send All to CC Session",1,"rounded","px-2","py-1","text-[11px]","font-semibold","uppercase","tracking-wide","border","transition-colors","duration-150","flex","items-center","gap-1.5","disabled:opacity-40","disabled:cursor-not-allowed",3,"click","ngClass","disabled","title"],[1,"animate-spin","inline-block","w-3","h-3","border-2","border-neonCyan/50","border-t-neonCyan","rounded-full"],["fill","currentColor","viewBox","0 0 20 20","aria-hidden","true",1,"w-3","h-3","shrink-0"],["fill-rule","evenodd","d","M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z","clip-rule","evenodd"],[1,"px-3","py-2","border-b","border-neutral-800"],[1,"flex","flex-wrap","items-start","gap-2"],["title","Projekt",1,"min-w-0","flex-1","basis-[min(100%,10rem)]","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1.5","text-sm","text-neutral-200","focus:outline-none","focus:border-neonCyan/60","transition-colors","duration-150",3,"ngModelChange","ngModel"],["value","","disabled",""],[3,"value"],[1,"min-w-0","flex-1","basis-[min(100%,12rem)]","flex","flex-col","gap-1","rounded-md","border","border-neutral-700/80","bg-neutral-900/40","px-2","py-1.5"],["type","text","placeholder","pl. frontend/session","title","Egy\xE9ni area \xE9rt\xE9k",1,"mt-1.5","w-full","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1","text-xs","text-neutral-200","font-mono","placeholder:text-neutral-600","focus:outline-none","focus:border-neonCyan/60",3,"ngModel"],[1,"flex","flex-wrap","items-center","gap-x-2","gap-y-1"],["title","Area autofollow: a composer area a jelenlegi route alapj\xE1n friss\xFCl.","aria-label","Area autofollow: a composer area a jelenlegi route alapj\xE1n friss\xFCl.",1,"inline-flex","shrink-0","cursor-pointer","select-none","rounded","px-0.5","hover:bg-neutral-800/60","transition-colors"],[1,"flex","min-w-0","flex-1","items-center","gap-1.5","text-xs","text-neutral-300"],["title","Ter\xFClet / preset",1,"min-w-0","max-w-full","flex-1","basis-[6rem]","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1","text-xs","text-neutral-200","focus:outline-none","focus:border-neonCyan/60",3,"ngModel"],["type","checkbox",1,"rounded","border-neutral-600","bg-neutral-800","text-neonCyan","focus:ring-neonCyan/40",3,"ngModelChange","ngModel"],[1,"shrink-0","text-[10px]","font-semibold","uppercase","tracking-wide","text-neutral-500"],[1,"truncate","text-neutral-500"],[1,"min-w-0","truncate","font-mono","text-neonCyan/90"],[1,"hidden","min-w-0","truncate","text-neutral-500","sm:inline"],["title","Ter\xFClet / preset",1,"min-w-0","max-w-full","flex-1","basis-[6rem]","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1","text-xs","text-neutral-200","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","ngModel"],["value",""],["type","text","placeholder","pl. frontend/session","title","Egy\xE9ni area \xE9rt\xE9k",1,"mt-1.5","w-full","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1","text-xs","text-neutral-200","font-mono","placeholder:text-neutral-600","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","ngModel"],[1,"mt-2","border-t","border-neutral-800/80","pt-2"],[1,"border-t","border-b","border-neutral-800/80","py-2"],["title","LMID / azonos\xEDt\xF3k (elements) a Quick Input rekordhoz \u2014 k\xE9zi hozz\xE1ad\xE1s",1,"shrink-0","text-[10px]","font-semibold","uppercase","tracking-wide","text-neutral-500"],["type","text","placeholder","id / token","title","K\xE9zi azonos\xEDt\xF3 \u2014 Enter vagy +",1,"min-w-0","flex-1","basis-[6rem]","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1","text-xs","text-neutral-200","font-mono","placeholder:text-neutral-600","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","keydown.enter","ngModel"],["type","button","title","Azonos\xEDt\xF3 hozz\xE1ad\xE1sa",1,"shrink-0","rounded-md","border","border-neutral-600","px-2","py-1","text-xs","text-neutral-200","hover:border-neonCyan/50","hover:text-neonCyan","transition-colors",3,"click"],[1,"mt-1.5","flex","flex-wrap","gap-1"],["type","button","title","Elem.track: kurzor alatti ID-s DOM elem kiemel\xE9se; kattint\xE1s hozz\xE1ad az Elements list\xE1hoz. Esc: kil\xE9p\xE9s.","aria-label","Elem.track: DOM ID picker. Bekapcsolva kurzor alatti elem kiemel\xE9se, kattint\xE1sra hozz\xE1ad\xE1s. Esc: kil\xE9p\xE9s.",1,"rounded-md","border","px-2","py-1.5","text-[11px]","font-semibold","uppercase","tracking-wide","transition-colors","duration-150","focus:outline-none","focus:ring-2","focus:ring-neonCyan/40","focus:ring-offset-2","focus:ring-offset-neutral-900",3,"click","ngClass"],[1,"inline-flex","max-w-full","items-center","gap-1","rounded","border","border-neutral-600","bg-neutral-800/80","py-0.5","pl-2","pr-1","font-mono","text-[11px]","text-neutral-300"],[1,"max-w-[14rem]","truncate"],["type","button","title","Elt\xE1vol\xEDt\xE1s","aria-label","Element elt\xE1vol\xEDt\xE1s",1,"shrink-0","rounded","p-0.5","text-neutral-500","hover:bg-neutral-900/80","hover:text-red-400",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"h-3","w-3"],["type","text","placeholder","Sz\u0171r\xE9s tartalom szerint\u2026","title","Quick Input lista sz\u0171r\xE9se","aria-label","Quick Input lista sz\u0171r\xE9se tartalom szerint",1,"w-full","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1.5","text-xs","text-neutral-200","placeholder:text-neutral-600","font-sans","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","ngModel"],[1,"animate-spin","inline-block","w-4","h-4","border-2","border-neonCyan/50","border-t-neonCyan","rounded-full","mr-2"],[1,"text-xs","mt-1"],["type","button",1,"flex","items-start","gap-2","px-4","py-2","text-left","border-b","border-neutral-800","hover:bg-neutral-800/60","transition-colors","duration-150","w-full"],["type","button",1,"flex","items-start","gap-2","px-4","py-2","text-left","border-b","border-neutral-800","hover:bg-neutral-800/60","transition-colors","duration-150","w-full",3,"click"],[1,"w-2","h-2","mt-1.5","rounded-full","bg-neonCyan/60","shrink-0"],[1,"flex-1","min-w-0"],[1,"text-sm","text-neutral-200","line-clamp-3",3,"title"],[1,"flex","flex-wrap","items-center","gap-x-2","gap-y-0.5","mt-0.5"],[1,"text-xs","text-neutral-500",3,"title"],[1,"text-[10px]","uppercase","tracking-wide","px-1.5","py-0.5","rounded","border","border-sky-700/60","text-sky-400/90"],[1,"text-[10px]","uppercase","tracking-wide","px-1.5","py-0.5","rounded","border","border-neutral-600","text-neutral-400"],[1,"text-[10px]","uppercase","tracking-wide","px-1.5","py-0.5","rounded","border","border-amber-900/50","text-amber-400/90"],[1,"text-[10px]","uppercase","tracking-wide","px-1.5","py-0.5","rounded","border","border-neutral-700","text-neutral-500"],[1,"text-[11px]","text-neutral-500","mt-0.5","line-clamp-2"],[3,"closed","isOpen","title","maxWidth","zIndex"],[1,"p-4","flex","flex-col","gap-4"],[1,"text-sm","text-neutral-300"],[1,"flex","flex-col","gap-2"],[1,"text-xs","font-semibold","uppercase","tracking-wide","text-neutral-500","mb-1"],[1,"flex","items-center","gap-2","cursor-pointer","text-sm","text-neutral-200"],["type","radio","name","sendAllTarget","value","new",1,"accent-neonCyan",3,"change","checked"],["type","radio","name","sendAllTarget","value","existing",1,"accent-neonCyan",3,"change","checked"],[1,"flex","flex-col","gap-1"],[1,"text-xs","font-semibold","uppercase","tracking-wide","text-neutral-500"],["placeholder","Prompt tartalom...",1,"w-full","h-64","resize-y","rounded-md","border","border-neutral-700","bg-neutral-800","px-3","py-2","text-sm","text-neutral-200","placeholder:text-neutral-600","font-mono","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","ngModel"],[1,"flex","items-center","justify-end","gap-3","pt-2","border-t","border-neutral-800"],["type","button",1,"rounded-md","px-3","py-1.5","text-sm","text-neutral-400","hover:text-neutral-200","transition-colors","duration-150",3,"click","disabled"],["type","button",1,"rounded-md","px-4","py-1.5","text-sm","font-semibold","bg-neonCyan/20","text-neonCyan","border","border-neonCyan/40","hover:bg-neonCyan/30","disabled:opacity-40","disabled:cursor-not-allowed","transition-colors","duration-150",3,"click","disabled"],["type","text","placeholder","Session n\xE9v","title","\xDAj CC Session n\xE9v",1,"ml-6","w-full","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1.5","text-sm","text-neutral-200","placeholder:text-neutral-600","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","ngModel"],["title","Workspace path",1,"ml-6","w-full","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1.5","text-sm","text-neutral-200","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","ngModel"],["title","Megl\xE9v\u0151 CC Session kiv\xE1laszt\xE1sa",1,"ml-6","w-full","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1.5","text-sm","text-neutral-200","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","ngModel"],[1,"ml-6","text-xs","text-neutral-500"],[1,"animate-spin","inline-block","w-3.5","h-3.5","border-2","border-neonCyan/50","border-t-neonCyan","rounded-full","mr-1.5"]],template:function(n,i){if(n&1){let s=I();o(0,"div",2)(1,"div",3)(2,"div",4)(3,"span",5),c(4,"Quick Input"),r(),o(5,"div",6),C(6,_a,3,8,"button",7),o(7,"button",8),m("click",function(){return f(s),h(i.handleHeaderCollapseToggle())}),k(),o(8,"svg",9),b(9,"path",10),r()(),$(),o(10,"button",11),m("click",function(){return f(s),h(i.handleClose())}),k(),o(11,"svg",12),b(12,"path",13),r()()()()(),$(),o(13,"div",14,0),m("scroll",function(){return f(s),h(i.handleQuickInputListScroll())}),C(15,Aa,12,7)(16,Pa,3,0,"div",15)(17,$a,3,0,"div",16)(18,Ma,5,0,"div",15)(19,Da,5,0,"div",15)(20,Ka,5,0,"div",17),r(),o(21,"div",18)(22,"div",19)(23,"textarea",20),m("ngModelChange",function(x){return f(s),h(i.handleComposerTextChange(x))})("keydown",function(x){return f(s),h(i.handleKeydown(x))}),r(),o(24,"div",21)(25,"app-ccap-voice-record-button",22),m("transcriptReady",function(x){return f(s),h(i.handleVoiceTranscript(x))}),r(),o(26,"button",23),m("click",function(){return f(s),h(i.handleSubmitInput())}),k(),o(27,"svg",12),b(28,"path",24),r()()()()()(),C(29,os,25,13,"app-s-modal",25)}n&2&&(_("ngStyle",i.panelOverlayStyle_$()),l(6),u(i.activeQuickInputCount_$()>0?6:-1),l(),_("title",i.headerControlsCollapsed_$()?"Be\xE1ll\xEDt\xE1sok mutat\xE1sa":"Be\xE1ll\xEDt\xE1sok bez\xE1r\xE1sa"),q("aria-label",i.headerControlsCollapsed_$()?"Be\xE1ll\xEDt\xE1sok mutat\xE1sa":"Be\xE1ll\xEDt\xE1sok bez\xE1r\xE1sa")("aria-expanded",!i.headerControlsCollapsed_$()),l(),O("rotate-180",i.headerControlsCollapsed_$()),l(7),u(i.headerControlsCollapsed_$()?-1:15),l(),u(i.userInput_DS.selectedProjectId_$()?i.userInput_DS.isLoading_$()?17:i.userInput_DS.inputs_$().length===0?18:i.filteredQuickInputs_$().length===0&&i.quickInputListSearchQuery_$().trim().length>0?19:20:16),l(7),_("placeholder",i.composerPlaceholder)("ngModel",i.newInputText_$()),l(3),_("disabled",!i.newInputText_$().trim()||i.userInput_DS.isSending_$()||!i.userInput_DS.projects_$().length||i.userInput_DS.selectedProjectId_$()===i.allProjectsFilterValue)("title",i.newInputSendButtonTitle_$()),l(3),u(i.sendAllConfirmOpen_$()?29:-1))},dependencies:[j,le,Ie,at,te,pt,ut,ce,ct,dt,de,pe,En,Ae,wn],encapsulation:2})}return t})();var Ft=Ue(Ne());var si="10060",li="10045";var as="QI-",kt=class t{static buildDisplayNameFromQuickInput(a){let e=t.normalizeQuickInputSnippet(a.title??"");return e.length>0?t.truncateSnippetToMaxLength(e,48):t.buildDisplayNameFromQuickInputRaw(a.rawContent)}static buildDisplayNameFromQuickInputRaw(a){let e=t.normalizeQuickInputSnippet(a),n=as,i=48-n.length;if(i<=0)return n.slice(0,48);if(!e.length)return n;let s=t.truncateSnippetToMaxLength(e,i);return`${n}${s}`}static normalizeQuickInputSnippet(a){return(a??"").replace(/\s+/gu," ").trim()}static truncateSnippetToMaxLength(a,e){if(a.length<=e)return a;let n=a.slice(0,e),i=n.lastIndexOf(" ");return i>e/2?n.slice(0,i).trim():n.trim()}};var K=function(t){return t.hub="hub",t.edit="edit",t.wizard="wizard",t.direct="direct",t}(K||{});var Q=function(t){return t.caSession="ca-session",t.ccSession="cc-session",t.ccapSession="ccap-session",t}(Q||{});var ss=(t,a)=>a._id;function ls(t,a){if(t&1&&(o(0,"span",26),c(1),r()),t&2){let e=d(3);l(),P(e.copyFeedback_$())}}function cs(t,a){t&1&&(o(0,"p",18),c(1),r()),t&2&&(l(),P(a))}function ds(t,a){t&1&&c(0," draft ")}function ps(t,a){t&1&&c(0," USER-INPUT ")}function us(t,a){t&1&&c(0," BUG ")}function _s(t,a){t&1&&c(0," discarded ")}function ms(t,a){if(t&1){let e=I();o(0,"span",66)(1,"span",67),c(2),r(),o(3,"button",68),m("click",function(){let i=f(e).$index,s=d(4);return h(s.handleHubRemoveElementAt(i))}),k(),o(4,"svg",69),b(5,"path",70),r()()()}if(t&2){let e=a.$implicit,n=d(4);l(2),P(e),l(),_("disabled",n.hubGridPatchBusy_$()||n.hubDeleteDisabled_$())}}function Cs(t,a){if(t&1&&(o(0,"div",49),V(1,ms,6,2,"span",66,tt),r()),t&2){let e=d(3);l(),N(e.elementsDraft_$())}}function fs(t,a){if(t&1&&(c(0),ke(1,"date")),t&2){let e=d(2);E(" ",Ve(1,1,e.createdAt,"yyyy.MM.dd HH:mm")," ")}}function hs(t,a){t&1&&c(0," \u2014 ")}function xs(t,a){if(t&1&&(c(0),ke(1,"date")),t&2){let e=d(2);E(" ",Ve(1,1,e.updatedAt,"yyyy.MM.dd HH:mm")," ")}}function bs(t,a){t&1&&c(0," \u2014 ")}function gs(t,a){if(t&1&&(o(0,"span",35),c(1,"User request ID"),r(),o(2,"span",36),c(3),r()),t&2){let e=d(2);l(3),P(e.promotedUserRequestId)}}function Ss(t,a){if(t&1&&(o(0,"span",35),c(1,"Bug code"),r(),o(2,"span",36),c(3),r()),t&2){let e=d(2);l(3),P(e.promotedBugCode)}}function vs(t,a){t&1&&c(0," user-input ")}function ys(t,a){t&1&&c(0," bug-report ")}function ks(t,a){t&1&&c(0," unspecified ")}function Is(t,a){if(t&1&&(o(0,"span",35),c(1,"Predicted type"),r(),o(2,"span")(3,"span",37),C(4,vs,1,0)(5,ys,1,0)(6,ks,1,0),r()()),t&2){let e,n=d(2),i=d();l(4),u((e=n.predictedType)===i.QiPredType.userInput?4:e===i.QiPredType.bugReport?5:e===i.QiPredType.unspecified?6:-1)}}function Ts(t,a){if(t&1&&(o(0,"span",35),c(1,"Predicted project ID"),r(),o(2,"span",36),c(3),r()),t&2){let e=d(2);l(3),P(e.predictedProjectId)}}function Es(t,a){if(t&1&&(o(0,"div",52)(1,"span",71),c(2,"Predicted summary"),r(),o(3,"p",72),c(4),r()()),t&2){let e=d(2);l(4),E(" ",e.predictedCleanDescription," ")}}function ws(t,a){if(t&1&&(o(0,"option",40),c(1),r()),t&2){let e=a.$implicit;_("value",e._id),l(),P(e.name)}}function As(t,a){t&1&&(o(0,"p",18),c(1),r()),t&2&&(l(),P(a))}function Ps(t,a){t&1&&(o(0,"p",18),c(1),r()),t&2&&(l(),P(a))}function $s(t,a){t&1&&(o(0,"p",18),c(1),r()),t&2&&(l(),P(a))}function Ms(t,a){t&1&&(o(0,"p",78),c(1," Target project differs from the record. Save target project before promoting, or the promotion APIs would disagree with the stored home project. "),r())}function Ds(t,a){if(t&1){let e=I();o(0,"p",18),c(1," Classify with LLM sets predicted type (USER-INPUT vs bug-report vs unspecified) and may suggest a target project id from the registered list. Use Apply prediction to copy an LLM-suggested project into the select above. "),r(),o(2,"select",73),m("ngModelChange",function(i){f(e);let s=d(3);return h(s.targetProjectId_$.set(i))}),V(3,ws,2,2,"option",40,ss),r(),o(5,"div",74)(6,"button",75),m("click",function(){f(e);let i=d(3);return h(i.handleOpenClassifyConfirm())}),c(7),r(),o(8,"button",76),m("click",function(){f(e);let i=d(3);return h(i.handleOpenApplyPredictionConfirm())}),c(9," Apply prediction "),r(),o(10,"button",77),m("click",function(){f(e);let i=d(3);return h(i.handleOpenSaveTargetProjectConfirm())}),c(11),r()(),C(12,As,2,1,"p",18)(13,Ps,2,1,"p",18)(14,$s,2,1,"p",18)(15,Ms,2,0,"p",78)}if(t&2){let e,n,i,s=d(3);l(2),_("ngModel",s.targetProjectId_$()),l(),N(s.userInput_DS.projects_$()),l(3),_("disabled",s.hubClassifyLlmDisabled_$()||s.classifyQuickInputBusy_$()),l(),E(" ",s.classifyQuickInputBusy_$()?"Classifying\u2026":"Classify with LLM"," "),l(),_("disabled",s.hubApplyPredictionDisabled_$()),l(2),_("disabled",!s.isTargetProjectDirty_$()||s.saveTargetProjectBusy_$()),l(),E(" ",s.saveTargetProjectBusy_$()?"Saving\u2026":"Save target project"," "),l(),u((e=s.hubClassifyLlmDisabledHint_$())?12:-1,e),l(),u((n=s.hubApplyPredictionDisabledHint_$())?13:-1,n),l(),u((i=s.hubSaveTargetProjectDisabledHint_$())?14:-1,i),l(),u(s.isTargetProjectDirty_$()?15:-1)}}function Rs(t,a){t&1&&(o(0,"p",26),c(1),r()),t&2&&(l(),P(a))}function Us(t,a){t&1&&(o(0,"p",18),c(1,"Send is disabled: raw content is empty."),r())}function Os(t,a){if(t&1){let e=I();o(0,"p",18),c(1," Send the raw content of this Quick Input as a prompt to an active CA, CC, or CCAP session. "),r(),C(2,Rs,2,1,"p",26),o(3,"div",74)(4,"button",79),m("click",function(){f(e);let i=d(3);return h(i.handleOpenSendToSession(i.SendTarget.caSession))}),c(5," Send to CA Session "),r(),o(6,"button",80),m("click",function(){f(e);let i=d(3);return h(i.handleOpenSendToSession(i.SendTarget.ccSession))}),c(7," Send to CC Session "),r(),o(8,"button",81),m("click",function(){f(e);let i=d(3);return h(i.handleOpenSendToSession(i.SendTarget.ccapSession))}),c(9," Send to CCAP Session "),r()(),C(10,Us,2,0,"p",18)}if(t&2){let e,n=d(3);l(2),u((e=n.sendToSessionFeedback_$())?2:-1,e),l(2),_("disabled",n.hubSendToSessionDisabled_$()),l(2),_("disabled",n.hubSendToSessionDisabled_$()),l(2),_("disabled",n.hubSendToSessionDisabled_$()),l(2),u(n.hubSendToSessionDisabled_$()?10:-1)}}function Fs(t,a){t&1&&(o(0,"p",59),c(1," This quick input is already promoted. You can still edit the staging text. "),r())}function Ls(t,a){t&1&&(o(0,"p",63),c(1),r()),t&2&&(l(),P(a))}function Vs(t,a){t&1&&(o(0,"p",82),c(1),r()),t&2&&(l(),E(" ",a," "))}function Ns(t,a){if(t&1){let e=I();o(0,"p",18),c(1," Wizard, direct finalize, and report bug use the target project above. They stay disabled until a target project is selected, the record matches it (save if you changed the select), and the item is still a draft. "),r(),C(2,Vs,2,1,"p",82),o(3,"div",83)(4,"button",84),m("click",function(){f(e);let i=d(3);return h(i.handleOpenWizardConfirm())}),c(5," USER-INPUT wizard (AI) "),r(),o(6,"button",85),m("click",function(){f(e);let i=d(3);return h(i.handleOpenDirectConfirm())}),c(7," Direct finalize "),r(),o(8,"button",86),m("click",function(){f(e);let i=d(3);return h(i.handleOpenBugConfirm())}),c(9," Report bug "),r()()}if(t&2){let e,n=d(3);l(2),u((e=n.hubProjectPromotionActionsHint_$())?2:-1,e),l(2),_("disabled",!n.canPromoteWithSyncedTarget_$()),l(2),_("disabled",!n.canPromoteWithSyncedTarget_$()),l(2),_("disabled",!n.canPromoteWithSyncedTarget_$())}}function js(t,a){if(t&1){let e=I();o(0,"div",20)(1,"div",21)(2,"div",22)(3,"div",23)(4,"span",24),c(5,"User Quick Input Content"),r(),o(6,"div",25),C(7,ls,2,1,"span",26),o(8,"button",27),m("click",function(){f(e);let i=d(2);return h(i.handleOpenCopyConfirm())}),k(),o(9,"svg",28),b(10,"path",29),r()(),$(),o(11,"button",30),m("click",function(){f(e);let i=d(2);return h(i.executeOpenEdit())}),k(),o(12,"svg",28),b(13,"path",31),r()()()(),C(14,cs,2,1,"p",18),r(),$(),o(15,"div",32)(16,"p",33),c(17),r()()(),o(18,"div",34)(19,"span",35),c(20,"ID"),r(),o(21,"span",36),c(22),r(),o(23,"span",35),c(24,"Project ID"),r(),o(25,"span",36),c(26),r(),o(27,"span",35),c(28,"Status"),r(),o(29,"span")(30,"span",37),C(31,ds,1,0)(32,ps,1,0)(33,us,1,0)(34,_s,1,0),r()(),o(35,"span",35),c(36,"Task difficulty"),r(),o(37,"span")(38,"select",38),m("ngModelChange",function(i){f(e);let s=d(2);return h(s.handleTaskDifficultySelectChange(i))}),o(39,"option",39),c(40,"\u2014"),r(),o(41,"option",40),c(42,"Easy"),r(),o(43,"option",40),c(44,"Medium"),r(),o(45,"option",40),c(46,"Hard"),r(),o(47,"option",40),c(48,"Komplex"),r()()(),o(49,"span",35),c(50,"Priority"),r(),o(51,"span")(52,"select",38),m("ngModelChange",function(i){f(e);let s=d(2);return h(s.handlePrioritySelectChange(i))}),o(53,"option",39),c(54,"\u2014"),r(),o(55,"option",40),c(56,"Low"),r(),o(57,"option",40),c(58,"Medium"),r(),o(59,"option",40),c(60,"High"),r(),o(61,"option",40),c(62,"Urgent"),r()()(),o(63,"span",41),c(64,"Area"),r(),o(65,"span",42)(66,"input",43),m("ngModelChange",function(i){f(e);let s=d(2);return h(s.area_$.set(i))}),r(),o(67,"div",44)(68,"button",45),m("click",function(){f(e);let i=d(2);return h(i.handleSaveArea())}),c(69),r()()(),o(70,"span",41),c(71,"Elements"),r(),o(72,"span",42)(73,"div",46)(74,"input",47),m("ngModelChange",function(i){f(e);let s=d(2);return h(s.newElementLine_$.set(i))})("keydown.enter",function(i){return f(e),d(2).handleHubAddElementLine(),h(i.preventDefault())}),r(),o(75,"button",48),m("click",function(){f(e);let i=d(2);return h(i.handleHubAddElementLine())}),c(76," Add "),r()(),C(77,Cs,3,0,"div",49),o(78,"button",50),m("click",function(){f(e);let i=d(2);return h(i.handleSaveElements())}),c(79),r()(),o(80,"span",35),c(81,"Created"),r(),o(82,"span",51),C(83,fs,2,4)(84,hs,1,0),r(),o(85,"span",35),c(86,"Updated"),r(),o(87,"span",51),C(88,xs,2,4)(89,bs,1,0),r(),C(90,gs,4,1)(91,Ss,4,1)(92,Is,7,1)(93,Ts,4,1),r(),C(94,Es,5,1,"div",52),o(95,"div",53)(96,"button",54),m("click",function(){f(e);let i=d(2);return h(i.toggleHubBlock("target-project"))}),k(),o(97,"svg",55),b(98,"polyline",56),r(),$(),o(99,"span"),c(100,"Target project (promotion)"),r()(),C(101,Ds,16,10),r(),o(102,"div",57)(103,"button",58),m("click",function(){f(e);let i=d(2);return h(i.toggleHubBlock("send-to-session"))}),k(),o(104,"svg",55),b(105,"polyline",56),r(),$(),o(106,"span"),c(107,"Send to session"),r()(),C(108,Os,11,5),r(),C(109,Fs,2,0,"p",59),o(110,"div",60)(111,"div",61)(112,"button",62),m("click",function(){f(e);let i=d(2);return h(i.handleOpenQuickInputDeleteConfirm())}),c(113," Delete quick input "),r(),C(114,Ls,2,1,"p",63),r(),o(115,"div",64)(116,"button",65),m("click",function(){f(e);let i=d(2);return h(i.toggleHubBlock("project-promotion"))}),k(),o(117,"svg",55),b(118,"polyline",56),r(),$(),o(119,"span"),c(120,"Project-related promotion"),r()(),C(121,Ns,10,4),r()()()}if(t&2){let e,n,i,s=d(),p=d();l(7),u(p.copyFeedback_$()?7:-1),l(),_("disabled",p.hubCopyDisabled_$()),l(6),u((e=p.hubCopyDisabledHint_$())?14:-1,e),l(3),P(s.rawContent),l(5),P(s.quickInputId),l(4),P(s.projectId),l(5),u((n=s.status)===p.QiStatus.draft?31:n===p.QiStatus.promotedUserInput?32:n===p.QiStatus.promotedBug?33:n===p.QiStatus.discarded?34:-1),l(7),_("ngModel",p.taskDifficulty_$())("disabled",p.hubGridPatchBusy_$()||p.hubDeleteDisabled_$()),l(3),_("value",p.QiTaskDiff.easy),l(2),_("value",p.QiTaskDiff.medium),l(2),_("value",p.QiTaskDiff.hard),l(2),_("value",p.QiTaskDiff.komplex),l(5),_("ngModel",p.priority_$())("disabled",p.hubGridPatchBusy_$()||p.hubDeleteDisabled_$()),l(3),_("value",p.QiPriority.low),l(2),_("value",p.QiPriority.medium),l(2),_("value",p.QiPriority.high),l(2),_("value",p.QiPriority.urgent),l(5),_("ngModel",p.area_$())("disabled",p.hubGridPatchBusy_$()||p.hubDeleteDisabled_$()),l(2),_("disabled",!p.isAreaDirty_$()||p.hubGridPatchBusy_$()||p.hubDeleteDisabled_$()),l(),E(" ",p.areaPatchBusy_$()?"Saving\u2026":"Save area"," "),l(5),_("ngModel",p.newElementLine_$())("disabled",p.hubGridPatchBusy_$()||p.hubDeleteDisabled_$()),l(),_("disabled",p.hubGridPatchBusy_$()||p.hubDeleteDisabled_$()),l(2),u(p.elementsDraft_$().length>0?77:-1),l(),_("disabled",!p.isElementsDirty_$()||p.hubGridPatchBusy_$()||p.hubDeleteDisabled_$()),l(),E(" ",p.elementsPatchBusy_$()?"Saving\u2026":"Save elements"," "),l(4),u(s.createdAt?83:84),l(5),u(s.updatedAt?88:89),l(2),u(s.promotedUserRequestId?90:-1),l(),u(s.promotedBugCode?91:-1),l(),u(s.predictedType?92:-1),l(),u(s.predictedProjectId?93:-1),l(),u(s.predictedCleanDescription?94:-1),l(2),q("aria-expanded",!p.hubCollapsedBlocks_$()["target-project"]),l(),O("-rotate-90",p.hubCollapsedBlocks_$()["target-project"]),l(4),u(p.hubCollapsedBlocks_$()["target-project"]?-1:101),l(2),q("aria-expanded",!p.hubCollapsedBlocks_$()["send-to-session"]),l(),O("-rotate-90",p.hubCollapsedBlocks_$()["send-to-session"]),l(4),u(p.hubCollapsedBlocks_$()["send-to-session"]?-1:108),l(),u(p.canPromote_$()?-1:109),l(3),_("disabled",p.hubDeleteDisabled_$()),l(2),u((i=p.hubDeleteDisabledHint_$())?114:-1,i),l(2),q("aria-expanded",!p.hubCollapsedBlocks_$()["project-promotion"]),l(),O("-rotate-90",p.hubCollapsedBlocks_$()["project-promotion"]),l(4),u(p.hubCollapsedBlocks_$()["project-promotion"]?-1:121)}}function Qs(t,a){t&1&&(o(0,"p",91),c(1),r()),t&2&&(l(),P(a))}function Bs(t,a){if(t&1){let e=I();o(0,"div",12)(1,"label",87),c(2,"Title (optional \u2014 used as CCAP Session name)"),r(),o(3,"input",88),m("ngModelChange",function(i){f(e);let s=d(2);return h(s.editTitle_$.set(i))}),r(),o(4,"label",87),c(5,"Raw content"),r(),o(6,"textarea",89),m("ngModelChange",function(i){f(e);let s=d(2);return h(s.editRaw_$.set(i))}),r(),o(7,"div",90),C(8,Qs,2,1,"p",91),o(9,"div",92)(10,"button",93),m("click",function(){f(e);let i=d(2);return h(i.handleBackToHub())}),c(11," Back "),r(),o(12,"button",94),m("click",function(){f(e);let i=d(2);return h(i.handleSaveEdit())}),c(13),r()()()()}if(t&2){let e,n=d(2);l(3),_("ngModel",n.editTitle_$()),l(3),_("ngModel",n.editRaw_$()),l(2),u((e=n.editSaveDisabledHint_$())?8:-1,e),l(4),_("disabled",n.editSaveSubmitDisabled_$()),l(),E(" ",n.editSaveBusy_$()?"Saving\u2026":"Save"," ")}}function zs(t,a){if(t&1){let e=I();o(0,"app-pm-user-input-wizard",98),m("wizardFinalizeSuccess",function(i){f(e);let s=d(3);return h(s.handleWizardFinalizeSuccess(i))}),r()}if(t&2){let e=d(3);_("projectId",e.targetProjectId_$())("isEmbeddedInModal",!0)("quickInputDraftId",e.userInput_DS.selectedQuickInputId_$())("initialRawContent",e.wizardSeedRaw_$())("initialStagingPriority",e.wizardStagingPriority_$())("skipSuggestMode",!1)}}function Hs(t,a){t&1&&(o(0,"p",97),c(1," No target project is set. Go back and choose a target project under Target project (promotion); those actions stay disabled until a target project is selected. "),r())}function qs(t,a){if(t&1){let e=I();o(0,"div",21)(1,"button",95),m("click",function(){f(e);let i=d(2);return h(i.handleBackToHub())}),c(2," \u2190 Back "),r(),C(3,zs,1,6,"app-pm-user-input-wizard",96)(4,Hs,2,0,"p",97),r()}if(t&2){let e=d(2);l(3),u(e.hasSelectedProject_$()?3:4)}}function Ws(t,a){if(t&1){let e=I();o(0,"app-pm-user-input-wizard",98),m("wizardFinalizeSuccess",function(i){f(e);let s=d(3);return h(s.handleWizardFinalizeSuccess(i))}),r()}if(t&2){let e=d(3);_("projectId",e.targetProjectId_$())("isEmbeddedInModal",!0)("quickInputDraftId",e.userInput_DS.selectedQuickInputId_$())("initialRawContent",e.wizardSeedRaw_$())("initialStagingPriority",e.wizardStagingPriority_$())("skipSuggestMode",!0)}}function Gs(t,a){t&1&&(o(0,"p",97),c(1," No target project is set. Go back and choose a target project under Target project (promotion); those actions stay disabled until a target project is selected. "),r())}function Ys(t,a){if(t&1){let e=I();o(0,"div",21)(1,"button",95),m("click",function(){f(e);let i=d(2);return h(i.handleBackToHub())}),c(2," \u2190 Back "),r(),C(3,Ws,1,6,"app-pm-user-input-wizard",96)(4,Gs,2,0,"p",97),r()}if(t&2){let e=d(2);l(3),u(e.hasSelectedProject_$()?3:4)}}function Ks(t,a){if(t&1&&C(0,js,122,51,"div",20)(1,Bs,14,5,"div",12)(2,qs,5,1,"div",21)(3,Ys,5,1,"div",21),t&2){let e,n=d();u((e=n.pane_$())===n.Pane.hub?0:e===n.Pane.edit?1:e===n.Pane.wizard?2:e===n.Pane.direct?3:-1)}}function Xs(t,a){t&1&&(o(0,"p",1),c(1,"No quick input selected."),r())}function Zs(t,a){t&1&&(o(0,"p",99),c(1," This permanently removes the quick input staging entity from the server. This cannot be undone. "),r(),o(2,"p",100),c(3,"Document id"),r(),o(4,"p",101),c(5),r()),t&2&&(l(5),P(a.quickInputId))}function Js(t,a){if(t&1){let e=I();o(0,"div",12)(1,"div",22)(2,"label",87),c(3,"Target session"),r(),o(4,"div",102)(5,"app-s-session-select",103),m("selected",function(i){f(e);let s=d();return h(s.sendToSessionSelectedId_$.set(i))}),r()()(),o(6,"div",22)(7,"label",87),c(8,"Message content"),r(),o(9,"textarea",104),m("ngModelChange",function(i){f(e);let s=d();return h(s.sendToSessionContent_$.set(i))}),r()()()}if(t&2){let e=d();l(5),_("kind",e.sendToSessionSelectKind_$())("rows",e.sendToSessionRowViews_$())("activeId",e.sendToSessionSelectedId_$()),l(4),_("ngModel",e.sendToSessionContent_$())}}function el(t,a){t&1&&(o(0,"p",18),c(1,"Document id: "),o(2,"span",105),c(3),r()()),t&2&&(l(3),P(a.quickInputId))}function tl(t,a){if(t&1){let e=I();o(0,"button",14),m("click",function(){f(e);let i=d();return h(i.handlePostPromotionGoToSession())}),c(1," Go to session "),r()}if(t&2){let e=d();_("disabled",e.postPromotionCleanupBusy_$())}}var It=(()=>{class t{quickInputOverlayModalZIndex_Value=si;userInput_DS=y(G);pm_DS=y(Pn);globalError_CS=y(ne);caSession_DS=y(Dn);ccSession_DS=y($e);session_DS=y(Pe);router=y(st);newAgentSessionWorkspace_DS=y(ht);Pane=K;QiStatus=fe;QiPredType=_t;QiTaskDiff=Ee;QiPriority=ue;SendTarget=Q;pane_$=S(K.hub);targetProjectId_$=S("");lastSyncedQuickInputId="";saveTargetProjectBusy_$=S(!1);taskDifficulty_$=S("");taskDifficultyPatchBusy_$=S(!1);priority_$=S("");priorityPatchBusy_$=S(!1);area_$=S("");areaPatchBusy_$=S(!1);elementsDraft_$=S([]);newElementLine_$=S("");elementsPatchBusy_$=S(!1);hubGridPatchBusy_$=v(()=>this.taskDifficultyPatchBusy_$()||this.priorityPatchBusy_$()||this.areaPatchBusy_$()||this.elementsPatchBusy_$());classifyQuickInputBusy_$=S(!1);manualBugModalOpen_$=S(!1);manualBugBusy_$=S(!1);quickInputDeleteConfirmOpen_$=S(!1);deleteQuickInputBusy_$=S(!1);editRaw_$=S("");editTitle_$=S("");editSaveBusy_$=S(!1);wizardSeedRaw_$=S("");bugPrefillTitle_$=S("");bugPrefillDetails_$=S("");copyFeedback_$=S("");copyFeedbackClearHandle;genericConfirmOpen_$=S(!1);genericConfirmTitle_$=S("");genericConfirmBody_$=S("");genericConfirmBusy_$=S(!1);genericConfirmButtonLabel_$=S("Confirm");pendingGenericConfirmAction_=null;SEND_NEW_SESSION_VALUE="__new__";sendToSessionOpen_$=S(!1);sendToSessionType_$=S(Q.caSession);sendToSessionSelectedId_$=S("__new__");sendToSessionContent_$=S("");sendToSessionRowViews_$=v(()=>{let e={id:this.SEND_NEW_SESSION_VALUE,label:"+ Create new session",status:"",statusColorClass:"bg-neonCyan",isArchived:!1,isRunning:!1},n=this.sendToSessionType_$(),i=[];return n===Q.caSession?i=this.caSession_DS.sessions_$().map(s=>({id:s.sessionId??"",label:s.label||s.sessionId||"",status:s.status??"",statusColorClass:oe.resolve(s.status),isArchived:!!s.isArchived,isRunning:oe.isRunning(s.status)})):n===Q.ccSession?i=this.ccSession_DS.sessions_$().map(s=>({id:s.sessionId??"",label:s.label||s.sessionId||"",status:s.status??"",statusColorClass:oe.resolve(s.status),isArchived:!!s.isArchived,isRunning:oe.isRunning(s.status)})):i=this.session_DS.sessions_$().map(s=>({id:s._id??"",label:s.name||s._id||"",status:s.status??"",statusColorClass:oe.resolve(s.status),isArchived:!1,isRunning:oe.isRunning(s.status)})),[e,...i]});sendToSessionSelectKind_$=v(()=>{let e=this.sendToSessionType_$();return e===Q.caSession?"ca":e===Q.ccSession?"cc":"ccap"});postPromotionCleanupOpen_$=S(!1);postPromotionCleanupBusy_$=S(!1);postPromotionCleanupEntityLabel_$=S("");postPromotionCleanupRouteCmds_$=S(null);sendToSessionBusy_$=S(!1);sendToSessionFeedback_$=S("");sendToSessionFeedbackClearHandle;hubCollapsedBlocks_$=S({});toggleHubBlock(e){let n=this.hubCollapsedBlocks_$(),i=se(Y({},n),{[e]:!n[e]});this.hubCollapsedBlocks_$.set(i)}selectedItem_$=v(()=>{if(this.userInput_DS.quickInputActionsModalOpen_$())return this.userInput_DS.getSelectedQuickInputListItem()});wizardStagingPriority_$=v(()=>this.selectedItem_$()?.priority);canPromote_$=v(()=>{let e=this.selectedItem_$();return e?e.status===fe.draft:!1});hubCopyDisabled_$=v(()=>{let e=this.selectedItem_$();return e?!e.rawContent.trim():!0});hasSelectedProject_$=v(()=>this.targetProjectId_$().trim().length>0);isTargetProjectDirty_$=v(()=>{let e=this.selectedItem_$();return e?String(e.projectId??"").trim()!==this.targetProjectId_$().trim():!1});canPromoteWithSyncedTarget_$=v(()=>this.canPromote_$()?!this.isTargetProjectDirty_$():!1);hubDeleteDisabled_$=v(()=>{let e=this.selectedItem_$();return e?!String(e.projectId??"").trim().length:!0});hubDeleteDisabledHint_$=v(()=>this.hubDeleteDisabled_$()?"Delete is disabled: this quick input has no stored project id (cannot call DELETE path).":null);hubClassifyLlmDisabled_$=v(()=>this.hubDeleteDisabled_$()||this.hubCopyDisabled_$());hubClassifyLlmDisabledHint_$=v(()=>this.hubClassifyLlmDisabled_$()?this.hubDeleteDisabled_$()?this.hubDeleteDisabledHint_$():"Classify with LLM is disabled: raw content is empty.":null);hubProjectPromotionActionsHint_$=v(()=>this.canPromoteWithSyncedTarget_$()?null:this.canPromote_$()?this.hasSelectedProject_$()?this.isTargetProjectDirty_$()?"Save target project first so the stored home project matches the selection; promotion APIs use the record project id.":null:"Choose a target project in Target project (promotion) above. These actions are unavailable until a target project is selected.":"Wizard, direct finalize, and report bug need a draft quick input. This item is already promoted or discarded.");hubCopyDisabledHint_$=v(()=>this.hubCopyDisabled_$()?"Copy is disabled because raw content is empty.":null);hubApplyPredictionDisabled_$=v(()=>{let e=this.selectedItem_$();return e?!String(e.predictedProjectId??"").trim().length:!0});hubApplyPredictionDisabledHint_$=v(()=>this.hubApplyPredictionDisabled_$()?"Apply prediction is disabled: this quick input has no predicted project id.":null);hubSaveTargetProjectDisabledHint_$=v(()=>this.saveTargetProjectBusy_$()||this.isTargetProjectDirty_$()?null:"Save target project is disabled: the selected target already matches the record.");isAreaDirty_$=v(()=>{let e=this.selectedItem_$();if(!e)return!1;let n=String(e.area??"").trim(),i=this.area_$().trim();return n!==i});isElementsDirty_$=v(()=>{let e=this.selectedItem_$();if(!e)return!1;let n=e.elements!==void 0?[...e.elements]:[],i=[...this.elementsDraft_$()];return!t.quickInputElementListsEqual(n,i)});editSaveSubmitDisabled_$=v(()=>this.editSaveBusy_$()||!this.editRaw_$().trim().length);editSaveDisabledHint_$=v(()=>this.editSaveBusy_$()||this.editRaw_$().trim().length>0?null:"Save is disabled: raw content is empty.");mainModalTitle_$=v(()=>{let e=this.pane_$();return e===K.edit?"Quick Input \u2014 edit":e===K.wizard?"Quick Input \u2014 USER-INPUT wizard":e===K.direct?"Quick Input \u2014 direct finalize":"Quick Input Entity Details"});sendToSessionModalTitle_$=v(()=>{let e=this.sendToSessionType_$();return e===Q.caSession?"Send to CA Session":e===Q.ccSession?"Send to CC Session":"Send to CCAP Session"});hubSendToSessionDisabled_$=v(()=>this.hubCopyDisabled_$());sendToSessionConfirmDisabled_$=v(()=>!!(this.sendToSessionBusy_$()||!this.sendToSessionSelectedId_$().trim().length||!this.sendToSessionContent_$().trim().length));constructor(){W(()=>{this.userInput_DS.quickInputActionsModalOpen_$()||(this.pane_$.set(K.hub),this.manualBugModalOpen_$.set(!1),this.editRaw_$.set(""),this.editTitle_$.set(""),this.wizardSeedRaw_$.set(""),this.copyFeedback_$.set(""),this.targetProjectId_$.set(""),this.taskDifficulty_$.set(""),this.taskDifficultyPatchBusy_$.set(!1),this.priority_$.set(""),this.priorityPatchBusy_$.set(!1),this.area_$.set(""),this.areaPatchBusy_$.set(!1),this.elementsDraft_$.set([]),this.newElementLine_$.set(""),this.elementsPatchBusy_$.set(!1),this.lastSyncedQuickInputId="",this.copyFeedbackClearHandle!==void 0&&(clearTimeout(this.copyFeedbackClearHandle),this.copyFeedbackClearHandle=void 0),this.quickInputDeleteConfirmOpen_$.set(!1),this.deleteQuickInputBusy_$.set(!1),this.classifyQuickInputBusy_$.set(!1),this.genericConfirmOpen_$.set(!1),this.genericConfirmBusy_$.set(!1),this.pendingGenericConfirmAction_=null,this.sendToSessionOpen_$.set(!1),this.sendToSessionBusy_$.set(!1),this.sendToSessionSelectedId_$.set("__new__"),this.sendToSessionContent_$.set(""),this.sendToSessionFeedback_$.set(""),this.sendToSessionFeedbackClearHandle!==void 0&&(clearTimeout(this.sendToSessionFeedbackClearHandle),this.sendToSessionFeedbackClearHandle=void 0),this.postPromotionCleanupOpen_$.set(!1),this.postPromotionCleanupBusy_$.set(!1),this.postPromotionCleanupEntityLabel_$.set(""))},{allowSignalWrites:!0}),W(()=>{this.userInput_DS.quickInputActionsModalOpen_$()?this.userInput_DS.pushQuickInputOverlayAreaContextByOverlayId(je.quickInputActionsModal):this.userInput_DS.closeQuickInputActionsModalOverlayChain()},{allowSignalWrites:!0}),W(()=>{if(!this.userInput_DS.quickInputActionsModalOpen_$())return;let e=this.userInput_DS.selectedQuickInputId_$().trim();if(!e.length||e===this.lastSyncedQuickInputId)return;this.lastSyncedQuickInputId=e;let n=this.userInput_DS.getSelectedQuickInputListItem();n&&(this.targetProjectId_$.set(String(n.projectId??"").trim()),this.taskDifficulty_$.set(n.taskDifficulty!==void 0?n.taskDifficulty:""),this.priority_$.set(n.priority!==void 0?n.priority:""),this.area_$.set(n.area!==void 0?n.area:""),this.elementsDraft_$.set(n.elements!==void 0&&n.elements.length>0?[...n.elements]:[]),this.newElementLine_$.set(""))},{allowSignalWrites:!0})}static quickInputElementListsEqual(e,n){if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==n[i])return!1;return!0}handleTaskDifficultySelectChange(e){return A(this,null,function*(){let n=this.selectedItem_$(),i=String(n?.projectId??"").trim();if(!n||!i.length)return;let s=e==="",p=n.taskDifficulty===void 0;if(s&&p||!s&&e===n.taskDifficulty)return;let x=[Ee.easy,Ee.medium,Ee.hard,Ee.komplex],g;if(s)g={taskDifficulty:null};else{let w=x.find(M=>M===e);if(w===void 0)return;g={taskDifficulty:w}}let T=n.taskDifficulty!==void 0?n.taskDifficulty:"";this.taskDifficulty_$.set(e),this.taskDifficultyPatchBusy_$.set(!0);try{(yield this.userInput_DS.patchQuickInput({pathProjectId:i,quickInputId:n.quickInputId,body:g}))===null&&(this.taskDifficulty_$.set(T),this.globalError_CS.showError(new Error("Quick input task difficulty PATCH failed"),"ccap-quick-input-task-difficulty"))}finally{this.taskDifficultyPatchBusy_$.set(!1)}})}handlePrioritySelectChange(e){return A(this,null,function*(){let n=this.selectedItem_$(),i=String(n?.projectId??"").trim();if(!n||!i.length)return;let s=e==="",p=n.priority===void 0;if(s&&p||!s&&e===n.priority)return;let x=[ue.low,ue.medium,ue.high,ue.urgent],g;if(s)g={priority:null};else{let w=x.find(M=>M===e);if(w===void 0)return;g={priority:w}}let T=n.priority!==void 0?n.priority:"";this.priority_$.set(e),this.priorityPatchBusy_$.set(!0);try{(yield this.userInput_DS.patchQuickInput({pathProjectId:i,quickInputId:n.quickInputId,body:g}))===null&&(this.priority_$.set(T),this.globalError_CS.showError(new Error("Quick input priority PATCH failed"),"ccap-quick-input-priority"))}finally{this.priorityPatchBusy_$.set(!1)}})}handleSaveArea(){return A(this,null,function*(){let e=this.selectedItem_$(),n=String(e?.projectId??"").trim();if(!e||!n.length||!this.isAreaDirty_$())return;let i=this.area_$().trim(),s=i.length?{area:i}:{area:null},p=e.area!==void 0?e.area:"";this.areaPatchBusy_$.set(!0);try{(yield this.userInput_DS.patchQuickInput({pathProjectId:n,quickInputId:e.quickInputId,body:s}))===null&&(this.area_$.set(p),this.globalError_CS.showError(new Error("Quick input area PATCH failed"),"ccap-quick-input-area"))}finally{this.areaPatchBusy_$.set(!1)}})}handleHubAddElementLine(){let e=this.newElementLine_$().trim();if(!e.length)return;let n=[...this.elementsDraft_$()];if(n.includes(e)){this.newElementLine_$.set("");return}n.push(e),this.elementsDraft_$.set(n),this.newElementLine_$.set("")}handleHubRemoveElementAt(e){let n=[...this.elementsDraft_$()];e<0||e>=n.length||(n.splice(e,1),this.elementsDraft_$.set(n))}handleSaveElements(){return A(this,null,function*(){let e=this.selectedItem_$(),n=String(e?.projectId??"").trim();if(!e||!n.length||!this.isElementsDirty_$())return;let i=[...this.elementsDraft_$()],s=i.length>0?{elements:i}:{elements:null},p=e.elements!==void 0&&e.elements.length>0?[...e.elements]:[];this.elementsPatchBusy_$.set(!0);try{if(!((yield this.userInput_DS.patchQuickInput({pathProjectId:n,quickInputId:e.quickInputId,body:s}))!==null)){this.elementsDraft_$.set(p),this.globalError_CS.showError(new Error("Quick input elements PATCH failed"),"ccap-quick-input-elements");return}let g=this.userInput_DS.getSelectedQuickInputListItem();this.elementsDraft_$.set(g?.elements!==void 0&&g.elements.length>0?[...g.elements]:[])}finally{this.elementsPatchBusy_$.set(!1)}})}handleOpenCopyConfirm(){this.hubCopyDisabled_$()||this.openGenericConfirm("Copy to clipboard?","The raw content of this Quick Input will be copied to the clipboard.","Copy",()=>A(this,null,function*(){yield this.executeCopyRawContent()}))}executeCopyRawContent(){return A(this,null,function*(){let e=this.selectedItem_$(),n=e!==void 0?String(e.rawContent??""):"";if(!n.trim())return;this.copyFeedbackClearHandle!==void 0&&(clearTimeout(this.copyFeedbackClearHandle),this.copyFeedbackClearHandle=void 0);let i=yield this.globalError_CS.copyToClipboard(n);if(!i.ok){this.globalError_CS.showError(i.error,"ccap-quick-input-entity-details-copy");return}this.copyFeedback_$.set("Copied."),this.copyFeedbackClearHandle=window.setTimeout(()=>{this.copyFeedback_$.set(""),this.copyFeedbackClearHandle=void 0},2*Ft.second)})}handleMainModalClosed(){this.userInput_DS.closeQuickInputActionsModal()}handleBackToHub(){this.pane_$.set(K.hub)}handleOpenApplyPredictionConfirm(){if(this.hubApplyPredictionDisabled_$())return;let e=this.selectedItem_$(),n=String(e?.predictedProjectId??"").trim();this.openGenericConfirm("Apply prediction?",`Copy the LLM-predicted project ID (${n}) into the target project selector. This is a local change \u2014 no server request.`,"Apply",()=>A(this,null,function*(){this.executeApplyPredictedProject()}))}executeApplyPredictedProject(){let e=this.selectedItem_$(),n=String(e?.predictedProjectId??"").trim();n.length&&this.targetProjectId_$.set(n)}handleOpenSaveTargetProjectConfirm(){!this.isTargetProjectDirty_$()||this.saveTargetProjectBusy_$()||this.openGenericConfirm("Save target project?","This will update the stored home project on the server. The Quick Input will be moved to the selected target project.","Save",()=>A(this,null,function*(){yield this.executeSaveTargetProject()}))}executeSaveTargetProject(){return A(this,null,function*(){let e=this.selectedItem_$();if(!e)return;let n=String(e.projectId??"").trim(),i=this.targetProjectId_$().trim();if(!(!n.length||!i.length)&&n!==i){this.saveTargetProjectBusy_$.set(!0);try{if((yield this.userInput_DS.patchQuickInput({pathProjectId:n,quickInputId:e.quickInputId,body:{projectId:i}}))===null){this.globalError_CS.showError(new Error("Quick input target project PATCH failed"),"ccap-quick-input-save-target-project");return}i!==this.userInput_DS.selectedProjectId_$().trim()&&this.userInput_DS.closeQuickInputActionsModal()}finally{this.saveTargetProjectBusy_$.set(!1)}}})}handleOpenClassifyConfirm(){this.hubClassifyLlmDisabled_$()||this.openGenericConfirm("Classify with LLM?","This will use the default LLM to set predicted type (USER-INPUT / bug-report / unspecified), and may suggest a target project and a clean description.","Classify",()=>A(this,null,function*(){yield this.executeClassifyQuickInputWithLlm()}))}executeClassifyQuickInputWithLlm(){return A(this,null,function*(){let e=this.selectedItem_$(),n=String(e?.projectId??"").trim();if(!(!e||!n.length||!e.rawContent.trim())&&!this.hubClassifyLlmDisabled_$()){this.classifyQuickInputBusy_$.set(!0);try{(yield this.userInput_DS.classifyQuickInputWithLlm({pathProjectId:n,quickInputId:e.quickInputId}))||this.globalError_CS.showError(new Error("Quick input LLM classify failed"),"ccap-quick-input-llm-classify")}finally{this.classifyQuickInputBusy_$.set(!1)}}})}handleOpenEditConfirm(){this.openGenericConfirm("Edit raw content?","This opens the text editor for the raw content of this Quick Input.","Open editor",()=>A(this,null,function*(){this.executeOpenEdit()}))}executeOpenEdit(){let e=this.selectedItem_$();e&&(this.editRaw_$.set(e.rawContent),this.editTitle_$.set(e.title??""),this.pane_$.set(K.edit))}handleSaveEdit(){return A(this,null,function*(){let e=this.selectedItem_$(),n=String(e?.projectId??"").trim();if(!e||!n.length)return;let i=this.editRaw_$().trim();if(!i.length)return;let s=this.editTitle_$().trim(),p=String(e.title??"").trim(),x={rawContent:i};s!==p&&(x.title=s.length>0?s:null),this.editSaveBusy_$.set(!0);try{(yield this.userInput_DS.patchQuickInput({pathProjectId:n,quickInputId:e.quickInputId,body:x}))!==null&&this.pane_$.set(K.hub)}finally{this.editSaveBusy_$.set(!1)}})}handleOpenWizardConfirm(){this.canPromoteWithSyncedTarget_$()&&this.openGenericConfirm("Start USER-INPUT wizard?","This starts the AI-assisted USER-INPUT wizard. The Quick Input raw content will be used as seed text.","Start wizard",()=>A(this,null,function*(){this.executeOpenWizard()}))}executeOpenWizard(){let e=this.selectedItem_$();!e||!this.canPromote_$()||(this.wizardSeedRaw_$.set(e.rawContent),this.pane_$.set(K.wizard))}handleOpenDirectConfirm(){this.canPromoteWithSyncedTarget_$()&&this.openGenericConfirm("Start direct finalize?","This opens the direct finalization form (without AI suggestions). The Quick Input raw content will be used as seed text.","Start direct",()=>A(this,null,function*(){this.executeOpenDirect()}))}executeOpenDirect(){let e=this.selectedItem_$();!e||!this.canPromote_$()||(this.wizardSeedRaw_$.set(e.rawContent),this.pane_$.set(K.direct))}handleWizardFinalizeSuccess(e){return A(this,null,function*(){let n=this.selectedItem_$();if(!n)return;let i=String(e.userRequest._id??""),s=String(n.projectId??"").trim();if((yield this.userInput_DS.patchQuickInput({pathProjectId:s,quickInputId:n.quickInputId,body:{status:fe.promotedUserInput,promotedUserRequestId:i}}))===null){this.globalError_CS.showError(new Error("Quick input promotion PATCH failed after USER-INPUT finalize"),"ccap-quick-input-promote-user-input");return}let x=String(e.userRequest.code??i);this.postPromotionCleanupEntityLabel_$.set("USER-INPUT "+x),this.postPromotionCleanupOpen_$.set(!0)})}handleOpenBugConfirm(){this.canPromoteWithSyncedTarget_$()&&this.openGenericConfirm("Report bug?","This opens the bug report form pre-filled with the Quick Input raw content.","Open bug form",()=>A(this,null,function*(){this.executeOpenBugModal()}))}executeOpenBugModal(){let e=this.selectedItem_$();if(!e||!this.canPromote_$())return;let n=e.rawContent,i=n.split(`
|
|
5
|
-
`)[0]?.trim()??"",s=i.length>0?i:"Quick input";this.bugPrefillTitle_$.set(s),this.bugPrefillDetails_$.set(n),this.manualBugModalOpen_$.set(!0)}handleBugModalClosed(){this.manualBugModalOpen_$.set(!1)}handleBugSubmitted(e){return A(this,null,function*(){let n=this.selectedItem_$(),i=this.targetProjectId_$().trim(),s=String(n?.projectId??"").trim();if(!(!n||!i.length||!s.length)){this.manualBugBusy_$.set(!0);try{let p=yield this.pm_DS.createManualBugAndRefresh(i,e);if((yield this.userInput_DS.patchQuickInput({pathProjectId:s,quickInputId:n.quickInputId,body:{status:fe.promotedBug,promotedBugCode:p.createdCode,promotedUserRequestId:p.userRequestId}}))===null){this.globalError_CS.showError(new Error("Quick input promotion PATCH failed after manual bug create"),"ccap-quick-input-promote-bug");return}this.manualBugModalOpen_$.set(!1),this.postPromotionCleanupEntityLabel_$.set("Bug "+String(p.createdCode??"")),this.postPromotionCleanupOpen_$.set(!0)}catch(p){this.globalError_CS.showError(p,"ccap-quick-input-manual-bug")}finally{this.manualBugBusy_$.set(!1)}}})}handleOpenQuickInputDeleteConfirm(){this.hubDeleteDisabled_$()||this.quickInputDeleteConfirmOpen_$.set(!0)}handleQuickInputDeleteConfirmClosed(){this.quickInputDeleteConfirmOpen_$.set(!1)}handleConfirmDeleteQuickInput(){return A(this,null,function*(){let e=this.selectedItem_$(),n=String(e?.projectId??"").trim();if(!(!e||!n.length)){this.deleteQuickInputBusy_$.set(!0);try{if(!(yield this.userInput_DS.deleteQuickInput({pathProjectId:n,quickInputId:e.quickInputId}))){this.globalError_CS.showError(new Error("Quick input DELETE failed"),"ccap-quick-input-delete");return}this.quickInputDeleteConfirmOpen_$.set(!1),this.userInput_DS.closeQuickInputActionsModal()}finally{this.deleteQuickInputBusy_$.set(!1)}}})}openGenericConfirm(e,n,i,s){this.genericConfirmTitle_$.set(e),this.genericConfirmBody_$.set(n),this.genericConfirmButtonLabel_$.set(i),this.pendingGenericConfirmAction_=s,this.genericConfirmOpen_$.set(!0)}handleGenericConfirm(){return A(this,null,function*(){if(this.pendingGenericConfirmAction_){this.genericConfirmBusy_$.set(!0);try{yield this.pendingGenericConfirmAction_()}catch(e){this.globalError_CS.showError(e,"ccap-quick-input-generic-confirm")}finally{this.genericConfirmBusy_$.set(!1),this.genericConfirmOpen_$.set(!1),this.pendingGenericConfirmAction_=null}}})}handleGenericConfirmClosed(){this.genericConfirmOpen_$.set(!1),this.pendingGenericConfirmAction_=null}handlePostPromotionDelete(){return A(this,null,function*(){let e=this.selectedItem_$(),n=String(e?.projectId??"").trim();if(!e||!n.length){this.postPromotionCleanupOpen_$.set(!1),this.userInput_DS.closeQuickInputActionsModal();return}this.postPromotionCleanupBusy_$.set(!0);try{(yield this.userInput_DS.deleteQuickInput({pathProjectId:n,quickInputId:e.quickInputId}))||this.globalError_CS.showError(new Error("Quick input DELETE failed during post-promotion cleanup"),"ccap-quick-input-post-promotion-delete")}finally{this.postPromotionCleanupBusy_$.set(!1),this.postPromotionCleanupOpen_$.set(!1),this.postPromotionCleanupRouteCmds_$.set(null),this.userInput_DS.closeQuickInputActionsModal()}})}handlePostPromotionKeep(){this.postPromotionCleanupOpen_$.set(!1),this.postPromotionCleanupRouteCmds_$.set(null),this.userInput_DS.closeQuickInputActionsModal()}handlePostPromotionGoToSession(){let e=this.postPromotionCleanupRouteCmds_$();this.postPromotionCleanupOpen_$.set(!1),this.postPromotionCleanupRouteCmds_$.set(null),this.userInput_DS.closeQuickInputActionsModal(),e&&this.router.navigate(e)}handlePostPromotionCleanupClosed(){this.postPromotionCleanupBusy_$()||this.handlePostPromotionKeep()}handleOpenSendToSession(e){return A(this,null,function*(){if(this.hubSendToSessionDisabled_$())return;let n=this.selectedItem_$();this.sendToSessionType_$.set(e),this.sendToSessionSelectedId_$.set(this.SEND_NEW_SESSION_VALUE),this.sendToSessionContent_$.set(n?.rawContent??""),this.sendToSessionBusy_$.set(!1),this.sendToSessionFeedback_$.set(""),this.sendToSessionOpen_$.set(!0);try{e===Q.caSession?yield Promise.all([this.caSession_DS.loadSessions(),this.newAgentSessionWorkspace_DS.refreshWorkspacePathPickerOptions()]):e===Q.ccSession?yield Promise.all([this.ccSession_DS.loadSessions(),this.newAgentSessionWorkspace_DS.refreshWorkspacePathPickerOptions()]):yield this.session_DS.loadSessions()}catch(i){this.globalError_CS.showError(i,"ccap-quick-input-send-to-session-load")}})}handleSendToSessionClosed(){this.sendToSessionOpen_$.set(!1),this.sendToSessionSelectedId_$.set(this.SEND_NEW_SESSION_VALUE),this.sendToSessionContent_$.set(""),this.sendToSessionFeedbackClearHandle!==void 0&&(clearTimeout(this.sendToSessionFeedbackClearHandle),this.sendToSessionFeedbackClearHandle=void 0)}handleConfirmSendToSession(){return A(this,null,function*(){let e=this.sendToSessionContent_$().trim();if(!e.length)return;let n=this.sendToSessionSelectedId_$().trim();if(n.length){this.sendToSessionBusy_$.set(!0);try{let i=this.sendToSessionType_$(),s=n===this.SEND_NEW_SESSION_VALUE,p=s?"":n;if(s){let x=this.selectedItem_$(),g=kt.buildDisplayNameFromQuickInput({rawContent:e,title:x?.title});p=yield this.createNewSessionForSend(i,{displayName:g})}if(!p.length){this.globalError_CS.showError(new Error("Failed to resolve session id for send"),"ccap-quick-input-send-to-session-resolve");return}if(i===Q.caSession?yield this.caSession_DS.sendPrompt({sessionId:p,content:e}):i===Q.ccSession?yield this.ccSession_DS.sendPrompt({sessionId:p,content:e}):yield this.session_DS.sendMessageToSession({sessionId:p,content:e}),this.sendToSessionFeedback_$.set("Sent."),this.sendToSessionFeedbackClearHandle!==void 0&&clearTimeout(this.sendToSessionFeedbackClearHandle),this.sendToSessionFeedbackClearHandle=window.setTimeout(()=>{this.sendToSessionFeedback_$.set(""),this.sendToSessionFeedbackClearHandle=void 0},3*Ft.second),this.sendToSessionOpen_$.set(!1),s){let x=i===Q.caSession?"CA Session":i===Q.ccSession?"CC Session":"Session";this.postPromotionCleanupEntityLabel_$.set(x+" "+p);let g=i===Q.caSession?"/ca-session":i===Q.ccSession?"/cc-session":"/session";this.postPromotionCleanupRouteCmds_$.set([g,p]),this.postPromotionCleanupOpen_$.set(!0)}}catch(i){this.globalError_CS.showError(i,"ccap-quick-input-send-to-session")}finally{this.sendToSessionBusy_$.set(!1)}}})}createNewSessionForSend(e,n){return A(this,null,function*(){if(e===Q.caSession){let s=this.resolveDefaultWorkspacePath();return yield this.caSession_DS.createSession({workspacePath:s,label:n.displayName})}if(e===Q.ccSession){let s=this.resolveDefaultWorkspacePath();return yield this.ccSession_DS.createSession({workspacePath:s,label:n.displayName})}let i=yield this.session_DS.createSession({name:n.displayName});return String(i._id??"")})}resolveDefaultWorkspacePath(){let e=this.newAgentSessionWorkspace_DS.workspacePathPickerOptions_$();return e.length>0?e[0].path:""}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-quick-input-actions-modal"]],standalone:!0,features:[U],decls:39,vars:41,consts:[["maxWidth","5xl","headerBorderClass","border-ccapAccent/30",3,"closed","isOpen","title","zIndex"],[1,"text-sm","text-neutral-500"],[3,"closed","submitted","isOpen","isBusy","modalZIndex","prefillTitle","prefillDetails","prefillPriority"],["maxWidth","lg","headerBorderClass","border-neonRed/40",3,"closed","isOpen","title","zIndex"],["modal-footer","",1,"flex","flex-wrap","gap-3","px-4","py-3","border-t","border-neonRed/30"],["type","button",1,"px-4","py-2","rounded","bg-neonRed/90","text-neutral-950","text-sm","font-medium","hover:bg-neonRed","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button",1,"px-4","py-2","rounded","border","border-neutral-600","text-neutral-200","text-sm","hover:bg-neutral-800","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["maxWidth","lg","headerBorderClass","border-ccapAccent/30",3,"closed","isOpen","title","zIndex"],[1,"text-sm","text-neutral-300","mb-4"],["modal-footer","",1,"flex","flex-wrap","gap-3","px-4","py-3","border-t","border-neutral-700/60"],["type","button",1,"px-4","py-2","rounded","border","border-ccapAccent","text-ccapAccent","text-sm","font-medium","hover:bg-ccapAccent/10","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["maxWidth","lg","headerBorderClass","border-neonCyan/30",3,"closed","isOpen","title","zIndex"],[1,"flex","flex-col","gap-3"],["modal-footer","",1,"flex","flex-wrap","gap-3","px-4","py-3","border-t","border-neonCyan/30"],["type","button",1,"px-4","py-2","rounded","border","border-neonCyan/70","text-neonCyan","text-sm","font-medium","hover:bg-neonCyan/10","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["maxWidth","lg","headerBorderClass","border-neonCyan/30",3,"closed","isOpen","title","zIndex","closeOnBackdropClick"],[1,"text-sm","text-neonCyan/90","font-medium"],[1,"text-sm","text-neutral-300"],[1,"text-xs","text-neutral-500"],["type","button",1,"px-4","py-2","rounded","border","border-neonCyan/70","text-neonCyan","text-sm","font-medium","hover:bg-neonCyan/10","disabled:opacity-40","disabled:pointer-events-none",3,"disabled"],[1,"flex","flex-col","gap-4","text-sm","text-neutral-200"],[1,"flex","flex-col","gap-2"],[1,"flex","flex-col","gap-1"],[1,"flex","items-center","justify-between","gap-2","min-h-8"],[1,"text-xs","font-medium","text-neutral-400"],[1,"flex","items-center","gap-2","shrink-0"],[1,"text-xs","text-neonCyan/90"],["type","button","title","Copy raw content to clipboard","aria-label","Copy Quick Input raw content to clipboard",1,"p-1.5","rounded-md","border","border-neutral-600","text-neutral-300","hover:border-ccapAccent/50","hover:text-ccapAccent","hover:bg-neutral-800/80","transition-colors","duration-150","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"],["type","button","title","Edit raw content","aria-label","Edit Quick Input raw content",1,"p-1.5","rounded-md","border","border-neutral-600","text-neutral-300","hover:border-ccapAccent/50","hover:text-ccapAccent","hover:bg-neutral-800/80","transition-colors","duration-150",3,"click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"],[1,"rounded-lg","border","border-ccapAccent/30","bg-neutral-950/70","px-3","py-2.5","max-h-[min(40dvh,18rem)]","overflow-y-auto"],[1,"text-sm","text-neutral-100","whitespace-pre-wrap","break-words"],[1,"grid","grid-cols-[minmax(6rem,auto)_1fr]","gap-x-3","gap-y-2","text-xs","border","border-neutral-700/80","rounded-lg","bg-neutral-950/50","px-3","py-2.5"],[1,"text-neutral-500","shrink-0"],[1,"font-mono","text-neutral-300","break-all"],[1,"text-[10px]","uppercase","tracking-wide","px-1.5","py-0.5","rounded","border","border-neutral-600","text-neutral-400"],[1,"w-full","max-w-[14rem]","rounded-md","border","border-neutral-600","bg-neutral-900","px-2","py-1","text-xs","text-neutral-200","focus:outline-none","focus:border-ccapAccent/50",3,"ngModelChange","ngModel","disabled"],["value",""],[3,"value"],[1,"text-neutral-500","shrink-0","self-start","pt-1.5"],[1,"flex","flex-col","gap-1.5","min-w-0"],["type","text","placeholder","e.g. frontend/session",1,"w-full","max-w-md","rounded-md","border","border-neutral-600","bg-neutral-900","px-2","py-1","text-xs","text-neutral-200","font-mono","placeholder:text-neutral-600","focus:outline-none","focus:border-ccapAccent/50",3,"ngModelChange","ngModel","disabled"],[1,"flex","flex-wrap","items-center","gap-2"],["type","button","title","Persist the edited Area tag (triage grouping) on this Quick Input.",1,"px-2","py-1","rounded","border","border-ccapAccent/50","text-ccapAccent","text-xs","font-medium","hover:bg-ccapAccent/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],[1,"flex","flex-wrap","gap-2","items-center"],["type","text","placeholder","Add identifier",1,"flex-1","min-w-[10rem]","max-w-md","rounded-md","border","border-neutral-600","bg-neutral-900","px-2","py-1","text-xs","text-neutral-200","font-mono","placeholder:text-neutral-600","focus:outline-none","focus:border-ccapAccent/50",3,"ngModelChange","keydown.enter","ngModel","disabled"],["type","button","title","Append the typed identifier to the Elements draft list (Save elements to persist).",1,"px-2","py-1","rounded","border","border-neutral-600","text-xs","text-neutral-200","hover:border-ccapAccent/50","shrink-0","disabled:opacity-40",3,"click","disabled"],[1,"flex","flex-wrap","gap-1.5"],["type","button","title","Persist the edited Elements list (identifier tags) on this Quick Input.",1,"px-2","py-1","rounded","border","border-ccapAccent/50","text-ccapAccent","text-xs","font-medium","hover:bg-ccapAccent/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none","w-fit",3,"click","disabled"],[1,"text-neutral-300"],[1,"rounded-lg","border","border-neutral-700/60","bg-neutral-950/40","px-3","py-2"],[1,"flex","flex-col","gap-2","rounded-lg","border","border-neutral-700/80","bg-neutral-950/30","px-3","py-2.5"],["type","button","aria-label","Target project block \xF6sszecsuk\xE1sa / kinyit\xE1sa",1,"flex","items-center","gap-2","text-left","text-xs","font-medium","text-neutral-400","hover:text-ccapAccent","transition-colors",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"w-3","h-3","shrink-0","transition-transform"],["points","6 9 12 15 18 9"],[1,"rounded-lg","border","border-neutral-700/80","bg-neutral-950/30","px-3","py-2.5","flex","flex-col","gap-2"],["type","button","aria-label","Send to session block \xF6sszecsuk\xE1sa / kinyit\xE1sa",1,"flex","items-center","gap-2","text-left","text-xs","font-medium","text-neutral-400","hover:text-ccapAccent","transition-colors",3,"click"],[1,"text-xs","text-amber-400/90","border","border-amber-900/40","rounded","px-2","py-1.5"],[1,"flex","flex-col","gap-1.5"],[1,"flex","flex-col","gap-1","w-full","sm:w-auto","sm:self-start"],["type","button","title","Permanently delete this Quick Input from the list. Requires confirm; disabled after promotion.",1,"px-2","py-1.5","rounded","border","border-neonRed/45","text-neonRed/90","text-xs","font-medium","hover:bg-neonRed/10","transition-colors","text-left","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],[1,"text-xs","text-neutral-500","max-w-md"],[1,"rounded-lg","border","border-neutral-700/80","bg-neutral-950/25","px-3","py-2.5","flex","flex-col","gap-2"],["type","button","aria-label","Project-related promotion block \xF6sszecsuk\xE1sa / kinyit\xE1sa",1,"flex","items-center","gap-2","text-left","text-xs","font-medium","text-neutral-300","hover:text-ccapAccent","transition-colors",3,"click"],[1,"inline-flex","items-center","gap-1","pl-2","pr-1","py-0.5","rounded","border","border-neutral-600","bg-neutral-900/80","text-[11px]","font-mono","text-neutral-300","max-w-full"],[1,"truncate","max-w-[12rem]"],["type","button","title","Remove","aria-label","Remove element",1,"p-0.5","rounded","text-neutral-500","hover:text-red-400","shrink-0",3,"click","disabled"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-3","h-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],[1,"text-[10px]","uppercase","tracking-wide","text-neutral-500"],[1,"text-xs","text-neutral-400","mt-1","whitespace-pre-wrap","break-words"],[1,"w-full","rounded-md","border","border-neutral-600","bg-neutral-900","px-2","py-1.5","text-sm","text-neutral-200","focus:outline-none","focus:border-ccapAccent/50",3,"ngModelChange","ngModel"],[1,"flex","flex-wrap","gap-2"],["type","button","title","Run an LLM classification on the raw content; fills predicted type, clean description, and staging priority.",1,"px-2","py-1","rounded","border","border-neonCyan/45","text-neonCyan/90","text-xs","font-medium","hover:bg-neonCyan/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Copy the LLM prediction (task difficulty, priority, area) into the editable hub fields without persisting yet.",1,"px-2","py-1","rounded","border","border-neutral-600","text-neutral-200","text-xs","font-medium","hover:border-ccapAccent/50","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Persist the selected target project as this Quick Input's home project (required before promotion).",1,"px-2","py-1","rounded","border","border-ccapAccent/50","text-ccapAccent","text-xs","font-medium","hover:bg-ccapAccent/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],[1,"text-xs","text-amber-400/90","border","border-amber-900/30","rounded","px-2","py-1"],["type","button","title","Send the raw content as a prompt to a CA (Cursor ACP) session you pick in the next step.",1,"px-2","py-1","rounded","border","border-neonCyan/45","text-neonCyan/90","text-xs","font-medium","hover:bg-neonCyan/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Send the raw content as a prompt to a CC (Claude Code) session you pick in the next step.",1,"px-2","py-1","rounded","border","border-neonCyan/45","text-neonCyan/90","text-xs","font-medium","hover:bg-neonCyan/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Send the raw content as a user message to a CCAP Session (the internal agent) you pick in the next step.",1,"px-2","py-1","rounded","border","border-neonCyan/45","text-neonCyan/90","text-xs","font-medium","hover:bg-neonCyan/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],[1,"text-xs","text-amber-400/85","border","border-amber-900/35","rounded","px-2","py-1.5"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-1.5"],["type","button","title","Open the multi-step AI-assisted USER-INPUT wizard; guides refinement before promotion.",1,"px-2","py-1.5","rounded","border","border-ccapAccent/50","text-ccapAccent","text-xs","font-medium","hover:bg-ccapAccent/10","transition-colors","text-left","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Directly finalize the promotion (skip the wizard): converts the draft into a USER-INPUT entry on the target project.",1,"px-2","py-1.5","rounded","border","border-neutral-500","text-neutral-200","text-xs","font-medium","hover:border-neonCyan/50","transition-colors","text-left","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Promote this Quick Input directly into a BUG entry on the target project.",1,"px-2","py-1.5","rounded","border","border-neonRed/40","text-neonRed/90","text-xs","font-medium","hover:bg-neonRed/10","transition-colors","text-left","disabled:opacity-40","sm:col-span-2","disabled:pointer-events-none",3,"click","disabled"],[1,"text-xs","text-neutral-400"],["type","text","maxlength","200","placeholder","Leave empty to fall back to QI- + raw content snippet",1,"w-full","rounded","border","border-neutral-600","bg-neutral-900","px-3","py-2","text-sm","text-neutral-100",3,"ngModelChange","ngModel"],["rows","10",1,"w-full","rounded","border","border-neutral-600","bg-neutral-900","px-3","py-2","text-sm","text-neutral-100","font-mono","resize-y","min-h-[160px]",3,"ngModelChange","ngModel"],[1,"flex","flex-col","gap-2","items-end"],[1,"text-xs","text-neutral-500","w-full","text-left"],[1,"flex","flex-wrap","gap-2","justify-end","w-full"],["type","button",1,"px-3","py-1.5","text-xs","rounded","border","border-neutral-600","text-neutral-300","hover:bg-neutral-800",3,"click"],["type","button",1,"px-3","py-1.5","text-xs","rounded","border","border-ccapAccent","text-ccapAccent","hover:bg-ccapAccent/10","disabled:opacity-40",3,"click","disabled"],["type","button",1,"self-start","px-2","py-1","text-xs","text-neutral-400","hover:text-neutral-200","border","border-transparent","hover:border-neutral-700","rounded","mb-2",3,"click"],[3,"projectId","isEmbeddedInModal","quickInputDraftId","initialRawContent","initialStagingPriority","skipSuggestMode"],[1,"text-xs","text-neutral-500","border","border-neutral-700","rounded","px-2","py-2"],[3,"wizardFinalizeSuccess","projectId","isEmbeddedInModal","quickInputDraftId","initialRawContent","initialStagingPriority","skipSuggestMode"],[1,"text-sm","text-neutral-300","mb-2"],[1,"text-xs","text-neutral-500","mb-1"],[1,"text-xs","font-mono","text-neutral-400","break-all","mb-4"],[1,"rounded-md","border","border-neutral-600","bg-neutral-900","max-h-64","overflow-y-auto"],["searchPlaceholder","Keres\xE9s sessionre\u2026",3,"selected","kind","rows","activeId"],["rows","6",1,"w-full","rounded","border","border-neutral-600","bg-neutral-900","px-3","py-2","text-sm","text-neutral-100","font-mono","resize-y","min-h-[100px]",3,"ngModelChange","ngModel"],[1,"font-mono","text-neutral-400"]],template:function(n,i){if(n&1&&(o(0,"app-s-modal",0),m("closed",function(){return i.handleMainModalClosed()}),C(1,Ks,4,1)(2,Xs,2,0,"p",1),r(),o(3,"app-pm-manual-bug-modal",2),m("closed",function(){return i.handleBugModalClosed()})("submitted",function(p){return i.handleBugSubmitted(p)}),r(),o(4,"app-s-modal",3),m("closed",function(){return i.handleQuickInputDeleteConfirmClosed()}),C(5,Zs,6,1),o(6,"div",4)(7,"button",5),m("click",function(){return i.handleConfirmDeleteQuickInput()}),c(8),r(),o(9,"button",6),m("click",function(){return i.handleQuickInputDeleteConfirmClosed()}),c(10," Cancel "),r()()(),o(11,"app-s-modal",7),m("closed",function(){return i.handleGenericConfirmClosed()}),o(12,"p",8),c(13),r(),o(14,"div",9)(15,"button",10),m("click",function(){return i.handleGenericConfirm()}),c(16),r(),o(17,"button",6),m("click",function(){return i.handleGenericConfirmClosed()}),c(18," Cancel "),r()()(),o(19,"app-s-modal",11),m("closed",function(){return i.handleSendToSessionClosed()}),C(20,Js,10,4,"div",12),o(21,"div",13)(22,"button",14),m("click",function(){return i.handleConfirmSendToSession()}),c(23),r(),o(24,"button",6),m("click",function(){return i.handleSendToSessionClosed()}),c(25," Cancel "),r()()(),o(26,"app-s-modal",15),m("closed",function(){return i.handlePostPromotionCleanupClosed()}),o(27,"div",12)(28,"p",16),c(29),r(),o(30,"p",17),c(31," Would you like to delete this Quick Input now, or keep it for reference? "),r(),C(32,el,4,1,"p",18),r(),o(33,"div",9),C(34,tl,2,1,"button",19),o(35,"button",5),m("click",function(){return i.handlePostPromotionDelete()}),c(36),r(),o(37,"button",10),m("click",function(){return i.handlePostPromotionKeep()}),c(38," Keep "),r()()()),n&2){let s,p,x,g;_("isOpen",i.userInput_DS.quickInputActionsModalOpen_$())("title",i.mainModalTitle_$())("zIndex",i.quickInputOverlayModalZIndex_Value),l(),u((s=i.selectedItem_$())?1:2,s),l(2),_("isOpen",i.manualBugModalOpen_$())("isBusy",i.manualBugBusy_$())("modalZIndex",i.quickInputOverlayModalZIndex_Value)("prefillTitle",i.bugPrefillTitle_$())("prefillDetails",i.bugPrefillDetails_$())("prefillPriority",i.wizardStagingPriority_$()),l(),_("isOpen",i.quickInputDeleteConfirmOpen_$())("title","Delete quick input?")("zIndex",i.quickInputOverlayModalZIndex_Value),l(),u((p=i.selectedItem_$())?5:-1,p),l(2),_("disabled",i.deleteQuickInputBusy_$()||i.hubDeleteDisabled_$()),l(),E(" ",i.deleteQuickInputBusy_$()?"Deleting\u2026":"Delete"," "),l(),_("disabled",i.deleteQuickInputBusy_$()),l(2),_("isOpen",i.genericConfirmOpen_$())("title",i.genericConfirmTitle_$())("zIndex",i.quickInputOverlayModalZIndex_Value),l(2),P(i.genericConfirmBody_$()),l(2),_("disabled",i.genericConfirmBusy_$()),l(),E(" ",i.genericConfirmBusy_$()?"Working\u2026":i.genericConfirmButtonLabel_$()," "),l(),_("disabled",i.genericConfirmBusy_$()),l(2),_("isOpen",i.sendToSessionOpen_$())("title",i.sendToSessionModalTitle_$())("zIndex",i.quickInputOverlayModalZIndex_Value),l(),u((x=i.selectedItem_$())?20:-1,x),l(2),_("disabled",i.sendToSessionConfirmDisabled_$()),l(),E(" ",i.sendToSessionBusy_$()?"Sending\u2026":"Send"," "),l(),_("disabled",i.sendToSessionBusy_$()),l(2),_("isOpen",i.postPromotionCleanupOpen_$())("title","Quick Input cleanup")("zIndex",i.quickInputOverlayModalZIndex_Value)("closeOnBackdropClick",!i.postPromotionCleanupBusy_$()),l(3),E(" ",i.postPromotionCleanupEntityLabel_$()," successfully created. "),l(3),u((g=i.selectedItem_$())?32:-1,g),l(2),u(i.postPromotionCleanupRouteCmds_$()?34:-1),l(),_("disabled",i.postPromotionCleanupBusy_$()),l(),E(" ",i.postPromotionCleanupBusy_$()?"Deleting\u2026":"Delete Quick Input"," "),l(),_("disabled",i.postPromotionCleanupBusy_$())}},dependencies:[j,at,te,pt,ut,ce,dt,de,_n,pe,Ae,Mn,$n,An],encapsulation:2})}return t})();var Tt=(()=>{class t{static PICKER_ROOT_ATTR="data-ccap-qi-dom-picker-root";static TOKEN_MAX_LENGTH=120;static isUnderQuickInputChrome(e){return e===null?!0:e.closest("app-ccap-user-input-fab")!==null||e.closest("app-ccap-user-input-panel")!==null||e.closest("app-ccap-quick-input-actions-modal")!==null||e.closest(`[${t.PICKER_ROOT_ATTR}]`)!==null}static resolvePickTargetAtPoint(e){let n=e.doc.elementsFromPoint(e.clientX,e.clientY);for(let i of n){if(!(i instanceof HTMLElement)||t.isUnderQuickInputChrome(i)||!String(i.id??"").trim().length)continue;let p=i.localName.toLowerCase();if(!(p==="html"||p==="body"))return i}return null}static buildElementsListTokenFromElement(e){let n=e.localName.toLowerCase(),i=e.id.trim(),s=`dom:${n}#${i}`,p=e.classList;if(p.length>0){let x=[];for(let T=0;T<p.length&&x.length<2;T++){let w=String(p.item(T)??"").trim();w.length&&x.push(w)}x.length>0&&(s=`${s}.${x.join(".")}`)}return s.length<=t.TOKEN_MAX_LENGTH?s:s.slice(0,t.TOKEN_MAX_LENGTH)}static buildHoverLabelForElement(e){let n=e.id.trim(),i=e.localName.toLowerCase();return`#${n} \xB7 ${i}`}}return t})();function il(t,a){if(t&1&&(o(0,"div",2),c(1),r()),t&2){let e=d(2);_("ngStyle",a),l(),E(" ",e.userInput_DS.quickInputDomPickHoverLabel_$()," ")}}function ol(t,a){if(t&1&&(b(0,"div",1),C(1,il,2,2,"div",2)),t&2){let e,n=d();_("ngStyle",a),l(),u((e=n.domPickLabelStyle_$())?1:-1,e)}}var Et=(()=>{class t{userInput_DS=y(G);destroyRef=y(Ht);domPickZIndexValue=li;pendingClientX=0;pendingClientY=0;isRafScheduled=!1;lastHoverTarget=null;domPickHighlightBoxStyle_$=v(()=>{let e=this.userInput_DS.quickInputDomPickHoverRect_$();return e===null?null:{top:`${e.topPx}px`,left:`${e.leftPx}px`,width:`${e.widthPx}px`,height:`${e.heightPx}px`}});domPickLabelStyle_$=v(()=>{let e=this.userInput_DS.quickInputDomPickHoverRect_$();return e===null?null:{top:`${Math.max(0,e.topPx-22-4)}px`,left:`${e.leftPx}px`,maxWidth:"min(24rem, calc(100vw - 1rem))"}});constructor(){if(typeof window>"u")return;let e=s=>{this.pendingClientX=s.clientX,this.pendingClientY=s.clientY,!this.isRafScheduled&&(this.isRafScheduled=!0,window.requestAnimationFrame(()=>{this.isRafScheduled=!1,this.applyHoverAtPoint(this.pendingClientX,this.pendingClientY)}))},n=s=>{if(!this.userInput_DS.quickInputDomPickActive_$()||!this.userInput_DS.isPanelOpen_$()||!this.userInput_DS.selectedProjectIsCcapRevisionedHost_$()||this.lastHoverTarget===null)return;s.preventDefault(),s.stopImmediatePropagation();let p=Tt.buildElementsListTokenFromElement(this.lastHoverTarget);this.userInput_DS.appendQuickInputComposerElement(p),this.userInput_DS.requestComposerDraftPersistBump()},i=s=>{s.key==="Escape"&&this.userInput_DS.quickInputDomPickActive_$()&&this.userInput_DS.setQuickInputDomPickActive(!1)};window.addEventListener("mousemove",e,{passive:!0}),window.addEventListener("click",n,!0),window.addEventListener("keydown",i),this.destroyRef.onDestroy(()=>{window.removeEventListener("mousemove",e),window.removeEventListener("click",n,!0),window.removeEventListener("keydown",i)})}applyHoverAtPoint(e,n){if(!this.userInput_DS.quickInputDomPickActive_$()||!this.userInput_DS.isPanelOpen_$()||!this.userInput_DS.selectedProjectIsCcapRevisionedHost_$()){this.lastHoverTarget=null,this.userInput_DS.setQuickInputDomPickHoverPreview({rect:null,label:""});return}let i=Tt.resolvePickTargetAtPoint({clientX:e,clientY:n,doc:document});if(this.lastHoverTarget=i,i===null){this.userInput_DS.setQuickInputDomPickHoverPreview({rect:null,label:""});return}let s=i.getBoundingClientRect();this.userInput_DS.setQuickInputDomPickHoverPreview({rect:{topPx:s.top,leftPx:s.left,widthPx:s.width,heightPx:s.height},label:Tt.buildHoverLabelForElement(i)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-quick-input-dom-picker-overlay"]],standalone:!0,features:[U],decls:2,vars:4,consts:[[1,"pointer-events-none","fixed","inset-0","w-screen","h-screen"],[1,"pointer-events-none","fixed","rounded","border-2","border-neonCyan","shadow-[0_0_0_1px_rgba(34,211,238,0.35)]","bg-neonCyan/5",3,"ngStyle"],[1,"pointer-events-none","fixed","z-[1]","px-1.5","py-0.5","rounded","border","border-neonCyan/80","bg-neutral-950/95","text-[11px]","font-mono","text-neonCyan","shadow-md","truncate",3,"ngStyle"]],template:function(n,i){if(n&1&&(o(0,"div",0),C(1,ol,2,2),r()),n&2){let s;et("z-index",i.domPickZIndexValue),q("data-ccap-qi-dom-picker-root",""),l(),u((s=i.userInput_DS.quickInputDomPickActive_$()&&i.domPickHighlightBoxStyle_$())?1:-1,s)}},dependencies:[j,Ie],encapsulation:2})}return t})();function al(t,a){t&1&&b(0,"app-ccap-user-input-panel")}var ci=(()=>{class t{title="ccap-revisioned";userInput_DS=y(G);presenceSubscriber_CS=y(Un);constructor(){this.presenceSubscriber_CS.initialize()}quickInputAppHostStyle_$=v(()=>{let e=this.userInput_DS.quickInputMainBoundsPx_$();return{top:`${e.topPx}px`,left:`${e.leftPx}px`,width:`${e.widthPx}px`,height:`${e.heightPx}px`}});static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-root"]],decls:8,vars:2,consts:[[1,"fixed","pointer-events-none","z-[10050]",3,"ngStyle"],[1,"relative","w-full","h-full","pointer-events-none"]],template:function(n,i){n&1&&(b(0,"app-ccap-main-frame")(1,"app-ccap-server-unavailable-overlay"),o(2,"div",0)(3,"div",1),b(4,"app-ccap-quick-input-dom-picker-overlay")(5,"app-ccap-user-input-fab"),C(6,al,1,0,"app-ccap-user-input-panel"),b(7,"app-ccap-quick-input-actions-modal"),r()()),n&2&&(l(2),_("ngStyle",i.quickInputAppHostStyle_$()),l(4),u(i.userInput_DS.isPanelOpen_$()?6:-1))},dependencies:[Ie,gt,St,ii,yt,It,Et],encapsulation:2})}return t})();var sl=[{path:"",loadChildren:()=>import("./dashboard.module-YAB6AARF.js").then(t=>t.Dashboard_Module)},{path:"setup",loadChildren:()=>import("./setup.module-M5RVUX4A.js").then(t=>t.Setup_Module)},{path:"settings",loadChildren:()=>import("./set.module-XQ6TPATG.js").then(t=>t.Settings_Module)},{path:"model-registry",loadChildren:()=>import("./model-registry.module-L56ALPDT.js").then(t=>t.ModelRegistry_Module)},{path:"cost-tracking",loadChildren:()=>import("./ct.module-Y4TCJ6NH.js").then(t=>t.CostTracking_Module)},{path:"costs",loadChildren:()=>import("./ct-costs.module-A7FMQDTT.js").then(t=>t.Costs_Module)},{path:"embedding-registry",loadChildren:()=>import("./embedding-registry.module-Q7H4MSJI.js").then(t=>t.EmbeddingRegistry_Module)},{path:"embedding-model-registry",redirectTo:"embedding-registry",pathMatch:"prefix"},{path:"document-library",loadChildren:()=>import("./document-library.module-DDFSHADI.js").then(t=>t.DocumentLibrary_Module)},{path:"project-source",loadChildren:()=>import("./project-source-routed.module-I4WHFL6T.js").then(t=>t.ProjectSource_RoutedModule)},{path:"embedding-eval",loadChildren:()=>import("./embedding-eval.module-FJTNYACK.js").then(t=>t.EmbeddingEval_Module)},{path:"session",loadChildren:()=>import("./session.module-CZCDYPUM.js").then(t=>t.Session_Module)},{path:"errors",loadChildren:()=>import("./err.module-TEYGZOAQ.js").then(t=>t.Errors_Module)},{path:"feedback",loadChildren:()=>import("./feedback.module-46D4VD2U.js").then(t=>t.Feedback_Module)},{path:"logs",loadChildren:()=>import("./logs.module-CFTLPVNZ.js").then(t=>t.Logs_Module)},{path:"host-runtime-mcp",loadChildren:()=>import("./host-runtime-mcp.module-MOMBWPOG.js").then(t=>t.HostRuntimeMcp_Module)},{path:"voice-notes-poc",loadChildren:()=>import("./voice-notes-poc.module-UXJM32VE.js").then(t=>t.VoiceNotesPoc_Module)},{path:"master-control-remote-poc",loadChildren:()=>import("./master-control-remote-poc.module-4NVA4X32.js").then(t=>t.MasterControlRemotePoc_Module)},{path:"workflow-settings",loadChildren:()=>import("./wfs.module-UIBLZ4KZ.js").then(t=>t.WorkflowSettings_Module)},{path:"coordinator",loadChildren:()=>import("./crd.module-UY2I7Q6C.js").then(t=>t.Coordinator_Module)},{path:"scheduler",loadChildren:()=>import("./scheduler.module-V7JUED6T.js").then(t=>t.Scheduler_Module)},{path:"orchestrator",loadChildren:()=>import("./orc.module-L6G3GB6S.js").then(t=>t.Orchestrator_Module)},{path:"dark-office",loadChildren:()=>import("./do.module-BQ4IIBCS.js").then(t=>t.DarkOffice_Module)},{path:"project-management",loadChildren:()=>import("./project-management.module-U75UPDGP.js").then(t=>t.ProjectManagement_Module)},{path:"cc-session",loadChildren:()=>import("./cc.module-MNX3GMAU.js").then(t=>t.CcSession_Module)},{path:"cc-usage",loadComponent:()=>import("./cc-usage-dashboard.component-MUE3JFHY.js").then(t=>t.CC_UsageDashboard_Component)},{path:"mobile-app",loadChildren:()=>import("./mobile-app.module-46TKS6V5.js").then(t=>t.MobileApp_Module)},{path:"oc-session",loadChildren:()=>import("./oc.module-OTDAUU73.js").then(t=>t.OcSession_Module)},{path:"ca-session",loadChildren:()=>import("./ca.module-6RTUEF6F.js").then(t=>t.CaSession_Module)},{path:"consultant",loadChildren:()=>import("./consultant.module-DMGMZCMM.js").then(t=>t.Consultant_Module)},{path:"agent-instances",loadChildren:()=>import("./agent-instances.module-7JIOUWBV.js").then(t=>t.AgentInstances_Module)},{path:"terminals",loadChildren:()=>import("./terminals.module-LPJ4TLM7.js").then(t=>t.Terminals_Module)},{path:"live-development-pipeline",loadChildren:()=>import("./live-dev-pipeline.module-3ZZC7EDM.js").then(t=>t.LiveDevPipeline_Module)},{path:"system-status",redirectTo:"live-development-pipeline",pathMatch:"full"},{path:"**",redirectTo:""}],di=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ke({type:t});static \u0275inj=Ye({imports:[Ce.forRoot(sl,{preloadingStrategy:cn}),Ce]})}return t})();var xe=Ue(Ne());function ll(t){return t.includes("/errors")}var pi=(t,a)=>{let e=y(ne),n=y(xn);return a(t).pipe(zt(i=>{if(i instanceof Zt){let s=ll(t.url);if(e.isErrorHandlingInProgress())xe.DyFM_Error.logSimple("[CCAP HTTP error] re-entrant, only log",i);else if(s)xe.DyFM_Error.logSimple("[CCAP HTTP error] errors API failure, only log",i);else if(i.status===0)xe.DyFM_Error.logSimple("[CCAP HTTP error] status 0 (no response), only log",i);else{e.beginErrorHandling();try{let x=e.buildReportPayloadFromError(i,"client-http");e.showError(i),n.reportError(x).catch(()=>{}),xe.DyFM_Error.logSimple("[CCAP HTTP error] "+x.message,i)}catch(x){xe.DyFM_Log.error("CCAP error interceptor failed",x)}finally{e.endErrorHandling()}}}return Qt(()=>i)}))};var Lt=Ue(Ne());var ui=(()=>{class t extends Ze{globalError_CS=y(ne);constructor(){super()}handleError(e){try{if(this.globalError_CS.isErrorHandlingInProgress()){Lt.DyFM_Log.error("CCAP GlobalError_Handler re-entrant, only log",e),super.handleError(e);return}this.globalError_CS.beginErrorHandling();try{this.globalError_CS.showError(e,"client-global")}finally{this.globalError_CS.endErrorHandling()}}catch(n){Lt.DyFM_Log.error("CCAP GlobalError_Handler failed",n)}super.handleError(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _i=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ke({type:t,bootstrap:[ci]});static \u0275inj=Ye({providers:[en(tn([pi])),{provide:Ze,useClass:ui}],imports:[on,te,Ce,di,ie,gt,St,yt,It,Et]})}return t})();function cl(){return typeof window.Capacitor<"u"&&window.Capacitor.isNativePlatform?.()===!0}var dl=new URL(window.location.href);if(cl()){let t=localStorage.getItem("ccap-server-url");B.baseUrl=t??"http://localhost:39050"}else B.baseUrl=dl.origin;B.api.baseUrl=B.baseUrl+"/api";var Vt=3,pl=800;function ul(t){return fetch(t).then(a=>a.json())}function _l(){nn().bootstrapModule(_i).then(()=>{mi()}).catch(t=>{wt.DyFM_Log.H_error(`CCAP Revisioned client init error
|
|
5
|
+
`)[0]?.trim()??"",s=i.length>0?i:"Quick input";this.bugPrefillTitle_$.set(s),this.bugPrefillDetails_$.set(n),this.manualBugModalOpen_$.set(!0)}handleBugModalClosed(){this.manualBugModalOpen_$.set(!1)}handleBugSubmitted(e){return A(this,null,function*(){let n=this.selectedItem_$(),i=this.targetProjectId_$().trim(),s=String(n?.projectId??"").trim();if(!(!n||!i.length||!s.length)){this.manualBugBusy_$.set(!0);try{let p=yield this.pm_DS.createManualBugAndRefresh(i,e);if((yield this.userInput_DS.patchQuickInput({pathProjectId:s,quickInputId:n.quickInputId,body:{status:fe.promotedBug,promotedBugCode:p.createdCode,promotedUserRequestId:p.userRequestId}}))===null){this.globalError_CS.showError(new Error("Quick input promotion PATCH failed after manual bug create"),"ccap-quick-input-promote-bug");return}this.manualBugModalOpen_$.set(!1),this.postPromotionCleanupEntityLabel_$.set("Bug "+String(p.createdCode??"")),this.postPromotionCleanupOpen_$.set(!0)}catch(p){this.globalError_CS.showError(p,"ccap-quick-input-manual-bug")}finally{this.manualBugBusy_$.set(!1)}}})}handleOpenQuickInputDeleteConfirm(){this.hubDeleteDisabled_$()||this.quickInputDeleteConfirmOpen_$.set(!0)}handleQuickInputDeleteConfirmClosed(){this.quickInputDeleteConfirmOpen_$.set(!1)}handleConfirmDeleteQuickInput(){return A(this,null,function*(){let e=this.selectedItem_$(),n=String(e?.projectId??"").trim();if(!(!e||!n.length)){this.deleteQuickInputBusy_$.set(!0);try{if(!(yield this.userInput_DS.deleteQuickInput({pathProjectId:n,quickInputId:e.quickInputId}))){this.globalError_CS.showError(new Error("Quick input DELETE failed"),"ccap-quick-input-delete");return}this.quickInputDeleteConfirmOpen_$.set(!1),this.userInput_DS.closeQuickInputActionsModal()}finally{this.deleteQuickInputBusy_$.set(!1)}}})}openGenericConfirm(e,n,i,s){this.genericConfirmTitle_$.set(e),this.genericConfirmBody_$.set(n),this.genericConfirmButtonLabel_$.set(i),this.pendingGenericConfirmAction_=s,this.genericConfirmOpen_$.set(!0)}handleGenericConfirm(){return A(this,null,function*(){if(this.pendingGenericConfirmAction_){this.genericConfirmBusy_$.set(!0);try{yield this.pendingGenericConfirmAction_()}catch(e){this.globalError_CS.showError(e,"ccap-quick-input-generic-confirm")}finally{this.genericConfirmBusy_$.set(!1),this.genericConfirmOpen_$.set(!1),this.pendingGenericConfirmAction_=null}}})}handleGenericConfirmClosed(){this.genericConfirmOpen_$.set(!1),this.pendingGenericConfirmAction_=null}handlePostPromotionDelete(){return A(this,null,function*(){let e=this.selectedItem_$(),n=String(e?.projectId??"").trim();if(!e||!n.length){this.postPromotionCleanupOpen_$.set(!1),this.userInput_DS.closeQuickInputActionsModal();return}this.postPromotionCleanupBusy_$.set(!0);try{(yield this.userInput_DS.deleteQuickInput({pathProjectId:n,quickInputId:e.quickInputId}))||this.globalError_CS.showError(new Error("Quick input DELETE failed during post-promotion cleanup"),"ccap-quick-input-post-promotion-delete")}finally{this.postPromotionCleanupBusy_$.set(!1),this.postPromotionCleanupOpen_$.set(!1),this.postPromotionCleanupRouteCmds_$.set(null),this.userInput_DS.closeQuickInputActionsModal()}})}handlePostPromotionKeep(){this.postPromotionCleanupOpen_$.set(!1),this.postPromotionCleanupRouteCmds_$.set(null),this.userInput_DS.closeQuickInputActionsModal()}handlePostPromotionGoToSession(){let e=this.postPromotionCleanupRouteCmds_$();this.postPromotionCleanupOpen_$.set(!1),this.postPromotionCleanupRouteCmds_$.set(null),this.userInput_DS.closeQuickInputActionsModal(),e&&this.router.navigate(e)}handlePostPromotionCleanupClosed(){this.postPromotionCleanupBusy_$()||this.handlePostPromotionKeep()}handleOpenSendToSession(e){return A(this,null,function*(){if(this.hubSendToSessionDisabled_$())return;let n=this.selectedItem_$();this.sendToSessionType_$.set(e),this.sendToSessionSelectedId_$.set(this.SEND_NEW_SESSION_VALUE),this.sendToSessionContent_$.set(n?.rawContent??""),this.sendToSessionBusy_$.set(!1),this.sendToSessionFeedback_$.set(""),this.sendToSessionOpen_$.set(!0);try{e===Q.caSession?yield Promise.all([this.caSession_DS.loadSessions(),this.newAgentSessionWorkspace_DS.refreshWorkspacePathPickerOptions()]):e===Q.ccSession?yield Promise.all([this.ccSession_DS.loadSessions(),this.newAgentSessionWorkspace_DS.refreshWorkspacePathPickerOptions()]):yield this.session_DS.loadSessions()}catch(i){this.globalError_CS.showError(i,"ccap-quick-input-send-to-session-load")}})}handleSendToSessionClosed(){this.sendToSessionOpen_$.set(!1),this.sendToSessionSelectedId_$.set(this.SEND_NEW_SESSION_VALUE),this.sendToSessionContent_$.set(""),this.sendToSessionFeedbackClearHandle!==void 0&&(clearTimeout(this.sendToSessionFeedbackClearHandle),this.sendToSessionFeedbackClearHandle=void 0)}handleConfirmSendToSession(){return A(this,null,function*(){let e=this.sendToSessionContent_$().trim();if(!e.length)return;let n=this.sendToSessionSelectedId_$().trim();if(n.length){this.sendToSessionBusy_$.set(!0);try{let i=this.sendToSessionType_$(),s=n===this.SEND_NEW_SESSION_VALUE,p=s?"":n;if(s){let x=this.selectedItem_$(),g=kt.buildDisplayNameFromQuickInput({rawContent:e,title:x?.title});p=yield this.createNewSessionForSend(i,{displayName:g})}if(!p.length){this.globalError_CS.showError(new Error("Failed to resolve session id for send"),"ccap-quick-input-send-to-session-resolve");return}if(i===Q.caSession?yield this.caSession_DS.sendPrompt({sessionId:p,content:e}):i===Q.ccSession?yield this.ccSession_DS.sendPrompt({sessionId:p,content:e}):yield this.session_DS.sendMessageToSession({sessionId:p,content:e}),this.sendToSessionFeedback_$.set("Sent."),this.sendToSessionFeedbackClearHandle!==void 0&&clearTimeout(this.sendToSessionFeedbackClearHandle),this.sendToSessionFeedbackClearHandle=window.setTimeout(()=>{this.sendToSessionFeedback_$.set(""),this.sendToSessionFeedbackClearHandle=void 0},3*Ft.second),this.sendToSessionOpen_$.set(!1),s){let x=i===Q.caSession?"CA Session":i===Q.ccSession?"CC Session":"Session";this.postPromotionCleanupEntityLabel_$.set(x+" "+p);let g=i===Q.caSession?"/ca-session":i===Q.ccSession?"/cc-session":"/session";this.postPromotionCleanupRouteCmds_$.set([g,p]),this.postPromotionCleanupOpen_$.set(!0)}}catch(i){this.globalError_CS.showError(i,"ccap-quick-input-send-to-session")}finally{this.sendToSessionBusy_$.set(!1)}}})}createNewSessionForSend(e,n){return A(this,null,function*(){if(e===Q.caSession){let s=this.resolveDefaultWorkspacePath();return yield this.caSession_DS.createSession({workspacePath:s,label:n.displayName})}if(e===Q.ccSession){let s=this.resolveDefaultWorkspacePath();return yield this.ccSession_DS.createSession({workspacePath:s,label:n.displayName})}let i=yield this.session_DS.createSession({name:n.displayName});return String(i._id??"")})}resolveDefaultWorkspacePath(){let e=this.newAgentSessionWorkspace_DS.workspacePathPickerOptions_$();return e.length>0?e[0].path:""}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-quick-input-actions-modal"]],standalone:!0,features:[U],decls:39,vars:41,consts:[["maxWidth","5xl","headerBorderClass","border-ccapAccent/30",3,"closed","isOpen","title","zIndex"],[1,"text-sm","text-neutral-500"],[3,"closed","submitted","isOpen","isBusy","modalZIndex","prefillTitle","prefillDetails","prefillPriority"],["maxWidth","lg","headerBorderClass","border-neonRed/40",3,"closed","isOpen","title","zIndex"],["modal-footer","",1,"flex","flex-wrap","gap-3","px-4","py-3","border-t","border-neonRed/30"],["type","button",1,"px-4","py-2","rounded","bg-neonRed/90","text-neutral-950","text-sm","font-medium","hover:bg-neonRed","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button",1,"px-4","py-2","rounded","border","border-neutral-600","text-neutral-200","text-sm","hover:bg-neutral-800","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["maxWidth","lg","headerBorderClass","border-ccapAccent/30",3,"closed","isOpen","title","zIndex"],[1,"text-sm","text-neutral-300","mb-4"],["modal-footer","",1,"flex","flex-wrap","gap-3","px-4","py-3","border-t","border-neutral-700/60"],["type","button",1,"px-4","py-2","rounded","border","border-ccapAccent","text-ccapAccent","text-sm","font-medium","hover:bg-ccapAccent/10","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["maxWidth","lg","headerBorderClass","border-neonCyan/30",3,"closed","isOpen","title","zIndex"],[1,"flex","flex-col","gap-3"],["modal-footer","",1,"flex","flex-wrap","gap-3","px-4","py-3","border-t","border-neonCyan/30"],["type","button",1,"px-4","py-2","rounded","border","border-neonCyan/70","text-neonCyan","text-sm","font-medium","hover:bg-neonCyan/10","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["maxWidth","lg","headerBorderClass","border-neonCyan/30",3,"closed","isOpen","title","zIndex","closeOnBackdropClick"],[1,"text-sm","text-neonCyan/90","font-medium"],[1,"text-sm","text-neutral-300"],[1,"text-xs","text-neutral-500"],["type","button",1,"px-4","py-2","rounded","border","border-neonCyan/70","text-neonCyan","text-sm","font-medium","hover:bg-neonCyan/10","disabled:opacity-40","disabled:pointer-events-none",3,"disabled"],[1,"flex","flex-col","gap-4","text-sm","text-neutral-200"],[1,"flex","flex-col","gap-2"],[1,"flex","flex-col","gap-1"],[1,"flex","items-center","justify-between","gap-2","min-h-8"],[1,"text-xs","font-medium","text-neutral-400"],[1,"flex","items-center","gap-2","shrink-0"],[1,"text-xs","text-neonCyan/90"],["type","button","title","Copy raw content to clipboard","aria-label","Copy Quick Input raw content to clipboard",1,"p-1.5","rounded-md","border","border-neutral-600","text-neutral-300","hover:border-ccapAccent/50","hover:text-ccapAccent","hover:bg-neutral-800/80","transition-colors","duration-150","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"],["type","button","title","Edit raw content","aria-label","Edit Quick Input raw content",1,"p-1.5","rounded-md","border","border-neutral-600","text-neutral-300","hover:border-ccapAccent/50","hover:text-ccapAccent","hover:bg-neutral-800/80","transition-colors","duration-150",3,"click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"],[1,"rounded-lg","border","border-ccapAccent/30","bg-neutral-950/70","px-3","py-2.5","max-h-[min(40dvh,18rem)]","overflow-y-auto"],[1,"text-sm","text-neutral-100","whitespace-pre-wrap","break-words"],[1,"grid","grid-cols-[minmax(6rem,auto)_1fr]","gap-x-3","gap-y-2","text-xs","border","border-neutral-700/80","rounded-lg","bg-neutral-950/50","px-3","py-2.5"],[1,"text-neutral-500","shrink-0"],[1,"font-mono","text-neutral-300","break-all"],[1,"text-[10px]","uppercase","tracking-wide","px-1.5","py-0.5","rounded","border","border-neutral-600","text-neutral-400"],[1,"w-full","max-w-[14rem]","rounded-md","border","border-neutral-600","bg-neutral-900","px-2","py-1","text-xs","text-neutral-200","focus:outline-none","focus:border-ccapAccent/50",3,"ngModelChange","ngModel","disabled"],["value",""],[3,"value"],[1,"text-neutral-500","shrink-0","self-start","pt-1.5"],[1,"flex","flex-col","gap-1.5","min-w-0"],["type","text","placeholder","e.g. frontend/session",1,"w-full","max-w-md","rounded-md","border","border-neutral-600","bg-neutral-900","px-2","py-1","text-xs","text-neutral-200","font-mono","placeholder:text-neutral-600","focus:outline-none","focus:border-ccapAccent/50",3,"ngModelChange","ngModel","disabled"],[1,"flex","flex-wrap","items-center","gap-2"],["type","button","title","Persist the edited Area tag (triage grouping) on this Quick Input.",1,"px-2","py-1","rounded","border","border-ccapAccent/50","text-ccapAccent","text-xs","font-medium","hover:bg-ccapAccent/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],[1,"flex","flex-wrap","gap-2","items-center"],["type","text","placeholder","Add identifier",1,"flex-1","min-w-[10rem]","max-w-md","rounded-md","border","border-neutral-600","bg-neutral-900","px-2","py-1","text-xs","text-neutral-200","font-mono","placeholder:text-neutral-600","focus:outline-none","focus:border-ccapAccent/50",3,"ngModelChange","keydown.enter","ngModel","disabled"],["type","button","title","Append the typed identifier to the Elements draft list (Save elements to persist).",1,"px-2","py-1","rounded","border","border-neutral-600","text-xs","text-neutral-200","hover:border-ccapAccent/50","shrink-0","disabled:opacity-40",3,"click","disabled"],[1,"flex","flex-wrap","gap-1.5"],["type","button","title","Persist the edited Elements list (identifier tags) on this Quick Input.",1,"px-2","py-1","rounded","border","border-ccapAccent/50","text-ccapAccent","text-xs","font-medium","hover:bg-ccapAccent/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none","w-fit",3,"click","disabled"],[1,"text-neutral-300"],[1,"rounded-lg","border","border-neutral-700/60","bg-neutral-950/40","px-3","py-2"],[1,"flex","flex-col","gap-2","rounded-lg","border","border-neutral-700/80","bg-neutral-950/30","px-3","py-2.5"],["type","button","aria-label","Target project block \xF6sszecsuk\xE1sa / kinyit\xE1sa",1,"flex","items-center","gap-2","text-left","text-xs","font-medium","text-neutral-400","hover:text-ccapAccent","transition-colors",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"w-3","h-3","shrink-0","transition-transform"],["points","6 9 12 15 18 9"],[1,"rounded-lg","border","border-neutral-700/80","bg-neutral-950/30","px-3","py-2.5","flex","flex-col","gap-2"],["type","button","aria-label","Send to session block \xF6sszecsuk\xE1sa / kinyit\xE1sa",1,"flex","items-center","gap-2","text-left","text-xs","font-medium","text-neutral-400","hover:text-ccapAccent","transition-colors",3,"click"],[1,"text-xs","text-amber-400/90","border","border-amber-900/40","rounded","px-2","py-1.5"],[1,"flex","flex-col","gap-1.5"],[1,"flex","flex-col","gap-1","w-full","sm:w-auto","sm:self-start"],["type","button","title","Permanently delete this Quick Input from the list. Requires confirm; disabled after promotion.",1,"px-2","py-1.5","rounded","border","border-neonRed/45","text-neonRed/90","text-xs","font-medium","hover:bg-neonRed/10","transition-colors","text-left","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],[1,"text-xs","text-neutral-500","max-w-md"],[1,"rounded-lg","border","border-neutral-700/80","bg-neutral-950/25","px-3","py-2.5","flex","flex-col","gap-2"],["type","button","aria-label","Project-related promotion block \xF6sszecsuk\xE1sa / kinyit\xE1sa",1,"flex","items-center","gap-2","text-left","text-xs","font-medium","text-neutral-300","hover:text-ccapAccent","transition-colors",3,"click"],[1,"inline-flex","items-center","gap-1","pl-2","pr-1","py-0.5","rounded","border","border-neutral-600","bg-neutral-900/80","text-[11px]","font-mono","text-neutral-300","max-w-full"],[1,"truncate","max-w-[12rem]"],["type","button","title","Remove","aria-label","Remove element",1,"p-0.5","rounded","text-neutral-500","hover:text-red-400","shrink-0",3,"click","disabled"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-3","h-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],[1,"text-[10px]","uppercase","tracking-wide","text-neutral-500"],[1,"text-xs","text-neutral-400","mt-1","whitespace-pre-wrap","break-words"],[1,"w-full","rounded-md","border","border-neutral-600","bg-neutral-900","px-2","py-1.5","text-sm","text-neutral-200","focus:outline-none","focus:border-ccapAccent/50",3,"ngModelChange","ngModel"],[1,"flex","flex-wrap","gap-2"],["type","button","title","Run an LLM classification on the raw content; fills predicted type, clean description, and staging priority.",1,"px-2","py-1","rounded","border","border-neonCyan/45","text-neonCyan/90","text-xs","font-medium","hover:bg-neonCyan/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Copy the LLM prediction (task difficulty, priority, area) into the editable hub fields without persisting yet.",1,"px-2","py-1","rounded","border","border-neutral-600","text-neutral-200","text-xs","font-medium","hover:border-ccapAccent/50","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Persist the selected target project as this Quick Input's home project (required before promotion).",1,"px-2","py-1","rounded","border","border-ccapAccent/50","text-ccapAccent","text-xs","font-medium","hover:bg-ccapAccent/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],[1,"text-xs","text-amber-400/90","border","border-amber-900/30","rounded","px-2","py-1"],["type","button","title","Send the raw content as a prompt to a CA (Cursor ACP) session you pick in the next step.",1,"px-2","py-1","rounded","border","border-neonCyan/45","text-neonCyan/90","text-xs","font-medium","hover:bg-neonCyan/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Send the raw content as a prompt to a CC (Claude Code) session you pick in the next step.",1,"px-2","py-1","rounded","border","border-neonCyan/45","text-neonCyan/90","text-xs","font-medium","hover:bg-neonCyan/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Send the raw content as a user message to a CCAP Session (the internal agent) you pick in the next step.",1,"px-2","py-1","rounded","border","border-neonCyan/45","text-neonCyan/90","text-xs","font-medium","hover:bg-neonCyan/10","transition-colors","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],[1,"text-xs","text-amber-400/85","border","border-amber-900/35","rounded","px-2","py-1.5"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-1.5"],["type","button","title","Open the multi-step AI-assisted USER-INPUT wizard; guides refinement before promotion.",1,"px-2","py-1.5","rounded","border","border-ccapAccent/50","text-ccapAccent","text-xs","font-medium","hover:bg-ccapAccent/10","transition-colors","text-left","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Directly finalize the promotion (skip the wizard): converts the draft into a USER-INPUT entry on the target project.",1,"px-2","py-1.5","rounded","border","border-neutral-500","text-neutral-200","text-xs","font-medium","hover:border-neonCyan/50","transition-colors","text-left","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button","title","Promote this Quick Input directly into a BUG entry on the target project.",1,"px-2","py-1.5","rounded","border","border-neonRed/40","text-neonRed/90","text-xs","font-medium","hover:bg-neonRed/10","transition-colors","text-left","disabled:opacity-40","sm:col-span-2","disabled:pointer-events-none",3,"click","disabled"],[1,"text-xs","text-neutral-400"],["type","text","maxlength","200","placeholder","Leave empty to fall back to QI- + raw content snippet",1,"w-full","rounded","border","border-neutral-600","bg-neutral-900","px-3","py-2","text-sm","text-neutral-100",3,"ngModelChange","ngModel"],["rows","10",1,"w-full","rounded","border","border-neutral-600","bg-neutral-900","px-3","py-2","text-sm","text-neutral-100","font-mono","resize-y","min-h-[160px]",3,"ngModelChange","ngModel"],[1,"flex","flex-col","gap-2","items-end"],[1,"text-xs","text-neutral-500","w-full","text-left"],[1,"flex","flex-wrap","gap-2","justify-end","w-full"],["type","button",1,"px-3","py-1.5","text-xs","rounded","border","border-neutral-600","text-neutral-300","hover:bg-neutral-800",3,"click"],["type","button",1,"px-3","py-1.5","text-xs","rounded","border","border-ccapAccent","text-ccapAccent","hover:bg-ccapAccent/10","disabled:opacity-40",3,"click","disabled"],["type","button",1,"self-start","px-2","py-1","text-xs","text-neutral-400","hover:text-neutral-200","border","border-transparent","hover:border-neutral-700","rounded","mb-2",3,"click"],[3,"projectId","isEmbeddedInModal","quickInputDraftId","initialRawContent","initialStagingPriority","skipSuggestMode"],[1,"text-xs","text-neutral-500","border","border-neutral-700","rounded","px-2","py-2"],[3,"wizardFinalizeSuccess","projectId","isEmbeddedInModal","quickInputDraftId","initialRawContent","initialStagingPriority","skipSuggestMode"],[1,"text-sm","text-neutral-300","mb-2"],[1,"text-xs","text-neutral-500","mb-1"],[1,"text-xs","font-mono","text-neutral-400","break-all","mb-4"],[1,"rounded-md","border","border-neutral-600","bg-neutral-900","max-h-64","overflow-y-auto"],["searchPlaceholder","Keres\xE9s sessionre\u2026",3,"selected","kind","rows","activeId"],["rows","6",1,"w-full","rounded","border","border-neutral-600","bg-neutral-900","px-3","py-2","text-sm","text-neutral-100","font-mono","resize-y","min-h-[100px]",3,"ngModelChange","ngModel"],[1,"font-mono","text-neutral-400"]],template:function(n,i){if(n&1&&(o(0,"app-s-modal",0),m("closed",function(){return i.handleMainModalClosed()}),C(1,Ks,4,1)(2,Xs,2,0,"p",1),r(),o(3,"app-pm-manual-bug-modal",2),m("closed",function(){return i.handleBugModalClosed()})("submitted",function(p){return i.handleBugSubmitted(p)}),r(),o(4,"app-s-modal",3),m("closed",function(){return i.handleQuickInputDeleteConfirmClosed()}),C(5,Zs,6,1),o(6,"div",4)(7,"button",5),m("click",function(){return i.handleConfirmDeleteQuickInput()}),c(8),r(),o(9,"button",6),m("click",function(){return i.handleQuickInputDeleteConfirmClosed()}),c(10," Cancel "),r()()(),o(11,"app-s-modal",7),m("closed",function(){return i.handleGenericConfirmClosed()}),o(12,"p",8),c(13),r(),o(14,"div",9)(15,"button",10),m("click",function(){return i.handleGenericConfirm()}),c(16),r(),o(17,"button",6),m("click",function(){return i.handleGenericConfirmClosed()}),c(18," Cancel "),r()()(),o(19,"app-s-modal",11),m("closed",function(){return i.handleSendToSessionClosed()}),C(20,Js,10,4,"div",12),o(21,"div",13)(22,"button",14),m("click",function(){return i.handleConfirmSendToSession()}),c(23),r(),o(24,"button",6),m("click",function(){return i.handleSendToSessionClosed()}),c(25," Cancel "),r()()(),o(26,"app-s-modal",15),m("closed",function(){return i.handlePostPromotionCleanupClosed()}),o(27,"div",12)(28,"p",16),c(29),r(),o(30,"p",17),c(31," Would you like to delete this Quick Input now, or keep it for reference? "),r(),C(32,el,4,1,"p",18),r(),o(33,"div",9),C(34,tl,2,1,"button",19),o(35,"button",5),m("click",function(){return i.handlePostPromotionDelete()}),c(36),r(),o(37,"button",10),m("click",function(){return i.handlePostPromotionKeep()}),c(38," Keep "),r()()()),n&2){let s,p,x,g;_("isOpen",i.userInput_DS.quickInputActionsModalOpen_$())("title",i.mainModalTitle_$())("zIndex",i.quickInputOverlayModalZIndex_Value),l(),u((s=i.selectedItem_$())?1:2,s),l(2),_("isOpen",i.manualBugModalOpen_$())("isBusy",i.manualBugBusy_$())("modalZIndex",i.quickInputOverlayModalZIndex_Value)("prefillTitle",i.bugPrefillTitle_$())("prefillDetails",i.bugPrefillDetails_$())("prefillPriority",i.wizardStagingPriority_$()),l(),_("isOpen",i.quickInputDeleteConfirmOpen_$())("title","Delete quick input?")("zIndex",i.quickInputOverlayModalZIndex_Value),l(),u((p=i.selectedItem_$())?5:-1,p),l(2),_("disabled",i.deleteQuickInputBusy_$()||i.hubDeleteDisabled_$()),l(),E(" ",i.deleteQuickInputBusy_$()?"Deleting\u2026":"Delete"," "),l(),_("disabled",i.deleteQuickInputBusy_$()),l(2),_("isOpen",i.genericConfirmOpen_$())("title",i.genericConfirmTitle_$())("zIndex",i.quickInputOverlayModalZIndex_Value),l(2),P(i.genericConfirmBody_$()),l(2),_("disabled",i.genericConfirmBusy_$()),l(),E(" ",i.genericConfirmBusy_$()?"Working\u2026":i.genericConfirmButtonLabel_$()," "),l(),_("disabled",i.genericConfirmBusy_$()),l(2),_("isOpen",i.sendToSessionOpen_$())("title",i.sendToSessionModalTitle_$())("zIndex",i.quickInputOverlayModalZIndex_Value),l(),u((x=i.selectedItem_$())?20:-1,x),l(2),_("disabled",i.sendToSessionConfirmDisabled_$()),l(),E(" ",i.sendToSessionBusy_$()?"Sending\u2026":"Send"," "),l(),_("disabled",i.sendToSessionBusy_$()),l(2),_("isOpen",i.postPromotionCleanupOpen_$())("title","Quick Input cleanup")("zIndex",i.quickInputOverlayModalZIndex_Value)("closeOnBackdropClick",!i.postPromotionCleanupBusy_$()),l(3),E(" ",i.postPromotionCleanupEntityLabel_$()," successfully created. "),l(3),u((g=i.selectedItem_$())?32:-1,g),l(2),u(i.postPromotionCleanupRouteCmds_$()?34:-1),l(),_("disabled",i.postPromotionCleanupBusy_$()),l(),E(" ",i.postPromotionCleanupBusy_$()?"Deleting\u2026":"Delete Quick Input"," "),l(),_("disabled",i.postPromotionCleanupBusy_$())}},dependencies:[j,at,te,pt,ut,ce,dt,de,_n,pe,Ae,Mn,$n,An],encapsulation:2})}return t})();var Tt=(()=>{class t{static PICKER_ROOT_ATTR="data-ccap-qi-dom-picker-root";static TOKEN_MAX_LENGTH=120;static isUnderQuickInputChrome(e){return e===null?!0:e.closest("app-ccap-user-input-fab")!==null||e.closest("app-ccap-user-input-panel")!==null||e.closest("app-ccap-quick-input-actions-modal")!==null||e.closest(`[${t.PICKER_ROOT_ATTR}]`)!==null}static resolvePickTargetAtPoint(e){let n=e.doc.elementsFromPoint(e.clientX,e.clientY);for(let i of n){if(!(i instanceof HTMLElement)||t.isUnderQuickInputChrome(i)||!String(i.id??"").trim().length)continue;let p=i.localName.toLowerCase();if(!(p==="html"||p==="body"))return i}return null}static buildElementsListTokenFromElement(e){let n=e.localName.toLowerCase(),i=e.id.trim(),s=`dom:${n}#${i}`,p=e.classList;if(p.length>0){let x=[];for(let T=0;T<p.length&&x.length<2;T++){let w=String(p.item(T)??"").trim();w.length&&x.push(w)}x.length>0&&(s=`${s}.${x.join(".")}`)}return s.length<=t.TOKEN_MAX_LENGTH?s:s.slice(0,t.TOKEN_MAX_LENGTH)}static buildHoverLabelForElement(e){let n=e.id.trim(),i=e.localName.toLowerCase();return`#${n} \xB7 ${i}`}}return t})();function il(t,a){if(t&1&&(o(0,"div",2),c(1),r()),t&2){let e=d(2);_("ngStyle",a),l(),E(" ",e.userInput_DS.quickInputDomPickHoverLabel_$()," ")}}function ol(t,a){if(t&1&&(b(0,"div",1),C(1,il,2,2,"div",2)),t&2){let e,n=d();_("ngStyle",a),l(),u((e=n.domPickLabelStyle_$())?1:-1,e)}}var Et=(()=>{class t{userInput_DS=y(G);destroyRef=y(Ht);domPickZIndexValue=li;pendingClientX=0;pendingClientY=0;isRafScheduled=!1;lastHoverTarget=null;domPickHighlightBoxStyle_$=v(()=>{let e=this.userInput_DS.quickInputDomPickHoverRect_$();return e===null?null:{top:`${e.topPx}px`,left:`${e.leftPx}px`,width:`${e.widthPx}px`,height:`${e.heightPx}px`}});domPickLabelStyle_$=v(()=>{let e=this.userInput_DS.quickInputDomPickHoverRect_$();return e===null?null:{top:`${Math.max(0,e.topPx-22-4)}px`,left:`${e.leftPx}px`,maxWidth:"min(24rem, calc(100vw - 1rem))"}});constructor(){if(typeof window>"u")return;let e=s=>{this.pendingClientX=s.clientX,this.pendingClientY=s.clientY,!this.isRafScheduled&&(this.isRafScheduled=!0,window.requestAnimationFrame(()=>{this.isRafScheduled=!1,this.applyHoverAtPoint(this.pendingClientX,this.pendingClientY)}))},n=s=>{if(!this.userInput_DS.quickInputDomPickActive_$()||!this.userInput_DS.isPanelOpen_$()||!this.userInput_DS.selectedProjectIsCcapRevisionedHost_$()||this.lastHoverTarget===null)return;s.preventDefault(),s.stopImmediatePropagation();let p=Tt.buildElementsListTokenFromElement(this.lastHoverTarget);this.userInput_DS.appendQuickInputComposerElement(p),this.userInput_DS.requestComposerDraftPersistBump()},i=s=>{s.key==="Escape"&&this.userInput_DS.quickInputDomPickActive_$()&&this.userInput_DS.setQuickInputDomPickActive(!1)};window.addEventListener("mousemove",e,{passive:!0}),window.addEventListener("click",n,!0),window.addEventListener("keydown",i),this.destroyRef.onDestroy(()=>{window.removeEventListener("mousemove",e),window.removeEventListener("click",n,!0),window.removeEventListener("keydown",i)})}applyHoverAtPoint(e,n){if(!this.userInput_DS.quickInputDomPickActive_$()||!this.userInput_DS.isPanelOpen_$()||!this.userInput_DS.selectedProjectIsCcapRevisionedHost_$()){this.lastHoverTarget=null,this.userInput_DS.setQuickInputDomPickHoverPreview({rect:null,label:""});return}let i=Tt.resolvePickTargetAtPoint({clientX:e,clientY:n,doc:document});if(this.lastHoverTarget=i,i===null){this.userInput_DS.setQuickInputDomPickHoverPreview({rect:null,label:""});return}let s=i.getBoundingClientRect();this.userInput_DS.setQuickInputDomPickHoverPreview({rect:{topPx:s.top,leftPx:s.left,widthPx:s.width,heightPx:s.height},label:Tt.buildHoverLabelForElement(i)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-ccap-quick-input-dom-picker-overlay"]],standalone:!0,features:[U],decls:2,vars:4,consts:[[1,"pointer-events-none","fixed","inset-0","w-screen","h-screen"],[1,"pointer-events-none","fixed","rounded","border-2","border-neonCyan","shadow-[0_0_0_1px_rgba(34,211,238,0.35)]","bg-neonCyan/5",3,"ngStyle"],[1,"pointer-events-none","fixed","z-[1]","px-1.5","py-0.5","rounded","border","border-neonCyan/80","bg-neutral-950/95","text-[11px]","font-mono","text-neonCyan","shadow-md","truncate",3,"ngStyle"]],template:function(n,i){if(n&1&&(o(0,"div",0),C(1,ol,2,2),r()),n&2){let s;et("z-index",i.domPickZIndexValue),q("data-ccap-qi-dom-picker-root",""),l(),u((s=i.userInput_DS.quickInputDomPickActive_$()&&i.domPickHighlightBoxStyle_$())?1:-1,s)}},dependencies:[j,Ie],encapsulation:2})}return t})();function al(t,a){t&1&&b(0,"app-ccap-user-input-panel")}var ci=(()=>{class t{title="ccap-revisioned";userInput_DS=y(G);presenceSubscriber_CS=y(Un);constructor(){this.presenceSubscriber_CS.initialize()}quickInputAppHostStyle_$=v(()=>{let e=this.userInput_DS.quickInputMainBoundsPx_$();return{top:`${e.topPx}px`,left:`${e.leftPx}px`,width:`${e.widthPx}px`,height:`${e.heightPx}px`}});static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["app-root"]],decls:8,vars:2,consts:[[1,"fixed","pointer-events-none","z-[10050]",3,"ngStyle"],[1,"relative","w-full","h-full","pointer-events-none"]],template:function(n,i){n&1&&(b(0,"app-ccap-main-frame")(1,"app-ccap-server-unavailable-overlay"),o(2,"div",0)(3,"div",1),b(4,"app-ccap-quick-input-dom-picker-overlay")(5,"app-ccap-user-input-fab"),C(6,al,1,0,"app-ccap-user-input-panel"),b(7,"app-ccap-quick-input-actions-modal"),r()()),n&2&&(l(2),_("ngStyle",i.quickInputAppHostStyle_$()),l(4),u(i.userInput_DS.isPanelOpen_$()?6:-1))},dependencies:[Ie,gt,St,ii,yt,It,Et],encapsulation:2})}return t})();var sl=[{path:"",loadChildren:()=>import("./dashboard.module-NKQHPS5Q.js").then(t=>t.Dashboard_Module)},{path:"setup",loadChildren:()=>import("./setup.module-4U42JK32.js").then(t=>t.Setup_Module)},{path:"settings",loadChildren:()=>import("./set.module-QXF6DZFG.js").then(t=>t.Settings_Module)},{path:"model-registry",loadChildren:()=>import("./model-registry.module-7ZYZ3XZ2.js").then(t=>t.ModelRegistry_Module)},{path:"cost-tracking",loadChildren:()=>import("./ct.module-Y4TCJ6NH.js").then(t=>t.CostTracking_Module)},{path:"costs",loadChildren:()=>import("./ct-costs.module-A7FMQDTT.js").then(t=>t.Costs_Module)},{path:"embedding-registry",loadChildren:()=>import("./embedding-registry.module-BO7LYJLR.js").then(t=>t.EmbeddingRegistry_Module)},{path:"embedding-model-registry",redirectTo:"embedding-registry",pathMatch:"prefix"},{path:"document-library",loadChildren:()=>import("./document-library.module-3P3ZFDV7.js").then(t=>t.DocumentLibrary_Module)},{path:"project-source",loadChildren:()=>import("./project-source-routed.module-2OY6I5WD.js").then(t=>t.ProjectSource_RoutedModule)},{path:"embedding-eval",loadChildren:()=>import("./embedding-eval.module-WWIPZ3TY.js").then(t=>t.EmbeddingEval_Module)},{path:"session",loadChildren:()=>import("./session.module-42CEXVHT.js").then(t=>t.Session_Module)},{path:"errors",loadChildren:()=>import("./err.module-AKZYERWR.js").then(t=>t.Errors_Module)},{path:"feedback",loadChildren:()=>import("./feedback.module-QL52SIU3.js").then(t=>t.Feedback_Module)},{path:"logs",loadChildren:()=>import("./logs.module-YAFAVQPS.js").then(t=>t.Logs_Module)},{path:"host-runtime-mcp",loadChildren:()=>import("./host-runtime-mcp.module-WGN2WK3K.js").then(t=>t.HostRuntimeMcp_Module)},{path:"voice-notes-poc",loadChildren:()=>import("./voice-notes-poc.module-TB6PFTCF.js").then(t=>t.VoiceNotesPoc_Module)},{path:"master-control-remote-poc",loadChildren:()=>import("./master-control-remote-poc.module-KGXVVQQM.js").then(t=>t.MasterControlRemotePoc_Module)},{path:"workflow-settings",loadChildren:()=>import("./wfs.module-K3NJ47QV.js").then(t=>t.WorkflowSettings_Module)},{path:"coordinator",loadChildren:()=>import("./crd.module-WTDKZXIE.js").then(t=>t.Coordinator_Module)},{path:"scheduler",loadChildren:()=>import("./scheduler.module-7IWANUWU.js").then(t=>t.Scheduler_Module)},{path:"orchestrator",loadChildren:()=>import("./orc.module-D5QH6N6Q.js").then(t=>t.Orchestrator_Module)},{path:"dark-office",loadChildren:()=>import("./do.module-FNFK3G5K.js").then(t=>t.DarkOffice_Module)},{path:"project-management",loadChildren:()=>import("./project-management.module-EJLPHJD6.js").then(t=>t.ProjectManagement_Module)},{path:"cc-session",loadChildren:()=>import("./cc.module-QHHXHWQG.js").then(t=>t.CcSession_Module)},{path:"cc-usage",loadComponent:()=>import("./cc-usage-dashboard.component-QRHS53KB.js").then(t=>t.CC_UsageDashboard_Component)},{path:"mobile-app",loadChildren:()=>import("./mobile-app.module-JTAPGOXX.js").then(t=>t.MobileApp_Module)},{path:"oc-session",loadChildren:()=>import("./oc.module-CMKG3TIN.js").then(t=>t.OcSession_Module)},{path:"ca-session",loadChildren:()=>import("./ca.module-DOSQOA3X.js").then(t=>t.CaSession_Module)},{path:"consultant",loadChildren:()=>import("./consultant.module-YJXM54HJ.js").then(t=>t.Consultant_Module)},{path:"agent-instances",loadChildren:()=>import("./agent-instances.module-RDNI5YIM.js").then(t=>t.AgentInstances_Module)},{path:"terminals",loadChildren:()=>import("./terminals.module-RZXNECJ7.js").then(t=>t.Terminals_Module)},{path:"live-development-pipeline",loadChildren:()=>import("./live-dev-pipeline.module-WHO3NH3W.js").then(t=>t.LiveDevPipeline_Module)},{path:"system-status",redirectTo:"live-development-pipeline",pathMatch:"full"},{path:"**",redirectTo:""}],di=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ke({type:t});static \u0275inj=Ye({imports:[Ce.forRoot(sl,{preloadingStrategy:cn}),Ce]})}return t})();var xe=Ue(Ne());function ll(t){return t.includes("/errors")}var pi=(t,a)=>{let e=y(ne),n=y(xn);return a(t).pipe(zt(i=>{if(i instanceof Zt){let s=ll(t.url);if(e.isErrorHandlingInProgress())xe.DyFM_Error.logSimple("[CCAP HTTP error] re-entrant, only log",i);else if(s)xe.DyFM_Error.logSimple("[CCAP HTTP error] errors API failure, only log",i);else if(i.status===0)xe.DyFM_Error.logSimple("[CCAP HTTP error] status 0 (no response), only log",i);else{e.beginErrorHandling();try{let x=e.buildReportPayloadFromError(i,"client-http");e.showError(i),n.reportError(x).catch(()=>{}),xe.DyFM_Error.logSimple("[CCAP HTTP error] "+x.message,i)}catch(x){xe.DyFM_Log.error("CCAP error interceptor failed",x)}finally{e.endErrorHandling()}}}return Qt(()=>i)}))};var Lt=Ue(Ne());var ui=(()=>{class t extends Ze{globalError_CS=y(ne);constructor(){super()}handleError(e){try{if(this.globalError_CS.isErrorHandlingInProgress()){Lt.DyFM_Log.error("CCAP GlobalError_Handler re-entrant, only log",e),super.handleError(e);return}this.globalError_CS.beginErrorHandling();try{this.globalError_CS.showError(e,"client-global")}finally{this.globalError_CS.endErrorHandling()}}catch(n){Lt.DyFM_Log.error("CCAP GlobalError_Handler failed",n)}super.handleError(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _i=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ke({type:t,bootstrap:[ci]});static \u0275inj=Ye({providers:[en(tn([pi])),{provide:Ze,useClass:ui}],imports:[on,te,Ce,di,ie,gt,St,yt,It,Et]})}return t})();function cl(){return typeof window.Capacitor<"u"&&window.Capacitor.isNativePlatform?.()===!0}var dl=new URL(window.location.href);if(cl()){let t=localStorage.getItem("ccap-server-url");B.baseUrl=t??"http://localhost:39050"}else B.baseUrl=dl.origin;B.api.baseUrl=B.baseUrl+"/api";var Vt=3,pl=800;function ul(t){return fetch(t).then(a=>a.json())}function _l(){nn().bootstrapModule(_i).then(()=>{mi()}).catch(t=>{wt.DyFM_Log.H_error(`CCAP Revisioned client init error
|
|
6
6
|
`,t),mi()})}var ml=300,Cl=320;function mi(){requestAnimationFrame(()=>{requestAnimationFrame(()=>{let t=document.getElementById("ccap-splash");t&&(t.classList.add("ccap-splash--fade-out"),setTimeout(()=>{t.remove()},Cl)),window.Capacitor?.Plugins?.SplashScreen?.hide?.({fadeOutDuration:ml})})})}var Ci="ccap-boot-status-error";function fi(t){let a=B.baseUrl,e=a+"/api/server/status";ul(e).then(n=>{let i=typeof n.httpPort=="number"&&n.httpPort>0?n.httpPort:void 0,s=typeof n.socketPort=="number"&&n.socketPort>0?n.socketPort:void 0;B.socketUrl=rn.computeSocketUrlFromStatus({httpPort:n.httpPort,socketPort:n.socketPort},a);try{localStorage.removeItem(Ci)}catch{}wt.DyFM_Log.info("CCAP_Socket | status ok, socketUrl set to",B.socketUrl)}).catch(n=>{if(t>=Vt){B.socketUrl=a;let i={targetUrl:e,errorName:n instanceof Error?n.name:"unknown",errorMessage:n instanceof Error?n.message:String(n),attempts:Vt,timestamp:new Date().toISOString()};try{localStorage.setItem(Ci,JSON.stringify(i))}catch{}wt.DyFM_Log.warn("CCAP_Socket | status fetch failed after retries, socketUrl fallback to",a,i)}else{setTimeout(()=>fi(t+1),pl);return}}).finally(()=>{(B.socketUrl!==void 0||t>=Vt)&&_l()})}function fl(){fi(0)}fl();
|
|
7
|
-
//# sourceMappingURL=main-
|
|
7
|
+
//# sourceMappingURL=main-IHO52LAW.js.map
|