dealposbooks 1.9.2 → 1.9.4

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 (135) hide show
  1. package/3rdpartylicenses.txt +757 -56
  2. package/assets/scss/components/_navbar.scss +2 -2
  3. package/assets/scss/components/_scafholdings.scss +21 -17
  4. package/assets/scss/layouts/_sidebar.scss +2 -3
  5. package/assets/scss/style.scss +57 -11
  6. package/assets/scss/variables/_variables.scss +3 -3
  7. package/{chunk-63XPN7AG.js → chunk-25XKSUYX.js} +1 -1
  8. package/chunk-2TUOAI22.js +1 -0
  9. package/chunk-3IHOEH5O.js +1 -0
  10. package/chunk-3VC2KAML.js +1 -0
  11. package/{chunk-VET2QT6C.js → chunk-4FK4QI2U.js} +1 -1
  12. package/{chunk-5MHVGNVO.js → chunk-4J3EFT67.js} +1 -1
  13. package/{chunk-PZRWSIXN.js → chunk-56MVOUHH.js} +1 -1
  14. package/{chunk-OBBJFGOA.js → chunk-5OU7ECCN.js} +1 -1
  15. package/{chunk-W5VZK5LZ.js → chunk-5OXHRN43.js} +2 -2
  16. package/chunk-5QMHSLSU.js +297 -0
  17. package/{chunk-M66SFDOI.js → chunk-6J5S4UPN.js} +1 -1
  18. package/{chunk-HBVENULS.js → chunk-7DRL5PZZ.js} +1 -1
  19. package/chunk-7GT5MR57.js +1 -0
  20. package/{chunk-KOC7QQ5A.js → chunk-7LCGNNCW.js} +1 -1
  21. package/chunk-7NXTCJMX.js +1 -0
  22. package/chunk-7PDAUPWN.js +328 -0
  23. package/{chunk-OVUTH3B6.js → chunk-7TKATLB4.js} +1 -1
  24. package/{chunk-XFW6LFAM.js → chunk-7XAJOA36.js} +1 -1
  25. package/chunk-A3NY5EYN.js +1 -0
  26. package/chunk-AH5PA2TO.js +1 -0
  27. package/{chunk-FJ7IM55X.js → chunk-AM66YD6C.js} +1 -1
  28. package/{chunk-4FHVIHSY.js → chunk-B4COOFJS.js} +1 -1
  29. package/{chunk-PAQGWJ3J.js → chunk-BGDKOH3U.js} +1 -1
  30. package/chunk-BJGK47CG.js +1 -0
  31. package/chunk-BWS6U7BM.js +193 -0
  32. package/chunk-D5AXB5DE.js +7 -0
  33. package/chunk-D5RQBZNF.js +1 -0
  34. package/chunk-DELPZQZH.js +246 -0
  35. package/chunk-DJUGUNXR.js +503 -0
  36. package/chunk-DSFIM36S.js +1 -0
  37. package/chunk-EHCALTHK.js +1 -0
  38. package/{chunk-OPNWLQQY.js → chunk-F7TF7ASR.js} +1 -1
  39. package/{chunk-GYOO2JKC.js → chunk-FCGAJLPQ.js} +1 -1
  40. package/{chunk-Z5SFK23M.js → chunk-FUGCJNGU.js} +11 -11
  41. package/{chunk-EDPSZYHH.js → chunk-GMLRRSMP.js} +1 -1
  42. package/chunk-HDO45X7Q.js +1 -0
  43. package/{chunk-Q3HG4BLC.js → chunk-HPKZYS2A.js} +2 -2
  44. package/chunk-IACJNRVA.js +25 -0
  45. package/chunk-IQZ2MKLS.js +1 -0
  46. package/{chunk-V4MEQMDJ.js → chunk-ITIRJVUS.js} +3 -3
  47. package/chunk-IXPPR5MV.js +1 -0
  48. package/chunk-J3B5HVW4.js +1 -0
  49. package/chunk-JQ4DHNFQ.js +67 -0
  50. package/{chunk-JBLYOAVS.js → chunk-JRYP3YPK.js} +1 -1
  51. package/chunk-KQAMA66M.js +2 -0
  52. package/chunk-L6VKOTIV.js +180 -0
  53. package/chunk-LATJGOV3.js +185 -0
  54. package/chunk-LFGL4ACG.css +1 -0
  55. package/chunk-LLV6TGMT.js +1 -0
  56. package/chunk-MNCUT4L4.js +1 -0
  57. package/chunk-NBRL2K4H.js +1 -0
  58. package/chunk-NDOZ5YES.js +1 -0
  59. package/{chunk-WLFERE5C.js → chunk-NL5IYBHF.js} +1 -1
  60. package/chunk-NRULEUE7.js +1 -0
  61. package/{chunk-7CAU344O.js → chunk-R6HGHSPM.js} +1 -1
  62. package/chunk-SCEMI63T.js +1 -0
  63. package/chunk-SDTMCYSJ.js +1 -0
  64. package/{chunk-GO3ETPB7.js → chunk-T2A6NORZ.js} +1 -1
  65. package/chunk-TDX2HSWE.js +1 -0
  66. package/chunk-UHVZAFKN.js +1 -0
  67. package/{chunk-DERWDCI5.js → chunk-UMYCPFK5.js} +19 -19
  68. package/chunk-UOAJWMSO.js +1 -0
  69. package/{chunk-W56XJVPD.js → chunk-UZCNPNT7.js} +1 -1
  70. package/{chunk-5CZUTVXD.js → chunk-VF7TG32T.js} +1 -1
  71. package/chunk-VI3AV775.js +1 -0
  72. package/chunk-VK5TK23W.js +7 -0
  73. package/{chunk-4EDEITTK.js → chunk-VKO43FOT.js} +1 -1
  74. package/chunk-VNHXLUHA.js +1 -0
  75. package/{chunk-ELUESCCC.js → chunk-W6UD5NO5.js} +1 -1
  76. package/chunk-WUGCCSIP.js +1 -0
  77. package/chunk-X234EQET.js +129 -0
  78. package/{chunk-FOSJHYSQ.js → chunk-X3FQFXUZ.js} +3 -3
  79. package/{chunk-HKFTHGN6.js → chunk-XEATX3IC.js} +1 -1
  80. package/chunk-XJ5BSLZV.js +1 -0
  81. package/{chunk-CCE4VMYO.js → chunk-XMZ7ADZB.js} +1 -1
  82. package/chunk-YAKYBQQ6.js +1 -0
  83. package/chunk-YQFG5XE2.js +1 -0
  84. package/chunk-YQRWSN5V.js +1 -0
  85. package/{chunk-JWPV2SP2.js → chunk-ZKXT6RSI.js} +1 -1
  86. package/index.html +2 -2
  87. package/main-VQYYYR67.js +1 -0
  88. package/main-YYIZ54AR.css +1 -0
  89. package/package.json +1 -1
  90. package/styles-IDKYTRGA.css +1 -0
  91. package/chunk-2GAPYNNZ.js +0 -1
  92. package/chunk-2HYLQR56.js +0 -1
  93. package/chunk-2VTAWSHV.js +0 -1
  94. package/chunk-3R4UQAEP.js +0 -1
  95. package/chunk-3SPHZLLV.js +0 -301
  96. package/chunk-4OHRBQE4.js +0 -1
  97. package/chunk-4OXMK44M.js +0 -1
  98. package/chunk-4TTJBC5I.js +0 -1
  99. package/chunk-5M3BH2HK.js +0 -1
  100. package/chunk-74EMBNLM.js +0 -1
  101. package/chunk-75NY4EHJ.js +0 -7
  102. package/chunk-BS6MB7HD.js +0 -1
  103. package/chunk-C54Z7Z3J.js +0 -246
  104. package/chunk-CP57YBBI.js +0 -2
  105. package/chunk-DCES5UJV.js +0 -1
  106. package/chunk-EQDQRRRY.js +0 -1
  107. package/chunk-FNWWNWQP.js +0 -1
  108. package/chunk-GH3BVHFE.js +0 -1
  109. package/chunk-GYI6FJNZ.js +0 -1
  110. package/chunk-HF7H6NPN.js +0 -1
  111. package/chunk-HGUXJRBI.js +0 -1
  112. package/chunk-JDKSRPMM.js +0 -1
  113. package/chunk-K5GIEJY3.js +0 -7
  114. package/chunk-MOGY4H6O.js +0 -1
  115. package/chunk-OUJ6CGAI.js +0 -193
  116. package/chunk-OWUXXKGD.js +0 -180
  117. package/chunk-PCZW753D.js +0 -1
  118. package/chunk-PMQ7L7VQ.js +0 -1
  119. package/chunk-PRVKVHZC.js +0 -1
  120. package/chunk-QEQCMTMU.js +0 -1
  121. package/chunk-QMXENXYW.js +0 -1
  122. package/chunk-R4CV5F66.js +0 -1
  123. package/chunk-RJZW77TO.js +0 -1
  124. package/chunk-S6JRFIGG.js +0 -1
  125. package/chunk-TO47DVWB.js +0 -67
  126. package/chunk-UHDEQNDX.js +0 -1
  127. package/chunk-VHNXAKFS.js +0 -1
  128. package/chunk-W37QK7Z5.js +0 -520
  129. package/chunk-WF2ZEF5P.js +0 -1
  130. package/chunk-WZ5MSCDB.js +0 -1
  131. package/chunk-YAEJRHVD.js +0 -1
  132. package/chunk-ZQKGNYP5.js +0 -297
  133. package/chunk-ZZNYX7MX.js +0 -1
  134. package/main-G22CDQKS.js +0 -1
  135. package/styles-ETBLCGC3.css +0 -1
package/chunk-QEQCMTMU.js DELETED
@@ -1 +0,0 @@
1
- import{b as Ce}from"./chunk-63XPN7AG.js";import{a as F,b as A}from"./chunk-PZRWSIXN.js";import{h as L,j as he,k as xe,l as z}from"./chunk-DERWDCI5.js";import"./chunk-FOSJHYSQ.js";import"./chunk-OVUTH3B6.js";import"./chunk-JWPV2SP2.js";import{c as H,d as O}from"./chunk-5CZUTVXD.js";import{b as ge}from"./chunk-OPNWLQQY.js";import{g as j}from"./chunk-OWUXXKGD.js";import"./chunk-W5VZK5LZ.js";import{a as R,b as se,c as de,d as ue,e as _e,f as fe}from"./chunk-FJ7IM55X.js";import{C as N,D as V,u as me}from"./chunk-Z5SFK23M.js";import{v as ie}from"./chunk-R4CV5F66.js";import"./chunk-ZZNYX7MX.js";import"./chunk-OUJ6CGAI.js";import{a as pe,d as ce}from"./chunk-FNWWNWQP.js";import"./chunk-F2X3VGZZ.js";import{c as ae,e as oe,p as re,w as le}from"./chunk-CP57YBBI.js";import{m as te,r as ne,s as D,t as B}from"./chunk-DCES5UJV.js";import{Ab as C,Fa as G,Ic as v,J as q,Jc as y,Kb as b,Kc as ee,Lc as u,Nb as P,Ub as o,Vb as i,Wb as I,X as Q,Xc as S,Z as W,_b as w,ba as X,c as M,dc as T,ec as d,fb as m,ha as f,pa as h,pc as r,qa as x,qc as _,s as K,tc as J,ub as k,xc as Y,yc as U,zc as Z}from"./chunk-K5GIEJY3.js";import{a as c,b as s}from"./chunk-EQDQRRRY.js";var E=(()=>{class t{constructor(){this.httpService=f(ce)}getGenerateCoa(e){let n={params:new ae().set("PageNumber",e.PageNumber).set("RowCount",e.RowCount)};return this.httpService.get(void 0,"api/Tools/GetListCOA",n)}updateCOABalance(e={}){return this.httpService.put(void 0,"api/Tools/UpdateCOABalance",void 0,e)}getUnbalanceJournal(e){return this.httpService.get(void 0,"api/Tools/UnbalnaceJurnal/"+e.PageNumber+"/"+e.RowCount)}updateUnbalanceJournal(){return this.httpService.put(void 0,"api/Tools/UpdateCOABalance",{})}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ue=()=>({height:"calc(100vh - 70px)"}),ye=()=>({"min-width":"50rem"});function Me(t,p){if(t&1){let e=w();o(0,"p-button",7),T("onClick",function(){h(e);let n=d();return x(n.updateCoaBalance())}),i()}}function ke(t,p){t&1&&(o(0,"tr")(1,"th"),r(2,"Code"),i(),o(3,"th"),r(4,"Name"),i(),o(5,"th"),r(6,"Outlet"),i(),o(7,"th"),r(8,"COA Balance"),i(),o(9,"th"),r(10,"Correct Balance"),i()())}function Pe(t,p){if(t&1&&(o(0,"tr")(1,"td"),r(2),i(),o(3,"td"),r(4),i(),o(5,"td"),r(6),i(),o(7,"td"),r(8),v(9,"number"),i(),o(10,"td"),r(11),v(12,"number"),i()()),t&2){let e=p.$implicit;m(2),_(e.Code),m(2),_(e.Name),m(2),_(e.OutletName),m(2),_(y(9,5,e.Balance)),m(3),_(y(12,7,e.CorrectBalance))}}function Ie(t,p){if(t&1&&(o(0,"div",9)(1,"p"),r(2),i()()),t&2){let e=d(2);m(2),J(" Showing ",e.startIndex()," to ",e.endIndex()," of ",e.coaData().count," entries ")}}function Je(t,p){t&1&&(o(0,"tr")(1,"td",10)(2,"span"),r(3,"No records found."),i()()())}function De(t,p){if(t&1){let e=w();o(0,"p-panel")(1,"p-table",8),T("onPage",function(n){h(e);let l=d();return x(l.onPageChange(n))}),C(2,ke,11,0,"ng-template",null,2,u)(4,Pe,13,9,"ng-template",null,3,u)(6,Ie,3,3,"ng-template",null,4,u)(8,Je,4,0,"ng-template",null,5,u),i()()}if(t&2){let e=d();P(U(10,Ue)),m(),b("paginator",!0)("lazy",!0)("totalRecords",e.coaData().count)("scrollable",!0)("scrollHeight","calc(100vh - 150px)")("rows",e.pagination().RowCount)("value",e.coaData().data)("tableStyle",U(11,ye))}}var Se=(()=>{class t{constructor(){this.pagination=G({PageNumber:1,RowCount:20}),this.coaService=f(E),this.toastrService=f(pe),this.coaData=G(null),this.fetchCoaData=F(M(q(e=>this.coaService.getGenerateCoa(e).pipe(A({next:a=>this.coaData.set(a),error:a=>console.error(a)}))))),this.startIndex=S(()=>this.pagination()?(this.pagination().PageNumber-1)*this.pagination().RowCount+1:0),this.endIndex=S(()=>this.pagination()?Math.min(this.pagination().PageNumber*this.pagination().RowCount,this.coaData()?.count||0):0)}ngOnInit(){this.fetchCoaData(this.pagination)}onPageChange(e){this.pagination.update(a=>s(c({},a),{PageNumber:Math.floor(e.first/e.rows)+1}))}updateCoaBalance(){this.coaService.updateCOABalance({observe:"response"}).pipe(W(e=>{e instanceof oe&&this.toastrService.success(e.body?.message,"Success")})).subscribe()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-tools-update-coa"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Generate COA"],["label","Update",3,"onClick"],[3,"onPage","paginator","lazy","totalRecords","scrollable","scrollHeight","rows","value","tableStyle"],[1,"d-flex"],["colspan","5"]],template:function(a,n){a&1&&(o(0,"app-main-panel",6),C(1,Me,1,0,"ng-template",null,0,u)(3,De,10,12,"ng-template",null,1,u),i())},dependencies:[j,z,L,ge,B,D,V,N,O,H],styles:["[_nghost-%COMP%]{display:block} .p-card{height:100%} .p-card .p-card-body{height:inherit} .p-card .p-card-body .p-card-content{height:inherit}"],changeDetection:0})}}return t})();var Be={data:{count:0,data:[]},filter:{PageNumber:1,RowCount:20}},$=se(fe(Be),de(t=>({first:S(()=>(t.filter().PageNumber-1)*t.filter().RowCount+1),end:S(()=>Math.min(t.filter().PageNumber*t.filter().RowCount,t.data().count)),hasCheckedRows:S(()=>t.data().data.some(p=>p.checked))})),_e(t=>{let p=f(E);return{updateFilter(a){R(t,n=>s(c({},n),{filter:c(c({},n.filter),a)}))},onRowSelect(a){R(t,n=>{let l=n.data.data.map(g=>g.Code===a.Code?s(c({},g),{checked:!0}):g);return s(c({},n),{data:s(c({},n.data),{data:l})})})},onRowUnselect(a){R(t,n=>{let l=n.data.data.map(g=>g.Code===a.Code?s(c({},g),{checked:!1}):g);return s(c({},n),{data:s(c({},n.data),{data:l})})})},onHeaderCheckboxToggle(a){R(t,n=>{let l=n.data.data.map(g=>s(c({},g),{checked:a}));return s(c({},n),{data:s(c({},n.data),{data:l})})})},loadData:F(M(Q(a=>p.getUnbalanceJournal(a).pipe(K(n=>s(c({},n),{data:n.data.map(l=>s(c({},l),{checked:!1}))})),A({next:n=>{R(t,l=>s(c({},l),{data:n}))},error:n=>{console.error("Error loading unbalance journal data:",n)}})))))}}),ue(t=>({onInit:()=>{t.loadData(t.filter)}})));var Ne=()=>({height:"calc(100vh - 70px)"}),Ve=t=>["/journal/journal-entry",t];function He(t,p){if(t&1){let e=w();o(0,"div",8),I(1,"p-button",9),o(2,"p-button",10),T("onClick",function(){h(e);let n=d(2);return x(n.regenerateUnbalanceJournal())}),r(3,"Regenerate"),i()()}}function Oe(t,p){if(t&1&&C(0,He,4,0,"div",7),t&2){let e=d();b("ngIf",e.store.hasCheckedRows())}}function je(t,p){t&1&&(o(0,"tr")(1,"th",12),I(2,"p-tableHeaderCheckbox"),i(),o(3,"th"),r(4,"Date"),i(),o(5,"th"),r(6,"Number"),i(),o(7,"th",13),r(8,"Difference"),i(),o(9,"th"),r(10,"Reference"),i(),o(11,"th"),r(12,"Outlet"),i()())}function Fe(t,p){if(t&1&&(o(0,"tr")(1,"td"),I(2,"p-tableCheckbox",14),i(),o(3,"td"),r(4),v(5,"date"),i(),o(6,"td")(7,"a",15),r(8),i()(),o(9,"td",13),r(10),v(11,"number"),i(),o(12,"td"),r(13),i(),o(14,"td"),r(15),i()()),t&2){let e=p.$implicit;m(2),b("value",e),m(2),_(ee(5,7,e.date,"dd MMM yyyy")),m(3),b("routerLink",Z(12,Ve,e.id)),m(),_(e.number),m(2),_(y(11,10,e.differences)),m(3),_(e.referenceText),m(2),_(e.outletName)}}function Ae(t,p){if(t&1&&r(0),t&2){let e=d(2);J(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().count," entries ")}}function Le(t,p){t&1&&(o(0,"tr")(1,"td",16)(2,"span"),r(3,"No records found."),i()()())}function ze(t,p){if(t&1){let e=w();o(0,"p-panel")(1,"p-table",11),T("onPage",function(n){h(e);let l=d();return x(l.onPageChange(n))})("onRowSelect",function(n){h(e);let l=d();return x(l.onRowSelect(n))})("onRowUnselect",function(n){h(e);let l=d();return x(l.onRowUnselect(n))})("onHeaderCheckboxToggle",function(n){h(e);let l=d();return x(l.onHeaderCheckboxToggle(n))}),C(2,je,13,0,"ng-template",null,2,u)(4,Fe,16,14,"ng-template",null,3,u)(6,Ae,1,3,"ng-template",null,4,u)(8,Le,4,0,"ng-template",null,5,u),i()()}if(t&2){let e=d();P(U(9,Ne)),m(),b("value",e.store.data().data)("scrollable",!0)("lazy",!0)("scrollHeight","calc(100vh - 150px)")("paginator",!0)("rows",e.store.filter().RowCount)("totalRecords",e.store.data().count)}}var we=(()=>{class t{constructor(){this.store=f($),this.toolsService=f(E)}onPageChange(e){console.log("Page changed:",e);let a=e.first/e.rows;this.store.updateFilter({PageNumber:a+1})}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(a=>{this.store.onRowUnselect(a)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}regenerateUnbalanceJournal(){this.toolsService.updateUnbalanceJournal().subscribe()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-unbalance-journal"]],features:[Y([$])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Unbalance Journal"],["class","d-flex gap-2",4,"ngIf"],[1,"d-flex","gap-2"],["icon","fa-solid fa-trash","label","Delete","variant","outlined","severity","danger"],[3,"onClick"],["paginatorStyleClass","d-flex justify-content-end","dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","scrollable","lazy","scrollHeight","paginator","rows","totalRecords"],[2,"width","4rem"],[1,"text-end"],[3,"value"],["target","_blank",1,"link","link-primary",3,"routerLink"],["colspan","6"]],template:function(a,n){a&1&&(o(0,"app-main-panel",6),C(1,Oe,1,1,"ng-template",null,0,u)(3,ze,10,10,"ng-template",null,1,u),i())},dependencies:[j,z,L,he,xe,Ce,me,B,te,D,ne,ie,V,N,O,H,le,re],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ot=[{path:"",redirectTo:"generate-coa",pathMatch:"full"},{path:"generate-coa",component:Se},{path:"unbalance-journal",component:we}];export{Ot as TOOLS_ROUTES};
package/chunk-QMXENXYW.js DELETED
@@ -1 +0,0 @@
1
- import"./chunk-EQDQRRRY.js";var t=[{path:"",redirectTo:"tax-account",pathMatch:"full"},{path:"tax-account",loadComponent:()=>import("./chunk-JDKSRPMM.js").then(o=>o.TaxAccountComponent)},{path:"chart-of-account",loadComponent:()=>import("./chunk-BS6MB7HD.js").then(o=>o.ChartOfAccountComponent)},{path:"manual-journal",loadComponent:()=>import("./chunk-2HYLQR56.js").then(o=>o.ManualJournalComponent)},{path:"payment-account",loadComponent:()=>import("./chunk-WZ5MSCDB.js").then(o=>o.PaymentAccountComponent)},{path:"writeoff-outlet",loadComponent:()=>import("./chunk-PMQ7L7VQ.js").then(o=>o.WriteOffOutletComponent)},{path:"expense-account",loadComponent:()=>import("./chunk-MOGY4H6O.js").then(o=>o.ExpenseAccountComponent)},{path:"coa-configuration",loadComponent:()=>import("./chunk-RJZW77TO.js").then(o=>o.CoaConfigurationComponent)},{path:"coa-category",loadComponent:()=>import("./chunk-UHDEQNDX.js").then(o=>o.CoaCategoryComponent)},{path:"outlet-account",loadComponent:()=>import("./chunk-PCZW753D.js").then(o=>o.OutletAccountComponent)}];export{t as MIGRATE_ROUTES};
package/chunk-R4CV5F66.js DELETED
@@ -1 +0,0 @@
1
- import{b as le}from"./chunk-DCES5UJV.js";import{$ as F,Cb as Se,Da as ne,Fa as D,Jb as re,Mb as oe,Pc as Ie,Uc as ae,Wc as f,Xc as b,Yc as Oe,aa as g,ba as ee,ca as R,dc as se,ea as y,g as De,ha as j,i as be,kb as ie,l as Me,lb as s,na as Ee,oa as V,s as Ae,sa as S,ua as te,va as Fe,vb as T,wb as l,xc as p,y as we,ya as C,yb as d}from"./chunk-K5GIEJY3.js";import{a as u,b as h}from"./chunk-EQDQRRRY.js";var Ue=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||n)(s(ie),s(ne))};static \u0275dir=l({type:n})}return n})(),ct=(()=>{class n extends Ue{static \u0275fac=(()=>{let e;return function(r){return(e||(e=S(n)))(r||n)}})();static \u0275dir=l({type:n,features:[d]})}return n})(),Y=new y("");var ht={provide:Y,useExisting:g(()=>Be),multi:!0};function ft(){let n=le()?le().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var gt=new y(""),Be=(()=>{class n extends Ue{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!ft())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||n)(s(ie),s(ne),s(gt,8))};static \u0275dir=l({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&se("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[p([ht]),d]})}return n})();function ge(n){return n==null||pe(n)===0}function pe(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var v=new y(""),E=new y(""),pt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ne=class{static min(t){return mt(t)}static max(t){return _t(t)}static required(t){return He(t)}static requiredTrue(t){return vt(t)}static email(t){return yt(t)}static minLength(t){return Ct(t)}static maxLength(t){return Le(t)}static pattern(t){return Vt(t)}static nullValidator(t){return U()}static compose(t){return Xe(t)}static composeAsync(t){return Ke(t)}};function mt(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function _t(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function He(n){return ge(n.value)?{required:!0}:null}function vt(n){return n.value===!0?null:{required:!0}}function yt(n){return ge(n.value)||pt.test(n.value)?null:{email:!0}}function Ct(n){return t=>{let e=t.value?.length??pe(t.value);return e===null||e===0?null:e<n?{minlength:{requiredLength:n,actualLength:e}}:null}}function Le(n){return t=>{let e=t.value?.length??pe(t.value);return e!==null&&e>n?{maxlength:{requiredLength:n,actualLength:e}}:null}}function Vt(n){if(!n)return U;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(ge(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function U(n){return null}function $e(n){return n!=null}function We(n){return Se(n)?Me(n):n}function qe(n){let t={};return n.forEach(e=>{t=e!=null?u(u({},t),e):t}),Object.keys(t).length===0?null:t}function ze(n,t){return t.map(e=>e(n))}function Dt(n){return!n.validate}function Ze(n){return n.map(t=>Dt(t)?t:e=>t.validate(e))}function Xe(n){if(!n)return null;let t=n.filter($e);return t.length==0?null:function(e){return qe(ze(e,t))}}function Ye(n){return n!=null?Xe(Ze(n)):null}function Ke(n){if(!n)return null;let t=n.filter($e);return t.length==0?null:function(e){let i=ze(e,t).map(We);return we(i).pipe(Ae(qe))}}function Je(n){return n!=null?Ke(Ze(n)):null}function xe(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function Qe(n){return n._rawValidators}function et(n){return n._rawAsyncValidators}function ue(n){return n?Array.isArray(n)?n:[n]:[]}function B(n,t){return Array.isArray(n)?n.includes(t):n===t}function ke(n,t){let e=ue(t);return ue(n).forEach(r=>{B(e,r)||e.push(r)}),e}function Pe(n,t){return ue(t).filter(e=>!B(n,e))}var H=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Ye(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Je(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},c=class extends H{name;get formDirective(){return null}get path(){return null}},m=class extends H{_parent=null;name=null;valueAccessor=null},L=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},bt={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},_n=h(u({},bt),{"[class.ng-submitted]":"isSubmitted"}),vn=(()=>{class n extends L{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(s(m,2))};static \u0275dir=l({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&oe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[d]})}return n})(),yn=(()=>{class n extends L{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(s(c,10))};static \u0275dir=l({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&oe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[d]})}return n})();var I="VALID",G="INVALID",M="PENDING",O="DISABLED",_=class{},$=class extends _{value;source;constructor(t,e){super(),this.value=t,this.source=e}},N=class extends _{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e}},x=class extends _{touched;source;constructor(t,e){super(),this.touched=t,this.source=e}},A=class extends _{status;source;constructor(t,e){super(),this.status=t,this.source=e}},de=class extends _{source;constructor(t){super(),this.source=t}},ce=class extends _{source;constructor(t){super(),this.source=t}};function me(n){return(K(n)?n.validators:n)||null}function Mt(n){return Array.isArray(n)?Ye(n):n||null}function _e(n,t){return(K(t)?t.asyncValidators:n)||null}function At(n){return Array.isArray(n)?Je(n):n||null}function K(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function tt(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new F(1e3,"");if(!i[e])throw new F(1001,"")}function nt(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new F(1002,"")})}var w=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return f(this.statusReactive)}set status(t){f(()=>this.statusReactive.set(t))}_status=b(()=>this.statusReactive());statusReactive=D(void 0);get valid(){return this.status===I}get invalid(){return this.status===G}get pending(){return this.status==M}get disabled(){return this.status===O}get enabled(){return this.status!==O}errors;get pristine(){return f(this.pristineReactive)}set pristine(t){f(()=>this.pristineReactive.set(t))}_pristine=b(()=>this.pristineReactive());pristineReactive=D(!0);get dirty(){return!this.pristine}get touched(){return f(this.touchedReactive)}set touched(t){f(()=>this.touchedReactive.set(t))}_touched=b(()=>this.touchedReactive());touchedReactive=D(!1);get untouched(){return!this.touched}_events=new De;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(ke(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(ke(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Pe(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Pe(t,this._rawAsyncValidators))}hasValidator(t){return B(this._rawValidators,t)}hasAsyncValidator(t){return B(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(h(u({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new x(!0,i))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t))}markAsUntouched(t={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:i})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,i),e&&t.emitEvent!==!1&&this._events.next(new x(!1,i))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(h(u({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new N(!1,i))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,i),e&&t.emitEvent!==!1&&this._events.next(new N(!0,i))}markAsPending(t={}){this.status=M;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new A(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(h(u({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=O,this.errors=null,this._forEachChild(r=>{r.disable(h(u({},t),{onlySelf:!0}))}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new $(this.value,i)),this._events.next(new A(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(h(u({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=I,this._forEachChild(i=>{i.enable(h(u({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(h(u({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t,e){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===I||this.status===M)&&this._runAsyncValidator(i,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new $(this.value,e)),this._events.next(new A(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(h(u({},t),{sourceControl:e}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?O:I}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=M,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let i=We(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new A(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i)}_initObservables(){this.valueChanges=new C,this.statusChanges=new C}_calculateStatus(){return this._allControlsDisabled()?O:this.errors?G:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(M)?M:this._anyControlsHaveStatus(G)?G:I}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&this._events.next(new N(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new x(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){K(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Mt(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=At(this._rawAsyncValidators)}},W=class extends w{constructor(t,e,i){super(me(e),_e(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){nt(this,!0,t),Object.keys(t).forEach(i=>{tt(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var he=class extends W{};var P=new y("",{providedIn:"root",factory:()=>J}),J="always";function Q(n,t){return[...t.path,n]}function q(n,t,e=J){ve(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),Et(n,t),St(n,t),Ft(n,t),wt(n,t)}function z(n,t,e=!0){let i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),X(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Z(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function wt(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}function ve(n,t){let e=Qe(n);t.validator!==null?n.setValidators(xe(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=et(n);t.asyncValidator!==null?n.setAsyncValidators(xe(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();Z(t._rawValidators,r),Z(t._rawAsyncValidators,r)}function X(n,t){let e=!1;if(n!==null){if(t.validator!==null){let r=Qe(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(t.asyncValidator!==null){let r=et(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}let i=()=>{};return Z(t._rawValidators,i),Z(t._rawAsyncValidators,i),e}function Et(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&it(n,t)})}function Ft(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&it(n,t),n.updateOn!=="submit"&&n.markAsTouched()})}function it(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function St(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}function It(n,t){n==null,ve(n,t)}function Ot(n,t){return X(n,t)}function ye(n,t){if(!n.hasOwnProperty("model"))return!1;let e=n.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function Nt(n){return Object.getPrototypeOf(n.constructor)===ct}function xt(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Ce(n,t){if(!t)return null;Array.isArray(t);let e,i,r;return t.forEach(o=>{o.constructor===Be?e=o:Nt(o)?i=o:r=o}),r||i||e||null}function kt(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function Re(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function je(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var k=class extends w{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,e,i){super(me(e),_e(i,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),K(e)&&(e.nonNullable||e.initialValueIsDefault)&&(je(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Re(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Re(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){je(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Pt=n=>n instanceof k,Rt=(()=>{class n extends c{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Q(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return(e||(e=S(n)))(r||n)}})();static \u0275dir=l({type:n,standalone:!1,features:[d]})}return n})();var jt={provide:m,useExisting:g(()=>Tt)},Te=Promise.resolve(),Tt=(()=>{class n extends m{_changeDetectorRef;callSetDisabledState;control=new k;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new C;constructor(e,i,r,o,a,dt){super(),this._changeDetectorRef=a,this.callSetDisabledState=dt,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=Ce(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),ye(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){q(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){Te.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&ae(i);Te.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Q(e,this._parent):[e]}static \u0275fac=function(i){return new(i||n)(s(c,9),s(v,10),s(E,10),s(Y,10),s(Ie,8),s(P,8))};static \u0275dir=l({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[p([jt]),d,V]})}return n})();var Vn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=l({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return n})();var Ve=new y(""),Gt={provide:m,useExisting:g(()=>Ut)},Ut=(()=>{class n extends m{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new C;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=Ce(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&z(i,this,!1),q(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ye(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&z(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(i){return new(i||n)(s(v,10),s(E,10),s(Y,10),s(Ve,8),s(P,8))};static \u0275dir=l({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[p([Gt]),d,V]})}return n})(),Bt={provide:c,useExisting:g(()=>rt)},rt=(()=>{class n extends c{callSetDisabledState;get submitted(){return f(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=b(()=>this._submittedReactive());_submittedReactive=D(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new C;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(X(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return q(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){z(e.control||null,e,!1),kt(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),xt(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new de(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new ce(this.form))}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(z(i||null,e),Pt(r)&&(q(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);It(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&Ot(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ve(this.form,this),this._oldForm&&X(this._oldForm,this)}static \u0275fac=function(i){return new(i||n)(s(v,10),s(E,10),s(P,8))};static \u0275dir=l({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&se("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[p([Bt]),d,V]})}return n})(),Ht={provide:c,useExisting:g(()=>ot)},ot=(()=>{class n extends Rt{name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}_checkParentType(){at(this._parent)}static \u0275fac=function(i){return new(i||n)(s(c,13),s(v,10),s(E,10))};static \u0275dir=l({type:n,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[p([Ht]),d]})}return n})(),Lt={provide:c,useExisting:g(()=>st)},st=(()=>{class n extends c{_parent;name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}ngOnInit(){at(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Q(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(i){return new(i||n)(s(c,13),s(v,10),s(E,10))};static \u0275dir=l({type:n,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[p([Lt]),d]})}return n})();function at(n){return!(n instanceof ot)&&!(n instanceof rt)&&!(n instanceof st)}var $t={provide:m,useExisting:g(()=>Wt)},Wt=(()=>{class n extends m{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new C;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=Ce(this,o)}ngOnChanges(e){this._added||this._setUpControl(),ye(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Q(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(i){return new(i||n)(s(c,13),s(v,10),s(E,10),s(Y,10),s(Ve,8))};static \u0275dir=l({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[p([$t]),d,V]})}return n})();function qt(n){return typeof n=="number"?n:parseInt(n,10)}var lt=(()=>{class n{_validator=U;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):U,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||n)};static \u0275dir=l({type:n,features:[V]})}return n})();var zt={provide:v,useExisting:g(()=>Zt),multi:!0};var Zt=(()=>{class n extends lt{required;inputName="required";normalizeInput=ae;createValidator=e=>He;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=S(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&re("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[p([zt]),d]})}return n})();var Xt={provide:v,useExisting:g(()=>Yt),multi:!0},Yt=(()=>{class n extends lt{maxlength;inputName="maxlength";normalizeInput=e=>qt(e);createValidator=e=>Le(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=S(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&re("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[p([Xt]),d]})}return n})();var ut=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=T({type:n});static \u0275inj=R({})}return n})(),fe=class extends w{constructor(t,e,i){super(me(e),_e(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){nt(this,!1,t),t.forEach((i,r)=>{tt(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function Ge(n){return!!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var Kt=(()=>{class n{useNonNullable=!1;get nonNullable(){let e=new n;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return Ge(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new W(r,o)}record(e,i=null){let r=this._reduceControls(e);return new he(r,i)}control(e,i,r){let o={};return this.useNonNullable?(Ge(i)?o=i:(o.validators=i,o.asyncValidators=r),new k(e,h(u({},o),{nonNullable:!0}))):new k(e,i,r)}array(e,i,r){let o=e.map(a=>this._createControl(a));return new fe(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof k)return e;if(e instanceof w)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ee({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Dn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=ee({token:n,factory:()=>j(Kt).nonNullable,providedIn:"root"})}return n})();var bn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:P,useValue:e.callSetDisabledState??J}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=T({type:n});static \u0275inj=R({imports:[ut]})}return n})(),Mn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Ve,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:P,useValue:e.callSetDisabledState??J}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=T({type:n});static \u0275inj=R({imports:[ut]})}return n})();function Jt(n,t){!t?.injector&&Ee(Jt);let e=t?.injector??j(te),i=new be(1),r=Oe(()=>{let o;try{o=n()}catch(a){f(()=>i.error(a));return}f(()=>i.next(o))},{injector:e,manualCleanup:!0});return e.get(Fe).onDestroy(()=>{r.destroy(),i.complete()}),i.asObservable()}export{Y as a,Be as b,Ne as c,m as d,vn as e,yn as f,W as g,k as h,Tt as i,Vn as j,Ut as k,rt as l,ot as m,st as n,Wt as o,Zt as p,Yt as q,fe as r,Kt as s,Dn as t,bn as u,Mn as v,Jt as w};
package/chunk-RJZW77TO.js DELETED
@@ -1 +0,0 @@
1
- import{a as p}from"./chunk-4OXMK44M.js";import{g as b}from"./chunk-OWUXXKGD.js";import"./chunk-W5VZK5LZ.js";import"./chunk-FJ7IM55X.js";import{D as h}from"./chunk-Z5SFK23M.js";import"./chunk-R4CV5F66.js";import"./chunk-ZZNYX7MX.js";import"./chunk-OUJ6CGAI.js";import{a as v}from"./chunk-FNWWNWQP.js";import"./chunk-F2X3VGZZ.js";import"./chunk-CP57YBBI.js";import{t as x}from"./chunk-DCES5UJV.js";import{Ab as C,Lc as u,Ub as i,Vb as o,_b as _,dc as l,ec as f,ha as c,pa as m,pc as a,qa as s,ub as g,xc as d}from"./chunk-K5GIEJY3.js";import"./chunk-EQDQRRRY.js";function S(t,M){if(t&1){let e=_();i(0,"div",3)(1,"button",4),l("click",function(){m(e);let r=f();return s(r.onFormatCOAConfig())}),a(2," Format "),o(),i(3,"button",5),l("click",function(){m(e);let r=f();return s(r.onMigrateCoaConfig())}),a(4," Migrate "),o()()}}function T(t,M){t&1&&(i(0,"div",6),a(1," reserved for future User Interface (UI) enhancements "),o())}var j=(()=>{class t{constructor(){this.migrateService=c(p),this.toastr=c(v)}onMigrateCoaConfig(){this.migrateService.migrateCoaConfig().subscribe(e=>{this.toastr.success(e.message,"Migration Successful")})}onFormatCOAConfig(){this.migrateService.formatManualCOAConfig().subscribe(e=>{this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=g({type:t,selectors:[["app-coa-configuration"]],features:[d([p])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["pageTitle","Chart Of Accounts Configuration"],[1,"d-flex","gap-2"],[1,"btn","btn-danger",3,"click"],[1,"btn","btn-primary",3,"click"],[1,"container","d-flex","justify-content-center","align-items-center",2,"height","100vh"]],template:function(n,r){n&1&&(i(0,"app-main-panel",2),C(1,S,5,0,"ng-template",null,0,u)(3,T,2,0,"ng-template",null,1,u),o())},dependencies:[b,x,h],encapsulation:2})}}return t})();export{j as CoaConfigurationComponent};
package/chunk-S6JRFIGG.js DELETED
@@ -1 +0,0 @@
1
- import{d as o}from"./chunk-FNWWNWQP.js";import{ba as r,ha as i}from"./chunk-K5GIEJY3.js";var c=(()=>{class n{constructor(){this.httpService=i(o)}getJournalInvoice(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/invoice/get",t)}generateJournalInvoice(e){return this.httpService.post(void 0,"api/GenerateJournal/invoice/Submit",e)}getJournalSupplierBill(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/bill/get",t)}generateJournalSupplierBill(e){return this.httpService.post(void 0,"api/GenerateJournal/bill/Submit",e)}getJournalShift(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/Shift/get",t)}generateJornalShift(e){return this.httpService.post(void 0,"api/GenerateJournal/Shift/Submit",e)}getARJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinInvoice/get",t)}createARJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinInvoice/Submit",e)}getAPJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinBill/get",t)}createAPJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinBill/Submit",e)}getAdjustmentJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/InventoryAdjustment/get",t)}createAdjustmentJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/InventoryAdjustment/Submit",e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=r({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();export{c as a};
package/chunk-TO47DVWB.js DELETED
@@ -1,67 +0,0 @@
1
- import{a as J}from"./chunk-ZZNYX7MX.js";import{b as d,ca as K,d as f,ka as Z,la as B,ta as G,w as O}from"./chunk-OUJ6CGAI.js";import{j as $,n as q,o as W,t as N,w as j}from"./chunk-DCES5UJV.js";import{Ab as Y,Jb as m,Kb as V,Ob as x,Pb as P,Ub as v,Vb as g,Vc as U,Zb as z,_b as R,ba as S,ca as E,dc as y,fb as u,fc as I,gc as H,ha as _,ic as L,jc as b,kc as h,lc as p,pa as s,qa as a,sa as C,ub as F,vb as A,xc as Q,yb as X,za as k}from"./chunk-K5GIEJY3.js";var ee=["content"],oe=["container"],re=["xBar"],le=["yBar"],se=["*"];function ae(t,ie){t&1&&H(0)}function ce(t,ie){t&1&&z(0)}var ue=({dt:t})=>`
2
- .p-scrollpanel-content-container {
3
- overflow: hidden;
4
- width: 100%;
5
- height: 100%;
6
- position: relative;
7
- z-index: 1;
8
- float: left;
9
- }
10
-
11
- .p-scrollpanel-content {
12
- height: calc(100% + calc(2 * ${t("scrollpanel.bar.size")}));
13
- width: calc(100% + calc(2 * ${t("scrollpanel.bar.size")}));
14
- padding-inline: 0 calc(2 * ${t("scrollpanel.bar.size")});
15
- padding-block: 0 calc(2 * ${t("scrollpanel.bar.size")});
16
- position: relative;
17
- overflow: auto;
18
- box-sizing: border-box;
19
- scrollbar-width: none;
20
- }
21
-
22
- .p-scrollpanel-content::-webkit-scrollbar {
23
- display: none;
24
- }
25
-
26
- .p-scrollpanel-bar {
27
- position: relative;
28
- border-radius: ${t("scrollpanel.bar.border.radius")};
29
- z-index: 2;
30
- cursor: pointer;
31
- opacity: 0;
32
- outline-color: transparent;
33
- transition: outline-color ${t("scrollpanel.transition.duration")};
34
- background: ${t("scrollpanel.bar.background")};
35
- border: 0 none;
36
- transition: outline-color ${t("scrollpanel.transition.duration")}, opacity ${t("scrollpanel.transition.duration")};
37
- }
38
-
39
- .p-scrollpanel-bar:focus-visible {
40
- box-shadow: ${t("scrollpanel.bar.focus.ring.shadow")};
41
- outline: ${t("scrollpanel.barfocus.ring.width")} ${t("scrollpanel.bar.focus.ring.style")} ${t("scrollpanel.bar.focus.ring.color")};
42
- outline-offset: ${t("scrollpanel.barfocus.ring.offset")};
43
- }
44
-
45
- .p-scrollpanel-bar-y {
46
- width: ${t("scrollpanel.bar.size")};
47
- top: 0;
48
- }
49
-
50
- .p-scrollpanel-bar-x {
51
- height: ${t("scrollpanel.bar.size")};
52
- bottom: 0;
53
- }
54
-
55
- .p-scrollpanel-hidden {
56
- visibility: hidden;
57
- }
58
-
59
- .p-scrollpanel:hover .p-scrollpanel-bar,
60
- .p-scrollpanel:active .p-scrollpanel-bar {
61
- opacity: 1;
62
- }
63
-
64
- .p-scrollpanel-grabbed {
65
- user-select: none;
66
- }
67
- `,he={root:"p-scrollpanel p-component",contentContainer:"p-scrollpanel-content-container",content:"p-scrollpanel-content",barX:"p-scrollpanel-bar p-scrollpanel-bar-x",barY:"p-scrollpanel-bar p-scrollpanel-bar-y"},te=(()=>{class t extends G{name="scrollpanel";theme=ue;classes=he;static \u0275fac=(()=>{let e;return function(i){return(e||(e=C(t)))(i||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),pe=function(t){return t.root="p-scrollpanel",t.contentContainer="p-scrollpanel-content-container",t.content="p-scrollpanel-content",t.barX="p-scrollpanel-bar-x",t.barY="p-scrollpanel-bar-y",t}(pe||{}),de=(()=>{class t extends J{style;styleClass;step=5;containerViewChild;contentViewChild;xBarViewChild;yBarViewChild;contentTemplate;templates;_contentTemplate;scrollYRatio;scrollXRatio;timeoutFrame=e=>setTimeout(e,0);initialized=!1;lastPageY;lastPageX;isXBarClicked=!1;isYBarClicked=!1;lastScrollLeft=0;lastScrollTop=0;orientation="vertical";timer;contentId;windowResizeListener;contentScrollListener;mouseEnterListener;xBarMouseDownListener;yBarMouseDownListener;documentMouseMoveListener;documentMouseUpListener;_componentStyle=_(te);zone=_(k);ngOnInit(){super.ngOnInit(),this.contentId=K("pn_id_")+"_content"}ngAfterViewInit(){super.ngAfterViewInit(),j(this.platformId)&&this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),this.windowResizeListener=this.renderer.listen(window,"resize",this.moveBar),this.contentScrollListener=this.renderer.listen(this.contentViewChild.nativeElement,"scroll",this.moveBar),this.mouseEnterListener=this.renderer.listen(this.contentViewChild.nativeElement,"mouseenter",this.moveBar),this.xBarMouseDownListener=this.renderer.listen(this.xBarViewChild.nativeElement,"mousedown",this.onXBarMouseDown),this.yBarMouseDownListener=this.renderer.listen(this.yBarViewChild.nativeElement,"mousedown",this.onYBarMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}calculateContainerHeight(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,i=this.xBarViewChild.nativeElement,o=this.document.defaultView,r=o.getComputedStyle(e),l=o.getComputedStyle(i),c=O(e)-parseInt(l.height,10);r["max-height"]!="none"&&c==0&&(n.offsetHeight+parseInt(l.height,10)>parseInt(r["max-height"],10)?e.style.height=r["max-height"]:e.style.height=n.offsetHeight+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px")}moveBar(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,i=this.xBarViewChild.nativeElement,o=n.scrollWidth,r=n.clientWidth,l=(e.clientHeight-i.clientHeight)*-1;this.scrollXRatio=r/o;let c=this.yBarViewChild.nativeElement,D=n.scrollHeight,T=n.clientHeight,ne=(e.clientWidth-c.clientWidth)*-1;this.scrollYRatio=T/D,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)i.setAttribute("data-p-scrollpanel-hidden","true"),d(i,"p-scrollpanel-hidden");else{i.setAttribute("data-p-scrollpanel-hidden","false"),f(i,"p-scrollpanel-hidden");let w=Math.max(this.scrollXRatio*100,10),M=Math.abs(n.scrollLeft*(100-w)/(o-r));i.style.cssText="width:"+w+"%; inset-inline-start:"+M+"%;bottom:"+l+"px;"}if(this.scrollYRatio>=1)c.setAttribute("data-p-scrollpanel-hidden","true"),d(c,"p-scrollpanel-hidden");else{c.setAttribute("data-p-scrollpanel-hidden","false"),f(c,"p-scrollpanel-hidden");let w=Math.max(this.scrollYRatio*100,10),M=n.scrollTop*(100-w)/(D-T);c.style.cssText="height:"+w+"%; top: calc("+M+"% - "+i.clientHeight+"px); inset-inline-end:"+ne+"px;"}}),this.cd.markForCheck()}onScroll(e){this.lastScrollLeft!==e.target.scrollLeft?(this.lastScrollLeft=e.target.scrollLeft,this.orientation="horizontal"):this.lastScrollTop!==e.target.scrollTop&&(this.lastScrollTop=e.target.scrollTop,this.orientation="vertical"),this.moveBar()}onKeyDown(e){if(this.orientation==="vertical")switch(e.code){case"ArrowDown":{this.setTimer("scrollTop",this.step),e.preventDefault();break}case"ArrowUp":{this.setTimer("scrollTop",this.step*-1),e.preventDefault();break}case"ArrowLeft":case"ArrowRight":{e.preventDefault();break}default:break}else if(this.orientation==="horizontal")switch(e.code){case"ArrowRight":{this.setTimer("scrollLeft",this.step),e.preventDefault();break}case"ArrowLeft":{this.setTimer("scrollLeft",this.step*-1),e.preventDefault();break}case"ArrowDown":case"ArrowUp":{e.preventDefault();break}default:break}}onKeyUp(){this.clearTimer()}repeat(e,n){this.contentViewChild.nativeElement[e]+=n,this.moveBar()}setTimer(e,n){this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,n)},40)}clearTimer(){this.timer&&clearTimeout(this.timer)}bindDocumentMouseListeners(){this.documentMouseMoveListener||(this.documentMouseMoveListener=e=>{this.onDocumentMouseMove(e)},this.document.addEventListener("mousemove",this.documentMouseMoveListener)),this.documentMouseUpListener||(this.documentMouseUpListener=e=>{this.onDocumentMouseUp(e)},this.document.addEventListener("mouseup",this.documentMouseUpListener))}unbindDocumentMouseListeners(){this.documentMouseMoveListener&&(this.document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)}onYBarMouseDown(e){this.isYBarClicked=!0,this.yBarViewChild.nativeElement.focus(),this.lastPageY=e.pageY,this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","true"),d(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","true"),d(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onXBarMouseDown(e){this.isXBarClicked=!0,this.xBarViewChild.nativeElement.focus(),this.lastPageX=e.pageX,this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),d(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),d(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onDocumentMouseMove(e){this.isXBarClicked?this.onMouseMoveForXBar(e):this.isYBarClicked?this.onMouseMoveForYBar(e):(this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))}onMouseMoveForXBar(e){let n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=n/this.scrollXRatio})}onMouseMoveForYBar(e){let n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=n/this.scrollYRatio})}scrollTop(e){let n=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;e=e>n?n:e>0?e:0,this.contentViewChild.nativeElement.scrollTop=e}onFocus(e){this.xBarViewChild.nativeElement.isSameNode(e.target)?this.orientation="horizontal":this.yBarViewChild.nativeElement.isSameNode(e.target)&&(this.orientation="vertical")}onBlur(){this.orientation==="horizontal"&&(this.orientation="vertical")}onDocumentMouseUp(e){this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),f(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),f(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),f(this.document.body,"p-scrollpanel-grabbed"),this.unbindDocumentMouseListeners(),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(e){(window.requestAnimationFrame||this.timeoutFrame)(e)}unbindListeners(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null),this.contentScrollListener&&(this.contentScrollListener(),this.contentScrollListener=null),this.mouseEnterListener&&(this.mouseEnterListener(),this.mouseEnterListener=null),this.xBarMouseDownListener&&(this.xBarMouseDownListener(),this.xBarMouseDownListener=null),this.yBarMouseDownListener&&(this.yBarMouseDownListener(),this.yBarMouseDownListener=null)}ngOnDestroy(){this.initialized&&this.unbindListeners()}refresh(){this.moveBar()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=C(t)))(i||t)}})();static \u0275cmp=F({type:t,selectors:[["p-scroll-panel"],["p-scrollPanel"],["p-scrollpanel"]],contentQueries:function(n,i,o){if(n&1&&(L(o,ee,4),L(o,Z,4)),n&2){let r;h(r=p())&&(i.contentTemplate=r.first),h(r=p())&&(i.templates=r)}},viewQuery:function(n,i){if(n&1&&(b(oe,5),b(ee,5),b(re,5),b(le,5)),n&2){let o;h(o=p())&&(i.containerViewChild=o.first),h(o=p())&&(i.contentViewChild=o.first),h(o=p())&&(i.xBarViewChild=o.first),h(o=p())&&(i.yBarViewChild=o.first)}},inputs:{style:"style",styleClass:"styleClass",step:[2,"step","step",U]},features:[Q([te]),X],ngContentSelectors:se,decls:11,vars:17,consts:[["container",""],["content",""],["xBar",""],["yBar",""],[3,"ngClass","ngStyle"],[1,"p-scrollpanel-content-container"],[1,"p-scrollpanel-content",3,"mouseenter","scroll"],[4,"ngTemplateOutlet"],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-x",3,"mousedown","keydown","keyup","focus","blur"],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-y",3,"mousedown","keydown","keyup","focus"]],template:function(n,i){if(n&1){let o=R();I(),v(0,"div",4,0)(2,"div",5)(3,"div",6,1),y("mouseenter",function(){return s(o),a(i.moveBar())})("scroll",function(l){return s(o),a(i.onScroll(l))}),Y(5,ae,1,0)(6,ce,1,0,"ng-container",7),g()(),v(7,"div",8,2),y("mousedown",function(l){return s(o),a(i.onXBarMouseDown(l))})("keydown",function(l){return s(o),a(i.onKeyDown(l))})("keyup",function(){return s(o),a(i.onKeyUp())})("focus",function(l){return s(o),a(i.onFocus(l))})("blur",function(){return s(o),a(i.onBlur())}),g(),v(9,"div",9,3),y("mousedown",function(l){return s(o),a(i.onYBarMouseDown(l))})("keydown",function(l){return s(o),a(i.onKeyDown(l))})("keyup",function(){return s(o),a(i.onKeyUp())})("focus",function(l){return s(o),a(i.onFocus(l))}),g()()}n&2&&(x(i.styleClass),V("ngClass","p-scrollpanel p-component")("ngStyle",i.style),m("data-pc-name","scrollpanel"),u(2),m("data-pc-section","wrapper"),u(),m("data-pc-section","content"),u(2),P(!i.contentTemplate&&!i._contentTemplate?5:-1),u(),V("ngTemplateOutlet",i.contentTemplate||i._contentTemplate),u(),m("aria-orientation","horizontal")("aria-valuenow",i.lastScrollLeft)("data-pc-section","barx")("aria-controls",i.contentId),u(2),m("aria-orientation","vertical")("aria-valuenow",i.lastScrollTop)("data-pc-section","bary")("aria-controls",i.contentId))},dependencies:[N,$,W,q,B],encapsulation:2,changeDetection:0})}return t})(),ke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=A({type:t});static \u0275inj=E({imports:[de,B,B]})}return t})();export{te as a,pe as b,de as c,ke as d};
package/chunk-UHDEQNDX.js DELETED
@@ -1 +0,0 @@
1
- import{a as g}from"./chunk-4OXMK44M.js";import{g as h}from"./chunk-OWUXXKGD.js";import"./chunk-W5VZK5LZ.js";import"./chunk-FJ7IM55X.js";import{D as v}from"./chunk-Z5SFK23M.js";import"./chunk-R4CV5F66.js";import"./chunk-ZZNYX7MX.js";import"./chunk-OUJ6CGAI.js";import{a as x}from"./chunk-FNWWNWQP.js";import"./chunk-F2X3VGZZ.js";import"./chunk-CP57YBBI.js";import{t as y}from"./chunk-DCES5UJV.js";import{Ab as f,Lc as u,Ub as o,Vb as r,_b as _,dc as l,ec as p,ha as c,pa as m,pc as a,qa as s,ub as C,xc as d}from"./chunk-K5GIEJY3.js";import"./chunk-EQDQRRRY.js";function M(e,b){if(e&1){let t=_();o(0,"div",3)(1,"button",4),l("click",function(){m(t);let i=p();return s(i.onFormatCOACategory())}),a(2," Format "),r(),o(3,"button",5),l("click",function(){m(t);let i=p();return s(i.onMigrateCoaCategory())}),a(4," Migrate "),r()()}}function S(e,b){e&1&&(o(0,"div",6),a(1," reserved for future User Interface (UI) enhancements "),r())}var j=(()=>{class e{constructor(){this.migrateService=c(g),this.toastr=c(x)}onMigrateCoaCategory(){this.migrateService.migrateCoaCategory().subscribe(t=>{this.toastr.success(t.message,"Migration Successful")})}onFormatCOACategory(){confirm("Are you sure you want to format?")&&this.migrateService.formatManualCOACategory().subscribe(t=>{this.toastr.success(t.message,"Format Successful")})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=C({type:e,selectors:[["app-coa-configuration"]],features:[d([g])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["pageTitle","Chart Of Accounts Category Migration"],[1,"d-flex","gap-2"],[1,"btn","btn-danger",3,"click"],[1,"btn","btn-primary",3,"click"],[1,"container","d-flex","justify-content-center","align-items-center",2,"height","100vh"]],template:function(n,i){n&1&&(o(0,"app-main-panel",2),f(1,M,5,0,"ng-template",null,0,u)(3,S,2,0,"ng-template",null,1,u),r())},dependencies:[h,y,v],encapsulation:2})}}return e})();export{j as CoaCategoryComponent};
package/chunk-VHNXAKFS.js DELETED
@@ -1 +0,0 @@
1
- import{a as Re,b as je,c as Le}from"./chunk-JBLYOAVS.js";import{a as Ve}from"./chunk-XFW6LFAM.js";import{a as Ue,b as We,c as qe,d as He,e as Ke,f as Qe}from"./chunk-4EDEITTK.js";import{a as $e,b as ze}from"./chunk-63XPN7AG.js";import"./chunk-VET2QT6C.js";import{a as Ne}from"./chunk-2VTAWSHV.js";import{c as Fe,d as Te}from"./chunk-TO47DVWB.js";import{c as we,d as Ge,e as Me,f as Je,g as Pe,h as ke,l as Oe}from"./chunk-DERWDCI5.js";import{f as De,g as Be}from"./chunk-FOSJHYSQ.js";import"./chunk-OVUTH3B6.js";import"./chunk-JWPV2SP2.js";import{c as z,d as U}from"./chunk-5CZUTVXD.js";import{a as Ae,b as Z}from"./chunk-OPNWLQQY.js";import{g as w}from"./chunk-OWUXXKGD.js";import"./chunk-W5VZK5LZ.js";import"./chunk-FJ7IM55X.js";import{C as L,D as $,t as j,u as N}from"./chunk-Z5SFK23M.js";import{b as J,c as ae,e as A,f as P,i as Ce,l as k,m as X,n as xe,o as O,s as V,u as Y,v as R}from"./chunk-R4CV5F66.js";import"./chunk-ZZNYX7MX.js";import{ga as Ie,ka as Ee}from"./chunk-OUJ6CGAI.js";import{a as Se,d as ye}from"./chunk-FNWWNWQP.js";import"./chunk-F2X3VGZZ.js";import{p as be,w as he}from"./chunk-CP57YBBI.js";import{j as Q,m as _e,s as ve,t as T}from"./chunk-DCES5UJV.js";import{Ab as d,Fa as B,Ic as oe,Jc as re,Kb as p,L as me,Lc as s,Nb as ue,Pb as ne,Qb as b,Sb as h,Tb as S,Ub as i,Vb as n,Wb as c,Z as D,_b as x,ba as pe,dc as y,ec as u,fb as a,ha as f,lb as ce,pa as v,pc as o,qa as C,qc as I,rc as ie,ub as E,uc as se,vc as de,wc as fe,xc as ge,yc as q,zc as F}from"./chunk-K5GIEJY3.js";import{a as H,b as K}from"./chunk-EQDQRRRY.js";var G=(()=>{class t{#e=f(ye);fetchLoaderConfiguration(){return this.#e.get("","api/SetupLoader/Load")}updateAccountingIntegrationConfiguration(e){return this.#e.post(void 0,"/api/setup/SubmitConfig",e)}fetchOpeningBalanceFormConfiguration(){return this.#e.get("","/api/setup/OpeningBalance/Form")}submitOpeningBalanceFormConfiguration(e){return this.#e.post("","/api/setup/OpeningBalance/Submit",{form:e})}fetchAPICredential(){return this.#e.get(void 0,"/api/AccountConfig")}updateAPICredential(e){return this.#e.put(void 0,"/api/AccountConfig",e)}formatJournal(e){return this.#e.post("","/api/setup/formatdata/clearjournal",{domain:e})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=pe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ze=t=>({"active-state":t}),et=t=>({"text-white":t});function pt(t,l){if(t&1){let e=x();i(0,"div",4)(1,"a",5),o(2,"Cancel"),n(),i(3,"p-button",6),y("click",function(){v(e);let m=u();return C(m.updateAccountingIntegration())}),n()()}}function ct(t,l){if(t&1&&(i(0,"p-tab",9),o(1),n()),t&2){let e=l.$implicit,r=l.$index;p("value",r),a(),I(e)}}function ut(t,l){if(t&1&&(i(0,"div",40)(1,"h3",41),o(2," End Of Shift "),n()()),t&2){let e=u(4);p("ngClass",F(2,Ze,e.form.controls.posIntegration.value.createJournalTriggers===0)),a(),p("ngClass",F(4,et,e.form.controls.posIntegration.value.createJournalTriggers===0))}}function st(t,l){if(t&1&&(i(0,"div",40)(1,"h3",41),o(2," Every "),n()()),t&2){let e=u(4);p("ngClass",F(2,Ze,e.form.controls.posIntegration.value.createJournalTriggers===1)),a(),p("ngClass",F(4,et,e.form.controls.posIntegration.value.createJournalTriggers===1))}}function dt(t,l){if(t&1&&d(0,ut,3,6,"div",40)(1,st,3,6,"div",40),t&2){let e,r=u().$implicit;ne((e=r.key)===0?0:e===1?1:-1)}}function ft(t,l){t&1&&(i(0,"h4"),o(1,"Suitable for Cash Sales (Retail & FnB)"),n(),i(2,"p"),o(3," One Journal is generated for all transaction happening within a register open - close period "),n())}function gt(t,l){t&1&&(i(0,"h4"),o(1,"Every"),n(),i(2,"p"),o(3," Suitable for Credit Sales (Wholesale) Journal is generated for each transaction "),n())}function _t(t,l){if(t&1){let e=x();i(0,"div",14),c(1,"p-radiobutton",38),i(2,"p-card",39),y("click",function(){v(e);let m=u(2);return C(m.changeJournalType())}),d(3,dt,2,1,"ng-template",null,2,s)(5,ft,4,0)(6,gt,4,0),n()()}if(t&2){let e,r=l.$implicit;a(),p("inputId",r.value)("value",r.key),a(4),ne((e=r.key)===0?5:e===1?6:-1)}}function vt(t,l){if(t&1&&(i(0,"div",32),c(1,"p-radiobutton",42),i(2,"label",43),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),I(e.value)}}function Ct(t,l){if(t&1&&(i(0,"div",32),c(1,"p-radiobutton",44),i(2,"label",43),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),I(e.value)}}function xt(t,l){if(t&1&&(i(0,"div",32),c(1,"p-radiobutton",45),i(2,"label",43),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),I(e.value)}}function bt(t,l){if(t&1&&(i(0,"div",32),c(1,"p-radiobutton",46),i(2,"label",43),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),I(e.value)}}function ht(t,l){if(t&1&&(i(0,"div",7)(1,"p-tabs",8)(2,"p-tablist"),h(3,ct,2,2,"p-tab",9,b),n(),i(5,"p-tabpanels")(6,"p-tabpanel",9)(7,"h4",10),o(8,"Integration with POS"),n(),i(9,"p"),o(10,"Generate Journal"),n(),i(11,"div",11)(12,"div",12)(13,"div",13),h(14,_t,7,3,"div",14,b),n()()(),c(16,"hr"),i(17,"div",15)(18,"h3",10),o(19,"Journal Generate"),n(),i(20,"p"),o(21,"Configure generate transaction"),n(),i(22,"div",13)(23,"div",16)(24,"div",17)(25,"div",16)(26,"div",18)(27,"label",19),o(28,"Generate EOD Expense Journal"),n(),c(29,"p-toggleswitch",20),n()(),c(30,"div",16),i(31,"div",16)(32,"div",18)(33,"label",19),o(34,"Generate Outlet Delivery Journal"),n(),c(35,"p-toggleswitch",21),n()(),c(36,"div",16),i(37,"div",16)(38,"div",18)(39,"label",19),o(40,"Generate Payment Discount Journal On Payment"),n(),c(41,"p-toggleswitch",22),n()()()()()()(),i(42,"p-tabpanel",23)(43,"div",24)(44,"h3",10),o(45,"Accounting Numbering"),n(),i(46,"p"),o(47,"Configure numbering format and rule for your accounting"),n(),i(48,"div",13)(49,"div",16)(50,"div",17)(51,"div",16)(52,"div",18)(53,"label",25),o(54,"Digit"),n(),c(55,"p-inputnumber",26),n()(),c(56,"div",16),i(57,"div",16)(58,"div",18)(59,"label",27),o(60,"Seed"),n(),c(61,"p-inputnumber",28),n()(),i(62,"div",16)(63,"div",18)(64,"label",29),o(65,"Last Number"),n(),c(66,"p-inputnumber",30),n()(),i(67,"div",16)(68,"div",18)(69,"label",19),o(70,"Reset Every"),n(),i(71,"div",31),h(72,vt,4,4,"div",32,b),n()()(),i(74,"div",16)(75,"div",18)(76,"label",19),o(77,"Format"),n(),c(78,"p-select",33),n()()()()()()(),i(79,"p-tabpanel",34)(80,"div",24)(81,"h3",10),o(82,"Report"),n(),i(83,"p"),o(84,"Configure report behavior"),n(),i(85,"div",13)(86,"div",16)(87,"div",17)(88,"div",16)(89,"div",18)(90,"label",19),o(91,"Audit Journal Transaction"),n(),i(92,"div",31),h(93,Ct,4,4,"div",32,b),n()()(),c(95,"div",16),i(96,"div",16)(97,"div",18)(98,"label",19),o(99,"Accounting For Treatment"),n(),i(100,"div",31),h(101,xt,4,4,"div",32,b),n()()(),c(103,"div",16),i(104,"div",16)(105,"div",18)(106,"label",19),o(107,"Configure Report Access Control in COA"),n(),i(108,"div",31),h(109,bt,4,4,"div",32,b),n()()()()()()()(),i(111,"p-tabpanel",35)(112,"div",24)(113,"h3",10),o(114,"Note"),n(),i(115,"p"),o(116,"Configure show note"),n(),i(117,"div",13)(118,"div",16)(119,"div",17)(120,"div",16)(121,"div",18)(122,"label",19),o(123,"Note Required On Journal"),n(),c(124,"p-toggleswitch",36),n()(),c(125,"div",16),i(126,"div",16)(127,"div",18)(128,"label",19),o(129,"Trial Balance Footer Visible"),n(),c(130,"p-toggleswitch",37),n()(),c(131,"div",16),n()()()()()()()()),t&2){let e,r,m,_,W,M,g=u();a(),p("value",0)("formGroup",g.form),a(2),S(g.tabs()),a(3),p("value",0),a(8),S((e=g.accountingIntegration())==null||e.options==null?null:e.options.journalType),a(28),p("value",1),a(30),S((r=g.accountingIntegration())==null||r.options==null?null:r.options.resetPeriods),a(6),p("options",(m=g.accountingIntegration())==null||m.options==null?null:m.options.monthlyResetPeriodFormat),a(),p("value",2),a(14),S((_=g.accountingIntegration())==null||_.options==null?null:_.options.auditType),a(8),S((W=g.accountingIntegration())==null||W.options==null?null:W.options.generatePrepaidJournal),a(8),S((M=g.accountingIntegration())==null||M.options==null?null:M.options.entityAccess),a(2),p("value",3)}}var tt=(()=>{class t{constructor(){this.accountingSetupService=f(G),this.fb=f(V).nonNullable,this.tabs=B(["Pos","Numbering","Report","Note"]),this.journalType=B(0),this.accountingIntegration=B(null)}ngOnInit(){this.initializeForm(),this.loadAccountingConfiguration()}initializeForm(){this.form=this.fb.group({posIntegration:this.createPosIntegrationGroup(),number:this.createNumberGroup(),report:this.createReportGroup(),journalGenerate:this.createJournalGenerateGroup(),note:this.createNoteGroup()})}createPosIntegrationGroup(){return this.fb.group({createJournalTriggers:this.fb.control(0)})}createNumberGroup(){return this.fb.group({seed:this.fb.control(""),digit:this.fb.control(""),resetEvery:this.fb.control(""),monthlyFormat:this.fb.control(""),lastNumber:this.fb.control(""),lastModified:this.fb.control("")})}createReportGroup(){return this.fb.group({accountingAuditType:this.fb.control(""),accountingEntityAccess:this.fb.control(""),generatePrepaidJournal:this.fb.control("")})}createJournalGenerateGroup(){return this.fb.group({eodExpenseJournal:this.fb.control(""),transferOrder:this.fb.control(""),paymentDiscount:this.fb.control("")})}createNoteGroup(){return this.fb.group({noteMandatory:this.fb.control(""),trialBalanceFooterVisible:this.fb.control("")})}changeJournalType(){let e=this.journalType()===0?1:0;this.journalType.set(e),this.accountingIntegration.update(r=>K(H({},r),{form:K(H({},r.form),{posIntegration:K(H({},r.form.posIntegration),{createJournalTriggers:e})})})),this.form.controls.posIntegration.patchValue({createJournalTriggers:e})}loadAccountingConfiguration(){this.accountingSetupService.fetchLoaderConfiguration().pipe(D(e=>{this.accountingIntegration.set(e);let r=e.form.posIntegration.createJournalTriggers;this.journalType.set(r),this.form.get("posIntegration.createJournalTriggers")?.setValue(r),this.form.patchValue(e.form)})).subscribe()}updateAccountingIntegration(){let e={form:this.form.getRawValue()};this.accountingSetupService.updateAccountingIntegrationConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-accounting-integration"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Accounting Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"click"],[1,"overflow-y-auto"],[1,"border-top",3,"value","formGroup"],[3,"value"],[1,"fs-5"],["formGroupName","posIntegration",1,"row"],[1,"col-8"],[1,"row"],[1,"col"],["formGroupName","journalGenerate",1,""],[1,"col-6"],[1,"row","row-gap-3"],[1,"d-flex","flex-column"],["for","",1,"fs-4"],["formControlName","eodExpenseJournal"],["formControlName","transferOrder"],["formControlName","paymentDiscount"],["formGroupName","number",3,"value"],[1,""],["for","digit",1,"fs-4"],["inputId","digit","formControlName","digit"],["for","seed",1,"fs-4"],["inputId","seed","formControlName","seed"],["for","lastNumber",1,"fs-4"],["inputId","lastNumber","formControlName","lastNumber"],[1,"d-flex","flex-column","gap-2"],[1,"d-flex","align-items-center","gap-2"],["appendTo","body","formControlName","monthlyFormat","optionValue","key","optionLabel","value",3,"options"],["formGroupName","report",3,"value"],["formGroupName","note",3,"value"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"],["styleClass","d-none","name","createJournalTriggers","formControlName","createJournalTriggers",3,"inputId","value"],["styleClass","h-100",3,"click"],[1,"d-flex","justify-content-center","inactive-state","text-white","py-2",3,"ngClass"],[1,"m-0",3,"ngClass"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"ml-2","m-0",3,"for"],["name","accountingAuditType","formControlName","accountingAuditType",3,"value","inputId"],["name","generatePrepaidJournal","formControlName","generatePrepaidJournal",3,"value","inputId"],["name","accountingEntityAccess","formControlName","accountingEntityAccess",3,"value","inputId"]],template:function(r,m){r&1&&(i(0,"app-main-panel",3),d(1,pt,4,0,"ng-template",null,0,s)(3,ht,132,7,"ng-template",null,1,s),n())},dependencies:[T,Q,Qe,Ke,He,qe,Ue,We,w,Z,Ae,Pe,Je,R,A,P,k,O,X,N,Be,De,ze,$e,he,be,$,L,Me,Ge],styles:["[_nghost-%COMP%]{display:block}.inactive-state[_ngcontent-%COMP%]{background-color:#e5e5e5}.active-state[_ngcontent-%COMP%]{background-color:#5680e9}"],changeDetection:0})}}return t})();var St=()=>({height:"calc(100vh - 150px)"}),yt=()=>[],nt=()=>({});function It(t,l){if(t&1){let e=x();i(0,"div")(1,"p-button",5),y("onClick",function(){v(e);let m=u();return C(m.submitForm())}),n()()}}function Et(t,l){t&1&&(i(0,"tr")(1,"th",16),o(2,"Account Name"),n(),i(3,"th",17),o(4,"Debit"),n(),i(5,"th",17),o(6,"Credit"),n()())}function Ft(t,l){if(t&1&&(i(0,"tr",9)(1,"td",18),o(2),n(),i(3,"td"),c(4,"input",19),n(),i(5,"td"),c(6,"input",20),n()()),t&2){let e,r=l.$implicit,m=l.rowIndex,_=u(4);p("formGroupName",m),a(2),ie(" ",(e=_.asFormGroup(r).get("accountName"))==null?null:e.value," "),a(2),p("autoNumeric",q(4,nt)),a(2),p("autoNumeric",q(5,nt))}}function Tt(t,l){if(t&1&&(i(0,"div",9)(1,"h4",11),o(2),n(),i(3,"div",12)(4,"p-table",13),d(5,Et,7,0,"ng-template",14)(6,Ft,7,6,"ng-template",15),n()()()),t&2){let e=l.$implicit,r=l.$index,m=u(3);p("formGroupName",r),a(2),ie(" ",e.get("name").value," "),a(2),p("value",m.getItemsArray(m.asFormGroup(e)).controls)}}function At(t,l){if(t&1&&(i(0,"tr")(1,"td")(2,"p",21),o(3,"Total"),n()(),i(4,"td",22)(5,"p",21),o(6),oe(7,"number"),n()(),i(8,"td",22)(9,"p",21),o(10),oe(11,"number"),n()()()),t&2){let e=u(3);a(6),I(re(7,2,e.subtotalDebit)),a(4),I(re(11,4,e.subtotalCredit))}}function Nt(t,l){if(t&1&&(i(0,"p-panel",7)(1,"p-scroll-panel")(2,"div",8),h(3,Tt,7,3,"div",9,b),n()(),i(5,"p-table",10),d(6,At,12,6,"ng-template",null,2,s),n()()),t&2){let e=u(2);p("formGroup",e.formGroups),a(),ue(q(4,St)),a(2),S(e.formsArray.controls),a(2),p("value",q(5,yt))}}function wt(t,l){if(t&1&&d(0,Nt,8,6,"p-panel",6),t&2){let e=u();p("ngIf",e.formGroups)}}var rt=(()=>{class t{constructor(){this.subtotalDebit=0,this.subtotalCredit=0,this.fb=f(V),this.accSetupService=f(G)}ngOnInit(){this.initializeForm(),this.loadFormData(),this.calculateSubtotalDebit(),this.formGroups.get("forms").valueChanges.pipe(me(300)).subscribe(()=>{this.calculateSubtotalDebit()})}initializeForm(){this.formGroups=this.fb.group({forms:this.fb.array([])})}get formsArray(){return this.formGroups.get("forms")}getItemsArray(e){return e.get("items")}asFormGroup(e){return e}createFormGroup(e){return this.fb.group({id:[e.id],name:[e.name],items:this.createItemsArray(e.items)})}createItemsArray(e){let r=e.map(m=>this.createItemGroup(m));return this.fb.array(r)}createItemGroup(e){return this.fb.group({accountName:[e.accountName],accountCode:[e.accountCode],id:[e.id],journalID:[e.journalID],accountID:[e.accountID],debitAmount:[e.debitAmount],creditAmount:[e.creditAmount],index:[e.index],note:[e.note]})}loadFormData(){this.accSetupService.fetchOpeningBalanceFormConfiguration().pipe(Ne("response"),D(e=>{for(;this.formsArray.length>0;)this.formsArray.removeAt(0);e.form.filter(m=>m.items&&m.items.length>0).forEach(m=>{this.formsArray.push(this.createFormGroup(m))})})).subscribe({error:e=>console.error("Error loading form data:",e)})}calculateSubtotalDebit(){let e=this.formGroups.controls.forms;this.subtotalDebit=0,this.subtotalCredit=0,e.controls.forEach(r=>{let m=this.getItemsArray(r),_=m.controls.reduce((M,g)=>{let te=g.get("debitAmount").value||0;return M+te},0),W=m.controls.reduce((M,g)=>{let te=g.get("creditAmount").value||0;return M+te},0);this.subtotalDebit+=_,this.subtotalCredit+=W})}submitForm(){let e=this.formGroups.value.forms;this.accSetupService.submitOpeningBalanceFormConfiguration(e).subscribe(),console.log("Submitting form data:",e)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-acc-opening-balance-form"]],features:[ge([Ie])],decls:6,vars:0,consts:[["actionButton",""],["content",""],["footer",""],["pageTitle","Opening Balance Form"],["preventOpenDuplicates",""],["label","Submit",3,"onClick"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],["formArrayName","forms",1,"d-flex","flex-column","row-gap-4"],[3,"formGroupName"],[3,"value"],[1,"fs-5"],["formArrayName","items"],["dataKey","id",3,"value"],["pTemplate","header"],["pTemplate","body"],[1,"fs-4"],[1,"fs-4",2,"width","200px"],[1,"fs-3"],["pInputText","","formControlName","debitAmount",1,"fs-3",3,"autoNumeric"],["pInputText","","formControlName","creditAmount",1,"fs-3",3,"autoNumeric"],[1,"fw-semibold","fs-4"],[1,"text-end",2,"width","200px"]],template:function(r,m){r&1&&(i(0,"app-main-panel",3),d(1,It,2,0,"ng-template",null,0,s)(3,wt,1,1,"ng-template",null,1,s),n(),c(5,"p-toast",4))},dependencies:[w,Z,Ee,T,_e,ve,we,Oe,ke,Te,Fe,Y,J,A,P,N,j,Le,$,L,U,z,Ve,R,k,O,X,xe],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var at=t=>({"ng-invalid ng-dirty":t});function Gt(t,l){if(t&1){let e=x();i(0,"p-button",4),y("onClick",function(){v(e);let m=u();return C(m.saveCredentials())}),o(1,"Update"),n()}}function Mt(t,l){t&1&&(i(0,"div",12)(1,"h3",13),o(2,"Account"),n(),i(3,"small",14),o(4,"Configure Client ID and Client Secret"),n()())}function Dt(t,l){if(t&1&&(i(0,"div",5)(1,"p-panel"),d(2,Mt,5,0,"ng-template",null,2,s),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),o(8,"Client ID"),n(),c(9,"input",10),n()(),i(10,"div",7)(11,"div",8)(12,"label",9),o(13,"Client Secret"),n(),c(14,"input",11),n()()()()()),t&2){let e=u();a(4),p("formGroup",e.credentialForm),a(5),p("ngClass",F(3,at,e.clientIDControl.invalid&&e.clientIDControl.dirty||e.clientIDControl.touched)),a(5),p("ngClass",F(5,at,e.clientSecretControl.invalid&&e.clientSecretControl.dirty||e.clientSecretControl.touched))}}var lt=(()=>{class t{constructor(e){this.fb=e,this.setupService=f(G)}ngOnInit(){this.initForm(),this.setupService.fetchAPICredential().pipe(D(e=>{this.credentialForm.patchValue({clientID:e.clientID||"",clientSecret:e.clientSecret||""})})).subscribe()}initForm(){this.credentialForm=this.fb.group({clientID:["",[ae.required]],clientSecret:["",[ae.required]]})}get clientIDControl(){return this.credentialForm.get("clientID")}get clientSecretControl(){return this.credentialForm.get("clientSecret")}saveCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Saving credentials:",e),this.setupService.updateAPICredential(e).subscribe()}static{this.\u0275fac=function(r){return new(r||t)(ce(V))}}static{this.\u0275cmp=E({type:t,selectors:[["app-api-credential"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","API Credential"],[3,"onClick"],[1,"d-flex","flex-column","row-gap-4"],[1,"row",3,"formGroup"],[1,"col-6"],[1,"d-flex","flex-column"],["for","outlet"],["type","text","pInputText","","formControlName","clientID",3,"ngClass"],["type","text","pInputText","","formControlName","clientSecret",3,"ngClass"],[1,"d-flex","flex-column","px-2"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(r,m){r&1&&(i(0,"app-main-panel",3),d(1,Gt,2,0,"ng-template",null,0,s)(3,Dt,15,7,"ng-template",null,1,s),n())},dependencies:[T,Q,R,J,A,P,k,O,N,j,U,z,w,$,L],encapsulation:2})}}return t})();function Bt(t,l){if(t&1){let e=x();i(0,"button",4),y("click",function(){v(e);let m=u();return C(m.onFormatJournal())}),o(1," Format "),n()}}function Jt(t,l){t&1&&(i(0,"div",12)(1,"h3",13),o(2,"Journal Configuration"),n(),i(3,"small",14),o(4," Enter your account information to format journal entries "),n()())}function Pt(t,l){if(t&1){let e=x();i(0,"div",5)(1,"p-panel"),d(2,Jt,5,0,"ng-template",null,2,s),i(4,"div",6)(5,"div",7)(6,"p-floatlabel",8)(7,"input",9),fe("ngModelChange",function(m){v(e);let _=u();return de(_.subdomain,m)||(_.subdomain=m),C(m)}),n(),i(8,"label",10),o(9,"Subdomain"),n()(),i(10,"small",11),o(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),n()()()()()}if(t&2){let e=u();a(7),se("ngModel",e.subdomain)}}var mt=(()=>{class t{constructor(){this.setupService=f(G),this.subdomain=B(""),this.toastrService=f(Se)}onFormatJournal(){if(!this.subdomain()){this.toastrService.error("Please enter a subdomain","Error");return}this.setupService.formatJournal(this.subdomain()).subscribe({next:e=>{this.toastrService.success(e.message,"Success")}})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[1,"btn","btn-primary","rounded",3,"click"],[1,"d-flex","flex-column","row-gap-4"],[1,"row","mt-6"],[1,"col-12"],["variant","on"],["pInputText","","id","subdomain","autocomplete","off",1,"w-100",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"text-muted","fst-italic",2,"font-size","12px"],[1,"d-flex","flex-column"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(r,m){r&1&&(i(0,"app-main-panel",3),d(1,Bt,2,0,"ng-template",null,0,s)(3,Pt,12,1,"ng-template",null,1,s),n())},dependencies:[T,Y,J,A,Ce,N,j,w,U,z,je,Re],encapsulation:2})}}return t})();var ci=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"accounting-integration",component:tt},{path:"opening-balance-form",component:rt},{path:"api-crendetial",component:lt},{path:"format-journal",component:mt}]}];export{ci as ACCOUNTING_SETUP_ROUTES};