dealposbooks 5.49.4 → 5.51.0

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 (167) hide show
  1. package/3rdpartylicenses.txt +31 -31
  2. package/{chunk-ELMSU4U7.js → chunk-2ABEICLB.js} +1 -1
  3. package/chunk-2RXAK5B6.js +8 -0
  4. package/chunk-2U3PIWWJ.js +1 -0
  5. package/chunk-32QC4JFI.js +202 -0
  6. package/{chunk-JD3HX7VY.js → chunk-3O7NQ6AZ.js} +1 -1
  7. package/chunk-3RODMLL2.js +1 -0
  8. package/{chunk-2XW2ZOT4.js → chunk-43JH7CKX.js} +1 -1
  9. package/chunk-4GZGUASQ.js +1 -0
  10. package/chunk-52EMI2TW.js +803 -0
  11. package/{chunk-NMU2YBAB.js → chunk-52PEVPZN.js} +1 -1
  12. package/{chunk-DJXQKSLT.js → chunk-5U7KZJ3H.js} +1 -1
  13. package/{chunk-B4C3ZPN6.js → chunk-5VKDAA74.js} +1 -1
  14. package/chunk-5XVZW6BJ.js +1 -0
  15. package/{chunk-HCJK6VTO.js → chunk-6GILMLXA.js} +1 -1
  16. package/chunk-7ET5ZE2L.js +1 -0
  17. package/chunk-7F5JJ627.js +129 -0
  18. package/chunk-7GORVGAV.js +1 -0
  19. package/{chunk-UPSNJEHO.js → chunk-7L5IAWG2.js} +1 -1
  20. package/chunk-AAKZYXG3.js +145 -0
  21. package/chunk-ALLR2NXQ.js +1 -0
  22. package/{chunk-7B7LNBD5.js → chunk-B7TGZ7J3.js} +1 -1
  23. package/chunk-BFEM6LX7.js +2 -0
  24. package/{chunk-EBEY2MBR.js → chunk-BME4Z6DH.js} +1 -1
  25. package/chunk-BT4SLG45.js +1 -0
  26. package/{chunk-WSQPSWDS.js → chunk-BVHTVDYP.js} +1 -1
  27. package/{chunk-E7QWESN4.js → chunk-CN6AT4LE.js} +1 -1
  28. package/chunk-CPAPQNFC.js +1 -0
  29. package/chunk-D5WBKKO2.js +252 -0
  30. package/chunk-DAN3PD7R.js +1 -0
  31. package/chunk-DM2JLWKE.js +1 -0
  32. package/chunk-DM42MH3E.js +1 -0
  33. package/chunk-DZCJWJUG.js +1 -0
  34. package/chunk-E57RWXDG.js +1 -0
  35. package/{chunk-2RRP7JK7.js → chunk-EDYUAYO2.js} +1 -1
  36. package/chunk-ELZ5FFFM.js +1 -0
  37. package/chunk-F4PHXCVU.js +1 -0
  38. package/{chunk-WXIG4CXY.js → chunk-FHJOSHI3.js} +1 -1
  39. package/{chunk-WMZF4DQK.js → chunk-FMAG3RQL.js} +1 -1
  40. package/{chunk-BKTBVFNX.js → chunk-FNGX2XFA.js} +1 -1
  41. package/{chunk-3DBSHDAQ.js → chunk-FTBQKOYS.js} +1 -1
  42. package/{chunk-5DRALZZF.js → chunk-G3BJCT7T.js} +1 -1
  43. package/chunk-GEYRJ2MR.js +1 -0
  44. package/chunk-GGQ7LRWG.js +0 -0
  45. package/{chunk-E6SW7I4D.js → chunk-GIRWHO6Q.js} +1 -1
  46. package/chunk-GN7VAGHH.js +1 -0
  47. package/{chunk-672TXWSC.js → chunk-GQ7SPEZH.js} +1 -1
  48. package/{chunk-PKO36DGM.js → chunk-H7YYGW7V.js} +1 -1
  49. package/{chunk-2VZ7JZIO.js → chunk-HMZX6SME.js} +1 -1
  50. package/chunk-HYOAHRKW.js +1 -0
  51. package/{chunk-PPXXWO4E.js → chunk-II7KELI4.js} +1 -1
  52. package/chunk-ILQI2X5T.js +1 -0
  53. package/{chunk-AD247LWQ.js → chunk-ISIYG4D5.js} +1 -1
  54. package/chunk-J346SEEU.js +1 -0
  55. package/chunk-JBYPGHPN.js +1 -0
  56. package/chunk-JPKZVL57.js +229 -0
  57. package/{chunk-WPJG57AR.js → chunk-JPNJTPYJ.js} +1 -1
  58. package/chunk-JRBGNG24.js +1 -0
  59. package/{chunk-URH77XNK.js → chunk-JWNGZMSE.js} +1 -1
  60. package/{chunk-PGOSR3RI.js → chunk-KARG227P.js} +1 -1
  61. package/chunk-KBJ25I3J.js +1 -0
  62. package/chunk-KJM3M7Y3.js +1 -0
  63. package/chunk-KL3TPLRB.js +2 -0
  64. package/{chunk-QPPFPDWZ.js → chunk-KONCSTVQ.js} +1 -1
  65. package/{chunk-VDXZGF3M.js → chunk-KQZMRRMA.js} +1 -1
  66. package/chunk-KU4BYYJE.js +1 -0
  67. package/{chunk-L3GNPRRN.js → chunk-KXWAD3X4.js} +5 -5
  68. package/chunk-L27GCER2.js +160 -0
  69. package/{chunk-M4SSELXT.js → chunk-L4ENW4RK.js} +1 -1
  70. package/chunk-LF4HTMCE.js +1 -0
  71. package/{chunk-UVSR4LPB.js → chunk-LO4HJ77Y.js} +1 -1
  72. package/chunk-MCR6MBS2.js +1 -0
  73. package/chunk-MGIEURA2.js +193 -0
  74. package/chunk-MHM3ED4J.js +130 -0
  75. package/{chunk-VKNINE5Q.js → chunk-MJGBBYIO.js} +1 -1
  76. package/chunk-MWRTPPEI.js +1 -0
  77. package/chunk-NSMNMKCV.js +1 -0
  78. package/chunk-NTVIX4GB.js +1 -0
  79. package/{chunk-ME4ALIS7.js → chunk-O44DI62I.js} +1 -1
  80. package/chunk-OILVKUFA.js +1 -0
  81. package/chunk-OKT36WED.js +1 -0
  82. package/{chunk-2LNMV22E.js → chunk-OOCLTY27.js} +1 -1
  83. package/{chunk-AN4SAUSA.js → chunk-OW2ND5HU.js} +1 -1
  84. package/chunk-Q4XWXOWE.js +1 -0
  85. package/{chunk-ETNPJTRI.js → chunk-QCGJB7O7.js} +1 -1
  86. package/chunk-QSIXT7W7.js +7 -0
  87. package/chunk-QXE4YYQV.js +1 -0
  88. package/chunk-R45WWOYD.js +1 -0
  89. package/chunk-RFHL2MJ4.js +1 -0
  90. package/chunk-RGVP7KT4.js +1 -0
  91. package/{chunk-F7XGJYCZ.js → chunk-RMHKEGL5.js} +1 -1
  92. package/{chunk-3UAQHNUY.js → chunk-SLD7RSX6.js} +1 -1
  93. package/{chunk-FWAGEKIF.js → chunk-SOD2BIQR.js} +1 -1
  94. package/{chunk-KZHI6PGZ.js → chunk-SVGPDGYN.js} +1 -1
  95. package/{chunk-RM5HLXNW.js → chunk-TAN6GLIH.js} +1 -1
  96. package/chunk-TOAH3PY3.js +1 -0
  97. package/{chunk-D6IS6PE6.js → chunk-U4AN6IWJ.js} +1 -1
  98. package/chunk-V6BSLJMN.js +1 -0
  99. package/chunk-VABCBO2E.js +1 -0
  100. package/{chunk-S27Z7D3D.js → chunk-VM56C6ZV.js} +1 -1
  101. package/{chunk-VFKJMUGN.js → chunk-VQ62YSFR.js} +1 -1
  102. package/{chunk-AMGBUOC4.js → chunk-VSDW2RJ5.js} +1 -1
  103. package/{chunk-U2VDC52W.js → chunk-WL6ZZCYW.js} +1 -1
  104. package/{chunk-FOPCQ346.js → chunk-WPHZJHC6.js} +1 -1
  105. package/{chunk-5B5AMMR3.js → chunk-X6KL7VKV.js} +1 -1
  106. package/chunk-YHLRDTIS.js +1 -0
  107. package/{chunk-CAS5GLLU.js → chunk-YKZN6T5N.js} +1 -1
  108. package/chunk-YMV3SC73.js +1 -0
  109. package/{chunk-ENH6HA3V.js → chunk-YR5KRTHR.js} +1 -1
  110. package/{chunk-MHRSQRHT.js → chunk-ZC7ZENN7.js} +1 -1
  111. package/chunk-ZLBNHUZF.js +1 -0
  112. package/{chunk-KBR5PEJ3.js → chunk-ZOMQLK4A.js} +1 -1
  113. package/index.html +2 -2
  114. package/main-ET3JU27S.js +1 -0
  115. package/package.json +1 -1
  116. package/chunk-23PWXRYN.js +0 -1
  117. package/chunk-2BI7WNJP.js +0 -1
  118. package/chunk-5JNGJ6UW.js +0 -1
  119. package/chunk-6EIUS53G.js +0 -1
  120. package/chunk-6WWXJJID.js +0 -1
  121. package/chunk-AVSCJ22B.js +0 -1
  122. package/chunk-BEZIBXGN.js +0 -1
  123. package/chunk-BF6PW4QM.js +0 -1
  124. package/chunk-BMM5YFHU.js +0 -130
  125. package/chunk-BP4OMNR2.js +0 -8
  126. package/chunk-CFUVIXAX.js +0 -1
  127. package/chunk-CNMK2GSA.js +0 -1
  128. package/chunk-DGACZ747.js +0 -947
  129. package/chunk-DIG4FYVW.js +0 -1
  130. package/chunk-F7PVAVLQ.js +0 -1
  131. package/chunk-FSJNWH2Y.js +0 -1
  132. package/chunk-FZS2ZX6Y.js +0 -1
  133. package/chunk-G4XX7EU2.js +0 -1
  134. package/chunk-GEFAWOOV.js +0 -129
  135. package/chunk-GTMCB3SL.js +0 -1
  136. package/chunk-H6FEO7T3.js +0 -1
  137. package/chunk-HOAF22JI.js +0 -1
  138. package/chunk-I33QA736.js +0 -1
  139. package/chunk-IPOA3SOW.js +0 -1
  140. package/chunk-IWAIAUMO.js +0 -1
  141. package/chunk-JDRK7YG6.js +0 -1
  142. package/chunk-JIFUQXVH.js +0 -1
  143. package/chunk-KNBVJM2U.js +0 -160
  144. package/chunk-LNFCBMAA.js +0 -1
  145. package/chunk-OJTHBHGK.js +0 -1
  146. package/chunk-OMLO5E65.js +0 -1
  147. package/chunk-PK7RYZ5A.js +0 -1
  148. package/chunk-PSSATQO3.js +0 -1
  149. package/chunk-QC7NAJZG.js +0 -1
  150. package/chunk-RAF7SWW4.js +0 -229
  151. package/chunk-RDQ7RWJC.js +0 -1
  152. package/chunk-RRL6OTRO.js +0 -1
  153. package/chunk-SLD2HX2B.js +0 -1
  154. package/chunk-U5YVZKME.js +0 -1
  155. package/chunk-URSKOWIQ.js +0 -1
  156. package/chunk-V7EXGBKT.js +0 -1
  157. package/chunk-VMI3QWC6.js +0 -193
  158. package/chunk-VQKIYDID.js +0 -1
  159. package/chunk-W6US3XIE.js +0 -1
  160. package/chunk-X3FAXRYR.js +0 -252
  161. package/chunk-YIG2I6WR.js +0 -1
  162. package/chunk-YRW7AH7I.js +0 -1
  163. package/chunk-ZFNIPERQ.js +0 -2
  164. package/chunk-ZIQBCB5X.js +0 -7
  165. package/chunk-ZK43JB4A.js +0 -2
  166. package/chunk-ZY4AYAWJ.js +0 -202
  167. package/main-VIRQJVUE.js +0 -1
@@ -0,0 +1 @@
1
+ import{l as un}from"./chunk-KL3TPLRB.js";import{A as Ht,a as nn,e as on,f as Ne,g as sn,h as pe,i as an}from"./chunk-DM2JLWKE.js";import{Aa as oe,Ab as Ue,Ba as Ee,D as Q,Ea as kr,Fa as Ft,Fb as Wr,Gb as Gr,I as K,Ib as Bt,J as ie,Jb as Vt,Kb as Qr,Lb as Kr,M as jt,N as de,R as Je,Ra as Lr,S as Z,T as kt,Ta as $r,Tc as tn,U as Or,V as Mr,Wc as tt,X as Dr,Y as P,Yb as Zr,Z as Er,_ as y,_c as rt,a as wr,aa as C,c as br,ca as m,da as Ur,e as Pt,ea as Nr,f as xt,fa as A,fb as zr,fc as Yr,fd as rn,g as H,ga as Lt,h as N,ha as Y,ia as h,ja as Pr,k as W,l as b,lc as Xr,m as d,ma as fe,n as Oe,na as L,nb as qt,nc as Jr,o as Ir,ob as x,oc as en,p as Ar,pa as De,pb as Fr,qb as qr,s as v,t as Xe,u as I,ua as $t,v as Me,va as xr,vb as Br,w as Tr,wa as zt,x as _t,xa as _r,xb as et,yb as Vr,za as jr,zb as Hr}from"./chunk-6QJHEOXN.js";import{a as l,b as U}from"./chunk-YQFG5XE2.js";var f="primary",He=Symbol("RouteTitle"),Zt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ue(t){return new Zt(t)}function vn(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let s=0;s<r.length;s++){let o=r[s],a=t[s];if(o[0]===":")i[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function li(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!$(t[e],n[e]))return!1;return!0}function $(t,n){let e=t?Yt(t):void 0,r=n?Yt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let s=0;s<e.length;s++)if(i=e[s],!mn(t[i],n[i]))return!1;return!0}function Yt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function mn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,s)=>r[s]===i)}else return t===n}function Rn(t){return t.length>0?t[t.length-1]:null}function re(t){return Ir(t)?t:Gr(t)?b(Promise.resolve(t)):d(t)}var hi={exact:yn,subset:Cn},Sn={exact:di,subset:fi,ignored:()=>!0};function cn(t,n,e){return hi[e.paths](t.root,n.root,e.matrixParams)&&Sn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function di(t,n){return $(t,n)}function yn(t,n,e){if(!se(t.segments,n.segments)||!ot(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!yn(t.children[r],n.children[r],e))return!1;return!0}function fi(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>mn(t[e],n[e]))}function Cn(t,n,e){return wn(t,n,n.segments,e)}function wn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!se(i,e)||n.hasChildren()||!ot(i,e,r))}else if(t.segments.length===e.length){if(!se(t.segments,e)||!ot(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Cn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!se(t.segments,i)||!ot(t.segments,i,r)||!t.children[f]?!1:wn(t.children[f],n,s,r)}}function ot(t,n,e){return n.every((r,i)=>Sn[e](t[i].parameters,r.parameters))}var F=class{root;queryParams;fragment;_queryParamMap;constructor(n=new g([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ue(this.queryParams),this._queryParamMap}toString(){return vi.serialize(this)}},g=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return st(this)}},X=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ue(this.parameters),this._parameterMap}toString(){return In(this)}};function pi(t,n){return se(t,n)&&t.every((e,r)=>$(e.parameters,n[r].parameters))}function se(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function gi(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)))}),e}var ne=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:()=>new J,providedIn:"root"})}return t})(),J=class{parse(n){let e=new Jt(n);return new F(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Pe(n.root,!0)}`,r=Si(n.queryParams),i=typeof n.fragment=="string"?`#${mi(n.fragment)}`:"";return`${e}${r}${i}`}},vi=new J;function st(t){return t.segments.map(n=>In(n)).join("/")}function Pe(t,n){if(!t.hasChildren())return st(t);if(n){let e=t.children[f]?Pe(t.children[f],!1):"",r=[];return Object.entries(t.children).forEach(([i,s])=>{i!==f&&r.push(`${i}:${Pe(s,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=gi(t,(r,i)=>i===f?[Pe(t.children[f],!1)]:[`${i}:${Pe(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${st(t)}/${e[0]}`:`${st(t)}/(${e.join("//")})`}}function bn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function nt(t){return bn(t).replace(/%3B/gi,";")}function mi(t){return encodeURI(t)}function Xt(t){return bn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function at(t){return decodeURIComponent(t)}function ln(t){return at(t.replace(/\+/g,"%20"))}function In(t){return`${Xt(t.path)}${Ri(t.parameters)}`}function Ri(t){return Object.entries(t).map(([n,e])=>`;${Xt(n)}=${Xt(e)}`).join("")}function Si(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${nt(e)}=${nt(i)}`).join("&"):`${nt(e)}=${nt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var yi=/^[^\/()?;#]+/;function Wt(t){let n=t.match(yi);return n?n[0]:""}var Ci=/^[^\/()?;=#]+/;function wi(t){let n=t.match(Ci);return n?n[0]:""}var bi=/^[^=?&#]+/;function Ii(t){let n=t.match(bi);return n?n[0]:""}var Ai=/^[^&#]+/;function Ti(t){let n=t.match(Ai);return n?n[0]:""}var Jt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new g([],{}):new g([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[f]=new g(n,e)),r}parseSegment(){let n=Wt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(n),new X(at(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=wi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Wt(this.remaining);i&&(r=i,this.capture(r))}n[at(e)]=at(r)}parseQueryParam(n){let e=Ii(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let o=Ti(this.remaining);o&&(r=o,this.capture(r))}let i=ln(e),s=ln(r);if(n.hasOwnProperty(i)){let o=n[i];Array.isArray(o)||(o=[o],n[i]=o),o.push(s)}else n[i]=s}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Wt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new C(4010,!1);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=f);let o=this.parseChildren();e[s]=Object.keys(o).length===1?o[f]:new g([],o),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new C(4011,!1)}};function An(t){return t.segments.length>0?new g([],{[f]:t}):t}function Tn(t){let n={};for(let[r,i]of Object.entries(t.children)){let s=Tn(i);if(r===f&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))n[o]=a;else(s.segments.length>0||s.hasChildren())&&(n[r]=s)}let e=new g(t.segments,n);return Oi(e)}function Oi(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new g(t.segments.concat(n.segments),n.children)}return t}function ee(t){return t instanceof F}function On(t,n,e=null,r=null){let i=Mn(t);return Dn(i,n,e,r)}function Mn(t){let n;function e(s){let o={};for(let u of s.children){let c=e(u);o[u.outlet]=c}let a=new g(s.url,o);return s===t&&(n=a),a}let r=e(t.root),i=An(r);return n??i}function Dn(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return Gt(i,i,i,e,r);let s=Mi(n);if(s.toRoot())return Gt(i,i,new g([],{}),e,r);let o=Di(s,i,t),a=o.processChildren?_e(o.segmentGroup,o.index,s.commands):Un(o.segmentGroup,o.index,s.commands);return Gt(i,o.segmentGroup,a,e,r)}function ct(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ke(t){return typeof t=="object"&&t!=null&&t.outlets}function Gt(t,n,e,r,i){let s={};r&&Object.entries(r).forEach(([u,c])=>{s[u]=Array.isArray(c)?c.map(p=>`${p}`):`${c}`});let o;t===n?o=e:o=En(t,n,e);let a=An(Tn(o));return new F(a,s,i)}function En(t,n,e){let r={};return Object.entries(t.children).forEach(([i,s])=>{s===n?r[i]=e:r[i]=En(s,n,e)}),new g(t.segments,r)}var lt=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&ct(r[0]))throw new C(4003,!1);let i=r.find(ke);if(i&&i!==Rn(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Mi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new lt(!0,0,t);let n=0,e=!1,r=t.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,s]},[]);return new lt(e,n,r)}var me=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Di(t,n,e){if(t.isAbsolute)return new me(n,!0,0);if(!e)return new me(n,!1,NaN);if(e.parent===null)return new me(e,!0,0);let r=ct(t.commands[0])?0:1,i=e.segments.length-1+r;return Ei(e,i,t.numberOfDoubleDots)}function Ei(t,n,e){let r=t,i=n,s=e;for(;s>i;){if(s-=i,r=r.parent,!r)throw new C(4005,!1);i=r.segments.length}return new me(r,!1,i-s)}function Ui(t){return ke(t[0])?t[0].outlets:{[f]:t}}function Un(t,n,e){if(t??=new g([],{}),t.segments.length===0&&t.hasChildren())return _e(t,n,e);let r=Ni(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let s=new g(t.segments.slice(0,r.pathIndex),{});return s.children[f]=new g(t.segments.slice(r.pathIndex),t.children),_e(s,0,i)}else return r.match&&i.length===0?new g(t.segments,{}):r.match&&!t.hasChildren()?er(t,n,e):r.match?_e(t,0,i):er(t,n,e)}function _e(t,n,e){if(e.length===0)return new g(t.segments,{});{let r=Ui(e),i={};if(Object.keys(r).some(s=>s!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let s=_e(t.children[f],n,e);return new g(t.segments,s.children)}return Object.entries(r).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=Un(t.children[s],n,o))}),Object.entries(t.children).forEach(([s,o])=>{r[s]===void 0&&(i[s]=o)}),new g(t.segments,i)}}function Ni(t,n,e){let r=0,i=n,s={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return s;let o=t.segments[i],a=e[r];if(ke(a))break;let u=`${a}`,c=r<e.length-1?e[r+1]:null;if(i>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!dn(u,c,o))return s;r+=2}else{if(!dn(u,{},o))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function er(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let s=e[i];if(ke(s)){let u=Pi(s.outlets);return new g(r,u)}if(i===0&&ct(e[0])){let u=t.segments[n];r.push(new X(u.path,hn(e[0]))),i++;continue}let o=ke(s)?s.outlets[f]:`${s}`,a=i<e.length-1?e[i+1]:null;o&&a&&ct(a)?(r.push(new X(o,hn(a))),i+=2):(r.push(new X(o,{})),i++)}return new g(r,{})}function Pi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=er(new g([],{}),0,r))}),n}function hn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function dn(t,n,e){return t==e.path&&$(n,e.parameters)}var ut="imperative",R=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(R||{}),D=class{id;url;constructor(n,e){this.id=n,this.url=e}},te=class extends D{type=R.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},E=class extends D{urlAfterRedirects;type=R.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(T||{}),Se=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Se||{}),z=class extends D{reason;code;type=R.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},q=class extends D{reason;code;type=R.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},ye=class extends D{error;target;type=R.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Le=class extends D{urlAfterRedirects;state;type=R.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ht=class extends D{urlAfterRedirects;state;type=R.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dt=class extends D{urlAfterRedirects;state;shouldActivate;type=R.GuardsCheckEnd;constructor(n,e,r,i,s){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ft=class extends D{urlAfterRedirects;state;type=R.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pt=class extends D{urlAfterRedirects;state;type=R.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gt=class{route;type=R.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},vt=class{route;type=R.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},mt=class{snapshot;type=R.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rt=class{snapshot;type=R.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},St=class{snapshot;type=R.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=R.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ce=class{routerEvent;position;anchor;type=R.Scroll;constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},$e=class{},we=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function xi(t,n){return t.providers&&!t._injector&&(t._injector=et(t.providers,n,`Route: ${t.path}`)),t._injector??n}function _(t){return t.outlet||f}function _i(t,n){let e=t.filter(r=>_(r)===n);return e.push(...t.filter(r=>_(r)!==n)),e}function We(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Ct=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return We(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new ce(this.rootInjector)}},ce=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Ct(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(Y(fe))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wt=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=tr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=tr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=rr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return rr(n,this._root).map(e=>e.value)}};function tr(t,n){if(t===n.value)return n;for(let e of n.children){let r=tr(t,e);if(r)return r}return null}function rr(t,n){if(t===n.value)return[n];for(let e of n.children){let r=rr(t,e);if(r.length)return r.unshift(n),r}return[]}var M=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ve(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var ze=class extends wt{snapshot;constructor(n,e){super(n),this.snapshot=e,lr(this,n)}toString(){return this.snapshot.toString()}};function Nn(t){let n=ji(t),e=new N([new X("",{})]),r=new N({}),i=new N({}),s=new N({}),o=new N(""),a=new B(e,r,s,o,i,f,t,n.root);return a.snapshot=n.root,new ze(new M(a,[]),n)}function ji(t){let n={},e={},r={},i="",s=new ae([],n,r,i,e,f,t,null,{});return new Fe("",new M(s,[]))}var B=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,s,o,a,u){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(v(c=>c[He]))??d(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(v(n=>ue(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(n=>ue(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function bt(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:l(l({},n.params),t.params),data:l(l({},n.data),t.data),resolve:l(l(l(l({},t.data),n.data),i?.data),t._resolvedData)}:r={params:l({},t.params),data:l({},t.data),resolve:l(l({},t.data),t._resolvedData??{})},i&&xn(i)&&(r.resolve[He]=i.title),r}var ae=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[He]}constructor(n,e,r,i,s,o,a,u,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=s,this.outlet=o,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ue(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ue(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Fe=class extends wt{url;constructor(n,e){super(e),this.url=n,lr(this,e)}toString(){return Pn(this._root)}};function lr(t,n){n.value._routerState=t,n.children.forEach(e=>lr(t,e))}function Pn(t){let n=t.children.length>0?` { ${t.children.map(Pn).join(", ")} } `:"";return`${t.value}${n}`}function Qt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,$(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),$(n.params,e.params)||t.paramsSubject.next(e.params),li(n.url,e.url)||t.urlSubject.next(e.url),$(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function nr(t,n){let e=$(t.params,n.params)&&pi(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||nr(t.parent,n.parent))}function xn(t){return typeof t.title=="string"||t.title===null}var _n=new A(""),hr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new oe;deactivateEvents=new oe;attachEvents=new oe;detachEvents=new oe;routerOutletData=kr(void 0);parentContexts=h(ce);location=h(qr);changeDetector=h(tt);inputBinder=h(Ge,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=e;let i=this.location,o=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new ir(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(o,{index:i.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[De]})}return t})(),ir=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===B?this.route:n===ce?this.childContexts:n===_n?this.outletData:this.parent.get(n,e)}},Ge=new A(""),dr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Xe([r.queryParams,r.params,r.data]).pipe(P(([s,o,a],u)=>(a=l(l(l({},s),o),a),u===0?d(a):Promise.resolve(a)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let o=rn(r.component);if(!o){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of o.inputs)e.activatedComponentRef.setInput(a,s[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac})}return t})(),fr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Vr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Zr(0,"router-outlet")},dependencies:[hr],encapsulation:2})}return t})();function pr(t){let n=t.children&&t.children.map(pr),e=n?U(l({},t),{children:n}):l({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=fr),e}function ki(t,n,e){let r=qe(t,n._root,e?e._root:void 0);return new ze(r,n)}function qe(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Li(t,n,e);return new M(r,i)}else{if(t.shouldAttach(n.value)){let s=t.retrieve(n.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(a=>qe(t,a)),o}}let r=$i(n.value),i=n.children.map(s=>qe(t,s));return new M(r,i)}}function Li(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return qe(t,r,i);return qe(t,r)})}function $i(t){return new B(new N(t.url),new N(t.params),new N(t.queryParams),new N(t.fragment),new N(t.data),t.outlet,t.component,t)}var be=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},jn="ngNavigationCancelingError";function It(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=ee(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=kn(!1,T.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function kn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[jn]=!0,e.cancellationCode=n,e}function zi(t){return Ln(t)&&ee(t.url)}function Ln(t){return!!t&&t[jn]}var Fi=(t,n,e,r)=>v(i=>(new or(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),or=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,s){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=s}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Qt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ve(e);n.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],r),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(n,e,r){let i=n.value,s=e?e.value:null;if(i===s)if(i.component){let o=r.getContext(i.outlet);o&&this.deactivateChildRoutes(n,e,o.children)}else this.deactivateChildRoutes(n,e,r);else s&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,s=ve(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(r&&r.outlet){let o=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:o,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,s=ve(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=ve(e);n.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],r),this.forwardEvent(new yt(s.value.snapshot))}),n.children.length&&this.forwardEvent(new Rt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,s=e?e.value:null;if(Qt(i),i===s)if(i.component){let o=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,o.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let o=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Qt(a.route.value),this.activateChildRoutes(n,null,o.children)}else o.attachRef=null,o.route=i,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(n,null,o.children)}else this.activateChildRoutes(n,null,r)}},At=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Re=class{component;route;constructor(n,e){this.component=n,this.route=e}};function qi(t,n,e){let r=t._root,i=n?n._root:null;return xe(r,i,e,[r.value])}function Bi(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ae(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Nr(t)?t:n.get(t):r}function xe(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=ve(n);return t.children.forEach(o=>{Vi(o,s[o.value.outlet],e,r.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>je(a,e.getContext(o),i)),i}function Vi(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let u=Hi(o,s,s.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new At(r)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?xe(t,n,a?a.children:null,r,i):xe(t,n,e,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Re(a.outlet.component,o))}else o&&je(n,a,i),i.canActivateChecks.push(new At(r)),s.component?xe(t,null,a?a.children:null,r,i):xe(t,null,e,r,i);return i}function Hi(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!se(t.url,n.url);case"pathParamsOrQueryParamsChange":return!se(t.url,n.url)||!$(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!nr(t,n)||!$(t.queryParams,n.queryParams);case"paramsChange":default:return!nr(t,n)}}function je(t,n,e){let r=ve(t),i=t.value;Object.entries(r).forEach(([s,o])=>{i.component?n?je(o,n.children.getContext(s),e):je(o,null,e):je(o,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Re(n.outlet.component,i)):e.canDeactivateChecks.push(new Re(null,i)):e.canDeactivateChecks.push(new Re(null,i))}function Qe(t){return typeof t=="function"}function Wi(t){return typeof t=="boolean"}function Gi(t){return t&&Qe(t.canLoad)}function Qi(t){return t&&Qe(t.canActivate)}function Ki(t){return t&&Qe(t.canActivateChild)}function Zi(t){return t&&Qe(t.canDeactivate)}function Yi(t){return t&&Qe(t.canMatch)}function $n(t){return t instanceof Ar||t?.name==="EmptyError"}var it=Symbol("INITIAL_VALUE");function Ie(){return P(t=>Xe(t.map(n=>n.pipe(de(1),Dr(it)))).pipe(v(n=>{for(let e of n)if(e!==!0){if(e===it)return it;if(e===!1||Xi(e))return e}return!0}),Q(n=>n!==it),de(1)))}function Xi(t){return ee(t)||t instanceof be}function Ji(t,n){return I(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return o.length===0&&s.length===0?d(U(l({},e),{guardsResult:!0})):eo(o,r,i,t).pipe(I(a=>a&&Wi(a)?to(r,s,t,n):d(a)),v(a=>U(l({},e),{guardsResult:a})))})}function eo(t,n,e,r){return b(t).pipe(I(i=>so(i.component,i.route,e,n,r)),Z(i=>i!==!0,!0))}function to(t,n,e,r){return b(n).pipe(ie(i=>Tr(no(i.route.parent,r),ro(i.route,r),oo(t,i.path,e),io(t,i.route,e))),Z(i=>i!==!0,!0))}function ro(t,n){return t!==null&&n&&n(new St(t)),d(!0)}function no(t,n){return t!==null&&n&&n(new mt(t)),d(!0)}function io(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return d(!0);let i=r.map(s=>_t(()=>{let o=We(n)??e,a=Ae(s,o),u=Qi(a)?a.canActivate(n,t):L(o,()=>a(n,t));return re(u).pipe(Z())}));return d(i).pipe(Ie())}function oo(t,n,e){let r=n[n.length-1],s=n.slice(0,n.length-1).reverse().map(o=>Bi(o)).filter(o=>o!==null).map(o=>_t(()=>{let a=o.guards.map(u=>{let c=We(o.node)??e,p=Ae(u,c),S=Ki(p)?p.canActivateChild(r,t):L(c,()=>p(r,t));return re(S).pipe(Z())});return d(a).pipe(Ie())}));return d(s).pipe(Ie())}function so(t,n,e,r,i){let s=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!s||s.length===0)return d(!0);let o=s.map(a=>{let u=We(n)??i,c=Ae(a,u),p=Zi(c)?c.canDeactivate(t,n,e,r):L(u,()=>c(t,n,e,r));return re(p).pipe(Z())});return d(o).pipe(Ie())}function ao(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return d(!0);let s=i.map(o=>{let a=Ae(o,t),u=Gi(a)?a.canLoad(n,e):L(t,()=>a(n,e));return re(u)});return d(s).pipe(Ie(),zn(r))}function zn(t){return br(y(n=>{if(typeof n!="boolean")throw It(t,n)}),v(n=>n===!0))}function uo(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return d(!0);let s=i.map(o=>{let a=Ae(o,t),u=Yi(a)?a.canMatch(n,e):L(t,()=>a(n,e));return re(u)});return d(s).pipe(Ie(),zn(r))}var Be=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Ve=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ge(t){return Oe(new Be(t))}function co(t){return Oe(new C(4e3,!1))}function lo(t){return Oe(kn(!1,T.GuardRejected))}var sr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return d(r);if(i.numberOfChildren>1||!i.children[f])return co(`${n.redirectTo}`);i=i.children[f]}}applyRedirectCommands(n,e,r,i,s){if(typeof e!="string"){let a=e,{queryParams:u,fragment:c,routeConfig:p,url:S,outlet:O,params:k,data:w,title:G}=i,V=L(s,()=>a({params:k,data:w,queryParams:u,fragment:c,routeConfig:p,url:S,outlet:O,title:G}));if(V instanceof F)throw new Ve(V);e=V}let o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new Ve(o);return o}applyRedirectCreateUrlTree(n,e,r,i){let s=this.createSegmentGroup(n,e.root,r,i);return new F(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,s])=>{if(typeof s=="string"&&s[0]===":"){let a=s.substring(1);r[i]=e[a]}else r[i]=s}),r}createSegmentGroup(n,e,r,i){let s=this.createSegments(n,e.segments,r,i),o={};return Object.entries(e.children).forEach(([a,u])=>{o[a]=this.createSegmentGroup(n,u,r,i)}),new g(s,o)}createSegments(n,e,r,i){return e.map(s=>s.path[0]===":"?this.findPosParam(n,s,i):this.findOrReturn(s,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new C(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}},ar={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ho(t,n,e,r,i){let s=Fn(t,n,e);return s.matched?(r=xi(n,r),uo(r,n,e,i).pipe(v(o=>o===!0?s:l({},ar)))):d(s)}function Fn(t,n,e){if(n.path==="**")return fo(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?l({},ar):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||vn)(e,t,n);if(!i)return l({},ar);let s={};Object.entries(i.posParams??{}).forEach(([a,u])=>{s[a]=u.path});let o=i.consumed.length>0?l(l({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:o,positionalParamSegments:i.posParams??{}}}function fo(t){return{matched:!0,parameters:t.length>0?Rn(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function fn(t,n,e,r){return e.length>0&&vo(t,e,r)?{segmentGroup:new g(n,go(r,new g(e,t.children))),slicedSegments:[]}:e.length===0&&mo(t,e,r)?{segmentGroup:new g(t.segments,po(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new g(t.segments,t.children),slicedSegments:e}}function po(t,n,e,r){let i={};for(let s of e)if(Ot(t,n,s)&&!r[_(s)]){let o=new g([],{});i[_(s)]=o}return l(l({},r),i)}function go(t,n){let e={};e[f]=n;for(let r of t)if(r.path===""&&_(r)!==f){let i=new g([],{});e[_(r)]=i}return e}function vo(t,n,e){return e.some(r=>Ot(t,n,r)&&_(r)!==f)}function mo(t,n,e){return e.some(r=>Ot(t,n,r))}function Ot(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Ro(t,n,e){return n.length===0&&!t.children[e]}var ur=class{};function So(t,n,e,r,i,s,o="emptyOnly"){return new cr(t,n,e,r,i,o,s).recognize()}var yo=31,cr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,s,o,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new sr(this.urlSerializer,this.urlTree)}noMatchError(n){return new C(4002,`'${n.segmentGroup}'`)}recognize(){let n=fn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(v(({children:e,rootSnapshot:r})=>{let i=new M(r,e),s=new Fe("",i),o=On(r,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(n){let e=new ae([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,f,e).pipe(v(r=>({children:r,rootSnapshot:e})),K(r=>{if(r instanceof Ve)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Be?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,s){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,s):this.processSegment(n,e,r,r.segments,i,!0,s).pipe(v(o=>o instanceof M?[o]:[]))}processChildren(n,e,r,i){let s=[];for(let o of Object.keys(r.children))o==="primary"?s.unshift(o):s.push(o);return b(s).pipe(ie(o=>{let a=r.children[o],u=_i(e,o);return this.processSegmentGroup(n,u,a,o,i)}),Mr((o,a)=>(o.push(...a),o)),jt(null),Or(),I(o=>{if(o===null)return ge(r);let a=qn(o);return Co(a),d(a)}))}processSegment(n,e,r,i,s,o,a){return b(e).pipe(ie(u=>this.processSegmentAgainstRoute(u._injector??n,e,u,r,i,s,o,a).pipe(K(c=>{if(c instanceof Be)return d(null);throw c}))),Z(u=>!!u),K(u=>{if($n(u))return Ro(r,i,s)?d(new ur):ge(r);throw u}))}processSegmentAgainstRoute(n,e,r,i,s,o,a,u){return _(r)!==o&&(o===f||!Ot(i,s,r))?ge(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,s,o,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,s,o,u):ge(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,s,o,a){let{matched:u,parameters:c,consumedSegments:p,positionalParamSegments:S,remainingSegments:O}=Fn(e,i,s);if(!u)return ge(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>yo&&(this.allowRedirects=!1));let k=new ae(s,c,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,pn(i),_(i),i.component??i._loadedComponent??null,i,gn(i)),w=bt(k,a,this.paramsInheritanceStrategy);k.params=Object.freeze(w.params),k.data=Object.freeze(w.data);let G=this.applyRedirects.applyRedirectCommands(p,i.redirectTo,S,k,n);return this.applyRedirects.lineralizeSegments(i,G).pipe(I(V=>this.processSegment(n,r,e,V.concat(O),o,!1,a)))}matchSegmentAgainstRoute(n,e,r,i,s,o){let a=ho(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),a.pipe(P(u=>u.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(P(({routes:c})=>{let p=r._loadedInjector??n,{parameters:S,consumedSegments:O,remainingSegments:k}=u,w=new ae(O,S,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,pn(r),_(r),r.component??r._loadedComponent??null,r,gn(r)),G=bt(w,o,this.paramsInheritanceStrategy);w.params=Object.freeze(G.params),w.data=Object.freeze(G.data);let{segmentGroup:V,slicedSegments:Nt}=fn(e,O,k,c);if(Nt.length===0&&V.hasChildren())return this.processChildren(p,c,V,w).pipe(v(Ye=>new M(w,Ye)));if(c.length===0&&Nt.length===0)return d(new M(w,[]));let ui=_(r)===s;return this.processSegment(p,c,V,Nt,ui?f:s,!0,w).pipe(v(Ye=>new M(w,Ye instanceof M?[Ye]:[])))}))):ge(e)))}getChildConfig(n,e,r){return e.children?d({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?d({routes:e._loadedRoutes,injector:e._loadedInjector}):ao(n,e,r,this.urlSerializer).pipe(I(i=>i?this.configLoader.loadChildren(n,e).pipe(y(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):lo(e))):d({routes:[],injector:n})}};function Co(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet))}function wo(t){let n=t.value.routeConfig;return n&&n.path===""}function qn(t){let n=[],e=new Set;for(let r of t){if(!wo(r)){n.push(r);continue}let i=n.find(s=>r.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=qn(r.children);n.push(new M(r.value,i))}return n.filter(r=>!e.has(r))}function pn(t){return t.data||{}}function gn(t){return t.resolve||{}}function bo(t,n,e,r,i,s){return I(o=>So(t,n,e,r,o.extractedUrl,i,s).pipe(v(({state:a,tree:u})=>U(l({},o),{targetSnapshot:a,urlAfterRedirects:u}))))}function Io(t,n){return I(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return d(e);let s=new Set(i.map(u=>u.route)),o=new Set;for(let u of s)if(!o.has(u))for(let c of Bn(u))o.add(c);let a=0;return b(o).pipe(ie(u=>s.has(u)?Ao(u,r,t,n):(u.data=bt(u,u.parent,t).resolve,d(void 0))),y(()=>a++),kt(1),I(u=>a===o.size?d(e):W))})}function Bn(t){let n=t.children.map(e=>Bn(e)).flat();return[t,...n]}function Ao(t,n,e,r){let i=t.routeConfig,s=t._resolve;return i?.title!==void 0&&!xn(i)&&(s[He]=i.title),To(s,t,n,r).pipe(v(o=>(t._resolvedData=o,t.data=bt(t,t.parent,e).resolve,null)))}function To(t,n,e,r){let i=Yt(t);if(i.length===0)return d({});let s={};return b(i).pipe(I(o=>Oo(t[o],n,e,r).pipe(Z(),y(a=>{if(a instanceof be)throw It(new J,a);s[o]=a}))),kt(1),v(()=>s),K(o=>$n(o)?W:Oe(o)))}function Oo(t,n,e,r){let i=We(n)??r,s=Ae(t,i),o=s.resolve?s.resolve(n,e):L(i,()=>s(n,e));return re(o)}function Kt(t){return P(n=>{let e=t(n);return e?b(e).pipe(v(()=>n)):d(n)})}var gr=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(s=>s.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[He]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:()=>h(Vn),providedIn:"root"})}return t})(),Vn=(()=>{class t extends gr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(Y(un))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),le=new A("",{providedIn:"root",factory:()=>({})}),he=new A(""),Mt=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=h(tn);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return d(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=re(e.loadComponent()).pipe(v(Wn),y(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),Je(()=>{this.componentLoaders.delete(e)})),i=new xt(r,()=>new H).pipe(Pt());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return d({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=Hn(r,this.compiler,e,this.onLoadEndListener).pipe(Je(()=>{this.childrenLoaders.delete(r)})),o=new xt(s,()=>new H).pipe(Pt());return this.childrenLoaders.set(r,o),o}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Hn(t,n,e,r){return re(t.loadChildren()).pipe(v(Wn),I(i=>i instanceof Br||Array.isArray(i)?d(i):b(n.compileModuleAsync(i))),v(i=>{r&&r(t);let s,o,a=!1;return Array.isArray(i)?(o=i,a=!0):(s=i.create(e).injector,o=s.get(he,[],{optional:!0,self:!0}).flat()),{routes:o.map(pr),injector:s}}))}function Mo(t){return t&&typeof t=="object"&&"default"in t}function Wn(t){return Mo(t)?t.default:t}var Dt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:()=>h(Do),providedIn:"root"})}return t})(),Do=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vr=new A(""),mr=new A("");function Gn(t,n,e){let r=t.get(mr),i=t.get(nn);return t.get(Ee).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let s,o=new Promise(c=>{s=c}),a=i.startViewTransition(()=>(s(),Eo(t))),{onViewTransitionCreated:u}=r;return u&&L(t,()=>u({transition:a,from:n,to:e})),o})}function Eo(t){return new Promise(n=>{$r({read:()=>setTimeout(n)},{injector:t})})}var Rr=new A(""),Ke=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new H;transitionAbortSubject=new H;configLoader=h(Mt);environmentInjector=h(fe);destroyRef=h(_r);urlSerializer=h(ne);rootContexts=h(ce);location=h(pe);inputBindingEnabled=h(Ge,{optional:!0})!==null;titleStrategy=h(gr);options=h(le,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=h(Dt);createViewTransition=h(vr,{optional:!0});navigationErrorHandler=h(Rr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>d(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new gt(i)),r=i=>this.events.next(new vt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;this.transitions?.next(U(l({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))}setupNavigations(e){return this.transitions=new N(null),this.transitions.pipe(Q(r=>r!==null),P(r=>{let i=!1,s=!1;return d(r).pipe(P(o=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",T.SupersededByNewNavigation),W;this.currentTransition=r,this.currentNavigation={id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?U(l({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&u!=="reload"){let c="";return this.events.next(new q(o.id,this.urlSerializer.serialize(o.rawUrl),c,Se.IgnoredSameUrlNavigation)),o.resolve(!1),W}if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return d(o).pipe(P(c=>(this.events.next(new te(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?W:Promise.resolve(c))),bo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),y(c=>{r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation=U(l({},this.currentNavigation),{finalUrl:c.urlAfterRedirects});let p=new Le(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(p)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:c,extractedUrl:p,source:S,restoredState:O,extras:k}=o,w=new te(c,this.urlSerializer.serialize(p),S,O);this.events.next(w);let G=Nn(this.rootComponentType).snapshot;return this.currentTransition=r=U(l({},o),{targetSnapshot:G,urlAfterRedirects:p,extras:U(l({},k),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=p,d(r)}else{let c="";return this.events.next(new q(o.id,this.urlSerializer.serialize(o.extractedUrl),c,Se.IgnoredByUrlHandlingStrategy)),o.resolve(!1),W}}),y(o=>{let a=new ht(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(a)}),v(o=>(this.currentTransition=r=U(l({},o),{guards:qi(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),r)),Ji(this.environmentInjector,o=>this.events.next(o)),y(o=>{if(r.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw It(this.urlSerializer,o.guardsResult);let a=new dt(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(a)}),Q(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",T.GuardRejected),!1)),Kt(o=>{if(o.guards.canActivateChecks.length!==0)return d(o).pipe(y(a=>{let u=new ft(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),P(a=>{let u=!1;return d(a).pipe(Io(this.paramsInheritanceStrategy,this.environmentInjector),y({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(a,"",T.NoDataFromResolver)}}))}),y(a=>{let u=new pt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}))}),Kt(o=>{let a=u=>{let c=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(u.routeConfig).pipe(y(p=>{u.component=p}),v(()=>{})));for(let p of u.children)c.push(...a(p));return c};return Xe(a(o.targetSnapshot.root)).pipe(jt(null),de(1))}),Kt(()=>this.afterPreactivation()),P(()=>{let{currentSnapshot:o,targetSnapshot:a}=r,u=this.createViewTransition?.(this.environmentInjector,o.root,a.root);return u?b(u).pipe(v(()=>r)):d(r)}),v(o=>{let a=ki(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=r=U(l({},o),{targetRouterState:a}),this.currentNavigation.targetRouterState=a,r}),y(()=>{this.events.next(new $e)}),Fi(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),de(1),y({next:o=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new E(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),Er(this.transitionAbortSubject.pipe(y(o=>{throw o}))),Je(()=>{!i&&!s&&this.cancelNavigationTransition(r,"",T.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),K(o=>{if(this.destroyed)return r.resolve(!1),W;if(s=!0,Ln(o))this.events.next(new z(r.id,this.urlSerializer.serialize(r.extractedUrl),o.message,o.cancellationCode)),zi(o)?this.events.next(new we(o.url,o.navigationBehaviorOptions)):r.resolve(!1);else{let a=new ye(r.id,this.urlSerializer.serialize(r.extractedUrl),o,r.targetSnapshot??void 0);try{let u=L(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(u instanceof be){let{message:c,cancellationCode:p}=It(this.urlSerializer,u);this.events.next(new z(r.id,this.urlSerializer.serialize(r.extractedUrl),c,p)),this.events.next(new we(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(a),o}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return W}))}))}cancelNavigationTransition(e,r,i){let s=new z(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Uo(t){return t!==ut}var Qn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:()=>h(No),providedIn:"root"})}return t})(),Tt=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},No=(()=>{class t extends Tt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=$t(t)))(i||t)}})();static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Kn=(()=>{class t{urlSerializer=h(ne);options=h(le,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=h(pe);urlHandlingStrategy=h(Dt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new F;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let s=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,o=i??s;return o instanceof F?this.urlSerializer.serialize(o):o}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=Nn(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:()=>h(Po),providedIn:"root"})}return t})(),Po=(()=>{class t extends Kn{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof te?this.updateStateMemento():e instanceof q?this.commitTransition(r):e instanceof Le?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof $e?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof z&&(e.code===T.GuardRejected||e.code===T.NoDataFromResolver)?this.restoreHistory(r):e instanceof ye?this.restoreHistory(r,!0):e instanceof E&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:s,state:o}=r;if(this.location.isCurrentPathEqualTo(e)||s){let a=this.browserPageId,u=l(l({},o),this.generateNgRouterState(i,a));this.location.replaceState(e,"",u)}else{let a=l(l({},o),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.getCurrentUrlTree()===e.finalUrl&&s===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=$t(t)))(i||t)}})();static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Et(t,n){t.events.pipe(Q(e=>e instanceof E||e instanceof z||e instanceof ye||e instanceof q),v(e=>e instanceof E||e instanceof q?0:(e instanceof z?e.code===T.Redirect||e.code===T.SupersededByNewNavigation:!1)?2:1),Q(e=>e!==2),de(1)).subscribe(()=>{n()})}var xo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_o={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},j=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=h(Wr);stateManager=h(Kn);options=h(le,{optional:!0})||{};pendingTasks=h(jr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=h(Ke);urlSerializer=h(ne);location=h(pe);urlHandlingStrategy=h(Dt);_events=new H;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=h(Qn);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=h(he,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!h(Ge,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new wr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof z&&r.code!==T.Redirect&&r.code!==T.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof E)this.navigated=!0;else if(r instanceof we){let o=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),u=l({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Uo(i.source)},o);this.scheduleNavigation(a,ut,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}ko(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ut,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i)=>{this.navigateToSyncWithBrowser(e,i,r)})}navigateToSyncWithBrowser(e,r,i){let s={replaceUrl:!0},o=i?.navigationId?i:null;if(i){let u=l({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let a=this.parseUrl(e);this.scheduleNavigation(a,r,o,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(pr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:u}=r,c=u?this.currentUrlTree.fragment:o,p=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":p=l(l({},this.currentUrlTree.queryParams),s);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=s||null}p!==null&&(p=this.removeEmptyProps(p));let S;try{let O=i?i.snapshot:this.routerState.snapshot.root;S=Mn(O)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),S=this.currentUrlTree.root}return Dn(S,e,p,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=ee(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,ut,null,r)}navigate(e,r={skipLocationChange:!1}){return jo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=l({},xo):r===!1?i=l({},_o):i=r,ee(e))return cn(this.currentUrlTree,e,i);let s=this.parseUrl(e);return cn(this.currentUrlTree,s,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,s])=>(s!=null&&(r[i]=s),r),{})}scheduleNavigation(e,r,i,s,o){if(this.disposed)return Promise.resolve(!1);let a,u,c;o?(a=o.resolve,u=o.reject,c=o.promise):c=new Promise((S,O)=>{a=S,u=O});let p=this.pendingTasks.add();return Et(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:s,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(S=>Promise.reject(S))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new C(4008,!1)}function ko(t){return!(t instanceof $e)&&!(t instanceof we)}var Ut=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new H;constructor(e,r,i,s,o,a){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=s,this.el=o,this.locationStrategy=a;let u=o.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof E&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ee(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,s,o){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||s||o||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let r=this.href===null?null:zr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let i=this.renderer,s=this.el.nativeElement;r!==null?i.setAttribute(s,e,r):i.removeAttribute(s,e)}get urlTree(){return this.routerLinkInput===null?null:ee(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(x(j),x(B),xr("tabindex"),x(qt),x(Ft),x(Ne))};static \u0275dir=Ue({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&Yr("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),r&2&&Kr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",rt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",rt],replaceUrl:[2,"replaceUrl","replaceUrl",rt],routerLink:"routerLink"},features:[De]})}return t})(),Lo=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new oe;constructor(e,r,i,s,o){this.router=e,this.element=r,this.renderer=i,this.cdr=s,this.link=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof E&&this.update()})}ngAfterContentInit(){d(this.links.changes,d(null)).pipe(Me()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=b(e).pipe(Me()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=$o(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?e.isActive(s,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(x(j),x(Ft),x(qt),x(tt),x(Ut,8))};static \u0275dir=Ue({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,s){if(r&1&&Xr(s,Ut,5),r&2){let o;Jr(o=en())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[De]})}return t})();function $o(t){return!!t.paths}var Ze=class{},zo=(()=>{class t{preload(e,r){return r().pipe(K(()=>d(null)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Zn=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,s){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Q(e=>e instanceof E),ie(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){let i=[];for(let s of r){s.providers&&!s._injector&&(s._injector=et(s.providers,e,`Route: ${s.path}`));let o=s._injector??e,a=s._loadedInjector??o;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&i.push(this.preloadConfig(o,s)),(s.children||s._loadedRoutes)&&i.push(this.processRoutes(a,s.children??s._loadedRoutes))}return b(i).pipe(Me())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=d(null);let s=i.pipe(I(o=>o===null?d(void 0):(r._loadedRoutes=o.routes,r._loadedInjector=o.injector,this.processRoutes(o.injector??e,o.routes))));if(r.loadComponent&&!r._loadedComponent){let o=this.loader.loadComponent(r);return b([s,o]).pipe(Me())}else return s})}static \u0275fac=function(r){return new(r||t)(Y(j),Y(fe),Y(Ze),Y(Mt))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yr=new A(""),Yn=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,r,i,s,o={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=s,this.options=o,o.scrollPositionRestoration||="disabled",o.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof te?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof E?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof q&&e.code===Se.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ce&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ce(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Fr()};static \u0275prov=m({token:t,factory:t.\u0275fac})}return t})();function Fo(t,...n){return Pr([{provide:he,multi:!0,useValue:t},[],{provide:B,useFactory:Xn,deps:[j]},{provide:Vt,multi:!0,useFactory:Jn},n.map(e=>e.\u0275providers)])}function Xn(t){return t.routerState.root}function Te(t,n){return{\u0275kind:t,\u0275providers:n}}function qo(t={}){return Te(4,[{provide:yr,useFactory:()=>{let e=h(Ht),r=h(Ee),i=h(Ke),s=h(ne);return new Yn(s,i,e,r,t)}}])}function Jn(){let t=h(zt);return n=>{let e=t.get(Qr);if(n!==e.components[0])return;let r=t.get(j),i=t.get(ei);t.get(Cr)===1&&r.initialNavigation(),t.get(ni,null,Lt.Optional)?.setUpPreloading(),t.get(yr,null,Lt.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ei=new A("",{factory:()=>new H}),Cr=new A("",{providedIn:"root",factory:()=>1});function ti(){let t=[{provide:Cr,useValue:0},Bt(()=>{let n=h(zt);return n.get(on,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(j),s=n.get(ei);Et(i,()=>{r(!0)}),n.get(Ke).afterPreactivation=()=>(r(!0),s.closed?d(void 0):s),i.initialNavigation()}))})];return Te(2,t)}function ri(){let t=[Bt(()=>{h(j).setUpLocationChangeListener()}),{provide:Cr,useValue:2}];return Te(3,t)}var ni=new A("");function ii(t){return Te(0,[{provide:ni,useExisting:Zn},{provide:Ze,useExisting:t}])}function oi(){return Te(8,[dr,{provide:Ge,useExisting:dr}])}function si(t){Lr("NgRouterViewTransitions");let n=[{provide:vr,useValue:Gn},{provide:mr,useValue:l({skipNextTransition:!!t?.skipInitialTransition},t)}];return Te(9,n)}var ai=[pe,{provide:ne,useClass:J},j,ce,{provide:B,useFactory:Xn,deps:[j]},Mt,[]],Bo=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[ai,[],{provide:he,multi:!0,useValue:e},[],r?.errorHandler?{provide:Rr,useValue:r.errorHandler}:[],{provide:le,useValue:r||{}},r?.useHash?Ho():Wo(),Vo(),r?.preloadingStrategy?ii(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Go(r):[],r?.bindToComponentInputs?oi().\u0275providers:[],r?.enableViewTransitions?si().\u0275providers:[],Qo()]}}static forChild(e){return{ngModule:t,providers:[{provide:he,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Hr({type:t});static \u0275inj=Ur({})}return t})();function Vo(){return{provide:yr,useFactory:()=>{let t=h(Ht),n=h(Ee),e=h(le),r=h(Ke),i=h(ne);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Yn(i,r,t,n,e)}}}function Ho(){return{provide:Ne,useClass:an}}function Wo(){return{provide:Ne,useClass:sn}}function Go(t){return[t.initialNavigation==="disabled"?ri().\u0275providers:[],t.initialNavigation==="enabledBlocking"?ti().\u0275providers:[]]}var Sr=new A("");function Qo(){return[{provide:Sr,useFactory:Jn},{provide:Vt,multi:!0,useExisting:Sr}]}export{E as a,B as b,hr as c,j as d,Ut as e,Lo as f,zo as g,Fo as h,qo as i,ii as j,oi as k,Bo as l};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-ZOMQLK4A.js";import"./chunk-GQ7SPEZH.js";import"./chunk-WL6ZZCYW.js";import"./chunk-DZCJWJUG.js";import"./chunk-VQ62YSFR.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import"./chunk-DM2JLWKE.js";import"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var o=[{path:"",canActivate:[a],children:[{path:"",loadComponent:()=>import("./chunk-GN7VAGHH.js").then(t=>t.Dashboard1Component),data:{title:"Dashboard",headerTemplate:"header"}}]}];export{o as DashboardRoutes};
@@ -1 +1 @@
1
- import"./chunk-YQFG5XE2.js";var t=[{path:"",redirectTo:"users",pathMatch:"full"},{path:"",children:[{path:"users",loadComponent:()=>import("./chunk-ZY4AYAWJ.js").then(o=>o.UserPageComponent)},{path:"groups",loadComponent:()=>import("./chunk-X3FAXRYR.js").then(o=>o.GroupPageComponent)},{path:"groups/forms",loadComponent:()=>import("./chunk-RDQ7RWJC.js").then(o=>o.GroupFormComponent)}]}];export{t as USERS_ROUTES};
1
+ import"./chunk-YQFG5XE2.js";var t=[{path:"",redirectTo:"users",pathMatch:"full"},{path:"",children:[{path:"users",loadComponent:()=>import("./chunk-32QC4JFI.js").then(o=>o.UserPageComponent)},{path:"groups",loadComponent:()=>import("./chunk-D5WBKKO2.js").then(o=>o.GroupPageComponent)},{path:"groups/forms",loadComponent:()=>import("./chunk-R45WWOYD.js").then(o=>o.GroupFormComponent)}]}];export{t as USERS_ROUTES};
@@ -0,0 +1 @@
1
+ import{a as y,b as z}from"./chunk-NTVIX4GB.js";import"./chunk-JPNJTPYJ.js";import{m as V}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as j,b as R}from"./chunk-5U7KZJ3H.js";import"./chunk-FHJOSHI3.js";import{i as q}from"./chunk-JPKZVL57.js";import"./chunk-VM56C6ZV.js";import{a as N,b as G}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as O,x as D,y as H,z as L}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-VQ62YSFR.js";import"./chunk-G3BJCT7T.js";import{a as I}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as $,u as F}from"./chunk-DM2JLWKE.js";import{Dc as P,Eb as x,Ec as b,Mb as s,Oc as c,Pb as C,Pc as l,Rb as h,Sc as S,W as M,Wb as n,Xb as o,Y as k,Yb as u,ac as v,fc as T,gc as a,h as E,ia as m,ib as r,qa as g,ra as _,s as f,sa as w,ta as A,yb as B}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var J=()=>({height:"calc(100vh - 100px)"});function K(t,d){if(t&1){let e=v();n(0,"p-button",6),T("onClick",function(){g(e);let p=a(2);return _(p.onFormat())}),o()}}function Q(t,d){if(t&1){let e=v();n(0,"p-button",7),c(1,"async"),c(2,"async"),T("onClick",function(){g(e);let p=a(2);return _(p.onMigrate())}),o()}if(t&2){let e=a(2);s("disabled",l(1,2,e.countInBooks$)!==0)("pTooltip",l(2,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function U(t,d){if(t&1&&(n(0,"div",3),x(1,K,1,0,"p-button",4)(2,Q,3,6,"p-button",5),o()),t&2){let e=a();r(),h(e.roleService.permissions().migrate.delete?1:-1),r(),h(e.roleService.permissions().migrate.create?2:-1)}}function W(t,d){if(t&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",8),u(3,"app-migration-cards",9),c(4,"async"),w(),n(5,"svg",10),u(6,"path",11),o(),A(),u(7,"app-migration-cards",12),c(8,"async"),o()()()),t&2){let e=a();C(b(12,J)),r(),C(b(13,J)),r(2),s("migrationCount",l(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),r(4),s("migrationCount",l(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var _e=(()=>{class t{constructor(){this.migrateService=m(y),this.toastr=m(I),this.refresh$=new E(void 0),this.pageTitle="Expense Account",this.roleService=m(V)}ngOnInit(){let e=this.refresh$.pipe(k(()=>this.migrateService.getExpenseAccountCount()),M(1));this.countInPOS$=e.pipe(f(i=>Number(i.pos))),this.countInBooks$=e.pipe(f(i=>Number(i.books)))}onMigrate(){this.migrateService.migrateExpenseAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatExpenseAccount().subscribe(i=>{this.refresh$.next(),this.toastr.success(i.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=B({type:t,selectors:[["app-expense-account"]],features:[P([y])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Create","tooltipPosition","left",3,"disabled","pTooltip"],["label","Format","severity","danger",3,"onClick"],["label","Create","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(i,p){i&1&&(n(0,"app-main-panel",2),x(1,U,3,2,"ng-template",null,0,S)(3,W,9,14,"ng-template",null,1,S),o()),i&2&&s("pageTitle",p.pageTitle)},dependencies:[q,F,$,R,j,G,N,L,H,z,D,O],encapsulation:2})}}return t})();export{_e as ExpenseAccountComponent};
@@ -0,0 +1 @@
1
+ import{a as J}from"./chunk-52PEVPZN.js";import{m as A}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as G,b as H}from"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import"./chunk-FMAG3RQL.js";import{i as q}from"./chunk-JPKZVL57.js";import"./chunk-VM56C6ZV.js";import{a as Z,b as I}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as D,x as F}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{e as N,j as W,x as j}from"./chunk-MGIEURA2.js";import"./chunk-VQ62YSFR.js";import"./chunk-G3BJCT7T.js";import{a as R}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as B,u as P}from"./chunk-DM2JLWKE.js";import{Ac as E,Bc as L,Cc as g,Eb as p,Ha as x,Mb as z,Oc as V,Pc as k,Rb as v,Sc as s,W as C,Wb as n,Xb as l,_ as T,ac as f,fc as w,gc as r,ia as a,ib as S,qa as d,ra as u,sc as _,xc as y,yb as h,yc as M,zc as b}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";function K(e,c){if(e&1){let t=f();n(0,"p-button",5),w("onClick",function(){d(t);let i=r(2),m=g(0);return u(i.onSaveTimezone(m))}),l()}}function O(e,c){if(e&1&&p(0,K,1,0,"p-button",4),e&2){let t=r();v(t.roleService.permissions().accountingSetup.create||t.roleService.permissions().accountingSetup.edit?0:-1)}}function Q(e,c){e&1&&(n(0,"div",9)(1,"div",10),_(2,"Timezone Configuration"),l(),n(3,"small",11),_(4,"Set the timezone to ensure that all journals and date filtering follow this timezone"),l()())}function U(e,c){if(e&1){let t=f();n(0,"p-panel"),p(1,Q,5,0,"ng-template",null,2,s),n(3,"div",6)(4,"div",7)(5,"p-select",8),b("ngModelChange",function(i){d(t);let m=r();return M(m.selectedTimezone,i)||(m.selectedTimezone=i),u(i)}),l()()()()}if(e&2){let t=r(),o=g(0);S(5),y("ngModel",t.selectedTimezone),z("filter",!0)("fluid",!0)("options",o==null||o.options==null?null:o.options.timezones)("showClear",!0)}}var _e=(()=>{class e{constructor(){this.selectedTimezone=x(null),this.roleService=a(A),this.setupService=a(J),this.loader$=this.setupService.fetchLoaderConfiguration().pipe(T(t=>{this.selectedTimezone.set(t?.form?.timeZone||null)}),C(1)),this.toastr=a(R)}onSaveTimezone(t){let o=t.form;o.timeZone=this.selectedTimezone(),this.setupService.updateAccountingIntegrationConfiguration({form:o}).subscribe()}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=h({type:e,selectors:[["app-timezone"]],decls:7,vars:3,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Timezone"],["icon","fa-solid fa-floppy-disk","label","Save"],["icon","fa-solid fa-floppy-disk","label","Save",3,"onClick"],[1,"row"],[1,"col-6"],["appendTo","body","optionLabel","displayName","optionValue","id","placeholder","Select Timezone",3,"ngModelChange","ngModel","filter","fluid","options","showClear"],[1,"d-flex","flex-column","px-2"],[1,"mb-0","fw-normal","fs-4"],[1,"fst-italic","text-muted"]],template:function(o,i){o&1&&(E(0),V(1,"async"),n(2,"app-main-panel",3),p(3,O,1,1,"ng-template",null,0,s)(5,U,6,5,"ng-template",null,1,s),l()),o&2&&L(k(1,0,i.loader$))},dependencies:[P,B,j,N,W,q,I,Z,F,D,H,G],encapsulation:2})}}return e})();export{_e as TimezoneComponent};
@@ -1,4 +1,4 @@
1
- import{a as G}from"./chunk-ME4ALIS7.js";import{Ja as P,Ka as A,La as H,Ma as g,Ua as V,sa as z}from"./chunk-VMI3QWC6.js";import{h as R,k as w,l as O,m as N,s as B}from"./chunk-ZK43JB4A.js";import{$b as y,Cb as k,Dc as q,Eb as c,Ha as x,Lb as D,Mb as r,Qb as $,Wb as f,Xb as u,Zb as b,_b as v,ca as S,da as F,gc as _,hc as j,ia as I,ib as i,ic as h,lc as p,nc as d,oc as s,sc as C,tc as Q,ua as T,yb as E,zb as M}from"./chunk-6QJHEOXN.js";var K=["header"],L=["title"],U=["subtitle"],W=["content"],X=["footer"],Y=["*",[["p-header"]],[["p-footer"]]],Z=["*","p-header","p-footer"];function ee(e,o){e&1&&y(0)}function te(e,o){if(e&1&&(f(0,"div",8),h(1,1),c(2,ee,1,0,"ng-container",6),u()),e&2){let t=_();i(2),r("ngTemplateOutlet",t.headerTemplate||t._headerTemplate)}}function ne(e,o){if(e&1&&(b(0),C(1),v()),e&2){let t=_(2);i(),Q(t.header)}}function ae(e,o){e&1&&y(0)}function ie(e,o){if(e&1&&(f(0,"div",9),c(1,ne,2,1,"ng-container",10)(2,ae,1,0,"ng-container",6),u()),e&2){let t=_();i(),r("ngIf",t.header&&!t._titleTemplate&&!t.titleTemplate),i(),r("ngTemplateOutlet",t.titleTemplate||t._titleTemplate)}}function re(e,o){if(e&1&&(b(0),C(1),v()),e&2){let t=_(2);i(),Q(t.subheader)}}function oe(e,o){e&1&&y(0)}function le(e,o){if(e&1&&(f(0,"div",11),c(1,re,2,1,"ng-container",10)(2,oe,1,0,"ng-container",6),u()),e&2){let t=_();i(),r("ngIf",t.subheader&&!t._subtitleTemplate&&!t.subtitleTemplate),i(),r("ngTemplateOutlet",t.subtitleTemplate||t._subtitleTemplate)}}function ce(e,o){e&1&&y(0)}function pe(e,o){e&1&&y(0)}function de(e,o){if(e&1&&(f(0,"div",12),h(1,2),c(2,pe,1,0,"ng-container",6),u()),e&2){let t=_();i(2),r("ngTemplateOutlet",t.footerTemplate||t._footerTemplate)}}var se=({dt:e})=>`
1
+ import{a as G}from"./chunk-O44DI62I.js";import{Ka as P,La as A,Ma as H,Na as g,Va as V,ta as z}from"./chunk-MGIEURA2.js";import{j as R,m as w,n as O,o as N,u as B}from"./chunk-DM2JLWKE.js";import{$b as y,Cb as k,Dc as q,Eb as c,Ha as x,Lb as D,Mb as r,Qb as $,Wb as f,Xb as u,Zb as b,_b as v,ca as S,da as F,gc as _,hc as j,ia as I,ib as i,ic as h,lc as p,nc as d,oc as s,sc as C,tc as Q,ua as T,yb as E,zb as M}from"./chunk-6QJHEOXN.js";var K=["header"],L=["title"],U=["subtitle"],W=["content"],X=["footer"],Y=["*",[["p-header"]],[["p-footer"]]],Z=["*","p-header","p-footer"];function ee(e,o){e&1&&y(0)}function te(e,o){if(e&1&&(f(0,"div",8),h(1,1),c(2,ee,1,0,"ng-container",6),u()),e&2){let t=_();i(2),r("ngTemplateOutlet",t.headerTemplate||t._headerTemplate)}}function ne(e,o){if(e&1&&(b(0),C(1),v()),e&2){let t=_(2);i(),Q(t.header)}}function ae(e,o){e&1&&y(0)}function ie(e,o){if(e&1&&(f(0,"div",9),c(1,ne,2,1,"ng-container",10)(2,ae,1,0,"ng-container",6),u()),e&2){let t=_();i(),r("ngIf",t.header&&!t._titleTemplate&&!t.titleTemplate),i(),r("ngTemplateOutlet",t.titleTemplate||t._titleTemplate)}}function re(e,o){if(e&1&&(b(0),C(1),v()),e&2){let t=_(2);i(),Q(t.subheader)}}function oe(e,o){e&1&&y(0)}function le(e,o){if(e&1&&(f(0,"div",11),c(1,re,2,1,"ng-container",10)(2,oe,1,0,"ng-container",6),u()),e&2){let t=_();i(),r("ngIf",t.subheader&&!t._subtitleTemplate&&!t.subtitleTemplate),i(),r("ngTemplateOutlet",t.subtitleTemplate||t._subtitleTemplate)}}function ce(e,o){e&1&&y(0)}function pe(e,o){e&1&&y(0)}function de(e,o){if(e&1&&(f(0,"div",12),h(1,2),c(2,pe,1,0,"ng-container",6),u()),e&2){let t=_();i(2),r("ngTemplateOutlet",t.footerTemplate||t._footerTemplate)}}var se=({dt:e})=>`
2
2
  .p-card {
3
3
  background: ${e("card.background")};
4
4
  color: ${e("card.color")};
@@ -1 +1 @@
1
- import{h as p}from"./chunk-ME4ALIS7.js";import{Cb as s,Lb as l,Qb as C,Wb as c,Xb as m,Yb as d,sa as i,ua as a,yb as r}from"./chunk-6QJHEOXN.js";var u=(()=>{class t extends p{static \u0275fac=(()=>{let n;return function(e){return(n||(n=a(t)))(e||t)}})();static \u0275cmp=r({type:t,selectors:[["ChevronDownIcon"]],features:[s],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(o,e){o&1&&(i(),c(0,"svg",0),d(1,"path",1),m()),o&2&&(C(e.getClassNames()),l("aria-label",e.ariaLabel)("aria-hidden",e.ariaHidden)("role",e.role))},encapsulation:2})}return t})();export{u as a};
1
+ import{h as p}from"./chunk-O44DI62I.js";import{Cb as s,Lb as l,Qb as C,Wb as c,Xb as m,Yb as d,sa as i,ua as a,yb as r}from"./chunk-6QJHEOXN.js";var u=(()=>{class t extends p{static \u0275fac=(()=>{let n;return function(e){return(n||(n=a(t)))(e||t)}})();static \u0275cmp=r({type:t,selectors:[["ChevronDownIcon"]],features:[s],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(o,e){o&1&&(i(),c(0,"svg",0),d(1,"path",1),m()),o&2&&(C(e.getClassNames()),l("aria-label",e.ariaLabel)("aria-hidden",e.ariaHidden)("role",e.role))},encapsulation:2})}return t})();export{u as a};
@@ -1 +1 @@
1
- import{t as _}from"./chunk-ZK43JB4A.js";import{Bb as N,Ga as K,Ha as g,La as A,ad as S,bd as m,ca as y,cd as E,fa as T,ia as h,xa as $}from"./chunk-6QJHEOXN.js";import{a as c,b as u}from"./chunk-YQFG5XE2.js";var ce=(()=>{class t{transform(e,o=50,r=!1,a="..."){if(!e||typeof e!="string")return"";if(e.length<=o)return e;let i=e.substring(0,o);if(r){let s=i.lastIndexOf(" ");s>0&&(i=i.substring(0,s))}return i+a}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275pipe=N({name:"truncate",type:t,pure:!0})}}return t})();function R(t){let n=S(()=>t());return J(n)?new Proxy(t,{get(e,o){return o in n?(K(e[o])||Object.defineProperty(e,o,{value:m(()=>e()[o]),configurable:!0}),R(e[o])):e[o]}}):t}var H=[WeakSet,WeakMap,Promise,Date,Error,RegExp,ArrayBuffer,DataView,Function];function J(t){if(t===null||typeof t!="object"||q(t))return!1;let n=Object.getPrototypeOf(t);if(n===Object.prototype)return!0;for(;n&&n!==Object.prototype;){if(H.includes(n.constructor))return!1;n=Object.getPrototypeOf(n)}return n===Object.prototype}function q(t){return typeof t?.[Symbol.iterator]=="function"}var G=new WeakMap,d=Symbol("STATE_SOURCE");function I(t,...n){t[d].update(e=>n.reduce((o,r)=>c(c({},o),typeof r=="function"?r(o):r),e)),Y(t)}function j(t){return t[d]()}function Q(t){return G.get(t[d])||[]}function Y(t){let n=Q(t);for(let e of n){let o=S(()=>j(t));e(o)}}function F(...t){let n=[...t],e=typeof n[0]=="function"?{}:n.shift(),o=n;return(()=>{class a{constructor(){let s=o.reduce((p,X)=>X(p),Z()),{stateSignals:l,props:f,methods:w,hooks:B}=s,M=c(c(c({},l),f),w);this[d]=s[d];for(let p of Reflect.ownKeys(M))this[p]=M[p];let{onInit:x,onDestroy:P}=B;x&&x(),P&&h($).onDestroy(P)}static \u0275fac=function(l){return new(l||a)};static \u0275prov=y({token:a,factory:a.\u0275fac,providedIn:e.providedIn||null})}return a})()}function Z(){return{[d]:g({}),stateSignals:{},props:{},methods:{},hooks:{}}}function k(t,...n){let e=typeof t=="function"?[t,...n]:n;return o=>e.reduce((r,a)=>a(r),o)}function z(t){return n=>{let e=t(c(c(c({[d]:n[d]},n.stateSignals),n.props),n.methods));return Reflect.ownKeys(e),u(c({},n),{props:c(c({},n.props),e)})}}function ee(t){return z(t)}function U(t){return n=>{let e=c(c(c({[d]:n[d]},n.stateSignals),n.props),n.methods),o=typeof t=="function"?t(e):t,r=a=>{let i=o[a],s=n.hooks[a];return i?()=>{s&&s(),i(e)}:s};return u(c({},n),{hooks:{onInit:r("onInit"),onDestroy:r("onDestroy")}})}}function v(t){return n=>{let e=t(c(c(c({[d]:n[d]},n.stateSignals),n.props),n.methods));return Reflect.ownKeys(e),u(c({},n),{methods:c(c({},n.methods),e)})}}function b(t){return n=>{let e=typeof t=="function"?t():t,o=Reflect.ownKeys(e);n[d].update(a=>c(c({},a),e));let r=o.reduce((a,i)=>{let s=m(()=>n[d]()[i]);return u(c({},a),{[i]:R(s)})},{});return u(c({},n),{stateSignals:c(c({},n.stateSignals),r)})}}var D=new Set;function te(t){if(t==null)throw new Error("");return t}var L={send:()=>{}},W=(()=>{class t{#e={};#n=_(h(A));#o=[];#t={};#i=1;#c=this.#n&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__.connect({name:"NgRx SignalStore"}):L;constructor(){if(!this.#n)return;!!window.__REDUX_DEVTOOLS_EXTENSION__||console.info("NgRx Toolkit/DevTools: Redux DevTools Extension is not available.")}ngOnDestroy(){D.clear()}syncToDevTools(e){let o=Object.entries(e).reduce((i,[s,l])=>{let{options:f,name:w}=this.#e[s];return i[w]=f.map(l),i},{});this.#t=c(c({},this.#t),o);let r=Array.from(D),a=r.length?r.join(", "):"Store Update";D.clear(),this.#c.send({type:a},this.#t)}getNextId(){return String(this.#i++)}addStore(e,o,r,a){let i=o,s=Object.values(this.#e).map(f=>f.name);if(s.includes(i)&&!a.indexNames)throw new Error(`An instance of the store ${i} already exists. Enable automatic indexing via withDevTools('${i}', { indexNames: true }), or rename it upon instantiation.`);for(let f=1;s.includes(i);f++)i=`${o}-${f}`;this.#e[e]={name:i,options:a};let l=a.tracker;this.#o.includes(l)||this.#o.push(l),l.onChange(f=>this.syncToDevTools(f)),l.track(e,r)}removeStore(e){let o=this.#e[e].name;this.#e=Object.entries(this.#e).reduce((r,[a,i])=>(a!==e&&(r[a]=i),r),{}),this.#t=Object.entries(this.#t).reduce((r,[a,i])=>(a!==o&&(r[o]=i),r),{});for(let r of this.#o)r.removeStore(e)}renameStore(e,o){let r=Object.values(this.#e).map(i=>i.name),a=te(Object.keys(this.#e).find(i=>this.#e[i].name===e));if(r.includes(o))throw new Error(`NgRx Toolkit/DevTools: cannot rename from ${e} to ${o}. ${o} is already assigned to another SignalStore instance.`);this.#e=Object.entries(this.#e).reduce((i,[s,l])=>(l.name===e?i[s]=u(c({},l),{name:o}):i[s]=l,i),{}),this.#t=Object.entries(this.#t).reduce((i,[s,l])=>(s!==e&&(i[s]=l),i),{}),this.#o.forEach(i=>i.notifyRenamedStore(a))}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ne=(()=>{class t{#e=g({});get stores(){return this.#e()}#n;#o=E(()=>{if(this.#n===void 0)throw new Error("no callback function defined");let e=this.#e(),o=Object.entries(e).reduce((r,[a,i])=>u(c({},r),{[a]:j(i)}),{});this.#n(o)});track(e,o){this.#e.update(r=>u(c({},r),{[e]:o}))}onChange(e){this.#n=e}removeStore(e){this.#e.update(o=>Object.entries(o).reduce((r,[a,i])=>(a!==e&&(r[a]=i),r),{}))}notifyRenamedStore(e){this.#e()[e]&&this.#e.update(o=>c({},o))}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),oe="___renameDevtoolsName",O="___uniqueDevtoolsId",we=new T("Array contain existing names for the signal stores",{factory:()=>[],providedIn:"root"});function V(t,...n){return k(v(()=>{let e=h(W),o=e.getNextId();return{[oe]:r=>{e.renameStore(t,r)},[O]:()=>o}}),U(e=>{let o=h(W),r=String(e[O]());return{onInit(){let a=String(e[O]()),i={indexNames:!n.some(s=>s.indexNames===!1),map:n.find(s=>s.map)?.map??(s=>s),tracker:h(n.find(s=>s.tracker)?.tracker||ne)};o.addStore(a,t,e,i)},onDestroy(){o.removeStore(r)}}}))}var Ke=Symbol("DEVTOOLS_FEATURE");var Ee=k(b({}));var ie={themeOptions:{theme:"light",dir:"ltr",layout:"vertical",sidebartype:"full",boxed:"boxed",colorTheme:"Blue_Theme",cardType:"shadow"}},Oe=F({providedIn:"root"},b(ie),V("LayoutThemeStore"),v(t=>({updateSidebarType(){I(t,n=>{switch(n.themeOptions.sidebartype){case"full":return u(c({},n),{themeOptions:u(c({},n.themeOptions),{sidebartype:"mini-sidebar"})});case"mini-sidebar":return u(c({},n),{themeOptions:u(c({},n.themeOptions),{sidebartype:"full"})});default:return n}})}})));export{ce as a,I as b,F as c,ee as d,U as e,v as f,b as g,V as h,Oe as i};
1
+ import{x as _}from"./chunk-DM2JLWKE.js";import{Bb as N,Ga as K,Ha as g,La as A,ad as S,bd as m,ca as y,cd as E,fa as T,ia as h,xa as $}from"./chunk-6QJHEOXN.js";import{a as c,b as u}from"./chunk-YQFG5XE2.js";var ce=(()=>{class t{transform(e,o=50,r=!1,a="..."){if(!e||typeof e!="string")return"";if(e.length<=o)return e;let i=e.substring(0,o);if(r){let s=i.lastIndexOf(" ");s>0&&(i=i.substring(0,s))}return i+a}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275pipe=N({name:"truncate",type:t,pure:!0})}}return t})();function R(t){let n=S(()=>t());return J(n)?new Proxy(t,{get(e,o){return o in n?(K(e[o])||Object.defineProperty(e,o,{value:m(()=>e()[o]),configurable:!0}),R(e[o])):e[o]}}):t}var H=[WeakSet,WeakMap,Promise,Date,Error,RegExp,ArrayBuffer,DataView,Function];function J(t){if(t===null||typeof t!="object"||q(t))return!1;let n=Object.getPrototypeOf(t);if(n===Object.prototype)return!0;for(;n&&n!==Object.prototype;){if(H.includes(n.constructor))return!1;n=Object.getPrototypeOf(n)}return n===Object.prototype}function q(t){return typeof t?.[Symbol.iterator]=="function"}var G=new WeakMap,d=Symbol("STATE_SOURCE");function I(t,...n){t[d].update(e=>n.reduce((o,r)=>c(c({},o),typeof r=="function"?r(o):r),e)),Y(t)}function j(t){return t[d]()}function Q(t){return G.get(t[d])||[]}function Y(t){let n=Q(t);for(let e of n){let o=S(()=>j(t));e(o)}}function F(...t){let n=[...t],e=typeof n[0]=="function"?{}:n.shift(),o=n;return(()=>{class a{constructor(){let s=o.reduce((p,X)=>X(p),Z()),{stateSignals:l,props:f,methods:w,hooks:B}=s,M=c(c(c({},l),f),w);this[d]=s[d];for(let p of Reflect.ownKeys(M))this[p]=M[p];let{onInit:x,onDestroy:P}=B;x&&x(),P&&h($).onDestroy(P)}static \u0275fac=function(l){return new(l||a)};static \u0275prov=y({token:a,factory:a.\u0275fac,providedIn:e.providedIn||null})}return a})()}function Z(){return{[d]:g({}),stateSignals:{},props:{},methods:{},hooks:{}}}function k(t,...n){let e=typeof t=="function"?[t,...n]:n;return o=>e.reduce((r,a)=>a(r),o)}function z(t){return n=>{let e=t(c(c(c({[d]:n[d]},n.stateSignals),n.props),n.methods));return Reflect.ownKeys(e),u(c({},n),{props:c(c({},n.props),e)})}}function ee(t){return z(t)}function U(t){return n=>{let e=c(c(c({[d]:n[d]},n.stateSignals),n.props),n.methods),o=typeof t=="function"?t(e):t,r=a=>{let i=o[a],s=n.hooks[a];return i?()=>{s&&s(),i(e)}:s};return u(c({},n),{hooks:{onInit:r("onInit"),onDestroy:r("onDestroy")}})}}function v(t){return n=>{let e=t(c(c(c({[d]:n[d]},n.stateSignals),n.props),n.methods));return Reflect.ownKeys(e),u(c({},n),{methods:c(c({},n.methods),e)})}}function b(t){return n=>{let e=typeof t=="function"?t():t,o=Reflect.ownKeys(e);n[d].update(a=>c(c({},a),e));let r=o.reduce((a,i)=>{let s=m(()=>n[d]()[i]);return u(c({},a),{[i]:R(s)})},{});return u(c({},n),{stateSignals:c(c({},n.stateSignals),r)})}}var D=new Set;function te(t){if(t==null)throw new Error("");return t}var L={send:()=>{}},W=(()=>{class t{#e={};#n=_(h(A));#o=[];#t={};#i=1;#c=this.#n&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__.connect({name:"NgRx SignalStore"}):L;constructor(){if(!this.#n)return;!!window.__REDUX_DEVTOOLS_EXTENSION__||console.info("NgRx Toolkit/DevTools: Redux DevTools Extension is not available.")}ngOnDestroy(){D.clear()}syncToDevTools(e){let o=Object.entries(e).reduce((i,[s,l])=>{let{options:f,name:w}=this.#e[s];return i[w]=f.map(l),i},{});this.#t=c(c({},this.#t),o);let r=Array.from(D),a=r.length?r.join(", "):"Store Update";D.clear(),this.#c.send({type:a},this.#t)}getNextId(){return String(this.#i++)}addStore(e,o,r,a){let i=o,s=Object.values(this.#e).map(f=>f.name);if(s.includes(i)&&!a.indexNames)throw new Error(`An instance of the store ${i} already exists. Enable automatic indexing via withDevTools('${i}', { indexNames: true }), or rename it upon instantiation.`);for(let f=1;s.includes(i);f++)i=`${o}-${f}`;this.#e[e]={name:i,options:a};let l=a.tracker;this.#o.includes(l)||this.#o.push(l),l.onChange(f=>this.syncToDevTools(f)),l.track(e,r)}removeStore(e){let o=this.#e[e].name;this.#e=Object.entries(this.#e).reduce((r,[a,i])=>(a!==e&&(r[a]=i),r),{}),this.#t=Object.entries(this.#t).reduce((r,[a,i])=>(a!==o&&(r[o]=i),r),{});for(let r of this.#o)r.removeStore(e)}renameStore(e,o){let r=Object.values(this.#e).map(i=>i.name),a=te(Object.keys(this.#e).find(i=>this.#e[i].name===e));if(r.includes(o))throw new Error(`NgRx Toolkit/DevTools: cannot rename from ${e} to ${o}. ${o} is already assigned to another SignalStore instance.`);this.#e=Object.entries(this.#e).reduce((i,[s,l])=>(l.name===e?i[s]=u(c({},l),{name:o}):i[s]=l,i),{}),this.#t=Object.entries(this.#t).reduce((i,[s,l])=>(s!==e&&(i[s]=l),i),{}),this.#o.forEach(i=>i.notifyRenamedStore(a))}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ne=(()=>{class t{#e=g({});get stores(){return this.#e()}#n;#o=E(()=>{if(this.#n===void 0)throw new Error("no callback function defined");let e=this.#e(),o=Object.entries(e).reduce((r,[a,i])=>u(c({},r),{[a]:j(i)}),{});this.#n(o)});track(e,o){this.#e.update(r=>u(c({},r),{[e]:o}))}onChange(e){this.#n=e}removeStore(e){this.#e.update(o=>Object.entries(o).reduce((r,[a,i])=>(a!==e&&(r[a]=i),r),{}))}notifyRenamedStore(e){this.#e()[e]&&this.#e.update(o=>c({},o))}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),oe="___renameDevtoolsName",O="___uniqueDevtoolsId",we=new T("Array contain existing names for the signal stores",{factory:()=>[],providedIn:"root"});function V(t,...n){return k(v(()=>{let e=h(W),o=e.getNextId();return{[oe]:r=>{e.renameStore(t,r)},[O]:()=>o}}),U(e=>{let o=h(W),r=String(e[O]());return{onInit(){let a=String(e[O]()),i={indexNames:!n.some(s=>s.indexNames===!1),map:n.find(s=>s.map)?.map??(s=>s),tracker:h(n.find(s=>s.tracker)?.tracker||ne)};o.addStore(a,t,e,i)},onDestroy(){o.removeStore(r)}}}))}var Ke=Symbol("DEVTOOLS_FEATURE");var Ee=k(b({}));var ie={themeOptions:{theme:"light",dir:"ltr",layout:"vertical",sidebartype:"full",boxed:"boxed",colorTheme:"Blue_Theme",cardType:"shadow"}},Oe=F({providedIn:"root"},b(ie),V("LayoutThemeStore"),v(t=>({updateSidebarType(){I(t,n=>{switch(n.themeOptions.sidebartype){case"full":return u(c({},n),{themeOptions:u(c({},n.themeOptions),{sidebartype:"mini-sidebar"})});case"mini-sidebar":return u(c({},n),{themeOptions:u(c({},n.themeOptions),{sidebartype:"full"})});default:return n}})}})));export{ce as a,I as b,F as c,ee as d,U as e,v as f,b as g,V as h,Oe as i};
@@ -1,4 +1,4 @@
1
- import{a as Ft,h as U,i as Pt}from"./chunk-ME4ALIS7.js";import{Da as Vt,La as Lt,Ma as K,Q as Et,Ua as Ot,V as R,ca as D,ea as et,ia as xt}from"./chunk-VMI3QWC6.js";import{h as St,j as It,k as vt,l as Tt,m as zt,s as bt,t as tt}from"./chunk-ZK43JB4A.js";import{$b as W,Aa as J,Ba as ht,Cb as B,Dc as yt,Eb as w,Ec as wt,Fc as A,Gc as N,Hc as Ct,Lb as T,Mb as m,Nb as mt,Pb as pt,Qb as Q,Sc as j,Wb as z,Xb as b,Yb as E,Zb as x,_b as V,ac as ut,ca as nt,da as st,fc as _t,gc as y,hc as gt,ia as ot,ib as _,ic as ft,lc as k,mc as Y,nc as L,ob as ct,oc as O,pa as lt,qa as rt,ra as at,rc as $,sa as G,ua as M,yb as H,zb as dt}from"./chunk-6QJHEOXN.js";import{a as Z,b as X}from"./chunk-YQFG5XE2.js";var ge=(()=>{class i extends U{static \u0275fac=(()=>{let t;return function(n){return(t||(t=M(i)))(n||i)}})();static \u0275cmp=H({type:i,selectors:[["BlankIcon"]],features:[B],decls:2,vars:0,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(e,n){e&1&&(G(),z(0,"svg",0),E(1,"rect",1),b())},encapsulation:2})}return i})();var Ce=(()=>{class i extends U{pathId;ngOnInit(){this.pathId="url(#"+Vt()+")"}static \u0275fac=(()=>{let t;return function(n){return(t||(t=M(i)))(n||i)}})();static \u0275cmp=H({type:i,selectors:[["SearchIcon"]],features:[B],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(e,n){e&1&&(G(),z(0,"svg",0)(1,"g"),E(2,"path",1),b(),z(3,"defs")(4,"clipPath",2),E(5,"rect",3),b()()()),e&2&&(Q(n.getClassNames()),T("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),_(),T("clip-path",n.pathId),_(3),m("id",n.pathId))},encapsulation:2})}return i})();var Dt=["content"],Bt=["item"],Wt=["loader"],kt=["loadericon"],At=["element"],Qt=["*"],$t=(i,h,t)=>({"p-virtualscroller":!0,"p-virtualscroller-inline":i,"p-virtualscroller-both p-both-scroll":h,"p-virtualscroller-horizontal p-horizontal-scroll":t}),it=(i,h)=>({$implicit:i,options:h}),Nt=i=>({"p-virtualscroller-content":!0,"p-virtualscroller-loading ":i}),jt=i=>({"p-virtualscroller-loader-mask":i}),qt=i=>({numCols:i}),Ht=i=>({options:i}),Zt=()=>({styleClass:"p-virtualscroller-loading-icon"}),Gt=(i,h)=>({rows:i,columns:h});function Jt(i,h){i&1&&W(0)}function Kt(i,h){if(i&1&&(x(0),w(1,Jt,1,0,"ng-container",10),V()),i&2){let t=y(2);_(),m("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",N(2,it,t.loadedItems,t.getContentOptions()))}}function Ut(i,h){i&1&&W(0)}function Xt(i,h){if(i&1&&(x(0),w(1,Ut,1,0,"ng-container",10),V()),i&2){let t=h.$implicit,e=h.index,n=y(3);_(),m("ngTemplateOutlet",n.itemTemplate||n._itemTemplate)("ngTemplateOutletContext",N(2,it,t,n.getOptions(e)))}}function Yt(i,h){if(i&1&&(z(0,"div",11,3),w(2,Xt,2,5,"ng-container",12),b()),i&2){let t=y(2);pt(t.contentStyle),Q(t.contentStyleClass),m("ngClass",A(8,Nt,t.d_loading)),T("data-pc-section","content"),_(2),m("ngForOf",t.loadedItems)("ngForTrackBy",t._trackBy)}}function te(i,h){if(i&1&&E(0,"div",13),i&2){let t=y(2);m("ngStyle",t.spacerStyle),T("data-pc-section","spacer")}}function ee(i,h){i&1&&W(0)}function ie(i,h){if(i&1&&(x(0),w(1,ee,1,0,"ng-container",10),V()),i&2){let t=h.index,e=y(4);_(),m("ngTemplateOutlet",e.loaderTemplate||e._loaderTemplate)("ngTemplateOutletContext",A(4,Ht,e.getLoaderOptions(t,e.both&&A(2,qt,e.numItemsInViewport.cols))))}}function ne(i,h){if(i&1&&(x(0),w(1,ie,2,6,"ng-container",15),V()),i&2){let t=y(3);_(),m("ngForOf",t.loaderArr)}}function se(i,h){i&1&&W(0)}function oe(i,h){if(i&1&&(x(0),w(1,se,1,0,"ng-container",10),V()),i&2){let t=y(4);_(),m("ngTemplateOutlet",t.loaderIconTemplate||t._loaderIconTemplate)("ngTemplateOutletContext",A(3,Ht,wt(2,Zt)))}}function le(i,h){i&1&&E(0,"SpinnerIcon",16),i&2&&(m("styleClass","p-virtualscroller-loading-icon pi-spin"),T("data-pc-section","loadingIcon"))}function re(i,h){if(i&1&&w(0,oe,2,5,"ng-container",6)(1,le,1,2,"ng-template",null,5,j),i&2){let t=$(2),e=y(3);m("ngIf",e.loaderIconTemplate||e._loaderIconTemplate)("ngIfElse",t)}}function ae(i,h){if(i&1&&(z(0,"div",14),w(1,ne,2,1,"ng-container",6)(2,re,3,2,"ng-template",null,4,j),b()),i&2){let t=$(3),e=y(2);m("ngClass",A(4,jt,!e.loaderTemplate)),T("data-pc-section","loader"),_(),m("ngIf",e.loaderTemplate||e._loaderTemplate)("ngIfElse",t)}}function he(i,h){if(i&1){let t=ut();x(0),z(1,"div",7,1),_t("scroll",function(n){rt(t);let s=y();return at(s.onContainerScroll(n))}),w(3,Kt,2,5,"ng-container",6)(4,Yt,3,10,"ng-template",null,2,j)(6,te,1,2,"div",8)(7,ae,4,6,"div",9),b(),V()}if(i&2){let t=$(5),e=y();_(),Q(e._styleClass),m("ngStyle",e._style)("ngClass",Ct(12,$t,e.inline,e.both,e.horizontal)),T("id",e._id)("tabindex",e.tabindex)("data-pc-name","scroller")("data-pc-section","root"),_(2),m("ngIf",e.contentTemplate||e._contentTemplate)("ngIfElse",t),_(3),m("ngIf",e._showSpacer),_(),m("ngIf",!e.loaderDisabled&&e._showLoader&&e.d_loading)}}function ce(i,h){i&1&&W(0)}function de(i,h){if(i&1&&(x(0),w(1,ce,1,0,"ng-container",10),V()),i&2){let t=y(2);_(),m("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",N(5,it,t.items,N(2,Gt,t._items,t.loadedColumns)))}}function me(i,h){if(i&1&&(ft(0),w(1,de,2,8,"ng-container",17)),i&2){let t=y();_(),m("ngIf",t.contentTemplate||t._contentTemplate)}}var pe=({dt:i})=>`
1
+ import{a as Ft,h as U,i as Pt}from"./chunk-O44DI62I.js";import{Ea as Vt,Ma as Lt,Na as K,R as Et,Va as Ot,W as R,da as D,fa as et,ja as xt}from"./chunk-MGIEURA2.js";import{j as St,l as It,m as vt,n as Tt,o as zt,u as bt,x as tt}from"./chunk-DM2JLWKE.js";import{$b as W,Aa as J,Ba as ht,Cb as B,Dc as yt,Eb as w,Ec as wt,Fc as A,Gc as N,Hc as Ct,Lb as T,Mb as m,Nb as mt,Pb as pt,Qb as Q,Sc as j,Wb as z,Xb as b,Yb as E,Zb as x,_b as V,ac as ut,ca as nt,da as st,fc as _t,gc as y,hc as gt,ia as ot,ib as _,ic as ft,lc as k,mc as Y,nc as L,ob as ct,oc as O,pa as lt,qa as rt,ra as at,rc as $,sa as G,ua as M,yb as H,zb as dt}from"./chunk-6QJHEOXN.js";import{a as Z,b as X}from"./chunk-YQFG5XE2.js";var ge=(()=>{class i extends U{static \u0275fac=(()=>{let t;return function(n){return(t||(t=M(i)))(n||i)}})();static \u0275cmp=H({type:i,selectors:[["BlankIcon"]],features:[B],decls:2,vars:0,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(e,n){e&1&&(G(),z(0,"svg",0),E(1,"rect",1),b())},encapsulation:2})}return i})();var Ce=(()=>{class i extends U{pathId;ngOnInit(){this.pathId="url(#"+Vt()+")"}static \u0275fac=(()=>{let t;return function(n){return(t||(t=M(i)))(n||i)}})();static \u0275cmp=H({type:i,selectors:[["SearchIcon"]],features:[B],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(e,n){e&1&&(G(),z(0,"svg",0)(1,"g"),E(2,"path",1),b(),z(3,"defs")(4,"clipPath",2),E(5,"rect",3),b()()()),e&2&&(Q(n.getClassNames()),T("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),_(),T("clip-path",n.pathId),_(3),m("id",n.pathId))},encapsulation:2})}return i})();var Dt=["content"],Bt=["item"],Wt=["loader"],kt=["loadericon"],At=["element"],Qt=["*"],$t=(i,h,t)=>({"p-virtualscroller":!0,"p-virtualscroller-inline":i,"p-virtualscroller-both p-both-scroll":h,"p-virtualscroller-horizontal p-horizontal-scroll":t}),it=(i,h)=>({$implicit:i,options:h}),Nt=i=>({"p-virtualscroller-content":!0,"p-virtualscroller-loading ":i}),jt=i=>({"p-virtualscroller-loader-mask":i}),qt=i=>({numCols:i}),Ht=i=>({options:i}),Zt=()=>({styleClass:"p-virtualscroller-loading-icon"}),Gt=(i,h)=>({rows:i,columns:h});function Jt(i,h){i&1&&W(0)}function Kt(i,h){if(i&1&&(x(0),w(1,Jt,1,0,"ng-container",10),V()),i&2){let t=y(2);_(),m("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",N(2,it,t.loadedItems,t.getContentOptions()))}}function Ut(i,h){i&1&&W(0)}function Xt(i,h){if(i&1&&(x(0),w(1,Ut,1,0,"ng-container",10),V()),i&2){let t=h.$implicit,e=h.index,n=y(3);_(),m("ngTemplateOutlet",n.itemTemplate||n._itemTemplate)("ngTemplateOutletContext",N(2,it,t,n.getOptions(e)))}}function Yt(i,h){if(i&1&&(z(0,"div",11,3),w(2,Xt,2,5,"ng-container",12),b()),i&2){let t=y(2);pt(t.contentStyle),Q(t.contentStyleClass),m("ngClass",A(8,Nt,t.d_loading)),T("data-pc-section","content"),_(2),m("ngForOf",t.loadedItems)("ngForTrackBy",t._trackBy)}}function te(i,h){if(i&1&&E(0,"div",13),i&2){let t=y(2);m("ngStyle",t.spacerStyle),T("data-pc-section","spacer")}}function ee(i,h){i&1&&W(0)}function ie(i,h){if(i&1&&(x(0),w(1,ee,1,0,"ng-container",10),V()),i&2){let t=h.index,e=y(4);_(),m("ngTemplateOutlet",e.loaderTemplate||e._loaderTemplate)("ngTemplateOutletContext",A(4,Ht,e.getLoaderOptions(t,e.both&&A(2,qt,e.numItemsInViewport.cols))))}}function ne(i,h){if(i&1&&(x(0),w(1,ie,2,6,"ng-container",15),V()),i&2){let t=y(3);_(),m("ngForOf",t.loaderArr)}}function se(i,h){i&1&&W(0)}function oe(i,h){if(i&1&&(x(0),w(1,se,1,0,"ng-container",10),V()),i&2){let t=y(4);_(),m("ngTemplateOutlet",t.loaderIconTemplate||t._loaderIconTemplate)("ngTemplateOutletContext",A(3,Ht,wt(2,Zt)))}}function le(i,h){i&1&&E(0,"SpinnerIcon",16),i&2&&(m("styleClass","p-virtualscroller-loading-icon pi-spin"),T("data-pc-section","loadingIcon"))}function re(i,h){if(i&1&&w(0,oe,2,5,"ng-container",6)(1,le,1,2,"ng-template",null,5,j),i&2){let t=$(2),e=y(3);m("ngIf",e.loaderIconTemplate||e._loaderIconTemplate)("ngIfElse",t)}}function ae(i,h){if(i&1&&(z(0,"div",14),w(1,ne,2,1,"ng-container",6)(2,re,3,2,"ng-template",null,4,j),b()),i&2){let t=$(3),e=y(2);m("ngClass",A(4,jt,!e.loaderTemplate)),T("data-pc-section","loader"),_(),m("ngIf",e.loaderTemplate||e._loaderTemplate)("ngIfElse",t)}}function he(i,h){if(i&1){let t=ut();x(0),z(1,"div",7,1),_t("scroll",function(n){rt(t);let s=y();return at(s.onContainerScroll(n))}),w(3,Kt,2,5,"ng-container",6)(4,Yt,3,10,"ng-template",null,2,j)(6,te,1,2,"div",8)(7,ae,4,6,"div",9),b(),V()}if(i&2){let t=$(5),e=y();_(),Q(e._styleClass),m("ngStyle",e._style)("ngClass",Ct(12,$t,e.inline,e.both,e.horizontal)),T("id",e._id)("tabindex",e.tabindex)("data-pc-name","scroller")("data-pc-section","root"),_(2),m("ngIf",e.contentTemplate||e._contentTemplate)("ngIfElse",t),_(3),m("ngIf",e._showSpacer),_(),m("ngIf",!e.loaderDisabled&&e._showLoader&&e.d_loading)}}function ce(i,h){i&1&&W(0)}function de(i,h){if(i&1&&(x(0),w(1,ce,1,0,"ng-container",10),V()),i&2){let t=y(2);_(),m("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",N(5,it,t.items,N(2,Gt,t._items,t.loadedColumns)))}}function me(i,h){if(i&1&&(ft(0),w(1,de,2,8,"ng-container",17)),i&2){let t=y();_(),m("ngIf",t.contentTemplate||t._contentTemplate)}}var pe=({dt:i})=>`
2
2
  .p-virtualscroller {
3
3
  position: relative;
4
4
  overflow: auto;
@@ -1 +1 @@
1
- import{a as g}from"./chunk-2BI7WNJP.js";import{C as u,D as l,E as m}from"./chunk-ZK43JB4A.js";import{I as n,_ as d,ca as b,ia as c,n as f,s as h}from"./chunk-6QJHEOXN.js";import{a as o,b as p}from"./chunk-YQFG5XE2.js";var w=(()=>{class a{constructor(){this.httpClient=c(m),this.toastr=c(g)}get(t="",e,r={}){return this.httpClient.get(`${t}${e}`,r).pipe(n(this.handleError.bind(this)))}post(t="",e,r,i={observe:"response"}){return this.httpClient.post(`${t}${e}`,r,o({},i)).pipe(d(this.handleResponse.bind(this)),h(s=>s instanceof u&&Object.prototype.hasOwnProperty.call(i,"observe")&&i.observe==="response"?s.body instanceof Blob?s:s.body:s),n(this.handleError.bind(this)))}put(t="",e,r,i={}){return this.httpClient.put(`${t}${e}`,r,p(o({},i),{observe:"response"})).pipe(d(this.handleResponse.bind(this)),h(s=>s.body),n(this.handleError.bind(this)))}delete(t="",e,r={}){return this.httpClient.delete(`${t}${e}`,p(o({},r),{observe:"response"})).pipe(d(this.handleResponse.bind(this)),h(i=>i.body),n(this.handleError.bind(this)))}handleResponse(t){if(t instanceof u&&t.status===200&&t.body){let e;typeof t.body=="object"&&t.body!==null&&(e=t.body.message||t.body.Message),typeof e=="string"&&e.length>0&&this.toastr.success(e,"Success")}}handleError(t){let e={header:"API Error",message:"An unknown error occurred"};if(t instanceof l)switch(t.status){case 0:e.message="CORS error: Request blocked or server not responding with proper CORS headers",e.header="CORS Error";break;case 504:e.message=t.statusText||"Gateway Timeout",e.header=`API Error: ${t.status}`;break;default:e.header=`API Error: ${t.status}`,e.message=t.error&&(t.error.Message||t.error.message||t.error.error)||t.message}return t instanceof l&&(t.status>=200&&t.status<300?this.toastr.success(e.message,e.header):t.status>=400&&t.status<500?this.toastr.warning(e.message,e.header):t.status>=500&&t.status<600&&this.toastr.error(e.message,e.header)),f(()=>e)}static{this.\u0275fac=function(e){return new(e||a)}}static{this.\u0275prov=b({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{w as a};
1
+ import{a as g}from"./chunk-JBYPGHPN.js";import{f as u,g as l,h as m}from"./chunk-KL3TPLRB.js";import{I as n,_ as d,ca as b,ia as c,n as f,s as h}from"./chunk-6QJHEOXN.js";import{a as o,b as p}from"./chunk-YQFG5XE2.js";var w=(()=>{class a{constructor(){this.httpClient=c(m),this.toastr=c(g)}get(t="",e,r={}){return this.httpClient.get(`${t}${e}`,r).pipe(n(this.handleError.bind(this)))}post(t="",e,r,i={observe:"response"}){return this.httpClient.post(`${t}${e}`,r,o({},i)).pipe(d(this.handleResponse.bind(this)),h(s=>s instanceof u&&Object.prototype.hasOwnProperty.call(i,"observe")&&i.observe==="response"?s.body instanceof Blob?s:s.body:s),n(this.handleError.bind(this)))}put(t="",e,r,i={}){return this.httpClient.put(`${t}${e}`,r,p(o({},i),{observe:"response"})).pipe(d(this.handleResponse.bind(this)),h(s=>s.body),n(this.handleError.bind(this)))}delete(t="",e,r={}){return this.httpClient.delete(`${t}${e}`,p(o({},r),{observe:"response"})).pipe(d(this.handleResponse.bind(this)),h(i=>i.body),n(this.handleError.bind(this)))}handleResponse(t){if(t instanceof u&&t.status===200&&t.body){let e;typeof t.body=="object"&&t.body!==null&&(e=t.body.message||t.body.Message),typeof e=="string"&&e.length>0&&this.toastr.success(e,"Success")}}handleError(t){let e={header:"API Error",message:"An unknown error occurred"};if(t instanceof l)switch(t.status){case 0:e.message="CORS error: Request blocked or server not responding with proper CORS headers",e.header="CORS Error";break;case 504:e.message=t.statusText||"Gateway Timeout",e.header=`API Error: ${t.status}`;break;default:e.header=`API Error: ${t.status}`,e.message=t.error&&(t.error.Message||t.error.message||t.error.error)||t.message}return t instanceof l&&(t.status>=200&&t.status<300?this.toastr.success(e.message,e.header):t.status>=400&&t.status<500?this.toastr.warning(e.message,e.header):t.status>=500&&t.status<600&&this.toastr.error(e.message,e.header)),f(()=>e)}static{this.\u0275fac=function(e){return new(e||a)}}static{this.\u0275prov=b({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{w as a};
@@ -0,0 +1 @@
1
+ import{a as y,b as J}from"./chunk-NTVIX4GB.js";import"./chunk-JPNJTPYJ.js";import{m as V}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as j,b as R}from"./chunk-5U7KZJ3H.js";import"./chunk-FHJOSHI3.js";import{i as z}from"./chunk-JPKZVL57.js";import"./chunk-VM56C6ZV.js";import{a as G,b as H}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as D,x as N,y as L,z as q}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-VQ62YSFR.js";import"./chunk-G3BJCT7T.js";import{a as I}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as F,u as E}from"./chunk-DM2JLWKE.js";import{Dc as $,Eb as C,Ec as T,Mb as p,Oc as c,Pb as h,Pc as s,Rb as x,Sc as b,W as M,Wb as o,Xb as n,Y as k,Yb as u,_ as O,ac as v,fc as S,gc as a,h as A,ia as m,ib as r,qa as g,ra as _,s as d,sa as B,ta as P,yb as w}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var K=()=>({height:"calc(100vh - 100px)"});function Q(e,f){if(e&1){let t=v();o(0,"p-button",6),S("onClick",function(){g(t);let l=a(2);return _(l.onFormat())}),n()}}function U(e,f){if(e&1){let t=v();o(0,"p-button",7),c(1,"async"),c(2,"async"),S("onClick",function(){g(t);let l=a(2);return _(l.onMigrateOutletAccount())}),n()}if(e&2){let t=a(2);p("disabled",s(1,2,t.countInBooks$)!==0)("pTooltip",s(2,4,t.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function W(e,f){if(e&1&&(o(0,"div",3),C(1,Q,1,0,"p-button",4)(2,U,3,6,"p-button",5),n()),e&2){let t=a();r(),x(t.roleService.permissions().migrate.delete?1:-1),r(),x(t.roleService.permissions().migrate.create?2:-1)}}function X(e,f){if(e&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",8),u(3,"app-migration-cards",9),c(4,"async"),B(),o(5,"svg",10),u(6,"path",11),n(),P(),u(7,"app-migration-cards",12),c(8,"async"),n()()()),e&2){let t=a();h(T(12,K)),r(),h(T(13,K)),r(2),p("migrationCount",s(4,8,t.countInPOS$))("migrationTitle",t.pageTitle),r(4),p("migrationCount",s(8,10,t.countInBooks$))("migrationTitle",t.pageTitle)}}var Ct=(()=>{class e{constructor(){this.migrateService=m(y),this.toastr=m(I),this.refresh$=new A(void 0),this.pageTitle="Outlet Account",this.roleService=m(V)}ngOnInit(){let t=this.refresh$.pipe(k(()=>this.migrateService.getOutletAccountCount()),O(i=>console.log("API response:",i)),M(1));this.countInPOS$=t.pipe(d(i=>Number(i.pos))),this.countInBooks$=t.pipe(d(i=>Number(i.books)))}onMigrateOutletAccount(){this.migrateService.migrateOutletAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatOutletAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=w({type:e,selectors:[["app-outlet-account"]],features:[$([y])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Create","tooltipPosition","left",3,"disabled","pTooltip"],["label","Format","severity","danger",3,"onClick"],["label","Create","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(i,l){i&1&&(o(0,"app-main-panel",2),C(1,W,3,2,"ng-template",null,0,b)(3,X,9,14,"ng-template",null,1,b),n()),i&2&&p("pageTitle",l.pageTitle)},dependencies:[z,E,F,N,D,R,j,H,G,q,L,J],encapsulation:2})}}return e})();export{Ct as OutletAccountComponent};
File without changes
@@ -1,4 +1,4 @@
1
- import{a as M}from"./chunk-ME4ALIS7.js";import{Ma as D,Ua as C}from"./chunk-VMI3QWC6.js";import{s as z}from"./chunk-ZK43JB4A.js";import{Cb as v,Dc as b,Lb as c,Nb as g,Ob as u,Qb as p,Wb as y,Xb as f,ca as o,da as d,hc as h,ia as l,ic as m,ua as r,yb as a,zb as s}from"./chunk-6QJHEOXN.js";var j=["*"],$=({dt:e})=>`
1
+ import{a as M}from"./chunk-O44DI62I.js";import{Na as D,Va as C}from"./chunk-MGIEURA2.js";import{u as z}from"./chunk-DM2JLWKE.js";import{Cb as v,Dc as b,Lb as c,Nb as g,Ob as u,Qb as p,Wb as y,Xb as f,ca as o,da as d,hc as h,ia as l,ic as m,ua as r,yb as a,zb as s}from"./chunk-6QJHEOXN.js";var j=["*"],$=({dt:e})=>`
2
2
  .p-divider-horizontal {
3
3
  display: flex;
4
4
  width: 100%;
@@ -0,0 +1 @@
1
+ import{a as Q}from"./chunk-U4AN6IWJ.js";import{f as xt}from"./chunk-YR5KRTHR.js";import{b as vt}from"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import{a as N}from"./chunk-BT7Y4ADP.js";import{b as Pt}from"./chunk-5U7KZJ3H.js";import{a as P,b as D}from"./chunk-FHJOSHI3.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{g as S,h as E,i as Mt}from"./chunk-JPKZVL57.js";import"./chunk-VM56C6ZV.js";import{a as Tt,b as Ot}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import{c as ft}from"./chunk-BFEM6LX7.js";import{y as kt,z as yt}from"./chunk-O44DI62I.js";import{a as w,b as H}from"./chunk-DTYVTTET.js";import{Ma as bt,y as Ct}from"./chunk-MGIEURA2.js";import{l as gt}from"./chunk-DZCJWJUG.js";import{b as q}from"./chunk-VQ62YSFR.js";import{a as ut}from"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import{d as _t}from"./chunk-KL3TPLRB.js";import{s as mt,u as ht}from"./chunk-DM2JLWKE.js";import{Da as b,Eb as _,Fa as $,Ha as h,L as z,Mb as m,Oc as J,Pc as K,Rb as f,Sb as it,Sc as X,Ta as tt,Ub as ot,Vb as at,Wb as a,Wc as lt,Xb as r,Yb as g,_ as I,ac as C,bd as dt,ca as Z,cd as T,fc as B,gc as s,ia as u,ib as p,mc as rt,nb as et,nc as st,oc as pt,qa as l,ra as d,rc as R,s as F,sc as k,t as A,tb as nt,tc as ct,u as j,uc as U,wa as W,xc as y,yb as O,yc as M,zc as v}from"./chunk-6QJHEOXN.js";import{a as L,b as V}from"./chunk-YQFG5XE2.js";var G=(()=>{class n{constructor(){this.httpService=u(ut)}createDashboardParams(t){return new _t().set("DashboardPeriod",t)}fetchDashboardLoader(){return this.httpService.get(void 0,"api/DashboardLoader")}fetchCashAndSplineData(t){let e=this.createDashboardParams(t);return this.httpService.get(void 0,"api/dashboard/getcashandbank",{params:e})}fetchCashAndBankPieData(t){let e=this.createDashboardParams(t);return this.httpService.get(void 0,"api/dashboard/getcashandbankpiechart",{params:e})}fetchExpenseSplineData(t){let e=this.createDashboardParams(t);return this.httpService.get(void 0,"api/dashboard/GetExpense",{params:e})}fetchExpensePieData(t){let e=this.createDashboardParams(t);return this.httpService.get(void 0,"api/dashboard/GetExpensePieChart",{params:e})}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function Bt(n,c){if(n&1){let t=C();a(0,"p-card",2)(1,"highcharts-chart",5),v("updateChange",function(i){l(t);let o=s();return M(o.updateFlag,i)||(o.updateFlag=i),d(i)}),r()()}if(n&2){let t=s();p(),m("constructorType",t.chartConstructor)("options",t.chartOptionsSpline),y("update",t.updateFlag),m("oneToOne",t.oneToOneFlag)}}function Lt(n,c){n&1&&(a(0,"p-card"),g(1,"p-skeleton",6),r())}function Vt(n,c){if(n&1){let t=C();a(0,"p-card",4)(1,"highcharts-chart",5),v("updateChange",function(i){l(t);let o=s();return M(o.updateFlag,i)||(o.updateFlag=i),d(i)}),r()()}if(n&2){let t=s();p(),m("constructorType",t.chartConstructor)("options",t.chartOptionsPie),y("update",t.updateFlag),m("oneToOne",t.oneToOneFlag)}}function Ft(n,c){n&1&&(a(0,"p-card"),g(1,"p-skeleton",6),r())}var Et=(()=>{class n{constructor(){this.chartConstructor="chart",this.updateFlag=!1,this.oneToOneFlag=!0,this.chartOptionsSpline={},this.chartOptionsPie={},this.dashboardService=u(G),this.cdr=u(lt),this.injector=u(W),this.params=h({dashboardPeriod:2}),this.cashBankTitle=b(),this.amountCashBank=b(),this.isLoading=nt(!0),this.tooltip=b(),this.cashAndBankSource=H((q.production?w(this.params):w(this.params).pipe(z(500))).pipe(j(({dashboardPeriod:t})=>A([this.dashboardService.fetchCashAndSplineData(t),this.dashboardService.fetchCashAndBankPieData(t)])),N("Cash & Bank Dashboard Data"),I(([t])=>{this.isLoading.set(!1),this.amountCashBank.emit(t.data),this.tooltip.emit(t.toolTip)}),F(([t,e])=>({splineData:t,pieData:e}))),{initialValue:null}),T(()=>{let t=this.cashAndBankSource();if(!t)return;let{splineData:e,pieData:i}=t;this.cashBankTitle.emit(e.title),tt(()=>{this.chartOptionsSpline={chart:{height:300},title:{text:e.chartTitle,align:"left",style:{fontWeight:"normal"}},xAxis:{categories:[...e.chart.labels]},yAxis:{title:{text:""}},series:[V(L({},e.chart.series),{type:"spline",name:"Amount",data:[...e.chart.series.data]})],plotOptions:{line:{dataLabels:{enabled:!0},enableMouseTracking:!1}}},this.chartOptionsPie={chart:{type:"pie"},title:{text:e.pieTitle,align:"left",style:{fontWeight:"normal"}},series:[{type:"pie",name:"Amount",data:[...i.series.filter(o=>o.y>0)]}],plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:[{enabled:!1}],showInLegend:!0}}},this.updateFlag=!0,this.cdr.detectChanges()},{injector:this.injector})})}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=O({type:n,selectors:[["app-cash-bank"]],inputs:{isLoading:[1,"isLoading"]},outputs:{cashBankTitle:"cashBankTitle",amountCashBank:"amountCashBank",isLoading:"isLoadingChange",tooltip:"tooltip"},decls:7,vars:2,consts:[[1,"row"],[1,"col-12","col-md-6","col-lg-7"],[1,"chart"],[1,"col-12","col-md-6","col-lg-5"],[1,"pie_chart"],[1,"chart",3,"updateChange","constructorType","options","update","oneToOne"],["width","100%","height","15rem"]],template:function(e,i){e&1&&(a(0,"div",0)(1,"div",1),_(2,Bt,2,4,"p-card",2)(3,Lt,2,0,"p-card"),r(),a(4,"div",3),_(5,Vt,2,4,"p-card",4)(6,Ft,2,0,"p-card"),r()()),e&2&&(p(2),f(i.isLoading()?3:2),p(3),f(i.isLoading()?6:5))},dependencies:[Q,E,S,D,P],styles:[".chart[_ngcontent-%COMP%]{width:100%;height:400px;display:block} p-card.chart .p-card-body{padding-top:0!important;padding-bottom:0!important} p-card.pie_chart .p-card-body{padding-top:0!important;padding-bottom:0!important}"]})}}return n})();function At(n,c){if(n&1){let t=C();a(0,"p-card",2)(1,"highcharts-chart",5),v("updateChange",function(i){l(t);let o=s();return M(o.updateFlag,i)||(o.updateFlag=i),d(i)}),r()()}if(n&2){let t=s();p(),m("constructorType",t.chartConstructor)("options",t.chartOptionsSpline),y("update",t.updateFlag),m("oneToOne",t.oneToOneFlag)}}function jt(n,c){n&1&&(a(0,"p-card"),g(1,"p-skeleton",6),r())}function zt(n,c){if(n&1){let t=C();a(0,"p-card",4)(1,"highcharts-chart",5),v("updateChange",function(i){l(t);let o=s();return M(o.updateFlag,i)||(o.updateFlag=i),d(i)}),r()()}if(n&2){let t=s();p(),m("constructorType",t.chartConstructor)("options",t.chartOptionsPie),y("update",t.updateFlag),m("oneToOne",t.oneToOneFlag)}}function It(n,c){n&1&&(a(0,"p-card"),g(1,"p-skeleton",6),r())}var Dt=(()=>{class n{constructor(){this.chartConstructor="chart",this.updateFlag=!1,this.oneToOneFlag=!0,this.chartOptionsSpline={},this.chartOptionsPie={},this.dashboardService=u(G),this.isLoading=h(!0),this.amountExpense=b(),this.params=h({dashboardPeriod:2}),this.expenseTitle=b(),this.tooltip=b(),this.expenseSource=H((q.production?w(this.params):w(this.params).pipe(z(500))).pipe(j(({dashboardPeriod:t})=>A([this.dashboardService.fetchExpenseSplineData(t),this.dashboardService.fetchExpensePieData(t)])),N("Expense Dashboard Data"),I(([t])=>{this.isLoading.set(!1),this.amountExpense.emit(t.data),this.expenseTitle.emit(t.title),this.tooltip.emit(t.toolTip)}),F(([t,e])=>({splineData:t,pieData:e}))),{initialValue:null}),T(()=>{let t=this.expenseSource();if(!t)return;let{splineData:e,pieData:i}=t;console.log("Spline Data:",e),console.log("Pie Data:",i),this.chartOptionsSpline={chart:{height:300},title:{text:e.chartTitle,align:"left",style:{fontWeight:"normal"}},xAxis:{categories:[...e.chart.labels]},yAxis:{title:{text:""}},series:[V(L({},e.chart.series),{type:"spline",name:"Amount",data:[...e.chart.series.data]})],plotOptions:{line:{dataLabels:{enabled:!0},enableMouseTracking:!1}}},this.chartOptionsPie={chart:{type:"pie"},title:{text:e.pieTitle,align:"left",style:{fontWeight:"normal"}},series:[{type:"pie",name:"Amount",data:[...i.series.filter(o=>o.y>0)]}],plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:[{enabled:!1}],showInLegend:!0}}},this.updateFlag=!0})}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=O({type:n,selectors:[["app-expense"]],outputs:{amountExpense:"amountExpense",expenseTitle:"expenseTitle",tooltip:"tooltip"},decls:7,vars:2,consts:[[1,"row"],[1,"col-12","col-md-6","col-lg-7"],[1,"chart"],[1,"col-12","col-md-6","col-lg-5"],[1,"pie_chart"],[1,"chart",3,"updateChange","constructorType","options","update","oneToOne"],["width","100%","height","15rem"]],template:function(e,i){e&1&&(a(0,"div",0)(1,"div",1),_(2,At,2,4,"p-card",2)(3,jt,2,0,"p-card"),r(),a(4,"div",3),_(5,zt,2,4,"p-card",4)(6,It,2,0,"p-card"),r()()),e&2&&(p(2),f(i.isLoading()?3:2),p(3),f(i.isLoading()?6:5))},dependencies:[Q,E,S,D,P],styles:[".chart[_ngcontent-%COMP%]{width:100%;height:400px;display:block} p-card.chart .p-card-body{padding-top:0!important;padding-bottom:0!important} p-card.pie_chart .p-card-body{padding-top:0!important;padding-bottom:0!important}"]})}}return n})();function Wt(n,c){if(n&1&&(a(0,"span"),k(1),r()),n&2){let t=c.$implicit;p(),ct(t)}}function Rt(n,c){if(n&1&&(a(0,"div",21),ot(1,Wt,2,1,"span",null,it),r()),n&2){let t=s(3);p(),at(t.tooltipExpense())}}function qt(n,c){if(n&1){let t=C();g(0,"input",10,1),a(2,"button",11),B("click",function(i){l(t);let o=R(1),x=s(2);return d(x.handleLinkClick(i,o))}),a(3,"div",12)(4,"div",13)(5,"div",14),g(6,"i",15),r()(),a(7,"p-card",16,2),_(9,Rt,3,0,"ng-template",null,3,X),a(11,"div",17)(12,"div",18)(13,"span",19),k(14,"Expense"),r(),a(15,"p",20),k(16),J(17,"number"),r()()()()()()}if(n&2){let t=R(10),e=s(2);p(7),m("pTooltip",t)("fitContent",!1),p(9),U(" ",K(17,3,e.amounts.expense())," ")}}function Ht(n,c){n&1&&g(0,"p-skeleton",9)}function Nt(n,c){if(n&1&&(a(0,"div",17)(1,"div",18)(2,"span",19),k(3,"Cash and Bank"),r(),a(4,"p",20),k(5),J(6,"number"),r()()()),n&2){let t=s(3);p(5),U(" ",t.amounts.cashBank()===0?"-":K(6,1,t.amounts.cashBank())," ")}}function Qt(n,c){if(n&1){let t=C();g(0,"input",22,4),a(2,"button",11),B("click",function(i){l(t);let o=R(1),x=s(2);return d(x.handleLinkClick(i,o))}),a(3,"div",12)(4,"div",23),g(5,"i",24),r(),a(6,"p-card",25,2),_(8,Nt,7,3,"ng-template",26),r()()()}if(n&2){let t=s(2);p(6),m("pTooltip",t.tooltip.cashBank())}}function Gt(n,c){n&1&&g(0,"p-skeleton",9)}function Ut(n,c){if(n&1){let t=C();a(0,"app-expense",27),B("amountExpense",function(i){l(t);let o=s(2);return d(o.onAmountExpense(i))})("expenseTitle",function(i){l(t);let o=s(2);return d(o.onExpenseTitle(i))})("tooltip",function(i){l(t);let o=s(2);return d(o.onExpenseTooltip(i))}),r()}}function Jt(n,c){if(n&1){let t=C();a(0,"app-cash-bank",28),B("cashBankTitle",function(i){l(t);let o=s(2);return d(o.onCashBankTitle(i))})("amountCashBank",function(i){l(t);let o=s(2);return d(o.onAmountCashBank(i))})("tooltip",function(i){l(t);let o=s(2);return d(o.onCashBankTooltip(i))}),r()}}function Kt(n,c){if(n&1&&(a(0,"p-panel")(1,"main",6)(2,"div",7)(3,"div",8),_(4,qt,18,5)(5,Ht,1,0,"p-skeleton",9),r(),a(6,"div",8),_(7,Qt,9,1)(8,Gt,1,0,"p-skeleton",9),r()(),_(9,Ut,1,0,"app-expense")(10,Jt,1,0,"app-cash-bank"),r()()),n&2){let t=s();p(4),f(t.isLoading()?5:4),p(3),f(t.isLoading()?8:7),p(2),f(t.activeIndex()===0?9:t.activeIndex()===1?10:-1)}}var Ge=(()=>{class n{constructor(){this.activeIndex=h(0),this.pageTitle=h("Dashboard"),this.isLoading=h(!0),this.tooltip={cashBank:h(""),expense:h("")},this.renderer=u(et),this.injector=u(W),this.tooltipExpense=dt(()=>this.tooltip.expense().match(/^(.*?)\s*(\[[^\]]+\])$/)?[RegExp.$1.trim(),RegExp.$2.trim()]:[this.tooltip.expense()]),this.amounts={cashBank:h(0),expense:h(0)}}ngAfterViewInit(){T(()=>{this.isLoading()||queueMicrotask(()=>this.runCardEffect())},{injector:this.injector}),T(()=>{this.activeIndex(),queueMicrotask(()=>this.runCardEffect())},{injector:this.injector})}runCardEffect(){let t=this.activeIndex(),e=this.cards?.toArray();if(!e||e.length===0)return;e.forEach(o=>{let x=o.nativeElement.querySelector(".p-card-body");x&&(this.renderer.setStyle(x,"height","90px"),this.renderer.removeStyle(x,"background-color"),this.renderer.removeStyle(x,"box-shadow"))});let i=e[t];if(i){let o=i.nativeElement.querySelector(".p-card-body");o&&(this.renderer.setStyle(o,"background-color","#F0F0F0"),this.renderer.setStyle(o,"overflow","hidden"))}}onTabChange(t){this.activeIndex.set(t)}handleLinkClick(t,e){t.stopPropagation(),e.checked=!e.checked,e.checked&&(console.log(e.value),this.onTabChange(Number(e.value)))}onCashBankTitle(t){this.pageTitle.set(t),this.isLoading.set(!1)}onExpenseTitle(t){this.pageTitle.set(t),this.isLoading.set(!1)}onAmountCashBank(t){console.log("Total Amount from CashBank:",t),this.amounts.cashBank.set(t)}onAmountExpense(t){console.log("Total Amount from Expense:",t),this.amounts.expense.set(t)}onExpenseTooltip(t){this.tooltip.expense.set(t)}onCashBankTooltip(t){this.tooltip.cashBank.set(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=O({type:n,selectors:[["ng-component"]],viewQuery:function(e,i){if(e&1&&rt(P,5,$),e&2){let o;st(o=pt())&&(i.cards=o)}},decls:3,vars:5,consts:[["content",""],["expenseCheckbox",""],["card",""],["tooltipContent",""],["cashBankCheckbox",""],[3,"hasMainWrapperPadding","limitStrLength","overflowScroll","isLoading","pageTitle"],[1,"d-flex","flex-column","row-gap-10"],[1,"row","row-gap-24"],[1,"col-12","col-md-6","col-lg-4"],["width","100%","height","8rem"],["name","dashboardOption","type","radio","hidden","","value","0"],[1,"btn","p-0","border-none","btn-link","w-100",3,"click"],[1,"card-container"],[1,"box-icon",2,"background-color","#d73636"],[1,"d-flex","text-white","align-items-baseline"],[1,"fa-solid","fa-circle-dollar-to-slot"],["tooltipPosition","top",3,"pTooltip","fitContent"],[1,"d-flex","justify-content-end"],[1,"d-flex","flex-column","align-items-end"],[1,"fs-5"],[1,"box-number","fs-4"],[1,"d-flex","flex-column"],["name","dashboardOption","type","radio","hidden","","value","1"],[1,"box-icon"],[1,"fa-duotone","fa-solid","fa-wallet","text-white"],["tooltipPosition","top",3,"pTooltip"],["pTemplate","content"],[3,"amountExpense","expenseTitle","tooltip"],[3,"cashBankTitle","amountCashBank","tooltip"]],template:function(e,i){e&1&&(a(0,"app-main-panel",5),_(1,Kt,11,3,"ng-template",null,0,X),r()),e&2&&m("hasMainWrapperPadding",!0)("limitStrLength",50)("overflowScroll",!0)("isLoading",i.isLoading())("pageTitle",i.pageTitle())},dependencies:[xt,ft,Mt,D,P,bt,ht,mt,Pt,gt,Ot,Tt,Ct,vt,Et,Dt,E,S,yt,kt],styles:['@charset "UTF-8";.card-container[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .card-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.card-container[_ngcontent-%COMP%]{position:relative;height:4rem}.card-container[_ngcontent-%COMP%] .box-icon[_ngcontent-%COMP%]{height:50px;width:50px;background-color:#2175d0;display:flex;justify-content:center;align-items:center;z-index:2;position:relative;border-radius:4px;left:1.5rem;top:-.6rem}.card-container[_ngcontent-%COMP%] .box-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:30px}.card-container[_ngcontent-%COMP%] .box-number[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:500}.card-container[_ngcontent-%COMP%] .box-title[_ngcontent-%COMP%]{font-size:1rem}.card-container[_ngcontent-%COMP%] p-card[_ngcontent-%COMP%]{position:absolute;top:calc(2.6rem - 55%);left:0;width:100%;z-index:1;margin:0!important;padding:0!important}@media (max-width: 85rem){.card-container[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .card-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.card-container[_ngcontent-%COMP%]{position:relative;height:4rem}.card-container[_ngcontent-%COMP%] .box-icon[_ngcontent-%COMP%]{height:50px;width:50px;background-color:#2175d0;display:flex;justify-content:center;align-items:center;z-index:2;position:relative;border-radius:4px;left:1.5rem;top:-.6rem}.card-container[_ngcontent-%COMP%] .box-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:30px}.card-container[_ngcontent-%COMP%] .box-number[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:500}.card-container[_ngcontent-%COMP%] .box-title[_ngcontent-%COMP%]{font-size:1rem}.card-container[_ngcontent-%COMP%] p-card[_ngcontent-%COMP%]{position:absolute;top:calc(2.6rem - 55%);left:0;width:100%;z-index:1;margin:0!important;padding:0!important}}@media (min-width: 85.001rem) and (max-width: 97.999rem){.card-container[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .card-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.card-container[_ngcontent-%COMP%]{position:relative;height:4rem}.card-container[_ngcontent-%COMP%] .box-icon[_ngcontent-%COMP%]{height:50px;width:50px;background-color:#2175d0;display:flex;justify-content:center;align-items:center;z-index:2;position:relative;border-radius:4px;left:1.5rem;top:-.6rem}.card-container[_ngcontent-%COMP%] .box-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:30px}.card-container[_ngcontent-%COMP%] .box-number[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:500}.card-container[_ngcontent-%COMP%] .box-title[_ngcontent-%COMP%]{font-size:1rem}.card-container[_ngcontent-%COMP%] p-card[_ngcontent-%COMP%]{position:absolute;top:calc(2.6rem - 55%);left:0;width:100%;z-index:1;margin:0!important;padding:0!important}}@media (min-width: 98rem){.card-container[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .card-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.card-container[_ngcontent-%COMP%]{position:relative;height:4rem}.card-container[_ngcontent-%COMP%] .box-icon[_ngcontent-%COMP%]{height:80px;width:80px;background-color:#2175d0;display:flex;justify-content:center;align-items:center;z-index:2;position:relative;border-radius:4px;left:1.5rem;top:-.6rem}.card-container[_ngcontent-%COMP%] .box-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:40px}.card-container[_ngcontent-%COMP%] .box-number[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:500}.card-container[_ngcontent-%COMP%] .box-title[_ngcontent-%COMP%]{font-size:1.15rem}.card-container[_ngcontent-%COMP%] p-card[_ngcontent-%COMP%]{position:absolute;top:calc(2.6rem - 55%);left:0;width:100%;z-index:1;margin:0!important;padding:0!important}}']})}}return n})();export{Ge as Dashboard1Component};
@@ -1 +1 @@
1
- import{a as i,b as T}from"./chunk-U2VDC52W.js";import{d as s}from"./chunk-F7PVAVLQ.js";import{c as m}from"./chunk-VFKJMUGN.js";import{a as l}from"./chunk-5DRALZZF.js";import{_ as a,ca as c,ia as r}from"./chunk-6QJHEOXN.js";var h=(()=>{class o{constructor(){this.httpService=r(l),this.router=r(s),this.intercomService=r(m),this.tokenService=r(T),this.autoLogout()}login(e){return this.httpService.post("","api/Authentication/login",e).pipe(a(t=>{let n=e.SubDomain;localStorage.setItem("AUTH_TOKEN",t.access_token),localStorage.setItem("AUTH_POS_TOKEN",t.pos.access_token),localStorage.setItem("AUTH_TOKEN_TYPE",t.token_type),localStorage.setItem("AUTH_EXPIRES_AT",t.expiredAt),localStorage.setItem("AUTH_DOMAIN",n.substring(n.indexOf("."))),localStorage.setItem("AUTH_SUB_DOMAIN",e.SubDomain.split(".")[0]),localStorage.setItem("AUTH_USERNAME",e.Username),this.storeIntercom(t),this.storeTenantId(t.pos.access_token),this.storeRoles(t.access_token),this.tokenService.setToken(t.access_token),this.autoLogout()}))}storeIntercom(e){let t=e.intercomWidget?JSON.stringify(e.intercomWidget):null;t&&localStorage.setItem("INTERCOM",t)}isAuthenticated(){return!!localStorage.getItem("AUTH_TOKEN")}getToken(){return localStorage.getItem("AUTH_TOKEN")}getTokenType(){return localStorage.getItem("AUTH_TOKEN_TYPE")}isTokenExpired(){let e=localStorage.getItem("AUTH_EXPIRES_AT");return e?new Date(e).getTime()<Date.now():!0}autoLogout(){clearTimeout(this.logoutTimer);let e=localStorage.getItem("AUTH_EXPIRES_AT");if(!e)return;let t=new Date(e).getTime()-Date.now();t>0?this.logoutTimer=setTimeout(()=>this.logout(),t):this.logout()}getTenantExternalURL(){let e=localStorage.getItem("AUTH_SUB_DOMAIN")||"",t=localStorage.getItem("AUTH_DOMAIN")||"";return e&&t?`https://${e}${t}`:""}getTanantToken(){return localStorage.getItem("AUTH_POS_TOKEN")}logout(){this.intercomService.shutdown(),localStorage.removeItem("AUTH_TOKEN"),localStorage.removeItem("AUTH_TOKEN_TYPE"),localStorage.removeItem("AUTH_EXPIRES_AT"),localStorage.removeItem("INTERCOM"),clearTimeout(this.logoutTimer),this.router.navigate([""])}getFullDomain(){let e=localStorage.getItem("AUTH_SUB_DOMAIN"),t=localStorage.getItem("AUTH_DOMAIN");return!e||!t?(console.error("Subdomain or domain is missing in local storage."),null):`${e}${t}`}storeTenantId(e){let t=i(e);console.log("Decoded Token:",t),t&&(localStorage.setItem("AC_TENANT_BRAND",t.Brand),localStorage.setItem("AC_TENANT_LID",t.LID))}storeRoles(e){let t=i(e);console.log("Decoded Token:",t),t&&localStorage.setItem("AUTH_ROLES",JSON.stringify(t["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"]))}checkAuthKeysExists(){return["AC_TENANT_BRAND","AC_TENANT_LID","AUTH_DOMAIN","AUTH_EXPIRES_AT","AUTH_POS_TOKEN","AUTH_SUB_DOMAIN","AUTH_TOKEN","AUTH_TOKEN_TYPE","AUTH_USERNAME","AUTH_ROLES"].every(t=>!!localStorage.getItem(t))}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{h as a};
1
+ import{a as i,b as T}from"./chunk-WL6ZZCYW.js";import{d as s}from"./chunk-DZCJWJUG.js";import{c as m}from"./chunk-VQ62YSFR.js";import{a as l}from"./chunk-G3BJCT7T.js";import{_ as a,ca as c,ia as r}from"./chunk-6QJHEOXN.js";var h=(()=>{class o{constructor(){this.httpService=r(l),this.router=r(s),this.intercomService=r(m),this.tokenService=r(T),this.autoLogout()}login(e){return this.httpService.post("","api/Authentication/login",e).pipe(a(t=>{let n=e.SubDomain;localStorage.setItem("AUTH_TOKEN",t.access_token),localStorage.setItem("AUTH_POS_TOKEN",t.pos.access_token),localStorage.setItem("AUTH_TOKEN_TYPE",t.token_type),localStorage.setItem("AUTH_EXPIRES_AT",t.expiredAt),localStorage.setItem("AUTH_DOMAIN",n.substring(n.indexOf("."))),localStorage.setItem("AUTH_SUB_DOMAIN",e.SubDomain.split(".")[0]),localStorage.setItem("AUTH_USERNAME",e.Username),this.storeIntercom(t),this.storeTenantId(t.pos.access_token),this.storeRoles(t.access_token),this.tokenService.setToken(t.access_token),this.autoLogout()}))}storeIntercom(e){let t=e.intercomWidget?JSON.stringify(e.intercomWidget):null;t&&localStorage.setItem("INTERCOM",t)}isAuthenticated(){return!!localStorage.getItem("AUTH_TOKEN")}getToken(){return localStorage.getItem("AUTH_TOKEN")}getTokenType(){return localStorage.getItem("AUTH_TOKEN_TYPE")}isTokenExpired(){let e=localStorage.getItem("AUTH_EXPIRES_AT");return e?new Date(e).getTime()<Date.now():!0}autoLogout(){clearTimeout(this.logoutTimer);let e=localStorage.getItem("AUTH_EXPIRES_AT");if(!e)return;let t=new Date(e).getTime()-Date.now();t>0?this.logoutTimer=setTimeout(()=>this.logout(),t):this.logout()}getTenantExternalURL(){let e=localStorage.getItem("AUTH_SUB_DOMAIN")||"",t=localStorage.getItem("AUTH_DOMAIN")||"";return e&&t?`https://${e}${t}`:""}getTanantToken(){return localStorage.getItem("AUTH_POS_TOKEN")}logout(){this.intercomService.shutdown(),localStorage.removeItem("AUTH_TOKEN"),localStorage.removeItem("AUTH_TOKEN_TYPE"),localStorage.removeItem("AUTH_EXPIRES_AT"),localStorage.removeItem("INTERCOM"),clearTimeout(this.logoutTimer),this.router.navigate([""])}getFullDomain(){let e=localStorage.getItem("AUTH_SUB_DOMAIN"),t=localStorage.getItem("AUTH_DOMAIN");return!e||!t?(console.error("Subdomain or domain is missing in local storage."),null):`${e}${t}`}storeTenantId(e){let t=i(e);console.log("Decoded Token:",t),t&&(localStorage.setItem("AC_TENANT_BRAND",t.Brand),localStorage.setItem("AC_TENANT_LID",t.LID))}storeRoles(e){let t=i(e);console.log("Decoded Token:",t),t&&localStorage.setItem("AUTH_ROLES",JSON.stringify(t["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"]))}checkAuthKeysExists(){return["AC_TENANT_BRAND","AC_TENANT_LID","AUTH_DOMAIN","AUTH_EXPIRES_AT","AUTH_POS_TOKEN","AUTH_SUB_DOMAIN","AUTH_TOKEN","AUTH_TOKEN_TYPE","AUTH_USERNAME","AUTH_ROLES"].every(t=>!!localStorage.getItem(t))}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{h as a};
@@ -1 +1 @@
1
- import{a as r}from"./chunk-5DRALZZF.js";import{ca as i,ia as n}from"./chunk-6QJHEOXN.js";var u=(()=>{class e{constructor(){this.httpService=n(r)}getClosingEntries(t){return this.httpService.get(void 0,"api/SetupClosingEntries/GetAll",{params:t})}createClosingEntry(t){return this.httpService.post(void 0,"api/SetupClosingEntries/Submit",t)}deleteClosingEntry(t){return this.httpService.delete(void 0,`api/SetupClosingEntries/Delete?closingEntryIds=${t}`)}getClosingEntryCount(){return this.httpService.get(void 0,"api/SetupClosingEntries/GetAllCount")}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{u as a};
1
+ import{a as r}from"./chunk-G3BJCT7T.js";import{ca as i,ia as n}from"./chunk-6QJHEOXN.js";var u=(()=>{class e{constructor(){this.httpService=n(r)}getClosingEntries(t){return this.httpService.get(void 0,"api/SetupClosingEntries/GetAll",{params:t})}createClosingEntry(t){return this.httpService.post(void 0,"api/SetupClosingEntries/Submit",t)}deleteClosingEntry(t){return this.httpService.delete(void 0,`api/SetupClosingEntries/Delete?closingEntryIds=${t}`)}getClosingEntryCount(){return this.httpService.get(void 0,"api/SetupClosingEntries/GetAllCount")}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{u as a};
@@ -1,4 +1,4 @@
1
- import{a as h}from"./chunk-ME4ALIS7.js";import{Ua as m}from"./chunk-VMI3QWC6.js";import{s as g}from"./chunk-ZK43JB4A.js";import{Cb as a,Dc as y,Wb as d,Xb as f,ca as u,da as r,hc as c,ia as s,ic as l,ua as p,yb as i,zb as b}from"./chunk-6QJHEOXN.js";var D=["*"],F=({dt:t})=>`
1
+ import{a as h}from"./chunk-O44DI62I.js";import{Va as m}from"./chunk-MGIEURA2.js";import{u as g}from"./chunk-DM2JLWKE.js";import{Cb as a,Dc as y,Wb as d,Xb as f,ca as u,da as r,hc as c,ia as s,ic as l,ua as p,yb as i,zb as b}from"./chunk-6QJHEOXN.js";var D=["*"],F=({dt:t})=>`
2
2
  .p-buttongroup .p-button {
3
3
  margin: 0;
4
4
  }
@@ -0,0 +1 @@
1
+ import{a as D,b as le}from"./chunk-NTVIX4GB.js";import"./chunk-JPNJTPYJ.js";import{m as H}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as ne,b as oe}from"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import{a as U,b as X}from"./chunk-5U7KZJ3H.js";import{a as re,b as ae}from"./chunk-CN6AT4LE.js";import{b as ie}from"./chunk-FHJOSHI3.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as te}from"./chunk-JPKZVL57.js";import"./chunk-VM56C6ZV.js";import{a as $,b as ee}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as Y,x as Z}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{e as q,j as K,x as Q}from"./chunk-MGIEURA2.js";import"./chunk-VQ62YSFR.js";import"./chunk-G3BJCT7T.js";import{a as G}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as R,u as A}from"./chunk-DM2JLWKE.js";import{Dc as z,Eb as F,Ec as P,Ha as b,Mb as u,Oc as V,Pb as T,Pc as k,Rb as v,Sc as x,W,Wb as r,Xb as a,Y as I,Yb as w,_ as N,ac as _,fc as f,gc as s,h as B,ia as M,ib as m,qa as l,ra as p,s as S,sa as O,sc as C,ta as L,xc as c,yb as j,yc as g,zc as d}from"./chunk-6QJHEOXN.js";import{a as E}from"./chunk-YQFG5XE2.js";var pe=()=>({height:"calc(100vh - 100px)"});function me(i,h){if(i&1){let e=_();r(0,"p-button",7),f("onClick",function(){l(e);let t=s(2);return p(t.onFormat())}),a()}}function se(i,h){if(i&1){let e=_();r(0,"p-button",8),f("onClick",function(){l(e);let t=s(2);return p(t.openMigrateDialog())}),a()}}function ue(i,h){if(i&1&&(r(0,"div",4),F(1,me,1,0,"p-button",5)(2,se,1,0,"p-button",6),a()),i&2){let e=s();m(),v(e.roleService.permissions().migrate.delete?1:-1),m(),v(e.roleService.permissions().migrate.create?2:-1)}}function ce(i,h){if(i&1){let e=_();r(0,"div",9)(1,"div",10)(2,"label",11),C(3,"From"),a(),r(4,"p-datepicker",12),d("ngModelChange",function(t){l(e);let o=s();return g(o.filter().From,t)||(o.filter().From=t),p(t)}),a()(),r(5,"div",10)(6,"label",11),C(7,"To"),a(),r(8,"p-datepicker",12),d("ngModelChange",function(t){l(e);let o=s();return g(o.filter().To,t)||(o.filter().To=t),p(t)}),a()(),r(9,"div",10)(10,"label",11),C(11,"Page Number"),a(),r(12,"p-inputnumber",13),d("ngModelChange",function(t){l(e);let o=s();return g(o.filter().PageNumber,t)||(o.filter().PageNumber=t),p(t)}),a()(),r(13,"div",10)(14,"label",11),C(15,"Page Size"),a(),r(16,"p-inputnumber",13),d("ngModelChange",function(t){l(e);let o=s();return g(o.filter().PageSize,t)||(o.filter().PageSize=t),p(t)}),a()()()}if(i&2){let e=s();m(4),u("showIcon",!0),c("ngModel",e.filter().From),m(4),u("showIcon",!0),c("ngModel",e.filter().To),m(4),c("ngModel",e.filter().PageNumber),m(4),c("ngModel",e.filter().PageSize)}}function ge(i,h){if(i&1&&(r(0,"p-scroll-panel")(1,"p-panel")(2,"div",14),w(3,"app-migration-cards",15),V(4,"async"),O(),r(5,"svg",16),w(6,"path",17),a(),L(),w(7,"app-migration-cards",18),V(8,"async"),a()()()),i&2){let e=s();T(P(12,pe)),m(),T(P(13,pe)),m(2),u("migrationCount",k(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),m(4),u("migrationCount",k(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var je=(()=>{class i{constructor(){this.migrateService=M(D),this.refresh$=new B(void 0),this.toastr=M(G),this.pageTitle="Manual Journal",this.filter=b({From:new Date,To:new Date,PageSize:45e3,PageNumber:1}),this.isFilterDialogOpen=b(!1),this.previousFilter=null,this.roleService=M(H)}ngOnInit(){let e=this.refresh$.pipe(I(()=>this.migrateService.getManualJournalCount()),W(1));this.countInPOS$=e.pipe(S(n=>Number(n.pos))),this.countInBooks$=e.pipe(S(n=>Number(n.books)))}openMigrateDialog(){this.previousFilter=E({},this.filter()),this.isFilterDialogOpen.set(!0)}onMigrate(){this.migrateService.migrateManualJournal(this.filter()).pipe(N(()=>{this.isFilterDialogOpen.update(e=>!e),this.refresh$.next(),this.previousFilter=null})).subscribe()}onFilterCanceled(){this.previousFilter&&(this.filter.set(this.previousFilter),this.previousFilter=null)}onFormat(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatManualJournal().subscribe(n=>{this.refresh$.next(),this.toastr.success(n.message,"Format Successful")})}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=j({type:i,selectors:[["app-manual-journal"]],features:[z([D])],decls:7,vars:2,consts:[["actionButton",""],["filters",""],["content",""],[3,"filterConfirmed","isDialogFilterVisibleChange","filterCanceled","pageTitle","isDialogFilterVisible"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Create"],["label","Format","severity","danger",3,"onClick"],["label","Create",3,"onClick"],[1,"d-flex","flex-column","row-gap-3"],[1,"d-flex","flex-column"],["for","outlet"],["styleClass","w-100","appendTo","body","iconDisplay","input","inputId","icondisplay",3,"ngModelChange","showIcon","ngModel"],["inputId","integeronly",3,"ngModelChange","ngModel"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(n,t){if(n&1){let o=_();r(0,"app-main-panel",3),f("filterConfirmed",function(){return l(o),p(t.onMigrate())}),d("isDialogFilterVisibleChange",function(y){return l(o),g(t.isFilterDialogOpen,y)||(t.isFilterDialogOpen=y),p(y)}),f("filterCanceled",function(){return l(o),p(t.onFilterCanceled())}),F(1,ue,3,2,"ng-template",null,0,x)(3,ce,17,6,"ng-template",null,1,x)(5,ge,9,14,"ng-template",null,2,x),a()}n&2&&(u("pageTitle",t.pageTitle),c("isDialogFilterVisible",t.isFilterDialogOpen))},dependencies:[te,A,R,ie,Z,Y,X,U,ee,$,le,oe,ne,Q,q,K,ae,re],encapsulation:2})}}return i})();export{je as ManualJournalComponent};
@@ -1,4 +1,4 @@
1
- import{a as ce}from"./chunk-M4SSELXT.js";import{i as ie}from"./chunk-ZFNIPERQ.js";import{a as oe}from"./chunk-ME4ALIS7.js";import{La as Z,Ma as C,Ua as ee,a as X,d as J,sa as W,ta as Y}from"./chunk-VMI3QWC6.js";import{h as U,k as G,m as H,s as K}from"./chunk-ZK43JB4A.js";import{$c as P,Aa as k,Cb as D,Dc as j,Eb as d,Ec as A,Fc as R,Ha as E,Lb as s,Mb as t,Pb as _,Qb as v,Wb as $,Xb as I,Yb as x,Zb as w,_b as T,_c as h,ac as L,ba as M,ca as F,da as S,fc as Q,gc as f,ia as z,ib as l,lc as V,mc as N,nc as g,oc as m,pa as B,qa as u,ra as p,ua as y,yb as O,zb as q}from"./chunk-6QJHEOXN.js";var ae=["checkboxicon"],re=["input"],le=()=>({"p-checkbox-input":!0}),he=e=>({checked:e,class:"p-checkbox-icon"});function se(e,a){if(e&1&&x(0,"span",8),e&2){let o=f(3);t("ngClass",o.checkboxIcon),s("data-pc-section","icon")}}function be(e,a){e&1&&x(0,"CheckIcon",9),e&2&&(t("styleClass","p-checkbox-icon"),s("data-pc-section","icon"))}function de(e,a){if(e&1&&(w(0),d(1,se,1,2,"span",7)(2,be,1,2,"CheckIcon",6),T()),e&2){let o=f(2);l(),t("ngIf",o.checkboxIcon),l(),t("ngIf",!o.checkboxIcon)}}function ue(e,a){e&1&&x(0,"MinusIcon",9),e&2&&(t("styleClass","p-checkbox-icon"),s("data-pc-section","icon"))}function pe(e,a){if(e&1&&(w(0),d(1,de,3,2,"ng-container",4)(2,ue,1,2,"MinusIcon",6),T()),e&2){let o=f();l(),t("ngIf",o.checked),l(),t("ngIf",o._indeterminate())}}function ke(e,a){}function xe(e,a){e&1&&d(0,ke,0,0,"ng-template")}var fe=({dt:e})=>`
1
+ import{a as ce}from"./chunk-L4ENW4RK.js";import{a as ie}from"./chunk-ALLR2NXQ.js";import{a as oe}from"./chunk-O44DI62I.js";import{Ma as Z,Na as C,Va as ee,a as X,d as J,ta as W,ua as Y}from"./chunk-MGIEURA2.js";import{j as U,m as G,o as H,u as K}from"./chunk-DM2JLWKE.js";import{$c as P,Aa as k,Cb as D,Dc as j,Eb as d,Ec as A,Fc as R,Ha as E,Lb as s,Mb as t,Pb as _,Qb as v,Wb as $,Xb as I,Yb as x,Zb as w,_b as T,_c as h,ac as L,ba as M,ca as F,da as S,fc as Q,gc as f,ia as z,ib as l,lc as V,mc as N,nc as g,oc as m,pa as B,qa as u,ra as p,ua as y,yb as O,zb as q}from"./chunk-6QJHEOXN.js";var ae=["checkboxicon"],re=["input"],le=()=>({"p-checkbox-input":!0}),he=e=>({checked:e,class:"p-checkbox-icon"});function se(e,a){if(e&1&&x(0,"span",8),e&2){let o=f(3);t("ngClass",o.checkboxIcon),s("data-pc-section","icon")}}function be(e,a){e&1&&x(0,"CheckIcon",9),e&2&&(t("styleClass","p-checkbox-icon"),s("data-pc-section","icon"))}function de(e,a){if(e&1&&(w(0),d(1,se,1,2,"span",7)(2,be,1,2,"CheckIcon",6),T()),e&2){let o=f(2);l(),t("ngIf",o.checkboxIcon),l(),t("ngIf",!o.checkboxIcon)}}function ue(e,a){e&1&&x(0,"MinusIcon",9),e&2&&(t("styleClass","p-checkbox-icon"),s("data-pc-section","icon"))}function pe(e,a){if(e&1&&(w(0),d(1,de,3,2,"ng-container",4)(2,ue,1,2,"MinusIcon",6),T()),e&2){let o=f();l(),t("ngIf",o.checked),l(),t("ngIf",o._indeterminate())}}function ke(e,a){}function xe(e,a){e&1&&d(0,ke,0,0,"ng-template")}var fe=({dt:e})=>`
2
2
  .p-checkbox {
3
3
  position: relative;
4
4
  display: inline-flex;