dealposbooks 1.0.9 → 1.1.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 +30 -30
- package/assets/scss/layouts/_customizer.scss +11 -6
- package/assets/scss/layouts/_sidebar.scss +15 -12
- package/assets/scss/style.scss +4 -0
- package/assets/scss/variables/_variables.scss +5 -12
- package/{chunk-LCATVZKP.js → chunk-223MMYH7.js} +1 -1
- package/chunk-33KLXB2L.js +180 -0
- package/{chunk-C66O26ZI.js → chunk-4Y3NYY52.js} +1 -1
- package/{chunk-MNPBLC23.js → chunk-5GQEUX4M.js} +1 -1
- package/{chunk-GCTIPWTU.js → chunk-5RRUIJ5U.js} +1 -1
- package/{chunk-25PFXJAK.js → chunk-6BFODHTZ.js} +1 -1
- package/chunk-AXJA6OO7.js +246 -0
- package/{chunk-G52TDPSD.js → chunk-AYVR3RIS.js} +1 -1
- package/{chunk-WTRMIJHX.js → chunk-B6N6C3RA.js} +1 -1
- package/{chunk-ZNN2E36Y.js → chunk-CINZRZMB.js} +1 -1
- package/{chunk-3GWDCNXX.js → chunk-DBRLQ7BX.js} +1 -1
- package/{chunk-JFAO2CIB.js → chunk-DJ5UHXOJ.js} +1 -1
- package/{chunk-EP22HTZC.js → chunk-DUOJKP2G.js} +1 -1
- package/{chunk-UC2RR4WT.js → chunk-E4ZVZRLO.js} +3 -3
- package/chunk-EBOJJWD5.js +1 -0
- package/{chunk-PG4QL7N2.js → chunk-EMVZ65TI.js} +1 -1
- package/{chunk-T7R7C3RX.js → chunk-ENPYMVZG.js} +1 -1
- package/chunk-EOLHIQHQ.js +1 -0
- package/chunk-EQDQRRRY.js +1 -0
- package/chunk-ERX7ND7E.js +1 -0
- package/chunk-FKTEL4CU.js +524 -0
- package/chunk-FOUHOMEE.js +301 -0
- package/{chunk-HG23WDL5.js → chunk-H4HFCRFZ.js} +2 -2
- package/chunk-HBVENULS.js +1 -0
- package/chunk-J53TOHZH.js +1 -0
- package/chunk-JC7YOUAM.js +1 -0
- package/{chunk-TJSPXPO6.js → chunk-JR4EQTPJ.js} +1 -1
- package/{chunk-I4HDCL3W.js → chunk-JSAAKZBO.js} +1 -1
- package/{chunk-RJYIKNTI.js → chunk-KZ2KGWUY.js} +1 -1
- package/chunk-LON3T466.js +1 -0
- package/chunk-LYEN4UBW.js +1 -0
- package/chunk-MG3SLH6O.js +1 -0
- package/chunk-NQ3CKBYP.js +1 -0
- package/{chunk-ATVC2UCR.js → chunk-NS7JH3QF.js} +1 -1
- package/{chunk-O7OAT4UO.js → chunk-O65HPMSJ.js} +1 -1
- package/{chunk-NQ24E7JY.js → chunk-OCLABZZW.js} +1 -1
- package/chunk-OH2CJBFF.js +1 -0
- package/{chunk-GMTXOQ6X.js → chunk-OSV7AMB2.js} +1 -1
- package/{chunk-PNAWRNGD.js → chunk-OWI3BWEZ.js} +1 -1
- package/chunk-OYYYX3IP.js +1 -0
- package/{chunk-I7MT7OUB.js → chunk-PNQSQQIT.js} +1 -1
- package/{chunk-JXNLXEJT.js → chunk-Q5PJ63MA.js} +1 -1
- package/{chunk-4ANSU2AT.js → chunk-R2KG54OT.js} +1 -1
- package/{chunk-NTDTN5DF.js → chunk-REHXXPZY.js} +1 -1
- package/{chunk-JT2WCR5Q.js → chunk-RIALPB2D.js} +1 -1
- package/{chunk-AWY6AD76.js → chunk-RJYO2KKV.js} +1 -1
- package/{chunk-FVXLQNAC.js → chunk-ROKYJX6Q.js} +1 -1
- package/{chunk-GRTIJ77T.js → chunk-RUGQ4OJG.js} +1 -1
- package/{chunk-SQKLMC5H.js → chunk-RUP2SWYB.js} +1 -1
- package/chunk-RUVT4SCE.js +1 -0
- package/{chunk-52HZNWBM.js → chunk-SS3CMCAX.js} +1 -1
- package/{chunk-AOB6BRGQ.js → chunk-TMY4NWZ6.js} +1 -1
- package/chunk-TOJAZ32N.js +1 -0
- package/{chunk-2RWUYFYR.js → chunk-TUL6Y2HH.js} +1 -1
- package/{chunk-AH4LZWJY.js → chunk-UGKSIDKE.js} +1 -1
- package/{chunk-Z4SGDPGH.js → chunk-UTL7D6E7.js} +1 -1
- package/{chunk-2ODJIB2A.js → chunk-V7Y6Z4AQ.js} +2 -2
- package/chunk-VY4Z33EE.js +7 -0
- package/{chunk-RSHFIZV3.js → chunk-VYKJK5YU.js} +4 -4
- package/{chunk-UVBFYB2X.js → chunk-WG7APCJU.js} +1 -1
- package/{chunk-E6QGADC5.js → chunk-X2NM4CIV.js} +1 -1
- package/chunk-XWVLTTMV.js +1 -0
- package/{chunk-FJ7O4K2Y.js → chunk-Y6MJGNH2.js} +1 -1
- package/{chunk-QJ2XA575.js → chunk-YKYI4A3V.js} +1 -1
- package/chunk-ZL4DDXH7.js +348 -0
- package/{chunk-E6EWXQXJ.js → chunk-ZU7I7MCL.js} +1 -1
- package/{chunk-KFHCGO62.js → chunk-ZZPBK2XT.js} +1 -1
- package/index.html +6 -3
- package/{main-F2OQVLJM.js → main-MCP7AVEU.js} +1 -1
- package/package.json +1 -1
- package/styles-IAH7RNKW.css +1 -0
- package/chunk-63UNI6LK.js +0 -256
- package/chunk-7LG2CFYI.js +0 -1
- package/chunk-AKBPKNCH.js +0 -1
- package/chunk-B4JAAGJX.js +0 -1
- package/chunk-BGKS3L73.js +0 -246
- package/chunk-C6Q5SG76.js +0 -1
- package/chunk-DOKYUX3G.js +0 -1
- package/chunk-EN5MVYJQ.js +0 -180
- package/chunk-ISXV3FIH.js +0 -1
- package/chunk-JQNCWTZN.js +0 -1
- package/chunk-K36WQVFR.js +0 -1
- package/chunk-LJMMN36O.js +0 -1
- package/chunk-OHVHLILJ.js +0 -1
- package/chunk-OJWZH7AB.js +0 -301
- package/chunk-RR5AUWZO.js +0 -1
- package/chunk-T3ZCO6EC.js +0 -1
- package/chunk-TNXHYK2R.js +0 -7
- package/chunk-TTG6XQNP.js +0 -1
- package/chunk-UOFRXQI7.js +0 -1
- package/chunk-WCQQSWYQ.js +0 -616
- package/styles-GUJHQHWA.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as v,b as y}from"./chunk-
|
|
1
|
+
import{a as v,b as y}from"./chunk-OCLABZZW.js";import{h as $,l as z}from"./chunk-H4HFCRFZ.js";import"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import"./chunk-JR4EQTPJ.js";import{a as U,b as q}from"./chunk-5GQEUX4M.js";import{g as K}from"./chunk-33KLXB2L.js";import"./chunk-UTL7D6E7.js";import{a as S,b as F,c as O,d as j,e as G,f as H,g as N}from"./chunk-Y6MJGNH2.js";import"./chunk-OWI3BWEZ.js";import{t as T}from"./chunk-ROKYJX6Q.js";import{d as R}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import{p as w,w as L}from"./chunk-6BFODHTZ.js";import{s as M,t as D}from"./chunk-RUGQ4OJG.js";import{Bb as C,Fc as x,Gc as B,Ic as s,Kb as l,Tc as I,Ub as n,Vb as a,X as u,c as h,ca as E,ec as _,gb as p,ia as c,mc as r,nc as m,ub as b,uc as P,vc as g,wc as k}from"./chunk-VYKJK5YU.js";import{a as d,b as f}from"./chunk-EQDQRRRY.js";var J=(()=>{class t{constructor(){this.httpService=c(R)}fetchCashAndBankLoader(){return this.httpService.get("","api/CashAndBankLoader/GetCashAndBank")}fetchCashAndBankData(){return this.httpService.get("","api/CashAndBank/GetCashAndBank")}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=E({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Y={data:[],filter:[],options:{hasGeneralLedger:!1}},A=F(N("cash-bank-store"),H(Y),O(t=>({totalBalance:I(()=>t.data().reduce((i,e)=>i+e.balance,0))})),G(t=>{let i=c(J);return{loadCashAndBankLoader:v(h(u(()=>i.fetchCashAndBankLoader().pipe(y({next:e=>{console.log("response",e),S(t,o=>f(d({},o),{options:e.options}))},error:e=>{console.log("error",e)}}))))),loadCashAndBankData:v(h(u(()=>i.fetchCashAndBankData().pipe(y({next:e=>{console.log("response",e),S(t,o=>f(d({},o),{data:e}))},error:e=>{console.log("error",e)}})))))}}),j({onInit(t){t.loadCashAndBankLoader(),t.loadCashAndBankData()}}));var Z=["class","page"],tt=()=>({"min-width":"50rem"}),et=t=>[t],nt=()=>["/report/general-ledger"],at=t=>({id:t});function ot(t,i){t&1&&(n(0,"tr")(1,"th"),r(2,"Code"),a(),n(3,"th"),r(4,"Name"),a(),n(5,"th"),r(6,"Balance"),a()())}function it(t,i){if(t&1&&(n(0,"tr")(1,"td"),r(2),a(),n(3,"td")(4,"a",6),r(5),a()(),n(6,"td")(7,"a",7),r(8),x(9,"number"),a()()()),t&2){let e=i.$implicit;p(2),m(e.code),p(2),l("routerLink",k(8,et,"/chart-of-account/account/"+e.accountID)),p(),m(e.name),p(2),l("routerLink",g(10,nt))("queryParams",k(11,at,e.accountID)),p(),m(B(9,6,e.balance))}}function rt(t,i){if(t&1&&(n(0,"tr")(1,"td",8),r(2,"Total"),a(),n(3,"td"),r(4),x(5,"number"),a()()),t&2){let e=_(2);p(4),m(B(5,1,e.store.totalBalance()))}}function pt(t,i){if(t&1&&(n(0,"p-card")(1,"p-table",5),C(2,ot,7,0,"ng-template",null,1,s)(4,it,10,13,"ng-template",null,2,s)(6,rt,6,3,"ng-template",null,3,s),a()()),t&2){let e=_();p(),l("value",e.store.data())("tableStyle",g(2,tt))}}var Q=(()=>{class t{constructor(){this.store=c(A),this.routeInfo=V}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-cash-bank",8,"page"]],features:[P([A])],attrs:Z,decls:3,vars:1,consts:[["content",""],["header",""],["body",""],["footer",""],["pageTitle","Cash and Bank",3,"routeInfo"],[3,"value","tableStyle"],[1,"link","link-primary",3,"routerLink"],[1,"link","link-primary",3,"routerLink","queryParams"],["colspan","2",1,"text-end"]],template:function(o,W){o&1&&(n(0,"app-main-panel",4),C(1,pt,8,3,"ng-template",null,0,s),a()),o&2&&l("routeInfo",W.routeInfo)},dependencies:[D,M,K,T,z,$,q,U,L,w],styles:[".card[_ngcontent-%COMP%]{height:calc(100vh - 120px)}.card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:inherit;overflow-y:auto}"],changeDetection:0})}}return t})();var jt=[{path:"",component:Q,children:[]}],V={path:"cash-of-account",title:"COA",iconName:"fa fa-calculator",class:"",label:"",labelClass:"",extralink:!1,submenu:[]};export{jt as CASH_BANK_ROUTES,V as CASH_BANK_ROUTE_PAGE};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as B}from"./chunk-UGKSIDKE.js";import{h as L,j as V,k as N,l as U}from"./chunk-H4HFCRFZ.js";import"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import"./chunk-JR4EQTPJ.js";import{g as P}from"./chunk-33KLXB2L.js";import{f as D,g as M}from"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import"./chunk-OWI3BWEZ.js";import"./chunk-ROKYJX6Q.js";import"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import"./chunk-6BFODHTZ.js";import{n as T,r as k,t as z}from"./chunk-RUGQ4OJG.js";import{Bb as x,Fc as w,Ha as R,Hc as A,Ic as C,Kb as f,Tc as v,Ub as a,Vb as o,Vc as I,Wb as h,Z as y,_b as b,dc as S,ec as s,gb as m,ia as E,mc as r,nc as d,qa as u,ra as g,ub as J}from"./chunk-VYKJK5YU.js";import{a as c,b as p}from"./chunk-EQDQRRRY.js";function G(n,_){if(n&1){let e=b();a(0,"p-button",6),S("onClick",function(){u(e);let t=s(2);return g(t.onCreateJournal())}),o()}}function O(n,_){if(n&1&&x(0,G,1,0,"p-button",5),n&2){let e=s();f("ngIf",e.selectedItems().length)}}function j(n,_){n&1&&(a(0,"tr")(1,"th",9),h(2,"p-tableHeaderCheckbox"),o(),a(3,"th"),r(4,"Outlet"),o(),a(5,"th"),r(6,"Number"),o(),a(7,"th"),r(8,"Customer"),o(),a(9,"th"),r(10,"Date"),o(),a(11,"th"),r(12,"Due"),o(),a(13,"th"),r(14,"Note"),o(),a(15,"th"),r(16,"Payment"),o()())}function K(n,_){if(n&1&&(a(0,"tr")(1,"td"),h(2,"p-tableCheckbox",10),o(),a(3,"td"),r(4),o(),a(5,"td"),r(6),o(),a(7,"td"),r(8),o(),a(9,"td"),r(10),w(11,"date"),o(),a(12,"td"),r(13),w(14,"date"),o(),a(15,"td"),r(16),o(),a(17,"td"),r(18),o()()),n&2){let e=_.$implicit;m(2),f("value",e),m(2),d(e.outlet),m(2),d(e.number),m(2),d(e.customer),m(2),d(A(11,8,e.date,"d MMM y")),m(3),d(A(14,11,e.due,"d MMM y")),m(3),d(e.note),m(2),d(e.payment)}}function F(n,_){if(n&1){let e=b();a(0,"p-table",8),S("onLazyLoad",function(t){u(e);let i=s(2);return g(i.onLazyLoad(t))})("onRowSelect",function(t){u(e);let i=s(2);return g(i.onRowSelect(t))})("onRowUnselect",function(t){u(e);let i=s(2);return g(i.onRowUnselect(t))}),x(1,j,17,0,"ng-template",null,2,C)(3,K,19,14,"ng-template",null,3,C),o()}if(n&2){let e=s(2);f("value",e.ARCollection().data)("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("paginator",!0)("rows",e.pageData().PageSize)("totalRecords",e.ARCollection().totalCount)("lazy",!0)}}function $(n,_){if(n&1&&x(0,F,5,7,"p-table",7),n&2){let e=s();f("ngIf",e.ARCollection())}}var re=(()=>{class n{constructor(){this.generateJournalService=E(B),this.ARCollection=R(null),this.pageData=R({PageNumber:1,PageSize:10}),this.selectedItems=v(()=>this.ARCollection()&&this.ARCollection().data?this.ARCollection()?.data.filter(e=>e.checked)||[]:[]),I(()=>{this.pageData()&&this.fetchARCollection()})}fetchARCollection(){let e={PageSize:this.pageData().PageSize,PageNumber:this.pageData().PageNumber};this.generateJournalService.getARJournal(e).pipe(y(l=>{this.ARCollection.update(t=>p(c({},t),{data:l.data.map(i=>p(c({},i),{checked:!1})),totalCount:l.totalCount}))})).subscribe()}ngOnInit(){console.log()}onLazyLoad(e){this.pageData.set({PageNumber:e.first/e.rows+1,PageSize:e.rows})}onRowSelect(e){let l=e.data;this.ARCollection.update(t=>p(c({},t),{data:t.data.map(i=>i.id===l.id?p(c({},i),{checked:!0}):i)}))}onRowUnselect(e){let l=e.data;Array.isArray(l)?this.ARCollection.update(t=>p(c({},t),{data:t.data.map((i,H)=>i.id===l[H].id?p(c({},i),{checked:!1}):i)})):this.ARCollection.update(t=>p(c({},t),{data:t.data.map(i=>i.id===l.id?p(c({},i),{checked:!1}):i)}))}onCreateJournal(){let l=this.selectedItems().map(t=>t.id);this.generateJournalService.createARJournal(l).subscribe(t=>{console.log("Journal created successfully:",t)})}static{this.\u0275fac=function(l){return new(l||n)}}static{this.\u0275cmp=J({type:n,selectors:[["app-ar-journal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","AR Collection"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy","onLazyLoad","onRowSelect","onRowUnselect",4,"ngIf"],["dataKey","id",3,"onLazyLoad","onRowSelect","onRowUnselect","value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy"],[2,"width","4rem"],[3,"value"]],template:function(l,t){l&1&&(a(0,"app-main-panel",4),x(1,O,1,1,"ng-template",null,0,C)(3,$,1,1,"ng-template",null,1,C),o())},dependencies:[P,z,T,k,U,L,V,N,M,D],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return n})();export{re as ARJournalComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Z as o}from"./chunk-VYKJK5YU.js";function i(e="emit"){return r=>r.pipe(o(t=>console.log(`${e}`,t)))}export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-TUL6Y2HH.js";import"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import{o as r}from"./chunk-6BFODHTZ.js";import"./chunk-RUGQ4OJG.js";import{ia as e}from"./chunk-VYKJK5YU.js";import"./chunk-EQDQRRRY.js";var a=()=>{let t=e(o),i=e(r);return!t.isAuthenticated()||t.isTokenExpired()?(i.navigate(["authentication/login"]),!1):!0};var d=[{path:"",canActivate:[a],children:[{path:"",loadComponent:()=>import("./chunk-V7Y6Z4AQ.js").then(t=>t.Dashboard1Component),data:{title:"Dashboard",headerTemplate:"header"}}]}];export{d as DashboardRoutes};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Ie,b as Me,c as Ee,d as Oe,e as we,f as De}from"./chunk-223MMYH7.js";import{a as q}from"./chunk-LYEN4UBW.js";import{a as Z,b as ee}from"./chunk-4Y3NYY52.js";import{h as te,i as ye,j as Pe,k as be,l as ne}from"./chunk-H4HFCRFZ.js";import{g as W,h as N}from"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import"./chunk-JR4EQTPJ.js";import{a as G,b as L}from"./chunk-5GQEUX4M.js";import{g as T}from"./chunk-33KLXB2L.js";import{f as H,g as U}from"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import{u as ve,v as he}from"./chunk-OWI3BWEZ.js";import{e as B,f as ue,i as j,l as _e,n as fe,o as ge,r as xe,t as z,u as Ce}from"./chunk-ROKYJX6Q.js";import{d as Se}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import{m as Y,p as A,w as V}from"./chunk-6BFODHTZ.js";import{n as R,t as D}from"./chunk-RUGQ4OJG.js";import{Bb as g,Ha as y,Ic as f,Kb as m,Nb as K,Qb as I,Sb as M,Tb as E,Tc as de,Ub as n,Vb as i,Wb as O,X as Q,Z as P,_b as w,ca as ce,dc as _,ec as c,gb as l,ia as C,mc as r,nc as x,oc as se,qa as d,ra as u,s as $,ub as b,vc as k,wc as X}from"./chunk-VYKJK5YU.js";import{a as v,b as h}from"./chunk-EQDQRRRY.js";var F=(()=>{class t{constructor(){this.httpService=C(Se)}getGlobalConfiguration(){return this.httpService.get(void 0,"/api/setup/GlobalConfiguration")}saveGlobalConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitGlobalConfiguration",e)}fetchPOSOutletConfiguration(){return this.httpService.get(void 0,"/api/Setup/OutletConfiguration")}fetchPOSOutletFormConfiguration(e){let o={params:e};return this.httpService.get(void 0,"/api/Setup/OutletConfigurationForm",o)}updatePOSOutletConfiguration(e){return this.httpService.post(void 0,"/api/Setup/SubmitOutletConfiguration",e)}fetchPOSPaymentConfiguration(){return this.httpService.get(void 0,"/api/Setup/PaymentConfiguration")}fetchPOSPaymentFormConfiguration(e){let o={params:e};return this.httpService.get(void 0,"api/Setup/PaymentConfigurationForm",o)}updatePOSPaymentConfiguration(e){return this.httpService.post(void 0,"/api/Setup/SubmitPaymentConfiguration",e)}fetchPOSTaxConfiguration(){return this.httpService.get(void 0,"/api/setup/TaxConfigurationForm")}updatePOSTaxConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitTaxConfiguration",e)}fetchPOSWriteOffConfiguration(){return this.httpService.get(void 0,"/api/setup/WriteOffConfigurationList")}fetchPOSWriteOffFormConfiguration(e){let o={params:e};return this.httpService.get(void 0,"/api/setup/WriteOffConfigurationForm",o)}updatePOSWriteOffConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitWriteOffConfiguration",e)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ne(t,s){if(t&1){let e=w();n(0,"div",4)(1,"a",5),r(2,"Cancel"),i(),n(3,"p-button",6),_("onClick",function(){d(e);let a=c();return u(a.onSubmit())}),i()()}}function $e(t,s){if(t&1&&(n(0,"p-tab",7),r(1),i()),t&2){let e=s.$implicit,o=s.$index;m("value",o),l(),x(e)}}function Ke(t,s){if(t&1&&(n(0,"div",21)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function je(t,s){if(t&1&&(n(0,"div",21)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function ze(t,s){if(t&1&&(n(0,"div",21)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function He(t,s){if(t&1&&(n(0,"div",21)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function Ue(t,s){if(t&1&&(n(0,"div",21)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function qe(t,s){if(t&1){let e=w();n(0,"p-tabs",7)(1,"p-tablist"),M(2,$e,2,2,"p-tab",7,I),i(),n(4,"p-tabpanels")(5,"p-tabpanel",7)(6,"div",8)(7,"div",9)(8,"div",10)(9,"div",11)(10,"label",12),r(11,"Payment Method "),n(12,"span",13),r(13,"Debit"),i()(),O(14,"input",14),i()(),n(15,"div",10)(16,"div",11)(17,"label",12),r(18,"Sales "),n(19,"span",15),r(20,"Credit"),i()(),n(21,"p-select",16),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Sales"))}),g(22,Ke,7,2,"ng-template",null,2,f),i()()(),n(24,"div",10)(25,"div",11)(26,"label",12),r(27,"Account Receiveable "),n(28,"span",13),r(29,"Debit"),i()(),n(30,"p-select",16),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AccountReceiveable"))}),g(31,je,7,2,"ng-template",null,2,f),i()()()(),O(33,"hr"),n(34,"div",9)(35,"div",17)(36,"div",11)(37,"label",12),r(38,"COGS "),n(39,"span",13),r(40,"Debit"),i()(),n(41,"p-select",18),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"CostOfGoodsSold"))}),g(42,ze,7,2,"ng-template",null,2,f),i()()(),n(44,"div",17)(45,"div",11)(46,"label",12),r(47,"Sold Inventory "),n(48,"span",15),r(49,"Credit"),i()(),n(50,"p-select",16),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Inventory"))}),g(51,He,7,2,"ng-template",null,2,f),i()()()(),O(53,"hr"),n(54,"div",9)(55,"div",10)(56,"div",11)(57,"label",12),r(58,"Discount "),n(59,"span",13),r(60,"Debit"),i()(),n(61,"p-select",16),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"SalesDiscount"))}),g(62,Ue,7,2,"ng-template",null,2,f),i()()()()()(),n(64,"p-tabpanel",7)(65,"div",19)(66,"div",10)(67,"div",9)(68,"div",17)(69,"div",9)(70,"div",17)(71,"div",11)(72,"label",12),r(73,"Pending Paid Inventory "),n(74,"span",13),r(75,"Debit"),i()(),n(76,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PendingPaidInventory"))}),i()()(),n(77,"div",17)(78,"div",11)(79,"label",12),r(80,"Bought Inventory "),n(81,"span",13),r(82,"Debit"),i()(),n(83,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"InventoryBought"))}),i()()()()(),n(84,"div",17)(85,"div",9)(86,"div",17)(87,"div",11)(88,"label",12),r(89,"Payment Method"),i(),O(90,"input",14),i()(),n(91,"div",17)(92,"div",11)(93,"label",12),r(94,"Account Payable"),n(95,"span",15),r(96," Credit"),i()(),n(97,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AccountPayable"))}),i()()(),n(98,"div",17)(99,"div",11)(100,"label",12),r(101,"Pending Paid Inventory "),n(102,"span",15),r(103,"Credit"),i()(),n(104,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PendingPaidInventory"))}),i()()(),n(105,"div",17)(106,"div",11)(107,"label",12),r(108,"Discount "),n(109,"span",15),r(110,"Credit"),i()(),n(111,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PurchaseDiscount"))}),i()()()()()()()()(),n(112,"p-tabpanel",7)(113,"div",19)(114,"div",10)(115,"div",9)(116,"div",17)(117,"div",9)(118,"div",17)(119,"div",11)(120,"label",12),r(121,"Adjustment Asset "),n(122,"span",13),r(123,"Debit"),i()(),n(124,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AdjustmentCogs"))}),i()()()()(),n(125,"div",17)(126,"div",9)(127,"div",17)(128,"div",11)(129,"label",12),r(130,"Adjustment Expense"),n(131,"span",15),r(132," Credit"),i()(),n(133,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Adjustment"))}),i()()()()()()()()(),n(134,"p-tabpanel",7)(135,"div",19)(136,"div",10)(137,"div",9)(138,"div",17)(139,"div",9)(140,"div",17)(141,"div",11)(142,"label",12),r(143,"Payment Method"),i(),O(144,"input",14),i()(),n(145,"div",17)(146,"div",11)(147,"label",12),r(148,"Accounting For Prepaid "),n(149,"span",13),r(150,"Debit"),i()(),n(151,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AccountingForTreatment"))}),i()()()()(),n(152,"div",17)(153,"div",9)(154,"div",17)(155,"div",11)(156,"label",12),r(157,"Accounting For Prepaid"),n(158,"span",15),r(159," Credit"),i()(),n(160,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AccountingForTreatment"))}),i()()(),n(161,"div",17)(162,"div",11)(163,"label",12),r(164,"Sales For Prepaid"),n(165,"span",15),r(166," Credit"),i()(),n(167,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"SalesForTreatment"))}),i()()()()()()()()(),n(168,"p-tabpanel",7)(169,"div",19)(170,"div",10)(171,"div",9)(172,"div",17)(173,"div",9)(174,"div",17)(175,"div",11)(176,"label",12),r(177,"Sales Return "),n(178,"span",13),r(179,"Debit"),i()(),n(180,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"SalesReturn"))}),i()()(),n(181,"div",17)(182,"div",11)(183,"label",12),r(184,"Inventory "),n(185,"span",13),r(186,"Debit"),i()(),n(187,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Inventory"))}),i()()(),n(188,"div",17)(189,"div",11)(190,"label",12),r(191,"Payment Method"),i(),O(192,"input",14),i()()()(),n(193,"div",17)(194,"div",9)(195,"div",17)(196,"div",11)(197,"label",12),r(198,"Payment Method"),i(),O(199,"input",14),i()(),n(200,"div",17)(201,"div",11)(202,"label",12),r(203,"COGS"),n(204,"span",15),r(205," Credit"),i()(),n(206,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"CostOfGoodsSold"))}),i()()(),n(207,"div",17)(208,"div",11)(209,"label",12),r(210,"Purchase Return"),n(211,"span",15),r(212," Credit"),i()(),n(213,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PurchaseReturn"))}),i()()()()()()()()(),n(214,"p-tabpanel",7)(215,"div",19)(216,"div",10)(217,"div",9)(218,"div",17)(219,"div",9)(220,"div",10)(221,"div",11)(222,"label",12),r(223,"Consignment Payable "),n(224,"span",13),r(225,"Debit"),i()(),n(226,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Consignment"))}),i()()()()()()()()(),n(227,"p-tabpanel",7)(228,"div",19)(229,"div",10)(230,"div",9)(231,"div",17)(232,"div",9)(233,"div",17)(234,"div",11)(235,"label",12),r(236,"Payment Fee "),n(237,"span",13),r(238,"Debit"),i()(),n(239,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PaymentFee"))}),i()()(),n(240,"div",17)(241,"div",11)(242,"label",12),r(243,"Payment Method"),i(),O(244,"input",14),i()()()(),n(245,"div",17)(246,"div",9)(247,"div",17)(248,"div",11)(249,"label",12),r(250,"Sales"),i(),O(251,"input",14),i()(),n(252,"div",17)(253,"div",11)(254,"label",12),r(255,"Surcharge"),i(),n(256,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Surcharge"))}),i()()()()()()()()(),n(257,"p-tabpanel",7)(258,"div",19)(259,"div",10)(260,"div",9)(261,"div",17)(262,"div",9)(263,"div",17)(264,"div",11)(265,"label",12),r(266,"Finished Goods "),n(267,"span",13),r(268,"Debit"),i()(),n(269,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"FinishedGoods"))}),i()()()()(),n(270,"div",17)(271,"div",9)(272,"div",17)(273,"div",11)(274,"label",12),r(275,"Raw Material"),i(),n(276,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"RawMaterial"))}),i()()(),n(277,"div",17)(278,"div",11)(279,"label",12),r(280,"Production Expense"),i(),n(281,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"ProductionExpenses"))}),i()()()()()()()()(),n(282,"p-tabpanel",7)(283,"div",19)(284,"div",10)(285,"div",9)(286,"div",10)(287,"div",9)(288,"div",17)(289,"div",11)(290,"label",12),r(291,"Crossing Account "),n(292,"span",13),r(293,"Debit"),i()(),n(294,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"CrossingAccount"))}),i()()(),n(295,"div",17)(296,"div",11)(297,"label",12),r(298,"Retained Earnings "),n(299,"span",13),r(300,"Debit"),i()(),n(301,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"RetainedEarnings"))}),i()()(),n(302,"div",17)(303,"div",11)(304,"label",12),r(305,"Current Earnings "),n(306,"span",13),r(307,"Debit"),i()(),n(308,"p-select",20),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"CurrentEarnings"))}),i()()()()()()()()()()()}if(t&2){let e=c();m("value",0),l(2),E(e.tabs()),l(3),m("value",0),l(16),m("virtualScrollItemSize",50)("ngModel",e.form()[e.getAccountIDByKey("Sales")].accountID)("options",e.POSIntegration().options.accounts),l(9),m("virtualScrollItemSize",50)("ngModel",e.form()[e.getAccountIDByKey("AccountReceiveable")].accountID)("options",e.POSIntegration().options.accounts),l(11),m("filter",!0)("virtualScroll",!0)("virtualScrollItemSize",25)("ngModel",e.form()[e.getAccountIDByKey("CostOfGoodsSold")].accountID)("options",e.POSIntegration().options.accounts),l(9),m("virtualScrollItemSize",50)("ngModel",e.form()[e.getAccountIDByKey("Inventory")].accountID)("options",e.POSIntegration().options.accounts),l(11),m("virtualScrollItemSize",50)("ngModel",e.form()[e.getAccountIDByKey("SalesDiscount")].accountID)("options",e.POSIntegration().options.accounts),l(3),m("value",1),l(12),m("ngModel",e.form()[e.getAccountIDByKey("PendingPaidInventory")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("InventoryBought")].accountID)("options",e.POSIntegration().options.accounts),l(14),m("ngModel",e.form()[e.getAccountIDByKey("AccountPayable")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("PendingPaidInventory")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("PurchaseDiscount")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",2),l(12),m("ngModel",e.form()[e.getAccountIDByKey("AdjustmentCogs")].accountID)("options",e.POSIntegration().options.accounts),l(9),m("ngModel",e.form()[e.getAccountIDByKey("Adjustment")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",3),l(17),m("ngModel",e.form()[e.getAccountIDByKey("AccountingForTreatment")].accountID)("options",e.POSIntegration().options.accounts),l(9),m("ngModel",e.form()[e.getAccountIDByKey("AccountingForTreatment")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("SalesForTreatment")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",4),l(12),m("ngModel",e.form()[e.getAccountIDByKey("SalesReturn")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("Inventory")].accountID)("options",e.POSIntegration().options.accounts),l(19),m("ngModel",e.form()[e.getAccountIDByKey("CostOfGoodsSold")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("PurchaseReturn")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",5),l(12),m("ngModel",e.form()[e.getAccountIDByKey("Consignment")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",6),l(12),m("ngModel",e.form()[e.getAccountIDByKey("PaymentFee")].accountID)("options",e.POSIntegration().options.accounts),l(17),m("ngModel",e.form()[e.getAccountIDByKey("Surcharge")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",7),l(12),m("ngModel",e.form()[e.getAccountIDByKey("FinishedGoods")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("RawMaterial")].accountID)("options",e.POSIntegration().options.accounts),l(5),m("ngModel",e.form()[e.getAccountIDByKey("ProductionExpenses")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",8),l(12),m("ngModel",e.form()[e.getAccountIDByKey("CrossingAccount")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("RetainedEarnings")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("CurrentEarnings")].accountID)("options",e.POSIntegration().options.accounts)}}var Te=(()=>{class t{constructor(){this.POSSetupService=C(F),this.tabs=y(["Sell","Buy","Adjustment","Prepaid","Return","Debt","Payment Fee","Manufacturing","Advance"]),this.POSIntegration=y(null),this.form=y([])}ngOnInit(){this.POSSetupService.getGlobalConfiguration().pipe(P(e=>{this.POSIntegration.set(e),this.form.set(e.form)})).subscribe()}updateAccountID(e,o){let a=this.POSIntegration().descriptions.findIndex(p=>p.name.toLowerCase()===o.toLowerCase());if(a!==-1){let p=this.form().findIndex(S=>S.typeID===+this.POSIntegration().descriptions[a].id);if(p!==-1){let S=[...this.form()];S[p]=h(v({},S[p]),{accountID:e}),this.form.set(S)}}}getAccountIDByKey(e){return this.form().findIndex(o=>this.POSIntegration().descriptions.some(a=>a.name.toLowerCase()===e.toLowerCase()&&+a.id===o.typeID))}onSubmit(){let e={form:this.form()};this.POSSetupService.saveGlobalConfiguration(e).pipe(q("response")).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-global"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["item",""],["pageTitle","POS Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[3,"value"],[1,"d-flex","flex-column","gap-3"],[1,"row","row-gap-4"],[1,"col-6"],[1,"d-flex","flex-column"],["for",""],[1,"text-success","fs-2"],["type","text","pInputText","","value","xxxxxxxxxxxxxxxxxxxx","readonly",""],[1,"text-danger","fs-2"],["filter","","filterBy","code","virtualScroll","","optionLabel","name","optionValue","id","placeholder","Select a City",3,"ngModelChange","virtualScrollItemSize","ngModel","options"],[1,"col"],["filterBy","code","optionLabel","name","optionValue","id","placeholder","Select a City",3,"ngModelChange","filter","virtualScroll","virtualScrollItemSize","ngModel","options"],[1,"row"],["optionLabel","name","optionValue","id","placeholder","Select a City",3,"ngModelChange","ngModel","options"],[1,"d-flex","gap-3"]],template:function(o,a){o&1&&(n(0,"app-main-panel",3),g(1,Ne,4,0,"ng-template",null,0,f)(3,qe,309,73,"ng-template",null,1,f),i())},dependencies:[T,De,we,Oe,Ee,Ie,Me,he,ve,N,W,z,B,j,D,V,A,U,H],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Je=t=>[t];function Qe(t,s){if(t&1&&(n(0,"th",7),r(1),i()),t&2){let e=s.$implicit;l(),x(e.name.slice(0,10))}}function Xe(t,s){if(t&1&&(n(0,"tr")(1,"th",6),r(2,"Method"),i(),M(3,Qe,2,1,"th",7,I),i()),t&2){let e=c(3);l(3),E(e.paymentConfiguration().outlets)}}function Ye(t,s){if(t&1&&(n(0,"td"),r(1),i()),t&2){let e=s.$implicit;l(),x(e.accountName)}}function Ze(t,s){if(t&1&&(n(0,"tr")(1,"td",8)(2,"a",9),r(3),i()(),M(4,Ye,2,1,"td",null,I),i()),t&2){let e=s.$implicit;l(2),m("routerLink",X(2,Je,e.id)),l(),x(e.name),l(),E(e.accounts)}}function et(t,s){if(t&1&&(n(0,"p-table",5),g(1,Xe,5,0,"ng-template",null,1,f)(3,Ze,6,4,"ng-template",null,2,f),i()),t&2){let e=c(2);m("scrollable",!0)("scrollHeight","calc(100vh - 150px)")("value",e.paymentConfiguration().payment)}}function tt(t,s){t&1&&(n(0,"app-main-panel",4),g(1,et,5,3,"ng-template",null,0,f),i())}var Ae=(()=>{class t{constructor(){this.POSSetupService=C(F),this.paymentConfiguration=y(null)}ngOnInit(){this.POSSetupService.fetchPOSPaymentConfiguration().pipe(P(e=>{this.paymentConfiguration.set(e)})).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-payment"]],decls:1,vars:1,consts:[["content",""],["header",""],["body",""],["pageTitle","Payment Method Accounting",4,"ngIf"],["pageTitle","Payment Method Accounting"],[3,"scrollable","scrollHeight","value"],["pFrozenColumn","",2,"min-width","300px"],[2,"min-width","200px"],["pFrozenColumn",""],[1,"link-primary",3,"routerLink"]],template:function(o,a){o&1&&g(0,tt,3,0,"app-main-panel",3),o&2&&m("ngIf",a.paymentConfiguration())},dependencies:[T,ne,te,ye,D,R,V,A],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var nt=t=>[t];function it(t,s){if(t&1&&(n(0,"th"),r(1),i()),t&2){let e=s.$implicit;l(),x(e.value)}}function ot(t,s){if(t&1&&(n(0,"tr")(1,"th"),r(2,"Name"),i(),M(3,it,2,1,"th",null,I),i()),t&2){let e=c(2);l(3),E(e.outletList().listCOAType)}}function at(t,s){if(t&1&&(n(0,"td"),r(1),i()),t&2){let e=s.$implicit;l(),x(e)}}function rt(t,s){if(t&1&&(n(0,"tr")(1,"td")(2,"a",5),r(3),i()(),M(4,at,2,1,"td",null,I),i()),t&2){let e=s.$implicit;l(2),m("routerLink",X(2,nt,e.OutletID)),l(),se(" ",e.OutletName,""),l(),E(e.Accounts)}}function lt(t,s){if(t&1&&(n(0,"p-card")(1,"p-table",4),g(2,ot,5,0,"ng-template",null,1,f)(4,rt,6,4,"ng-template",null,2,f),i()()),t&2){let e=c();l(),m("scrollable",!0)("scrollHeight","calc(100vh - 150px)")("value",e.outletList().listOutletAccount)}}var Ve=(()=>{class t{constructor(){this.POSSetupService=C(F),this.outletList=y(null)}ngOnInit(){this.POSSetupService.fetchPOSOutletConfiguration().pipe(P(e=>{this.outletList.set(e)})).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-outlet"]],decls:3,vars:0,consts:[["content",""],["header",""],["body",""],["pageTitle","Outlet Account"],[3,"scrollable","scrollHeight","value"],[1,"link-primary",3,"routerLink"]],template:function(o,a){o&1&&(n(0,"app-main-panel",3),g(1,lt,6,3,"ng-template",null,0,f),i())},dependencies:[T,D,L,G,ne,te,V,A],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();function pt(t,s){if(t&1){let e=w();n(0,"a",4),r(1,"Cancel"),i(),n(2,"button",5),_("click",function(){d(e);let a=c(2);return u(a.updatePOsOutletConfiguration())}),r(3," Save "),i()}}function mt(t,s){if(t&1&&(n(0,"div",9)(1,"div",10)(2,"label",11),r(3),i(),O(4,"p-select",12),i()()),t&2){let e=s.$implicit,o=s.$index,a=c(4);m("formGroup",e),l(2),m("for","accountID-"+o),l(),x(a.outletForm().form[o].TypeName),l(),m("inputId","accountID-"+o)("options",a.outletForm().options.accounts)}}function ct(t,s){if(t&1&&(n(0,"div",8),M(1,mt,5,5,"div",9,I),i()),t&2){let e=c(3);l(),E(e.form.controls.item.controls)}}function st(t,s){if(t&1&&(n(0,"p-card",6),g(1,ct,3,0,"ng-template",7),i()),t&2){let e=c(2);m("formGroup",e.form)}}function dt(t,s){if(t&1&&(n(0,"app-main-panel",3),g(1,pt,4,0,"ng-template",null,0,f)(3,st,2,1,"ng-template",null,1,f),i()),t&2){let e=c();m("pageTitle","Edit "+e.outletForm().form[0].OutletName+" COA")}}var ke=(()=>{class t{constructor(){this.route=C(Y),this.POSSetupService=C(F),this.outletForm=y(null),this.fb=C(xe)}ngOnInit(){this.generateForm(),this.route.paramMap.pipe($(e=>e.get("id")),Q(e=>this.POSSetupService.fetchPOSOutletFormConfiguration({outletID:e})),P(e=>{this.outletForm.set(e),e.form.forEach(o=>{let a=this.fb.group({AccountID:this.fb.control(o.AccountID),TypeID:this.fb.control(o.TypeID),TypeName:this.fb.control(o.TypeName),OutletID:this.fb.control(o.OutletID),OutletName:this.fb.control(o.OutletName)});this.form.controls.item.push(a)})}),q("response")).subscribe()}generateForm(){this.form=this.fb.group({item:this.fb.array([])})}get item(){return this.form.get("item")}updatePOsOutletConfiguration(){let{item:e}=this.form.getRawValue(),o={form:e};this.POSSetupService.updatePOSOutletConfiguration(o).pipe(q("response")).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-outlet-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle",4,"ngIf"],[3,"pageTitle"],[1,"p-button","p-button-secondary","p-button-outlined"],["type","button",1,"btn","btn-primary","rounded",3,"click"],[3,"formGroup"],["formArrayName","item"],[1,"row","row-gap-3"],[1,"col-4",3,"formGroup"],[1,"d-flex","flex-column"],[3,"for"],["formControlName","AccountID","optionLabel","name","optionValue","id","placeholder","Select an account",3,"inputId","options"]],template:function(o,a){o&1&&g(0,dt,5,1,"app-main-panel",2),o&2&&m("ngIf",a.outletForm())},dependencies:[T,D,R,L,G,Ce,B,ue,_e,ge,fe,N,W],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var ut=()=>({height:"calc(100vh - 100px)"}),_t=()=>({width:"100%",height:"calc(100vh - 150px)"}),ft=()=>({width:"100%"});function gt(t,s){if(t&1){let e=w();n(0,"button",4),r(1,"Cancel"),i(),n(2,"button",5),_("click",function(){d(e);let a=c(2);return u(a.updatePOSOutletConfiguration())}),r(3," Save "),i()}}function xt(t,s){if(t&1){let e=w();n(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),r(4),i()(),n(5,"div",11)(6,"p-select",12),_("ngModelChange",function(a){let p=d(e).$index,S=c(3);return u(S.updateAccountById(a,p))}),i()()()()}if(t&2){let e=s.$implicit,o=s.$index,a=c(3);l(4),x(e.outletName.slice(0,15)),l(2),K(k(7,ft)),m("ngModel",a.paymentForm().form.accounts[o].accountID)("virtualScroll",!0)("virtualScrollItemSize",50)("options",a.paymentForm().options.chartOfAccount.result)}}function Ct(t,s){if(t&1&&(n(0,"p-card")(1,"p-scrollpanel")(2,"div",6),M(3,xt,7,8,"div",7,I),i()()()),t&2){let e=c(2);K(k(4,ut)),l(),K(k(5,_t)),l(2),E(e.paymentForm().form.accounts)}}function St(t,s){t&1&&(n(0,"app-main-panel",3),g(1,gt,4,0,"ng-template",null,0,f)(3,Ct,5,6,"ng-template",null,1,f),i())}var Be=(()=>{class t{constructor(){this.route=C(Y),this.POSSetupService=C(F),this.paymentForm=y(null)}ngOnInit(){this.route.paramMap.pipe($(e=>+e.get("id")),Q(e=>this.POSSetupService.fetchPOSPaymentFormConfiguration({ID:e})),P(e=>{this.paymentForm.set(e)}),q("response")).subscribe()}updateAccountById(e,o){let a=this.paymentForm().form.accounts,p=h(v({},this.paymentForm()),{form:h(v({},this.paymentForm().form),{accounts:a.map((S,ie)=>ie===o?h(v({},S),{accountID:e}):S)})});this.paymentForm.set(p)}updatePOSOutletConfiguration(){let e={form:[...this.paymentForm().form.accounts]};this.POSSetupService.updatePOSPaymentConfiguration(e).pipe(q("response")).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-payment-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],["pageTitle","Payment Form Accounting",4,"ngIf"],["pageTitle","Payment Form Accounting"],[1,"btn","btn-secondary","rounded"],[1,"btn","btn-primary","rounded",3,"click"],[1,"row","row-gap-3"],[1,"col-4","d-flex","flex-column","gap-2"],[1,"row","row-gap-4"],[1,"col-6"],["for",""],[1,"col"],["optionLabel","value","optionValue","key","placeholder","Select an account",1,"w-full",3,"ngModelChange","ngModel","virtualScroll","virtualScrollItemSize","options"]],template:function(o,a){o&1&&g(0,St,5,0,"app-main-panel",2),o&2&&m("ngIf",a.paymentForm())},dependencies:[L,G,T,D,R,ee,Z,N,W,z,B,j],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var vt=()=>({width:"100%",height:"calc(100vh - 150px)"});function ht(t,s){if(t&1){let e=w();n(0,"div",3)(1,"a",4),r(2,"Cancel"),i(),n(3,"p-button",5),_("onClick",function(){d(e);let a=c();return u(a.updatePOSTaxConfiguration())}),i()()}}function yt(t,s){if(t&1){let e=w();n(0,"div",9)(1,"div",10)(2,"label",11),r(3),i(),n(4,"p-select",12),_("ngModelChange",function(a){let p=d(e).$index,S=c(2);return u(S.updateAccountID(a,p))}),i()()()}if(t&2){let e=s.$implicit,o=s.$index,a=c(2);l(3),x(e.name),l(),m("options",a.taxForm().options.chartOfAccount)("ngModel",a.taxForm().form[o].accountID)}}function Pt(t,s){if(t&1&&(n(0,"p-card")(1,"p-scroll-panel")(2,"div",6)(3,"div",7)(4,"div",8),M(5,yt,5,3,"div",9,I),i()()()()()),t&2){let e=c();l(),K(k(2,vt)),l(4),E(e.taxForm().form)}}var Ge=(()=>{class t{constructor(){this.POSSetupService=C(F),this.taxForm=y(null)}ngOnInit(){this.POSSetupService.fetchPOSTaxConfiguration().pipe(P(e=>{this.taxForm.set(e)})).subscribe()}updateAccountID(e,o){let a=this.taxForm().form,p=h(v({},this.taxForm()),{form:a.map((S,ie)=>ie===o?h(v({},S),{accountID:e}):S)});this.taxForm.set(p)}updatePOSTaxConfiguration(){let e={form:[...this.taxForm().form]};this.POSSetupService.updatePOSTaxConfiguration(e).pipe(P(o=>console.log(o))).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-tax"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["pageTitle","Tax Setup"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[1,"row"],[1,"col"],[1,"row","row-gap-3"],[1,"col-3"],[1,"d-flex","flex-column"],["for",""],["optionLabel","value","optionValue","key","placeholder","Select a account",3,"ngModelChange","options","ngModel"]],template:function(o,a){o&1&&(n(0,"app-main-panel",2),g(1,ht,4,0,"ng-template",null,0,f)(3,Pt,7,3,"ng-template",null,1,f),i())},dependencies:[T,L,G,D,N,W,ee,Z,z,B,j,V,A,U,H],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var bt=()=>({"min-width":"50rem"}),It=t=>[t];function Mt(t,s){t&1&&O(0,"p-button",6)}function Et(t,s){if(t&1&&g(0,Mt,1,0,"p-button",5),t&2){let e=c();m("ngIf",e.hasCheckedItems())}}function Ot(t,s){t&1&&(n(0,"tr")(1,"th",8),O(2,"p-tableHeaderCheckbox"),i(),n(3,"th"),r(4,"Name"),i(),n(5,"th"),r(6,"Description"),i()())}function wt(t,s){if(t&1&&(n(0,"tr")(1,"td"),O(2,"p-tableCheckbox",9),i(),n(3,"td")(4,"a",10),r(5),i()(),n(6,"td"),r(7),i()()),t&2){let e,o=s.$implicit;l(2),m("value",o),l(2),m("routerLink",X(4,It,o.id)),l(),x(o.name),l(2),x((e=o.description)!==null&&e!==void 0?e:"N/A")}}function Dt(t,s){if(t&1){let e=w();n(0,"p-table",7),_("onRowSelect",function(a){d(e);let p=c();return u(p.onRowSelect(a))})("onRowUnselect",function(a){d(e);let p=c();return u(p.onRowSelect(a))})("onHeaderCheckboxToggle",function(a){d(e);let p=c();return u(p.onSelectAll(a))}),g(1,Ot,7,0,"ng-template",null,2,f)(3,wt,8,6,"ng-template",null,3,f),i()}if(t&2){let e=c();m("value",e.writeoffList().data)("tableStyle",k(2,bt))}}var Le=(()=>{class t{constructor(){this.POSSetupService=C(F),this.writeoffList=y(null),this.hasCheckedItems=de(()=>{let e=this.writeoffList();return!e||!e.data||!Array.isArray(e.data)?!1:e.data.some(o=>o&&o.checked===!0)})}ngOnInit(){this.POSSetupService.fetchPOSWriteOffConfiguration().pipe($(e=>h(v({},e),{data:e.data.map(o=>h(v({},o),{checked:!1}))})),P(e=>{this.writeoffList.set(e)})).subscribe()}onRowSelect(e){console.log("Selected Row:",e.data);let o=this.writeoffList();if(!o||!o.data)return;let a=o.data.findIndex(p=>p.id===e.data.id);if(a!==-1){let p=[...o.data];p[a]=h(v({},p[a]),{checked:!p[a].checked}),this.writeoffList.set(h(v({},o),{data:p}))}}onSelectAll(e){let o=this.writeoffList();if(!o?.data)return;let a=o.data.map(p=>h(v({},p),{checked:e.checked}));this.writeoffList.set(h(v({},o),{data:a}))}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-writeoff"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Write Off"],["severity","danger","label","Delete","icon","fa-solid fa-trash",4,"ngIf"],["severity","danger","label","Delete","icon","fa-solid fa-trash"],["dataKey","id",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","tableStyle"],[2,"width","4rem"],[3,"value"],[1,"link-primary",3,"routerLink"]],template:function(o,a){o&1&&(n(0,"app-main-panel",4),g(1,Et,1,1,"ng-template",null,0,f)(3,Dt,5,3,"ng-template",null,1,f),i())},dependencies:[T,D,R,ne,te,Pe,be,V,A,U,H],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Tt=()=>({witdh:"100%",height:"calc(100vh - 150px)"});function Ft(t,s){if(t&1){let e=w();n(0,"div")(1,"a",4),r(2,"Cancel"),i(),n(3,"p-button",5),_("onClick",function(){d(e);let a=c(2);return u(a.updateWriteOffConfiguration())}),i()()}}function At(t,s){if(t&1){let e=w();n(0,"div",9)(1,"div",10)(2,"label",11),r(3),i(),n(4,"p-select",12),_("ngModelChange",function(a){let p=d(e).$index,S=c(3);return u(S.updateAccountById(a,p))}),i()()()}if(t&2){let e=s.$implicit,o=c(3);l(3),x(e.name),l(),m("ngModel",e.accountID)("options",o.writeOffForm().options.account)("virtualScroll",!0)("virtualScrollItemSize",50)}}function Vt(t,s){if(t&1&&(n(0,"p-card")(1,"p-scroll-panel")(2,"div",6)(3,"div",7)(4,"div",8),M(5,At,5,5,"div",9,I),i()()()()()),t&2){let e=c(2);l(),K(k(2,Tt)),l(4),E(e.writeOffForm().form)}}function kt(t,s){if(t&1&&(n(0,"app-main-panel",3),g(1,Ft,4,0,"ng-template",null,0,f)(3,Vt,7,3,"ng-template",null,1,f),i()),t&2){let e=c();m("pageTitle","Write Off Form "+e.writeOffForm().info.name)}}var We=(()=>{class t{constructor(){this.POSSetupService=C(F),this.route=C(Y),this.writeOffForm=y(null)}ngOnInit(){this.route.paramMap.pipe($(e=>e.get("id")),Q(e=>this.POSSetupService.fetchPOSWriteOffFormConfiguration({ID:e})),P(e=>this.writeOffForm.set(e))).subscribe()}updateAccountById(e,o){let a=this.writeOffForm().form,p=h(v({},this.writeOffForm()),{form:a.map((S,ie)=>ie===o?h(v({},S),{accountID:e}):S)});this.writeOffForm.set(p)}updateWriteOffConfiguration(){let e={form:this.writeOffForm().form};this.POSSetupService.updatePOSWriteOffConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-writeoff-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle",4,"ngIf"],[3,"pageTitle"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[1,"row"],[1,"col"],[1,"row","row-gap-3"],[1,"col-3"],[1,"d-flex","flex-column"],["for",""],["optionLabel","value","optionValue","key","placeholder","Select a City",3,"ngModelChange","ngModel","options","virtualScroll","virtualScrollItemSize"]],template:function(o,a){o&1&&g(0,kt,5,1,"app-main-panel",2),o&2&&m("ngIf",a.writeOffForm())},dependencies:[T,D,R,L,G,ee,Z,N,W,z,B,j,V,A,U,H],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Qi=[{path:"",redirectTo:"global",pathMatch:"full"},{path:"",children:[{path:"global",component:Te},{path:"outlets",component:Ve},{path:"outlets/:id",component:ke},{path:"payments",component:Ae},{path:"payments/:id",component:Be},{path:"taxs",component:Ge},{path:"writeoff",component:Le},{path:"writeoff/:id",component:We}]}];export{Qi as POS_SETUP_ROUTES};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ce}from"./chunk-
|
|
1
|
+
import{e as ce}from"./chunk-DUOJKP2G.js";import{c as pe}from"./chunk-JR4EQTPJ.js";import{f as se,g as de}from"./chunk-UTL7D6E7.js";import{i as re}from"./chunk-OWI3BWEZ.js";import{Fa as ie,Ga as ae,Ha as V,Pa as le,ya as oe}from"./chunk-ROKYJX6Q.js";import{c as ne,d as S,f as Q,g as B,h as M}from"./chunk-S35HUXPS.js";import{k as X,n as Y,o as Z,p as ee,t as te}from"./chunk-RUGQ4OJG.js";import{Ab as H,Bb as c,Ic as U,Jb as f,Kb as i,Ob as C,Rc as F,Ub as d,Vb as m,Wb as T,Xb as x,Yb as I,Zb as P,_b as w,ca as O,da as $,dc as k,ec as s,fc as N,gb as a,gc as E,hc as u,ia as A,ic as W,jc as _,kc as g,mc as K,nc as L,qa as b,ra as y,ta as D,ub as j,uc as z,vb as q,wc as h,xc as G,yb as R,yc as J,za as v}from"./chunk-VYKJK5YU.js";var ue=["header"],me=["icons"],fe=["content"],he=["footer"],be=["headericons"],ye=["contentWrapper"],Te=["*",[["p-header"]],[["p-footer"]]],ve=["*","p-header","p-footer"],Ce=(e,o)=>({"p-panel p-component":!0,"p-panel-toggleable":e,"p-panel-expanded":o}),xe=e=>({transitionParams:e,height:"0",opacity:"0"}),Ie=e=>({value:"hidden",params:e}),Pe=e=>({transitionParams:e,height:"*",opacity:"1"}),we=e=>({value:"visible",params:e}),ke=(e,o,t)=>({"p-panel-icons-start":e,"p-panel-icons-end":o,"p-panel-icons-center":t}),Ee=e=>({$implicit:e});function Fe(e,o){if(e&1&&(d(0,"span",12),K(1),m()),e&2){let t=s(2);f("id",t.id+"_header"),a(),L(t._header)}}function Se(e,o){e&1&&P(0)}function Qe(e,o){}function Be(e,o){e&1&&c(0,Qe,0,0,"ng-template")}function Me(e,o){if(e&1&&T(0,"span"),e&2){let t=s(6);C(t.expandIcon)}}function Ve(e,o){e&1&&T(0,"MinusIcon")}function De(e,o){if(e&1&&(x(0),c(1,Me,1,2,"span",16)(2,Ve,1,0,"MinusIcon",14),I()),e&2){let t=s(5);a(),i("ngIf",t.expandIcon),a(),i("ngIf",!t.expandIcon)}}function Oe(e,o){if(e&1&&T(0,"span"),e&2){let t=s(6);C(t.collapseIcon)}}function $e(e,o){e&1&&T(0,"PlusIcon")}function Ae(e,o){if(e&1&&(x(0),c(1,Oe,1,2,"span",16)(2,$e,1,0,"PlusIcon",14),I()),e&2){let t=s(5);a(),i("ngIf",t.collapseIcon),a(),i("ngIf",!t.collapseIcon)}}function je(e,o){if(e&1&&(x(0),c(1,De,3,2,"ng-container",14)(2,Ae,3,2,"ng-container",14),I()),e&2){let t=s(4);a(),i("ngIf",!t.collapsed),a(),i("ngIf",t.collapsed)}}function qe(e,o){}function Re(e,o){e&1&&c(0,qe,0,0,"ng-template")}function He(e,o){if(e&1&&c(0,je,3,2,"ng-container",14)(1,Re,1,0,null,15),e&2){let t=s(3);i("ngIf",!t.headerIconsTemplate&&!t._headerIconsTemplate&&!(t.toggleButtonProps!=null&&t.toggleButtonProps.icon)),a(),i("ngTemplateOutlet",t.headerIconsTemplate||t._headerIconsTemplate)("ngTemplateOutletContext",h(3,Ee,t.collapsed))}}function Ne(e,o){if(e&1){let t=w();d(0,"p-button",13),k("click",function(n){b(t);let r=s(2);return y(r.onIconClick(n))})("keydown",function(n){b(t);let r=s(2);return y(r.onKeyDown(n))}),c(1,He,2,5,"ng-template",null,1,U),m()}if(e&2){let t=s(2);i("text",!0)("rounded",!0)("buttonProps",t.toggleButtonProps),f("id",t.id+"_header")("aria-label",t.buttonAriaLabel)("aria-controls",t.id+"_content")("aria-expanded",!t.collapsed)}}function We(e,o){if(e&1){let t=w();d(0,"div",8),k("click",function(n){b(t);let r=s();return y(r.onHeaderClick(n))}),c(1,Fe,2,2,"span",9),E(2,1),c(3,Se,1,0,"ng-container",6),d(4,"div",10),c(5,Be,1,0,null,6)(6,Ne,3,7,"p-button",11),m()()}if(e&2){let t=s();f("id",t.id+"-titlebar"),a(),i("ngIf",t._header),a(2),i("ngTemplateOutlet",t.headerTemplate||t._headerTemplate),a(),i("ngClass",J(6,ke,t.iconPos==="start",t.iconPos==="end",t.iconPos==="center")),a(),i("ngTemplateOutlet",t.iconTemplate||t._iconTemplate),a(),i("ngIf",t.toggleable)}}function Ke(e,o){e&1&&P(0)}function Le(e,o){e&1&&P(0)}function ze(e,o){if(e&1&&(d(0,"div",17),E(1,2),c(2,Le,1,0,"ng-container",6),m()),e&2){let t=s();a(2),i("ngTemplateOutlet",t.footerTemplate||t._footerTemplate)}}var Ge=({dt:e})=>`
|
|
2
2
|
.p-panel {
|
|
3
3
|
border: 1px solid ${e("panel.border.color")};
|
|
4
4
|
border-radius: ${e("panel.border.radius")};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Ub as e,Vb as t,Wb as o,mc as r,ub as m}from"./chunk-
|
|
1
|
+
import{Ub as e,Vb as t,Wb as o,mc as r,ub as m}from"./chunk-VYKJK5YU.js";import"./chunk-EQDQRRRY.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
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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ga as m,I as x,Q as h,Uc as A,Vc as M,Z as I,b as d,g as l,ia as b,k as y,o as j,oa as S,va as f,wa as p}from"./chunk-
|
|
1
|
+
import{Ga as m,I as x,Q as h,Uc as A,Vc as M,Z as I,b as d,g as l,ia as b,k as y,o as j,oa as S,va as f,wa as p}from"./chunk-VYKJK5YU.js";function z(e,s){s?.injector||S(z);let o=s?.injector??b(f),t=new l,r=e(t).subscribe();o.get(p).onDestroy(()=>r.unsubscribe());let n=(c,g)=>{if(D(c))return t.next(c),{destroy:d};let u=g?.injector??F()??o;if(m(c)){let i=M(()=>{let w=c();A(()=>t.next(w))},{injector:u});return r.add({unsubscribe:()=>i.destroy()}),i}let a=c.subscribe(i=>t.next(i));return r.add(a),u!==o&&u.get(p).onDestroy(()=>a.unsubscribe()),{destroy:()=>a.unsubscribe()}};return n.destroy=r.unsubscribe.bind(r),n}function D(e){return!m(e)&&!j(e)}function F(){try{return b(f)}catch{return null}}function q(e,s,o){let t=typeof e=="function"?{next:e,error:s,complete:o}:e;return r=>r.pipe(I({next:t.next,complete:t.complete}),x(n=>(t.error(n),y)),t.finalize?h(t.finalize):n=>n)}export{z as a,q as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p}from"./chunk-XWVLTTMV.js";import{g as C}from"./chunk-33KLXB2L.js";import"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import"./chunk-OWI3BWEZ.js";import"./chunk-ROKYJX6Q.js";import{a as x}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import"./chunk-6BFODHTZ.js";import{t as b}from"./chunk-RUGQ4OJG.js";import{Bb as f,Ic as d,Ub as r,Vb as o,_b as g,dc as c,ec as m,ia as a,mc as u,qa as l,ra as s,ub as _,uc as M}from"./chunk-VYKJK5YU.js";import"./chunk-EQDQRRRY.js";function v(t,S){if(t&1){let e=g();r(0,"div",2)(1,"button",3),c("click",function(){l(e);let i=m();return s(i.onMigrate())}),u(2," Migrate "),o(),r(3,"button",4),c("click",function(){l(e);let i=m();return s(i.onFormat())}),u(4,"Format"),o()()}}var V=(()=>{class t{constructor(){this.migrateService=a(p),this.toastr=a(x)}onMigrate(){this.migrateService.migrateManualJournal().subscribe(e=>{this.toastr.success(e.message,"Migration Successful")})}onFormat(){this.migrateService.formatManualJournal().subscribe(e=>{this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=_({type:t,selectors:[["app-manual-journal"]],features:[M([p])],decls:3,vars:0,consts:[["content",""],["pageTitle","Manual Journal"],[1,"container","my-2"],[1,"btn","btn-primary","me-2",3,"click"],[1,"btn","btn-danger",3,"click"]],template:function(n,i){n&1&&(r(0,"app-main-panel",1),f(1,v,5,0,"ng-template",null,0,d),o())},dependencies:[C,b],encapsulation:2})}}return t})();export{V as ManualJournalComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as p}from"./chunk-
|
|
1
|
+
import{a as p}from"./chunk-XWVLTTMV.js";import{g as C}from"./chunk-33KLXB2L.js";import"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import"./chunk-OWI3BWEZ.js";import"./chunk-ROKYJX6Q.js";import{a as x}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import"./chunk-6BFODHTZ.js";import{t as b}from"./chunk-RUGQ4OJG.js";import{Bb as g,Ic as y,Ub as r,Vb as o,_b as _,dc as s,ec as l,ia as c,mc as u,qa as a,ra as m,ub as f,uc as d}from"./chunk-VYKJK5YU.js";import"./chunk-EQDQRRRY.js";function P(e,v){if(e&1){let t=_();r(0,"div",2)(1,"button",3),s("click",function(){a(t);let i=l();return m(i.migratePaymentAccount())}),u(2," Migrate Payment Account "),o(),r(3,"button",4),s("click",function(){a(t);let i=l();return m(i.migrateWriteoffOutlet())}),u(4," Migrate Write Off Outlet "),o()()}}var T=(()=>{class e{constructor(){this.migrateService=c(p),this.toastr=c(x)}migratePaymentAccount(){this.migrateService.migratePaymentMethod().subscribe(t=>{this.toastr.success(t.message,"Migration Successful")})}migrateWriteoffOutlet(){this.migrateService.migrateWriteOffOutlet().subscribe(t=>{this.toastr.success(t.message,"Migration Successful")})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=f({type:e,selectors:[["app-payment-account"]],features:[d([p])],decls:3,vars:0,consts:[["content",""],["pageTitle","Payment Account"],[1,"container","my-2"],[1,"btn","btn-primary","me-4",3,"click"],[1,"btn","btn-success",3,"click"]],template:function(n,i){n&1&&(r(0,"app-main-panel",1),g(1,P,5,0,"ng-template",null,0,y),o())},dependencies:[C,b],encapsulation:2})}}return e})();export{T as PaymentAccountComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as Ee,G as ot,Ha as pe,La as Ae,Na as V,Oa as Q,Pa as v,Qa as dt,S as Ie,X as rt,Y as at,ga as lt,i as nt,ka as ue,ta as ct,x as st,ya as he,z as ee}from"./chunk-FVXLQNAC.js";import{d as H,t as de,v as Me,w as it}from"./chunk-GRTIJ77T.js";import{A as Ve,Aa as P,Ab as oe,D as z,Ea as L,F as je,G as q,Ib as Oe,Jb as W,Kb as Ne,La as Ce,Mb as E,Mc as le,N as be,Ob as N,P as ze,Q as We,Qa as Y,Ra as K,Rc as ce,Ub as Z,Vb as X,Vc as tt,Wb as re,Wc as U,X as Qe,Y as b,Z as Je,_ as ve,ca as f,d as He,da as D,dc as ae,fa as qe,fc as F,g as y,gb as se,gc as B,hb as Se,ia as c,ic as Ze,jc as Xe,k as Ue,kb as Te,kc as et,m as ne,ma as De,nb as Ke,pa as we,s as ye,sa as Ye,ta as m,ub as C,uc as O,va as w,vb as S,wb as $,yb as T,z as A,za as k}from"./chunk-RSHFIZV3.js";import{a as g,b as me}from"./chunk-C6Q5SG76.js";var ut=["*"];var Ot=["dialog"];var ht={animation:!0,transitionTimerDelayMs:5},ke=(()=>{class n{constructor(){this.animation=ht.animation}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function Nt(n){let{transitionDelay:s,transitionDuration:e}=window.getComputedStyle(n),t=parseFloat(s),i=parseFloat(e);return(t+i)*1e3}function Fe(n){return typeof n=="string"}function J(n){return n!=null}function pt(n){return n&&n.then}function te(n){return(n||document.body).getBoundingClientRect()}function Mt(n){return s=>new He(e=>{let t=r=>n.run(()=>e.next(r)),i=r=>n.run(()=>e.error(r)),o=()=>n.run(()=>e.complete());return s.subscribe({next:t,error:i,complete:o})})}var It=()=>{},{transitionTimerDelayMs:Et}=ht,fe=new Map,M=(n,s,e,t)=>{let i=t.context||{},o=fe.get(s);if(o)switch(t.runningTransition){case"continue":return Ue;case"stop":n.run(()=>o.transition$.complete()),i=Object.assign(o.context,i),fe.delete(s)}let r=e(s,t.animation,i)||It;if(!t.animation||window.getComputedStyle(s).transitionProperty==="none")return n.run(()=>r()),ne(void 0).pipe(Mt(n));let a=new y,l=new y,d=a.pipe(ze(!0));fe.set(s,{transition$:a,complete:()=>{l.next(),l.complete()},context:i});let u=Nt(s);return n.runOutsideAngular(()=>{let h=A(s,"transitionend").pipe(b(d),z(({target:_})=>_===s)),p=Ve(u+Et).pipe(b(d));je(p,h,l).pipe(b(d)).subscribe(()=>{fe.delete(s),n.run(()=>{r(),a.next(),a.complete()})})}),a.asObservable()};function At(n,s){if(typeof navigator>"u")return"0px";let{classList:e}=n,t=e.contains("show");t||e.add("show"),n.style[s]="";let i=n.getBoundingClientRect()[s]+"px";return t||e.remove("show"),i}var Pt=(n,s,e)=>{let{direction:t,maxSize:i,dimension:o}=e,{classList:r}=n;function a(){r.add("collapse"),t==="show"?r.add("show"):r.remove("show")}if(!s){a();return}return i||(i=At(n,o),e.maxSize=i,n.style[o]=t!=="show"?i:"0px",r.remove("collapse","collapsing","show"),te(n),r.add("collapsing")),n.style[o]=t==="show"?i:"0px",()=>{a(),r.remove("collapsing"),n.style[o]=""}},Rt=(()=>{class n{constructor(){this._ngbConfig=c(ke),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Dn=(()=>{class n{constructor(){this._config=c(Rt),this._element=c(L),this._zone=c(P),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new k,this.horizontal=this._config.horizontal,this.shown=new k,this.hidden=new k}set collapsed(e){this._isCollapsed!==e&&(this._isCollapsed=e,this._afterInit&&this._runTransitionWithEvents(e,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(e=this._isCollapsed){this.collapsed=!e,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(e,t){return M(this._zone,this._element.nativeElement,Pt,{animation:t,runningTransition:"stop",context:{direction:e?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(e,t){this._runTransition(e,t).subscribe(()=>{e?this.hidden.emit():this.shown.emit()})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=$({type:n,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(t,i){t&2&&E("collapse-horizontal",i.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"]})}}return n})();var wn=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=S({type:n})}static{this.\u0275inj=D({})}}return n})();var Cn=(()=>{let n=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,s=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(n()||s()):!1})();var xt=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Be(n){let s=Array.from(n.querySelectorAll(xt)).filter(e=>e.tabIndex!==-1);return[s[0],s[s.length-1]]}var ft=(n,s,e,t=!1)=>{n.runOutsideAngular(()=>{let i=A(s,"focusin").pipe(b(e),ye(o=>o.target));A(s,"keydown").pipe(b(e),z(o=>o.key==="Tab"),ve(i)).subscribe(([o,r])=>{let[a,l]=Be(s);(r===a||r===s)&&o.shiftKey&&(l.focus(),o.preventDefault()),r===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),t&&A(s,"click").pipe(b(e),ve(i),ye(o=>o[1])).subscribe(o=>o.focus())})};var Sn=new Date(1882,10,12),Tn=new Date(2174,10,25);var On=1e3*60*60*24;var Ge=1080,kt=24*Ge,Ft=12*Ge+793,Nn=29*kt+Ft,Mn=11*Ge+204;var In=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=S({type:n})}static{this.\u0275inj=D({})}}return n})(),Bt=(()=>{class n{constructor(){this._ngbConfig=c(ke),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),R=class{constructor(s,e,t){this.nodes=s,this.viewRef=e,this.componentRef=t}};var _t=(()=>{class n{constructor(){this._document=c(H)}hide(){let e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),t=this._document.body,i=t.style,{overflow:o,paddingRight:r}=i;if(e>0){let a=parseFloat(window.getComputedStyle(t).paddingRight);i.paddingRight=`${a+e}px`}return i.overflow="hidden",()=>{e>0&&(i.paddingRight=r),i.overflow=o}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Gt=(()=>{class n{constructor(){this._nativeElement=c(L).nativeElement,this._zone=c(P),this._injector=c(w)}ngOnInit(){K(()=>M(this._zone,this._nativeElement,(e,t)=>{t&&te(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"}),{injector:this._injector,phase:Y.MixedReadWrite})}hide(){return M(this._zone,this._nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=C({type:n,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(t,i){t&2&&(N("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),E("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,i){},encapsulation:2})}}return n})(),_e=class{update(s){}close(s){}dismiss(s){}},Lt=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],$t=["animation","backdropClass"],Pe=class{_applyWindowOptions(s,e){Lt.forEach(t=>{J(e[t])&&(s[t]=e[t])})}_applyBackdropOptions(s,e){$t.forEach(t=>{J(e[t])&&(s[t]=e[t])})}update(s){this._applyWindowOptions(this._windowCmptRef.instance,s),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,s)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(b(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(b(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(s,e,t,i){this._windowCmptRef=s,this._contentRef=e,this._backdropCmptRef=t,this._beforeDismiss=i,this._closed=new y,this._dismissed=new y,this._hidden=new y,s.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,r)=>{this._resolve=o,this._reject=r}),this.result.then(null,()=>{})}close(s){this._windowCmptRef&&(this._closed.next(s),this._resolve(s),this._removeModalElements())}_dismiss(s){this._dismissed.next(s),this._reject(s),this._removeModalElements()}dismiss(s){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(s);else{let e=this._beforeDismiss();pt(e)?e.then(t=>{t!==!1&&this._dismiss(s)},()=>{}):e!==!1&&this._dismiss(s)}}_removeModalElements(){let s=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ne(void 0);s.subscribe(()=>{let{nativeElement:t}=this._windowCmptRef.location;t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:t}=this._backdropCmptRef.location;t.parentNode.removeChild(t),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),q(s,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},Re=function(n){return n[n.BACKDROP_CLICK=0]="BACKDROP_CLICK",n[n.ESC=1]="ESC",n}(Re||{}),Ht=(()=>{class n{constructor(){this._document=c(H),this._elRef=c(L),this._zone=c(P),this._injector=c(w),this._closed$=new y,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new k,this.shown=new y,this.hidden=new y}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":Fe(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,K(()=>this._show(),{injector:this._injector,phase:Y.MixedReadWrite})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:e}=this._elRef,t={animation:this.animation,runningTransition:"stop"},i=M(this._zone,e,()=>e.classList.remove("show"),t),o=M(this._zone,this._dialogEl.nativeElement,()=>{},t),r=q(i,o);return r.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),r}_show(){let e={animation:this.animation,runningTransition:"continue"},t=M(this._zone,this._elRef.nativeElement,(o,r)=>{r&&te(o),o.classList.add("show")},e),i=M(this._zone,this._dialogEl.nativeElement,()=>{},e);q(t,i).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{A(e,"keydown").pipe(b(this._closed$),z(i=>i.key==="Escape")).subscribe(i=>{this.keyboard?requestAnimationFrame(()=>{i.defaultPrevented||this._zone.run(()=>this.dismiss(Re.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let t=!1;A(this._dialogEl.nativeElement,"mousedown").pipe(b(this._closed$),Je(()=>t=!1),Qe(()=>A(e,"mouseup").pipe(b(this._closed$),be(1))),z(({target:i})=>e===i)).subscribe(()=>{t=!0}),A(e,"click").pipe(b(this._closed$)).subscribe(({target:i})=>{e===i&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!t&&this._zone.run(()=>this.dismiss(Re.BACKDROP_CLICK))),t=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){let t=e.querySelector("[ngbAutofocus]"),i=Be(e)[0];(t||i||e).focus()}}_restoreFocus(){let e=this._document.body,t=this._elWithFocus,i;t&&t.focus&&e.contains(t)?i=t:i=e,this._zone.runOutsideAngular(()=>{setTimeout(()=>i.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&M(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=C({type:n,selectors:[["ngb-modal-window"]],viewQuery:function(t,i){if(t&1&&Ze(Ot,7),t&2){let o;Xe(o=et())&&(i._dialogEl=o.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,i){t&2&&(W("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),N("modal d-block"+(i.windowClass?" "+i.windowClass:"")),E("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:ut,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(t,i){t&1&&(F(),Z(0,"div",1,0)(2,"div",2),B(3),X()()),t&2&&N("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}
|
|
1
|
+
import{$ as Ee,G as ot,Ha as pe,La as Ae,Na as V,Oa as Q,Pa as v,Qa as dt,S as Ie,X as rt,Y as at,ga as lt,i as nt,ka as ue,ta as ct,x as st,ya as he,z as ee}from"./chunk-ROKYJX6Q.js";import{d as H,t as de,v as Me,w as it}from"./chunk-RUGQ4OJG.js";import{A as Ve,Aa as P,Ab as oe,D as z,Ea as L,F as je,G as q,Ib as Oe,Jb as W,Kb as Ne,La as Ce,Mb as E,Mc as le,N as be,Ob as N,P as ze,Q as We,Qa as Y,Ra as K,Rc as ce,Ub as Z,Vb as X,Vc as tt,Wb as re,Wc as U,X as Qe,Y as b,Z as Je,_ as ve,ca as f,d as He,da as D,dc as ae,fa as qe,fc as F,g as y,gb as se,gc as B,hb as Se,ia as c,ic as Ze,jc as Xe,k as Ue,kb as Te,kc as et,m as ne,ma as De,nb as Ke,pa as we,s as ye,sa as Ye,ta as m,ub as C,uc as O,va as w,vb as S,wb as $,yb as T,z as A,za as k}from"./chunk-VYKJK5YU.js";import{a as g,b as me}from"./chunk-EQDQRRRY.js";var ut=["*"];var Ot=["dialog"];var ht={animation:!0,transitionTimerDelayMs:5},ke=(()=>{class n{constructor(){this.animation=ht.animation}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function Nt(n){let{transitionDelay:s,transitionDuration:e}=window.getComputedStyle(n),t=parseFloat(s),i=parseFloat(e);return(t+i)*1e3}function Fe(n){return typeof n=="string"}function J(n){return n!=null}function pt(n){return n&&n.then}function te(n){return(n||document.body).getBoundingClientRect()}function Mt(n){return s=>new He(e=>{let t=r=>n.run(()=>e.next(r)),i=r=>n.run(()=>e.error(r)),o=()=>n.run(()=>e.complete());return s.subscribe({next:t,error:i,complete:o})})}var It=()=>{},{transitionTimerDelayMs:Et}=ht,fe=new Map,M=(n,s,e,t)=>{let i=t.context||{},o=fe.get(s);if(o)switch(t.runningTransition){case"continue":return Ue;case"stop":n.run(()=>o.transition$.complete()),i=Object.assign(o.context,i),fe.delete(s)}let r=e(s,t.animation,i)||It;if(!t.animation||window.getComputedStyle(s).transitionProperty==="none")return n.run(()=>r()),ne(void 0).pipe(Mt(n));let a=new y,l=new y,d=a.pipe(ze(!0));fe.set(s,{transition$:a,complete:()=>{l.next(),l.complete()},context:i});let u=Nt(s);return n.runOutsideAngular(()=>{let h=A(s,"transitionend").pipe(b(d),z(({target:_})=>_===s)),p=Ve(u+Et).pipe(b(d));je(p,h,l).pipe(b(d)).subscribe(()=>{fe.delete(s),n.run(()=>{r(),a.next(),a.complete()})})}),a.asObservable()};function At(n,s){if(typeof navigator>"u")return"0px";let{classList:e}=n,t=e.contains("show");t||e.add("show"),n.style[s]="";let i=n.getBoundingClientRect()[s]+"px";return t||e.remove("show"),i}var Pt=(n,s,e)=>{let{direction:t,maxSize:i,dimension:o}=e,{classList:r}=n;function a(){r.add("collapse"),t==="show"?r.add("show"):r.remove("show")}if(!s){a();return}return i||(i=At(n,o),e.maxSize=i,n.style[o]=t!=="show"?i:"0px",r.remove("collapse","collapsing","show"),te(n),r.add("collapsing")),n.style[o]=t==="show"?i:"0px",()=>{a(),r.remove("collapsing"),n.style[o]=""}},Rt=(()=>{class n{constructor(){this._ngbConfig=c(ke),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Dn=(()=>{class n{constructor(){this._config=c(Rt),this._element=c(L),this._zone=c(P),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new k,this.horizontal=this._config.horizontal,this.shown=new k,this.hidden=new k}set collapsed(e){this._isCollapsed!==e&&(this._isCollapsed=e,this._afterInit&&this._runTransitionWithEvents(e,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(e=this._isCollapsed){this.collapsed=!e,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(e,t){return M(this._zone,this._element.nativeElement,Pt,{animation:t,runningTransition:"stop",context:{direction:e?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(e,t){this._runTransition(e,t).subscribe(()=>{e?this.hidden.emit():this.shown.emit()})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=$({type:n,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(t,i){t&2&&E("collapse-horizontal",i.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"]})}}return n})();var wn=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=S({type:n})}static{this.\u0275inj=D({})}}return n})();var Cn=(()=>{let n=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,s=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(n()||s()):!1})();var xt=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Be(n){let s=Array.from(n.querySelectorAll(xt)).filter(e=>e.tabIndex!==-1);return[s[0],s[s.length-1]]}var ft=(n,s,e,t=!1)=>{n.runOutsideAngular(()=>{let i=A(s,"focusin").pipe(b(e),ye(o=>o.target));A(s,"keydown").pipe(b(e),z(o=>o.key==="Tab"),ve(i)).subscribe(([o,r])=>{let[a,l]=Be(s);(r===a||r===s)&&o.shiftKey&&(l.focus(),o.preventDefault()),r===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),t&&A(s,"click").pipe(b(e),ve(i),ye(o=>o[1])).subscribe(o=>o.focus())})};var Sn=new Date(1882,10,12),Tn=new Date(2174,10,25);var On=1e3*60*60*24;var Ge=1080,kt=24*Ge,Ft=12*Ge+793,Nn=29*kt+Ft,Mn=11*Ge+204;var In=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=S({type:n})}static{this.\u0275inj=D({})}}return n})(),Bt=(()=>{class n{constructor(){this._ngbConfig=c(ke),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),R=class{constructor(s,e,t){this.nodes=s,this.viewRef=e,this.componentRef=t}};var _t=(()=>{class n{constructor(){this._document=c(H)}hide(){let e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),t=this._document.body,i=t.style,{overflow:o,paddingRight:r}=i;if(e>0){let a=parseFloat(window.getComputedStyle(t).paddingRight);i.paddingRight=`${a+e}px`}return i.overflow="hidden",()=>{e>0&&(i.paddingRight=r),i.overflow=o}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Gt=(()=>{class n{constructor(){this._nativeElement=c(L).nativeElement,this._zone=c(P),this._injector=c(w)}ngOnInit(){K(()=>M(this._zone,this._nativeElement,(e,t)=>{t&&te(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"}),{injector:this._injector,phase:Y.MixedReadWrite})}hide(){return M(this._zone,this._nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=C({type:n,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(t,i){t&2&&(N("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),E("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,i){},encapsulation:2})}}return n})(),_e=class{update(s){}close(s){}dismiss(s){}},Lt=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],$t=["animation","backdropClass"],Pe=class{_applyWindowOptions(s,e){Lt.forEach(t=>{J(e[t])&&(s[t]=e[t])})}_applyBackdropOptions(s,e){$t.forEach(t=>{J(e[t])&&(s[t]=e[t])})}update(s){this._applyWindowOptions(this._windowCmptRef.instance,s),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,s)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(b(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(b(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(s,e,t,i){this._windowCmptRef=s,this._contentRef=e,this._backdropCmptRef=t,this._beforeDismiss=i,this._closed=new y,this._dismissed=new y,this._hidden=new y,s.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,r)=>{this._resolve=o,this._reject=r}),this.result.then(null,()=>{})}close(s){this._windowCmptRef&&(this._closed.next(s),this._resolve(s),this._removeModalElements())}_dismiss(s){this._dismissed.next(s),this._reject(s),this._removeModalElements()}dismiss(s){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(s);else{let e=this._beforeDismiss();pt(e)?e.then(t=>{t!==!1&&this._dismiss(s)},()=>{}):e!==!1&&this._dismiss(s)}}_removeModalElements(){let s=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ne(void 0);s.subscribe(()=>{let{nativeElement:t}=this._windowCmptRef.location;t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:t}=this._backdropCmptRef.location;t.parentNode.removeChild(t),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),q(s,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},Re=function(n){return n[n.BACKDROP_CLICK=0]="BACKDROP_CLICK",n[n.ESC=1]="ESC",n}(Re||{}),Ht=(()=>{class n{constructor(){this._document=c(H),this._elRef=c(L),this._zone=c(P),this._injector=c(w),this._closed$=new y,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new k,this.shown=new y,this.hidden=new y}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":Fe(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,K(()=>this._show(),{injector:this._injector,phase:Y.MixedReadWrite})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:e}=this._elRef,t={animation:this.animation,runningTransition:"stop"},i=M(this._zone,e,()=>e.classList.remove("show"),t),o=M(this._zone,this._dialogEl.nativeElement,()=>{},t),r=q(i,o);return r.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),r}_show(){let e={animation:this.animation,runningTransition:"continue"},t=M(this._zone,this._elRef.nativeElement,(o,r)=>{r&&te(o),o.classList.add("show")},e),i=M(this._zone,this._dialogEl.nativeElement,()=>{},e);q(t,i).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{A(e,"keydown").pipe(b(this._closed$),z(i=>i.key==="Escape")).subscribe(i=>{this.keyboard?requestAnimationFrame(()=>{i.defaultPrevented||this._zone.run(()=>this.dismiss(Re.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let t=!1;A(this._dialogEl.nativeElement,"mousedown").pipe(b(this._closed$),Je(()=>t=!1),Qe(()=>A(e,"mouseup").pipe(b(this._closed$),be(1))),z(({target:i})=>e===i)).subscribe(()=>{t=!0}),A(e,"click").pipe(b(this._closed$)).subscribe(({target:i})=>{e===i&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!t&&this._zone.run(()=>this.dismiss(Re.BACKDROP_CLICK))),t=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){let t=e.querySelector("[ngbAutofocus]"),i=Be(e)[0];(t||i||e).focus()}}_restoreFocus(){let e=this._document.body,t=this._elWithFocus,i;t&&t.focus&&e.contains(t)?i=t:i=e,this._zone.runOutsideAngular(()=>{setTimeout(()=>i.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&M(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=C({type:n,selectors:[["ngb-modal-window"]],viewQuery:function(t,i){if(t&1&&Ze(Ot,7),t&2){let o;Xe(o=et())&&(i._dialogEl=o.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,i){t&2&&(W("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),N("modal d-block"+(i.windowClass?" "+i.windowClass:"")),E("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:ut,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(t,i){t&1&&(F(),Z(0,"div",1,0)(2,"div",2),B(3),X()()),t&2&&N("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}
|
|
2
2
|
`],encapsulation:2})}}return n})(),Ut=(()=>{class n{constructor(){this._applicationRef=c(Oe),this._injector=c(w),this._environmentInjector=c(De),this._document=c(H),this._scrollBar=c(_t),this._activeWindowCmptHasChanged=new y,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new k;let e=c(P);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let t=this._windowCmpts[this._windowCmpts.length-1];ft(e,t.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(t.location.nativeElement)}})}_restoreScrollBar(){let e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,t,i){let o=i.container instanceof HTMLElement?i.container:J(i.container)?this._document.querySelector(i.container):this._document.body;if(!o)throw new Error(`The specified modal container "${i.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let r=new _e;e=i.injector||e;let a=e.get(De,null)||this._environmentInjector,l=this._getContentRef(e,a,t,r,i),d=i.backdrop!==!1?this._attachBackdrop(o):void 0,u=this._attachWindowComponent(o,l.nodes),h=new Pe(u,l,d,i.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(u),h.hidden.pipe(be(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),r.close=p=>{h.close(p)},r.dismiss=p=>{h.dismiss(p)},r.update=p=>{h.update(p)},h.update(i),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),d&&d.instance&&d.changeDetectorRef.detectChanges(),u.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(t=>t.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e){let t=U(Gt,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(t.hostView),e.appendChild(t.location.nativeElement),t}_attachWindowComponent(e,t){let i=U(Ht,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:t});return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_getContentRef(e,t,i,o,r){return i?i instanceof Te?this._createFromTemplateRef(i,o):Fe(i)?this._createFromString(i):this._createFromComponent(e,t,i,o,r):new R([])}_createFromTemplateRef(e,t){let i={$implicit:t,close(r){t.close(r)},dismiss(r){t.dismiss(r)}},o=e.createEmbeddedView(i);return this._applicationRef.attachView(o),new R([o.rootNodes],o)}_createFromString(e){let t=this._document.createTextNode(`${e}`);return new R([[t]])}_createFromComponent(e,t,i,o,r){let a=w.create({providers:[{provide:_e,useValue:o}],parent:e}),l=U(i,{environmentInjector:t,elementInjector:a}),d=l.location.nativeElement;return r.scrollable&&d.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new R([[d]],l.hostView,l)}_setAriaHidden(e){let t=e.parentElement;t&&e!==this._document.body&&(Array.from(t.children).forEach(i=>{i!==e&&i.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}),this._setAriaHidden(t))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){let t=()=>{let i=this._modalRefs.indexOf(e);i>-1&&(this._modalRefs.splice(i,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(t,t)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{let t=this._windowCmpts.indexOf(e);t>-1&&(this._windowCmpts.splice(t,1),this._activeWindowCmptHasChanged.next())})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),En=(()=>{class n{constructor(){this._injector=c(w),this._modalStack=c(Ut),this._config=c(Bt)}open(e,t={}){let i=g(me(g({},this._config),{animation:this._config.animation}),t);return this._modalStack.open(this._injector,e,i)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var An=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=S({type:n})}static{this.\u0275inj=D({})}}return n})();var Pn=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=S({type:n})}static{this.\u0275inj=D({})}}return n})();var Rn=new qe("live announcer delay",{providedIn:"root",factory:()=>100});var Vt=(()=>{class n{constructor(){this._ngbConfig=c(ke),this.backdrop=!0,this.keyboard=!0,this.position="start",this.scroll=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ge=class{close(s){}dismiss(s){}},xe=class{get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(b(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(b(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._panelCmptRef.instance.shown.asObservable()}constructor(s,e,t,i){this._panelCmptRef=s,this._contentRef=e,this._backdropCmptRef=t,this._beforeDismiss=i,this._closed=new y,this._dismissed=new y,this._hidden=new y,s.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),t&&t.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,r)=>{this._resolve=o,this._reject=r}),this.result.then(null,()=>{})}close(s){this._panelCmptRef&&(this._closed.next(s),this._resolve(s),this._removeOffcanvasElements())}_dismiss(s){this._dismissed.next(s),this._reject(s),this._removeOffcanvasElements()}dismiss(s){if(this._panelCmptRef)if(!this._beforeDismiss)this._dismiss(s);else{let e=this._beforeDismiss();pt(e)?e.then(t=>{t!==!1&&this._dismiss(s)},()=>{}):e!==!1&&this._dismiss(s)}}_removeOffcanvasElements(){let s=this._panelCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ne(void 0);s.subscribe(()=>{let{nativeElement:t}=this._panelCmptRef.location;t.parentNode.removeChild(t),this._panelCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._panelCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:t}=this._backdropCmptRef.location;t.parentNode.removeChild(t),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),q(s,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},Le=function(n){return n[n.BACKDROP_CLICK=0]="BACKDROP_CLICK",n[n.ESC=1]="ESC",n}(Le||{}),jt=(()=>{class n{constructor(){this._nativeElement=c(L).nativeElement,this._zone=c(P),this._injector=c(w),this.dismissEvent=new k}ngOnInit(){K(()=>M(this._zone,this._nativeElement,(e,t)=>{t&&te(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"}),{injector:this._injector,phase:Y.MixedReadWrite})}hide(){return M(this._zone,this._nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}dismiss(){this.static||this.dismissEvent.emit(Le.BACKDROP_CLICK)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=C({type:n,selectors:[["ngb-offcanvas-backdrop"]],hostVars:6,hostBindings:function(t,i){t&1&&ae("mousedown",function(){return i.dismiss()}),t&2&&(N("offcanvas-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),E("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass",static:"static"},outputs:{dismissEvent:"dismiss"},decls:0,vars:0,template:function(t,i){},encapsulation:2})}}return n})(),zt=(()=>{class n{constructor(){this._document=c(H),this._elRef=c(L),this._zone=c(P),this._injector=c(w),this._closed$=new y,this._elWithFocus=null,this.keyboard=!0,this.position="start",this.dismissEvent=new k,this.shown=new y,this.hidden=new y}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,K(()=>this._show(),{injector:this._injector,phase:Y.MixedReadWrite})}ngOnDestroy(){this._disableEventHandling()}hide(){let e={animation:this.animation,runningTransition:"stop"},t=M(this._zone,this._elRef.nativeElement,i=>(i.classList.remove("showing"),i.classList.add("hiding"),()=>i.classList.remove("show","hiding")),e);return t.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),t}_show(){let e={animation:this.animation,runningTransition:"continue"};M(this._zone,this._elRef.nativeElement,(i,o)=>(o&&te(i),i.classList.add("show","showing"),()=>i.classList.remove("showing")),e).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{A(e,"keydown").pipe(b(this._closed$),z(t=>t.key==="Escape")).subscribe(t=>{this.keyboard&&requestAnimationFrame(()=>{t.defaultPrevented||this._zone.run(()=>this.dismiss(Le.ESC))})})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){let t=e.querySelector("[ngbAutofocus]"),i=Be(e)[0];(t||i||e).focus()}}_restoreFocus(){let e=this._document.body,t=this._elWithFocus,i;t&&t.focus&&e.contains(t)?i=t:i=e,this._zone.runOutsideAngular(()=>{setTimeout(()=>i.focus()),this._elWithFocus=null})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=C({type:n,selectors:[["ngb-offcanvas-panel"]],hostAttrs:["role","dialog","tabindex","-1"],hostVars:5,hostBindings:function(t,i){t&2&&(W("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),N("offcanvas offcanvas-"+i.position+(i.panelClass?" "+i.panelClass:"")))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",keyboard:"keyboard",panelClass:"panelClass",position:"position"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:ut,decls:1,vars:0,template:function(t,i){t&1&&(F(),B(0))},encapsulation:2})}}return n})(),Wt=(()=>{class n{constructor(){this._applicationRef=c(Oe),this._injector=c(w),this._document=c(H),this._scrollBar=c(_t),this._activePanelCmptHasChanged=new y,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._panelAttributes=["animation","ariaDescribedBy","ariaLabelledBy","keyboard","panelClass","position"],this._activeInstance=new k;let e=c(P);this._activePanelCmptHasChanged.subscribe(()=>{this._panelCmpt&&ft(e,this._panelCmpt.location.nativeElement,this._activePanelCmptHasChanged)})}_restoreScrollBar(){let e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,t,i){let o=i.container instanceof HTMLElement?i.container:J(i.container)?this._document.querySelector(i.container):this._document.body;if(!o)throw new Error(`The specified offcanvas container "${i.container||"body"}" was not found in the DOM.`);i.scroll||this._hideScrollBar();let r=new ge,a=this._getContentRef(i.injector||e,t,r),l=i.backdrop!==!1?this._attachBackdrop(o):void 0,d=this._attachWindowComponent(o,a.nodes),u=new xe(d,a,l,i.beforeDismiss);return this._registerOffcanvasRef(u),this._registerPanelCmpt(d),u.hidden.pipe(We(()=>this._restoreScrollBar())).subscribe(),r.close=h=>{u.close(h)},r.dismiss=h=>{u.dismiss(h)},this._applyPanelOptions(d.instance,i),l&&l.instance&&(this._applyBackdropOptions(l.instance,i),l.changeDetectorRef.detectChanges()),d.changeDetectorRef.detectChanges(),u}get activeInstance(){return this._activeInstance}dismiss(e){this._offcanvasRef?.dismiss(e)}hasOpenOffcanvas(){return!!this._offcanvasRef}_attachBackdrop(e){let t=U(jt,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(t.hostView),e.appendChild(t.location.nativeElement),t}_attachWindowComponent(e,t){let i=U(zt,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:t});return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_applyPanelOptions(e,t){this._panelAttributes.forEach(i=>{J(t[i])&&(e[i]=t[i])})}_applyBackdropOptions(e,t){this._backdropAttributes.forEach(i=>{J(t[i])&&(e[i]=t[i])}),e.static=t.backdrop==="static"}_getContentRef(e,t,i){return t?t instanceof Te?this._createFromTemplateRef(t,i):Fe(t)?this._createFromString(t):this._createFromComponent(e,t,i):new R([])}_createFromTemplateRef(e,t){let i={$implicit:t,close(r){t.close(r)},dismiss(r){t.dismiss(r)}},o=e.createEmbeddedView(i);return this._applicationRef.attachView(o),new R([o.rootNodes],o)}_createFromString(e){let t=this._document.createTextNode(`${e}`);return new R([[t]])}_createFromComponent(e,t,i){let o=w.create({providers:[{provide:ge,useValue:i}],parent:e}),r=U(t,{environmentInjector:this._applicationRef.injector,elementInjector:o}),a=r.location.nativeElement;return this._applicationRef.attachView(r.hostView),new R([[a]],r.hostView,r)}_registerOffcanvasRef(e){let t=()=>{this._offcanvasRef=void 0,this._activeInstance.emit(this._offcanvasRef)};this._offcanvasRef=e,this._activeInstance.emit(this._offcanvasRef),e.result.then(t,t)}_registerPanelCmpt(e){this._panelCmpt=e,this._activePanelCmptHasChanged.next(),e.onDestroy(()=>{this._panelCmpt=void 0,this._activePanelCmptHasChanged.next()})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),xn=(()=>{class n{constructor(){this._injector=c(w),this._offcanvasStack=c(Wt),this._config=c(Vt)}open(e,t={}){let i=g(me(g({},this._config),{animation:this._config.animation}),t);return this._offcanvasStack.open(this._injector,e,i)}get activeInstance(){return this._offcanvasStack.activeInstance}dismiss(e){this._offcanvasStack.dismiss(e)}hasOpenOffcanvas(){return this._offcanvasStack.hasOpenOffcanvas()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var gt=(()=>{class n extends v{name="common";static \u0275fac=(()=>{let e;return function(i){return(e||(e=m(n)))(i||n)}})();static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),x=(()=>{class n{document=c(H);platformId=c(Ce);el=c(L);injector=c(w);cd=c(le);renderer=c(Ke);config=c(dt);baseComponentStyle=c(gt);baseStyle=c(v);scopedStyleEl;rootEl;dt;get styleOptions(){return{nonce:this.config?.csp().nonce}}get _name(){return this.constructor.name.replace(/^_/,"").toLowerCase()}get componentStyle(){return this._componentStyle}attrSelector=he("pc");themeChangeListeners=[];_getHostInstance(e){if(e)return e?this.hostName?e.name===this.hostName?e:this._getHostInstance(e.parentInstance):e.parentInstance:void 0}_getOptionValue(e,t="",i={}){return ct(e,t,i)}ngOnInit(){this.document&&this._loadStyles()}ngAfterViewInit(){this.rootEl=this.el?.nativeElement,this.rootEl&&this.rootEl?.setAttribute(this.attrSelector,"")}ngOnChanges(e){if(this.document&&!it(this.platformId)){let{dt:t}=e;t&&t.currentValue&&(this._loadScopedThemeStyles(t.currentValue),this._themeChangeListener(()=>this._loadScopedThemeStyles(t.currentValue)))}}ngOnDestroy(){this._unloadScopedThemeStyles(),this.themeChangeListeners.forEach(e=>Ae.off("theme:change",e))}_loadStyles(){let e=()=>{Q.isStyleNameLoaded("base")||(this.baseStyle.loadGlobalCSS(this.styleOptions),Q.setLoadedStyleName("base")),this._loadThemeStyles()};e(),this._themeChangeListener(()=>e())}_loadCoreStyles(){!Q.isStyleNameLoaded("base")&&this._name&&(this.baseComponentStyle.loadCSS(this.styleOptions),this.componentStyle&&this.componentStyle?.loadCSS(this.styleOptions),Q.setLoadedStyleName(this.componentStyle?.name))}_loadThemeStyles(){if(!V.isStyleNameLoaded("common")){let{primitive:e,semantic:t,global:i,style:o}=this.componentStyle?.getCommonTheme?.()||{};this.baseStyle.load(e?.css,g({name:"primitive-variables"},this.styleOptions)),this.baseStyle.load(t?.css,g({name:"semantic-variables"},this.styleOptions)),this.baseStyle.load(i?.css,g({name:"global-variables"},this.styleOptions)),this.baseStyle.loadGlobalTheme(g({name:"global-style"},this.styleOptions),o),V.setLoadedStyleName("common")}if(!V.isStyleNameLoaded(this.componentStyle?.name)&&this.componentStyle?.name){let{css:e,style:t}=this.componentStyle?.getComponentTheme?.()||{};this.componentStyle?.load(e,g({name:`${this.componentStyle?.name}-variables`},this.styleOptions)),this.componentStyle?.loadTheme(g({name:`${this.componentStyle?.name}-style`},this.styleOptions),t),V.setLoadedStyleName(this.componentStyle?.name)}if(!V.isStyleNameLoaded("layer-order")){let e=this.componentStyle?.getLayerOrderThemeCSS?.();this.baseStyle.load(e,g({name:"layer-order",first:!0},this.styleOptions)),V.setLoadedStyleName("layer-order")}this.dt&&(this._loadScopedThemeStyles(this.dt),this._themeChangeListener(()=>this._loadScopedThemeStyles(this.dt)))}_loadScopedThemeStyles(e){let{css:t}=this.componentStyle?.getPresetTheme?.(e,`[${this.attrSelector}]`)||{},i=this.componentStyle?.load(t,g({name:`${this.attrSelector}-${this.componentStyle?.name}`},this.styleOptions));this.scopedStyleEl=i?.el}_unloadScopedThemeStyles(){this.scopedStyleEl?.remove()}_themeChangeListener(e=()=>{}){Q.clearLoadedStyleNames(),Ae.on("theme:change",e),this.themeChangeListeners.push(e)}cx(e,t){let i=this.parent?this.parent.componentStyle?.classes?.[e]:this.componentStyle?.classes?.[e];return typeof i=="function"?i({instance:this}):typeof i=="string"?i:e}sx(e){let t=this.componentStyle?.inlineStyles?.[e];return typeof t=="function"?t({instance:this}):typeof t=="string"?t:g({},t)}get parent(){return this.parentInstance}static \u0275fac=function(t){return new(t||n)};static \u0275dir=$({type:n,inputs:{dt:"dt"},features:[O([gt,v]),we]})}return n})();var Qt=({dt:n})=>`
|
|
3
3
|
.p-inputtext {
|
|
4
4
|
font-family: inherit;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-EQDQRRRY.js";var n=[{path:"",children:[{path:"404",loadComponent:()=>import("./chunk-RIALPB2D.js").then(o=>o.NotfoundComponent)},{path:"lock",loadComponent:()=>import("./chunk-O65HPMSJ.js").then(o=>o.LockComponent)},{path:"login",loadComponent:()=>import("./chunk-FOUHOMEE.js").then(o=>o.LoginComponent)},{path:"login2",loadComponent:()=>import("./chunk-ZU7I7MCL.js").then(o=>o.Login2Component)},{path:"signup",loadComponent:()=>import("./chunk-B6N6C3RA.js").then(o=>o.SignupComponent)},{path:"signup2",loadComponent:()=>import("./chunk-DJ5UHXOJ.js").then(o=>o.Signup2Component)}]}];export{n as AuthenticationRoutes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as i,w as r}from"./chunk-
|
|
1
|
+
import{n as i,w as r}from"./chunk-6BFODHTZ.js";import"./chunk-RUGQ4OJG.js";import{Wb as n,ub as o}from"./chunk-VYKJK5YU.js";import"./chunk-EQDQRRRY.js";var c=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=o({type:e,selectors:[["app-blank-layout"]],decls:1,vars:0,template:function(t,a){t&1&&n(0,"router-outlet")},dependencies:[r,i],encapsulation:2})}}return e})();export{c as BlankComponent};
|