marketplacepos 5.27.1 → 5.30.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/Marketplace/{chunk-FBBV333P.js → chunk-2BQOICNG.js} +1 -1
- package/Marketplace/{chunk-J73WANXO.js → chunk-2H6ZWOFG.js} +1 -1
- package/Marketplace/{chunk-QPOKPYKN.js → chunk-2RI4B7LO.js} +1 -1
- package/Marketplace/{chunk-LFO4SCWH.js → chunk-4BUKVDBU.js} +1 -1
- package/Marketplace/{chunk-PFSBYBSC.js → chunk-4JOPLIQJ.js} +1 -1
- package/Marketplace/{chunk-VO7GA6OK.js → chunk-6CB4LR3W.js} +1 -1
- package/Marketplace/{chunk-KPJODN5E.js → chunk-7UOJBC4V.js} +1 -1
- package/Marketplace/{chunk-7K2MZBIS.js → chunk-CIRDMGSF.js} +1 -1
- package/Marketplace/{chunk-46R7IHUN.js → chunk-DUUSY6VM.js} +1 -1
- package/Marketplace/{chunk-2YMECMSR.js → chunk-DXYJV443.js} +1 -1
- package/Marketplace/{chunk-YH6ZV7UM.js → chunk-FOM2CM2O.js} +1 -1
- package/Marketplace/{chunk-7MJLGWGO.js → chunk-GBMUF46A.js} +1 -1
- package/Marketplace/chunk-GJ74CI7M.js +2 -0
- package/Marketplace/{chunk-BH24WP3G.js → chunk-HOQSPMPT.js} +1 -1
- package/Marketplace/{chunk-H34Q3GYZ.js → chunk-HUXTG7WF.js} +1 -1
- package/Marketplace/{chunk-5MDJ736Z.js → chunk-I2TLXLNK.js} +1 -1
- package/Marketplace/{chunk-CBTOH6MR.js → chunk-IDQSVSAG.js} +1 -1
- package/Marketplace/{chunk-WX2SZ2RT.js → chunk-J35KGN2V.js} +1 -1
- package/Marketplace/{chunk-B5G3NXGZ.js → chunk-L5FWRRHO.js} +1 -1
- package/Marketplace/{chunk-W2YE2TMM.js → chunk-MYO55CG2.js} +1 -1
- package/Marketplace/{chunk-F56CFYMK.js → chunk-NLVUCMGP.js} +1 -1
- package/Marketplace/{chunk-EIVRD47O.js → chunk-POBTFM62.js} +1 -1
- package/Marketplace/{chunk-RJQGJK46.js → chunk-R6KGFJJ4.js} +1 -1
- package/Marketplace/{chunk-BGVNHOVR.js → chunk-TFGY2CZB.js} +1 -1
- package/Marketplace/{chunk-PKLEOUHF.js → chunk-U4LZH7TG.js} +1 -1
- package/Marketplace/{chunk-WG37UJWV.js → chunk-UUFP2LR3.js} +1 -1
- package/Marketplace/{chunk-YS4NTLQO.js → chunk-UWMOSIYY.js} +1 -1
- package/Marketplace/{chunk-SBRCDNLE.js → chunk-V7DEJOKT.js} +1 -1
- package/Marketplace/{chunk-5GM7EMCW.js → chunk-VAMLKDPP.js} +1 -1
- package/Marketplace/{chunk-LEUYZTMQ.js → chunk-VEZAEJT2.js} +2 -2
- package/Marketplace/{chunk-WU6F5N6K.js → chunk-VRAUYPKY.js} +1 -1
- package/Marketplace/{chunk-4A32CGYJ.js → chunk-WHPQD3IT.js} +1 -1
- package/Marketplace/{chunk-3Q2URG6A.js → chunk-YVBVZE4E.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-7O2YU7WU.js → main-LTGHVS57.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-W56SA7JQ.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as re}from"./chunk-RENQ3YZH.js";import{a as de,b as me}from"./chunk-LJHZMQZD.js";import"./chunk-MY4B7K3R.js";import"./chunk-FGPSBTFS.js";import"./chunk-ADRVUMMW.js";import{a as ae,b as le}from"./chunk-WT6W7RAQ.js";import"./chunk-BQ7NR3ET.js";import"./chunk-FMV4LYKN.js";import"./chunk-HCDKYABV.js";import{a as $,b as ee,d as te,e as ie}from"./chunk-CCXKODFV.js";import{j as Z}from"./chunk-
|
|
1
|
+
import{a as re}from"./chunk-RENQ3YZH.js";import{a as de,b as me}from"./chunk-LJHZMQZD.js";import"./chunk-MY4B7K3R.js";import"./chunk-FGPSBTFS.js";import"./chunk-ADRVUMMW.js";import{a as ae,b as le}from"./chunk-WT6W7RAQ.js";import"./chunk-BQ7NR3ET.js";import"./chunk-FMV4LYKN.js";import"./chunk-HCDKYABV.js";import{a as $,b as ee,d as te,e as ie}from"./chunk-CCXKODFV.js";import{j as Z}from"./chunk-VAMLKDPP.js";import{e as X}from"./chunk-E3NPUJ23.js";import"./chunk-KCDL7SWP.js";import{m as ne,n as oe}from"./chunk-BO4PPSB5.js";import"./chunk-HUUFOAKH.js";import"./chunk-E5GGIVK7.js";import{c as G,h as H,m as Y,o as J,y as K}from"./chunk-BSN7ZAXG.js";import{c as Q}from"./chunk-64G3XLI6.js";import{p as j,r as q}from"./chunk-OVEJFFL6.js";import{$b as v,Bd as A,Cd as U,Da as c,Ea as u,Eb as C,Gb as p,Gc as T,Hc as F,Ic as R,Jc as W,Sb as e,Tb as t,Ub as S,Vb as x,Wb as P,Yb as O,bc as M,gb as D,jb as r,kb as E,mc as I,nc as a,oc as y,pc as b,rc as h,sc as f,ta as L,tc as _,ud as B,vc as N,vd as k,xc as V,zd as z}from"./chunk-PQDPS2ID.js";import"./chunk-GNOSNGXM.js";var pe=l=>({ID:l});function se(l,m){if(l&1&&(e(0,"span",17),S(1,"img",18),t(),a(2)),l&2){let i=m.item;r(),p("src",i.Img,D)("alt",i.Name),r(),b(" ",i.Name," ")}}function ge(l,m){if(l&1&&(e(0,"tr")(1,"td"),a(2),t(),e(3,"td"),S(4,"img",28),t(),e(5,"td"),a(6),t(),e(7,"td",29)(8,"a",30),a(9),T(10,"number"),t()(),e(11,"td"),a(12),t(),e(13,"td"),a(14),T(15,"date"),t()()),l&2){let i=m.$implicit;r(2),y(i._source.ChannelName),r(2),p("src",i.logo,D),r(2),y(i._source.DateRange),r(2),p("queryParams",V(12,pe,i._source.ID)),r(),b(" ",F(10,7,i._source.CountOrder)," "),r(3),y(i._source.UserLogin),r(2),b(" ",R(15,9,i._source["@timestamp_received"],"dd MMM yyyy hh:mm")," ")}}function ce(l,m){if(l&1){let i=O();x(0),e(1,"div",19)(2,"table",20)(3,"thead")(4,"tr",21)(5,"th",22),a(6,"Channel"),t(),e(7,"th",23),a(8,"Type"),t(),e(9,"th",24),a(10,"Download Date Range"),t(),e(11,"th",25),a(12,"Count"),t(),e(13,"th"),a(14,"User Login"),t(),e(15,"th"),a(16,"Created"),t()()(),e(17,"tbody"),C(18,ge,16,14,"tr",26),t()(),e(19,"mat-paginator",27),v("page",function(s){c(i);let n=M();return u(n.onPaginationChange(s))}),t()(),P()}if(l&2){let i=M();r(18),p("ngForOf",i.downloadOrders),r(),p("length",i.paginationTotal)("pageSize",i.paginationPageSize)("pageIndex",(i.filter==null?null:i.filter.PageNumber)==0?0:(i.filter==null?null:i.filter.PageNumber)-1)}}function ue(l,m){l&1&&(e(0,"div",31),S(1,"app-empty-state"),t())}var Ve=(()=>{let m=class m{constructor(d,s){this.http=d,this.authService=s,this.filter={PageNumber:0,RowCount:20,ChannelID:"",From:"",To:""},this.channelOptions=this.authService.getChannels(),this.onGetLoader()}onGetLoader(){this.http.post("/api/OrdersLoader/OrderLogsLoader",{}).subscribe(d=>{this.filter=d.Filter,this.getDownloadOrders()})}getDownloadOrders(){this.http.post("api/Orders/OrderLogsPaged",this.filter).subscribe(d=>{this.downloadOrders=d.hits,this.setChannelLogo(),this.paginationTotal=d.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}setChannelLogo(){this.downloadOrders=this.downloadOrders.map(d=>(d.logo=Q.getChannelLogoByTypeId(d._source.TypeID),d))}onPaginationChange(d){this.filter.PageNumber=d.pageIndex+1,this.getDownloadOrders()}};m.\u0275fac=function(s){return new(s||m)(E(X),E(Z))},m.\u0275cmp=L({type:m,selectors:[["app-download-order-log"]],standalone:!0,features:[N],decls:29,vars:10,consts:[["EMPTY_STATE",""],["headerTitle","Download Order Log",3,"onSubmit","hideSearchBox"],[1,"fw-bold","mb-2"],["bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel","appendTo","body",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","RowCount",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],[2,"width","200px"],[1,"text-end",2,"width","200px"],[4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],[2,"width","25px",3,"src"],[1,"text-end"],["routerLink","/menu/Order/Download_Order_Log/Detail",3,"queryParams"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(s,n){if(s&1){let g=O();e(0,"mainpanel",1),v("onSubmit",function(){return c(g),u(n.getDownloadOrders())}),e(1,"filters")(2,"div")(3,"label",2),a(4,"Channel"),t(),e(5,"ng-select",3),_("ngModelChange",function(o){return c(g),f(n.filter.ChannelID,o)||(n.filter.ChannelID=o),u(o)}),C(6,se,3,3,"ng-template",4),t()(),e(7,"div",5)(8,"label",6),a(9,"From/To"),t(),e(10,"div",7)(11,"datepicker",8),_("dateChange",function(o){return c(g),f(n.filter.From,o)||(n.filter.From=o),u(o)}),t()(),e(12,"div")(13,"datepicker",9),_("dateChange",function(o){return c(g),f(n.filter.To,o)||(n.filter.To=o),u(o)}),t()()(),e(14,"div",5)(15,"label",10),a(16,"Page Number"),t(),e(17,"input",11),_("ngModelChange",function(o){return c(g),f(n.filter.PageNumber,o)||(n.filter.PageNumber=o),u(o)}),t()(),e(18,"div",5)(19,"label",10),a(20,"Page Size"),t(),e(21,"input",12),_("ngModelChange",function(o){return c(g),f(n.filter.RowCount,o)||(n.filter.RowCount=o),u(o)}),t()()(),e(22,"content")(23,"div",13)(24,"div",14)(25,"div",15),C(26,ce,20,4,"ng-container",16)(27,ue,2,0,"ng-template",null,0,W),t()()()()()}if(s&2){let g=I(28);p("hideSearchBox",!0),r(5),p("clearable",!0)("items",n.channelOptions),h("ngModel",n.filter.ChannelID),r(6),h("date",n.filter.From),r(2),h("date",n.filter.To),r(4),h("ngModel",n.filter.PageNumber),r(4),h("ngModel",n.filter.RowCount),r(5),p("ngIf",(n.downloadOrders==null?null:n.downloadOrders.length)>0)("ngIfElse",g)}},dependencies:[U,B,k,A,z,le,ae,oe,ne,ie,te,$,ee,K,G,J,H,Y,me,de,q,j,re]});let l=m;return l})();export{Ve as DownloadOrderLogComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as B}from"./chunk-
|
|
1
|
+
import{a as B}from"./chunk-L5FWRRHO.js";import{a as vt}from"./chunk-7KG3DC5J.js";import{a as $}from"./chunk-6YZFSP2B.js";import{a as st,b as ft,d as ut,e as gt}from"./chunk-CCXKODFV.js";import{j as dt}from"./chunk-VAMLKDPP.js";import{e as pt}from"./chunk-E3NPUJ23.js";import"./chunk-KCDL7SWP.js";import{m as k,n as ht}from"./chunk-BO4PPSB5.js";import"./chunk-HUUFOAKH.js";import"./chunk-E5GGIVK7.js";import{h as rt,m as lt,y as mt}from"./chunk-BSN7ZAXG.js";import{c as ct}from"./chunk-64G3XLI6.js";import{m as at,p as F,r as R}from"./chunk-OVEJFFL6.js";import{$b as V,Bd as P,Cd as L,Da as N,Ea as E,Eb as u,Gb as p,Gc as s,Hc as _,Ic as S,Jc as it,Sb as r,Tb as o,Ub as D,Vb as g,Wb as h,Yb as G,Z as j,aa as q,bc as f,ca as U,ec as J,f as z,fb as W,gb as H,jb as m,ka as I,kb as v,mc as K,nc as l,oc as d,pc as x,rc as Q,sc as X,sd as nt,ta as y,tc as Y,ua as b,ud as ot,v as C,vd as T,wc as Z,xc as tt,yc as et,yd as w,zd as M}from"./chunk-PQDPS2ID.js";import"./chunk-GNOSNGXM.js";var Et=(t,e)=>({"bg-gradient-danger":t,"bg-gradient-warning":e}),Dt=()=>["/menu/notification/detail"],Tt=t=>({ID:t});function wt(t,e){if(t&1&&(r(0,"span",14),D(1,"img",15),o(),l(2)),t&2){let n=e.item;m(),p("src",n.Img,H)("alt",n.Name),m(),x(" ",n.Name," ")}}function Mt(t,e){if(t&1&&(g(0),l(1),s(2,"number"),r(3,"span"),l(4,"s"),o(),h()),t&2){let n=f().$implicit;m(),x(" ",S(2,1,n.DurationInSecond,"1.1-1")," ")}}function Pt(t,e){t&1&&l(0," - ")}function Lt(t,e){if(t&1&&(g(0),r(1,"tr",16)(2,"td")(3,"a",17),D(4,"img",18),r(5,"span"),l(6),o()()(),r(7,"td")(8,"b"),l(9),o(),D(10,"div",19),o(),r(11,"td"),u(12,Mt,5,4,"ng-container",20)(13,Pt,1,0,"ng-template",null,0,it),o(),r(15,"td"),l(16),o(),r(17,"td"),l(18),s(19,"date"),o()(),h()),t&2){let n=e.$implicit,a=K(14);m(),p("ngClass",et(14,Et,n.Status==1,n.Status==0)),m(2),p("routerLink",Z(17,Dt))("queryParams",tt(18,Tt,n.ID)),m(),J("src",n.Img,H),m(2),d(n.Name),m(3),d(n.Label),m(),p("innerHTML",n.Message,W),m(2),p("ngIf",n.DurationInSecond)("ngIfElse",a),m(4),d(n.StatusLabel),m(2),d(S(19,11,n.Created,"dd MMM yyyy HH:mm"))}}function Ft(t,e){if(t&1){let n=G();g(0),r(1,"div",6)(2,"div",21)(3,"app-custom-paginator",22),s(4,"async"),s(5,"async"),V("total",function(){N(n);let i=f(2);return E(i.getRowCount())})("next",function(){N(n);let i=f(2);return E(i.getNotifications())})("previous",function(){N(n);let i=f(2);return E(i.getNotifications())}),o()()(),h()}if(t&2){let n=f().ngIf,a=f();m(3),p("filter",a.filter)("totaldata",n==null?null:n.length)("paginationTotal",_(4,4,a.rowCount$))("hasClicked",_(5,6,a.rowCount$))}}function Rt(t,e){if(t&1&&(g(0),u(1,Ft,6,8,"ng-container",13),h()),t&2){let n=e.ngIf;m(),p("ngIf",n.length>0)}}var _t=(()=>{let e=class e{constructor(a,i,c){this.http=a,this.notificationService=i,this.authService=c,this.filter=new vt,this.destroy$=new z,this.channelOptions=c.getChannels()}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe(U(this.destroy$)).subscribe(a=>{a.length>0&&(this.getNotifications(),this.notificationService.clearNotification())})}initPageLoader(){this.http.post("/api/notification/Load",{}).subscribe(a=>{this.filter=a.Filter,this.filter.PageSize=this.filter.RowCount,this.getNotifications()})}onFilter(){this.rowCount$=null,this.getNotifications()}getNotifications(){let a={ChannelID:this.filter.ChannelID,RowCount:this.filter.PageSize,PageNumber:this.filter.PageNumber};this.notifications$=this.http.post("/api/notification/Get",a).pipe(C(i=>i.Data),C(i=>(i=this.setChannelLogoToNotifications(i),i=this.setTimeToSecond(i),i)),j(1))}setTimeToSecond(a){return a=a.map(i=>(i.DurationInSecond=parseInt(i.Duration)/1e3,i)),a}setChannelLogoToNotifications(a){return a=a.map(i=>(i.Img=ct.getChannelLogoByTypeId(i.TypeID),i)),a}getRowCount(){let a={ChannelID:this.filter.ChannelID};this.rowCount$=this.http.post("/api/notification/RowCount",a).pipe(C(i=>i.Count),j(1))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};e.\u0275fac=function(i){return new(i||e)(v(pt),v(B),v(dt))},e.\u0275cmp=y({type:e,selectors:[["app-notification"]],decls:30,vars:9,consts:[["timeNotAvailable",""],["headerTitle","Notification","hideSearchBox","true",3,"onSubmit"],[1,"mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[3,"ngClass"],[3,"routerLink","queryParams"],["alt","",1,"channelLogo-md","me-4",3,"src"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],[1,"col-12"],[3,"total","next","previous","filter","totaldata","paginationTotal","hasClicked"]],template:function(i,c){i&1&&(r(0,"mainpanel",1),V("onSubmit",function(){return c.onFilter()}),r(1,"filters")(2,"div")(3,"h6",2),l(4,"Channel"),o(),r(5,"ng-select",3),Y("ngModelChange",function(O){return X(c.filter.ChannelID,O)||(c.filter.ChannelID=O),O}),u(6,wt,3,3,"ng-template",4),o()()(),r(7,"content")(8,"div",5)(9,"div",6)(10,"div",7)(11,"div",8)(12,"table",9)(13,"thead",10)(14,"tr",11)(15,"th"),l(16,"Channel"),o(),r(17,"th"),l(18,"Process"),o(),r(19,"th"),l(20,"Duration"),o(),r(21,"th"),l(22,"Status"),o(),r(23,"th"),l(24,"Created"),o()()(),r(25,"tbody"),u(26,Lt,20,20,"ng-container",12),s(27,"async"),o()()()()(),u(28,Rt,2,1,"ng-container",13),s(29,"async"),o()()()),i&2&&(m(5),p("clearable",!0)("items",c.channelOptions),Q("ngModel",c.filter.ChannelID),m(21),p("ngForOf",_(27,5,c.notifications$)),m(2),p("ngIf",_(29,7,c.notifications$)))},dependencies:[nt,ot,T,ut,st,ft,rt,lt,k,F,$,w,P,M]});let t=e;return t})();function Bt(t,e){if(t&1&&(r(0,"div",10)(1,"div",13)(2,"div",7)(3,"h5"),l(4,"Perflog"),o()(),r(5,"div",8)(6,"div",14)(7,"div",15)(8,"pre"),l(9),o()()()()()()),t&2){let n=f().ngIf;m(9),d(n.Perflog)}}function kt(t,e){if(t&1&&(g(0),r(1,"div",17)(2,"div",13)(3,"div",7)(4,"h5"),l(5,"StackTrace"),o()(),r(6,"div",8)(7,"div",14)(8,"div",15)(9,"pre"),l(10),o()()()()()(),h()),t&2){let n=f().ngIf;m(10),d(n==null?null:n.StackTrace)}}function $t(t,e){if(t&1&&(g(0),r(1,"mainpanel",1)(2,"actions")(3,"a",2),l(4,"Back"),o()(),r(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h5"),l(12,"General"),o()(),r(13,"div",8)(14,"div",9)(15,"div",10)(16,"div",11)(17,"label"),l(18,"Created Date"),o(),r(19,"div")(20,"span"),l(21),s(22,"date"),o()()()(),r(23,"div",10)(24,"div",11)(25,"label"),l(26,"Status"),o(),r(27,"div")(28,"span"),l(29),o()()()()(),r(30,"div",12)(31,"div",10)(32,"div",11)(33,"label"),l(34,"Duration"),o(),r(35,"div")(36,"span"),l(37),s(38,"number"),o()()()(),r(39,"div",10)(40,"div",11)(41,"label"),l(42,"Label"),o(),r(43,"div")(44,"span"),l(45),o()()()()()()()()(),r(46,"div",4)(47,"div",10)(48,"div",13)(49,"div",7)(50,"h5"),l(51,"Message"),o()(),r(52,"div",8)(53,"div",14)(54,"div",15)(55,"pre"),l(56),o()()()()()(),u(57,Bt,10,1,"div",16)(58,kt,11,1,"ng-container",0),o()()()(),h()),t&2){let n=e.ngIf;m(),p("headerTitle","Notification "+n.Name)("hideSearchBox",!0)("hideSearchDropdown",!0),m(20),d(S(22,10,n.Created,"dd MMM yyyy HH:mm:ss")),m(8),d(n.StatusLabel),m(8),x("",S(38,13,n.DurationInSecond,"1.1-1")," s"),m(8),d(n.Label),m(11),d(n.Message),m(),p("ngIf",n==null?null:n.Perflog),m(),p("ngIf",n==null?null:n.StackTrace)}}var Ct=(()=>{let e=class e{constructor(a,i){this.activatedRoute=a,this.notificationService=i}ngOnInit(){this.notification$=this.activatedRoute.queryParams.pipe(q(a=>{let i=a.ID;return this.notificationService.getNotificationDetail(i).pipe(C(c=>(c.DurationInSecond=parseInt(c.Duration)/1e3,c)))}))}};e.\u0275fac=function(i){return new(i||e)(v(at),v(B))},e.\u0275cmp=y({type:e,selectors:[["app-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/notification",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-8"],[1,"row"],[1,"col-12"],[1,"card","mb-8"],[1,"card-header"],[1,"card-body"],[1,"row","mt-6"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-4"],[1,"card"],[1,"col-sm-12","mt-2"],[1,"form-group"],["class","col-sm-6",4,"ngIf"],[1,"col-sm-12"]],template:function(i,c){i&1&&(u(0,$t,59,16,"ng-container",0),s(1,"async")),i&2&&p("ngIf",_(1,1,c.notification$))},dependencies:[T,k,F,w,P,M]});let t=e;return t})();var Ot=[{path:"",component:_t},{path:"detail",component:Ct}],St=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=b({type:e}),e.\u0275inj=I({imports:[L,R.forChild(Ot)]});let t=e;return t})();var se=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=b({type:e}),e.\u0275inj=I({imports:[L,St,gt,mt,ht,R,$]});let t=e;return t})();export{se as NotificationModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as he}from"./chunk-NNQLRLNB.js";import"./chunk-O4CRP4WO.js";import{a as ce}from"./chunk-
|
|
1
|
+
import{a as he}from"./chunk-NNQLRLNB.js";import"./chunk-O4CRP4WO.js";import{a as ce}from"./chunk-7UOJBC4V.js";import{a as se}from"./chunk-7LZ5ZSXM.js";import{a as F}from"./chunk-XHAXYWZ7.js";import{b as pe,c as V}from"./chunk-DLNXH2FE.js";import"./chunk-BVIRHZTZ.js";import"./chunk-N6IHFFFZ.js";import"./chunk-PD4CUVAW.js";import"./chunk-IJYSJN63.js";import"./chunk-X5Q6FPWS.js";import"./chunk-46AOM3SM.js";import"./chunk-JXTGH22T.js";import"./chunk-OULUJ2IO.js";import"./chunk-GCKSYCMI.js";import{a as le}from"./chunk-N32A3EYJ.js";import"./chunk-ADRVUMMW.js";import"./chunk-XFTUE2ST.js";import"./chunk-HCDKYABV.js";import{j as M}from"./chunk-VAMLKDPP.js";import{b as te,e as ne}from"./chunk-E3NPUJ23.js";import"./chunk-KCDL7SWP.js";import{d as ie,l as ae,m as oe,n as re}from"./chunk-BO4PPSB5.js";import"./chunk-HUUFOAKH.js";import"./chunk-E5GGIVK7.js";import{c as q,h as X,m as Y,o as Z,y as ee}from"./chunk-BSN7ZAXG.js";import{c as D}from"./chunk-64G3XLI6.js";import"./chunk-OVEJFFL6.js";import{$b as C,Cd as K,Da as b,Ea as P,Eb as I,G as B,Gb as d,Gc as v,Hc as y,Sb as c,Tb as p,Ub as U,Vb as G,Wb as W,Xb as H,Yb as N,bc as g,ea as k,ja as j,jb as h,kb as m,nc as _,pa as S,rc as L,sc as T,ta as A,tc as E,uc as z,vc as $,vd as Q,xb as w,yd as J}from"./chunk-PQDPS2ID.js";import{a as R,b as x}from"./chunk-GNOSNGXM.js";var O=(()=>{let r=class r{constructor(){this.authService=S(M),this.channelOptions=this.authService.getChannels()}filterSelectedChannels(t,i){let e=Object.assign([],this.channelOptions),n=[],a;return t.forEach(o=>{a=e.find(s=>s.ID==o?.parent?.id),a&&(a=x(R({},a),{Name:`${o?.parent?.label} - ${o?.label}`,LocationID:o?.id}),n.push(a))}),i.forEach(o=>{a=e.find(s=>s.ID==o.id),a&&n.push(a)}),n}generateFilterLocation(t,i){let e=[],n=[],a=[];return t.length>0?(e=t.map(o=>o.id),n=t.map(o=>o.parent.id).filter((o,s,f)=>f.indexOf(o)===s)):(e=[],n=[]),a=i.map(o=>o.id),a=a.concat(n).filter((o,s,f)=>f.indexOf(o)===s),{locationIds:e,channelIds:a}}};r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=j({token:r,factory:r.\u0275fac});let l=r;return l})();function ue(l,r){if(l&1){let u=N();c(0,"button",15),C("click",function(){b(u);let i=g().ngIf,e=g();return P(e.onUpdateItems(i))}),U(1,"i",16),_(2," Update "),p()}}function me(l,r){if(l&1&&(c(0,"actions")(1,"div",13),I(2,ue,3,0,"button",14),p()()),l&2){let u=r.ngIf,t=g();h(2),d("ngIf",t.productService.hasSelectionVariant(u))}}function ge(l,r){l&1&&H(0)}function Ce(l,r){if(l&1){let u=N();G(0),c(1,"app-table",17),C("onToggle",function(i){b(u);let e=g();return P(e.onShowDifferenceStock(i))})("onSubmit",function(i){b(u);let e=g();return P(e.updateStockByVariant(i))}),p(),W()}if(l&2){let u=r.ngIf,t=g();h(),d("data",u)("channel",t.channels())("showProductToggle",!0)("hiddenIPOSInventory",t.searchFilter.HiddenIPOSInventory)}}var $e=(()=>{let r=class r{constructor(t,i,e,n,a,o){this.http=t,this.toastr=i,this.dialog=e,this.productService=n,this.authService=a,this.mainPanelService=o,this.paginationService=S(V),this.multiChannelService=S(O),this.searchFilter={PageNumber:1,RowCount:100},this.loaderEndpoint="InventoryLoader/GetMultipleInventoryComparison",this.dataEndpoint="Inventory/GetMultipleChannelComparison",this.allDataCountEndpoint="Inventory/GetMultipleChannelComparisonRowCount",this.selectedLocations=w([]),this.selectedChannels=w([]),this.channels=w([]),this.pageData={Title:"Inventory",Nav:[{Title:"Inventory Cache",Url:"/menu/inventory/pos",Active:!0},{Title:"Inventory Realtime",Url:"/menu/inventory/realtime",Active:!1}]},this.channelOptions=this.authService.getChannels()}ngOnInit(){this.initPageLoader()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.dataEndpoint,this.paginationService.fethRowCountEndpoint=this.allDataCountEndpoint,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`,{}).pipe(k(t=>{t.Filter={PageNumber:t.Filter.PageNumber,filterModel:F.ALL,RowCount:t.Filter.PageSize,HiddenIPOSInventory:t.Filter.HiddenIPOSInventory},this.searchFilter=t.Filter,this.mainPanelService.openModalFilter()}))}onChannelChange(t=[]){let i=t.filter(n=>D.isValidGUID(n.id)==!1),e=t.filter(n=>D.isValidGUID(n.id));this.selectedLocations.set(i),this.selectedChannels.set(e)}onSearch(t){let i=this.multiChannelService.filterSelectedChannels(this.selectedLocations(),this.selectedChannels());this.channels.set(i);let e=this.multiChannelService.generateFilterLocation(this.selectedLocations(),this.selectedChannels());this.searchFilter.ListChannelID=e.channelIds,this.searchFilter.ListLocationID=e.locationIds,this.searchFilter.text=t,this.paginationService.reloadPagination(this.searchFilter)}updateStock(t,i){let e=this.productService.selectedVariantProduct(t);if(e.length>0){let n=[];e.forEach(s=>{s.Channel?.forEach(f=>{n.push({ID:s.ID,Code:s.Code,Inventory:s.Inventory,LocationID:f.LocationID})})});let o={ListChannelID:i.filter(s=>s.selected).map(s=>s.ID),List:n};this.http.post("/api/Inventory/UpdateChannel",o).subscribe(s=>{this.paginationService.reloadPagination(this.searchFilter),this.toastr.success("Successfully updated "+o.List.length+" variants in "+o.ListChannelID.length+" channels","Success")})}}updateStockByVariant(t){let i={ID:t.ChannelID,ChannelItemID:t.ChannelItemID,ChannelVariantID:t.ChannelVariationID,NewQuantity:parseFloat(t.Inventory),VariantID:t.ID,SKU:t.Sku,LocationID:t.LocationID};this.http.post("/api/Inventory/UpdateQuantityByItem",i).subscribe(e=>{this.paginationService.reloadPagination(this.searchFilter);let n=this.productService.findChannelById(i.ID,this.channelOptions);this.toastr.success("Successfully updated "+t.ItemName+"("+t.VarName+") inventory in "+n.Name+" to "+i.NewQuantity,"Success")})}onShowDifferenceStock(t){t?this.searchFilter.filterModel=F.DIFFERENCE:this.searchFilter.filterModel=F.ALL,this.paginationService.reloadPagination(this.searchFilter)}onUpdateItems(t){let i=this.productService.selectedVariantProduct(t),e=this.channelOptions.filter(n=>this.channels()?.find(a=>a.ID===n.ID));this.dialog.open(se,{data:{selectedItems:i,channels:JSON.parse(JSON.stringify(e))},width:"400px"}).afterClosed().pipe(B(n=>D.IsNotEmpty(n))).subscribe(n=>{this.updateStock(t,n)})}};r.\u0275fac=function(i){return new(i||r)(m(ne),m(te),m(ie),m(le),m(M),m(ae))},r.\u0275cmp=A({type:r,selectors:[["app-multi-channel-comparison"]],standalone:!0,features:[z([V,O]),$],decls:26,vars:22,consts:[["headerTitle","Inventory Comparison","textButton","Search",3,"onSubmit","pageData","hideSearchBox"],[4,"ngIf"],["for","selectChannel",1,"fw-bold","mb-3"],["id","selectChannel",3,"onChannelChange","multiple"],[1,"mt-5"],["for","PageNumber",1,"fw-bold"],["type","number","id","PageNumber","placeholder","PageNumber","name","PageNumber","data-toggle","tooltip","matTooltip","Page Number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],["for","RowCount",1,"fw-bold"],["type","number","id","RowCount","placeholder","Page Size","name","RowCount","data-toggle","tooltip","matTooltip","Page Size",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],[1,"d-flex"],["type","button","class","btn btn-success shadow-sm rounded me-3",3,"click",4,"ngIf"],["type","button",1,"btn","btn-success","shadow-sm","rounded","me-3",3,"click"],[1,"fas","fa-chevron-circle-up"],["table","inventory",3,"onToggle","onSubmit","data","channel","showProductToggle","hiddenIPOSInventory"]],template:function(i,e){i&1&&(c(0,"mainpanel",0),C("onSubmit",function(a){return e.onSearch(a)}),I(1,me,3,1,"actions",1),v(2,"async"),c(3,"filters"),I(4,ge,1,0,"ng-container",1),v(5,"async"),c(6,"div")(7,"label",2),_(8,"Channel"),p(),c(9,"multiwarehouse-tree-select",3),C("onChannelChange",function(a){return e.onChannelChange(a)}),p()(),c(10,"div",4)(11,"label",5),_(12,"PageNumber"),p(),c(13,"input",6),E("ngModelChange",function(a){return T(e.searchFilter.PageNumber,a)||(e.searchFilter.PageNumber=a),a}),p()(),c(14,"div",4)(15,"label",7),_(16,"Page Size"),p(),c(17,"input",8),E("ngModelChange",function(a){return T(e.searchFilter.RowCount,a)||(e.searchFilter.RowCount=a),a}),p()()(),c(18,"content")(19,"div",9)(20,"div",10)(21,"div",11),I(22,Ce,2,4,"ng-container",1),v(23,"async"),c(24,"infinite-paginator",12),v(25,"async"),C("onNextPage",function(){return e.paginationService.onNextPage(e.searchFilter)})("onLastPage",function(){return e.paginationService.onLastPage(e.searchFilter)})("onGetRowCount",function(){return e.paginationService.getRowCount(e.searchFilter)}),p()()()()()()),i&2&&(d("pageData",e.pageData)("hideSearchBox",!1),h(),d("ngIf",y(2,14,e.paginationService.data$)),h(3),d("ngIf",y(5,16,e.loader$)),h(5),d("multiple",!0),h(4),L("ngModel",e.searchFilter.PageNumber),h(4),L("ngModel",e.searchFilter.RowCount),h(5),d("ngIf",y(23,18,e.paginationService.data$)),h(2),d("totalData",e.paginationService.totalData())("hideCount",e.paginationService.hideCount())("rowCount",y(25,20,e.paginationService.totalRowCount$))("pageNumber",e.paginationService.pageNumber())("disableNextButton",e.paginationService.disableNextButton())("goToLastPage",e.paginationService.isLastPage()))},dependencies:[K,Q,J,re,oe,ce,ee,q,Z,X,Y,pe,he],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}"]});let l=r;return l})();export{$e as MultiChannelComparison};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as Ne}from"./chunk-NNQLRLNB.js";import"./chunk-O4CRP4WO.js";import{a as L}from"./chunk-2RI4B7LO.js";import{a as Y}from"./chunk-XHAXYWZ7.js";import{a as ke,b as Re,c as H}from"./chunk-DLNXH2FE.js";import"./chunk-BVIRHZTZ.js";import{a as we,b as be,c as Fe}from"./chunk-ILVEM7H5.js";import{b as De}from"./chunk-DDHEMRO7.js";import{a as Pe}from"./chunk-N6IHFFFZ.js";import{a as Ve,b as Me}from"./chunk-PD4CUVAW.js";import"./chunk-IJYSJN63.js";import"./chunk-X5Q6FPWS.js";import"./chunk-46AOM3SM.js";import"./chunk-OULUJ2IO.js";import"./chunk-GCKSYCMI.js";import{a as Te}from"./chunk-N32A3EYJ.js";import"./chunk-ADRVUMMW.js";import{a as Ee}from"./chunk-XFTUE2ST.js";import"./chunk-HCDKYABV.js";import{e as ge}from"./chunk-CCXKODFV.js";import{j as Ce}from"./chunk-VAMLKDPP.js";import{b as de,e as ue}from"./chunk-E3NPUJ23.js";import"./chunk-KCDL7SWP.js";import{d as Se,l as ve,m as ye,n as Ie}from"./chunk-BO4PPSB5.js";import{t as xe,u as fe}from"./chunk-HUUFOAKH.js";import"./chunk-E5GGIVK7.js";import{b as re,c as se,h as ce,m as pe,o as me,y as _e}from"./chunk-BSN7ZAXG.js";import{c as S,f as he}from"./chunk-64G3XLI6.js";import"./chunk-OVEJFFL6.js";import{$b as g,Bd as ae,Cd as le,Da as m,Ea as _,Eb as h,G as K,Gb as d,Gc as x,Hc as y,Ic as N,Jc as G,Nb as I,Ob as U,Qb as j,Rb as Q,Sb as a,Tb as r,Ub as f,Vb as P,Wb as D,Yb as v,Z as $,bc as l,ea as W,ec as X,gb as M,jb as s,kb as w,mc as z,nc as p,oc as k,pa as Z,pc as V,rc as b,sc as F,sd as te,ta as q,tc as T,uc as J,v as B,vc as ee,vd as ne,xb as O,xc as R,yd as ie,zd as oe}from"./chunk-PQDPS2ID.js";import{a as A}from"./chunk-GNOSNGXM.js";var Be=o=>({"text-decoration-line-through":o}),$e=o=>({"ms-10":o}),We=o=>({"bg-gradient-warning":o});function Oe(o,c){if(o&1){let e=v();a(0,"button",38),g("click",function(){m(e);let t=l().ngIf,i=l(2);return _(i.onScanInventory(t))}),f(1,"i",39),p(2,"Refresh "),r()}}function Ue(o,c){if(o&1){let e=v();a(0,"div",36)(1,"button",40),g("click",function(){m(e);let t=l().ngIf,i=l(2);return _(i.updateStock(t))}),f(2,"i",41),p(3," Update "),r(),f(4,"button",42),a(5,"ul",43)(6,"a",44),g("click",function(){m(e);let t=l(3);return _(t.openExportDialog())}),f(7,"i",45),a(8,"span"),p(9,"Export"),r()()()()}}function je(o,c){if(o&1){let e=v();a(0,"button",46),g("click",function(){m(e);let t=l(3);return _(t.openExportDialog())}),f(1,"i",45),a(2,"span"),p(3,"Export"),r()()}}function Qe(o,c){if(o&1&&(a(0,"div"),h(1,Oe,3,0,"button",35)(2,Ue,10,0,"div",36)(3,je,4,0,"button",37),r()),o&2){let e=c.ngIf,n=l(2);s(),d("ngIf",n.productService.hasSelectionVariant(e)),s(),I(n.productService.hasSelectionVariant(e)?2:3)}}function ze(o,c){o&1&&(a(0,"div",47)(1,"span"),p(2," showing only different stock, please press next to populate more data "),r()())}function Ge(o,c){if(o&1){let e=v();a(0,"th")(1,"input",48),T("ngModelChange",function(t){m(e);let i=l(2);return F(i.checkboxState,t)||(i.checkboxState=t),_(t)}),g("ngModelChange",function(){let t=m(e).ngIf,i=l(2);return _(i.onCheckboxStateChange(t))}),r()()}if(o&2){let e=l(2);s(),b("ngModel",e.checkboxState)}}function He(o,c){o&1&&(a(0,"th",32),p(1," Reserved "),r())}function Ye(o,c){if(o&1){let e=v();a(0,"input",66),T("ngModelChange",function(t){m(e);let i=l(3).$implicit;return F(i.selected,t)||(i.selected=t),_(t)}),g("ngModelChange",function(){m(e);let t=l(3).$implicit,i=l(2);return _(i.onCheckboxStateProduct(t))}),r()}if(o&2){let e=l(3).$implicit;b("ngModel",e.selected)}}function Ke(o,c){if(o&1){let e=v();a(0,"img",67),g("click",function(t){m(e);let i=l(3).$implicit,u=l(2);return _(u.onZoomImage(t,i==null?null:i.ImageUrl))}),r()}if(o&2){let e=l(3).$implicit;X("src",e==null?null:e.ThumbnailUrl,M)}}function Ze(o,c){o&1&&f(0,"img",63)}function qe(o,c){if(o&1&&(f(0,"br"),a(1,"div",68),f(2,"i",69),a(3,"small"),p(4),r()()),o&2){let e=l(3).$implicit;s(4),V("(",e==null?null:e.Category,")")}}function Xe(o,c){if(o&1&&(a(0,"td",59)(1,"div",14),h(2,Ye,1,1,"input",60),a(3,"div",61),h(4,Ke,1,1,"img",62)(5,Ze,1,0,"img",63),r()()(),a(6,"td",64)(7,"span",65),p(8),r(),h(9,qe,5,1),r()),o&2){let e=l(2).$implicit,n=l(2);d("rowSpan",e==null?null:e.Variants.length),s(2),I(e.Variants.length>1?2:-1),s(),d("ngClass",R(7,$e,e.Variants.length<=1)),s(),I(e!=null&&e.ThumbnailUrl?4:5),s(2),d("rowSpan",e==null?null:e.Variants.length),s(2),k(e==null?null:e.Name),s(),I(e.CategoryID!==null&&e.CategoryID!=n.guidEmpty?9:-1)}}function Je(o,c){if(o&1){let e=v();a(0,"input",48),T("ngModelChange",function(t){m(e);let i=l(2).$implicit;return F(i.selected,t)||(i.selected=t),_(t)}),r()}if(o&2){let e=l(2).$implicit;b("ngModel",e.selected)}}function et(o,c){if(o&1&&h(0,Je,1,1,"input",53),o&2){let e=l().$implicit;I((e==null?null:e.Inventory)<=1e5?0:-1)}}function tt(o,c){if(o&1){let e=v();a(0,"input",48),T("ngModelChange",function(t){m(e);let i=l().$implicit;return F(i.selected,t)||(i.selected=t),_(t)}),r()}if(o&2){let e=l().$implicit;b("ngModel",e.selected)}}function nt(o,c){o&1&&(a(0,"div",70),p(1," Not Found "),r())}function it(o,c){if(o&1&&(a(0,"div")(1,"span",71),p(2),x(3,"number"),r(),p(4," => "),a(5,"span",72),p(6),x(7,"number"),r()()),o&2){let e=l().$implicit;s(2),V(" ",y(3,2,e==null||e.I==null?null:e.I.Available),""),s(4),k(y(7,4,e==null?null:e.Inventory))}}function ot(o,c){if(o&1&&(p(0),x(1,"number")),o&2){let e=l().$implicit;V(" ",y(1,1,e==null?null:e.Inventory)," ")}}function at(o,c){if(o&1&&(P(0),a(1,"div",73)(2,"a",74),f(3,"i",75),r()(),D()),o&2){let e=l().$implicit,n=l(3);s(2),d("href",n.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),M)}}function lt(o,c){if(o&1){let e=v();a(0,"span",80),g("click",function(){let t=m(e).ngIf,i=l(2).$implicit,u=l().$implicit,C=l(2);return _(C.openTableDialog(u,i,t))}),p(1),x(2,"number"),r()}if(o&2){let e=l(2).$implicit;s(),V(" ",y(2,1,e==null||e.Channel[0]==null?null:e.Channel[0].Inventory)," ")}}function rt(o,c){if(o&1){let e=v();a(0,"td",76)(1,"div",54)(2,"div"),h(3,lt,3,3,"span",77),x(4,"async"),r(),a(5,"div",73)(6,"a",74),f(7,"i",75),r()(),a(8,"div",73)(9,"span",78),g("click",function(){m(e);let t=l().$implicit,i=l(3);return _(i.refreshInventory(t==null||t.Channel[0]==null?null:t.Channel[0].ChannelItemID,t==null||t.Channel[0]==null?null:t.Channel[0].ChannelVariationID,t==null||t.Channel[0]==null?null:t.Channel[0].ChannelID,t==null?null:t.ID))}),f(10,"i",79),r()()()()}if(o&2){let e=l().$implicit,n=l(3);d("ngClass",R(5,We,(e==null?null:e.Inventory)!=(e==null||e.Channel[0]==null?null:e.Channel[0].Inventory))),s(3),d("ngIf",y(4,3,n.products$)),s(3),d("href",e==null||e.Channel[0]==null?null:e.Channel[0].Url,M)}}function st(o,c){if(o&1&&(P(0),a(1,"span",81),p(2),x(3,"number"),r(),D()),o&2){let e=l(2).$implicit;s(2),V(" (",y(3,1,e==null||e.Channel[0]==null?null:e.Channel[0].InventoryReserved),") ")}}function ct(o,c){o&1&&p(0," - ")}function pt(o,c){if(o&1&&(P(0),a(1,"td",50),h(2,st,4,3,"ng-container",58)(3,ct,1,0,"ng-template",null,1,G),r(),D()),o&2){let e=z(4),n=l().$implicit;s(2),d("ngIf",n==null||n.Channel[0]==null?null:n.Channel[0].InventoryReserved)("ngIfElse",e)}}function mt(o,c){o&1&&(P(0),p(1," - "),D())}function _t(o,c){if(o&1&&(a(0,"span",82),x(1,"date"),p(2),x(3,"date"),r()),o&2){let e=l().$implicit;d("matTooltip",N(1,2,e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync,"dd MMMM yyyy HH:mm:ss")),s(2),V(" ",N(3,5,e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync,"dd MMM yy HH:mm")," ")}}function dt(o,c){if(o&1&&(a(0,"tr"),h(1,Xe,10,9),a(2,"td",49),p(3),r(),a(4,"td",50)(5,"span",51),p(6),r()(),a(7,"td",52),h(8,et,1,1)(9,tt,1,1,"input",53),r(),a(10,"td")(11,"div",54),h(12,nt,2,0,"div",55)(13,it,8,6,"div")(14,ot,2,3)(15,at,4,1,"ng-container",5),r()(),h(16,rt,11,7,"td",56)(17,pt,5,2,"ng-container",5),a(18,"td",57),h(19,mt,2,0,"ng-container",58)(20,_t,4,8,"ng-template",null,0,G),r()()),o&2){let e=c.$implicit,n=c.$index,t=z(21),i=l(3);s(),I(n==0?1:-1),s(2),k(e==null?null:e.Model),s(2),d("matTooltip",e.Discontinued?i.discontinuedVariantMsg:"")("ngClass",R(14,Be,e.Discontinued)),s(),k(e==null?null:e.Code),s(2),I((e==null?null:e.Channel[0].TypeID)==1?8:(e==null?null:e.Inventory)>=0?9:-1),s(4),d("ngIf",(e==null?null:e.I)==null),s(),I((e==null?null:e.I)!=null&&(e==null?null:e.Inventory)!=(e==null||e.I==null?null:e.I.Available)?13:-1),s(),I((e==null?null:e.Inventory)==(e==null||e.I==null?null:e.I.Available)?14:-1),s(),d("ngIf",(e==null?null:e.I)!=null),s(),d("ngIf",e==null?null:e.Channel),s(),d("ngIf",i.isShowReservedColumn),s(2),d("ngIf",(e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync)==i.minDate)("ngIfElse",t)}}function ut(o,c){if(o&1&&(a(0,"tbody"),j(1,dt,22,16,"tr",null,U),r()),o&2){let e=c.$implicit;s(),Q(e.Variants)}}function ht(o,c){if(o&1){let e=v();a(0,"mainpanel",3),g("onSubmit",function(t){m(e);let i=l();return _(i.onSearch(t))}),a(1,"actions")(2,"div",4),h(3,Qe,4,2,"div",5),x(4,"async"),r()(),a(5,"filters")(6,"div")(7,"label",6),p(8,"Channel"),r(),a(9,"multiwarehouse-tree-select",7),g("onChannelChange",function(t){m(e);let i=l();return _(i.onChannelChange(t))}),r()(),a(10,"div",8)(11,"label",9),p(12,"PageNumber"),r(),a(13,"input",10),T("ngModelChange",function(t){m(e);let i=l();return F(i.searchFilter.PageNumber,t)||(i.searchFilter.PageNumber=t),_(t)}),r()(),a(14,"div",8)(15,"label",11),p(16,"Page Size"),r(),a(17,"input",12),T("ngModelChange",function(t){m(e);let i=l();return F(i.searchFilter.RowCount,t)||(i.searchFilter.RowCount=t),_(t)}),r()(),a(18,"div",8)(19,"label",13),p(20,"Quantity From - To"),r(),a(21,"div",14)(22,"input",15),T("ngModelChange",function(t){m(e);let i=l();return F(i.searchFilter.QuantityFrom,t)||(i.searchFilter.QuantityFrom=t),_(t)}),r(),p(23," - "),a(24,"input",16),T("ngModelChange",function(t){m(e);let i=l();return F(i.searchFilter.QuantityTo,t)||(i.searchFilter.QuantityTo=t),_(t)}),r()()()(),a(25,"content")(26,"div",17)(27,"div",18)(28,"div",19),h(29,ze,3,0,"div",20),a(30,"table",21),g("matSortChange",function(t){m(e);let i=l();return _(i.onSortVariant(t))}),a(31,"thead",22)(32,"tr")(33,"th",23),p(34," Product "),f(35,"br"),a(36,"mat-slide-toggle",24),g("toggleChange",function(){m(e);let t=l();return t.showDifferenceStock=!t.showDifferenceStock,_(t.onShowDifferenceStock())}),a(37,"small",13),p(38,"FILTER DIFFERENT INVENTORY"),r()()(),a(39,"th",25),p(40,"Variant"),r(),a(41,"th",26),p(42,"SKU"),r(),h(43,Ge,2,1,"th",5),x(44,"async"),a(45,"th",27),p(46," POS "),r(),a(47,"th",28)(48,"div",29),g("click",function(){m(e);let t=l();return _(t.openModalFilter())}),f(49,"img",30),a(50,"span",31),p(51),x(52,"stringLimit"),r()()(),h(53,He,2,0,"th",32),a(54,"th",33),p(55,"Last Sync"),r()()(),j(56,ut,3,0,"tbody",null,U),x(58,"async"),r(),a(59,"infinite-paginator",34),x(60,"async"),g("onNextPage",function(){m(e);let t=l();return _(t.infinitePagination.onNextPage(t.searchFilter))})("onLastPage",function(){m(e);let t=l();return _(t.infinitePagination.onLastPage(t.searchFilter))})("onGetRowCount",function(){m(e);let t=l();return _(t.infinitePagination.getRowCount(t.searchFilter))}),r()()()()()()}if(o&2){let e,n,t,i=l();d("headerTitle","Inventory Comparison")("pageData",i.pageData)("hideSearchBox",!1),s(3),d("ngIf",y(4,21,i.products$)),s(6),d("ngModel",(i.searchFilter==null?null:i.searchFilter.LocationID)||(i.searchFilter==null?null:i.searchFilter.ChannelID)),s(4),b("ngModel",i.searchFilter.PageNumber),s(4),b("ngModel",i.searchFilter.RowCount),s(5),b("ngModel",i.searchFilter.QuantityFrom),s(2),b("ngModel",i.searchFilter.QuantityTo),s(5),d("ngIf",(i.searchFilter==null?null:i.searchFilter.filterModel)==3),s(14),d("ngIf",y(44,23,i.products$)),s(5),d("matTooltip",((e=i.channelIdentity())==null||e.label==null?null:e.label.length)>13?(e=i.channelIdentity())==null?null:e.label:""),s(),d("src",(n=i.channelIdentity())==null?null:n.img,M),s(2),V(" ",N(52,25,(t=i.channelIdentity())==null?null:t.label,13)," "),s(2),I(i.isShowReservedColumn?53:-1),s(3),Q(y(58,28,i.products$)),s(3),d("totalData",i.infinitePagination.totalData())("hideCount",i.infinitePagination.hideCount())("rowCount",y(60,30,i.infinitePagination.totalRowCount$))("pageNumber",i.infinitePagination.pageNumber())("disableNextButton",i.infinitePagination.disableNextButton())("goToLastPage",i.infinitePagination.isLastPage())}}var Xt=(()=>{let c=class c{constructor(n,t,i,u,C,E,Le,Ae){this.http=n,this.toastr=t,this.dialog=i,this.productService=u,this.authService=C,this.biggerPictureService=E,this.inventoryService=Le,this.mainPanelService=Ae,this.infinitePagination=Z(H),this.checkboxState=!1,this.showDifferenceStock=!1,this.loaderApi="InventoryLoader/Load",this.fetchApi="Inventory/GetSingleChannelComparison",this.rowCountApi="Inventory/GetInventoryByChannelRowCount",this.minDate=S.MinDate,this.isShowReservedColumn=!0,this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.guidEmpty=S.GuidEMpty,this.selectedChannel=O(null),this.channelIdentity=O({img:null,label:null}),this.pageData={Title:"Inventory Realtime",Nav:[{Title:"Inventory Cache",Url:"/menu/inventory",Active:!1},{Title:"Inventory Realtime",Url:"/menu/inventory/realtime",Active:!0}]}}ngOnInit(){this.hostName=this.authService.getDomain(),this.initPageLoader(),this.sourceObs$=this.infinitePagination.data$.pipe(W(n=>{this.checkShowReservedColumn(n)}),B(n=>(n=this.calculateAvailableStock(n),n)),$(1)),this.products$=this.sourceObs$}calculateAvailableStock(n){return n.map(i=>(i.totalAvailable=i.Variants.reduce((u,C)=>(u+=C.I?.Available||0,u),0),i))}checkShowReservedColumn(n){let t=0,i;n.forEach(u=>{i=u.Variants.find(C=>S.IsNotEmpty(C?.Channel[0]?.InventoryReserved)),i&&(t+=1)}),this.isShowReservedColumn=t>0}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.fetchApi,this.infinitePagination.fethRowCountEndpoint=this.rowCountApi,this.loader$=this.http.post(`/api/${this.loaderApi}`,{}).pipe($(1),W(n=>{this.searchFilter={RowCount:n.Filter.PageSize,filterModel:1,PageNumber:1,ChannelID:n.Filter.ChannelID,LocationID:n.Filter.LocationID},this.initReloadData(),this.showToastrMarketplaceInactive(!n.Filter.IsMarketplaceAppActive)}))}onChannelChange(n){let t=Object.assign({},n);this.selectedChannel.set(t),S.IsEmpty(this.channelIdentity()?.label)&&this.setChannelFilter()}setChannelFilter(){if(this.selectedChannel()){let n=Object.assign({},this.selectedChannel());S.IsNotEmpty(n.parent)?(this.searchFilter.LocationID=n.id,this.searchFilter.ChannelID=n?.parent?.id,n.label=n?.parent?.label+" - "+n?.label,n.img=S.getChannelLogoByTypeId(n?.parent?.typeid)):(this.searchFilter.LocationID=null,n.img=S.getChannelLogoByTypeId(n?.typeid),this.searchFilter.ChannelID=n?.id,this.selectedChannel.set(n)),this.channelIdentity.update(()=>({img:n.img,label:n.label}))}}initReloadData(){this.infinitePagination.reloadPagination(this.searchFilter)}showToastrMarketplaceInactive(n){n&&this.toastr.warning(`Automatic inventory sync disabled.
|
|
2
|
+
Please enable Dealpos X Marketplace Apps integration in POS Configuration`,"Warning")}onSearch(n){this.searchFilter.text=n,this.setChannelFilter(),this.initReloadData()}openModalFilter(){this.mainPanelService.openModalFilter()}updateStock(n){let t=this.productService.selectedVariantProduct(n);if(t.length>0){let i=this.searchFilter.LocationID,u=t.map(E=>A({ID:E.ID,Code:E.Code,Inventory:E.Inventory},S.IsNotEmpty(i)&&{LocationID:i})),C={ListChannelID:[this.searchFilter.ChannelID],List:u};this.http.post("/api/Inventory/UpdateChannel",C).subscribe(E=>{this.initReloadData(),this.checkboxState=!1,this.handlingUpdateStock(E)})}}handlingUpdateStock(n){if(n[0]?.Response){let t=n[0]?.Response?.Fail_list,i=n[0]?.Response?.Success_list;this.inventoryService.showToastrUpdateInventory("Stock",i,t)}else this.toastr.error(n[0]?.Exception,"Error")}refreshInventory(n,t,i,u){let C={ChannelItemID:n,ChannelVariationID:t,ChannelID:i,VariantID:u};this.http.post("/api/Inventory/RefreshInventoryChannel",C).subscribe(E=>{this.toastr.success("Successfully updated","Success"),this.initReloadData()})}onCheckboxStateProduct(n){n.Variants=n.Variants.map(t=>(t.Inventory>=0&&(t.selected=n.selected),t))}onCheckboxStateChange(n){n=n.map(t=>(t.Variants=t.Variants.map(i=>(i.selected=this.checkboxState,i)),t))}openTableDialog(n,t,i){this.dialog.open(ke,{data:{Name:n.Name,Variant:t,ChannelID:t?.Channel[0].ChannelID,Table:"inventory",ChannelItemID:n.ChannelItemID}}).afterClosed().pipe(K(C=>S.IsNotEmpty(C))).subscribe(C=>{this.updateItemAfterDialog(C)})}updateItemAfterDialog(n){let t=this.searchFilter.LocationID,i=A({ID:n.ChannelID,ChannelItemID:n.ChannelItemID,ChannelVariantID:n.ChannelVariationID,NewQuantity:parseFloat(n.Inventory),VariantID:n.ID,SKU:n.Sku},S.IsNotEmpty(t)&&{LocationID:t});this.http.post("/api/Inventory/UpdateQuantityByItem",i).subscribe(u=>{this.searchFilter.PageNumber=1,this.initReloadData(),this.handlingUpdateStock([u])})}onScanInventory(n){let t=this.productService.selectedVariantProduct(n);this.inventoryService.refreshInventory(t).subscribe(()=>{this.initReloadData(),this.toastr.success("Inventory refreshed successfully","Success")})}openExportDialog(){this.dialog.open(De,{data:{title:"Export Inventory Single Channel Comparison",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:this.rowCountApi,QuantityFrom:this.searchFilter.QuantityFrom,QuantityTo:this.searchFilter.QuantityTo,exportApi:"Inventory/GetExportSingleChannelComparison"}}).afterClosed().subscribe()}onShowDifferenceStock(){this.showDifferenceStock?this.searchFilter.filterModel=Y.DIFFERENCE:this.searchFilter.filterModel=Y.ALL,this.initReloadData()}onZoomImage(n,t){this.biggerPictureService.openBiggerPicture(n,t)}onSortVariant(n){if(n.direction==""){this.products$=this.sourceObs$;return}this.products$=this.products$.pipe(B(t=>t.map(i=>(i.Variants=i.Variants.sort((u,C)=>S.compare(u.I?.Available,C.I?.Available,n.direction==="asc")),i)).sort((i,u)=>S.compare(i.totalAvailable,u.totalAvailable,n.direction==="asc"))))}};c.\u0275fac=function(t){return new(t||c)(w(ue),w(de),w(Se),w(Te),w(Ce),w(Ee),w(L),w(ve))},c.\u0275cmp=q({type:c,selectors:[["app-single-channel-comparison"]],standalone:!0,features:[J([H,L]),ee],decls:2,vars:3,consts:[["SYNCDATE",""],["EMPTY_RESERVED",""],["textButton","Search",3,"headerTitle","pageData","hideSearchBox","onSubmit",4,"ngIf"],["textButton","Search",3,"onSubmit","headerTitle","pageData","hideSearchBox"],[1,"d-flex"],[4,"ngIf"],["for","channelOptions",1,"fw-bold","mb-2"],["id","channelOptions",3,"onChannelChange","ngModel"],[1,"mt-5"],["for","PageNumber",1,"fw-bold"],["type","number","id","PageNumber","placeholder","PageNumber","name","PageNumber","data-toggle","tooltip","matTooltip","Page Number",1,"mat-mdc-tooltip-trigger","form-control","ng-pristine","ng-valid","ng-touched","mt-3",3,"ngModelChange","ngModel"],["for","RowCount",1,"fw-bold"],["type","number","id","RowCount","placeholder","Page Size","name","RowCount","data-toggle","tooltip","matTooltip","Page Size",1,"mat-mdc-tooltip-trigger","form-control","ng-pristine","ng-valid","ng-touched","mt-3",3,"ngModelChange","ngModel"],[1,"fw-bold"],[1,"d-flex","align-items-center","justify-content-start"],["type","number","name","QuantityFrom",1,"w-25","me-2","mt-3","form-control",3,"ngModelChange","ngModel"],["type","number","name","QuantityTo",1,"w-25","ms-2","form-control","mt-2",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],["class","alert alert-warning d-flex justify-content-between text-dark","role","alert",4,"ngIf"],["matSort","",1,"table","border-bottom",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","ps-12",2,"width","25%"],[3,"toggleChange"],["scope","col",1,"text-start"],["scope","col",1,"text-end",2,"width","10%"],["scope","col","mat-sort-header","Available","arrowPosition","before",1,"text-end","w-10",2,"width","8%"],[1,"text-end",2,"width","150px"],["role","button","matTooltipPosition","above",1,"d-inline-block",3,"click","matTooltip"],[2,"width","16px",3,"src"],[1,"ms-1"],["matTooltip","Reserved Stock","matTooltipPosition","above",1,"text-end",2,"width","80px"],[1,"text-center",2,"width","145px"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],["class","btn btn-outline-dark me-3","matTooltip","Fetch the latest stock directly from the channel",3,"click",4,"ngIf"],[1,"btn-group"],[1,"btn","btn-outline-secondary","shadow","rounded"],["matTooltip","Fetch the latest stock directly from the channel",1,"btn","btn-outline-dark","me-3",3,"click"],[1,"fa-solid","fa-arrows-rotate","me-3"],[1,"btn","btn-success",3,"click"],[1,"fas","fa-chevron-circle-up"],["data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-success","btn-sm","dropdown-toggle","border-start"],[1,"dropdown-menu","dropdown-menu-end","pointer"],["role","button",1,"dropdown-item","cursor-pointer","fs-5",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],["role","alert",1,"alert","alert-warning","d-flex","justify-content-between","text-dark"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",3,"matTooltip","ngClass"],[1,"align-middle"],["type","checkbox",3,"ngModel"],[1,"d-flex","align-items-center","justify-content-end"],["class","text-danger","matTooltip","This product is no longer available in POS","matTooltipPosition","above",4,"ngIf"],["class","text-end",3,"ngClass",4,"ngIf"],[1,"text-center"],[4,"ngIf","ngIfElse"],[1,"text-start",2,"width","0%",3,"rowSpan"],["type","checkbox",1,"me-3",3,"ngModel"],[3,"ngClass"],[1,"border","rounded","w-img","cursor-pointer",2,"margin-left","20px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img",2,"margin-left","20px"],[1,"text-start",3,"rowSpan"],[1,"item-name","mb-0"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel"],[1,"border","rounded","w-img","cursor-pointer",2,"margin-left","20px",3,"click","src"],[1,"d-flex","align-items-center"],["title","Category",1,"fa-solid","fa-tags","me-2",2,"opacity","60%"],["matTooltip","This product is no longer available in POS","matTooltipPosition","above",1,"text-danger"],["title","Stock Available"],["title","Inventory below minimum inventory"],[1,"ms-3"],["target","_blank",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"text-end",3,"ngClass"],["class","cursor",3,"click",4,"ngIf"],["matTooltip","Refresh stock according to seller center",1,"pl-5","cursor-pointer",2,"color","var(--bs-link-color)",3,"click"],[1,"fas","fa-sync","fa-lg","external-link-custom","pt-1"],[1,"cursor",3,"click"],[1,"text-danger"],["matTooltipShowDelay","500",3,"matTooltip"]],template:function(t,i){t&1&&(h(0,ht,61,32,"mainpanel",2),x(1,"async")),t&2&&d("ngIf",y(1,1,i.loader$))},dependencies:[le,te,ne,ie,ae,oe,Ie,ye,ge,_e,se,me,re,ce,pe,Pe,Re,he,Me,Ve,fe,xe,Fe,we,be,Ne],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}input[type=checkbox][_ngcontent-%COMP%]{width:15px;height:15px}"]});let o=c;return o})();export{Xt as SingleChannelComparisonComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as r,i as C}from"./chunk-
|
|
1
|
+
import{h as r,i as C}from"./chunk-VAMLKDPP.js";import{b as S,e as m}from"./chunk-E3NPUJ23.js";import{b as a,c as l}from"./chunk-64G3XLI6.js";import{aa as u,ea as p,ja as c,oa as o,v as h}from"./chunk-PQDPS2ID.js";var z=(()=>{let i=class i{constructor(e,t,n){this.httpService=e,this.toastr=t,this.tokenService=n}saveChannel(e){return this.httpService.post("/api/Channel/SubmitChannel",e).pipe(u(t=>this.tokenService.refreshToken().pipe(h(n=>t))))}getLastSync(e){return this.httpService.get(`${r.ChannelGetLastSyncByID}/?ID=${e}`)}getChannel(e){return this.httpService.post(r.GetChannel,e)}getChannelLoader(){return this.httpService.get(r.GetChannelLoader)}testShopID(e){return this.httpService.post(r.TestShopID,e).pipe(p(t=>{this.showTostrSuccessTestShopID(t)}))}updateChannelIndex(e){return this.httpService.post(r.UpdateChannelIndex,e)}deleteChannel(e){return this.httpService.post(r.DeleteChannel,e)}mapChannelImage(e){return e.map(t=>(t.img=l.getChannelLogoByTypeId(t.TypeID),t))}showTostrSuccessTestShopID(e){let t="";for(var n in e)t+=n+" : "+e[n]+"<br/>";this.toastr.success(t,"Success",{enableHtml:!0,closeButton:!0,positionClass:"toast-bottom-right"})}getRegisterByOutletName(e){return this.httpService.post(r.GetRegisterByOutletName,{Outlet:e})}getChannelRowCount(e){return this.httpService.post(r.GetChannelRowCount,e).pipe(h(t=>t.Count))}getChannelWarehouse(e){return this.httpService.get(`${r.GetChannelWarehouse}/?ChannelID=${e}`)}unSynchronizedWarehouse(e){return this.httpService.delete(`${r.UnSynchronizedWarehouse}?ID=${e}`)}authorizedChannel(e){let t=this.getApiAuthorize(e);return this.httpService.post(`/api/${t}`,null).pipe(p(n=>{window.open(n.Url,"_blank")}))}getApiAuthorize(e){let t;switch(e){case a.Shopee:t="ChannelAuthorization/ShopeeV2_URL";break;case a.Tiktok:t="ChannelAuthorization/Tiktok_URL";break;case a.Lazada:t="ChannelAuthorization/Lazada_URL";break}return t}};i.\u0275fac=function(t){return new(t||i)(o(m),o(S),o(C))},i.\u0275prov=c({token:i,factory:i.\u0275fac,providedIn:"root"});let s=i;return s})();export{z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as v,b}from"./chunk-N3TTJVBG.js";import{a as r}from"./chunk-
|
|
1
|
+
import{a as v,b}from"./chunk-N3TTJVBG.js";import{a as r}from"./chunk-R6KGFJJ4.js";import"./chunk-VAMLKDPP.js";import"./chunk-E3NPUJ23.js";import"./chunk-KCDL7SWP.js";import"./chunk-HUUFOAKH.js";import"./chunk-E5GGIVK7.js";import"./chunk-64G3XLI6.js";import{n as h,r as i}from"./chunk-OVEJFFL6.js";import{Cd as o,Gb as u,Sb as d,Tb as C,Ub as a,jb as s,ka as l,ta as m,ua as c,vc as f}from"./chunk-PQDPS2ID.js";import"./chunk-GNOSNGXM.js";var T=(()=>{let e=class e{constructor(){this.priceTabs=[{Title:"Single Channel Comparison",Url:"/menu/price/SingleChannel"},{Title:"Multi Channel Comparison",Url:"/menu/price/pos"},{Title:"Custom Channel Price",Url:"/menu/price/OutletPrice"}]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=m({type:e,selectors:[["app-price"]],standalone:!0,features:[f],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(n,g){n&1&&(d(0,"nav",0)(1,"div",1)(2,"div"),a(3,"nav-tab",2),C()()(),a(4,"router-outlet")),n&2&&(s(3),u("Tabs",g.priceTabs))},dependencies:[o,b,v,i,h],encapsulation:2});let t=e;return t})();var P=[{path:"",component:T,children:[{path:"",redirectTo:"SingleChannel",pathMatch:"full"},{path:"pos",loadComponent(){return import("./chunk-UWMOSIYY.js").then(t=>t.PricePosChannelComponent)},canActivate:[r],data:{title:"Global Price Comparison"}},{path:"OutletPrice",loadComponent(){return import("./chunk-2BQOICNG.js").then(t=>t.CustomChannelPriceComponent)},canActivate:[r],data:{title:"Outlet Price Comparison"}},{path:"SingleChannel",loadComponent(){return import("./chunk-VRAUYPKY.js").then(t=>t.PriceSingleChannelComponent)},canActivate:[r],data:{title:"Price Single Channel Comparison"}}]}],D=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=c({type:e}),e.\u0275inj=l({imports:[o,i.forChild(P)]});let t=e;return t})();export{D as PriceRoutingModule};
|