dealposbooks 1.9.0 → 1.9.2

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 (123) hide show
  1. package/3rdpartylicenses.txt +43 -43
  2. package/assets/scss/layouts/_layout.scss +1 -1
  3. package/assets/scss/layouts/dark/_dark.scss +164 -153
  4. package/assets/scss/style.scss +1 -1
  5. package/assets/scss/variables/_variables.scss +4 -2
  6. package/assets/world.json +17808 -1
  7. package/{chunk-S64TQVWK.js → chunk-2GAPYNNZ.js} +1 -1
  8. package/chunk-2HYLQR56.js +1 -0
  9. package/chunk-2VTAWSHV.js +1 -0
  10. package/chunk-3R4UQAEP.js +1 -0
  11. package/chunk-3SPHZLLV.js +301 -0
  12. package/{chunk-CEMQLY34.js → chunk-4EDEITTK.js} +1 -1
  13. package/{chunk-3TRGIHUH.js → chunk-4FHVIHSY.js} +1 -1
  14. package/chunk-4OHRBQE4.js +1 -0
  15. package/chunk-4OXMK44M.js +1 -0
  16. package/chunk-4TTJBC5I.js +1 -0
  17. package/chunk-5CZUTVXD.js +47 -0
  18. package/chunk-5M3BH2HK.js +1 -0
  19. package/{chunk-UIM6GQ63.js → chunk-5MHVGNVO.js} +1 -1
  20. package/{chunk-VYTUB2DV.js → chunk-63XPN7AG.js} +1 -1
  21. package/chunk-74EMBNLM.js +1 -0
  22. package/chunk-75NY4EHJ.js +7 -0
  23. package/{chunk-ON4N4CPO.js → chunk-7CAU344O.js} +1 -1
  24. package/chunk-BS6MB7HD.js +1 -0
  25. package/chunk-C54Z7Z3J.js +246 -0
  26. package/{chunk-IF72X7RS.js → chunk-CCE4VMYO.js} +1 -1
  27. package/chunk-CP57YBBI.js +2 -0
  28. package/{chunk-SJTXIIX5.js → chunk-DCES5UJV.js} +1 -1
  29. package/{chunk-MS3UTNX6.js → chunk-DERWDCI5.js} +1 -1
  30. package/chunk-EDPSZYHH.js +1 -0
  31. package/{chunk-RNU2O7NF.js → chunk-ELUESCCC.js} +1 -1
  32. package/{chunk-CMHZLZ4E.js → chunk-FJ7IM55X.js} +1 -1
  33. package/{chunk-YILEWAVV.js → chunk-FNWWNWQP.js} +1 -1
  34. package/chunk-FOSJHYSQ.js +300 -0
  35. package/chunk-GH3BVHFE.js +1 -0
  36. package/{chunk-VVC3QQUI.js → chunk-GO3ETPB7.js} +1 -1
  37. package/chunk-GYI6FJNZ.js +1 -0
  38. package/{chunk-HZLUYZB3.js → chunk-GYOO2JKC.js} +1 -1
  39. package/chunk-HF7H6NPN.js +1 -0
  40. package/chunk-HGUXJRBI.js +1 -0
  41. package/{chunk-TL6UHPBU.js → chunk-HKFTHGN6.js} +1 -1
  42. package/{chunk-DWTUKOMR.js → chunk-JBLYOAVS.js} +1 -1
  43. package/chunk-JDKSRPMM.js +1 -0
  44. package/chunk-JWPV2SP2.js +59 -0
  45. package/chunk-K5GIEJY3.js +7 -0
  46. package/{chunk-QBJKUIXK.js → chunk-KOC7QQ5A.js} +1 -1
  47. package/{chunk-BTZS5NIZ.js → chunk-M66SFDOI.js} +1 -1
  48. package/chunk-MOGY4H6O.js +1 -0
  49. package/{chunk-PATWAZNE.js → chunk-OBBJFGOA.js} +1 -1
  50. package/{chunk-G7MS6UI4.js → chunk-OPNWLQQY.js} +1 -1
  51. package/{chunk-35EULUGT.js → chunk-OUJ6CGAI.js} +1 -1
  52. package/{chunk-AKZM2DMY.js → chunk-OVUTH3B6.js} +1 -1
  53. package/chunk-OWUXXKGD.js +180 -0
  54. package/{chunk-R3FUAON5.js → chunk-PAQGWJ3J.js} +1 -1
  55. package/chunk-PCZW753D.js +1 -0
  56. package/chunk-PMQ7L7VQ.js +1 -0
  57. package/chunk-PRVKVHZC.js +1 -0
  58. package/{chunk-UNNEEFI2.js → chunk-PZRWSIXN.js} +1 -1
  59. package/{chunk-G63G4UQZ.js → chunk-Q3HG4BLC.js} +2 -2
  60. package/chunk-QEQCMTMU.js +1 -0
  61. package/chunk-QMXENXYW.js +1 -0
  62. package/chunk-R4CV5F66.js +1 -0
  63. package/chunk-RJZW77TO.js +1 -0
  64. package/{chunk-DYZT7UKM.js → chunk-S6JRFIGG.js} +1 -1
  65. package/{chunk-F6SXKAYF.js → chunk-TO47DVWB.js} +1 -1
  66. package/chunk-UHDEQNDX.js +1 -0
  67. package/{chunk-34EMCCL5.js → chunk-V4MEQMDJ.js} +3 -3
  68. package/{chunk-GHZLR44M.js → chunk-VET2QT6C.js} +1 -1
  69. package/chunk-VHNXAKFS.js +1 -0
  70. package/chunk-W37QK7Z5.js +520 -0
  71. package/{chunk-HZ7WPLLK.js → chunk-W56XJVPD.js} +1 -1
  72. package/chunk-W5VZK5LZ.js +70 -0
  73. package/chunk-WF2ZEF5P.js +1 -0
  74. package/{chunk-Q4Y2IGA6.js → chunk-WLFERE5C.js} +1 -1
  75. package/chunk-WZ5MSCDB.js +1 -0
  76. package/chunk-XFW6LFAM.js +5 -0
  77. package/chunk-YAEJRHVD.js +1 -0
  78. package/chunk-Z5SFK23M.js +960 -0
  79. package/{chunk-ROX6NFMK.js → chunk-ZQKGNYP5.js} +1 -1
  80. package/{chunk-26X2X35R.js → chunk-ZZNYX7MX.js} +1 -1
  81. package/index.html +3 -3
  82. package/main-G22CDQKS.js +1 -0
  83. package/package.json +1 -1
  84. package/styles-ETBLCGC3.css +1 -0
  85. package/chunk-2VF35PRV.js +0 -7
  86. package/chunk-6TRUWOKK.js +0 -1
  87. package/chunk-7FE3ZTH3.js +0 -7
  88. package/chunk-7V4AFAU5.js +0 -1
  89. package/chunk-AVL6C3VX.js +0 -59
  90. package/chunk-CAI423H5.js +0 -1
  91. package/chunk-DDBPJDR6.js +0 -1
  92. package/chunk-DXCBV3NP.js +0 -1
  93. package/chunk-E2RBYY7Q.js +0 -1
  94. package/chunk-E2VJWAI2.js +0 -1
  95. package/chunk-EBTC6B2W.js +0 -2
  96. package/chunk-EHULZLLD.js +0 -300
  97. package/chunk-ESKS6LNH.js +0 -246
  98. package/chunk-G4MYTCDD.js +0 -1
  99. package/chunk-GGZEY27B.js +0 -1
  100. package/chunk-I7T4W6G2.js +0 -47
  101. package/chunk-JXI4NDYT.js +0 -1
  102. package/chunk-KFKLJQ2D.js +0 -1
  103. package/chunk-KLKIGY44.js +0 -1
  104. package/chunk-KO5IN2G2.js +0 -1
  105. package/chunk-L2BS7BTV.js +0 -1
  106. package/chunk-LUH5EEUM.js +0 -1
  107. package/chunk-MEKP6D5H.js +0 -1
  108. package/chunk-MQ5Y727W.js +0 -1
  109. package/chunk-NWVWD4IE.js +0 -1
  110. package/chunk-NXCLB2JQ.js +0 -1
  111. package/chunk-OVJSBJBH.js +0 -197
  112. package/chunk-PBI352JR.js +0 -1
  113. package/chunk-PKK7JSPR.js +0 -1
  114. package/chunk-PKPPDJWT.js +0 -301
  115. package/chunk-PMLVFBAT.js +0 -1
  116. package/chunk-TDHD3ZTF.js +0 -1
  117. package/chunk-UFS2HLAY.js +0 -1
  118. package/chunk-UM7MB5JU.js +0 -1
  119. package/chunk-USO7UKRV.js +0 -821
  120. package/chunk-YF4S6CQO.js +0 -524
  121. package/chunk-YNI2HWIV.js +0 -180
  122. package/main-YPUVQR54.js +0 -1
  123. package/styles-JMIKZHNX.css +0 -1
package/chunk-AVL6C3VX.js DELETED
@@ -1,59 +0,0 @@
1
- import{n as B,o as Dt}from"./chunk-OVJSBJBH.js";import{a as Pt}from"./chunk-26X2X35R.js";import{F as A,H as it,L as Vt,ca as Lt,ka as Ft,la as U,r as xt,ta as Ot,w as k}from"./chunk-35EULUGT.js";import{j as It,l as vt,m as Tt,n as zt,o as bt,s as Et,v as et}from"./chunk-SJTXIIX5.js";import{Ib as w,Ic as Z,Jb as m,Kb as pt,Mb as ut,Nb as F,Tb as S,Ub as I,Vb as v,Wb as P,Xb as D,Yb as Q,Zb as _t,ba as st,ca as ot,cc as gt,dc as C,ec as ft,fb as _,fc as Ct,ha as lt,hc as N,ic as tt,jc as M,kc as R,lb as dt,lc as j,oa as rt,pa as at,qa as ct,ra as O,sa as E,tb as x,ub as mt,uc as yt,vc as wt,wc as $,xb as V,xc as q,ya as K,yc as St,za as ht,zb as y}from"./chunk-2VF35PRV.js";import{a as J,b as Y}from"./chunk-EQDQRRRY.js";var ge=(()=>{class n extends B{static \u0275fac=(()=>{let t;return function(i){return(t||(t=E(n)))(i||n)}})();static \u0275cmp=x({type:n,selectors:[["BlankIcon"]],features:[V],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,i){e&1&&(O(),S(0,"svg",0),v(1,"rect",1),I())},encapsulation:2})}return n})();var ye=(()=>{class n extends B{static \u0275fac=(()=>{let t;return function(i){return(t||(t=E(n)))(i||n)}})();static \u0275cmp=x({type:n,selectors:[["CheckIcon"]],features:[V],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(e,i){e&1&&(O(),S(0,"svg",0),v(1,"path",1),I()),e&2&&(F(i.getClassNames()),w("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return n})();var Ie=(()=>{class n extends B{static \u0275fac=(()=>{let t;return function(i){return(t||(t=E(n)))(i||n)}})();static \u0275cmp=x({type:n,selectors:[["MinusIcon"]],features:[V],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(e,i){e&1&&(O(),S(0,"svg",0),v(1,"path",1),I()),e&2&&(F(i.getClassNames()),w("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return n})();var be=(()=>{class n extends B{pathId;ngOnInit(){this.pathId="url(#"+Lt()+")"}static \u0275fac=(()=>{let t;return function(i){return(t||(t=E(n)))(i||n)}})();static \u0275cmp=x({type:n,selectors:[["SearchIcon"]],features:[V],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,i){e&1&&(O(),S(0,"svg",0)(1,"g"),v(2,"path",1),I(),S(3,"defs")(4,"clipPath",2),v(5,"rect",3),I()()()),e&2&&(F(i.getClassNames()),w("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),_(),w("clip-path",i.pathId),_(3),m("id",i.pathId))},encapsulation:2})}return n})();var Mt=["content"],Ht=["item"],Wt=["loader"],kt=["loadericon"],At=["element"],Qt=["*"],Nt=(n,c,t)=>({"p-virtualscroller":!0,"p-virtualscroller-inline":n,"p-virtualscroller-both p-both-scroll":c,"p-virtualscroller-horizontal p-horizontal-scroll":t}),nt=(n,c)=>({$implicit:n,options:c}),$t=n=>({"p-virtualscroller-content":!0,"p-virtualscroller-loading ":n}),jt=n=>({"p-virtualscroller-loader-mask":n}),qt=n=>({numCols:n}),Bt=n=>({options:n}),Zt=()=>({styleClass:"p-virtualscroller-loading-icon"}),Gt=(n,c)=>({rows:n,columns:c});function Jt(n,c){n&1&&Q(0)}function Kt(n,c){if(n&1&&(P(0),y(1,Jt,1,0,"ng-container",10),D()),n&2){let t=C(2);_(),m("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",q(2,nt,t.loadedItems,t.getContentOptions()))}}function Ut(n,c){n&1&&Q(0)}function Xt(n,c){if(n&1&&(P(0),y(1,Ut,1,0,"ng-container",10),D()),n&2){let t=c.$implicit,e=c.index,i=C(3);_(),m("ngTemplateOutlet",i.itemTemplate||i._itemTemplate)("ngTemplateOutletContext",q(2,nt,t,i.getOptions(e)))}}function Yt(n,c){if(n&1&&(S(0,"div",11,3),y(2,Xt,2,5,"ng-container",12),I()),n&2){let t=C(2);ut(t.contentStyle),F(t.contentStyleClass),m("ngClass",$(8,$t,t.d_loading)),w("data-pc-section","content"),_(2),m("ngForOf",t.loadedItems)("ngForTrackBy",t._trackBy)}}function te(n,c){if(n&1&&v(0,"div",13),n&2){let t=C(2);m("ngStyle",t.spacerStyle),w("data-pc-section","spacer")}}function ee(n,c){n&1&&Q(0)}function ie(n,c){if(n&1&&(P(0),y(1,ee,1,0,"ng-container",10),D()),n&2){let t=c.index,e=C(4);_(),m("ngTemplateOutlet",e.loaderTemplate||e._loaderTemplate)("ngTemplateOutletContext",$(4,Bt,e.getLoaderOptions(t,e.both&&$(2,qt,e.numItemsInViewport.cols))))}}function ne(n,c){if(n&1&&(P(0),y(1,ie,2,6,"ng-container",15),D()),n&2){let t=C(3);_(),m("ngForOf",t.loaderArr)}}function se(n,c){n&1&&Q(0)}function oe(n,c){if(n&1&&(P(0),y(1,se,1,0,"ng-container",10),D()),n&2){let t=C(4);_(),m("ngTemplateOutlet",t.loaderIconTemplate||t._loaderIconTemplate)("ngTemplateOutletContext",$(3,Bt,wt(2,Zt)))}}function le(n,c){n&1&&v(0,"SpinnerIcon",16),n&2&&(m("styleClass","p-virtualscroller-loading-icon pi-spin"),w("data-pc-section","loadingIcon"))}function re(n,c){if(n&1&&y(0,oe,2,5,"ng-container",6)(1,le,1,2,"ng-template",null,5,Z),n&2){let t=j(2),e=C(3);m("ngIf",e.loaderIconTemplate||e._loaderIconTemplate)("ngIfElse",t)}}function ae(n,c){if(n&1&&(S(0,"div",14),y(1,ne,2,1,"ng-container",6)(2,re,3,2,"ng-template",null,4,Z),I()),n&2){let t=j(3),e=C(2);m("ngClass",$(4,jt,!e.loaderTemplate)),w("data-pc-section","loader"),_(),m("ngIf",e.loaderTemplate||e._loaderTemplate)("ngIfElse",t)}}function ce(n,c){if(n&1){let t=_t();P(0),S(1,"div",7,1),gt("scroll",function(i){at(t);let s=C();return ct(s.onContainerScroll(i))}),y(3,Kt,2,5,"ng-container",6)(4,Yt,3,10,"ng-template",null,2,Z)(6,te,1,2,"div",8)(7,ae,4,6,"div",9),I(),D()}if(n&2){let t=j(5),e=C();_(),F(e._styleClass),m("ngStyle",e._style)("ngClass",St(12,Nt,e.inline,e.both,e.horizontal)),w("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 he(n,c){n&1&&Q(0)}function de(n,c){if(n&1&&(P(0),y(1,he,1,0,"ng-container",10),D()),n&2){let t=C(2);_(),m("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",q(5,nt,t.items,q(2,Gt,t._items,t.loadedColumns)))}}function me(n,c){if(n&1&&(Ct(0),y(1,de,2,8,"ng-container",17)),n&2){let t=C();_(),m("ngIf",t.contentTemplate||t._contentTemplate)}}var pe=({dt:n})=>`
2
- .p-virtualscroller {
3
- position: relative;
4
- overflow: auto;
5
- contain: strict;
6
- transform: translateZ(0);
7
- will-change: scroll-position;
8
- outline: 0 none;
9
- }
10
-
11
- .p-virtualscroller-content {
12
- position: absolute;
13
- top: 0;
14
- left: 0;
15
- min-height: 100%;
16
- min-width: 100%;
17
- will-change: transform;
18
- }
19
-
20
- .p-virtualscroller-spacer {
21
- position: absolute;
22
- top: 0;
23
- left: 0;
24
- height: 1px;
25
- width: 1px;
26
- transform-origin: 0 0;
27
- pointer-events: none;
28
- }
29
-
30
- .p-virtualscroller-loader {
31
- position: sticky;
32
- top: 0;
33
- left: 0;
34
- width: 100%;
35
- height: 100%;
36
- background: ${n("virtualscroller.loader.mask.background")};
37
- color: ${n("virtualscroller.loader.mask.color")};
38
- }
39
-
40
- .p-virtualscroller-loader-mask {
41
- display: flex;
42
- align-items: center;
43
- justify-content: center;
44
- }
45
-
46
- .p-virtualscroller-loading-icon {
47
- font-size: ${n("virtualscroller.loader.icon.size")};
48
- width: ${n("virtualscroller.loader.icon.size")};
49
- height: ${n("virtualscroller.loader.icon.size")};
50
- }
51
-
52
- .p-virtualscroller-horizontal > .p-virtualscroller-content {
53
- display: flex;
54
- }
55
-
56
- .p-virtualscroller-inline .p-virtualscroller-content {
57
- position: static;
58
- }
59
- `,Rt=(()=>{class n extends Ot{name="virtualscroller";theme=pe;static \u0275fac=(()=>{let t;return function(i){return(t||(t=E(n)))(i||n)}})();static \u0275prov=st({token:n,factory:n.\u0275fac})}return n})();var ue=(()=>{class n extends Pt{zone;get id(){return this._id}set id(t){this._id=t}get style(){return this._style}set style(t){this._style=t}get styleClass(){return this._styleClass}set styleClass(t){this._styleClass=t}get tabindex(){return this._tabindex}set tabindex(t){this._tabindex=t}get items(){return this._items}set items(t){this._items=t}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=t}get scrollHeight(){return this._scrollHeight}set scrollHeight(t){this._scrollHeight=t}get scrollWidth(){return this._scrollWidth}set scrollWidth(t){this._scrollWidth=t}get orientation(){return this._orientation}set orientation(t){this._orientation=t}get step(){return this._step}set step(t){this._step=t}get delay(){return this._delay}set delay(t){this._delay=t}get resizeDelay(){return this._resizeDelay}set resizeDelay(t){this._resizeDelay=t}get appendOnly(){return this._appendOnly}set appendOnly(t){this._appendOnly=t}get inline(){return this._inline}set inline(t){this._inline=t}get lazy(){return this._lazy}set lazy(t){this._lazy=t}get disabled(){return this._disabled}set disabled(t){this._disabled=t}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(t){this._loaderDisabled=t}get columns(){return this._columns}set columns(t){this._columns=t}get showSpacer(){return this._showSpacer}set showSpacer(t){this._showSpacer=t}get showLoader(){return this._showLoader}set showLoader(t){this._showLoader=t}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(t){this._numToleratedItems=t}get loading(){return this._loading}set loading(t){this._loading=t}get autoSize(){return this._autoSize}set autoSize(t){this._autoSize=t}get trackBy(){return this._trackBy}set trackBy(t){this._trackBy=t}get options(){return this._options}set options(t){this._options=t,t&&typeof t=="object"&&(Object.entries(t).forEach(([e,i])=>this[`_${e}`]!==i&&(this[`_${e}`]=i)),Object.entries(t).forEach(([e,i])=>this[`${e}`]!==i&&(this[`${e}`]=i)))}onLazyLoad=new K;onScroll=new K;onScrollIndexChange=new K;elementViewChild;contentViewChild;height;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;templates;_contentTemplate;_itemTemplate;_loaderTemplate;_loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;_contentStyleClass;get contentStyleClass(){return this._contentStyleClass}set contentStyleClass(t){this._contentStyleClass=t}get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(t=>this._columns?t:t.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}_componentStyle=lt(Rt);constructor(t){super(),this.zone=t}ngOnInit(){super.ngOnInit(),this.setInitialState()}ngOnChanges(t){super.ngOnChanges(t);let e=!1;if(this.scrollHeight=="100%"&&(this.height="100%"),t.loading){let{previousValue:i,currentValue:s}=t.loading;this.lazy&&i!==s&&s!==this.d_loading&&(this.d_loading=s,e=!0)}if(t.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),t.numToleratedItems){let{previousValue:i,currentValue:s}=t.numToleratedItems;i!==s&&s!==this.d_numToleratedItems&&(this.d_numToleratedItems=s)}if(t.options){let{previousValue:i,currentValue:s}=t.options;this.lazy&&i?.loading!==s?.loading&&s?.loading!==this.d_loading&&(this.d_loading=s.loading,e=!0),i?.numToleratedItems!==s?.numToleratedItems&&s?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=s.numToleratedItems)}this.initialized&&!e&&(t.items?.previousValue?.length!==t.items?.currentValue?.length||t.itemSize||t.scrollHeight||t.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"content":this._contentTemplate=t.template;break;case"item":this._itemTemplate=t.template;break;case"loader":this._loaderTemplate=t.template;break;case"loadericon":this._loaderIconTemplate=t.template;break;default:this._itemTemplate=t.template;break}})}ngAfterViewInit(){super.ngAfterViewInit(),Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1,super.ngOnDestroy()}viewInit(){et(this.platformId)&&!this.initialized&&it(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=A(this.elementViewChild?.nativeElement),this.defaultHeight=k(this.elementViewChild?.nativeElement),this.defaultContentWidth=A(this.contentEl),this.defaultContentHeight=k(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(t){this.contentEl=t||this.contentViewChild?.nativeElement||xt(this.elementViewChild?.nativeElement,".p-virtualscroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[]}getElementRef(){return this.elementViewChild}getPageByFirst(t){return Math.floor(((t??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(t){return this._step?this.page!==this.getPageByFirst(t??this.first):!0}scrollTo(t){this.elementViewChild?.nativeElement?.scrollTo(t)}scrollToIndex(t,e="auto"){if(this.both?t.every(s=>s>-1):t>-1){let s=this.first,{scrollTop:o=0,scrollLeft:l=0}=this.elementViewChild?.nativeElement,{numToleratedItems:u}=this.calculateNumItems(),p=this.getContentPosition(),h=this.itemSize,z=(a=0,d)=>a<=d?0:a,g=(a,d,T)=>a*d+T,b=(a=0,d=0)=>this.scrollTo({left:a,top:d,behavior:e}),f=this.both?{rows:0,cols:0}:0,H=!1,r=!1;this.both?(f={rows:z(t[0],u[0]),cols:z(t[1],u[1])},b(g(f.cols,h[1],p.left),g(f.rows,h[0],p.top)),r=this.lastScrollPos.top!==o||this.lastScrollPos.left!==l,H=f.rows!==s.rows||f.cols!==s.cols):(f=z(t,u),this.horizontal?b(g(f,h,p.left),o):b(l,g(f,h,p.top)),r=this.lastScrollPos!==(this.horizontal?l:o),H=f!==s),this.isRangeChanged=H,r&&(this.first=f)}}scrollInView(t,e,i="auto"){if(e){let{first:s,viewport:o}=this.getRenderedRange(),l=(h=0,z=0)=>this.scrollTo({left:h,top:z,behavior:i}),u=e==="to-start",p=e==="to-end";if(u){if(this.both)o.first.rows-s.rows>t[0]?l(o.first.cols*this._itemSize[1],(o.first.rows-1)*this._itemSize[0]):o.first.cols-s.cols>t[1]&&l((o.first.cols-1)*this._itemSize[1],o.first.rows*this._itemSize[0]);else if(o.first-s>t){let h=(o.first-1)*this._itemSize;this.horizontal?l(h,0):l(0,h)}}else if(p){if(this.both)o.last.rows-s.rows<=t[0]+1?l(o.first.cols*this._itemSize[1],(o.first.rows+1)*this._itemSize[0]):o.last.cols-s.cols<=t[1]+1&&l((o.first.cols+1)*this._itemSize[1],o.first.rows*this._itemSize[0]);else if(o.last-s<=t+1){let h=(o.first+1)*this._itemSize;this.horizontal?l(h,0):l(0,h)}}}else this.scrollToIndex(t,i)}getRenderedRange(){let t=(s,o)=>o||s?Math.floor(s/(o||s)):0,e=this.first,i=0;if(this.elementViewChild?.nativeElement){let{scrollTop:s,scrollLeft:o}=this.elementViewChild.nativeElement;if(this.both)e={rows:t(s,this._itemSize[0]),cols:t(o,this._itemSize[1])},i={rows:e.rows+this.numItemsInViewport.rows,cols:e.cols+this.numItemsInViewport.cols};else{let l=this.horizontal?o:s;e=t(l,this._itemSize),i=e+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:e,last:i}}}calculateNumItems(){let t=this.getContentPosition(),e=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-t.left:0)||0,i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-t.top:0)||0,s=(p,h)=>h||p?Math.ceil(p/(h||p)):0,o=p=>Math.ceil(p/2),l=this.both?{rows:s(i,this._itemSize[0]),cols:s(e,this._itemSize[1])}:s(this.horizontal?e:i,this._itemSize),u=this.d_numToleratedItems||(this.both?[o(l.rows),o(l.cols)]:o(l));return{numItemsInViewport:l,numToleratedItems:u}}calculateOptions(){let{numItemsInViewport:t,numToleratedItems:e}=this.calculateNumItems(),i=(l,u,p,h=!1)=>this.getLast(l+u+(l<p?2:3)*p,h),s=this.first,o=this.both?{rows:i(this.first.rows,t.rows,e[0]),cols:i(this.first.cols,t.cols,e[1],!0)}:i(this.first,t,e);this.last=o,this.numItemsInViewport=t,this.d_numToleratedItems=e,this.showLoader&&(this.loaderArr=this.both?Array.from({length:t.rows}).map(()=>Array.from({length:t.cols})):Array.from({length:t})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:s.cols}:0:s,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[t,e]=[A(this.contentEl),k(this.contentEl)];t!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),e!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[i,s]=[A(this.elementViewChild.nativeElement),k(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=i<this.defaultWidth?i+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=s<this.defaultHeight?s+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}})}getLast(t=0,e=!1){return this._items?Math.min(e?(this._columns||this._items[0]).length:this._items.length,t):0}getContentPosition(){if(this.contentEl){let t=getComputedStyle(this.contentEl),e=parseFloat(t.paddingLeft)+Math.max(parseFloat(t.left)||0,0),i=parseFloat(t.paddingRight)+Math.max(parseFloat(t.right)||0,0),s=parseFloat(t.paddingTop)+Math.max(parseFloat(t.top)||0,0),o=parseFloat(t.paddingBottom)+Math.max(parseFloat(t.bottom)||0,0);return{left:e,right:i,top:s,bottom:o,x:e+i,y:s+o}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){let t=this.elementViewChild.nativeElement.parentElement.parentElement,e=this._scrollWidth||`${this.elementViewChild.nativeElement.offsetWidth||t.offsetWidth}px`,i=this._scrollHeight||`${this.elementViewChild.nativeElement.offsetHeight||t.offsetHeight}px`,s=(o,l)=>this.elementViewChild.nativeElement.style[o]=l;this.both||this.horizontal?(s("height",i),s("width",e)):s("height",i)}}setSpacerSize(){if(this._items){let t=this.getContentPosition(),e=(i,s,o,l=0)=>this.spacerStyle=Y(J({},this.spacerStyle),{[`${i}`]:(s||[]).length*o+l+"px"});this.both?(e("height",this._items,this._itemSize[0],t.y),e("width",this._columns||this._items[1],this._itemSize[1],t.x)):this.horizontal?e("width",this._columns||this._items,this._itemSize,t.x):e("height",this._items,this._itemSize,t.y)}}setContentPosition(t){if(this.contentEl&&!this._appendOnly){let e=t?t.first:this.first,i=(o,l)=>o*l,s=(o=0,l=0)=>this.contentStyle=Y(J({},this.contentStyle),{transform:`translate3d(${o}px, ${l}px, 0)`});if(this.both)s(i(e.cols,this._itemSize[1]),i(e.rows,this._itemSize[0]));else{let o=i(e,this._itemSize);this.horizontal?s(o,0):s(0,o)}}}onScrollPositionChange(t){let e=t.target,i=this.getContentPosition(),s=(r,a)=>r?r>a?r-a:r:0,o=(r,a)=>a||r?Math.floor(r/(a||r)):0,l=(r,a,d,T,L,W)=>r<=L?L:W?d-T-L:a+L-1,u=(r,a,d,T,L,W,G)=>r<=W?0:Math.max(0,G?r<a?d:r-W:r>a?d:r-2*W),p=(r,a,d,T,L,W=!1)=>{let G=a+T+2*L;return r>=L&&(G+=L+1),this.getLast(G,W)},h=s(e.scrollTop,i.top),z=s(e.scrollLeft,i.left),g=this.both?{rows:0,cols:0}:0,b=this.last,f=!1,H=this.lastScrollPos;if(this.both){let r=this.lastScrollPos.top<=h,a=this.lastScrollPos.left<=z;if(!this._appendOnly||this._appendOnly&&(r||a)){let d={rows:o(h,this._itemSize[0]),cols:o(z,this._itemSize[1])},T={rows:l(d.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],r),cols:l(d.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],a)};g={rows:u(d.rows,T.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],r),cols:u(d.cols,T.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],a)},b={rows:p(d.rows,g.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:p(d.cols,g.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},f=g.rows!==this.first.rows||b.rows!==this.last.rows||g.cols!==this.first.cols||b.cols!==this.last.cols||this.isRangeChanged,H={top:h,left:z}}}else{let r=this.horizontal?z:h,a=this.lastScrollPos<=r;if(!this._appendOnly||this._appendOnly&&a){let d=o(r,this._itemSize),T=l(d,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,a);g=u(d,T,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,a),b=p(d,g,this.last,this.numItemsInViewport,this.d_numToleratedItems),f=g!==this.first||b!==this.last||this.isRangeChanged,H=r}}return{first:g,last:b,isRangeChanged:f,scrollPos:H}}onScrollChange(t){let{first:e,last:i,isRangeChanged:s,scrollPos:o}=this.onScrollPositionChange(t);if(s){let l={first:e,last:i};if(this.setContentPosition(l),this.first=e,this.last=i,this.lastScrollPos=o,this.handleEvents("onScrollIndexChange",l),this._lazy&&this.isPageChanged(e)){let u={first:this._step?Math.min(this.getPageByFirst(e)*this._step,this.items.length-this._step):e,last:Math.min(this._step?(this.getPageByFirst(e)+1)*this._step:i,this.items.length)};(this.lazyLoadState.first!==u.first||this.lazyLoadState.last!==u.last)&&this.handleEvents("onLazyLoad",u),this.lazyLoadState=u}}}onContainerScroll(t){if(this.handleEvents("onScroll",{originalEvent:t}),this._delay&&this.isPageChanged()){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){let{isRangeChanged:e}=this.onScrollPositionChange(t);(e||(this._step?this.isPageChanged():!1))&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(t),this.d_loading&&this.showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst()),this.cd.detectChanges()},this._delay)}else!this.d_loading&&this.onScrollChange(t)}bindResizeListener(){et(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let t=this.document.defaultView,e=Vt()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(t,e,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(it(this.elementViewChild?.nativeElement)){let[t,e]=[A(this.elementViewChild?.nativeElement),k(this.elementViewChild?.nativeElement)],[i,s]=[t!==this.defaultWidth,e!==this.defaultHeight];(this.both?i||s:this.horizontal?i:this.vertical?s:!1)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=t,this.defaultHeight=e,this.defaultContentWidth=A(this.contentEl),this.defaultContentHeight=k(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(t,e){return this.options&&this.options[t]?this.options[t](e):this[t].emit(e)}getContentOptions(){return{contentStyleClass:`p-virtualscroller-content ${this.d_loading?"p-virtualscroller-loading":""}`,items:this.loadedItems,getItemOptions:t=>this.getOptions(t),loading:this.d_loading,getLoaderOptions:(t,e)=>this.getLoaderOptions(t,e),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(t){let e=(this._items||[]).length,i=this.both?this.first.rows+t:this.first+t;return{index:i,count:e,first:i===0,last:i===e-1,even:i%2===0,odd:i%2!==0}}getLoaderOptions(t,e){let i=this.loaderArr.length;return J({index:t,count:i,first:t===0,last:t===i-1,even:t%2===0,odd:t%2!==0},e)}static \u0275fac=function(e){return new(e||n)(dt(ht))};static \u0275cmp=x({type:n,selectors:[["p-scroller"],["p-virtualscroller"],["p-virtual-scroller"],["p-virtualScroller"]],contentQueries:function(e,i,s){if(e&1&&(N(s,Mt,4),N(s,Ht,4),N(s,Wt,4),N(s,kt,4),N(s,Ft,4)),e&2){let o;M(o=R())&&(i.contentTemplate=o.first),M(o=R())&&(i.itemTemplate=o.first),M(o=R())&&(i.loaderTemplate=o.first),M(o=R())&&(i.loaderIconTemplate=o.first),M(o=R())&&(i.templates=o)}},viewQuery:function(e,i){if(e&1&&(tt(At,5),tt(Mt,5)),e&2){let s;M(s=R())&&(i.elementViewChild=s.first),M(s=R())&&(i.contentViewChild=s.first)}},hostVars:2,hostBindings:function(e,i){e&2&&pt("height",i.height)},inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[yt([Rt]),V,rt],ngContentSelectors:Qt,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","ngClass"],["class","p-virtualscroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-virtualscroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-virtualscroller-spacer",3,"ngStyle"],[1,"p-virtualscroller-loader",3,"ngClass"],[4,"ngFor","ngForOf"],[3,"styleClass"],[4,"ngIf"]],template:function(e,i){if(e&1&&(ft(),y(0,ce,8,16,"ng-container",6)(1,me,2,1,"ng-template",null,0,Z)),e&2){let s=j(2);m("ngIf",!i._disabled)("ngIfElse",s)}},dependencies:[Et,It,vt,Tt,bt,zt,Dt,U],encapsulation:2})}return n})(),Ze=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=mt({type:n});static \u0275inj=ot({imports:[ue,U,U]})}return n})();export{ge as a,ye as b,Ie as c,be as d,ue as e,Ze as f};
package/chunk-CAI423H5.js DELETED
@@ -1 +0,0 @@
1
- import{a as p}from"./chunk-KLKIGY44.js";import{g as C}from"./chunk-YNI2HWIV.js";import"./chunk-USO7UKRV.js";import"./chunk-CMHZLZ4E.js";import"./chunk-OVJSBJBH.js";import"./chunk-E2RBYY7Q.js";import"./chunk-26X2X35R.js";import"./chunk-35EULUGT.js";import{a as x}from"./chunk-YILEWAVV.js";import"./chunk-F2X3VGZZ.js";import"./chunk-EBTC6B2W.js";import{s as b}from"./chunk-SJTXIIX5.js";import{Ic as d,Tb as r,Ub as o,Zb as g,cc as c,dc as m,ha as a,mc as u,pa as l,qa as s,tb as _,uc as M,zb as f}from"./chunk-2VF35PRV.js";import"./chunk-EQDQRRRY.js";function v(t,S){if(t&1){let e=g();r(0,"div",2)(1,"button",3),c("click",function(){l(e);let i=m();return s(i.onMigrate())}),u(2," Migrate "),o(),r(3,"button",4),c("click",function(){l(e);let i=m();return s(i.onFormat())}),u(4,"Format"),o()()}}var V=(()=>{class t{constructor(){this.migrateService=a(p),this.toastr=a(x)}onMigrate(){this.migrateService.migrateManualJournal().subscribe(e=>{this.toastr.success(e.message,"Migration Successful")})}onFormat(){this.migrateService.formatManualJournal().subscribe(e=>{this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=_({type:t,selectors:[["app-manual-journal"]],features:[M([p])],decls:3,vars:0,consts:[["content",""],["pageTitle","Manual Journal"],[1,"container","my-2"],[1,"btn","btn-primary","me-2",3,"click"],[1,"btn","btn-danger",3,"click"]],template:function(n,i){n&1&&(r(0,"app-main-panel",1),f(1,v,5,0,"ng-template",null,0,d),o())},dependencies:[C,b],encapsulation:2})}}return t})();export{V as ManualJournalComponent};
package/chunk-DDBPJDR6.js DELETED
@@ -1 +0,0 @@
1
- import"./chunk-EQDQRRRY.js";var o=[{path:"",redirectTo:"tax-account",pathMatch:"full"},{path:"tax-account",loadComponent:()=>import("./chunk-PMLVFBAT.js").then(t=>t.TaxAccountComponent)},{path:"chart-of-account",loadComponent:()=>import("./chunk-UFS2HLAY.js").then(t=>t.ChartOfAccountComponent)},{path:"manual-journal",loadComponent:()=>import("./chunk-CAI423H5.js").then(t=>t.ManualJournalComponent)},{path:"payment-account",loadComponent:()=>import("./chunk-NWVWD4IE.js").then(t=>t.PaymentAccountComponent)},{path:"expense-account",loadComponent:()=>import("./chunk-7V4AFAU5.js").then(t=>t.ExpenseAccountComponent)}];export{o as MIGRATE_ROUTES};
package/chunk-DXCBV3NP.js DELETED
@@ -1 +0,0 @@
1
- import{a as Ve,b as Ge,c as je}from"./chunk-DWTUKOMR.js";import{a as Ue,b as qe,c as We,d as ze,e as He,f as Ke}from"./chunk-CEMQLY34.js";import{a as $e,b as Le}from"./chunk-VYTUB2DV.js";import{a as Q,b as X}from"./chunk-I7T4W6G2.js";import"./chunk-GHZLR44M.js";import{a as Ae}from"./chunk-MEKP6D5H.js";import{c as Ie,d as Fe}from"./chunk-F6SXKAYF.js";import{b as Me,c as we,d as Be,e as Ne,f as Pe,g as Oe,h as ke,l as Re}from"./chunk-MS3UTNX6.js";import{g as De,h as Je}from"./chunk-EHULZLLD.js";import"./chunk-AKZM2DMY.js";import"./chunk-AVL6C3VX.js";import{a as H,b as K}from"./chunk-G7MS6UI4.js";import{g as J}from"./chunk-YNI2HWIV.js";import{f as W,g as z}from"./chunk-USO7UKRV.js";import"./chunk-CMHZLZ4E.js";import{t as q,u as D}from"./chunk-OVJSBJBH.js";import{b as O,c as ie,e as N,f as ve,i as G,k as xe,l as he,m as Ce,o as j,r as $,t as L,u as U}from"./chunk-E2RBYY7Q.js";import"./chunk-26X2X35R.js";import{ga as oe,ka as Te}from"./chunk-35EULUGT.js";import{d as be,k as Se}from"./chunk-LUH5EEUM.js";import{a as ye,d as Ee}from"./chunk-YILEWAVV.js";import"./chunk-F2X3VGZZ.js";import"./chunk-EBTC6B2W.js";import{j as ge,m as fe,r as _e,s as B}from"./chunk-SJTXIIX5.js";import{Fa as S,Fc as te,Gc as ne,Ic as d,Jb as p,Mb as pe,Ob as Z,Pb as y,Rb as E,Sb as T,Tb as i,Ub as n,Uc as R,Vb as m,Z as V,Zb as M,ba as le,cc as w,dc as u,fb as a,ha as _,lb as me,mc as o,nc as v,pa as C,qa as b,rc as ce,sc as ue,tb as A,tc as se,uc as de,vc as ee,wc as k,zb as f}from"./chunk-2VF35PRV.js";import{a as I,b as F}from"./chunk-EQDQRRRY.js";var P=(()=>{class t{#e=_(Ee);fetchLoaderConfiguration(){return this.#e.get("","api/SetupLoader/Load")}updateAccountingIntegrationConfiguration(e){return this.#e.post(void 0,"/api/setup/SubmitConfig",e)}fetchOpeningBalanceFormConfiguration(){return this.#e.get("","/api/setup/OpeningBalance/Form")}fetchAPICredential(){let e=localStorage.getItem("AUTH_SUB_DOMAIN");if(!e)throw new Error("Domain not found in local storage");return this.#e.get("","/API/AccountConfig",{POSDomain:e})}formatJournal(e){return this.#e.post("","/api/setup/formatdata/clearjournal",{domain:e})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Qe=t=>({"active-state":t}),Xe=t=>({"text-white":t});function at(t,l){if(t&1){let e=M();i(0,"div",4)(1,"a",5),o(2,"Cancel"),n(),i(3,"p-button",6),w("click",function(){C(e);let c=u();return b(c.updateAccountingIntegration())}),n()()}}function lt(t,l){if(t&1&&(i(0,"p-tab",9),o(1),n()),t&2){let e=l.$implicit,r=l.$index;p("value",r),a(),v(e)}}function mt(t,l){if(t&1&&(i(0,"div",39)(1,"h3",40),o(2," End Of Shift "),n()()),t&2){let e=u(4);p("ngClass",k(2,Qe,e.form.controls.posIntegration.value.createJournalTriggers===0)),a(),p("ngClass",k(4,Xe,e.form.controls.posIntegration.value.createJournalTriggers===0))}}function pt(t,l){if(t&1&&(i(0,"div",39)(1,"h3",40),o(2," Every "),n()()),t&2){let e=u(4);p("ngClass",k(2,Qe,e.form.controls.posIntegration.value.createJournalTriggers===1)),a(),p("ngClass",k(4,Xe,e.form.controls.posIntegration.value.createJournalTriggers===1))}}function ct(t,l){if(t&1&&f(0,mt,3,6,"div",39)(1,pt,3,6,"div",39),t&2){let e,r=u().$implicit;Z((e=r.key)===0?0:e===1?1:-1)}}function ut(t,l){t&1&&(i(0,"h4"),o(1,"Suitable for Cash Sales (Retail & FnB)"),n(),i(2,"p"),o(3," One Journal is generated for all transaction happening within a register open - close period "),n())}function st(t,l){t&1&&(i(0,"h4"),o(1,"Every"),n(),i(2,"p"),o(3," Suitable for Credit Sales (Wholesale) Journal is generated for each transaction "),n())}function dt(t,l){if(t&1){let e=M();i(0,"div",13),m(1,"p-radiobutton",37),i(2,"p-card",38),w("click",function(){C(e);let c=u(2);return b(c.changeJournalType())}),f(3,ct,2,1,"ng-template",null,2,d)(5,ut,4,0)(6,st,4,0),n()()}if(t&2){let e,r=l.$implicit;a(),p("inputId",r.value)("value",r.key),a(4),Z((e=r.key)===0?5:e===1?6:-1)}}function gt(t,l){if(t&1&&(i(0,"div",31),m(1,"p-radiobutton",41),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),v(e.value)}}function ft(t,l){if(t&1&&(i(0,"div",31),m(1,"p-radiobutton",43),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),v(e.value)}}function _t(t,l){if(t&1&&(i(0,"div",31),m(1,"p-radiobutton",44),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),v(e.value)}}function vt(t,l){if(t&1&&(i(0,"div",31),m(1,"p-radiobutton",45),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),v(e.value)}}function xt(t,l){if(t&1&&(i(0,"div",7)(1,"p-tabs",8)(2,"p-tablist"),E(3,lt,2,2,"p-tab",9,y),n(),i(5,"p-tabpanels")(6,"p-tabpanel",9)(7,"h4"),o(8,"Integration with POS"),n(),i(9,"p"),o(10,"Generate Journal"),n(),i(11,"div",10)(12,"div",11)(13,"div",12),E(14,dt,7,3,"div",13,y),n()()(),m(16,"hr"),i(17,"div",14)(18,"h3"),o(19,"Journal Generate"),n(),i(20,"p"),o(21,"Configure generate transaction"),n(),i(22,"div",12)(23,"div",15)(24,"div",16)(25,"div",15)(26,"div",17)(27,"label",18),o(28,"Generate EOD Expense Journal"),n(),m(29,"p-toggleswitch",19),n()(),m(30,"div",15),i(31,"div",15)(32,"div",17)(33,"label",18),o(34,"Generate Outlet Delivery Journal"),n(),m(35,"p-toggleswitch",20),n()(),m(36,"div",15),i(37,"div",15)(38,"div",17)(39,"label",18),o(40,"Generate Payment Discount Journal On Payment"),n(),m(41,"p-toggleswitch",21),n()()()()()()(),i(42,"p-tabpanel",22)(43,"div",23)(44,"h3"),o(45,"Accounting Numbering"),n(),i(46,"p"),o(47,"Configure numbering format and rule for your accounting"),n(),i(48,"div",12)(49,"div",15)(50,"div",16)(51,"div",15)(52,"div",17)(53,"label",24),o(54,"Digit"),n(),m(55,"p-inputnumber",25),n()(),m(56,"div",15),i(57,"div",15)(58,"div",17)(59,"label",26),o(60,"Seed"),n(),m(61,"p-inputnumber",27),n()(),i(62,"div",15)(63,"div",17)(64,"label",28),o(65,"Last Number"),n(),m(66,"p-inputnumber",29),n()(),i(67,"div",15)(68,"div",17)(69,"label",18),o(70,"Reset Every"),n(),i(71,"div",30),E(72,gt,4,4,"div",31,y),n()()(),i(74,"div",15)(75,"div",17)(76,"label",18),o(77,"Format"),n(),m(78,"p-select",32),n()()()()()()(),i(79,"p-tabpanel",33)(80,"div",23)(81,"h3"),o(82,"Report"),n(),i(83,"p"),o(84,"Configure report behavior"),n(),i(85,"div",12)(86,"div",15)(87,"div",16)(88,"div",15)(89,"div",17)(90,"label",18),o(91,"Audit Journal Transaction"),n(),i(92,"div",30),E(93,ft,4,4,"div",31,y),n()()(),m(95,"div",15),i(96,"div",15)(97,"div",17)(98,"label",18),o(99,"Accounting For Treatment"),n(),i(100,"div",30),E(101,_t,4,4,"div",31,y),n()()(),m(103,"div",15),i(104,"div",15)(105,"div",17)(106,"label",18),o(107,"Configure Report Access Control in COA"),n(),i(108,"div",30),E(109,vt,4,4,"div",31,y),n()()()()()()()(),i(111,"p-tabpanel",34)(112,"div",23)(113,"h3"),o(114,"Note"),n(),i(115,"p"),o(116,"Configure show note"),n(),i(117,"div",12)(118,"div",15)(119,"div",16)(120,"div",15)(121,"div",17)(122,"label",18),o(123,"Note Required On Journal"),n(),m(124,"p-toggleswitch",35),n()(),m(125,"div",15),i(126,"div",15)(127,"div",17)(128,"label",18),o(129,"Trial Balance Footer Visible"),n(),m(130,"p-toggleswitch",36),n()(),m(131,"div",15),n()()()()()()()()),t&2){let e,r,c,s,h,g,x=u();a(),p("value",0)("formGroup",x.form),a(2),T(x.tabs()),a(3),p("value",0),a(8),T((e=x.accountingIntegration())==null||e.options==null?null:e.options.journalType),a(28),p("value",1),a(30),T((r=x.accountingIntegration())==null||r.options==null?null:r.options.resetPeriods),a(6),p("options",(c=x.accountingIntegration())==null||c.options==null?null:c.options.monthlyResetPeriodFormat),a(),p("value",2),a(14),T((s=x.accountingIntegration())==null||s.options==null?null:s.options.auditType),a(8),T((h=x.accountingIntegration())==null||h.options==null?null:h.options.generatePrepaidJournal),a(8),T((g=x.accountingIntegration())==null||g.options==null?null:g.options.entityAccess),a(2),p("value",3)}}var Ye=(()=>{class t{constructor(){this.accountingSetupService=_(P),this.fb=_($).nonNullable,this.tabs=S(["Pos","Numbering","Report","Note"]),this.journalType=S(0),this.accountingIntegration=S(null)}ngOnInit(){this.initializeForm(),this.loadAccountingConfiguration()}initializeForm(){this.form=this.fb.group({posIntegration:this.createPosIntegrationGroup(),number:this.createNumberGroup(),report:this.createReportGroup(),journalGenerate:this.createJournalGenerateGroup(),note:this.createNoteGroup()})}createPosIntegrationGroup(){return this.fb.group({createJournalTriggers:this.fb.control(0)})}createNumberGroup(){return this.fb.group({seed:this.fb.control(""),digit:this.fb.control(""),resetEvery:this.fb.control(""),monthlyFormat:this.fb.control(""),lastNumber:this.fb.control(""),lastModified:this.fb.control("")})}createReportGroup(){return this.fb.group({accountingAuditType:this.fb.control(""),accountingEntityAccess:this.fb.control(""),generatePrepaidJournal:this.fb.control("")})}createJournalGenerateGroup(){return this.fb.group({eodExpenseJournal:this.fb.control(""),transferOrder:this.fb.control(""),paymentDiscount:this.fb.control("")})}createNoteGroup(){return this.fb.group({noteMandatory:this.fb.control(""),trialBalanceFooterVisible:this.fb.control("")})}changeJournalType(){let e=this.journalType()===0?1:0;this.journalType.set(e),this.accountingIntegration.update(r=>F(I({},r),{form:F(I({},r.form),{posIntegration:F(I({},r.form.posIntegration),{createJournalTriggers:e})})})),this.form.controls.posIntegration.patchValue({createJournalTriggers:e})}loadAccountingConfiguration(){this.accountingSetupService.fetchLoaderConfiguration().pipe(V(e=>{this.accountingIntegration.set(e);let r=e.form.posIntegration.createJournalTriggers;this.journalType.set(r),this.form.get("posIntegration.createJournalTriggers")?.setValue(r),this.form.patchValue(e.form)})).subscribe()}updateAccountingIntegration(){let e={form:this.form.getRawValue()};this.accountingSetupService.updateAccountingIntegrationConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=A({type:t,selectors:[["app-accounting-integration"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Accounting Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"click"],[1,"overflow-y-auto"],[3,"value","formGroup"],[3,"value"],["formGroupName","posIntegration",1,"row"],[1,"col-8"],[1,"row"],[1,"col"],["formGroupName","journalGenerate",1,"px-3"],[1,"col-6"],[1,"row","row-gap-3"],[1,"d-flex","flex-column"],["for",""],["formControlName","eodExpenseJournal"],["formControlName","transferOrder"],["formControlName","paymentDiscount"],["formGroupName","number",3,"value"],[1,"px-3"],["for","digit"],["inputId","digit","formControlName","digit"],["for","seed"],["inputId","seed","formControlName","seed"],["for","lastNumber"],["inputId","lastNumber","formControlName","lastNumber"],[1,"d-flex","flex-column","gap-2"],[1,"d-flex","align-items-center","gap-2"],["formControlName","monthlyFormat","optionValue","key","optionLabel","value",3,"options"],["formGroupName","report",3,"value"],["formGroupName","note",3,"value"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"],["styleClass","d-none","name","createJournalTriggers","formControlName","createJournalTriggers",3,"inputId","value"],["styleClass","h-100",3,"click"],[1,"d-flex","justify-content-center","inactive-state","text-white","py-2",3,"ngClass"],[1,"m-0",3,"ngClass"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"ml-2","m-0",3,"for"],["name","accountingAuditType","formControlName","accountingAuditType",3,"value","inputId"],["name","generatePrepaidJournal","formControlName","generatePrepaidJournal",3,"value","inputId"],["name","accountingEntityAccess","formControlName","accountingEntityAccess",3,"value","inputId"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,at,4,0,"ng-template",null,0,d)(3,xt,132,7,"ng-template",null,1,d),n())},dependencies:[B,ge,Ke,He,ze,We,Ue,qe,J,K,H,Oe,Pe,U,N,ve,he,j,Ce,D,Je,De,Le,$e,Se,be,z,W,Ne,Be],styles:["[_nghost-%COMP%]{display:block}.inactive-state[_ngcontent-%COMP%]{background-color:#e5e5e5}.active-state[_ngcontent-%COMP%]{background-color:#5680e9}"],changeDetection:0})}}return t})();var ht=()=>({width:"100%",height:"calc(100vh - 300px)"}),Ct=()=>[];function bt(t,l){t&1&&(i(0,"div"),m(1,"p-button",5),n())}function St(t,l){t&1&&(i(0,"tr")(1,"th"),o(2,"Account Name"),n(),i(3,"th",17),o(4,"Debit"),n(),i(5,"th",17),o(6,"Credit"),n()())}function yt(t,l){if(t&1){let e=M();i(0,"tr")(1,"td"),o(2),n(),i(3,"td")(4,"input",18),w("ngModelChange",function(c){let s=C(e).rowIndex,h=u(2).$index,g=u(2);return b(g.dfsfsd(c,h,s,"debitAmount"))}),n()(),i(5,"td")(6,"input",18),w("ngModelChange",function(c){let s=C(e).rowIndex,h=u(2).$index,g=u(2);return b(g.dfsfsd(c,h,s,"creditAmount"))}),n()()()}if(t&2){let e=l.$implicit;a(2),v(e.accountName),a(2),p("ngModel",e.debitAmount),a(2),p("ngModel",e.creditAmount)}}function Et(t,l){if(t&1&&(i(0,"p-table",14),f(1,St,7,0,"ng-template",15)(2,yt,7,3,"ng-template",16),n()),t&2){let e=u().$implicit;p("value",e.items)}}function Tt(t,l){if(t&1&&(i(0,"div",7)(1,"div",8)(2,"div",12)(3,"h4"),o(4),n()(),i(5,"div"),f(6,Et,3,1,"p-table",13),n()()()),t&2){let e=l.$implicit;a(4),v(e.name),a(2),p("ngIf",e.items.length)}}function It(t,l){if(t&1&&(i(0,"tr")(1,"td")(2,"p",19),o(3,"Total"),n()(),i(4,"td",17)(5,"p",19),o(6),te(7,"number"),n()(),i(8,"td",17)(9,"p",19),o(10),te(11,"number"),n()()()),t&2){let e=u(2);a(6),v(ne(7,2,e.subTotalDebit())),a(4),v(ne(11,4,e.subTotalCredit()))}}function Ft(t,l){if(t&1&&(i(0,"p-card",6)(1,"div",7)(2,"div",8),m(3,"p-datepicker",9),n()()(),m(4,"br"),i(5,"p-card")(6,"p-scroll-panel")(7,"div",10),E(8,Tt,7,2,"div",7,y),n()(),i(10,"p-table",11),f(11,It,12,6,"ng-template",null,2,d),n()()),t&2){let e=u();a(3),p("ngModel",e.date()),a(3),pe(ee(4,ht)),a(2),T(e.nonEmptyForms()),a(2),p("value",ee(5,Ct))}}var Ze=(()=>{class t{constructor(){this.accSetupService=_(P),this.openingBalanceForm=S(null),this.date=S(new Date),this.messageService=_(oe),this.subTotalDebit=R(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,r)=>e+r.items.reduce((c,s)=>c+s.debitAmount,0),0):0),this.subTotalCredit=R(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,r)=>e+r.items.reduce((c,s)=>c+s.creditAmount,0),0):0),this.totalItemsCount=R(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,r)=>e+r.items.length,0):0),this.nonEmptyForms=R(()=>{let e=["Asset","Liability","Equity","Revenue","Expense"];return this.openingBalanceForm()?this.openingBalanceForm().form.filter(r=>r.items.length>0||e.includes(r.name)):[]})}ngOnInit(){this.loadFormData(),setInterval(()=>{this.subTotalCredit()!==this.subTotalDebit()&&this.messageService.add({severity:"warn",summary:"Mismatch Detected",detail:`The total Debit and Credit amounts are not balanced. Difference: ${this.subTotalCredit()-this.subTotalDebit()}`})},1e3)}loadFormData(){this.accSetupService.fetchOpeningBalanceFormConfiguration().pipe(Ae("response"),V(e=>{this.openingBalanceForm.set(e)})).subscribe()}dfsfsd(e,r,c,s){let h=this.openingBalanceForm().form.map((g,x)=>x===r?F(I({},g),{items:g.items.map((ae,nt)=>nt===c?F(I({},ae),{[s]:e}):ae)}):g).filter(g=>g!==null);this.openingBalanceForm.update(g=>F(I({},g),{form:h})),console.log(this.openingBalanceForm())}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=A({type:t,selectors:[["app-acc-opening-balance-form"]],features:[de([oe])],decls:6,vars:0,consts:[["actionButton",""],["content",""],["footer",""],["pageTitle","Opening Balance Form"],["preventOpenDuplicates",""],["label","Submit"],["header","Opening Balance Date"],[1,"row"],[1,"col"],[3,"ngModel"],[1,"d-flex","flex-column","gap-4"],[3,"value"],[1,"mb-2"],["dataKey","id","stripedRows","",3,"value",4,"ngIf"],["dataKey","id","stripedRows","",3,"value"],["pTemplate","header"],["pTemplate","body"],[2,"width","200px"],["type","number",1,"form-control",3,"ngModelChange","ngModel"],[1,"fw-semibold","fs-5"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,bt,2,0,"ng-template",null,0,d)(3,Ft,13,6,"ng-template",null,1,d),n(),m(5,"p-toast",4))},dependencies:[J,K,H,Te,B,fe,_e,we,Me,Re,ke,Fe,Ie,L,O,xe,N,G,D,je,z,W],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();function wt(t,l){t&1&&(i(0,"button",4),o(1,"Save"),n())}function Bt(t,l){t&1&&(i(0,"div",8)(1,"h3",12),o(2,"Account"),n(),i(3,"small",13),o(4,"Configure Client ID and Client Secret"),n()())}function Nt(t,l){t&1&&(i(0,"div",5)(1,"p-panel"),f(2,Bt,5,0,"ng-template",null,2,d),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),o(8,"Client ID"),n(),m(9,"input",10),n()(),i(10,"div",7)(11,"div",8)(12,"label",9),o(13,"Client Secret"),n(),m(14,"input",11),n()()()()())}var et=(()=>{class t{constructor(e){this.fb=e,this.setupService=_(P)}ngOnInit(){this.initForm()}initForm(){this.setupService.fetchAPICredential().subscribe(e=>{this.credentialForm=this.fb.group({clientId:[e.clientID,ie.required],clientSecret:[e.clientSecret,ie.required]})})}get clientIdControl(){return this.credentialForm.get("clientId")}get clientSecretControl(){return this.credentialForm.get("clientSecret")}saveCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.value;console.log("Saving credentials:",e)}static{this.\u0275fac=function(r){return new(r||t)(me($))}}static{this.\u0275cmp=A({type:t,selectors:[["app-api-credential"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","API Credential"],[1,"btn","btn-primary","rounded"],[1,"d-flex","flex-column","row-gap-4"],[1,"row"],[1,"col-6"],[1,"d-flex","flex-column"],["for","outlet"],["type","text","pInputText","","formControlName","clientIdControl"],["type","text","pInputText",""],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,wt,2,0,"ng-template",null,0,d)(3,Nt,15,0,"ng-template",null,1,d),n())},dependencies:[B,U,O,N,j,D,q,X,Q,J],encapsulation:2})}}return t})();function Dt(t,l){if(t&1){let e=M();i(0,"button",4),w("click",function(){C(e);let c=u();return b(c.onFormatJournal())}),o(1," Format "),n()}}function Jt(t,l){t&1&&(i(0,"div",12)(1,"h3",13),o(2,"Journal Configuration"),n(),i(3,"small",14),o(4," Enter your account information to format journal entries "),n()())}function Pt(t,l){if(t&1){let e=M();i(0,"div",5)(1,"p-panel"),f(2,Jt,5,0,"ng-template",null,2,d),i(4,"div",6)(5,"div",7)(6,"p-floatlabel",8)(7,"input",9),se("ngModelChange",function(c){C(e);let s=u();return ue(s.subdomain,c)||(s.subdomain=c),b(c)}),n(),i(8,"label",10),o(9,"Subdomain"),n()(),i(10,"small",11),o(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),n()()()()()}if(t&2){let e=u();a(7),ce("ngModel",e.subdomain)}}var tt=(()=>{class t{constructor(){this.setupService=_(P),this.subdomain=S(""),this.toastrService=_(ye)}onFormatJournal(){if(!this.subdomain()){this.toastrService.error("Please enter a subdomain","Error");return}this.setupService.formatJournal(this.subdomain()).subscribe({next:e=>{this.toastrService.success(e.message,"Success")}})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=A({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[1,"btn","btn-primary","rounded",3,"click"],[1,"d-flex","flex-column","row-gap-4"],[1,"row","mt-6"],[1,"col-12"],["variant","on"],["pInputText","","id","subdomain","autocomplete","off",1,"w-100",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"text-muted","fst-italic",2,"font-size","12px"],[1,"d-flex","flex-column"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,Dt,2,0,"ng-template",null,0,d)(3,Pt,12,1,"ng-template",null,1,d),n())},dependencies:[B,L,O,N,G,D,q,J,X,Q,Ge,Ve],encapsulation:2})}}return t})();var ai=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"accounting-integration",component:Ye},{path:"opening-balance-form",component:Ze},{path:"api-crendetial",component:et},{path:"format-journal",component:tt}]}];export{ai as ACCOUNTING_SETUP_ROUTES};
package/chunk-E2RBYY7Q.js DELETED
@@ -1 +0,0 @@
1
- import{b as oe}from"./chunk-SJTXIIX5.js";import{$ as w,Bb as Me,Da as te,Fa as C,Ib as Ae,Lb as ie,Mc as we,Rc as re,Tc as f,Uc as V,Vc as Ee,aa as g,ba as Q,ca as P,cc as T,ea as _,g as _e,ha as R,i as ve,kb as ne,l as ye,lb as s,na as De,oa as E,s as Ce,sa as F,ua as ee,ub as j,uc as p,va as be,vb as l,xb as d,y as Ve,ya as y}from"./chunk-2VF35PRV.js";import{a as u,b as h}from"./chunk-EQDQRRRY.js";var je=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||n)(s(ne),s(te))};static \u0275dir=l({type:n})}return n})(),Te=(()=>{class n extends je{static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(n)))(r||n)}})();static \u0275dir=l({type:n,features:[d]})}return n})(),Z=new _("");var dt={provide:Z,useExisting:g(()=>Ge),multi:!0};function ct(){let n=oe()?oe().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var ht=new _(""),Ge=(()=>{class n extends je{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!ct())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||n)(s(ne),s(te),s(ht,8))};static \u0275dir=l({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&T("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[p([dt]),d]})}return n})();function he(n){return n==null||fe(n)===0}function fe(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var A=new _(""),k=new _(""),ft=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Fe=class{static min(t){return gt(t)}static max(t){return pt(t)}static required(t){return Ue(t)}static requiredTrue(t){return mt(t)}static email(t){return _t(t)}static minLength(t){return vt(t)}static maxLength(t){return yt(t)}static pattern(t){return Ct(t)}static nullValidator(t){return U()}static compose(t){return qe(t)}static composeAsync(t){return Ze(t)}};function gt(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function pt(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function Ue(n){return he(n.value)?{required:!0}:null}function mt(n){return n.value===!0?null:{required:!0}}function _t(n){return he(n.value)||ft.test(n.value)?null:{email:!0}}function vt(n){return t=>{let e=t.value?.length??fe(t.value);return e===null||e===0?null:e<n?{minlength:{requiredLength:n,actualLength:e}}:null}}function yt(n){return t=>{let e=t.value?.length??fe(t.value);return e!==null&&e>n?{maxlength:{requiredLength:n,actualLength:e}}:null}}function Ct(n){if(!n)return U;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(he(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function U(n){return null}function Be(n){return n!=null}function He(n){return Me(n)?ye(n):n}function Le(n){let t={};return n.forEach(e=>{t=e!=null?u(u({},t),e):t}),Object.keys(t).length===0?null:t}function $e(n,t){return t.map(e=>e(n))}function Vt(n){return!n.validate}function We(n){return n.map(t=>Vt(t)?t:e=>t.validate(e))}function qe(n){if(!n)return null;let t=n.filter(Be);return t.length==0?null:function(e){return Le($e(e,t))}}function ze(n){return n!=null?qe(We(n)):null}function Ze(n){if(!n)return null;let t=n.filter(Be);return t.length==0?null:function(e){let i=$e(e,t).map(He);return Ve(i).pipe(Ce(Le))}}function Xe(n){return n!=null?Ze(We(n)):null}function Se(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function Ye(n){return n._rawValidators}function Ke(n){return n._rawAsyncValidators}function se(n){return n?Array.isArray(n)?n:[n]:[]}function B(n,t){return Array.isArray(n)?n.includes(t):n===t}function Ie(n,t){let e=se(t);return se(n).forEach(r=>{B(e,r)||e.push(r)}),e}function Oe(n,t){return se(t).filter(e=>!B(n,e))}var H=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=ze(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Xe(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},c=class extends H{name;get formDirective(){return null}get path(){return null}},v=class extends H{_parent=null;name=null;valueAccessor=null},L=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Dt={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},gn=h(u({},Dt),{"[class.ng-submitted]":"isSubmitted"}),pn=(()=>{class n extends L{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(s(v,2))};static \u0275dir=l({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&ie("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[d]})}return n})(),mn=(()=>{class n extends L{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(s(c,10))};static \u0275dir=l({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&ie("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[d]})}return n})();var S="VALID",G="INVALID",D="PENDING",I="DISABLED",m=class{},$=class extends m{value;source;constructor(t,e){super(),this.value=t,this.source=e}},O=class extends m{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e}},N=class extends m{touched;source;constructor(t,e){super(),this.touched=t,this.source=e}},b=class extends m{status;source;constructor(t,e){super(),this.status=t,this.source=e}},ae=class extends m{source;constructor(t){super(),this.source=t}},le=class extends m{source;constructor(t){super(),this.source=t}};function ge(n){return(X(n)?n.validators:n)||null}function bt(n){return Array.isArray(n)?ze(n):n||null}function pe(n,t){return(X(t)?t.asyncValidators:n)||null}function Mt(n){return Array.isArray(n)?Xe(n):n||null}function X(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function Je(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new w(1e3,"");if(!i[e])throw new w(1001,"")}function Qe(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new w(1002,"")})}var M=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return f(this.statusReactive)}set status(t){f(()=>this.statusReactive.set(t))}_status=V(()=>this.statusReactive());statusReactive=C(void 0);get valid(){return this.status===S}get invalid(){return this.status===G}get pending(){return this.status==D}get disabled(){return this.status===I}get enabled(){return this.status!==I}errors;get pristine(){return f(this.pristineReactive)}set pristine(t){f(()=>this.pristineReactive.set(t))}_pristine=V(()=>this.pristineReactive());pristineReactive=C(!0);get dirty(){return!this.pristine}get touched(){return f(this.touchedReactive)}set touched(t){f(()=>this.touchedReactive.set(t))}_touched=V(()=>this.touchedReactive());touchedReactive=C(!1);get untouched(){return!this.touched}_events=new _e;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Ie(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Ie(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Oe(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Oe(t,this._rawAsyncValidators))}hasValidator(t){return B(this._rawValidators,t)}hasAsyncValidator(t){return B(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(h(u({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new N(!0,i))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t))}markAsUntouched(t={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:i})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,i),e&&t.emitEvent!==!1&&this._events.next(new N(!1,i))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(h(u({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new O(!1,i))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,i),e&&t.emitEvent!==!1&&this._events.next(new O(!0,i))}markAsPending(t={}){this.status=D;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new b(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(h(u({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=I,this.errors=null,this._forEachChild(r=>{r.disable(h(u({},t),{onlySelf:!0}))}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new $(this.value,i)),this._events.next(new b(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(h(u({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=S,this._forEachChild(i=>{i.enable(h(u({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(h(u({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t,e){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===S||this.status===D)&&this._runAsyncValidator(i,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new $(this.value,e)),this._events.next(new b(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(h(u({},t),{sourceControl:e}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?I:S}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=D,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let i=He(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new b(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i)}_initObservables(){this.valueChanges=new y,this.statusChanges=new y}_calculateStatus(){return this._allControlsDisabled()?I:this.errors?G:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(D)?D:this._anyControlsHaveStatus(G)?G:S}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&this._events.next(new O(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new N(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){X(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=bt(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Mt(this._rawAsyncValidators)}},W=class extends M{constructor(t,e,i){super(ge(e),pe(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){Qe(this,!0,t),Object.keys(t).forEach(i=>{Je(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var ue=class extends W{};var Y=new _("",{providedIn:"root",factory:()=>K}),K="always";function J(n,t){return[...t.path,n]}function de(n,t,e=K){me(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),wt(n,t),Ft(n,t),Et(n,t),At(n,t)}function Ne(n,t,e=!0){let i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),z(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function q(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function At(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}function me(n,t){let e=Ye(n);t.validator!==null?n.setValidators(Se(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=Ke(n);t.asyncValidator!==null?n.setAsyncValidators(Se(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();q(t._rawValidators,r),q(t._rawAsyncValidators,r)}function z(n,t){let e=!1;if(n!==null){if(t.validator!==null){let r=Ye(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(t.asyncValidator!==null){let r=Ke(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}let i=()=>{};return q(t._rawValidators,i),q(t._rawAsyncValidators,i),e}function wt(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&et(n,t)})}function Et(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&et(n,t),n.updateOn!=="submit"&&n.markAsTouched()})}function et(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Ft(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}function St(n,t){n==null,me(n,t)}function It(n,t){return z(n,t)}function tt(n,t){if(!n.hasOwnProperty("model"))return!1;let e=n.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function Ot(n){return Object.getPrototypeOf(n.constructor)===Te}function Nt(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function nt(n,t){if(!t)return null;Array.isArray(t);let e,i,r;return t.forEach(o=>{o.constructor===Ge?e=o:Ot(o)?i=o:r=o}),r||i||e||null}function xt(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function xe(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function ke(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var x=class extends M{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,e,i){super(ge(e),pe(i,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),X(e)&&(e.nonNullable||e.initialValueIsDefault)&&(ke(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){xe(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){xe(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){ke(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var kt=n=>n instanceof x,Pt=(()=>{class n extends c{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return J(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(n)))(r||n)}})();static \u0275dir=l({type:n,standalone:!1,features:[d]})}return n})();var Rt={provide:v,useExisting:g(()=>jt)},Pe=Promise.resolve(),jt=(()=>{class n extends v{_changeDetectorRef;callSetDisabledState;control=new x;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new y;constructor(e,i,r,o,a,ut){super(),this._changeDetectorRef=a,this.callSetDisabledState=ut,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=nt(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),tt(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){de(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){Pe.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&re(i);Pe.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?J(e,this._parent):[e]}static \u0275fac=function(i){return new(i||n)(s(c,9),s(A,10),s(k,10),s(Z,10),s(we,8),s(Y,8))};static \u0275dir=l({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[p([Rt]),d,E]})}return n})();var vn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=l({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return n})(),Tt={provide:Z,useExisting:g(()=>Gt),multi:!0},Gt=(()=>{class n extends Te{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&T("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[p([Tt]),d]})}return n})();var it=new _("");var Ut={provide:c,useExisting:g(()=>rt)},rt=(()=>{class n extends c{callSetDisabledState;get submitted(){return f(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=V(()=>this._submittedReactive());_submittedReactive=C(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new y;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(z(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return de(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Ne(e.control||null,e,!1),xt(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),Nt(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new ae(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new le(this.form))}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(Ne(i||null,e),kt(r)&&(de(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);St(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&It(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){me(this.form,this),this._oldForm&&z(this._oldForm,this)}static \u0275fac=function(i){return new(i||n)(s(A,10),s(k,10),s(Y,8))};static \u0275dir=l({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&T("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[p([Ut]),d,E]})}return n})(),Bt={provide:c,useExisting:g(()=>ot)},ot=(()=>{class n extends Pt{name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}_checkParentType(){at(this._parent)}static \u0275fac=function(i){return new(i||n)(s(c,13),s(A,10),s(k,10))};static \u0275dir=l({type:n,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[p([Bt]),d]})}return n})(),Ht={provide:c,useExisting:g(()=>st)},st=(()=>{class n extends c{_parent;name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}ngOnInit(){at(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return J(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(i){return new(i||n)(s(c,13),s(A,10),s(k,10))};static \u0275dir=l({type:n,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[p([Ht]),d]})}return n})();function at(n){return!(n instanceof ot)&&!(n instanceof rt)&&!(n instanceof st)}var Lt={provide:v,useExisting:g(()=>$t)},$t=(()=>{class n extends v{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new y;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=nt(this,o)}ngOnChanges(e){this._added||this._setUpControl(),tt(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return J(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(i){return new(i||n)(s(c,13),s(A,10),s(k,10),s(Z,10),s(it,8))};static \u0275dir=l({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[p([Lt]),d,E]})}return n})();var Wt=(()=>{class n{_validator=U;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):U,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||n)};static \u0275dir=l({type:n,features:[E]})}return n})();var qt={provide:A,useExisting:g(()=>zt),multi:!0};var zt=(()=>{class n extends Wt{required;inputName="required";normalizeInput=re;createValidator=e=>Ue;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&Ae("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[p([qt]),d]})}return n})();var lt=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=j({type:n});static \u0275inj=P({})}return n})(),ce=class extends M{constructor(t,e,i){super(ge(e),pe(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){Qe(this,!1,t),t.forEach((i,r)=>{Je(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function Re(n){return!!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var Zt=(()=>{class n{useNonNullable=!1;get nonNullable(){let e=new n;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return Re(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new W(r,o)}record(e,i=null){let r=this._reduceControls(e);return new ue(r,i)}control(e,i,r){let o={};return this.useNonNullable?(Re(i)?o=i:(o.validators=i,o.asyncValidators=r),new x(e,h(u({},o),{nonNullable:!0}))):new x(e,i,r)}array(e,i,r){let o=e.map(a=>this._createControl(a));return new ce(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof x)return e;if(e instanceof M)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Q({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),yn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=Q({token:n,factory:()=>R(Zt).nonNullable,providedIn:"root"})}return n})();var Cn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Y,useValue:e.callSetDisabledState??K}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=j({type:n});static \u0275inj=P({imports:[lt]})}return n})(),Vn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:it,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Y,useValue:e.callSetDisabledState??K}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=j({type:n});static \u0275inj=P({imports:[lt]})}return n})();function Xt(n,t){!t?.injector&&De(Xt);let e=t?.injector??R(ee),i=new ve(1),r=Ee(()=>{let o;try{o=n()}catch(a){f(()=>i.error(a));return}f(()=>i.next(o))},{injector:e,manualCleanup:!0});return e.get(be).onDestroy(()=>{r.destroy(),i.complete()}),i.asObservable()}export{Z as a,Ge as b,Fe as c,v as d,pn as e,mn as f,W as g,x as h,jt as i,vn as j,Gt as k,rt as l,ot as m,st as n,$t as o,zt as p,ce as q,Zt as r,yn as s,Cn as t,Vn as u,Xt as v};
package/chunk-E2VJWAI2.js DELETED
@@ -1 +0,0 @@
1
- import{a as H}from"./chunk-DYZT7UKM.js";import{a as L}from"./chunk-MEKP6D5H.js";import{h as M,j as V,k as N,l as U}from"./chunk-MS3UTNX6.js";import"./chunk-EHULZLLD.js";import"./chunk-AKZM2DMY.js";import"./chunk-AVL6C3VX.js";import{g as P}from"./chunk-YNI2HWIV.js";import"./chunk-USO7UKRV.js";import"./chunk-CMHZLZ4E.js";import"./chunk-OVJSBJBH.js";import"./chunk-E2RBYY7Q.js";import"./chunk-26X2X35R.js";import"./chunk-35EULUGT.js";import"./chunk-YILEWAVV.js";import"./chunk-F2X3VGZZ.js";import"./chunk-EBTC6B2W.js";import{m as k,q as I,r as z,s as D}from"./chunk-SJTXIIX5.js";import{Fa as b,Fc as J,Gc as E,Hc as A,Ic as h,Jb as f,Tb as o,Ub as i,Uc as v,Vb as C,Vc as T,Z as y,Zb as S,cc as w,dc as d,fb as s,ha as j,mc as r,nc as p,pa as _,qa as g,tb as R,zb as x}from"./chunk-2VF35PRV.js";import{a as m,b as c}from"./chunk-EQDQRRRY.js";function O(a,u){if(a&1){let e=S();o(0,"button",6),w("click",function(){_(e);let t=d(2);return g(t.onCreateJournal())}),r(1," Generate Journal "),i()}}function G(a,u){if(a&1&&x(0,O,2,0,"button",5),a&2){let e=d();f("ngIf",e.selectedItems()&&e.selectedItems().length>0)}}function K(a,u){a&1&&(o(0,"tr")(1,"th",9),C(2,"p-tableHeaderCheckbox"),i(),o(3,"th"),r(4,"Outlet"),i(),o(5,"th"),r(6,"Number"),i(),o(7,"th"),r(8,"Date"),i(),o(9,"th"),r(10,"Adjustment Qty"),i(),o(11,"th"),r(12,"Type"),i(),o(13,"th"),r(14,"State"),i(),o(15,"th"),r(16,"Note"),i()())}function q(a,u){if(a&1&&(o(0,"tr")(1,"td"),C(2,"p-tableCheckbox",10),i(),o(3,"td"),r(4),i(),o(5,"td"),r(6),i(),o(7,"td"),r(8),J(9,"date"),i(),o(10,"td"),r(11),J(12,"number"),i(),o(13,"td"),r(14),i(),o(15,"td"),r(16),i(),o(17,"td"),r(18),i()()),a&2){let e=u.$implicit;s(2),f("value",e),s(2),p(e.outlet),s(2),p(e.number),s(2),p(A(9,8,e.date,"d MMM y")),s(3),p(E(12,11,e.quantitySUM)),s(3),p(e.type),s(2),p(e.state),s(2),p(e.note)}}function F(a,u){if(a&1){let e=S();o(0,"p-table",8),w("onLazyLoad",function(t){_(e);let n=d(2);return g(n.onLazyLoad(t))})("onRowSelect",function(t){_(e);let n=d(2);return g(n.onRowSelect(t))})("onRowUnselect",function(t){_(e);let n=d(2);return g(n.onRowUnselect(t))}),x(1,K,17,0,"ng-template",null,2,h)(3,q,19,13,"ng-template",null,3,h),i()}if(a&2){let e=d(2);f("value",e.adjustmentJournal().data)("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("paginator",!0)("rows",e.pageData().PageSize)("totalRecords",e.adjustmentJournal().totalCount)("lazy",!0)}}function Q(a,u){if(a&1&&x(0,F,5,7,"p-table",7),a&2){let e=d();f("ngIf",e.adjustmentJournal())}}var re=(()=>{class a{constructor(){this.generateJournalService=j(H),this.adjustmentJournal=b(null),this.pageData=b({PageNumber:1,PageSize:10}),this.selectedItems=v(()=>this.adjustmentJournal()?.data.filter(e=>e.checked)||[]),T(()=>{this.pageData()&&this.fetchAdjustmentJournal()})}fetchAdjustmentJournal(){let e={PageSize:this.pageData().PageSize,PageNumber:this.pageData().PageNumber};this.generateJournalService.getAdjustmentJournal(e).pipe(y(l=>{this.adjustmentJournal.update(t=>c(m({},t),{data:l.data.map(n=>c(m({},n),{checked:!1})),totalCount:+l.totalCount}))}),L("AR Collection")).subscribe()}onLazyLoad(e){this.pageData.set({PageNumber:e.first/e.rows+1,PageSize:e.rows})}onRowSelect(e){let l=e.data;this.adjustmentJournal.update(t=>c(m({},t),{data:t.data.map(n=>n.id===l.id?c(m({},n),{checked:!0}):n)}))}onRowUnselect(e){let l=e.data;Array.isArray(l)?this.adjustmentJournal.update(t=>c(m({},t),{data:t.data.map((n,B)=>n.id===l[B].id?c(m({},n),{checked:!n.checked}):n)})):this.adjustmentJournal.update(t=>c(m({},t),{data:t.data.map(n=>n.id===l.id?c(m({},n),{checked:!n.checked}):n)}))}onCreateJournal(){let l=this.selectedItems().map(t=>t.id);this.generateJournalService.createAdjustmentJournal(l).subscribe(t=>{console.log("Journal created successfully:",t)})}static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275cmp=R({type:a,selectors:[["app-adjustment-journal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Adjustment"],["class","btn btn-primary rounded",3,"click",4,"ngIf"],[1,"btn","btn-primary","rounded",3,"click"],["dataKey","id",3,"value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy","onLazyLoad","onRowSelect","onRowUnselect",4,"ngIf"],["dataKey","id",3,"onLazyLoad","onRowSelect","onRowUnselect","value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy"],[2,"width","4rem"],[3,"value"]],template:function(l,t){l&1&&(o(0,"app-main-panel",4),x(1,G,1,1,"ng-template",null,0,h)(3,Q,1,1,"ng-template",null,1,h),i())},dependencies:[P,U,M,V,N,D,k,z,I],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return a})();export{re as AdjustmentJournalComponent};
package/chunk-EBTC6B2W.js DELETED
@@ -1,2 +0,0 @@
1
- import{a as R,b as V,c as ot,d as it,t as Q,u as at,w as pe,x as ee}from"./chunk-SJTXIIX5.js";import{$ as E,$a as S,Aa as de,D as ke,Eb as nt,Fb as fe,Ga as He,Ha as ue,Ia as $e,J as Le,Ja as F,La as he,Ma as Xe,Na as Ge,Oa as Je,Pc as rt,Q as xe,Qc as st,Ra as B,Sa as P,Ta as N,Ua as Ye,Va as qe,Wa as Ze,X as je,Xa as We,Ya as Ke,Z as Ue,Za as Qe,_a as et,ba as v,d as Ne,ea as T,ga as d,gb as z,ha as w,ia as K,jb as tt,ka as Fe,l as Ce,la as Be,m as j,ma as ze,s as U,xa as Ve,za as I}from"./chunk-2VF35PRV.js";import{a as D,b as Ie,c as Pe}from"./chunk-EQDQRRRY.js";var re=new T(""),ve=(()=>{class n{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(s=>{s.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,r,s,o){return this._findPluginFor(r).addEventListener(e,r,s,o)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(o=>o.supports(e)),!r)throw new E(5101,!1);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||n)(d(re),d(I))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),H=class{_doc;constructor(t){this._doc=t}manager},te="ng-app-id";function ct(n){for(let t of n)t.remove()}function lt(n,t){let e=t.createElement("style");return e.textContent=n,e}function Lt(n,t,e,r){let s=n.head?.querySelectorAll(`style[${te}="${t}"],link[${te}="${t}"]`);if(s)for(let o of s)o.removeAttribute(te),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function ye(n,t){let e=t.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",n),e}var Te=(()=>{class n{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,r,s,o={}){this.doc=e,this.appId=r,this.nonce=s,this.isServer=pe(o),Lt(e,r,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,r){for(let s of e)this.addUsage(s,this.inline,lt);r?.forEach(s=>this.addUsage(s,this.external,ye))}removeStyles(e,r){for(let s of e)this.removeUsage(s,this.inline);r?.forEach(s=>this.removeUsage(s,this.external))}addUsage(e,r,s){let o=r.get(e);o?o.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,s(e,this.doc)))})}removeUsage(e,r){let s=r.get(e);s&&(s.usage--,s.usage<=0&&(ct(s.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])ct(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:s}]of this.inline)s.push(this.addElement(e,lt(r,this.doc)));for(let[r,{elements:s}]of this.external)s.push(this.addElement(e,ye(r,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(te,this.appId),e.appendChild(r)}static \u0275fac=function(r){return new(r||n)(d(R),d(ue),d(he,8),d(F))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),me={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},we=/%COMP%/g;var ut="%COMP%",xt=`_nghost-${ut}`,jt=`_ngcontent-${ut}`,Ut=!0,Ft=new T("",{providedIn:"root",factory:()=>Ut});function Bt(n){return jt.replace(we,n)}function zt(n){return xt.replace(we,n)}function ht(n,t){return t.map(e=>e.replace(we,n))}var Re=(()=>{class n{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,r,s,o,i,c,a,l=null,u=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=i,this.platformId=c,this.ngZone=a,this.nonce=l,this.tracingService=u,this.platformIsServer=pe(c),this.defaultRenderer=new $(e,i,a,this.platformIsServer,this.tracingService)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===B.ShadowDom&&(r=Ie(D({},r),{encapsulation:B.Emulated}));let s=this.getOrCreateRenderer(e,r);return s instanceof ne?s.applyToHost(e):s instanceof X&&s.applyStyles(),s}getOrCreateRenderer(e,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let i=this.doc,c=this.ngZone,a=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,m=this.platformIsServer,y=this.tracingService;switch(r.encapsulation){case B.Emulated:o=new ne(a,l,r,this.appId,u,i,c,m,y);break;case B.ShadowDom:return new ge(a,l,e,r,i,c,this.nonce,m,y);default:o=new X(a,l,r,u,i,c,m,y);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(r){return new(r||n)(d(ve),d(Te),d(ue),d(Ft),d(R),d(F),d(I),d(he),d(Ge,8))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),$=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,e,r,s,o){this.eventManager=t,this.doc=e,this.ngZone=r,this.platformIsServer=s,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,e){return e?this.doc.createElementNS(me[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(dt(t)?t.content:t).appendChild(e)}insertBefore(t,e,r){t&&(dt(t)?t.content:t).insertBefore(e,r)}removeChild(t,e){e.remove()}selectRootElement(t,e){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new E(-5104,!1);return e||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,r,s){if(s){e=s+":"+e;let o=me[s];o?t.setAttributeNS(o,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}removeAttribute(t,e,r){if(r){let s=me[r];s?t.removeAttributeNS(s,e):t.removeAttribute(`${r}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,r,s){s&(z.DashCase|z.Important)?t.style.setProperty(e,r,s&z.Important?"important":""):t.style[e]=r}removeStyle(t,e,r){r&z.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,r){t!=null&&(t[e]=r)}setValue(t,e){t.nodeValue=e}listen(t,e,r,s){if(typeof t=="string"&&(t=V().getGlobalEventTarget(this.doc,t),!t))throw new E(5102,!1);let o=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(t,e,o)),this.eventManager.addEventListener(t,e,o,s)}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))===!1&&e.preventDefault()}}};function dt(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var ge=class extends ${sharedStylesHost;hostEl;shadowRoot;constructor(t,e,r,s,o,i,c,a,l){super(t,o,i,a,l),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=s.styles;u=ht(s.id,u);for(let y of u){let p=document.createElement("style");c&&p.setAttribute("nonce",c),p.textContent=y,this.shadowRoot.appendChild(p)}let m=s.getExternalStyles?.();if(m)for(let y of m){let p=ye(y,o);c&&p.setAttribute("nonce",c),this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,r){return super.insertBefore(this.nodeOrShadowRoot(t),e,r)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},X=class extends ${sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,e,r,s,o,i,c,a,l){super(t,o,i,c,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=s;let u=r.styles;this.styles=l?ht(l,u):u,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ne=class extends X{contentAttr;hostAttr;constructor(t,e,r,s,o,i,c,a,l){let u=s+"-"+r.id;super(t,e,r,o,i,c,a,l,u),this.contentAttr=Bt(u),this.hostAttr=zt(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let r=super.createElement(t,e);return super.setAttribute(r,this.contentAttr,""),r}};var se=class n extends it{supportsDOMEvents=!0;static makeCurrent(){ot(new n)}onAndCancel(t,e,r,s){return t.addEventListener(e,r,s),()=>{t.removeEventListener(e,r,s)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.remove()}createElement(t,e){return e=e||this.getDefaultDocument(),e.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return e==="window"?window:e==="document"?t:e==="body"?t.body:null}getBaseHref(t){let e=Ht();return e==null?null:$t(e)}resetBaseElement(){G=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Q(document.cookie,t)}},G=null;function Ht(){return G=G||document.head.querySelector("base"),G?G.getAttribute("href"):null}function $t(n){return new URL(n,document.baseURI).pathname}var Xt=(()=>{class n{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||n)};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),yt=(()=>{class n extends H{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,s,o){return e.addEventListener(r,s,o),()=>this.removeEventListener(e,r,s,o)}removeEventListener(e,r,s,o){return e.removeEventListener(r,s,o)}static \u0275fac=function(r){return new(r||n)(d(R))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),ft=["alt","control","meta","shift"],Gt={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Jt={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},gt=(()=>{class n extends H{constructor(e){super(e)}supports(e){return n.parseEventName(e)!=null}addEventListener(e,r,s,o){let i=n.parseEventName(r),c=n.eventCallback(i.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>V().onAndCancel(e,i.domEventName,c,o))}static parseEventName(e){let r=e.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let o=n._normalizeKey(r.pop()),i="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),i="code."),ft.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),i+=l+".")}),i+=o,r.length!=0||o.length===0)return null;let a={};return a.domEventName=s,a.fullKey=i,a}static matchEventFullKeyCode(e,r){let s=Gt[e.key]||e.key,o="";return r.indexOf("code.")>-1&&(s=e.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),ft.forEach(i=>{if(i!==s){let c=Jt[i];c(e)&&(o+=i+".")}}),o+=s,o===r)}static eventCallback(e,r,s){return o=>{n.matchEventFullKeyCode(o,e)&&s.runGuarded(()=>r(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(r){return new(r||n)(d(R))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})();function Yt(n,t){return rt(D({rootComponent:n},qt(t)))}function qt(n){return{appProviders:[...en,...n?.providers??[]],platformProviders:Qt}}function Zt(){se.makeCurrent()}function Wt(){return new de}function Kt(){return He(document),document}var Qt=[{provide:F,useValue:at},{provide:$e,useValue:Zt,multi:!0},{provide:R,useFactory:Kt}];var en=[{provide:Fe,useValue:"root"},{provide:de,useFactory:Wt},{provide:re,useClass:yt,multi:!0,deps:[R]},{provide:re,useClass:gt,multi:!0,deps:[R]},Re,Te,ve,{provide:tt,useExisting:Re},{provide:ee,useClass:Xt},[]];var k=class{},J=class{},b=class n{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
2
- `).forEach(e=>{let r=e.indexOf(":");if(r>0){let s=e.slice(0,r),o=e.slice(r+1).trim();this.addHeaderEntry(s,o)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,r)=>{this.addHeaderEntry(r,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,r])=>{this.setHeaderEntries(e,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){let e=new n;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,e);let s=(t.op==="a"?this.headers.get(e):void 0)||[];s.push(...r),this.headers.set(e,s);break;case"d":let o=t.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let i=this.headers.get(e);if(!i)return;i=i.filter(c=>o.indexOf(c)===-1),i.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}break}}addHeaderEntry(t,e){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(e):this.headers.set(r,[e])}setHeaderEntries(t,e){let r=(Array.isArray(e)?e:[e]).map(o=>o.toString()),s=t.toLowerCase();this.headers.set(s,r),this.maybeSetNormalizedName(t,s)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var ie=class{encodeKey(t){return Et(t)}encodeValue(t){return Et(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function tn(n,t){let e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(s=>{let o=s.indexOf("="),[i,c]=o==-1?[t.decodeKey(s),""]:[t.decodeKey(s.slice(0,o)),t.decodeValue(s.slice(o+1))],a=e.get(i)||[];a.push(c),e.set(i,a)}),e}var nn=/%(\d[a-f0-9])/gi,rn={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Et(n){return encodeURIComponent(n).replace(nn,(t,e)=>rn[e]??t)}function oe(n){return`${n}`}var M=class n{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new ie,t.fromString){if(t.fromObject)throw new E(2805,!1);this.map=tn(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let r=t.fromObject[e],s=Array.isArray(r)?r.map(oe):[oe(r)];this.map.set(e,s)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){let e=[];return Object.keys(t).forEach(r=>{let s=t[r];Array.isArray(s)?s.forEach(o=>{e.push({param:r,value:o,op:"a"})}):e.push({param:r,value:s,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new n({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let e=(t.op==="a"?this.map.get(t.param):void 0)||[];e.push(oe(t.value)),this.map.set(t.param,e);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],s=r.indexOf(oe(t.value));s!==-1&&r.splice(s,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var ae=class{map=new Map;set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function sn(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function vt(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Tt(n){return typeof Blob<"u"&&n instanceof Blob}function wt(n){return typeof FormData<"u"&&n instanceof FormData}function on(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var Rt="Content-Type",Mt="Accept",bt="X-Request-URL",_t="text/plain",Dt="application/json",an=`${Dt}, ${_t}, */*`,C=class n{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,e,r,s){this.url=e,this.method=t.toUpperCase();let o;if(sn(this.method)||s?(this.body=r!==void 0?r:null,o=s):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new b,this.context??=new ae,!this.params)this.params=new M,this.urlWithParams=e;else{let i=this.params.toString();if(i.length===0)this.urlWithParams=e;else{let c=e.indexOf("?"),a=c===-1?"?":c<e.length-1?"&":"";this.urlWithParams=e+a+i}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||vt(this.body)||Tt(this.body)||wt(this.body)||on(this.body)?this.body:this.body instanceof M?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||wt(this.body)?null:Tt(this.body)?this.body.type||null:vt(this.body)?null:typeof this.body=="string"?_t:this.body instanceof M?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Dt:null}clone(t={}){let e=t.method||this.method,r=t.url||this.url,s=t.responseType||this.responseType,o=t.transferCache??this.transferCache,i=t.body!==void 0?t.body:this.body,c=t.withCredentials??this.withCredentials,a=t.reportProgress??this.reportProgress,l=t.headers||this.headers,u=t.params||this.params,m=t.context??this.context;return t.setHeaders!==void 0&&(l=Object.keys(t.setHeaders).reduce((y,p)=>y.set(p,t.setHeaders[p]),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((y,p)=>y.set(p,t.setParams[p]),u)),new n(e,r,i,{params:u,headers:l,context:m,reportProgress:a,responseType:s,withCredentials:c,transferCache:o})}},A=function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n}(A||{}),L=class{headers;status;statusText;url;ok;type;constructor(t,e=200,r="OK"){this.headers=t.headers||new b,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},ce=class n extends L{constructor(t={}){super(t)}type=A.ResponseHeader;clone(t={}){return new n({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},O=class n extends L{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=A.Response;clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Y=class extends L{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},cn=200,ln=204;function Me(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,transferCache:n.transferCache}}var St=(()=>{class n{handler;constructor(e){this.handler=e}request(e,r,s={}){let o;if(e instanceof C)o=e;else{let a;s.headers instanceof b?a=s.headers:a=new b(s.headers);let l;s.params&&(s.params instanceof M?l=s.params:l=new M({fromObject:s.params})),o=new C(e,r,s.body!==void 0?s.body:null,{headers:a,context:s.context,params:l,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let i=j(o).pipe(Le(a=>this.handler.handle(a)));if(e instanceof C||s.observe==="events")return i;let c=i.pipe(ke(a=>a instanceof O));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(U(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new E(2806,!1);return a.body}));case"blob":return c.pipe(U(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new E(2807,!1);return a.body}));case"text":return c.pipe(U(a=>{if(a.body!==null&&typeof a.body!="string")throw new E(2808,!1);return a.body}));case"json":default:return c.pipe(U(a=>a.body))}case"response":return c;default:throw new E(2809,!1)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new M().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,s={}){return this.request("PATCH",e,Me(s,r))}post(e,r,s={}){return this.request("POST",e,Me(s,r))}put(e,r,s={}){return this.request("PUT",e,Me(s,r))}static \u0275fac=function(r){return new(r||n)(d(k))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})();var dn=new T("");function un(n,t){return t(n)}function hn(n,t,e){return(r,s)=>ze(e,()=>t(r,o=>n(o,s)))}var _e=new T(""),De=new T(""),At=new T("",{providedIn:"root",factory:()=>!0});var le=(()=>{class n extends k{backend;injector;chain=null;pendingTasks=w(Ve);contributeToStability=w(At);constructor(e,r){super(),this.backend=e,this.injector=r}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(_e),...this.injector.get(De,[])]));this.chain=r.reduceRight((s,o)=>hn(s,o,this.injector),un)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(e,s=>this.backend.handle(s)).pipe(xe(()=>this.pendingTasks.remove(r)))}else return this.chain(e,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||n)(d(J),d(Be))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})();var fn=/^\)\]\}',?\n/,pn=RegExp(`^${bt}:`,"m");function mn(n){return"responseURL"in n&&n.responseURL?n.responseURL:pn.test(n.getAllResponseHeaders())?n.getResponseHeader(bt):null}var be=(()=>{class n{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new E(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Ce(r.\u0275loadImpl()):j(null)).pipe(je(()=>new Ne(o=>{let i=r.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((h,f)=>i.setRequestHeader(h,f.join(","))),e.headers.has(Mt)||i.setRequestHeader(Mt,an),!e.headers.has(Rt)){let h=e.detectContentTypeHeader();h!==null&&i.setRequestHeader(Rt,h)}if(e.responseType){let h=e.responseType.toLowerCase();i.responseType=h!=="json"?h:"text"}let c=e.serializeBody(),a=null,l=()=>{if(a!==null)return a;let h=i.statusText||"OK",f=new b(i.getAllResponseHeaders()),_=mn(i)||e.url;return a=new ce({headers:f,status:i.status,statusText:h,url:_}),a},u=()=>{let{headers:h,status:f,statusText:_,url:W}=l(),g=null;f!==ln&&(g=typeof i.response>"u"?i.responseText:i.response),f===0&&(f=g?cn:0);let x=f>=200&&f<300;if(e.responseType==="json"&&typeof g=="string"){let Ct=g;g=g.replace(fn,"");try{g=g!==""?JSON.parse(g):null}catch(kt){g=Ct,x&&(x=!1,g={error:kt,text:g})}}x?(o.next(new O({body:g,headers:h,status:f,statusText:_,url:W||void 0})),o.complete()):o.error(new Y({error:g,headers:h,status:f,statusText:_,url:W||void 0}))},m=h=>{let{url:f}=l(),_=new Y({error:h,status:i.status||0,statusText:i.statusText||"Unknown Error",url:f||void 0});o.error(_)},y=!1,p=h=>{y||(o.next(l()),y=!0);let f={type:A.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(f.total=h.total),e.responseType==="text"&&i.responseText&&(f.partialText=i.responseText),o.next(f)},Z=h=>{let f={type:A.UploadProgress,loaded:h.loaded};h.lengthComputable&&(f.total=h.total),o.next(f)};return i.addEventListener("load",u),i.addEventListener("error",m),i.addEventListener("timeout",m),i.addEventListener("abort",m),e.reportProgress&&(i.addEventListener("progress",p),c!==null&&i.upload&&i.upload.addEventListener("progress",Z)),i.send(c),o.next({type:A.Sent}),()=>{i.removeEventListener("error",m),i.removeEventListener("abort",m),i.removeEventListener("load",u),i.removeEventListener("timeout",m),e.reportProgress&&(i.removeEventListener("progress",p),c!==null&&i.upload&&i.upload.removeEventListener("progress",Z)),i.readyState!==i.DONE&&i.abort()}})))}static \u0275fac=function(r){return new(r||n)(d(ee))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),Ot=new T(""),yn="XSRF-TOKEN",gn=new T("",{providedIn:"root",factory:()=>yn}),En="X-XSRF-TOKEN",vn=new T("",{providedIn:"root",factory:()=>En}),q=class{},Tn=(()=>{class n{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,r){this.doc=e,this.cookieName=r}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Q(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(r){return new(r||n)(d(R),d(gn))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})();function wn(n,t){let e=n.url.toLowerCase();if(!w(Ot)||n.method==="GET"||n.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return t(n);let r=w(q).getToken(),s=w(vn);return r!=null&&!n.headers.has(s)&&(n=n.clone({headers:n.headers.set(s,r)})),t(n)}var Se=function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n}(Se||{});function Rn(n,t){return{\u0275kind:n,\u0275providers:t}}function Mn(...n){let t=[St,be,le,{provide:k,useExisting:le},{provide:J,useFactory:()=>w(dn,{optional:!0})??w(be)},{provide:_e,useValue:wn,multi:!0},{provide:Ot,useValue:!0},{provide:q,useClass:Tn}];for(let e of n)t.push(...e.\u0275providers);return K(t)}function bn(n){return Rn(Se.Interceptors,n.map(t=>({provide:_e,useValue:t,multi:!0})))}var Dn=new T(""),Sn="b",An="h",On="s",In="st",Pn="u",Nn="rt",Ae=new T(""),Cn=["GET","HEAD"];function kn(n,t){let y=w(Ae),{isCacheActive:e}=y,r=Pe(y,["isCacheActive"]),{transferCache:s,method:o}=n;if(!e||s===!1||o==="POST"&&!r.includePostRequests&&!s||o!=="POST"&&!Cn.includes(o)||!r.includeRequestsWithAuthHeaders&&Ln(n)||r.filter?.(n)===!1)return t(n);let i=w(Xe);if(w(Dn,{optional:!0}))throw new E(2803,!1);let a=n.url,l=xn(n,a),u=i.get(l,null),m=r.includeHeaders;if(typeof s=="object"&&s.includeHeaders&&(m=s.includeHeaders),u){let{[Sn]:p,[Nn]:Z,[An]:h,[On]:f,[In]:_,[Pn]:W}=u,g=p;switch(Z){case"arraybuffer":g=new TextEncoder().encode(p).buffer;break;case"blob":g=new Blob([p]);break}let x=new b(h);return j(new O({body:g,headers:x,status:f,statusText:_,url:W}))}return t(n).pipe(Ue(p=>{p instanceof O}))}function Ln(n){return n.headers.has("authorization")||n.headers.has("proxy-authorization")}function It(n){return[...n.keys()].sort().map(t=>`${t}=${n.getAll(t)}`).join("&")}function xn(n,t){let{params:e,method:r,responseType:s}=n,o=It(e),i=n.serializeBody();i instanceof URLSearchParams?i=It(i):typeof i!="string"&&(i="");let c=[r,s,t,i,o].join("|"),a=jn(c);return a}function jn(n){let t=0;for(let e of n)t=Math.imul(31,t)+e.charCodeAt(0)<<0;return t+=2147483648,t.toString()}function Nt(n){return[{provide:Ae,useFactory:()=>(Je("NgHttpTransferCache"),D({isCacheActive:!0},n))},{provide:De,useValue:kn,multi:!0},{provide:nt,multi:!0,useFactory:()=>{let t=w(fe),e=w(Ae);return()=>{t.whenStable().then(()=>{e.isCacheActive=!1})}}}]}var Ms=(()=>{class n{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(r){return new(r||n)(d(R))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Un=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=v({token:n,factory:function(r){let s=null;return r?s=new(r||n):s=d(Fn),s},providedIn:"root"})}return n})(),Fn=(()=>{class n extends Un{_doc;constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case S.NONE:return r;case S.HTML:return N(r,"HTML")?P(r):et(this._doc,String(r)).toString();case S.STYLE:return N(r,"Style")?P(r):r;case S.SCRIPT:if(N(r,"Script"))return P(r);throw new E(5200,!1);case S.URL:return N(r,"URL")?P(r):Qe(String(r));case S.RESOURCE_URL:if(N(r,"ResourceURL"))return P(r);throw new E(5201,!1);default:throw new E(5202,!1)}}bypassSecurityTrustHtml(e){return Ye(e)}bypassSecurityTrustStyle(e){return qe(e)}bypassSecurityTrustScript(e){return Ze(e)}bypassSecurityTrustUrl(e){return We(e)}bypassSecurityTrustResourceUrl(e){return Ke(e)}static \u0275fac=function(r){return new(r||n)(d(R))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Oe=function(n){return n[n.NoHttpTransferCache=0]="NoHttpTransferCache",n[n.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",n[n.I18nSupport=2]="I18nSupport",n[n.EventReplay=3]="EventReplay",n[n.IncrementalHydration=4]="IncrementalHydration",n}(Oe||{});function bs(...n){let t=[],e=new Set;for(let{\u0275providers:s,\u0275kind:o}of n)e.add(o),s.length&&t.push(s);let r=e.has(Oe.HttpTransferCacheOptions);return K([[],st(),e.has(Oe.NoHttpTransferCache)||r?[]:Nt({}),t])}export{Re as a,Yt as b,M as c,A as d,O as e,Y as f,St as g,Mn as h,bn as i,Ms as j,Un as k,bs as l};