dealposbooks 1.9.4 → 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 +374 -374
- package/assets/scss/layouts/_sidebar.scss +2 -2
- package/assets/scss/style.scss +34 -3
- package/assets/scss/variables/_variables.scss +1 -2
- package/chunk-27SWEVDU.js +1 -0
- package/chunk-2DV653RD.js +1 -0
- package/chunk-2OECREUZ.js +1 -0
- package/{chunk-NL5IYBHF.js → chunk-32BR7AQL.js} +1 -1
- package/chunk-34XRAZFC.js +1 -0
- package/chunk-35CWG2OK.js +180 -0
- package/chunk-35KDUCM3.js +1 -0
- package/{chunk-BGDKOH3U.js → chunk-3DN7TZCI.js} +1 -1
- package/chunk-3G3QSUWH.js +1 -0
- package/chunk-3HW557B7.js +1 -0
- package/chunk-3L7IWFXM.js +527 -0
- package/chunk-3WB76KQC.js +430 -0
- package/chunk-43WCLYRX.js +1 -0
- package/chunk-46TNY5N4.js +185 -0
- package/chunk-4FGQ5T64.js +2 -0
- package/chunk-4KXSM3HP.js +1 -0
- package/chunk-4QKRWFW4.js +1 -0
- package/{chunk-AM66YD6C.js → chunk-4S33ZRKF.js} +1 -1
- package/chunk-54OPMMIM.js +1 -0
- package/chunk-6HQX2SM2.js +1 -0
- package/chunk-6TA77CRR.js +1 -0
- package/{chunk-F7TF7ASR.js → chunk-6ZZARVQO.js} +1 -1
- package/{chunk-XMZ7ADZB.js → chunk-7WXXPCRV.js} +1 -1
- package/{chunk-5QMHSLSU.js → chunk-AKMHO3LC.js} +1 -1
- package/chunk-AOSPVPK7.js +231 -0
- package/{chunk-5OU7ECCN.js → chunk-ASK2IVMC.js} +1 -1
- package/chunk-B7JILYJO.js +1 -0
- package/chunk-BNI5KUDE.js +193 -0
- package/chunk-BX3CRF44.js +1 -0
- package/{chunk-KQAMA66M.js → chunk-BYD3JK4R.js} +1 -1
- package/chunk-C4LZX33Q.js +449 -0
- package/{chunk-7TKATLB4.js → chunk-C5GEP4MM.js} +1 -1
- package/chunk-C7UZ6ZYF.js +1 -0
- package/chunk-CSMMP7XG.js +188 -0
- package/chunk-CTCQB63H.js +1 -0
- package/chunk-DCKLQNGL.js +1 -0
- package/chunk-DNK2GUDB.js +1 -0
- package/{chunk-VKO43FOT.js → chunk-DOM7WYRM.js} +1 -1
- package/chunk-ELWFWCNU.js +246 -0
- package/{chunk-5OXHRN43.js → chunk-EXVUABTO.js} +1 -1
- package/chunk-G6FJQBZZ.js +1 -0
- package/chunk-GJXWL5XV.js +1 -0
- package/chunk-GNP7WGSH.js +1 -0
- package/chunk-GTGRV7IH.js +1 -0
- package/chunk-HFFH2WIX.js +98 -0
- package/chunk-HRPP75N7.js +1 -0
- package/{chunk-7XAJOA36.js → chunk-HRQJ5DXP.js} +1 -1
- package/{chunk-XEATX3IC.js → chunk-I3HFXOYS.js} +1 -1
- package/{chunk-HDO45X7Q.js → chunk-IIB2DZLA.js} +1 -1
- package/{chunk-FCGAJLPQ.js → chunk-J2SK4PGN.js} +1 -1
- package/chunk-J77A3DFB.js +1 -0
- package/chunk-JDW35ZB5.js +47 -0
- package/chunk-JMLETF7Y.js +1 -0
- package/{chunk-56MVOUHH.js → chunk-JP3F2QND.js} +1 -1
- package/chunk-JYNZPVLW.js +1 -0
- package/chunk-K6753MGR.js +7 -0
- package/chunk-LD4G6ND6.js +130 -0
- package/{chunk-JQ4DHNFQ.js → chunk-LKZL77YR.js} +1 -1
- package/chunk-LR2DJRRL.js +79 -0
- package/chunk-LTZA6IIO.js +1 -0
- package/chunk-M7MFX6BW.js +1 -0
- package/chunk-MCDQ2TIS.js +1 -0
- package/chunk-MJVSTWYY.js +1 -0
- package/chunk-N2RYBZK7.js +1 -0
- package/{chunk-HPKZYS2A.js → chunk-N6JCA3CN.js} +2 -2
- package/chunk-NF3TF3LT.js +397 -0
- package/chunk-OEJBOFI5.js +1 -0
- package/{chunk-7PDAUPWN.js → chunk-OEOAUJY5.js} +12 -12
- package/{chunk-JRYP3YPK.js → chunk-OVCTOPAO.js} +1 -1
- package/{chunk-4FK4QI2U.js → chunk-OZACNHDP.js} +1 -1
- package/chunk-P6CJ2ONT.js +1 -0
- package/{chunk-T2A6NORZ.js → chunk-PGECEXRR.js} +1 -1
- package/{chunk-ITIRJVUS.js → chunk-QPKNYNLC.js} +2 -2
- package/chunk-RBDJZRHY.js +1 -0
- package/{chunk-25XKSUYX.js → chunk-RT5PUZ5F.js} +1 -1
- package/{chunk-ZKXT6RSI.js → chunk-TC43COAE.js} +1 -1
- package/chunk-TFV5QZKR.js +947 -0
- package/chunk-TK3G2BVM.js +222 -0
- package/{chunk-R6HGHSPM.js → chunk-TQZNJ5WF.js} +1 -1
- package/chunk-UEOO2LYA.js +82 -0
- package/chunk-WEWEITR7.js +1 -0
- package/chunk-WGZN6AN2.js +1 -0
- package/chunk-WZO2ZLBL.js +1 -0
- package/chunk-X34Y3TVX.js +1 -0
- package/chunk-XFSZDZPJ.js +1 -0
- package/chunk-XKEV5AED.js +201 -0
- package/chunk-XZGFG6E3.js +1 -0
- package/chunk-YOEPO6LK.js +959 -0
- package/{chunk-D5AXB5DE.js → chunk-YVEUYFCE.js} +2 -2
- package/chunk-ZWHB7NI7.js +1 -0
- package/index.html +2 -2
- package/main-U5PC2W2C.js +1 -0
- package/package.json +1 -1
- package/styles-GTUKYMN7.css +1 -0
- package/chunk-2TUOAI22.js +0 -1
- package/chunk-3IHOEH5O.js +0 -1
- package/chunk-3VC2KAML.js +0 -1
- package/chunk-4J3EFT67.js +0 -1
- package/chunk-6J5S4UPN.js +0 -2
- package/chunk-7GT5MR57.js +0 -1
- package/chunk-7LCGNNCW.js +0 -627
- package/chunk-7NXTCJMX.js +0 -1
- package/chunk-A3NY5EYN.js +0 -1
- package/chunk-AH5PA2TO.js +0 -1
- package/chunk-B4COOFJS.js +0 -2
- package/chunk-BJGK47CG.js +0 -1
- package/chunk-BWS6U7BM.js +0 -193
- package/chunk-D5RQBZNF.js +0 -1
- package/chunk-DELPZQZH.js +0 -246
- package/chunk-DJUGUNXR.js +0 -503
- package/chunk-DSFIM36S.js +0 -1
- package/chunk-EHCALTHK.js +0 -1
- package/chunk-FUGCJNGU.js +0 -960
- package/chunk-GMLRRSMP.js +0 -1
- package/chunk-IACJNRVA.js +0 -25
- package/chunk-IQZ2MKLS.js +0 -1
- package/chunk-IXPPR5MV.js +0 -1
- package/chunk-J3B5HVW4.js +0 -1
- package/chunk-L6VKOTIV.js +0 -180
- package/chunk-LATJGOV3.js +0 -185
- package/chunk-LLV6TGMT.js +0 -1
- package/chunk-MNCUT4L4.js +0 -1
- package/chunk-NBRL2K4H.js +0 -1
- package/chunk-NDOZ5YES.js +0 -1
- package/chunk-SCEMI63T.js +0 -1
- package/chunk-SDTMCYSJ.js +0 -1
- package/chunk-TDX2HSWE.js +0 -1
- package/chunk-UHVZAFKN.js +0 -1
- package/chunk-UMYCPFK5.js +0 -1660
- package/chunk-UOAJWMSO.js +0 -1
- package/chunk-UZCNPNT7.js +0 -2
- package/chunk-VF7TG32T.js +0 -47
- package/chunk-VI3AV775.js +0 -1
- package/chunk-VK5TK23W.js +0 -7
- package/chunk-VNHXLUHA.js +0 -1
- package/chunk-W6UD5NO5.js +0 -2
- package/chunk-WUGCCSIP.js +0 -1
- package/chunk-X234EQET.js +0 -129
- package/chunk-X3FQFXUZ.js +0 -300
- package/chunk-XJ5BSLZV.js +0 -1
- package/chunk-YAKYBQQ6.js +0 -1
- package/chunk-YQRWSN5V.js +0 -1
- package/main-VQYYYR67.js +0 -1
- package/styles-IDKYTRGA.css +0 -1
package/chunk-UOAJWMSO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./chunk-GMLRRSMP.js";import{E as i}from"./chunk-KQAMA66M.js";import{ha as t}from"./chunk-D5AXB5DE.js";var d=(e,r)=>{let o=t(n),u=t(i);return console.log("Auth Guard activated",e),console.log("Auth Guard activated",r),!o.isAuthenticated()||o.isTokenExpired()?(console.warn("User is not authenticated or token is expired",e,r),u.navigate(["authentication/login"],{queryParams:{returnUrl:r.url}}),!1):!0};export{d as a};
|
package/chunk-UZCNPNT7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ub as e,Vb as t,Wb as o,pc as r,wb as m}from"./chunk-D5AXB5DE.js";import"./chunk-YQFG5XE2.js";var c=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=m({type:n,selectors:[["app-lock"]],decls:18,vars:0,consts:[[1,"auth-wrapper","d-flex","no-block","justify-content-center","align-items-center",2,"background",`url(../../../../../assets/images/background/login-register.jpg)
|
|
2
|
-
no-repeat center center`],[1,"auth-box"],[1,"text-center"],[1,"db"],["alt","thumbnail","width","100","src","../../../../../assets/images/users/user1.jpg",1,"rounded-circle"],[1,"font-medium","mb-4","mt-1"],[1,"row"],[1,"col-12"],["action","../../../../../index.html",1,"form-horizontal","mt-3"],[1,"mb-3","row"],["type","password","required","","placeholder","Password",1,"form-control","form-control-lg"],[1,"col-xs-12"],["type","submit",1,"btn","d-block","w-100","btn-primary"]],template:function(i,l){i&1&&(e(0,"div",0)(1,"div",1)(2,"div")(3,"div",2)(4,"span",3),o(5,"img",4),t(),e(6,"h5",5),r(7,"Genelia"),t()(),e(8,"div",6)(9,"div",7)(10,"form",8)(11,"div",9)(12,"div",7),o(13,"input",10),t()(),e(14,"div",2)(15,"div",11)(16,"button",12),r(17," LOGIN "),t()()()()()()()()())},encapsulation:2})}}return n})();export{c as LockComponent};
|
package/chunk-VF7TG32T.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import{E as ce,F as se,i as pe,p as j}from"./chunk-FUGCJNGU.js";import{Ea as $,La as ae,Ma as le,Na as A,Va as re}from"./chunk-BWS6U7BM.js";import{c as oe,d as D,f as Q,g as O,h as H}from"./chunk-F2X3VGZZ.js";import{c as Y,f as ee,g as te,h as ne,m as ie}from"./chunk-KQAMA66M.js";import{Ab as C,Ac as J,Bc as U,Cb as c,Jb as u,Kb as o,Lc as X,Ob as h,Ub as s,Uc as V,Vb as _,Wb as g,Xb as k,Yb as F,Zb as M,_b as E,ba as q,ca as N,dc as S,ec as d,fc as L,gb as l,gc as B,ha as R,ic as b,jc as G,kc as m,lc as f,pa as I,pc as K,qa as x,qc as Z,ra as w,ta as y,wb as v,xb as W,xc as z,za as P,zc as T}from"./chunk-D5AXB5DE.js";var _e=(()=>{class e extends j{static \u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})();static \u0275cmp=v({type:e,selectors:[["MinusIcon"]],features:[C],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(i,n){i&1&&(w(),s(0,"svg",0),g(1,"path",1),_()),i&2&&(h(n.getClassNames()),u("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return e})();var ue=(()=>{class e extends j{pathId;ngOnInit(){this.pathId="url(#"+$()+")"}static \u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})();static \u0275cmp=v({type:e,selectors:[["PlusIcon"]],features:[C],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(w(),s(0,"svg",0)(1,"g"),g(2,"path",1),_(),s(3,"defs")(4,"clipPath",2),g(5,"rect",3),_()()()),i&2&&(h(n.getClassNames()),u("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),l(),u("clip-path",n.pathId),l(3),o("id",n.pathId))},encapsulation:2})}return e})();var fe=["header"],he=["icons"],be=["content"],ye=["footer"],ve=["headericons"],Ce=["contentWrapper"],Te=["*",[["p-header"]],[["p-footer"]]],Ie=["*","p-header","p-footer"],xe=(e,a)=>({"p-panel p-component":!0,"p-panel-toggleable":e,"p-panel-expanded":a}),we=e=>({transitionParams:e,height:"0",opacity:"0"}),Pe=e=>({value:"hidden",params:e}),ke=e=>({transitionParams:e,height:"*",opacity:"1"}),Fe=e=>({value:"visible",params:e}),Me=(e,a,t)=>({"p-panel-icons-start":e,"p-panel-icons-end":a,"p-panel-icons-center":t}),Ee=e=>({$implicit:e});function Se(e,a){if(e&1&&(s(0,"span",12),K(1),_()),e&2){let t=d(2);u("id",t.id+"_header"),l(),Z(t._header)}}function Be(e,a){e&1&&M(0)}function Ve(e,a){}function De(e,a){e&1&&c(0,Ve,0,0,"ng-template")}function Qe(e,a){if(e&1&&g(0,"span"),e&2){let t=d(6);h(t.expandIcon)}}function Oe(e,a){e&1&&g(0,"MinusIcon")}function He(e,a){if(e&1&&(k(0),c(1,Qe,1,2,"span",16)(2,Oe,1,0,"MinusIcon",14),F()),e&2){let t=d(5);l(),o("ngIf",t.expandIcon),l(),o("ngIf",!t.expandIcon)}}function $e(e,a){if(e&1&&g(0,"span"),e&2){let t=d(6);h(t.collapseIcon)}}function Ae(e,a){e&1&&g(0,"PlusIcon")}function je(e,a){if(e&1&&(k(0),c(1,$e,1,2,"span",16)(2,Ae,1,0,"PlusIcon",14),F()),e&2){let t=d(5);l(),o("ngIf",t.collapseIcon),l(),o("ngIf",!t.collapseIcon)}}function qe(e,a){if(e&1&&(k(0),c(1,He,3,2,"ng-container",14)(2,je,3,2,"ng-container",14),F()),e&2){let t=d(4);l(),o("ngIf",!t.collapsed),l(),o("ngIf",t.collapsed)}}function Ne(e,a){}function Re(e,a){e&1&&c(0,Ne,0,0,"ng-template")}function We(e,a){if(e&1&&c(0,qe,3,2,"ng-container",14)(1,Re,1,0,null,15),e&2){let t=d(3);o("ngIf",!t.headerIconsTemplate&&!t._headerIconsTemplate&&!(t.toggleButtonProps!=null&&t.toggleButtonProps.icon)),l(),o("ngTemplateOutlet",t.headerIconsTemplate||t._headerIconsTemplate)("ngTemplateOutletContext",T(3,Ee,t.collapsed))}}function Le(e,a){if(e&1){let t=E();s(0,"p-button",13),S("click",function(n){I(t);let r=d(2);return x(r.onIconClick(n))})("keydown",function(n){I(t);let r=d(2);return x(r.onKeyDown(n))}),c(1,We,2,5,"ng-template",null,1,X),_()}if(e&2){let t=d(2);o("text",!0)("rounded",!0)("buttonProps",t.toggleButtonProps),u("id",t.id+"_header")("aria-label",t.buttonAriaLabel)("aria-controls",t.id+"_content")("aria-expanded",!t.collapsed)}}function Ge(e,a){if(e&1){let t=E();s(0,"div",8),S("click",function(n){I(t);let r=d();return x(r.onHeaderClick(n))}),c(1,Se,2,2,"span",9),B(2,1),c(3,Be,1,0,"ng-container",6),s(4,"div",10),c(5,De,1,0,null,6)(6,Le,3,7,"p-button",11),_()()}if(e&2){let t=d();u("id",t.id+"-titlebar"),l(),o("ngIf",t._header),l(2),o("ngTemplateOutlet",t.headerTemplate||t._headerTemplate),l(),o("ngClass",U(6,Me,t.iconPos==="start",t.iconPos==="end",t.iconPos==="center")),l(),o("ngTemplateOutlet",t.iconTemplate||t._iconTemplate),l(),o("ngIf",t.toggleable)}}function Ke(e,a){e&1&&M(0)}function Ze(e,a){e&1&&M(0)}function ze(e,a){if(e&1&&(s(0,"div",17),B(1,2),c(2,Ze,1,0,"ng-container",6),_()),e&2){let t=d();l(2),o("ngTemplateOutlet",t.footerTemplate||t._footerTemplate)}}var Je=({dt:e})=>`
|
|
2
|
-
.p-panel {
|
|
3
|
-
border: 1px solid ${e("panel.border.color")};
|
|
4
|
-
border-radius: ${e("panel.border.radius")};
|
|
5
|
-
background: ${e("panel.background")};
|
|
6
|
-
color: ${e("panel.color")};
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.p-panel-header {
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
align-items: center;
|
|
13
|
-
padding: ${e("panel.header.padding")};
|
|
14
|
-
background: ${e("panel.header.background")};
|
|
15
|
-
color: ${e("panel.header.color")};
|
|
16
|
-
border-style: solid;
|
|
17
|
-
border-width: ${e("panel.header.border.width")};
|
|
18
|
-
border-color: ${e("panel.header.border.color")};
|
|
19
|
-
border-radius: ${e("panel.header.border.radius")};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.p-panel-toggleable .p-panel-header {
|
|
23
|
-
padding: ${e("panel.toggleable.header.padding")};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.p-panel-title {
|
|
27
|
-
line-height: 1;
|
|
28
|
-
font-weight: ${e("panel.title.font.weight")};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.p-panel-content {
|
|
32
|
-
padding: ${e("panel.content.padding")};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.p-panel-footer {
|
|
36
|
-
padding: ${e("panel.footer.padding")};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/* For PrimeNG */
|
|
40
|
-
.p-panel-toggleable.p-panel-expanded > .p-panel-content-container:not(.ng-animating) {
|
|
41
|
-
overflow: visible
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.p-panel-toggleable .p-panel-content-container {
|
|
45
|
-
overflow: hidden;
|
|
46
|
-
}
|
|
47
|
-
`,Ue={root:({props:e})=>["p-panel p-component",{"p-panel-toggleable":e.toggleable}],header:"p-panel-header",title:"p-panel-title",headerActions:"p-panel-header-actions",pcToggleButton:"p-panel-toggle-button",contentContainer:"p-panel-content-container",content:"p-panel-content",footer:"p-panel-footer"},ge=(()=>{class e extends re{name="panel";theme=Je;classes=Ue;static \u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})();static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})();var Xe=(()=>{class e extends pe{toggleable;_header;collapsed;style;styleClass;iconPos="end";expandIcon;collapseIcon;showHeader=!0;toggler="icon";transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";toggleButtonProps;collapsedChange=new P;onBeforeToggle=new P;onAfterToggle=new P;footerFacet;animating;headerTemplate;iconTemplate;contentTemplate;footerTemplate;headerIconsTemplate;_headerTemplate;_iconTemplate;_contentTemplate;_footerTemplate;_headerIconsTemplate;contentWrapperViewChild;id=$("pn_id_");get buttonAriaLabel(){return this._header}_componentStyle=R(ge);onHeaderClick(t){this.toggler==="header"&&this.toggle(t)}onIconClick(t){this.toggler==="icon"&&this.toggle(t)}toggle(t){if(this.animating)return!1;this.animating=!0,this.onBeforeToggle.emit({originalEvent:t,collapsed:this.collapsed}),this.toggleable&&(this.collapsed?this.expand():this.collapse()),this.cd.markForCheck(),t.preventDefault()}expand(){this.collapsed=!1,this.collapsedChange.emit(this.collapsed),this.updateTabIndex()}collapse(){this.collapsed=!0,this.collapsedChange.emit(this.collapsed),this.updateTabIndex()}getBlockableElement(){return this.el.nativeElement.children[0]}updateTabIndex(){this.contentWrapperViewChild&&this.contentWrapperViewChild.nativeElement.querySelectorAll('input, button, select, a, textarea, [tabindex]:not([tabindex="-1"])').forEach(i=>{this.collapsed?i.setAttribute("tabindex","-1"):i.removeAttribute("tabindex")})}onKeyDown(t){(t.code==="Enter"||t.code==="Space")&&(this.toggle(t),t.preventDefault())}onToggleDone(t){this.animating=!1,this.onAfterToggle.emit({originalEvent:t,collapsed:this.collapsed})}templates;ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"header":this._headerTemplate=t.template;break;case"content":this._contentTemplate=t.template;break;case"footer":this._footerTemplate=t.template;break;case"icons":this._iconTemplate=t.template;break;case"headericons":this._headerIconsTemplate=t.template;break;default:this._contentTemplate=t.template;break}})}static \u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})();static \u0275cmp=v({type:e,selectors:[["p-panel"]],contentQueries:function(i,n,r){if(i&1&&(b(r,ae,5),b(r,fe,4),b(r,he,4),b(r,be,4),b(r,ye,4),b(r,ve,4),b(r,le,4)),i&2){let p;m(p=f())&&(n.footerFacet=p.first),m(p=f())&&(n.headerTemplate=p.first),m(p=f())&&(n.iconTemplate=p.first),m(p=f())&&(n.contentTemplate=p.first),m(p=f())&&(n.footerTemplate=p.first),m(p=f())&&(n.headerIconsTemplate=p.first),m(p=f())&&(n.templates=p)}},viewQuery:function(i,n){if(i&1&&G(Ce,5),i&2){let r;m(r=f())&&(n.contentWrapperViewChild=r.first)}},inputs:{toggleable:[2,"toggleable","toggleable",V],_header:[0,"header","_header"],collapsed:[2,"collapsed","collapsed",V],style:"style",styleClass:"styleClass",iconPos:"iconPos",expandIcon:"expandIcon",collapseIcon:"collapseIcon",showHeader:[2,"showHeader","showHeader",V],toggler:"toggler",transitionOptions:"transitionOptions",toggleButtonProps:"toggleButtonProps"},outputs:{collapsedChange:"collapsedChange",onBeforeToggle:"onBeforeToggle",onAfterToggle:"onAfterToggle"},features:[z([ge]),C],ngContentSelectors:Ie,decls:8,vars:25,consts:[["contentWrapper",""],["icon",""],[3,"ngClass","ngStyle"],["class","p-panel-header",3,"click",4,"ngIf"],["role","region",1,"p-panel-content-container",3,"id"],[1,"p-panel-content"],[4,"ngTemplateOutlet"],["class","p-panel-footer",4,"ngIf"],[1,"p-panel-header",3,"click"],["class","p-panel-title",4,"ngIf"],[1,"p-panel-icons",3,"ngClass"],["severity","secondary","type","button","role","button","styleClass","p-panel-header-icon p-panel-toggler p-link",3,"text","rounded","buttonProps","click","keydown",4,"ngIf"],[1,"p-panel-title"],["severity","secondary","type","button","role","button","styleClass","p-panel-header-icon p-panel-toggler p-link",3,"click","keydown","text","rounded","buttonProps"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class",4,"ngIf"],[1,"p-panel-footer"]],template:function(i,n){if(i&1){let r=E();L(Te),s(0,"div",2),c(1,Ge,7,10,"div",3),s(2,"div",4),S("@panelContent.done",function(me){return I(r),x(n.onToggleDone(me))}),s(3,"div",5,0),B(5),c(6,Ke,1,0,"ng-container",6),_(),c(7,ze,3,1,"div",7),_()()}i&2&&(h(n.styleClass),o("ngClass",J(14,xe,n.toggleable,!n.collapsed&&n.toggleable))("ngStyle",n.style),u("id",n.id)("data-pc-name","panel"),l(),o("ngIf",n.showHeader),l(),o("id",n.id+"_content")("@panelContent",n.collapsed?T(19,Pe,T(17,we,n.animating?n.transitionOptions:"0ms")):T(23,Fe,T(21,ke,n.animating?n.transitionOptions:"0ms"))),u("aria-labelledby",n.id+"_header")("aria-hidden",n.collapsed)("tabindex",n.collapsed?"-1":void 0),l(4),o("ngTemplateOutlet",n.contentTemplate||n._contentTemplate),l(),o("ngIf",n.footerFacet||n.footerTemplate||n._footerTemplate))},dependencies:[ie,Y,ee,ne,te,ue,_e,se,ce,A],encapsulation:2,data:{animation:[oe("panelContent",[O("hidden",Q({height:"0"})),O("void",Q({height:"{{height}}"}),{params:{height:"0"}}),O("visible",Q({height:"*"})),H("visible <=> hidden",[D("{{transitionParams}}")]),H("void => hidden",D("{{transitionParams}}")),H("void => visible",D("{{transitionParams}}"))])]},changeDetection:0})}return e})(),wt=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=W({type:e});static \u0275inj=N({imports:[Xe,A,A]})}return e})();export{_e as a,ue as b,Xe as c,wt as d};
|
package/chunk-VI3AV775.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as et,d as V,f as j,g as N,h as $}from"./chunk-F2X3VGZZ.js";import{A as Tt,a as X,f as tt,v as gt,w as _t}from"./chunk-KQAMA66M.js";import{Aa as U,Cb as O,Ga as A,I as D,Ib as k,Jb as R,Kb as c,Lb as E,Ob as m,Ub as d,Vb as f,Wb as M,Xb as K,Yb as Q,Z as P,_b as W,ab as pt,ac as vt,ba as b,bb as Y,ca as ut,dc as H,ea as dt,ec as u,g,ga as C,gb as a,ha as p,ia as ht,jb as mt,mb as T,n as lt,pa as z,pc as v,qa as G,r as x,rc as y,s as B,va as F,wb as J,xb as ft}from"./chunk-D5AXB5DE.js";import{a as r,b as h}from"./chunk-YQFG5XE2.js";var yt=["toast-component",""];function At(s,n){if(s&1){let t=W();d(0,"button",5),H("click",function(){z(t);let i=u();return G(i.remove())}),d(1,"span",6),v(2,"\xD7"),f()()}}function Ot(s,n){if(s&1&&(K(0),v(1),Q()),s&2){let t=u(2);a(),y("[",t.duplicatesCount+1,"]")}}function Rt(s,n){if(s&1&&(d(0,"div"),v(1),O(2,Ot,2,1,"ng-container",4),f()),s&2){let t=u();m(t.options.titleClass),R("aria-label",t.title),a(),y(" ",t.title," "),a(),c("ngIf",t.duplicatesCount)}}function Et(s,n){if(s&1&&M(0,"div",7),s&2){let t=u();m(t.options.messageClass),c("innerHTML",t.message,Y)}}function Mt(s,n){if(s&1&&(d(0,"div",8),v(1),f()),s&2){let t=u();m(t.options.messageClass),R("aria-label",t.message),a(),y(" ",t.message," ")}}function Ht(s,n){if(s&1&&(d(0,"div"),M(1,"div",9),f()),s&2){let t=u();a(),E("width",t.width()+"%")}}function jt(s,n){if(s&1){let t=W();d(0,"button",5),H("click",function(){z(t);let i=u();return G(i.remove())}),d(1,"span",6),v(2,"\xD7"),f()()}}function Nt(s,n){if(s&1&&(K(0),v(1),Q()),s&2){let t=u(2);a(),y("[",t.duplicatesCount+1,"]")}}function St(s,n){if(s&1&&(d(0,"div"),v(1),O(2,Nt,2,1,"ng-container",4),f()),s&2){let t=u();m(t.options.titleClass),R("aria-label",t.title),a(),y(" ",t.title," "),a(),c("ngIf",t.duplicatesCount)}}function Bt(s,n){if(s&1&&M(0,"div",7),s&2){let t=u();m(t.options.messageClass),c("innerHTML",t.message,Y)}}function Pt(s,n){if(s&1&&(d(0,"div",8),v(1),f()),s&2){let t=u();m(t.options.messageClass),R("aria-label",t.message),a(),y(" ",t.message," ")}}function Ft(s,n){if(s&1&&(d(0,"div"),M(1,"div",9),f()),s&2){let t=u();a(),E("width",t.width()+"%")}}var it=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}},st=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}},nt=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new g;_activate=new g;_manualClose=new g;_resetTimeout=new g;_countDuplicate=new g;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)}},I=class{toastId;config;message;title;toastType;toastRef;_onTap=new g;_onAction=new g;constructor(n,t,e,i,o,l){this.toastId=n,this.config=t,this.message=e,this.title=i,this.toastType=o,this.toastRef=l,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()}},bt={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"},Ct=new dt("ToastConfig"),ot=class extends st{_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]}},kt=(()=>{class s{_document=p(X);_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=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),at=class{_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}},Vt=(()=>{class s{_overlayContainer=p(kt);_componentFactoryResolver=p(mt);_appRef=p(k);_document=p(X);_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 ot(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new at(this._createPortalHost(t))}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),L=(()=>{class s{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,e,i,o,l){this.overlay=e,this._injector=i,this.sanitizer=o,this.ngZone=l,this.toastrConfig=r(r({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=r(r({},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:l}=this.toastrConfig;for(let _ of this.toasts){let S=l&&_.title===t;if((!l||S)&&_.message===e)return _.toastRef.onDuplicate(i,o),_}return null}applyConfig(t={}){return r(r({},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 l=this.findDuplicate(i,e,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||e)&&this.toastrConfig.preventDuplicates&&l!==null)return l;this.previousToastMessage=e;let _=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(_=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let S=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let rt=e;e&&o.enableHtml&&(rt=this.sanitizer.sanitize(pt.HTML,e));let w=new nt(S),Z=new I(this.index,o,rt,i,t,w),It=[{provide:I,useValue:Z}],wt=F.create({providers:It,parent:this._injector}),xt=new it(o.toastComponent,wt),ct=S.attach(xt,o.newestOnTop);w.componentInstance=ct.instance;let q={toastId:this.index,title:i||"",message:e||"",toastRef:w,onShown:w.afterActivate(),onHidden:w.afterClosed(),onTap:Z.onTap(),onAction:Z.onAction(),portal:ct};return _||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{q.toastRef.activate()})),this.toasts.push(q),q}static \u0275fac=function(e){return new(e||s)(C(Ct),C(Vt),C(F),C(Tt),C(U))};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),$t=(()=>{class s{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=A(-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=A({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=>h(r({},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=>h(r({},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=>h(r({},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)(T(L),T(I),T(U))};static \u0275cmp=J({type:s,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,i){e&1&&H("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),e&2&&(vt("@flyInOut",i._state),m(i.toastClasses),E("display",i.displayStyle))},attrs:yt,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&&O(0,At,3,0,"button",0)(1,Rt,3,5,"div",1)(2,Et,1,3,"div",2)(3,Mt,2,4,"div",3)(4,Ht,2,2,"div",4),e&2&&(c("ngIf",i.options.closeButton),a(),c("ngIf",i.title),a(),c("ngIf",i.message&&i.options.enableHtml),a(),c("ngIf",i.message&&!i.options.enableHtml),a(),c("ngIf",i.options.progressBar))},dependencies:[tt],encapsulation:2,data:{animation:[et("flyInOut",[N("inactive",j({opacity:0})),N("active",j({opacity:1})),N("removed",j({opacity:0})),$("inactive => active",V("{{ easeTime }}ms {{ easing }}")),$("active => removed",V("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return s})(),Lt=h(r({},bt),{toastComponent:$t}),Zt=(s={})=>ht([{provide:Ct,useValue:{default:Lt,config:s}}]),ye=(()=>{class s{static forRoot(t={}){return{ngModule:s,providers:[Zt(t)]}}static \u0275fac=function(e){return new(e||s)};static \u0275mod=ft({type:s});static \u0275inj=ut({})}return s})();var qt=(()=>{class s{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=A(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=A("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)(T(L),T(I),T(k))};static \u0275cmp=J({type:s,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,i){e&1&&H("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),e&2&&(m(i.toastClasses),E("display",i.displayStyle))},attrs:yt,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&&O(0,jt,3,0,"button",0)(1,St,3,5,"div",1)(2,Bt,1,3,"div",2)(3,Pt,2,4,"div",3)(4,Ft,2,2,"div",4),e&2&&(c("ngIf",i.options.closeButton),a(),c("ngIf",i.title),a(),c("ngIf",i.message&&i.options.enableHtml),a(),c("ngIf",i.message&&!i.options.enableHtml),a(),c("ngIf",i.options.progressBar))},dependencies:[tt],encapsulation:2,changeDetection:0})}return s})(),be=h(r({},bt),{toastComponent:qt});var Re=(()=>{class s{constructor(){this.httpClient=p(_t),this.toastr=p(L),this.requestTimeout=1e4}get(t="",e,i={}){return this.httpClient.get(`${t}${e}`,i).pipe(x(this.requestTimeout),D(this.handleError.bind(this)))}post(t="",e,i,o={}){return this.httpClient.post(`${t}${e}`,i,r({observe:"response"},o)).pipe(x(this.requestTimeout),P(this.handleResponse.bind(this)),B(l=>l.body),D(this.handleError.bind(this)))}put(t="",e,i,o={}){return this.httpClient.put(`${t}${e}`,i,h(r({},o),{observe:"response"})).pipe(x(this.requestTimeout),P(this.handleResponse.bind(this)),B(l=>l.body),D(this.handleError.bind(this)))}delete(t="",e,i={}){return this.httpClient.delete(`${t}${e}`,h(r({},i),{observe:"response"})).pipe(x(this.requestTimeout),P(this.handleResponse.bind(this)),B(o=>o.body),D(this.handleError.bind(this)))}handleResponse(t){if(t.status===200&&t.body){let e=t.body.message;e&&this.toastr.success(e,"Success")}}handleError(t){let e={header:"API Error",message:"An unknown error occurred"};if(t instanceof gt)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 this.toastr.error(e.message,e.header),lt(()=>e)}static{this.\u0275fac=function(e){return new(e||s)}}static{this.\u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();export{L as a,Zt as b,ye as c,Re as d};
|
package/chunk-VK5TK23W.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{a as Te,b as Le}from"./chunk-5QMHSLSU.js";import{b as Ct}from"./chunk-25XKSUYX.js";import{a as St,b as ye}from"./chunk-YQRWSN5V.js";import{a as Fe}from"./chunk-GMLRRSMP.js";import{a as xt}from"./chunk-NRULEUE7.js";import{a as Ce,b as ve,d as gt,e as ht}from"./chunk-7LCGNNCW.js";import"./chunk-R6HGHSPM.js";import"./chunk-4FK4QI2U.js";import{a as oe,b as De}from"./chunk-JQ4DHNFQ.js";import{a as H,b as Y}from"./chunk-56MVOUHH.js";import{b as ge,c as he,f as ut,g as _t,h as xe,o as Se}from"./chunk-UMYCPFK5.js";import{g as Re}from"./chunk-X3FQFXUZ.js";import"./chunk-7TKATLB4.js";import{e as ct}from"./chunk-ZKXT6RSI.js";import{a as ft}from"./chunk-4J3EFT67.js";import{a as A}from"./chunk-7GT5MR57.js";import{c as le,d as pe}from"./chunk-VF7TG32T.js";import{b as fe}from"./chunk-F7TF7ASR.js";import{f as dt,g as _e}from"./chunk-L6VKOTIV.js";import"./chunk-5OXHRN43.js";import{a as V,b as me,c as ce,d as se,e as de,f as ue,g as st}from"./chunk-AM66YD6C.js";import{E as re,F as ae}from"./chunk-FUGCJNGU.js";import{c as lt,e as X,f as Z,g as pt,i as G,k as ee,m as te,p as ie,u as mt,w as we,z as ne}from"./chunk-BWS6U7BM.js";import{a as rt,d as at}from"./chunk-VI3AV775.js";import"./chunk-F2X3VGZZ.js";import{C as ot,F as J,M as Q,c as tt,f as Ie,k as it,l as K,m as $,s as nt}from"./chunk-KQAMA66M.js";import{Cb as C,D as Ee,Ga as T,Ic as x,Jc as S,Kb as c,Kc as Ze,Lc as s,Nb as N,Pb as O,Qb as Je,Sb as Qe,Tb as Xe,Ub as i,V as ze,Vb as n,W as Ue,Wb as E,X as j,Xc as R,Yc as et,Z as k,_b as L,ba as Ke,c as P,cb as $e,dc as w,ec as d,gb as l,ha as h,pa as y,pc as r,qa as b,qc as u,rc as D,s as We,uc as W,vc as q,wb as M,wc as z,xc as U,yc as I,zc as F}from"./chunk-D5AXB5DE.js";import{a as g,b as v,c as Ve,e as Ye}from"./chunk-YQFG5XE2.js";var B=(()=>{class t{constructor(){this.httpService=h(at),this.authService=h(Fe)}fetchGeneralLedgerLoader(e={}){return this.httpService.post(void 0,"api/GeneralLedgerLoader/GetFilter",e)}fetchGeneralLedgerReport(e){return this.httpService.post(void 0,"api/GeneralLedger/Get",e)}exportGeneralLedger(e){let a={responseType:"blob"};return this.httpService.post(void 0,"/api/GeneralLedgerExport/GetGeneralLedgerExport",e,a)}getCustomerSuggestions(e){let a={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetCustomerSuggestion",{params:a})}getSupplierSuggestions(e){let a={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetSupplierSuggestion",{params:a})}getCashierSuggestions(e){let a={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/api/ac/GetUserSuggestion",{params:a})}getBalanceSheetLoader(){return this.httpService.get(void 0,"/api/BalanceSheetLoader/GetBalanceSheet")}getBalanceSheet(e,a={}){let o=new nt({fromObject:Object.fromEntries(Object.entries(e).map(([f,_])=>[f,String(_)]))}),m=g({params:o},a);return this.httpService.get(void 0,"/api/BalanceSheet",m)}getIncomeStatementLoader(){return this.httpService.get(void 0,"api/IncomeStatementLoader/Filter")}getIncomeStatement(e,a={}){return this.httpService.post(void 0,"api/IncomeStatement/List",g({},e),a)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=Ke({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Gt={metadata:{filter:{categoryID:"",from:new Date().toISOString(),to:new Date().toISOString(),iDs:[],outletIDs:[]},options:{accounts:[],outlets:[]},roles:{isInEmptyOutletRole:!1}},items:{data:[],pageTitle:""},filter:{listAccountID:[],categoryID:null,OutletID:[],ContactID:null,from:null,to:null}},Me=me(ue(Gt),st("General Ledger Store"),ce(t=>({debitTotal:R(()=>t.items.data().reduce((p,e)=>p+e.data.reduce((a,o)=>a+(o.debitAmount||0),0),0)),creditTotal:R(()=>t.items.data().reduce((p,e)=>p+e.data.reduce((a,o)=>a+(o.creditAmount||0),0),0))})),de(t=>{let p=h(B),e={updateFilter:a=>{V(t,o=>v(g({},o),{filter:a}))},loadList:H(P(Ee(a=>Array.isArray(a.listAccountID)&&a.listAccountID.length>0),j(a=>p.fetchGeneralLedgerReport(a).pipe(Y({next:o=>{V(t,m=>v(g({},m),{items:o}))},error:o=>{console.error(o)}}))))),loadLoader:H(P(j(a=>p.fetchGeneralLedgerLoader(a).pipe(Y({next:o=>{V(t,m=>v(g({},m),{metadata:o,filter:v(g({},m.filter),{categoryID:o.filter.categoryID})})),e.loadList(t.filter)},error:o=>{console.error(o)}}))),A("res")))};return e}),se({onInit:t=>{t.loadLoader({})}}));var jt=()=>({height:"calc(100vh - 70px)"}),Nt=()=>({height:"calc(100vh - 100px)"}),qt=t=>["/journal/journal-entry/",t],Ht=t=>({"ng-invalid ng-dirty":t}),Yt=()=>({scrollHeight:"250px"});function Wt(t,p){if(t&1){let e=L();i(0,"div",11)(1,"a",12),r(2,"Return to Accounts"),n(),i(3,"p-button",13),w("onClick",function(){y(e);let o=d();return b(o.onExport())}),n()()}}function zt(t,p){if(t&1&&(i(0,"div",11)(1,"span",16)(2,"h3",17),r(3),n()(),i(4,"span",16)(5,"h3",17),r(6),n()()()),t&2){let e=d().$implicit;l(3),u(e.name),l(3),D(" (",e.chartOfAccountCode,") ")}}function Ut(t,p){t&1&&(i(0,"tr")(1,"th",18),r(2,"Outlet"),n(),i(3,"th",18),r(4,"No."),n(),i(5,"th",18),r(6,"Date"),n(),i(7,"th",18),r(8,"Name"),n(),i(9,"th",18),r(10,"Description"),n(),i(11,"th",19),r(12,"Debit"),n(),i(13,"th",20),r(14,"Credit"),n(),i(15,"th",20),r(16,"Balance"),n()())}function Kt(t,p){if(t&1&&(i(0,"td",25),r(1,"Starting Balance"),n(),i(2,"td",26),r(3),x(4,"number"),n()),t&2){let e=d(2).$implicit;l(3),D(" ",S(4,1,e.startBalance)," ")}}function $t(t,p){if(t&1&&(i(0,"tr"),C(1,Kt,5,3),n(),i(2,"tr")(3,"td",21),r(4),n(),i(5,"td",21)(6,"a",22),r(7),n()(),i(8,"td",21),r(9),x(10,"date"),n(),i(11,"td",21)(12,"a",23),r(13),n()(),E(14,"td"),i(15,"td",24),r(16),x(17,"number"),n(),i(18,"td",24),r(19),x(20,"number"),n(),i(21,"td",24),r(22),x(23,"number"),n()()),t&2){let e=p.$implicit,a=p.rowIndex,o=d(4);l(),O(a===0&&o.store.items().data.length>1?1:-1),l(3),u(e.outletName),l(2),c("routerLink",F(19,qt,e.id)),l(),u(e.number),l(2),u(Ze(10,10,e.date,"dd MMM yyyy")),l(3),c("href",o.authService.getTenantExternalURL()+"/menu/Contacts/Contact/Customers/Info?ID="+e.contactID,$e),l(),u(e.contactName),l(3),D(" ",S(17,13,e.debitAmount)," "),l(3),D(" ",S(20,15,e.creditAmount)," "),l(3),u(S(23,17,e.balance))}}function Jt(t,p){if(t&1&&(i(0,"tr"),E(1,"td",27),i(2,"td",28),r(3,"Total"),n(),i(4,"td",28),r(5),x(6,"number"),n(),i(7,"td",28),r(8),x(9,"number"),n(),E(10,"td"),n()),t&2){let e=d().$index,a=d(3);l(5),D(" ",S(6,2,a.store.items().data[e].debitTotal)," "),l(3),D(" ",S(9,4,a.store.items().data[e].creditTotal)," ")}}function Qt(t,p){t&1&&(i(0,"tr")(1,"td",29)(2,"span"),r(3,"No records found."),n()()())}function Xt(t,p){if(t&1&&(i(0,"p-table",15),C(1,zt,7,2,"ng-template",null,3,s)(3,Ut,17,0,"ng-template",null,4,s)(5,$t,24,21,"ng-template",null,5,s)(7,Jt,11,6,"ng-template",null,6,s)(9,Qt,4,0,"ng-template",null,7,s),n()),t&2){let e=p.$implicit;c("value",e.data)("scrollable",!0)}}function Zt(t,p){if(t&1&&(i(0,"p-panel")(1,"p-scroll-panel"),Qe(2,Xt,11,2,"p-table",15,Je),n()()),t&2){let e=d(2);N(I(4,jt)),l(),N(I(5,Nt)),l(),Xe(e.store.items().data)}}function ei(t,p){if(t&1&&C(0,Zt,4,6,"p-panel",14),t&2){let e=d();c("ngIf",e.store.items()&&e.store.items().data.length)}}function ti(t,p){if(t&1&&(i(0,"div",11)(1,"div",16)(2,"span",45),r(3),n()(),i(4,"div")(5,"span"),r(6,"-"),n()(),i(7,"div",16)(8,"span",46),r(9),n()()()),t&2){let e=p.$implicit;l(3),D("(",e.code,")"),l(6),u(e.name)}}function ii(t,p){if(t&1&&(i(0,"div",11)(1,"div",16)(2,"span",45),r(3),n()(),i(4,"div")(5,"span"),r(6,"-"),n()(),i(7,"div",16)(8,"span",46),r(9),n()()()),t&2){let e=p.$implicit;l(3),D("(",e.code,")"),l(6),u(e.name)}}function ni(t,p){if(t&1&&(i(0,"div",47)(1,"div"),r(2),n()()),t&2){let e=p.$implicit;l(2),u(e.value)}}function oi(t,p){if(t&1){let e=L();i(0,"div",31)(1,"label",32),r(2,"Customer"),n(),i(3,"p-autocomplete",48),w("completeMethod",function(o){y(e);let m=d(2);return b(m.searchCustomer(o))}),n()()}if(t&2){let e=d(2);l(3),c("suggestions",e.customerSuggestions())}}function ri(t,p){if(t&1){let e=L();i(0,"div",31)(1,"label",32),r(2,"Supplier"),n(),i(3,"p-autocomplete",48),w("completeMethod",function(o){y(e);let m=d(2);return b(m.searchSupplier(o))}),n()()}if(t&2){let e=d(2);l(3),c("suggestions",e.supplierSuggestions())}}function ai(t,p){if(t&1){let e=L();i(0,"form",30)(1,"div",31)(2,"label",32),r(3,"Accounts"),n(),i(4,"p-multiselect",33),w("onChange",function(o){y(e);let m=d();return b(m.onAccountChange(o))}),C(5,ti,10,2,"ng-template",null,8,s)(7,ii,10,2,"ng-template",null,9,s),n()(),i(9,"div",31)(10,"label",32),r(11,"From"),n(),E(12,"p-datepicker",34),n(),i(13,"div",31)(14,"label",32),r(15,"To"),n(),E(16,"p-datepicker",35),n(),i(17,"div",31)(18,"label",32),r(19,"Outlets"),n(),i(20,"p-multiselect",36),C(21,ni,3,1,"ng-template",null,9,s),n()(),i(23,"div",31)(24,"label",32),r(25,"Category"),n(),i(26,"p-treeselect",37),w("onFocus",function(){y(e);let o=d();return b(o.onCategoryFocus())}),n()(),i(27,"div",31)(28,"label",38),r(29,"Contact Type"),n(),i(30,"div",39)(31,"div",40),E(32,"p-radiobutton",41),i(33,"label",42),r(34,"Customer"),n()(),i(35,"div",40),E(36,"p-radiobutton",43),i(37,"label",44),r(38,"Supplier"),n()()()(),C(39,oi,4,1,"div",31)(40,ri,4,1,"div",31),n()}if(t&2){let e=d();c("formGroup",e.generalLedgerFilterForm),l(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("maxlength",5)("options",e.store.metadata().options.accounts)("ngClass",F(20,Ht,e.generalLedgerFilterForm.get("listAccountID").invalid&&e.generalLedgerFilterForm.get("listAccountID").touched||e.generalLedgerFilterForm.get("listAccountID").dirty)),l(8),c("iconDisplay","input")("showIcon",!0),l(4),c("iconDisplay","input")("showIcon",!0),l(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.metadata().options.outlets),l(6),c("virtualScroll",!0)("virtualScrollItemSize",50)("virtualScrollOptions",I(22,Yt))("options",e.categoriesOptions()),l(6),c("value",0),l(4),c("value",1),l(3),O(e.generalLedgerFilterForm.get("contactType").value?40:39)}}var Rt=function(t){return t[t.Customer=0]="Customer",t[t.Supplier=1]="Supplier",t}(Rt||{}),Tt=(()=>{class t{constructor(){this.dialogFilterVisible=T(!1),this.reportService=h(B),this.coaService=h(ft),this.authService=h(Fe),this.store=h(Me),this.categoriesOptions=T([]),this.customerSuggestions=T([]),this.supplierSuggestions=T([]),this.route=h(ot),this.dayjsService=h(ye),this.initDialogVisible=T(!0),this.fb=h(we),this.toastr=h(rt)}ngOnInit(){this.generateFilterForm(),this.route.queryParamMap.pipe(We(e=>e.get("id")),k(e=>{e&&(this.initDialogVisible.update(a=>!a),this.generalLedgerFilterForm.patchValue({listAccountID:[e]}),this.store.updateFilter(v(g({},this.store.filter()),{listAccountID:[e]})))})).subscribe(),this.clearContactValueOnContactTypeChange()}clearContactValueOnContactTypeChange(){this.generalLedgerFilterForm.get("contactType")?.valueChanges.subscribe(()=>this.generalLedgerFilterForm.get("ContactID")?.setValue(""))}onAccountChange(e){console.log("Account Change Event:",e),Array.isArray(e.value)&&e.value.length>5&&this.toastr.warning("Please select at least 5 accounts for the general ledger report.","Warning")}onCategoryFocus(){this.coaService.getCachedCategoriesOptions().pipe(A("getCachedCategoriesOptions"),k(e=>this.categoriesOptions.set(e))).subscribe()}generateFilterForm(){this.generalLedgerFilterForm=this.fb.group({listAccountID:new G([],[lt.required]),categoryID:new G(null),OutletID:new G([]),ContactID:new G(""),from:new G(null),to:new G(null),contactType:[Rt.Customer]})}onFilterEvent(e){console.log(e),this.dialogFilterVisible.update(a=>!a)}onFilterOKEvent(){let f=this.generalLedgerFilterForm.value,{from:e,to:a}=f,o=Ve(f,["from","to"]);if(this.generalLedgerFilterForm.invalid){this.generalLedgerFilterForm.markAllAsTouched(),this.dialogFilterVisible.set(!0);return}let m={categoryID:o.categoryID?.key??null,ContactID:o.ContactID.length?o.ContactID:null,OutletID:o.OutletID.length?o.OutletID:null,listAccountID:o.listAccountID,from:this.dayjsService.from(e)?this.dayjsService.from(e).format():null,to:this.dayjsService.from(a)?this.dayjsService.from(a).format():null};this.dialogFilterVisible.update(_=>!_),this.store.updateFilter(m),this.dialogFilterVisible.set(!1)}searchCustomer(e){this.reportService.getCustomerSuggestions(e.query).pipe(k(a=>this.customerSuggestions.set(a))).subscribe()}searchSupplier(e){this.reportService.getSupplierSuggestions(e.query).pipe(k(a=>this.supplierSuggestions.set(a))).subscribe()}onExport(){let f=this.generalLedgerFilterForm.value,{from:e,to:a}=f,o=Ve(f,["from","to"]),m={categoryID:o.categoryID?.key??null,ContactID:o.ContactID.length?o.ContactID:null,OutletID:o.OutletID.length?o.OutletID:null,listAccountID:o.listAccountID,from:this.dayjsService.from(e)?this.dayjsService.from(e).format():null,to:this.dayjsService.from(a)?this.dayjsService.from(a).format():null};this.reportService.exportGeneralLedger(m).pipe(A("exportGeneralLedger"),k(_=>{xt(_,`general-ledger-${this.dayjsService.now.format("D-MM-YYYY")}.${_.type.split("/")[1]}`,_.type)})).subscribe()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-general-ledger"]],features:[U([Me])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["caption",""],["header",""],["body",""],["footer",""],["emptymessage",""],["selectedItem",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isDialogFilterVisible","isFilterable","isInitDialogFilterVisible"],[1,"d-flex","gap-2"],["routerLink","/chart-of-account/account",1,"p-button","p-button-secondary","p-button-outlined"],["severity","secondary","variant","outlined","icon","fa-solid fa-download","label","Export",3,"onClick"],[3,"style",4,"ngIf"],["scrollHeight","calc(100vh - 150px)",3,"value","scrollable"],[1,""],[1,"fs-5","fw-semibold"],[2,"width","10%"],[1,"text-end",2,"width","10%"],[1,"text-end",2,"width","20%"],[1,"text-break"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"href"],[1,"text-end","text-break"],["colspan","7",1,"text-end"],[1,"text-end"],["colspan","4"],[1,"text-end","fw-semibold"],["colspan","8"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["showClear","","filter","","filterBy","code,name","display","chip","formControlName","listAccountID","appendTo","body","optionLabel","name","optionValue","id","placeholder","Select Accounts",3,"onChange","virtualScroll","virtualScrollItemSize","maxlength","options","ngClass"],["showClear","","formControlName","from","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["showClear","","formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["showClear","","display","chip","formControlName","OutletID","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlets",3,"virtualScroll","virtualScrollItemSize","options"],["showClear","","filter","","filterBy","label","formControlName","categoryID","appendTo","body","containerStyleClass","w-100","optionLabel","label","optionValue","id","placeholder","Select Category",3,"onFocus","virtualScroll","virtualScrollItemSize","virtualScrollOptions","options"],["for",""],[1,"d-flex","gap-3"],[1,"d-flex","align-items-center","gap-2"],["name","contactType","formControlName","contactType","inputId","customer",3,"value"],["for","customer",1,"m-0"],["name","contactType","formControlName","contactType","inputId","supplier",3,"value"],["for","supplier",1,"m-0"],[1,"h-full","align-middle"],[1,"text-truncate","d-inline-block","h-full","align-middle"],[1,"flex","items-center","gap-2"],["formControlName","ContactID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"]],template:function(a,o){if(a&1){let m=L();i(0,"app-main-panel",10),z("isDialogFilterVisibleChange",function(_){return y(m),q(o.dialogFilterVisible,_)||(o.dialogFilterVisible=_),b(_)})("isInitDialogFilterVisibleChange",function(_){return y(m),q(o.initDialogVisible,_)||(o.initDialogVisible=_),b(_)}),w("filterConfirmed",function(){return y(m),b(o.onFilterOKEvent())}),C(1,Wt,4,0,"ng-template",null,0,s)(3,ei,1,1,"ng-template",null,1,s)(5,ai,41,23,"ng-template",null,2,s),n()}a&2&&(c("pageTitle",o.store.items().pageTitle.length?o.store.items().pageTitle:"General Ledger"),W("isDialogFilterVisible",o.dialogFilterVisible),c("isFilterable",!0),W("isInitDialogFilterVisible",o.initDialogVisible))},dependencies:[_e,$,tt,Ie,K,it,fe,Se,xe,dt,ae,re,Re,he,ge,Le,Te,ne,ee,X,Z,mt,te,ie,ve,Ce,De,oe,ct,ht,gt,Ct,pe,le,Q,J,_t,ut],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{padding:.75rem 1rem .75rem 0}"],changeDetection:0})}}return t})();var li={data:{},filter:{EntityID:[],CashierID:null,Text:null,from:null,to:null},isLoading:!0,loader:{options:{outlets:[]},filter:{from:"",to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}}},Be=me(ue(li),ce(t=>{let p={totalCOGS:R(()=>{let e=t.data()?.data?.cogs;return Array.isArray(e)?e.reduce((a,o)=>a+(o?.amount??0),0):0}),totalRevenue:R(()=>{let e=t.data()?.data?.revenue;return Array.isArray(e)?e.reduce((a,o)=>a+(o?.amount??0),0):0}),totalExpense:R(()=>{let e=t.data()?.data?.expense;return Array.isArray(e)?e.reduce((a,o)=>a+(o?.amount??0),0):0}),grossProfit:R(()=>Array.isArray(t.data()?.data?.cogs)&&Array.isArray(t.data()?.data?.revenue)?p.totalRevenue()-p.totalCOGS():0),profitOrLoss:R(()=>p.totalRevenue()-p.totalCOGS()-p.totalExpense()),isDataEmpty:R(()=>Object.keys(t.data()?.data??{}).length===0)};return p}),de(t=>{let p=h(B),e=h(ye),a={updateFilter(o){V(t,m=>v(g({},m),{filter:g(g({},m.filter),o)}))},getLoader:H(P(j(()=>p.getIncomeStatementLoader().pipe(Y({next:o=>{V(t,m=>v(g({},m),{loader:o,filter:v(g({},m.filter),{from:e.from(o.filter.from).format(),to:e.from(o.filter.to).format()})})),a.getIncomeStatement(t.filter)},error:o=>{console.error(o)}}))))),getIncomeStatement:H(P(j(o=>p.getIncomeStatement(o).pipe(Ue(()=>V(t,m=>v(g({},m),{isLoading:!0}))),Y({next:m=>{V(t,f=>v(g({},f),{data:m,isLoading:!1}))},error:m=>{console.error(m)}})))))};return a}),se({onInit:t=>{t.getLoader()}}));var pi=()=>({height:"calc(100vh - 70px)"}),mi=()=>({height:"calc(100vh - 150px)"}),ke=()=>({}),Oe=t=>["/chart-of-account/account/",t],Ge=()=>["/report/general-ledger"],Ae=t=>({id:t});function ci(t,p){if(t&1){let e=L();i(0,"div",8)(1,"p-button",9),w("onClick",function(){y(e);let o=d();return b(o.onExport())}),n()()}}function si(t,p){t&1&&(i(0,"tr")(1,"th",14),r(2,"Code"),n(),i(3,"th",15),r(4,"Name"),n(),i(5,"th",16),r(6,"Total"),n()())}function di(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",17),r(5),n()(),i(6,"td",16)(7,"a",18),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Oe,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,Ge))("queryParams",F(11,Ae,e.accountID)),l(),u(S(9,6,e.amount))}}function ui(t,p){if(t&1&&(i(0,"tr"),E(1,"td",19),i(2,"td",20)(3,"div",21)(4,"span",22),r(5,"Total Revenue :"),n(),i(6,"span",23),r(7),x(8,"number"),n()()()()),t&2){let e=d(4);l(7),u(S(8,1,e.store.totalRevenue()))}}function _i(t,p){t&1&&(i(0,"tr")(1,"td",24)(2,"span"),r(3,"No revenue records available"),n()()())}function fi(t,p){if(t&1&&(i(0,"h6",12),r(1,"Revenue"),n(),i(2,"p-table",13),C(3,si,7,0,"ng-template",null,3,s)(5,di,10,13,"ng-template",null,4,s)(7,ui,9,3,"ng-template",null,5,s)(9,_i,4,0,"ng-template",null,6,s),n()),t&2){let e,a=d(3);l(2),c("value",(e=a.store.data())==null||e.data==null?null:e.data.revenue)}}function gi(t,p){t&1&&(i(0,"tr")(1,"th",14),r(2,"Code"),n(),i(3,"th",15),r(4,"Name"),n(),i(5,"th",25),r(6,"Total"),n()())}function hi(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",17),r(5),n()(),i(6,"td",16)(7,"a",18),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Oe,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,Ge))("queryParams",F(11,Ae,e.AccountID)),l(),u(S(9,6,e.amount))}}function xi(t,p){if(t&1&&(i(0,"tr"),E(1,"td",26),i(2,"td",20)(3,"div",21)(4,"span",22),r(5,"Total COGS :"),n(),i(6,"span",23),r(7),x(8,"number"),n()()()(),i(9,"tr"),E(10,"td",26),i(11,"td",20)(12,"div",21)(13,"span",22),r(14,"Gross Profit :"),n(),i(15,"span",23),r(16),x(17,"number"),n()()()()),t&2){let e=d(4);l(7),u(S(8,2,e.store.totalCOGS())),l(9),u(S(17,4,e.store.grossProfit()))}}function Si(t,p){t&1&&(i(0,"tr")(1,"td",24)(2,"span"),r(3,"No COGS records available"),n()()())}function Ci(t,p){if(t&1&&(i(0,"h4",12),r(1,"COGS"),n(),i(2,"p-table",13),C(3,gi,7,0,"ng-template",null,3,s)(5,hi,10,13,"ng-template",null,4,s)(7,xi,18,6,"ng-template",null,5,s)(9,Si,4,0,"ng-template",null,6,s),n()),t&2){let e,a=d(3);l(2),c("value",(e=a.store.data())==null||e.data==null?null:e.data.cogs)}}function vi(t,p){t&1&&(i(0,"tr")(1,"th",14),r(2,"Code"),n(),i(3,"th",15),r(4,"Name"),n(),i(5,"th",16),r(6,"Total"),n()())}function yi(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",17),r(5),n()(),i(6,"td",16)(7,"a",18),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Oe,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,Ge))("queryParams",F(11,Ae,e.AccountID)),l(),u(S(9,6,e.amount))}}function bi(t,p){if(t&1&&(i(0,"tr"),E(1,"td",26),i(2,"td",20)(3,"div",21)(4,"span",22),r(5,"Total Expense :"),n(),i(6,"span",23),r(7),x(8,"number"),n()()()(),i(9,"tr"),E(10,"td",26),i(11,"td",20)(12,"div",21)(13,"span",22),r(14,"Profit / Loss :"),n(),i(15,"span",23),r(16),x(17,"number"),n()()()()),t&2){let e=d(4);l(7),u(S(8,2,e.store.totalExpense())),l(9),u(S(17,4,e.store.profitOrLoss()))}}function Ei(t,p){t&1&&(i(0,"tr")(1,"td",24)(2,"span"),r(3,"No expense records available"),n()()())}function Ii(t,p){if(t&1&&(i(0,"h4",12),r(1,"Expense"),n(),i(2,"p-table",13),C(3,vi,7,0,"ng-template",null,3,s)(5,yi,10,13,"ng-template",null,4,s)(7,bi,18,6,"ng-template",null,5,s)(9,Ei,4,0,"ng-template",null,6,s),n()),t&2){let e,a=d(3);l(2),c("value",(e=a.store.data())==null||e.data==null?null:e.data.expense)}}function Fi(t,p){if(t&1&&(i(0,"p-scroll-panel")(1,"div",11),C(2,fi,11,1)(3,Ci,11,1)(4,Ii,11,1),n()()),t&2){let e,a,o,m=d(2);N(I(5,mi)),l(2),O(m.Object.keys((e=m.store.data().data)!==null&&e!==void 0?e:I(6,ke)).length>0?2:-1),l(),O(m.Object.keys((a=(a=m.store.data().data)==null?null:a.cogs)!==null&&a!==void 0?a:I(7,ke)).length>0?3:-1),l(),O(m.Object.keys((o=(o=m.store.data().data)==null?null:o.expense)!==null&&o!==void 0?o:I(8,ke)).length>0?4:-1)}}function wi(t,p){if(t&1&&(i(0,"p-panel"),C(1,Fi,5,9,"p-scroll-panel",10),n()),t&2){let e=d();N(I(3,pi)),l(),c("ngIf",e.store.data())}}function Di(t,p){if(t&1){let e=L();i(0,"form",27)(1,"div",28)(2,"label",29),r(3,"Outlet"),n(),E(4,"p-multiselect",30),n(),i(5,"div",28)(6,"label",29),r(7,"Cashier"),n(),i(8,"p-autocomplete",31),w("completeMethod",function(o){y(e);let m=d();return b(m.onCashierSearch(o))})("onSelect",function(o){y(e);let m=d();return b(m.onCashierSelect(o))}),n()(),i(9,"div",28)(10,"label",29),r(11,"From"),n(),E(12,"p-datepicker",32),n(),i(13,"div",28)(14,"label",29),r(15,"To"),n(),E(16,"p-datepicker",33),n()()}if(t&2){let e=d();c("formGroup",e.formFilter),l(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.loader().options.outlets)("showClear",!0),l(4),c("showClear",!0)("suggestions",e.cashierSuggestions())("showClear",!0)}}var Lt=(()=>{class t{constructor(){this.dayjsService=h(ye),this.store=h(Be),this.fb=h(we),this.reportService=h(B),this.isInitDialogFilterVisible=T(!1),this.dialogFilterVisible=T(!1),this.cashierSuggestions=T([]),this.cashierHashMap=new Map,this.Object=Object,et(()=>{this.store.filter()&&this.initForm()})}ngOnInit(){this.initForm(),console.log(this.cashierHashMap.entries())}onSearch(e){this.store.updateFilter(v(g({},this.store.filter()),{Text:e}))}onCashierSearch(e){this.reportService.getCashierSuggestions(e.query).pipe(A("Cashier Suggestions"),k(a=>this.cashierSuggestions.set(a))).subscribe()}initForm(){let e=this.store.filter();console.log("initForm",this.cashierHashMap.get(e.CashierID)),this.formFilter=this.fb.group({EntityID:this.fb.control(e.EntityID??[]),CashierID:this.fb.control(this.cashierHashMap.get(e.CashierID)??""),Text:this.fb.control(e.Text??""),from:this.fb.control(e.from?this.dayjsService.from(e.from).toDate():null),to:this.fb.control(e.to?this.dayjsService.from(e.to).toDate():null)})}onFilterOK(){let e=this.formFilter.getRawValue(),a=Object.entries(e).reduce((o,[m,f])=>(m==="from"||m==="to"?f instanceof Date&&(o[m]=this.dayjsService.from(f).format()):o[m]=f||null,o),{});this.store.updateFilter(g(g({},this.store.filter()),a)),this.dialogFilterVisible.update(o=>!o),console.log("body",e)}onCashierSelect(e){console.log("Cashier selected:",e),!this.cashierHashMap.has(e.value.Key)&&(this.cashierHashMap.set(e.value.Key,e.value.Value),console.log("Cashier HashMap:",this.cashierHashMap))}onExport(){let e=v(g({},this.store.filter()),{export:!0,ExportPageNumber:1,ExportRowCount:1e4});this.reportService.getIncomeStatement(e,{responseType:"blob"}).pipe(A("Export Profit & Loss"),k(a=>{let o=a.type,m=[a],f=document.createElement("a");f.href=window.URL.createObjectURL(new Blob(m,{type:o}));let _=`profit-and-loss.${o.split("/")[1]}`;f.setAttribute("download",_),document.body.appendChild(f),f.click(),document.body.removeChild(f)})).subscribe()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-income-statement"]],features:[U([Be])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","isFilterable","pageTitle","isDialogFilterVisible","isInitDialogFilterVisible"],[1,"d-flex","gap-2"],["severity","secondary","variant","outlined","icon","fa-solid fa-download","label","Export",3,"onClick"],[3,"style",4,"ngIf"],[1,"d-flex","flex-column","gap-3"],[1,"fs-5","fw-semibold"],[3,"value"],[2,"width","20%"],[2,"width","30%"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"routerLink","queryParams"],["colspan","2 ",1,"fw-semibold","text-end",2,"width","50%"],[1,"text-end","fw-semibold"],[1,"row"],[1,"col-9"],[1,"col"],["colspan","3",1,""],[1,"text-end",2,"min-width","10%"],["colspan","2",1,"fw-semibold"],[1,"d-flex","flex-column","gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for",""],["formControlName","EntityID","filterBy","value","appendTo","body","display","chip","optionLabel","value","optionValue","key","placeholder","Select an Outlet",3,"virtualScroll","virtualScrollItemSize","options","showClear"],["appendTo","body","formControlName","CashierID","optionLabel","Value","optionValue","Key","styleClass","w-100","inputStyleClass","w-100","field","Value","placeholder","Search a cashier",3,"completeMethod","onSelect","showClear","suggestions"],["formControlName","from","styleClass","w-100","appendTo","body"],["formControlName","to","styleClass","w-100","appendTo","body"]],template:function(a,o){if(a&1){let m=L();i(0,"app-main-panel",7),z("isDialogFilterVisibleChange",function(_){return y(m),q(o.dialogFilterVisible,_)||(o.dialogFilterVisible=_),b(_)})("isInitDialogFilterVisibleChange",function(_){return y(m),q(o.isInitDialogFilterVisible,_)||(o.isInitDialogFilterVisible=_),b(_)}),w("filterConfirmed",function(){return y(m),b(o.onFilterOK())}),C(1,ci,2,0,"ng-template",null,0,s)(3,wi,2,4,"ng-template",null,1,s)(5,Di,17,8,"ng-template",null,2,s),n()}a&2&&(c("isFilterable",!0)("pageTitle",o.store.data().pageTitle),W("isDialogFilterVisible",o.dialogFilterVisible)("isInitDialogFilterVisible",o.isInitDialogFilterVisible))},dependencies:[_e,$,Ie,K,Re,he,ge,ne,ee,X,Z,te,ie,ve,Ce,fe,Se,xe,pe,le,oe,Q,J,Le,Te,ae,re],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Pe=Ye(St());var Ri={metadata:{options:{outlets:[]},filter:{to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}},data:{asset:[],liability:[],equity:[],pageTitle:""},filter:{date:(0,Pe.default)().format("YYYY-MM-DD"),listOutletParam:[]}},je=me(ue(Ri),ce(t=>({totalAsset:R(()=>t.data().asset.reduce((p,e)=>p+ +e.amount,0)),totalLiability:R(()=>t.data().liability.reduce((p,e)=>p+ +e.counterAmount,0)),totalEquity:R(()=>t.data().equity.reduce((p,e)=>p+ +e.counterAmount,0))})),de(t=>{let p=h(B),e={updateFilter:a=>{V(t,o=>v(g({},o),{filter:a}))},fetchBalanceSheet:H(P(Ee(()=>{let a=t.filter();return Object.entries(a).every(([o,m])=>m!=null&&m!=="")}),j(a=>p.getBalanceSheet(a).pipe(Y({next:o=>{V(t,m=>v(g({},m),{data:o}))},error:o=>{console.error(o)}}))),ze(1))),fetchLoader:H(P(j(()=>p.getBalanceSheetLoader().pipe(Y({next:a=>{V(t,o=>v(g({},o),{metadata:a,filter:{date:(0,Pe.default)(a.filter.to).format("YYYY-MM-DD")}})),e.fetchBalanceSheet(t.filter)},error:a=>{console.error(a)}})))))};return e}),se(t=>({onInit:()=>{t.fetchLoader()}})));var Vt=Ye(St());var Ti=()=>({height:"calc(100vh - 70px)"}),Li=()=>({height:"calc(100vh - 100px)"}),Ne=t=>["/chart-of-account/account/",t],qe=()=>["/report/general-ledger"],He=t=>({id:t});function Vi(t,p){if(t&1){let e=L();i(0,"div",9)(1,"p-button",10),w("onClick",function(){y(e);let o=d();return b(o.onExport())}),n()()}}function Mi(t,p){t&1&&(i(0,"tr")(1,"th",15),r(2,"Code"),n(),i(3,"th"),r(4,"Asset"),n(),i(5,"th",16),r(6,"Total"),n()())}function Bi(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",17),r(5),n()(),i(6,"td",18)(7,"a",19),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Ne,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,qe))("queryParams",F(11,He,e.accountID)),l(),u(S(9,6,e.amount))}}function ki(t,p){if(t&1&&(i(0,"tr")(1,"td",20),r(2,"Total Asset"),n(),i(3,"td",21),r(4),x(5,"number"),n()()),t&2){let e=d(3);l(4),D(" ",S(5,1,e.store.totalAsset())," ")}}function Oi(t,p){t&1&&(i(0,"tr")(1,"td",22)(2,"span"),r(3,"No asset records found."),n()()())}function Gi(t,p){if(t&1&&(i(0,"h4",13),r(1,"Asset"),n(),i(2,"p-table",14),C(3,Mi,7,0,"ng-template",null,3,s)(5,Bi,10,13,"ng-template",null,4,s)(7,ki,6,3,"ng-template",null,5,s)(9,Oi,4,0,"ng-template",null,6,s),n()),t&2){let e=d(2);l(2),c("value",e.store.data().asset)}}function Ai(t,p){t&1&&(i(0,"tr")(1,"th",15),r(2,"Code"),n(),i(3,"th"),r(4,"Liability"),n(),i(5,"th",16),r(6,"Total"),n()())}function Pi(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",24),r(5),n()(),i(6,"td",18)(7,"a",19),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Ne,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,qe))("queryParams",F(11,He,e.accountID)),l(),u(S(9,6,e.counterAmount))}}function ji(t,p){if(t&1&&(i(0,"tr")(1,"td",20),r(2," Total Liability "),n(),i(3,"td",21),r(4),x(5,"number"),n()()),t&2){let e=d(3);l(4),D(" ",S(5,1,e.store.totalLiability())," ")}}function Ni(t,p){t&1&&(i(0,"tr")(1,"td",22)(2,"span"),r(3,"No liability records found."),n()()())}function qi(t,p){if(t&1&&(i(0,"h4",23),r(1,"Liability"),n(),i(2,"p-table",14),C(3,Ai,7,0,"ng-template",null,3,s)(5,Pi,10,13,"ng-template",null,4,s)(7,ji,6,3,"ng-template",null,5,s)(9,Ni,4,0,"ng-template",null,6,s),n()),t&2){let e=d(2);l(2),c("value",e.store.data().liability)}}function Hi(t,p){t&1&&(i(0,"tr")(1,"th",15),r(2,"Code"),n(),i(3,"th"),r(4,"Equity"),n(),i(5,"th",16),r(6,"Total"),n()())}function Yi(t,p){if(t&1&&(i(0,"tr")(1,"td"),r(2),n(),i(3,"td")(4,"a",17),r(5),n()(),i(6,"td",18)(7,"a",19),r(8),x(9,"number"),n()()()),t&2){let e=p.$implicit;l(2),u(e.code),l(2),c("routerLink",F(8,Ne,e.accountID)),l(),u(e.name),l(2),c("routerLink",I(10,qe))("queryParams",F(11,He,e.accountID)),l(),u(S(9,6,e.counterAmount))}}function Wi(t,p){if(t&1&&(i(0,"tr")(1,"td",20),r(2,"Total Equity"),n(),i(3,"td",21),r(4),x(5,"number"),n()(),i(6,"tr")(7,"td",20),r(8," Total Liability + Equity "),n(),i(9,"td",21),r(10),x(11,"number"),n()()),t&2){let e=d(3);l(4),D(" ",S(5,2,e.store.totalEquity())," "),l(6),D(" ",S(11,4,e.store.totalLiability()+e.store.totalEquity())," ")}}function zi(t,p){t&1&&(i(0,"tr")(1,"td",22)(2,"span"),r(3,"No equity records found."),n()()())}function Ui(t,p){if(t&1&&(i(0,"h4",23),r(1,"Equity"),n(),i(2,"p-table",14),C(3,Hi,7,0,"ng-template",null,3,s)(5,Yi,10,13,"ng-template",null,4,s),r(7," <"),C(8,Wi,12,6,"ng-template",null,5,s)(10,zi,4,0,"ng-template",null,6,s),n()),t&2){let e=d(2);l(2),c("value",e.store.data().equity)}}function Ki(t,p){if(t&1&&(i(0,"p-panel",11)(1,"p-scroll-panel")(2,"div",12),C(3,Gi,11,1)(4,qi,11,1)(5,Ui,12,1),n()()()),t&2){let e=d();N(I(8,Ti)),c("showHeader",!1),l(),N(I(9,Li)),l(2),O(e.Object.keys(e.store.data().asset).length>0?3:-1),l(),O(e.Object.keys(e.store.data().liability).length>0?4:-1),l(),O(e.Object.keys(e.store.data().equity).length>0?5:-1)}}function $i(t,p){if(t&1&&(i(0,"div",30)(1,"div"),r(2),n()()),t&2){let e=p.$implicit;l(2),u(e.value)}}function Ji(t,p){if(t&1&&(i(0,"form",25)(1,"div",26)(2,"label",27),r(3,"Outlet"),n(),i(4,"p-multiselect",28),C(5,$i,3,1,"ng-template",null,7,s),n()(),i(7,"div",26)(8,"label",27),r(9,"From"),n(),E(10,"p-datepicker",29),n()()),t&2){let e=d();c("formGroup",e.filterForm),l(4),c("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.metadata().options.outlets)("showClear",!0),l(6),c("iconDisplay","input")("showIcon",!0)}}var Mt=(()=>{class t{constructor(){this.store=h(je),this.ReportServiceStore=h(B),this.dialogFilterVisible=T(!1),this.isInitDialogFilterVisible=T(!1),this.Object=Object}ngOnInit(){this.generateFilterForm()}generateFilterForm(){this.filterForm=new pt({date:new G(new Date),outletID:new G([])})}onFilterOKEvent(){let{date:e,outletID:a}=this.filterForm.value;this.store.updateFilter({date:(0,Vt.default)(e).format("YYYY-MM-DD"),listOutletParam:a}),this.dialogFilterVisible.update(o=>!o)}onExport(){let e=v(g({},this.store.filter()),{export:!0,ExportPageNumber:1,ExportRowCount:1e4});this.ReportServiceStore.getBalanceSheet(e,{responseType:"blob"}).pipe(A("Export Balance Sheet"),k(a=>{let o=a.type,m=[a],f=document.createElement("a");f.href=window.URL.createObjectURL(new Blob(m,{type:o}));let _=`balance-sheet.${o.split("/")[1]}`;f.setAttribute("download",_),document.body.appendChild(f),f.click(),document.body.removeChild(f)})).subscribe()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-balance-sheet"]],features:[U([je])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isFilterable","isDialogFilterVisible","isInitDialogFilterVisible"],[1,"d-flex","gap-2"],["severity","secondary","variant","outlined","icon","fa-solid fa-download","label","Export",3,"onClick"],[3,"showHeader"],[1,"d-flex","flex-column","gap-3"],[1,"fs-5","fw-semibold","mt-3"],[3,"value"],[2,"width","20%"],[1,"text-end",2,"width","5%"],["target","_blank",1,"link","link-primary",3,"routerLink"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink","queryParams"],["colspan","2",1,"fw-semibold","text-end"],[1,"text-end","fw-semibold"],["colspan","3",1,""],[1,"fs-5","fw-semibold"],["target","_blank",1,"link","link-primary","d-flex","align-items-center",3,"routerLink"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["formControlName","outletID","display","chip","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"virtualScroll","virtualScrollItemSize","options","showClear"],["formControlName","date","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],[1,"flex","items-center","gap-2"]],template:function(a,o){if(a&1){let m=L();i(0,"app-main-panel",8),z("isDialogFilterVisibleChange",function(_){return y(m),q(o.dialogFilterVisible,_)||(o.dialogFilterVisible=_),b(_)})("isInitDialogFilterVisibleChange",function(_){return y(m),q(o.isInitDialogFilterVisible,_)||(o.isInitDialogFilterVisible=_),b(_)}),w("filterConfirmed",function(){return y(m),b(o.onFilterOKEvent())}),C(1,Vi,2,0,"ng-template",null,0,s)(3,Ki,6,10,"ng-template",null,1,s)(5,Ji,11,7,"ng-template",null,2,s),n()}a&2&&(c("pageTitle",o.store.data().pageTitle)("isFilterable",!0),W("isDialogFilterVisible",o.dialogFilterVisible)("isInitDialogFilterVisible",o.isInitDialogFilterVisible))},dependencies:[_e,$,K,Se,xe,fe,ae,re,ne,ee,X,Z,te,ie,ve,Ce,he,ge,De,oe,pe,le,Q,J],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Bt=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-comparative-balance"]],decls:3,vars:0,template:function(a,o){a&1&&(i(0,"p"),r(1,"report-comparative-balance works!"),n(),r(2,`
|
|
2
|
-
,
|
|
3
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var kt=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-cash-flow"]],decls:3,vars:0,template:function(a,o){a&1&&(i(0,"p"),r(1,"report-cash-flow works!"),n(),r(2,`
|
|
4
|
-
,
|
|
5
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ot=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-report-trial-balance"]],decls:3,vars:0,template:function(a,o){a&1&&(i(0,"p"),r(1,"report-trial-balance works!"),n(),r(2,`
|
|
6
|
-
,
|
|
7
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var sr=[{path:"",redirectTo:"general-ledger",pathMatch:"full"},{path:"",children:[{path:"general-ledger",component:Tt},{path:"profit-loss",component:Lt},{path:"balance-sheet",component:Mt},{path:"comparative-balance",component:Bt},{path:"trial-balance",component:Ot},{path:"cash-flow",component:kt}]}];export{sr as REPORTS_ROUTES};
|
package/chunk-VNHXLUHA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as u}from"./chunk-GMLRRSMP.js";import{d as o}from"./chunk-VI3AV775.js";import{ba as i,ha as r}from"./chunk-D5AXB5DE.js";var h=(()=>{class n{constructor(){this.httpService=r(o),this.authService=r(u)}getJournalInvoiceLoader(){return this.httpService.get(void 0,"api/GenerateJournal/invoice/Loader")}getCustomerSuggestions(e){let t={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetCustomerSuggestion",{params:t})}getJournalInvoice(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/invoice/get",t)}generateJournalInvoice(e){return this.httpService.post(void 0,"api/GenerateJournal/invoice/Submit",e)}getJournalSupplierBill(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/bill/get",t)}generateJournalSupplierBill(e){return this.httpService.post(void 0,"api/GenerateJournal/bill/Submit",e)}getJournalShift(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/Shift/get",t)}generateJornalShift(e){return this.httpService.post(void 0,"api/GenerateJournal/Shift/Submit",e)}getARJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinInvoice/get",t)}createARJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinInvoice/Submit",e)}getAPJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinBill/get",t)}createAPJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinBill/Submit",e)}getAdjustmentJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/InventoryAdjustment/get",t)}createAdjustmentJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/InventoryAdjustment/Submit",e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=i({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();export{h as a};
|
package/chunk-W6UD5NO5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{F as c,M as p}from"./chunk-KQAMA66M.js";import{Kb as a,Ub as e,Vb as t,Wb as i,gb as m,pc as n,wb as d,yc as l}from"./chunk-D5AXB5DE.js";import"./chunk-YQFG5XE2.js";var u=()=>["/"],v=()=>["/authentication/login2"],x=(()=>{class o{static{this.\u0275fac=function(r){return new(r||o)}}static{this.\u0275cmp=d({type:o,selectors:[["app-signup"]],decls:41,vars:4,consts:[[1,"auth-wrapper","d-flex","no-block","justify-content-center","align-items-center",2,"background",`url(../../../../../assets/images/background/login-register.jpg)
|
|
2
|
-
no-repeat center center`],[1,"auth-box","on-sidebar","m-3","m-md-0"],[1,"text-center"],[1,"db"],["src","../../../../../assets/images/logos/logo-icon.svg","alt","logo"],[1,"font-medium","mb-4","mt-2"],[1,"row"],[1,"col-12"],["action","../../../../../index.html",1,"form-horizontal","mt-3"],[1,"mb-3","row"],["type","text","required"," ","placeholder","Name",1,"form-control"],["type","text","required"," ","placeholder","Email",1,"form-control"],["type","password","required"," ","placeholder","Password",1,"form-control"],["type","password","required"," ","placeholder","Confirm Password",1,"form-control"],[1,"col-md-12"],[1,"form-check"],["type","checkbox","id","customCheck1",1,"form-check-input"],["for","customCheck1",1,"form-check-label"],["href","javascript:void(0)"],[1,"mb-3","text-center"],[1,"col-xs-12","mb-4"],[1,"btn","d-block","w-100","btn-primary",3,"routerLink"],[1,"mb-3","mb-0","mt-2"],[1,"col-sm-12","text-center"],[1,"text-primary","ms-1",3,"routerLink"]],template:function(r,f){r&1&&(e(0,"div",0)(1,"div",1)(2,"div")(3,"div",2)(4,"span",3),i(5,"img",4),t(),e(6,"h5",5),n(7,"Sign Up to Admin"),t()(),e(8,"div",6)(9,"div",7)(10,"form",8)(11,"div",9)(12,"div",7),i(13,"input",10),t()(),e(14,"div",9)(15,"div",7),i(16,"input",11),t()(),e(17,"div",9)(18,"div",7),i(19,"input",12),t()(),e(20,"div",9)(21,"div",7),i(22,"input",13),t()(),e(23,"div",9)(24,"div",14)(25,"div",15),i(26,"input",16),e(27,"label",17),n(28,"I agree to all "),e(29,"a",18),n(30,"Terms"),t()()()()(),e(31,"div",19)(32,"div",20)(33,"a",21),n(34,"SIGN UP"),t()()(),e(35,"div",22)(36,"div",23),n(37," Already have an account? "),e(38,"a",24)(39,"b"),n(40,"Sign In"),t()()()()()()()()()()),r&2&&(m(33),a("routerLink",l(2,u)),m(5),a("routerLink",l(3,v)))},dependencies:[p,c],encapsulation:2})}}return o})();export{x as Signup2Component};
|
package/chunk-WUGCCSIP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as O,b as P}from"./chunk-DJUGUNXR.js";import{a as D}from"./chunk-4J3EFT67.js";import{a as A}from"./chunk-7GT5MR57.js";import{c as S,d as E}from"./chunk-VF7TG32T.js";import{a as M,b as I}from"./chunk-F7TF7ASR.js";import{g as b}from"./chunk-L6VKOTIV.js";import"./chunk-5OXHRN43.js";import"./chunk-AM66YD6C.js";import"./chunk-FUGCJNGU.js";import"./chunk-BWS6U7BM.js";import"./chunk-VI3AV775.js";import"./chunk-F2X3VGZZ.js";import{E as w,m as y}from"./chunk-KQAMA66M.js";import{Cb as h,Lc as _,Nb as v,Ub as t,Vb as o,Wb as c,X as p,Z as s,_b as C,dc as g,ec as x,ha as l,pa as d,pc as r,qa as f,s as m,wb as u,yc as F}from"./chunk-D5AXB5DE.js";import"./chunk-YQFG5XE2.js";var k=()=>({height:"calc(100vh - 70px)"});function U(n,j){if(n&1){let a=C();t(0,"p-panel")(1,"div",3)(2,"div",4)(3,"p-card")(4,"div",5)(5,"div",6)(6,"div")(7,"h3"),r(8,"File"),o(),t(9,"p"),r(10,".csv Format"),o()()(),t(11,"div",7)(12,"div",8)(13,"p-fileupload",9,1),g("onSelect",function(e){d(a);let T=x();return f(T.onFileUpload(e))}),o(),t(15,"a",10),c(16,"i",11),t(17,"span"),r(18,"Download Template"),o()()()()(),c(19,"br"),t(20,"div",5)(21,"div",6)(22,"h3"),r(23,"Instruction"),o()(),t(24,"div",12)(25,"ol")(26,"li"),r(27,"Each account must belong to a type"),o(),t(28,"li"),r(29,"Each account must have a unique name and code"),o()()()()()()()()}n&2&&v(F(2,k))}var $=(()=>{class n{constructor(){this.service=l(D),this.router=l(w)}onFileUpload(a){console.log("File upload event:",a);let i=new FormData;Array.isArray(a.currentFiles)&&a.currentFiles.forEach(e=>{e instanceof File&&i.append("File",e,e.name)}),console.log("Form data prepared for upload:",i.get("File")),this.service.importPreviewChartOfAccounts(i).pipe(A("Import Preview"),m(e=>({cacheKey:e.cacheKey})),p(e=>this.service.importConfirmChartOfAccounts(e)),s(()=>{this.router.navigate(["/chart-of-account/account"])})).subscribe()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=u({type:n,selectors:[["app-coa-import"]],decls:3,vars:0,consts:[["content",""],["fu",""],["pageTitle","Chart of Account Import"],[1,"row","justify-content-center"],[1,"col-6"],[1,"row"],[1,"col-4"],[1,"col-8"],[1,"justify-content-start","align-items-start","d-flex","flex-column","gap-2","w-100"],["mode","basic","chooseLabel","Choose","chooseIcon","pi pi-upload","accept","text/csv","maxFileSize","1000000",3,"onSelect"],["href","https://cdn.dealpos.xyz/books-import-template/ChartOfAccount-New.csv","download","coa-template.csv",1,"link","link-secondary","ms-2","d-flex","gap-2","align-items-center"],[1,"fa-solid","fa-download"],[1,"col","p-0"]],template:function(i,e){i&1&&(t(0,"app-main-panel",2),h(1,U,30,3,"ng-template",null,0,_),o())},dependencies:[b,y,E,S,P,O,I,M],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return n})();export{$ as CoaImportComponent};
|