dealposbooks 5.50.0 → 5.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +10 -10
- package/chunk-2RXAK5B6.js +8 -0
- package/chunk-2U3PIWWJ.js +1 -0
- package/chunk-32QC4JFI.js +202 -0
- package/{chunk-KZU3VXLG.js → chunk-3O7NQ6AZ.js} +1 -1
- package/{chunk-PB2MFYIM.js → chunk-3RODMLL2.js} +1 -1
- package/chunk-4GZGUASQ.js +1 -0
- package/chunk-52EMI2TW.js +803 -0
- package/{chunk-DAM2WKDY.js → chunk-52PEVPZN.js} +1 -1
- package/{chunk-65V5R4TS.js → chunk-5XVZW6BJ.js} +1 -1
- package/chunk-7ET5ZE2L.js +1 -0
- package/chunk-7F5JJ627.js +129 -0
- package/chunk-7GORVGAV.js +1 -0
- package/chunk-AAKZYXG3.js +145 -0
- package/{chunk-3ALAWCRA.js → chunk-B7TGZ7J3.js} +1 -1
- package/{chunk-DM45YT57.js → chunk-BT4SLG45.js} +1 -1
- package/{chunk-IMPGOCFC.js → chunk-BVHTVDYP.js} +1 -1
- package/chunk-CPAPQNFC.js +1 -0
- package/{chunk-RBNXJUFM.js → chunk-D5WBKKO2.js} +1 -1
- package/{chunk-VNZUZ5UI.js → chunk-DAN3PD7R.js} +1 -1
- package/chunk-DM42MH3E.js +1 -0
- package/chunk-E57RWXDG.js +1 -0
- package/{chunk-GU4FXUJC.js → chunk-EDYUAYO2.js} +1 -1
- package/{chunk-SX4XIR77.js → chunk-ELZ5FFFM.js} +1 -1
- package/{chunk-Z4XRTHAH.js → chunk-F4PHXCVU.js} +1 -1
- package/{chunk-TOR7QRRB.js → chunk-G3BJCT7T.js} +1 -1
- package/{chunk-XGU6GBEK.js → chunk-GEYRJ2MR.js} +1 -1
- package/{chunk-KXW5NWRO.js → chunk-GN7VAGHH.js} +1 -1
- package/{chunk-2JFOEOZ2.js → chunk-GQ7SPEZH.js} +1 -1
- package/{chunk-ON7PMYMV.js → chunk-H7YYGW7V.js} +1 -1
- package/{chunk-XULSWUMO.js → chunk-HYOAHRKW.js} +1 -1
- package/chunk-ILQI2X5T.js +1 -0
- package/{chunk-A6T2KR7U.js → chunk-J346SEEU.js} +1 -1
- package/{chunk-YQYRAH7V.js → chunk-JBYPGHPN.js} +1 -1
- package/{chunk-J3HFAWXU.js → chunk-JPKZVL57.js} +1 -1
- package/{chunk-LBXNL7E4.js → chunk-JPNJTPYJ.js} +1 -1
- package/{chunk-BB2CNXSH.js → chunk-KBJ25I3J.js} +1 -1
- package/chunk-KJM3M7Y3.js +1 -0
- package/chunk-KU4BYYJE.js +1 -0
- package/{chunk-SXNOZOOP.js → chunk-KXWAD3X4.js} +1 -1
- package/chunk-L27GCER2.js +160 -0
- package/chunk-LF4HTMCE.js +1 -0
- package/chunk-MCR6MBS2.js +1 -0
- package/{chunk-ZC2ADHDH.js → chunk-MHM3ED4J.js} +1 -1
- package/chunk-MWRTPPEI.js +1 -0
- package/chunk-NSMNMKCV.js +1 -0
- package/{chunk-VKUW7E75.js → chunk-NTVIX4GB.js} +1 -1
- package/{chunk-SJOOTBQ5.js → chunk-OILVKUFA.js} +1 -1
- package/chunk-OKT36WED.js +1 -0
- package/{chunk-KORGIX2B.js → chunk-OOCLTY27.js} +1 -1
- package/{chunk-ZAMQ4RCL.js → chunk-QCGJB7O7.js} +1 -1
- package/chunk-QSIXT7W7.js +7 -0
- package/{chunk-GAXDMEOS.js → chunk-QXE4YYQV.js} +1 -1
- package/{chunk-3GYSEQ25.js → chunk-R45WWOYD.js} +1 -1
- package/chunk-RFHL2MJ4.js +1 -0
- package/{chunk-7DBOORB2.js → chunk-RGVP7KT4.js} +1 -1
- package/{chunk-4AGTFPOU.js → chunk-SOD2BIQR.js} +1 -1
- package/chunk-TOAH3PY3.js +1 -0
- package/{chunk-56CZGYL5.js → chunk-V6BSLJMN.js} +1 -1
- package/{chunk-NHW7GVHK.js → chunk-VABCBO2E.js} +1 -1
- package/{chunk-RVUOVLL5.js → chunk-VQ62YSFR.js} +1 -1
- package/{chunk-4IMFKRR6.js → chunk-WPHZJHC6.js} +1 -1
- package/{chunk-SOYJAYJK.js → chunk-YKZN6T5N.js} +1 -1
- package/chunk-YMV3SC73.js +1 -0
- package/{chunk-DAFEIZYQ.js → chunk-ZLBNHUZF.js} +1 -1
- package/{chunk-YU4Q7ASX.js → chunk-ZOMQLK4A.js} +1 -1
- package/index.html +2 -2
- package/{main-UCTZ3G6L.js → main-ET3JU27S.js} +1 -1
- package/package.json +1 -1
- package/chunk-27SC6O47.js +0 -1
- package/chunk-47G2N7SA.js +0 -1
- package/chunk-4RBG4SFN.js +0 -1
- package/chunk-5N5QHECN.js +0 -1
- package/chunk-6GO647AV.js +0 -1
- package/chunk-AF6G72MJ.js +0 -1
- package/chunk-BOQI2TMP.js +0 -8
- package/chunk-BTFX33U6.js +0 -947
- package/chunk-COSMZ2AH.js +0 -1
- package/chunk-FHXTQXB7.js +0 -160
- package/chunk-HQHEWKLC.js +0 -1
- package/chunk-I2OULINE.js +0 -1
- package/chunk-JERRSTLA.js +0 -1
- package/chunk-OOCCZG53.js +0 -129
- package/chunk-SASRJPT7.js +0 -1
- package/chunk-URGN4QVD.js +0 -1
- package/chunk-UTOLWW4T.js +0 -1
- package/chunk-VJROOSEO.js +0 -7
- package/chunk-WYLIU52Q.js +0 -1
- package/chunk-XN4CDKDI.js +0 -1
- package/chunk-Z3ZKNQZS.js +0 -1
- package/chunk-ZWNKUBMG.js +0 -202
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import{a as G,r as U}from"./chunk-O44DI62I.js";import{Na as h,Va as Q,a as R,d as T}from"./chunk-MGIEURA2.js";import{j as A,n as L,u as O}from"./chunk-DM2JLWKE.js";import{$c as j,Aa as l,Cb as I,Dc as S,Jc as D,Lb as d,Mb as g,Qb as x,Wb as v,Xb as y,Yb as M,_c as p,ac as V,ba as $,ca as f,da as w,fc as _,ia as u,ib as b,mc as N,nc as z,oc as E,qa as s,ra as c,ua as m,wa as C,yb as B,zb as F}from"./chunk-6QJHEOXN.js";var H=["input"],J=(o,n,t,e,i)=>({"p-radiobutton p-component":!0,"p-radiobutton-checked":o,"p-disabled":n,"p-variant-filled":t,"p-radiobutton-sm p-inputfield-sm":e,"p-radiobutton-lg p-inputfield-lg":i}),K=({dt:o})=>`
|
|
2
|
+
.p-radiobutton {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
user-select: none;
|
|
6
|
+
vertical-align: bottom;
|
|
7
|
+
width: ${o("radiobutton.width")};
|
|
8
|
+
height: ${o("radiobutton.height")};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.p-radiobutton-input {
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
appearance: none;
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: 0;
|
|
16
|
+
inset-inline-start: 0;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
padding: 0;
|
|
20
|
+
margin: 0;
|
|
21
|
+
opacity: 0;
|
|
22
|
+
z-index: 1;
|
|
23
|
+
outline: 0 none;
|
|
24
|
+
border: 1px solid transparent;
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.p-radiobutton-box {
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
align-items: center;
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
border: 1px solid ${o("radiobutton.border.color")};
|
|
34
|
+
background: ${o("radiobutton.background")};
|
|
35
|
+
width: ${o("radiobutton.width")};
|
|
36
|
+
height: ${o("radiobutton.height")};
|
|
37
|
+
transition: background ${o("radiobutton.transition.duration")}, color ${o("radiobutton.transition.duration")}, border-color ${o("radiobutton.transition.duration")}, box-shadow ${o("radiobutton.transition.duration")}, outline-color ${o("radiobutton.transition.duration")};
|
|
38
|
+
outline-color: transparent;
|
|
39
|
+
box-shadow: ${o("radiobutton.shadow")};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.p-radiobutton-icon {
|
|
43
|
+
transition-duration: ${o("radiobutton.transition.duration")};
|
|
44
|
+
background: transparent;
|
|
45
|
+
font-size: ${o("radiobutton.icon.size")};
|
|
46
|
+
width: ${o("radiobutton.icon.size")};
|
|
47
|
+
height: ${o("radiobutton.icon.size")};
|
|
48
|
+
border-radius: 50%;
|
|
49
|
+
backface-visibility: hidden;
|
|
50
|
+
transform: translateZ(0) scale(0.1);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:hover) .p-radiobutton-box {
|
|
54
|
+
border-color: ${o("radiobutton.hover.border.color")};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.p-radiobutton-checked .p-radiobutton-box {
|
|
58
|
+
border-color: ${o("radiobutton.checked.border.color")};
|
|
59
|
+
background: ${o("radiobutton.checked.background")};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.p-radiobutton-checked .p-radiobutton-box .p-radiobutton-icon {
|
|
63
|
+
background: ${o("radiobutton.icon.checked.color")};
|
|
64
|
+
transform: translateZ(0) scale(1, 1);
|
|
65
|
+
visibility: visible;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.p-radiobutton-checked:not(.p-disabled):has(.p-radiobutton-input:hover) .p-radiobutton-box {
|
|
69
|
+
border-color: ${o("radiobutton.checked.hover.border.color")};
|
|
70
|
+
background: ${o("radiobutton.checked.hover.background")};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:hover).p-radiobutton-checked .p-radiobutton-box .p-radiobutton-icon {
|
|
74
|
+
background: ${o("radiobutton.icon.checked.hover.color")};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:focus-visible) .p-radiobutton-box {
|
|
78
|
+
border-color: ${o("radiobutton.focus.border.color")};
|
|
79
|
+
box-shadow: ${o("radiobutton.focus.ring.shadow")};
|
|
80
|
+
outline: ${o("radiobutton.focus.ring.width")} ${o("radiobutton.focus.ring.style")} ${o("radiobutton.focus.ring.color")};
|
|
81
|
+
outline-offset: ${o("radiobutton.focus.ring.offset")};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.p-radiobutton-checked:not(.p-disabled):has(.p-radiobutton-input:focus-visible) .p-radiobutton-box {
|
|
85
|
+
border-color: ${o("radiobutton.checked.focus.border.color")};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
p-radioButton.ng-invalid.ng-dirty .p-radiobutton-box,
|
|
89
|
+
p-radio-button.ng-invalid.ng-dirty .p-radiobutton-box,
|
|
90
|
+
p-radiobutton.ng-invalid.ng-dirty .p-radiobutton-box {
|
|
91
|
+
border-color: ${o("radiobutton.invalid.border.color")};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.p-radiobutton.p-variant-filled .p-radiobutton-box {
|
|
95
|
+
background: ${o("radiobutton.filled.background")};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.p-radiobutton.p-variant-filled.p-radiobutton-checked .p-radiobutton-box {
|
|
99
|
+
background: ${o("radiobutton.checked.background")};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.p-radiobutton.p-variant-filled:not(.p-disabled):has(.p-radiobutton-input:hover).p-radiobutton-checked .p-radiobutton-box {
|
|
103
|
+
background: ${o("radiobutton.checked.hover.background")};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.p-radiobutton.p-disabled {
|
|
107
|
+
opacity: 1;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.p-radiobutton.p-disabled .p-radiobutton-box {
|
|
111
|
+
background: ${o("radiobutton.disabled.background")};
|
|
112
|
+
border-color: ${o("radiobutton.checked.disabled.border.color")};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.p-radiobutton-checked.p-disabled .p-radiobutton-box .p-radiobutton-icon {
|
|
116
|
+
background: ${o("radiobutton.icon.disabled.color")};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.p-radiobutton-sm,
|
|
120
|
+
.p-radiobutton-sm .p-radiobutton-box {
|
|
121
|
+
width: ${o("radiobutton.sm.width")};
|
|
122
|
+
height: ${o("radiobutton.sm.height")};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.p-radiobutton-sm .p-radiobutton-icon {
|
|
126
|
+
font-size: ${o("radiobutton.icon.sm.size")};
|
|
127
|
+
width: ${o("radiobutton.icon.sm.size")};
|
|
128
|
+
height: ${o("radiobutton.icon.sm.size")};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.p-radiobutton-lg,
|
|
132
|
+
.p-radiobutton-lg .p-radiobutton-box {
|
|
133
|
+
width: ${o("radiobutton.lg.width")};
|
|
134
|
+
height: ${o("radiobutton.lg.height")};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.p-radiobutton-lg .p-radiobutton-icon {
|
|
138
|
+
font-size: ${o("radiobutton.icon.lg.size")};
|
|
139
|
+
width: ${o("radiobutton.icon.lg.size")};
|
|
140
|
+
height: ${o("radiobutton.icon.lg.size")};
|
|
141
|
+
}
|
|
142
|
+
`,W={root:({instance:o,props:n})=>["p-radiobutton p-component",{"p-radiobutton-checked":o.checked,"p-disabled":n.disabled,"p-invalid":n.invalid,"p-variant-filled":n.variant?n.variant==="filled":o.config.inputStyle==="filled"||o.config.inputVariant==="filled"}],box:"p-radiobutton-box",input:"p-radiobutton-input",icon:"p-radiobutton-icon"},Z=(()=>{class o extends Q{name="radiobutton";theme=K;classes=W;static \u0275fac=(()=>{let t;return function(i){return(t||(t=m(o)))(i||o)}})();static \u0275prov=f({token:o,factory:o.\u0275fac})}return o})();var X={provide:R,useExisting:$(()=>q),multi:!0},Y=(()=>{class o{accessors=[];add(t,e){this.accessors.push([t,e])}remove(t){this.accessors=this.accessors.filter(e=>e[1]!==t)}select(t){this.accessors.forEach(e=>{this.isSameGroup(e,t)&&e[1]!==t&&e[1].writeValue(t.value)})}isSameGroup(t,e){return t[0].control?t[0].control.root===e.control.control.root&&t[1].name===e.name:!1}static \u0275fac=function(e){return new(e||o)};static \u0275prov=f({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),q=(()=>{class o extends G{value;formControlName;name;disabled;variant;size;tabindex;inputId;ariaLabelledBy;ariaLabel;style;styleClass;autofocus;binary;onClick=new l;onFocus=new l;onBlur=new l;inputViewChild;onModelChange=()=>{};onModelTouched=()=>{};checked;focused;control;_componentStyle=u(Z);injector=u(C);registry=u(Y);ngOnInit(){super.ngOnInit(),this.control=this.injector.get(T),this.checkName(),this.registry.add(this.control,this)}onChange(t){this.disabled||this.select(t)}select(t){this.disabled||(this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:t,value:this.value}))}writeValue(t){this.binary?this.checked=!!t:this.checked=t==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(t){this.onModelChange=t}registerOnTouched(t){this.onModelTouched=t}setDisabledState(t){this.disabled=t,this.cd.markForCheck()}onInputFocus(t){this.focused=!0,this.onFocus.emit(t)}onInputBlur(t){this.focused=!1,this.onModelTouched(),this.onBlur.emit(t)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this),super.ngOnDestroy()}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error(`
|
|
143
|
+
If you define both a name and a formControlName attribute on your radio button, their values
|
|
144
|
+
must match. Ex: <p-radioButton formControlName="food" name="food"></p-radioButton>
|
|
145
|
+
`)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=m(o)))(i||o)}})();static \u0275cmp=B({type:o,selectors:[["p-radioButton"],["p-radiobutton"],["p-radio-button"]],viewQuery:function(e,i){if(e&1&&N(H,5),e&2){let r;z(r=E())&&(i.inputViewChild=r.first)}},inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:[2,"disabled","disabled",p],variant:"variant",size:"size",tabindex:[2,"tabindex","tabindex",j],inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",autofocus:[2,"autofocus","autofocus",p],binary:[2,"binary","binary",p]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[S([X,Z]),I],decls:5,vars:24,consts:[["input",""],[3,"ngStyle","ngClass"],["type","radio",1,"p-radiobutton-input",3,"focus","blur","change","checked","disabled","value","pAutoFocus"],[1,"p-radiobutton-box"],[1,"p-radiobutton-icon"]],template:function(e,i){if(e&1){let r=V();v(0,"div",1)(1,"input",2,0),_("focus",function(a){return s(r),c(i.onInputFocus(a))})("blur",function(a){return s(r),c(i.onInputBlur(a))})("change",function(a){return s(r),c(i.onChange(a))}),y(),v(3,"div",3),M(4,"div",4),y()()}e&2&&(x(i.styleClass),g("ngStyle",i.style)("ngClass",D(18,J,i.checked,i.disabled,i.variant==="filled"||i.config.inputStyle()==="filled"||i.config.inputVariant()==="filled",i.size==="small",i.size==="large")),d("data-pc-name","radiobutton")("data-pc-section","root"),b(),g("checked",i.checked)("disabled",i.disabled)("value",i.value)("pAutoFocus",i.autofocus),d("id",i.inputId)("name",i.name)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("tabindex",i.tabindex)("aria-checked",i.checked),b(2),d("data-pc-section","input"),b(),d("data-pc-section","icon"))},dependencies:[O,A,L,U,h],encapsulation:2,changeDetection:0})}return o})(),mo=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=F({type:o});static \u0275inj=w({imports:[q,h,h]})}return o})();export{q as a,mo as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-GQ7SPEZH.js";import{a}from"./chunk-G3BJCT7T.js";import{ca as o,ia as n}from"./chunk-6QJHEOXN.js";var h=(()=>{class e{constructor(){this.#t=n(a),this.authService=n(i)}#t;getJournalEntryLoader(){return this.#t.get("","api/JournalLoader/JournalEntry")}getJournalReceiveMoney(){return this.#t.get("","api/JournalLoader/ReceiveJournal")}getJournalRecordExpenseLoader(){return this.#t.get("","api/JournalLoader/RecordExpense")}getJournalEntryData(t,r={}){return this.#t.post("","api/Journal/JournalEntry",t,r)}getJournalEntryInfo(t){let r={ID:t};return this.#t.get("","/api/Journal/Info",{params:r})}getJournalEntryForm(t){return this.#t.get("",`api/journalloader/form/${t}`).pipe()}getJournalEntryCount(t){return this.#t.post("","api/Journal/JournalEntryCount",t)}getJournalEntryCustomerSuggestions(t){let r={Prefix:t,Count:100};return this.#t.get(this.authService.getTenantExternalURL(),"/API/AC/GetCustomerSuggestion",{params:r})}getJournalEntrySupplierSuggestions(t){let r={Prefix:t,Count:100};return this.#t.get(this.authService.getTenantExternalURL(),"/API/AC/GetSupplierSuggestion",{params:r})}submitJournalEntry(t){return this.#t.post(void 0,"api/journal/submit",t,{observe:"response"})}deleteJournalEntry(t){let r={params:{ID:t.join(",")}};return this.#t.delete(void 0,"/api/Journal/delete",r)}fetchCategoryOptions(){return this.#t.get("","api/ChartOfAccount/CategoryOptions")}submitChartAccount(t,r={}){return this.#t.post("","api/ChartOfAccount/Submit",t,r)}getImageFileName(t){return new URL(t).pathname.split("/").pop()||""}importPreviewJournal(t){return this.#t.post(void 0,"api/Journal/ImportPreview",t)}importConfirmJournal(t){return this.#t.post(void 0,"api/Journal/ImportConfirm",t)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=o({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{h as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as y,b as J}from"./chunk-
|
|
1
|
+
import{a as y,b as J}from"./chunk-NTVIX4GB.js";import"./chunk-JPNJTPYJ.js";import{m as j}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as R,b as O}from"./chunk-5U7KZJ3H.js";import"./chunk-FHJOSHI3.js";import{i as z}from"./chunk-JPKZVL57.js";import"./chunk-VM56C6ZV.js";import{a as G,b as H}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as D,x as N,y as L,z as q}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-VQ62YSFR.js";import"./chunk-G3BJCT7T.js";import{a as V}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as E,u as I}from"./chunk-DM2JLWKE.js";import{Dc as F,Eb as x,Ec as S,Mb as c,Oc as l,Pb as C,Pc as s,Rb as T,Sc as b,W as k,Wb as n,Xb as o,Y as A,Yb as u,_ as B,ac as h,fc as v,gc as a,h as M,ia as m,ib as r,qa as g,ra as _,s as d,sa as P,ta as w,yb as $}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var K=()=>({height:"calc(100vh - 100px)"});function Q(t,f){if(t&1){let e=h();n(0,"p-button",6),v("onClick",function(){g(e);let p=a(2);return _(p.onFormat())}),o()}}function U(t,f){if(t&1){let e=h();n(0,"p-button",7),l(1,"async"),l(2,"async"),v("onClick",function(){g(e);let p=a(2);return _(p.onMigrate())}),o()}if(t&2){let e=a(2);c("disabled",s(1,2,e.countInBooks$)!==0)("pTooltip",s(2,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function W(t,f){if(t&1&&(n(0,"div",3),x(1,Q,1,0,"p-button",4)(2,U,3,6,"p-button",5),o()),t&2){let e=a();r(),T(e.roleService.permissions().migrate.delete?1:-1),r(),T(e.roleService.permissions().migrate.create?2:-1)}}function X(t,f){if(t&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",8),u(3,"app-migration-cards",9),l(4,"async"),P(),n(5,"svg",10),u(6,"path",11),o(),w(),u(7,"app-migration-cards",12),l(8,"async"),o()()()),t&2){let e=a();C(S(12,K)),r(),C(S(13,K)),r(2),c("migrationCount",s(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),r(4),c("migrationCount",s(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var xe=(()=>{class t{constructor(){this.migrateService=m(y),this.toastr=m(V),this.refresh$=new M(void 0),this.pageTitle="Tax Account",this.roleService=m(j)}ngOnInit(){let e=this.refresh$.pipe(A(()=>this.migrateService.getTaxAccountCount()),B(i=>console.log("API response:",i)),k(1));this.countInPOS$=e.pipe(d(i=>Number(i.pos))),this.countInBooks$=e.pipe(d(i=>Number(i.books)))}onMigrate(){this.migrateService.migrateTaxAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatTaxAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=$({type:t,selectors:[["app-tax-account"]],features:[F([y])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Create","tooltipPosition","left",3,"disabled","pTooltip"],["label","Format","severity","danger",3,"onClick"],["label","Create","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(i,p){i&1&&(n(0,"app-main-panel",2),x(1,W,3,2,"ng-template",null,0,b)(3,X,9,14,"ng-template",null,1,b),o()),i&2&&c("pageTitle",p.pageTitle)},dependencies:[z,I,E,O,R,H,G,q,L,J,N,D],encapsulation:2})}}return t})();export{xe as TaxAccountComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Yt,b as ei,c as ti,d as ii,e as oi,f as li}from"./chunk-X6KL7VKV.js";import{a as Zt,b as gi,c as ni}from"./chunk-KZU3VXLG.js";import{a as kt,b as zt}from"./chunk-43JH7CKX.js";import{a as Xt}from"./chunk-SOYJAYJK.js";import{a as qe}from"./chunk-BT7Y4ADP.js";import{a as Ot}from"./chunk-5U7KZJ3H.js";import{b as Be,c as Ke,d as Rt,e as Dt,f as Pt,g as Gt,h as Jt}from"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import{a as Vt}from"./chunk-II7KELI4.js";import{c as je}from"./chunk-FTBQKOYS.js";import{a as Lt}from"./chunk-L4ENW4RK.js";import{a as qt,b as Wt}from"./chunk-FHJOSHI3.js";import{a as Qe}from"./chunk-KONCSTVQ.js";import{a as $e}from"./chunk-FMAG3RQL.js";import{e as Qt,f as Ut,i as jt}from"./chunk-J3HFAWXU.js";import"./chunk-VM56C6ZV.js";import{a as At,b as Bt}from"./chunk-ISIYG4D5.js";import{a as Mt}from"./chunk-ALLR2NXQ.js";import{a as $t}from"./chunk-FNGX2XFA.js";import"./chunk-BFEM6LX7.js";import{a as He,b as Ae,i as Ue,p as Nt,w as Ft,x as Ht,z as Kt}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{$ as de,A as Re,C as De,Da as It,Ha as be,M as wt,Ma as _e,N as Pe,Na as Fe,Q as ie,R as z,S as fe,T as Ve,Va as Et,X as vt,Y as St,Z as ce,oa as Ne,ra as xt,sa as V,ta as Oe,x as Ct,z as Me}from"./chunk-MGIEURA2.js";import{d as Tt}from"./chunk-DZCJWJUG.js";import"./chunk-TOR7QRRB.js";import"./chunk-YQYRAH7V.js";import"./chunk-KL3TPLRB.js";import"./chunk-RVUOVLL5.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import{j as ae,l as yt,m as G,n as Le,o as se,u as me,x as ge}from"./chunk-DM2JLWKE.js";import{$b as T,$c as Q,Aa as S,Ab as rt,Ba as le,Cb as xe,Dc as pt,Eb as p,Ec as ee,Fa as Se,Fc as P,Gc as te,Ha as X,Hc as ht,I as Ye,Ic as ut,Kc as mt,La as it,Lb as ne,Mb as a,Nb as at,Oc as gt,Pb as Z,Qb as j,Qc as ft,Rb as Ie,Sb as Ee,Sc as x,Ub as ke,Vb as ze,Wb as d,Wc as bt,Xb as h,Yb as I,Zb as q,_ as Ce,_b as W,_c as w,ac as D,ca as we,cd as _t,da as et,fc as k,g as J,gb as ot,gc as m,ia as A,ib as s,lc as _,m as Ze,mc as E,nb as lt,nc as g,ob as N,oc as f,pa as tt,qa as L,ra as M,rc as Y,sc as b,tc as B,ua as ve,uc as re,xc as st,yb as U,yc as ct,zb as nt,zc as dt}from"./chunk-6QJHEOXN.js";import{a as $,b as ue,e as mi}from"./chunk-YQFG5XE2.js";var _i=["colgroup"],yi=["caption"],Ti=["header"],Ci=["body"],wi=["footer"],vi=["summary"],Si=["emptymessage"],xi=["paginatorleft"],Ii=["paginatorright"],Ei=["paginatordropdownitem"],ki=["frozenheader"],zi=["frozenbody"],Li=["frozenfooter"],Mi=["frozencolgroup"],Ri=["loadingicon"],Di=["reorderindicatorupicon"],Pi=["reorderindicatordownicon"],Vi=["sorticon"],Ni=["checkboxicon"],Oi=["headercheckboxicon"],Fi=["togglericon"],Hi=["paginatorfirstpagelinkicon"],Ai=["paginatorlastpagelinkicon"],Bi=["paginatorpreviouspagelinkicon"],Ki=["paginatornextpagelinkicon"],$i=["loader"],Qi=["container"],Ui=["resizeHelper"],ji=["reorderIndicatorUp"],qi=["reorderIndicatorDown"],Wi=["table"],Gi=["scrollableView"],Ji=["scrollableFrozenView"],Xi=(t,r,e,o,i,l)=>({"p-treetable p-component":!0,"p-treetable-gridlines":t,"p-treetable-hoverable-rows":r,"p-treetable-auto-layout":e,"p-treetable-resizable":o,"p-treetable-resizable-fit":i,"p-treetable-flex-scrollable":l}),K=t=>({$implicit:t}),Zi=(t,r)=>({left:t,width:r}),Yi=t=>({width:t});function eo(t,r){if(t&1&&I(0,"i"),t&2){let e=m(2);j("p-treetable-loading-icon pi-spin "+e.loadingIcon)}}function to(t,r){t&1&&I(0,"SpinnerIcon",24),t&2&&a("spin",!0)("styleClass","p-treetable-loading-icon")}function io(t,r){}function oo(t,r){t&1&&p(0,io,0,0,"ng-template")}function lo(t,r){if(t&1&&(d(0,"span",25),p(1,oo,1,0,null,26),h()),t&2){let e=m(3);s(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function no(t,r){if(t&1&&(q(0),p(1,to,1,2,"SpinnerIcon",22)(2,lo,2,1,"span",23),W()),t&2){let e=m(2);s(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function ro(t,r){if(t&1&&(d(0,"div",18)(1,"div",19),p(2,eo,1,2,"i",20)(3,no,3,2,"ng-container",21),h()()),t&2){let e=m();s(2),a("ngIf",e.loadingIcon),s(),a("ngIf",!e.loadingIcon)}}function ao(t,r){t&1&&T(0)}function so(t,r){if(t&1&&(d(0,"div",27),p(1,ao,1,0,"ng-container",26),h()),t&2){let e=m();s(),a("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function co(t,r){t&1&&T(0)}function po(t,r){if(t&1&&p(0,co,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function ho(t,r){t&1&&p(0,po,1,1,"ng-template",29)}function uo(t,r){t&1&&T(0)}function mo(t,r){if(t&1&&p(0,uo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function go(t,r){t&1&&p(0,mo,1,1,"ng-template",30)}function fo(t,r){t&1&&T(0)}function bo(t,r){if(t&1&&p(0,fo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function _o(t,r){t&1&&p(0,bo,1,1,"ng-template",31)}function yo(t,r){t&1&&T(0)}function To(t,r){if(t&1&&p(0,yo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Co(t,r){t&1&&p(0,To,1,1,"ng-template",32)}function wo(t,r){if(t&1){let e=D();d(0,"p-paginator",28),k("onPageChange",function(i){L(e);let l=m();return M(l.onPageChange(i))}),p(1,ho,1,0,null,21)(2,go,1,0,null,21)(3,_o,1,0,null,21)(4,Co,1,0,null,21),h()}if(t&2){let e,o,i,l=m();a("rows",l.rows)("first",l.first)("totalRecords",l.totalRecords)("pageLinkSize",l.pageLinks)("alwaysShow",l.alwaysShowPaginator)("rowsPerPageOptions",l.rowsPerPageOptions)("templateLeft",(e=l.paginatorLeftTemplate)!==null&&e!==void 0?e:l._paginatorLeftTemplate)("templateRight",(o=l.paginatorRightTemplate)!==null&&o!==void 0?o:l._paginatorRightTemplate)("dropdownAppendTo",l.paginatorDropdownAppendTo)("currentPageReportTemplate",l.currentPageReportTemplate)("showFirstLastIcon",l.showFirstLastIcon)("dropdownItemTemplate",(i=l.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:l._paginatorDropdownItemTemplate)("showCurrentPageReport",l.showCurrentPageReport)("showJumpToPageDropdown",l.showJumpToPageDropdown)("showPageLinks",l.showPageLinks)("styleClass",l.paginatorStyleClass)("locale",l.paginatorLocale),s(),a("ngIf",l.paginatorFirstPageLinkIconTemplate||l._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",l.paginatorPreviousPageLinkIconTemplate||l._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",l.paginatorLastPageLinkIconTemplate||l._paginatorLastPageLinkIconTemplate),s(),a("ngIf",l.paginatorNextPageLinkIconTemplate||l._paginatorNextPageLinkIconTemplate)}}function vo(t,r){t&1&&T(0)}function So(t,r){t&1&&T(0)}function xo(t,r){t&1&&T(0)}function Io(t,r){if(t&1&&(d(0,"div",33)(1,"table",34,1),p(3,vo,1,0,"ng-container",35),d(4,"thead",36),p(5,So,1,0,"ng-container",35),h(),I(6,"tbody",37),d(7,"tfoot",38),p(8,xo,1,0,"ng-container",35),h()()()),t&2){let e,o=m();s(),a("ngClass",o.tableStyleClass)("ngStyle",o.tableStyle),s(2),a("ngTemplateOutlet",o.colGroupTemplate||o._colGroupTemplate)("ngTemplateOutletContext",P(10,K,o.columns)),s(2),a("ngTemplateOutlet",o.headerTemplate||o._headerTemplate)("ngTemplateOutletContext",P(12,K,o.columns)),s(),a("pTreeTableBody",o.columns)("pTreeTableBodyTemplate",(e=o.bodyTemplate)!==null&&e!==void 0?e:o._bodyTemplate),s(2),a("ngTemplateOutlet",o.footerTemplate||o._footerTemplate)("ngTemplateOutletContext",P(14,K,o.columns))}}function Eo(t,r){if(t&1&&I(0,"div",42,3),t&2){let e=m(2);a("ttScrollableView",e.frozenColumns)("frozen",!0)("ngStyle",P(4,Yi,e.frozenWidth))("scrollHeight",e.scrollHeight)}}function ko(t,r){if(t&1&&(d(0,"div",39),p(1,Eo,2,6,"div",40),I(2,"div",41,2),h()),t&2){let e=m();s(),a("ngIf",e.frozenColumns||e.frozenBodyTemplate||e._frozenBodyTemplate),s(),a("ttScrollableView",e.columns)("frozen",!1)("scrollHeight",e.scrollHeight)("ngStyle",te(5,Zi,e.frozenWidth,"calc(100% - "+e.frozenWidth+")"))}}function zo(t,r){t&1&&T(0)}function Lo(t,r){if(t&1&&p(0,zo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function Mo(t,r){t&1&&p(0,Lo,1,1,"ng-template",29)}function Ro(t,r){t&1&&T(0)}function Do(t,r){if(t&1&&p(0,Ro,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function Po(t,r){t&1&&p(0,Do,1,1,"ng-template",30)}function Vo(t,r){t&1&&T(0)}function No(t,r){if(t&1&&p(0,Vo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function Oo(t,r){t&1&&p(0,No,1,1,"ng-template",31)}function Fo(t,r){t&1&&T(0)}function Ho(t,r){if(t&1&&p(0,Fo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Ao(t,r){t&1&&p(0,Ho,1,1,"ng-template",32)}function Bo(t,r){if(t&1){let e=D();d(0,"p-paginator",43),k("onPageChange",function(i){L(e);let l=m();return M(l.onPageChange(i))}),p(1,Mo,1,0,null,21)(2,Po,1,0,null,21)(3,Oo,1,0,null,21)(4,Ao,1,0,null,21),h()}if(t&2){let e,o,i,l=m();a("rows",l.rows)("first",l.first)("totalRecords",l.totalRecords)("pageLinkSize",l.pageLinks)("alwaysShow",l.alwaysShowPaginator)("rowsPerPageOptions",l.rowsPerPageOptions)("templateLeft",(e=l.paginatorLeftTemplate)!==null&&e!==void 0?e:l._paginatorLeftTemplate)("templateRight",(o=l.paginatorRightTemplate)!==null&&o!==void 0?o:l._paginatorRightTemplate)("dropdownAppendTo",l.paginatorDropdownAppendTo)("currentPageReportTemplate",l.currentPageReportTemplate)("showFirstLastIcon",l.showFirstLastIcon)("dropdownItemTemplate",(i=l.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:l._paginatorDropdownItemTemplate)("showCurrentPageReport",l.showCurrentPageReport)("showJumpToPageDropdown",l.showJumpToPageDropdown)("showPageLinks",l.showPageLinks)("styleClass",l.paginatorStyleClass)("locale",l.paginatorLocale),s(),a("ngIf",l.paginatorFirstPageLinkIconTemplate||l._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",l.paginatorPreviousPageLinkIconTemplate||l._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",l.paginatorLastPageLinkIconTemplate||l._paginatorLastPageLinkIconTemplate),s(),a("ngIf",l.paginatorNextPageLinkIconTemplate||l._paginatorNextPageLinkIconTemplate)}}function Ko(t,r){t&1&&T(0)}function $o(t,r){if(t&1&&(d(0,"div",44),p(1,Ko,1,0,"ng-container",26),h()),t&2){let e=m();s(),a("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function Qo(t,r){t&1&&I(0,"div",45,4)}function Uo(t,r){t&1&&I(0,"ArrowDownIcon")}function jo(t,r){}function qo(t,r){t&1&&p(0,jo,0,0,"ng-template")}function Wo(t,r){if(t&1&&(d(0,"span",46,5),p(2,Uo,1,0,"ArrowDownIcon",21)(3,qo,1,0,null,26),h()),t&2){let e=m();s(2),a("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function Go(t,r){t&1&&I(0,"ArrowUpIcon")}function Jo(t,r){}function Xo(t,r){t&1&&p(0,Jo,0,0,"ng-template")}function Zo(t,r){if(t&1&&(d(0,"span",47,6),p(2,Go,1,0,"ArrowUpIcon",21)(3,Xo,1,0,null,26),h()),t&2){let e=m();s(2),a("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var Yo=["pTreeTableBody",""],el=(t,r,e,o)=>({$implicit:t,node:r,rowData:e,columns:o}),tl=(t,r)=>({$implicit:t,frozen:r});function il(t,r){t&1&&T(0)}function ol(t,r){if(t&1&&(q(0),p(1,il,1,0,"ng-container",2),W()),t&2){let e=m().$implicit,o=m();s(),a("ngTemplateOutlet",o.template)("ngTemplateOutletContext",ut(2,el,e,e.node,e.node.data,o.columns))}}function ll(t,r){if(t&1&&p(0,ol,2,7,"ng-container",1),t&2){let e=r.$implicit;a("ngIf",e.visible)}}function nl(t,r){t&1&&T(0)}function rl(t,r){if(t&1&&(q(0),p(1,nl,1,0,"ng-container",2),W()),t&2){let e=m();s(),a("ngTemplateOutlet",e.tt.emptyMessageTemplate)("ngTemplateOutletContext",te(2,tl,e.columns,e.frozen))}}var al=["scrollHeader"],sl=["scrollHeaderBox"],cl=["scrollBody"],dl=["scrollTable"],pl=["loadingTable"],hl=["scrollFooter"],ul=["scrollFooterBox"],ml=["scrollableAligner"],gl=["scroller"],fl=["ttScrollableView",""],bl=t=>({height:t}),ai=(t,r)=>({$implicit:t,options:r}),_l=t=>({options:t}),yl=(t,r)=>({"max-height":t,"overflow-y":r}),Tl=()=>({});function Cl(t,r){t&1&&T(0)}function wl(t,r){t&1&&T(0)}function vl(t,r){t&1&&T(0)}function Sl(t,r){if(t&1&&p(0,vl,1,0,"ng-container",14),t&2){let e=r.$implicit,o=r.options;m(2);let i=Y(11);a("ngTemplateOutlet",i)("ngTemplateOutletContext",te(2,ai,e,o))}}function xl(t,r){t&1&&T(0)}function Il(t,r){if(t&1&&p(0,xl,1,0,"ng-container",14),t&2){let e=r.options,o=m(3);a("ngTemplateOutlet",o.tt.loaderTemplate||o.tt._loaderTemplate)("ngTemplateOutletContext",P(2,_l,e))}}function El(t,r){t&1&&(q(0),p(1,Il,1,4,"ng-template",null,5,x),W())}function kl(t,r){if(t&1){let e=D();d(0,"p-scroller",19,3),k("onLazyLoad",function(i){L(e);let l=m();return M(l.tt.onLazyItemLoad(i))}),p(2,Sl,1,5,"ng-template",null,4,x)(4,El,3,0,"ng-container",17),h()}if(t&2){let e=m();Z(P(8,bl,e.tt.scrollHeight!=="flex"?e.tt.scrollHeight:void 0)),a("items",e.tt.serializedValue)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.tt.virtualScrollItemSize||e.tt._virtualRowHeight)("lazy",e.tt.lazy)("options",e.tt.virtualScrollOptions),s(4),a("ngIf",e.tt.loaderTemplate||e.tt._loaderTemplate)}}function zl(t,r){t&1&&T(0)}function Ll(t,r){if(t&1&&(q(0),d(1,"div",20,6),p(3,zl,1,0,"ng-container",14),h(),W()),t&2){let e=m(),o=Y(11);s(),a("ngStyle",te(3,yl,e.tt.scrollHeight!=="flex"?e.scrollHeight:void 0,!e.frozen&&e.tt.scrollHeight?"scroll":void 0)),s(2),a("ngTemplateOutlet",o)("ngTemplateOutletContext",te(7,ai,e.serializedValue,ee(6,Tl)))}}function Ml(t,r){t&1&&T(0)}function Rl(t,r){t&1&&I(0,"div",24,8)}function Dl(t,r){if(t&1&&(d(0,"table",21,7),p(2,Ml,1,0,"ng-container",14),I(3,"tbody",22),h(),p(4,Rl,2,0,"div",23)),t&2){let e=r.$implicit,o=r.options,i=m();Z(o.contentStyle),j(i.tt.tableStyleClass),a("ngClass",o.contentStyleClass)("ngStyle",i.tt.tableStyle),s(2),a("ngTemplateOutlet",i.frozen?i.tt.frozenColGroupTemplate||i.tt._frozenColGroupTemplate||i.tt.colGroupTemplate||i.tt._colGroupTemplate:i.tt.colGroupTemplate||i.tt._colGroupTemplate)("ngTemplateOutletContext",P(13,K,i.columns)),s(),a("pTreeTableBody",i.columns)("pTreeTableBodyTemplate",i.frozen?i.tt.frozenBodyTemplate||i.tt._frozenBodyTemplate||i.tt.bodyTemplate||i.tt._bodyTemplate:i.tt.bodyTemplate||i.tt._bodyTemplate)("serializedNodes",e)("frozen",i.frozen),s(),a("ngIf",i.frozen)}}function Pl(t,r){t&1&&T(0)}function Vl(t,r){t&1&&T(0)}function Nl(t,r){if(t&1&&(d(0,"div",25,9)(2,"div",26,10)(4,"table",27),p(5,Pl,1,0,"ng-container",14),d(6,"tfoot",28),p(7,Vl,1,0,"ng-container",14),h()()()()),t&2){let e=m();s(4),a("ngClass",e.tt.tableStyleClass)("ngStyle",e.tt.tableStyle),s(),a("ngTemplateOutlet",e.frozen?e.tt.frozenColGroupTemplate||e.tt._frozenColGroupTemplate||e.tt.colGroupTemplate||e.tt._colGroupTemplate:e.tt.colGroupTemplate||e.tt._colGroupTemplate)("ngTemplateOutletContext",P(6,K,e.columns)),s(2),a("ngTemplateOutlet",e.frozen?e.tt.frozenFooterTemplate||e.tt._frozenFooterTemplate||e.tt.footerTemplate||e.tt._footerTemplate:e.tt.footerTemplate||e.tt._footerTemplate)("ngTemplateOutletContext",P(8,K,e.columns))}}function Ol(t,r){t&1&&I(0,"ChevronDownIcon"),t&2&&ne("aria-hidden",!0)}function Fl(t,r){t&1&&I(0,"ChevronRightIcon"),t&2&&ne("aria-hidden",!0)}function Hl(t,r){if(t&1&&(q(0),p(1,Ol,1,1,"ChevronDownIcon",1)(2,Fl,1,1,"ChevronRightIcon",1),W()),t&2){let e=m();s(),a("ngIf",e.rowNode.node.expanded),s(),a("ngIf",!e.rowNode.node.expanded)}}function Al(t,r){}function Bl(t,r){t&1&&p(0,Al,0,0,"ng-template")}var Kl=({dt:t})=>`
|
|
1
|
+
import{a as Yt,b as ei,c as ti,d as ii,e as oi,f as li}from"./chunk-X6KL7VKV.js";import{a as Zt,b as gi,c as ni}from"./chunk-3O7NQ6AZ.js";import{a as kt,b as zt}from"./chunk-43JH7CKX.js";import{a as Xt}from"./chunk-YKZN6T5N.js";import{a as qe}from"./chunk-BT7Y4ADP.js";import{a as Ot}from"./chunk-5U7KZJ3H.js";import{b as Be,c as Ke,d as Rt,e as Dt,f as Pt,g as Gt,h as Jt}from"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import{a as Vt}from"./chunk-II7KELI4.js";import{c as je}from"./chunk-FTBQKOYS.js";import{a as Lt}from"./chunk-L4ENW4RK.js";import{a as qt,b as Wt}from"./chunk-FHJOSHI3.js";import{a as Qe}from"./chunk-KONCSTVQ.js";import{a as $e}from"./chunk-FMAG3RQL.js";import{e as Qt,f as Ut,i as jt}from"./chunk-JPKZVL57.js";import"./chunk-VM56C6ZV.js";import{a as At,b as Bt}from"./chunk-ISIYG4D5.js";import{a as $t}from"./chunk-FNGX2XFA.js";import{a as Mt}from"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{a as He,b as Ae,i as Ue,p as Nt,w as Ft,x as Ht,z as Kt}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{$ as de,A as Re,C as De,Da as It,Ha as be,M as wt,Ma as _e,N as Pe,Na as Fe,Q as ie,R as z,S as fe,T as Ve,Va as Et,X as vt,Y as St,Z as ce,oa as Ne,ra as xt,sa as V,ta as Oe,x as Ct,z as Me}from"./chunk-MGIEURA2.js";import{d as Tt}from"./chunk-DZCJWJUG.js";import"./chunk-VQ62YSFR.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{j as ae,l as yt,m as G,n as Le,o as se,u as me,x as ge}from"./chunk-DM2JLWKE.js";import{$b as T,$c as Q,Aa as S,Ab as rt,Ba as le,Cb as xe,Dc as pt,Eb as p,Ec as ee,Fa as Se,Fc as P,Gc as te,Ha as X,Hc as ht,I as Ye,Ic as ut,Kc as mt,La as it,Lb as ne,Mb as a,Nb as at,Oc as gt,Pb as Z,Qb as j,Qc as ft,Rb as Ie,Sb as Ee,Sc as x,Ub as ke,Vb as ze,Wb as d,Wc as bt,Xb as h,Yb as I,Zb as q,_ as Ce,_b as W,_c as w,ac as D,ca as we,cd as _t,da as et,fc as k,g as J,gb as ot,gc as m,ia as A,ib as s,lc as _,m as Ze,mc as E,nb as lt,nc as g,ob as N,oc as f,pa as tt,qa as L,ra as M,rc as Y,sc as b,tc as B,ua as ve,uc as re,xc as st,yb as U,yc as ct,zb as nt,zc as dt}from"./chunk-6QJHEOXN.js";import{a as $,b as ue,e as mi}from"./chunk-YQFG5XE2.js";var _i=["colgroup"],yi=["caption"],Ti=["header"],Ci=["body"],wi=["footer"],vi=["summary"],Si=["emptymessage"],xi=["paginatorleft"],Ii=["paginatorright"],Ei=["paginatordropdownitem"],ki=["frozenheader"],zi=["frozenbody"],Li=["frozenfooter"],Mi=["frozencolgroup"],Ri=["loadingicon"],Di=["reorderindicatorupicon"],Pi=["reorderindicatordownicon"],Vi=["sorticon"],Ni=["checkboxicon"],Oi=["headercheckboxicon"],Fi=["togglericon"],Hi=["paginatorfirstpagelinkicon"],Ai=["paginatorlastpagelinkicon"],Bi=["paginatorpreviouspagelinkicon"],Ki=["paginatornextpagelinkicon"],$i=["loader"],Qi=["container"],Ui=["resizeHelper"],ji=["reorderIndicatorUp"],qi=["reorderIndicatorDown"],Wi=["table"],Gi=["scrollableView"],Ji=["scrollableFrozenView"],Xi=(t,r,e,o,i,l)=>({"p-treetable p-component":!0,"p-treetable-gridlines":t,"p-treetable-hoverable-rows":r,"p-treetable-auto-layout":e,"p-treetable-resizable":o,"p-treetable-resizable-fit":i,"p-treetable-flex-scrollable":l}),K=t=>({$implicit:t}),Zi=(t,r)=>({left:t,width:r}),Yi=t=>({width:t});function eo(t,r){if(t&1&&I(0,"i"),t&2){let e=m(2);j("p-treetable-loading-icon pi-spin "+e.loadingIcon)}}function to(t,r){t&1&&I(0,"SpinnerIcon",24),t&2&&a("spin",!0)("styleClass","p-treetable-loading-icon")}function io(t,r){}function oo(t,r){t&1&&p(0,io,0,0,"ng-template")}function lo(t,r){if(t&1&&(d(0,"span",25),p(1,oo,1,0,null,26),h()),t&2){let e=m(3);s(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function no(t,r){if(t&1&&(q(0),p(1,to,1,2,"SpinnerIcon",22)(2,lo,2,1,"span",23),W()),t&2){let e=m(2);s(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function ro(t,r){if(t&1&&(d(0,"div",18)(1,"div",19),p(2,eo,1,2,"i",20)(3,no,3,2,"ng-container",21),h()()),t&2){let e=m();s(2),a("ngIf",e.loadingIcon),s(),a("ngIf",!e.loadingIcon)}}function ao(t,r){t&1&&T(0)}function so(t,r){if(t&1&&(d(0,"div",27),p(1,ao,1,0,"ng-container",26),h()),t&2){let e=m();s(),a("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function co(t,r){t&1&&T(0)}function po(t,r){if(t&1&&p(0,co,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function ho(t,r){t&1&&p(0,po,1,1,"ng-template",29)}function uo(t,r){t&1&&T(0)}function mo(t,r){if(t&1&&p(0,uo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function go(t,r){t&1&&p(0,mo,1,1,"ng-template",30)}function fo(t,r){t&1&&T(0)}function bo(t,r){if(t&1&&p(0,fo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function _o(t,r){t&1&&p(0,bo,1,1,"ng-template",31)}function yo(t,r){t&1&&T(0)}function To(t,r){if(t&1&&p(0,yo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Co(t,r){t&1&&p(0,To,1,1,"ng-template",32)}function wo(t,r){if(t&1){let e=D();d(0,"p-paginator",28),k("onPageChange",function(i){L(e);let l=m();return M(l.onPageChange(i))}),p(1,ho,1,0,null,21)(2,go,1,0,null,21)(3,_o,1,0,null,21)(4,Co,1,0,null,21),h()}if(t&2){let e,o,i,l=m();a("rows",l.rows)("first",l.first)("totalRecords",l.totalRecords)("pageLinkSize",l.pageLinks)("alwaysShow",l.alwaysShowPaginator)("rowsPerPageOptions",l.rowsPerPageOptions)("templateLeft",(e=l.paginatorLeftTemplate)!==null&&e!==void 0?e:l._paginatorLeftTemplate)("templateRight",(o=l.paginatorRightTemplate)!==null&&o!==void 0?o:l._paginatorRightTemplate)("dropdownAppendTo",l.paginatorDropdownAppendTo)("currentPageReportTemplate",l.currentPageReportTemplate)("showFirstLastIcon",l.showFirstLastIcon)("dropdownItemTemplate",(i=l.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:l._paginatorDropdownItemTemplate)("showCurrentPageReport",l.showCurrentPageReport)("showJumpToPageDropdown",l.showJumpToPageDropdown)("showPageLinks",l.showPageLinks)("styleClass",l.paginatorStyleClass)("locale",l.paginatorLocale),s(),a("ngIf",l.paginatorFirstPageLinkIconTemplate||l._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",l.paginatorPreviousPageLinkIconTemplate||l._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",l.paginatorLastPageLinkIconTemplate||l._paginatorLastPageLinkIconTemplate),s(),a("ngIf",l.paginatorNextPageLinkIconTemplate||l._paginatorNextPageLinkIconTemplate)}}function vo(t,r){t&1&&T(0)}function So(t,r){t&1&&T(0)}function xo(t,r){t&1&&T(0)}function Io(t,r){if(t&1&&(d(0,"div",33)(1,"table",34,1),p(3,vo,1,0,"ng-container",35),d(4,"thead",36),p(5,So,1,0,"ng-container",35),h(),I(6,"tbody",37),d(7,"tfoot",38),p(8,xo,1,0,"ng-container",35),h()()()),t&2){let e,o=m();s(),a("ngClass",o.tableStyleClass)("ngStyle",o.tableStyle),s(2),a("ngTemplateOutlet",o.colGroupTemplate||o._colGroupTemplate)("ngTemplateOutletContext",P(10,K,o.columns)),s(2),a("ngTemplateOutlet",o.headerTemplate||o._headerTemplate)("ngTemplateOutletContext",P(12,K,o.columns)),s(),a("pTreeTableBody",o.columns)("pTreeTableBodyTemplate",(e=o.bodyTemplate)!==null&&e!==void 0?e:o._bodyTemplate),s(2),a("ngTemplateOutlet",o.footerTemplate||o._footerTemplate)("ngTemplateOutletContext",P(14,K,o.columns))}}function Eo(t,r){if(t&1&&I(0,"div",42,3),t&2){let e=m(2);a("ttScrollableView",e.frozenColumns)("frozen",!0)("ngStyle",P(4,Yi,e.frozenWidth))("scrollHeight",e.scrollHeight)}}function ko(t,r){if(t&1&&(d(0,"div",39),p(1,Eo,2,6,"div",40),I(2,"div",41,2),h()),t&2){let e=m();s(),a("ngIf",e.frozenColumns||e.frozenBodyTemplate||e._frozenBodyTemplate),s(),a("ttScrollableView",e.columns)("frozen",!1)("scrollHeight",e.scrollHeight)("ngStyle",te(5,Zi,e.frozenWidth,"calc(100% - "+e.frozenWidth+")"))}}function zo(t,r){t&1&&T(0)}function Lo(t,r){if(t&1&&p(0,zo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function Mo(t,r){t&1&&p(0,Lo,1,1,"ng-template",29)}function Ro(t,r){t&1&&T(0)}function Do(t,r){if(t&1&&p(0,Ro,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function Po(t,r){t&1&&p(0,Do,1,1,"ng-template",30)}function Vo(t,r){t&1&&T(0)}function No(t,r){if(t&1&&p(0,Vo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function Oo(t,r){t&1&&p(0,No,1,1,"ng-template",31)}function Fo(t,r){t&1&&T(0)}function Ho(t,r){if(t&1&&p(0,Fo,1,0,"ng-container",26),t&2){let e=m(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Ao(t,r){t&1&&p(0,Ho,1,1,"ng-template",32)}function Bo(t,r){if(t&1){let e=D();d(0,"p-paginator",43),k("onPageChange",function(i){L(e);let l=m();return M(l.onPageChange(i))}),p(1,Mo,1,0,null,21)(2,Po,1,0,null,21)(3,Oo,1,0,null,21)(4,Ao,1,0,null,21),h()}if(t&2){let e,o,i,l=m();a("rows",l.rows)("first",l.first)("totalRecords",l.totalRecords)("pageLinkSize",l.pageLinks)("alwaysShow",l.alwaysShowPaginator)("rowsPerPageOptions",l.rowsPerPageOptions)("templateLeft",(e=l.paginatorLeftTemplate)!==null&&e!==void 0?e:l._paginatorLeftTemplate)("templateRight",(o=l.paginatorRightTemplate)!==null&&o!==void 0?o:l._paginatorRightTemplate)("dropdownAppendTo",l.paginatorDropdownAppendTo)("currentPageReportTemplate",l.currentPageReportTemplate)("showFirstLastIcon",l.showFirstLastIcon)("dropdownItemTemplate",(i=l.paginatorDropdownItemTemplate)!==null&&i!==void 0?i:l._paginatorDropdownItemTemplate)("showCurrentPageReport",l.showCurrentPageReport)("showJumpToPageDropdown",l.showJumpToPageDropdown)("showPageLinks",l.showPageLinks)("styleClass",l.paginatorStyleClass)("locale",l.paginatorLocale),s(),a("ngIf",l.paginatorFirstPageLinkIconTemplate||l._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",l.paginatorPreviousPageLinkIconTemplate||l._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",l.paginatorLastPageLinkIconTemplate||l._paginatorLastPageLinkIconTemplate),s(),a("ngIf",l.paginatorNextPageLinkIconTemplate||l._paginatorNextPageLinkIconTemplate)}}function Ko(t,r){t&1&&T(0)}function $o(t,r){if(t&1&&(d(0,"div",44),p(1,Ko,1,0,"ng-container",26),h()),t&2){let e=m();s(),a("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function Qo(t,r){t&1&&I(0,"div",45,4)}function Uo(t,r){t&1&&I(0,"ArrowDownIcon")}function jo(t,r){}function qo(t,r){t&1&&p(0,jo,0,0,"ng-template")}function Wo(t,r){if(t&1&&(d(0,"span",46,5),p(2,Uo,1,0,"ArrowDownIcon",21)(3,qo,1,0,null,26),h()),t&2){let e=m();s(2),a("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function Go(t,r){t&1&&I(0,"ArrowUpIcon")}function Jo(t,r){}function Xo(t,r){t&1&&p(0,Jo,0,0,"ng-template")}function Zo(t,r){if(t&1&&(d(0,"span",47,6),p(2,Go,1,0,"ArrowUpIcon",21)(3,Xo,1,0,null,26),h()),t&2){let e=m();s(2),a("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var Yo=["pTreeTableBody",""],el=(t,r,e,o)=>({$implicit:t,node:r,rowData:e,columns:o}),tl=(t,r)=>({$implicit:t,frozen:r});function il(t,r){t&1&&T(0)}function ol(t,r){if(t&1&&(q(0),p(1,il,1,0,"ng-container",2),W()),t&2){let e=m().$implicit,o=m();s(),a("ngTemplateOutlet",o.template)("ngTemplateOutletContext",ut(2,el,e,e.node,e.node.data,o.columns))}}function ll(t,r){if(t&1&&p(0,ol,2,7,"ng-container",1),t&2){let e=r.$implicit;a("ngIf",e.visible)}}function nl(t,r){t&1&&T(0)}function rl(t,r){if(t&1&&(q(0),p(1,nl,1,0,"ng-container",2),W()),t&2){let e=m();s(),a("ngTemplateOutlet",e.tt.emptyMessageTemplate)("ngTemplateOutletContext",te(2,tl,e.columns,e.frozen))}}var al=["scrollHeader"],sl=["scrollHeaderBox"],cl=["scrollBody"],dl=["scrollTable"],pl=["loadingTable"],hl=["scrollFooter"],ul=["scrollFooterBox"],ml=["scrollableAligner"],gl=["scroller"],fl=["ttScrollableView",""],bl=t=>({height:t}),ai=(t,r)=>({$implicit:t,options:r}),_l=t=>({options:t}),yl=(t,r)=>({"max-height":t,"overflow-y":r}),Tl=()=>({});function Cl(t,r){t&1&&T(0)}function wl(t,r){t&1&&T(0)}function vl(t,r){t&1&&T(0)}function Sl(t,r){if(t&1&&p(0,vl,1,0,"ng-container",14),t&2){let e=r.$implicit,o=r.options;m(2);let i=Y(11);a("ngTemplateOutlet",i)("ngTemplateOutletContext",te(2,ai,e,o))}}function xl(t,r){t&1&&T(0)}function Il(t,r){if(t&1&&p(0,xl,1,0,"ng-container",14),t&2){let e=r.options,o=m(3);a("ngTemplateOutlet",o.tt.loaderTemplate||o.tt._loaderTemplate)("ngTemplateOutletContext",P(2,_l,e))}}function El(t,r){t&1&&(q(0),p(1,Il,1,4,"ng-template",null,5,x),W())}function kl(t,r){if(t&1){let e=D();d(0,"p-scroller",19,3),k("onLazyLoad",function(i){L(e);let l=m();return M(l.tt.onLazyItemLoad(i))}),p(2,Sl,1,5,"ng-template",null,4,x)(4,El,3,0,"ng-container",17),h()}if(t&2){let e=m();Z(P(8,bl,e.tt.scrollHeight!=="flex"?e.tt.scrollHeight:void 0)),a("items",e.tt.serializedValue)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.tt.virtualScrollItemSize||e.tt._virtualRowHeight)("lazy",e.tt.lazy)("options",e.tt.virtualScrollOptions),s(4),a("ngIf",e.tt.loaderTemplate||e.tt._loaderTemplate)}}function zl(t,r){t&1&&T(0)}function Ll(t,r){if(t&1&&(q(0),d(1,"div",20,6),p(3,zl,1,0,"ng-container",14),h(),W()),t&2){let e=m(),o=Y(11);s(),a("ngStyle",te(3,yl,e.tt.scrollHeight!=="flex"?e.scrollHeight:void 0,!e.frozen&&e.tt.scrollHeight?"scroll":void 0)),s(2),a("ngTemplateOutlet",o)("ngTemplateOutletContext",te(7,ai,e.serializedValue,ee(6,Tl)))}}function Ml(t,r){t&1&&T(0)}function Rl(t,r){t&1&&I(0,"div",24,8)}function Dl(t,r){if(t&1&&(d(0,"table",21,7),p(2,Ml,1,0,"ng-container",14),I(3,"tbody",22),h(),p(4,Rl,2,0,"div",23)),t&2){let e=r.$implicit,o=r.options,i=m();Z(o.contentStyle),j(i.tt.tableStyleClass),a("ngClass",o.contentStyleClass)("ngStyle",i.tt.tableStyle),s(2),a("ngTemplateOutlet",i.frozen?i.tt.frozenColGroupTemplate||i.tt._frozenColGroupTemplate||i.tt.colGroupTemplate||i.tt._colGroupTemplate:i.tt.colGroupTemplate||i.tt._colGroupTemplate)("ngTemplateOutletContext",P(13,K,i.columns)),s(),a("pTreeTableBody",i.columns)("pTreeTableBodyTemplate",i.frozen?i.tt.frozenBodyTemplate||i.tt._frozenBodyTemplate||i.tt.bodyTemplate||i.tt._bodyTemplate:i.tt.bodyTemplate||i.tt._bodyTemplate)("serializedNodes",e)("frozen",i.frozen),s(),a("ngIf",i.frozen)}}function Pl(t,r){t&1&&T(0)}function Vl(t,r){t&1&&T(0)}function Nl(t,r){if(t&1&&(d(0,"div",25,9)(2,"div",26,10)(4,"table",27),p(5,Pl,1,0,"ng-container",14),d(6,"tfoot",28),p(7,Vl,1,0,"ng-container",14),h()()()()),t&2){let e=m();s(4),a("ngClass",e.tt.tableStyleClass)("ngStyle",e.tt.tableStyle),s(),a("ngTemplateOutlet",e.frozen?e.tt.frozenColGroupTemplate||e.tt._frozenColGroupTemplate||e.tt.colGroupTemplate||e.tt._colGroupTemplate:e.tt.colGroupTemplate||e.tt._colGroupTemplate)("ngTemplateOutletContext",P(6,K,e.columns)),s(2),a("ngTemplateOutlet",e.frozen?e.tt.frozenFooterTemplate||e.tt._frozenFooterTemplate||e.tt.footerTemplate||e.tt._footerTemplate:e.tt.footerTemplate||e.tt._footerTemplate)("ngTemplateOutletContext",P(8,K,e.columns))}}function Ol(t,r){t&1&&I(0,"ChevronDownIcon"),t&2&&ne("aria-hidden",!0)}function Fl(t,r){t&1&&I(0,"ChevronRightIcon"),t&2&&ne("aria-hidden",!0)}function Hl(t,r){if(t&1&&(q(0),p(1,Ol,1,1,"ChevronDownIcon",1)(2,Fl,1,1,"ChevronRightIcon",1),W()),t&2){let e=m();s(),a("ngIf",e.rowNode.node.expanded),s(),a("ngIf",!e.rowNode.node.expanded)}}function Al(t,r){}function Bl(t,r){t&1&&p(0,Al,0,0,"ng-template")}var Kl=({dt:t})=>`
|
|
2
2
|
/* For PrimeNG */
|
|
3
3
|
.p-treetable {
|
|
4
4
|
position: relative;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YQFG5XE2.js";var t=[{path:"",redirectTo:"tax-account",pathMatch:"full"},{path:"tax-account",loadComponent:()=>import("./chunk-BT4SLG45.js").then(o=>o.TaxAccountComponent)},{path:"chart-of-account",loadComponent:()=>import("./chunk-5XVZW6BJ.js").then(o=>o.ChartOfAccountComponent)},{path:"manual-journal",loadComponent:()=>import("./chunk-HYOAHRKW.js").then(o=>o.ManualJournalComponent)},{path:"payment-account",loadComponent:()=>import("./chunk-QXE4YYQV.js").then(o=>o.PaymentAccountComponent)},{path:"writeoff-outlet",loadComponent:()=>import("./chunk-J346SEEU.js").then(o=>o.WriteOffOutletComponent)},{path:"expense-account",loadComponent:()=>import("./chunk-ELZ5FFFM.js").then(o=>o.ExpenseAccountComponent)},{path:"coa-configuration",loadComponent:()=>import("./chunk-3RODMLL2.js").then(o=>o.CoaConfigurationComponent)},{path:"coa-category",loadComponent:()=>import("./chunk-VABCBO2E.js").then(o=>o.CoaCategoryComponent)},{path:"outlet-account",loadComponent:()=>import("./chunk-GEYRJ2MR.js").then(o=>o.OutletAccountComponent)}];export{t as MIGRATE_ROUTES};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ce,b as Et}from"./chunk-
|
|
1
|
+
import{a as ce,b as Et}from"./chunk-SOD2BIQR.js";import{f as kt}from"./chunk-TAN6GLIH.js";import"./chunk-GIRWHO6Q.js";import{b as Vt}from"./chunk-YHLRDTIS.js";import{m as Ke}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as Oe,b as ve}from"./chunk-3VQUNDVT.js";import{b as xt,g as It,h as Tt,i as St}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import{a as st}from"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import{a as wt}from"./chunk-OW2ND5HU.js";import{a as Ct}from"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import{a as lt}from"./chunk-FMAG3RQL.js";import{i as vt}from"./chunk-JPKZVL57.js";import{a as ct}from"./chunk-VM56C6ZV.js";import{a as ht,b as mt}from"./chunk-ISIYG4D5.js";import{b as A,c as ft,d as gt,e as _t,f as bt,g as yt,h as Ot}from"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{a as ye,p as rt,r as pt,w as dt,x as ut}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{$ as Ze,Ba as et,E as We,Ea as tt,J as je,Ja as it,Ma as nt,N as Xe,Na as U,Oa as ot,R as Je,S as se,Va as at,Y as Ye,a as Ae,e as Be,f as He,i as ge,l as ze,m as qe,oa as le,ra as w,sa as M,ta as _e,v as Qe,wa as be,x as Ne,y as Ue}from"./chunk-MGIEURA2.js";import{d as De,e as Re}from"./chunk-DZCJWJUG.js";import"./chunk-VQ62YSFR.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{j as me,l as Ge,m as Q,n as $e,o as fe,u as N}from"./chunk-DM2JLWKE.js";import{$b as Z,$c as he,Aa as x,Cb as ue,Dc as ae,Eb as f,Ec as Me,Fc as q,Gc as Le,Ha as L,Lb as y,Mb as r,Qb as Y,Sc as T,Wb as d,Xb as u,Y as pe,Yb as S,Zb as D,_ as J,_b as R,_c as k,ac as V,ba as Ie,bd as G,c as re,ca as Te,cd as Pe,da as Se,fc as I,gc as p,ia as E,ib as c,lc as F,mc as z,nc as v,ob as de,oc as C,pa as Ve,qa as h,ra as m,rc as ee,s as xe,sc as b,tc as K,ua as ke,uc as te,wc as Fe,xc as ie,yb as H,yc as ne,zb as Ee,zc as oe}from"./chunk-6QJHEOXN.js";import{a as g,b as _}from"./chunk-YQFG5XE2.js";var Lt={data:[],count:0,meta:{filter:{pagination:1,pageSize:10,rolesID:null,text:""},options:{roles:[]}},filter:{pagination:1,pageSize:10,rolesID:null,text:""}},Ce=ft(yt(Lt),Ot("GroupStore"),gt(t=>({first:G(()=>(t.filter().pagination-1)*t.filter().pageSize+1),end:G(()=>Math.min(t.filter().pagination*t.filter().pageSize,t.count())),hasCheckedRows:G(()=>t.data().some(s=>s.checked)),checkedData:G(()=>t.data().filter(s=>s.checked).map(s=>s.id))})),bt(t=>{let s=E(ce),e={setFilter(n){A(t,i=>_(g({},i),{filter:n}))},onRowSelect(n){A(t,i=>{let o=i.data.map(a=>a.id===n.id?_(g({},a),{checked:!0}):a);return _(g({},i),{data:o})})},onRowUnselect(n){A(t,i=>{let o=i.data.map(a=>a.id===n.id?_(g({},a),{checked:!1}):a);return _(g({},i),{data:o})})},onHeaderCheckboxToggle(n){A(t,i=>{let o=i.data.map(a=>_(g({},a),{checked:n}));return _(g({},i),{data:o})})},getGroupList:Oe(re(pe(n=>s.getGroupList(n).pipe(ve(i=>{A(t,o=>_(g({},o),{data:i.data,count:i.count}))},i=>{console.error("Error fetching group list:",i)}))))),getGroupLoader:Oe(re(pe(()=>s.getGroupLoader().pipe(ve({next:n=>{let i=n.options.roles.map(o=>_(g({},o),{id:Vt()}));A(t,o=>_(g({},o),{meta:_(g({},n),{options:_(g({},n.options),{roles:i})}),filter:n.filter})),e.getGroupList(t.filter)},error:n=>{console.error("Error fetching group loader:",n)}})))))};return e}),_t(t=>({onInit:()=>{t.getGroupLoader()}})));var $t=t=>({$implicit:t});function Dt(t,s){t&1&&Z(0)}function Rt(t,s){if(t&1&&(D(0),f(1,Dt,1,0,"ng-container",8),R()),t&2){let e=p().$implicit,n=p();c(),r("ngTemplateOutlet",n.optionTemplate)("ngTemplateOutletContext",q(2,$t,e==null?null:e.option))}}function Kt(t,s){if(t&1&&(d(0,"span",9),b(1),u()),t&2){let e=p().$implicit,n=p();y("data-pc-section","text"),c(),K(n.getOptionLabelToRender(e))}}function At(t,s){t&1&&S(0,"AngleRightIcon")}function Bt(t,s){}function Ht(t,s){t&1&&f(0,Bt,0,0,"ng-template")}function zt(t,s){if(t&1&&(d(0,"span",10),f(1,At,1,0,"AngleRightIcon",11)(2,Ht,1,0,null,12),u()),t&2){let e=p(2);y("data-pc-section","groupIcon"),c(),r("ngIf",!e.groupicon),c(),r("ngTemplateOutlet",e.groupicon)}}function qt(t,s){if(t&1){let e=V();d(0,"p-cascadeselect-sub",13),I("onChange",function(i){h(e);let o=p(2);return m(o.onChange.emit(i))})("onFocusChange",function(i){h(e);let o=p(2);return m(o.onFocusChange.emit(i))})("onFocusEnterChange",function(i){h(e);let o=p(2);return m(o.onFocusEnterChange.emit(i))}),u()}if(t&2){let e=p().$implicit,n=p();r("role","group")("selectId",n.selectId)("focusedOptionId",n.focusedOptionId)("activeOptionPath",n.activeOptionPath)("options",n.getOptionGroupChildren(e))("optionLabel",n.optionLabel)("optionValue",n.optionValue)("level",n.level+1)("optionGroupLabel",n.optionGroupLabel)("optionGroupChildren",n.optionGroupChildren)("dirty",n.dirty)("optionTemplate",n.optionTemplate)}}function Qt(t,s){if(t&1){let e=V();d(0,"li",3)(1,"div",4),I("click",function(i){let o=h(e).$implicit,a=p();return m(a.onOptionClick(i,o))})("mouseenter",function(i){let o=h(e).$implicit,a=p();return m(a.onOptionMouseEnter(i,o))})("mousemove",function(i){let o=h(e).$implicit,a=p();return m(a.onOptionMouseMove(i,o))}),f(2,Rt,2,4,"ng-container",5)(3,Kt,2,2,"ng-template",null,0,T)(5,zt,3,3,"span",6),u(),f(6,qt,1,12,"p-cascadeselect-sub",7),u()}if(t&2){let e=s.$implicit,n=s.index,i=ee(4),o=p();r("ngClass",o.getItemClass(e))("id",o.getOptionId(e)),y("aria-level",o.level+1)("aria-setsize",o.options.length)("data-pc-section","item")("aria-label",o.getOptionLabelToRender(e))("aria-selected",o.isOptionGroup(e)?void 0:o.isOptionSelected(e))("aria-posinset",n+1),c(),y("data-pc-section","content"),c(),r("ngIf",o.optionTemplate)("ngIfElse",i),c(3),r("ngIf",o.isOptionGroup(e)),c(),r("ngIf",o.isOptionGroup(e)&&o.isOptionActive(e))}}var Nt=["value"],Ut=["option"],Wt=["header"],jt=["footer"],Xt=["triggericon"],Jt=["loadingicon"],Yt=["optiongroupicon"],Zt=["clearicon"],ei=["focusInput"],ti=["container"],ii=["panel"],ni=["overlay"],oi=(t,s)=>({$implicit:t,placeholder:s}),ai=t=>({"p-cascadeselect-overlay p-component":!0,"p-cascadeselect-mobile-active":t});function si(t,s){t&1&&Z(0)}function li(t,s){if(t&1&&(D(0),f(1,si,1,0,"ng-container",16),R()),t&2){let e=p();c(),r("ngTemplateOutlet",e.valueTemplate||e._valueTemplate)("ngTemplateOutletContext",Le(2,oi,e.value,e.placeholder))}}function ci(t,s){if(t&1&&b(0),t&2){let e=p();te(" ",e.label()," ")}}function ri(t,s){if(t&1){let e=V();d(0,"TimesIcon",18),I("click",function(i){h(e);let o=p(2);return m(o.clear(i))}),u()}t&2&&y("data-pc-section","clearicon")("aria-hidden",!0)}function pi(t,s){}function di(t,s){t&1&&f(0,pi,0,0,"ng-template")}function ui(t,s){if(t&1){let e=V();d(0,"span",18),I("click",function(i){h(e);let o=p(2);return m(o.clear(i))}),f(1,di,1,0,null,19),u()}if(t&2){let e=p(2);y("data-pc-section","clearicon")("aria-hidden",!0),c(),r("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function hi(t,s){if(t&1&&(D(0),f(1,ri,1,2,"TimesIcon",17)(2,ui,2,3,"span",17),R()),t&2){let e=p();c(),r("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),c(),r("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function mi(t,s){t&1&&Z(0)}function fi(t,s){if(t&1&&(D(0),f(1,mi,1,0,"ng-container",19),R()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function gi(t,s){if(t&1&&S(0,"span",22),t&2){let e=p(3);r("ngClass","p-cascadeselect-loading-icon pi-spin "+e.loadingIcon)}}function _i(t,s){t&1&&S(0,"span",23),t&2&&Y("p-cascadeselect-loading-icon pi pi-spinner pi-spin")}function bi(t,s){if(t&1&&(D(0),f(1,gi,1,1,"span",20)(2,_i,1,2,"span",21),R()),t&2){let e=p(2);c(),r("ngIf",e.loadingIcon),c(),r("ngIf",!e.loadingIcon)}}function yi(t,s){if(t&1&&(D(0),f(1,fi,2,1,"ng-container",12)(2,bi,3,2,"ng-container",12),R()),t&2){let e=p();c(),r("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),c(),r("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function Oi(t,s){t&1&&S(0,"ChevronDownIcon",26),t&2&&r("styleClass","p-cascadeselect-dropdown-icon")}function vi(t,s){}function Ci(t,s){t&1&&f(0,vi,0,0,"ng-template")}function wi(t,s){if(t&1&&(d(0,"span",27),f(1,Ci,1,0,null,19),u()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate)}}function xi(t,s){if(t&1&&f(0,Oi,1,1,"ChevronDownIcon",24)(1,wi,2,1,"span",25),t&2){let e=p();r("ngIf",!e.triggerIconTemplate&&!e._triggerIconTemplate),c(),r("ngIf",e.triggerIconTemplate||e._triggerIconTemplate)}}function Ii(t,s){}function Ti(t,s){t&1&&f(0,Ii,0,0,"ng-template")}function Si(t,s){}function Vi(t,s){t&1&&f(0,Si,0,0,"ng-template")}function ki(t,s){if(t&1){let e=V();d(0,"div",28,6),f(2,Ti,1,0,null,19),d(3,"div",29)(4,"p-cascadeselect-sub",30),I("onChange",function(i){h(e);let o=p();return m(o.onOptionClick(i))})("onFocusChange",function(i){h(e);let o=p();return m(o.onOptionMouseMove(i))})("onFocusEnterChange",function(i){h(e);let o=p();return m(o.onOptionMouseEnter(i))}),u()(),d(5,"span",14),b(6),u(),f(7,Vi,1,0,null,19),u()}if(t&2){let e=p();Y(e.panelStyleClass),r("ngClass",q(24,ai,e.queryMatches()))("ngStyle",e.panelStyle),y("data-pc-section","panel"),c(2),r("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),c(),y("data-pc-section","wrapper"),c(),r("options",e.processedOptions)("selectId",e.id)("focusedOptionId",e.focused?e.focusedOptionId:void 0)("activeOptionPath",e.activeOptionPath())("optionLabel",e.optionLabel)("optionValue",e.optionValue)("level",0)("optionTemplate",e.optionTemplate||e._optionTemplate)("groupicon",e.groupIconTemplate||e.groupIconTemplate)("optionGroupLabel",e.optionGroupLabel)("optionGroupChildren",e.optionGroupChildren)("optionDisabled",e.optionDisabled)("root",!0)("dirty",e.dirty)("role","tree"),c(2),te(" ",e.selectedMessageText," "),c(),r("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var Ei=({dt:t})=>`
|
|
2
2
|
.p-cascadeselect {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
cursor: pointer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as p}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{i as d}from"./chunk-
|
|
1
|
+
import{m as p}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{i as d}from"./chunk-JPKZVL57.js";import"./chunk-VM56C6ZV.js";import"./chunk-FNGX2XFA.js";import"./chunk-BFEM6LX7.js";import"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-VQ62YSFR.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-DM2JLWKE.js";import{Eb as l,Sc as c,Wb as t,Xb as n,Yb as m,ia as r,sc as i,yb as a}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";function f(e,u){e&1&&(t(0,"div",2),m(1,"img",3),t(2,"h1",4),i(3,"You are not authorized"),n(),t(4,"p",5),i(5," This page require "),t(6,"span",6),i(7,"Journal"),n(),i(8," role. Please contact your Administrator to gain access! "),n()())}var y=(()=>{class e{constructor(){this.roleService=r(p)}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=a({type:e,selectors:[["app-forbidden"]],decls:3,vars:0,consts:[["content",""],["pageTitle","Unauthorized"],[1,"h-100","d-flex","flex-column","justify-content-center","align-items-center"],["src","https://cdn.dealpos.xyz/web-image/locked.svg","alt","Forbidden"],[1,"fs-6","fw-semibold"],[1,"fs-3"],[1,"fw-semibold"]],template:function(o,g){o&1&&(t(0,"app-main-panel",1),l(1,f,9,0,"ng-template",null,0,c),n())},dependencies:[d],encapsulation:2})}}return e})();export{y as ForbiddenComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Le,b as Ne}from"./chunk-GIRWHO6Q.js";import{b as Me}from"./chunk-JPNJTPYJ.js";import{a as Ae}from"./chunk-XKI7WLHE.js";import{a as je,b as Ve}from"./chunk-2ABEICLB.js";import"./chunk-KQZMRRMA.js";import"./chunk-ZC7ZENN7.js";import{m as pe}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as H,b as O}from"./chunk-3VQUNDVT.js";import{b as ke,g as Ie,h as Te,i as Fe}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import{a as De,b as ye}from"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import{a as y}from"./chunk-BT7Y4ADP.js";import"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as we}from"./chunk-JPKZVL57.js";import"./chunk-VM56C6ZV.js";import{a as he,b as Ee}from"./chunk-ISIYG4D5.js";import{b as h,c as Re,d as be,e as Se,f as Ce,g as ve,h as Pe}from"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as xe,x as _e}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{c as N,e as ce,f as me,m as de,p as ue,v as fe,y as ge}from"./chunk-MGIEURA2.js";import{e as ae,l as se}from"./chunk-DZCJWJUG.js";import"./chunk-VQ62YSFR.js";import{a as le}from"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{j as ee,l as te,m as ie,r as ne,s as re,u as oe}from"./chunk-DM2JLWKE.js";import{Cb as z,D as B,Dc as W,Eb as _,Ec as X,Fc as V,L as G,Mb as x,Oc as A,P as $,Pb as J,Pc as Y,Qc as Z,Rb as D,Sc as b,Wb as o,Xb as a,Y as T,Yb as E,_ as F,ac as M,bd as L,c as I,ca as q,fc as j,gc as f,ia as g,ib as m,qa as P,ra as w,s as v,sc as d,tc as R,uc as Q,yb as K}from"./chunk-6QJHEOXN.js";import{a as l,b as c}from"./chunk-YQFG5XE2.js";var k=(()=>{class e{constructor(){this.httpService=g(le)}getPostRecurringExpenseLoader(){return this.httpService.get(void 0,"api/RecurringExpenseLoader/RecurringExpensesGenerate")}previewPostRecurringExpense(t){return this.httpService.post(void 0,"api/RecurringExpense/RecurringExpensesGeneratePreview",t)}submitPostRecurringExpense(t){return this.httpService.post(void 0,"api/RecurringExpense/RecurringExpensesGenerate",t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Oe={data:{data:[]},meta:{options:{expenses:[]},form:{date:"",number:"",listIDs:[]}},filter:{date:"",number:"",listIDs:[]}},U=Re(ve(Oe),Pe("PostRecurringExpenseStore"),be(e=>({hasCheckedRows:L(()=>e.data().data.some(s=>s.checked)),checkedPRE:L(()=>e.data().data.filter(s=>s.checked))})),Ce(e=>{let s=g(k);return{updateFilter:i=>{h(e,n=>c(l({},n),{filter:l(l({},n.filter),i)}))},emptyData(){h(e,i=>c(l({},i),{data:{data:[],totalCount:0}}))},onRowSelect(i){h(e,n=>{let r=n.data.data.map(p=>p.lastExpenseDate===i.lastExpenseDate?c(l({},p),{checked:!0}):p);return c(l({},n),{data:c(l({},n.data),{data:r})})})},onRowUnselect(i){h(e,n=>{let r=n.data.data.map(p=>p.lastExpenseDate===i.lastExpenseDate?c(l({},p),{checked:!1}):p);return c(l({},n),{data:c(l({},n.data),{data:r})})})},onHeaderCheckboxToggle(i){h(e,n=>{let r=n.data.data.map(p=>c(l({},p),{checked:i}));return c(l({},n),{data:c(l({},n.data),{data:r})})})},getPRELoader:H(I(T(()=>s.getPostRecurringExpenseLoader().pipe(O({next:i=>{h(e,n=>c(l({},n),{meta:i}))},error:i=>{console.error("Error fetching PRE Loader:",i)}}))))),getPREPreview:H(I(B(i=>i.date&&i.listIDs.length>0),v(i=>({Date:i.date,Number:i.number,ListIDs:i.listIDs})),T(i=>s.previewPostRecurringExpense(i).pipe(v(n=>c(l({},n),{data:n.data.map(r=>c(l({},r),{checked:!1}))})),O({next:n=>{h(e,r=>c(l({},r),{data:n}))},error:n=>{console.error("Error fetching PRE Preview:",n)}})))))}}),Se(e=>({onInit:()=>{e.getPRELoader(),e.getPREPreview(e.filter)}})));var Ue=()=>({height:"calc(100vh - 70px)"}),Be=e=>({"ng-invalid ng-dirty":e}),Ge=e=>["/pages/recurring/recurring-expense/details/",e];function $e(e,s){if(e&1){let t=M();o(0,"p-button",8),j("onClick",function(){P(t);let n=f(3);return w(n.onSubmitPRE())}),a()}}function qe(e,s){if(e&1&&_(0,$e,1,0,"p-button",7),e&2){let t=f(2);x("ngIf",t.store.hasCheckedRows())}}function Ke(e,s){if(e&1&&_(0,qe,1,1,"p-button",6),e&2){let t=f();D(t.roleService.permissions().recurring.create?0:-1)}}function ze(e,s){if(e&1&&(o(0,"div")(1,"span",20),d(2),a()()),e&2){let t=s.$implicit;m(2),R(t)}}function Je(e,s){if(e&1&&(o(0,"div"),_(1,ze,3,1,"div",19),a()),e&2){let t=f(2);m(),x("ngForOf",t.getErrors("listIDs"))}}function Qe(e,s){e&1&&(o(0,"th",21),E(1,"p-tableHeaderCheckbox"),a())}function We(e,s){if(e&1&&(o(0,"tr"),_(1,Qe,2,0,"th",21),o(2,"th"),d(3,"Name"),a(),o(4,"th"),d(5,"Date"),a(),o(6,"th"),d(7,"Asset Account"),a(),o(8,"th"),d(9,"Expense Account"),a(),o(10,"th",22),d(11,"Amount"),a()()),e&2){let t=f(2);m(),D(t.roleService.permissions().recurring.create?1:-1)}}function Xe(e,s){if(e&1&&(o(0,"td"),E(1,"p-tableCheckbox",24),a()),e&2){let t=f().$implicit;m(),x("value",t)}}function Ye(e,s){if(e&1&&(o(0,"tr"),_(1,Xe,2,1,"td"),o(2,"td")(3,"a",23),d(4),a()(),o(5,"td"),d(6),A(7,"date"),a(),o(8,"td"),d(9),a(),o(10,"td"),d(11),a(),o(12,"td",22),d(13),A(14,"number"),a()()),e&2){let t=s.$implicit,i=f(2);m(),D(i.roleService.permissions().recurring.create?1:-1),m(2),x("routerLink",V(12,Ge,t.id)),m(),Q(" ",t.name," "),m(2),R(Z(7,7,t.nextExpenseDate,"d MMM y")),m(3),R(t.paymentName),m(2),R(t.expenseName),m(2),R(Y(14,10,t.amount))}}function Ze(e,s){e&1&&(o(0,"tr")(1,"td",25)(2,"span"),d(3,"No records found."),a()()())}function et(e,s){if(e&1){let t=M();o(0,"p-panel")(1,"div",9)(2,"div",10)(3,"div",11)(4,"div",12)(5,"div",13)(6,"label",14),d(7,"Date"),a(),E(8,"p-datepicker",15),a()(),o(9,"div",12)(10,"div",13)(11,"label",14),d(12,"Recurring Expense"),a(),E(13,"p-multiselect",16),_(14,Je,2,1,"div",17),a()()()()(),E(15,"p-divider"),o(16,"p-table",18),j("onHeaderCheckboxToggle",function(n){P(t);let r=f();return w(r.onHeaderCheckboxToggle(n))})("onRowSelect",function(n){P(t);let r=f();return w(r.onRowSelect(n))})("onRowUnselect",function(n){P(t);let r=f();return w(r.onRowUnselect(n))}),_(17,We,12,1,"ng-template",null,2,b)(19,Ye,15,14,"ng-template",null,3,b)(21,Ze,4,0,"ng-template",null,4,b),a()()}if(e&2){let t=f();J(X(7,Ue)),m(),x("formGroup",t.form),m(12),x("ngClass",V(8,Be,t.isInvalid("listIDs")))("options",t.store.meta().options.expenses),m(),x("ngIf",t.isInvalid("listIDs")),m(2),x("value",t.store.data().data)}}var Gt=(()=>{class e extends Ae{constructor(){super(),this.store=g(U),this.fb=g(fe),this.dayjsService=g(Me),this.PREService=g(k),this.roleService=g(pe)}ngOnInit(){this.initForm(),this.form.valueChanges.pipe(G(300),$(),y("Form Value Changes"),v(t=>Object.entries(t).reduce((i,[n,r])=>{switch(n){case"date":typeof r=="object"&&r!==null&&!Array.isArray(r)?i[n]=this.dayjsService.from(r)?this.dayjsService.format(r):null:(typeof r=="string"||typeof r=="number"||r instanceof Date)&&!Array.isArray(r)?i[n]=r!=null?String(r):null:i[n]=null;break;default:i[n]=r===null?"":r;break}return i},{})),y("Mapped Form Value"),F(t=>{(!t.listIDs||t.listIDs.length===0)&&this.store.emptyData(),this.store.updateFilter(t)})).subscribe()}initForm(){let{date:t,listIDs:i,number:n}=this.store.filter();this.form=this.fb.group({date:this.fb.control(this.dayjsService.from(t)?this.dayjsService.from(t).toDate():this.dayjsService.now.toDate(),[N.required]),number:this.fb.control(n||""),listIDs:this.fb.control(i,[N.required])})}onRowSelect(t){this.store.onRowSelect(t.data)}onRowUnselect(t){if(Array.isArray(t.data)){t.data.forEach(i=>{this.store.onRowUnselect(i)});return}else this.store.onRowUnselect(t.data)}onHeaderCheckboxToggle(t){this.store.onHeaderCheckboxToggle(t.checked)}onSubmitPRE(){console.log(this.store.checkedPRE());let i=this.store.checkedPRE().reduce((r,p)=>(r[p.id]||(r[p.id]={ID:p.id,ListDate:[]}),r[p.id].ListDate.push(p.lastExpenseDate),r),{}),n=Object.values(i);console.log("Submitting PRE with body:",n),this.PREService.submitPostRecurringExpense(n).pipe(y("Submit Post Recurring Expense"),F(()=>{let r=this.form.getRawValue(),p=Object.entries(r).reduce((S,[C,u])=>{switch(C){case"date":typeof u=="object"&&u!==null&&!Array.isArray(u)?S[C]=this.dayjsService.from(u)?this.dayjsService.format(u):null:(typeof u=="string"||typeof u=="number"||u instanceof Date)&&!Array.isArray(u)?S[C]=u!=null?String(u):null:S[C]=null;break;default:S[C]=u===null?"":u;break}return S},{});this.store.updateFilter(p)})).subscribe()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=K({type:e,selectors:[["app-post-recurring-expense"]],features:[W([U]),z],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["emptymessage",""],["pageTitle","Post Recurring Expense",3,"scrollable"],["label","Submit"],["label","Submit",3,"onClick",4,"ngIf"],["label","Submit",3,"onClick"],[1,"row",3,"formGroup"],[1,"col-6"],[1,"row"],[1,"col"],[1,"d-flex","flex-column"],["for",""],["fluid","","formControlName","date"],["display","chip","fluid","","formControlName","listIDs","optionLabel","name","optionValue","id","placeholder","Select Recurring Expenses",3,"ngClass","options"],[4,"ngIf"],["dataKey","lastExpenseDate",3,"onHeaderCheckboxToggle","onRowSelect","onRowUnselect","value"],[4,"ngFor","ngForOf"],[1,"text-danger"],[2,"width","1rem"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink"],[3,"value"],["colspan","6"]],template:function(i,n){i&1&&(o(0,"app-main-panel",5),_(1,Ke,1,1,"ng-template",null,0,b)(3,et,23,10,"ng-template",null,1,b),a()),i&2&&x("scrollable",!0)},dependencies:[we,oe,ee,te,ie,re,ne,Ee,he,Ne,Le,ye,De,Ve,je,ge,ce,me,de,ue,Fe,ke,Ie,Te,_e,xe,se,ae],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();export{Gt as PostRecurringExpenseComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-ZOMQLK4A.js";import"./chunk-GQ7SPEZH.js";import"./chunk-WL6ZZCYW.js";import"./chunk-DZCJWJUG.js";import"./chunk-VQ62YSFR.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import"./chunk-DM2JLWKE.js";import"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var o=[{path:"",canActivate:[a],children:[{path:"",loadComponent:()=>import("./chunk-GN7VAGHH.js").then(t=>t.Dashboard1Component),data:{title:"Dashboard",headerTemplate:"header"}}]}];export{o as DashboardRoutes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-YQFG5XE2.js";var t=[{path:"",redirectTo:"users",pathMatch:"full"},{path:"",children:[{path:"users",loadComponent:()=>import("./chunk-
|
|
1
|
+
import"./chunk-YQFG5XE2.js";var t=[{path:"",redirectTo:"users",pathMatch:"full"},{path:"",children:[{path:"users",loadComponent:()=>import("./chunk-32QC4JFI.js").then(o=>o.UserPageComponent)},{path:"groups",loadComponent:()=>import("./chunk-D5WBKKO2.js").then(o=>o.GroupPageComponent)},{path:"groups/forms",loadComponent:()=>import("./chunk-R45WWOYD.js").then(o=>o.GroupFormComponent)}]}];export{t as USERS_ROUTES};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as y,b as z}from"./chunk-
|
|
1
|
+
import{a as y,b as z}from"./chunk-NTVIX4GB.js";import"./chunk-JPNJTPYJ.js";import{m as V}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as j,b as R}from"./chunk-5U7KZJ3H.js";import"./chunk-FHJOSHI3.js";import{i as q}from"./chunk-JPKZVL57.js";import"./chunk-VM56C6ZV.js";import{a as N,b as G}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as O,x as D,y as H,z as L}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-VQ62YSFR.js";import"./chunk-G3BJCT7T.js";import{a as I}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as $,u as F}from"./chunk-DM2JLWKE.js";import{Dc as P,Eb as x,Ec as b,Mb as s,Oc as c,Pb as C,Pc as l,Rb as h,Sc as S,W as M,Wb as n,Xb as o,Y as k,Yb as u,ac as v,fc as T,gc as a,h as E,ia as m,ib as r,qa as g,ra as _,s as f,sa as w,ta as A,yb as B}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var J=()=>({height:"calc(100vh - 100px)"});function K(t,d){if(t&1){let e=v();n(0,"p-button",6),T("onClick",function(){g(e);let p=a(2);return _(p.onFormat())}),o()}}function Q(t,d){if(t&1){let e=v();n(0,"p-button",7),c(1,"async"),c(2,"async"),T("onClick",function(){g(e);let p=a(2);return _(p.onMigrate())}),o()}if(t&2){let e=a(2);s("disabled",l(1,2,e.countInBooks$)!==0)("pTooltip",l(2,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function U(t,d){if(t&1&&(n(0,"div",3),x(1,K,1,0,"p-button",4)(2,Q,3,6,"p-button",5),o()),t&2){let e=a();r(),h(e.roleService.permissions().migrate.delete?1:-1),r(),h(e.roleService.permissions().migrate.create?2:-1)}}function W(t,d){if(t&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",8),u(3,"app-migration-cards",9),c(4,"async"),w(),n(5,"svg",10),u(6,"path",11),o(),A(),u(7,"app-migration-cards",12),c(8,"async"),o()()()),t&2){let e=a();C(b(12,J)),r(),C(b(13,J)),r(2),s("migrationCount",l(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),r(4),s("migrationCount",l(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var _e=(()=>{class t{constructor(){this.migrateService=m(y),this.toastr=m(I),this.refresh$=new E(void 0),this.pageTitle="Expense Account",this.roleService=m(V)}ngOnInit(){let e=this.refresh$.pipe(k(()=>this.migrateService.getExpenseAccountCount()),M(1));this.countInPOS$=e.pipe(f(i=>Number(i.pos))),this.countInBooks$=e.pipe(f(i=>Number(i.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(i=>{this.refresh$.next(),this.toastr.success(i.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=B({type:t,selectors:[["app-expense-account"]],features:[P([y])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Create","tooltipPosition","left",3,"disabled","pTooltip"],["label","Format","severity","danger",3,"onClick"],["label","Create","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(i,p){i&1&&(n(0,"app-main-panel",2),x(1,U,3,2,"ng-template",null,0,S)(3,W,9,14,"ng-template",null,1,S),o()),i&2&&s("pageTitle",p.pageTitle)},dependencies:[q,F,$,R,j,G,N,L,H,z,D,O],encapsulation:2})}}return t})();export{_e as ExpenseAccountComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as J}from"./chunk-
|
|
1
|
+
import{a as J}from"./chunk-52PEVPZN.js";import{m as A}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as G,b as H}from"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import"./chunk-FMAG3RQL.js";import{i as q}from"./chunk-JPKZVL57.js";import"./chunk-VM56C6ZV.js";import{a as Z,b as I}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as D,x as F}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{e as N,j as W,x as j}from"./chunk-MGIEURA2.js";import"./chunk-VQ62YSFR.js";import"./chunk-G3BJCT7T.js";import{a as R}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as B,u as P}from"./chunk-DM2JLWKE.js";import{Ac as E,Bc as L,Cc as g,Eb as p,Ha as x,Mb as z,Oc as V,Pc as k,Rb as v,Sc as s,W as C,Wb as n,Xb as l,_ as T,ac as f,fc as w,gc as r,ia as a,ib as S,qa as d,ra as u,sc as _,xc as y,yb as h,yc as M,zc as b}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";function K(e,c){if(e&1){let t=f();n(0,"p-button",5),w("onClick",function(){d(t);let i=r(2),m=g(0);return u(i.onSaveTimezone(m))}),l()}}function O(e,c){if(e&1&&p(0,K,1,0,"p-button",4),e&2){let t=r();v(t.roleService.permissions().accountingSetup.create||t.roleService.permissions().accountingSetup.edit?0:-1)}}function Q(e,c){e&1&&(n(0,"div",9)(1,"div",10),_(2,"Timezone Configuration"),l(),n(3,"small",11),_(4,"Set the timezone to ensure that all journals and date filtering follow this timezone"),l()())}function U(e,c){if(e&1){let t=f();n(0,"p-panel"),p(1,Q,5,0,"ng-template",null,2,s),n(3,"div",6)(4,"div",7)(5,"p-select",8),b("ngModelChange",function(i){d(t);let m=r();return M(m.selectedTimezone,i)||(m.selectedTimezone=i),u(i)}),l()()()()}if(e&2){let t=r(),o=g(0);S(5),y("ngModel",t.selectedTimezone),z("filter",!0)("fluid",!0)("options",o==null||o.options==null?null:o.options.timezones)("showClear",!0)}}var _e=(()=>{class e{constructor(){this.selectedTimezone=x(null),this.roleService=a(A),this.setupService=a(J),this.loader$=this.setupService.fetchLoaderConfiguration().pipe(T(t=>{this.selectedTimezone.set(t?.form?.timeZone||null)}),C(1)),this.toastr=a(R)}onSaveTimezone(t){let o=t.form;o.timeZone=this.selectedTimezone(),this.setupService.updateAccountingIntegrationConfiguration({form:o}).subscribe()}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=h({type:e,selectors:[["app-timezone"]],decls:7,vars:3,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Timezone"],["icon","fa-solid fa-floppy-disk","label","Save"],["icon","fa-solid fa-floppy-disk","label","Save",3,"onClick"],[1,"row"],[1,"col-6"],["appendTo","body","optionLabel","displayName","optionValue","id","placeholder","Select Timezone",3,"ngModelChange","ngModel","filter","fluid","options","showClear"],[1,"d-flex","flex-column","px-2"],[1,"mb-0","fw-normal","fs-4"],[1,"fst-italic","text-muted"]],template:function(o,i){o&1&&(E(0),V(1,"async"),n(2,"app-main-panel",3),p(3,O,1,1,"ng-template",null,0,s)(5,U,6,5,"ng-template",null,1,s),l()),o&2&&L(k(1,0,i.loader$))},dependencies:[P,B,j,N,W,q,I,Z,F,D,H,G],encapsulation:2})}}return e})();export{_e as TimezoneComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as g}from"./chunk-
|
|
1
|
+
import{a as g}from"./chunk-JBYPGHPN.js";import{f as u,g as l,h as m}from"./chunk-KL3TPLRB.js";import{I as n,_ as d,ca as b,ia as c,n as f,s as h}from"./chunk-6QJHEOXN.js";import{a as o,b as p}from"./chunk-YQFG5XE2.js";var w=(()=>{class a{constructor(){this.httpClient=c(m),this.toastr=c(g)}get(t="",e,r={}){return this.httpClient.get(`${t}${e}`,r).pipe(n(this.handleError.bind(this)))}post(t="",e,r,i={observe:"response"}){return this.httpClient.post(`${t}${e}`,r,o({},i)).pipe(d(this.handleResponse.bind(this)),h(s=>s instanceof u&&Object.prototype.hasOwnProperty.call(i,"observe")&&i.observe==="response"?s.body instanceof Blob?s:s.body:s),n(this.handleError.bind(this)))}put(t="",e,r,i={}){return this.httpClient.put(`${t}${e}`,r,p(o({},i),{observe:"response"})).pipe(d(this.handleResponse.bind(this)),h(s=>s.body),n(this.handleError.bind(this)))}delete(t="",e,r={}){return this.httpClient.delete(`${t}${e}`,p(o({},r),{observe:"response"})).pipe(d(this.handleResponse.bind(this)),h(i=>i.body),n(this.handleError.bind(this)))}handleResponse(t){if(t instanceof u&&t.status===200&&t.body){let e;typeof t.body=="object"&&t.body!==null&&(e=t.body.message||t.body.Message),typeof e=="string"&&e.length>0&&this.toastr.success(e,"Success")}}handleError(t){let e={header:"API Error",message:"An unknown error occurred"};if(t instanceof l)switch(t.status){case 0:e.message="CORS error: Request blocked or server not responding with proper CORS headers",e.header="CORS Error";break;case 504:e.message=t.statusText||"Gateway Timeout",e.header=`API Error: ${t.status}`;break;default:e.header=`API Error: ${t.status}`,e.message=t.error&&(t.error.Message||t.error.message||t.error.error)||t.message}return t instanceof l&&(t.status>=200&&t.status<300?this.toastr.success(e.message,e.header):t.status>=400&&t.status<500?this.toastr.warning(e.message,e.header):t.status>=500&&t.status<600&&this.toastr.error(e.message,e.header)),f(()=>e)}static{this.\u0275fac=function(e){return new(e||a)}}static{this.\u0275prov=b({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{w as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as y,b as J}from"./chunk-
|
|
1
|
+
import{a as y,b as J}from"./chunk-NTVIX4GB.js";import"./chunk-JPNJTPYJ.js";import{m as V}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as j,b as R}from"./chunk-5U7KZJ3H.js";import"./chunk-FHJOSHI3.js";import{i as z}from"./chunk-JPKZVL57.js";import"./chunk-VM56C6ZV.js";import{a as G,b as H}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as D,x as N,y as L,z as q}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-VQ62YSFR.js";import"./chunk-G3BJCT7T.js";import{a as I}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as F,u as E}from"./chunk-DM2JLWKE.js";import{Dc as $,Eb as C,Ec as T,Mb as p,Oc as c,Pb as h,Pc as s,Rb as x,Sc as b,W as M,Wb as o,Xb as n,Y as k,Yb as u,_ as O,ac as v,fc as S,gc as a,h as A,ia as m,ib as r,qa as g,ra as _,s as d,sa as B,ta as P,yb as w}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var K=()=>({height:"calc(100vh - 100px)"});function Q(e,f){if(e&1){let t=v();o(0,"p-button",6),S("onClick",function(){g(t);let l=a(2);return _(l.onFormat())}),n()}}function U(e,f){if(e&1){let t=v();o(0,"p-button",7),c(1,"async"),c(2,"async"),S("onClick",function(){g(t);let l=a(2);return _(l.onMigrateOutletAccount())}),n()}if(e&2){let t=a(2);p("disabled",s(1,2,t.countInBooks$)!==0)("pTooltip",s(2,4,t.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function W(e,f){if(e&1&&(o(0,"div",3),C(1,Q,1,0,"p-button",4)(2,U,3,6,"p-button",5),n()),e&2){let t=a();r(),x(t.roleService.permissions().migrate.delete?1:-1),r(),x(t.roleService.permissions().migrate.create?2:-1)}}function X(e,f){if(e&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",8),u(3,"app-migration-cards",9),c(4,"async"),B(),o(5,"svg",10),u(6,"path",11),n(),P(),u(7,"app-migration-cards",12),c(8,"async"),n()()()),e&2){let t=a();h(T(12,K)),r(),h(T(13,K)),r(2),p("migrationCount",s(4,8,t.countInPOS$))("migrationTitle",t.pageTitle),r(4),p("migrationCount",s(8,10,t.countInBooks$))("migrationTitle",t.pageTitle)}}var Ct=(()=>{class e{constructor(){this.migrateService=m(y),this.toastr=m(I),this.refresh$=new A(void 0),this.pageTitle="Outlet Account",this.roleService=m(V)}ngOnInit(){let t=this.refresh$.pipe(k(()=>this.migrateService.getOutletAccountCount()),O(i=>console.log("API response:",i)),M(1));this.countInPOS$=t.pipe(d(i=>Number(i.pos))),this.countInBooks$=t.pipe(d(i=>Number(i.books)))}onMigrateOutletAccount(){this.migrateService.migrateOutletAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatOutletAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=w({type:e,selectors:[["app-outlet-account"]],features:[$([y])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Create","tooltipPosition","left",3,"disabled","pTooltip"],["label","Format","severity","danger",3,"onClick"],["label","Create","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(i,l){i&1&&(o(0,"app-main-panel",2),C(1,W,3,2,"ng-template",null,0,b)(3,X,9,14,"ng-template",null,1,b),n()),i&2&&p("pageTitle",l.pageTitle)},dependencies:[z,E,F,N,D,R,j,H,G,q,L,J],encapsulation:2})}}return e})();export{Ct as OutletAccountComponent};
|