marketplacepos 5.50.0 → 5.50.1
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-35N7HHLQ.js → chunk-2UNT2DUM.js} +1 -1
- package/Marketplace/{chunk-NMFPLAWN.js → chunk-3PIHLKK3.js} +1 -1
- package/Marketplace/{chunk-5ZS5MEG7.js → chunk-44KIXUU2.js} +1 -1
- package/Marketplace/{chunk-NQVNAQCL.js → chunk-4G46574H.js} +1 -1
- package/Marketplace/{chunk-S4JKTHY2.js → chunk-4YKPN3RV.js} +1 -1
- package/Marketplace/{chunk-BKZIKCX7.js → chunk-67LUKQJC.js} +1 -1
- package/Marketplace/{chunk-WQHFRJZZ.js → chunk-6GNIJWEX.js} +1 -1
- package/Marketplace/{chunk-7IOQ6VVF.js → chunk-AJSJJV2I.js} +1 -1
- package/Marketplace/{chunk-G6O6VFLS.js → chunk-BXNDE6NQ.js} +1 -1
- package/Marketplace/{chunk-BYX6HZW7.js → chunk-E4RY2MK5.js} +1 -1
- package/Marketplace/{chunk-IBE5KBZU.js → chunk-EGLM6YK5.js} +1 -1
- package/Marketplace/{chunk-NY2YBW66.js → chunk-ENYJ4KAM.js} +1 -1
- package/Marketplace/{chunk-JSQ7SYYK.js → chunk-ESBL3IFN.js} +1 -1
- package/Marketplace/{chunk-PWCN6GJX.js → chunk-FMXX7QB5.js} +1 -1
- package/Marketplace/{chunk-55E6VHIU.js → chunk-FNOENLVR.js} +1 -1
- package/Marketplace/{chunk-7E53IHXI.js → chunk-GBF6A3MS.js} +1 -1
- package/Marketplace/{chunk-DI2VKA4Z.js → chunk-GDHNMHJZ.js} +1 -1
- package/Marketplace/{chunk-X35EOX3B.js → chunk-GJC736LV.js} +1 -1
- package/Marketplace/{chunk-4PG2EBJQ.js → chunk-H6YNHOUQ.js} +1 -1
- package/Marketplace/{chunk-EBXGQWOL.js → chunk-HGVFXR6T.js} +1 -1
- package/Marketplace/{chunk-4ORO4H6Z.js → chunk-HJZ3XPSH.js} +1 -1
- package/Marketplace/{chunk-ZMQQVXQU.js → chunk-HNDBAXI5.js} +1 -1
- package/Marketplace/{chunk-PGX5ZJ6P.js → chunk-IIJEILDV.js} +1 -1
- package/Marketplace/{chunk-IKC5WEP5.js → chunk-IV5IPY6H.js} +1 -1
- package/Marketplace/{chunk-LAMGWNDE.js → chunk-JYP3Z3TV.js} +1 -1
- package/Marketplace/{chunk-RTLTTFZ7.js → chunk-KNBXCPTA.js} +1 -1
- package/Marketplace/{chunk-P6RAMHDB.js → chunk-KTTKHI2N.js} +1 -1
- package/Marketplace/{chunk-QJ55WDGL.js → chunk-KUKTPGJ2.js} +1 -1
- package/Marketplace/{chunk-BL6MPO6D.js → chunk-LQ3VUWFK.js} +2 -2
- package/Marketplace/{chunk-JZ3E5MLG.js → chunk-LYN2PNQK.js} +1 -1
- package/Marketplace/{chunk-XPA7U45N.js → chunk-M7TUSCXB.js} +1 -1
- package/Marketplace/{chunk-KDIXLH2S.js → chunk-MIGPO7BO.js} +1 -1
- package/Marketplace/{chunk-SZ33XJ4F.js → chunk-MV2PLTWF.js} +1 -1
- package/Marketplace/{chunk-CZWUOW55.js → chunk-NTU64XT4.js} +1 -1
- package/Marketplace/{chunk-QMQCIH3X.js → chunk-O3QPBAV5.js} +1 -1
- package/Marketplace/{chunk-47Q5JJIA.js → chunk-OVZRFDFO.js} +1 -1
- package/Marketplace/{chunk-47JP6ZSE.js → chunk-QOSWDELZ.js} +1 -1
- package/Marketplace/{chunk-654AVLKM.js → chunk-RFWRWMRC.js} +1 -1
- package/Marketplace/{chunk-EHND5PFE.js → chunk-RHMSGY7X.js} +1 -1
- package/Marketplace/{chunk-UE2QO2Y4.js → chunk-RWPLFNHT.js} +1 -1
- package/Marketplace/{chunk-SS6PBSX7.js → chunk-S5D64XYA.js} +1 -1
- package/Marketplace/{chunk-YLQU53ID.js → chunk-S5XYWXXP.js} +1 -1
- package/Marketplace/{chunk-AUEWKPWQ.js → chunk-SN5AD4QE.js} +1 -1
- package/Marketplace/{chunk-VVTBM3Z5.js → chunk-TDP3PQDA.js} +1 -1
- package/Marketplace/{chunk-PUCIZX6E.js → chunk-TMBZ4K5S.js} +1 -1
- package/Marketplace/{chunk-4Q4I4JG4.js → chunk-TYNQDFOT.js} +1 -1
- package/Marketplace/{chunk-VWMEDVEG.js → chunk-U5DJYZUI.js} +1 -1
- package/Marketplace/{chunk-NRSDIDOP.js → chunk-UMMQ62IZ.js} +1 -1
- package/Marketplace/{chunk-4XENFCCZ.js → chunk-VV4G5VL5.js} +1 -1
- package/Marketplace/{chunk-ZVNZGCYO.js → chunk-VVAEM355.js} +1 -1
- package/Marketplace/{chunk-HFGQAVIU.js → chunk-VZ7Q4WN7.js} +1 -1
- package/Marketplace/{chunk-FJU2CZTJ.js → chunk-WIBWF333.js} +1 -1
- package/Marketplace/{chunk-PSJVP2XO.js → chunk-YMAKW4QT.js} +1 -1
- package/Marketplace/{chunk-J3QDFXZ7.js → chunk-YUPBZXLS.js} +1 -1
- package/Marketplace/{chunk-CC7KUBNZ.js → chunk-ZRTUQNSQ.js} +1 -1
- package/Marketplace/{chunk-ZQHOCT7I.js → chunk-ZXP3XYSZ.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-IQOLSEWV.js → main-RFMKGIMO.js} +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as $}from"./chunk-RUYX7KTP.js";import{a as Z}from"./chunk-AHMFSCTX.js";import{a as Y}from"./chunk-XLQGQESJ.js";import"./chunk-6F62N7RZ.js";import"./chunk-LR2YCE6M.js";import{a as U,b as J,d as Q}from"./chunk-C2LAQOUW.js";import{a as X}from"./chunk-27DIE2YS.js";import"./chunk-A6QXXKPR.js";import{b as K}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-3SCX7IMW.js";import"./chunk-6C4UBIZK.js";import"./chunk-SPLGZRGH.js";import"./chunk-4S4BOPUV.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-2ST3DMR6.js";import"./chunk-24KZDZKS.js";import"./chunk-3RK6DDJD.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-ZC526ERX.js";import"./chunk-YD6BNJ2B.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{h as V}from"./chunk-
|
|
1
|
+
import{a as $}from"./chunk-RUYX7KTP.js";import{a as Z}from"./chunk-AHMFSCTX.js";import{a as Y}from"./chunk-XLQGQESJ.js";import"./chunk-6F62N7RZ.js";import"./chunk-LR2YCE6M.js";import{a as U,b as J,d as Q}from"./chunk-C2LAQOUW.js";import{a as X}from"./chunk-27DIE2YS.js";import"./chunk-A6QXXKPR.js";import{b as K}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-3SCX7IMW.js";import"./chunk-6C4UBIZK.js";import"./chunk-SPLGZRGH.js";import"./chunk-4S4BOPUV.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-2ST3DMR6.js";import"./chunk-24KZDZKS.js";import"./chunk-3RK6DDJD.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-ZC526ERX.js";import"./chunk-YD6BNJ2B.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{h as V}from"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-5UFP37GQ.js";import"./chunk-UPRDDI4K.js";import{A as q,c as z,h as G,m as H,o as j}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{e as B}from"./chunk-MM7SAZOU.js";import{e as O}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{x as A}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{$c as W,Hb as L,Nb as R,Nc as l,Oc as _,Pc as S,Rc as g,Sc as u,Tc as c,ac as P,ad as D,cc as M,ec as N,fc as E,gc as x,hc as h,ic as i,id as F,jc as n,kc as C,kd as k,mb as v,ob as r,ra as f,rc as I,wc as y,ya as b,yc as w,za as T}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var ee=()=>["/menu/log/rawlog/detail"],te=o=>({ID:o});function ie(o,p){if(o&1&&(i(0,"span",17),C(1,"img",18),n(),l(2)),o&2){let a=p.item;r(),h("src",a.Img,v)("alt",a.Name),r(),S(" ",a.Name," ")}}function ne(o,p){if(o&1&&(i(0,"tr")(1,"td")(2,"a",23),l(3),F(4,"date"),n()(),i(5,"td"),l(6),n(),i(7,"td"),l(8),n(),i(9,"td"),l(10),n()()),o&2){let a=p.$implicit;r(2),h("routerLink",W(9,ee))("queryParams",D(10,te,a.id)),r(),S(" ",k(4,6,a.Created,"dd MMM yyyy HH:mm:ss")," "),r(3),_(a.type),r(2),_(a.number),r(2),_(a.message)}}function ae(o,p){if(o&1){let a=I();i(0,"div",15)(1,"table",19)(2,"thead",20)(3,"tr")(4,"th",21),l(5,"Date"),n(),i(6,"th"),l(7,"Type"),n(),i(8,"th"),l(9,"Number"),n(),i(10,"th"),l(11,"Message"),n()()(),i(12,"tbody"),E(13,ne,11,12,"tr",null,N),n()(),i(15,"mat-paginator",22),y("page",function(m){b(a);let e=w();return T(e.changePage(m))}),n()()}if(o&2){let a=w();r(13),x(a.Result),r(2),h("length",a.paginationTotal)("pageSize",a.paginationPageSize)("pageIndex",(a.filter==null?null:a.filter.PageNumber)==0?0:(a.filter==null?null:a.filter.PageNumber)-1)}}function oe(o,p){o&1&&(i(0,"div",16),C(1,"app-empty-state"),n())}var be=(()=>{let p=class p{constructor(){this.http=f(B),this._RawLogService=f($),this.authService=f(V),this.Result=Array(),this.filter={RowCount:20,Number:"",PageNumber:1,ActionType:"",ChannelID:"",StatusCode:"",From:"",To:""},this.list=[],this.Types=[{Key:0,Value:"Shopee"},{Key:1,Value:"Tokopedia"}],this.channelOptions=this.authService.getChannels()}ngOnInit(){this.Load()}Load(d={}){this.http.post("/api/OrdersLoader/Get",d).subscribe(m=>{this.filter=m.Filter,this.ActionTypeList=m.Options.ActionTypeList,this.Get()})}Get(d){this.filter.Number=d,this.http.post("api/Orders/GetRawLog",this.filter).subscribe(m=>{this._RawLogService.Data=m.hits,this.Result=Array();for(let e of m.hits){let s={id:e._id,message:e._source.message,responseCode:e._source.log.responseCode,processTypeString:e._source.log.processType,type:e._source.log.type,number:e._source.log.number,Created:e._source["@timestamp_received"]};this.Result.push(s)}this.paginationTotal=m.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}changePage(d){this.filter.PageNumber=d.pageIndex+1,this.Get()}};p.\u0275fac=function(m){return new(m||p)},p.\u0275cmp=L({type:p,selectors:[["app-raw-log"]],decls:28,vars:9,consts:[["headerTitle","Channel Push Log","searchBoxPlaceHolder","Invoice Number..",3,"textChange","onSubmit","text"],[1,"fw-bold","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,"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"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table"],[1,"thead-light"],[2,"width","200px"],[3,"page","length","pageSize","pageIndex"],[3,"routerLink","queryParams"]],template:function(m,e){m&1&&(i(0,"mainpanel",0),c("textChange",function(t){return u(e.filter.Number,t)||(e.filter.Number=t),t}),y("onSubmit",function(t){return e.Get(t)}),i(1,"filters")(2,"div")(3,"label",1),l(4,"Channel"),n(),i(5,"ng-select",2),c("ngModelChange",function(t){return u(e.filter.ChannelID,t)||(e.filter.ChannelID=t),t}),R(6,ie,3,3,"ng-template",3),n()(),i(7,"div",4)(8,"label",5),l(9,"From/To"),n(),i(10,"div",6)(11,"datepicker",7),c("dateChange",function(t){return u(e.filter.From,t)||(e.filter.From=t),t}),n()(),i(12,"div")(13,"datepicker",8),c("dateChange",function(t){return u(e.filter.To,t)||(e.filter.To=t),t}),n()()(),i(14,"div",4)(15,"label",9),l(16,"Page Number"),n(),i(17,"input",10),c("ngModelChange",function(t){return u(e.filter.PageNumber,t)||(e.filter.PageNumber=t),t}),n()(),i(18,"div",4)(19,"label",9),l(20,"Page Size"),n(),i(21,"input",11),c("ngModelChange",function(t){return u(e.filter.RowCount,t)||(e.filter.RowCount=t),t}),n()()(),i(22,"content")(23,"div",12)(24,"div",13)(25,"div",14),P(26,ae,16,3,"div",15)(27,oe,2,0,"div",16),n()()()()()),m&2&&(g("text",e.filter.Number),r(5),h("clearable",!0)("items",e.channelOptions),g("ngModel",e.filter.ChannelID),r(6),g("date",e.filter.From),r(2),g("date",e.filter.To),r(4),g("ngModel",e.filter.PageNumber),r(4),g("ngModel",e.filter.RowCount),r(5),M((e.Result==null?null:e.Result.length)>0?26:27))},dependencies:[K,Q,q,z,j,G,H,U,J,Y,O,Z,X,A],encapsulation:2});let o=p;return o})();export{be as RawLogComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h}from"./chunk-EH3PIGLJ.js";import{a as o}from"./chunk-
|
|
1
|
+
import{a as h}from"./chunk-EH3PIGLJ.js";import{a as o}from"./chunk-KUKTPGJ2.js";import{a as v,b as d}from"./chunk-J6HA4ZHH.js";import"./chunk-YNL43MLU.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-5UFP37GQ.js";import"./chunk-UPRDDI4K.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import"./chunk-MM7SAZOU.js";import{c,g as u}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as i,_c as s,hc as m,ic as p,jc as l,kc as r,ob as a}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var f=(()=>{let n=class n{constructor(){this.inventoryTabs=[{Title:"Single Channel Comparison",Url:"/menu/inventory/bychannel"},{Title:"Multi Channel Comparison",Url:"/menu/inventory/pos"},{Title:"Different Inventory",Url:"/menu/inventory/channel_summary"}]}};n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=i({type:n,selectors:[["app-inventory"]],features:[s([h])],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(t,C){t&1&&(p(0,"nav",0)(1,"div",1)(2,"div"),r(3,"nav-tab",2),l()()(),r(4,"router-outlet")),t&2&&(a(3),m("Tabs",C.inventoryTabs))},dependencies:[d,v,u,c],encapsulation:2});let e=n;return e})();var U=[{path:"",component:f,children:[{path:"",redirectTo:"bychannel",pathMatch:"full"},{path:"pos",loadComponent(){return import("./chunk-MV2PLTWF.js").then(e=>e.MultiChannelComparison)},canActivate:[o],data:{title:"Inventory Comparison"}},{path:"bychannel",loadComponent(){return import("./chunk-FNOENLVR.js").then(e=>e.SingleChannelComparisonComponent)},canActivate:[o],data:{title:"Inventory Comparison"}},{path:"channel_summary",loadComponent(){return import("./chunk-JYP3Z3TV.js").then(e=>e.ChannelSummaryComponent)},canActivate:[o],data:{title:"Different Inventory"}}]}];export{U as routes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ne}from"./chunk-ZSUWHVKX.js";import{a as K,h as te}from"./chunk-QMQCIH3X.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{a as ee}from"./chunk-5UFP37GQ.js";import{a as _,c as J}from"./chunk-UPRDDI4K.js";import{A as ge,c as ie,h as oe,i as re,k as ae,m as se,n as de,t as le,u as ce,v as me,w as pe}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as X}from"./chunk-MM7SAZOU.js";import{d as Z}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{q as Y,w as $}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Ab as x,Cc as U,Dc as F,Ec as R,Hb as E,Ic as S,Mc as j,Nc as l,Oc as N,Pc as B,Qc as z,Rc as M,Sc as O,Tc as P,Z as A,ac as u,bd as q,cc as f,ec as L,fc as k,gc as T,hc as w,ic as o,id as G,jc as r,jd as H,kc as m,lc as v,ma as D,mb as h,mc as y,nc as W,ob as d,rc as I,sc as V,ud as Q,wc as b,ya as p,yc as c,za as g}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function xe(n,a){if(n&1&&(v(0,"swiper-slide")(1,"div")(2,"a",1),W(3,"img",2),y()(),v(4,"a",3),l(5),y(),v(6,"p",4),l(7),y()()),n&2){let i=a.$implicit;d(2),V("href",i.href,h),d(),V("src",i.imgSrc,h),d(),V("href",i.href,h),d(),N(i.title),d(2),N(i.description)}}var fe=(()=>{let a=class a{constructor(){this.newsList=Q([])}};a.\u0275fac=function(e){return new(e||a)},a.\u0275cmp=E({type:a,selectors:[["POS-news-swiper"]],inputs:{newsList:[1,"newsList"]},decls:3,vars:0,consts:[["pagination","true","pagination-clickable","true","autoplay-delay","5000","autoplay-disable-on-interaction","false",2,"margin-top","30px"],["target","_blank",3,"href"],[1,"border-0","rounded-1","mb-8",2,"width","252px","height","152px",3,"src"],["target","_blank",1,"fw-bold","h5","text-success","header-title","fs-4",3,"href"],[2,"margin-bottom","3rem"]],template:function(e,s){e&1&&(v(0,"swiper-container",0),k(1,xe,8,5,"swiper-slide",null,L),y()),e&2&&(d(),T(s.newsList()))},styles:["swiper-container[_ngcontent-%COMP%]{--swiper-pagination-bullet-inactive-color: #89b03e;--swiper-pagination-color: #89b03e}"]});let n=a;return n})();var _e=(()=>{let a=class a{constructor(){}getBrowserName(){let t=window.navigator.userAgent.toLowerCase();switch(!0){case(t.indexOf("edge")>-1||t.indexOf("edg")>-1):return"edge";case t.indexOf("opr")>-1:return"opera";case t.indexOf("chrome")>-1:return"chrome";case t.indexOf("trident")>-1:return"ie";case t.indexOf("firefox")>-1:return"firefox";case t.indexOf("safari")>-1:return"safari";default:return"other"}}};a.\u0275fac=function(e){return new(e||a)},a.\u0275prov=D({token:a,factory:a.\u0275fac,providedIn:"root"});let n=a;return n})();var Ce=["subdomainEl"],we=(n,a)=>({"rounded-end":n,"border-end-0":a});function ve(n,a){if(n&1&&(o(0,"div",33),m(1,"img",34),r()),n&2){let i=a.$implicit;d(),w("src",i.img,h)("title",i.title)("alt",i.title)}}function ye(n,a){if(n&1){let i=I();o(0,"div",15)(1,"h3",16),l(2,"DealPOS Omnichannel"),r(),o(3,"small",17),l(4," Multichannel Inventory Management Software "),r()(),o(5,"form",18)(6,"div",19)(7,"div",20)(8,"div",21)(9,"span"),m(10,"i",22),r()(),o(11,"input",23,0),P("ngModelChange",function(e){p(i);let s=c();return O(s.subdomain,e)||(s.subdomain=e),g(e)}),r(),o(13,"div")(14,"select",24),P("ngModelChange",function(e){p(i);let s=c();return O(s.domain,e)||(s.domain=e),g(e)}),o(15,"option",25),l(16," .dealpos.co.id "),r(),o(17,"option",26),l(18,".dealpos.net"),r(),o(19,"option",27),l(20,".dealpos.com"),r(),o(21,"option",28),l(22,".dealpos.app"),r()()()(),o(23,"div",29)(24,"button",30),b("click",function(){p(i);let e=c();return g(e.onNextState())}),l(25," Next "),r()(),o(26,"div",31)(27,"div",32),k(28,ve,2,3,"div",33,L),r()()()()}if(n&2){let i=c();d(11),M("ngModel",i.subdomain),d(3),M("ngModel",i.domain),d(14),T(i.channels)}}function Se(n,a){n&1&&(o(0,"p"),l(1,"Username is required"),r())}function Me(n,a){if(n&1&&(o(0,"div",44),m(1,"div",54),o(2,"div",55),u(3,Se,2,0,"p"),r()()),n&2){c();let i=S(14);d(3),f(i.errors.required?3:-1)}}function Oe(n,a){if(n&1){let i=I();o(0,"i",57),b("click",function(){p(i);let e=c(3);return g(e.hideShowPassword())}),r()}if(n&2){let i=c(3);j("fa "+i.passwordIcon)}}function Pe(n,a){if(n&1&&(o(0,"span",47),u(1,Oe,1,2,"i",56),r()),n&2){let i=c(2);d(),f(i.password?1:-1)}}function Ee(n,a){n&1&&(o(0,"p"),l(1,"Password is required"),r())}function Le(n,a){if(n&1&&(o(0,"div",44),m(1,"div",54),o(2,"div",55),u(3,Ee,2,0,"p"),r()()),n&2){c();let i=S(21);d(3),f(i.errors.required?3:-1)}}function ke(n,a){if(n&1){let i=I();o(0,"div",35)(1,"h3",36),l(2,"Sign in"),r(),o(3,"h3",37),l(4," to "),o(5,"h6",38),l(6),r(),o(7,"i",39),b("click",function(){p(i);let e=c();return g(e.onEditDomain())}),r()()(),o(8,"form",40)(9,"div",41)(10,"div",21)(11,"span"),m(12,"i",42),r()(),o(13,"input",43,1),P("ngModelChange",function(e){p(i);let s=c();return O(s.username,e)||(s.username=e),g(e)}),r()(),u(15,Me,4,1,"div",44),o(16,"div",20)(17,"div",21)(18,"span"),m(19,"i",45),r()(),o(20,"input",46,2),P("ngModelChange",function(e){p(i);let s=c();return O(s.password,e)||(s.password=e),g(e)}),r(),u(22,Pe,2,1,"span",47),r(),u(23,Le,4,1,"div",44),o(24,"div",48)(25,"button",49),b("click",function(){p(i);let e=c();return g(e.onLogin())}),l(26," Log in "),r()(),o(27,"div",50),m(28,"hr"),o(29,"span",51),l(30,"or"),r(),m(31,"hr"),r(),o(32,"div")(33,"button",52),b("click",function(e){p(i);let s=c();return g(s.onLoginByGoogle(e))}),m(34,"i",53),l(35," Sign In with Google "),r()()()}if(n&2){let i=S(14),t=S(21),e=c();d(6),z(" (",e.subdomain,"",e.domain,") "),d(7),M("ngModel",e.username),d(2),f(i.invalid&&(i.dirty||i.touched)?15:-1),d(5),w("type",e.passwordType)("ngClass",q(9,we,e.browser=="edge",e.browser!="edge")),M("ngModel",e.password),d(2),f(e.browser!="edge"?22:-1),d(),f(t.invalid&&(t.dirty||t.touched)?23:-1)}}var Ke=(()=>{let a=class a{constructor(t,e,s,C,he){this._router=t,this.toastr=e,this.checkBrowser=s,this.authService=C,this.ngxPermission=he,this.domain=".dealpos.co.id",this.loginState="FORM_DOMAIN",this.passwordType="password",this.passwordIcon="fa-eye",this.channels=[{title:"Shopee",img:_.SHOOPE},{title:"Tokopedia",img:_.TOKOPEDIA},{title:"Tiktok",img:_.TIKTOK},{title:"Woocommerce",img:_.WOOCOMMERCE},{title:"Lazada",img:_.LAZADA},{title:"Shopify",img:_.SHOPIFY},{title:"Plugo",img:_.PLUGONEW}],this.version=K.version,this.news$=C.getNews().pipe(A(1))}ngOnInit(){this.initLogin(),this.browser=this.checkBrowser.getBrowserName(),document.body.classList.add("login-body"),this.initChangeLogUrl()}initChangeLogUrl(){let t=`https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete&v=${this.version}`;this.changelogUrl=t}ngAfterViewInit(){this.setAutoFocusDomain()}initLogin(){let t=JSON.parse(localStorage.getItem("Authorization"));if(t){this.username=t?.username,this.subdomain=t?.Host?.split(".")[0];let e=t?.Host?.split("dealpos");this.domain=`.dealpos${e[1]}`,this.authService.isActiveToken()&&this._router.navigate(["menu"])}}onNextState(){if(J.IsEmpty(this.subdomain)){this.toastr.warning("Account Domain is required","Warning");return}this.parseSubdomain(),this.loginState="FORM_AUTH"}parseSubdomain(){let t=this.subdomain.indexOf(".dealpos");t!=-1&&(this.subdomain=this.subdomain.substring(0,t))}onEditDomain(){this.loginState="FORM_DOMAIN"}onLogin(){let t={Host:`${this.subdomain}${this.domain}`,Username:this.username,Password:this.password};this.authService.login(t).subscribe(e=>{this.onSuccessLogin(e)})}onLoginByGoogle(t){let e=`${this.subdomain}${this.domain}`;this.authService.loginWithGoogle(t,e).subscribe(s=>{this.onSuccessLogin(s)})}onSuccessLogin(t){this.ngxPermission.hasPermission([ne.DashboardView]).then(e=>{e?this._router.navigate(["menu/dashboard"]):t?.TotalChannel<1?this._router.navigate(["menu/channel"]):this._router.navigate(["menu/products"])})}setAutoFocusDomain(){this.subdomainEl.nativeElement.focus()}hideShowPassword(){this.passwordType=this.passwordType==="text"?"password":"text",this.passwordIcon=this.passwordIcon==="fa-eye"?"fa-eye-slash":"fa-eye"}ngOnDestroy(){document.body.classList.remove("login-body")}};a.\u0275fac=function(e){return new(e||a)(x(Z),x(X),x(_e),x(te),x(ee))},a.\u0275cmp=E({type:a,selectors:[["app-login"]],viewQuery:function(e,s){if(e&1&&U(Ce,5),e&2){let C;F(C=R())&&(s.subdomainEl=C.first)}},decls:18,vars:6,consts:[["subdomainEl",""],["usernameCtrl","ngModel"],["passwordCtrl","ngModel"],[1,"container-fluid"],[1,"row","mx-auto","bg-white","login-pane"],[1,"col-md-5","order-md-first","order-last","border-end","features-pane","pt-12","pb-9"],[1,"fw-normal","fs-2","header-title","text-center"],[3,"newsList"],[1,"col-md-7","order-md-last","order-first","py-12","sign-in-pane"],[1,"d-flex","copyright",2,"margin-left","20px"],[1,"align-self-center","me-5"],["target","_blank","href","http://www.dealpos.com"],[1,"version",2,"margin-right","18px"],["target","_blank",1,"text-dark","fst-italic",3,"href"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],[1,"text-md-start","text-center"],[1,"fs-2","header-title","me-2","fw-normal"],[1,"text-secondary-emphasis","fst-italic",2,"font-size","11px"],[2,"margin-top","38px"],[1,"form-block","mt-5"],[1,"input-group","input-group-lg","mt-8"],[1,"input-group-text","rounded-start","border-end-0",2,"width","52px"],[1,"fa-solid","fa-cloud"],["placeholder","Store Address","aria-label","Store Address","aria-describedby","basic-addon1","autofocus","","name","Store Address",1,"form-control","form-control-lg","rounded-end-0","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],["name","domainOption",1,"form-select","form-control","form-control-lg","border-start-0","border-start","rounded-end","rounded-start-0","domain-option",2,"height","58px",3,"ngModelChange","ngModel"],["selected","","value",".dealpos.co.id"],["value",".dealpos.net"],["value",".dealpos.com"],["value",".dealpos.app"],[1,"w-100",2,"margin-top","1.8rem"],["name","next","data-cy","next","type","submit",1,"btn","btn-xl","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"d-flex","align-items-center","justify-content-center",2,"margin-top","2.1rem"],[1,"d-flex","align-items-center","justify-content-between","w-100"],[1,""],[1,"border-0",2,"width","34px","height","34px",3,"src","title","alt"],[1,"d-flex","align-items-center","justify-content-start","mb-2"],[1,"robotoslab","fw-normal"],[1,"ms-2","fw-normal"],[1,"me-2","robotoslab","d-inline-block","text-success"],["title","Edit Store Address",1,"fa-solid","fa-edit","link-success","fs-5","pointer",3,"click"],[2,"margin-top","29px"],[1,"input-group","input-group-lg"],[1,"fas","fa-user","fa-lg"],["id","txtUsername","type","text","data-cy","username","required","","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1","autofocus","","name","username",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],[1,"d-flex","justify-content-start","w-50","mb-4",2,"height","16px"],[1,"fas","fa-key","fa-lg"],["id","txtPassword","data-cy","password","placeholder","Password","aria-label","Password","aria-describedby","basic-addon1","autofocus","","name","password","required","",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","type","ngClass","ngModel"],[1,"input-group-text","border-start-0","rounded-end"],[1,"w-100","mt-8"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"divider","d-flex","align-items-center","justify-content-center"],[1,"mx-4","text-muted"],[1,"btn","btn-social-login","text-success","w-100","fw-bold",3,"click"],[1,"fa-brands","fa-google"],[2,"width","52px"],[1,"text-danger","ps-1"],[3,"class"],[3,"click"]],template:function(e,s){e&1&&(o(0,"div",3)(1,"div",4)(2,"div",5)(3,"h3",6),l(4,"New Features"),r(),m(5,"POS-news-swiper",7),G(6,"async"),r(),o(7,"div",8),u(8,ye,30,2)(9,ke,36,12),r()(),o(10,"div",9)(11,"span",10),l(12,"powered by :"),r(),m(13,"a",11),r(),o(14,"div",12)(15,"a",13),l(16),m(17,"i",14),r()()()),e&2&&(d(5),w("newsList",H(6,4,s.news$)),d(3),f(s.loginState=="FORM_DOMAIN"?8:9),d(7),w("href",s.changelogUrl,h),d(),B("version ",s.version))},dependencies:[fe,ge,de,ce,me,ie,le,oe,re,pe,se,ae,Y,$],styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}"]});let n=a;return n})();export{Ke as LoginComponent};
|
|
1
|
+
import{a as ne}from"./chunk-ZSUWHVKX.js";import{a as K,h as te}from"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{a as ee}from"./chunk-5UFP37GQ.js";import{a as _,c as J}from"./chunk-UPRDDI4K.js";import{A as ge,c as ie,h as oe,i as re,k as ae,m as se,n as de,t as le,u as ce,v as me,w as pe}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as X}from"./chunk-MM7SAZOU.js";import{d as Z}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{q as Y,w as $}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Ab as x,Cc as U,Dc as F,Ec as R,Hb as E,Ic as S,Mc as j,Nc as l,Oc as N,Pc as B,Qc as z,Rc as M,Sc as O,Tc as P,Z as A,ac as u,bd as q,cc as f,ec as L,fc as k,gc as T,hc as w,ic as o,id as G,jc as r,jd as H,kc as m,lc as v,ma as D,mb as h,mc as y,nc as W,ob as d,rc as I,sc as V,ud as Q,wc as b,ya as p,yc as c,za as g}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function xe(n,a){if(n&1&&(v(0,"swiper-slide")(1,"div")(2,"a",1),W(3,"img",2),y()(),v(4,"a",3),l(5),y(),v(6,"p",4),l(7),y()()),n&2){let i=a.$implicit;d(2),V("href",i.href,h),d(),V("src",i.imgSrc,h),d(),V("href",i.href,h),d(),N(i.title),d(2),N(i.description)}}var fe=(()=>{let a=class a{constructor(){this.newsList=Q([])}};a.\u0275fac=function(e){return new(e||a)},a.\u0275cmp=E({type:a,selectors:[["POS-news-swiper"]],inputs:{newsList:[1,"newsList"]},decls:3,vars:0,consts:[["pagination","true","pagination-clickable","true","autoplay-delay","5000","autoplay-disable-on-interaction","false",2,"margin-top","30px"],["target","_blank",3,"href"],[1,"border-0","rounded-1","mb-8",2,"width","252px","height","152px",3,"src"],["target","_blank",1,"fw-bold","h5","text-success","header-title","fs-4",3,"href"],[2,"margin-bottom","3rem"]],template:function(e,s){e&1&&(v(0,"swiper-container",0),k(1,xe,8,5,"swiper-slide",null,L),y()),e&2&&(d(),T(s.newsList()))},styles:["swiper-container[_ngcontent-%COMP%]{--swiper-pagination-bullet-inactive-color: #89b03e;--swiper-pagination-color: #89b03e}"]});let n=a;return n})();var _e=(()=>{let a=class a{constructor(){}getBrowserName(){let t=window.navigator.userAgent.toLowerCase();switch(!0){case(t.indexOf("edge")>-1||t.indexOf("edg")>-1):return"edge";case t.indexOf("opr")>-1:return"opera";case t.indexOf("chrome")>-1:return"chrome";case t.indexOf("trident")>-1:return"ie";case t.indexOf("firefox")>-1:return"firefox";case t.indexOf("safari")>-1:return"safari";default:return"other"}}};a.\u0275fac=function(e){return new(e||a)},a.\u0275prov=D({token:a,factory:a.\u0275fac,providedIn:"root"});let n=a;return n})();var Ce=["subdomainEl"],we=(n,a)=>({"rounded-end":n,"border-end-0":a});function ve(n,a){if(n&1&&(o(0,"div",33),m(1,"img",34),r()),n&2){let i=a.$implicit;d(),w("src",i.img,h)("title",i.title)("alt",i.title)}}function ye(n,a){if(n&1){let i=I();o(0,"div",15)(1,"h3",16),l(2,"DealPOS Omnichannel"),r(),o(3,"small",17),l(4," Multichannel Inventory Management Software "),r()(),o(5,"form",18)(6,"div",19)(7,"div",20)(8,"div",21)(9,"span"),m(10,"i",22),r()(),o(11,"input",23,0),P("ngModelChange",function(e){p(i);let s=c();return O(s.subdomain,e)||(s.subdomain=e),g(e)}),r(),o(13,"div")(14,"select",24),P("ngModelChange",function(e){p(i);let s=c();return O(s.domain,e)||(s.domain=e),g(e)}),o(15,"option",25),l(16," .dealpos.co.id "),r(),o(17,"option",26),l(18,".dealpos.net"),r(),o(19,"option",27),l(20,".dealpos.com"),r(),o(21,"option",28),l(22,".dealpos.app"),r()()()(),o(23,"div",29)(24,"button",30),b("click",function(){p(i);let e=c();return g(e.onNextState())}),l(25," Next "),r()(),o(26,"div",31)(27,"div",32),k(28,ve,2,3,"div",33,L),r()()()()}if(n&2){let i=c();d(11),M("ngModel",i.subdomain),d(3),M("ngModel",i.domain),d(14),T(i.channels)}}function Se(n,a){n&1&&(o(0,"p"),l(1,"Username is required"),r())}function Me(n,a){if(n&1&&(o(0,"div",44),m(1,"div",54),o(2,"div",55),u(3,Se,2,0,"p"),r()()),n&2){c();let i=S(14);d(3),f(i.errors.required?3:-1)}}function Oe(n,a){if(n&1){let i=I();o(0,"i",57),b("click",function(){p(i);let e=c(3);return g(e.hideShowPassword())}),r()}if(n&2){let i=c(3);j("fa "+i.passwordIcon)}}function Pe(n,a){if(n&1&&(o(0,"span",47),u(1,Oe,1,2,"i",56),r()),n&2){let i=c(2);d(),f(i.password?1:-1)}}function Ee(n,a){n&1&&(o(0,"p"),l(1,"Password is required"),r())}function Le(n,a){if(n&1&&(o(0,"div",44),m(1,"div",54),o(2,"div",55),u(3,Ee,2,0,"p"),r()()),n&2){c();let i=S(21);d(3),f(i.errors.required?3:-1)}}function ke(n,a){if(n&1){let i=I();o(0,"div",35)(1,"h3",36),l(2,"Sign in"),r(),o(3,"h3",37),l(4," to "),o(5,"h6",38),l(6),r(),o(7,"i",39),b("click",function(){p(i);let e=c();return g(e.onEditDomain())}),r()()(),o(8,"form",40)(9,"div",41)(10,"div",21)(11,"span"),m(12,"i",42),r()(),o(13,"input",43,1),P("ngModelChange",function(e){p(i);let s=c();return O(s.username,e)||(s.username=e),g(e)}),r()(),u(15,Me,4,1,"div",44),o(16,"div",20)(17,"div",21)(18,"span"),m(19,"i",45),r()(),o(20,"input",46,2),P("ngModelChange",function(e){p(i);let s=c();return O(s.password,e)||(s.password=e),g(e)}),r(),u(22,Pe,2,1,"span",47),r(),u(23,Le,4,1,"div",44),o(24,"div",48)(25,"button",49),b("click",function(){p(i);let e=c();return g(e.onLogin())}),l(26," Log in "),r()(),o(27,"div",50),m(28,"hr"),o(29,"span",51),l(30,"or"),r(),m(31,"hr"),r(),o(32,"div")(33,"button",52),b("click",function(e){p(i);let s=c();return g(s.onLoginByGoogle(e))}),m(34,"i",53),l(35," Sign In with Google "),r()()()}if(n&2){let i=S(14),t=S(21),e=c();d(6),z(" (",e.subdomain,"",e.domain,") "),d(7),M("ngModel",e.username),d(2),f(i.invalid&&(i.dirty||i.touched)?15:-1),d(5),w("type",e.passwordType)("ngClass",q(9,we,e.browser=="edge",e.browser!="edge")),M("ngModel",e.password),d(2),f(e.browser!="edge"?22:-1),d(),f(t.invalid&&(t.dirty||t.touched)?23:-1)}}var Ke=(()=>{let a=class a{constructor(t,e,s,C,he){this._router=t,this.toastr=e,this.checkBrowser=s,this.authService=C,this.ngxPermission=he,this.domain=".dealpos.co.id",this.loginState="FORM_DOMAIN",this.passwordType="password",this.passwordIcon="fa-eye",this.channels=[{title:"Shopee",img:_.SHOOPE},{title:"Tokopedia",img:_.TOKOPEDIA},{title:"Tiktok",img:_.TIKTOK},{title:"Woocommerce",img:_.WOOCOMMERCE},{title:"Lazada",img:_.LAZADA},{title:"Shopify",img:_.SHOPIFY},{title:"Plugo",img:_.PLUGONEW}],this.version=K.version,this.news$=C.getNews().pipe(A(1))}ngOnInit(){this.initLogin(),this.browser=this.checkBrowser.getBrowserName(),document.body.classList.add("login-body"),this.initChangeLogUrl()}initChangeLogUrl(){let t=`https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete&v=${this.version}`;this.changelogUrl=t}ngAfterViewInit(){this.setAutoFocusDomain()}initLogin(){let t=JSON.parse(localStorage.getItem("Authorization"));if(t){this.username=t?.username,this.subdomain=t?.Host?.split(".")[0];let e=t?.Host?.split("dealpos");this.domain=`.dealpos${e[1]}`,this.authService.isActiveToken()&&this._router.navigate(["menu"])}}onNextState(){if(J.IsEmpty(this.subdomain)){this.toastr.warning("Account Domain is required","Warning");return}this.parseSubdomain(),this.loginState="FORM_AUTH"}parseSubdomain(){let t=this.subdomain.indexOf(".dealpos");t!=-1&&(this.subdomain=this.subdomain.substring(0,t))}onEditDomain(){this.loginState="FORM_DOMAIN"}onLogin(){let t={Host:`${this.subdomain}${this.domain}`,Username:this.username,Password:this.password};this.authService.login(t).subscribe(e=>{this.onSuccessLogin(e)})}onLoginByGoogle(t){let e=`${this.subdomain}${this.domain}`;this.authService.loginWithGoogle(t,e).subscribe(s=>{this.onSuccessLogin(s)})}onSuccessLogin(t){this.ngxPermission.hasPermission([ne.DashboardView]).then(e=>{e?this._router.navigate(["menu/dashboard"]):t?.TotalChannel<1?this._router.navigate(["menu/channel"]):this._router.navigate(["menu/products"])})}setAutoFocusDomain(){this.subdomainEl.nativeElement.focus()}hideShowPassword(){this.passwordType=this.passwordType==="text"?"password":"text",this.passwordIcon=this.passwordIcon==="fa-eye"?"fa-eye-slash":"fa-eye"}ngOnDestroy(){document.body.classList.remove("login-body")}};a.\u0275fac=function(e){return new(e||a)(x(Z),x(X),x(_e),x(te),x(ee))},a.\u0275cmp=E({type:a,selectors:[["app-login"]],viewQuery:function(e,s){if(e&1&&U(Ce,5),e&2){let C;F(C=R())&&(s.subdomainEl=C.first)}},decls:18,vars:6,consts:[["subdomainEl",""],["usernameCtrl","ngModel"],["passwordCtrl","ngModel"],[1,"container-fluid"],[1,"row","mx-auto","bg-white","login-pane"],[1,"col-md-5","order-md-first","order-last","border-end","features-pane","pt-12","pb-9"],[1,"fw-normal","fs-2","header-title","text-center"],[3,"newsList"],[1,"col-md-7","order-md-last","order-first","py-12","sign-in-pane"],[1,"d-flex","copyright",2,"margin-left","20px"],[1,"align-self-center","me-5"],["target","_blank","href","http://www.dealpos.com"],[1,"version",2,"margin-right","18px"],["target","_blank",1,"text-dark","fst-italic",3,"href"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],[1,"text-md-start","text-center"],[1,"fs-2","header-title","me-2","fw-normal"],[1,"text-secondary-emphasis","fst-italic",2,"font-size","11px"],[2,"margin-top","38px"],[1,"form-block","mt-5"],[1,"input-group","input-group-lg","mt-8"],[1,"input-group-text","rounded-start","border-end-0",2,"width","52px"],[1,"fa-solid","fa-cloud"],["placeholder","Store Address","aria-label","Store Address","aria-describedby","basic-addon1","autofocus","","name","Store Address",1,"form-control","form-control-lg","rounded-end-0","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],["name","domainOption",1,"form-select","form-control","form-control-lg","border-start-0","border-start","rounded-end","rounded-start-0","domain-option",2,"height","58px",3,"ngModelChange","ngModel"],["selected","","value",".dealpos.co.id"],["value",".dealpos.net"],["value",".dealpos.com"],["value",".dealpos.app"],[1,"w-100",2,"margin-top","1.8rem"],["name","next","data-cy","next","type","submit",1,"btn","btn-xl","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"d-flex","align-items-center","justify-content-center",2,"margin-top","2.1rem"],[1,"d-flex","align-items-center","justify-content-between","w-100"],[1,""],[1,"border-0",2,"width","34px","height","34px",3,"src","title","alt"],[1,"d-flex","align-items-center","justify-content-start","mb-2"],[1,"robotoslab","fw-normal"],[1,"ms-2","fw-normal"],[1,"me-2","robotoslab","d-inline-block","text-success"],["title","Edit Store Address",1,"fa-solid","fa-edit","link-success","fs-5","pointer",3,"click"],[2,"margin-top","29px"],[1,"input-group","input-group-lg"],[1,"fas","fa-user","fa-lg"],["id","txtUsername","type","text","data-cy","username","required","","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1","autofocus","","name","username",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],[1,"d-flex","justify-content-start","w-50","mb-4",2,"height","16px"],[1,"fas","fa-key","fa-lg"],["id","txtPassword","data-cy","password","placeholder","Password","aria-label","Password","aria-describedby","basic-addon1","autofocus","","name","password","required","",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","type","ngClass","ngModel"],[1,"input-group-text","border-start-0","rounded-end"],[1,"w-100","mt-8"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"divider","d-flex","align-items-center","justify-content-center"],[1,"mx-4","text-muted"],[1,"btn","btn-social-login","text-success","w-100","fw-bold",3,"click"],[1,"fa-brands","fa-google"],[2,"width","52px"],[1,"text-danger","ps-1"],[3,"class"],[3,"click"]],template:function(e,s){e&1&&(o(0,"div",3)(1,"div",4)(2,"div",5)(3,"h3",6),l(4,"New Features"),r(),m(5,"POS-news-swiper",7),G(6,"async"),r(),o(7,"div",8),u(8,ye,30,2)(9,ke,36,12),r()(),o(10,"div",9)(11,"span",10),l(12,"powered by :"),r(),m(13,"a",11),r(),o(14,"div",12)(15,"a",13),l(16),m(17,"i",14),r()()()),e&2&&(d(5),w("newsList",H(6,4,s.news$)),d(3),f(s.loginState=="FORM_DOMAIN"?8:9),d(7),w("href",s.changelogUrl,h),d(),B("version ",s.version))},dependencies:[fe,ge,de,ce,me,ie,le,oe,re,pe,se,ae,Y,$],styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}"]});let n=a;return n})();export{Ke as LoginComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Z}from"./chunk-SABMHH6B.js";import"./chunk-YAWT3CLI.js";import"./chunk-5C24BA5F.js";import"./chunk-LR2YCE6M.js";import"./chunk-BKR7YPEW.js";import{a as et}from"./chunk-27DIE2YS.js";import{a as tt}from"./chunk-
|
|
1
|
+
import{a as Z}from"./chunk-SABMHH6B.js";import"./chunk-YAWT3CLI.js";import"./chunk-5C24BA5F.js";import"./chunk-LR2YCE6M.js";import"./chunk-BKR7YPEW.js";import{a as et}from"./chunk-27DIE2YS.js";import{a as tt}from"./chunk-AJSJJV2I.js";import"./chunk-NVPT5BF2.js";import"./chunk-QMHG3QTI.js";import"./chunk-NIJCYMZM.js";import"./chunk-UMLV2ZUF.js";import"./chunk-7X4B2T6C.js";import"./chunk-PN3KM4M4.js";import"./chunk-WIRBYT7F.js";import"./chunk-ZWUYPYHD.js";import"./chunk-WVA5LYVE.js";import"./chunk-FOKLBUX6.js";import"./chunk-BXNDE6NQ.js";import"./chunk-A6QXXKPR.js";import"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{b as X}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import{c as W}from"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-RM6ZXD3O.js";import"./chunk-2ST3DMR6.js";import"./chunk-24KZDZKS.js";import"./chunk-3RK6DDJD.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-ZC526ERX.js";import"./chunk-YD6BNJ2B.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-RXC5D64C.js";import{c as Q}from"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as K}from"./chunk-ZSUWHVKX.js";import{h as J}from"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{b as Y,c as G}from"./chunk-5UFP37GQ.js";import{c as T}from"./chunk-UPRDDI4K.js";import"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as H}from"./chunk-MM7SAZOU.js";import{e as z}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{w as q,x as R,z as U}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{$c as D,G as P,Hb as O,Nb as L,Nc as c,Oc as N,Pc as _,ac as w,ad as g,bc as $,ca as b,cc as I,ec as B,f as E,fc as A,gc as F,hc as u,ic as o,id as h,jc as r,jd as S,kc as m,kd as j,mb as k,ob as s,oc as M,pc as V,ra as C,rc as y,wc as v,ya as f,yc as p,za as x}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var it=()=>["/menu/products/status/sold-in-channel"],nt=e=>({ID:e}),ot=()=>["/menu/products/status/not-in-pos"],rt=e=>[e];function at(e,a){if(e&1&&c(0),e&2){let i=p().$implicit;_(" ",i.Count," ")}}function ct(e,a){if(e&1){let i=y();o(0,"span",23),v("click",function(){f(i);let t=p().$implicit,l=p(2);return x(l.getLiveProductCount(t.ID,t))}),m(1,"i",24),r()}}function lt(e,a){if(e&1){let i=y();M(0),o(1,"button",25),v("click",function(){f(i);let t=p().$implicit,l=p(2);return x(l.onScanChannel(t))}),m(2,"i",26),c(3," Scan "),r(),V()}}function st(e,a){if(e&1){let i=y();o(0,"tr")(1,"td"),m(2,"img",14),o(3,"span",15),c(4),r()(),o(5,"td",16),w(6,at,1,1)(7,ct,2,0,"span",17),r(),o(8,"td",16)(9,"a",18),c(10),h(11,"number"),r()(),o(12,"td",16)(13,"a",18),c(14),h(15,"number"),r()(),o(16,"td"),c(17),h(18,"date"),r(),o(19,"td")(20,"div",19),L(21,lt,4,0,"ng-container",20),o(22,"button",21),v("click",function(){let t=f(i).$implicit,l=p(2);return x(l.onClearCache(t.ID))}),m(23,"i",22),c(24," Clear "),r()()()()}if(e&2){let i=a.$implicit,n=p(2);s(2),u("src",n.getChannelLogo(i.TypeID),k),s(2),N(i.Name),s(2),I(i.Count!==void 0?6:7),s(3),u("routerLink",D(18,it))("queryParams",g(19,nt,i.ID)),s(),_(" ",S(11,11,i.SoldInChannel)," "),s(3),u("routerLink",D(21,ot))("queryParams",g(22,nt,i.ID)),s(),_(" ",S(15,13,i.NotInPOS)," "),s(3),_(" ",i.LastSync?j(18,15,i.LastSync,"dd MMM yyyy HH:mm"):"Never"," "),s(4),u("ngxPermissionsOnly",g(24,rt,n.scanProductRole))}}function pt(e,a){if(e&1&&(o(0,"div",4)(1,"table",6)(2,"thead",7)(3,"tr",8)(4,"th"),c(5,"Channel"),r(),o(6,"th",9),c(7," Live Product "),r(),o(8,"th",10),c(9," Sold In Channel "),r(),o(10,"th",11),c(11," Product Not in POS "),r(),o(12,"th",12),c(13,"Last Sync"),r(),m(14,"th",13),r()(),o(15,"tbody"),A(16,st,25,26,"tr",null,B),h(18,"async"),r()()()),e&2){let i,n=p();s(16),F((i=S(18,0,n.channels$))==null?null:i.Data)}}function dt(e,a){e&1&&(o(0,"div",5),m(1,"app-empty-state"),r())}var kt=(()=>{let a=class a{constructor(){this.productService=C(tt),this.toastr=C(H),this.dialog=C(W),this.authService=C(J),this.scanProductRole=K.ProductScan;let n=this.authService;this.destroy$=new E,this.channelOptions=n.getChannels()}ngOnInit(){this.setObsProductStatistic()}setObsProductStatistic(){this.channels$=this.productService.getProductStatistic()}getLiveProductCount(n,t){this.productService.getTotalProductLive(n).pipe(b(this.destroy$)).subscribe(l=>{t.Count=l.Count})}onScanChannel(n){this.dialog.open(Z,{width:"700px",data:{channelOptions:this.channelOptions,filter:{ChannelID:n.ID},disabledChannelOption:!0}}).afterClosed().pipe(P(t=>T.IsNotEmpty(t))).subscribe(t=>{this.scanAllProduct(n.ID,t)})}scanAllProduct(n,t){let l=this.productService.findChannelById(n,this.channelOptions);this.productService.scanAll(t.ChannelID,t.ScanFull,t.UpdatedProduct,t.Async).pipe(P(d=>d)).subscribe(d=>{t.Async?this.toastr.warning("You will be notified when the scan is completed.","Scan In Progress",{toastClass:"ngx-toastr toast-waiting"}):(this.productService.successToastrScanAllProduct(d,l,!t.UpdatedProduct),this.setObsProductStatistic())})}onClearCache(n){confirm("Are you sure you want to Clear Cache? This Process will remove your product integration to marketplace")&&this.productService.clearCacheChannel(n).pipe(b(this.destroy$)).subscribe(l=>{this.toastr.success("Successfully cleared cache","Success"),this.setObsProductStatistic()})}getChannelLogo(n){return T.getChannelLogoByTypeId(n)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=O({type:a,selectors:[["app-channel-statistic"]],decls:8,vars:5,consts:[["headerTitle","Products Statistic",3,"hideSearchBox","hideSearchDropdown"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[1,"text-center",2,"width","13rem"],[1,"text-center",2,"width","9rem"],[1,"text-center",2,"width","14rem"],[2,"width","10rem"],[2,"width","12rem"],[2,"width","24px","height","24px",3,"src"],[1,"ms-3"],[1,"text-center"],["matTooltip","Click to see total live product",1,"cursor-pointer","fs-5","text-primary"],[3,"routerLink","queryParams"],[1,"d-flex","align-items-center","justify-content-center"],[4,"ngxPermissionsOnly"],[1,"btn","btn-sm","btn-secondary","fs-6","ms-3",3,"click"],[1,"fa","fa-trash"],["matTooltip","Click to see total live product",1,"cursor-pointer","fs-5","text-primary",3,"click"],[1,"fa-solid","fa-circle-question","cursor"],[1,"btn","btn-sm","btn-secondary","fs-6",3,"click"],[1,"fa","fa-spinner"]],template:function(t,l){if(t&1&&(o(0,"mainpanel",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div",3),w(5,pt,19,2,"div",4),h(6,"async"),$(7,dt,2,0,"div",5),r()()()()()),t&2){let d;u("hideSearchBox",!0)("hideSearchDropdown",!0),s(5),I(((d=S(6,3,l.channels$))==null||d.Data==null?null:d.Data.length)>0?5:7)}},dependencies:[X,Q,z,G,Y,et,q,U,R],encapsulation:2});let e=a;return e})();export{kt as ChannelStatisticComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as pe}from"./chunk-JWDQVXQP.js";import{a as de,b as me}from"./chunk-K5WSFDNA.js";import{a as ce}from"./chunk-
|
|
1
|
+
import{a as pe}from"./chunk-JWDQVXQP.js";import{a as de,b as me}from"./chunk-K5WSFDNA.js";import{a as ce}from"./chunk-UMMQ62IZ.js";import{a as P}from"./chunk-SMZOSLIK.js";import{a as se}from"./chunk-XLQGQESJ.js";import{a as le}from"./chunk-RWPLFNHT.js";import"./chunk-MT3CWRVG.js";import"./chunk-W33M7S2S.js";import"./chunk-MTVUPPAN.js";import"./chunk-2NRHX6CZ.js";import{a as oe}from"./chunk-5WQ3LCWP.js";import"./chunk-DLHIDOS3.js";import{a as ae}from"./chunk-27DIE2YS.js";import"./chunk-NVPT5BF2.js";import"./chunk-QMHG3QTI.js";import"./chunk-NIJCYMZM.js";import"./chunk-UMLV2ZUF.js";import"./chunk-7X4B2T6C.js";import"./chunk-PN3KM4M4.js";import"./chunk-WIRBYT7F.js";import"./chunk-ZWUYPYHD.js";import"./chunk-WVA5LYVE.js";import"./chunk-FOKLBUX6.js";import"./chunk-A6QXXKPR.js";import"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{b as re}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import{a as ne}from"./chunk-YNL43MLU.js";import"./chunk-3SCX7IMW.js";import"./chunk-6C4UBIZK.js";import"./chunk-SPLGZRGH.js";import"./chunk-4S4BOPUV.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-2ST3DMR6.js";import"./chunk-24KZDZKS.js";import"./chunk-3RK6DDJD.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-ZC526ERX.js";import"./chunk-YD6BNJ2B.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-RXC5D64C.js";import{c as ie}from"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-5UFP37GQ.js";import"./chunk-UPRDDI4K.js";import{A as te,c as Y,h as Z,m as $,o as ee}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import"./chunk-MM7SAZOU.js";import"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as X,w as J,x as K,z as Q}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{$c as U,Hb as D,Ia as F,Mc as z,Nc as l,Oc as w,Pc as x,Rc as f,Sc as S,Tc as C,Uc as A,Vc as R,Wc as H,_c as j,ac as b,ad as q,cc as V,dc as I,fc as B,gc as k,hc as g,ic as t,id as y,jc as i,jd as E,kc as _,kd as G,mb as W,ob as r,ra as O,rc as M,wc as T,ya as s,yc as h,za as c}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import{a as L,b as N}from"./chunk-66YHNWRR.js";var ue=()=>[],_e=a=>({"td-cell-hover":a});function ge(a,p){if(a&1&&_(0,"variants-dropdown",31),a&2){let e=h().$implicit;g("variants",e==null?null:e.Variants)}}function he(a,p){if(a&1&&_(0,"variant-with-image",32),a&2){let e=h().$implicit;g("variant",e==null?null:e.Variants[0])}}function fe(a,p){if(a&1&&(t(0,"span"),l(1),i()),a&2){let e=h().$implicit;r(),x("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Se(a,p){if(a&1&&(t(0,"tr")(1,"td")(2,"div",24),_(3,"img",25),y(4,"channelImage"),t(5,"div",26)(6,"div"),l(7),i(),t(8,"small",27)(9,"span"),l(10),i()()()()(),t(11,"td")(12,"div",28)(13,"div"),_(14,"order-link",29),i(),t(15,"small"),l(16),y(17,"date"),i(),_(18,"br"),t(19,"small"),_(20,"i",30),l(21),i()()(),t(22,"td"),b(23,ge,1,1,"variants-dropdown",31)(24,he,1,1,"variant-with-image",32),i(),t(25,"td",33),l(26),y(27,"number"),i(),t(28,"td")(29,"div",28)(30,"div",34)(31,"span"),l(32),i(),b(33,fe,2,1,"span"),i(),t(34,"small"),l(35),i()()()()),a&2){let e=p.$implicit;r(3),g("src",E(4,14,e==null?null:e.MarketType),W)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),r(4),w(e.Outlet),r(3),w(e.ChannelName),r(4),g("order",e),r(2),x(" ",G(17,16,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),r(5),x(" ",e.Customer," "),r(),z(q(21,_e,(e.Variants==null?null:e.Variants.length)>1)),r(),V((e.Variants==null?null:e.Variants.length)>1?23:24),r(3),w(E(27,19,e.Amount)),r(6),w(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),r(),V(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?33:-1),r(2),x(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function Ce(a,p){if(a&1){let e=M();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),l(5,"Outlet"),i(),t(6,"th",20),l(7,"Number"),i(),t(8,"th"),l(9,"Items"),i(),t(10,"th",21),l(11,"Amount"),i(),t(12,"th",22),l(13,"Shipping"),i()()(),t(14,"tbody"),B(15,Se,36,23,"tr",null,I),i()(),t(17,"app-custom-paginator",23),T("next",function(){s(e);let m=h();return c(m.initShippedOrders())})("previous",function(){s(e);let m=h();return c(m.initShippedOrders())}),i()()}if(a&2){let e=h(),d=H(0);r(15),k(d),r(2),g("filter",e.filter())("totaldata",d==null?null:d.length)}}function ve(a,p){a&1&&(t(0,"div",16),_(1,"app-empty-state"),i())}var Re=(()=>{let p=class p{constructor(){this.orderService=O(P),this.filter=F({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:d=>{this.initFromDate(d)},error:d=>{console.error("Error fetching default date:",d),this.initFromDate(null)}})}initFromDate(d){this.filter.update(m=>N(L({},m),{From:d})),this.initShippedOrders()}initShippedOrders(){this.shippedOrders$=this.orderService.getShippedOrders(this.filter())}};p.\u0275fac=function(m){return new(m||p)},p.\u0275cmp=D({type:p,selectors:[["app-shipped"]],features:[j([P])],decls:34,vars:12,consts:[["headerTitle","Shipped","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","200px"],[1,"text-end",2,"width","100px"],[2,"width","80px"],["rowCountApi","/api/orders/shippedcount",3,"next","previous","filter","totaldata"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[2,"font-size","14px",3,"order"],[1,"fa-solid","fa-user"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"d-flex","align-items-end","gap-2"]],template:function(m,o){if(m&1){let u=M();A(0),y(1,"async"),t(2,"mainpanel",0),T("onSubmit",function(){return s(u),c(o.initShippedOrders())}),C("textChange",function(n){return s(u),S(o.filter().Number,n)||(o.filter().Number=n),c(n)}),t(3,"actions")(4,"a",1),_(5,"i",2),t(6,"span"),l(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),l(11,"Channel"),i(),t(12,"app-channel-options-v2",4),C("ngModelChange",function(n){return s(u),S(o.filter().ListChannelID,n)||(o.filter().ListChannelID=n),c(n)}),i()(),t(13,"div",5)(14,"label",3),l(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),C("dateChange",function(n){return s(u),S(o.filter().From,n)||(o.filter().From=n),c(n)}),i()(),t(18,"div")(19,"datepicker",8),C("dateChange",function(n){return s(u),S(o.filter().To,n)||(o.filter().To=n),c(n)}),i()()(),t(20,"div",5)(21,"label",9),l(22,"Page Number"),i(),t(23,"input",10),C("ngModelChange",function(n){return s(u),S(o.filter().PageNumber,n)||(o.filter().PageNumber=n),c(n)}),i()(),t(24,"div",5)(25,"label",9),l(26,"Page Size"),i(),t(27,"input",11),C("ngModelChange",function(n){return s(u),S(o.filter().PageSize,n)||(o.filter().PageSize=n),c(n)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),b(32,Ce,18,2,"div",15)(33,ve,2,0,"div",16),i()()()()()}if(m&2){let u=R(E(1,8,o.shippedOrders$)||U(11,ue));r(2),f("text",o.filter().Number),r(10),g("multiple",!0),f("ngModel",o.filter().ListChannelID),r(5),f("date",o.filter().From),r(2),f("date",o.filter().To),r(4),f("ngModel",o.filter().PageNumber),r(4),f("ngModel",o.filter().PageSize),r(5),V(u.length>0?32:33)}},dependencies:[X,re,ae,oe,te,Y,ee,Z,$,de,me,se,ne,ie,ce,le,J,Q,K,pe],encapsulation:2});let a=p;return a})();export{Re as ShippedComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as ot}from"./chunk-C2LAQOUW.js";import{a as lt}from"./chunk-
|
|
1
|
+
import{e as ot}from"./chunk-C2LAQOUW.js";import{a as lt}from"./chunk-RWPLFNHT.js";import"./chunk-MT3CWRVG.js";import"./chunk-W33M7S2S.js";import"./chunk-MTVUPPAN.js";import"./chunk-2NRHX6CZ.js";import{a as at}from"./chunk-7KG3DC5J.js";import{a as rt}from"./chunk-5WQ3LCWP.js";import"./chunk-NVPT5BF2.js";import"./chunk-QMHG3QTI.js";import"./chunk-NIJCYMZM.js";import"./chunk-UMLV2ZUF.js";import"./chunk-7X4B2T6C.js";import"./chunk-PN3KM4M4.js";import"./chunk-WIRBYT7F.js";import"./chunk-ZWUYPYHD.js";import"./chunk-WVA5LYVE.js";import"./chunk-FOKLBUX6.js";import{b as it}from"./chunk-BXNDE6NQ.js";import"./chunk-A6QXXKPR.js";import"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{b as nt}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-RXC5D64C.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-5UFP37GQ.js";import{c as K}from"./chunk-UPRDDI4K.js";import{A as et,h as Z,m as tt}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{e as Q}from"./chunk-MM7SAZOU.js";import{e as X,g as Y}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as G,q,w as A,x as J,z as U}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{$c as z,Hb as L,Nc as l,Oc as x,Pc as w,Rc as V,Sc as k,Tc as H,Xc as O,Z as v,ac as g,ad as W,bd as j,ca as E,cc as S,ec as F,f as D,fc as R,gc as $,hc as d,ic as o,id as c,jc as a,jd as u,kc as N,kd as I,lb as M,mb as P,ob as p,ra as b,rc as B,v as _,wc as T,ya as C,yc as s,za as h}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var pt=(i,r)=>({"bg-gradient-danger":i,"bg-gradient-warning":r}),st=()=>["/menu/products/status/notification/detail"],ct=i=>({ID:i});function mt(i,r){if(i&1&&(l(0),c(1,"number"),o(2,"span"),l(3,"s"),a()),i&2){let n=s().$implicit;w(" ",I(1,1,n.DurationInSecond,"1.1-1")," ")}}function dt(i,r){i&1&&l(0," - ")}function ut(i,r){if(i&1&&(o(0,"tr",11)(1,"td")(2,"a",12),N(3,"img",13),o(4,"span"),l(5),a()()(),o(6,"td")(7,"b"),l(8),a(),N(9,"div",14),a(),o(10,"td"),g(11,mt,4,4)(12,dt,1,0),a(),o(13,"td"),l(14),a(),o(15,"td"),l(16),c(17,"date"),a()()),i&2){let n=r.$implicit;d("ngClass",j(14,pt,n.Status==1,n.Status==0)),p(2),d("routerLink",z(17,st))("queryParams",W(18,ct,n.ID)),p(),d("src",O(n.Img),P),p(2),x(n.Name),p(3),x(n.Label),p(),d("innerHTML",n.Message,M),p(2),S(n.DurationInSecond?11:12),p(3),x(n.StatusLabel),p(2),w(" ",I(17,11,n.Created,"dd MMM yyyy HH:mm")," ")}}function ft(i,r){if(i&1){let n=B();o(0,"div",5)(1,"div",15)(2,"app-custom-paginator",16),c(3,"async"),c(4,"async"),T("total",function(){C(n);let t=s(2);return h(t.getRowCount())})("next",function(){C(n);let t=s(2);return h(t.getNotifications())})("previous",function(){C(n);let t=s(2);return h(t.getNotifications())}),a()()()}if(i&2){let n=s(),e=s();p(2),d("filter",e.filter)("totaldata",n==null?null:n.length)("paginationTotal",u(3,4,e.rowCount$))("hasClicked",u(4,6,e.rowCount$))}}function _t(i,r){i&1&&g(0,ft,5,8,"div",5),i&2&&S(r.length>0?0:-1)}var $t=(()=>{let r=class r{constructor(){this.http=b(Q),this.notificationService=b(it),this.filter=new at,this.destroy$=new D}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe(E(this.destroy$)).subscribe(e=>{e.length>0&&(this.getNotifications(),this.notificationService.clearNotification())})}initPageLoader(){this.http.post("/api/notification/Load",{}).subscribe(e=>{this.filter=e.Filter,this.filter.PageSize=this.filter.RowCount,this.getNotifications()})}onFilter(){this.rowCount$=null,this.getNotifications()}getNotifications(){let e={ChannelID:this.filter.ChannelID,RowCount:this.filter.PageSize,PageNumber:this.filter.PageNumber};this.notifications$=this.http.post("/api/notification/Get",e).pipe(_(t=>t.Data),_(t=>(t=this.setChannelLogoToNotifications(t),t=this.setTimeToSecond(t),t)),v(1))}setTimeToSecond(e){return e=e.map(t=>(t.DurationInSecond=parseInt(t.Duration)/1e3,t)),e}setChannelLogoToNotifications(e){return e=e.map(t=>(t.Img=K.getChannelLogoByTypeId(t.TypeID),t)),e}getRowCount(){let e={ChannelID:this.filter.ChannelID};this.rowCount$=this.http.post("/api/notification/RowCount",e).pipe(_(t=>t.Count),v(1))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=L({type:r,selectors:[["app-notification"]],decls:33,vars:6,consts:[["headerTitle","Product Scan Job","hideSearchBox","true",3,"onSubmit"],["routerLink","/menu/products/status/notificationV2",1,"btn","btn-outline-secondary","btn-lg"],[1,"mb-2"],[3,"ngModelChange","ngModel"],[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"],[3,"ngClass"],[3,"routerLink","queryParams"],["alt","",1,"channelLogo-md","me-4",3,"src"],[3,"innerHTML"],[1,"col-12"],[3,"total","next","previous","filter","totaldata","paginationTotal","hasClicked"]],template:function(t,m){if(t&1&&(o(0,"mainpanel",0),T("onSubmit",function(){return m.onFilter()}),o(1,"actions")(2,"a",1),l(3," Scan Job V2 "),a()(),o(4,"filters")(5,"div")(6,"h6",2),l(7,"Channel"),a(),o(8,"app-channel-options-v2",3),H("ngModelChange",function(y){return k(m.filter.ChannelID,y)||(m.filter.ChannelID=y),y}),a()()(),o(9,"content")(10,"div",4)(11,"div",5)(12,"div",6)(13,"div",7)(14,"table",8)(15,"thead",9)(16,"tr",10)(17,"th"),l(18,"Channel"),a(),o(19,"th"),l(20,"Process"),a(),o(21,"th"),l(22,"Duration"),a(),o(23,"th"),l(24,"Status"),a(),o(25,"th"),l(26,"Created"),a()()(),o(27,"tbody"),R(28,ut,18,20,"tr",11,F),c(30,"async"),a()()()()(),g(31,_t,1,1),c(32,"async"),a()()()),t&2){let f;p(8),V("ngModel",m.filter.ChannelID),p(20),$(u(30,2,m.notifications$)),p(3),S((f=u(32,4,m.notifications$))?31:-1,f)}},dependencies:[G,q,et,Z,tt,nt,rt,ot,Y,X,lt,A,U,J],encapsulation:2});let i=r;return i})();export{$t as NotificationComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as vt}from"./chunk-R3WIWDSP.js";import"./chunk-LUJ3SHSP.js";import"./chunk-IVKFEOCB.js";import{e as ft}from"./chunk-P6RAMHDB.js";import"./chunk-3HME327V.js";import{c as Pt,d as yt}from"./chunk-TZTW72NT.js";import"./chunk-VP3XO25X.js";import{a as gt}from"./chunk-SABMHH6B.js";import"./chunk-YAWT3CLI.js";import"./chunk-5C24BA5F.js";import"./chunk-LR2YCE6M.js";import"./chunk-BKR7YPEW.js";import"./chunk-C2LAQOUW.js";import{a as bt}from"./chunk-DLHIDOS3.js";import{a as St}from"./chunk-27DIE2YS.js";import{a as xt}from"./chunk-7IOQ6VVF.js";import"./chunk-NVPT5BF2.js";import"./chunk-QMHG3QTI.js";import"./chunk-NIJCYMZM.js";import"./chunk-UMLV2ZUF.js";import"./chunk-7X4B2T6C.js";import"./chunk-PN3KM4M4.js";import"./chunk-WIRBYT7F.js";import"./chunk-ZWUYPYHD.js";import"./chunk-WVA5LYVE.js";import"./chunk-FOKLBUX6.js";import"./chunk-G6O6VFLS.js";import"./chunk-A6QXXKPR.js";import"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{b as Ct}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import{c as ut}from"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-4S4BOPUV.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-2ST3DMR6.js";import"./chunk-24KZDZKS.js";import"./chunk-3RK6DDJD.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-ZC526ERX.js";import"./chunk-YD6BNJ2B.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-RXC5D64C.js";import{c as ht}from"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as W}from"./chunk-ZSUWHVKX.js";import{h as st}from"./chunk-QMQCIH3X.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import{a as j}from"./chunk-AGBJEXIM.js";import{b as lt,c as ct}from"./chunk-5UFP37GQ.js";import{c as N}from"./chunk-UPRDDI4K.js";import{A as mt,b as dt,h as pt,m as _t}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as at,e as D}from"./chunk-MM7SAZOU.js";import{d as rt}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{w as it,z as ot}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{G as V,Hb as tt,Ia as X,K as H,Nb as A,Nc as d,Oc as nt,Pc as y,Rc as B,Sc as $,Tc as U,X as K,Z as q,ac as _,ad as E,bc as et,ca as J,cc as m,ea as k,ec as F,f as z,fa as Z,fc as I,g as R,gc as T,hc as p,ic as r,id as S,jc as c,jd as P,kc as C,ma as Q,mb as v,ob as l,oc as O,pc as M,qa as Y,ra as g,rc as f,v as w,wc as x,ya as h,yc as s,za as u}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var Nt=(()=>{let o=class o{get footerPageNumber(){return this._footerPageNumber}set footerPageNumber(t){this._footerPageNumber=t}get hideCount(){return this._hideCount}set hideCount(t){this._hideCount=t}get disableNextButton(){return this._disableNextButton}set disableNextButton(t){this._disableNextButton=t}get goToLastPage(){return this._goToLastPage}set goToLastPage(t){this._goToLastPage=t}constructor(t){this.http=t,this.pagination$=new R(null),this.destroy$=new z,this.data$=this.paginationFunction()}onNextPage(t){t.PageNumber+=1,this.pagination$.next(t)}setPageNumberFooter(t){this.footerPageNumber=t.PageNumber}setPaginationButtonState(t,e){e==0?this.disableNextButton=!0:this.disableNextButton=!(e<t.RowCount*t.PageNumber)}reloadPagination(t){N.IsEmpty(t.PageNumber)&&(t.PageNumber=1),this.pagination$.next(t),this.hideCount=!0,this.goToLastPage=!1}getAllData(t,e){t.RowCount=e,this.pagination$.next(t),this.goToLastPage=!0}destroy(){this.destroy$.next(!0),this.destroy$.complete(),this.pagination$=null,this.pagination$=new R(null),this.data$=this.paginationFunction()}paginationFunction(){return this.pagination$.pipe(J(this.destroy$),V(t=>t!=null),H(t=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(t)).pipe(w(e=>e.Data))),Z(this.pagination$),K((t,e)=>{let[a,b]=t,[G]=e;return b.PageNumber==1?[G,b]:[a.concat(G),b]}),k(([t,e])=>{this.setPageNumberFooter(e),this.setPaginationButtonState(e,t.length)}),w(([t])=>t),q())}};o.\u0275fac=function(e){return new(e||o)(Y(D))},o.\u0275prov=Q({token:o,factory:o.\u0275fac,providedIn:"root"});let i=o;return i})();var L=i=>[i];function Ft(i,o){if(i&1){let n=f();r(0,"button",11),x("click",function(){h(n);let e=s(3);return u(e.uploadMultipleProduct())}),C(1,"i",12),d(2),c()}if(i&2){let n=s(3);l(2),y(" upload (",n.selectedProducts==null?null:n.selectedProducts.length,") ")}}function It(i,o){if(i&1&&(O(0),_(1,Ft,3,1,"button",10),M()),i&2){let n=s(2);l(),m(n.hasSelectionProduct?1:-1)}}function Tt(i,o){if(i&1){let n=f();O(0),r(1,"button",13),x("click",function(){h(n);let e=s(2);return u(e.openScanDialog())}),C(2,"i",14),d(3," Scan Channel "),c(),M()}}function Ot(i,o){i&1&&(O(0),C(1,"th",21),M())}function Mt(i,o){if(i&1){let n=f();r(0,"td",27)(1,"input",28),U("ngModelChange",function(e){h(n);let a=s(3).$implicit;return $(a.selected,e)||(a.selected=e),u(e)}),x("ngModelChange",function(){h(n);let e=s(4),a=s(3);return u(a.onSelectProduct(e))}),c()()}if(i&2){let n=s(3).$implicit;p("rowSpan",n==null?null:n.Variants.length),l(),B("ngModel",n.selected)}}function Et(i,o){if(i&1&&(O(0),_(1,Mt,2,2,"td",27),M()),i&2){let n=s().$index;l(),m(n==0?1:-1)}}function Vt(i,o){if(i&1){let n=f();r(0,"img",35),x("click",function(e){h(n);let a=s(3).$implicit,b=s(4);return u(b.onZoomImage(e,a==null?null:a.ImageUrl))}),c()}if(i&2){let n=s(3).$implicit;p("src",n==null?null:n.ImageUrl,v)}}function kt(i,o){i&1&&C(0,"img",31)}function At(i,o){if(i&1&&(r(0,"td",27)(1,"div",29),_(2,Vt,1,1,"img",30)(3,kt,1,0,"img",31),c()(),r(4,"td",32)(5,"h4",33)(6,"span",34),d(7),c()()()),i&2){let n=s(2).$implicit;p("rowSpan",n==null?null:n.Variants.length),l(2),m(n!=null&&n.ImageUrl?2:3),l(2),p("rowSpan",n==null?null:n.Variants.length),l(2),p("matTooltip",(n==null||n.Name==null?null:n.Name.length)>50?n==null?null:n.Name:""),l(),y(" ",n==null?null:n.Name," ")}}function Bt(i,o){if(i&1&&(r(0,"div")(1,"a",23),C(2,"img",36),c()()),i&2){let n=o.$implicit;l(),p("href",n.URL,v),l(),p("src",n.Img,v)("matTooltip",n.Name)}}function $t(i,o){if(i&1&&(r(0,"div"),C(1,"img",36),c()),i&2){let n=o.$implicit;l(),p("src",n.Img,v)("matTooltip",n.Name)}}function Dt(i,o){if(i&1&&(r(0,"tr"),A(1,Et,2,1,"ng-container",2),_(2,At,8,5),r(3,"td"),d(4),c(),r(5,"td")(6,"span"),d(7),c(),r(8,"span",22)(9,"a",23),C(10,"i",24),c()()(),r(11,"td",25)(12,"div",26),I(13,Bt,3,3,"div",null,F),c()(),r(15,"td",25)(16,"div",26),I(17,$t,2,2,"div",null,F),c()()()),i&2){let n=o.$implicit,t=o.$index,e=s(5);l(),p("ngxPermissionsOnly",E(5,L,e.uploadProductRole)),l(),m(t==0?2:-1),l(2),y(" ",n.Name," "),l(3),y(" ",n.Code," "),l(2),p("href",e.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(n==null?null:n.ID),v),l(4),T(n==null?null:n.Available),l(4),T(n==null?null:n.NotAvailable)}}function Lt(i,o){if(i&1&&I(0,Dt,19,7,"tr",null,F),i&2){let n=o.$implicit;T(n.Variants)}}function Rt(i,o){i&1&&(r(0,"tbody"),I(1,Lt,2,0,null,null,F),c()),i&2&&(l(),T(o))}function Ut(i,o){if(i&1&&(r(0,"div",8)(1,"table",15)(2,"thead",16)(3,"tr"),A(4,Ot,2,0,"ng-container",2),r(5,"th",17),d(6," Product "),c(),r(7,"th",18),d(8,"Variant"),c(),r(9,"th",18),d(10,"SKU"),c(),r(11,"th",19),d(12,"Available In"),c(),r(13,"th",20),d(14,"Not Available In"),c()()(),_(15,Rt,3,0,"tbody"),S(16,"async"),c()()),i&2){let n,t=s(2);l(4),p("ngxPermissionsOnly",E(4,L,t.uploadProductRole)),l(11),m((n=P(16,2,t.data$))?15:-1,n)}}function jt(i,o){i&1&&(r(0,"div",9),C(1,"app-empty-state"),c())}function Wt(i,o){if(i&1){let n=f();r(0,"span",44),x("click",function(){h(n);let e=s(4);return u(e.getRowCount())}),r(1,"i",45),d(2,"?"),c()()}}function Gt(i,o){if(i&1&&(r(0,"span"),d(1),S(2,"number"),c()),i&2){let n=o;l(),nt(P(2,1,n==null?null:n.Count))}}function zt(i,o){if(i&1){let n=f();r(0,"a",46),x("click",function(){h(n);let e=s(4);return u(e.onNextPage())}),C(1,"i",47),d(2," Next"),c()}}function Ht(i,o){if(i&1){let n=f();r(0,"a",48),x("click",function(){h(n);let e=s(4);return u(e.onLastPage())}),C(1,"i",49),d(2," Last"),c()}}function Kt(i,o){if(i&1&&(r(0,"div",37)(1,"div",38)(2,"div",39),d(3),S(4,"number"),_(5,Wt,3,0,"span",40),_(6,Gt,3,3,"span"),S(7,"async"),d(8),c()(),r(9,"div",41),_(10,zt,3,0,"a",42),_(11,Ht,3,0,"a",43),c()()),i&2){let n,t=s(),e=s(2);l(3),y(" Showing 1 - ",P(4,6,t==null?null:t.length)," of "),l(2),m(e.paginationService.hideCount?5:-1),l(),m((n=!e.paginationService.hideCount&&P(7,8,e.rowCount$))?6:-1,n),l(2),y(" records ~ ",e.paginationService.footerPageNumber," Page "),l(2),m(e.paginationService.disableNextButton&&!e.paginationService.goToLastPage?10:-1),l(),m(e.paginationService.disableNextButton&&!e.paginationService.goToLastPage?11:-1)}}function qt(i,o){if(i&1&&_(0,Kt,12,10,"div",37),i&2){let n=o;m((n==null?null:n.length)>0?0:-1)}}function Jt(i,o){if(i&1){let n=f();r(0,"mainpanel",1),x("onSubmit",function(e){h(n);let a=s();return u(a.searchProduct(e))}),r(1,"actions"),A(2,It,2,1,"ng-container",2)(3,Tt,4,0,"ng-container",2),r(4,"button",3),x("click",function(){h(n);let e=s();return u(e.openExportDialog())}),C(5,"i",4),r(6,"span"),d(7,"Export"),c()()(),r(8,"filters")(9,"filter-query-type",5),U("numberFilterComparatorChange",function(e){h(n);let a=s();return $(a.searchFilter.NumberFilterComparator,e)||(a.searchFilter.NumberFilterComparator=e),u(e)})("searchTypeChange",function(e){h(n);let a=s();return $(a.searchFilter.SearchType,e)||(a.searchFilter.SearchType=e),u(e)}),c()(),r(10,"content")(11,"div",6)(12,"div",7),_(13,Ut,17,6,"div",8),S(14,"async"),et(15,jt,2,0,"div",9),c(),_(16,qt,1,1),S(17,"async"),c()()()}if(i&2){let n,t,e=o,a=s();p("searchBoxPlaceHolder",a.searchPlaceholder()),l(2),p("ngxPermissionsOnly",E(13,L,a.uploadProductRole)),l(),p("ngxPermissionsOnly",E(15,L,a.scanProductRole)),l(6),p("numberFilterComparatorOptions",e==null||e.Options==null?null:e.Options.SearchComparatorTypeOptions),B("numberFilterComparator",a.searchFilter.NumberFilterComparator),p("searchTypeOptions",e==null||e.Options==null?null:e.Options.SearchSKUOnlyOrSKUNameOptions),B("searchType",a.searchFilter.SearchType),l(4),m(((n=P(14,9,a.data$))==null?null:n.length)>0?13:15),l(3),m((t=P(17,11,a.data$))?16:-1,t)}}var Ie=(()=>{let o=class o{constructor(){this.http=g(D),this.dialog=g(ut),this.toastr=g(at),this.route=g(rt),this.productService=g(xt),this.paginationService=g(Nt),this.biggerPictureService=g(bt),this.authService=g(st),this.uploadProductService=g(ft),this.placeholderService=g(Pt),this.loaderAPI="product/Load",this.notChannelAPI="product/GetNotInChannelV2",this.hasSelectionProduct=!1,this.selectedProducts=[],this.scanProductRole=W.ProductScan,this.uploadProductRole=W.ProductUpload,this.searchPlaceholder=X("Search ...");let t=this.authService;this.channelOptions=t.getChannels(),this.hostName=this.authService.getDomain()}ngOnInit(){this.initPageLoader(),this.iniData()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.notChannelAPI,this.loader$=this.http.post(`api/${this.loaderAPI}`,{}).pipe(k(t=>{this.searchFilter=t.Filter,this.paginationService.reloadPagination(t.Filter),this.initSearchPlaceholder()}))}initSearchPlaceholder(){this.searchPlaceholder.set(this.placeholderService.generatePlaceholderBySearchType(this.searchFilter.SearchType,this.searchFilter.NumberFilterComparator))}iniData(){this.data$=this.paginationService.data$.pipe(w(t=>(t=t.map(e=>(e.Variants=e.Variants.map(a=>(a.Available=this.productService.sortChannel(a.Available),a.NotAvailable=this.productService.sortChannel(a.NotAvailable),a.Available=this.assignLogoChannel(a.Available),a.NotAvailable=this.assignLogoChannel(a.NotAvailable),a)),e.Channel=e?.Variants[0]?.Available,e)),t)))}assignLogoChannel(t){return t=t.map(e=>(e.Img=N.getChannelLogoByTypeId(e.TypeID),e)),t}searchProduct(t){this.searchFilter.text=t,this.paginationService.reloadPagination(this.searchFilter),this.initSearchPlaceholder()}scanAllProduct(){let t=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct,this.searchFilter.Async).subscribe(e=>{this.searchFilter.Async?this.toastr.success("You will be notified when the scan is completed.","Scan Asynchronous"):(this.productService.successToastrScanAllProduct(e,t,!this.searchFilter.UpdatedProduct),this.initPageLoader())})}openScanDialog(){let t=JSON.parse(JSON.stringify(this.searchFilter));t.ChannelID=N.GuidEMpty,this.dialog.open(gt,{data:{filter:t,channelOptions:this.channelOptions},width:"600px"}).afterClosed().pipe(V(a=>N.IsNotEmpty(a))).subscribe(a=>{this.searchFilter.ChannelID=a.ChannelID,this.searchFilter.ScanFull=a.ScanFull,this.searchFilter.UpdatedProduct=a.UpdatedProduct,this.searchFilter.Async=a.Async,this.scanAllProduct()})}getRowCount(){this.paginationService.hideCount=!1;let t={text:this.searchFilter.text,NumberFilterComparator:this.searchFilter.NumberFilterComparator,SearchType:this.searchFilter.SearchType};this.rowCount$=this.http.post(j.GetNotInChannelRowCount,t)}onNextPage(){this.paginationService.onNextPage(this.searchFilter)}onLastPage(){let t={text:this.searchFilter.text,NumberFilterComparator:this.searchFilter.NumberFilterComparator,SearchType:this.searchFilter.SearchType};this.http.post(j.GetNotInChannelRowCount,t).subscribe({next:e=>{this.searchFilter.PageNumber=1,this.paginationService.getAllData(this.searchFilter,e.Count)}})}onZoomImage(t,e){this.biggerPictureService.openBiggerPicture(t,e)}onSelectProduct(t){this.hasSelectionProduct=this.productService.hasSelection(t),this.selectedProducts=this.productService.selectedProduct(t)}uploadMultipleProduct(){this.uploadProductService.setSelectedProduct(this.selectedProducts),this.route.navigate(["/menu/products/upload"])}ngOnDestroy(){this.paginationService.destroy()}openExportDialog(){this.dialog.open(vt,{data:{title:"Export Not In Channel",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:"product/GetNotInChannelRowCount",exportApi:"product/GetNotInChannelExport"}}).afterClosed().subscribe()}};o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=tt({type:o,selectors:[["app-not-in-channel"]],decls:2,vars:3,consts:[["headerTitle","Not in Channel","description","SKU has not been sold on one of channels",3,"searchBoxPlaceHolder"],["headerTitle","Not in Channel","description","SKU has not been sold on one of channels",3,"onSubmit","searchBoxPlaceHolder"],[4,"ngxPermissionsOnly"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[3,"numberFilterComparatorChange","searchTypeChange","numberFilterComparatorOptions","numberFilterComparator","searchTypeOptions","searchType"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"btn","btn-light","shadow","rounded","ms-2"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click"],["aria-hidden","true",1,"fa","fa-upload"],["data-cy","scanNotinChannel","type","button",1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],[1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],["colspan","2",1,"ms-5","text-center",2,"width","450px"],[2,"width","150px"],[2,"width","20%"],[2,"width","16%"],[2,"width","10px"],[1,"ms-1"],["target","_blank",3,"href"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[2,"padding-left","0px"],[1,"d-flex","flex-wrap","mb-1"],[1,"text-center",3,"rowSpan"],["type","checkbox",3,"ngModelChange","ngModel"],[2,"padding-right","0px"],[1,"border","rounded","cursor-pointer",2,"max-width","40px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded",2,"max-width","40px"],[1,"text-start",3,"rowSpan"],[1,"ms-5","fw-normal","text-ellipsis",2,"max-width","26vw !important"],[3,"matTooltip"],[1,"border","rounded","cursor-pointer",2,"max-width","40px",3,"click","src"],["alt","",1,"channel-logo","cursor-pointer","ms-4","mt-3",3,"src","matTooltip"],[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[1,"btn-group"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-share"]],template:function(e,a){if(e&1&&(_(0,Jt,18,17,"mainpanel",0),S(1,"async")),e&2){let b;m((b=P(1,1,a.loader$))?0:-1,b)}},dependencies:[Ct,ct,lt,yt,mt,dt,pt,_t,ht,St,it,ot],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}thead[_ngcontent-%COMP%]{position:sticky;top:0}.channel-logo[_ngcontent-%COMP%]{width:20px}.w-img[_ngcontent-%COMP%]{width:100%}"]});let i=o;return i})();export{Ie as NotInChannelComponent};
|
|
1
|
+
import{a as vt}from"./chunk-R3WIWDSP.js";import"./chunk-LUJ3SHSP.js";import"./chunk-IVKFEOCB.js";import{e as ft}from"./chunk-KTTKHI2N.js";import"./chunk-3HME327V.js";import{c as Pt,d as yt}from"./chunk-TZTW72NT.js";import"./chunk-VP3XO25X.js";import{a as gt}from"./chunk-SABMHH6B.js";import"./chunk-YAWT3CLI.js";import"./chunk-5C24BA5F.js";import"./chunk-LR2YCE6M.js";import"./chunk-BKR7YPEW.js";import"./chunk-C2LAQOUW.js";import{a as bt}from"./chunk-DLHIDOS3.js";import{a as St}from"./chunk-27DIE2YS.js";import{a as xt}from"./chunk-AJSJJV2I.js";import"./chunk-NVPT5BF2.js";import"./chunk-QMHG3QTI.js";import"./chunk-NIJCYMZM.js";import"./chunk-UMLV2ZUF.js";import"./chunk-7X4B2T6C.js";import"./chunk-PN3KM4M4.js";import"./chunk-WIRBYT7F.js";import"./chunk-ZWUYPYHD.js";import"./chunk-WVA5LYVE.js";import"./chunk-FOKLBUX6.js";import"./chunk-BXNDE6NQ.js";import"./chunk-A6QXXKPR.js";import"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{b as Ct}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import{c as ut}from"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-4S4BOPUV.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-2ST3DMR6.js";import"./chunk-24KZDZKS.js";import"./chunk-3RK6DDJD.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-ZC526ERX.js";import"./chunk-YD6BNJ2B.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-RXC5D64C.js";import{c as ht}from"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as W}from"./chunk-ZSUWHVKX.js";import{h as st}from"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import{a as j}from"./chunk-AGBJEXIM.js";import{b as lt,c as ct}from"./chunk-5UFP37GQ.js";import{c as N}from"./chunk-UPRDDI4K.js";import{A as mt,b as dt,h as pt,m as _t}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as at,e as D}from"./chunk-MM7SAZOU.js";import{d as rt}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{w as it,z as ot}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{G as V,Hb as tt,Ia as X,K as H,Nb as A,Nc as d,Oc as nt,Pc as y,Rc as B,Sc as $,Tc as U,X as K,Z as q,ac as _,ad as E,bc as et,ca as J,cc as m,ea as k,ec as F,f as z,fa as Z,fc as I,g as R,gc as T,hc as p,ic as r,id as S,jc as c,jd as P,kc as C,ma as Q,mb as v,ob as l,oc as O,pc as M,qa as Y,ra as g,rc as f,v as w,wc as x,ya as h,yc as s,za as u}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var Nt=(()=>{let o=class o{get footerPageNumber(){return this._footerPageNumber}set footerPageNumber(t){this._footerPageNumber=t}get hideCount(){return this._hideCount}set hideCount(t){this._hideCount=t}get disableNextButton(){return this._disableNextButton}set disableNextButton(t){this._disableNextButton=t}get goToLastPage(){return this._goToLastPage}set goToLastPage(t){this._goToLastPage=t}constructor(t){this.http=t,this.pagination$=new R(null),this.destroy$=new z,this.data$=this.paginationFunction()}onNextPage(t){t.PageNumber+=1,this.pagination$.next(t)}setPageNumberFooter(t){this.footerPageNumber=t.PageNumber}setPaginationButtonState(t,e){e==0?this.disableNextButton=!0:this.disableNextButton=!(e<t.RowCount*t.PageNumber)}reloadPagination(t){N.IsEmpty(t.PageNumber)&&(t.PageNumber=1),this.pagination$.next(t),this.hideCount=!0,this.goToLastPage=!1}getAllData(t,e){t.RowCount=e,this.pagination$.next(t),this.goToLastPage=!0}destroy(){this.destroy$.next(!0),this.destroy$.complete(),this.pagination$=null,this.pagination$=new R(null),this.data$=this.paginationFunction()}paginationFunction(){return this.pagination$.pipe(J(this.destroy$),V(t=>t!=null),H(t=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(t)).pipe(w(e=>e.Data))),Z(this.pagination$),K((t,e)=>{let[a,b]=t,[G]=e;return b.PageNumber==1?[G,b]:[a.concat(G),b]}),k(([t,e])=>{this.setPageNumberFooter(e),this.setPaginationButtonState(e,t.length)}),w(([t])=>t),q())}};o.\u0275fac=function(e){return new(e||o)(Y(D))},o.\u0275prov=Q({token:o,factory:o.\u0275fac,providedIn:"root"});let i=o;return i})();var L=i=>[i];function Ft(i,o){if(i&1){let n=f();r(0,"button",11),x("click",function(){h(n);let e=s(3);return u(e.uploadMultipleProduct())}),C(1,"i",12),d(2),c()}if(i&2){let n=s(3);l(2),y(" upload (",n.selectedProducts==null?null:n.selectedProducts.length,") ")}}function It(i,o){if(i&1&&(O(0),_(1,Ft,3,1,"button",10),M()),i&2){let n=s(2);l(),m(n.hasSelectionProduct?1:-1)}}function Tt(i,o){if(i&1){let n=f();O(0),r(1,"button",13),x("click",function(){h(n);let e=s(2);return u(e.openScanDialog())}),C(2,"i",14),d(3," Scan Channel "),c(),M()}}function Ot(i,o){i&1&&(O(0),C(1,"th",21),M())}function Mt(i,o){if(i&1){let n=f();r(0,"td",27)(1,"input",28),U("ngModelChange",function(e){h(n);let a=s(3).$implicit;return $(a.selected,e)||(a.selected=e),u(e)}),x("ngModelChange",function(){h(n);let e=s(4),a=s(3);return u(a.onSelectProduct(e))}),c()()}if(i&2){let n=s(3).$implicit;p("rowSpan",n==null?null:n.Variants.length),l(),B("ngModel",n.selected)}}function Et(i,o){if(i&1&&(O(0),_(1,Mt,2,2,"td",27),M()),i&2){let n=s().$index;l(),m(n==0?1:-1)}}function Vt(i,o){if(i&1){let n=f();r(0,"img",35),x("click",function(e){h(n);let a=s(3).$implicit,b=s(4);return u(b.onZoomImage(e,a==null?null:a.ImageUrl))}),c()}if(i&2){let n=s(3).$implicit;p("src",n==null?null:n.ImageUrl,v)}}function kt(i,o){i&1&&C(0,"img",31)}function At(i,o){if(i&1&&(r(0,"td",27)(1,"div",29),_(2,Vt,1,1,"img",30)(3,kt,1,0,"img",31),c()(),r(4,"td",32)(5,"h4",33)(6,"span",34),d(7),c()()()),i&2){let n=s(2).$implicit;p("rowSpan",n==null?null:n.Variants.length),l(2),m(n!=null&&n.ImageUrl?2:3),l(2),p("rowSpan",n==null?null:n.Variants.length),l(2),p("matTooltip",(n==null||n.Name==null?null:n.Name.length)>50?n==null?null:n.Name:""),l(),y(" ",n==null?null:n.Name," ")}}function Bt(i,o){if(i&1&&(r(0,"div")(1,"a",23),C(2,"img",36),c()()),i&2){let n=o.$implicit;l(),p("href",n.URL,v),l(),p("src",n.Img,v)("matTooltip",n.Name)}}function $t(i,o){if(i&1&&(r(0,"div"),C(1,"img",36),c()),i&2){let n=o.$implicit;l(),p("src",n.Img,v)("matTooltip",n.Name)}}function Dt(i,o){if(i&1&&(r(0,"tr"),A(1,Et,2,1,"ng-container",2),_(2,At,8,5),r(3,"td"),d(4),c(),r(5,"td")(6,"span"),d(7),c(),r(8,"span",22)(9,"a",23),C(10,"i",24),c()()(),r(11,"td",25)(12,"div",26),I(13,Bt,3,3,"div",null,F),c()(),r(15,"td",25)(16,"div",26),I(17,$t,2,2,"div",null,F),c()()()),i&2){let n=o.$implicit,t=o.$index,e=s(5);l(),p("ngxPermissionsOnly",E(5,L,e.uploadProductRole)),l(),m(t==0?2:-1),l(2),y(" ",n.Name," "),l(3),y(" ",n.Code," "),l(2),p("href",e.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(n==null?null:n.ID),v),l(4),T(n==null?null:n.Available),l(4),T(n==null?null:n.NotAvailable)}}function Lt(i,o){if(i&1&&I(0,Dt,19,7,"tr",null,F),i&2){let n=o.$implicit;T(n.Variants)}}function Rt(i,o){i&1&&(r(0,"tbody"),I(1,Lt,2,0,null,null,F),c()),i&2&&(l(),T(o))}function Ut(i,o){if(i&1&&(r(0,"div",8)(1,"table",15)(2,"thead",16)(3,"tr"),A(4,Ot,2,0,"ng-container",2),r(5,"th",17),d(6," Product "),c(),r(7,"th",18),d(8,"Variant"),c(),r(9,"th",18),d(10,"SKU"),c(),r(11,"th",19),d(12,"Available In"),c(),r(13,"th",20),d(14,"Not Available In"),c()()(),_(15,Rt,3,0,"tbody"),S(16,"async"),c()()),i&2){let n,t=s(2);l(4),p("ngxPermissionsOnly",E(4,L,t.uploadProductRole)),l(11),m((n=P(16,2,t.data$))?15:-1,n)}}function jt(i,o){i&1&&(r(0,"div",9),C(1,"app-empty-state"),c())}function Wt(i,o){if(i&1){let n=f();r(0,"span",44),x("click",function(){h(n);let e=s(4);return u(e.getRowCount())}),r(1,"i",45),d(2,"?"),c()()}}function Gt(i,o){if(i&1&&(r(0,"span"),d(1),S(2,"number"),c()),i&2){let n=o;l(),nt(P(2,1,n==null?null:n.Count))}}function zt(i,o){if(i&1){let n=f();r(0,"a",46),x("click",function(){h(n);let e=s(4);return u(e.onNextPage())}),C(1,"i",47),d(2," Next"),c()}}function Ht(i,o){if(i&1){let n=f();r(0,"a",48),x("click",function(){h(n);let e=s(4);return u(e.onLastPage())}),C(1,"i",49),d(2," Last"),c()}}function Kt(i,o){if(i&1&&(r(0,"div",37)(1,"div",38)(2,"div",39),d(3),S(4,"number"),_(5,Wt,3,0,"span",40),_(6,Gt,3,3,"span"),S(7,"async"),d(8),c()(),r(9,"div",41),_(10,zt,3,0,"a",42),_(11,Ht,3,0,"a",43),c()()),i&2){let n,t=s(),e=s(2);l(3),y(" Showing 1 - ",P(4,6,t==null?null:t.length)," of "),l(2),m(e.paginationService.hideCount?5:-1),l(),m((n=!e.paginationService.hideCount&&P(7,8,e.rowCount$))?6:-1,n),l(2),y(" records ~ ",e.paginationService.footerPageNumber," Page "),l(2),m(e.paginationService.disableNextButton&&!e.paginationService.goToLastPage?10:-1),l(),m(e.paginationService.disableNextButton&&!e.paginationService.goToLastPage?11:-1)}}function qt(i,o){if(i&1&&_(0,Kt,12,10,"div",37),i&2){let n=o;m((n==null?null:n.length)>0?0:-1)}}function Jt(i,o){if(i&1){let n=f();r(0,"mainpanel",1),x("onSubmit",function(e){h(n);let a=s();return u(a.searchProduct(e))}),r(1,"actions"),A(2,It,2,1,"ng-container",2)(3,Tt,4,0,"ng-container",2),r(4,"button",3),x("click",function(){h(n);let e=s();return u(e.openExportDialog())}),C(5,"i",4),r(6,"span"),d(7,"Export"),c()()(),r(8,"filters")(9,"filter-query-type",5),U("numberFilterComparatorChange",function(e){h(n);let a=s();return $(a.searchFilter.NumberFilterComparator,e)||(a.searchFilter.NumberFilterComparator=e),u(e)})("searchTypeChange",function(e){h(n);let a=s();return $(a.searchFilter.SearchType,e)||(a.searchFilter.SearchType=e),u(e)}),c()(),r(10,"content")(11,"div",6)(12,"div",7),_(13,Ut,17,6,"div",8),S(14,"async"),et(15,jt,2,0,"div",9),c(),_(16,qt,1,1),S(17,"async"),c()()()}if(i&2){let n,t,e=o,a=s();p("searchBoxPlaceHolder",a.searchPlaceholder()),l(2),p("ngxPermissionsOnly",E(13,L,a.uploadProductRole)),l(),p("ngxPermissionsOnly",E(15,L,a.scanProductRole)),l(6),p("numberFilterComparatorOptions",e==null||e.Options==null?null:e.Options.SearchComparatorTypeOptions),B("numberFilterComparator",a.searchFilter.NumberFilterComparator),p("searchTypeOptions",e==null||e.Options==null?null:e.Options.SearchSKUOnlyOrSKUNameOptions),B("searchType",a.searchFilter.SearchType),l(4),m(((n=P(14,9,a.data$))==null?null:n.length)>0?13:15),l(3),m((t=P(17,11,a.data$))?16:-1,t)}}var Ie=(()=>{let o=class o{constructor(){this.http=g(D),this.dialog=g(ut),this.toastr=g(at),this.route=g(rt),this.productService=g(xt),this.paginationService=g(Nt),this.biggerPictureService=g(bt),this.authService=g(st),this.uploadProductService=g(ft),this.placeholderService=g(Pt),this.loaderAPI="product/Load",this.notChannelAPI="product/GetNotInChannelV2",this.hasSelectionProduct=!1,this.selectedProducts=[],this.scanProductRole=W.ProductScan,this.uploadProductRole=W.ProductUpload,this.searchPlaceholder=X("Search ...");let t=this.authService;this.channelOptions=t.getChannels(),this.hostName=this.authService.getDomain()}ngOnInit(){this.initPageLoader(),this.iniData()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.notChannelAPI,this.loader$=this.http.post(`api/${this.loaderAPI}`,{}).pipe(k(t=>{this.searchFilter=t.Filter,this.paginationService.reloadPagination(t.Filter),this.initSearchPlaceholder()}))}initSearchPlaceholder(){this.searchPlaceholder.set(this.placeholderService.generatePlaceholderBySearchType(this.searchFilter.SearchType,this.searchFilter.NumberFilterComparator))}iniData(){this.data$=this.paginationService.data$.pipe(w(t=>(t=t.map(e=>(e.Variants=e.Variants.map(a=>(a.Available=this.productService.sortChannel(a.Available),a.NotAvailable=this.productService.sortChannel(a.NotAvailable),a.Available=this.assignLogoChannel(a.Available),a.NotAvailable=this.assignLogoChannel(a.NotAvailable),a)),e.Channel=e?.Variants[0]?.Available,e)),t)))}assignLogoChannel(t){return t=t.map(e=>(e.Img=N.getChannelLogoByTypeId(e.TypeID),e)),t}searchProduct(t){this.searchFilter.text=t,this.paginationService.reloadPagination(this.searchFilter),this.initSearchPlaceholder()}scanAllProduct(){let t=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct,this.searchFilter.Async).subscribe(e=>{this.searchFilter.Async?this.toastr.success("You will be notified when the scan is completed.","Scan Asynchronous"):(this.productService.successToastrScanAllProduct(e,t,!this.searchFilter.UpdatedProduct),this.initPageLoader())})}openScanDialog(){let t=JSON.parse(JSON.stringify(this.searchFilter));t.ChannelID=N.GuidEMpty,this.dialog.open(gt,{data:{filter:t,channelOptions:this.channelOptions},width:"600px"}).afterClosed().pipe(V(a=>N.IsNotEmpty(a))).subscribe(a=>{this.searchFilter.ChannelID=a.ChannelID,this.searchFilter.ScanFull=a.ScanFull,this.searchFilter.UpdatedProduct=a.UpdatedProduct,this.searchFilter.Async=a.Async,this.scanAllProduct()})}getRowCount(){this.paginationService.hideCount=!1;let t={text:this.searchFilter.text,NumberFilterComparator:this.searchFilter.NumberFilterComparator,SearchType:this.searchFilter.SearchType};this.rowCount$=this.http.post(j.GetNotInChannelRowCount,t)}onNextPage(){this.paginationService.onNextPage(this.searchFilter)}onLastPage(){let t={text:this.searchFilter.text,NumberFilterComparator:this.searchFilter.NumberFilterComparator,SearchType:this.searchFilter.SearchType};this.http.post(j.GetNotInChannelRowCount,t).subscribe({next:e=>{this.searchFilter.PageNumber=1,this.paginationService.getAllData(this.searchFilter,e.Count)}})}onZoomImage(t,e){this.biggerPictureService.openBiggerPicture(t,e)}onSelectProduct(t){this.hasSelectionProduct=this.productService.hasSelection(t),this.selectedProducts=this.productService.selectedProduct(t)}uploadMultipleProduct(){this.uploadProductService.setSelectedProduct(this.selectedProducts),this.route.navigate(["/menu/products/upload"])}ngOnDestroy(){this.paginationService.destroy()}openExportDialog(){this.dialog.open(vt,{data:{title:"Export Not In Channel",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:"product/GetNotInChannelRowCount",exportApi:"product/GetNotInChannelExport"}}).afterClosed().subscribe()}};o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=tt({type:o,selectors:[["app-not-in-channel"]],decls:2,vars:3,consts:[["headerTitle","Not in Channel","description","SKU has not been sold on one of channels",3,"searchBoxPlaceHolder"],["headerTitle","Not in Channel","description","SKU has not been sold on one of channels",3,"onSubmit","searchBoxPlaceHolder"],[4,"ngxPermissionsOnly"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[3,"numberFilterComparatorChange","searchTypeChange","numberFilterComparatorOptions","numberFilterComparator","searchTypeOptions","searchType"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"btn","btn-light","shadow","rounded","ms-2"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click"],["aria-hidden","true",1,"fa","fa-upload"],["data-cy","scanNotinChannel","type","button",1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],[1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],["colspan","2",1,"ms-5","text-center",2,"width","450px"],[2,"width","150px"],[2,"width","20%"],[2,"width","16%"],[2,"width","10px"],[1,"ms-1"],["target","_blank",3,"href"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[2,"padding-left","0px"],[1,"d-flex","flex-wrap","mb-1"],[1,"text-center",3,"rowSpan"],["type","checkbox",3,"ngModelChange","ngModel"],[2,"padding-right","0px"],[1,"border","rounded","cursor-pointer",2,"max-width","40px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded",2,"max-width","40px"],[1,"text-start",3,"rowSpan"],[1,"ms-5","fw-normal","text-ellipsis",2,"max-width","26vw !important"],[3,"matTooltip"],[1,"border","rounded","cursor-pointer",2,"max-width","40px",3,"click","src"],["alt","",1,"channel-logo","cursor-pointer","ms-4","mt-3",3,"src","matTooltip"],[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[1,"btn-group"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-share"]],template:function(e,a){if(e&1&&(_(0,Jt,18,17,"mainpanel",0),S(1,"async")),e&2){let b;m((b=P(1,1,a.loader$))?0:-1,b)}},dependencies:[Ct,ct,lt,yt,mt,dt,pt,_t,ht,St,it,ot],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}thead[_ngcontent-%COMP%]{position:sticky;top:0}.channel-logo[_ngcontent-%COMP%]{width:20px}.w-img[_ngcontent-%COMP%]{width:100%}"]});let i=o;return i})();export{Ie as NotInChannelComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as P,b as v}from"./chunk-
|
|
1
|
+
import{a as P,b as v}from"./chunk-BXNDE6NQ.js";import{h as I}from"./chunk-O3QPBAV5.js";import{a as f}from"./chunk-AGBJEXIM.js";import{c as i}from"./chunk-UPRDDI4K.js";import{b as m,e as g}from"./chunk-MM7SAZOU.js";import{J as h,ea as l,ma as C,qa as u,r as c,ra as S}from"./chunk-OHGMB7HJ.js";var R=(()=>{let o=class o{constructor(t,e,n){this.httpService=t,this.toastrService=e,this.notificationService=n,this.authService=S(I),this.scanChannelToastr=S(P),this.channelOptions=this.authService.getChannels()}loader(t=i.GuidEMpty){return this.httpService.post("/api/product/Load",{ID:t})}LoadInPOS(t=i.GuidEMpty){return this.httpService.post("/api/product/LoadInPOS",{ID:t})}filterChannelByTypeId(t,e){return t.filter(n=>e.findIndex(a=>n.TypeID==a)!==-1)}getProductStatistic(){return this.httpService.post("/api/product/ProductStatistic",{})}getTotalProductLive(t){let e={ID:t};return this.httpService.post("/api/product/TotalProductLive",e)}clearCacheChannel(t){let e={ID:t};return this.httpService.post("/api/Channel/ClearCacheChannel",e)}detachProduct(t){return this.httpService.post("/api/product/Detach",t)}uploadSingleProduct(t,e){let n={Channel:e,Products:t};return this.httpService.post("api/product/UploadMultipleChannel",n).pipe(l(a=>{this.showToastrSuccessUploadSingle(a,t[0])}),h(a=>(this.showToastErrorUploadSingle(a,t[0]),c(()=>new Error(a)))))}uploadMultipleProduct(t,e){let n={Channel:e,Products:t};return this.httpService.post("api/product/UploadMultipleProductAndMultipleChannel",n).pipe(l(a=>{this.showToastrUploadMultiple(a.Message)}),h(a=>(this.showToastrUploadMultiple(a.error?.Message),c(()=>new Error(a)))))}uploadNotInChannel(t,e){let n={Products:t,Channel:e};return this.httpService.post("/api/product/UploadProductNotInChannelToChannel",n).pipe(l(a=>{this.showToastrUploadMultiple(a)}),h(a=>(this.showToastrUploadMultiple(a.error?.Message),c(()=>new Error(a)))))}scanSingle(t,e){let n={ID:t,SKU:e};return this.httpService.post("/api/product/ScanSingle",n)}scanNotInChannel(t){let e={ID:t};return this.httpService.post("/api/product/ScanNotinChannel",e)}findAllSoldInChannel(t){return this.httpService.post("/api/product/GetSoldInChannel",t)}scanAll(t,e,n,a=!1){let s={ID:t,ScanFull:e,UpdatedProduct:n,Async:a};return this.httpService.post("/api/product/ScanOptimized",s)}scanAsyncProductV2(t,e,n){let a={ID:t,ScanFull:e,UpdatedProduct:n,Async:!0};return this.httpService.post(f.ScanAsyncProductV2,a).pipe(l(s=>{this.notificationService.subscribeToJobGroup(s.JobID)}))}scanSyncProductV2(t,e,n){let a={ID:t,ScanFull:e,UpdatedProduct:n,Async:!1};return this.httpService.post(f.ScanSyncProductV2,a)}scanProductV2(t,e,n,a=!1){let s=this.findChannelById(t,this.channelOptions);return a?this.scanAsyncProductV2(t,e,n).pipe(l(r=>{this.scanChannelToastr.showToast({text:"Scan Job Started",detail:`JobID: ${r.JobID}`,severity:"info",data:{channelName:s.Name,channelTypeId:s.TypeID,jobId:r.JobID}})})):this.scanSyncProductV2(t,e,n).pipe(l(r=>{this.successToastrScanAllProduct(r,s,!n)}))}scanCompareToPos(t){return this.httpService.post("/api/product/CompareMarketplaceToPOS",t)}getVariantCodesProduct(t){return(t.Variants||[]).map(a=>a.Code)}downloadMultipleProduct(t){let e=t.map(n=>({ChannelItemID:n.ChannelItemID,ChannelID:n.ChannelID}));return this.httpService.post("/api/product/DownloadMultipleProductFromChannel",e).pipe(l(n=>{this.toastrService.success(`${n.Count} products downloaded to POS`,"Download Complete")}))}downloadProduct(t){let e={ChannelItemID:t.ChannelItemID,ChannelID:t.ChannelID};return this.httpService.post("/api/product/DownloadProductFromChannel",e).pipe(l(()=>{this.toastrService.success("Product successfully downloaded to POS","Download Complete")}))}getVariantCodesProducts(t=[]){let e=[];return t.forEach(n=>{n.Variants.forEach(a=>{e=[...e,a.Code]})}),e}filterUnselectedChannel(t,e){let n=[];t.forEach(s=>{n=[...n,...s.Channel]});let a;if(!n||n.length==0)a=e;else{let s=[];a=e.filter(r=>(s=n.filter(d=>d.ChannelID==r.ID),s.length!==t.length))}return a}findChannelById(t,e){return e.find(n=>n.ID==t)}sortChannel(t=[]){return t.sort((e,n)=>e.TypeID<n.TypeID?1:e.TypeID===n.TypeID?0:-1)}hasSelection(t=[]){return this.selectedProduct(t).length>0}selectedProduct(t=[]){return t.filter(e=>e.selected)}hasSelectionVariant(t){return this.selectedVariantProduct(t).length>0}selectedVariantProduct(t){let e=[];return t.forEach(n=>{e=[...e,...n.Variants!=null?n.Variants.filter(a=>a.selected):""]}),e}getChannelProduct(t){let e=t.Variants||[],n=[];for(let a of e)if(a.Channel!=null)for(let s of a.Channel)n.filter(r=>r.ChannelID==s.ChannelID).length==0&&n.push(s);return this.sortChannel(n)}successToastrScanAllProduct(t,e,n){let a=t.InChannel?t?.InChannel?.Product:0,s=t?.NotInPOS?.Product?t?.NotInPOS?.Product:0,r=i.IsNotEmpty(t.LastUpdate)?i.convertToReadableDate(t.LastUpdate):null;n?this.toastrService.success(`
|
|
2
2
|
${s+a} product updates in ${e.Name} </br>
|
|
3
3
|
(${a} In Channel + ${s} Not In Pos)
|
|
4
4
|
${i.IsNotEmpty(r)?"since "+r:""}
|