dealpos 25.37.2 → 25.37.3
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-J7WZSDR6.js → chunk-246GVKUS.js} +1 -1
- package/browser/{chunk-R5MMHEH6.js → chunk-2FXL2HDF.js} +1 -1
- package/browser/{chunk-XNE22IC6.js → chunk-2QG4JWAE.js} +1 -1
- package/browser/{chunk-5WG74DJT.js → chunk-2RWD5W3A.js} +1 -1
- package/browser/{chunk-BO2Z4RGZ.js → chunk-2W2V2NM7.js} +1 -1
- package/browser/{chunk-2URCBLJ7.js → chunk-47I5SA66.js} +1 -1
- package/browser/{chunk-7ZD2267X.js → chunk-57IUU6ZC.js} +1 -1
- package/browser/{chunk-LPFP4NOL.js → chunk-5O2KKW6F.js} +1 -1
- package/browser/{chunk-TOOIVKU3.js → chunk-5WFN5KAC.js} +1 -1
- package/browser/{chunk-6WHOPHRH.js → chunk-77KTGZY6.js} +1 -1
- package/browser/{chunk-5WHPKSFW.js → chunk-7EA7EXS5.js} +1 -1
- package/browser/{chunk-7IFXHB4V.js → chunk-7EU2PMHX.js} +1 -1
- package/browser/{chunk-SOE2QU22.js → chunk-7TZA4PUK.js} +1 -1
- package/browser/{chunk-UTHVS7YI.js → chunk-A4JKVSUB.js} +2 -2
- package/browser/{chunk-L6G7INVR.js → chunk-ACSIWGQV.js} +2 -2
- package/browser/{chunk-DGPCJB6P.js → chunk-AXHXNBHV.js} +1 -1
- package/browser/{chunk-CEOPBVEH.js → chunk-BED5HJZ2.js} +1 -1
- package/browser/{chunk-PT4Y2VNN.js → chunk-BSJU72R6.js} +1 -1
- package/browser/{chunk-BQJ7JR25.js → chunk-CG73T3TQ.js} +1 -1
- package/browser/{chunk-5XLUITBY.js → chunk-CJKH7RU5.js} +1 -1
- package/browser/{chunk-AHC27CIW.js → chunk-CZAQG6WF.js} +1 -1
- package/browser/{chunk-5432OTF7.js → chunk-ED4YSOUM.js} +2 -2
- package/browser/{chunk-E52CQ3NY.js → chunk-FE7KGLWI.js} +1 -1
- package/browser/{chunk-CJJZFHED.js → chunk-FT4VVMUZ.js} +1 -1
- package/browser/{chunk-PXNAXAQB.js → chunk-GKTQL7S6.js} +1 -1
- package/browser/{chunk-N2FNF62O.js → chunk-H3V5PSCN.js} +1 -1
- package/browser/{chunk-CZ2RXLZJ.js → chunk-HMRDZRDD.js} +2 -2
- package/browser/{chunk-A4RN7PGI.js → chunk-HYW3PEDN.js} +1 -1
- package/browser/{chunk-LUMOPVCB.js → chunk-IMEKDDRZ.js} +1 -1
- package/browser/{chunk-DZ35QZ6L.js → chunk-IPVEZIYO.js} +1 -1
- package/browser/{chunk-ZWXGSLUJ.js → chunk-IQY2LSF6.js} +1 -1
- package/browser/{chunk-KOWDWAD2.js → chunk-IXDUCCKR.js} +1 -1
- package/browser/{chunk-JZ7HH3AD.js → chunk-J4NQVL2U.js} +1 -1
- package/browser/chunk-KEUS7V3K.js +1 -0
- package/browser/{chunk-XQCKNZ75.js → chunk-KMHOACN3.js} +1 -1
- package/browser/{chunk-JDDFGHZC.js → chunk-KP2OKS63.js} +1 -1
- package/browser/{chunk-HPGHC3LU.js → chunk-LC2G5X3T.js} +1 -1
- package/browser/{chunk-FJULFWMX.js → chunk-LHQMGLCO.js} +1 -1
- package/browser/{chunk-6JCU4GNE.js → chunk-LMSUV4DF.js} +1 -1
- package/browser/{chunk-G7B75J34.js → chunk-LRZRVZHZ.js} +1 -1
- package/browser/{chunk-624G6F5C.js → chunk-M4IEBQUD.js} +2 -2
- package/browser/{chunk-C2LSF7S2.js → chunk-ML4LS3JQ.js} +1 -1
- package/browser/{chunk-SF3RHVSN.js → chunk-MTMMU7GK.js} +1 -1
- package/browser/{chunk-DSLMCH3G.js → chunk-MXD23J36.js} +1 -1
- package/browser/{chunk-N276B6EI.js → chunk-NOK7ZUJF.js} +1 -1
- package/browser/chunk-NUGWNTFZ.js +1 -0
- package/browser/{chunk-YUSWA5RC.js → chunk-O6GMQRZG.js} +1 -1
- package/browser/{chunk-QRI23WCG.js → chunk-OFCUJNQU.js} +1 -1
- package/browser/{chunk-M5R3Y6BD.js → chunk-OSWSFGOJ.js} +1 -1
- package/browser/{chunk-TPDNCYEZ.js → chunk-OVNI7USJ.js} +1 -1
- package/browser/{chunk-Z6TVE7B7.js → chunk-OY46AN7G.js} +1 -1
- package/browser/{chunk-WF6K2YER.js → chunk-P42NPBKN.js} +1 -1
- package/browser/{chunk-IWIKKZRE.js → chunk-PJZKO6EJ.js} +1 -1
- package/browser/{chunk-2Z5J6Q7M.js → chunk-PMQCMLOB.js} +1 -1
- package/browser/{chunk-YFWHKWUO.js → chunk-PTGE5E6V.js} +1 -1
- package/browser/{chunk-2LHNA5AI.js → chunk-QBECNCED.js} +1 -1
- package/browser/{chunk-WUZXIQKO.js → chunk-QILONTOR.js} +1 -1
- package/browser/{chunk-D5JRP2GG.js → chunk-QWLFS2FE.js} +1 -1
- package/browser/{chunk-5A5MC6CY.js → chunk-RLFBLSFM.js} +1 -1
- package/browser/{chunk-I3EBD4BM.js → chunk-RRGRXLUZ.js} +1 -1
- package/browser/{chunk-ORFYFJKS.js → chunk-RT6YCLZW.js} +1 -1
- package/browser/{chunk-ZAJBQGZU.js → chunk-RW7QZRJ2.js} +2 -2
- package/browser/{chunk-UR37FTL2.js → chunk-T4MVFJGL.js} +1 -1
- package/browser/{chunk-NDQYXKAN.js → chunk-TPPS3QIA.js} +1 -1
- package/browser/{chunk-6G2IT6WP.js → chunk-UGECMXMN.js} +1 -1
- package/browser/{chunk-6HQRARSZ.js → chunk-VSFXSQWT.js} +1 -1
- package/browser/{chunk-ZLGNHROO.js → chunk-VX4WL34G.js} +1 -1
- package/browser/{chunk-JIYAVK6J.js → chunk-WDDMKZLZ.js} +1 -1
- package/browser/{chunk-VWRUQ7XW.js → chunk-WG2QGIET.js} +1 -1
- package/browser/{chunk-MH3LXNOS.js → chunk-YAGXTRYQ.js} +1 -1
- package/browser/{chunk-5MV4W4N6.js → chunk-YFN33F7G.js} +1 -1
- package/browser/{chunk-K463QEUH.js → chunk-YLD325HC.js} +1 -1
- package/browser/{chunk-AASLGLOM.js → chunk-YMIWL4WY.js} +1 -1
- package/browser/{chunk-AQH2TWJK.js → chunk-Z2P2CNKC.js} +1 -1
- package/browser/{chunk-ACGNZNFL.js → chunk-Z7BGVRZR.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-T6SFWIAO.js → main-E4MQYENS.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-CFWQ2KY4.js +0 -1
- package/browser/chunk-UQKMHV26.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Dt}from"./chunk-TYLM2YM3.js";import{b as Ft}from"./chunk-
|
|
1
|
+
import{a as Dt}from"./chunk-TYLM2YM3.js";import{b as Ft}from"./chunk-H3V5PSCN.js";import{a as kt,b as zt}from"./chunk-3LBZWLLT.js";import{a as Mt}from"./chunk-LZNTSIJX.js";import{a as Lt}from"./chunk-C6ARCDXZ.js";import{a as je,b as Me,d as qe}from"./chunk-52EOLV7I.js";import{a as Vt,c as Et}from"./chunk-I7VBCYOO.js";import{a as Y,b as Le,c as Ot}from"./chunk-CGESXTHC.js";import{B as vt,F as bt,G as ve,I as et,L as be,O as Ct,Q as tt,R as It,T as Ae,U as Se,V as wt,Y as it,b as Xe,ba as xt,d as ft,e as _t,ea as Qe,ha as St,ia as Tt,la as Te,ma as K,na as Ke,s as ae,t as U,ua as te,v as gt,w as yt,x as ye}from"./chunk-TLOTIYIE.js";import{a as mt}from"./chunk-2RSBMS36.js";import{$a as c,$b as u,Ad as ut,Bd as We,Db as Ne,Dd as Ge,Fa as w,Fc as Q,Ga as Ce,Gd as Ue,Hd as Ye,Ib as m,Id as Je,Jb as f,Kb as R,Lb as V,Ma as de,Mb as E,Mc as x,Nb as F,Nc as Fe,Ob as $,Pc as ke,Qb as z,Qc as ht,Rb as r,Sb as oe,Tb as le,Wc as me,Yb as b,Yc as Be,Zb as B,Zc as fe,_b as h,ad as _e,bd as ge,db as ne,dc as W,ec as ue,fc as Ee,gc as Ze,ia as st,ja as J,jc as rt,jd as G,ka as pe,kb as P,kc as ct,kd as ze,lb as he,lc as pt,na as X,ob as H,pc as ee,qb as p,qc as we,rc as k,sc as se,tc as xe,ua as at,ub as T,va as g,vb as a,wa as y,wb as Pe,xa as $e,xb as He,yb as Ie,yc as dt,za as L,zb as D}from"./chunk-DZT5XHBQ.js";import{a as Z,b as Ve}from"./chunk-7DCB7DB2.js";var Rt=(()=>{class t extends je{pathId;ngOnInit(){this.pathId="url(#"+Qe()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=L(t)))(i||t)}})();static \u0275cmp=P({type:t,selectors:[["SearchIcon"]],features:[H],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&($e(),m(0,"svg",0)(1,"g"),R(2,"path",1),f(),m(3,"defs")(4,"clipPath",2),R(5,"rect",3),f()()()),n&2&&(D(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),c(),T("clip-path",i.pathId),c(3),a("id",i.pathId))},encapsulation:2})}return t})();var $t=["content"],ti=["overlay"],ii=["*"],ni=(t,s,e,n,i,o,l,d,O,I,C,j,M,q)=>({"p-overlay p-component":!0,"p-overlay-modal p-overlay-mask p-overlay-mask-enter":t,"p-overlay-center":s,"p-overlay-top":e,"p-overlay-top-start":n,"p-overlay-top-end":i,"p-overlay-bottom":o,"p-overlay-bottom-start":l,"p-overlay-bottom-end":d,"p-overlay-left":O,"p-overlay-left-start":I,"p-overlay-left-end":C,"p-overlay-right":j,"p-overlay-right-start":M,"p-overlay-right-end":q}),oi=(t,s,e)=>({showTransitionParams:t,hideTransitionParams:s,transform:e}),li=t=>({value:"visible",params:t}),si=t=>({mode:t}),ai=t=>({$implicit:t});function ri(t,s){t&1&&F(0)}function ci(t,s){if(t&1){let e=$();m(0,"div",3,1),z("click",function(i){g(e);let o=r(2);return y(o.onOverlayContentClick(i))})("@overlayContentAnimation.start",function(i){g(e);let o=r(2);return y(o.onOverlayContentAnimationStart(i))})("@overlayContentAnimation.done",function(i){g(e);let o=r(2);return y(o.onOverlayContentAnimationDone(i))}),le(2),p(3,ri,1,0,"ng-container",4),f()}if(t&2){let e=r(2);D(e.contentStyleClass),a("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",k(11,li,xe(7,oi,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),c(3),a("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",k(15,ai,k(13,si,e.overlayMode)))}}function pi(t,s){if(t&1){let e=$();m(0,"div",3,0),z("click",function(){g(e);let i=r();return y(i.onOverlayClick())}),p(2,ci,4,17,"div",2),f()}if(t&2){let e=r();D(e.styleClass),a("ngStyle",e.style)("ngClass",dt(5,ni,[e.modal,e.modal&&e.overlayResponsiveDirection==="center",e.modal&&e.overlayResponsiveDirection==="top",e.modal&&e.overlayResponsiveDirection==="top-start",e.modal&&e.overlayResponsiveDirection==="top-end",e.modal&&e.overlayResponsiveDirection==="bottom",e.modal&&e.overlayResponsiveDirection==="bottom-start",e.modal&&e.overlayResponsiveDirection==="bottom-end",e.modal&&e.overlayResponsiveDirection==="left",e.modal&&e.overlayResponsiveDirection==="left-start",e.modal&&e.overlayResponsiveDirection==="left-end",e.modal&&e.overlayResponsiveDirection==="right",e.modal&&e.overlayResponsiveDirection==="right-start",e.modal&&e.overlayResponsiveDirection==="right-end"])),c(2),a("ngIf",e.visible)}}var di=({dt:t})=>`
|
|
2
2
|
.p-overlay {
|
|
3
3
|
position: absolute;
|
|
4
4
|
top: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Ge}from"./chunk-Z5N4EKJ3.js";import{a as Ae,f as Ne}from"./chunk-HPGHC3LU.js";import{b as Le,c as Re,d as Be,e as We,f as je,g as ze}from"./chunk-E3GQ2VEU.js";import"./chunk-7BU64MD2.js";import{b as $e}from"./chunk-YOKPVEGO.js";import"./chunk-I5K3C5EY.js";import"./chunk-OLALZT3L.js";import{d as Fe}from"./chunk-DWWBB3GE.js";import"./chunk-6N4AU5UX.js";import"./chunk-VZX4F3F5.js";import"./chunk-DGPCJB6P.js";import"./chunk-2NPKEKTC.js";import"./chunk-LHP3ECFW.js";import{b as xe}from"./chunk-72KIMU7G.js";import"./chunk-3RK6DDJD.js";import{a as he}from"./chunk-L2EDFSBR.js";import"./chunk-TEFNN3TY.js";import{d as Se}from"./chunk-N3XWBPCL.js";import"./chunk-JKYTSC2D.js";import"./chunk-A4RN7PGI.js";import"./chunk-TYLM2YM3.js";import{d as Pe,e as Oe,f as De,g as ke,h as Ue,i as Ve}from"./chunk-N2FNF62O.js";import"./chunk-6JCU4GNE.js";import"./chunk-RBCKIP6D.js";import"./chunk-3LBZWLLT.js";import"./chunk-LZNTSIJX.js";import"./chunk-C6ARCDXZ.js";import{a as be,b as Ee}from"./chunk-WF6K2YER.js";import"./chunk-52EOLV7I.js";import"./chunk-5UL73W4S.js";import{u as ye,v as Te,w as Me}from"./chunk-FY5VLGQC.js";import"./chunk-CIBQBSM6.js";import{P as H}from"./chunk-IX5URHI7.js";import{e as we,f as ve,g as Ie}from"./chunk-ZZ7LHETD.js";import"./chunk-567HXZXC.js";import"./chunk-I7VBCYOO.js";import"./chunk-CGESXTHC.js";import"./chunk-2FWFPV5I.js";import{la as Ce}from"./chunk-TLOTIYIE.js";import{F as L,G as fe,h as ue,o as _e}from"./chunk-2RSBMS36.js";import"./chunk-R5MMHEH6.js";import"./chunk-J7WZSDR6.js";import"./chunk-AHCRE4GP.js";import"./chunk-VWRUQ7XW.js";import{$a as a,$b as A,Ac as S,Bc as ae,Db as b,E as K,Eb as te,Gb as ie,Hb as ne,I as Y,Ia as $,Ib as n,Ja as k,Jb as o,Kb as x,Lb as y,Ma as U,Mb as T,Ob as h,Qb as f,Rb as d,Sb as oe,Tb as Q,Wa as X,Wc as me,Y as j,Yd as ge,Zb as V,Zc as se,_b as F,aa as J,cd as de,db as G,dc as N,ec as l,fa as z,fc as c,gc as w,gd as ce,jc as P,jd as M,k as q,kb as I,kc as O,lc as D,na as E,ob as Z,qb as C,qc as re,rc as le,tc as pe,va as u,vb as s,wa as _,xb as ee,zc as g}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";var Ye=["stepperRef"],Je=[[["preview"]],[["complete"]]],Xe=["preview","complete"];function Ze(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function et(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function tt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function it(t,r){t&1&&(x(0,"i",8),n(1,"span"),l(2,"Upload"),o())}function nt(t,r){if(t&1){let e=h();n(0,"div",9)(1,"div",10)(2,"POS-uppy",11),f("fileUploaded",function(i){u(e);let m=d(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=d(2);a(2),s("sampleUrl",e.sampleUrl())("subtitle","Accepted file formats: .csv & max file size: 1 MB"),a(4),s("href",e.articleLink(),X)}}function ot(t,r){if(t&1&&C(0,nt,9,3,"div",9),t&2){d();let e=N(1);b(e.selectedIndex===0?0:-1)}}function rt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function lt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function pt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function at(t,r){t&1&&(x(0,"i",15),n(1,"span"),l(2,"Preview"),o())}function mt(t,r){t&1&&Q(0)}function st(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function dt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function ct(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function ut(t,r){t&1&&(x(0,"i",16),n(1,"span"),l(2,"Finish"),o())}function _t(t,r){t&1&&Q(0,1)}var R=class t{sampleUrl=k();articleLink=k();_onDropFile=$({alias:"onDropFile"});disabledEdit=k(!1);_onStateChange=$({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&&V(Ye,5),e&2){let i;F(i=A())&&(p._stepper=i.first)}},inputs:{sampleUrl:[1,"sampleUrl"],articleLink:[1,"articleLink"],disabledEdit:[1,"disabledEdit"]},outputs:{_onDropFile:"onDropFile",_onStateChange:"onStateChange"},ngContentSelectors:Xe,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=h();oe(Je),n(0,"mat-stepper",1,0),f("selectionChange",function(v){return u(i),_(p.onStepChange(v))}),n(2,"mat-step",2),C(3,Ze,1,1,"ng-template",3)(4,et,1,1,"ng-template",4)(5,tt,1,1,"ng-template",5)(6,it,3,0,"ng-template",6)(7,ot,1,1,"ng-template",7),o(),n(8,"mat-step",2),C(9,rt,1,1,"ng-template",3)(10,lt,1,1,"ng-template",4)(11,pt,1,1,"ng-template",5)(12,at,3,0,"ng-template",6)(13,mt,1,0,"ng-template",7),o(),n(14,"mat-step",2),C(15,st,1,1,"ng-template",3)(16,dt,1,1,"ng-template",4)(17,ct,1,1,"ng-template",5)(18,ut,3,0,"ng-template",6)(19,_t,1,0,"ng-template",7),o()()}e&2&&(s("linear",!0),a(2),s("completed",!1)("editable",!p.disabledEdit()),a(6),s("completed",!1)("editable",!p.disabledEdit()),a(6),s("completed",!1)("editable",!1))},dependencies:[M,Se,L,fe,he,xe,$e,Fe,ze,We,Le,je,Re,Be],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 B=class t{configModal=new ye;dialogRef=E(we);data=E(ve);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()}),x(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&&(s("config",p.configModal),a(12),c(S(13,4,p.data==null?null:p.data.new)),a(7),c(S(20,6,p.data==null?null:p.data.update)),a(7),c(S(27,8,p.data==null?null:p.data.newOutletGroup)))},dependencies:[M,ce,Me,Te],encapsulation:2})};var gt=["importStepper"],Ct=()=>({"min-width":"50rem"}),St=(t,r,e)=>({"btn-success":t,"btn-outline-secondary":r,"not-allowed":e}),ht=t=>({"mb-1":t});function xt(t,r){if(t&1){let e=h();n(0,"button",14),f("click",function(){u(e);let i=d();return _(i.onPreviousStep())}),l(1," Back "),o()}}function bt(t,r){if(t&1){let e=h();n(0,"button",15),g(1,"async"),g(2,"async"),f("click",function(){u(e);let i=d();return _(i.onNextStep())}),l(3," Next "),o()}if(t&2){let e,p,i=d();s("ngClass",pe(6,St,i.currentState()===1,i.currentState()!==1,!((e=S(1,2,i.importPreview$))!=null&&e.CanProceed)))("disabled",!((p=S(2,4,i.importPreview$))!=null&&p.CanProceed)&&i.currentState()===1)}}function wt(t,r){if(t&1){let e=h();n(0,"button",14),f("click",function(){u(e);let i=d();return _(i.onReset())}),l(1," New "),o()}}function vt(t,r){if(t&1){let e=h();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=d();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=d();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=d();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=d();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=d();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=d();a(12),s("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 It(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=d().$implicit;s("ngClass",le(3,ht,p<i.Issues.length-1)),a(2),w(" ",e.Issue,". "),a(2),w("",e.Solution," ")}}function yt(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,It,5,5,"div",33,te),o()()),t&2){let e=r.$implicit;a(2),c(e.Name),a(2),c(e.Code),a(),ee("bg-gradient-success",e.Action=="New")("bg-gradient-warning",e.Action=="Update")("bg-gradient-danger",e.Action=="Error"),a(),w(" ",e.Action," "),a(2),ne(e.Issues)}}function Tt(t,r){if(t&1&&(y(0),n(1,"div",38)(2,"span"),l(3),o(),l(4,", "),n(5,"span"),l(6),o(),n(7,"span"),l(8),o(),n(9,"span"),l(10,"succesfully imported"),o()(),T()),t&2){let e=r.ngIf;a(3),w("",e==null?null:e.Summary.NewOutlet," New Outlets"),a(3),w("",e==null?null:e.Summary.UpdateOutlet," Updated Outlets"),a(2),w("and ",e==null?null:e.Summary.NewOutletGroup," New Outlet Group")}}function Mt(t,r){if(t&1&&(n(0,"div",13),x(1,"i",35),n(2,"h1",36),l(3,"Upload Complete!"),o(),C(4,Tt,11,3,"ng-container",37),g(5,"async"),o()),t&2){let e=d();a(4),s("ngIf",S(5,1,e.importPreview$))}}var qe=class t extends be{constructor(e,p){super(e);this.httpService=p;this.menuData$.subscribe()}pickAll=["All"];filterTreeCondition=["Unchanged","New","Error","Update"];importStepper;fileToImport=U(null);importPreview$;sampleUrl="https://cdn.dealpos.xyz/web-import-template/Outlet_Import_Template.csv";articleLink="https://support.dealpos.com/en/articles/11069092-import-new-outlet";currentState=U(0);confirmImport$;importPreview=U(null);dialog=E(Ie);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(H.previewImportOutlet,e).pipe(z(p=>{this.importPreview.set(p),this.importStepper.nextStep()}),j(1))}onImport(){this.confirmImport$=this.dialog.open(B,{data:{new:this.importPreview()?.Summary?.NewOutlet,update:this.importPreview()?.Summary?.UpdateOutlet,newOutletGroup:this.importPreview()?.Summary?.NewOutletGroup}}).afterClosed().pipe(K(e=>e==!0),J(()=>this.httpService.post(H.importOutlet,{CacheKey:this.importPreview()?.CacheKey})),z(e=>{this.importStepper.nextStep()}),Y(e=>(this.pickAll=[],this.filterTreeCondition=["Error"],q)),j(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(Ee),G(ge))};static \u0275cmp=I({type:t,selectors:[["app-outlet-import"]],viewQuery:function(p,i){if(p&1&&V(gt,5),p&2){let m;F(m=A())&&(i.importStepper=m.first)}},features:[Z],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"],[4,"ngIf"],[1,"d-flex","gap-2","fw-normal","fs-4","mt-2"]],template:function(p,i){if(p&1){let m=h();n(0,"mainpanel-cmp",2),y(1,3),C(2,xt,2,0,"button",4)(3,bt,4,10,"button",5)(4,wt,2,0,"button",4),T(),y(5,6),n(6,"pos-import-stepper",7,0),f("onDropFile",function(W){return u(m),_(i.onDropFile(W))})("onStateChange",function(W){return u(m),_(i.onStateChange(W))}),y(8,8),n(9,"p-table",9),g(10,"async"),g(11,"filterTree"),C(12,vt,33,5,"ng-template",10)(13,yt,10,9,"ng-template",11),o(),T(),y(14,12),C(15,Mt,6,3,"div",13),g(16,"async"),T(),o(),T(),o()}if(p&2){let m,v;s("pageData",i.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),a(2),b(i.currentState()==1?2:-1),a(),b(i.fileToImport()&&((m=i.fileToImport())==null?null:m.size)>0&&i.currentState()<2?3:-1),a(),b(i.currentState()===2?4:-1),a(2),s("sampleUrl",i.sampleUrl)("disabledEdit",i.currentState()===2)("articleLink",i.articleLink),a(3),s("value",ae(11,15,(v=S(10,13,i.importPreview$))==null?null:v.DataRow,i.filterTreeCondition))("scrollable",!0)("tableStyle",re(20,Ct)),a(6),b(S(16,18,i.confirmImport$)?15:-1)}},dependencies:[M,me,se,de,R,Ve,Ue,Ne,Ae,Ce,Oe,Pe,L,ue,_e,ke,De,Ge],encapsulation:2})};export{qe as OutletImportComponent};
|
|
1
|
+
import{a as Ge}from"./chunk-Z5N4EKJ3.js";import{a as Ae,f as Ne}from"./chunk-LC2G5X3T.js";import{b as Le,c as Re,d as Be,e as We,f as je,g as ze}from"./chunk-E3GQ2VEU.js";import"./chunk-7BU64MD2.js";import{b as $e}from"./chunk-YOKPVEGO.js";import"./chunk-I5K3C5EY.js";import"./chunk-OLALZT3L.js";import{d as Fe}from"./chunk-DWWBB3GE.js";import"./chunk-6N4AU5UX.js";import"./chunk-VZX4F3F5.js";import"./chunk-AXHXNBHV.js";import"./chunk-2NPKEKTC.js";import"./chunk-LHP3ECFW.js";import{b as xe}from"./chunk-72KIMU7G.js";import"./chunk-3RK6DDJD.js";import{a as he}from"./chunk-L2EDFSBR.js";import"./chunk-TEFNN3TY.js";import{d as Se}from"./chunk-N3XWBPCL.js";import"./chunk-JKYTSC2D.js";import"./chunk-HYW3PEDN.js";import"./chunk-TYLM2YM3.js";import{d as Pe,e as Oe,f as De,g as ke,h as Ue,i as Ve}from"./chunk-H3V5PSCN.js";import"./chunk-LMSUV4DF.js";import"./chunk-RBCKIP6D.js";import"./chunk-3LBZWLLT.js";import"./chunk-LZNTSIJX.js";import"./chunk-C6ARCDXZ.js";import{a as be,b as Ee}from"./chunk-P42NPBKN.js";import"./chunk-52EOLV7I.js";import"./chunk-5UL73W4S.js";import{u as ye,v as Te,w as Me}from"./chunk-FY5VLGQC.js";import"./chunk-CIBQBSM6.js";import{P as H}from"./chunk-IX5URHI7.js";import{e as we,f as ve,g as Ie}from"./chunk-ZZ7LHETD.js";import"./chunk-567HXZXC.js";import"./chunk-I7VBCYOO.js";import"./chunk-CGESXTHC.js";import"./chunk-2FWFPV5I.js";import{la as Ce}from"./chunk-TLOTIYIE.js";import{F as L,G as fe,h as ue,o as _e}from"./chunk-2RSBMS36.js";import"./chunk-2FXL2HDF.js";import"./chunk-246GVKUS.js";import"./chunk-AHCRE4GP.js";import"./chunk-WG2QGIET.js";import{$a as a,$b as A,Ac as S,Bc as ae,Db as b,E as K,Eb as te,Gb as ie,Hb as ne,I as Y,Ia as $,Ib as n,Ja as k,Jb as o,Kb as x,Lb as y,Ma as U,Mb as T,Ob as h,Qb as f,Rb as d,Sb as oe,Tb as Q,Wa as X,Wc as me,Y as j,Yd as ge,Zb as V,Zc as se,_b as F,aa as J,cd as de,db as G,dc as N,ec as l,fa as z,fc as c,gc as w,gd as ce,jc as P,jd as M,k as q,kb as I,kc as O,lc as D,na as E,ob as Z,qb as C,qc as re,rc as le,tc as pe,va as u,vb as s,wa as _,xb as ee,zc as g}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";var Ye=["stepperRef"],Je=[[["preview"]],[["complete"]]],Xe=["preview","complete"];function Ze(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function et(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function tt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function it(t,r){t&1&&(x(0,"i",8),n(1,"span"),l(2,"Upload"),o())}function nt(t,r){if(t&1){let e=h();n(0,"div",9)(1,"div",10)(2,"POS-uppy",11),f("fileUploaded",function(i){u(e);let m=d(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=d(2);a(2),s("sampleUrl",e.sampleUrl())("subtitle","Accepted file formats: .csv & max file size: 1 MB"),a(4),s("href",e.articleLink(),X)}}function ot(t,r){if(t&1&&C(0,nt,9,3,"div",9),t&2){d();let e=N(1);b(e.selectedIndex===0?0:-1)}}function rt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function lt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function pt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function at(t,r){t&1&&(x(0,"i",15),n(1,"span"),l(2,"Preview"),o())}function mt(t,r){t&1&&Q(0)}function st(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function dt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function ct(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function ut(t,r){t&1&&(x(0,"i",16),n(1,"span"),l(2,"Finish"),o())}function _t(t,r){t&1&&Q(0,1)}var R=class t{sampleUrl=k();articleLink=k();_onDropFile=$({alias:"onDropFile"});disabledEdit=k(!1);_onStateChange=$({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&&V(Ye,5),e&2){let i;F(i=A())&&(p._stepper=i.first)}},inputs:{sampleUrl:[1,"sampleUrl"],articleLink:[1,"articleLink"],disabledEdit:[1,"disabledEdit"]},outputs:{_onDropFile:"onDropFile",_onStateChange:"onStateChange"},ngContentSelectors:Xe,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=h();oe(Je),n(0,"mat-stepper",1,0),f("selectionChange",function(v){return u(i),_(p.onStepChange(v))}),n(2,"mat-step",2),C(3,Ze,1,1,"ng-template",3)(4,et,1,1,"ng-template",4)(5,tt,1,1,"ng-template",5)(6,it,3,0,"ng-template",6)(7,ot,1,1,"ng-template",7),o(),n(8,"mat-step",2),C(9,rt,1,1,"ng-template",3)(10,lt,1,1,"ng-template",4)(11,pt,1,1,"ng-template",5)(12,at,3,0,"ng-template",6)(13,mt,1,0,"ng-template",7),o(),n(14,"mat-step",2),C(15,st,1,1,"ng-template",3)(16,dt,1,1,"ng-template",4)(17,ct,1,1,"ng-template",5)(18,ut,3,0,"ng-template",6)(19,_t,1,0,"ng-template",7),o()()}e&2&&(s("linear",!0),a(2),s("completed",!1)("editable",!p.disabledEdit()),a(6),s("completed",!1)("editable",!p.disabledEdit()),a(6),s("completed",!1)("editable",!1))},dependencies:[M,Se,L,fe,he,xe,$e,Fe,ze,We,Le,je,Re,Be],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 B=class t{configModal=new ye;dialogRef=E(we);data=E(ve);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()}),x(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&&(s("config",p.configModal),a(12),c(S(13,4,p.data==null?null:p.data.new)),a(7),c(S(20,6,p.data==null?null:p.data.update)),a(7),c(S(27,8,p.data==null?null:p.data.newOutletGroup)))},dependencies:[M,ce,Me,Te],encapsulation:2})};var gt=["importStepper"],Ct=()=>({"min-width":"50rem"}),St=(t,r,e)=>({"btn-success":t,"btn-outline-secondary":r,"not-allowed":e}),ht=t=>({"mb-1":t});function xt(t,r){if(t&1){let e=h();n(0,"button",14),f("click",function(){u(e);let i=d();return _(i.onPreviousStep())}),l(1," Back "),o()}}function bt(t,r){if(t&1){let e=h();n(0,"button",15),g(1,"async"),g(2,"async"),f("click",function(){u(e);let i=d();return _(i.onNextStep())}),l(3," Next "),o()}if(t&2){let e,p,i=d();s("ngClass",pe(6,St,i.currentState()===1,i.currentState()!==1,!((e=S(1,2,i.importPreview$))!=null&&e.CanProceed)))("disabled",!((p=S(2,4,i.importPreview$))!=null&&p.CanProceed)&&i.currentState()===1)}}function wt(t,r){if(t&1){let e=h();n(0,"button",14),f("click",function(){u(e);let i=d();return _(i.onReset())}),l(1," New "),o()}}function vt(t,r){if(t&1){let e=h();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=d();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=d();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=d();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=d();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=d();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=d();a(12),s("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 It(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=d().$implicit;s("ngClass",le(3,ht,p<i.Issues.length-1)),a(2),w(" ",e.Issue,". "),a(2),w("",e.Solution," ")}}function yt(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,It,5,5,"div",33,te),o()()),t&2){let e=r.$implicit;a(2),c(e.Name),a(2),c(e.Code),a(),ee("bg-gradient-success",e.Action=="New")("bg-gradient-warning",e.Action=="Update")("bg-gradient-danger",e.Action=="Error"),a(),w(" ",e.Action," "),a(2),ne(e.Issues)}}function Tt(t,r){if(t&1&&(y(0),n(1,"div",38)(2,"span"),l(3),o(),l(4,", "),n(5,"span"),l(6),o(),n(7,"span"),l(8),o(),n(9,"span"),l(10,"succesfully imported"),o()(),T()),t&2){let e=r.ngIf;a(3),w("",e==null?null:e.Summary.NewOutlet," New Outlets"),a(3),w("",e==null?null:e.Summary.UpdateOutlet," Updated Outlets"),a(2),w("and ",e==null?null:e.Summary.NewOutletGroup," New Outlet Group")}}function Mt(t,r){if(t&1&&(n(0,"div",13),x(1,"i",35),n(2,"h1",36),l(3,"Upload Complete!"),o(),C(4,Tt,11,3,"ng-container",37),g(5,"async"),o()),t&2){let e=d();a(4),s("ngIf",S(5,1,e.importPreview$))}}var qe=class t extends be{constructor(e,p){super(e);this.httpService=p;this.menuData$.subscribe()}pickAll=["All"];filterTreeCondition=["Unchanged","New","Error","Update"];importStepper;fileToImport=U(null);importPreview$;sampleUrl="https://cdn.dealpos.xyz/web-import-template/Outlet_Import_Template.csv";articleLink="https://support.dealpos.com/en/articles/11069092-import-new-outlet";currentState=U(0);confirmImport$;importPreview=U(null);dialog=E(Ie);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(H.previewImportOutlet,e).pipe(z(p=>{this.importPreview.set(p),this.importStepper.nextStep()}),j(1))}onImport(){this.confirmImport$=this.dialog.open(B,{data:{new:this.importPreview()?.Summary?.NewOutlet,update:this.importPreview()?.Summary?.UpdateOutlet,newOutletGroup:this.importPreview()?.Summary?.NewOutletGroup}}).afterClosed().pipe(K(e=>e==!0),J(()=>this.httpService.post(H.importOutlet,{CacheKey:this.importPreview()?.CacheKey})),z(e=>{this.importStepper.nextStep()}),Y(e=>(this.pickAll=[],this.filterTreeCondition=["Error"],q)),j(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(Ee),G(ge))};static \u0275cmp=I({type:t,selectors:[["app-outlet-import"]],viewQuery:function(p,i){if(p&1&&V(gt,5),p&2){let m;F(m=A())&&(i.importStepper=m.first)}},features:[Z],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"],[4,"ngIf"],[1,"d-flex","gap-2","fw-normal","fs-4","mt-2"]],template:function(p,i){if(p&1){let m=h();n(0,"mainpanel-cmp",2),y(1,3),C(2,xt,2,0,"button",4)(3,bt,4,10,"button",5)(4,wt,2,0,"button",4),T(),y(5,6),n(6,"pos-import-stepper",7,0),f("onDropFile",function(W){return u(m),_(i.onDropFile(W))})("onStateChange",function(W){return u(m),_(i.onStateChange(W))}),y(8,8),n(9,"p-table",9),g(10,"async"),g(11,"filterTree"),C(12,vt,33,5,"ng-template",10)(13,yt,10,9,"ng-template",11),o(),T(),y(14,12),C(15,Mt,6,3,"div",13),g(16,"async"),T(),o(),T(),o()}if(p&2){let m,v;s("pageData",i.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),a(2),b(i.currentState()==1?2:-1),a(),b(i.fileToImport()&&((m=i.fileToImport())==null?null:m.size)>0&&i.currentState()<2?3:-1),a(),b(i.currentState()===2?4:-1),a(2),s("sampleUrl",i.sampleUrl)("disabledEdit",i.currentState()===2)("articleLink",i.articleLink),a(3),s("value",ae(11,15,(v=S(10,13,i.importPreview$))==null?null:v.DataRow,i.filterTreeCondition))("scrollable",!0)("tableStyle",re(20,Ct)),a(6),b(S(16,18,i.confirmImport$)?15:-1)}},dependencies:[M,me,se,de,R,Ve,Ue,Ne,Ae,Ce,Oe,Pe,L,ue,_e,ke,De,Ge],encapsulation:2})};export{qe as OutletImportComponent};
|