@futdevpro/ccap 1.1.3020 → 1.1.3029

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/client-dist/{agent-instances.module-QJYTOFVD.js → agent-instances.module-ZEDAGCTO.js} +2 -2
  2. package/client-dist/{ca.module-V6FHCYQZ.js → ca.module-PGILVKST.js} +2 -2
  3. package/client-dist/{cc-usage-dashboard.component-KKBXRYK2.js → cc-usage-dashboard.component-HW55BF7X.js} +2 -2
  4. package/client-dist/{cc.module-TWMW5L4N.js → cc.module-FWD5FAE2.js} +2 -2
  5. package/client-dist/{chunk-MNSQBWJT.js → chunk-2E5MEUC6.js} +2 -2
  6. package/client-dist/{chunk-IQY4KZS6.js → chunk-2HOSTFZM.js} +2 -2
  7. package/client-dist/{chunk-EHUUQ4OK.js → chunk-2QKSYFBS.js} +2 -2
  8. package/client-dist/{chunk-BXG7G2X6.js → chunk-3COYWANK.js} +2 -2
  9. package/client-dist/{chunk-6NBGNC3H.js → chunk-3CSKYOXL.js} +2 -2
  10. package/client-dist/{chunk-RKSXVMK3.js → chunk-3LQ5ZNQK.js} +2 -2
  11. package/client-dist/{chunk-2DVBHA4Z.js → chunk-4AMEHBWO.js} +2 -2
  12. package/client-dist/{chunk-OI272NTT.js → chunk-57RXVP5S.js} +2 -2
  13. package/client-dist/{chunk-64BJE4DK.js → chunk-5WWTZ2LQ.js} +2 -2
  14. package/client-dist/{chunk-FWKJUH2U.js → chunk-6NKAOL4H.js} +2 -2
  15. package/client-dist/{chunk-LFUANSXL.js → chunk-7O5Q7ZE5.js} +2 -2
  16. package/client-dist/{chunk-6AZPCJZH.js → chunk-AFMSZ2A4.js} +2 -2
  17. package/client-dist/{chunk-V675ASMV.js → chunk-AMUBZLYY.js} +2 -2
  18. package/client-dist/{chunk-XVDUJ377.js → chunk-ATCDMHJZ.js} +2 -2
  19. package/client-dist/{chunk-KCRKTCBJ.js → chunk-B5OAVRIE.js} +2 -2
  20. package/client-dist/{chunk-BHLFSRHB.js → chunk-CPT4H4CB.js} +2 -2
  21. package/client-dist/{chunk-6YEOZ4N2.js → chunk-E4MCYQLX.js} +2 -2
  22. package/client-dist/{chunk-23CFTV2G.js → chunk-EPQSURW3.js} +3 -3
  23. package/client-dist/{chunk-23CFTV2G.js.map → chunk-EPQSURW3.js.map} +4 -4
  24. package/client-dist/{chunk-LPEBEZLT.js → chunk-F7CCYE3D.js} +2 -2
  25. package/client-dist/{chunk-AMWUKLOU.js → chunk-F7EMYMLE.js} +2 -2
  26. package/client-dist/{chunk-CZCAVIJH.js → chunk-FES32KDN.js} +2 -2
  27. package/client-dist/{chunk-Y3RRN6DW.js → chunk-GC7C3V7Z.js} +2 -2
  28. package/client-dist/{chunk-BB7FGQZ6.js → chunk-HOPBJ2PM.js} +2 -2
  29. package/client-dist/{chunk-4WXLIFZO.js → chunk-ISSG57FN.js} +2 -2
  30. package/client-dist/{chunk-NU2KNJJR.js → chunk-JC5YKRA2.js} +2 -2
  31. package/client-dist/{chunk-UTLVTJDS.js → chunk-JIVE4XG6.js} +2 -2
  32. package/client-dist/{chunk-7ZGELPVY.js → chunk-K5ULMCZN.js} +2 -2
  33. package/client-dist/{chunk-3RSQSP4C.js → chunk-KKBOPOS7.js} +2 -2
  34. package/client-dist/{chunk-ML4DFCM7.js → chunk-KMDWVDZN.js} +2 -2
  35. package/client-dist/{chunk-H72IPZYU.js → chunk-KMQOD27X.js} +2 -2
  36. package/client-dist/{chunk-EDVIWTET.js → chunk-KQ62B5RJ.js} +2 -2
  37. package/client-dist/{chunk-EDVIWTET.js.map → chunk-KQ62B5RJ.js.map} +1 -1
  38. package/client-dist/{chunk-EZVZVLJ5.js → chunk-KRDY4QE4.js} +2 -2
  39. package/client-dist/{chunk-SXNYAZ4X.js → chunk-KVLIWG6J.js} +2 -2
  40. package/client-dist/{chunk-HLDXMJXQ.js → chunk-LFUSTUZT.js} +2 -2
  41. package/client-dist/{chunk-3AX4B4S2.js → chunk-LYGC4TVK.js} +2 -2
  42. package/client-dist/{chunk-SHV4JGOU.js → chunk-NMWXUTFQ.js} +2 -2
  43. package/client-dist/{chunk-DCWGOTWA.js → chunk-ODNT6WDP.js} +2 -2
  44. package/client-dist/{chunk-W7SAAPHP.js → chunk-Q4MVYEES.js} +2 -2
  45. package/client-dist/{chunk-T2GOFY7H.js → chunk-Q5KLVNNE.js} +2 -2
  46. package/client-dist/{chunk-C7INBKQK.js → chunk-QMPZ46LB.js} +2 -2
  47. package/client-dist/{chunk-DNRMCCHG.js → chunk-QUFSDVHR.js} +2 -2
  48. package/client-dist/{chunk-QV3SDDFJ.js → chunk-RCRXEUZM.js} +2 -2
  49. package/client-dist/{chunk-CXIYKPBA.js → chunk-RMJTPSHP.js} +2 -2
  50. package/client-dist/{chunk-OXDWH3A2.js → chunk-RWNN5KRV.js} +2 -2
  51. package/client-dist/{chunk-JUK4XI7S.js → chunk-RZY5FFKY.js} +2 -2
  52. package/client-dist/{chunk-JUK4XI7S.js.map → chunk-RZY5FFKY.js.map} +1 -1
  53. package/client-dist/{chunk-W2SLMCXE.js → chunk-SREB74HR.js} +2 -2
  54. package/client-dist/{chunk-67F7P6KL.js → chunk-TLAPOIAO.js} +2 -2
  55. package/client-dist/{chunk-FQHJM7LJ.js → chunk-TTI6NQVT.js} +2 -2
  56. package/client-dist/{chunk-QPQEQKWT.js → chunk-UHRVQGRT.js} +2 -2
  57. package/client-dist/{chunk-PEGIXIM2.js → chunk-W36ACK74.js} +2 -2
  58. package/client-dist/{chunk-LDJGPMMN.js → chunk-W3AWLRVB.js} +2 -2
  59. package/client-dist/{chunk-MAA7SWVG.js → chunk-WETMMHZO.js} +2 -2
  60. package/client-dist/{chunk-H3DS6OH7.js → chunk-WF6HPH3A.js} +2 -2
  61. package/client-dist/{chunk-YQD6EY4L.js → chunk-WIWLBRQI.js} +2 -2
  62. package/client-dist/{chunk-H4ZDV4Z3.js → chunk-ZBEUOVWM.js} +2 -2
  63. package/client-dist/{chunk-YGFCHNXR.js → chunk-ZYHUZVCB.js} +2 -2
  64. package/client-dist/{consultant.module-LQMXZENA.js → consultant.module-IBY4ZJRF.js} +2 -2
  65. package/client-dist/{consultant.module-LQMXZENA.js.map → consultant.module-IBY4ZJRF.js.map} +2 -2
  66. package/client-dist/{crd.module-WGQKKE3M.js → crd.module-XJ435KXN.js} +2 -2
  67. package/client-dist/{dashboard.module-C4WZIP4Y.js → dashboard.module-NUTWD5IC.js} +2 -2
  68. package/client-dist/{do.module-CAPIRHU6.js → do.module-C2QZR75Z.js} +2 -2
  69. package/client-dist/{document-library.module-IPYWYSAQ.js → document-library.module-OGNPLK6G.js} +2 -2
  70. package/client-dist/{embedding-eval.module-3QA5HRDF.js → embedding-eval.module-66JRL7MA.js} +2 -2
  71. package/client-dist/{embedding-registry.module-LM26SUUJ.js → embedding-registry.module-JHKAP6KF.js} +2 -2
  72. package/client-dist/{err.module-IZTPG7LQ.js → err.module-TK43XPZB.js} +2 -2
  73. package/client-dist/{feedback.module-MX4GLRZK.js → feedback.module-7R5EBLO4.js} +2 -2
  74. package/client-dist/{host-runtime-mcp.module-6KK7IW7M.js → host-runtime-mcp.module-SUOQT2ZI.js} +2 -2
  75. package/client-dist/index.html +1 -1
  76. package/client-dist/{live-dev-pipeline.module-KHZRQJ4E.js → live-dev-pipeline.module-CHSRLAND.js} +2 -2
  77. package/client-dist/{logs.module-GCB2VJNV.js → logs.module-MC4V6CB2.js} +2 -2
  78. package/client-dist/{main-ZW4FR256.js → main-RS7R4GTV.js} +3 -3
  79. package/client-dist/{master-control-remote-poc.module-GKP2IF4U.js → master-control-remote-poc.module-SREH7RYL.js} +2 -2
  80. package/client-dist/{mobile-app.module-JOXNLUM2.js → mobile-app.module-2A5OJQ46.js} +2 -2
  81. package/client-dist/{model-registry.module-KRFLXT23.js → model-registry.module-XIOF6NIA.js} +2 -2
  82. package/client-dist/{oc.module-ZQV6ELSQ.js → oc.module-MVIAO2U2.js} +2 -2
  83. package/client-dist/{orc.module-BOS7IKQO.js → orc.module-T4VFJF4P.js} +2 -2
  84. package/client-dist/{project-management.module-54PADR43.js → project-management.module-LRYIMGFZ.js} +2 -2
  85. package/client-dist/project-source-routed.module-FVGM4IBL.js +2 -0
  86. package/client-dist/{scheduler.module-Z2HR2ZZQ.js → scheduler.module-5VRTICQ7.js} +2 -2
  87. package/client-dist/{session.module-HYDKLM4I.js → session.module-N3QOIA3B.js} +2 -2
  88. package/client-dist/{set.module-MY7SOS6L.js → set.module-3LY5JECS.js} +2 -2
  89. package/client-dist/{setup.module-JEOJCKS5.js → setup.module-IVQJMJMO.js} +2 -2
  90. package/client-dist/{terminals.module-SFUXL6IK.js → terminals.module-TDVJE7TG.js} +2 -2
  91. package/client-dist/{voice-notes-poc.module-T6WAIRNR.js → voice-notes-poc.module-KD4FX6MQ.js} +2 -2
  92. package/client-dist/{wfs.module-SBGLOPUM.js → wfs.module-7FFTZILZ.js} +2 -2
  93. package/package.json +1 -1
  94. package/client-dist/project-source-routed.module-XPZTKJ4O.js +0 -2
  95. /package/client-dist/{agent-instances.module-QJYTOFVD.js.map → agent-instances.module-ZEDAGCTO.js.map} +0 -0
  96. /package/client-dist/{ca.module-V6FHCYQZ.js.map → ca.module-PGILVKST.js.map} +0 -0
  97. /package/client-dist/{cc-usage-dashboard.component-KKBXRYK2.js.map → cc-usage-dashboard.component-HW55BF7X.js.map} +0 -0
  98. /package/client-dist/{cc.module-TWMW5L4N.js.map → cc.module-FWD5FAE2.js.map} +0 -0
  99. /package/client-dist/{chunk-MNSQBWJT.js.map → chunk-2E5MEUC6.js.map} +0 -0
  100. /package/client-dist/{chunk-IQY4KZS6.js.map → chunk-2HOSTFZM.js.map} +0 -0
  101. /package/client-dist/{chunk-EHUUQ4OK.js.map → chunk-2QKSYFBS.js.map} +0 -0
  102. /package/client-dist/{chunk-BXG7G2X6.js.map → chunk-3COYWANK.js.map} +0 -0
  103. /package/client-dist/{chunk-6NBGNC3H.js.map → chunk-3CSKYOXL.js.map} +0 -0
  104. /package/client-dist/{chunk-RKSXVMK3.js.map → chunk-3LQ5ZNQK.js.map} +0 -0
  105. /package/client-dist/{chunk-2DVBHA4Z.js.map → chunk-4AMEHBWO.js.map} +0 -0
  106. /package/client-dist/{chunk-OI272NTT.js.map → chunk-57RXVP5S.js.map} +0 -0
  107. /package/client-dist/{chunk-64BJE4DK.js.map → chunk-5WWTZ2LQ.js.map} +0 -0
  108. /package/client-dist/{chunk-FWKJUH2U.js.map → chunk-6NKAOL4H.js.map} +0 -0
  109. /package/client-dist/{chunk-LFUANSXL.js.map → chunk-7O5Q7ZE5.js.map} +0 -0
  110. /package/client-dist/{chunk-6AZPCJZH.js.map → chunk-AFMSZ2A4.js.map} +0 -0
  111. /package/client-dist/{chunk-V675ASMV.js.map → chunk-AMUBZLYY.js.map} +0 -0
  112. /package/client-dist/{chunk-XVDUJ377.js.map → chunk-ATCDMHJZ.js.map} +0 -0
  113. /package/client-dist/{chunk-KCRKTCBJ.js.map → chunk-B5OAVRIE.js.map} +0 -0
  114. /package/client-dist/{chunk-BHLFSRHB.js.map → chunk-CPT4H4CB.js.map} +0 -0
  115. /package/client-dist/{chunk-6YEOZ4N2.js.map → chunk-E4MCYQLX.js.map} +0 -0
  116. /package/client-dist/{chunk-LPEBEZLT.js.map → chunk-F7CCYE3D.js.map} +0 -0
  117. /package/client-dist/{chunk-AMWUKLOU.js.map → chunk-F7EMYMLE.js.map} +0 -0
  118. /package/client-dist/{chunk-CZCAVIJH.js.map → chunk-FES32KDN.js.map} +0 -0
  119. /package/client-dist/{chunk-Y3RRN6DW.js.map → chunk-GC7C3V7Z.js.map} +0 -0
  120. /package/client-dist/{chunk-BB7FGQZ6.js.map → chunk-HOPBJ2PM.js.map} +0 -0
  121. /package/client-dist/{chunk-4WXLIFZO.js.map → chunk-ISSG57FN.js.map} +0 -0
  122. /package/client-dist/{chunk-NU2KNJJR.js.map → chunk-JC5YKRA2.js.map} +0 -0
  123. /package/client-dist/{chunk-UTLVTJDS.js.map → chunk-JIVE4XG6.js.map} +0 -0
  124. /package/client-dist/{chunk-7ZGELPVY.js.map → chunk-K5ULMCZN.js.map} +0 -0
  125. /package/client-dist/{chunk-3RSQSP4C.js.map → chunk-KKBOPOS7.js.map} +0 -0
  126. /package/client-dist/{chunk-ML4DFCM7.js.map → chunk-KMDWVDZN.js.map} +0 -0
  127. /package/client-dist/{chunk-H72IPZYU.js.map → chunk-KMQOD27X.js.map} +0 -0
  128. /package/client-dist/{chunk-EZVZVLJ5.js.map → chunk-KRDY4QE4.js.map} +0 -0
  129. /package/client-dist/{chunk-SXNYAZ4X.js.map → chunk-KVLIWG6J.js.map} +0 -0
  130. /package/client-dist/{chunk-HLDXMJXQ.js.map → chunk-LFUSTUZT.js.map} +0 -0
  131. /package/client-dist/{chunk-3AX4B4S2.js.map → chunk-LYGC4TVK.js.map} +0 -0
  132. /package/client-dist/{chunk-SHV4JGOU.js.map → chunk-NMWXUTFQ.js.map} +0 -0
  133. /package/client-dist/{chunk-DCWGOTWA.js.map → chunk-ODNT6WDP.js.map} +0 -0
  134. /package/client-dist/{chunk-W7SAAPHP.js.map → chunk-Q4MVYEES.js.map} +0 -0
  135. /package/client-dist/{chunk-T2GOFY7H.js.map → chunk-Q5KLVNNE.js.map} +0 -0
  136. /package/client-dist/{chunk-C7INBKQK.js.map → chunk-QMPZ46LB.js.map} +0 -0
  137. /package/client-dist/{chunk-DNRMCCHG.js.map → chunk-QUFSDVHR.js.map} +0 -0
  138. /package/client-dist/{chunk-QV3SDDFJ.js.map → chunk-RCRXEUZM.js.map} +0 -0
  139. /package/client-dist/{chunk-CXIYKPBA.js.map → chunk-RMJTPSHP.js.map} +0 -0
  140. /package/client-dist/{chunk-OXDWH3A2.js.map → chunk-RWNN5KRV.js.map} +0 -0
  141. /package/client-dist/{chunk-W2SLMCXE.js.map → chunk-SREB74HR.js.map} +0 -0
  142. /package/client-dist/{chunk-67F7P6KL.js.map → chunk-TLAPOIAO.js.map} +0 -0
  143. /package/client-dist/{chunk-FQHJM7LJ.js.map → chunk-TTI6NQVT.js.map} +0 -0
  144. /package/client-dist/{chunk-QPQEQKWT.js.map → chunk-UHRVQGRT.js.map} +0 -0
  145. /package/client-dist/{chunk-PEGIXIM2.js.map → chunk-W36ACK74.js.map} +0 -0
  146. /package/client-dist/{chunk-LDJGPMMN.js.map → chunk-W3AWLRVB.js.map} +0 -0
  147. /package/client-dist/{chunk-MAA7SWVG.js.map → chunk-WETMMHZO.js.map} +0 -0
  148. /package/client-dist/{chunk-H3DS6OH7.js.map → chunk-WF6HPH3A.js.map} +0 -0
  149. /package/client-dist/{chunk-YQD6EY4L.js.map → chunk-WIWLBRQI.js.map} +0 -0
  150. /package/client-dist/{chunk-H4ZDV4Z3.js.map → chunk-ZBEUOVWM.js.map} +0 -0
  151. /package/client-dist/{chunk-YGFCHNXR.js.map → chunk-ZYHUZVCB.js.map} +0 -0
  152. /package/client-dist/{crd.module-WGQKKE3M.js.map → crd.module-XJ435KXN.js.map} +0 -0
  153. /package/client-dist/{dashboard.module-C4WZIP4Y.js.map → dashboard.module-NUTWD5IC.js.map} +0 -0
  154. /package/client-dist/{do.module-CAPIRHU6.js.map → do.module-C2QZR75Z.js.map} +0 -0
  155. /package/client-dist/{document-library.module-IPYWYSAQ.js.map → document-library.module-OGNPLK6G.js.map} +0 -0
  156. /package/client-dist/{embedding-eval.module-3QA5HRDF.js.map → embedding-eval.module-66JRL7MA.js.map} +0 -0
  157. /package/client-dist/{embedding-registry.module-LM26SUUJ.js.map → embedding-registry.module-JHKAP6KF.js.map} +0 -0
  158. /package/client-dist/{err.module-IZTPG7LQ.js.map → err.module-TK43XPZB.js.map} +0 -0
  159. /package/client-dist/{feedback.module-MX4GLRZK.js.map → feedback.module-7R5EBLO4.js.map} +0 -0
  160. /package/client-dist/{host-runtime-mcp.module-6KK7IW7M.js.map → host-runtime-mcp.module-SUOQT2ZI.js.map} +0 -0
  161. /package/client-dist/{live-dev-pipeline.module-KHZRQJ4E.js.map → live-dev-pipeline.module-CHSRLAND.js.map} +0 -0
  162. /package/client-dist/{logs.module-GCB2VJNV.js.map → logs.module-MC4V6CB2.js.map} +0 -0
  163. /package/client-dist/{main-ZW4FR256.js.map → main-RS7R4GTV.js.map} +0 -0
  164. /package/client-dist/{master-control-remote-poc.module-GKP2IF4U.js.map → master-control-remote-poc.module-SREH7RYL.js.map} +0 -0
  165. /package/client-dist/{mobile-app.module-JOXNLUM2.js.map → mobile-app.module-2A5OJQ46.js.map} +0 -0
  166. /package/client-dist/{model-registry.module-KRFLXT23.js.map → model-registry.module-XIOF6NIA.js.map} +0 -0
  167. /package/client-dist/{oc.module-ZQV6ELSQ.js.map → oc.module-MVIAO2U2.js.map} +0 -0
  168. /package/client-dist/{orc.module-BOS7IKQO.js.map → orc.module-T4VFJF4P.js.map} +0 -0
  169. /package/client-dist/{project-management.module-54PADR43.js.map → project-management.module-LRYIMGFZ.js.map} +0 -0
  170. /package/client-dist/{project-source-routed.module-XPZTKJ4O.js.map → project-source-routed.module-FVGM4IBL.js.map} +0 -0
  171. /package/client-dist/{scheduler.module-Z2HR2ZZQ.js.map → scheduler.module-5VRTICQ7.js.map} +0 -0
  172. /package/client-dist/{session.module-HYDKLM4I.js.map → session.module-N3QOIA3B.js.map} +0 -0
  173. /package/client-dist/{set.module-MY7SOS6L.js.map → set.module-3LY5JECS.js.map} +0 -0
  174. /package/client-dist/{setup.module-JEOJCKS5.js.map → setup.module-IVQJMJMO.js.map} +0 -0
  175. /package/client-dist/{terminals.module-SFUXL6IK.js.map → terminals.module-TDVJE7TG.js.map} +0 -0
  176. /package/client-dist/{voice-notes-poc.module-T6WAIRNR.js.map → voice-notes-poc.module-KD4FX6MQ.js.map} +0 -0
  177. /package/client-dist/{wfs.module-SBGLOPUM.js.map → wfs.module-7FFTZILZ.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as h}from"./chunk-QV3SDDFJ.js";import{I as l,p as $}from"./chunk-JUK4XI7S.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-W2SLMCXE.js.map
1
+ import{a as h}from"./chunk-RCRXEUZM.js";import{I as l,p as $}from"./chunk-RZY5FFKY.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-SREB74HR.js.map
@@ -1,4 +1,4 @@
1
- import{a as _}from"./chunk-5UPNU54P.js";import{a as ke,b as _e,g as De,h as x,j as Fe}from"./chunk-BB7FGQZ6.js";import{A as Y,B as X,C as Z,I as Te,K as Oe,p as ge,z as q}from"./chunk-JUK4XI7S.js";import{C as M,D as ve,Fa as k,Ga as C,Gb as je,Ha as z,J as T,Ja as Le,K as O,L as D,M as me,P as $e,Ta as Me,U as V,X as Ee,Z as u,a as re,aa as m,b as Pe,da as A,ga as he,h as fe,hb as S,ia as F,jb as K,k as P,la as v,ma as Ae,oa as J,p as d,pa as G,qa as f,ra as p,sa as Q,ua as W,ub as we,va as N,wa as I,wb as L,xb as Re,y as ie}from"./chunk-TBMJSIBB.js";var Ne=fe(ge());var ee=function(i){return i.strictParse="strict-parse",i.llmExtract="llm-extract",i.llmPrepare="llm-prepare",i.llmParse="llm-parse",i}(ee||{});var Qe=12e3,se=120,xe=600,te=class i{static extractJsonFromContent(n){let e=n.match(/```(?:json)?\s*([\s\S]*?)```/);if(e?.[1])return e[1].trim();let t=n.indexOf("{"),r=n.lastIndexOf("}");return t!==-1&&r>t?n.slice(t,r+1):n}static rawContentLooksLikeExtractableJsonObject(n){let e=(n??"").trim(),t=i.extractJsonFromContent(e);return i.extractedTrimmedLooksLikeJsonObjectRoot(t)}static prepareLlmJsonTextForStrictParse(n){if(!i.extractedTrimmedLooksLikeJsonObjectRoot(n))return i.relaxTrailingCommasInJsonLikeText(n);let t=i.repairExecutionSummaryForUserOrphanSiblingStrings(n),r=i.repairUnescapedInnerDoubleQuotesInJsonLikeText(t),o=i.sanitizeRawControlCharsInsideJsonStrings(r);return i.relaxTrailingCommasInJsonLikeText(o)}static extractedTrimmedLooksLikeJsonObjectRoot(n){return(n??"").trimStart().startsWith("{")}static getLlmPipelinePreparedText(n){let e=(n??"").trim(),t=i.extractJsonFromContent(e);return i.prepareLlmJsonTextForStrictParse(t)}static tryParseStrict(n){let e=n.text??"";try{return{ok:!0,value:JSON.parse(e)}}catch(t){return{ok:!1,failure:i.buildFailureFromParseError({error:t,sourceText:e,contextLabel:n.contextLabel,phase:ee.strictParse})}}}static parseStrictOrThrow(n){let e=i.tryParseStrict({text:n.text,contextLabel:n.contextLabel});if(e.ok)return e.value;let t=new Error(e.failure.summaryMessage),r=e.failure.originalError;throw t.cause=r instanceof Error?r:new Error(e.failure.rawMessage),t}static tryParseLlmPipeline(n){let e=(n.content??"").trim(),t=i.extractJsonFromContent(e),r=i.prepareLlmJsonTextForStrictParse(t),o=i.tryParseStrict({text:r,contextLabel:n.contextLabel});if(o.ok)return{ok:!0,value:o.value};let s=o.failure,l=`JSON parse failed [${s.contextLabel}] (${ee.llmParse}): ${s.rawMessage}`;return{ok:!1,failure:{phase:ee.llmParse,contextLabel:s.contextLabel,rawMessage:s.rawMessage,summaryMessage:l,position:s.position,line:s.line,column:s.column,inputLength:e.length,snippetAroundError:s.snippetAroundError,extractedLength:t.length,preparedLength:r.length,originalError:s.originalError}}}static parseLlmPipelineOrThrow(n){let e=i.tryParseLlmPipeline({content:n.content,contextLabel:n.contextLabel});if(e.ok)return e.value;let t=new Error(e.failure.summaryMessage),r=e.failure.originalError;throw t.cause=r instanceof Error?r:new Error(e.failure.rawMessage),t}static failureToPlainAdditionalContext(n){let e={jsonParsePhase:n.phase,jsonParseContextLabel:n.contextLabel,jsonParseRawMessage:n.rawMessage,jsonParseSummaryMessage:n.summaryMessage};n.position!==void 0&&(e.jsonParsePosition=n.position),n.line!==void 0&&(e.jsonParseLine=n.line),n.column!==void 0&&(e.jsonParseColumn=n.column),n.inputLength!==void 0&&(e.jsonParseInputLength=n.inputLength),n.extractedLength!==void 0&&(e.jsonParseExtractedLength=n.extractedLength),n.preparedLength!==void 0&&(e.jsonParsePreparedLength=n.preparedLength),n.snippetAroundError!==void 0&&(e.jsonParseSnippetAroundError=n.snippetAroundError);let t=n.originalError;return t instanceof Error?e.jsonParseOriginalErrorMessage=t.message:t!=null&&(e.jsonParseOriginalErrorMessage=String(t)),e}static formatFailureForLog(n,e,t){let r=n.position,o;if(r!==void 0&&r<e.length){let y=Math.max(0,r-se),c=Math.min(e.length,r+se),$=e.slice(y,c),E=r-y,ue=" ".repeat(Math.max(0,E))+"^";o=`snippetAroundPosition | startOffset: ${String(y)} | errorIndex: ${String(r)}
1
+ import{a as _}from"./chunk-5UPNU54P.js";import{a as ke,b as _e,g as De,h as x,j as Fe}from"./chunk-HOPBJ2PM.js";import{A as Y,B as X,C as Z,I as Te,K as Oe,p as ge,z as q}from"./chunk-RZY5FFKY.js";import{C as M,D as ve,Fa as k,Ga as C,Gb as je,Ha as z,J as T,Ja as Le,K as O,L as D,M as me,P as $e,Ta as Me,U as V,X as Ee,Z as u,a as re,aa as m,b as Pe,da as A,ga as he,h as fe,hb as S,ia as F,jb as K,k as P,la as v,ma as Ae,oa as J,p as d,pa as G,qa as f,ra as p,sa as Q,ua as W,ub as we,va as N,wa as I,wb as L,xb as Re,y as ie}from"./chunk-TBMJSIBB.js";var Ne=fe(ge());var ee=function(i){return i.strictParse="strict-parse",i.llmExtract="llm-extract",i.llmPrepare="llm-prepare",i.llmParse="llm-parse",i}(ee||{});var Qe=12e3,se=120,xe=600,te=class i{static extractJsonFromContent(n){let e=n.match(/```(?:json)?\s*([\s\S]*?)```/);if(e?.[1])return e[1].trim();let t=n.indexOf("{"),r=n.lastIndexOf("}");return t!==-1&&r>t?n.slice(t,r+1):n}static rawContentLooksLikeExtractableJsonObject(n){let e=(n??"").trim(),t=i.extractJsonFromContent(e);return i.extractedTrimmedLooksLikeJsonObjectRoot(t)}static prepareLlmJsonTextForStrictParse(n){if(!i.extractedTrimmedLooksLikeJsonObjectRoot(n))return i.relaxTrailingCommasInJsonLikeText(n);let t=i.repairExecutionSummaryForUserOrphanSiblingStrings(n),r=i.repairUnescapedInnerDoubleQuotesInJsonLikeText(t),o=i.sanitizeRawControlCharsInsideJsonStrings(r);return i.relaxTrailingCommasInJsonLikeText(o)}static extractedTrimmedLooksLikeJsonObjectRoot(n){return(n??"").trimStart().startsWith("{")}static getLlmPipelinePreparedText(n){let e=(n??"").trim(),t=i.extractJsonFromContent(e);return i.prepareLlmJsonTextForStrictParse(t)}static tryParseStrict(n){let e=n.text??"";try{return{ok:!0,value:JSON.parse(e)}}catch(t){return{ok:!1,failure:i.buildFailureFromParseError({error:t,sourceText:e,contextLabel:n.contextLabel,phase:ee.strictParse})}}}static parseStrictOrThrow(n){let e=i.tryParseStrict({text:n.text,contextLabel:n.contextLabel});if(e.ok)return e.value;let t=new Error(e.failure.summaryMessage),r=e.failure.originalError;throw t.cause=r instanceof Error?r:new Error(e.failure.rawMessage),t}static tryParseLlmPipeline(n){let e=(n.content??"").trim(),t=i.extractJsonFromContent(e),r=i.prepareLlmJsonTextForStrictParse(t),o=i.tryParseStrict({text:r,contextLabel:n.contextLabel});if(o.ok)return{ok:!0,value:o.value};let s=o.failure,l=`JSON parse failed [${s.contextLabel}] (${ee.llmParse}): ${s.rawMessage}`;return{ok:!1,failure:{phase:ee.llmParse,contextLabel:s.contextLabel,rawMessage:s.rawMessage,summaryMessage:l,position:s.position,line:s.line,column:s.column,inputLength:e.length,snippetAroundError:s.snippetAroundError,extractedLength:t.length,preparedLength:r.length,originalError:s.originalError}}}static parseLlmPipelineOrThrow(n){let e=i.tryParseLlmPipeline({content:n.content,contextLabel:n.contextLabel});if(e.ok)return e.value;let t=new Error(e.failure.summaryMessage),r=e.failure.originalError;throw t.cause=r instanceof Error?r:new Error(e.failure.rawMessage),t}static failureToPlainAdditionalContext(n){let e={jsonParsePhase:n.phase,jsonParseContextLabel:n.contextLabel,jsonParseRawMessage:n.rawMessage,jsonParseSummaryMessage:n.summaryMessage};n.position!==void 0&&(e.jsonParsePosition=n.position),n.line!==void 0&&(e.jsonParseLine=n.line),n.column!==void 0&&(e.jsonParseColumn=n.column),n.inputLength!==void 0&&(e.jsonParseInputLength=n.inputLength),n.extractedLength!==void 0&&(e.jsonParseExtractedLength=n.extractedLength),n.preparedLength!==void 0&&(e.jsonParsePreparedLength=n.preparedLength),n.snippetAroundError!==void 0&&(e.jsonParseSnippetAroundError=n.snippetAroundError);let t=n.originalError;return t instanceof Error?e.jsonParseOriginalErrorMessage=t.message:t!=null&&(e.jsonParseOriginalErrorMessage=String(t)),e}static formatFailureForLog(n,e,t){let r=n.position,o;if(r!==void 0&&r<e.length){let y=Math.max(0,r-se),c=Math.min(e.length,r+se),$=e.slice(y,c),E=r-y,ue=" ".repeat(Math.max(0,E))+"^";o=`snippetAroundPosition | startOffset: ${String(y)} | errorIndex: ${String(r)}
2
2
  ${$}
3
3
  ${ue}`}else{let y=e.slice(0,xe);o=`snippetFallback | noUsablePosition | firstChars: ${String(xe)}
4
4
  `+y+(e.length>xe?`
@@ -36,4 +36,4 @@ ${JSON.stringify(s,null,2)}`;return x.toDisplaySafeString(o??l)}let t=e instance
36
36
 
37
37
  Stack:
38
38
  ${t}`:""].join("")}copyToClipboard(){return P(this,null,function*(){if(this.error()==null)return;let e=this.buildErrorText(),t=yield this.globalError_CS.copyToClipboard(e);t.ok?(this.copyFeedback="M\xE1solva!",setTimeout(()=>{this.copyFeedback=""},i.copyFeedbackResetMs)):(this.copyFeedback="M\xE1sol\xE1s sikertelen",this.globalError_CS.reportErrorOnly({message:x.getErrorMessageForDisplay(t.error),source:"error-display-copy",stack:x.getStackForReport(t.error)}),setTimeout(()=>{this.copyFeedback=""},i.copyFeedbackResetMs))})}sendToQuickInput(){return P(this,null,function*(){if(this.error()==null||this.isSendingToQuickInput_$())return;let e=this.buildErrorText();if(e.trim()){this.isSendingToQuickInput_$.set(!0);try{let t=yield this.userInput_DS.submitInputForGlobalError(e);this.quickInputFeedback=t?"Quick Input l\xE9trehozva!":"Quick Input sikertelen \u2014 nincs el\xE9rhet\u0151 projekt",t||this.globalError_CS.reportErrorOnly({message:"Send-to-Quick-Input returned false (likely: no available project or server-side validation reject)",source:"send-to-quick-input-no-result"})}catch(t){this.quickInputFeedback="Quick Input sikertelen";let r=t instanceof Error?`Send-to-Quick-Input threw: ${t.message}`:`Send-to-Quick-Input threw: ${String(t)}`;this.globalError_CS.reportErrorOnly({message:r,source:"send-to-quick-input-fail",stack:t instanceof Error?t.stack:void 0})}finally{this.isSendingToQuickInput_$.set(!1),setTimeout(()=>{this.quickInputFeedback=""},i.copyFeedbackResetMs)}}})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=ve({type:i,selectors:[["app-ccap-error-display"]],inputs:{error:[1,"error"],sourceLabelOverride:[1,"sourceLabelOverride"],errorClientSource:[1,"errorClientSource"],ng0600Diagnostics:[1,"ng0600Diagnostics"],ng0203Diagnostics:[1,"ng0203Diagnostics"]},standalone:!0,features:[Me],decls:1,vars:1,consts:[[1,"border-2","border-neonRed","rounded-lg","bg-neutral-800","shadow-lg","flex","flex-col","max-h-full","min-h-0"],[1,"flex","items-center","justify-between","p-4","border-b","border-neonRed/50","shrink-0"],[1,"text-lg","font-semibold","text-red-400"],[1,"flex","items-center","gap-2"],["type","button","title","M\xE1sol\xE1s v\xE1g\xF3lapra","aria-label","M\xE1sol\xE1s v\xE1g\xF3lapra",1,"p-2","min-h-[44px]","min-w-[44px]","flex","items-center","justify-center","rounded","text-neutral-300","hover:bg-neutral-600","hover:text-white","transition-colors",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-5","w-5"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"],[1,"text-sm",3,"text-green-400","text-red-400"],["type","button","title","K\xFCld\xE9s Quick Input-ba","aria-label","K\xFCld\xE9s Quick Input-ba",1,"p-2","min-h-[44px]","min-w-[44px]","flex","items-center","justify-center","rounded","text-neutral-300","hover:bg-neutral-600","hover:text-white","transition-colors","disabled:opacity-50","disabled:cursor-not-allowed",3,"click","disabled"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 19l9 2-9-18-9 18 9-2zm0 0v-8"],[1,"p-4","flex-1","min-h-0","overflow-y-auto","space-y-4","overscroll-contain"],[1,"text-sm","font-medium","text-neutral-400","mb-1"],[1,"text-neutral-100","break-words"],[1,"rounded-md","border","border-amber-600/60","bg-amber-950/40","p-3","space-y-2"],["type","button",1,"text-neutral-400","hover:text-neutral-200","text-sm","mb-1","text-left","w-full","flex","items-center","gap-1",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"w-3","h-3","shrink-0","transition-transform","duration-150"],["points","6 9 12 15 18 9"],[1,"p-3","bg-neutral-900","rounded","text-xs","text-neutral-300","overflow-x-auto","whitespace-pre-wrap","break-words","max-h-[70vh]","overflow-y-auto"],[1,"text-sm"],[1,"text-sm","font-medium","text-amber-200/95"],[1,"list-disc","list-inside","space-y-1.5","text-xs","text-amber-100/90"],[1,"break-words"],[1,"pt-1","space-y-1"],[1,"text-xs","font-medium","text-neutral-400"],[1,"space-y-1","text-xs"],["target","_blank","rel","noopener noreferrer",1,"text-ccapAccent","hover:underline","break-all",3,"href"],[1,"text-neutral-300","text-sm"],[1,"text-neutral-300","text-sm","break-words"],[1,"text-xs","text-neutral-400","mb-2"],[1,"space-y-3","text-xs","text-neutral-300"],[1,"border","border-neutral-600","rounded-md","p-2","bg-neutral-900/80"],[1,"font-medium","text-neonCyan/90","mb-1"],[1,"whitespace-pre-wrap","break-words","text-neutral-400"]],template:function(t,r){t&1&&A(0,Ct,31,15,"div",0),t&2&&v(r.error()?0:-1)},dependencies:[we],encapsulation:2})}return i})();export{qe as a,ae as b,le as c,w as d,R as e,Be as f,dn as g,H as h,He as i,te as j,$n as k};
39
- //# sourceMappingURL=chunk-67F7P6KL.js.map
39
+ //# sourceMappingURL=chunk-TLAPOIAO.js.map
@@ -1,2 +1,2 @@
1
- import{p as o}from"./chunk-JUK4XI7S.js";import{h as r}from"./chunk-TBMJSIBB.js";var a=function(t){return t.created="created",t.alreadyLinked="already-linked",t.userMarked="user-marked",t.errorNotFound="error-not-found",t}(a||{});var m=function(t){return t.confirm="confirm",t.optionSelect="option-select",t.question="question",t}(m||{});var e=r(o());var d=new e.DyFM_DataModel_Params({dataName:"ccap_setting",properties:{ccapId:{type:"string"},sectionId:{type:"string",required:!0,index:!0},sectionProtectionFlag:{type:"string",required:!0,unique:!0},payload:{type:"object",required:!0}}});var p=r(o());var S=new p.DyFM_DataModel_Params({dataName:"pm_project",properties:{ccapId:{type:"string",index:!0},name:{type:"string",required:!0,index:!0},githubRepoUrl:{type:"string"},description:{type:"string"},localPath:{type:"string"},isActive:{type:"boolean"},preferredBugsMdRelativePath:{type:"string"},gitBranch:{type:"string"},gitStatus:{type:"string"},gitAheadBehind:{type:"string"},gitLastCommitDate:{type:"string"},gitLastCommitMessage:{type:"string"},gitLastCommitAuthor:{type:"string"},gitRemoteUrl:{type:"string"},gitInfo:{type:"object"},packageVersion:{type:"string"},packageScripts:{type:"array"},packageDependencyCount:{type:"number"},packageDevDependencyCount:{type:"number"},packageInfo:{type:"object"},artifacts:{type:"object"},lastSyncAt:{type:"string"},lastSyncStatus:{type:"string"},lastSyncSummary:{type:"string"},lastSyncDurationMs:{type:"number"},lastSyncErrors:{type:"array"},githubOwner:{type:"string"},githubRepo:{type:"string"},githubIssueSyncEnabled:{type:"boolean"},githubIssueSyncAt:{type:"string"},githubIssueSyncStatus:{type:"string"},githubIssueSyncSummary:{type:"string"},githubIssueSyncConfig:{type:"object"},githubPrSyncEnabled:{type:"boolean"},githubPrSyncAt:{type:"string"}}});var n=r(o());var P=new n.DyFM_DataModel_Params({dataName:"pm_user_request",properties:{projectId:{type:"string",required:!0,index:!0},content:{type:"string",required:!0},title:{type:"string"},type:{type:"string"},code:{type:"string"},priority:{type:"string"},area:{type:"string"},phase:{type:"string"},status:{type:"string"},specStatus:{type:"string"},implStatus:{type:"string"},testStatus:{type:"string"},completeStatus:{type:"string"},githubIssueNumber:{type:"number",index:!0},githubIssueUrl:{type:"string"},githubIssueId:{type:"number"},githubSyncedAt:{type:"string"},githubSyncDirection:{type:"string"}}});var s=r(o());var k=new s.DyFM_DataModel_Params({dataName:"ccap_quick_input",properties:{projectId:{type:"string",required:!0,index:!0},rawContent:{type:"string",required:!0},title:{type:"string"},status:{type:"string",required:!0,index:!0},promotedUserRequestId:{type:"string"},promotedBugCode:{type:"string"},predictedProjectId:{type:"string",index:!0},predictedType:{type:"string"},predictedCleanDescription:{type:"string"},taskDifficulty:{type:"string"},priority:{type:"string"},area:{type:"string"},createdAtVersion:{type:"string"}}});var x=r(o());var q=new x.DyFM_DataModel_Params({dataName:"pm_project_group",properties:{ccapId:{type:"string",index:!0},name:{type:"string",required:!0,index:!0},scanPath:{type:"string",required:!0},description:{type:"string"}}});var i=r(o());var A=new i.DyFM_DataModel_Params({dataName:"pm_project_group_file",properties:{groupId:{type:"string",required:!0,index:!0},ccapId:{type:"string",index:!0},relativePath:{type:"string",required:!0},sizeBytes:{type:"number"},lastModifiedAt:{type:"string"},fileHash:{type:"string"},isDirectory:{type:"boolean"}}});export{a,m as b};
2
- //# sourceMappingURL=chunk-FQHJM7LJ.js.map
1
+ import{p as o}from"./chunk-RZY5FFKY.js";import{h as r}from"./chunk-TBMJSIBB.js";var a=function(t){return t.created="created",t.alreadyLinked="already-linked",t.userMarked="user-marked",t.errorNotFound="error-not-found",t}(a||{});var m=function(t){return t.confirm="confirm",t.optionSelect="option-select",t.question="question",t}(m||{});var e=r(o());var d=new e.DyFM_DataModel_Params({dataName:"ccap_setting",properties:{ccapId:{type:"string"},sectionId:{type:"string",required:!0,index:!0},sectionProtectionFlag:{type:"string",required:!0,unique:!0},payload:{type:"object",required:!0}}});var p=r(o());var S=new p.DyFM_DataModel_Params({dataName:"pm_project",properties:{ccapId:{type:"string",index:!0},name:{type:"string",required:!0,index:!0},githubRepoUrl:{type:"string"},description:{type:"string"},localPath:{type:"string"},isActive:{type:"boolean"},preferredBugsMdRelativePath:{type:"string"},gitBranch:{type:"string"},gitStatus:{type:"string"},gitAheadBehind:{type:"string"},gitLastCommitDate:{type:"string"},gitLastCommitMessage:{type:"string"},gitLastCommitAuthor:{type:"string"},gitRemoteUrl:{type:"string"},gitInfo:{type:"object"},packageVersion:{type:"string"},packageScripts:{type:"array"},packageDependencyCount:{type:"number"},packageDevDependencyCount:{type:"number"},packageInfo:{type:"object"},artifacts:{type:"object"},lastSyncAt:{type:"string"},lastSyncStatus:{type:"string"},lastSyncSummary:{type:"string"},lastSyncDurationMs:{type:"number"},lastSyncErrors:{type:"array"},githubOwner:{type:"string"},githubRepo:{type:"string"},githubIssueSyncEnabled:{type:"boolean"},githubIssueSyncAt:{type:"string"},githubIssueSyncStatus:{type:"string"},githubIssueSyncSummary:{type:"string"},githubIssueSyncConfig:{type:"object"},githubPrSyncEnabled:{type:"boolean"},githubPrSyncAt:{type:"string"}}});var n=r(o());var P=new n.DyFM_DataModel_Params({dataName:"pm_user_request",properties:{projectId:{type:"string",required:!0,index:!0},content:{type:"string",required:!0},title:{type:"string"},type:{type:"string"},code:{type:"string"},priority:{type:"string"},area:{type:"string"},phase:{type:"string"},status:{type:"string"},specStatus:{type:"string"},implStatus:{type:"string"},testStatus:{type:"string"},completeStatus:{type:"string"},githubIssueNumber:{type:"number",index:!0},githubIssueUrl:{type:"string"},githubIssueId:{type:"number"},githubSyncedAt:{type:"string"},githubSyncDirection:{type:"string"}}});var s=r(o());var k=new s.DyFM_DataModel_Params({dataName:"ccap_quick_input",properties:{projectId:{type:"string",required:!0,index:!0},rawContent:{type:"string",required:!0},title:{type:"string"},status:{type:"string",required:!0,index:!0},promotedUserRequestId:{type:"string"},promotedBugCode:{type:"string"},predictedProjectId:{type:"string",index:!0},predictedType:{type:"string"},predictedCleanDescription:{type:"string"},taskDifficulty:{type:"string"},priority:{type:"string"},area:{type:"string"},createdAtVersion:{type:"string"}}});var x=r(o());var q=new x.DyFM_DataModel_Params({dataName:"pm_project_group",properties:{ccapId:{type:"string",index:!0},name:{type:"string",required:!0,index:!0},scanPath:{type:"string",required:!0},description:{type:"string"}}});var i=r(o());var A=new i.DyFM_DataModel_Params({dataName:"pm_project_group_file",properties:{groupId:{type:"string",required:!0,index:!0},ccapId:{type:"string",index:!0},relativePath:{type:"string",required:!0},sizeBytes:{type:"number"},lastModifiedAt:{type:"string"},fileHash:{type:"string"},isDirectory:{type:"boolean"}}});export{a,m as b};
2
+ //# sourceMappingURL=chunk-TTI6NQVT.js.map
@@ -1,4 +1,4 @@
1
- import{j as ks}from"./chunk-BB7FGQZ6.js";import{I as $,N as Es,a as _s,b as ys,c as gs,d as ur,e as gt,f as ms,g as lr,i as hr,l as bs,n as dr,p as fr}from"./chunk-JUK4XI7S.js";import{C as oe,H as _t,O as fs,P as De,a as as,aa as z,e as cr,f,g as ar,h as us,hb as ps,i as K,ib as yt,jb as Fe,k as u,l as ls,m as hs,w as pt,y as ds}from"./chunk-TBMJSIBB.js";var qe=f(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.DyFM_SocketEvent_Key=void 0;var vs=function(s){return s.incomingNewConnection="connection",s.outgoingNewConnection="connect",s.subscribe="subscribe",s.subscriptionSuccessful="subscriptionSuccessful",s.unsubscribe="unsubscribe",s.unsubscribeSuccessful="unsubscribeSuccessful",s.disconnect="disconnect",s.ping="ping",s.event="event",s.error="error",s}(vs||(Me.DyFM_SocketEvent_Key=vs={}))});var Ss=f(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.DyFM_SocketClient_Params=void 0;var yr=ur(),gr=gt(),bt=class{name;service;address;port;reconnectDelay=yr.second*30;reconnect=!0;socketOptions;constructor(e){Object.assign(this,e),this.reconnect=!!this.reconnectDelay,(this.socketOptions?.autoConnect||this.socketOptions?.reconnection||this.socketOptions?.reconnectionDelay)&&(gr.DyFM_Log.warn("autoConnect or reconnection is set to true in socketOptions, so reconnect is set to false",`
1
+ import{j as ks}from"./chunk-HOPBJ2PM.js";import{I as $,N as Es,a as _s,b as ys,c as gs,d as ur,e as gt,f as ms,g as lr,i as hr,l as bs,n as dr,p as fr}from"./chunk-RZY5FFKY.js";import{C as oe,H as _t,O as fs,P as De,a as as,aa as z,e as cr,f,g as ar,h as us,hb as ps,i as K,ib as yt,jb as Fe,k as u,l as ls,m as hs,w as pt,y as ds}from"./chunk-TBMJSIBB.js";var qe=f(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.DyFM_SocketEvent_Key=void 0;var vs=function(s){return s.incomingNewConnection="connection",s.outgoingNewConnection="connect",s.subscribe="subscribe",s.subscriptionSuccessful="subscriptionSuccessful",s.unsubscribe="unsubscribe",s.unsubscribeSuccessful="unsubscribeSuccessful",s.disconnect="disconnect",s.ping="ping",s.event="event",s.error="error",s}(vs||(Me.DyFM_SocketEvent_Key=vs={}))});var Ss=f(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.DyFM_SocketClient_Params=void 0;var yr=ur(),gr=gt(),bt=class{name;service;address;port;reconnectDelay=yr.second*30;reconnect=!0;socketOptions;constructor(e){Object.assign(this,e),this.reconnect=!!this.reconnectDelay,(this.socketOptions?.autoConnect||this.socketOptions?.reconnection||this.socketOptions?.reconnectionDelay)&&(gr.DyFM_Log.warn("autoConnect or reconnection is set to true in socketOptions, so reconnect is set to false",`
2
2
  This means that the reconnection will use the socket.io reconnection logic, `,"not the Dynamo implementations."),this.reconnect=!1)}};xe.DyFM_SocketClient_Params=bt});var kt=f(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.DyFM_SocketEvent=void 0;var Ie=gs(),ws=ms(),Ee=gt(),mr=hr(),br=bs(),ke=qe(),Et=class{name;eventKey;serviceName;preProcesses;tasks;logEvent;logEventContent;stackLocation;constructor(e){try{this.name=e.name??e.eventKey,this.eventKey=e.eventKey,this.serviceName=e.serviceName??"UnknownSocketService",this.preProcesses=e.preProcesses??[],this.tasks=e.tasks??[],this.stackLocation=(0,mr.DyFM_getConstructionStackLocation)(),e.logEvent!==void 0?this.logEvent=e.logEvent:this.eventKey===ke.DyFM_SocketEvent_Key.subscribe?this.logEvent=!1:[ke.DyFM_SocketEvent_Key.incomingNewConnection,ke.DyFM_SocketEvent_Key.outgoingNewConnection,ke.DyFM_SocketEvent_Key.disconnect].includes(this.eventKey)?this.logEvent=Ie.DyFM_global_settings.log_settings.socket_allEvents||Ie.DyFM_global_settings.log_settings.socket_mainEvents:this.logEvent=Ie.DyFM_global_settings.log_settings.socket_allEvents,this.logEventContent=e.logEventContent??Ie.DyFM_global_settings.log_settings.socket_eventContent}catch(t){throw Ee.DyFM_Log.error(`
3
3
  Socket Event params setup failed (${this.serviceName}): ${e.eventKey}`,t),t}}getPreLog(e){return u(this,null,function*(){try{this.logEventContent&&this.eventKey!==ke.DyFM_SocketEvent_Key.incomingNewConnection?Ee.DyFM_Log.log(`---> incoming socket(${this.serviceName}) event: ${this.eventKey};
4
4
 
@@ -8,4 +8,4 @@ socket-client(${this.params?.name}) Service setup finished`),yield this.connectS
8
8
  Fn:. setupDefaultEvents`),this.defaultEvents.forEach(e=>{e.serviceName=this.params.name;let t=this.incomingEvents.find(n=>n.eventKey===e.eventKey);t?t.tasks.unshift(...e.tasks):this.incomingEvents.push(e)})}catch(e){throw k.DyFM_Log.error(`socket-client(${this.params.name}) Service Setup Default Events failed, ERROR:`,e),e}})}setupSocketEvents(){return u(this,null,function*(){try{this.debugLog&&console.log(`Setup socket-client(${this.params.name}) Events...`),yield Lo.DyFM_Array.asyncForEach(this.incomingEvents,e=>u(this,null,function*(){e.serviceName=this.params.name,this.socket.on(e.eventKey,t=>u(this,null,function*(){try{yield e.executeEventTasks(t,this.params.service)}catch(n){k.DyFM_Log.error(`socket-client(${this.params.name}) Event failed, ERROR:`,n),yield this.emitEvent(X.DyFM_SocketEvent_Key.error,n)}}))}))}catch(e){throw k.DyFM_Log.error(`socket-client(${this.params.name}) Service Setup Socket Events failed, ERROR:`,e),e}})}connectSocket(){return u(this,null,function*(){try{k.DyFM_Log.info(`< .. > socket-client(${this.params.name}) connecting to ${this.params.address}:${this.params.port} ...`),this.socket.connect(),this.params.reconnect&&(yield this.tryReconnectIfNeeded())}catch(e){throw k.DyFM_Log.error(`socket-client(${this.params.name}) Service Connect Socket failed, ERROR:`,e),e}})}tryingToReconnect=!1;tryReconnectIfNeeded(){return u(this,null,function*(){try{if(console.log("tryReconnectIfNeeded",this._params.reconnectDelay),this.tryingToReconnect){k.DyFM_Log.warn(`socket-client(${this.params.name}) already trying to reconnect!`);return}if(!this.params.reconnect){k.DyFM_Log.warn(`socket-client(${this.params.name}) Dynamo reconnection is disabled!`);return}this.tryingToReconnect=!0,this.logFn&&console.log(`
9
9
  Fn:. tryReconnectIfNeeded`),yield vn.DyFM_Async.delay(this._params.reconnectDelay),this.connected||(this.tryingToReconnect=!1,yield this.connectSocket())}catch(e){throw k.DyFM_Log.error(`socket-client(${this.params.name}) Service Try Reconnect failed, ERROR:`,e),this.tryingToReconnect=!1,e}})}reconnect(){this.tryingToReconnect=!1,this.socket&&this.socket.disconnect(),this.connectSocket()}};lt.DyFM_SocketClient_ServiceBase=os});var wn=f(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});var ht=(ys(),K(_s));ht.__exportStar(qe(),be);ht.__exportStar(Ss(),be);ht.__exportStar(kt(),be);ht.__exportStar(Sn(),be)});function pr(s,e){!e?.injector&&_t(pr);let t=e?.injector??oe(fs),n=new hs(1),r=Fe(()=>{let i;try{i=s()}catch(o){yt(()=>n.error(o));return}yt(()=>n.next(i))},{injector:t,manualCleanup:!0});return t.get(De).onDestroy(()=>{r.destroy(),n.complete()}),n.asObservable()}function mt(s,e){let t=!e?.manualCleanup;t&&!e?.injector&&_t(mt);let n=t?e?.injector?.get(De)??oe(De):null,r=_r(e?.equal),i;e?.requireSync?i=z({kind:0},{equal:r}):i=z({kind:1,value:e?.initialValue},{equal:r});let o=s.subscribe({next:c=>i.set({kind:1,value:c}),error:c=>{if(e?.rejectErrors)throw c;i.set({kind:2,error:c})}});if(e?.requireSync&&i().kind===0)throw new pt(601,!1);return n?.onDestroy(o.unsubscribe.bind(o)),ps(()=>{let c=i();switch(c.kind){case 1:return c.value;case 2:throw c.error;case 0:throw new pt(601,!1)}},{equal:e?.equal})}function _r(s=Object.is){return(e,t)=>e.kind===1&&t.kind===1&&s(e.value,t.value)}var C=us(fr()),d=us(wn());var j=function(s){return s.connecting="connecting",s.connected="connected",s.error="error",s}(j||{});function dt(){if($.socketUrl!==void 0&&$.socketUrl.trim()!=="")return $.socketUrl.trim();if(typeof window<"u"){let s=new URL(window.location.href).origin;return C.DyFM_Log.warn("CCAP_Socket | socketUrl not set, using same-origin fallback:",s),s}return""}function U(s){return s!=null&&typeof s=="object"&&!(s instanceof Error)}function Cn(){return typeof globalThis>"u"?!1:globalThis.jasmine!==void 0}var Tn="answer",On="notify-user",Rn="agent-events",Pn="context:updated",An="monitoring:event",Nn="user-notification",Dn="cc-session:status",Fn="cc-session:output",Mn="cc-session:event",qn="cc-session:list-update",xn="cc-session:session-update",In="ca-session:status",jn="ca-session:output",Ln="ca-session:event",Bn="ca-session:list-update",Un="ext-session-msg:message",Kn="ext-session-msg:update",$n="user-interaction:request",Vn="instance-data:session-status-updated",Wn="instance:presence-update",Hn="openclaw-instance-data:status-updated",Yn="cci-instance-data:status-updated",Xn="cai-instance-data:status-updated",Jn="terminal:list:result",zn="terminal:start:result",Gn="terminal:command-result",Qn="terminal:command-output",Zn="cc:rate-limit-update",er="cc:account-usage-update",tr="cc:account-list-update",sr="session-queue:updated",nr="session-queue:lock-changed",Uo="system-error",Ko="terminal-error",$o="server:start-id",Vo="connect_error",Wo=8*C.second,Yc=(()=>{class s extends d.DyFM_SocketClient_ServiceBase{status_$=z(j.connecting);lastError_$=z(null);connectAttemptCount_$=z(0);hasEverConnected=!1;connectionTimeoutId=null;knownServerStartId=null;eventSubject_S=new ls;event$=this.eventSubject_S.asObservable();connected_$=mt(this.connected$,{initialValue:!1});get socketAddress(){return dt()||(this.params?.address??"")}globalError_CS=oe(ks);settingsGeneral_DS=oe(Es);constructor(){super(),Cn()||this.startConnectionTimeout(),Fe(()=>{this.connected&&!this.subscribed&&this.subscribe()})}startConnectionTimeout(){this.clearConnectionTimeout(),this.connectionTimeoutId=setTimeout(()=>{if(this.connectionTimeoutId=null,this.status_$()===j.connecting){let t=new Error("Socket connection timeout \u2013 server unreachable or setup failed. Click to reconnect.");this.status_$.set(j.error),this.lastError_$.set(t),C.DyFM_Log.warn("CCAP_Socket | Connection timeout")}},Wo)}clearConnectionTimeout(){this.connectionTimeoutId!==null&&(clearTimeout(this.connectionTimeoutId),this.connectionTimeoutId=null)}getParams(){let t=dt(),n=Cn(),r={path:"/socket",transports:["polling","websocket"],reconnectionDelay:1e3};return n&&(r.reconnection=!1),new d.DyFM_SocketClient_Params({name:"CCAP Client",address:t,reconnect:!n,reconnectDelay:C.minute,socketOptions:r})}getIncomingEvents(){let t=this,n=(r,i)=>{try{let o=U(i)?i:{};if(!t.eventSubject_S){let c=`Socket event dropped: eventSubject not initialized | event: ${r} | This means the socket event system is not functional \u2014 no live updates will arrive.`;C.DyFM_Log.error(`[CCAP_Socket] ${c}`),t.globalError_CS.showError(new Error(c),"client-socket-event-subject");return}t.eventSubject_S.next({event:r,payload:o})}catch(o){let c=o instanceof Error?o.message:String(o);C.DyFM_Log.error(`[CCAP_Socket] pushEnvelope failed | event: ${r} | ${c}`),t.globalError_CS.showError(o instanceof Error?o:new Error(`Socket event processing failed: ${r} \u2014 ${c}`),"client-socket-push-envelope")}};return[new d.DyFM_SocketEvent({eventKey:d.DyFM_SocketEvent_Key.outgoingNewConnection,tasks:[()=>u(this,null,function*(){t.clearConnectionTimeout(),t.hasEverConnected=!0,t.status_$.set(j.connected),t.lastError_$.set(null),t.connectAttemptCount_$.set(0),C.DyFM_Log.info("CCAP_Socket | Connected")})]}),new d.DyFM_SocketEvent({eventKey:d.DyFM_SocketEvent_Key.disconnect,tasks:[()=>u(this,null,function*(){t.hasEverConnected&&t.status_$.set(j.error),C.DyFM_Log.info("CCAP_Socket | Disconnected")})]}),new d.DyFM_SocketEvent({eventKey:Vo,tasks:[r=>u(this,null,function*(){t.clearConnectionTimeout(),t.connectAttemptCount_$.update(a=>a+1);let i=r instanceof Error?r:new Error(String(r)),o=U(r)?r.description:void 0,c=U(r)?r.type:void 0;C.DyFM_Log.info("CCAP_Socket | connect_error",`attempt #${t.connectAttemptCount_$()}`,i?.message??String(r),o!==void 0?String(o):"",c!==void 0?String(c):""),t.status_$.set(j.error);let h=t.params?.address??"",_=t.buildSocketErrorDisplay({err:i,socketUrl:h,eventType:"connect_error",raw:r});t.lastError_$.set(_),t.shouldReportSocketConnectionErrorsToErrorList()&&t.globalError_CS.reportErrorOnly({message:String(_.fullMessage??_.message??i.message),stack:typeof _.stack=="string"?_.stack:void 0,source:"client-socket"})})]}),new d.DyFM_SocketEvent({eventKey:d.DyFM_SocketEvent_Key.error,tasks:[r=>u(this,null,function*(){t.clearConnectionTimeout(),t.status_$.set(j.error);let i=r instanceof Error?r:new Error(String(r)),o=t.params?.address??"",c=t.buildSocketErrorDisplay({err:i,socketUrl:o,eventType:"error",raw:r});t.lastError_$.set(c),t.shouldReportSocketConnectionErrorsToErrorList()&&t.globalError_CS.reportErrorOnly({message:String(c.fullMessage??c.message??i.message),stack:typeof c.stack=="string"?c.stack:void 0,source:"client-socket"})})]}),new d.DyFM_SocketEvent({eventKey:Tn,tasks:[r=>u(this,null,function*(){n(Tn,r)})]}),new d.DyFM_SocketEvent({eventKey:On,tasks:[r=>u(this,null,function*(){n(On,r)})]}),new d.DyFM_SocketEvent({eventKey:Rn,tasks:[r=>u(this,null,function*(){n(Rn,r)})]}),new d.DyFM_SocketEvent({eventKey:Pn,tasks:[r=>u(this,null,function*(){n(Pn,r)})]}),new d.DyFM_SocketEvent({eventKey:An,tasks:[r=>u(this,null,function*(){n(An,r)})]}),new d.DyFM_SocketEvent({eventKey:Nn,tasks:[r=>u(this,null,function*(){let i=U(r)?r:{};if(n(Nn,r),i.type===Uo){let o=t.buildServerErrorDisplay(i);t.globalError_CS.showError(o,"client-socket")}else if(i.type===Ko){let o=t.buildTerminalErrorDisplay(i);t.globalError_CS.showError(o,"client-socket")}})]}),new d.DyFM_SocketEvent({eventKey:$o,tasks:[r=>u(this,null,function*(){let i=U(r)?r:{},o=typeof i.serverStartId=="number"?i.serverStartId:void 0;o!==void 0&&(t.knownServerStartId===null?(t.knownServerStartId=o,C.DyFM_Log.info("CCAP_Socket | Server start ID stored:",o)):t.knownServerStartId!==o&&(C.DyFM_Log.warn("CCAP_Socket | Server restarted (start ID changed), reloading page"),window.location.reload()))})]}),new d.DyFM_SocketEvent({eventKey:Dn,tasks:[r=>u(this,null,function*(){n(Dn,r)})]}),new d.DyFM_SocketEvent({eventKey:Fn,tasks:[r=>u(this,null,function*(){n(Fn,r)})]}),new d.DyFM_SocketEvent({eventKey:Mn,tasks:[r=>u(this,null,function*(){n(Mn,r)})]}),new d.DyFM_SocketEvent({eventKey:qn,tasks:[r=>u(this,null,function*(){n(qn,r)})]}),new d.DyFM_SocketEvent({eventKey:xn,tasks:[r=>u(this,null,function*(){n(xn,r)})]}),new d.DyFM_SocketEvent({eventKey:In,tasks:[r=>u(this,null,function*(){n(In,r)})]}),new d.DyFM_SocketEvent({eventKey:jn,tasks:[r=>u(this,null,function*(){n(jn,r)})]}),new d.DyFM_SocketEvent({eventKey:Ln,tasks:[r=>u(this,null,function*(){n(Ln,r)})]}),new d.DyFM_SocketEvent({eventKey:Bn,tasks:[r=>u(this,null,function*(){n(Bn,r)})]}),new d.DyFM_SocketEvent({eventKey:Un,tasks:[r=>u(this,null,function*(){n(Un,r)})]}),new d.DyFM_SocketEvent({eventKey:Kn,tasks:[r=>u(this,null,function*(){n(Kn,r)})]}),new d.DyFM_SocketEvent({eventKey:$n,tasks:[r=>u(this,null,function*(){n($n,r)})]}),new d.DyFM_SocketEvent({eventKey:Vn,tasks:[r=>u(this,null,function*(){n(Vn,r)})]}),new d.DyFM_SocketEvent({eventKey:Wn,tasks:[r=>u(this,null,function*(){n(Wn,r)})]}),new d.DyFM_SocketEvent({eventKey:Hn,tasks:[r=>u(this,null,function*(){n(Hn,r)})]}),new d.DyFM_SocketEvent({eventKey:Yn,tasks:[r=>u(this,null,function*(){n(Yn,r)})]}),new d.DyFM_SocketEvent({eventKey:Xn,tasks:[r=>u(this,null,function*(){n(Xn,r)})]}),new d.DyFM_SocketEvent({eventKey:Jn,tasks:[r=>u(this,null,function*(){n(Jn,r)})]}),new d.DyFM_SocketEvent({eventKey:zn,tasks:[r=>u(this,null,function*(){n(zn,r)})]}),new d.DyFM_SocketEvent({eventKey:Gn,tasks:[r=>u(this,null,function*(){n(Gn,r)})]}),new d.DyFM_SocketEvent({eventKey:Qn,tasks:[r=>u(this,null,function*(){n(Qn,r)})]}),new d.DyFM_SocketEvent({eventKey:sr,tasks:[r=>u(this,null,function*(){n(sr,r)})]}),new d.DyFM_SocketEvent({eventKey:nr,tasks:[r=>u(this,null,function*(){n(nr,r)})]}),new d.DyFM_SocketEvent({eventKey:Zn,tasks:[r=>u(this,null,function*(){n(Zn,r)})]}),new d.DyFM_SocketEvent({eventKey:er,tasks:[r=>u(this,null,function*(){n(er,r)})]}),new d.DyFM_SocketEvent({eventKey:tr,tasks:[r=>u(this,null,function*(){n(tr,r)})]})]}getSubscriptionContent(){return u(this,null,function*(){let t=this.socket?.id;return Promise.resolve({clientId:t})})}shouldReportSocketConnectionErrorsToErrorList(){return this.settingsGeneral_DS.section_$().form.reportSocketConnectionErrorsToErrorList===!0}buildSocketErrorDisplay(t){let n=t.err.message?.trim()?t.err.message:"WebSocket connection failed",r=t.socketUrl.trim()?`WebSocket: ${n} \u2014 ${t.socketUrl}`:`WebSocket: ${n}`,i={message:r,fullMessage:r,name:t.err.name,stack:t.err.stack??null,socketUrl:t.socketUrl,transport:"websocket",eventType:t.eventType,attemptedAt:new Date().toISOString(),connectAttempt:this.connectAttemptCount_$()},o=$.socketUrl!==void 0&&$.socketUrl.trim()!=="";i.socketUrlSource=o?"environment.socketUrl":"same-origin fallback";let c=this.params?.socketOptions?.transports??[];if(c.length>0&&(i.configuredTransports=c.join(", ")),typeof window<"u"&&(i.pageOrigin=window.location.origin),U(t.raw)){let _=t.raw,a=_.description;if(typeof a=="string"&&a.trim())i.description=a.trim();else if(a instanceof Error)i.description=a.message,a.stack&&(i.descriptionStack=a.stack);else if(a instanceof Event)i.description=this.extractDomEventInfo(a);else if(U(a)){let l=a,y=[];typeof l.message=="string"&&l.message.trim()&&y.push(l.message.trim()),typeof l.status=="number"&&(i.httpStatus=l.status,y.push(`HTTP ${l.status}`)),typeof l.statusText=="string"&&l.statusText.trim()&&(i.httpStatusText=l.statusText.trim(),y.push(l.statusText.trim())),typeof l.responseURL=="string"&&l.responseURL.trim()&&(i.responseUrl=l.responseURL.trim()),y.length>0&&(i.description=y.join(" \u2013 "))}typeof _.type=="string"&&_.type.trim()&&(i.type=_.type.trim()),U(_.context)&&(i.errorContext=_.context)}t.raw instanceof Event&&!i.description&&(i.description=this.extractDomEventInfo(t.raw));let h=[r];if(typeof i.description=="string"&&h.push(`Cause: ${i.description}`),typeof i.httpStatus=="number"){let _=typeof i.httpStatusText=="string"?` ${i.httpStatusText}`:"";h.push(`HTTP: ${i.httpStatus}${_}`)}return typeof i.responseUrl=="string"&&h.push(`Response URL: ${i.responseUrl}`),h.push(`Attempt: #${i.connectAttempt}`),h.push(`Source: ${i.socketUrlSource}`),i.fullMessage=h.join(" | "),i}extractDomEventInfo(t){let n=[];n.push(`type=${t.type}`);let r=t.target;return U(r)&&(typeof r.readyState=="number"&&n.push(`readyState=${r.readyState}`),typeof r.url=="string"&&r.url&&n.push(`url=${r.url}`),typeof r.responseURL=="string"&&r.responseURL&&n.push(`responseURL=${r.responseURL}`),typeof r.status=="number"&&n.push(`status=${r.status}`)),n.push("(DOM Event - tipikusan SSL cert reject, CORS, vagy network unreachable)"),n.join(", ")}buildTerminalErrorDisplay(t){let n=typeof t.message=="string"?t.message:String(t.message??""),r=typeof t.code=="string"?t.code:String(t.code??""),i=[n];r&&i.push(`K\xF3d: ${r}`),typeof t.terminalId=="string"&&t.terminalId.trim()&&i.push(`Termin\xE1l ID: ${t.terminalId.trim()}`),typeof t.path=="string"&&t.path.trim()&&i.push(`Path: ${t.path.trim()}`);let o=i.join(`
10
10
  `),c=typeof t.timestamp=="number"?t.timestamp:Date.now();return{source:"server",message:n,stack:null,detailsText:o,timestamp:c}}buildServerErrorDisplay(t){let n=typeof t.message=="string"?t.message:String(t.message??""),r=t.stack,i=typeof r=="string"?r:r!=null?String(r):null,o=typeof t.detailsText=="string"?t.detailsText:JSON.stringify(t,null,2),c=typeof t.timestamp=="number"?t.timestamp:Date.now();return{source:"server",message:n,stack:i,detailsText:o,timestamp:c}}reconnect(){if(this.socket){this.clearConnectionTimeout(),this.status_$.set(j.connecting),this.lastError_$.set(null),this.connectAttemptCount_$.set(0),this.startConnectionTimeout();let t=this.params?.address??dt();C.DyFM_Log.info("CCAP_Socket | Reconnecting to",t),this.socket.disconnect(),this.socket.connect()}}emit(t,n){this.socket?.connected&&this.socket.emit(t,n)}diagnoseConnection(){return u(this,null,function*(){let t=this.params?.address??dt(),n={timestamp:new Date().toISOString(),socketUrl:t,socketUrlSource:$.socketUrl!==void 0&&$.socketUrl.trim()!==""?"environment.socketUrl":"same-origin fallback",pageOrigin:typeof window<"u"?window.location.origin:"",socketConnected:this.socket?.connected??!1,socketId:this.socket?.id??null,connectAttemptCount:this.connectAttemptCount_$(),currentStatus:this.status_$()},r=yield s.probeEndpoint("/api/server/status","serverStatusApi");if(n.serverStatusApi=r,r.ok===!0&&r.body!==void 0){let _=r.body;if(_!==null&&typeof _=="object"){let a=_;n.serverReportedHttpPort=a.httpPort??null,n.serverReportedSocketPort=a.socketPort??null}}let i=this.params?.socketOptions?.path??"/socket",o=`${t}${i}/?EIO=4&transport=polling&t=${Date.now()}`,c=yield s.probeEndpoint(o,"socketIoPolling");n.socketIoPolling=c;let h=n.serverReportedSocketPort;if(typeof h=="number"&&h>0){let _=`http://localhost:${h}${i}/?EIO=4&transport=polling&t=${Date.now()}`,a=yield s.probeEndpoint(_,"socketIoDirectPort");n.socketIoDirectPort=a}return n})}static probeEndpoint(t,n){return u(this,null,function*(){let r={url:t,label:n},i=performance.now();try{let o=yield fetch(t,{method:"GET",cache:"no-store"}),c=Math.round(performance.now()-i);r.ok=o.ok,r.httpStatus=o.status,r.httpStatusText=o.statusText,r.elapsedMs=c;try{let h=yield o.text();try{r.body=JSON.parse(h)}catch{r.bodyPreview=h.substring(0,300)}}catch{r.bodyReadError="Failed to read response body"}}catch(o){let c=Math.round(performance.now()-i);r.elapsedMs=c,r.ok=!1,r.fetchError=o instanceof Error?o.message:String(o),o instanceof TypeError&&(r.fetchErrorType="TypeError (network/CORS/SSL)")}return r})}ngOnDestroy(){this.clearConnectionTimeout(),this.socket&&this.socket.disconnect()}static \u0275fac=function(n){return new(n||s)};static \u0275prov=ds({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();export{pr as a,mt as b,wn as c,j as d,Yc as e};
11
- //# sourceMappingURL=chunk-QPQEQKWT.js.map
11
+ //# sourceMappingURL=chunk-UHRVQGRT.js.map
@@ -1,4 +1,4 @@
1
- import{c as Tl}from"./chunk-QPQEQKWT.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-JUK4XI7S.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-UHRVQGRT.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-RZY5FFKY.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-PEGIXIM2.js.map
115
+ //# sourceMappingURL=chunk-W36ACK74.js.map
@@ -1,3 +1,3 @@
1
- import{b as Y}from"./chunk-OXDWH3A2.js";import{a as ee}from"./chunk-23CFTV2G.js";import{a as X}from"./chunk-FLAJXIYW.js";import{b as G,c as k,f as V,i as W,n as A,o as U,p as B,v as R}from"./chunk-EO4DNTT4.js";import{d as J,i as Q}from"./chunk-67F7P6KL.js";import{a as F}from"./chunk-5UPNU54P.js";import{c as q}from"./chunk-BB7FGQZ6.js";import{C as f}from"./chunk-JUK4XI7S.js";import{C as E,D as v,Fa as d,Ga as y,Ha as $,I as K,J as m,K as g,Q as j,T as O,Ta as z,U as C,Z as s,aa as c,da as M,fa as H,ga as _,hb as L,jb as N,k as b,la as x,na as I,oa as T,pa as P,qa as r,ra as o,ua as S,ub as D,va as p,wa as u,wb as Z}from"./chunk-TBMJSIBB.js";var te="ccap-pm-user-input-wizard-draft:",w=class a{static storageKey(l,e){let i=`${te}${l}`,t=e?.trim();return t!==void 0&&t.length>0?`${i}:qi:${t}`:i}static load(l,e){let i=a.storageKey(l,e),t=F.readJson(i,null);if(!a.isDraftShape(t))return null;let n=t;return typeof n.previewMarkdown!="string"&&(n.previewMarkdown=""),n}static save(l,e,i){let t=a.storageKey(l,i),n={rawText:e.rawText,refinementDraft:e.refinementDraft,wizardStep:e.wizardStep,suggestionJson:e.suggestionJson,previewMarkdown:e.previewMarkdown,updatedAt:e.updatedAt};F.writeJson(t,n)}static clear(l,e){let i=a.storageKey(l,e);F.remove(i)}static isDraftShape(l){if(typeof l!="object"||l===null||Array.isArray(l))return!1;let e=Reflect.get(l,"previewMarkdown"),i=typeof e=="string"||e===void 0,t=Reflect.get(l,"suggestionJson");return typeof Reflect.get(l,"rawText")=="string"&&typeof Reflect.get(l,"refinementDraft")=="string"&&typeof Reflect.get(l,"wizardStep")=="number"&&(t===null||typeof t=="string")&&i&&typeof Reflect.get(l,"updatedAt")=="string"}};function re(a,l){if(a&1){let e=S();r(0,"div",0)(1,"h3",11),d(2,"New USER-INPUT (wizard)"),o(),r(3,"button",12),p("click",function(){m(e);let t=u();return g(t.handleDiscardDraft())}),d(4," Clear draft "),o()()}}function oe(a,l){if(a&1){let e=S();r(0,"div",1)(1,"button",12),p("click",function(){m(e);let t=u();return g(t.handleDiscardDraft())}),d(2," Clear draft "),o()()}}function ae(a,l){if(a&1&&(r(0,"div",3),d(1),o()),a&2){let e=u();s(),$(" ",e.suggestErrorText_$()," ")}}function se(a,l){if(a&1&&(r(0,"div",3),d(1),o()),a&2){let e=u();s(),$(" ",e.finalizeErrorText_$()," ")}}function de(a,l){if(a&1&&(r(0,"div",4)(1,"span",13),d(2,"LLM system prompt (last suggest / refine)"),o(),r(3,"pre",14),d(4),o()()),a&2){let e=u();s(4),y(e.pm_DS.userInputWizardLastLlmSystemPrompt_$())}}function le(a,l){if(a&1&&(r(0,"div",4)(1,"span",13),d(2,"LLM user message (last suggest / refine)"),o(),r(3,"pre",15),d(4),o()()),a&2){let e=u();s(4),y(e.pm_DS.userInputWizardLastLlmUserMessage_$())}}function pe(a,l){a&1&&d(0," Formatting\u2026 ")}function _e(a,l){a&1&&d(0," Format with AI ")}function ue(a,l){if(a&1){let e=S();r(0,"div",9)(1,"button",16),p("click",function(){m(e);let t=u();return g(t.handleFormatWithAi())}),M(2,pe,1,0)(3,_e,1,0),o()()}if(a&2){let e=u();s(),_("disabled",e.pm_DS.userInputWizardSuggestLoading_$()||!e.rawText_$().trim()),s(),x(e.pm_DS.userInputWizardSuggestLoading_$()?2:3)}}function ce(a,l){if(a&1&&(r(0,"option",24),d(1),o()),a&2){let e=l.$implicit;_("value",e),s(),y(e)}}function me(a,l){if(a&1){let e=S();r(0,"div",28)(1,"label",20),d(2,"Refine instruction (optional)"),o(),r(3,"textarea",30),p("ngModelChange",function(t){m(e);let n=u(2);return g(n.handleRefinementInput(t))}),d(4," "),o(),r(5,"button",31),p("click",function(){m(e);let t=u(2);return g(t.handleRefine())}),d(6," Refine with AI "),o()()}if(a&2){let e=u(2);s(3),_("ngModel",e.refinement_$()),s(2),_("disabled",e.pm_DS.userInputWizardSuggestLoading_$()||!e.refinement_$().trim())}}function ge(a,l){a&1&&d(0," Saving\u2026 ")}function he(a,l){a&1&&d(0," Finalize (USER-INPUT.md + database) ")}function fe(a,l){if(a&1){let e=S();r(0,"div",10)(1,"h4",17),d(2,"Preview (last server response)"),o(),r(3,"pre",18),d(4),o(),r(5,"div",19)(6,"div",4)(7,"label",20),d(8,"Type"),o(),r(9,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editType_$.set(t),g(n.handleEditorChange())}),o()(),r(10,"div",4)(11,"label",20),d(12,"Code"),o(),r(13,"input",22),p("ngModelChange",function(t){m(e);let n=u();return n.editCode_$.set(t),g(n.handleEditorChange())}),o()(),r(14,"div",4)(15,"label",20),d(16,"Priority"),o(),r(17,"select",23),p("ngModelChange",function(t){m(e);let n=u();return n.editPriority_$.set(t),g(n.handleEditorChange())}),T(18,ce,2,2,"option",24,I),o()(),r(20,"div",4)(21,"label",20),d(22,"Phase"),o(),r(23,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editPhase_$.set(t),g(n.handleEditorChange())}),o()(),r(24,"div",25)(25,"label",20),d(26,"Area"),o(),r(27,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editArea_$.set(t),g(n.handleEditorChange())}),o()(),r(28,"div",25)(29,"label",20),d(30,"Title (DB)"),o(),r(31,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editTitle_$.set(t),g(n.handleEditorChange())}),o()(),r(32,"div",25)(33,"label",20),d(34,"Details (one line)"),o(),r(35,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editDetails_$.set(t),g(n.handleEditorChange())}),o()(),r(36,"div",4)(37,"label",20),d(38,"E1"),o(),r(39,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editE1_$.set(t),g(n.handleEditorChange())}),o()(),r(40,"div",4)(41,"label",20),d(42,"E2"),o(),r(43,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editE2_$.set(t),g(n.handleEditorChange())}),o()(),r(44,"div",4)(45,"label",20),d(46,"E3"),o(),r(47,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editE3_$.set(t),g(n.handleEditorChange())}),o()(),r(48,"div",4)(49,"label",20),d(50,"E4"),o(),r(51,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editE4_$.set(t),g(n.handleEditorChange())}),o()()(),r(52,"label",26)(53,"input",27),p("ngModelChange",function(t){m(e);let n=u();return g(n.addToBacklog_$.set(t))}),o(),d(54," Also append matching line to BACKLOG.md "),o(),M(55,me,7,2,"div",28),r(56,"button",29),p("click",function(){m(e);let t=u();return g(t.handleFinalize())}),M(57,ge,1,0)(58,he,1,0),o()()}if(a&2){let e=u();s(4),y(e.previewMarkdown_$()),s(5),_("ngModel",e.editType_$()),s(4),_("ngModel",e.editCode_$()),s(4),_("ngModel",e.editPriority_$()),s(),P(e.priorities),s(5),_("ngModel",e.editPhase_$()),s(4),_("ngModel",e.editArea_$()),s(4),_("ngModel",e.editTitle_$()),s(4),_("ngModel",e.editDetails_$()),s(4),_("ngModel",e.editE1_$()),s(4),_("ngModel",e.editE2_$()),s(4),_("ngModel",e.editE3_$()),s(4),_("ngModel",e.editE4_$()),s(2),_("ngModel",e.addToBacklog_$()),s(2),x(e.skipSuggestMode?-1:55),s(),_("disabled",e.pm_DS.userInputWizardFinalizeLoading_$()||!e.rawText_$().trim()),s(),x(e.pm_DS.userInputWizardFinalizeLoading_$()?57:58)}}var xe=400,Ve=(()=>{class a{projectId="";isEmbeddedInModal=!1;wizardCompleted=new j;wizardFinalizeSuccess=new j;quickInputDraftId=null;initialRawContent="";skipSuggestMode=!1;initialStagingPriority=void 0;pm_DS=E(ee);suggestErrorText_$=L(()=>{let e=this.pm_DS.userInputWizardSuggestError_$();return e?a.formatHttpError(e):null});finalizeErrorText_$=L(()=>{let e=this.pm_DS.userInputWizardFinalizeError_$();return e?a.formatHttpError(e):null});rawText_$=c("");refinement_$=c("");wizardStep_$=c(0);previewMarkdown_$=c("");addToBacklog_$=c(!1);editType_$=c("");editCode_$=c("");editPriority_$=c(f.medium);editArea_$=c("");editPhase_$=c("MVP1");editDetails_$=c("");editTitle_$=c("");editE1_$=c("\u274C");editE2_$=c("\u274C");editE3_$=c("\u274C");editE4_$=c("\u274C");priorities=Object.values(f);draftTimer;ngOnChanges(e){(e.projectId!==void 0&&e.projectId.currentValue||e.quickInputDraftId!==void 0||e.initialRawContent!==void 0||e.skipSuggestMode!==void 0||e.initialStagingPriority!==void 0)&&this.projectId&&this.applyWizardBootstrapFromInputs()}ngOnDestroy(){this.draftTimer!==void 0&&clearTimeout(this.draftTimer)}handleVoiceTranscript(e){let i=e?.trim()??"";i.length&&(this.rawText_$.update(t=>t?`${t}
1
+ import{b as Y}from"./chunk-RWNN5KRV.js";import{a as ee}from"./chunk-EPQSURW3.js";import{a as X}from"./chunk-FLAJXIYW.js";import{b as G,c as k,f as V,i as W,n as A,o as U,p as B,v as R}from"./chunk-EO4DNTT4.js";import{d as J,i as Q}from"./chunk-TLAPOIAO.js";import{a as F}from"./chunk-5UPNU54P.js";import{c as q}from"./chunk-HOPBJ2PM.js";import{C as f}from"./chunk-RZY5FFKY.js";import{C as E,D as v,Fa as d,Ga as y,Ha as $,I as K,J as m,K as g,Q as j,T as O,Ta as z,U as C,Z as s,aa as c,da as M,fa as H,ga as _,hb as L,jb as N,k as b,la as x,na as I,oa as T,pa as P,qa as r,ra as o,ua as S,ub as D,va as p,wa as u,wb as Z}from"./chunk-TBMJSIBB.js";var te="ccap-pm-user-input-wizard-draft:",w=class a{static storageKey(l,e){let i=`${te}${l}`,t=e?.trim();return t!==void 0&&t.length>0?`${i}:qi:${t}`:i}static load(l,e){let i=a.storageKey(l,e),t=F.readJson(i,null);if(!a.isDraftShape(t))return null;let n=t;return typeof n.previewMarkdown!="string"&&(n.previewMarkdown=""),n}static save(l,e,i){let t=a.storageKey(l,i),n={rawText:e.rawText,refinementDraft:e.refinementDraft,wizardStep:e.wizardStep,suggestionJson:e.suggestionJson,previewMarkdown:e.previewMarkdown,updatedAt:e.updatedAt};F.writeJson(t,n)}static clear(l,e){let i=a.storageKey(l,e);F.remove(i)}static isDraftShape(l){if(typeof l!="object"||l===null||Array.isArray(l))return!1;let e=Reflect.get(l,"previewMarkdown"),i=typeof e=="string"||e===void 0,t=Reflect.get(l,"suggestionJson");return typeof Reflect.get(l,"rawText")=="string"&&typeof Reflect.get(l,"refinementDraft")=="string"&&typeof Reflect.get(l,"wizardStep")=="number"&&(t===null||typeof t=="string")&&i&&typeof Reflect.get(l,"updatedAt")=="string"}};function re(a,l){if(a&1){let e=S();r(0,"div",0)(1,"h3",11),d(2,"New USER-INPUT (wizard)"),o(),r(3,"button",12),p("click",function(){m(e);let t=u();return g(t.handleDiscardDraft())}),d(4," Clear draft "),o()()}}function oe(a,l){if(a&1){let e=S();r(0,"div",1)(1,"button",12),p("click",function(){m(e);let t=u();return g(t.handleDiscardDraft())}),d(2," Clear draft "),o()()}}function ae(a,l){if(a&1&&(r(0,"div",3),d(1),o()),a&2){let e=u();s(),$(" ",e.suggestErrorText_$()," ")}}function se(a,l){if(a&1&&(r(0,"div",3),d(1),o()),a&2){let e=u();s(),$(" ",e.finalizeErrorText_$()," ")}}function de(a,l){if(a&1&&(r(0,"div",4)(1,"span",13),d(2,"LLM system prompt (last suggest / refine)"),o(),r(3,"pre",14),d(4),o()()),a&2){let e=u();s(4),y(e.pm_DS.userInputWizardLastLlmSystemPrompt_$())}}function le(a,l){if(a&1&&(r(0,"div",4)(1,"span",13),d(2,"LLM user message (last suggest / refine)"),o(),r(3,"pre",15),d(4),o()()),a&2){let e=u();s(4),y(e.pm_DS.userInputWizardLastLlmUserMessage_$())}}function pe(a,l){a&1&&d(0," Formatting\u2026 ")}function _e(a,l){a&1&&d(0," Format with AI ")}function ue(a,l){if(a&1){let e=S();r(0,"div",9)(1,"button",16),p("click",function(){m(e);let t=u();return g(t.handleFormatWithAi())}),M(2,pe,1,0)(3,_e,1,0),o()()}if(a&2){let e=u();s(),_("disabled",e.pm_DS.userInputWizardSuggestLoading_$()||!e.rawText_$().trim()),s(),x(e.pm_DS.userInputWizardSuggestLoading_$()?2:3)}}function ce(a,l){if(a&1&&(r(0,"option",24),d(1),o()),a&2){let e=l.$implicit;_("value",e),s(),y(e)}}function me(a,l){if(a&1){let e=S();r(0,"div",28)(1,"label",20),d(2,"Refine instruction (optional)"),o(),r(3,"textarea",30),p("ngModelChange",function(t){m(e);let n=u(2);return g(n.handleRefinementInput(t))}),d(4," "),o(),r(5,"button",31),p("click",function(){m(e);let t=u(2);return g(t.handleRefine())}),d(6," Refine with AI "),o()()}if(a&2){let e=u(2);s(3),_("ngModel",e.refinement_$()),s(2),_("disabled",e.pm_DS.userInputWizardSuggestLoading_$()||!e.refinement_$().trim())}}function ge(a,l){a&1&&d(0," Saving\u2026 ")}function he(a,l){a&1&&d(0," Finalize (USER-INPUT.md + database) ")}function fe(a,l){if(a&1){let e=S();r(0,"div",10)(1,"h4",17),d(2,"Preview (last server response)"),o(),r(3,"pre",18),d(4),o(),r(5,"div",19)(6,"div",4)(7,"label",20),d(8,"Type"),o(),r(9,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editType_$.set(t),g(n.handleEditorChange())}),o()(),r(10,"div",4)(11,"label",20),d(12,"Code"),o(),r(13,"input",22),p("ngModelChange",function(t){m(e);let n=u();return n.editCode_$.set(t),g(n.handleEditorChange())}),o()(),r(14,"div",4)(15,"label",20),d(16,"Priority"),o(),r(17,"select",23),p("ngModelChange",function(t){m(e);let n=u();return n.editPriority_$.set(t),g(n.handleEditorChange())}),T(18,ce,2,2,"option",24,I),o()(),r(20,"div",4)(21,"label",20),d(22,"Phase"),o(),r(23,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editPhase_$.set(t),g(n.handleEditorChange())}),o()(),r(24,"div",25)(25,"label",20),d(26,"Area"),o(),r(27,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editArea_$.set(t),g(n.handleEditorChange())}),o()(),r(28,"div",25)(29,"label",20),d(30,"Title (DB)"),o(),r(31,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editTitle_$.set(t),g(n.handleEditorChange())}),o()(),r(32,"div",25)(33,"label",20),d(34,"Details (one line)"),o(),r(35,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editDetails_$.set(t),g(n.handleEditorChange())}),o()(),r(36,"div",4)(37,"label",20),d(38,"E1"),o(),r(39,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editE1_$.set(t),g(n.handleEditorChange())}),o()(),r(40,"div",4)(41,"label",20),d(42,"E2"),o(),r(43,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editE2_$.set(t),g(n.handleEditorChange())}),o()(),r(44,"div",4)(45,"label",20),d(46,"E3"),o(),r(47,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editE3_$.set(t),g(n.handleEditorChange())}),o()(),r(48,"div",4)(49,"label",20),d(50,"E4"),o(),r(51,"input",21),p("ngModelChange",function(t){m(e);let n=u();return n.editE4_$.set(t),g(n.handleEditorChange())}),o()()(),r(52,"label",26)(53,"input",27),p("ngModelChange",function(t){m(e);let n=u();return g(n.addToBacklog_$.set(t))}),o(),d(54," Also append matching line to BACKLOG.md "),o(),M(55,me,7,2,"div",28),r(56,"button",29),p("click",function(){m(e);let t=u();return g(t.handleFinalize())}),M(57,ge,1,0)(58,he,1,0),o()()}if(a&2){let e=u();s(4),y(e.previewMarkdown_$()),s(5),_("ngModel",e.editType_$()),s(4),_("ngModel",e.editCode_$()),s(4),_("ngModel",e.editPriority_$()),s(),P(e.priorities),s(5),_("ngModel",e.editPhase_$()),s(4),_("ngModel",e.editArea_$()),s(4),_("ngModel",e.editTitle_$()),s(4),_("ngModel",e.editDetails_$()),s(4),_("ngModel",e.editE1_$()),s(4),_("ngModel",e.editE2_$()),s(4),_("ngModel",e.editE3_$()),s(4),_("ngModel",e.editE4_$()),s(2),_("ngModel",e.addToBacklog_$()),s(2),x(e.skipSuggestMode?-1:55),s(),_("disabled",e.pm_DS.userInputWizardFinalizeLoading_$()||!e.rawText_$().trim()),s(),x(e.pm_DS.userInputWizardFinalizeLoading_$()?57:58)}}var xe=400,Ve=(()=>{class a{projectId="";isEmbeddedInModal=!1;wizardCompleted=new j;wizardFinalizeSuccess=new j;quickInputDraftId=null;initialRawContent="";skipSuggestMode=!1;initialStagingPriority=void 0;pm_DS=E(ee);suggestErrorText_$=L(()=>{let e=this.pm_DS.userInputWizardSuggestError_$();return e?a.formatHttpError(e):null});finalizeErrorText_$=L(()=>{let e=this.pm_DS.userInputWizardFinalizeError_$();return e?a.formatHttpError(e):null});rawText_$=c("");refinement_$=c("");wizardStep_$=c(0);previewMarkdown_$=c("");addToBacklog_$=c(!1);editType_$=c("");editCode_$=c("");editPriority_$=c(f.medium);editArea_$=c("");editPhase_$=c("MVP1");editDetails_$=c("");editTitle_$=c("");editE1_$=c("\u274C");editE2_$=c("\u274C");editE3_$=c("\u274C");editE4_$=c("\u274C");priorities=Object.values(f);draftTimer;ngOnChanges(e){(e.projectId!==void 0&&e.projectId.currentValue||e.quickInputDraftId!==void 0||e.initialRawContent!==void 0||e.skipSuggestMode!==void 0||e.initialStagingPriority!==void 0)&&this.projectId&&this.applyWizardBootstrapFromInputs()}ngOnDestroy(){this.draftTimer!==void 0&&clearTimeout(this.draftTimer)}handleVoiceTranscript(e){let i=e?.trim()??"";i.length&&(this.rawText_$.update(t=>t?`${t}
2
2
  ${i}`:i),this.scheduleDraftSave())}handleFormatWithAi(){return b(this,null,function*(){let e=this.rawText_$().trim();if(!(!e.length||!this.projectId))try{let i=yield this.pm_DS.suggestUserInputFormat(this.projectId,{rawText:e});this.previewMarkdown_$.set(i.previewMarkdown),this.applySuggestionToEditors(i.suggestion),this.wizardStep_$.set(1),this.scheduleDraftSave()}catch{}})}handleRefine(){return b(this,null,function*(){let e=this.rawText_$().trim(),i=this.refinement_$().trim();if(!e.length||!i.length||!this.projectId)return;let t=this.buildSuggestionFromEditors();if(t)try{let n=yield this.pm_DS.suggestUserInputFormat(this.projectId,{rawText:e,refinementInstruction:i,previousSuggestion:t});this.previewMarkdown_$.set(n.previewMarkdown),this.applySuggestionToEditors(n.suggestion),this.scheduleDraftSave()}catch{}})}handleFinalize(){return b(this,null,function*(){let e=this.rawText_$().trim();if(!(!e.length||!this.projectId))try{let i=yield this.pm_DS.finalizeUserInputWizard(this.projectId,{rawContent:e,type:this.editType_$().trim(),code:this.editCode_$().trim(),priority:this.editPriority_$().trim(),phase:this.editPhase_$().trim(),details:this.editDetails_$().trim(),area:this.editArea_$().trim()||void 0,title:this.editTitle_$().trim()||void 0,e1:this.editE1_$().trim(),e2:this.editE2_$().trim(),e3:this.editE3_$().trim(),e4:this.editE4_$().trim(),addToBacklog:this.addToBacklog_$()});w.clear(this.projectId,this.quickInputDraftId),this.resetWizardState(),this.wizardFinalizeSuccess.emit(i),this.wizardCompleted.emit()}catch{}})}handleDiscardDraft(){this.projectId&&w.clear(this.projectId,this.quickInputDraftId),this.resetWizardState(),this.skipSuggestMode&&this.wizardStep_$.set(1)}handleRawTextInput(e){this.rawText_$.set(e),this.scheduleDraftSave()}handleRefinementInput(e){this.refinement_$.set(e),this.scheduleDraftSave()}handleEditorChange(){this.scheduleDraftSave()}resetWizardState(){this.rawText_$.set(""),this.refinement_$.set(""),this.wizardStep_$.set(0),this.previewMarkdown_$.set(""),this.addToBacklog_$.set(!1),this.editType_$.set(""),this.editCode_$.set(""),this.editPriority_$.set(f.medium),this.editArea_$.set(""),this.editPhase_$.set("MVP1"),this.editDetails_$.set(""),this.editTitle_$.set(""),this.editE1_$.set("\u274C"),this.editE2_$.set("\u274C"),this.editE3_$.set("\u274C"),this.editE4_$.set("\u274C")}applySuggestionToEditors(e){this.editType_$.set(e.type.trim()),this.editCode_$.set(e.code.trim()),this.editPriority_$.set(e.priority.trim().toLowerCase()),this.editArea_$.set(e.area?.trim()??""),this.editPhase_$.set(e.phase.trim()),this.editDetails_$.set(e.details.trim()),this.editTitle_$.set(e.title?.trim()??""),this.editE1_$.set(e.e1.trim()),this.editE2_$.set(e.e2.trim()),this.editE3_$.set(e.e3.trim()),this.editE4_$.set(e.e4.trim())}buildSuggestionFromEditors(){let e=this.editType_$().trim(),i=this.editCode_$().trim();return!e.length||!i.length?null:{type:e,code:i,priority:this.editPriority_$().trim(),phase:this.editPhase_$().trim(),details:this.editDetails_$().trim(),e1:this.editE1_$().trim(),e2:this.editE2_$().trim(),e3:this.editE3_$().trim(),e4:this.editE4_$().trim(),area:this.editArea_$().trim()||void 0,title:this.editTitle_$().trim()||void 0}}applyWizardBootstrapFromInputs(){if(!this.projectId)return;let e=w.load(this.projectId,this.quickInputDraftId);if(e){this.rawText_$.set(e.rawText),this.refinement_$.set(e.refinementDraft);let t=e.wizardStep;if(this.skipSuggestMode&&(t=t<1?1:t),this.wizardStep_$.set(t),e.suggestionJson)try{let n=JSON.parse(e.suggestionJson);a.isSuggestionShape(n)&&this.applySuggestionToEditors(n)}catch{}this.previewMarkdown_$.set(e.previewMarkdown??""),this.scheduleDraftSave();return}this.resetWizardState();let i=this.initialRawContent?.trim()??"";i.length>0&&this.rawText_$.set(i),this.skipSuggestMode&&this.wizardStep_$.set(1),this.initialStagingPriority!==void 0&&this.editPriority_$.set(this.initialStagingPriority),this.scheduleDraftSave()}static formatHttpError(e){if(e instanceof Z){let i=a.readNestedErrorString(e.error);return i||e.message}return e instanceof Error?e.message:String(e)}static readNestedErrorString(e){if(!q.isRecord(e))return null;let i=e.error;return typeof i=="string"?i:null}static isSuggestionShape(e){return q.isRecord(e)?typeof e.type=="string"&&typeof e.code=="string"&&typeof e.priority=="string"&&typeof e.phase=="string"&&typeof e.details=="string"&&typeof e.e1=="string"&&typeof e.e2=="string"&&typeof e.e3=="string"&&typeof e.e4=="string":!1}scheduleDraftSave(){this.projectId&&(this.draftTimer!==void 0&&clearTimeout(this.draftTimer),this.draftTimer=setTimeout(()=>{this.persistDraft()},xe))}persistDraft(){if(!this.projectId)return;let e=this.buildSuggestionFromEditors(),i={rawText:this.rawText_$(),refinementDraft:this.refinement_$(),wizardStep:this.wizardStep_$(),suggestionJson:e?JSON.stringify(e):null,previewMarkdown:this.previewMarkdown_$(),updatedAt:new Date().toISOString()};w.save(this.projectId,i,this.quickInputDraftId)}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=v({type:a,selectors:[["app-pm-user-input-wizard"]],inputs:{projectId:"projectId",isEmbeddedInModal:"isEmbeddedInModal",quickInputDraftId:"quickInputDraftId",initialRawContent:"initialRawContent",skipSuggestMode:"skipSuggestMode",initialStagingPriority:"initialStagingPriority"},outputs:{wizardCompleted:"wizardCompleted",wizardFinalizeSuccess:"wizardFinalizeSuccess"},standalone:!0,features:[K,z],decls:17,vars:9,consts:[[1,"flex","items-center","justify-between","gap-2","flex-wrap"],[1,"flex","justify-end"],[1,"text-xs","text-neutral-500"],[1,"rounded","border","border-red-800/50","bg-red-950/30","px-3","py-2","text-xs","text-red-300","whitespace-pre-wrap"],[1,"flex","flex-col","gap-1"],[1,"relative","pt-5"],[1,"text-xs","text-neutral-400","block","mb-1"],["rows","6",1,"w-full","bg-neutral-900","border","border-neutral-600","rounded","px-3","py-2","text-sm","text-neutral-100","placeholder:text-neutral-600","focus:outline-none","focus:border-ccapAccent","resize-y","min-h-[120px]",3,"ngModelChange","ngModel"],[1,"absolute","left-1/2","top-6","z-10","-translate-x-1/2","-translate-y-1/2",3,"transcriptReady"],[1,"flex","flex-wrap","gap-2"],[1,"border-t","border-neutral-700","pt-4","flex","flex-col","gap-3"],[1,"text-sm","font-semibold","text-neutral-200"],["type","button",1,"px-2","py-1","text-xs","text-neutral-500","hover:text-red-400","border","border-transparent","hover:border-red-900/50","rounded",3,"click"],[1,"text-xs","font-semibold","text-neutral-400"],[1,"text-[11px]","text-neutral-300","bg-neutral-950/80","border","border-neutral-700","rounded","p-2","max-h-32","overflow-auto","whitespace-pre-wrap","font-mono"],[1,"text-[11px]","text-neutral-300","bg-neutral-950/80","border","border-neutral-700","rounded","p-2","max-h-48","overflow-auto","whitespace-pre-wrap","font-mono"],["type","button",1,"px-4","py-2","border","border-ccapAccent","rounded","text-ccapAccent","text-sm","font-semibold","hover:bg-ccapAccent","hover:text-white","transition-colors","disabled:opacity-40",3,"click","disabled"],[1,"text-xs","font-semibold","text-neutral-400","uppercase","tracking-wide"],[1,"text-xs","text-neutral-300","bg-neutral-950/80","border","border-neutral-700","rounded","p-3","max-h-48","overflow-auto","whitespace-pre-wrap","font-mono"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-3"],[1,"text-xs","text-neutral-400"],["type","text",1,"bg-neutral-900","border","border-neutral-600","rounded","px-2","py-1.5","text-sm","text-neutral-100",3,"ngModelChange","ngModel"],["type","text",1,"bg-neutral-900","border","border-neutral-600","rounded","px-2","py-1.5","text-sm","font-mono","text-neonCyan",3,"ngModelChange","ngModel"],[1,"bg-neutral-900","border","border-neutral-600","rounded","px-2","py-1.5","text-sm","text-neutral-100",3,"ngModelChange","ngModel"],[3,"value"],[1,"flex","flex-col","gap-1","sm:col-span-2"],[1,"flex","items-center","gap-2","text-xs","text-neutral-400","cursor-pointer"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"flex","flex-col","gap-2","border","border-neutral-700","rounded","p-3","bg-neutral-900/40"],["type","button",1,"px-4","py-2","bg-ccapAccent/20","border","border-ccapAccent","text-ccapAccent","text-sm","font-semibold","rounded","hover:bg-ccapAccent","hover:text-white","transition-colors","disabled:opacity-40",3,"click","disabled"],["rows","2",1,"bg-neutral-900","border","border-neutral-600","rounded","px-2","py-1.5","text-sm","text-neutral-100","resize-y",3,"ngModelChange","ngModel"],["type","button",1,"self-start","px-3","py-1.5","border","border-neutral-500","rounded","text-neutral-300","text-xs","font-semibold","hover:border-ccapAccent","hover:text-ccapAccent","disabled:opacity-40",3,"click","disabled"]],template:function(i,t){i&1&&(r(0,"div"),M(1,re,5,0,"div",0)(2,oe,3,0,"div",1),r(3,"p",2),d(4," Raw text is never rewritten by the model. AI suggests metadata only. Drafts are saved in this browser (localStorage). "),o(),M(5,ae,2,1,"div",3)(6,se,2,1,"div",3)(7,de,5,1,"div",4)(8,le,5,1,"div",4),r(9,"div",5)(10,"label",6),d(11,"Raw user input"),o(),r(12,"textarea",7),p("ngModelChange",function(h){return t.handleRawTextInput(h)}),d(13," "),o(),r(14,"app-ccap-voice-record-button",8),p("transcriptReady",function(h){return t.handleVoiceTranscript(h)}),o()(),M(15,ue,4,2,"div",9)(16,fe,59,16,"div",10),o()),i&2&&(H("class","flex flex-col gap-4"+(t.isEmbeddedInModal?"":" rounded-lg bg-neutral-800/50 border border-ccapAccent/30 p-4")),s(),x(t.isEmbeddedInModal?2:1),s(4),x(t.suggestErrorText_$()?5:-1),s(),x(t.finalizeErrorText_$()?6:-1),s(),x(t.pm_DS.userInputWizardLastLlmSystemPrompt_$()?7:-1),s(),x(t.pm_DS.userInputWizardLastLlmUserMessage_$()?8:-1),s(4),_("ngModel",t.rawText_$()),s(3),x(t.skipSuggestMode?-1:15),s(),x(t.wizardStep_$()>=1||t.skipSuggestMode?16:-1))},dependencies:[D,R,U,B,k,G,A,V,W,Y],encapsulation:2})}return a})();function Ce(a,l){if(a&1&&(r(0,"option",8),d(1),o()),a&2){let e=l.$implicit;_("ngValue",e),s(),y(e)}}var Je=(()=>{class a{userInput_DS=E(Q);isOpen=C(!1);isBusy=C(!1);modalZIndex=C("50");prefillTitle=C("");prefillDetails=C("");prefillPriority=C(void 0);closed=O();submitted=O();title_$=c("");details_$=c("");area_$=c("");phase_$=c("MVP1");priority_$=c(f.medium);priorityChoices=[f.low,f.medium,f.high,f.urgent];constructor(){N(()=>{if(this.isOpen()){let e=this.prefillTitle().trim(),i=this.prefillDetails().trim();this.title_$.set(e),this.details_$.set(i),this.area_$.set(""),this.phase_$.set("MVP1");let t=this.prefillPriority();this.priority_$.set(t!==void 0?t:f.medium)}}),N(()=>{this.isOpen()?this.userInput_DS.pushQuickInputOverlayAreaContextByOverlayId(J.pmManualBugModal):this.userInput_DS.popQuickInputOverlayAreaContext(J.pmManualBugModal)},{allowSignalWrites:!0})}handleClose(){this.closed.emit()}handleSubmit(){let e=this.title_$().trim(),i=this.details_$().trim();if(!e.length||!i.length)return;let t=this.area_$().trim(),n=this.phase_$().trim(),h={title:e,details:i,priority:this.priority_$(),phase:n.length>0?n:"MVP1"};t.length>0&&(h.area=t),this.submitted.emit(h)}handleTitleInput(e){this.title_$.set(e)}handleDetailsInput(e){this.details_$.set(e)}handleAreaInput(e){this.area_$.set(e)}handlePhaseInput(e){this.phase_$.set(e)}handlePriorityChange(e){if(typeof e=="string"){let i=a.parsePriority(e);i&&this.priority_$.set(i);return}this.priority_$.set(e)}static parsePriority(e){let i=e.trim().toLowerCase(),t=Object.values(f);for(let n of t)if(n===i)return n}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=v({type:a,selectors:[["app-pm-manual-bug-modal"]],inputs:{isOpen:[1,"isOpen"],isBusy:[1,"isBusy"],modalZIndex:[1,"modalZIndex"],prefillTitle:[1,"prefillTitle"],prefillDetails:[1,"prefillDetails"],prefillPriority:[1,"prefillPriority"]},outputs:{closed:"closed",submitted:"submitted"},standalone:!0,features:[z],decls:30,vars:12,consts:[["title","New bug (manual)",3,"closed","isOpen","maxWidth","zIndex","headerBorderClass"],[1,"flex","flex-col","gap-3","text-sm","text-neutral-200"],[1,"flex","flex-col","gap-1"],[1,"text-xs","text-neutral-500"],["type","text",1,"w-full","rounded","border","border-neutral-600","bg-neutral-900","px-2","py-1.5","text-neutral-100",3,"ngModelChange","ngModel"],["rows","6",1,"w-full","rounded","border","border-neutral-600","bg-neutral-900","px-2","py-1.5","text-neutral-100","font-mono","text-xs",3,"ngModelChange","ngModel"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-3"],[1,"rounded","border","border-neutral-600","bg-neutral-900","px-2","py-1.5","text-neutral-100",3,"ngModelChange","ngModel"],[3,"ngValue"],["modal-footer","",1,"flex","justify-end","gap-2","px-4","py-3","border-t","border-neutral-800","shrink-0"],["type","button",1,"px-3","py-1.5","text-xs","font-semibold","rounded","border","border-neutral-600","text-neutral-300","hover:border-neutral-500","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button",1,"px-3","py-1.5","text-xs","font-semibold","rounded","border","border-ccapAccent","text-ccapAccent","hover:bg-ccapAccent/10","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"]],template:function(i,t){i&1&&(r(0,"app-s-modal",0),p("closed",function(){return t.handleClose()}),r(1,"div",1)(2,"label",2)(3,"span",3),d(4,"Title"),o(),r(5,"input",4),p("ngModelChange",function(h){return t.handleTitleInput(h)}),o()(),r(6,"label",2)(7,"span",3),d(8,"Details (raw \u2014 stored verbatim)"),o(),r(9,"textarea",5),p("ngModelChange",function(h){return t.handleDetailsInput(h)}),o()(),r(10,"div",6)(11,"label",2)(12,"span",3),d(13,"Priority"),o(),r(14,"select",7),p("ngModelChange",function(h){return t.handlePriorityChange(h)}),T(15,Ce,2,2,"option",8,I),o()(),r(17,"label",2)(18,"span",3),d(19,"Phase"),o(),r(20,"input",4),p("ngModelChange",function(h){return t.handlePhaseInput(h)}),o()()(),r(21,"label",2)(22,"span",3),d(23,"Area (optional)"),o(),r(24,"input",4),p("ngModelChange",function(h){return t.handleAreaInput(h)}),o()()(),r(25,"div",9)(26,"button",10),p("click",function(){return t.handleClose()}),d(27," Cancel "),o(),r(28,"button",11),p("click",function(){return t.handleSubmit()}),d(29),o()()()),i&2&&(_("isOpen",t.isOpen())("maxWidth","lg")("zIndex",t.modalZIndex())("headerBorderClass","border-neonRed/40"),s(5),_("ngModel",t.title_$()),s(4),_("ngModel",t.details_$()),s(5),_("ngModel",t.priority_$()),s(),P(t.priorityChoices),s(5),_("ngModel",t.phase_$()),s(4),_("ngModel",t.area_$()),s(2),_("disabled",t.isBusy()),s(2),_("disabled",t.isBusy()||!t.title_$().trim().length||!t.details_$().trim().length),s(),$(" ",t.isBusy()?"Creating\u2026":"Create bug"," "))},dependencies:[D,R,U,B,k,A,V,W,X],encapsulation:2})}return a})();export{Je as a,Ve as b};
3
- //# sourceMappingURL=chunk-LDJGPMMN.js.map
3
+ //# sourceMappingURL=chunk-W3AWLRVB.js.map
@@ -1,2 +1,2 @@
1
- import{k as F}from"./chunk-67F7P6KL.js";import{D as h,Fa as _,Ga as C,Ha as T,J as x,K as u,T as E,Ta as L,U as l,Ua as k,Z as a,da as c,ga as S,la as d,ma as f,oa as v,pa as g,qa as o,ra as r,sa as p,ua as y,ub as R,va as b,wa as i,xa as M,ya as w}from"./chunk-TBMJSIBB.js";var I=["*","*"],D=()=>[];function j(t,n){if(t&1){let e=y();o(0,"div",2)(1,"button",3),b("click",function(){x(e);let m=i(3);return u(m.handleRetry())}),_(2," \xDAjrapr\xF3b\xE1l\xE1s "),r()()}}function V(t,n){if(t&1&&(o(0,"div"),p(1,"app-ccap-error-display",1),c(2,j,3,0,"div",2),r()),t&2){let e=i(2);a(),S("error",e.error())("sourceLabelOverride",e.errorSourceLabel()),a(),d(e.showRetry()?2:-1)}}function A(t,n){t&1&&(o(0,"div",6),p(1,"div",9)(2,"div",10),r())}function P(t,n){if(t&1&&(o(0,"div",4),v(1,A,3,0,"div",6,f),o(3,"div",7),p(4,"span",8),_(5),r()()),t&2){let e=i(3);a(),g(k(1,D).constructor(e.skeletonRows())),a(4),T(" ",e.loadingMessage()," ")}}function B(t,n){if(t&1&&(o(0,"p",5),_(1),r()),t&2){let e=i(3);a(),C(e.loadingMessage())}}function O(t,n){if(t&1&&c(0,P,6,2,"div",4)(1,B,2,1,"p",5),t&2){let e=i(2);d(e.showSkeleton()?0:1)}}function N(t,n){if(t&1&&(o(0,"p",0),_(1),r()),t&2){let e=i(2);a(),C(e.emptyMessage())}}function q(t,n){t&1&&w(0)}function z(t,n){if(t&1&&c(0,V,3,3,"div")(1,O,2,1)(2,N,2,1,"p",0)(3,q,1,0),t&2){let e=i();d(e.error()?0:e.isLoading()?1:e.isEmpty()?2:3)}}function G(t,n){t&1&&(o(0,"div",6),p(1,"div",9)(2,"div",10),r())}function H(t,n){if(t&1&&(o(0,"div",4),v(1,G,3,0,"div",6,f),o(3,"div",7),p(4,"span",8),_(5),r()()),t&2){let e=i(3);a(),g(k(1,D).constructor(e.skeletonRows())),a(4),T(" ",e.loadingMessage()," ")}}function J(t,n){if(t&1&&(o(0,"p",5),_(1),r()),t&2){let e=i(3);a(),C(e.loadingMessage())}}function K(t,n){if(t&1&&c(0,H,6,2,"div",4)(1,J,2,1,"p",5),t&2){let e=i(2);d(e.showSkeleton()?0:1)}}function Q(t,n){if(t&1){let e=y();o(0,"div",2)(1,"button",3),b("click",function(){x(e);let m=i(3);return u(m.handleRetry())}),_(2," \xDAjrapr\xF3b\xE1l\xE1s "),r()()}}function U(t,n){if(t&1&&(o(0,"div"),p(1,"app-ccap-error-display",1),c(2,Q,3,0,"div",2),r()),t&2){let e=i(2);a(),S("error",e.error())("sourceLabelOverride",e.errorSourceLabel()),a(),d(e.showRetry()?2:-1)}}function W(t,n){if(t&1&&(o(0,"p",0),_(1),r()),t&2){let e=i(2);a(),C(e.emptyMessage())}}function X(t,n){t&1&&w(0,1)}function Y(t,n){if(t&1&&c(0,K,2,1)(1,U,3,3,"div")(2,W,2,1,"p",0)(3,X,1,0),t&2){let e=i();d(e.isLoading()?0:e.error()?1:e.isEmpty()?2:3)}}var ot=(()=>{class t{isLoading=l(!1);error=l(null);isEmpty=l(!1);errorSourceLabel=l("");emptyMessage=l("Nincs megjelen\xEDthet\u0151 elem.");loadingMessage=l("Bet\xF6lt\xE9s\u2026");skeletonRows=l(2);showSkeleton=l(!1);showRetry=l(!0);errorTakesPrecedence=l(!1);retry=E();handleRetry(){this.retry.emit()}static \u0275fac=function(s){return new(s||t)};static \u0275cmp=h({type:t,selectors:[["app-s-content-state"]],hostAttrs:[1,"block"],inputs:{isLoading:[1,"isLoading"],error:[1,"error"],isEmpty:[1,"isEmpty"],errorSourceLabel:[1,"errorSourceLabel"],emptyMessage:[1,"emptyMessage"],loadingMessage:[1,"loadingMessage"],skeletonRows:[1,"skeletonRows"],showSkeleton:[1,"showSkeleton"],showRetry:[1,"showRetry"],errorTakesPrecedence:[1,"errorTakesPrecedence"]},outputs:{retry:"retry"},standalone:!0,features:[L],ngContentSelectors:I,decls:2,vars:1,consts:[[1,"text-neutral-500","py-4"],[1,"mb-3","block",3,"error","sourceLabelOverride"],[1,"text-center"],["type","button",1,"mt-1","px-3","py-1.5","text-sm","border","border-neonCyan","rounded-md","bg-transparent","text-neutral-200","hover:bg-neutral-800","hover:shadow-neon-glow-cyan","transition-colors",3,"click"],[1,"flex","flex-col","gap-2","py-4"],[1,"text-neutral-400"],[1,"px-4","py-3","border","border-neonDefault","rounded-lg","animate-pulse"],[1,"flex","items-center","gap-2","text-neutral-500","text-sm"],[1,"inline-block","w-2","h-2","rounded-full","bg-ccapAccent","animate-pulse"],[1,"h-4","w-3/4","bg-neutral-600","rounded","mb-2"],[1,"h-3","w-1/2","bg-neutral-700","rounded"]],template:function(s,m){s&1&&(M(I),c(0,z,4,1)(1,Y,4,1)),s&2&&d(m.errorTakesPrecedence()?0:1)},dependencies:[R,F],encapsulation:2})}return t})();export{ot as a};
2
- //# sourceMappingURL=chunk-MAA7SWVG.js.map
1
+ import{k as F}from"./chunk-TLAPOIAO.js";import{D as h,Fa as _,Ga as C,Ha as T,J as x,K as u,T as E,Ta as L,U as l,Ua as k,Z as a,da as c,ga as S,la as d,ma as f,oa as v,pa as g,qa as o,ra as r,sa as p,ua as y,ub as R,va as b,wa as i,xa as M,ya as w}from"./chunk-TBMJSIBB.js";var I=["*","*"],D=()=>[];function j(t,n){if(t&1){let e=y();o(0,"div",2)(1,"button",3),b("click",function(){x(e);let m=i(3);return u(m.handleRetry())}),_(2," \xDAjrapr\xF3b\xE1l\xE1s "),r()()}}function V(t,n){if(t&1&&(o(0,"div"),p(1,"app-ccap-error-display",1),c(2,j,3,0,"div",2),r()),t&2){let e=i(2);a(),S("error",e.error())("sourceLabelOverride",e.errorSourceLabel()),a(),d(e.showRetry()?2:-1)}}function A(t,n){t&1&&(o(0,"div",6),p(1,"div",9)(2,"div",10),r())}function P(t,n){if(t&1&&(o(0,"div",4),v(1,A,3,0,"div",6,f),o(3,"div",7),p(4,"span",8),_(5),r()()),t&2){let e=i(3);a(),g(k(1,D).constructor(e.skeletonRows())),a(4),T(" ",e.loadingMessage()," ")}}function B(t,n){if(t&1&&(o(0,"p",5),_(1),r()),t&2){let e=i(3);a(),C(e.loadingMessage())}}function O(t,n){if(t&1&&c(0,P,6,2,"div",4)(1,B,2,1,"p",5),t&2){let e=i(2);d(e.showSkeleton()?0:1)}}function N(t,n){if(t&1&&(o(0,"p",0),_(1),r()),t&2){let e=i(2);a(),C(e.emptyMessage())}}function q(t,n){t&1&&w(0)}function z(t,n){if(t&1&&c(0,V,3,3,"div")(1,O,2,1)(2,N,2,1,"p",0)(3,q,1,0),t&2){let e=i();d(e.error()?0:e.isLoading()?1:e.isEmpty()?2:3)}}function G(t,n){t&1&&(o(0,"div",6),p(1,"div",9)(2,"div",10),r())}function H(t,n){if(t&1&&(o(0,"div",4),v(1,G,3,0,"div",6,f),o(3,"div",7),p(4,"span",8),_(5),r()()),t&2){let e=i(3);a(),g(k(1,D).constructor(e.skeletonRows())),a(4),T(" ",e.loadingMessage()," ")}}function J(t,n){if(t&1&&(o(0,"p",5),_(1),r()),t&2){let e=i(3);a(),C(e.loadingMessage())}}function K(t,n){if(t&1&&c(0,H,6,2,"div",4)(1,J,2,1,"p",5),t&2){let e=i(2);d(e.showSkeleton()?0:1)}}function Q(t,n){if(t&1){let e=y();o(0,"div",2)(1,"button",3),b("click",function(){x(e);let m=i(3);return u(m.handleRetry())}),_(2," \xDAjrapr\xF3b\xE1l\xE1s "),r()()}}function U(t,n){if(t&1&&(o(0,"div"),p(1,"app-ccap-error-display",1),c(2,Q,3,0,"div",2),r()),t&2){let e=i(2);a(),S("error",e.error())("sourceLabelOverride",e.errorSourceLabel()),a(),d(e.showRetry()?2:-1)}}function W(t,n){if(t&1&&(o(0,"p",0),_(1),r()),t&2){let e=i(2);a(),C(e.emptyMessage())}}function X(t,n){t&1&&w(0,1)}function Y(t,n){if(t&1&&c(0,K,2,1)(1,U,3,3,"div")(2,W,2,1,"p",0)(3,X,1,0),t&2){let e=i();d(e.isLoading()?0:e.error()?1:e.isEmpty()?2:3)}}var ot=(()=>{class t{isLoading=l(!1);error=l(null);isEmpty=l(!1);errorSourceLabel=l("");emptyMessage=l("Nincs megjelen\xEDthet\u0151 elem.");loadingMessage=l("Bet\xF6lt\xE9s\u2026");skeletonRows=l(2);showSkeleton=l(!1);showRetry=l(!0);errorTakesPrecedence=l(!1);retry=E();handleRetry(){this.retry.emit()}static \u0275fac=function(s){return new(s||t)};static \u0275cmp=h({type:t,selectors:[["app-s-content-state"]],hostAttrs:[1,"block"],inputs:{isLoading:[1,"isLoading"],error:[1,"error"],isEmpty:[1,"isEmpty"],errorSourceLabel:[1,"errorSourceLabel"],emptyMessage:[1,"emptyMessage"],loadingMessage:[1,"loadingMessage"],skeletonRows:[1,"skeletonRows"],showSkeleton:[1,"showSkeleton"],showRetry:[1,"showRetry"],errorTakesPrecedence:[1,"errorTakesPrecedence"]},outputs:{retry:"retry"},standalone:!0,features:[L],ngContentSelectors:I,decls:2,vars:1,consts:[[1,"text-neutral-500","py-4"],[1,"mb-3","block",3,"error","sourceLabelOverride"],[1,"text-center"],["type","button",1,"mt-1","px-3","py-1.5","text-sm","border","border-neonCyan","rounded-md","bg-transparent","text-neutral-200","hover:bg-neutral-800","hover:shadow-neon-glow-cyan","transition-colors",3,"click"],[1,"flex","flex-col","gap-2","py-4"],[1,"text-neutral-400"],[1,"px-4","py-3","border","border-neonDefault","rounded-lg","animate-pulse"],[1,"flex","items-center","gap-2","text-neutral-500","text-sm"],[1,"inline-block","w-2","h-2","rounded-full","bg-ccapAccent","animate-pulse"],[1,"h-4","w-3/4","bg-neutral-600","rounded","mb-2"],[1,"h-3","w-1/2","bg-neutral-700","rounded"]],template:function(s,m){s&1&&(M(I),c(0,z,4,1)(1,Y,4,1)),s&2&&d(m.errorTakesPrecedence()?0:1)},dependencies:[R,F],encapsulation:2})}return t})();export{ot as a};
2
+ //# sourceMappingURL=chunk-WETMMHZO.js.map