dealpos 25.47.0 → 25.47.2
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-2RERZJD4.js → chunk-2MCEIRJY.js} +1 -1
- package/browser/{chunk-HV4KV3DJ.js → chunk-3FYNWZYY.js} +1 -1
- package/browser/{chunk-E2DUJTA4.js → chunk-3OHHXDTW.js} +1 -1
- package/browser/{chunk-FR66DARJ.js → chunk-3YOY54TO.js} +1 -1
- package/browser/{chunk-FY2ZQK3Q.js → chunk-3ZL5OQ6Y.js} +1 -1
- package/browser/{chunk-647PQZMJ.js → chunk-44RMDJGQ.js} +1 -1
- package/browser/{chunk-2LSFBE4Q.js → chunk-4CKBIRQ2.js} +1 -1
- package/browser/{chunk-5OKSTEWQ.js → chunk-4U2TXFUV.js} +1 -1
- package/browser/{chunk-KTPMM54V.js → chunk-4Y2FYXDF.js} +1 -1
- package/browser/{chunk-C5S5BG57.js → chunk-54OUVAKK.js} +1 -1
- package/browser/{chunk-2HOSLZ77.js → chunk-5BH2H4V6.js} +1 -1
- package/browser/{chunk-BATVMTNZ.js → chunk-5BLWYLXP.js} +1 -1
- package/browser/{chunk-RF5WGONA.js → chunk-5DQ4MJJT.js} +1 -1
- package/browser/{chunk-QIFQFG3V.js → chunk-5MJHW4YM.js} +1 -1
- package/browser/{chunk-HLML4BKF.js → chunk-5MWGLO24.js} +1 -1
- package/browser/{chunk-WDD7INF4.js → chunk-5QUOXOR7.js} +11 -11
- package/browser/{chunk-WBO7PC7R.js → chunk-5SJK4QC2.js} +1 -1
- package/browser/{chunk-LLEPB2B6.js → chunk-64RUCACD.js} +1 -1
- package/browser/{chunk-BYO7FJ4O.js → chunk-6GLKD66N.js} +1 -1
- package/browser/{chunk-XE46ZDV6.js → chunk-6PX2PA2J.js} +1 -1
- package/browser/{chunk-CAGQRIPG.js → chunk-6UMKFILJ.js} +1 -1
- package/browser/{chunk-NN2EFVJK.js → chunk-7GQF6UNI.js} +1 -1
- package/browser/{chunk-ROLAW5XO.js → chunk-7KAETFNH.js} +1 -1
- package/browser/{chunk-EZ5EW4QK.js → chunk-7SJB3DEF.js} +1 -1
- package/browser/{chunk-KBISFX5T.js → chunk-7WXQYKCT.js} +1 -1
- package/browser/chunk-A243LOWU.js +1 -0
- package/browser/{chunk-ZSW24KNO.js → chunk-A5MP4QMZ.js} +1 -1
- package/browser/{chunk-DWZLJMWC.js → chunk-ABNUBGXO.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-INHUUGSI.js → chunk-AUBQH6JY.js} +1 -1
- package/browser/chunk-AVTYR2I6.js +1 -0
- package/browser/{chunk-DM4PGQEH.js → chunk-AZBA2YOQ.js} +2 -2
- 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-OFTORAX4.js → chunk-BK4CA5K2.js} +1 -1
- package/browser/{chunk-H4DUHWPT.js → chunk-BVZ7ACQM.js} +1 -1
- package/browser/{chunk-EKORPCX3.js → chunk-BWXXYBLG.js} +1 -1
- package/browser/{chunk-ON47ICI3.js → chunk-C6YPXBIP.js} +1 -1
- package/browser/chunk-CLBQLTFG.js +4 -0
- package/browser/{chunk-PECGNYTX.js → chunk-CSFFF2YO.js} +1 -1
- package/browser/{chunk-P632SS2L.js → chunk-CUULWZUF.js} +1 -1
- package/browser/{chunk-QQ4DCXLE.js → chunk-D6HRDYFW.js} +1 -1
- package/browser/{chunk-HQ4NLUV6.js → chunk-DEGB7PBB.js} +1 -1
- package/browser/chunk-DPGY5YXC.js +1 -0
- package/browser/{chunk-NRF37QSD.js → chunk-E5XIALIA.js} +1 -1
- package/browser/chunk-EANAFODJ.js +1 -0
- package/browser/{chunk-IGNVHAO2.js → chunk-EQR3RN5K.js} +1 -1
- package/browser/{chunk-UBCB4G4S.js → chunk-F652VZDD.js} +1 -1
- package/browser/{chunk-EAFSL5ZF.js → chunk-FE5USLDO.js} +1 -1
- package/browser/{chunk-BCD363QF.js → chunk-FFNEDDOO.js} +1 -1
- package/browser/{chunk-ME5KGPYC.js → chunk-FFW4SP7H.js} +1 -1
- package/browser/{chunk-JVEVLEGH.js → chunk-FG3HLE5U.js} +1 -1
- package/browser/{chunk-DSQH2UQV.js → chunk-FHPFRT4L.js} +1 -1
- package/browser/{chunk-474F5EIO.js → chunk-FJC7EOO5.js} +1 -1
- package/browser/{chunk-ZXSVZL53.js → chunk-FNH6K4S4.js} +1 -1
- package/browser/chunk-FSBKLNRT.js +4 -0
- package/browser/{chunk-BKBSPC2U.js → chunk-G2VAG4V3.js} +1 -1
- package/browser/{chunk-5PUIMWNW.js → chunk-G5VELV3S.js} +1 -1
- package/browser/{chunk-6WEGHV7F.js → chunk-GN3HVOCN.js} +1 -1
- package/browser/{chunk-JWH2AZ3Z.js → chunk-GXVEYJWC.js} +1 -1
- package/browser/{chunk-L32BGRA6.js → chunk-GYNJFQPE.js} +1 -1
- package/browser/{chunk-UBXEYFKJ.js → chunk-H2SA27YZ.js} +1 -1
- package/browser/{chunk-BY57IAJ7.js → chunk-HD2QU6GJ.js} +1 -1
- package/browser/{chunk-27Y3MQJV.js → chunk-HVJHE6PQ.js} +1 -1
- package/browser/{chunk-P53EATPC.js → chunk-I2SL4ZPJ.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-IVQ42QHP.js +5 -0
- package/browser/{chunk-MA6NB2EZ.js → chunk-JIPNMAEP.js} +1 -1
- package/browser/{chunk-GK4I3EKQ.js → chunk-JNORDOWT.js} +1 -1
- package/browser/{chunk-POJQGU7L.js → chunk-JR5LAUIS.js} +1 -1
- package/browser/{chunk-HTJJDQ3V.js → chunk-JYA7PGNK.js} +1 -1
- package/browser/{chunk-TH7SO4LD.js → chunk-L2V3KTC6.js} +1 -1
- package/browser/{chunk-ORQ3JDJE.js → chunk-LBZL2R6L.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-T5FBPKPS.js → chunk-LRXTFWOZ.js} +1 -1
- package/browser/{chunk-LWA7CCEY.js → chunk-M47WPS54.js} +3 -3
- package/browser/{chunk-WA4WWHYW.js → chunk-M4EGMZWI.js} +1 -1
- package/browser/{chunk-3HS4V7LK.js → chunk-MH7N5XSV.js} +3 -3
- package/browser/{chunk-IUDUQNN7.js → chunk-MUM4RT2P.js} +1 -1
- package/browser/{chunk-WH2BY5K4.js → chunk-MVUVDYGQ.js} +1 -1
- package/browser/chunk-NBMH5YL2.css +1 -0
- package/browser/{chunk-UE2HBW5H.js → chunk-NVCUDJUL.js} +1 -1
- package/browser/{chunk-PLWCVGTF.js → chunk-O2LFJOK7.js} +1 -1
- package/browser/{chunk-IT6GHGT4.js → chunk-OINIYEKP.js} +1 -1
- package/browser/{chunk-CX7CJIXK.js → chunk-OJM2IYYY.js} +2 -2
- package/browser/chunk-P3SYBLK4.js +21 -0
- package/browser/{chunk-MHVF2KXK.js → chunk-PACJK6XZ.js} +1 -1
- package/browser/{chunk-Q473GHR5.js → chunk-PEIXGMKS.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-BALKIB67.js → chunk-PKS7H624.js} +1 -1
- package/browser/{chunk-4JAEMXSQ.js → chunk-PSJRHKCL.js} +1 -1
- package/browser/{chunk-MSW23AJV.js → chunk-QDHSPK4B.js} +1 -1
- package/browser/{chunk-DGF2U27C.js → chunk-QGBQPCW2.js} +2 -2
- package/browser/{chunk-AIM6VG2H.js → chunk-QJD336PR.js} +1 -1
- package/browser/chunk-QLAA4AMU.js +1 -0
- package/browser/{chunk-SO4GMA3Y.js → chunk-QPOOLLKY.js} +1 -1
- package/browser/{chunk-HU3YNBXW.js → chunk-QVCQODGZ.js} +1 -1
- package/browser/chunk-QXWCGE56.js +1 -0
- package/browser/{chunk-WMUZZ5XX.js → chunk-RAQ5KDLF.js} +1 -1
- package/browser/{chunk-QVJJGWXC.js → chunk-RB6A4M7Y.js} +14 -14
- package/browser/{chunk-SGSO4UVM.js → chunk-RCW2TTR7.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-YG6ODXQF.js → chunk-RMU3G7EK.js} +1 -1
- package/browser/{chunk-FQSAJFS6.js → chunk-RNYFGIMB.js} +1 -1
- package/browser/{chunk-JKMJAL6Y.js → chunk-SIS55WCN.js} +2 -2
- package/browser/{chunk-RSN23KAR.js → chunk-SKDXVP3A.js} +1 -1
- package/browser/{chunk-IQDT5K5I.js → chunk-SQ3QIOE4.js} +1 -1
- package/browser/{chunk-RYTM3LHN.js → chunk-SUKZF5RZ.js} +1 -1
- 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-W3EZ4JHD.js → chunk-T4XIWNFQ.js} +1 -1
- package/browser/{chunk-GDS3XQ5F.js → chunk-T7DUQW7O.js} +1 -1
- package/browser/{chunk-7P3E5NJO.js → chunk-TEV65D26.js} +1 -1
- package/browser/{chunk-JEFUIFY4.js → chunk-TOUJ6K3E.js} +1 -1
- package/browser/{chunk-E3LGKC33.js → chunk-TUM5HKY7.js} +1 -1
- package/browser/{chunk-SKE3MW2D.js → chunk-TYX5PWAF.js} +1 -1
- package/browser/{chunk-P7UMAIIW.js → chunk-UTTEBWDI.js} +1 -1
- package/browser/{chunk-WBMSB25X.js → chunk-UTTKPBED.js} +1 -1
- package/browser/{chunk-MPAFCKH7.js → chunk-VAPCHGLS.js} +1 -1
- package/browser/{chunk-2JZS4BMV.js → chunk-VLHLS6LD.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-MPE7Q4VX.js → chunk-XL7XI3DY.js} +1 -1
- package/browser/{chunk-QRTOTG7S.js → chunk-XNJ2P2ZO.js} +1 -1
- package/browser/{chunk-6TGKH2KC.js → chunk-XORANKYI.js} +1 -1
- package/browser/{chunk-O5IZN23R.js → chunk-XVAFOEWU.js} +2 -2
- package/browser/{chunk-3XKRDZSE.js → chunk-YQUQYWX3.js} +1 -1
- package/browser/{chunk-YMLCHH2G.js → chunk-ZEGLCDLU.js} +1 -1
- package/browser/{chunk-P6NP3EAO.js → chunk-ZJDY54VM.js} +1 -1
- package/browser/{chunk-M5KE2CW7.js → chunk-ZQHJ2WC2.js} +1 -1
- package/browser/chunk-ZVOEO2AC.js +3 -0
- package/browser/index.html +2 -2
- package/browser/main-WPNH2WGQ.css +1 -0
- package/browser/{main-VVZRGXWB.js → main-Z44VJHQT.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-4ZXLS56M.js +0 -4
- package/browser/chunk-5ZFCEP2C.css +0 -1
- package/browser/chunk-6SC4T77S.js +0 -1
- package/browser/chunk-D6Y2NJT7.js +0 -1
- 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-IR2QPNXA.js +0 -5
- package/browser/chunk-KUYGPZRD.js +0 -1
- package/browser/chunk-LEGL2HWF.js +0 -1
- package/browser/chunk-MMP7HKXF.js +0 -1
- package/browser/chunk-WY6RTBDA.js +0 -3
- package/browser/main-5IXVIJ7Z.css +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as D}from"./chunk-UTAQ3FRE.js";import{a as xe}from"./chunk-QZMZBCE7.js";import{A as y,C as pe,O as ce,S as me,T as he,f as re,ka as ge,la as ue,o as de,q as le}from"./chunk-NWSIPELM.js";import{$ as P,$b as ie,Ca as U,Cb as H,D as Q,Db as te,E as g,Eb as S,Gb as M,Ha as w,Hb as O,Ia as W,Ib as ne,Ja as T,Ka as Z,Mc as oe,N as V,Ob as ae,Rb as N,Sb as l,Tb as F,Ub as R,Vb as x,Vc as A,Wb as f,Xa as u,Xc as p,Ya as r,Yc as se,Za as K,a as _,ab as X,ac as b,cb as G,d as h,fb as Y,hb as k,ib as E,jb as d,k as L,lb as I,ma as v,na as c,nb as J,pa as i,sc as m,tb as C,va as B,vb as $,xb as ee,ya as q}from"./chunk-JYZTRN6N.js";var z=new c("CdkAccordion"),fe=(()=>{class n{_stateChanges=new h;_openCloseAllActions=new h;id=i(y).getId("cdk-accordion-");multi=!1;openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=d({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",p]},exportAs:["cdkAccordion"],features:[m([{provide:z,useExisting:n}]),w]})}return n})(),be=(()=>{class n{accordion=i(z,{optional:!0,skipSelf:!0});_changeDetectorRef=i(A);_expansionDispatcher=i(D);_openCloseAllSubscription=_.EMPTY;closed=new r;opened=new r;destroyed=new r;expandedChange=new r;id=i(y).getId("cdk-accordion-child-");get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let t=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,t)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=U(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,t)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===t&&this.id!==e&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static \u0275fac=function(t){return new(t||n)};static \u0275dir=d({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",p],disabled:[2,"disabled","disabled",p]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[m([{provide:z,useValue:void 0}])]})}return n})(),ye=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=E({type:n});static \u0275inj=v({})}return n})();var Ae=["body"],De=["bodyWrapper"],Pe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Te=["mat-expansion-panel-header","*","mat-action-row"];function ke(n,we){}var Ie=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],He=["mat-panel-title","mat-panel-description","*"];function Se(n,we){n&1&&(M(0,"span",1),B(),M(1,"svg",2),ne(2,"path",3),O()())}var j=new c("MAT_ACCORDION"),_e=new c("MAT_EXPANSION_PANEL"),Oe=(()=>{class n{_template=i(X);_expansionPanel=i(_e,{optional:!0});constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=d({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]})}return n})(),ve=new c("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Ne=(()=>{class n extends be{_viewContainerRef=i(Y);_animationsDisabled=ge();_document=i(q);_ngZone=i(K);_elementRef=i(T);_renderer=i(G);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e}_hideToggle=!1;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_togglePosition;afterExpand=new r;afterCollapse=new r;_inputChanges=new h;accordion=i(j,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=i(y).getId("mat-expansion-panel-header-");constructor(){super();let e=i(ve,{optional:!0});this._expansionDispatcher=i(D),e&&(this.hideToggle=e.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(P(null),g(()=>this.expanded&&!this._portal),V(1)).subscribe(()=>{this._portal=new ce(this._lazyContent._template,this._viewContainerRef)}),this._setupAnimationEvents()}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete()}_containsFocus(){if(this._body){let e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:t})=>{e===this._bodyWrapper?.nativeElement&&t==="grid-template-rows"&&this._ngZone.run(()=>{this.expanded?this.afterExpand.emit():this.afterCollapse.emit()})};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{let e=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this._transitionEndListener),e.classList.add("mat-expansion-panel-animations-enabled")},200)})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=k({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(t,a,s){if(t&1&&F(s,Oe,5),t&2){let o;x(o=f())&&(a._lazyContent=o.first)}},viewQuery:function(t,a){if(t&1&&(R(Ae,5),R(De,5)),t&2){let s;x(s=f())&&(a._body=s.first),x(s=f())&&(a._bodyWrapper=s.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(t,a){t&2&&b("mat-expanded",a.expanded)("mat-expansion-panel-spacing",a._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",p],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[m([{provide:j,useValue:void 0},{provide:_e,useExisting:n}]),I,w],ngContentSelectors:Te,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,a){t&1&&(N(Pe),l(0),te(1,"div",2,0)(3,"div",3,1)(5,"div",4),l(6,1),J(7,ke,0,0,"ng-template",5),S(),l(8,2),S()()),t&2&&(u(),C("inert",a.expanded?null:""),u(2),H("id",a.id),C("aria-labelledby",a._headerId),u(4),H("cdkPortalOutlet",a._portal))},dependencies:[me],styles:[`.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;position:relative;background:var(--mat-expansion-container-background-color, var(--mat-sys-surface));color:var(--mat-expansion-container-text-color, var(--mat-sys-on-surface));border-radius:var(--mat-expansion-container-shape, 12px)}.mat-expansion-panel.mat-expansion-panel-animations-enabled{transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:var(--mat-expansion-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape, 12px);border-top-left-radius:var(--mat-expansion-container-shape, 12px)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape, 12px);border-bottom-left-radius:var(--mat-expansion-container-shape, 12px)}@media(forced-colors: active){.mat-expansion-panel{outline:solid 1px}}.mat-expansion-panel-content-wrapper{display:grid;grid-template-rows:0fr;grid-template-columns:100%}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content-wrapper{transition:grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{grid-template-rows:1fr}@supports not (grid-template-rows: 0fr){.mat-expansion-panel-content-wrapper{height:0}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{height:auto}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;font-family:var(--mat-expansion-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content{transition:visibility 190ms linear}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper>.mat-expansion-panel-content{visibility:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color, var(--mat-sys-outline))}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}
|
|
1
|
+
import{a as D}from"./chunk-UTAQ3FRE.js";import{a as xe}from"./chunk-BA3BDB5Y.js";import{A as y,C as pe,O as ce,S as me,T as he,f as re,ka as ge,la as ue,o as de,q as le}from"./chunk-NWSIPELM.js";import{$ as P,$b as ie,Ca as U,Cb as H,D as Q,Db as te,E as g,Eb as S,Gb as M,Ha as w,Hb as O,Ia as W,Ib as ne,Ja as T,Ka as Z,Mc as oe,N as V,Ob as ae,Rb as N,Sb as l,Tb as F,Ub as R,Vb as x,Vc as A,Wb as f,Xa as u,Xc as p,Ya as r,Yc as se,Za as K,a as _,ab as X,ac as b,cb as G,d as h,fb as Y,hb as k,ib as E,jb as d,k as L,lb as I,ma as v,na as c,nb as J,pa as i,sc as m,tb as C,va as B,vb as $,xb as ee,ya as q}from"./chunk-JYZTRN6N.js";var z=new c("CdkAccordion"),fe=(()=>{class n{_stateChanges=new h;_openCloseAllActions=new h;id=i(y).getId("cdk-accordion-");multi=!1;openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=d({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",p]},exportAs:["cdkAccordion"],features:[m([{provide:z,useExisting:n}]),w]})}return n})(),be=(()=>{class n{accordion=i(z,{optional:!0,skipSelf:!0});_changeDetectorRef=i(A);_expansionDispatcher=i(D);_openCloseAllSubscription=_.EMPTY;closed=new r;opened=new r;destroyed=new r;expandedChange=new r;id=i(y).getId("cdk-accordion-child-");get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let t=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,t)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=U(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,t)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===t&&this.id!==e&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static \u0275fac=function(t){return new(t||n)};static \u0275dir=d({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",p],disabled:[2,"disabled","disabled",p]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[m([{provide:z,useValue:void 0}])]})}return n})(),ye=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=E({type:n});static \u0275inj=v({})}return n})();var Ae=["body"],De=["bodyWrapper"],Pe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Te=["mat-expansion-panel-header","*","mat-action-row"];function ke(n,we){}var Ie=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],He=["mat-panel-title","mat-panel-description","*"];function Se(n,we){n&1&&(M(0,"span",1),B(),M(1,"svg",2),ne(2,"path",3),O()())}var j=new c("MAT_ACCORDION"),_e=new c("MAT_EXPANSION_PANEL"),Oe=(()=>{class n{_template=i(X);_expansionPanel=i(_e,{optional:!0});constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=d({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]})}return n})(),ve=new c("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Ne=(()=>{class n extends be{_viewContainerRef=i(Y);_animationsDisabled=ge();_document=i(q);_ngZone=i(K);_elementRef=i(T);_renderer=i(G);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e}_hideToggle=!1;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_togglePosition;afterExpand=new r;afterCollapse=new r;_inputChanges=new h;accordion=i(j,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=i(y).getId("mat-expansion-panel-header-");constructor(){super();let e=i(ve,{optional:!0});this._expansionDispatcher=i(D),e&&(this.hideToggle=e.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(P(null),g(()=>this.expanded&&!this._portal),V(1)).subscribe(()=>{this._portal=new ce(this._lazyContent._template,this._viewContainerRef)}),this._setupAnimationEvents()}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete()}_containsFocus(){if(this._body){let e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:t})=>{e===this._bodyWrapper?.nativeElement&&t==="grid-template-rows"&&this._ngZone.run(()=>{this.expanded?this.afterExpand.emit():this.afterCollapse.emit()})};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{let e=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this._transitionEndListener),e.classList.add("mat-expansion-panel-animations-enabled")},200)})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=k({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(t,a,s){if(t&1&&F(s,Oe,5),t&2){let o;x(o=f())&&(a._lazyContent=o.first)}},viewQuery:function(t,a){if(t&1&&(R(Ae,5),R(De,5)),t&2){let s;x(s=f())&&(a._body=s.first),x(s=f())&&(a._bodyWrapper=s.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(t,a){t&2&&b("mat-expanded",a.expanded)("mat-expansion-panel-spacing",a._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",p],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[m([{provide:j,useValue:void 0},{provide:_e,useExisting:n}]),I,w],ngContentSelectors:Te,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,a){t&1&&(N(Pe),l(0),te(1,"div",2,0)(3,"div",3,1)(5,"div",4),l(6,1),J(7,ke,0,0,"ng-template",5),S(),l(8,2),S()()),t&2&&(u(),C("inert",a.expanded?null:""),u(2),H("id",a.id),C("aria-labelledby",a._headerId),u(4),H("cdkPortalOutlet",a._portal))},dependencies:[me],styles:[`.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;position:relative;background:var(--mat-expansion-container-background-color, var(--mat-sys-surface));color:var(--mat-expansion-container-text-color, var(--mat-sys-on-surface));border-radius:var(--mat-expansion-container-shape, 12px)}.mat-expansion-panel.mat-expansion-panel-animations-enabled{transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:var(--mat-expansion-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape, 12px);border-top-left-radius:var(--mat-expansion-container-shape, 12px)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape, 12px);border-bottom-left-radius:var(--mat-expansion-container-shape, 12px)}@media(forced-colors: active){.mat-expansion-panel{outline:solid 1px}}.mat-expansion-panel-content-wrapper{display:grid;grid-template-rows:0fr;grid-template-columns:100%}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content-wrapper{transition:grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{grid-template-rows:1fr}@supports not (grid-template-rows: 0fr){.mat-expansion-panel-content-wrapper{height:0}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{height:auto}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;font-family:var(--mat-expansion-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content{transition:visibility 190ms linear}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper>.mat-expansion-panel-content{visibility:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color, var(--mat-sys-outline))}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return n})();var Fe=(()=>{class n{panel=i(Ne,{host:!0});_element=i(T);_focusMonitor=i(de);_changeDetectorRef=i(A);_parentChangeSubscription=_.EMPTY;constructor(){i(le).load(xe);let e=this.panel,t=i(ve,{optional:!0}),a=i(new oe("tabindex"),{optional:!0}),s=e.accordion?e.accordion._stateChanges.pipe(g(o=>!!(o.hideToggle||o.togglePosition))):L;this.tabIndex=parseInt(a||"")||0,this._parentChangeSubscription=Q(e.opened,e.closed,s,e._inputChanges.pipe(g(o=>!!(o.hideToggle||o.disabled||o.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(g(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),t&&(this.expandedHeight=t.expandedHeight,this.collapsedHeight=t.collapsedHeight)}expandedHeight;collapsedHeight;tabIndex=0;get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:re(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=k({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(t,a){t&1&&ae("click",function(){return a._toggle()})("keydown",function(o){return a._keydown(o)}),t&2&&(C("id",a.panel._headerId)("tabindex",a.disabled?-1:a.tabIndex)("aria-controls",a._getPanelId())("aria-expanded",a._isExpanded())("aria-disabled",a.panel.disabled),ie("height",a._getHeaderHeight()),b("mat-expanded",a._isExpanded())("mat-expansion-toggle-indicator-after",a._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",a._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:se(e)]},ngContentSelectors:He,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(t,a){t&1&&(N(Ie),M(0,"span",0),l(1),l(2,1),l(3,2),O(),$(4,Se,3,0,"span",1)),t&2&&(b("mat-content-hide-toggle",!a._showToggle()),u(4),ee(a._showToggle()?4:-1))},styles:[`.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;height:var(--mat-expansion-header-collapsed-state-height, 48px);font-family:var(--mat-expansion-header-text-font, var(--mat-sys-title-medium-font));font-size:var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-header{transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header::before{border-radius:inherit}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height, 64px)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-sys-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color, var(--mat-sys-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant))}.mat-expansion-panel-animations-enabled .mat-expansion-indicator{transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator{transform:rotate(180deg)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, none)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-header-indicator-display, inline-block)}@media(forced-colors: active){.mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}}
|
|
3
3
|
`],encapsulation:2,changeDetection:0})}return n})(),gt=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=d({type:n,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return n})(),ut=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=d({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return n})(),xt=(()=>{class n extends fe{_keyManager;_ownHeaders=new Z;_headers;hideToggle=!1;displayMode="default";togglePosition="after";ngAfterContentInit(){this._headers.changes.pipe(P(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new pe(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static \u0275fac=(()=>{let e;return function(a){return(e||(e=W(n)))(a||n)}})();static \u0275dir=d({type:n,selectors:[["mat-accordion"]],contentQueries:function(t,a,s){if(t&1&&F(s,Fe,5),t&2){let o;x(o=f())&&(a._headers=o)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,a){t&2&&b("mat-accordion-multi",a.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",p],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[m([{provide:j,useExisting:n}]),I]})}return n})(),ft=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=E({type:n});static \u0275inj=v({imports:[ue,ye,he]})}return n})();export{Oe as a,Ne as b,Fe as c,gt as d,ut as e,xt as f,ft as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as b}from"./chunk-
|
|
1
|
+
import{D as b}from"./chunk-BA3BDB5Y.js";import{O as s}from"./chunk-T25N3EEG.js";import{ee as D,la as y,oa as c,t as l}from"./chunk-JYZTRN6N.js";var p=class{_EntityID;_ID;_Note;_Number;_VariantID;_Quantity;_ExpiryDate;constructor(t){t&&(this.EntityID=t.EntityID,this.ID=t.ID,this.Note=t.Note,this.Number=t.Number,this.VariantID=t.VariantID,this.Quantity=t.Quantity,this.ExpiryDate=t.ExpiryDate)}get Quantity(){return this._Quantity}set Quantity(t){this._Quantity=t}get EntityID(){return this._EntityID}get ID(){return this._ID}get Note(){return this._Note}get Number(){return this._Number}get VariantID(){return this._VariantID}set EntityID(t){this._EntityID=t}set ID(t){this._ID=t}set Note(t){this._Note=t}set Number(t){this._Number=t}set VariantID(t){this._VariantID=t}get ExpiryDate(){return this._ExpiryDate}set ExpiryDate(t){this._ExpiryDate=t}};var g=class o{constructor(t,i){this.httpService=t;this.localData=i}findVariantByID(t,i,n=!0){return new Promise((a,e)=>{this.localData.isConfigFromServer().subscribe(u=>{u?this.httpService.get(s.GetVariantByID,[{key:"ID",value:t},{key:"EntityID",value:i},{key:"Promotion",value:n}]).subscribe({next:r=>{a(r)},error:r=>{e(r)}}):this.localData.findVariantById(t,i).subscribe({next:r=>{a(r)},error:r=>{e(r)}})})})}findVariantByCode(t,i,n=!1){return new Promise((a,e)=>{this.localData.isProductFromServer().subscribe(u=>{u?this.httpService.get(s.GetVariantByCode,[{key:"Code",value:t},{key:"EntityID",value:i},{key:"BarcodeSerial",value:n},{key:"Promotion",value:!0}]).subscribe({next:r=>{a(r)},error:r=>{e(r)}}):this.localData.findVariantByCode(t,i).subscribe({next:r=>{a(r)},error:r=>{e(r)}})})})}getVariantSerial(t,i){return this.httpService.post(s.GetVariantSerial,{entityID:t,variantID:i}).pipe(l(n=>n.map(e=>new p(e))))}getSerialByVarianIds(t,i){return this.httpService.post(s.GetVariantSerialByListVariantID,{EntityID:t,ListVariantID:i})}findVariantBySerial(t,i){return this.httpService.get(s.GetVariantBySerial,[{key:"Serial",value:t},{key:"EntityID",value:i}])}getStockByID(t,i){return new Promise((n,a)=>{this.httpService.get(s.GetVariantStockByID,[{key:"ID",value:t},{key:"EntityID",value:i}]).subscribe({next:e=>n(e),error:e=>a(e)})})}static \u0275fac=function(i){return new(i||o)(c(D),c(b))};static \u0275prov=y({token:o,factory:o.\u0275fac,providedIn:"root"})};export{g as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as xt}from"./chunk-JEL3OND6.js";import{a as ft,b as _t,c as gt,d as yt,e as vt}from"./chunk-X57HWGVJ.js";import{a as ht}from"./chunk-5SFUSWFY.js";import{a as mt}from"./chunk-534MIVWD.js";import{a as bt}from"./chunk-TGEQUV6Z.js";import{b as ut}from"./chunk-
|
|
1
|
+
import{a as xt}from"./chunk-JEL3OND6.js";import{a as ft,b as _t,c as gt,d as yt,e as vt}from"./chunk-X57HWGVJ.js";import{a as ht}from"./chunk-5SFUSWFY.js";import{a as mt}from"./chunk-534MIVWD.js";import{a as bt}from"./chunk-TGEQUV6Z.js";import{b as ut}from"./chunk-4U2TXFUV.js";import{a as dt,d as _e}from"./chunk-CS6HBROS.js";import{a as pt,d as ct}from"./chunk-6SGN7MNX.js";import{b as ue,c as ne,d as me,g as at,h as rt,k as U,l as j}from"./chunk-L76WVZW6.js";import{A as Je,F as Xe,H,P as et,Q as tt,S as Ee,T as it,V as de,W,X as nt,_ as Ve,a as te,fa as ot,g as We,h as Ue,i as je,ka as lt,m as k,oa as st,p as Ce,pa as ie,qa as he,t as ce,u as Ze,w as L,x as z,xa as fe,z as Ye}from"./chunk-O5SLP4JK.js";import{a as $e}from"./chunk-RNLSEEMX.js";import{$b as Pe,Ca as K,Cb as s,Db as f,Eb as m,Fb as D,Hc as A,Ia as R,Ib as He,Jb as I,Kb as O,Kc as $,Lb as w,Lc as pe,Mb as E,Ob as x,Pc as ee,Qb as a,Tb as v,Ub as M,Vb as d,Wb as u,Xa as p,Xc as h,Ya as C,Yc as V,Za as ae,_b as q,bc as ve,cc as _,db as G,dc as Q,ec as J,ed as Ge,fb as De,fc as xe,fd as Ie,hb as Y,ib as re,ic as Re,id as Oe,jb as Ae,jc as Ne,jd as we,ka as Be,kc as Qe,la as le,lb as N,ma as se,mb as ze,na as Z,nb as c,pa as F,rd as Se,sc as X,sd as qe,ta as y,tb as T,tc as Ke,ua as b,uc as S,va as B,vb as ye,vc as Te,xb as be}from"./chunk-JYZTRN6N.js";import{a as P,b as Me}from"./chunk-SNAKHGZS.js";var Tt=`
|
|
2
2
|
.p-tooltip {
|
|
3
3
|
position: absolute;
|
|
4
4
|
display: none;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as it}from"./chunk-5I5IONRY.js";import{a as ot}from"./chunk-5TKXFIDJ.js";import{a as nt}from"./chunk-23PKMU5D.js";import{u as Z,v as tt,w as et}from"./chunk-
|
|
1
|
+
import{a as it}from"./chunk-5I5IONRY.js";import{a as ot}from"./chunk-5TKXFIDJ.js";import{a as nt}from"./chunk-23PKMU5D.js";import{u as Z,v as tt,w as et}from"./chunk-BA3BDB5Y.js";import{b as q,c as H}from"./chunk-C4WJKF7R.js";import{N as P,n as M}from"./chunk-T25N3EEG.js";import{e as J,f as K,g as X,l as Y}from"./chunk-A45GTZVV.js";import{F as $,a as W,c as z,h as G,o as U}from"./chunk-RNLSEEMX.js";import{Ab as N,Bb as A,Bc as h,Cb as d,Db as i,Dc as C,E as I,Eb as r,Fb as m,Mb as v,Ob as g,Qb as a,Xa as l,Ya as S,cd as R,db as c,dc as f,ec as F,fa as w,fc as k,hb as _,ic as E,jc as L,kc as V,pa as y,rd as Q,sc as B,ta as x,ua as D,uc as j,vb as u,xb as p,yb as T}from"./chunk-JYZTRN6N.js";var ut=n=>({selected:n});function pt(n,t){if(n&1){let e=v();i(0,"div",1)(1,"div",4)(2,"span",5),m(3,"i",6),r(),i(4,"input",7),V("ngModelChange",function(s){x(e);let O=a();return L(O.outletQuery,s)||(O.outletQuery=s),D(s)}),r()()()}if(n&2){let e=a();l(4),E("ngModel",e.outletQuery)}}function dt(n,t){if(n&1){let e=v();i(0,"div",9),g("click",function(){x(e);let s=a().$implicit,O=a();return D(O.selectOutlet(s))}),m(1,"i",10),i(2,"h5"),f(3),h(4,"limitTo"),r(),i(5,"div",11),f(6," VACANT "),r()()}if(n&2){let e=a().$implicit,o=a();d("ngClass",j(5,ut,e.ID===o.id)),l(3),F(C(4,2,e.Name,15))}}function mt(n,t){if(n&1&&u(0,dt,7,7,"div",8),n&2){let e=t.$implicit,o=a();p(e.ID!==o.sourceOutletID?0:-1)}}var b=class n{constructor(t,e){this.dialogRef=t;this.data=e;this.config.title=e.dialogTitle,this.config.customWidth="600px",this.config.hideScrollbar=!0,this.config.hideFooter=!0,this.id=e.outletID,this.sourceOutletID=e.sourceOutletID}outletQuery="";config=new Z;name="";id="";sourceOutletID="";outlet;selectOutlet(t){this.outlet=t,this.name=t.Name,this.id=t.ID,this.saveOnSelectOutlet()}saveOnSelectOutlet(){this.dialogRef.close({Name:this.name,ID:Object.prototype.hasOwnProperty.call(this.outlet,"EntityID")?this.outlet.EntityID:this.outlet.ID})}static \u0275fac=function(e){return new(e||n)(c(J),c(K))};static \u0275cmp=_({type:n,selectors:[["POS-modal-select-outlet"]],decls:8,vars:5,consts:[[3,"onClose","config"],[1,"p-0","search-container"],[1,"container","custom-scroll","mt-8"],[1,"row",2,"width","600px"],[1,"input-group","mb-3"],[1,"input-group-text","txtFilter","rounded-start-1","rounded-end-0"],["aria-hidden","true",1,"fa","fa-magnifying-glass"],["type","text","placeholder","Filter by Name","aria-label","Search",1,"txtFilter","form-control","border-start-0","rounded-1","rounded-start-0",3,"ngModelChange","ngModel"],[1,"col-4","outlet-option","pointer",3,"ngClass"],[1,"col-4","outlet-option","pointer",3,"click","ngClass"],[1,"fa-solid","fa-shop"],[1,"text-center","mt-6",2,"font-size","1.25rem"]],template:function(e,o){e&1&&(i(0,"modal-material",0),g("onClose",function(){return o.dialogRef.close()}),i(1,"content"),u(2,pt,5,1,"div",1),i(3,"div",2)(4,"div",3),N(5,mt,1,1,null,null,T),h(7,"filterByName"),r()()()()),e&2&&(d("config",o.config),l(2),p(o.data.outlets.length>6?2:-1),l(3),A(C(7,2,o.data.outlets,o.outletQuery)))},dependencies:[Q,R,et,tt,$,z,G,U,P,it,M],styles:[".search-container[_ngcontent-%COMP%]{transition:all .3s ease;width:97%}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{position:relative;transition:all .3s ease;height:2.3rem}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover, .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within{box-shadow:0 0 0 2px #89b03e4d,0 0 8px 4px #89b03e33;border-radius:4px}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .txtFilter.form-control[_ngcontent-%COMP%]{transition:all .3s ease;border-left:none!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .txtFilter.form-control[_ngcontent-%COMP%]:focus{box-shadow:none!important;border-color:#ced4da!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .input-group-text[_ngcontent-%COMP%]{transition:all .3s ease;background-color:#fff;border-right:none!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover .input-group-text[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within .input-group-text[_ngcontent-%COMP%]{background-color:#89b03e1a;border-color:#84cc16!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .fa-magnifying-glass[_ngcontent-%COMP%]{transition:all .3s ease}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover .fa-magnifying-glass[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within .fa-magnifying-glass[_ngcontent-%COMP%]{color:#84cc16!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within{box-shadow:0 0 0 2px #89b03e66,0 0 12px 6px #89b03e40!important}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#89b03e;border-radius:3px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#7a9e37}.container[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;max-height:260px;min-height:150px}.row[_ngcontent-%COMP%]{row-gap:20px;column-gap:12px}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]{height:110px;width:175px;border:1px solid #B1AAAA;border-radius:5px;padding:0;font-size:14px;position:relative}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:absolute;top:8px;left:10px;color:#fff}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{border-radius:4px;color:#fff;background:#b1aaaa;overflow:hidden;height:30px;width:100%;display:flex;align-items:center;padding-left:38px}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]:hover, .row[_ngcontent-%COMP%] .outlet-option.selected[_ngcontent-%COMP%]{background:#ffffe1;border:1px solid #89b03e}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]:hover > h5[_ngcontent-%COMP%], .row[_ngcontent-%COMP%] .outlet-option.selected[_ngcontent-%COMP%] > h5[_ngcontent-%COMP%]{background:#89b03e}"]})};function gt(n,t){n&1&&m(0,"i",1)}var lt=class n{constructor(t){this.matDialog=t}sf=y(nt);_isOpenAfterLoad;hideLocationIcon=!1;dialogTitle="Choose an Outlet";limitOutletText=25;sourceOutletID="";set isOpenAfterLoad(t){t!==void 0&&(this._isOpenAfterLoad=t,this._isOpenAfterLoad&&this._outlets?.length>1&&this.openModalSelectOutlet())}_outlets;set outlets(t){if(t)if(this._outlets=t,this._outlets.length==1){let e=this._outlets[0];this.assignOutlet(e.Name,Object.prototype.hasOwnProperty.call(e,"EntityID")?e.EntityID:e.ID)}else this._isOpenAfterLoad&&this.openModalSelectOutlet()}onCloseDialog=new S;outlet={ID:"",Name:"Choose an Outlet"};disabled=!1;onChange=t=>{};onTouched=()=>{};writeValue(t){this.outlet=t}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}openModalSelectOutlet(){this.disabled||(this.onTouched(),this.matDialog.getDialogById("select-outlet-modal")||this.matDialog.open(b,{id:"select-outlet-modal",data:{outlets:this._outlets,outletID:this.outlet.ID,dialogTitle:this.dialogTitle,sourceOutletID:this.sourceOutletID}}).afterClosed().pipe(I(t=>t),ot("modal select outlet"),w(()=>this.onCloseDialog.emit())).subscribe(t=>{this.assignOutlet(t.Name,t.ID),this.sf.searchFilterNativeEl?.focus()}))}assignOutlet(t,e){this.outlet={ID:e,Name:t},this.onChange(this.outlet)}static \u0275fac=function(e){return new(e||n)(c(X))};static \u0275cmp=_({type:n,selectors:[["POS-select-outlet-form"]],inputs:{hideLocationIcon:"hideLocationIcon",dialogTitle:"dialogTitle",limitOutletText:"limitOutletText",sourceOutletID:"sourceOutletID",isOpenAfterLoad:"isOpenAfterLoad",outlets:"outlets"},outputs:{onCloseDialog:"onCloseDialog"},features:[B([{provide:W,multi:!0,useExisting:n}])],decls:5,vars:6,consts:[["matTooltipPosition","above",1,"outlet-container","d-flex","pointer",3,"click","matTooltip"],[1,"fa-solid","fa-location-dot"],[1,"mb-0"]],template:function(e,o){e&1&&(i(0,"div",0),g("click",function(){return o.openModalSelectOutlet()}),u(1,gt,1,0,"i",1),i(2,"h3",2),f(3),h(4,"limitTo"),r()()),e&2&&(d("matTooltip",o.outlet==null?null:o.outlet.Name),l(),p(o.hideLocationIcon?-1:1),l(2),k(" ",C(4,3,!(o.outlet==null||o.outlet.Name==null)&&o.outlet.Name.length?o.outlet==null?null:o.outlet.Name:"Choose an Outlet",o.limitOutletText)," "))},dependencies:[Y,P,H,q,M],styles:[".outlet-container[_ngcontent-%COMP%] .fa-location-dot[_ngcontent-%COMP%]{color:#fb404b!important;font-size:32px;width:32px}"]})};export{lt as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as $}from"./chunk-
|
|
1
|
+
import{a as $}from"./chunk-F652VZDD.js";import{a as J,b as K}from"./chunk-MVUVDYGQ.js";import{a as G}from"./chunk-WNZKCNMC.js";import{e as Y,f as Z}from"./chunk-PKS7H624.js";import{a as Q,c as U}from"./chunk-KKLNFVVN.js";import{b as X}from"./chunk-XNJ2P2ZO.js";import{h as H,m as q,q as z}from"./chunk-BA3BDB5Y.js";import{b as R,c as j}from"./chunk-C4WJKF7R.js";import{a as V}from"./chunk-2FWFPV5I.js";import{F as k,c as A,h as v,o as b}from"./chunk-RNLSEEMX.js";import{Ab as P,Bb as w,Cb as p,Db as o,Eb as a,Mb as I,Ob as c,Pc as g,Qb as d,Wd as W,Xa as m,Ya as C,be as L,db as h,dc as r,ec as F,ee as B,hb as M,ic as T,jc as S,kc as E,lb as D,ta as u,ua as f,vb as N,xb as O,yb as y}from"./chunk-JYZTRN6N.js";var x=class s{stringPrefixMask=g();stringSuffixMask=g();stringPrefixMaskChange=new C;stringSuffixMaskChange=new C;onStringPrefixMaskChange(l){this.stringPrefixMaskChange.emit(l)}onStringSuffixMaskChange(l){this.stringSuffixMaskChange.emit(l)}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=M({type:s,selectors:[["masking-config"]],inputs:{stringPrefixMask:[1,"stringPrefixMask"],stringSuffixMask:[1,"stringSuffixMask"]},outputs:{stringPrefixMaskChange:"stringPrefixMaskChange",stringSuffixMaskChange:"stringSuffixMaskChange"},decls:18,vars:2,consts:[[1,"row","my-10","ms-2"],[1,"col-md-2"],[1,"notes","text-muted"],[1,"col-md-10"],[1,"row"],[1,"col-6"],["matTooltipPosition","above","matTooltip","Sets the number of characters at the beginning of the sensitive field that remain visible",1,"form-floating-outline"],["type","text","id","name","placeholder","Max Visible Prefix","autoNum","",1,"form-control",3,"ngModelChange","ngModel"],["matTooltipPosition","above","matTooltip","Sets the number of characters at the end of the sensitive field that remain visible",1,"form-floating-outline"],["type","text","id","name","placeholder","Max Visible Suffix","autoNum","",1,"form-control",3,"ngModelChange","ngModel"]],template:function(e,i){e&1&&(o(0,"div",0)(1,"div",1)(2,"h5"),r(3,"Visible Masking Settings"),a(),o(4,"i",2),r(5," Configure how many characters at the beginning and end of sensitive fields remain visible. "),a()(),o(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"input",7),c("ngModelChange",function(n){return i.onStringPrefixMaskChange(n)}),a(),o(11,"label"),r(12,"Max Visible Prefix"),a()()(),o(13,"div",5)(14,"div",8)(15,"input",9),c("ngModelChange",function(n){return i.onStringSuffixMaskChange(n)}),a(),o(16,"label"),r(17,"Max Visible Suffix"),a()()()()()()),e&2&&(m(10),p("ngModel",i.stringPrefixMask()),m(5),p("ngModel",i.stringSuffixMask()))},dependencies:[k,A,v,b,Q,U,j,R],encapsulation:2})};function oe(s,l){if(s&1&&(o(0,"mat-option",10),r(1),a()),s&2){let e=l.$implicit;p("value",e),m(),F(e)}}function ae(s,l){if(s&1&&(o(0,"mat-option",10),r(1),a()),s&2){let e=l.$implicit;p("value",e),m(),F(e)}}var _=class s{options=g();contacts=g([]);products=g([]);contactsChange=new C;productsChange=new C;onContactsChange(l){this.contactsChange.emit(l)}onProductsChange(l){this.productsChange.emit(l)}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=M({type:s,selectors:[["masking-options"]],inputs:{options:[1,"options"],contacts:[1,"contacts"],products:[1,"products"]},outputs:{contactsChange:"contactsChange",productsChange:"productsChange"},decls:27,vars:2,consts:[[1,"row","my-10","ms-2"],[1,"col-md-2"],[1,"notes","text-muted"],["href","https://support.dealpos.com/en/articles/8278008-sensitive-field-roles-configuration-for-contacts","target","_blank"],[1,"col-md-10"],[1,"row"],[1,"col-6"],["appearance","outline",1,"w-100"],[1,"fs-4"],["placeholder","Product","multiple","",3,"ngModelChange","ngModel"],[3,"value"],["placeholder","Contact","multiple","",3,"ngModelChange","ngModel"]],template:function(e,i){if(e&1&&(o(0,"div",0)(1,"div",1)(2,"h5"),r(3,"Sensitive Field"),a(),o(4,"i",2),r(5,"When you mark a property as sensitive, the property value cannot be viewed to users without 'sensitive field' role. Please refer this "),o(6,"a",3),r(7,"Article"),a(),r(8," for more information"),a()(),o(9,"div",4)(10,"div",5)(11,"div",6)(12,"mat-form-field",7)(13,"mat-label")(14,"span",8),r(15,"Product"),a()(),o(16,"mat-select",9),c("ngModelChange",function(n){return i.onProductsChange(n)}),P(17,oe,2,2,"mat-option",10,y),a()()(),o(19,"div",6)(20,"mat-form-field",7)(21,"mat-label")(22,"span",8),r(23,"Contact"),a()(),o(24,"mat-select",11),c("ngModelChange",function(n){return i.onContactsChange(n)}),P(25,ae,2,2,"mat-option",10,y),a()()()()()()),e&2){let t,n;m(16),p("ngModel",i.products()),m(),w((t=i.options())==null?null:t.Product),m(7),p("ngModel",i.contacts()),m(),w((n=i.options())==null?null:n.Customer)}},dependencies:[K,q,H,J,z,G,k,v,b],encapsulation:2})};function re(s,l){if(s&1){let e=I();o(0,"mainpanel-cmp",0)(1,"actions")(2,"button",1),c("click",function(){u(e);let t=d();return f(t.onSubmit("Setup/Configuration/SubmitSensitiveFieldConfigurationV2"))}),r(3," Save "),a()(),o(4,"content")(5,"div",2)(6,"ul",3)(7,"li",4)(8,"button",5),r(9," Objects "),a()(),o(10,"li",4)(11,"button",6),r(12," Masking "),a()()(),o(13,"div",7)(14,"div",8)(15,"masking-options",9),E("productsChange",function(t){u(e);let n=d();return S(n.data.Form.Product,t)||(n.data.Form.Product=t),f(t)})("contactsChange",function(t){u(e);let n=d();return S(n.data.Form.Customer,t)||(n.data.Form.Customer=t),f(t)}),a()(),o(16,"div",10)(17,"masking-config",11),E("stringPrefixMaskChange",function(t){u(e);let n=d();return S(n.data.Form.Masking.StringPrefixMaskVisibleCharacterLength,t)||(n.data.Form.Masking.StringPrefixMaskVisibleCharacterLength=t),f(t)})("stringSuffixMaskChange",function(t){u(e);let n=d();return S(n.data.Form.Masking.StringSuffixMaskVisibleCharacterLength,t)||(n.data.Form.Masking.StringSuffixMaskVisibleCharacterLength=t),f(t)}),a()()()()()()}if(s&2){let e=d();p("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),m(15),p("options",e.data.Options),T("products",e.data.Form.Product)("contacts",e.data.Form.Customer),m(2),T("stringPrefixMask",e.data.Form.Masking.StringPrefixMaskVisibleCharacterLength)("stringSuffixMask",e.data.Form.Masking.StringSuffixMaskVisibleCharacterLength)}}var ie=class s extends ${constructor(e,i,t,n){super(e,i,"Setup/ConfigurationLoader/SensitiveFieldConfigurationV2",t);this.httpService=i;this.activatedRoute=t;this.toaster=n}onSubmitSuccess(e){e?.MessageWarning?this.toaster.warning(e.MessageWarning,V.Warning):this.toaster.success("Config has been updated succesfully!",V.Success)}static \u0275fac=function(i){return new(i||s)(h(X),h(B),h(W),h(L))};static \u0275cmp=M({type:s,selectors:[["app-sensitive-field"]],features:[D],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click"],[1,"container-fluid","py-5","bg-light-white"],["id","myTab","role","tablist",1,"nav","nav-tabs"],[1,"nav-item"],["id","masking-options-tab","data-bs-toggle","tab","data-bs-target","#masking-options","role","tab","aria-controls","masking-options","aria-selected","true",1,"nav-link","active"],["id","masking-tab","data-bs-toggle","tab","data-bs-target","#masking","role","tab","aria-controls","masking","aria-selected","false",1,"nav-link"],["id","myTabContent",1,"tab-content","border-top-0","bg-white"],["id","masking-options","aria-labelledby","masking-options-tab","role","tabpanel",1,"tab-pane","fade","mt-0","p-7","show","active"],[3,"productsChange","contactsChange","options","products","contacts"],["id","masking","aria-labelledby","masking-tab","role","tabpanel",1,"tab-pane","fade","mt-0","p-7"],[3,"stringPrefixMaskChange","stringSuffixMaskChange","stringPrefixMask","stringSuffixMask"]],template:function(i,t){i&1&&N(0,re,18,8,"mainpanel-cmp",0),i&2&&O(t.formData?0:-1)},dependencies:[Z,Y,x,_],encapsulation:2})};export{ie as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as A}from"./chunk-3PC6CTVP.js";import{a as z}from"./chunk-AFBBEIKR.js";import{b as W}from"./chunk-GI7KMXBX.js";import{a as N,c as j,d as $,e as G,g as Z}from"./chunk-M43HNBJQ.js";import{b as L,c as B}from"./chunk-C4WJKF7R.js";import{a as V}from"./chunk-USJ6ILEE.js";import{$b as k,Ab as T,Bb as O,Bc as F,Ca as I,Cb as C,Db as a,Dc as S,Eb as m,Fb as v,Lc as R,Mb as f,Ob as u,Pc as x,Qb as r,Sa as M,Xa as p,Ya as _,dc as b,fc as D,gc as U,hb as h,pa as E,ta as d,ua as s,vb as c,xb as g,zb as P}from"./chunk-JYZTRN6N.js";import{k as y}from"./chunk-SNAKHGZS.js";function Y(t,i){if(t&1){let e=f();a(0,"img",7),u("error",function(o){d(e);let l=r();return s(l.onImageError(o))}),m()}if(t&2){let e=r();k("display",e.isImageError()?"none":"block"),C("src",e.imageThumbnail(),M)}}function ee(t,i){t&1&&(a(0,"div",3),v(1,"i",8),m())}function te(t,i){if(t&1){let e=f();a(0,"a",11),u("click",function(o){return d(e),r(2).onEdit(o),s(o.stopPropagation())}),v(1,"i",12),m(),v(2,"div",13)}if(t&2){let e=r(2);C("matTooltip",e.editBtntooltip())}}function ie(t,i){if(t&1){let e=f();a(0,"a",14),u("click",function(o){return d(e),r(2).onRemove(),s(o.stopPropagation())}),v(1,"i",15),m()}if(t&2){let e=r(2);C("matTooltip",e.removeBtntooltip())}}function ne(t,i){if(t&1){let e=f();a(0,"div",9),u("click",function(o){return d(e),s(o.stopPropagation())}),c(1,te,3,1),c(2,ie,2,1,"a",10),m()}if(t&2){let e=r();p(),g(e.showEdit?1:-1),p(),g(e.showRemove?2:-1)}}function oe(t,i){if(t&1&&(a(0,"div",6),b(1),F(2,"limitText"),m()),t&2){let e,n=r();C("matTooltip",((e=n.title())==null?null:e.length)>15?n.title().Display:""),p(),D(" ",S(2,2,n.title(),15)," ")}}var be=BiggerPicture({target:document.body}),w=class t{biggerPicService=E(A);title=x(null);imageThumbnail=x(null);imageUrl=x(null);showEdit=!0;showRemove=!0;onEditEvent=new _;onRemoveEvent=new _;removeBtntooltip=x("Remove Image");editBtntooltip=x("Crop Image");isImageError=I(!1);constructor(){R(()=>{this.imageUrl()&&this.isImageError.set(!1)},{allowSignalWrites:!0})}onEdit(i){this.onEditEvent.emit(i)}onRemove(){this.onRemoveEvent.emit()}onZoom(i,e){return y(this,null,function*(){V.IsNotEmpty(i)&&this.isImageError()==!1&&this.biggerPicService.openBiggerPicture(e,i)})}onImageError(i){this.isImageError.set(!0)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=h({type:t,selectors:[["image-container"]],inputs:{title:[1,"title"],imageThumbnail:[1,"imageThumbnail"],imageUrl:[1,"imageUrl"],showEdit:"showEdit",showRemove:"showRemove",removeBtntooltip:[1,"removeBtntooltip"],editBtntooltip:[1,"editBtntooltip"]},outputs:{onEditEvent:"onEdit",onRemoveEvent:"onRemove"},decls:7,vars:4,consts:[[1,"image_temporary","productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[1,"imgUpload",3,"src","display"],[1,"imgUpload","d-flex","align-items-center","justify-content-center"],[1,"overlay","pointer",3,"click"],[1,"overlay-title","overlay-actions","d-flex","justify-content-center","align-items-center",2,"column-gap","24px"],[1,"overlay-img-title",3,"matTooltip"],[1,"imgUpload",3,"error","src"],[1,"fa-solid","fa-image","text-secondary","pb-4",2,"font-size","40px"],[1,"overlay-title","overlay-actions","d-flex","justify-content-center","align-items-center",2,"column-gap","24px",3,"click"],["matTooltipPosition","above",1,"trash-icon","image_upload_icon","pointer","cursor-pointer",3,"matTooltip"],["matTooltipPosition","above",1,"edit-icon","image_upload_icon","cursor-pointer",3,"click","matTooltip"],[1,"fa","fa-file-pen"],[2,"width","2px","height","20px","background-color","white"],["matTooltipPosition","above",1,"trash-icon","image_upload_icon","pointer","cursor-pointer",3,"click","matTooltip"],[1,"fa","fa-trash"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"div",1),c(2,Y,1,3,"img",2),c(3,ee,2,0,"div",3),a(4,"div",4),u("click",function(l){return n.onZoom(n.imageUrl(),l)}),c(5,ne,3,2,"div",5),m(),c(6,oe,3,5,"div",6),m()()),e&2&&(p(2),g(n.imageUrl()?2:-1),p(),g(!n.imageUrl()||n.isImageError()?3:-1),p(2),g(n.showEdit||n.showRemove?5:-1),p(),g(n.title()?6:-1))},dependencies:[B,L,z],styles:[".image_temporary[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:#fff;border:1px solid #dde2f0;border-radius:6px;cursor:auto}.productUpload_defaultSize[_ngcontent-%COMP%]{width:140px;height:140px}.imgUpload[_ngcontent-%COMP%]{position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;object-fit:scale-down}.imgContainer[_ngcontent-%COMP%]{width:95px;height:95px}.image_upload_icon[_ngcontent-%COMP%]{font-size:20px;color:#fff}.image-upload[_ngcontent-%COMP%]{border:1px solid #dde2f0;position:relative}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;opacity:0;transition:.3s ease;background-color:#6e6e6e9a;border:1px solid rgba(110,110,110,.603);border-radius:6px}.imgContainer[_ngcontent-%COMP%]:hover .overlay[_ngcontent-%COMP%]{opacity:1}.imgContainer[_ngcontent-%COMP%]:hover div.overlay-img-title[_ngcontent-%COMP%]{display:none}.overlay-title[_ngcontent-%COMP%], .overlay-img-title[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;background:#00000080;width:100%;transition:.5s ease;opacity:1;color:#fff;font-size:12px;padding-top:0;text-align:center;border:1px solid rgba(88,88,88,.5);border-bottom-right-radius:6px;border-bottom-left-radius:6px}.trash-icon[_ngcontent-%COMP%]{color:#fff;font-size:18px;text-align:center;cursor:pointer}fieldset[_ngcontent-%COMP%], legend[_ngcontent-%COMP%]{all:revert}legend[_ngcontent-%COMP%]{color:#9da2a6!important}.fa-upload[_ngcontent-%COMP%]{position:absolute;top:74px;font-size:14px;right:39px;background:#fff;padding:5px;border-radius:15px;box-shadow:1px 1px 5px}"]})};function re(t,i){if(t&1&&(a(0,"legend",3)(1,"span"),b(2),m()()),t&2){let e=r();p(2),U("Image ",e.totalImagesLength,"/",e.maxFile)}}function ae(t,i){if(t&1){let e=f();a(0,"POS-uppy",9),u("multipleFilesUploaded",function(o){d(e);let l=r();return s(l.onUploadFile(o))})("fileRemoved",function(o){d(e);let l=r();return s(l.removeImage(o))}),m()}if(t&2){let e=r();C("uppyCoreConfiguration",e.uppyCoreConfiguration)}}function le(t,i){if(t&1){let e=f();a(0,"div",10),u("cdkDropListDropped",function(o){d(e);let l=r();return s(l.drop(o))}),a(1,"image-container",11),u("onEdit",function(o){let l=d(e),H=l.$implicit,J=l.$index,K=r();return s(K.onEdit(H.ImageUrl,J,o))})("onRemove",function(){let o=d(e).$index,l=r();return s(l.onRemove(o))}),m()()}if(t&2){let e=i.$implicit,n=i.$index,o=r();C("cdkDropListData",n),p(),C("imageThumbnail",e.Thumbnail||e.ImageUrl)("imageUrl",e.ImageUrl)("showEdit",o.showEdit)}}var q=class t{totalImagesLength=0;uppyCoreConfiguration;images=[];showLegend=!0;showEdit=!1;maxFile=0;onUploadEvent=new _;onRemoveEvent=new _;onEditEvent=new _;uploadFiles=new _;removeFile=new _;constructor(){}onUpload(){this.onUploadEvent.emit()}onRemove(i){this.onRemoveEvent.emit(i)}onEdit(i,e,n){this.onEditEvent.emit({imageUrl:i,index:e,element:n})}onUploadFile(i){this.uploadFiles.emit(i)}removeImage(i){this.removeFile.emit(i)}drop(i){N(this.images,i.previousContainer.data,i.container.data),console.log(this.images)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=h({type:t,selectors:[["multiple-images-container"]],inputs:{totalImagesLength:"totalImagesLength",uppyCoreConfiguration:"uppyCoreConfiguration",images:"images",showLegend:"showLegend",showEdit:"showEdit",maxFile:"maxFile"},outputs:{onUploadEvent:"onUpload",onRemoveEvent:"onRemove",onEditEvent:"onEdit",uploadFiles:"uploadFiles",removeFile:"removeFile"},decls:10,vars:2,consts:[[1,"row"],[1,"col-12"],[1,"form-group","p-3","border","rounded"],[1,"w-auto","px-2","text-secondary"],[1,"row","mt-3"],[1,"col-md-12"],[3,"uppyCoreConfiguration"],["cdkDropListGroup","",1,"upload_trigger","d-flex","align-items-center","justify-content-center","my-5"],["cdkDropList","","cdkDropListOrientation","horizontal",3,"cdkDropListData"],[3,"multipleFilesUploaded","fileRemoved","uppyCoreConfiguration"],["cdkDropList","","cdkDropListOrientation","horizontal",3,"cdkDropListDropped","cdkDropListData"],["cdkDrag","",3,"onEdit","onRemove","imageThumbnail","imageUrl","showEdit"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"div",1)(2,"fieldset",2),c(3,re,3,2,"legend",3),a(4,"div",4)(5,"div",5),c(6,ae,1,1,"POS-uppy",6),a(7,"div",7),T(8,le,2,4,"div",8,P),m()()()()()()),e&2&&(p(3),g(n.showLegend?3:-1),p(3),g(n.images.length!=n.maxFile?6:-1),p(2),O(n.images))},dependencies:[w,W,Z,G,$,j],styles:[".upload_trigger[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;vertical-align:top;width:100%}.image_temporary[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:#fff;border:1px solid #dde2f0;border-radius:6px;cursor:auto}.productUpload_defaultSize[_ngcontent-%COMP%]{width:140px;height:140px}.imgUpload[_ngcontent-%COMP%]{position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;object-fit:scale-down}.imgContainer[_ngcontent-%COMP%]{width:95px;height:95px}.image-upload[_ngcontent-%COMP%]{border:1px solid #dde2f0;position:relative}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;opacity:0;transition:.3s ease;background-color:#6e6e6e9a;border:1px solid rgba(110,110,110,.603);border-radius:6px}.imgContainer[_ngcontent-%COMP%]:hover .overlay[_ngcontent-%COMP%]{opacity:1}.overlay-title[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;background:#00000080;width:100%;transition:.5s ease;opacity:1;color:#fff;font-size:12px;padding-top:0;text-align:center;border:1px solid rgba(88,88,88,.5);border-bottom-right-radius:6px;border-bottom-left-radius:6px}@media only screen and (max-width: 650px){.upload_trigger[_ngcontent-%COMP%]{flex-wrap:wrap;margin-top:.625rem!important;justify-content:center}}@media only screen and (min-device-width: 768px) and (max-device-width: 1112px){.upload_trigger[_ngcontent-%COMP%]{flex-wrap:wrap;margin-top:.625rem!important;justify-content:center}}fieldset[_ngcontent-%COMP%], legend[_ngcontent-%COMP%]{all:revert}legend[_ngcontent-%COMP%]{color:#9da2a6!important}.fa-upload[_ngcontent-%COMP%]{position:absolute;top:74px;font-size:14px;right:39px;background:#fff;padding:5px;border-radius:15px;box-shadow:1px 1px 5px}"]})};export{w as a,q as b};
|
|
1
|
+
import{a as A}from"./chunk-3PC6CTVP.js";import{a as z}from"./chunk-AFBBEIKR.js";import{b as W}from"./chunk-P3SYBLK4.js";import{a as N,c as j,d as $,e as G,g as Z}from"./chunk-M43HNBJQ.js";import{b as L,c as B}from"./chunk-C4WJKF7R.js";import{a as V}from"./chunk-USJ6ILEE.js";import{$b as k,Ab as T,Bb as O,Bc as F,Ca as I,Cb as C,Db as a,Dc as S,Eb as m,Fb as v,Lc as R,Mb as f,Ob as u,Pc as x,Qb as r,Sa as M,Xa as p,Ya as _,dc as b,fc as D,gc as U,hb as h,pa as E,ta as d,ua as s,vb as c,xb as g,zb as P}from"./chunk-JYZTRN6N.js";import{k as y}from"./chunk-SNAKHGZS.js";function Y(t,i){if(t&1){let e=f();a(0,"img",7),u("error",function(o){d(e);let l=r();return s(l.onImageError(o))}),m()}if(t&2){let e=r();k("display",e.isImageError()?"none":"block"),C("src",e.imageThumbnail(),M)}}function ee(t,i){t&1&&(a(0,"div",3),v(1,"i",8),m())}function te(t,i){if(t&1){let e=f();a(0,"a",11),u("click",function(o){return d(e),r(2).onEdit(o),s(o.stopPropagation())}),v(1,"i",12),m(),v(2,"div",13)}if(t&2){let e=r(2);C("matTooltip",e.editBtntooltip())}}function ie(t,i){if(t&1){let e=f();a(0,"a",14),u("click",function(o){return d(e),r(2).onRemove(),s(o.stopPropagation())}),v(1,"i",15),m()}if(t&2){let e=r(2);C("matTooltip",e.removeBtntooltip())}}function ne(t,i){if(t&1){let e=f();a(0,"div",9),u("click",function(o){return d(e),s(o.stopPropagation())}),c(1,te,3,1),c(2,ie,2,1,"a",10),m()}if(t&2){let e=r();p(),g(e.showEdit?1:-1),p(),g(e.showRemove?2:-1)}}function oe(t,i){if(t&1&&(a(0,"div",6),b(1),F(2,"limitText"),m()),t&2){let e,n=r();C("matTooltip",((e=n.title())==null?null:e.length)>15?n.title().Display:""),p(),D(" ",S(2,2,n.title(),15)," ")}}var be=BiggerPicture({target:document.body}),w=class t{biggerPicService=E(A);title=x(null);imageThumbnail=x(null);imageUrl=x(null);showEdit=!0;showRemove=!0;onEditEvent=new _;onRemoveEvent=new _;removeBtntooltip=x("Remove Image");editBtntooltip=x("Crop Image");isImageError=I(!1);constructor(){R(()=>{this.imageUrl()&&this.isImageError.set(!1)},{allowSignalWrites:!0})}onEdit(i){this.onEditEvent.emit(i)}onRemove(){this.onRemoveEvent.emit()}onZoom(i,e){return y(this,null,function*(){V.IsNotEmpty(i)&&this.isImageError()==!1&&this.biggerPicService.openBiggerPicture(e,i)})}onImageError(i){this.isImageError.set(!0)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=h({type:t,selectors:[["image-container"]],inputs:{title:[1,"title"],imageThumbnail:[1,"imageThumbnail"],imageUrl:[1,"imageUrl"],showEdit:"showEdit",showRemove:"showRemove",removeBtntooltip:[1,"removeBtntooltip"],editBtntooltip:[1,"editBtntooltip"]},outputs:{onEditEvent:"onEdit",onRemoveEvent:"onRemove"},decls:7,vars:4,consts:[[1,"image_temporary","productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[1,"imgUpload",3,"src","display"],[1,"imgUpload","d-flex","align-items-center","justify-content-center"],[1,"overlay","pointer",3,"click"],[1,"overlay-title","overlay-actions","d-flex","justify-content-center","align-items-center",2,"column-gap","24px"],[1,"overlay-img-title",3,"matTooltip"],[1,"imgUpload",3,"error","src"],[1,"fa-solid","fa-image","text-secondary","pb-4",2,"font-size","40px"],[1,"overlay-title","overlay-actions","d-flex","justify-content-center","align-items-center",2,"column-gap","24px",3,"click"],["matTooltipPosition","above",1,"trash-icon","image_upload_icon","pointer","cursor-pointer",3,"matTooltip"],["matTooltipPosition","above",1,"edit-icon","image_upload_icon","cursor-pointer",3,"click","matTooltip"],[1,"fa","fa-file-pen"],[2,"width","2px","height","20px","background-color","white"],["matTooltipPosition","above",1,"trash-icon","image_upload_icon","pointer","cursor-pointer",3,"click","matTooltip"],[1,"fa","fa-trash"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"div",1),c(2,Y,1,3,"img",2),c(3,ee,2,0,"div",3),a(4,"div",4),u("click",function(l){return n.onZoom(n.imageUrl(),l)}),c(5,ne,3,2,"div",5),m(),c(6,oe,3,5,"div",6),m()()),e&2&&(p(2),g(n.imageUrl()?2:-1),p(),g(!n.imageUrl()||n.isImageError()?3:-1),p(2),g(n.showEdit||n.showRemove?5:-1),p(),g(n.title()?6:-1))},dependencies:[B,L,z],styles:[".image_temporary[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:#fff;border:1px solid #dde2f0;border-radius:6px;cursor:auto}.productUpload_defaultSize[_ngcontent-%COMP%]{width:140px;height:140px}.imgUpload[_ngcontent-%COMP%]{position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;object-fit:scale-down}.imgContainer[_ngcontent-%COMP%]{width:95px;height:95px}.image_upload_icon[_ngcontent-%COMP%]{font-size:20px;color:#fff}.image-upload[_ngcontent-%COMP%]{border:1px solid #dde2f0;position:relative}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;opacity:0;transition:.3s ease;background-color:#6e6e6e9a;border:1px solid rgba(110,110,110,.603);border-radius:6px}.imgContainer[_ngcontent-%COMP%]:hover .overlay[_ngcontent-%COMP%]{opacity:1}.imgContainer[_ngcontent-%COMP%]:hover div.overlay-img-title[_ngcontent-%COMP%]{display:none}.overlay-title[_ngcontent-%COMP%], .overlay-img-title[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;background:#00000080;width:100%;transition:.5s ease;opacity:1;color:#fff;font-size:12px;padding-top:0;text-align:center;border:1px solid rgba(88,88,88,.5);border-bottom-right-radius:6px;border-bottom-left-radius:6px}.trash-icon[_ngcontent-%COMP%]{color:#fff;font-size:18px;text-align:center;cursor:pointer}fieldset[_ngcontent-%COMP%], legend[_ngcontent-%COMP%]{all:revert}legend[_ngcontent-%COMP%]{color:#9da2a6!important}.fa-upload[_ngcontent-%COMP%]{position:absolute;top:74px;font-size:14px;right:39px;background:#fff;padding:5px;border-radius:15px;box-shadow:1px 1px 5px}"]})};function re(t,i){if(t&1&&(a(0,"legend",3)(1,"span"),b(2),m()()),t&2){let e=r();p(2),U("Image ",e.totalImagesLength,"/",e.maxFile)}}function ae(t,i){if(t&1){let e=f();a(0,"POS-uppy",9),u("multipleFilesUploaded",function(o){d(e);let l=r();return s(l.onUploadFile(o))})("fileRemoved",function(o){d(e);let l=r();return s(l.removeImage(o))}),m()}if(t&2){let e=r();C("uppyCoreConfiguration",e.uppyCoreConfiguration)}}function le(t,i){if(t&1){let e=f();a(0,"div",10),u("cdkDropListDropped",function(o){d(e);let l=r();return s(l.drop(o))}),a(1,"image-container",11),u("onEdit",function(o){let l=d(e),H=l.$implicit,J=l.$index,K=r();return s(K.onEdit(H.ImageUrl,J,o))})("onRemove",function(){let o=d(e).$index,l=r();return s(l.onRemove(o))}),m()()}if(t&2){let e=i.$implicit,n=i.$index,o=r();C("cdkDropListData",n),p(),C("imageThumbnail",e.Thumbnail||e.ImageUrl)("imageUrl",e.ImageUrl)("showEdit",o.showEdit)}}var q=class t{totalImagesLength=0;uppyCoreConfiguration;images=[];showLegend=!0;showEdit=!1;maxFile=0;onUploadEvent=new _;onRemoveEvent=new _;onEditEvent=new _;uploadFiles=new _;removeFile=new _;constructor(){}onUpload(){this.onUploadEvent.emit()}onRemove(i){this.onRemoveEvent.emit(i)}onEdit(i,e,n){this.onEditEvent.emit({imageUrl:i,index:e,element:n})}onUploadFile(i){this.uploadFiles.emit(i)}removeImage(i){this.removeFile.emit(i)}drop(i){N(this.images,i.previousContainer.data,i.container.data),console.log(this.images)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=h({type:t,selectors:[["multiple-images-container"]],inputs:{totalImagesLength:"totalImagesLength",uppyCoreConfiguration:"uppyCoreConfiguration",images:"images",showLegend:"showLegend",showEdit:"showEdit",maxFile:"maxFile"},outputs:{onUploadEvent:"onUpload",onRemoveEvent:"onRemove",onEditEvent:"onEdit",uploadFiles:"uploadFiles",removeFile:"removeFile"},decls:10,vars:2,consts:[[1,"row"],[1,"col-12"],[1,"form-group","p-3","border","rounded"],[1,"w-auto","px-2","text-secondary"],[1,"row","mt-3"],[1,"col-md-12"],[3,"uppyCoreConfiguration"],["cdkDropListGroup","",1,"upload_trigger","d-flex","align-items-center","justify-content-center","my-5"],["cdkDropList","","cdkDropListOrientation","horizontal",3,"cdkDropListData"],[3,"multipleFilesUploaded","fileRemoved","uppyCoreConfiguration"],["cdkDropList","","cdkDropListOrientation","horizontal",3,"cdkDropListDropped","cdkDropListData"],["cdkDrag","",3,"onEdit","onRemove","imageThumbnail","imageUrl","showEdit"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"div",1)(2,"fieldset",2),c(3,re,3,2,"legend",3),a(4,"div",4)(5,"div",5),c(6,ae,1,1,"POS-uppy",6),a(7,"div",7),T(8,le,2,4,"div",8,P),m()()()()()()),e&2&&(p(3),g(n.showLegend?3:-1),p(3),g(n.images.length!=n.maxFile?6:-1),p(2),O(n.images))},dependencies:[w,W,Z,G,$,j],styles:[".upload_trigger[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;vertical-align:top;width:100%}.image_temporary[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:#fff;border:1px solid #dde2f0;border-radius:6px;cursor:auto}.productUpload_defaultSize[_ngcontent-%COMP%]{width:140px;height:140px}.imgUpload[_ngcontent-%COMP%]{position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;object-fit:scale-down}.imgContainer[_ngcontent-%COMP%]{width:95px;height:95px}.image-upload[_ngcontent-%COMP%]{border:1px solid #dde2f0;position:relative}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;opacity:0;transition:.3s ease;background-color:#6e6e6e9a;border:1px solid rgba(110,110,110,.603);border-radius:6px}.imgContainer[_ngcontent-%COMP%]:hover .overlay[_ngcontent-%COMP%]{opacity:1}.overlay-title[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;background:#00000080;width:100%;transition:.5s ease;opacity:1;color:#fff;font-size:12px;padding-top:0;text-align:center;border:1px solid rgba(88,88,88,.5);border-bottom-right-radius:6px;border-bottom-left-radius:6px}@media only screen and (max-width: 650px){.upload_trigger[_ngcontent-%COMP%]{flex-wrap:wrap;margin-top:.625rem!important;justify-content:center}}@media only screen and (min-device-width: 768px) and (max-device-width: 1112px){.upload_trigger[_ngcontent-%COMP%]{flex-wrap:wrap;margin-top:.625rem!important;justify-content:center}}fieldset[_ngcontent-%COMP%], legend[_ngcontent-%COMP%]{all:revert}legend[_ngcontent-%COMP%]{color:#9da2a6!important}.fa-upload[_ngcontent-%COMP%]{position:absolute;top:74px;font-size:14px;right:39px;background:#fff;padding:5px;border-radius:15px;box-shadow:1px 1px 5px}"]})};export{w as a,q as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{O as b}from"./chunk-
|
|
1
|
+
import{O as b}from"./chunk-T25N3EEG.js";import{a as m}from"./chunk-2FWFPV5I.js";import{a as u}from"./chunk-FSBKLNRT.js";import{be as d,ee as h,la as n,pa as c}from"./chunk-JYZTRN6N.js";import{k as l}from"./chunk-SNAKHGZS.js";var p=class a{constructor(){}copy(t){return new Promise((o,r)=>{try{if(navigator.clipboard)navigator.clipboard.writeText(t).then(o,r);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")?o():r(new Error("Failed to copy with execCommand"))}catch(i){r(i)}finally{document.body.removeChild(e)}}}catch(e){r(e)}})}static \u0275fac=function(o){return new(o||a)};static \u0275prov=n({token:a,factory:a.\u0275fac,providedIn:"root"})};var y=class a{toastr=c(d);httpService=c(h);copyToClipBoard=c(p);createCustomerFromNewNumberAndSendReceipt(t,o,r,e,i){r==0?this.httpService.post(b.CreateCustomerInvoice,{InvoiceID:e.ObjectID,Mobile:t}).subscribe(s=>l(this,null,function*(){this.toastr.success(s.Message,m.Success),yield this.sendReceiptToWhatsapp(t,e,o,i)})):this.toastr.info("WABA is not supported yet",m.Info)}createWhatsappReceipt(t,o,r){let e=I=>new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(I).replace("Rp","").trim().split(",00")?.[0],i=JSON.parse(localStorage.getItem("AccountInfo"))?.BrandName,{ObjectID:s,Final:g,InvoiceNumber:f}=t,v=window.location.host,w=`https://receipt.dealpos.app/s?Data=${window.btoa(`${s}_${v}`)}`;return this.convertWhatsappTemplateMessage({Amount:e(g),Brand:i,Currency:o,Number:f,ReceiptLink:w},r)}convertWhatsappTemplateMessage(t,o){let r=o||u?.whatsappTemplateMessage,e=["Brand","Number","Currency","Amount","ReceiptLink"],i=r;return e.forEach(s=>i=i.replace(`{${s}}`,t[s])),i}redirectToWhatsapp(t,o){let r=t;r=r[0]==="0"?`62${r.slice(1)}`:r;let e=`whatsapp://send?phone=${r}&text=${encodeURIComponent(o)}`;window.location.href=e,this.showToastrWhatsappNoInstalled()}showToastrWhatsappNoInstalled(){let t=!1;window.onblur=function(){t=!0},setTimeout(()=>{t||this.toastr.warning(`Currently, sending an e-receipt automatically opens WhatsApp Desktop, provided the device has the app installed
|
|
2
2
|
`,"WhatsApp not installed")},2e3)}copyToClipboard(t){return new Promise((o,r)=>this.copyToClipBoard.copy(t).then(()=>{this.toastr.info("Message copied to clipboard. If WhatsApp doesn't show the message, please paste it manually.","Receipt Ready",{timeOut:8e3}),o("Copied to clipboard")}).catch(e=>{console.log(e),this.toastr.warning("Could not copy message to clipboard","Clipboard Error",{timeOut:8e3}),r(e)}))}sendReceiptToWhatsapp(t,o,r,e){return l(this,null,function*(){try{let i=this.createWhatsappReceipt(o,r,e);try{yield this.copyToClipboard(i)}finally{this.redirectToWhatsapp(t,i)}}catch(i){console.warn(i),this.toastr.error("Failed to send receipt")}})}static \u0275fac=function(o){return new(o||a)};static \u0275prov=n({token:a,factory:a.\u0275fac})};export{y as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as et}from"./chunk-XACC6EMJ.js";import{a as it,b as ye}from"./chunk-Q2A4MYK3.js";import{b as nt,c as ve}from"./chunk-
|
|
1
|
+
import{a as et}from"./chunk-XACC6EMJ.js";import{a as it,b as ye}from"./chunk-Q2A4MYK3.js";import{b as nt,c as ve}from"./chunk-3FYNWZYY.js";import{a as tt}from"./chunk-TGEQUV6Z.js";import{d as be}from"./chunk-CS6HBROS.js";import{b as Ue,c as Ye,d as Ie,e as Je,k as fe,l as ge}from"./chunk-L76WVZW6.js";import{$ as xe,C as Ze,D as pe,G as qe,K as Ge,M as He,S as _e,V as b,_ as he,fa as Qe,g as de,la as je,m as ze,oa as We,pa as z,r as Re,w as $,x as N,xa as Xe}from"./chunk-O5SLP4JK.js";import{$d as ue,Ca as S,Cb as a,Db as x,Eb as I,Fb as f,Hc as se,Ia as Ee,Id as me,Ja as Pe,Jb as V,Jd as le,Kb as B,Kc as Oe,Lc as Ae,Ld as K,Mb as F,Ob as L,Od as D,Pc as Ke,Qa as Y,Qb as r,Sa as Se,Tb as G,Ub as H,Vb as C,Wb as T,Xa as m,Xc as w,Ya as g,Yc as E,Zd as Ne,_b as Q,bc as U,cb as ke,cc as l,db as k,dc as ne,ed as De,fc as ie,fd as re,hb as J,ib as Ve,id as ae,jd as $e,ka as we,la as Me,lb as ee,ma as Le,na as W,nb as _,pa as P,rd as ce,sb as te,sc as oe,sd as A,ta as d,tb as h,tc as O,ua as p,uc as Be,va as X,vc as Fe}from"./chunk-JYZTRN6N.js";import{a as Z,b as q}from"./chunk-SNAKHGZS.js";var ot=`
|
|
2
2
|
.p-contextmenu {
|
|
3
3
|
background: dt('contextmenu.background');
|
|
4
4
|
color: dt('contextmenu.color');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as L}from"./chunk-CS6HBROS.js";import{c as ve,j as Se,k as C,l as _e}from"./chunk-L76WVZW6.js";import{X as xe,Y as ge,oa as Ce,pa as F,xa as ye}from"./chunk-O5SLP4JK.js";import{a as me,g as ke}from"./chunk-RNLSEEMX.js";import{a as be,c as fe}from"./chunk-
|
|
1
|
+
import{a as L}from"./chunk-CS6HBROS.js";import{c as ve,j as Se,k as C,l as _e}from"./chunk-L76WVZW6.js";import{X as xe,Y as ge,oa as Ce,pa as F,xa as ye}from"./chunk-O5SLP4JK.js";import{a as me,g as ke}from"./chunk-RNLSEEMX.js";import{a as be,c as fe}from"./chunk-BVZ7ACQM.js";import{a as H}from"./chunk-USJ6ILEE.js";import{$d as he,Ca as Y,Cb as c,Db as m,Eb as k,Fb as M,Ia as h,Ib as E,Jb as A,Kb as O,Kc as ae,Mb as W,Ob as ee,Pc as j,Qb as u,Tb as R,Ub as te,Vb as B,Wb as w,Xa as a,Xc as g,Ya as _,Yc as se,Yd as ue,Zd as pe,bc as ne,cc as l,cd as D,db as I,dc as T,fc as ie,fd as le,hb as d,ib as K,jd as de,ka as P,la as $,lb as b,ma as q,mb as X,na as G,nb as x,pa as y,rd as N,sc as oe,ta as v,tb as z,tc as ce,ua as S,uc as V,va as p,vb as Z,vc as re,xb as J,ya as U}from"./chunk-JYZTRN6N.js";var Ne=e=>({"pe-none":e}),Fe=()=>["/menu/Profile/Main/My_Subscription"],Le=e=>({"text-decoration-none":e}),ze=e=>({"text-capitalize":e});function Ae(e,o){if(e&1&&(m(0,"div",1)(1,"h5",2),T(2),m(3,"a",3)(4,"u",4)(5,"span",4),T(6,"please"),k(),T(7," process your payment! "),k()()()()),e&2){let t=u();l("alert rounded-0 mb-0 text-center border-bottom "+(t.subscriptionState==null?null:t.subscriptionState.class)),a(2),ie(" ",t.subscriptionState==null?null:t.subscriptionState.message," "),a(),c("ngClass",V(7,Ne,t.isMySubscriptionMenu))("routerLink",ce(9,Fe)),a(),c("ngClass",V(10,Le,t.isMySubscriptionMenu)),a(),c("ngClass",V(12,ze,t.isNotEmpty(t.currentSubStatus)&&t.currentSubStatus!=t.subsStatusEnum.OVERDUE))}}var Ie=class e{constructor(o,t,i){this.document=o;this.router=t;this.authService=i}subscriptionStatus;subscriptionState;currentSubStatus;subsStatusEnum=be;isMySubscriptionMenu;htmlStyleElement;htmlBodyElement;ngOnInit(){this.checkMySubscriptionMenu(),this.initSubscriptionStatus(),this.getCurrentSubscriptionStatus()}getCurrentSubscriptionStatus(){this.overrideCssStickyHeader()}checkMySubscriptionMenu(){this.isMySubscriptionMenu=!1,this.router.url.includes("/Profile/Main/My_Subscription")&&(this.isMySubscriptionMenu=!0)}isNotEmpty(o){return H.IsNotEmpty(o)}overrideCssStickyHeader(){if(H.IsNotEmpty(this.currentSubStatus)&&this.currentSubStatus!==0){let o=`.sticky-top-thead th {
|
|
2
2
|
top: 100px !important;
|
|
3
3
|
z-index: 1020;
|
|
4
4
|
}`;this.htmlBodyElement=this.document.getElementsByTagName("body")[0],this.htmlStyleElement=this.document.createElement("style"),this.htmlStyleElement.appendChild(this.document.createTextNode(o)),this.htmlBodyElement.appendChild(this.htmlStyleElement)}}initSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus(),this.subscriptionStatus=[{status:1,class:"alert-warning",message:"Your subscription is overdue. To avoid suspension, "},{status:2,class:"alert-danger",message:"Your subscription is partially suspended."},{status:3,class:"alert-danger",message:"Your subscription is suspended."}],this.subscriptionState=this.subscriptionStatus.filter(o=>o.status==this.currentSubStatus)[0]}ngOnDestroy(){this.htmlBodyElement&&this.htmlBodyElement.removeChild(this.htmlStyleElement)}static \u0275fac=function(t){return new(t||e)(I(U),I(ue),I(fe))};static \u0275cmp=d({type:e,selectors:[["subscription-alert"]],decls:1,vars:1,consts:[["role","alert",3,"class"],["role","alert"],[1,"fw-normal"],[1,"alert-link",3,"ngClass","routerLink"],[3,"ngClass"]],template:function(t,i){t&1&&Z(0,Ae,8,14,"div",0),t&2&&J((i.subscriptionState==null?null:i.subscriptionState.status)==i.currentSubStatus&&i.isNotEmpty(i.currentSubStatus)?0:-1)},dependencies:[N,D,he,pe],encapsulation:2})};var Oe=["data-p-icon","check"],Me=(()=>{class e extends L{static \u0275fac=(()=>{let t;return function(n){return(t||(t=h(e)))(n||e)}})();static \u0275cmp=d({type:e,selectors:[["","data-p-icon","check"]],features:[b],attrs:Oe,decls:1,vars:0,consts:[["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(i,n){i&1&&(p(),E(0,"path",0))},encapsulation:2})}return e})();var Re=["data-p-icon","minus"],Ee=(()=>{class e extends L{static \u0275fac=(()=>{let t;return function(n){return(t||(t=h(e)))(n||e)}})();static \u0275cmp=d({type:e,selectors:[["","data-p-icon","minus"]],features:[b],attrs:Re,decls:1,vars:0,consts:[["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(i,n){i&1&&(p(),E(0,"path",0))},encapsulation:2})}return e})();var Be=`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as R,c as P}from"./chunk-
|
|
1
|
+
import{b as R,c as P}from"./chunk-GN3HVOCN.js";import{u as j,v as G,w as L}from"./chunk-BA3BDB5Y.js";import{e as V,f as A}from"./chunk-A45GTZVV.js";import{F as B}from"./chunk-RNLSEEMX.js";import{Ab as p,Bb as _,Bc as h,Ca as d,Cb as C,Cc as k,Db as a,Dc as E,Eb as r,Fb as x,Mb as F,Ob as M,Qb as l,Xa as o,cc as $,db as y,dc as m,ec as g,fc as D,hb as T,md as O,od as N,pa as I,rd as w,ta as v,ua as b,uc as S,vb as u,xb as f,yb as s}from"./chunk-JYZTRN6N.js";var H=t=>({"text-end":t});function J(t,n){if(t&1&&(a(0,"th"),m(1),r()),t&2){let e=n.$implicit,i=n.$index,c=l();$(S(3,H,e.type=="number")),o(),D(" ",c.headers()[i]," ")}}function K(t,n){if(t&1&&(a(0,"td"),m(1),h(2,"date"),r()),t&2){let e=l().$implicit,i=l().$implicit;o(),g(E(2,1,i[e.field],"dd MMM yyyy"))}}function Q(t,n){if(t&1&&(a(0,"td",7),m(1),h(2,"number"),r()),t&2){let e=l().$implicit,i=l().$implicit;o(),g(k(2,1,i[e.field]))}}function U(t,n){if(t&1&&(a(0,"td"),m(1),r()),t&2){let e=l().$implicit,i=l().$implicit;o(),g(i[e.field])}}function W(t,n){if(t&1&&u(0,K,3,4,"td")(1,Q,3,3,"td",7)(2,U,2,1,"td"),t&2){let e=n.$implicit;f(e.type=="date"?0:e.type=="number"?1:2)}}function X(t,n){if(t&1&&(a(0,"small",6),m(1),r()),t&2){let e=l(2);o(),D("(",e.actionTitle(),")")}}function Y(t,n){if(t&1){let e=F();a(0,"tr")(1,"td")(2,"mat-radio-button",5),M("change",function(){let c=v(e).$implicit,z=l();return b(z.selectedId.set(c.ID))}),r()(),p(3,W,3,1,null,null,s),a(5,"td"),u(6,X,2,1,"small",6),r()()}if(t&2){let e=n.$implicit,i=l();o(2),C("id",e.ID)("checked",i.selectedId()==e.ID)("name",e.ID)("value",e.ID),o(),_(i.columns()),o(3),f(i.selectedId()!=e.ID?6:-1)}}var q=class t{constructor(n){this.dialogData=n;this.data.set(n.data),this.columns.set(n.columns),this.headers.set(n.headers),this.selectedId.set(this.data()[0]?.ID),this.actionTitle.set(n.actionTitle?n.actionTitle:"Deleted"),this.config.title=n.title,this.config.bodyScrollable=!0}dialogRef=I(V);config=new j;selectedId=d(null);data=d([]);actionTitle=d("Deleted");columns=d([]);headers=d([]);onOk(){let n=this.data()?.filter(i=>i.ID!==this.selectedId())?.map(i=>i.ID),e={mergeTarget:this.selectedId(),deleted:n};this.dialogRef.close(e)}onClose(){this.dialogRef.close(!1)}static \u0275fac=function(e){return new(e||t)(y(A))};static \u0275cmp=T({type:t,selectors:[["app-merge-dialog"]],decls:12,vars:2,consts:[[3,"onOk","onCancel","onClose","config","dynamicValidated"],[1,"table"],[1,"thead-light"],[2,"width","5px"],[3,"class"],["color","primary",3,"change","id","checked","name","value"],[1,"fst-italic","ms-2","text-danger"],[1,"text-end"]],template:function(e,i){e&1&&(a(0,"modal-material",0),M("onOk",function(){return i.onOk()})("onCancel",function(){return i.onClose()})("onClose",function(){return i.onClose()}),a(1,"content")(2,"table",1)(3,"thead",2)(4,"tr"),x(5,"th",3),p(6,J,2,5,"th",4,s),x(8,"th"),r()(),a(9,"tbody"),p(10,Y,7,5,"tr",null,s),r()()()()),e&2&&(C("config",i.config)("dynamicValidated",i.selectedId()),o(6),_(i.columns()),o(4),_(i.data()))},dependencies:[w,L,G,P,R,B,N,O],styles:[".radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0;align-items:flex-start}.radio-button[_ngcontent-%COMP%]{margin:5px}"]})};export{q as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as st,b as ft}from"./chunk-7P3E5NJO.js";import{a as mt}from"./chunk-IWUWV3MS.js";import{a as _t}from"./chunk-HLML4BKF.js";import{a as ut}from"./chunk-DLNZDHGS.js";import"./chunk-RF5WGONA.js";import"./chunk-BYXBJQAS.js";import{a as $}from"./chunk-HL3ONSX6.js";import{d as dt,e as pt}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 rt,e as lt}from"./chunk-6WEGHV7F.js";import"./chunk-G4IW5GPY.js";import{a as X}from"./chunk-EKORPCX3.js";import{f as ct}from"./chunk-BCD363QF.js";import{b as Z}from"./chunk-KD7WBOUR.js";import"./chunk-GK4I3EKQ.js";import"./chunk-5PUIMWNW.js";import"./chunk-QFON23YX.js";import"./chunk-FIUZN6JU.js";import{a as et}from"./chunk-4QM23MMO.js";import{e as ot,f as at}from"./chunk-BALKIB67.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-5OKSTEWQ.js";import{b as tt}from"./chunk-QRTOTG7S.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-QZMZBCE7.js";import{b as J,c as U}from"./chunk-C4WJKF7R.js";import{N as nt,g as it}from"./chunk-NZYZO47Z.js";import"./chunk-7TBS7SPQ.js";import"./chunk-RLQLFW36.js";import"./chunk-EQLHPWVB.js";import{g as Y}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 z}from"./chunk-RNLSEEMX.js";import"./chunk-H4DUHWPT.js";import"./chunk-ROLAW5XO.js";import{d as Q}from"./chunk-USJ6ILEE.js";import"./chunk-4ZXLS56M.js";import{Ab as N,Bb as j,Bc as d,Cb as s,Cc as f,Db as o,Dc as x,Eb as n,Ed as R,Fb as w,Hc as q,Mb as P,Ob as h,Qb as c,Xa as i,Zd as H,db as T,dc as r,ec as D,ee as K,fc as u,fd as W,hb as O,ic as g,jc as I,kc as S,lb as V,nb as E,od as A,rd as G,ta as v,tb as k,tc as b,ua as y,uc as B,vb as p,xb as m,yb as M}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var vt=()=>["/menu/Outlets/Master/Outlets/Info"],Ct=t=>({ID:t}),yt=()=>["/menu/Products/Catalog/Products/Info"];function Tt(t,l){if(t&1){let e=P();o(0,"button",11),h("click",function(){v(e);let a=c();return y(a.openExportModal())}),w(1,"i",12),r(2," Export "),n()}}function gt(t,l){if(t&1){let e=P();o(0,"div",13)(1,"h6"),r(2,"Outlet Group"),n(),o(3,"POS-outlet-group-tree-select",14),S("selectedOutletGroupIDChange",function(a){v(e);let C=c();return I(C.pageData.Filter.OutletGroupID,a)||(C.pageData.Filter.OutletGroupID=a),y(a)}),n(),o(4,"h6"),r(5,"Category"),n(),o(6,"POS-product-category-select",15),S("selectedCategoryIDChange",function(a){v(e);let C=c();return I(C.pageData.Filter.CategoryID,a)||(C.pageData.Filter.CategoryID=a),y(a)}),n(),o(7,"autocompleteV3",16),S("modelNameChange",function(a){v(e);let C=c();return I(C.pageData.Filter.ListProductID,a)||(C.pageData.Filter.ListProductID=a),y(a)}),n(),o(8,"h6"),r(9,"From - To"),n(),o(10,"div")(11,"datepicker",17),S("dateChange",function(a){v(e);let C=c();return I(C.pageData.Filter.From,a)||(C.pageData.Filter.From=a),y(a)}),n()(),o(12,"div",18)(13,"datepicker",19),S("dateChange",function(a){v(e);let C=c();return I(C.pageData.Filter.To,a)||(C.pageData.Filter.To=a),y(a)}),n()(),o(14,"h6"),r(15,"Inventory Type"),n(),o(16,"radio-options",20),S("modelChange",function(a){v(e);let C=c();return I(C.pageData.Filter.InventoryType,a)||(C.pageData.Filter.InventoryType=a),y(a)}),n()()}if(t&2){let e=c();i(3),s("showClear",!0),g("selectedOutletGroupID",e.pageData.Filter.OutletGroupID),i(3),g("selectedCategoryID",e.pageData.Filter.CategoryID),s("showClear",!0),i(),g("modelName",e.pageData.Filter.ListProductID),s("placeholder","Search Product")("isShowEmptyMessage",!0)("emptyMessage","No Product found")("tooltipMessage","Search by product name")("label","Product to Analyze")("listDataEndpoint","/api/ac/GetProductSuggestionByCodeNName")("valueField","Key"),i(4),s("isFloatingLabel",!1),g("date",e.pageData.Filter.From),s("hidelClearBtn",!0),i(2),s("isFloatingLabel",!1),g("date",e.pageData.Filter.To),s("hidelClearBtn",!0),i(3),g("model",e.pageData.Filter.InventoryType),s("options",e.pageData.Options.InventoryTypes)}}function It(t,l){t&1&&(o(0,"th",8),r(1,"Code"),n())}function St(t,l){t&1&&(o(0,"th",9)(1,"span",21),r(2," Start "),n()())}function Pt(t,l){t&1&&(o(0,"th",9)(1,"span",22),r(2," Bought "),n()())}function ht(t,l){t&1&&(o(0,"th",9)(1,"span",23),r(2," Sold "),n()())}function Ft(t,l){t&1&&(o(0,"th",9)(1,"span",24),r(2," T.In "),n()())}function Et(t,l){t&1&&(o(0,"th",9)(1,"span",25),r(2," T.Out "),n()())}function wt(t,l){t&1&&(o(0,"th",9)(1,"span",26),r(2," Adj "),n()())}function Dt(t,l){t&1&&(o(0,"th",9)(1,"span",27),r(2," End "),n()())}function bt(t,l){t&1&&(o(0,"th",9)(1,"span",28),r(2," Now "),n()())}function Bt(t,l){t&1&&(o(0,"th",9)(1,"span",29),r(2," % "),n()())}function Lt(t,l){if(t&1&&(o(0,"td",31),r(1),n()),t&2){let e=c().$implicit;i(),u(" ",e.ProductCode," ")}}function Ot(t,l){if(t&1&&(o(0,"td",32),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;s("colsFontColor",e.Start),i(),u(" ",f(2,2,e.Start)," ")}}function Vt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.Bought)," ")}}function kt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.Sold)," ")}}function Mt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.TransferredIn)," ")}}function Nt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.TransferredOut)," ")}}function jt(t,l){if(t&1&&(o(0,"td",32),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;s("colsFontColor",e.Adjustment),i(),u(" ",e.Adjustment<0?e.Adjustment*-1:f(2,2,e.Adjustment)," ")}}function qt(t,l){if(t&1&&(o(0,"td",32),r(1),n()),t&2){let e=c().$implicit;s("colsFontColor",e.End),i(),u(" ",e.End," ")}}function Wt(t,l){if(t&1&&(o(0,"td",32),r(1),n()),t&2){let e=c().$implicit;s("colsFontColor",e.Now),i(),u(" ",e.Now," ")}}function At(t,l){if(t&1&&(o(0,"td",31),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.SellTransferInRate)," ")}}function Gt(t,l){if(t&1&&(o(0,"tr")(1,"td")(2,"a",30),r(3),n()(),o(4,"td")(5,"a",30),r(6),n()(),p(7,Lt,2,1,"td",31),p(8,Ot,3,4,"td",32),p(9,Vt,3,3,"td",33),p(10,kt,3,3,"td",34),p(11,Mt,3,3,"td",33),p(12,Nt,3,3,"td",34),p(13,jt,3,4,"td",32),p(14,qt,2,2,"td",32),p(15,Wt,2,2,"td",32),p(16,At,3,3,"td",31),n()),t&2){let e=l.$implicit,_=c(2);i(2),s("routerLink",b(16,vt))("queryParams",B(17,Ct,e.OutletID)),i(),u(" ",e.OutletName," "),i(2),s("routerLink",b(19,yt))("queryParams",B(20,Ct,e.ProductID)),i(),D(e.ProductName),i(),m(_.column.code.selected?7:-1),i(),m(_.column.start.selected?8:-1),i(),m(_.column.bought.selected?9:-1),i(),m(_.column.sold.selected?10:-1),i(),m(_.column.transferredIn.selected?11:-1),i(),m(_.column.transferredOut.selected?12:-1),i(),m(_.column.adjust.selected?13:-1),i(),m(_.column.end.selected?14:-1),i(),m(_.column.now.selected?15:-1),i(),m(_.column.percent.selected?16:-1)}}function Rt(t,l){if(t&1&&N(0,Gt,17,22,"tr",null,M),t&2){let e=c();j(e.infiniteList)}}function Ht(t,l){t&1&&(o(0,"tr")(1,"td",35),w(2,"app-empty-state"),n()())}function zt(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);s("colsFontColor",f(2,5,x(1,2,e.infiniteList,"Start"))),i(3),u(" ",f(5,10,x(4,7,e.infiniteList,"Start"))," ")}}function Kt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,x(2,1,e.infiniteList,"Bought"))," ")}}function Qt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,x(2,1,e.infiniteList,"Sold"))," ")}}function Jt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,x(2,1,e.infiniteList,"TransferredIn"))," ")}}function Ut(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,x(2,1,e.infiniteList,"TransferredOut"))," ")}}function Xt(t,l){if(t&1&&(o(0,"td",38),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);s("colsFontColor",f(2,5,x(1,2,e.infiniteList,"Adjustment"))),i(3),u(" ",f(5,10,x(4,7,e.infiniteList,"Adjustment"))," ")}}function Yt(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);s("colsFontColor",f(2,5,x(1,2,e.infiniteList,"End"))),i(3),u(" ",f(5,10,x(4,7,e.infiniteList,"End"))," ")}}function Zt(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);s("colsFontColor",f(2,5,x(1,2,e.infiniteList,"Now"))),i(3),u(" ",f(5,10,x(4,7,e.infiniteList,"Now"))," ")}}function $t(t,l){if(t&1&&(o(0,"tfoot")(1,"tr",36)(2,"th",37),r(3," Total: "),n(),p(4,zt,6,12,"td",32),p(5,Kt,4,6,"td",33),p(6,Qt,4,6,"td",34),p(7,Jt,4,6,"td",33),p(8,Ut,4,6,"td",34),p(9,Xt,6,12,"td",38),p(10,Yt,6,12,"td",32),p(11,Zt,6,12,"td",32),n()()),t&2){let e=c();i(2),k("colspan",e.column.code.selected?3:2),i(2),m(e.column.start.selected?4:-1),i(),m(e.column.bought.selected?5:-1),i(),m(e.column.sold.selected?6:-1),i(),m(e.column.transferredIn.selected?7:-1),i(),m(e.column.transferredOut.selected?8:-1),i(),m(e.column.adjust.selected?9:-1),i(),m(e.column.end.selected?10:-1),i(),m(e.column.now.selected?11:-1)}}function te(t,l){if(t&1){let e=P();o(0,"span",45),h("click",function(){v(e);let a=c(2);return y(a.StoreRowsCountAPIResult("inventory/GetCountProductInventoryTraffic"))}),o(1,"i",46),r(2,"?"),n()()}}function ee(t,l){if(t&1&&(o(0,"span"),r(1),d(2,"number"),n()),t&2){let e=c(2);i(),D(f(2,1,e.listTotal))}}function ie(t,l){if(t&1){let e=P();o(0,"div",10)(1,"div",39)(2,"div",40),r(3),d(4,"number"),E(5,te,3,0,"span",41)(6,ee,3,3,"span",42),r(7),n()(),o(8,"a",43),h("click",function(){v(e);let a=c();return y(a.NextPage(!0))}),w(9,"i",44),r(10," Next"),n()()}if(t&2){let e=c();i(3),u(" Showing 1 - ",f(4,4,e.infiniteList.length)," of "),i(2),s("ngIf",!e.pageData.HideStoreApiCount),i(),s("ngIf",e.pageData.HideStoreApiCount),i(),u(" records ~ ",e.pageData.Filter.PageNumber," Page ")}}var xt=class t extends X{constructor(e,_,a,C,L,F,ne){super(e,_,"inventory/GetProductInventoryTraffic","inventoryloader/GetProductInventoryTraffic",void 0,void 0,!0);this.httpService=_;this.csvConverter=a;this.pageTitle=C;this.converter=L;this.roleService=F;this.matDialog=ne;this.pageTitle.setTitle(this.menuData.T)}column={code:{selected:!0,name:"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:!0,name:"End"},now:{selected:!0,name:"Now"},percent:{selected:!1,name:"Percentage"}};selectedProduct=[];postBindData(){this.menuData.H=this.data.PageTitle}openExportModal(){this.matDialog.open(Z,{data:{title:"Product Inventory Traffic",exportTypes:[{ID:"inventoryexport/GetExportProductInventoryTraffic",Value:"Default",FileName:"Product Inventory Traffic"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!0}})}static \u0275fac=function(_){return new(_||t)(T(tt),T(K),T(et),T(R),T(mt),T(Q),T(Y))};static \u0275cmp=O({type:t,selectors:[["POS-product-inventory-traffic"]],features:[V],decls:31,vars:19,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","150px"],[1,"text-end",2,"width","100px"],[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"],[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","ProductTypeId",3,"modelChange","model","options"],["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","12"],[1,"table-footer"],[1,"empty-column","text-end"],[1,"text-end","text-success",3,"colsFontColor"],[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(_,a){if(_&1){let C=P();o(0,"mainpanel-cmp",1),h("onSubmit",function(){return v(C),y(a.searchFromPageOne())}),S("filterChange",function(F){return v(C),I(a.pageData.Filter,F)||(a.pageData.Filter=F),y(F)}),o(1,"actions"),E(2,Tt,3,0,"button",2),n(),o(3,"filters"),E(4,gt,17,20,"ng-template",null,0,q),n(),o(6,"content")(7,"div",3)(8,"div",4)(9,"table",5)(10,"thead",6)(11,"tr")(12,"th",7),r(13,"Outlet"),n(),o(14,"th"),r(15,"Product"),n(),p(16,It,2,0,"th",8),p(17,St,3,0,"th",9),p(18,Pt,3,0,"th",9),p(19,ht,3,0,"th",9),p(20,Ft,3,0,"th",9),p(21,Et,3,0,"th",9),p(22,wt,3,0,"th",9),p(23,Dt,3,0,"th",9),p(24,bt,3,0,"th",9),p(25,Bt,3,0,"th",9),n()(),o(26,"tbody"),p(27,Rt,2,0)(28,Ht,3,0,"tr"),n(),p(29,$t,12,9,"tfoot"),n()(),p(30,ie,11,6,"div",10),n()()()}_&2&&(s("pageData",a.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),g("filter",a.pageData.Filter),s("column",a.column),i(2),s("ngIf",a.roleService.global.Export),i(14),m(a.column.code.selected?16:-1),i(),m(a.column.start.selected?17:-1),i(),m(a.column.bought.selected?18:-1),i(),m(a.column.sold.selected?19:-1),i(),m(a.column.transferredIn.selected?20:-1),i(),m(a.column.transferredOut.selected?21:-1),i(),m(a.column.adjust.selected?22:-1),i(),m(a.column.end.selected?23:-1),i(),m(a.column.now.selected?24:-1),i(),m(a.column.percent.selected?25:-1),i(2),m(a.infiniteList&&a.infiniteList.length>0?27:28),i(2),m(a.infiniteList&&a.infiniteList.length>0?29:-1),i(),m(a.infiniteList&&a.infiniteList.length>0?30:-1))},dependencies:[at,ot,G,W,z,_t,ct,st,nt,H,pt,dt,lt,rt,ut,ft,U,J,A,it,$],encapsulation:2})};export{xt as Product_Inventory_TrafficComponent};
|
|
1
|
+
import{a as st,b as ft}from"./chunk-TEV65D26.js";import{a as mt}from"./chunk-IWUWV3MS.js";import{a as _t}from"./chunk-5MWGLO24.js";import{a as ut}from"./chunk-DLNZDHGS.js";import"./chunk-5DQ4MJJT.js";import"./chunk-BYXBJQAS.js";import{a as $}from"./chunk-HL3ONSX6.js";import{d as dt,e as pt}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 rt,e as lt}from"./chunk-GN3HVOCN.js";import"./chunk-G4IW5GPY.js";import{a as X}from"./chunk-BWXXYBLG.js";import{f as ct}from"./chunk-FFNEDDOO.js";import{b as Z}from"./chunk-T2H2XAEJ.js";import"./chunk-JNORDOWT.js";import"./chunk-G5VELV3S.js";import"./chunk-QFON23YX.js";import"./chunk-FIUZN6JU.js";import{a as et}from"./chunk-4QM23MMO.js";import{e as ot,f as at}from"./chunk-PKS7H624.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-4U2TXFUV.js";import{b as tt}from"./chunk-XNJ2P2ZO.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import{b as J,c as U}from"./chunk-C4WJKF7R.js";import{N as nt,g as it}from"./chunk-T25N3EEG.js";import"./chunk-7TBS7SPQ.js";import"./chunk-RLQLFW36.js";import"./chunk-EQLHPWVB.js";import{g as Y}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 z}from"./chunk-RNLSEEMX.js";import"./chunk-BVZ7ACQM.js";import"./chunk-7KAETFNH.js";import{d as Q}from"./chunk-USJ6ILEE.js";import"./chunk-FSBKLNRT.js";import{Ab as N,Bb as j,Bc as d,Cb as s,Cc as f,Db as o,Dc as x,Eb as n,Ed as R,Fb as w,Hc as q,Mb as P,Ob as h,Qb as c,Xa as i,Zd as H,db as T,dc as r,ec as D,ee as K,fc as u,fd as W,hb as O,ic as g,jc as I,kc as S,lb as V,nb as E,od as A,rd as G,ta as v,tb as k,tc as b,ua as y,uc as B,vb as p,xb as m,yb as M}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var vt=()=>["/menu/Outlets/Master/Outlets/Info"],Ct=t=>({ID:t}),yt=()=>["/menu/Products/Catalog/Products/Info"];function Tt(t,l){if(t&1){let e=P();o(0,"button",11),h("click",function(){v(e);let a=c();return y(a.openExportModal())}),w(1,"i",12),r(2," Export "),n()}}function gt(t,l){if(t&1){let e=P();o(0,"div",13)(1,"h6"),r(2,"Outlet Group"),n(),o(3,"POS-outlet-group-tree-select",14),S("selectedOutletGroupIDChange",function(a){v(e);let C=c();return I(C.pageData.Filter.OutletGroupID,a)||(C.pageData.Filter.OutletGroupID=a),y(a)}),n(),o(4,"h6"),r(5,"Category"),n(),o(6,"POS-product-category-select",15),S("selectedCategoryIDChange",function(a){v(e);let C=c();return I(C.pageData.Filter.CategoryID,a)||(C.pageData.Filter.CategoryID=a),y(a)}),n(),o(7,"autocompleteV3",16),S("modelNameChange",function(a){v(e);let C=c();return I(C.pageData.Filter.ListProductID,a)||(C.pageData.Filter.ListProductID=a),y(a)}),n(),o(8,"h6"),r(9,"From - To"),n(),o(10,"div")(11,"datepicker",17),S("dateChange",function(a){v(e);let C=c();return I(C.pageData.Filter.From,a)||(C.pageData.Filter.From=a),y(a)}),n()(),o(12,"div",18)(13,"datepicker",19),S("dateChange",function(a){v(e);let C=c();return I(C.pageData.Filter.To,a)||(C.pageData.Filter.To=a),y(a)}),n()(),o(14,"h6"),r(15,"Inventory Type"),n(),o(16,"radio-options",20),S("modelChange",function(a){v(e);let C=c();return I(C.pageData.Filter.InventoryType,a)||(C.pageData.Filter.InventoryType=a),y(a)}),n()()}if(t&2){let e=c();i(3),s("showClear",!0),g("selectedOutletGroupID",e.pageData.Filter.OutletGroupID),i(3),g("selectedCategoryID",e.pageData.Filter.CategoryID),s("showClear",!0),i(),g("modelName",e.pageData.Filter.ListProductID),s("placeholder","Search Product")("isShowEmptyMessage",!0)("emptyMessage","No Product found")("tooltipMessage","Search by product name")("label","Product to Analyze")("listDataEndpoint","/api/ac/GetProductSuggestionByCodeNName")("valueField","Key"),i(4),s("isFloatingLabel",!1),g("date",e.pageData.Filter.From),s("hidelClearBtn",!0),i(2),s("isFloatingLabel",!1),g("date",e.pageData.Filter.To),s("hidelClearBtn",!0),i(3),g("model",e.pageData.Filter.InventoryType),s("options",e.pageData.Options.InventoryTypes)}}function It(t,l){t&1&&(o(0,"th",8),r(1,"Code"),n())}function St(t,l){t&1&&(o(0,"th",9)(1,"span",21),r(2," Start "),n()())}function Pt(t,l){t&1&&(o(0,"th",9)(1,"span",22),r(2," Bought "),n()())}function ht(t,l){t&1&&(o(0,"th",9)(1,"span",23),r(2," Sold "),n()())}function Ft(t,l){t&1&&(o(0,"th",9)(1,"span",24),r(2," T.In "),n()())}function Et(t,l){t&1&&(o(0,"th",9)(1,"span",25),r(2," T.Out "),n()())}function wt(t,l){t&1&&(o(0,"th",9)(1,"span",26),r(2," Adj "),n()())}function Dt(t,l){t&1&&(o(0,"th",9)(1,"span",27),r(2," End "),n()())}function bt(t,l){t&1&&(o(0,"th",9)(1,"span",28),r(2," Now "),n()())}function Bt(t,l){t&1&&(o(0,"th",9)(1,"span",29),r(2," % "),n()())}function Lt(t,l){if(t&1&&(o(0,"td",31),r(1),n()),t&2){let e=c().$implicit;i(),u(" ",e.ProductCode," ")}}function Ot(t,l){if(t&1&&(o(0,"td",32),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;s("colsFontColor",e.Start),i(),u(" ",f(2,2,e.Start)," ")}}function Vt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.Bought)," ")}}function kt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.Sold)," ")}}function Mt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.TransferredIn)," ")}}function Nt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.TransferredOut)," ")}}function jt(t,l){if(t&1&&(o(0,"td",32),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;s("colsFontColor",e.Adjustment),i(),u(" ",e.Adjustment<0?e.Adjustment*-1:f(2,2,e.Adjustment)," ")}}function qt(t,l){if(t&1&&(o(0,"td",32),r(1),n()),t&2){let e=c().$implicit;s("colsFontColor",e.End),i(),u(" ",e.End," ")}}function Wt(t,l){if(t&1&&(o(0,"td",32),r(1),n()),t&2){let e=c().$implicit;s("colsFontColor",e.Now),i(),u(" ",e.Now," ")}}function At(t,l){if(t&1&&(o(0,"td",31),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.SellTransferInRate)," ")}}function Gt(t,l){if(t&1&&(o(0,"tr")(1,"td")(2,"a",30),r(3),n()(),o(4,"td")(5,"a",30),r(6),n()(),p(7,Lt,2,1,"td",31),p(8,Ot,3,4,"td",32),p(9,Vt,3,3,"td",33),p(10,kt,3,3,"td",34),p(11,Mt,3,3,"td",33),p(12,Nt,3,3,"td",34),p(13,jt,3,4,"td",32),p(14,qt,2,2,"td",32),p(15,Wt,2,2,"td",32),p(16,At,3,3,"td",31),n()),t&2){let e=l.$implicit,_=c(2);i(2),s("routerLink",b(16,vt))("queryParams",B(17,Ct,e.OutletID)),i(),u(" ",e.OutletName," "),i(2),s("routerLink",b(19,yt))("queryParams",B(20,Ct,e.ProductID)),i(),D(e.ProductName),i(),m(_.column.code.selected?7:-1),i(),m(_.column.start.selected?8:-1),i(),m(_.column.bought.selected?9:-1),i(),m(_.column.sold.selected?10:-1),i(),m(_.column.transferredIn.selected?11:-1),i(),m(_.column.transferredOut.selected?12:-1),i(),m(_.column.adjust.selected?13:-1),i(),m(_.column.end.selected?14:-1),i(),m(_.column.now.selected?15:-1),i(),m(_.column.percent.selected?16:-1)}}function Rt(t,l){if(t&1&&N(0,Gt,17,22,"tr",null,M),t&2){let e=c();j(e.infiniteList)}}function Ht(t,l){t&1&&(o(0,"tr")(1,"td",35),w(2,"app-empty-state"),n()())}function zt(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);s("colsFontColor",f(2,5,x(1,2,e.infiniteList,"Start"))),i(3),u(" ",f(5,10,x(4,7,e.infiniteList,"Start"))," ")}}function Kt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,x(2,1,e.infiniteList,"Bought"))," ")}}function Qt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,x(2,1,e.infiniteList,"Sold"))," ")}}function Jt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,x(2,1,e.infiniteList,"TransferredIn"))," ")}}function Ut(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,x(2,1,e.infiniteList,"TransferredOut"))," ")}}function Xt(t,l){if(t&1&&(o(0,"td",38),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);s("colsFontColor",f(2,5,x(1,2,e.infiniteList,"Adjustment"))),i(3),u(" ",f(5,10,x(4,7,e.infiniteList,"Adjustment"))," ")}}function Yt(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);s("colsFontColor",f(2,5,x(1,2,e.infiniteList,"End"))),i(3),u(" ",f(5,10,x(4,7,e.infiniteList,"End"))," ")}}function Zt(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);s("colsFontColor",f(2,5,x(1,2,e.infiniteList,"Now"))),i(3),u(" ",f(5,10,x(4,7,e.infiniteList,"Now"))," ")}}function $t(t,l){if(t&1&&(o(0,"tfoot")(1,"tr",36)(2,"th",37),r(3," Total: "),n(),p(4,zt,6,12,"td",32),p(5,Kt,4,6,"td",33),p(6,Qt,4,6,"td",34),p(7,Jt,4,6,"td",33),p(8,Ut,4,6,"td",34),p(9,Xt,6,12,"td",38),p(10,Yt,6,12,"td",32),p(11,Zt,6,12,"td",32),n()()),t&2){let e=c();i(2),k("colspan",e.column.code.selected?3:2),i(2),m(e.column.start.selected?4:-1),i(),m(e.column.bought.selected?5:-1),i(),m(e.column.sold.selected?6:-1),i(),m(e.column.transferredIn.selected?7:-1),i(),m(e.column.transferredOut.selected?8:-1),i(),m(e.column.adjust.selected?9:-1),i(),m(e.column.end.selected?10:-1),i(),m(e.column.now.selected?11:-1)}}function te(t,l){if(t&1){let e=P();o(0,"span",45),h("click",function(){v(e);let a=c(2);return y(a.StoreRowsCountAPIResult("inventory/GetCountProductInventoryTraffic"))}),o(1,"i",46),r(2,"?"),n()()}}function ee(t,l){if(t&1&&(o(0,"span"),r(1),d(2,"number"),n()),t&2){let e=c(2);i(),D(f(2,1,e.listTotal))}}function ie(t,l){if(t&1){let e=P();o(0,"div",10)(1,"div",39)(2,"div",40),r(3),d(4,"number"),E(5,te,3,0,"span",41)(6,ee,3,3,"span",42),r(7),n()(),o(8,"a",43),h("click",function(){v(e);let a=c();return y(a.NextPage(!0))}),w(9,"i",44),r(10," Next"),n()()}if(t&2){let e=c();i(3),u(" Showing 1 - ",f(4,4,e.infiniteList.length)," of "),i(2),s("ngIf",!e.pageData.HideStoreApiCount),i(),s("ngIf",e.pageData.HideStoreApiCount),i(),u(" records ~ ",e.pageData.Filter.PageNumber," Page ")}}var xt=class t extends X{constructor(e,_,a,C,L,F,ne){super(e,_,"inventory/GetProductInventoryTraffic","inventoryloader/GetProductInventoryTraffic",void 0,void 0,!0);this.httpService=_;this.csvConverter=a;this.pageTitle=C;this.converter=L;this.roleService=F;this.matDialog=ne;this.pageTitle.setTitle(this.menuData.T)}column={code:{selected:!0,name:"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:!0,name:"End"},now:{selected:!0,name:"Now"},percent:{selected:!1,name:"Percentage"}};selectedProduct=[];postBindData(){this.menuData.H=this.data.PageTitle}openExportModal(){this.matDialog.open(Z,{data:{title:"Product Inventory Traffic",exportTypes:[{ID:"inventoryexport/GetExportProductInventoryTraffic",Value:"Default",FileName:"Product Inventory Traffic"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!0}})}static \u0275fac=function(_){return new(_||t)(T(tt),T(K),T(et),T(R),T(mt),T(Q),T(Y))};static \u0275cmp=O({type:t,selectors:[["POS-product-inventory-traffic"]],features:[V],decls:31,vars:19,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","150px"],[1,"text-end",2,"width","100px"],[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"],[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","ProductTypeId",3,"modelChange","model","options"],["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","12"],[1,"table-footer"],[1,"empty-column","text-end"],[1,"text-end","text-success",3,"colsFontColor"],[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(_,a){if(_&1){let C=P();o(0,"mainpanel-cmp",1),h("onSubmit",function(){return v(C),y(a.searchFromPageOne())}),S("filterChange",function(F){return v(C),I(a.pageData.Filter,F)||(a.pageData.Filter=F),y(F)}),o(1,"actions"),E(2,Tt,3,0,"button",2),n(),o(3,"filters"),E(4,gt,17,20,"ng-template",null,0,q),n(),o(6,"content")(7,"div",3)(8,"div",4)(9,"table",5)(10,"thead",6)(11,"tr")(12,"th",7),r(13,"Outlet"),n(),o(14,"th"),r(15,"Product"),n(),p(16,It,2,0,"th",8),p(17,St,3,0,"th",9),p(18,Pt,3,0,"th",9),p(19,ht,3,0,"th",9),p(20,Ft,3,0,"th",9),p(21,Et,3,0,"th",9),p(22,wt,3,0,"th",9),p(23,Dt,3,0,"th",9),p(24,bt,3,0,"th",9),p(25,Bt,3,0,"th",9),n()(),o(26,"tbody"),p(27,Rt,2,0)(28,Ht,3,0,"tr"),n(),p(29,$t,12,9,"tfoot"),n()(),p(30,ie,11,6,"div",10),n()()()}_&2&&(s("pageData",a.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),g("filter",a.pageData.Filter),s("column",a.column),i(2),s("ngIf",a.roleService.global.Export),i(14),m(a.column.code.selected?16:-1),i(),m(a.column.start.selected?17:-1),i(),m(a.column.bought.selected?18:-1),i(),m(a.column.sold.selected?19:-1),i(),m(a.column.transferredIn.selected?20:-1),i(),m(a.column.transferredOut.selected?21:-1),i(),m(a.column.adjust.selected?22:-1),i(),m(a.column.end.selected?23:-1),i(),m(a.column.now.selected?24:-1),i(),m(a.column.percent.selected?25:-1),i(2),m(a.infiniteList&&a.infiniteList.length>0?27:28),i(2),m(a.infiniteList&&a.infiniteList.length>0?29:-1),i(),m(a.infiniteList&&a.infiniteList.length>0?30:-1))},dependencies:[at,ot,G,W,z,_t,ct,st,nt,H,pt,dt,lt,rt,ut,ft,U,J,A,it,$],encapsulation:2})};export{xt as Product_Inventory_TrafficComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as O}from"./chunk-J7YNB6YX.js";import{u as A,v}from"./chunk-
|
|
1
|
+
import{a as O}from"./chunk-J7YNB6YX.js";import{u as A,v}from"./chunk-BA3BDB5Y.js";import{e as N,f as h}from"./chunk-A45GTZVV.js";import{a as y}from"./chunk-2FWFPV5I.js";import{h as _,o as C}from"./chunk-RNLSEEMX.js";import{a as u}from"./chunk-USJ6ILEE.js";import{Cb as s,Db as l,Eb as c,Ob as p,Xa as r,db as a,hb as m,ic as f,jc as g,kc as M}from"./chunk-JYZTRN6N.js";var T=class d{constructor(n,e){this.dialogRef=n;this.data=e;this.note=e,this.configModal=new A,this.configModal.headerType=y.Success,this.configModal.title="Note Invoice",this.configModal.customWidth="600px"}note;configModal;isNotEmpty(n){return u.IsNotEmpty(n)}onOk(){this.dialogRef.close(this.note)}static \u0275fac=function(e){return new(e||d)(a(N),a(h))};static \u0275cmp=m({type:d,selectors:[["POS-modal-add-note"]],standalone:!1,decls:6,vars:2,consts:[[3,"onOk","onCancel","onClose","config"],[1,"container-fluid","px-0"],[1,"row"],[1,"col-sm-12"],[3,"ngModelChange","ngModel"]],template:function(e,o){e&1&&(l(0,"modal-material",0),p("onOk",function(){return o.onOk()})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),l(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"POS-tinymce-editor",4),M("ngModelChange",function(i){return g(o.note,i)||(o.note=i),i}),c()()()()()()),e&2&&(s("config",o.configModal),r(5),f("ngModel",o.note))},dependencies:[_,C,v,O],encapsulation:2})};export{T as a};
|
|
@@ -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-7WXQYKCT.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{b as Ge}from"./chunk-P3SYBLK4.js";import"./chunk-QIJEAKQK.js";import"./chunk-QEOGHVXA.js";import{e as Ne}from"./chunk-4HCSE44G.js";import"./chunk-KHR4NBM3.js";import"./chunk-L2V3KTC6.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-PKS7H624.js";import"./chunk-3FYNWZYY.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-4U2TXFUV.js";import{a as ve,b as Pe}from"./chunk-XNJ2P2ZO.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-BVZ7ACQM.js";import"./chunk-7KAETFNH.js";import"./chunk-USJ6ILEE.js";import{a as ue}from"./chunk-FSBKLNRT.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};
|