dealposbooks 1.9.6 → 1.9.8-p1

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 (134) hide show
  1. package/3rdpartylicenses.txt +26 -26
  2. package/assets/scss/style.scss +30 -0
  3. package/{chunk-RBDJZRHY.js → chunk-27P5HOS3.js} +1 -1
  4. package/chunk-2QWAAI3V.js +1 -0
  5. package/{chunk-CSMMP7XG.js → chunk-35ER6BC7.js} +1 -1
  6. package/{chunk-BNI5KUDE.js → chunk-3GHEXAAZ.js} +3 -3
  7. package/chunk-3OJSEDLY.js +1 -0
  8. package/{chunk-TC43COAE.js → chunk-3RM5CDGW.js} +1 -1
  9. package/chunk-46XJU64Z.js +1 -0
  10. package/chunk-4MEPU7FI.js +1 -0
  11. package/chunk-4PK4TO7C.js +1 -0
  12. package/{chunk-46TNY5N4.js → chunk-4V5YFD3N.js} +1 -1
  13. package/chunk-5RRPJBLN.js +1 -0
  14. package/chunk-6332DY2I.js +82 -0
  15. package/{chunk-OVCTOPAO.js → chunk-6PS3NJ62.js} +1 -1
  16. package/{chunk-J2SK4PGN.js → chunk-77BBQI2T.js} +1 -1
  17. package/{chunk-PGECEXRR.js → chunk-7ET5CSOO.js} +1 -1
  18. package/{chunk-6ZZARVQO.js → chunk-7IPVVF6Y.js} +1 -1
  19. package/chunk-7JGGV5FX.js +1 -0
  20. package/chunk-7TOJMYLE.js +1 -0
  21. package/chunk-AZWJMXL6.js +449 -0
  22. package/chunk-BDJHC5O6.js +2 -0
  23. package/{chunk-GJXWL5XV.js → chunk-BOVEGMBL.js} +1 -1
  24. package/{chunk-IIB2DZLA.js → chunk-BPFL7VRT.js} +1 -1
  25. package/{chunk-EXVUABTO.js → chunk-BX74ZLQG.js} +1 -1
  26. package/chunk-C3N6HRIE.js +1 -0
  27. package/{chunk-TFV5QZKR.js → chunk-CEZEYAWZ.js} +1 -1
  28. package/chunk-CGUMUBB7.js +1 -0
  29. package/{chunk-OEOAUJY5.js → chunk-CLVUILX2.js} +1 -1
  30. package/{chunk-JDW35ZB5.js → chunk-CNLYDNON.js} +1 -1
  31. package/{chunk-JP3F2QND.js → chunk-CZWWMQFD.js} +1 -1
  32. package/{chunk-BYD3JK4R.js → chunk-DAQCANBV.js} +1 -1
  33. package/{chunk-OZACNHDP.js → chunk-DJAICZNR.js} +1 -1
  34. package/chunk-DXIZC3FM.js +87 -0
  35. package/chunk-EJCLRSB2.js +1 -0
  36. package/{chunk-4S33ZRKF.js → chunk-FTI2QPWV.js} +1 -1
  37. package/{chunk-ASK2IVMC.js → chunk-H6BPUKCW.js} +1 -1
  38. package/{chunk-TK3G2BVM.js → chunk-HFUW7PYZ.js} +1 -1
  39. package/chunk-I3BTHUK3.js +160 -0
  40. package/chunk-IL6G454L.js +1 -0
  41. package/chunk-IY6KCAQ4.js +1 -0
  42. package/{chunk-JMLETF7Y.js → chunk-J6H5UCJR.js} +1 -1
  43. package/{chunk-J77A3DFB.js → chunk-JO3SI6HU.js} +1 -1
  44. package/{chunk-32BR7AQL.js → chunk-JZTK7BS7.js} +1 -1
  45. package/{chunk-P6CJ2ONT.js → chunk-K4ALA724.js} +1 -1
  46. package/{chunk-NF3TF3LT.js → chunk-KANHSSLO.js} +1 -1
  47. package/{chunk-G6FJQBZZ.js → chunk-KHP7E7JG.js} +1 -1
  48. package/chunk-L66QS3IX.js +81 -0
  49. package/chunk-LFVBO7JG.js +1 -0
  50. package/{chunk-YOEPO6LK.js → chunk-LMI4DLB5.js} +1 -1
  51. package/chunk-LRI7YFKN.js +1 -0
  52. package/chunk-MPHC4J2R.js +1 -0
  53. package/chunk-MYLHWS7O.js +1 -0
  54. package/chunk-NHEN24Y3.js +1 -0
  55. package/chunk-NOZEL54G.js +1 -0
  56. package/{chunk-3L7IWFXM.js → chunk-NR3EHEG3.js} +1 -1
  57. package/chunk-ONMFMNUN.js +129 -0
  58. package/chunk-OXGCSUUS.js +2 -0
  59. package/{chunk-LTZA6IIO.js → chunk-PDNXU4MC.js} +1 -1
  60. package/chunk-R6NK3ROE.js +1 -0
  61. package/{chunk-54OPMMIM.js → chunk-R6XNFCQM.js} +1 -1
  62. package/{chunk-HRQJ5DXP.js → chunk-RLR2HFSC.js} +1 -1
  63. package/{chunk-HFFH2WIX.js → chunk-RNOSD5RO.js} +1 -1
  64. package/chunk-RQ52IUQY.js +130 -0
  65. package/{chunk-DOM7WYRM.js → chunk-RSGEQTNJ.js} +1 -1
  66. package/{chunk-35CWG2OK.js → chunk-RYHNURUZ.js} +2 -2
  67. package/{chunk-3DN7TZCI.js → chunk-SH4ALZVS.js} +1 -1
  68. package/chunk-SRNYKRLK.js +1 -0
  69. package/{chunk-3HW557B7.js → chunk-TDMJ2M6W.js} +1 -1
  70. package/{chunk-AKMHO3LC.js → chunk-TIX3GAPF.js} +1 -1
  71. package/{chunk-XKEV5AED.js → chunk-TLLNQB5C.js} +1 -1
  72. package/chunk-TOYTUB2K.js +1 -0
  73. package/chunk-U4SERSDK.js +1 -0
  74. package/{chunk-C5GEP4MM.js → chunk-U75O34AW.js} +1 -1
  75. package/{chunk-I3HFXOYS.js → chunk-UNWDCLFZ.js} +1 -1
  76. package/chunk-UUZOSCEV.js +7 -0
  77. package/chunk-UWWFSGE7.js +1 -0
  78. package/{chunk-6TA77CRR.js → chunk-V4IY7RIP.js} +1 -1
  79. package/chunk-VDBXI7BY.js +1 -0
  80. package/{chunk-RT5PUZ5F.js → chunk-VJLO7GNT.js} +1 -1
  81. package/chunk-VJVWTOYU.js +1 -0
  82. package/{chunk-LKZL77YR.js → chunk-W4KTL6Y6.js} +1 -1
  83. package/{chunk-ZWHB7NI7.js → chunk-W6LBFCQQ.js} +1 -1
  84. package/{chunk-YVEUYFCE.js → chunk-WCXWWANV.js} +5 -5
  85. package/{chunk-34XRAZFC.js → chunk-WUPQR4WU.js} +1 -1
  86. package/{chunk-LR2DJRRL.js → chunk-WWWY3VE7.js} +1 -1
  87. package/chunk-X26YDRRO.js +1 -0
  88. package/chunk-XAH4P23E.js +1 -0
  89. package/{chunk-7WXXPCRV.js → chunk-XYU65DNE.js} +1 -1
  90. package/chunk-YJ3CWPO4.js +1 -0
  91. package/{chunk-3WB76KQC.js → chunk-YVGWGEPX.js} +1 -1
  92. package/{chunk-TQZNJ5WF.js → chunk-Z3SHAW6W.js} +1 -1
  93. package/{chunk-AOSPVPK7.js → chunk-ZHU3HOWQ.js} +1 -1
  94. package/index.html +2 -2
  95. package/{main-U5PC2W2C.js → main-LKLXHNSP.js} +1 -1
  96. package/package.json +1 -1
  97. package/{styles-GTUKYMN7.css → styles-XXVTW56A.css} +1 -1
  98. package/chunk-27SWEVDU.js +0 -1
  99. package/chunk-2DV653RD.js +0 -1
  100. package/chunk-2OECREUZ.js +0 -1
  101. package/chunk-35KDUCM3.js +0 -1
  102. package/chunk-3G3QSUWH.js +0 -1
  103. package/chunk-43WCLYRX.js +0 -1
  104. package/chunk-4FGQ5T64.js +0 -2
  105. package/chunk-4KXSM3HP.js +0 -1
  106. package/chunk-4QKRWFW4.js +0 -1
  107. package/chunk-6HQX2SM2.js +0 -1
  108. package/chunk-B7JILYJO.js +0 -1
  109. package/chunk-BX3CRF44.js +0 -1
  110. package/chunk-C4LZX33Q.js +0 -449
  111. package/chunk-C7UZ6ZYF.js +0 -1
  112. package/chunk-CTCQB63H.js +0 -1
  113. package/chunk-DNK2GUDB.js +0 -1
  114. package/chunk-ELWFWCNU.js +0 -246
  115. package/chunk-GNP7WGSH.js +0 -1
  116. package/chunk-GTGRV7IH.js +0 -1
  117. package/chunk-HRPP75N7.js +0 -1
  118. package/chunk-JYNZPVLW.js +0 -1
  119. package/chunk-K6753MGR.js +0 -7
  120. package/chunk-LD4G6ND6.js +0 -130
  121. package/chunk-M7MFX6BW.js +0 -1
  122. package/chunk-MCDQ2TIS.js +0 -1
  123. package/chunk-MJVSTWYY.js +0 -1
  124. package/chunk-N2RYBZK7.js +0 -1
  125. package/chunk-N6JCA3CN.js +0 -2
  126. package/chunk-OEJBOFI5.js +0 -1
  127. package/chunk-QPKNYNLC.js +0 -210
  128. package/chunk-UEOO2LYA.js +0 -82
  129. package/chunk-WEWEITR7.js +0 -1
  130. package/chunk-WGZN6AN2.js +0 -1
  131. package/chunk-WZO2ZLBL.js +0 -1
  132. package/chunk-X34Y3TVX.js +0 -1
  133. package/chunk-XFSZDZPJ.js +0 -1
  134. package/chunk-XZGFG6E3.js +0 -1
@@ -1 +1 @@
1
- import{b as P}from"./chunk-GJXWL5XV.js";import{b as A}from"./chunk-LKZL77YR.js";import{b as y}from"./chunk-JDW35ZB5.js";import{a as w,b}from"./chunk-6ZZARVQO.js";import{x as _}from"./chunk-YOEPO6LK.js";import{a as O}from"./chunk-35KDUCM3.js";import{m as M,s as S}from"./chunk-BYD3JK4R.js";import{Cb as C,Da as c,Lc as a,Ub as i,Vb as r,Wb as x,ba as s,ec as m,gb as u,ha as d,pc as p,qc as v,rc as l,wb as h}from"./chunk-YVEUYFCE.js";var k=(()=>{class t{constructor(){this.httpService=d(O),this.dayjs=d(P)}migrateTaxAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/tax",{})}getManualJournalCount(){return this.httpService.get(void 0,"api/migrate/accounting/journalheader-count",{})}getCOACount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountcount",{})}getCOAConfigurationCount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountConfigcount",{})}getCOACategoryCount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountCategorycount",{})}getOutletAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/outletaccount-count",{})}getPaymentMethodAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/paymentmethodaccountcount",{})}getWriteOffOutletAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/writeoffoutletaccountCount",{})}getTaxAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/taxcount",{})}getExpenseAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/expenseaccountcount",{})}migrateCoaAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccount",{})}migrateCoaConfig(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccountConfig",{})}migrateCoaCategory(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccountCategory",{})}migrateOutletAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/outletaccount",{})}migrateManualJournal(e){let n={From:e.From?this.dayjs.from(e.From).format():null,To:e.To?this.dayjs.from(e.To).format():null,PageNumber:e.PageNumber||1,PageSize:e.PageSize||50},o=new S;return Object.keys(n).forEach(f=>{o=o.append(f,n[f])}),this.httpService.get(void 0,"api/migrate/accounting/journalheader",{params:o})}formatManualCOA(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-coa",{})}formatExpenseAccount(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-expenseaccount",{})}formatWriteOff(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-writeoff",{})}formatManualCOAConfig(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-coa-config",{})}formatOutletAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-outlet-account",{})}formatPaymentAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-paymentmethod",{})}formatTaxAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-tax",{})}formatManualJournal(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-journal",{})}formatManualCOACategory(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-coag",{})}migratePaymentMethod(){return this.httpService.post(void 0,"api/Migrate/accounting/paymentmethodaccount",{})}migrateWriteOffOutlet(){return this.httpService.post(void 0,"api/Migrate/accounting/writeoffoutletaccount",{})}migrateExpenseAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/expenseaccount",{})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s({token:t,factory:t.\u0275fac})}}return t})();function j(t,g){t&1&&(i(0,"div",5)(1,"div",6),x(2,"i",7),r()())}function E(t,g){if(t&1&&(i(0,"div",8),p(1),r()),t&2){let e=m();u(),l(" ",e.migrationCount()," ")}}function z(t,g){if(t&1&&(i(0,"div",9),p(1),r()),t&2){let e=m();u(),l(" ",e.migrationTitle()," ")}}function F(t,g){if(t&1&&(i(0,"div",10)(1,"div",11),p(2),r()()),t&2){let e=m();u(2),v(e.migrationPlace())}}var X=(()=>{class t{constructor(){this.migrationTitle=c(),this.migrationCount=c(),this.migrationPlace=c()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["app-migration-cards"]],inputs:{migrationTitle:[1,"migrationTitle"],migrationCount:[1,"migrationCount"],migrationPlace:[1,"migrationPlace"]},decls:9,vars:0,consts:[["header",""],["title",""],["subtitle",""],["footer",""],[1,"text-center","flex","flex-column","justify-content-center","align-items-center","card-shadow","responsive-card"],[1,"d-flex","justify-content-center"],[1,"d-flex","justify-content-center","align-items-center","mt-4",2,"width","60px","height","60px","background-color","#e0f0ff","border-radius","50%"],[1,"icon","fa-file-lines","fa-light",2,"font-size","25px","color","#007bff"],[1,"bigscale","fw-bold"],[1,"text-sm","text-secondary"],[1,"flex","mt-5"],[1,"p-6","fs-7","fw-bold"]],template:function(n,o){n&1&&(i(0,"p-card",4),C(1,j,3,0,"ng-template",null,0,a)(3,E,2,1,"ng-template",null,1,a)(5,z,2,1,"ng-template",null,2,a)(7,F,3,1,"ng-template",null,3,a),r())},dependencies:[M,b,w,_,A,y],styles:["[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:3rem!important;margin-top:2rem!important}[_nghost-%COMP%] .p-card{box-shadow:0 .25rem 1.25rem #0000001a!important;width:21.875rem!important;height:25rem!important}@media (max-width: 85rem){[_nghost-%COMP%] .p-card{width:18.875rem!important;height:21rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:2rem!important;margin-top:1rem!important}}@media (min-width: 85.001rem) and (max-width: 97.999rem){[_nghost-%COMP%] .p-card{width:21rem!important;height:25rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:3rem!important;margin-top:2rem!important}}@media (min-width: 98rem){[_nghost-%COMP%] .p-card{width:25rem!important;height:28rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:5rem!important;margin-top:2rem!important}}"]})}}return t})();export{k as a,X as b};
1
+ import{b as P}from"./chunk-BOVEGMBL.js";import{b as A}from"./chunk-W4KTL6Y6.js";import{a as w,b}from"./chunk-7IPVVF6Y.js";import{b as y}from"./chunk-CNLYDNON.js";import{x as _}from"./chunk-LMI4DLB5.js";import{a as O}from"./chunk-R6NK3ROE.js";import{m as M,s as S}from"./chunk-DAQCANBV.js";import{Cb as C,Da as c,Mc as a,Ub as i,Vb as r,Wb as x,ba as s,ec as m,gb as u,ha as d,qc as p,rc as v,sc as l,wb as h}from"./chunk-WCXWWANV.js";var k=(()=>{class t{constructor(){this.httpService=d(O),this.dayjs=d(P)}migrateTaxAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/tax",{})}getManualJournalCount(){return this.httpService.get(void 0,"api/migrate/accounting/journalheader-count",{})}getCOACount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountcount",{})}getCOAConfigurationCount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountConfigcount",{})}getCOACategoryCount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountCategorycount",{})}getOutletAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/outletaccount-count",{})}getPaymentMethodAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/paymentmethodaccountcount",{})}getWriteOffOutletAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/writeoffoutletaccountCount",{})}getTaxAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/taxcount",{})}getExpenseAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/expenseaccountcount",{})}migrateCoaAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccount",{})}migrateCoaConfig(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccountConfig",{})}migrateCoaCategory(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccountCategory",{})}migrateOutletAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/outletaccount",{})}migrateManualJournal(e){let n={From:e.From?this.dayjs.from(e.From).format():null,To:e.To?this.dayjs.from(e.To).format():null,PageNumber:e.PageNumber||1,PageSize:e.PageSize||50},o=new S;return Object.keys(n).forEach(f=>{o=o.append(f,n[f])}),this.httpService.get(void 0,"api/migrate/accounting/journalheader",{params:o})}formatManualCOA(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-coa",{})}formatExpenseAccount(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-expenseaccount",{})}formatWriteOff(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-writeoff",{})}formatManualCOAConfig(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-coa-config",{})}formatOutletAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-outlet-account",{})}formatPaymentAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-paymentmethod",{})}formatTaxAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-tax",{})}formatManualJournal(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-journal",{})}formatManualCOACategory(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-coag",{})}migratePaymentMethod(){return this.httpService.post(void 0,"api/Migrate/accounting/paymentmethodaccount",{})}migrateWriteOffOutlet(){return this.httpService.post(void 0,"api/Migrate/accounting/writeoffoutletaccount",{})}migrateExpenseAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/expenseaccount",{})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s({token:t,factory:t.\u0275fac})}}return t})();function j(t,g){t&1&&(i(0,"div",5)(1,"div",6),x(2,"i",7),r()())}function E(t,g){if(t&1&&(i(0,"div",8),p(1),r()),t&2){let e=m();u(),l(" ",e.migrationCount()," ")}}function z(t,g){if(t&1&&(i(0,"div",9),p(1),r()),t&2){let e=m();u(),l(" ",e.migrationTitle()," ")}}function F(t,g){if(t&1&&(i(0,"div",10)(1,"div",11),p(2),r()()),t&2){let e=m();u(2),v(e.migrationPlace())}}var X=(()=>{class t{constructor(){this.migrationTitle=c(),this.migrationCount=c(),this.migrationPlace=c()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["app-migration-cards"]],inputs:{migrationTitle:[1,"migrationTitle"],migrationCount:[1,"migrationCount"],migrationPlace:[1,"migrationPlace"]},decls:9,vars:0,consts:[["header",""],["title",""],["subtitle",""],["footer",""],[1,"text-center","flex","flex-column","justify-content-center","align-items-center","card-shadow","responsive-card"],[1,"d-flex","justify-content-center"],[1,"d-flex","justify-content-center","align-items-center","mt-4",2,"width","60px","height","60px","background-color","#e0f0ff","border-radius","50%"],[1,"icon","fa-file-lines","fa-light",2,"font-size","25px","color","#007bff"],[1,"bigscale","fw-bold"],[1,"text-sm","text-secondary"],[1,"flex","mt-5"],[1,"p-6","fs-7","fw-bold"]],template:function(n,o){n&1&&(i(0,"p-card",4),C(1,j,3,0,"ng-template",null,0,a)(3,E,2,1,"ng-template",null,1,a)(5,z,2,1,"ng-template",null,2,a)(7,F,3,1,"ng-template",null,3,a),r())},dependencies:[M,b,w,_,A,y],styles:["[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:3rem!important;margin-top:2rem!important}[_nghost-%COMP%] .p-card{box-shadow:0 .25rem 1.25rem #0000001a!important;width:21.875rem!important;height:25rem!important}@media (max-width: 85rem){[_nghost-%COMP%] .p-card{width:18.875rem!important;height:21rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:2rem!important;margin-top:1rem!important}}@media (min-width: 85.001rem) and (max-width: 97.999rem){[_nghost-%COMP%] .p-card{width:21rem!important;height:25rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:3rem!important;margin-top:2rem!important}}@media (min-width: 98rem){[_nghost-%COMP%] .p-card{width:25rem!important;height:28rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:5rem!important;margin-top:2rem!important}}"]})}}return t})();export{k as a,X as b};
@@ -0,0 +1,81 @@
1
+ import{a as ce,c as pe,f as g}from"./chunk-LMI4DLB5.js";import{$ as I,A as J,H as ee,Ja as re,L as te,Ma as se,Na as y,R as ie,Sa as ae,Va as le,ha as oe,ja as ne}from"./chunk-3GHEXAAZ.js";import{c as W,f as q,g as K,h as U,m as X,n as m}from"./chunk-DAQCANBV.js";import{c as G,d as L,f as v,g as b,h as O}from"./chunk-F2X3VGZZ.js";import{Aa as V,Ab as A,Ac as Q,Bc as x,Cb as d,Jb as F,Kb as h,Ob as R,Ub as w,Vb as Z,Vc as f,Wc as Y,_b as B,ba as P,ca as D,dc as u,ec as r,fb as $,fc as M,gb as H,gc as j,ha as p,jc as k,lc as T,mc as S,pa as l,qa as c,ta as C,wb as z,xb as E,yc as N,za as _}from"./chunk-WCXWWANV.js";var he=["content"],ue=["*"],fe=(t,s)=>({showTransitionParams:t,hideTransitionParams:s}),me=(t,s)=>({value:t,params:s}),ve=t=>({closeCallback:t});function be(t,s){}function ye(t,s){t&1&&d(0,be,0,0,"ng-template")}function ge(t,s){if(t&1){let e=B();w(0,"div",1),u("click",function(o){l(e);let n=r();return c(n.onOverlayClick(o))})("@animation.start",function(o){l(e);let n=r();return c(n.onAnimationStart(o))})("@animation.done",function(o){l(e);let n=r();return c(n.onAnimationEnd(o))}),w(1,"div",2),u("click",function(o){l(e);let n=r();return c(n.onContentClick(o))})("mousedown",function(o){l(e);let n=r();return c(n.onContentClick(o))}),j(2),d(3,ye,1,0,null,3),Z()()}if(t&2){let e=r();R(e.styleClass),h("ngClass","p-popover p-component")("ngStyle",e.style)("@animation",x(13,me,e.overlayVisible?"open":"close",x(10,fe,e.showTransitionOptions,e.hideTransitionOptions))),F("aria-modal",e.overlayVisible)("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy),H(3),h("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Q(16,ve,e.onCloseClick.bind(e)))}}var Ce=({dt:t})=>`
2
+ .p-popover {
3
+ margin-top: ${t("popover.gutter")};
4
+ background: ${t("popover.background")};
5
+ color: ${t("popover.color")};
6
+ border: 1px solid ${t("popover.border.color")};
7
+ border-radius: ${t("popover.border.radius")};
8
+ box-shadow: ${t("popover.shadow")};
9
+ position: absolute
10
+ }
11
+
12
+ .p-popover-content {
13
+ padding: ${t("popover.content.padding")};
14
+ }
15
+
16
+ .p-popover-flipped {
17
+ margin-top: calc(${t("popover.gutter")} * -1);
18
+ margin-bottom: ${t("popover.gutter")};
19
+ }
20
+
21
+ .p-popover-enter-from {
22
+ opacity: 0;
23
+ transform: scaleY(0.8);
24
+ }
25
+
26
+ .p-popover-leave-to {
27
+ opacity: 0;
28
+ }
29
+
30
+ .p-popover-enter-active {
31
+ transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
32
+ }
33
+
34
+ .p-popover-leave-active {
35
+ transition: opacity 0.1s linear;
36
+ }
37
+
38
+ .p-popover:after,
39
+ .p-popover:before {
40
+ bottom: 100%;
41
+ left: calc(${t("popover.arrow.offset")} + ${t("popover.arrow.left")});
42
+ content: " ";
43
+ height: 0;
44
+ width: 0;
45
+ position: absolute;
46
+ pointer-events: none;
47
+ }
48
+
49
+ .p-popover:after {
50
+ border-width: calc(${t("popover.gutter")} - 2px);
51
+ margin-left: calc(-1 * (${t("popover.gutter")} - 2px));
52
+ border-style: solid;
53
+ border-color: transparent;
54
+ border-bottom-color: ${t("popover.background")};
55
+ }
56
+
57
+ .p-popover:before {
58
+ border-width: ${t("popover.gutter")};
59
+ margin-left: calc(-1 * ${t("popover.gutter")});
60
+ border-style: solid;
61
+ border-color: transparent;
62
+ border-bottom-color: ${t("popover.border.color")};
63
+ }
64
+
65
+ .p-popover-flipped:after,
66
+ .p-popover-flipped:before {
67
+ bottom: auto;
68
+ top: 100%;
69
+ }
70
+
71
+ .p-popover.p-popover-flipped:after {
72
+ border-bottom-color: transparent;
73
+ border-top-color: ${t("popover.background")};
74
+ }
75
+
76
+ .p-popover.p-popover-flipped:before {
77
+ border-bottom-color: transparent;
78
+ border-top-color: ${t("popover.border.color")};
79
+ }
80
+
81
+ `,_e={root:"p-popover p-component",content:"p-popover-content"},de=(()=>{class t extends le{name="popover";theme=Ce;classes=_e;static \u0275fac=(()=>{let e;return function(o){return(e||(e=C(t)))(o||t)}})();static \u0275prov=P({token:t,factory:t.\u0275fac})}return t})(),we=(()=>{class t extends ce{ariaLabel;ariaLabelledBy;dismissable=!0;style;styleClass;appendTo="body";autoZIndex=!0;ariaCloseLabel;baseZIndex=0;focusOnShow=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";onShow=new _;onHide=new _;container;overlayVisible=!1;render=!1;isOverlayAnimationInProgress=!1;selfClick=!1;documentClickListener;target;willHide;scrollHandler;documentResizeListener;contentTemplate;templates;_contentTemplate;destroyCallback;overlayEventListener;overlaySubscription;_componentStyle=p(de);zone=p(V);overlayService=p(re);ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break}})}bindDocumentClickListener(){if(m(this.platformId)&&!this.documentClickListener){let e=oe()?"touchstart":"click",i=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(i,e,o=>{this.dismissable&&(!this.container?.contains(o.target)&&this.target!==o.target&&!this.target.contains(o.target)&&!this.selfClick&&this.hide(),this.selfClick=!1,this.cd.markForCheck())})}}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}toggle(e,i){this.isOverlayAnimationInProgress||(this.overlayVisible?(this.hasTargetChanged(e,i)&&(this.destroyCallback=()=>{this.show(null,i||e.currentTarget||e.target)}),this.hide()):this.show(e,i))}show(e,i){i&&e&&e.stopPropagation(),!this.isOverlayAnimationInProgress&&(this.target=i||e.currentTarget||e.target,this.overlayVisible=!0,this.render=!0,this.cd.markForCheck())}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}onContentClick(e){let i=e.target;this.selfClick=e.offsetX<i.clientWidth&&e.offsetY<i.clientHeight}hasTargetChanged(e,i){return this.target!=null&&this.target!==(i||e.currentTarget||e.target)}appendContainer(){this.appendTo&&(this.appendTo==="body"?this.renderer.appendChild(this.document.body,this.container):te(this.appendTo,this.container))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.container)}align(){this.autoZIndex&&g.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),ee(this.container,this.target,!1);let e=I(this.container),i=I(this.target),o=this.document.defaultView?.getComputedStyle(this.container).getPropertyValue("border-radius"),n=0;e.left<i.left&&(n=i.left-e.left-parseFloat(o)*2),this.container?.style.setProperty(ae("popover.arrow.left").name,`${n}px`),e.top<i.top&&(this.container.setAttribute("data-p-popover-flipped","true"),J(this.container,"p-popover-flipped"))}onAnimationStart(e){e.toState==="open"&&(this.container=e.element,this.container?.setAttribute(this.attrSelector,""),this.appendContainer(),this.align(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.focusOnShow&&this.focus(),this.overlayEventListener=i=>{this.container&&this.container.contains(i.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener),this.onShow.emit(null)),this.isOverlayAnimationInProgress=!0}onAnimationEnd(e){switch(e.toState){case"void":this.destroyCallback&&(this.destroyCallback(),this.destroyCallback=null),this.overlaySubscription&&this.overlaySubscription.unsubscribe();break;case"close":this.autoZIndex&&g.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1;break}this.isOverlayAnimationInProgress=!1}focus(){let e=ie(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onCloseClick(e){this.hide(),e.preventDefault()}onEscapeKeydown(e){this.hide()}onWindowResize(){this.overlayVisible&&!ne()&&this.hide()}bindDocumentResizeListener(){if(m(this.platformId)&&!this.documentResizeListener){let e=this.document.defaultView;this.documentResizeListener=this.renderer.listen(e,"resize",this.onWindowResize.bind(this))}}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){m(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new pe(this.target,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener())}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onContainerDestroy(){this.cd.destroyed||(this.target=null),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&g.clear(this.container),this.cd.destroyed||(this.target=null),this.destroyCallback=null,this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=C(t)))(o||t)}})();static \u0275cmp=z({type:t,selectors:[["p-popover"]],contentQueries:function(i,o,n){if(i&1&&(k(n,he,4),k(n,se,4)),i&2){let a;T(a=S())&&(o.contentTemplate=a.first),T(a=S())&&(o.templates=a)}},hostBindings:function(i,o){i&1&&u("keydown.escape",function(a){return o.onEscapeKeydown(a)},!1,$)},inputs:{ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",dismissable:[2,"dismissable","dismissable",f],style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:[2,"autoZIndex","autoZIndex",f],ariaCloseLabel:"ariaCloseLabel",baseZIndex:[2,"baseZIndex","baseZIndex",Y],focusOnShow:[2,"focusOnShow","focusOnShow",f],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},features:[N([de]),A],ngContentSelectors:ue,decls:1,vars:1,consts:[["role","dialog",3,"ngClass","ngStyle","class","click",4,"ngIf"],["role","dialog",3,"click","ngClass","ngStyle"],[1,"p-popover-content",3,"click","mousedown"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){i&1&&(M(),d(0,ge,4,18,"div",0)),i&2&&h("ngIf",o.render)},dependencies:[X,W,q,U,K,y],encapsulation:2,data:{animation:[G("animation",[b("void",v({transform:"scaleY(0.8)",opacity:0})),b("close",v({opacity:0})),b("open",v({transform:"translateY(0)",opacity:1})),O("void => open",L("{{showTransitionParams}}")),O("open => close",L("{{hideTransitionParams}}"))])]},changeDetection:0})}return t})(),Qe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=E({type:t});static \u0275inj=D({imports:[we,y,y]})}return t})();export{we as a,Qe as b};
@@ -0,0 +1 @@
1
+ import{a as x,b as L}from"./chunk-KHP7E7JG.js";import"./chunk-BOVEGMBL.js";import"./chunk-WUPQR4WU.js";import{a as E,b as V}from"./chunk-W4KTL6Y6.js";import"./chunk-7IPVVF6Y.js";import{h as H}from"./chunk-RYHNURUZ.js";import{b as N,c as G}from"./chunk-BX74ZLQG.js";import{a as R,b as D}from"./chunk-CNLYDNON.js";import"./chunk-FTI2QPWV.js";import"./chunk-BDJHC5O6.js";import{w as j,x as O}from"./chunk-LMI4DLB5.js";import"./chunk-W6LBFCQQ.js";import"./chunk-3GHEXAAZ.js";import"./chunk-R6NK3ROE.js";import{a as I}from"./chunk-TDMJ2M6W.js";import{i as $,m as F}from"./chunk-DAQCANBV.js";import"./chunk-F2X3VGZZ.js";import{Cb as A,Jc as c,Kb as p,Kc as s,Mc as C,Nb as h,Ub as n,V as v,Vb as o,Wb as l,X as T,Z as M,_b as B,dc as y,ec as m,gb as a,h as P,ha as f,pa as g,qa as d,ra as S,s as u,sa as b,wb as k,yc as w,zc as _}from"./chunk-WCXWWANV.js";import"./chunk-YQFG5XE2.js";var q=()=>({height:"calc(100vh - 100px)"});function J(i,z){if(i&1){let e=B();n(0,"div",3)(1,"p-button",4),y("onClick",function(){g(e);let r=m();return d(r.onFormat())}),o(),n(2,"p-button",5),c(3,"async"),c(4,"async"),y("onClick",function(){g(e);let r=m();return d(r.migratePaymentAccount())}),o()()}if(i&2){let e=m();a(2),p("disabled",s(3,2,e.countInBooks$)!==0)("pTooltip",s(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function K(i,z){if(i&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),l(3,"app-migration-cards",7),c(4,"async"),S(),n(5,"svg",8),l(6,"path",9),o(),b(),l(7,"app-migration-cards",10),c(8,"async"),o()()()),i&2){let e=m();h(_(12,q)),a(),h(_(13,q)),a(2),p("migrationCount",s(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",s(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var ue=(()=>{class i{constructor(){this.migrateService=f(x),this.toastr=f(I),this.refresh$=new P(void 0),this.pageTitle="Payment Account"}ngOnInit(){let e=this.refresh$.pipe(T(()=>this.migrateService.getPaymentMethodAccountCount()),M(t=>console.log("API response:",t)),v(1));this.countInPOS$=e.pipe(u(t=>Number(t.pos))),this.countInBooks$=e.pipe(u(t=>Number(t.books)))}migratePaymentAccount(){this.migrateService.migratePaymentMethod().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatPaymentAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=k({type:i,selectors:[["app-payment-account"]],features:[w([x])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(t,r){t&1&&(n(0,"app-main-panel",2),A(1,J,5,6,"ng-template",null,0,C)(3,K,9,14,"ng-template",null,1,C),o()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[H,F,$,V,E,D,R,G,N,L,O,j],encapsulation:2})}}return i})();export{ue as PaymentAccountComponent};
@@ -1,4 +1,4 @@
1
- import{$ as qt,A as Q,C as Y,Ea as it,J as jt,Ma as Gt,Na as T,R as K,Ra as Ct,Ta as Z,Ua as J,Va as $,W as vt,Wa as Xt,aa as Qt,da as $t,j as Rt,ka as Zt,oa as _,ra as xt,ya as Ut}from"./chunk-BNI5KUDE.js";import{a as gt,c as At,f as Nt,g as Ht,h as Vt,m as P,n as ft,o as Wt}from"./chunk-BYD3JK4R.js";import{Aa as Ft,Ab as g,Cb as q,Da as N,Ea as lt,Jb as O,Ka as at,Kb as f,Lb as Dt,Mb as M,Nb as Bt,Ob as z,Pc as Ot,Ub as G,Uc as p,Vb as X,Vc as Pt,Wb as H,Xb as ct,Xc as ot,Yb as ut,Yc as Lt,Zb as Mt,ba as C,ca as w,dc as dt,ec as B,fc as V,gb as S,gc as W,ha as c,ic as tt,kc as et,lb as _t,lc as nt,mb as Tt,mc as mt,nc as zt,oa as U,pb as ht,pc as pt,qc as bt,ra as kt,ta as u,va as Et,wb as F,xb as I,xc as y,yb as E,za as st,zc as yt}from"./chunk-YVEUYFCE.js";import{a as k}from"./chunk-YQFG5XE2.js";var Yt=(()=>{class e extends ${name="common";static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),v=(()=>{class e{document=c(gt);platformId=c(at);el=c(lt);injector=c(Et);cd=c(Ot);renderer=c(_t);config=c(Xt);baseComponentStyle=c(Yt);baseStyle=c($);scopedStyleEl;rootEl;dt;get styleOptions(){return{nonce:this.config?.csp().nonce}}get _name(){return this.constructor.name.replace(/^_/,"").toLowerCase()}get componentStyle(){return this._componentStyle}attrSelector=it("pc");themeChangeListeners=[];_getHostInstance(t){if(t)return t?this.hostName?t.name===this.hostName?t:this._getHostInstance(t.parentInstance):t.parentInstance:void 0}_getOptionValue(t,n="",o={}){return Ut(t,n,o)}ngOnInit(){this.document&&this._loadStyles()}ngAfterViewInit(){this.rootEl=this.el?.nativeElement,this.rootEl&&this.rootEl?.setAttribute(this.attrSelector,"")}ngOnChanges(t){if(this.document&&!Wt(this.platformId)){let{dt:n}=t;n&&n.currentValue&&(this._loadScopedThemeStyles(n.currentValue),this._themeChangeListener(()=>this._loadScopedThemeStyles(n.currentValue)))}}ngOnDestroy(){this._unloadScopedThemeStyles(),this.themeChangeListeners.forEach(t=>Ct.off("theme:change",t))}_loadStyles(){let t=()=>{J.isStyleNameLoaded("base")||(this.baseStyle.loadGlobalCSS(this.styleOptions),J.setLoadedStyleName("base")),this._loadThemeStyles()};t(),this._themeChangeListener(()=>t())}_loadCoreStyles(){!J.isStyleNameLoaded("base")&&this._name&&(this.baseComponentStyle.loadCSS(this.styleOptions),this.componentStyle&&this.componentStyle?.loadCSS(this.styleOptions),J.setLoadedStyleName(this.componentStyle?.name))}_loadThemeStyles(){if(!Z.isStyleNameLoaded("common")){let{primitive:t,semantic:n,global:o,style:r}=this.componentStyle?.getCommonTheme?.()||{};this.baseStyle.load(t?.css,k({name:"primitive-variables"},this.styleOptions)),this.baseStyle.load(n?.css,k({name:"semantic-variables"},this.styleOptions)),this.baseStyle.load(o?.css,k({name:"global-variables"},this.styleOptions)),this.baseStyle.loadGlobalTheme(k({name:"global-style"},this.styleOptions),r),Z.setLoadedStyleName("common")}if(!Z.isStyleNameLoaded(this.componentStyle?.name)&&this.componentStyle?.name){let{css:t,style:n}=this.componentStyle?.getComponentTheme?.()||{};this.componentStyle?.load(t,k({name:`${this.componentStyle?.name}-variables`},this.styleOptions)),this.componentStyle?.loadTheme(k({name:`${this.componentStyle?.name}-style`},this.styleOptions),n),Z.setLoadedStyleName(this.componentStyle?.name)}if(!Z.isStyleNameLoaded("layer-order")){let t=this.componentStyle?.getLayerOrderThemeCSS?.();this.baseStyle.load(t,k({name:"layer-order",first:!0},this.styleOptions)),Z.setLoadedStyleName("layer-order")}this.dt&&(this._loadScopedThemeStyles(this.dt),this._themeChangeListener(()=>this._loadScopedThemeStyles(this.dt)))}_loadScopedThemeStyles(t){let{css:n}=this.componentStyle?.getPresetTheme?.(t,`[${this.attrSelector}]`)||{},o=this.componentStyle?.load(n,k({name:`${this.attrSelector}-${this.componentStyle?.name}`},this.styleOptions));this.scopedStyleEl=o?.el}_unloadScopedThemeStyles(){this.scopedStyleEl?.remove()}_themeChangeListener(t=()=>{}){J.clearLoadedStyleNames(),Ct.on("theme:change",t),this.themeChangeListeners.push(t)}cx(t,n){let o=this.parent?this.parent.componentStyle?.classes?.[t]:this.componentStyle?.classes?.[t];return typeof o=="function"?o({instance:this}):typeof o=="string"?o:t}sx(t){let n=this.componentStyle?.inlineStyles?.[t];return typeof n=="function"?n({instance:this}):typeof n=="string"?n:k({},n)}get parent(){return this.parentInstance}static \u0275fac=function(n){return new(n||e)};static \u0275dir=E({type:e,inputs:{dt:"dt"},features:[y([Yt,$]),U]})}return e})();var fe=({dt:e})=>`
1
+ import{$ as qt,A as Q,C as Y,Ea as it,J as jt,Ma as Gt,Na as T,R as K,Ra as Ct,Ta as Z,Ua as J,Va as $,W as vt,Wa as Xt,aa as Qt,da as $t,j as Rt,ka as Zt,oa as _,ra as xt,ya as Ut}from"./chunk-3GHEXAAZ.js";import{a as gt,c as At,f as Nt,g as Ht,h as Vt,m as P,n as ft,o as Wt}from"./chunk-DAQCANBV.js";import{Aa as Ft,Ab as g,Ac as yt,Cb as q,Da as N,Ea as lt,Jb as O,Ka as at,Kb as f,Lb as Dt,Mb as M,Nb as Bt,Ob as z,Qc as Ot,Ub as G,Vb as X,Vc as p,Wb as H,Wc as Pt,Xb as ct,Yb as ut,Yc as ot,Zb as Mt,Zc as Lt,ba as C,ca as w,dc as dt,ec as B,fc as V,gb as S,gc as W,ha as c,jc as tt,lb as _t,lc as et,mb as Tt,mc as nt,nc as mt,oa as U,oc as zt,pb as ht,qc as pt,ra as kt,rc as bt,ta as u,va as Et,wb as F,xb as I,yb as E,yc as y,za as st}from"./chunk-WCXWWANV.js";import{a as k}from"./chunk-YQFG5XE2.js";var Yt=(()=>{class e extends ${name="common";static \u0275fac=(()=>{let t;return function(o){return(t||(t=u(e)))(o||e)}})();static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),v=(()=>{class e{document=c(gt);platformId=c(at);el=c(lt);injector=c(Et);cd=c(Ot);renderer=c(_t);config=c(Xt);baseComponentStyle=c(Yt);baseStyle=c($);scopedStyleEl;rootEl;dt;get styleOptions(){return{nonce:this.config?.csp().nonce}}get _name(){return this.constructor.name.replace(/^_/,"").toLowerCase()}get componentStyle(){return this._componentStyle}attrSelector=it("pc");themeChangeListeners=[];_getHostInstance(t){if(t)return t?this.hostName?t.name===this.hostName?t:this._getHostInstance(t.parentInstance):t.parentInstance:void 0}_getOptionValue(t,n="",o={}){return Ut(t,n,o)}ngOnInit(){this.document&&this._loadStyles()}ngAfterViewInit(){this.rootEl=this.el?.nativeElement,this.rootEl&&this.rootEl?.setAttribute(this.attrSelector,"")}ngOnChanges(t){if(this.document&&!Wt(this.platformId)){let{dt:n}=t;n&&n.currentValue&&(this._loadScopedThemeStyles(n.currentValue),this._themeChangeListener(()=>this._loadScopedThemeStyles(n.currentValue)))}}ngOnDestroy(){this._unloadScopedThemeStyles(),this.themeChangeListeners.forEach(t=>Ct.off("theme:change",t))}_loadStyles(){let t=()=>{J.isStyleNameLoaded("base")||(this.baseStyle.loadGlobalCSS(this.styleOptions),J.setLoadedStyleName("base")),this._loadThemeStyles()};t(),this._themeChangeListener(()=>t())}_loadCoreStyles(){!J.isStyleNameLoaded("base")&&this._name&&(this.baseComponentStyle.loadCSS(this.styleOptions),this.componentStyle&&this.componentStyle?.loadCSS(this.styleOptions),J.setLoadedStyleName(this.componentStyle?.name))}_loadThemeStyles(){if(!Z.isStyleNameLoaded("common")){let{primitive:t,semantic:n,global:o,style:r}=this.componentStyle?.getCommonTheme?.()||{};this.baseStyle.load(t?.css,k({name:"primitive-variables"},this.styleOptions)),this.baseStyle.load(n?.css,k({name:"semantic-variables"},this.styleOptions)),this.baseStyle.load(o?.css,k({name:"global-variables"},this.styleOptions)),this.baseStyle.loadGlobalTheme(k({name:"global-style"},this.styleOptions),r),Z.setLoadedStyleName("common")}if(!Z.isStyleNameLoaded(this.componentStyle?.name)&&this.componentStyle?.name){let{css:t,style:n}=this.componentStyle?.getComponentTheme?.()||{};this.componentStyle?.load(t,k({name:`${this.componentStyle?.name}-variables`},this.styleOptions)),this.componentStyle?.loadTheme(k({name:`${this.componentStyle?.name}-style`},this.styleOptions),n),Z.setLoadedStyleName(this.componentStyle?.name)}if(!Z.isStyleNameLoaded("layer-order")){let t=this.componentStyle?.getLayerOrderThemeCSS?.();this.baseStyle.load(t,k({name:"layer-order",first:!0},this.styleOptions)),Z.setLoadedStyleName("layer-order")}this.dt&&(this._loadScopedThemeStyles(this.dt),this._themeChangeListener(()=>this._loadScopedThemeStyles(this.dt)))}_loadScopedThemeStyles(t){let{css:n}=this.componentStyle?.getPresetTheme?.(t,`[${this.attrSelector}]`)||{},o=this.componentStyle?.load(n,k({name:`${this.attrSelector}-${this.componentStyle?.name}`},this.styleOptions));this.scopedStyleEl=o?.el}_unloadScopedThemeStyles(){this.scopedStyleEl?.remove()}_themeChangeListener(t=()=>{}){J.clearLoadedStyleNames(),Ct.on("theme:change",t),this.themeChangeListeners.push(t)}cx(t,n){let o=this.parent?this.parent.componentStyle?.classes?.[t]:this.componentStyle?.classes?.[t];return typeof o=="function"?o({instance:this}):typeof o=="string"?o:t}sx(t){let n=this.componentStyle?.inlineStyles?.[t];return typeof n=="function"?n({instance:this}):typeof n=="string"?n:k({},n)}get parent(){return this.parentInstance}static \u0275fac=function(n){return new(n||e)};static \u0275dir=E({type:e,inputs:{dt:"dt"},features:[y([Yt,$]),U]})}return e})();var fe=({dt:e})=>`
2
2
  .p-inputtext {
3
3
  font-family: inherit;
4
4
  font-feature-settings: inherit;
@@ -0,0 +1 @@
1
+ import{a as v,b as L}from"./chunk-KHP7E7JG.js";import"./chunk-BOVEGMBL.js";import"./chunk-WUPQR4WU.js";import{a as E,b as O}from"./chunk-W4KTL6Y6.js";import"./chunk-7IPVVF6Y.js";import{h as H}from"./chunk-RYHNURUZ.js";import{b as N,c as G}from"./chunk-BX74ZLQG.js";import{a as R,b as D}from"./chunk-CNLYDNON.js";import"./chunk-FTI2QPWV.js";import"./chunk-BDJHC5O6.js";import{w as V,x as j}from"./chunk-LMI4DLB5.js";import"./chunk-W6LBFCQQ.js";import"./chunk-3GHEXAAZ.js";import"./chunk-R6NK3ROE.js";import{a as I}from"./chunk-TDMJ2M6W.js";import{i as A,m as F}from"./chunk-DAQCANBV.js";import"./chunk-F2X3VGZZ.js";import{Cb as P,Jc as l,Kb as p,Kc as m,Mc as x,Nb as d,Ub as o,V as M,Vb as n,Wb as c,X as y,Z as S,_b as w,dc as h,ec as s,gb as a,h as T,ha as f,pa as g,qa as C,ra as b,s as u,sa as k,wb as B,yc as $,zc as _}from"./chunk-WCXWWANV.js";import"./chunk-YQFG5XE2.js";var q=()=>({height:"calc(100vh - 100px)"});function J(i,z){if(i&1){let e=w();o(0,"div",3)(1,"p-button",4),h("onClick",function(){g(e);let r=s();return C(r.onFormatCOAConfig())}),n(),o(2,"p-button",5),l(3,"async"),l(4,"async"),h("onClick",function(){g(e);let r=s();return C(r.onMigrateCoaConfig())}),n()()}if(i&2){let e=s();a(2),p("disabled",m(3,2,e.countInBooks$)!==0)("pTooltip",m(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function K(i,z){if(i&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),c(3,"app-migration-cards",7),l(4,"async"),b(),o(5,"svg",8),c(6,"path",9),n(),k(),c(7,"app-migration-cards",10),l(8,"async"),n()()()),i&2){let e=s();d(_(12,q)),a(),d(_(13,q)),a(2),p("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var ge=(()=>{class i{constructor(){this.migrateService=f(v),this.toastr=f(I),this.refresh$=new T(void 0),this.pageTitle="Chart of Account Configuration"}ngOnInit(){let e=this.refresh$.pipe(y(()=>this.migrateService.getCOAConfigurationCount()),S(t=>console.log("API response:",t)),M(1));this.countInPOS$=e.pipe(u(t=>Number(t.pos))),this.countInBooks$=e.pipe(u(t=>Number(t.books)))}onMigrateCoaConfig(){this.migrateService.migrateCoaConfig().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormatCOAConfig(){this.migrateService.formatManualCOAConfig().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=B({type:i,selectors:[["app-coa-configuration"]],features:[$([v])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(t,r){t&1&&(o(0,"app-main-panel",2),P(1,J,5,6,"ng-template",null,0,x)(3,K,9,14,"ng-template",null,1,x),n()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[H,F,A,j,V,O,E,D,R,G,N,L],encapsulation:2})}}return i})();export{ge as CoaConfigurationComponent};
@@ -0,0 +1 @@
1
+ import{a as Ze,b as et,c as tt,d as nt,e as it,f as ot}from"./chunk-RSGEQTNJ.js";import{a as He,b as Ke,c as Qe}from"./chunk-6PS3NJ62.js";import{a as Xe,b as Ye}from"./chunk-6332DY2I.js";import{a as qe}from"./chunk-RLR2HFSC.js";import{b as We}from"./chunk-BOVEGMBL.js";import"./chunk-WUPQR4WU.js";import{a as ze,b as Ue}from"./chunk-VJLO7GNT.js";import"./chunk-DJAICZNR.js";import{a as Re,b as Ve,d as je,k as $e}from"./chunk-CEZEYAWZ.js";import{a as Ge,b as Be}from"./chunk-YVGWGEPX.js";import"./chunk-PDNXU4MC.js";import{a as Le}from"./chunk-C3N6HRIE.js";import{a as ee,b as te}from"./chunk-W4KTL6Y6.js";import"./chunk-RNOSD5RO.js";import{a as Oe,b as ke}from"./chunk-HFUW7PYZ.js";import"./chunk-WWWY3VE7.js";import{a as Pe,b as Je}from"./chunk-35ER6BC7.js";import"./chunk-V4IY7RIP.js";import"./chunk-J6H5UCJR.js";import"./chunk-U75O34AW.js";import"./chunk-3RM5CDGW.js";import{a as De,b as ne}from"./chunk-7IPVVF6Y.js";import{h as M}from"./chunk-RYHNURUZ.js";import"./chunk-BX74ZLQG.js";import{a as z,b as U}from"./chunk-CNLYDNON.js";import"./chunk-FTI2QPWV.js";import"./chunk-BDJHC5O6.js";import{n as Z,o as w,w as $,x as L}from"./chunk-LMI4DLB5.js";import"./chunk-W6LBFCQQ.js";import{Ia as we,Ma as Me,b as J,c as pe,e as N,f as O,j as Te,l as k,m as X,n as Ne,o as R,v as V,x as Y,y as j}from"./chunk-3GHEXAAZ.js";import{a as Ae}from"./chunk-R6NK3ROE.js";import{a as Fe}from"./chunk-TDMJ2M6W.js";import{C as ye,F as Ie,M as Ee,c as Q,f as be,l as Se,m as T}from"./chunk-DAQCANBV.js";import"./chunk-F2X3VGZZ.js";import{Ac as A,Cb as g,Ga as P,Jc as le,Kb as p,Kc as me,L as de,Mc as d,Nb as K,Pb as re,Qb as b,Sb as S,Tb as y,Ub as i,Vb as n,Wb as c,Y as fe,Z as B,_b as h,ba as ge,dc as I,ec as u,g as ue,gb as a,ha as s,mb as _e,pa as v,qa as C,qc as o,rc as E,s as se,sc as ae,vc as ve,wb as F,wc as Ce,xc as he,yc as xe,zc as G}from"./chunk-WCXWWANV.js";import{a as q,b as H}from"./chunk-YQFG5XE2.js";var x=(()=>{class t{#e=s(Ae);fetchLoaderConfiguration(){return this.#e.get("","api/SetupLoader/Load")}updateAccountingIntegrationConfiguration(e){return this.#e.post(void 0,"/api/setup/SubmitConfig",e)}fetchOpeningBalanceFormConfiguration(){return this.#e.get("","/api/setup/OpeningBalance/Form")}submitOpeningBalanceFormConfiguration(e){return this.#e.post("","api/setup/OpeningBalance/Submit",e)}fetchAPICredential(){return this.#e.get(void 0,"/api/AccountConfig")}updateAPICredential(e){return this.#e.put(void 0,"/api/AccountConfig",e)}formatJournal(e){return this.#e.post("","/api/setup/formatdata/clearjournal",{domain:e})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=ge({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ct=()=>({height:"calc(100vh - 100px)"}),lt=t=>({"active-state":t}),mt=t=>({"text-white":t});function ht(t,m){if(t&1){let e=h();i(0,"div",5)(1,"a",6),o(2,"Cancel"),n(),i(3,"p-button",7),I("click",function(){v(e);let l=u();return C(l.updateAccountingIntegration())}),n()()}}function xt(t,m){if(t&1&&(i(0,"p-tab",9),o(1),n()),t&2){let e=m.$implicit,r=m.$index;p("value",r),a(),E(e)}}function bt(t,m){if(t&1&&(i(0,"div",42)(1,"h3",43),o(2," End Of Shift "),n()()),t&2){let e=u(4);p("ngClass",A(2,lt,e.form.controls.posIntegration.value.createJournalTriggers===0)),a(),p("ngClass",A(4,mt,e.form.controls.posIntegration.value.createJournalTriggers===0))}}function St(t,m){if(t&1&&(i(0,"div",42)(1,"h3",43),o(2," Every "),n()()),t&2){let e=u(4);p("ngClass",A(2,lt,e.form.controls.posIntegration.value.createJournalTriggers===1)),a(),p("ngClass",A(4,mt,e.form.controls.posIntegration.value.createJournalTriggers===1))}}function yt(t,m){if(t&1&&g(0,bt,3,6,"div",42)(1,St,3,6,"div",42),t&2){let e,r=u().$implicit;re((e=r.key)===0?0:e===1?1:-1)}}function It(t,m){t&1&&(i(0,"h4"),o(1,"Suitable for Cash Sales (Retail & FnB)"),n(),i(2,"p"),o(3," One Journal is generated for all transaction happening within a register open - close period "),n())}function Et(t,m){t&1&&(i(0,"h4"),o(1,"Every"),n(),i(2,"p"),o(3," Suitable for Credit Sales (Wholesale) Journal is generated for each transaction "),n())}function Ft(t,m){if(t&1){let e=h();i(0,"div",14),c(1,"p-radiobutton",40),i(2,"p-card",41),I("click",function(){v(e);let l=u(2);return C(l.changeJournalType())}),g(3,yt,2,1,"ng-template",null,3,d)(5,It,4,0)(6,Et,4,0),n()()}if(t&2){let e,r=m.$implicit;a(),p("inputId",r.value)("value",r.key),a(4),re((e=r.key)===0?5:e===1?6:-1)}}function At(t,m){if(t&1&&(i(0,"div",34),c(1,"p-radiobutton",44),i(2,"label",45),o(3),n()()),t&2){let e=m.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),E(e.value)}}function Tt(t,m){if(t&1&&(i(0,"div",34),c(1,"p-radiobutton",46),i(2,"label",47),o(3),n()()),t&2){let e=m.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),E(e.value)}}function Nt(t,m){if(t&1&&(i(0,"div",34),c(1,"p-radiobutton",48),i(2,"label",47),o(3),n()()),t&2){let e=m.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),E(e.value)}}function wt(t,m){if(t&1&&(i(0,"div",34),c(1,"p-radiobutton",49),i(2,"label",47),o(3),n()()),t&2){let e=m.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),E(e.value)}}function Mt(t,m){if(t&1&&(i(0,"p-scrollpanel",null,2)(2,"p-tabs",8)(3,"p-tablist"),S(4,xt,2,2,"p-tab",9,b),n(),i(6,"p-tabpanels")(7,"p-tabpanel",9)(8,"h4",10),o(9,"Integration with POS"),n(),i(10,"p"),o(11,"Generate Journal"),n(),i(12,"div",11)(13,"div",12)(14,"div",13),S(15,Ft,7,3,"div",14,b),n()()(),c(17,"hr"),i(18,"div",15)(19,"h3",10),o(20,"Journal Generate"),n(),i(21,"p"),o(22,"Configure generate transaction"),n(),i(23,"div",16)(24,"div")(25,"div",17)(26,"label",18),o(27,"Generate EOD Expense Journal"),n(),c(28,"p-toggleswitch",19),n()(),i(29,"div")(30,"div",17)(31,"label",18),o(32,"Generate Outlet Delivery Journal"),n(),c(33,"p-toggleswitch",20),n()(),i(34,"div")(35,"div",17)(36,"label",18),o(37,"Generate Payment Discount Journal On Payment"),n(),c(38,"p-toggleswitch",21),n()()()()(),i(39,"p-tabpanel",22)(40,"div",23)(41,"h3",10),o(42,"Accounting Numbering"),n(),i(43,"p"),o(44,"Configure numbering format and rule for your accounting"),n(),i(45,"div",13)(46,"div",24)(47,"div",25)(48,"div",24)(49,"div",17)(50,"label",26),o(51,"Digit"),n(),c(52,"p-inputnumber",27),n()(),i(53,"div",24)(54,"div",17)(55,"label",28),o(56,"Seed"),n(),c(57,"p-inputnumber",29),n()(),i(58,"div",24)(59,"div",17)(60,"label",30),o(61,"Last Number"),n(),c(62,"p-inputnumber",31),n()(),i(63,"div",24)(64,"div",17)(65,"label",18),o(66,"Format"),n(),c(67,"p-select",32),n()(),i(68,"div",24)(69,"div",17)(70,"label",18),o(71,"Reset Every"),n(),i(72,"div",33),S(73,At,4,4,"div",34,b),n()()()()()()()(),i(75,"p-tabpanel",35)(76,"div",23)(77,"h3",10),o(78,"Report"),n(),i(79,"p"),o(80,"Configure report behavior"),n(),i(81,"div",13)(82,"div",24)(83,"div",25)(84,"div",24)(85,"div",17)(86,"label",18),o(87,"Audit Journal Transaction"),n(),i(88,"div",36),S(89,Tt,4,4,"div",34,b),n()()(),c(91,"div",24),i(92,"div",24)(93,"div",17)(94,"label",18),o(95,"Accounting For Treatment"),n(),i(96,"div",36),S(97,Nt,4,4,"div",34,b),n()()(),c(99,"div",24),i(100,"div",24)(101,"div",17)(102,"label",18),o(103,"Configure Report Access Control in COA"),n(),i(104,"div",36),S(105,wt,4,4,"div",34,b),n()()()()()()()(),i(107,"p-tabpanel",37)(108,"div",23)(109,"h3",10),o(110,"Note"),n(),i(111,"p"),o(112,"Configure show note"),n(),i(113,"div",13)(114,"div",24)(115,"div",25)(116,"div",24)(117,"div",17)(118,"label",18),o(119,"Note Required On Journal"),n(),c(120,"p-toggleswitch",38),n()(),c(121,"div",24),i(122,"div",24)(123,"div",17)(124,"label",18),o(125,"Trial Balance Footer Visible"),n(),c(126,"p-toggleswitch",39),n()(),c(127,"div",24),n()()()()()()()()),t&2){let e,r,l,f,W,D,_=u();K(G(9,Ct)),a(2),p("value",0)("formGroup",_.form),a(2),y(_.tabs()),a(3),p("value",0),a(8),y((e=_.accountingIntegration())==null||e.options==null?null:e.options.journalType),a(24),p("value",1),a(28),p("options",(r=_.accountingIntegration())==null||r.options==null?null:r.options.monthlyResetPeriodFormat),a(6),y((l=_.accountingIntegration())==null||l.options==null?null:l.options.resetPeriods),a(2),p("value",2),a(14),y((f=_.accountingIntegration())==null||f.options==null?null:f.options.auditType),a(8),y((W=_.accountingIntegration())==null||W.options==null?null:W.options.generatePrepaidJournal),a(8),y((D=_.accountingIntegration())==null||D.options==null?null:D.options.entityAccess),a(2),p("value",3)}}var pt=(()=>{class t{constructor(){this.accountingSetupService=s(x),this.fb=s(V).nonNullable,this.tabs=P(["Pos","Numbering","Report","Note"]),this.journalType=P(0),this.accountingIntegration=P(null)}ngOnInit(){this.initializeForm(),this.loadAccountingConfiguration()}initializeForm(){this.form=this.fb.group({posIntegration:this.createPosIntegrationGroup(),number:this.createNumberGroup(),report:this.createReportGroup(),journalGenerate:this.createJournalGenerateGroup(),note:this.createNoteGroup()})}createPosIntegrationGroup(){return this.fb.group({createJournalTriggers:this.fb.control(0)})}createNumberGroup(){return this.fb.group({seed:this.fb.control(""),digit:this.fb.control(""),resetEvery:this.fb.control(""),monthlyFormat:this.fb.control(""),lastNumber:this.fb.control(""),lastModified:this.fb.control("")})}createReportGroup(){return this.fb.group({accountingAuditType:this.fb.control(""),accountingEntityAccess:this.fb.control(""),generatePrepaidJournal:this.fb.control("")})}createJournalGenerateGroup(){return this.fb.group({eodExpenseJournal:this.fb.control(""),transferOrder:this.fb.control(""),paymentDiscount:this.fb.control("")})}createNoteGroup(){return this.fb.group({noteMandatory:this.fb.control(""),trialBalanceFooterVisible:this.fb.control("")})}changeJournalType(){let e=this.journalType()===0?1:0;this.journalType.set(e),this.accountingIntegration.update(r=>H(q({},r),{form:H(q({},r.form),{posIntegration:H(q({},r.form.posIntegration),{createJournalTriggers:e})})})),this.form.controls.posIntegration.patchValue({createJournalTriggers:e})}loadAccountingConfiguration(){this.accountingSetupService.fetchLoaderConfiguration().pipe(B(e=>{this.accountingIntegration.set(e);let r=e.form.posIntegration.createJournalTriggers;this.journalType.set(r),this.form.get("posIntegration.createJournalTriggers")?.setValue(r),this.form.patchValue(e.form)})).subscribe()}updateAccountingIntegration(){let e={form:this.form.getRawValue()};this.accountingSetupService.updateAccountingIntegrationConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=F({type:t,selectors:[["app-accounting-integration"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["scrollPanelContainer",""],["header",""],["pageTitle","Accounting Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"click"],[1,"border-top",3,"value","formGroup"],[3,"value"],[1,"fs-5"],["formGroupName","posIntegration",1,"row"],[1,"col-8"],[1,"row"],[1,"col"],["formGroupName","journalGenerate",1,""],[1,"d-flex","column-gap-5"],[1,"d-flex","flex-column"],["for","",1,"fs-4"],["formControlName","eodExpenseJournal"],["formControlName","transferOrder"],["formControlName","paymentDiscount"],["formGroupName","number",3,"value"],[1,""],[1,"col-6"],[1,"row","row-gap-3"],["for","digit",1,"fs-4"],["inputId","digit","formControlName","digit"],["for","seed",1,"fs-4"],["inputId","seed","formControlName","seed"],["for","lastNumber",1,"fs-4"],["inputId","lastNumber","formControlName","lastNumber"],["appendTo","body","formControlName","monthlyFormat","optionValue","key","optionLabel","value",3,"options"],[1,"d-flex","gap-4"],[1,"d-flex","align-items-center","gap-2"],["formGroupName","report",3,"value"],[1,"d-flex","flex-column","gap-2"],["formGroupName","note",3,"value"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"],["styleClass","d-none","name","createJournalTriggers","formControlName","createJournalTriggers",3,"inputId","value"],["styleClass","h-100",3,"click"],[1,"d-flex","justify-content-center","inactive-state","text-white","py-2",3,"ngClass"],[1,"m-0",3,"ngClass"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"m-0",3,"for"],["name","accountingAuditType","formControlName","accountingAuditType",3,"value","inputId"],[1,"ml-2","m-0",3,"for"],["name","generatePrepaidJournal","formControlName","generatePrepaidJournal",3,"value","inputId"],["name","accountingEntityAccess","formControlName","accountingEntityAccess",3,"value","inputId"]],template:function(r,l){r&1&&(i(0,"app-main-panel",4),g(1,ht,4,0,"ng-template",null,0,d)(3,Mt,128,10,"ng-template",null,1,d),n())},dependencies:[T,Q,ot,it,nt,tt,Ze,et,M,ne,De,Ve,Re,j,N,O,k,R,X,w,ke,Oe,Ue,ze,Ee,Ie,L,$,Je,Pe,te,ee],styles:["[_nghost-%COMP%]{display:block}.inactive-state[_ngcontent-%COMP%]{background-color:#e5e5e5}.active-state[_ngcontent-%COMP%]{background-color:var(--p-primary-color)}"],changeDetection:0})}}return t})();var Dt=()=>({height:"calc(100vh - 250px)"}),Gt=()=>[],ct=()=>({});function Bt(t,m){if(t&1){let e=h();i(0,"div")(1,"p-button",6),I("onClick",function(){v(e);let l=u();return C(l.submitForm())}),n()()}}function Pt(t,m){t&1&&(i(0,"div",12)(1,"h3",13),o(2,"Date"),n(),c(3,"p-datePicker",14),n())}function Jt(t,m){t&1&&(i(0,"tr")(1,"th",20),o(2,"Account Name"),n(),i(3,"th",21),o(4,"Debit"),n(),i(5,"th",21),o(6,"Credit"),n()())}function Ot(t,m){if(t&1&&(i(0,"tr",10)(1,"td",20),o(2),n(),i(3,"td"),c(4,"input",22),n(),i(5,"td"),c(6,"input",23),n()()),t&2){let e,r=m.$implicit,l=m.rowIndex,f=u(4);p("formGroupName",l),a(2),ae(" ",(e=f.asFormGroup(r).get("accountName"))==null?null:e.value," "),a(2),p("autoNumeric",G(4,ct)),a(2),p("autoNumeric",G(5,ct))}}function kt(t,m){if(t&1&&(i(0,"div",10)(1,"h4",15),o(2),n(),i(3,"div",16)(4,"p-table",17),g(5,Jt,7,0,"ng-template",18)(6,Ot,7,6,"ng-template",19),n()()()),t&2){let e=m.$implicit,r=m.$index,l=u(3);p("formGroupName",r),a(2),ae(" ",e.get("name").value," "),a(2),p("value",l.getItemsArray(l.asFormGroup(e)).controls)}}function Rt(t,m){if(t&1&&(i(0,"tr")(1,"td")(2,"p",24),o(3,"Total"),n()(),i(4,"td",25)(5,"p",24),o(6),le(7,"number"),n()(),i(8,"td",25)(9,"p",24),o(10),le(11,"number"),n()()()),t&2){let e=u(3);a(6),E(me(7,2,e.subtotalDebit)),a(4),E(me(11,4,e.subtotalCredit))}}function Vt(t,m){if(t&1&&(i(0,"p-panel",8),g(1,Pt,4,0,"ng-template",null,2,d),c(3,"p-divider"),i(4,"p-scroll-panel")(5,"div",9),S(6,kt,7,3,"div",10,b),n()(),i(8,"p-table",11),g(9,Rt,12,6,"ng-template",null,3,d),n()()),t&2){let e=u(2);p("formGroup",e.formGroups),a(4),K(G(4,Dt)),a(2),y(e.formsArray.controls),a(2),p("value",G(5,Gt))}}function jt(t,m){if(t&1&&g(0,Vt,11,6,"p-panel",7),t&2){let e=u();p("ngIf",e.formGroups)}}var st=(()=>{class t{constructor(){this.destroy$=new ue,this.subtotalDebit=0,this.subtotalCredit=0,this.fb=s(V),this.accSetupService=s(x),this.dayjsService=s(We),this.date=new Date,this.routes=s(ye)}ngOnInit(){this.initializeForm(),this.loadFormData(),this.calculateSubtotalDebit(),this.formGroups.get("forms").valueChanges.pipe(de(300),fe(this.destroy$)).subscribe(()=>{this.calculateSubtotalDebit()})}initializeForm(){this.formGroups=this.fb.group({forms:this.fb.array([]),date:this.fb.control(new Date)})}get formsArray(){return this.formGroups.get("forms")}getItemsArray(e){return e.get("items")}asFormGroup(e){return e}createFormGroup(e){return this.fb.group({id:[e.id],name:[e.name],items:this.createItemsArray(e.items)})}createItemsArray(e){let r=e.map(l=>this.createItemGroup(l));return this.fb.array(r)}createItemGroup(e){return this.fb.group({accountName:[e.accountName],accountCode:[e.accountCode],id:[e.id],journalID:[e.journalID],accountID:[e.accountID],debitAmount:[e.debitAmount],creditAmount:[e.creditAmount],index:[e.index],note:[e.note]})}loadFormData(){this.routes.data.pipe(se(e=>e.data),Le("response"),B(e=>{for(;this.formsArray.length>0;)this.formsArray.removeAt(0);e.form.filter(l=>l.items&&l.items.length>0).forEach(l=>{this.formsArray.push(this.createFormGroup(l))})})).subscribe({error:e=>console.error("Error loading form data:",e)})}calculateSubtotalDebit(){let e=this.formGroups.controls.forms;this.subtotalDebit=0,this.subtotalCredit=0,e.controls.forEach(r=>{let l=this.getItemsArray(r),f=l.controls.reduce((D,_)=>{let oe=_.get("debitAmount").value||0;return D+oe},0),W=l.controls.reduce((D,_)=>{let oe=_.get("creditAmount").value||0;return D+oe},0);this.subtotalDebit+=f,this.subtotalCredit+=W})}submitForm(){let e=Object.entries(this.formGroups.getRawValue()).reduce((r,[l,f])=>(l==="date"?r[l]=f instanceof Date?this.dayjsService.format(f):f:l==="forms"?r.form=f:r[l]=f,r),{});console.log("Submitting form data:",e),this.accSetupService.submitOpeningBalanceFormConfiguration(e).subscribe(),console.log("Submitting form data:",e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=F({type:t,selectors:[["app-acc-opening-balance-form"]],features:[xe([we])],decls:6,vars:0,consts:[["actionButton",""],["content",""],["header",""],["footer",""],["pageTitle","Opening Balance Form"],["preventOpenDuplicates",""],["label","Submit",3,"onClick"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],["formArrayName","forms",1,"d-flex","flex-column","row-gap-4"],[3,"formGroupName"],[3,"value"],[1,"d-flex","flex-column","gap-2","mx-2"],[1,"fs-5","m-0"],["formControlName","date"],[1,"fs-4"],["formArrayName","items"],["dataKey","id",3,"value"],["pTemplate","header"],["pTemplate","body"],[1,"fs-3"],[1,"fs-3",2,"width","200px"],["formControlName","debitAmount",1,"fs-3","form-control",3,"autoNumeric"],["formControlName","creditAmount",1,"fs-3","form-control",3,"autoNumeric"],[1,"fw-semibold","fs-4"],[1,"text-end",2,"width","200px"]],template:function(r,l){r&1&&(i(0,"app-main-panel",4),g(1,Bt,2,0,"ng-template",null,0,d)(3,jt,1,1,"ng-template",null,1,d),n(),c(5,"p-toast",5))},dependencies:[M,ne,Me,T,be,Se,Be,Ge,$e,je,te,ee,Y,J,N,O,w,Qe,L,$,U,z,qe,j,k,R,X,Ne,Ye,Xe],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var dt=t=>({"ng-invalid ng-dirty":t});function Lt(t,m){if(t&1){let e=h();i(0,"p-button",4),I("onClick",function(){v(e);let l=u();return C(l.saveCredentials())}),o(1,"Update"),n()}}function zt(t,m){t&1&&(i(0,"div",12)(1,"h3",13),o(2,"Account"),n(),i(3,"small",14),o(4,"Configure Client ID and Client Secret"),n()())}function Ut(t,m){if(t&1&&(i(0,"div",5)(1,"p-panel"),g(2,zt,5,0,"ng-template",null,2,d),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),o(8,"Client ID"),n(),c(9,"input",10),n()(),i(10,"div",7)(11,"div",8)(12,"label",9),o(13,"Client Secret"),n(),c(14,"input",11),n()()()()()),t&2){let e=u();a(4),p("formGroup",e.credentialForm),a(5),p("ngClass",A(3,dt,e.clientIDControl.invalid&&e.clientIDControl.dirty||e.clientIDControl.touched)),a(5),p("ngClass",A(5,dt,e.clientSecretControl.invalid&&e.clientSecretControl.dirty||e.clientSecretControl.touched))}}var ft=(()=>{class t{constructor(e){this.fb=e,this.setupService=s(x)}ngOnInit(){this.initForm(),this.setupService.fetchAPICredential().pipe(B(e=>{this.credentialForm.patchValue({clientID:e.clientID||"",clientSecret:e.clientSecret||""})})).subscribe()}initForm(){this.credentialForm=this.fb.group({clientID:["",[pe.required]],clientSecret:["",[pe.required]]})}get clientIDControl(){return this.credentialForm.get("clientID")}get clientSecretControl(){return this.credentialForm.get("clientSecret")}saveCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Saving credentials:",e),this.setupService.updateAPICredential(e).subscribe()}static{this.\u0275fac=function(r){return new(r||t)(_e(V))}}static{this.\u0275cmp=F({type:t,selectors:[["app-api-credential"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","API Credential"],[3,"onClick"],[1,"d-flex","flex-column","row-gap-4"],[1,"row",3,"formGroup"],[1,"col-6"],[1,"d-flex","flex-column"],["for","outlet"],["type","text","pInputText","","formControlName","clientID",3,"ngClass"],["type","text","pInputText","","formControlName","clientSecret",3,"ngClass"],[1,"d-flex","flex-column","px-2"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(r,l){r&1&&(i(0,"app-main-panel",3),g(1,Lt,2,0,"ng-template",null,0,d)(3,Ut,15,7,"ng-template",null,1,d),n())},dependencies:[T,Q,j,J,N,O,k,R,w,Z,U,z,M,L,$],encapsulation:2})}}return t})();function Wt(t,m){if(t&1){let e=h();i(0,"button",4),I("click",function(){v(e);let l=u();return C(l.onFormatJournal())}),o(1," Format "),n()}}function qt(t,m){t&1&&(i(0,"div",12)(1,"div",13)(2,"h4",14),o(3,"Journal Configuration"),n(),i(4,"small",15),o(5," Enter your account information to format journal entries "),n()()())}function Ht(t,m){if(t&1){let e=h();i(0,"div",5)(1,"p-panel"),g(2,qt,6,0,"ng-template",null,2,d),i(4,"div",6)(5,"div",7)(6,"p-floatlabel",8)(7,"input",9),he("ngModelChange",function(l){v(e);let f=u();return Ce(f.subdomain,l)||(f.subdomain=l),C(l)}),n(),i(8,"label",10),o(9,"Subdomain"),n()(),i(10,"small",11),o(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),n()()()()()}if(t&2){let e=u();a(7),ve("ngModel",e.subdomain)}}var gt=(()=>{class t{constructor(){this.setupService=s(x),this.subdomain=P(""),this.toastrService=s(Fe)}onFormatJournal(){if(!this.subdomain()){this.toastrService.error("Please enter a subdomain","Error");return}this.setupService.formatJournal(this.subdomain()).subscribe({next:e=>{this.toastrService.success(e.message,"Success")}})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=F({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[1,"btn","btn-success","rounded",3,"click"],[1,"d-flex","flex-column","row-gap-4"],[1,"row","mt-6"],[1,"col-12"],["variant","on"],["pInputText","","id","subdomain","autocomplete","off",1,"w-100",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"text-muted","fst-italic",2,"font-size","12px"],[1,"row","ps-2"],[1,"col-12","d-flex","flex-column"],[1,"mb-1","fw-bold"],[1,"fst-italic","text-muted"]],template:function(r,l){r&1&&(i(0,"app-main-panel",3),g(1,Wt,2,0,"ng-template",null,0,d)(3,Ht,12,1,"ng-template",null,1,d),n())},dependencies:[T,Y,J,N,Te,w,Z,M,U,z,Ke,He],encapsulation:2})}}return t})();var _t=()=>s(x).fetchOpeningBalanceFormConfiguration();var Mi=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"accounting-integration",component:pt},{path:"opening-balance-form",component:st,resolve:{data:_t}},{path:"api-crendetial",component:ft},{path:"format-journal",component:gt},{path:"closing-entries",loadComponent:()=>import("./chunk-CGUMUBB7.js").then(t=>t.ClosingPageComponent)},{path:"closing-entries/create",loadComponent:()=>import("./chunk-NOZEL54G.js").then(t=>t.ClosingFormComponent)}]}];export{Mi as ACCOUNTING_SETUP_ROUTES};
@@ -0,0 +1 @@
1
+ import{a as v,b as H}from"./chunk-KHP7E7JG.js";import"./chunk-BOVEGMBL.js";import"./chunk-WUPQR4WU.js";import{a as F,b as I}from"./chunk-W4KTL6Y6.js";import"./chunk-7IPVVF6Y.js";import{h as G}from"./chunk-RYHNURUZ.js";import{b as D,c as N}from"./chunk-BX74ZLQG.js";import{a as O,b as R}from"./chunk-CNLYDNON.js";import"./chunk-FTI2QPWV.js";import"./chunk-BDJHC5O6.js";import{w as V,x as j}from"./chunk-LMI4DLB5.js";import"./chunk-W6LBFCQQ.js";import"./chunk-3GHEXAAZ.js";import"./chunk-R6NK3ROE.js";import{a as $}from"./chunk-TDMJ2M6W.js";import{i as A,m as P}from"./chunk-DAQCANBV.js";import"./chunk-F2X3VGZZ.js";import{Cb as E,Jc as c,Kb as p,Kc as m,Mc as C,Nb as x,Ub as n,V as y,Vb as o,Wb as l,X as b,_b as w,dc as h,ec as s,gb as a,h as T,ha as f,pa as g,qa as d,ra as M,s as u,sa as S,wb as k,yc as B,zc as _}from"./chunk-WCXWWANV.js";import"./chunk-YQFG5XE2.js";var L=()=>({height:"calc(100vh - 100px)"});function z(i,q){if(i&1){let e=w();n(0,"div",3)(1,"p-button",4),h("onClick",function(){g(e);let r=s();return d(r.onFormat())}),o(),n(2,"p-button",5),c(3,"async"),c(4,"async"),h("onClick",function(){g(e);let r=s();return d(r.onMigrate())}),o()()}if(i&2){let e=s();a(2),p("disabled",m(3,2,e.countInBooks$)!==0)("pTooltip",m(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function J(i,q){if(i&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),l(3,"app-migration-cards",7),c(4,"async"),M(),n(5,"svg",8),l(6,"path",9),o(),S(),l(7,"app-migration-cards",10),c(8,"async"),o()()()),i&2){let e=s();x(_(12,L)),a(),x(_(13,L)),a(2),p("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var le=(()=>{class i{constructor(){this.migrateService=f(v),this.toastr=f($),this.refresh$=new T(void 0),this.pageTitle="Expense Account"}ngOnInit(){let e=this.refresh$.pipe(b(()=>this.migrateService.getExpenseAccountCount()),y(1));this.countInPOS$=e.pipe(u(t=>Number(t.pos))),this.countInBooks$=e.pipe(u(t=>Number(t.books)))}onMigrate(){this.migrateService.migrateExpenseAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatExpenseAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=k({type:i,selectors:[["app-expense-account"]],features:[B([v])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(t,r){t&1&&(n(0,"app-main-panel",2),E(1,z,5,6,"ng-template",null,0,C)(3,J,9,14,"ng-template",null,1,C),o()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[G,P,A,I,F,R,O,N,D,H,j,V],encapsulation:2})}}return i})();export{le as ExpenseAccountComponent};
@@ -0,0 +1 @@
1
+ import{a as v,b as L}from"./chunk-KHP7E7JG.js";import"./chunk-BOVEGMBL.js";import"./chunk-WUPQR4WU.js";import{a as I,b as E}from"./chunk-W4KTL6Y6.js";import"./chunk-7IPVVF6Y.js";import{h as H}from"./chunk-RYHNURUZ.js";import{b as N,c as G}from"./chunk-BX74ZLQG.js";import{a as R,b as D}from"./chunk-CNLYDNON.js";import"./chunk-FTI2QPWV.js";import"./chunk-BDJHC5O6.js";import{w as V,x as j}from"./chunk-LMI4DLB5.js";import"./chunk-W6LBFCQQ.js";import"./chunk-3GHEXAAZ.js";import"./chunk-R6NK3ROE.js";import{a as F}from"./chunk-TDMJ2M6W.js";import{i as w,m as $}from"./chunk-DAQCANBV.js";import"./chunk-F2X3VGZZ.js";import{Cb as B,Jc as s,Kb as p,Kc as l,Mc as x,Nb as C,Ub as o,V as M,Vb as n,Wb as m,X as y,Z as S,_b as P,dc as h,ec as c,gb as a,h as T,ha as f,pa as g,qa as d,ra as b,s as u,sa as k,wb as A,yc as O,zc as _}from"./chunk-WCXWWANV.js";import"./chunk-YQFG5XE2.js";var q=()=>({height:"calc(100vh - 100px)"});function J(i,z){if(i&1){let t=P();o(0,"div",3)(1,"p-button",4),h("onClick",function(){g(t);let r=c();return d(r.onFormatCOA())}),n(),o(2,"p-button",5),s(3,"async"),s(4,"async"),h("onClick",function(){g(t);let r=c();return d(r.onMigrateCoaAccount())}),n()()}if(i&2){let t=c();a(2),p("disabled",l(3,2,t.countInBooks$)!==0)("pTooltip",l(4,4,t.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function K(i,z){if(i&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),m(3,"app-migration-cards",7),s(4,"async"),b(),o(5,"svg",8),m(6,"path",9),n(),k(),m(7,"app-migration-cards",10),s(8,"async"),n()()()),i&2){let t=c();C(_(12,q)),a(),C(_(13,q)),a(2),p("migrationCount",l(4,8,t.countInPOS$))("migrationTitle",t.pageTitle),a(4),p("migrationCount",l(8,10,t.countInBooks$))("migrationTitle",t.pageTitle)}}var gt=(()=>{class i{constructor(){this.migrateService=f(v),this.toastr=f(F),this.refresh$=new T(void 0),this.pageTitle="Chart of Account"}ngOnInit(){let t=this.refresh$.pipe(y(()=>this.migrateService.getCOACount()),S(e=>console.log("API response:",e)),M(1));this.countInPOS$=t.pipe(u(e=>Number(e.pos))),this.countInBooks$=t.pipe(u(e=>Number(e.books)))}onMigrateCoaAccount(){this.migrateService.migrateCoaAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Migration Successful")})}onFormatCOA(){this.migrateService.formatManualCOA().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Format Successful")})}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=A({type:i,selectors:[["app-chart-of-account"]],features:[O([v])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(e,r){e&1&&(o(0,"app-main-panel",2),B(1,J,5,6,"ng-template",null,0,x)(3,K,9,14,"ng-template",null,1,x),n()),e&2&&p("pageTitle",r.pageTitle)},dependencies:[H,$,w,L,j,V,E,I,D,R,G,N],encapsulation:2})}}return i})();export{gt as ChartOfAccountComponent};
@@ -0,0 +1 @@
1
+ import{a as K}from"./chunk-JO3SI6HU.js";import{b as J}from"./chunk-BOVEGMBL.js";import"./chunk-WUPQR4WU.js";import{a as q,b as z}from"./chunk-JZTK7BS7.js";import{a as H}from"./chunk-DCKLQNGL.js";import{a as O,b as W}from"./chunk-YVGWGEPX.js";import"./chunk-PDNXU4MC.js";import"./chunk-V4IY7RIP.js";import"./chunk-J6H5UCJR.js";import{h as I}from"./chunk-RYHNURUZ.js";import"./chunk-BX74ZLQG.js";import{a as G,b as A}from"./chunk-CNLYDNON.js";import"./chunk-FTI2QPWV.js";import"./chunk-BDJHC5O6.js";import{o as j,w as k,x as B}from"./chunk-LMI4DLB5.js";import"./chunk-W6LBFCQQ.js";import{b as y,e as D,f as M,k as T,l as w,o as N,v as V,y as R}from"./chunk-3GHEXAAZ.js";import"./chunk-R6NK3ROE.js";import"./chunk-TDMJ2M6W.js";import{E as P,m as F}from"./chunk-DAQCANBV.js";import"./chunk-F2X3VGZZ.js";import{Ab as S,Cb as p,Kb as c,Mc as a,Ub as i,Vb as t,Wb as f,Z as C,_b as b,dc as E,ec as u,gb as _,ha as m,pa as x,qa as h,qc as l,wb as v}from"./chunk-WCXWWANV.js";import"./chunk-YQFG5XE2.js";function L(e,d){if(e&1){let o=b();i(0,"p-button",4),E("onClick",function(){x(o);let n=u();return h(n.onSubmit())}),t()}}function Q(e,d){e&1&&(i(0,"div",13)(1,"h3",14),l(2,"General"),t(),i(3,"span",15),l(4,"Enter your closing Fiscal Date"),t()())}function U(e,d){if(e&1&&(i(0,"div",5)(1,"div",6)(2,"p-panel"),p(3,Q,5,0,"ng-template",null,2,a),i(5,"div",5)(6,"div",7)(7,"form",8)(8,"div",9)(9,"label",10),l(10,"Period"),t(),f(11,"p-datePicker",11),t(),i(12,"div",9)(13,"label",10),l(14,"Description"),t(),f(15,"textarea",12),t()()()()()()()),e&2){let o=u();_(7),c("formGroup",o.form)}}var he=(()=>{class e extends H{constructor(){super(),this.closingEntriesService=m(K),this.dayjsService=m(J),this.fb=m(V),this.router=m(P)}ngOnInit(){this.initForm()}initForm(){this.form=this.fb.group({Period:this.fb.control(new Date),Note:this.fb.control("")})}onSubmit(){if(this.form.invalid){this.form.markAllAsTouched();return}let{Period:o}=this.form.getRawValue(),r=Object.entries(this.form.getRawValue()).reduce((n,[s,g])=>(s==="Period"?n[s]=this.dayjsService.from(o)?this.dayjsService.format(g):"":n[s]=g,n),{});this.closingEntriesService.createClosingEntry(r).pipe(C(()=>{this.router.navigate(["/pages/accounting-setup/closing-entries"])})).subscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=v({type:e,selectors:[["app-closing-form"]],features:[S],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Closing Entries Form",3,"hasMainWrapperPadding"],["label","Submit",3,"onClick"],[1,"row"],[1,"col"],[1,"col-4"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for",""],["formControlName","Period","fluid",""],["formControlName","Note","rows","5","cols","30","pTextarea",""],[1,"d-flex","flex-column","mx-2"],[1,"fs-5","m-0"],[1,"fs-3"]],template:function(r,n){r&1&&(i(0,"app-main-panel",3),p(1,L,1,0,"ng-template",null,0,a)(3,U,16,1,"ng-template",null,1,a),t()),r&2&&c("hasMainWrapperPadding",!0)},dependencies:[I,F,A,G,W,O,j,z,q,B,k,R,T,y,D,M,w,N],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();export{he as ClosingFormComponent};
@@ -1,4 +1,4 @@
1
- import{b as _p}from"./chunk-WZO2ZLBL.js";import{a as Aa}from"./chunk-EXVUABTO.js";import{a as jr,h as wp,p as xp,w as Cp}from"./chunk-YOEPO6LK.js";import{A as bp,C as Hn,Ea as vp,Ma as Lr,Na as Vi,Oa as Wi,Va as $r}from"./chunk-BNI5KUDE.js";import{a as yp}from"./chunk-3HW557B7.js";import{A as fp,E as mp,c as Ur,e as hp,f as ji,g as Da,h as Nr,m as Hi,n as Nn,r as gi,t as Ba,w as Ea}from"./chunk-BYD3JK4R.js";import{c as gp,d as Ln,f as $n,h as jn}from"./chunk-F2X3VGZZ.js";import{Aa as ip,Ab as fi,Ac as Ta,Cb as se,Da as Pa,Dc as dp,Ea as rp,Ga as Or,Gc as cp,I as Jl,Jb as ze,Kb as N,Lb as Mr,Lc as ho,Mb as ap,Nb as np,Ob as ii,Pb as dt,Rb as Mn,Sb as zn,Tb as Rn,Ub as ve,Uc as Ut,Vb as Ce,Vc as Rr,Wb as Ae,Xb as Si,Yb as Pi,Yc as Un,Zb as Kt,_b as mi,ba as hi,bb as op,ca as Ca,cb as Fa,d as di,dc as Rt,ec as X,fc as sp,g as Ql,ga as Sa,gb as V,gc as lp,ha as Dt,ic as pt,jc as Ia,kc as Ke,lc as Qe,n as Zl,oa as ep,oc as pp,pa as Je,pc as Bt,qa as et,qc as rr,r as ci,ra as tp,rc as co,sc as up,ta as ti,wb as Yt,xb as ka,xc as zr,za as rt,zc as or}from"./chunk-YVEUYFCE.js";import{a as x,b as J,c as va,d as Ve,e as $e,f as j,g as Ar,h as wa,i as _a,j as xa}from"./chunk-YQFG5XE2.js";var Bp=Ve((Wn,qn)=>{((i,e)=>{typeof define=="function"&&define.amd?define([],e):typeof qn=="object"&&typeof Wn<"u"?qn.exports=e():i.Papa=e()})(Wn,function i(){var e=typeof self<"u"?self:typeof window<"u"?window:e!==void 0?e:{},t,r=!e.document&&!!e.postMessage,o=e.IS_PAPA_WORKER||!1,a={},n=0,s={};function l(b){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(v){var P=oe(v);P.chunkSize=parseInt(P.chunkSize),v.step||v.chunk||(P.chunkSize=null),this._handle=new C(P),(this._handle.streamer=this)._config=P}.call(this,b),this.parseChunk=function(v,P){var M=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<M){let K=this._config.newline;K||(H=this._config.quoteChar||'"',K=this._handle.guessLineEndings(v,H)),v=[...v.split(K).slice(M)].join(K)}this.isFirstChunk&&le(this._config.beforeFirstChunk)&&(H=this._config.beforeFirstChunk(v))!==void 0&&(v=H),this.isFirstChunk=!1,this._halted=!1;var M=this._partialLine+v,H=(this._partialLine="",this._handle.parse(M,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(v=H.meta.cursor,M=(this._finished||(this._partialLine=M.substring(v-this._baseIndex),this._baseIndex=v),H&&H.data&&(this._rowCount+=H.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),o)e.postMessage({results:H,workerId:s.WORKER_ID,finished:M});else if(le(this._config.chunk)&&!P){if(this._config.chunk(H,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=H=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(H.data),this._completeResults.errors=this._completeResults.errors.concat(H.errors),this._completeResults.meta=H.meta),this._completed||!M||!le(this._config.complete)||H&&H.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),M||H&&H.meta.paused||this._nextChunk(),H}this._halted=!0},this._sendError=function(v){le(this._config.error)?this._config.error(v):o&&this._config.error&&e.postMessage({workerId:s.WORKER_ID,error:v,finished:!1})}}function d(b){var v;(b=b||{}).chunkSize||(b.chunkSize=s.RemoteChunkSize),l.call(this,b),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(P){this._input=P,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(v=new XMLHttpRequest,this._config.withCredentials&&(v.withCredentials=this._config.withCredentials),r||(v.onload=ue(this._chunkLoaded,this),v.onerror=ue(this._chunkError,this)),v.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var P,M=this._config.downloadRequestHeaders;for(P in M)v.setRequestHeader(P,M[P])}var H;this._config.chunkSize&&(H=this._start+this._config.chunkSize-1,v.setRequestHeader("Range","bytes="+this._start+"-"+H));try{v.send(this._config.downloadRequestBody)}catch(K){this._chunkError(K.message)}r&&v.status===0&&this._chunkError()}},this._chunkLoaded=function(){v.readyState===4&&(v.status<200||400<=v.status?this._chunkError():(this._start+=this._config.chunkSize||v.responseText.length,this._finished=!this._config.chunkSize||this._start>=(P=>(P=P.getResponseHeader("Content-Range"))!==null?parseInt(P.substring(P.lastIndexOf("/")+1)):-1)(v),this.parseChunk(v.responseText)))},this._chunkError=function(P){P=v.statusText||P,this._sendError(new Error(P))}}function m(b){(b=b||{}).chunkSize||(b.chunkSize=s.LocalChunkSize),l.call(this,b);var v,P,M=typeof FileReader<"u";this.stream=function(H){this._input=H,P=H.slice||H.webkitSlice||H.mozSlice,M?((v=new FileReader).onload=ue(this._chunkLoaded,this),v.onerror=ue(this._chunkError,this)):v=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var H=this._input,K=(this._config.chunkSize&&(K=Math.min(this._start+this._config.chunkSize,this._input.size),H=P.call(H,this._start,K)),v.readAsText(H,this._config.encoding));M||this._chunkLoaded({target:{result:K}})},this._chunkLoaded=function(H){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(H.target.result)},this._chunkError=function(){this._sendError(v.error)}}function f(b){var v;l.call(this,b=b||{}),this.stream=function(P){return v=P,this._nextChunk()},this._nextChunk=function(){var P,M;if(!this._finished)return P=this._config.chunkSize,v=P?(M=v.substring(0,P),v.substring(P)):(M=v,""),this._finished=!v,this.parseChunk(M)}}function S(b){l.call(this,b=b||{});var v=[],P=!0,M=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(H){this._input=H,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){M&&v.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),v.length?this.parseChunk(v.shift()):P=!0},this._streamData=ue(function(H){try{v.push(typeof H=="string"?H:H.toString(this._config.encoding)),P&&(P=!1,this._checkIsFinished(),this.parseChunk(v.shift()))}catch(K){this._streamError(K)}},this),this._streamError=ue(function(H){this._streamCleanUp(),this._sendError(H)},this),this._streamEnd=ue(function(){this._streamCleanUp(),M=!0,this._streamData("")},this),this._streamCleanUp=ue(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function C(b){var v,P,M,H,K=Math.pow(2,53),ge=-K,Oe=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,je=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,me=this,Te=0,ae=0,ye=!1,fe=!1,be=[],ee={data:[],errors:[],meta:{}};function O(R){return b.skipEmptyLines==="greedy"?R.join("").trim()==="":R.length===1&&R[0].length===0}function F(){if(ee&&M&&(E("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),M=!1),b.skipEmptyLines&&(ee.data=ee.data.filter(function(Q){return!O(Q)})),D()){let Q=function(ie,ce){le(b.transformHeader)&&(ie=b.transformHeader(ie,ce)),be.push(ie)};var G=Q;if(ee)if(Array.isArray(ee.data[0])){for(var R=0;D()&&R<ee.data.length;R++)ee.data[R].forEach(Q);ee.data.splice(0,1)}else ee.data.forEach(Q)}function L(Q,ie){for(var ce=b.header?{}:[],pe=0;pe<Q.length;pe++){var ne=pe,Pe=Q[pe],Pe=((q,we)=>(xe=>(b.dynamicTypingFunction&&b.dynamicTyping[xe]===void 0&&(b.dynamicTyping[xe]=b.dynamicTypingFunction(xe)),(b.dynamicTyping[xe]||b.dynamicTyping)===!0))(q)?we==="true"||we==="TRUE"||we!=="false"&&we!=="FALSE"&&((xe=>{if(Oe.test(xe)&&(xe=parseFloat(xe),ge<xe&&xe<K))return 1})(we)?parseFloat(we):je.test(we)?new Date(we):we===""?null:we):we)(ne=b.header?pe>=be.length?"__parsed_extra":be[pe]:ne,Pe=b.transform?b.transform(Pe,ne):Pe);ne==="__parsed_extra"?(ce[ne]=ce[ne]||[],ce[ne].push(Pe)):ce[ne]=Pe}return b.header&&(pe>be.length?E("FieldMismatch","TooManyFields","Too many fields: expected "+be.length+" fields but parsed "+pe,ae+ie):pe<be.length&&E("FieldMismatch","TooFewFields","Too few fields: expected "+be.length+" fields but parsed "+pe,ae+ie)),ce}var de;ee&&(b.header||b.dynamicTyping||b.transform)&&(de=1,!ee.data.length||Array.isArray(ee.data[0])?(ee.data=ee.data.map(L),de=ee.data.length):ee.data=L(ee.data,0),b.header&&ee.meta&&(ee.meta.fields=be),ae+=de)}function D(){return b.header&&be.length===0}function E(R,L,de,G){R={type:R,code:L,message:de},G!==void 0&&(R.row=G),ee.errors.push(R)}le(b.step)&&(H=b.step,b.step=function(R){ee=R,D()?F():(F(),ee.data.length!==0&&(Te+=R.data.length,b.preview&&Te>b.preview?P.abort():(ee.data=ee.data[0],H(ee,me))))}),this.parse=function(R,L,de){var G=b.quoteChar||'"',G=(b.newline||(b.newline=this.guessLineEndings(R,G)),M=!1,b.delimiter?le(b.delimiter)&&(b.delimiter=b.delimiter(R),ee.meta.delimiter=b.delimiter):((G=((Q,ie,ce,pe,ne)=>{var Pe,q,we,xe;ne=ne||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var bt=0;bt<ne.length;bt++){for(var ht,It=ne[bt],Ne=0,nt=0,Le=0,We=(we=void 0,new Y({comments:pe,delimiter:It,newline:ie,preview:10}).parse(Q)),Me=0;Me<We.data.length;Me++)ce&&O(We.data[Me])?Le++:(ht=We.data[Me].length,nt+=ht,we===void 0?we=ht:0<ht&&(Ne+=Math.abs(ht-we),we=ht));0<We.data.length&&(nt/=We.data.length-Le),(q===void 0||Ne<=q)&&(xe===void 0||xe<nt)&&1.99<nt&&(q=Ne,Pe=It,xe=nt)}return{successful:!!(b.delimiter=Pe),bestDelimiter:Pe}})(R,b.newline,b.skipEmptyLines,b.comments,b.delimitersToGuess)).successful?b.delimiter=G.bestDelimiter:(M=!0,b.delimiter=s.DefaultDelimiter),ee.meta.delimiter=b.delimiter),oe(b));return b.preview&&b.header&&G.preview++,v=R,P=new Y(G),ee=P.parse(v,L,de),F(),ye?{meta:{paused:!0}}:ee||{meta:{paused:!1}}},this.paused=function(){return ye},this.pause=function(){ye=!0,P.abort(),v=le(b.chunk)?"":v.substring(P.getCharIndex())},this.resume=function(){me.streamer._halted?(ye=!1,me.streamer.parseChunk(v,!0)):setTimeout(me.resume,3)},this.aborted=function(){return fe},this.abort=function(){fe=!0,P.abort(),ee.meta.aborted=!0,le(b.complete)&&b.complete(ee),v=""},this.guessLineEndings=function(Q,G){Q=Q.substring(0,1048576);var G=new RegExp(B(G)+"([^]*?)"+B(G),"gm"),de=(Q=Q.replace(G,"")).split("\r"),G=Q.split(`
1
+ import{a as Aa}from"./chunk-BX74ZLQG.js";import{j as _p}from"./chunk-BDJHC5O6.js";import{a as jr,h as wp,p as xp,w as Cp}from"./chunk-LMI4DLB5.js";import{A as bp,C as Hn,Ea as vp,Ma as Lr,Na as Vi,Oa as Wi,Va as $r}from"./chunk-3GHEXAAZ.js";import{a as yp}from"./chunk-TDMJ2M6W.js";import{A as fp,E as mp,c as Ur,e as hp,f as ji,g as Da,h as Nr,m as Hi,n as Nn,r as gi,t as Ba,w as Ea}from"./chunk-DAQCANBV.js";import{c as gp,d as Ln,f as $n,h as jn}from"./chunk-F2X3VGZZ.js";import{Aa as ip,Ab as fi,Ac as or,Bc as Ta,Cb as se,Da as Pa,Ea as rp,Ec as dp,Ga as Or,Hc as cp,I as Jl,Jb as ze,Kb as N,Lb as Mr,Mb as ap,Mc as ho,Nb as np,Ob as ii,Pb as dt,Rb as Mn,Sb as zn,Tb as Rn,Ub as ve,Vb as Ce,Vc as Ut,Wb as Ae,Wc as Rr,Xb as Si,Yb as Pi,Zb as Kt,Zc as Un,_b as mi,ba as hi,bb as op,ca as Ca,cb as Fa,d as di,dc as Rt,ec as X,fc as sp,g as Ql,ga as Sa,gb as V,gc as lp,ha as Dt,jc as pt,kc as Ia,lc as Ke,mc as Qe,n as Zl,oa as ep,pa as Je,pc as pp,qa as et,qc as Bt,r as ci,ra as tp,rc as rr,sc as co,ta as ti,tc as up,wb as Yt,xb as ka,yc as zr,za as rt}from"./chunk-WCXWWANV.js";import{a as x,b as J,c as va,d as Ve,e as $e,f as j,g as Ar,h as wa,i as _a,j as xa}from"./chunk-YQFG5XE2.js";var Bp=Ve((Wn,qn)=>{((i,e)=>{typeof define=="function"&&define.amd?define([],e):typeof qn=="object"&&typeof Wn<"u"?qn.exports=e():i.Papa=e()})(Wn,function i(){var e=typeof self<"u"?self:typeof window<"u"?window:e!==void 0?e:{},t,r=!e.document&&!!e.postMessage,o=e.IS_PAPA_WORKER||!1,a={},n=0,s={};function l(b){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(v){var P=oe(v);P.chunkSize=parseInt(P.chunkSize),v.step||v.chunk||(P.chunkSize=null),this._handle=new C(P),(this._handle.streamer=this)._config=P}.call(this,b),this.parseChunk=function(v,P){var M=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<M){let K=this._config.newline;K||(H=this._config.quoteChar||'"',K=this._handle.guessLineEndings(v,H)),v=[...v.split(K).slice(M)].join(K)}this.isFirstChunk&&le(this._config.beforeFirstChunk)&&(H=this._config.beforeFirstChunk(v))!==void 0&&(v=H),this.isFirstChunk=!1,this._halted=!1;var M=this._partialLine+v,H=(this._partialLine="",this._handle.parse(M,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(v=H.meta.cursor,M=(this._finished||(this._partialLine=M.substring(v-this._baseIndex),this._baseIndex=v),H&&H.data&&(this._rowCount+=H.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),o)e.postMessage({results:H,workerId:s.WORKER_ID,finished:M});else if(le(this._config.chunk)&&!P){if(this._config.chunk(H,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=H=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(H.data),this._completeResults.errors=this._completeResults.errors.concat(H.errors),this._completeResults.meta=H.meta),this._completed||!M||!le(this._config.complete)||H&&H.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),M||H&&H.meta.paused||this._nextChunk(),H}this._halted=!0},this._sendError=function(v){le(this._config.error)?this._config.error(v):o&&this._config.error&&e.postMessage({workerId:s.WORKER_ID,error:v,finished:!1})}}function d(b){var v;(b=b||{}).chunkSize||(b.chunkSize=s.RemoteChunkSize),l.call(this,b),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(P){this._input=P,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(v=new XMLHttpRequest,this._config.withCredentials&&(v.withCredentials=this._config.withCredentials),r||(v.onload=ue(this._chunkLoaded,this),v.onerror=ue(this._chunkError,this)),v.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var P,M=this._config.downloadRequestHeaders;for(P in M)v.setRequestHeader(P,M[P])}var H;this._config.chunkSize&&(H=this._start+this._config.chunkSize-1,v.setRequestHeader("Range","bytes="+this._start+"-"+H));try{v.send(this._config.downloadRequestBody)}catch(K){this._chunkError(K.message)}r&&v.status===0&&this._chunkError()}},this._chunkLoaded=function(){v.readyState===4&&(v.status<200||400<=v.status?this._chunkError():(this._start+=this._config.chunkSize||v.responseText.length,this._finished=!this._config.chunkSize||this._start>=(P=>(P=P.getResponseHeader("Content-Range"))!==null?parseInt(P.substring(P.lastIndexOf("/")+1)):-1)(v),this.parseChunk(v.responseText)))},this._chunkError=function(P){P=v.statusText||P,this._sendError(new Error(P))}}function m(b){(b=b||{}).chunkSize||(b.chunkSize=s.LocalChunkSize),l.call(this,b);var v,P,M=typeof FileReader<"u";this.stream=function(H){this._input=H,P=H.slice||H.webkitSlice||H.mozSlice,M?((v=new FileReader).onload=ue(this._chunkLoaded,this),v.onerror=ue(this._chunkError,this)):v=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var H=this._input,K=(this._config.chunkSize&&(K=Math.min(this._start+this._config.chunkSize,this._input.size),H=P.call(H,this._start,K)),v.readAsText(H,this._config.encoding));M||this._chunkLoaded({target:{result:K}})},this._chunkLoaded=function(H){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(H.target.result)},this._chunkError=function(){this._sendError(v.error)}}function f(b){var v;l.call(this,b=b||{}),this.stream=function(P){return v=P,this._nextChunk()},this._nextChunk=function(){var P,M;if(!this._finished)return P=this._config.chunkSize,v=P?(M=v.substring(0,P),v.substring(P)):(M=v,""),this._finished=!v,this.parseChunk(M)}}function S(b){l.call(this,b=b||{});var v=[],P=!0,M=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(H){this._input=H,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){M&&v.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),v.length?this.parseChunk(v.shift()):P=!0},this._streamData=ue(function(H){try{v.push(typeof H=="string"?H:H.toString(this._config.encoding)),P&&(P=!1,this._checkIsFinished(),this.parseChunk(v.shift()))}catch(K){this._streamError(K)}},this),this._streamError=ue(function(H){this._streamCleanUp(),this._sendError(H)},this),this._streamEnd=ue(function(){this._streamCleanUp(),M=!0,this._streamData("")},this),this._streamCleanUp=ue(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function C(b){var v,P,M,H,K=Math.pow(2,53),ge=-K,Oe=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,je=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,me=this,Te=0,ae=0,ye=!1,fe=!1,be=[],ee={data:[],errors:[],meta:{}};function O(R){return b.skipEmptyLines==="greedy"?R.join("").trim()==="":R.length===1&&R[0].length===0}function F(){if(ee&&M&&(E("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),M=!1),b.skipEmptyLines&&(ee.data=ee.data.filter(function(Q){return!O(Q)})),D()){let Q=function(ie,ce){le(b.transformHeader)&&(ie=b.transformHeader(ie,ce)),be.push(ie)};var G=Q;if(ee)if(Array.isArray(ee.data[0])){for(var R=0;D()&&R<ee.data.length;R++)ee.data[R].forEach(Q);ee.data.splice(0,1)}else ee.data.forEach(Q)}function L(Q,ie){for(var ce=b.header?{}:[],pe=0;pe<Q.length;pe++){var ne=pe,Pe=Q[pe],Pe=((q,we)=>(xe=>(b.dynamicTypingFunction&&b.dynamicTyping[xe]===void 0&&(b.dynamicTyping[xe]=b.dynamicTypingFunction(xe)),(b.dynamicTyping[xe]||b.dynamicTyping)===!0))(q)?we==="true"||we==="TRUE"||we!=="false"&&we!=="FALSE"&&((xe=>{if(Oe.test(xe)&&(xe=parseFloat(xe),ge<xe&&xe<K))return 1})(we)?parseFloat(we):je.test(we)?new Date(we):we===""?null:we):we)(ne=b.header?pe>=be.length?"__parsed_extra":be[pe]:ne,Pe=b.transform?b.transform(Pe,ne):Pe);ne==="__parsed_extra"?(ce[ne]=ce[ne]||[],ce[ne].push(Pe)):ce[ne]=Pe}return b.header&&(pe>be.length?E("FieldMismatch","TooManyFields","Too many fields: expected "+be.length+" fields but parsed "+pe,ae+ie):pe<be.length&&E("FieldMismatch","TooFewFields","Too few fields: expected "+be.length+" fields but parsed "+pe,ae+ie)),ce}var de;ee&&(b.header||b.dynamicTyping||b.transform)&&(de=1,!ee.data.length||Array.isArray(ee.data[0])?(ee.data=ee.data.map(L),de=ee.data.length):ee.data=L(ee.data,0),b.header&&ee.meta&&(ee.meta.fields=be),ae+=de)}function D(){return b.header&&be.length===0}function E(R,L,de,G){R={type:R,code:L,message:de},G!==void 0&&(R.row=G),ee.errors.push(R)}le(b.step)&&(H=b.step,b.step=function(R){ee=R,D()?F():(F(),ee.data.length!==0&&(Te+=R.data.length,b.preview&&Te>b.preview?P.abort():(ee.data=ee.data[0],H(ee,me))))}),this.parse=function(R,L,de){var G=b.quoteChar||'"',G=(b.newline||(b.newline=this.guessLineEndings(R,G)),M=!1,b.delimiter?le(b.delimiter)&&(b.delimiter=b.delimiter(R),ee.meta.delimiter=b.delimiter):((G=((Q,ie,ce,pe,ne)=>{var Pe,q,we,xe;ne=ne||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var bt=0;bt<ne.length;bt++){for(var ht,It=ne[bt],Ne=0,nt=0,Le=0,We=(we=void 0,new Y({comments:pe,delimiter:It,newline:ie,preview:10}).parse(Q)),Me=0;Me<We.data.length;Me++)ce&&O(We.data[Me])?Le++:(ht=We.data[Me].length,nt+=ht,we===void 0?we=ht:0<ht&&(Ne+=Math.abs(ht-we),we=ht));0<We.data.length&&(nt/=We.data.length-Le),(q===void 0||Ne<=q)&&(xe===void 0||xe<nt)&&1.99<nt&&(q=Ne,Pe=It,xe=nt)}return{successful:!!(b.delimiter=Pe),bestDelimiter:Pe}})(R,b.newline,b.skipEmptyLines,b.comments,b.delimitersToGuess)).successful?b.delimiter=G.bestDelimiter:(M=!0,b.delimiter=s.DefaultDelimiter),ee.meta.delimiter=b.delimiter),oe(b));return b.preview&&b.header&&G.preview++,v=R,P=new Y(G),ee=P.parse(v,L,de),F(),ye?{meta:{paused:!0}}:ee||{meta:{paused:!1}}},this.paused=function(){return ye},this.pause=function(){ye=!0,P.abort(),v=le(b.chunk)?"":v.substring(P.getCharIndex())},this.resume=function(){me.streamer._halted?(ye=!1,me.streamer.parseChunk(v,!0)):setTimeout(me.resume,3)},this.aborted=function(){return fe},this.abort=function(){fe=!0,P.abort(),ee.meta.aborted=!0,le(b.complete)&&b.complete(ee),v=""},this.guessLineEndings=function(Q,G){Q=Q.substring(0,1048576);var G=new RegExp(B(G)+"([^]*?)"+B(G),"gm"),de=(Q=Q.replace(G,"")).split("\r"),G=Q.split(`
2
2
  `),Q=1<G.length&&G[0].length<de[0].length;if(de.length===1||Q)return`
3
3
  `;for(var ie=0,ce=0;ce<de.length;ce++)de[ce][0]===`
4
4
  `&&ie++;return ie>=de.length/2?`\r