@futdevpro/ccap 1.1.3130 → 1.1.3138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client-dist/{agent-instances.module-KE64PSK7.js → agent-instances.module-ZOPVXJSY.js} +2 -2
- package/client-dist/{ca.module-JJZX5YKQ.js → ca.module-GBPPQBR7.js} +2 -2
- package/client-dist/{cc-usage-dashboard.component-ODAXHZHU.js → cc-usage-dashboard.component-WDBF2MIW.js} +2 -2
- package/client-dist/{cc.module-4MS5M5XW.js → cc.module-OMMM5NND.js} +2 -2
- package/client-dist/{chunk-QNLMNKP4.js → chunk-2KRQFVFS.js} +2 -2
- package/client-dist/{chunk-CUA2OS6E.js → chunk-32QF7M34.js} +2 -2
- package/client-dist/{chunk-HSO5WM67.js → chunk-3J5EVPQU.js} +2 -2
- package/client-dist/{chunk-CBMKN4SJ.js → chunk-4CKMY7CX.js} +2 -2
- package/client-dist/{chunk-ISPLVKBM.js → chunk-5OL2PVPJ.js} +2 -2
- package/client-dist/{chunk-EVYE6YII.js → chunk-65M4TV2B.js} +2 -2
- package/client-dist/{chunk-CIO2T2KX.js → chunk-7G4XAXDE.js} +2 -2
- package/client-dist/{chunk-EFH7L2PM.js → chunk-AXUASUMT.js} +2 -2
- package/client-dist/{chunk-URXIWUNP.js → chunk-CRU2A5CR.js} +2 -2
- package/client-dist/{chunk-5E5W3DFK.js → chunk-DVN2VXDE.js} +2 -2
- package/client-dist/{chunk-PR5VADUQ.js → chunk-EUZSCL5E.js} +2 -2
- package/client-dist/{chunk-4CLON3UX.js → chunk-FFMRDDGL.js} +2 -2
- package/client-dist/{chunk-U6B7OBXY.js → chunk-FJPTWDXS.js} +2 -2
- package/client-dist/{chunk-S5PG5OUU.js → chunk-G3IBMD7V.js} +2 -2
- package/client-dist/{chunk-KNTOPF7C.js → chunk-G3LGRE4Z.js} +2 -2
- package/client-dist/{chunk-LBG3XMYU.js → chunk-GBICGH5D.js} +2 -2
- package/client-dist/{chunk-HK2TYWE7.js → chunk-HVY3GMOZ.js} +2 -2
- package/client-dist/{chunk-VL2H6COO.js → chunk-I5ISS4IO.js} +2 -2
- package/client-dist/{chunk-RNXGBUU3.js → chunk-J772S2PU.js} +2 -2
- package/client-dist/{chunk-7TYUDNTP.js → chunk-JDAN7XYD.js} +2 -2
- package/client-dist/{chunk-FQL5FQFW.js → chunk-JEI7TDG4.js} +2 -2
- package/client-dist/{chunk-NIMLWXGM.js → chunk-JN3M2D7S.js} +2 -2
- package/client-dist/{chunk-EG7MEKVY.js → chunk-K3GAHTZ5.js} +2 -2
- package/client-dist/{chunk-CAUXU2ZC.js → chunk-K73EM3FB.js} +2 -2
- package/client-dist/{chunk-5KQZGU6O.js → chunk-K7GP33XJ.js} +2 -2
- package/client-dist/{chunk-L4CLV44N.js → chunk-KGYOX5HP.js} +2 -2
- package/client-dist/{chunk-QHZI4F2F.js → chunk-KNBMYOHX.js} +2 -2
- package/client-dist/{chunk-Y3DARUXQ.js → chunk-KPYMFKWR.js} +2 -2
- package/client-dist/{chunk-Y3DARUXQ.js.map → chunk-KPYMFKWR.js.map} +1 -1
- package/client-dist/{chunk-XZTQ4YC7.js → chunk-KVUXI6MR.js} +2 -2
- package/client-dist/{chunk-SWJLLCFC.js → chunk-LRRV7Y7L.js} +2 -2
- package/client-dist/{chunk-RLXJG6ZF.js → chunk-LTAFFTQP.js} +2 -2
- package/client-dist/{chunk-FBZDKQ4K.js → chunk-LXYDSYHF.js} +2 -2
- package/client-dist/{chunk-O6KFG5LW.js → chunk-LZFMN6MP.js} +2 -2
- package/client-dist/{chunk-NHKJYR4C.js → chunk-M6ZBHGHC.js} +2 -2
- package/client-dist/{chunk-VORYOEWH.js → chunk-MM3O33UM.js} +2 -2
- package/client-dist/{chunk-CF3BLCVD.js → chunk-ND5WRBGC.js} +2 -2
- package/client-dist/{chunk-TCDXJTTX.js → chunk-NJRFLQOC.js} +2 -2
- package/client-dist/{chunk-NBH53JWT.js → chunk-NPAZDIJ4.js} +2 -2
- package/client-dist/{chunk-ZTB2RW6R.js → chunk-PXZCAGLZ.js} +2 -2
- package/client-dist/{chunk-4O4UDIWG.js → chunk-Q4RH77GU.js} +2 -2
- package/client-dist/{chunk-3HLEHUE4.js → chunk-Q6OVG3PN.js} +2 -2
- package/client-dist/{chunk-X4IBG3WG.js → chunk-RE7V257C.js} +2 -2
- package/client-dist/{chunk-GOPRHQFC.js → chunk-RIPYHGQD.js} +2 -2
- package/client-dist/{chunk-5XJR5EAR.js → chunk-RJDAL72T.js} +2 -2
- package/client-dist/{chunk-R2C7U5TP.js → chunk-RO3VS3XW.js} +2 -2
- package/client-dist/{chunk-EC4VBEIV.js → chunk-RSDVRIME.js} +2 -2
- package/client-dist/{chunk-DB33SOJ3.js → chunk-TCW2TUTP.js} +2 -2
- package/client-dist/{chunk-C2ZXKTHA.js → chunk-UMIUBD3R.js} +2 -2
- package/client-dist/{chunk-FBF7RSNU.js → chunk-UO6KY2TS.js} +2 -2
- package/client-dist/{chunk-EGWEYXZW.js → chunk-WL2WTWXX.js} +2 -2
- package/client-dist/{chunk-UTJQVE4E.js → chunk-Y3WDXITT.js} +2 -2
- package/client-dist/{chunk-36BCBGXK.js → chunk-Z4WIK4FR.js} +2 -2
- package/client-dist/{chunk-KC7UN4VT.js → chunk-Z5C7EZ67.js} +2 -2
- package/client-dist/{chunk-JWXM6QMF.js → chunk-ZAIWCKXJ.js} +2 -2
- package/client-dist/{chunk-VU76JPZM.js → chunk-ZLMUL7S4.js} +2 -2
- package/client-dist/{chunk-V6QEYU4X.js → chunk-ZTOURJ46.js} +2 -2
- package/client-dist/{consultant.module-S4UQA3UJ.js → consultant.module-H36X7I4H.js} +2 -2
- package/client-dist/{crd.module-XHOTNUXY.js → crd.module-PHBM5USN.js} +2 -2
- package/client-dist/{dashboard.module-YZMJUPDH.js → dashboard.module-DKD6EVE6.js} +2 -2
- package/client-dist/{do.module-ESWOBSRO.js → do.module-HNYYKF5M.js} +2 -2
- package/client-dist/{document-library.module-S2IATB7C.js → document-library.module-XR6BXCSU.js} +2 -2
- package/client-dist/{embedding-eval.module-OAUL3HRQ.js → embedding-eval.module-4HGGOYW5.js} +2 -2
- package/client-dist/{embedding-registry.module-T4Q57QWS.js → embedding-registry.module-T3RG2V42.js} +2 -2
- package/client-dist/{err.module-YM7F2DFM.js → err.module-C6HAAWFO.js} +2 -2
- package/client-dist/{feedback.module-4ZLA4O5I.js → feedback.module-ZDWYCOVW.js} +2 -2
- package/client-dist/{host-runtime-mcp.module-OIK42CRE.js → host-runtime-mcp.module-SOUQHK2I.js} +2 -2
- package/client-dist/index.html +1 -1
- package/client-dist/{live-dev-pipeline.module-AFWGOCMO.js → live-dev-pipeline.module-TR7XBOXT.js} +2 -2
- package/client-dist/{logs.module-OSZVMRRI.js → logs.module-VVDZLW7V.js} +2 -2
- package/client-dist/{main-3KSHNVCW.js → main-NHMXKD2O.js} +3 -3
- package/client-dist/{master-control-remote-poc.module-T5NK5KD7.js → master-control-remote-poc.module-LSZYOHDO.js} +2 -2
- package/client-dist/{mobile-app.module-GPFLEVWR.js → mobile-app.module-AVY75HHG.js} +2 -2
- package/client-dist/{model-registry.module-SKRFHTWQ.js → model-registry.module-GW7D2VQ5.js} +2 -2
- package/client-dist/{oc.module-562ZP6BM.js → oc.module-YYYU75GK.js} +2 -2
- package/client-dist/{orc.module-SCMVZ535.js → orc.module-SECLSICH.js} +2 -2
- package/client-dist/{project-management.module-LA7M6MXA.js → project-management.module-CTU3GS3P.js} +2 -2
- package/client-dist/project-source-routed.module-EPBJI5KC.js +2 -0
- package/client-dist/{scheduler.module-QNWITVDV.js → scheduler.module-RET3QOQA.js} +2 -2
- package/client-dist/{session.module-LJNWNXN7.js → session.module-YXMACPSW.js} +2 -2
- package/client-dist/{set.module-FINVUQYD.js → set.module-7GLQMJ36.js} +2 -2
- package/client-dist/{setup.module-5FOSEQWI.js → setup.module-3UUHPGTT.js} +2 -2
- package/client-dist/{terminals.module-LMW6DR3T.js → terminals.module-ZQHRH4VJ.js} +2 -2
- package/client-dist/{voice-notes-poc.module-R3ECC3V3.js → voice-notes-poc.module-HDQAMMDM.js} +2 -2
- package/client-dist/{wfs.module-TAZFZ2BH.js → wfs.module-XPB56MOB.js} +2 -2
- package/package.json +1 -1
- package/client-dist/project-source-routed.module-QQBPIDUK.js +0 -2
- /package/client-dist/{agent-instances.module-KE64PSK7.js.map → agent-instances.module-ZOPVXJSY.js.map} +0 -0
- /package/client-dist/{ca.module-JJZX5YKQ.js.map → ca.module-GBPPQBR7.js.map} +0 -0
- /package/client-dist/{cc-usage-dashboard.component-ODAXHZHU.js.map → cc-usage-dashboard.component-WDBF2MIW.js.map} +0 -0
- /package/client-dist/{cc.module-4MS5M5XW.js.map → cc.module-OMMM5NND.js.map} +0 -0
- /package/client-dist/{chunk-QNLMNKP4.js.map → chunk-2KRQFVFS.js.map} +0 -0
- /package/client-dist/{chunk-CUA2OS6E.js.map → chunk-32QF7M34.js.map} +0 -0
- /package/client-dist/{chunk-HSO5WM67.js.map → chunk-3J5EVPQU.js.map} +0 -0
- /package/client-dist/{chunk-CBMKN4SJ.js.map → chunk-4CKMY7CX.js.map} +0 -0
- /package/client-dist/{chunk-ISPLVKBM.js.map → chunk-5OL2PVPJ.js.map} +0 -0
- /package/client-dist/{chunk-EVYE6YII.js.map → chunk-65M4TV2B.js.map} +0 -0
- /package/client-dist/{chunk-CIO2T2KX.js.map → chunk-7G4XAXDE.js.map} +0 -0
- /package/client-dist/{chunk-EFH7L2PM.js.map → chunk-AXUASUMT.js.map} +0 -0
- /package/client-dist/{chunk-URXIWUNP.js.map → chunk-CRU2A5CR.js.map} +0 -0
- /package/client-dist/{chunk-5E5W3DFK.js.map → chunk-DVN2VXDE.js.map} +0 -0
- /package/client-dist/{chunk-PR5VADUQ.js.map → chunk-EUZSCL5E.js.map} +0 -0
- /package/client-dist/{chunk-4CLON3UX.js.map → chunk-FFMRDDGL.js.map} +0 -0
- /package/client-dist/{chunk-U6B7OBXY.js.map → chunk-FJPTWDXS.js.map} +0 -0
- /package/client-dist/{chunk-S5PG5OUU.js.map → chunk-G3IBMD7V.js.map} +0 -0
- /package/client-dist/{chunk-KNTOPF7C.js.map → chunk-G3LGRE4Z.js.map} +0 -0
- /package/client-dist/{chunk-LBG3XMYU.js.map → chunk-GBICGH5D.js.map} +0 -0
- /package/client-dist/{chunk-HK2TYWE7.js.map → chunk-HVY3GMOZ.js.map} +0 -0
- /package/client-dist/{chunk-VL2H6COO.js.map → chunk-I5ISS4IO.js.map} +0 -0
- /package/client-dist/{chunk-RNXGBUU3.js.map → chunk-J772S2PU.js.map} +0 -0
- /package/client-dist/{chunk-7TYUDNTP.js.map → chunk-JDAN7XYD.js.map} +0 -0
- /package/client-dist/{chunk-FQL5FQFW.js.map → chunk-JEI7TDG4.js.map} +0 -0
- /package/client-dist/{chunk-NIMLWXGM.js.map → chunk-JN3M2D7S.js.map} +0 -0
- /package/client-dist/{chunk-EG7MEKVY.js.map → chunk-K3GAHTZ5.js.map} +0 -0
- /package/client-dist/{chunk-CAUXU2ZC.js.map → chunk-K73EM3FB.js.map} +0 -0
- /package/client-dist/{chunk-5KQZGU6O.js.map → chunk-K7GP33XJ.js.map} +0 -0
- /package/client-dist/{chunk-L4CLV44N.js.map → chunk-KGYOX5HP.js.map} +0 -0
- /package/client-dist/{chunk-QHZI4F2F.js.map → chunk-KNBMYOHX.js.map} +0 -0
- /package/client-dist/{chunk-XZTQ4YC7.js.map → chunk-KVUXI6MR.js.map} +0 -0
- /package/client-dist/{chunk-SWJLLCFC.js.map → chunk-LRRV7Y7L.js.map} +0 -0
- /package/client-dist/{chunk-RLXJG6ZF.js.map → chunk-LTAFFTQP.js.map} +0 -0
- /package/client-dist/{chunk-FBZDKQ4K.js.map → chunk-LXYDSYHF.js.map} +0 -0
- /package/client-dist/{chunk-O6KFG5LW.js.map → chunk-LZFMN6MP.js.map} +0 -0
- /package/client-dist/{chunk-NHKJYR4C.js.map → chunk-M6ZBHGHC.js.map} +0 -0
- /package/client-dist/{chunk-VORYOEWH.js.map → chunk-MM3O33UM.js.map} +0 -0
- /package/client-dist/{chunk-CF3BLCVD.js.map → chunk-ND5WRBGC.js.map} +0 -0
- /package/client-dist/{chunk-TCDXJTTX.js.map → chunk-NJRFLQOC.js.map} +0 -0
- /package/client-dist/{chunk-NBH53JWT.js.map → chunk-NPAZDIJ4.js.map} +0 -0
- /package/client-dist/{chunk-ZTB2RW6R.js.map → chunk-PXZCAGLZ.js.map} +0 -0
- /package/client-dist/{chunk-4O4UDIWG.js.map → chunk-Q4RH77GU.js.map} +0 -0
- /package/client-dist/{chunk-3HLEHUE4.js.map → chunk-Q6OVG3PN.js.map} +0 -0
- /package/client-dist/{chunk-X4IBG3WG.js.map → chunk-RE7V257C.js.map} +0 -0
- /package/client-dist/{chunk-GOPRHQFC.js.map → chunk-RIPYHGQD.js.map} +0 -0
- /package/client-dist/{chunk-5XJR5EAR.js.map → chunk-RJDAL72T.js.map} +0 -0
- /package/client-dist/{chunk-R2C7U5TP.js.map → chunk-RO3VS3XW.js.map} +0 -0
- /package/client-dist/{chunk-EC4VBEIV.js.map → chunk-RSDVRIME.js.map} +0 -0
- /package/client-dist/{chunk-DB33SOJ3.js.map → chunk-TCW2TUTP.js.map} +0 -0
- /package/client-dist/{chunk-C2ZXKTHA.js.map → chunk-UMIUBD3R.js.map} +0 -0
- /package/client-dist/{chunk-FBF7RSNU.js.map → chunk-UO6KY2TS.js.map} +0 -0
- /package/client-dist/{chunk-EGWEYXZW.js.map → chunk-WL2WTWXX.js.map} +0 -0
- /package/client-dist/{chunk-UTJQVE4E.js.map → chunk-Y3WDXITT.js.map} +0 -0
- /package/client-dist/{chunk-36BCBGXK.js.map → chunk-Z4WIK4FR.js.map} +0 -0
- /package/client-dist/{chunk-KC7UN4VT.js.map → chunk-Z5C7EZ67.js.map} +0 -0
- /package/client-dist/{chunk-JWXM6QMF.js.map → chunk-ZAIWCKXJ.js.map} +0 -0
- /package/client-dist/{chunk-VU76JPZM.js.map → chunk-ZLMUL7S4.js.map} +0 -0
- /package/client-dist/{chunk-V6QEYU4X.js.map → chunk-ZTOURJ46.js.map} +0 -0
- /package/client-dist/{consultant.module-S4UQA3UJ.js.map → consultant.module-H36X7I4H.js.map} +0 -0
- /package/client-dist/{crd.module-XHOTNUXY.js.map → crd.module-PHBM5USN.js.map} +0 -0
- /package/client-dist/{dashboard.module-YZMJUPDH.js.map → dashboard.module-DKD6EVE6.js.map} +0 -0
- /package/client-dist/{do.module-ESWOBSRO.js.map → do.module-HNYYKF5M.js.map} +0 -0
- /package/client-dist/{document-library.module-S2IATB7C.js.map → document-library.module-XR6BXCSU.js.map} +0 -0
- /package/client-dist/{embedding-eval.module-OAUL3HRQ.js.map → embedding-eval.module-4HGGOYW5.js.map} +0 -0
- /package/client-dist/{embedding-registry.module-T4Q57QWS.js.map → embedding-registry.module-T3RG2V42.js.map} +0 -0
- /package/client-dist/{err.module-YM7F2DFM.js.map → err.module-C6HAAWFO.js.map} +0 -0
- /package/client-dist/{feedback.module-4ZLA4O5I.js.map → feedback.module-ZDWYCOVW.js.map} +0 -0
- /package/client-dist/{host-runtime-mcp.module-OIK42CRE.js.map → host-runtime-mcp.module-SOUQHK2I.js.map} +0 -0
- /package/client-dist/{live-dev-pipeline.module-AFWGOCMO.js.map → live-dev-pipeline.module-TR7XBOXT.js.map} +0 -0
- /package/client-dist/{logs.module-OSZVMRRI.js.map → logs.module-VVDZLW7V.js.map} +0 -0
- /package/client-dist/{main-3KSHNVCW.js.map → main-NHMXKD2O.js.map} +0 -0
- /package/client-dist/{master-control-remote-poc.module-T5NK5KD7.js.map → master-control-remote-poc.module-LSZYOHDO.js.map} +0 -0
- /package/client-dist/{mobile-app.module-GPFLEVWR.js.map → mobile-app.module-AVY75HHG.js.map} +0 -0
- /package/client-dist/{model-registry.module-SKRFHTWQ.js.map → model-registry.module-GW7D2VQ5.js.map} +0 -0
- /package/client-dist/{oc.module-562ZP6BM.js.map → oc.module-YYYU75GK.js.map} +0 -0
- /package/client-dist/{orc.module-SCMVZ535.js.map → orc.module-SECLSICH.js.map} +0 -0
- /package/client-dist/{project-management.module-LA7M6MXA.js.map → project-management.module-CTU3GS3P.js.map} +0 -0
- /package/client-dist/{project-source-routed.module-QQBPIDUK.js.map → project-source-routed.module-EPBJI5KC.js.map} +0 -0
- /package/client-dist/{scheduler.module-QNWITVDV.js.map → scheduler.module-RET3QOQA.js.map} +0 -0
- /package/client-dist/{session.module-LJNWNXN7.js.map → session.module-YXMACPSW.js.map} +0 -0
- /package/client-dist/{set.module-FINVUQYD.js.map → set.module-7GLQMJ36.js.map} +0 -0
- /package/client-dist/{setup.module-5FOSEQWI.js.map → setup.module-3UUHPGTT.js.map} +0 -0
- /package/client-dist/{terminals.module-LMW6DR3T.js.map → terminals.module-ZQHRH4VJ.js.map} +0 -0
- /package/client-dist/{voice-notes-poc.module-R3ECC3V3.js.map → voice-notes-poc.module-HDQAMMDM.js.map} +0 -0
- /package/client-dist/{wfs.module-TAZFZ2BH.js.map → wfs.module-XPB56MOB.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Tl}from"./chunk-QHZI4F2F.js";import{a as he,b as _e,c as Ol,e as $a,h as Xa,j as Il,k as zo,l as Wo,m as Yo,o as Fl,p as vt}from"./chunk-Y3DARUXQ.js";import{F as Va,a as j,b as Z,c as Ka,f,h as ge,i as fe,k as Se}from"./chunk-TBMJSIBB.js";var Ht=f(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.DyNM_allButtonNewBorderRadius=Je.DyNM_ButtonNewBorderRadius=void 0;var qo=function(e){return e.full="full",e.rounded="rounded",e.smallRadius="smallRadius",e.square="square",e}(qo||(Je.DyNM_ButtonNewBorderRadius=qo={}));Je.DyNM_allButtonNewBorderRadius=Object.values(qo)});var Ut=f(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.DyNM_allButtonNewSizes=Qe.DyNM_ButtonNewSize=void 0;var Zo=function(e){return e.xs="xs",e.small="small",e.medium="medium",e.large="large",e.xl="xl",e}(Zo||(Qe.DyNM_ButtonNewSize=Zo={}));Qe.DyNM_allButtonNewSizes=Object.values(Zo)});var Kt=f(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DyNM_allButtonNewStyleTypes=et.DyNM_ButtonNewStyleType=void 0;var Jo=function(e){return e.filled="filled",e.stroked="stroked",e.outstanding="outstanding",e.tonal="tonal",e.backgroundless="backgroundless",e}(Jo||(et.DyNM_ButtonNewStyleType=Jo={}));et.DyNM_allButtonNewStyleTypes=Object.values(Jo)});var St=f(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.DyNM_allMaterialColors=tt.DyNM_MaterialColor=void 0;var Qo=function(e){return e.primary="primary",e.accent="accent",e.warn="warn",e.none="",e}(Qo||(tt.DyNM_MaterialColor=Qo={}));tt.DyNM_allMaterialColors=Object.values(Qo)});var ti=f(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.DyNM_allButtonNewIconStyleTypes=nt.DyNM_ButtonNewIconStyleType=void 0;var ei=function(e){return e.rounded="rounded",e.outlined="outlined",e}(ei||(nt.DyNM_ButtonNewIconStyleType=ei={}));nt.DyNM_allButtonNewIconStyleTypes=Object.values(ei)});var oi=f(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.DyNM_ButtonNewStyle_Settings=void 0;var kl=Ht(),ja=ti(),Ll=Ut(),Gl=Kt(),Hl=St(),ni=class{size=Ll.DyNM_ButtonNewSize.medium;color=Hl.DyNM_MaterialColor.primary;styleType=Gl.DyNM_ButtonNewStyleType.filled;borderRadius=kl.DyNM_ButtonNewBorderRadius.smallRadius;isIconButton;iconFill;iconStyle=ja.DyNM_ButtonNewIconStyleType.rounded;constructor(t){t&&Object.assign(this,t),this.isIconButton&&!this.iconStyle&&(this.iconStyle=ja.DyNM_ButtonNewIconStyleType.rounded)}};Vt.DyNM_ButtonNewStyle_Settings=ni});var Wa=f($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.DyNM_ButtonNewStyleSettingsPresets=void 0;var Le=Ht(),z=Ut(),Q=Kt(),za=St(),K=oi();$t.DyNM_ButtonNewStyleSettingsPresets={xs:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs}),xsIcon:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,isIconButton:!0}),xsRounded:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded}),xsStroked:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,styleType:Q.DyNM_ButtonNewStyleType.stroked}),xsStrokedIcon:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,styleType:Q.DyNM_ButtonNewStyleType.stroked,isIconButton:!0}),xsBackgroundlessIcon:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0}),xsRoundedTonal:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,styleType:Q.DyNM_ButtonNewStyleType.tonal}),small:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.small}),smallIcon:new K.DyNM_ButtonNewStyle_Settings({isIconButton:!0,size:z.DyNM_ButtonNewSize.small}),smallStrokedIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,isIconButton:!0,size:z.DyNM_ButtonNewSize.small}),smallTonalIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.tonal,isIconButton:!0,size:z.DyNM_ButtonNewSize.small}),smallRounded:new K.DyNM_ButtonNewStyle_Settings({borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,size:z.DyNM_ButtonNewSize.small}),smallStroked:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,size:z.DyNM_ButtonNewSize.small}),smallTonal:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.tonal,size:z.DyNM_ButtonNewSize.small}),smallRoundedTonal:new K.DyNM_ButtonNewStyle_Settings({borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,styleType:Q.DyNM_ButtonNewStyleType.tonal,size:z.DyNM_ButtonNewSize.small}),smallStrokedRounded:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,size:z.DyNM_ButtonNewSize.small}),smallBackgroundless:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,size:z.DyNM_ButtonNewSize.small}),icon:new K.DyNM_ButtonNewStyle_Settings({isIconButton:!0}),backgroundlessSmallIconUnset:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0,size:z.DyNM_ButtonNewSize.small,color:""}),backgroundlessIconUnset:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0,color:""}),smallBackgroundlessIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0,size:z.DyNM_ButtonNewSize.small}),strokedIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,isIconButton:!0}),backgroundlessIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0}),accent:new K.DyNM_ButtonNewStyle_Settings({color:za.DyNM_MaterialColor.accent}),strokedAccent:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,color:za.DyNM_MaterialColor.accent}),stroked:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked}),round:new K.DyNM_ButtonNewStyle_Settings({borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded}),strokedRound:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded}),large:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.large}),largeStroked:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,size:z.DyNM_ButtonNewSize.large}),largeStrokedRound:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,size:z.DyNM_ButtonNewSize.large}),largeTonal:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.tonal,size:z.DyNM_ButtonNewSize.large}),largeIcon:new K.DyNM_ButtonNewStyle_Settings({isIconButton:!0,size:z.DyNM_ButtonNewSize.large}),largeStrokedIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,isIconButton:!0,size:z.DyNM_ButtonNewSize.large}),xl:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xl}),xlIcon:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xl,isIconButton:!0})}});var ii=f(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.DyNM_Container_Type=void 0;var Ya=function(e){return e.card="card",e.accordion="accordion",e.dynamo="dynamo",e.dynamoSmall="dynamo-small",e.none="none",e}(Ya||(Xt.DyNM_Container_Type=Ya={}))});var ai=f(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.DyNM_FieldAppearance=void 0;var qa=function(e){return e.fill="fill",e.outline="outline",e}(qa||(jt.DyNM_FieldAppearance=qa={}))});var si=f(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.DyNM_Storage_Type=void 0;var Za=function(e){return e.session="session",e.local="local",e.none="",e}(Za||(zt.DyNM_Storage_Type=Za={}))});var Qa=f(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.DyNM_global_settings=void 0;var Ul=ii(),Kl=ai(),Ja=si();Wt.DyNM_global_settings={fieldAppearance:Kl.DyNM_FieldAppearance.outline,baseUrl:"/api",usageEndpoints:{startSession:"/usage/new-session",updateUsage:"/usage/update/{sessionId}",closeSession:"/usage/close-session/{sessionId}",getUsageData:"/usage/get/all"},alwaysLookForFieldAdder:!1,fieldErrorMessages:{required:"This field is required",email:"This is not a valid email format",mask:"This is not a valid format"},defaultStorage:Ja.DyNM_Storage_Type.session,storageEncryptionKey:"DEFAULT_DyFM_ENCRYPTION_KEY_CHANGE_THIS_XXXXXXX00000009999999999",defaultFormStorage:Ja.DyNM_Storage_Type.session,defaultFormContainerType:Ul.DyNM_Container_Type.none,formMessages:{required:"There are required fields to set!",invalid:"The form is not set correctly",submitSuccess:"Save was successful!",submitFailed:"Saving data has failed!"},questionDefaultOptions:{a:"No",b:"Yes"},fieldTooltipShowDelay:300,snackBarHideLabel:"Hide",log_settings:{api_calls:!0,messagesCS_debug:!1}}});var ri=f(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.DyNM_Button_Type=void 0;var es=function(e){return e.default="default",e.big="big",e.stroked="stroked",e.bigStroked="big-stroked",e.small="small",e.smallStroked="small-stroked",e.round="round",e.strokedRound="stroked-round",e.bigStrokedRound="big-stroked-round",e.block="block",e.bigBlock="big-block",e.strokedBlock="stroked-block",e.bigStrokedBlock="big-stroked-block",e.outstanding="outstanding",e.icon="icon",e.iconSmall="icon-small",e.iconBig="icon-big",e.iconStroked="icon-stroked",e.iconSmallStroked="icon-small-stroked",e.iconBigStroked="icon-big-stroked",e.iconOutstanding="icon-outstanding",e}(es||(Yt.DyNM_Button_Type=es={}))});var ns=f(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.DyNM_CheckboxLabelPosition=void 0;var ts=function(e){return e.before="before",e.after="after",e}(ts||(qt.DyNM_CheckboxLabelPosition=ts={}))});var is=f(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.DyNM_Field_Type=void 0;var os=function(e){return e.spacer="spacer",e.checkbox="checkbox",e.toggle="toggle",e.text="text",e.textList="textList",e.password="password",e.textarea="textarea",e.richtextarea="richtextarea",e.number="number",e.numberRange="numberRange",e.slider="slider",e.sliderRange="sliderRange",e.select="select",e.multiselect="multiselect",e.chipSelect="chipSelect",e.chipMultiselect="chipMultiselect",e.radioSelect="radioSelect",e.date="date",e.dateRange="dateRange",e.dateTime="dateTime",e.dateTimeRange="dateTimeRange",e.file="file",e.files="files",e.picture="picture",e.pictures="pictures",e.fieldAdder="fieldAdder",e.multifield="multifield",e}(os||(Zt.DyNM_Field_Type=os={}))});var ss=f(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.DyNM_File_Type=void 0;var as=function(e){return e.arrayBuffer="arrayBuffer",e.binaryString="binaryString",e.dataUrl="dataUrl",e.text="text",e.blob="blob",e.file="file",e}(as||(Jt.DyNM_File_Type=as={}))});var ds=f(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.DyNM_FormAccess=void 0;var rs=function(e){return e.readOnly="read-only",e.writeOnly="write-only",e.readNWrite="read-n-write",e}(rs||(Qt.DyNM_FormAccess=rs={}))});var ls=f(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.DyNM_FormResetData=void 0;var cs=function(e){return e.null="null",e.empty="empty",e.default="deafult",e.dataHandler="data-handler",e.init="init",e.stored="stored",e}(cs||(en.DyNM_FormResetData=cs={}))});var us=f(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.DyNM_FormStoreOn=void 0;var ms=function(e){return e.close="close",e.change="change",e}(ms||(tn.DyNM_FormStoreOn=ms={}))});var ci=f(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.DyNM_allMaterialTooltipPositions=ot.DyNM_MaterialTooltipPosition=void 0;var di=function(e){return e.above="above",e.below="below",e.before="before",e.after="after",e.left="left",e.right="right",e}(di||(ot.DyNM_MaterialTooltipPosition=di={}));ot.DyNM_allMaterialTooltipPositions=Object.values(di)});var gs=f(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.DyNM_PreconfiguredField_Type=void 0;var ps=function(e){return e.email="email",e.phone="phone",e}(ps||(nn.DyNM_PreconfiguredField_Type=ps={}))});var hs=f(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.DyNM_Validator_Type=void 0;var fs=function(e){return e.requiredCheckbox="requiredCheckbox",e}(fs||(on.DyNM_Validator_Type=fs={}))});var ys=f(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.DyNM_FXLayoutAlignPerDir=it.DyNM_FXLayoutAlignLayDir=void 0;var _s=function(e){return e.none="none",e.start="start",e.center="center",e.end="end",e.spaceAround="space-around",e.spaceBetween="space-between",e}(_s||(it.DyNM_FXLayoutAlignLayDir=_s={})),Cs=function(e){return e.none="none",e.start="start",e.center="center",e.end="end",e.stretch="stretch",e}(Cs||(it.DyNM_FXLayoutAlignPerDir=Cs={}))});var bs=f(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.DyNM_FXLayout=void 0;var xs=function(e){return e.row="row",e.column="column",e}(xs||(an.DyNM_FXLayout=xs={}))});var Ss=f(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.DyNM_HTMLInput_Type=void 0;var vs=function(e){return e.button="button",e.checkbox="checkbox",e.color="color",e.date="date",e.datetimeLocal="datetime-local",e.email="email",e.file="file",e.hidden="hidden",e.image="image",e.month="month",e.number="number",e.password="password",e.radio="radio",e.range="range",e.reset="reset",e.search="search",e.submit="submit",e.tel="tel",e.text="text",e.time="time",e.url="url",e.week="week",e}(vs||(sn.DyNM_HTMLInput_Type=vs={}))});var mi=f(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.DyNM_Button_Params=void 0;var Vl=vt(),Y=ri(),$l=St(),Xl=ci(),jl=Xl.DyNM_MaterialTooltipPosition.above,zl=250,li=class{id;label;color=$l.DyNM_MaterialColor.primary;icon;description;descriptionPosition;descriptionDelay;type;disabled;dontRoute;routerLink;routerLinkQueryParams;iconAfter;buttonType;class;contentClass;classOnActive;contentClassOnActive;customClass;customContentClass;customClassOnActive;customContentClassOnActive;onClickEvents=[];useDisablerWhileEventsInProgress;constructor(t){t&&Object.assign(this,t),this.type||(this.icon&&!this.label?this.type=Y.DyNM_Button_Type.icon:this.type=Y.DyNM_Button_Type.default),this.id||(this.id=`${this.label}-${this.type}-${this.color}-button`),(this.description||this.type.includes("icon")&&this.label)&&(this.descriptionPosition||(this.descriptionPosition=jl),this.descriptionDelay||(this.descriptionDelay=zl)),this.class=Wl(this.type,this.color)+(this.customClass??""),this.contentClass=ql(this.type,this.customContentClass)+(this.customContentClass??""),(this.customClassOnActive||this.routerLink)&&(this.classOnActive=Yl(this.type,this.color)+(this.customClassOnActive??""),this.contentClassOnActive=this.customContentClassOnActive??"")}executeEvents(t){return Se(this,null,function*(){yield Vl.DyFM_Array.asyncForEach(this.onClickEvents,n=>Se(this,null,function*(){yield n(t)}))})}};rn.DyNM_Button_Params=li;function Wl(e,t,n=!0){let o="";switch(n?(o+="disabled:bg-neutral-800 ",o+="disabled:hover:bg-neutral-600 ",o+="disabled:text-neutral-600 ",o+="disabled:hover:text-neutral-900 "):(o+="disabled:bg-neutral-200 ",o+="disabled:hover:bg-neutral-400 ",o+="disabled:text-neutral-400 ",o+="disabled:hover:text-neutral-100 "),o+="disabled:cursor-not-allowed ",e){case Y.DyNM_Button_Type.default:case Y.DyNM_Button_Type.stroked:o+="rounded-xl ";break;case Y.DyNM_Button_Type.small:case Y.DyNM_Button_Type.smallStroked:o+="rounded-md ";break;case Y.DyNM_Button_Type.big:case Y.DyNM_Button_Type.bigStroked:o+="rounded-2xl ";break}return e.includes("stroked")?(e.includes("big")?o+="border-4 ":o+="border-2 ",o+=`border-${t}-500 `,o+=`text-${t}-500 `,n?(o+=`hover:bg-${t}-950 `,o+="disabled:border-neutral-600 "):(o+=`hover:bg-${t}-50 `,o+="disabled:border-neutral-400 ")):(o+=`bg-${t}-500 `,o+=`text-${t}C-500 `,n?(o+=`hover:bg-${t}-300 `,o+=`hover:text-${t}C-300 `):(o+=`hover:bg-${t}-700 `,o+=`hover:text-${t}C-700 `)),e.includes("round")&&(o+="rounded-full "),e.includes("icon")?o+="rounded-full ":o+="w-full ",e.includes("outstanding")&&(o+="outstanding ",o.includes("rounded-full")||(o+="rounded-full ")),o}function Yl(e,t,n=!0){let o=" ";return e.includes("stroked")?n?o+=`bg-${t}-950 `:o+=`bg-${t}-50 `:n?(o+=`bg-${t}-300 `,o+=`text-${t}C-300 `):(o+=`bg-${t}-700 `,o+=`text-${t}C-700 `),o}function ql(e,t){let n="flex ";switch(t?.includes("items-")||(n+="items-center "),t?.includes("justify-")||(n+="justify-center "),e.includes("icon")||(e.includes("big")?n+="text-2xl ":n+="text-md "),e.includes("icon")||(e.includes("small")?n+="mx-2 ":n+="mx-5 "),e){case Y.DyNM_Button_Type.default:case Y.DyNM_Button_Type.block:n+="my-3 ";break;case Y.DyNM_Button_Type.stroked:case Y.DyNM_Button_Type.strokedBlock:n+="my-2.5 ";break;case Y.DyNM_Button_Type.big:case Y.DyNM_Button_Type.bigBlock:case Y.DyNM_Button_Type.bigStroked:case Y.DyNM_Button_Type.bigStrokedBlock:n+="my-3 ";break;case Y.DyNM_Button_Type.round:n+="my-3 ";break;case Y.DyNM_Button_Type.strokedRound:n+="my-2.5 ";break;case Y.DyNM_Button_Type.outstanding:n+="my-3 ";break;case Y.DyNM_Button_Type.icon:n+="p-2 ",n+="text-2xl ";break;case Y.DyNM_Button_Type.iconStroked:n+="p-1.5 ",n+="text-2xl ";break;case Y.DyNM_Button_Type.iconSmall:case Y.DyNM_Button_Type.iconSmallStroked:n+="p-1 ",n+="text-lg ";break;case Y.DyNM_Button_Type.iconBig:n+="p-4 ",n+="text-4xl ";break;case Y.DyNM_Button_Type.iconBigStroked:n+="p-3 ",n+="text-4xl ";break;case Y.DyNM_Button_Type.iconOutstanding:n+="p-2.5 ";break}return n}});var Ms=f(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.DyNM_DataHandler=void 0;var at=vt(),ui=class e{name;get data(){return this.data_$()}lastLoadedBy;get;set;getPostProcesses=[];noId;waitsOnLoad=[];dependentDataHandlers=[];loopSafetyCollection=[];loopSafetyTimeout=at.second;loopSafety=10;debugLog;constructor(t,n){try{t.name||(t.name="Unnamed DataHandler "+ +new Date,at.DyFM_Log.warn(`DYNAMO DH.constructor (${this.name}) WARN:
|
|
1
|
+
import{c as Tl}from"./chunk-KNBMYOHX.js";import{a as he,b as _e,c as Ol,e as $a,h as Xa,j as Il,k as zo,l as Wo,m as Yo,o as Fl,p as vt}from"./chunk-KPYMFKWR.js";import{F as Va,a as j,b as Z,c as Ka,f,h as ge,i as fe,k as Se}from"./chunk-TBMJSIBB.js";var Ht=f(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.DyNM_allButtonNewBorderRadius=Je.DyNM_ButtonNewBorderRadius=void 0;var qo=function(e){return e.full="full",e.rounded="rounded",e.smallRadius="smallRadius",e.square="square",e}(qo||(Je.DyNM_ButtonNewBorderRadius=qo={}));Je.DyNM_allButtonNewBorderRadius=Object.values(qo)});var Ut=f(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.DyNM_allButtonNewSizes=Qe.DyNM_ButtonNewSize=void 0;var Zo=function(e){return e.xs="xs",e.small="small",e.medium="medium",e.large="large",e.xl="xl",e}(Zo||(Qe.DyNM_ButtonNewSize=Zo={}));Qe.DyNM_allButtonNewSizes=Object.values(Zo)});var Kt=f(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DyNM_allButtonNewStyleTypes=et.DyNM_ButtonNewStyleType=void 0;var Jo=function(e){return e.filled="filled",e.stroked="stroked",e.outstanding="outstanding",e.tonal="tonal",e.backgroundless="backgroundless",e}(Jo||(et.DyNM_ButtonNewStyleType=Jo={}));et.DyNM_allButtonNewStyleTypes=Object.values(Jo)});var St=f(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.DyNM_allMaterialColors=tt.DyNM_MaterialColor=void 0;var Qo=function(e){return e.primary="primary",e.accent="accent",e.warn="warn",e.none="",e}(Qo||(tt.DyNM_MaterialColor=Qo={}));tt.DyNM_allMaterialColors=Object.values(Qo)});var ti=f(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.DyNM_allButtonNewIconStyleTypes=nt.DyNM_ButtonNewIconStyleType=void 0;var ei=function(e){return e.rounded="rounded",e.outlined="outlined",e}(ei||(nt.DyNM_ButtonNewIconStyleType=ei={}));nt.DyNM_allButtonNewIconStyleTypes=Object.values(ei)});var oi=f(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.DyNM_ButtonNewStyle_Settings=void 0;var kl=Ht(),ja=ti(),Ll=Ut(),Gl=Kt(),Hl=St(),ni=class{size=Ll.DyNM_ButtonNewSize.medium;color=Hl.DyNM_MaterialColor.primary;styleType=Gl.DyNM_ButtonNewStyleType.filled;borderRadius=kl.DyNM_ButtonNewBorderRadius.smallRadius;isIconButton;iconFill;iconStyle=ja.DyNM_ButtonNewIconStyleType.rounded;constructor(t){t&&Object.assign(this,t),this.isIconButton&&!this.iconStyle&&(this.iconStyle=ja.DyNM_ButtonNewIconStyleType.rounded)}};Vt.DyNM_ButtonNewStyle_Settings=ni});var Wa=f($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.DyNM_ButtonNewStyleSettingsPresets=void 0;var Le=Ht(),z=Ut(),Q=Kt(),za=St(),K=oi();$t.DyNM_ButtonNewStyleSettingsPresets={xs:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs}),xsIcon:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,isIconButton:!0}),xsRounded:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded}),xsStroked:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,styleType:Q.DyNM_ButtonNewStyleType.stroked}),xsStrokedIcon:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,styleType:Q.DyNM_ButtonNewStyleType.stroked,isIconButton:!0}),xsBackgroundlessIcon:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0}),xsRoundedTonal:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xs,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,styleType:Q.DyNM_ButtonNewStyleType.tonal}),small:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.small}),smallIcon:new K.DyNM_ButtonNewStyle_Settings({isIconButton:!0,size:z.DyNM_ButtonNewSize.small}),smallStrokedIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,isIconButton:!0,size:z.DyNM_ButtonNewSize.small}),smallTonalIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.tonal,isIconButton:!0,size:z.DyNM_ButtonNewSize.small}),smallRounded:new K.DyNM_ButtonNewStyle_Settings({borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,size:z.DyNM_ButtonNewSize.small}),smallStroked:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,size:z.DyNM_ButtonNewSize.small}),smallTonal:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.tonal,size:z.DyNM_ButtonNewSize.small}),smallRoundedTonal:new K.DyNM_ButtonNewStyle_Settings({borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,styleType:Q.DyNM_ButtonNewStyleType.tonal,size:z.DyNM_ButtonNewSize.small}),smallStrokedRounded:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,size:z.DyNM_ButtonNewSize.small}),smallBackgroundless:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,size:z.DyNM_ButtonNewSize.small}),icon:new K.DyNM_ButtonNewStyle_Settings({isIconButton:!0}),backgroundlessSmallIconUnset:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0,size:z.DyNM_ButtonNewSize.small,color:""}),backgroundlessIconUnset:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0,color:""}),smallBackgroundlessIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0,size:z.DyNM_ButtonNewSize.small}),strokedIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,isIconButton:!0}),backgroundlessIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.backgroundless,isIconButton:!0}),accent:new K.DyNM_ButtonNewStyle_Settings({color:za.DyNM_MaterialColor.accent}),strokedAccent:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,color:za.DyNM_MaterialColor.accent}),stroked:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked}),round:new K.DyNM_ButtonNewStyle_Settings({borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded}),strokedRound:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded}),large:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.large}),largeStroked:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,size:z.DyNM_ButtonNewSize.large}),largeStrokedRound:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,borderRadius:Le.DyNM_ButtonNewBorderRadius.rounded,size:z.DyNM_ButtonNewSize.large}),largeTonal:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.tonal,size:z.DyNM_ButtonNewSize.large}),largeIcon:new K.DyNM_ButtonNewStyle_Settings({isIconButton:!0,size:z.DyNM_ButtonNewSize.large}),largeStrokedIcon:new K.DyNM_ButtonNewStyle_Settings({styleType:Q.DyNM_ButtonNewStyleType.stroked,isIconButton:!0,size:z.DyNM_ButtonNewSize.large}),xl:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xl}),xlIcon:new K.DyNM_ButtonNewStyle_Settings({size:z.DyNM_ButtonNewSize.xl,isIconButton:!0})}});var ii=f(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.DyNM_Container_Type=void 0;var Ya=function(e){return e.card="card",e.accordion="accordion",e.dynamo="dynamo",e.dynamoSmall="dynamo-small",e.none="none",e}(Ya||(Xt.DyNM_Container_Type=Ya={}))});var ai=f(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.DyNM_FieldAppearance=void 0;var qa=function(e){return e.fill="fill",e.outline="outline",e}(qa||(jt.DyNM_FieldAppearance=qa={}))});var si=f(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.DyNM_Storage_Type=void 0;var Za=function(e){return e.session="session",e.local="local",e.none="",e}(Za||(zt.DyNM_Storage_Type=Za={}))});var Qa=f(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.DyNM_global_settings=void 0;var Ul=ii(),Kl=ai(),Ja=si();Wt.DyNM_global_settings={fieldAppearance:Kl.DyNM_FieldAppearance.outline,baseUrl:"/api",usageEndpoints:{startSession:"/usage/new-session",updateUsage:"/usage/update/{sessionId}",closeSession:"/usage/close-session/{sessionId}",getUsageData:"/usage/get/all"},alwaysLookForFieldAdder:!1,fieldErrorMessages:{required:"This field is required",email:"This is not a valid email format",mask:"This is not a valid format"},defaultStorage:Ja.DyNM_Storage_Type.session,storageEncryptionKey:"DEFAULT_DyFM_ENCRYPTION_KEY_CHANGE_THIS_XXXXXXX00000009999999999",defaultFormStorage:Ja.DyNM_Storage_Type.session,defaultFormContainerType:Ul.DyNM_Container_Type.none,formMessages:{required:"There are required fields to set!",invalid:"The form is not set correctly",submitSuccess:"Save was successful!",submitFailed:"Saving data has failed!"},questionDefaultOptions:{a:"No",b:"Yes"},fieldTooltipShowDelay:300,snackBarHideLabel:"Hide",log_settings:{api_calls:!0,messagesCS_debug:!1}}});var ri=f(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.DyNM_Button_Type=void 0;var es=function(e){return e.default="default",e.big="big",e.stroked="stroked",e.bigStroked="big-stroked",e.small="small",e.smallStroked="small-stroked",e.round="round",e.strokedRound="stroked-round",e.bigStrokedRound="big-stroked-round",e.block="block",e.bigBlock="big-block",e.strokedBlock="stroked-block",e.bigStrokedBlock="big-stroked-block",e.outstanding="outstanding",e.icon="icon",e.iconSmall="icon-small",e.iconBig="icon-big",e.iconStroked="icon-stroked",e.iconSmallStroked="icon-small-stroked",e.iconBigStroked="icon-big-stroked",e.iconOutstanding="icon-outstanding",e}(es||(Yt.DyNM_Button_Type=es={}))});var ns=f(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.DyNM_CheckboxLabelPosition=void 0;var ts=function(e){return e.before="before",e.after="after",e}(ts||(qt.DyNM_CheckboxLabelPosition=ts={}))});var is=f(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.DyNM_Field_Type=void 0;var os=function(e){return e.spacer="spacer",e.checkbox="checkbox",e.toggle="toggle",e.text="text",e.textList="textList",e.password="password",e.textarea="textarea",e.richtextarea="richtextarea",e.number="number",e.numberRange="numberRange",e.slider="slider",e.sliderRange="sliderRange",e.select="select",e.multiselect="multiselect",e.chipSelect="chipSelect",e.chipMultiselect="chipMultiselect",e.radioSelect="radioSelect",e.date="date",e.dateRange="dateRange",e.dateTime="dateTime",e.dateTimeRange="dateTimeRange",e.file="file",e.files="files",e.picture="picture",e.pictures="pictures",e.fieldAdder="fieldAdder",e.multifield="multifield",e}(os||(Zt.DyNM_Field_Type=os={}))});var ss=f(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.DyNM_File_Type=void 0;var as=function(e){return e.arrayBuffer="arrayBuffer",e.binaryString="binaryString",e.dataUrl="dataUrl",e.text="text",e.blob="blob",e.file="file",e}(as||(Jt.DyNM_File_Type=as={}))});var ds=f(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.DyNM_FormAccess=void 0;var rs=function(e){return e.readOnly="read-only",e.writeOnly="write-only",e.readNWrite="read-n-write",e}(rs||(Qt.DyNM_FormAccess=rs={}))});var ls=f(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.DyNM_FormResetData=void 0;var cs=function(e){return e.null="null",e.empty="empty",e.default="deafult",e.dataHandler="data-handler",e.init="init",e.stored="stored",e}(cs||(en.DyNM_FormResetData=cs={}))});var us=f(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.DyNM_FormStoreOn=void 0;var ms=function(e){return e.close="close",e.change="change",e}(ms||(tn.DyNM_FormStoreOn=ms={}))});var ci=f(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.DyNM_allMaterialTooltipPositions=ot.DyNM_MaterialTooltipPosition=void 0;var di=function(e){return e.above="above",e.below="below",e.before="before",e.after="after",e.left="left",e.right="right",e}(di||(ot.DyNM_MaterialTooltipPosition=di={}));ot.DyNM_allMaterialTooltipPositions=Object.values(di)});var gs=f(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.DyNM_PreconfiguredField_Type=void 0;var ps=function(e){return e.email="email",e.phone="phone",e}(ps||(nn.DyNM_PreconfiguredField_Type=ps={}))});var hs=f(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.DyNM_Validator_Type=void 0;var fs=function(e){return e.requiredCheckbox="requiredCheckbox",e}(fs||(on.DyNM_Validator_Type=fs={}))});var ys=f(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.DyNM_FXLayoutAlignPerDir=it.DyNM_FXLayoutAlignLayDir=void 0;var _s=function(e){return e.none="none",e.start="start",e.center="center",e.end="end",e.spaceAround="space-around",e.spaceBetween="space-between",e}(_s||(it.DyNM_FXLayoutAlignLayDir=_s={})),Cs=function(e){return e.none="none",e.start="start",e.center="center",e.end="end",e.stretch="stretch",e}(Cs||(it.DyNM_FXLayoutAlignPerDir=Cs={}))});var bs=f(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.DyNM_FXLayout=void 0;var xs=function(e){return e.row="row",e.column="column",e}(xs||(an.DyNM_FXLayout=xs={}))});var Ss=f(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.DyNM_HTMLInput_Type=void 0;var vs=function(e){return e.button="button",e.checkbox="checkbox",e.color="color",e.date="date",e.datetimeLocal="datetime-local",e.email="email",e.file="file",e.hidden="hidden",e.image="image",e.month="month",e.number="number",e.password="password",e.radio="radio",e.range="range",e.reset="reset",e.search="search",e.submit="submit",e.tel="tel",e.text="text",e.time="time",e.url="url",e.week="week",e}(vs||(sn.DyNM_HTMLInput_Type=vs={}))});var mi=f(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.DyNM_Button_Params=void 0;var Vl=vt(),Y=ri(),$l=St(),Xl=ci(),jl=Xl.DyNM_MaterialTooltipPosition.above,zl=250,li=class{id;label;color=$l.DyNM_MaterialColor.primary;icon;description;descriptionPosition;descriptionDelay;type;disabled;dontRoute;routerLink;routerLinkQueryParams;iconAfter;buttonType;class;contentClass;classOnActive;contentClassOnActive;customClass;customContentClass;customClassOnActive;customContentClassOnActive;onClickEvents=[];useDisablerWhileEventsInProgress;constructor(t){t&&Object.assign(this,t),this.type||(this.icon&&!this.label?this.type=Y.DyNM_Button_Type.icon:this.type=Y.DyNM_Button_Type.default),this.id||(this.id=`${this.label}-${this.type}-${this.color}-button`),(this.description||this.type.includes("icon")&&this.label)&&(this.descriptionPosition||(this.descriptionPosition=jl),this.descriptionDelay||(this.descriptionDelay=zl)),this.class=Wl(this.type,this.color)+(this.customClass??""),this.contentClass=ql(this.type,this.customContentClass)+(this.customContentClass??""),(this.customClassOnActive||this.routerLink)&&(this.classOnActive=Yl(this.type,this.color)+(this.customClassOnActive??""),this.contentClassOnActive=this.customContentClassOnActive??"")}executeEvents(t){return Se(this,null,function*(){yield Vl.DyFM_Array.asyncForEach(this.onClickEvents,n=>Se(this,null,function*(){yield n(t)}))})}};rn.DyNM_Button_Params=li;function Wl(e,t,n=!0){let o="";switch(n?(o+="disabled:bg-neutral-800 ",o+="disabled:hover:bg-neutral-600 ",o+="disabled:text-neutral-600 ",o+="disabled:hover:text-neutral-900 "):(o+="disabled:bg-neutral-200 ",o+="disabled:hover:bg-neutral-400 ",o+="disabled:text-neutral-400 ",o+="disabled:hover:text-neutral-100 "),o+="disabled:cursor-not-allowed ",e){case Y.DyNM_Button_Type.default:case Y.DyNM_Button_Type.stroked:o+="rounded-xl ";break;case Y.DyNM_Button_Type.small:case Y.DyNM_Button_Type.smallStroked:o+="rounded-md ";break;case Y.DyNM_Button_Type.big:case Y.DyNM_Button_Type.bigStroked:o+="rounded-2xl ";break}return e.includes("stroked")?(e.includes("big")?o+="border-4 ":o+="border-2 ",o+=`border-${t}-500 `,o+=`text-${t}-500 `,n?(o+=`hover:bg-${t}-950 `,o+="disabled:border-neutral-600 "):(o+=`hover:bg-${t}-50 `,o+="disabled:border-neutral-400 ")):(o+=`bg-${t}-500 `,o+=`text-${t}C-500 `,n?(o+=`hover:bg-${t}-300 `,o+=`hover:text-${t}C-300 `):(o+=`hover:bg-${t}-700 `,o+=`hover:text-${t}C-700 `)),e.includes("round")&&(o+="rounded-full "),e.includes("icon")?o+="rounded-full ":o+="w-full ",e.includes("outstanding")&&(o+="outstanding ",o.includes("rounded-full")||(o+="rounded-full ")),o}function Yl(e,t,n=!0){let o=" ";return e.includes("stroked")?n?o+=`bg-${t}-950 `:o+=`bg-${t}-50 `:n?(o+=`bg-${t}-300 `,o+=`text-${t}C-300 `):(o+=`bg-${t}-700 `,o+=`text-${t}C-700 `),o}function ql(e,t){let n="flex ";switch(t?.includes("items-")||(n+="items-center "),t?.includes("justify-")||(n+="justify-center "),e.includes("icon")||(e.includes("big")?n+="text-2xl ":n+="text-md "),e.includes("icon")||(e.includes("small")?n+="mx-2 ":n+="mx-5 "),e){case Y.DyNM_Button_Type.default:case Y.DyNM_Button_Type.block:n+="my-3 ";break;case Y.DyNM_Button_Type.stroked:case Y.DyNM_Button_Type.strokedBlock:n+="my-2.5 ";break;case Y.DyNM_Button_Type.big:case Y.DyNM_Button_Type.bigBlock:case Y.DyNM_Button_Type.bigStroked:case Y.DyNM_Button_Type.bigStrokedBlock:n+="my-3 ";break;case Y.DyNM_Button_Type.round:n+="my-3 ";break;case Y.DyNM_Button_Type.strokedRound:n+="my-2.5 ";break;case Y.DyNM_Button_Type.outstanding:n+="my-3 ";break;case Y.DyNM_Button_Type.icon:n+="p-2 ",n+="text-2xl ";break;case Y.DyNM_Button_Type.iconStroked:n+="p-1.5 ",n+="text-2xl ";break;case Y.DyNM_Button_Type.iconSmall:case Y.DyNM_Button_Type.iconSmallStroked:n+="p-1 ",n+="text-lg ";break;case Y.DyNM_Button_Type.iconBig:n+="p-4 ",n+="text-4xl ";break;case Y.DyNM_Button_Type.iconBigStroked:n+="p-3 ",n+="text-4xl ";break;case Y.DyNM_Button_Type.iconOutstanding:n+="p-2.5 ";break}return n}});var Ms=f(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.DyNM_DataHandler=void 0;var at=vt(),ui=class e{name;get data(){return this.data_$()}lastLoadedBy;get;set;getPostProcesses=[];noId;waitsOnLoad=[];dependentDataHandlers=[];loopSafetyCollection=[];loopSafetyTimeout=at.second;loopSafety=10;debugLog;constructor(t,n){try{t.name||(t.name="Unnamed DataHandler "+ +new Date,at.DyFM_Log.warn(`DYNAMO DH.constructor (${this.name}) WARN:
|
|
2
2
|
Name is not set!`,`
|
|
3
3
|
|
|
4
4
|
`,new Error)),this.name=t.name,this.debugLog=t?.debugLog,t.loopSafety===void 0?t.loopSafety=10:this.loopSafety=t.loopSafety,t.get&&(this.get=t.get),t.set&&(this.set=t.set),this.noId=!!t.noId,n||(t.dependencyDataHandler&&this.addDependencyDataHandler(t.dependencyDataHandler,!0),t.dependentDataHandlers&&this.addDependentDataHandlers(t.dependentDataHandlers,!0)),t.getPostProcess&&this.getPostProcesses.push(t.getPostProcess)}catch(o){at.DyFM_Log.error(`Error creating DyNM_DataHandler (${t.name}):`,o)}}addDependencyDataHandler(t,n){try{if(!t)throw new Error(`DYNAMO DH.addDependencyDataHandler (${this.name}) ERROR:
|
|
@@ -112,4 +112,4 @@ This usually indicates:
|
|
|
112
112
|
2) Invalid encryption key,
|
|
113
113
|
3) Serialization failure.`),g}}return e})();so.DyFM_Crypto=H0});var ld=f(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});var U0=(_e(),fe(he));U0.__exportStar(cd(),ea)});var Ie=f(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.DyFM_AI_Provider=void 0;var md=function(e){return e.OpenAI="open-ai",e.Anthropic="anthropic",e.Google="google",e.LocalAI="local-ai",e.FdpAI="fdp-ai",e}(md||(ro.DyFM_AI_Provider=md={}))});var ud=f(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.DyFM_AI_ModelRef_Util=void 0;var K0=Ie(),ta=class e{static separator=":";static validProviders=new Set(Object.values(K0.DyFM_AI_Provider));static create(t,n){return`${t}${e.separator}${n}`}static parse(t){let n=t.indexOf(e.separator);if(n<0)throw new Error(`Ervenytelen modelRef formatum: "${t}" -- hianyzik a "${e.separator}" elvlaszto`);let o=t.substring(0,n),g=t.substring(n+1);if(!e.validProviders.has(o))throw new Error(`Ismeretlen AI provider: "${o}" a modelRef-ben: "${t}"`);if(!g)throw new Error(`Ures modell azonosito a modelRef-ben: "${t}"`);return{provider:o,model:g}}static getProvider(t){return e.parse(t).provider}static getModel(t){return e.parse(t).model}static isValid(t){if(!t)return!1;let n=t.indexOf(e.separator);if(n<0)return!1;let o=t.substring(0,n),g=t.substring(n+1);return e.validProviders.has(o)&&!!g}};co.DyFM_AI_ModelRef_Util=ta});var gd=f(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.DyFM_AI_ModelType=void 0;var pd=function(e){return e.LLM="llm",e.Embedding="embedding",e.Chat="chat",e}(pd||(lo.DyFM_AI_ModelType=pd={}))});var hd=f(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.DyFM_AI_MessageRole=void 0;var fd=function(e){return e.system="system",e.user="user",e.assistant="assistant",e}(fd||(mo.DyFM_AI_MessageRole=fd={}))});var Rt=f(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.DyFM_AI_CallSettings=void 0;var na=class{systemPrompt="";useModel;project;debugLog;temperature=0;maxTokens=2e3;topP=.75;frequencyPenalty=0;presencePenalty=0;constructor(t){t&&Object.assign(this,t)}};uo.DyFM_AI_CallSettings=na});var Cd=f(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0})});var xd=f(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0})});var vd=f(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0})});var Md=f(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0})});var Ad=f(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0})});var Bd=f(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0})});var Nd=f(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0})});var Bt=f(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.DyFM_AI_Settings=void 0;var oa=class{provider;config;defaultSettings;constructor(t){t&&Object.assign(this,t)}};po.DyFM_AI_Settings=oa});var Et=f(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.DyFM_AI_UserProviderConfig=void 0;var ia=class{provider;encryptedApiKey;keySuffix;isActive;label;lastTestedAt;lastUsedAt;selectedModels;constructor(t){t&&Object.assign(this,t)}};go.DyFM_AI_UserProviderConfig=ia});var wd=f(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});var Ce=(_e(),fe(he));Ce.__exportStar(ud(),de);Ce.__exportStar(Ie(),de);Ce.__exportStar(gd(),de);Ce.__exportStar(hd(),de);Ce.__exportStar(Rt(),de);Ce.__exportStar(Cd(),de);Ce.__exportStar(xd(),de);Ce.__exportStar(vd(),de);Ce.__exportStar(Md(),de);Ce.__exportStar(Ad(),de);Ce.__exportStar(Bd(),de);Ce.__exportStar(Nd(),de);Ce.__exportStar(Bt(),de);Ce.__exportStar(Et(),de)});var fo=f(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.DyFM_OAI_allEmbeddingModels=dt.DyFM_OAI_Model=void 0;var Nt=function(e){return e.gpt5="gpt-5",e.gpt51="gpt-5.1",e.gpt5_mini="gpt-5-mini",e.gpt5_nano="gpt-5-nano",e.gpt5_chatLatest="gpt-5-chat-latest",e.gpt51_chatLatest="gpt-5.1-chat-latest",e.gpt5_codex="gpt-5-codex",e.gpt51_codex="gpt-5.1-codex",e.gpt4o="gpt-4o",e.gpt4o_20240806="gpt-4o-2024-08-06",e.gpt4o_20240513="gpt-4o-2024-05-13",e.gpt4o_mini="gpt-4o-mini",e.gpt4o_mini20240718="gpt-4o-mini-2024-07-18",e.textEmbedding_3Small="text-embedding-3-small",e.textEmbedding_3Large="text-embedding-3-large",e.textEmbedding_ada002="text-embedding-ada-002",e}(Nt||(dt.DyFM_OAI_Model=Nt={}));dt.DyFM_OAI_allEmbeddingModels=[Nt.textEmbedding_3Small,Nt.textEmbedding_3Large,Nt.textEmbedding_ada002]});var Pd=f(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.DyFM_OAI_EmbeddingModelDimensions=void 0;var aa=fo();ho.DyFM_OAI_EmbeddingModelDimensions={[aa.DyFM_OAI_Model.textEmbedding_3Small]:1536,[aa.DyFM_OAI_Model.textEmbedding_3Large]:3072,[aa.DyFM_OAI_Model.textEmbedding_ada002]:1536}});var ra=f(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.DyFM_OAI_CallSettings=void 0;var V0=Rt(),$0=fo(),sa=class extends V0.DyFM_AI_CallSettings{useModel=$0.DyFM_OAI_Model.gpt4o;constructor(t){super(t),t&&Object.assign(this,t)}};_o.DyFM_OAI_CallSettings=sa});var Id=f(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0})});var Td=f(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0})});var kd=f(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.DyFM_OAI_Settings=void 0;var X0=Bt(),j0=Ie(),z0=ra(),da=class extends X0.DyFM_AI_Settings{provider=j0.DyFM_AI_Provider.OpenAI;defaultSettings=new z0.DyFM_OAI_CallSettings;config={};constructor(t){super(t),t&&Object.assign(this,t)}};Co.DyFM_OAI_Settings=da});var Ld=f(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.DyFM_OAI_UserProviderConfig=void 0;var W0=Et(),Y0=Ie(),ca=class extends W0.DyFM_AI_UserProviderConfig{provider=Y0.DyFM_AI_Provider.OpenAI;organization;project;constructor(t){super(t),t&&Object.assign(this,t)}};yo.DyFM_OAI_UserProviderConfig=ca});var Gd=f(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});var Ve=(_e(),fe(he));Ve.__exportStar(Pd(),Fe);Ve.__exportStar(fo(),Fe);Ve.__exportStar(ra(),Fe);Ve.__exportStar(Id(),Fe);Ve.__exportStar(Td(),Fe);Ve.__exportStar(kd(),Fe);Ve.__exportStar(Ld(),Fe)});var la=f(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.DyFM_AAI_Model=void 0;var Hd=function(e){return e.claude_3_5_sonnet_latest="claude-3-5-sonnet-latest",e.claude_3_5_sonnet_20241022="claude-3-5-sonnet-20241022",e.claude_3_5_haiku_latest="claude-3-5-haiku-latest",e.claude_3_opus_latest="claude-3-opus-latest",e.claude_3_sonnet_latest="claude-3-sonnet-latest",e.claude_3_haiku_latest="claude-3-haiku-latest",e}(Hd||(xo.DyFM_AAI_Model=Hd={}))});var Kd=f(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0})});var ua=f(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.DyFM_AAI_CallSettings=void 0;var q0=Rt(),Z0=la(),ma=class extends q0.DyFM_AI_CallSettings{useModel=Z0.DyFM_AAI_Model.claude_3_5_sonnet_latest;constructor(t){super(t),t&&Object.assign(this,t)}};bo.DyFM_AAI_CallSettings=ma});var Vd=f(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.DyFM_AAI_Settings=void 0;var J0=Bt(),Q0=Ie(),em=ua(),pa=class extends J0.DyFM_AI_Settings{provider=Q0.DyFM_AI_Provider.Anthropic;defaultSettings=new em.DyFM_AAI_CallSettings;config={};constructor(t){super(t),t&&Object.assign(this,t)}};vo.DyFM_AAI_Settings=pa});var $d=f(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.DyFM_AAI_UserProviderConfig=void 0;var tm=Et(),nm=Ie(),ga=class extends tm.DyFM_AI_UserProviderConfig{provider=nm.DyFM_AI_Provider.Anthropic;baseURL;constructor(t){super(t),t&&Object.assign(this,t)}};So.DyFM_AAI_UserProviderConfig=ga});var Xd=f($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});var wt=(_e(),fe(he));wt.__exportStar(la(),$e);wt.__exportStar(Kd(),$e);wt.__exportStar(ua(),$e);wt.__exportStar(Vd(),$e);wt.__exportStar($d(),$e)});var fa=f(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.DyFM_FdpAI_Model=void 0;var jd=function(e){return e.fdpBase1="fdp-base-1",e}(jd||(Mo.DyFM_FdpAI_Model=jd={}))});var Wd=f(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0})});var _a=f(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.DyFM_FdpAI_CallSettings=void 0;var om=Rt(),im=fa(),ha=class extends om.DyFM_AI_CallSettings{useModel=im.DyFM_FdpAI_Model.fdpBase1;constructor(t){super(t),t&&Object.assign(this,t)}};Do.DyFM_FdpAI_CallSettings=ha});var Yd=f(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.DyFM_FdpAI_Settings=void 0;var am=Bt(),sm=Ie(),rm=_a(),Ca=class extends am.DyFM_AI_Settings{provider=sm.DyFM_AI_Provider.FdpAI;defaultSettings=new rm.DyFM_FdpAI_CallSettings;config={};constructor(t){super(t),t&&Object.assign(this,t)}};Ao.DyFM_FdpAI_Settings=Ca});var qd=f(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.DyFM_FdpAI_UserProviderConfig=void 0;var dm=Et(),cm=Ie(),ya=class extends dm.DyFM_AI_UserProviderConfig{provider=cm.DyFM_AI_Provider.FdpAI;baseURL;constructor(t){super(t),t&&Object.assign(this,t)}};Ro.DyFM_FdpAI_UserProviderConfig=ya});var Zd=f(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});var Pt=(_e(),fe(he));Pt.__exportStar(fa(),Xe);Pt.__exportStar(Wd(),Xe);Pt.__exportStar(_a(),Xe);Pt.__exportStar(Yd(),Xe);Pt.__exportStar(qd(),Xe)});var Qd=f(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.DyFM_Msg_Type=void 0;var Jd=function(e){return e.text="text",e.userToUser="user-to-user",e.userToAi="user-to-ai",e.aiToUser="ai-to-user",e.system="system",e.agentProcess="agent-process",e}(Jd||(Bo.DyFM_Msg_Type=Jd={}))});var tc=f(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.DyFM_Msg_Status=void 0;var ec=function(e){return e.draft="draft",e.sending="sending",e.sent="sent",e.delivered="delivered",e.read="read",e.failed="failed",e.deleted="deleted",e}(ec||(Eo.DyFM_Msg_Status=ec={}))});var oc=f(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.DyFM_Msg_DeliveryStatus=void 0;var nc=function(e){return e.pending="pending",e.delivered="delivered",e.failed="failed",e.read="read",e}(nc||(No.DyFM_Msg_DeliveryStatus=nc={}))});var ac=f(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.DyFM_Msg_ConversationType=void 0;var ic=function(e){return e.direct="direct",e.group="group",e.assistantChat="assistant-chat",e.agentProcess="agent-process",e.channel="channel",e}(ic||(wo.DyFM_Msg_ConversationType=ic={}))});var rc=f(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.DyFM_Msg_ParticipantRole=void 0;var sc=function(e){return e.owner="owner",e.admin="admin",e.member="member",e.assistant="assistant",e.agent="agent",e}(sc||(Po.DyFM_Msg_ParticipantRole=sc={}))});var cc=f(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.DyFM_Msg_Provider_Type=void 0;var dc=function(e){return e.discord="discord",e.slack="slack",e.teams="teams",e.dynamo="dynamo",e.custom="custom",e}(dc||(Oo.DyFM_Msg_Provider_Type=dc={}))});var mc=f(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.DyFM_Msg_AttachmentType=void 0;var lc=function(e){return e.image="image",e.video="video",e.audio="audio",e.document="document",e.archive="archive",e.code="code",e.file="file",e}(lc||(Io.DyFM_Msg_AttachmentType=lc={}))});var pc=f(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.DyFM_Msg_EventKey=void 0;var uc=function(e){return e.messageSent="msg:message-sent",e.messageUpdated="msg:message-updated",e.messageDeleted="msg:message-deleted",e.messageDelivered="msg:message-delivered",e.messageRead="msg:message-read",e.conversationCreated="msg:conversation-created",e.conversationUpdated="msg:conversation-updated",e.conversationDeleted="msg:conversation-deleted",e.participantAdded="msg:participant-added",e.participantRemoved="msg:participant-removed",e.typingStart="msg:typing-start",e.typingStop="msg:typing-stop",e.reactionAdded="msg:reaction-added",e.reactionRemoved="msg:reaction-removed",e.agentStepAdded="msg:agent-step-added",e.agentProcessComplete="msg:agent-process-complete",e}(uc||(Fo.DyFM_Msg_EventKey=uc={}))});var gc=f(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.DyFM_msgMessage_dataParams=ct.DyFM_Msg_Message=void 0;var lm=zo(),mm=Yo(),xa=class extends lm.DyFM_Metadata{conversationId;content;type;status;senderId;senderName;senderDisplayName;recipientIds;parentMessageId;threadId;threadInfo;attachments;mentions;reactions;aiProvider;aiModel;isAIGenerated;systemPrompt;agentProcessSteps;platformSource;platformMessageId;platformChannelId;sentAt;deliveredAt;readAt;editedAt;constructor(t){super(t),t&&Object.assign(this,t)}};ct.DyFM_Msg_Message=xa;ct.DyFM_msgMessage_dataParams=new mm.DyFM_DataModel_Params({dataName:"msg_message",properties:{conversationId:{key:"conversationId",type:"string",required:!0,index:!0},content:{key:"content",type:"string",required:!0},type:{key:"type",type:"string",required:!0},status:{key:"status",type:"string",required:!0,index:!0},senderId:{key:"senderId",type:"string",required:!0,index:!0},senderName:{key:"senderName",type:"string"},senderDisplayName:{key:"senderDisplayName",type:"string"},recipientIds:{key:"recipientIds",type:"string[]"},parentMessageId:{key:"parentMessageId",type:"string",index:!0},threadId:{key:"threadId",type:"string",index:!0},threadInfo:{key:"threadInfo",type:"object"},attachments:{key:"attachments",type:"object[]"},mentions:{key:"mentions",type:"object[]"},reactions:{key:"reactions",type:"object[]"},aiProvider:{key:"aiProvider",type:"string"},aiModel:{key:"aiModel",type:"string"},isAIGenerated:{key:"isAIGenerated",type:"boolean"},systemPrompt:{key:"systemPrompt",type:"string"},agentProcessSteps:{key:"agentProcessSteps",type:"object[]"},platformSource:{key:"platformSource",type:"string"},platformMessageId:{key:"platformMessageId",type:"string",index:!0},platformChannelId:{key:"platformChannelId",type:"string",index:!0},sentAt:{key:"sentAt",type:"Date",index:!0},deliveredAt:{key:"deliveredAt",type:"Date"},readAt:{key:"readAt",type:"Date"},editedAt:{key:"editedAt",type:"Date"}}})});var fc=f(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.DyFM_msgConversation_dataParams=lt.DyFM_Msg_Conversation=void 0;var um=zo(),pm=Yo(),ba=class extends um.DyFM_Metadata{title;type;participants;lastMessageId;lastMessageAt;lastMessagePreview;isArchived;isMuted;isPinned;platformSource;platformChannelId;platformChannelName;aiProvider;aiModel;systemPrompt;messageCount;unreadCount;constructor(t){super(t),t&&Object.assign(this,t)}};lt.DyFM_Msg_Conversation=ba;lt.DyFM_msgConversation_dataParams=new pm.DyFM_DataModel_Params({dataName:"msg_conversation",properties:{title:{key:"title",type:"string"},type:{key:"type",type:"string",required:!0,index:!0},participants:{key:"participants",type:"DyFM_Msg_Participant[]",required:!0,subObjectParams:{userId:{key:"userId",type:"string"},role:{key:"role",type:"string"},joinedAt:{key:"joinedAt",type:"Date"}}},lastMessageId:{key:"lastMessageId",type:"string"},lastMessageAt:{key:"lastMessageAt",type:"Date",index:!0},lastMessagePreview:{key:"lastMessagePreview",type:"string"},isArchived:{key:"isArchived",type:"boolean"},isMuted:{key:"isMuted",type:"boolean"},isPinned:{key:"isPinned",type:"boolean"},platformSource:{key:"platformSource",type:"string",index:!0},platformChannelId:{key:"platformChannelId",type:"string",index:!0},platformChannelName:{key:"platformChannelName",type:"string"},aiProvider:{key:"aiProvider",type:"string"},aiModel:{key:"aiModel",type:"string"},systemPrompt:{key:"systemPrompt",type:"string"},messageCount:{key:"messageCount",type:"number"},unreadCount:{key:"unreadCount",type:"number"}}})});var _c=f(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0})});var yc=f(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0})});var bc=f(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0})});var Sc=f(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0})});var Dc=f(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0})});var Ac=f(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.DyFM_msgModule_settings=mt.DyFM_MsgRoute=void 0;var se=function(e){return e.getConversations="getConversations",e.getConversation="getConversation",e.createConversation="createConversation",e.updateConversation="updateConversation",e.deleteConversation="deleteConversation",e.getMessages="getMessages",e.sendMessage="sendMessage",e.editMessage="editMessage",e.deleteMessage="deleteMessage",e.markAsRead="markAsRead",e.addReaction="addReaction",e.removeReaction="removeReaction",e.addParticipant="addParticipant",e.removeParticipant="removeParticipant",e.getAgentProcess="getAgentProcess",e}(se||(mt.DyFM_MsgRoute=se={}));mt.DyFM_msgModule_settings={mainRoute:"/messaging",endPoints:{[se.getConversations]:"/conversations",[se.getConversation]:"/conversations/:conversationId",[se.createConversation]:"/conversations/create",[se.updateConversation]:"/conversations/:conversationId",[se.deleteConversation]:"/conversations/:conversationId",[se.getMessages]:"/conversations/:conversationId/messages",[se.sendMessage]:"/conversations/:conversationId/messages/send",[se.editMessage]:"/messages/:messageId/edit",[se.deleteMessage]:"/messages/:messageId",[se.markAsRead]:"/messages/mark-read",[se.addReaction]:"/messages/:messageId/reactions",[se.removeReaction]:"/messages/:messageId/reactions/:emoji",[se.addParticipant]:"/conversations/:conversationId/participants",[se.removeParticipant]:"/conversations/:conversationId/participants/:userId",[se.getAgentProcess]:"/messages/:messageId/agent-process"}}});var Rc=f(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});var ce=(_e(),fe(he));ce.__exportStar(Qd(),ae);ce.__exportStar(tc(),ae);ce.__exportStar(oc(),ae);ce.__exportStar(ac(),ae);ce.__exportStar(rc(),ae);ce.__exportStar(cc(),ae);ce.__exportStar(mc(),ae);ce.__exportStar(pc(),ae);ce.__exportStar(gc(),ae);ce.__exportStar(fc(),ae);ce.__exportStar(_c(),ae);ce.__exportStar(yc(),ae);ce.__exportStar(bc(),ae);ce.__exportStar(Sc(),ae);ce.__exportStar(Dc(),ae);ce.__exportStar(Ac(),ae)});var Ec=f(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.DyFM_Agt_ProcessStepType=void 0;var Bc=function(e){return e.collectContext="collect-context",e.analyze="analyze",e.reason="reason",e.plan="plan",e.toolUse="tool-use",e.retrieve="retrieve",e.generate="generate",e.validate="validate",e.error="error",e.complete="complete",e}(Bc||(To.DyFM_Agt_ProcessStepType=Bc={}))});var wc=f(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.DyFM_Agt_ToolStatus=void 0;var Nc=function(e){return e.pending="pending",e.running="running",e.success="success",e.failed="failed",e.cancelled="cancelled",e.timeout="timeout",e}(Nc||(ko.DyFM_Agt_ToolStatus=Nc={}))});var Oc=f(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0})});var Fc=f(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0})});var kc=f(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0})});var Lc=f(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});var Ot=(_e(),fe(he));Ot.__exportStar(Ec(),je);Ot.__exportStar(wc(),je);Ot.__exportStar(Oc(),je);Ot.__exportStar(Fc(),je);Ot.__exportStar(kc(),je)});var Gc=f(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.DyFM_fullTestRoute=te.DyFM_testModule_settings=te.DyFM_TestRoute=void 0;var me=function(e){return e.testGet="test-get",e.testPost="test-post",e.testPut="test-put",e.testPatch="test-patch",e.testDelete="test-delete",e.getServerStatus="get-server-status",e}(me||(te.DyFM_TestRoute=me={}));te.DyFM_testModule_settings={mainRoute:"/test",endPoints:j({},Object.fromEntries(Object.values(me).map(e=>[e,`/${e}`])))};te.DyFM_fullTestRoute={[me.testGet]:te.DyFM_testModule_settings.mainRoute+te.DyFM_testModule_settings.endPoints[me.testGet],[me.testPost]:te.DyFM_testModule_settings.mainRoute+te.DyFM_testModule_settings.endPoints[me.testPost],[me.testPut]:te.DyFM_testModule_settings.mainRoute+te.DyFM_testModule_settings.endPoints[me.testPut],[me.testPatch]:te.DyFM_testModule_settings.mainRoute+te.DyFM_testModule_settings.endPoints[me.testPatch],[me.testDelete]:te.DyFM_testModule_settings.mainRoute+te.DyFM_testModule_settings.endPoints[me.testDelete],[me.getServerStatus]:te.DyFM_testModule_settings.mainRoute+te.DyFM_testModule_settings.endPoints[me.getServerStatus]}});var Hc=f(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});var gm=(_e(),fe(he));gm.__exportStar(Gc(),va)});var Uc=f(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.DyFM_usageModule_settings=pt.DyFM_UsageRoute=void 0;var ut=function(e){return e.newSession="newSession",e.closeSession="closeSession",e.updateUsage="updateUsage",e.getUsageData="getUsageData",e}(ut||(pt.DyFM_UsageRoute=ut={}));pt.DyFM_usageModule_settings={mainRoute:"/usage",endPoints:{[ut.newSession]:"/new-session",[ut.closeSession]:"/close-session/:sessionId",[ut.updateUsage]:"/update/:sessionId",[ut.getUsageData]:"/get/:range"}}});var Kc=f(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.DyFM_usageSession_dataParams=gt.DyFM_UsageSession=void 0;var fm=Yo(),hm=zo(),Sa=class extends hm.DyFM_Metadata{date;sessionStart;sessionEnd;address;issuer;locationData;usageData=[];totalSessionTime;loggedInAs;constructor(t){super(t),t&&(!t.date&&t.sessionStart&&(t.date=t.sessionStart.toISOString().substring(0,10)),Object.assign(this,t))}};gt.DyFM_UsageSession=Sa;gt.DyFM_usageSession_dataParams=new fm.DyFM_DataModel_Params({dataName:"usage_session",properties:{date:{key:"date",type:"string",required:!0,index:!0},sessionStart:{key:"sessionStart",type:"Date",required:!0,index:!0},sessionEnd:{key:"sessionEnd",type:"Date"},address:{key:"address",type:"string"},issuer:{key:"issuer",type:"string"},locationData:{key:"locationData",type:"IpApiLocation"},usageData:{key:"usageData",type:"UsageData[]"},totalSessionTime:{key:"totalSessionTime",type:"number"},loggedInAs:{key:"loggedInAs",type:"string"}}})});var Vc=f(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.DyFM_UsageData=void 0;var Ma=class{page;opened;timeSpentOnPage;actions=[];constructor(t){t&&Object.assign(this,t)}};Lo.DyFM_UsageData=Ma});var $c=f(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.DyFM_DailyUsageData=void 0;var Da=class{date;totalVisitTime=0;averageVisitTime=0;visitorsHun=0;visitorsElse=0;visitations=[];constructor(t){t&&Object.assign(this,t)}};Go.DyFM_DailyUsageData=Da});var Xc=f(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.DyFM_UsageAction=void 0;var Aa=class{action;time;constructor(t){t&&Object.assign(this,t)}};Ho.DyFM_UsageAction=Aa});var jc=f(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});var It=(_e(),fe(he));It.__exportStar(Uc(),ze);It.__exportStar(Kc(),ze);It.__exportStar(Vc(),ze);It.__exportStar($c(),ze);It.__exportStar(Xc(),ze)});var Wc=f(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.DyFM_Region=void 0;var zc=function(e){return e.europe="Europe",e.asia="Asia",e.africa="Africa",e.oceania="Oceania",e.americas="Americas",e}(zc||(Uo.DyFM_Region=zc={}))});var qc=f(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.DyFM_SubRegion=void 0;var Yc=function(e){return e.northernEurope="Northern Europe",e.southernEurope="Southern Europe",e.westernEurope="Western Europe",e.easternEurope="Eastern Europe",e.northernAfrica="Northern Africa",e.subSaharanAfrica="Sub-Saharan Africa",e.northernAmerica="Northern America",e.latinAmericaAndTheCaribbean="Latin America and the Caribbean",e.southEasternAsia="South-eastern Asia",e.easternAsia="Eastern Asia",e.southernAsia="Southern Asia",e.westernAsia="Western Asia",e.centralAsia="Central Asia",e.australiaAndNewZealand="Australia and New Zealand",e.melanesia="Melanesia",e.micronesia="Micronesia",e.polynesia="Polynesia",e}(Yc||(Ko.DyFM_SubRegion=Yc={}))});var Jc=f(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.DyFM_SubdivisionRegionType=void 0;var Zc=function(e){return e[e.parish=0]="parish",e[e.emirate=1]="emirate",e[e.province=2]="province",e[e.dependency=3]="dependency",e[e.county=4]="county",e[e.city=5]="city",e[e.region=6]="region",e[e.state=7]="state",e[e.territory=8]="territory",e[e.autonomousRepublic=9]="autonomousRepublic",e[e.municipate=10]="municipate",e[e.rayon=11]="rayon",e[e.division=12]="division",e[e.district=13]="district",e[e.governorate=14]="governorate",e[e.department=15]="department",e[e.specialMunicipality=16]="specialMunicipality",e[e.federalDistrict=17]="federalDistrict",e[e.island=18]="island",e[e.town=19]="town",e[e.oblast=20]="oblast",e[e.commune=21]="commune",e[e.prefecture=22]="prefecture",e[e.economicPrefecture=23]="economicPrefecture",e[e.canton=24]="canton",e[e.autonomousRegion=25]="autonomousRegion",e[e.specialAdministrativeRegion=26]="specialAdministrativeRegion",e[e.capitalDistrict=27]="capitalDistrict",e[e.geographicalRegion=28]="geographicalRegion",e[e.capitalCity=29]="capitalCity",e[e.ruralMunicipality=30]="ruralMunicipality",e[e.urbanMunicipality=31]="urbanMunicipality",e[e.autonomousCommunity=32]="autonomousCommunity",e[e.autonomousCity=33]="autonomousCity",e[e.administration=34]="administration",e[e.regionalState=35]="regionalState",e[e.metropolitanRegion=36]="metropolitanRegion",e[e.overseasCollectivity=37]="overseasCollectivity",e}(Zc||(Vo.DyFM_SubdivisionRegionType=Zc={}))});var Qc=f($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.DyFM_Location=void 0;var _m=Wo(),Ft=Il(),Ra=class{static getDistanceInKilometres(t,n){let g=Ft.DyFM_Trigonometry.angleToRadians(t.latitude),s=Ft.DyFM_Trigonometry.angleToRadians(n.latitude),C=Ft.DyFM_Trigonometry.angleToRadians(n.latitude-t.latitude),i=Ft.DyFM_Trigonometry.angleToRadians(n.longitude-t.longitude),l=Math.sin(C/2)*Math.sin(C/2)+Math.cos(g)*Math.cos(s)*Math.sin(i/2)*Math.sin(i/2);return 6371*(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)))}static getLocationDegByKilometers(t,n,o){if(t==="latitude")return n/110.574;if(o)return n/(Math.cos(Ft.DyFM_Trigonometry.angleToRadians(o))*111.32);throw new _m.DyFM_Error({status:417,errorCode:"FSM-DSS-505",addECToUserMsg:!0,message:`When using getLocationDegByKilometers for longitude, you need to give latitude! (latiOrLong: ${t}, distanceInKm: ${n}, latitude: ${o})`,userMessage:"We encountered an uncought BackEnd Error, please contact the responsible development team."})}};$o.DyFM_Location=Ra});var tl=f(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0})});var ol=f(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0})});var al=f(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0})});var rl=f(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0})});var cl=f(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0})});var ml=f(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0})});var pl=f(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0})});var gl=f(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});var ye=(_e(),fe(he));ye.__exportStar(Wc(),le);ye.__exportStar(qc(),le);ye.__exportStar(Jc(),le);ye.__exportStar(Ni(),le);ye.__exportStar(hn(),le);ye.__exportStar(Qc(),le);ye.__exportStar(gn(),le);ye.__exportStar(tl(),le);ye.__exportStar(ol(),le);ye.__exportStar(al(),le);ye.__exportStar(rl(),le);ye.__exportStar(cl(),le);ye.__exportStar(ml(),le);ye.__exportStar(pl(),le)});var re=ge(vt(),1);var F=ge(Ls(),1),ue=ge(Js(),1);var Cm=ge(ld(),1);var _l=ge(wd(),1),ym=ge(Gd(),1),xm=ge(Xd(),1),bm=ge(Zd(),1),We=ge(Rc(),1),Ba=ge(Tl(),1),vm=ge(Lc(),1),Cl=ge(Hc(),1),Ea=ge(jc(),1),yl=ge(gl(),1);var Af=(()=>{class e{subscriptions=[];markedSubscriptions={};polls=[];markedPolls={};ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe());for(let n in this.markedSubscriptions)this.markedSubscriptions[n]?.unsubscribe();this.polls.forEach(n=>n.stop());for(let n in this.markedPolls)this.markedPolls[n]?.stop()}addSubscription(n){this.subscriptions.push(n)}addSubscriptions(n){this.subscriptions.push(...n)}addMarkedSubscription(n,o){this.markedSubscriptions[n]?.unsubscribe(),this.markedSubscriptions[n]=o}addMarkedSubscriptions(n){for(let o in n)this.markedSubscriptions[o]?.unsubscribe(),this.markedSubscriptions[o]=n[o]}removeMarkedSubscription(n){this.markedSubscriptions[n]?.unsubscribe(),this.markedSubscriptions[n]=null}removeMarkedSubscriptions(n){n.forEach(o=>this.removeMarkedSubscription(o))}addNewPoll(n){this.polls.push(n)}addNewMarkedPoll(n,o){this.markedPolls[n]?.stop(),this.markedPolls[n]=o}removeMarkedPoll(n){this.markedPolls[n]?.stop(),this.markedPolls[n]=null}static \u0275fac=function(o){return new(o||e)};static \u0275dir=Va({type:e})}return e})(),Tt=function(e){return e.info="info",e.success="success",e.warning="warning",e.error="error",e}(Tt||{});var Rf={[Tt.error]:{icon:"error",iconClass:"text-red-500",backgroundClass:"bg-red-50"},[Tt.info]:{icon:"info",iconClass:"text-blue-500",backgroundClass:"bg-blue-50"},[Tt.success]:{icon:"check_circle",iconClass:"text-green-500",backgroundClass:"bg-green-50"},[Tt.warning]:{icon:"warning",iconClass:"text-orange-500",backgroundClass:"bg-orange-50"}};var Sm="17.09",Bf=Sm.split(".")[0];var fl=class{static defaultDescriptionPosition=F.DyNM_MaterialTooltipPosition.above;static defaultDescriptionDelay=300;static definedButtonClasses={};static definedButtonContentClasses={};static getButtonStyleName(t){return[t.color,t.styleType,t.size,t.borderRadius,t.isIconButton?"icon":"",t.iconStyle,t.iconFill?"icon-fill":""].filter(o=>!!o).join("-")}static getButtonClasses(t){let n=this.getButtonStyleName(t);if(this.definedButtonClasses[n])return this.definedButtonClasses[n];{let o=this.assembleButtonClasses(t);return this.definedButtonClasses[n]=o,o}}static getButtonContentClasses(t){let n=this.getButtonStyleName(t);if(this.definedButtonContentClasses[n])return this.definedButtonContentClasses[n];{let o=this.assembleButtonContentClasses(t);return this.definedButtonContentClasses[n]=o,o}}static assembleButtonClasses(t){let n=[];return n.push(this.getButtonStyleName(t)),n.push(...this.getDefaultButtonClasses(t)),n.push("disabled:cursor-not-allowed"),n.push(...this.getColoringButtonClasses(t)),n.push(...this.getBorderRadiusClasses(t)),t.isIconButton||n.push("w-full"),n}static assembleButtonContentClasses(t){let n=["flex","items-center","justify-center"];return n.push(this.getButtonStyleName(t)),n.push(...this.getTextSizeButtonContentClasses(t)),t.iconFill&&n.push("dynamo-icon-fill"),t.isIconButton?n.push(...this.getIconMarginButtonContentClasses(t)):n.push(...this.getMarginButtonContentClasses(t)),n}static getDefaultButtonClasses(t){return t.styleType&&!(t.isIconButton||t.iconStyle!==F.DyNM_ButtonNewIconStyleType.outlined)&&![F.DyNM_ButtonNewStyleType.stroked,F.DyNM_ButtonNewStyleType.backgroundless].includes(t.styleType)?["disabled:bg-neutral-400/50","disabled:text-neutral-600","disabled:hover:bg-neutral-700/50","disabled:hover:text-neutral-200","dark:disabled:bg-neutral-600/50","dark:disabled:text-neutral-200","dark:disabled:hover:bg-neutral-600"]:[]}static getColoringButtonClasses(t){let n=[];switch(t.styleType){case F.DyNM_ButtonNewStyleType.stroked:return n.push("border-2",`border-${t.color}-500`,`text-${t.color}-500`,`hover:bg-${t.color}-500/10`,"disabled:border-neutral-500","disabled:bg-neutral-500/10","disabled:text-neutral-500","disabled:hover:bg-neutral-500/25"),F.DyNM_allMaterialColors.includes(t.color)||n.push(`dark:border-${t.color}-200`,`dark:text-${t.color}-200`,`dark:hover:bg-${t.color}-200`,`dark:hover:text-${t.color}C-200`,"dark:disabled:border-neutral-600"),n;case F.DyNM_ButtonNewStyleType.backgroundless:return n.push(`text-${t.color}-500`,`hover:bg-${t.color?t.color:"neutral"}-500/10`,"disabled:text-neutral-600","disabled:hover:bg-neutral-500/10"),F.DyNM_allMaterialColors.includes(t.color)||n.push(`dark:border-${t.color}-200`,`dark:text-${t.color}-200`,`dark:hover:bg-${t.color}-200`,`dark:hover:text-${t.color}C-200`),n;case F.DyNM_ButtonNewStyleType.tonal:return n.push(`text-${t.color}-600`,`dark:text-${t.color}-300`,`bg-${t.color}-100`,`dark:bg-${t.color}-800`,`hover:bg-${t.color}-200`,`dark:hover:bg-${t.color}-900`),F.DyNM_allMaterialColors.includes(t.color)||n.push(`dark:bg-${t.color}-200/50`,`dark:text-${t.color}C-500`),n;case F.DyNM_ButtonNewStyleType.filled:return[`bg-${t.color}-500`,`text-${t.color}C-500`,`hover:bg-${t.color}-700`,"disabled:bg-neutral-600","disabled:hover:bg-neutral-500/10"];default:return[]}}static getBorderRadiusClasses(t){if(t.isIconButton)return["rounded-full"];switch(t.borderRadius){case F.DyNM_ButtonNewBorderRadius.square:return["rounded-none"];case F.DyNM_ButtonNewBorderRadius.full:return["rounded-full"];case F.DyNM_ButtonNewBorderRadius.rounded:return["rounded-full"];default:switch(t.size){case F.DyNM_ButtonNewSize.xs:return["rounded-sm"];case F.DyNM_ButtonNewSize.small:return["rounded-lg"];case F.DyNM_ButtonNewSize.medium:return["rounded-2xl"];case F.DyNM_ButtonNewSize.large:return["rounded-3xl"];case F.DyNM_ButtonNewSize.xl:return["rounded-4xl"];default:return console.warn("CustomButtonSettingsModel: no border radius set. Default is rounded-lg."),["rounded-2xl"]}}}static getTextSizeButtonContentClasses(t){switch(t.size){case F.DyNM_ButtonNewSize.xs:return["text-xs"];case F.DyNM_ButtonNewSize.small:return["text-sm"];case F.DyNM_ButtonNewSize.medium:return["text-base"];case F.DyNM_ButtonNewSize.large:return["text-lg"];case F.DyNM_ButtonNewSize.xl:return["text-2xl"];default:return["text-base"]}}static getIconMarginButtonContentClasses(t){switch(t.size){case F.DyNM_ButtonNewSize.xs:return["m-0"];case F.DyNM_ButtonNewSize.small:return["m-0.5"];case F.DyNM_ButtonNewSize.medium:return["m-1"];case F.DyNM_ButtonNewSize.large:return["m-1.5"];case F.DyNM_ButtonNewSize.xl:return["m-2"];default:switch(t.styleType){case F.DyNM_ButtonNewStyleType.stroked:return["m-0.5"];case F.DyNM_ButtonNewStyleType.backgroundless:return["m-1.5"];default:return["m-1"]}}}static getMarginButtonContentClasses(t){switch(t.size){case F.DyNM_ButtonNewSize.xs:return t.styleType===F.DyNM_ButtonNewStyleType.stroked?["my-0","mx-2"]:["my-0.5","mx-2"];case F.DyNM_ButtonNewSize.small:return t.styleType===F.DyNM_ButtonNewStyleType.stroked?["my-1.5","mx-4"]:["my-2","mx-4"];case F.DyNM_ButtonNewSize.medium:return t.styleType===F.DyNM_ButtonNewStyleType.stroked?["my-3","mx-6"]:["my-3.5","mx-6"];case F.DyNM_ButtonNewSize.large:case F.DyNM_ButtonNewSize.xl:return t.styleType===F.DyNM_ButtonNewStyleType.stroked?["my-3.5","mx-7"]:["my-4","mx-7"];default:return console.warn("CustomButtonSettingsModel: no size set. Default is medium."),t.styleType===F.DyNM_ButtonNewStyleType.stroked?["my-3","mx-6"]:["my-3.5","mx-6"]}}static iconButtonSettingsValidation(t){t.style_$().isIconButton&&(t.label&&!t.description&&t.description!==null&&(t.description=t.label,console.warn(`CustomButtonSettingsModel: icon button has no description, but label is set. The label is set as description. Please set description for the icon button.
|
|
114
114
|
(${t.id})`)),t.icon||console.error(`CustomButtonSettingsModel: icon button has no icon set. Please set icon. (${t.id})`))}};var hl=class{static phoneCodeOptions=yl.DyFM_Regions?.phoneCodes.map(t=>{let n=t.code.includes("-")?t.code.split("-")[0]:t.code;return new F.DyNM_Select(`${t.country} (+${n})`,n)})};export{Af as a};
|
|
115
|
-
//# sourceMappingURL=chunk-
|
|
115
|
+
//# sourceMappingURL=chunk-FFMRDDGL.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{I as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{I as p}from"./chunk-KPYMFKWR.js";import{C as l,G as h,aa as a,hb as b,k as i,p as o,xb as d,y as n}from"./chunk-TBMJSIBB.js";var g=(()=>{class r{http=l(d);baseUrl=`${p.api.baseUrl}/sch`;listJobs(){return o(this.http.get(`${this.baseUrl}/jobs`))}getJob(e){return o(this.http.get(`${this.baseUrl}/jobs/${e}`))}createJob(e){return o(this.http.post(`${this.baseUrl}/jobs`,e))}updateJob(e,t){return o(this.http.patch(`${this.baseUrl}/jobs/${e}`,t))}deleteJob(e){return o(this.http.delete(`${this.baseUrl}/jobs/${e}`))}enableJob(e){return o(this.http.post(`${this.baseUrl}/jobs/${e}/enable`,{}))}disableJob(e){return o(this.http.post(`${this.baseUrl}/jobs/${e}/disable`,{}))}pauseJob(e){return o(this.http.post(`${this.baseUrl}/jobs/${e}/pause`,{}))}resumeJob(e){return o(this.http.post(`${this.baseUrl}/jobs/${e}/resume`,{}))}triggerNow(e){let t=[];e.bypass&&t.push("bypass=true"),e.forcePolicy&&t.push(`forcePolicy=${encodeURIComponent(e.forcePolicy)}`),e.dryRun&&t.push("dryRun=true");let s=t.length?`?${t.join("&")}`:"";return o(this.http.post(`${this.baseUrl}/jobs/${e.jobId}/trigger-now${s}`,{reason:e.reason}))}listExecutions(e){let t=[];e.jobId&&t.push(`jobId=${encodeURIComponent(e.jobId)}`),e.status&&t.push(`status=${encodeURIComponent(e.status)}`),e.targetSessionId&&t.push(`targetSessionId=${encodeURIComponent(e.targetSessionId)}`),e.from&&t.push(`from=${encodeURIComponent(e.from)}`),e.to&&t.push(`to=${encodeURIComponent(e.to)}`);let s=t.length?`?${t.join("&")}`:"";return o(this.http.get(`${this.baseUrl}/executions${s}`))}getExecution(e){return o(this.http.get(`${this.baseUrl}/executions/${e}`))}getDefaults(){return o(this.http.get(`${this.baseUrl}/defaults`))}applyDefaults(){return o(this.http.post(`${this.baseUrl}/defaults/apply`,{}))}static \u0275fac=function(t){return new(t||r)};static \u0275prov=n({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var F=(()=>{class r{jobs_AS=l(g);jobs_$=a([]);recentExecutions_$=a(new Map);isLoading_$=a(!1);errorMessage_$=a(null);scheduledSessionIds_$=b(()=>{let e=new Set;for(let t of this.jobs_$()){if(t.enabled===!1)continue;let s=t.target?.payload?.sessionId?.trim();s&&e.add(s)}return e});loadAll(){return i(this,null,function*(){this.isLoading_$.set(!0),this.errorMessage_$.set(null);try{let t=(yield this.jobs_AS.listJobs()).jobs??[];this.jobs_$.set(t),this.loadRecentExecutionsForJobs(t)}catch(e){this.errorMessage_$.set(e?.message??"Failed to load scheduler jobs")}finally{this.isLoading_$.set(!1)}})}loadRecentExecutionsForJobs(e){return i(this,null,function*(){let t=new Map;try{let $=(yield this.jobs_AS.listExecutions({})).executions??[];for(let j of e){let c=j._id??"";if(!c)continue;let y=$.filter(u=>u.jobId===c).sort((u,m)=>(m.scheduledAt??"").localeCompare(u.scheduledAt??"")).slice(0,10);t.set(c,y)}}catch{}this.recentExecutions_$.set(t)})}getJob(e){return i(this,null,function*(){try{return(yield this.jobs_AS.getJob(e)).job}catch(t){return this.errorMessage_$.set(t?.message??"Failed to load job"),null}})}create(e){return i(this,null,function*(){try{let t=yield this.jobs_AS.createJob(e);return yield this.loadAll(),t.job}catch(t){return this.errorMessage_$.set(t?.message??"Failed to create job"),null}})}update(e,t){return i(this,null,function*(){try{let s=yield this.jobs_AS.updateJob(e,t);return yield this.loadAll(),s.job}catch(s){return this.errorMessage_$.set(s?.message??"Failed to update job"),null}})}remove(e){return i(this,null,function*(){try{let t=yield this.jobs_AS.deleteJob(e);return yield this.loadAll(),t.deleted}catch(t){return this.errorMessage_$.set(t?.message??"Failed to delete job"),!1}})}toggleEnabled(e,t){return i(this,null,function*(){try{t?yield this.jobs_AS.enableJob(e):yield this.jobs_AS.disableJob(e),yield this.loadAll()}catch(s){this.errorMessage_$.set(s?.message??"Failed to toggle enabled state")}})}togglePaused(e,t){return i(this,null,function*(){try{t?yield this.jobs_AS.pauseJob(e):yield this.jobs_AS.resumeJob(e),yield this.loadAll()}catch(s){this.errorMessage_$.set(s?.message??"Failed to toggle paused state")}})}triggerNow(e){return i(this,null,function*(){try{return(yield this.jobs_AS.triggerNow(e)).triggered}catch(t){return this.errorMessage_$.set(t?.message??"Failed to trigger job"),!1}})}listExecutions(e){return i(this,null,function*(){try{return(yield this.jobs_AS.listExecutions({jobId:e.jobId})).executions??[]}catch(t){return this.errorMessage_$.set(t?.message??"Failed to load executions"),[]}})}getDefaults(){return i(this,null,function*(){try{return(yield this.jobs_AS.getDefaults()).defaults}catch(e){return this.errorMessage_$.set(e?.message??"Failed to load defaults"),null}})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=n({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var E=(()=>{class r{transform(e){if(!e||!e.preset)return"\u2014";let t=e.preset,s=e.intervalValue;if(s===void 0||!isFinite(s))return t;switch(t){case"every-n-minutes":return`every ${s} minutes`;case"every-n-hours":return`every ${s} hours`;case"every-n-days":return`every ${s} days`;case"windowed-interval":return`every ${s} min (window)`;default:return t}}static \u0275fac=function(t){return new(t||r)};static \u0275pipe=h({name:"schSchedulePresetLabel",type:r,pure:!0,standalone:!0})}return r})();export{F as a,E as b};
|
|
2
|
+
//# sourceMappingURL=chunk-FJPTWDXS.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as h}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as h}from"./chunk-Q6OVG3PN.js";import{I as l,p as $}from"./chunk-KPYMFKWR.js";import{C as a,aa as e,h as L,k as r,p as n,xb as o,y as c}from"./chunk-TBMJSIBB.js";var f=L($());var d=(()=>{class s{baseUrl=`${l.api.baseUrl}/cai-instance-data`;http=a(o);listInstances(){return n(this.http.get(`${this.baseUrl}/list`))}getByCcapId(t){return n(this.http.get(`${this.baseUrl}/by-ccap/${t}`))}patchByCcapId(t){let i={};return t.name!==void 0&&(i.name=t.name),t.status!==void 0&&(i.status=t.status),t.darkOfficeVisuals!==void 0&&(i.darkOfficeVisuals=t.darkOfficeVisuals),n(this.http.patch(`${this.baseUrl}/by-ccap/${t.ccapId}`,i))}static \u0275fac=function(i){return new(i||s)};static \u0275prov=c({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var p=(()=>{class s{baseUrl=`${l.api.baseUrl}/cci-instance-data`;http=a(o);listInstances(){return n(this.http.get(`${this.baseUrl}/list`))}getByCcapId(t){return n(this.http.get(`${this.baseUrl}/by-ccap/${t}`))}patchByCcapId(t){let i={};return t.name!==void 0&&(i.name=t.name),t.status!==void 0&&(i.status=t.status),t.darkOfficeVisuals!==void 0&&(i.darkOfficeVisuals=t.darkOfficeVisuals),n(this.http.patch(`${this.baseUrl}/by-ccap/${t.ccapId}`,i))}static \u0275fac=function(i){return new(i||s)};static \u0275prov=c({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var u=(()=>{class s{baseUrl=`${l.api.baseUrl}/instance-data`;http=a(o);getList(){return n(this.http.get(`${this.baseUrl}/list`))}getCurrent(){return n(this.http.get(`${this.baseUrl}/current`))}getByCcapId(t){return n(this.http.get(`${this.baseUrl}/by-ccap/${t}`))}patchByCcapId(t){let i={};return t.name!==void 0&&(i.name=t.name),t.status!==void 0&&(i.status=t.status),t.darkOfficeVisuals!==void 0&&(i.darkOfficeVisuals=t.darkOfficeVisuals),n(this.http.patch(`${this.baseUrl}/by-ccap/${t.ccapId}`,i))}ensure(t){return n(this.http.post(`${this.baseUrl}/ensure`,t??{}))}static \u0275fac=function(i){return new(i||s)};static \u0275prov=c({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var q=(()=>{class s{instanceData_AS=a(u);ociInstanceData_AS=a(h);cciInstanceData_AS=a(p);caiInstanceData_AS=a(d);ccapInstanceList_$=e([]);ccapInstanceListLoading_$=e(!1);ccapInstanceListError_$=e(null);ociInstanceList_$=e([]);ociInstanceListLoading_$=e(!1);ociInstanceListError_$=e(null);cciInstanceList_$=e([]);cciInstanceListLoading_$=e(!1);cciInstanceListError_$=e(null);caiInstanceList_$=e([]);caiInstanceListLoading_$=e(!1);caiInstanceListError_$=e(null);loadCcapInstanceList(){return r(this,null,function*(){this.ccapInstanceListLoading_$.set(!0),this.ccapInstanceListError_$.set(null);try{let t=yield this.instanceData_AS.getList();this.ccapInstanceList_$.set(Array.isArray(t?.list)?t.list:[])}catch(t){this.ccapInstanceList_$.set([]),this.ccapInstanceListError_$.set(t),f.DyFM_Error.logSimple("CCAP_RuntimeInstances_DS | loadCcapInstanceList failed",t)}finally{this.ccapInstanceListLoading_$.set(!1)}})}loadOciInstanceListAllowEmpty(){return r(this,null,function*(){this.ociInstanceListLoading_$.set(!0),this.ociInstanceListError_$.set(null);try{let t=yield this.ociInstanceData_AS.listInstances();this.ociInstanceList_$.set(Array.isArray(t?.list)?t.list:[])}catch(t){f.DyFM_Error.logSimple("CCAP_RuntimeInstances_DS | loadOciInstanceListAllowEmpty failed",t),this.ociInstanceList_$.set([])}finally{this.ociInstanceListLoading_$.set(!1)}})}loadOciInstanceListStrict(){return r(this,null,function*(){this.ociInstanceListLoading_$.set(!0),this.ociInstanceListError_$.set(null);try{let t=yield this.ociInstanceData_AS.listInstances();this.ociInstanceList_$.set(Array.isArray(t?.list)?t.list:[])}catch(t){this.ociInstanceListError_$.set(t)}finally{this.ociInstanceListLoading_$.set(!1)}})}loadCciInstanceListAllowEmpty(){return r(this,null,function*(){this.cciInstanceListLoading_$.set(!0),this.cciInstanceListError_$.set(null);try{let t=yield this.cciInstanceData_AS.listInstances();this.cciInstanceList_$.set(Array.isArray(t?.list)?t.list:[])}catch(t){f.DyFM_Error.logSimple("CCAP_RuntimeInstances_DS | loadCciInstanceListAllowEmpty failed",t),this.cciInstanceList_$.set([])}finally{this.cciInstanceListLoading_$.set(!1)}})}loadCciInstanceListStrict(){return r(this,null,function*(){this.cciInstanceListLoading_$.set(!0),this.cciInstanceListError_$.set(null);try{let t=yield this.cciInstanceData_AS.listInstances();this.cciInstanceList_$.set(Array.isArray(t?.list)?t.list:[])}catch(t){this.cciInstanceListError_$.set(t)}finally{this.cciInstanceListLoading_$.set(!1)}})}loadCaiInstanceListAllowEmpty(){return r(this,null,function*(){this.caiInstanceListLoading_$.set(!0),this.caiInstanceListError_$.set(null);try{let t=yield this.caiInstanceData_AS.listInstances();this.caiInstanceList_$.set(Array.isArray(t?.list)?t.list:[])}catch(t){f.DyFM_Error.logSimple("CCAP_RuntimeInstances_DS | loadCaiInstanceListAllowEmpty failed",t),this.caiInstanceList_$.set([])}finally{this.caiInstanceListLoading_$.set(!1)}})}static \u0275fac=function(i){return new(i||s)};static \u0275prov=c({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();export{d as a,p as b,u as c,q as d};
|
|
2
|
+
//# sourceMappingURL=chunk-G3IBMD7V.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as _,K as T,N as D,p as U}from"./chunk-
|
|
1
|
+
import{I as _,K as T,N as D,p as U}from"./chunk-KPYMFKWR.js";import{C,Gb as H,a as b,aa as I,b as j,h as w,k as L,p as g,q as h,wb as d,xb as M,y as F}from"./chunk-TBMJSIBB.js";var y=[{prefix:"/setup",hint:"Setup \u2014 client/src/app/_modules/config/_modules/setup/"},{prefix:"/settings",hint:"Settings \u2014 client/src/app/_modules/config/_modules/settings/"},{prefix:"/model-registry",hint:"Model registry \u2014 client/src/app/_modules/model-registry/"},{prefix:"/embedding-registry",hint:"Embedding registry \u2014 client/src/app/_modules/ai-systems/_modules/embedding-registry/"},{prefix:"/embedding-eval",hint:"Embedding eval \u2014 client/src/app/_modules/embedding-eval/"},{prefix:"/session",hint:"CCAP Session UI \u2014 client/src/app/_modules/session/"},{prefix:"/errors",hint:"Errors list \u2014 client/src/app/_modules/system/_modules/errors/"},{prefix:"/feedback",hint:"Feedback \u2014 client/src/app/_modules/feedback/"},{prefix:"/logs",hint:"Logs \u2014 client/src/app/_modules/dev/_modules/devtools/_modules/logs/"},{prefix:"/host-runtime-mcp",hint:"Host runtime MCP \u2014 client/src/app/_modules/dev/_modules/host-runtime-mcp/"},{prefix:"/voice-notes-poc",hint:"Voice notes POC \u2014 client/src/app/_modules/dev/_modules/poc/voice-notes-poc/"},{prefix:"/master-control-remote-poc",hint:"Master control remote POC \u2014 client/src/app/_modules/dev/_modules/poc/master-control-remote-poc/"},{prefix:"/workflow-settings",hint:"Workflow settings \u2014 client/src/app/_modules/config/_modules/workflow-settings/"},{prefix:"/coordinator",hint:"Coordinator \u2014 client/src/app/_modules/coordinator/"},{prefix:"/dark-office",hint:"Dark Office \u2014 client/src/app/_modules/dark-office/"},{prefix:"/project-management",hint:"Project management \u2014 client/src/app/_modules/project-management/"},{prefix:"/cc-session",hint:"CC Session UI \u2014 client/src/app/_modules/cc-session/"},{prefix:"/mobile-app",hint:"Mobile app \u2014 client/src/app/_modules/dev/_modules/poc/mobile-app/"},{prefix:"/oc-session",hint:"OC Session \u2014 client/src/app/_modules/oc/"},{prefix:"/ca-session",hint:"CA Session \u2014 client/src/app/_modules/ca-session/"},{prefix:"/consultant",hint:"Consultant \u2014 client/src/app/_modules/consultant/"},{prefix:"/agent-instances",hint:"Agent instances \u2014 client/src/app/_modules/agent-instances/"},{prefix:"/terminals",hint:"Terminals \u2014 client/src/app/_modules/dev/_modules/devtools/_modules/terminals/"},{prefix:"/live-development-pipeline",hint:"Live Development Pipeline \u2014 client/src/app/_modules/dev/_modules/devtools/_modules/live-dev-pipeline/"},{prefix:"/system-status",hint:"Legacy route \u2192 redirects to /live-development-pipeline \u2014 client/src/app/_modules/dev/_modules/devtools/_modules/live-dev-pipeline/"},{prefix:"/",hint:"Dashboard (root) \u2014 client/src/app/_modules/dashboard/"}];var q="NG0203",S=class r{static isNg0203Message(n){return n.trim()===q}static buildDiagnostics(n){let t={route:n.context.route,url:n.context.url,userAgent:n.context.userAgent,timestamp:n.context.timestamp},e=r.parseStackFrames(n.stack),i=typeof n.context.route=="string"?n.context.route:"",o=r.resolveRouteFeatureHints(i),s=r.buildStaticGuidance(),l=r.buildToolSteps({clientSnapshot:t,clientSource:n.clientSource,stackFrames:e,routeFeatureHints:o});return{summary:"Angular NG0203: inject() was called outside an injection context (constructor, field initializer, factory, or runInInjectionContext).",clientSource:n.clientSource,clientSnapshot:t,stackFrames:e,routeFeatureHints:o,staticGuidance:s,toolSteps:l}}static formatDiagnosticsAppendix(n){let t;try{t=JSON.stringify(n,null,2)}catch{t='{"ng0203Diagnostics":"JSON stringify failed"}'}return`
|
|
2
2
|
|
|
3
3
|
[NG0203 diagnostics]
|
|
4
4
|
${t}`}static parseStackFrames(n){if(n==null||!n.trim())return[];let t=n.split(`
|
|
@@ -24,4 +24,4 @@ ${String(n)}`}function nt(r){if(r instanceof Error&&typeof r.stack=="string"&&r.
|
|
|
24
24
|
`),s=t!=null&&t.trim().length>0?t.trim():"(no stack)";return`${o}
|
|
25
25
|
|
|
26
26
|
${s}`}buildReportPayloadFromError(t,e){let i=this.getCurrentContext(),o=f.getErrorMessageForDisplay(t),s=r.enrichMessageForReport(t,o),l=f.getStackForReport(t),m=this.buildStackWithContext(l,i),R=r.extractErrorCode(t),E=r.extractAdditionalContent(t);return{message:s,stack:m,source:e??"client-app",errorCode:R,errorAdditionalContent:E,clientContext:i}}static enrichMessageForReport(t,e){if(!(t instanceof d))return e;let i=t.url?`URL: ${t.url}`:"URL: (?)",o=`status: ${t.status}`;return`${e} | ${i} | ${o}`}static extractErrorCode(t){if(t==null||typeof t!="object")return;let e=t;if(typeof e.errorCode=="string"&&e.errorCode.length>0)return e.errorCode;if(typeof e._errorCode=="string"&&e._errorCode.length>0)return e._errorCode}static extractAdditionalContent(t){if(t==null||typeof t!="object")return;let e=t;if(e.additionalContent!=null&&typeof e.additionalContent=="object")return e.additionalContent}buildReportPayloadFromParams(t){let e=this.getCurrentContext(),i=this.buildStackWithContext(t.stack,e);return{message:t.message,stack:i,source:t.source,clientContext:e}}showError(t,e){setTimeout(()=>{try{let i=f.getErrorMessageForDisplay(t),o=N.tryGetShortNotificationAffix({error:t});if(o.length>0&&(i=i+o),!(t instanceof d)&&!(this.settingsGeneral_DS.section_$().form.reportSocketConnectionErrorsToErrorList===!0)&&x.matchesDisplayMessage(i)){t instanceof Error&&p.DyFM_Log.error("[CCAP]",e??"client-app",t);return}let s=this.getCurrentContext(),l;if(k.isNg0600Message(i))try{l=k.buildDiagnostics({stack:f.getStackForReport(t),context:{route:s.route,url:s.url,userAgent:s.userAgent,timestamp:s.timestamp},clientSource:e})}catch(a){p.DyFM_Log.error("CCAP NG0600 diagnostics failed",a)}let m;if(S.isNg0203Message(i))try{m=S.buildDiagnostics({stack:f.getStackForReport(t),context:{route:s.route,url:s.url,userAgent:s.userAgent,timestamp:s.timestamp},clientSource:e})}catch(a){p.DyFM_Log.error("CCAP NG0203 diagnostics failed",a)}let R=e!=null&&e.trim().length>0?e.trim():void 0,E={id:this.nextNotificationId++,error:t,displayMessage:i,timestamp:Date.now(),isDismissing:!1,clientSource:R,ng0600Diagnostics:l,ng0203Diagnostics:m};if(this.errors_$.update(a=>{let u=[...a,E];return u.length>r.maxNotifications?u.slice(u.length-r.maxNotifications):u}),setTimeout(()=>{this.dismissNotification(E.id)},r.autoDismissMs),t instanceof Error&&p.DyFM_Log.error("[CCAP]",e??"client-app",t),!(t instanceof d)){let a=this.buildReportPayloadFromError(t,e??"client-app"),u="";l!=null?u=k.formatDiagnosticsAppendix(l):m!=null&&(u=S.formatDiagnosticsAppendix(m));let X=u.length>0?`${a.stack??""}${u}`:a.stack??"",Y={message:a.message,stack:X,source:a.source,sessionId:a.sessionId,runId:a.runId,errorCode:a.errorCode,errorAdditionalContent:a.errorAdditionalContent,clientContext:a.clientContext};this.errors_AS.reportError(Y).catch(()=>{})}}catch(i){p.DyFM_Log.error("CCAP showError set failed",i)}},0)}selectError(t){let e=this.errors_$().find(i=>i.id===t);e!=null&&this.selectedNotificationForModal_$.set(e)}dismissNotification(t){let i=this.errors_$().find(o=>o.id===t);i==null||i.isDismissing||(this.errors_$.update(o=>o.map(s=>s.id===t?j(b({},s),{isDismissing:!0}):s)),setTimeout(()=>{this.errors_$.update(o=>o.filter(s=>s.id!==t))},r.exitAnimationMs))}dismissSelected(){this.selectedNotificationForModal_$.set(null)}dismissAll(){this.errors_$.set([]),this.selectedNotificationForModal_$.set(null)}copyToClipboard(t){return L(this,null,function*(){return(yield this.tryWriteTextWithNavigatorClipboard(t))?{ok:!0}:this.copyTextWithExecCommand(t)?{ok:!0}:{ok:!1,error:new Error("Clipboard copy failed (secure Clipboard API unavailable or denied, and legacy execCommand copy failed)")}})}tryWriteTextWithNavigatorClipboard(t){return L(this,null,function*(){let e=typeof navigator<"u"?navigator.clipboard:void 0;if(e==null||typeof e.writeText!="function")return!1;try{return yield e.writeText(t),!0}catch{return!1}})}copyTextWithExecCommand(t){if(typeof document>"u"||typeof document.execCommand!="function")return!1;let e=document.createElement("textarea");e.value=t,e.setAttribute("readonly",""),e.setAttribute("aria-hidden","true"),e.style.position="fixed",e.style.top="0",e.style.left="0",e.style.width="1px",e.style.height="1px",e.style.padding="0",e.style.margin="0",e.style.border="none",e.style.outline="none",e.style.opacity="0",e.style.pointerEvents="none",document.body.appendChild(e),e.focus(),e.select();let i=t.length;e.setSelectionRange(0,i);let o=!1;try{o=document.execCommand("copy")}catch{o=!1}return e.remove(),o}reportErrorOnly(t){if(!(this.settingsGeneral_DS.section_$().form.reportSocketConnectionErrorsToErrorList===!0)&&(t.source==="client-socket"||x.matchesDisplayMessage(t.message)))return;let i=this.buildReportPayloadFromParams(t);this.errors_AS.reportError(i).catch(()=>{})}static \u0275fac=function(e){return new(e||r)};static \u0275prov=F({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{S as a,k as b,c,$ as d,v as e,z as f,N as g,f as h,V as i,Ot as j};
|
|
27
|
-
//# sourceMappingURL=chunk-
|
|
27
|
+
//# sourceMappingURL=chunk-G3LGRE4Z.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{a as S}from"./chunk-
|
|
1
|
+
import{a as S}from"./chunk-Q6OVG3PN.js";import{M as m,t as g}from"./chunk-KPYMFKWR.js";import{C as y,N as h,a as i,aa as u,b as c,k as d,y as f}from"./chunk-TBMJSIBB.js";function I(){return{instanceId:crypto.randomUUID(),label:"default",gatewayUrl:"ws://127.0.0.1:18789",authToken:void 0,isPrimary:!1,autoConnect:!1,testState:"idle"}}function p(o){let l=[],s=o.gatewayUrl??"",t=(o.message??"").toLowerCase(),e=o.failureType??"";return s.startsWith("wss://")&&(e==="ws-error"||e==="ws-close")&&l.push('A gateway wss:// (TLS) protokollt haszn\xE1l \u2014 ha self-signed certificate-et haszn\xE1l, enged\xE9lyezd az "Allow self-signed TLS" opci\xF3t.'),s.startsWith("ws://")&&!s.startsWith("wss://")&&(e==="ws-error"||e==="ws-close")&&l.push("Ha a gateway TLS-t (wss://) haszn\xE1l, cser\xE9ld az URL-t ws:// helyett wss://-re."),e==="timeout"&&l.push("A gateway nem v\xE1laszolt id\u0151ben. Ellen\u0151rizd, hogy fut-e a gateway process \xE9s el\xE9rhet\u0151-e a megadott c\xEDmen."),e==="ws-error"&&!l.length&&l.push("Nem siker\xFClt csatlakozni. Ellen\u0151rizd: 1) fut-e a gateway, 2) helyes-e az URL \xE9s port, 3) nincs-e t\u0171zfal az \xFAtban."),(t.includes("econnrefused")||t.includes("connection refused"))&&l.push("A kapcsolat visszautas\xEDtva \u2014 a gateway nem hallgat a megadott c\xEDmen/porton."),(t.includes("certificate")||t.includes("cert")||t.includes("ssl")||t.includes("tls"))&&l.push('TLS tan\xFAs\xEDtv\xE1ny hiba \u2014 self-signed certificate eset\xE9n enged\xE9lyezd az "Allow self-signed TLS" opci\xF3t.'),l.length?`
|
|
2
2
|
|
|
3
3
|
`+l.join(`
|
|
4
4
|
`):""}var _=(()=>{class o extends m{ociData_AS=y(S);section_$=u({form:{instances:[]}});updateForm(s){this.section_$.update(t=>c(i({},t),{form:i(i({},t.form),s)}))}setSection(s){this.section_$.set(s)}getSectionId(){return g.openclawRegistry}getSection_$(){return this.section_$}doLoad(){return d(this,null,function*(){let s=new Map;for(let a of this.section_$().form.instances)s.set(a.instanceId,{testState:a.testState,testLatencyMs:a.testLatencyMs,testError:a.testError,testResultMessage:a.testResultMessage,authTokenEditMode:a.authTokenEditMode,pairState:a.pairState,pairError:a.pairError,pairMessage:a.pairMessage,pairResultMessage:a.pairResultMessage,connectionStatus:a.connectionStatus,lastConnectedAt:a.lastConnectedAt});let e=(yield this.settings_AS.getSection(g.openclawRegistry)).instances,n=Array.isArray(e)?e.map(a=>{let r=s.get(a.instanceId);return c(i({},a),{authToken:void 0,testState:r?.testState??"idle",testLatencyMs:r?.testLatencyMs,testError:r?.testError,testResultMessage:r?.testResultMessage,authTokenEditMode:r?.authTokenEditMode??!1,pairState:r?.pairState??"idle",pairError:r?.pairError,pairMessage:r?.pairMessage,pairResultMessage:r?.pairResultMessage,connectionStatus:r?.connectionStatus,lastConnectedAt:r?.lastConnectedAt})}):[];this.section_$.set({form:{instances:n}}),this.enrichWithOciStatus().catch(()=>{})})}enrichWithOciStatus(){return d(this,null,function*(){let s=yield this.ociData_AS.listInstances(),t=new Map;for(let e of s.list)t.set(e.instanceId,e);this.section_$.update(e=>c(i({},e),{form:{instances:e.form.instances.map(n=>{let a=t.get(n.instanceId);return a?c(i({},n),{connectionStatus:a.connectionStatus,lastConnectedAt:a.lastConnectedAt}):n})}}))})}buildSaveBody(){return{instances:this.section_$().form.instances.map(t=>({instanceId:t.instanceId,label:t.label,gatewayUrl:t.gatewayUrl,authToken:t.authToken,isPrimary:t.isPrimary,autoConnect:t.autoConnect,allowSelfSignedTls:t.allowSelfSignedTls}))}}savingInstanceId_$=u(null);buildSaveBodyForInstance(s){let t=this.section_$().form.instances.find(e=>e.instanceId===s);return t?{openclawRegistrySaveScope:"instance",targetInstanceId:s,instances:[{instanceId:t.instanceId,label:t.label,gatewayUrl:t.gatewayUrl,authToken:t.authToken,isPrimary:t.isPrimary,autoConnect:t.autoConnect,allowSelfSignedTls:t.allowSelfSignedTls}]}:{}}saveInstance(s){return d(this,null,function*(){this.savingInstanceId_$.set(s),this.saveError_$.set(null);try{let t=this.buildSaveBodyForInstance(s);yield this.doSave(t),yield this.load()}catch(t){this.saveError_$.set(o.getErrorMessage(t))}finally{this.savingInstanceId_$.set(null)}})}addInstance(){let s=I();this.section_$().form.instances.length||(s.isPrimary=!0),this.section_$.update(t=>c(i({},t),{form:{instances:[...t.form.instances,s]}}))}removeInstance(s){this.section_$.update(t=>{let e=t.form.instances.filter((a,r)=>r!==s);return(t.form.instances[s]?.isPrimary??!1)&&e.length>0&&(e[0]=c(i({},e[0]),{isPrimary:!0})),c(i({},t),{form:{instances:e}})})}updateInstance(s,t){this.section_$.update(e=>{let n=e.form.instances.map((a,r)=>r!==s?a:i(i({},a),t));return c(i({},e),{form:{instances:n}})})}setPrimary(s){this.section_$.update(t=>{let e=t.form.instances.map((n,a)=>c(i({},n),{isPrimary:a===s}));return c(i({},t),{form:{instances:e}})})}testConnection(s){return d(this,null,function*(){let t=this.section_$().form.instances[s];if(t){this.updateInstance(s,{testState:"testing",testLatencyMs:void 0,testError:void 0,testResultMessage:void 0});try{let e=yield this.settings_AS.testOpenclawConnection({gatewayUrl:t.gatewayUrl,authToken:t.authToken,allowSelfSignedTls:t.allowSelfSignedTls,instanceId:t.instanceId});if(e.success){let n=e.checks,a=n?" | WS: OK | v3 Handshake: OK | Sessions: OK"+(typeof n.sessionCount=="number"?` (${n.sessionCount} session)`:""):"";this.updateInstance(s,{testState:"ok",testLatencyMs:e.latencyMs,testError:void 0,testResultMessage:`Gateway el\xE9rhet\u0151 \u2014 v\xE1laszid\u0151: ${e.latencyMs}ms${a}`})}else{let n=e.error?.context?.failureType?String(e.error.context.failureType):"unknown",a=p({failureType:n,gatewayUrl:typeof e.error?.context?.gatewayUrl=="string"?e.error.context.gatewayUrl:t.gatewayUrl,message:e.error?.message});this.updateInstance(s,{testState:"error",testLatencyMs:void 0,testError:e.error??new Error("Connection failed"),testResultMessage:`Kapcsol\xF3d\xE1s sikertelen (${n}): ${e.error?.message??"ismeretlen hiba"}${a}`})}}catch(e){let n=e&&typeof e=="object"&&"error"in e?e.error:void 0,a=n?.message?String(n.message):e instanceof Error?e.message:String(e),r=p({gatewayUrl:t.gatewayUrl,message:a});this.updateInstance(s,{testState:"error",testError:n??e,testResultMessage:`Teszt hiba: ${a}${r}`})}}})}pairingInstanceId_$=u(null);pairInstance(s){return d(this,null,function*(){let t=this.section_$().form.instances[s];if(t){this.pairingInstanceId_$.set(t.instanceId),this.updateInstance(s,{pairState:"pairing",pairError:void 0,pairMessage:void 0});try{let e=yield this.settings_AS.pairOpenclawInstance({instanceId:t.instanceId});if(e.status==="paired")this.updateInstance(s,{pairState:"paired",pairingStatus:"paired",pairedAt:e.pairedAt,deviceTokenMasked:e.deviceTokenMasked,ccapDeviceId:e.ccapDeviceId,pairMessage:e.message,pairError:void 0,pairResultMessage:`Sikeresen p\xE1ros\xEDtva \u2014 device token megkapva${e.pairedAt?" ("+e.pairedAt+")":""}`});else if(e.status==="pending")this.updateInstance(s,{pairState:"pending",pairingStatus:"pending",ccapDeviceId:e.ccapDeviceId,pairingRequestId:e.pairingRequestId,pairMessage:e.message,pairError:void 0,pairResultMessage:`J\xF3v\xE1hagy\xE1sra v\xE1r a gateway-en \u2014 Device ID: ${e.ccapDeviceId??"N/A"}`});else if(e.status==="rejected")this.updateInstance(s,{pairState:"rejected",pairingStatus:"rejected",ccapDeviceId:e.ccapDeviceId,pairMessage:e.message,pairError:void 0,pairResultMessage:`A gateway elutas\xEDtotta a p\xE1ros\xEDt\xE1st: ${e.message??"ismeretlen ok"}`});else{let n=e.error?.context,a=p({failureType:typeof n?.failureType=="string"?n.failureType:void 0,gatewayUrl:typeof n?.gatewayUrl=="string"?n.gatewayUrl:t.gatewayUrl,message:e.message??e.error?.message});this.updateInstance(s,{pairState:"error",pairError:e.error??new Error(e.message??"Pairing failed"),pairMessage:e.message,pairResultMessage:`P\xE1ros\xEDt\xE1s hiba: ${e.message??e.error?.message??"ismeretlen hiba"}${a}`})}yield this.load()}catch(e){let n=e&&typeof e=="object"&&"error"in e?e.error:void 0,a=n?.message?String(n.message):e instanceof Error?e.message:String(e),r=n?.context,w=p({failureType:typeof r?.failureType=="string"?r.failureType:void 0,gatewayUrl:typeof r?.gatewayUrl=="string"?r.gatewayUrl:t.gatewayUrl,message:a});this.updateInstance(s,{pairState:"error",pairError:n??e,pairMessage:void 0,pairResultMessage:`P\xE1ros\xEDt\xE1s hiba: ${a}${w}`})}finally{this.pairingInstanceId_$.set(null)}}})}static \u0275fac=(()=>{let s;return function(e){return(s||(s=h(o)))(e||o)}})();static \u0275prov=f({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();export{_ as a};
|
|
5
|
-
//# sourceMappingURL=chunk-
|
|
5
|
+
//# sourceMappingURL=chunk-GBICGH5D.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as R,b as O}from"./chunk-
|
|
1
|
+
import{a as R,b as O}from"./chunk-KVUXI6MR.js";import{a as q}from"./chunk-3J5EVPQU.js";import{a as g}from"./chunk-UFBTR2BG.js";import{a as U}from"./chunk-ND5WRBGC.js";import{e as P}from"./chunk-KNBMYOHX.js";import{h as y,j as L}from"./chunk-G3LGRE4Z.js";import{p as D}from"./chunk-KPYMFKWR.js";import{C as v,R as T,a as h,aa as p,b as f,h as E,k as d,y as A}from"./chunk-TBMJSIBB.js";var S=E(D());var _=class u{static compareAsc(C,e){let s=(C.sequence??0)-(e.sequence??0);if(s!==0)return s;let n=typeof C.timestamp=="string"?C.timestamp:"",t=typeof e.timestamp=="string"?e.timestamp:"",o=n.localeCompare(t);if(o!==0)return o;let i=typeof C.messageKey=="string"?C.messageKey:"",r=typeof e.messageKey=="string"?e.messageKey:"";return i.localeCompare(r)}static sortAsc(C){return[...C].sort(u.compareAsc)}};var M=E(D());var x=(()=>{class u{parent;agentToolUseIds=new Set;activeSubAgentId="";toolUseIdToName=new Map;init(e){this.parent=e}resetTrackingState(){this.toolUseIdToName.clear(),this.agentToolUseIds.clear(),this.activeSubAgentId=""}handleSocketEvent(e,s){let n=e.event,t=e.payload;try{let o=typeof t.ccapId=="string"?t.ccapId:"";if(n!=="cc:rate-limit-update"&&n!=="ext-session-msg:message"&&n!=="ext-session-msg:update"&&o&&s.selectedCcapId&&o!==s.selectedCcapId){M.DyFM_Log.info(`CCAP_CcSession_DS | socket event dropped by instance filter | event: ${n} | eventCcapId: ${o} | selectedCcapId: ${s.selectedCcapId}`);return}switch(n){case"cc-session:status":this.handleStatusUpdate(t);break;case"cc-session:output":this.handleOutputChunk(t);break;case"cc-session:event":this.handleSessionEvent(t);break;case"cc-session:list-update":this.handleListUpdate(t);break;case"cc-session:session-update":this.handleSessionItemUpdate(t);break;case"agent-events":this.handleAgentEvent(t);break;case"ext-session-msg:message":this.handleAssembledMessage(t);break;case"ext-session-msg:update":this.handleAssembledMessageUpdate(t);break;case"cc:rate-limit-update":this.handleRateLimitBroadcast(t);break}}catch(o){let i=o instanceof Error?o.message:String(o);M.DyFM_Log.error(`CCAP_CcSession_DS | socket event error | event: ${n}`,o),s.globalErrorShowError(o instanceof Error?o:new Error(`CC Session socket event processing failed: ${n} \u2014 ${i}`),"cc-session-socket-event")}}pushConsoleMessageFromEvent(e,s,n){let t=e.data;switch(e.eventType){case"response-chunk":{this.pushResponseChunkBlocks(t);break}case"tool-call-start":{let o=t.name??t.tool_name??"unknown",i=typeof t.id=="string"?t.id:"";i&&this.toolUseIdToName.set(i,o),o==="Agent"&&i&&this.agentToolUseIds.add(i);let r=t.input,a=r?u.summarizeToolInput(r):"",l=a?`${o}: ${a}`:o,c=o==="Edit"?u.buildEditExpandableContent(r):void 0,m=o==="Agent"?"":this.activeSubAgentId;this.parent.pushConsoleMessage({type:"tool",text:l,expandableContent:c,rawData:t,parentAgentId:m||void 0});break}case"tool-call-end":{let o=t.content??t.output,i=typeof o=="string"?o:"",r=i.length>200?i.substring(0,200)+"\u2026":i;if(r){let a=i.length>200?i:void 0;this.parent.pushConsoleMessage({type:"tool-result",text:r,expandableContent:a,rawData:t,parentAgentId:this.activeSubAgentId||void 0})}break}case"response-complete":{this.activeSubAgentId="";let o=t.cost_usd,i=typeof o=="number"?` ($${o.toFixed(4)})`:"",r=typeof t.model=="string"?` \xB7 ${t.model}`:"";this.parent.pushConsoleMessage({type:"result",text:`Response complete${r}${i}`,rawData:t,expandableContent:JSON.stringify(t,null,2)}),this.accumulateUsage(t);break}case"prompt-sent":{let o=typeof t.content=="string"?t.content:"";o&&(this.parent.consoleMessages_$().some(a=>a.type==="prompt"&&a.text===o.trim())||this.parent.pushConsoleMessage({type:"prompt",text:o,rawData:t,expandableContent:JSON.stringify(t,null,2)}));break}case"status-change":{let o=typeof t.from=="string"?t.from:"",i=typeof t.to=="string"?t.to:"";if(i){let r=typeof t.statusMessage=="string"?t.statusMessage:void 0,a=o?`${o} \u2192 ${i}`:i,l=r?`${a} \u2014 ${r}`:a;this.parent.pushConsoleMessage({type:"status",text:l,isStatus:!0,rawData:t,expandableContent:JSON.stringify(t,null,2)})}break}case"config-change":{let o=t.update,i=o&&typeof o=="object"?Object.keys(o).join(", "):"unknown";this.parent.pushConsoleMessage({type:"info",text:`Config updated: ${i}`,rawData:t,expandableContent:JSON.stringify(t,null,2)});break}case"error":{let o=typeof t.message=="string"?t.message:"Unknown error";this.parent.pushConsoleMessage({type:"error",text:o,rawData:t,expandableContent:JSON.stringify(t,null,2)}),s&&n(new Error(`CC Session error: ${o}`),"cc-session-event");break}case"usage-update":{this.accumulateUsage(t);break}case"cli-chunk":{this.handleCliChunkEvent(t);break}case"runner-overflow":{let i=`Runner buffer overflow: ${typeof t.droppedCount=="number"?t.droppedCount:0} output items lost during server disconnect`;this.parent.pushConsoleMessage({type:"error",text:i,rawData:t,expandableContent:JSON.stringify(t,null,2)});break}case"interrupted-prompt":{let o=typeof t.reason=="string"?t.reason:"",i=typeof t.lastPrompt=="string"?t.lastPrompt:"",r=i.length>80?i.substring(0,80)+"\u2026":i,a=r?`Prompt interrupted (${o}): "${r}"`:`Prompt interrupted${o?" ("+o+")":""}`;this.parent.pushConsoleMessage({type:"status",text:a,isStatus:!0,rawData:t,expandableContent:JSON.stringify(t,null,2)});break}case"session-init":{let o=typeof t.model=="string"?t.model:"",i=typeof t.claudeCodeVersion=="string"?t.claudeCodeVersion:"",r=typeof t.permissionMode=="string"?t.permissionMode:"",a=[];o&&a.push(o),r&&a.push(r),i&&a.push(`v${i}`);let l=a.length>0?`CLI init: ${a.join(" \xB7 ")}`:"CLI initialized",c=JSON.stringify(t,null,2);this.parent.pushConsoleMessage({type:"info",text:l,rawData:t,expandableContent:c});break}case"config-mismatch":{let o=t.mismatches,i=Array.isArray(o)?o.map(r=>`${r.field}: requested "${r.requested}" \u2192 actual "${r.actual}"`).join(", "):"unknown mismatch";this.parent.pushConsoleMessage({type:"error",text:`Config mismatch: ${i}`,rawData:t,expandableContent:JSON.stringify(t,null,2)});break}case"cli-args-record":{let o=typeof t.model=="string"?t.model:"default",i=typeof t.reasoningEffort=="string"?t.reasoningEffort:"default",r=typeof t.mode=="string"?t.mode:"normal",a=typeof t.permissionPolicy=="string"?t.permissionPolicy:"default",l=`CLI spawn: model=${o} \xB7 effort=${i} \xB7 mode=${r} \xB7 permission=${a}`;this.parent.pushConsoleMessage({type:"info",text:l,rawData:t,expandableContent:JSON.stringify(t,null,2)});break}case"stdout-line":case"stderr-line":break;default:{let o=e.eventType;this.parent.pushConsoleMessage({type:"raw",text:o,rawData:t});break}}}handleStatusUpdate(e){let s=e.sessionId??"",n=e.status??"",t=e.statusMessage;this.parent.lastStatusUpdate_$.set({sessionId:s,status:n,statusMessage:t});let i=this.parent.sessions_$().map(a=>a.sessionId===s?f(h({},a),{status:n,statusMessage:t}):a);this.parent.sessions_$.set(i);let r=this.parent.selectedSession_$();if(r?.session.sessionId===s){let a=u.isLiveCcSessionStatus(n);this.parent.selectedSession_$.set(f(h({},r),{session:f(h({},r.session),{status:n,statusMessage:t}),runtime:f(h({},r.runtime),{isLive:a,runtimeStatus:n})}))}if(n==="errored"){let a=(t??"").trim();if(a.startsWith("Auto-recovery: terminal runner dropped silently")||a.startsWith("Exit code:"))M.DyFM_Log.warn(`CCAP_CcSession | user-task-fail diagnostic (NOT recorded to /errors) | sessionId: ${s} | statusMessage: ${a}`);else{let c=t?`CC Session error (${s}): ${t}`:`CC Session error (${s}): session entered errored state`;this.parent.showGlobalError(new Error(c),"cc-session-status")}}this.parent.evaluateSessionEventsPolling()}handleOutputChunk(e){let s=e.sessionId??"";if(s&&s!==this.parent.activeSessionId_$())return;let n=e.content??"",t=e.type??"stdout",o=this.parent.liveOutput_$(),i=n.split(`
|
|
2
2
|
`),r=3e3;if(t==="stderr"){let c=new Set(this.parent.liveStderrLines_$()),m=o.length;for(let b=0;b<i.length;b++)c.add(m+b);this.parent.liveStderrLines_$.set(c)}let l=[...o,...i];if(l.length>r){let c=l.length-r,m=l.slice(c),b=this.parent.liveStderrLines_$(),I=new Set;for(let w of b){let $=w-c;$>=0&&I.add($)}this.parent.liveStderrLines_$.set(I),this.parent.liveOutput_$.set(m)}else this.parent.liveOutput_$.set(l)}handleSessionEvent(e){let s=e.sessionId??"";if(s&&s!==this.parent.activeSessionId_$())return;let n=e.event??{},t={sessionId:s,eventType:n.eventType??"",timestamp:n.timestamp??"",data:n.data??{},sequence:n.sequence??0,eventSource:typeof n.eventSource=="string"?n.eventSource:void 0};if(t.sequence<=this.parent.getLastKnownEventSequence())return;this.parent.setLastKnownEventSequence(t.sequence);let o=this.parent.selectedSessionEvents_$();this.parent.selectedSessionEvents_$.set([...o,t]),this.pushConsoleMessageFromEvent(t,!0,(i,r)=>{this.parent.showGlobalError(i,r)})}handleAgentEvent(e){let s=typeof e.phase=="string"?e.phase:void 0;if(s)switch(s){case g.runInitialization:this.parent.pushConsoleMessage({type:"status",text:"RUN initialization",isStatus:!0});break;case g.analyze:this.parent.pushConsoleMessage({type:"status",text:"Analyzing incoming message",isStatus:!0});break;case g.analyzeResult:{let n=typeof e.runIntent=="string"?e.runIntent:"";n&&this.parent.pushConsoleMessage({type:"run-intent",text:n,isStatus:!1});break}case g.assemble:this.parent.pushConsoleMessage({type:"status",text:"Refreshing Context",isStatus:!0});break;case g.executionStart:this.parent.pushConsoleMessage({type:"status",text:"Starting Agent",isStatus:!0});break;case g.llmAgenticLoop:this.parent.pushConsoleMessage({type:"status",text:"Selecting next move",isStatus:!0});break;case g.agenticLoopIteration:{let n=typeof e.action=="string"?e.action:"",t=typeof e.tool=="string"?e.tool:"",o=typeof e.intent=="string"?e.intent:"",i=[];n&&i.push(n),t&&i.push(t),o&&i.push(o);let r=i.join(" \xB7 ");r&&this.parent.pushConsoleMessage({type:"iteration",text:r,isStatus:!1});break}case g.llmToolDescription:this.parent.pushConsoleMessage({type:"status",text:"Assembling tool inputs",isStatus:!0});break;case g.llmToolErrorRetry:this.parent.pushConsoleMessage({type:"status",text:"Figuring out what's wrong",isStatus:!0});break;case g.toolErrorRetry:this.parent.pushConsoleMessage({type:"status",text:"Trying to fix inputs",isStatus:!0});break;case g.executionEnd:this.parent.pushConsoleMessage({type:"status",text:"Finishing run",isStatus:!0});break;case g.finalization:case g.llmRunFinalization:this.parent.pushConsoleMessage({type:"status",text:"Gathering what we've done",isStatus:!0});break;case g.postFinalization:this.parent.pushConsoleMessage({type:"status",text:"Memorizing stuff",isStatus:!0});break;case g.runFlowComplete:this.parent.pushConsoleMessage({type:"status",text:"Getting back to user",isStatus:!0});break}}handleRateLimitBroadcast(e){let s=e.rate_limit_info;if(!s||typeof s!="object")return;let n=s,t={status:typeof n.status=="string"?n.status:"",resetsAt:typeof n.resetsAt=="number"?n.resetsAt:0,rateLimitType:typeof n.rateLimitType=="string"?n.rateLimitType:"",utilization:typeof n.utilization=="number"?n.utilization:0,surpassedThreshold:typeof n.surpassedThreshold=="number"?n.surpassedThreshold:0,isUsingOverage:n.isUsingOverage===!0,receivedAt:new Date().toISOString()};this.parent.rateLimitInfo_$.set(t)}handleListUpdate(e){let s=e.sessions??[],o=[...this.parent.sessions_$().some(i=>i.isArchived===!0)?s:s.filter(i=>!i.isArchived)].sort((i,r)=>{let a=i.lastActivityAt?new Date(i.lastActivityAt).getTime():0;return(r.lastActivityAt?new Date(r.lastActivityAt).getTime():0)-a});this.parent.sessions_$.set(o),this.mergeActiveSessionDetail(s)}handleSessionItemUpdate(e){let s=typeof e.sessionId=="string"?e.sessionId:"";if(!s)return;let n=typeof e.update=="object"&&e.update!==null?e.update:{},o=this.parent.sessions_$().map(r=>r.sessionId!==s?r:u.applySessionFieldUpdate(r,n));this.parent.sessions_$.set(o);let i=this.parent.selectedSession_$();i?.session.sessionId===s&&this.parent.selectedSession_$.set(f(h({},i),{session:u.applySessionFieldUpdate(i.session,n)}))}static applySessionFieldUpdate(e,s){let n=h({},e);return typeof s.toolCallCountIncrement=="number"&&(n.toolCallCount=(n.toolCallCount??0)+s.toolCallCountIncrement),typeof s.promptCountIncrement=="number"&&(n.promptCount=(n.promptCount??0)+s.promptCountIncrement),typeof s.inputTokensIncrement=="number"&&(n.inputTokensTotal=(n.inputTokensTotal??0)+s.inputTokensIncrement),typeof s.outputTokensIncrement=="number"&&(n.outputTokensTotal=(n.outputTokensTotal??0)+s.outputTokensIncrement),typeof s.costUsdIncrement=="number"&&(n.costUsdTotal=(n.costUsdTotal??0)+s.costUsdIncrement),typeof s.status=="string"&&(n.status=s.status),(typeof s.statusMessage=="string"||s.statusMessage===void 0)&&(n.statusMessage=s.statusMessage),typeof s.lastActivityAt=="string"&&(n.lastActivityAt=s.lastActivityAt),typeof s.lastPrompt=="string"&&(n.lastPrompt=s.lastPrompt),typeof s.activeModel=="string"&&(n.activeModel=s.activeModel),n}mergeActiveSessionDetail(e){let s=this.parent.activeSessionId_$();if(!s)return;let n=this.parent.selectedSession_$();if(!n)return;let t=e.find(o=>o.sessionId===s);t&&this.parent.selectedSession_$.set(f(h({},n),{session:h(h({},n.session),t)}))}handleAssembledMessage(e){let s=typeof e.sessionId=="string"?e.sessionId:"",n=this.parent.activeSessionId_$();if(!s||s!==n)return;let t=e.message;if(!t||typeof t!="object"){M.DyFM_Log.warn("CCAP_CcSession_DS | handleAssembledMessage dropped: invalid message payload",{sessionId:s,payloadKeys:Object.keys(e)});return}let o=t,i=this.parent.assembledMessages_$(),r=typeof o.messageKey=="string"?o.messageKey:"";r&&i.some(a=>a.messageKey===r)||this.parent.assembledMessages_$.set(_.sortAsc([...i,o]))}handleAssembledMessageUpdate(e){let s=typeof e.sessionId=="string"?e.sessionId:"";if(!s||s!==this.parent.activeSessionId_$())return;let n=typeof e.messageKey=="string"?e.messageKey:"";if(!n)return;let t=e.update;if(!t||typeof t!="object")return;let o=t,i=this.parent.assembledMessages_$(),r=i.findIndex(c=>c.messageKey===n);if(r<0)return;let a=h({},i[r]);typeof o.bodyText=="string"&&(a.bodyText=o.bodyText),o.toolResult!==void 0&&(a.toolResult=o.toolResult),typeof o.toolStatus=="string"&&(a.toolStatus=o.toolStatus),o.headerStatusDot!==void 0&&(a.headerStatusDot=typeof o.headerStatusDot=="string"?o.headerStatusDot:void 0);let l=[...i];l[r]=a,this.parent.assembledMessages_$.set(l)}handleCliChunkEvent(e){let s=typeof e.type=="string"?e.type:"";if(s==="rate_limit_event"){let n=e.rate_limit_info;if(n&&typeof n=="object"){let t=n,o={status:typeof t.status=="string"?t.status:"",resetsAt:typeof t.resetsAt=="number"?t.resetsAt:0,rateLimitType:typeof t.rateLimitType=="string"?t.rateLimitType:"",utilization:typeof t.utilization=="number"?t.utilization:0,surpassedThreshold:typeof t.surpassedThreshold=="number"?t.surpassedThreshold:0,isUsingOverage:t.isUsingOverage===!0,receivedAt:new Date().toISOString()};this.parent.rateLimitInfo_$.set(o)}return}if(s==="system"){this.handleCliChunkSystemEvent(e);return}this.handleCliChunkToolResults(e)||this.parent.pushConsoleMessage({type:"raw",text:s||"cli-chunk",rawData:e})}handleCliChunkSystemEvent(e){let s=typeof e.subtype=="string"?e.subtype:"",n=typeof e.description=="string"?e.description:u.buildSystemEventBrief({subtype:s,data:e}),t=typeof e.tool_use_id=="string"?e.tool_use_id:"";t&&this.agentToolUseIds.has(t)&&(this.activeSubAgentId=t);let o=t&&this.agentToolUseIds.has(t)?t:this.activeSubAgentId||void 0,i=typeof e.last_tool_name=="string"?e.last_tool_name:"";if(s==="task_progress"&&i){this.parent.pushConsoleMessage({type:"tool",text:`${i}: ${n}`,isStatus:!1,rawData:e,parentAgentId:o});return}this.parent.pushConsoleMessage({type:"status-update",text:n,subtype:s,isStatus:!1,rawData:e,parentAgentId:o})}pushResponseChunkBlocks(e){let s=e.message,n=s&&typeof s=="object"?s.content:e.content;if(Array.isArray(n)){for(let t of n){if(!t||typeof t!="object")continue;let o=t,i=typeof o.type=="string"?o.type:"";if(i==="text"){let r=typeof o.text=="string"?o.text:"";r&&(this.activeSubAgentId="",this.parent.pushConsoleMessage({type:"assistant",text:r,rawData:e}))}else if(i==="tool_use")this.handleResponseChunkToolUse(o,e);else if(i==="tool_result")this.handleResponseChunkToolResult(o);else if(i==="thinking"){let r=typeof o.thinking=="string"?o.thinking:"";r&&this.parent.pushConsoleMessage({type:"thinking",text:r,rawData:o,parentAgentId:this.activeSubAgentId||void 0})}else i&&this.parent.pushConsoleMessage({type:"raw",text:i,rawData:o})}return}if(typeof n=="string"&&n){this.parent.pushConsoleMessage({type:"assistant",text:n,rawData:e});return}this.parent.pushConsoleMessage({type:"raw",text:"response-chunk",rawData:e})}handleResponseChunkToolUse(e,s){let n=typeof e.name=="string"?e.name:"unknown",t=typeof e.id=="string"?e.id:"";t&&this.toolUseIdToName.set(t,n),n==="Agent"&&t&&this.agentToolUseIds.add(t);let o=e.input,i=o?u.summarizeToolInput(o):"",r=i?`${n}: ${i}`:n,a=n==="Edit"?u.buildEditExpandableContent(o):void 0,l=n==="Agent"?"":this.activeSubAgentId;this.parent.pushConsoleMessage({type:"tool",text:r,expandableContent:a,rawData:e,parentAgentId:l||void 0})}handleResponseChunkToolResult(e){let s=typeof e.tool_use_id=="string"?e.tool_use_id:"",n=s&&this.agentToolUseIds.has(s)?s:this.activeSubAgentId||"",t=e.content??e.output,o=typeof t=="string"?t:"",i=o.length>200?o.substring(0,200)+"\u2026":o||"tool_result";this.parent.pushConsoleMessage({type:"tool-result",text:i,expandableContent:o.length>200?o:void 0,rawData:e,parentAgentId:n||void 0})}handleCliChunkToolResults(e){if((typeof e.type=="string"?e.type:"")!=="user")return!1;let n=e.message,t=n&&typeof n=="object"?n.content:null;if(!Array.isArray(t))return!1;let o=typeof e.parent_tool_use_id=="string"?e.parent_tool_use_id:"",i=!1;for(let r of t){if(!r||typeof r!="object")continue;let a=r,l=typeof a.type=="string"?a.type:"";if(l==="tool_result"){let c=typeof a.tool_use_id=="string"?a.tool_use_id:"",m=c?this.toolUseIdToName.get(c)??"":"",b=a.content,I=typeof b=="string"?b:"",w=a.is_error===!0,$=m?`${m}: `:"",k=I.length>200?I.substring(0,200)+"\u2026":I||"tool result",F=w?`${$}ERROR \u2014 ${k}`:`${$}${k}`;this.parent.pushConsoleMessage({type:"tool-result",text:F,expandableContent:I.length>200?I:void 0,rawData:f(h({},a),{parent_tool_use_id:o||void 0}),parentAgentId:o||void 0}),i=!0}else if(l==="text"&&o){let c=typeof a.text=="string"?a.text:"";if(c){let m=c.length>200?c.substring(0,200)+"\u2026":c;this.parent.pushConsoleMessage({type:"tool-result",text:m,expandableContent:c.length>200?c:void 0,rawData:{tool_use_id:o,type:"sub-agent-prompt",text:c},parentAgentId:o}),i=!0}}}return i}static isLiveCcSessionStatus(e){return e==="running"||e==="waiting-input"||e==="starting"}static buildSystemEventBrief(e){switch(e.subtype){case"init":{let s=typeof e.data.cwd=="string"?e.data.cwd:"",n=typeof e.data.model=="string"?e.data.model:"",t=["init"];return s&&t.push(s),n&&t.push(n),t.join(" \xB7 ")}case"task_updated":{let s=e.data.patch,n=s&&typeof s=="object"&&typeof s.status=="string"?s.status:"";return n?`task ${n}`:"task updated"}case"task_notification":{let s=typeof e.data.status=="string"?e.data.status:"";return s?`task ${s}`:"task notification"}default:return e.subtype||"system"}}static buildEditExpandableContent(e){if(!e||typeof e!="object")return;let s=e,n=s.old_string,t=s.new_string;if(typeof n!="string"||typeof t!="string")return;let o=500,i=n.length>o?n.substring(0,o)+"\u2026":n,r=t.length>o?t.substring(0,o)+"\u2026":t;return JSON.stringify({old:i,new:r})}static summarizeToolInput(e){if(typeof e=="string")return e.length>120?e.substring(0,120)+"\u2026":e;if(e&&typeof e=="object"){let s=e,n=s.file_path??s.path,t=s.command,o=s.pattern;if(typeof n=="string")return n;if(typeof t=="string")return t.length>120?t.substring(0,120)+"\u2026":t;if(typeof o=="string")return o}return""}accumulateUsage(e){let s=e.usage,n=typeof e.cost_usd=="number"?e.cost_usd:0,t=0,o=0;if(s&&typeof s=="object"){let r=s;t=typeof r.input_tokens=="number"?r.input_tokens:typeof r.promptTokens=="number"?r.promptTokens:0,o=typeof r.output_tokens=="number"?r.output_tokens:typeof r.completionTokens=="number"?r.completionTokens:0}let i=this.parent.sessionUsage_$();this.parent.sessionUsage_$.set({promptTokens:i.promptTokens+t,completionTokens:i.completionTokens+o,totalTokens:i.totalTokens+t+o,costUsd:i.costUsd+n})}static \u0275fac=function(s){return new(s||u)};static \u0275prov=A({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})();var ne=(()=>{class u{sessions_$=p([]);sessionsLoading_$=p(!1);sessionsLoadError_$=p(null);selectedSession_$=p(null);selectedSessionLoading_$=p(!1);selectedSessionEvents_$=p([]);liveOutput_$=p([]);liveStderrLines_$=p(new Set);consoleMessages_$=p([]);assembledMessages_$=p([]);assembledMessagesHasMore_$=p(!1);isLoadingOlderMessages_$=p(!1);assembledMessagesLoaded_$=p(!1);lastStatusUpdate_$=p(null);sessionUsage_$=p({promptTokens:0,completionTokens:0,totalTokens:0,costUsd:0});rateLimitInfo_$=p(null);activeSessionId_$=p("");ccSession_AS=v(R);extSessionMsg_AS=v(q);globalError_CS=v(L);socket_CS=v(P);ngZone=v(T);peiContext_DS=v(U);socketEventHandler_CS=v(x);eventSubscription=null;reconnectSubscription=null;lastKnownEventSequence=-1;static SESSION_EVENTS_POLL_INTERVAL_MS=5*S.second;sessionEventsPollHandle=null;isSessionEventsPollInFlight=!1;constructor(){this.socketEventHandler_CS.init(this),this.eventSubscription=this.socket_CS.event$.subscribe(e=>{this.ngZone.run(()=>{this.socketEventHandler_CS.handleSocketEvent(e,{selectedCcapId:this.peiContext_DS.activeCcapId_$(),globalErrorShowError:(s,n)=>{this.globalError_CS.showError(s,n)}})})}),this.reconnectSubscription=this.socket_CS.connected$.subscribe(e=>{if(!e)return;let s=this.activeSessionId_$();s&&(this.socket_CS.emit("cc-session:subscribe",{sessionId:s}),this.loadAssembledMessages({sessionId:s}).catch(()=>{}),this.loadSessionDetail({sessionId:s}).catch(()=>{})),this.loadSessions().catch(()=>{}),this.backfillMissedEvents()})}ngOnDestroy(){this.stopSessionEventsPolling(),this.eventSubscription&&(this.eventSubscription.unsubscribe(),this.eventSubscription=null),this.reconnectSubscription&&(this.reconnectSubscription.unsubscribe(),this.reconnectSubscription=null)}showGlobalError(e,s){this.globalError_CS.showError(e,s)}getLastKnownEventSequence(){return this.lastKnownEventSequence}setLastKnownEventSequence(e){this.lastKnownEventSequence=e}evaluateSessionEventsPolling(){let e=this.activeSessionId_$(),s=this.resolveActiveSessionStatusForEventsPolling();!!(e&&this.lastKnownEventSequence>=0&&s!=null&&x.isLiveCcSessionStatus(s))?this.ensureSessionEventsPollingStarted():this.stopSessionEventsPolling()}loadSessions(e){return d(this,null,function*(){this.sessionsLoading_$.set(!0),this.sessionsLoadError_$.set(null);try{let n=[...(yield this.ccSession_AS.listSessions({status:e?.status,workspacePath:e?.workspacePath,includeArchived:e?.includeArchived})).sessions].sort((t,o)=>{let i=t.lastActivityAt?new Date(t.lastActivityAt).getTime():0;return(o.lastActivityAt?new Date(o.lastActivityAt).getTime():0)-i});this.sessions_$.set(n)}catch(s){this.sessionsLoadError_$.set(s)}finally{this.sessionsLoading_$.set(!1)}})}loadPersistedRateLimitState(e){return d(this,null,function*(){let s=e.ccapId?.trim()??"";if(s)try{let n=yield this.ccSession_AS.getRateLimitState({ccapId:s});this.mergePersistedRateLimitState(n.items)}catch(n){S.DyFM_Log.warn(`ClaudeCode_DS | loadPersistedRateLimitState failed (non-blocking) | ccapId: ${s} | ${n instanceof Error?n.message:String(n)}`)}})}mergePersistedRateLimitState(e){if(this.rateLimitInfo_$()!==null)return;let s=O.mapServerItemsToClientInfo(e);s!==null&&this.rateLimitInfo_$.set(s)}loadSessionDetail(e){return d(this,null,function*(){this.selectedSessionLoading_$.set(!0);try{let s=yield this.ccSession_AS.getSession({sessionId:e.sessionId}),n=this.activeSessionId_$();if(n&&n!==e.sessionId){S.DyFM_Log.info(`CCAP_CcSession_DS | loadSessionDetail stale response \u2014 discarded | requestedSessionId: ${e.sessionId} | currentActiveSessionId: ${n}`);return}this.selectedSession_$.set(s)}catch(s){let n=this.activeSessionId_$();if(n&&n!==e.sessionId)return;this.selectedSession_$.set(null);let t=s instanceof Error?s.message:"Failed to load session details";this.pushConsoleMessage({type:"error",text:`Load session failed: ${t}`})}finally{this.selectedSessionLoading_$.set(!1),this.evaluateSessionEventsPolling()}})}loadSessionEvents(e){return d(this,null,function*(){try{let s=yield this.ccSession_AS.getSessionEvents({sessionId:e.sessionId,eventType:e.eventType,limit:e.limit??500,latest:!0}),n=this.activeSessionId_$();if(n&&n!==e.sessionId){S.DyFM_Log.info(`CCAP_CcSession_DS | loadSessionEvents stale response \u2014 discarded | requestedSessionId: ${e.sessionId} | currentActiveSessionId: ${n}`);return}this.selectedSessionEvents_$.set(s.events),this.updateLastKnownSequence(s.events);for(let t of s.events)this.socketEventHandler_CS.pushConsoleMessageFromEvent(t,!1,(o,i)=>{this.globalError_CS.showError(o,i)});this.loadAssembledMessages({sessionId:e.sessionId}).catch(()=>{})}catch{let n=this.activeSessionId_$();if(n&&n!==e.sessionId)return;this.selectedSessionEvents_$.set([])}finally{this.evaluateSessionEventsPolling()}})}createSession(e){return d(this,null,function*(){try{let s=yield this.ccSession_AS.createSession(e),n=String(s.session.sessionId||"");return yield this.loadSessions(),n}catch(s){throw this.pushConsoleMessage({type:"error",text:`Create session failed: ${y.getErrorMessageForDisplay(s)}`}),s}})}sendPrompt(e){return d(this,null,function*(){let s=e.attachments?.filter(n=>n.isImage&&!!n.base64).map(n=>`data:${n.mimeType};base64,${n.base64}`);this.pushConsoleMessage({type:"prompt",text:e.content,imageDataUrls:s?.length?s:void 0});try{let n=yield this.ccSession_AS.sendPrompt(e);n.relayed&&(n.targetOnline?this.pushConsoleMessage({type:"info",text:`Prompt relayed to remote instance (task: ${n.taskId?.substring(0,8)}\u2026)`}):this.pushConsoleMessage({type:"error",text:`\u26A0 A t\xE1voli instance jelenleg offline \u2014 a prompt queue-ban v\xE1rakozik (task: ${n.taskId?.substring(0,8)}\u2026) \xE9s csak akkor k\xE9zbes\xEDt\u0151dik, ha a target instance online lesz. Ellen\u0151rizd, hogy mindk\xE9t instance fut, \xE9s a Settings \u2192 Cluster sharedSecret azonos.`})),this.evaluateSessionEventsPolling()}catch(n){throw this.pushConsoleMessage({type:"error",text:`Send failed: ${y.getErrorMessageForDisplay(n)}`}),this.globalError_CS.showError(n,"CC Session sendPrompt"),n}})}forkSession(e){return d(this,null,function*(){try{let s=yield this.ccSession_AS.forkSession({sessionId:e.sessionId,label:e.label}),n=String(s.session.sessionId||"");return yield this.loadSessions(),n}catch(s){throw this.pushConsoleMessage({type:"error",text:`Fork session failed: ${y.getErrorMessageForDisplay(s)}`}),s}})}resumeSession(e){return d(this,null,function*(){try{let s=yield this.ccSession_AS.resumeSession(e);s.relayed&&this.pushConsoleMessage({type:"info",text:s.targetOnline?"Resume relayed to remote instance":"Resume queued for offline remote instance"}),yield this.loadSessions()}catch(s){throw this.pushConsoleMessage({type:"error",text:`Resume failed: ${y.getErrorMessageForDisplay(s)}`}),s}})}stopExecution(e){return d(this,null,function*(){try{let s=yield this.ccSession_AS.stopExecution(e);if(s.relayed){this.pushSystemAssembledMessage({sessionId:e.sessionId,text:s.targetOnline?"Stop execution relayed to remote instance":"Stop execution queued for offline remote instance",role:"info"});return}let n=s.message||"Execution stopped";this.pushSystemAssembledMessage({sessionId:e.sessionId,text:n,role:"info"})}catch(s){throw this.pushSystemAssembledMessage({sessionId:e.sessionId,text:`Stop execution failed: ${y.getErrorMessageForDisplay(s)}`,role:"error"}),s}})}terminateSession(e){return d(this,null,function*(){try{let s=yield this.ccSession_AS.terminateSession(e);s.relayed?this.pushSystemAssembledMessage({sessionId:e.sessionId,text:s.targetOnline?"Terminate relayed to remote instance":"Terminate queued for offline remote instance",role:"info"}):this.pushSystemAssembledMessage({sessionId:e.sessionId,text:"Session terminated",role:"status"}),yield this.loadSessions()}catch(s){throw this.pushSystemAssembledMessage({sessionId:e.sessionId,text:`Terminate failed: ${y.getErrorMessageForDisplay(s)}`,role:"error"}),s}})}restartRunner(e){return d(this,null,function*(){try{let s=yield this.ccSession_AS.restartRunner(e);this.pushSystemAssembledMessage({sessionId:e.sessionId,text:`Runner restarted (new terminalId: ${s.newTerminalId.slice(0,8)}\u2026). New terminal window should open shortly.`,role:"info"})}catch(s){throw this.pushSystemAssembledMessage({sessionId:e.sessionId,text:`Runner restart failed: ${y.getErrorMessageForDisplay(s)}`,role:"error"}),s}})}setSessionArchived(e){return d(this,null,function*(){try{yield this.ccSession_AS.setSessionArchived(e),yield this.loadSessions()}catch(s){throw this.pushConsoleMessage({type:"error",text:`Archive failed: ${y.getErrorMessageForDisplay(s)}`}),s}})}updateSessionConfig(e){return d(this,null,function*(){try{yield this.ccSession_AS.updateSessionConfig(e);let s=this.selectedSession_$();if(s?.session.sessionId===e.sessionId){let n=h({},s.session);e.label!=null&&(n.label=e.label),e.mode!=null&&(n.mode=e.mode),e.permissionPolicy!=null&&(n.permissionPolicy=e.permissionPolicy),e.reasoningEffort!=null&&(n.reasoningEffort=e.reasoningEffort),e.model!=null&&(n.model=e.model),e.isDebugMode!=null&&(n.isDebugMode=e.isDebugMode),this.selectedSession_$.set(f(h({},s),{session:n}))}if(e.label!=null){let n=this.sessions_$(),t=n.findIndex(o=>o.sessionId===e.sessionId);if(t>=0){let o=[...n];o[t]=f(h({},o[t]),{label:e.label}),this.sessions_$.set(o)}}}catch(s){throw this.pushConsoleMessage({type:"error",text:`Config update failed: ${y.getErrorMessageForDisplay(s)}`}),s}})}setActiveSessionId(e){let s=this.activeSessionId_$();s!==e&&this.stopSessionEventsPolling(),s&&s!==e&&this.socket_CS.emit("cc-session:unsubscribe",{sessionId:s}),this.activeSessionId_$.set(e),e&&this.socket_CS.emit("cc-session:subscribe",{sessionId:e})}clearLiveOutput(){this.stopSessionEventsPolling(),this.liveOutput_$.set([]),this.liveStderrLines_$.set(new Set),this.consoleMessages_$.set([]),this.assembledMessages_$.set([]),this.assembledMessagesHasMore_$.set(!1),this.isLoadingOlderMessages_$.set(!1),this.assembledMessagesLoaded_$.set(!1),this.selectedSession_$.set(null),this.selectedSessionEvents_$.set([]),this.lastStatusUpdate_$.set(null),this.sessionUsage_$.set({promptTokens:0,completionTokens:0,totalTokens:0,costUsd:0}),this.lastKnownEventSequence=-1,this.socketEventHandler_CS.resetTrackingState()}pushConsoleMessage(e){let s=e.type==="assistant"||e.type==="prompt"?e.text.trim():e.text,n={listKey:e.listKey??this.allocateConsoleListKey(),type:e.type,text:s,timestamp:e.timestamp??new Date().toISOString(),isStatus:e.isStatus??!1,expandableContent:e.expandableContent,rawData:e.rawData,subtype:e.subtype,parentAgentId:e.parentAgentId,imageDataUrls:e.imageDataUrls},t=this.consoleMessages_$();this.consoleMessages_$.set([...t,n])}loadAssembledMessages(e){return d(this,null,function*(){try{let s=yield this.extSessionMsg_AS.getMessages({sessionId:e.sessionId,latest:!0}),n=this.activeSessionId_$();if(n&&n!==e.sessionId){S.DyFM_Log.info(`CCAP_CcSession_DS | loadAssembledMessages stale \u2014 discarded | requestedSessionId: ${e.sessionId} | currentActiveSessionId: ${n} | restMessageCount: ${s.messages.length}`);return}let t=this.assembledMessages_$(),o=new Set(s.messages.map(r=>r.messageKey).filter(r=>typeof r=="string"&&r.length>0)),i=t.filter(r=>!o.has(r.messageKey));this.assembledMessages_$.set(_.sortAsc([...s.messages,...i])),this.assembledMessagesHasMore_$.set(s.hasMore)}catch(s){S.DyFM_Log.error(`CCAP_CcSession_DS | loadAssembledMessages failed | sessionId: ${e.sessionId}`,s)}finally{this.assembledMessagesLoaded_$.set(!0)}})}loadOlderAssembledMessages(e){return d(this,null,function*(){if(this.isLoadingOlderMessages_$()||!this.assembledMessagesHasMore_$())return;let s=this.assembledMessages_$();if(!s.length)return;let n=s.reduce((t,o)=>(o.sequence??0)<t?o.sequence??0:t,s[0].sequence??0);this.isLoadingOlderMessages_$.set(!0);try{let t=yield this.extSessionMsg_AS.getMessages({sessionId:e.sessionId,beforeSequence:n,limit:e.limit??50});t.messages.length&&this.assembledMessages_$.set(_.sortAsc([...t.messages,...s])),this.assembledMessagesHasMore_$.set(t.hasMore)}catch(t){S.DyFM_Log.error(`CCAP_CcSession_DS | loadOlderAssembledMessages failed | sessionId: ${e.sessionId}`,t)}finally{this.isLoadingOlderMessages_$.set(!1)}})}pushSystemAssembledMessage(e){let s=this.assembledMessages_$(),n=s.length?s.reduce((o,i)=>(i.sequence??0)>o?i.sequence??0:o,0):0,t={messageKey:`sys-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,sessionId:e.sessionId,sessionType:"cc",messageRole:e.role,bodyText:e.text,timestamp:new Date().toISOString(),sequence:n+1};this.assembledMessages_$.set(_.sortAsc([...s,t])),this.pushConsoleMessage({type:e.role==="error"?"error":e.role==="status"?"status":"info",text:e.text,isStatus:e.role==="status"})}allocateConsoleListKey(){return globalThis.crypto.randomUUID()}pullEventsSinceLastKnownSequence(e){return d(this,null,function*(){let s=this.activeSessionId_$();if(!(!s||this.lastKnownEventSequence<0))try{let t=(yield this.ccSession_AS.getSessionEvents({sessionId:s,sinceSequence:this.lastKnownEventSequence})).events;if(!t.length)return;this.ngZone.run(()=>{let o=this.activeSessionId_$();if(o!==s){S.DyFM_Log.info(`CCAP_CcSession_DS | pull(${e}) stale \u2014 discarded | requestedSessionId: ${s} | currentActiveSessionId: ${o} | newEventCount: ${t.length}`);return}let i=this.selectedSessionEvents_$();this.selectedSessionEvents_$.set([...i,...t]);for(let r of t)this.socketEventHandler_CS.pushConsoleMessageFromEvent(r,!0,(a,l)=>{this.globalError_CS.showError(a,l)});this.updateLastKnownSequence(t)})}catch(n){let t=e==="poll"?"session events poll failed":"backfill failed";S.DyFM_Log.warn(`CCAP_CcSession_DS | ${t}`,n)}})}backfillMissedEvents(){return d(this,null,function*(){yield this.pullEventsSinceLastKnownSequence("backfill")})}updateLastKnownSequence(e){for(let s of e)s.sequence>this.lastKnownEventSequence&&(this.lastKnownEventSequence=s.sequence)}resolveActiveSessionStatusForEventsPolling(){let e=this.activeSessionId_$();if(!e)return null;let s=this.selectedSession_$();if(s?.session.sessionId===e)return s.session.status;let n=this.lastStatusUpdate_$();return n?.sessionId===e?n.status:this.sessions_$().find(o=>o.sessionId===e)?.status??null}ensureSessionEventsPollingStarted(){this.sessionEventsPollHandle===null&&(this.sessionEventsPollHandle=setInterval(()=>{this.onSessionEventsPollTick()},u.SESSION_EVENTS_POLL_INTERVAL_MS))}stopSessionEventsPolling(){this.sessionEventsPollHandle!==null&&(clearInterval(this.sessionEventsPollHandle),this.sessionEventsPollHandle=null),this.isSessionEventsPollInFlight=!1}onSessionEventsPollTick(){return d(this,null,function*(){if(!this.isSessionEventsPollInFlight){this.isSessionEventsPollInFlight=!0;try{yield this.pullEventsSinceLastKnownSequence("poll");let e=this.activeSessionId_$();e&&(yield this.loadAssembledMessages({sessionId:e}))}finally{this.isSessionEventsPollInFlight=!1}}})}static \u0275fac=function(s){return new(s||u)};static \u0275prov=A({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})();export{ne as a};
|
|
3
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
//# sourceMappingURL=chunk-HVY3GMOZ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{I as o,p as f}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{I as o,p as f}from"./chunk-KPYMFKWR.js";import{C as s,aa as i,h as m,hb as n,k as l,p as h,xb as p,y as r}from"./chunk-TBMJSIBB.js";var c=m(f());var u=(()=>{class e{baseUrl=`${o.api.baseUrl}/mobile`;http=s(p);getStatus(){return h(this.http.get(`${this.baseUrl}/status`))}static \u0275fac=function(a){return new(a||e)};static \u0275prov=r({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var C=6*60*60*1e3;function d(){return typeof window.Capacitor<"u"&&window.Capacitor.isNativePlatform?.()===!0}var y=(()=>{class e{mobile_AS=s(u);latestStatus_$=i(null);isChecking_$=i(!1);lastCheckedAt_$=i(null);lastCheckError_$=i(null);pendingCheckPromise=null;updateAvailable_$=n(()=>{let t=this.latestStatus_$();return!t||!t.available||!t.packageVersion?!1:t.packageVersion!==o.version});latestPackageVersion_$=n(()=>{let t=this.latestStatus_$();return t?.packageVersion??t?.version??""});intervalId=null;constructor(){d()&&this.startPeriodicCheck()}startPeriodicCheck(){this.checkNow(),this.intervalId=setInterval(()=>{this.checkNow()},C)}checkNow(){return this.pendingCheckPromise?this.pendingCheckPromise:(this.pendingCheckPromise=this.performCheck(),this.pendingCheckPromise)}performCheck(){return l(this,null,function*(){this.isChecking_$.set(!0),this.lastCheckError_$.set(null);try{let t=yield this.mobile_AS.getStatus();this.latestStatus_$.set(t),this.lastCheckedAt_$.set(new Date)}catch(t){c.DyFM_Error.logSimple("CCAP_AppVersionCheck | checkNow failed",t),this.lastCheckError_$.set(c.DyFM_Error.getErrorMessage(t)||"Verzi\xF3 ellen\u0151rz\xE9s sikertelen."),this.lastCheckedAt_$.set(new Date)}finally{this.isChecking_$.set(!1),this.pendingCheckPromise=null}})}static \u0275fac=function(a){return new(a||e)};static \u0275prov=r({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();export{u as a,y as b};
|
|
2
|
+
//# sourceMappingURL=chunk-I5ISS4IO.js.map
|