dealpos 25.46.3 → 25.47.1
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/browser/{chunk-K4LLK7O5.js → chunk-2B5OZGVM.js} +1 -1
- package/browser/{chunk-REYKQIQH.js → chunk-2BWSGD3Z.js} +1 -1
- package/browser/{chunk-2RERZJD4.js → chunk-2MCEIRJY.js} +1 -1
- package/browser/chunk-2ZXSQTN3.js +1 -0
- package/browser/{chunk-OHG6W52G.js → chunk-337Y6LKZ.js} +1 -1
- package/browser/{chunk-E7N3FPJF.js → chunk-347WKSZO.js} +1 -1
- package/browser/{chunk-E2DUJTA4.js → chunk-3OHHXDTW.js} +1 -1
- package/browser/chunk-3PWKXRXD.js +14 -0
- package/browser/chunk-4QU3FQ4H.js +1 -0
- package/browser/{chunk-3IX77UOP.js → chunk-4VFIXDGC.js} +1 -1
- package/browser/{chunk-KTPMM54V.js → chunk-4Y2FYXDF.js} +1 -1
- package/browser/{chunk-2HOSLZ77.js → chunk-5BH2H4V6.js} +1 -1
- package/browser/{chunk-RF5WGONA.js → chunk-5DQ4MJJT.js} +1 -1
- package/browser/{chunk-ABC2ZDB2.js → chunk-5IW47S5R.js} +1 -1
- package/browser/{chunk-CPBXXCCO.js → chunk-5O2O7IB4.js} +15 -15
- package/browser/{chunk-BOS35V5T.js → chunk-5RTCTJUG.js} +1 -1
- package/browser/{chunk-LLEPB2B6.js → chunk-64RUCACD.js} +1 -1
- package/browser/{chunk-NBHYM7VE.js → chunk-6BCNB44A.js} +1 -1
- package/browser/{chunk-BYO7FJ4O.js → chunk-6GLKD66N.js} +1 -1
- package/browser/{chunk-PR7GIWDS.js → chunk-6OSOTMIF.js} +1 -1
- package/browser/{chunk-5M7FY5GG.js → chunk-75OKQPDZ.js} +2 -2
- package/browser/{chunk-47TR66HI.js → chunk-77V3KNIS.js} +1 -1
- package/browser/{chunk-NUL5GL3Q.js → chunk-7DG3RSHK.js} +1 -1
- package/browser/{chunk-CRQNIUO7.js → chunk-7FC2PJIW.js} +1 -1
- package/browser/{chunk-XI3UF2BK.js → chunk-7LCG4V47.js} +1 -1
- package/browser/{chunk-4C5SUQ74.js → chunk-A56Z62HU.js} +1 -1
- package/browser/{chunk-DWZLJMWC.js → chunk-ABNUBGXO.js} +1 -1
- package/browser/{chunk-K3I6K44J.js → chunk-ADC6Y4AB.js} +1 -1
- package/browser/{chunk-APOV2ZYY.js → chunk-AEXXXOEQ.js} +1 -1
- package/browser/{chunk-ABO3BJKM.js → chunk-AMONIKLC.js} +1 -1
- package/browser/{chunk-B4ZMF63W.js → chunk-AS5WHW7W.js} +1 -1
- package/browser/{chunk-INHUUGSI.js → chunk-AUBQH6JY.js} +1 -1
- package/browser/chunk-AVTYR2I6.js +1 -0
- package/browser/{chunk-QDE5Y76C.js → chunk-B3STLAM7.js} +1 -1
- package/browser/{chunk-QZMZBCE7.js → chunk-BA3BDB5Y.js} +1 -1
- package/browser/{chunk-ZXOLWDM7.js → chunk-BE4SGNNY.js} +1 -1
- package/browser/{chunk-LV3QO3H3.js → chunk-BFLDH5QM.js} +1 -1
- package/browser/{chunk-ON47ICI3.js → chunk-C6YPXBIP.js} +1 -1
- package/browser/{chunk-IJWE5FIC.js → chunk-CC2THS3J.js} +11 -11
- package/browser/chunk-CPCDU4HM.js +4 -0
- package/browser/{chunk-PECGNYTX.js → chunk-CSFFF2YO.js} +1 -1
- package/browser/{chunk-BZMVZ7BI.js → chunk-CZIC4DAI.js} +1 -1
- package/browser/{chunk-BEWTAI6L.js → chunk-D3BHSTT2.js} +1 -1
- package/browser/{chunk-HQ4NLUV6.js → chunk-DEGB7PBB.js} +1 -1
- package/browser/{chunk-NLLT5X4R.js → chunk-DP3IHIJG.js} +1 -1
- package/browser/chunk-DPGY5YXC.js +1 -0
- package/browser/{chunk-7TEVE3FN.js → chunk-DQYDWBIK.js} +1 -1
- package/browser/{chunk-QBY2W7QQ.js → chunk-DT6QJWPF.js} +1 -1
- package/browser/{chunk-V3TK75EE.js → chunk-DUJXPJ4P.js} +2 -2
- package/browser/{chunk-NRF37QSD.js → chunk-E5XIALIA.js} +1 -1
- package/browser/{chunk-IGNVHAO2.js → chunk-EQR3RN5K.js} +1 -1
- package/browser/{chunk-6XWC4HRW.js → chunk-ERJKTHMS.js} +1 -1
- package/browser/{chunk-OGB3GW4L.js → chunk-EZRYO7BE.js} +1 -1
- package/browser/{chunk-T4QRRRCQ.js → chunk-F45DK6HY.js} +1 -1
- package/browser/{chunk-ZXSVZL53.js → chunk-FNH6K4S4.js} +1 -1
- package/browser/{chunk-XAQQNM46.js → chunk-FT2CPNDK.js} +1 -1
- package/browser/{chunk-Q2FWGC3S.js → chunk-FUKBIYWZ.js} +1 -1
- package/browser/{chunk-DZ6Z62ZW.js → chunk-FUYOSIW5.js} +1 -1
- package/browser/{chunk-22O4O5EJ.js → chunk-FUZD2YUG.js} +2 -2
- package/browser/{chunk-BKBSPC2U.js → chunk-G2VAG4V3.js} +1 -1
- package/browser/{chunk-MCI7JNDO.js → chunk-GEIEF2RB.js} +1 -1
- package/browser/{chunk-6WEGHV7F.js → chunk-GN3HVOCN.js} +1 -1
- package/browser/{chunk-WH6ZELDL.js → chunk-GOZ7JJVG.js} +1 -1
- package/browser/{chunk-AS4NJOPX.js → chunk-GSAGOZJT.js} +1 -1
- package/browser/{chunk-BY57IAJ7.js → chunk-HD2QU6GJ.js} +1 -1
- package/browser/{chunk-SKMY43FK.js → chunk-HEIZUI6B.js} +1 -1
- package/browser/{chunk-27Y3MQJV.js → chunk-HVJHE6PQ.js} +1 -1
- package/browser/{chunk-KEAT6AT3.js → chunk-I5W4NCFM.js} +1 -1
- package/browser/{chunk-3VY4BE7Y.js → chunk-I6RQW6MV.js} +1 -1
- package/browser/{chunk-K4MWTDCL.js → chunk-ICXY7J4B.js} +1 -1
- package/browser/{chunk-EX4TE4E5.js → chunk-IDOZYC3I.js} +1 -1
- package/browser/chunk-IHCO2JK3.js +1 -0
- package/browser/{chunk-WM7ROROB.js → chunk-IIDCCGRC.js} +1 -1
- package/browser/{chunk-5F2NFZPL.js → chunk-IJ6NUPJY.js} +1 -1
- package/browser/{chunk-POJQGU7L.js → chunk-JR5LAUIS.js} +1 -1
- package/browser/{chunk-6EH2754P.js → chunk-JYJW5KAE.js} +1 -1
- package/browser/{chunk-5FIHIYPN.js → chunk-KSDWEFU5.js} +1 -1
- package/browser/{chunk-6HNMTYL2.js → chunk-L5QFOKO7.js} +1 -1
- package/browser/{chunk-ESYBXU5L.js → chunk-L72RFTBD.js} +1 -1
- package/browser/{chunk-Z7IU5JLK.js → chunk-LDTRYGRE.js} +1 -1
- package/browser/{chunk-DC426G2P.js → chunk-LOD3JYZW.js} +1 -1
- package/browser/{chunk-I2R577A6.js → chunk-M326IFGL.js} +1 -1
- package/browser/{chunk-WH2BY5K4.js → chunk-MVUVDYGQ.js} +1 -1
- package/browser/{chunk-SE67GHUX.js → chunk-N3HGHV2Q.js} +1 -1
- package/browser/{chunk-2KJCF3ZC.js → chunk-NDFDMJU2.js} +1 -1
- package/browser/chunk-NJGJFNQG.js +1 -0
- package/browser/{chunk-X4JLZJ6G.js → chunk-NU7GDZKC.js} +1 -1
- package/browser/{chunk-UE2HBW5H.js → chunk-NVCUDJUL.js} +1 -1
- package/browser/{chunk-KUMJBTY5.js → chunk-NWDPSH4M.js} +2 -2
- package/browser/{chunk-PLWCVGTF.js → chunk-O2LFJOK7.js} +1 -1
- package/browser/{chunk-WOGTFZCA.js → chunk-O5OL3MSI.js} +1 -1
- package/browser/{chunk-77F7XHWC.js → chunk-OBEXYNUM.js} +1 -1
- package/browser/{chunk-DGKIIUIQ.js → chunk-P3RYBCCQ.js} +1 -1
- package/browser/{chunk-KWRGMAZL.js → chunk-PGVKBOVV.js} +1 -1
- package/browser/{chunk-NX6ACGTN.js → chunk-PIZRVCBM.js} +1 -1
- package/browser/{chunk-GNODCFOP.js → chunk-PJCGIZLH.js} +1 -1
- package/browser/{chunk-2E4N3RZU.js → chunk-PSJRHKCL.js} +1 -1
- package/browser/{chunk-7E6JQNGW.js → chunk-QBOUUDFD.js} +1 -1
- package/browser/{chunk-KT64U5FF.js → chunk-QCMMZ67T.js} +1 -1
- package/browser/{chunk-LEPY5WLJ.js → chunk-QDCZBCN5.js} +1 -1
- package/browser/{chunk-HPXM5XAM.js → chunk-QECDT5UJ.js} +1 -1
- package/browser/{chunk-EVNVUCMO.js → chunk-QIFLQIWQ.js} +1 -1
- package/browser/{chunk-SO4GMA3Y.js → chunk-QPOOLLKY.js} +1 -1
- package/browser/{chunk-BD7CNS3O.js → chunk-R4JXP55V.js} +1 -1
- package/browser/{chunk-MQPI5PZA.js → chunk-R5SLRG5P.js} +1 -1
- package/browser/{chunk-WMUZZ5XX.js → chunk-RAQ5KDLF.js} +1 -1
- package/browser/{chunk-ULYBLEXA.js → chunk-RJJYGGF6.js} +1 -1
- package/browser/{chunk-3YKXHA6Q.js → chunk-RMB6IO7X.js} +1 -1
- package/browser/chunk-RONQFUCZ.js +1 -0
- package/browser/{chunk-ZS75AJOT.js → chunk-RPMSR2S2.js} +1 -1
- package/browser/{chunk-OAP2TSZ6.js → chunk-S7Y36REW.js} +1 -1
- package/browser/chunk-SMUNI47Q.js +3 -0
- package/browser/{chunk-XIXDLSA2.js → chunk-SVUUS5JD.js} +1 -1
- package/browser/{chunk-7EQG6N5Y.js → chunk-SWPKQM2X.js} +1 -1
- package/browser/{chunk-ZGY4RDNA.js → chunk-SXAXSC44.js} +1 -1
- package/browser/{chunk-NZYZO47Z.js → chunk-T25N3EEG.js} +1 -1
- package/browser/{chunk-KD7WBOUR.js → chunk-T2H2XAEJ.js} +1 -1
- package/browser/{chunk-GKWHR2MJ.js → chunk-T6RHBYOY.js} +1 -1
- package/browser/{chunk-RRSZSQXZ.js → chunk-T7DUQW7O.js} +1 -1
- package/browser/{chunk-SU4Y5X62.js → chunk-TRYMZNEH.js} +1 -1
- package/browser/{chunk-S3H5URIA.js → chunk-TV76G36W.js} +1 -1
- package/browser/{chunk-TEXHMVYL.js → chunk-TWX33MAO.js} +1 -1
- package/browser/{chunk-GDKTBDK6.js → chunk-UNJ5ELA7.js} +1 -1
- package/browser/{chunk-WBMSB25X.js → chunk-UTTKPBED.js} +1 -1
- package/browser/{chunk-6JCGTOWB.js → chunk-V2HVL2JW.js} +2 -2
- package/browser/{chunk-WZEBH7P5.js → chunk-V3PWVI2B.js} +14 -14
- package/browser/{chunk-MPAFCKH7.js → chunk-VAPCHGLS.js} +1 -1
- package/browser/{chunk-YRGHPSPV.js → chunk-VX5HH3BW.js} +1 -1
- package/browser/{chunk-5L54U63F.js → chunk-W4W2KCYV.js} +1 -1
- package/browser/{chunk-SARJJ3AZ.js → chunk-WNZKCNMC.js} +1 -1
- package/browser/{chunk-P2TEAJG3.js → chunk-WPMZWFSL.js} +1 -1
- package/browser/{chunk-MPE7Q4VX.js → chunk-XL7XI3DY.js} +1 -1
- package/browser/{chunk-J4JOIFPA.js → chunk-XUDYAWGP.js} +1 -1
- package/browser/chunk-XZ7GA7NR.js +1 -0
- package/browser/{chunk-U6Q2FJBU.js → chunk-Y3AE3TKV.js} +1 -1
- package/browser/{chunk-7N4TQJAF.js → chunk-Y4LWALJN.js} +1 -1
- package/browser/{chunk-3XKRDZSE.js → chunk-YQUQYWX3.js} +1 -1
- package/browser/{chunk-P6NP3EAO.js → chunk-ZJDY54VM.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-V7C5NVCN.js → main-O34B6LHF.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-4TZSBBYC.js +0 -1
- package/browser/chunk-64GEFRCT.js +0 -1
- package/browser/chunk-7DTB5U3C.js +0 -14
- package/browser/chunk-ES25MU2C.js +0 -3
- package/browser/chunk-G53YHV2L.js +0 -4
- package/browser/chunk-JPJFLPJG.js +0 -1
- package/browser/chunk-M2Y56GL5.js +0 -1
- package/browser/chunk-MMP7HKXF.js +0 -1
- package/browser/chunk-NB3DCG2R.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as Et}from"./chunk-QIJEAKQK.js";import{e as Rt}from"./chunk-4HCSE44G.js";import{a as Ke,b as Qe,c as Ge,d as $e,e as je}from"./chunk-KHR4NBM3.js";import{a as kt,b as Dt,c as Mt}from"./chunk-
|
|
1
|
+
import{b as Et}from"./chunk-QIJEAKQK.js";import{e as Rt}from"./chunk-4HCSE44G.js";import{a as Ke,b as Qe,c as Ge,d as $e,e as je}from"./chunk-KHR4NBM3.js";import{a as kt,b as Dt,c as Mt}from"./chunk-CZIC4DAI.js";import{a as St,b as It}from"./chunk-Q2A4MYK3.js";import{e as xt}from"./chunk-JYJW5KAE.js";import{e as Tt,f as We}from"./chunk-X57HWGVJ.js";import{b as qe}from"./chunk-5SFUSWFY.js";import{a as Ct}from"./chunk-TGEQUV6Z.js";import{d as wt}from"./chunk-TV76G36W.js";import{a as Z,b as _,c as vt}from"./chunk-CS6HBROS.js";import{a as _t,e as yt}from"./chunk-6SGN7MNX.js";import{b as ae,c as re,d as ge,e as m,j as Ce,k as D,l as se}from"./chunk-L76WVZW6.js";import{W as Fe,X as Ie,ia as mt,ja as Ne,ka as ft,la as gt,oa as oe,pa as Q,xa as le}from"./chunk-O5SLP4JK.js";import{F as Me,a as ve,g as ut,h as ht,o as bt}from"./chunk-RNLSEEMX.js";import{$b as Ee,Ab as it,Ac as lt,Bb as nt,Cb as r,Db as R,Eb as E,Fb as z,Gb as A,Hb as N,Hc as Se,Ia as S,Ib as O,Jb as M,Kb as F,Kc as rt,Lb as y,Mb as te,Nb as W,Ob as K,Pc as X,Qb as c,Tb as f,Ub as G,Vb as h,Vc as st,Wb as b,Xa as s,Xc as g,Ya as v,Yc as V,Za as Ve,_b as Pe,ac as at,bc as Te,cc as T,cd as dt,d as ye,db as pe,dc as He,ec as ot,ed as ct,fd as De,hb as k,ib as ue,id as pt,jb as Re,jd as ie,ka as we,la as $,lb as I,ma as ce,mb as ee,na as Y,nb as p,pa as x,rd as ne,sc as U,sd as fe,ta as j,tb as B,ua as q,uc as J,va as L,vb as he,vc as me,xa as tt,xb as be,xc as Ae,yc as ke,zc as xe}from"./chunk-JYZTRN6N.js";import{a as Oe,b as et}from"./chunk-SNAKHGZS.js";var Ft=`
|
|
2
2
|
.p-datatable {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: block;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as s}from"./chunk-
|
|
1
|
+
import{b as s}from"./chunk-77V3KNIS.js";import{a as i}from"./chunk-USJ6ILEE.js";import{la as o,oa as l}from"./chunk-JYZTRN6N.js";var p=class r{constructor(t){this.cookieService=t}_reportFilter={from:null,outletIds:[],to:null};_cookiesName="ReportFilter";initOutletFilter(t=[]){let e=this.getReportFilter();return i.IsNotEmpty(e?.outletIds)?t=e.outletIds:this.setOutletFilter(t),t}initDateFromFilter(t){let e=this.getReportFilter();return i.IsNotEmpty(e?.from)?t=e.from:this.setDateFromFilter(t),t}initDateToFilter(t){let e=this.getReportFilter();return i.IsNotEmpty(e?.to)?t=e.to:this.setDateToFilter(t),t}setDateFromFilter(t){let e=this.getReportFilter();i.IsEmpty(e)&&(e=this._reportFilter),e.from=t,this.saveFilterToCookie(e)}setDateToFilter(t){let e=this.getReportFilter();i.IsEmpty(e)&&(e=this._reportFilter),e.to=t,this.saveFilterToCookie(e)}setOutletFilter(t=[]){let e=this.getReportFilter();i.IsEmpty(e)&&(e=this._reportFilter),e.outletIds=t,this.saveFilterToCookie(e)}saveFilterToCookie(t){this.cookieService.set(this._cookiesName,JSON.stringify(t),this.getExpiredDate(),"/")}getReportFilter(){if(this.cookieService.check("ReportFilter")){let t=this.cookieService.get("ReportFilter");this._reportFilter=JSON.parse(t)}return this._reportFilter}getExpiredDate(){let t=new Date,F=1*60*60*1e3;return t.setTime(t.getTime()+F),t}resetFilter(){this._reportFilter={from:null,outletIds:[],to:null},this.cookieService.delete("ReportFilter","/")}static \u0275fac=function(e){return new(e||r)(l(s))};static \u0275prov=o({token:r,factory:r.\u0275fac,providedIn:"root"})};export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as g}from"./chunk-
|
|
1
|
+
import{a as g}from"./chunk-SXAXSC44.js";import{Ca as l,Lc as h,e as c}from"./chunk-JYZTRN6N.js";var p=class extends g{constructor(t,e,s,i,n,a,o,r){super(t,e,s,i,n,a,o);this.httpService=e;this.toastrService=n;this.route=a;this.cdr=r;r&&h(()=>{this.infiniteListSignal(),this.cdr.markForCheck()})}toastrCount=0;nextPageDisabled=!1;extendData=!1;goToLast=!1;listTotal=0;_infiniteList$=new c([]);infiniteListSignal=l([]);get infiniteList(){return this._infiniteList$.value}set infiniteList(t){this._infiniteList$.next(t),this.infiniteListSignal.set(t)}originalData=[];StoreRowsCountAPIResult(t,e=!1){this.httpService.post("/api/"+t,this.pageData.Filter).subscribe(s=>{this.listTotal=s.Count,this.pageData.HideStoreApiCount=!0,e&&(this.pageData.Filter.RowCount=this.listTotal,this.goToLast=!0,this.pageData.Filter.PageNumber=1,this.getListData()),this.cdr&&this.cdr.markForCheck()})}NextPage(t){this.pageData.Filter.PageNumber=this.pageData.Filter.PageNumber||1,this.pageData.Filter.PageNumber+=1,this.extendData=t,this.getListData()}postInit(t){t?.Data?.length>0&&(this.toastrCount=0),t?.Data?.length===0&&this.toastrCount===0&&(this.toastrService?.info("No more data to load","Info"),this.toastrCount=1);let e=Array.isArray(t.Data?.hits),s=Array.isArray(t.Data?.[0]?.Variants),i=[...this.infiniteList];if(this.extendData){let a=i.at(-1),o=t.Data.find(r=>r.ID===a?.ID);if(s&&a)if(o){let r=t.Data.filter(u=>u.ID!==a?.ID);a.Variants=a.Variants.concat(o.Variants||[]),i=i.concat(r)}else i=i.concat(t.Data);else i=i.concat(e?t.Data.hits:t.Data);this.postExtendData(t),this.extendData=!1}else i=e?t.Data.hits:t.Data,this.assignAggregate(t);this.infiniteList=i,this.originalData=[...i];let n=e?t.Data.hits.length:t.Data.length;this.nextPageDisabled=n<this.pageData.Filter.RowCount,this.menuData.H=this.data.PageTitle||this.menuData.H,this.afterPostInit(t),this.cdr?.markForCheck?.()}afterPostInit(t){}preSearchFromPageOne(){this.goToLast=!1}postExtendData(t){}assignAggregate(t){}};export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as l}from"./chunk-7PN2DG6D.js";import{O as i}from"./chunk-
|
|
1
|
+
import{b as l}from"./chunk-7PN2DG6D.js";import{O as i}from"./chunk-T25N3EEG.js";import{be as p,ee as u,la as s,oa as n,t as o}from"./chunk-JYZTRN6N.js";var c=class a{constructor(e,t){this.httpService=e;this.toastr=t}generateNumber(e,t){let r={ID:e};return this.httpService.post(t,r)}getQuickKey(e,t){return this.httpService.get(t,[{key:"ID",value:e}])}updateCourierList(e){let t={name:e};return this.httpService.post(i.UpdateCourierList,t)}getVarianByCode(e,t,r){return this.httpService.get(i.GetVariantByCode,[{key:"Code",value:e},{key:"EntityID",value:t},{key:"BarcodeSerial",value:r},{key:"Promotion",value:!0}])}getVariantBySerial(e,t){return this.httpService.get(i.GetVariantBySerial,[{key:"EntityID",value:t},{key:"Serial",value:e}])}getVariantById(e,t){return this.httpService.get(i.GetVariantByID,[{key:"ID",value:e},{key:"EntityID",value:t}])}submitTransaction(e,t){return this.httpService.post(t,e)}createNewContact(e,t){let r=[];e.Group&&r.push(e.Group);let y={contact:e,type:t,groups:r};return this.httpService.post(i.CreateContact,y)}getItemStock(e,t){return this.httpService.get(i.GetVariantStockByID,[{key:"ID",value:e},{key:"EntityID",value:t}])}clearOutlet(e){return this.httpService.get(i.getAllOutletInventory,[{key:"EntityID",value:e}]).pipe(o(t=>t.map(r=>this.plainJsonToCustomerPoItem(r))))}plainJsonToCustomerPoItem(e){let t=new l;return t.patchByVariant(e),t.TypeID=e.TypeID,t.Serial=e.Serial,t.Quantity=e.Quantity,t.TypeID==4&&(t.Quantity=this.calculateSerialQty(t.Serial)),t}calculateSerialQty(e=[]){let t=0;return e.forEach(r=>{t+=r.Quantity}),t}static \u0275fac=function(t){return new(t||a)(n(u),n(p))};static \u0275prov=s({token:a,factory:a.\u0275fac,providedIn:"root"})};export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Pe}from"./chunk-WH6ZELDL.js";import{a as Ce}from"./chunk-AFBBEIKR.js";import{a as _e}from"./chunk-XI3UF2BK.js";import{a as be}from"./chunk-JUS6LLVX.js";import{b as Se,c as Me}from"./chunk-C4WJKF7R.js";import{a as de}from"./chunk-RLQLFW36.js";import"./chunk-EQLHPWVB.js";import"./chunk-NWSIPELM.js";import{F as ge,b as me,h as fe,o as he}from"./chunk-RNLSEEMX.js";import{a as T,c as f}from"./chunk-47TR66HI.js";import{a as ve}from"./chunk-7TEVE3FN.js";import{a as M,d as I}from"./chunk-USJ6ILEE.js";import{a as pe}from"./chunk-DGKIIUIQ.js";import{$ as q,$d as G,Ab as F,Bb as V,Bc as ie,Cb as h,Db as o,Dc as ne,E,Eb as s,Fb as p,Ob as C,Qb as Z,Sa as Y,Vd as ae,Xa as c,Xd as se,Yd as b,Zd as le,_d as ce,ac as K,be as ue,cc as $,cd as re,d as J,da as D,db as v,dc as m,ec as B,fc as z,hb as W,ib as x,la as d,ma as y,oa as _,pa as l,pc as X,rd as oe,tb as Q,uc as ee,vc as te,zb as j}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var r=class e{constructor(i,t){this.authService=i;this.router=t}canLoad(i,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(i){let t="/menu";i.forEach(a=>t+=`/${a.path}`);let n=this.router.currentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}static \u0275fac=function(t){return new(t||e)(_(f),_(b))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var w=class e{constructor(i){this.toastrService=i;this.initPermissionToastr=!1}isPermissionGranted;initPermissionToastr;initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(t=>{this.isPermissionGranted=!1,t=="granted"&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(i){console.error(i)}}showAlert(i,t,n,u){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:i,icon:u});g.onerror=(N=>{this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})})}catch(g){console.error(g)}else this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}setBody(i,t){return this.hasUrl(t)&&(i=`<a href="${t}" target="_blank" class="ps-0">${i}</a>`),i}hasUrl(i){return!!(i&&i.length!==0)}static \u0275fac=function(t){return new(t||e)(_(ue))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Oe=[{T:"Dashboard",U:"/menu/Dashboard",I:"fa-solid fa-chart-pie"},{T:"Products",U:"/menu/Products",I:"fa-solid fa-tag"},{T:"Estimate",U:"/menu/Estimate",I:"fa-solid fa-clipboard"},{T:"Sell",U:"/menu/Sell",I:"fa-solid fa-cart-shopping"},{T:"Shift",U:"/menu/Shift/",I:"fa-solid fa-user-clock"},{T:"Reports",U:"/menu/Reports",I:"fa-solid fa-chart-area"},{T:"Contacts",U:"/menu/Contacts",I:"fas fa-address-book"},{T:"Orders",U:"/menu/Orders",I:"fas fa-file-invoice"},{T:"Payment",U:"/menu/Payment",I:"fas fa-money-bill-alt"},{T:"Debt",U:"/menu/Debt",I:"fas fa-dollar-sign"},{T:"Inventory",U:"/menu/Inventory",I:"fas fa-archive"},{T:"Adjustment",U:"/menu/Adjustment",I:"fas fa-scanner-gun"},{T:"Buy",U:"/menu/Buy",I:"fa-solid fa-cart-arrow-down"},{T:"Logistics",U:"/menu/Logistics",I:"fas fa-truck"},{T:"Fulfillment",U:"/menu/Fulfillment",I:"fas fa-dolly"},{T:"Manufacture",U:"/menu/Manufacture",I:"fas fa-industry"},{T:"Prepaid Package",U:"/menu/Prepaid_Package",I:"fa-solid fa-id-card"},{T:"Promotion",U:"/menu/Promotion",I:"fas fa-bullhorn"},{T:"Users",U:"/menu/Users",I:"fas fa-user"},{T:"Outlets",U:"/menu/Outlets",I:"fas fa-map-marker-alt"},{T:"Setup",U:"/menu/Setup",I:"fas fa-gear"},{T:"Developer",U:"/menu/Developer",I:"fas fa-code"}];var k=class e{role=l(I);authService=l(f);menu=Oe;filteredMenu=[];initFilteredMenu(){this.filteredMenu=this.menu.filter(i=>i.T==="Dashboard"?this.role.dashboard.View:i.T==="Products"?this.role.product.View:i.T==="Estimate"?this.role.estimate.Create:i.T==="Sell"?this.role.sell.Create:i.T==="Shift"?this.role.sell.Create:i.T==="Reports"?this.role.report.View:i.T==="Contacts"?this.role.contact.View:i.T==="Orders"?this.role.order.View:i.T==="Payment"?this.role.payment.View:i.T==="Debt"?this.role.debt.View:i.T==="Inventory"?this.role.inventory.View:i.T==="Adjustment"?this.role.adjustment.View:i.T==="Buy"?this.role.buy.Create:i.T==="Logistics"?this.role.logistic.View:i.T==="Manufacture"?this.role.manufacture.View:i.T==="Fulfillment"?this.role.fulfillment.View:i.T==="Prepaid Package"?this.role.prepaidPackage.View:i.T==="Promotion"?this.role.promotion.View:i.T==="Users"?this.role.users.View:i.T==="Outlets"?this.role.outlets.View:i.T==="Setup"?this.role.setup.View:i.T==="Developer"?this.role.developer.View:!0),this.filterBySubscriptionStatus()}filterBySubscriptionStatus(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(i){case 2:return t.T=="Sell"||t.T=="Shift";case 3:return!1;default:return!0}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var ye=[{T:"My Profile",U:"Profile/Main/My_Profile",I:"fas fa-user"},{T:"My Subscription",U:"Profile/Main/My_Subscription",I:"fa-solid fa-credit-card"},{T:"Notification",U:"Profile/Notification/Push",I:"fas fa-bell"},{T:"My Sales",U:"Profile/Main/My_Sales",I:"fas fa-history"}];var A=class e{role=l(I);authService=l(f);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=ye.filter(t=>t.T=="My Profile"?this.role.profile.View:t.T=="My Subscription"?this.role.profile.Subscription:t.T=="Notification"?this.role.profile.Notification&&i!=2&&i!=3:t.T=="My Sales"?i!=2&&i!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=(e,i)=>({"full-container":e,"subscription-bar-visible":i}),Re=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",11),p(1,"i",35),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;h("routerLink",t==null?null:t.U),c(),$((t==null?null:t.I)+" me-2"),c(2),B(t==null?null:t.T)}}function Ee(e,i){if(e&1&&(o(0,"li",33,0)(2,"a",36),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Z();h("routerLinkActiveOptions",n.isActiveMatchOptions),Q("data-cy",t==null?null:t.T),c(2),h("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",ee(7,Re,t==null?null:t.U)),c(),$(t==null?null:t.I),c(2),B(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,N,H){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;N.initFilteredMenu(),H.initFilteredMenu(),this.leftSidebarMenu=N.filteredMenu,this.topMenu=H.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(Te=>this.isNavOpen=Te),this.destroy$=new J,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=pe.version;currentSubStatus;subsStatusEnum=T;isFullContainer=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(i=>i instanceof ae),q(null),D(this.destroy$)).subscribe(i=>{this.isFullContainer=!1,(this.router.url.includes("Sell")&&!this.router.url.includes("v2")&&!this.router.url.includes("Offline")||this.router.url.includes("Buy")||this.router.url.includes("menu/Estimate")||this.router.url.includes("Transfer_Order/Form")||this.router.url.includes("Adjustment/Archive/Form")||this.router.url.includes("Job_Order/Archive/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Invoice/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Bill/New_Join_Bill"))&&(this.isFullContainer=!0)})}initNotificationPermission(){this.notificationAlertService.initPermission()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}subscribeToPushNotification(){let i=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(i)&&M.isGuid(i)?this.signalRClientService.SubscribeGroup(i):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let n=JSON.parse(t),u="https://cdn.dealpos.xyz/web-image/info-new.png";M.IsNotEmpty(n.Icon)&&(u=n.Icon),this.notificationAlertService.showAlert(n.Body,n.Header,n.URL,u)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(i){return M.IsNotEmpty(i)}onShowDropdown(){this.isHideIntercomLauncher=this.intercomService.isHideLauncher()}chatToggleChange(){this.isHideIntercomLauncher==!1?this.intercomService.hideLauncher():this.intercomService.showLauncher(),this.onShowDropdown()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(t){return new(t||e)(v(be),v(de),v(w),v(b),v(f),v(ve),v(k),v(A))};static \u0275cmp=W({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:54,vars:17,consts:[["rla","routerLinkActive"],[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-lg-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click","matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],[1,"dropdown-item","h5",3,"routerLink"],[1,"dropdown-item","h5",2,"cursor","pointer"],[1,"d-flex","align-items-center","justify-content-between"],[1,"fa-solid","fa-comment-dots","me-2"],[1,"checkbox_toggle","ms-3",3,"click"],["type","checkbox","id","chatToggle","name","ChatToggle",3,"ngModelChange","ngModel"],["for","chatToggle",1,"position-relative","rounded-pill","pointer"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["id","full-container",1,"main-panel",3,"ngClass"],["aria-hidden","true"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(t,n){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return n.toggleMenu()}),p(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return n.onShowDropdown()}),m(7),ie(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),F(13,Ne,4,4,"a",11,j),o(15,"a",12)(16,"div",13)(17,"div"),p(18,"i",14),o(19,"span"),m(20,"Chat Support"),s()(),o(21,"div",15),C("click",function(a){return a.stopPropagation()}),o(22,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(23,"label",17),s()()(),o(24,"a",18),C("click",function(){return n.logout()}),p(25,"i",19),o(26,"span"),m(27,"Log Out"),s()(),p(28,"div",20),o(29,"div",21),m(30," Links "),s(),o(31,"a",22),p(32,"i",23),o(33,"span"),m(34,"What's New"),p(35,"i",24),s()(),o(36,"a",25),p(37,"i",26),o(38,"span"),m(39,"Help Center"),s()(),o(40,"a",27),p(41,"i",28),o(42,"span"),m(43,"App Store"),s()(),o(44,"a",29),p(45,"i",30),o(46,"span"),m(47,"Company Blog"),s()()()()(),o(48,"div",31)(49,"ul",32),F(50,Ee,6,9,"li",33,j),s()()(),o(52,"div",34),p(53,"router-outlet"),s()()),t&2&&(K("nav-open",n.isNavOpen),c(),h("ngClass",n.toggleSideMenu?"collapses":""),c(2),h("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),h("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),z(" ",ne(8,11,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),z("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),V(n.topMenu),c(9),h("ngModel",!n.isHideIntercomLauncher),c(9),h("href",X("https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion),Y),c(19),V(n.leftSidebarMenu),c(2),h("ngClass",te(14,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[Se,se,le,ce,me,fe,he,re,Ce],styles:['.sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}}.full-container[_ngcontent-%COMP%]{padding-top:0!important}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}.checkbox_toggle[_ngcontent-%COMP%]{position:relative}.checkbox_toggle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#868686;display:inline-block;padding-right:38px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:23px;height:14px;background-color:#ccc;top:2.2px;right:0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:#1f77d0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:10px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";width:12px;height:12px;border-radius:50%;position:absolute;top:.8px;left:1px;transition:all .1s;background-color:#fff}']})};function De(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.currentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}var O=(e,i)=>{let t=l(f),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=De(i),u.navigate(["/"]),!1):e.path=="Dashboard"?je():!0};function je(){let e=l(b),i=l(f),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var U=class e{paymentStorageService=l(Pe);canActivate(i,t){return this.paymentStorageService.clear(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var L=class e{reportService=l(_e);canActivate(i,t){return this.reportService.resetFilter(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Fe=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-NB3DCG2R.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-IJWE5FIC.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[L]},{path:"Sell",loadChildren:()=>import("./chunk-WZEBH7P5.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-MMP7HKXF.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-NLLT5X4R.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-J4JOIFPA.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-REYKQIQH.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-22O4O5EJ.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-JPJFLPJG.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-CPBXXCCO.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-V3TK75EE.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-KUMJBTY5.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-6JCGTOWB.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-KT64U5FF.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-LV3QO3H3.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-5M7FY5GG.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-7DTB5U3C.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-G53YHV2L.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-EVNVUCMO.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-ES25MU2C.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-PR7GIWDS.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[U]},{path:"Promotion",loadChildren:()=>import("./chunk-BOS35V5T.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-77F7XHWC.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-NUL5GL3Q.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-7N4TQJAF.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-TEXHMVYL.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-QBY2W7QQ.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],R=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[G.forChild(Fe),G]})};var xe=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Me,R,ge,oe]})};export{xe as MenuMasterModule};
|
|
1
|
+
import{a as Pe}from"./chunk-GOZ7JJVG.js";import{a as Ce}from"./chunk-AFBBEIKR.js";import{a as _e}from"./chunk-7LCG4V47.js";import{a as be}from"./chunk-JUS6LLVX.js";import{b as Se,c as Me}from"./chunk-C4WJKF7R.js";import{a as de}from"./chunk-RLQLFW36.js";import"./chunk-EQLHPWVB.js";import"./chunk-NWSIPELM.js";import{F as ge,b as me,h as fe,o as he}from"./chunk-RNLSEEMX.js";import{a as T,c as f}from"./chunk-77V3KNIS.js";import{a as ve}from"./chunk-DQYDWBIK.js";import{a as M,d as I}from"./chunk-USJ6ILEE.js";import{a as pe}from"./chunk-P3RYBCCQ.js";import{$ as q,$d as G,Ab as F,Bb as V,Bc as ie,Cb as h,Db as o,Dc as ne,E,Eb as s,Fb as p,Ob as C,Qb as Z,Sa as Y,Vd as ae,Xa as c,Xd as se,Yd as b,Zd as le,_d as ce,ac as K,be as ue,cc as $,cd as re,d as J,da as D,db as v,dc as m,ec as B,fc as z,hb as W,ib as x,la as d,ma as y,oa as _,pa as l,pc as X,rd as oe,tb as Q,uc as ee,vc as te,zb as j}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var r=class e{constructor(i,t){this.authService=i;this.router=t}canLoad(i,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(i){let t="/menu";i.forEach(a=>t+=`/${a.path}`);let n=this.router.currentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}static \u0275fac=function(t){return new(t||e)(_(f),_(b))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var w=class e{constructor(i){this.toastrService=i;this.initPermissionToastr=!1}isPermissionGranted;initPermissionToastr;initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(t=>{this.isPermissionGranted=!1,t=="granted"&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(i){console.error(i)}}showAlert(i,t,n,u){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:i,icon:u});g.onerror=(N=>{this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})})}catch(g){console.error(g)}else this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}setBody(i,t){return this.hasUrl(t)&&(i=`<a href="${t}" target="_blank" class="ps-0">${i}</a>`),i}hasUrl(i){return!!(i&&i.length!==0)}static \u0275fac=function(t){return new(t||e)(_(ue))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Oe=[{T:"Dashboard",U:"/menu/Dashboard",I:"fa-solid fa-chart-pie"},{T:"Products",U:"/menu/Products",I:"fa-solid fa-tag"},{T:"Estimate",U:"/menu/Estimate",I:"fa-solid fa-clipboard"},{T:"Sell",U:"/menu/Sell",I:"fa-solid fa-cart-shopping"},{T:"Shift",U:"/menu/Shift/",I:"fa-solid fa-user-clock"},{T:"Reports",U:"/menu/Reports",I:"fa-solid fa-chart-area"},{T:"Contacts",U:"/menu/Contacts",I:"fas fa-address-book"},{T:"Orders",U:"/menu/Orders",I:"fas fa-file-invoice"},{T:"Payment",U:"/menu/Payment",I:"fas fa-money-bill-alt"},{T:"Debt",U:"/menu/Debt",I:"fas fa-dollar-sign"},{T:"Inventory",U:"/menu/Inventory",I:"fas fa-archive"},{T:"Adjustment",U:"/menu/Adjustment",I:"fas fa-scanner-gun"},{T:"Buy",U:"/menu/Buy",I:"fa-solid fa-cart-arrow-down"},{T:"Logistics",U:"/menu/Logistics",I:"fas fa-truck"},{T:"Fulfillment",U:"/menu/Fulfillment",I:"fas fa-dolly"},{T:"Manufacture",U:"/menu/Manufacture",I:"fas fa-industry"},{T:"Prepaid Package",U:"/menu/Prepaid_Package",I:"fa-solid fa-id-card"},{T:"Promotion",U:"/menu/Promotion",I:"fas fa-bullhorn"},{T:"Users",U:"/menu/Users",I:"fas fa-user"},{T:"Outlets",U:"/menu/Outlets",I:"fas fa-map-marker-alt"},{T:"Setup",U:"/menu/Setup",I:"fas fa-gear"},{T:"Developer",U:"/menu/Developer",I:"fas fa-code"}];var k=class e{role=l(I);authService=l(f);menu=Oe;filteredMenu=[];initFilteredMenu(){this.filteredMenu=this.menu.filter(i=>i.T==="Dashboard"?this.role.dashboard.View:i.T==="Products"?this.role.product.View:i.T==="Estimate"?this.role.estimate.Create:i.T==="Sell"?this.role.sell.Create:i.T==="Shift"?this.role.sell.Create:i.T==="Reports"?this.role.report.View:i.T==="Contacts"?this.role.contact.View:i.T==="Orders"?this.role.order.View:i.T==="Payment"?this.role.payment.View:i.T==="Debt"?this.role.debt.View:i.T==="Inventory"?this.role.inventory.View:i.T==="Adjustment"?this.role.adjustment.View:i.T==="Buy"?this.role.buy.Create:i.T==="Logistics"?this.role.logistic.View:i.T==="Manufacture"?this.role.manufacture.View:i.T==="Fulfillment"?this.role.fulfillment.View:i.T==="Prepaid Package"?this.role.prepaidPackage.View:i.T==="Promotion"?this.role.promotion.View:i.T==="Users"?this.role.users.View:i.T==="Outlets"?this.role.outlets.View:i.T==="Setup"?this.role.setup.View:i.T==="Developer"?this.role.developer.View:!0),this.filterBySubscriptionStatus()}filterBySubscriptionStatus(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(i){case 2:return t.T=="Sell"||t.T=="Shift";case 3:return!1;default:return!0}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var ye=[{T:"My Profile",U:"Profile/Main/My_Profile",I:"fas fa-user"},{T:"My Subscription",U:"Profile/Main/My_Subscription",I:"fa-solid fa-credit-card"},{T:"Notification",U:"Profile/Notification/Push",I:"fas fa-bell"},{T:"My Sales",U:"Profile/Main/My_Sales",I:"fas fa-history"}];var A=class e{role=l(I);authService=l(f);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=ye.filter(t=>t.T=="My Profile"?this.role.profile.View:t.T=="My Subscription"?this.role.profile.Subscription:t.T=="Notification"?this.role.profile.Notification&&i!=2&&i!=3:t.T=="My Sales"?i!=2&&i!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=(e,i)=>({"full-container":e,"subscription-bar-visible":i}),Re=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",11),p(1,"i",35),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;h("routerLink",t==null?null:t.U),c(),$((t==null?null:t.I)+" me-2"),c(2),B(t==null?null:t.T)}}function Ee(e,i){if(e&1&&(o(0,"li",33,0)(2,"a",36),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Z();h("routerLinkActiveOptions",n.isActiveMatchOptions),Q("data-cy",t==null?null:t.T),c(2),h("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",ee(7,Re,t==null?null:t.U)),c(),$(t==null?null:t.I),c(2),B(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,N,H){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;N.initFilteredMenu(),H.initFilteredMenu(),this.leftSidebarMenu=N.filteredMenu,this.topMenu=H.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(Te=>this.isNavOpen=Te),this.destroy$=new J,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=pe.version;currentSubStatus;subsStatusEnum=T;isFullContainer=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(i=>i instanceof ae),q(null),D(this.destroy$)).subscribe(i=>{this.isFullContainer=!1,(this.router.url.includes("Sell")&&!this.router.url.includes("v2")&&!this.router.url.includes("Offline")||this.router.url.includes("Buy")||this.router.url.includes("menu/Estimate")||this.router.url.includes("Transfer_Order/Form")||this.router.url.includes("Adjustment/Archive/Form")||this.router.url.includes("Job_Order/Archive/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Invoice/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Bill/New_Join_Bill"))&&(this.isFullContainer=!0)})}initNotificationPermission(){this.notificationAlertService.initPermission()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}subscribeToPushNotification(){let i=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(i)&&M.isGuid(i)?this.signalRClientService.SubscribeGroup(i):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let n=JSON.parse(t),u="https://cdn.dealpos.xyz/web-image/info-new.png";M.IsNotEmpty(n.Icon)&&(u=n.Icon),this.notificationAlertService.showAlert(n.Body,n.Header,n.URL,u)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(i){return M.IsNotEmpty(i)}onShowDropdown(){this.isHideIntercomLauncher=this.intercomService.isHideLauncher()}chatToggleChange(){this.isHideIntercomLauncher==!1?this.intercomService.hideLauncher():this.intercomService.showLauncher(),this.onShowDropdown()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(t){return new(t||e)(v(be),v(de),v(w),v(b),v(f),v(ve),v(k),v(A))};static \u0275cmp=W({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:54,vars:17,consts:[["rla","routerLinkActive"],[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-lg-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click","matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],[1,"dropdown-item","h5",3,"routerLink"],[1,"dropdown-item","h5",2,"cursor","pointer"],[1,"d-flex","align-items-center","justify-content-between"],[1,"fa-solid","fa-comment-dots","me-2"],[1,"checkbox_toggle","ms-3",3,"click"],["type","checkbox","id","chatToggle","name","ChatToggle",3,"ngModelChange","ngModel"],["for","chatToggle",1,"position-relative","rounded-pill","pointer"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["id","full-container",1,"main-panel",3,"ngClass"],["aria-hidden","true"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(t,n){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return n.toggleMenu()}),p(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return n.onShowDropdown()}),m(7),ie(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),F(13,Ne,4,4,"a",11,j),o(15,"a",12)(16,"div",13)(17,"div"),p(18,"i",14),o(19,"span"),m(20,"Chat Support"),s()(),o(21,"div",15),C("click",function(a){return a.stopPropagation()}),o(22,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(23,"label",17),s()()(),o(24,"a",18),C("click",function(){return n.logout()}),p(25,"i",19),o(26,"span"),m(27,"Log Out"),s()(),p(28,"div",20),o(29,"div",21),m(30," Links "),s(),o(31,"a",22),p(32,"i",23),o(33,"span"),m(34,"What's New"),p(35,"i",24),s()(),o(36,"a",25),p(37,"i",26),o(38,"span"),m(39,"Help Center"),s()(),o(40,"a",27),p(41,"i",28),o(42,"span"),m(43,"App Store"),s()(),o(44,"a",29),p(45,"i",30),o(46,"span"),m(47,"Company Blog"),s()()()()(),o(48,"div",31)(49,"ul",32),F(50,Ee,6,9,"li",33,j),s()()(),o(52,"div",34),p(53,"router-outlet"),s()()),t&2&&(K("nav-open",n.isNavOpen),c(),h("ngClass",n.toggleSideMenu?"collapses":""),c(2),h("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),h("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),z(" ",ne(8,11,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),z("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),V(n.topMenu),c(9),h("ngModel",!n.isHideIntercomLauncher),c(9),h("href",X("https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion),Y),c(19),V(n.leftSidebarMenu),c(2),h("ngClass",te(14,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[Se,se,le,ce,me,fe,he,re,Ce],styles:['.sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}}.full-container[_ngcontent-%COMP%]{padding-top:0!important}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}.checkbox_toggle[_ngcontent-%COMP%]{position:relative}.checkbox_toggle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#868686;display:inline-block;padding-right:38px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:23px;height:14px;background-color:#ccc;top:2.2px;right:0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:#1f77d0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:10px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";width:12px;height:12px;border-radius:50%;position:absolute;top:.8px;left:1px;transition:all .1s;background-color:#fff}']})};function De(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.currentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}var O=(e,i)=>{let t=l(f),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=De(i),u.navigate(["/"]),!1):e.path=="Dashboard"?je():!0};function je(){let e=l(b),i=l(f),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var U=class e{paymentStorageService=l(Pe);canActivate(i,t){return this.paymentStorageService.clear(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var L=class e{reportService=l(_e);canActivate(i,t){return this.reportService.resetFilter(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Fe=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-2ZXSQTN3.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-CC2THS3J.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[L]},{path:"Sell",loadChildren:()=>import("./chunk-V3PWVI2B.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-AVTYR2I6.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-DP3IHIJG.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-XUDYAWGP.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-2BWSGD3Z.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-FUZD2YUG.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-XZ7GA7NR.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-5O2O7IB4.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-DUJXPJ4P.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-NWDPSH4M.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-V2HVL2JW.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-QCMMZ67T.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-BFLDH5QM.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-75OKQPDZ.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-3PWKXRXD.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-CPCDU4HM.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-QIFLQIWQ.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-SMUNI47Q.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-6OSOTMIF.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[U]},{path:"Promotion",loadChildren:()=>import("./chunk-5RTCTJUG.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-OBEXYNUM.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-7DG3RSHK.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-Y4LWALJN.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-TWX33MAO.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-DT6QJWPF.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],R=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[G.forChild(Fe),G]})};var xe=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Me,R,ge,oe]})};export{xe as MenuMasterModule};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as V}from"./chunk-
|
|
1
|
+
import{a as V}from"./chunk-BA3BDB5Y.js";import{F as j,ka as F,la as L,o as N,q as B}from"./chunk-NWSIPELM.js";import{Ca as v,D as u,Fa as D,Ga as S,Gb as n,Ha as w,Hb as d,Ib as P,Ja as C,Ob as T,Rb as k,Sb as Y,Vc as z,Xa as M,Xc as a,Ya as E,ac as p,d as l,db as A,f,hb as O,ib as I,jb as x,la as y,ma as _,na as g,pa as o,tb as m,va as b,vb as H,xb as R}from"./chunk-JYZTRN6N.js";var K=["mat-sort-header",""],W=["*"];function Z(e,h){e&1&&(n(0,"div",2),b(),n(1,"svg",3),P(2,"path",4),d()())}var U=new g("MAT_SORT_DEFAULT_OPTIONS"),$=(()=>{class e{_defaultOptions;_initializedStream=new f(1);sortables=new Map;_stateChanges=new l;active;start="asc";get direction(){return this._direction}set direction(t){this._direction=t}_direction="";disableClear;disabled=!1;sortChange=new E;initialized=this._initializedStream;constructor(t){this._defaultOptions=t}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let i=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=G(t.start||this.start,i),s=r.indexOf(this.direction)+1;return s>=r.length&&(s=0),r[s]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(i){return new(i||e)(A(U,8))};static \u0275dir=x({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",a],disabled:[2,"matSortDisabled","disabled",a]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[w]})}return e})();function G(e,h){let t=["asc","desc"];return e=="desc"&&t.reverse(),h||t.push(""),t}var c=(()=>{class e{changes=new l;static \u0275fac=function(i){return new(i||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function J(e){return e||new c}var Q={provide:c,deps:[[new D,new S,c]],useFactory:J},gt=(()=>{class e{_intl=o(c);_sort=o($,{optional:!0});_columnDef=o("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=o(z);_focusMonitor=o(N);_elementRef=o(C);_ariaDescriber=o(j,{optional:!0});_renderChanges;_animationsDisabled=F();_recentlyCleared=v(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(t){this._updateSortActionDescription(t)}_sortActionDescription="Sort";disableClear;constructor(){o(B).load(V);let t=o(U,{optional:!0});this._sort,t?.arrowPosition&&(this.arrowPosition=t?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=u(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let t=this._isSorted(),i=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(t&&!this._isSorted()?i:null)}}_handleKeydown(t){(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(t){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,t)),this._sortActionDescription=t}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=O({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&T("click",function(){return r._toggleOnInteraction()})("keydown",function(q){return r._handleKeydown(q)})("mouseleave",function(){return r._recentlyCleared.set(null)}),i&2&&(m("aria-sort",r._getAriaSortAttribute()),p("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",a],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",a]},exportAs:["matSortHeader"],attrs:K,ngContentSelectors:W,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(i,r){i&1&&(k(),n(0,"div",0)(1,"div",1),Y(2),d(),H(3,Z,3,0,"div",2),d()),i&2&&(p("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before")("mat-sort-header-descending",r._sort.direction==="desc")("mat-sort-header-ascending",r._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",r._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",r._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",r._animationsDisabled),m("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),M(3),R(r._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return e})(),bt=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=I({type:e});static \u0275inj=_({providers:[Q],imports:[L]})}return e})();export{$ as a,gt as b,bt as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as G,v as q,w as B}from"./chunk-
|
|
1
|
+
import{u as G,v as q,w as B}from"./chunk-BA3BDB5Y.js";import{b as P,c as R}from"./chunk-C4WJKF7R.js";import{e as j,f as V,g as W,l as L}from"./chunk-A45GTZVV.js";import{a as w}from"./chunk-2FWFPV5I.js";import{F as A,a as E,c as O,h as F,o as k}from"./chunk-RNLSEEMX.js";import{a as D}from"./chunk-USJ6ILEE.js";import{Cb as p,Db as t,E as v,Eb as m,Ob as u,Xa as r,be as S,cd as y,db as a,dc as s,fc as d,hb as c,ic as N,jc as M,kc as h,rd as I,sc as _,vb as g,vc as T,xb as C}from"./chunk-JYZTRN6N.js";var f=class n{constructor(e,i,o){this.dialogRef=e;this.data=i;this.toastr=o;this.config.title=`Edit ${i.transactionType} Number`,this.config.customWidth="300px",this.invoiceNumber=i.invoiceNumber,this.transactionType=i.transactionType}config=new G;invoiceNumber;transactionType;ok(){D.IsNotEmpty(this.invoiceNumber)?this.dialogRef.close(this.invoiceNumber):this.toastr.info("Invoice number can not be empty",w.Info)}static \u0275fac=function(i){return new(i||n)(a(j),a(V),a(S))};static \u0275cmp=c({type:n,selectors:[["POS-modal-invoice-number"]],decls:6,vars:3,consts:[[3,"onOk","onCancel","onClose","config"],[1,"form-floating-outline","m-0"],["type","text","id","invoiceNumber","name","invoiceNumber",1,"form-control",3,"ngModelChange","ngModel"],["for","invoiceNumber"]],template:function(i,o){i&1&&(t(0,"modal-material",0),u("onOk",function(){return o.ok()})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),t(1,"content")(2,"div",1)(3,"input",2),h("ngModelChange",function(b){return M(o.invoiceNumber,b)||(o.invoiceNumber=b),b}),m(),t(4,"label",3),s(5),m()()()()),i&2&&(p("config",o.config),r(3),N("ngModel",o.invoiceNumber),r(2),d("",o.transactionType," Number"))},dependencies:[A,O,F,k,B,q],encapsulation:2})};var K=(n,e)=>({"px-2 py-2 number-disabled":n,pointer:e});function Q(n,e){n&1&&(t(0,"span"),s(1,"Editing"),m())}var H=class n{constructor(e){this.matDialog=e}isEdit=!1;transactionType="Purchase Order";disabled=!1;invoiceNumber="";onChange=e=>{};onTouched=()=>{};writeValue(e){this.invoiceNumber=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}openModalSelectOutlet(){this.disabled||this.matDialog.open(f,{data:{transactionType:this.transactionType,invoiceNumber:this.invoiceNumber}}).afterClosed().pipe(v(e=>e)).subscribe(e=>{this.invoiceNumber=e,this.onChange(this.invoiceNumber)})}static \u0275fac=function(i){return new(i||n)(a(W))};static \u0275cmp=c({type:n,selectors:[["POS-invoice-number-form"]],inputs:{isEdit:"isEdit",transactionType:"transactionType"},features:[_([{provide:E,multi:!0,useExisting:n}])],decls:3,vars:7,consts:[[1,"fw-normal",3,"click","ngClass","matTooltip"]],template:function(i,o){i&1&&(t(0,"h6",0),u("click",function(){return o.openModalSelectOutlet()}),g(1,Q,2,0,"span"),s(2),m()),i&2&&(p("ngClass",T(4,K,o.disabled,!o.disabled))("matTooltip",o.disabled?"Number Edit role is required":""),r(),C(o.isEdit?1:-1),r(),d(" ",o.invoiceNumber?o.transactionType+" #"+o.invoiceNumber:"Order Number"," "))},dependencies:[I,y,L,R,P],styles:[".number-disabled[_ngcontent-%COMP%]{background-color:#ebebe4}"]})};export{H as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ft,b as xt}from"./chunk-NBHYM7VE.js";import{a as st}from"./chunk-IWUWV3MS.js";import{a as ut}from"./chunk-U6Q2FJBU.js";import{a as Ct}from"./chunk-DLNZDHGS.js";import"./chunk-RF5WGONA.js";import"./chunk-BYXBJQAS.js";import{a as tt}from"./chunk-HL3ONSX6.js";import{d as mt,e as _t}from"./chunk-SO4GMA3Y.js";import"./chunk-PECGNYTX.js";import"./chunk-3RK6DDJD.js";import"./chunk-SARJJ3AZ.js";import"./chunk-DC426G2P.js";import"./chunk-3KSZCJ6T.js";import"./chunk-BYO7FJ4O.js";import"./chunk-CBSYYTXQ.js";import{d as lt,e as ct}from"./chunk-6WEGHV7F.js";import"./chunk-G4IW5GPY.js";import{a as Y}from"./chunk-4C5SUQ74.js";import{b as pt}from"./chunk-I3ABVEQL.js";import{f as dt}from"./chunk-I2R577A6.js";import{b as $}from"./chunk-KD7WBOUR.js";import"./chunk-ZGY4RDNA.js";import"./chunk-XI3UF2BK.js";import"./chunk-QFON23YX.js";import"./chunk-FIUZN6JU.js";import{a as it}from"./chunk-4QM23MMO.js";import{e as at,f as rt}from"./chunk-AS4NJOPX.js";import"./chunk-JEL3OND6.js";import"./chunk-IDQUQBKL.js";import"./chunk-YRGHPSPV.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-M43HNBJQ.js";import"./chunk-KKLNFVVN.js";import"./chunk-X57HWGVJ.js";import"./chunk-5SFUSWFY.js";import"./chunk-534MIVWD.js";import"./chunk-TGEQUV6Z.js";import"./chunk-S3H5URIA.js";import{b as et}from"./chunk-OGB3GW4L.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-QZMZBCE7.js";import{b as U,c as X}from"./chunk-C4WJKF7R.js";import{N as ot,g as nt}from"./chunk-NZYZO47Z.js";import"./chunk-7TBS7SPQ.js";import"./chunk-RLQLFW36.js";import"./chunk-EQLHPWVB.js";import{g as Z}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-6SGN7MNX.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as K}from"./chunk-RNLSEEMX.js";import"./chunk-47TR66HI.js";import"./chunk-7TEVE3FN.js";import{d as J}from"./chunk-USJ6ILEE.js";import"./chunk-DGKIIUIQ.js";import{Ab as W,Bb as q,Bc as m,Cb as u,Cc as C,Db as a,Dc as v,Eb as n,Ed as H,Fb as w,Hc as j,Mb as h,Ob as V,Qb as c,Xa as i,Zd as z,db as S,dc as r,ec as b,ee as Q,fc as f,fd as A,hb as M,ic as T,jc as g,kc as I,lb as O,nb as D,od as G,rd as R,ta as x,tb as k,tc as E,ua as y,uc as P,vb as d,xb as p,yb as N}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var vt=()=>["/menu/Outlets/Master/Outlets/Info"],B=e=>({ID:e}),Tt=()=>["/menu/Products/Catalog/Products/Info"],gt=()=>["/menu/Products/Catalog/Variants/Info"];function It(e,l){if(e&1){let t=h();a(0,"button",13),V("click",function(){x(t);let o=c();return y(o.openExportModal())}),w(1,"i",14),r(2," Export "),n()}}function St(e,l){if(e&1){let t=h();a(0,"div",15)(1,"h6"),r(2,"Outlet Group"),n(),a(3,"POS-outlet-group-tree-select",16),I("selectedOutletGroupIDChange",function(o){x(t);let s=c();return g(s.pageData.Filter.OutletGroupID,o)||(s.pageData.Filter.OutletGroupID=o),y(o)}),n(),a(4,"h6"),r(5,"Category"),n(),a(6,"POS-product-category-select",17),I("selectedCategoryIDChange",function(o){x(t);let s=c();return g(s.pageData.Filter.CategoryID,o)||(s.pageData.Filter.CategoryID=o),y(o)}),n(),a(7,"h6"),r(8,"Search Type"),n(),a(9,"radio-options",18),I("modelChange",function(o){x(t);let s=c();return g(s.pageData.Filter.ProductVariantSearchMode,o)||(s.pageData.Filter.ProductVariantSearchMode=o),y(o)}),V("modelChange",function(o){x(t);let s=c();return y(s.onChangeSearchType(o))}),n(),a(10,"autocompleteV3",19),I("modelNameChange",function(o){x(t);let s=c();return g(s.productVariantModel,o)||(s.productVariantModel=o),y(o)}),n(),a(11,"h6"),r(12,"From - To"),n(),a(13,"div")(14,"datepicker",20),I("dateChange",function(o){x(t);let s=c();return g(s.pageData.Filter.From,o)||(s.pageData.Filter.From=o),y(o)}),n()(),a(15,"div",21)(16,"datepicker",22),I("dateChange",function(o){x(t);let s=c();return g(s.pageData.Filter.To,o)||(s.pageData.Filter.To=o),y(o)}),n()(),a(17,"h6"),r(18,"Inventory Type"),n(),a(19,"radio-options",23),I("modelChange",function(o){x(t);let s=c();return g(s.pageData.Filter.InventoryType,o)||(s.pageData.Filter.InventoryType=o),y(o)}),n()()}if(e&2){let t=c();i(3),u("showClear",!0),T("selectedOutletGroupID",t.pageData.Filter.OutletGroupID),i(3),T("selectedCategoryID",t.pageData.Filter.CategoryID),u("showClear",!0),i(3),T("model",t.pageData.Filter.ProductVariantSearchMode),u("options",t.pageData.Options.ProductVariantSearchModes),i(),T("modelName",t.productVariantModel),u("placeholder",t.pageData.Filter.ProductVariantSearchMode===0?"Search Product":"Search Variant")("isShowEmptyMessage",!0)("emptyMessage",t.pageData.Filter.ProductVariantSearchMode===0?"No Product found":"No Variant found")("tooltipMessage",t.pageData.Filter.ProductVariantSearchMode===0?"Search by product name":"Search by variant name")("label",t.pageData.Filter.ProductVariantSearchMode===0?"Product to Analyze":"Variant to Analyze")("listDataEndpoint",t.pageData.Filter.ProductVariantSearchMode===0?"/api/ac/GetProductSuggestionByCodeNName":"/API/AC/GetVariantSuggestionByCodeNName")("valueField","Key"),i(4),u("isFloatingLabel",!1),T("date",t.pageData.Filter.From),u("hidelClearBtn",!0),i(2),u("isFloatingLabel",!1),T("date",t.pageData.Filter.To),u("hidelClearBtn",!0),i(3),T("model",t.pageData.Filter.InventoryType),u("options",t.pageData.Options.InventoryTypes)}}function ht(e,l){e&1&&(a(0,"th",9)(1,"span",24),r(2," P.Code "),n()())}function Vt(e,l){e&1&&(a(0,"th",10),r(1,"Code"),n())}function Ft(e,l){e&1&&(a(0,"th",11)(1,"span",25),r(2," Start "),n()())}function Dt(e,l){e&1&&(a(0,"th",11)(1,"span",26),r(2," Bought "),n()())}function wt(e,l){e&1&&(a(0,"th",11)(1,"span",27),r(2," Sold "),n()())}function Et(e,l){e&1&&(a(0,"th",11)(1,"span",28),r(2," T.In "),n()())}function Pt(e,l){e&1&&(a(0,"th",11)(1,"span",29),r(2," T.Out "),n()())}function bt(e,l){e&1&&(a(0,"th",11)(1,"span",30),r(2," Adjust "),n()())}function Bt(e,l){e&1&&(a(0,"th",11)(1,"span",31),r(2," End "),n()())}function Lt(e,l){e&1&&(a(0,"th",11)(1,"span",32),r(2," Now "),n()())}function Mt(e,l){e&1&&(a(0,"th",11)(1,"span",33),r(2," % "),n()())}function Ot(e,l){if(e&1&&(a(0,"td"),r(1),n()),e&2){let t=c().$implicit;i(),f(" ",t.ProductCode," ")}}function kt(e,l){if(e&1&&(a(0,"td",35),r(1),n()),e&2){let t=c().$implicit;i(),f(" ",t.VariantCode," ")}}function Nt(e,l){if(e&1&&(a(0,"td",36),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Start),i(),f(" ",C(2,2,t.Start)," ")}}function Wt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.Bought)," ")}}function qt(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.Sold)," ")}}function jt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.TransferredIn)," ")}}function At(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.TransferredOut)," ")}}function Gt(e,l){if(e&1&&(a(0,"td",36),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Adjustment),i(),f(" ",t.Adjustment<0?t.Adjustment*-1:C(2,2,t.Adjustment)," ")}}function Rt(e,l){if(e&1&&(a(0,"td",36),r(1),n()),e&2){let t=c().$implicit;u("colsFontColor",t.End),i(),f(" ",t.End," ")}}function Ht(e,l){if(e&1&&(a(0,"td",36),r(1),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Now),i(),f(" ",t.Now," ")}}function zt(e,l){if(e&1&&(a(0,"td",35),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.SellTransferInRate)," ")}}function Kt(e,l){if(e&1&&(a(0,"tr")(1,"td")(2,"a",34),r(3),n()(),a(4,"td")(5,"a",34),r(6),n()(),d(7,Ot,2,1,"td"),a(8,"td")(9,"a",34),r(10),n()(),d(11,kt,2,1,"td",35),d(12,Nt,3,4,"td",36),d(13,Wt,3,3,"td",37),d(14,qt,3,3,"td",38),d(15,jt,3,3,"td",37),d(16,At,3,3,"td",38),d(17,Gt,3,4,"td",36),d(18,Rt,2,2,"td",36),d(19,Ht,2,2,"td",36),d(20,zt,3,3,"td",35),n()),e&2){let t=l.$implicit,_=c(2);i(2),u("routerLink",E(20,vt))("queryParams",P(21,B,t.OutletID)),i(),f(" ",t.OutletName," "),i(2),u("routerLink",E(23,Tt))("queryParams",P(24,B,t.ProductID)),i(),f(" ",t.ProductName," "),i(),p(_.column.productcode.selected?7:-1),i(2),u("routerLink",E(26,gt))("queryParams",P(27,B,t.VariantID)),i(),b(t.VariantName),i(),p(_.column.code.selected?11:-1),i(),p(_.column.start.selected?12:-1),i(),p(_.column.bought.selected?13:-1),i(),p(_.column.sold.selected?14:-1),i(),p(_.column.transferredIn.selected?15:-1),i(),p(_.column.transferredOut.selected?16:-1),i(),p(_.column.adjust.selected?17:-1),i(),p(_.column.end.selected?18:-1),i(),p(_.column.now.selected?19:-1),i(),p(_.column.percent.selected?20:-1)}}function Qt(e,l){if(e&1&&W(0,Kt,21,29,"tr",null,N),e&2){let t=c();q(t.infiniteList)}}function Jt(e,l){e&1&&(a(0,"tr")(1,"td",39),w(2,"app-empty-state"),n()())}function Ut(e,l){if(e&1&&(a(0,"td",36),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Start"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Start"))," ")}}function Xt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"Bought"))," ")}}function Yt(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"Sold"))," ")}}function Zt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"TransferredIn"))," ")}}function $t(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"TransferredOut"))," ")}}function te(e,l){if(e&1&&(a(0,"td",36),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Adjustment"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Adjustment"))," ")}}function ee(e,l){if(e&1&&(a(0,"td",36),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"End"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"End"))," ")}}function ie(e,l){if(e&1&&(a(0,"td",36),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Now"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Now"))," ")}}function ne(e,l){if(e&1&&(a(0,"tfoot")(1,"tr",40)(2,"th",41),r(3," Total: "),n(),d(4,Ut,6,12,"td",36),d(5,Xt,4,6,"td",37),d(6,Yt,4,6,"td",38),d(7,Zt,4,6,"td",37),d(8,$t,4,6,"td",38),d(9,te,6,12,"td",36),d(10,ee,6,12,"td",36),d(11,ie,6,12,"td",36),n()()),e&2){let t=c();i(2),k("colspan",t.column.code.selected?4:3),i(2),p(t.column.start.selected?4:-1),i(),p(t.column.bought.selected?5:-1),i(),p(t.column.sold.selected?6:-1),i(),p(t.column.transferredIn.selected?7:-1),i(),p(t.column.transferredOut.selected?8:-1),i(),p(t.column.adjust.selected?9:-1),i(),p(t.column.end.selected?10:-1),i(),p(t.column.now.selected?11:-1)}}function oe(e,l){if(e&1){let t=h();a(0,"span",48),V("click",function(){x(t);let o=c(2);return y(o.StoreRowsCountAPIResult("inventory/GetCountVariantInventoryTraffic"))}),a(1,"i",49),r(2,"?"),n()()}}function ae(e,l){if(e&1&&(a(0,"span"),r(1),m(2,"number"),n()),e&2){let t=c(2);i(),b(C(2,1,t.listTotal))}}function re(e,l){if(e&1){let t=h();a(0,"div",12)(1,"div",42)(2,"div",43),r(3),m(4,"number"),D(5,oe,3,0,"span",44)(6,ae,3,3,"span",45),r(7),n()(),a(8,"a",46),V("click",function(){x(t);let o=c();return y(o.NextPage(!0))}),w(9,"i",47),r(10," Next"),n()()}if(e&2){let t=c();i(3),f(" Showing 1 - ",C(4,4,t.infiniteList.length)," of "),i(2),u("ngIf",!t.pageData.HideStoreApiCount),i(),u("ngIf",t.pageData.HideStoreApiCount),i(),f(" records ~ ",t.pageData.Filter.PageNumber," Page ")}}var yt=class e extends Y{constructor(t,_,o,s,L,F,le){super(t,_,"inventory/GetVariantInventoryTraffic","inventoryloader/GetVariantInventoryTraffic",void 0,void 0,!0);this.httpService=_;this.csvConverter=o;this.pageTitle=s;this.converter=L;this.roleService=F;this.matDialog=le;this.pageTitle.setTitle(this.menuData.T)}column={productcode:{selected:!1,name:"Product Code"},code:{selected:!0,name:"Variant Code"},start:{selected:!0,name:"Start"},bought:{selected:!1,name:"Bought"},sold:{selected:!0,name:"Sold"},transferredIn:{selected:!0,name:"T.In"},transferredOut:{selected:!0,name:"T.Out"},adjust:{selected:!1,name:"Adjust"},end:{selected:!1,name:"End"},now:{selected:!0,name:"Now"},percent:{selected:!0,name:"Percentage"}};selectedProduct=[];postBindData(){this.menuData.H=this.data.PageTitle}openExportModal(){this.matDialog.open($,{data:{title:"Variant Inventory Traffic",exportTypes:[{ID:"inventoryexport/GetExportVariantInventoryTraffic",Value:"Default",FileName:"Variant Inventory Traffic"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!0}})}onChangeSearchType(t){this.pageData.Filter.ListProductID=[],this.pageData.Filter.ListVariantID=[]}get productVariantModel(){return this.pageData.Filter.ProductVariantSearchMode===0?this.pageData.Filter.ListProductID:this.pageData.Filter.ListVariantID}set productVariantModel(t){this.pageData.Filter.ProductVariantSearchMode===0?this.pageData.Filter.ListProductID=t:this.pageData.Filter.ListVariantID=t}static \u0275fac=function(_){return new(_||e)(S(et),S(Q),S(it),S(H),S(st),S(J),S(Z))};static \u0275cmp=M({type:e,selectors:[["POS-variant-inventory-traffic"]],features:[O],decls:34,vars:20,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter","column"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[2,"width","180px"],[2,"width","150px"],[2,"width","80px"],[1,"text-end",2,"width","130px"],[1,"text-end",2,"width","80px"],[1,"d-flex","justify-content-between","mt-5"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[1,"tree-select-as-filter",3,"selectedOutletGroupIDChange","showClear","selectedOutletGroupID"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["name","SearchType",3,"modelChange","model","options"],[3,"modelNameChange","modelName","placeholder","isShowEmptyMessage","emptyMessage","tooltipMessage","label","listDataEndpoint","valueField"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],["name","InventoryType",3,"modelChange","model","options"],["matTooltip","Product Code","matTooltipPosition","above"],["matTooltip","Stock based on start date (from date filter)","matTooltipPosition","above"],["matTooltip","Movement Stock from Inbound Logistics (Supplier Bill)","matTooltipPosition","above"],["matTooltip","Movement Stock from Outbound Logistics (Customer Invoice)","matTooltipPosition","above"],["matTooltip","Stock received from other outlets","matTooltipPosition","above"],["matTooltip","Stock sent to other outlets","matTooltipPosition","above"],["matTooltip","Total stock adjustments made","matTooltipPosition","above"],["matTooltip","Stock based on end date (to date filter)","matTooltipPosition","above"],["matTooltip","Current on-hand inventory","matTooltipPosition","above"],["matTooltip","Percentage of sold items compared to the total items received from other outlets.","matTooltipPosition","above",1,"text-end"],[3,"routerLink","queryParams"],[1,"text-end"],[1,"text-end",3,"colsFontColor"],[1,"text-end","text-success"],[1,"text-end","text-danger"],["colspan","13"],[1,"table-footer"],[1,"empty-column","text-end"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"fw-bold","fst-italic","hidden-xxs"],["style","cursor: pointer",3,"click",4,"ngIf"],[4,"ngIf"],["role","button",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fa-solid","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["matTooltipPosition","above","matTooltip","Retrieve rows count",1,"border","p-3"]],template:function(_,o){if(_&1){let s=h();a(0,"mainpanel-cmp",1),V("onSubmit",function(){return x(s),y(o.searchFromPageOne())}),I("filterChange",function(F){return x(s),g(o.pageData.Filter,F)||(o.pageData.Filter=F),y(F)}),a(1,"actions"),D(2,It,3,0,"button",2),n(),a(3,"filters"),D(4,St,20,22,"ng-template",null,0,j),n(),a(6,"content")(7,"div",3)(8,"div",4)(9,"table",5)(10,"thead",6)(11,"tr")(12,"th",7),r(13,"Outlet"),n(),a(14,"th",8),r(15,"Product"),n(),d(16,ht,3,0,"th",9),a(17,"th"),r(18,"Variant"),n(),d(19,Vt,2,0,"th",10),d(20,Ft,3,0,"th",11),d(21,Dt,3,0,"th",11),d(22,wt,3,0,"th",11),d(23,Et,3,0,"th",11),d(24,Pt,3,0,"th",11),d(25,bt,3,0,"th",11),d(26,Bt,3,0,"th",11),d(27,Lt,3,0,"th",11),d(28,Mt,3,0,"th",11),n()(),a(29,"tbody"),d(30,Qt,2,0)(31,Jt,3,0,"tr"),n(),d(32,ne,12,9,"tfoot"),n()(),d(33,re,11,6,"div",12),n()()()}_&2&&(u("pageData",o.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),T("filter",o.pageData.Filter),u("column",o.column),i(2),u("ngIf",o.roleService.global.Export),i(14),p(o.column.productcode.selected?16:-1),i(3),p(o.column.code.selected?19:-1),i(),p(o.column.start.selected?20:-1),i(),p(o.column.bought.selected?21:-1),i(),p(o.column.sold.selected?22:-1),i(),p(o.column.transferredIn.selected?23:-1),i(),p(o.column.transferredOut.selected?24:-1),i(),p(o.column.adjust.selected?25:-1),i(),p(o.column.end.selected?26:-1),i(),p(o.column.now.selected?27:-1),i(),p(o.column.percent.selected?28:-1),i(2),p(o.infiniteList&&o.infiniteList.length>0?30:31),i(2),p(o.infiniteList&&o.infiniteList.length>0?32:-1),i(),p(o.infiniteList&&o.infiniteList.length>0?33:-1))},dependencies:[rt,at,R,A,K,ut,dt,ft,ot,z,_t,mt,ct,lt,Ct,pt,xt,X,U,G,nt,tt],encapsulation:2})};export{yt as Variant_Inventory_TrafficComponent};
|
|
1
|
+
import{a as ft,b as xt}from"./chunk-6BCNB44A.js";import{a as st}from"./chunk-IWUWV3MS.js";import{a as ut}from"./chunk-Y3AE3TKV.js";import{a as Ct}from"./chunk-DLNZDHGS.js";import"./chunk-5DQ4MJJT.js";import"./chunk-BYXBJQAS.js";import{a as tt}from"./chunk-HL3ONSX6.js";import{d as mt,e as _t}from"./chunk-QPOOLLKY.js";import"./chunk-CSFFF2YO.js";import"./chunk-3RK6DDJD.js";import"./chunk-WNZKCNMC.js";import"./chunk-LOD3JYZW.js";import"./chunk-3KSZCJ6T.js";import"./chunk-6GLKD66N.js";import"./chunk-CBSYYTXQ.js";import{d as lt,e as ct}from"./chunk-GN3HVOCN.js";import"./chunk-G4IW5GPY.js";import{a as Y}from"./chunk-A56Z62HU.js";import{b as pt}from"./chunk-I3ABVEQL.js";import{f as dt}from"./chunk-M326IFGL.js";import{b as $}from"./chunk-T2H2XAEJ.js";import"./chunk-SXAXSC44.js";import"./chunk-7LCG4V47.js";import"./chunk-QFON23YX.js";import"./chunk-FIUZN6JU.js";import{a as it}from"./chunk-4QM23MMO.js";import{e as at,f as rt}from"./chunk-GSAGOZJT.js";import"./chunk-JEL3OND6.js";import"./chunk-IDQUQBKL.js";import"./chunk-VX5HH3BW.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-M43HNBJQ.js";import"./chunk-KKLNFVVN.js";import"./chunk-X57HWGVJ.js";import"./chunk-5SFUSWFY.js";import"./chunk-534MIVWD.js";import"./chunk-TGEQUV6Z.js";import"./chunk-TV76G36W.js";import{b as et}from"./chunk-EZRYO7BE.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import{b as U,c as X}from"./chunk-C4WJKF7R.js";import{N as ot,g as nt}from"./chunk-T25N3EEG.js";import"./chunk-7TBS7SPQ.js";import"./chunk-RLQLFW36.js";import"./chunk-EQLHPWVB.js";import{g as Z}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-6SGN7MNX.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as K}from"./chunk-RNLSEEMX.js";import"./chunk-77V3KNIS.js";import"./chunk-DQYDWBIK.js";import{d as J}from"./chunk-USJ6ILEE.js";import"./chunk-P3RYBCCQ.js";import{Ab as W,Bb as q,Bc as m,Cb as u,Cc as C,Db as a,Dc as v,Eb as n,Ed as H,Fb as w,Hc as j,Mb as h,Ob as V,Qb as c,Xa as i,Zd as z,db as S,dc as r,ec as b,ee as Q,fc as f,fd as A,hb as M,ic as T,jc as g,kc as I,lb as O,nb as D,od as G,rd as R,ta as x,tb as k,tc as E,ua as y,uc as P,vb as d,xb as p,yb as N}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var vt=()=>["/menu/Outlets/Master/Outlets/Info"],B=e=>({ID:e}),Tt=()=>["/menu/Products/Catalog/Products/Info"],gt=()=>["/menu/Products/Catalog/Variants/Info"];function It(e,l){if(e&1){let t=h();a(0,"button",13),V("click",function(){x(t);let o=c();return y(o.openExportModal())}),w(1,"i",14),r(2," Export "),n()}}function St(e,l){if(e&1){let t=h();a(0,"div",15)(1,"h6"),r(2,"Outlet Group"),n(),a(3,"POS-outlet-group-tree-select",16),I("selectedOutletGroupIDChange",function(o){x(t);let s=c();return g(s.pageData.Filter.OutletGroupID,o)||(s.pageData.Filter.OutletGroupID=o),y(o)}),n(),a(4,"h6"),r(5,"Category"),n(),a(6,"POS-product-category-select",17),I("selectedCategoryIDChange",function(o){x(t);let s=c();return g(s.pageData.Filter.CategoryID,o)||(s.pageData.Filter.CategoryID=o),y(o)}),n(),a(7,"h6"),r(8,"Search Type"),n(),a(9,"radio-options",18),I("modelChange",function(o){x(t);let s=c();return g(s.pageData.Filter.ProductVariantSearchMode,o)||(s.pageData.Filter.ProductVariantSearchMode=o),y(o)}),V("modelChange",function(o){x(t);let s=c();return y(s.onChangeSearchType(o))}),n(),a(10,"autocompleteV3",19),I("modelNameChange",function(o){x(t);let s=c();return g(s.productVariantModel,o)||(s.productVariantModel=o),y(o)}),n(),a(11,"h6"),r(12,"From - To"),n(),a(13,"div")(14,"datepicker",20),I("dateChange",function(o){x(t);let s=c();return g(s.pageData.Filter.From,o)||(s.pageData.Filter.From=o),y(o)}),n()(),a(15,"div",21)(16,"datepicker",22),I("dateChange",function(o){x(t);let s=c();return g(s.pageData.Filter.To,o)||(s.pageData.Filter.To=o),y(o)}),n()(),a(17,"h6"),r(18,"Inventory Type"),n(),a(19,"radio-options",23),I("modelChange",function(o){x(t);let s=c();return g(s.pageData.Filter.InventoryType,o)||(s.pageData.Filter.InventoryType=o),y(o)}),n()()}if(e&2){let t=c();i(3),u("showClear",!0),T("selectedOutletGroupID",t.pageData.Filter.OutletGroupID),i(3),T("selectedCategoryID",t.pageData.Filter.CategoryID),u("showClear",!0),i(3),T("model",t.pageData.Filter.ProductVariantSearchMode),u("options",t.pageData.Options.ProductVariantSearchModes),i(),T("modelName",t.productVariantModel),u("placeholder",t.pageData.Filter.ProductVariantSearchMode===0?"Search Product":"Search Variant")("isShowEmptyMessage",!0)("emptyMessage",t.pageData.Filter.ProductVariantSearchMode===0?"No Product found":"No Variant found")("tooltipMessage",t.pageData.Filter.ProductVariantSearchMode===0?"Search by product name":"Search by variant name")("label",t.pageData.Filter.ProductVariantSearchMode===0?"Product to Analyze":"Variant to Analyze")("listDataEndpoint",t.pageData.Filter.ProductVariantSearchMode===0?"/api/ac/GetProductSuggestionByCodeNName":"/API/AC/GetVariantSuggestionByCodeNName")("valueField","Key"),i(4),u("isFloatingLabel",!1),T("date",t.pageData.Filter.From),u("hidelClearBtn",!0),i(2),u("isFloatingLabel",!1),T("date",t.pageData.Filter.To),u("hidelClearBtn",!0),i(3),T("model",t.pageData.Filter.InventoryType),u("options",t.pageData.Options.InventoryTypes)}}function ht(e,l){e&1&&(a(0,"th",9)(1,"span",24),r(2," P.Code "),n()())}function Vt(e,l){e&1&&(a(0,"th",10),r(1,"Code"),n())}function Ft(e,l){e&1&&(a(0,"th",11)(1,"span",25),r(2," Start "),n()())}function Dt(e,l){e&1&&(a(0,"th",11)(1,"span",26),r(2," Bought "),n()())}function wt(e,l){e&1&&(a(0,"th",11)(1,"span",27),r(2," Sold "),n()())}function Et(e,l){e&1&&(a(0,"th",11)(1,"span",28),r(2," T.In "),n()())}function Pt(e,l){e&1&&(a(0,"th",11)(1,"span",29),r(2," T.Out "),n()())}function bt(e,l){e&1&&(a(0,"th",11)(1,"span",30),r(2," Adjust "),n()())}function Bt(e,l){e&1&&(a(0,"th",11)(1,"span",31),r(2," End "),n()())}function Lt(e,l){e&1&&(a(0,"th",11)(1,"span",32),r(2," Now "),n()())}function Mt(e,l){e&1&&(a(0,"th",11)(1,"span",33),r(2," % "),n()())}function Ot(e,l){if(e&1&&(a(0,"td"),r(1),n()),e&2){let t=c().$implicit;i(),f(" ",t.ProductCode," ")}}function kt(e,l){if(e&1&&(a(0,"td",35),r(1),n()),e&2){let t=c().$implicit;i(),f(" ",t.VariantCode," ")}}function Nt(e,l){if(e&1&&(a(0,"td",36),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Start),i(),f(" ",C(2,2,t.Start)," ")}}function Wt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.Bought)," ")}}function qt(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.Sold)," ")}}function jt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.TransferredIn)," ")}}function At(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.TransferredOut)," ")}}function Gt(e,l){if(e&1&&(a(0,"td",36),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Adjustment),i(),f(" ",t.Adjustment<0?t.Adjustment*-1:C(2,2,t.Adjustment)," ")}}function Rt(e,l){if(e&1&&(a(0,"td",36),r(1),n()),e&2){let t=c().$implicit;u("colsFontColor",t.End),i(),f(" ",t.End," ")}}function Ht(e,l){if(e&1&&(a(0,"td",36),r(1),n()),e&2){let t=c().$implicit;u("colsFontColor",t.Now),i(),f(" ",t.Now," ")}}function zt(e,l){if(e&1&&(a(0,"td",35),r(1),m(2,"quantityFraction"),n()),e&2){let t=c().$implicit;i(),f(" ",C(2,1,t.SellTransferInRate)," ")}}function Kt(e,l){if(e&1&&(a(0,"tr")(1,"td")(2,"a",34),r(3),n()(),a(4,"td")(5,"a",34),r(6),n()(),d(7,Ot,2,1,"td"),a(8,"td")(9,"a",34),r(10),n()(),d(11,kt,2,1,"td",35),d(12,Nt,3,4,"td",36),d(13,Wt,3,3,"td",37),d(14,qt,3,3,"td",38),d(15,jt,3,3,"td",37),d(16,At,3,3,"td",38),d(17,Gt,3,4,"td",36),d(18,Rt,2,2,"td",36),d(19,Ht,2,2,"td",36),d(20,zt,3,3,"td",35),n()),e&2){let t=l.$implicit,_=c(2);i(2),u("routerLink",E(20,vt))("queryParams",P(21,B,t.OutletID)),i(),f(" ",t.OutletName," "),i(2),u("routerLink",E(23,Tt))("queryParams",P(24,B,t.ProductID)),i(),f(" ",t.ProductName," "),i(),p(_.column.productcode.selected?7:-1),i(2),u("routerLink",E(26,gt))("queryParams",P(27,B,t.VariantID)),i(),b(t.VariantName),i(),p(_.column.code.selected?11:-1),i(),p(_.column.start.selected?12:-1),i(),p(_.column.bought.selected?13:-1),i(),p(_.column.sold.selected?14:-1),i(),p(_.column.transferredIn.selected?15:-1),i(),p(_.column.transferredOut.selected?16:-1),i(),p(_.column.adjust.selected?17:-1),i(),p(_.column.end.selected?18:-1),i(),p(_.column.now.selected?19:-1),i(),p(_.column.percent.selected?20:-1)}}function Qt(e,l){if(e&1&&W(0,Kt,21,29,"tr",null,N),e&2){let t=c();q(t.infiniteList)}}function Jt(e,l){e&1&&(a(0,"tr")(1,"td",39),w(2,"app-empty-state"),n()())}function Ut(e,l){if(e&1&&(a(0,"td",36),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Start"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Start"))," ")}}function Xt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"Bought"))," ")}}function Yt(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"Sold"))," ")}}function Zt(e,l){if(e&1&&(a(0,"td",37),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"TransferredIn"))," ")}}function $t(e,l){if(e&1&&(a(0,"td",38),r(1),m(2,"sum"),m(3,"quantityFraction"),n()),e&2){let t=c(2);i(),f(" ",C(3,4,v(2,1,t.infiniteList,"TransferredOut"))," ")}}function te(e,l){if(e&1&&(a(0,"td",36),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Adjustment"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Adjustment"))," ")}}function ee(e,l){if(e&1&&(a(0,"td",36),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"End"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"End"))," ")}}function ie(e,l){if(e&1&&(a(0,"td",36),m(1,"sum"),m(2,"quantityFraction"),r(3),m(4,"sum"),m(5,"quantityFraction"),n()),e&2){let t=c(2);u("colsFontColor",C(2,5,v(1,2,t.infiniteList,"Now"))),i(3),f(" ",C(5,10,v(4,7,t.infiniteList,"Now"))," ")}}function ne(e,l){if(e&1&&(a(0,"tfoot")(1,"tr",40)(2,"th",41),r(3," Total: "),n(),d(4,Ut,6,12,"td",36),d(5,Xt,4,6,"td",37),d(6,Yt,4,6,"td",38),d(7,Zt,4,6,"td",37),d(8,$t,4,6,"td",38),d(9,te,6,12,"td",36),d(10,ee,6,12,"td",36),d(11,ie,6,12,"td",36),n()()),e&2){let t=c();i(2),k("colspan",t.column.code.selected?4:3),i(2),p(t.column.start.selected?4:-1),i(),p(t.column.bought.selected?5:-1),i(),p(t.column.sold.selected?6:-1),i(),p(t.column.transferredIn.selected?7:-1),i(),p(t.column.transferredOut.selected?8:-1),i(),p(t.column.adjust.selected?9:-1),i(),p(t.column.end.selected?10:-1),i(),p(t.column.now.selected?11:-1)}}function oe(e,l){if(e&1){let t=h();a(0,"span",48),V("click",function(){x(t);let o=c(2);return y(o.StoreRowsCountAPIResult("inventory/GetCountVariantInventoryTraffic"))}),a(1,"i",49),r(2,"?"),n()()}}function ae(e,l){if(e&1&&(a(0,"span"),r(1),m(2,"number"),n()),e&2){let t=c(2);i(),b(C(2,1,t.listTotal))}}function re(e,l){if(e&1){let t=h();a(0,"div",12)(1,"div",42)(2,"div",43),r(3),m(4,"number"),D(5,oe,3,0,"span",44)(6,ae,3,3,"span",45),r(7),n()(),a(8,"a",46),V("click",function(){x(t);let o=c();return y(o.NextPage(!0))}),w(9,"i",47),r(10," Next"),n()()}if(e&2){let t=c();i(3),f(" Showing 1 - ",C(4,4,t.infiniteList.length)," of "),i(2),u("ngIf",!t.pageData.HideStoreApiCount),i(),u("ngIf",t.pageData.HideStoreApiCount),i(),f(" records ~ ",t.pageData.Filter.PageNumber," Page ")}}var yt=class e extends Y{constructor(t,_,o,s,L,F,le){super(t,_,"inventory/GetVariantInventoryTraffic","inventoryloader/GetVariantInventoryTraffic",void 0,void 0,!0);this.httpService=_;this.csvConverter=o;this.pageTitle=s;this.converter=L;this.roleService=F;this.matDialog=le;this.pageTitle.setTitle(this.menuData.T)}column={productcode:{selected:!1,name:"Product Code"},code:{selected:!0,name:"Variant Code"},start:{selected:!0,name:"Start"},bought:{selected:!1,name:"Bought"},sold:{selected:!0,name:"Sold"},transferredIn:{selected:!0,name:"T.In"},transferredOut:{selected:!0,name:"T.Out"},adjust:{selected:!1,name:"Adjust"},end:{selected:!1,name:"End"},now:{selected:!0,name:"Now"},percent:{selected:!0,name:"Percentage"}};selectedProduct=[];postBindData(){this.menuData.H=this.data.PageTitle}openExportModal(){this.matDialog.open($,{data:{title:"Variant Inventory Traffic",exportTypes:[{ID:"inventoryexport/GetExportVariantInventoryTraffic",Value:"Default",FileName:"Variant Inventory Traffic"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!0}})}onChangeSearchType(t){this.pageData.Filter.ListProductID=[],this.pageData.Filter.ListVariantID=[]}get productVariantModel(){return this.pageData.Filter.ProductVariantSearchMode===0?this.pageData.Filter.ListProductID:this.pageData.Filter.ListVariantID}set productVariantModel(t){this.pageData.Filter.ProductVariantSearchMode===0?this.pageData.Filter.ListProductID=t:this.pageData.Filter.ListVariantID=t}static \u0275fac=function(_){return new(_||e)(S(et),S(Q),S(it),S(H),S(st),S(J),S(Z))};static \u0275cmp=M({type:e,selectors:[["POS-variant-inventory-traffic"]],features:[O],decls:34,vars:20,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter","column"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[2,"width","180px"],[2,"width","150px"],[2,"width","80px"],[1,"text-end",2,"width","130px"],[1,"text-end",2,"width","80px"],[1,"d-flex","justify-content-between","mt-5"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[1,"tree-select-as-filter",3,"selectedOutletGroupIDChange","showClear","selectedOutletGroupID"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["name","SearchType",3,"modelChange","model","options"],[3,"modelNameChange","modelName","placeholder","isShowEmptyMessage","emptyMessage","tooltipMessage","label","listDataEndpoint","valueField"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],["name","InventoryType",3,"modelChange","model","options"],["matTooltip","Product Code","matTooltipPosition","above"],["matTooltip","Stock based on start date (from date filter)","matTooltipPosition","above"],["matTooltip","Movement Stock from Inbound Logistics (Supplier Bill)","matTooltipPosition","above"],["matTooltip","Movement Stock from Outbound Logistics (Customer Invoice)","matTooltipPosition","above"],["matTooltip","Stock received from other outlets","matTooltipPosition","above"],["matTooltip","Stock sent to other outlets","matTooltipPosition","above"],["matTooltip","Total stock adjustments made","matTooltipPosition","above"],["matTooltip","Stock based on end date (to date filter)","matTooltipPosition","above"],["matTooltip","Current on-hand inventory","matTooltipPosition","above"],["matTooltip","Percentage of sold items compared to the total items received from other outlets.","matTooltipPosition","above",1,"text-end"],[3,"routerLink","queryParams"],[1,"text-end"],[1,"text-end",3,"colsFontColor"],[1,"text-end","text-success"],[1,"text-end","text-danger"],["colspan","13"],[1,"table-footer"],[1,"empty-column","text-end"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"fw-bold","fst-italic","hidden-xxs"],["style","cursor: pointer",3,"click",4,"ngIf"],[4,"ngIf"],["role","button",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fa-solid","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["matTooltipPosition","above","matTooltip","Retrieve rows count",1,"border","p-3"]],template:function(_,o){if(_&1){let s=h();a(0,"mainpanel-cmp",1),V("onSubmit",function(){return x(s),y(o.searchFromPageOne())}),I("filterChange",function(F){return x(s),g(o.pageData.Filter,F)||(o.pageData.Filter=F),y(F)}),a(1,"actions"),D(2,It,3,0,"button",2),n(),a(3,"filters"),D(4,St,20,22,"ng-template",null,0,j),n(),a(6,"content")(7,"div",3)(8,"div",4)(9,"table",5)(10,"thead",6)(11,"tr")(12,"th",7),r(13,"Outlet"),n(),a(14,"th",8),r(15,"Product"),n(),d(16,ht,3,0,"th",9),a(17,"th"),r(18,"Variant"),n(),d(19,Vt,2,0,"th",10),d(20,Ft,3,0,"th",11),d(21,Dt,3,0,"th",11),d(22,wt,3,0,"th",11),d(23,Et,3,0,"th",11),d(24,Pt,3,0,"th",11),d(25,bt,3,0,"th",11),d(26,Bt,3,0,"th",11),d(27,Lt,3,0,"th",11),d(28,Mt,3,0,"th",11),n()(),a(29,"tbody"),d(30,Qt,2,0)(31,Jt,3,0,"tr"),n(),d(32,ne,12,9,"tfoot"),n()(),d(33,re,11,6,"div",12),n()()()}_&2&&(u("pageData",o.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),T("filter",o.pageData.Filter),u("column",o.column),i(2),u("ngIf",o.roleService.global.Export),i(14),p(o.column.productcode.selected?16:-1),i(3),p(o.column.code.selected?19:-1),i(),p(o.column.start.selected?20:-1),i(),p(o.column.bought.selected?21:-1),i(),p(o.column.sold.selected?22:-1),i(),p(o.column.transferredIn.selected?23:-1),i(),p(o.column.transferredOut.selected?24:-1),i(),p(o.column.adjust.selected?25:-1),i(),p(o.column.end.selected?26:-1),i(),p(o.column.now.selected?27:-1),i(),p(o.column.percent.selected?28:-1),i(2),p(o.infiniteList&&o.infiniteList.length>0?30:31),i(2),p(o.infiniteList&&o.infiniteList.length>0?32:-1),i(),p(o.infiniteList&&o.infiniteList.length>0?33:-1))},dependencies:[rt,at,R,A,K,ut,dt,ft,ot,z,_t,mt,ct,lt,Ct,pt,xt,X,U,G,nt,tt],encapsulation:2})};export{yt as Variant_Inventory_TrafficComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as jt,e as dt,g as Gt}from"./chunk-QZMZBCE7.js";import{A as Vt,C as Nt,G as ot,J as Ot,K as Qt,O as zt,R as Wt,S as st,f as St,g as rt,ka as Z,la as lt,p as At,q as Ft,t as Ht}from"./chunk-NWSIPELM.js";import{$ as V,$a as O,$b as Bt,Ab as at,B as vt,Bb as it,Cb as T,D as H,Db as h,E as yt,Eb as y,Fb as z,Ha as wt,Ia as N,Ja as R,Ka as It,M as kt,Mb as E,Ob as C,Qb as g,Rb as W,Sb as j,Tb as S,Ub as p,Vb as m,Vc as $,Wb as b,Xa as f,Xc as _,Ya as u,Yc as q,Z as Tt,Za as P,_b as nt,a as w,aa as Ct,ab as Q,ac as v,c as ut,cb as X,cc as G,d as F,da as M,dc as Lt,ec as Et,fb as Dt,hb as B,ib as Rt,jb as I,k as ft,lb as L,ma as xt,na as D,nb as U,o as gt,ob as Mt,pa as o,sb as Pt,sc as A,ta as d,tb as k,ua as c,vb as J,xa as Y,xb as tt,zb as et}from"./chunk-JYZTRN6N.js";var pt=["*"];function te(n,l){n&1&&j(0)}var ee=["tabListContainer"],ae=["tabList"],ie=["tabListInner"],ne=["nextPaginator"],re=["previousPaginator"],oe=["content"];function se(n,l){}var le=["tabBodyWrapper"],de=["tabHeader"];function ce(n,l){}function me(n,l){if(n&1&&U(0,ce,0,0,"ng-template",12),n&2){let t=g().$implicit;T("cdkPortalOutlet",t.templateLabel)}}function be(n,l){if(n&1&&Lt(0),n&2){let t=g().$implicit;Et(t.textLabel)}}function he(n,l){if(n&1){let t=E();h(0,"div",7,2),C("click",function(){let a=d(t),i=a.$implicit,r=a.$index,s=g(),x=nt(1);return c(s._handleClick(i,x,r))})("cdkFocusChange",function(a){let i=d(t).$index,r=g();return c(r._tabFocusChanged(a,i))}),z(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),J(6,me,1,1,null,12)(7,be,1,1),y()()()}if(n&2){let t=l.$implicit,e=l.$index,a=nt(1),i=g();G(t.labelClass),v("mdc-tab--active",i.selectedIndex===e),T("id",i._getTabLabelId(t,e))("disabled",t.disabled)("fitInkBarToContent",i.fitInkBarToContent),k("tabIndex",i._getTabIndex(e))("aria-posinset",e+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(e))("aria-selected",i.selectedIndex===e)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),f(3),T("matRippleTrigger",a)("matRippleDisabled",t.disabled||i.disableRipple),f(3),tt(t.templateLabel?6:7)}}function pe(n,l){n&1&&j(0)}function _e(n,l){if(n&1){let t=E();h(0,"mat-tab-body",13),C("_onCentered",function(){d(t);let a=g();return c(a._removeTabBodyWrapperHeight())})("_onCentering",function(a){d(t);let i=g();return c(i._setTabBodyWrapperHeight(a))})("_beforeCentering",function(a){d(t);let i=g();return c(i._bodyCentered(a))}),y()}if(n&2){let t=l.$implicit,e=l.$index,a=g();G(t.bodyClass),T("id",a._getTabContentId(e))("content",t.content)("position",t.position)("animationDuration",a.animationDuration)("preserveContent",a.preserveContent),k("tabindex",a.contentTabIndex!=null&&a.selectedIndex===e?a.contentTabIndex:null)("aria-labelledby",a._getTabLabelId(t,e))("aria-hidden",a.selectedIndex!==e)}}var ue=new D("MatTabContent"),fe=(()=>{class n{template=o(Q);constructor(){}static \u0275fac=function(e){return new(e||n)};static \u0275dir=I({type:n,selectors:[["","matTabContent",""]],features:[A([{provide:ue,useExisting:n}])]})}return n})(),ge=new D("MatTabLabel"),Kt=new D("MAT_TAB"),ve=(()=>{class n extends Wt{_closestTab=o(Kt,{optional:!0});static \u0275fac=(()=>{let t;return function(a){return(t||(t=N(n)))(a||n)}})();static \u0275dir=I({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[A([{provide:ge,useExisting:n}]),L]})}return n})(),Yt=new D("MAT_TAB_GROUP"),ye=(()=>{class n{_viewContainerRef=o(Dt);_closestTabGroup=o(Yt,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new F;position=null;origin=null;isActive=!1;constructor(){o(Ft).load(jt)}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new zt(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&t._closestTab===this&&(this._templateLabel=t)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=B({type:n,selectors:[["mat-tab"]],contentQueries:function(e,a,i){if(e&1&&(S(i,ve,5),S(i,fe,7,Q)),e&2){let r;m(r=b())&&(a.templateLabel=r.first),m(r=b())&&(a._explicitContent=r.first)}},viewQuery:function(e,a){if(e&1&&p(Q,7),e&2){let i;m(i=b())&&(a._implicitContent=i.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(e,a){e&2&&k("id",null)},inputs:{disabled:[2,"disabled","disabled",_],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[A([{provide:Kt,useExisting:n}]),wt],ngContentSelectors:pt,decls:1,vars:0,template:function(e,a){e&1&&(W(),Mt(0,te,1,0,"ng-template"))},encapsulation:2})}return n})(),ct="mdc-tab-indicator--active",$t="mdc-tab-indicator--no-transition",mt=class{_items;_currentItem;constructor(l){this._items=l}hide(){this._items.forEach(l=>l.deactivateInkBar()),this._currentItem=void 0}alignToElement(l){let t=this._items.find(a=>a.elementRef.nativeElement===l),e=this._currentItem;if(t!==e&&(e?.deactivateInkBar(),t)){let a=e?.elementRef.nativeElement.getBoundingClientRect?.();t.activateInkBar(a),this._currentItem=t}}},ke=(()=>{class n{_elementRef=o(R);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){this._fitToContent!==t&&(this._fitToContent=t,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){let e=this._elementRef.nativeElement;if(!t||!e.getBoundingClientRect||!this._inkBarContentElement){e.classList.add(ct);return}let a=e.getBoundingClientRect(),i=t.width/a.width,r=t.left-a.left;e.classList.add($t),this._inkBarContentElement.style.setProperty("transform",`translateX(${r}px) scaleX(${i})`),e.getBoundingClientRect(),e.classList.remove($t),e.classList.add(ct),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(ct)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let t=this._elementRef.nativeElement.ownerDocument||document,e=this._inkBarElement=t.createElement("span"),a=this._inkBarContentElement=t.createElement("span");e.className="mdc-tab-indicator",a.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",e.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let t=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;t.appendChild(this._inkBarElement)}static \u0275fac=function(e){return new(e||n)};static \u0275dir=I({type:n,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",_]}})}return n})();var Xt=(()=>{class n extends ke{elementRef=o(R);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let t;return function(a){return(t||(t=N(n)))(a||n)}})();static \u0275dir=I({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,a){e&2&&(k("aria-disabled",!!a.disabled),v("mat-mdc-tab-disabled",a.disabled))},inputs:{disabled:[2,"disabled","disabled",_]},features:[L]})}return n})(),qt={passive:!0},Te=650,Ce=100,xe=(()=>{class n{_elementRef=o(R);_changeDetectorRef=o($);_viewportRuler=o(Qt);_dir=o(ot,{optional:!0});_ngZone=o(P);_platform=o(rt);_sharedResizeObserver=o(Gt);_injector=o(Y);_renderer=o(X);_animationsDisabled=Z();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new F;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new F;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let e=isNaN(t)?0:t;this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}_selectedIndex=0;selectFocusedIndex=new u;indexFocused=new u;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),qt),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),qt))}ngAfterContentInit(){let t=this._dir?this._dir.change:gt("ltr"),e=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(kt(32),M(this._destroyed)),a=this._viewportRuler.change(150).pipe(M(this._destroyed)),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Nt(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),O(i,{injector:this._injector}),H(t,a,e,this._items.changes,this._itemsResized()).pipe(M(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),i()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(r=>{this.indexFocused.emit(r),this._setTabFocus(r)})}_itemsResized(){return typeof ResizeObserver!="function"?ft:this._items.changes.pipe(V(this._items),Ct(t=>new ut(e=>this._ngZone.runOutsideAngular(()=>{let a=new ResizeObserver(i=>e.next(i));return t.forEach(i=>a.observe(i.elementRef.nativeElement)),()=>{a.disconnect()}}))),Tt(1),yt(t=>t.some(e=>e.contentRect.width>0&&e.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._eventCleanups.forEach(t=>t()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!St(t))switch(t.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let e=this._items.get(this.focusIndex);e&&!e.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t))}break;default:this._keyManager?.onKeydown(t)}}_onContentChanges(){let t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){!this._isValidIndex(t)||this.focusIndex===t||!this._keyManager||this._keyManager.setActiveItem(t)}_isValidIndex(t){return this._items?!!this._items.toArray()[t]:!0}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();let e=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?e.scrollLeft=0:e.scrollLeft=e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let t=this.scrollDistance,e=this._getLayoutDirection()==="ltr"?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){let e=this._tabListContainer.nativeElement.offsetWidth,a=(t=="before"?-1:1)*e/3;return this._scrollTo(this._scrollDistance+a)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;let e=this._items?this._items.toArray()[t]:null;if(!e)return;let a=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:r}=e.elementRef.nativeElement,s,x;this._getLayoutDirection()=="ltr"?(s=i,x=s+r):(x=this._tabListInner.nativeElement.offsetWidth-i,s=x-r);let K=this.scrollDistance,_t=this.scrollDistance+a;s<K?this.scrollDistance-=K-s:x>_t&&(this.scrollDistance+=Math.min(x-_t,s-K))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let t=this._tabListInner.nativeElement.scrollWidth,e=this._elementRef.nativeElement.offsetWidth,a=t-e>=5;a||(this.scrollDistance=0),a!==this._showPaginationControls&&(this._showPaginationControls=a,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let t=this._tabListInner.nativeElement.scrollWidth,e=this._tabListContainer.nativeElement.offsetWidth;return t-e||0}_alignInkBarToSelectedTab(){let t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&e.button!=null&&e.button!==0||(this._stopInterval(),vt(Te,Ce).pipe(M(H(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:a,distance:i}=this._scrollHeader(t);(i===0||i>=a)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}static \u0275fac=function(e){return new(e||n)};static \u0275dir=I({type:n,inputs:{disablePagination:[2,"disablePagination","disablePagination",_],selectedIndex:[2,"selectedIndex","selectedIndex",q]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return n})(),we=(()=>{class n extends xe{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new mt(this._items),super.ngAfterContentInit()}_itemSelected(t){t.preventDefault()}static \u0275fac=(()=>{let t;return function(a){return(t||(t=N(n)))(a||n)}})();static \u0275cmp=B({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,a,i){if(e&1&&S(i,Xt,4),e&2){let r;m(r=b())&&(a._items=r)}},viewQuery:function(e,a){if(e&1&&(p(ee,7),p(ae,7),p(ie,7),p(ne,5),p(re,5)),e&2){let i;m(i=b())&&(a._tabListContainer=i.first),m(i=b())&&(a._tabList=i.first),m(i=b())&&(a._tabListInner=i.first),m(i=b())&&(a._nextPaginator=i.first),m(i=b())&&(a._previousPaginator=i.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,a){e&2&&v("mat-mdc-tab-header-pagination-controls-enabled",a._showPaginationControls)("mat-mdc-tab-header-rtl",a._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",_]},features:[L],ngContentSelectors:pt,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(e,a){if(e&1){let i=E();W(),h(0,"div",5,0),C("click",function(){return d(i),c(a._handlePaginatorClick("before"))})("mousedown",function(s){return d(i),c(a._handlePaginatorPress("before",s))})("touchend",function(){return d(i),c(a._stopInterval())}),z(2,"div",6),y(),h(3,"div",7,1),C("keydown",function(s){return d(i),c(a._handleKeydown(s))}),h(5,"div",8,2),C("cdkObserveContent",function(){return d(i),c(a._onContentChanges())}),h(7,"div",9,3),j(9),y()()(),h(10,"div",10,4),C("mousedown",function(s){return d(i),c(a._handlePaginatorPress("after",s))})("click",function(){return d(i),c(a._handlePaginatorClick("after"))})("touchend",function(){return d(i),c(a._stopInterval())}),z(12,"div",6),y()}e&2&&(v("mat-mdc-tab-header-pagination-disabled",a._disableScrollBefore),T("matRippleDisabled",a._disableScrollBefore||a.disableRipple),f(3),v("_mat-animation-noopable",a._animationsDisabled),f(2),k("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null),f(5),v("mat-mdc-tab-header-pagination-disabled",a._disableScrollAfter),T("matRippleDisabled",a._disableScrollAfter||a.disableRipple))},dependencies:[dt,Ht],styles:[`.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}
|
|
1
|
+
import{a as jt,e as dt,g as Gt}from"./chunk-BA3BDB5Y.js";import{A as Vt,C as Nt,G as ot,J as Ot,K as Qt,O as zt,R as Wt,S as st,f as St,g as rt,ka as Z,la as lt,p as At,q as Ft,t as Ht}from"./chunk-NWSIPELM.js";import{$ as V,$a as O,$b as Bt,Ab as at,B as vt,Bb as it,Cb as T,D as H,Db as h,E as yt,Eb as y,Fb as z,Ha as wt,Ia as N,Ja as R,Ka as It,M as kt,Mb as E,Ob as C,Qb as g,Rb as W,Sb as j,Tb as S,Ub as p,Vb as m,Vc as $,Wb as b,Xa as f,Xc as _,Ya as u,Yc as q,Z as Tt,Za as P,_b as nt,a as w,aa as Ct,ab as Q,ac as v,c as ut,cb as X,cc as G,d as F,da as M,dc as Lt,ec as Et,fb as Dt,hb as B,ib as Rt,jb as I,k as ft,lb as L,ma as xt,na as D,nb as U,o as gt,ob as Mt,pa as o,sb as Pt,sc as A,ta as d,tb as k,ua as c,vb as J,xa as Y,xb as tt,zb as et}from"./chunk-JYZTRN6N.js";var pt=["*"];function te(n,l){n&1&&j(0)}var ee=["tabListContainer"],ae=["tabList"],ie=["tabListInner"],ne=["nextPaginator"],re=["previousPaginator"],oe=["content"];function se(n,l){}var le=["tabBodyWrapper"],de=["tabHeader"];function ce(n,l){}function me(n,l){if(n&1&&U(0,ce,0,0,"ng-template",12),n&2){let t=g().$implicit;T("cdkPortalOutlet",t.templateLabel)}}function be(n,l){if(n&1&&Lt(0),n&2){let t=g().$implicit;Et(t.textLabel)}}function he(n,l){if(n&1){let t=E();h(0,"div",7,2),C("click",function(){let a=d(t),i=a.$implicit,r=a.$index,s=g(),x=nt(1);return c(s._handleClick(i,x,r))})("cdkFocusChange",function(a){let i=d(t).$index,r=g();return c(r._tabFocusChanged(a,i))}),z(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),J(6,me,1,1,null,12)(7,be,1,1),y()()()}if(n&2){let t=l.$implicit,e=l.$index,a=nt(1),i=g();G(t.labelClass),v("mdc-tab--active",i.selectedIndex===e),T("id",i._getTabLabelId(t,e))("disabled",t.disabled)("fitInkBarToContent",i.fitInkBarToContent),k("tabIndex",i._getTabIndex(e))("aria-posinset",e+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(e))("aria-selected",i.selectedIndex===e)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),f(3),T("matRippleTrigger",a)("matRippleDisabled",t.disabled||i.disableRipple),f(3),tt(t.templateLabel?6:7)}}function pe(n,l){n&1&&j(0)}function _e(n,l){if(n&1){let t=E();h(0,"mat-tab-body",13),C("_onCentered",function(){d(t);let a=g();return c(a._removeTabBodyWrapperHeight())})("_onCentering",function(a){d(t);let i=g();return c(i._setTabBodyWrapperHeight(a))})("_beforeCentering",function(a){d(t);let i=g();return c(i._bodyCentered(a))}),y()}if(n&2){let t=l.$implicit,e=l.$index,a=g();G(t.bodyClass),T("id",a._getTabContentId(e))("content",t.content)("position",t.position)("animationDuration",a.animationDuration)("preserveContent",a.preserveContent),k("tabindex",a.contentTabIndex!=null&&a.selectedIndex===e?a.contentTabIndex:null)("aria-labelledby",a._getTabLabelId(t,e))("aria-hidden",a.selectedIndex!==e)}}var ue=new D("MatTabContent"),fe=(()=>{class n{template=o(Q);constructor(){}static \u0275fac=function(e){return new(e||n)};static \u0275dir=I({type:n,selectors:[["","matTabContent",""]],features:[A([{provide:ue,useExisting:n}])]})}return n})(),ge=new D("MatTabLabel"),Kt=new D("MAT_TAB"),ve=(()=>{class n extends Wt{_closestTab=o(Kt,{optional:!0});static \u0275fac=(()=>{let t;return function(a){return(t||(t=N(n)))(a||n)}})();static \u0275dir=I({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[A([{provide:ge,useExisting:n}]),L]})}return n})(),Yt=new D("MAT_TAB_GROUP"),ye=(()=>{class n{_viewContainerRef=o(Dt);_closestTabGroup=o(Yt,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new F;position=null;origin=null;isActive=!1;constructor(){o(Ft).load(jt)}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new zt(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&t._closestTab===this&&(this._templateLabel=t)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=B({type:n,selectors:[["mat-tab"]],contentQueries:function(e,a,i){if(e&1&&(S(i,ve,5),S(i,fe,7,Q)),e&2){let r;m(r=b())&&(a.templateLabel=r.first),m(r=b())&&(a._explicitContent=r.first)}},viewQuery:function(e,a){if(e&1&&p(Q,7),e&2){let i;m(i=b())&&(a._implicitContent=i.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(e,a){e&2&&k("id",null)},inputs:{disabled:[2,"disabled","disabled",_],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[A([{provide:Kt,useExisting:n}]),wt],ngContentSelectors:pt,decls:1,vars:0,template:function(e,a){e&1&&(W(),Mt(0,te,1,0,"ng-template"))},encapsulation:2})}return n})(),ct="mdc-tab-indicator--active",$t="mdc-tab-indicator--no-transition",mt=class{_items;_currentItem;constructor(l){this._items=l}hide(){this._items.forEach(l=>l.deactivateInkBar()),this._currentItem=void 0}alignToElement(l){let t=this._items.find(a=>a.elementRef.nativeElement===l),e=this._currentItem;if(t!==e&&(e?.deactivateInkBar(),t)){let a=e?.elementRef.nativeElement.getBoundingClientRect?.();t.activateInkBar(a),this._currentItem=t}}},ke=(()=>{class n{_elementRef=o(R);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){this._fitToContent!==t&&(this._fitToContent=t,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){let e=this._elementRef.nativeElement;if(!t||!e.getBoundingClientRect||!this._inkBarContentElement){e.classList.add(ct);return}let a=e.getBoundingClientRect(),i=t.width/a.width,r=t.left-a.left;e.classList.add($t),this._inkBarContentElement.style.setProperty("transform",`translateX(${r}px) scaleX(${i})`),e.getBoundingClientRect(),e.classList.remove($t),e.classList.add(ct),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(ct)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let t=this._elementRef.nativeElement.ownerDocument||document,e=this._inkBarElement=t.createElement("span"),a=this._inkBarContentElement=t.createElement("span");e.className="mdc-tab-indicator",a.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",e.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let t=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;t.appendChild(this._inkBarElement)}static \u0275fac=function(e){return new(e||n)};static \u0275dir=I({type:n,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",_]}})}return n})();var Xt=(()=>{class n extends ke{elementRef=o(R);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let t;return function(a){return(t||(t=N(n)))(a||n)}})();static \u0275dir=I({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,a){e&2&&(k("aria-disabled",!!a.disabled),v("mat-mdc-tab-disabled",a.disabled))},inputs:{disabled:[2,"disabled","disabled",_]},features:[L]})}return n})(),qt={passive:!0},Te=650,Ce=100,xe=(()=>{class n{_elementRef=o(R);_changeDetectorRef=o($);_viewportRuler=o(Qt);_dir=o(ot,{optional:!0});_ngZone=o(P);_platform=o(rt);_sharedResizeObserver=o(Gt);_injector=o(Y);_renderer=o(X);_animationsDisabled=Z();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new F;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new F;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let e=isNaN(t)?0:t;this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}_selectedIndex=0;selectFocusedIndex=new u;indexFocused=new u;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),qt),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),qt))}ngAfterContentInit(){let t=this._dir?this._dir.change:gt("ltr"),e=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(kt(32),M(this._destroyed)),a=this._viewportRuler.change(150).pipe(M(this._destroyed)),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Nt(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),O(i,{injector:this._injector}),H(t,a,e,this._items.changes,this._itemsResized()).pipe(M(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),i()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(r=>{this.indexFocused.emit(r),this._setTabFocus(r)})}_itemsResized(){return typeof ResizeObserver!="function"?ft:this._items.changes.pipe(V(this._items),Ct(t=>new ut(e=>this._ngZone.runOutsideAngular(()=>{let a=new ResizeObserver(i=>e.next(i));return t.forEach(i=>a.observe(i.elementRef.nativeElement)),()=>{a.disconnect()}}))),Tt(1),yt(t=>t.some(e=>e.contentRect.width>0&&e.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._eventCleanups.forEach(t=>t()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!St(t))switch(t.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let e=this._items.get(this.focusIndex);e&&!e.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t))}break;default:this._keyManager?.onKeydown(t)}}_onContentChanges(){let t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){!this._isValidIndex(t)||this.focusIndex===t||!this._keyManager||this._keyManager.setActiveItem(t)}_isValidIndex(t){return this._items?!!this._items.toArray()[t]:!0}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();let e=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?e.scrollLeft=0:e.scrollLeft=e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let t=this.scrollDistance,e=this._getLayoutDirection()==="ltr"?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){let e=this._tabListContainer.nativeElement.offsetWidth,a=(t=="before"?-1:1)*e/3;return this._scrollTo(this._scrollDistance+a)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;let e=this._items?this._items.toArray()[t]:null;if(!e)return;let a=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:r}=e.elementRef.nativeElement,s,x;this._getLayoutDirection()=="ltr"?(s=i,x=s+r):(x=this._tabListInner.nativeElement.offsetWidth-i,s=x-r);let K=this.scrollDistance,_t=this.scrollDistance+a;s<K?this.scrollDistance-=K-s:x>_t&&(this.scrollDistance+=Math.min(x-_t,s-K))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let t=this._tabListInner.nativeElement.scrollWidth,e=this._elementRef.nativeElement.offsetWidth,a=t-e>=5;a||(this.scrollDistance=0),a!==this._showPaginationControls&&(this._showPaginationControls=a,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let t=this._tabListInner.nativeElement.scrollWidth,e=this._tabListContainer.nativeElement.offsetWidth;return t-e||0}_alignInkBarToSelectedTab(){let t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&e.button!=null&&e.button!==0||(this._stopInterval(),vt(Te,Ce).pipe(M(H(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:a,distance:i}=this._scrollHeader(t);(i===0||i>=a)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}static \u0275fac=function(e){return new(e||n)};static \u0275dir=I({type:n,inputs:{disablePagination:[2,"disablePagination","disablePagination",_],selectedIndex:[2,"selectedIndex","selectedIndex",q]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return n})(),we=(()=>{class n extends xe{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new mt(this._items),super.ngAfterContentInit()}_itemSelected(t){t.preventDefault()}static \u0275fac=(()=>{let t;return function(a){return(t||(t=N(n)))(a||n)}})();static \u0275cmp=B({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,a,i){if(e&1&&S(i,Xt,4),e&2){let r;m(r=b())&&(a._items=r)}},viewQuery:function(e,a){if(e&1&&(p(ee,7),p(ae,7),p(ie,7),p(ne,5),p(re,5)),e&2){let i;m(i=b())&&(a._tabListContainer=i.first),m(i=b())&&(a._tabList=i.first),m(i=b())&&(a._tabListInner=i.first),m(i=b())&&(a._nextPaginator=i.first),m(i=b())&&(a._previousPaginator=i.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,a){e&2&&v("mat-mdc-tab-header-pagination-controls-enabled",a._showPaginationControls)("mat-mdc-tab-header-rtl",a._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",_]},features:[L],ngContentSelectors:pt,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(e,a){if(e&1){let i=E();W(),h(0,"div",5,0),C("click",function(){return d(i),c(a._handlePaginatorClick("before"))})("mousedown",function(s){return d(i),c(a._handlePaginatorPress("before",s))})("touchend",function(){return d(i),c(a._stopInterval())}),z(2,"div",6),y(),h(3,"div",7,1),C("keydown",function(s){return d(i),c(a._handleKeydown(s))}),h(5,"div",8,2),C("cdkObserveContent",function(){return d(i),c(a._onContentChanges())}),h(7,"div",9,3),j(9),y()()(),h(10,"div",10,4),C("mousedown",function(s){return d(i),c(a._handlePaginatorPress("after",s))})("click",function(){return d(i),c(a._handlePaginatorClick("after"))})("touchend",function(){return d(i),c(a._stopInterval())}),z(12,"div",6),y()}e&2&&(v("mat-mdc-tab-header-pagination-disabled",a._disableScrollBefore),T("matRippleDisabled",a._disableScrollBefore||a.disableRipple),f(3),v("_mat-animation-noopable",a._animationsDisabled),f(2),k("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null),f(5),v("mat-mdc-tab-header-pagination-disabled",a._disableScrollAfter),T("matRippleDisabled",a._disableScrollAfter||a.disableRipple))},dependencies:[dt,Ht],styles:[`.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}
|
|
2
2
|
`],encapsulation:2})}return n})(),Ie=new D("MAT_TABS_CONFIG"),Zt=(()=>{class n extends st{_host=o(bt);_ngZone=o(P);_centeringSub=w.EMPTY;_leavingSub=w.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(V(this._host._isCenterPosition())).subscribe(t=>{this._host._content&&t&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(e){return new(e||n)};static \u0275dir=I({type:n,selectors:[["","matTabBodyHost",""]],features:[L]})}return n})(),bt=(()=>{class n{_elementRef=o(R);_dir=o(ot,{optional:!0});_ngZone=o(P);_injector=o(Y);_renderer=o(X);_diAnimationsDisabled=Z();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=w.EMPTY;_position;_previousPosition;_onCentering=new u;_beforeCentering=new u;_afterLeavingCenter=new u;_onCentered=new u(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(t){this._positionIndex=t,this._computePositionAnimationState()}constructor(){if(this._dir){let t=o($);this._dirChangeSubscription=this._dir.change.subscribe(e=>{this._computePositionAnimationState(e),t.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),O(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(t=>t()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let t=this._elementRef.nativeElement,e=a=>{a.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),a.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(t,"transitionstart",a=>{a.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(t,"transitionend",e),this._renderer.listen(t,"transitioncancel",e)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let t=this._position==="center";this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(t){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",t)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(t=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=t=="ltr"?"left":"right":this._positionIndex>0?this._position=t=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),O(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=B({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,a){if(e&1&&(p(Zt,5),p(oe,5)),e&2){let i;m(i=b())&&(a._portalHost=i.first),m(i=b())&&(a._contentElement=i.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(e,a){e&2&&k("inert",a._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(e,a){e&1&&(h(0,"div",1,0),U(2,se,0,0,"ng-template",2),y()),e&2&&v("mat-tab-body-content-left",a._position==="left")("mat-tab-body-content-right",a._position==="right")("mat-tab-body-content-can-animate",a._position==="center"||a._previousPosition==="center")},dependencies:[Zt,Ot],styles:[`.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)}
|
|
3
3
|
`],encapsulation:2})}return n})(),la=(()=>{class n{_elementRef=o(R);_changeDetectorRef=o($);_ngZone=o(P);_tabsSubscription=w.EMPTY;_tabLabelSubscription=w.EMPTY;_tabBodySubscription=w.EMPTY;_diAnimationsDisabled=Z();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new It;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(t){this._fitInkBarToContent=t,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=isNaN(t)?null:t}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(t){let e=t+"";this._animationDuration=/^\d+$/.test(e)?t+"ms":e}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(t){this._contentTabIndex=isNaN(t)?null:t}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(t){let e=this._elementRef.nativeElement.classList;e.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),t&&e.add("mat-tabs-with-background",`mat-background-${t}`),this._backgroundColor=t}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new u;focusChange=new u;animationDone=new u;selectedTabChange=new u(!0);_groupId;_isServer=!o(rt).isBrowser;constructor(){let t=o(Ie,{optional:!0});this._groupId=o(Vt).getId("mat-tab-group-"),this.animationDuration=t&&t.animationDuration?t.animationDuration:"500ms",this.disablePagination=t&&t.disablePagination!=null?t.disablePagination:!1,this.dynamicHeight=t&&t.dynamicHeight!=null?t.dynamicHeight:!1,t?.contentTabIndex!=null&&(this.contentTabIndex=t.contentTabIndex),this.preserveContent=!!t?.preserveContent,this.fitInkBarToContent=t&&t.fitInkBarToContent!=null?t.fitInkBarToContent:!1,this.stretchTabs=t&&t.stretchTabs!=null?t.stretchTabs:!0,this.alignTabs=t&&t.alignTabs!=null?t.alignTabs:null}ngAfterContentChecked(){let t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){let e=this._selectedIndex==null;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));let a=this._tabBodyWrapper.nativeElement;a.style.minHeight=a.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((a,i)=>a.isActive=i===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((e,a)=>{e.position=a-t,this._selectedIndex!=null&&e.position==0&&!e.origin&&(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let t=this._clampTabIndex(this._indexToSelect);if(t===this._selectedIndex){let e=this._tabs.toArray(),a;for(let i=0;i<e.length;i++)if(e[i].isActive){this._indexToSelect=this._selectedIndex=i,this._lastFocusedTabIndex=null,a=e[i];break}!a&&e[t]&&Promise.resolve().then(()=>{e[t].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(t))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(V(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(e=>e._closestTabGroup===this||!e._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(t){let e=this._tabHeader;e&&(e.focusIndex=t)}_focusChanged(t){this._lastFocusedTabIndex=t,this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){let e=new ht;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=H(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t,e){return t.id||`${this._groupId}-label-${e}`}_getTabContentId(t){return`${this._groupId}-content-${t}`}_setTabBodyWrapperHeight(t){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=t;return}let e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){let t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(t,e,a){e.focusIndex=a,t.disabled||(this.selectedIndex=a)}_getTabIndex(t){let e=this._lastFocusedTabIndex??this.selectedIndex;return t===e?0:-1}_tabFocusChanged(t,e){t&&t!=="mouse"&&t!=="touch"&&(this._tabHeader.focusIndex=e)}_bodyCentered(t){t&&this._tabBodies?.forEach((e,a)=>e._setActiveClass(a===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=B({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,a,i){if(e&1&&S(i,ye,5),e&2){let r;m(r=b())&&(a._allTabs=r)}},viewQuery:function(e,a){if(e&1&&(p(le,5),p(de,5),p(bt,5)),e&2){let i;m(i=b())&&(a._tabBodyWrapper=i.first),m(i=b())&&(a._tabHeader=i.first),m(i=b())&&(a._tabBodies=i)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(e,a){e&2&&(k("mat-align-tabs",a.alignTabs),G("mat-"+(a.color||"primary")),Bt("--mat-tab-animation-duration",a.animationDuration),v("mat-mdc-tab-group-dynamic-height",a.dynamicHeight)("mat-mdc-tab-group-inverted-header",a.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",a.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",_],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",_],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",_],selectedIndex:[2,"selectedIndex","selectedIndex",q],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",q],disablePagination:[2,"disablePagination","disablePagination",_],disableRipple:[2,"disableRipple","disableRipple",_],preserveContent:[2,"preserveContent","preserveContent",_],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[A([{provide:Yt,useExisting:n}])],ngContentSelectors:pt,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(e,a){if(e&1){let i=E();W(),h(0,"mat-tab-header",3,0),C("indexFocused",function(s){return d(i),c(a._focusChanged(s))})("selectFocusedIndex",function(s){return d(i),c(a.selectedIndex=s)}),at(2,he,8,17,"div",4,et),y(),J(4,pe,1,0),h(5,"div",5,1),at(7,_e,1,10,"mat-tab-body",6,et),y()}e&2&&(T("selectedIndex",a.selectedIndex||0)("disableRipple",a.disableRipple)("disablePagination",a.disablePagination),Pt("aria-label",a.ariaLabel)("aria-labelledby",a.ariaLabelledby),f(2),it(a._tabs),f(2),tt(a._isServer?4:-1),f(),v("_mat-animation-noopable",a._animationsDisabled()),f(2),it(a._tabs))},dependencies:[we,Xt,At,dt,st,bt],styles:[`.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}
|
|
4
4
|
`],encapsulation:2})}return n})(),ht=class{index;tab};var da=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Rt({type:n});static \u0275inj=xt({imports:[lt,lt]})}return n})();export{fe as a,ve as b,ye as c,la as d,da as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as a}from"./chunk-PIZRVCBM.js";import"./chunk-HVJHE6PQ.js";import"./chunk-YQUQYWX3.js";import"./chunk-B3STLAM7.js";import"./chunk-RJJYGGF6.js";import"./chunk-7NOKG3UC.js";import"./chunk-VP2ZEIJA.js";import"./chunk-HL3ONSX6.js";import"./chunk-XA4TVPAS.js";import"./chunk-T25N3EEG.js";import"./chunk-USJ6ILEE.js";import"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";export{a as PrintModule};
|