dealpos 25.47.0 → 25.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/{chunk-K4LLK7O5.js → chunk-2B5OZGVM.js} +1 -1
- package/browser/{chunk-647PQZMJ.js → chunk-2IIAMAC2.js} +1 -1
- package/browser/{chunk-FR66DARJ.js → chunk-2LYXOQ5N.js} +1 -1
- package/browser/{chunk-2RERZJD4.js → chunk-2MCEIRJY.js} +1 -1
- package/browser/{chunk-L32BGRA6.js → chunk-32RSQ3UU.js} +1 -1
- package/browser/{chunk-JEFUIFY4.js → chunk-3KNGE65M.js} +1 -1
- package/browser/{chunk-HV4KV3DJ.js → chunk-3L267ZNV.js} +1 -1
- package/browser/{chunk-E2DUJTA4.js → chunk-3OHHXDTW.js} +1 -1
- package/browser/chunk-3THWKHRL.js +1 -0
- package/browser/{chunk-IR2QPNXA.js → chunk-47T7IWRR.js} +3 -3
- package/browser/{chunk-RYTM3LHN.js → chunk-4AKG7BSF.js} +1 -1
- package/browser/{chunk-KBISFX5T.js → chunk-4IQRI3GN.js} +1 -1
- package/browser/{chunk-BALKIB67.js → chunk-4KMRZ2TB.js} +1 -1
- package/browser/{chunk-P7UMAIIW.js → chunk-4RKRHCPA.js} +1 -1
- package/browser/{chunk-P632SS2L.js → chunk-4XGRIAZ2.js} +1 -1
- package/browser/{chunk-KTPMM54V.js → chunk-4Y2FYXDF.js} +1 -1
- package/browser/chunk-54W52P5V.js +3 -0
- package/browser/{chunk-ME5KGPYC.js → chunk-55K6ABR7.js} +1 -1
- package/browser/chunk-56J3O2YI.js +14 -0
- package/browser/{chunk-2HOSLZ77.js → chunk-5BH2H4V6.js} +1 -1
- package/browser/{chunk-RF5WGONA.js → chunk-5DQ4MJJT.js} +1 -1
- package/browser/{chunk-5PUIMWNW.js → chunk-5S5ZFAPJ.js} +1 -1
- package/browser/chunk-5WZX5UDC.js +1 -0
- package/browser/{chunk-QVJJGWXC.js → chunk-63AFDUIT.js} +14 -14
- package/browser/{chunk-LLEPB2B6.js → chunk-64RUCACD.js} +1 -1
- package/browser/{chunk-ORQ3JDJE.js → chunk-6BKNXERF.js} +1 -1
- package/browser/{chunk-BYO7FJ4O.js → chunk-6GLKD66N.js} +1 -1
- package/browser/{chunk-WBO7PC7R.js → chunk-722XQJ5H.js} +1 -1
- package/browser/{chunk-ZSW24KNO.js → chunk-7TWRUF3H.js} +1 -1
- package/browser/chunk-7XC4XIHR.js +1 -0
- package/browser/chunk-A4H6IBC3.js +1 -0
- package/browser/{chunk-DWZLJMWC.js → chunk-ABNUBGXO.js} +1 -1
- package/browser/{chunk-JVEVLEGH.js → chunk-AE6CDP2N.js} +1 -1
- package/browser/{chunk-APOV2ZYY.js → chunk-AEXXXOEQ.js} +1 -1
- package/browser/{chunk-JKMJAL6Y.js → chunk-AKFNDMFE.js} +2 -2
- package/browser/{chunk-ABO3BJKM.js → chunk-AMONIKLC.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-BCUIYEEN.js +1 -0
- package/browser/{chunk-AIM6VG2H.js → chunk-BMSRWGKX.js} +1 -1
- package/browser/{chunk-WA4WWHYW.js → chunk-BNYVOYYX.js} +1 -1
- package/browser/{chunk-CAGQRIPG.js → chunk-BTJPSMLV.js} +1 -1
- package/browser/{chunk-ON47ICI3.js → chunk-C6YPXBIP.js} +1 -1
- package/browser/chunk-CA6YBQT3.js +21 -0
- package/browser/{chunk-EKORPCX3.js → chunk-CJII6RPH.js} +1 -1
- package/browser/{chunk-PECGNYTX.js → chunk-CSFFF2YO.js} +1 -1
- package/browser/{chunk-EAFSL5ZF.js → chunk-CWFUNJQI.js} +1 -1
- package/browser/{chunk-HQ4NLUV6.js → chunk-DEGB7PBB.js} +1 -1
- package/browser/chunk-DFUQ53YY.js +4 -0
- package/browser/chunk-DPGY5YXC.js +1 -0
- package/browser/chunk-DSF34FWR.js +131 -0
- package/browser/{chunk-NRF37QSD.js → chunk-E5XIALIA.js} +1 -1
- package/browser/{chunk-ROLAW5XO.js → chunk-ECEHKAWW.js} +1 -1
- package/browser/{chunk-IGNVHAO2.js → chunk-EQR3RN5K.js} +1 -1
- package/browser/{chunk-ZXSVZL53.js → chunk-FNH6K4S4.js} +1 -1
- package/browser/{chunk-RSN23KAR.js → chunk-FUS5ABYT.js} +1 -1
- package/browser/{chunk-BKBSPC2U.js → chunk-G2VAG4V3.js} +1 -1
- package/browser/{chunk-6WEGHV7F.js → chunk-GN3HVOCN.js} +1 -1
- package/browser/chunk-H44MWYXB.js +16 -0
- package/browser/{chunk-BY57IAJ7.js → chunk-HD2QU6GJ.js} +1 -1
- package/browser/{chunk-QIFQFG3V.js → chunk-HEPRCWZT.js} +1 -1
- package/browser/{chunk-FQSAJFS6.js → chunk-HQMGZB3H.js} +1 -1
- package/browser/{chunk-27Y3MQJV.js → chunk-HVJHE6PQ.js} +1 -1
- package/browser/{chunk-YG6ODXQF.js → chunk-HYURPMUC.js} +1 -1
- package/browser/{chunk-KEAT6AT3.js → chunk-I5W4NCFM.js} +1 -1
- package/browser/{chunk-EX4TE4E5.js → chunk-IDOZYC3I.js} +1 -1
- package/browser/chunk-IFOBYW26.js +1 -0
- package/browser/{chunk-YMLCHH2G.js → chunk-IMVZUGYH.js} +1 -1
- package/browser/chunk-IPKXGQTW.js +1 -0
- package/browser/{chunk-POJQGU7L.js → chunk-JR5LAUIS.js} +1 -1
- package/browser/{chunk-2LSFBE4Q.js → chunk-K5L5HMWR.js} +1 -1
- package/browser/{chunk-MA6NB2EZ.js → chunk-KVE6HTDK.js} +1 -1
- package/browser/chunk-KWKY5NGW.js +149 -0
- package/browser/{chunk-UBXEYFKJ.js → chunk-KY577SRX.js} +1 -1
- package/browser/{chunk-3HS4V7LK.js → chunk-L7CBHHVQ.js} +3 -3
- package/browser/{chunk-6TGKH2KC.js → chunk-LB7NU42O.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-BATVMTNZ.js → chunk-LPWVUN75.js} +1 -1
- package/browser/{chunk-HI65LAJQ.js → chunk-LS5TMLIT.js} +1 -1
- package/browser/{chunk-W3EZ4JHD.js → chunk-MNVLPMSI.js} +1 -1
- package/browser/{chunk-2JZS4BMV.js → chunk-MNZTXNPB.js} +1 -1
- package/browser/{chunk-WH2BY5K4.js → chunk-MVUVDYGQ.js} +1 -1
- package/browser/{chunk-H4DUHWPT.js → chunk-MYKOQWDM.js} +1 -1
- package/browser/{chunk-UBCB4G4S.js → chunk-MZIYTJ6Z.js} +1 -1
- package/browser/chunk-NBMH5YL2.css +1 -0
- package/browser/{chunk-DSQH2UQV.js → chunk-NCLOGMP4.js} +1 -1
- package/browser/{chunk-Q473GHR5.js → chunk-ND6K5DYL.js} +1 -1
- package/browser/chunk-NFAOMT2P.js +4 -0
- package/browser/{chunk-HU3YNBXW.js → chunk-NS7V266J.js} +1 -1
- package/browser/{chunk-UE2HBW5H.js → chunk-NVCUDJUL.js} +1 -1
- package/browser/{chunk-IUDUQNN7.js → chunk-NVYVELCF.js} +3 -3
- package/browser/{chunk-PLWCVGTF.js → chunk-O2LFJOK7.js} +1 -1
- package/browser/{chunk-5OKSTEWQ.js → chunk-OBXCVFDY.js} +1 -1
- package/browser/{chunk-DM4PGQEH.js → chunk-OK5EBIMF.js} +10 -10
- package/browser/{chunk-FY2ZQK3Q.js → chunk-P3LNLMNH.js} +1 -1
- package/browser/{chunk-HLML4BKF.js → chunk-P43N5BDV.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-4JAEMXSQ.js → chunk-PSJRHKCL.js} +1 -1
- package/browser/{chunk-P53EATPC.js → chunk-Q6KWA7ML.js} +1 -1
- package/browser/{chunk-SKE3MW2D.js → chunk-QHNGMJWX.js} +1 -1
- package/browser/chunk-QPMF6WP7.js +1 -0
- package/browser/{chunk-SO4GMA3Y.js → chunk-QPOOLLKY.js} +1 -1
- package/browser/{chunk-MSW23AJV.js → chunk-QQDH2U6C.js} +1 -1
- package/browser/{chunk-NN2EFVJK.js → chunk-QQXPISMR.js} +1 -1
- package/browser/chunk-R3BLOGD6.js +1 -0
- package/browser/{chunk-WMUZZ5XX.js → chunk-RAQ5KDLF.js} +1 -1
- package/browser/{chunk-MHVF2KXK.js → chunk-RFCZ4NNF.js} +1 -1
- package/browser/{chunk-ULYBLEXA.js → chunk-RJJYGGF6.js} +1 -1
- package/browser/{chunk-E3LGKC33.js → chunk-RKBLZASG.js} +1 -1
- package/browser/{chunk-3YKXHA6Q.js → chunk-RMB6IO7X.js} +1 -1
- package/browser/{chunk-TH7SO4LD.js → chunk-S5HK3JOC.js} +1 -1
- package/browser/chunk-SDRB6Y54.js +1 -0
- package/browser/{chunk-XIXDLSA2.js → chunk-SVUUS5JD.js} +1 -1
- package/browser/{chunk-7EQG6N5Y.js → chunk-SWPKQM2X.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-UGCO74DQ.js +1 -0
- package/browser/{chunk-JWH2AZ3Z.js → chunk-UJTEC3AC.js} +1 -1
- package/browser/{chunk-WBMSB25X.js → chunk-UTTKPBED.js} +1 -1
- package/browser/{chunk-OFTORAX4.js → chunk-V4KJNBS7.js} +1 -1
- package/browser/{chunk-MPAFCKH7.js → chunk-VAPCHGLS.js} +1 -1
- package/browser/{chunk-XE46ZDV6.js → chunk-VC7J7CSQ.js} +1 -1
- package/browser/{chunk-YRGHPSPV.js → chunk-VX5HH3BW.js} +1 -1
- package/browser/{chunk-EZ5EW4QK.js → chunk-VXHN6MWB.js} +1 -1
- package/browser/{chunk-5L54U63F.js → chunk-W4W2KCYV.js} +1 -1
- package/browser/chunk-WCCWWFYE.js +1 -0
- package/browser/{chunk-SARJJ3AZ.js → chunk-WNZKCNMC.js} +1 -1
- package/browser/{chunk-HTJJDQ3V.js → chunk-WWQSFAIE.js} +1 -1
- package/browser/{chunk-MPE7Q4VX.js → chunk-XL7XI3DY.js} +1 -1
- package/browser/{chunk-GK4I3EKQ.js → chunk-YFRQWQ66.js} +1 -1
- package/browser/chunk-YJFCUHVH.js +1 -0
- package/browser/{chunk-BCD363QF.js → chunk-YOIV5LCG.js} +1 -1
- package/browser/{chunk-3XKRDZSE.js → chunk-YQUQYWX3.js} +1 -1
- package/browser/{chunk-GDS3XQ5F.js → chunk-YRDGEYIV.js} +1 -1
- package/browser/{chunk-T5FBPKPS.js → chunk-YUTT2QKH.js} +1 -1
- package/browser/{chunk-M5KE2CW7.js → chunk-YWDEOTPR.js} +1 -1
- package/browser/chunk-YYGLCUQ6.js +4 -0
- package/browser/chunk-Z2CO5BFP.js +1 -0
- package/browser/{chunk-IQDT5K5I.js → chunk-ZEIM63JO.js} +1 -1
- package/browser/{chunk-P6NP3EAO.js → chunk-ZJDY54VM.js} +1 -1
- package/browser/{chunk-CX7CJIXK.js → chunk-ZNIIYEEO.js} +4 -4
- package/browser/index.html +2 -2
- package/browser/{main-VVZRGXWB.js → main-7GOIEWD6.js} +2 -2
- package/browser/main-WPNH2WGQ.css +1 -0
- package/package.json +1 -1
- package/browser/chunk-474F5EIO.js +0 -149
- package/browser/chunk-4ZXLS56M.js +0 -4
- package/browser/chunk-5ZFCEP2C.css +0 -1
- package/browser/chunk-5ZMTBZT3.js +0 -1
- package/browser/chunk-6SC4T77S.js +0 -1
- package/browser/chunk-7P3E5NJO.js +0 -1
- package/browser/chunk-C5S5BG57.js +0 -1
- package/browser/chunk-D6Y2NJT7.js +0 -1
- package/browser/chunk-DGF2U27C.js +0 -4
- package/browser/chunk-FIMFYHCK.js +0 -4
- package/browser/chunk-G5QWJMKY.js +0 -1
- package/browser/chunk-GI7KMXBX.js +0 -21
- package/browser/chunk-I2P6B3IK.js +0 -1
- package/browser/chunk-IT6GHGT4.js +0 -1
- package/browser/chunk-KUYGPZRD.js +0 -1
- package/browser/chunk-LEGL2HWF.js +0 -1
- package/browser/chunk-LWA7CCEY.js +0 -16
- package/browser/chunk-MMP7HKXF.js +0 -1
- package/browser/chunk-O5IZN23R.js +0 -14
- package/browser/chunk-QQ4DCXLE.js +0 -1
- package/browser/chunk-QRTOTG7S.js +0 -1
- package/browser/chunk-SGSO4UVM.js +0 -1
- package/browser/chunk-WDD7INF4.js +0 -131
- package/browser/chunk-WY6RTBDA.js +0 -3
- package/browser/main-5IXVIJ7Z.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-CJII6RPH.js";import{a as t}from"./chunk-SNAKHGZS.js";var i=class extends e{constructor(r,a,o,l,s,p,F){super(r,a,o,l,s,p,F)}preInitLoader(){this.loaderPayload=t({ListIDs:this.reportFilterService.initOutletFilter([])},this.loaderPayload)}preInitList(){this.pageData.Filter.ListIDs=this.loaderPayload.ListIDs,this.pageData.Filter.From=this.reportFilterService.initDateFromFilter(this.pageData?.Filter?.From),this.pageData.Filter.To=this.reportFilterService.initDateToFilter(this.pageData?.Filter?.To)}onFilterOutlets(){this.reportFilterService.setOutletFilter(this.pageData.Filter.ListIDs)}onFilterFromDate(){this.reportFilterService.setDateFromFilter(this.pageData?.Filter?.From)}onFilterToDate(){this.reportFilterService.setDateToFilter(this.pageData?.Filter?.To)}};export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as p}from"./chunk-
|
|
1
|
+
import{w as p}from"./chunk-BA3BDB5Y.js";import{ib as n,ma as m,rd as f}from"./chunk-JYZTRN6N.js";var c=class i{static \u0275fac=function(s){return new(s||i)};static \u0275mod=n({type:i});static \u0275inj=m({imports:[f,p]})};var u=(r=>(r[r.TYPE=0]="TYPE",r[r.NOTE=1]="NOTE",r[r.INTERNAL_NOTE=2]="INTERNAL_NOTE",r[r.OTHER=3]="OTHER",r[r.LOGISTICS=4]="LOGISTICS",r[r.NUMBER=5]="NUMBER",r))(u||{});export{c as a,u as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ia}from"./chunk-3KSZCJ6T.js";import{b as nt,c as rt,d as aa}from"./chunk-BYO7FJ4O.js";import{a as ra,b as sa}from"./chunk-CBSYYTXQ.js";import{a as ta,k as na,l as st}from"./chunk-QZMZBCE7.js";import{b as Jt}from"./chunk-C4WJKF7R.js";import{A as _e,G as Z,L as Kt,N as et,O as jt,S as tt,T as Wt,U as qt,V as at,W as Qt,Z as Gt,_ as $t,ba as Ut,da as Zt,e as Pt,f as K,g as Bt,ha as Xt,j as Xe,ka as it,la as ea,p as Je,q as me,r as Le,x as Ht,z as zt}from"./chunk-NWSIPELM.js";import{a as Ye,d as Ne,e as ue,f as Ot,g as Yt,k as Nt,t as Lt}from"./chunk-RNLSEEMX.js";import{$ as we,$a as qe,$b as Te,Ab as Ve,Bb as Ie,Ca as u,Cb as g,D as se,Db as c,E as wt,Eb as h,Fa as ke,Fb as I,Ga as Se,Gb as Vt,Ha as N,Hb as It,Ia as de,Ic as Tt,Ja as H,Mb as he,Mc as Ft,N as At,Nb as xe,Ob as f,Qb as m,Rb as pe,Sb as $,Tb as xt,Ub as x,Vb as k,Vc as F,Wb as S,Xa as l,Xc as O,Ya as p,Za as We,a as M,ab as kt,ac as T,cb as Qe,cc as Ue,cd as Rt,d as E,dc as D,eb as St,ec as R,fb as Ge,fc as U,gc as Ze,hb as w,ib as Ee,ic as Fe,jb as V,jc as Re,ka as Ke,kc as Oe,la as Y,lb as z,ma as Ae,na as Q,nb as $e,o as Ce,oa as Me,ob as Et,pa as o,sc as L,ta as y,tb as v,ua as C,va as oe,vb as le,wa as je,xa as G,xb as ce,ya as Mt}from"./chunk-JYZTRN6N.js";import{a as yt,b as Ct}from"./chunk-SNAKHGZS.js";var ot=new Q("MAT_DATE_LOCALE",{providedIn:"root",factory:ka});function ka(){return o(Tt)}var X="Method not implemented",_=class{locale;_localeChanges=new E;localeChanges=this._localeChanges;setTime(s,e,t,a){throw new Error(X)}getHours(s){throw new Error(X)}getMinutes(s){throw new Error(X)}getSeconds(s){throw new Error(X)}parseTime(s,e){throw new Error(X)}addSeconds(s,e){throw new Error(X)}getValidDateOrNull(s){return this.isDateInstance(s)&&this.isValid(s)?s:null}deserialize(s){return s==null||this.isDateInstance(s)&&this.isValid(s)?s:this.invalid()}setLocale(s){this.locale=s,this._localeChanges.next()}compareDate(s,e){return this.getYear(s)-this.getYear(e)||this.getMonth(s)-this.getMonth(e)||this.getDate(s)-this.getDate(e)}compareTime(s,e){return this.getHours(s)-this.getHours(e)||this.getMinutes(s)-this.getMinutes(e)||this.getSeconds(s)-this.getSeconds(e)}sameDate(s,e){if(s&&e){let t=this.isValid(s),a=this.isValid(e);return t&&a?!this.compareDate(s,e):t==a}return s==e}sameTime(s,e){if(s&&e){let t=this.isValid(s),a=this.isValid(e);return t&&a?!this.compareTime(s,e):t==a}return s==e}clampDate(s,e,t){return e&&this.compareDate(s,e)<0?e:t&&this.compareDate(s,t)>0?t:s}},P=new Q("mat-date-formats");var Va=["mat-calendar-body",""];function Ia(n,s){return this._trackRow(s)}var ma=(n,s)=>s.id;function xa(n,s){if(n&1&&(c(0,"tr",0)(1,"td",3),D(2),h()()),n&2){let e=m();l(),Te("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),v("colspan",e.numCols),l(),U(" ",e.label," ")}}function Ta(n,s){if(n&1&&(c(0,"td",3),D(1),h()),n&2){let e=m(2);Te("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),v("colspan",e._firstRowOffset),l(),U(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Fa(n,s){if(n&1){let e=he();c(0,"td",6)(1,"button",7),f("click",function(a){let i=y(e).$implicit,r=m(2);return C(r._cellClicked(i,a))})("focus",function(a){let i=y(e).$implicit,r=m(2);return C(r._emitActiveDateChange(i,a))}),c(2,"span",8),D(3),h(),I(4,"span",9),h()()}if(n&2){let e=s.$implicit,t=s.$index,a=m().$index,i=m();Te("width",i._cellWidth)("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),v("data-mat-row",a)("data-mat-col",t),l(),T("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",i._isActiveCell(a,t))("mat-calendar-body-range-start",i._isRangeStart(e.compareValue))("mat-calendar-body-range-end",i._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",i._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",i._isComparisonBridgeStart(e.compareValue,a,t))("mat-calendar-body-comparison-bridge-end",i._isComparisonBridgeEnd(e.compareValue,a,t))("mat-calendar-body-comparison-start",i._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",i._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",i._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",i._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",i._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",i._isInPreview(e.compareValue)),g("ngClass",e.cssClasses)("tabindex",i._isActiveCell(a,t)?0:-1),v("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",i._isSelected(e.compareValue))("aria-current",i.todayValue===e.compareValue?"date":null)("aria-describedby",i._getDescribedby(e.compareValue)),l(),T("mat-calendar-body-selected",i._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",i._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",i.todayValue===e.compareValue),l(),U(" ",e.displayValue," ")}}function Ra(n,s){if(n&1&&(c(0,"tr",1),le(1,Ta,2,6,"td",4),Ve(2,Fa,5,48,"td",5,ma),h()),n&2){let e=s.$implicit,t=s.$index,a=m();l(),ce(t===0&&a._firstRowOffset?1:-1),l(),Ie(e)}}function Oa(n,s){if(n&1&&(c(0,"th",2)(1,"span",6),D(2),h(),c(3,"span",3),D(4),h()()),n&2){let e=s.$implicit;l(2),R(e.long),l(2),R(e.narrow)}}var _a=["*"];function Ya(n,s){}function Na(n,s){if(n&1){let e=he();c(0,"mat-month-view",4),Oe("activeDateChange",function(a){y(e);let i=m();return Re(i.activeDate,a)||(i.activeDate=a),C(a)}),f("_userSelection",function(a){y(e);let i=m();return C(i._dateSelected(a))})("dragStarted",function(a){y(e);let i=m();return C(i._dragStarted(a))})("dragEnded",function(a){y(e);let i=m();return C(i._dragEnded(a))}),h()}if(n&2){let e=m();Fe("activeDate",e.activeDate),g("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function La(n,s){if(n&1){let e=he();c(0,"mat-year-view",5),Oe("activeDateChange",function(a){y(e);let i=m();return Re(i.activeDate,a)||(i.activeDate=a),C(a)}),f("monthSelected",function(a){y(e);let i=m();return C(i._monthSelectedInYearView(a))})("selectedChange",function(a){y(e);let i=m();return C(i._goToDateInView(a,"month"))}),h()}if(n&2){let e=m();Fe("activeDate",e.activeDate),g("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Pa(n,s){if(n&1){let e=he();c(0,"mat-multi-year-view",6),Oe("activeDateChange",function(a){y(e);let i=m();return Re(i.activeDate,a)||(i.activeDate=a),C(a)}),f("yearSelected",function(a){y(e);let i=m();return C(i._yearSelectedInMultiYearView(a))})("selectedChange",function(a){y(e);let i=m();return C(i._goToDateInView(a,"year"))}),h()}if(n&2){let e=m();Fe("activeDate",e.activeDate),g("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Ba(n,s){}var Ha=["button"],za=[[["","matDatepickerToggleIcon",""]]],Ka=["[matDatepickerToggleIcon]"];function ja(n,s){n&1&&(oe(),c(0,"svg",2),I(1,"path",3),h())}var Wa=[[["input","matStartDate",""]],[["input","matEndDate",""]]],qa=["input[matStartDate]","input[matEndDate]"];function Qa(n,s){n&1&&(Vt(0,"div",0),$(1),It())}var re=(()=>{class n{changes=new E;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Ga=0,be=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=Ga++;constructor(s,e,t,a,i={},r=s,d){this.value=s,this.displayValue=e,this.ariaLabel=t,this.enabled=a,this.cssClasses=i,this.compareValue=r,this.rawValue=d}},$a={passive:!1,capture:!0},Pe={passive:!0,capture:!0},oa={passive:!0},ae=(()=>{class n{_elementRef=o(H);_ngZone=o(We);_platform=o(Bt);_intl=o(re);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new p;previewChange=new p;activeDateChange=new p;dragStarted=new p;dragEnded=new p;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=o(G);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=o(Qe),t=o(_e);this._startDateLabelId=t.getId("mat-calendar-body-start-"),this._endDateLabelId=t.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=t.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=t.getId("mat-calendar-body-comparison-end-"),o(me).load(ta),this._ngZone.runOutsideAngular(()=>{let a=this._elementRef.nativeElement,i=[e.listen(a,"touchmove",this._touchmoveHandler,$a),e.listen(a,"mouseenter",this._enterHandler,Pe),e.listen(a,"focus",this._enterHandler,Pe),e.listen(a,"mouseleave",this._leaveHandler,Pe),e.listen(a,"blur",this._leaveHandler,Pe),e.listen(a,"mousedown",this._mousedownHandler,oa),e.listen(a,"touchstart",this._mousedownHandler,oa)];this._platform.isBrowser&&i.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=i})}_cellClicked(e,t){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_emitActiveDateChange(e,t){e.enabled&&this.activeDateChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let t=e.numCols,{rows:a,numCols:i}=this;(e.rows||t)&&(this._firstRowOffset=a&&a.length&&a[0].length?i-a[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/i}%`),(t||!this._cellWidth)&&(this._cellWidth=`${100/i}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,t){let a=e*this.numCols+t;return e&&(a-=this._firstRowOffset),a==this.activeCell}_focusActiveCell(e=!0){qe(()=>{setTimeout(()=>{let t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return ct(e,this.startValue,this.endValue)}_isRangeEnd(e){return ht(e,this.startValue,this.endValue)}_isInRange(e){return pt(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return ct(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,a){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let i=this.rows[t][a-1];if(!i){let r=this.rows[t-1];i=r&&r[r.length-1]}return i&&!this._isRangeEnd(i.compareValue)}_isComparisonBridgeEnd(e,t,a){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let i=this.rows[t][a+1];if(!i){let r=this.rows[t+1];i=r&&r[0]}return i&&!this._isRangeStart(i.compareValue)}_isComparisonEnd(e){return ht(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return pt(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return ct(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return ht(e,this.previewStart,this.previewEnd)}_isInPreview(e){return pt(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let t=this._getCellFromElement(e.target);t&&this._ngZone.run(()=>this.previewChange.emit({value:t.enabled?t:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let t=da(e),a=t?this._getCellFromElement(t):null;t!==e.target&&(this._didDragSinceMouseDown=!0),lt(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:a?.enabled?a:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let t=e.target&&this._getCellFromElement(e.target);!t||!this._isInRange(t.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:t.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let t=lt(e.target);if(!t){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}t.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let a=this._getCellFromElement(t);this.dragEnded.emit({value:a?.rawValue??null,event:e})})};_touchendHandler=e=>{let t=da(e);t&&this._mouseupHandler({target:t})};_getCellFromElement(e){let t=lt(e);if(t){let a=t.getAttribute("data-mat-row"),i=t.getAttribute("data-mat-col");if(a&&i)return this.rows[parseInt(a)]?.[parseInt(i)]||null}return null}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[N],attrs:Va,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(t,a){t&1&&(le(0,xa,3,6,"tr",0),Ve(1,Ra,4,1,"tr",1,Ia,!0),c(3,"span",2),D(4),h(),c(5,"span",2),D(6),h(),c(7,"span",2),D(8),h(),c(9,"span",2),D(10),h()),t&2&&(ce(a._firstRowOffset<a.labelMinRequiredCells?0:-1),l(),Ie(a.rows),l(2),g("id",a._startDateLabelId),l(),U(" ",a.startDateAccessibleName,`
|
|
1
|
+
import{a as ia}from"./chunk-3KSZCJ6T.js";import{b as nt,c as rt,d as aa}from"./chunk-6GLKD66N.js";import{a as ra,b as sa}from"./chunk-CBSYYTXQ.js";import{a as ta,k as na,l as st}from"./chunk-BA3BDB5Y.js";import{b as Jt}from"./chunk-C4WJKF7R.js";import{A as _e,G as Z,L as Kt,N as et,O as jt,S as tt,T as Wt,U as qt,V as at,W as Qt,Z as Gt,_ as $t,ba as Ut,da as Zt,e as Pt,f as K,g as Bt,ha as Xt,j as Xe,ka as it,la as ea,p as Je,q as me,r as Le,x as Ht,z as zt}from"./chunk-NWSIPELM.js";import{a as Ye,d as Ne,e as ue,f as Ot,g as Yt,k as Nt,t as Lt}from"./chunk-RNLSEEMX.js";import{$ as we,$a as qe,$b as Te,Ab as Ve,Bb as Ie,Ca as u,Cb as g,D as se,Db as c,E as wt,Eb as h,Fa as ke,Fb as I,Ga as Se,Gb as Vt,Ha as N,Hb as It,Ia as de,Ic as Tt,Ja as H,Mb as he,Mc as Ft,N as At,Nb as xe,Ob as f,Qb as m,Rb as pe,Sb as $,Tb as xt,Ub as x,Vb as k,Vc as F,Wb as S,Xa as l,Xc as O,Ya as p,Za as We,a as M,ab as kt,ac as T,cb as Qe,cc as Ue,cd as Rt,d as E,dc as D,eb as St,ec as R,fb as Ge,fc as U,gc as Ze,hb as w,ib as Ee,ic as Fe,jb as V,jc as Re,ka as Ke,kc as Oe,la as Y,lb as z,ma as Ae,na as Q,nb as $e,o as Ce,oa as Me,ob as Et,pa as o,sc as L,ta as y,tb as v,ua as C,va as oe,vb as le,wa as je,xa as G,xb as ce,ya as Mt}from"./chunk-JYZTRN6N.js";import{a as yt,b as Ct}from"./chunk-SNAKHGZS.js";var ot=new Q("MAT_DATE_LOCALE",{providedIn:"root",factory:ka});function ka(){return o(Tt)}var X="Method not implemented",_=class{locale;_localeChanges=new E;localeChanges=this._localeChanges;setTime(s,e,t,a){throw new Error(X)}getHours(s){throw new Error(X)}getMinutes(s){throw new Error(X)}getSeconds(s){throw new Error(X)}parseTime(s,e){throw new Error(X)}addSeconds(s,e){throw new Error(X)}getValidDateOrNull(s){return this.isDateInstance(s)&&this.isValid(s)?s:null}deserialize(s){return s==null||this.isDateInstance(s)&&this.isValid(s)?s:this.invalid()}setLocale(s){this.locale=s,this._localeChanges.next()}compareDate(s,e){return this.getYear(s)-this.getYear(e)||this.getMonth(s)-this.getMonth(e)||this.getDate(s)-this.getDate(e)}compareTime(s,e){return this.getHours(s)-this.getHours(e)||this.getMinutes(s)-this.getMinutes(e)||this.getSeconds(s)-this.getSeconds(e)}sameDate(s,e){if(s&&e){let t=this.isValid(s),a=this.isValid(e);return t&&a?!this.compareDate(s,e):t==a}return s==e}sameTime(s,e){if(s&&e){let t=this.isValid(s),a=this.isValid(e);return t&&a?!this.compareTime(s,e):t==a}return s==e}clampDate(s,e,t){return e&&this.compareDate(s,e)<0?e:t&&this.compareDate(s,t)>0?t:s}},P=new Q("mat-date-formats");var Va=["mat-calendar-body",""];function Ia(n,s){return this._trackRow(s)}var ma=(n,s)=>s.id;function xa(n,s){if(n&1&&(c(0,"tr",0)(1,"td",3),D(2),h()()),n&2){let e=m();l(),Te("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),v("colspan",e.numCols),l(),U(" ",e.label," ")}}function Ta(n,s){if(n&1&&(c(0,"td",3),D(1),h()),n&2){let e=m(2);Te("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),v("colspan",e._firstRowOffset),l(),U(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Fa(n,s){if(n&1){let e=he();c(0,"td",6)(1,"button",7),f("click",function(a){let i=y(e).$implicit,r=m(2);return C(r._cellClicked(i,a))})("focus",function(a){let i=y(e).$implicit,r=m(2);return C(r._emitActiveDateChange(i,a))}),c(2,"span",8),D(3),h(),I(4,"span",9),h()()}if(n&2){let e=s.$implicit,t=s.$index,a=m().$index,i=m();Te("width",i._cellWidth)("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),v("data-mat-row",a)("data-mat-col",t),l(),T("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",i._isActiveCell(a,t))("mat-calendar-body-range-start",i._isRangeStart(e.compareValue))("mat-calendar-body-range-end",i._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",i._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",i._isComparisonBridgeStart(e.compareValue,a,t))("mat-calendar-body-comparison-bridge-end",i._isComparisonBridgeEnd(e.compareValue,a,t))("mat-calendar-body-comparison-start",i._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",i._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",i._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",i._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",i._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",i._isInPreview(e.compareValue)),g("ngClass",e.cssClasses)("tabindex",i._isActiveCell(a,t)?0:-1),v("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",i._isSelected(e.compareValue))("aria-current",i.todayValue===e.compareValue?"date":null)("aria-describedby",i._getDescribedby(e.compareValue)),l(),T("mat-calendar-body-selected",i._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",i._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",i.todayValue===e.compareValue),l(),U(" ",e.displayValue," ")}}function Ra(n,s){if(n&1&&(c(0,"tr",1),le(1,Ta,2,6,"td",4),Ve(2,Fa,5,48,"td",5,ma),h()),n&2){let e=s.$implicit,t=s.$index,a=m();l(),ce(t===0&&a._firstRowOffset?1:-1),l(),Ie(e)}}function Oa(n,s){if(n&1&&(c(0,"th",2)(1,"span",6),D(2),h(),c(3,"span",3),D(4),h()()),n&2){let e=s.$implicit;l(2),R(e.long),l(2),R(e.narrow)}}var _a=["*"];function Ya(n,s){}function Na(n,s){if(n&1){let e=he();c(0,"mat-month-view",4),Oe("activeDateChange",function(a){y(e);let i=m();return Re(i.activeDate,a)||(i.activeDate=a),C(a)}),f("_userSelection",function(a){y(e);let i=m();return C(i._dateSelected(a))})("dragStarted",function(a){y(e);let i=m();return C(i._dragStarted(a))})("dragEnded",function(a){y(e);let i=m();return C(i._dragEnded(a))}),h()}if(n&2){let e=m();Fe("activeDate",e.activeDate),g("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function La(n,s){if(n&1){let e=he();c(0,"mat-year-view",5),Oe("activeDateChange",function(a){y(e);let i=m();return Re(i.activeDate,a)||(i.activeDate=a),C(a)}),f("monthSelected",function(a){y(e);let i=m();return C(i._monthSelectedInYearView(a))})("selectedChange",function(a){y(e);let i=m();return C(i._goToDateInView(a,"month"))}),h()}if(n&2){let e=m();Fe("activeDate",e.activeDate),g("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Pa(n,s){if(n&1){let e=he();c(0,"mat-multi-year-view",6),Oe("activeDateChange",function(a){y(e);let i=m();return Re(i.activeDate,a)||(i.activeDate=a),C(a)}),f("yearSelected",function(a){y(e);let i=m();return C(i._yearSelectedInMultiYearView(a))})("selectedChange",function(a){y(e);let i=m();return C(i._goToDateInView(a,"year"))}),h()}if(n&2){let e=m();Fe("activeDate",e.activeDate),g("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Ba(n,s){}var Ha=["button"],za=[[["","matDatepickerToggleIcon",""]]],Ka=["[matDatepickerToggleIcon]"];function ja(n,s){n&1&&(oe(),c(0,"svg",2),I(1,"path",3),h())}var Wa=[[["input","matStartDate",""]],[["input","matEndDate",""]]],qa=["input[matStartDate]","input[matEndDate]"];function Qa(n,s){n&1&&(Vt(0,"div",0),$(1),It())}var re=(()=>{class n{changes=new E;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Ga=0,be=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=Ga++;constructor(s,e,t,a,i={},r=s,d){this.value=s,this.displayValue=e,this.ariaLabel=t,this.enabled=a,this.cssClasses=i,this.compareValue=r,this.rawValue=d}},$a={passive:!1,capture:!0},Pe={passive:!0,capture:!0},oa={passive:!0},ae=(()=>{class n{_elementRef=o(H);_ngZone=o(We);_platform=o(Bt);_intl=o(re);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new p;previewChange=new p;activeDateChange=new p;dragStarted=new p;dragEnded=new p;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=o(G);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=o(Qe),t=o(_e);this._startDateLabelId=t.getId("mat-calendar-body-start-"),this._endDateLabelId=t.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=t.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=t.getId("mat-calendar-body-comparison-end-"),o(me).load(ta),this._ngZone.runOutsideAngular(()=>{let a=this._elementRef.nativeElement,i=[e.listen(a,"touchmove",this._touchmoveHandler,$a),e.listen(a,"mouseenter",this._enterHandler,Pe),e.listen(a,"focus",this._enterHandler,Pe),e.listen(a,"mouseleave",this._leaveHandler,Pe),e.listen(a,"blur",this._leaveHandler,Pe),e.listen(a,"mousedown",this._mousedownHandler,oa),e.listen(a,"touchstart",this._mousedownHandler,oa)];this._platform.isBrowser&&i.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=i})}_cellClicked(e,t){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_emitActiveDateChange(e,t){e.enabled&&this.activeDateChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let t=e.numCols,{rows:a,numCols:i}=this;(e.rows||t)&&(this._firstRowOffset=a&&a.length&&a[0].length?i-a[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/i}%`),(t||!this._cellWidth)&&(this._cellWidth=`${100/i}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,t){let a=e*this.numCols+t;return e&&(a-=this._firstRowOffset),a==this.activeCell}_focusActiveCell(e=!0){qe(()=>{setTimeout(()=>{let t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return ct(e,this.startValue,this.endValue)}_isRangeEnd(e){return ht(e,this.startValue,this.endValue)}_isInRange(e){return pt(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return ct(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,a){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let i=this.rows[t][a-1];if(!i){let r=this.rows[t-1];i=r&&r[r.length-1]}return i&&!this._isRangeEnd(i.compareValue)}_isComparisonBridgeEnd(e,t,a){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let i=this.rows[t][a+1];if(!i){let r=this.rows[t+1];i=r&&r[0]}return i&&!this._isRangeStart(i.compareValue)}_isComparisonEnd(e){return ht(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return pt(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return ct(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return ht(e,this.previewStart,this.previewEnd)}_isInPreview(e){return pt(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let t=this._getCellFromElement(e.target);t&&this._ngZone.run(()=>this.previewChange.emit({value:t.enabled?t:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let t=da(e),a=t?this._getCellFromElement(t):null;t!==e.target&&(this._didDragSinceMouseDown=!0),lt(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:a?.enabled?a:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let t=e.target&&this._getCellFromElement(e.target);!t||!this._isInRange(t.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:t.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let t=lt(e.target);if(!t){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}t.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let a=this._getCellFromElement(t);this.dragEnded.emit({value:a?.rawValue??null,event:e})})};_touchendHandler=e=>{let t=da(e);t&&this._mouseupHandler({target:t})};_getCellFromElement(e){let t=lt(e);if(t){let a=t.getAttribute("data-mat-row"),i=t.getAttribute("data-mat-col");if(a&&i)return this.rows[parseInt(a)]?.[parseInt(i)]||null}return null}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[N],attrs:Va,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(t,a){t&1&&(le(0,xa,3,6,"tr",0),Ve(1,Ra,4,1,"tr",1,Ia,!0),c(3,"span",2),D(4),h(),c(5,"span",2),D(6),h(),c(7,"span",2),D(8),h(),c(9,"span",2),D(10),h()),t&2&&(ce(a._firstRowOffset<a.labelMinRequiredCells?0:-1),l(),Ie(a.rows),l(2),g("id",a._startDateLabelId),l(),U(" ",a.startDateAccessibleName,`
|
|
2
2
|
`),l(),g("id",a._endDateLabelId),l(),U(" ",a.endDateAccessibleName,`
|
|
3
3
|
`),l(),g("id",a._comparisonStartDateLabelId),l(),Ze(" ",a.comparisonDateAccessibleName," ",a.startDateAccessibleName,`
|
|
4
4
|
`),l(),g("id",a._comparisonEndDateLabelId),l(),Ze(" ",a.comparisonDateAccessibleName," ",a.endDateAccessibleName,`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Qe}from"./chunk-46GHEHUK.js";import{a as Ae,f as Le}from"./chunk-KBISFX5T.js";import{b as Re,c as Be,d as We,e as je,f as ze,g as $e}from"./chunk-POJQGU7L.js";import"./chunk-KYAKLZR7.js";import{b as Ge}from"./chunk-GI7KMXBX.js";import"./chunk-QIJEAKQK.js";import"./chunk-QEOGHVXA.js";import{e as Ne}from"./chunk-4HCSE44G.js";import"./chunk-KHR4NBM3.js";import"./chunk-TH7SO4LD.js";import"./chunk-H7XFYY6V.js";import"./chunk-XACC6EMJ.js";import"./chunk-Q2A4MYK3.js";import{b as be}from"./chunk-PECGNYTX.js";import"./chunk-3RK6DDJD.js";import{a as xe}from"./chunk-SARJJ3AZ.js";import"./chunk-3KSZCJ6T.js";import{d as he}from"./chunk-BYO7FJ4O.js";import"./chunk-CBSYYTXQ.js";import{b as ke,c as Ue,e as Ve,f as Fe}from"./chunk-BALKIB67.js";import"./chunk-HV4KV3DJ.js";import"./chunk-JEL3OND6.js";import"./chunk-IDQUQBKL.js";import"./chunk-X57HWGVJ.js";import"./chunk-5SFUSWFY.js";import"./chunk-534MIVWD.js";import"./chunk-TGEQUV6Z.js";import{c as Oe,d as De}from"./chunk-5OKSTEWQ.js";import{a as ve,b as Pe}from"./chunk-QRTOTG7S.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import{u as Me,v as Te,w as Ee}from"./chunk-QZMZBCE7.js";import"./chunk-C4WJKF7R.js";import{O as q}from"./chunk-NZYZO47Z.js";import{e as we,f as Ie,g as ye}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-6SGN7MNX.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import{oa as Se}from"./chunk-O5SLP4JK.js";import{F as R,G as ge,h as _e,o as fe}from"./chunk-RNLSEEMX.js";import"./chunk-H4DUHWPT.js";import"./chunk-ROLAW5XO.js";import"./chunk-USJ6ILEE.js";import{a as ue}from"./chunk-4ZXLS56M.js";import{Ab as ie,Bb as ne,Bc as g,Ca as k,Cb as c,Cc as C,Db as n,Dc as me,E as Y,Eb as o,Fb as b,I as J,Jb as T,Kb as E,Mb as S,Ob as f,Oc as H,Pc as A,Qb as s,Rb as oe,Sa as Z,Sb as Q,Ub as U,Vb as V,Wb as F,Xa as a,Y as z,_b as N,aa as X,ac as re,cd as se,db as G,dc as l,ec as d,ee as Ce,fa as $,fc as v,hb as I,ic as P,jc as O,k as K,kc as D,kd as de,lb as ee,nb as y,od as ce,pa as M,rd as L,ta as u,tc as le,ua as _,uc as pe,vb as h,wc as ae,xb as x,yb as te}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Je=["stepperRef"],Xe=[[["preview"]],[["complete"]]],Ze=["preview","complete"];function et(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function tt(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function it(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function nt(t,r){t&1&&(b(0,"i",8),n(1,"span"),l(2,"Upload"),o())}function ot(t,r){if(t&1){let e=S();n(0,"div",9)(1,"div",10)(2,"POS-uppy",11),f("fileUploaded",function(i){u(e);let m=s(2);return _(m.onDropFile(i))}),o()(),n(3,"div",12)(4,"p",13),l(5," Please refer this "),n(6,"a",14),l(7,"article"),o(),l(8," for more information "),o()()()}if(t&2){let e=s(2);a(2),c("sampleUrl",e.sampleUrl())("subtitle","Accepted file formats: .csv & max file size: 1 MB"),a(4),c("href",e.articleLink(),Z)}}function rt(t,r){if(t&1&&h(0,ot,9,3,"div",9),t&2){s();let e=N(1);x(e.selectedIndex===0?0:-1)}}function lt(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function pt(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function at(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function mt(t,r){t&1&&(b(0,"i",15),n(1,"span"),l(2,"Preview"),o())}function st(t,r){t&1&&Q(0)}function dt(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function ct(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function ut(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function _t(t,r){t&1&&(b(0,"i",16),n(1,"span"),l(2,"Finish"),o())}function ft(t,r){t&1&&Q(0,1)}var B=class t{sampleUrl=A();articleLink=A();_onDropFile=H({alias:"onDropFile"});disabledEdit=A(!1);_onStateChange=H({alias:"onStateChange"});_stepper;get stepper(){return this._stepper}nextStep(){this._stepper&&(this.stepper.selected.completed=!0,this._stepper.next())}previousStep(){this._stepper&&this._stepper.previous()}resetStep(){this._stepper&&this._stepper.reset()}onStepChange(r){r.selectedIndex===1?this._onStateChange.emit(1):r.selectedIndex===2?this._onStateChange.emit(2):this._onStateChange.emit(0)}onDropFile(r){this._onDropFile.emit(r)}onRemoveFile(){}stateUpload(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=I({type:t,selectors:[["pos-import-stepper"]],viewQuery:function(e,p){if(e&1&&U(Je,5),e&2){let i;V(i=F())&&(p._stepper=i.first)}},inputs:{sampleUrl:[1,"sampleUrl"],articleLink:[1,"articleLink"],disabledEdit:[1,"disabledEdit"]},outputs:{_onDropFile:"onDropFile",_onStateChange:"onStateChange"},ngContentSelectors:Ze,decls:20,vars:7,consts:[["stepperRef",""],[3,"selectionChange","linear"],[3,"completed","editable"],["matStepperIcon","done"],["matStepperIcon","create"],["matStepperIcon","edit"],["matStepLabel",""],["matStepContent",""],[1,"fa-solid","fa-upload","me-3"],[1,"d-flex","flex-column","align-items-center","justify-content-center","gap-2"],[2,"max-width","580px"],["file","",3,"fileUploaded","sampleUrl","subtitle"],[1,"d-flex","w-100",2,"max-width","580px"],[1,"fst-italic"],["target","_blank",3,"href"],[1,"fa-regular","fa-file","me-3"],[1,"fa-solid","fa-check","me-3"]],template:function(e,p){if(e&1){let i=S();oe(Xe),n(0,"mat-stepper",1,0),f("selectionChange",function(w){return u(i),_(p.onStepChange(w))}),n(2,"mat-step",2),y(3,et,1,1,"ng-template",3)(4,tt,1,1,"ng-template",4)(5,it,1,1,"ng-template",5)(6,nt,3,0,"ng-template",6)(7,rt,1,1,"ng-template",7),o(),n(8,"mat-step",2),y(9,lt,1,1,"ng-template",3)(10,pt,1,1,"ng-template",4)(11,at,1,1,"ng-template",5)(12,mt,3,0,"ng-template",6)(13,st,1,0,"ng-template",7),o(),n(14,"mat-step",2),y(15,dt,1,1,"ng-template",3)(16,ct,1,1,"ng-template",4)(17,ut,1,1,"ng-template",5)(18,_t,3,0,"ng-template",6)(19,ft,1,0,"ng-template",7),o()()}e&2&&(c("linear",!0),a(2),c("completed",!1)("editable",!p.disabledEdit()),a(6),c("completed",!1)("editable",!p.disabledEdit()),a(6),c("completed",!1)("editable",!1))},dependencies:[he,R,ge,xe,be,Ge,Ne,$e,je,Re,ze,Be,We],styles:[".mat-horizontal-stepper-header-container{width:50%!important;margin:0 auto} .mat-horizontal-stepper-wrapper{gap:1rem} .mat-horizontal-stepper-content{display:flex;justify-content:center} p-table .p-datatable-tbody>tr{border-bottom-width:1px;border-color:#dee2e6} p-table .p-datatable-tbody>tr>th{font-family:Roboto,system-ui!important;font-weight:400;font-style:normal} .p-datatable .p-datatable-wrapper .p-datatable-table .p-datatable-thead>tr>th{font-family:Roboto,Courier,monospace;font-weight:700;font-style:normal;color:#333} .p-datatable .p-datatable-wrapper .p-datatable-table .p-datatable-tbody>tr>td{font-family:Roboto,Courier,monospace;font-weight:400;font-style:normal;color:#333}"]})};var W=class t{configModal=new Me;dialogRef=M(we);data=M(Ie);constructor(){this.initDialogConfig()}initDialogConfig(){this.configModal.title="Preview Summary",this.configModal.hideCancel=!0,this.configModal.okText="Import (F2)",this.configModal.customWidth="500px"}onOk(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=I({type:t,selectors:[["app-dialog-import-preview"]],decls:30,vars:10,consts:[[3,"onOk","onCancel","onClose","config"],[1,"card","mb-0"],[1,"card-header","py-6","bg-gradient-success"],[1,"card-body"],[1,"row"],[1,"col"],[1,"d-flex","flex-column","gap-2"],[2,"font-size","1.9rem"],[2,"font-size","1rem"]],template:function(e,p){e&1&&(n(0,"modal-material",0),f("onOk",function(){return p.onOk()})("onCancel",function(){return p.onClose()})("onClose",function(){return p.onClose()}),b(1,"header"),n(2,"content")(3,"div",1)(4,"div",2)(5,"h3"),l(6,"Import Summary"),o()(),n(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"span",7),l(12),g(13,"number"),o(),n(14,"span",8),l(15,"New Outlet"),o()()(),n(16,"div",5)(17,"div",6)(18,"span",7),l(19),g(20,"number"),o(),n(21,"span",8),l(22,"Update Outlet"),o()()(),n(23,"div",5)(24,"div",6)(25,"span",7),l(26),g(27,"number"),o(),n(28,"span",8),l(29,"New Outlet Group"),o()()()()()()()()),e&2&&(c("config",p.configModal),a(12),d(C(13,4,p.data==null?null:p.data.new)),a(7),d(C(20,6,p.data==null?null:p.data.update)),a(7),d(C(27,8,p.data==null?null:p.data.newOutletGroup)))},dependencies:[L,Ee,Te,ce],encapsulation:2})};var Ct=["importStepper"],St=()=>({"min-width":"50rem"}),ht=(t,r,e)=>({"btn-success":t,"btn-outline-secondary":r,"not-allowed":e}),xt=t=>({"mb-1":t});function bt(t,r){if(t&1){let e=S();n(0,"button",14),f("click",function(){u(e);let i=s();return _(i.onPreviousStep())}),l(1," Back "),o()}}function vt(t,r){if(t&1){let e=S();n(0,"button",15),g(1,"async"),g(2,"async"),f("click",function(){u(e);let i=s();return _(i.onNextStep())}),l(3," Next "),o()}if(t&2){let e,p,i=s();c("ngClass",ae(6,ht,i.currentState()===1,i.currentState()!==1,!((e=C(1,2,i.importPreview$))!=null&&e.CanProceed)))("disabled",!((p=C(2,4,i.importPreview$))!=null&&p.CanProceed)&&i.currentState()===1)}}function wt(t,r){if(t&1){let e=S();n(0,"button",14),f("click",function(){u(e);let i=s();return _(i.onReset())}),l(1," New "),o()}}function It(t,r){if(t&1){let e=S();n(0,"tr")(1,"th",16),l(2,"Name"),o(),n(3,"th",17),l(4,"Code"),o(),n(5,"th",18),l(6," Status "),n(7,"i",19),f("click",function(i){u(e);let m=N(9);return _(m.toggle(i))}),o(),n(8,"p-popover",null,1)(10,"div",20)(11,"div",21)(12,"p-checkbox",22),f("ngModelChange",function(i){u(e);let m=s();return _(m.selectAll(i))}),o(),n(13,"label",23),l(14,"All"),o()(),n(15,"div",24)(16,"p-checkbox",25),D("ngModelChange",function(i){u(e);let m=s();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(17,"label",26),l(18,"Unchanged"),o()(),n(19,"div",24)(20,"p-checkbox",27),D("ngModelChange",function(i){u(e);let m=s();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(21,"label",28),l(22,"New"),o()(),n(23,"div",24)(24,"p-checkbox",29),D("ngModelChange",function(i){u(e);let m=s();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(25,"label",30),l(26,"Error"),o()(),n(27,"div",24)(28,"p-checkbox",31),D("ngModelChange",function(i){u(e);let m=s();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(29,"label",32),l(30,"Update"),o()()()()(),n(31,"th"),l(32,"Message"),o()()}if(t&2){let e=s();a(12),c("ngModel",e.pickAll),a(4),P("ngModel",e.filterTreeCondition),a(4),P("ngModel",e.filterTreeCondition),a(4),P("ngModel",e.filterTreeCondition),a(4),P("ngModel",e.filterTreeCondition)}}function yt(t,r){if(t&1&&(n(0,"div",33)(1,"span",34),l(2),o(),n(3,"span"),l(4),o()()),t&2){let e=r.$implicit,p=r.$index,i=s().$implicit;c("ngClass",pe(3,xt,p<i.Issues.length-1)),a(2),v(" ",e.Issue,". "),a(2),v("",e.Solution," ")}}function Mt(t,r){if(t&1&&(n(0,"tr")(1,"td"),l(2),o(),n(3,"td"),l(4),o(),n(5,"td"),l(6),o(),n(7,"td"),ie(8,yt,5,5,"div",33,te),o()()),t&2){let e=r.$implicit;a(2),d(e.Name),a(2),d(e.Code),a(),re("bg-gradient-success",e.Action=="New")("bg-gradient-warning",e.Action=="Update")("bg-gradient-danger",e.Action=="Error"),a(),v(" ",e.Action," "),a(2),ne(e.Issues)}}function Tt(t,r){if(t&1&&(n(0,"div",37)(1,"span"),l(2),o(),l(3,", "),n(4,"span"),l(5),o(),n(6,"span"),l(7),o(),n(8,"span"),l(9,"succesfully imported"),o()()),t&2){let e=r;a(2),v("",e==null?null:e.Summary.NewOutlet," New Outlets"),a(3),v("",e==null?null:e.Summary.UpdateOutlet," Updated Outlets"),a(2),v("and ",e==null?null:e.Summary.NewOutletGroup," New Outlet Group")}}function Et(t,r){if(t&1&&(n(0,"div",13),b(1,"i",35),n(2,"h1",36),l(3,"Upload Complete!"),o(),h(4,Tt,10,3,"div",37),g(5,"async"),o()),t&2){let e,p=s();a(4),x((e=C(5,1,p.importPreview$))?4:-1,e)}}var Ke=class t extends ve{constructor(e,p){super(e);this.httpService=p;this.menuData$.subscribe()}pickAll=["All"];filterTreeCondition=["Unchanged","New","Error","Update"];importStepper;fileToImport=k(null);importPreview$;sampleImportFileUrl=ue.files.csv.outlet_import;articleLink="https://support.dealpos.com/en/articles/11069092-import-new-outlet";currentState=k(0);confirmImport$;importPreview=k(null);dialog=M(ye);onDropFile(e){this.fileToImport.set(e)}onNextStep(){switch(this.currentState()){case 0:this.onPreviewImport();break;case 1:this.onImport();break;default:break}}onPreviousStep(){this.importStepper.previousStep()}onReset(){this.importPreview.set(null),this.importPreview$=null,this.confirmImport$=null,this.fileToImport.set(null),this.currentState.update(()=>0),this.importStepper.resetStep()}onStateChange(e){this.currentState.update(()=>e)}onPreviewImport(){this.pickAll=["All"],this.filterTreeCondition=["Unchanged","New","Error","Update"];let e=new FormData;e.append("file",this.fileToImport()),this.importPreview$=this.httpService.postFormData(q.previewImportOutlet,e).pipe($(p=>{this.importPreview.set(p),this.importStepper.nextStep()}),z(1))}onImport(){this.confirmImport$=this.dialog.open(W,{data:{new:this.importPreview()?.Summary?.NewOutlet,update:this.importPreview()?.Summary?.UpdateOutlet,newOutletGroup:this.importPreview()?.Summary?.NewOutletGroup}}).afterClosed().pipe(Y(e=>e==!0),X(()=>this.httpService.post(q.importOutlet,{CacheKey:this.importPreview()?.CacheKey})),$(e=>{this.importStepper.nextStep()}),J(e=>(this.pickAll=[],this.filterTreeCondition=["Error"],K)),z(1))}selectAll(e){this.pickAll=e,this.pickAll.length==0?this.filterTreeCondition=[]:this.filterTreeCondition=["Unchanged","New","Error","Update"]}static \u0275fac=function(p){return new(p||t)(G(Pe),G(Ce))};static \u0275cmp=I({type:t,selectors:[["app-outlet-import"]],viewQuery:function(p,i){if(p&1&&U(Ct,5),p&2){let m;V(m=F())&&(i.importStepper=m.first)}},features:[ee],decls:17,vars:21,consts:[["importStepper",""],["op",""],[3,"pageData","hideSearchBox","hideSearchDropdown"],["ngProjectAs","actions",5,["actions"]],["type","button",1,"btn","btn-outline-secondary"],[1,"btn",3,"ngClass","disabled"],["ngProjectAs","content",5,["content"]],[3,"onDropFile","onStateChange","sampleUrl","disabledEdit","articleLink"],["ngProjectAs","preview",5,["preview"]],[1,"w-100",3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["ngProjectAs","complete",5,["complete"]],[1,"d-flex","flex-column","align-items-center"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"btn",3,"click","ngClass","disabled"],[2,"width","300px"],[2,"width","200px"],[2,"width","100px"],[1,"fa","fa-filter","pointer",3,"click"],[2,"width","150px"],[1,"border-bottom","pb-3","d-flex","align-items-center","column-gap-3"],["label","Select All","name","filterTreeCondition","value","All","inputId","all",3,"ngModelChange","ngModel"],["for","all",1,"ms-2"],[1,"mt-4","d-flex","align-items-center","column-gap-3"],["label","Unchanged","name","filterTreeCondition","value","Unchanged","inputId","unchanged",3,"ngModelChange","ngModel"],["for","unchanged",1,"ms-2"],["label","New","name","filterTreeCondition","value","New","inputId","new",3,"ngModelChange","ngModel"],["for","new",1,"ms-2"],["label","Error","name","filterTreeCondition","value","Error","inputId","error",3,"ngModelChange","ngModel"],["for","error",1,"ms-2"],["label","Updated","name","filterTreeCondition","value","Update","inputId","update",3,"ngModelChange","ngModel"],["for","update",1,"ms-2"],[3,"ngClass"],[1,"me-1"],[1,"fa-solid","fa-circle-check","text-success",2,"font-size","110px"],[1,"mt-8"],[1,"d-flex","gap-2","fw-normal","fs-4","mt-2"]],template:function(p,i){if(p&1){let m=S();n(0,"mainpanel-cmp",2),T(1,3),h(2,bt,2,0,"button",4),h(3,vt,4,10,"button",5),h(4,wt,2,0,"button",4),E(),T(5,6),n(6,"pos-import-stepper",7,0),f("onDropFile",function(j){return u(m),_(i.onDropFile(j))})("onStateChange",function(j){return u(m),_(i.onStateChange(j))}),T(8,8),n(9,"p-table",9),g(10,"async"),g(11,"filterTree"),y(12,It,33,5,"ng-template",10)(13,Mt,10,9,"ng-template",11),o(),E(),T(14,12),h(15,Et,6,3,"div",13),g(16,"async"),E(),o(),E(),o()}if(p&2){let m,w;c("pageData",i.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),a(2),x(i.currentState()==1?2:-1),a(),x(i.fileToImport()&&((m=i.fileToImport())==null?null:m.size)>0&&i.currentState()<2?3:-1),a(),x(i.currentState()===2?4:-1),a(2),c("sampleUrl",i.sampleImportFileUrl)("disabledEdit",i.currentState()===2)("articleLink",i.articleLink),a(3),c("value",me(11,15,(w=C(10,13,i.importPreview$))==null?null:w.DataRow,i.filterTreeCondition))("scrollable",!0)("tableStyle",le(20,St)),a(6),x(C(16,18,i.confirmImport$)?15:-1)}},dependencies:[L,se,B,Fe,Ve,Le,Ae,Se,De,Oe,R,_e,fe,Ue,ke,de,Qe],encapsulation:2})};export{Ke as OutletImportComponent};
|
|
1
|
+
import{a as Qe}from"./chunk-46GHEHUK.js";import{a as Ae,f as Le}from"./chunk-4IQRI3GN.js";import{b as Re,c as Be,d as We,e as je,f as ze,g as $e}from"./chunk-JR5LAUIS.js";import"./chunk-KYAKLZR7.js";import{c as Ge}from"./chunk-CA6YBQT3.js";import"./chunk-QIJEAKQK.js";import"./chunk-QEOGHVXA.js";import{e as Ne}from"./chunk-4HCSE44G.js";import"./chunk-KHR4NBM3.js";import"./chunk-S5HK3JOC.js";import"./chunk-H7XFYY6V.js";import"./chunk-XACC6EMJ.js";import"./chunk-Q2A4MYK3.js";import{b as be}from"./chunk-CSFFF2YO.js";import"./chunk-3RK6DDJD.js";import{a as xe}from"./chunk-WNZKCNMC.js";import"./chunk-3KSZCJ6T.js";import{d as he}from"./chunk-6GLKD66N.js";import"./chunk-CBSYYTXQ.js";import{b as ke,c as Ue,e as Ve,f as Fe}from"./chunk-4KMRZ2TB.js";import"./chunk-3L267ZNV.js";import"./chunk-JEL3OND6.js";import"./chunk-IDQUQBKL.js";import"./chunk-X57HWGVJ.js";import"./chunk-5SFUSWFY.js";import"./chunk-534MIVWD.js";import"./chunk-TGEQUV6Z.js";import{c as Oe,d as De}from"./chunk-OBXCVFDY.js";import{a as ve,b as Pe}from"./chunk-WCCWWFYE.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import{u as Me,v as Te,w as Ee}from"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import{O as q}from"./chunk-T25N3EEG.js";import{e as we,f as Ie,g as ye}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-6SGN7MNX.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import{oa as Se}from"./chunk-O5SLP4JK.js";import{F as R,G as ge,h as _e,o as fe}from"./chunk-RNLSEEMX.js";import"./chunk-MYKOQWDM.js";import"./chunk-ECEHKAWW.js";import"./chunk-USJ6ILEE.js";import{a as ue}from"./chunk-YYGLCUQ6.js";import{Ab as ie,Bb as ne,Bc as g,Ca as k,Cb as c,Cc as C,Db as n,Dc as me,E as Y,Eb as o,Fb as b,I as J,Jb as T,Kb as E,Mb as S,Ob as f,Oc as H,Pc as A,Qb as s,Rb as oe,Sa as Z,Sb as Q,Ub as U,Vb as V,Wb as F,Xa as a,Y as z,_b as N,aa as X,ac as re,cd as se,db as G,dc as l,ec as d,ee as Ce,fa as $,fc as v,hb as I,ic as P,jc as O,k as K,kc as D,kd as de,lb as ee,nb as y,od as ce,pa as M,rd as L,ta as u,tc as le,ua as _,uc as pe,vb as h,wc as ae,xb as x,yb as te}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Je=["stepperRef"],Xe=[[["preview"]],[["complete"]]],Ze=["preview","complete"];function et(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function tt(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function it(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function nt(t,r){t&1&&(b(0,"i",8),n(1,"span"),l(2,"Upload"),o())}function ot(t,r){if(t&1){let e=S();n(0,"div",9)(1,"div",10)(2,"POS-uppy",11),f("fileUploaded",function(i){u(e);let m=s(2);return _(m.onDropFile(i))}),o()(),n(3,"div",12)(4,"p",13),l(5," Please refer this "),n(6,"a",14),l(7,"article"),o(),l(8," for more information "),o()()()}if(t&2){let e=s(2);a(2),c("sampleUrl",e.sampleUrl())("subtitle","Accepted file formats: .csv & max file size: 1 MB"),a(4),c("href",e.articleLink(),Z)}}function rt(t,r){if(t&1&&h(0,ot,9,3,"div",9),t&2){s();let e=N(1);x(e.selectedIndex===0?0:-1)}}function lt(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function pt(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function at(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function mt(t,r){t&1&&(b(0,"i",15),n(1,"span"),l(2,"Preview"),o())}function st(t,r){t&1&&Q(0)}function dt(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function ct(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function ut(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function _t(t,r){t&1&&(b(0,"i",16),n(1,"span"),l(2,"Finish"),o())}function ft(t,r){t&1&&Q(0,1)}var B=class t{sampleUrl=A();articleLink=A();_onDropFile=H({alias:"onDropFile"});disabledEdit=A(!1);_onStateChange=H({alias:"onStateChange"});_stepper;get stepper(){return this._stepper}nextStep(){this._stepper&&(this.stepper.selected.completed=!0,this._stepper.next())}previousStep(){this._stepper&&this._stepper.previous()}resetStep(){this._stepper&&this._stepper.reset()}onStepChange(r){r.selectedIndex===1?this._onStateChange.emit(1):r.selectedIndex===2?this._onStateChange.emit(2):this._onStateChange.emit(0)}onDropFile(r){this._onDropFile.emit(r)}onRemoveFile(){}stateUpload(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=I({type:t,selectors:[["pos-import-stepper"]],viewQuery:function(e,p){if(e&1&&U(Je,5),e&2){let i;V(i=F())&&(p._stepper=i.first)}},inputs:{sampleUrl:[1,"sampleUrl"],articleLink:[1,"articleLink"],disabledEdit:[1,"disabledEdit"]},outputs:{_onDropFile:"onDropFile",_onStateChange:"onStateChange"},ngContentSelectors:Ze,decls:20,vars:7,consts:[["stepperRef",""],[3,"selectionChange","linear"],[3,"completed","editable"],["matStepperIcon","done"],["matStepperIcon","create"],["matStepperIcon","edit"],["matStepLabel",""],["matStepContent",""],[1,"fa-solid","fa-upload","me-3"],[1,"d-flex","flex-column","align-items-center","justify-content-center","gap-2"],[2,"max-width","580px"],["file","",3,"fileUploaded","sampleUrl","subtitle"],[1,"d-flex","w-100",2,"max-width","580px"],[1,"fst-italic"],["target","_blank",3,"href"],[1,"fa-regular","fa-file","me-3"],[1,"fa-solid","fa-check","me-3"]],template:function(e,p){if(e&1){let i=S();oe(Xe),n(0,"mat-stepper",1,0),f("selectionChange",function(w){return u(i),_(p.onStepChange(w))}),n(2,"mat-step",2),y(3,et,1,1,"ng-template",3)(4,tt,1,1,"ng-template",4)(5,it,1,1,"ng-template",5)(6,nt,3,0,"ng-template",6)(7,rt,1,1,"ng-template",7),o(),n(8,"mat-step",2),y(9,lt,1,1,"ng-template",3)(10,pt,1,1,"ng-template",4)(11,at,1,1,"ng-template",5)(12,mt,3,0,"ng-template",6)(13,st,1,0,"ng-template",7),o(),n(14,"mat-step",2),y(15,dt,1,1,"ng-template",3)(16,ct,1,1,"ng-template",4)(17,ut,1,1,"ng-template",5)(18,_t,3,0,"ng-template",6)(19,ft,1,0,"ng-template",7),o()()}e&2&&(c("linear",!0),a(2),c("completed",!1)("editable",!p.disabledEdit()),a(6),c("completed",!1)("editable",!p.disabledEdit()),a(6),c("completed",!1)("editable",!1))},dependencies:[he,R,ge,xe,be,Ge,Ne,$e,je,Re,ze,Be,We],styles:[".mat-horizontal-stepper-header-container{width:50%!important;margin:0 auto} .mat-horizontal-stepper-wrapper{gap:1rem} .mat-horizontal-stepper-content{display:flex;justify-content:center} p-table .p-datatable-tbody>tr{border-bottom-width:1px;border-color:#dee2e6} p-table .p-datatable-tbody>tr>th{font-family:Roboto,system-ui!important;font-weight:400;font-style:normal} .p-datatable .p-datatable-wrapper .p-datatable-table .p-datatable-thead>tr>th{font-family:Roboto,Courier,monospace;font-weight:700;font-style:normal;color:#333} .p-datatable .p-datatable-wrapper .p-datatable-table .p-datatable-tbody>tr>td{font-family:Roboto,Courier,monospace;font-weight:400;font-style:normal;color:#333}"]})};var W=class t{configModal=new Me;dialogRef=M(we);data=M(Ie);constructor(){this.initDialogConfig()}initDialogConfig(){this.configModal.title="Preview Summary",this.configModal.hideCancel=!0,this.configModal.okText="Import (F2)",this.configModal.customWidth="500px"}onOk(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=I({type:t,selectors:[["app-dialog-import-preview"]],decls:30,vars:10,consts:[[3,"onOk","onCancel","onClose","config"],[1,"card","mb-0"],[1,"card-header","py-6","bg-gradient-success"],[1,"card-body"],[1,"row"],[1,"col"],[1,"d-flex","flex-column","gap-2"],[2,"font-size","1.9rem"],[2,"font-size","1rem"]],template:function(e,p){e&1&&(n(0,"modal-material",0),f("onOk",function(){return p.onOk()})("onCancel",function(){return p.onClose()})("onClose",function(){return p.onClose()}),b(1,"header"),n(2,"content")(3,"div",1)(4,"div",2)(5,"h3"),l(6,"Import Summary"),o()(),n(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"span",7),l(12),g(13,"number"),o(),n(14,"span",8),l(15,"New Outlet"),o()()(),n(16,"div",5)(17,"div",6)(18,"span",7),l(19),g(20,"number"),o(),n(21,"span",8),l(22,"Update Outlet"),o()()(),n(23,"div",5)(24,"div",6)(25,"span",7),l(26),g(27,"number"),o(),n(28,"span",8),l(29,"New Outlet Group"),o()()()()()()()()),e&2&&(c("config",p.configModal),a(12),d(C(13,4,p.data==null?null:p.data.new)),a(7),d(C(20,6,p.data==null?null:p.data.update)),a(7),d(C(27,8,p.data==null?null:p.data.newOutletGroup)))},dependencies:[L,Ee,Te,ce],encapsulation:2})};var Ct=["importStepper"],St=()=>({"min-width":"50rem"}),ht=(t,r,e)=>({"btn-success":t,"btn-outline-secondary":r,"not-allowed":e}),xt=t=>({"mb-1":t});function bt(t,r){if(t&1){let e=S();n(0,"button",14),f("click",function(){u(e);let i=s();return _(i.onPreviousStep())}),l(1," Back "),o()}}function vt(t,r){if(t&1){let e=S();n(0,"button",15),g(1,"async"),g(2,"async"),f("click",function(){u(e);let i=s();return _(i.onNextStep())}),l(3," Next "),o()}if(t&2){let e,p,i=s();c("ngClass",ae(6,ht,i.currentState()===1,i.currentState()!==1,!((e=C(1,2,i.importPreview$))!=null&&e.CanProceed)))("disabled",!((p=C(2,4,i.importPreview$))!=null&&p.CanProceed)&&i.currentState()===1)}}function wt(t,r){if(t&1){let e=S();n(0,"button",14),f("click",function(){u(e);let i=s();return _(i.onReset())}),l(1," New "),o()}}function It(t,r){if(t&1){let e=S();n(0,"tr")(1,"th",16),l(2,"Name"),o(),n(3,"th",17),l(4,"Code"),o(),n(5,"th",18),l(6," Status "),n(7,"i",19),f("click",function(i){u(e);let m=N(9);return _(m.toggle(i))}),o(),n(8,"p-popover",null,1)(10,"div",20)(11,"div",21)(12,"p-checkbox",22),f("ngModelChange",function(i){u(e);let m=s();return _(m.selectAll(i))}),o(),n(13,"label",23),l(14,"All"),o()(),n(15,"div",24)(16,"p-checkbox",25),D("ngModelChange",function(i){u(e);let m=s();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(17,"label",26),l(18,"Unchanged"),o()(),n(19,"div",24)(20,"p-checkbox",27),D("ngModelChange",function(i){u(e);let m=s();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(21,"label",28),l(22,"New"),o()(),n(23,"div",24)(24,"p-checkbox",29),D("ngModelChange",function(i){u(e);let m=s();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(25,"label",30),l(26,"Error"),o()(),n(27,"div",24)(28,"p-checkbox",31),D("ngModelChange",function(i){u(e);let m=s();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(29,"label",32),l(30,"Update"),o()()()()(),n(31,"th"),l(32,"Message"),o()()}if(t&2){let e=s();a(12),c("ngModel",e.pickAll),a(4),P("ngModel",e.filterTreeCondition),a(4),P("ngModel",e.filterTreeCondition),a(4),P("ngModel",e.filterTreeCondition),a(4),P("ngModel",e.filterTreeCondition)}}function yt(t,r){if(t&1&&(n(0,"div",33)(1,"span",34),l(2),o(),n(3,"span"),l(4),o()()),t&2){let e=r.$implicit,p=r.$index,i=s().$implicit;c("ngClass",pe(3,xt,p<i.Issues.length-1)),a(2),v(" ",e.Issue,". "),a(2),v("",e.Solution," ")}}function Mt(t,r){if(t&1&&(n(0,"tr")(1,"td"),l(2),o(),n(3,"td"),l(4),o(),n(5,"td"),l(6),o(),n(7,"td"),ie(8,yt,5,5,"div",33,te),o()()),t&2){let e=r.$implicit;a(2),d(e.Name),a(2),d(e.Code),a(),re("bg-gradient-success",e.Action=="New")("bg-gradient-warning",e.Action=="Update")("bg-gradient-danger",e.Action=="Error"),a(),v(" ",e.Action," "),a(2),ne(e.Issues)}}function Tt(t,r){if(t&1&&(n(0,"div",37)(1,"span"),l(2),o(),l(3,", "),n(4,"span"),l(5),o(),n(6,"span"),l(7),o(),n(8,"span"),l(9,"succesfully imported"),o()()),t&2){let e=r;a(2),v("",e==null?null:e.Summary.NewOutlet," New Outlets"),a(3),v("",e==null?null:e.Summary.UpdateOutlet," Updated Outlets"),a(2),v("and ",e==null?null:e.Summary.NewOutletGroup," New Outlet Group")}}function Et(t,r){if(t&1&&(n(0,"div",13),b(1,"i",35),n(2,"h1",36),l(3,"Upload Complete!"),o(),h(4,Tt,10,3,"div",37),g(5,"async"),o()),t&2){let e,p=s();a(4),x((e=C(5,1,p.importPreview$))?4:-1,e)}}var Ke=class t extends ve{constructor(e,p){super(e);this.httpService=p;this.menuData$.subscribe()}pickAll=["All"];filterTreeCondition=["Unchanged","New","Error","Update"];importStepper;fileToImport=k(null);importPreview$;sampleImportFileUrl=ue.files.csv.outlet_import;articleLink="https://support.dealpos.com/en/articles/11069092-import-new-outlet";currentState=k(0);confirmImport$;importPreview=k(null);dialog=M(ye);onDropFile(e){this.fileToImport.set(e)}onNextStep(){switch(this.currentState()){case 0:this.onPreviewImport();break;case 1:this.onImport();break;default:break}}onPreviousStep(){this.importStepper.previousStep()}onReset(){this.importPreview.set(null),this.importPreview$=null,this.confirmImport$=null,this.fileToImport.set(null),this.currentState.update(()=>0),this.importStepper.resetStep()}onStateChange(e){this.currentState.update(()=>e)}onPreviewImport(){this.pickAll=["All"],this.filterTreeCondition=["Unchanged","New","Error","Update"];let e=new FormData;e.append("file",this.fileToImport()),this.importPreview$=this.httpService.postFormData(q.previewImportOutlet,e).pipe($(p=>{this.importPreview.set(p),this.importStepper.nextStep()}),z(1))}onImport(){this.confirmImport$=this.dialog.open(W,{data:{new:this.importPreview()?.Summary?.NewOutlet,update:this.importPreview()?.Summary?.UpdateOutlet,newOutletGroup:this.importPreview()?.Summary?.NewOutletGroup}}).afterClosed().pipe(Y(e=>e==!0),X(()=>this.httpService.post(q.importOutlet,{CacheKey:this.importPreview()?.CacheKey})),$(e=>{this.importStepper.nextStep()}),J(e=>(this.pickAll=[],this.filterTreeCondition=["Error"],K)),z(1))}selectAll(e){this.pickAll=e,this.pickAll.length==0?this.filterTreeCondition=[]:this.filterTreeCondition=["Unchanged","New","Error","Update"]}static \u0275fac=function(p){return new(p||t)(G(Pe),G(Ce))};static \u0275cmp=I({type:t,selectors:[["app-outlet-import"]],viewQuery:function(p,i){if(p&1&&U(Ct,5),p&2){let m;V(m=F())&&(i.importStepper=m.first)}},features:[ee],decls:17,vars:21,consts:[["importStepper",""],["op",""],[3,"pageData","hideSearchBox","hideSearchDropdown"],["ngProjectAs","actions",5,["actions"]],["type","button",1,"btn","btn-outline-secondary"],[1,"btn",3,"ngClass","disabled"],["ngProjectAs","content",5,["content"]],[3,"onDropFile","onStateChange","sampleUrl","disabledEdit","articleLink"],["ngProjectAs","preview",5,["preview"]],[1,"w-100",3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["ngProjectAs","complete",5,["complete"]],[1,"d-flex","flex-column","align-items-center"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"btn",3,"click","ngClass","disabled"],[2,"width","300px"],[2,"width","200px"],[2,"width","100px"],[1,"fa","fa-filter","pointer",3,"click"],[2,"width","150px"],[1,"border-bottom","pb-3","d-flex","align-items-center","column-gap-3"],["label","Select All","name","filterTreeCondition","value","All","inputId","all",3,"ngModelChange","ngModel"],["for","all",1,"ms-2"],[1,"mt-4","d-flex","align-items-center","column-gap-3"],["label","Unchanged","name","filterTreeCondition","value","Unchanged","inputId","unchanged",3,"ngModelChange","ngModel"],["for","unchanged",1,"ms-2"],["label","New","name","filterTreeCondition","value","New","inputId","new",3,"ngModelChange","ngModel"],["for","new",1,"ms-2"],["label","Error","name","filterTreeCondition","value","Error","inputId","error",3,"ngModelChange","ngModel"],["for","error",1,"ms-2"],["label","Updated","name","filterTreeCondition","value","Update","inputId","update",3,"ngModelChange","ngModel"],["for","update",1,"ms-2"],[3,"ngClass"],[1,"me-1"],[1,"fa-solid","fa-circle-check","text-success",2,"font-size","110px"],[1,"mt-8"],[1,"d-flex","gap-2","fw-normal","fs-4","mt-2"]],template:function(p,i){if(p&1){let m=S();n(0,"mainpanel-cmp",2),T(1,3),h(2,bt,2,0,"button",4),h(3,vt,4,10,"button",5),h(4,wt,2,0,"button",4),E(),T(5,6),n(6,"pos-import-stepper",7,0),f("onDropFile",function(j){return u(m),_(i.onDropFile(j))})("onStateChange",function(j){return u(m),_(i.onStateChange(j))}),T(8,8),n(9,"p-table",9),g(10,"async"),g(11,"filterTree"),y(12,It,33,5,"ng-template",10)(13,Mt,10,9,"ng-template",11),o(),E(),T(14,12),h(15,Et,6,3,"div",13),g(16,"async"),E(),o(),E(),o()}if(p&2){let m,w;c("pageData",i.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),a(2),x(i.currentState()==1?2:-1),a(),x(i.fileToImport()&&((m=i.fileToImport())==null?null:m.size)>0&&i.currentState()<2?3:-1),a(),x(i.currentState()===2?4:-1),a(2),c("sampleUrl",i.sampleImportFileUrl)("disabledEdit",i.currentState()===2)("articleLink",i.articleLink),a(3),c("value",me(11,15,(w=C(10,13,i.importPreview$))==null?null:w.DataRow,i.filterTreeCondition))("scrollable",!0)("tableStyle",le(20,St)),a(6),x(C(16,18,i.confirmImport$)?15:-1)}},dependencies:[L,se,B,Fe,Ve,Le,Ae,Se,De,Oe,R,_e,fe,Ue,ke,de,Qe],encapsulation:2})};export{Ke as OutletImportComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as r}from"./chunk-Z6RY34PQ.js";import{a as n}from"./chunk-USJ6ILEE.js";var s=(t=>(t[t.IsNew=0]="IsNew",t[t.IsComplete=1]="IsComplete",t[t.IsEdit=2]="IsEdit",t[t.isPark=3]="isPark",t[t.IsRetrieve=4]="IsRetrieve",t[t.IsSplit=5]="IsSplit",t[t.IsBill=6]="IsBill",t[t.IsReturn=7]="IsReturn",t[t.IsUndo=8]="IsUndo",t[t.UploadOrderFail=9]="UploadOrderFail",t))(s||{});var i=class{ID;EntityID;RegisterID;TypeID;Date;Number;CustomerID;SalesID;Discount=0;Discount2=0;DiscountAmount=0;CustomerDiscountRate=0;Note="";DeliveryOutletID;TaxTypeID;CurrencyID;CurrencyRate;PointUsed;InvoicedStateID;ReferenceNumber="";LogisticsServiceID;ParkLabel="";NumberOfPerson;ClientTimestamp;Created;PromotionCoupon="";CouponType=1;PromotionNote="";DeliveryStateID;CouponProvider="Internal";constructor(){this.ID=n.GuidEmpty,this.EntityID=n.GuidEmpty,this.RegisterID=n.GuidEmpty,this.Number="",this.CustomerID=null,this.SalesID=null,this.Discount=0,this.Discount2=0,this.DiscountAmount=0,this.Note="",this.TaxTypeID=n.GuidEmpty,this.CurrencyID=1,this.CurrencyRate=1,this.DeliveryStateID=3,this.PointUsed=0,this.NumberOfPerson=1,this.Date=new Date}removeEnterNote(){this.Note&&(this.Note=this.Note.replace(/\n/g,""))}};var e=class{RegisterID;RegisterCode;EntityID;EntityName;NumberElement;InvoiceNumberElement;ListSales;QuickKeyPack;PrintTemplate;DefaultSalesOrderTag;DefaultTaxType;DefaultWarehouse;MemberPoint;ParkLayoutPack;Promotion;DefaultPrintTemplate;NewOrderID;Payments;SplitPaymentEnabled;constructor(){this.RegisterID=null,this.RegisterCode=null,this.EntityID=null,this.EntityName=null,this.NumberElement=new r,this.InvoiceNumberElement=new r,this.Promotion=[],this.SplitPaymentEnabled=!0}};export{s as a,i as b,e as c};
|