marketplacepos 5.48.2 → 5.48.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/{chunk-H7GV5SNI.js → chunk-2XYIINPQ.js} +1 -1
- package/Marketplace/{chunk-CAZ7U2IL.js → chunk-4JRHCYVO.js} +1 -1
- package/Marketplace/{chunk-6OIMOM7S.js → chunk-4UPWMQJX.js} +1 -1
- package/Marketplace/{chunk-ADKAX3OO.js → chunk-5NFLGFHD.js} +1 -1
- package/Marketplace/{chunk-Y77WYZ6Y.js → chunk-5QQCKNH2.js} +1 -1
- package/Marketplace/{chunk-XK4RP5MQ.js → chunk-6FAJM27Z.js} +1 -1
- package/Marketplace/{chunk-ALPG22RQ.js → chunk-77NAUG5Y.js} +1 -1
- package/Marketplace/{chunk-HKHNRMPT.js → chunk-7CYONN5M.js} +1 -1
- package/Marketplace/{chunk-FRZCC6KZ.js → chunk-A62IPN6W.js} +1 -1
- package/Marketplace/{chunk-5KYN6Y7M.js → chunk-B5AYTAZQ.js} +1 -1
- package/Marketplace/{chunk-SZVL42NR.js → chunk-BNAARI67.js} +1 -1
- package/Marketplace/{chunk-KZSTYKIP.js → chunk-BTSGHYIF.js} +1 -1
- package/Marketplace/{chunk-UCEZJNIL.js → chunk-BUY4AAHK.js} +1 -1
- package/Marketplace/{chunk-CLQGGKN6.js → chunk-DCAYH4J7.js} +1 -1
- package/Marketplace/{chunk-B6F5PDL5.js → chunk-F7I7HQGQ.js} +1 -1
- package/Marketplace/chunk-F7JWZJVZ.js +1 -0
- package/Marketplace/{chunk-PLLHTY6O.js → chunk-FQQOS3AF.js} +1 -1
- package/Marketplace/{chunk-M65Z55OS.js → chunk-GFVJVBGH.js} +1 -1
- package/Marketplace/{chunk-RCBY7EIY.js → chunk-GWYT3CQM.js} +1 -1
- package/Marketplace/{chunk-AEVLZ7NS.js → chunk-HANPHNZU.js} +1 -1
- package/Marketplace/{chunk-7SB4C4PT.js → chunk-HCR33US3.js} +1 -1
- package/Marketplace/{chunk-I723PUUO.js → chunk-HF4T6G54.js} +1 -1
- package/Marketplace/{chunk-QCV5XC3U.js → chunk-HUZZJ34K.js} +2 -2
- package/Marketplace/{chunk-CBU473N2.js → chunk-IFP44BTX.js} +1 -1
- package/Marketplace/chunk-IGS6BEII.js +1 -0
- package/Marketplace/{chunk-3JYZF65T.js → chunk-KNPQ6DPC.js} +1 -1
- package/Marketplace/{chunk-UBTALPOC.js → chunk-KOQGQF2L.js} +1 -1
- package/Marketplace/{chunk-KSVJCX2D.js → chunk-M2FDHHOH.js} +1 -1
- package/Marketplace/chunk-MQRQ3LOB.js +1 -0
- package/Marketplace/{chunk-TIIGDXIJ.js → chunk-NN6DSN34.js} +2 -2
- package/Marketplace/{chunk-2IASUYTM.js → chunk-OR34CB7O.js} +1 -1
- package/Marketplace/{chunk-7DT7FQ2T.js → chunk-PHTDDNER.js} +1 -1
- package/Marketplace/{chunk-5CHTDUME.js → chunk-PL2WVYMI.js} +1 -1
- package/Marketplace/{chunk-DH5CXAEM.js → chunk-QMC2DZIB.js} +1 -1
- package/Marketplace/{chunk-PZKN5FIT.js → chunk-QQY7JGZW.js} +1 -1
- package/Marketplace/{chunk-ZUL6ZHSW.js → chunk-SZVJOKAX.js} +1 -1
- package/Marketplace/{chunk-J6BQDYXO.js → chunk-U6KJZIHD.js} +1 -1
- package/Marketplace/{chunk-GVI6GJHY.js → chunk-WFXKYFBX.js} +1 -1
- package/Marketplace/{chunk-C6JHPCLF.js → chunk-WPKFNEM6.js} +1 -1
- package/Marketplace/{chunk-FCFCTT5A.js → chunk-X2RNU4B3.js} +1 -1
- package/Marketplace/{chunk-3K2EKA5O.js → chunk-X7JNYYQS.js} +1 -1
- package/Marketplace/{chunk-MKADKY44.js → chunk-XMN2RKK3.js} +1 -1
- package/Marketplace/{chunk-IDH7MCR3.js → chunk-YF56YLYK.js} +1 -1
- package/Marketplace/chunk-YLQKFPMU.js +1 -0
- package/Marketplace/chunk-YN55P3QH.js +1 -0
- package/Marketplace/{chunk-GX6JPDQ5.js → chunk-YQWENM2M.js} +1 -1
- package/Marketplace/{chunk-LABF6W37.js → chunk-Z5D5R7AO.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-YJKBQ3LW.js → main-BI4BOJO4.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 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-HF4T6G54.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 +1 @@
|
|
|
1
|
-
import{a as b,b as st}from"./chunk-VWX2IX64.js";import"./chunk-BKR7YPEW.js";import{a as ct}from"./chunk-
|
|
1
|
+
import{a as b,b as st}from"./chunk-VWX2IX64.js";import"./chunk-BKR7YPEW.js";import{a as ct}from"./chunk-B5AYTAZQ.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-HF4T6G54.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 at,n as rt}from"./chunk-EDEZ3JLR.js";import{A as ot,h as it,m as nt}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{G as tt,I as et,c as Y,i as G,j as Q,l as X,m as Z}from"./chunk-LNJUGHOX.js";import{$b as f,$c as z,Gb as T,Ha as w,Lc as $,Mc as n,Nc as x,Oc as C,Pc as O,Qc as H,Rc as J,Sc as W,Tc as q,Z as P,Zc as A,_c as j,ad as K,bc as _,bd as U,cc as L,dc as k,ec as I,fc as N,gc as m,hc as e,hd as v,ic as i,id as y,jc as B,jd as D,lb as M,nb as l,qc as R,ra as F,v as E,vc as V,xa as p,xc as S,ya as u}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var dt=(t,o)=>({"bg-gradient-danger":t,"bg-gradient-warning":o}),mt=()=>["/menu/products/status/notificationV2/detailV2"],pt=t=>({ID:t}),ut=(t,o,a)=>({"text-warning":t,"text-success":o,"text-danger":a});function ft(t,o){t&1&&(e(0,"div"),n(1," Scan in progress. You will be notified once it is complete. "),i())}function _t(t,o){if(t&1&&(e(0,"div"),n(1),v(2,"number"),i()),t&2){let a=o.$implicit;l(),O(" ",a.Key,": ",y(2,2,a.Value)," ")}}function St(t,o){if(t&1&&(e(0,"div",19)(1,"div",18),n(2,"Status Product:"),i(),I(3,_t,3,4,"div",null,L),i()),t&2){let a=S(2).$implicit;l(3),N(a.ParsedStatus)}}function Ct(t,o){if(t&1&&(e(0,"div",18),n(1),i(),e(2,"div"),n(3),i(),f(4,St,5,0,"div",19)),t&2){let a=S().$implicit;l(),C(" ",a.ProcessLabel," "),l(2),x(a.ProcessDescription),l(),_(a!=null&&a.ParsedStatus&&(a==null||a.ParsedStatus==null?null:a.ParsedStatus.length)>0?4:-1)}}function vt(t,o){if(t&1&&(n(0),v(1,"number"),e(2,"span"),n(3,"s"),i()),t&2){let a=S().$implicit;C(" ",D(1,1,a.DurationInSecond,"1.1-1")," ")}}function xt(t,o){t&1&&n(0," - ")}function gt(t,o){t&1&&n(0," In Progress ")}function ht(t,o){t&1&&n(0," Completed ")}function It(t,o){t&1&&n(0," Failed ")}function Nt(t,o){if(t&1&&(e(0,"tr",12)(1,"td")(2,"a",15),n(3),i()(),e(4,"td")(5,"div",16),B(6,"img",17),e(7,"span"),n(8),i()()(),e(9,"td"),f(10,ft,2,0,"div")(11,Ct,5,3),i(),e(12,"td"),f(13,vt,4,4)(14,xt,1,0),i(),e(15,"td")(16,"div",18),f(17,gt,1,0)(18,ht,1,0)(19,It,1,0),i()(),e(20,"td",19)(21,"div"),n(22),i(),e(23,"div"),n(24),v(25,"date"),i()()()),t&2){let a,r=o.$implicit,c=S();m("ngClass",K(16,dt,r.Status==1,r.Status==0)),l(2),m("routerLink",j(19,mt))("queryParams",z(20,pt,r.ID)),l(),C(" ",r.ID," "),l(3),m("src",r.Img,M),l(2),x(r.ChannelName),l(2),_(r.StateID==c.scanState.InProgress?10:11),l(3),_(r.DurationInSecond?13:14),l(3),$(U(22,ut,r.StateID==c.scanState.InProgress,r.StateID==c.scanState.Completed,r.StateID==c.scanState.Failed)),l(),_((a=r.StateID)===c.scanState.InProgress?17:a===c.scanState.Completed?18:a===c.scanState.Failed?19:-1),l(5),x(r.LoginID),l(2),C(" ",D(25,13,r.Created,"dd MMM yyyy HH:mm")," ")}}var Jt=(()=>{let o=class o{constructor(){this.notificationService=F(b),this.filter=w({RowCount:20,PageNumber:1,ChannelID:null}),this.scanState=st,this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotificationList(this.filter()).pipe(E(r=>(r.Data=r.Data.map(c=>(c.StatusProduct&&(c.ParsedStatus=JSON.parse(c.StatusProduct)),c)),r)),P(1))}onFilter(){this.initNotifications()}};o.\u0275fac=function(c){return new(c||o)},o.\u0275cmp=T({type:o,selectors:[["app-notificationV2"]],features:[A([b])],decls:37,vars:8,consts:[["headerTitle","Notification",3,"onSubmit","hideSearchBox"],["routerLink","/menu/products/status/notification",1,"btn","btn-outline-secondary","btn-lg"],[1,"fw-bold","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"],[2,"width","260px"],[3,"ngClass"],[1,"col-12"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked"],[3,"routerLink","queryParams"],[1,"d-flex","align-items-center","gap-3"],[1,"channelLogo-md",3,"src","alt"],[1,"fw-bold"],[1,"lh-base"]],template:function(c,d){if(c&1){let s=R();q(0),v(1,"async"),e(2,"mainpanel",0),V("onSubmit",function(){return p(s),u(d.onFilter())}),e(3,"actions")(4,"a",1),n(5," Scan Job V1 "),i()(),e(6,"filters")(7,"div")(8,"label",2),n(9,"Channel"),i(),e(10,"app-channel-options-v2",3),W("ngModelChange",function(h){return p(s),J(d.filter().ChannelID,h)||(d.filter().ChannelID=h),u(h)}),i()()(),e(11,"content")(12,"div",4)(13,"div",5)(14,"div",6)(15,"div",7)(16,"table",8)(17,"thead",9)(18,"tr",10)(19,"th",11),n(20,"Job ID"),i(),e(21,"th"),n(22,"Channel"),i(),e(23,"th"),n(24,"Process"),i(),e(25,"th"),n(26,"Duration"),i(),e(27,"th"),n(28,"Status"),i(),e(29,"th"),n(30,"Creator"),i()()(),e(31,"tbody"),I(32,Nt,26,26,"tr",12,k),i()()()()(),e(34,"div",5)(35,"div",13)(36,"app-custom-paginator",14),V("next",function(){return p(s),u(d.initNotifications())})("previous",function(){return p(s),u(d.initNotifications())}),i()()()()()()}if(c&2){let s=y(1,6,d.notifications$);l(2),m("hideSearchBox",!0),l(8),H("ngModel",d.filter().ChannelID),l(22),N(s==null?null:s.Data),l(4),m("filter",d.filter())("totaldata",s==null||s.Data==null?null:s.Data.length)("paginationTotal",s==null?null:s.Count)("hasClicked",!0)}},dependencies:[Z,Y,ot,it,nt,rt,at,lt,et,tt,ct,G,X,Q],encapsulation:2});let t=o;return t})();export{Jt as NotificationV2Component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as oe}from"./chunk-
|
|
1
|
+
import{a as oe}from"./chunk-BTSGHYIF.js";import{a as E}from"./chunk-WFXKYFBX.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-B5AYTAZQ.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-HF4T6G54.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 Y}from"./chunk-
|
|
1
|
+
import{a as Y}from"./chunk-B5AYTAZQ.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-HF4T6G54.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as W,b as A,c as U}from"./chunk-3JRUKSV3.js";import{a as z,b as B}from"./chunk-SJ5MC42H.js";import{b as j}from"./chunk-NWB7EVME.js";import{a as I}from"./chunk-A6QXXKPR.js";import{i as E}from"./chunk-
|
|
1
|
+
import{a as W,b as A,c as U}from"./chunk-3JRUKSV3.js";import{a as z,b as B}from"./chunk-SJ5MC42H.js";import{b as j}from"./chunk-NWB7EVME.js";import{a as I}from"./chunk-A6QXXKPR.js";import{i as E}from"./chunk-HF4T6G54.js";import{ra as P}from"./chunk-5PMKN6PM.js";import{A as k,a as D,h as N,m as F}from"./chunk-L3W6SG2T.js";import{$b as T,Gb as V,Kb as v,Mb as _,Mc as x,Nc as S,Qc as w,Rc as b,Sc as y,Zc as O,bc as L,gc as p,hc as c,ic as u,jc as g,lb as h,nb as m,qc as f,ra as M,td as d,vc as C,xa as r,xc as a,ya as s}from"./chunk-ZYJ6LAJ3.js";function G(n,o){if(n&1&&(c(0,"div",6),g(1,"img",7),c(2,"div"),x(3),u()()),n&2){let e=o.$implicit;m(),p("src",e.logo,h),m(2),S(e.Name)}}function R(n,o){if(n&1){let e=f();c(0,"p-multiselect",4,0),C("click",function(){r(e);let i=a();return s(i.onClickSelect())}),y("ngModelChange",function(i){r(e);let l=a();return b(l.selectedChannels,i)||(l.selectedChannels=i),s(i)}),C("ngModelChange",function(i){r(e);let l=a();return s(l.onChannelChange(i))}),_(2,G,4,2,"ng-template",5),u()}if(n&2){let e=a();p("options",e.options())("placeholder",e.placeholder()),w("ngModel",e.selectedChannels),p("showClear",e.clearable())("autofocusFilter",!0)("maxSelectedLabels",e.maxSelectedLabels())}}function q(n,o){if(n&1&&(c(0,"div",6),g(1,"img",7),c(2,"div"),x(3),u()()),n&2){let e=o.$implicit;m(),p("src",e.logo,h),m(2),S(e.Name)}}function H(n,o){if(n&1){let e=f();c(0,"p-select",8,1),C("click",function(){r(e);let i=a();return s(i.onClickSelect())}),y("ngModelChange",function(i){r(e);let l=a();return b(l.selectedChannels,i)||(l.selectedChannels=i),s(i)}),C("ngModelChange",function(i){r(e);let l=a();return s(l.onChannelChange(i))}),_(2,q,4,2,"ng-template",5),u()}if(n&2){let e=a();p("options",e.options())("placeholder",e.placeholder()),w("ngModel",e.selectedChannels),p("showClear",e.clearable())("autofocusFilter",!0)("filter",!0)}}var re=(()=>{let o=class o extends U{constructor(){super(),this.authService=M(E),this.multiple=d(!1),this.clearable=d(!0),this.placeholder=d("Select Channels"),this.options=d(this.authService.getChannels()),this.maxSelectedLabels=d(6),this.onChange=t=>{}}onChannelChange(t){this.multiple()?t=t||[]:t=t||I.GuidEmpty,this.onChange(t)}onClickSelect(){this.initTopPosition(),setTimeout(()=>{this.adjustOverlayPosition()},0)}writeValue(t){this.selectedChannels=t}registerOnChange(t){this.onChange=t}registerOnTouched(t){}setDisabledState(t){}};o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=V({type:o,selectors:[["app-channel-options-v2"]],inputs:{multiple:[1,"multiple"],clearable:[1,"clearable"],placeholder:[1,"placeholder"],options:[1,"options"],maxSelectedLabels:[1,"maxSelectedLabels"]},features:[O([{provide:D,multi:!0,useExisting:o}]),v],decls:2,vars:1,consts:[["multiSelect",""],["select",""],["optionLabel","Name","optionValue","ID","display","chip","id","multiSelect","appendTo","body",1,"w-100",2,"--p-multiselect-padding-y","12px",3,"options","placeholder","ngModel","showClear","autofocusFilter","maxSelectedLabels"],["optionLabel","Name","optionValue","ID","appendTo","body",1,"w-100",2,"--p-select-padding-y","12px",3,"options","placeholder","ngModel","showClear","autofocusFilter","filter"],["optionLabel","Name","optionValue","ID","display","chip","id","multiSelect","appendTo","body",1,"w-100",2,"--p-multiselect-padding-y","12px",3,"click","ngModelChange","options","placeholder","ngModel","showClear","autofocusFilter","maxSelectedLabels"],["pTemplate","item"],[1,"d-flex","align-items-center","gap-2"],[2,"width","18px",3,"src"],["optionLabel","Name","optionValue","ID","appendTo","body",1,"w-100",2,"--p-select-padding-y","12px",3,"click","ngModelChange","options","placeholder","ngModel","showClear","autofocusFilter","filter"]],template:function(i,l){i&1&&T(0,R,3,6,"p-multiselect",2)(1,H,3,6,"p-select",3),i&2&&L(l.multiple()?0:1)},dependencies:[B,z,P,j,k,N,F,A,W],encapsulation:2});let n=o;return n})();export{re as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as U}from"./chunk-
|
|
1
|
+
import{a as U}from"./chunk-B5AYTAZQ.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-HF4T6G54.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 W,h as I,m as R}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as P,k,m as B}from"./chunk-LNJUGHOX.js";import{$b as M,Gb as x,Ha as h,Mc as i,Nc as V,Qc as f,Rc as C,Sc as b,Tc as O,Uc as D,Vc as _,Z as S,bc as N,gc as g,hc as e,hd as v,ic as t,id as y,jc as L,nb as d,qc as T,ra as E,vc as w,xa as p,xc as A,ya as m}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function q(r,l){if(r&1&&(e(0,"pre",21),i(1),v(2,"json"),t()),r&2){A();let Y=_(25);d(),V(y(2,1,Y))}}function z(r,l){r&1&&(e(0,"p",22),i(1," Your data will be shown here once it's available "),t())}var ce=(()=>{let l=class l{constructor(){this.httpService=E(F),this.selectedChannel=h(null),this.orderNumber=h(null)}initEscrowLog(){this.escrowLog$=this.httpService.post(H.GetEscrowDetail,{ChannelID:this.selectedChannel(),OrderNumber:this.orderNumber()}).pipe(S(1))}copyToClipboard(c){if(!c)return;let s=typeof c=="string"?c:JSON.stringify(c,null,2);navigator.clipboard.writeText(s),alert("Copied to clipboard!")}};l.\u0275fac=function(s){return new(s||l)},l.\u0275cmp=x({type:l,selectors:[["app-escrow-api"]],decls:40,vars:9,consts:[["headerTitle","Origin Escrow 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"],["type","text","placeholder","Order Number or Invoice Number",1,"form-control","rounded-1",2,"height","40px",3,"ngModelChange","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","escrowLogText"],[1,"text-center","my-12","text-muted"]],template:function(s,n){if(s&1){let a=T();e(0,"mainpanel",0)(1,"actions")(2,"button",1),w("click",function(){return p(a),m(n.initEscrowLog())}),L(3,"i",2),i(4," Search "),t()(),e(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h6"),i(12,"Channel"),t(),e(13,"p",8),i(14," View logs related to Escrow API "),t()(),e(15,"div",9)(16,"app-channel-options-v2",10),b("ngModelChange",function(o){return p(a),C(n.selectedChannel,o)||(n.selectedChannel=o),m(o)}),t()()(),e(17,"div",11)(18,"div",7)(19,"h6"),i(20,"Order Number"),t(),e(21,"p",8),i(22," Order or Invoice number from Channel. "),t()(),e(23,"div",9)(24,"input",12),b("ngModelChange",function(o){return p(a),C(n.orderNumber,o)||(n.orderNumber=o),m(o)}),t()()()()(),O(25),v(26,"async"),e(27,"div",13)(28,"div",14)(29,"div",15)(30,"div",16)(31,"h5"),i(32,"Response"),t(),e(33,"button",17),w("click",function(){p(a);let o=_(25);return m(n.copyToClipboard(o))}),i(34," Copy "),t()(),e(35,"div",18)(36,"div",19)(37,"div",20),M(38,q,3,3,"pre",21)(39,z,2,0,"p",22),t()()()()()()()()()}if(s&2){g("hideSearchBox",!0)("hideSearchDropdown",!0),d(16),f("ngModel",n.selectedChannel),d(8),f("ngModel",n.orderNumber),d();let a=D(y(26,6,n.escrowLog$));d(8),g("disabled",!a),d(5),N(a?38:39)}},dependencies:[B,j,W,I,R,G,J,U,P,k],styles:[".container-fluid[_ngcontent-%COMP%]{padding-bottom:1rem}#escrowLogText[_ngcontent-%COMP%]{white-space:pre-wrap;word-break:break-word}"]});let r=l;return r})();export{ce as EscrowApiComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as _}from"./chunk-
|
|
1
|
+
import{f as _}from"./chunk-HF4T6G54.js";import{c as a}from"./chunk-JBEKD57G.js";import{G as k,I as C}from"./chunk-LNJUGHOX.js";import{$b as I,Gb as v,Mc as u,Oc as p,ad as D,bc as g,gc as s,hc as c,ic as m,lb as b,ma as h,nb as l,od as f,ra as o,td as x,xc as d}from"./chunk-ZYJ6LAJ3.js";var y=(()=>{let e=class e{constructor(){this.localDataService=o(_),this.baseUrl=this.localDataService.getHostName()}getBaseUrl(n){let r="";return a.IsNotEmpty(n.ID)?r=`https://${this.baseUrl}/menu/Orders/Orders/Customer_Invoice/Info?ID=${n.ID}`:r="/menu/Order/detail",r}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var U=(t,e)=>({Number:t,Outlet:e});function L(t,e){if(t&1&&(c(0,"a",0),u(1),m()),t&2){let i,n=d();s("href",n.baseUrl(),b),l(),p(" ",(i=n.order())==null?null:i.Number," ")}}function S(t,e){if(t&1&&(c(0,"a",1),u(1),m()),t&2){let i,n,r=d();s("routerLink",r.baseUrl())("queryParams",D(3,U,(i=r.order())==null?null:i.Number,(i=r.order())==null?null:i.Outlet)),l(),p(" ",(n=r.order())==null?null:n.Number," ")}}var z=(()=>{let e=class e{constructor(){this.order=x(),this.generateLinkService=o(y),this.baseUrl=f(()=>this.generateLinkService.getBaseUrl(this.order())),this.hasOrderID=f(()=>a.IsNotEmpty(this.order()?.ID))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=v({type:e,selectors:[["order-link"]],inputs:{order:[1,"order"]},decls:2,vars:1,consts:[["target","_blank",3,"href"],["target","_blank",3,"routerLink","queryParams"]],template:function(r,N){r&1&&I(0,L,2,2,"a",0)(1,S,2,6,"a",1),r&2&&g(N.hasOrderID()?0:1)},dependencies:[C,k],encapsulation:2});let t=e;return t})();export{z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as h}from"./chunk-
|
|
1
|
+
import{i as h}from"./chunk-HF4T6G54.js";import{b as p}from"./chunk-OXWPYJNB.js";import{a as u}from"./chunk-ZETUYNFJ.js";import{F as l}from"./chunk-LNJUGHOX.js";import{ma as c,qa as t}from"./chunk-ZYJ6LAJ3.js";var g=(()=>{let e=class e{constructor(s,i,r,n){this.toastr=s,this.authService=i,this.router=r,this.permissionService=n}canActivate(s,i){let r=JSON.parse(window.localStorage.getItem("user")),n=new Date,a=!1;if(r!=null){let m=new Date(r?.Token?.expiredAt);n<m?a=!0:(this.authService.logout(),this.onTokenExpired())}else this.router.navigate([""]),this.onTokenExpired();return a}onTokenExpired(){this.toastr.error("Your session has expired. Please login again.","Session Expired")}};e.\u0275fac=function(i){return new(i||e)(t(p),t(h),t(l),t(u))},e.\u0275prov=c({token:e,factory:e.\u0275fac,providedIn:"root"});let o=e;return o})();export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-BUY4AAHK.js";import{a as l,b as u}from"./chunk-A7PUMY67.js";import"./chunk-HF4T6G54.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{E as m,I as s}from"./chunk-LNJUGHOX.js";import{Gb as i,gc as p,hc as c,ic as d,jc as n,nb as a}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var h=(()=>{let e=class e{constructor(){this.tabs=[{Title:"Origin Order API",Url:"/menu/json-api/order-api"},{Title:"Origin Product API",Url:"/menu/json-api/product-api"},{Title:"Origin Escrow API",Url:"/menu/json-api/escrow-api"}]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=i({type:e,selectors:[["app-json-api"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(o,f){o&1&&(c(0,"nav",0)(1,"div",1)(2,"div"),n(3,"nav-tab",2),d()()(),n(4,"router-outlet")),o&2&&(a(3),p("Tabs",f.tabs))},dependencies:[u,l,s,m],encapsulation:2});let t=e;return t})(),O=[{path:"",component:h,children:[{path:"",redirectTo:"order-api",pathMatch:"full"},{path:"order-api",loadComponent(){return import("./chunk-WPKFNEM6.js").then(t=>t.OrderApiComponent)},canActivate:[r],data:{title:"Order API"}},{path:"product-api",loadComponent(){return import("./chunk-A62IPN6W.js").then(t=>t.ProductApiComponent)},canActivate:[r],data:{title:"Product API"}},{path:"escrow-api",loadComponent(){return import("./chunk-BNAARI67.js").then(t=>t.EscrowApiComponent)},canActivate:[r],data:{title:"Escrow API"}}]}];export{h as JsonApiComponent,O as routes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-66YHNWRR.js";var o=[{path:"",loadComponent(){return import("./chunk-4JDI3AL5.js").then(t=>t.OrdersV2Component)},children:[{path:"to-ship",loadComponent(){return import("./chunk-
|
|
1
|
+
import"./chunk-66YHNWRR.js";var o=[{path:"",loadComponent(){return import("./chunk-4JDI3AL5.js").then(t=>t.OrdersV2Component)},children:[{path:"to-ship",loadComponent(){return import("./chunk-YLQKFPMU.js").then(t=>t.ReadyToShipComponent)},title:"To Ship"},{path:"awaiting-collection",loadComponent(){return import("./chunk-MQRQ3LOB.js").then(t=>t.AwaitingCollectionComponent)},title:"Awaiting Collection"},{path:"shipped",loadComponent(){return import("./chunk-F7JWZJVZ.js").then(t=>t.ShippedComponent)},title:"Shipped"},{path:"completed",loadComponent(){return import("./chunk-IGS6BEII.js").then(t=>t.CompletedComponent)},title:"Completed"},{path:"all",loadComponent(){return import("./chunk-YN55P3QH.js").then(t=>t.AllComponent)},title:"All Orders"},{path:"cancelled",loadComponent(){return import("./chunk-7CYONN5M.js").then(t=>t.CancelledComponent)},title:"Cancelled"},{path:"download",loadComponent(){return import("./chunk-2XYIINPQ.js").then(t=>t.DownloadV2Component)},title:"Download"},{path:"log",loadComponent(){return import("./chunk-QQY7JGZW.js").then(t=>t.DownloadOrderLogComponent)},title:"Download Log"},{path:"",pathMatch:"full",redirectTo:"to-ship"}]}];export{o as routes};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as me,b as de,c as se}from"./chunk-ILW6ZFFV.js";import{a as ue}from"./chunk-BTSGHYIF.js";import{a as P}from"./chunk-WFXKYFBX.js";import{a as ce}from"./chunk-S7CKRTJV.js";import{a as le}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 pe}from"./chunk-B5AYTAZQ.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{a as oe}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-HF4T6G54.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 ae}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 J,j as K,l as Q,m as X}from"./chunk-LNJUGHOX.js";import{$b as b,$c as q,Gb as D,Ha as F,Lc as z,Mc as l,Nc as w,Oc as x,Qc as h,Rc as S,Sc as C,Tc as A,Uc as R,Vc as H,Zc as j,_c as U,bc as V,cc as I,ec as B,fc as k,gc as f,hc as t,hd as y,ic as i,id as E,jc as _,jd as G,lb as W,nb as r,qc as M,ra as O,vc as T,xa as s,xc as g,ya as c}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as L,b as N}from"./chunk-66YHNWRR.js";var _e=()=>[],fe=a=>({"td-cell-hover":a});function ge(a,p){if(a&1&&_(0,"variants-dropdown",31),a&2){let e=g().$implicit;f("variants",e==null?null:e.Variants)}}function he(a,p){if(a&1&&_(0,"variant-with-image",32),a&2){let e=g().$implicit;f("variant",e==null?null:e.Variants[0])}}function Se(a,p){if(a&1&&(t(0,"span"),l(1),i()),a&2){let e=g().$implicit;r(),x("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Ce(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,Se,2,1,"span"),i(),t(34,"small"),l(35),i()()()()),a&2){let e=p.$implicit;r(3),f("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),f("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,fe,(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 ve(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,Ce,36,23,"tr",null,I),i()(),t(17,"app-custom-paginator",23),T("next",function(){s(e);let d=g();return c(d.initShippedOrders())})("previous",function(){s(e);let d=g();return c(d.initShippedOrders())}),i()()}if(a&2){let e=g(),m=H(0);r(15),k(m),r(2),f("filter",e.filter())("totaldata",m==null?null:m.length)}}function we(a,p){a&1&&(t(0,"div",16),_(1,"app-empty-state"),i())}var je=(()=>{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:m=>{this.initFromDate(m)},error:m=>{console.error("Error fetching default date:",m),this.initFromDate(null)}})}initFromDate(m){this.filter.update(d=>N(L({},d),{From:m})),this.initShippedOrders()}initShippedOrders(){this.shippedOrders$=this.orderService.getShippedOrders(this.filter())}};p.\u0275fac=function(d){return new(d||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(d,o){if(d&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,ve,18,2,"div",15)(33,we,2,0,"div",16),i()()()()()}if(d&2){let u=R(E(1,8,o.shippedOrders$)||U(11,_e));r(2),h("text",o.filter().Number),r(10),f("multiple",!0),h("ngModel",o.filter().ListChannelID),r(5),h("date",o.filter().From),r(2),h("date",o.filter().To),r(4),h("ngModel",o.filter().PageNumber),r(4),h("ngModel",o.filter().PageSize),r(5),V(u.length>0?32:33)}},dependencies:[X,ae,re,le,oe,te,Y,ee,Z,$,de,se,ce,ne,ie,ue,pe,J,Q,K,me],encapsulation:2});let a=p;return a})();export{je as ShippedComponent};
|