dealposbooks 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/3rdpartylicenses.txt +56 -56
  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/_customizer.scss +11 -6
  7. package/assets/scss/layouts/_layout.scss +6 -6
  8. package/assets/scss/layouts/_sidebar.scss +19 -14
  9. package/assets/scss/style.scss +24 -8
  10. package/assets/scss/variables/_variables.scss +6 -52
  11. package/chunk-223MMYH7.js +141 -0
  12. package/chunk-33KLXB2L.js +180 -0
  13. package/{chunk-URKXDZJE.js → chunk-4Y3NYY52.js} +1 -1
  14. package/{chunk-I72ECAQH.js → chunk-5GQEUX4M.js} +1 -1
  15. package/chunk-5RRUIJ5U.js +1 -0
  16. package/{chunk-7X454BGN.js → chunk-6BFODHTZ.js} +1 -1
  17. package/chunk-AXJA6OO7.js +246 -0
  18. package/chunk-AYVR3RIS.js +297 -0
  19. package/{chunk-ZT4NOONZ.js → chunk-B6N6C3RA.js} +1 -1
  20. package/chunk-CINZRZMB.js +1 -0
  21. package/chunk-DBRLQ7BX.js +397 -0
  22. package/{chunk-QUR72LET.js → chunk-DJ5UHXOJ.js} +1 -1
  23. package/chunk-DUOJKP2G.js +300 -0
  24. package/chunk-E4ZVZRLO.js +210 -0
  25. package/chunk-EBOJJWD5.js +1 -0
  26. package/{chunk-D5U6AOFB.js → chunk-EMVZ65TI.js} +1 -1
  27. package/chunk-ENPYMVZG.js +1 -0
  28. package/chunk-EOLHIQHQ.js +1 -0
  29. package/chunk-ERX7ND7E.js +1 -0
  30. package/chunk-FKTEL4CU.js +524 -0
  31. package/chunk-FOUHOMEE.js +301 -0
  32. package/chunk-H4HFCRFZ.js +1660 -0
  33. package/chunk-HBVENULS.js +1 -0
  34. package/chunk-J53TOHZH.js +1 -0
  35. package/chunk-JC7YOUAM.js +1 -0
  36. package/chunk-JR4EQTPJ.js +59 -0
  37. package/chunk-JSAAKZBO.js +1 -0
  38. package/chunk-KZ2KGWUY.js +1 -0
  39. package/chunk-LON3T466.js +1 -0
  40. package/chunk-LYEN4UBW.js +1 -0
  41. package/chunk-MG3SLH6O.js +1 -0
  42. package/chunk-NQ3CKBYP.js +1 -0
  43. package/{chunk-YUFMXLRG.js → chunk-NS7JH3QF.js} +1 -1
  44. package/{chunk-2XZW23PQ.js → chunk-O65HPMSJ.js} +1 -1
  45. package/chunk-OCLABZZW.js +1 -0
  46. package/chunk-OH2CJBFF.js +1 -0
  47. package/chunk-OSV7AMB2.js +1 -0
  48. package/{chunk-2LKTSMUI.js → chunk-OWI3BWEZ.js} +7 -7
  49. package/chunk-OYYYX3IP.js +1 -0
  50. package/{chunk-MQJQRREL.js → chunk-PNQSQQIT.js} +1 -1
  51. package/chunk-Q5PJ63MA.js +1 -0
  52. package/{chunk-7RH6F4PN.js → chunk-R2KG54OT.js} +3 -1
  53. package/chunk-REHXXPZY.js +1 -0
  54. package/{chunk-ONU5ICNZ.js → chunk-RIALPB2D.js} +1 -1
  55. package/chunk-RJYO2KKV.js +1 -0
  56. package/chunk-ROKYJX6Q.js +193 -0
  57. package/chunk-RUGQ4OJG.js +1 -0
  58. package/chunk-RUP2SWYB.js +231 -0
  59. package/chunk-RUVT4SCE.js +1 -0
  60. package/{chunk-UZFJYFH2.js → chunk-SS3CMCAX.js} +4 -2
  61. package/chunk-TMY4NWZ6.js +1 -0
  62. package/chunk-TOJAZ32N.js +1 -0
  63. package/chunk-TUL6Y2HH.js +1 -0
  64. package/{chunk-33RD6RQS.js → chunk-UGKSIDKE.js} +1 -1
  65. package/chunk-UTL7D6E7.js +821 -0
  66. package/{chunk-4Z6KFX2O.js → chunk-V7Y6Z4AQ.js} +2 -2
  67. package/chunk-VY4Z33EE.js +7 -0
  68. package/chunk-VYKJK5YU.js +7 -0
  69. package/{chunk-M4ZOPGSP.js → chunk-WG7APCJU.js} +1 -1
  70. package/{chunk-EE4WG35V.js → chunk-X2NM4CIV.js} +6 -2
  71. package/chunk-XWVLTTMV.js +1 -0
  72. package/chunk-Y6MJGNH2.js +1 -0
  73. package/chunk-YKYI4A3V.js +1 -0
  74. package/chunk-ZL4DDXH7.js +348 -0
  75. package/{chunk-6TJIZZK6.js → chunk-ZU7I7MCL.js} +1 -1
  76. package/{chunk-U2S74ZLK.js → chunk-ZZPBK2XT.js} +1 -1
  77. package/index.html +6 -3
  78. package/main-MCP7AVEU.js +1 -0
  79. package/package.json +1 -1
  80. package/styles-IAH7RNKW.css +1 -0
  81. package/chunk-2QCAOSMO.js +0 -256
  82. package/chunk-3ROVFYLI.js +0 -189
  83. package/chunk-3UAQZJAG.js +0 -180
  84. package/chunk-7KARVIIN.js +0 -1
  85. package/chunk-A3I2VQNX.js +0 -141
  86. package/chunk-A3MXO6MA.js +0 -1
  87. package/chunk-B5ZO2I4D.js +0 -2
  88. package/chunk-BP2JJ6HZ.js +0 -160
  89. package/chunk-BWO4PVAG.js +0 -301
  90. package/chunk-C4WUUVLC.js +0 -1
  91. package/chunk-CH2GYE5J.js +0 -1
  92. package/chunk-DF2QDC4T.js +0 -1
  93. package/chunk-DKWZOSVY.js +0 -59
  94. package/chunk-EEJWF26F.js +0 -1
  95. package/chunk-F7FJPDUV.js +0 -1
  96. package/chunk-FDDNZH4H.js +0 -1633
  97. package/chunk-FYNIFRG5.js +0 -1
  98. package/chunk-HKMI4ZYY.js +0 -393
  99. package/chunk-HU6SF3HD.js +0 -1
  100. package/chunk-IWUDRSTJ.js +0 -235
  101. package/chunk-KJWN47PL.js +0 -1
  102. package/chunk-MVGPOIFT.js +0 -1
  103. package/chunk-OHEAUNEW.js +0 -1
  104. package/chunk-P4OJNULI.js +0 -1
  105. package/chunk-PCJXJ6O4.js +0 -370
  106. package/chunk-PFXPLNMA.js +0 -1
  107. package/chunk-PQTHPF23.js +0 -7
  108. package/chunk-PV6INEW2.js +0 -1
  109. package/chunk-QPA73UD5.js +0 -616
  110. package/chunk-RFZOXUTS.js +0 -1
  111. package/chunk-RIUEIX64.js +0 -1
  112. package/chunk-UPDO63XT.js +0 -1
  113. package/chunk-UQ3SWGEA.js +0 -1
  114. package/chunk-WZKSD7XN.js +0 -284
  115. package/chunk-X2CQD76I.js +0 -208
  116. package/chunk-YX7446ZM.js +0 -1
  117. package/chunk-Z53S4NM2.js +0 -736
  118. package/main-U76NYT5G.js +0 -1
  119. package/styles-OZO2XDGZ.css +0 -1
@@ -0,0 +1 @@
1
+ import{d as N}from"./chunk-EQDQRRRY.js";var S=N((r,l)=>{(function(n,i){typeof r=="object"&&typeof l=="object"?l.exports=i(n._Highcharts,n._Highcharts.AST):typeof define=="function"&&define.amd?define("highcharts/modules/no-data-to-display",["highcharts/highcharts"],function(s){return i(s,s.AST)}):typeof r=="object"?r["highcharts/modules/no-data-to-display"]=i(n._Highcharts,n._Highcharts.AST):n.Highcharts=i(n.Highcharts,n.Highcharts.AST)})(typeof window>"u"?r:window,(n,i)=>(()=>{"use strict";var s={660:t=>{t.exports=i},944:t=>{t.exports=n}},c={};function o(t){var a=c[t];if(a!==void 0)return a.exports;var e=c[t]={exports:{}};return s[t](e,e.exports,o),e.exports}o.n=t=>{var a=t&&t.__esModule?()=>t.default:()=>t;return o.d(a,{a}),a},o.d=(t,a)=>{for(var e in a)o.o(a,e)&&!o.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:a[e]})},o.o=(t,a)=>Object.prototype.hasOwnProperty.call(t,a);var f={};o.d(f,{default:()=>A});var u=o(944),d=o.n(u),g=o(660),D=o.n(g);let b={lang:{noData:"No data to display"},noData:{attr:{zIndex:1},position:{x:0,y:0,align:"center",verticalAlign:"middle"},style:{fontWeight:"bold",fontSize:"0.8em",color:"#666666"}}},{addEvent:y,extend:v,merge:x}=d();function m(){let t=this.series||[],a=t.length;for(;a--;)if(t[a].hasData()&&!t[a].options.isInternal)return!0;return this.loadingShown}function w(){this.noDataLabel&&(this.noDataLabel=this.noDataLabel.destroy())}function L(t){let a=this.options,e=t||a&&a.lang.noData||"",h=a&&(a.noData||{});this.renderer&&(this.noDataLabel||(this.noDataLabel=this.renderer.label(e,0,0,void 0,void 0,void 0,h.useHTML,void 0,"no-data").add()),this.styledMode||this.noDataLabel.attr(D().filterUserAttributes(h.attr||{})).css(h.style||{}),this.noDataLabel.align(v(this.noDataLabel.getBBox(),h.position||{}),!1,"plotBox"))}function H(){this.hasData()?this.hideNoData():this.showNoData()}let p=d();({compose:function(t,a){let e=t.prototype;e.showNoData||(e.hasData=m,e.hideNoData=w,e.showNoData=L,y(t,"render",H),x(!0,a,b))}}).compose(p.Chart,p.defaultOptions);let A=d();return f.default})())});export default S();
@@ -0,0 +1 @@
1
+ import{a as He}from"./chunk-G4XX7EU2.js";import{a as et,b as je,c as Ue}from"./chunk-AYVR3RIS.js";import{a as Fe}from"./chunk-TUL6Y2HH.js";import{a as qe,b as Ge}from"./chunk-X2NM4CIV.js";import"./chunk-WG7APCJU.js";import"./chunk-ZZPBK2XT.js";import{a as H}from"./chunk-LYEN4UBW.js";import{a as we,b as Te}from"./chunk-4Y3NYY52.js";import{a as Pe,b as Ne}from"./chunk-OCLABZZW.js";import{b as Ve,c as ke,h as Ae,j as Le,k as Oe,l as Be}from"./chunk-H4HFCRFZ.js";import{g as oe,h as ae}from"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import"./chunk-JR4EQTPJ.js";import{a as B,b as q}from"./chunk-5GQEUX4M.js";import{f as Me,g as O}from"./chunk-33KLXB2L.js";import{f as re,g as L}from"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import{u as ne,v as ie}from"./chunk-OWI3BWEZ.js";import{Ga as Ie,b as X,c as N,e as V,f as Y,g as Ce,h as U,i as ye,j as J,l as Q,o as Z,s as Re,t as Se,u as ee}from"./chunk-ROKYJX6Q.js";import{d as De}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import{m as te,p as k,w as A}from"./chunk-6BFODHTZ.js";import{k as be,n as M,r as $,s as K,t as P}from"./chunk-RUGQ4OJG.js";import{Bb as d,Fc as C,Gc as z,Ha as b,Hc as F,Ic as h,J as W,Kb as p,Nb as xe,Tc as ve,Ub as r,Vb as n,Wb as c,X as ue,Z as I,_b as y,c as me,ca as de,dc as w,ec as m,gb as l,ia as f,mc as a,nc as R,qa as _,qc as fe,ra as E,rc as _e,s as T,sc as Ee,tc as he,ub as S,vc as pe,wa as ge,wc as D}from"./chunk-VYKJK5YU.js";import{a as g,b as x,e as Ze}from"./chunk-EQDQRRRY.js";var G=(()=>{class t{#e=f(De);#t=f(Fe);getRecurringExpenses(e){return this.#e.post(void 0,"api/RecurringExpense/GetList",e)}fetchRecurringExpenseForm(e){return this.#e.get(void 0,`api/RecurringExpense/form/${e??""}`)}fetchSupplierSuggestion(e){let i={count:100,prefix:e};return this.#e.post(`https://${this.#t.getFullDomain()}/`,"API/AC/GetSupplierSuggestion",i)}submitRecurringExpense(e,i={}){return this.#e.post(void 0,"api/RecurringExpense/submit",e,i)}removeRecurringExpense(e){return this.#e.delete(void 0,`api/RecurringExpense/${e}`,void 0)}removeRecurringExpenses(e){let i={body:e};return this.#e.delete(void 0,"api/RecurringExpense/Batch",i)}getRecurringExpenseByID(e){return this.#e.get(void 0,`api/RecurringExpense/Info/${e}`)}getAssetValueList(){return this.#e.get(void 0,"api/AssetValue/GetListt")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var it=["class","page"],rt=t=>["details/",t];function ot(t,u){if(t&1){let e=y();r(0,"p-button",11),w("onClick",function(){_(e);let o=m(2);return E(o.onDeleteSelected())}),n()}}function at(t,u){if(t&1&&(r(0,"div",7),d(1,ot,1,0,"p-button",8),r(2,"a",9),c(3,"i",10),r(4,"span"),a(5,"Add"),n()()()),t&2){let e=m();l(),p("ngIf",e.isAnyRowSelected())}}function lt(t,u){t&1&&(r(0,"tr")(1,"th"),c(2,"p-tableHeaderCheckbox"),n(),r(3,"th"),a(4,"Outlet"),n(),r(5,"th"),a(6,"Name"),n(),r(7,"th"),a(8,"Expense Account"),n(),r(9,"th"),a(10,"Start Date"),n(),r(11,"th"),a(12,"End Date"),n(),r(13,"th"),a(14,"Last Expense"),n(),r(15,"th"),a(16,"Amount"),n(),r(17,"th"),a(18,"Frequency"),n()())}function pt(t,u){if(t&1&&(r(0,"tr")(1,"td"),c(2,"p-tableCheckbox",15),n(),r(3,"td"),a(4),n(),r(5,"td")(6,"a",16),a(7),n()(),r(8,"td"),a(9),n(),r(10,"td"),a(11),C(12,"date"),n(),r(13,"td"),a(14),C(15,"date"),n(),r(16,"td"),a(17),C(18,"date"),n(),r(19,"td"),a(20),C(21,"number"),n(),r(22,"td"),a(23),n()()),t&2){let e=u.$implicit;l(2),p("value",e),l(2),R(e.outletName),l(2),p("routerLink",D(21,rt,e.id)),l(),R(e.name),l(2),R(e.expenseName),l(2),R(F(12,10,e.startDate,"d MMM y")),l(3),R(F(15,13,e.endDate,"d MMM y")),l(3),R(F(18,16,e.lastExpenseDate,"d MMM y")),l(3),R(z(21,19,e.amount)),l(3),R(e.repeatTypeLabel)}}function ct(t,u){if(t&1&&(r(0,"div"),a(1),n()),t&2){let e=m(3);l(),fe(" Showing ",e.recurringExpenseFilter().PageNumber," to ",e.recurringExpenseFilter().RowCount," of ",e.recurringExpenseData().count," entries ")}}function st(t,u){if(t&1){let e=y();r(0,"p-card",13)(1,"p-table",14),w("onPage",function(o){_(e);let s=m(2);return E(s.onPageChange(o))})("onHeaderCheckboxToggle",function(o){_(e);let s=m(2);return E(s.onSelectAll(o))})("onRowSelect",function(o){_(e);let s=m(2);return E(s.onRowSelect(o))})("onRowUnselect",function(o){_(e);let s=m(2);return E(s.onRowUnselect(o))}),d(2,lt,19,0,"ng-template",null,3,h)(4,pt,24,23,"ng-template",null,4,h)(6,ct,2,3,"ng-template",null,5,h),n()()}if(t&2){let e=m(2);l(),p("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("lazy",!0)("totalRecords",e.recurringExpenseData().count)("rows",e.recurringExpenseFilter().RowCount)("paginator",!0)("value",e.recurringExpenseData().data)}}function mt(t,u){if(t&1&&d(0,st,8,7,"p-card",12),t&2){let e=m();p("ngIf",e.recurringExpenseData())}}function ut(t,u){if(t&1&&(r(0,"form",17)(1,"div",18)(2,"label",19),a(3,"Outlet"),n(),c(4,"p-select",20),n()()),t&2){let e=m();p("formGroup",e.recurringExpenseForm),l(4),p("options",e.repeatType())}}var Ke=(()=>{class t{constructor(){this.recurringExpenseService=f(G),this.recurringExpenseFilter=b(null),this.visible=b(!1),this.recurringExpenseData=b(null),this.repeatType=b([{label:"Monthly",value:1},{label:"Yearly",value:2}]),this.isAnyRowSelected=ve(()=>this.recurringExpenseData()?this.recurringExpenseData().data.some(e=>e.checkbox):!1),this.loadRecurringExpenses=Pe(me(W(e=>this.recurringExpenseService.getRecurringExpenses(e).pipe(T(i=>x(g({},i),{data:i.data.map(o=>x(g({},o),{checkbox:!1}))})),Ne({next:i=>this.recurringExpenseData.set(i),error:i=>console.error(i)})))))}ngOnInit(){this.recurringExpenseFilter.set({PageNumber:1,RowCount:10,Text:null,Frequency:1}),this.loadRecurringExpenses(this.recurringExpenseFilter),this.generateRecurringExpenseForm()}onPageChange(e){this.recurringExpenseFilter.update(i=>x(g({},i),{PageNumber:e.first/e.rows+1}))}onSelectAll(e){this.recurringExpenseData.update(i=>x(g({},i),{data:i.data.map(o=>x(g({},o),{checkbox:e.checked}))}))}onRowSelect(e){this.recurringExpenseData.update(i=>x(g({},i),{data:i.data.map(o=>x(g({},o),{checkbox:e.data.id===o.id}))}))}onRowUnselect(e){Array.isArray(e.data)?this.recurringExpenseData.update(i=>x(g({},i),{data:i.data.map((o,s)=>x(g({},o),{checkbox:e.data[s].id===o.id?!1:o.checkbox}))})):e.data&&typeof e.data=="object"&&"id"in e.data&&this.recurringExpenseData.update(i=>x(g({},i),{data:i.data.map(o=>x(g({},o),{checkbox:e.data.id===o.id?!1:o.checkbox}))}))}onDeleteSelected(){let e=this.recurringExpenseData().data.filter(o=>o.checkbox).map(o=>o.id);if(e.length===0)return;(e.length===1?this.recurringExpenseService.removeRecurringExpense(e[0]):this.recurringExpenseService.removeRecurringExpenses(e)).pipe(H("response")).pipe(I(()=>this.loadRecurringExpenses(this.recurringExpenseFilter))).subscribe()}onSearchEvent(e){console.log(e),this.recurringExpenseFilter.update(i=>x(g({},i),{Text:e.trim()}))}onFilterEvent(){this.visible.update(e=>!e)}onSubmitFilterDialog(){let e=this.recurringExpenseForm.value;Object.keys(e).forEach(i=>{this.recurringExpenseFilter.update(o=>x(g({},o),{[i]:e[i]}))}),this.visible.update(i=>!i)}onUpdateFilter(e,i){this.recurringExpenseFilter.update(o=>x(g({},o),{[e]:i}))}generateRecurringExpenseForm(){this.recurringExpenseForm=new Ce({PageNumber:new U(1),RowCount:new U(20),Text:new U(null),Frequency:new U(1)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-recurring-expense",8,"page"]],attrs:it,decls:7,vars:2,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["pageTitle","Recurring Expenses",3,"searchEmitted","filterEmitted","isSearchableInput","isFilterable"],[1,"d-flex","gap-2"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick",4,"ngIf"],["routerLink","create",1,"p-button"],[1,"fa-solid","fa-plus"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick"],["styleClass","h-100",4,"ngIf"],["styleClass","h-100"],["stripedRows","","dataKey","id",3,"onPage","onHeaderCheckboxToggle","onRowSelect","onRowUnselect","scrollable","scrollHeight","lazy","totalRecords","rows","paginator","value"],[3,"value"],[1,"link-primary",3,"routerLink"],[1,"d-flex","flex-column",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["formControlName","Frequency","appendTo","body","optionLabel","label","optionValue","value","placeholder","Select Outlet",3,"options"]],template:function(i,o){if(i&1){let s=y();r(0,"app-main-panel",6),w("searchEmitted",function(Qe){return _(s),E(o.onSearchEvent(Qe))})("filterEmitted",function(){return _(s),E(o.onFilterEvent())}),d(1,at,6,1,"ng-template",null,0,h)(3,mt,1,1,"ng-template",null,1,h)(5,ut,5,2,"ng-template",null,2,h),n()}i&2&&p("isSearchableInput",!0)("isFilterable",!0)},dependencies:[O,k,q,B,Be,Ae,Le,Oe,P,M,K,$,A,Me,ae,oe,L,re,ee,J,V,Y,Q,Z],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 j=Ze(et());var xt=["class","page"],ft=()=>[".."],_t=()=>({width:"100%",height:"calc(100vh - 200px)"}),ce=t=>({"ng-dirty ng-invalid":t});function Et(t,u){if(t&1){let e=y();r(0,"div",4)(1,"a",5),a(2," Cancel "),n(),r(3,"p-button",6),w("click",function(){_(e);let o=m();return E(o.onSubmit())}),n()()}t&2&&(l(),p("routerLink",pe(1,ft)))}function ht(t,u){t&1&&(r(0,"div",30)(1,"div",31),a(2,"Form"),n()())}function vt(t,u){t&1&&(r(0,"small",33),a(1,"Name is required"),n())}function bt(t,u){if(t&1&&(r(0,"div"),d(1,vt,2,0,"small",32),n()),t&2){let e=m(3);l(),p("ngIf",e.recurringExpenseForm.controls.name.errors.required)}}function Ct(t,u){t&1&&(r(0,"small",33),a(1,"Amount is required"),n())}function yt(t,u){t&1&&(r(0,"small",33),a(1,"Invalid amount format"),n())}function Rt(t,u){if(t&1&&(r(0,"div"),d(1,Ct,2,0,"small",32)(2,yt,2,0,"small",32),n()),t&2){let e=m(3);l(),p("ngIf",e.recurringExpenseForm.controls.amount.errors.required),l(),p("ngIf",e.recurringExpenseForm.controls.amount.errors.pattern)}}function St(t,u){if(t&1){let e=y();r(0,"div",8)(1,"div",9)(2,"p-card",10),d(3,ht,3,0,"ng-template",11),r(4,"p-scrollPanel")(5,"div",8)(6,"div",12)(7,"form",13)(8,"div",14)(9,"div",15,2)(11,"div",16)(12,"label",17),a(13,"Outlet"),n(),c(14,"p-select",18),n()(),r(15,"div",15)(16,"div",16)(17,"label",17),a(18,"Name"),n(),c(19,"input",19),d(20,bt,2,1,"div",20),n()(),r(21,"div",15)(22,"div",16)(23,"label",17),a(24,"From"),n(),c(25,"p-datepicker",21),n()(),r(26,"div",15)(27,"div",16)(28,"label",17),a(29,"To"),n(),c(30,"p-datepicker",22),n()(),r(31,"div",15)(32,"div",16)(33,"label",17),a(34,"Contact"),n(),r(35,"p-autocomplete",23),w("completeMethod",function(o){_(e);let s=m(2);return E(s.searchContact(o))}),n()()(),c(36,"div",12),n(),c(37,"hr"),r(38,"div",14)(39,"div",15)(40,"div",16)(41,"label",17),a(42,"Amount"),n(),c(43,"input",24),d(44,Rt,3,2,"div",20),n()(),r(45,"div",15)(46,"div",16)(47,"label",17),a(48,"Frequency"),n(),c(49,"p-select",25),n()(),r(50,"div",15)(51,"div",16)(52,"label",17),a(53,"Payment"),n(),c(54,"p-select",26),n()(),r(55,"div",15)(56,"div",16)(57,"label",17),a(58,"Expense"),n(),c(59,"p-select",27),n()(),r(60,"div",28)(61,"div",16)(62,"label",17),a(63,"Description"),n(),c(64,"textarea",29),n()()()()()()()()()()}if(t&2){let e=m(2);l(4),xe(pe(17,_t)),l(3),p("formGroup",e.recurringExpenseForm),l(7),p("options",e.recurringExpenseData().options.entities),l(5),p("ngClass",D(18,ce,e.isInvalid("name"))),l(),p("ngIf",e.isInvalid("name")),l(5),p("iconDisplay","input")("showIcon",!0),l(5),p("iconDisplay","input")("showIcon",!0),l(5),p("suggestions",e.supplierSuggestions()),l(8),p("ngClass",D(20,ce,e.isInvalid("amount"))),l(),p("ngIf",e.isInvalid("amount")),l(5),p("options",e.recurringExpenseData().options.frequency),l(5),p("ngClass",D(22,ce,e.recurringExpenseForm.controls.paymentAccountID.invalid&&(e.recurringExpenseForm.controls.paymentAccountID.dirty||e.recurringExpenseForm.controls.paymentAccountID.touched)))("options",e.recurringExpenseData().options.assets),l(5),p("options",e.recurringExpenseData().options.expenses)}}function Dt(t,u){if(t&1&&d(0,St,65,24,"div",7),t&2){let e=m();p("ngIf",e.recurringExpenseData())}}var se=(()=>{class t{constructor(){this.recurringExpenseService=f(G),this.fb=f(Re),this.destroyRef=f(ge),this.route=f(te),this.recurringExpenseData=b(null),this.supplierSuggestions=b([])}ngOnInit(){this.initializeForm(),this.fetchRecurringExpenseForm()}initializeForm(){this.recurringExpenseForm=this.fb.group({id:this.fb.control(""),name:this.fb.control("",[N.required]),repeatTypeID:this.fb.control(1,[N.required]),startDate:this.fb.control((0,j.default)().toISOString()),endDate:this.fb.control(null),lastExpenseDate:this.fb.control(""),amount:this.fb.control(0,[N.required]),paymentAccountID:this.fb.control(null,[N.required]),expenseAccountID:this.fb.control(null,[N.required]),contactID:this.fb.control(""),description:this.fb.control(""),repeatTypeLabel:this.fb.control(""),outletID:this.fb.control(""),creatorID:this.fb.control(""),created:this.fb.control(""),modifierID:this.fb.control(""),modified:this.fb.control("")},{updateOn:"change"})}fetchRecurringExpenseForm(){this.route.paramMap.pipe(T(e=>e.get("id")),ue(e=>e?this.recurringExpenseService.fetchRecurringExpenseForm(e):this.recurringExpenseService.fetchRecurringExpenseForm()),I(e=>{this.recurringExpenseData.set(e),this.updateFormWithRecurringExpense(e.form)})).subscribe()}updateFormWithRecurringExpense(e){let i=Object.entries(e).reduce((o,[s,v])=>{switch(s){case"startDate":o[s]=(0,j.default)(v).isSame((0,j.default)("0001-01-01T00:00:00"))?(0,j.default)().toDate():(0,j.default)(v).toDate();break;case"repeatTypeID":o[s]=1;break;case"contactID":o[s]=v===He?"":v;break;default:o[s]=v}return o},{});this.recurringExpenseForm.patchValue(i)}searchContact(e){this.recurringExpenseService.fetchSupplierSuggestion(e.query).pipe(I(this.supplierSuggestions.set)).subscribe()}onSubmit(){let e=this.recurringExpenseForm.value;if(this.recurringExpenseForm.invalid){this.recurringExpenseForm.markAllAsTouched();return}let i=Object.entries(e).reduce((o,[s,v])=>(s==="amount"?o[s]=Number(v):o[s]=v,o),{});this.recurringExpenseService.submitRecurringExpense(i,{observe:"response"}).pipe().subscribe()}isInvalid(e){let i=this.recurringExpenseForm.get(e);return i.invalid&&(i.dirty||i.touched)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-recurring-expense-form",8,"page"]],attrs:xt,decls:5,vars:0,consts:[["actionButton",""],["content",""],["outlet",""],["pageTitle","Recurring Expense Form"],[1,"d-flex","gap-2"],["type","button",1,"p-button","p-button-secondary","p-button-outlined",3,"routerLink"],["label","Submit","icon","fa-solid fa-plus",3,"click"],["class","row justify-content-center",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-6"],["styleClass","h-100"],["pTemplate","header"],[1,"col"],[1,"d-flex","flex-column","row-gap-4",3,"formGroup"],[1,"row","row-gap-4"],[1,"col","col-lg-6"],[1,"d-flex","flex-column"],["for",""],["formControlName","outletID","optionLabel","name","optionValue","id","placeholder","Select Outlet",3,"options"],["formControlName","name","type","text","pInputText","",3,"ngClass"],[4,"ngIf"],["dateFormat","mm/dd/yy","appendTo","body","formControlName","startDate","styleClass","w-100","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","endDate","styleClass","w-100","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","contactID","inputStyleClass","w-100","styleClass","w-100","optionLabel","Value","optionValue","Key",3,"completeMethod","suggestions"],["formControlName","amount","type","text","pInputText","",3,"ngClass"],["formControlName","repeatTypeID","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"options"],["formControlName","paymentAccountID","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"ngClass","options"],["formControlName","expenseAccountID","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"options"],[1,"col","col-lg-12"],["formControlName","description","rows","5","cols","30","pTextarea",""],[1,"row","px-4","py-2"],[1,"col-4","fs-6"],["class","text-danger",4,"ngIf"],[1,"text-danger"]],template:function(i,o){i&1&&(r(0,"app-main-panel",3),d(1,Et,4,2,"ng-template",null,0,h)(3,Dt,1,1,"ng-template",null,1,h),n())},dependencies:[O,q,B,Ie,ie,ne,ae,oe,ke,Ve,Ue,je,Ge,qe,Te,we,P,be,M,ee,J,X,V,Y,Q,Z,A,k,L,re],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ft=["class","page"],It=t=>["/recurring/recurring-expense/edit",t];function wt(t,u){if(t&1&&(r(0,"button",2),c(1,"i",3),r(2,"span"),a(3,"Delete"),n()(),r(4,"a",4),c(5,"i",5),r(6,"span"),a(7,"Edit"),n()()),t&2){let e=m();l(4),p("routerLink",D(1,It,e.currentRecurringExpense().id))}}function Tt(t,u){if(t&1){let e=y();r(0,"p-card",9)(1,"div",6)(2,"div",10)(3,"div",11)(4,"div",10)(5,"div",12)(6,"div",13)(7,"div",14)(8,"label",15),a(9,"Name"),n(),r(10,"input",16),he("ngModelChange",function(o){_(e);let s=m(2);return Ee(s.currentRecurringExpense().name,o)||(s.currentRecurringExpense().name=o),E(o)}),n()()(),c(11,"div",13),r(12,"div",13)(13,"div",14)(14,"label",15),a(15,"Start"),n(),c(16,"input",17),C(17,"date"),n()(),r(18,"div",13)(19,"div",14)(20,"label",15),a(21,"End"),n(),c(22,"input",17),C(23,"date"),n()(),r(24,"div",13)(25,"div",14)(26,"label",15),a(27,"Contact"),n(),c(28,"input",17),C(29,"date"),n()(),r(30,"div",18)(31,"div",14)(32,"label",15),a(33,"Description"),n(),c(34,"textarea",19),n()()(),c(35,"hr"),r(36,"div",11)(37,"div",13)(38,"div",14)(39,"label",15),a(40,"Amount"),n(),c(41,"input",17),C(42,"number"),n()(),r(43,"div",13)(44,"div",14)(45,"label",15),a(46,"Frequency"),n(),c(47,"input",17),n()(),r(48,"div",13)(49,"div",14)(50,"label",15),a(51,"Payment"),n(),c(52,"input",17),n()(),r(53,"div",13)(54,"div",14)(55,"label",15),a(56,"Expense"),n(),c(57,"input",17),n()()()()()()()()}if(t&2){let e=m(2);l(10),_e("ngModel",e.currentRecurringExpense().name),l(6),p("value",F(17,9,e.currentRecurringExpense().startDate,"d MMM y")),l(6),p("value",F(23,12,e.currentRecurringExpense().endDate,"d MMM y")),l(6),p("value",F(29,15,e.currentRecurringExpense().endDate,"d MMM y")),l(6),p("value",e.currentRecurringExpense().description),l(7),p("value",z(42,18,e.currentRecurringExpense().amount)),l(6),p("value",e.currentRecurringExpense().repeatTypeLabel),l(5),p("value",e.currentRecurringExpense().paymentName),l(5),p("value",e.currentRecurringExpense().expenseName)}}function Mt(t,u){if(t&1&&(r(0,"div",6)(1,"div",7),d(2,Tt,58,20,"p-card",8),n()()),t&2){let e=m();l(2),p("ngIf",e.currentRecurringExpense())}}var Xe=(()=>{class t{constructor(){this.recurringExpenseService=f(G),this.route=f(te),this.currentRecurringExpense=b(null)}ngOnInit(){this.route.paramMap.pipe(T(e=>e.get("id")),H("params"),W(e=>this.recurringExpenseService.getRecurringExpenseByID(e)),I(e=>this.currentRecurringExpense.set(e)),H("recurringExpense")).subscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-recurring-expense-info",8,"page"]],attrs:Ft,decls:5,vars:0,consts:[["actionButton",""],["content",""],[1,"btn","btn-outline-secondary","rounded","d-flex","gap-2","align-items-center"],[1,"fa-solid","fa-trash"],[1,"btn","btn-outline-secondary","rounded","d-flex","gap-2","align-items-center",3,"routerLink"],[1,"fa-solid","fa-pen-to-square"],[1,"row","justify-content-center"],[1,"col-6"],["styleClass","h-100","header","Details",4,"ngIf"],["styleClass","h-100","header","Details"],[1,"col"],[1,"row"],[1,"row","row-gap-4"],[1,"col","col-lg-6"],[1,"d-flex","flex-column"],["for",""],["disabled","","type","text","pInputText","",3,"ngModelChange","ngModel"],["disabled","","type","text","pInputText","",3,"value"],[1,"col","col-lg-12"],["disabled","","rows","5","cols","30","pTextarea","",3,"value"]],template:function(i,o){i&1&&(r(0,"app-main-panel"),d(1,wt,8,3,"ng-template",null,0,h)(3,Mt,3,1,"ng-template",null,1,h),n())},dependencies:[O,q,B,P,M,K,$,ie,ne,Se,X,V,ye,L,A,k],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ye=[{path:"",redirectTo:"",pathMatch:"full"},{path:"",children:[{path:"",component:Ke},{path:"create",component:se},{path:"details/:id",component:Xe},{path:"edit/:id",component:se}]}];var Je=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-asset-value"]],decls:0,vars:0,template:function(i,o){},encapsulation:2})}}return t})();var Xn=[{path:"",redirectTo:"recurring-expense",pathMatch:"full"},{path:"recurring-expense",children:Ye},{path:"asset-value",component:Je}];export{Xn as RECURRING_ROUTES};
@@ -0,0 +1 @@
1
+ import{a as H}from"./chunk-UGKSIDKE.js";import{a as L}from"./chunk-LYEN4UBW.js";import{h as V,j as N,k as U,l as B}from"./chunk-H4HFCRFZ.js";import"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import"./chunk-JR4EQTPJ.js";import{g as M}from"./chunk-33KLXB2L.js";import{f as z,g as D}from"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import"./chunk-OWI3BWEZ.js";import"./chunk-ROKYJX6Q.js";import"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import"./chunk-6BFODHTZ.js";import{n as T,r as I,t as k}from"./chunk-RUGQ4OJG.js";import{Bb as x,Fc as y,Ha as h,Hc as A,Ic as C,Kb as f,Tc as J,Ub as o,Vb as i,Vc as v,Wb as b,Z as P,_b as S,dc as w,ec as s,gb as m,ia as R,mc as r,nc as d,qa as u,ra as g,ub as E}from"./chunk-VYKJK5YU.js";import{a as p,b as c}from"./chunk-EQDQRRRY.js";function O(n,_){if(n&1){let e=S();o(0,"p-button",6),w("onClick",function(){u(e);let t=s(2);return g(t.onCreateJournal())}),i()}}function j(n,_){if(n&1&&x(0,O,1,0,"p-button",5),n&2){let e=s();f("ngIf",e.selectedItems().length)}}function K(n,_){n&1&&(o(0,"tr")(1,"th",9),b(2,"p-tableHeaderCheckbox"),i(),o(3,"th"),r(4,"Outlet"),i(),o(5,"th"),r(6,"Number"),i(),o(7,"th"),r(8,"Customer"),i(),o(9,"th"),r(10,"Date"),i(),o(11,"th"),r(12,"Due"),i(),o(13,"th"),r(14,"Note"),i(),o(15,"th"),r(16,"Payment"),i()())}function F(n,_){if(n&1&&(o(0,"tr")(1,"td"),b(2,"p-tableCheckbox",10),i(),o(3,"td"),r(4),i(),o(5,"td"),r(6),i(),o(7,"td"),r(8),i(),o(9,"td"),r(10),y(11,"date"),i(),o(12,"td"),r(13),y(14,"date"),i(),o(15,"td"),r(16),i(),o(17,"td"),r(18),i()()),n&2){let e=_.$implicit;m(2),f("value",e),m(2),d(e.outlet),m(2),d(e.number),m(2),d(e.customer),m(2),d(A(11,8,e.date,"d MMM y")),m(3),d(A(14,11,e.due,"d MMM y")),m(3),d(e.note),m(2),d(e.payment)}}function $(n,_){if(n&1){let e=S();o(0,"p-table",8),w("onLazyLoad",function(t){u(e);let l=s(2);return g(l.onLazyLoad(t))})("onRowSelect",function(t){u(e);let l=s(2);return g(l.onRowSelect(t))})("onRowUnselect",function(t){u(e);let l=s(2);return g(l.onRowUnselect(t))}),x(1,K,17,0,"ng-template",null,2,C)(3,F,19,14,"ng-template",null,3,C),i()}if(n&2){let e=s(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 q(n,_){if(n&1&&x(0,$,5,7,"p-table",7),n&2){let e=s();f("ngIf",e.APCollection())}}var ce=(()=>{class n{constructor(){this.generateJournalService=R(H),this.APCollection=h(null),this.pageData=h({PageNumber:1,PageSize:10}),this.selectedItems=J(()=>{let e=this.APCollection();return e?e.data.filter(a=>a.checked):[]}),v(()=>{this.pageData()&&this.fetchAPCollection()})}fetchAPCollection(){let e={PageSize:this.pageData().PageSize,PageNumber:this.pageData().PageNumber};this.generateJournalService.getAPJournal(e).pipe(P(a=>{this.APCollection.update(t=>c(p({},t),{data:a.data.map(l=>c(p({},l),{checked:!1})),totalCount:+a.totalCount}))}),L("AR Collection")).subscribe()}onLazyLoad(e){this.pageData.set({PageNumber:e.first/e.rows+1,PageSize:e.rows})}onRowSelect(e){let a=e.data;this.APCollection.update(t=>c(p({},t),{data:t.data.map(l=>l.id===a.id?c(p({},l),{checked:!0}):l)}))}onRowUnselect(e){let a=e.data;Array.isArray(a)?this.APCollection.update(t=>c(p({},t),{data:t.data.map((l,G)=>l.id===a[G].id?c(p({},l),{checked:!1}):l)})):this.APCollection.update(t=>c(p({},t),{data:t.data.map(l=>l.id===a.id?c(p({},l),{checked:!1}):l)}))}onCreateJournal(){let a=this.selectedItems().map(t=>t.id);this.generateJournalService.createAPJournal(a).subscribe(t=>{console.log("Journal created successfully:",t)})}static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275cmp=E({type:n,selectors:[["app-ap-journal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","AP Collection"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["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(a,t){a&1&&(o(0,"app-main-panel",4),x(1,j,1,1,"ng-template",null,0,C)(3,q,1,1,"ng-template",null,1,C),i())},dependencies:[M,B,V,N,U,k,T,I,D,z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return n})();export{ce as ApJournalComponent};
@@ -0,0 +1,59 @@
1
+ import{i as Pt,o as B,p as Dt}from"./chunk-OWI3BWEZ.js";import{$ as A,Ga as Ft,Ha as U,N as xt,Pa as Ot,S as k,ba as it,fa as Vt,ya as Lt}from"./chunk-ROKYJX6Q.js";import{k as It,m as vt,n as Tt,o as zt,p as bt,t as Et,v as et}from"./chunk-RUGQ4OJG.js";import{Aa as ht,Bb as y,Ic as Z,Jb as w,Kb as m,Lb as pt,Nb as ut,Ob as F,Ub as S,Vb as I,Wb as v,Xb as P,Yb as D,Zb as Q,_b as _t,ca as st,da as ot,dc as gt,ec as C,fc as ft,gb as _,gc as Ct,hb as dt,hc as N,ia as lt,ic as tt,jc as M,kc as R,lc as j,pa as rt,qa as at,ra as ct,sa as O,ta as E,ub as x,uc as yt,vb as mt,vc as wt,wc as $,xc as q,yb as V,yc as St,za as K}from"./chunk-VYKJK5YU.js";import{a as J,b as Y}from"./chunk-EQDQRRRY.js";var ge=(()=>{class n extends B{static \u0275fac=(()=>{let t;return function(i){return(t||(t=E(n)))(i||n)}})();static \u0275cmp=x({type:n,selectors:[["BlankIcon"]],features:[V],decls:2,vars:0,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(e,i){e&1&&(O(),S(0,"svg",0),v(1,"rect",1),I())},encapsulation:2})}return n})();var ye=(()=>{class n extends B{static \u0275fac=(()=>{let t;return function(i){return(t||(t=E(n)))(i||n)}})();static \u0275cmp=x({type:n,selectors:[["CheckIcon"]],features:[V],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(e,i){e&1&&(O(),S(0,"svg",0),v(1,"path",1),I()),e&2&&(F(i.getClassNames()),w("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return n})();var Ie=(()=>{class n extends B{static \u0275fac=(()=>{let t;return function(i){return(t||(t=E(n)))(i||n)}})();static \u0275cmp=x({type:n,selectors:[["MinusIcon"]],features:[V],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(e,i){e&1&&(O(),S(0,"svg",0),v(1,"path",1),I()),e&2&&(F(i.getClassNames()),w("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return n})();var be=(()=>{class n extends B{pathId;ngOnInit(){this.pathId="url(#"+Lt()+")"}static \u0275fac=(()=>{let t;return function(i){return(t||(t=E(n)))(i||n)}})();static \u0275cmp=x({type:n,selectors:[["SearchIcon"]],features:[V],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(e,i){e&1&&(O(),S(0,"svg",0)(1,"g"),v(2,"path",1),I(),S(3,"defs")(4,"clipPath",2),v(5,"rect",3),I()()()),e&2&&(F(i.getClassNames()),w("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),_(),w("clip-path",i.pathId),_(3),m("id",i.pathId))},encapsulation:2})}return n})();var Mt=["content"],Ht=["item"],Wt=["loader"],kt=["loadericon"],At=["element"],Qt=["*"],Nt=(n,c,t)=>({"p-virtualscroller":!0,"p-virtualscroller-inline":n,"p-virtualscroller-both p-both-scroll":c,"p-virtualscroller-horizontal p-horizontal-scroll":t}),nt=(n,c)=>({$implicit:n,options:c}),$t=n=>({"p-virtualscroller-content":!0,"p-virtualscroller-loading ":n}),jt=n=>({"p-virtualscroller-loader-mask":n}),qt=n=>({numCols:n}),Bt=n=>({options:n}),Zt=()=>({styleClass:"p-virtualscroller-loading-icon"}),Gt=(n,c)=>({rows:n,columns:c});function Jt(n,c){n&1&&Q(0)}function Kt(n,c){if(n&1&&(P(0),y(1,Jt,1,0,"ng-container",10),D()),n&2){let t=C(2);_(),m("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",q(2,nt,t.loadedItems,t.getContentOptions()))}}function Ut(n,c){n&1&&Q(0)}function Xt(n,c){if(n&1&&(P(0),y(1,Ut,1,0,"ng-container",10),D()),n&2){let t=c.$implicit,e=c.index,i=C(3);_(),m("ngTemplateOutlet",i.itemTemplate||i._itemTemplate)("ngTemplateOutletContext",q(2,nt,t,i.getOptions(e)))}}function Yt(n,c){if(n&1&&(S(0,"div",11,3),y(2,Xt,2,5,"ng-container",12),I()),n&2){let t=C(2);ut(t.contentStyle),F(t.contentStyleClass),m("ngClass",$(8,$t,t.d_loading)),w("data-pc-section","content"),_(2),m("ngForOf",t.loadedItems)("ngForTrackBy",t._trackBy)}}function te(n,c){if(n&1&&v(0,"div",13),n&2){let t=C(2);m("ngStyle",t.spacerStyle),w("data-pc-section","spacer")}}function ee(n,c){n&1&&Q(0)}function ie(n,c){if(n&1&&(P(0),y(1,ee,1,0,"ng-container",10),D()),n&2){let t=c.index,e=C(4);_(),m("ngTemplateOutlet",e.loaderTemplate||e._loaderTemplate)("ngTemplateOutletContext",$(4,Bt,e.getLoaderOptions(t,e.both&&$(2,qt,e.numItemsInViewport.cols))))}}function ne(n,c){if(n&1&&(P(0),y(1,ie,2,6,"ng-container",15),D()),n&2){let t=C(3);_(),m("ngForOf",t.loaderArr)}}function se(n,c){n&1&&Q(0)}function oe(n,c){if(n&1&&(P(0),y(1,se,1,0,"ng-container",10),D()),n&2){let t=C(4);_(),m("ngTemplateOutlet",t.loaderIconTemplate||t._loaderIconTemplate)("ngTemplateOutletContext",$(3,Bt,wt(2,Zt)))}}function le(n,c){n&1&&v(0,"SpinnerIcon",16),n&2&&(m("styleClass","p-virtualscroller-loading-icon pi-spin"),w("data-pc-section","loadingIcon"))}function re(n,c){if(n&1&&y(0,oe,2,5,"ng-container",6)(1,le,1,2,"ng-template",null,5,Z),n&2){let t=j(2),e=C(3);m("ngIf",e.loaderIconTemplate||e._loaderIconTemplate)("ngIfElse",t)}}function ae(n,c){if(n&1&&(S(0,"div",14),y(1,ne,2,1,"ng-container",6)(2,re,3,2,"ng-template",null,4,Z),I()),n&2){let t=j(3),e=C(2);m("ngClass",$(4,jt,!e.loaderTemplate)),w("data-pc-section","loader"),_(),m("ngIf",e.loaderTemplate||e._loaderTemplate)("ngIfElse",t)}}function ce(n,c){if(n&1){let t=_t();P(0),S(1,"div",7,1),gt("scroll",function(i){at(t);let s=C();return ct(s.onContainerScroll(i))}),y(3,Kt,2,5,"ng-container",6)(4,Yt,3,10,"ng-template",null,2,Z)(6,te,1,2,"div",8)(7,ae,4,6,"div",9),I(),D()}if(n&2){let t=j(5),e=C();_(),F(e._styleClass),m("ngStyle",e._style)("ngClass",St(12,Nt,e.inline,e.both,e.horizontal)),w("id",e._id)("tabindex",e.tabindex)("data-pc-name","scroller")("data-pc-section","root"),_(2),m("ngIf",e.contentTemplate||e._contentTemplate)("ngIfElse",t),_(3),m("ngIf",e._showSpacer),_(),m("ngIf",!e.loaderDisabled&&e._showLoader&&e.d_loading)}}function he(n,c){n&1&&Q(0)}function de(n,c){if(n&1&&(P(0),y(1,he,1,0,"ng-container",10),D()),n&2){let t=C(2);_(),m("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",q(5,nt,t.items,q(2,Gt,t._items,t.loadedColumns)))}}function me(n,c){if(n&1&&(Ct(0),y(1,de,2,8,"ng-container",17)),n&2){let t=C();_(),m("ngIf",t.contentTemplate||t._contentTemplate)}}var pe=({dt:n})=>`
2
+ .p-virtualscroller {
3
+ position: relative;
4
+ overflow: auto;
5
+ contain: strict;
6
+ transform: translateZ(0);
7
+ will-change: scroll-position;
8
+ outline: 0 none;
9
+ }
10
+
11
+ .p-virtualscroller-content {
12
+ position: absolute;
13
+ top: 0;
14
+ left: 0;
15
+ min-height: 100%;
16
+ min-width: 100%;
17
+ will-change: transform;
18
+ }
19
+
20
+ .p-virtualscroller-spacer {
21
+ position: absolute;
22
+ top: 0;
23
+ left: 0;
24
+ height: 1px;
25
+ width: 1px;
26
+ transform-origin: 0 0;
27
+ pointer-events: none;
28
+ }
29
+
30
+ .p-virtualscroller-loader {
31
+ position: sticky;
32
+ top: 0;
33
+ left: 0;
34
+ width: 100%;
35
+ height: 100%;
36
+ background: ${n("virtualscroller.loader.mask.background")};
37
+ color: ${n("virtualscroller.loader.mask.color")};
38
+ }
39
+
40
+ .p-virtualscroller-loader-mask {
41
+ display: flex;
42
+ align-items: center;
43
+ justify-content: center;
44
+ }
45
+
46
+ .p-virtualscroller-loading-icon {
47
+ font-size: ${n("virtualscroller.loader.icon.size")};
48
+ width: ${n("virtualscroller.loader.icon.size")};
49
+ height: ${n("virtualscroller.loader.icon.size")};
50
+ }
51
+
52
+ .p-virtualscroller-horizontal > .p-virtualscroller-content {
53
+ display: flex;
54
+ }
55
+
56
+ .p-virtualscroller-inline .p-virtualscroller-content {
57
+ position: static;
58
+ }
59
+ `,Rt=(()=>{class n extends Ot{name="virtualscroller";theme=pe;static \u0275fac=(()=>{let t;return function(i){return(t||(t=E(n)))(i||n)}})();static \u0275prov=st({token:n,factory:n.\u0275fac})}return n})();var ue=(()=>{class n extends Pt{zone;get id(){return this._id}set id(t){this._id=t}get style(){return this._style}set style(t){this._style=t}get styleClass(){return this._styleClass}set styleClass(t){this._styleClass=t}get tabindex(){return this._tabindex}set tabindex(t){this._tabindex=t}get items(){return this._items}set items(t){this._items=t}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=t}get scrollHeight(){return this._scrollHeight}set scrollHeight(t){this._scrollHeight=t}get scrollWidth(){return this._scrollWidth}set scrollWidth(t){this._scrollWidth=t}get orientation(){return this._orientation}set orientation(t){this._orientation=t}get step(){return this._step}set step(t){this._step=t}get delay(){return this._delay}set delay(t){this._delay=t}get resizeDelay(){return this._resizeDelay}set resizeDelay(t){this._resizeDelay=t}get appendOnly(){return this._appendOnly}set appendOnly(t){this._appendOnly=t}get inline(){return this._inline}set inline(t){this._inline=t}get lazy(){return this._lazy}set lazy(t){this._lazy=t}get disabled(){return this._disabled}set disabled(t){this._disabled=t}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(t){this._loaderDisabled=t}get columns(){return this._columns}set columns(t){this._columns=t}get showSpacer(){return this._showSpacer}set showSpacer(t){this._showSpacer=t}get showLoader(){return this._showLoader}set showLoader(t){this._showLoader=t}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(t){this._numToleratedItems=t}get loading(){return this._loading}set loading(t){this._loading=t}get autoSize(){return this._autoSize}set autoSize(t){this._autoSize=t}get trackBy(){return this._trackBy}set trackBy(t){this._trackBy=t}get options(){return this._options}set options(t){this._options=t,t&&typeof t=="object"&&(Object.entries(t).forEach(([e,i])=>this[`_${e}`]!==i&&(this[`_${e}`]=i)),Object.entries(t).forEach(([e,i])=>this[`${e}`]!==i&&(this[`${e}`]=i)))}onLazyLoad=new K;onScroll=new K;onScrollIndexChange=new K;elementViewChild;contentViewChild;height;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;templates;_contentTemplate;_itemTemplate;_loaderTemplate;_loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;_contentStyleClass;get contentStyleClass(){return this._contentStyleClass}set contentStyleClass(t){this._contentStyleClass=t}get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(t=>this._columns?t:t.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}_componentStyle=lt(Rt);constructor(t){super(),this.zone=t}ngOnInit(){super.ngOnInit(),this.setInitialState()}ngOnChanges(t){super.ngOnChanges(t);let e=!1;if(this.scrollHeight=="100%"&&(this.height="100%"),t.loading){let{previousValue:i,currentValue:s}=t.loading;this.lazy&&i!==s&&s!==this.d_loading&&(this.d_loading=s,e=!0)}if(t.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),t.numToleratedItems){let{previousValue:i,currentValue:s}=t.numToleratedItems;i!==s&&s!==this.d_numToleratedItems&&(this.d_numToleratedItems=s)}if(t.options){let{previousValue:i,currentValue:s}=t.options;this.lazy&&i?.loading!==s?.loading&&s?.loading!==this.d_loading&&(this.d_loading=s.loading,e=!0),i?.numToleratedItems!==s?.numToleratedItems&&s?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=s.numToleratedItems)}this.initialized&&!e&&(t.items?.previousValue?.length!==t.items?.currentValue?.length||t.itemSize||t.scrollHeight||t.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"content":this._contentTemplate=t.template;break;case"item":this._itemTemplate=t.template;break;case"loader":this._loaderTemplate=t.template;break;case"loadericon":this._loaderIconTemplate=t.template;break;default:this._itemTemplate=t.template;break}})}ngAfterViewInit(){super.ngAfterViewInit(),Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1,super.ngOnDestroy()}viewInit(){et(this.platformId)&&!this.initialized&&it(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=A(this.elementViewChild?.nativeElement),this.defaultHeight=k(this.elementViewChild?.nativeElement),this.defaultContentWidth=A(this.contentEl),this.defaultContentHeight=k(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(t){this.contentEl=t||this.contentViewChild?.nativeElement||xt(this.elementViewChild?.nativeElement,".p-virtualscroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[]}getElementRef(){return this.elementViewChild}getPageByFirst(t){return Math.floor(((t??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(t){return this._step?this.page!==this.getPageByFirst(t??this.first):!0}scrollTo(t){this.elementViewChild?.nativeElement?.scrollTo(t)}scrollToIndex(t,e="auto"){if(this.both?t.every(s=>s>-1):t>-1){let s=this.first,{scrollTop:o=0,scrollLeft:l=0}=this.elementViewChild?.nativeElement,{numToleratedItems:u}=this.calculateNumItems(),p=this.getContentPosition(),h=this.itemSize,z=(a=0,d)=>a<=d?0:a,g=(a,d,T)=>a*d+T,b=(a=0,d=0)=>this.scrollTo({left:a,top:d,behavior:e}),f=this.both?{rows:0,cols:0}:0,H=!1,r=!1;this.both?(f={rows:z(t[0],u[0]),cols:z(t[1],u[1])},b(g(f.cols,h[1],p.left),g(f.rows,h[0],p.top)),r=this.lastScrollPos.top!==o||this.lastScrollPos.left!==l,H=f.rows!==s.rows||f.cols!==s.cols):(f=z(t,u),this.horizontal?b(g(f,h,p.left),o):b(l,g(f,h,p.top)),r=this.lastScrollPos!==(this.horizontal?l:o),H=f!==s),this.isRangeChanged=H,r&&(this.first=f)}}scrollInView(t,e,i="auto"){if(e){let{first:s,viewport:o}=this.getRenderedRange(),l=(h=0,z=0)=>this.scrollTo({left:h,top:z,behavior:i}),u=e==="to-start",p=e==="to-end";if(u){if(this.both)o.first.rows-s.rows>t[0]?l(o.first.cols*this._itemSize[1],(o.first.rows-1)*this._itemSize[0]):o.first.cols-s.cols>t[1]&&l((o.first.cols-1)*this._itemSize[1],o.first.rows*this._itemSize[0]);else if(o.first-s>t){let h=(o.first-1)*this._itemSize;this.horizontal?l(h,0):l(0,h)}}else if(p){if(this.both)o.last.rows-s.rows<=t[0]+1?l(o.first.cols*this._itemSize[1],(o.first.rows+1)*this._itemSize[0]):o.last.cols-s.cols<=t[1]+1&&l((o.first.cols+1)*this._itemSize[1],o.first.rows*this._itemSize[0]);else if(o.last-s<=t+1){let h=(o.first+1)*this._itemSize;this.horizontal?l(h,0):l(0,h)}}}else this.scrollToIndex(t,i)}getRenderedRange(){let t=(s,o)=>o||s?Math.floor(s/(o||s)):0,e=this.first,i=0;if(this.elementViewChild?.nativeElement){let{scrollTop:s,scrollLeft:o}=this.elementViewChild.nativeElement;if(this.both)e={rows:t(s,this._itemSize[0]),cols:t(o,this._itemSize[1])},i={rows:e.rows+this.numItemsInViewport.rows,cols:e.cols+this.numItemsInViewport.cols};else{let l=this.horizontal?o:s;e=t(l,this._itemSize),i=e+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:e,last:i}}}calculateNumItems(){let t=this.getContentPosition(),e=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-t.left:0)||0,i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-t.top:0)||0,s=(p,h)=>h||p?Math.ceil(p/(h||p)):0,o=p=>Math.ceil(p/2),l=this.both?{rows:s(i,this._itemSize[0]),cols:s(e,this._itemSize[1])}:s(this.horizontal?e:i,this._itemSize),u=this.d_numToleratedItems||(this.both?[o(l.rows),o(l.cols)]:o(l));return{numItemsInViewport:l,numToleratedItems:u}}calculateOptions(){let{numItemsInViewport:t,numToleratedItems:e}=this.calculateNumItems(),i=(l,u,p,h=!1)=>this.getLast(l+u+(l<p?2:3)*p,h),s=this.first,o=this.both?{rows:i(this.first.rows,t.rows,e[0]),cols:i(this.first.cols,t.cols,e[1],!0)}:i(this.first,t,e);this.last=o,this.numItemsInViewport=t,this.d_numToleratedItems=e,this.showLoader&&(this.loaderArr=this.both?Array.from({length:t.rows}).map(()=>Array.from({length:t.cols})):Array.from({length:t})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:s.cols}:0:s,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[t,e]=[A(this.contentEl),k(this.contentEl)];t!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),e!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[i,s]=[A(this.elementViewChild.nativeElement),k(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=i<this.defaultWidth?i+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=s<this.defaultHeight?s+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}})}getLast(t=0,e=!1){return this._items?Math.min(e?(this._columns||this._items[0]).length:this._items.length,t):0}getContentPosition(){if(this.contentEl){let t=getComputedStyle(this.contentEl),e=parseFloat(t.paddingLeft)+Math.max(parseFloat(t.left)||0,0),i=parseFloat(t.paddingRight)+Math.max(parseFloat(t.right)||0,0),s=parseFloat(t.paddingTop)+Math.max(parseFloat(t.top)||0,0),o=parseFloat(t.paddingBottom)+Math.max(parseFloat(t.bottom)||0,0);return{left:e,right:i,top:s,bottom:o,x:e+i,y:s+o}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){let t=this.elementViewChild.nativeElement.parentElement.parentElement,e=this._scrollWidth||`${this.elementViewChild.nativeElement.offsetWidth||t.offsetWidth}px`,i=this._scrollHeight||`${this.elementViewChild.nativeElement.offsetHeight||t.offsetHeight}px`,s=(o,l)=>this.elementViewChild.nativeElement.style[o]=l;this.both||this.horizontal?(s("height",i),s("width",e)):s("height",i)}}setSpacerSize(){if(this._items){let t=this.getContentPosition(),e=(i,s,o,l=0)=>this.spacerStyle=Y(J({},this.spacerStyle),{[`${i}`]:(s||[]).length*o+l+"px"});this.both?(e("height",this._items,this._itemSize[0],t.y),e("width",this._columns||this._items[1],this._itemSize[1],t.x)):this.horizontal?e("width",this._columns||this._items,this._itemSize,t.x):e("height",this._items,this._itemSize,t.y)}}setContentPosition(t){if(this.contentEl&&!this._appendOnly){let e=t?t.first:this.first,i=(o,l)=>o*l,s=(o=0,l=0)=>this.contentStyle=Y(J({},this.contentStyle),{transform:`translate3d(${o}px, ${l}px, 0)`});if(this.both)s(i(e.cols,this._itemSize[1]),i(e.rows,this._itemSize[0]));else{let o=i(e,this._itemSize);this.horizontal?s(o,0):s(0,o)}}}onScrollPositionChange(t){let e=t.target,i=this.getContentPosition(),s=(r,a)=>r?r>a?r-a:r:0,o=(r,a)=>a||r?Math.floor(r/(a||r)):0,l=(r,a,d,T,L,W)=>r<=L?L:W?d-T-L:a+L-1,u=(r,a,d,T,L,W,G)=>r<=W?0:Math.max(0,G?r<a?d:r-W:r>a?d:r-2*W),p=(r,a,d,T,L,W=!1)=>{let G=a+T+2*L;return r>=L&&(G+=L+1),this.getLast(G,W)},h=s(e.scrollTop,i.top),z=s(e.scrollLeft,i.left),g=this.both?{rows:0,cols:0}:0,b=this.last,f=!1,H=this.lastScrollPos;if(this.both){let r=this.lastScrollPos.top<=h,a=this.lastScrollPos.left<=z;if(!this._appendOnly||this._appendOnly&&(r||a)){let d={rows:o(h,this._itemSize[0]),cols:o(z,this._itemSize[1])},T={rows:l(d.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],r),cols:l(d.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],a)};g={rows:u(d.rows,T.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],r),cols:u(d.cols,T.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],a)},b={rows:p(d.rows,g.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:p(d.cols,g.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},f=g.rows!==this.first.rows||b.rows!==this.last.rows||g.cols!==this.first.cols||b.cols!==this.last.cols||this.isRangeChanged,H={top:h,left:z}}}else{let r=this.horizontal?z:h,a=this.lastScrollPos<=r;if(!this._appendOnly||this._appendOnly&&a){let d=o(r,this._itemSize),T=l(d,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,a);g=u(d,T,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,a),b=p(d,g,this.last,this.numItemsInViewport,this.d_numToleratedItems),f=g!==this.first||b!==this.last||this.isRangeChanged,H=r}}return{first:g,last:b,isRangeChanged:f,scrollPos:H}}onScrollChange(t){let{first:e,last:i,isRangeChanged:s,scrollPos:o}=this.onScrollPositionChange(t);if(s){let l={first:e,last:i};if(this.setContentPosition(l),this.first=e,this.last=i,this.lastScrollPos=o,this.handleEvents("onScrollIndexChange",l),this._lazy&&this.isPageChanged(e)){let u={first:this._step?Math.min(this.getPageByFirst(e)*this._step,this.items.length-this._step):e,last:Math.min(this._step?(this.getPageByFirst(e)+1)*this._step:i,this.items.length)};(this.lazyLoadState.first!==u.first||this.lazyLoadState.last!==u.last)&&this.handleEvents("onLazyLoad",u),this.lazyLoadState=u}}}onContainerScroll(t){if(this.handleEvents("onScroll",{originalEvent:t}),this._delay&&this.isPageChanged()){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){let{isRangeChanged:e}=this.onScrollPositionChange(t);(e||(this._step?this.isPageChanged():!1))&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(t),this.d_loading&&this.showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst()),this.cd.detectChanges()},this._delay)}else!this.d_loading&&this.onScrollChange(t)}bindResizeListener(){et(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let t=this.document.defaultView,e=Vt()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(t,e,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(it(this.elementViewChild?.nativeElement)){let[t,e]=[A(this.elementViewChild?.nativeElement),k(this.elementViewChild?.nativeElement)],[i,s]=[t!==this.defaultWidth,e!==this.defaultHeight];(this.both?i||s:this.horizontal?i:this.vertical?s:!1)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=t,this.defaultHeight=e,this.defaultContentWidth=A(this.contentEl),this.defaultContentHeight=k(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(t,e){return this.options&&this.options[t]?this.options[t](e):this[t].emit(e)}getContentOptions(){return{contentStyleClass:`p-virtualscroller-content ${this.d_loading?"p-virtualscroller-loading":""}`,items:this.loadedItems,getItemOptions:t=>this.getOptions(t),loading:this.d_loading,getLoaderOptions:(t,e)=>this.getLoaderOptions(t,e),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(t){let e=(this._items||[]).length,i=this.both?this.first.rows+t:this.first+t;return{index:i,count:e,first:i===0,last:i===e-1,even:i%2===0,odd:i%2!==0}}getLoaderOptions(t,e){let i=this.loaderArr.length;return J({index:t,count:i,first:t===0,last:t===i-1,even:t%2===0,odd:t%2!==0},e)}static \u0275fac=function(e){return new(e||n)(dt(ht))};static \u0275cmp=x({type:n,selectors:[["p-scroller"],["p-virtualscroller"],["p-virtual-scroller"],["p-virtualScroller"]],contentQueries:function(e,i,s){if(e&1&&(N(s,Mt,4),N(s,Ht,4),N(s,Wt,4),N(s,kt,4),N(s,Ft,4)),e&2){let o;M(o=R())&&(i.contentTemplate=o.first),M(o=R())&&(i.itemTemplate=o.first),M(o=R())&&(i.loaderTemplate=o.first),M(o=R())&&(i.loaderIconTemplate=o.first),M(o=R())&&(i.templates=o)}},viewQuery:function(e,i){if(e&1&&(tt(At,5),tt(Mt,5)),e&2){let s;M(s=R())&&(i.elementViewChild=s.first),M(s=R())&&(i.contentViewChild=s.first)}},hostVars:2,hostBindings:function(e,i){e&2&&pt("height",i.height)},inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[yt([Rt]),V,rt],ngContentSelectors:Qt,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","ngClass"],["class","p-virtualscroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-virtualscroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-virtualscroller-spacer",3,"ngStyle"],[1,"p-virtualscroller-loader",3,"ngClass"],[4,"ngFor","ngForOf"],[3,"styleClass"],[4,"ngIf"]],template:function(e,i){if(e&1&&(ft(),y(0,ce,8,16,"ng-container",6)(1,me,2,1,"ng-template",null,0,Z)),e&2){let s=j(2);m("ngIf",!i._disabled)("ngIfElse",s)}},dependencies:[Et,It,vt,Tt,bt,zt,Dt,U],encapsulation:2})}return n})(),Ze=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=mt({type:n});static \u0275inj=ot({imports:[ue,U,U]})}return n})();export{ge as a,ye as b,Ie as c,be as d,ue as e,Ze as f};
@@ -0,0 +1 @@
1
+ import{a as c}from"./chunk-XWVLTTMV.js";import{g as C}from"./chunk-33KLXB2L.js";import"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import"./chunk-OWI3BWEZ.js";import"./chunk-ROKYJX6Q.js";import{a as v}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import"./chunk-6BFODHTZ.js";import{t as T}from"./chunk-RUGQ4OJG.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-VYKJK5YU.js";import"./chunk-EQDQRRRY.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};
@@ -0,0 +1 @@
1
+ import{a as v,b as y}from"./chunk-OCLABZZW.js";import{h as $,l as z}from"./chunk-H4HFCRFZ.js";import"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import"./chunk-JR4EQTPJ.js";import{a as U,b as q}from"./chunk-5GQEUX4M.js";import{g as K}from"./chunk-33KLXB2L.js";import"./chunk-UTL7D6E7.js";import{a as S,b as F,c as O,d as j,e as G,f as H,g as N}from"./chunk-Y6MJGNH2.js";import"./chunk-OWI3BWEZ.js";import{t as T}from"./chunk-ROKYJX6Q.js";import{d as R}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import{p as w,w as L}from"./chunk-6BFODHTZ.js";import{s as M,t as D}from"./chunk-RUGQ4OJG.js";import{Bb as C,Fc as x,Gc as B,Ic as s,Kb as l,Tc as I,Ub as n,Vb as a,X as u,c as h,ca as E,ec as _,gb as p,ia as c,mc as r,nc as m,ub as b,uc as P,vc as g,wc as k}from"./chunk-VYKJK5YU.js";import{a as d,b as f}from"./chunk-EQDQRRRY.js";var J=(()=>{class t{constructor(){this.httpService=c(R)}fetchCashAndBankLoader(){return this.httpService.get("","api/CashAndBankLoader/GetCashAndBank")}fetchCashAndBankData(){return this.httpService.get("","api/CashAndBank/GetCashAndBank")}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=E({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Y={data:[],filter:[],options:{hasGeneralLedger:!1}},A=F(N("cash-bank-store"),H(Y),O(t=>({totalBalance:I(()=>t.data().reduce((i,e)=>i+e.balance,0))})),G(t=>{let i=c(J);return{loadCashAndBankLoader:v(h(u(()=>i.fetchCashAndBankLoader().pipe(y({next:e=>{console.log("response",e),S(t,o=>f(d({},o),{options:e.options}))},error:e=>{console.log("error",e)}}))))),loadCashAndBankData:v(h(u(()=>i.fetchCashAndBankData().pipe(y({next:e=>{console.log("response",e),S(t,o=>f(d({},o),{data:e}))},error:e=>{console.log("error",e)}})))))}}),j({onInit(t){t.loadCashAndBankLoader(),t.loadCashAndBankData()}}));var Z=["class","page"],tt=()=>({"min-width":"50rem"}),et=t=>[t],nt=()=>["/report/general-ledger"],at=t=>({id:t});function ot(t,i){t&1&&(n(0,"tr")(1,"th"),r(2,"Code"),a(),n(3,"th"),r(4,"Name"),a(),n(5,"th"),r(6,"Balance"),a()())}function it(t,i){if(t&1&&(n(0,"tr")(1,"td"),r(2),a(),n(3,"td")(4,"a",6),r(5),a()(),n(6,"td")(7,"a",7),r(8),x(9,"number"),a()()()),t&2){let e=i.$implicit;p(2),m(e.code),p(2),l("routerLink",k(8,et,"/chart-of-account/account/"+e.accountID)),p(),m(e.name),p(2),l("routerLink",g(10,nt))("queryParams",k(11,at,e.accountID)),p(),m(B(9,6,e.balance))}}function rt(t,i){if(t&1&&(n(0,"tr")(1,"td",8),r(2,"Total"),a(),n(3,"td"),r(4),x(5,"number"),a()()),t&2){let e=_(2);p(4),m(B(5,1,e.store.totalBalance()))}}function pt(t,i){if(t&1&&(n(0,"p-card")(1,"p-table",5),C(2,ot,7,0,"ng-template",null,1,s)(4,it,10,13,"ng-template",null,2,s)(6,rt,6,3,"ng-template",null,3,s),a()()),t&2){let e=_();p(),l("value",e.store.data())("tableStyle",g(2,tt))}}var Q=(()=>{class t{constructor(){this.store=c(A),this.routeInfo=V}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-cash-bank",8,"page"]],features:[P([A])],attrs:Z,decls:3,vars:1,consts:[["content",""],["header",""],["body",""],["footer",""],["pageTitle","Cash and Bank",3,"routeInfo"],[3,"value","tableStyle"],[1,"link","link-primary",3,"routerLink"],[1,"link","link-primary",3,"routerLink","queryParams"],["colspan","2",1,"text-end"]],template:function(o,W){o&1&&(n(0,"app-main-panel",4),C(1,pt,8,3,"ng-template",null,0,s),a()),o&2&&l("routeInfo",W.routeInfo)},dependencies:[D,M,K,T,z,$,q,U,L,w],styles:[".card[_ngcontent-%COMP%]{height:calc(100vh - 120px)}.card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:inherit;overflow-y:auto}"],changeDetection:0})}}return t})();var jt=[{path:"",component:Q,children:[]}],V={path:"cash-of-account",title:"COA",iconName:"fa fa-calculator",class:"",label:"",labelClass:"",extralink:!1,submenu:[]};export{jt as CASH_BANK_ROUTES,V as CASH_BANK_ROUTE_PAGE};
@@ -0,0 +1 @@
1
+ import{a as B}from"./chunk-UGKSIDKE.js";import{h as L,j as V,k as N,l as U}from"./chunk-H4HFCRFZ.js";import"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import"./chunk-JR4EQTPJ.js";import{g as P}from"./chunk-33KLXB2L.js";import{f as D,g as M}from"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import"./chunk-OWI3BWEZ.js";import"./chunk-ROKYJX6Q.js";import"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import"./chunk-6BFODHTZ.js";import{n as T,r as k,t as z}from"./chunk-RUGQ4OJG.js";import{Bb as x,Fc as w,Ha as R,Hc as A,Ic as C,Kb as f,Tc as v,Ub as a,Vb as o,Vc as I,Wb as h,Z as y,_b as b,dc as S,ec as s,gb as m,ia as E,mc as r,nc as d,qa as u,ra as g,ub as J}from"./chunk-VYKJK5YU.js";import{a as c,b as p}from"./chunk-EQDQRRRY.js";function G(n,_){if(n&1){let e=b();a(0,"p-button",6),S("onClick",function(){u(e);let t=s(2);return g(t.onCreateJournal())}),o()}}function O(n,_){if(n&1&&x(0,G,1,0,"p-button",5),n&2){let e=s();f("ngIf",e.selectedItems().length)}}function j(n,_){n&1&&(a(0,"tr")(1,"th",9),h(2,"p-tableHeaderCheckbox"),o(),a(3,"th"),r(4,"Outlet"),o(),a(5,"th"),r(6,"Number"),o(),a(7,"th"),r(8,"Customer"),o(),a(9,"th"),r(10,"Date"),o(),a(11,"th"),r(12,"Due"),o(),a(13,"th"),r(14,"Note"),o(),a(15,"th"),r(16,"Payment"),o()())}function K(n,_){if(n&1&&(a(0,"tr")(1,"td"),h(2,"p-tableCheckbox",10),o(),a(3,"td"),r(4),o(),a(5,"td"),r(6),o(),a(7,"td"),r(8),o(),a(9,"td"),r(10),w(11,"date"),o(),a(12,"td"),r(13),w(14,"date"),o(),a(15,"td"),r(16),o(),a(17,"td"),r(18),o()()),n&2){let e=_.$implicit;m(2),f("value",e),m(2),d(e.outlet),m(2),d(e.number),m(2),d(e.customer),m(2),d(A(11,8,e.date,"d MMM y")),m(3),d(A(14,11,e.due,"d MMM y")),m(3),d(e.note),m(2),d(e.payment)}}function F(n,_){if(n&1){let e=b();a(0,"p-table",8),S("onLazyLoad",function(t){u(e);let i=s(2);return g(i.onLazyLoad(t))})("onRowSelect",function(t){u(e);let i=s(2);return g(i.onRowSelect(t))})("onRowUnselect",function(t){u(e);let i=s(2);return g(i.onRowUnselect(t))}),x(1,j,17,0,"ng-template",null,2,C)(3,K,19,14,"ng-template",null,3,C),o()}if(n&2){let e=s(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 $(n,_){if(n&1&&x(0,F,5,7,"p-table",7),n&2){let e=s();f("ngIf",e.ARCollection())}}var re=(()=>{class n{constructor(){this.generateJournalService=E(B),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(y(l=>{this.ARCollection.update(t=>p(c({},t),{data:l.data.map(i=>p(c({},i),{checked:!1})),totalCount:l.totalCount}))})).subscribe()}ngOnInit(){console.log()}onLazyLoad(e){this.pageData.set({PageNumber:e.first/e.rows+1,PageSize:e.rows})}onRowSelect(e){let l=e.data;this.ARCollection.update(t=>p(c({},t),{data:t.data.map(i=>i.id===l.id?p(c({},i),{checked:!0}):i)}))}onRowUnselect(e){let l=e.data;Array.isArray(l)?this.ARCollection.update(t=>p(c({},t),{data:t.data.map((i,H)=>i.id===l[H].id?p(c({},i),{checked:!1}):i)})):this.ARCollection.update(t=>p(c({},t),{data:t.data.map(i=>i.id===l.id?p(c({},i),{checked:!1}):i)}))}onCreateJournal(){let l=this.selectedItems().map(t=>t.id);this.generateJournalService.createARJournal(l).subscribe(t=>{console.log("Journal created successfully:",t)})}static{this.\u0275fac=function(l){return new(l||n)}}static{this.\u0275cmp=J({type:n,selectors:[["app-ar-journal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","AR Collection"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy","onLazyLoad","onRowSelect","onRowUnselect",4,"ngIf"],["dataKey","id",3,"onLazyLoad","onRowSelect","onRowUnselect","value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy"],[2,"width","4rem"],[3,"value"]],template:function(l,t){l&1&&(a(0,"app-main-panel",4),x(1,O,1,1,"ng-template",null,0,C)(3,$,1,1,"ng-template",null,1,C),o())},dependencies:[P,z,T,k,U,L,V,N,M,D],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return n})();export{re as ARJournalComponent};
@@ -0,0 +1 @@
1
+ import{Z as o}from"./chunk-VYKJK5YU.js";function i(e="emit"){return r=>r.pipe(o(t=>console.log(`${e}`,t)))}export{i as a};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-TUL6Y2HH.js";import"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import{o as r}from"./chunk-6BFODHTZ.js";import"./chunk-RUGQ4OJG.js";import{ia as e}from"./chunk-VYKJK5YU.js";import"./chunk-EQDQRRRY.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-V7Y6Z4AQ.js").then(t=>t.Dashboard1Component),data:{title:"Dashboard",headerTemplate:"header"}}]}];export{d as DashboardRoutes};
@@ -0,0 +1 @@
1
+ import{a as Ie,b as Me,c as Ee,d as Oe,e as we,f as De}from"./chunk-223MMYH7.js";import{a as q}from"./chunk-LYEN4UBW.js";import{a as Z,b as ee}from"./chunk-4Y3NYY52.js";import{h as te,i as ye,j as Pe,k as be,l as ne}from"./chunk-H4HFCRFZ.js";import{g as W,h as N}from"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import"./chunk-JR4EQTPJ.js";import{a as G,b as L}from"./chunk-5GQEUX4M.js";import{g as T}from"./chunk-33KLXB2L.js";import{f as H,g as U}from"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import{u as ve,v as he}from"./chunk-OWI3BWEZ.js";import{e as B,f as ue,i as j,l as _e,n as fe,o as ge,r as xe,t as z,u as Ce}from"./chunk-ROKYJX6Q.js";import{d as Se}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import{m as Y,p as A,w as V}from"./chunk-6BFODHTZ.js";import{n as R,t as D}from"./chunk-RUGQ4OJG.js";import{Bb as g,Ha as y,Ic as f,Kb as m,Nb as K,Qb as I,Sb as M,Tb as E,Tc as de,Ub as n,Vb as i,Wb as O,X as Q,Z as P,_b as w,ca as ce,dc as _,ec as c,gb as l,ia as C,mc as r,nc as x,oc as se,qa as d,ra as u,s as $,ub as b,vc as k,wc as X}from"./chunk-VYKJK5YU.js";import{a as v,b as h}from"./chunk-EQDQRRRY.js";var F=(()=>{class t{constructor(){this.httpService=C(Se)}getGlobalConfiguration(){return this.httpService.get(void 0,"/api/setup/GlobalConfiguration")}saveGlobalConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitGlobalConfiguration",e)}fetchPOSOutletConfiguration(){return this.httpService.get(void 0,"/api/Setup/OutletConfiguration")}fetchPOSOutletFormConfiguration(e){let o={params:e};return this.httpService.get(void 0,"/api/Setup/OutletConfigurationForm",o)}updatePOSOutletConfiguration(e){return this.httpService.post(void 0,"/api/Setup/SubmitOutletConfiguration",e)}fetchPOSPaymentConfiguration(){return this.httpService.get(void 0,"/api/Setup/PaymentConfiguration")}fetchPOSPaymentFormConfiguration(e){let o={params:e};return this.httpService.get(void 0,"api/Setup/PaymentConfigurationForm",o)}updatePOSPaymentConfiguration(e){return this.httpService.post(void 0,"/api/Setup/SubmitPaymentConfiguration",e)}fetchPOSTaxConfiguration(){return this.httpService.get(void 0,"/api/setup/TaxConfigurationForm")}updatePOSTaxConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitTaxConfiguration",e)}fetchPOSWriteOffConfiguration(){return this.httpService.get(void 0,"/api/setup/WriteOffConfigurationList")}fetchPOSWriteOffFormConfiguration(e){let o={params:e};return this.httpService.get(void 0,"/api/setup/WriteOffConfigurationForm",o)}updatePOSWriteOffConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitWriteOffConfiguration",e)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ne(t,s){if(t&1){let e=w();n(0,"div",4)(1,"a",5),r(2,"Cancel"),i(),n(3,"p-button",6),_("onClick",function(){d(e);let a=c();return u(a.onSubmit())}),i()()}}function $e(t,s){if(t&1&&(n(0,"p-tab",7),r(1),i()),t&2){let e=s.$implicit,o=s.$index;m("value",o),l(),x(e)}}function Ke(t,s){if(t&1&&(n(0,"div",21)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function je(t,s){if(t&1&&(n(0,"div",21)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function ze(t,s){if(t&1&&(n(0,"div",21)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function He(t,s){if(t&1&&(n(0,"div",21)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function Ue(t,s){if(t&1&&(n(0,"div",21)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function qe(t,s){if(t&1){let e=w();n(0,"p-tabs",7)(1,"p-tablist"),M(2,$e,2,2,"p-tab",7,I),i(),n(4,"p-tabpanels")(5,"p-tabpanel",7)(6,"div",8)(7,"div",9)(8,"div",10)(9,"div",11)(10,"label",12),r(11,"Payment Method "),n(12,"span",13),r(13,"Debit"),i()(),O(14,"input",14),i()(),n(15,"div",10)(16,"div",11)(17,"label",12),r(18,"Sales "),n(19,"span",15),r(20,"Credit"),i()(),n(21,"p-select",16),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Sales"))}),g(22,Ke,7,2,"ng-template",null,2,f),i()()(),n(24,"div",10)(25,"div",11)(26,"label",12),r(27,"Account Receiveable "),n(28,"span",13),r(29,"Debit"),i()(),n(30,"p-select",16),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AccountReceiveable"))}),g(31,je,7,2,"ng-template",null,2,f),i()()()(),O(33,"hr"),n(34,"div",9)(35,"div",17)(36,"div",11)(37,"label",12),r(38,"COGS "),n(39,"span",13),r(40,"Debit"),i()(),n(41,"p-select",18),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"CostOfGoodsSold"))}),g(42,ze,7,2,"ng-template",null,2,f),i()()(),n(44,"div",17)(45,"div",11)(46,"label",12),r(47,"Sold Inventory "),n(48,"span",15),r(49,"Credit"),i()(),n(50,"p-select",16),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Inventory"))}),g(51,He,7,2,"ng-template",null,2,f),i()()()(),O(53,"hr"),n(54,"div",9)(55,"div",10)(56,"div",11)(57,"label",12),r(58,"Discount "),n(59,"span",13),r(60,"Debit"),i()(),n(61,"p-select",16),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"SalesDiscount"))}),g(62,Ue,7,2,"ng-template",null,2,f),i()()()()()(),n(64,"p-tabpanel",7)(65,"div",19)(66,"div",10)(67,"div",9)(68,"div",17)(69,"div",9)(70,"div",17)(71,"div",11)(72,"label",12),r(73,"Pending Paid Inventory "),n(74,"span",13),r(75,"Debit"),i()(),n(76,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PendingPaidInventory"))}),i()()(),n(77,"div",17)(78,"div",11)(79,"label",12),r(80,"Bought Inventory "),n(81,"span",13),r(82,"Debit"),i()(),n(83,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"InventoryBought"))}),i()()()()(),n(84,"div",17)(85,"div",9)(86,"div",17)(87,"div",11)(88,"label",12),r(89,"Payment Method"),i(),O(90,"input",14),i()(),n(91,"div",17)(92,"div",11)(93,"label",12),r(94,"Account Payable"),n(95,"span",15),r(96," Credit"),i()(),n(97,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AccountPayable"))}),i()()(),n(98,"div",17)(99,"div",11)(100,"label",12),r(101,"Pending Paid Inventory "),n(102,"span",15),r(103,"Credit"),i()(),n(104,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PendingPaidInventory"))}),i()()(),n(105,"div",17)(106,"div",11)(107,"label",12),r(108,"Discount "),n(109,"span",15),r(110,"Credit"),i()(),n(111,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PurchaseDiscount"))}),i()()()()()()()()(),n(112,"p-tabpanel",7)(113,"div",19)(114,"div",10)(115,"div",9)(116,"div",17)(117,"div",9)(118,"div",17)(119,"div",11)(120,"label",12),r(121,"Adjustment Asset "),n(122,"span",13),r(123,"Debit"),i()(),n(124,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AdjustmentCogs"))}),i()()()()(),n(125,"div",17)(126,"div",9)(127,"div",17)(128,"div",11)(129,"label",12),r(130,"Adjustment Expense"),n(131,"span",15),r(132," Credit"),i()(),n(133,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Adjustment"))}),i()()()()()()()()(),n(134,"p-tabpanel",7)(135,"div",19)(136,"div",10)(137,"div",9)(138,"div",17)(139,"div",9)(140,"div",17)(141,"div",11)(142,"label",12),r(143,"Payment Method"),i(),O(144,"input",14),i()(),n(145,"div",17)(146,"div",11)(147,"label",12),r(148,"Accounting For Prepaid "),n(149,"span",13),r(150,"Debit"),i()(),n(151,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AccountingForTreatment"))}),i()()()()(),n(152,"div",17)(153,"div",9)(154,"div",17)(155,"div",11)(156,"label",12),r(157,"Accounting For Prepaid"),n(158,"span",15),r(159," Credit"),i()(),n(160,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AccountingForTreatment"))}),i()()(),n(161,"div",17)(162,"div",11)(163,"label",12),r(164,"Sales For Prepaid"),n(165,"span",15),r(166," Credit"),i()(),n(167,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"SalesForTreatment"))}),i()()()()()()()()(),n(168,"p-tabpanel",7)(169,"div",19)(170,"div",10)(171,"div",9)(172,"div",17)(173,"div",9)(174,"div",17)(175,"div",11)(176,"label",12),r(177,"Sales Return "),n(178,"span",13),r(179,"Debit"),i()(),n(180,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"SalesReturn"))}),i()()(),n(181,"div",17)(182,"div",11)(183,"label",12),r(184,"Inventory "),n(185,"span",13),r(186,"Debit"),i()(),n(187,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Inventory"))}),i()()(),n(188,"div",17)(189,"div",11)(190,"label",12),r(191,"Payment Method"),i(),O(192,"input",14),i()()()(),n(193,"div",17)(194,"div",9)(195,"div",17)(196,"div",11)(197,"label",12),r(198,"Payment Method"),i(),O(199,"input",14),i()(),n(200,"div",17)(201,"div",11)(202,"label",12),r(203,"COGS"),n(204,"span",15),r(205," Credit"),i()(),n(206,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"CostOfGoodsSold"))}),i()()(),n(207,"div",17)(208,"div",11)(209,"label",12),r(210,"Purchase Return"),n(211,"span",15),r(212," Credit"),i()(),n(213,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PurchaseReturn"))}),i()()()()()()()()(),n(214,"p-tabpanel",7)(215,"div",19)(216,"div",10)(217,"div",9)(218,"div",17)(219,"div",9)(220,"div",10)(221,"div",11)(222,"label",12),r(223,"Consignment Payable "),n(224,"span",13),r(225,"Debit"),i()(),n(226,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Consignment"))}),i()()()()()()()()(),n(227,"p-tabpanel",7)(228,"div",19)(229,"div",10)(230,"div",9)(231,"div",17)(232,"div",9)(233,"div",17)(234,"div",11)(235,"label",12),r(236,"Payment Fee "),n(237,"span",13),r(238,"Debit"),i()(),n(239,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PaymentFee"))}),i()()(),n(240,"div",17)(241,"div",11)(242,"label",12),r(243,"Payment Method"),i(),O(244,"input",14),i()()()(),n(245,"div",17)(246,"div",9)(247,"div",17)(248,"div",11)(249,"label",12),r(250,"Sales"),i(),O(251,"input",14),i()(),n(252,"div",17)(253,"div",11)(254,"label",12),r(255,"Surcharge"),i(),n(256,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Surcharge"))}),i()()()()()()()()(),n(257,"p-tabpanel",7)(258,"div",19)(259,"div",10)(260,"div",9)(261,"div",17)(262,"div",9)(263,"div",17)(264,"div",11)(265,"label",12),r(266,"Finished Goods "),n(267,"span",13),r(268,"Debit"),i()(),n(269,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"FinishedGoods"))}),i()()()()(),n(270,"div",17)(271,"div",9)(272,"div",17)(273,"div",11)(274,"label",12),r(275,"Raw Material"),i(),n(276,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"RawMaterial"))}),i()()(),n(277,"div",17)(278,"div",11)(279,"label",12),r(280,"Production Expense"),i(),n(281,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"ProductionExpenses"))}),i()()()()()()()()(),n(282,"p-tabpanel",7)(283,"div",19)(284,"div",10)(285,"div",9)(286,"div",10)(287,"div",9)(288,"div",17)(289,"div",11)(290,"label",12),r(291,"Crossing Account "),n(292,"span",13),r(293,"Debit"),i()(),n(294,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"CrossingAccount"))}),i()()(),n(295,"div",17)(296,"div",11)(297,"label",12),r(298,"Retained Earnings "),n(299,"span",13),r(300,"Debit"),i()(),n(301,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"RetainedEarnings"))}),i()()(),n(302,"div",17)(303,"div",11)(304,"label",12),r(305,"Current Earnings "),n(306,"span",13),r(307,"Debit"),i()(),n(308,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"CurrentEarnings"))}),i()()()()()()()()()()()}if(t&2){let e=c();m("value",0),l(2),E(e.tabs()),l(3),m("value",0),l(16),m("virtualScrollItemSize",50)("ngModel",e.form()[e.getAccountIDByKey("Sales")].accountID)("options",e.POSIntegration().options.accounts),l(9),m("virtualScrollItemSize",50)("ngModel",e.form()[e.getAccountIDByKey("AccountReceiveable")].accountID)("options",e.POSIntegration().options.accounts),l(11),m("filter",!0)("virtualScroll",!0)("virtualScrollItemSize",25)("ngModel",e.form()[e.getAccountIDByKey("CostOfGoodsSold")].accountID)("options",e.POSIntegration().options.accounts),l(9),m("virtualScrollItemSize",50)("ngModel",e.form()[e.getAccountIDByKey("Inventory")].accountID)("options",e.POSIntegration().options.accounts),l(11),m("virtualScrollItemSize",50)("ngModel",e.form()[e.getAccountIDByKey("SalesDiscount")].accountID)("options",e.POSIntegration().options.accounts),l(3),m("value",1),l(12),m("ngModel",e.form()[e.getAccountIDByKey("PendingPaidInventory")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("InventoryBought")].accountID)("options",e.POSIntegration().options.accounts),l(14),m("ngModel",e.form()[e.getAccountIDByKey("AccountPayable")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("PendingPaidInventory")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("PurchaseDiscount")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",2),l(12),m("ngModel",e.form()[e.getAccountIDByKey("AdjustmentCogs")].accountID)("options",e.POSIntegration().options.accounts),l(9),m("ngModel",e.form()[e.getAccountIDByKey("Adjustment")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",3),l(17),m("ngModel",e.form()[e.getAccountIDByKey("AccountingForTreatment")].accountID)("options",e.POSIntegration().options.accounts),l(9),m("ngModel",e.form()[e.getAccountIDByKey("AccountingForTreatment")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("SalesForTreatment")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",4),l(12),m("ngModel",e.form()[e.getAccountIDByKey("SalesReturn")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("Inventory")].accountID)("options",e.POSIntegration().options.accounts),l(19),m("ngModel",e.form()[e.getAccountIDByKey("CostOfGoodsSold")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("PurchaseReturn")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",5),l(12),m("ngModel",e.form()[e.getAccountIDByKey("Consignment")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",6),l(12),m("ngModel",e.form()[e.getAccountIDByKey("PaymentFee")].accountID)("options",e.POSIntegration().options.accounts),l(17),m("ngModel",e.form()[e.getAccountIDByKey("Surcharge")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",7),l(12),m("ngModel",e.form()[e.getAccountIDByKey("FinishedGoods")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("RawMaterial")].accountID)("options",e.POSIntegration().options.accounts),l(5),m("ngModel",e.form()[e.getAccountIDByKey("ProductionExpenses")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",8),l(12),m("ngModel",e.form()[e.getAccountIDByKey("CrossingAccount")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("RetainedEarnings")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("CurrentEarnings")].accountID)("options",e.POSIntegration().options.accounts)}}var Te=(()=>{class t{constructor(){this.POSSetupService=C(F),this.tabs=y(["Sell","Buy","Adjustment","Prepaid","Return","Debt","Payment Fee","Manufacturing","Advance"]),this.POSIntegration=y(null),this.form=y([])}ngOnInit(){this.POSSetupService.getGlobalConfiguration().pipe(P(e=>{this.POSIntegration.set(e),this.form.set(e.form)})).subscribe()}updateAccountID(e,o){let a=this.POSIntegration().descriptions.findIndex(p=>p.name.toLowerCase()===o.toLowerCase());if(a!==-1){let p=this.form().findIndex(S=>S.typeID===+this.POSIntegration().descriptions[a].id);if(p!==-1){let S=[...this.form()];S[p]=h(v({},S[p]),{accountID:e}),this.form.set(S)}}}getAccountIDByKey(e){return this.form().findIndex(o=>this.POSIntegration().descriptions.some(a=>a.name.toLowerCase()===e.toLowerCase()&&+a.id===o.typeID))}onSubmit(){let e={form:this.form()};this.POSSetupService.saveGlobalConfiguration(e).pipe(q("response")).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-global"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["item",""],["pageTitle","POS Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[3,"value"],[1,"d-flex","flex-column","gap-3"],[1,"row","row-gap-4"],[1,"col-6"],[1,"d-flex","flex-column"],["for",""],[1,"text-success","fs-2"],["type","text","pInputText","","value","xxxxxxxxxxxxxxxxxxxx","readonly",""],[1,"text-danger","fs-2"],["filter","","filterBy","code","virtualScroll","","optionLabel","name","optionValue","id","placeholder","Select a City",3,"ngModelChange","virtualScrollItemSize","ngModel","options"],[1,"col"],["filterBy","code","optionLabel","name","optionValue","id","placeholder","Select a City",3,"ngModelChange","filter","virtualScroll","virtualScrollItemSize","ngModel","options"],[1,"row"],["optionLabel","name","optionValue","id","placeholder","Select a City",3,"ngModelChange","ngModel","options"],[1,"d-flex","gap-3"]],template:function(o,a){o&1&&(n(0,"app-main-panel",3),g(1,Ne,4,0,"ng-template",null,0,f)(3,qe,309,73,"ng-template",null,1,f),i())},dependencies:[T,De,we,Oe,Ee,Ie,Me,he,ve,N,W,z,B,j,D,V,A,U,H],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Je=t=>[t];function Qe(t,s){if(t&1&&(n(0,"th",7),r(1),i()),t&2){let e=s.$implicit;l(),x(e.name.slice(0,10))}}function Xe(t,s){if(t&1&&(n(0,"tr")(1,"th",6),r(2,"Method"),i(),M(3,Qe,2,1,"th",7,I),i()),t&2){let e=c(3);l(3),E(e.paymentConfiguration().outlets)}}function Ye(t,s){if(t&1&&(n(0,"td"),r(1),i()),t&2){let e=s.$implicit;l(),x(e.accountName)}}function Ze(t,s){if(t&1&&(n(0,"tr")(1,"td",8)(2,"a",9),r(3),i()(),M(4,Ye,2,1,"td",null,I),i()),t&2){let e=s.$implicit;l(2),m("routerLink",X(2,Je,e.id)),l(),x(e.name),l(),E(e.accounts)}}function et(t,s){if(t&1&&(n(0,"p-table",5),g(1,Xe,5,0,"ng-template",null,1,f)(3,Ze,6,4,"ng-template",null,2,f),i()),t&2){let e=c(2);m("scrollable",!0)("scrollHeight","calc(100vh - 150px)")("value",e.paymentConfiguration().payment)}}function tt(t,s){t&1&&(n(0,"app-main-panel",4),g(1,et,5,3,"ng-template",null,0,f),i())}var Ae=(()=>{class t{constructor(){this.POSSetupService=C(F),this.paymentConfiguration=y(null)}ngOnInit(){this.POSSetupService.fetchPOSPaymentConfiguration().pipe(P(e=>{this.paymentConfiguration.set(e)})).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-payment"]],decls:1,vars:1,consts:[["content",""],["header",""],["body",""],["pageTitle","Payment Method Accounting",4,"ngIf"],["pageTitle","Payment Method Accounting"],[3,"scrollable","scrollHeight","value"],["pFrozenColumn","",2,"min-width","300px"],[2,"min-width","200px"],["pFrozenColumn",""],[1,"link-primary",3,"routerLink"]],template:function(o,a){o&1&&g(0,tt,3,0,"app-main-panel",3),o&2&&m("ngIf",a.paymentConfiguration())},dependencies:[T,ne,te,ye,D,R,V,A],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var nt=t=>[t];function it(t,s){if(t&1&&(n(0,"th"),r(1),i()),t&2){let e=s.$implicit;l(),x(e.value)}}function ot(t,s){if(t&1&&(n(0,"tr")(1,"th"),r(2,"Name"),i(),M(3,it,2,1,"th",null,I),i()),t&2){let e=c(2);l(3),E(e.outletList().listCOAType)}}function at(t,s){if(t&1&&(n(0,"td"),r(1),i()),t&2){let e=s.$implicit;l(),x(e)}}function rt(t,s){if(t&1&&(n(0,"tr")(1,"td")(2,"a",5),r(3),i()(),M(4,at,2,1,"td",null,I),i()),t&2){let e=s.$implicit;l(2),m("routerLink",X(2,nt,e.OutletID)),l(),se(" ",e.OutletName,""),l(),E(e.Accounts)}}function lt(t,s){if(t&1&&(n(0,"p-card")(1,"p-table",4),g(2,ot,5,0,"ng-template",null,1,f)(4,rt,6,4,"ng-template",null,2,f),i()()),t&2){let e=c();l(),m("scrollable",!0)("scrollHeight","calc(100vh - 150px)")("value",e.outletList().listOutletAccount)}}var Ve=(()=>{class t{constructor(){this.POSSetupService=C(F),this.outletList=y(null)}ngOnInit(){this.POSSetupService.fetchPOSOutletConfiguration().pipe(P(e=>{this.outletList.set(e)})).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-outlet"]],decls:3,vars:0,consts:[["content",""],["header",""],["body",""],["pageTitle","Outlet Account"],[3,"scrollable","scrollHeight","value"],[1,"link-primary",3,"routerLink"]],template:function(o,a){o&1&&(n(0,"app-main-panel",3),g(1,lt,6,3,"ng-template",null,0,f),i())},dependencies:[T,D,L,G,ne,te,V,A],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();function pt(t,s){if(t&1){let e=w();n(0,"a",4),r(1,"Cancel"),i(),n(2,"button",5),_("click",function(){d(e);let a=c(2);return u(a.updatePOsOutletConfiguration())}),r(3," Save "),i()}}function mt(t,s){if(t&1&&(n(0,"div",9)(1,"div",10)(2,"label",11),r(3),i(),O(4,"p-select",12),i()()),t&2){let e=s.$implicit,o=s.$index,a=c(4);m("formGroup",e),l(2),m("for","accountID-"+o),l(),x(a.outletForm().form[o].TypeName),l(),m("inputId","accountID-"+o)("options",a.outletForm().options.accounts)}}function ct(t,s){if(t&1&&(n(0,"div",8),M(1,mt,5,5,"div",9,I),i()),t&2){let e=c(3);l(),E(e.form.controls.item.controls)}}function st(t,s){if(t&1&&(n(0,"p-card",6),g(1,ct,3,0,"ng-template",7),i()),t&2){let e=c(2);m("formGroup",e.form)}}function dt(t,s){if(t&1&&(n(0,"app-main-panel",3),g(1,pt,4,0,"ng-template",null,0,f)(3,st,2,1,"ng-template",null,1,f),i()),t&2){let e=c();m("pageTitle","Edit "+e.outletForm().form[0].OutletName+" COA")}}var ke=(()=>{class t{constructor(){this.route=C(Y),this.POSSetupService=C(F),this.outletForm=y(null),this.fb=C(xe)}ngOnInit(){this.generateForm(),this.route.paramMap.pipe($(e=>e.get("id")),Q(e=>this.POSSetupService.fetchPOSOutletFormConfiguration({outletID:e})),P(e=>{this.outletForm.set(e),e.form.forEach(o=>{let a=this.fb.group({AccountID:this.fb.control(o.AccountID),TypeID:this.fb.control(o.TypeID),TypeName:this.fb.control(o.TypeName),OutletID:this.fb.control(o.OutletID),OutletName:this.fb.control(o.OutletName)});this.form.controls.item.push(a)})}),q("response")).subscribe()}generateForm(){this.form=this.fb.group({item:this.fb.array([])})}get item(){return this.form.get("item")}updatePOsOutletConfiguration(){let{item:e}=this.form.getRawValue(),o={form:e};this.POSSetupService.updatePOSOutletConfiguration(o).pipe(q("response")).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-outlet-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle",4,"ngIf"],[3,"pageTitle"],[1,"p-button","p-button-secondary","p-button-outlined"],["type","button",1,"btn","btn-primary","rounded",3,"click"],[3,"formGroup"],["formArrayName","item"],[1,"row","row-gap-3"],[1,"col-4",3,"formGroup"],[1,"d-flex","flex-column"],[3,"for"],["formControlName","AccountID","optionLabel","name","optionValue","id","placeholder","Select an account",3,"inputId","options"]],template:function(o,a){o&1&&g(0,dt,5,1,"app-main-panel",2),o&2&&m("ngIf",a.outletForm())},dependencies:[T,D,R,L,G,Ce,B,ue,_e,ge,fe,N,W],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var ut=()=>({height:"calc(100vh - 100px)"}),_t=()=>({width:"100%",height:"calc(100vh - 150px)"}),ft=()=>({width:"100%"});function gt(t,s){if(t&1){let e=w();n(0,"button",4),r(1,"Cancel"),i(),n(2,"button",5),_("click",function(){d(e);let a=c(2);return u(a.updatePOSOutletConfiguration())}),r(3," Save "),i()}}function xt(t,s){if(t&1){let e=w();n(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),r(4),i()(),n(5,"div",11)(6,"p-select",12),_("ngModelChange",function(a){let p=d(e).$index,S=c(3);return u(S.updateAccountById(a,p))}),i()()()()}if(t&2){let e=s.$implicit,o=s.$index,a=c(3);l(4),x(e.outletName.slice(0,15)),l(2),K(k(7,ft)),m("ngModel",a.paymentForm().form.accounts[o].accountID)("virtualScroll",!0)("virtualScrollItemSize",50)("options",a.paymentForm().options.chartOfAccount.result)}}function Ct(t,s){if(t&1&&(n(0,"p-card")(1,"p-scrollpanel")(2,"div",6),M(3,xt,7,8,"div",7,I),i()()()),t&2){let e=c(2);K(k(4,ut)),l(),K(k(5,_t)),l(2),E(e.paymentForm().form.accounts)}}function St(t,s){t&1&&(n(0,"app-main-panel",3),g(1,gt,4,0,"ng-template",null,0,f)(3,Ct,5,6,"ng-template",null,1,f),i())}var Be=(()=>{class t{constructor(){this.route=C(Y),this.POSSetupService=C(F),this.paymentForm=y(null)}ngOnInit(){this.route.paramMap.pipe($(e=>+e.get("id")),Q(e=>this.POSSetupService.fetchPOSPaymentFormConfiguration({ID:e})),P(e=>{this.paymentForm.set(e)}),q("response")).subscribe()}updateAccountById(e,o){let a=this.paymentForm().form.accounts,p=h(v({},this.paymentForm()),{form:h(v({},this.paymentForm().form),{accounts:a.map((S,ie)=>ie===o?h(v({},S),{accountID:e}):S)})});this.paymentForm.set(p)}updatePOSOutletConfiguration(){let e={form:[...this.paymentForm().form.accounts]};this.POSSetupService.updatePOSPaymentConfiguration(e).pipe(q("response")).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-payment-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],["pageTitle","Payment Form Accounting",4,"ngIf"],["pageTitle","Payment Form Accounting"],[1,"btn","btn-secondary","rounded"],[1,"btn","btn-primary","rounded",3,"click"],[1,"row","row-gap-3"],[1,"col-4","d-flex","flex-column","gap-2"],[1,"row","row-gap-4"],[1,"col-6"],["for",""],[1,"col"],["optionLabel","value","optionValue","key","placeholder","Select an account",1,"w-full",3,"ngModelChange","ngModel","virtualScroll","virtualScrollItemSize","options"]],template:function(o,a){o&1&&g(0,St,5,0,"app-main-panel",2),o&2&&m("ngIf",a.paymentForm())},dependencies:[L,G,T,D,R,ee,Z,N,W,z,B,j],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var vt=()=>({width:"100%",height:"calc(100vh - 150px)"});function ht(t,s){if(t&1){let e=w();n(0,"div",3)(1,"a",4),r(2,"Cancel"),i(),n(3,"p-button",5),_("onClick",function(){d(e);let a=c();return u(a.updatePOSTaxConfiguration())}),i()()}}function yt(t,s){if(t&1){let e=w();n(0,"div",9)(1,"div",10)(2,"label",11),r(3),i(),n(4,"p-select",12),_("ngModelChange",function(a){let p=d(e).$index,S=c(2);return u(S.updateAccountID(a,p))}),i()()()}if(t&2){let e=s.$implicit,o=s.$index,a=c(2);l(3),x(e.name),l(),m("options",a.taxForm().options.chartOfAccount)("ngModel",a.taxForm().form[o].accountID)}}function Pt(t,s){if(t&1&&(n(0,"p-card")(1,"p-scroll-panel")(2,"div",6)(3,"div",7)(4,"div",8),M(5,yt,5,3,"div",9,I),i()()()()()),t&2){let e=c();l(),K(k(2,vt)),l(4),E(e.taxForm().form)}}var Ge=(()=>{class t{constructor(){this.POSSetupService=C(F),this.taxForm=y(null)}ngOnInit(){this.POSSetupService.fetchPOSTaxConfiguration().pipe(P(e=>{this.taxForm.set(e)})).subscribe()}updateAccountID(e,o){let a=this.taxForm().form,p=h(v({},this.taxForm()),{form:a.map((S,ie)=>ie===o?h(v({},S),{accountID:e}):S)});this.taxForm.set(p)}updatePOSTaxConfiguration(){let e={form:[...this.taxForm().form]};this.POSSetupService.updatePOSTaxConfiguration(e).pipe(P(o=>console.log(o))).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-tax"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["pageTitle","Tax Setup"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[1,"row"],[1,"col"],[1,"row","row-gap-3"],[1,"col-3"],[1,"d-flex","flex-column"],["for",""],["optionLabel","value","optionValue","key","placeholder","Select a account",3,"ngModelChange","options","ngModel"]],template:function(o,a){o&1&&(n(0,"app-main-panel",2),g(1,ht,4,0,"ng-template",null,0,f)(3,Pt,7,3,"ng-template",null,1,f),i())},dependencies:[T,L,G,D,N,W,ee,Z,z,B,j,V,A,U,H],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var bt=()=>({"min-width":"50rem"}),It=t=>[t];function Mt(t,s){t&1&&O(0,"p-button",6)}function Et(t,s){if(t&1&&g(0,Mt,1,0,"p-button",5),t&2){let e=c();m("ngIf",e.hasCheckedItems())}}function Ot(t,s){t&1&&(n(0,"tr")(1,"th",8),O(2,"p-tableHeaderCheckbox"),i(),n(3,"th"),r(4,"Name"),i(),n(5,"th"),r(6,"Description"),i()())}function wt(t,s){if(t&1&&(n(0,"tr")(1,"td"),O(2,"p-tableCheckbox",9),i(),n(3,"td")(4,"a",10),r(5),i()(),n(6,"td"),r(7),i()()),t&2){let e,o=s.$implicit;l(2),m("value",o),l(2),m("routerLink",X(4,It,o.id)),l(),x(o.name),l(2),x((e=o.description)!==null&&e!==void 0?e:"N/A")}}function Dt(t,s){if(t&1){let e=w();n(0,"p-table",7),_("onRowSelect",function(a){d(e);let p=c();return u(p.onRowSelect(a))})("onRowUnselect",function(a){d(e);let p=c();return u(p.onRowSelect(a))})("onHeaderCheckboxToggle",function(a){d(e);let p=c();return u(p.onSelectAll(a))}),g(1,Ot,7,0,"ng-template",null,2,f)(3,wt,8,6,"ng-template",null,3,f),i()}if(t&2){let e=c();m("value",e.writeoffList().data)("tableStyle",k(2,bt))}}var Le=(()=>{class t{constructor(){this.POSSetupService=C(F),this.writeoffList=y(null),this.hasCheckedItems=de(()=>{let e=this.writeoffList();return!e||!e.data||!Array.isArray(e.data)?!1:e.data.some(o=>o&&o.checked===!0)})}ngOnInit(){this.POSSetupService.fetchPOSWriteOffConfiguration().pipe($(e=>h(v({},e),{data:e.data.map(o=>h(v({},o),{checked:!1}))})),P(e=>{this.writeoffList.set(e)})).subscribe()}onRowSelect(e){console.log("Selected Row:",e.data);let o=this.writeoffList();if(!o||!o.data)return;let a=o.data.findIndex(p=>p.id===e.data.id);if(a!==-1){let p=[...o.data];p[a]=h(v({},p[a]),{checked:!p[a].checked}),this.writeoffList.set(h(v({},o),{data:p}))}}onSelectAll(e){let o=this.writeoffList();if(!o?.data)return;let a=o.data.map(p=>h(v({},p),{checked:e.checked}));this.writeoffList.set(h(v({},o),{data:a}))}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-writeoff"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Write Off"],["severity","danger","label","Delete","icon","fa-solid fa-trash",4,"ngIf"],["severity","danger","label","Delete","icon","fa-solid fa-trash"],["dataKey","id",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","tableStyle"],[2,"width","4rem"],[3,"value"],[1,"link-primary",3,"routerLink"]],template:function(o,a){o&1&&(n(0,"app-main-panel",4),g(1,Et,1,1,"ng-template",null,0,f)(3,Dt,5,3,"ng-template",null,1,f),i())},dependencies:[T,D,R,ne,te,Pe,be,V,A,U,H],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Tt=()=>({witdh:"100%",height:"calc(100vh - 150px)"});function Ft(t,s){if(t&1){let e=w();n(0,"div")(1,"a",4),r(2,"Cancel"),i(),n(3,"p-button",5),_("onClick",function(){d(e);let a=c(2);return u(a.updateWriteOffConfiguration())}),i()()}}function At(t,s){if(t&1){let e=w();n(0,"div",9)(1,"div",10)(2,"label",11),r(3),i(),n(4,"p-select",12),_("ngModelChange",function(a){let p=d(e).$index,S=c(3);return u(S.updateAccountById(a,p))}),i()()()}if(t&2){let e=s.$implicit,o=c(3);l(3),x(e.name),l(),m("ngModel",e.accountID)("options",o.writeOffForm().options.account)("virtualScroll",!0)("virtualScrollItemSize",50)}}function Vt(t,s){if(t&1&&(n(0,"p-card")(1,"p-scroll-panel")(2,"div",6)(3,"div",7)(4,"div",8),M(5,At,5,5,"div",9,I),i()()()()()),t&2){let e=c(2);l(),K(k(2,Tt)),l(4),E(e.writeOffForm().form)}}function kt(t,s){if(t&1&&(n(0,"app-main-panel",3),g(1,Ft,4,0,"ng-template",null,0,f)(3,Vt,7,3,"ng-template",null,1,f),i()),t&2){let e=c();m("pageTitle","Write Off Form "+e.writeOffForm().info.name)}}var We=(()=>{class t{constructor(){this.POSSetupService=C(F),this.route=C(Y),this.writeOffForm=y(null)}ngOnInit(){this.route.paramMap.pipe($(e=>e.get("id")),Q(e=>this.POSSetupService.fetchPOSWriteOffFormConfiguration({ID:e})),P(e=>this.writeOffForm.set(e))).subscribe()}updateAccountById(e,o){let a=this.writeOffForm().form,p=h(v({},this.writeOffForm()),{form:a.map((S,ie)=>ie===o?h(v({},S),{accountID:e}):S)});this.writeOffForm.set(p)}updateWriteOffConfiguration(){let e={form:this.writeOffForm().form};this.POSSetupService.updatePOSWriteOffConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-writeoff-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle",4,"ngIf"],[3,"pageTitle"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[1,"row"],[1,"col"],[1,"row","row-gap-3"],[1,"col-3"],[1,"d-flex","flex-column"],["for",""],["optionLabel","value","optionValue","key","placeholder","Select a City",3,"ngModelChange","ngModel","options","virtualScroll","virtualScrollItemSize"]],template:function(o,a){o&1&&g(0,kt,5,1,"app-main-panel",2),o&2&&m("ngIf",a.writeOffForm())},dependencies:[T,D,R,L,G,ee,Z,N,W,z,B,j,V,A,U,H],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Qi=[{path:"",redirectTo:"global",pathMatch:"full"},{path:"",children:[{path:"global",component:Te},{path:"outlets",component:Ve},{path:"outlets/:id",component:ke},{path:"payments",component:Ae},{path:"payments/:id",component:Be},{path:"taxs",component:Ge},{path:"writeoff",component:Le},{path:"writeoff/:id",component:We}]}];export{Qi as POS_SETUP_ROUTES};
@@ -1,4 +1,4 @@
1
- import{e as ce}from"./chunk-PCJXJ6O4.js";import{c as pe}from"./chunk-DKWZOSVY.js";import{e as se,f as de}from"./chunk-Z53S4NM2.js";import{h as re}from"./chunk-2LKTSMUI.js";import{Fa as ie,Ga as ae,Ha as V,Pa as le,ya as oe}from"./chunk-3ROVFYLI.js";import{c as ne,d as S,f as Q,g as B,h as M}from"./chunk-S35HUXPS.js";import{k as X,n as Y,o as Z,p as ee,t as te}from"./chunk-C4WUUVLC.js";import{$b as T,Ac as h,Bc as G,Cb as R,Cc as J,Da as v,Eb as H,Fb as c,Mc as U,Nb as f,Ob as i,Sb as C,Vc as F,Zb as d,_b as m,ac as x,bc as I,cc as P,dc as w,ga as O,ha as $,hc as k,ic as s,jc as N,kb as a,kc as E,lc as u,ma as A,mc as W,nc as _,oc as g,qc as K,rc as L,ua as b,va as y,xa as D,yb as j,yc as z,zb as q}from"./chunk-PQTHPF23.js";var ue=["header"],me=["icons"],fe=["content"],he=["footer"],be=["headericons"],ye=["contentWrapper"],Te=["*",[["p-header"]],[["p-footer"]]],ve=["*","p-header","p-footer"],Ce=(e,o)=>({"p-panel p-component":!0,"p-panel-toggleable":e,"p-panel-expanded":o}),xe=e=>({transitionParams:e,height:"0",opacity:"0"}),Ie=e=>({value:"hidden",params:e}),Pe=e=>({transitionParams:e,height:"*",opacity:"1"}),we=e=>({value:"visible",params:e}),ke=(e,o,t)=>({"p-panel-icons-start":e,"p-panel-icons-end":o,"p-panel-icons-center":t}),Ee=e=>({$implicit:e});function Fe(e,o){if(e&1&&(d(0,"span",12),K(1),m()),e&2){let t=s(2);f("id",t.id+"_header"),a(),L(t._header)}}function Se(e,o){e&1&&P(0)}function Qe(e,o){}function Be(e,o){e&1&&c(0,Qe,0,0,"ng-template")}function Me(e,o){if(e&1&&T(0,"span"),e&2){let t=s(6);C(t.expandIcon)}}function Ve(e,o){e&1&&T(0,"MinusIcon")}function De(e,o){if(e&1&&(x(0),c(1,Me,1,2,"span",16)(2,Ve,1,0,"MinusIcon",14),I()),e&2){let t=s(5);a(),i("ngIf",t.expandIcon),a(),i("ngIf",!t.expandIcon)}}function Oe(e,o){if(e&1&&T(0,"span"),e&2){let t=s(6);C(t.collapseIcon)}}function $e(e,o){e&1&&T(0,"PlusIcon")}function Ae(e,o){if(e&1&&(x(0),c(1,Oe,1,2,"span",16)(2,$e,1,0,"PlusIcon",14),I()),e&2){let t=s(5);a(),i("ngIf",t.collapseIcon),a(),i("ngIf",!t.collapseIcon)}}function je(e,o){if(e&1&&(x(0),c(1,De,3,2,"ng-container",14)(2,Ae,3,2,"ng-container",14),I()),e&2){let t=s(4);a(),i("ngIf",!t.collapsed),a(),i("ngIf",t.collapsed)}}function qe(e,o){}function Re(e,o){e&1&&c(0,qe,0,0,"ng-template")}function He(e,o){if(e&1&&c(0,je,3,2,"ng-container",14)(1,Re,1,0,null,15),e&2){let t=s(3);i("ngIf",!t.headerIconsTemplate&&!t._headerIconsTemplate&&!(t.toggleButtonProps!=null&&t.toggleButtonProps.icon)),a(),i("ngTemplateOutlet",t.headerIconsTemplate||t._headerIconsTemplate)("ngTemplateOutletContext",h(3,Ee,t.collapsed))}}function Ne(e,o){if(e&1){let t=w();d(0,"p-button",13),k("click",function(n){b(t);let r=s(2);return y(r.onIconClick(n))})("keydown",function(n){b(t);let r=s(2);return y(r.onKeyDown(n))}),c(1,He,2,5,"ng-template",null,1,U),m()}if(e&2){let t=s(2);i("text",!0)("rounded",!0)("buttonProps",t.toggleButtonProps),f("id",t.id+"_header")("aria-label",t.buttonAriaLabel)("aria-controls",t.id+"_content")("aria-expanded",!t.collapsed)}}function We(e,o){if(e&1){let t=w();d(0,"div",8),k("click",function(n){b(t);let r=s();return y(r.onHeaderClick(n))}),c(1,Fe,2,2,"span",9),E(2,1),c(3,Se,1,0,"ng-container",6),d(4,"div",10),c(5,Be,1,0,null,6)(6,Ne,3,7,"p-button",11),m()()}if(e&2){let t=s();f("id",t.id+"-titlebar"),a(),i("ngIf",t._header),a(2),i("ngTemplateOutlet",t.headerTemplate||t._headerTemplate),a(),i("ngClass",J(6,ke,t.iconPos==="start",t.iconPos==="end",t.iconPos==="center")),a(),i("ngTemplateOutlet",t.iconTemplate||t._iconTemplate),a(),i("ngIf",t.toggleable)}}function Ke(e,o){e&1&&P(0)}function Le(e,o){e&1&&P(0)}function ze(e,o){if(e&1&&(d(0,"div",17),E(1,2),c(2,Le,1,0,"ng-container",6),m()),e&2){let t=s();a(2),i("ngTemplateOutlet",t.footerTemplate||t._footerTemplate)}}var Ge=({dt:e})=>`
1
+ import{e as ce}from"./chunk-DUOJKP2G.js";import{c as pe}from"./chunk-JR4EQTPJ.js";import{f as se,g as de}from"./chunk-UTL7D6E7.js";import{i as re}from"./chunk-OWI3BWEZ.js";import{Fa as ie,Ga as ae,Ha as V,Pa as le,ya as oe}from"./chunk-ROKYJX6Q.js";import{c as ne,d as S,f as Q,g as B,h as M}from"./chunk-S35HUXPS.js";import{k as X,n as Y,o as Z,p as ee,t as te}from"./chunk-RUGQ4OJG.js";import{Ab as H,Bb as c,Ic as U,Jb as f,Kb as i,Ob as C,Rc as F,Ub as d,Vb as m,Wb as T,Xb as x,Yb as I,Zb as P,_b as w,ca as O,da as $,dc as k,ec as s,fc as N,gb as a,gc as E,hc as u,ia as A,ic as W,jc as _,kc as g,mc as K,nc as L,qa as b,ra as y,ta as D,ub as j,uc as z,vb as q,wc as h,xc as G,yb as R,yc as J,za as v}from"./chunk-VYKJK5YU.js";var ue=["header"],me=["icons"],fe=["content"],he=["footer"],be=["headericons"],ye=["contentWrapper"],Te=["*",[["p-header"]],[["p-footer"]]],ve=["*","p-header","p-footer"],Ce=(e,o)=>({"p-panel p-component":!0,"p-panel-toggleable":e,"p-panel-expanded":o}),xe=e=>({transitionParams:e,height:"0",opacity:"0"}),Ie=e=>({value:"hidden",params:e}),Pe=e=>({transitionParams:e,height:"*",opacity:"1"}),we=e=>({value:"visible",params:e}),ke=(e,o,t)=>({"p-panel-icons-start":e,"p-panel-icons-end":o,"p-panel-icons-center":t}),Ee=e=>({$implicit:e});function Fe(e,o){if(e&1&&(d(0,"span",12),K(1),m()),e&2){let t=s(2);f("id",t.id+"_header"),a(),L(t._header)}}function Se(e,o){e&1&&P(0)}function Qe(e,o){}function Be(e,o){e&1&&c(0,Qe,0,0,"ng-template")}function Me(e,o){if(e&1&&T(0,"span"),e&2){let t=s(6);C(t.expandIcon)}}function Ve(e,o){e&1&&T(0,"MinusIcon")}function De(e,o){if(e&1&&(x(0),c(1,Me,1,2,"span",16)(2,Ve,1,0,"MinusIcon",14),I()),e&2){let t=s(5);a(),i("ngIf",t.expandIcon),a(),i("ngIf",!t.expandIcon)}}function Oe(e,o){if(e&1&&T(0,"span"),e&2){let t=s(6);C(t.collapseIcon)}}function $e(e,o){e&1&&T(0,"PlusIcon")}function Ae(e,o){if(e&1&&(x(0),c(1,Oe,1,2,"span",16)(2,$e,1,0,"PlusIcon",14),I()),e&2){let t=s(5);a(),i("ngIf",t.collapseIcon),a(),i("ngIf",!t.collapseIcon)}}function je(e,o){if(e&1&&(x(0),c(1,De,3,2,"ng-container",14)(2,Ae,3,2,"ng-container",14),I()),e&2){let t=s(4);a(),i("ngIf",!t.collapsed),a(),i("ngIf",t.collapsed)}}function qe(e,o){}function Re(e,o){e&1&&c(0,qe,0,0,"ng-template")}function He(e,o){if(e&1&&c(0,je,3,2,"ng-container",14)(1,Re,1,0,null,15),e&2){let t=s(3);i("ngIf",!t.headerIconsTemplate&&!t._headerIconsTemplate&&!(t.toggleButtonProps!=null&&t.toggleButtonProps.icon)),a(),i("ngTemplateOutlet",t.headerIconsTemplate||t._headerIconsTemplate)("ngTemplateOutletContext",h(3,Ee,t.collapsed))}}function Ne(e,o){if(e&1){let t=w();d(0,"p-button",13),k("click",function(n){b(t);let r=s(2);return y(r.onIconClick(n))})("keydown",function(n){b(t);let r=s(2);return y(r.onKeyDown(n))}),c(1,He,2,5,"ng-template",null,1,U),m()}if(e&2){let t=s(2);i("text",!0)("rounded",!0)("buttonProps",t.toggleButtonProps),f("id",t.id+"_header")("aria-label",t.buttonAriaLabel)("aria-controls",t.id+"_content")("aria-expanded",!t.collapsed)}}function We(e,o){if(e&1){let t=w();d(0,"div",8),k("click",function(n){b(t);let r=s();return y(r.onHeaderClick(n))}),c(1,Fe,2,2,"span",9),E(2,1),c(3,Se,1,0,"ng-container",6),d(4,"div",10),c(5,Be,1,0,null,6)(6,Ne,3,7,"p-button",11),m()()}if(e&2){let t=s();f("id",t.id+"-titlebar"),a(),i("ngIf",t._header),a(2),i("ngTemplateOutlet",t.headerTemplate||t._headerTemplate),a(),i("ngClass",J(6,ke,t.iconPos==="start",t.iconPos==="end",t.iconPos==="center")),a(),i("ngTemplateOutlet",t.iconTemplate||t._iconTemplate),a(),i("ngIf",t.toggleable)}}function Ke(e,o){e&1&&P(0)}function Le(e,o){e&1&&P(0)}function ze(e,o){if(e&1&&(d(0,"div",17),E(1,2),c(2,Le,1,0,"ng-container",6),m()),e&2){let t=s();a(2),i("ngTemplateOutlet",t.footerTemplate||t._footerTemplate)}}var Ge=({dt:e})=>`
2
2
  .p-panel {
3
3
  border: 1px solid ${e("panel.border.color")};
4
4
  border-radius: ${e("panel.border.radius")};
@@ -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-VYKJK5YU.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)
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{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-VYKJK5YU.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{a as p}from"./chunk-XWVLTTMV.js";import{g as C}from"./chunk-33KLXB2L.js";import"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import"./chunk-OWI3BWEZ.js";import"./chunk-ROKYJX6Q.js";import{a as x}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import"./chunk-6BFODHTZ.js";import{t as b}from"./chunk-RUGQ4OJG.js";import{Bb as f,Ic as d,Ub as r,Vb as o,_b as g,dc as c,ec as m,ia as a,mc as u,qa as l,ra as s,ub as _,uc as M}from"./chunk-VYKJK5YU.js";import"./chunk-EQDQRRRY.js";function v(t,S){if(t&1){let e=g();r(0,"div",2)(1,"button",3),c("click",function(){l(e);let i=m();return s(i.onMigrate())}),u(2," Migrate "),o(),r(3,"button",4),c("click",function(){l(e);let i=m();return s(i.onFormat())}),u(4,"Format"),o()()}}var V=(()=>{class t{constructor(){this.migrateService=a(p),this.toastr=a(x)}onMigrate(){this.migrateService.migrateManualJournal().subscribe(e=>{this.toastr.success(e.message,"Migration Successful")})}onFormat(){this.migrateService.formatManualJournal().subscribe(e=>{this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=_({type:t,selectors:[["app-manual-journal"]],features:[M([p])],decls:3,vars:0,consts:[["content",""],["pageTitle","Manual Journal"],[1,"container","my-2"],[1,"btn","btn-primary","me-2",3,"click"],[1,"btn","btn-danger",3,"click"]],template:function(n,i){n&1&&(r(0,"app-main-panel",1),f(1,v,5,0,"ng-template",null,0,d),o())},dependencies:[C,b],encapsulation:2})}}return t})();export{V as ManualJournalComponent};
@@ -0,0 +1 @@
1
+ import{a as p}from"./chunk-XWVLTTMV.js";import{g as C}from"./chunk-33KLXB2L.js";import"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import"./chunk-OWI3BWEZ.js";import"./chunk-ROKYJX6Q.js";import{a as x}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import"./chunk-6BFODHTZ.js";import{t as b}from"./chunk-RUGQ4OJG.js";import{Bb as g,Ic as y,Ub as r,Vb as o,_b as _,dc as s,ec as l,ia as c,mc as u,qa as a,ra as m,ub as f,uc as d}from"./chunk-VYKJK5YU.js";import"./chunk-EQDQRRRY.js";function P(e,v){if(e&1){let t=_();r(0,"div",2)(1,"button",3),s("click",function(){a(t);let i=l();return m(i.migratePaymentAccount())}),u(2," Migrate Payment Account "),o(),r(3,"button",4),s("click",function(){a(t);let i=l();return m(i.migrateWriteoffOutlet())}),u(4," Migrate Write Off Outlet "),o()()}}var T=(()=>{class e{constructor(){this.migrateService=c(p),this.toastr=c(x)}migratePaymentAccount(){this.migrateService.migratePaymentMethod().subscribe(t=>{this.toastr.success(t.message,"Migration Successful")})}migrateWriteoffOutlet(){this.migrateService.migrateWriteOffOutlet().subscribe(t=>{this.toastr.success(t.message,"Migration Successful")})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=f({type:e,selectors:[["app-payment-account"]],features:[d([p])],decls:3,vars:0,consts:[["content",""],["pageTitle","Payment Account"],[1,"container","my-2"],[1,"btn","btn-primary","me-4",3,"click"],[1,"btn","btn-success",3,"click"]],template:function(n,i){n&1&&(r(0,"app-main-panel",1),g(1,P,5,0,"ng-template",null,0,y),o())},dependencies:[C,b],encapsulation:2})}}return e})();export{T as PaymentAccountComponent};