dealposbooks 1.9.5 → 1.9.6

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 (111) hide show
  1. package/3rdpartylicenses.txt +35 -35
  2. package/assets/scss/layouts/_sidebar.scss +2 -2
  3. package/assets/scss/style.scss +1 -1
  4. package/assets/scss/variables/_variables.scss +1 -1
  5. package/chunk-27SWEVDU.js +1 -0
  6. package/chunk-2DV653RD.js +1 -0
  7. package/chunk-2OECREUZ.js +1 -0
  8. package/{chunk-ANMMOPX7.js → chunk-32BR7AQL.js} +1 -1
  9. package/chunk-34XRAZFC.js +1 -0
  10. package/{chunk-2JCKXI2B.js → chunk-35CWG2OK.js} +1 -1
  11. package/{chunk-HAZ5H5ZV.js → chunk-35KDUCM3.js} +1 -1
  12. package/chunk-3G3QSUWH.js +1 -0
  13. package/{chunk-4LFQJHJZ.js → chunk-3HW557B7.js} +1 -1
  14. package/{chunk-HJPAXVNY.js → chunk-3L7IWFXM.js} +1 -1
  15. package/{chunk-7GHU4UQ7.js → chunk-3WB76KQC.js} +1 -1
  16. package/{chunk-JGSRMMYX.js → chunk-43WCLYRX.js} +1 -1
  17. package/{chunk-6NDJPEK4.js → chunk-46TNY5N4.js} +1 -1
  18. package/chunk-4KXSM3HP.js +1 -0
  19. package/chunk-4QKRWFW4.js +1 -0
  20. package/{chunk-4WYSO23S.js → chunk-54OPMMIM.js} +1 -1
  21. package/chunk-6HQX2SM2.js +1 -0
  22. package/{chunk-7UBLUR5O.js → chunk-6TA77CRR.js} +1 -1
  23. package/{chunk-4GL5YTWS.js → chunk-6ZZARVQO.js} +1 -1
  24. package/{chunk-RZRT24L6.js → chunk-AKMHO3LC.js} +1 -1
  25. package/{chunk-VG23QNZF.js → chunk-AOSPVPK7.js} +1 -1
  26. package/chunk-BNI5KUDE.js +193 -0
  27. package/chunk-BX3CRF44.js +1 -0
  28. package/{chunk-XLUCH64S.js → chunk-C4LZX33Q.js} +2 -2
  29. package/{chunk-HI7JDHS3.js → chunk-C5GEP4MM.js} +1 -1
  30. package/chunk-C7UZ6ZYF.js +1 -0
  31. package/{chunk-CVMP55UZ.js → chunk-CSMMP7XG.js} +1 -1
  32. package/chunk-CTCQB63H.js +1 -0
  33. package/chunk-DNK2GUDB.js +1 -0
  34. package/{chunk-5ROVFZR4.js → chunk-DOM7WYRM.js} +1 -1
  35. package/{chunk-IPUUBC74.js → chunk-ELWFWCNU.js} +2 -2
  36. package/{chunk-YLHU3GDJ.js → chunk-EXVUABTO.js} +1 -1
  37. package/{chunk-Q7ITPAXT.js → chunk-G6FJQBZZ.js} +1 -1
  38. package/chunk-GJXWL5XV.js +1 -0
  39. package/chunk-GNP7WGSH.js +1 -0
  40. package/chunk-GTGRV7IH.js +1 -0
  41. package/{chunk-RVTAI3J3.js → chunk-HFFH2WIX.js} +1 -1
  42. package/chunk-HRPP75N7.js +1 -0
  43. package/{chunk-PSDZXCOR.js → chunk-HRQJ5DXP.js} +1 -1
  44. package/chunk-J77A3DFB.js +1 -0
  45. package/chunk-JDW35ZB5.js +47 -0
  46. package/{chunk-AZM2EGTF.js → chunk-JMLETF7Y.js} +1 -1
  47. package/chunk-JYNZPVLW.js +1 -0
  48. package/chunk-K6753MGR.js +7 -0
  49. package/chunk-LD4G6ND6.js +130 -0
  50. package/{chunk-JHCHHBCW.js → chunk-LKZL77YR.js} +1 -1
  51. package/{chunk-P5ZPLAYA.js → chunk-LR2DJRRL.js} +1 -1
  52. package/{chunk-P36L53XK.js → chunk-LTZA6IIO.js} +1 -1
  53. package/chunk-M7MFX6BW.js +1 -0
  54. package/chunk-MCDQ2TIS.js +1 -0
  55. package/chunk-MJVSTWYY.js +1 -0
  56. package/{chunk-FBUI4SQJ.js → chunk-N2RYBZK7.js} +1 -1
  57. package/{chunk-O2G255P4.js → chunk-N6JCA3CN.js} +2 -2
  58. package/{chunk-LYDUVWPM.js → chunk-NF3TF3LT.js} +1 -1
  59. package/chunk-OEJBOFI5.js +1 -0
  60. package/{chunk-IPKPBYSN.js → chunk-OEOAUJY5.js} +6 -6
  61. package/{chunk-I7YFUZI7.js → chunk-OVCTOPAO.js} +1 -1
  62. package/{chunk-MP7S52YU.js → chunk-OZACNHDP.js} +1 -1
  63. package/{chunk-CVMIZKGH.js → chunk-P6CJ2ONT.js} +1 -1
  64. package/{chunk-ONPJXDDI.js → chunk-QPKNYNLC.js} +2 -2
  65. package/{chunk-6JZPAN4G.js → chunk-RBDJZRHY.js} +1 -1
  66. package/{chunk-4B5RFKWI.js → chunk-RT5PUZ5F.js} +1 -1
  67. package/{chunk-JQZRKOKE.js → chunk-TC43COAE.js} +1 -1
  68. package/{chunk-OSFKXKXD.js → chunk-TFV5QZKR.js} +1 -1
  69. package/{chunk-DAV2SMOY.js → chunk-TK3G2BVM.js} +1 -1
  70. package/{chunk-VUPF5YJY.js → chunk-TQZNJ5WF.js} +1 -1
  71. package/chunk-UEOO2LYA.js +82 -0
  72. package/chunk-WEWEITR7.js +1 -0
  73. package/{chunk-FFODCTQC.js → chunk-WGZN6AN2.js} +1 -1
  74. package/chunk-WZO2ZLBL.js +1 -0
  75. package/chunk-X34Y3TVX.js +1 -0
  76. package/chunk-XFSZDZPJ.js +1 -0
  77. package/{chunk-OVIHA23Z.js → chunk-XKEV5AED.js} +1 -1
  78. package/chunk-XZGFG6E3.js +1 -0
  79. package/{chunk-TCF45ELT.js → chunk-YOEPO6LK.js} +1 -1
  80. package/index.html +2 -2
  81. package/{main-EJEYMG7N.js → main-U5PC2W2C.js} +1 -1
  82. package/package.json +1 -1
  83. package/styles-GTUKYMN7.css +1 -0
  84. package/chunk-3HN62WAN.js +0 -1
  85. package/chunk-5RUWTN5X.js +0 -1
  86. package/chunk-6OAGE44Z.js +0 -7
  87. package/chunk-7XDZM4MJ.js +0 -1
  88. package/chunk-AF77PUJO.js +0 -1
  89. package/chunk-ALX7UOMP.js +0 -193
  90. package/chunk-ANG5YF2J.js +0 -47
  91. package/chunk-ARESU6CY.js +0 -1
  92. package/chunk-CZMTQ4XK.js +0 -1
  93. package/chunk-DC5OTEZ6.js +0 -1
  94. package/chunk-F2FW6UDP.js +0 -1
  95. package/chunk-FIQFBEQK.js +0 -1
  96. package/chunk-FYQCFDW7.js +0 -1
  97. package/chunk-G2APSUOI.js +0 -1
  98. package/chunk-IL7RZKFX.js +0 -1
  99. package/chunk-IZ2XPL4O.js +0 -1
  100. package/chunk-MFMEPXFQ.js +0 -1
  101. package/chunk-NXCQN45H.js +0 -1
  102. package/chunk-PQTUFQME.js +0 -129
  103. package/chunk-RIOZSND3.js +0 -1
  104. package/chunk-SJ5TWHWM.js +0 -1
  105. package/chunk-TYHNOILY.js +0 -1
  106. package/chunk-VEUXDYYI.js +0 -1
  107. package/chunk-VXSF6SQF.js +0 -1
  108. package/chunk-WSVAXPZZ.js +0 -82
  109. package/chunk-X3PB5IV5.js +0 -1
  110. package/chunk-YDBJGTTB.js +0 -1
  111. package/styles-AU7PIISM.css +0 -1
package/chunk-3HN62WAN.js DELETED
@@ -1 +0,0 @@
1
- import{a as v,b as H}from"./chunk-Q7ITPAXT.js";import"./chunk-IZ2XPL4O.js";import{a as F,b as I}from"./chunk-JHCHHBCW.js";import{c as O,d as R}from"./chunk-ANG5YF2J.js";import"./chunk-4GL5YTWS.js";import{h as G}from"./chunk-2JCKXI2B.js";import{b as D,c as N}from"./chunk-YLHU3GDJ.js";import"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import{w as V,x as j}from"./chunk-TCF45ELT.js";import"./chunk-ZWHB7NI7.js";import"./chunk-ALX7UOMP.js";import"./chunk-HAZ5H5ZV.js";import{a as $}from"./chunk-4LFQJHJZ.js";import"./chunk-F2X3VGZZ.js";import{i as A,m as P}from"./chunk-BYD3JK4R.js";import{Cb as E,Ic as c,Jc as m,Kb as p,Lc as C,Nb as x,Ub as n,V as y,Vb as o,Wb as l,X as b,_b as w,dc as h,ec as s,gb as a,h as T,ha as f,pa as g,qa as d,ra as M,s as u,sa as S,wb as k,xc as B,yc as _}from"./chunk-YVEUYFCE.js";import"./chunk-YQFG5XE2.js";var L=()=>({height:"calc(100vh - 100px)"});function z(i,q){if(i&1){let e=w();n(0,"div",3)(1,"p-button",4),h("onClick",function(){g(e);let r=s();return d(r.onFormat())}),o(),n(2,"p-button",5),c(3,"async"),c(4,"async"),h("onClick",function(){g(e);let r=s();return d(r.onMigrate())}),o()()}if(i&2){let e=s();a(2),p("disabled",m(3,2,e.countInBooks$)!==0)("pTooltip",m(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function J(i,q){if(i&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),l(3,"app-migration-cards",7),c(4,"async"),M(),n(5,"svg",8),l(6,"path",9),o(),S(),l(7,"app-migration-cards",10),c(8,"async"),o()()()),i&2){let e=s();x(_(12,L)),a(),x(_(13,L)),a(2),p("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var le=(()=>{class i{constructor(){this.migrateService=f(v),this.toastr=f($),this.refresh$=new T(void 0),this.pageTitle="Expense Account"}ngOnInit(){let e=this.refresh$.pipe(b(()=>this.migrateService.getExpenseAccountCount()),y(1));this.countInPOS$=e.pipe(u(t=>Number(t.pos))),this.countInBooks$=e.pipe(u(t=>Number(t.books)))}onMigrate(){this.migrateService.migrateExpenseAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatExpenseAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=k({type:i,selectors:[["app-expense-account"]],features:[B([v])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(t,r){t&1&&(n(0,"app-main-panel",2),E(1,z,5,6,"ng-template",null,0,C)(3,J,9,14,"ng-template",null,1,C),o()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[G,P,A,I,F,R,O,N,D,H,j,V],encapsulation:2})}}return i})();export{le as ExpenseAccountComponent};
package/chunk-5RUWTN5X.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-FFODCTQC.js";import"./chunk-CVMIZKGH.js";import"./chunk-HAZ5H5ZV.js";import"./chunk-4LFQJHJZ.js";import"./chunk-F2X3VGZZ.js";import"./chunk-BYD3JK4R.js";import"./chunk-YVEUYFCE.js";import"./chunk-YQFG5XE2.js";var o=[{path:"",canActivate:[a],children:[{path:"",loadComponent:()=>import("./chunk-O2G255P4.js").then(t=>t.Dashboard1Component),data:{title:"Dashboard",headerTemplate:"header"}}]}];export{o as DashboardRoutes};
package/chunk-6OAGE44Z.js DELETED
@@ -1,7 +0,0 @@
1
- import{a as Te,b as Le}from"./chunk-RZRT24L6.js";import{a as Ct,b as ye}from"./chunk-IZ2XPL4O.js";import{a as Fe}from"./chunk-CVMIZKGH.js";import{a as St}from"./chunk-NRULEUE7.js";import{b as ht,c as xt}from"./chunk-LYDUVWPM.js";import{a as Ce,b as ve}from"./chunk-VG23QNZF.js";import"./chunk-VUPF5YJY.js";import"./chunk-MP7S52YU.js";import{b as gt}from"./chunk-4B5RFKWI.js";import{a as oe,b as De}from"./chunk-JHCHHBCW.js";import{a as H,b as Y}from"./chunk-JP3F2QND.js";import{a as ut,b as _t,d as xe,k as Se}from"./chunk-OSFKXKXD.js";import{a as ge,b as he}from"./chunk-7GHU4UQ7.js";import"./chunk-P36L53XK.js";import{a as ft}from"./chunk-FBUI4SQJ.js";import{a as A}from"./chunk-B7JILYJO.js";import"./chunk-RVTAI3J3.js";import{b as Re}from"./chunk-DAV2SMOY.js";import"./chunk-P5ZPLAYA.js";import"./chunk-CVMP55UZ.js";import"./chunk-7UBLUR5O.js";import"./chunk-AZM2EGTF.js";import"./chunk-HI7JDHS3.js";import{e as ct}from"./chunk-JQZRKOKE.js";import{c as le,d as pe}from"./chunk-ANG5YF2J.js";import{b as fe}from"./chunk-4GL5YTWS.js";import{f as dt,h as _e}from"./chunk-2JCKXI2B.js";import"./chunk-YLHU3GDJ.js";import{a as V,b as me,c as ce,d as se,e as de,f as ue,g as st}from"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import{w as re,x as ae}from"./chunk-TCF45ELT.js";import"./chunk-ZWHB7NI7.js";import{c as lt,e as X,f as Z,g as pt,i as G,k as ee,m as te,p as ie,u as mt,w as we,z as ne}from"./chunk-ALX7UOMP.js";import{a as at}from"./chunk-HAZ5H5ZV.js";import{a as rt}from"./chunk-4LFQJHJZ.js";import"./chunk-F2X3VGZZ.js";import{C as ot,F as J,M as Q,c as tt,f as Ie,k as it,l as K,m as $,s as nt}from"./chunk-BYD3JK4R.js";import{Cb as C,D as Ee,Ga as T,Ic as x,Jc as S,Kb as c,Kc as Ze,Lc as s,Nb as N,Pb as O,Qb as Je,Sb as Qe,Tb as Xe,Ub as i,V as ze,Vb as n,W as Ue,Wb as E,X as j,Xc as R,Yc as et,Z as k,_b as L,ba as Ke,c as P,cb as $e,dc as w,ec as d,gb as l,ha as h,pa as y,pc as r,qa as b,qc as u,rc as D,s as We,uc as W,vc as q,wb as M,wc as z,xc as U,yc as I,zc as F}from"./chunk-YVEUYFCE.js";import{a as g,b as v,c as Ve,e as Ye}from"./chunk-YQFG5XE2.js";var B=(()=>{class t{constructor(){this.httpService=h(at),this.authService=h(Fe)}fetchGeneralLedgerLoader(e={}){return this.httpService.post(void 0,"api/GeneralLedgerLoader/GetFilter",e)}fetchGeneralLedgerReport(e){return this.httpService.post(void 0,"api/GeneralLedger/Get",e)}exportGeneralLedger(e){let a={responseType:"blob"};return this.httpService.post(void 0,"/api/GeneralLedgerExport/GetGeneralLedgerExport",e,a)}getCustomerSuggestions(e){let a={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetCustomerSuggestion",{params:a})}getSupplierSuggestions(e){let a={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetSupplierSuggestion",{params:a})}getCashierSuggestions(e){let a={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/api/ac/GetUserSuggestion",{params:a})}getBalanceSheetLoader(){return this.httpService.get(void 0,"/api/BalanceSheetLoader/GetBalanceSheet")}getBalanceSheet(e,a={}){let o=new nt({fromObject:Object.fromEntries(Object.entries(e).map(([f,_])=>[f,String(_)]))}),m=g({params:o},a);return this.httpService.get(void 0,"/api/BalanceSheet",m)}getIncomeStatementLoader(){return this.httpService.get(void 0,"api/IncomeStatementLoader/Filter")}getIncomeStatement(e,a={}){return this.httpService.post(void 0,"api/IncomeStatement/List",g({},e),a)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=Ke({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Gt={metadata:{filter:{categoryID:"",from:new Date().toISOString(),to:new Date().toISOString(),iDs:[],outletIDs:[]},options:{accounts:[],outlets:[]},roles:{isInEmptyOutletRole:!1}},items:{data:[],pageTitle:""},filter:{listAccountID:[],categoryID:null,OutletID:[],ContactID:null,from:null,to:null}},Me=me(ue(Gt),st("General Ledger Store"),ce(t=>({debitTotal:R(()=>t.items.data().reduce((p,e)=>p+e.data.reduce((a,o)=>a+(o.debitAmount||0),0),0)),creditTotal:R(()=>t.items.data().reduce((p,e)=>p+e.data.reduce((a,o)=>a+(o.creditAmount||0),0),0))})),de(t=>{let p=h(B),e={updateFilter:a=>{V(t,o=>v(g({},o),{filter:a}))},loadList:H(P(Ee(a=>Array.isArray(a.listAccountID)&&a.listAccountID.length>0),j(a=>p.fetchGeneralLedgerReport(a).pipe(Y({next:o=>{V(t,m=>v(g({},m),{items:o}))},error:o=>{console.error(o)}}))))),loadLoader:H(P(j(a=>p.fetchGeneralLedgerLoader(a).pipe(Y({next:o=>{V(t,m=>v(g({},m),{metadata:o,filter:v(g({},m.filter),{categoryID:o.filter.categoryID})})),e.loadList(t.filter)},error:o=>{console.error(o)}}))),A("res")))};return e}),se({onInit:t=>{t.loadLoader({})}}));var jt=()=>({height:"calc(100vh - 70px)"}),Nt=()=>({height:"calc(100vh - 100px)"}),qt=t=>["/pages/journal/journal-entry/",t],Ht=t=>({"ng-invalid ng-dirty":t}),Yt=()=>({scrollHeight:"250px"});function Wt(t,p){if(t&1){let e=L();i(0,"div",11)(1,"a",12),r(2,"Return to Accounts"),n(),i(3,"p-button",13),w("onClick",function(){y(e);let o=d();return b(o.onExport())}),n()()}}function zt(t,p){if(t&1&&(i(0,"div",11)(1,"span",16)(2,"h3",17),r(3),n()(),i(4,"span",16)(5,"h3",17),r(6),n()()()),t&2){let e=d().$implicit;l(3),u(e.name),l(3),D(" (",e.chartOfAccountCode,") ")}}function Ut(t,p){t&1&&(i(0,"tr")(1,"th",18),r(2,"Outlet"),n(),i(3,"th",18),r(4,"No."),n(),i(5,"th",18),r(6,"Date"),n(),i(7,"th",18),r(8,"Name"),n(),i(9,"th",18),r(10,"Description"),n(),i(11,"th",19),r(12,"Debit"),n(),i(13,"th",20),r(14,"Credit"),n(),i(15,"th",20),r(16,"Balance"),n()())}function Kt(t,p){if(t&1&&(i(0,"td",25),r(1,"Starting Balance"),n(),i(2,"td",26),r(3),x(4,"number"),n()),t&2){let e=d(2).$implicit;l(3),D(" ",S(4,1,e.startBalance)," ")}}function $t(t,p){if(t&1&&(i(0,"tr"),C(1,Kt,5,3),n(),i(2,"tr")(3,"td",21),r(4),n(),i(5,"td",21)(6,"a",22),r(7),n()(),i(8,"td",21),r(9),x(10,"date"),n(),i(11,"td",21)(12,"a",23),r(13),n()(),E(14,"td"),i(15,"td",24),r(16),x(17,"number"),n(),i(18,"td",24),r(19),x(20,"number"),n(),i(21,"td",24),r(22),x(23,"number"),n()()),t&2){let e=p.$implicit,a=p.rowIndex,o=d(4);l(),O(a===0&&o.store.items().data.length>1?1:-1),l(3),u(e.outletName),l(2),c("routerLink",F(19,qt,e.id)),l(),u(e.number),l(2),u(Ze(10,10,e.date,"dd MMM yyyy")),l(3),c("href",o.authService.getTenantExternalURL()+"/menu/Contacts/Contact/Customers/Info?ID="+e.contactID,$e),l(),u(e.contactName),l(3),D(" ",S(17,13,e.debitAmount)," "),l(3),D(" ",S(20,15,e.creditAmount)," "),l(3),u(S(23,17,e.balance))}}function Jt(t,p){if(t&1&&(i(0,"tr"),E(1,"td",27),i(2,"td",28),r(3,"Total"),n(),i(4,"td",28),r(5),x(6,"number"),n(),i(7,"td",28),r(8),x(9,"number"),n(),E(10,"td"),n()),t&2){let e=d().$index,a=d(3);l(5),D(" ",S(6,2,a.store.items().data[e].debitTotal)," "),l(3),D(" ",S(9,4,a.store.items().data[e].creditTotal)," ")}}function Qt(t,p){t&1&&(i(0,"tr")(1,"td",29)(2,"span"),r(3,"No records found."),n()()())}function Xt(t,p){if(t&1&&(i(0,"p-table",15),C(1,zt,7,2,"ng-template",null,3,s)(3,Ut,17,0,"ng-template",null,4,s)(5,$t,24,21,"ng-template",null,5,s)(7,Jt,11,6,"ng-template",null,6,s)(9,Qt,4,0,"ng-template",null,7,s),n()),t&2){let e=p.$implicit;c("value",e.data)("scrollable",!0)}}function Zt(t,p){if(t&1&&(i(0,"p-panel")(1,"p-scroll-panel"),Qe(2,Xt,11,2,"p-table",15,Je),n()()),t&2){let e=d(2);N(I(4,jt)),l(),N(I(5,Nt)),l(),Xe(e.store.items().data)}}function ei(t,p){if(t&1&&C(0,Zt,4,6,"p-panel",14),t&2){let e=d();c("ngIf",e.store.items()&&e.store.items().data.length)}}function ti(t,p){if(t&1&&(i(0,"div",11)(1,"div",16)(2,"span",45),r(3),n()(),i(4,"div")(5,"span"),r(6,"-"),n()(),i(7,"div",16)(8,"span",46),r(9),n()()()),t&2){let e=p.$implicit;l(3),D("(",e.code,")"),l(6),u(e.name)}}function ii(t,p){if(t&1&&(i(0,"div",11)(1,"div",16)(2,"span",45),r(3),n()(),i(4,"div")(5,"span"),r(6,"-"),n()(),i(7,"div",16)(8,"span",46),r(9),n()()()),t&2){let e=p.$implicit;l(3),D("(",e.code,")"),l(6),u(e.name)}}function ni(t,p){if(t&1&&(i(0,"div",47)(1,"div"),r(2),n()()),t&2){let e=p.$implicit;l(2),u(e.value)}}function oi(t,p){if(t&1){let e=L();i(0,"div",31)(1,"label",32),r(2,"Customer"),n(),i(3,"p-autocomplete",48),w("completeMethod",function(o){y(e);let m=d(2);return b(m.searchCustomer(o))}),n()()}if(t&2){let e=d(2);l(3),c("suggestions",e.customerSuggestions())}}function ri(t,p){if(t&1){let e=L();i(0,"div",31)(1,"label",32),r(2,"Supplier"),n(),i(3,"p-autocomplete",48),w("completeMethod",function(o){y(e);let m=d(2);return b(m.searchSupplier(o))}),n()()}if(t&2){let e=d(2);l(3),c("suggestions",e.supplierSuggestions())}}function ai(t,p){if(t&1){let e=L();i(0,"form",30)(1,"div",31)(2,"label",32),r(3,"Accounts"),n(),i(4,"p-multiselect",33),w("onChange",function(o){y(e);let m=d();return b(m.onAccountChange(o))}),C(5,ti,10,2,"ng-template",null,8,s)(7,ii,10,2,"ng-template",null,9,s),n()(),i(9,"div",31)(10,"label",32),r(11,"From"),n(),E(12,"p-datepicker",34),n(),i(13,"div",31)(14,"label",32),r(15,"To"),n(),E(16,"p-datepicker",35),n(),i(17,"div",31)(18,"label",32),r(19,"Outlets"),n(),i(20,"p-multiselect",36),C(21,ni,3,1,"ng-template",null,9,s),n()(),i(23,"div",31)(24,"label",32),r(25,"Category"),n(),i(26,"p-treeselect",37),w("onFocus",function(){y(e);let o=d();return b(o.onCategoryFocus())}),n()(),i(27,"div",31)(28,"label",38),r(29,"Contact Type"),n(),i(30,"div",39)(31,"div",40),E(32,"p-radiobutton",41),i(33,"label",42),r(34,"Customer"),n()(),i(35,"div",40),E(36,"p-radiobutton",43),i(37,"label",44),r(38,"Supplier"),n()()()(),C(39,oi,4,1,"div",31)(40,ri,4,1,"div",31),n()}if(t&2){let e=d();c("formGroup",e.generalLedgerFilterForm),l(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("maxlength",5)("options",e.store.metadata().options.accounts)("ngClass",F(20,Ht,e.generalLedgerFilterForm.get("listAccountID").invalid&&e.generalLedgerFilterForm.get("listAccountID").touched||e.generalLedgerFilterForm.get("listAccountID").dirty)),l(8),c("iconDisplay","input")("showIcon",!0),l(4),c("iconDisplay","input")("showIcon",!0),l(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.metadata().options.outlets),l(6),c("virtualScroll",!0)("virtualScrollItemSize",50)("virtualScrollOptions",I(22,Yt))("options",e.categoriesOptions()),l(6),c("value",0),l(4),c("value",1),l(3),O(e.generalLedgerFilterForm.get("contactType").value?40:39)}}var Rt=function(t){return t[t.Customer=0]="Customer",t[t.Supplier=1]="Supplier",t}(Rt||{}),Tt=(()=>{class t{constructor(){this.dialogFilterVisible=T(!1),this.reportService=h(B),this.coaService=h(ft),this.authService=h(Fe),this.store=h(Me),this.categoriesOptions=T([]),this.customerSuggestions=T([]),this.supplierSuggestions=T([]),this.route=h(ot),this.dayjsService=h(ye),this.initDialogVisible=T(!0),this.fb=h(we),this.toastr=h(rt)}ngOnInit(){this.generateFilterForm(),this.route.queryParamMap.pipe(We(e=>e.get("id")),k(e=>{e&&(this.initDialogVisible.update(a=>!a),this.generalLedgerFilterForm.patchValue({listAccountID:[e]}),this.store.updateFilter(v(g({},this.store.filter()),{listAccountID:[e]})))})).subscribe(),this.clearContactValueOnContactTypeChange()}clearContactValueOnContactTypeChange(){this.generalLedgerFilterForm.get("contactType")?.valueChanges.subscribe(()=>this.generalLedgerFilterForm.get("ContactID")?.setValue(""))}onAccountChange(e){console.log("Account Change Event:",e),Array.isArray(e.value)&&e.value.length>5&&this.toastr.warning("Please select at least 5 accounts for the general ledger report.","Warning")}onCategoryFocus(){this.coaService.getCachedCategoriesOptions().pipe(A("getCachedCategoriesOptions"),k(e=>this.categoriesOptions.set(e))).subscribe()}generateFilterForm(){this.generalLedgerFilterForm=this.fb.group({listAccountID:new G([],[lt.required]),categoryID:new G(null),OutletID:new G([]),ContactID:new G(""),from:new G(null),to:new G(null),contactType:[Rt.Customer]})}onFilterEvent(e){console.log(e),this.dialogFilterVisible.update(a=>!a)}onFilterOKEvent(){let f=this.generalLedgerFilterForm.value,{from:e,to:a}=f,o=Ve(f,["from","to"]);if(this.generalLedgerFilterForm.invalid){this.generalLedgerFilterForm.markAllAsTouched(),this.dialogFilterVisible.set(!0);return}let m={categoryID:o.categoryID?.key??null,ContactID:o.ContactID.length?o.ContactID:null,OutletID:o.OutletID.length?o.OutletID:null,listAccountID:o.listAccountID,from:this.dayjsService.from(e)?this.dayjsService.from(e).format():null,to:this.dayjsService.from(a)?this.dayjsService.from(a).format():null};this.dialogFilterVisible.update(_=>!_),this.store.updateFilter(m),this.dialogFilterVisible.set(!1)}searchCustomer(e){this.reportService.getCustomerSuggestions(e.query).pipe(k(a=>this.customerSuggestions.set(a))).subscribe()}searchSupplier(e){this.reportService.getSupplierSuggestions(e.query).pipe(k(a=>this.supplierSuggestions.set(a))).subscribe()}onExport(){let f=this.generalLedgerFilterForm.value,{from:e,to:a}=f,o=Ve(f,["from","to"]),m={categoryID:o.categoryID?.key??null,ContactID:o.ContactID.length?o.ContactID:null,OutletID:o.OutletID.length?o.OutletID:null,listAccountID:o.listAccountID,from:this.dayjsService.from(e)?this.dayjsService.from(e).format():null,to:this.dayjsService.from(a)?this.dayjsService.from(a).format():null};this.reportService.exportGeneralLedger(m).pipe(A("exportGeneralLedger"),k(_=>{St(_,`general-ledger-${this.dayjsService.now.format("D-MM-YYYY")}.${_.type.split("/")[1]}`,_.type)})).subscribe()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-general-ledger"]],features:[U([Me])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["caption",""],["header",""],["body",""],["footer",""],["emptymessage",""],["selectedItem",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isDialogFilterVisible","isFilterable","isInitDialogFilterVisible"],[1,"d-flex","gap-2"],["routerLink","/pages/chart-of-account/account",1,"p-button","p-button-secondary","p-button-outlined","fs-3"],["severity","secondary","variant","outlined","icon","fa-solid fa-download","label","Export",3,"onClick"],[3,"style",4,"ngIf"],["scrollHeight","calc(100vh - 150px)",3,"value","scrollable"],[1,""],[1,"fs-5","fw-semibold"],[2,"width","10%"],[1,"text-end",2,"width","10%"],[1,"text-end",2,"width","20%"],[1,"text-break"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"href"],[1,"text-end","text-break"],["colspan","7",1,"text-end"],[1,"text-end"],["colspan","4"],[1,"text-end","fw-semibold"],["colspan","8"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["showClear","","filter","","filterBy","code,name","display","chip","formControlName","listAccountID","appendTo","body","optionLabel","name","optionValue","id","placeholder","Select Accounts",3,"onChange","virtualScroll","virtualScrollItemSize","maxlength","options","ngClass"],["showClear","","formControlName","from","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["showClear","","formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["showClear","","display","chip","formControlName","OutletID","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlets",3,"virtualScroll","virtualScrollItemSize","options"],["showClear","","filter","","filterBy","label","formControlName","categoryID","appendTo","body","containerStyleClass","w-100","optionLabel","label","optionValue","id","placeholder","Select Category",3,"onFocus","virtualScroll","virtualScrollItemSize","virtualScrollOptions","options"],["for",""],[1,"d-flex","gap-3"],[1,"d-flex","align-items-center","gap-2"],["name","contactType","formControlName","contactType","inputId","customer",3,"value"],["for","customer",1,"m-0"],["name","contactType","formControlName","contactType","inputId","supplier",3,"value"],["for","supplier",1,"m-0"],[1,"h-full","align-middle"],[1,"text-truncate","d-inline-block","h-full","align-middle"],[1,"flex","items-center","gap-2"],["formControlName","ContactID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"]],template:function(a,o){if(a&1){let m=L();i(0,"app-main-panel",10),z("isDialogFilterVisibleChange",function(_){return y(m),q(o.dialogFilterVisible,_)||(o.dialogFilterVisible=_),b(_)})("isInitDialogFilterVisibleChange",function(_){return y(m),q(o.initDialogVisible,_)||(o.initDialogVisible=_),b(_)}),w("filterConfirmed",function(){return y(m),b(o.onFilterOKEvent())}),C(1,Wt,4,0,"ng-template",null,0,s)(3,ei,1,1,"ng-template",null,1,s)(5,ai,41,23,"ng-template",null,2,s),n()}a&2&&(c("pageTitle",o.store.items().pageTitle.length?o.store.items().pageTitle:"General Ledger"),W("isDialogFilterVisible",o.dialogFilterVisible),c("isFilterable",!0),W("isInitDialogFilterVisible",o.initDialogVisible))},dependencies:[_e,$,tt,Ie,K,it,fe,Se,xe,dt,ae,re,Re,he,ge,Le,Te,ne,ee,X,Z,mt,te,ie,ve,Ce,De,oe,ct,xt,ht,gt,pe,le,Q,J,_t,ut],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{padding:.75rem 1rem .75rem 0}"],changeDetection:0})}}return t})();var li={data:{},filter:{EntityID:[],CashierID:null,Text:null,from:null,to:null},isLoading:!0,loader:{options:{outlets:[]},filter:{from:"",to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}}},Be=me(ue(li),ce(t=>{let p={totalCOGS:R(()=>{let e=t.data()?.data?.cogs;return Array.isArray(e)?e.reduce((a,o)=>a+(o?.amount??0),0):0}),totalRevenue:R(()=>{let e=t.data()?.data?.revenue;return Array.isArray(e)?e.reduce((a,o)=>a+(o?.amount??0),0):0}),totalExpense:R(()=>{let e=t.data()?.data?.expense;return Array.isArray(e)?e.reduce((a,o)=>a+(o?.amount??0),0):0}),grossProfit:R(()=>Array.isArray(t.data()?.data?.cogs)&&Array.isArray(t.data()?.data?.revenue)?p.totalRevenue()-p.totalCOGS():0),profitOrLoss:R(()=>p.totalRevenue()-p.totalCOGS()-p.totalExpense()),isDataEmpty:R(()=>Object.keys(t.data()?.data??{}).length===0)};return p}),de(t=>{let p=h(B),e=h(ye),a={updateFilter(o){V(t,m=>v(g({},m),{filter:g(g({},m.filter),o)}))},getLoader:H(P(j(()=>p.getIncomeStatementLoader().pipe(Y({next:o=>{V(t,m=>v(g({},m),{loader:o,filter:v(g({},m.filter),{from:e.from(o.filter.from).format(),to:e.from(o.filter.to).format()})})),a.getIncomeStatement(t.filter)},error:o=>{console.error(o)}}))))),getIncomeStatement:H(P(j(o=>p.getIncomeStatement(o).pipe(Ue(()=>V(t,m=>v(g({},m),{isLoading:!0}))),Y({next:m=>{V(t,f=>v(g({},f),{data:m,isLoading:!1}))},error:m=>{console.error(m)}})))))};return a}),se({onInit:t=>{t.getLoader()}}));var pi=()=>({height:"calc(100vh - 70px)"}),mi=()=>({height:"calc(100vh - 150px)"}),ke=()=>({}),Oe=t=>["/pages/chart-of-account/account/",t],Ge=()=>["/pages/report/general-ledger"],Ae=t=>({id:t});function ci(t,p){if(t&1){let e=L();i(0,"div",8)(1,"p-button",9),w("onClick",function(){y(e);let o=d();return b(o.onExport())}),n()()}}function si(t,p){t&1&&(i(0,"tr")(1,"th",14),r(2,"Code"),n(),i(3,"th",15),r(4,"Name"),n(),i(5,"th",16),r(6,"Total"),n()())}function di(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",17),r(5),n()(),i(6,"td",16)(7,"a",18),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Oe,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,Ge))("queryParams",F(11,Ae,e.accountID)),l(),u(S(9,6,e.amount))}}function ui(t,p){if(t&1&&(i(0,"tr"),E(1,"td",19),i(2,"td",20)(3,"div",21)(4,"span",22),r(5,"Total Revenue :"),n(),i(6,"span",23),r(7),x(8,"number"),n()()()()),t&2){let e=d(4);l(7),u(S(8,1,e.store.totalRevenue()))}}function _i(t,p){t&1&&(i(0,"tr")(1,"td",24)(2,"span"),r(3,"No revenue records available"),n()()())}function fi(t,p){if(t&1&&(i(0,"h6",12),r(1,"Revenue"),n(),i(2,"p-table",13),C(3,si,7,0,"ng-template",null,3,s)(5,di,10,13,"ng-template",null,4,s)(7,ui,9,3,"ng-template",null,5,s)(9,_i,4,0,"ng-template",null,6,s),n()),t&2){let e,a=d(3);l(2),c("value",(e=a.store.data())==null||e.data==null?null:e.data.revenue)}}function gi(t,p){t&1&&(i(0,"tr")(1,"th",14),r(2,"Code"),n(),i(3,"th",15),r(4,"Name"),n(),i(5,"th",25),r(6,"Total"),n()())}function hi(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",17),r(5),n()(),i(6,"td",16)(7,"a",18),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Oe,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,Ge))("queryParams",F(11,Ae,e.AccountID)),l(),u(S(9,6,e.amount))}}function xi(t,p){if(t&1&&(i(0,"tr"),E(1,"td",26),i(2,"td",20)(3,"div",21)(4,"span",22),r(5,"Total COGS :"),n(),i(6,"span",23),r(7),x(8,"number"),n()()()(),i(9,"tr"),E(10,"td",26),i(11,"td",20)(12,"div",21)(13,"span",22),r(14,"Gross Profit :"),n(),i(15,"span",23),r(16),x(17,"number"),n()()()()),t&2){let e=d(4);l(7),u(S(8,2,e.store.totalCOGS())),l(9),u(S(17,4,e.store.grossProfit()))}}function Si(t,p){t&1&&(i(0,"tr")(1,"td",24)(2,"span"),r(3,"No COGS records available"),n()()())}function Ci(t,p){if(t&1&&(i(0,"h4",12),r(1,"COGS"),n(),i(2,"p-table",13),C(3,gi,7,0,"ng-template",null,3,s)(5,hi,10,13,"ng-template",null,4,s)(7,xi,18,6,"ng-template",null,5,s)(9,Si,4,0,"ng-template",null,6,s),n()),t&2){let e,a=d(3);l(2),c("value",(e=a.store.data())==null||e.data==null?null:e.data.cogs)}}function vi(t,p){t&1&&(i(0,"tr")(1,"th",14),r(2,"Code"),n(),i(3,"th",15),r(4,"Name"),n(),i(5,"th",16),r(6,"Total"),n()())}function yi(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",17),r(5),n()(),i(6,"td",16)(7,"a",18),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Oe,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,Ge))("queryParams",F(11,Ae,e.AccountID)),l(),u(S(9,6,e.amount))}}function bi(t,p){if(t&1&&(i(0,"tr"),E(1,"td",26),i(2,"td",20)(3,"div",21)(4,"span",22),r(5,"Total Expense :"),n(),i(6,"span",23),r(7),x(8,"number"),n()()()(),i(9,"tr"),E(10,"td",26),i(11,"td",20)(12,"div",21)(13,"span",22),r(14,"Profit / Loss :"),n(),i(15,"span",23),r(16),x(17,"number"),n()()()()),t&2){let e=d(4);l(7),u(S(8,2,e.store.totalExpense())),l(9),u(S(17,4,e.store.profitOrLoss()))}}function Ei(t,p){t&1&&(i(0,"tr")(1,"td",24)(2,"span"),r(3,"No expense records available"),n()()())}function Ii(t,p){if(t&1&&(i(0,"h4",12),r(1,"Expense"),n(),i(2,"p-table",13),C(3,vi,7,0,"ng-template",null,3,s)(5,yi,10,13,"ng-template",null,4,s)(7,bi,18,6,"ng-template",null,5,s)(9,Ei,4,0,"ng-template",null,6,s),n()),t&2){let e,a=d(3);l(2),c("value",(e=a.store.data())==null||e.data==null?null:e.data.expense)}}function Fi(t,p){if(t&1&&(i(0,"p-scroll-panel")(1,"div",11),C(2,fi,11,1)(3,Ci,11,1)(4,Ii,11,1),n()()),t&2){let e,a,o,m=d(2);N(I(5,mi)),l(2),O(m.Object.keys((e=m.store.data().data)!==null&&e!==void 0?e:I(6,ke)).length>0?2:-1),l(),O(m.Object.keys((a=(a=m.store.data().data)==null?null:a.cogs)!==null&&a!==void 0?a:I(7,ke)).length>0?3:-1),l(),O(m.Object.keys((o=(o=m.store.data().data)==null?null:o.expense)!==null&&o!==void 0?o:I(8,ke)).length>0?4:-1)}}function wi(t,p){if(t&1&&(i(0,"p-panel"),C(1,Fi,5,9,"p-scroll-panel",10),n()),t&2){let e=d();N(I(3,pi)),l(),c("ngIf",e.store.data())}}function Di(t,p){if(t&1){let e=L();i(0,"form",27)(1,"div",28)(2,"label",29),r(3,"Outlet"),n(),E(4,"p-multiselect",30),n(),i(5,"div",28)(6,"label",29),r(7,"Cashier"),n(),i(8,"p-autocomplete",31),w("completeMethod",function(o){y(e);let m=d();return b(m.onCashierSearch(o))})("onSelect",function(o){y(e);let m=d();return b(m.onCashierSelect(o))}),n()(),i(9,"div",28)(10,"label",29),r(11,"From"),n(),E(12,"p-datepicker",32),n(),i(13,"div",28)(14,"label",29),r(15,"To"),n(),E(16,"p-datepicker",33),n()()}if(t&2){let e=d();c("formGroup",e.formFilter),l(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.loader().options.outlets)("showClear",!0),l(4),c("showClear",!0)("suggestions",e.cashierSuggestions())("showClear",!0)}}var Lt=(()=>{class t{constructor(){this.dayjsService=h(ye),this.store=h(Be),this.fb=h(we),this.reportService=h(B),this.isInitDialogFilterVisible=T(!1),this.dialogFilterVisible=T(!1),this.cashierSuggestions=T([]),this.cashierHashMap=new Map,this.Object=Object,et(()=>{this.store.filter()&&this.initForm()})}ngOnInit(){this.initForm(),console.log(this.cashierHashMap.entries())}onSearch(e){this.store.updateFilter(v(g({},this.store.filter()),{Text:e}))}onCashierSearch(e){this.reportService.getCashierSuggestions(e.query).pipe(A("Cashier Suggestions"),k(a=>this.cashierSuggestions.set(a))).subscribe()}initForm(){let e=this.store.filter();console.log("initForm",this.cashierHashMap.get(e.CashierID)),this.formFilter=this.fb.group({EntityID:this.fb.control(e.EntityID??[]),CashierID:this.fb.control(this.cashierHashMap.get(e.CashierID)??""),Text:this.fb.control(e.Text??""),from:this.fb.control(e.from?this.dayjsService.from(e.from).toDate():null),to:this.fb.control(e.to?this.dayjsService.from(e.to).toDate():null)})}onFilterOK(){let e=this.formFilter.getRawValue(),a=Object.entries(e).reduce((o,[m,f])=>(m==="from"||m==="to"?f instanceof Date&&(o[m]=this.dayjsService.from(f).format()):o[m]=f||null,o),{});this.store.updateFilter(g(g({},this.store.filter()),a)),this.dialogFilterVisible.update(o=>!o),console.log("body",e)}onCashierSelect(e){console.log("Cashier selected:",e),!this.cashierHashMap.has(e.value.Key)&&(this.cashierHashMap.set(e.value.Key,e.value.Value),console.log("Cashier HashMap:",this.cashierHashMap))}onExport(){let e=v(g({},this.store.filter()),{export:!0,ExportPageNumber:1,ExportRowCount:1e4});this.reportService.getIncomeStatement(e,{responseType:"blob"}).pipe(A("Export Profit & Loss"),k(a=>{let o=a.type,m=[a],f=document.createElement("a");f.href=window.URL.createObjectURL(new Blob(m,{type:o}));let _=`profit-and-loss.${o.split("/")[1]}`;f.setAttribute("download",_),document.body.appendChild(f),f.click(),document.body.removeChild(f)})).subscribe()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-income-statement"]],features:[U([Be])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","isFilterable","pageTitle","isDialogFilterVisible","isInitDialogFilterVisible"],[1,"d-flex","gap-2"],["severity","secondary","variant","outlined","icon","fa-solid fa-download","label","Export",3,"onClick"],[3,"style",4,"ngIf"],[1,"d-flex","flex-column","gap-3"],[1,"fs-5","fw-semibold"],[3,"value"],[2,"width","20%"],[2,"width","30%"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"routerLink","queryParams"],["colspan","2 ",1,"fw-semibold","text-end",2,"width","50%"],[1,"text-end","fw-semibold"],[1,"row"],[1,"col-9"],[1,"col"],["colspan","3",1,""],[1,"text-end",2,"min-width","10%"],["colspan","2",1,"fw-semibold"],[1,"d-flex","flex-column","gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for",""],["formControlName","EntityID","filterBy","value","appendTo","body","display","chip","optionLabel","value","optionValue","key","placeholder","Select an Outlet",3,"virtualScroll","virtualScrollItemSize","options","showClear"],["appendTo","body","formControlName","CashierID","optionLabel","Value","optionValue","Key","styleClass","w-100","inputStyleClass","w-100","field","Value","placeholder","Search a cashier",3,"completeMethod","onSelect","showClear","suggestions"],["formControlName","from","styleClass","w-100","appendTo","body"],["formControlName","to","styleClass","w-100","appendTo","body"]],template:function(a,o){if(a&1){let m=L();i(0,"app-main-panel",7),z("isDialogFilterVisibleChange",function(_){return y(m),q(o.dialogFilterVisible,_)||(o.dialogFilterVisible=_),b(_)})("isInitDialogFilterVisibleChange",function(_){return y(m),q(o.isInitDialogFilterVisible,_)||(o.isInitDialogFilterVisible=_),b(_)}),w("filterConfirmed",function(){return y(m),b(o.onFilterOK())}),C(1,ci,2,0,"ng-template",null,0,s)(3,wi,2,4,"ng-template",null,1,s)(5,Di,17,8,"ng-template",null,2,s),n()}a&2&&(c("isFilterable",!0)("pageTitle",o.store.data().pageTitle),W("isDialogFilterVisible",o.dialogFilterVisible)("isInitDialogFilterVisible",o.isInitDialogFilterVisible))},dependencies:[_e,$,Ie,K,Re,he,ge,ne,ee,X,Z,te,ie,ve,Ce,fe,Se,xe,pe,le,oe,Q,J,Le,Te,ae,re],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Pe=Ye(Ct());var Ri={metadata:{options:{outlets:[]},filter:{to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}},data:{asset:[],liability:[],equity:[],pageTitle:""},filter:{date:(0,Pe.default)().format("YYYY-MM-DD"),listOutletParam:[]}},je=me(ue(Ri),ce(t=>({totalAsset:R(()=>t.data().asset.reduce((p,e)=>p+ +e.amount,0)),totalLiability:R(()=>t.data().liability.reduce((p,e)=>p+ +e.counterAmount,0)),totalEquity:R(()=>t.data().equity.reduce((p,e)=>p+ +e.counterAmount,0))})),de(t=>{let p=h(B),e={updateFilter:a=>{V(t,o=>v(g({},o),{filter:a}))},fetchBalanceSheet:H(P(Ee(()=>{let a=t.filter();return Object.entries(a).every(([o,m])=>m!=null&&m!=="")}),j(a=>p.getBalanceSheet(a).pipe(Y({next:o=>{V(t,m=>v(g({},m),{data:o}))},error:o=>{console.error(o)}}))),ze(1))),fetchLoader:H(P(j(()=>p.getBalanceSheetLoader().pipe(Y({next:a=>{V(t,o=>v(g({},o),{metadata:a,filter:{date:(0,Pe.default)(a.filter.to).format("YYYY-MM-DD")}})),e.fetchBalanceSheet(t.filter)},error:a=>{console.error(a)}})))))};return e}),se(t=>({onInit:()=>{t.fetchLoader()}})));var Vt=Ye(Ct());var Ti=()=>({height:"calc(100vh - 70px)"}),Li=()=>({height:"calc(100vh - 100px)"}),Ne=t=>["/pages/chart-of-account/account/",t],qe=()=>["/pages/report/general-ledger"],He=t=>({id:t});function Vi(t,p){if(t&1){let e=L();i(0,"div",9)(1,"p-button",10),w("onClick",function(){y(e);let o=d();return b(o.onExport())}),n()()}}function Mi(t,p){t&1&&(i(0,"tr")(1,"th",15),r(2,"Code"),n(),i(3,"th"),r(4,"Asset"),n(),i(5,"th",16),r(6,"Total"),n()())}function Bi(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",17),r(5),n()(),i(6,"td",18)(7,"a",19),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Ne,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,qe))("queryParams",F(11,He,e.accountID)),l(),u(S(9,6,e.amount))}}function ki(t,p){if(t&1&&(i(0,"tr")(1,"td",20),r(2,"Total Asset"),n(),i(3,"td",21),r(4),x(5,"number"),n()()),t&2){let e=d(3);l(4),D(" ",S(5,1,e.store.totalAsset())," ")}}function Oi(t,p){t&1&&(i(0,"tr")(1,"td",22)(2,"span"),r(3,"No asset records found."),n()()())}function Gi(t,p){if(t&1&&(i(0,"h4",13),r(1,"Asset"),n(),i(2,"p-table",14),C(3,Mi,7,0,"ng-template",null,3,s)(5,Bi,10,13,"ng-template",null,4,s)(7,ki,6,3,"ng-template",null,5,s)(9,Oi,4,0,"ng-template",null,6,s),n()),t&2){let e=d(2);l(2),c("value",e.store.data().asset)}}function Ai(t,p){t&1&&(i(0,"tr")(1,"th",15),r(2,"Code"),n(),i(3,"th"),r(4,"Liability"),n(),i(5,"th",16),r(6,"Total"),n()())}function Pi(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",24),r(5),n()(),i(6,"td",18)(7,"a",19),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Ne,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,qe))("queryParams",F(11,He,e.accountID)),l(),u(S(9,6,e.counterAmount))}}function ji(t,p){if(t&1&&(i(0,"tr")(1,"td",20),r(2," Total Liability "),n(),i(3,"td",21),r(4),x(5,"number"),n()()),t&2){let e=d(3);l(4),D(" ",S(5,1,e.store.totalLiability())," ")}}function Ni(t,p){t&1&&(i(0,"tr")(1,"td",22)(2,"span"),r(3,"No liability records found."),n()()())}function qi(t,p){if(t&1&&(i(0,"h4",23),r(1,"Liability"),n(),i(2,"p-table",14),C(3,Ai,7,0,"ng-template",null,3,s)(5,Pi,10,13,"ng-template",null,4,s)(7,ji,6,3,"ng-template",null,5,s)(9,Ni,4,0,"ng-template",null,6,s),n()),t&2){let e=d(2);l(2),c("value",e.store.data().liability)}}function Hi(t,p){t&1&&(i(0,"tr")(1,"th",15),r(2,"Code"),n(),i(3,"th"),r(4,"Equity"),n(),i(5,"th",16),r(6,"Total"),n()())}function Yi(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",17),r(5),n()(),i(6,"td",18)(7,"a",19),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Ne,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,qe))("queryParams",F(11,He,e.accountID)),l(),u(S(9,6,e.counterAmount))}}function Wi(t,p){if(t&1&&(i(0,"tr")(1,"td",20),r(2,"Total Equity"),n(),i(3,"td",21),r(4),x(5,"number"),n()(),i(6,"tr")(7,"td",20),r(8," Total Liability + Equity "),n(),i(9,"td",21),r(10),x(11,"number"),n()()),t&2){let e=d(3);l(4),D(" ",S(5,2,e.store.totalEquity())," "),l(6),D(" ",S(11,4,e.store.totalLiability()+e.store.totalEquity())," ")}}function zi(t,p){t&1&&(i(0,"tr")(1,"td",22)(2,"span"),r(3,"No equity records found."),n()()())}function Ui(t,p){if(t&1&&(i(0,"h4",23),r(1,"Equity"),n(),i(2,"p-table",14),C(3,Hi,7,0,"ng-template",null,3,s)(5,Yi,10,13,"ng-template",null,4,s),r(7," <"),C(8,Wi,12,6,"ng-template",null,5,s)(10,zi,4,0,"ng-template",null,6,s),n()),t&2){let e=d(2);l(2),c("value",e.store.data().equity)}}function Ki(t,p){if(t&1&&(i(0,"p-panel",11)(1,"p-scroll-panel")(2,"div",12),C(3,Gi,11,1)(4,qi,11,1)(5,Ui,12,1),n()()()),t&2){let e=d();N(I(8,Ti)),c("showHeader",!1),l(),N(I(9,Li)),l(2),O(e.Object.keys(e.store.data().asset).length>0?3:-1),l(),O(e.Object.keys(e.store.data().liability).length>0?4:-1),l(),O(e.Object.keys(e.store.data().equity).length>0?5:-1)}}function $i(t,p){if(t&1&&(i(0,"div",30)(1,"div"),r(2),n()()),t&2){let e=p.$implicit;l(2),u(e.value)}}function Ji(t,p){if(t&1&&(i(0,"form",25)(1,"div",26)(2,"label",27),r(3,"Outlet"),n(),i(4,"p-multiselect",28),C(5,$i,3,1,"ng-template",null,7,s),n()(),i(7,"div",26)(8,"label",27),r(9,"From"),n(),E(10,"p-datepicker",29),n()()),t&2){let e=d();c("formGroup",e.filterForm),l(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.metadata().options.outlets)("showClear",!0),l(6),c("iconDisplay","input")("showIcon",!0)}}var Mt=(()=>{class t{constructor(){this.store=h(je),this.ReportServiceStore=h(B),this.dialogFilterVisible=T(!1),this.isInitDialogFilterVisible=T(!1),this.Object=Object}ngOnInit(){this.generateFilterForm()}generateFilterForm(){this.filterForm=new pt({date:new G(new Date),outletID:new G([])})}onFilterOKEvent(){let{date:e,outletID:a}=this.filterForm.value;this.store.updateFilter({date:(0,Vt.default)(e).format("YYYY-MM-DD"),listOutletParam:a}),this.dialogFilterVisible.update(o=>!o)}onExport(){let e=v(g({},this.store.filter()),{export:!0,ExportPageNumber:1,ExportRowCount:1e4});this.ReportServiceStore.getBalanceSheet(e,{responseType:"blob"}).pipe(A("Export Balance Sheet"),k(a=>{let o=a.type,m=[a],f=document.createElement("a");f.href=window.URL.createObjectURL(new Blob(m,{type:o}));let _=`balance-sheet.${o.split("/")[1]}`;f.setAttribute("download",_),document.body.appendChild(f),f.click(),document.body.removeChild(f)})).subscribe()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-balance-sheet"]],features:[U([je])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isFilterable","isDialogFilterVisible","isInitDialogFilterVisible"],[1,"d-flex","gap-2"],["severity","secondary","variant","outlined","icon","fa-solid fa-download","label","Export",3,"onClick"],[3,"showHeader"],[1,"d-flex","flex-column","gap-3"],[1,"fs-5","fw-semibold","mt-3"],[3,"value"],[2,"width","20%"],[1,"text-end",2,"width","5%"],["target","_blank",1,"link","link-primary",3,"routerLink"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink","queryParams"],["colspan","2",1,"fw-semibold","text-end"],[1,"text-end","fw-semibold"],["colspan","3",1,""],[1,"fs-5","fw-semibold"],["target","_blank",1,"link","link-primary","d-flex","align-items-center",3,"routerLink"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["formControlName","outletID","display","chip","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"virtualScroll","virtualScrollItemSize","options","showClear"],["formControlName","date","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],[1,"flex","items-center","gap-2"]],template:function(a,o){if(a&1){let m=L();i(0,"app-main-panel",8),z("isDialogFilterVisibleChange",function(_){return y(m),q(o.dialogFilterVisible,_)||(o.dialogFilterVisible=_),b(_)})("isInitDialogFilterVisibleChange",function(_){return y(m),q(o.isInitDialogFilterVisible,_)||(o.isInitDialogFilterVisible=_),b(_)}),w("filterConfirmed",function(){return y(m),b(o.onFilterOKEvent())}),C(1,Vi,2,0,"ng-template",null,0,s)(3,Ki,6,10,"ng-template",null,1,s)(5,Ji,11,7,"ng-template",null,2,s),n()}a&2&&(c("pageTitle",o.store.data().pageTitle)("isFilterable",!0),W("isDialogFilterVisible",o.dialogFilterVisible)("isInitDialogFilterVisible",o.isInitDialogFilterVisible))},dependencies:[_e,$,K,Se,xe,fe,ae,re,ne,ee,X,Z,te,ie,ve,Ce,he,ge,De,oe,pe,le,Q,J],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Bt=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-comparative-balance"]],decls:3,vars:0,template:function(a,o){a&1&&(i(0,"p"),r(1,"report-comparative-balance works!"),n(),r(2,`
2
- ,
3
- `))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var kt=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-cash-flow"]],decls:3,vars:0,template:function(a,o){a&1&&(i(0,"p"),r(1,"report-cash-flow works!"),n(),r(2,`
4
- ,
5
- `))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ot=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-trial-balance"]],decls:3,vars:0,template:function(a,o){a&1&&(i(0,"p"),r(1,"report-trial-balance works!"),n(),r(2,`
6
- ,
7
- `))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var sr=[{path:"",redirectTo:"general-ledger",pathMatch:"full"},{path:"",children:[{path:"general-ledger",component:Tt},{path:"profit-loss",component:Lt},{path:"balance-sheet",component:Mt},{path:"comparative-balance",component:Bt},{path:"trial-balance",component:Ot},{path:"cash-flow",component:kt}]}];export{sr as REPORTS_ROUTES};
package/chunk-7XDZM4MJ.js DELETED
@@ -1 +0,0 @@
1
- import{a as O,b as H}from"./chunk-Q7ITPAXT.js";import"./chunk-IZ2XPL4O.js";import{a as I,b as E}from"./chunk-JHCHHBCW.js";import{c as j,d as R}from"./chunk-ANG5YF2J.js";import"./chunk-4GL5YTWS.js";import{h as G}from"./chunk-2JCKXI2B.js";import{b as D,c as N}from"./chunk-YLHU3GDJ.js";import"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import{w as V,x as A}from"./chunk-TCF45ELT.js";import"./chunk-ZWHB7NI7.js";import"./chunk-ALX7UOMP.js";import"./chunk-HAZ5H5ZV.js";import{a as F}from"./chunk-4LFQJHJZ.js";import"./chunk-F2X3VGZZ.js";import{i as W,m as $}from"./chunk-BYD3JK4R.js";import{Cb as B,Ic as s,Jc as m,Kb as p,Lc as x,Nb as h,Ub as o,V as y,Vb as n,Wb as c,X as T,Z as S,_b as w,dc as _,ec as l,gb as a,h as v,ha as u,pa as g,qa as d,ra as b,s as f,sa as k,wb as M,xc as P,yc as C}from"./chunk-YVEUYFCE.js";import"./chunk-YQFG5XE2.js";var L=()=>({height:"calc(100vh - 100px)"});function z(i,q){if(i&1){let e=w();o(0,"div",3)(1,"p-button",4),_("onClick",function(){g(e);let r=l();return d(r.onFormat())}),n(),o(2,"p-button",5),s(3,"async"),s(4,"async"),_("onClick",function(){g(e);let r=l();return d(r.migrateWriteoffOutlet())}),n()()}if(i&2){let e=l();a(2),p("disabled",m(3,2,e.countInBooks$)!==0)("pTooltip",m(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function J(i,q){if(i&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),c(3,"app-migration-cards",7),s(4,"async"),b(),o(5,"svg",8),c(6,"path",9),n(),k(),c(7,"app-migration-cards",10),s(8,"async"),n()()()),i&2){let e=l();h(C(12,L)),a(),h(C(13,L)),a(2),p("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var fe=(()=>{class i{constructor(){this.migrateService=u(O),this.toastr=u(F),this.refresh$=new v(void 0),this.pageTitle="Write-Off Outlet"}ngOnInit(){let e=this.refresh$.pipe(T(()=>this.migrateService.getWriteOffOutletAccountCount()),S(t=>console.log("API response:",t)),y(1));this.countInPOS$=e.pipe(f(t=>Number(t.pos))),this.countInBooks$=e.pipe(f(t=>Number(t.books)))}migrateWriteoffOutlet(){this.migrateService.migrateWriteOffOutlet().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatWriteOff().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=M({type:i,selectors:[["app-writeoff-outlet"]],features:[P([O])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(t,r){t&1&&(o(0,"app-main-panel",2),B(1,z,5,6,"ng-template",null,0,x)(3,J,9,14,"ng-template",null,1,x),n()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[G,$,W,E,I,R,j,N,D,H,A,V],encapsulation:2})}}return i})();export{fe as WriteOffOutletComponent};
package/chunk-AF77PUJO.js DELETED
@@ -1 +0,0 @@
1
- import{a as x,b as L}from"./chunk-Q7ITPAXT.js";import"./chunk-IZ2XPL4O.js";import{a as E,b as O}from"./chunk-JHCHHBCW.js";import{c as R,d as D}from"./chunk-ANG5YF2J.js";import"./chunk-4GL5YTWS.js";import{h as H}from"./chunk-2JCKXI2B.js";import{b as N,c as G}from"./chunk-YLHU3GDJ.js";import"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import{w as V,x as j}from"./chunk-TCF45ELT.js";import"./chunk-ZWHB7NI7.js";import"./chunk-ALX7UOMP.js";import"./chunk-HAZ5H5ZV.js";import{a as I}from"./chunk-4LFQJHJZ.js";import"./chunk-F2X3VGZZ.js";import{i as $,m as F}from"./chunk-BYD3JK4R.js";import{Cb as P,Ic as l,Jc as m,Kb as p,Lc as h,Nb as d,Ub as o,V as T,Vb as n,Wb as c,X as M,Z as S,_b as w,dc as y,ec as s,gb as a,h as v,ha as u,pa as C,qa as f,ra as b,s as g,sa as k,wb as B,xc as A,yc as _}from"./chunk-YVEUYFCE.js";import"./chunk-YQFG5XE2.js";var q=()=>({height:"calc(100vh - 100px)"});function J(i,z){if(i&1){let e=w();o(0,"div",3)(1,"p-button",4),y("onClick",function(){C(e);let r=s();return f(r.onFormatCOACategory())}),n(),o(2,"p-button",5),l(3,"async"),l(4,"async"),y("onClick",function(){C(e);let r=s();return f(r.onMigrateCoaCategory())}),n()()}if(i&2){let e=s();a(2),p("disabled",m(3,2,e.countInBooks$)!==0)("pTooltip",m(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function K(i,z){if(i&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),c(3,"app-migration-cards",7),l(4,"async"),b(),o(5,"svg",8),c(6,"path",9),n(),k(),c(7,"app-migration-cards",10),l(8,"async"),n()()()),i&2){let e=s();d(_(12,q)),a(),d(_(13,q)),a(2),p("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var ge=(()=>{class i{constructor(){this.migrateService=u(x),this.toastr=u(I),this.refresh$=new v(void 0),this.pageTitle="Chart of Account Category"}ngOnInit(){let e=this.refresh$.pipe(M(()=>this.migrateService.getCOACategoryCount()),S(t=>console.log("API response:",t)),T(1));this.countInPOS$=e.pipe(g(t=>Number(t.pos))),this.countInBooks$=e.pipe(g(t=>Number(t.books)))}onMigrateCoaCategory(){this.migrateService.migrateCoaCategory().subscribe(e=>{this.toastr.success(e.message,"Migration Successful")})}onFormatCOACategory(){confirm("Are you sure you want to format?")&&this.migrateService.formatManualCOACategory().subscribe(e=>{this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=B({type:i,selectors:[["app-coa-configuration"]],features:[A([x])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(t,r){t&1&&(o(0,"app-main-panel",2),P(1,J,5,6,"ng-template",null,0,h)(3,K,9,14,"ng-template",null,1,h),n()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[H,F,$,j,V,O,E,D,R,G,N,L],encapsulation:2})}}return i})();export{ge as CoaCategoryComponent};
package/chunk-ALX7UOMP.js DELETED
@@ -1,193 +0,0 @@
1
- import{a as je,b as Ct,m as ni}from"./chunk-BYD3JK4R.js";import{$ as Ge,Ab as b,Ea as _e,Eb as ei,Ga as O,Gb as ti,Jb as ft,Ka as Qt,Mb as gt,Pc as ii,Uc as _t,Wc as P,Xc as re,Yc as vt,aa as w,ba as E,ca as ee,dc as ne,ea as W,fc as mt,g as $,gc as yt,ha as x,ia as Jt,ib as Xt,l as zt,lb as ve,mb as f,oa as te,s as Yt,ta as G,wb as ht,xb as ie,xc as T,y as Zt,yb as g,za as z}from"./chunk-YVEUYFCE.js";import{a as y,b as L}from"./chunk-YQFG5XE2.js";var hi=(()=>{class e{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,n){this._renderer=t,this._elementRef=n}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static \u0275fac=function(n){return new(n||e)(f(ve),f(_e))};static \u0275dir=g({type:e})}return e})(),At=(()=>{class e extends hi{static \u0275fac=(()=>{let t;return function(r){return(t||(t=G(e)))(r||e)}})();static \u0275dir=g({type:e,features:[b]})}return e})(),ce=new W("");var On={provide:ce,useExisting:w(()=>fi),multi:!0};function Tn(){let e=Ct()?Ct().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var Vn=new W(""),fi=(()=>{class e extends hi{_compositionMode;_composing=!1;constructor(t,n,r){super(t,n),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!Tn())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static \u0275fac=function(n){return new(n||e)(f(ve),f(_e),f(Vn,8))};static \u0275dir=g({type:e,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(n,r){n&1&&ne("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},standalone:!1,features:[T([On]),b]})}return e})();function Dt(e){return e==null||wt(e)===0}function wt(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var K=new W(""),Q=new W(""),In=/^(?=.{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])?)*$/,ri=class{static min(i){return Mn(i)}static max(i){return Nn(i)}static required(i){return gi(i)}static requiredTrue(i){return Rn(i)}static email(i){return Fn(i)}static minLength(i){return Ln(i)}static maxLength(i){return mi(i)}static pattern(i){return xn(i)}static nullValidator(i){return qe()}static compose(i){return Si(i)}static composeAsync(i){return Ei(i)}};function Mn(e){return i=>{if(i.value==null||e==null)return null;let t=parseFloat(i.value);return!isNaN(t)&&t<e?{min:{min:e,actual:i.value}}:null}}function Nn(e){return i=>{if(i.value==null||e==null)return null;let t=parseFloat(i.value);return!isNaN(t)&&t>e?{max:{max:e,actual:i.value}}:null}}function gi(e){return Dt(e.value)?{required:!0}:null}function Rn(e){return e.value===!0?null:{required:!0}}function Fn(e){return Dt(e.value)||In.test(e.value)?null:{email:!0}}function Ln(e){return i=>{let t=i.value?.length??wt(i.value);return t===null||t===0?null:t<e?{minlength:{requiredLength:e,actualLength:t}}:null}}function mi(e){return i=>{let t=i.value?.length??wt(i.value);return t!==null&&t>e?{maxlength:{requiredLength:e,actualLength:t}}:null}}function xn(e){if(!e)return qe;let i,t;return typeof e=="string"?(t="",e.charAt(0)!=="^"&&(t+="^"),t+=e,e.charAt(e.length-1)!=="$"&&(t+="$"),i=new RegExp(t)):(t=e.toString(),i=e),n=>{if(Dt(n.value))return null;let r=n.value;return i.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}function qe(e){return null}function yi(e){return e!=null}function _i(e){return ei(e)?zt(e):e}function vi(e){let i={};return e.forEach(t=>{i=t!=null?y(y({},i),t):i}),Object.keys(i).length===0?null:i}function Ci(e,i){return i.map(t=>t(e))}function Pn(e){return!e.validate}function bi(e){return e.map(i=>Pn(i)?i:t=>i.validate(t))}function Si(e){if(!e)return null;let i=e.filter(yi);return i.length==0?null:function(t){return vi(Ci(t,i))}}function Ot(e){return e!=null?Si(bi(e)):null}function Ei(e){if(!e)return null;let i=e.filter(yi);return i.length==0?null:function(t){let n=Ci(t,i).map(_i);return Zt(n).pipe(Yt(vi))}}function Tt(e){return e!=null?Ei(bi(e)):null}function si(e,i){return e===null?[i]:Array.isArray(e)?[...e,i]:[e,i]}function Ai(e){return e._rawValidators}function Di(e){return e._rawAsyncValidators}function bt(e){return e?Array.isArray(e)?e:[e]:[]}function ze(e,i){return Array.isArray(e)?e.includes(i):e===i}function oi(e,i){let t=bt(i);return bt(e).forEach(r=>{ze(t,r)||t.push(r)}),t}function ai(e,i){return bt(i).filter(t=>!ze(e,t))}var Ye=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(i){this._rawValidators=i||[],this._composedValidatorFn=Ot(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=Tt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,t){return this.control?this.control.hasError(i,t):!1}getError(i,t){return this.control?this.control.getError(i,t):null}},A=class extends Ye{name;get formDirective(){return null}get path(){return null}},j=class extends Ye{_parent=null;name=null;valueAccessor=null},Ze=class{_cd;constructor(i){this._cd=i}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}},kn={"[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"},ds=L(y({},kn),{"[class.ng-submitted]":"isSubmitted"}),ps=(()=>{class e extends Ze{constructor(t){super(t)}static \u0275fac=function(n){return new(n||e)(f(j,2))};static \u0275dir=g({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&gt("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:[b]})}return e})(),hs=(()=>{class e extends Ze{constructor(t){super(t)}static \u0275fac=function(n){return new(n||e)(f(A,10))};static \u0275dir=g({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&gt("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:[b]})}return e})();var Ce="VALID",Ke="INVALID",se="PENDING",be="DISABLED",Y=class{},Je=class extends Y{value;source;constructor(i,t){super(),this.value=i,this.source=t}},Ee=class extends Y{pristine;source;constructor(i,t){super(),this.pristine=i,this.source=t}},Ae=class extends Y{touched;source;constructor(i,t){super(),this.touched=i,this.source=t}},oe=class extends Y{status;source;constructor(i,t){super(),this.status=i,this.source=t}},Qe=class extends Y{source;constructor(i){super(),this.source=i}},Xe=class extends Y{source;constructor(i){super(),this.source=i}};function Vt(e){return(rt(e)?e.validators:e)||null}function Hn(e){return Array.isArray(e)?Ot(e):e||null}function It(e,i){return(rt(i)?i.asyncValidators:e)||null}function Un(e){return Array.isArray(e)?Tt(e):e||null}function rt(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function wi(e,i,t){let n=e.controls;if(!(i?Object.keys(n):n).length)throw new Ge(1e3,"");if(!n[t])throw new Ge(1001,"")}function Oi(e,i,t){e._forEachChild((n,r)=>{if(t[r]===void 0)throw new Ge(1002,"")})}var ae=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,t){this._assignValidators(i),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return P(this.statusReactive)}set status(i){P(()=>this.statusReactive.set(i))}_status=re(()=>this.statusReactive());statusReactive=O(void 0);get valid(){return this.status===Ce}get invalid(){return this.status===Ke}get pending(){return this.status==se}get disabled(){return this.status===be}get enabled(){return this.status!==be}errors;get pristine(){return P(this.pristineReactive)}set pristine(i){P(()=>this.pristineReactive.set(i))}_pristine=re(()=>this.pristineReactive());pristineReactive=O(!0);get dirty(){return!this.pristine}get touched(){return P(this.touchedReactive)}set touched(i){P(()=>this.touchedReactive.set(i))}_touched=re(()=>this.touchedReactive());touchedReactive=O(!1);get untouched(){return!this.touched}_events=new $;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(oi(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(oi(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(ai(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(ai(i,this._rawAsyncValidators))}hasValidator(i){return ze(this._rawValidators,i)}hasAsyncValidator(i){return ze(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let t=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsTouched(L(y({},i),{sourceControl:n})),t&&i.emitEvent!==!1&&this._events.next(new Ae(!0,n))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(i))}markAsUntouched(i={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,n),t&&i.emitEvent!==!1&&this._events.next(new Ae(!1,n))}markAsDirty(i={}){let t=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(L(y({},i),{sourceControl:n})),t&&i.emitEvent!==!1&&this._events.next(new Ee(!1,n))}markAsPristine(i={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i,n),t&&i.emitEvent!==!1&&this._events.next(new Ee(!0,n))}markAsPending(i={}){this.status=se;let t=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new oe(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(L(y({},i),{sourceControl:t}))}disable(i={}){let t=this._parentMarkedDirty(i.onlySelf);this.status=be,this.errors=null,this._forEachChild(r=>{r.disable(L(y({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Je(this.value,n)),this._events.next(new oe(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(L(y({},i),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(i={}){let t=this._parentMarkedDirty(i.onlySelf);this.status=Ce,this._forEachChild(n=>{n.enable(L(y({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(L(y({},i),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,t){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ce||this.status===se)&&this._runAsyncValidator(n,i.emitEvent)}let t=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Je(this.value,t)),this._events.next(new oe(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(L(y({},i),{sourceControl:t}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?be:Ce}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,t){if(this.asyncValidator){this.status=se,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1};let n=_i(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:t,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,t={}){this.errors=i,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(i){let t=i;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,r)=>n&&n._find(r),this)}getError(i,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[i]:null}hasError(i,t){return!!this.getError(i,t)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,t,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new oe(this.status,t)),this._parent&&this._parent._updateControlsErrors(i,t,n)}_initObservables(){this.valueChanges=new z,this.statusChanges=new z}_calculateStatus(){return this._allControlsDisabled()?be:this.errors?Ke:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(se)?se:this._anyControlsHaveStatus(Ke)?Ke:Ce}_anyControlsHaveStatus(i){return this._anyControls(t=>t.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,t){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!i.onlySelf&&this._parent._updatePristine(i,t),r&&this._events.next(new Ee(this.pristine,t))}_updateTouched(i={},t){this.touched=this._anyControlsTouched(),this._events.next(new Ae(this.touched,t)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,t)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){rt(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let t=this._parent&&this._parent.dirty;return!i&&!!t&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=Hn(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=Un(this._rawAsyncValidators)}},le=class extends ae{constructor(i,t,n){super(Vt(t),It(n,t)),this.controls=i,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,t){return this.controls[i]?this.controls[i]:(this.controls[i]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(i,t,n={}){this.registerControl(i,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,t={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(i,t,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],t&&this.registerControl(i,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,t={}){Oi(this,!0,i),Object.keys(i).forEach(n=>{wi(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(i,t={}){i!=null&&(Object.keys(i).forEach(n=>{let r=this.controls[n];r&&r.patchValue(i[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(i={},t={}){this._forEachChild((n,r)=>{n.reset(i?i[r]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(i,t,n)=>(i[n]=t.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(t,n)=>n._syncPendingControls()?!0:t);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(t=>{let n=this.controls[t];n&&i(n,t)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[t,n]of Object.entries(this.controls))if(this.contains(t)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(t,n,r)=>((n.enabled||this.disabled)&&(t[r]=n.value),t))}_reduceChildren(i,t){let n=i;return this._forEachChild((r,s)=>{n=t(n,r,s)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var St=class extends le{};var ue=new W("",{providedIn:"root",factory:()=>st}),st="always";function ot(e,i){return[...i.path,e]}function we(e,i,t=st){Mt(e,i),i.valueAccessor.writeValue(e.value),(e.disabled||t==="always")&&i.valueAccessor.setDisabledState?.(e.disabled),Bn(e,i),Gn(e,i),Wn(e,i),$n(e,i)}function et(e,i,t=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),it(e,i),e&&(i._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function tt(e,i){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(i)})}function $n(e,i){if(i.valueAccessor.setDisabledState){let t=n=>{i.valueAccessor.setDisabledState(n)};e.registerOnDisabledChange(t),i._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}function Mt(e,i){let t=Ai(e);i.validator!==null?e.setValidators(si(t,i.validator)):typeof t=="function"&&e.setValidators([t]);let n=Di(e);i.asyncValidator!==null?e.setAsyncValidators(si(n,i.asyncValidator)):typeof n=="function"&&e.setAsyncValidators([n]);let r=()=>e.updateValueAndValidity();tt(i._rawValidators,r),tt(i._rawAsyncValidators,r)}function it(e,i){let t=!1;if(e!==null){if(i.validator!==null){let r=Ai(e);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==i.validator);s.length!==r.length&&(t=!0,e.setValidators(s))}}if(i.asyncValidator!==null){let r=Di(e);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==i.asyncValidator);s.length!==r.length&&(t=!0,e.setAsyncValidators(s))}}}let n=()=>{};return tt(i._rawValidators,n),tt(i._rawAsyncValidators,n),t}function Bn(e,i){i.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Ti(e,i)})}function Wn(e,i){i.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Ti(e,i),e.updateOn!=="submit"&&e.markAsTouched()})}function Ti(e,i){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Gn(e,i){let t=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};e.registerOnChange(t),i._registerOnDestroy(()=>{e._unregisterOnChange(t)})}function Vi(e,i){e==null,Mt(e,i)}function jn(e,i){return it(e,i)}function Nt(e,i){if(!e.hasOwnProperty("model"))return!1;let t=e.model;return t.isFirstChange()?!0:!Object.is(i,t.currentValue)}function Kn(e){return Object.getPrototypeOf(e.constructor)===At}function Ii(e,i){e._syncPendingControls(),i.forEach(t=>{let n=t.control;n.updateOn==="submit"&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Rt(e,i){if(!i)return null;Array.isArray(i);let t,n,r;return i.forEach(s=>{s.constructor===fi?t=s:Kn(s)?n=s:r=s}),r||n||t||null}function qn(e,i){let t=e.indexOf(i);t>-1&&e.splice(t,1)}var zn={provide:A,useExisting:w(()=>Yn)},Se=Promise.resolve(),Yn=(()=>{class e extends A{callSetDisabledState;get submitted(){return P(this.submittedReactive)}_submitted=re(()=>this.submittedReactive());submittedReactive=O(!1);_directives=new Set;form;ngSubmit=new z;options;constructor(t,n,r){super(),this.callSetDisabledState=r,this.form=new le({},Ot(t),Tt(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Se.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),we(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Se.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Se.then(()=>{let n=this._findContainer(t.path),r=new le({});Vi(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Se.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){Se.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),Ii(this.form,this._directives),this.ngSubmit.emit(t),this.form._events.next(new Qe(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1),this.form._events.next(new Xe(this.form))}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static \u0275fac=function(n){return new(n||e)(f(K,10),f(Q,10),f(ue,8))};static \u0275dir=g({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){n&1&&ne("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[T([zn]),b]})}return e})();function li(e,i){let t=e.indexOf(i);t>-1&&e.splice(t,1)}function ci(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var De=class extends ae{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,t,n){super(Vt(t),It(n,t)),this._applyFormState(i),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),rt(t)&&(t.nonNullable||t.initialValueIsDefault)&&(ci(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,t={}){this.value=this._pendingValue=i,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(i,t={}){this.setValue(i,t)}reset(i=this.defaultValue,t={}){this._applyFormState(i),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){li(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){li(this._onDisabledChange,i)}_forEachChild(i){}_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(i){ci(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var Zn=e=>e instanceof De,Jn=(()=>{class e extends A{_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 ot(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let t;return function(r){return(t||(t=G(e)))(r||e)}})();static \u0275dir=g({type:e,standalone:!1,features:[b]})}return e})();var Qn={provide:j,useExisting:w(()=>Xn)},ui=Promise.resolve(),Xn=(()=>{class e extends j{_changeDetectorRef;callSetDisabledState;control=new De;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new z;constructor(t,n,r,s,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this._parent=t,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=Rt(this,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),Nt(t,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(t){this.viewModel=t,this.update.emit(t)}_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(){we(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(t){ui.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,r=n!==0&&_t(n);ui.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?ot(t,this._parent):[t]}static \u0275fac=function(n){return new(n||e)(f(A,9),f(K,10),f(Q,10),f(ce,10),f(ii,8),f(ue,8))};static \u0275dir=g({type:e,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:[T([Qn]),b,te]})}return e})();var gs=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275dir=g({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return e})();var Ft=new W(""),er={provide:j,useExisting:w(()=>tr)},tr=(()=>{class e extends j{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(t){}model;update=new z;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,r,s,o){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=o,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=Rt(this,r)}ngOnChanges(t){if(this._isControlChanged(t)){let n=t.form.previousValue;n&&et(n,this,!1),we(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Nt(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&et(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||e)(f(K,10),f(Q,10),f(ce,10),f(Ft,8),f(ue,8))};static \u0275dir=g({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[T([er]),b,te]})}return e})(),ir={provide:A,useExisting:w(()=>Mi)},Mi=(()=>{class e extends A{callSetDisabledState;get submitted(){return P(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}_submitted=re(()=>this._submittedReactive());_submittedReactive=O(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new z;constructor(t,n,r){super(),this.callSetDisabledState=r,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(it(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return we(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){et(t.control||null,t,!1),qn(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this._submittedReactive.set(!0),Ii(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new Qe(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new Xe(this.form))}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,r=this.form.get(t.path);n!==r&&(et(n||null,t),Zn(r)&&(we(r,t,this.callSetDisabledState),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);Vi(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&jn(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Mt(this.form,this),this._oldForm&&it(this._oldForm,this)}static \u0275fac=function(n){return new(n||e)(f(K,10),f(Q,10),f(ue,8))};static \u0275dir=g({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&ne("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[T([ir]),b,te]})}return e})(),nr={provide:A,useExisting:w(()=>Ni)},Ni=(()=>{class e extends Jn{name=null;constructor(t,n,r){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){Fi(this._parent)}static \u0275fac=function(n){return new(n||e)(f(A,13),f(K,10),f(Q,10))};static \u0275dir=g({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[T([nr]),b]})}return e})(),rr={provide:A,useExisting:w(()=>Ri)},Ri=(()=>{class e extends A{_parent;name=null;constructor(t,n,r){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){Fi(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 ot(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||e)(f(A,13),f(K,10),f(Q,10))};static \u0275dir=g({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[T([rr]),b]})}return e})();function Fi(e){return!(e instanceof Ni)&&!(e instanceof Mi)&&!(e instanceof Ri)}var sr={provide:j,useExisting:w(()=>or)},or=(()=>{class e extends j{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(t){}model;update=new z;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,r,s,o){super(),this._ngModelWarningConfig=o,this._parent=t,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=Rt(this,s)}ngOnChanges(t){this._added||this._setUpControl(),Nt(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return ot(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(n){return new(n||e)(f(A,13),f(K,10),f(Q,10),f(ce,10),f(Ft,8))};static \u0275dir=g({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[T([sr]),b,te]})}return e})();var ar={provide:ce,useExisting:w(()=>xi),multi:!0};function Li(e,i){return e==null?`${i}`:(i&&typeof i=="object"&&(i="Object"),`${e}: ${i}`.slice(0,50))}function lr(e){return e.split(":")[0]}var xi=(()=>{class e extends At{value;_optionMap=new Map;_idCounter=0;set compareWith(t){this._compareWith=t}_compareWith=Object.is;writeValue(t){this.value=t;let n=this._getOptionId(t),r=Li(n,t);this.setProperty("value",r)}registerOnChange(t){this.onChange=n=>{this.value=this._getOptionValue(n),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),t))return n;return null}_getOptionValue(t){let n=lr(t);return this._optionMap.has(n)?this._optionMap.get(n):t}static \u0275fac=(()=>{let t;return function(r){return(t||(t=G(e)))(r||e)}})();static \u0275dir=g({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){n&1&&ne("change",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[T([ar]),b]})}return e})(),ms=(()=>{class e{_element;_renderer;_select;id;constructor(t,n,r){this._element=t,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(t){this._select!=null&&(this._select._optionMap.set(this.id,t),this._setElementValue(Li(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(n){return new(n||e)(f(_e),f(ve),f(xi,9))};static \u0275dir=g({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),cr={provide:ce,useExisting:w(()=>Pi),multi:!0};function di(e,i){return e==null?`${i}`:(typeof i=="string"&&(i=`'${i}'`),i&&typeof i=="object"&&(i="Object"),`${e}: ${i}`.slice(0,50))}function ur(e){return e.split(":")[0]}var Pi=(()=>{class e extends At{value;_optionMap=new Map;_idCounter=0;set compareWith(t){this._compareWith=t}_compareWith=Object.is;writeValue(t){this.value=t;let n;if(Array.isArray(t)){let r=t.map(s=>this._getOptionId(s));n=(s,o)=>{s._setSelected(r.indexOf(o.toString())>-1)}}else n=(r,s)=>{r._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(t){this.onChange=n=>{let r=[],s=n.selectedOptions;if(s!==void 0){let o=s;for(let a=0;a<o.length;a++){let c=o[a],l=this._getOptionValue(c.value);r.push(l)}}else{let o=n.options;for(let a=0;a<o.length;a++){let c=o[a];if(c.selected){let l=this._getOptionValue(c.value);r.push(l)}}}this.value=r,t(r)}}_registerOption(t){let n=(this._idCounter++).toString();return this._optionMap.set(n,t),n}_getOptionId(t){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n)._value,t))return n;return null}_getOptionValue(t){let n=ur(t);return this._optionMap.has(n)?this._optionMap.get(n)._value:t}static \u0275fac=(()=>{let t;return function(r){return(t||(t=G(e)))(r||e)}})();static \u0275dir=g({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,r){n&1&&ne("change",function(o){return r.onChange(o.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[T([cr]),b]})}return e})(),ys=(()=>{class e{_element;_renderer;_select;id;_value;constructor(t,n,r){this._element=t,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){this._select!=null&&(this._value=t,this._setElementValue(di(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(di(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(n){return new(n||e)(f(_e),f(ve),f(Pi,9))};static \u0275dir=g({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();function dr(e){return typeof e=="number"?e:parseInt(e,10)}var ki=(()=>{class e{_validator=qe;_onChange;_enabled;ngOnChanges(t){if(this.inputName in t){let n=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):qe,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}static \u0275fac=function(n){return new(n||e)};static \u0275dir=g({type:e,features:[te]})}return e})();var pr={provide:K,useExisting:w(()=>hr),multi:!0};var hr=(()=>{class e extends ki{required;inputName="required";normalizeInput=_t;createValidator=t=>gi;enabled(t){return t}static \u0275fac=(()=>{let t;return function(r){return(t||(t=G(e)))(r||e)}})();static \u0275dir=g({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,r){n&2&&ft("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[T([pr]),b]})}return e})();var fr={provide:K,useExisting:w(()=>gr),multi:!0},gr=(()=>{class e extends ki{maxlength;inputName="maxlength";normalizeInput=t=>dr(t);createValidator=t=>mi(t);static \u0275fac=(()=>{let t;return function(r){return(t||(t=G(e)))(r||e)}})();static \u0275dir=g({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ft("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[T([fr]),b]})}return e})();var Hi=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ie({type:e});static \u0275inj=ee({})}return e})(),Et=class extends ae{constructor(i,t,n){super(Vt(t),It(n,t)),this.controls=i,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(i){return this.controls[this._adjustIndex(i)]}push(i,t={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(i,t,n={}){this.controls.splice(i,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,t={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(i,t,n={}){let r=this._adjustIndex(i);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),t&&(this.controls.splice(r,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,t={}){Oi(this,!1,i),i.forEach((n,r)=>{wi(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(i,t={}){i!=null&&(i.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(i=[],t={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((t,n)=>n._syncPendingControls()?!0:t,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((t,n)=>{i(t,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(t=>t.enabled&&i(t))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(let i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}};function pi(e){return!!e&&(e.asyncValidators!==void 0||e.validators!==void 0||e.updateOn!==void 0)}var mr=(()=>{class e{useNonNullable=!1;get nonNullable(){let t=new e;return t.useNonNullable=!0,t}group(t,n=null){let r=this._reduceControls(t),s={};return pi(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new le(r,s)}record(t,n=null){let r=this._reduceControls(t);return new St(r,n)}control(t,n,r){let s={};return this.useNonNullable?(pi(n)?s=n:(s.validators=n,s.asyncValidators=r),new De(t,L(y({},s),{nonNullable:!0}))):new De(t,n,r)}array(t,n,r){let s=t.map(o=>this._createControl(o));return new Et(s,n,r)}_reduceControls(t){let n={};return Object.keys(t).forEach(r=>{n[r]=this._createControl(t[r])}),n}_createControl(t){if(t instanceof De)return t;if(t instanceof ae)return t;if(Array.isArray(t)){let n=t[0],r=t.length>1?t[1]:null,s=t.length>2?t[2]:null;return this.control(n,r,s)}else return this.control(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_s=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:()=>x(mr).nonNullable,providedIn:"root"})}return e})();var vs=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:ue,useValue:t.callSetDisabledState??st}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=ie({type:e});static \u0275inj=ee({imports:[Hi]})}return e})(),Cs=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ft,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:ue,useValue:t.callSetDisabledState??st}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=ie({type:e});static \u0275inj=ee({imports:[Hi]})}return e})();function yr(e,i){return e?e.classList?e.classList.contains(i):new RegExp("(^| )"+i+"( |$)","gi").test(e.className):!1}function _r(e,i){if(e&&i){let t=n=>{yr(e,n)||(e.classList?e.classList.add(n):e.className+=" "+n)};[i].flat().filter(Boolean).forEach(n=>n.split(" ").forEach(t))}}function vr(){return window.innerWidth-document.documentElement.offsetWidth}function de(e){for(let i of document?.styleSheets)try{for(let t of i?.cssRules)for(let n of t?.style)if(e.test(n))return{name:n,value:t.style.getPropertyValue(n).trim()}}catch{}return null}function Es(e="p-overflow-hidden"){let i=de(/-scrollbar-width$/);i?.name&&document.body.style.setProperty(i.name,vr()+"px"),_r(document.body,e)}function Cr(e,i){if(e&&i){let t=n=>{e.classList?e.classList.remove(n):e.className=e.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," ")};[i].flat().filter(Boolean).forEach(n=>n.split(" ").forEach(t))}}function As(e="p-overflow-hidden"){let i=de(/-scrollbar-width$/);i?.name&&document.body.style.removeProperty(i.name),Cr(document.body,e)}function Ui(e){let i={width:0,height:0};return e&&(e.style.visibility="hidden",e.style.display="block",i.width=e.offsetWidth,i.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible"),i}function $i(){let e=window,i=document,t=i.documentElement,n=i.getElementsByTagName("body")[0],r=e.innerWidth||t.clientWidth||n.clientWidth,s=e.innerHeight||t.clientHeight||n.clientHeight;return{width:r,height:s}}function br(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}function Sr(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}function Ds(e,i,t=!0){var n,r,s,o;if(e){let a=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:Ui(e),c=a.height,l=a.width,u=i.offsetHeight,p=i.offsetWidth,d=i.getBoundingClientRect(),h=Sr(),_=br(),C=$i(),D,M,N="top";d.top+u+c>C.height?(D=d.top+h-c,N="bottom",D<0&&(D=h)):D=u+d.top+h,d.left+l>C.width?M=Math.max(0,d.left+_+p-l):M=d.left+_,e.style.top=D+"px",e.style.left=M+"px",e.style.transformOrigin=N,t&&(e.style.marginTop=N==="bottom"?`calc(${(r=(n=de(/-anchor-gutter$/))==null?void 0:n.value)!=null?r:"2px"} * -1)`:(o=(s=de(/-anchor-gutter$/))==null?void 0:s.value)!=null?o:"")}}function Bi(e,i){e&&(typeof i=="string"?e.style.cssText=i:Object.entries(i||{}).forEach(([t,n])=>e.style[t]=n))}function ws(e,i){if(e instanceof HTMLElement){let t=e.offsetWidth;if(i){let n=getComputedStyle(e);t+=parseFloat(n.marginLeft)+parseFloat(n.marginRight)}return t}return 0}function Os(e,i,t=!0){var n,r,s,o;if(e){let a=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:Ui(e),c=i.offsetHeight,l=i.getBoundingClientRect(),u=$i(),p,d,h="top";l.top+c+a.height>u.height?(p=-1*a.height,h="bottom",l.top+p<0&&(p=-1*l.top)):p=c,a.width>u.width?d=l.left*-1:l.left+a.width>u.width?d=(l.left+a.width-u.width)*-1:d=0,e.style.top=p+"px",e.style.left=d+"px",e.style.transformOrigin=h,t&&(e.style.marginTop=h==="bottom"?`calc(${(r=(n=de(/-anchor-gutter$/))==null?void 0:n.value)!=null?r:"2px"} * -1)`:(o=(s=de(/-anchor-gutter$/))==null?void 0:s.value)!=null?o:"")}}function pe(e){return typeof HTMLElement=="object"?e instanceof HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"}function Pt(e){let i=e;return e&&typeof e=="object"&&(e.hasOwnProperty("current")?i=e.current:e.hasOwnProperty("el")&&(e.el.hasOwnProperty("nativeElement")?i=e.el.nativeElement:i=e.el)),pe(i)?i:void 0}function Ts(e,i){let t=Pt(e);if(t)t.appendChild(i);else throw new Error("Cannot append "+i+" to "+e)}var Lt=void 0;function Vs(e){if(e){let i=getComputedStyle(e);return e.offsetHeight-e.clientHeight-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)}else{if(Lt!=null)return Lt;let i=document.createElement("div");Bi(i,{width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}),document.body.appendChild(i);let t=i.offsetHeight-i.clientHeight;return document.body.removeChild(i),Lt=t,t}}var xt=void 0;function Is(e){if(e){let i=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}else{if(xt!=null)return xt;let i=document.createElement("div");Bi(i,{width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}),document.body.appendChild(i);let t=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),xt=t,t}}function at(e,i={}){if(pe(e)){let t=(n,r)=>{var s,o;let a=(s=e?.$attrs)!=null&&s[n]?[(o=e?.$attrs)==null?void 0:o[n]]:[];return[r].flat().reduce((c,l)=>{if(l!=null){let u=typeof l;if(u==="string"||u==="number")c.push(l);else if(u==="object"){let p=Array.isArray(l)?t(n,l):Object.entries(l).map(([d,h])=>n==="style"&&(h||h===0)?`${d.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${h}`:h?d:void 0);c=p.length?c.concat(p.filter(d=>!!d)):c}}return c},a)};Object.entries(i).forEach(([n,r])=>{if(r!=null){let s=n.match(/^on(.+)/);s?e.addEventListener(s[1].toLowerCase(),r):n==="p-bind"||n==="pBind"?at(e,r):(r=n==="class"?[...new Set(t("class",r))].join(" ").trim():n==="style"?t("style",r).join(";").trim():r,(e.$attrs=e.$attrs||{})&&(e.$attrs[n]=r),e.setAttribute(n,r))}})}}function Ms(e,i={},...t){if(e){let n=document.createElement(e);return at(n,i),n.append(...t),n}}function Ns(e,i){if(e){e.style.opacity="0";let t=+new Date,n="0",r=function(){n=`${+e.style.opacity+(new Date().getTime()-t)/i}`,e.style.opacity=n,t=+new Date,+n<1&&(window.requestAnimationFrame&&requestAnimationFrame(r)||setTimeout(r,16))};r()}}function Er(e,i){return pe(e)?Array.from(e.querySelectorAll(i)):[]}function Rs(e,i){return pe(e)?e.matches(i)?e:e.querySelector(i):null}function Fs(e,i){e&&document.activeElement!==e&&e.focus(i)}function Ls(e,i){if(pe(e)){let t=e.getAttribute(i);return isNaN(t)?t==="true"||t==="false"?t==="true":t:+t}}function Wi(e,i=""){let t=Er(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
2
- [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
3
- input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
4
- select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
5
- textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
6
- [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
7
- [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i}`),n=[];for(let r of t)getComputedStyle(r).display!="none"&&getComputedStyle(r).visibility!="hidden"&&n.push(r);return n}function xs(e,i){let t=Wi(e,i);return t.length>0?t[0]:null}function Ps(e){if(e){let i=e.offsetHeight,t=getComputedStyle(e);return i-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),i}return 0}function ks(e){if(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",i}return 0}function Hs(e){if(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",i}return 0}function Gi(e){if(e){let i=e.parentNode;return i&&i instanceof ShadowRoot&&i.host&&(i=i.host),i}return null}function Us(e){var i;if(e){let t=(i=Gi(e))==null?void 0:i.childNodes,n=0;if(t)for(let r=0;r<t.length;r++){if(t[r]===e)return n;t[r].nodeType===1&&n++}}return-1}function $s(e,i){let t=Wi(e,i);return t.length>0?t[t.length-1]:null}function Bs(e){if(e){let i=e.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function Ar(e,i){if(e){let t=e.offsetHeight;if(i){let n=getComputedStyle(e);t+=parseFloat(n.marginTop)+parseFloat(n.marginBottom)}return t}return 0}function Ws(){if(window.getSelection)return window.getSelection().toString();if(document.getSelection)return document.getSelection().toString()}function Dr(e){return!!(e!==null&&typeof e<"u"&&e.nodeName&&Gi(e))}function Gs(e,i){var t;if(e)switch(e){case"document":return document;case"window":return window;case"body":return document.body;case"@next":return i?.nextElementSibling;case"@prev":return i?.previousElementSibling;case"@parent":return i?.parentElement;case"@grandparent":return(t=i?.parentElement)==null?void 0:t.parentElement;default:if(typeof e=="string")return document.querySelector(e);let r=Pt((s=>!!(s&&s.constructor&&s.call&&s.apply))(e)?e():e);return r?.nodeType===9||Dr(r)?r:void 0}}function js(e){if(e){let i=e.offsetWidth,t=getComputedStyle(e);return i-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)+parseFloat(t.borderLeftWidth)+parseFloat(t.borderRightWidth),i}return 0}function Ks(){return/(android)/i.test(navigator.userAgent)}function wr(e){return!!(e&&e.offsetParent!=null)}function qs(e){return!wr(e)}function zs(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}function Ys(e){return e?getComputedStyle(e).direction==="rtl":!1}function Zs(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function Js(e){var i;e&&("remove"in Element.prototype?e.remove():(i=e.parentNode)==null||i.removeChild(e))}function Qs(e,i){let t=Pt(e);if(t)t.removeChild(i);else throw new Error("Cannot remove "+i+" from "+e)}function Xs(e,i){let t=getComputedStyle(e).getPropertyValue("borderTopWidth"),n=t?parseFloat(t):0,r=getComputedStyle(e).getPropertyValue("paddingTop"),s=r?parseFloat(r):0,o=e.getBoundingClientRect(),c=i.getBoundingClientRect().top+document.body.scrollTop-(o.top+document.body.scrollTop)-n-s,l=e.scrollTop,u=e.clientHeight,p=Ar(i);c<0?e.scrollTop=l+c:c+p>u&&(e.scrollTop=l+c-u+p)}function ji(e,i="",t){pe(e)&&t!==null&&t!==void 0&&e.setAttribute(i,t)}var Or=Object.defineProperty,Ki=Object.getOwnPropertySymbols,Tr=Object.prototype.hasOwnProperty,Vr=Object.prototype.propertyIsEnumerable,qi=(e,i,t)=>i in e?Or(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,Ir=(e,i)=>{for(var t in i||(i={}))Tr.call(i,t)&&qi(e,t,i[t]);if(Ki)for(var t of Ki(i))Vr.call(i,t)&&qi(e,t,i[t]);return e};function Oe(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&typeof e=="object"&&Object.keys(e).length===0}function kt(e,i,t=new WeakSet){if(e===i)return!0;if(!e||!i||typeof e!="object"||typeof i!="object"||t.has(e)||t.has(i))return!1;t.add(e).add(i);let n=Array.isArray(e),r=Array.isArray(i),s,o,a;if(n&&r){if(o=e.length,o!=i.length)return!1;for(s=o;s--!==0;)if(!kt(e[s],i[s],t))return!1;return!0}if(n!=r)return!1;let c=e instanceof Date,l=i instanceof Date;if(c!=l)return!1;if(c&&l)return e.getTime()==i.getTime();let u=e instanceof RegExp,p=i instanceof RegExp;if(u!=p)return!1;if(u&&p)return e.toString()==i.toString();let d=Object.keys(e);if(o=d.length,o!==Object.keys(i).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(i,d[s]))return!1;for(s=o;s--!==0;)if(a=d[s],!kt(e[a],i[a],t))return!1;return!0}function Mr(e,i){return kt(e,i)}function Yi(e){return!!(e&&e.constructor&&e.call&&e.apply)}function m(e){return!Oe(e)}function lt(e,i){if(!e||!i)return null;try{let t=e[i];if(m(t))return t}catch{}if(Object.keys(e).length){if(Yi(i))return i(e);if(i.indexOf(".")===-1)return e[i];{let t=i.split("."),n=e;for(let r=0,s=t.length;r<s;++r){if(n==null)return null;n=n[t[r]]}return n}}return null}function Ht(e,i,t){return t?lt(e,t)===lt(i,t):Mr(e,i)}function to(e,i){if(e!=null&&i&&i.length){for(let t of i)if(Ht(e,t))return!0}return!1}function io(e,i){let t=-1;if(i){for(let n=0;n<i.length;n++)if(i[n]===e){t=n;break}}return t}function no(e,i){let t=-1;if(m(e))try{t=e.findLastIndex(i)}catch{t=e.lastIndexOf([...e].reverse().find(i))}return t}function k(e,i=!0){return e instanceof Object&&e.constructor===Object&&(i||Object.keys(e).length!==0)}function R(e,...i){return Yi(e)?e(...i):e}function Z(e,i=!0){return typeof e=="string"&&(i||e!=="")}function zi(e){return Z(e)?e.replace(/(-|_)/g,"").toLowerCase():e}function Zi(e,i="",t={}){let n=zi(i).split("."),r=n.shift();return r?k(e)?Zi(R(e[Object.keys(e).find(s=>zi(s)===r)||""],t),n.join("."),t):void 0:R(e,t)}function ct(e,i=!0){return Array.isArray(e)&&(i||e.length!==0)}function ro(e){return e instanceof Date&&e.constructor===Date}function Ji(e){return m(e)&&!isNaN(e)}function so(e=""){return m(e)&&e.length===1&&!!e.match(/\S| /)}function V(e,i){if(i){let t=i.test(e);return i.lastIndex=0,t}return!1}function Te(...e){let i=(t={},n={})=>{let r=Ir({},t);return Object.keys(n).forEach(s=>{k(n[s])&&s in t&&k(t[s])?r[s]=i(t[s],n[s]):r[s]=n[s]}),r};return e.reduce((t,n,r)=>r===0?n:i(t,n),{})}function X(e){return e&&e.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function I(e){if(e&&/[\xC0-\xFF\u0100-\u017E]/.test(e)){let t={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let n in t)e=e.replace(t[n],n)}return e}function oo(e,i,t){e&&i!==t&&(t>=e.length&&(t%=e.length,i%=e.length),e.splice(t,0,e.splice(i,1)[0]))}function ut(e){return Z(e)?e.replace(/(_)/g,"-").replace(/[A-Z]/g,(i,t)=>t===0?i:"-"+i.toLowerCase()).toLowerCase():e}function Ut(e){return Z(e)?e.replace(/[A-Z]/g,(i,t)=>t===0?i:"."+i.toLowerCase()).toLowerCase():e}var dt={};function lo(e="pui_id_"){return dt.hasOwnProperty(e)||(dt[e]=0),dt[e]++,`${e}${dt[e]}`}function Qi(){let e=new Map;return{on(i,t){let n=e.get(i);return n?n.push(t):n=[t],e.set(i,n),this},off(i,t){let n=e.get(i);return n&&n.splice(n.indexOf(t)>>>0,1),this},emit(i,t){let n=e.get(i);n&&n.slice().map(r=>{r(t)})},clear(){e.clear()}}}function Nr(){let e=[],i=(o,a,c=999)=>{let l=r(o,a,c),u=l.value+(l.key===o?0:c)+1;return e.push({key:o,value:u}),u},t=o=>{e=e.filter(a=>a.value!==o)},n=(o,a)=>r(o,a).value,r=(o,a,c=0)=>[...e].reverse().find(l=>a?!0:l.key===o)||{key:o,value:c},s=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:s,set:(o,a,c)=>{a&&(a.style.zIndex=String(i(o,!0,c)))},clear:o=>{o&&(t(s(o)),o.style.zIndex="")},getCurrent:o=>n(o,!0)}}var fo=Nr();var Xi=["*"];var S=(()=>{class e{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}return e})(),Oo=(()=>{class e{static AND="and";static OR="or"}return e})(),To=(()=>{class e{filter(t,n,r,s,o){let a=[];if(t)for(let c of t)for(let l of n){let u=lt(c,l);if(this.filters[s](u,r,o)){a.push(c);break}}return a}filters={startsWith:(t,n,r)=>{if(n==null||n.trim()==="")return!0;if(t==null)return!1;let s=I(n.toString()).toLocaleLowerCase(r);return I(t.toString()).toLocaleLowerCase(r).slice(0,s.length)===s},contains:(t,n,r)=>{if(n==null||typeof n=="string"&&n.trim()==="")return!0;if(t==null)return!1;let s=I(n.toString()).toLocaleLowerCase(r);return I(t.toString()).toLocaleLowerCase(r).indexOf(s)!==-1},notContains:(t,n,r)=>{if(n==null||typeof n=="string"&&n.trim()==="")return!0;if(t==null)return!1;let s=I(n.toString()).toLocaleLowerCase(r);return I(t.toString()).toLocaleLowerCase(r).indexOf(s)===-1},endsWith:(t,n,r)=>{if(n==null||n.trim()==="")return!0;if(t==null)return!1;let s=I(n.toString()).toLocaleLowerCase(r),o=I(t.toString()).toLocaleLowerCase(r);return o.indexOf(s,o.length-s.length)!==-1},equals:(t,n,r)=>n==null||typeof n=="string"&&n.trim()===""?!0:t==null?!1:t.getTime&&n.getTime?t.getTime()===n.getTime():t==n?!0:I(t.toString()).toLocaleLowerCase(r)==I(n.toString()).toLocaleLowerCase(r),notEquals:(t,n,r)=>n==null||typeof n=="string"&&n.trim()===""?!1:t==null?!0:t.getTime&&n.getTime?t.getTime()!==n.getTime():t==n?!1:I(t.toString()).toLocaleLowerCase(r)!=I(n.toString()).toLocaleLowerCase(r),in:(t,n)=>{if(n==null||n.length===0)return!0;for(let r=0;r<n.length;r++)if(Ht(t,n[r]))return!0;return!1},between:(t,n)=>n==null||n[0]==null||n[1]==null?!0:t==null?!1:t.getTime?n[0].getTime()<=t.getTime()&&t.getTime()<=n[1].getTime():n[0]<=t&&t<=n[1],lt:(t,n,r)=>n==null?!0:t==null?!1:t.getTime&&n.getTime?t.getTime()<n.getTime():t<n,lte:(t,n,r)=>n==null?!0:t==null?!1:t.getTime&&n.getTime?t.getTime()<=n.getTime():t<=n,gt:(t,n,r)=>n==null?!0:t==null?!1:t.getTime&&n.getTime?t.getTime()>n.getTime():t>n,gte:(t,n,r)=>n==null?!0:t==null?!1:t.getTime&&n.getTime?t.getTime()>=n.getTime():t>=n,is:(t,n,r)=>this.filters.equals(t,n,r),isNot:(t,n,r)=>this.filters.notEquals(t,n,r),before:(t,n,r)=>this.filters.lt(t,n,r),after:(t,n,r)=>this.filters.gt(t,n,r),dateIs:(t,n)=>n==null?!0:t==null?!1:t.toDateString()===n.toDateString(),dateIsNot:(t,n)=>n==null?!0:t==null?!1:t.toDateString()!==n.toDateString(),dateBefore:(t,n)=>n==null?!0:t==null?!1:t.getTime()<n.getTime(),dateAfter:(t,n)=>n==null?!0:t==null?!1:(t.setHours(0,0,0,0),t.getTime()>n.getTime())};register(t,n){this.filters[t]=n}static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Vo=(()=>{class e{messageSource=new $;clearSource=new $;messageObserver=this.messageSource.asObservable();clearObserver=this.clearSource.asObservable();add(t){t&&this.messageSource.next(t)}addAll(t){t&&t.length&&this.messageSource.next(t)}clear(t){this.clearSource.next(t||null)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),Io=(()=>{class e{clickSource=new $;clickObservable=this.clickSource.asObservable();add(t){t&&this.clickSource.next(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Mo=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ht({type:e,selectors:[["p-header"]],standalone:!1,ngContentSelectors:Xi,decls:1,vars:0,template:function(n,r){n&1&&(mt(),yt(0))},encapsulation:2})}return e})(),No=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ht({type:e,selectors:[["p-footer"]],standalone:!1,ngContentSelectors:Xi,decls:1,vars:0,template:function(n,r){n&1&&(mt(),yt(0))},encapsulation:2})}return e})(),Ro=(()=>{class e{template;type;name;constructor(t){this.template=t}getType(){return this.name}static \u0275fac=function(n){return new(n||e)(f(Xt))};static \u0275dir=g({type:e,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[0,"pTemplate","name"]}})}return e})(),Fo=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ie({type:e});static \u0275inj=ee({imports:[ni]})}return e})(),Lo=(()=>{class e{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"}return e})(),xo=(()=>{class e{dragStartSource=new $;dragStopSource=new $;dragStart$=this.dragStartSource.asObservable();dragStop$=this.dragStopSource.asObservable();startDrag(t){this.dragStartSource.next(t)}stopDrag(t){this.dragStopSource.next(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})();var Rr=Object.defineProperty,Fr=Object.defineProperties,Lr=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,en=(e,i,t)=>i in e?Rr(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,U=(e,i)=>{for(var t in i||(i={}))nn.call(i,t)&&en(e,t,i[t]);if(pt)for(var t of pt(i))rn.call(i,t)&&en(e,t,i[t]);return e},$t=(e,i)=>Fr(e,Lr(i)),q=(e,i)=>{var t={};for(var n in e)nn.call(e,n)&&i.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&pt)for(var n of pt(e))i.indexOf(n)<0&&rn.call(e,n)&&(t[n]=e[n]);return t};function Ho(...e){return Te(...e)}var xr=Qi(),B=xr;function tn(e,i){ct(e)?e.push(...i||[]):k(e)&&Object.assign(e,i)}function Pr(e){return k(e)&&e.hasOwnProperty("value")&&e.hasOwnProperty("type")?e.value:e}function kr(e){return e.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Bt(e="",i=""){return kr(`${Z(e,!1)&&Z(i,!1)?`${e}-`:e}${i}`)}function sn(e="",i=""){return`--${Bt(e,i)}`}function Hr(e=""){let i=(e.match(/{/g)||[]).length,t=(e.match(/}/g)||[]).length;return(i+t)%2!==0}function on(e,i="",t="",n=[],r){if(Z(e)){let s=/{([^}]*)}/g,o=e.trim();if(Hr(o))return;if(V(o,s)){let a=o.replaceAll(s,u=>{let d=u.replace(/{|}/g,"").split(".").filter(h=>!n.some(_=>V(h,_)));return`var(${sn(t,ut(d.join("-")))}${m(r)?`, ${r}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,l=/var\([^)]+\)/g;return V(a.replace(l,"0"),c)?`calc(${a})`:a}return o}else if(Ji(e))return e}function Ur(e,i,t){Z(i,!1)&&e.push(`${i}:${t};`)}function he(e,i){return e?`${e}{${i}}`:""}var Ko=e=>{var i;let t=v.getTheme(),n=Wt(t,e,void 0,"variable"),r=(i=n?.match(/--[\w-]+/g))==null?void 0:i[0],s=Wt(t,e,void 0,"value");return{name:r,variable:n,value:s}},fe=(...e)=>Wt(v.getTheme(),...e),Wt=(e={},i,t,n)=>{if(i){let{variable:r,options:s}=v.defaults||{},{prefix:o,transform:a}=e?.options||s||{},l=V(i,/{([^}]*)}/g)?i:`{${i}}`;return n==="value"||Oe(n)&&a==="strict"?v.getTokenValue(i):on(l,void 0,o,[r.excludedKeyRegex],t)}return""};function $r(e,i={}){let t=v.defaults.variable,{prefix:n=t.prefix,selector:r=t.selector,excludedKeyRegex:s=t.excludedKeyRegex}=i,o=(l,u="")=>Object.entries(l).reduce((p,[d,h])=>{let _=V(d,s)?Bt(u):Bt(u,ut(d)),C=Pr(h);if(k(C)){let{variables:D,tokens:M}=o(C,_);tn(p.tokens,M),tn(p.variables,D)}else p.tokens.push((n?_.replace(`${n}-`,""):_).replaceAll("-",".")),Ur(p.variables,sn(_),on(C,_,n,[s]));return p},{variables:[],tokens:[]}),{variables:a,tokens:c}=o(e,n);return{value:a,tokens:c,declarations:a.join(""),css:he(r,a.join(""))}}var H={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(e){return{type:"class",selector:e,matched:this.pattern.test(e.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(e){return{type:"attr",selector:`:root${e}`,matched:this.pattern.test(e.trim())}}},media:{pattern:/^@media (.*)$/,resolve(e){return{type:"media",selector:`${e}{:root{[CSS]}}`,matched:this.pattern.test(e.trim())}}},system:{pattern:/^system$/,resolve(e){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(e.trim())}}},custom:{resolve(e){return{type:"custom",selector:e,matched:!0}}}},resolve(e){let i=Object.keys(this.rules).filter(t=>t!=="custom").map(t=>this.rules[t]);return[e].flat().map(t=>{var n;return(n=i.map(r=>r.resolve(t)).find(r=>r.matched))!=null?n:this.rules.custom.resolve(t)})}},_toVariables(e,i){return $r(e,{prefix:i?.prefix})},getCommon({name:e="",theme:i={},params:t,set:n,defaults:r}){var s,o,a,c,l,u,p;let{preset:d,options:h}=i,_,C,D,M,N,J,F;if(m(d)&&h.transform!=="strict"){let{primitive:Ve,semantic:Ie,extend:Me}=d,ge=Ie||{},{colorScheme:Ne}=ge,Re=q(ge,["colorScheme"]),Fe=Me||{},{colorScheme:Le}=Fe,me=q(Fe,["colorScheme"]),ye=Ne||{},{dark:xe}=ye,Pe=q(ye,["dark"]),ke=Le||{},{dark:He}=ke,Ue=q(ke,["dark"]),$e=m(Ve)?this._toVariables({primitive:Ve},h):{},Be=m(Re)?this._toVariables({semantic:Re},h):{},We=m(Pe)?this._toVariables({light:Pe},h):{},Gt=m(xe)?this._toVariables({dark:xe},h):{},jt=m(me)?this._toVariables({semantic:me},h):{},Kt=m(Ue)?this._toVariables({light:Ue},h):{},qt=m(He)?this._toVariables({dark:He},h):{},[cn,un]=[(s=$e.declarations)!=null?s:"",$e.tokens],[dn,pn]=[(o=Be.declarations)!=null?o:"",Be.tokens||[]],[hn,fn]=[(a=We.declarations)!=null?a:"",We.tokens||[]],[gn,mn]=[(c=Gt.declarations)!=null?c:"",Gt.tokens||[]],[yn,_n]=[(l=jt.declarations)!=null?l:"",jt.tokens||[]],[vn,Cn]=[(u=Kt.declarations)!=null?u:"",Kt.tokens||[]],[bn,Sn]=[(p=qt.declarations)!=null?p:"",qt.tokens||[]];_=this.transformCSS(e,cn,"light","variable",h,n,r),C=un;let En=this.transformCSS(e,`${dn}${hn}`,"light","variable",h,n,r),An=this.transformCSS(e,`${gn}`,"dark","variable",h,n,r);D=`${En}${An}`,M=[...new Set([...pn,...fn,...mn])];let Dn=this.transformCSS(e,`${yn}${vn}color-scheme:light`,"light","variable",h,n,r),wn=this.transformCSS(e,`${bn}color-scheme:dark`,"dark","variable",h,n,r);N=`${Dn}${wn}`,J=[...new Set([..._n,...Cn,...Sn])],F=R(d.css,{dt:fe})}return{primitive:{css:_,tokens:C},semantic:{css:D,tokens:M},global:{css:N,tokens:J},style:F}},getPreset({name:e="",preset:i={},options:t,params:n,set:r,defaults:s,selector:o}){var a,c,l;let u,p,d;if(m(i)&&t.transform!=="strict"){let h=e.replace("-directive",""),_=i,{colorScheme:C,extend:D,css:M}=_,N=q(_,["colorScheme","extend","css"]),J=D||{},{colorScheme:F}=J,Ve=q(J,["colorScheme"]),Ie=C||{},{dark:Me}=Ie,ge=q(Ie,["dark"]),Ne=F||{},{dark:Re}=Ne,Fe=q(Ne,["dark"]),Le=m(N)?this._toVariables({[h]:U(U({},N),Ve)},t):{},me=m(ge)?this._toVariables({[h]:U(U({},ge),Fe)},t):{},ye=m(Me)?this._toVariables({[h]:U(U({},Me),Re)},t):{},[xe,Pe]=[(a=Le.declarations)!=null?a:"",Le.tokens||[]],[ke,He]=[(c=me.declarations)!=null?c:"",me.tokens||[]],[Ue,$e]=[(l=ye.declarations)!=null?l:"",ye.tokens||[]],Be=this.transformCSS(h,`${xe}${ke}`,"light","variable",t,r,s,o),We=this.transformCSS(h,Ue,"dark","variable",t,r,s,o);u=`${Be}${We}`,p=[...new Set([...Pe,...He,...$e])],d=R(M,{dt:fe})}return{css:u,tokens:p,style:d}},getPresetC({name:e="",theme:i={},params:t,set:n,defaults:r}){var s;let{preset:o,options:a}=i,c=(s=o?.components)==null?void 0:s[e];return this.getPreset({name:e,preset:c,options:a,params:t,set:n,defaults:r})},getPresetD({name:e="",theme:i={},params:t,set:n,defaults:r}){var s;let o=e.replace("-directive",""),{preset:a,options:c}=i,l=(s=a?.directives)==null?void 0:s[o];return this.getPreset({name:o,preset:l,options:c,params:t,set:n,defaults:r})},applyDarkColorScheme(e){return!(e.darkModeSelector==="none"||e.darkModeSelector===!1)},getColorSchemeOption(e,i){var t;return this.applyDarkColorScheme(e)?this.regex.resolve(e.darkModeSelector===!0?i.options.darkModeSelector:(t=e.darkModeSelector)!=null?t:i.options.darkModeSelector):[]},getLayerOrder(e,i={},t,n){let{cssLayer:r}=i;return r?`@layer ${R(r.order||"primeui",t)}`:""},getCommonStyleSheet({name:e="",theme:i={},params:t,props:n={},set:r,defaults:s}){let o=this.getCommon({name:e,theme:i,params:t,set:r,defaults:s}),a=Object.entries(n).reduce((c,[l,u])=>c.push(`${l}="${u}"`)&&c,[]).join(" ");return Object.entries(o||{}).reduce((c,[l,u])=>{if(u?.css){let p=X(u?.css),d=`${l}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${d}" ${a}>${p}</style>`)}return c},[]).join("")},getStyleSheet({name:e="",theme:i={},params:t,props:n={},set:r,defaults:s}){var o;let a={name:e,theme:i,params:t,set:r,defaults:s},c=(o=e.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:o.css,l=Object.entries(n).reduce((u,[p,d])=>u.push(`${p}="${d}"`)&&u,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${e}-variables" ${l}>${X(c)}</style>`:""},createTokens(e={},i,t="",n="",r={}){return Object.entries(e).forEach(([s,o])=>{let a=V(s,i.variable.excludedKeyRegex)?t:t?`${t}.${Ut(s)}`:Ut(s),c=n?`${n}.${s}`:s;k(o)?this.createTokens(o,i,a,c,r):(r[a]||(r[a]={paths:[],computed(l,u={}){var p,d;return this.paths.length===1?(p=this.paths[0])==null?void 0:p.computed(this.paths[0].scheme,u.binding):l&&l!=="none"?(d=this.paths.find(h=>h.scheme===l))==null?void 0:d.computed(l,u.binding):this.paths.map(h=>h.computed(h.scheme,u[h.scheme]))}}),r[a].paths.push({path:c,value:o,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(l,u={}){let p=/{([^}]*)}/g,d=o;if(u.name=this.path,u.binding||(u.binding={}),V(o,p)){let _=o.trim().replaceAll(p,M=>{var N;let J=M.replace(/{|}/g,""),F=(N=r[J])==null?void 0:N.computed(l,u);return ct(F)&&F.length===2?`light-dark(${F[0].value},${F[1].value})`:F?.value}),C=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,D=/var\([^)]+\)/g;d=V(_.replace(D,"0"),C)?`calc(${_})`:_}return Oe(u.binding)&&delete u.binding,{colorScheme:l,path:this.path,paths:u,value:d.includes("undefined")?void 0:d}}}))}),r},getTokenValue(e,i,t){var n;let s=(c=>c.split(".").filter(u=>!V(u.toLowerCase(),t.variable.excludedKeyRegex)).join("."))(i),o=i.includes("colorScheme.light")?"light":i.includes("colorScheme.dark")?"dark":void 0,a=[(n=e[s])==null?void 0:n.computed(o)].flat().filter(c=>c);return a.length===1?a[0].value:a.reduce((c={},l)=>{let u=l,{colorScheme:p}=u,d=q(u,["colorScheme"]);return c[p]=d,c},void 0)},getSelectorRule(e,i,t,n){return t==="class"||t==="attr"?he(m(i)?`${e}${i},${e} ${i}`:e,n):he(e,m(i)?he(i,n):n)},transformCSS(e,i,t,n,r={},s,o,a){if(m(i)){let{cssLayer:c}=r;if(n!=="style"){let l=this.getColorSchemeOption(r,o);i=t==="dark"?l.reduce((u,{type:p,selector:d})=>(m(d)&&(u+=d.includes("[CSS]")?d.replace("[CSS]",i):this.getSelectorRule(d,a,p,i)),u),""):he(a??":root",i)}if(c){let l={name:"primeui",order:"primeui"};k(c)&&(l.name=R(c.name,{name:e,type:n})),m(l.name)&&(i=he(`@layer ${l.name}`,i),s?.layerNames(l.name))}return i}return""}},v={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(e={}){let{theme:i}=e;i&&(this._theme=$t(U({},i),{options:U(U({},this.defaults.options),i.options)}),this._tokens=H.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var e;return((e=this.theme)==null?void 0:e.preset)||{}},get options(){var e;return((e=this.theme)==null?void 0:e.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(e){this.update({theme:e}),B.emit("theme:change",e)},getPreset(){return this.preset},setPreset(e){this._theme=$t(U({},this.theme),{preset:e}),this._tokens=H.createTokens(e,this.defaults),this.clearLoadedStyleNames(),B.emit("preset:change",e),B.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(e){this._theme=$t(U({},this.theme),{options:e}),this.clearLoadedStyleNames(),B.emit("options:change",e),B.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(e){this._layerNames.add(e)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(e){return H.getTokenValue(this.tokens,e,this.defaults)},getCommon(e="",i){return H.getCommon({name:e,theme:this.theme,params:i,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(e="",i){let t={name:e,theme:this.theme,params:i,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return H.getPresetC(t)},getDirective(e="",i){let t={name:e,theme:this.theme,params:i,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return H.getPresetD(t)},getCustomPreset(e="",i,t,n){let r={name:e,preset:i,options:this.options,selector:t,params:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return H.getPreset(r)},getLayerOrderCSS(e=""){return H.getLayerOrder(e,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(e="",i,t="style",n){return H.transformCSS(e,i,n,t,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(e="",i,t={}){return H.getCommonStyleSheet({name:e,theme:this.theme,params:i,props:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(e,i,t={}){return H.getStyleSheet({name:e,theme:this.theme,params:i,props:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(e){this._loadingStyles.add(e)},onStyleUpdated(e){this._loadingStyles.add(e)},onStyleLoaded(e,{name:i}){this._loadingStyles.size&&(this._loadingStyles.delete(i),B.emit(`theme:${i}:load`,e),!this._loadingStyles.size&&B.emit("theme:load"))}};var Br=0,an=(()=>{class e{document=x(je);use(t,n={}){let r=!1,s=t,o=null,{immediate:a=!0,manual:c=!1,name:l=`style_${++Br}`,id:u=void 0,media:p=void 0,nonce:d=void 0,first:h=!1,props:_={}}=n;if(this.document){if(o=this.document.querySelector(`style[data-primeng-style-id="${l}"]`)||u&&this.document.getElementById(u)||this.document.createElement("style"),!o.isConnected){s=t,at(o,{type:"text/css",media:p,nonce:d});let C=this.document.head;h&&C.firstChild?C.insertBefore(o,C.firstChild):C.appendChild(o),ji(o,"data-primeng-style-id",l)}return o.textContent!==s&&(o.textContent=s),{id:u,name:l,el:o,css:s}}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var aa={_loadedStyleNames:new Set,getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._loadedStyleNames.clear()}},Wr=({dt:e})=>`
8
- *,
9
- ::before,
10
- ::after {
11
- box-sizing: border-box;
12
- }
13
-
14
- /* Non ng overlay animations */
15
- .p-connected-overlay {
16
- opacity: 0;
17
- transform: scaleY(0.8);
18
- transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1),
19
- opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
20
- }
21
-
22
- .p-connected-overlay-visible {
23
- opacity: 1;
24
- transform: scaleY(1);
25
- }
26
-
27
- .p-connected-overlay-hidden {
28
- opacity: 0;
29
- transform: scaleY(1);
30
- transition: opacity 0.1s linear;
31
- }
32
-
33
- /* NG based overlay animations */
34
- .p-connected-overlay-enter-from {
35
- opacity: 0;
36
- transform: scaleY(0.8);
37
- }
38
-
39
- .p-connected-overlay-leave-to {
40
- opacity: 0;
41
- }
42
-
43
- .p-connected-overlay-enter-active {
44
- transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1),
45
- opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
46
- }
47
-
48
- .p-connected-overlay-leave-active {
49
- transition: opacity 0.1s linear;
50
- }
51
-
52
- /* Toggleable Content */
53
- .p-toggleable-content-enter-from,
54
- .p-toggleable-content-leave-to {
55
- max-height: 0;
56
- }
57
-
58
- .p-toggleable-content-enter-to,
59
- .p-toggleable-content-leave-from {
60
- max-height: 1000px;
61
- }
62
-
63
- .p-toggleable-content-leave-active {
64
- overflow: hidden;
65
- transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
66
- }
67
-
68
- .p-toggleable-content-enter-active {
69
- overflow: hidden;
70
- transition: max-height 1s ease-in-out;
71
- }
72
-
73
- .p-disabled,
74
- .p-disabled * {
75
- cursor: default;
76
- pointer-events: none;
77
- user-select: none;
78
- }
79
-
80
- .p-disabled,
81
- .p-component:disabled {
82
- opacity: ${e("disabled.opacity")};
83
- }
84
-
85
- .pi {
86
- font-size: ${e("icon.size")};
87
- }
88
-
89
- .p-icon {
90
- width: ${e("icon.size")};
91
- height: ${e("icon.size")};
92
- }
93
-
94
- .p-unselectable-text {
95
- user-select: none;
96
- }
97
-
98
- .p-overlay-mask {
99
- background: ${e("mask.background")};
100
- color: ${e("mask.color")};
101
- position: fixed;
102
- top: 0;
103
- left: 0;
104
- width: 100%;
105
- height: 100%;
106
- }
107
-
108
- .p-overlay-mask-enter {
109
- animation: p-overlay-mask-enter-animation ${e("mask.transition.duration")} forwards;
110
- }
111
-
112
- .p-overlay-mask-leave {
113
- animation: p-overlay-mask-leave-animation ${e("mask.transition.duration")} forwards;
114
- }
115
- /* Temporarily disabled, distrupts PrimeNG overlay animations */
116
- /* @keyframes p-overlay-mask-enter-animation {
117
- from {
118
- background: transparent;
119
- }
120
- to {
121
- background: ${e("mask.background")};
122
- }
123
- }
124
- @keyframes p-overlay-mask-leave-animation {
125
- from {
126
- background: ${e("mask.background")};
127
- }
128
- to {
129
- background: transparent;
130
- }
131
- }*/
132
-
133
- .p-iconwrapper {
134
- display: inline-flex;
135
- justify-content: center;
136
- align-items: center;
137
- }
138
- `,Gr=({dt:e})=>`
139
- .p-hidden-accessible {
140
- border: 0;
141
- clip: rect(0 0 0 0);
142
- height: 1px;
143
- margin: -1px;
144
- overflow: hidden;
145
- padding: 0;
146
- position: absolute;
147
- width: 1px;
148
- }
149
-
150
- .p-hidden-accessible input,
151
- .p-hidden-accessible select {
152
- transform: scale(0);
153
- }
154
-
155
- .p-overflow-hidden {
156
- overflow: hidden;
157
- padding-right: ${e("scrollbar.width")};
158
- }
159
-
160
- /* @todo move to baseiconstyle.ts */
161
-
162
- .p-icon {
163
- display: inline-block;
164
- vertical-align: baseline;
165
- }
166
-
167
- .p-icon-spin {
168
- -webkit-animation: p-icon-spin 2s infinite linear;
169
- animation: p-icon-spin 2s infinite linear;
170
- }
171
-
172
- @-webkit-keyframes p-icon-spin {
173
- 0% {
174
- -webkit-transform: rotate(0deg);
175
- transform: rotate(0deg);
176
- }
177
- 100% {
178
- -webkit-transform: rotate(359deg);
179
- transform: rotate(359deg);
180
- }
181
- }
182
-
183
- @keyframes p-icon-spin {
184
- 0% {
185
- -webkit-transform: rotate(0deg);
186
- transform: rotate(0deg);
187
- }
188
- 100% {
189
- -webkit-transform: rotate(359deg);
190
- transform: rotate(359deg);
191
- }
192
- }
193
- `,ln=(()=>{class e{name="base";useStyle=x(an);theme=void 0;css=void 0;classes={};inlineStyles={};load=(t,n={},r=s=>s)=>{let s=r(R(t,{dt:fe}));return s?this.useStyle.use(X(s),y({name:this.name},n)):{}};loadCSS=(t={})=>this.load(this.css,t);loadTheme=(t={},n="")=>this.load(this.theme,t,(r="")=>v.transformCSS(t.name||this.name,`${r}${n}`));loadGlobalCSS=(t={})=>this.load(Gr,t);loadGlobalTheme=(t={},n="")=>this.load(Wr,t,(r="")=>v.transformCSS(t.name||this.name,`${r}${n}`));getCommonTheme=t=>v.getCommon(this.name,t);getComponentTheme=t=>v.getComponent(this.name,t);getDirectiveTheme=t=>v.getDirective(this.name,t);getPresetTheme=(t,n,r)=>v.getCustomPreset(this.name,t,n,r);getLayerOrderThemeCSS=()=>v.getLayerOrderCSS(this.name);getStyleSheet=(t="",n={})=>{if(this.css){let r=R(this.css,{dt:fe}),s=X(`${r}${t}`),o=Object.entries(n).reduce((a,[c,l])=>a.push(`${c}="${l}"`)&&a,[]).join(" ");return`<style type="text/css" data-primeng-style-id="${this.name}" ${o}>${s}</style>`}return""};getCommonThemeStyleSheet=(t,n={})=>v.getCommonStyleSheet(this.name,t,n);getThemeStyleSheet=(t,n={})=>{let r=[v.getStyleSheet(this.name,t,n)];if(this.theme){let s=this.name==="base"?"global-style":`${this.name}-style`,o=R(this.theme,{dt:fe}),a=X(v.transformCSS(s,o)),c=Object.entries(n).reduce((l,[u,p])=>l.push(`${u}="${p}"`)&&l,[]).join(" ");r.push(`<style type="text/css" data-primeng-style-id="${s}" ${c}>${a}</style>`)}return r.join("")};static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var jr=(()=>{class e{theme=O(void 0);csp=O({nonce:void 0});isThemeChanged=!1;document=x(je);baseStyle=x(ln);constructor(){vt(()=>{B.on("theme:change",t=>{P(()=>{this.isThemeChanged=!0,this.theme.set(t)})})}),vt(()=>{let t=this.theme();this.document&&t&&(this.isThemeChanged||this.onThemeChange(t),this.isThemeChanged=!1)})}ngOnDestroy(){v.clearLoadedStyleNames(),B.clear()}onThemeChange(t){v.setTheme(t),this.document&&this.loadCommonTheme()}loadCommonTheme(){if(this.theme()!=="none"&&!v.isStyleNameLoaded("common")){let{primitive:t,semantic:n,global:r,style:s}=this.baseStyle.getCommonTheme?.()||{},o={nonce:this.csp?.()?.nonce};this.baseStyle.load(t?.css,y({name:"primitive-variables"},o)),this.baseStyle.load(n?.css,y({name:"semantic-variables"},o)),this.baseStyle.load(r?.css,y({name:"global-variables"},o)),this.baseStyle.loadGlobalTheme(y({name:"global-style"},o),s),v.setLoadedStyleName("common")}}setThemeConfig(t){let{theme:n,csp:r}=t||{};n&&this.theme.set(n),r&&this.csp.set(r)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Kr=(()=>{class e extends jr{ripple=O(!1);platformId=x(Qt);inputStyle=O(null);inputVariant=O(null);overlayOptions={};csp=O({nonce:void 0});filterMatchModeOptions={text:[S.STARTS_WITH,S.CONTAINS,S.NOT_CONTAINS,S.ENDS_WITH,S.EQUALS,S.NOT_EQUALS],numeric:[S.EQUALS,S.NOT_EQUALS,S.LESS_THAN,S.LESS_THAN_OR_EQUAL_TO,S.GREATER_THAN,S.GREATER_THAN_OR_EQUAL_TO],date:[S.DATE_IS,S.DATE_IS_NOT,S.DATE_BEFORE,S.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"Search results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",fileChosenMessage:"Files",noFileChosenMessage:"No file chosen",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color",removeLabel:"Remove",browseFiles:"Browse Files",maximizeLabel:"Maximize"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new $;translationObserver=this.translationSource.asObservable();getTranslation(t){return this.translation[t]}setTranslation(t){this.translation=y(y({},this.translation),t),this.translationSource.next(this.translation)}setConfig(t){let{csp:n,ripple:r,inputStyle:s,inputVariant:o,theme:a,overlayOptions:c,translation:l,filterMatchModeOptions:u}=t||{};n&&this.csp.set(n),r&&this.ripple.set(r),s&&this.inputStyle.set(s),o&&this.inputVariant.set(o),c&&(this.overlayOptions=c),l&&this.setTranslation(l),u&&(this.filterMatchModeOptions=u),a&&this.setThemeConfig({theme:a,csp:n})}static \u0275fac=(()=>{let t;return function(r){return(t||(t=G(e)))(r||e)}})();static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),qr=new W("PRIME_NG_CONFIG");function ya(...e){let i=e?.map(n=>({provide:qr,useValue:n,multi:!1})),t=ti(()=>{let n=x(Kr);e?.forEach(r=>n.setConfig(r))});return Jt([...i,t])}export{ce as a,fi as b,ri as c,j as d,ps as e,hs as f,le as g,Yn as h,De as i,Xn as j,gs as k,tr as l,Mi as m,Ni as n,Ri as o,or as p,xi as q,ms as r,ys as s,hr as t,gr as u,Et as v,mr as w,_s as x,vs as y,Cs as z,yr as A,_r as B,Es as C,Cr as D,As as E,$i as F,br as G,Sr as H,Ds as I,Bi as J,ws as K,Os as L,Ts as M,Vs as N,Is as O,Ms as P,Ns as Q,Er as R,Rs as S,Fs as T,Ls as U,Wi as V,xs as W,Ps as X,ks as Y,Hs as Z,Us as _,$s as $,Bs as aa,Ar as ba,Ws as ca,Gs as da,js as ea,Ks as fa,wr as ga,qs as ha,zs as ia,Ys as ja,Zs as ka,Js as la,Qs as ma,Xs as na,ji as oa,Oe as pa,Mr as qa,Yi as ra,m as sa,lt as ta,Ht as ua,to as va,io as wa,no as xa,R as ya,Zi as za,ct as Aa,ro as Ba,so as Ca,I as Da,oo as Ea,lo as Fa,S as Ga,Oo as Ha,To as Ia,Vo as Ja,Io as Ka,Mo as La,No as Ma,Ro as Na,Fo as Oa,Lo as Pa,xo as Qa,Ho as Ra,B as Sa,Ko as Ta,v as Ua,aa as Va,ln as Wa,Kr as Xa,ya as Ya};