marketplacepos 5.43.6 → 5.43.7

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.
Files changed (47) hide show
  1. package/Marketplace/{chunk-E5YB37LW.js → chunk-3BYIWPKX.js} +1 -1
  2. package/Marketplace/{chunk-NH366PNR.js → chunk-3IO4ZF34.js} +1 -1
  3. package/Marketplace/{chunk-LSKUUC3C.js → chunk-3NP5TQOW.js} +1 -1
  4. package/Marketplace/{chunk-ZWWKOO6H.js → chunk-5FJUX7W5.js} +2 -2
  5. package/Marketplace/{chunk-RWBLYX7L.js → chunk-6NGH2YZQ.js} +1 -1
  6. package/Marketplace/{chunk-7XS5EOCX.js → chunk-6ZVXICIH.js} +1 -1
  7. package/Marketplace/{chunk-TFQEBAZY.js → chunk-AEJ5I5MW.js} +1 -1
  8. package/Marketplace/{chunk-BWM4D2FI.js → chunk-AOFDSBOE.js} +1 -1
  9. package/Marketplace/{chunk-5YGROVQC.js → chunk-BCH2MADE.js} +1 -1
  10. package/Marketplace/{chunk-CHVVARV6.js → chunk-DO2UECCT.js} +1 -1
  11. package/Marketplace/{chunk-GG43Z2ED.js → chunk-EBVE2XHU.js} +1 -1
  12. package/Marketplace/{chunk-J2BRIZSE.js → chunk-EHU3RPGU.js} +1 -1
  13. package/Marketplace/{chunk-IGPHCUYF.js → chunk-ESX7MIMG.js} +1 -1
  14. package/Marketplace/{chunk-SUV6UMF2.js → chunk-FHQTKJXS.js} +1 -1
  15. package/Marketplace/{chunk-746B65XK.js → chunk-FO2QLLKW.js} +2 -2
  16. package/Marketplace/{chunk-SGPYMAEM.js → chunk-FWG7M5IP.js} +1 -1
  17. package/Marketplace/{chunk-F2QW4SRK.js → chunk-FYBG3KWC.js} +1 -1
  18. package/Marketplace/{chunk-VODOESU7.js → chunk-GJUPDABG.js} +1 -1
  19. package/Marketplace/{chunk-PHZBFTWM.js → chunk-HFBAUQ7H.js} +1 -1
  20. package/Marketplace/{chunk-LOW7FAUO.js → chunk-J6UZFGNY.js} +1 -1
  21. package/Marketplace/{chunk-5MGEZJ5I.js → chunk-JJ6HE6R7.js} +1 -1
  22. package/Marketplace/{chunk-RQ2JYWLD.js → chunk-JX6HFP2Y.js} +1 -1
  23. package/Marketplace/{chunk-HX6V7ERI.js → chunk-KG47DFP5.js} +1 -1
  24. package/Marketplace/{chunk-64KV3IDA.js → chunk-KJATJWWX.js} +1 -1
  25. package/Marketplace/{chunk-UTODORSA.js → chunk-KMZPNPJF.js} +1 -1
  26. package/Marketplace/{chunk-2K3EFH3T.js → chunk-LLDNDJ7P.js} +1 -1
  27. package/Marketplace/{chunk-ZCWIQONO.js → chunk-LZYW24WA.js} +1 -1
  28. package/Marketplace/{chunk-WY7CURUT.js → chunk-O7FDRTJ2.js} +1 -1
  29. package/Marketplace/{chunk-FV47Y5BB.js → chunk-Q23GGWWT.js} +1 -1
  30. package/Marketplace/{chunk-W5FGZ3IS.js → chunk-QWJECSZK.js} +1 -1
  31. package/Marketplace/{chunk-5M2I7FEP.js → chunk-R45ORDIE.js} +1 -1
  32. package/Marketplace/{chunk-IBSUTWOW.js → chunk-RM3KYX7K.js} +1 -1
  33. package/Marketplace/{chunk-HAH7BBIR.js → chunk-SSAGHA7U.js} +1 -1
  34. package/Marketplace/{chunk-4SMRZ7AU.js → chunk-SUJBRB2D.js} +1 -1
  35. package/Marketplace/{chunk-QTZV4SID.js → chunk-TSPQ2LFF.js} +1 -1
  36. package/Marketplace/{chunk-I3FOMVSX.js → chunk-TXVG5OHR.js} +1 -1
  37. package/Marketplace/{chunk-AZ2WERIL.js → chunk-UDZIOJVC.js} +1 -1
  38. package/Marketplace/{chunk-DZ723WRM.js → chunk-UMA5ZNXQ.js} +1 -1
  39. package/Marketplace/{chunk-FWTH44TJ.js → chunk-UYLU3G52.js} +1 -1
  40. package/Marketplace/{chunk-U2FSR2L3.js → chunk-VJNZ5THR.js} +1 -1
  41. package/Marketplace/{chunk-KXPZJM2O.js → chunk-WUUXAXFO.js} +1 -1
  42. package/Marketplace/{chunk-EQN7RM2H.js → chunk-XC7L6C26.js} +1 -1
  43. package/Marketplace/{chunk-5QUVYPQN.js → chunk-YJHI5U5R.js} +1 -1
  44. package/Marketplace/{chunk-5XVZHSH3.js → chunk-ZJVWTRCI.js} +1 -1
  45. package/Marketplace/index.html +2 -2
  46. package/Marketplace/{main-VAWFX5IS.js → main-4LOUTBLN.js} +1 -1
  47. package/package.json +1 -1
@@ -1 +1 @@
1
- import{a as se,b as ce,c as ue}from"./chunk-V5BKQSAT.js";import{a as Ce}from"./chunk-AZ2WERIL.js";import{a as pe}from"./chunk-FV47Y5BB.js";import{a as de}from"./chunk-66MLRB2J.js";import"./chunk-M5JQ7BGW.js";import{a as me}from"./chunk-EPVCMYCI.js";import"./chunk-JDIBETL5.js";import"./chunk-L7K5HOBY.js";import"./chunk-74IXJYWO.js";import"./chunk-G47XGOST.js";import"./chunk-H3J5OAIG.js";import"./chunk-AQTXFEBA.js";import"./chunk-SDUUFQUI.js";import"./chunk-IL5JIRWJ.js";import"./chunk-5OHRA4AS.js";import"./chunk-3BT5DR3X.js";import"./chunk-3RK6DDJD.js";import"./chunk-J2KWRDVH.js";import"./chunk-7SVF5UPT.js";import"./chunk-CMTBBXR5.js";import{a as ae}from"./chunk-WPW3D4MQ.js";import"./chunk-TFQEBAZY.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as ie}from"./chunk-5HO2IJ47.js";import"./chunk-5JVEEL2T.js";import"./chunk-PW42BQIY.js";import"./chunk-SWQXSJ7O.js";import"./chunk-AEOSNAHH.js";import{e as te}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{m as oe,n as le}from"./chunk-CLER2MX6.js";import{A as ee,c as X,h as Y,m as Z,o as $}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import{r as ne,s as re}from"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{j as q,k as J,m as K,n as Q}from"./chunk-M2FCTYGU.js";import{$c as w,Gb as F,Gc as a,Hc as v,Ic as E,Kc as f,Lc as _,Mb as x,Mc as g,Nc as A,Oc as R,Pc as j,Qc as H,Ra as I,Sc as U,Yb as c,Z as O,ac as D,ad as V,bd as G,dc as b,ec as k,gc as B,hc as z,ic as t,ja as N,jc as i,kc as u,oc as M,pa as y,pb as W,rb as l,tc as T,uc as C,v as L,ya as d,za as s}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var P=(()=>{class n{constructor(){this.httpService=y(te)}getCompletedOrders(e){return this.httpService.post(ie.GetCompleted,e).pipe(L(m=>m?.Data||[]))}static{this.\u0275fac=function(m){return new(m||n)}}static{this.\u0275prov=N({token:n,factory:n.\u0275fac})}}return n})();var _e=n=>({"td-cell-hover":n});function ge(n,h){if(n&1&&u(0,"variants-dropdown",29),n&2){let e=C().$implicit;c("variants",e==null?null:e.Variants)}}function he(n,h){if(n&1&&u(0,"variant-with-image",30),n&2){let e=C().$implicit;c("variant",e==null?null:e.Variants[0])}}function Se(n,h){if(n&1&&(t(0,"span"),a(1),i()),n&2){let e=C().$implicit;l(),E("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function ve(n,h){if(n&1&&(t(0,"tr")(1,"td"),a(2),i(),t(3,"td")(4,"div",25)(5,"div",26)(6,"div"),u(7,"img",27),w(8,"channelImage"),i(),t(9,"div"),u(10,"order-link",28),i()(),t(11,"small"),a(12),w(13,"date"),i()()(),t(14,"td"),a(15),i(),t(16,"td"),x(17,ge,1,1,"variants-dropdown",29)(18,he,1,1,"variant-with-image",30),i(),t(19,"td",31),a(20),w(21,"number"),i(),t(22,"td")(23,"div",25)(24,"div",26)(25,"span"),a(26),i(),x(27,Se,2,1,"span"),i(),t(28,"small"),a(29),i()()()()),n&2){let e=h.$implicit;l(2),v(e.Outlet),l(5),c("src",V(8,13,e==null?null:e.MarketType),W)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(3),c("order",e),l(2),E(" ",G(13,15,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(3),v(e.Customer),l(),D(U(20,_e,(e.Variants==null?null:e.Variants.length)>1)),l(),b((e.Variants==null?null:e.Variants.length)>1?17:18),l(3),v(V(21,18,e.Amount)),l(6),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),b(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?27:-1),l(2),E(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function we(n,h){if(n&1){let e=M();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),a(5,"Outlet"),i(),t(6,"th",21),a(7,"Number"),i(),t(8,"th",21),a(9,"Customer"),i(),t(10,"th"),a(11,"Items"),i(),t(12,"th",22),a(13,"Amount"),i(),t(14,"th",23),a(15,"Shipping"),i()()(),t(16,"tbody"),B(17,ve,30,22,"tr",null,k),i()(),t(19,"app-custom-paginator",24),T("next",function(){d(e);let r=C();return s(r.initCompletedOrders())})("previous",function(){d(e);let r=C();return s(r.initCompletedOrders())}),i()()}if(n&2){let e=C(),m=j(0);l(17),z(m),l(2),c("filter",e.filter())("totaldata",m==null?null:m.length)}}function ye(n,h){n&1&&(t(0,"div",16),u(1,"app-empty-state"),i())}var Xe=(()=>{class n{constructor(){this.completedService=y(P),this.filter=I({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.initCompletedOrders()}initCompletedOrders(){this.completedOrders$=this.completedService.getCompletedOrders(this.filter()).pipe(O(1))}static{this.\u0275fac=function(m){return new(m||n)}}static{this.\u0275cmp=F({type:n,selectors:[["app-completed"]],features:[H([P])],decls:34,vars:11,consts:[["headerTitle","Completed","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[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","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","100px"],[2,"width","250px"],[1,"text-end",2,"width","150px"],[2,"width","150px"],["rowCountApi","/api/orders/completedcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","14px","padding-bottom","2.5px",3,"src","alt"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"]],template:function(m,r){if(m&1){let p=M();A(0),w(1,"async"),t(2,"mainpanel",0),T("onSubmit",function(){return d(p),s(r.initCompletedOrders())}),g("textChange",function(o){return d(p),_(r.filter().Number,o)||(r.filter().Number=o),s(o)}),t(3,"actions")(4,"a",1),u(5,"i",2),t(6,"span"),a(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),a(11,"From/To"),i(),t(12,"channel-select-options",4),g("ngModelChange",function(o){return d(p),_(r.filter().ListChannelID,o)||(r.filter().ListChannelID=o),s(o)}),i()(),t(13,"div",5)(14,"label",3),a(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),g("dateChange",function(o){return d(p),_(r.filter().From,o)||(r.filter().From=o),s(o)}),i()(),t(18,"div")(19,"datepicker",8),g("dateChange",function(o){return d(p),_(r.filter().To,o)||(r.filter().To=o),s(o)}),i()()(),t(20,"div",5)(21,"label",9),a(22,"Page Number"),i(),t(23,"input",10),g("ngModelChange",function(o){return d(p),_(r.filter().PageNumber,o)||(r.filter().PageNumber=o),s(o)}),i()(),t(24,"div",5)(25,"label",9),a(26,"Page Size"),i(),t(27,"input",11),g("ngModelChange",function(o){return d(p),_(r.filter().PageSize,o)||(r.filter().PageSize=o),s(o)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),x(32,we,20,2,"div",15)(33,ye,2,0,"div",16),i()()()()()}if(m&2){let p=R(V(1,8,r.completedOrders$));l(2),f("text",r.filter().Number),l(10),c("multiple",!0),f("ngModel",r.filter().ListChannelID),l(5),f("date",r.filter().From),l(2),f("date",r.filter().To),l(4),f("ngModel",r.filter().PageNumber),l(4),f("ngModel",r.filter().PageSize),l(5),b((p==null?null:p.length)>0?32:33)}},dependencies:[Q,q,K,J,le,oe,me,ae,ee,X,$,Y,Z,se,ce,ue,de,pe,re,ne,Ce],encapsulation:2})}}return n})();export{Xe as CompletedComponent};
1
+ import{a as se,b as ce,c as ue}from"./chunk-V5BKQSAT.js";import{a as Ce}from"./chunk-UDZIOJVC.js";import{a as pe}from"./chunk-Q23GGWWT.js";import{a as de}from"./chunk-66MLRB2J.js";import"./chunk-M5JQ7BGW.js";import{a as me}from"./chunk-EPVCMYCI.js";import"./chunk-JDIBETL5.js";import"./chunk-L7K5HOBY.js";import"./chunk-74IXJYWO.js";import"./chunk-G47XGOST.js";import"./chunk-H3J5OAIG.js";import"./chunk-AQTXFEBA.js";import"./chunk-SDUUFQUI.js";import"./chunk-IL5JIRWJ.js";import"./chunk-5OHRA4AS.js";import"./chunk-3BT5DR3X.js";import"./chunk-3RK6DDJD.js";import"./chunk-J2KWRDVH.js";import"./chunk-7SVF5UPT.js";import"./chunk-CMTBBXR5.js";import{a as ae}from"./chunk-WPW3D4MQ.js";import"./chunk-AEJ5I5MW.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as ie}from"./chunk-5HO2IJ47.js";import"./chunk-5JVEEL2T.js";import"./chunk-PW42BQIY.js";import"./chunk-SWQXSJ7O.js";import"./chunk-AEOSNAHH.js";import{e as te}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{m as oe,n as le}from"./chunk-CLER2MX6.js";import{A as ee,c as X,h as Y,m as Z,o as $}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import{r as ne,s as re}from"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{j as q,k as J,m as K,n as Q}from"./chunk-M2FCTYGU.js";import{$c as w,Gb as F,Gc as a,Hc as v,Ic as E,Kc as f,Lc as _,Mb as x,Mc as g,Nc as A,Oc as R,Pc as j,Qc as H,Ra as I,Sc as U,Yb as c,Z as O,ac as D,ad as V,bd as G,dc as b,ec as k,gc as B,hc as z,ic as t,ja as N,jc as i,kc as u,oc as M,pa as y,pb as W,rb as l,tc as T,uc as C,v as L,ya as d,za as s}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var P=(()=>{class n{constructor(){this.httpService=y(te)}getCompletedOrders(e){return this.httpService.post(ie.GetCompleted,e).pipe(L(m=>m?.Data||[]))}static{this.\u0275fac=function(m){return new(m||n)}}static{this.\u0275prov=N({token:n,factory:n.\u0275fac})}}return n})();var _e=n=>({"td-cell-hover":n});function ge(n,h){if(n&1&&u(0,"variants-dropdown",29),n&2){let e=C().$implicit;c("variants",e==null?null:e.Variants)}}function he(n,h){if(n&1&&u(0,"variant-with-image",30),n&2){let e=C().$implicit;c("variant",e==null?null:e.Variants[0])}}function Se(n,h){if(n&1&&(t(0,"span"),a(1),i()),n&2){let e=C().$implicit;l(),E("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function ve(n,h){if(n&1&&(t(0,"tr")(1,"td"),a(2),i(),t(3,"td")(4,"div",25)(5,"div",26)(6,"div"),u(7,"img",27),w(8,"channelImage"),i(),t(9,"div"),u(10,"order-link",28),i()(),t(11,"small"),a(12),w(13,"date"),i()()(),t(14,"td"),a(15),i(),t(16,"td"),x(17,ge,1,1,"variants-dropdown",29)(18,he,1,1,"variant-with-image",30),i(),t(19,"td",31),a(20),w(21,"number"),i(),t(22,"td")(23,"div",25)(24,"div",26)(25,"span"),a(26),i(),x(27,Se,2,1,"span"),i(),t(28,"small"),a(29),i()()()()),n&2){let e=h.$implicit;l(2),v(e.Outlet),l(5),c("src",V(8,13,e==null?null:e.MarketType),W)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(3),c("order",e),l(2),E(" ",G(13,15,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(3),v(e.Customer),l(),D(U(20,_e,(e.Variants==null?null:e.Variants.length)>1)),l(),b((e.Variants==null?null:e.Variants.length)>1?17:18),l(3),v(V(21,18,e.Amount)),l(6),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),b(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?27:-1),l(2),E(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function we(n,h){if(n&1){let e=M();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),a(5,"Outlet"),i(),t(6,"th",21),a(7,"Number"),i(),t(8,"th",21),a(9,"Customer"),i(),t(10,"th"),a(11,"Items"),i(),t(12,"th",22),a(13,"Amount"),i(),t(14,"th",23),a(15,"Shipping"),i()()(),t(16,"tbody"),B(17,ve,30,22,"tr",null,k),i()(),t(19,"app-custom-paginator",24),T("next",function(){d(e);let r=C();return s(r.initCompletedOrders())})("previous",function(){d(e);let r=C();return s(r.initCompletedOrders())}),i()()}if(n&2){let e=C(),m=j(0);l(17),z(m),l(2),c("filter",e.filter())("totaldata",m==null?null:m.length)}}function ye(n,h){n&1&&(t(0,"div",16),u(1,"app-empty-state"),i())}var Xe=(()=>{class n{constructor(){this.completedService=y(P),this.filter=I({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.initCompletedOrders()}initCompletedOrders(){this.completedOrders$=this.completedService.getCompletedOrders(this.filter()).pipe(O(1))}static{this.\u0275fac=function(m){return new(m||n)}}static{this.\u0275cmp=F({type:n,selectors:[["app-completed"]],features:[H([P])],decls:34,vars:11,consts:[["headerTitle","Completed","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[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","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","100px"],[2,"width","250px"],[1,"text-end",2,"width","150px"],[2,"width","150px"],["rowCountApi","/api/orders/completedcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","14px","padding-bottom","2.5px",3,"src","alt"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"]],template:function(m,r){if(m&1){let p=M();A(0),w(1,"async"),t(2,"mainpanel",0),T("onSubmit",function(){return d(p),s(r.initCompletedOrders())}),g("textChange",function(o){return d(p),_(r.filter().Number,o)||(r.filter().Number=o),s(o)}),t(3,"actions")(4,"a",1),u(5,"i",2),t(6,"span"),a(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),a(11,"From/To"),i(),t(12,"channel-select-options",4),g("ngModelChange",function(o){return d(p),_(r.filter().ListChannelID,o)||(r.filter().ListChannelID=o),s(o)}),i()(),t(13,"div",5)(14,"label",3),a(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),g("dateChange",function(o){return d(p),_(r.filter().From,o)||(r.filter().From=o),s(o)}),i()(),t(18,"div")(19,"datepicker",8),g("dateChange",function(o){return d(p),_(r.filter().To,o)||(r.filter().To=o),s(o)}),i()()(),t(20,"div",5)(21,"label",9),a(22,"Page Number"),i(),t(23,"input",10),g("ngModelChange",function(o){return d(p),_(r.filter().PageNumber,o)||(r.filter().PageNumber=o),s(o)}),i()(),t(24,"div",5)(25,"label",9),a(26,"Page Size"),i(),t(27,"input",11),g("ngModelChange",function(o){return d(p),_(r.filter().PageSize,o)||(r.filter().PageSize=o),s(o)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),x(32,we,20,2,"div",15)(33,ye,2,0,"div",16),i()()()()()}if(m&2){let p=R(V(1,8,r.completedOrders$));l(2),f("text",r.filter().Number),l(10),c("multiple",!0),f("ngModel",r.filter().ListChannelID),l(5),f("date",r.filter().From),l(2),f("date",r.filter().To),l(4),f("ngModel",r.filter().PageNumber),l(4),f("ngModel",r.filter().PageSize),l(5),b((p==null?null:p.length)>0?32:33)}},dependencies:[Q,q,K,J,le,oe,me,ae,ee,X,$,Y,Z,se,ce,ue,de,pe,re,ne,Ce],encapsulation:2})}}return n})();export{Xe as CompletedComponent};
@@ -1,2 +1,2 @@
1
- import{a as L}from"./chunk-7AQ244V7.js";import{b as Re}from"./chunk-RMCAWPWK.js";import"./chunk-3LRWABHB.js";import"./chunk-74IXJYWO.js";import"./chunk-G47XGOST.js";import{a as Be}from"./chunk-SRVGUGY2.js";import{a as K}from"./chunk-XHAXYWZ7.js";import{a as Ne,b as Le,c as Ae,d as Y}from"./chunk-UDIDZKN6.js";import"./chunk-M5XGP4SG.js";import{a as De,b as ke}from"./chunk-CIIO2CJ6.js";import"./chunk-H3J5OAIG.js";import"./chunk-AQTXFEBA.js";import"./chunk-OC2FBL33.js";import"./chunk-NS46QSCM.js";import{a as Ve}from"./chunk-HAH7BBIR.js";import"./chunk-SDUUFQUI.js";import"./chunk-IL5JIRWJ.js";import{a as Me}from"./chunk-SYUFPF3D.js";import"./chunk-5OHRA4AS.js";import"./chunk-3BT5DR3X.js";import"./chunk-EH6HWI3G.js";import"./chunk-E3ROEHBW.js";import"./chunk-OLOIQI4D.js";import"./chunk-IA6KOBDJ.js";import"./chunk-RECNBAEB.js";import"./chunk-SN4AOGQK.js";import"./chunk-SB7NWPDS.js";import"./chunk-AYPY47VM.js";import"./chunk-SM3P57SO.js";import"./chunk-5KS4WK6H.js";import"./chunk-3RK6DDJD.js";import"./chunk-J2KWRDVH.js";import"./chunk-7SVF5UPT.js";import{a as H}from"./chunk-5DIRXS7I.js";import"./chunk-OZ7LWNOK.js";import"./chunk-ECRWEMEV.js";import"./chunk-LZCEM2PC.js";import{a as Te,b as Ee,c as Pe}from"./chunk-GSZJGR7K.js";import"./chunk-CMTBBXR5.js";import{h as fe}from"./chunk-TFQEBAZY.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-5HO2IJ47.js";import{e as Se}from"./chunk-5JVEEL2T.js";import{c as f}from"./chunk-PW42BQIY.js";import{a as Ce,b as ge,c as xe}from"./chunk-SWQXSJ7O.js";import"./chunk-DRMAONR7.js";import"./chunk-AEOSNAHH.js";import{b as ue,e as he}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{d as Ie,l as we,m as be,n as Fe}from"./chunk-CLER2MX6.js";import{A as de,b as se,c as ce,h as pe,m as me,o as _e}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import{r as ve,s as ye}from"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{d as te,g as ie,j as oe,k as ae,m as le,n as re}from"./chunk-M2FCTYGU.js";import{$c as g,Fc as z,G as q,Gb as X,Gc as p,Hc as k,Ic as V,Kc as w,Lc as b,Mb as u,Mc as F,Qc as ne,Ra as R,Sc as M,Yb as m,Z as $,ac as J,ad as v,bd as N,cd as G,dc as y,ea as O,ec as W,gc as j,hc as Q,ic as a,jc as r,kc as x,lc as E,mc as P,oc as S,pa as U,pb as D,rb as s,tc as h,uc as l,v as B,xb as I,xc as ee,ya as _,za as d}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import{a as A}from"./chunk-66YHNWRR.js";var Z=t=>[t],Ue=t=>({"text-decoration-line-through":t}),We=t=>({"me-10":t}),je=t=>({"bg-gradient-warning":t}),Qe=t=>({cursor:t});function ze(t,c){if(t&1){let e=S();a(0,"button",39),h("click",function(){_(e);let n=l().ngIf,i=l(2);return d(i.onScanInventory(n))}),x(1,"i",40),p(2,"Refresh "),r()}}function Ge(t,c){if(t&1){let e=S();a(0,"div",37)(1,"button",41),h("click",function(){_(e);let n=l().ngIf,i=l(2);return d(i.updateStock(n))}),x(2,"i",42),p(3," Update "),r(),x(4,"button",43),a(5,"ul",44)(6,"a",45),h("click",function(){_(e);let n=l(3);return d(n.openExportDialog())}),x(7,"i",46),a(8,"span"),p(9,"Export"),r()()()()}}function He(t,c){if(t&1){let e=S();a(0,"button",47),h("click",function(){_(e);let n=l(3);return d(n.openExportDialog())}),x(1,"i",46),a(2,"span"),p(3,"Export"),r()()}}function Ye(t,c){if(t&1&&(a(0,"div"),u(1,ze,3,0,"button",36)(2,Ge,10,0,"div",37)(3,He,4,0,"button",38),r()),t&2){let e=c.ngIf,o=l(2);s(),m("ngIf",o.productService.hasSelectionVariant(e)),s(),y(o.productService.hasSelectionVariant(e)?2:3)}}function Ke(t,c){t&1&&(a(0,"div",48)(1,"span"),p(2," showing only different stock, please press next to populate more data "),r()())}function Ze(t,c){if(t&1){let e=S();a(0,"th")(1,"input",49),F("ngModelChange",function(n){_(e);let i=l(3);return b(i.checkboxState,n)||(i.checkboxState=n),d(n)}),h("ngModelChange",function(){let n=_(e).ngIf,i=l(3);return d(i.onCheckboxStateChange(n))}),r()()}if(t&2){let e=l(3);s(),w("ngModel",e.checkboxState)}}function qe(t,c){if(t&1&&(E(0),u(1,Ze,2,1,"th",5),g(2,"async"),P()),t&2){let e=l(2);s(),m("ngIf",v(2,1,e.products$))}}function Xe(t,c){t&1&&(a(0,"th",33),p(1," Reserved "),r())}function Je(t,c){if(t&1){let e=S();a(0,"input",65),F("ngModelChange",function(n){_(e);let i=l(4).$implicit;return b(i.selected,n)||(i.selected=n),d(n)}),h("ngModelChange",function(){_(e);let n=l(4).$implicit,i=l(2);return d(i.onCheckboxStateProduct(n))}),r()}if(t&2){let e=l(4).$implicit;w("ngModel",e.selected)}}function en(t,c){if(t&1&&(E(0),a(1,"div",63),u(2,Je,1,1,"input",64),r(),P()),t&2){let e=l(3).$implicit;s(),m("ngClass",M(2,We,e.Variants.length<=1)),s(),y(e.Variants.length>1?2:-1)}}function nn(t,c){if(t&1){let e=S();a(0,"img",66),h("click",function(n){_(e);let i=l(3).$implicit,C=l(2);return d(C.onZoomImage(n,i==null?null:i.ImageUrl))}),r()}if(t&2){let e=l(3).$implicit;ee("src",e==null?null:e.ThumbnailUrl,D)}}function tn(t,c){t&1&&x(0,"img",60)}function on(t,c){if(t&1&&(x(0,"br"),a(1,"div",67),x(2,"i",68),a(3,"small"),p(4),r()()),t&2){let e=l(3).$implicit;s(4),V("(",e==null?null:e.Category,")")}}function an(t,c){if(t&1&&(a(0,"td",58)(1,"div",14),u(2,en,3,4,"ng-container",27),a(3,"div"),u(4,nn,1,1,"img",59)(5,tn,1,0,"img",60),r()()(),a(6,"td",61)(7,"span",62),p(8),r(),u(9,on,5,1),r()),t&2){let e=l(2).$implicit,o=l(2);m("rowSpan",e==null?null:e.Variants.length),s(2),m("ngxPermissionsOnly",M(6,Z,o.inventoryUpdateRole)),s(2),y(e!=null&&e.ThumbnailUrl?4:5),s(2),m("rowSpan",e==null?null:e.Variants.length),s(2),k(e==null?null:e.Name),s(),y(e.CategoryID!==null&&e.CategoryID!=o.guidEmpty?9:-1)}}function ln(t,c){if(t&1){let e=S();a(0,"input",49),F("ngModelChange",function(n){_(e);let i=l(3).$implicit;return b(i.selected,n)||(i.selected=n),d(n)}),r()}if(t&2){let e=l(3).$implicit;w("ngModel",e.selected)}}function rn(t,c){if(t&1&&u(0,ln,1,1,"input",70),t&2){let e=l(2).$implicit;y((e==null?null:e.Inventory)<=1e5?0:-1)}}function sn(t,c){if(t&1){let e=S();a(0,"input",49),F("ngModelChange",function(n){_(e);let i=l(2).$implicit;return b(i.selected,n)||(i.selected=n),d(n)}),r()}if(t&2){let e=l(2).$implicit;w("ngModel",e.selected)}}function cn(t,c){if(t&1&&(E(0),a(1,"td",69),u(2,rn,1,1)(3,sn,1,1,"input",70),r(),P()),t&2){let e=l().$implicit;s(2),y((e==null?null:e.Channel[0].TypeID)==1?2:(e==null?null:e.Inventory)>=0?3:-1)}}function pn(t,c){t&1&&(a(0,"div",71),p(1," Not Found "),r())}function mn(t,c){if(t&1&&(a(0,"div")(1,"span",72),p(2),g(3,"number"),r(),p(4," => "),a(5,"span",73),p(6),g(7,"number"),r()()),t&2){let e=l().$implicit;s(2),V(" ",v(3,2,e==null||e.I==null?null:e.I.Available),""),s(4),k(v(7,4,e==null?null:e.Inventory))}}function _n(t,c){if(t&1&&(p(0),g(1,"number")),t&2){let e=l().$implicit;V(" ",v(1,1,e==null?null:e.Inventory)," ")}}function dn(t,c){if(t&1&&(E(0),a(1,"div",74)(2,"a",75),x(3,"i",76),r()(),P()),t&2){let e=l().$implicit,o=l(3);s(2),m("href",o.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),D)}}function un(t,c){if(t&1){let e=S();a(0,"span",81),h("click",function(){_(e);let n=l(2).$implicit,i=l().$implicit,C=l(2);return d(C.openTableDialog(i,n))}),p(1),g(2,"number"),r()}if(t&2){let e=l(2).$implicit,o=l(3);J(M(5,Qe,o.hasInventoryEdit())),s(),V(" ",v(2,3,e==null||e.Channel[0]==null?null:e.Channel[0].Inventory)," ")}}function hn(t,c){if(t&1){let e=S();a(0,"td",77)(1,"div",53)(2,"div"),u(3,un,3,7,"span",78),g(4,"async"),r(),a(5,"div",74)(6,"a",75),x(7,"i",76),r()(),a(8,"div",74)(9,"span",79),h("click",function(){_(e);let n=l().$implicit,i=l(3);return d(i.refreshInventory(n==null||n.Channel[0]==null?null:n.Channel[0].ChannelItemID,n==null||n.Channel[0]==null?null:n.Channel[0].ChannelVariationID,n==null||n.Channel[0]==null?null:n.Channel[0].ChannelID,n==null?null:n.ID))}),x(10,"i",80),r()()()()}if(t&2){let e=l().$implicit,o=l(3);m("ngClass",M(5,je,(e==null?null:e.Inventory)!=(e==null||e.Channel[0]==null?null:e.Channel[0].Inventory))),s(3),m("ngIf",v(4,3,o.products$)),s(3),m("href",e==null||e.Channel[0]==null?null:e.Channel[0].Url,D)}}function Cn(t,c){if(t&1&&(E(0),a(1,"span",82),p(2),g(3,"number"),r(),P()),t&2){let e=l(2).$implicit;s(2),V(" (",v(3,1,e==null||e.Channel[0]==null?null:e.Channel[0].InventoryReserved),") ")}}function gn(t,c){t&1&&p(0," - ")}function xn(t,c){if(t&1&&(E(0),a(1,"td",51),u(2,Cn,4,3,"ng-container",57)(3,gn,1,0,"ng-template",null,1,G),r(),P()),t&2){let e=z(4),o=l().$implicit;s(2),m("ngIf",o==null||o.Channel[0]==null?null:o.Channel[0].InventoryReserved)("ngIfElse",e)}}function fn(t,c){t&1&&(E(0),p(1," - "),P())}function Sn(t,c){if(t&1&&(a(0,"span",83),g(1,"date"),p(2),g(3,"date"),r()),t&2){let e=l().$implicit;m("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 vn(t,c){if(t&1&&(a(0,"tr"),u(1,an,10,8),a(2,"td",50),p(3),r(),a(4,"td",51)(5,"span",52),p(6),r()(),u(7,cn,4,1,"ng-container",27),a(8,"td")(9,"div",53),u(10,pn,2,0,"div",54)(11,mn,8,6,"div")(12,_n,2,3)(13,dn,4,1,"ng-container",5),r()(),u(14,hn,11,7,"td",55)(15,xn,5,2,"ng-container",5),a(16,"td",56),u(17,fn,2,0,"ng-container",57)(18,Sn,4,8,"ng-template",null,0,G),r()()),t&2){let e=c.$implicit,o=c.$index,n=z(19),i=l(3);s(),y(o==0?1:-1),s(2),k(e==null?null:e.Model),s(2),m("matTooltip",e.Discontinued?i.discontinuedVariantMsg:"")("ngClass",M(14,Ue,e.Discontinued)),s(),k(e==null?null:e.Code),s(),m("ngxPermissionsOnly",M(16,Z,i.inventoryUpdateRole)),s(3),m("ngIf",(e==null?null:e.I)==null),s(),y((e==null?null:e.I)!=null&&(e==null?null:e.Inventory)!=(e==null||e.I==null?null:e.I.Available)?11:-1),s(),y((e==null?null:e.Inventory)==(e==null||e.I==null?null:e.I.Available)?12:-1),s(),m("ngIf",(e==null?null:e.I)!=null),s(),m("ngIf",e==null?null:e.Channel),s(),m("ngIf",i.isShowReservedColumn),s(2),m("ngIf",(e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync)==i.minDate)("ngIfElse",n)}}function yn(t,c){if(t&1&&(a(0,"tbody"),j(1,vn,20,18,"tr",null,W),r()),t&2){let e=c.$implicit;s(),Q(e.Variants)}}function In(t,c){if(t&1){let e=S();a(0,"mainpanel",3),h("onSubmit",function(n){_(e);let i=l();return d(i.onSearch(n))}),a(1,"actions")(2,"div",4),u(3,Ye,4,2,"div",5),g(4,"async"),r()(),a(5,"filters")(6,"div")(7,"label",6),p(8,"Channel"),r(),a(9,"multiwarehouse-tree-select",7),h("onChannelChange",function(n){_(e);let i=l();return d(i.onChannelChange(n))}),r()(),a(10,"div",8)(11,"label",9),p(12,"PageNumber"),r(),a(13,"input",10),F("ngModelChange",function(n){_(e);let i=l();return b(i.searchFilter.PageNumber,n)||(i.searchFilter.PageNumber=n),d(n)}),r()(),a(14,"div",8)(15,"label",11),p(16,"Page Size"),r(),a(17,"input",12),F("ngModelChange",function(n){_(e);let i=l();return b(i.searchFilter.RowCount,n)||(i.searchFilter.RowCount=n),d(n)}),r()(),a(18,"div",8)(19,"label",13),p(20,"Quantity From - To"),r(),a(21,"div",14)(22,"input",15),F("ngModelChange",function(n){_(e);let i=l();return b(i.searchFilter.QuantityFrom,n)||(i.searchFilter.QuantityFrom=n),d(n)}),r(),p(23," - "),a(24,"input",16),F("ngModelChange",function(n){_(e);let i=l();return b(i.searchFilter.QuantityTo,n)||(i.searchFilter.QuantityTo=n),d(n)}),r()()()(),a(25,"content")(26,"div",17)(27,"div",18)(28,"div",19),u(29,Ke,3,0,"div",20),a(30,"table",21),h("matSortChange",function(n){_(e);let i=l();return d(i.onSortVariant(n))}),a(31,"thead",22)(32,"tr")(33,"th",23),p(34," Product "),x(35,"br"),a(36,"mat-slide-toggle",24),h("toggleChange",function(){_(e);let n=l();return n.showDifferenceStock=!n.showDifferenceStock,d(n.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(),u(43,qe,3,3,"ng-container",27),a(44,"th",28),p(45," POS "),r(),a(46,"th",29)(47,"div",30),h("click",function(){_(e);let n=l();return d(n.openModalFilter())}),x(48,"img",31),a(49,"span",32),p(50),g(51,"stringLimit"),r()()(),u(52,Xe,2,0,"th",33),a(53,"th",34),p(54,"Last Sync"),r()()(),j(55,yn,3,0,"tbody",null,W),g(57,"async"),r(),a(58,"infinite-paginator",35),g(59,"async"),h("onNextPage",function(){_(e);let n=l();return d(n.infinitePagination.onNextPage(n.searchFilter))})("onLastPage",function(){_(e);let n=l();return d(n.infinitePagination.onLastPage(n.searchFilter))})("onGetRowCount",function(){_(e);let n=l();return d(n.infinitePagination.getRowCount(n.searchFilter))}),r()()()()()()}if(t&2){let e,o,n,i=l();m("headerTitle","Inventory Comparison")("pageData",i.pageData)("hideSearchBox",!1),s(3),m("ngIf",v(4,21,i.products$)),s(6),m("ngModel",(i.searchFilter==null?null:i.searchFilter.LocationID)||(i.searchFilter==null?null:i.searchFilter.ChannelID)),s(4),w("ngModel",i.searchFilter.PageNumber),s(4),w("ngModel",i.searchFilter.RowCount),s(5),w("ngModel",i.searchFilter.QuantityFrom),s(2),w("ngModel",i.searchFilter.QuantityTo),s(5),m("ngIf",(i.searchFilter==null?null:i.searchFilter.filterModel)==3),s(14),m("ngxPermissionsOnly",M(30,Z,i.inventoryUpdateRole)),s(4),m("matTooltip",((e=i.channelIdentity())==null||e.label==null?null:e.label.length)>13?(e=i.channelIdentity())==null?null:e.label:""),s(),m("src",(o=i.channelIdentity())==null?null:o.img,D),s(2),V(" ",N(51,23,(n=i.channelIdentity())==null?null:n.label,13)," "),s(2),y(i.isShowReservedColumn?52:-1),s(3),Q(v(57,26,i.products$)),s(3),m("totalData",i.infinitePagination.totalData())("hideCount",i.infinitePagination.hideCount())("rowCount",v(59,28,i.infinitePagination.totalRowCount$))("pageNumber",i.infinitePagination.pageNumber())("disableNextButton",i.infinitePagination.disableNextButton())("goToLastPage",i.infinitePagination.isLastPage())}}var st=(()=>{class t{constructor(e,o,n,i,C,T,$e,Oe){this.http=e,this.toastr=o,this.dialog=n,this.productService=i,this.authService=C,this.biggerPictureService=T,this.inventoryService=$e,this.mainPanelService=Oe,this.infinitePagination=U(Y),this.ngxPermissionsService=U(Ce),this.checkboxState=!1,this.showDifferenceStock=!1,this.loaderApi="InventoryLoader/Load",this.fetchApi="Inventory/GetSingleChannelComparison",this.rowCountApi="Inventory/GetInventoryByChannelRowCount",this.minDate=f.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=f.GuidEMpty,this.selectedChannel=R(null),this.channelIdentity=R({img:null,label:null}),this.inventoryUpdateRole=H.InventoryUpdate,this.hasInventoryEdit=R(!0),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.initRoles(),this.hostName=this.authService.getDomain(),this.initPageLoader(),this.sourceObs$=this.infinitePagination.data$.pipe(O(e=>{this.checkShowReservedColumn(e)}),B(e=>(e=this.calculateAvailableStock(e),e)),$(1)),this.products$=this.sourceObs$}initRoles(){this.ngxPermissionsService.hasPermission(H.InventoryUpdate).then(e=>this.hasInventoryEdit.set(e))}calculateAvailableStock(e){return e.map(n=>(n.totalAvailable=n.Variants.reduce((i,C)=>(i+=C.I?.Available||0,i),0),n))}checkShowReservedColumn(e){let o=0,n;e.forEach(i=>{n=i.Variants.find(C=>f.IsNotEmpty(C?.Channel[0]?.InventoryReserved)),n&&(o+=1)}),this.isShowReservedColumn=o>0}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.fetchApi,this.infinitePagination.fethRowCountEndpoint=this.rowCountApi,this.loader$=this.http.post(`/api/${this.loaderApi}`,{}).pipe($(1),O(e=>{this.searchFilter={RowCount:e.Filter.PageSize,filterModel:1,PageNumber:1,ChannelID:e.Filter.ChannelID,LocationID:e.Filter.LocationID},this.initReloadData(),this.showToastrMarketplaceInactive(!e.Filter.IsMarketplaceAppActive)}))}onChannelChange(e){let o=Object.assign({},e);this.selectedChannel.set(o),f.IsEmpty(this.channelIdentity()?.label)&&this.setChannelFilter()}setChannelFilter(){if(this.selectedChannel()){let e=Object.assign({},this.selectedChannel());f.IsNotEmpty(e.parent)?(this.searchFilter.LocationID=e.id,this.searchFilter.ChannelID=e?.parent?.id,e.label=e?.parent?.label+" - "+e?.label,e.img=f.getChannelLogoByTypeId(e?.parent?.typeid)):(this.searchFilter.LocationID=null,e.img=f.getChannelLogoByTypeId(e?.typeid),this.searchFilter.ChannelID=e?.id,this.selectedChannel.set(e)),this.channelIdentity.update(()=>({img:e.img,label:e.label}))}}initReloadData(){this.infinitePagination.reloadPagination(this.searchFilter)}showToastrMarketplaceInactive(e){e&&this.toastr.warning(`Automatic inventory sync disabled.
1
+ import{a as L}from"./chunk-7AQ244V7.js";import{b as Re}from"./chunk-RMCAWPWK.js";import"./chunk-3LRWABHB.js";import"./chunk-74IXJYWO.js";import"./chunk-G47XGOST.js";import{a as Be}from"./chunk-SRVGUGY2.js";import{a as K}from"./chunk-XHAXYWZ7.js";import{a as Ne,b as Le,c as Ae,d as Y}from"./chunk-UDIDZKN6.js";import"./chunk-M5XGP4SG.js";import{a as De,b as ke}from"./chunk-CIIO2CJ6.js";import"./chunk-H3J5OAIG.js";import"./chunk-AQTXFEBA.js";import"./chunk-OC2FBL33.js";import"./chunk-NS46QSCM.js";import{a as Ve}from"./chunk-SSAGHA7U.js";import"./chunk-SDUUFQUI.js";import"./chunk-IL5JIRWJ.js";import{a as Me}from"./chunk-SYUFPF3D.js";import"./chunk-5OHRA4AS.js";import"./chunk-3BT5DR3X.js";import"./chunk-EH6HWI3G.js";import"./chunk-E3ROEHBW.js";import"./chunk-OLOIQI4D.js";import"./chunk-IA6KOBDJ.js";import"./chunk-RECNBAEB.js";import"./chunk-SN4AOGQK.js";import"./chunk-SB7NWPDS.js";import"./chunk-AYPY47VM.js";import"./chunk-SM3P57SO.js";import"./chunk-5KS4WK6H.js";import"./chunk-3RK6DDJD.js";import"./chunk-J2KWRDVH.js";import"./chunk-7SVF5UPT.js";import{a as H}from"./chunk-5DIRXS7I.js";import"./chunk-OZ7LWNOK.js";import"./chunk-ECRWEMEV.js";import"./chunk-LZCEM2PC.js";import{a as Te,b as Ee,c as Pe}from"./chunk-GSZJGR7K.js";import"./chunk-CMTBBXR5.js";import{h as fe}from"./chunk-AEJ5I5MW.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-5HO2IJ47.js";import{e as Se}from"./chunk-5JVEEL2T.js";import{c as f}from"./chunk-PW42BQIY.js";import{a as Ce,b as ge,c as xe}from"./chunk-SWQXSJ7O.js";import"./chunk-DRMAONR7.js";import"./chunk-AEOSNAHH.js";import{b as ue,e as he}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{d as Ie,l as we,m as be,n as Fe}from"./chunk-CLER2MX6.js";import{A as de,b as se,c as ce,h as pe,m as me,o as _e}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import{r as ve,s as ye}from"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{d as te,g as ie,j as oe,k as ae,m as le,n as re}from"./chunk-M2FCTYGU.js";import{$c as g,Fc as z,G as q,Gb as X,Gc as p,Hc as k,Ic as V,Kc as w,Lc as b,Mb as u,Mc as F,Qc as ne,Ra as R,Sc as M,Yb as m,Z as $,ac as J,ad as v,bd as N,cd as G,dc as y,ea as O,ec as W,gc as j,hc as Q,ic as a,jc as r,kc as x,lc as E,mc as P,oc as S,pa as U,pb as D,rb as s,tc as h,uc as l,v as B,xb as I,xc as ee,ya as _,za as d}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import{a as A}from"./chunk-66YHNWRR.js";var Z=t=>[t],Ue=t=>({"text-decoration-line-through":t}),We=t=>({"me-10":t}),je=t=>({"bg-gradient-warning":t}),Qe=t=>({cursor:t});function ze(t,c){if(t&1){let e=S();a(0,"button",39),h("click",function(){_(e);let n=l().ngIf,i=l(2);return d(i.onScanInventory(n))}),x(1,"i",40),p(2,"Refresh "),r()}}function Ge(t,c){if(t&1){let e=S();a(0,"div",37)(1,"button",41),h("click",function(){_(e);let n=l().ngIf,i=l(2);return d(i.updateStock(n))}),x(2,"i",42),p(3," Update "),r(),x(4,"button",43),a(5,"ul",44)(6,"a",45),h("click",function(){_(e);let n=l(3);return d(n.openExportDialog())}),x(7,"i",46),a(8,"span"),p(9,"Export"),r()()()()}}function He(t,c){if(t&1){let e=S();a(0,"button",47),h("click",function(){_(e);let n=l(3);return d(n.openExportDialog())}),x(1,"i",46),a(2,"span"),p(3,"Export"),r()()}}function Ye(t,c){if(t&1&&(a(0,"div"),u(1,ze,3,0,"button",36)(2,Ge,10,0,"div",37)(3,He,4,0,"button",38),r()),t&2){let e=c.ngIf,o=l(2);s(),m("ngIf",o.productService.hasSelectionVariant(e)),s(),y(o.productService.hasSelectionVariant(e)?2:3)}}function Ke(t,c){t&1&&(a(0,"div",48)(1,"span"),p(2," showing only different stock, please press next to populate more data "),r()())}function Ze(t,c){if(t&1){let e=S();a(0,"th")(1,"input",49),F("ngModelChange",function(n){_(e);let i=l(3);return b(i.checkboxState,n)||(i.checkboxState=n),d(n)}),h("ngModelChange",function(){let n=_(e).ngIf,i=l(3);return d(i.onCheckboxStateChange(n))}),r()()}if(t&2){let e=l(3);s(),w("ngModel",e.checkboxState)}}function qe(t,c){if(t&1&&(E(0),u(1,Ze,2,1,"th",5),g(2,"async"),P()),t&2){let e=l(2);s(),m("ngIf",v(2,1,e.products$))}}function Xe(t,c){t&1&&(a(0,"th",33),p(1," Reserved "),r())}function Je(t,c){if(t&1){let e=S();a(0,"input",65),F("ngModelChange",function(n){_(e);let i=l(4).$implicit;return b(i.selected,n)||(i.selected=n),d(n)}),h("ngModelChange",function(){_(e);let n=l(4).$implicit,i=l(2);return d(i.onCheckboxStateProduct(n))}),r()}if(t&2){let e=l(4).$implicit;w("ngModel",e.selected)}}function en(t,c){if(t&1&&(E(0),a(1,"div",63),u(2,Je,1,1,"input",64),r(),P()),t&2){let e=l(3).$implicit;s(),m("ngClass",M(2,We,e.Variants.length<=1)),s(),y(e.Variants.length>1?2:-1)}}function nn(t,c){if(t&1){let e=S();a(0,"img",66),h("click",function(n){_(e);let i=l(3).$implicit,C=l(2);return d(C.onZoomImage(n,i==null?null:i.ImageUrl))}),r()}if(t&2){let e=l(3).$implicit;ee("src",e==null?null:e.ThumbnailUrl,D)}}function tn(t,c){t&1&&x(0,"img",60)}function on(t,c){if(t&1&&(x(0,"br"),a(1,"div",67),x(2,"i",68),a(3,"small"),p(4),r()()),t&2){let e=l(3).$implicit;s(4),V("(",e==null?null:e.Category,")")}}function an(t,c){if(t&1&&(a(0,"td",58)(1,"div",14),u(2,en,3,4,"ng-container",27),a(3,"div"),u(4,nn,1,1,"img",59)(5,tn,1,0,"img",60),r()()(),a(6,"td",61)(7,"span",62),p(8),r(),u(9,on,5,1),r()),t&2){let e=l(2).$implicit,o=l(2);m("rowSpan",e==null?null:e.Variants.length),s(2),m("ngxPermissionsOnly",M(6,Z,o.inventoryUpdateRole)),s(2),y(e!=null&&e.ThumbnailUrl?4:5),s(2),m("rowSpan",e==null?null:e.Variants.length),s(2),k(e==null?null:e.Name),s(),y(e.CategoryID!==null&&e.CategoryID!=o.guidEmpty?9:-1)}}function ln(t,c){if(t&1){let e=S();a(0,"input",49),F("ngModelChange",function(n){_(e);let i=l(3).$implicit;return b(i.selected,n)||(i.selected=n),d(n)}),r()}if(t&2){let e=l(3).$implicit;w("ngModel",e.selected)}}function rn(t,c){if(t&1&&u(0,ln,1,1,"input",70),t&2){let e=l(2).$implicit;y((e==null?null:e.Inventory)<=1e5?0:-1)}}function sn(t,c){if(t&1){let e=S();a(0,"input",49),F("ngModelChange",function(n){_(e);let i=l(2).$implicit;return b(i.selected,n)||(i.selected=n),d(n)}),r()}if(t&2){let e=l(2).$implicit;w("ngModel",e.selected)}}function cn(t,c){if(t&1&&(E(0),a(1,"td",69),u(2,rn,1,1)(3,sn,1,1,"input",70),r(),P()),t&2){let e=l().$implicit;s(2),y((e==null?null:e.Channel[0].TypeID)==1?2:(e==null?null:e.Inventory)>=0?3:-1)}}function pn(t,c){t&1&&(a(0,"div",71),p(1," Not Found "),r())}function mn(t,c){if(t&1&&(a(0,"div")(1,"span",72),p(2),g(3,"number"),r(),p(4," => "),a(5,"span",73),p(6),g(7,"number"),r()()),t&2){let e=l().$implicit;s(2),V(" ",v(3,2,e==null||e.I==null?null:e.I.Available),""),s(4),k(v(7,4,e==null?null:e.Inventory))}}function _n(t,c){if(t&1&&(p(0),g(1,"number")),t&2){let e=l().$implicit;V(" ",v(1,1,e==null?null:e.Inventory)," ")}}function dn(t,c){if(t&1&&(E(0),a(1,"div",74)(2,"a",75),x(3,"i",76),r()(),P()),t&2){let e=l().$implicit,o=l(3);s(2),m("href",o.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),D)}}function un(t,c){if(t&1){let e=S();a(0,"span",81),h("click",function(){_(e);let n=l(2).$implicit,i=l().$implicit,C=l(2);return d(C.openTableDialog(i,n))}),p(1),g(2,"number"),r()}if(t&2){let e=l(2).$implicit,o=l(3);J(M(5,Qe,o.hasInventoryEdit())),s(),V(" ",v(2,3,e==null||e.Channel[0]==null?null:e.Channel[0].Inventory)," ")}}function hn(t,c){if(t&1){let e=S();a(0,"td",77)(1,"div",53)(2,"div"),u(3,un,3,7,"span",78),g(4,"async"),r(),a(5,"div",74)(6,"a",75),x(7,"i",76),r()(),a(8,"div",74)(9,"span",79),h("click",function(){_(e);let n=l().$implicit,i=l(3);return d(i.refreshInventory(n==null||n.Channel[0]==null?null:n.Channel[0].ChannelItemID,n==null||n.Channel[0]==null?null:n.Channel[0].ChannelVariationID,n==null||n.Channel[0]==null?null:n.Channel[0].ChannelID,n==null?null:n.ID))}),x(10,"i",80),r()()()()}if(t&2){let e=l().$implicit,o=l(3);m("ngClass",M(5,je,(e==null?null:e.Inventory)!=(e==null||e.Channel[0]==null?null:e.Channel[0].Inventory))),s(3),m("ngIf",v(4,3,o.products$)),s(3),m("href",e==null||e.Channel[0]==null?null:e.Channel[0].Url,D)}}function Cn(t,c){if(t&1&&(E(0),a(1,"span",82),p(2),g(3,"number"),r(),P()),t&2){let e=l(2).$implicit;s(2),V(" (",v(3,1,e==null||e.Channel[0]==null?null:e.Channel[0].InventoryReserved),") ")}}function gn(t,c){t&1&&p(0," - ")}function xn(t,c){if(t&1&&(E(0),a(1,"td",51),u(2,Cn,4,3,"ng-container",57)(3,gn,1,0,"ng-template",null,1,G),r(),P()),t&2){let e=z(4),o=l().$implicit;s(2),m("ngIf",o==null||o.Channel[0]==null?null:o.Channel[0].InventoryReserved)("ngIfElse",e)}}function fn(t,c){t&1&&(E(0),p(1," - "),P())}function Sn(t,c){if(t&1&&(a(0,"span",83),g(1,"date"),p(2),g(3,"date"),r()),t&2){let e=l().$implicit;m("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 vn(t,c){if(t&1&&(a(0,"tr"),u(1,an,10,8),a(2,"td",50),p(3),r(),a(4,"td",51)(5,"span",52),p(6),r()(),u(7,cn,4,1,"ng-container",27),a(8,"td")(9,"div",53),u(10,pn,2,0,"div",54)(11,mn,8,6,"div")(12,_n,2,3)(13,dn,4,1,"ng-container",5),r()(),u(14,hn,11,7,"td",55)(15,xn,5,2,"ng-container",5),a(16,"td",56),u(17,fn,2,0,"ng-container",57)(18,Sn,4,8,"ng-template",null,0,G),r()()),t&2){let e=c.$implicit,o=c.$index,n=z(19),i=l(3);s(),y(o==0?1:-1),s(2),k(e==null?null:e.Model),s(2),m("matTooltip",e.Discontinued?i.discontinuedVariantMsg:"")("ngClass",M(14,Ue,e.Discontinued)),s(),k(e==null?null:e.Code),s(),m("ngxPermissionsOnly",M(16,Z,i.inventoryUpdateRole)),s(3),m("ngIf",(e==null?null:e.I)==null),s(),y((e==null?null:e.I)!=null&&(e==null?null:e.Inventory)!=(e==null||e.I==null?null:e.I.Available)?11:-1),s(),y((e==null?null:e.Inventory)==(e==null||e.I==null?null:e.I.Available)?12:-1),s(),m("ngIf",(e==null?null:e.I)!=null),s(),m("ngIf",e==null?null:e.Channel),s(),m("ngIf",i.isShowReservedColumn),s(2),m("ngIf",(e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync)==i.minDate)("ngIfElse",n)}}function yn(t,c){if(t&1&&(a(0,"tbody"),j(1,vn,20,18,"tr",null,W),r()),t&2){let e=c.$implicit;s(),Q(e.Variants)}}function In(t,c){if(t&1){let e=S();a(0,"mainpanel",3),h("onSubmit",function(n){_(e);let i=l();return d(i.onSearch(n))}),a(1,"actions")(2,"div",4),u(3,Ye,4,2,"div",5),g(4,"async"),r()(),a(5,"filters")(6,"div")(7,"label",6),p(8,"Channel"),r(),a(9,"multiwarehouse-tree-select",7),h("onChannelChange",function(n){_(e);let i=l();return d(i.onChannelChange(n))}),r()(),a(10,"div",8)(11,"label",9),p(12,"PageNumber"),r(),a(13,"input",10),F("ngModelChange",function(n){_(e);let i=l();return b(i.searchFilter.PageNumber,n)||(i.searchFilter.PageNumber=n),d(n)}),r()(),a(14,"div",8)(15,"label",11),p(16,"Page Size"),r(),a(17,"input",12),F("ngModelChange",function(n){_(e);let i=l();return b(i.searchFilter.RowCount,n)||(i.searchFilter.RowCount=n),d(n)}),r()(),a(18,"div",8)(19,"label",13),p(20,"Quantity From - To"),r(),a(21,"div",14)(22,"input",15),F("ngModelChange",function(n){_(e);let i=l();return b(i.searchFilter.QuantityFrom,n)||(i.searchFilter.QuantityFrom=n),d(n)}),r(),p(23," - "),a(24,"input",16),F("ngModelChange",function(n){_(e);let i=l();return b(i.searchFilter.QuantityTo,n)||(i.searchFilter.QuantityTo=n),d(n)}),r()()()(),a(25,"content")(26,"div",17)(27,"div",18)(28,"div",19),u(29,Ke,3,0,"div",20),a(30,"table",21),h("matSortChange",function(n){_(e);let i=l();return d(i.onSortVariant(n))}),a(31,"thead",22)(32,"tr")(33,"th",23),p(34," Product "),x(35,"br"),a(36,"mat-slide-toggle",24),h("toggleChange",function(){_(e);let n=l();return n.showDifferenceStock=!n.showDifferenceStock,d(n.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(),u(43,qe,3,3,"ng-container",27),a(44,"th",28),p(45," POS "),r(),a(46,"th",29)(47,"div",30),h("click",function(){_(e);let n=l();return d(n.openModalFilter())}),x(48,"img",31),a(49,"span",32),p(50),g(51,"stringLimit"),r()()(),u(52,Xe,2,0,"th",33),a(53,"th",34),p(54,"Last Sync"),r()()(),j(55,yn,3,0,"tbody",null,W),g(57,"async"),r(),a(58,"infinite-paginator",35),g(59,"async"),h("onNextPage",function(){_(e);let n=l();return d(n.infinitePagination.onNextPage(n.searchFilter))})("onLastPage",function(){_(e);let n=l();return d(n.infinitePagination.onLastPage(n.searchFilter))})("onGetRowCount",function(){_(e);let n=l();return d(n.infinitePagination.getRowCount(n.searchFilter))}),r()()()()()()}if(t&2){let e,o,n,i=l();m("headerTitle","Inventory Comparison")("pageData",i.pageData)("hideSearchBox",!1),s(3),m("ngIf",v(4,21,i.products$)),s(6),m("ngModel",(i.searchFilter==null?null:i.searchFilter.LocationID)||(i.searchFilter==null?null:i.searchFilter.ChannelID)),s(4),w("ngModel",i.searchFilter.PageNumber),s(4),w("ngModel",i.searchFilter.RowCount),s(5),w("ngModel",i.searchFilter.QuantityFrom),s(2),w("ngModel",i.searchFilter.QuantityTo),s(5),m("ngIf",(i.searchFilter==null?null:i.searchFilter.filterModel)==3),s(14),m("ngxPermissionsOnly",M(30,Z,i.inventoryUpdateRole)),s(4),m("matTooltip",((e=i.channelIdentity())==null||e.label==null?null:e.label.length)>13?(e=i.channelIdentity())==null?null:e.label:""),s(),m("src",(o=i.channelIdentity())==null?null:o.img,D),s(2),V(" ",N(51,23,(n=i.channelIdentity())==null?null:n.label,13)," "),s(2),y(i.isShowReservedColumn?52:-1),s(3),Q(v(57,26,i.products$)),s(3),m("totalData",i.infinitePagination.totalData())("hideCount",i.infinitePagination.hideCount())("rowCount",v(59,28,i.infinitePagination.totalRowCount$))("pageNumber",i.infinitePagination.pageNumber())("disableNextButton",i.infinitePagination.disableNextButton())("goToLastPage",i.infinitePagination.isLastPage())}}var st=(()=>{class t{constructor(e,o,n,i,C,T,$e,Oe){this.http=e,this.toastr=o,this.dialog=n,this.productService=i,this.authService=C,this.biggerPictureService=T,this.inventoryService=$e,this.mainPanelService=Oe,this.infinitePagination=U(Y),this.ngxPermissionsService=U(Ce),this.checkboxState=!1,this.showDifferenceStock=!1,this.loaderApi="InventoryLoader/Load",this.fetchApi="Inventory/GetSingleChannelComparison",this.rowCountApi="Inventory/GetInventoryByChannelRowCount",this.minDate=f.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=f.GuidEMpty,this.selectedChannel=R(null),this.channelIdentity=R({img:null,label:null}),this.inventoryUpdateRole=H.InventoryUpdate,this.hasInventoryEdit=R(!0),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.initRoles(),this.hostName=this.authService.getDomain(),this.initPageLoader(),this.sourceObs$=this.infinitePagination.data$.pipe(O(e=>{this.checkShowReservedColumn(e)}),B(e=>(e=this.calculateAvailableStock(e),e)),$(1)),this.products$=this.sourceObs$}initRoles(){this.ngxPermissionsService.hasPermission(H.InventoryUpdate).then(e=>this.hasInventoryEdit.set(e))}calculateAvailableStock(e){return e.map(n=>(n.totalAvailable=n.Variants.reduce((i,C)=>(i+=C.I?.Available||0,i),0),n))}checkShowReservedColumn(e){let o=0,n;e.forEach(i=>{n=i.Variants.find(C=>f.IsNotEmpty(C?.Channel[0]?.InventoryReserved)),n&&(o+=1)}),this.isShowReservedColumn=o>0}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.fetchApi,this.infinitePagination.fethRowCountEndpoint=this.rowCountApi,this.loader$=this.http.post(`/api/${this.loaderApi}`,{}).pipe($(1),O(e=>{this.searchFilter={RowCount:e.Filter.PageSize,filterModel:1,PageNumber:1,ChannelID:e.Filter.ChannelID,LocationID:e.Filter.LocationID},this.initReloadData(),this.showToastrMarketplaceInactive(!e.Filter.IsMarketplaceAppActive)}))}onChannelChange(e){let o=Object.assign({},e);this.selectedChannel.set(o),f.IsEmpty(this.channelIdentity()?.label)&&this.setChannelFilter()}setChannelFilter(){if(this.selectedChannel()){let e=Object.assign({},this.selectedChannel());f.IsNotEmpty(e.parent)?(this.searchFilter.LocationID=e.id,this.searchFilter.ChannelID=e?.parent?.id,e.label=e?.parent?.label+" - "+e?.label,e.img=f.getChannelLogoByTypeId(e?.parent?.typeid)):(this.searchFilter.LocationID=null,e.img=f.getChannelLogoByTypeId(e?.typeid),this.searchFilter.ChannelID=e?.id,this.selectedChannel.set(e)),this.channelIdentity.update(()=>({img:e.img,label:e.label}))}}initReloadData(){this.infinitePagination.reloadPagination(this.searchFilter)}showToastrMarketplaceInactive(e){e&&this.toastr.warning(`Automatic inventory sync disabled.
2
2
  Please enable Dealpos X Marketplace Apps integration in POS Configuration`,"Warning")}onSearch(e){this.searchFilter.text=e,this.setChannelFilter(),this.initReloadData()}openModalFilter(){this.mainPanelService.openModalFilter()}updateStock(e){let o=this.productService.selectedVariantProduct(e);if(o.length>0){let n=this.searchFilter.LocationID,i=o.map(T=>A({ID:T.ID,Code:T.Code,Inventory:T.Inventory},f.IsNotEmpty(n)&&{LocationID:n})),C={ListChannelID:[this.searchFilter.ChannelID],List:i};this.http.post("/api/Inventory/UpdateChannel",C).subscribe(T=>{this.initReloadData(),this.checkboxState=!1,this.handlingUpdateStock(T)})}}handlingUpdateStock(e){if(e[0]?.Response){let o=e[0]?.Response?.Fail_list,n=e[0]?.Response?.Success_list;this.inventoryService.showToastrUpdateInventory("Stock",n,o)}else this.toastr.error(e[0]?.Exception,"Error")}refreshInventory(e,o,n,i){let C={ChannelItemID:e,ChannelVariationID:o,ChannelID:n,VariantID:i};this.http.post("/api/Inventory/RefreshInventoryChannel",C).subscribe(T=>{this.toastr.success("Successfully updated","Success"),this.initReloadData()})}onCheckboxStateProduct(e){e.Variants=e.Variants.map(o=>(o.Inventory>=0&&(o.selected=e.selected),o))}onCheckboxStateChange(e){e=e.map(o=>(o.Variants=o.Variants.map(n=>(n.selected=this.checkboxState,n)),o))}openTableDialog(e,o){this.hasInventoryEdit()&&this.dialog.open(Ne,{data:{Name:e.Name,Variant:o,ChannelID:o?.Channel[0].ChannelID,Table:"inventory",ChannelItemID:e.ChannelItemID}}).afterClosed().pipe(q(i=>f.IsNotEmpty(i))).subscribe(i=>{this.updateItemAfterDialog(i)})}updateItemAfterDialog(e){let o=this.searchFilter.LocationID,n=A({ID:e.ChannelID,ChannelItemID:e.ChannelItemID,ChannelVariantID:e.ChannelVariationID,NewQuantity:parseFloat(e.Inventory),VariantID:e.ID,SKU:e.Sku},f.IsNotEmpty(o)&&{LocationID:o});this.http.post("/api/Inventory/UpdateQuantityByItem",n).subscribe(i=>{this.searchFilter.PageNumber=1,this.initReloadData(),this.handlingUpdateStock([i])})}onScanInventory(e){let o=this.productService.selectedVariantProduct(e);this.inventoryService.refreshInventory(o).subscribe(()=>{this.initReloadData(),this.toastr.success("Inventory refreshed successfully","Success")})}openExportDialog(){this.dialog.open(Re,{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=K.DIFFERENCE:this.searchFilter.filterModel=K.ALL,this.initReloadData()}onZoomImage(e,o){this.biggerPictureService.openBiggerPicture(e,o)}onSortVariant(e){if(e.direction==""){this.products$=this.sourceObs$;return}this.products$=this.products$.pipe(B(o=>o.map(n=>(n.Variants=n.Variants.sort((i,C)=>f.compare(i.I?.Available,C.I?.Available,e.direction==="asc")),n)).sort((n,i)=>f.compare(n.totalAvailable,i.totalAvailable,e.direction==="asc"))))}static{this.\u0275fac=function(o){return new(o||t)(I(he),I(ue),I(Ie),I(Ve),I(fe),I(Me),I(L),I(we))}}static{this.\u0275cmp=X({type:t,selectors:[["app-single-channel-comparison"]],features:[ne([Y,L])],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%"],[4,"ngxPermissionsOnly"],["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,"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"],[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"],[3,"ngClass"],["type","checkbox",1,"me-3",3,"ngModel"],["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%"],[1,"align-middle"],["type","checkbox",3,"ngModel"],["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"],[3,"class","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"],[3,"click"],[1,"text-danger"],["matTooltipShowDelay","500",3,"matTooltip"]],template:function(o,n){o&1&&(u(0,In,60,32,"mainpanel",2),g(1,"async")),o&2&&m("ngIf",v(1,1,n.loader$))},dependencies:[re,te,ie,oe,le,ae,Fe,be,Se,de,ce,_e,se,pe,me,Le,Ae,xe,ge,ke,De,ye,ve,Pe,Te,Ee,Be],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}"]})}}return t})();export{st as SingleChannelComparisonComponent};
@@ -1 +1 @@
1
- import{a as mt}from"./chunk-7KG3DC5J.js";import{a as st}from"./chunk-WPW3D4MQ.js";import{h as it}from"./chunk-TFQEBAZY.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-5HO2IJ47.js";import{a as nt,b as ot,d as at,e as rt}from"./chunk-5JVEEL2T.js";import{c as tt}from"./chunk-PW42BQIY.js";import"./chunk-SWQXSJ7O.js";import{a as lt}from"./chunk-DRMAONR7.js";import"./chunk-AEOSNAHH.js";import{e as et}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{m as pt,n as ct}from"./chunk-CLER2MX6.js";import{A as Z,h as X,m as Y}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{H as K,J as Q,d as A,f as j,g as U,j as W,k as q,m as G,n as J}from"./chunk-M2FCTYGU.js";import{$c as s,Fc as R,Gb as L,Gc as l,Hc as N,Ic as y,Kc as $,Lc as O,Mb as d,Mc as B,Rc as V,Sc as k,Tc as H,Yb as p,Z as I,ad as u,bd as E,ca as D,cd as z,f as w,ic as n,jc as o,kc as v,lc as f,mc as g,ob as M,oc as P,pb as b,rb as a,tc as T,uc as m,v as _,xb as S,xc as F,ya as h,za as C}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var ft=(i,c)=>({"bg-gradient-danger":i,"bg-gradient-warning":c}),gt=()=>["/menu/products/status/notification/detail"],ut=i=>({ID:i});function _t(i,c){if(i&1&&(n(0,"span",14),v(1,"img",15),o(),l(2)),i&2){let t=c.item;a(),p("src",t.Img,b)("alt",t.Name),a(),y(" ",t.Name," ")}}function ht(i,c){if(i&1&&(f(0),l(1),s(2,"number"),n(3,"span"),l(4,"s"),o(),g()),i&2){let t=m().$implicit;a(),y(" ",E(2,1,t.DurationInSecond,"1.1-1")," ")}}function Ct(i,c){i&1&&l(0," - ")}function St(i,c){if(i&1&&(f(0),n(1,"tr",16)(2,"td")(3,"a",17),v(4,"img",18),n(5,"span"),l(6),o()()(),n(7,"td")(8,"b"),l(9),o(),v(10,"div",19),o(),n(11,"td"),d(12,ht,5,4,"ng-container",20)(13,Ct,1,0,"ng-template",null,0,z),o(),n(15,"td"),l(16),o(),n(17,"td"),l(18),s(19,"date"),o()(),g()),i&2){let t=c.$implicit,e=R(14);a(),p("ngClass",H(14,ft,t.Status==1,t.Status==0)),a(2),p("routerLink",V(17,gt))("queryParams",k(18,ut,t.ID)),a(),F("src",t.Img,b),a(2),N(t.Name),a(3),N(t.Label),a(),p("innerHTML",t.Message,M),a(2),p("ngIf",t.DurationInSecond)("ngIfElse",e),a(4),N(t.StatusLabel),a(2),y(" ",E(19,11,t.Created,"dd MMM yyyy HH:mm")," ")}}function vt(i,c){if(i&1){let t=P();f(0),n(1,"div",6)(2,"div",21)(3,"app-custom-paginator",22),s(4,"async"),s(5,"async"),T("total",function(){h(t);let r=m(2);return C(r.getRowCount())})("next",function(){h(t);let r=m(2);return C(r.getNotifications())})("previous",function(){h(t);let r=m(2);return C(r.getNotifications())}),o()()(),g()}if(i&2){let t=m().ngIf,e=m();a(3),p("filter",e.filter)("totaldata",t==null?null:t.length)("paginationTotal",u(4,4,e.rowCount$))("hasClicked",u(5,6,e.rowCount$))}}function Nt(i,c){if(i&1&&(f(0),d(1,vt,6,8,"ng-container",13),g()),i&2){let t=c.ngIf;a(),p("ngIf",t.length>0)}}var Ht=(()=>{class i{constructor(t,e,r){this.http=t,this.notificationService=e,this.authService=r,this.filter=new mt,this.destroy$=new w,this.channelOptions=r.getChannels()}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe(D(this.destroy$)).subscribe(t=>{t.length>0&&(this.getNotifications(),this.notificationService.clearNotification())})}initPageLoader(){this.http.post("/api/notification/Load",{}).subscribe(t=>{this.filter=t.Filter,this.filter.PageSize=this.filter.RowCount,this.getNotifications()})}onFilter(){this.rowCount$=null,this.getNotifications()}getNotifications(){let t={ChannelID:this.filter.ChannelID,RowCount:this.filter.PageSize,PageNumber:this.filter.PageNumber};this.notifications$=this.http.post("/api/notification/Get",t).pipe(_(e=>e.Data),_(e=>(e=this.setChannelLogoToNotifications(e),e=this.setTimeToSecond(e),e)),I(1))}setTimeToSecond(t){return t=t.map(e=>(e.DurationInSecond=parseInt(e.Duration)/1e3,e)),t}setChannelLogoToNotifications(t){return t=t.map(e=>(e.Img=tt.getChannelLogoByTypeId(e.TypeID),e)),t}getRowCount(){let t={ChannelID:this.filter.ChannelID};this.rowCount$=this.http.post("/api/notification/RowCount",t).pipe(_(e=>e.Count),I(1))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(e){return new(e||i)(S(et),S(lt),S(it))}}static{this.\u0275cmp=L({type:i,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(e,r){e&1&&(n(0,"mainpanel",1),T("onSubmit",function(){return r.onFilter()}),n(1,"filters")(2,"div")(3,"h6",2),l(4,"Channel"),o(),n(5,"ng-select",3),B("ngModelChange",function(x){return O(r.filter.ChannelID,x)||(r.filter.ChannelID=x),x}),d(6,_t,3,3,"ng-template",4),o()()(),n(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(),n(17,"th"),l(18,"Process"),o(),n(19,"th"),l(20,"Duration"),o(),n(21,"th"),l(22,"Status"),o(),n(23,"th"),l(24,"Created"),o()()(),n(25,"tbody"),d(26,St,20,20,"ng-container",12),s(27,"async"),o()()()()(),d(28,Nt,2,1,"ng-container",13),s(29,"async"),o()()()),e&2&&(a(5),p("clearable",!0)("items",r.channelOptions),$("ngModel",r.filter.ChannelID),a(21),p("ngForOf",u(27,5,r.notifications$)),a(2),p("ngIf",u(29,7,r.notifications$)))},dependencies:[J,A,j,U,W,G,q,Z,X,Y,ct,pt,st,rt,at,nt,ot,Q,K],encapsulation:2})}}return i})();export{Ht as NotificationComponent};
1
+ import{a as mt}from"./chunk-7KG3DC5J.js";import{a as st}from"./chunk-WPW3D4MQ.js";import{h as it}from"./chunk-AEJ5I5MW.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-5HO2IJ47.js";import{a as nt,b as ot,d as at,e as rt}from"./chunk-5JVEEL2T.js";import{c as tt}from"./chunk-PW42BQIY.js";import"./chunk-SWQXSJ7O.js";import{a as lt}from"./chunk-DRMAONR7.js";import"./chunk-AEOSNAHH.js";import{e as et}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{m as pt,n as ct}from"./chunk-CLER2MX6.js";import{A as Z,h as X,m as Y}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{H as K,J as Q,d as A,f as j,g as U,j as W,k as q,m as G,n as J}from"./chunk-M2FCTYGU.js";import{$c as s,Fc as R,Gb as L,Gc as l,Hc as N,Ic as y,Kc as $,Lc as O,Mb as d,Mc as B,Rc as V,Sc as k,Tc as H,Yb as p,Z as I,ad as u,bd as E,ca as D,cd as z,f as w,ic as n,jc as o,kc as v,lc as f,mc as g,ob as M,oc as P,pb as b,rb as a,tc as T,uc as m,v as _,xb as S,xc as F,ya as h,za as C}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var ft=(i,c)=>({"bg-gradient-danger":i,"bg-gradient-warning":c}),gt=()=>["/menu/products/status/notification/detail"],ut=i=>({ID:i});function _t(i,c){if(i&1&&(n(0,"span",14),v(1,"img",15),o(),l(2)),i&2){let t=c.item;a(),p("src",t.Img,b)("alt",t.Name),a(),y(" ",t.Name," ")}}function ht(i,c){if(i&1&&(f(0),l(1),s(2,"number"),n(3,"span"),l(4,"s"),o(),g()),i&2){let t=m().$implicit;a(),y(" ",E(2,1,t.DurationInSecond,"1.1-1")," ")}}function Ct(i,c){i&1&&l(0," - ")}function St(i,c){if(i&1&&(f(0),n(1,"tr",16)(2,"td")(3,"a",17),v(4,"img",18),n(5,"span"),l(6),o()()(),n(7,"td")(8,"b"),l(9),o(),v(10,"div",19),o(),n(11,"td"),d(12,ht,5,4,"ng-container",20)(13,Ct,1,0,"ng-template",null,0,z),o(),n(15,"td"),l(16),o(),n(17,"td"),l(18),s(19,"date"),o()(),g()),i&2){let t=c.$implicit,e=R(14);a(),p("ngClass",H(14,ft,t.Status==1,t.Status==0)),a(2),p("routerLink",V(17,gt))("queryParams",k(18,ut,t.ID)),a(),F("src",t.Img,b),a(2),N(t.Name),a(3),N(t.Label),a(),p("innerHTML",t.Message,M),a(2),p("ngIf",t.DurationInSecond)("ngIfElse",e),a(4),N(t.StatusLabel),a(2),y(" ",E(19,11,t.Created,"dd MMM yyyy HH:mm")," ")}}function vt(i,c){if(i&1){let t=P();f(0),n(1,"div",6)(2,"div",21)(3,"app-custom-paginator",22),s(4,"async"),s(5,"async"),T("total",function(){h(t);let r=m(2);return C(r.getRowCount())})("next",function(){h(t);let r=m(2);return C(r.getNotifications())})("previous",function(){h(t);let r=m(2);return C(r.getNotifications())}),o()()(),g()}if(i&2){let t=m().ngIf,e=m();a(3),p("filter",e.filter)("totaldata",t==null?null:t.length)("paginationTotal",u(4,4,e.rowCount$))("hasClicked",u(5,6,e.rowCount$))}}function Nt(i,c){if(i&1&&(f(0),d(1,vt,6,8,"ng-container",13),g()),i&2){let t=c.ngIf;a(),p("ngIf",t.length>0)}}var Ht=(()=>{class i{constructor(t,e,r){this.http=t,this.notificationService=e,this.authService=r,this.filter=new mt,this.destroy$=new w,this.channelOptions=r.getChannels()}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe(D(this.destroy$)).subscribe(t=>{t.length>0&&(this.getNotifications(),this.notificationService.clearNotification())})}initPageLoader(){this.http.post("/api/notification/Load",{}).subscribe(t=>{this.filter=t.Filter,this.filter.PageSize=this.filter.RowCount,this.getNotifications()})}onFilter(){this.rowCount$=null,this.getNotifications()}getNotifications(){let t={ChannelID:this.filter.ChannelID,RowCount:this.filter.PageSize,PageNumber:this.filter.PageNumber};this.notifications$=this.http.post("/api/notification/Get",t).pipe(_(e=>e.Data),_(e=>(e=this.setChannelLogoToNotifications(e),e=this.setTimeToSecond(e),e)),I(1))}setTimeToSecond(t){return t=t.map(e=>(e.DurationInSecond=parseInt(e.Duration)/1e3,e)),t}setChannelLogoToNotifications(t){return t=t.map(e=>(e.Img=tt.getChannelLogoByTypeId(e.TypeID),e)),t}getRowCount(){let t={ChannelID:this.filter.ChannelID};this.rowCount$=this.http.post("/api/notification/RowCount",t).pipe(_(e=>e.Count),I(1))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(e){return new(e||i)(S(et),S(lt),S(it))}}static{this.\u0275cmp=L({type:i,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(e,r){e&1&&(n(0,"mainpanel",1),T("onSubmit",function(){return r.onFilter()}),n(1,"filters")(2,"div")(3,"h6",2),l(4,"Channel"),o(),n(5,"ng-select",3),B("ngModelChange",function(x){return O(r.filter.ChannelID,x)||(r.filter.ChannelID=x),x}),d(6,_t,3,3,"ng-template",4),o()()(),n(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(),n(17,"th"),l(18,"Process"),o(),n(19,"th"),l(20,"Duration"),o(),n(21,"th"),l(22,"Status"),o(),n(23,"th"),l(24,"Created"),o()()(),n(25,"tbody"),d(26,St,20,20,"ng-container",12),s(27,"async"),o()()()()(),d(28,Nt,2,1,"ng-container",13),s(29,"async"),o()()()),e&2&&(a(5),p("clearable",!0)("items",r.channelOptions),$("ngModel",r.filter.ChannelID),a(21),p("ngForOf",u(27,5,r.notifications$)),a(2),p("ngIf",u(29,7,r.notifications$)))},dependencies:[J,A,j,U,W,G,q,Z,X,Y,ct,pt,st,rt,at,nt,ot,Q,K],encapsulation:2})}}return i})();export{Ht as NotificationComponent};