dealposbooks 1.9.1 → 1.9.3

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 (138) hide show
  1. package/3rdpartylicenses.txt +790 -89
  2. package/assets/scss/components/_scafholdings.scss +21 -17
  3. package/assets/scss/layouts/_sidebar.scss +1 -1
  4. package/assets/scss/layouts/dark/_dark.scss +164 -153
  5. package/assets/scss/style.scss +52 -12
  6. package/assets/scss/variables/_variables.scss +5 -3
  7. package/assets/world.json +17808 -1
  8. package/chunk-2US5D2LY.js +1 -0
  9. package/{chunk-TL6UHPBU.js → chunk-33XUIS57.js} +1 -1
  10. package/{chunk-SJTXIIX5.js → chunk-353U23ZQ.js} +1 -1
  11. package/chunk-3B65XZ6E.js +1 -0
  12. package/{chunk-YT7EC5LI.js → chunk-3CEJ67I5.js} +1 -1
  13. package/chunk-3E2EKFPH.js +1 -0
  14. package/{chunk-ZBTGGL5M.js → chunk-3ENMEUVK.js} +3 -3
  15. package/chunk-3H5KBX4R.js +1 -0
  16. package/chunk-3XLREP6U.js +297 -0
  17. package/{chunk-VYTUB2DV.js → chunk-4CUA33JH.js} +1 -1
  18. package/chunk-4NSHHAXV.js +1 -0
  19. package/{chunk-AKZM2DMY.js → chunk-5AITWOQZ.js} +1 -1
  20. package/{chunk-GHZLR44M.js → chunk-5QVQY32E.js} +1 -1
  21. package/chunk-6DPW74DP.js +1 -0
  22. package/chunk-6NCHCAKY.js +300 -0
  23. package/{chunk-HBVENULS.js → chunk-7DRL5PZZ.js} +1 -1
  24. package/chunk-7G6KXHQB.js +1 -0
  25. package/chunk-7KQDKLO4.js +70 -0
  26. package/chunk-7U2775BI.js +1 -0
  27. package/{chunk-G7MS6UI4.js → chunk-7U2I35GP.js} +1 -1
  28. package/{chunk-NNH4DORM.js → chunk-A47VRZZB.js} +1 -1
  29. package/chunk-ACQX2T2H.js +59 -0
  30. package/chunk-AG7353CN.js +1 -0
  31. package/chunk-AI6YS6T2.js +1 -0
  32. package/{chunk-FNOMC2TM.js → chunk-ANMXAMBL.js} +1 -1
  33. package/chunk-ARSLNNKY.js +7 -0
  34. package/chunk-AT7II4DO.js +7 -0
  35. package/{chunk-35EULUGT.js → chunk-BCXNVGDH.js} +1 -1
  36. package/chunk-BJNN42CI.js +1 -0
  37. package/chunk-CSQ4MHL2.js +246 -0
  38. package/chunk-DG6ETDOW.js +1 -0
  39. package/{chunk-TBHL2OSG.js → chunk-DIX7J6JH.js} +1 -1
  40. package/chunk-DMVAXVYQ.js +1 -0
  41. package/{chunk-2ACAW72E.js → chunk-DNSQSWOS.js} +1 -1
  42. package/chunk-F3PEWQT7.js +1 -0
  43. package/chunk-FTVGAWDW.js +1 -0
  44. package/{chunk-GLURPAU2.js → chunk-FUCSF42O.js} +1 -1
  45. package/chunk-FXUC6M2U.js +1 -0
  46. package/chunk-G4XX7EU2.js +1 -0
  47. package/chunk-GCGWIESO.js +1 -0
  48. package/{chunk-MS3UTNX6.js → chunk-GY53MWXH.js} +5 -5
  49. package/{chunk-CMHZLZ4E.js → chunk-H4V6YZX2.js} +1 -1
  50. package/chunk-IHJLTHHQ.js +1 -0
  51. package/{chunk-QBJKUIXK.js → chunk-J6H3BBKP.js} +1 -1
  52. package/chunk-JG5HGOEX.js +47 -0
  53. package/{chunk-PATWAZNE.js → chunk-LFDCJISD.js} +1 -1
  54. package/chunk-LFGL4ACG.css +1 -0
  55. package/chunk-LNRTAR2V.js +1 -0
  56. package/chunk-LWKS2JEV.js +1 -0
  57. package/chunk-N2XLL6HJ.js +33 -0
  58. package/chunk-NM37SDQJ.js +1 -0
  59. package/chunk-NN6GSTBJ.js +1 -0
  60. package/chunk-NRULEUE7.js +1 -0
  61. package/{chunk-CEMQLY34.js → chunk-O2GA6PH7.js} +1 -1
  62. package/{chunk-R3FUAON5.js → chunk-OAD4GTH6.js} +1 -1
  63. package/chunk-OCIKQOWD.js +328 -0
  64. package/{chunk-DWTUKOMR.js → chunk-PJKHUCJX.js} +1 -1
  65. package/chunk-PRRU3DEZ.js +503 -0
  66. package/{chunk-F6SXKAYF.js → chunk-PZBZVQUY.js} +1 -1
  67. package/chunk-Q2IWISMY.js +1 -0
  68. package/{chunk-BLOB7I4P.js → chunk-Q5BXN24W.js} +3 -3
  69. package/chunk-QIXIZZPY.js +1 -0
  70. package/{chunk-EKJXB6MV.js → chunk-RANHETC3.js} +2 -2
  71. package/chunk-RQEEJGOE.js +1 -0
  72. package/{chunk-VVC3QQUI.js → chunk-SGXU6X3O.js} +1 -1
  73. package/chunk-TDDTBHQE.js +1 -0
  74. package/{chunk-HZ7WPLLK.js → chunk-TNWHAKS6.js} +1 -1
  75. package/{chunk-26X2X35R.js → chunk-TPGKCMVN.js} +1 -1
  76. package/{chunk-7T6O4KFO.js → chunk-TYETQJ2X.js} +2 -2
  77. package/{chunk-CEUNPX5D.js → chunk-U5LD55IP.js} +1 -1
  78. package/chunk-U6SRN7P3.js +1 -0
  79. package/{chunk-IF72X7RS.js → chunk-V3B32QFK.js} +1 -1
  80. package/chunk-VBCJCAMN.js +1 -0
  81. package/chunk-W76GKZZU.js +1 -0
  82. package/chunk-WAJWW3TC.js +960 -0
  83. package/{chunk-Q4Y2IGA6.js → chunk-WM3NKRKN.js} +1 -1
  84. package/{chunk-HZLUYZB3.js → chunk-X4EHZEMZ.js} +1 -1
  85. package/chunk-X5SV4H5B.js +1 -0
  86. package/chunk-YQFG5XE2.js +1 -0
  87. package/chunk-YWYF6P7O.js +1 -0
  88. package/chunk-YYUWLV5N.js +1 -0
  89. package/chunk-ZB6TB7JI.js +180 -0
  90. package/{chunk-UNNEEFI2.js → chunk-ZPTNYW2S.js} +1 -1
  91. package/{chunk-ON4N4CPO.js → chunk-ZUALJ33O.js} +1 -1
  92. package/index.html +2 -2
  93. package/main-L6WVDQUB.js +1 -0
  94. package/main-YYIZ54AR.css +1 -0
  95. package/package.json +1 -1
  96. package/styles-7FHABE27.css +1 -0
  97. package/chunk-2VF35PRV.js +0 -7
  98. package/chunk-66DZK3FQ.js +0 -1
  99. package/chunk-6VN6A5B5.js +0 -520
  100. package/chunk-ABZUNDNB.js +0 -1
  101. package/chunk-AER6WLW5.js +0 -1
  102. package/chunk-AVL6C3VX.js +0 -59
  103. package/chunk-BPFNN32N.js +0 -1
  104. package/chunk-C375SLTS.js +0 -246
  105. package/chunk-C4HBNN2L.js +0 -1
  106. package/chunk-DO2YIWC5.js +0 -1
  107. package/chunk-E2RBYY7Q.js +0 -1
  108. package/chunk-EFOOUCV3.js +0 -301
  109. package/chunk-EHULZLLD.js +0 -300
  110. package/chunk-EQDQRRRY.js +0 -1
  111. package/chunk-GFHANKXL.js +0 -1
  112. package/chunk-GLLO2YQR.js +0 -1
  113. package/chunk-HZ6QN5ZG.js +0 -7
  114. package/chunk-I2MAIV44.js +0 -1
  115. package/chunk-I7T4W6G2.js +0 -47
  116. package/chunk-JXI4NDYT.js +0 -1
  117. package/chunk-KHZ5L5UR.js +0 -1
  118. package/chunk-LAZCPZXL.js +0 -1
  119. package/chunk-MEKP6D5H.js +0 -1
  120. package/chunk-NASSFXXN.js +0 -1
  121. package/chunk-NGKRNFZC.js +0 -1
  122. package/chunk-NTJQFRIB.js +0 -180
  123. package/chunk-OCYR2RTP.js +0 -1
  124. package/chunk-OVJSBJBH.js +0 -197
  125. package/chunk-P63Q5GYL.js +0 -1
  126. package/chunk-PGIXMWYT.js +0 -1
  127. package/chunk-PUEKZGWI.js +0 -1
  128. package/chunk-R6MI2SDH.js +0 -1
  129. package/chunk-RA2IZVJ4.js +0 -1
  130. package/chunk-ROX6NFMK.js +0 -297
  131. package/chunk-S64TQVWK.js +0 -1
  132. package/chunk-S6CFVRO6.js +0 -1
  133. package/chunk-USCTAGKM.js +0 -1
  134. package/chunk-USO7UKRV.js +0 -821
  135. package/chunk-UZOBSLZX.js +0 -1
  136. package/chunk-XCWBG4PB.js +0 -1
  137. package/main-TCYAGQCN.js +0 -1
  138. package/styles-H3D5FBL2.css +0 -1
@@ -0,0 +1 @@
1
+ import{a as Re,b as je,c as Le}from"./chunk-PJKHUCJX.js";import{a as Ve}from"./chunk-3ENMEUVK.js";import"./chunk-5QVQY32E.js";import{a as Ue,b as We,c as qe,d as He,e as Ke,f as Qe}from"./chunk-O2GA6PH7.js";import{a as $e,b as ze}from"./chunk-4CUA33JH.js";import{c as Fe,d as Te}from"./chunk-PZBZVQUY.js";import{c as we,d as Ge,e as Me,f as Je,g as Pe,h as ke,l as Oe}from"./chunk-GY53MWXH.js";import{f as De,g as Be}from"./chunk-6NCHCAKY.js";import"./chunk-5AITWOQZ.js";import"./chunk-ACQX2T2H.js";import{a as Ne}from"./chunk-W76GKZZU.js";import{c as z,d as U}from"./chunk-JG5HGOEX.js";import{a as Ae,b as Z}from"./chunk-7U2I35GP.js";import{g as w}from"./chunk-ZB6TB7JI.js";import"./chunk-7KQDKLO4.js";import"./chunk-H4V6YZX2.js";import{C as L,D as $,t as j,u as N}from"./chunk-WAJWW3TC.js";import{b as J,c as ae,e as A,f as P,j as Se,m as k,n as X,o as ye,p as O,w as V,y as Y,z as R}from"./chunk-U6SRN7P3.js";import"./chunk-TPGKCMVN.js";import{ga as Ie,ka as Ee}from"./chunk-BCXNVGDH.js";import{a as be,d as he}from"./chunk-U5LD55IP.js";import"./chunk-F2X3VGZZ.js";import{q as Ce,x as xe}from"./chunk-TYETQJ2X.js";import{j as Q,m as _e,s as ve,t as T}from"./chunk-353U23ZQ.js";import{$b as x,Ac as F,Bb as d,Ga as B,Jc as oe,Kc as re,L as me,Lb as p,Mc as s,Ob as ue,Qb as ne,Rb as b,Tb as h,Ub as S,Vb as i,Wb as n,Xb as c,Z as D,ba as pe,ec as y,fc as u,gb as a,ha as f,mb as ce,pa as v,qa as C,qc as o,rc as I,sc as ie,vb as E,vc as se,wc as de,xc as fe,yc as ge,zc as q}from"./chunk-ARSLNNKY.js";import{a as H,b as K}from"./chunk-YQFG5XE2.js";var G=(()=>{class t{#e=f(he);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")}submitOpeningBalanceFormConfiguration(e){return this.#e.post("","/api/setup/OpeningBalance/Submit",{form:e})}fetchAPICredential(){return this.#e.get(void 0,"/api/AccountConfig")}updateAPICredential(e){return this.#e.put(void 0,"/api/AccountConfig",e)}formatJournal(e){return this.#e.post("","/api/setup/formatdata/clearjournal",{domain:e})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=pe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ze=t=>({"active-state":t}),et=t=>({"text-white":t});function pt(t,l){if(t&1){let e=x();i(0,"div",4)(1,"a",5),o(2,"Cancel"),n(),i(3,"p-button",6),y("click",function(){v(e);let m=u();return C(m.updateAccountingIntegration())}),n()()}}function ct(t,l){if(t&1&&(i(0,"p-tab",9),o(1),n()),t&2){let e=l.$implicit,r=l.$index;p("value",r),a(),I(e)}}function ut(t,l){if(t&1&&(i(0,"div",40)(1,"h3",41),o(2," End Of Shift "),n()()),t&2){let e=u(4);p("ngClass",F(2,Ze,e.form.controls.posIntegration.value.createJournalTriggers===0)),a(),p("ngClass",F(4,et,e.form.controls.posIntegration.value.createJournalTriggers===0))}}function st(t,l){if(t&1&&(i(0,"div",40)(1,"h3",41),o(2," Every "),n()()),t&2){let e=u(4);p("ngClass",F(2,Ze,e.form.controls.posIntegration.value.createJournalTriggers===1)),a(),p("ngClass",F(4,et,e.form.controls.posIntegration.value.createJournalTriggers===1))}}function dt(t,l){if(t&1&&d(0,ut,3,6,"div",40)(1,st,3,6,"div",40),t&2){let e,r=u().$implicit;ne((e=r.key)===0?0:e===1?1:-1)}}function ft(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 gt(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 _t(t,l){if(t&1){let e=x();i(0,"div",14),c(1,"p-radiobutton",38),i(2,"p-card",39),y("click",function(){v(e);let m=u(2);return C(m.changeJournalType())}),d(3,dt,2,1,"ng-template",null,2,s)(5,ft,4,0)(6,gt,4,0),n()()}if(t&2){let e,r=l.$implicit;a(),p("inputId",r.value)("value",r.key),a(4),ne((e=r.key)===0?5:e===1?6:-1)}}function vt(t,l){if(t&1&&(i(0,"div",32),c(1,"p-radiobutton",42),i(2,"label",43),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),I(e.value)}}function Ct(t,l){if(t&1&&(i(0,"div",32),c(1,"p-radiobutton",44),i(2,"label",43),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),I(e.value)}}function xt(t,l){if(t&1&&(i(0,"div",32),c(1,"p-radiobutton",45),i(2,"label",43),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),I(e.value)}}function bt(t,l){if(t&1&&(i(0,"div",32),c(1,"p-radiobutton",46),i(2,"label",43),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),I(e.value)}}function ht(t,l){if(t&1&&(i(0,"div",7)(1,"p-tabs",8)(2,"p-tablist"),h(3,ct,2,2,"p-tab",9,b),n(),i(5,"p-tabpanels")(6,"p-tabpanel",9)(7,"h4",10),o(8,"Integration with POS"),n(),i(9,"p"),o(10,"Generate Journal"),n(),i(11,"div",11)(12,"div",12)(13,"div",13),h(14,_t,7,3,"div",14,b),n()()(),c(16,"hr"),i(17,"div",15)(18,"h3",10),o(19,"Journal Generate"),n(),i(20,"p"),o(21,"Configure generate transaction"),n(),i(22,"div",13)(23,"div",16)(24,"div",17)(25,"div",16)(26,"div",18)(27,"label",19),o(28,"Generate EOD Expense Journal"),n(),c(29,"p-toggleswitch",20),n()(),c(30,"div",16),i(31,"div",16)(32,"div",18)(33,"label",19),o(34,"Generate Outlet Delivery Journal"),n(),c(35,"p-toggleswitch",21),n()(),c(36,"div",16),i(37,"div",16)(38,"div",18)(39,"label",19),o(40,"Generate Payment Discount Journal On Payment"),n(),c(41,"p-toggleswitch",22),n()()()()()()(),i(42,"p-tabpanel",23)(43,"div",24)(44,"h3",10),o(45,"Accounting Numbering"),n(),i(46,"p"),o(47,"Configure numbering format and rule for your accounting"),n(),i(48,"div",13)(49,"div",16)(50,"div",17)(51,"div",16)(52,"div",18)(53,"label",25),o(54,"Digit"),n(),c(55,"p-inputnumber",26),n()(),c(56,"div",16),i(57,"div",16)(58,"div",18)(59,"label",27),o(60,"Seed"),n(),c(61,"p-inputnumber",28),n()(),i(62,"div",16)(63,"div",18)(64,"label",29),o(65,"Last Number"),n(),c(66,"p-inputnumber",30),n()(),i(67,"div",16)(68,"div",18)(69,"label",19),o(70,"Reset Every"),n(),i(71,"div",31),h(72,vt,4,4,"div",32,b),n()()(),i(74,"div",16)(75,"div",18)(76,"label",19),o(77,"Format"),n(),c(78,"p-select",33),n()()()()()()(),i(79,"p-tabpanel",34)(80,"div",24)(81,"h3",10),o(82,"Report"),n(),i(83,"p"),o(84,"Configure report behavior"),n(),i(85,"div",13)(86,"div",16)(87,"div",17)(88,"div",16)(89,"div",18)(90,"label",19),o(91,"Audit Journal Transaction"),n(),i(92,"div",31),h(93,Ct,4,4,"div",32,b),n()()(),c(95,"div",16),i(96,"div",16)(97,"div",18)(98,"label",19),o(99,"Accounting For Treatment"),n(),i(100,"div",31),h(101,xt,4,4,"div",32,b),n()()(),c(103,"div",16),i(104,"div",16)(105,"div",18)(106,"label",19),o(107,"Configure Report Access Control in COA"),n(),i(108,"div",31),h(109,bt,4,4,"div",32,b),n()()()()()()()(),i(111,"p-tabpanel",35)(112,"div",24)(113,"h3",10),o(114,"Note"),n(),i(115,"p"),o(116,"Configure show note"),n(),i(117,"div",13)(118,"div",16)(119,"div",17)(120,"div",16)(121,"div",18)(122,"label",19),o(123,"Note Required On Journal"),n(),c(124,"p-toggleswitch",36),n()(),c(125,"div",16),i(126,"div",16)(127,"div",18)(128,"label",19),o(129,"Trial Balance Footer Visible"),n(),c(130,"p-toggleswitch",37),n()(),c(131,"div",16),n()()()()()()()()),t&2){let e,r,m,_,W,M,g=u();a(),p("value",0)("formGroup",g.form),a(2),S(g.tabs()),a(3),p("value",0),a(8),S((e=g.accountingIntegration())==null||e.options==null?null:e.options.journalType),a(28),p("value",1),a(30),S((r=g.accountingIntegration())==null||r.options==null?null:r.options.resetPeriods),a(6),p("options",(m=g.accountingIntegration())==null||m.options==null?null:m.options.monthlyResetPeriodFormat),a(),p("value",2),a(14),S((_=g.accountingIntegration())==null||_.options==null?null:_.options.auditType),a(8),S((W=g.accountingIntegration())==null||W.options==null?null:W.options.generatePrepaidJournal),a(8),S((M=g.accountingIntegration())==null||M.options==null?null:M.options.entityAccess),a(2),p("value",3)}}var tt=(()=>{class t{constructor(){this.accountingSetupService=f(G),this.fb=f(V).nonNullable,this.tabs=B(["Pos","Numbering","Report","Note"]),this.journalType=B(0),this.accountingIntegration=B(null)}ngOnInit(){this.initializeForm(),this.loadAccountingConfiguration()}initializeForm(){this.form=this.fb.group({posIntegration:this.createPosIntegrationGroup(),number:this.createNumberGroup(),report:this.createReportGroup(),journalGenerate:this.createJournalGenerateGroup(),note:this.createNoteGroup()})}createPosIntegrationGroup(){return this.fb.group({createJournalTriggers:this.fb.control(0)})}createNumberGroup(){return this.fb.group({seed:this.fb.control(""),digit:this.fb.control(""),resetEvery:this.fb.control(""),monthlyFormat:this.fb.control(""),lastNumber:this.fb.control(""),lastModified:this.fb.control("")})}createReportGroup(){return this.fb.group({accountingAuditType:this.fb.control(""),accountingEntityAccess:this.fb.control(""),generatePrepaidJournal:this.fb.control("")})}createJournalGenerateGroup(){return this.fb.group({eodExpenseJournal:this.fb.control(""),transferOrder:this.fb.control(""),paymentDiscount:this.fb.control("")})}createNoteGroup(){return this.fb.group({noteMandatory:this.fb.control(""),trialBalanceFooterVisible:this.fb.control("")})}changeJournalType(){let e=this.journalType()===0?1:0;this.journalType.set(e),this.accountingIntegration.update(r=>K(H({},r),{form:K(H({},r.form),{posIntegration:K(H({},r.form.posIntegration),{createJournalTriggers:e})})})),this.form.controls.posIntegration.patchValue({createJournalTriggers:e})}loadAccountingConfiguration(){this.accountingSetupService.fetchLoaderConfiguration().pipe(D(e=>{this.accountingIntegration.set(e);let r=e.form.posIntegration.createJournalTriggers;this.journalType.set(r),this.form.get("posIntegration.createJournalTriggers")?.setValue(r),this.form.patchValue(e.form)})).subscribe()}updateAccountingIntegration(){let e={form:this.form.getRawValue()};this.accountingSetupService.updateAccountingIntegrationConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-accounting-integration"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Accounting Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"click"],[1,"overflow-y-auto"],[1,"border-top",3,"value","formGroup"],[3,"value"],[1,"fs-5"],["formGroupName","posIntegration",1,"row"],[1,"col-8"],[1,"row"],[1,"col"],["formGroupName","journalGenerate",1,""],[1,"col-6"],[1,"row","row-gap-3"],[1,"d-flex","flex-column"],["for","",1,"fs-4"],["formControlName","eodExpenseJournal"],["formControlName","transferOrder"],["formControlName","paymentDiscount"],["formGroupName","number",3,"value"],[1,""],["for","digit",1,"fs-4"],["inputId","digit","formControlName","digit"],["for","seed",1,"fs-4"],["inputId","seed","formControlName","seed"],["for","lastNumber",1,"fs-4"],["inputId","lastNumber","formControlName","lastNumber"],[1,"d-flex","flex-column","gap-2"],[1,"d-flex","align-items-center","gap-2"],["appendTo","body","formControlName","monthlyFormat","optionValue","key","optionLabel","value",3,"options"],["formGroupName","report",3,"value"],["formGroupName","note",3,"value"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"],["styleClass","d-none","name","createJournalTriggers","formControlName","createJournalTriggers",3,"inputId","value"],["styleClass","h-100",3,"click"],[1,"d-flex","justify-content-center","inactive-state","text-white","py-2",3,"ngClass"],[1,"m-0",3,"ngClass"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"ml-2","m-0",3,"for"],["name","accountingAuditType","formControlName","accountingAuditType",3,"value","inputId"],["name","generatePrepaidJournal","formControlName","generatePrepaidJournal",3,"value","inputId"],["name","accountingEntityAccess","formControlName","accountingEntityAccess",3,"value","inputId"]],template:function(r,m){r&1&&(i(0,"app-main-panel",3),d(1,pt,4,0,"ng-template",null,0,s)(3,ht,132,7,"ng-template",null,1,s),n())},dependencies:[T,Q,Qe,Ke,He,qe,Ue,We,w,Z,Ae,Pe,Je,R,A,P,k,O,X,N,Be,De,ze,$e,xe,Ce,$,L,Me,Ge],styles:["[_nghost-%COMP%]{display:block}.inactive-state[_ngcontent-%COMP%]{background-color:#e5e5e5}.active-state[_ngcontent-%COMP%]{background-color:#5680e9}"],changeDetection:0})}}return t})();var St=()=>({height:"calc(100vh - 150px)"}),yt=()=>[],nt=()=>({});function It(t,l){if(t&1){let e=x();i(0,"div")(1,"p-button",5),y("onClick",function(){v(e);let m=u();return C(m.submitForm())}),n()()}}function Et(t,l){t&1&&(i(0,"tr")(1,"th",16),o(2,"Account Name"),n(),i(3,"th",17),o(4,"Debit"),n(),i(5,"th",17),o(6,"Credit"),n()())}function Ft(t,l){if(t&1&&(i(0,"tr",9)(1,"td",18),o(2),n(),i(3,"td"),c(4,"input",19),n(),i(5,"td"),c(6,"input",20),n()()),t&2){let e,r=l.$implicit,m=l.rowIndex,_=u(4);p("formGroupName",m),a(2),ie(" ",(e=_.asFormGroup(r).get("accountName"))==null?null:e.value," "),a(2),p("autoNumeric",q(4,nt)),a(2),p("autoNumeric",q(5,nt))}}function Tt(t,l){if(t&1&&(i(0,"div",9)(1,"h4",11),o(2),n(),i(3,"div",12)(4,"p-table",13),d(5,Et,7,0,"ng-template",14)(6,Ft,7,6,"ng-template",15),n()()()),t&2){let e=l.$implicit,r=l.$index,m=u(3);p("formGroupName",r),a(2),ie(" ",e.get("name").value," "),a(2),p("value",m.getItemsArray(m.asFormGroup(e)).controls)}}function At(t,l){if(t&1&&(i(0,"tr")(1,"td")(2,"p",21),o(3,"Total"),n()(),i(4,"td",22)(5,"p",21),o(6),oe(7,"number"),n()(),i(8,"td",22)(9,"p",21),o(10),oe(11,"number"),n()()()),t&2){let e=u(3);a(6),I(re(7,2,e.subtotalDebit)),a(4),I(re(11,4,e.subtotalCredit))}}function Nt(t,l){if(t&1&&(i(0,"p-panel",7)(1,"p-scroll-panel")(2,"div",8),h(3,Tt,7,3,"div",9,b),n()(),i(5,"p-table",10),d(6,At,12,6,"ng-template",null,2,s),n()()),t&2){let e=u(2);p("formGroup",e.formGroups),a(),ue(q(4,St)),a(2),S(e.formsArray.controls),a(2),p("value",q(5,yt))}}function wt(t,l){if(t&1&&d(0,Nt,8,6,"p-panel",6),t&2){let e=u();p("ngIf",e.formGroups)}}var rt=(()=>{class t{constructor(){this.subtotalDebit=0,this.subtotalCredit=0,this.fb=f(V),this.accSetupService=f(G)}ngOnInit(){this.initializeForm(),this.loadFormData(),this.calculateSubtotalDebit(),this.formGroups.get("forms").valueChanges.pipe(me(300)).subscribe(()=>{this.calculateSubtotalDebit()})}initializeForm(){this.formGroups=this.fb.group({forms:this.fb.array([])})}get formsArray(){return this.formGroups.get("forms")}getItemsArray(e){return e.get("items")}asFormGroup(e){return e}createFormGroup(e){return this.fb.group({id:[e.id],name:[e.name],items:this.createItemsArray(e.items)})}createItemsArray(e){let r=e.map(m=>this.createItemGroup(m));return this.fb.array(r)}createItemGroup(e){return this.fb.group({accountName:[e.accountName],accountCode:[e.accountCode],id:[e.id],journalID:[e.journalID],accountID:[e.accountID],debitAmount:[e.debitAmount],creditAmount:[e.creditAmount],index:[e.index],note:[e.note]})}loadFormData(){this.accSetupService.fetchOpeningBalanceFormConfiguration().pipe(Ne("response"),D(e=>{for(;this.formsArray.length>0;)this.formsArray.removeAt(0);e.form.filter(m=>m.items&&m.items.length>0).forEach(m=>{this.formsArray.push(this.createFormGroup(m))})})).subscribe({error:e=>console.error("Error loading form data:",e)})}calculateSubtotalDebit(){let e=this.formGroups.controls.forms;this.subtotalDebit=0,this.subtotalCredit=0,e.controls.forEach(r=>{let m=this.getItemsArray(r),_=m.controls.reduce((M,g)=>{let te=g.get("debitAmount").value||0;return M+te},0),W=m.controls.reduce((M,g)=>{let te=g.get("creditAmount").value||0;return M+te},0);this.subtotalDebit+=_,this.subtotalCredit+=W})}submitForm(){let e=this.formGroups.value.forms;this.accSetupService.submitOpeningBalanceFormConfiguration(e).subscribe(),console.log("Submitting form data:",e)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-acc-opening-balance-form"]],features:[ge([Ie])],decls:6,vars:0,consts:[["actionButton",""],["content",""],["footer",""],["pageTitle","Opening Balance Form"],["preventOpenDuplicates",""],["label","Submit",3,"onClick"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],["formArrayName","forms",1,"d-flex","flex-column","row-gap-4"],[3,"formGroupName"],[3,"value"],[1,"fs-5"],["formArrayName","items"],["dataKey","id",3,"value"],["pTemplate","header"],["pTemplate","body"],[1,"fs-4"],[1,"fs-4",2,"width","200px"],[1,"fs-3"],["pInputText","","formControlName","debitAmount",1,"fs-3",3,"autoNumeric"],["pInputText","","formControlName","creditAmount",1,"fs-3",3,"autoNumeric"],[1,"fw-semibold","fs-4"],[1,"text-end",2,"width","200px"]],template:function(r,m){r&1&&(i(0,"app-main-panel",3),d(1,It,2,0,"ng-template",null,0,s)(3,wt,1,1,"ng-template",null,1,s),n(),c(5,"p-toast",4))},dependencies:[w,Z,Ee,T,_e,ve,we,Oe,ke,Te,Fe,Y,J,A,P,N,j,Le,$,L,U,z,Ve,R,k,O,X,ye],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var at=t=>({"ng-invalid ng-dirty":t});function Gt(t,l){if(t&1){let e=x();i(0,"p-button",4),y("onClick",function(){v(e);let m=u();return C(m.saveCredentials())}),o(1,"Update"),n()}}function Mt(t,l){t&1&&(i(0,"div",12)(1,"h3",13),o(2,"Account"),n(),i(3,"small",14),o(4,"Configure Client ID and Client Secret"),n()())}function Dt(t,l){if(t&1&&(i(0,"div",5)(1,"p-panel"),d(2,Mt,5,0,"ng-template",null,2,s),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),o(8,"Client ID"),n(),c(9,"input",10),n()(),i(10,"div",7)(11,"div",8)(12,"label",9),o(13,"Client Secret"),n(),c(14,"input",11),n()()()()()),t&2){let e=u();a(4),p("formGroup",e.credentialForm),a(5),p("ngClass",F(3,at,e.clientIDControl.invalid&&e.clientIDControl.dirty||e.clientIDControl.touched)),a(5),p("ngClass",F(5,at,e.clientSecretControl.invalid&&e.clientSecretControl.dirty||e.clientSecretControl.touched))}}var lt=(()=>{class t{constructor(e){this.fb=e,this.setupService=f(G)}ngOnInit(){this.initForm(),this.setupService.fetchAPICredential().pipe(D(e=>{this.credentialForm.patchValue({clientID:e.clientID||"",clientSecret:e.clientSecret||""})})).subscribe()}initForm(){this.credentialForm=this.fb.group({clientID:["",[ae.required]],clientSecret:["",[ae.required]]})}get clientIDControl(){return this.credentialForm.get("clientID")}get clientSecretControl(){return this.credentialForm.get("clientSecret")}saveCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Saving credentials:",e),this.setupService.updateAPICredential(e).subscribe()}static{this.\u0275fac=function(r){return new(r||t)(ce(V))}}static{this.\u0275cmp=E({type:t,selectors:[["app-api-credential"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","API Credential"],[3,"onClick"],[1,"d-flex","flex-column","row-gap-4"],[1,"row",3,"formGroup"],[1,"col-6"],[1,"d-flex","flex-column"],["for","outlet"],["type","text","pInputText","","formControlName","clientID",3,"ngClass"],["type","text","pInputText","","formControlName","clientSecret",3,"ngClass"],[1,"d-flex","flex-column","px-2"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(r,m){r&1&&(i(0,"app-main-panel",3),d(1,Gt,2,0,"ng-template",null,0,s)(3,Dt,15,7,"ng-template",null,1,s),n())},dependencies:[T,Q,R,J,A,P,k,O,N,j,U,z,w,$,L],encapsulation:2})}}return t})();function Bt(t,l){if(t&1){let e=x();i(0,"button",4),y("click",function(){v(e);let m=u();return C(m.onFormatJournal())}),o(1," Format "),n()}}function Jt(t,l){t&1&&(i(0,"div",12)(1,"h3",13),o(2,"Journal Configuration"),n(),i(3,"small",14),o(4," Enter your account information to format journal entries "),n()())}function Pt(t,l){if(t&1){let e=x();i(0,"div",5)(1,"p-panel"),d(2,Jt,5,0,"ng-template",null,2,s),i(4,"div",6)(5,"div",7)(6,"p-floatlabel",8)(7,"input",9),fe("ngModelChange",function(m){v(e);let _=u();return de(_.subdomain,m)||(_.subdomain=m),C(m)}),n(),i(8,"label",10),o(9,"Subdomain"),n()(),i(10,"small",11),o(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),n()()()()()}if(t&2){let e=u();a(7),se("ngModel",e.subdomain)}}var mt=(()=>{class t{constructor(){this.setupService=f(G),this.subdomain=B(""),this.toastrService=f(be)}onFormatJournal(){if(!this.subdomain()){this.toastrService.error("Please enter a subdomain","Error");return}this.setupService.formatJournal(this.subdomain()).subscribe({next:e=>{this.toastrService.success(e.message,"Success")}})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[1,"btn","btn-primary","rounded",3,"click"],[1,"d-flex","flex-column","row-gap-4"],[1,"row","mt-6"],[1,"col-12"],["variant","on"],["pInputText","","id","subdomain","autocomplete","off",1,"w-100",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"text-muted","fst-italic",2,"font-size","12px"],[1,"d-flex","flex-column"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(r,m){r&1&&(i(0,"app-main-panel",3),d(1,Bt,2,0,"ng-template",null,0,s)(3,Pt,12,1,"ng-template",null,1,s),n())},dependencies:[T,Y,J,A,Se,N,j,w,U,z,je,Re],encapsulation:2})}}return t})();var ci=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"accounting-integration",component:tt},{path:"opening-balance-form",component:rt},{path:"api-crendetial",component:lt},{path:"format-journal",component:mt}]}];export{ci as ACCOUNTING_SETUP_ROUTES};
@@ -1,4 +1,4 @@
1
- import{a as G}from"./chunk-26X2X35R.js";import{V as z,ia as P,ja as A,ka as H,la as g,ta as V}from"./chunk-35EULUGT.js";import{j as R,m as w,n as O,o as N,s as B}from"./chunk-SJTXIIX5.js";import{Fa as x,Ib as D,Jb as r,Nb as $,Tb as f,Ub as u,Wb as b,Xb as v,Yb as y,ba as S,ca as F,dc as _,ec as j,fb as i,fc as h,ha as I,hc as p,jc as d,kc as s,mc as C,nc as Q,sa as T,tb as E,ub as M,uc as q,xb as k,zb as c}from"./chunk-2VF35PRV.js";var K=["header"],L=["title"],U=["subtitle"],W=["content"],X=["footer"],Y=["*",[["p-header"]],[["p-footer"]]],Z=["*","p-header","p-footer"];function ee(e,o){e&1&&y(0)}function te(e,o){if(e&1&&(f(0,"div",8),h(1,1),c(2,ee,1,0,"ng-container",6),u()),e&2){let t=_();i(2),r("ngTemplateOutlet",t.headerTemplate||t._headerTemplate)}}function ne(e,o){if(e&1&&(b(0),C(1),v()),e&2){let t=_(2);i(),Q(t.header)}}function ae(e,o){e&1&&y(0)}function ie(e,o){if(e&1&&(f(0,"div",9),c(1,ne,2,1,"ng-container",10)(2,ae,1,0,"ng-container",6),u()),e&2){let t=_();i(),r("ngIf",t.header&&!t._titleTemplate&&!t.titleTemplate),i(),r("ngTemplateOutlet",t.titleTemplate||t._titleTemplate)}}function re(e,o){if(e&1&&(b(0),C(1),v()),e&2){let t=_(2);i(),Q(t.subheader)}}function oe(e,o){e&1&&y(0)}function le(e,o){if(e&1&&(f(0,"div",11),c(1,re,2,1,"ng-container",10)(2,oe,1,0,"ng-container",6),u()),e&2){let t=_();i(),r("ngIf",t.subheader&&!t._subtitleTemplate&&!t.subtitleTemplate),i(),r("ngTemplateOutlet",t.subtitleTemplate||t._subtitleTemplate)}}function ce(e,o){e&1&&y(0)}function pe(e,o){e&1&&y(0)}function de(e,o){if(e&1&&(f(0,"div",12),h(1,2),c(2,pe,1,0,"ng-container",6),u()),e&2){let t=_();i(2),r("ngTemplateOutlet",t.footerTemplate||t._footerTemplate)}}var se=({dt:e})=>`
1
+ import{a as G}from"./chunk-TPGKCMVN.js";import{V as z,ia as P,ja as A,ka as H,la as g,ta as V}from"./chunk-BCXNVGDH.js";import{j as R,m as w,n as O,o as N,t as B}from"./chunk-353U23ZQ.js";import{Bb as c,Ga as x,Kb as D,Lb as r,Pb as $,Vb as f,Wb as u,Yb as b,Zb as v,_b as y,ba as S,ca as F,fc as _,gb as i,gc as j,ha as I,hc as h,jc as p,lc as d,mc as s,qc as C,rc as Q,ta as T,vb as E,wb as M,yc as q,zb as k}from"./chunk-ARSLNNKY.js";var K=["header"],L=["title"],U=["subtitle"],W=["content"],X=["footer"],Y=["*",[["p-header"]],[["p-footer"]]],Z=["*","p-header","p-footer"];function ee(e,o){e&1&&y(0)}function te(e,o){if(e&1&&(f(0,"div",8),h(1,1),c(2,ee,1,0,"ng-container",6),u()),e&2){let t=_();i(2),r("ngTemplateOutlet",t.headerTemplate||t._headerTemplate)}}function ne(e,o){if(e&1&&(b(0),C(1),v()),e&2){let t=_(2);i(),Q(t.header)}}function ae(e,o){e&1&&y(0)}function ie(e,o){if(e&1&&(f(0,"div",9),c(1,ne,2,1,"ng-container",10)(2,ae,1,0,"ng-container",6),u()),e&2){let t=_();i(),r("ngIf",t.header&&!t._titleTemplate&&!t.titleTemplate),i(),r("ngTemplateOutlet",t.titleTemplate||t._titleTemplate)}}function re(e,o){if(e&1&&(b(0),C(1),v()),e&2){let t=_(2);i(),Q(t.subheader)}}function oe(e,o){e&1&&y(0)}function le(e,o){if(e&1&&(f(0,"div",11),c(1,re,2,1,"ng-container",10)(2,oe,1,0,"ng-container",6),u()),e&2){let t=_();i(),r("ngIf",t.subheader&&!t._subtitleTemplate&&!t.subtitleTemplate),i(),r("ngTemplateOutlet",t.subtitleTemplate||t._subtitleTemplate)}}function ce(e,o){e&1&&y(0)}function pe(e,o){e&1&&y(0)}function de(e,o){if(e&1&&(f(0,"div",12),h(1,2),c(2,pe,1,0,"ng-container",6),u()),e&2){let t=_();i(2),r("ngTemplateOutlet",t.footerTemplate||t._footerTemplate)}}var se=({dt:e})=>`
2
2
  .p-card {
3
3
  background: ${e("card.background")};
4
4
  color: ${e("card.color")};
@@ -1 +1 @@
1
- import{d as n}from"./chunk-CEUNPX5D.js";import{V as i,ba as o,ha as a}from"./chunk-2VF35PRV.js";import{a as c}from"./chunk-EQDQRRRY.js";var C=(()=>{class r{constructor(){this.httpService=a(n)}getChartOfAccountLoader(){return this.httpService.get("","api/ChartOfAccountLoader")}getPaginatedChartAccounts(t){let e=c({},t);return this.httpService.post("","api/ChartOfAccount/GetPaginatedList",e)}getChartAccountForm(){return this.httpService.get("","api/ChartOfAccount/Form")}getChartAccountById(t){return this.httpService.get("",`api/ChartOfAccount/Info/${t}`)}getChartAccountFormById(t){return this.httpService.get("",`api/ChartOfAccount/Form/${t}`)}submitChartAccount(t,e={}){return this.httpService.post("","api/ChartOfAccount/Submit",t,e)}deleteChartAccount(t){if(t.length>1){let e={body:t};return this.httpService.delete("","api/ChartOfAccount/Batch",e)}else return this.httpService.delete("",`api/ChartOfAccount/${t[0]}`)}fetchCategoryOptions(){return this.httpService.get("","api/ChartOfAccount/CategoryOptions")}getCachedCategoriesOptions(){return this.categoryOptionsCache$||(this.categoryOptionsCache$=this.fetchCategoryOptions().pipe(i(1))),this.categoryOptionsCache$}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=o({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{C as a};
1
+ import{d as a}from"./chunk-U5LD55IP.js";import{V as o,ba as i,ha as n}from"./chunk-ARSLNNKY.js";import{a as c}from"./chunk-YQFG5XE2.js";var C=(()=>{class r{constructor(){this.httpService=n(a)}getChartOfAccountLoader(){return this.httpService.get("","api/ChartOfAccountLoader")}getPaginatedChartAccounts(t){let e=c({},t);return this.httpService.post("","api/ChartOfAccount/GetPaginatedList",e)}getChartAccountForm(){return this.httpService.get("","api/ChartOfAccount/Form")}getChartAccountById(t){return this.httpService.get("",`api/ChartOfAccount/Info/${t}`)}getChartAccountFormById(t){return this.httpService.get("",`api/ChartOfAccount/Form/${t}`)}submitChartAccount(t,e={}){return this.httpService.post("","api/ChartOfAccount/Submit",t,e)}deleteChartAccount(t){if(t.length>1){let e={body:t};return this.httpService.delete("","api/ChartOfAccount/Batch",e)}else return this.httpService.delete("",`api/ChartOfAccount/${t[0]}`)}fetchCategoryOptions(){return this.httpService.get("","api/ChartOfAccount/CategoryOptions")}getCachedCategoriesOptions(){return this.categoryOptionsCache$||(this.categoryOptionsCache$=this.fetchCategoryOptions().pipe(o(1))),this.categoryOptionsCache$}exportChartOfAccounts(t){return this.httpService.post(void 0,"api/ChartOfAccountExport/export",t,{responseType:"blob"})}importPreviewChartOfAccounts(t){return this.httpService.post(void 0,"api/chartofaccount/importpreview",t)}importConfirmChartOfAccounts(t){return this.httpService.post(void 0,"api/chartofaccount/importconfirm",t)}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=i({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{C as a};
@@ -0,0 +1,59 @@
1
+ import{n as N,o as Dt}from"./chunk-WAJWW3TC.js";import{a as Pt}from"./chunk-TPGKCMVN.js";import{F as W,H as et,L as Vt,ca as Lt,ka as Ft,la as U,r as xt,ta as Ot,w as H}from"./chunk-BCXNVGDH.js";import{j as It,l as vt,m as Tt,n as zt,o as bt,t as Et,w as tt}from"./chunk-353U23ZQ.js";import{$b as _t,Aa as ct,Ac as $,Bb as C,Bc as q,Cc as St,Kb as S,Lb as m,Mb as pt,Mc as Z,Ob as ut,Pb as B,Vb as I,Wb as v,Xb as b,Yb as F,Zb as O,_b as A,ba as st,ca as ot,ec as gt,fc as y,gb as _,gc as ft,ha as lt,hc as yt,jc as Q,kc as Y,lc as P,mb as dt,mc as D,oa as rt,pa as at,pc as j,qa as ht,ra as k,ta as x,vb as V,wb as mt,yc as Ct,za as K,zb as L,zc as wt}from"./chunk-ARSLNNKY.js";import{a as J,b as X}from"./chunk-YQFG5XE2.js";var ge=(()=>{class i extends N{static \u0275fac=(()=>{let t;return function(n){return(t||(t=x(i)))(n||i)}})();static \u0275cmp=V({type:i,selectors:[["BlankIcon"]],features:[L],decls:2,vars:0,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(e,n){e&1&&(k(),I(0,"svg",0),b(1,"rect",1),v())},encapsulation:2})}return i})();var Ce=(()=>{class i extends N{static \u0275fac=(()=>{let t;return function(n){return(t||(t=x(i)))(n||i)}})();static \u0275cmp=V({type:i,selectors:[["CheckIcon"]],features:[L],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(e,n){e&1&&(k(),I(0,"svg",0),b(1,"path",1),v()),e&2&&(B(n.getClassNames()),S("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var ve=(()=>{class i extends N{pathId;ngOnInit(){this.pathId="url(#"+Lt()+")"}static \u0275fac=(()=>{let t;return function(n){return(t||(t=x(i)))(n||i)}})();static \u0275cmp=V({type:i,selectors:[["SearchIcon"]],features:[L],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(e,n){e&1&&(k(),I(0,"svg",0)(1,"g"),b(2,"path",1),v(),I(3,"defs")(4,"clipPath",2),b(5,"rect",3),v()()()),e&2&&(B(n.getClassNames()),S("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),_(),S("clip-path",n.pathId),_(3),m("id",n.pathId))},encapsulation:2})}return i})();var Rt=["content"],Ht=["item"],Wt=["loader"],kt=["loadericon"],At=["element"],Qt=["*"],$t=(i,h,t)=>({"p-virtualscroller":!0,"p-virtualscroller-inline":i,"p-virtualscroller-both p-both-scroll":h,"p-virtualscroller-horizontal p-horizontal-scroll":t}),nt=(i,h)=>({$implicit:i,options:h}),Nt=i=>({"p-virtualscroller-content":!0,"p-virtualscroller-loading ":i}),jt=i=>({"p-virtualscroller-loader-mask":i}),qt=i=>({numCols:i}),Bt=i=>({options:i}),Zt=()=>({styleClass:"p-virtualscroller-loading-icon"}),Gt=(i,h)=>({rows:i,columns:h});function Jt(i,h){i&1&&A(0)}function Kt(i,h){if(i&1&&(F(0),C(1,Jt,1,0,"ng-container",10),O()),i&2){let t=y(2);_(),m("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",q(2,nt,t.loadedItems,t.getContentOptions()))}}function Ut(i,h){i&1&&A(0)}function Xt(i,h){if(i&1&&(F(0),C(1,Ut,1,0,"ng-container",10),O()),i&2){let t=h.$implicit,e=h.index,n=y(3);_(),m("ngTemplateOutlet",n.itemTemplate||n._itemTemplate)("ngTemplateOutletContext",q(2,nt,t,n.getOptions(e)))}}function Yt(i,h){if(i&1&&(I(0,"div",11,3),C(2,Xt,2,5,"ng-container",12),v()),i&2){let t=y(2);ut(t.contentStyle),B(t.contentStyleClass),m("ngClass",$(8,Nt,t.d_loading)),S("data-pc-section","content"),_(2),m("ngForOf",t.loadedItems)("ngForTrackBy",t._trackBy)}}function te(i,h){if(i&1&&b(0,"div",13),i&2){let t=y(2);m("ngStyle",t.spacerStyle),S("data-pc-section","spacer")}}function ee(i,h){i&1&&A(0)}function ie(i,h){if(i&1&&(F(0),C(1,ee,1,0,"ng-container",10),O()),i&2){let t=h.index,e=y(4);_(),m("ngTemplateOutlet",e.loaderTemplate||e._loaderTemplate)("ngTemplateOutletContext",$(4,Bt,e.getLoaderOptions(t,e.both&&$(2,qt,e.numItemsInViewport.cols))))}}function ne(i,h){if(i&1&&(F(0),C(1,ie,2,6,"ng-container",15),O()),i&2){let t=y(3);_(),m("ngForOf",t.loaderArr)}}function se(i,h){i&1&&A(0)}function oe(i,h){if(i&1&&(F(0),C(1,se,1,0,"ng-container",10),O()),i&2){let t=y(4);_(),m("ngTemplateOutlet",t.loaderIconTemplate||t._loaderIconTemplate)("ngTemplateOutletContext",$(3,Bt,wt(2,Zt)))}}function le(i,h){i&1&&b(0,"SpinnerIcon",16),i&2&&(m("styleClass","p-virtualscroller-loading-icon pi-spin"),S("data-pc-section","loadingIcon"))}function re(i,h){if(i&1&&C(0,oe,2,5,"ng-container",6)(1,le,1,2,"ng-template",null,5,Z),i&2){let t=j(2),e=y(3);m("ngIf",e.loaderIconTemplate||e._loaderIconTemplate)("ngIfElse",t)}}function ae(i,h){if(i&1&&(I(0,"div",14),C(1,ne,2,1,"ng-container",6)(2,re,3,2,"ng-template",null,4,Z),v()),i&2){let t=j(3),e=y(2);m("ngClass",$(4,jt,!e.loaderTemplate)),S("data-pc-section","loader"),_(),m("ngIf",e.loaderTemplate||e._loaderTemplate)("ngIfElse",t)}}function he(i,h){if(i&1){let t=_t();F(0),I(1,"div",7,1),gt("scroll",function(n){at(t);let s=y();return ht(s.onContainerScroll(n))}),C(3,Kt,2,5,"ng-container",6)(4,Yt,3,10,"ng-template",null,2,Z)(6,te,1,2,"div",8)(7,ae,4,6,"div",9),v(),O()}if(i&2){let t=j(5),e=y();_(),B(e._styleClass),m("ngStyle",e._style)("ngClass",St(12,$t,e.inline,e.both,e.horizontal)),S("id",e._id)("tabindex",e.tabindex)("data-pc-name","scroller")("data-pc-section","root"),_(2),m("ngIf",e.contentTemplate||e._contentTemplate)("ngIfElse",t),_(3),m("ngIf",e._showSpacer),_(),m("ngIf",!e.loaderDisabled&&e._showLoader&&e.d_loading)}}function ce(i,h){i&1&&A(0)}function de(i,h){if(i&1&&(F(0),C(1,ce,1,0,"ng-container",10),O()),i&2){let t=y(2);_(),m("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",q(5,nt,t.items,q(2,Gt,t._items,t.loadedColumns)))}}function me(i,h){if(i&1&&(yt(0),C(1,de,2,8,"ng-container",17)),i&2){let t=y();_(),m("ngIf",t.contentTemplate||t._contentTemplate)}}var pe=({dt:i})=>`
2
+ .p-virtualscroller {
3
+ position: relative;
4
+ overflow: auto;
5
+ contain: strict;
6
+ transform: translateZ(0);
7
+ will-change: scroll-position;
8
+ outline: 0 none;
9
+ }
10
+
11
+ .p-virtualscroller-content {
12
+ position: absolute;
13
+ top: 0;
14
+ left: 0;
15
+ min-height: 100%;
16
+ min-width: 100%;
17
+ will-change: transform;
18
+ }
19
+
20
+ .p-virtualscroller-spacer {
21
+ position: absolute;
22
+ top: 0;
23
+ left: 0;
24
+ height: 1px;
25
+ width: 1px;
26
+ transform-origin: 0 0;
27
+ pointer-events: none;
28
+ }
29
+
30
+ .p-virtualscroller-loader {
31
+ position: sticky;
32
+ top: 0;
33
+ left: 0;
34
+ width: 100%;
35
+ height: 100%;
36
+ background: ${i("virtualscroller.loader.mask.background")};
37
+ color: ${i("virtualscroller.loader.mask.color")};
38
+ }
39
+
40
+ .p-virtualscroller-loader-mask {
41
+ display: flex;
42
+ align-items: center;
43
+ justify-content: center;
44
+ }
45
+
46
+ .p-virtualscroller-loading-icon {
47
+ font-size: ${i("virtualscroller.loader.icon.size")};
48
+ width: ${i("virtualscroller.loader.icon.size")};
49
+ height: ${i("virtualscroller.loader.icon.size")};
50
+ }
51
+
52
+ .p-virtualscroller-horizontal > .p-virtualscroller-content {
53
+ display: flex;
54
+ }
55
+
56
+ .p-virtualscroller-inline .p-virtualscroller-content {
57
+ position: static;
58
+ }
59
+ `,Mt=(()=>{class i extends Ot{name="virtualscroller";theme=pe;static \u0275fac=(()=>{let t;return function(n){return(t||(t=x(i)))(n||i)}})();static \u0275prov=st({token:i,factory:i.\u0275fac})}return i})();var ue=(()=>{class i extends Pt{zone;get id(){return this._id}set id(t){this._id=t}get style(){return this._style}set style(t){this._style=t}get styleClass(){return this._styleClass}set styleClass(t){this._styleClass=t}get tabindex(){return this._tabindex}set tabindex(t){this._tabindex=t}get items(){return this._items}set items(t){this._items=t}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=t}get scrollHeight(){return this._scrollHeight}set scrollHeight(t){this._scrollHeight=t}get scrollWidth(){return this._scrollWidth}set scrollWidth(t){this._scrollWidth=t}get orientation(){return this._orientation}set orientation(t){this._orientation=t}get step(){return this._step}set step(t){this._step=t}get delay(){return this._delay}set delay(t){this._delay=t}get resizeDelay(){return this._resizeDelay}set resizeDelay(t){this._resizeDelay=t}get appendOnly(){return this._appendOnly}set appendOnly(t){this._appendOnly=t}get inline(){return this._inline}set inline(t){this._inline=t}get lazy(){return this._lazy}set lazy(t){this._lazy=t}get disabled(){return this._disabled}set disabled(t){this._disabled=t}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(t){this._loaderDisabled=t}get columns(){return this._columns}set columns(t){this._columns=t}get showSpacer(){return this._showSpacer}set showSpacer(t){this._showSpacer=t}get showLoader(){return this._showLoader}set showLoader(t){this._showLoader=t}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(t){this._numToleratedItems=t}get loading(){return this._loading}set loading(t){this._loading=t}get autoSize(){return this._autoSize}set autoSize(t){this._autoSize=t}get trackBy(){return this._trackBy}set trackBy(t){this._trackBy=t}get options(){return this._options}set options(t){this._options=t,t&&typeof t=="object"&&(Object.entries(t).forEach(([e,n])=>this[`_${e}`]!==n&&(this[`_${e}`]=n)),Object.entries(t).forEach(([e,n])=>this[`${e}`]!==n&&(this[`${e}`]=n)))}onLazyLoad=new K;onScroll=new K;onScrollIndexChange=new K;elementViewChild;contentViewChild;height;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;templates;_contentTemplate;_itemTemplate;_loaderTemplate;_loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;_contentStyleClass;get contentStyleClass(){return this._contentStyleClass}set contentStyleClass(t){this._contentStyleClass=t}get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(t=>this._columns?t:t.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}_componentStyle=lt(Mt);constructor(t){super(),this.zone=t}ngOnInit(){super.ngOnInit(),this.setInitialState()}ngOnChanges(t){super.ngOnChanges(t);let e=!1;if(this.scrollHeight=="100%"&&(this.height="100%"),t.loading){let{previousValue:n,currentValue:s}=t.loading;this.lazy&&n!==s&&s!==this.d_loading&&(this.d_loading=s,e=!0)}if(t.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),t.numToleratedItems){let{previousValue:n,currentValue:s}=t.numToleratedItems;n!==s&&s!==this.d_numToleratedItems&&(this.d_numToleratedItems=s)}if(t.options){let{previousValue:n,currentValue:s}=t.options;this.lazy&&n?.loading!==s?.loading&&s?.loading!==this.d_loading&&(this.d_loading=s.loading,e=!0),n?.numToleratedItems!==s?.numToleratedItems&&s?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=s.numToleratedItems)}this.initialized&&!e&&(t.items?.previousValue?.length!==t.items?.currentValue?.length||t.itemSize||t.scrollHeight||t.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"content":this._contentTemplate=t.template;break;case"item":this._itemTemplate=t.template;break;case"loader":this._loaderTemplate=t.template;break;case"loadericon":this._loaderIconTemplate=t.template;break;default:this._itemTemplate=t.template;break}})}ngAfterViewInit(){super.ngAfterViewInit(),Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1,super.ngOnDestroy()}viewInit(){tt(this.platformId)&&!this.initialized&&et(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=W(this.elementViewChild?.nativeElement),this.defaultHeight=H(this.elementViewChild?.nativeElement),this.defaultContentWidth=W(this.contentEl),this.defaultContentHeight=H(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(t){this.contentEl=t||this.contentViewChild?.nativeElement||xt(this.elementViewChild?.nativeElement,".p-virtualscroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[]}getElementRef(){return this.elementViewChild}getPageByFirst(t){return Math.floor(((t??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(t){return this._step?this.page!==this.getPageByFirst(t??this.first):!0}scrollTo(t){this.elementViewChild?.nativeElement?.scrollTo(t)}scrollToIndex(t,e="auto"){if(this.both?t.every(s=>s>-1):t>-1){let s=this.first,{scrollTop:o=0,scrollLeft:l=0}=this.elementViewChild?.nativeElement,{numToleratedItems:u}=this.calculateNumItems(),p=this.getContentPosition(),c=this.itemSize,T=(a=0,d)=>a<=d?0:a,g=(a,d,w)=>a*d+w,z=(a=0,d=0)=>this.scrollTo({left:a,top:d,behavior:e}),f=this.both?{rows:0,cols:0}:0,R=!1,r=!1;this.both?(f={rows:T(t[0],u[0]),cols:T(t[1],u[1])},z(g(f.cols,c[1],p.left),g(f.rows,c[0],p.top)),r=this.lastScrollPos.top!==o||this.lastScrollPos.left!==l,R=f.rows!==s.rows||f.cols!==s.cols):(f=T(t,u),this.horizontal?z(g(f,c,p.left),o):z(l,g(f,c,p.top)),r=this.lastScrollPos!==(this.horizontal?l:o),R=f!==s),this.isRangeChanged=R,r&&(this.first=f)}}scrollInView(t,e,n="auto"){if(e){let{first:s,viewport:o}=this.getRenderedRange(),l=(c=0,T=0)=>this.scrollTo({left:c,top:T,behavior:n}),u=e==="to-start",p=e==="to-end";if(u){if(this.both)o.first.rows-s.rows>t[0]?l(o.first.cols*this._itemSize[1],(o.first.rows-1)*this._itemSize[0]):o.first.cols-s.cols>t[1]&&l((o.first.cols-1)*this._itemSize[1],o.first.rows*this._itemSize[0]);else if(o.first-s>t){let c=(o.first-1)*this._itemSize;this.horizontal?l(c,0):l(0,c)}}else if(p){if(this.both)o.last.rows-s.rows<=t[0]+1?l(o.first.cols*this._itemSize[1],(o.first.rows+1)*this._itemSize[0]):o.last.cols-s.cols<=t[1]+1&&l((o.first.cols+1)*this._itemSize[1],o.first.rows*this._itemSize[0]);else if(o.last-s<=t+1){let c=(o.first+1)*this._itemSize;this.horizontal?l(c,0):l(0,c)}}}else this.scrollToIndex(t,n)}getRenderedRange(){let t=(s,o)=>o||s?Math.floor(s/(o||s)):0,e=this.first,n=0;if(this.elementViewChild?.nativeElement){let{scrollTop:s,scrollLeft:o}=this.elementViewChild.nativeElement;if(this.both)e={rows:t(s,this._itemSize[0]),cols:t(o,this._itemSize[1])},n={rows:e.rows+this.numItemsInViewport.rows,cols:e.cols+this.numItemsInViewport.cols};else{let l=this.horizontal?o:s;e=t(l,this._itemSize),n=e+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:e,last:n}}}calculateNumItems(){let t=this.getContentPosition(),e=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-t.left:0)||0,n=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-t.top:0)||0,s=(p,c)=>c||p?Math.ceil(p/(c||p)):0,o=p=>Math.ceil(p/2),l=this.both?{rows:s(n,this._itemSize[0]),cols:s(e,this._itemSize[1])}:s(this.horizontal?e:n,this._itemSize),u=this.d_numToleratedItems||(this.both?[o(l.rows),o(l.cols)]:o(l));return{numItemsInViewport:l,numToleratedItems:u}}calculateOptions(){let{numItemsInViewport:t,numToleratedItems:e}=this.calculateNumItems(),n=(l,u,p,c=!1)=>this.getLast(l+u+(l<p?2:3)*p,c),s=this.first,o=this.both?{rows:n(this.first.rows,t.rows,e[0]),cols:n(this.first.cols,t.cols,e[1],!0)}:n(this.first,t,e);this.last=o,this.numItemsInViewport=t,this.d_numToleratedItems=e,this.showLoader&&(this.loaderArr=this.both?Array.from({length:t.rows}).map(()=>Array.from({length:t.cols})):Array.from({length:t})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:s.cols}:0:s,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[t,e]=[W(this.contentEl),H(this.contentEl)];t!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),e!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[n,s]=[W(this.elementViewChild.nativeElement),H(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=n<this.defaultWidth?n+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=s<this.defaultHeight?s+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}})}getLast(t=0,e=!1){return this._items?Math.min(e?(this._columns||this._items[0]).length:this._items.length,t):0}getContentPosition(){if(this.contentEl){let t=getComputedStyle(this.contentEl),e=parseFloat(t.paddingLeft)+Math.max(parseFloat(t.left)||0,0),n=parseFloat(t.paddingRight)+Math.max(parseFloat(t.right)||0,0),s=parseFloat(t.paddingTop)+Math.max(parseFloat(t.top)||0,0),o=parseFloat(t.paddingBottom)+Math.max(parseFloat(t.bottom)||0,0);return{left:e,right:n,top:s,bottom:o,x:e+n,y:s+o}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){let t=this.elementViewChild.nativeElement.parentElement.parentElement,e=this._scrollWidth||`${this.elementViewChild.nativeElement.offsetWidth||t.offsetWidth}px`,n=this._scrollHeight||`${this.elementViewChild.nativeElement.offsetHeight||t.offsetHeight}px`,s=(o,l)=>this.elementViewChild.nativeElement.style[o]=l;this.both||this.horizontal?(s("height",n),s("width",e)):s("height",n)}}setSpacerSize(){if(this._items){let t=this.getContentPosition(),e=(n,s,o,l=0)=>this.spacerStyle=X(J({},this.spacerStyle),{[`${n}`]:(s||[]).length*o+l+"px"});this.both?(e("height",this._items,this._itemSize[0],t.y),e("width",this._columns||this._items[1],this._itemSize[1],t.x)):this.horizontal?e("width",this._columns||this._items,this._itemSize,t.x):e("height",this._items,this._itemSize,t.y)}}setContentPosition(t){if(this.contentEl&&!this._appendOnly){let e=t?t.first:this.first,n=(o,l)=>o*l,s=(o=0,l=0)=>this.contentStyle=X(J({},this.contentStyle),{transform:`translate3d(${o}px, ${l}px, 0)`});if(this.both)s(n(e.cols,this._itemSize[1]),n(e.rows,this._itemSize[0]));else{let o=n(e,this._itemSize);this.horizontal?s(o,0):s(0,o)}}}onScrollPositionChange(t){let e=t.target,n=this.getContentPosition(),s=(r,a)=>r?r>a?r-a:r:0,o=(r,a)=>a||r?Math.floor(r/(a||r)):0,l=(r,a,d,w,E,M)=>r<=E?E:M?d-w-E:a+E-1,u=(r,a,d,w,E,M,G)=>r<=M?0:Math.max(0,G?r<a?d:r-M:r>a?d:r-2*M),p=(r,a,d,w,E,M=!1)=>{let G=a+w+2*E;return r>=E&&(G+=E+1),this.getLast(G,M)},c=s(e.scrollTop,n.top),T=s(e.scrollLeft,n.left),g=this.both?{rows:0,cols:0}:0,z=this.last,f=!1,R=this.lastScrollPos;if(this.both){let r=this.lastScrollPos.top<=c,a=this.lastScrollPos.left<=T;if(!this._appendOnly||this._appendOnly&&(r||a)){let d={rows:o(c,this._itemSize[0]),cols:o(T,this._itemSize[1])},w={rows:l(d.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],r),cols:l(d.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],a)};g={rows:u(d.rows,w.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],r),cols:u(d.cols,w.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],a)},z={rows:p(d.rows,g.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:p(d.cols,g.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},f=g.rows!==this.first.rows||z.rows!==this.last.rows||g.cols!==this.first.cols||z.cols!==this.last.cols||this.isRangeChanged,R={top:c,left:T}}}else{let r=this.horizontal?T:c,a=this.lastScrollPos<=r;if(!this._appendOnly||this._appendOnly&&a){let d=o(r,this._itemSize),w=l(d,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,a);g=u(d,w,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,a),z=p(d,g,this.last,this.numItemsInViewport,this.d_numToleratedItems),f=g!==this.first||z!==this.last||this.isRangeChanged,R=r}}return{first:g,last:z,isRangeChanged:f,scrollPos:R}}onScrollChange(t){let{first:e,last:n,isRangeChanged:s,scrollPos:o}=this.onScrollPositionChange(t);if(s){let l={first:e,last:n};if(this.setContentPosition(l),this.first=e,this.last=n,this.lastScrollPos=o,this.handleEvents("onScrollIndexChange",l),this._lazy&&this.isPageChanged(e)){let u={first:this._step?Math.min(this.getPageByFirst(e)*this._step,this.items.length-this._step):e,last:Math.min(this._step?(this.getPageByFirst(e)+1)*this._step:n,this.items.length)};(this.lazyLoadState.first!==u.first||this.lazyLoadState.last!==u.last)&&this.handleEvents("onLazyLoad",u),this.lazyLoadState=u}}}onContainerScroll(t){if(this.handleEvents("onScroll",{originalEvent:t}),this._delay&&this.isPageChanged()){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){let{isRangeChanged:e}=this.onScrollPositionChange(t);(e||(this._step?this.isPageChanged():!1))&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(t),this.d_loading&&this.showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst()),this.cd.detectChanges()},this._delay)}else!this.d_loading&&this.onScrollChange(t)}bindResizeListener(){tt(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let t=this.document.defaultView,e=Vt()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(t,e,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(et(this.elementViewChild?.nativeElement)){let[t,e]=[W(this.elementViewChild?.nativeElement),H(this.elementViewChild?.nativeElement)],[n,s]=[t!==this.defaultWidth,e!==this.defaultHeight];(this.both?n||s:this.horizontal?n:this.vertical?s:!1)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=t,this.defaultHeight=e,this.defaultContentWidth=W(this.contentEl),this.defaultContentHeight=H(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(t,e){return this.options&&this.options[t]?this.options[t](e):this[t].emit(e)}getContentOptions(){return{contentStyleClass:`p-virtualscroller-content ${this.d_loading?"p-virtualscroller-loading":""}`,items:this.loadedItems,getItemOptions:t=>this.getOptions(t),loading:this.d_loading,getLoaderOptions:(t,e)=>this.getLoaderOptions(t,e),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(t){let e=(this._items||[]).length,n=this.both?this.first.rows+t:this.first+t;return{index:n,count:e,first:n===0,last:n===e-1,even:n%2===0,odd:n%2!==0}}getLoaderOptions(t,e){let n=this.loaderArr.length;return J({index:t,count:n,first:t===0,last:t===n-1,even:t%2===0,odd:t%2!==0},e)}static \u0275fac=function(e){return new(e||i)(dt(ct))};static \u0275cmp=V({type:i,selectors:[["p-scroller"],["p-virtualscroller"],["p-virtual-scroller"],["p-virtualScroller"]],contentQueries:function(e,n,s){if(e&1&&(Q(s,Rt,4),Q(s,Ht,4),Q(s,Wt,4),Q(s,kt,4),Q(s,Ft,4)),e&2){let o;P(o=D())&&(n.contentTemplate=o.first),P(o=D())&&(n.itemTemplate=o.first),P(o=D())&&(n.loaderTemplate=o.first),P(o=D())&&(n.loaderIconTemplate=o.first),P(o=D())&&(n.templates=o)}},viewQuery:function(e,n){if(e&1&&(Y(At,5),Y(Rt,5)),e&2){let s;P(s=D())&&(n.elementViewChild=s.first),P(s=D())&&(n.contentViewChild=s.first)}},hostVars:2,hostBindings:function(e,n){e&2&&pt("height",n.height)},inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Ct([Mt]),L,rt],ngContentSelectors:Qt,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","ngClass"],["class","p-virtualscroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-virtualscroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-virtualscroller-spacer",3,"ngStyle"],[1,"p-virtualscroller-loader",3,"ngClass"],[4,"ngFor","ngForOf"],[3,"styleClass"],[4,"ngIf"]],template:function(e,n){if(e&1&&(ft(),C(0,he,8,16,"ng-container",6)(1,me,2,1,"ng-template",null,0,Z)),e&2){let s=j(2);m("ngIf",!n._disabled)("ngIfElse",s)}},dependencies:[Et,It,vt,Tt,bt,zt,Dt,U],encapsulation:2})}return i})(),Ne=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=mt({type:i});static \u0275inj=ot({imports:[ue,U,U]})}return i})();export{ge as a,Ce as b,ve as c,ue as d,Ne as e};
@@ -0,0 +1 @@
1
+ import{a as m}from"./chunk-2US5D2LY.js";import{g as P}from"./chunk-ZB6TB7JI.js";import"./chunk-7KQDKLO4.js";import"./chunk-H4V6YZX2.js";import"./chunk-WAJWW3TC.js";import"./chunk-U6SRN7P3.js";import"./chunk-TPGKCMVN.js";import"./chunk-BCXNVGDH.js";import{a as x}from"./chunk-U5LD55IP.js";import"./chunk-F2X3VGZZ.js";import"./chunk-TYETQJ2X.js";import{t as v}from"./chunk-353U23ZQ.js";import{$b as g,Bb as f,Mc as a,Vb as i,Wb as o,ec as d,fc as _,ha as c,pa as l,qa as p,qc as r,vb as u,yc as y}from"./chunk-ARSLNNKY.js";import"./chunk-YQFG5XE2.js";function C(e,h){if(e&1){let t=g();i(0,"div",3)(1,"button",4),d("click",function(){l(t);let s=_();return p(s.migratePaymentAccount())}),r(2," Migrate Payment Account "),o()()}}function A(e,h){e&1&&(i(0,"div",5),r(1," reserved for future User Interface (UI) enhancements "),o())}var V=(()=>{class e{constructor(){this.migrateService=c(m),this.toastr=c(x)}migratePaymentAccount(){this.migrateService.migratePaymentMethod().subscribe(t=>{this.toastr.success(t.message,"Migration Successful")})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=u({type:e,selectors:[["app-payment-account"]],features:[y([m])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["pageTitle","Payment Account"],[1,"d-flex","gap-2"],[1,"btn","btn-success",3,"click"],[1,"container","d-flex","justify-content-center","align-items-center",2,"height","100vh"]],template:function(n,s){n&1&&(i(0,"app-main-panel",2),f(1,C,3,0,"ng-template",null,0,a)(3,A,2,0,"ng-template",null,1,a),o())},dependencies:[P,v],encapsulation:2})}}return e})();export{V as PaymentAccountComponent};
@@ -0,0 +1 @@
1
+ import{a as i}from"./chunk-QIXIZZPY.js";import{d as a}from"./chunk-U5LD55IP.js";import{ba as o,ha as n}from"./chunk-ARSLNNKY.js";var h=(()=>{class e{constructor(){this.#t=n(a),this.authService=n(i)}#t;getJournalEntryLoader(){return this.#t.get("","api/JournalLoader/JournalEntry")}getJournalReceiveMoney(){return this.#t.get("","api/JournalLoader/ReceiveJournal")}getJournalRecordExpenseLoader(){return this.#t.get("","api/JournalLoader/RecordExpense")}getJournalEntryData(t,r={}){return this.#t.post("","api/Journal/JournalEntry",t,r)}getJournalEntryInfo(t){let r={ID:t};return this.#t.get("","/api/Journal/Info",{params:r})}getJournalEntryForm(t){return this.#t.get("",`api/journalloader/form/${t}`).pipe()}getJournalEntryCount(t){return this.#t.post("","api/Journal/JournalEntryCount",t)}getJournalEntryCustomerSuggestions(t){let r={Prefix:t,Count:100};return this.#t.get(this.authService.getTenantExternalURL(),"/API/AC/GetCustomerSuggestion",{params:r})}getJournalEntrySupplierSuggestions(t){let r={Prefix:t,Count:100};return this.#t.get(this.authService.getTenantExternalURL(),"/API/AC/GetSupplierSuggestion",{params:r})}submitJournalEntry(t){return this.#t.post(void 0,"api/journal/submit",t,{observe:"response"})}deleteJournalEntry(t){let r={params:{ID:t.join(",")}};return this.#t.delete(void 0,"/api/Journal/delete",r)}fetchCategoryOptions(){return this.#t.get("","api/ChartOfAccount/CategoryOptions")}submitChartAccount(t,r={}){return this.#t.post("","api/ChartOfAccount/Submit",t,r)}getImageFileName(t){return new URL(t).pathname.split("/").pop()||""}importPreviewJournal(t){return this.#t.post(void 0,"api/Journal/ImportPreview",t)}importConfirmJournal(t){return this.#t.post(void 0,"api/Journal/ImportConfirm",t)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=o({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{h as a};
@@ -1 +1 @@
1
- import{d as o}from"./chunk-CEUNPX5D.js";import{ba as r,ha as i}from"./chunk-2VF35PRV.js";var c=(()=>{class n{constructor(){this.httpService=i(o)}getJournalInvoice(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/invoice/get",t)}generateJournalInvoice(e){return this.httpService.post(void 0,"api/GenerateJournal/invoice/Submit",e)}getJournalSupplierBill(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/bill/get",t)}generateJournalSupplierBill(e){return this.httpService.post(void 0,"api/GenerateJournal/bill/Submit",e)}getJournalShift(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/Shift/get",t)}generateJornalShift(e){return this.httpService.post(void 0,"api/GenerateJournal/Shift/Submit",e)}getARJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinInvoice/get",t)}createARJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinInvoice/Submit",e)}getAPJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinBill/get",t)}createAPJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinBill/Submit",e)}getAdjustmentJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/InventoryAdjustment/get",t)}createAdjustmentJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/InventoryAdjustment/Submit",e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=r({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();export{c as a};
1
+ import{d as o}from"./chunk-U5LD55IP.js";import{ba as r,ha as i}from"./chunk-ARSLNNKY.js";var c=(()=>{class n{constructor(){this.httpService=i(o)}getJournalInvoice(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/invoice/get",t)}generateJournalInvoice(e){return this.httpService.post(void 0,"api/GenerateJournal/invoice/Submit",e)}getJournalSupplierBill(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/bill/get",t)}generateJournalSupplierBill(e){return this.httpService.post(void 0,"api/GenerateJournal/bill/Submit",e)}getJournalShift(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/Shift/get",t)}generateJornalShift(e){return this.httpService.post(void 0,"api/GenerateJournal/Shift/Submit",e)}getARJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinInvoice/get",t)}createARJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinInvoice/Submit",e)}getAPJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinBill/get",t)}createAPJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinBill/Submit",e)}getAdjustmentJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/InventoryAdjustment/get",t)}createAdjustmentJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/InventoryAdjustment/Submit",e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=r({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();export{c as a};