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.
- package/3rdpartylicenses.txt +35 -35
- package/assets/scss/layouts/_sidebar.scss +2 -2
- package/assets/scss/style.scss +1 -1
- package/assets/scss/variables/_variables.scss +1 -1
- package/chunk-27SWEVDU.js +1 -0
- package/chunk-2DV653RD.js +1 -0
- package/chunk-2OECREUZ.js +1 -0
- package/{chunk-ANMMOPX7.js → chunk-32BR7AQL.js} +1 -1
- package/chunk-34XRAZFC.js +1 -0
- package/{chunk-2JCKXI2B.js → chunk-35CWG2OK.js} +1 -1
- package/{chunk-HAZ5H5ZV.js → chunk-35KDUCM3.js} +1 -1
- package/chunk-3G3QSUWH.js +1 -0
- package/{chunk-4LFQJHJZ.js → chunk-3HW557B7.js} +1 -1
- package/{chunk-HJPAXVNY.js → chunk-3L7IWFXM.js} +1 -1
- package/{chunk-7GHU4UQ7.js → chunk-3WB76KQC.js} +1 -1
- package/{chunk-JGSRMMYX.js → chunk-43WCLYRX.js} +1 -1
- package/{chunk-6NDJPEK4.js → chunk-46TNY5N4.js} +1 -1
- package/chunk-4KXSM3HP.js +1 -0
- package/chunk-4QKRWFW4.js +1 -0
- package/{chunk-4WYSO23S.js → chunk-54OPMMIM.js} +1 -1
- package/chunk-6HQX2SM2.js +1 -0
- package/{chunk-7UBLUR5O.js → chunk-6TA77CRR.js} +1 -1
- package/{chunk-4GL5YTWS.js → chunk-6ZZARVQO.js} +1 -1
- package/{chunk-RZRT24L6.js → chunk-AKMHO3LC.js} +1 -1
- package/{chunk-VG23QNZF.js → chunk-AOSPVPK7.js} +1 -1
- package/chunk-BNI5KUDE.js +193 -0
- package/chunk-BX3CRF44.js +1 -0
- package/{chunk-XLUCH64S.js → chunk-C4LZX33Q.js} +2 -2
- package/{chunk-HI7JDHS3.js → chunk-C5GEP4MM.js} +1 -1
- package/chunk-C7UZ6ZYF.js +1 -0
- package/{chunk-CVMP55UZ.js → chunk-CSMMP7XG.js} +1 -1
- package/chunk-CTCQB63H.js +1 -0
- package/chunk-DNK2GUDB.js +1 -0
- package/{chunk-5ROVFZR4.js → chunk-DOM7WYRM.js} +1 -1
- package/{chunk-IPUUBC74.js → chunk-ELWFWCNU.js} +2 -2
- package/{chunk-YLHU3GDJ.js → chunk-EXVUABTO.js} +1 -1
- package/{chunk-Q7ITPAXT.js → chunk-G6FJQBZZ.js} +1 -1
- package/chunk-GJXWL5XV.js +1 -0
- package/chunk-GNP7WGSH.js +1 -0
- package/chunk-GTGRV7IH.js +1 -0
- package/{chunk-RVTAI3J3.js → chunk-HFFH2WIX.js} +1 -1
- package/chunk-HRPP75N7.js +1 -0
- package/{chunk-PSDZXCOR.js → chunk-HRQJ5DXP.js} +1 -1
- package/chunk-J77A3DFB.js +1 -0
- package/chunk-JDW35ZB5.js +47 -0
- package/{chunk-AZM2EGTF.js → chunk-JMLETF7Y.js} +1 -1
- package/chunk-JYNZPVLW.js +1 -0
- package/chunk-K6753MGR.js +7 -0
- package/chunk-LD4G6ND6.js +130 -0
- package/{chunk-JHCHHBCW.js → chunk-LKZL77YR.js} +1 -1
- package/{chunk-P5ZPLAYA.js → chunk-LR2DJRRL.js} +1 -1
- package/{chunk-P36L53XK.js → chunk-LTZA6IIO.js} +1 -1
- package/chunk-M7MFX6BW.js +1 -0
- package/chunk-MCDQ2TIS.js +1 -0
- package/chunk-MJVSTWYY.js +1 -0
- package/{chunk-FBUI4SQJ.js → chunk-N2RYBZK7.js} +1 -1
- package/{chunk-O2G255P4.js → chunk-N6JCA3CN.js} +2 -2
- package/{chunk-LYDUVWPM.js → chunk-NF3TF3LT.js} +1 -1
- package/chunk-OEJBOFI5.js +1 -0
- package/{chunk-IPKPBYSN.js → chunk-OEOAUJY5.js} +6 -6
- package/{chunk-I7YFUZI7.js → chunk-OVCTOPAO.js} +1 -1
- package/{chunk-MP7S52YU.js → chunk-OZACNHDP.js} +1 -1
- package/{chunk-CVMIZKGH.js → chunk-P6CJ2ONT.js} +1 -1
- package/{chunk-ONPJXDDI.js → chunk-QPKNYNLC.js} +2 -2
- package/{chunk-6JZPAN4G.js → chunk-RBDJZRHY.js} +1 -1
- package/{chunk-4B5RFKWI.js → chunk-RT5PUZ5F.js} +1 -1
- package/{chunk-JQZRKOKE.js → chunk-TC43COAE.js} +1 -1
- package/{chunk-OSFKXKXD.js → chunk-TFV5QZKR.js} +1 -1
- package/{chunk-DAV2SMOY.js → chunk-TK3G2BVM.js} +1 -1
- package/{chunk-VUPF5YJY.js → chunk-TQZNJ5WF.js} +1 -1
- package/chunk-UEOO2LYA.js +82 -0
- package/chunk-WEWEITR7.js +1 -0
- package/{chunk-FFODCTQC.js → chunk-WGZN6AN2.js} +1 -1
- package/chunk-WZO2ZLBL.js +1 -0
- package/chunk-X34Y3TVX.js +1 -0
- package/chunk-XFSZDZPJ.js +1 -0
- package/{chunk-OVIHA23Z.js → chunk-XKEV5AED.js} +1 -1
- package/chunk-XZGFG6E3.js +1 -0
- package/{chunk-TCF45ELT.js → chunk-YOEPO6LK.js} +1 -1
- package/index.html +2 -2
- package/{main-EJEYMG7N.js → main-U5PC2W2C.js} +1 -1
- package/package.json +1 -1
- package/styles-GTUKYMN7.css +1 -0
- package/chunk-3HN62WAN.js +0 -1
- package/chunk-5RUWTN5X.js +0 -1
- package/chunk-6OAGE44Z.js +0 -7
- package/chunk-7XDZM4MJ.js +0 -1
- package/chunk-AF77PUJO.js +0 -1
- package/chunk-ALX7UOMP.js +0 -193
- package/chunk-ANG5YF2J.js +0 -47
- package/chunk-ARESU6CY.js +0 -1
- package/chunk-CZMTQ4XK.js +0 -1
- package/chunk-DC5OTEZ6.js +0 -1
- package/chunk-F2FW6UDP.js +0 -1
- package/chunk-FIQFBEQK.js +0 -1
- package/chunk-FYQCFDW7.js +0 -1
- package/chunk-G2APSUOI.js +0 -1
- package/chunk-IL7RZKFX.js +0 -1
- package/chunk-IZ2XPL4O.js +0 -1
- package/chunk-MFMEPXFQ.js +0 -1
- package/chunk-NXCQN45H.js +0 -1
- package/chunk-PQTUFQME.js +0 -129
- package/chunk-RIOZSND3.js +0 -1
- package/chunk-SJ5TWHWM.js +0 -1
- package/chunk-TYHNOILY.js +0 -1
- package/chunk-VEUXDYYI.js +0 -1
- package/chunk-VXSF6SQF.js +0 -1
- package/chunk-WSVAXPZZ.js +0 -82
- package/chunk-X3PB5IV5.js +0 -1
- package/chunk-YDBJGTTB.js +0 -1
- package/styles-AU7PIISM.css +0 -1
package/3rdpartylicenses.txt
CHANGED
|
@@ -81,6 +81,36 @@ The term “Software” includes all source and object code, in whole and/or par
|
|
|
81
81
|
9. **Indemnification:** Licensee hereby warrants to hold Licensor harmless and indemnify Licensor for any lawsuit brought against it in regards to Licensee’s use of The Software in means that violate, breach or otherwise circumvent this license, Licensor's intellectual property rights or Licensor's title in The Software. Licensor shall promptly notify Licensee in case of such legal action and request Licensee’s consent prior to any settlement in relation to such lawsuit or claim.
|
|
82
82
|
10. **Governing Law, Jurisdiction:** Licensee hereby agrees not to initiate class-action lawsuits against Licensor in relation to this license and to compensate Licensor for any legal fees, cost or attorney fees should any claim brought by Licensee against Licensor be denied, in part or in full.
|
|
83
83
|
|
|
84
|
+
--------------------------------------------------------------------------------
|
|
85
|
+
Package: swiper
|
|
86
|
+
License: "MIT"
|
|
87
|
+
|
|
88
|
+
The MIT License (MIT)
|
|
89
|
+
|
|
90
|
+
Copyright (c) 2019 Vladimir Kharlampidi
|
|
91
|
+
|
|
92
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
93
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
94
|
+
the Software without restriction, including without limitation the rights to
|
|
95
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
96
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
97
|
+
subject to the following conditions:
|
|
98
|
+
|
|
99
|
+
The above copyright notice and this permission notice shall be included in all
|
|
100
|
+
copies or substantial portions of the Software.
|
|
101
|
+
|
|
102
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
103
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
104
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
105
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
106
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
107
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
108
|
+
|
|
109
|
+
--------------------------------------------------------------------------------
|
|
110
|
+
Package: @dealpos-npm/ng-dealpos-library
|
|
111
|
+
License: "ISC"
|
|
112
|
+
|
|
113
|
+
|
|
84
114
|
--------------------------------------------------------------------------------
|
|
85
115
|
Package: @angular/animations
|
|
86
116
|
License: "MIT"
|
|
@@ -108,34 +138,18 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
108
138
|
THE SOFTWARE.
|
|
109
139
|
|
|
110
140
|
--------------------------------------------------------------------------------
|
|
111
|
-
Package:
|
|
141
|
+
Package: uuid
|
|
112
142
|
License: "MIT"
|
|
113
143
|
|
|
114
144
|
The MIT License (MIT)
|
|
115
145
|
|
|
116
|
-
Copyright (c)
|
|
117
|
-
|
|
118
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
119
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
120
|
-
the Software without restriction, including without limitation the rights to
|
|
121
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
122
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
123
|
-
subject to the following conditions:
|
|
124
|
-
|
|
125
|
-
The above copyright notice and this permission notice shall be included in all
|
|
126
|
-
copies or substantial portions of the Software.
|
|
146
|
+
Copyright (c) 2010-2020 Robert Kieffer and other contributors
|
|
127
147
|
|
|
128
|
-
|
|
129
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
130
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
131
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
132
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
133
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
148
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
134
149
|
|
|
135
|
-
|
|
136
|
-
Package: @dealpos-npm/ng-dealpos-library
|
|
137
|
-
License: "ISC"
|
|
150
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
138
151
|
|
|
152
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
139
153
|
|
|
140
154
|
--------------------------------------------------------------------------------
|
|
141
155
|
Package: dayjs
|
|
@@ -191,20 +205,6 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
191
205
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
192
206
|
OTHER DEALINGS IN THE SOFTWARE.
|
|
193
207
|
|
|
194
|
-
--------------------------------------------------------------------------------
|
|
195
|
-
Package: uuid
|
|
196
|
-
License: "MIT"
|
|
197
|
-
|
|
198
|
-
The MIT License (MIT)
|
|
199
|
-
|
|
200
|
-
Copyright (c) 2010-2020 Robert Kieffer and other contributors
|
|
201
|
-
|
|
202
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
203
|
-
|
|
204
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
205
|
-
|
|
206
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
207
|
-
|
|
208
208
|
--------------------------------------------------------------------------------
|
|
209
209
|
Package: @angular/platform-browser
|
|
210
210
|
License: "MIT"
|
package/assets/scss/style.scss
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as v,b as L}from"./chunk-G6FJQBZZ.js";import"./chunk-GJXWL5XV.js";import"./chunk-34XRAZFC.js";import{a as E,b as O}from"./chunk-LKZL77YR.js";import{a as R,b as D}from"./chunk-JDW35ZB5.js";import"./chunk-WZO2ZLBL.js";import"./chunk-6ZZARVQO.js";import{h as H}from"./chunk-35CWG2OK.js";import{b as N,c as G}from"./chunk-EXVUABTO.js";import"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import{w as V,x as j}from"./chunk-YOEPO6LK.js";import"./chunk-ZWHB7NI7.js";import"./chunk-BNI5KUDE.js";import"./chunk-35KDUCM3.js";import{a as I}from"./chunk-3HW557B7.js";import{i as A,m as F}from"./chunk-BYD3JK4R.js";import"./chunk-F2X3VGZZ.js";import{Cb as P,Ic as l,Jc as m,Kb as p,Lc as x,Nb as d,Ub as o,V as M,Vb as n,Wb as c,X as y,Z as S,_b as w,dc as h,ec as s,gb as a,h as T,ha as f,pa as g,qa as C,ra as b,s as u,sa as k,wb as B,xc as $,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),h("onClick",function(){g(e);let r=s();return C(r.onFormatCOAConfig())}),n(),o(2,"p-button",5),l(3,"async"),l(4,"async"),h("onClick",function(){g(e);let r=s();return C(r.onMigrateCoaConfig())}),n()()}if(i&2){let e=s();a(2),p("disabled",m(3,2,e.countInBooks$)!==0)("pTooltip",m(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function K(i,z){if(i&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),c(3,"app-migration-cards",7),l(4,"async"),b(),o(5,"svg",8),c(6,"path",9),n(),k(),c(7,"app-migration-cards",10),l(8,"async"),n()()()),i&2){let e=s();d(_(12,q)),a(),d(_(13,q)),a(2),p("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var ge=(()=>{class i{constructor(){this.migrateService=f(v),this.toastr=f(I),this.refresh$=new T(void 0),this.pageTitle="Chart of Account Configuration"}ngOnInit(){let e=this.refresh$.pipe(y(()=>this.migrateService.getCOAConfigurationCount()),S(t=>console.log("API response:",t)),M(1));this.countInPOS$=e.pipe(u(t=>Number(t.pos))),this.countInBooks$=e.pipe(u(t=>Number(t.books)))}onMigrateCoaConfig(){this.migrateService.migrateCoaConfig().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormatCOAConfig(){this.migrateService.formatManualCOAConfig().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=B({type:i,selectors:[["app-coa-configuration"]],features:[$([v])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(t,r){t&1&&(o(0,"app-main-panel",2),P(1,J,5,6,"ng-template",null,0,x)(3,K,9,14,"ng-template",null,1,x),n()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[H,F,A,j,V,O,E,D,R,G,N,L],encapsulation:2})}}return i})();export{ge as CoaConfigurationComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as v,b as H}from"./chunk-G6FJQBZZ.js";import"./chunk-GJXWL5XV.js";import"./chunk-34XRAZFC.js";import{a as F,b as I}from"./chunk-LKZL77YR.js";import{a as O,b as R}from"./chunk-JDW35ZB5.js";import"./chunk-WZO2ZLBL.js";import"./chunk-6ZZARVQO.js";import{h as G}from"./chunk-35CWG2OK.js";import{b as D,c as N}from"./chunk-EXVUABTO.js";import"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import{w as V,x as j}from"./chunk-YOEPO6LK.js";import"./chunk-ZWHB7NI7.js";import"./chunk-BNI5KUDE.js";import"./chunk-35KDUCM3.js";import{a as $}from"./chunk-3HW557B7.js";import{i as A,m as P}from"./chunk-BYD3JK4R.js";import"./chunk-F2X3VGZZ.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YQFG5XE2.js";var t=[{path:"",redirectTo:"tax-account",pathMatch:"full"},{path:"tax-account",loadComponent:()=>import("./chunk-M7MFX6BW.js").then(o=>o.TaxAccountComponent)},{path:"chart-of-account",loadComponent:()=>import("./chunk-CTCQB63H.js").then(o=>o.ChartOfAccountComponent)},{path:"manual-journal",loadComponent:()=>import("./chunk-MJVSTWYY.js").then(o=>o.ManualJournalComponent)},{path:"payment-account",loadComponent:()=>import("./chunk-GTGRV7IH.js").then(o=>o.PaymentAccountComponent)},{path:"writeoff-outlet",loadComponent:()=>import("./chunk-XZGFG6E3.js").then(o=>o.WriteOffOutletComponent)},{path:"expense-account",loadComponent:()=>import("./chunk-2DV653RD.js").then(o=>o.ExpenseAccountComponent)},{path:"coa-configuration",loadComponent:()=>import("./chunk-27SWEVDU.js").then(o=>o.CoaConfigurationComponent)},{path:"coa-category",loadComponent:()=>import("./chunk-6HQX2SM2.js").then(o=>o.CoaCategoryComponent)},{path:"outlet-account",loadComponent:()=>import("./chunk-WEWEITR7.js").then(o=>o.OutletAccountComponent)}];export{t as MIGRATE_ROUTES};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as y}from"./chunk-
|
|
1
|
+
import{a as y}from"./chunk-YOEPO6LK.js";import{Va as $,d as b,j as m}from"./chunk-BNI5KUDE.js";import{Ab as g,Mb as h,Uc as o,ba as l,ca as s,dc as x,ha as d,mb as r,ta as u,xb as p,xc as v,yb as f,za as c}from"./chunk-YVEUYFCE.js";var M=({dt:e})=>`
|
|
2
2
|
.p-textarea {
|
|
3
3
|
font-family: inherit;
|
|
4
4
|
font-feature-settings: inherit;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={production:!0,version:"1.9.6",changelogUrl:"https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=1.0.9",defaultTimezone:"Asia/Jakarta"};export{e as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ut,b as wt,c as It}from"./chunk-YLHU3GDJ.js";import{h as Tt}from"./chunk-4S33ZRKF.js";import{a as ot,b as at}from"./chunk-4FGQ5T64.js";import{a as ue,b as gt,f as Le,h as fe,j as ft,k as ht,l as bt,m as Ct,n as xt,o as yt,w as he,x as vt}from"./chunk-TCF45ELT.js";import{$ as pt,A as $,B as ce,C as De,D as me,E as Se,F as Ve,Fa as O,K as Fe,M as lt,Na as ct,Oa as ge,P as st,Pa as mt,T as Pe,W as rt,Wa as _t,b as et,ba as _e,e as tt,j as it,oa as dt,y as nt}from"./chunk-ALX7UOMP.js";import{c as Je,d as Ie,f as ke,h as ze,i as Me,k as Ee}from"./chunk-F2X3VGZZ.js";import{E as Ue,a as Ge,c as se,f as re,g as Ke,h as pe,m as de,n as Z}from"./chunk-BYD3JK4R.js";import{Aa as Re,Ab as V,Ac as je,Bc as Ze,Ca as U,Cb as m,Da as D,Ga as Qe,Ic as Te,Jb as T,Jc as we,Ka as Ae,Kb as o,Lc as A,Nb as H,Ob as F,Pb as N,Ub as p,Uc as h,Vb as d,Vc as le,Wb as y,Xb as B,Xc as $e,Yb as R,Yc as qe,Zb as w,_b as b,ba as He,ca as Ce,dc as u,eb as We,ec as r,fc as J,gb as l,gc as X,ha as I,ic as v,jc as ee,kc as C,lc as x,oa as Be,oc as te,pa as _,pc as Y,qa as g,qc as Ye,ra as K,rb as xe,rc as ve,ta as k,uc as ie,vc as ne,wb as S,wc as oe,xb as ye,xc as ae,yb as Ne,yc as j,za as E,zb as Xe,zc as Q}from"./chunk-YVEUYFCE.js";import{a as be}from"./chunk-YQFG5XE2.js";var kt=(()=>{class t extends fe{pathId;ngOnInit(){this.pathId="url(#"+O()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=S({type:t,selectors:[["WindowMaximizeIcon"]],features:[V],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(K(),p(0,"svg",0)(1,"g"),y(2,"path",1),d(),p(3,"defs")(4,"clipPath",2),y(5,"rect",3),d()()()),n&2&&(F(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),l(),T("clip-path",i.pathId),l(3),o("id",i.pathId))},encapsulation:2})}return t})();var zt=(()=>{class t extends fe{pathId;ngOnInit(){this.pathId="url(#"+O()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=S({type:t,selectors:[["WindowMinimizeIcon"]],features:[V],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(K(),p(0,"svg",0)(1,"g"),y(2,"path",1),d(),p(3,"defs")(4,"clipPath",2),y(5,"rect",3),d()()()),n&2&&(F(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),l(),T("clip-path",i.pathId),l(3),o("id",i.pathId))},encapsulation:2})}return t})();var Mt=(()=>{class t extends ue{pFocusTrapDisabled=!1;platformId=I(Ae);document=I(Ge);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){super.ngOnInit(),Z(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(e){super.ngOnChanges(e),e.pFocusTrapDisabled&&Z(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){let e="0",n=i=>st("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:e,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:i?.bind(this)});this.firstHiddenFocusableElement=n(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=n(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.el.nativeElement.prepend(this.firstHiddenFocusableElement),this.el.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(i)?rt(n.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;Pe(a)}onLastHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(i)?pt(n.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;Pe(a)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275dir=Ne({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",h]},features:[V,Be]})}return t})();var Lt=["header"],Et=["content"],Dt=["footer"],Ot=["closeicon"],Ht=["maximizeicon"],Bt=["minimizeicon"],Rt=["headless"],Qt=["titlebar"],At=["*",[["p-footer"]]],Wt=["*","p-footer"],Nt=(t,s,e)=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex","justify-content":t,"align-items":s,"pointer-events":e}),Xt=t=>({"p-dialog p-component":!0,"p-dialog-maximized":t}),Yt=()=>({display:"flex","flex-direction":"column","pointer-events":"auto"}),jt=(t,s)=>({transform:t,transition:s}),Zt=t=>({value:"visible",params:t});function $t(t,s){t&1&&w(0)}function qt(t,s){if(t&1&&(B(0),m(1,$t,1,0,"ng-container",11),R()),t&2){let e=r(3);l(),o("ngTemplateOutlet",e._headlessTemplate||e.headlessTemplate||e.headlessT)}}function Gt(t,s){if(t&1){let e=b();p(0,"div",15),u("mousedown",function(i){_(e);let a=r(4);return g(a.initResize(i))}),d()}if(t&2){let e=r(4);o("ngClass",e.cx("resizeHandle"))}}function Kt(t,s){if(t&1&&(p(0,"span",21),Y(1),d()),t&2){let e=r(5);o("id",e.ariaLabelledBy)("ngClass",e.cx("title")),l(),Ye(e.header)}}function Ut(t,s){t&1&&w(0)}function Jt(t,s){if(t&1&&y(0,"span",18),t&2){let e=r(6);o("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function ei(t,s){t&1&&y(0,"WindowMaximizeIcon")}function ti(t,s){t&1&&y(0,"WindowMinimizeIcon")}function ii(t,s){if(t&1&&(B(0),m(1,ei,1,0,"WindowMaximizeIcon",23)(2,ti,1,0,"WindowMinimizeIcon",23),R()),t&2){let e=r(6);l(),o("ngIf",!e.maximized&&!e._maximizeiconTemplate&&!e.maximizeIconTemplate&&!e.maximizeIconT),l(),o("ngIf",e.maximized&&!e._minimizeiconTemplate&&!e.minimizeIconTemplate&&!e.minimizeIconT)}}function ni(t,s){}function oi(t,s){t&1&&m(0,ni,0,0,"ng-template")}function ai(t,s){if(t&1&&(B(0),m(1,oi,1,0,null,11),R()),t&2){let e=r(6);l(),o("ngTemplateOutlet",e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)}}function li(t,s){}function si(t,s){t&1&&m(0,li,0,0,"ng-template")}function ri(t,s){if(t&1&&(B(0),m(1,si,1,0,null,11),R()),t&2){let e=r(6);l(),o("ngTemplateOutlet",e._minimizeiconTemplate||e.minimizeIconTemplate||e.minimizeIconT)}}function pi(t,s){if(t&1){let e=b();p(0,"p-button",22),u("onClick",function(){_(e);let i=r(5);return g(i.maximize())})("keydown.enter",function(){_(e);let i=r(5);return g(i.maximize())}),m(1,Jt,1,1,"span",14)(2,ii,3,2,"ng-container",23)(3,ai,2,1,"ng-container",23)(4,ri,2,1,"ng-container",23),d()}if(t&2){let e=r(5);o("styleClass",e.cx("pcMaximizeButton"))("tabindex",e.maximizable?"0":"-1")("ariaLabel",e.maximizeLabel)("buttonProps",e.maximizeButtonProps),l(),o("ngIf",e.maximizeIcon&&!e._maximizeiconTemplate&&!e._minimizeiconTemplate),l(),o("ngIf",!e.maximizeIcon&&!(e.maximizeButtonProps!=null&&e.maximizeButtonProps.icon)),l(),o("ngIf",!e.maximized),l(),o("ngIf",e.maximized)}}function di(t,s){if(t&1&&y(0,"span",18),t&2){let e=r(8);o("ngClass",e.closeIcon)}}function ci(t,s){t&1&&y(0,"TimesIcon")}function mi(t,s){if(t&1&&(B(0),m(1,di,1,1,"span",14)(2,ci,1,0,"TimesIcon",23),R()),t&2){let e=r(7);l(),o("ngIf",e.closeIcon),l(),o("ngIf",!e.closeIcon)}}function _i(t,s){}function gi(t,s){t&1&&m(0,_i,0,0,"ng-template")}function ui(t,s){if(t&1&&(p(0,"span"),m(1,gi,1,0,null,11),d()),t&2){let e=r(7);l(),o("ngTemplateOutlet",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function fi(t,s){if(t&1&&m(0,mi,3,2,"ng-container",23)(1,ui,2,1,"span",23),t&2){let e=r(6);o("ngIf",!e._closeiconTemplate&&!e.closeIconTemplate&&!e.closeIconT&&!(e.closeButtonProps!=null&&e.closeButtonProps.icon)),l(),o("ngIf",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function hi(t,s){if(t&1){let e=b();p(0,"p-button",24),u("onClick",function(i){_(e);let a=r(5);return g(a.close(i))})("keydown.enter",function(i){_(e);let a=r(5);return g(a.close(i))}),m(1,fi,2,2,"ng-template",null,4,A),d()}if(t&2){let e=r(5);o("styleClass",e.cx("pcCloseButton"))("ariaLabel",e.closeAriaLabel)("tabindex",e.closeTabindex)("buttonProps",e.closeButtonProps)}}function bi(t,s){if(t&1){let e=b();p(0,"div",16,3),u("mousedown",function(i){_(e);let a=r(4);return g(a.initDrag(i))}),m(2,Kt,2,3,"span",17)(3,Ut,1,0,"ng-container",11),p(4,"div",18),m(5,pi,5,8,"p-button",19)(6,hi,3,4,"p-button",20),d()()}if(t&2){let e=r(4);o("ngClass",e.cx("header")),l(2),o("ngIf",!e._headerTemplate&&!e.headerTemplate&&!e.headerT),l(),o("ngTemplateOutlet",e._headerTemplate||e.headerTemplate||e.headerT),l(),o("ngClass",e.cx("headerActions")),l(),o("ngIf",e.maximizable),l(),o("ngIf",e.closable)}}function Ci(t,s){t&1&&w(0)}function xi(t,s){t&1&&w(0)}function yi(t,s){if(t&1&&(p(0,"div",18,5),X(2,1),m(3,xi,1,0,"ng-container",11),d()),t&2){let e=r(4);o("ngClass",e.cx("footer")),l(3),o("ngTemplateOutlet",e._footerTemplate||e.footerTemplate||e.footerT)}}function vi(t,s){if(t&1&&(m(0,Gt,1,1,"div",12)(1,bi,7,6,"div",13),p(2,"div",7,2),X(4),m(5,Ci,1,0,"ng-container",11),d(),m(6,yi,4,2,"div",14)),t&2){let e=r(3);o("ngIf",e.resizable),l(),o("ngIf",e.showHeader),l(),F(e.contentStyleClass),o("ngClass",e.cx("content"))("ngStyle",e.contentStyle),T("data-pc-section","content"),l(3),o("ngTemplateOutlet",e._contentTemplate||e.contentTemplate||e.contentT),l(),o("ngIf",e._footerTemplate||e.footerTemplate||e.footerT)}}function Ti(t,s){if(t&1){let e=b();p(0,"div",9,0),u("@animation.start",function(i){_(e);let a=r(2);return g(a.onAnimationStart(i))})("@animation.done",function(i){_(e);let a=r(2);return g(a.onAnimationEnd(i))}),m(2,qt,2,1,"ng-container",10)(3,vi,7,9,"ng-template",null,1,A),d()}if(t&2){let e=te(4),n=r(2);H(n.style),F(n.styleClass),o("ngClass",Q(13,Xt,n.maximizable&&n.maximized))("ngStyle",j(15,Yt))("pFocusTrapDisabled",n.focusTrap===!1)("@animation",Q(19,Zt,je(16,jt,n.transformOptions,n.transitionOptions))),T("role",n.role)("aria-labelledby",n.ariaLabelledBy)("aria-modal",!0),l(2),o("ngIf",n._headlessTemplate||n.headlessTemplate||n.headlessT)("ngIfElse",e)}}function wi(t,s){if(t&1&&(p(0,"div",7),m(1,Ti,5,21,"div",8),d()),t&2){let e=r();H(e.maskStyle),F(e.maskStyleClass),o("ngClass",e.maskClass)("ngStyle",Ze(7,Nt,e.position==="left"||e.position==="topleft"||e.position==="bottomleft"?"flex-start":e.position==="right"||e.position==="topright"||e.position==="bottomright"?"flex-end":"center",e.position==="top"||e.position==="topleft"||e.position==="topright"?"flex-start":e.position==="bottom"||e.position==="bottomleft"||e.position==="bottomright"?"flex-end":"center",e.modal?"auto":"none")),l(),o("ngIf",e.visible)}}var Ii=({dt:t})=>`
|
|
1
|
+
import{a as ut,b as wt,c as It}from"./chunk-EXVUABTO.js";import{h as Tt}from"./chunk-4S33ZRKF.js";import{a as ot,b as at}from"./chunk-4FGQ5T64.js";import{a as ue,b as gt,f as Le,h as fe,j as ft,k as ht,l as bt,m as Ct,n as xt,o as yt,w as he,x as vt}from"./chunk-YOEPO6LK.js";import{A as ce,B as De,C as me,D as Se,E as Ve,Ea as O,J as Fe,L as lt,Ma as ct,Na as ge,O as st,Oa as mt,S as Pe,V as rt,Va as _t,_ as pt,aa as _e,b as et,e as tt,j as it,na as dt,x as nt,z as $}from"./chunk-BNI5KUDE.js";import{E as Ue,a as Ge,c as se,f as re,g as Ke,h as pe,m as de,n as Z}from"./chunk-BYD3JK4R.js";import{c as Je,d as Ie,f as ke,h as ze,i as Me,k as Ee}from"./chunk-F2X3VGZZ.js";import{Aa as Re,Ab as V,Ac as je,Bc as Ze,Ca as U,Cb as m,Da as D,Ga as Qe,Ic as Te,Jb as T,Jc as we,Ka as Ae,Kb as o,Lc as A,Nb as H,Ob as F,Pb as N,Ub as p,Uc as h,Vb as d,Vc as le,Wb as y,Xb as B,Xc as $e,Yb as R,Yc as qe,Zb as w,_b as b,ba as He,ca as Ce,dc as u,eb as We,ec as r,fc as J,gb as l,gc as X,ha as I,ic as v,jc as ee,kc as C,lc as x,oa as Be,oc as te,pa as _,pc as Y,qa as g,qc as Ye,ra as K,rb as xe,rc as ve,ta as k,uc as ie,vc as ne,wb as S,wc as oe,xb as ye,xc as ae,yb as Ne,yc as j,za as E,zb as Xe,zc as Q}from"./chunk-YVEUYFCE.js";import{a as be}from"./chunk-YQFG5XE2.js";var kt=(()=>{class t extends fe{pathId;ngOnInit(){this.pathId="url(#"+O()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=S({type:t,selectors:[["WindowMaximizeIcon"]],features:[V],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(K(),p(0,"svg",0)(1,"g"),y(2,"path",1),d(),p(3,"defs")(4,"clipPath",2),y(5,"rect",3),d()()()),n&2&&(F(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),l(),T("clip-path",i.pathId),l(3),o("id",i.pathId))},encapsulation:2})}return t})();var zt=(()=>{class t extends fe{pathId;ngOnInit(){this.pathId="url(#"+O()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=S({type:t,selectors:[["WindowMinimizeIcon"]],features:[V],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(K(),p(0,"svg",0)(1,"g"),y(2,"path",1),d(),p(3,"defs")(4,"clipPath",2),y(5,"rect",3),d()()()),n&2&&(F(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),l(),T("clip-path",i.pathId),l(3),o("id",i.pathId))},encapsulation:2})}return t})();var Mt=(()=>{class t extends ue{pFocusTrapDisabled=!1;platformId=I(Ae);document=I(Ge);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){super.ngOnInit(),Z(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(e){super.ngOnChanges(e),e.pFocusTrapDisabled&&Z(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){let e="0",n=i=>st("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:e,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:i?.bind(this)});this.firstHiddenFocusableElement=n(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=n(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.el.nativeElement.prepend(this.firstHiddenFocusableElement),this.el.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(i)?rt(n.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;Pe(a)}onLastHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(i)?pt(n.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;Pe(a)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275dir=Ne({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",h]},features:[V,Be]})}return t})();var Lt=["header"],Et=["content"],Dt=["footer"],Ot=["closeicon"],Ht=["maximizeicon"],Bt=["minimizeicon"],Rt=["headless"],Qt=["titlebar"],At=["*",[["p-footer"]]],Wt=["*","p-footer"],Nt=(t,s,e)=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex","justify-content":t,"align-items":s,"pointer-events":e}),Xt=t=>({"p-dialog p-component":!0,"p-dialog-maximized":t}),Yt=()=>({display:"flex","flex-direction":"column","pointer-events":"auto"}),jt=(t,s)=>({transform:t,transition:s}),Zt=t=>({value:"visible",params:t});function $t(t,s){t&1&&w(0)}function qt(t,s){if(t&1&&(B(0),m(1,$t,1,0,"ng-container",11),R()),t&2){let e=r(3);l(),o("ngTemplateOutlet",e._headlessTemplate||e.headlessTemplate||e.headlessT)}}function Gt(t,s){if(t&1){let e=b();p(0,"div",15),u("mousedown",function(i){_(e);let a=r(4);return g(a.initResize(i))}),d()}if(t&2){let e=r(4);o("ngClass",e.cx("resizeHandle"))}}function Kt(t,s){if(t&1&&(p(0,"span",21),Y(1),d()),t&2){let e=r(5);o("id",e.ariaLabelledBy)("ngClass",e.cx("title")),l(),Ye(e.header)}}function Ut(t,s){t&1&&w(0)}function Jt(t,s){if(t&1&&y(0,"span",18),t&2){let e=r(6);o("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function ei(t,s){t&1&&y(0,"WindowMaximizeIcon")}function ti(t,s){t&1&&y(0,"WindowMinimizeIcon")}function ii(t,s){if(t&1&&(B(0),m(1,ei,1,0,"WindowMaximizeIcon",23)(2,ti,1,0,"WindowMinimizeIcon",23),R()),t&2){let e=r(6);l(),o("ngIf",!e.maximized&&!e._maximizeiconTemplate&&!e.maximizeIconTemplate&&!e.maximizeIconT),l(),o("ngIf",e.maximized&&!e._minimizeiconTemplate&&!e.minimizeIconTemplate&&!e.minimizeIconT)}}function ni(t,s){}function oi(t,s){t&1&&m(0,ni,0,0,"ng-template")}function ai(t,s){if(t&1&&(B(0),m(1,oi,1,0,null,11),R()),t&2){let e=r(6);l(),o("ngTemplateOutlet",e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)}}function li(t,s){}function si(t,s){t&1&&m(0,li,0,0,"ng-template")}function ri(t,s){if(t&1&&(B(0),m(1,si,1,0,null,11),R()),t&2){let e=r(6);l(),o("ngTemplateOutlet",e._minimizeiconTemplate||e.minimizeIconTemplate||e.minimizeIconT)}}function pi(t,s){if(t&1){let e=b();p(0,"p-button",22),u("onClick",function(){_(e);let i=r(5);return g(i.maximize())})("keydown.enter",function(){_(e);let i=r(5);return g(i.maximize())}),m(1,Jt,1,1,"span",14)(2,ii,3,2,"ng-container",23)(3,ai,2,1,"ng-container",23)(4,ri,2,1,"ng-container",23),d()}if(t&2){let e=r(5);o("styleClass",e.cx("pcMaximizeButton"))("tabindex",e.maximizable?"0":"-1")("ariaLabel",e.maximizeLabel)("buttonProps",e.maximizeButtonProps),l(),o("ngIf",e.maximizeIcon&&!e._maximizeiconTemplate&&!e._minimizeiconTemplate),l(),o("ngIf",!e.maximizeIcon&&!(e.maximizeButtonProps!=null&&e.maximizeButtonProps.icon)),l(),o("ngIf",!e.maximized),l(),o("ngIf",e.maximized)}}function di(t,s){if(t&1&&y(0,"span",18),t&2){let e=r(8);o("ngClass",e.closeIcon)}}function ci(t,s){t&1&&y(0,"TimesIcon")}function mi(t,s){if(t&1&&(B(0),m(1,di,1,1,"span",14)(2,ci,1,0,"TimesIcon",23),R()),t&2){let e=r(7);l(),o("ngIf",e.closeIcon),l(),o("ngIf",!e.closeIcon)}}function _i(t,s){}function gi(t,s){t&1&&m(0,_i,0,0,"ng-template")}function ui(t,s){if(t&1&&(p(0,"span"),m(1,gi,1,0,null,11),d()),t&2){let e=r(7);l(),o("ngTemplateOutlet",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function fi(t,s){if(t&1&&m(0,mi,3,2,"ng-container",23)(1,ui,2,1,"span",23),t&2){let e=r(6);o("ngIf",!e._closeiconTemplate&&!e.closeIconTemplate&&!e.closeIconT&&!(e.closeButtonProps!=null&&e.closeButtonProps.icon)),l(),o("ngIf",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function hi(t,s){if(t&1){let e=b();p(0,"p-button",24),u("onClick",function(i){_(e);let a=r(5);return g(a.close(i))})("keydown.enter",function(i){_(e);let a=r(5);return g(a.close(i))}),m(1,fi,2,2,"ng-template",null,4,A),d()}if(t&2){let e=r(5);o("styleClass",e.cx("pcCloseButton"))("ariaLabel",e.closeAriaLabel)("tabindex",e.closeTabindex)("buttonProps",e.closeButtonProps)}}function bi(t,s){if(t&1){let e=b();p(0,"div",16,3),u("mousedown",function(i){_(e);let a=r(4);return g(a.initDrag(i))}),m(2,Kt,2,3,"span",17)(3,Ut,1,0,"ng-container",11),p(4,"div",18),m(5,pi,5,8,"p-button",19)(6,hi,3,4,"p-button",20),d()()}if(t&2){let e=r(4);o("ngClass",e.cx("header")),l(2),o("ngIf",!e._headerTemplate&&!e.headerTemplate&&!e.headerT),l(),o("ngTemplateOutlet",e._headerTemplate||e.headerTemplate||e.headerT),l(),o("ngClass",e.cx("headerActions")),l(),o("ngIf",e.maximizable),l(),o("ngIf",e.closable)}}function Ci(t,s){t&1&&w(0)}function xi(t,s){t&1&&w(0)}function yi(t,s){if(t&1&&(p(0,"div",18,5),X(2,1),m(3,xi,1,0,"ng-container",11),d()),t&2){let e=r(4);o("ngClass",e.cx("footer")),l(3),o("ngTemplateOutlet",e._footerTemplate||e.footerTemplate||e.footerT)}}function vi(t,s){if(t&1&&(m(0,Gt,1,1,"div",12)(1,bi,7,6,"div",13),p(2,"div",7,2),X(4),m(5,Ci,1,0,"ng-container",11),d(),m(6,yi,4,2,"div",14)),t&2){let e=r(3);o("ngIf",e.resizable),l(),o("ngIf",e.showHeader),l(),F(e.contentStyleClass),o("ngClass",e.cx("content"))("ngStyle",e.contentStyle),T("data-pc-section","content"),l(3),o("ngTemplateOutlet",e._contentTemplate||e.contentTemplate||e.contentT),l(),o("ngIf",e._footerTemplate||e.footerTemplate||e.footerT)}}function Ti(t,s){if(t&1){let e=b();p(0,"div",9,0),u("@animation.start",function(i){_(e);let a=r(2);return g(a.onAnimationStart(i))})("@animation.done",function(i){_(e);let a=r(2);return g(a.onAnimationEnd(i))}),m(2,qt,2,1,"ng-container",10)(3,vi,7,9,"ng-template",null,1,A),d()}if(t&2){let e=te(4),n=r(2);H(n.style),F(n.styleClass),o("ngClass",Q(13,Xt,n.maximizable&&n.maximized))("ngStyle",j(15,Yt))("pFocusTrapDisabled",n.focusTrap===!1)("@animation",Q(19,Zt,je(16,jt,n.transformOptions,n.transitionOptions))),T("role",n.role)("aria-labelledby",n.ariaLabelledBy)("aria-modal",!0),l(2),o("ngIf",n._headlessTemplate||n.headlessTemplate||n.headlessT)("ngIfElse",e)}}function wi(t,s){if(t&1&&(p(0,"div",7),m(1,Ti,5,21,"div",8),d()),t&2){let e=r();H(e.maskStyle),F(e.maskStyleClass),o("ngClass",e.maskClass)("ngStyle",Ze(7,Nt,e.position==="left"||e.position==="topleft"||e.position==="bottomleft"?"flex-start":e.position==="right"||e.position==="topright"||e.position==="bottomright"?"flex-end":"center",e.position==="top"||e.position==="topleft"||e.position==="topright"?"flex-start":e.position==="bottom"||e.position==="bottomleft"||e.position==="bottomright"?"flex-end":"center",e.modal?"auto":"none")),l(),o("ngIf",e.visible)}}var Ii=({dt:t})=>`
|
|
2
2
|
.p-dialog {
|
|
3
3
|
max-height: 90%;
|
|
4
4
|
transform: scale(1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as g}from"./chunk-
|
|
1
|
+
import{a as g}from"./chunk-3HW557B7.js";import{v as b,w as f}from"./chunk-BYD3JK4R.js";import{I as n,Z as p,ba as l,ha as c,n as m,r as o,s as h}from"./chunk-YVEUYFCE.js";import{a,b as u}from"./chunk-YQFG5XE2.js";var v=(()=>{class r{constructor(){this.httpClient=c(f),this.toastr=c(g),this.requestTimeout=1e4}get(e="",t,s={}){return this.httpClient.get(`${e}${t}`,s).pipe(o(this.requestTimeout),n(this.handleError.bind(this)))}post(e="",t,s,i={}){return this.httpClient.post(`${e}${t}`,s,a({observe:"response"},i)).pipe(o(this.requestTimeout),p(this.handleResponse.bind(this)),h(d=>d.body),n(this.handleError.bind(this)))}put(e="",t,s,i={}){return this.httpClient.put(`${e}${t}`,s,u(a({},i),{observe:"response"})).pipe(o(this.requestTimeout),p(this.handleResponse.bind(this)),h(d=>d.body),n(this.handleError.bind(this)))}delete(e="",t,s={}){return this.httpClient.delete(`${e}${t}`,u(a({},s),{observe:"response"})).pipe(o(this.requestTimeout),p(this.handleResponse.bind(this)),h(i=>i.body),n(this.handleError.bind(this)))}handleResponse(e){if(e.status===200&&e.body){let t=e.body.message;t&&this.toastr.success(t,"Success")}}handleError(e){let t={header:"API Error",message:"An unknown error occurred"};if(e instanceof b)switch(e.status){case 0:t.message="CORS error: Request blocked or server not responding with proper CORS headers",t.header="CORS Error";break;case 504:t.message=e.statusText||"Gateway Timeout",t.header=`API Error: ${e.status}`;break;default:t.header=`API Error: ${e.status}`,t.message=e.error&&(e.error.Message||e.error.message||e.error.error)||e.message}return this.toastr.error(t.message,t.header),m(()=>t)}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{v as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as oe}from"./chunk-G4XX7EU2.js";import{a as ut,b as dt}from"./chunk-AKMHO3LC.js";import{a as gt}from"./chunk-DCKLQNGL.js";import{a as It,b as ct}from"./chunk-GJXWL5XV.js";import"./chunk-34XRAZFC.js";import{a as mt}from"./chunk-HRQJ5DXP.js";import{a as Xe}from"./chunk-P6CJ2ONT.js";import"./chunk-TQZNJ5WF.js";import{a as pt,b as st}from"./chunk-32BR7AQL.js";import"./chunk-OZACNHDP.js";import{a as Ie,b as we}from"./chunk-LKZL77YR.js";import{a as ie,b as re}from"./chunk-JP3F2QND.js";import{b as ot,d as Ve,i as at,j as lt,k as Ne}from"./chunk-TFV5QZKR.js";import{a as it,b as rt}from"./chunk-3WB76KQC.js";import"./chunk-LTZA6IIO.js";import{a as Ae}from"./chunk-B7JILYJO.js";import"./chunk-HFFH2WIX.js";import{a as Me,b as ke}from"./chunk-TK3G2BVM.js";import"./chunk-LR2DJRRL.js";import"./chunk-CSMMP7XG.js";import"./chunk-6TA77CRR.js";import"./chunk-JMLETF7Y.js";import"./chunk-C5GEP4MM.js";import"./chunk-TC43COAE.js";import{a as N,b as A}from"./chunk-JDW35ZB5.js";import"./chunk-WZO2ZLBL.js";import{b as Z}from"./chunk-6ZZARVQO.js";import{f as nt,h as L}from"./chunk-35CWG2OK.js";import"./chunk-EXVUABTO.js";import{a as w,b as Fe,c as tt,d as Te,e as De,f as Pe}from"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import{n as ye,o as Re,w as J,x as Q}from"./chunk-YOEPO6LK.js";import"./chunk-ZWHB7NI7.js";import{b as he,c as X,e as Y,f as Ee,i as Ye,j as Je,k as ve,l as be,o as Ce,v as Qe,w as Ze,x as et,y as Se}from"./chunk-BNI5KUDE.js";import{a as _e}from"./chunk-35KDUCM3.js";import"./chunk-3HW557B7.js";import{C as fe,E as xe,F as k,M as V,c as Ke,f as P,k as ge,l as K,m as M}from"./chunk-BYD3JK4R.js";import"./chunk-F2X3VGZZ.js";import{Ab as $e,Cb as E,Ga as q,Ic as C,J as Ue,Jc as T,Kb as m,Kc as G,Lc as x,Nb as se,Pb as We,Qb as $,Sb as W,Tb as z,Ub as r,Vb as n,Wb as u,X as O,Xc as ne,Z as F,_b as y,ba as pe,c as te,dc as R,ec as g,gb as l,ha as d,pa as v,pc as a,qa as b,qc as h,rc as I,s as H,ta as Ge,tc as ze,uc as ce,vc as me,wa as He,wb as D,wc as ue,xc as de,yc as U,zc as S}from"./chunk-YVEUYFCE.js";import{a as f,b as _,e as Rt}from"./chunk-YQFG5XE2.js";var B=(()=>{class t{#e=d(_e);#t=d(Xe);getRecurringExpenseLoader(){return this.#e.get(void 0,"api/RecurringExpenseLoader/GetList")}getRecurringExpenses(e){return this.#e.post(void 0,"api/RecurringExpense/GetList",e)}fetchRecurringExpenseForm(e){return this.#e.get(void 0,`api/RecurringExpense/form/${e??""}`)}fetchSupplierSuggestion(e){let o={count:100,prefix:e};return this.#e.post(this.#t.getTenantExternalURL(),"/API/AC/GetSupplierSuggestion",o)}fetchCustomerSuggestion(e){let o={count:100,prefix:e};return this.#e.post(this.#t.getTenantExternalURL(),"/API/AC/GetCustomerSuggestion",o)}submitRecurringExpense(e,o={}){return this.#e.post(void 0,"api/RecurringExpense/submit",e,o)}removeRecurringExpense(e){return this.#e.delete(void 0,`api/RecurringExpense/${e}`,void 0)}removeRecurringExpenses(e){let o={body:e};return this.#e.delete(void 0,"api/RecurringExpense/Batch",o)}getRecurringExpenseByID(e){return this.#e.get(void 0,`api/RecurringExpense/Info/${e}`)}getAssetValueList(){return this.#e.get(void 0,"api/AssetValue/GetListt")}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=pe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var wt={data:{data:[],count:0},meta:{Options:{Frequencies:[]},Filter:{text:null,Frequency:0,pageNumber:1,rowCount:20,pageSize:20,export:!1,exportPageNumber:1,exportRowCount:1e4}},filter:{text:null,Frequency:0,pageNumber:1,rowCount:20,pageSize:20,export:!1,exportPageNumber:1,exportRowCount:1e4}},Le=Fe(Pe(wt),tt(t=>({first:ne(()=>(t.filter().pageNumber-1)*t.filter().pageSize+1),end:ne(()=>Math.min(t.filter().pageNumber*t.filter().pageSize,t.data().count)),hasCheckedRows:ne(()=>t.data().data.some(c=>c.checked)),checkedInvoice:ne(()=>t.data().data.filter(c=>c.checked).map(c=>c.id))})),De(t=>{let c=d(B);return{updateFilter(o){w(t,i=>_(f({},i),{filter:f(f({},i.filter),o)}))},onRowSelect(o){w(t,i=>{let s=i.data.data.map(p=>p.id===o.id?_(f({},p),{checked:!0}):p);return _(f({},i),{data:_(f({},i.data),{data:s})})})},onRowUnselect(o){w(t,i=>{let s=i.data.data.map(p=>p.id===o.id?_(f({},p),{checked:!1}):p);return _(f({},i),{data:_(f({},i.data),{data:s})})})},onHeaderCheckboxToggle(o){w(t,i=>{let s=i.data.data.map(p=>_(f({},p),{checked:o}));return _(f({},i),{data:_(f({},i.data),{data:s})})})},getRecurringExpenseLoader:ie(te(O(()=>c.getRecurringExpenseLoader().pipe(re({next:o=>{w(t,i=>_(f({},i),{meta:o}))},error:o=>{console.error("Error fetching Recurring Expense Loader:",o)}}))))),getRecurringExpenses:ie(te(H(o=>Object.entries(o).reduce((i,[s,p])=>(p!=null&&(i[s]=p),i),{})),O(o=>c.getRecurringExpenses(o).pipe(re({next:i=>{w(t,s=>_(f({},s),{data:i}))},error:i=>{console.error("Error fetching Recurring Expenses:",i)}})))))}}),Te(t=>({onInit:()=>{t.getRecurringExpenseLoader(),t.getRecurringExpenses(t.filter)}})));var Dt=["class","page"],Pt=()=>({height:"calc(100vh - 70px)"}),Mt=t=>["details/",t];function kt(t,c){if(t&1){let e=y();r(0,"p-button",12),R("onClick",function(){v(e);let i=g(2);return b(i.onDeleteSelected())}),n()}}function Vt(t,c){if(t&1&&(r(0,"div",8),E(1,kt,1,0,"p-button",9),r(2,"a",10),u(3,"i",11),r(4,"span"),a(5,"Add"),n()()()),t&2){let e=g();l(),m("ngIf",e.store.hasCheckedRows())}}function Nt(t,c){t&1&&(r(0,"tr")(1,"th"),u(2,"p-tableHeaderCheckbox"),n(),r(3,"th"),a(4,"Outlet"),n(),r(5,"th"),a(6,"Name"),n(),r(7,"th"),a(8,"Expense Account"),n(),r(9,"th"),a(10,"Start Date"),n(),r(11,"th"),a(12,"End Date"),n(),r(13,"th"),a(14,"Last Expense"),n(),r(15,"th"),a(16,"Amount"),n(),r(17,"th"),a(18,"Frequency"),n()())}function At(t,c){if(t&1&&(r(0,"tr")(1,"td"),u(2,"p-tableCheckbox",14),n(),r(3,"td"),a(4),n(),r(5,"td")(6,"a",15),a(7),n()(),r(8,"td"),a(9),n(),r(10,"td"),a(11),C(12,"date"),n(),r(13,"td"),a(14),C(15,"date"),n(),r(16,"td"),a(17),C(18,"date"),n(),r(19,"td"),a(20),C(21,"number"),n(),r(22,"td"),a(23),n()()),t&2){let e=c.$implicit;l(2),m("value",e),l(2),h(e.outletName),l(2),m("routerLink",S(21,Mt,e.id)),l(),h(e.name),l(2),h(e.expenseName),l(2),h(G(12,10,e.startDate,"d MMM y")),l(3),h(G(15,13,e.endDate,"d MMM y")),l(3),h(G(18,16,e.lastExpenseDate,"d MMM y")),l(3),h(T(21,19,e.amount)),l(3),h(e.repeatTypeLabel)}}function Lt(t,c){if(t&1&&(r(0,"div"),a(1),n()),t&2){let e=g(2);l(),ze(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().count," entries ")}}function Bt(t,c){t&1&&(r(0,"tr")(1,"td",16)(2,"span"),a(3,"No recurring expenses found."),n()()())}function jt(t,c){if(t&1){let e=y();r(0,"p-panel")(1,"p-table",13),R("onPage",function(i){v(e);let s=g();return b(s.onPageChange(i))})("onHeaderCheckboxToggle",function(i){v(e);let s=g();return b(s.onHeaderCheckboxToggle(i))})("onRowSelect",function(i){v(e);let s=g();return b(s.onRowSelect(i))})("onRowUnselect",function(i){v(e);let s=g();return b(s.onRowUnselect(i))}),E(2,Nt,19,0,"ng-template",null,3,x)(4,At,24,23,"ng-template",null,4,x)(6,Lt,2,3,"ng-template",null,5,x)(8,Bt,4,0,"ng-template",null,6,x),n()()}if(t&2){let e=g();se(U(9,Pt)),l(),m("scrollable",!0)("scrollHeight","calc(100vh - 142px)")("lazy",!0)("totalRecords",e.store.data().count)("rows",e.store.filter().pageSize)("paginator",!0)("value",e.store.data().data)}}function Ot(t,c){if(t&1&&(r(0,"form",17)(1,"div",18)(2,"label",19),a(3,"Type"),n(),u(4,"p-select",20),n()()),t&2){let e=g();m("formGroup",e.form),l(4),m("options",e.store.meta().Options.Frequencies)}}var _t=(()=>{class t extends gt{constructor(){super(...arguments),this.store=d(Le),this.recurringExpenseService=d(B),this.fb=d(Qe),this.isDialogFilterVisible=q(!1)}ngOnInit(){this.initForm()}onPageChange(e){let o=e.first/e.rows;this.store.updateFilter(_(f({},this.store.filter()),{pageNumber:o+1}))}onDeleteSelected(){this.recurringExpenseService.removeRecurringExpenses(this.store.checkedInvoice()).pipe(F(()=>{this.store.updateFilter(_(f({},this.store.filter()),{pageNumber:1}))})).subscribe()}onSearchEvent(e){this.store.updateFilter(_(f({},this.store.filter()),{text:e}))}onFilterEvent(){this.onSubmitFilterDialog()}onSubmitFilterDialog(){if(this.form.invalid){this.form.markAllAsTouched();return}let e=Object.entries(this.form.getRawValue()).reduce((o,[i,s])=>(s!=null&&(o[i]=s),o),{});this.store.updateFilter(e),this.isDialogFilterVisible.update(o=>!o)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(o=>{this.store.onRowUnselect(o)});return}else this.store.onRowUnselect(e.data)}initForm(){let{text:e,Frequency:o,pageNumber:i,rowCount:s,pageSize:p,export:j,exportPageNumber:St,exportRowCount:yt}=this.store.filter();this.form=this.fb.group({text:this.fb.control(e),Frequency:this.fb.control(o),pageNumber:this.fb.control(i),rowCount:this.fb.control(s),pageSize:this.fb.control(p),export:this.fb.control(j),exportPageNumber:this.fb.control(St),exportRowCount:this.fb.control(yt)})}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=Ge(t)))(i||t)}})()}static{this.\u0275cmp=D({type:t,selectors:[["app-recurring-expense",8,"page"]],features:[de([Le]),$e],attrs:Dt,decls:7,vars:3,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Recurring Expenses",3,"search","isDialogFilterVisibleChange","filterConfirmed","isSearchableInput","isFilterable","isDialogFilterVisible"],[1,"d-flex","gap-2"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick",4,"ngIf"],["routerLink","create",1,"p-button"],[1,"fa-solid","fa-plus"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick"],["dataKey","id","styleClass","d-flex flex-column justify-content-between h-100",3,"onPage","onHeaderCheckboxToggle","onRowSelect","onRowUnselect","scrollable","scrollHeight","lazy","totalRecords","rows","paginator","value"],[3,"value"],[1,"link-primary",3,"routerLink"],["colspan","9"],[1,"d-flex","flex-column",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["formControlName","Frequency","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Type",3,"options"]],template:function(o,i){if(o&1){let s=y();r(0,"app-main-panel",7),R("search",function(j){return v(s),b(i.onSearchEvent(j))}),ue("isDialogFilterVisibleChange",function(j){return v(s),me(i.isDialogFilterVisible,j)||(i.isDialogFilterVisible=j),b(j)}),R("filterConfirmed",function(){return v(s),b(i.onFilterEvent())}),E(1,Vt,6,1,"ng-template",null,0,x)(3,jt,10,10,"ng-template",null,1,x)(5,Ot,5,2,"ng-template",null,2,x),n()}o&2&&(m("isSearchableInput",!0)("isFilterable",!0),ce("isDialogFilterVisible",i.isDialogFilterVisible))},dependencies:[L,k,Z,Ne,Ve,at,lt,M,P,K,ge,V,nt,ke,Me,Q,J,Se,ve,Y,Ee,be,Ce,A,N],styles:["[_nghost-%COMP%]{display:block} .p-card{height:100%} .p-card .p-card-body{height:inherit} .p-card .p-card-body .p-card-content{height:inherit}"],changeDetection:0})}}return t})();var ee=Rt(It());var Gt=["class","page"],Ht=()=>["/pages/recurring/recurring-expense"],le=t=>({"ng-dirty ng-invalid":t}),$t=()=>({});function Wt(t,c){if(t&1){let e=y();r(0,"div",5)(1,"a",6),a(2," Cancel "),n(),r(3,"p-button",7),R("click",function(){v(e);let i=g();return b(i.onSubmit())}),n()()}t&2&&(l(),m("routerLink",U(1,Ht)))}function zt(t,c){if(t&1&&(r(0,"div",32)(1,"div",33),a(2),n()()),t&2){let e=c.$implicit;l(2),I(" ",e.name," ")}}function Kt(t,c){if(t&1&&(r(0,"small",21),a(1),n()),t&2){let e=c.$implicit;l(),h(e)}}function Xt(t,c){if(t&1&&(r(0,"small",21),a(1),n()),t&2){let e=c.$implicit;l(),h(e)}}function Yt(t,c){if(t&1&&(r(0,"small",21),a(1),n()),t&2){let e=c.$implicit;l(),h(e)}}function Jt(t,c){if(t&1&&(r(0,"div",5)(1,"div")(2,"span"),a(3),n()(),r(4,"div",33),a(5),n()()),t&2){let e=c.$implicit;l(3),I("(",e.code,")"),l(2),I(" ",e.value," ")}}function Qt(t,c){if(t&1&&(r(0,"small",21),a(1),n()),t&2){let e=c.$implicit;l(),h(e)}}function Zt(t,c){if(t&1&&(r(0,"div",5)(1,"div")(2,"span"),a(3),n()(),r(4,"div",33),a(5),n()()),t&2){let e=c.$implicit;l(3),I("(",e.code,")"),l(2),I(" ",e.value," ")}}function en(t,c){if(t&1&&(r(0,"small",21),a(1),n()),t&2){let e=c.$implicit;l(),h(e)}}function tn(t,c){if(t&1){let e=y();r(0,"div",9)(1,"div",10)(2,"p-panel",11)(3,"p-scroll-panel")(4,"div",12)(5,"div",13)(6,"form",14)(7,"div",15)(8,"div",16,2)(10,"div",17)(11,"label",18),a(12,"Outlet"),n(),r(13,"p-select",19),E(14,zt,3,1,"ng-template",null,3,x),n()()(),r(16,"div",16)(17,"div",17)(18,"label",18),a(19,"Name"),n(),u(20,"input",20),r(21,"div"),W(22,Kt,2,1,"small",21,$),n()()(),r(24,"div",16)(25,"div",17)(26,"label",18),a(27,"From"),n(),u(28,"p-datepicker",22),n()(),r(29,"div",16)(30,"div",17)(31,"label",18),a(32,"To"),n(),u(33,"p-datepicker",23),n()(),r(34,"div",16)(35,"div",17)(36,"div")(37,"label",18),a(38,"Supplier"),n(),r(39,"p-autocomplete",24),R("completeMethod",function(i){v(e);let s=g(2);return b(s.searchContact(i))}),n()(),r(40,"div"),W(41,Xt,2,1,"small",21,$),n()()(),u(43,"div",25),n(),r(44,"div",15)(45,"div",16)(46,"div",17)(47,"label",18),a(48,"Amount"),n(),u(49,"input",26),r(50,"div"),W(51,Yt,2,1,"small",21,$),n()()(),r(53,"div",16)(54,"div",17)(55,"label",18),a(56,"Frequency"),n(),u(57,"p-select",27),n()(),r(58,"div",16)(59,"div",17)(60,"label",18),a(61,"Expense (Debit)"),n(),r(62,"p-select",28),E(63,Jt,6,2,"ng-template",null,3,x),n()(),r(65,"div"),W(66,Qt,2,1,"small",21,$),n()(),r(68,"div",16)(69,"div",17)(70,"label",18),a(71,"Payment (Credit)"),n(),r(72,"p-select",29),E(73,Zt,6,2,"ng-template",null,3,x),n()(),r(75,"div"),W(76,en,2,1,"small",21,$),n()(),r(78,"div",30)(79,"div",17)(80,"label",18),a(81,"Description"),n(),u(82,"textarea",31),n()()()()()()()()()()}if(t&2){let e,o,i,s,p=g(2);l(6),m("formGroup",p.recurringExpenseForm),l(7),m("options",(e=p.recurringExpenseData())==null||e.options==null?null:e.options.entities),l(7),m("ngClass",S(17,le,p.isInvalid("name"))),l(2),z(p.getErrors("name")),l(6),m("iconDisplay","input")("showIcon",!0),l(5),m("iconDisplay","input")("showIcon",!0),l(6),m("showClear",!0)("ngClass",S(19,le,p.isInvalid("contact")))("suggestions",p.customerSupplierSuggestions()),l(2),z(p.getErrors("contact")),l(8),m("ngClass",S(21,le,p.isInvalid("amount")))("autoNumeric",U(23,$t)),l(2),z(p.getErrors("amount")),l(6),m("options",(o=p.recurringExpenseData())==null||o.options==null?null:o.options.frequency),l(5),m("options",(i=p.recurringExpenseData())==null||i.options==null?null:i.options.expenses)("ngClass",S(24,le,p.isInvalid("expenseAccountID"))),l(4),z(p.getErrors("expenseAccountID")),l(6),m("ngClass",S(26,le,p.isInvalid("paymentAccountID")))("options",(s=p.recurringExpenseData())==null||s.options==null?null:s.options.assets),l(4),z(p.getErrors("paymentAccountID"))}}function nn(t,c){if(t&1&&E(0,tn,83,28,"div",8),t&2){let e=g();m("ngIf",e.recurringExpenseData())}}var Oe=(()=>{class t{constructor(){this.recurringExpenseService=d(B),this.fb=d(Ze),this.destroyRef=d(He),this.route=d(fe),this.recurringExpenseData=q(null),this.customerSupplierSuggestions=q([]),this.router=d(xe),this.contactType=new Ye(0),this.dayjsService=d(ct)}ngOnInit(){this.initializeForm(),this.fetchRecurringExpenseForm()}initializeForm(){this.recurringExpenseForm=this.fb.group({id:this.fb.control(""),name:this.fb.control("",[X.required]),repeatTypeID:this.fb.control(1,[X.required]),startDate:this.fb.control((0,ee.default)().toISOString()),endDate:this.fb.control(null),lastExpenseDate:this.fb.control(""),amount:this.fb.control(0,[X.required]),paymentAccountID:this.fb.control(null,[X.required]),expenseAccountID:this.fb.control(null,[X.required]),contact:this.fb.control("",[]),description:this.fb.control(""),repeatTypeLabel:this.fb.control(""),outletID:this.fb.control(""),creatorID:this.fb.control(""),created:this.fb.control(""),modifierID:this.fb.control(""),modified:this.fb.control("")})}fetchRecurringExpenseForm(){this.route.paramMap.pipe(H(e=>e.get("id")),O(e=>e?this.recurringExpenseService.fetchRecurringExpenseForm(e):this.recurringExpenseService.fetchRecurringExpenseForm()),F(e=>{this.recurringExpenseData.set(e),this.updateFormWithRecurringExpense(e.form)})).subscribe()}updateFormWithRecurringExpense(e){let o=Object.entries(e).reduce((i,[s,p])=>{switch(s){case"startDate":i[s]=(0,ee.default)(p).isSame((0,ee.default)("0001-01-01T00:00:00"))?(0,ee.default)().toDate():(0,ee.default)(p).toDate();break;case"repeatTypeID":i[s]=1;break;case"contactID":i.contact=e.contactID?{Key:e.contactID,Value:e.contactName}:null;break;case"paymentAccountID":i[s]=p===oe?null:p;break;case"expenseAccountID":i[s]=p===oe?null:p;break;default:i[s]=p}return i},{});this.recurringExpenseForm.patchValue(o)}searchContact(e){this.recurringExpenseService.fetchSupplierSuggestion(e.query).pipe(F(this.customerSupplierSuggestions.set)).subscribe()}onSubmit(){let e=this.recurringExpenseForm.value;if(this.recurringExpenseForm.invalid){this.recurringExpenseForm.markAllAsTouched();return}let o=Object.entries(e).reduce((i,[s,p])=>{switch(s){case"amount":i[s]=+p;break;case"startDate":i[s]=p?this.dayjsService.from(p).format():null;break;case"endDate":i[s]=p?this.dayjsService.from(p).format():null;break;case"contact":typeof p=="string"?i.contactID=p:typeof p=="object"&&p!==null?i.contactID=p&&Object.prototype.hasOwnProperty.call(p,"Key")?p.Key:p:i.contactID=oe;break;default:i[s]=p;break}return i},{});this.recurringExpenseService.submitRecurringExpense(o).pipe(F(()=>{this.router.navigate(["/pages/recurring/recurring-expense"])})).subscribe()}isInvalid(e){let o=this.recurringExpenseForm.controls[e];return o.invalid&&(o.dirty||o.touched)}getErrors(e){if(!this.isInvalid(e))return null;let o=this.recurringExpenseForm.controls[e];if(!o.errors)return null;let i=[];for(let[s,p]of Object.entries(o.errors))switch(s){case"required":i.push("This field is required.");break;case"minlength":i.push(`Minimum length is ${p.requiredLength} characters.`);break;case"maxlength":i.push(`Maximum length is ${p.requiredLength} characters.`);break;case"email":i.push("Please enter a valid email address.");break;case"pattern":i.push("The format is invalid.");break;case"min":i.push(`Minimum value is ${p.min}.`);break;case"max":i.push(`Maximum value is ${p.max}.`);break;default:i.push("Invalid value.")}return i}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=D({type:t,selectors:[["app-recurring-expense-form",8,"page"]],attrs:Gt,decls:5,vars:2,consts:[["actionButton",""],["content",""],["outlet",""],["item",""],["pageTitle","Recurring Expense Form",3,"hasMainWrapperPadding","overflowScroll"],[1,"d-flex","gap-2"],["type","button",1,"p-button","p-button-secondary","p-button-outlined",3,"routerLink"],["label","Submit","icon","fa-solid fa-plus",3,"click"],["class","row justify-content-center",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-6"],[1,"h-100","d-flex"],[1,"row","justify-content-center","h-100"],[1,"col-12"],[1,"d-flex","flex-column","row-gap-4",3,"formGroup"],[1,"row","row-gap-4"],[1,"col","col-lg-6"],[1,"d-flex","flex-column"],["for",""],["filter","","filterBy","name","appendTo","body","formControlName","outletID","optionLabel","name","optionValue","id","placeholder","Select Outlet",3,"options"],["formControlName","name","type","text","pInputText","",3,"ngClass"],[1,"text-danger"],["dateFormat","mm/dd/yy","appendTo","body","formControlName","startDate","styleClass","w-100","inputId","icondisplay",3,"iconDisplay","showIcon"],["appendTo","body","formControlName","endDate","styleClass","w-100","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","contact","inputStyleClass","w-100","styleClass","w-100","optionLabel","Value","optionValue","Key",3,"completeMethod","showClear","ngClass","suggestions"],[1,"col"],["formControlName","amount","type","text","pInputText","",3,"ngClass","autoNumeric"],["appendTo","body","formControlName","repeatTypeID","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"options"],["appendTo","body","formControlName","expenseAccountID","optionLabel","value","optionValue","key","placeholder","Select Expense","filter","","filterBy","code,value",3,"options","ngClass"],["appendTo","body","formControlName","paymentAccountID","optionLabel","value","optionValue","key","filter","","filterBy","code,value","placeholder","Select Payment",3,"ngClass","options"],[1,"col","col-lg-12"],["formControlName","description","rows","3","cols","30","pTextarea",""],[1,"flex","items-center","gap-2"],[1,"text-truncate","d-inline-block",2,"max-width","250px"]],template:function(o,i){o&1&&(r(0,"app-main-panel",4),E(1,Wt,4,2,"ng-template",null,0,x)(3,nn,1,1,"ng-template",null,1,x),n()),o&2&&m("hasMainWrapperPadding",!0)("overflowScroll",!0)},dependencies:[L,Z,Re,ye,ke,Me,rt,it,dt,ut,st,pt,we,Ie,M,Ke,P,Se,ve,he,Y,Ee,be,Ce,V,k,Q,J,mt,A,N,ot],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var rn=["class","page"],on=t=>["/pages/recurring/recurring-expense/edit",t];function an(t,c){if(t&1){let e=y();r(0,"div",4)(1,"a",5),u(2,"i",6),r(3,"span"),a(4,"Edit"),n()(),r(5,"p-button",7),R("onClick",function(){v(e);let i=g(3);return b(i.onDeleteRecurringExpense(i.currentRecurringExpense().id))}),n()()}if(t&2){let e=g(3);l(),m("routerLink",S(1,on,e.currentRecurringExpense().id))}}function ln(t,c){if(t&1&&E(0,an,6,3,"div",3),t&2){let e=g(2);m("ngIf",e.currentRecurringExpense())}}function pn(t,c){if(t&1){let e=y();r(0,"p-panel",11)(1,"p-scroll-panel")(2,"div",8)(3,"div",12)(4,"div",13)(5,"div",12)(6,"div",14)(7,"div",15)(8,"div",16)(9,"label",17),a(10,"Outlet"),n(),r(11,"input",18),ue("ngModelChange",function(i){v(e);let s=g(3);return me(s.currentRecurringExpense().outletName,i)||(s.currentRecurringExpense().outletName=i),b(i)}),n()()(),u(12,"div",15),r(13,"div",15)(14,"div",16)(15,"label",17),a(16,"From"),n(),u(17,"input",19),C(18,"date"),n()(),r(19,"div",15)(20,"div",16)(21,"label",17),a(22,"To"),n(),u(23,"input",19),C(24,"date"),n()(),r(25,"div",15)(26,"div",16)(27,"label",17),a(28,"Supplier"),n(),u(29,"input",20),n()()(),u(30,"hr"),r(31,"div",14)(32,"div",15)(33,"div",16)(34,"label",17),a(35,"Amount"),n(),u(36,"input",19),C(37,"number"),n()(),r(38,"div",15)(39,"div",16)(40,"label",17),a(41,"Frequency"),n(),u(42,"input",19),n()(),r(43,"div",15)(44,"div",16)(45,"label",17),a(46,"Expense (Debit)"),n(),u(47,"input",19),n()(),r(48,"div",15)(49,"div",16)(50,"label",17),a(51,"Payment (Credit)"),n(),u(52,"input",19),n()(),r(53,"div",21)(54,"div",16)(55,"label",17),a(56,"Description"),n(),u(57,"textarea",22),n()()()()()()()()()}if(t&2){let e=g(3);l(11),ce("ngModel",e.currentRecurringExpense().outletName),l(6),m("value",G(18,9,e.currentRecurringExpense().startDate,"d MMM y")),l(6),m("value",G(24,12,e.currentRecurringExpense().endDate,"d MMM y")),l(6),m("value",e.currentRecurringExpense().contactName),l(7),m("value",T(37,15,e.currentRecurringExpense().amount)),l(6),m("value",e.currentRecurringExpense().repeatTypeLabel),l(5),m("value",e.currentRecurringExpense().expenseName),l(5),m("value",e.currentRecurringExpense().paymentName),l(5),m("value",e.currentRecurringExpense().description)}}function sn(t,c){if(t&1&&(r(0,"div",8)(1,"div",9),E(2,pn,58,17,"p-panel",10),n()()),t&2){let e=g(2);l(2),m("ngIf",e.currentRecurringExpense())}}function cn(t,c){if(t&1&&(r(0,"app-main-panel",2),E(1,ln,1,1,"ng-template",null,0,x)(3,sn,3,1,"ng-template",null,1,x),n()),t&2){let e=g();m("pageTitle",e.currentRecurringExpense().name+" Info")("hasMainWrapperPadding",!0)("overflowScroll",!0)}}var Et=(()=>{class t{constructor(){this.recurringExpenseService=d(B),this.route=d(fe),this.router=d(xe),this.currentRecurringExpense=q(null)}ngOnInit(){this.route.paramMap.pipe(H(e=>e.get("id")),Ae("params"),Ue(e=>this.recurringExpenseService.getRecurringExpenseByID(e)),F(e=>this.currentRecurringExpense.set(e)),Ae("recurringExpense")).subscribe()}onDeleteRecurringExpense(e){this.recurringExpenseService.removeRecurringExpense(e).pipe(F(()=>{this.router.navigate(["/pages/recurring/recurring-expense"])})).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=D({type:t,selectors:[["app-recurring-expense-info",8,"page"]],attrs:rn,decls:1,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle","hasMainWrapperPadding","overflowScroll"],["class","d-flex gap-2",4,"ngIf"],[1,"d-flex","gap-2"],[1,"p-button","p-button-outlined","p-button-secondary","d-flex","gap-2","align-items-center",3,"routerLink"],[1,"fa-solid","fa-pen-to-square"],["icon","fa-solid fa-trash","label","Delete","severity","danger",3,"onClick"],[1,"row","justify-content-center"],[1,"col-6"],["class","h-100 d-flex",4,"ngIf"],[1,"h-100","d-flex"],[1,"col"],[1,"row"],[1,"row","row-gap-4"],[1,"col","col-lg-6"],[1,"d-flex","flex-column"],["for",""],["readonly","","type","text","pInputText","",3,"ngModelChange","ngModel"],["readonly","","type","text","pInputText","",3,"value"],["type","text","readonly","","pInputText","",3,"value"],[1,"col","col-lg-12"],["readonly","","rows","5","cols","30","pTextarea","",3,"value"]],template:function(o,i){o&1&&E(0,cn,5,3,"app-main-panel",2),o&2&&We(i.currentRecurringExpense()?0:-1)},dependencies:[L,Z,M,P,K,ge,Re,ye,et,he,Y,Je,Q,J,V,k,A,N,we,Ie],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var vt=[{path:"",redirectTo:"",pathMatch:"full"},{path:"",children:[{path:"",component:_t},{path:"create",component:Oe},{path:"details/:id",component:Et},{path:"edit/:id",component:Oe}]}];var bt=(()=>{class t{constructor(){this.httpService=d(_e)}getAssetValue(e){return this.httpService.post(void 0,"/api/AssetValue/GetList",e)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=pe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var mn={filter:{Text:"",Frequency:0,PageNumber:1,RowCount:10},data:null},qe=Fe(Pe(mn),De(t=>{let c=d(bt);return{getAssetValue:ie(te(O(o=>c.getAssetValue(o).pipe(re({next:i=>{w(t,s=>_(f({},s),{data:i}))},error:i=>{console.error("Error fetching asset value:",i)}}))))),updateFilter:o=>{w(t,i=>_(f({},i),{filter:o}))}}}),Te({onInit:t=>{t.getAssetValue(t.filter())}}));var un=()=>({height:"calc(100vh - 70px)"}),dn=t=>["/pages/recurring/recurring-expense/details/",t];function gn(t,c){t&1&&u(0,"div",5)}function fn(t,c){t&1&&(r(0,"tr")(1,"th"),a(2,"Outlet"),n(),r(3,"th"),a(4,"Name"),n(),r(5,"th"),a(6,"Account Code"),n(),r(7,"th",8),a(8,"Price on Purchase"),n(),r(9,"th",8),a(10,"Accomulated Depreciation"),n(),r(11,"th",8),a(12,"Book Value"),n(),r(13,"th",8),a(14,"Frequency"),n()())}function xn(t,c){if(t&1&&(r(0,"tr")(1,"td"),a(2),n(),r(3,"td")(4,"a",9),a(5),n()(),r(6,"td"),a(7),n(),r(8,"td",8),a(9),C(10,"number"),n(),r(11,"td",8),a(12),C(13,"number"),n(),r(14,"td",8),a(15),C(16,"number"),n(),r(17,"td",8),a(18),C(19,"number"),n()()),t&2){let e=c.$implicit;l(2),h(e.entityName),l(2),m("routerLink",S(16,dn,e.id)),l(),h(e.name),l(2),h(e.accountCode),l(2),h(T(10,8,e.priceOnPurchase)),l(3),I(" ",T(13,10,e.accumulatedDepreciation)," "),l(3),I(" ",T(16,12,e.bookValue)," "),l(3),I(" ",T(19,14,e.depreciationPerYear)," ")}}function _n(t,c){if(t&1&&(r(0,"p-panel")(1,"p-table",7),E(2,fn,15,0,"ng-template",null,2,x)(4,xn,20,18,"ng-template",null,3,x),n()()),t&2){let e=g(2);se(U(7,un)),l(),m("value",e.store.data().data)("rows",e.store.filter().RowCount)("totalRecords",e.store.data().count)("scrollable",!0)("scrollHeight","calc(100vh - 200px)")}}function hn(t,c){if(t&1&&E(0,_n,6,8,"p-panel",6),t&2){let e=g();m("ngIf",e.store.data())}}var Ct=(()=>{class t{constructor(){this.store=d(qe)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=D({type:t,selectors:[["app-asset-value"]],features:[de([qe])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Asset Value",3,"isSearchableInput"],[1,"d-flex","gap-2"],[3,"style",4,"ngIf"],["styleClass","h-100","dataKey","id",1,"",3,"value","rows","totalRecords","scrollable","scrollHeight"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink"]],template:function(o,i){o&1&&(r(0,"app-main-panel",4),E(1,gn,1,0,"ng-template",null,0,x)(3,hn,1,1,"ng-template",null,1,x),n()),o&2&&m("isSearchableInput",!0)},dependencies:[L,M,P,K,A,N,Ne,Ve,V,k],encapsulation:2})}}return t})();var ur=[{path:"",redirectTo:"recurring-expense",pathMatch:"full"},{path:"recurring-expense",children:vt},{path:"asset-value",component:Ct},{path:"post-to-journal",loadComponent:()=>import("./chunk-UEOO2LYA.js").then(t=>t.PostRecurringExpenseComponent)}];export{ur as RECURRING_ROUTES};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as K,d as B,f as R,g as E,h as F}from"./chunk-F2X3VGZZ.js";import{A as dt,a as Y,f as J}from"./chunk-BYD3JK4R.js";import{Aa as Z,Cb as D,Ga as w,Ib as S,Jb as x,Kb as r,Lb as A,Ob as h,Ub as u,Vb as p,Wb as O,Xb as G,Yb as U,_b as q,ab as rt,ac as ut,ba as N,bb as z,ca as nt,dc as M,ea as ot,ec as c,g as f,ga as y,gb as a,ha as C,ia as at,jb as ct,mb as g,pa as k,pc as m,qa as L,rc as _,va as j,wb as $,xb as lt}from"./chunk-YVEUYFCE.js";import{a as l,b as T}from"./chunk-YQFG5XE2.js";var ht=["toast-component",""];function Tt(s,n){if(s&1){let t=q();u(0,"button",5),M("click",function(){k(t);let i=c();return L(i.remove())}),u(1,"span",6),m(2,"\xD7"),p()()}}function yt(s,n){if(s&1&&(G(0),m(1),U()),s&2){let t=c(2);a(),_("[",t.duplicatesCount+1,"]")}}function Ct(s,n){if(s&1&&(u(0,"div"),m(1),D(2,yt,2,1,"ng-container",4),p()),s&2){let t=c();h(t.options.titleClass),x("aria-label",t.title),a(),_(" ",t.title," "),a(),r("ngIf",t.duplicatesCount)}}function bt(s,n){if(s&1&&O(0,"div",7),s&2){let t=c();h(t.options.messageClass),r("innerHTML",t.message,z)}}function It(s,n){if(s&1&&(u(0,"div",8),m(1),p()),s&2){let t=c();h(t.options.messageClass),x("aria-label",t.message),a(),_(" ",t.message," ")}}function wt(s,n){if(s&1&&(u(0,"div"),O(1,"div",9),p()),s&2){let t=c();a(),A("width",t.width()+"%")}}function Dt(s,n){if(s&1){let t=q();u(0,"button",5),M("click",function(){k(t);let i=c();return L(i.remove())}),u(1,"span",6),m(2,"\xD7"),p()()}}function xt(s,n){if(s&1&&(G(0),m(1),U()),s&2){let t=c(2);a(),_("[",t.duplicatesCount+1,"]")}}function At(s,n){if(s&1&&(u(0,"div"),m(1),D(2,xt,2,1,"ng-container",4),p()),s&2){let t=c();h(t.options.titleClass),x("aria-label",t.title),a(),_(" ",t.title," "),a(),r("ngIf",t.duplicatesCount)}}function Ot(s,n){if(s&1&&O(0,"div",7),s&2){let t=c();h(t.options.messageClass),r("innerHTML",t.message,z)}}function Mt(s,n){if(s&1&&(u(0,"div",8),m(1),p()),s&2){let t=c();h(t.options.messageClass),x("aria-label",t.message),a(),_(" ",t.message," ")}}function Rt(s,n){if(s&1&&(u(0,"div"),O(1,"div",9),p()),s&2){let t=c();a(),A("width",t.width()+"%")}}var Q=class{_attachedHost;component;viewContainerRef;injector;constructor(n,t){this.component=n,this.injector=t}attach(n,t){return this._attachedHost=n,n.attach(this,t)}detach(){let n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},W=class{_attachedPortal;_disposeFn;attach(n,t){return this._attachedPortal=n,this.attachComponentPortal(n,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}},X=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new f;_activate=new f;_manualClose=new f;_resetTimeout=new f;_countDuplicate=new f;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,t){n&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}},b=class{toastId;config;message;title;toastType;toastRef;_onTap=new f;_onAction=new f;constructor(n,t,e,i,o,d){this.toastId=n,this.config=t,this.message=e,this.title=i,this.toastType=o,this.toastRef=d,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}},pt={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},mt=new ot("ToastConfig"),tt=class extends W{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,t,e){super(),this._hostDomElement=n,this._componentFactoryResolver=t,this._appRef=e}attachComponentPortal(n,t){let e=this._componentFactoryResolver.resolveComponentFactory(n.component),i;return i=e.create(n.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},Et=(()=>{class s{_document=C(Y);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(e){return new(e||s)};static \u0275prov=N({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),et=class{_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}},Ht=(()=>{class s{_overlayContainer=C(Et);_componentFactoryResolver=C(ct);_appRef=C(S);_document=C(Y);_paneElements=new Map;create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){let i=this._document.createElement("div");return i.id="toast-container",i.classList.add(t),i.classList.add("toast-container"),e?e.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(t){return new tt(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new et(this._createPortalHost(t))}static \u0275fac=function(e){return new(e||s)};static \u0275prov=N({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),ft=(()=>{class s{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,e,i,o,d){this.overlay=e,this._injector=i,this.sanitizer=o,this.ngZone=d,this.toastrConfig=l(l({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=l(l({},t.default.iconClasses),t.config.iconClasses))}show(t,e,i={},o=""){return this._preBuildNotification(o,t,e,this.applyConfig(i))}success(t,e,i={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}error(t,e,i={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}info(t,e,i={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}warning(t,e,i={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}clear(t){for(let e of this.toasts)if(t!==void 0){if(e.toastId===t){e.toastRef.manualClose();return}}else e.toastRef.manualClose()}remove(t){let e=this._findToast(t);if(!e||(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let i=this.toasts[this.currentlyActive].toastRef;i.isInactive()||(this.currentlyActive=this.currentlyActive+1,i.activate())}return!0}findDuplicate(t="",e="",i,o){let{includeTitleDuplicates:d}=this.toastrConfig;for(let v of this.toasts){let H=d&&v.title===t;if((!d||H)&&v.message===e)return v.toastRef.onDuplicate(i,o),v}return null}applyConfig(t={}){return l(l({},this.toastrConfig),t)}_findToast(t){for(let e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}_preBuildNotification(t,e,i,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,e,i,o)):this._buildNotification(t,e,i,o)}_buildNotification(t,e,i,o){if(!o.toastComponent)throw new Error("toastComponent required");let d=this.findDuplicate(i,e,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||e)&&this.toastrConfig.preventDuplicates&&d!==null)return d;this.previousToastMessage=e;let v=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(v=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let H=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let it=e;e&&o.enableHtml&&(it=this.sanitizer.sanitize(rt.HTML,e));let I=new X(H),P=new b(this.index,o,it,i,t,I),vt=[{provide:b,useValue:P}],gt=j.create({providers:vt,parent:this._injector}),_t=new Q(o.toastComponent,gt),st=H.attach(_t,o.newestOnTop);I.componentInstance=st.instance;let V={toastId:this.index,title:i||"",message:e||"",toastRef:I,onShown:I.afterActivate(),onHidden:I.afterClosed(),onTap:P.onTap(),onAction:P.onAction(),portal:st};return v||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{V.toastRef.activate()})),this.toasts.push(V),V}static \u0275fac=function(e){return new(e||s)(y(mt),y(Ht),y(j),y(dt),y(Z))};static \u0275prov=N({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Nt=(()=>{class s{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=w(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,i){this.toastrService=t,this.toastPackage=e,this.ngZone=i,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state=w({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>T(l({},t),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>T(l({},t),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(t=>T(l({},t),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(e){return new(e||s)(g(ft),g(b),g(Z))};static \u0275cmp=$({type:s,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,i){e&1&&M("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),e&2&&(ut("@flyInOut",i._state),h(i.toastClasses),A("display",i.displayStyle))},attrs:ht,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,i){e&1&&D(0,Tt,3,0,"button",0)(1,Ct,3,5,"div",1)(2,bt,1,3,"div",2)(3,It,2,4,"div",3)(4,wt,2,2,"div",4),e&2&&(r("ngIf",i.options.closeButton),a(),r("ngIf",i.title),a(),r("ngIf",i.message&&i.options.enableHtml),a(),r("ngIf",i.message&&!i.options.enableHtml),a(),r("ngIf",i.options.progressBar))},dependencies:[J],encapsulation:2,data:{animation:[K("flyInOut",[E("inactive",R({opacity:0})),E("active",R({opacity:1})),E("removed",R({opacity:0})),F("inactive => active",B("{{ easeTime }}ms {{ easing }}")),F("active => removed",B("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return s})(),jt=T(l({},pt),{toastComponent:Nt}),St=(s={})=>at([{provide:mt,useValue:{default:jt,config:s}}]),pe=(()=>{class s{static forRoot(t={}){return{ngModule:s,providers:[St(t)]}}static \u0275fac=function(e){return new(e||s)};static \u0275mod=lt({type:s});static \u0275inj=nt({})}return s})();var Bt=(()=>{class s{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=w(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=w("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,i){this.toastrService=t,this.toastPackage=e,this.appRef=i,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(e){return new(e||s)(g(ft),g(b),g(S))};static \u0275cmp=$({type:s,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,i){e&1&&M("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),e&2&&(h(i.toastClasses),A("display",i.displayStyle))},attrs:ht,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,i){e&1&&D(0,Dt,3,0,"button",0)(1,At,3,5,"div",1)(2,Ot,1,3,"div",2)(3,Mt,2,4,"div",3)(4,Rt,2,2,"div",4),e&2&&(r("ngIf",i.options.closeButton),a(),r("ngIf",i.title),a(),r("ngIf",i.message&&i.options.enableHtml),a(),r("ngIf",i.message&&!i.options.enableHtml),a(),r("ngIf",i.options.progressBar))},dependencies:[J],encapsulation:2,changeDetection:0})}return s})(),me=T(l({},pt),{toastComponent:Bt});export{ft as a,St as b,pe as c};
|
|
1
|
+
import{A as dt,a as Y,f as J}from"./chunk-BYD3JK4R.js";import{c as K,d as B,f as R,g as E,h as F}from"./chunk-F2X3VGZZ.js";import{Aa as Z,Cb as D,Ga as w,Ib as S,Jb as x,Kb as r,Lb as A,Ob as h,Ub as u,Vb as p,Wb as O,Xb as G,Yb as U,_b as q,ab as rt,ac as ut,ba as N,bb as z,ca as nt,dc as M,ea as ot,ec as c,g as f,ga as y,gb as a,ha as C,ia as at,jb as ct,mb as g,pa as k,pc as m,qa as L,rc as _,va as j,wb as $,xb as lt}from"./chunk-YVEUYFCE.js";import{a as l,b as T}from"./chunk-YQFG5XE2.js";var ht=["toast-component",""];function Tt(s,n){if(s&1){let t=q();u(0,"button",5),M("click",function(){k(t);let i=c();return L(i.remove())}),u(1,"span",6),m(2,"\xD7"),p()()}}function yt(s,n){if(s&1&&(G(0),m(1),U()),s&2){let t=c(2);a(),_("[",t.duplicatesCount+1,"]")}}function Ct(s,n){if(s&1&&(u(0,"div"),m(1),D(2,yt,2,1,"ng-container",4),p()),s&2){let t=c();h(t.options.titleClass),x("aria-label",t.title),a(),_(" ",t.title," "),a(),r("ngIf",t.duplicatesCount)}}function bt(s,n){if(s&1&&O(0,"div",7),s&2){let t=c();h(t.options.messageClass),r("innerHTML",t.message,z)}}function It(s,n){if(s&1&&(u(0,"div",8),m(1),p()),s&2){let t=c();h(t.options.messageClass),x("aria-label",t.message),a(),_(" ",t.message," ")}}function wt(s,n){if(s&1&&(u(0,"div"),O(1,"div",9),p()),s&2){let t=c();a(),A("width",t.width()+"%")}}function Dt(s,n){if(s&1){let t=q();u(0,"button",5),M("click",function(){k(t);let i=c();return L(i.remove())}),u(1,"span",6),m(2,"\xD7"),p()()}}function xt(s,n){if(s&1&&(G(0),m(1),U()),s&2){let t=c(2);a(),_("[",t.duplicatesCount+1,"]")}}function At(s,n){if(s&1&&(u(0,"div"),m(1),D(2,xt,2,1,"ng-container",4),p()),s&2){let t=c();h(t.options.titleClass),x("aria-label",t.title),a(),_(" ",t.title," "),a(),r("ngIf",t.duplicatesCount)}}function Ot(s,n){if(s&1&&O(0,"div",7),s&2){let t=c();h(t.options.messageClass),r("innerHTML",t.message,z)}}function Mt(s,n){if(s&1&&(u(0,"div",8),m(1),p()),s&2){let t=c();h(t.options.messageClass),x("aria-label",t.message),a(),_(" ",t.message," ")}}function Rt(s,n){if(s&1&&(u(0,"div"),O(1,"div",9),p()),s&2){let t=c();a(),A("width",t.width()+"%")}}var Q=class{_attachedHost;component;viewContainerRef;injector;constructor(n,t){this.component=n,this.injector=t}attach(n,t){return this._attachedHost=n,n.attach(this,t)}detach(){let n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},W=class{_attachedPortal;_disposeFn;attach(n,t){return this._attachedPortal=n,this.attachComponentPortal(n,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}},X=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new f;_activate=new f;_manualClose=new f;_resetTimeout=new f;_countDuplicate=new f;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,t){n&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}},b=class{toastId;config;message;title;toastType;toastRef;_onTap=new f;_onAction=new f;constructor(n,t,e,i,o,d){this.toastId=n,this.config=t,this.message=e,this.title=i,this.toastType=o,this.toastRef=d,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}},pt={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},mt=new ot("ToastConfig"),tt=class extends W{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,t,e){super(),this._hostDomElement=n,this._componentFactoryResolver=t,this._appRef=e}attachComponentPortal(n,t){let e=this._componentFactoryResolver.resolveComponentFactory(n.component),i;return i=e.create(n.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},Et=(()=>{class s{_document=C(Y);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(e){return new(e||s)};static \u0275prov=N({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),et=class{_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}},Ht=(()=>{class s{_overlayContainer=C(Et);_componentFactoryResolver=C(ct);_appRef=C(S);_document=C(Y);_paneElements=new Map;create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){let i=this._document.createElement("div");return i.id="toast-container",i.classList.add(t),i.classList.add("toast-container"),e?e.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(t){return new tt(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new et(this._createPortalHost(t))}static \u0275fac=function(e){return new(e||s)};static \u0275prov=N({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),ft=(()=>{class s{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,e,i,o,d){this.overlay=e,this._injector=i,this.sanitizer=o,this.ngZone=d,this.toastrConfig=l(l({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=l(l({},t.default.iconClasses),t.config.iconClasses))}show(t,e,i={},o=""){return this._preBuildNotification(o,t,e,this.applyConfig(i))}success(t,e,i={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}error(t,e,i={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}info(t,e,i={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}warning(t,e,i={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}clear(t){for(let e of this.toasts)if(t!==void 0){if(e.toastId===t){e.toastRef.manualClose();return}}else e.toastRef.manualClose()}remove(t){let e=this._findToast(t);if(!e||(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let i=this.toasts[this.currentlyActive].toastRef;i.isInactive()||(this.currentlyActive=this.currentlyActive+1,i.activate())}return!0}findDuplicate(t="",e="",i,o){let{includeTitleDuplicates:d}=this.toastrConfig;for(let v of this.toasts){let H=d&&v.title===t;if((!d||H)&&v.message===e)return v.toastRef.onDuplicate(i,o),v}return null}applyConfig(t={}){return l(l({},this.toastrConfig),t)}_findToast(t){for(let e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}_preBuildNotification(t,e,i,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,e,i,o)):this._buildNotification(t,e,i,o)}_buildNotification(t,e,i,o){if(!o.toastComponent)throw new Error("toastComponent required");let d=this.findDuplicate(i,e,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||e)&&this.toastrConfig.preventDuplicates&&d!==null)return d;this.previousToastMessage=e;let v=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(v=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let H=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let it=e;e&&o.enableHtml&&(it=this.sanitizer.sanitize(rt.HTML,e));let I=new X(H),P=new b(this.index,o,it,i,t,I),vt=[{provide:b,useValue:P}],gt=j.create({providers:vt,parent:this._injector}),_t=new Q(o.toastComponent,gt),st=H.attach(_t,o.newestOnTop);I.componentInstance=st.instance;let V={toastId:this.index,title:i||"",message:e||"",toastRef:I,onShown:I.afterActivate(),onHidden:I.afterClosed(),onTap:P.onTap(),onAction:P.onAction(),portal:st};return v||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{V.toastRef.activate()})),this.toasts.push(V),V}static \u0275fac=function(e){return new(e||s)(y(mt),y(Ht),y(j),y(dt),y(Z))};static \u0275prov=N({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Nt=(()=>{class s{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=w(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,i){this.toastrService=t,this.toastPackage=e,this.ngZone=i,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state=w({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>T(l({},t),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>T(l({},t),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(t=>T(l({},t),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(e){return new(e||s)(g(ft),g(b),g(Z))};static \u0275cmp=$({type:s,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,i){e&1&&M("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),e&2&&(ut("@flyInOut",i._state),h(i.toastClasses),A("display",i.displayStyle))},attrs:ht,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,i){e&1&&D(0,Tt,3,0,"button",0)(1,Ct,3,5,"div",1)(2,bt,1,3,"div",2)(3,It,2,4,"div",3)(4,wt,2,2,"div",4),e&2&&(r("ngIf",i.options.closeButton),a(),r("ngIf",i.title),a(),r("ngIf",i.message&&i.options.enableHtml),a(),r("ngIf",i.message&&!i.options.enableHtml),a(),r("ngIf",i.options.progressBar))},dependencies:[J],encapsulation:2,data:{animation:[K("flyInOut",[E("inactive",R({opacity:0})),E("active",R({opacity:1})),E("removed",R({opacity:0})),F("inactive => active",B("{{ easeTime }}ms {{ easing }}")),F("active => removed",B("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return s})(),jt=T(l({},pt),{toastComponent:Nt}),St=(s={})=>at([{provide:mt,useValue:{default:jt,config:s}}]),pe=(()=>{class s{static forRoot(t={}){return{ngModule:s,providers:[St(t)]}}static \u0275fac=function(e){return new(e||s)};static \u0275mod=lt({type:s});static \u0275inj=nt({})}return s})();var Bt=(()=>{class s{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=w(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=w("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,i){this.toastrService=t,this.toastPackage=e,this.appRef=i,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(e){return new(e||s)(g(ft),g(b),g(S))};static \u0275cmp=$({type:s,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,i){e&1&&M("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),e&2&&(h(i.toastClasses),A("display",i.displayStyle))},attrs:ht,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,i){e&1&&D(0,Dt,3,0,"button",0)(1,At,3,5,"div",1)(2,Ot,1,3,"div",2)(3,Mt,2,4,"div",3)(4,Rt,2,2,"div",4),e&2&&(r("ngIf",i.options.closeButton),a(),r("ngIf",i.title),a(),r("ngIf",i.message&&i.options.enableHtml),a(),r("ngIf",i.message&&!i.options.enableHtml),a(),r("ngIf",i.options.progressBar))},dependencies:[J],encapsulation:2,changeDetection:0})}return s})(),me=T(l({},pt),{toastComponent:Bt});export{ft as a,St as b,pe as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as _p}from"./chunk-ANG5YF2J.js";import{a as Aa}from"./chunk-YLHU3GDJ.js";import{a as jr,h as wp,p as xp,w as Cp}from"./chunk-TCF45ELT.js";import{B as bp,D as Hn,Fa as vp,Na as Lr,Oa as Vi,Pa as Wi,Wa as $r}from"./chunk-ALX7UOMP.js";import{a as yp}from"./chunk-4LFQJHJZ.js";import{c as gp,d as Ln,f as $n,h as jn}from"./chunk-F2X3VGZZ.js";import{A as fp,E as mp,c as Ur,e as hp,f as ji,g as Da,h as Nr,m as Hi,n as Nn,r as gi,t as Ba,w as Ea}from"./chunk-BYD3JK4R.js";import{Aa as ip,Ab as fi,Ac as Ta,Cb as se,Da as Pa,Dc as dp,Ea as rp,Ga as Or,Gc as cp,I as Jl,Jb as ze,Kb as N,Lb as Mr,Lc as ho,Mb as ap,Nb as np,Ob as ii,Pb as dt,Rb as Mn,Sb as zn,Tb as Rn,Ub as ve,Uc as Ut,Vb as Ce,Vc as Rr,Wb as Ae,Xb as Si,Yb as Pi,Yc as Un,Zb as Kt,_b as mi,ba as hi,bb as op,ca as Ca,cb as Fa,d as di,dc as Rt,ec as X,fc as sp,g as Ql,ga as Sa,gb as V,gc as lp,ha as Dt,ic as pt,jc as Ia,kc as Ke,lc as Qe,n as Zl,oa as ep,oc as pp,pa as Je,pc as Bt,qa as et,qc as rr,r as ci,ra as tp,rc as co,sc as up,ta as ti,wb as Yt,xb as ka,xc as zr,za as rt,zc as or}from"./chunk-YVEUYFCE.js";import{a as x,b as J,c as va,d as Ve,e as $e,f as j,g as Ar,h as wa,i as _a,j as xa}from"./chunk-YQFG5XE2.js";var Bp=Ve((Wn,qn)=>{((i,e)=>{typeof define=="function"&&define.amd?define([],e):typeof qn=="object"&&typeof Wn<"u"?qn.exports=e():i.Papa=e()})(Wn,function i(){var e=typeof self<"u"?self:typeof window<"u"?window:e!==void 0?e:{},t,r=!e.document&&!!e.postMessage,o=e.IS_PAPA_WORKER||!1,a={},n=0,s={};function l(b){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(v){var P=oe(v);P.chunkSize=parseInt(P.chunkSize),v.step||v.chunk||(P.chunkSize=null),this._handle=new C(P),(this._handle.streamer=this)._config=P}.call(this,b),this.parseChunk=function(v,P){var M=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<M){let K=this._config.newline;K||(H=this._config.quoteChar||'"',K=this._handle.guessLineEndings(v,H)),v=[...v.split(K).slice(M)].join(K)}this.isFirstChunk&&le(this._config.beforeFirstChunk)&&(H=this._config.beforeFirstChunk(v))!==void 0&&(v=H),this.isFirstChunk=!1,this._halted=!1;var M=this._partialLine+v,H=(this._partialLine="",this._handle.parse(M,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(v=H.meta.cursor,M=(this._finished||(this._partialLine=M.substring(v-this._baseIndex),this._baseIndex=v),H&&H.data&&(this._rowCount+=H.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),o)e.postMessage({results:H,workerId:s.WORKER_ID,finished:M});else if(le(this._config.chunk)&&!P){if(this._config.chunk(H,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=H=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(H.data),this._completeResults.errors=this._completeResults.errors.concat(H.errors),this._completeResults.meta=H.meta),this._completed||!M||!le(this._config.complete)||H&&H.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),M||H&&H.meta.paused||this._nextChunk(),H}this._halted=!0},this._sendError=function(v){le(this._config.error)?this._config.error(v):o&&this._config.error&&e.postMessage({workerId:s.WORKER_ID,error:v,finished:!1})}}function d(b){var v;(b=b||{}).chunkSize||(b.chunkSize=s.RemoteChunkSize),l.call(this,b),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(P){this._input=P,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(v=new XMLHttpRequest,this._config.withCredentials&&(v.withCredentials=this._config.withCredentials),r||(v.onload=ue(this._chunkLoaded,this),v.onerror=ue(this._chunkError,this)),v.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var P,M=this._config.downloadRequestHeaders;for(P in M)v.setRequestHeader(P,M[P])}var H;this._config.chunkSize&&(H=this._start+this._config.chunkSize-1,v.setRequestHeader("Range","bytes="+this._start+"-"+H));try{v.send(this._config.downloadRequestBody)}catch(K){this._chunkError(K.message)}r&&v.status===0&&this._chunkError()}},this._chunkLoaded=function(){v.readyState===4&&(v.status<200||400<=v.status?this._chunkError():(this._start+=this._config.chunkSize||v.responseText.length,this._finished=!this._config.chunkSize||this._start>=(P=>(P=P.getResponseHeader("Content-Range"))!==null?parseInt(P.substring(P.lastIndexOf("/")+1)):-1)(v),this.parseChunk(v.responseText)))},this._chunkError=function(P){P=v.statusText||P,this._sendError(new Error(P))}}function m(b){(b=b||{}).chunkSize||(b.chunkSize=s.LocalChunkSize),l.call(this,b);var v,P,M=typeof FileReader<"u";this.stream=function(H){this._input=H,P=H.slice||H.webkitSlice||H.mozSlice,M?((v=new FileReader).onload=ue(this._chunkLoaded,this),v.onerror=ue(this._chunkError,this)):v=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var H=this._input,K=(this._config.chunkSize&&(K=Math.min(this._start+this._config.chunkSize,this._input.size),H=P.call(H,this._start,K)),v.readAsText(H,this._config.encoding));M||this._chunkLoaded({target:{result:K}})},this._chunkLoaded=function(H){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(H.target.result)},this._chunkError=function(){this._sendError(v.error)}}function f(b){var v;l.call(this,b=b||{}),this.stream=function(P){return v=P,this._nextChunk()},this._nextChunk=function(){var P,M;if(!this._finished)return P=this._config.chunkSize,v=P?(M=v.substring(0,P),v.substring(P)):(M=v,""),this._finished=!v,this.parseChunk(M)}}function S(b){l.call(this,b=b||{});var v=[],P=!0,M=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(H){this._input=H,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){M&&v.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),v.length?this.parseChunk(v.shift()):P=!0},this._streamData=ue(function(H){try{v.push(typeof H=="string"?H:H.toString(this._config.encoding)),P&&(P=!1,this._checkIsFinished(),this.parseChunk(v.shift()))}catch(K){this._streamError(K)}},this),this._streamError=ue(function(H){this._streamCleanUp(),this._sendError(H)},this),this._streamEnd=ue(function(){this._streamCleanUp(),M=!0,this._streamData("")},this),this._streamCleanUp=ue(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function C(b){var v,P,M,H,K=Math.pow(2,53),ge=-K,Oe=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,je=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,me=this,Te=0,ae=0,ye=!1,fe=!1,be=[],ee={data:[],errors:[],meta:{}};function O(R){return b.skipEmptyLines==="greedy"?R.join("").trim()==="":R.length===1&&R[0].length===0}function F(){if(ee&&M&&(E("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),M=!1),b.skipEmptyLines&&(ee.data=ee.data.filter(function(Q){return!O(Q)})),D()){let Q=function(ie,ce){le(b.transformHeader)&&(ie=b.transformHeader(ie,ce)),be.push(ie)};var G=Q;if(ee)if(Array.isArray(ee.data[0])){for(var R=0;D()&&R<ee.data.length;R++)ee.data[R].forEach(Q);ee.data.splice(0,1)}else ee.data.forEach(Q)}function L(Q,ie){for(var ce=b.header?{}:[],pe=0;pe<Q.length;pe++){var ne=pe,Pe=Q[pe],Pe=((q,we)=>(xe=>(b.dynamicTypingFunction&&b.dynamicTyping[xe]===void 0&&(b.dynamicTyping[xe]=b.dynamicTypingFunction(xe)),(b.dynamicTyping[xe]||b.dynamicTyping)===!0))(q)?we==="true"||we==="TRUE"||we!=="false"&&we!=="FALSE"&&((xe=>{if(Oe.test(xe)&&(xe=parseFloat(xe),ge<xe&&xe<K))return 1})(we)?parseFloat(we):je.test(we)?new Date(we):we===""?null:we):we)(ne=b.header?pe>=be.length?"__parsed_extra":be[pe]:ne,Pe=b.transform?b.transform(Pe,ne):Pe);ne==="__parsed_extra"?(ce[ne]=ce[ne]||[],ce[ne].push(Pe)):ce[ne]=Pe}return b.header&&(pe>be.length?E("FieldMismatch","TooManyFields","Too many fields: expected "+be.length+" fields but parsed "+pe,ae+ie):pe<be.length&&E("FieldMismatch","TooFewFields","Too few fields: expected "+be.length+" fields but parsed "+pe,ae+ie)),ce}var de;ee&&(b.header||b.dynamicTyping||b.transform)&&(de=1,!ee.data.length||Array.isArray(ee.data[0])?(ee.data=ee.data.map(L),de=ee.data.length):ee.data=L(ee.data,0),b.header&&ee.meta&&(ee.meta.fields=be),ae+=de)}function D(){return b.header&&be.length===0}function E(R,L,de,G){R={type:R,code:L,message:de},G!==void 0&&(R.row=G),ee.errors.push(R)}le(b.step)&&(H=b.step,b.step=function(R){ee=R,D()?F():(F(),ee.data.length!==0&&(Te+=R.data.length,b.preview&&Te>b.preview?P.abort():(ee.data=ee.data[0],H(ee,me))))}),this.parse=function(R,L,de){var G=b.quoteChar||'"',G=(b.newline||(b.newline=this.guessLineEndings(R,G)),M=!1,b.delimiter?le(b.delimiter)&&(b.delimiter=b.delimiter(R),ee.meta.delimiter=b.delimiter):((G=((Q,ie,ce,pe,ne)=>{var Pe,q,we,xe;ne=ne||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var bt=0;bt<ne.length;bt++){for(var ht,It=ne[bt],Ne=0,nt=0,Le=0,We=(we=void 0,new Y({comments:pe,delimiter:It,newline:ie,preview:10}).parse(Q)),Me=0;Me<We.data.length;Me++)ce&&O(We.data[Me])?Le++:(ht=We.data[Me].length,nt+=ht,we===void 0?we=ht:0<ht&&(Ne+=Math.abs(ht-we),we=ht));0<We.data.length&&(nt/=We.data.length-Le),(q===void 0||Ne<=q)&&(xe===void 0||xe<nt)&&1.99<nt&&(q=Ne,Pe=It,xe=nt)}return{successful:!!(b.delimiter=Pe),bestDelimiter:Pe}})(R,b.newline,b.skipEmptyLines,b.comments,b.delimitersToGuess)).successful?b.delimiter=G.bestDelimiter:(M=!0,b.delimiter=s.DefaultDelimiter),ee.meta.delimiter=b.delimiter),oe(b));return b.preview&&b.header&&G.preview++,v=R,P=new Y(G),ee=P.parse(v,L,de),F(),ye?{meta:{paused:!0}}:ee||{meta:{paused:!1}}},this.paused=function(){return ye},this.pause=function(){ye=!0,P.abort(),v=le(b.chunk)?"":v.substring(P.getCharIndex())},this.resume=function(){me.streamer._halted?(ye=!1,me.streamer.parseChunk(v,!0)):setTimeout(me.resume,3)},this.aborted=function(){return fe},this.abort=function(){fe=!0,P.abort(),ee.meta.aborted=!0,le(b.complete)&&b.complete(ee),v=""},this.guessLineEndings=function(Q,G){Q=Q.substring(0,1048576);var G=new RegExp(B(G)+"([^]*?)"+B(G),"gm"),de=(Q=Q.replace(G,"")).split("\r"),G=Q.split(`
|
|
1
|
+
import{b as _p}from"./chunk-WZO2ZLBL.js";import{a as Aa}from"./chunk-EXVUABTO.js";import{a as jr,h as wp,p as xp,w as Cp}from"./chunk-YOEPO6LK.js";import{A as bp,C as Hn,Ea as vp,Ma as Lr,Na as Vi,Oa as Wi,Va as $r}from"./chunk-BNI5KUDE.js";import{a as yp}from"./chunk-3HW557B7.js";import{A as fp,E as mp,c as Ur,e as hp,f as ji,g as Da,h as Nr,m as Hi,n as Nn,r as gi,t as Ba,w as Ea}from"./chunk-BYD3JK4R.js";import{c as gp,d as Ln,f as $n,h as jn}from"./chunk-F2X3VGZZ.js";import{Aa as ip,Ab as fi,Ac as Ta,Cb as se,Da as Pa,Dc as dp,Ea as rp,Ga as Or,Gc as cp,I as Jl,Jb as ze,Kb as N,Lb as Mr,Lc as ho,Mb as ap,Nb as np,Ob as ii,Pb as dt,Rb as Mn,Sb as zn,Tb as Rn,Ub as ve,Uc as Ut,Vb as Ce,Vc as Rr,Wb as Ae,Xb as Si,Yb as Pi,Yc as Un,Zb as Kt,_b as mi,ba as hi,bb as op,ca as Ca,cb as Fa,d as di,dc as Rt,ec as X,fc as sp,g as Ql,ga as Sa,gb as V,gc as lp,ha as Dt,ic as pt,jc as Ia,kc as Ke,lc as Qe,n as Zl,oa as ep,oc as pp,pa as Je,pc as Bt,qa as et,qc as rr,r as ci,ra as tp,rc as co,sc as up,ta as ti,wb as Yt,xb as ka,xc as zr,za as rt,zc as or}from"./chunk-YVEUYFCE.js";import{a as x,b as J,c as va,d as Ve,e as $e,f as j,g as Ar,h as wa,i as _a,j as xa}from"./chunk-YQFG5XE2.js";var Bp=Ve((Wn,qn)=>{((i,e)=>{typeof define=="function"&&define.amd?define([],e):typeof qn=="object"&&typeof Wn<"u"?qn.exports=e():i.Papa=e()})(Wn,function i(){var e=typeof self<"u"?self:typeof window<"u"?window:e!==void 0?e:{},t,r=!e.document&&!!e.postMessage,o=e.IS_PAPA_WORKER||!1,a={},n=0,s={};function l(b){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(v){var P=oe(v);P.chunkSize=parseInt(P.chunkSize),v.step||v.chunk||(P.chunkSize=null),this._handle=new C(P),(this._handle.streamer=this)._config=P}.call(this,b),this.parseChunk=function(v,P){var M=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<M){let K=this._config.newline;K||(H=this._config.quoteChar||'"',K=this._handle.guessLineEndings(v,H)),v=[...v.split(K).slice(M)].join(K)}this.isFirstChunk&&le(this._config.beforeFirstChunk)&&(H=this._config.beforeFirstChunk(v))!==void 0&&(v=H),this.isFirstChunk=!1,this._halted=!1;var M=this._partialLine+v,H=(this._partialLine="",this._handle.parse(M,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(v=H.meta.cursor,M=(this._finished||(this._partialLine=M.substring(v-this._baseIndex),this._baseIndex=v),H&&H.data&&(this._rowCount+=H.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),o)e.postMessage({results:H,workerId:s.WORKER_ID,finished:M});else if(le(this._config.chunk)&&!P){if(this._config.chunk(H,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=H=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(H.data),this._completeResults.errors=this._completeResults.errors.concat(H.errors),this._completeResults.meta=H.meta),this._completed||!M||!le(this._config.complete)||H&&H.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),M||H&&H.meta.paused||this._nextChunk(),H}this._halted=!0},this._sendError=function(v){le(this._config.error)?this._config.error(v):o&&this._config.error&&e.postMessage({workerId:s.WORKER_ID,error:v,finished:!1})}}function d(b){var v;(b=b||{}).chunkSize||(b.chunkSize=s.RemoteChunkSize),l.call(this,b),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(P){this._input=P,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(v=new XMLHttpRequest,this._config.withCredentials&&(v.withCredentials=this._config.withCredentials),r||(v.onload=ue(this._chunkLoaded,this),v.onerror=ue(this._chunkError,this)),v.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var P,M=this._config.downloadRequestHeaders;for(P in M)v.setRequestHeader(P,M[P])}var H;this._config.chunkSize&&(H=this._start+this._config.chunkSize-1,v.setRequestHeader("Range","bytes="+this._start+"-"+H));try{v.send(this._config.downloadRequestBody)}catch(K){this._chunkError(K.message)}r&&v.status===0&&this._chunkError()}},this._chunkLoaded=function(){v.readyState===4&&(v.status<200||400<=v.status?this._chunkError():(this._start+=this._config.chunkSize||v.responseText.length,this._finished=!this._config.chunkSize||this._start>=(P=>(P=P.getResponseHeader("Content-Range"))!==null?parseInt(P.substring(P.lastIndexOf("/")+1)):-1)(v),this.parseChunk(v.responseText)))},this._chunkError=function(P){P=v.statusText||P,this._sendError(new Error(P))}}function m(b){(b=b||{}).chunkSize||(b.chunkSize=s.LocalChunkSize),l.call(this,b);var v,P,M=typeof FileReader<"u";this.stream=function(H){this._input=H,P=H.slice||H.webkitSlice||H.mozSlice,M?((v=new FileReader).onload=ue(this._chunkLoaded,this),v.onerror=ue(this._chunkError,this)):v=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var H=this._input,K=(this._config.chunkSize&&(K=Math.min(this._start+this._config.chunkSize,this._input.size),H=P.call(H,this._start,K)),v.readAsText(H,this._config.encoding));M||this._chunkLoaded({target:{result:K}})},this._chunkLoaded=function(H){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(H.target.result)},this._chunkError=function(){this._sendError(v.error)}}function f(b){var v;l.call(this,b=b||{}),this.stream=function(P){return v=P,this._nextChunk()},this._nextChunk=function(){var P,M;if(!this._finished)return P=this._config.chunkSize,v=P?(M=v.substring(0,P),v.substring(P)):(M=v,""),this._finished=!v,this.parseChunk(M)}}function S(b){l.call(this,b=b||{});var v=[],P=!0,M=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(H){this._input=H,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){M&&v.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),v.length?this.parseChunk(v.shift()):P=!0},this._streamData=ue(function(H){try{v.push(typeof H=="string"?H:H.toString(this._config.encoding)),P&&(P=!1,this._checkIsFinished(),this.parseChunk(v.shift()))}catch(K){this._streamError(K)}},this),this._streamError=ue(function(H){this._streamCleanUp(),this._sendError(H)},this),this._streamEnd=ue(function(){this._streamCleanUp(),M=!0,this._streamData("")},this),this._streamCleanUp=ue(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function C(b){var v,P,M,H,K=Math.pow(2,53),ge=-K,Oe=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,je=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,me=this,Te=0,ae=0,ye=!1,fe=!1,be=[],ee={data:[],errors:[],meta:{}};function O(R){return b.skipEmptyLines==="greedy"?R.join("").trim()==="":R.length===1&&R[0].length===0}function F(){if(ee&&M&&(E("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),M=!1),b.skipEmptyLines&&(ee.data=ee.data.filter(function(Q){return!O(Q)})),D()){let Q=function(ie,ce){le(b.transformHeader)&&(ie=b.transformHeader(ie,ce)),be.push(ie)};var G=Q;if(ee)if(Array.isArray(ee.data[0])){for(var R=0;D()&&R<ee.data.length;R++)ee.data[R].forEach(Q);ee.data.splice(0,1)}else ee.data.forEach(Q)}function L(Q,ie){for(var ce=b.header?{}:[],pe=0;pe<Q.length;pe++){var ne=pe,Pe=Q[pe],Pe=((q,we)=>(xe=>(b.dynamicTypingFunction&&b.dynamicTyping[xe]===void 0&&(b.dynamicTyping[xe]=b.dynamicTypingFunction(xe)),(b.dynamicTyping[xe]||b.dynamicTyping)===!0))(q)?we==="true"||we==="TRUE"||we!=="false"&&we!=="FALSE"&&((xe=>{if(Oe.test(xe)&&(xe=parseFloat(xe),ge<xe&&xe<K))return 1})(we)?parseFloat(we):je.test(we)?new Date(we):we===""?null:we):we)(ne=b.header?pe>=be.length?"__parsed_extra":be[pe]:ne,Pe=b.transform?b.transform(Pe,ne):Pe);ne==="__parsed_extra"?(ce[ne]=ce[ne]||[],ce[ne].push(Pe)):ce[ne]=Pe}return b.header&&(pe>be.length?E("FieldMismatch","TooManyFields","Too many fields: expected "+be.length+" fields but parsed "+pe,ae+ie):pe<be.length&&E("FieldMismatch","TooFewFields","Too few fields: expected "+be.length+" fields but parsed "+pe,ae+ie)),ce}var de;ee&&(b.header||b.dynamicTyping||b.transform)&&(de=1,!ee.data.length||Array.isArray(ee.data[0])?(ee.data=ee.data.map(L),de=ee.data.length):ee.data=L(ee.data,0),b.header&&ee.meta&&(ee.meta.fields=be),ae+=de)}function D(){return b.header&&be.length===0}function E(R,L,de,G){R={type:R,code:L,message:de},G!==void 0&&(R.row=G),ee.errors.push(R)}le(b.step)&&(H=b.step,b.step=function(R){ee=R,D()?F():(F(),ee.data.length!==0&&(Te+=R.data.length,b.preview&&Te>b.preview?P.abort():(ee.data=ee.data[0],H(ee,me))))}),this.parse=function(R,L,de){var G=b.quoteChar||'"',G=(b.newline||(b.newline=this.guessLineEndings(R,G)),M=!1,b.delimiter?le(b.delimiter)&&(b.delimiter=b.delimiter(R),ee.meta.delimiter=b.delimiter):((G=((Q,ie,ce,pe,ne)=>{var Pe,q,we,xe;ne=ne||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var bt=0;bt<ne.length;bt++){for(var ht,It=ne[bt],Ne=0,nt=0,Le=0,We=(we=void 0,new Y({comments:pe,delimiter:It,newline:ie,preview:10}).parse(Q)),Me=0;Me<We.data.length;Me++)ce&&O(We.data[Me])?Le++:(ht=We.data[Me].length,nt+=ht,we===void 0?we=ht:0<ht&&(Ne+=Math.abs(ht-we),we=ht));0<We.data.length&&(nt/=We.data.length-Le),(q===void 0||Ne<=q)&&(xe===void 0||xe<nt)&&1.99<nt&&(q=Ne,Pe=It,xe=nt)}return{successful:!!(b.delimiter=Pe),bestDelimiter:Pe}})(R,b.newline,b.skipEmptyLines,b.comments,b.delimitersToGuess)).successful?b.delimiter=G.bestDelimiter:(M=!0,b.delimiter=s.DefaultDelimiter),ee.meta.delimiter=b.delimiter),oe(b));return b.preview&&b.header&&G.preview++,v=R,P=new Y(G),ee=P.parse(v,L,de),F(),ye?{meta:{paused:!0}}:ee||{meta:{paused:!1}}},this.paused=function(){return ye},this.pause=function(){ye=!0,P.abort(),v=le(b.chunk)?"":v.substring(P.getCharIndex())},this.resume=function(){me.streamer._halted?(ye=!1,me.streamer.parseChunk(v,!0)):setTimeout(me.resume,3)},this.aborted=function(){return fe},this.abort=function(){fe=!0,P.abort(),ee.meta.aborted=!0,le(b.complete)&&b.complete(ee),v=""},this.guessLineEndings=function(Q,G){Q=Q.substring(0,1048576);var G=new RegExp(B(G)+"([^]*?)"+B(G),"gm"),de=(Q=Q.replace(G,"")).split("\r"),G=Q.split(`
|
|
2
2
|
`),Q=1<G.length&&G[0].length<de[0].length;if(de.length===1||Q)return`
|
|
3
3
|
`;for(var ie=0,ce=0;ce<de.length;ce++)de[ce][0]===`
|
|
4
4
|
`&&ie++;return ie>=de.length/2?`\r
|