@futdevpro/ccap 1.1.2956 → 1.1.2964
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/cli/build/_collections/update/update-error-buffer-entry.interface.d.ts +17 -0
- package/cli/build/_collections/update/update-error-buffer-entry.interface.d.ts.map +1 -0
- package/cli/build/_collections/update/update-error-buffer-entry.interface.js +3 -0
- package/cli/build/_collections/update/update-error-buffer-entry.interface.js.map +1 -0
- package/cli/build/_collections/update/update-error-buffer.util.d.ts +35 -0
- package/cli/build/_collections/update/update-error-buffer.util.d.ts.map +1 -0
- package/cli/build/_collections/update/update-error-buffer.util.js +76 -0
- package/cli/build/_collections/update/update-error-buffer.util.js.map +1 -0
- package/cli/build/_collections/update/update-error-buffer.util.spec.d.ts +8 -0
- package/cli/build/_collections/update/update-error-buffer.util.spec.d.ts.map +1 -0
- package/cli/build/_collections/update/update-error-buffer.util.spec.js +95 -0
- package/cli/build/_collections/update/update-error-buffer.util.spec.js.map +1 -0
- package/cli/build/_collections/update/update-runner.util.d.ts +7 -1
- package/cli/build/_collections/update/update-runner.util.d.ts.map +1 -1
- package/cli/build/_collections/update/update-runner.util.js +9 -2
- package/cli/build/_collections/update/update-runner.util.js.map +1 -1
- package/cli/build/_collections/update/update-runner.util.spec.js +11 -0
- package/cli/build/_collections/update/update-runner.util.spec.js.map +1 -1
- package/cli/build/_commands/info.d.ts +69 -0
- package/cli/build/_commands/info.d.ts.map +1 -0
- package/cli/build/_commands/info.interface.d.ts +70 -0
- package/cli/build/_commands/info.interface.d.ts.map +1 -0
- package/cli/build/_commands/info.interface.js +6 -0
- package/cli/build/_commands/info.interface.js.map +1 -0
- package/cli/build/_commands/info.js +379 -0
- package/cli/build/_commands/info.js.map +1 -0
- package/cli/build/_commands/info.spec.d.ts +8 -0
- package/cli/build/_commands/info.spec.d.ts.map +1 -0
- package/cli/build/_commands/info.spec.js +124 -0
- package/cli/build/_commands/info.spec.js.map +1 -0
- package/cli/build/_commands/logs.d.ts +41 -0
- package/cli/build/_commands/logs.d.ts.map +1 -0
- package/cli/build/_commands/logs.interface.d.ts +16 -0
- package/cli/build/_commands/logs.interface.d.ts.map +1 -0
- package/cli/build/_commands/logs.interface.js +3 -0
- package/cli/build/_commands/logs.interface.js.map +1 -0
- package/cli/build/_commands/logs.js +175 -0
- package/cli/build/_commands/logs.js.map +1 -0
- package/cli/build/_commands/logs.spec.d.ts +7 -0
- package/cli/build/_commands/logs.spec.d.ts.map +1 -0
- package/cli/build/_commands/logs.spec.js +120 -0
- package/cli/build/_commands/logs.spec.js.map +1 -0
- package/cli/build/_commands/update.d.ts +17 -13
- package/cli/build/_commands/update.d.ts.map +1 -1
- package/cli/build/_commands/update.js +61 -25
- package/cli/build/_commands/update.js.map +1 -1
- package/cli/build/program.js +40 -1
- package/cli/build/program.js.map +1 -1
- package/client-dist/{agent-instances.module-5SGOQHZE.js → agent-instances.module-HY2VHBIJ.js} +2 -2
- package/client-dist/{ca.module-OCEZIM6Z.js → ca.module-ET22WIEL.js} +2 -2
- package/client-dist/{cc-usage-dashboard.component-GI5LK2ZY.js → cc-usage-dashboard.component-LKFNBYVL.js} +2 -2
- package/client-dist/{cc.module-7FRXT32H.js → cc.module-DIE6ZYLY.js} +4 -4
- package/client-dist/cc.module-DIE6ZYLY.js.map +7 -0
- package/client-dist/{chunk-ZP3HA643.js → chunk-22IFFOSI.js} +2 -2
- package/client-dist/{chunk-H6H3DTA3.js → chunk-2SMC7E3W.js} +2 -2
- package/client-dist/{chunk-T6T7P3PI.js → chunk-3DOLRVWQ.js} +2 -2
- package/client-dist/{chunk-ZLIDOLOB.js → chunk-4564GYJ5.js} +2 -2
- package/client-dist/{chunk-7LEYLJ7K.js → chunk-4DO6YKND.js} +2 -2
- package/client-dist/{chunk-44PBXW6P.js → chunk-53UP5J5U.js} +2 -2
- package/client-dist/{chunk-XWEW3BLS.js → chunk-55MKVFNX.js} +2 -2
- package/client-dist/{chunk-DDV2CYX5.js → chunk-5NGKACCT.js} +2 -2
- package/client-dist/{chunk-KPGAWVWR.js → chunk-5XCRRBNZ.js} +2 -2
- package/client-dist/{chunk-PECMBLKI.js → chunk-66HYCHT3.js} +2 -2
- package/client-dist/{chunk-MJW74BVF.js → chunk-6TP5DJKE.js} +2 -2
- package/client-dist/{chunk-T4VU2VZX.js → chunk-7HGLOQXB.js} +2 -2
- package/client-dist/{chunk-CS6PNARE.js → chunk-APF4FF3U.js} +2 -2
- package/client-dist/{chunk-2BWFVPTP.js → chunk-BTJGFYMU.js} +2 -2
- package/client-dist/{chunk-3KCBESYF.js → chunk-BW5WKQNI.js} +2 -2
- package/client-dist/{chunk-FB3RWQTM.js → chunk-CCUYQVNE.js} +2 -2
- package/client-dist/{chunk-FJQ56J6K.js → chunk-DIZTKV2A.js} +2 -2
- package/client-dist/{chunk-J2Y64TJX.js → chunk-DOEEKXYU.js} +2 -2
- package/client-dist/{chunk-7OU5EIQN.js → chunk-DQAJ7SNH.js} +2 -2
- package/client-dist/{chunk-V4V6NHXT.js → chunk-F6LSYMQS.js} +2 -2
- package/client-dist/{chunk-246ZTR5O.js → chunk-FF6BH35R.js} +2 -2
- package/client-dist/{chunk-MSC5PDVD.js → chunk-GMB2E5VV.js} +2 -2
- package/client-dist/{chunk-LV74GN4F.js → chunk-GTH4FT5Y.js} +2 -2
- package/client-dist/{chunk-DQWIQMJR.js → chunk-HD5BCFN3.js} +2 -2
- package/client-dist/{chunk-I5B5NLNT.js → chunk-HQUS6ZSW.js} +2 -2
- package/client-dist/{chunk-SQ64MCSX.js → chunk-HUDNX2TQ.js} +2 -2
- package/client-dist/{chunk-JJMNZIAQ.js → chunk-HWBJNTEA.js} +2 -2
- package/client-dist/{chunk-5UB3EISH.js → chunk-IBQTN5YN.js} +2 -2
- package/client-dist/{chunk-FLC62MUK.js → chunk-IJLGLMJO.js} +2 -2
- package/client-dist/{chunk-2JP2POHI.js → chunk-IKEQV7TO.js} +2 -2
- package/client-dist/{chunk-KOF3QQI6.js → chunk-IQB44YSD.js} +2 -2
- package/client-dist/{chunk-TSUGHIGA.js → chunk-ISQFVLSF.js} +2 -2
- package/client-dist/{chunk-JLA2PX42.js → chunk-L3ECIYSX.js} +2 -2
- package/client-dist/{chunk-3N4SIVK5.js → chunk-LACKIWSR.js} +2 -2
- package/client-dist/{chunk-JVHTYQOT.js → chunk-LCOGH5NG.js} +2 -2
- package/client-dist/{chunk-37AFYV4M.js → chunk-M2MQ43YC.js} +2 -2
- package/client-dist/{chunk-37AFYV4M.js.map → chunk-M2MQ43YC.js.map} +1 -1
- package/client-dist/{chunk-XBIXPQFJ.js → chunk-MICI24HP.js} +2 -2
- package/client-dist/{chunk-4V5CKMM7.js → chunk-OTVNMXWD.js} +2 -2
- package/client-dist/{chunk-HU6WMEXD.js → chunk-OZE63YYG.js} +2 -2
- package/client-dist/{chunk-IMYGUQJE.js → chunk-P5IIY6MO.js} +2 -2
- package/client-dist/{chunk-S7RPTNLO.js → chunk-PWPSHQ6T.js} +2 -2
- package/client-dist/{chunk-LRT6KDL6.js → chunk-QTBI3NZR.js} +2 -2
- package/client-dist/chunk-R52CDVAS.js +73 -0
- package/client-dist/chunk-R52CDVAS.js.map +1 -0
- package/client-dist/{chunk-3BVLFJ5H.js → chunk-SUFGVRIV.js} +2 -2
- package/client-dist/{chunk-PNTHQY7R.js → chunk-SXMXRHRS.js} +2 -2
- package/client-dist/{chunk-TH3RT3KI.js → chunk-TDNEXMNL.js} +2 -2
- package/client-dist/{chunk-6NLDSDVJ.js → chunk-TTWKTVB4.js} +2 -2
- package/client-dist/{chunk-YAL3F5I2.js → chunk-UBTKADWP.js} +2 -2
- package/client-dist/{chunk-QBFOD33L.js → chunk-UVQOIRMW.js} +2 -2
- package/client-dist/{chunk-WTLQBK4J.js → chunk-VJHWXKNO.js} +2 -2
- package/client-dist/{chunk-DAV3UNQX.js → chunk-VLW4WKLV.js} +2 -2
- package/client-dist/{chunk-DDRFKBEB.js → chunk-VPBJ7EDQ.js} +2 -2
- package/client-dist/{chunk-IQWBHMY2.js → chunk-W7PSBH2X.js} +2 -2
- package/client-dist/{chunk-RD66WNGY.js → chunk-WHYZNKV4.js} +2 -2
- package/client-dist/{chunk-EWVZESJW.js → chunk-ZDJUICKL.js} +2 -2
- package/client-dist/{chunk-S5TMOEID.js → chunk-ZJBX4PWF.js} +2 -2
- package/client-dist/{consultant.module-X4IBYYQS.js → consultant.module-D3LT6Q7Q.js} +2 -2
- package/client-dist/{crd.module-4JESGZ6J.js → crd.module-6H4ARFJI.js} +2 -2
- package/client-dist/{dashboard.module-S24CPFKY.js → dashboard.module-3SOB7UIK.js} +2 -2
- package/client-dist/{do.module-KMXSJLSC.js → do.module-JEKCVDN7.js} +2 -2
- package/client-dist/{document-library.module-NVMIG2CU.js → document-library.module-QJRCHNHP.js} +2 -2
- package/client-dist/{embedding-eval.module-H6GIG3JO.js → embedding-eval.module-MMR2X56Q.js} +2 -2
- package/client-dist/{embedding-registry.module-5ISUMQ7P.js → embedding-registry.module-OF7URRJG.js} +2 -2
- package/client-dist/{err.module-NJA2KCSV.js → err.module-BSNE44J4.js} +2 -2
- package/client-dist/{feedback.module-DRAGZ6Y4.js → feedback.module-N42SJQAD.js} +2 -2
- package/client-dist/{host-runtime-mcp.module-VG5PUGZU.js → host-runtime-mcp.module-UVYBS76M.js} +2 -2
- package/client-dist/index.html +2 -2
- package/client-dist/{live-dev-pipeline.module-S7CEI343.js → live-dev-pipeline.module-R33WI6YN.js} +2 -2
- package/client-dist/{logs.module-PDM3A7YM.js → logs.module-CLZDKCFB.js} +2 -2
- package/client-dist/{main-3BCKKE3E.js → main-Q7457G6W.js} +3 -3
- package/client-dist/{master-control-remote-poc.module-ZT3ZPSP2.js → master-control-remote-poc.module-IXQRMTZO.js} +2 -2
- package/client-dist/{mobile-app.module-WOWIODHA.js → mobile-app.module-6VL6WSNJ.js} +2 -2
- package/client-dist/{model-registry.module-ABJPN7CO.js → model-registry.module-E63WDS2Y.js} +2 -2
- package/client-dist/{oc.module-IYJQQ4V2.js → oc.module-TARPDB47.js} +2 -2
- package/client-dist/{orc.module-L3UX2YOG.js → orc.module-NO2J4BGL.js} +2 -2
- package/client-dist/{project-management.module-CH4QROUC.js → project-management.module-RLNO5UZC.js} +2 -2
- package/client-dist/project-source-routed.module-NTVZXKR2.js +2 -0
- package/client-dist/s-agent-console-message-bubble.component-QJSDQEWX.css.map +7 -0
- package/client-dist/s-agent-tool-plan-view.component-E4T5UMZT.css.map +7 -0
- package/client-dist/{scheduler.module-UBFVRLQC.js → scheduler.module-WUBZXO5V.js} +2 -2
- package/client-dist/{session.module-SPGTZVT2.js → session.module-5R43V7F5.js} +2 -2
- package/client-dist/{set.module-E3ZIGRQY.js → set.module-36ZSGLGF.js} +2 -2
- package/client-dist/{setup.module-AQ4H55JC.js → setup.module-7MFIOZVY.js} +2 -2
- package/client-dist/{styles-MUU7N64U.css → styles-YBSH3JQY.css} +2 -2
- package/client-dist/{styles-MUU7N64U.css.map → styles-YBSH3JQY.css.map} +3 -3
- package/client-dist/{terminals.module-I63ACO43.js → terminals.module-ZFFIL6DY.js} +2 -2
- package/client-dist/{voice-notes-poc.module-6DL3W2E3.js → voice-notes-poc.module-FXL6WNEJ.js} +2 -2
- package/client-dist/{wfs.module-MXS63ER2.js → wfs.module-KNRW6VWW.js} +2 -2
- package/package.json +1 -1
- package/server/build/src/_modules/setup-config/_collections/utils/update-error-buffer-replay/sc-update-error-buffer-replay-result.interface.d.ts +18 -0
- package/server/build/src/_modules/setup-config/_collections/utils/update-error-buffer-replay/sc-update-error-buffer-replay-result.interface.d.ts.map +1 -0
- package/server/build/src/_modules/setup-config/_collections/utils/update-error-buffer-replay/sc-update-error-buffer-replay-result.interface.js +3 -0
- package/server/build/src/_modules/setup-config/_collections/utils/update-error-buffer-replay/sc-update-error-buffer-replay-result.interface.js.map +1 -0
- package/server/build/src/_modules/setup-config/_collections/utils/update-error-buffer-replay/sc-update-error-buffer-replay.util.d.ts +31 -0
- package/server/build/src/_modules/setup-config/_collections/utils/update-error-buffer-replay/sc-update-error-buffer-replay.util.d.ts.map +1 -0
- package/server/build/src/_modules/setup-config/_collections/utils/update-error-buffer-replay/sc-update-error-buffer-replay.util.js +184 -0
- package/server/build/src/_modules/setup-config/_collections/utils/update-error-buffer-replay/sc-update-error-buffer-replay.util.js.map +1 -0
- package/server/build/src/_modules/setup-config/_collections/utils/update-error-buffer-replay/sc-update-error-buffer-replay.util.spec.d.ts +9 -0
- package/server/build/src/_modules/setup-config/_collections/utils/update-error-buffer-replay/sc-update-error-buffer-replay.util.spec.d.ts.map +1 -0
- package/server/build/src/_modules/setup-config/_collections/utils/update-error-buffer-replay/sc-update-error-buffer-replay.util.spec.js +135 -0
- package/server/build/src/_modules/setup-config/_collections/utils/update-error-buffer-replay/sc-update-error-buffer-replay.util.spec.js.map +1 -0
- package/server/build/src/app.server.d.ts.map +1 -1
- package/server/build/src/app.server.js +10 -0
- package/server/build/src/app.server.js.map +1 -1
- package/client-dist/cc.module-7FRXT32H.js.map +0 -7
- package/client-dist/chunk-WPGGMZPB.js +0 -73
- package/client-dist/chunk-WPGGMZPB.js.map +0 -1
- package/client-dist/project-source-routed.module-SF6CNR34.js +0 -2
- package/client-dist/s-agent-console-message-bubble.component-KS3KL36G.css.map +0 -7
- package/client-dist/s-agent-tool-plan-view.component-PVG3EXHY.css.map +0 -7
- /package/client-dist/{agent-instances.module-5SGOQHZE.js.map → agent-instances.module-HY2VHBIJ.js.map} +0 -0
- /package/client-dist/{ca.module-OCEZIM6Z.js.map → ca.module-ET22WIEL.js.map} +0 -0
- /package/client-dist/{cc-usage-dashboard.component-GI5LK2ZY.js.map → cc-usage-dashboard.component-LKFNBYVL.js.map} +0 -0
- /package/client-dist/{chunk-ZP3HA643.js.map → chunk-22IFFOSI.js.map} +0 -0
- /package/client-dist/{chunk-H6H3DTA3.js.map → chunk-2SMC7E3W.js.map} +0 -0
- /package/client-dist/{chunk-T6T7P3PI.js.map → chunk-3DOLRVWQ.js.map} +0 -0
- /package/client-dist/{chunk-ZLIDOLOB.js.map → chunk-4564GYJ5.js.map} +0 -0
- /package/client-dist/{chunk-7LEYLJ7K.js.map → chunk-4DO6YKND.js.map} +0 -0
- /package/client-dist/{chunk-44PBXW6P.js.map → chunk-53UP5J5U.js.map} +0 -0
- /package/client-dist/{chunk-XWEW3BLS.js.map → chunk-55MKVFNX.js.map} +0 -0
- /package/client-dist/{chunk-DDV2CYX5.js.map → chunk-5NGKACCT.js.map} +0 -0
- /package/client-dist/{chunk-KPGAWVWR.js.map → chunk-5XCRRBNZ.js.map} +0 -0
- /package/client-dist/{chunk-PECMBLKI.js.map → chunk-66HYCHT3.js.map} +0 -0
- /package/client-dist/{chunk-MJW74BVF.js.map → chunk-6TP5DJKE.js.map} +0 -0
- /package/client-dist/{chunk-T4VU2VZX.js.map → chunk-7HGLOQXB.js.map} +0 -0
- /package/client-dist/{chunk-CS6PNARE.js.map → chunk-APF4FF3U.js.map} +0 -0
- /package/client-dist/{chunk-2BWFVPTP.js.map → chunk-BTJGFYMU.js.map} +0 -0
- /package/client-dist/{chunk-3KCBESYF.js.map → chunk-BW5WKQNI.js.map} +0 -0
- /package/client-dist/{chunk-FB3RWQTM.js.map → chunk-CCUYQVNE.js.map} +0 -0
- /package/client-dist/{chunk-FJQ56J6K.js.map → chunk-DIZTKV2A.js.map} +0 -0
- /package/client-dist/{chunk-J2Y64TJX.js.map → chunk-DOEEKXYU.js.map} +0 -0
- /package/client-dist/{chunk-7OU5EIQN.js.map → chunk-DQAJ7SNH.js.map} +0 -0
- /package/client-dist/{chunk-V4V6NHXT.js.map → chunk-F6LSYMQS.js.map} +0 -0
- /package/client-dist/{chunk-246ZTR5O.js.map → chunk-FF6BH35R.js.map} +0 -0
- /package/client-dist/{chunk-MSC5PDVD.js.map → chunk-GMB2E5VV.js.map} +0 -0
- /package/client-dist/{chunk-LV74GN4F.js.map → chunk-GTH4FT5Y.js.map} +0 -0
- /package/client-dist/{chunk-DQWIQMJR.js.map → chunk-HD5BCFN3.js.map} +0 -0
- /package/client-dist/{chunk-I5B5NLNT.js.map → chunk-HQUS6ZSW.js.map} +0 -0
- /package/client-dist/{chunk-SQ64MCSX.js.map → chunk-HUDNX2TQ.js.map} +0 -0
- /package/client-dist/{chunk-JJMNZIAQ.js.map → chunk-HWBJNTEA.js.map} +0 -0
- /package/client-dist/{chunk-5UB3EISH.js.map → chunk-IBQTN5YN.js.map} +0 -0
- /package/client-dist/{chunk-FLC62MUK.js.map → chunk-IJLGLMJO.js.map} +0 -0
- /package/client-dist/{chunk-2JP2POHI.js.map → chunk-IKEQV7TO.js.map} +0 -0
- /package/client-dist/{chunk-KOF3QQI6.js.map → chunk-IQB44YSD.js.map} +0 -0
- /package/client-dist/{chunk-TSUGHIGA.js.map → chunk-ISQFVLSF.js.map} +0 -0
- /package/client-dist/{chunk-JLA2PX42.js.map → chunk-L3ECIYSX.js.map} +0 -0
- /package/client-dist/{chunk-3N4SIVK5.js.map → chunk-LACKIWSR.js.map} +0 -0
- /package/client-dist/{chunk-JVHTYQOT.js.map → chunk-LCOGH5NG.js.map} +0 -0
- /package/client-dist/{chunk-XBIXPQFJ.js.map → chunk-MICI24HP.js.map} +0 -0
- /package/client-dist/{chunk-4V5CKMM7.js.map → chunk-OTVNMXWD.js.map} +0 -0
- /package/client-dist/{chunk-HU6WMEXD.js.map → chunk-OZE63YYG.js.map} +0 -0
- /package/client-dist/{chunk-IMYGUQJE.js.map → chunk-P5IIY6MO.js.map} +0 -0
- /package/client-dist/{chunk-S7RPTNLO.js.map → chunk-PWPSHQ6T.js.map} +0 -0
- /package/client-dist/{chunk-LRT6KDL6.js.map → chunk-QTBI3NZR.js.map} +0 -0
- /package/client-dist/{chunk-3BVLFJ5H.js.map → chunk-SUFGVRIV.js.map} +0 -0
- /package/client-dist/{chunk-PNTHQY7R.js.map → chunk-SXMXRHRS.js.map} +0 -0
- /package/client-dist/{chunk-TH3RT3KI.js.map → chunk-TDNEXMNL.js.map} +0 -0
- /package/client-dist/{chunk-6NLDSDVJ.js.map → chunk-TTWKTVB4.js.map} +0 -0
- /package/client-dist/{chunk-YAL3F5I2.js.map → chunk-UBTKADWP.js.map} +0 -0
- /package/client-dist/{chunk-QBFOD33L.js.map → chunk-UVQOIRMW.js.map} +0 -0
- /package/client-dist/{chunk-WTLQBK4J.js.map → chunk-VJHWXKNO.js.map} +0 -0
- /package/client-dist/{chunk-DAV3UNQX.js.map → chunk-VLW4WKLV.js.map} +0 -0
- /package/client-dist/{chunk-DDRFKBEB.js.map → chunk-VPBJ7EDQ.js.map} +0 -0
- /package/client-dist/{chunk-IQWBHMY2.js.map → chunk-W7PSBH2X.js.map} +0 -0
- /package/client-dist/{chunk-RD66WNGY.js.map → chunk-WHYZNKV4.js.map} +0 -0
- /package/client-dist/{chunk-EWVZESJW.js.map → chunk-ZDJUICKL.js.map} +0 -0
- /package/client-dist/{chunk-S5TMOEID.js.map → chunk-ZJBX4PWF.js.map} +0 -0
- /package/client-dist/{consultant.module-X4IBYYQS.js.map → consultant.module-D3LT6Q7Q.js.map} +0 -0
- /package/client-dist/{crd.module-4JESGZ6J.js.map → crd.module-6H4ARFJI.js.map} +0 -0
- /package/client-dist/{dashboard.module-S24CPFKY.js.map → dashboard.module-3SOB7UIK.js.map} +0 -0
- /package/client-dist/{do.module-KMXSJLSC.js.map → do.module-JEKCVDN7.js.map} +0 -0
- /package/client-dist/{document-library.module-NVMIG2CU.js.map → document-library.module-QJRCHNHP.js.map} +0 -0
- /package/client-dist/{embedding-eval.module-H6GIG3JO.js.map → embedding-eval.module-MMR2X56Q.js.map} +0 -0
- /package/client-dist/{embedding-registry.module-5ISUMQ7P.js.map → embedding-registry.module-OF7URRJG.js.map} +0 -0
- /package/client-dist/{err.module-NJA2KCSV.js.map → err.module-BSNE44J4.js.map} +0 -0
- /package/client-dist/{feedback.module-DRAGZ6Y4.js.map → feedback.module-N42SJQAD.js.map} +0 -0
- /package/client-dist/{host-runtime-mcp.module-VG5PUGZU.js.map → host-runtime-mcp.module-UVYBS76M.js.map} +0 -0
- /package/client-dist/{live-dev-pipeline.module-S7CEI343.js.map → live-dev-pipeline.module-R33WI6YN.js.map} +0 -0
- /package/client-dist/{logs.module-PDM3A7YM.js.map → logs.module-CLZDKCFB.js.map} +0 -0
- /package/client-dist/{main-3BCKKE3E.js.map → main-Q7457G6W.js.map} +0 -0
- /package/client-dist/{master-control-remote-poc.module-ZT3ZPSP2.js.map → master-control-remote-poc.module-IXQRMTZO.js.map} +0 -0
- /package/client-dist/{mobile-app.module-WOWIODHA.js.map → mobile-app.module-6VL6WSNJ.js.map} +0 -0
- /package/client-dist/{model-registry.module-ABJPN7CO.js.map → model-registry.module-E63WDS2Y.js.map} +0 -0
- /package/client-dist/{oc.module-IYJQQ4V2.js.map → oc.module-TARPDB47.js.map} +0 -0
- /package/client-dist/{orc.module-L3UX2YOG.js.map → orc.module-NO2J4BGL.js.map} +0 -0
- /package/client-dist/{project-management.module-CH4QROUC.js.map → project-management.module-RLNO5UZC.js.map} +0 -0
- /package/client-dist/{project-source-routed.module-SF6CNR34.js.map → project-source-routed.module-NTVZXKR2.js.map} +0 -0
- /package/client-dist/{scheduler.module-UBFVRLQC.js.map → scheduler.module-WUBZXO5V.js.map} +0 -0
- /package/client-dist/{session.module-SPGTZVT2.js.map → session.module-5R43V7F5.js.map} +0 -0
- /package/client-dist/{set.module-E3ZIGRQY.js.map → set.module-36ZSGLGF.js.map} +0 -0
- /package/client-dist/{setup.module-AQ4H55JC.js.map → setup.module-7MFIOZVY.js.map} +0 -0
- /package/client-dist/{terminals.module-I63ACO43.js.map → terminals.module-ZFFIL6DY.js.map} +0 -0
- /package/client-dist/{voice-notes-poc.module-6DL3W2E3.js.map → voice-notes-poc.module-FXL6WNEJ.js.map} +0 -0
- /package/client-dist/{wfs.module-MXS63ER2.js.map → wfs.module-KNRW6VWW.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as J}from"./chunk-JLA2PX42.js";import"./chunk-LV74GN4F.js";import"./chunk-DQWIQMJR.js";import"./chunk-QBFOD33L.js";import"./chunk-V3VQWJQL.js";import"./chunk-FLAJXIYW.js";import{b as bt,c as Et,f as St,i as vt,k as wt,r as kt,v as $t}from"./chunk-EO4DNTT4.js";import{k as Q}from"./chunk-DAV3UNQX.js";import"./chunk-5UPNU54P.js";import{h as Mt,j as It}from"./chunk-XBIXPQFJ.js";import{I as Pt,p as Kt}from"./chunk-37AFYV4M.js";import{C as D,Ca as pt,Cb as yt,D as _t,Da as mt,E as dt,Fa as u,Ga as B,Ha as K,Ia as rt,J as m,K as h,Kb as ft,L as N,Ma as q,Na as Y,Oa as X,Ua as ht,X as G,Y as Z,Z as c,a as lt,aa as E,b as at,ba as ut,da as f,fa as V,ga as v,h as Vt,ha as H,hb as F,ia as O,ja as j,k as z,la as g,lb as Ct,na as ot,oa as I,p as T,pa as R,q as it,qa as l,ra as a,sa as A,ua as S,ub as xt,va as C,wa as s,xb as gt,y as U,z as ct}from"./chunk-TBMJSIBB.js";var tt=Vt(Kt());var Rt=(()=>{class o{baseUrl=`${Pt.api.baseUrl}/master-control-remote-poc`;http=D(gt);fetchConfig(){return T(this.http.get(`${this.baseUrl}/config`))}saveConfig(t){return T(this.http.put(`${this.baseUrl}/config`,t))}fetchDisplays(){return T(this.http.get(`${this.baseUrl}/displays`))}fetchScreenshot(t){let e=t!==void 0&&t.trim().length>0?`?displayKey=${encodeURIComponent(t.trim())}`:"";return T(this.http.get(`${this.baseUrl}/screenshot${e}`,{observe:"response",responseType:"blob"}).pipe(it(n=>{if(!n.ok)throw new Error(n.statusText||"Screenshot request failed");let i=n.headers.get("Content-Type")??null;if(!(!!i&&(i.startsWith("image/png")||i.startsWith("image/jpeg")))||!n.body)throw new Error("Szerver nem k\xE9pk\xE9nt v\xE1laszolt (Content-Type nem image/png vagy image/jpeg)");return n.body})))}fetchScreenshotDebug(){return T(this.http.get(`${this.baseUrl}/screenshot-debug`,{observe:"response",responseType:"blob"}).pipe(it(t=>{if(!t.ok)throw new Error(t.statusText||"Screenshot debug request failed");let e=t.headers.get("Content-Type")??null;if(!(!!e&&(e.startsWith("image/png")||e.startsWith("image/jpeg")))||!t.body)throw new Error("Szerver nem k\xE9pk\xE9nt v\xE1laszolt (Content-Type nem image/png vagy image/jpeg)");return t.body})))}fetchRegions(t){let e=t.withOcr===!0?"?ocr=1":"";return T(this.http.get(`${this.baseUrl}/regions${e}`))}click(t){return T(this.http.post(`${this.baseUrl}/click`,{sectionId:t.sectionId,x:t.x,y:t.y}))}type(t){return T(this.http.post(`${this.baseUrl}/type`,{sectionId:t.sectionId,text:t.text}))}static \u0275fac=function(e){return new(e||o)};static \u0275prov=U({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Ft=(()=>{class o{mcr_AS=D(Rt);fetchConfig(){return this.mcr_AS.fetchConfig()}saveConfig(t){return this.mcr_AS.saveConfig(t)}fetchDisplays(){return this.mcr_AS.fetchDisplays()}fetchScreenshot(t){return this.mcr_AS.fetchScreenshot(t)}fetchScreenshotDebug(){return this.mcr_AS.fetchScreenshotDebug()}fetchRegions(t){return this.mcr_AS.fetchRegions(t)}click(t){return this.mcr_AS.click(t)}type(t){return this.mcr_AS.type(t)}static \u0275fac=function(e){return new(e||o)};static \u0275prov=U({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var zt=["n","s","e","w","nw","ne","sw","se"];var At=["screenshotFullscreenContainer"],Tt=(o,d)=>d.displayKey,L=(o,d)=>d.id,Bt=()=>[1,2,3,4];function Ot(o,d){if(o&1&&(l(0,"span",30),u(1),a()),o&2){let t=s().$implicit;c(),rt(" (",t.width,"\xD7",t.height,")")}}function Ht(o,d){if(o&1){let t=S();l(0,"label",16)(1,"input",29),C("change",function(){let n=m(t).$implicit,i=s(3);return h(i.toggleDisplayEnabled(n.displayKey))}),a(),u(2),f(3,Ot,2,2,"span",30),a()}if(o&2){let t=d.$implicit,e=s(3);c(),v("checked",e.isDisplayEnabled(t.displayKey))("name","enabled_"+t.displayKey),c(),K(" ",t.name||t.displayKey," "),c(),g(t.width!=null&&t.height!=null&&t.width>0&&t.height>0?3:-1)}}function jt(o,d){if(o&1&&(l(0,"p",27),u(1,"K\xE9perny\u0151k enged\xE9lyez\xE9se (csak az enged\xE9lyezettek l\xE1tszanak):"),a(),l(2,"div",28),I(3,Ht,4,4,"label",16,Tt),a()),o&2){let t=s(2);c(3),R(t.displays_$())}}function Lt(o,d){if(o&1){let t=S();l(0,"button",31),C("click",function(){m(t);let n=s(2);return h(n.enterScreenshotFullscreen())}),u(1," Teljes k\xE9perny\u0151 "),a()}}function Wt(o,d){if(o&1){let t=S();l(0,"button",36),C("click",function(){m(t);let n=s(3);return h(n.exitScreenshotFullscreen())}),u(1," Kil\xE9p\xE9s "),a()}}function Ut(o,d){if(o&1&&(l(0,"p",30),u(1),a()),o&2){let t=s().$implicit;c(),rt(" Megjelen\xEDt\u0151: ",t.naturalWidth," \xD7 ",t.naturalHeight," px ")}}function Nt(o,d){o&1&&(l(0,"div",40),u(1," K\xE9p bet\xF6lt\xE9se sikertelen "),a())}function Gt(o,d){if(o&1){let t=S();l(0,"div",50),C("pointerdown",function(n){m(t);let i=s().$implicit,r=s(3).$implicit,_=s(3);return h(_.onClickPointPointerDown(n,i,"click",r))}),N(),l(1,"svg",51),A(2,"path",52),a()()}if(o&2){let t=s().$implicit,e=s(3).$implicit,n=s(3);H("left",t.bounds.x/e.naturalWidth*100,"%")("top",t.bounds.y/e.naturalHeight*100,"%"),c(),V("viewBox",n.mcrPocCursorTipViewBox),c(),V("d",n.mcrPocCursorTipPath)}}function Zt(o,d){if(o&1){let t=S();l(0,"div",53),C("pointerdown",function(n){m(t);let i=s().$implicit,r=s(3).$implicit,_=s(3);return h(_.onClickPointPointerDown(n,i,"inputClick",r))}),N(),l(1,"svg",51),A(2,"path",52),a()()}if(o&2){let t=s().$implicit,e=s(3).$implicit,n=s(3);H("left",n.inputSectionOverlayPoint(t).x/e.naturalWidth*100,"%")("top",n.inputSectionOverlayPoint(t).y/e.naturalHeight*100,"%"),c(),V("viewBox",n.mcrPocCursorTipViewBox),c(),V("d",n.mcrPocCursorTipPath)}}function qt(o,d){if(o&1){let t=S();l(0,"div",56),C("pointerdown",function(n){let i=m(t).$implicit,r=s(2).$implicit,_=s(6);return h(_.onSectionResizeHandlePointerDown(n,r,i))}),A(1,"span",57),a()}if(o&2){let t=d.$implicit,e=s(8);j(e.RESIZE_HANDLE_WRAPPER_CLASS[t]),H("cursor",e.RESIZE_HANDLE_CURSOR[t]),c(),j(e.RESIZE_HANDLE_KNOB_CLASS)}}function Yt(o,d){if(o&1){let t=S();l(0,"div",54),C("pointerdown",function(){m(t);let n=s().$implicit,i=s(6);return h(i.bringSectionToFront(n.id))}),I(1,qt,2,6,"div",55,ot),a()}if(o&2){let t=s().$implicit,e=s(3).$implicit,n=s(3);H("left",t.bounds.x/e.naturalWidth*100,"%")("top",t.bounds.y/e.naturalHeight*100,"%")("width",t.bounds.width/e.naturalWidth*100,"%")("height",t.bounds.height/e.naturalHeight*100,"%")("z-index",t.id===n.frontSectionId_$()?10:1),c(),R(n.resizeHandles)}}function Xt(o,d){if(o&1&&f(0,Gt,3,6,"div",47)(1,Zt,3,6,"div",48)(2,Yt,3,10,"div",49),o&2){let t=d.$implicit;g(t.type==="click"?0:t.type==="input"?1:-1),c(2),g(t.type!=="click"?2:-1)}}function Qt(o,d){if(o&1&&(l(0,"div",59),N(),l(1,"svg",51),A(2,"path",52),a()()),o&2){let t=d,e=s(7);H("left",t.xPct,"%")("top",t.yPct,"%"),O("text-neonCyan",!e.positioningInputClickSectionId_$())("text-amber-400",e.positioningInputClickSectionId_$()!==null),c(),V("viewBox",e.mcrPocCursorTipViewBox),c(),V("d",e.mcrPocCursorTipPath)}}function Jt(o,d){if(o&1&&f(0,Qt,3,10,"div",58),o&2){let t,e=s(3).$implicit,n=s(3);g((t=n.positionPreviewByDisplayKey_$()[e.displayKey])?0:-1,t)}}function te(o,d){if(o&1&&(l(0,"div",46),I(1,Xt,3,2,null,null,L),f(3,Jt,1,1),a()),o&2){let t=s(2).$implicit,e=s(3);O("pointer-events-none",e.positioningClickSectionId_$()||e.positioningInputClickSectionId_$())("cursor-crosshair",e.positioningClickSectionId_$()||e.positioningInputClickSectionId_$()),c(),R(e.getSectionsForDisplayKey(t.displayKey)),c(2),g(e.positioningClickSectionId_$()||e.positioningInputClickSectionId_$()?3:-1)}}function ee(o,d){if(o&1){let t=S();l(0,"img",44),C("error",function(){m(t);let n=s().$implicit,i=s(3);return h(i.onScreenshotImageError(n))})("pointerup",function(n){m(t);let i=s().$implicit,r=s(3);return h(r.onScreenshotPointerUpForPosition(n,i))})("pointermove",function(n){m(t);let i=s().$implicit,r=s(3);return h(r.onScreenshotPointerMoveOverImage(n,i))})("pointerleave",function(){m(t);let n=s(4);return h(n.onScreenshotPointerLeaveImage())}),a(),f(1,te,4,5,"div",45)}if(o&2){let t,e=s().$implicit,n=s(3);O("cursor-crosshair",n.positioningClickSectionId_$()||n.positioningInputClickSectionId_$())("touch-none",n.positioningClickSectionId_$()||n.positioningInputClickSectionId_$()),v("src",(t=e.safeUrl)!==null&&t!==void 0?t:e.url,G)("alt",e.name),c(),g(e.naturalWidth&&e.naturalHeight?1:-1)}}function ne(o,d){if(o&1){let t=S();l(0,"span",64),u(1,"w:"),a(),l(2,"input",73),C("ngModelChange",function(n){m(t);let i=s().$implicit,r=s(5);return h(r.updateSectionBoundsBySection(i,{width:n}))}),a(),l(3,"span",64),u(4,"h:"),a(),l(5,"input",73),C("ngModelChange",function(n){m(t);let i=s().$implicit,r=s(5);return h(r.updateSectionBoundsBySection(i,{height:n}))}),a()}if(o&2){let t=s().$implicit;c(2),v("ngModel",t.bounds.width)("name","bw_"+t.id),c(3),v("ngModel",t.bounds.height)("name","bh_"+t.id)}}function ie(o,d){if(o&1){let t=S();l(0,"button",74),C("click",function(){m(t);let n=s().$implicit,i=s(5);return h(i.bringSectionToFront(n.id))}),u(1," El\u0151t\xE9r "),a()}o&2&&v("title","El\u0151t\xE9r (\xE1tfed\xE9sn\xE9l reszelhet\u0151)")}function oe(o,d){if(o&1){let t=S();l(0,"button",75),C("click",function(){m(t);let n=s().$implicit,i=s(5);return h(i.startPositioningClick(n.id))}),u(1," Poz\xEDcion\xE1l\xE1s "),a()}}function re(o,d){if(o&1){let t=S();l(0,"button",76),C("click",function(){m(t);let n=s().$implicit,i=s(5);return h(i.startPositioningInputClick(n.id))}),u(1," Kattint\xE1s pont "),a()}}function se(o,d){if(o&1){let t=S();l(0,"li",62)(1,"input",63),C("ngModelChange",function(n){let i=m(t).$implicit,r=s(5);return h(r.updateSectionIdBySection(i,n))}),a(),l(2,"span",64),u(3),a(),l(4,"span",64),u(5,"x:"),a(),l(6,"input",65),C("ngModelChange",function(n){let i=m(t).$implicit,r=s(5);return h(r.updateSectionBoundsBySection(i,{x:n}))}),a(),l(7,"span",64),u(8,"y:"),a(),l(9,"input",65),C("ngModelChange",function(n){let i=m(t).$implicit,r=s(5);return h(r.updateSectionBoundsBySection(i,{y:n}))}),a(),f(10,ne,6,4),l(11,"div",66),f(12,ie,2,1,"button",67),l(13,"button",68),C("click",function(){let n=m(t).$implicit,i=s(5);return h(i.moveSectionUpBySection(n))}),l(14,"span",57),u(15,"\u2191"),a()(),l(16,"button",69),C("click",function(){let n=m(t).$implicit,i=s(5);return h(i.moveSectionDownBySection(n))}),l(17,"span",57),u(18,"\u2193"),a()(),f(19,oe,2,0,"button",70)(20,re,2,0,"button",71),l(21,"button",72),C("click",function(){let n=m(t).$implicit,i=s(5);return h(i.removeSectionBySection(n))}),u(22," T\xF6rl\xE9s "),a()()()}if(o&2){let t=d.$implicit,e=s(2).$implicit,n=s(3);c(),v("ngModel",t.id)("name","sectionId_"+e.displayKey+"_"+t.id),c(2),B(n.SECTION_TYPE_LABELS[t.type]),c(3),v("ngModel",t.bounds.x)("name","bx_"+t.id),V("max",e.naturalWidth!=null&&e.naturalWidth>0?e.naturalWidth-1:null),c(3),v("ngModel",t.bounds.y)("name","by_"+t.id),V("max",e.naturalHeight!=null&&e.naturalHeight>0?e.naturalHeight-1:null),c(),g(t.type!=="click"?10:-1),c(2),g(t.type!=="click"?12:-1),c(),v("disabled",n.sectionIndexById_$()[t.id]===0),c(3),v("disabled",n.sectionIndexById_$()[t.id]===n.sections_$().length-1),c(3),g(t.type==="click"?19:-1),c(),g(t.type==="input"?20:-1)}}function le(o,d){if(o&1&&(l(0,"div",43)(1,"p",60),u(2,"Z\xF3n\xE1k ezen a k\xE9pen"),a(),l(3,"ul",61),I(4,se,23,15,"li",62,L),a()()),o&2){let t=s().$implicit,e=s(3);c(4),R(e.getSectionsForDisplayKey(t.displayKey))}}function ae(o,d){if(o&1){let t=S();l(0,"div",35)(1,"div",37)(2,"p",38),u(3),a(),f(4,Ut,2,2,"p",30),a(),l(5,"div",39),f(6,Nt,2,0,"div",40)(7,ee,2,7),a(),l(8,"div",41)(9,"button",42),C("click",function(){let n=m(t).$implicit,i=s(3);return h(i.addSectionForScreen(n,"read-only"))}),u(10," Figyel\xE9s "),a(),l(11,"button",42),C("click",function(){let n=m(t).$implicit,i=s(3);return h(i.addSectionForScreen(n,"click"))}),u(12," Kattint\xE1s "),a(),l(13,"button",42),C("click",function(){let n=m(t).$implicit,i=s(3);return h(i.addSectionForScreen(n,"input"))}),u(14," Input "),a()(),f(15,le,6,0,"div",43),a()}if(o&2){let t=d.$implicit,e=s(3);c(3),B(t.name),c(),g(t.naturalWidth!=null&&t.naturalHeight!=null&&t.naturalWidth>0&&t.naturalHeight>0?4:-1),c(2),g(e.failedDisplayKeys_$().has(t.displayKey)?6:7),c(9),g(e.getSectionsForDisplayKey(t.displayKey).length>0?15:-1)}}function ce(o,d){if(o&1&&(l(0,"p",32),u(1),a(),l(2,"div",33,0),f(4,Wt,2,0,"button",34),I(5,ae,16,4,"div",35,Tt),a()),o&2){let t=s(2);c(),K("",t.screenshots_$().length," k\xE9p"),c(3),g(t.screenshotFullscreen_$()?4:-1),c(),R(t.screenshots_$())}}function _e(o,d){o&1&&(l(0,"p",18),u(1,"Nincs m\xE9g screenshot. Kattints a friss\xEDt\xE9s gombra, vagy v\xE1rj a monitorkezel\u0151 bet\xF6lt\xE9s\xE9re."),a())}function de(o,d){o&1&&u(0," \xC9rintsd meg / kattints a ci\xE1n input kereten bel\xFClre (kurzor-hegy a c\xE9l; k\xEDv\xFClre \xE9rintve a legk\xF6zelebbi bels\u0151 pixelre cs\xFAszik), vagy h\xFAzd a h\xE1romsz\xF6get. Alap\xE9rtelmez\xE9s: k\xF6z\xE9p. ")}function ue(o,d){o&1&&u(0," \xC9rintsd meg / kattints a k\xE9perny\u0151k\xE9pre (kurzor-hegy a c\xE9l), vagy h\xFAzd a h\xE1romsz\xF6get; kattint\xE1s z\xF3n\xE1n\xE1l az x/y mez\u0151 is szerkeszthet\u0151. ")}function pe(o,d){if(o&1){let t=S();l(0,"p",19),u(1),f(2,de,1,0)(3,ue,1,0),l(4,"button",77),C("click",function(){m(t);let n=s(2);return h(n.cancelPositioningClick())}),u(5," M\xE9gse "),a()()}if(o&2){let t=s(2);c(),K(" ",t.positioningInputClickSectionId_$()?"Poz\xEDcion\xE1l\xE1s (input kattint\xE1s pont):":"Poz\xEDcion\xE1l\xE1s (kattint\xE1s pont):"," "),c(),g(t.positioningInputClickSectionId_$()?2:3)}}function me(o,d){if(o&1){let t=S();l(0,"button",78),C("click",function(){let n=m(t).$implicit,i=s(2);return h(i.remoteGridCols_$.set(n))}),u(1),a()}if(o&2){let t=d.$implicit,e=s(2);O("border-neonCyan",e.remoteGridCols_$()===t)("bg-neutral-700",e.remoteGridCols_$()===t),c(),K(" ",t," oszlop ")}}function he(o,d){if(o&1&&(l(0,"p",24),u(1),a()),o&2){let t=s(2);c(),B(t.validationMessage_$())}}function Ce(o,d){o&1&&(l(0,"p",25),u(1," A ment\xE9shez adj hozz\xE1 legal\xE1bb egy z\xF3n\xE1t, vagy sz\u0171k\xEDtsd a k\xE9perny\u0151ket (nem mind enged\xE9lyezett), vagy v\xE1ltoztasd a remote grid oszlopsz\xE1m\xE1t (az alap\xE9rtelmezett 2-t\u0151l elt\xE9r\u0151en). "),a())}function xe(o,d){if(o&1){let t=S();l(0,"div",6)(1,"section",10)(2,"h2",11),u(3,"K\xE9p bet\xF6lt\xE9se \xE9s z\xF3n\xE1k"),a(),l(4,"p",12),u(5," A szerver minden el\xE9rhet\u0151 monitorj\xE1r\xF3l k\xE9sz\xFCl screenshot; ezen jel\xF6l\xF6d ki a figyelt z\xF3n\xE1kat. Minden k\xE9pen a Figyel\xE9s / Kattint\xE1s / Input gombokkal adsz hozz\xE1 z\xF3n\xE1t, alatta a z\xF3n\xE1k list\xE1ja. "),a(),f(6,jt,5,0),l(7,"div",13)(8,"button",14),C("click",function(){m(t);let n=s();return h(n.refreshAllScreenshots())}),u(9),a(),f(10,Lt,2,0,"button",15),l(11,"label",16)(12,"input",17),X("ngModelChange",function(n){m(t);let i=s();return Y(i.showDebugOverlay,n)||(i.showDebugOverlay=n),h(n)}),C("ngModelChange",function(){m(t);let n=s();return h(n.refreshAllScreenshots())}),a(),u(13," Debug: szekci\xF3k \xE9s k\xE9k kurzor jel\xF6l\xE9se "),a()(),f(14,ce,7,2)(15,_e,2,0,"p",18)(16,pe,6,2,"p",19),l(17,"div",20)(18,"span",21),u(19,"Remote n\xE9zet grid:"),a(),l(20,"div",22),I(21,me,2,5,"button",23,ot),a()(),f(23,he,2,1,"p",24)(24,Ce,2,0,"p",25),l(25,"button",26),C("click",function(){m(t);let n=s();return h(n.saveConfig())}),u(26),a()()()}if(o&2){let t=s();c(6),g(t.displays_$().length>0?6:-1),c(2),v("disabled",t.busy_$()),c(),K(" ",t.busy_$()?"Screenshotok\u2026":"Screenshot friss\xEDt\xE9se (mind)"," "),c(),g(t.screenshots_$().length>0?10:-1),c(2),q("ngModel",t.showDebugOverlay),c(2),g(t.screenshots_$().length>0?14:t.busy_$()?-1:15),c(2),g(t.positioningClickSectionId_$()||t.positioningInputClickSectionId_$()?16:-1),c(5),R(ht(11,Bt)),c(2),g(t.validationMessage_$()?23:-1),c(),g(!t.canSave_$()&&!t.validationMessage_$()?24:-1),c(),v("disabled",t.busy_$()||!t.canSave_$()),c(),K(" ",t.busy_$()?"Ment\xE9s\u2026":"Konfig ment\xE9se"," ")}}function ge(o,d){if(o&1&&A(0,"img",87),o&2){let t=s(2).$implicit;v("src","data:image/png;base64,"+t.imageBase64,G)("alt",t.id)}}function ye(o,d){if(o&1&&(l(0,"pre",88),u(1),a()),o&2){let t=s(2).$implicit;c(),B(t.text)}}function fe(o,d){if(o&1&&(l(0,"div",85)(1,"p",86),u(2),a(),f(3,ge,1,2,"img",87)(4,ye,2,1,"pre",88),a()),o&2){let t=s().$implicit;c(2),B(t.id),c(),g(t.imageBase64?3:-1),c(),g(t.text!==void 0&&t.text!==""?4:-1)}}function be(o,d){if(o&1&&f(0,fe,5,3,"div",85),o&2){let t=d.$implicit;g(t.type!=="input"?0:-1)}}function Ee(o,d){if(o&1&&(l(0,"div")(1,"p",84),u(2,"Olvas\xE1si szekci\xF3k (kiv\xE1g\xE1s + OCR)"),a(),l(3,"div"),I(4,be,1,1,null,null,L),a()()),o&2){let t=s(2);c(3),j(t.remoteGridClass_$()),c(),R(t.regions_$())}}function Se(o,d){if(o&1&&A(0,"img",91),o&2){let t=s().$implicit;v("src","data:image/png;base64,"+t.imageBase64,G)("alt",t.id)}}function ve(o,d){if(o&1){let t=S();l(0,"div",89)(1,"p",90),u(2),a(),f(3,Se,1,2,"img",91),l(4,"div",92)(5,"input",93),X("ngModelChange",function(n){let i=m(t).$implicit,r=s(3);return Y(r.inputValues[i.id],n)||(r.inputValues[i.id]=n),h(n)}),a(),l(6,"div",94)(7,"app-ccap-voice-record-button",95),C("transcriptReady",function(n){let i=m(t).$implicit,r=s(3);return h(r.onRemoteInputVoiceTranscript(i.id,n))}),a()(),l(8,"button",96),C("click",function(){let n=m(t).$implicit,i=s(3);return h(i.doType(n.id))}),u(9," K\xFCld\xE9s "),a()()()}if(o&2){let t=d.$implicit,e=s(3);c(2),B(t.id),c(),g(t.imageBase64?3:-1),c(2),q("ngModel",e.inputValues[t.id]),v("name","input_remote_"+t.id)}}function we(o,d){if(o&1&&(l(0,"div")(1,"p",84),u(2,"Input mez\u0151k (z\xF3na k\xE9p + kattint\xE1s pont)"),a(),l(3,"div"),I(4,ve,10,4,"div",89,L),a()()),o&2){let t=s(2);c(3),j(t.remoteGridClass_$()),c(),R(t.inputRegions_$())}}function ke(o,d){if(o&1){let t=S();l(0,"button",99),C("click",function(){let n=m(t).$implicit,i=s(3);return h(i.doClick(n.id))}),u(1),a()}if(o&2){let t=d.$implicit;c(),K(" ",t.id," ")}}function $e(o,d){if(o&1&&(l(0,"div")(1,"p",84),u(2,"Kattint\xE1s gombok"),a(),l(3,"div",97),I(4,ke,2,1,"button",98,L),a()()),o&2){let t=s(2);c(4),R(t.clickSections_$())}}function Pe(o,d){if(o&1){let t=S();l(0,"div",7)(1,"div",79)(2,"label",80)(3,"input",81),X("ngModelChange",function(n){m(t);let i=s();return Y(i.withOcr,n)||(i.withOcr=n),h(n)}),a(),l(4,"span",82),u(5,"OCR a read-only szekci\xF3khoz"),a()(),l(6,"button",14),C("click",function(){m(t);let n=s();return h(n.loadRegions())}),u(7),a(),l(8,"label",80)(9,"input",83),C("ngModelChange",function(n){m(t);let i=s();return h(i.setAutoRefreshRegions(n))}),a(),l(10,"span",82),u(11,"Auto friss\xEDt\xE9s (5 s)"),a()()(),f(12,Ee,6,2,"div")(13,we,6,2,"div")(14,$e,6,0,"div"),a()}if(o&2){let t=s();c(3),q("ngModel",t.withOcr),c(3),v("disabled",t.busy_$()),c(),K(" ",t.busy_$()?"Bet\xF6lt\xE9s\u2026":"Region\xF6k bet\xF6lt\xE9se"," "),c(2),v("ngModel",t.autoRefreshRegions_$()),c(3),g(t.regions_$().length>0?12:-1),c(),g(t.inputRegions_$().length>0?13:-1),c(),g(t.clickSections_$().length>0?14:-1)}}function Me(o,d){if(o&1&&(l(0,"p",8),u(1),a()),o&2){let t=s();c(),B(t.message_$())}}function Ie(o,d){if(o&1&&A(0,"app-ccap-error-display",9),o&2){let t=s();v("error",t.lastError_$())}}var Dt=(()=>{class o{mcr_DS=D(Ft);globalError_CS=D(It);sanitizer=D(yt);doc=D(Ct);screenshotFullscreenContainer=ut("screenshotFullscreenContainer");screenshotFullscreen_$=E(!1);fullscreenChangeListener=null;screenshots_$=E([]);sections_$=E([]);regions_$=E([]);clickSections_$=F(()=>this.sections_$().filter(t=>t.type==="click"));inputSections_$=F(()=>this.sections_$().filter(t=>t.type==="input"));inputRegions_$=F(()=>this.regions_$().filter(t=>t.type==="input"));validationMessage_$=F(()=>{let t=this.sections_$();if(t.length===0)return"";let e=t.map(r=>(r.id??"").trim());if(e.findIndex(r=>r.length===0)>=0)return"Minden z\xF3n\xE1nak kell legyen nem \xFCres azonos\xEDt\xF3ja.";let i=new Set;for(let r of e){if(i.has(r))return"Az azonos\xEDt\xF3k egyediek legyenek: \u201E"+r+"\u201D ism\xE9tl\u0151dik.";i.add(r)}return""});busy_$=E(!1);message_$=E("");lastError_$=E(null);inputValues={};withOcr=!1;autoRefreshRegions_$=E(!1);regionsRefreshIntervalId=null;static REMOTE_REGIONS_AUTO_REFRESH_MS=5e3;showDebugOverlay=!1;displays_$=E([]);enabledDisplayKeys_$=E([]);remoteGridCols_$=E(2);remoteGridClass_$=F(()=>{let t=this.remoteGridCols_$();return`grid gap-4 ${t===1?"grid-cols-1":t===3?"grid-cols-3":t===4?"grid-cols-4":"grid-cols-2"}`});selectedDisplayKey=void 0;failedDisplayKeys_$=E(new Set);resizeSectionIndex_$=E(null);resizeHandle_$=E(null);resizeImgRef_$=E(null);resizeStartBounds_$=E(null);positioningClickSectionId_$=E(null);positioningInputClickSectionId_$=E(null);positionPreview_$=E(null);dragPointer_$=E(null);activeDragResizePointerId=null;capturedPointerTarget=null;capturedPointerId=null;mcrPocCursorTipViewBox="0 0 10 10";mcrPocCursorTipPath="M10 10 L2 10 L10 2 Z";frontSectionId_$=E(null);viewMode="setup";sectionTypes=[{value:"read-only",label:"Olvas\xE1s (kiv\xE1g\xE1s + OCR)"},{value:"click",label:"Kattint\xE1s"},{value:"input",label:"Input mez\u0151"}];SECTION_TYPE_LABELS={"read-only":"Olvas\xE1s (kiv\xE1g\xE1s + OCR)",click:"Kattint\xE1s",input:"Input mez\u0151"};sectionsByScreenId_$=F(()=>{let t=this.sections_$(),e={};for(let n of t){let i=n.displayKey??"";e[i]||(e[i]=[]),e[i].push(n)}return e});sectionIndexById_$=F(()=>{let t=this.sections_$(),e={};return t.forEach((n,i)=>{n.id!=null&&(e[n.id]=i)}),e});positionPreviewByDisplayKey_$=F(()=>{let t=this.positionPreview_$();return t?{[t.displayKey]:{xPct:t.xPct,yPct:t.yPct}}:{}});canSave_$=F(()=>{if(this.validationMessage_$()!=="")return!1;let t=this.sections_$().length>0,e=this.enabledDisplayKeys_$().length>0,n=this.remoteGridCols_$()!==2;return t||e||n});ngOnInit(){this.fullscreenChangeListener=()=>{let t=this.doc.fullscreenElement??null;this.screenshotFullscreen_$.set(!!t)},this.doc.addEventListener("fullscreenchange",this.fullscreenChangeListener),this.loadDisplays()}ngOnDestroy(){this.fullscreenChangeListener&&this.doc.removeEventListener("fullscreenchange",this.fullscreenChangeListener),this.doc.fullscreenElement!=null&&this.doc.exitFullscreen(),this.stopRegionsRefresh(),this.revokeScreenshotUrls(),this.finishDragOrResizeInteraction()}enterScreenshotFullscreen(){let e=this.screenshotFullscreenContainer()?.nativeElement;e?.requestFullscreen&&e.requestFullscreen()}exitScreenshotFullscreen(){this.doc.fullscreenElement!=null&&this.doc.exitFullscreen()}loadConfig(){return z(this,null,function*(){this.message_$.set(""),this.lastError_$.set(null);try{let t=yield this.mcr_DS.fetchConfig(),e=t.sections??[];this.sections_$.set(e.map(i=>this.withReconciledInputClickPoint(i))),this.enabledDisplayKeys_$.set(t.enabledDisplayKeys??[]);let n=t.remoteGridCols??2;this.remoteGridCols_$.set(n>=1&&n<=4?Math.round(n):2)}catch(t){this.globalError_CS.showError(t,"mcr-poc"),this.lastError_$.set(t)}})}loadDisplays(){return z(this,null,function*(){try{yield this.loadConfig();let t=yield this.mcr_DS.fetchDisplays();this.displays_$.set(t.displays??[]),(t.displays??[]).length>0&&this.selectedDisplayKey===void 0&&(this.selectedDisplayKey=t.displays[0].displayKey),yield this.refreshAllScreenshots()}catch(t){this.globalError_CS.showError(t,"mcr-poc"),this.lastError_$.set(t)}})}getEnabledDisplays(){let t=this.displays_$(),e=this.enabledDisplayKeys_$();return e.length===0?t:t.filter(n=>e.includes(n.displayKey))}isDisplayEnabled(t){let e=this.enabledDisplayKeys_$();return e.length===0?!0:e.includes(t)}toggleDisplayEnabled(t){let e=this.enabledDisplayKeys_$(),n=this.displays_$();if(e.length===0){let r=n.map(_=>_.displayKey).filter(_=>_!==t);this.enabledDisplayKeys_$.set(r);return}e.includes(t)?this.enabledDisplayKeys_$.set(e.filter(i=>i!==t)):this.enabledDisplayKeys_$.set([...e,t]),this.refreshAllScreenshots()}revokeScreenshotUrls(){for(let t of this.screenshots_$())if(t.url.startsWith("blob:"))try{URL.revokeObjectURL(t.url)}catch{}}tryCreateScreenshotEntry(t,e,n){return z(this,null,function*(){let i=yield t.arrayBuffer(),r=new Blob([i],{type:"image/png"}),_=yield new Promise((p,x)=>{let y=new FileReader;y.onload=()=>{let b=y.result;p(typeof b=="string"?b:"")},y.onerror=()=>x(y.error??new Error("FileReader failed")),y.readAsDataURL(r)});return _.startsWith("data:")?new Promise(p=>{let x=new Image;x.onload=()=>{p({displayKey:e,name:n,url:_,safeUrl:this.sanitizer.bypassSecurityTrustUrl(_),naturalWidth:x.naturalWidth,naturalHeight:x.naturalHeight})},x.onerror=()=>p(null),x.src=_}):null})}refreshAllScreenshots(){return z(this,null,function*(){if(this.displays_$().length===0&&!this.showDebugOverlay){this.message_$.set("Nincs megjelen\xEDt\u0151. El\u0151sz\xF6r bet\xF6ltj\xFCk a monitorkezel\u0151t.");return}let t=this.showDebugOverlay?this.displays_$():this.getEnabledDisplays();if(t.length===0&&!this.showDebugOverlay){this.message_$.set("Nincs enged\xE9lyezett megjelen\xEDt\u0151. Enged\xE9lyezz legal\xE1bb egyet a list\xE1b\xF3l.");return}this.busy_$.set(!0),this.message_$.set(""),this.lastError_$.set(null),this.revokeScreenshotUrls(),this.screenshots_$.set([]),this.failedDisplayKeys_$.set(new Set);try{if(this.showDebugOverlay){let e=yield this.mcr_DS.fetchScreenshotDebug(),n=e.type.includes("image");if(e.size>=100&&n){let i=yield this.tryCreateScreenshotEntry(e,"","Debug (szekci\xF3k + kurzor)");if(i!==null)this.screenshots_$.set([i]),this.message_$.set("Debug screenshot bet\xF6ltve.");else{let r={message:"Screenshot k\xE9p bet\xF6lt\xE9se sikertelen (blob decode a megjelen\xEDt\xE9s el\u0151tt).",context:"mcr-poc-screenshot-img-load",displayKey:"",slotName:"Debug (szekci\xF3k + kurzor)",urlType:"blob"};this.lastError_$.set(r),this.globalError_CS.showError(r,"mcr-poc"),this.message_$.set("A debug screenshot nem dek\xF3dolhat\xF3. Ellen\u0151rizd a szervert.")}}else this.message_$.set("A screenshot \xFCres vagy nem k\xE9p. Ellen\u0151rizd a szervert.")}else{let e=[],n=null;for(let i=0;i<t.length;i++){let r=t[i],_=yield this.mcr_DS.fetchScreenshot(r.displayKey),p=_.type.includes("image");if(_.size>=100&&p){let x=r.name?.trim()?r.name:`Monitor ${i+1}`,y=yield this.tryCreateScreenshotEntry(_,r.displayKey,x);y!==null?e.push(y):n===null&&(n={message:"Screenshot k\xE9p bet\xF6lt\xE9se sikertelen (blob decode a megjelen\xEDt\xE9s el\u0151tt).",context:"mcr-poc-screenshot-img-load",displayKey:r.displayKey,slotName:x,urlType:"blob"})}}n!==null&&(this.lastError_$.set(n),this.globalError_CS.showError(n,"mcr-poc"),tt.DyFM_Log.error("[MCR POC] Screenshot blob decode failed",n)),this.screenshots_$.set(e),this.message_$.set(e.length>0?`${e.length} monitor k\xE9pe bet\xF6ltve. Jel\xF6lj ki egy ter\xFCletet.`:"Nem siker\xFClt k\xE9pet k\xE9sz\xEDteni egyik monitorr\xF3l sem.")}}catch(e){let n=this.showDebugOverlay?"screenshot-debug":"screenshot-fetch",i=Mt.getErrorMessageForDisplay(e),r={message:`Screenshot hiba (${n}). ${i}`,context:n,urlType:"api",error:e};this.globalError_CS.showError(r,"mcr-poc"),this.lastError_$.set(r),this.message_$.set("Screenshot hiba. Ellen\u0151rizd a szerver kapcsolatot \xE9s jogosults\xE1gokat."),tt.DyFM_Log.error("[MCR POC] Screenshot fetch failed",{context:n,error:e,payload:r})}finally{this.busy_$.set(!1)}})}onScreenshotImageError(t){this.failedDisplayKeys_$.update(i=>{let r=new Set(i);return r.add(t.displayKey),r});let e=t.url??"",n={message:"Screenshot k\xE9p bet\xF6lt\xE9se sikertelen (blob URL decode hiba).",context:"mcr-poc-screenshot-img-load",displayKey:t.displayKey,slotName:t.name,urlType:e.startsWith("blob:")?"blob":"unknown",urlPrefix:e.startsWith("blob:")?"blob:":e.slice(0,50)};this.lastError_$.set(n),this.globalError_CS.showError(n,"mcr-poc"),tt.DyFM_Log.error("[MCR POC] Screenshot image load failed",n)}clampClickPointToInputBounds(t,e,n){let i=t.x,r=t.x+t.width-1,_=t.y,p=t.y+t.height-1;return{x:Math.max(i,Math.min(Math.round(Number(e)),r)),y:Math.max(_,Math.min(Math.round(Number(n)),p))}}computeDefaultInputClickPoint(t){let e=t.x+Math.floor(t.width/2),n=t.y+Math.floor(t.height/2);return{x:e,y:n}}reconcileInputClickPointCoords(t,e,n,i){let r=this.clampClickPointToInputBounds(t,n,i),_=this.clampPointToScreenshotPixels(e,r.x,r.y);return this.clampClickPointToInputBounds(t,_.x,_.y)}withReconciledInputClickPoint(t){if(t.type!=="input")return t;let e=t.bounds,n=this.computeDefaultInputClickPoint(e),i=t.clickPoint!==void 0?t.clickPoint.x:n.x,r=t.clickPoint!==void 0?t.clickPoint.y:n.y,_=this.reconcileInputClickPointCoords(e,t.displayKey,i,r);return{id:t.id,type:t.type,bounds:t.bounds,displayKey:t.displayKey,clickPoint:{x:_.x,y:_.y}}}inputSectionOverlayPoint(t){return t.type!=="input"?{x:0,y:0}:t.clickPoint!==void 0?{x:t.clickPoint.x,y:t.clickPoint.y}:this.computeDefaultInputClickPoint(t.bounds)}clampPointToScreenshotPixels(t,e,n){let i=t??"",r=this.screenshots_$().find(b=>(b.displayKey??"")===i),_=r?.naturalWidth??0,p=r?.naturalHeight??0,x=Math.max(0,Math.round(Number(e))),y=Math.max(0,Math.round(Number(n)));return _>0&&p>0&&(x=Math.min(x,_-1),y=Math.min(y,p-1)),{x,y}}displayToImageCoordsFromEl(t,e,n){if(!t||!t.naturalWidth||!t.naturalHeight)return{x:e,y:n};let i=t.getBoundingClientRect(),r=t.naturalWidth/i.width,_=t.naturalHeight/i.height;return{x:Math.round(e*r),y:Math.round(n*_)}}imagePixelCoordsFromClient(t,e,n){let i=t.getBoundingClientRect(),r=e-i.left,_=n-i.top;return this.displayToImageCoordsFromEl(t,r,_)}beginPointerCaptureForDragOrResize(t){this.activeDragResizePointerId=t.pointerId;let e=t.currentTarget;if(e instanceof HTMLElement&&typeof e.setPointerCapture=="function")try{e.setPointerCapture(t.pointerId),this.capturedPointerTarget=e,this.capturedPointerId=t.pointerId}catch{this.capturedPointerTarget=null,this.capturedPointerId=null}}releasePointerCaptureIfAny(){let t=this.capturedPointerTarget,e=this.capturedPointerId;if(t!=null&&e!=null&&typeof t.releasePointerCapture=="function")try{t.releasePointerCapture(e)}catch{}this.capturedPointerTarget=null,this.capturedPointerId=null}finishDragOrResizeInteraction(){this.releasePointerCaptureIfAny(),this.activeDragResizePointerId=null,this.dragPointer_$()!==null&&this.dragPointer_$.set(null),this.resizeSectionIndex_$()!==null&&(this.resizeSectionIndex_$.set(null),this.resizeHandle_$.set(null),this.resizeImgRef_$.set(null),this.resizeStartBounds_$.set(null))}static DEFAULT_SECTION_WIDTH=100;static DEFAULT_SECTION_HEIGHT=28;addSectionForScreen(t,e){let n=t.naturalWidth??0,i=t.naturalHeight??0,r=e==="click",_=r?1:o.DEFAULT_SECTION_WIDTH,p=r?1:o.DEFAULT_SECTION_HEIGHT,x=20,y=20;n>=_&&i>=p&&(x=Math.max(0,Math.floor(n/2-_/2)),y=Math.max(0,Math.floor(i/2-p/2)));let b=`section-${Date.now()}`,w={x,y,width:_,height:p},k=t.displayKey?.length?t.displayKey:void 0,$;if(e==="input"){let M=this.computeDefaultInputClickPoint(w),P=this.reconcileInputClickPointCoords(w,k,M.x,M.y);$={id:b,type:e,bounds:w,displayKey:k,clickPoint:{x:P.x,y:P.y}}}else $={id:b,type:e,bounds:w,displayKey:k};this.sections_$.set([...this.sections_$(),$]),this.message_$.set(`Szekci\xF3 hozz\xE1adva: ${b}`)}startPositioningClick(t){this.positioningInputClickSectionId_$.set(null),this.positioningClickSectionId_$.set(t),this.message_$.set("\xC9rintsd meg / kattints a k\xE9perny\u0151k\xE9pre a kattint\xE1s pontj\xE1nak megad\xE1s\xE1hoz.")}startPositioningInputClick(t){this.positioningClickSectionId_$.set(null),this.positioningInputClickSectionId_$.set(t),this.message_$.set("\xC9rintsd meg / kattints a ci\xE1n kereten bel\xFClre \u2014 az input kattint\xE1si pont csak a mez\u0151n bel\xFCl \xE1ll\xEDthat\xF3 (alapb\xF3l k\xF6z\xE9p).")}cancelPositioningClick(){this.positioningClickSectionId_$.set(null),this.positioningInputClickSectionId_$.set(null),this.message_$.set("")}onScreenshotPointerUpForPosition(t,e){if(!t.isPrimary||t.button!==0)return;let n=this.positioningClickSectionId_$(),i=this.positioningInputClickSectionId_$(),r=n??i;if(!r)return;let _=this.sections_$().find(nt=>nt.id===r);if(!_)return;let p=_.type==="click",x=_.type==="input"&&i!==null;if(!p&&!x)return;let y=e.displayKey??"";if((_.displayKey??"")!==y)return;let b=t.currentTarget;if(!(b instanceof HTMLImageElement))return;let w=b;if(!w.naturalWidth||!w.naturalHeight)return;let k=this.imagePixelCoordsFromClient(w,t.clientX,t.clientY),$=w.naturalWidth,M=w.naturalHeight,P=Math.max(0,Math.min(k.x,$-1)),W=Math.max(0,Math.min(k.y,M-1)),et=this.sections_$().findIndex(nt=>nt.id===r);et<0||(p?(this.updateSectionBounds(et,{x:P,y:W,width:1,height:1}),this.positioningClickSectionId_$.set(null),this.message_$.set("Kattint\xE1s pont be\xE1ll\xEDtva.")):(this.updateSectionClickPoint(et,{x:P,y:W}),this.positioningInputClickSectionId_$.set(null),this.message_$.set("Input kattint\xE1si pont be\xE1ll\xEDtva.")))}onScreenshotPointerMoveOverImage(t,e){if(!this.positioningClickSectionId_$()&&!this.positioningInputClickSectionId_$()){this.positionPreview_$.set(null);return}let n=t.currentTarget;if(!(n instanceof HTMLImageElement))return;let i=n;if(!i.naturalWidth||!i.naturalHeight)return;let r=this.imagePixelCoordsFromClient(i,t.clientX,t.clientY),_=this.positioningInputClickSectionId_$();if(_){let w=this.sections_$().find(k=>k.id===_);if(w?.type==="input"){let k=this.clampClickPointToInputBounds(w.bounds,r.x,r.y);r={x:k.x,y:k.y}}}let p=i.naturalWidth,x=i.naturalHeight,y=Math.max(0,Math.min(r.x,p))/p*100,b=Math.max(0,Math.min(r.y,x))/x*100;this.positionPreview_$.set({displayKey:e.displayKey??"",xPct:y,yPct:b})}onScreenshotPointerLeaveImage(){this.positionPreview_$.set(null)}isClickSection(t){return t.type==="click"}bringSectionToFront(t){this.frontSectionId_$.set(t)}onClickPointPointerDown(t,e,n,i){if(t.preventDefault(),t.stopPropagation(),n==="click"&&e.type!=="click"||n==="inputClick"&&e.type!=="input"||(e.displayKey??"")!==(i.displayKey??""))return;let r=t.target;if(!(r instanceof HTMLElement))return;let p=r.closest(".relative")?.querySelector("img")??null;p===null||!p.naturalWidth||!p.naturalHeight||(this.dragPointer_$.set({sectionId:e.id,kind:n,img:p}),this.beginPointerCaptureForDragOrResize(t))}onSectionResizeHandlePointerDown(t,e,n){if(e.type==="click")return;t.preventDefault(),t.stopPropagation();let i=t.target;if(!(i instanceof HTMLElement))return;let _=i.closest(".relative")?.querySelector("img")??null;if(_===null||!_.naturalWidth||!_.naturalHeight)return;let p=this.sections_$().findIndex(x=>x.id===e.id);p<0||(this.resizeImgRef_$.set(_),this.resizeSectionIndex_$.set(p),this.resizeHandle_$.set(n),this.resizeStartBounds_$.set({x:e.bounds.x,y:e.bounds.y,width:e.bounds.width,height:e.bounds.height}),this.beginPointerCaptureForDragOrResize(t))}onDocumentPointerMove(t){if(this.activeDragResizePointerId!==null&&t.pointerId!==this.activeDragResizePointerId)return;let e=this.dragPointer_$();if(e!=null){let w=this.imagePixelCoordsFromClient(e.img,t.clientX,t.clientY),k=this.sections_$().find(P=>P.id===e.sectionId);if(!k){this.finishDragOrResizeInteraction();return}let $=this.clampPointToScreenshotPixels(k.displayKey,w.x,w.y),M=this.sections_$().findIndex(P=>P.id===e.sectionId);if(M<0)return;e.kind==="click"?this.updateSectionBounds(M,{x:$.x,y:$.y,width:1,height:1}):this.updateSectionClickPoint(M,{x:$.x,y:$.y});return}let n=this.resizeSectionIndex_$(),i=this.resizeHandle_$(),r=this.resizeImgRef_$(),_=this.resizeStartBounds_$();if(n===null||i===null||r===null||_===null)return;let p=this.imagePixelCoordsFromClient(r,t.clientX,t.clientY),x=r.naturalWidth,y=r.naturalHeight,b=this.computeResizedBounds(i,p.x,p.y,_,x,y);this.updateSectionBounds(n,b)}onDocumentPointerUp(t){this.activeDragResizePointerId!==null&&t.pointerId!==this.activeDragResizePointerId||this.finishDragOrResizeInteraction()}onDocumentPointerCancel(t){this.activeDragResizePointerId!==null&&t.pointerId!==this.activeDragResizePointerId||this.finishDragOrResizeInteraction()}computeResizedBounds(t,e,n,i,r,_){let p=i.x,x=i.x+i.width,y=i.y,b=i.y+i.height,w=t==="n"||t==="nw"||t==="ne",k=t==="s"||t==="sw"||t==="se",$=t==="w"||t==="nw"||t==="sw",M=t==="e"||t==="ne"||t==="se";w&&(y=Math.max(0,Math.min(n,b-1))),k&&(b=Math.min(_,Math.max(n,y+1))),$&&(p=Math.max(0,Math.min(e,x-1))),M&&(x=Math.min(r,Math.max(e,p+1)));let P=Math.max(1,x-p),W=Math.max(1,b-y);return{x:p,y,width:P,height:W}}removeSectionAt(t){let e=this.sections_$().filter((n,i)=>i!==t);this.sections_$.set(e)}updateSectionId(t,e){let n=[...this.sections_$()];if(t<0||t>=n.length)return;let i=typeof e=="string"?e.trim():"";n[t]={id:i,type:n[t].type,bounds:n[t].bounds,displayKey:n[t].displayKey,clickPoint:n[t].clickPoint},this.sections_$.set(n)}updateSectionBounds(t,e){let n=[...this.sections_$()];if(t<0||t>=n.length)return;let i=n[t].bounds,r=n[t].type==="click",_=e.x!==void 0?Math.max(0,Math.round(Number(e.x))):i.x,p=e.y!==void 0?Math.max(0,Math.round(Number(e.y))):i.y,x=e.width!==void 0?Math.max(1,Math.round(Number(e.width))):i.width,y=e.height!==void 0?Math.max(1,Math.round(Number(e.height))):i.height;if(r){let b=this.clampPointToScreenshotPixels(n[t].displayKey,_,p);_=b.x,p=b.y,x=1,y=1}n[t]={id:n[t].id,type:n[t].type,bounds:{x:_,y:p,width:x,height:y},displayKey:n[t].displayKey,clickPoint:n[t].clickPoint},n[t].type==="input"&&(n[t]=this.withReconciledInputClickPoint(n[t])),this.sections_$.set(n)}updateSectionClickPoint(t,e){let n=[...this.sections_$()];if(t<0||t>=n.length||n[t].type!=="input")return;let i=n[t].bounds,r=n[t].displayKey,_=this.reconcileInputClickPointCoords(i,r,e.x,e.y);n[t]={id:n[t].id,type:n[t].type,bounds:n[t].bounds,displayKey:n[t].displayKey,clickPoint:{x:_.x,y:_.y}},this.sections_$.set(n)}moveSectionUp(t){if(t<=0)return;let e=[...this.sections_$()],n=e[t-1];e[t-1]=e[t],e[t]=n,this.sections_$.set(e)}moveSectionDown(t){let e=[...this.sections_$()];if(t<0||t>=e.length-1)return;let n=e[t+1];e[t+1]=e[t],e[t]=n,this.sections_$.set(e)}moveSectionUpBySection(t){this.moveSectionUp(this.getSectionIndex(t))}moveSectionDownBySection(t){this.moveSectionDown(this.getSectionIndex(t))}removeSectionBySection(t){this.removeSectionAt(this.getSectionIndex(t))}updateSectionIdBySection(t,e){this.updateSectionId(this.getSectionIndex(t),e)}updateSectionBoundsBySection(t,e){this.updateSectionBounds(this.getSectionIndex(t),e)}trackSectionByIndex(t){return t}getSectionsForDisplayKey(t){let e=t??"";return this.sections_$().filter(n=>(n.displayKey??"")===e)}getSectionIndex(t){return this.sections_$().findIndex(e=>e.id===t.id)}getPositionPreviewForDisplayKey(t){let e=this.positionPreview_$();return!e||e.displayKey!==t?null:{xPct:e.xPct,yPct:e.yPct}}resizeHandles=zt;RESIZE_HANDLE_WRAPPER_CLASS={n:"group flex items-center justify-center min-w-11 min-h-11 touch-none left-1/2 top-0 -translate-x-1/2 -translate-y-1/2",s:"group flex items-center justify-center min-w-11 min-h-11 touch-none left-1/2 bottom-0 -translate-x-1/2 translate-y-1/2",e:"group flex items-center justify-center min-w-11 min-h-11 touch-none right-0 top-1/2 translate-x-1/2 -translate-y-1/2",w:"group flex items-center justify-center min-w-11 min-h-11 touch-none left-0 top-1/2 -translate-x-1/2 -translate-y-1/2",nw:"group flex items-center justify-center min-w-11 min-h-11 touch-none left-0 top-0 -translate-x-1/2 -translate-y-1/2",ne:"group flex items-center justify-center min-w-11 min-h-11 touch-none right-0 top-0 translate-x-1/2 -translate-y-1/2",sw:"group flex items-center justify-center min-w-11 min-h-11 touch-none left-0 bottom-0 -translate-x-1/2 translate-y-1/2",se:"group flex items-center justify-center min-w-11 min-h-11 touch-none right-0 bottom-0 translate-x-1/2 translate-y-1/2"};RESIZE_HANDLE_KNOB_CLASS="block w-2 h-2 shrink-0 bg-neonCyan border border-neutral-100 rounded-sm opacity-80 group-hover:opacity-100 pointer-events-none";RESIZE_HANDLE_CURSOR={n:"n-resize",s:"s-resize",e:"e-resize",w:"w-resize",nw:"nw-resize",ne:"ne-resize",sw:"sw-resize",se:"se-resize"};sectionTypeLabel(t){return this.sectionTypes.find(n=>n.value===t)?.label??t}canSave(){return this.canSave_$()}saveConfig(){return z(this,null,function*(){this.busy_$.set(!0),this.message_$.set(""),this.lastError_$.set(null);try{yield this.mcr_DS.saveConfig({sections:this.sections_$(),enabledDisplayKeys:this.enabledDisplayKeys_$(),remoteGridCols:this.remoteGridCols_$()}),this.message_$.set("Konfig mentve.")}catch(t){this.globalError_CS.showError(t,"mcr-poc"),this.lastError_$.set(t)}finally{this.busy_$.set(!1)}})}loadRegions(){return z(this,null,function*(){this.busy_$.set(!0),this.message_$.set(""),this.lastError_$.set(null);try{let t=yield this.mcr_DS.fetchRegions({withOcr:this.withOcr});this.regions_$.set(t.regions??[]),this.message_$.set(`${(t.regions??[]).length} region bet\xF6ltve.`)}catch(t){this.globalError_CS.showError(t,"mcr-poc"),this.lastError_$.set(t)}finally{this.busy_$.set(!1)}})}setAutoRefreshRegions(t){this.autoRefreshRegions_$.set(t),t?this.startRegionsRefresh():this.stopRegionsRefresh()}startRegionsRefresh(){this.stopRegionsRefresh(),this.regionsRefreshIntervalId=setInterval(()=>{this.viewMode==="remote"&&this.loadRegions()},o.REMOTE_REGIONS_AUTO_REFRESH_MS)}stopRegionsRefresh(){this.regionsRefreshIntervalId!==null&&(clearInterval(this.regionsRefreshIntervalId),this.regionsRefreshIntervalId=null)}onRemoteInputVoiceTranscript(t,e){let n=e?.trim()??"";if(!n)return;let i=t,r=(this.inputValues[i]??"").trim(),_=r.length>0?r+" "+n:n;this.inputValues=at(lt({},this.inputValues),{[i]:_})}doClick(t){return z(this,null,function*(){this.message_$.set(""),this.lastError_$.set(null);try{yield this.mcr_DS.click({sectionId:t}),this.message_$.set("Kattint\xE1s elk\xFCldve.")}catch(e){this.globalError_CS.showError(e,"mcr-poc"),this.lastError_$.set(e)}})}doType(t){return z(this,null,function*(){let e=this.inputValues[t]??"";this.message_$.set(""),this.lastError_$.set(null);try{yield this.mcr_DS.type({sectionId:t,text:e}),this.message_$.set("Sz\xF6veg elk\xFCldve."),this.inputValues[t]="",yield this.loadRegions()}catch(n){this.globalError_CS.showError(n,"mcr-poc"),this.lastError_$.set(n)}})}setViewMode(t){this.viewMode=t,t!=="remote"&&(this.stopRegionsRefresh(),this.autoRefreshRegions_$.set(!1)),t==="remote"&&this.loadConfig()}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=_t({type:o,selectors:[["app-ccap-master-control-remote-poc"]],viewQuery:function(e,n){e&1&&pt(n.screenshotFullscreenContainer,At,5),e&2&&mt()},hostBindings:function(e,n){e&1&&C("pointermove",function(r){return n.onDocumentPointerMove(r)},!1,Z)("pointerup",function(r){return n.onDocumentPointerUp(r)},!1,Z)("pointercancel",function(r){return n.onDocumentPointerCancel(r)},!1,Z)},decls:14,vars:12,consts:[["screenshotFullscreenContainer",""],[1,"max-w-4xl","mx-auto","p-4","gt-xs:p-6","text-neutral-100"],[1,"text-2xl","font-bold","mb-4"],[1,"text-neutral-400","mb-4"],[1,"flex","gap-2","mb-4"],["type","button",1,"px-4","py-2","border","border-neonDefault","rounded","text-neutral-300","hover:bg-neutral-800","transition-colors",3,"click"],[1,"space-y-8","mb-6"],[1,"space-y-6","mb-6"],[1,"text-sm","mb-4","text-neutral-300"],["sourceLabelOverride","POC Remote",1,"mb-4","block",3,"error"],[1,"rounded-lg","border","border-neonDefault","bg-neutral-800/50","p-4"],[1,"text-lg","font-semibold","text-neutral-200","mb-2"],[1,"text-sm","text-neutral-400","mb-3"],[1,"flex","flex-wrap","items-center","gap-4","mb-3"],["type","button",1,"px-4","py-2","border","border-neonCyan","rounded","text-neutral-300","hover:bg-neutral-800","disabled:opacity-50","transition-colors",3,"click","disabled"],["type","button",1,"px-4","py-2","border","border-neonCyan","rounded","text-neutral-300","hover:bg-neutral-800","transition-colors"],[1,"inline-flex","items-center","gap-2","cursor-pointer","select-none","text-sm","text-neutral-300"],["type","checkbox","name","showDebugOverlay",3,"ngModelChange","ngModel"],[1,"text-neutral-500","text-sm"],[1,"text-sm","text-neonCyan","mt-3"],[1,"flex","flex-wrap","items-center","gap-3","mt-4"],[1,"text-sm","text-neutral-400"],[1,"flex","gap-1"],["type","button",1,"px-3","py-1.5","text-sm","border","border-neutral-600","rounded","text-neutral-300","hover:bg-neutral-700","transition-colors",3,"border-neonCyan","bg-neutral-700"],[1,"text-sm","text-amber-400","mt-3"],[1,"text-xs","text-neutral-500","mt-3","max-w-xl"],["type","button",1,"mt-4","px-4","py-2","bg-ccapAccent","text-white","rounded","disabled:opacity-50","transition-colors",3,"click","disabled"],[1,"text-sm","text-neutral-400","mb-2"],[1,"flex","flex-wrap","gap-x-6","gap-y-1","mb-3"],["type","checkbox",3,"change","checked","name"],[1,"text-neutral-500","font-mono"],["type","button",1,"px-4","py-2","border","border-neonCyan","rounded","text-neutral-300","hover:bg-neutral-800","transition-colors",3,"click"],[1,"text-neutral-500","text-sm","mb-2"],[1,"relative","flex","flex-wrap","gap-4"],["type","button",1,"fixed","top-4","right-4","z-50","px-4","py-2","bg-neutral-800","border","border-neonCyan","text-neutral-200","rounded","hover:bg-neutral-700","transition-colors"],[1,"relative","inline-block","rounded","border","border-neonDefault","overflow-hidden","bg-neutral-900"],["type","button",1,"fixed","top-4","right-4","z-50","px-4","py-2","bg-neutral-800","border","border-neonCyan","text-neutral-200","rounded","hover:bg-neutral-700","transition-colors",3,"click"],[1,"text-xs","px-2","py-1","border-b","border-neutral-700","space-y-0.5"],[1,"text-neutral-200"],[1,"relative"],[1,"flex","items-center","justify-center","min-h-[120px]","w-[200px]","bg-neutral-800","text-amber-400","text-sm","px-2","py-4"],[1,"flex","flex-wrap","gap-2","p-2","border-t","border-neutral-700","bg-neutral-800/50"],["type","button",1,"px-2","py-1","text-xs","border","border-neonCyan","rounded","text-neutral-300","hover:bg-neutral-700","transition-colors",3,"click"],[1,"p-2","border-t","border-neutral-700","bg-neutral-800/30"],[1,"block","max-h-[60vh]","w-auto",3,"error","pointerup","pointermove","pointerleave","src","alt"],[1,"absolute","inset-0",3,"pointer-events-none","cursor-crosshair"],[1,"absolute","inset-0"],["title","Kattint\xE1s pont \u2014 h\xFAzd \xFAj helyre (kurzor-hegy a c\xE9lpixel)",1,"absolute","z-[25]","-translate-x-full","-translate-y-full","text-neonCyan","drop-shadow-[0_1px_2px_rgba(0,0,0,0.9)]","pointer-events-auto","cursor-grab","active:cursor-grabbing","touch-none","select-none",3,"left","top"],["title","Input kattint\xE1s pont \u2014 h\xFAzd \xFAj helyre (kurzor-hegy a c\xE9lpixel)",1,"absolute","z-[25]","-translate-x-full","-translate-y-full","text-amber-400","drop-shadow-[0_1px_2px_rgba(0,0,0,0.9)]","pointer-events-auto","cursor-grab","active:cursor-grabbing","touch-none","select-none",3,"left","top"],[1,"absolute","border-2","border-neonCyan","box-border","pointer-events-auto",3,"left","top","width","height","zIndex"],["title","Kattint\xE1s pont \u2014 h\xFAzd \xFAj helyre (kurzor-hegy a c\xE9lpixel)",1,"absolute","z-[25]","-translate-x-full","-translate-y-full","text-neonCyan","drop-shadow-[0_1px_2px_rgba(0,0,0,0.9)]","pointer-events-auto","cursor-grab","active:cursor-grabbing","touch-none","select-none",3,"pointerdown"],["width","11","height","11","aria-hidden","true"],["fill","currentColor"],["title","Input kattint\xE1s pont \u2014 h\xFAzd \xFAj helyre (kurzor-hegy a c\xE9lpixel)",1,"absolute","z-[25]","-translate-x-full","-translate-y-full","text-amber-400","drop-shadow-[0_1px_2px_rgba(0,0,0,0.9)]","pointer-events-auto","cursor-grab","active:cursor-grabbing","touch-none","select-none",3,"pointerdown"],[1,"absolute","border-2","border-neonCyan","box-border","pointer-events-auto",3,"pointerdown"],[1,"absolute",3,"class","cursor"],[1,"absolute",3,"pointerdown"],["aria-hidden","true"],["title","El\u0151n\xE9zet \u2014 kurzor-hegy a kattint\xE1s helye",1,"absolute","pointer-events-none","z-[26]","-translate-x-full","-translate-y-full","drop-shadow-[0_1px_2px_rgba(0,0,0,0.9)]","opacity-90",3,"text-neonCyan","text-amber-400","left","top"],["title","El\u0151n\xE9zet \u2014 kurzor-hegy a kattint\xE1s helye",1,"absolute","pointer-events-none","z-[26]","-translate-x-full","-translate-y-full","drop-shadow-[0_1px_2px_rgba(0,0,0,0.9)]","opacity-90"],[1,"text-xs","text-neutral-400","mb-2"],[1,"space-y-1.5"],[1,"flex","flex-wrap","items-center","gap-2","px-2","py-1.5","bg-neutral-800","rounded","border","border-neutral-700","text-sm"],["type","text","placeholder","Z\xF3na azonos\xEDt\xF3",1,"w-28","min-w-0","px-1.5","py-0.5","font-mono","text-xs","bg-neutral-700","border","border-neutral-600","rounded","text-neutral-100","focus:border-neonCyan",3,"ngModelChange","ngModel","name"],[1,"text-neutral-500","text-xs"],["type","number","min","0",1,"w-14","px-1","py-0.5","text-xs","bg-neutral-700","border","border-neutral-600","rounded",3,"ngModelChange","ngModel","name"],[1,"ml-auto","flex","items-center","gap-0.5"],["type","button",1,"px-1.5","py-0.5","text-neutral-400","hover:bg-neutral-700","hover:text-neutral-200","rounded","text-xs",3,"title"],["type","button","title","Fel",1,"p-1","rounded","text-neutral-400","hover:bg-neutral-700","disabled:opacity-40",3,"click","disabled"],["type","button","title","Le",1,"p-1","rounded","text-neutral-400","hover:bg-neutral-700","disabled:opacity-40",3,"click","disabled"],["type","button",1,"px-1.5","py-0.5","text-neonCyan","hover:bg-neutral-700","rounded","text-xs"],["type","button",1,"px-1.5","py-0.5","text-amber-400","hover:bg-neutral-700","rounded","text-xs"],["type","button",1,"px-1.5","py-0.5","text-red-400","hover:bg-red-900/30","rounded","text-xs",3,"click"],["type","number","min","1",1,"w-12","px-1","py-0.5","text-xs","bg-neutral-700","border","border-neutral-600","rounded",3,"ngModelChange","ngModel","name"],["type","button",1,"px-1.5","py-0.5","text-neutral-400","hover:bg-neutral-700","hover:text-neutral-200","rounded","text-xs",3,"click","title"],["type","button",1,"px-1.5","py-0.5","text-neonCyan","hover:bg-neutral-700","rounded","text-xs",3,"click"],["type","button",1,"px-1.5","py-0.5","text-amber-400","hover:bg-neutral-700","rounded","text-xs",3,"click"],["type","button",1,"ml-2","underline","hover:no-underline",3,"click"],["type","button",1,"px-3","py-1.5","text-sm","border","border-neutral-600","rounded","text-neutral-300","hover:bg-neutral-700","transition-colors",3,"click"],[1,"flex","flex-wrap","items-center","gap-4"],[1,"flex","items-center","gap-2","cursor-pointer","select-none"],["type","checkbox","name","withOcr",3,"ngModelChange","ngModel"],[1,"text-sm","text-neutral-300"],["type","checkbox","name","autoRefreshRegions",3,"ngModelChange","ngModel"],[1,"text-sm","font-medium","mb-2"],[1,"rounded","border","border-neonDefault","bg-neutral-800","p-2"],[1,"font-mono","text-xs","text-neutral-400","mb-1"],[1,"max-w-full","h-auto","rounded","mb-2",3,"src","alt"],[1,"text-xs","text-neutral-300","whitespace-pre-wrap","break-words"],[1,"rounded","border","border-neonDefault","bg-neutral-800","p-3"],[1,"font-mono","text-xs","text-neutral-400","mb-2"],[1,"max-w-full","h-auto","rounded","mb-2","max-h-32","object-contain",3,"src","alt"],[1,"flex","flex-wrap","items-center","gap-2"],["type","text","placeholder","Sz\xF6veg\u2026",1,"flex-1","min-w-[120px]","px-3","py-2","bg-neutral-700","border","border-neonDefault","rounded","text-neutral-100","text-sm",3,"ngModelChange","ngModel","name"],[1,"shrink-0","flex","items-center","self-center"],[3,"transcriptReady"],["type","button",1,"px-4","py-2","bg-ccapAccent","text-white","rounded","hover:opacity-90","transition-opacity",3,"click"],[1,"flex","flex-wrap","gap-2"],["type","button",1,"px-4","py-2","border","border-neonCyan","rounded","text-neutral-300","hover:shadow-neon-glow-cyan","transition-colors"],["type","button",1,"px-4","py-2","border","border-neonCyan","rounded","text-neutral-300","hover:shadow-neon-glow-cyan","transition-colors",3,"click"]],template:function(e,n){e&1&&(l(0,"div",1)(1,"h1",2),u(2,"Master Control Remote POC"),a(),l(3,"p",3),u(4," Be\xE1ll\xEDt\xE1s: screenshot alapj\xE1n szekci\xF3k kijel\xF6l\xE9se (olvas\xE1s, kattint\xE1s, input). Remote: kiv\xE1g\xE1sok megjelen\xEDt\xE9se, kattint\xE1s gombok, sz\xF6veg k\xFCld\xE9s. "),a(),l(5,"div",4)(6,"button",5),C("click",function(){return n.setViewMode("setup")}),u(7," Be\xE1ll\xEDt\xE1s "),a(),l(8,"button",5),C("click",function(){return n.setViewMode("remote")}),u(9," Remote "),a()(),f(10,xe,27,12,"div",6)(11,Pe,15,7,"div",7)(12,Me,2,1,"p",8)(13,Ie,1,1,"app-ccap-error-display",9),a()),e&2&&(c(6),O("border-ccapAccent",n.viewMode==="setup")("bg-neutral-800",n.viewMode==="setup"),c(2),O("border-ccapAccent",n.viewMode==="remote")("bg-neutral-800",n.viewMode==="remote"),c(2),g(n.viewMode==="setup"?10:-1),c(),g(n.viewMode==="remote"?11:-1),c(),g(n.message_$()?12:-1),c(),g(n.lastError_$()?13:-1))},dependencies:[Et,wt,bt,St,kt,vt,Q,J],encapsulation:2})}return o})();var Re=[{path:"",pathMatch:"full",component:Dt}],dn=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=dt({type:o});static \u0275inj=ct({imports:[xt,$t,ft.forChild(Re),Q,J]})}return o})();export{dn as MasterControlRemotePoc_Module};
|
|
2
|
-
//# sourceMappingURL=master-control-remote-poc.module-
|
|
1
|
+
import{b as J}from"./chunk-L3ECIYSX.js";import"./chunk-GTH4FT5Y.js";import"./chunk-HD5BCFN3.js";import"./chunk-UVQOIRMW.js";import"./chunk-V3VQWJQL.js";import"./chunk-FLAJXIYW.js";import{b as bt,c as Et,f as St,i as vt,k as wt,r as kt,v as $t}from"./chunk-EO4DNTT4.js";import{k as Q}from"./chunk-VLW4WKLV.js";import"./chunk-5UPNU54P.js";import{h as Mt,j as It}from"./chunk-MICI24HP.js";import{I as Pt,p as Kt}from"./chunk-M2MQ43YC.js";import{C as D,Ca as pt,Cb as yt,D as _t,Da as mt,E as dt,Fa as u,Ga as B,Ha as K,Ia as rt,J as m,K as h,Kb as ft,L as N,Ma as q,Na as Y,Oa as X,Ua as ht,X as G,Y as Z,Z as c,a as lt,aa as E,b as at,ba as ut,da as f,fa as V,ga as v,h as Vt,ha as H,hb as F,ia as O,ja as j,k as z,la as g,lb as Ct,na as ot,oa as I,p as T,pa as R,q as it,qa as l,ra as a,sa as A,ua as S,ub as xt,va as C,wa as s,xb as gt,y as U,z as ct}from"./chunk-TBMJSIBB.js";var tt=Vt(Kt());var Rt=(()=>{class o{baseUrl=`${Pt.api.baseUrl}/master-control-remote-poc`;http=D(gt);fetchConfig(){return T(this.http.get(`${this.baseUrl}/config`))}saveConfig(t){return T(this.http.put(`${this.baseUrl}/config`,t))}fetchDisplays(){return T(this.http.get(`${this.baseUrl}/displays`))}fetchScreenshot(t){let e=t!==void 0&&t.trim().length>0?`?displayKey=${encodeURIComponent(t.trim())}`:"";return T(this.http.get(`${this.baseUrl}/screenshot${e}`,{observe:"response",responseType:"blob"}).pipe(it(n=>{if(!n.ok)throw new Error(n.statusText||"Screenshot request failed");let i=n.headers.get("Content-Type")??null;if(!(!!i&&(i.startsWith("image/png")||i.startsWith("image/jpeg")))||!n.body)throw new Error("Szerver nem k\xE9pk\xE9nt v\xE1laszolt (Content-Type nem image/png vagy image/jpeg)");return n.body})))}fetchScreenshotDebug(){return T(this.http.get(`${this.baseUrl}/screenshot-debug`,{observe:"response",responseType:"blob"}).pipe(it(t=>{if(!t.ok)throw new Error(t.statusText||"Screenshot debug request failed");let e=t.headers.get("Content-Type")??null;if(!(!!e&&(e.startsWith("image/png")||e.startsWith("image/jpeg")))||!t.body)throw new Error("Szerver nem k\xE9pk\xE9nt v\xE1laszolt (Content-Type nem image/png vagy image/jpeg)");return t.body})))}fetchRegions(t){let e=t.withOcr===!0?"?ocr=1":"";return T(this.http.get(`${this.baseUrl}/regions${e}`))}click(t){return T(this.http.post(`${this.baseUrl}/click`,{sectionId:t.sectionId,x:t.x,y:t.y}))}type(t){return T(this.http.post(`${this.baseUrl}/type`,{sectionId:t.sectionId,text:t.text}))}static \u0275fac=function(e){return new(e||o)};static \u0275prov=U({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Ft=(()=>{class o{mcr_AS=D(Rt);fetchConfig(){return this.mcr_AS.fetchConfig()}saveConfig(t){return this.mcr_AS.saveConfig(t)}fetchDisplays(){return this.mcr_AS.fetchDisplays()}fetchScreenshot(t){return this.mcr_AS.fetchScreenshot(t)}fetchScreenshotDebug(){return this.mcr_AS.fetchScreenshotDebug()}fetchRegions(t){return this.mcr_AS.fetchRegions(t)}click(t){return this.mcr_AS.click(t)}type(t){return this.mcr_AS.type(t)}static \u0275fac=function(e){return new(e||o)};static \u0275prov=U({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var zt=["n","s","e","w","nw","ne","sw","se"];var At=["screenshotFullscreenContainer"],Tt=(o,d)=>d.displayKey,L=(o,d)=>d.id,Bt=()=>[1,2,3,4];function Ot(o,d){if(o&1&&(l(0,"span",30),u(1),a()),o&2){let t=s().$implicit;c(),rt(" (",t.width,"\xD7",t.height,")")}}function Ht(o,d){if(o&1){let t=S();l(0,"label",16)(1,"input",29),C("change",function(){let n=m(t).$implicit,i=s(3);return h(i.toggleDisplayEnabled(n.displayKey))}),a(),u(2),f(3,Ot,2,2,"span",30),a()}if(o&2){let t=d.$implicit,e=s(3);c(),v("checked",e.isDisplayEnabled(t.displayKey))("name","enabled_"+t.displayKey),c(),K(" ",t.name||t.displayKey," "),c(),g(t.width!=null&&t.height!=null&&t.width>0&&t.height>0?3:-1)}}function jt(o,d){if(o&1&&(l(0,"p",27),u(1,"K\xE9perny\u0151k enged\xE9lyez\xE9se (csak az enged\xE9lyezettek l\xE1tszanak):"),a(),l(2,"div",28),I(3,Ht,4,4,"label",16,Tt),a()),o&2){let t=s(2);c(3),R(t.displays_$())}}function Lt(o,d){if(o&1){let t=S();l(0,"button",31),C("click",function(){m(t);let n=s(2);return h(n.enterScreenshotFullscreen())}),u(1," Teljes k\xE9perny\u0151 "),a()}}function Wt(o,d){if(o&1){let t=S();l(0,"button",36),C("click",function(){m(t);let n=s(3);return h(n.exitScreenshotFullscreen())}),u(1," Kil\xE9p\xE9s "),a()}}function Ut(o,d){if(o&1&&(l(0,"p",30),u(1),a()),o&2){let t=s().$implicit;c(),rt(" Megjelen\xEDt\u0151: ",t.naturalWidth," \xD7 ",t.naturalHeight," px ")}}function Nt(o,d){o&1&&(l(0,"div",40),u(1," K\xE9p bet\xF6lt\xE9se sikertelen "),a())}function Gt(o,d){if(o&1){let t=S();l(0,"div",50),C("pointerdown",function(n){m(t);let i=s().$implicit,r=s(3).$implicit,_=s(3);return h(_.onClickPointPointerDown(n,i,"click",r))}),N(),l(1,"svg",51),A(2,"path",52),a()()}if(o&2){let t=s().$implicit,e=s(3).$implicit,n=s(3);H("left",t.bounds.x/e.naturalWidth*100,"%")("top",t.bounds.y/e.naturalHeight*100,"%"),c(),V("viewBox",n.mcrPocCursorTipViewBox),c(),V("d",n.mcrPocCursorTipPath)}}function Zt(o,d){if(o&1){let t=S();l(0,"div",53),C("pointerdown",function(n){m(t);let i=s().$implicit,r=s(3).$implicit,_=s(3);return h(_.onClickPointPointerDown(n,i,"inputClick",r))}),N(),l(1,"svg",51),A(2,"path",52),a()()}if(o&2){let t=s().$implicit,e=s(3).$implicit,n=s(3);H("left",n.inputSectionOverlayPoint(t).x/e.naturalWidth*100,"%")("top",n.inputSectionOverlayPoint(t).y/e.naturalHeight*100,"%"),c(),V("viewBox",n.mcrPocCursorTipViewBox),c(),V("d",n.mcrPocCursorTipPath)}}function qt(o,d){if(o&1){let t=S();l(0,"div",56),C("pointerdown",function(n){let i=m(t).$implicit,r=s(2).$implicit,_=s(6);return h(_.onSectionResizeHandlePointerDown(n,r,i))}),A(1,"span",57),a()}if(o&2){let t=d.$implicit,e=s(8);j(e.RESIZE_HANDLE_WRAPPER_CLASS[t]),H("cursor",e.RESIZE_HANDLE_CURSOR[t]),c(),j(e.RESIZE_HANDLE_KNOB_CLASS)}}function Yt(o,d){if(o&1){let t=S();l(0,"div",54),C("pointerdown",function(){m(t);let n=s().$implicit,i=s(6);return h(i.bringSectionToFront(n.id))}),I(1,qt,2,6,"div",55,ot),a()}if(o&2){let t=s().$implicit,e=s(3).$implicit,n=s(3);H("left",t.bounds.x/e.naturalWidth*100,"%")("top",t.bounds.y/e.naturalHeight*100,"%")("width",t.bounds.width/e.naturalWidth*100,"%")("height",t.bounds.height/e.naturalHeight*100,"%")("z-index",t.id===n.frontSectionId_$()?10:1),c(),R(n.resizeHandles)}}function Xt(o,d){if(o&1&&f(0,Gt,3,6,"div",47)(1,Zt,3,6,"div",48)(2,Yt,3,10,"div",49),o&2){let t=d.$implicit;g(t.type==="click"?0:t.type==="input"?1:-1),c(2),g(t.type!=="click"?2:-1)}}function Qt(o,d){if(o&1&&(l(0,"div",59),N(),l(1,"svg",51),A(2,"path",52),a()()),o&2){let t=d,e=s(7);H("left",t.xPct,"%")("top",t.yPct,"%"),O("text-neonCyan",!e.positioningInputClickSectionId_$())("text-amber-400",e.positioningInputClickSectionId_$()!==null),c(),V("viewBox",e.mcrPocCursorTipViewBox),c(),V("d",e.mcrPocCursorTipPath)}}function Jt(o,d){if(o&1&&f(0,Qt,3,10,"div",58),o&2){let t,e=s(3).$implicit,n=s(3);g((t=n.positionPreviewByDisplayKey_$()[e.displayKey])?0:-1,t)}}function te(o,d){if(o&1&&(l(0,"div",46),I(1,Xt,3,2,null,null,L),f(3,Jt,1,1),a()),o&2){let t=s(2).$implicit,e=s(3);O("pointer-events-none",e.positioningClickSectionId_$()||e.positioningInputClickSectionId_$())("cursor-crosshair",e.positioningClickSectionId_$()||e.positioningInputClickSectionId_$()),c(),R(e.getSectionsForDisplayKey(t.displayKey)),c(2),g(e.positioningClickSectionId_$()||e.positioningInputClickSectionId_$()?3:-1)}}function ee(o,d){if(o&1){let t=S();l(0,"img",44),C("error",function(){m(t);let n=s().$implicit,i=s(3);return h(i.onScreenshotImageError(n))})("pointerup",function(n){m(t);let i=s().$implicit,r=s(3);return h(r.onScreenshotPointerUpForPosition(n,i))})("pointermove",function(n){m(t);let i=s().$implicit,r=s(3);return h(r.onScreenshotPointerMoveOverImage(n,i))})("pointerleave",function(){m(t);let n=s(4);return h(n.onScreenshotPointerLeaveImage())}),a(),f(1,te,4,5,"div",45)}if(o&2){let t,e=s().$implicit,n=s(3);O("cursor-crosshair",n.positioningClickSectionId_$()||n.positioningInputClickSectionId_$())("touch-none",n.positioningClickSectionId_$()||n.positioningInputClickSectionId_$()),v("src",(t=e.safeUrl)!==null&&t!==void 0?t:e.url,G)("alt",e.name),c(),g(e.naturalWidth&&e.naturalHeight?1:-1)}}function ne(o,d){if(o&1){let t=S();l(0,"span",64),u(1,"w:"),a(),l(2,"input",73),C("ngModelChange",function(n){m(t);let i=s().$implicit,r=s(5);return h(r.updateSectionBoundsBySection(i,{width:n}))}),a(),l(3,"span",64),u(4,"h:"),a(),l(5,"input",73),C("ngModelChange",function(n){m(t);let i=s().$implicit,r=s(5);return h(r.updateSectionBoundsBySection(i,{height:n}))}),a()}if(o&2){let t=s().$implicit;c(2),v("ngModel",t.bounds.width)("name","bw_"+t.id),c(3),v("ngModel",t.bounds.height)("name","bh_"+t.id)}}function ie(o,d){if(o&1){let t=S();l(0,"button",74),C("click",function(){m(t);let n=s().$implicit,i=s(5);return h(i.bringSectionToFront(n.id))}),u(1," El\u0151t\xE9r "),a()}o&2&&v("title","El\u0151t\xE9r (\xE1tfed\xE9sn\xE9l reszelhet\u0151)")}function oe(o,d){if(o&1){let t=S();l(0,"button",75),C("click",function(){m(t);let n=s().$implicit,i=s(5);return h(i.startPositioningClick(n.id))}),u(1," Poz\xEDcion\xE1l\xE1s "),a()}}function re(o,d){if(o&1){let t=S();l(0,"button",76),C("click",function(){m(t);let n=s().$implicit,i=s(5);return h(i.startPositioningInputClick(n.id))}),u(1," Kattint\xE1s pont "),a()}}function se(o,d){if(o&1){let t=S();l(0,"li",62)(1,"input",63),C("ngModelChange",function(n){let i=m(t).$implicit,r=s(5);return h(r.updateSectionIdBySection(i,n))}),a(),l(2,"span",64),u(3),a(),l(4,"span",64),u(5,"x:"),a(),l(6,"input",65),C("ngModelChange",function(n){let i=m(t).$implicit,r=s(5);return h(r.updateSectionBoundsBySection(i,{x:n}))}),a(),l(7,"span",64),u(8,"y:"),a(),l(9,"input",65),C("ngModelChange",function(n){let i=m(t).$implicit,r=s(5);return h(r.updateSectionBoundsBySection(i,{y:n}))}),a(),f(10,ne,6,4),l(11,"div",66),f(12,ie,2,1,"button",67),l(13,"button",68),C("click",function(){let n=m(t).$implicit,i=s(5);return h(i.moveSectionUpBySection(n))}),l(14,"span",57),u(15,"\u2191"),a()(),l(16,"button",69),C("click",function(){let n=m(t).$implicit,i=s(5);return h(i.moveSectionDownBySection(n))}),l(17,"span",57),u(18,"\u2193"),a()(),f(19,oe,2,0,"button",70)(20,re,2,0,"button",71),l(21,"button",72),C("click",function(){let n=m(t).$implicit,i=s(5);return h(i.removeSectionBySection(n))}),u(22," T\xF6rl\xE9s "),a()()()}if(o&2){let t=d.$implicit,e=s(2).$implicit,n=s(3);c(),v("ngModel",t.id)("name","sectionId_"+e.displayKey+"_"+t.id),c(2),B(n.SECTION_TYPE_LABELS[t.type]),c(3),v("ngModel",t.bounds.x)("name","bx_"+t.id),V("max",e.naturalWidth!=null&&e.naturalWidth>0?e.naturalWidth-1:null),c(3),v("ngModel",t.bounds.y)("name","by_"+t.id),V("max",e.naturalHeight!=null&&e.naturalHeight>0?e.naturalHeight-1:null),c(),g(t.type!=="click"?10:-1),c(2),g(t.type!=="click"?12:-1),c(),v("disabled",n.sectionIndexById_$()[t.id]===0),c(3),v("disabled",n.sectionIndexById_$()[t.id]===n.sections_$().length-1),c(3),g(t.type==="click"?19:-1),c(),g(t.type==="input"?20:-1)}}function le(o,d){if(o&1&&(l(0,"div",43)(1,"p",60),u(2,"Z\xF3n\xE1k ezen a k\xE9pen"),a(),l(3,"ul",61),I(4,se,23,15,"li",62,L),a()()),o&2){let t=s().$implicit,e=s(3);c(4),R(e.getSectionsForDisplayKey(t.displayKey))}}function ae(o,d){if(o&1){let t=S();l(0,"div",35)(1,"div",37)(2,"p",38),u(3),a(),f(4,Ut,2,2,"p",30),a(),l(5,"div",39),f(6,Nt,2,0,"div",40)(7,ee,2,7),a(),l(8,"div",41)(9,"button",42),C("click",function(){let n=m(t).$implicit,i=s(3);return h(i.addSectionForScreen(n,"read-only"))}),u(10," Figyel\xE9s "),a(),l(11,"button",42),C("click",function(){let n=m(t).$implicit,i=s(3);return h(i.addSectionForScreen(n,"click"))}),u(12," Kattint\xE1s "),a(),l(13,"button",42),C("click",function(){let n=m(t).$implicit,i=s(3);return h(i.addSectionForScreen(n,"input"))}),u(14," Input "),a()(),f(15,le,6,0,"div",43),a()}if(o&2){let t=d.$implicit,e=s(3);c(3),B(t.name),c(),g(t.naturalWidth!=null&&t.naturalHeight!=null&&t.naturalWidth>0&&t.naturalHeight>0?4:-1),c(2),g(e.failedDisplayKeys_$().has(t.displayKey)?6:7),c(9),g(e.getSectionsForDisplayKey(t.displayKey).length>0?15:-1)}}function ce(o,d){if(o&1&&(l(0,"p",32),u(1),a(),l(2,"div",33,0),f(4,Wt,2,0,"button",34),I(5,ae,16,4,"div",35,Tt),a()),o&2){let t=s(2);c(),K("",t.screenshots_$().length," k\xE9p"),c(3),g(t.screenshotFullscreen_$()?4:-1),c(),R(t.screenshots_$())}}function _e(o,d){o&1&&(l(0,"p",18),u(1,"Nincs m\xE9g screenshot. Kattints a friss\xEDt\xE9s gombra, vagy v\xE1rj a monitorkezel\u0151 bet\xF6lt\xE9s\xE9re."),a())}function de(o,d){o&1&&u(0," \xC9rintsd meg / kattints a ci\xE1n input kereten bel\xFClre (kurzor-hegy a c\xE9l; k\xEDv\xFClre \xE9rintve a legk\xF6zelebbi bels\u0151 pixelre cs\xFAszik), vagy h\xFAzd a h\xE1romsz\xF6get. Alap\xE9rtelmez\xE9s: k\xF6z\xE9p. ")}function ue(o,d){o&1&&u(0," \xC9rintsd meg / kattints a k\xE9perny\u0151k\xE9pre (kurzor-hegy a c\xE9l), vagy h\xFAzd a h\xE1romsz\xF6get; kattint\xE1s z\xF3n\xE1n\xE1l az x/y mez\u0151 is szerkeszthet\u0151. ")}function pe(o,d){if(o&1){let t=S();l(0,"p",19),u(1),f(2,de,1,0)(3,ue,1,0),l(4,"button",77),C("click",function(){m(t);let n=s(2);return h(n.cancelPositioningClick())}),u(5," M\xE9gse "),a()()}if(o&2){let t=s(2);c(),K(" ",t.positioningInputClickSectionId_$()?"Poz\xEDcion\xE1l\xE1s (input kattint\xE1s pont):":"Poz\xEDcion\xE1l\xE1s (kattint\xE1s pont):"," "),c(),g(t.positioningInputClickSectionId_$()?2:3)}}function me(o,d){if(o&1){let t=S();l(0,"button",78),C("click",function(){let n=m(t).$implicit,i=s(2);return h(i.remoteGridCols_$.set(n))}),u(1),a()}if(o&2){let t=d.$implicit,e=s(2);O("border-neonCyan",e.remoteGridCols_$()===t)("bg-neutral-700",e.remoteGridCols_$()===t),c(),K(" ",t," oszlop ")}}function he(o,d){if(o&1&&(l(0,"p",24),u(1),a()),o&2){let t=s(2);c(),B(t.validationMessage_$())}}function Ce(o,d){o&1&&(l(0,"p",25),u(1," A ment\xE9shez adj hozz\xE1 legal\xE1bb egy z\xF3n\xE1t, vagy sz\u0171k\xEDtsd a k\xE9perny\u0151ket (nem mind enged\xE9lyezett), vagy v\xE1ltoztasd a remote grid oszlopsz\xE1m\xE1t (az alap\xE9rtelmezett 2-t\u0151l elt\xE9r\u0151en). "),a())}function xe(o,d){if(o&1){let t=S();l(0,"div",6)(1,"section",10)(2,"h2",11),u(3,"K\xE9p bet\xF6lt\xE9se \xE9s z\xF3n\xE1k"),a(),l(4,"p",12),u(5," A szerver minden el\xE9rhet\u0151 monitorj\xE1r\xF3l k\xE9sz\xFCl screenshot; ezen jel\xF6l\xF6d ki a figyelt z\xF3n\xE1kat. Minden k\xE9pen a Figyel\xE9s / Kattint\xE1s / Input gombokkal adsz hozz\xE1 z\xF3n\xE1t, alatta a z\xF3n\xE1k list\xE1ja. "),a(),f(6,jt,5,0),l(7,"div",13)(8,"button",14),C("click",function(){m(t);let n=s();return h(n.refreshAllScreenshots())}),u(9),a(),f(10,Lt,2,0,"button",15),l(11,"label",16)(12,"input",17),X("ngModelChange",function(n){m(t);let i=s();return Y(i.showDebugOverlay,n)||(i.showDebugOverlay=n),h(n)}),C("ngModelChange",function(){m(t);let n=s();return h(n.refreshAllScreenshots())}),a(),u(13," Debug: szekci\xF3k \xE9s k\xE9k kurzor jel\xF6l\xE9se "),a()(),f(14,ce,7,2)(15,_e,2,0,"p",18)(16,pe,6,2,"p",19),l(17,"div",20)(18,"span",21),u(19,"Remote n\xE9zet grid:"),a(),l(20,"div",22),I(21,me,2,5,"button",23,ot),a()(),f(23,he,2,1,"p",24)(24,Ce,2,0,"p",25),l(25,"button",26),C("click",function(){m(t);let n=s();return h(n.saveConfig())}),u(26),a()()()}if(o&2){let t=s();c(6),g(t.displays_$().length>0?6:-1),c(2),v("disabled",t.busy_$()),c(),K(" ",t.busy_$()?"Screenshotok\u2026":"Screenshot friss\xEDt\xE9se (mind)"," "),c(),g(t.screenshots_$().length>0?10:-1),c(2),q("ngModel",t.showDebugOverlay),c(2),g(t.screenshots_$().length>0?14:t.busy_$()?-1:15),c(2),g(t.positioningClickSectionId_$()||t.positioningInputClickSectionId_$()?16:-1),c(5),R(ht(11,Bt)),c(2),g(t.validationMessage_$()?23:-1),c(),g(!t.canSave_$()&&!t.validationMessage_$()?24:-1),c(),v("disabled",t.busy_$()||!t.canSave_$()),c(),K(" ",t.busy_$()?"Ment\xE9s\u2026":"Konfig ment\xE9se"," ")}}function ge(o,d){if(o&1&&A(0,"img",87),o&2){let t=s(2).$implicit;v("src","data:image/png;base64,"+t.imageBase64,G)("alt",t.id)}}function ye(o,d){if(o&1&&(l(0,"pre",88),u(1),a()),o&2){let t=s(2).$implicit;c(),B(t.text)}}function fe(o,d){if(o&1&&(l(0,"div",85)(1,"p",86),u(2),a(),f(3,ge,1,2,"img",87)(4,ye,2,1,"pre",88),a()),o&2){let t=s().$implicit;c(2),B(t.id),c(),g(t.imageBase64?3:-1),c(),g(t.text!==void 0&&t.text!==""?4:-1)}}function be(o,d){if(o&1&&f(0,fe,5,3,"div",85),o&2){let t=d.$implicit;g(t.type!=="input"?0:-1)}}function Ee(o,d){if(o&1&&(l(0,"div")(1,"p",84),u(2,"Olvas\xE1si szekci\xF3k (kiv\xE1g\xE1s + OCR)"),a(),l(3,"div"),I(4,be,1,1,null,null,L),a()()),o&2){let t=s(2);c(3),j(t.remoteGridClass_$()),c(),R(t.regions_$())}}function Se(o,d){if(o&1&&A(0,"img",91),o&2){let t=s().$implicit;v("src","data:image/png;base64,"+t.imageBase64,G)("alt",t.id)}}function ve(o,d){if(o&1){let t=S();l(0,"div",89)(1,"p",90),u(2),a(),f(3,Se,1,2,"img",91),l(4,"div",92)(5,"input",93),X("ngModelChange",function(n){let i=m(t).$implicit,r=s(3);return Y(r.inputValues[i.id],n)||(r.inputValues[i.id]=n),h(n)}),a(),l(6,"div",94)(7,"app-ccap-voice-record-button",95),C("transcriptReady",function(n){let i=m(t).$implicit,r=s(3);return h(r.onRemoteInputVoiceTranscript(i.id,n))}),a()(),l(8,"button",96),C("click",function(){let n=m(t).$implicit,i=s(3);return h(i.doType(n.id))}),u(9," K\xFCld\xE9s "),a()()()}if(o&2){let t=d.$implicit,e=s(3);c(2),B(t.id),c(),g(t.imageBase64?3:-1),c(2),q("ngModel",e.inputValues[t.id]),v("name","input_remote_"+t.id)}}function we(o,d){if(o&1&&(l(0,"div")(1,"p",84),u(2,"Input mez\u0151k (z\xF3na k\xE9p + kattint\xE1s pont)"),a(),l(3,"div"),I(4,ve,10,4,"div",89,L),a()()),o&2){let t=s(2);c(3),j(t.remoteGridClass_$()),c(),R(t.inputRegions_$())}}function ke(o,d){if(o&1){let t=S();l(0,"button",99),C("click",function(){let n=m(t).$implicit,i=s(3);return h(i.doClick(n.id))}),u(1),a()}if(o&2){let t=d.$implicit;c(),K(" ",t.id," ")}}function $e(o,d){if(o&1&&(l(0,"div")(1,"p",84),u(2,"Kattint\xE1s gombok"),a(),l(3,"div",97),I(4,ke,2,1,"button",98,L),a()()),o&2){let t=s(2);c(4),R(t.clickSections_$())}}function Pe(o,d){if(o&1){let t=S();l(0,"div",7)(1,"div",79)(2,"label",80)(3,"input",81),X("ngModelChange",function(n){m(t);let i=s();return Y(i.withOcr,n)||(i.withOcr=n),h(n)}),a(),l(4,"span",82),u(5,"OCR a read-only szekci\xF3khoz"),a()(),l(6,"button",14),C("click",function(){m(t);let n=s();return h(n.loadRegions())}),u(7),a(),l(8,"label",80)(9,"input",83),C("ngModelChange",function(n){m(t);let i=s();return h(i.setAutoRefreshRegions(n))}),a(),l(10,"span",82),u(11,"Auto friss\xEDt\xE9s (5 s)"),a()()(),f(12,Ee,6,2,"div")(13,we,6,2,"div")(14,$e,6,0,"div"),a()}if(o&2){let t=s();c(3),q("ngModel",t.withOcr),c(3),v("disabled",t.busy_$()),c(),K(" ",t.busy_$()?"Bet\xF6lt\xE9s\u2026":"Region\xF6k bet\xF6lt\xE9se"," "),c(2),v("ngModel",t.autoRefreshRegions_$()),c(3),g(t.regions_$().length>0?12:-1),c(),g(t.inputRegions_$().length>0?13:-1),c(),g(t.clickSections_$().length>0?14:-1)}}function Me(o,d){if(o&1&&(l(0,"p",8),u(1),a()),o&2){let t=s();c(),B(t.message_$())}}function Ie(o,d){if(o&1&&A(0,"app-ccap-error-display",9),o&2){let t=s();v("error",t.lastError_$())}}var Dt=(()=>{class o{mcr_DS=D(Ft);globalError_CS=D(It);sanitizer=D(yt);doc=D(Ct);screenshotFullscreenContainer=ut("screenshotFullscreenContainer");screenshotFullscreen_$=E(!1);fullscreenChangeListener=null;screenshots_$=E([]);sections_$=E([]);regions_$=E([]);clickSections_$=F(()=>this.sections_$().filter(t=>t.type==="click"));inputSections_$=F(()=>this.sections_$().filter(t=>t.type==="input"));inputRegions_$=F(()=>this.regions_$().filter(t=>t.type==="input"));validationMessage_$=F(()=>{let t=this.sections_$();if(t.length===0)return"";let e=t.map(r=>(r.id??"").trim());if(e.findIndex(r=>r.length===0)>=0)return"Minden z\xF3n\xE1nak kell legyen nem \xFCres azonos\xEDt\xF3ja.";let i=new Set;for(let r of e){if(i.has(r))return"Az azonos\xEDt\xF3k egyediek legyenek: \u201E"+r+"\u201D ism\xE9tl\u0151dik.";i.add(r)}return""});busy_$=E(!1);message_$=E("");lastError_$=E(null);inputValues={};withOcr=!1;autoRefreshRegions_$=E(!1);regionsRefreshIntervalId=null;static REMOTE_REGIONS_AUTO_REFRESH_MS=5e3;showDebugOverlay=!1;displays_$=E([]);enabledDisplayKeys_$=E([]);remoteGridCols_$=E(2);remoteGridClass_$=F(()=>{let t=this.remoteGridCols_$();return`grid gap-4 ${t===1?"grid-cols-1":t===3?"grid-cols-3":t===4?"grid-cols-4":"grid-cols-2"}`});selectedDisplayKey=void 0;failedDisplayKeys_$=E(new Set);resizeSectionIndex_$=E(null);resizeHandle_$=E(null);resizeImgRef_$=E(null);resizeStartBounds_$=E(null);positioningClickSectionId_$=E(null);positioningInputClickSectionId_$=E(null);positionPreview_$=E(null);dragPointer_$=E(null);activeDragResizePointerId=null;capturedPointerTarget=null;capturedPointerId=null;mcrPocCursorTipViewBox="0 0 10 10";mcrPocCursorTipPath="M10 10 L2 10 L10 2 Z";frontSectionId_$=E(null);viewMode="setup";sectionTypes=[{value:"read-only",label:"Olvas\xE1s (kiv\xE1g\xE1s + OCR)"},{value:"click",label:"Kattint\xE1s"},{value:"input",label:"Input mez\u0151"}];SECTION_TYPE_LABELS={"read-only":"Olvas\xE1s (kiv\xE1g\xE1s + OCR)",click:"Kattint\xE1s",input:"Input mez\u0151"};sectionsByScreenId_$=F(()=>{let t=this.sections_$(),e={};for(let n of t){let i=n.displayKey??"";e[i]||(e[i]=[]),e[i].push(n)}return e});sectionIndexById_$=F(()=>{let t=this.sections_$(),e={};return t.forEach((n,i)=>{n.id!=null&&(e[n.id]=i)}),e});positionPreviewByDisplayKey_$=F(()=>{let t=this.positionPreview_$();return t?{[t.displayKey]:{xPct:t.xPct,yPct:t.yPct}}:{}});canSave_$=F(()=>{if(this.validationMessage_$()!=="")return!1;let t=this.sections_$().length>0,e=this.enabledDisplayKeys_$().length>0,n=this.remoteGridCols_$()!==2;return t||e||n});ngOnInit(){this.fullscreenChangeListener=()=>{let t=this.doc.fullscreenElement??null;this.screenshotFullscreen_$.set(!!t)},this.doc.addEventListener("fullscreenchange",this.fullscreenChangeListener),this.loadDisplays()}ngOnDestroy(){this.fullscreenChangeListener&&this.doc.removeEventListener("fullscreenchange",this.fullscreenChangeListener),this.doc.fullscreenElement!=null&&this.doc.exitFullscreen(),this.stopRegionsRefresh(),this.revokeScreenshotUrls(),this.finishDragOrResizeInteraction()}enterScreenshotFullscreen(){let e=this.screenshotFullscreenContainer()?.nativeElement;e?.requestFullscreen&&e.requestFullscreen()}exitScreenshotFullscreen(){this.doc.fullscreenElement!=null&&this.doc.exitFullscreen()}loadConfig(){return z(this,null,function*(){this.message_$.set(""),this.lastError_$.set(null);try{let t=yield this.mcr_DS.fetchConfig(),e=t.sections??[];this.sections_$.set(e.map(i=>this.withReconciledInputClickPoint(i))),this.enabledDisplayKeys_$.set(t.enabledDisplayKeys??[]);let n=t.remoteGridCols??2;this.remoteGridCols_$.set(n>=1&&n<=4?Math.round(n):2)}catch(t){this.globalError_CS.showError(t,"mcr-poc"),this.lastError_$.set(t)}})}loadDisplays(){return z(this,null,function*(){try{yield this.loadConfig();let t=yield this.mcr_DS.fetchDisplays();this.displays_$.set(t.displays??[]),(t.displays??[]).length>0&&this.selectedDisplayKey===void 0&&(this.selectedDisplayKey=t.displays[0].displayKey),yield this.refreshAllScreenshots()}catch(t){this.globalError_CS.showError(t,"mcr-poc"),this.lastError_$.set(t)}})}getEnabledDisplays(){let t=this.displays_$(),e=this.enabledDisplayKeys_$();return e.length===0?t:t.filter(n=>e.includes(n.displayKey))}isDisplayEnabled(t){let e=this.enabledDisplayKeys_$();return e.length===0?!0:e.includes(t)}toggleDisplayEnabled(t){let e=this.enabledDisplayKeys_$(),n=this.displays_$();if(e.length===0){let r=n.map(_=>_.displayKey).filter(_=>_!==t);this.enabledDisplayKeys_$.set(r);return}e.includes(t)?this.enabledDisplayKeys_$.set(e.filter(i=>i!==t)):this.enabledDisplayKeys_$.set([...e,t]),this.refreshAllScreenshots()}revokeScreenshotUrls(){for(let t of this.screenshots_$())if(t.url.startsWith("blob:"))try{URL.revokeObjectURL(t.url)}catch{}}tryCreateScreenshotEntry(t,e,n){return z(this,null,function*(){let i=yield t.arrayBuffer(),r=new Blob([i],{type:"image/png"}),_=yield new Promise((p,x)=>{let y=new FileReader;y.onload=()=>{let b=y.result;p(typeof b=="string"?b:"")},y.onerror=()=>x(y.error??new Error("FileReader failed")),y.readAsDataURL(r)});return _.startsWith("data:")?new Promise(p=>{let x=new Image;x.onload=()=>{p({displayKey:e,name:n,url:_,safeUrl:this.sanitizer.bypassSecurityTrustUrl(_),naturalWidth:x.naturalWidth,naturalHeight:x.naturalHeight})},x.onerror=()=>p(null),x.src=_}):null})}refreshAllScreenshots(){return z(this,null,function*(){if(this.displays_$().length===0&&!this.showDebugOverlay){this.message_$.set("Nincs megjelen\xEDt\u0151. El\u0151sz\xF6r bet\xF6ltj\xFCk a monitorkezel\u0151t.");return}let t=this.showDebugOverlay?this.displays_$():this.getEnabledDisplays();if(t.length===0&&!this.showDebugOverlay){this.message_$.set("Nincs enged\xE9lyezett megjelen\xEDt\u0151. Enged\xE9lyezz legal\xE1bb egyet a list\xE1b\xF3l.");return}this.busy_$.set(!0),this.message_$.set(""),this.lastError_$.set(null),this.revokeScreenshotUrls(),this.screenshots_$.set([]),this.failedDisplayKeys_$.set(new Set);try{if(this.showDebugOverlay){let e=yield this.mcr_DS.fetchScreenshotDebug(),n=e.type.includes("image");if(e.size>=100&&n){let i=yield this.tryCreateScreenshotEntry(e,"","Debug (szekci\xF3k + kurzor)");if(i!==null)this.screenshots_$.set([i]),this.message_$.set("Debug screenshot bet\xF6ltve.");else{let r={message:"Screenshot k\xE9p bet\xF6lt\xE9se sikertelen (blob decode a megjelen\xEDt\xE9s el\u0151tt).",context:"mcr-poc-screenshot-img-load",displayKey:"",slotName:"Debug (szekci\xF3k + kurzor)",urlType:"blob"};this.lastError_$.set(r),this.globalError_CS.showError(r,"mcr-poc"),this.message_$.set("A debug screenshot nem dek\xF3dolhat\xF3. Ellen\u0151rizd a szervert.")}}else this.message_$.set("A screenshot \xFCres vagy nem k\xE9p. Ellen\u0151rizd a szervert.")}else{let e=[],n=null;for(let i=0;i<t.length;i++){let r=t[i],_=yield this.mcr_DS.fetchScreenshot(r.displayKey),p=_.type.includes("image");if(_.size>=100&&p){let x=r.name?.trim()?r.name:`Monitor ${i+1}`,y=yield this.tryCreateScreenshotEntry(_,r.displayKey,x);y!==null?e.push(y):n===null&&(n={message:"Screenshot k\xE9p bet\xF6lt\xE9se sikertelen (blob decode a megjelen\xEDt\xE9s el\u0151tt).",context:"mcr-poc-screenshot-img-load",displayKey:r.displayKey,slotName:x,urlType:"blob"})}}n!==null&&(this.lastError_$.set(n),this.globalError_CS.showError(n,"mcr-poc"),tt.DyFM_Log.error("[MCR POC] Screenshot blob decode failed",n)),this.screenshots_$.set(e),this.message_$.set(e.length>0?`${e.length} monitor k\xE9pe bet\xF6ltve. Jel\xF6lj ki egy ter\xFCletet.`:"Nem siker\xFClt k\xE9pet k\xE9sz\xEDteni egyik monitorr\xF3l sem.")}}catch(e){let n=this.showDebugOverlay?"screenshot-debug":"screenshot-fetch",i=Mt.getErrorMessageForDisplay(e),r={message:`Screenshot hiba (${n}). ${i}`,context:n,urlType:"api",error:e};this.globalError_CS.showError(r,"mcr-poc"),this.lastError_$.set(r),this.message_$.set("Screenshot hiba. Ellen\u0151rizd a szerver kapcsolatot \xE9s jogosults\xE1gokat."),tt.DyFM_Log.error("[MCR POC] Screenshot fetch failed",{context:n,error:e,payload:r})}finally{this.busy_$.set(!1)}})}onScreenshotImageError(t){this.failedDisplayKeys_$.update(i=>{let r=new Set(i);return r.add(t.displayKey),r});let e=t.url??"",n={message:"Screenshot k\xE9p bet\xF6lt\xE9se sikertelen (blob URL decode hiba).",context:"mcr-poc-screenshot-img-load",displayKey:t.displayKey,slotName:t.name,urlType:e.startsWith("blob:")?"blob":"unknown",urlPrefix:e.startsWith("blob:")?"blob:":e.slice(0,50)};this.lastError_$.set(n),this.globalError_CS.showError(n,"mcr-poc"),tt.DyFM_Log.error("[MCR POC] Screenshot image load failed",n)}clampClickPointToInputBounds(t,e,n){let i=t.x,r=t.x+t.width-1,_=t.y,p=t.y+t.height-1;return{x:Math.max(i,Math.min(Math.round(Number(e)),r)),y:Math.max(_,Math.min(Math.round(Number(n)),p))}}computeDefaultInputClickPoint(t){let e=t.x+Math.floor(t.width/2),n=t.y+Math.floor(t.height/2);return{x:e,y:n}}reconcileInputClickPointCoords(t,e,n,i){let r=this.clampClickPointToInputBounds(t,n,i),_=this.clampPointToScreenshotPixels(e,r.x,r.y);return this.clampClickPointToInputBounds(t,_.x,_.y)}withReconciledInputClickPoint(t){if(t.type!=="input")return t;let e=t.bounds,n=this.computeDefaultInputClickPoint(e),i=t.clickPoint!==void 0?t.clickPoint.x:n.x,r=t.clickPoint!==void 0?t.clickPoint.y:n.y,_=this.reconcileInputClickPointCoords(e,t.displayKey,i,r);return{id:t.id,type:t.type,bounds:t.bounds,displayKey:t.displayKey,clickPoint:{x:_.x,y:_.y}}}inputSectionOverlayPoint(t){return t.type!=="input"?{x:0,y:0}:t.clickPoint!==void 0?{x:t.clickPoint.x,y:t.clickPoint.y}:this.computeDefaultInputClickPoint(t.bounds)}clampPointToScreenshotPixels(t,e,n){let i=t??"",r=this.screenshots_$().find(b=>(b.displayKey??"")===i),_=r?.naturalWidth??0,p=r?.naturalHeight??0,x=Math.max(0,Math.round(Number(e))),y=Math.max(0,Math.round(Number(n)));return _>0&&p>0&&(x=Math.min(x,_-1),y=Math.min(y,p-1)),{x,y}}displayToImageCoordsFromEl(t,e,n){if(!t||!t.naturalWidth||!t.naturalHeight)return{x:e,y:n};let i=t.getBoundingClientRect(),r=t.naturalWidth/i.width,_=t.naturalHeight/i.height;return{x:Math.round(e*r),y:Math.round(n*_)}}imagePixelCoordsFromClient(t,e,n){let i=t.getBoundingClientRect(),r=e-i.left,_=n-i.top;return this.displayToImageCoordsFromEl(t,r,_)}beginPointerCaptureForDragOrResize(t){this.activeDragResizePointerId=t.pointerId;let e=t.currentTarget;if(e instanceof HTMLElement&&typeof e.setPointerCapture=="function")try{e.setPointerCapture(t.pointerId),this.capturedPointerTarget=e,this.capturedPointerId=t.pointerId}catch{this.capturedPointerTarget=null,this.capturedPointerId=null}}releasePointerCaptureIfAny(){let t=this.capturedPointerTarget,e=this.capturedPointerId;if(t!=null&&e!=null&&typeof t.releasePointerCapture=="function")try{t.releasePointerCapture(e)}catch{}this.capturedPointerTarget=null,this.capturedPointerId=null}finishDragOrResizeInteraction(){this.releasePointerCaptureIfAny(),this.activeDragResizePointerId=null,this.dragPointer_$()!==null&&this.dragPointer_$.set(null),this.resizeSectionIndex_$()!==null&&(this.resizeSectionIndex_$.set(null),this.resizeHandle_$.set(null),this.resizeImgRef_$.set(null),this.resizeStartBounds_$.set(null))}static DEFAULT_SECTION_WIDTH=100;static DEFAULT_SECTION_HEIGHT=28;addSectionForScreen(t,e){let n=t.naturalWidth??0,i=t.naturalHeight??0,r=e==="click",_=r?1:o.DEFAULT_SECTION_WIDTH,p=r?1:o.DEFAULT_SECTION_HEIGHT,x=20,y=20;n>=_&&i>=p&&(x=Math.max(0,Math.floor(n/2-_/2)),y=Math.max(0,Math.floor(i/2-p/2)));let b=`section-${Date.now()}`,w={x,y,width:_,height:p},k=t.displayKey?.length?t.displayKey:void 0,$;if(e==="input"){let M=this.computeDefaultInputClickPoint(w),P=this.reconcileInputClickPointCoords(w,k,M.x,M.y);$={id:b,type:e,bounds:w,displayKey:k,clickPoint:{x:P.x,y:P.y}}}else $={id:b,type:e,bounds:w,displayKey:k};this.sections_$.set([...this.sections_$(),$]),this.message_$.set(`Szekci\xF3 hozz\xE1adva: ${b}`)}startPositioningClick(t){this.positioningInputClickSectionId_$.set(null),this.positioningClickSectionId_$.set(t),this.message_$.set("\xC9rintsd meg / kattints a k\xE9perny\u0151k\xE9pre a kattint\xE1s pontj\xE1nak megad\xE1s\xE1hoz.")}startPositioningInputClick(t){this.positioningClickSectionId_$.set(null),this.positioningInputClickSectionId_$.set(t),this.message_$.set("\xC9rintsd meg / kattints a ci\xE1n kereten bel\xFClre \u2014 az input kattint\xE1si pont csak a mez\u0151n bel\xFCl \xE1ll\xEDthat\xF3 (alapb\xF3l k\xF6z\xE9p).")}cancelPositioningClick(){this.positioningClickSectionId_$.set(null),this.positioningInputClickSectionId_$.set(null),this.message_$.set("")}onScreenshotPointerUpForPosition(t,e){if(!t.isPrimary||t.button!==0)return;let n=this.positioningClickSectionId_$(),i=this.positioningInputClickSectionId_$(),r=n??i;if(!r)return;let _=this.sections_$().find(nt=>nt.id===r);if(!_)return;let p=_.type==="click",x=_.type==="input"&&i!==null;if(!p&&!x)return;let y=e.displayKey??"";if((_.displayKey??"")!==y)return;let b=t.currentTarget;if(!(b instanceof HTMLImageElement))return;let w=b;if(!w.naturalWidth||!w.naturalHeight)return;let k=this.imagePixelCoordsFromClient(w,t.clientX,t.clientY),$=w.naturalWidth,M=w.naturalHeight,P=Math.max(0,Math.min(k.x,$-1)),W=Math.max(0,Math.min(k.y,M-1)),et=this.sections_$().findIndex(nt=>nt.id===r);et<0||(p?(this.updateSectionBounds(et,{x:P,y:W,width:1,height:1}),this.positioningClickSectionId_$.set(null),this.message_$.set("Kattint\xE1s pont be\xE1ll\xEDtva.")):(this.updateSectionClickPoint(et,{x:P,y:W}),this.positioningInputClickSectionId_$.set(null),this.message_$.set("Input kattint\xE1si pont be\xE1ll\xEDtva.")))}onScreenshotPointerMoveOverImage(t,e){if(!this.positioningClickSectionId_$()&&!this.positioningInputClickSectionId_$()){this.positionPreview_$.set(null);return}let n=t.currentTarget;if(!(n instanceof HTMLImageElement))return;let i=n;if(!i.naturalWidth||!i.naturalHeight)return;let r=this.imagePixelCoordsFromClient(i,t.clientX,t.clientY),_=this.positioningInputClickSectionId_$();if(_){let w=this.sections_$().find(k=>k.id===_);if(w?.type==="input"){let k=this.clampClickPointToInputBounds(w.bounds,r.x,r.y);r={x:k.x,y:k.y}}}let p=i.naturalWidth,x=i.naturalHeight,y=Math.max(0,Math.min(r.x,p))/p*100,b=Math.max(0,Math.min(r.y,x))/x*100;this.positionPreview_$.set({displayKey:e.displayKey??"",xPct:y,yPct:b})}onScreenshotPointerLeaveImage(){this.positionPreview_$.set(null)}isClickSection(t){return t.type==="click"}bringSectionToFront(t){this.frontSectionId_$.set(t)}onClickPointPointerDown(t,e,n,i){if(t.preventDefault(),t.stopPropagation(),n==="click"&&e.type!=="click"||n==="inputClick"&&e.type!=="input"||(e.displayKey??"")!==(i.displayKey??""))return;let r=t.target;if(!(r instanceof HTMLElement))return;let p=r.closest(".relative")?.querySelector("img")??null;p===null||!p.naturalWidth||!p.naturalHeight||(this.dragPointer_$.set({sectionId:e.id,kind:n,img:p}),this.beginPointerCaptureForDragOrResize(t))}onSectionResizeHandlePointerDown(t,e,n){if(e.type==="click")return;t.preventDefault(),t.stopPropagation();let i=t.target;if(!(i instanceof HTMLElement))return;let _=i.closest(".relative")?.querySelector("img")??null;if(_===null||!_.naturalWidth||!_.naturalHeight)return;let p=this.sections_$().findIndex(x=>x.id===e.id);p<0||(this.resizeImgRef_$.set(_),this.resizeSectionIndex_$.set(p),this.resizeHandle_$.set(n),this.resizeStartBounds_$.set({x:e.bounds.x,y:e.bounds.y,width:e.bounds.width,height:e.bounds.height}),this.beginPointerCaptureForDragOrResize(t))}onDocumentPointerMove(t){if(this.activeDragResizePointerId!==null&&t.pointerId!==this.activeDragResizePointerId)return;let e=this.dragPointer_$();if(e!=null){let w=this.imagePixelCoordsFromClient(e.img,t.clientX,t.clientY),k=this.sections_$().find(P=>P.id===e.sectionId);if(!k){this.finishDragOrResizeInteraction();return}let $=this.clampPointToScreenshotPixels(k.displayKey,w.x,w.y),M=this.sections_$().findIndex(P=>P.id===e.sectionId);if(M<0)return;e.kind==="click"?this.updateSectionBounds(M,{x:$.x,y:$.y,width:1,height:1}):this.updateSectionClickPoint(M,{x:$.x,y:$.y});return}let n=this.resizeSectionIndex_$(),i=this.resizeHandle_$(),r=this.resizeImgRef_$(),_=this.resizeStartBounds_$();if(n===null||i===null||r===null||_===null)return;let p=this.imagePixelCoordsFromClient(r,t.clientX,t.clientY),x=r.naturalWidth,y=r.naturalHeight,b=this.computeResizedBounds(i,p.x,p.y,_,x,y);this.updateSectionBounds(n,b)}onDocumentPointerUp(t){this.activeDragResizePointerId!==null&&t.pointerId!==this.activeDragResizePointerId||this.finishDragOrResizeInteraction()}onDocumentPointerCancel(t){this.activeDragResizePointerId!==null&&t.pointerId!==this.activeDragResizePointerId||this.finishDragOrResizeInteraction()}computeResizedBounds(t,e,n,i,r,_){let p=i.x,x=i.x+i.width,y=i.y,b=i.y+i.height,w=t==="n"||t==="nw"||t==="ne",k=t==="s"||t==="sw"||t==="se",$=t==="w"||t==="nw"||t==="sw",M=t==="e"||t==="ne"||t==="se";w&&(y=Math.max(0,Math.min(n,b-1))),k&&(b=Math.min(_,Math.max(n,y+1))),$&&(p=Math.max(0,Math.min(e,x-1))),M&&(x=Math.min(r,Math.max(e,p+1)));let P=Math.max(1,x-p),W=Math.max(1,b-y);return{x:p,y,width:P,height:W}}removeSectionAt(t){let e=this.sections_$().filter((n,i)=>i!==t);this.sections_$.set(e)}updateSectionId(t,e){let n=[...this.sections_$()];if(t<0||t>=n.length)return;let i=typeof e=="string"?e.trim():"";n[t]={id:i,type:n[t].type,bounds:n[t].bounds,displayKey:n[t].displayKey,clickPoint:n[t].clickPoint},this.sections_$.set(n)}updateSectionBounds(t,e){let n=[...this.sections_$()];if(t<0||t>=n.length)return;let i=n[t].bounds,r=n[t].type==="click",_=e.x!==void 0?Math.max(0,Math.round(Number(e.x))):i.x,p=e.y!==void 0?Math.max(0,Math.round(Number(e.y))):i.y,x=e.width!==void 0?Math.max(1,Math.round(Number(e.width))):i.width,y=e.height!==void 0?Math.max(1,Math.round(Number(e.height))):i.height;if(r){let b=this.clampPointToScreenshotPixels(n[t].displayKey,_,p);_=b.x,p=b.y,x=1,y=1}n[t]={id:n[t].id,type:n[t].type,bounds:{x:_,y:p,width:x,height:y},displayKey:n[t].displayKey,clickPoint:n[t].clickPoint},n[t].type==="input"&&(n[t]=this.withReconciledInputClickPoint(n[t])),this.sections_$.set(n)}updateSectionClickPoint(t,e){let n=[...this.sections_$()];if(t<0||t>=n.length||n[t].type!=="input")return;let i=n[t].bounds,r=n[t].displayKey,_=this.reconcileInputClickPointCoords(i,r,e.x,e.y);n[t]={id:n[t].id,type:n[t].type,bounds:n[t].bounds,displayKey:n[t].displayKey,clickPoint:{x:_.x,y:_.y}},this.sections_$.set(n)}moveSectionUp(t){if(t<=0)return;let e=[...this.sections_$()],n=e[t-1];e[t-1]=e[t],e[t]=n,this.sections_$.set(e)}moveSectionDown(t){let e=[...this.sections_$()];if(t<0||t>=e.length-1)return;let n=e[t+1];e[t+1]=e[t],e[t]=n,this.sections_$.set(e)}moveSectionUpBySection(t){this.moveSectionUp(this.getSectionIndex(t))}moveSectionDownBySection(t){this.moveSectionDown(this.getSectionIndex(t))}removeSectionBySection(t){this.removeSectionAt(this.getSectionIndex(t))}updateSectionIdBySection(t,e){this.updateSectionId(this.getSectionIndex(t),e)}updateSectionBoundsBySection(t,e){this.updateSectionBounds(this.getSectionIndex(t),e)}trackSectionByIndex(t){return t}getSectionsForDisplayKey(t){let e=t??"";return this.sections_$().filter(n=>(n.displayKey??"")===e)}getSectionIndex(t){return this.sections_$().findIndex(e=>e.id===t.id)}getPositionPreviewForDisplayKey(t){let e=this.positionPreview_$();return!e||e.displayKey!==t?null:{xPct:e.xPct,yPct:e.yPct}}resizeHandles=zt;RESIZE_HANDLE_WRAPPER_CLASS={n:"group flex items-center justify-center min-w-11 min-h-11 touch-none left-1/2 top-0 -translate-x-1/2 -translate-y-1/2",s:"group flex items-center justify-center min-w-11 min-h-11 touch-none left-1/2 bottom-0 -translate-x-1/2 translate-y-1/2",e:"group flex items-center justify-center min-w-11 min-h-11 touch-none right-0 top-1/2 translate-x-1/2 -translate-y-1/2",w:"group flex items-center justify-center min-w-11 min-h-11 touch-none left-0 top-1/2 -translate-x-1/2 -translate-y-1/2",nw:"group flex items-center justify-center min-w-11 min-h-11 touch-none left-0 top-0 -translate-x-1/2 -translate-y-1/2",ne:"group flex items-center justify-center min-w-11 min-h-11 touch-none right-0 top-0 translate-x-1/2 -translate-y-1/2",sw:"group flex items-center justify-center min-w-11 min-h-11 touch-none left-0 bottom-0 -translate-x-1/2 translate-y-1/2",se:"group flex items-center justify-center min-w-11 min-h-11 touch-none right-0 bottom-0 translate-x-1/2 translate-y-1/2"};RESIZE_HANDLE_KNOB_CLASS="block w-2 h-2 shrink-0 bg-neonCyan border border-neutral-100 rounded-sm opacity-80 group-hover:opacity-100 pointer-events-none";RESIZE_HANDLE_CURSOR={n:"n-resize",s:"s-resize",e:"e-resize",w:"w-resize",nw:"nw-resize",ne:"ne-resize",sw:"sw-resize",se:"se-resize"};sectionTypeLabel(t){return this.sectionTypes.find(n=>n.value===t)?.label??t}canSave(){return this.canSave_$()}saveConfig(){return z(this,null,function*(){this.busy_$.set(!0),this.message_$.set(""),this.lastError_$.set(null);try{yield this.mcr_DS.saveConfig({sections:this.sections_$(),enabledDisplayKeys:this.enabledDisplayKeys_$(),remoteGridCols:this.remoteGridCols_$()}),this.message_$.set("Konfig mentve.")}catch(t){this.globalError_CS.showError(t,"mcr-poc"),this.lastError_$.set(t)}finally{this.busy_$.set(!1)}})}loadRegions(){return z(this,null,function*(){this.busy_$.set(!0),this.message_$.set(""),this.lastError_$.set(null);try{let t=yield this.mcr_DS.fetchRegions({withOcr:this.withOcr});this.regions_$.set(t.regions??[]),this.message_$.set(`${(t.regions??[]).length} region bet\xF6ltve.`)}catch(t){this.globalError_CS.showError(t,"mcr-poc"),this.lastError_$.set(t)}finally{this.busy_$.set(!1)}})}setAutoRefreshRegions(t){this.autoRefreshRegions_$.set(t),t?this.startRegionsRefresh():this.stopRegionsRefresh()}startRegionsRefresh(){this.stopRegionsRefresh(),this.regionsRefreshIntervalId=setInterval(()=>{this.viewMode==="remote"&&this.loadRegions()},o.REMOTE_REGIONS_AUTO_REFRESH_MS)}stopRegionsRefresh(){this.regionsRefreshIntervalId!==null&&(clearInterval(this.regionsRefreshIntervalId),this.regionsRefreshIntervalId=null)}onRemoteInputVoiceTranscript(t,e){let n=e?.trim()??"";if(!n)return;let i=t,r=(this.inputValues[i]??"").trim(),_=r.length>0?r+" "+n:n;this.inputValues=at(lt({},this.inputValues),{[i]:_})}doClick(t){return z(this,null,function*(){this.message_$.set(""),this.lastError_$.set(null);try{yield this.mcr_DS.click({sectionId:t}),this.message_$.set("Kattint\xE1s elk\xFCldve.")}catch(e){this.globalError_CS.showError(e,"mcr-poc"),this.lastError_$.set(e)}})}doType(t){return z(this,null,function*(){let e=this.inputValues[t]??"";this.message_$.set(""),this.lastError_$.set(null);try{yield this.mcr_DS.type({sectionId:t,text:e}),this.message_$.set("Sz\xF6veg elk\xFCldve."),this.inputValues[t]="",yield this.loadRegions()}catch(n){this.globalError_CS.showError(n,"mcr-poc"),this.lastError_$.set(n)}})}setViewMode(t){this.viewMode=t,t!=="remote"&&(this.stopRegionsRefresh(),this.autoRefreshRegions_$.set(!1)),t==="remote"&&this.loadConfig()}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=_t({type:o,selectors:[["app-ccap-master-control-remote-poc"]],viewQuery:function(e,n){e&1&&pt(n.screenshotFullscreenContainer,At,5),e&2&&mt()},hostBindings:function(e,n){e&1&&C("pointermove",function(r){return n.onDocumentPointerMove(r)},!1,Z)("pointerup",function(r){return n.onDocumentPointerUp(r)},!1,Z)("pointercancel",function(r){return n.onDocumentPointerCancel(r)},!1,Z)},decls:14,vars:12,consts:[["screenshotFullscreenContainer",""],[1,"max-w-4xl","mx-auto","p-4","gt-xs:p-6","text-neutral-100"],[1,"text-2xl","font-bold","mb-4"],[1,"text-neutral-400","mb-4"],[1,"flex","gap-2","mb-4"],["type","button",1,"px-4","py-2","border","border-neonDefault","rounded","text-neutral-300","hover:bg-neutral-800","transition-colors",3,"click"],[1,"space-y-8","mb-6"],[1,"space-y-6","mb-6"],[1,"text-sm","mb-4","text-neutral-300"],["sourceLabelOverride","POC Remote",1,"mb-4","block",3,"error"],[1,"rounded-lg","border","border-neonDefault","bg-neutral-800/50","p-4"],[1,"text-lg","font-semibold","text-neutral-200","mb-2"],[1,"text-sm","text-neutral-400","mb-3"],[1,"flex","flex-wrap","items-center","gap-4","mb-3"],["type","button",1,"px-4","py-2","border","border-neonCyan","rounded","text-neutral-300","hover:bg-neutral-800","disabled:opacity-50","transition-colors",3,"click","disabled"],["type","button",1,"px-4","py-2","border","border-neonCyan","rounded","text-neutral-300","hover:bg-neutral-800","transition-colors"],[1,"inline-flex","items-center","gap-2","cursor-pointer","select-none","text-sm","text-neutral-300"],["type","checkbox","name","showDebugOverlay",3,"ngModelChange","ngModel"],[1,"text-neutral-500","text-sm"],[1,"text-sm","text-neonCyan","mt-3"],[1,"flex","flex-wrap","items-center","gap-3","mt-4"],[1,"text-sm","text-neutral-400"],[1,"flex","gap-1"],["type","button",1,"px-3","py-1.5","text-sm","border","border-neutral-600","rounded","text-neutral-300","hover:bg-neutral-700","transition-colors",3,"border-neonCyan","bg-neutral-700"],[1,"text-sm","text-amber-400","mt-3"],[1,"text-xs","text-neutral-500","mt-3","max-w-xl"],["type","button",1,"mt-4","px-4","py-2","bg-ccapAccent","text-white","rounded","disabled:opacity-50","transition-colors",3,"click","disabled"],[1,"text-sm","text-neutral-400","mb-2"],[1,"flex","flex-wrap","gap-x-6","gap-y-1","mb-3"],["type","checkbox",3,"change","checked","name"],[1,"text-neutral-500","font-mono"],["type","button",1,"px-4","py-2","border","border-neonCyan","rounded","text-neutral-300","hover:bg-neutral-800","transition-colors",3,"click"],[1,"text-neutral-500","text-sm","mb-2"],[1,"relative","flex","flex-wrap","gap-4"],["type","button",1,"fixed","top-4","right-4","z-50","px-4","py-2","bg-neutral-800","border","border-neonCyan","text-neutral-200","rounded","hover:bg-neutral-700","transition-colors"],[1,"relative","inline-block","rounded","border","border-neonDefault","overflow-hidden","bg-neutral-900"],["type","button",1,"fixed","top-4","right-4","z-50","px-4","py-2","bg-neutral-800","border","border-neonCyan","text-neutral-200","rounded","hover:bg-neutral-700","transition-colors",3,"click"],[1,"text-xs","px-2","py-1","border-b","border-neutral-700","space-y-0.5"],[1,"text-neutral-200"],[1,"relative"],[1,"flex","items-center","justify-center","min-h-[120px]","w-[200px]","bg-neutral-800","text-amber-400","text-sm","px-2","py-4"],[1,"flex","flex-wrap","gap-2","p-2","border-t","border-neutral-700","bg-neutral-800/50"],["type","button",1,"px-2","py-1","text-xs","border","border-neonCyan","rounded","text-neutral-300","hover:bg-neutral-700","transition-colors",3,"click"],[1,"p-2","border-t","border-neutral-700","bg-neutral-800/30"],[1,"block","max-h-[60vh]","w-auto",3,"error","pointerup","pointermove","pointerleave","src","alt"],[1,"absolute","inset-0",3,"pointer-events-none","cursor-crosshair"],[1,"absolute","inset-0"],["title","Kattint\xE1s pont \u2014 h\xFAzd \xFAj helyre (kurzor-hegy a c\xE9lpixel)",1,"absolute","z-[25]","-translate-x-full","-translate-y-full","text-neonCyan","drop-shadow-[0_1px_2px_rgba(0,0,0,0.9)]","pointer-events-auto","cursor-grab","active:cursor-grabbing","touch-none","select-none",3,"left","top"],["title","Input kattint\xE1s pont \u2014 h\xFAzd \xFAj helyre (kurzor-hegy a c\xE9lpixel)",1,"absolute","z-[25]","-translate-x-full","-translate-y-full","text-amber-400","drop-shadow-[0_1px_2px_rgba(0,0,0,0.9)]","pointer-events-auto","cursor-grab","active:cursor-grabbing","touch-none","select-none",3,"left","top"],[1,"absolute","border-2","border-neonCyan","box-border","pointer-events-auto",3,"left","top","width","height","zIndex"],["title","Kattint\xE1s pont \u2014 h\xFAzd \xFAj helyre (kurzor-hegy a c\xE9lpixel)",1,"absolute","z-[25]","-translate-x-full","-translate-y-full","text-neonCyan","drop-shadow-[0_1px_2px_rgba(0,0,0,0.9)]","pointer-events-auto","cursor-grab","active:cursor-grabbing","touch-none","select-none",3,"pointerdown"],["width","11","height","11","aria-hidden","true"],["fill","currentColor"],["title","Input kattint\xE1s pont \u2014 h\xFAzd \xFAj helyre (kurzor-hegy a c\xE9lpixel)",1,"absolute","z-[25]","-translate-x-full","-translate-y-full","text-amber-400","drop-shadow-[0_1px_2px_rgba(0,0,0,0.9)]","pointer-events-auto","cursor-grab","active:cursor-grabbing","touch-none","select-none",3,"pointerdown"],[1,"absolute","border-2","border-neonCyan","box-border","pointer-events-auto",3,"pointerdown"],[1,"absolute",3,"class","cursor"],[1,"absolute",3,"pointerdown"],["aria-hidden","true"],["title","El\u0151n\xE9zet \u2014 kurzor-hegy a kattint\xE1s helye",1,"absolute","pointer-events-none","z-[26]","-translate-x-full","-translate-y-full","drop-shadow-[0_1px_2px_rgba(0,0,0,0.9)]","opacity-90",3,"text-neonCyan","text-amber-400","left","top"],["title","El\u0151n\xE9zet \u2014 kurzor-hegy a kattint\xE1s helye",1,"absolute","pointer-events-none","z-[26]","-translate-x-full","-translate-y-full","drop-shadow-[0_1px_2px_rgba(0,0,0,0.9)]","opacity-90"],[1,"text-xs","text-neutral-400","mb-2"],[1,"space-y-1.5"],[1,"flex","flex-wrap","items-center","gap-2","px-2","py-1.5","bg-neutral-800","rounded","border","border-neutral-700","text-sm"],["type","text","placeholder","Z\xF3na azonos\xEDt\xF3",1,"w-28","min-w-0","px-1.5","py-0.5","font-mono","text-xs","bg-neutral-700","border","border-neutral-600","rounded","text-neutral-100","focus:border-neonCyan",3,"ngModelChange","ngModel","name"],[1,"text-neutral-500","text-xs"],["type","number","min","0",1,"w-14","px-1","py-0.5","text-xs","bg-neutral-700","border","border-neutral-600","rounded",3,"ngModelChange","ngModel","name"],[1,"ml-auto","flex","items-center","gap-0.5"],["type","button",1,"px-1.5","py-0.5","text-neutral-400","hover:bg-neutral-700","hover:text-neutral-200","rounded","text-xs",3,"title"],["type","button","title","Fel",1,"p-1","rounded","text-neutral-400","hover:bg-neutral-700","disabled:opacity-40",3,"click","disabled"],["type","button","title","Le",1,"p-1","rounded","text-neutral-400","hover:bg-neutral-700","disabled:opacity-40",3,"click","disabled"],["type","button",1,"px-1.5","py-0.5","text-neonCyan","hover:bg-neutral-700","rounded","text-xs"],["type","button",1,"px-1.5","py-0.5","text-amber-400","hover:bg-neutral-700","rounded","text-xs"],["type","button",1,"px-1.5","py-0.5","text-red-400","hover:bg-red-900/30","rounded","text-xs",3,"click"],["type","number","min","1",1,"w-12","px-1","py-0.5","text-xs","bg-neutral-700","border","border-neutral-600","rounded",3,"ngModelChange","ngModel","name"],["type","button",1,"px-1.5","py-0.5","text-neutral-400","hover:bg-neutral-700","hover:text-neutral-200","rounded","text-xs",3,"click","title"],["type","button",1,"px-1.5","py-0.5","text-neonCyan","hover:bg-neutral-700","rounded","text-xs",3,"click"],["type","button",1,"px-1.5","py-0.5","text-amber-400","hover:bg-neutral-700","rounded","text-xs",3,"click"],["type","button",1,"ml-2","underline","hover:no-underline",3,"click"],["type","button",1,"px-3","py-1.5","text-sm","border","border-neutral-600","rounded","text-neutral-300","hover:bg-neutral-700","transition-colors",3,"click"],[1,"flex","flex-wrap","items-center","gap-4"],[1,"flex","items-center","gap-2","cursor-pointer","select-none"],["type","checkbox","name","withOcr",3,"ngModelChange","ngModel"],[1,"text-sm","text-neutral-300"],["type","checkbox","name","autoRefreshRegions",3,"ngModelChange","ngModel"],[1,"text-sm","font-medium","mb-2"],[1,"rounded","border","border-neonDefault","bg-neutral-800","p-2"],[1,"font-mono","text-xs","text-neutral-400","mb-1"],[1,"max-w-full","h-auto","rounded","mb-2",3,"src","alt"],[1,"text-xs","text-neutral-300","whitespace-pre-wrap","break-words"],[1,"rounded","border","border-neonDefault","bg-neutral-800","p-3"],[1,"font-mono","text-xs","text-neutral-400","mb-2"],[1,"max-w-full","h-auto","rounded","mb-2","max-h-32","object-contain",3,"src","alt"],[1,"flex","flex-wrap","items-center","gap-2"],["type","text","placeholder","Sz\xF6veg\u2026",1,"flex-1","min-w-[120px]","px-3","py-2","bg-neutral-700","border","border-neonDefault","rounded","text-neutral-100","text-sm",3,"ngModelChange","ngModel","name"],[1,"shrink-0","flex","items-center","self-center"],[3,"transcriptReady"],["type","button",1,"px-4","py-2","bg-ccapAccent","text-white","rounded","hover:opacity-90","transition-opacity",3,"click"],[1,"flex","flex-wrap","gap-2"],["type","button",1,"px-4","py-2","border","border-neonCyan","rounded","text-neutral-300","hover:shadow-neon-glow-cyan","transition-colors"],["type","button",1,"px-4","py-2","border","border-neonCyan","rounded","text-neutral-300","hover:shadow-neon-glow-cyan","transition-colors",3,"click"]],template:function(e,n){e&1&&(l(0,"div",1)(1,"h1",2),u(2,"Master Control Remote POC"),a(),l(3,"p",3),u(4," Be\xE1ll\xEDt\xE1s: screenshot alapj\xE1n szekci\xF3k kijel\xF6l\xE9se (olvas\xE1s, kattint\xE1s, input). Remote: kiv\xE1g\xE1sok megjelen\xEDt\xE9se, kattint\xE1s gombok, sz\xF6veg k\xFCld\xE9s. "),a(),l(5,"div",4)(6,"button",5),C("click",function(){return n.setViewMode("setup")}),u(7," Be\xE1ll\xEDt\xE1s "),a(),l(8,"button",5),C("click",function(){return n.setViewMode("remote")}),u(9," Remote "),a()(),f(10,xe,27,12,"div",6)(11,Pe,15,7,"div",7)(12,Me,2,1,"p",8)(13,Ie,1,1,"app-ccap-error-display",9),a()),e&2&&(c(6),O("border-ccapAccent",n.viewMode==="setup")("bg-neutral-800",n.viewMode==="setup"),c(2),O("border-ccapAccent",n.viewMode==="remote")("bg-neutral-800",n.viewMode==="remote"),c(2),g(n.viewMode==="setup"?10:-1),c(),g(n.viewMode==="remote"?11:-1),c(),g(n.message_$()?12:-1),c(),g(n.lastError_$()?13:-1))},dependencies:[Et,wt,bt,St,kt,vt,Q,J],encapsulation:2})}return o})();var Re=[{path:"",pathMatch:"full",component:Dt}],dn=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=dt({type:o});static \u0275inj=ct({imports:[xt,$t,ft.forChild(Re),Q,J]})}return o})();export{dn as MasterControlRemotePoc_Module};
|
|
2
|
+
//# sourceMappingURL=master-control-remote-poc.module-IXQRMTZO.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as p,b as B}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=mobile-app.module-
|
|
1
|
+
import{a as p,b as B}from"./chunk-IBQTN5YN.js";import{a as G,b as N}from"./chunk-P5IIY6MO.js";import{b as P,f as T,i as V,v as L}from"./chunk-EO4DNTT4.js";import{I as g,N as K,p as Q}from"./chunk-M2MQ43YC.js";import{C as d,D as k,E as w,Fa as t,Ga as U,Ha as m,J as y,K as M,Kb as I,L as z,X as F,Z as a,aa as C,da as f,ga as _,h as J,hb as S,k as h,la as s,qa as e,ra as n,sa as x,ua as $,ub as j,va as v,wa as u,y as A,z as D}from"./chunk-TBMJSIBB.js";var R=J(Q());var O=(()=>{class i{mobile_AS=d(G);isLoading_$=C(!0);mobileStatus_$=C(null);loadStatus(){return h(this,null,function*(){this.isLoading_$.set(!0);try{let l=yield this.mobile_AS.getStatus();this.mobileStatus_$.set(l)}catch(l){R.DyFM_Error.logSimple("CCAP_Mobile_DS | loadStatus failed",l),this.mobileStatus_$.set({version:"",available:!1})}finally{this.isLoading_$.set(!1)}})}static \u0275fac=function(r){return new(r||i)};static \u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function W(i,c){i&1&&(e(0,"div",3),x(1,"span",22),t(2," El\xE9rhet\u0151s\xE9g ellen\u0151rz\xE9se... "),n())}function X(i,c){if(i&1&&(e(0,"div",4)(1,"div",23),x(2,"span",24),e(3,"span",25),t(4,"APK el\xE9rhet\u0151"),n()(),e(5,"div",26)(6,"div"),t(7,"Verzi\xF3: "),e(8,"span",27),t(9),n()(),e(10,"div"),t(11,"M\xE9ret: "),e(12,"span",27),t(13),n()()(),e(14,"a",28),z(),e(15,"svg",29),x(16,"path",30),n(),t(17," Let\xF6lt\xE9s (Android APK) "),n()()),i&2){let l,r=u();a(9),m("v",(l=r.mobile_DS.mobileStatus_$())==null?null:l.version,""),a(4),U(r.fileSizeFormatted_$()),a(),_("href",r.downloadUrl,F)}}function Y(i,c){i&1&&(e(0,"div",5)(1,"div",31),x(2,"span",32),e(3,"span",18),t(4,"A mobil alkalmaz\xE1s jelenleg nem el\xE9rhet\u0151 ezen a szerveren."),n()(),e(5,"p",33),t(6," Futtasd a "),e(7,"code",21),t(8,"pnpm run build-mobile"),n(),t(9," parancsot a szerveren az APK elk\xE9sz\xEDt\xE9s\xE9hez. "),n()())}function Z(i,c){if(i&1&&(e(0,"div"),t(1,"Szerver APK verzi\xF3: "),e(2,"span",10),t(3),n()()),i&2){let l=u();a(3),m("v",l.versionCheck_CS.latestPackageVersion_$(),"")}}function ee(i,c){if(i&1){let l=$();e(0,"div",11)(1,"span",34),t(2," \xDAj verzi\xF3 el\xE9rhet\u0151 \u2014 telep\xEDt\xE9sre k\xE9sz. "),n(),e(3,"button",35),v("click",function(){y(l);let o=u();return M(o.handleInstallUpdate())}),t(4),n()()}if(i&2){let l=u();a(3),_("disabled",l.isInstallDisabled_$()),a(),m(" ",l.installButtonLabel_$()," ")}}function te(i,c){if(i&1&&(e(0,"p",12),t(1),n()),i&2){let l=u();a(),m("Hiba: ",l.updater_CS.lastError_$(),"")}}var q=(()=>{class i{mobile_DS=d(O);versionCheck_CS=d(N);updater_CS=d(B);settingsGeneral_DS=d(K);downloadUrl=g.api.baseUrl+"/mobile/download";currentClientVersion=g.version;fileSizeFormatted_$=S(()=>{let l=this.mobile_DS.mobileStatus_$()?.fileSizeBytes;return l?(l/1024/1024).toFixed(1)+" MB":""});installButtonLabel_$=S(()=>{let l=this.updater_CS.phase_$();return l===p.downloading?"Let\xF6lt\xE9s\u2026":l===p.installing?"Telep\xEDt\xE9s\u2026":l===p.failed?"\xDAjra pr\xF3b\xE1l\xE1s":"Friss\xEDt\xE9s telep\xEDt\xE9se"});isInstallDisabled_$=S(()=>{let l=this.updater_CS.phase_$();return l===p.downloading||l===p.installing});ngOnInit(){this.mobile_DS.loadStatus(),this.settingsGeneral_DS.load()}handleCheckForUpdates(){this.versionCheck_CS.checkNow(),this.mobile_DS.loadStatus()}handleInstallUpdate(){this.updater_CS.startUpdate()}handleAutoUpdateToggle(l){this.settingsGeneral_DS.updateGeneralForm({mobileAutoUpdateEnabled:l})}static \u0275fac=function(r){return new(r||i)};static \u0275cmp=k({type:i,selectors:[["app-ma-download"]],decls:52,vars:10,consts:[[1,"p-6","max-w-2xl","mx-auto"],[1,"text-2xl","font-bold","text-neutral-100"],[1,"text-neutral-400","mt-2"],[1,"mt-6","flex","items-center","gap-3","text-neutral-400"],[1,"mt-6","p-4","rounded-lg","border","border-neonDefault","bg-ccapSurface"],[1,"mt-6","p-4","rounded-lg","border","border-neutral-700","bg-ccapSurface"],[1,"flex","items-center","justify-between","gap-3","mb-3"],[1,"text-lg","font-semibold","text-neutral-200"],["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","disabled:opacity-40","disabled:cursor-not-allowed","transition-colors",3,"click","disabled"],[1,"flex","flex-col","gap-2","text-sm","text-neutral-400","mb-3"],[1,"text-neutral-200","font-mono"],[1,"mb-3","p-3","rounded","border","border-ccapAccent/50","bg-ccapAccent/10","flex","items-center","justify-between","gap-3"],[1,"text-xs","text-red-400","mb-3"],[1,"flex","items-start","gap-2","cursor-pointer"],["type","checkbox","name","mobileAutoUpdateEnabled",1,"mt-1",3,"ngModelChange","ngModel"],[1,"flex-1"],[1,"block","text-sm","text-neutral-200"],[1,"block","text-xs","text-neutral-500","mt-0.5","max-w-xl"],[1,"text-neutral-400"],[1,"mt-8"],[1,"mt-3","flex","flex-col","gap-2","text-sm","text-neutral-400","list-decimal","list-inside"],[1,"text-neutral-300"],[1,"inline-block","w-4","h-4","animate-spin","rounded-full","border-2","border-neonCyan/50","border-t-neonCyan"],[1,"flex","items-center","gap-3","mb-4"],[1,"w-3","h-3","rounded-full","bg-green-500","shrink-0"],[1,"text-neutral-200","font-medium"],[1,"flex","flex-col","gap-2","text-sm","text-neutral-400","mb-4"],[1,"text-neutral-200"],[1,"inline-flex","items-center","gap-2","px-4","py-2.5","rounded-md","bg-ccapAccent","text-neutral-900","font-medium","hover:bg-ccapAccentHover","transition-colors","duration-200",3,"href"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-5","h-5"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"],[1,"flex","items-center","gap-3"],[1,"w-3","h-3","rounded-full","bg-neutral-500","shrink-0"],[1,"text-neutral-500","text-sm","mt-2"],[1,"text-sm","text-neutral-200"],["type","button",1,"rounded-md","border","border-ccapAccent/60","bg-ccapAccent/15","px-3","py-1.5","text-xs","font-medium","text-ccapAccent","hover:bg-ccapAccent/25","disabled:opacity-40","disabled:cursor-not-allowed","transition-colors",3,"click","disabled"]],template:function(r,o){if(r&1&&(e(0,"div",0)(1,"h1",1),t(2,"CCAP Mobile App"),n(),e(3,"p",2),t(4," A CCAP mobil alkalmaz\xE1s Android-ra. Ugyanaz a fel\xFClet, mint a webes kliens, nat\xEDv alkalmaz\xE1sba csomagolva. "),n(),f(5,W,3,0,"div",3)(6,X,18,3,"div",4)(7,Y,10,0,"div",5),e(8,"div",4)(9,"div",6)(10,"h2",7),t(11,"Friss\xEDt\xE9s kezel\xE9s"),n(),e(12,"button",8),v("click",function(){return o.handleCheckForUpdates()}),t(13),n()(),e(14,"div",9)(15,"div"),t(16,"Kliens verzi\xF3: "),e(17,"span",10),t(18),n()(),f(19,Z,4,1,"div"),n(),f(20,ee,5,2,"div",11)(21,te,2,1,"p",12),e(22,"label",13)(23,"input",14),v("ngModelChange",function(E){return o.handleAutoUpdateToggle(E)}),n(),e(24,"span",15)(25,"span",16),t(26,"Automatikus friss\xEDt\xE9s"),n(),e(27,"span",17),t(28," Ha be van kapcsolva, a mobil app indul\xE1skor \xE9s 6 \xF3r\xE1nk\xE9nt ellen\u0151rzi a szerveren el\xE9rhet\u0151 APK verzi\xF3j\xE1t, \xE9s elt\xE9r\xE9s eset\xE9n automatikusan elind\xEDtja a telep\xEDt\xE9st. Ugyanez a be\xE1ll\xEDt\xE1s a "),e(29,"code",18),t(30,"/settings"),n(),t(31," oldalon is m\xF3dos\xEDthat\xF3 \u2014 a ment\xE9st a be\xE1ll\xEDt\xE1sok oldal Save gombj\xE1val v\xE9gleges\xEDtheted. "),n()()()(),e(32,"div",19)(33,"h2",7),t(34,"Els\u0151 telep\xEDt\xE9s"),n(),e(35,"ol",20)(36,"li"),t(37,"T\xF6ltsd le az APK f\xE1jlt a fenti gombbal"),n(),e(38,"li"),t(39,'Az Android telefonon enged\xE9lyezd az \u201EIsmeretlen forr\xE1sb\xF3l sz\xE1rmaz\xF3 alkalmaz\xE1sok telep\xEDt\xE9se" opci\xF3t'),n(),e(40,"li"),t(41,"Nyisd meg a let\xF6lt\xF6tt "),e(42,"code",21),t(43,"ccap.apk"),n(),t(44," f\xE1jlt"),n(),e(45,"li"),t(46,"K\xF6vesd a telep\xEDt\u0151 utas\xEDt\xE1sait"),n(),e(47,"li"),t(48,"Els\u0151 ind\xEDt\xE1skor add meg a szerver c\xEDm\xE9t (pl. "),e(49,"code",21),t(50,"https://192.168.1.x:39051"),n(),t(51,")"),n()()()()),r&2){let b,E;a(5),s(o.mobile_DS.isLoading_$()?5:-1),a(),s(!o.mobile_DS.isLoading_$()&&((b=o.mobile_DS.mobileStatus_$())!=null&&b.available)?6:-1),a(),s(!o.mobile_DS.isLoading_$()&&!((E=o.mobile_DS.mobileStatus_$())!=null&&E.available)?7:-1),a(5),_("disabled",o.versionCheck_CS.isChecking_$()),a(),m(" ",o.versionCheck_CS.isChecking_$()?"Ellen\u0151rz\xE9s\u2026":"Verzi\xF3 ellen\u0151rz\xE9s"," "),a(5),m("v",o.currentClientVersion,""),a(),s(o.versionCheck_CS.latestPackageVersion_$()?19:-1),a(),s(o.versionCheck_CS.updateAvailable_$()?20:-1),a(),s(o.updater_CS.lastError_$()?21:-1),a(2),_("ngModel",o.settingsGeneral_DS.section_$().form.mobileAutoUpdateEnabled)}},dependencies:[P,T,V],encapsulation:2})}return i})();var ne=[{path:"",pathMatch:"full",component:q}],ge=(()=>{class i{static \u0275fac=function(r){return new(r||i)};static \u0275mod=w({type:i});static \u0275inj=D({imports:[j,L,I.forChild(ne)]})}return i})();export{ge as MobileApp_Module};
|
|
2
|
+
//# sourceMappingURL=mobile-app.module-6VL6WSNJ.js.map
|