dealposbooks 1.0.8 → 1.0.9

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 (117) hide show
  1. package/3rdpartylicenses.txt +26 -26
  2. package/assets/scss/fonts/montserrat/Montserrat-Bold.woff2 +0 -0
  3. package/assets/scss/fonts/montserrat/Montserrat-Italic.woff2 +0 -0
  4. package/assets/scss/fonts/montserrat/Montserrat-Regular.woff2 +0 -0
  5. package/assets/scss/fonts/montserrat/Montserrat-SemiBold.woff2 +0 -0
  6. package/assets/scss/layouts/_layout.scss +6 -6
  7. package/assets/scss/layouts/_sidebar.scss +8 -6
  8. package/assets/scss/style.scss +20 -8
  9. package/assets/scss/variables/_variables.scss +12 -51
  10. package/{chunk-7X454BGN.js → chunk-25PFXJAK.js} +1 -1
  11. package/{chunk-4Z6KFX2O.js → chunk-2ODJIB2A.js} +2 -2
  12. package/chunk-2RWUYFYR.js +1 -0
  13. package/chunk-3GWDCNXX.js +397 -0
  14. package/{chunk-7RH6F4PN.js → chunk-4ANSU2AT.js} +3 -1
  15. package/{chunk-UZFJYFH2.js → chunk-52HZNWBM.js} +4 -2
  16. package/{chunk-2QCAOSMO.js → chunk-63UNI6LK.js} +1 -1
  17. package/chunk-7LG2CFYI.js +1 -0
  18. package/{chunk-33RD6RQS.js → chunk-AH4LZWJY.js} +1 -1
  19. package/chunk-AKBPKNCH.js +1 -0
  20. package/chunk-AOB6BRGQ.js +1 -0
  21. package/{chunk-YUFMXLRG.js → chunk-ATVC2UCR.js} +1 -1
  22. package/chunk-AWY6AD76.js +1 -0
  23. package/chunk-B4JAAGJX.js +1 -0
  24. package/chunk-BGKS3L73.js +246 -0
  25. package/{chunk-URKXDZJE.js → chunk-C66O26ZI.js} +1 -1
  26. package/chunk-C6Q5SG76.js +1 -0
  27. package/chunk-DOKYUX3G.js +1 -0
  28. package/{chunk-6TJIZZK6.js → chunk-E6EWXQXJ.js} +1 -1
  29. package/{chunk-EE4WG35V.js → chunk-E6QGADC5.js} +6 -2
  30. package/chunk-EN5MVYJQ.js +180 -0
  31. package/chunk-EP22HTZC.js +300 -0
  32. package/chunk-FJ7O4K2Y.js +1 -0
  33. package/chunk-FVXLQNAC.js +193 -0
  34. package/chunk-G52TDPSD.js +297 -0
  35. package/chunk-GCTIPWTU.js +1 -0
  36. package/chunk-GMTXOQ6X.js +1 -0
  37. package/chunk-GRTIJ77T.js +1 -0
  38. package/chunk-HG23WDL5.js +1660 -0
  39. package/chunk-I4HDCL3W.js +1 -0
  40. package/{chunk-MQJQRREL.js → chunk-I7MT7OUB.js} +1 -1
  41. package/chunk-ISXV3FIH.js +1 -0
  42. package/{chunk-QUR72LET.js → chunk-JFAO2CIB.js} +1 -1
  43. package/chunk-JQNCWTZN.js +1 -0
  44. package/{chunk-ONU5ICNZ.js → chunk-JT2WCR5Q.js} +1 -1
  45. package/chunk-JXNLXEJT.js +1 -0
  46. package/chunk-K36WQVFR.js +1 -0
  47. package/{chunk-U2S74ZLK.js → chunk-KFHCGO62.js} +1 -1
  48. package/chunk-LCATVZKP.js +141 -0
  49. package/chunk-LJMMN36O.js +1 -0
  50. package/{chunk-I72ECAQH.js → chunk-MNPBLC23.js} +1 -1
  51. package/chunk-NQ24E7JY.js +1 -0
  52. package/chunk-NTDTN5DF.js +1 -0
  53. package/{chunk-2XZW23PQ.js → chunk-O7OAT4UO.js} +1 -1
  54. package/chunk-OHVHLILJ.js +1 -0
  55. package/chunk-OJWZH7AB.js +301 -0
  56. package/{chunk-D5U6AOFB.js → chunk-PG4QL7N2.js} +1 -1
  57. package/{chunk-2LKTSMUI.js → chunk-PNAWRNGD.js} +7 -7
  58. package/chunk-QJ2XA575.js +1 -0
  59. package/chunk-RJYIKNTI.js +1 -0
  60. package/chunk-RR5AUWZO.js +1 -0
  61. package/chunk-RSHFIZV3.js +7 -0
  62. package/chunk-SQKLMC5H.js +231 -0
  63. package/chunk-T3ZCO6EC.js +1 -0
  64. package/chunk-T7R7C3RX.js +1 -0
  65. package/chunk-TJSPXPO6.js +59 -0
  66. package/chunk-TNXHYK2R.js +7 -0
  67. package/chunk-TTG6XQNP.js +1 -0
  68. package/chunk-UC2RR4WT.js +210 -0
  69. package/chunk-UOFRXQI7.js +1 -0
  70. package/{chunk-M4ZOPGSP.js → chunk-UVBFYB2X.js} +1 -1
  71. package/chunk-WCQQSWYQ.js +616 -0
  72. package/{chunk-ZT4NOONZ.js → chunk-WTRMIJHX.js} +1 -1
  73. package/chunk-Z4SGDPGH.js +821 -0
  74. package/chunk-ZNN2E36Y.js +1 -0
  75. package/index.html +3 -3
  76. package/main-F2OQVLJM.js +1 -0
  77. package/package.json +1 -1
  78. package/styles-GUJHQHWA.css +1 -0
  79. package/chunk-3ROVFYLI.js +0 -189
  80. package/chunk-3UAQZJAG.js +0 -180
  81. package/chunk-7KARVIIN.js +0 -1
  82. package/chunk-A3I2VQNX.js +0 -141
  83. package/chunk-A3MXO6MA.js +0 -1
  84. package/chunk-B5ZO2I4D.js +0 -2
  85. package/chunk-BP2JJ6HZ.js +0 -160
  86. package/chunk-BWO4PVAG.js +0 -301
  87. package/chunk-C4WUUVLC.js +0 -1
  88. package/chunk-CH2GYE5J.js +0 -1
  89. package/chunk-DF2QDC4T.js +0 -1
  90. package/chunk-DKWZOSVY.js +0 -59
  91. package/chunk-EEJWF26F.js +0 -1
  92. package/chunk-EQDQRRRY.js +0 -1
  93. package/chunk-F7FJPDUV.js +0 -1
  94. package/chunk-FDDNZH4H.js +0 -1633
  95. package/chunk-FYNIFRG5.js +0 -1
  96. package/chunk-HKMI4ZYY.js +0 -393
  97. package/chunk-HU6SF3HD.js +0 -1
  98. package/chunk-IWUDRSTJ.js +0 -235
  99. package/chunk-KJWN47PL.js +0 -1
  100. package/chunk-MVGPOIFT.js +0 -1
  101. package/chunk-OHEAUNEW.js +0 -1
  102. package/chunk-P4OJNULI.js +0 -1
  103. package/chunk-PCJXJ6O4.js +0 -370
  104. package/chunk-PFXPLNMA.js +0 -1
  105. package/chunk-PQTHPF23.js +0 -7
  106. package/chunk-PV6INEW2.js +0 -1
  107. package/chunk-QPA73UD5.js +0 -616
  108. package/chunk-RFZOXUTS.js +0 -1
  109. package/chunk-RIUEIX64.js +0 -1
  110. package/chunk-UPDO63XT.js +0 -1
  111. package/chunk-UQ3SWGEA.js +0 -1
  112. package/chunk-WZKSD7XN.js +0 -284
  113. package/chunk-X2CQD76I.js +0 -208
  114. package/chunk-YX7446ZM.js +0 -1
  115. package/chunk-Z53S4NM2.js +0 -736
  116. package/main-U76NYT5G.js +0 -1
  117. package/styles-OZO2XDGZ.css +0 -1
@@ -0,0 +1 @@
1
+ import{a as c}from"./chunk-UOFRXQI7.js";import{g as C}from"./chunk-EN5MVYJQ.js";import"./chunk-Z4SGDPGH.js";import"./chunk-FJ7O4K2Y.js";import"./chunk-PNAWRNGD.js";import"./chunk-FVXLQNAC.js";import{a as v}from"./chunk-T3ZCO6EC.js";import"./chunk-S35HUXPS.js";import"./chunk-25PFXJAK.js";import{t as T}from"./chunk-GRTIJ77T.js";import{Bb as l,Ic as _,Ub as o,Vb as r,_b as u,dc as f,ec as g,ia as i,mc as x,qa as m,ra as s,ub as p,uc as d}from"./chunk-RSHFIZV3.js";import"./chunk-C6Q5SG76.js";function M(t,S){if(t&1){let e=u();o(0,"div",2)(1,"button",3),f("click",function(){m(e);let a=g();return s(a.onMigrate())}),x(2,"Migrate"),r()()}}var V=(()=>{class t{constructor(){this.migrateService=i(c),this.toastr=i(v)}onMigrate(){this.migrateService.migrateTaxAccount().subscribe(e=>{this.toastr.success(e.message,"Migration Successful")})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=p({type:t,selectors:[["app-tax-account"]],features:[d([c])],decls:3,vars:0,consts:[["content",""],["pageTitle","Tax Account"],[1,"container","my-2"],[1,"btn","btn-primary",3,"click"]],template:function(n,a){n&1&&(o(0,"app-main-panel",1),l(1,M,3,0,"ng-template",null,0,_),r())},dependencies:[C,T],encapsulation:2})}}return t})();export{V as TaxAccountComponent};
@@ -1 +1 @@
1
- import{n as i,w as r}from"./chunk-7X454BGN.js";import"./chunk-C4WUUVLC.js";import{$b as n,yb as o}from"./chunk-PQTHPF23.js";import"./chunk-EQDQRRRY.js";var c=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=o({type:e,selectors:[["app-blank-layout"]],decls:1,vars:0,template:function(t,a){t&1&&n(0,"router-outlet")},dependencies:[r,i],encapsulation:2})}}return e})();export{c as BlankComponent};
1
+ import{n as i,w as r}from"./chunk-25PFXJAK.js";import"./chunk-GRTIJ77T.js";import{Wb as n,ub as o}from"./chunk-RSHFIZV3.js";import"./chunk-C6Q5SG76.js";var c=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=o({type:e,selectors:[["app-blank-layout"]],decls:1,vars:0,template:function(t,a){t&1&&n(0,"router-outlet")},dependencies:[r,i],encapsulation:2})}}return e})();export{c as BlankComponent};
@@ -0,0 +1 @@
1
+ import{a as U}from"./chunk-AH4LZWJY.js";import{a as D}from"./chunk-AKBPKNCH.js";import{f as L,h as M,i as V,j as N}from"./chunk-HG23WDL5.js";import"./chunk-EP22HTZC.js";import"./chunk-4ANSU2AT.js";import"./chunk-TJSPXPO6.js";import{g as k}from"./chunk-EN5MVYJQ.js";import"./chunk-Z4SGDPGH.js";import"./chunk-FJ7O4K2Y.js";import"./chunk-PNAWRNGD.js";import"./chunk-FVXLQNAC.js";import"./chunk-T3ZCO6EC.js";import"./chunk-S35HUXPS.js";import"./chunk-25PFXJAK.js";import{n as T,r as I,t as z}from"./chunk-GRTIJ77T.js";import{Bb as x,Fc as y,Ha as b,Hc as A,Ic as C,Kb as f,Tc as J,Ub as a,Vb as o,Vc as v,Wb as h,Z as P,_b as S,dc as w,ec as p,gb as c,ia as R,mc as l,nc as m,qa as u,ra as g,ub as E}from"./chunk-RSHFIZV3.js";import{a as s,b as d}from"./chunk-C6Q5SG76.js";function B(t,_){if(t&1){let e=S();a(0,"button",6),w("click",function(){u(e);let n=p(2);return g(n.onCreateJournal())}),l(1," Generate Journal "),o()}}function O(t,_){if(t&1&&x(0,B,2,0,"button",5),t&2){let e=p();f("ngIf",e.selectedItems().length)}}function j(t,_){t&1&&(a(0,"tr")(1,"th",9),h(2,"p-tableHeaderCheckbox"),o(),a(3,"th"),l(4,"Outlet"),o(),a(5,"th"),l(6,"Number"),o(),a(7,"th"),l(8,"Customer"),o(),a(9,"th"),l(10,"Date"),o(),a(11,"th"),l(12,"Due"),o(),a(13,"th"),l(14,"Note"),o(),a(15,"th"),l(16,"Payment"),o()())}function G(t,_){if(t&1&&(a(0,"tr")(1,"td"),h(2,"p-tableCheckbox",10),o(),a(3,"td"),l(4),o(),a(5,"td"),l(6),o(),a(7,"td"),l(8),o(),a(9,"td"),l(10),y(11,"date"),o(),a(12,"td"),l(13),y(14,"date"),o(),a(15,"td"),l(16),o(),a(17,"td"),l(18),o()()),t&2){let e=_.$implicit;c(2),f("value",e),c(2),m(e.outlet),c(2),m(e.number),c(2),m(e.customer),c(2),m(A(11,8,e.date,"d MMM y")),c(3),m(A(14,11,e.due,"d MMM y")),c(3),m(e.note),c(2),m(e.payment)}}function K(t,_){if(t&1){let e=S();a(0,"p-table",8),w("onLazyLoad",function(n){u(e);let r=p(2);return g(r.onLazyLoad(n))})("onRowSelect",function(n){u(e);let r=p(2);return g(r.onRowSelect(n))})("onRowUnselect",function(n){u(e);let r=p(2);return g(r.onRowUnselect(n))}),x(1,j,17,0,"ng-template",null,2,C)(3,G,19,14,"ng-template",null,3,C),o()}if(t&2){let e=p(2);f("value",e.APCollection().data)("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("paginator",!0)("rows",e.pageData().PageSize)("totalRecords",e.APCollection().totalCount)("lazy",!0)}}function F(t,_){if(t&1&&x(0,K,5,7,"p-table",7),t&2){let e=p();f("ngIf",e.APCollection())}}var ie=(()=>{class t{constructor(){this.generateJournalService=R(U),this.APCollection=b(null),this.pageData=b({PageNumber:1,PageSize:10}),this.selectedItems=J(()=>{let e=this.APCollection();return e?e.data.filter(i=>i.checked):[]}),v(()=>{this.pageData()&&this.fetchAPCollection()})}fetchAPCollection(){let e={PageSize:this.pageData().PageSize,PageNumber:this.pageData().PageNumber};this.generateJournalService.getAPJournal(e).pipe(P(i=>{this.APCollection.update(n=>d(s({},n),{data:i.data.map(r=>d(s({},r),{checked:!1})),totalCount:+i.totalCount}))}),D("AR Collection")).subscribe()}onLazyLoad(e){this.pageData.set({PageNumber:e.first/e.rows+1,PageSize:e.rows})}onRowSelect(e){let i=e.data;this.APCollection.update(n=>d(s({},n),{data:n.data.map(r=>r.id===i.id?d(s({},r),{checked:!0}):r)}))}onRowUnselect(e){let i=e.data;this.APCollection.update(n=>d(s({},n),{data:n.data.map((r,H)=>r.id===i[H].id?d(s({},r),{checked:!1}):r)}))}onCreateJournal(){let i=this.selectedItems().map(n=>n.id);this.generateJournalService.createAPJournal(i).subscribe(n=>{console.log("Journal created successfully:",n)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-ap-journal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","AP Collection"],["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(i,n){i&1&&(a(0,"app-main-panel",4),x(1,O,1,1,"ng-template",null,0,C)(3,F,1,1,"ng-template",null,1,C),o())},dependencies:[k,N,L,M,V,z,T,I],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{ie as ApJournalComponent};
@@ -1,2 +1,2 @@
1
- import{p as c,w as p}from"./chunk-7X454BGN.js";import"./chunk-C4WUUVLC.js";import{$b as i,Ob as a,Zb as e,_b as t,kb as m,qc as n,yb as d,zc as l}from"./chunk-PQTHPF23.js";import"./chunk-EQDQRRRY.js";var u=()=>["/"],v=()=>["/authentication/login2"],x=(()=>{class o{static{this.\u0275fac=function(r){return new(r||o)}}static{this.\u0275cmp=d({type:o,selectors:[["app-signup"]],decls:41,vars:4,consts:[[1,"auth-wrapper","d-flex","no-block","justify-content-center","align-items-center",2,"background",`url(../../../../../assets/images/background/login-register.jpg)
1
+ import{p as c,w as p}from"./chunk-25PFXJAK.js";import"./chunk-GRTIJ77T.js";import{Kb as a,Ub as e,Vb as t,Wb as i,gb as m,mc as n,ub as d,vc as l}from"./chunk-RSHFIZV3.js";import"./chunk-C6Q5SG76.js";var u=()=>["/"],v=()=>["/authentication/login2"],x=(()=>{class o{static{this.\u0275fac=function(r){return new(r||o)}}static{this.\u0275cmp=d({type:o,selectors:[["app-signup"]],decls:41,vars:4,consts:[[1,"auth-wrapper","d-flex","no-block","justify-content-center","align-items-center",2,"background",`url(../../../../../assets/images/background/login-register.jpg)
2
2
  no-repeat center center`],[1,"auth-box","on-sidebar","m-3","m-md-0"],[1,"text-center"],[1,"db"],["src","../../../../../assets/images/logos/logo-icon.svg","alt","logo"],[1,"font-medium","mb-4","mt-2"],[1,"row"],[1,"col-12"],["action","../../../../../index.html",1,"form-horizontal","mt-3"],[1,"mb-3","row"],["type","text","required"," ","placeholder","Name",1,"form-control"],["type","text","required"," ","placeholder","Email",1,"form-control"],["type","password","required"," ","placeholder","Password",1,"form-control"],["type","password","required"," ","placeholder","Confirm Password",1,"form-control"],[1,"col-md-12"],[1,"form-check"],["type","checkbox","id","customCheck1",1,"form-check-input"],["for","customCheck1",1,"form-check-label"],["href","javascript:void(0)"],[1,"mb-3","text-center"],[1,"col-xs-12","mb-4"],[1,"btn","d-block","w-100","btn-primary",3,"routerLink"],[1,"mb-3","mb-0","mt-2"],[1,"col-sm-12","text-center"],[1,"text-primary","ms-1",3,"routerLink"]],template:function(r,f){r&1&&(e(0,"div",0)(1,"div",1)(2,"div")(3,"div",2)(4,"span",3),i(5,"img",4),t(),e(6,"h5",5),n(7,"Sign Up to Admin"),t()(),e(8,"div",6)(9,"div",7)(10,"form",8)(11,"div",9)(12,"div",7),i(13,"input",10),t()(),e(14,"div",9)(15,"div",7),i(16,"input",11),t()(),e(17,"div",9)(18,"div",7),i(19,"input",12),t()(),e(20,"div",9)(21,"div",7),i(22,"input",13),t()(),e(23,"div",9)(24,"div",14)(25,"div",15),i(26,"input",16),e(27,"label",17),n(28,"I agree to all "),e(29,"a",18),n(30,"Terms"),t()()()()(),e(31,"div",19)(32,"div",20)(33,"a",21),n(34,"SIGN UP"),t()()(),e(35,"div",22)(36,"div",23),n(37," Already have an account? "),e(38,"a",24)(39,"b"),n(40,"Sign In"),t()()()()()()()()()()),r&2&&(m(33),a("routerLink",l(2,u)),m(5),a("routerLink",l(3,v)))},dependencies:[p,c],encapsulation:2})}}return o})();export{x as Signup2Component};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-2RWUYFYR.js";import"./chunk-T3ZCO6EC.js";import"./chunk-S35HUXPS.js";import{o as r}from"./chunk-25PFXJAK.js";import"./chunk-GRTIJ77T.js";import{ia as e}from"./chunk-RSHFIZV3.js";import"./chunk-C6Q5SG76.js";var a=()=>{let t=e(o),i=e(r);return!t.isAuthenticated()||t.isTokenExpired()?(i.navigate(["authentication/login"]),!1):!0};var d=[{path:"",canActivate:[a],children:[{path:"",loadComponent:()=>import("./chunk-2ODJIB2A.js").then(t=>t.Dashboard1Component),data:{title:"Dashboard",headerTemplate:"header"}}]}];export{d as DashboardRoutes};
@@ -1 +1 @@
1
- import{p,w as c}from"./chunk-7X454BGN.js";import"./chunk-C4WUUVLC.js";import{Ob as d,Zb as e,_b as t,kb as i,qc as n,yb as m,zc as a}from"./chunk-PQTHPF23.js";import"./chunk-EQDQRRRY.js";var s=()=>["/"],b=(()=>{class o{static{this.\u0275fac=function(r){return new(r||o)}}static{this.\u0275cmp=m({type:o,selectors:[["app-not-found"]],decls:10,vars:2,consts:[[1,"error-box"],[1,"error-body","text-center"],[1,"error-title","text-danger"],[1,"text-uppercase","error-subtitle"],[1,"text-muted","mt-4","mb-4"],[1,"btn","btn-danger","btn-rounded","mb-4",3,"routerLink"]],template:function(r,l){r&1&&(e(0,"div",0)(1,"div",1)(2,"h1",2),n(3,"404"),t(),e(4,"h3",3),n(5,"PAGE NOT FOUND !"),t(),e(6,"p",4),n(7," YOU SEEM TO BE TRYING TO FIND HIS WAY HOME "),t(),e(8,"a",5),n(9,"Back to home"),t()()()),r&2&&(i(8),d("routerLink",a(1,s)))},dependencies:[c,p],encapsulation:2})}}return o})();export{b as NotfoundComponent};
1
+ import{p,w as c}from"./chunk-25PFXJAK.js";import"./chunk-GRTIJ77T.js";import{Kb as d,Ub as e,Vb as t,gb as i,mc as n,ub as m,vc as a}from"./chunk-RSHFIZV3.js";import"./chunk-C6Q5SG76.js";var s=()=>["/"],b=(()=>{class o{static{this.\u0275fac=function(r){return new(r||o)}}static{this.\u0275cmp=m({type:o,selectors:[["app-not-found"]],decls:10,vars:2,consts:[[1,"error-box"],[1,"error-body","text-center"],[1,"error-title","text-danger"],[1,"text-uppercase","error-subtitle"],[1,"text-muted","mt-4","mb-4"],[1,"btn","btn-danger","btn-rounded","mb-4",3,"routerLink"]],template:function(r,l){r&1&&(e(0,"div",0)(1,"div",1)(2,"h1",2),n(3,"404"),t(),e(4,"h3",3),n(5,"PAGE NOT FOUND !"),t(),e(6,"p",4),n(7," YOU SEEM TO BE TRYING TO FIND HIS WAY HOME "),t(),e(8,"a",5),n(9,"Back to home"),t()()()),r&2&&(i(8),d("routerLink",a(1,s)))},dependencies:[c,p],encapsulation:2})}}return o})();export{b as NotfoundComponent};
@@ -0,0 +1 @@
1
+ import{a as E,b as B,e as mt,f as Ne,m as x,n as Me,o as ue}from"./chunk-S35HUXPS.js";import"./chunk-GRTIJ77T.js";import{$ as S,ca as dt}from"./chunk-RSHFIZV3.js";import{a as le,c as ft}from"./chunk-C6Q5SG76.js";function pt(i){return new S(3e3,!1)}function jt(){return new S(3100,!1)}function Wt(){return new S(3101,!1)}function Gt(i){return new S(3001,!1)}function Ht(i){return new S(3003,!1)}function Yt(i){return new S(3004,!1)}function Xt(i,e){return new S(3005,!1)}function Zt(){return new S(3006,!1)}function Jt(){return new S(3007,!1)}function xt(i,e){return new S(3008,!1)}function es(i){return new S(3002,!1)}function ts(i,e,t,s,n){return new S(3010,!1)}function ss(){return new S(3011,!1)}function ns(){return new S(3012,!1)}function is(){return new S(3200,!1)}function rs(){return new S(3202,!1)}function as(){return new S(3013,!1)}function os(i){return new S(3014,!1)}function ls(i){return new S(3015,!1)}function us(i){return new S(3016,!1)}function cs(i){return new S(3500,!1)}function hs(i){return new S(3501,!1)}function fs(i,e){return new S(3404,!1)}function ds(i){return new S(3502,!1)}function ms(i){return new S(3503,!1)}function ps(){return new S(3300,!1)}function gs(i){return new S(3504,!1)}function ys(i){return new S(3301,!1)}function _s(i,e){return new S(3302,!1)}function Ss(i){return new S(3303,!1)}function Es(i,e){return new S(3400,!1)}function Ts(i){return new S(3401,!1)}function vs(i){return new S(3402,!1)}function ws(i,e){return new S(3505,!1)}var bs=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function U(i){switch(i.length){case 0:return new x;case 1:return i[0];default:return new Me(i)}}function Ot(i,e,t=new Map,s=new Map){let n=[],r=[],a=-1,o=null;if(e.forEach(l=>{let u=l.get("offset"),h=u==a,c=h&&o||new Map;l.forEach((_,y)=>{let d=y,g=_;if(y!=="offset")switch(d=i.normalizePropertyName(d,n),g){case ue:g=t.get(y);break;case B:g=s.get(y);break;default:g=i.normalizeStyleValue(y,d,g,n);break}c.set(d,g)}),h||r.push(c),o=c,a=u}),n.length)throw ds(n);return r}function xe(i,e,t,s){switch(e){case"start":i.onStart(()=>s(t&&Ce(t,"start",i)));break;case"done":i.onDone(()=>s(t&&Ce(t,"done",i)));break;case"destroy":i.onDestroy(()=>s(t&&Ce(t,"destroy",i)));break}}function Ce(i,e,t){let s=t.totalTime,n=!!t.disabled,r=et(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,s??i.totalTime,n),a=i._data;return a!=null&&(r._data=a),r}function et(i,e,t,s,n="",r=0,a){return{element:i,triggerName:e,fromState:t,toState:s,phaseName:n,totalTime:r,disabled:!!a}}function L(i,e,t){let s=i.get(e);return s||i.set(e,s=t),s}function gt(i){let e=i.indexOf(":"),t=i.substring(1,e),s=i.slice(e+1);return[t,s]}var As=typeof document>"u"?null:document.documentElement;function tt(i){let e=i.parentNode||i.host||null;return e===As?null:e}function Ps(i){return i.substring(1,6)=="ebkit"}var H=null,yt=!1;function Ns(i){H||(H=Ms()||{},yt=H.style?"WebkitAppearance"in H.style:!1);let e=!0;return H.style&&!Ps(i)&&(e=i in H.style,!e&&yt&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in H.style)),e}function bn(i){return bs.has(i)}function Ms(){return typeof document<"u"?document.body:null}function Lt(i,e){for(;e;){if(e===i)return!0;e=tt(e)}return!1}function Ft(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let s=i.querySelector(e);return s?[s]:[]}var It=(()=>{class i{validateStyleProperty(t){return Ns(t)}containsElement(t,s){return Lt(t,s)}getParentElement(t){return tt(t)}query(t,s,n){return Ft(t,s,n)}computeStyle(t,s,n){return n||""}animate(t,s,n,r,a,o=[],l){return new x(n,r)}static \u0275fac=function(s){return new(s||i)};static \u0275prov=dt({token:i,factory:i.\u0275fac})}return i})(),_t=class{static NOOP=new It},Fe=class{},Ie=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}},Cs=1e3,zt="{{",ks="}}",st="ng-enter",pe="ng-leave",ce="ng-trigger",ge=".ng-trigger",St="ng-animating",ze=".ng-animating";function $(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ke(parseFloat(e[1]),e[2])}function Ke(i,e){switch(e){case"s":return i*Cs;default:return i}}function ye(i,e,t){return i.hasOwnProperty("duration")?i:Ds(i,e,t)}function Ds(i,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,n,r=0,a="";if(typeof i=="string"){let o=i.match(s);if(o===null)return e.push(pt(i)),{duration:0,delay:0,easing:""};n=Ke(parseFloat(o[1]),o[2]);let l=o[3];l!=null&&(r=Ke(parseFloat(l),o[4]));let u=o[5];u&&(a=u)}else n=i;if(!t){let o=!1,l=e.length;n<0&&(e.push(jt()),o=!0),r<0&&(e.push(Wt()),o=!0),o&&e.splice(l,0,pt(i))}return{duration:n,delay:r,easing:a}}function Rs(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function Et(i){return Array.isArray(i)?new Map(...i):new Map(i)}function Q(i,e,t){e.forEach((s,n)=>{let r=nt(n);t&&!t.has(n)&&t.set(n,i.style[r]),i.style[r]=s})}function X(i,e){e.forEach((t,s)=>{let n=nt(s);i.style[n]=""})}function se(i){return Array.isArray(i)?i.length==1?i[0]:mt(i):i}function Os(i,e,t){let s=e.params||{},n=Kt(i);n.length&&n.forEach(r=>{s.hasOwnProperty(r)||t.push(Gt(r))})}var qe=new RegExp(`${zt}\\s*(.+?)\\s*${ks}`,"g");function Kt(i){let e=[];if(typeof i=="string"){let t;for(;t=qe.exec(i);)e.push(t[1]);qe.lastIndex=0}return e}function ie(i,e,t){let s=`${i}`,n=s.replace(qe,(r,a)=>{let o=e[a];return o==null&&(t.push(Ht(a)),o=""),o.toString()});return n==s?i:n}var Ls=/-+([a-z0-9])/g;function nt(i){return i.replace(Ls,(...e)=>e[1].toUpperCase())}function An(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Fs(i,e){return i===0||e===0}function Is(i,e,t){if(t.size&&e.length){let s=e[0],n=[];if(t.forEach((r,a)=>{s.has(a)||n.push(a),s.set(a,r)}),n.length)for(let r=1;r<e.length;r++){let a=e[r];n.forEach(o=>a.set(o,it(i,o)))}}return e}function O(i,e,t){switch(e.type){case E.Trigger:return i.visitTrigger(e,t);case E.State:return i.visitState(e,t);case E.Transition:return i.visitTransition(e,t);case E.Sequence:return i.visitSequence(e,t);case E.Group:return i.visitGroup(e,t);case E.Animate:return i.visitAnimate(e,t);case E.Keyframes:return i.visitKeyframes(e,t);case E.Style:return i.visitStyle(e,t);case E.Reference:return i.visitReference(e,t);case E.AnimateChild:return i.visitAnimateChild(e,t);case E.AnimateRef:return i.visitAnimateRef(e,t);case E.Query:return i.visitQuery(e,t);case E.Stagger:return i.visitStagger(e,t);default:throw Yt(e.type)}}function it(i,e){return window.getComputedStyle(i)[e]}var zs=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Be=class extends Fe{normalizePropertyName(e,t){return nt(e)}normalizeStyleValue(e,t,s,n){let r="",a=s.toString().trim();if(zs.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let o=s.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&n.push(Xt(e,s))}return a+r}};var _e="*";function Ks(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(s=>qs(s,t,e)):t.push(i),t}function qs(i,e,t){if(i[0]==":"){let l=Bs(i,t);if(typeof l=="function"){e.push(l);return}i=l}let s=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(ls(i)),e;let n=s[1],r=s[2],a=s[3];e.push(Tt(n,a));let o=n==_e&&a==_e;r[0]=="<"&&!o&&e.push(Tt(a,n))}function Bs(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s)<parseFloat(t);default:return e.push(us(i)),"* => *"}}var he=new Set(["true","1"]),fe=new Set(["false","0"]);function Tt(i,e){let t=he.has(i)||fe.has(i),s=he.has(e)||fe.has(e);return(n,r)=>{let a=i==_e||i==n,o=e==_e||e==r;return!a&&t&&typeof n=="boolean"&&(a=n?he.has(i):fe.has(i)),!o&&s&&typeof r=="boolean"&&(o=r?he.has(e):fe.has(e)),a&&o}}var qt=":self",Qs=new RegExp(`s*${qt}s*,?`,"g");function rt(i,e,t,s){return new Qe(i).build(e,t,s)}var vt="",Qe=class{_driver;constructor(e){this._driver=e}build(e,t,s){let n=new $e(t);return this._resetContextStyleTimingState(n),O(this,se(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=vt,e.collectedStyles=new Map,e.collectedStyles.set(vt,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,n=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(Zt()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==E.State){let l=o,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t))}),l.name=u}else if(o.type==E.Transition){let l=this.visitTransition(o,t);s+=l.queryCount,n+=l.depCount,a.push(l)}else t.errors.push(Jt())}),{type:E.Trigger,name:e.name,states:r,transitions:a,queryCount:s,depCount:n,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,a=n||{};s.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{Kt(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&t.errors.push(xt(e.name,[...r.values()]))}return{type:E.State,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=O(this,se(e.animation),t),n=Ks(e.expr,t.errors);return{type:E.Transition,matchers:n,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Y(e.options)}}visitSequence(e,t){return{type:E.Sequence,steps:e.steps.map(s=>O(this,s,t)),options:Y(e.options)}}visitGroup(e,t){let s=t.currentTime,n=0,r=e.steps.map(a=>{t.currentTime=s;let o=O(this,a,t);return n=Math.max(n,t.currentTime),o});return t.currentTime=n,{type:E.Group,steps:r,options:Y(e.options)}}visitAnimate(e,t){let s=js(e.timings,t.errors);t.currentAnimateTimings=s;let n,r=e.styles?e.styles:Ne({});if(r.type==E.Keyframes)n=this.visitKeyframes(r,t);else{let a=e.styles,o=!1;if(!a){o=!0;let u={};s.easing&&(u.easing=s.easing),a=Ne(u)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,n=l}return t.currentAnimateTimings=null,{type:E.Animate,timings:s,style:n,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of n)typeof o=="string"?o===B?s.push(o):t.errors.push(es(o)):s.push(new Map(Object.entries(o)));let r=!1,a=null;return s.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(zt)>=0){r=!0;break}}}),{type:E.Style,styles:s,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let u=t.collectedStyles.get(t.currentQuerySelector),h=u.get(l),c=!0;h&&(r!=n&&r>=h.startTime&&n<=h.endTime&&(t.errors.push(ts(l,h.startTime,h.endTime,r,n)),c=!1),r=h.startTime),c&&u.set(l,{startTime:r,endTime:n}),t.options&&Os(o,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:E.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(ss()),s;let n=1,r=0,a=[],o=!1,l=!1,u=0,h=e.steps.map(b=>{let A=this._makeStyleAst(b,t),C=A.offset!=null?A.offset:Us(A.styles),N=0;return C!=null&&(r++,N=A.offset=C),l=l||N<0||N>1,o=o||N<u,u=N,a.push(N),A});l&&t.errors.push(ns()),o&&t.errors.push(is());let c=e.steps.length,_=0;r>0&&r<c?t.errors.push(rs()):r==0&&(_=n/(c-1));let y=c-1,d=t.currentTime,g=t.currentAnimateTimings,v=g.duration;return h.forEach((b,A)=>{let C=_>0?A==y?1:_*A:a[A],N=C*v;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(b,t),b.offset=C,s.styles.push(b)}),s}visitReference(e,t){return{type:E.Reference,animation:O(this,se(e.animation),t),options:Y(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:E.AnimateChild,options:Y(e.options)}}visitAnimateRef(e,t){return{type:E.AnimateRef,animation:this.visitReference(e.animation,t),options:Y(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=$s(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,L(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,se(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:E.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:Y(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(as());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ye(e.timings,t.errors,!0);return{type:E.Stagger,animation:O(this,se(e.animation),t),timings:s,options:null}}};function $s(i){let e=!!i.split(/\s*,\s*/).find(t=>t==qt);return e&&(i=i.replace(Qs,"")),i=i.replace(/@\*/g,ge).replace(/@\w+/g,t=>ge+"-"+t.slice(1)).replace(/:animating/g,ze),[i,e]}function Vs(i){return i?le({},i):null}var $e=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function Us(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function js(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=ye(i,e).duration;return ke(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ke(0,0,"");return r.dynamic=!0,r.strValue=t,r}let n=ye(t,e);return ke(n.duration,n.delay,n.easing)}function Y(i){return i?(i=le({},i),i.params&&(i.params=Vs(i.params))):i={},i}function ke(i,e,t){return{duration:i,delay:e,easing:t}}function at(i,e,t,s,n,r,a=null,o=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:s,duration:n,delay:r,totalTime:n+r,easing:a,subTimeline:o}}var te=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ws=1,Gs=":enter",Hs=new RegExp(Gs,"g"),Ys=":leave",Xs=new RegExp(Ys,"g");function ot(i,e,t,s,n,r=new Map,a=new Map,o,l,u=[]){return new Ve().buildKeyframes(i,e,t,s,n,r,a,o,l,u)}var Ve=class{buildKeyframes(e,t,s,n,r,a,o,l,u,h=[]){u=u||new te;let c=new Ue(e,t,u,n,r,h,[]);c.options=l;let _=l.delay?$(l.delay):0;c.currentTimeline.delayNextStep(_),c.currentTimeline.setStyles([a],null,c.errors,l),O(this,s,c);let y=c.timelines.filter(d=>d.containsAnimation());if(y.length&&o.size){let d;for(let g=y.length-1;g>=0;g--){let v=y[g];if(v.element===t){d=v;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([o],null,c.errors,l)}return y.length?y.map(d=>d.buildKeyframes()):[at(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(s,n,n.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let n of e){let r=n?.delay;if(r){let a=typeof r=="number"?r:$(ie(r,n?.params??{},t.errors));s.delayNextStep(a)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,a=s.duration!=null?$(s.duration):null,o=s.delay!=null?$(s.delay):null;return a!==0&&e.forEach(l=>{let u=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,u.duration+u.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),O(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==E.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Se);let a=$(r.delay);n.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>O(this,a,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>s&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?$(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),n=Math.max(n,o.currentTimeline.currentTime),s.push(o.currentTimeline)}),s.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,n=t.params?ie(s,t.params,t.errors):s;return ye(n,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),n.snapshotCurrentStyles());let r=e.style;r.type==E.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,n=t.currentTimeline.duration,r=s.duration,o=t.createSubContext().currentTimeline;o.easing=s.easing,e.styles.forEach(l=>{let u=l.offset||0;o.forwardTime(u*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(n+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?$(n.delay):0;r&&(t.previousNode.type===E.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Se);let a=s,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((u,h)=>{t.currentQueryIndex=h;let c=t.createSubContext(e.options,u);r&&c.delayNextStep(r),u===t.element&&(l=c.currentTimeline),O(this,e.animation,c),c.currentTimeline.applyStylesToKeyframe();let _=c.currentTimeline.currentTime;a=Math.max(a,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,n=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=s.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let c=h.currentTime;O(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-c+(n.startTime-s.currentTimeline.startTime)}},Se={},Ue=class i{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Se;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,s,n,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=r,this.errors=a,this.timelines=o,this.currentTimeline=l||new Ee(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,n=this.options;s.duration!=null&&(n.duration=$(s.duration)),s.delay!=null&&(n.delay=$(s.delay));let r=s.params;if(r){let a=n.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=ie(r[o],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(n=>{s[n]=t[n]})}}return e}createSubContext(e=null,t,s){let n=t||this.element,r=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Se,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new je(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,n,r,a){let o=[];if(n&&o.push(this.element),e.length>0){e=e.replace(Hs,"."+this._enterClassName),e=e.replace(Xs,"."+this._leaveClassName);let l=s!=1,u=this._driver.query(this.element,e,l);s!==0&&(u=s<0?u.slice(u.length+s,u.length):u.slice(0,s)),o.push(...u)}return!r&&o.length==0&&a.push(os(t)),o}},Ee=class i{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ws,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,n){t&&this._previousKeyframe.set("easing",t);let r=n&&n.params||{},a=Zs(e,this._globalTimelineStyles);for(let[o,l]of a){let u=ie(l,r,s);this._pendingStyles.set(o,u),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??B),this._updateStyle(o,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let n=this._styleSummary.get(s);(!n||t.time>n.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((o,l)=>{let u=new Map([...this._backFill,...o]);u.forEach((h,c)=>{h===ue?e.add(c):h===B&&t.add(c)}),s||u.set("offset",l/this.duration),n.push(u)});let r=[...e.values()],a=[...t.values()];if(s){let o=n[0],l=new Map(o);o.set("offset",0),l.set("offset",1),n=[o,l]}return at(this.element,n,r,a,this.duration,this.startTime,this.easing,!1)}},je=class extends Ee{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,s,n,r,a,o=!1){super(e,t,a.delay),this.keyframes=s,this.preStyleProps=n,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=s+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let u=new Map(e[0]);u.set("offset",wt(o)),r.push(u);let h=e.length-1;for(let c=1;c<=h;c++){let _=new Map(e[c]),y=_.get("offset"),d=t+y*s;_.set("offset",wt(d/a)),r.push(_)}s=a,t=0,n="",e=r}return at(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}};function wt(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function Zs(i,e){let t=new Map,s;return i.forEach(n=>{if(n==="*"){s??=e.keys();for(let r of s)t.set(r,B)}else for(let[r,a]of n)t.set(r,a)}),t}function bt(i,e,t,s,n,r,a,o,l,u,h,c,_){return{type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:s,toStyles:a,timelines:o,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:c,errors:_}}var De={},Te=class{_triggerName;ast;_stateStyles;constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,n){return Js(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,r,a,o,l,u,h){let c=[],_=this.ast.options&&this.ast.options.params||De,y=o&&o.params||De,d=this.buildStyles(s,y,c),g=l&&l.params||De,v=this.buildStyles(n,g,c),b=new Set,A=new Map,C=new Map,N=n==="void",Z={params:Bt(g,_),delay:this.ast.options?.delay},K=h?[]:ot(e,t,this.ast.animation,r,a,d,v,Z,u,c),k=0;return K.forEach(D=>{k=Math.max(D.duration+D.delay,k)}),c.length?bt(t,this._triggerName,s,n,N,d,v,[],[],A,C,k,c):(K.forEach(D=>{let j=D.element,J=L(A,j,new Set);D.preStyleProps.forEach(W=>J.add(W));let lt=L(C,j,new Set);D.postStyleProps.forEach(W=>lt.add(W)),j!==t&&b.add(j)}),bt(t,this._triggerName,s,n,N,d,v,K,[...b.values()],A,C,k))}};function Js(i,e,t,s,n){return i.some(r=>r(e,t,s,n))}function Bt(i,e){let t=le({},e);return Object.entries(i).forEach(([s,n])=>{n!=null&&(t[s]=n)}),t}var We=class{styles;defaultParams;normalizer;constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,n=Bt(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=ie(a,n,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),s.set(o,a)})}),s}};function xs(i,e,t){return new Ge(i,e,t)}var Ge=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new We(n.style,r,s))}),At(this.states,"true","1"),At(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new Te(e,n,this.states))}),this.fallbackTransition=en(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find(a=>a.match(e,t,s,n))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function en(i,e,t){let s=[(a,o)=>!0],n={type:E.Sequence,steps:[],options:null},r={type:E.Transition,animation:n,matchers:s,options:null,queryCount:0,depCount:0};return new Te(i,r,e)}function At(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var tn=new te,He=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s}register(e,t){let s=[],n=[],r=rt(this._driver,t,s,n);if(s.length)throw ms(s);this._animations.set(e,r)}_buildPlayer(e,t,s){let n=e.element,r=Ot(this._normalizer,e.keyframes,t,s);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let n=[],r=this._animations.get(e),a,o=new Map;if(r?(a=ot(this._driver,t,r,st,pe,new Map,new Map,s,tn,n),a.forEach(h=>{let c=L(o,h.element,new Map);h.postStyleProps.forEach(_=>c.set(_,null))})):(n.push(ps()),a=[]),n.length)throw gs(n);o.forEach((h,c)=>{h.forEach((_,y)=>{h.set(y,this._driver.computeStyle(c,y,B))})});let l=a.map(h=>{let c=o.get(h.element);return this._buildPlayer(h,new Map,c)}),u=U(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw ys(e);return t}listen(e,t,s,n){let r=et(t,"","","");return xe(this._getPlayer(e),s,r,n),()=>{}}command(e,t,s,n){if(s=="register"){this.register(e,n[0]);return}if(s=="create"){let a=n[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},Pt="ng-animate-queued",sn=".ng-animate-queued",Re="ng-animate-disabled",nn=".ng-animate-disabled",rn="ng-star-inserted",an=".ng-star-inserted",on=[],Qt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ln={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},z="__ng_removed",re=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=cn(n),s){let r=e,{value:a}=r,o=ft(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(n=>{s[n]==null&&(s[n]=t[n])})}}},ne="void",Oe=new re(ne),Ye=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.has(t))throw _s(s,t);if(s==null||s.length==0)throw Ss(t);if(!hn(s))throw Es(s,t);let r=L(this._elementListeners,e,[]),a={name:t,phase:s,callback:n};r.push(a);let o=L(this._engine.statesByElement,e,new Map);return o.has(t)||(I(e,ce),I(e,ce+"-"+t),o.set(t,Oe)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Ts(e);return t}trigger(e,t,s,n=!0){let r=this._getTrigger(t),a=new ae(this.id,t,e),o=this._engine.statesByElement.get(e);o||(I(e,ce),I(e,ce+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),u=new re(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),o.set(t,u),l||(l=Oe),!(u.value===ne)&&l.value===u.value){if(!mn(l.params,u.params)){let g=[],v=r.matchStyles(l.value,l.params,g),b=r.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{X(e,v),Q(e,b)})}return}let _=L(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,u.value,e,u.params),d=!1;if(!y){if(!n)return;y=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:u,player:a,isFallbackTransition:d}),d||(I(e,Pt),a.onStart(()=>{ee(e,Pt)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let v=this._engine.playersByElement.get(e);if(v){let b=v.indexOf(a);b>=0&&v.splice(b,1)}}),this.players.push(a),_.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,ge,!0);s.forEach(n=>{if(n[z])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(a=>a.triggerLeaveAnimation(n,t,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,t,s,n){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let h=this.trigger(e,u,ne,n);h&&o.push(h)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),s&&U(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let n=new Set;t.forEach(r=>{let a=r.name;if(n.has(a))return;n.add(a);let l=this._triggers.get(a).fallbackTransition,u=s.get(a)||Oe,h=new re(ne),c=new ae(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:u,toState:h,player:c,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)n=!0;else{let a=e;for(;a=a.parentNode;)if(s.statesByElement.get(a)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[z];(!r||r===Qt)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let n=s.player;if(n.destroyed)return;let r=s.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==s.triggerName){let l=et(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,xe(s.player,o.phase,l,o.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):t.push(s)}),this._queue=[],t.sort((s,n)=>{let r=s.transition.ast.depCount,a=n.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(s.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Xe=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Ye(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,n=this.namespacesByHostElement;if(s.length-1>=0){let a=!1,o=this.driver.getParentElement(t);for(;o;){let l=n.get(o);if(l){let u=s.indexOf(l);s.splice(u+1,0,e),a=!0;break}o=this.driver.getParentElement(o)}a||s.unshift(e)}else s.push(e);return n.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let n=this._namespaceList.indexOf(s);n>=0&&this._namespaceList.splice(n,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let n of s.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,n){if(de(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!de(t))return;let r=t[z];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,s)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Re)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,Re))}removeNode(e,t,s){if(de(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,n,r){this.collectedLeaveElements.push(t),t[z]={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,n,r){return de(t)?this._fetchNamespace(e).listen(t,s,n,r):()=>{}}_buildInstruction(e,t,s,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ge,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,ze,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return U(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[z];if(t&&t.setForRemoval){if(e[z]=Qt,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Re)&&this.markElementAsDisabled(e,!1),this.driver.query(e,nn,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,n)=>this._balanceNamespaceList(s,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;s<this.collectedEnterElements.length;s++){let n=this.collectedEnterElements[s];I(n,rn)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let s=[];try{t=this._flushAnimations(s,e)}finally{for(let n=0;n<s.length;n++)s[n]()}}else for(let s=0;s<this.collectedLeaveElements.length;s++){let n=this.collectedLeaveElements[s];this.processLeaveNode(n)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(s=>s()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?U(t).onDone(()=>{s.forEach(n=>n())}):s.forEach(n=>n())}}reportError(e){throw vs(e)}_flushAnimations(e,t){let s=new te,n=[],r=new Map,a=[],o=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(f=>{h.add(f);let m=this.driver.query(f,sn,!0);for(let p=0;p<m.length;p++)h.add(m[p])});let c=this.bodyNode,_=Array.from(this.statesByElement.keys()),y=Ct(_,this.collectedEnterElements),d=new Map,g=0;y.forEach((f,m)=>{let p=st+g++;d.set(m,p),f.forEach(T=>I(T,p))});let v=[],b=new Set,A=new Set;for(let f=0;f<this.collectedLeaveElements.length;f++){let m=this.collectedLeaveElements[f],p=m[z];p&&p.setForRemoval&&(v.push(m),b.add(m),p.hasAnimation?this.driver.query(m,an,!0).forEach(T=>b.add(T)):A.add(m))}let C=new Map,N=Ct(_,Array.from(b));N.forEach((f,m)=>{let p=pe+g++;C.set(m,p),f.forEach(T=>I(T,p))}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(T=>ee(T,p))}),N.forEach((f,m)=>{let p=C.get(m);f.forEach(T=>ee(T,p))}),v.forEach(f=>{this.processLeaveNode(f)})});let Z=[],K=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let T=p.player,P=p.element;if(Z.push(T),this.collectedEnterElements.length){let M=P[z];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(p.triggerName)){let G=M.previousTriggersValues.get(p.triggerName),F=this.statesByElement.get(p.element);if(F&&F.has(p.triggerName)){let oe=F.get(p.triggerName);oe.value=G,F.set(p.triggerName,oe)}}T.destroy();return}}let q=!c||!this.driver.containsElement(c,P),R=C.get(P),V=d.get(P),w=this._buildInstruction(p,s,V,R,q);if(w.errors&&w.errors.length){K.push(w);return}if(q){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),n.push(T);return}if(p.isFallbackTransition){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),n.push(T);return}let ht=[];w.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||ht.push(M)}),w.timelines=ht,s.append(P,w.timelines);let Ut={instruction:w,player:T,element:P};a.push(Ut),w.queriedElements.forEach(M=>L(o,M,[]).push(T)),w.preStyleProps.forEach((M,G)=>{if(M.size){let F=l.get(G);F||l.set(G,F=new Set),M.forEach((oe,Pe)=>F.add(Pe))}}),w.postStyleProps.forEach((M,G)=>{let F=u.get(G);F||u.set(G,F=new Set),M.forEach((oe,Pe)=>F.add(Pe))})});if(K.length){let f=[];K.forEach(m=>{f.push(ws(m.triggerName,m.errors))}),Z.forEach(m=>m.destroy()),this.reportError(f)}let k=new Map,D=new Map;a.forEach(f=>{let m=f.element;s.has(m)&&(D.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,k))}),n.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(T=>{L(k,m,[]).push(T),T.destroy()})});let j=v.filter(f=>kt(f,l,u)),J=new Map;Mt(J,this.driver,A,u,B).forEach(f=>{kt(f,l,u)&&j.push(f)});let W=new Map;y.forEach((f,m)=>{Mt(W,this.driver,new Set(f),l,ue)}),j.forEach(f=>{let m=J.get(f),p=W.get(f);J.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Ae=[],ut=[],ct={};a.forEach(f=>{let{element:m,player:p,instruction:T}=f;if(s.has(m)){if(h.has(m)){p.onDestroy(()=>Q(m,T.toStyles)),p.disabled=!0,p.overrideTotalTime(T.totalTime),n.push(p);return}let P=ct;if(D.size>1){let R=m,V=[];for(;R=R.parentNode;){let w=D.get(R);if(w){P=w;break}V.push(R)}V.forEach(w=>D.set(w,P))}let q=this._buildAnimation(p.namespaceId,T,k,r,W,J);if(p.setRealPlayer(q),P===ct)Ae.push(p);else{let R=this.playersByElement.get(P);R&&R.length&&(p.parentPlayer=U(R)),n.push(p)}}else X(m,T.fromStyles),p.onDestroy(()=>Q(m,T.toStyles)),ut.push(p),h.has(m)&&n.push(p)}),ut.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=U(m);f.setRealPlayer(p)}}),n.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f<v.length;f++){let m=v[f],p=m[z];if(ee(m,pe),p&&p.hasAnimation)continue;let T=[];if(o.size){let q=o.get(m);q&&q.length&&T.push(...q);let R=this.driver.query(m,ze,!0);for(let V=0;V<R.length;V++){let w=o.get(R[V]);w&&w.length&&T.push(...w)}}let P=T.filter(q=>!q.destroyed);P.length?fn(this,m,P):this.processLeaveNode(m)}return v.length=0,Ae.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Ae}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,n,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==ne;o.forEach(u=>{u.queued||!l&&u.triggerName!=n||a.push(u)})}}return(s||n)&&(a=a.filter(o=>!(s&&s!=o.namespaceId||n&&n!=o.triggerName))),a}_beforeAnimationBuild(e,t,s){let n=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let u=l.element,h=u!==r,c=L(s,u,[]);this._getPreviousPlayers(u,h,a,o,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),c.push(y)})}X(r,t.fromStyles)}_buildAnimation(e,t,s,n,r,a){let o=t.triggerName,l=t.element,u=[],h=new Set,c=new Set,_=t.timelines.map(d=>{let g=d.element;h.add(g);let v=g[z];if(v&&v.removedBeforeQueried)return new x(d.duration,d.delay);let b=g!==l,A=dn((s.get(g)||on).map(k=>k.getRealPlayer())).filter(k=>{let D=k;return D.element?D.element===g:!1}),C=r.get(g),N=a.get(g),Z=Ot(this._normalizer,d.keyframes,C,N),K=this._buildPlayer(d,Z,A);if(d.subTimeline&&n&&c.add(g),b){let k=new ae(e,o,g);k.setRealPlayer(K),u.push(k)}return K});u.forEach(d=>{L(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>un(this.playersByQueriedElement,d.element,d))}),h.forEach(d=>I(d,St));let y=U(_);return y.onDestroy(()=>{h.forEach(d=>ee(d,St)),Q(l,t.toStyles)}),c.forEach(d=>{L(n,d,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new x(e.duration,e.delay)}},ae=class{namespaceId;triggerName;element;_player=new x;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(n=>xe(e,s,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){L(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function un(i,e,t){let s=i.get(e);if(s){if(s.length){let n=s.indexOf(t);s.splice(n,1)}s.length==0&&i.delete(e)}return s}function cn(i){return i??null}function de(i){return i&&i.nodeType===1}function hn(i){return i=="start"||i=="done"}function Nt(i,e){let t=i.style.display;return i.style.display=e??"none",t}function Mt(i,e,t,s,n){let r=[];t.forEach(l=>r.push(Nt(l)));let a=[];s.forEach((l,u)=>{let h=new Map;l.forEach(c=>{let _=e.computeStyle(u,c,n);h.set(c,_),(!_||_.length==0)&&(u[z]=ln,a.push(u))}),i.set(u,h)});let o=0;return t.forEach(l=>Nt(l,r[o++])),a}function Ct(i,e){let t=new Map;if(i.forEach(o=>t.set(o,[])),e.length==0)return t;let s=1,n=new Set(e),r=new Map;function a(o){if(!o)return s;let l=r.get(o);if(l)return l;let u=o.parentNode;return t.has(u)?l=u:n.has(u)?l=s:l=a(u),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==s&&t.get(l).push(o)}),t}function I(i,e){i.classList?.add(e)}function ee(i,e){i.classList?.remove(e)}function fn(i,e,t){U(t).onDone(()=>i.processLeaveNode(e))}function dn(i){let e=[];return $t(i,e),e}function $t(i,e){for(let t=0;t<i.length;t++){let s=i[t];s instanceof Me?$t(s.players,e):e.push(s)}}function mn(i,e){let t=Object.keys(i),s=Object.keys(e);if(t.length!=s.length)return!1;for(let n=0;n<t.length;n++){let r=t[n];if(!e.hasOwnProperty(r)||i[r]!==e[r])return!1}return!0}function kt(i,e,t){let s=t.get(i);if(!s)return!1;let n=e.get(i);return n?s.forEach(r=>n.add(r)):e.set(i,s),t.delete(i),!0}var ve=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,s){this._driver=t,this._normalizer=s,this._transitionEngine=new Xe(e.body,t,s),this._timelineEngine=new He(e.body,t,s),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r)}registerTrigger(e,t,s,n,r){let a=e+"-"+n,o=this._triggerCache[a];if(!o){let l=[],u=[],h=rt(this._driver,r,l,u);if(l.length)throw fs(n,l);o=xs(n,h,this._normalizer),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,n,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,n){if(s.charAt(0)=="@"){let[r,a]=gt(s),o=n;this._timelineEngine.command(r,t,a,o)}else this._transitionEngine.trigger(e,t,s,n)}listen(e,t,s,n,r){if(s.charAt(0)=="@"){let[a,o]=gt(s);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,s,n,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function pn(i,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Le(e[0]),e.length>1&&(s=Le(e[e.length-1]))):e instanceof Map&&(t=Le(e)),t||s?new gn(i,t,s):null}var gn=(()=>{class i{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,s,n){this._element=t,this._startStyles=s,this._endStyles=n;let r=i.initialStylesByElement.get(t);r||i.initialStylesByElement.set(t,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(X(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}}return i})();function Le(i){let e=null;return i.forEach((t,s)=>{yn(s)&&(e=e||new Map,e.set(s,t))}),e}function yn(i){return i==="display"||i==="position"}var we=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,n)=>{n!=="offset"&&e.set(n,this._finished?s:it(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Ze=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Lt(e,t)}getParentElement(e){return tt(e)}query(e,t,s){return Ft(e,t,s)}computeStyle(e,t,s){return it(e,t)}animate(e,t,s,n,r,a=[]){let o=n==0?"both":"forwards",l={duration:s,delay:n,fill:o};r&&(l.easing=r);let u=new Map,h=a.filter(y=>y instanceof we);Fs(s,n)&&h.forEach(y=>{y.currentSnapshot.forEach((d,g)=>u.set(g,d))});let c=Rs(t).map(y=>new Map(y));c=Is(e,c,u);let _=pn(e,c);return new we(e,c,l,_)}};function Pn(i,e){return i==="noop"?new ve(e,new It,new Ie):new ve(e,new Ze,new Be)}var Dt=class{_driver;_animationAst;constructor(e,t){this._driver=e;let s=[],r=rt(e,t,s,[]);if(s.length)throw cs(s);this._animationAst=r}buildTimelines(e,t,s,n,r){let a=Array.isArray(t)?Et(t):t,o=Array.isArray(s)?Et(s):s,l=[];r=r||new te;let u=ot(this._driver,e,this._animationAst,st,pe,a,o,n,r,l);if(l.length)throw hs(l);return u}},me="@",Vt="@.disabled",be=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,s,n){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=n}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,n=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,s){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,n){this.delegate.setAttribute(e,t,s,n)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,n){this.delegate.setStyle(e,t,s,n)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==me&&t==Vt?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s,n){return this.delegate.listen(e,t,s,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Je=class extends be{factory;constructor(e,t,s,n,r){super(t,s,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==me?t.charAt(1)=="."&&t==Vt?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s,n){if(t.charAt(0)==me){let r=_n(e),a=t.slice(1),o="";return a.charAt(0)!=me&&([a,o]=Sn(a)),this.engine.listen(this.namespaceId,r,a,o,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,s,l)})}return this.delegate.listen(e,t,s,n)}};function _n(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function Sn(i){let e=i.indexOf("."),t=i.substring(0,e),s=i.slice(e+1);return[t,s]}var Rt=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,t.onRemovalComplete=(n,r)=>{r?.removeChild(null,n)}}createRenderer(e,t){let s="",n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let u=this._rendererCache,h=u.get(n);if(!h){let c=()=>u.delete(n);h=new be(s,n,this.engine,c),u.set(n,h)}return h}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=u=>{Array.isArray(u)?u.forEach(o):this.engine.registerTrigger(r,a,e,u.name,u)};return t.data.animation.forEach(o),new Je(this,a,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(s));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[a,o]=r;a(o)}),this._animationCallbacksBuffer=[]})}),n.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};export{_t as AnimationDriver,It as NoopAnimationDriver,Dt as \u0275Animation,ve as \u0275AnimationEngine,Je as \u0275AnimationRenderer,Rt as \u0275AnimationRendererFactory,Fe as \u0275AnimationStyleNormalizer,be as \u0275BaseAnimationRenderer,Ie as \u0275NoopAnimationStyleNormalizer,Ze as \u0275WebAnimationsDriver,we as \u0275WebAnimationsPlayer,Be as \u0275WebAnimationsStyleNormalizer,Fs as \u0275allowPreviousPlayerStylesMerge,An as \u0275camelCaseToDashCase,Lt as \u0275containsElement,Pn as \u0275createEngine,tt as \u0275getParentElement,Ft as \u0275invokeQuery,Rs as \u0275normalizeKeyframes,Ns as \u0275validateStyleProperty,bn as \u0275validateWebAnimatableStyleProperty};
@@ -0,0 +1 @@
1
+ import{a as ee,b as te}from"./chunk-52HZNWBM.js";import{a as X}from"./chunk-AKBPKNCH.js";import{a as Y,b as Z}from"./chunk-NQ24E7JY.js";import{f as I,j as O}from"./chunk-HG23WDL5.js";import"./chunk-EP22HTZC.js";import"./chunk-4ANSU2AT.js";import"./chunk-TJSPXPO6.js";import{a as Q,b as W}from"./chunk-MNPBLC23.js";import{g as D}from"./chunk-EN5MVYJQ.js";import"./chunk-Z4SGDPGH.js";import"./chunk-FJ7O4K2Y.js";import{v as K}from"./chunk-PNAWRNGD.js";import{r as G,u as L}from"./chunk-FVXLQNAC.js";import{a as $,d as q}from"./chunk-T3ZCO6EC.js";import"./chunk-S35HUXPS.js";import{a as k,c as z}from"./chunk-25PFXJAK.js";import{n as P,s as U,t as R}from"./chunk-GRTIJ77T.js";import{Bb as u,Fc as f,Gc as h,Ha as _,Ic as s,J as V,Kb as g,Tc as M,Ub as n,Vb as a,Vc as H,Wb as A,Z as T,_b as v,c as N,ca as j,dc as w,ec as m,gb as r,ia as d,mc as o,nc as l,qa as b,qc as F,ra as S,ub as E,vc as y}from"./chunk-RSHFIZV3.js";import{a as C,b as x}from"./chunk-C6Q5SG76.js";var B=(()=>{class t{constructor(){this.httpService=d(q)}getGenerateCoa(e){let c={params:new k().set("PageNumber",e.PageNumber).set("RowCount",e.RowCount)};return this.httpService.get(void 0,"api/Tools/GetListCOA",c)}updateCOABalance(e={}){return this.httpService.put(void 0,"api/Tools/UpdateCOABalance",void 0,e)}getUnbalanceJournal(e){let i={params:e};return this.httpService.get(void 0,"api/Tools/GetListCOA",i)}updateUnbalanceJournal(){return this.httpService.put(void 0,"api/Tools/UpdateCOABalance",{})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var le=()=>({"min-width":"50rem"});function pe(t,p){if(t&1){let e=v();n(0,"button",6),w("click",function(){b(e);let c=m();return S(c.updateCoaBalance())}),o(1," Update "),a()}}function ce(t,p){t&1&&(n(0,"tr")(1,"th"),o(2,"Code"),a(),n(3,"th"),o(4,"Name"),a(),n(5,"th"),o(6,"Outlet"),a(),n(7,"th"),o(8,"COA Balance"),a(),n(9,"th"),o(10,"Correct Balance"),a()())}function me(t,p){if(t&1&&(n(0,"tr")(1,"td"),o(2),a(),n(3,"td"),o(4),a(),n(5,"td"),o(6),a(),n(7,"td"),o(8),f(9,"number"),a(),n(10,"td"),o(11),f(12,"number"),a()()),t&2){let e=p.$implicit;r(2),l(e.Code),r(2),l(e.Name),r(2),l(e.OutletName),r(2),l(h(9,5,e.Balance)),r(3),l(h(12,7,e.CorrectBalance))}}function se(t,p){if(t&1&&(n(0,"div",9)(1,"p"),o(2),a()()),t&2){let e=m(3);r(2),F(" Showing ",e.startIndex()," to ",e.endIndex()," of ",e.coaData().count," entries ")}}function de(t,p){if(t&1){let e=v();n(0,"p-card")(1,"p-table",8),w("onPage",function(c){b(e);let J=m(2);return S(J.onPageChange(c))}),u(2,ce,11,0,"ng-template",null,2,s)(4,me,13,9,"ng-template",null,3,s)(6,se,3,3,"ng-template",null,4,s),a()()}if(t&2){let e=m(2);r(),g("paginator",!0)("lazy",!0)("totalRecords",e.coaData().count)("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("rows",e.pagination().RowCount)("value",e.coaData().data)("tableStyle",y(8,le))}}function ue(t,p){if(t&1&&u(0,de,8,9,"p-card",7),t&2){let e=m();g("ngIf",e.coaData())}}var ae=(()=>{class t{constructor(){this.pagination=_({PageNumber:1,RowCount:20}),this.coaService=d(B),this.toastrService=d($),this.coaData=_(null),this.fetchCoaData=Y(N(V(e=>this.coaService.getGenerateCoa(e).pipe(Z({next:i=>this.coaData.set(i),error:i=>console.error(i)}))))),this.startIndex=M(()=>this.pagination()?(this.pagination().PageNumber-1)*this.pagination().RowCount+1:0),this.endIndex=M(()=>this.pagination()?Math.min(this.pagination().PageNumber*this.pagination().RowCount,this.coaData()?.count||0):0)}ngOnInit(){this.fetchCoaData(this.pagination)}onPageChange(e){this.pagination.update(i=>x(C({},i),{pageNumber:Math.floor(e.first/e.rows)+1}))}updateCoaBalance(){this.coaService.updateCOABalance({observe:"response"}).pipe(T(e=>{e instanceof z&&this.toastrService.success(e.body?.message,"Success")})).subscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-tools-update-coa"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["pageTitle","Generate COA"],["type","button",1,"btn","btn-primary","rounded",3,"click"],[4,"ngIf"],[3,"onPage","paginator","lazy","totalRecords","scrollable","scrollHeight","rows","value","tableStyle"],[1,"d-flex"]],template:function(i,c){i&1&&(n(0,"app-main-panel",5),u(1,pe,2,0,"ng-template",null,0,s)(3,ue,1,1,"ng-template",null,1,s),a())},dependencies:[D,O,I,W,Q,R,P,U],styles:["[_nghost-%COMP%]{display:block} .p-card{height:100%} .p-card .p-card-body{height:inherit} .p-card .p-card-body .p-card-content{height:inherit}"],changeDetection:0})}}return t})();var ge=()=>[20,50,100];function _e(t,p){t&1&&(n(0,"tr")(1,"th"),o(2,"Code"),a(),n(3,"th"),o(4,"Name"),a(),n(5,"th"),o(6,"Outlet"),a(),n(7,"th"),o(8,"Same Balance"),a(),n(9,"th"),o(10,"Balance"),a(),n(11,"th"),o(12,"Correct Balance"),a()())}function fe(t,p){if(t&1&&(n(0,"tr")(1,"td"),o(2),a(),n(3,"td"),o(4),a(),n(5,"td"),o(6),a(),n(7,"td"),A(8,"p-toggleswitch",6),a(),n(9,"td"),o(10),f(11,"number"),a(),n(12,"td"),o(13),f(14,"number"),a()()),t&2){let e=p.$implicit;r(2),l(e.Code),r(2),l(e.Name),r(2),l(e.OutletName),r(2),g("trueValue",e.IsSameBalance),r(2),l(h(11,6,e.Balance)),r(3),l(h(14,8,e.CorrectBalance))}}function he(t,p){if(t&1){let e=v();n(0,"p-table",5),w("onPage",function(c){b(e);let J=m(2);return S(J.onPageChange(c))}),u(1,_e,13,0,"ng-template",null,1,s)(3,fe,15,10,"ng-template",null,2,s),a()}if(t&2){let e=m(2);g("value",e.unbalanceJournal().data)("scrollable",!0)("scrollHeight","calc(100vh - 150px)")("paginator",!0)("rows",+e.pageData().RowCount)("totalRecords",e.unbalanceJournal().count)("rowsPerPageOptions",y(7,ge))}}function Ce(t,p){if(t&1&&u(0,he,5,8,"p-table",4),t&2){let e=m();g("ngIf",e.unbalanceJournal())}}var oe=(()=>{class t{constructor(){this.toolsService=d(B),this.unbalanceJournal=_(null),this.fb=d(G),this.pageData=_({PageNumber:1,RowCount:20}),H(()=>{let e=this.pageData();e.PageNumber&&e.RowCount&&this.fetchUnbalanceJournal()}),this.formFilter=this.fb.group({PageNumber:[1],RowCount:[20]})}loadUnbalanceJournal(e){console.log("loadUnbalanceJournal",e);let i=(e.first??0)/(e.rows??20)+1,c=e.rows??20;this.pageData.set(x(C({},this.pageData()),{PageNumber:i,RowCount:c}))}fetchUnbalanceJournal(){this.toolsService.getUnbalanceJournal(this.pageData()).pipe(X("response"),T(e=>this.unbalanceJournal.set(e))).subscribe()}onPageChange(e){console.log("Page changed to: ",e),this.pageData.set(x(C({},this.pageData()),{PageNumber:e.first/e.rows+1,RowCount:e.rows}))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-unbalance-journal"]],decls:3,vars:0,consts:[["content",""],["header",""],["body",""],["pageTitle","Unbalance Journal"],["paginatorStyleClass","d-flex justify-content-end","lazy","",3,"value","scrollable","scrollHeight","paginator","rows","totalRecords","rowsPerPageOptions","onPage",4,"ngIf"],["paginatorStyleClass","d-flex justify-content-end","lazy","",3,"onPage","value","scrollable","scrollHeight","paginator","rows","totalRecords","rowsPerPageOptions"],["readonly","",3,"trueValue"]],template:function(i,c){i&1&&(n(0,"app-main-panel",3),u(1,Ce,1,1,"ng-template",null,0,s),a())},dependencies:[D,O,I,te,ee,K,R,P,U,L],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var at=[{path:"",redirectTo:"generate-coa",pathMatch:"full"},{path:"generate-coa",component:ae},{path:"unbalance-journal",component:oe}];export{at as TOOLS_ROUTES};
@@ -1 +1 @@
1
- import{n as u}from"./chunk-2LKTSMUI.js";import{ya as f}from"./chunk-3ROVFYLI.js";import{$b as o,Cb as c,Nb as C,Ob as m,Sb as h,Zb as r,_b as l,kb as a,wa as d,xa as s,yb as p}from"./chunk-PQTHPF23.js";var L=(()=>{class i extends u{pathId;ngOnInit(){this.pathId="url(#"+f()+")"}static \u0275fac=(()=>{let t;return function(e){return(t||(t=s(i)))(e||i)}})();static \u0275cmp=p({type:i,selectors:[["TimesCircleIcon"]],features:[c],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","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,e){n&1&&(d(),r(0,"svg",0)(1,"g"),o(2,"path",1),l(),r(3,"defs")(4,"clipPath",2),o(5,"rect",3),l()()()),n&2&&(h(e.getClassNames()),C("aria-label",e.ariaLabel)("aria-hidden",e.ariaHidden)("role",e.role),a(),C("clip-path",e.pathId),a(3),m("id",e.pathId))},encapsulation:2})}return i})();export{L as a};
1
+ import{o as u}from"./chunk-PNAWRNGD.js";import{ya as f}from"./chunk-FVXLQNAC.js";import{Jb as C,Kb as m,Ob as h,Ub as r,Vb as l,Wb as o,gb as a,sa as d,ta as s,ub as p,yb as c}from"./chunk-RSHFIZV3.js";var L=(()=>{class i extends u{pathId;ngOnInit(){this.pathId="url(#"+f()+")"}static \u0275fac=(()=>{let t;return function(e){return(t||(t=s(i)))(e||i)}})();static \u0275cmp=p({type:i,selectors:[["TimesCircleIcon"]],features:[c],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","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,e){n&1&&(d(),r(0,"svg",0)(1,"g"),o(2,"path",1),l(),r(3,"defs")(4,"clipPath",2),o(5,"rect",3),l()()()),n&2&&(h(e.getClassNames()),C("aria-label",e.ariaLabel)("aria-hidden",e.ariaHidden)("role",e.role),a(),C("clip-path",e.pathId),a(3),m("id",e.pathId))},encapsulation:2})}return i})();export{L as a};
@@ -0,0 +1,141 @@
1
+ import{b as ft,c as ht}from"./chunk-EP22HTZC.js";import{i as $,w as J,x as vt}from"./chunk-PNAWRNGD.js";import{$ as F,G as lt,Ga as pt,Ha as G,N as ct,O as bt,P as L,Pa as dt,X as q,ea as W,pa as U,ya as ut}from"./chunk-FVXLQNAC.js";import{k as st,p as rt,t as k,v as z}from"./chunk-GRTIJ77T.js";import{Bb as u,Da as d,Ea as Z,Ha as P,Jb as r,Kb as M,Mb as _,Pb as y,Rc as C,Sc as at,Tc as s,Ub as D,Vb as N,Vc as ot,Wb as S,Zb as j,_b as A,ba as B,ca as X,da as Y,dc as I,ec as f,fc as T,gb as v,gc as w,hc as Q,ia as p,ic as x,jc as l,kc as c,pb as R,qa as O,ra as V,ta as h,ub as g,uc as nt,vb as tt,wc as it,yb as m,zb as et}from"./chunk-RSHFIZV3.js";var _t=["previcon"],yt=["nexticon"],Tt=["content"],wt=["prevButton"],xt=["nextButton"],Ct=["inkbar"],kt=["tabs"],E=["*"],$t=e=>({"p-tablist-viewport":e});function Bt(e,b){e&1&&j(0)}function Dt(e,b){if(e&1&&u(0,Bt,1,0,"ng-container",11),e&2){let t=f(2);M("ngTemplateOutlet",t.prevIconTemplate||t._prevIconTemplate)}}function It(e,b){e&1&&S(0,"ChevronLeftIcon")}function Lt(e,b){if(e&1){let t=A();D(0,"button",10,3),I("click",function(){O(t);let n=f();return V(n.onPrevButtonClick())}),u(2,Dt,1,1,"ng-container")(3,It,1,0,"ChevronLeftIcon"),N()}if(e&2){let t=f();r("aria-label",t.prevButtonAriaLabel)("tabindex",t.tabindex())("data-pc-group-section","navigator"),v(2),y(t.prevIconTemplate||t._prevIconTemplate?2:3)}}function Ft(e,b){e&1&&j(0)}function Et(e,b){if(e&1&&u(0,Ft,1,0,"ng-container",11),e&2){let t=f(2);M("ngTemplateOutlet",t.nextIconTemplate||t._nextIconTemplate)}}function Ot(e,b){e&1&&S(0,"ChevronRightIcon")}function Vt(e,b){if(e&1){let t=A();D(0,"button",12,4),I("click",function(){O(t);let n=f();return V(n.onNextButtonClick())}),u(2,Et,1,1,"ng-container")(3,Ot,1,0,"ChevronRightIcon"),N()}if(e&2){let t=f();r("aria-label",t.nextButtonAriaLabel)("tabindex",t.tabindex())("data-pc-group-section","navigator"),v(2),y(t.nextIconTemplate||t._nextIconTemplate?2:3)}}function Pt(e,b){e&1&&w(0)}var Rt=({dt:e})=>`
2
+ .p-tabs {
3
+ display: flex;
4
+ flex-direction: column;
5
+ }
6
+
7
+ .p-tablist {
8
+ display: flex;
9
+ position: relative;
10
+ }
11
+
12
+ .p-tabs-scrollable > .p-tablist {
13
+ overflow: hidden;
14
+ }
15
+
16
+ .p-tablist-viewport {
17
+ overflow-x: auto;
18
+ overflow-y: hidden;
19
+ scroll-behavior: smooth;
20
+ scrollbar-width: none;
21
+ overscroll-behavior: contain auto;
22
+ }
23
+
24
+ .p-tablist-viewport::-webkit-scrollbar {
25
+ display: none;
26
+ }
27
+
28
+ .p-tablist-tab-list {
29
+ position: relative;
30
+ display: flex;
31
+ background: ${e("tabs.tablist.background")};
32
+ border-style: solid;
33
+ border-color: ${e("tabs.tablist.border.color")};
34
+ border-width: ${e("tabs.tablist.border.width")};
35
+ }
36
+
37
+ .p-tablist-content {
38
+ flex-grow: 1;
39
+ }
40
+
41
+ .p-tablist-nav-button {
42
+ all: unset;
43
+ position: absolute !important;
44
+ flex-shrink: 0;
45
+ top: 0;
46
+ z-index: 2;
47
+ height: 100%;
48
+ display: flex;
49
+ align-items: center;
50
+ justify-content: center;
51
+ background: ${e("tabs.nav.button.background")};
52
+ color: ${e("tabs.nav.button.color")};
53
+ width: ${e("tabs.nav.button.width")};
54
+ transition: color ${e("tabs.transition.duration")}, outline-color ${e("tabs.transition.duration")}, box-shadow ${e("tabs.transition.duration")};
55
+ box-shadow: ${e("tabs.nav.button.shadow")};
56
+ outline-color: transparent;
57
+ cursor: pointer;
58
+ }
59
+
60
+ .p-tablist-nav-button:focus-visible {
61
+ z-index: 1;
62
+ box-shadow: ${e("tabs.nav.button.focus.ring.shadow")};
63
+ outline: ${e("tabs.nav.button.focus.ring.width")} ${e("tabs.nav.button.focus.ring.style")} ${e("tabs.nav.button.focus.ring.color")};
64
+ outline-offset: ${e("tabs.nav.button.focus.ring.offset")};
65
+ }
66
+
67
+ .p-tablist-nav-button:hover {
68
+ color: ${e("tabs.nav.button.hover.color")};
69
+ }
70
+
71
+ .p-tablist-prev-button {
72
+ left: 0;
73
+ }
74
+
75
+ .p-tablist-next-button {
76
+ right: 0;
77
+ }
78
+
79
+ .p-tab {
80
+ display: flex;
81
+ align-items: center;
82
+ flex-shrink: 0;
83
+ cursor: pointer;
84
+ user-select: none;
85
+ position: relative;
86
+ border-style: solid;
87
+ white-space: nowrap;
88
+ gap: ${e("tabs.tab.gap")};
89
+ background: ${e("tabs.tab.background")};
90
+ border-width: ${e("tabs.tab.border.width")};
91
+ border-color: ${e("tabs.tab.border.color")};
92
+ color: ${e("tabs.tab.color")};
93
+ padding: ${e("tabs.tab.padding")};
94
+ font-weight: ${e("tabs.tab.font.weight")};
95
+ transition: background ${e("tabs.transition.duration")}, border-color ${e("tabs.transition.duration")}, color ${e("tabs.transition.duration")}, outline-color ${e("tabs.transition.duration")}, box-shadow ${e("tabs.transition.duration")};
96
+ margin: ${e("tabs.tab.margin")};
97
+ outline-color: transparent;
98
+ }
99
+
100
+ .p-tab:not(.p-disabled):focus-visible {
101
+ z-index: 1;
102
+ box-shadow: ${e("tabs.tab.focus.ring.shadow")};
103
+ outline: ${e("tabs.tab.focus.ring.width")} ${e("tabs.tab.focus.ring.style")} ${e("tabs.tab.focus.ring.color")};
104
+ outline-offset: ${e("tabs.tab.focus.ring.offset")};
105
+ }
106
+
107
+ .p-tab:not(.p-tab-active):not(.p-disabled):hover {
108
+ background: ${e("tabs.tab.hover.background")};
109
+ border-color: ${e("tabs.tab.hover.border.color")};
110
+ color: ${e("tabs.tab.hover.color")};
111
+ }
112
+
113
+ .p-tab-active {
114
+ background: ${e("tabs.tab.active.background")};
115
+ border-color: ${e("tabs.tab.active.border.color")};
116
+ color: ${e("tabs.tab.active.color")};
117
+ }
118
+
119
+ .p-tabpanels {
120
+ background: ${e("tabs.tabpanel.background")};
121
+ color: ${e("tabs.tabpanel.color")};
122
+ padding: ${e("tabs.tabpanel.padding")};
123
+ outline: 0 none;
124
+ }
125
+
126
+ .p-tabpanel:focus-visible {
127
+ box-shadow: ${e("tabs.tabpanel.focus.ring.shadow")};
128
+ outline: ${e("tabs.tabpanel.focus.ring.width")} ${e("tabs.tabpanel.focus.ring.style")} ${e("tabs.tabpanel.focus.ring.color")};
129
+ outline-offset: ${e("tabs.tabpanel.focus.ring.offset")};
130
+ }
131
+
132
+ .p-tablist-active-bar {
133
+ z-index: 1;
134
+ display: block;
135
+ position: absolute;
136
+ bottom: ${e("tabs.active.bar.bottom")};
137
+ height: ${e("tabs.active.bar.height")};
138
+ background: ${e("tabs.active.bar.background")};
139
+ transition: 250ms cubic-bezier(0.35, 0, 0.25, 1);
140
+ }
141
+ `,Mt={root:({props:e})=>["p-tabs p-component",{"p-tabs-scrollable":e.scrollable}]},gt=(()=>{class e extends dt{name="tabs";theme=Rt;classes=Mt;static \u0275fac=(()=>{let t;return function(n){return(t||(t=h(e)))(n||e)}})();static \u0275prov=X({token:e,factory:e.\u0275fac})}return e})();var mt=(()=>{class e extends ${prevIconTemplate;nextIconTemplate;templates;content;prevButton;nextButton;inkbar;tabs;pcTabs=p(B(()=>K));isPrevButtonEnabled=P(!1);isNextButtonEnabled=P(!1);resizeObserver;showNavigators=s(()=>this.pcTabs.showNavigators());tabindex=s(()=>this.pcTabs.tabindex());scrollable=s(()=>this.pcTabs.scrollable());constructor(){super(),ot(()=>{this.pcTabs.value(),z(this.platformId)&&setTimeout(()=>{this.updateInkBar()})})}get prevButtonAriaLabel(){return this.config.translation.aria.previous}get nextButtonAriaLabel(){return this.config.translation.aria.next}ngAfterViewInit(){super.ngAfterViewInit(),this.showNavigators()&&z(this.platformId)&&(this.updateButtonState(),this.bindResizeObserver())}_prevIconTemplate;_nextIconTemplate;ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"previcon":this._prevIconTemplate=t.template;break;case"nexticon":this._nextIconTemplate=t.template;break}})}ngOnDestroy(){this.unbindResizeObserver(),super.ngOnDestroy()}onScroll(t){this.showNavigators()&&this.updateButtonState(),t.preventDefault()}onPrevButtonClick(){let t=this.content.nativeElement,i=F(t),n=Math.abs(t.scrollLeft)-i,a=n<=0?0:n;t.scrollLeft=W(t)?-1*a:a}onNextButtonClick(){let t=this.content.nativeElement,i=F(t)-this.getVisibleButtonWidths(),n=t.scrollLeft+i,a=t.scrollWidth-i,o=n>=a?a:n;t.scrollLeft=W(t)?-1*o:o}updateButtonState(){let t=this.content?.nativeElement,i=this.el?.nativeElement,{scrollWidth:n,offsetWidth:a}=t,o=Math.abs(t.scrollLeft),H=F(t);this.isPrevButtonEnabled.set(o!==0),this.isNextButtonEnabled.set(i.offsetWidth>=a&&o!==n-H)}updateInkBar(){let t=this.content?.nativeElement,i=this.inkbar?.nativeElement,n=this.tabs?.nativeElement,a=ct(t,'[data-pc-name="tab"][data-p-active="true"]');i&&(i.style.width=lt(a)+"px",i.style.left=q(a).left-q(n).left+"px")}getVisibleButtonWidths(){let t=this.prevButton?.nativeElement,i=this.nextButton?.nativeElement;return[t,i].reduce((n,a)=>a?n+F(a):n,0)}bindResizeObserver(){this.resizeObserver=new ResizeObserver(()=>this.updateButtonState()),this.resizeObserver.observe(this.el.nativeElement)}unbindResizeObserver(){this.resizeObserver&&(this.resizeObserver.unobserve(this.el.nativeElement),this.resizeObserver=null)}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=g({type:e,selectors:[["p-tablist"]],contentQueries:function(i,n,a){if(i&1&&(Q(a,_t,4),Q(a,yt,4),Q(a,pt,4)),i&2){let o;l(o=c())&&(n.prevIconTemplate=o.first),l(o=c())&&(n.nextIconTemplate=o.first),l(o=c())&&(n.templates=o)}},viewQuery:function(i,n){if(i&1&&(x(Tt,5),x(wt,5),x(xt,5),x(Ct,5),x(kt,5)),i&2){let a;l(a=c())&&(n.content=a.first),l(a=c())&&(n.prevButton=a.first),l(a=c())&&(n.nextButton=a.first),l(a=c())&&(n.inkbar=a.first),l(a=c())&&(n.tabs=a.first)}},hostVars:5,hostBindings:function(i,n){i&2&&(r("data-pc-name","tablist"),_("p-tablist",!0)("p-component",!0))},features:[m],ngContentSelectors:E,decls:9,vars:6,consts:[["content",""],["tabs",""],["inkbar",""],["prevButton",""],["nextButton",""],["type","button","pRipple","",1,"p-tablist-nav-button","p-tablist-prev-button"],[1,"p-tablist-content",3,"scroll","ngClass"],["role","tablist",1,"p-tablist-tab-list"],["role","presentation",1,"p-tablist-active-bar"],["type","button","pRipple","",1,"p-tablist-nav-button","p-tablist-next-button"],["type","button","pRipple","",1,"p-tablist-nav-button","p-tablist-prev-button",3,"click"],[4,"ngTemplateOutlet"],["type","button","pRipple","",1,"p-tablist-nav-button","p-tablist-next-button",3,"click"]],template:function(i,n){if(i&1){let a=A();T(),u(0,Lt,4,4,"button",5),D(1,"div",6,0),I("scroll",function(H){return O(a),V(n.onScroll(H))}),D(3,"div",7,1),w(5),S(6,"span",8,2),N()(),u(8,Vt,4,4,"button",9)}i&2&&(y(n.showNavigators()&&n.isPrevButtonEnabled()?0:-1),v(),M("ngClass",it(4,$t,n.scrollable())),v(5),r("data-pc-section","inkbar"),v(2),y(n.showNavigators()&&n.isNextButtonEnabled()?8:-1))},dependencies:[k,st,rt,ft,ht,vt,J,G],encapsulation:2,changeDetection:0})}return e})(),Nt=(()=>{class e extends ${value=R();disabled=d(!1,{transform:C});pcTabs=p(B(()=>K));pcTabList=p(B(()=>mt));el=p(Z);ripple=s(()=>this.config.ripple());id=s(()=>`${this.pcTabs.id()}_tab_${this.value()}`);ariaControls=s(()=>`${this.pcTabs.id()}_tabpanel_${this.value()}`);active=s(()=>U(this.pcTabs.value(),this.value()));tabindex=s(()=>this.active()?this.pcTabs.tabindex():-1);mutationObserver;onFocus(t){this.pcTabs.selectOnFocus()&&this.changeActiveValue()}onClick(t){this.changeActiveValue()}onKeyDown(t){switch(t.code){case"ArrowRight":this.onArrowRightKey(t);break;case"ArrowLeft":this.onArrowLeftKey(t);break;case"Home":this.onHomeKey(t);break;case"End":this.onEndKey(t);break;case"PageDown":this.onPageDownKey(t);break;case"PageUp":this.onPageUpKey(t);break;case"Enter":case"NumpadEnter":case"Space":this.onEnterKey(t);break;default:break}t.stopPropagation()}ngAfterViewInit(){super.ngAfterViewInit(),this.bindMutationObserver()}onArrowRightKey(t){let i=this.findNextTab(t.currentTarget);i?this.changeFocusedTab(t,i):this.onHomeKey(t),t.preventDefault()}onArrowLeftKey(t){let i=this.findPrevTab(t.currentTarget);i?this.changeFocusedTab(t,i):this.onEndKey(t),t.preventDefault()}onHomeKey(t){let i=this.findFirstTab();this.changeFocusedTab(t,i),t.preventDefault()}onEndKey(t){let i=this.findLastTab();this.changeFocusedTab(t,i),t.preventDefault()}onPageDownKey(t){this.scrollInView(this.findLastTab()),t.preventDefault()}onPageUpKey(t){this.scrollInView(this.findFirstTab()),t.preventDefault()}onEnterKey(t){this.changeActiveValue(),t.preventDefault()}findNextTab(t,i=!1){let n=i?t:t.nextElementSibling;return n?L(n,"data-p-disabled")||L(n,"data-pc-section")==="inkbar"?this.findNextTab(n):n:null}findPrevTab(t,i=!1){let n=i?t:t.previousElementSibling;return n?L(n,"data-p-disabled")||L(n,"data-pc-section")==="inkbar"?this.findPrevTab(n):n:null}findFirstTab(){return this.findNextTab(this.pcTabList?.tabs?.nativeElement?.firstElementChild,!0)}findLastTab(){return this.findPrevTab(this.pcTabList?.tabs?.nativeElement?.lastElementChild,!0)}changeActiveValue(){this.pcTabs.updateValue(this.value())}changeFocusedTab(t,i){bt(i),this.scrollInView(i)}scrollInView(t){t?.scrollIntoView?.({block:"nearest"})}bindMutationObserver(){z(this.platformId)&&(this.mutationObserver=new MutationObserver(t=>{t.forEach(()=>{this.active()&&this.pcTabList?.updateInkBar()})}),this.mutationObserver.observe(this.el.nativeElement,{childList:!0,characterData:!0,subtree:!0}))}unbindMutationObserver(){this.mutationObserver.disconnect()}ngOnDestroy(){this.mutationObserver&&this.unbindMutationObserver(),super.ngOnDestroy()}static \u0275fac=(()=>{let t;return function(n){return(t||(t=h(e)))(n||e)}})();static \u0275cmp=g({type:e,selectors:[["p-tab"]],hostVars:16,hostBindings:function(i,n){i&1&&I("focus",function(o){return n.onFocus(o)})("click",function(o){return n.onClick(o)})("keydown",function(o){return n.onKeyDown(o)}),i&2&&(r("data-pc-name","tab")("id",n.id())("aria-controls",n.ariaControls())("role","tab")("aria-selected",n.active())("data-p-disabled",n.disabled())("data-p-active",n.active())("tabindex",n.tabindex()),_("p-tab",!0)("p-tab-active",n.active())("p-disabled",n.disabled())("p-component",!0))},inputs:{value:[1,"value"],disabled:[1,"disabled"]},outputs:{value:"valueChange"},features:[et([J]),m],ngContentSelectors:E,decls:1,vars:0,template:function(i,n){i&1&&(T(),w(0))},dependencies:[k,G],encapsulation:2,changeDetection:0})}return e})(),St=(()=>{class e extends ${pcTabs=p(B(()=>K));value=R(void 0);id=s(()=>`${this.pcTabs.id()}_tabpanel_${this.value()}`);ariaLabelledby=s(()=>`${this.pcTabs.id()}_tab_${this.value()}`);active=s(()=>U(this.pcTabs.value(),this.value()));static \u0275fac=(()=>{let t;return function(n){return(t||(t=h(e)))(n||e)}})();static \u0275cmp=g({type:e,selectors:[["p-tabpanel"]],hostVars:9,hostBindings:function(i,n){i&2&&(r("data-pc-name","tabpanel")("id",n.id())("role","tabpanel")("aria-labelledby",n.ariaLabelledby())("data-p-active",n.active()),_("p-tabpanel",!0)("p-component",!0))},inputs:{value:[1,"value"]},outputs:{value:"valueChange"},features:[m],ngContentSelectors:E,decls:1,vars:1,template:function(i,n){i&1&&(T(),u(0,Pt,1,0)),i&2&&y(n.active()?0:-1)},dependencies:[k],encapsulation:2,changeDetection:0})}return e})(),At=(()=>{class e extends ${static \u0275fac=(()=>{let t;return function(n){return(t||(t=h(e)))(n||e)}})();static \u0275cmp=g({type:e,selectors:[["p-tabpanels"]],hostVars:6,hostBindings:function(i,n){i&2&&(r("data-pc-name","tabpanels")("role","presentation"),_("p-tabpanels",!0)("p-component",!0))},features:[m],ngContentSelectors:E,decls:1,vars:0,template:function(i,n){i&1&&(T(),w(0))},dependencies:[k],encapsulation:2,changeDetection:0})}return e})(),K=(()=>{class e extends ${value=R(void 0);scrollable=d(!1,{transform:C});lazy=d(!1,{transform:C});selectOnFocus=d(!1,{transform:C});showNavigators=d(!0,{transform:C});tabindex=d(0,{transform:at});id=P(ut("pn_id_"));_componentStyle=p(gt);updateValue(t){this.value.update(()=>t)}static \u0275fac=(()=>{let t;return function(n){return(t||(t=h(e)))(n||e)}})();static \u0275cmp=g({type:e,selectors:[["p-tabs"]],hostVars:8,hostBindings:function(i,n){i&2&&(r("data-pc-name","tabs")("id",n.id()),_("p-tabs",!0)("p-tabs-scrollable",n.scrollable())("p-component",!0))},inputs:{value:[1,"value"],scrollable:[1,"scrollable"],lazy:[1,"lazy"],selectOnFocus:[1,"selectOnFocus"],showNavigators:[1,"showNavigators"],tabindex:[1,"tabindex"]},outputs:{value:"valueChange"},features:[nt([gt]),m],ngContentSelectors:E,decls:1,vars:0,template:function(i,n){i&1&&(T(),w(0))},dependencies:[k],encapsulation:2,changeDetection:0})}return e})(),le=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=tt({type:e});static \u0275inj=Y({imports:[K,At,St,mt,Nt]})}return e})();export{mt as a,Nt as b,St as c,At as d,K as e,le as f};
@@ -0,0 +1 @@
1
+ import{a as N}from"./chunk-AH4LZWJY.js";import{f as P,h as L,i as M,j as V}from"./chunk-HG23WDL5.js";import"./chunk-EP22HTZC.js";import"./chunk-4ANSU2AT.js";import"./chunk-TJSPXPO6.js";import{g as D}from"./chunk-EN5MVYJQ.js";import"./chunk-Z4SGDPGH.js";import"./chunk-FJ7O4K2Y.js";import"./chunk-PNAWRNGD.js";import"./chunk-FVXLQNAC.js";import"./chunk-T3ZCO6EC.js";import"./chunk-S35HUXPS.js";import"./chunk-25PFXJAK.js";import{n as T,r as z,t as k}from"./chunk-GRTIJ77T.js";import{Bb as x,Fc as w,Ha as R,Hc as y,Ic as C,Kb as f,Tc as v,Ub as a,Vb as o,Vc as I,Wb as h,Z as A,_b as b,dc as S,ec as p,gb as c,ia as E,mc as l,nc as m,qa as u,ra as g,ub as J}from"./chunk-RSHFIZV3.js";import{a as s,b as d}from"./chunk-C6Q5SG76.js";function H(t,_){if(t&1){let e=b();a(0,"button",6),S("click",function(){u(e);let n=p(2);return g(n.onCreateJournal())}),l(1," Generate Journal "),o()}}function B(t,_){if(t&1&&x(0,H,2,0,"button",5),t&2){let e=p();f("ngIf",e.selectedItems().length)}}function O(t,_){t&1&&(a(0,"tr")(1,"th",9),h(2,"p-tableHeaderCheckbox"),o(),a(3,"th"),l(4,"Outlet"),o(),a(5,"th"),l(6,"Number"),o(),a(7,"th"),l(8,"Customer"),o(),a(9,"th"),l(10,"Date"),o(),a(11,"th"),l(12,"Due"),o(),a(13,"th"),l(14,"Note"),o(),a(15,"th"),l(16,"Payment"),o()())}function j(t,_){if(t&1&&(a(0,"tr")(1,"td"),h(2,"p-tableCheckbox",10),o(),a(3,"td"),l(4),o(),a(5,"td"),l(6),o(),a(7,"td"),l(8),o(),a(9,"td"),l(10),w(11,"date"),o(),a(12,"td"),l(13),w(14,"date"),o(),a(15,"td"),l(16),o(),a(17,"td"),l(18),o()()),t&2){let e=_.$implicit;c(2),f("value",e),c(2),m(e.outlet),c(2),m(e.number),c(2),m(e.customer),c(2),m(y(11,8,e.date,"d MMM y")),c(3),m(y(14,11,e.due,"d MMM y")),c(3),m(e.note),c(2),m(e.payment)}}function G(t,_){if(t&1){let e=b();a(0,"p-table",8),S("onLazyLoad",function(n){u(e);let r=p(2);return g(r.onLazyLoad(n))})("onRowSelect",function(n){u(e);let r=p(2);return g(r.onRowSelect(n))})("onRowUnselect",function(n){u(e);let r=p(2);return g(r.onRowUnselect(n))}),x(1,O,17,0,"ng-template",null,2,C)(3,j,19,14,"ng-template",null,3,C),o()}if(t&2){let e=p(2);f("value",e.ARCollection().data)("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("paginator",!0)("rows",e.pageData().PageSize)("totalRecords",e.ARCollection().totalCount)("lazy",!0)}}function K(t,_){if(t&1&&x(0,G,5,7,"p-table",7),t&2){let e=p();f("ngIf",e.ARCollection())}}var ae=(()=>{class t{constructor(){this.generateJournalService=E(N),this.ARCollection=R(null),this.pageData=R({PageNumber:1,PageSize:10}),this.selectedItems=v(()=>this.ARCollection()&&this.ARCollection().data?this.ARCollection()?.data.filter(e=>e.checked)||[]:[]),I(()=>{this.pageData()&&this.fetchARCollection()})}fetchARCollection(){let e={PageSize:this.pageData().PageSize,PageNumber:this.pageData().PageNumber};this.generateJournalService.getARJournal(e).pipe(A(i=>{this.ARCollection.update(n=>d(s({},n),{data:i.data.map(r=>d(s({},r),{checked:!1})),totalCount:i.totalCount}))})).subscribe()}ngOnInit(){console.log()}onLazyLoad(e){this.pageData.set({PageNumber:e.first/e.rows+1,PageSize:e.rows})}onRowSelect(e){let i=e.data;this.ARCollection.update(n=>d(s({},n),{data:n.data.map(r=>r.id===i.id?d(s({},r),{checked:!0}):r)}))}onRowUnselect(e){let i=e.data;this.ARCollection.update(n=>d(s({},n),{data:n.data.map((r,U)=>r.id===i[U].id?d(s({},r),{checked:!1}):r)}))}onCreateJournal(){let i=this.selectedItems().map(n=>n.id);this.generateJournalService.createARJournal(i).subscribe(n=>{console.log("Journal created successfully:",n)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=J({type:t,selectors:[["app-ar-journal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","AR Collection"],["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(i,n){i&1&&(a(0,"app-main-panel",4),x(1,B,1,1,"ng-template",null,0,C)(3,K,1,1,"ng-template",null,1,C),o())},dependencies:[D,k,T,z,V,P,L,M],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{ae as ARJournalComponent};
@@ -1,4 +1,4 @@
1
- import{h as G}from"./chunk-2LKTSMUI.js";import{Ea as P,Fa as A,Ga as H,Ha as g,Pa as V,pa as z}from"./chunk-3ROVFYLI.js";import{k as R,n as w,o as O,p as N,t as B}from"./chunk-C4WUUVLC.js";import{Cb as k,Fb as c,La as x,Nb as D,Ob as r,Sb as $,Zb as f,_b as u,ac as b,bc as v,cc as y,ga as S,ha as F,ic as _,jc as j,kb as i,kc as h,lc as p,ma as I,nc as d,oc as s,qc as C,rc as Q,xa as T,yb as E,yc as q,zb as M}from"./chunk-PQTHPF23.js";var K=["header"],L=["title"],U=["subtitle"],W=["content"],X=["footer"],Y=["*",[["p-header"]],[["p-footer"]]],Z=["*","p-header","p-footer"];function ee(e,o){e&1&&y(0)}function te(e,o){if(e&1&&(f(0,"div",8),h(1,1),c(2,ee,1,0,"ng-container",6),u()),e&2){let t=_();i(2),r("ngTemplateOutlet",t.headerTemplate||t._headerTemplate)}}function ne(e,o){if(e&1&&(b(0),C(1),v()),e&2){let t=_(2);i(),Q(t.header)}}function ae(e,o){e&1&&y(0)}function ie(e,o){if(e&1&&(f(0,"div",9),c(1,ne,2,1,"ng-container",10)(2,ae,1,0,"ng-container",6),u()),e&2){let t=_();i(),r("ngIf",t.header&&!t._titleTemplate&&!t.titleTemplate),i(),r("ngTemplateOutlet",t.titleTemplate||t._titleTemplate)}}function re(e,o){if(e&1&&(b(0),C(1),v()),e&2){let t=_(2);i(),Q(t.subheader)}}function oe(e,o){e&1&&y(0)}function le(e,o){if(e&1&&(f(0,"div",11),c(1,re,2,1,"ng-container",10)(2,oe,1,0,"ng-container",6),u()),e&2){let t=_();i(),r("ngIf",t.subheader&&!t._subtitleTemplate&&!t.subtitleTemplate),i(),r("ngTemplateOutlet",t.subtitleTemplate||t._subtitleTemplate)}}function ce(e,o){e&1&&y(0)}function pe(e,o){e&1&&y(0)}function de(e,o){if(e&1&&(f(0,"div",12),h(1,2),c(2,pe,1,0,"ng-container",6),u()),e&2){let t=_();i(2),r("ngTemplateOutlet",t.footerTemplate||t._footerTemplate)}}var se=({dt:e})=>`
1
+ import{i as G}from"./chunk-PNAWRNGD.js";import{Ea as P,Fa as A,Ga as H,Ha as g,Pa as V,pa as z}from"./chunk-FVXLQNAC.js";import{k as R,n as w,o as O,p as N,t as B}from"./chunk-GRTIJ77T.js";import{Bb as c,Ha as x,Jb as D,Kb as r,Ob as $,Ub as f,Vb as u,Xb as b,Yb as v,Zb as y,ca as S,da as F,ec as _,fc as j,gb as i,gc as h,hc as p,ia as I,jc as d,kc as s,mc as C,nc as Q,ta as T,ub as E,uc as q,vb as M,yb as k}from"./chunk-RSHFIZV3.js";var K=["header"],L=["title"],U=["subtitle"],W=["content"],X=["footer"],Y=["*",[["p-header"]],[["p-footer"]]],Z=["*","p-header","p-footer"];function ee(e,o){e&1&&y(0)}function te(e,o){if(e&1&&(f(0,"div",8),h(1,1),c(2,ee,1,0,"ng-container",6),u()),e&2){let t=_();i(2),r("ngTemplateOutlet",t.headerTemplate||t._headerTemplate)}}function ne(e,o){if(e&1&&(b(0),C(1),v()),e&2){let t=_(2);i(),Q(t.header)}}function ae(e,o){e&1&&y(0)}function ie(e,o){if(e&1&&(f(0,"div",9),c(1,ne,2,1,"ng-container",10)(2,ae,1,0,"ng-container",6),u()),e&2){let t=_();i(),r("ngIf",t.header&&!t._titleTemplate&&!t.titleTemplate),i(),r("ngTemplateOutlet",t.titleTemplate||t._titleTemplate)}}function re(e,o){if(e&1&&(b(0),C(1),v()),e&2){let t=_(2);i(),Q(t.subheader)}}function oe(e,o){e&1&&y(0)}function le(e,o){if(e&1&&(f(0,"div",11),c(1,re,2,1,"ng-container",10)(2,oe,1,0,"ng-container",6),u()),e&2){let t=_();i(),r("ngIf",t.subheader&&!t._subtitleTemplate&&!t.subtitleTemplate),i(),r("ngTemplateOutlet",t.subtitleTemplate||t._subtitleTemplate)}}function ce(e,o){e&1&&y(0)}function pe(e,o){e&1&&y(0)}function de(e,o){if(e&1&&(f(0,"div",12),h(1,2),c(2,pe,1,0,"ng-container",6),u()),e&2){let t=_();i(2),r("ngTemplateOutlet",t.footerTemplate||t._footerTemplate)}}var se=({dt:e})=>`
2
2
  .p-card {
3
3
  background: ${e("card.background")};
4
4
  color: ${e("card.color")};
@@ -0,0 +1 @@
1
+ import{Ga as m,I as x,Q as h,Uc as A,Vc as M,Z as I,b as d,g as l,ia as b,k as y,o as j,oa as S,va as f,wa as p}from"./chunk-RSHFIZV3.js";function z(e,s){s?.injector||S(z);let o=s?.injector??b(f),t=new l,r=e(t).subscribe();o.get(p).onDestroy(()=>r.unsubscribe());let n=(c,g)=>{if(D(c))return t.next(c),{destroy:d};let u=g?.injector??F()??o;if(m(c)){let i=M(()=>{let w=c();A(()=>t.next(w))},{injector:u});return r.add({unsubscribe:()=>i.destroy()}),i}let a=c.subscribe(i=>t.next(i));return r.add(a),u!==o&&u.get(p).onDestroy(()=>a.unsubscribe()),{destroy:()=>a.unsubscribe()}};return n.destroy=r.unsubscribe.bind(r),n}function D(e){return!m(e)&&!j(e)}function F(){try{return b(f)}catch{return null}}function q(e,s,o){let t=typeof e=="function"?{next:e,error:s,complete:o}:e;return r=>r.pipe(I({next:t.next,complete:t.complete}),x(n=>(t.error(n),y)),t.finalize?h(t.finalize):n=>n)}export{z as a,q as b};
@@ -0,0 +1 @@
1
+ import{l as N,n as E,o as L,q as j}from"./chunk-GRTIJ77T.js";import{A as y,Bb as M,C as x,Da as c,E as D,Fc as $,Gc as U,K as h,Kb as s,Lb as r,Mb as k,O as I,Q as S,Ub as b,Vb as f,Wb as a,X as _,Z as w,Zb as T,ca as v,ec as u,gb as i,ha as F,hb as P,i as m,ia as B,pb as R,ta as p,ub as l,wb as q,wc as H,yb as g}from"./chunk-RSHFIZV3.js";var V=t=>({"background-color":t});function Y(t,d){t&1&&T(0)}function G(t,d){if(t&1&&a(0,"sk-cube-grid",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function z(t,d){if(t&1&&a(0,"sk-chasing-dots",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function X(t,d){if(t&1&&a(0,"sk-double-bounce",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function A(t,d){if(t&1&&a(0,"sk-rotating-plane",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function K(t,d){if(t&1&&a(0,"sk-spinner-pulse",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function Z(t,d){if(t&1&&a(0,"sk-three-bounce",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function J(t,d){if(t&1&&a(0,"sk-wandering-cubes",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function Q(t,d){if(t&1&&a(0,"sk-wave",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function ee(t,d){if(t&1&&(b(0,"div",1),M(1,Y,1,0,"ng-container",2)(2,G,1,1,"sk-cube-grid",3)(3,z,1,1,"sk-chasing-dots",3)(4,X,1,1,"sk-double-bounce",3)(5,A,1,1,"sk-rotating-plane",3)(6,K,1,1,"sk-spinner-pulse",3)(7,Z,1,1,"sk-three-bounce",3)(8,J,1,1,"sk-wandering-cubes",3)(9,Q,1,1,"sk-wave",3),f()),t&2){let e=u();r("opacity",e.opacity()),k("backdrop",e.backdrop()),s("ngStyle",H(14,V,e.backdrop()?e.backdropBackgroundColor():"transparent")),i(),s("ngComponentOutlet",e.entryComponent()),i(),s("ngIf",e.spinner()===e.spinkit.skCubeGrid),i(),s("ngIf",e.spinner()===e.spinkit.skChasingDots),i(),s("ngIf",e.spinner()===e.spinkit.skDoubleBounce),i(),s("ngIf",e.spinner()===e.spinkit.skRotatingPlane),i(),s("ngIf",e.spinner()===e.spinkit.skSpinnerPulse),i(),s("ngIf",e.spinner()===e.spinkit.skThreeBounce),i(),s("ngIf",e.spinner()===e.spinkit.skWanderingCubes),i(),s("ngIf",e.spinner()===e.spinkit.skWave)}}var C=(()=>{class t{backgroundColor=c();static \u0275fac=function(o){return new(o||t)};static \u0275dir=q({type:t,inputs:{backgroundColor:[1,"backgroundColor"]}})}return t})(),te=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-chasing-dots"]],features:[g],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]})}return t})(),ne=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-cube-grid"]],features:[g],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]})}return t})(),oe=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-double-bounce"]],features:[g],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]})}return t})(),ie=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-rotating-plane"]],features:[g],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(o,n){o&1&&a(0,"div",0),o&2&&r("background-color",n.backgroundColor())},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]})}return t})(),re=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-spinner-pulse"]],features:[g],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(o,n){o&1&&a(0,"div",0),o&2&&r("background-color",n.backgroundColor())},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]})}return t})(),se=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-three-bounce"]],features:[g],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2)(3,"div",3),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]})}return t})(),ae=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-wandering-cubes"]],features:[g],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]})}return t})(),ce=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-wave"]],features:[g],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]})}return t})(),W={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};var O=(()=>{class t{_pendingRequests=0;_pendingRequestsStatus$=new m(1);_filteredUrlPatterns=[];_filteredMethods=[];_filteredHeaders=[];_forceByPass=!1;get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequestsStatusSubject$(){return this._pendingRequestsStatus$}get pendingRequests(){return this._pendingRequests}set pendingRequests(e){this._pendingRequests=e}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(e){this._filteredMethods=e}set filteredHeaders(e){this._filteredHeaders=e}set forceByPass(e){this._forceByPass=e}shouldBypassUrl(e){return this._filteredUrlPatterns.some(o=>o.test(e))}shouldBypassMethod(e){return this._filteredMethods.some(o=>o.toUpperCase()===e.method.toUpperCase())}shouldBypassHeader(e){return this._filteredHeaders.some(o=>e.headers.has(o))}shouldBypass(e){return this._forceByPass||this.shouldBypassUrl(e.urlWithParams)||this.shouldBypassMethod(e)||this.shouldBypassHeader(e)}static \u0275fac=function(o){return new(o||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),de=(()=>{class t{pendingRequestsInterceptorConfigurer;_visibility$=new m(1);constructor(e){this.pendingRequestsInterceptorConfigurer=e}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptorConfigurer.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptorConfigurer.forceByPass=!1}static \u0275fac=function(o){return new(o||t)(F(O))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),me=(()=>{class t{pendingRequestsInterceptorConfigurer;spinnerVisibility;spinkit=W;isVisible$;visibleUntil=Date.now();backdrop=c(!0);backgroundColor=c();debounceDelay=c(0);entryComponent=c(null);extraDuration=c(0);filteredHeaders=c([]);filteredMethods=c([]);filteredUrlPatterns=c([]);minDuration=c(0);opacity=c(".7");backdropBackgroundColor=c("#f1f1f1");spinner=R(W.skWave);constructor(e,o){this.pendingRequestsInterceptorConfigurer=e,this.spinnerVisibility=o}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){let[e,o]=D(this.pendingRequestsInterceptorConfigurer.pendingRequestsStatus$,n=>n);this.isVisible$=x(this.pendingRequestsInterceptorConfigurer.pendingRequestsStatus$.pipe(_(()=>e.pipe(h(()=>y(this.debounceDelay()))))),e.pipe(_(()=>o.pipe(h(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe(I(),w(n=>this.updateExpirationDelay(n)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent()&&this.spinner.update(()=>null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns().length&&this.filteredUrlPatterns().forEach(e=>this.pendingRequestsInterceptorConfigurer.filteredUrlPatterns.push(new RegExp(e)))}initFilteredMethods(){this.pendingRequestsInterceptorConfigurer.filteredMethods=this.filteredMethods()}initFilteredHeaders(){this.pendingRequestsInterceptorConfigurer.filteredHeaders=this.filteredHeaders()}updateExpirationDelay(e){e&&(this.visibleUntil=Date.now()+this.minDuration())}getVisibilityTimer$(){return y(Math.max(this.extraDuration(),this.visibleUntil-Date.now()))}static \u0275fac=function(o){return new(o||t)(P(O),P(de))};static \u0275cmp=l({type:t,selectors:[["ng-http-loader"]],inputs:{backdrop:[1,"backdrop"],backgroundColor:[1,"backgroundColor"],debounceDelay:[1,"debounceDelay"],entryComponent:[1,"entryComponent"],extraDuration:[1,"extraDuration"],filteredHeaders:[1,"filteredHeaders"],filteredMethods:[1,"filteredMethods"],filteredUrlPatterns:[1,"filteredUrlPatterns"],minDuration:[1,"minDuration"],opacity:[1,"opacity"],backdropBackgroundColor:[1,"backdropBackgroundColor"],spinner:[1,"spinner"]},outputs:{spinner:"spinnerChange"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(o,n){o&1&&(M(0,ee,10,16,"div",0),$(1,"async")),o&2&&s("ngIf",U(1,1,n.isVisible$))},dependencies:[ne,te,oe,ie,re,se,ae,ce,L,N,E,j],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]})}return t})();function ye(t,d){let e=B(O),o=e.shouldBypass(t);return o||(e.pendingRequests++,e.pendingRequests===1&&e.pendingRequestsStatusSubject$.next(!0)),d(t).pipe(S(()=>{o||(e.pendingRequests--,e.pendingRequests===0&&e.pendingRequestsStatusSubject$.next(!1))}))}export{de as a,me as b,ye as c};
@@ -1,2 +1,2 @@
1
- import{$b as o,Zb as e,_b as t,qc as r,yb as m}from"./chunk-PQTHPF23.js";import"./chunk-EQDQRRRY.js";var c=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=m({type:n,selectors:[["app-lock"]],decls:18,vars:0,consts:[[1,"auth-wrapper","d-flex","no-block","justify-content-center","align-items-center",2,"background",`url(../../../../../assets/images/background/login-register.jpg)
1
+ import{Ub as e,Vb as t,Wb as o,mc as r,ub as m}from"./chunk-RSHFIZV3.js";import"./chunk-C6Q5SG76.js";var c=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=m({type:n,selectors:[["app-lock"]],decls:18,vars:0,consts:[[1,"auth-wrapper","d-flex","no-block","justify-content-center","align-items-center",2,"background",`url(../../../../../assets/images/background/login-register.jpg)
2
2
  no-repeat center center`],[1,"auth-box"],[1,"text-center"],[1,"db"],["alt","thumbnail","width","100","src","../../../../../assets/images/users/user1.jpg",1,"rounded-circle"],[1,"font-medium","mb-4","mt-1"],[1,"row"],[1,"col-12"],["action","../../../../../index.html",1,"form-horizontal","mt-3"],[1,"mb-3","row"],["type","password","required","","placeholder","Password",1,"form-control","form-control-lg"],[1,"col-xs-12"],["type","submit",1,"btn","d-block","w-100","btn-primary"]],template:function(i,l){i&1&&(e(0,"div",0)(1,"div",1)(2,"div")(3,"div",2)(4,"span",3),o(5,"img",4),t(),e(6,"h5",5),r(7,"Genelia"),t()(),e(8,"div",6)(9,"div",7)(10,"form",8)(11,"div",9)(12,"div",7),o(13,"input",10),t()(),e(14,"div",2)(15,"div",11)(16,"button",12),r(17," LOGIN "),t()()()()()()()()())},encapsulation:2})}}return n})();export{c as LockComponent};
@@ -0,0 +1 @@
1
+ import{a as Se,b as Te,c as Ee,d as Ie,e as Fe,f as Ae}from"./chunk-LCATVZKP.js";import{a as Be,b as Ne}from"./chunk-52HZNWBM.js";import{a as ye}from"./chunk-63UNI6LK.js";import"./chunk-KFHCGO62.js";import{a as ue,b as de}from"./chunk-C66O26ZI.js";import{a as se}from"./chunk-AKBPKNCH.js";import{b as ge,c as fe,d as he,e as xe,f as be,j as Ce}from"./chunk-HG23WDL5.js";import{g as _e,h as ve}from"./chunk-EP22HTZC.js";import"./chunk-4ANSU2AT.js";import"./chunk-TJSPXPO6.js";import{a as V,b as R}from"./chunk-MNPBLC23.js";import{g as P}from"./chunk-EN5MVYJQ.js";import"./chunk-Z4SGDPGH.js";import"./chunk-FJ7O4K2Y.js";import{u as ce,v as G}from"./chunk-PNAWRNGD.js";import{Ca as z,Ga as pe,b as J,e as k,f as Z,i as ee,k as te,l as ne,m as ie,o as oe,r as re,t as ae,u as le}from"./chunk-FVXLQNAC.js";import{d as me}from"./chunk-T3ZCO6EC.js";import"./chunk-S35HUXPS.js";import"./chunk-25PFXJAK.js";import{k as X,n as O,s as Y,t as D}from"./chunk-GRTIJ77T.js";import{Bb as s,Fc as U,Gc as q,Ha as S,Ic as y,Kb as m,Nb as W,Pb as j,Qb as _,Sb as v,Tb as h,Tc as N,Ub as i,Vb as n,Wb as p,Z as M,_b as A,ca as H,dc as I,ec as u,gb as r,ia as C,mc as o,nc as g,qa as T,ra as E,ub as w,uc as Q,vc as L,wc as B}from"./chunk-RSHFIZV3.js";import{a as x,b}from"./chunk-C6Q5SG76.js";var $=(()=>{class t{#e=C(me);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")}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var we=t=>({"active-state":t}),Oe=t=>({"text-white":t});function $e(t,l){if(t&1){let e=A();i(0,"button",5),o(1,"Cancel"),n(),i(2,"button",6),I("click",function(){T(e);let c=u();return E(c.updateAccountingIntegration())}),o(3," Save "),n()}}function je(t,l){if(t&1&&(i(0,"p-tab",8),o(1),n()),t&2){let e=l.$implicit,a=l.$index;m("value",a),r(),g(e)}}function Le(t,l){if(t&1&&(i(0,"div",34)(1,"h3",35),o(2," End Of Shift "),n()()),t&2){let e=u(5);m("ngClass",B(2,we,e.form.controls.posIntegration.value.createJournalTriggers===0)),r(),m("ngClass",B(4,Oe,e.form.controls.posIntegration.value.createJournalTriggers===0))}}function Ue(t,l){if(t&1&&(i(0,"div",34)(1,"h3",35),o(2," Every "),n()()),t&2){let e=u(5);m("ngClass",B(2,we,e.form.controls.posIntegration.value.createJournalTriggers===1)),r(),m("ngClass",B(4,Oe,e.form.controls.posIntegration.value.createJournalTriggers===1))}}function qe(t,l){if(t&1&&s(0,Le,3,6,"div",34)(1,Ue,3,6,"div",34),t&2){let e,a=u().$implicit;j((e=a.key)===0?0:e===1?1:-1)}}function ze(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 Ke(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 He(t,l){if(t&1){let e=A();i(0,"div",12),p(1,"p-radiobutton",32),i(2,"p-card",33),I("click",function(){T(e);let c=u(3);return E(c.changeJournalType())}),s(3,qe,2,1,"ng-template",null,2,y)(5,ze,4,0)(6,Ke,4,0),n()()}if(t&2){let e,a=l.$implicit;r(),m("inputId",a.value)("value",a.key),r(4),j((e=a.key)===0?5:e===1?6:-1)}}function We(t,l){if(t&1&&(i(0,"div",26),p(1,"p-radiobutton",36),i(2,"label",37),o(3),n()()),t&2){let e=l.$implicit;r(),m("value",e.key)("inputId",e.value),r(),m("for",e.value),r(),g(e.value)}}function Qe(t,l){if(t&1&&(i(0,"div",26),p(1,"p-radiobutton",38),i(2,"label",37),o(3),n()()),t&2){let e=l.$implicit;r(),m("value",e.key)("inputId",e.value),r(),m("for",e.value),r(),g(e.value)}}function Xe(t,l){if(t&1&&(i(0,"div",26),p(1,"p-radiobutton",39),i(2,"label",37),o(3),n()()),t&2){let e=l.$implicit;r(),m("value",e.key)("inputId",e.value),r(),m("for",e.value),r(),g(e.value)}}function Ye(t,l){if(t&1&&(i(0,"div",26),p(1,"p-radiobutton",40),i(2,"label",37),o(3),n()()),t&2){let e=l.$implicit;r(),m("value",e.key)("inputId",e.value),r(),m("for",e.value),r(),g(e.value)}}function Ze(t,l){if(t&1&&(i(0,"p-tabs",7)(1,"p-tablist"),v(2,je,2,2,"p-tab",8,_),n(),i(4,"p-tabpanels")(5,"p-tabpanel",9)(6,"h4"),o(7,"Integration with POS"),n(),i(8,"p"),o(9,"Generate Journal"),n(),i(10,"div",10)(11,"div",11)(12,"div",10),v(13,He,7,3,"div",12,_),n()()(),p(15,"hr"),i(16,"div",13)(17,"h3"),o(18,"Journal Generate"),n(),i(19,"p"),o(20,"Configure generate transaction"),n(),i(21,"div",10)(22,"div",14)(23,"div",15)(24,"div",14)(25,"div",16)(26,"label",17),o(27,"Generate EOD Expense Journal"),n(),p(28,"p-toggleswitch",18),n()(),p(29,"div",14),i(30,"div",14)(31,"div",16)(32,"label",17),o(33,"Generate Outlet Delivery Journal"),n(),p(34,"p-toggleswitch",19),n()(),p(35,"div",14),i(36,"div",14)(37,"div",16)(38,"label",17),o(39,"Generate Payment Discount Journal On Payment"),n(),p(40,"p-toggleswitch",20),n()()()()()()(),i(41,"p-tabpanel",21)(42,"div",13)(43,"h3"),o(44,"Accounting Numbering"),n(),i(45,"p"),o(46,"Configure numbering format and rule for your accounting"),n(),i(47,"div",10)(48,"div",14)(49,"div",15)(50,"div",14)(51,"div",16)(52,"label",17),o(53,"Digit"),n(),p(54,"input",22),n()(),p(55,"div",14),i(56,"div",14)(57,"div",16)(58,"label",17),o(59,"Seed"),n(),p(60,"input",23),n()(),i(61,"div",14)(62,"div",16)(63,"label",17),o(64,"Last Number"),n(),p(65,"input",24),n()(),i(66,"div",14)(67,"div",16)(68,"label",17),o(69,"Reset Every"),n(),i(70,"div",25),v(71,We,4,4,"div",26,_),n()()(),i(73,"div",14)(74,"div",16)(75,"label",17),o(76,"Format"),n(),p(77,"p-select",27),n()()()()()()(),i(78,"p-tabpanel",28)(79,"div",13)(80,"h3"),o(81,"Report"),n(),i(82,"p"),o(83,"Configure report behavior"),n(),i(84,"div",10)(85,"div",14)(86,"div",15)(87,"div",14)(88,"div",16)(89,"label",17),o(90,"Audit Journal Transaction"),n(),i(91,"div",25),v(92,Qe,4,4,"div",26,_),n()()(),p(94,"div",14),i(95,"div",14)(96,"div",16)(97,"label",17),o(98,"Accounting For Treatment"),n(),i(99,"div",25),v(100,Xe,4,4,"div",26,_),n()()(),p(102,"div",14),i(103,"div",14)(104,"div",16)(105,"label",17),o(106,"Configure Report Access Control in COA"),n(),i(107,"div",25),v(108,Ye,4,4,"div",26,_),n()()()()()()()(),i(110,"p-tabpanel",29)(111,"div",13)(112,"h3"),o(113,"Note"),n(),i(114,"p"),o(115,"Configure show note"),n(),i(116,"div",10)(117,"div",14)(118,"div",15)(119,"div",14)(120,"div",16)(121,"label",17),o(122,"Note Required On Journal"),n(),p(123,"p-toggleswitch",30),n()(),p(124,"div",14),i(125,"div",14)(126,"div",16)(127,"label",17),o(128,"Trial Balance Footer Visible"),n(),p(129,"p-toggleswitch",31),n()(),p(130,"div",14),n()()()()()()()),t&2){let e=u(2);m("value",0)("formGroup",e.form),r(2),h(e.tabs()),r(3),m("value",0),r(8),h(e.accountingIntegration().options.journalType),r(28),m("value",1),r(30),h(e.accountingIntegration().options.resetPeriods),r(6),m("options",e.accountingIntegration().options.monthlyResetPeriodFormat),r(),m("value",2),r(14),h(e.accountingIntegration().options.auditType),r(8),h(e.accountingIntegration().options.generatePrepaidJournal),r(8),h(e.accountingIntegration().options.entityAccess),r(2),m("value",3)}}function et(t,l){t&1&&s(0,Ze,131,7,"ng-template",null,1,y)}var De=(()=>{class t{constructor(){this.accountingSetupService=C($),this.fb=C(re).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(a=>b(x({},a),{form:b(x({},a.form),{posIntegration:b(x({},a.form.posIntegration),{createJournalTriggers:e})})})),this.form.controls.posIntegration.patchValue({createJournalTriggers:e})}loadAccountingConfiguration(){this.accountingSetupService.fetchLoaderConfiguration().pipe(M(e=>{this.accountingIntegration.set(e);let a=e.form.posIntegration.createJournalTriggers;this.journalType.set(a),this.form.get("posIntegration.createJournalTriggers")?.setValue(a),this.form.patchValue(e.form)})).subscribe()}updateAccountingIntegration(){let e={form:this.form.getRawValue()};this.accountingSetupService.updateAccountingIntegrationConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=w({type:t,selectors:[["app-accounting-integration"]],decls:4,vars:1,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Accounting Integration"],[4,"ngIf"],[1,"btn","btn-secondary","rounded"],[1,"btn","btn-primary","rounded",3,"click"],[3,"value","formGroup"],[3,"value"],["formGroupName","posIntegration",3,"value"],[1,"row"],[1,"col-8"],[1,"col"],[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"],["formControlName","digit","type","text","pInputText",""],["formControlName","seed","type","text","pInputText",""],["formControlName","lastNumber","type","text","pInputText",""],[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(a,c){a&1&&(i(0,"app-main-panel",3),s(1,$e,4,0,"ng-template",null,0,y)(3,et,2,0,null,4),n()),a&2&&(r(3),m("ngIf",c.accountingIntegration()))},dependencies:[D,X,O,Ae,Fe,Ie,Ee,Se,Te,P,R,V,xe,he,le,J,k,Z,ne,oe,ie,G,ce,ve,_e,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 tt=()=>({width:"100%",height:"calc(100vh - 300px)"}),nt=()=>[];function it(t,l){t&1&&(i(0,"button",6),o(1,"Submit"),n())}function ot(t,l){t&1&&(i(0,"tr")(1,"th"),o(2,"Account Name"),n(),i(3,"th",18),o(4,"Debit"),n(),i(5,"th",18),o(6,"Credit"),n()())}function rt(t,l){if(t&1){let e=A();i(0,"tr")(1,"td"),o(2),n(),i(3,"td")(4,"input",19),I("ngModelChange",function(c){let f=T(e).rowIndex,F=u(2).$index,d=u(3);return E(d.dfsfsd(c,F,f,"debitAmount"))}),n()(),i(5,"td")(6,"input",19),I("ngModelChange",function(c){let f=T(e).rowIndex,F=u(2).$index,d=u(3);return E(d.dfsfsd(c,F,f,"creditAmount"))}),n()()()}if(t&2){let e=l.$implicit;r(2),g(e.accountName),r(2),m("ngModel",e.debitAmount),r(2),m("ngModel",e.creditAmount)}}function at(t,l){if(t&1&&(i(0,"p-table",15),s(1,ot,7,0,"ng-template",16)(2,rt,7,3,"ng-template",17),n()),t&2){let e=u().$implicit;m("value",e.items)}}function lt(t,l){if(t&1&&(i(0,"div",8)(1,"div",9)(2,"div",13)(3,"h4"),o(4),n()(),i(5,"div"),s(6,at,3,1,"p-table",14),n()()()),t&2){let e=l.$implicit;r(4),g(e.name),r(2),m("ngIf",e.items.length)}}function mt(t,l){if(t&1&&(i(0,"tr")(1,"td")(2,"p",20),o(3,"Total"),n()(),i(4,"td",18)(5,"p",20),o(6),U(7,"number"),n()(),i(8,"td",18)(9,"p",20),o(10),U(11,"number"),n()()()),t&2){let e=u(3);r(6),g(q(7,2,e.subTotalDebit())),r(4),g(q(11,4,e.subTotalCredit()))}}function pt(t,l){if(t&1&&(i(0,"p-card",7)(1,"div",8)(2,"div",9),p(3,"p-datepicker",10),n()()(),p(4,"br"),i(5,"p-card")(6,"p-scroll-panel")(7,"div",11),v(8,lt,7,2,"div",8,_),n()(),i(10,"p-table",12),s(11,mt,12,6,"ng-template",null,2,y),n()()),t&2){let e=u(2);r(3),m("ngModel",e.date()),r(3),W(L(4,tt)),r(2),h(e.nonEmptyForms()),r(2),m("value",L(5,nt))}}function ct(t,l){t&1&&s(0,pt,13,6,"ng-template",null,1,y)}var Je=(()=>{class t{constructor(){this.accSetupService=C($),this.openingBalanceForm=S(null),this.date=S(new Date),this.messageService=C(z),this.subTotalDebit=N(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,a)=>e+a.items.reduce((c,f)=>c+f.debitAmount,0),0):0),this.subTotalCredit=N(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,a)=>e+a.items.reduce((c,f)=>c+f.creditAmount,0),0):0),this.totalItemsCount=N(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,a)=>e+a.items.length,0):0),this.nonEmptyForms=N(()=>{let e=["Asset","Liability","Equity","Revenue","Expense"];return this.openingBalanceForm()?this.openingBalanceForm().form.filter(a=>a.items.length>0||e.includes(a.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(se("response"),M(e=>{this.openingBalanceForm.set(e)})).subscribe()}dfsfsd(e,a,c,f){let F=this.openingBalanceForm().form.map((d,ke)=>ke===a?b(x({},d),{items:d.items.map((K,Ge)=>Ge===c?b(x({},K),{[f]:e}):K)}):d).filter(d=>d!==null);this.openingBalanceForm.update(d=>b(x({},d),{form:F})),console.log(this.openingBalanceForm())}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=w({type:t,selectors:[["app-acc-opening-balance-form"]],features:[Q([z])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["footer",""],["pageTitle","Opening Balance Form"],[4,"ngIf"],["preventOpenDuplicates",""],[1,"btn","btn-primary","rounded"],["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(a,c){a&1&&(i(0,"app-main-panel",3),s(1,it,2,0,"ng-template",null,0,y)(3,ct,2,0,null,4),n(),p(4,"p-toast",5)),a&2&&(r(3),m("ngIf",c.openingBalanceForm()))},dependencies:[P,R,V,pe,D,O,Y,fe,ge,Ce,be,de,ue,ae,J,te,k,ee,G,ye],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var ln=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"accounting-integration",component:De},{path:"opening-balance-form",component:Je}]}];export{ln as ACCOUNTING_SETUP_ROUTES};