marketplacepos 5.48.2 → 5.48.4
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-B6F5PDL5.js → chunk-222XXOAY.js} +1 -1
- package/Marketplace/{chunk-H7GV5SNI.js → chunk-27DJ3M5I.js} +1 -1
- package/Marketplace/{chunk-IDH7MCR3.js → chunk-2C2HFRNV.js} +1 -1
- package/Marketplace/{chunk-7DT7FQ2T.js → chunk-2NVWRVFF.js} +1 -1
- package/Marketplace/{chunk-J6BQDYXO.js → chunk-2VA22SO6.js} +1 -1
- package/Marketplace/{chunk-PLLHTY6O.js → chunk-4M33AWDZ.js} +1 -1
- package/Marketplace/{chunk-LABF6W37.js → chunk-4ZJFRWQN.js} +1 -1
- package/Marketplace/{chunk-DH5CXAEM.js → chunk-5AODAALH.js} +1 -1
- package/Marketplace/{chunk-2IASUYTM.js → chunk-6QQYEBL5.js} +1 -1
- package/Marketplace/{chunk-Y77WYZ6Y.js → chunk-7SLU6C27.js} +1 -1
- package/Marketplace/{chunk-7SB4C4PT.js → chunk-B2AJZWCR.js} +1 -1
- package/Marketplace/chunk-B3OCJYGA.js +1 -0
- package/Marketplace/chunk-C3PHFX5T.js +1 -0
- package/Marketplace/{chunk-CAZ7U2IL.js → chunk-CBG4WEYF.js} +1 -1
- package/Marketplace/{chunk-ALPG22RQ.js → chunk-CPZLAKWT.js} +1 -1
- package/Marketplace/{chunk-I723PUUO.js → chunk-CS6LKY4V.js} +1 -1
- package/Marketplace/{chunk-SZVL42NR.js → chunk-CY6E3XTP.js} +1 -1
- package/Marketplace/{chunk-UCEZJNIL.js → chunk-DZPJWQHG.js} +1 -1
- package/Marketplace/{chunk-AEVLZ7NS.js → chunk-FH4WODGS.js} +1 -1
- package/Marketplace/{chunk-CBU473N2.js → chunk-G2BBO6GM.js} +1 -1
- package/Marketplace/{chunk-TIIGDXIJ.js → chunk-GRC7HDKP.js} +2 -2
- package/Marketplace/{chunk-ZUL6ZHSW.js → chunk-GUL2XBWQ.js} +1 -1
- package/Marketplace/chunk-HK4GOJ73.js +1 -0
- package/Marketplace/{chunk-M65Z55OS.js → chunk-HSA2EDQG.js} +1 -1
- package/Marketplace/chunk-IDBG7TAK.js +1 -0
- package/Marketplace/{chunk-RCBY7EIY.js → chunk-IWHLLPRU.js} +1 -1
- package/Marketplace/{chunk-5CHTDUME.js → chunk-JPSDIHQS.js} +1 -1
- package/Marketplace/{chunk-5KYN6Y7M.js → chunk-K7L2HJWH.js} +1 -1
- package/Marketplace/{chunk-3JYZF65T.js → chunk-LKOXNIF6.js} +1 -1
- package/Marketplace/{chunk-GVI6GJHY.js → chunk-LO7NU25H.js} +1 -1
- package/Marketplace/{chunk-ADKAX3OO.js → chunk-M5M7T3E4.js} +1 -1
- package/Marketplace/{chunk-UBTALPOC.js → chunk-NMN7TOB5.js} +1 -1
- package/Marketplace/{chunk-CLQGGKN6.js → chunk-NRMQVYZ5.js} +1 -1
- package/Marketplace/{chunk-KZSTYKIP.js → chunk-NVVJMZYV.js} +1 -1
- package/Marketplace/{chunk-QCV5XC3U.js → chunk-OMYXR4JG.js} +2 -2
- package/Marketplace/{chunk-PZKN5FIT.js → chunk-PCKX55VF.js} +1 -1
- package/Marketplace/{chunk-HKHNRMPT.js → chunk-PMJQCWXG.js} +1 -1
- package/Marketplace/{chunk-KSVJCX2D.js → chunk-QHN4ATYC.js} +1 -1
- package/Marketplace/{chunk-FCFCTT5A.js → chunk-QHWVLA6O.js} +1 -1
- package/Marketplace/{chunk-FRZCC6KZ.js → chunk-QINDZ3K2.js} +1 -1
- package/Marketplace/chunk-QJU4F5AN.js +1 -0
- package/Marketplace/{chunk-3K2EKA5O.js → chunk-RLSTZSKZ.js} +1 -1
- package/Marketplace/{chunk-XK4RP5MQ.js → chunk-RPI2RGAE.js} +1 -1
- package/Marketplace/{chunk-6OIMOM7S.js → chunk-UDM6UTHY.js} +1 -1
- package/Marketplace/{chunk-MKADKY44.js → chunk-UXCV6LVT.js} +1 -1
- package/Marketplace/{chunk-C6JHPCLF.js → chunk-VEX4VY2R.js} +1 -1
- package/Marketplace/{chunk-T7HRAMHR.js → chunk-VX75I7HA.js} +1 -1
- package/Marketplace/{chunk-GX6JPDQ5.js → chunk-X3VCSYP4.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-YJKBQ3LW.js → main-FO3SINLF.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-5X2L45XK.js +0 -1
- package/Marketplace/chunk-VYQD3A3M.js +0 -1
- package/Marketplace/chunk-WRK3ZHRX.js +0 -1
- package/Marketplace/chunk-X6COQADC.js +0 -1
- package/Marketplace/chunk-XDBH7EGC.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as te}from"./chunk-S7CKRTJV.js";import{a as Y}from"./chunk-7JQEF4XX.js";import"./chunk-AFIF6VRM.js";import"./chunk-ZW2TMVZP.js";import{a as $,b as ee}from"./chunk-FKGKMEDE.js";import"./chunk-ZKIO2ZQ6.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-FCEXPGTK.js";import"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import"./chunk-FULVA6QB.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import"./chunk-N5AE5WMQ.js";import{a as Z}from"./chunk-
|
|
1
|
+
import{a as te}from"./chunk-S7CKRTJV.js";import{a as Y}from"./chunk-7JQEF4XX.js";import"./chunk-AFIF6VRM.js";import"./chunk-ZW2TMVZP.js";import{a as $,b as ee}from"./chunk-FKGKMEDE.js";import"./chunk-ZKIO2ZQ6.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-FCEXPGTK.js";import"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import"./chunk-FULVA6QB.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import"./chunk-N5AE5WMQ.js";import{a as Z}from"./chunk-K7L2HJWH.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import{i as K}from"./chunk-CS6LKY4V.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-AGBJEXIM.js";import{e as J}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{c as G}from"./chunk-JBEKD57G.js";import{m as Q,n as X}from"./chunk-EDEZ3JLR.js";import{A as q,c as A,h as H,m as U,o as j}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{G as z,I as V,j as B,l as F,m as k}from"./chunk-LNJUGHOX.js";import{$b as L,$c as W,Gb as M,Mc as r,Nc as f,Oc as y,Qc as s,Rc as g,Sc as u,bc as E,dc as P,ec as x,fc as T,gc as c,hc as e,hd as b,ic as t,id as N,jc as _,jd as R,lb as O,nb as a,qc as I,ra as C,vc as w,xa as v,xc as S,ya as D}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var ne=l=>({ID:l});function ie(l,m){if(l&1&&(e(0,"tr")(1,"td"),r(2),t(),e(3,"td"),_(4,"img",23),t(),e(5,"td"),r(6),t(),e(7,"td",24)(8,"a",25),r(9),b(10,"number"),t()(),e(11,"td"),r(12),t(),e(13,"td"),r(14),b(15,"date"),t()()),l&2){let o=m.$implicit;a(2),f(o._source.ChannelName),a(2),c("src",o.logo,O),a(2),f(o._source.DateRange),a(2),c("queryParams",W(12,ne,o._source.ID)),a(),y(" ",N(10,7,o._source.CountOrder)," "),a(3),f(o._source.UserLogin),a(2),y(" ",R(15,9,o._source["@timestamp_received"],"dd MMM yyyy HH:mm")," ")}}function oe(l,m){if(l&1){let o=I();e(0,"div",14)(1,"table",16)(2,"thead")(3,"tr",17)(4,"th",18),r(5,"Channel"),t(),e(6,"th",19),r(7,"Type"),t(),e(8,"th",20),r(9,"Download Date Range"),t(),e(10,"th",21),r(11,"Count"),t(),e(12,"th"),r(13,"User Login"),t(),e(14,"th"),r(15,"Created"),t()()(),e(16,"tbody"),x(17,ie,16,14,"tr",null,P),t()(),e(19,"mat-paginator",22),w("page",function(p){v(o);let n=S();return D(n.onPaginationChange(p))}),t()()}if(l&2){let o=S();a(17),T(o.downloadOrders),a(2),c("length",o.paginationTotal)("pageSize",o.paginationPageSize)("pageIndex",(o.filter==null?null:o.filter.PageNumber)==0?0:(o.filter==null?null:o.filter.PageNumber)-1)}}function ae(l,m){l&1&&(e(0,"div",15),_(1,"app-empty-state"),t())}var Me=(()=>{let m=class m{constructor(){this.http=C(J),this.authService=C(K),this.filter={PageNumber:0,RowCount:20,ChannelID:"",From:"",To:""},this.channelOptions=this.authService.getChannels(),this.onGetLoader()}onGetLoader(){this.http.post("/api/OrdersLoader/OrderLogsLoader",{}).subscribe(d=>{this.filter=d.Filter,this.getDownloadOrders()})}getDownloadOrders(){this.http.post("api/Orders/OrderLogsPaged",this.filter).subscribe(d=>{this.downloadOrders=d.hits,this.setChannelLogo(),this.paginationTotal=d.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}setChannelLogo(){this.downloadOrders=this.downloadOrders.map(d=>(d.logo=G.getChannelLogoByTypeId(d._source.TypeID),d))}onPaginationChange(d){this.filter.PageNumber=d.pageIndex+1,this.getDownloadOrders()}};m.\u0275fac=function(p){return new(p||m)},m.\u0275cmp=M({type:m,selectors:[["app-download-order-log"]],decls:27,vars:7,consts:[["headerTitle","Download Order Log",3,"onSubmit","hideSearchBox"],[1,"fw-bold","mb-2"],[3,"ngModelChange","ngModel"],[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,"table","table-hover"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],[2,"width","200px"],[1,"text-end",2,"width","200px"],[3,"page","length","pageSize","pageIndex"],[2,"width","25px",3,"src"],[1,"text-end"],["routerLink","/menu/Order/Download_Order_Log/Detail",3,"queryParams"]],template:function(p,n){p&1&&(e(0,"mainpanel",0),w("onSubmit",function(){return n.getDownloadOrders()}),e(1,"filters")(2,"div")(3,"label",1),r(4,"Channel"),t(),e(5,"app-channel-options-v2",2),u("ngModelChange",function(i){return g(n.filter.ChannelID,i)||(n.filter.ChannelID=i),i}),t()(),e(6,"div",3)(7,"label",4),r(8,"From/To"),t(),e(9,"div",5)(10,"datepicker",6),u("dateChange",function(i){return g(n.filter.From,i)||(n.filter.From=i),i}),t()(),e(11,"div")(12,"datepicker",7),u("dateChange",function(i){return g(n.filter.To,i)||(n.filter.To=i),i}),t()()(),e(13,"div",3)(14,"label",8),r(15,"Page Number"),t(),e(16,"input",9),u("ngModelChange",function(i){return g(n.filter.PageNumber,i)||(n.filter.PageNumber=i),i}),t()(),e(17,"div",3)(18,"label",8),r(19,"Page Size"),t(),e(20,"input",10),u("ngModelChange",function(i){return g(n.filter.RowCount,i)||(n.filter.RowCount=i),i}),t()()(),e(21,"content")(22,"div",11)(23,"div",12)(24,"div",13),L(25,oe,20,3,"div",14)(26,ae,2,0,"div",15),t()()()()()),p&2&&(c("hideSearchBox",!0),a(5),s("ngModel",n.filter.ChannelID),a(5),s("date",n.filter.From),a(2),s("date",n.filter.To),a(4),s("ngModel",n.filter.PageNumber),a(4),s("ngModel",n.filter.RowCount),a(5),E((n.downloadOrders==null?null:n.downloadOrders.length)>0?25:26))},dependencies:[k,ee,$,X,Q,q,A,j,H,U,te,V,z,Y,Z,F,B],encapsulation:2});let l=m;return l})();export{Me as DownloadOrderLogComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as oe}from"./chunk-
|
|
1
|
+
import{a as oe}from"./chunk-NVVJMZYV.js";import{a as E}from"./chunk-LO7NU25H.js";import{a as le}from"./chunk-S7CKRTJV.js";import{a as re}from"./chunk-7JQEF4XX.js";import"./chunk-AFIF6VRM.js";import"./chunk-ZW2TMVZP.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-FCEXPGTK.js";import"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import"./chunk-N5AE5WMQ.js";import{a as ie}from"./chunk-FHER4TFY.js";import{a as ae}from"./chunk-K7L2HJWH.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{a as ne}from"./chunk-PDCVMSLL.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-CS6LKY4V.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{m as ee,n as te}from"./chunk-EDEZ3JLR.js";import{A as Y,c as K,h as Q,m as U,o as X}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import{v as Z,w as $}from"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as j,j as q,l as G,m as J}from"./chunk-LNJUGHOX.js";import{$b as F,Gb as D,Ha as W,Mc as a,Nc as w,Qc as C,Rc as f,Sc as g,Tc as k,Uc as A,Vc as z,Z as P,Zc as H,bc as N,cc as L,ec as B,fc as I,gc as h,hc as e,hd as b,ic as t,id as M,jc as y,jd as R,nb as r,qc as v,ra as O,vc as x,xa as u,xc as S,ya as c}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as T,b as V}from"./chunk-66YHNWRR.js";function de(d,m){if(d&1&&(e(0,"tr")(1,"td"),a(2),t(),e(3,"td"),y(4,"order-link",26),t(),e(5,"td"),a(6),t(),e(7,"td"),a(8),b(9,"number"),t(),e(10,"td"),a(11),b(12,"date"),t(),e(13,"td"),y(14,"app-channel-logo",27),t()()),d&2){let o=m.$implicit;r(2),w(o.Outlet),r(2),h("order",o),r(2),w(o.Customer),r(2),w(M(9,6,o.Amount)),r(3),w(R(12,8,o.Created,"dd MMM yyyy HH:mm")),r(3),h("typeId",o==null?null:o.TypeID)}}function me(d,m){if(d&1){let o=v();e(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),a(5,"Outlet"),t(),e(6,"th",21),a(7,"Order number"),t(),e(8,"th"),a(9,"Customer"),t(),e(10,"th",22),a(11,"Amount"),t(),e(12,"th",23),a(13," Created On "),t(),e(14,"th",24),a(15,"Channel"),t()()(),e(16,"tbody"),B(17,de,15,11,"tr",null,L),t()(),e(19,"app-custom-paginator",25),x("next",function(){u(o);let p=S();return c(p.initCancelledOrders())})("previous",function(){u(o);let p=S();return c(p.initCancelledOrders())}),t()()}if(d&2){let o=S(),l=z(0);r(17),I(l),r(2),h("filter",o.filter())("totaldata",l==null?null:l.length)("paginationTotal",l==null?null:l.length)("hasClicked",!0)("nextButtonAlwaysVisible",!0)}}function pe(d,m){d&1&&(e(0,"div",16),y(1,"app-empty-state"),t())}var We=(()=>{let m=class m{constructor(){this.orderService=O(E),this.filter=W({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:l=>{this.initFromDate(l)},error:l=>{console.error("Error fetching default date:",l),this.initFromDate(null)}})}initFromDate(l){this.filter.update(p=>V(T({},p),{From:l})),this.initCancelledOrders()}initCancelledOrders(){this.cancelledOrders$=this.orderService.getCancelledOrders(this.filter()).pipe(P(1))}};m.\u0275fac=function(p){return new(p||m)},m.\u0275cmp=D({type:m,selectors:[["app-cancelled"]],features:[H([E])],decls:34,vars:11,consts:[["headerTitle","Cancelled","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","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","120px"],[2,"width","220px"],[2,"width","100px"],["mat-sort-header","created",2,"width","130px"],[2,"width","130px"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked","nextButtonAlwaysVisible"],[3,"order"],[3,"typeId"]],template:function(p,n){if(p&1){let s=v();k(0),b(1,"async"),e(2,"mainpanel",0),x("onSubmit",function(){return u(s),c(n.initCancelledOrders())}),g("textChange",function(i){return u(s),f(n.filter().Number,i)||(n.filter().Number=i),c(i)}),e(3,"actions")(4,"a",1),y(5,"i",2),e(6,"span"),a(7,"Order Fulfillment Display"),t()()(),e(8,"filters")(9,"div")(10,"label",3),a(11,"Channel"),t(),e(12,"app-channel-options-v2",4),g("ngModelChange",function(i){return u(s),f(n.filter().ListChannelID,i)||(n.filter().ListChannelID=i),c(i)}),t()(),e(13,"div",5)(14,"label",3),a(15,"From/To"),t(),e(16,"div",6)(17,"datepicker",7),g("dateChange",function(i){return u(s),f(n.filter().From,i)||(n.filter().From=i),c(i)}),t()(),e(18,"div")(19,"datepicker",8),g("dateChange",function(i){return u(s),f(n.filter().To,i)||(n.filter().To=i),c(i)}),t()()(),e(20,"div",5)(21,"label",9),a(22,"Page Number"),t(),e(23,"input",10),g("ngModelChange",function(i){return u(s),f(n.filter().PageNumber,i)||(n.filter().PageNumber=i),c(i)}),t()(),e(24,"div",5)(25,"label",9),a(26,"Page Size"),t(),e(27,"input",11),g("ngModelChange",function(i){return u(s),f(n.filter().PageSize,i)||(n.filter().PageSize=i),c(i)}),t()()(),e(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),F(32,me,20,5,"div",15)(33,pe,2,0,"div",16),t()()()()()}if(p&2){let s=A(M(1,8,n.cancelledOrders$));r(2),C("text",n.filter().Number),r(10),h("multiple",!0),C("ngModel",n.filter().ListChannelID),r(5),C("date",n.filter().From),r(2),C("date",n.filter().To),r(4),C("ngModel",n.filter().PageNumber),r(4),C("ngModel",n.filter().PageSize),r(5),N((s==null?null:s.length)>0?32:33)}},dependencies:[J,te,ee,re,ne,Y,K,X,Q,U,le,$,Z,oe,ie,ae,j,G,q],encapsulation:2});let d=m;return d})();export{We as CancelledComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as re}from"./chunk-7JQEF4XX.js";import{a as pe,b as me}from"./chunk-FKGKMEDE.js";import"./chunk-ZKIO2ZQ6.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-FCEXPGTK.js";import"./chunk-FULVA6QB.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import"./chunk-N5AE5WMQ.js";import{a as te,b as ne,d as ie,e as ae}from"./chunk-6KWG6O5L.js";import{i as ee}from"./chunk-
|
|
1
|
+
import{a as re}from"./chunk-7JQEF4XX.js";import{a as pe,b as me}from"./chunk-FKGKMEDE.js";import"./chunk-ZKIO2ZQ6.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-FCEXPGTK.js";import"./chunk-FULVA6QB.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import"./chunk-N5AE5WMQ.js";import{a as te,b as ne,d as ie,e as ae}from"./chunk-6KWG6O5L.js";import{i as ee}from"./chunk-CS6LKY4V.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import{e as Z}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{c as Y}from"./chunk-JBEKD57G.js";import{m as oe,n as le}from"./chunk-EDEZ3JLR.js";import{A as X,h as K,m as Q}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as k,j as H,k as U,m as G}from"./chunk-LNJUGHOX.js";import{$b as R,Gb as P,Mb as B,Mc as s,Nc as f,Oc as y,Qc as z,Rc as A,Sc as V,Z as M,Zc as J,aa as D,ac as T,bc as $,cc as F,ec as j,fc as O,g as L,gc as h,hc as a,hd as c,ic as o,id as d,jc as u,jd as W,lb as S,ma as w,nb as p,qc as q,ra as g,v as I,vc as v,xa as E,xc as x,ya as N}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as _}from"./chunk-66YHNWRR.js";var b=(()=>{let t=class t{constructor(){this.httpService=g(Z),this._pageination=new L({PageNumber:1,RowCount:100,ChannelID:null}),this.filter$=this._pageination.asObservable(),this.log$=this.filter$.pipe(D(n=>this.getLogs$(n).pipe()))}getLogs$(n){return this.httpService.post("/api/Channel/GetChannelLogPaged",n)}onPaginationChange(n){let e=this._pageination.value;e.PageNumber=n.pageIndex+1,this._pageination.next(e)}onFilter(n){let e=this._pageination.value;e.PageNumber=1,e=_(_({},e),n),this._pageination.next(e)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac});let i=t;return i})();function ce(i,t){if(i&1&&(a(0,"span",10),u(1,"img",11),o(),s(2)),i&2){let l=t.item;p(),h("src",l.Img,S)("alt",l.Name),p(),y(" ",l.Name," ")}}function de(i,t){if(i&1&&(a(0,"tr")(1,"td"),u(2,"img",17),a(3,"span"),s(4),o()(),a(5,"td")(6,"span",18),s(7),c(8,"json"),o()(),a(9,"td"),s(10),c(11,"json"),o(),a(12,"td"),s(13),c(14,"date"),o()()),i&2){let l=t.$implicit;p(2),h("src",l.Img,S),p(2),y(" ",l.ChannelName," "),p(3),f(d(8,5,l.Request)),p(3),f(d(11,7,l.Response)),p(3),f(W(14,9,l.Created,"dd-MM-yyyy hh:mm:ss"))}}function he(i,t){if(i&1){let l=q();a(0,"div",8)(1,"table",12)(2,"thead")(3,"tr",13)(4,"th",14),s(5,"Channel"),o(),a(6,"th"),s(7,"Request"),o(),a(8,"th"),s(9,"Response"),o(),a(10,"th",15),s(11,"Created"),o()()(),a(12,"tbody"),j(13,de,15,12,"tr",null,F),c(15,"async"),o()(),a(16,"mat-paginator",16),c(17,"async"),c(18,"async"),c(19,"async"),c(20,"async"),v("page",function(e){E(l);let r=x();return N(r.channelLogService.onPaginationChange(e))}),o()()}if(i&2){let l,n,e,r,m=x();p(13),O((l=d(15,3,m.channelLogs$))==null?null:l.Data),p(3),h("length",(n=d(17,5,m.channelLogs$))==null?null:n.Count)("pageSize",(e=d(18,7,m.filter$))==null?null:e.RowCount)("pageIndex",(r=d(19,9,m.filter$))!=null&&r.PageNumber?0:((r=d(20,11,m.filter$))==null?null:r.PageNumber)-1)}}function ge(i,t){i&1&&(a(0,"div",9),u(1,"app-empty-state"),o())}var qe=(()=>{let t=class t{constructor(){this.channelLogService=g(b),this.authService=g(ee),this.channelOptions=this.authService.getChannels(),this.channelLogs$=this.channelLogService.log$.pipe(I(n=>(n.Data?n.Data=n.Data.map(e=>(e.Response=e.Response?JSON.parse(e.Response):"",e.Request=e.Request?JSON.parse(e.Request):"",e.Img=Y.getChannelLogoByTypeId(e.TypeID),e)):n.Data=[],n)),M(1)),this.filter$=this.channelLogService.filter$}onSubmitFilter(){this.channelLogService.onFilter({ChannelID:this.channelID})}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=P({type:t,selectors:[["app-channel-log"]],features:[J([b])],decls:15,vars:7,consts:[["headerTitle","Authorization Log",3,"onSubmit","hideSearchBox"],["container",""],[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,"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","table-hover"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],[3,"page","length","pageSize","pageIndex"],[1,"me-2",2,"width","25px",3,"src"],[1,""]],template:function(e,r){if(e&1&&(a(0,"mainpanel",0),v("onSubmit",function(){return r.onSubmitFilter()}),a(1,"filters")(2,"div",1)(3,"div")(4,"label",2),s(5,"Channel"),o(),a(6,"ng-select",3),V("ngModelChange",function(C){return A(r.channelID,C)||(r.channelID=C),C}),B(7,ce,3,3,"ng-template",4),o()()()(),a(8,"content")(9,"div",5)(10,"div",6)(11,"div",7),R(12,he,21,13,"div",8),c(13,"async"),T(14,ge,2,0,"div",9),o()()()()()),e&2){let m;h("hideSearchBox",!0),p(6),h("clearable",!0)("items",r.channelOptions),z("ngModel",r.channelID),p(6),$(((m=d(13,5,r.channelLogs$))==null||m.Data==null?null:m.Data.length)>0?12:14)}},dependencies:[G,le,oe,re,me,pe,ae,ie,te,ne,X,K,Q,k,U,H],encapsulation:2});let i=t;return i})();export{qe as ChannelLogComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as rt}from"./chunk-7KG3DC5J.js";import{b as nt}from"./chunk-
|
|
1
|
+
import{a as rt}from"./chunk-7KG3DC5J.js";import{b as nt}from"./chunk-UDM6UTHY.js";import{e as it}from"./chunk-6KWG6O5L.js";import{a as pt}from"./chunk-K7L2HJWH.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{a as lt}from"./chunk-PDCVMSLL.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-CS6LKY4V.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-AGBJEXIM.js";import{e as et}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{c as tt}from"./chunk-JBEKD57G.js";import{m as ot,n as at}from"./chunk-EDEZ3JLR.js";import{A as Z,h as X,m as Y}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{G as K,I as Q,c as q,i as A,j as J,l as U,m as G}from"./chunk-LNJUGHOX.js";import{$b as g,$c as W,Gb as L,Mc as l,Nc as x,Oc as w,Qc as V,Rc as k,Sc as H,Wc as O,Z as v,_c as z,ad as j,bc as S,ca as D,dc as F,ec as R,f as M,fc as $,gc as d,hc as o,hd as c,ic as a,id as u,jc as N,jd as I,kb as E,lb as P,nb as p,qc as B,ra as b,v as _,vc as T,xa as C,xc as s,ya as h}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var st=(i,r)=>({"bg-gradient-danger":i,"bg-gradient-warning":r}),ct=()=>["/menu/products/status/notification/detail"],mt=i=>({ID:i});function dt(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 ut(i,r){i&1&&l(0," - ")}function ft(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,dt,4,4)(12,ut,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,st,n.Status==1,n.Status==0)),p(2),d("routerLink",z(17,ct))("queryParams",W(18,mt,n.ID)),p(),d("src",O(n.Img),P),p(2),x(n.Name),p(3),x(n.Label),p(),d("innerHTML",n.Message,E),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 _t(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 Ct(i,r){i&1&&g(0,_t,5,8,"div",5),i&2&&S(r.length>0?0:-1)}var Vt=(()=>{let r=class r{constructor(){this.http=b(et),this.notificationService=b(nt),this.filter=new rt,this.destroy$=new M}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe(D(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=tt.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,ft,18,20,"tr",11,F),c(30,"async"),a()()()()(),g(31,Ct,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,Z,X,Y,at,ot,lt,it,Q,K,pt,A,U,J],encapsulation:2});let i=r;return i})();export{Vt as NotificationComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Y}from"./chunk-
|
|
1
|
+
import{a as Y}from"./chunk-K7L2HJWH.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-CS6LKY4V.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import{a as H}from"./chunk-AGBJEXIM.js";import{e as F}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{m as J,n as G}from"./chunk-EDEZ3JLR.js";import{A as j,c as U,h as K,m as R,p as O}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as W,k as D,m as N}from"./chunk-LNJUGHOX.js";import{$b as S,Gb as V,Ha as w,Mc as d,Nc as A,Qc as g,Rc as C,Sc as y,Tc as L,Uc as T,Vc as P,Z as k,bc as x,gc as f,hc as i,hd as b,ic as t,id as B,jc as E,nb as c,qc as M,ra as I,vc as v,xa as m,xc as h,ya as u}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function q(n,a){if(n&1){let p=M();i(0,"input",30),y("ngModelChange",function(o){m(p);let e=h();return C(e.sku,o)||(e.sku=o),u(o)}),t()}if(n&2){let p=h();g("ngModel",p.sku)}}function z(n,a){if(n&1){let p=M();i(0,"input",31),y("ngModelChange",function(o){m(p);let e=h();return C(e.itemId,o)||(e.itemId=o),u(o)}),t()}if(n&2){let p=h();g("ngModel",p.itemId)}}function Q(n,a){if(n&1&&(i(0,"pre",28),d(1),b(2,"json"),t()),n&2){h();let p=P(35);c(),A(B(2,1,p))}}function X(n,a){n&1&&(i(0,"p",29),d(1," Your data will be shown here once it's available "),t())}var me=(()=>{let a=class a{constructor(){this.httpService=I(F),this.selectedChannel=w(null),this.sku=w(null),this.itemId=w(null),this.searchBy="sku"}initProductLog(){let l={ChannelID:this.selectedChannel()};this.searchBy==="sku"?l.SKU=this.sku():l.ItemID=this.itemId(),this.productLog$=this.httpService.post(H.GetProductApiLog,l).pipe(k(1))}copyToClipboard(l){if(!l)return;let o=typeof l=="string"?l:JSON.stringify(l,null,2);navigator.clipboard.writeText(o),alert("Copied to clipboard!")}};a.\u0275fac=function(o){return new(o||a)},a.\u0275cmp=V({type:a,selectors:[["app-product-api"]],decls:50,vars:14,consts:[["headerTitle","Origin Product Api",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-success","btn-fill","me-3",3,"click"],[1,"fa","fa-search"],[1,"container-fluid","mt-8","px-10"],[1,"row"],[1,"col-7"],[1,"d-flex","align-items-center"],[1,"w-75"],[1,"mb-0","text-muted","fst-italic"],[1,"w-100"],[3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center","mt-3"],[1,"mb-2"],[1,"form-check","form-check-inline"],["type","radio","name","searchBy","id","searchBySku",1,"form-check-input",3,"ngModelChange","ngModel","value"],["for","searchBySku",1,"form-check-label"],["type","radio","name","searchBy","id","searchByItemId",1,"form-check-input",3,"ngModelChange","ngModel","value"],["for","searchByItemId",1,"form-check-label"],["type","text","placeholder","Product Code / SKU",1,"form-control","rounded-1",2,"height","40px",3,"ngModel"],["type","text","placeholder","ItemID is Product id from seller center",1,"form-control","rounded-1",2,"height","40px",3,"ngModel"],[1,"row","mt-6"],[1,"col-12"],[1,"card"],[1,"card-header","d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-sm","btn-outline-primary",3,"click","disabled"],[1,"card-body"],[1,"col-sm-12"],[1,"form-group","position-relative"],["id","productLogText"],[1,"text-center","my-12","text-muted"],["type","text","placeholder","Product Code / SKU",1,"form-control","rounded-1",2,"height","40px",3,"ngModelChange","ngModel"],["type","text","placeholder","ItemID is Product id from seller center",1,"form-control","rounded-1",2,"height","40px",3,"ngModelChange","ngModel"]],template:function(o,e){if(o&1){let s=M();i(0,"mainpanel",0)(1,"actions")(2,"button",1),v("click",function(){return m(s),u(e.initProductLog())}),E(3,"i",2),d(4," Search "),t()(),i(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h6"),d(12,"Channel"),t(),i(13,"p",8),d(14," View logs related to Product API Detail "),t()(),i(15,"div",9)(16,"app-channel-options-v2",10),y("ngModelChange",function(r){return m(s),C(e.selectedChannel,r)||(e.selectedChannel=r),u(r)}),t()()(),i(17,"div",11)(18,"div",7)(19,"h6"),d(20,"Product Code / SKU"),t(),i(21,"p",8),d(22," Product SKU or Code from Channel Product "),t()(),i(23,"div",9)(24,"div",12)(25,"div",13)(26,"input",14),y("ngModelChange",function(r){return m(s),C(e.searchBy,r)||(e.searchBy=r),u(r)}),t(),i(27,"label",15),d(28,"Search by SKU"),t()(),i(29,"div",13)(30,"input",16),y("ngModelChange",function(r){return m(s),C(e.searchBy,r)||(e.searchBy=r),u(r)}),t(),i(31,"label",17),d(32,"Search by ItemID"),t()()(),S(33,q,1,1,"input",18),S(34,z,1,1,"input",19),t()()()(),L(35),b(36,"async"),i(37,"div",20)(38,"div",21)(39,"div",22)(40,"div",23)(41,"h5"),d(42,"Response"),t(),i(43,"button",24),v("click",function(){m(s);let r=P(35);return u(e.copyToClipboard(r))}),d(44," Copy "),t()(),i(45,"div",25)(46,"div",26)(47,"div",27),S(48,Q,3,3,"pre",28)(49,X,2,0,"p",29),t()()()()()()()()()}if(o&2){f("hideSearchBox",!0)("hideSearchDropdown",!0),c(16),g("ngModel",e.selectedChannel),c(10),g("ngModel",e.searchBy),f("value","sku"),c(4),g("ngModel",e.searchBy),f("value","itemid"),c(3),x(e.searchBy==="sku"?33:-1),c(),x(e.searchBy==="itemid"?34:-1),c();let s=T(B(36,11,e.productLog$));c(8),f("disabled",!s),c(5),x(s?48:49)}},dependencies:[N,j,U,O,K,R,G,J,Y,W,D],encapsulation:2});let n=a;return n})();export{me as ProductApiComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as de,c as pe}from"./chunk-ILW6ZFFV.js";import{a as ce}from"./chunk-NVVJMZYV.js";import{a as T}from"./chunk-LO7NU25H.js";import{a as se}from"./chunk-S7CKRTJV.js";import{a as ae}from"./chunk-7JQEF4XX.js";import"./chunk-AFIF6VRM.js";import"./chunk-ZW2TMVZP.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-FCEXPGTK.js";import"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import"./chunk-N5AE5WMQ.js";import"./chunk-6OJQRHIZ.js";import{a as me}from"./chunk-K7L2HJWH.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{a as le}from"./chunk-PDCVMSLL.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-CS6LKY4V.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{m as re,n as oe}from"./chunk-EDEZ3JLR.js";import{A as te,c as Y,h as Z,m as $,o as ee}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import{v as ie,w as ne}from"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as K,j as Q,l as U,m as X}from"./chunk-LNJUGHOX.js";import{$b as y,$c as G,Gb as W,Ha as O,Lc as k,Mc as a,Nc as E,Oc as w,Qc as g,Rc as C,Sc as h,Tc as z,Uc as R,Vc as H,Z as F,Zc as j,_c as q,bc as b,cc as D,ec as I,fc as B,gc as v,hc as t,hd as x,ic as i,id as A,jc as _,jd as J,nb as l,qc as V,ra as N,vc as M,xa as c,xc as f,ya as u}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as P,b as L}from"./chunk-66YHNWRR.js";var ue=()=>[],_e=r=>({"td-cell-hover":r});function fe(r,m){if(r&1&&_(0,"variants-dropdown",26),r&2){let e=f().$implicit;v("variants",e==null?null:e.Variants)}}function ge(r,m){if(r&1&&_(0,"variant-with-image",27),r&2){let e=f().$implicit;v("variant",e==null?null:e.Variants[0])}}function Ce(r,m){if(r&1&&(t(0,"span"),a(1),i()),r&2){let e=f().$implicit;l(),w("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function he(r,m){if(r&1&&(t(0,"tr")(1,"td")(2,"div",23)(3,"div"),_(4,"order-link",24),i(),t(5,"small"),a(6),x(7,"date"),i(),_(8,"br"),t(9,"small"),_(10,"i",25),a(11),i()()(),t(12,"td"),y(13,fe,1,1,"variants-dropdown",26)(14,ge,1,1,"variant-with-image",27),i(),t(15,"td"),a(16),x(17,"number"),i(),t(18,"td")(19,"div",23)(20,"div",28)(21,"span"),a(22),i(),y(23,Ce,2,1,"span"),i(),t(24,"small"),a(25),i()()()()),r&2){let e=m.$implicit;l(4),v("order",e),l(2),w(" ",J(7,10,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(5),w(" ",e.Customer," "),l(),k(G(15,_e,(e.Variants==null?null:e.Variants.length)>1)),l(),b((e.Variants==null?null:e.Variants.length)>1?13:14),l(3),E(A(17,13,e.Amount)),l(6),E(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),b(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?23:-1),l(2),w(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function Se(r,m){if(r&1){let e=V();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),a(5,"Number"),i(),t(6,"th"),a(7,"Items"),i(),t(8,"th",21),a(9,"Amount"),i(),t(10,"th",21),a(11,"Shipping"),i()()(),t(12,"tbody"),I(13,he,26,17,"tr",null,D),i()(),t(15,"app-custom-paginator",22),M("next",function(){c(e);let p=f();return u(p.initAllOrders())})("previous",function(){c(e);let p=f();return u(p.initAllOrders())}),i()()}if(r&2){let e=f(),d=H(0);l(13),B(d),l(2),v("filter",e.filter())("totaldata",d==null?null:d.length)}}function ve(r,m){r&1&&(t(0,"div",16),_(1,"app-empty-state"),i())}var qe=(()=>{let m=class m{constructor(){this.orderService=N(T),this.filter=O({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(p=>L(P({},p),{From:d})),this.initAllOrders()}initAllOrders(){this.allOrders$=this.orderService.getAllOrders(this.filter()).pipe(F(1))}};m.\u0275fac=function(p){return new(p||m)},m.\u0275cmp=W({type:m,selectors:[["app-all"]],features:[j([T])],decls:34,vars:12,consts:[["headerTitle","Completed","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-solid","fa-clipboard-list","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","250px"],[2,"width","150px"],["rowCountApi","/api/orders/allcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[2,"font-size","14px",3,"order"],[1,"fa-solid","fa-user"],[3,"variants"],[3,"variant"],[1,"d-flex","align-items-end","gap-2"]],template:function(p,o){if(p&1){let s=V();z(0),x(1,"async"),t(2,"mainpanel",0),M("onSubmit",function(){return c(s),u(o.initAllOrders())}),h("textChange",function(n){return c(s),C(o.filter().Number,n)||(o.filter().Number=n),u(n)}),t(3,"actions")(4,"a",1),_(5,"i",2),t(6,"span"),a(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),a(11,"Channel"),i(),t(12,"app-channel-options-v2",4),h("ngModelChange",function(n){return c(s),C(o.filter().ListChannelID,n)||(o.filter().ListChannelID=n),u(n)}),i()(),t(13,"div",5)(14,"label",3),a(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),h("dateChange",function(n){return c(s),C(o.filter().From,n)||(o.filter().From=n),u(n)}),i()(),t(18,"div")(19,"datepicker",8),h("dateChange",function(n){return c(s),C(o.filter().To,n)||(o.filter().To=n),u(n)}),i()()(),t(20,"div",5)(21,"label",9),a(22,"Page Number"),i(),t(23,"input",10),h("ngModelChange",function(n){return c(s),C(o.filter().PageNumber,n)||(o.filter().PageNumber=n),u(n)}),i()(),t(24,"div",5)(25,"label",9),a(26,"Page Size"),i(),t(27,"input",11),h("ngModelChange",function(n){return c(s),C(o.filter().PageSize,n)||(o.filter().PageSize=n),u(n)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),y(32,Se,16,2,"div",15)(33,ve,2,0,"div",16),i()()()()()}if(p&2){let s=R(A(1,8,o.allOrders$)||q(11,ue));l(2),g("text",o.filter().Number),l(10),v("multiple",!0),g("ngModel",o.filter().ListChannelID),l(5),g("date",o.filter().From),l(2),g("date",o.filter().To),l(4),g("ngModel",o.filter().PageNumber),l(4),g("ngModel",o.filter().PageSize),l(5),b((s==null?null:s.length)>0?32:33)}},dependencies:[X,oe,re,ae,le,te,Y,ee,Z,$,de,pe,se,ne,ie,ce,me,K,U,Q],encapsulation:2});let r=m;return r})();export{qe as AllComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as Ce}from"./chunk-DXYMG6QK.js";import{c as Se}from"./chunk-5BSPSA4O.js";import"./chunk-FULVA6QB.js";import"./chunk-HPINZVE4.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import{a as ne}from"./chunk-ZSUWHVKX.js";import"./chunk-N5AE5WMQ.js";import{a as me,b as pe,d as de,e as ge}from"./chunk-6KWG6O5L.js";import{i as ce}from"./chunk-
|
|
1
|
+
import{b as Ce}from"./chunk-DXYMG6QK.js";import{c as Se}from"./chunk-5BSPSA4O.js";import"./chunk-FULVA6QB.js";import"./chunk-HPINZVE4.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import{a as ne}from"./chunk-ZSUWHVKX.js";import"./chunk-N5AE5WMQ.js";import{a as me,b as pe,d as de,e as ge}from"./chunk-6KWG6O5L.js";import{i as ce}from"./chunk-CS6LKY4V.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import{b as re,e as ae}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{b as g,c as oe}from"./chunk-JBEKD57G.js";import{m as fe,n as _e}from"./chunk-EDEZ3JLR.js";import{A as ie,h as ee,m as te}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{b as se,c as le}from"./chunk-ZETUYNFJ.js";import{v as he,w as ue}from"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{I as L,i as Z,m as y}from"./chunk-LNJUGHOX.js";import{$b as V,$c as Y,Gb as K,Hb as _,Hc as P,Mb as S,Mc as c,Nc as h,Oc as G,Qc as O,Rc as w,Sc as I,Tc as q,Uc as Q,Vc as X,Z as b,aa as F,bc as W,dc as $,ea as R,ec as j,fc as A,gc as p,hc as r,hd as C,ic as s,id as x,jc as H,kd as D,lb as k,na as u,nb as l,nc as z,oc as J,q as B,qc as E,ra as f,v,vc as N,xa as M,xc as m,ya as T}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var ve=t=>[t];function be(t,i){if(t&1&&(r(0,"span",14),H(1,"img",15),s(),r(2,"span"),c(3),s()),t&2){let a=i.item;l(),p("src",a.Img,k)("alt",a.Name),l(2),G(" ",a.Name," ")}}function Me(t,i){if(t&1){let a=E();z(0),q(1),C(2,"async"),r(3,"a",16),N("click",function(){M(a);let e=X(1),o=m();return T(o.submitLogistics(e))}),c(4,"Submit"),s(),J()}if(t&2){let a=m();l(),Q(x(2,0,a.logisticServices$))}}function Te(t,i){}function Ee(t,i){if(t&1){let a=E();r(0,"ng-select",18),I("ngModelChange",function(e){M(a);let o=m(2).$implicit;return w(o.ProductSKU,e)||(o.ProductSKU=e),T(e)}),s()}if(t&2){let a=m(),n=m().$implicit;O("ngModel",n.ProductSKU),p("items",a)}}function Ne(t,i){if(t&1&&(r(0,"span"),c(1),s()),t&2){let a=m(2).$implicit;l(),h(a.ProductSKU||"-")}}function Pe(t,i){if(t&1&&S(0,Te,0,0,"ng-template",17)(1,Ee,1,2,"ng-template",null,0,D)(3,Ne,2,1,"ng-template",null,1,D),t&2){let a=P(2),n=P(4),e=m(2);p("ngxPermissionsOnly",Y(3,ve,e.logisticEditRole))("ngxPermissionsOnlyThen",a)("ngxPermissionsOnlyElse",n)}}function Oe(t,i){if(t&1&&(r(0,"tr")(1,"td"),c(2),s(),r(3,"td"),c(4),s(),r(5,"td"),c(6),s(),r(7,"td"),V(8,Pe,5,5),C(9,"async"),s()()),t&2){let a,n=i.$implicit,e=m();l(2),h(n.Name),l(2),h(n.Service),l(2),h(n.TypeString),l(2),W((a=x(9,4,e.logisticOptions$))?8:-1,a)}}var ye=(()=>{let i=class i{constructor(){this.http=f(ae),this.toastr=f(re),this.authService=f(ce),this.filter={ChannelID:""},this.logisticEditRole=ne.LogisticUpdate,this.channelOptions=this.authService.getChannels(),this.initUnsupportedChannel(),this.initLoader()}initUnsupportedChannel(){let n=[g.WooCommerce,g.Lazada,g.Shopify,g.Plugo,g.Tokopedia];this.channelOptions=this.channelOptions.map(e=>(n.forEach(o=>{e.TypeID===o&&(e.disabled=!0)}),e))}initLoader(){this.http.post("/api/Logistic/Load",{}).subscribe(n=>{this.filter=n.Filter,this.channelName=this.channelOptions[0].Name,this.initLogisticServiceOptions(),this.getLogisticService()})}initLogisticServiceOptions(){this.logisticOptions$=this.http.get("/api/Logistic/OptionLogisticsService").pipe(b(1))}submitLogistics(n){this.clonedLogisticServices$.pipe(v(e=>n.map(o=>(e.findIndex(d=>d.Name===o.Name&&d.ProductSKU==o.ProductSKU)==-1&&(o.IsChange=!0),o))),F(e=>this.http.post("/api/Logistic/Submit",e))).subscribe(()=>{this.toastr.success("Logistic service updated successfully.","Success"),this.getLogisticService()})}getLogisticService(){this.iniTitle(),this.logisticServices$=this.http.post("/api/Logistic/Get",this.filter).pipe(v(n=>n.map(e=>(e.ProductSKU=oe.IsEmpty(e.ProductSKU)?null:e.ProductSKU,e))),R(n=>{let e=JSON.parse(JSON.stringify(n));this.clonedLogisticServices$=B(e)}),b(1))}iniTitle(){let n=this.channelOptions.find(e=>e.ID==this.filter.ChannelID);this.channelName=n?n.Name:null}};i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=K({type:i,selectors:[["app-logistic"]],standalone:!1,decls:29,vars:8,consts:[["thenBlock",""],["elseBlock",""],["hideSearchBox","true","searchBoxPlaceHolder","Enter Number...",3,"onSubmit","headerTitle","hideSearchDropdown"],[1,"mb-2","fw-bold"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[4,"ngxPermissionsOnly"],[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"],[1,"me-2"],[2,"width","18px",3,"src","alt"],["role","button","data-toggle","tooltip","data-placement","top","matTooltip","enter Logistic for recorded",1,"btn","btn-success","btn-fill","btn-lg","text-white",3,"click"],[3,"ngxPermissionsOnly","ngxPermissionsOnlyThen","ngxPermissionsOnlyElse"],["placeholder","Logistic Service Code","bindLabel","Name","bindValue","Code",1,"w-75",3,"ngModelChange","ngModel","items"]],template:function(e,o){e&1&&(r(0,"mainpanel",2),N("onSubmit",function(){return o.getLogisticService()}),r(1,"filters")(2,"div")(3,"label",3),c(4,"Select a Channel"),s(),r(5,"ng-select",4),I("ngModelChange",function(d){return w(o.filter.ChannelID,d)||(o.filter.ChannelID=d),d}),S(6,be,4,3,"ng-template",5),s()()(),r(7,"actions"),S(8,Me,5,3,"ng-container",6),s(),r(9,"content")(10,"div",7)(11,"div",8)(12,"div",9)(13,"div",10)(14,"table",11)(15,"thead",12)(16,"tr",13)(17,"th"),c(18,"Logistic"),s(),r(19,"th"),c(20,"Service"),s(),r(21,"th"),c(22,"Type"),s(),r(23,"th"),c(24,"Logistic Service"),s()()(),r(25,"tbody"),j(26,Oe,10,6,"tr",null,$),C(28,"async"),s()()()()()()()()),e&2&&(p("headerTitle","Logistic Courier - "+o.channelName)("hideSearchDropdown",!1),l(5),p("clearable",!1)("items",o.channelOptions),O("ngModel",o.filter.ChannelID),l(3),p("ngxPermissionsOnly",o.logisticEditRole),l(18),A(x(28,6,o.logisticServices$)))},dependencies:[ee,te,fe,de,me,pe,he,se,Z],encapsulation:2});let t=i;return t})();var we=[{path:"",component:ye}],Le=(()=>{let i=class i{};i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=_({type:i}),i.\u0275inj=u({imports:[y,L.forChild(we)]});let t=i;return t})();var mt=(()=>{let i=class i{};i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=_({type:i}),i.\u0275inj=u({imports:[y,L,Le,ie,_e,ge,Ce,Se,ue,le]});let t=i;return t})();export{mt as LogisticModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as fe,b as be}from"./chunk-S5R6MCNP.js";import{a as xe,b as he}from"./chunk-DXYMG6QK.js";import{b as ue}from"./chunk-QFSA7CU4.js";import{a as ge}from"./chunk-4YCSITNV.js";import{a as M}from"./chunk-ZSUWHVKX.js";import{a as Ce}from"./chunk-6OJQRHIZ.js";import{i as _e}from"./chunk-I723PUUO.js";import{c as R}from"./chunk-JBEKD57G.js";import{d as me,h as pe}from"./chunk-EDEZ3JLR.js";import{A as le,b as ne,h as ie,m as oe}from"./chunk-L3W6SG2T.js";import{a as re,b as ae,c as ce}from"./chunk-ZETUYNFJ.js";import{v as se,w as de}from"./chunk-STYL7ETF.js";import{c as J,h as Q,l as ee,m as te}from"./chunk-LNJUGHOX.js";import{$b as p,$c as T,G as A,Gb as Z,Ha as $,Hc as W,Mb as h,Mc as m,Nc as V,Oc as v,Qc as k,Rc as O,Sc as D,Wc as K,ad as X,bc as g,ca as H,cc as E,dc as q,ec as F,f as z,fc as I,gc as s,hc as c,hd as N,ic as _,id as j,jc as P,jd as Y,kd as G,lb as w,nb as a,pc as L,qc as f,ra as S,sb as B,td as y,vc as b,xa as u,xc as o,ya as C}from"./chunk-ZYJ6LAJ3.js";var U=t=>[t],Te=t=>({"text-decoration-line-through":t}),ve=t=>({"text-danger":t}),ye=(t,r)=>({"bg-gradient-warning":t,"cell-hover pointer":r});function Se(t,r){if(t&1){let e=f();c(0,"mat-slide-toggle",10),b("toggleChange",function(){u(e);let n=o();return n.toggleStatus=!n.toggleStatus,C(n.onToggle())}),c(1,"small",11),m(2),_()()}if(t&2){let e=o();a(2),v(" ",e.productToggleTitle?e.productToggleTitle:"FILTER DIFFERENT INVENTORY"," ")}}function we(t,r){if(t&1){let e=f();c(0,"th")(1,"input",13),D("ngModelChange",function(n){u(e);let l=o(2);return O(l.checkboxState,n)||(l.checkboxState=n),C(n)}),b("ngModelChange",function(){u(e);let n=o(2);return C(n.onCheckboxStateChange())}),_()()}if(t&2){let e=o(2);a(),k("ngModel",e.checkboxState)}}function Fe(t,r){if(t&1&&(h(0,we,2,1,"ng-template",12),c(1,"th",8),m(2,"POS"),_()),t&2){let e=o();s("ngxPermissionsOnly",T(1,U,e.rolePriceEdit))}}function Ie(t,r){if(t&1&&(c(0,"th",9)(1,"div",14)(2,"div",15),P(3,"img",16),c(4,"div",17),m(5),N(6,"stringLimit"),_()()()()),t&2){let e=r.$implicit;a(2),s("matTooltip",(e.Name==null?null:e.Name.length)>20?e.Name:""),a(),s("src",e==null?null:e.Img,w),a(2),v(" ",Y(6,3,e.Name,20)," ")}}function Pe(t,r){t&1&&L(0)}function Me(t,r){if(t&1&&h(0,Pe,1,0,"ng-container",29),t&2){o(2);let e=W(5);s("ngTemplateOutlet",e)}}function Ee(t,r){if(t&1&&h(0,Me,1,1,"ng-template",12),t&2){let e=o(4);s("ngxPermissionsOnly",T(1,U,e.roleInventoryUpdate))}}function Ve(t,r){t&1&&L(0)}function ke(t,r){if(t&1&&h(0,Ve,1,0,"ng-container",29),t&2){o(2);let e=W(5);s("ngTemplateOutlet",e)}}function Oe(t,r){if(t&1&&h(0,ke,1,1,"ng-template",12),t&2){let e=o(4);s("ngxPermissionsOnly",T(1,U,e.rolePriceEdit))}}function De(t,r){if(t&1){let e=f();c(0,"div")(1,"input",30),D("ngModelChange",function(n){u(e);let l=o(4).$implicit;return O(l.selected,n)||(l.selected=n),C(n)}),b("ngModelChange",function(){u(e);let n=o(4).$implicit,l=o();return C(l.onCheckboxStateProduct(n.ID))}),_()()}if(t&2){let e=o(4).$implicit;a(),k("ngModel",e.selected),s("disabled",!(e!=null&&e.Category))}}function Ne(t,r){if(t&1&&p(0,De,2,2,"div"),t&2){let e=o(3).$implicit;g((e==null||e.Variants==null?null:e.Variants.length)>1?0:-1)}}function Ue(t,r){if(t&1){let e=f();c(0,"img",31),b("click",function(n){u(e);let l=o(3).$implicit,d=o();return C(d.onZoomImage(n,l==null?null:l.ImageUrl))}),_()}if(t&2){let e=o(3).$implicit;s("src",K(e==null?null:e.ThumbnailUrl),w)}}function $e(t,r){t&1&&P(0,"img",26)}function Be(t,r){if(t&1&&(c(0,"td",23)(1,"div",24),p(2,Ee,1,3,null,12)(3,Oe,1,3,null,12),h(4,Ne,1,1,"ng-template",null,0,G),c(6,"div"),p(7,Ue,1,2,"img",25)(8,$e,1,0,"img",26),_()()(),c(9,"td",27)(10,"div"),m(11),_(),c(12,"small",28),m(13),_()()),t&2){let e=o(2).$implicit,i=o();s("rowSpan",e==null?null:e.Variants.length),a(2),g(i.table()=="inventory"?2:3),a(5),g(e!=null&&e.ThumbnailUrl?7:8),a(2),s("rowSpan",e==null?null:e.Variants.length),a(2),V(e==null?null:e.Name),a(),s("ngClass",T(7,ve,!(e!=null&&e.Category))),a(),v("(",e!=null&&e.Category?e==null?null:e.Category:"Not Found In POS",")")}}function Le(t,r){if(t&1&&(c(0,"a",22),P(1,"i",32),_()),t&2){let e=o().$implicit,i=o(2);s("href",i.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),w)}}function We(t,r){if(t&1){let e=f();c(0,"input",35),D("ngModelChange",function(n){u(e);let l=o(3).$implicit;return O(l.selected,n)||(l.selected=n),C(n)}),_()}if(t&2){let e=o(3).$implicit,i=o().$implicit;k("ngModel",e.selected),s("disabled",!(i!=null&&i.Category))}}function je(t,r){if(t&1&&(c(0,"td",33),p(1,We,1,2,"input",34),_()),t&2){let e=o(2).$implicit,i=o(2);a(),g(i.printPOS(e)>=0||i.table()=="price"?1:-1)}}function Re(t,r){if(t&1&&(h(0,je,2,1,"ng-template",12),c(1,"td",19),m(2),N(3,"number"),_()),t&2){let e=o().$implicit,i=o(2);s("ngxPermissionsOnly",T(4,U,i.rolePriceEdit)),a(2),V(j(3,2,i.printPOS(e)))}}function ze(t,r){if(t&1){let e=f();c(0,"td",38),b("click",function(){u(e);let n=o().$implicit,l=o().$implicit,d=o().$implicit,x=o();return C(x.onUpdateData(d.Name,l,n.ID,d.ChannelItemID))}),c(1,"div",39)(2,"div",40),m(3),N(4,"number"),_(),c(5,"a",41),b("click",function(n){return u(e),C(n==null?null:n.stopPropagation())}),P(6,"i",32),_()()()}if(t&2){let e=r,i=o(2).$implicit,n=o(2);s("ngClass",X(5,ye,n.printPOS(i)!=n.printItem(e)&&n.hiddenIPOSInventory()==!1,n.hasPriceEdit()&&n.table()=="price"||n.hasInventoryEdit()&&n.table()=="inventory")),a(3),v(" ",j(4,3,n.printItem(e))," "),a(2),s("href",e.Url,w)}}function Ae(t,r){t&1&&(c(0,"td",37)(1,"div",39)(2,"span"),m(3,"X"),_()()())}function He(t,r){if(t&1&&p(0,ze,7,8,"td",36)(1,Ae,4,0,"td",37),t&2){let e,i=r.$implicit,n=o().$implicit,l=o(2);g((e=l.getItemFromChannel(n,i))?0:1,e)}}function Ze(t,r){if(t&1&&(c(0,"tr"),p(1,Be,14,9),c(2,"td",18),m(3),_(),c(4,"td",19)(5,"div",20)(6,"div",21),m(7),_(),c(8,"div",17),p(9,Le,2,1,"a",22),_()()(),p(10,Re,4,6),F(11,He,2,1,null,null,E),_()),t&2){let e=r.$implicit,i=r.$index,n=o().$implicit,l=o();a(),g(i==0?1:-1),a(2),V(e==null?null:e.Model),a(2),s("matTooltip",e.Discontinued?l.discontinuedVariantMsg:""),a(),s("ngClass",T(7,Te,e.Discontinued)),a(),v(" ",e.Code," "),a(2),g(n.Category?9:-1),a(),g(l.hiddenIPOSInventory()==!1?10:-1),a(),I(l.channel())}}function qe(t,r){if(t&1&&(c(0,"tbody"),F(1,Ze,13,9,"tr",null,E),_()),t&2){let e=r.$implicit;a(),I(e.Variants)}}var ft=(()=>{let r=class r{constructor(){this.dialog=S(me),this.biggerPictureService=S(Ce),this.authService=S(_e),this.permissionsService=S(re),this.table=y(void 0),this.channel=y(void 0),this.showProductToggle=y(!1),this.multiwarehouse=y(!1),this.hiddenIPOSInventory=y(!1),this.toggleStatus=!1,this.checkboxState=!1,this.rolePriceEdit=M.PriceUpdate,this.roleInventoryUpdate=M.InventoryUpdate,this.hasPriceEdit=$(!1),this.hasInventoryEdit=$(!1),this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.onSubmit=new B,this.destroy$=new z,this.toggle=new B,this.hostName=this.authService.getDomain()}ngOnInit(){this.initRoles();let i=this.table();i=="inventory"?this.stockHeader="Stock":i=="price"&&(this.stockHeader="Price")}initRoles(){this.permissionsService.hasPermission(M.InventoryUpdate).then(i=>this.hasInventoryEdit.set(i)),this.permissionsService.hasPermission(M.PriceUpdate).then(i=>this.hasPriceEdit.set(i))}onCheckboxStateProduct(i){let n=this.data.filter(l=>l.ID==i);n.length>0&&(n=n.map(l=>(l.Variants=l.Variants.map(d=>(d.selected=l.selected,d)),l)))}onCheckboxStateChange(){this.data=this.data.map(i=>(i.Variants=i.Variants.map(n=>(n.selected=this.checkboxState,n)),i))}getItemFromChannel(i,n){return i.Channel.find(d=>R.IsNotEmpty(n.LocationID)?d.LocationID==n.LocationID:d.ChannelID==n.ID)}printItem(i){let n=this.table();if(n=="inventory")return i.Inventory;if(n=="price")return i.Price}onUpdateData(i,n,l,d){let x=this.table();this.hasPriceEdit()&&x=="price"&&this.onOpenDialogUpdate(i,n,l,d),this.hasInventoryEdit()&&x=="inventory"&&this.onOpenDialogUpdate(i,n,l,d)}onOpenDialogUpdate(i,n,l,d){this.dialog.open(fe,{data:{Name:i,Variant:n,ChannelID:l,Table:this.table(),ChannelItemID:d}}).afterClosed().pipe(A(x=>R.IsNotEmpty(x)),H(this.destroy$)).subscribe(x=>{this.onSubmit.emit(x)})}printPOS(i){let n=this.table();return n=="inventory"?i.Inventory?i.Inventory:0:n=="price"?i.UnitPrice:null}onToggle(){this.toggle.emit(this.toggleStatus)}onZoomImage(i,n){this.biggerPictureService.openBiggerPicture(i,n)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=Z({type:r,selectors:[["app-table"]],inputs:{data:"data",table:[1,"table"],channel:[1,"channel"],showProductToggle:[1,"showProductToggle"],productToggleTitle:"productToggleTitle",multiwarehouse:[1,"multiwarehouse"],hiddenIPOSInventory:[1,"hiddenIPOSInventory"]},outputs:{onSubmit:"onSubmit",toggle:"onToggle"},decls:18,vars:2,consts:[["checkbox_update",""],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","w-25"],[1,"w-100"],[2,"width","200px"],["scope","col",1,"text-start","w-20"],["scope","col",1,"text-end","w-10"],["scope","col"],[2,"width","200px",3,"toggleChange"],[1,"fw-bold"],[3,"ngxPermissionsOnly"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"w-100","d-flex","align-items-center","justify-content-center"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-center",2,"width","180px",3,"matTooltip"],[2,"width","16px","height","16px",3,"src"],[1,"ms-2"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-end",3,"matTooltip"],[3,"ngClass"],["target","_blank",3,"href"],[1,"text-center",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-end"],[1,"border","rounded","w-img","cursor-pointer",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[1,"text-start",2,"padding-left","0px",3,"rowSpan"],[1,"mt-1",3,"ngClass"],[4,"ngTemplateOutlet"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel","disabled"],[1,"border","rounded","w-img","cursor-pointer",3,"click","src"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"align-middle"],["type","checkbox",3,"ngModel","disabled"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"p-0",3,"ngClass"],[1,"table-white","text-center",2,"color","red"],[1,"p-0",3,"click","ngClass"],[1,"d-flex","align-items-center","justify-content-center"],[1,"me-2","mt-1"],["target","_blank",3,"click","href"]],template:function(n,l){n&1&&(c(0,"div",1)(1,"table",2)(2,"thead",3)(3,"tr")(4,"th",4)(5,"div",5)(6,"div"),m(7,"Product"),_(),p(8,Se,3,1,"mat-slide-toggle",6),_()(),c(9,"th",7),m(10,"Variant"),_(),c(11,"th",8),m(12,"SKU"),_(),p(13,Fe,3,3),F(14,Ie,7,6,"th",9,q),_()(),F(16,qe,3,0,"tbody",null,E),_()()),n&2&&(a(8),g(l.showProductToggle()?8:-1),a(5),g(l.hiddenIPOSInventory()==!1?13:-1),a(),I(l.channel()),a(2),I(l.data))},dependencies:[te,J,Q,le,ne,ie,oe,he,xe,pe,ge,ue,ce,ae,de,se,ee,be],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-20[_ngcontent-%COMP%]{width:20%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}.text-wrapping[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:88px}.cell-hover[_ngcontent-%COMP%]{width:400px!important}"]});let t=r;return t})();export{ft as a};
|
|
1
|
+
import{a as fe,b as be}from"./chunk-S5R6MCNP.js";import{a as xe,b as he}from"./chunk-DXYMG6QK.js";import{b as ue}from"./chunk-QFSA7CU4.js";import{a as ge}from"./chunk-4YCSITNV.js";import{a as M}from"./chunk-ZSUWHVKX.js";import{a as Ce}from"./chunk-6OJQRHIZ.js";import{i as _e}from"./chunk-CS6LKY4V.js";import{c as R}from"./chunk-JBEKD57G.js";import{d as me,h as pe}from"./chunk-EDEZ3JLR.js";import{A as le,b as ne,h as ie,m as oe}from"./chunk-L3W6SG2T.js";import{a as re,b as ae,c as ce}from"./chunk-ZETUYNFJ.js";import{v as se,w as de}from"./chunk-STYL7ETF.js";import{c as J,h as Q,l as ee,m as te}from"./chunk-LNJUGHOX.js";import{$b as p,$c as T,G as A,Gb as Z,Ha as $,Hc as W,Mb as h,Mc as m,Nc as V,Oc as v,Qc as k,Rc as O,Sc as D,Wc as K,ad as X,bc as g,ca as H,cc as E,dc as q,ec as F,f as z,fc as I,gc as s,hc as c,hd as N,ic as _,id as j,jc as P,jd as Y,kd as G,lb as w,nb as a,pc as L,qc as f,ra as S,sb as B,td as y,vc as b,xa as u,xc as o,ya as C}from"./chunk-ZYJ6LAJ3.js";var U=t=>[t],Te=t=>({"text-decoration-line-through":t}),ve=t=>({"text-danger":t}),ye=(t,r)=>({"bg-gradient-warning":t,"cell-hover pointer":r});function Se(t,r){if(t&1){let e=f();c(0,"mat-slide-toggle",10),b("toggleChange",function(){u(e);let n=o();return n.toggleStatus=!n.toggleStatus,C(n.onToggle())}),c(1,"small",11),m(2),_()()}if(t&2){let e=o();a(2),v(" ",e.productToggleTitle?e.productToggleTitle:"FILTER DIFFERENT INVENTORY"," ")}}function we(t,r){if(t&1){let e=f();c(0,"th")(1,"input",13),D("ngModelChange",function(n){u(e);let l=o(2);return O(l.checkboxState,n)||(l.checkboxState=n),C(n)}),b("ngModelChange",function(){u(e);let n=o(2);return C(n.onCheckboxStateChange())}),_()()}if(t&2){let e=o(2);a(),k("ngModel",e.checkboxState)}}function Fe(t,r){if(t&1&&(h(0,we,2,1,"ng-template",12),c(1,"th",8),m(2,"POS"),_()),t&2){let e=o();s("ngxPermissionsOnly",T(1,U,e.rolePriceEdit))}}function Ie(t,r){if(t&1&&(c(0,"th",9)(1,"div",14)(2,"div",15),P(3,"img",16),c(4,"div",17),m(5),N(6,"stringLimit"),_()()()()),t&2){let e=r.$implicit;a(2),s("matTooltip",(e.Name==null?null:e.Name.length)>20?e.Name:""),a(),s("src",e==null?null:e.Img,w),a(2),v(" ",Y(6,3,e.Name,20)," ")}}function Pe(t,r){t&1&&L(0)}function Me(t,r){if(t&1&&h(0,Pe,1,0,"ng-container",29),t&2){o(2);let e=W(5);s("ngTemplateOutlet",e)}}function Ee(t,r){if(t&1&&h(0,Me,1,1,"ng-template",12),t&2){let e=o(4);s("ngxPermissionsOnly",T(1,U,e.roleInventoryUpdate))}}function Ve(t,r){t&1&&L(0)}function ke(t,r){if(t&1&&h(0,Ve,1,0,"ng-container",29),t&2){o(2);let e=W(5);s("ngTemplateOutlet",e)}}function Oe(t,r){if(t&1&&h(0,ke,1,1,"ng-template",12),t&2){let e=o(4);s("ngxPermissionsOnly",T(1,U,e.rolePriceEdit))}}function De(t,r){if(t&1){let e=f();c(0,"div")(1,"input",30),D("ngModelChange",function(n){u(e);let l=o(4).$implicit;return O(l.selected,n)||(l.selected=n),C(n)}),b("ngModelChange",function(){u(e);let n=o(4).$implicit,l=o();return C(l.onCheckboxStateProduct(n.ID))}),_()()}if(t&2){let e=o(4).$implicit;a(),k("ngModel",e.selected),s("disabled",!(e!=null&&e.Category))}}function Ne(t,r){if(t&1&&p(0,De,2,2,"div"),t&2){let e=o(3).$implicit;g((e==null||e.Variants==null?null:e.Variants.length)>1?0:-1)}}function Ue(t,r){if(t&1){let e=f();c(0,"img",31),b("click",function(n){u(e);let l=o(3).$implicit,d=o();return C(d.onZoomImage(n,l==null?null:l.ImageUrl))}),_()}if(t&2){let e=o(3).$implicit;s("src",K(e==null?null:e.ThumbnailUrl),w)}}function $e(t,r){t&1&&P(0,"img",26)}function Be(t,r){if(t&1&&(c(0,"td",23)(1,"div",24),p(2,Ee,1,3,null,12)(3,Oe,1,3,null,12),h(4,Ne,1,1,"ng-template",null,0,G),c(6,"div"),p(7,Ue,1,2,"img",25)(8,$e,1,0,"img",26),_()()(),c(9,"td",27)(10,"div"),m(11),_(),c(12,"small",28),m(13),_()()),t&2){let e=o(2).$implicit,i=o();s("rowSpan",e==null?null:e.Variants.length),a(2),g(i.table()=="inventory"?2:3),a(5),g(e!=null&&e.ThumbnailUrl?7:8),a(2),s("rowSpan",e==null?null:e.Variants.length),a(2),V(e==null?null:e.Name),a(),s("ngClass",T(7,ve,!(e!=null&&e.Category))),a(),v("(",e!=null&&e.Category?e==null?null:e.Category:"Not Found In POS",")")}}function Le(t,r){if(t&1&&(c(0,"a",22),P(1,"i",32),_()),t&2){let e=o().$implicit,i=o(2);s("href",i.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),w)}}function We(t,r){if(t&1){let e=f();c(0,"input",35),D("ngModelChange",function(n){u(e);let l=o(3).$implicit;return O(l.selected,n)||(l.selected=n),C(n)}),_()}if(t&2){let e=o(3).$implicit,i=o().$implicit;k("ngModel",e.selected),s("disabled",!(i!=null&&i.Category))}}function je(t,r){if(t&1&&(c(0,"td",33),p(1,We,1,2,"input",34),_()),t&2){let e=o(2).$implicit,i=o(2);a(),g(i.printPOS(e)>=0||i.table()=="price"?1:-1)}}function Re(t,r){if(t&1&&(h(0,je,2,1,"ng-template",12),c(1,"td",19),m(2),N(3,"number"),_()),t&2){let e=o().$implicit,i=o(2);s("ngxPermissionsOnly",T(4,U,i.rolePriceEdit)),a(2),V(j(3,2,i.printPOS(e)))}}function ze(t,r){if(t&1){let e=f();c(0,"td",38),b("click",function(){u(e);let n=o().$implicit,l=o().$implicit,d=o().$implicit,x=o();return C(x.onUpdateData(d.Name,l,n.ID,d.ChannelItemID))}),c(1,"div",39)(2,"div",40),m(3),N(4,"number"),_(),c(5,"a",41),b("click",function(n){return u(e),C(n==null?null:n.stopPropagation())}),P(6,"i",32),_()()()}if(t&2){let e=r,i=o(2).$implicit,n=o(2);s("ngClass",X(5,ye,n.printPOS(i)!=n.printItem(e)&&n.hiddenIPOSInventory()==!1,n.hasPriceEdit()&&n.table()=="price"||n.hasInventoryEdit()&&n.table()=="inventory")),a(3),v(" ",j(4,3,n.printItem(e))," "),a(2),s("href",e.Url,w)}}function Ae(t,r){t&1&&(c(0,"td",37)(1,"div",39)(2,"span"),m(3,"X"),_()()())}function He(t,r){if(t&1&&p(0,ze,7,8,"td",36)(1,Ae,4,0,"td",37),t&2){let e,i=r.$implicit,n=o().$implicit,l=o(2);g((e=l.getItemFromChannel(n,i))?0:1,e)}}function Ze(t,r){if(t&1&&(c(0,"tr"),p(1,Be,14,9),c(2,"td",18),m(3),_(),c(4,"td",19)(5,"div",20)(6,"div",21),m(7),_(),c(8,"div",17),p(9,Le,2,1,"a",22),_()()(),p(10,Re,4,6),F(11,He,2,1,null,null,E),_()),t&2){let e=r.$implicit,i=r.$index,n=o().$implicit,l=o();a(),g(i==0?1:-1),a(2),V(e==null?null:e.Model),a(2),s("matTooltip",e.Discontinued?l.discontinuedVariantMsg:""),a(),s("ngClass",T(7,Te,e.Discontinued)),a(),v(" ",e.Code," "),a(2),g(n.Category?9:-1),a(),g(l.hiddenIPOSInventory()==!1?10:-1),a(),I(l.channel())}}function qe(t,r){if(t&1&&(c(0,"tbody"),F(1,Ze,13,9,"tr",null,E),_()),t&2){let e=r.$implicit;a(),I(e.Variants)}}var ft=(()=>{let r=class r{constructor(){this.dialog=S(me),this.biggerPictureService=S(Ce),this.authService=S(_e),this.permissionsService=S(re),this.table=y(void 0),this.channel=y(void 0),this.showProductToggle=y(!1),this.multiwarehouse=y(!1),this.hiddenIPOSInventory=y(!1),this.toggleStatus=!1,this.checkboxState=!1,this.rolePriceEdit=M.PriceUpdate,this.roleInventoryUpdate=M.InventoryUpdate,this.hasPriceEdit=$(!1),this.hasInventoryEdit=$(!1),this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.onSubmit=new B,this.destroy$=new z,this.toggle=new B,this.hostName=this.authService.getDomain()}ngOnInit(){this.initRoles();let i=this.table();i=="inventory"?this.stockHeader="Stock":i=="price"&&(this.stockHeader="Price")}initRoles(){this.permissionsService.hasPermission(M.InventoryUpdate).then(i=>this.hasInventoryEdit.set(i)),this.permissionsService.hasPermission(M.PriceUpdate).then(i=>this.hasPriceEdit.set(i))}onCheckboxStateProduct(i){let n=this.data.filter(l=>l.ID==i);n.length>0&&(n=n.map(l=>(l.Variants=l.Variants.map(d=>(d.selected=l.selected,d)),l)))}onCheckboxStateChange(){this.data=this.data.map(i=>(i.Variants=i.Variants.map(n=>(n.selected=this.checkboxState,n)),i))}getItemFromChannel(i,n){return i.Channel.find(d=>R.IsNotEmpty(n.LocationID)?d.LocationID==n.LocationID:d.ChannelID==n.ID)}printItem(i){let n=this.table();if(n=="inventory")return i.Inventory;if(n=="price")return i.Price}onUpdateData(i,n,l,d){let x=this.table();this.hasPriceEdit()&&x=="price"&&this.onOpenDialogUpdate(i,n,l,d),this.hasInventoryEdit()&&x=="inventory"&&this.onOpenDialogUpdate(i,n,l,d)}onOpenDialogUpdate(i,n,l,d){this.dialog.open(fe,{data:{Name:i,Variant:n,ChannelID:l,Table:this.table(),ChannelItemID:d}}).afterClosed().pipe(A(x=>R.IsNotEmpty(x)),H(this.destroy$)).subscribe(x=>{this.onSubmit.emit(x)})}printPOS(i){let n=this.table();return n=="inventory"?i.Inventory?i.Inventory:0:n=="price"?i.UnitPrice:null}onToggle(){this.toggle.emit(this.toggleStatus)}onZoomImage(i,n){this.biggerPictureService.openBiggerPicture(i,n)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=Z({type:r,selectors:[["app-table"]],inputs:{data:"data",table:[1,"table"],channel:[1,"channel"],showProductToggle:[1,"showProductToggle"],productToggleTitle:"productToggleTitle",multiwarehouse:[1,"multiwarehouse"],hiddenIPOSInventory:[1,"hiddenIPOSInventory"]},outputs:{onSubmit:"onSubmit",toggle:"onToggle"},decls:18,vars:2,consts:[["checkbox_update",""],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","w-25"],[1,"w-100"],[2,"width","200px"],["scope","col",1,"text-start","w-20"],["scope","col",1,"text-end","w-10"],["scope","col"],[2,"width","200px",3,"toggleChange"],[1,"fw-bold"],[3,"ngxPermissionsOnly"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"w-100","d-flex","align-items-center","justify-content-center"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-center",2,"width","180px",3,"matTooltip"],[2,"width","16px","height","16px",3,"src"],[1,"ms-2"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-end",3,"matTooltip"],[3,"ngClass"],["target","_blank",3,"href"],[1,"text-center",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-end"],[1,"border","rounded","w-img","cursor-pointer",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[1,"text-start",2,"padding-left","0px",3,"rowSpan"],[1,"mt-1",3,"ngClass"],[4,"ngTemplateOutlet"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel","disabled"],[1,"border","rounded","w-img","cursor-pointer",3,"click","src"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"align-middle"],["type","checkbox",3,"ngModel","disabled"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"p-0",3,"ngClass"],[1,"table-white","text-center",2,"color","red"],[1,"p-0",3,"click","ngClass"],[1,"d-flex","align-items-center","justify-content-center"],[1,"me-2","mt-1"],["target","_blank",3,"click","href"]],template:function(n,l){n&1&&(c(0,"div",1)(1,"table",2)(2,"thead",3)(3,"tr")(4,"th",4)(5,"div",5)(6,"div"),m(7,"Product"),_(),p(8,Se,3,1,"mat-slide-toggle",6),_()(),c(9,"th",7),m(10,"Variant"),_(),c(11,"th",8),m(12,"SKU"),_(),p(13,Fe,3,3),F(14,Ie,7,6,"th",9,q),_()(),F(16,qe,3,0,"tbody",null,E),_()()),n&2&&(a(8),g(l.showProductToggle()?8:-1),a(5),g(l.hiddenIPOSInventory()==!1?13:-1),a(),I(l.channel()),a(2),I(l.data))},dependencies:[te,J,Q,le,ne,ie,oe,he,xe,pe,ge,ue,ce,ae,de,se,ee,be],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-20[_ngcontent-%COMP%]{width:20%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}.text-wrapping[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:88px}.cell-hover[_ngcontent-%COMP%]{width:400px!important}"]});let t=r;return t})();export{ft as a};
|