marketplacepos 3.18.0 → 3.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/Marketplace/{chunk-RVJCYVRR.js → chunk-25L5GT35.js} +1 -1
  2. package/Marketplace/chunk-2ORPFPW3.js +1 -0
  3. package/Marketplace/chunk-3ORAGDUV.js +1 -0
  4. package/Marketplace/{chunk-5T3BQNT6.js → chunk-3UKBESDQ.js} +1 -1
  5. package/Marketplace/{chunk-CCGY3SGF.js → chunk-3VPZUSG2.js} +1 -1
  6. package/Marketplace/{chunk-5RS36M3W.js → chunk-3XWOT6GZ.js} +1 -1
  7. package/Marketplace/{chunk-C62XLEFW.js → chunk-3ZQBMP7R.js} +1 -1
  8. package/Marketplace/chunk-4ULJZM2I.js +1 -0
  9. package/Marketplace/chunk-5DRMEYTQ.js +3 -0
  10. package/Marketplace/{chunk-WJRDWY5K.js → chunk-5HQAX7EA.js} +1 -1
  11. package/Marketplace/chunk-6UK5EDKC.js +5 -0
  12. package/Marketplace/{chunk-5B6FNQOB.js → chunk-AHA2WBEK.js} +1 -1
  13. package/Marketplace/{chunk-63QD35VV.js → chunk-ATJPUUZQ.js} +1 -1
  14. package/Marketplace/{chunk-JA6YU65N.js → chunk-BLKYALQN.js} +1 -1
  15. package/Marketplace/{chunk-6SHHVYL6.js → chunk-BTXJZOGD.js} +1 -1
  16. package/Marketplace/{chunk-POFMDL5L.js → chunk-CCEWQRYY.js} +1 -1
  17. package/Marketplace/chunk-D2WUVZXY.js +1 -0
  18. package/Marketplace/{chunk-FONTS7CQ.js → chunk-E32WLDEK.js} +1 -1
  19. package/Marketplace/{chunk-G52YHYPD.js → chunk-FLVJYLMP.js} +1 -1
  20. package/Marketplace/{chunk-QVCJCYVC.js → chunk-FMYZSZEX.js} +1 -1
  21. package/Marketplace/{chunk-6IZO4UK3.js → chunk-G2QVHX6W.js} +1 -1
  22. package/Marketplace/{chunk-QPH4XFGN.js → chunk-GKUGDFJC.js} +1 -1
  23. package/Marketplace/{chunk-F32X4UUF.js → chunk-JKF36COK.js} +1 -1
  24. package/Marketplace/{chunk-RKRJ4JOF.js → chunk-K6H25CD6.js} +1 -1
  25. package/Marketplace/chunk-KPLNKQV4.js +1 -0
  26. package/Marketplace/{chunk-OXSGKWPW.js → chunk-KRKQFGMS.js} +1 -1
  27. package/Marketplace/{chunk-BI5MTVCX.js → chunk-LFL23QXM.js} +1 -1
  28. package/Marketplace/{chunk-LPS2CHAH.js → chunk-LPBB2OY2.js} +1 -1
  29. package/Marketplace/chunk-LV34VUJQ.js +1 -0
  30. package/Marketplace/{chunk-AO22A2PN.js → chunk-LVFJFYVO.js} +1 -1
  31. package/Marketplace/chunk-MVPEM37R.js +1 -0
  32. package/Marketplace/{chunk-P4LC252I.js → chunk-MY7ARTXO.js} +1 -1
  33. package/Marketplace/{chunk-6NFPCNPI.js → chunk-NF2ANZGK.js} +1 -1
  34. package/Marketplace/{chunk-DBBHNJFV.js → chunk-NHI2FPN6.js} +1 -1
  35. package/Marketplace/{chunk-AAFEUTPF.js → chunk-NVF24LK5.js} +1 -1
  36. package/Marketplace/chunk-O6R5T3KF.js +1 -0
  37. package/Marketplace/chunk-OIQXRKAG.js +1 -0
  38. package/Marketplace/{chunk-SQCMDWE5.js → chunk-OQJWOWTI.js} +1 -1
  39. package/Marketplace/{chunk-D5XULRZS.js → chunk-OWN37Y3R.js} +1 -1
  40. package/Marketplace/chunk-PDJC7ISZ.js +2 -0
  41. package/Marketplace/{chunk-SKTTDASB.js → chunk-PYBQPNRY.js} +1 -1
  42. package/Marketplace/{chunk-2FI33IHG.js → chunk-R6PEAOIJ.js} +1 -1
  43. package/Marketplace/{chunk-P6UIWSMI.js → chunk-S36U4I4O.js} +1 -1
  44. package/Marketplace/chunk-SA6XH3LZ.js +1 -0
  45. package/Marketplace/{chunk-O323NMVX.js → chunk-SAEXEG4F.js} +1 -1
  46. package/Marketplace/{chunk-HDP6YJ5R.js → chunk-SB2DYZXB.js} +1 -1
  47. package/Marketplace/{chunk-5BU6HQXL.js → chunk-WH3FZ3VM.js} +1 -1
  48. package/Marketplace/{chunk-J3ATGPY6.js → chunk-WQY67NR3.js} +1 -1
  49. package/Marketplace/{chunk-WONQYZFA.js → chunk-WVKDNFEM.js} +1 -1
  50. package/Marketplace/chunk-X4WLRMDP.js +1 -0
  51. package/Marketplace/{chunk-WTYYEYYS.js → chunk-XGSCK5UN.js} +1 -1
  52. package/Marketplace/{chunk-YLIFCNKK.js → chunk-XOR54KJS.js} +1 -1
  53. package/Marketplace/index.html +3 -3
  54. package/Marketplace/{main-ZA64OH5W.js → main-F2YQJBAZ.js} +1 -1
  55. package/Marketplace/{styles-AJ4ALOFG.css → styles-RZHRYK3K.css} +1 -1
  56. package/package.json +1 -1
  57. package/Marketplace/chunk-2AMEIUWK.js +0 -1
  58. package/Marketplace/chunk-2HLJYECZ.js +0 -1
  59. package/Marketplace/chunk-64DIERLC.js +0 -1
  60. package/Marketplace/chunk-6OGERROP.js +0 -1
  61. package/Marketplace/chunk-BFLBYMTB.js +0 -5
  62. package/Marketplace/chunk-DPZZV2TL.js +0 -1
  63. package/Marketplace/chunk-KG27JWOX.js +0 -2
  64. package/Marketplace/chunk-L4A3FRTR.js +0 -1
  65. package/Marketplace/chunk-R5BHUH4C.js +0 -1
  66. package/Marketplace/chunk-R5CG7RZC.js +0 -3
  67. package/Marketplace/chunk-YKILFBLW.js +0 -1
@@ -1 +0,0 @@
1
- import{a as fe}from"./chunk-6OGERROP.js";import{a as ie}from"./chunk-BVIRHZTZ.js";import{a as xe}from"./chunk-GP6U42SV.js";import{a as de,b as ue}from"./chunk-W3POM6UQ.js";import{c as ge}from"./chunk-73DE2GZF.js";import{a as se}from"./chunk-C62XLEFW.js";import{g as pe}from"./chunk-6NTRXLMW.js";import{g as le}from"./chunk-WJRDWY5K.js";import{d as _e,g as me}from"./chunk-5RS36M3W.js";import{t as ae,u as ce}from"./chunk-CTKEWRX4.js";import{b as Q,h as ee,m as te,y as ne}from"./chunk-O5MOPAT5.js";import{e as oe,f as re}from"./chunk-2AMEIUWK.js";import{$a as m,$b as R,Cc as G,Dc as J,Ha as S,Hb as b,Ia as r,Ib as p,Ja as I,Jb as k,Kb as v,Mb as O,Nb as D,Ob as N,Qb as H,Sb as T,V as L,Za as s,_b as $,ac as Z,bc as y,c as W,ga as z,gb as P,hb as E,jb as M,kb as V,lb as c,mb as _,nb as w,oa as g,ob as x,pa as d,pb as f,qb as U,rb as C,tc as q,ub as h,vc as K,wb as a,wc as X,yc as Y,za as B,zb as A}from"./chunk-HSFUKC7R.js";var j=t=>[t],Ce=t=>({"text-decoration-line-through":t}),he=t=>({"ms-10":t}),Te=t=>({"bg-gradient-warning":t});function be(t,l){if(t&1){let n=C();c(0,"mat-slide-toggle",14),h("toggleChange",function(){g(n);let e=a();return e.toggleStatus=!e.toggleStatus,d(e.onToggle())}),c(1,"small",15),p(2),_()()}if(t&2){let n=a();r(2),v(" ",n.productToggleTitle?n.productToggleTitle:"FILTER DIFFERENT INVENTORY"," ")}}function ve(t,l){if(t&1){let n=C();c(0,"th")(1,"input",16),N("ngModelChange",function(e){g(n);let o=a();return D(o.checkboxState,e)||(o.checkboxState=e),d(e)}),h("ngModelChange",function(){g(n);let e=a();return d(e.onCheckboxStateChange())}),_()()}if(t&2){let n=a();r(),O("ngModel",n.checkboxState)}}function Se(t,l){t&1&&(c(0,"th",11),p(1,"POS"),_())}function we(t,l){if(t&1&&(x(0),c(1,"th",17)(2,"div",18)(3,"div",19),w(4,"img",20),c(5,"div",21),p(6),$(7,"stringLimit"),_()()()(),f()),t&2){let n=l.$implicit;r(3),m("matTooltip",(n.Name==null?null:n.Name.length)>20?n.Name:""),r(),m("src",n==null?null:n.Img,S),r(2),v(" ",Z(7,3,n.Name,20)," ")}}function ye(t,l){t&1&&U(0)}function Fe(t,l){if(t&1&&(x(0),s(1,ye,1,0,"ng-container",34),f()),t&2){a();let n=b(7);r(),m("ngTemplateOutlet",n)}}function Ie(t,l){t&1&&U(0)}function Pe(t,l){if(t&1&&s(0,Ie,1,0,"ng-container",34),t&2){a(2);let n=b(7);m("ngTemplateOutlet",n)}}function Ee(t,l){if(t&1&&s(0,Pe,1,1,"ng-template",12),t&2){let n=a(4);m("ngxPermissionsOnly",T(1,j,n.rolePriceEdit))}}function Me(t,l){if(t&1){let n=C();x(0),c(1,"input",35),N("ngModelChange",function(e){g(n);let o=a(4).$implicit;return D(o.selected,e)||(o.selected=e),d(e)}),h("ngModelChange",function(){g(n);let e=a(4).$implicit,o=a();return d(o.onCheckboxStateProduct(e.ID))}),_(),f()}if(t&2){let n=a(4).$implicit;r(),O("ngModel",n.selected)}}function Ve(t,l){if(t&1&&s(0,Me,2,1,"ng-container",22),t&2){let n=a(3).$implicit;m("ngIf",(n==null||n.Variants==null?null:n.Variants.length)>1)}}function ke(t,l){if(t&1){let n=C();x(0),c(1,"img",36),h("click",function(e){g(n);let o=a(3).$implicit,u=a();return d(u.onZoomImage(e,o==null?null:o.ImageUrl))}),_(),f()}if(t&2){let n=a(3).$implicit;r(),A("src",n==null?null:n.ThumbnailUrl,S)}}function Oe(t,l){t&1&&w(0,"img",37)}function De(t,l){if(t&1&&(x(0),c(1,"td",29)(2,"div",30),s(3,Fe,2,1,"ng-container",31)(4,Ee,1,3,"ng-template",null,0,y)(6,Ve,1,1,"ng-template",null,1,y),c(8,"div",26),s(9,ke,2,1,"ng-container",31)(10,Oe,1,0,"ng-template",null,2,y),_()()(),c(12,"td",32)(13,"div"),p(14),_(),c(15,"small",33),p(16),_()(),f()),t&2){let n=b(5),i=b(11),e=a(2).$implicit,o=a();r(),m("rowSpan",e==null?null:e.Variants.length),r(2),m("ngIf",o.table=="inventory")("ngIfElse",n),r(5),m("ngClass",T(9,he,(e==null||e.Variants==null?null:e.Variants.length)<=1)),r(),m("ngIf",e==null?null:e.ThumbnailUrl)("ngIfElse",i),r(3),m("rowSpan",e==null?null:e.Variants.length),r(2),k(e==null?null:e.Name),r(2),v("(",e==null?null:e.Category,")")}}function Ne(t,l){if(t&1){let n=C();c(0,"input",16),N("ngModelChange",function(e){g(n);let o=a(2).$implicit;return D(o.selected,e)||(o.selected=e),d(e)}),_()}if(t&2){let n=a(2).$implicit;O("ngModel",n.selected)}}function $e(t,l){if(t&1&&(c(0,"td",38),s(1,Ne,1,1,"input",39),_()),t&2){let n=a().$implicit,i=a(2);r(),m("ngIf",i.printPOS(n)>=0||i.table=="price")}}function Be(t,l){if(t&1&&(c(0,"td",24),p(1),$(2,"number"),_()),t&2){let n=a().$implicit,i=a(2);r(),k(R(2,1,i.printPOS(n)))}}function Ue(t,l){if(t&1){let n=C();x(0),c(1,"td",40),h("click",function(){g(n);let e=a().$implicit,o=a().$implicit,u=a().$implicit,F=a();return d(F.openTableDialog(u.Name,o,e.ID,u.ChannelItemID))}),c(2,"div",30)(3,"div",41),p(4),$(5,"number"),_(),c(6,"a",42),h("click",function(e){return g(n),d(e==null?null:e.stopPropagation())}),w(7,"i",28),_()()(),f()}if(t&2){let n=l.$implicit,i=a(2).$implicit,e=a(2);r(),m("ngClass",T(5,Te,e.printPOS(i)!=e.printItem(n))),r(3),v(" ",R(5,3,e.printItem(n))," "),r(2),m("href",n.Url,S)}}function Re(t,l){t&1&&(c(0,"td",43)(1,"div",30)(2,"span"),p(3,"X"),_()()())}function je(t,l){if(t&1&&s(0,Ue,8,7,"ng-container",31)(1,Re,4,0,"ng-template",null,3,y),t&2){let n=l.$implicit,i=b(2),e=a().$implicit,o=a(2);m("ngIf",o.getItemFromChannel(e,n.ID))("ngIfElse",i)}}function We(t,l){if(t&1&&(c(0,"tr"),s(1,De,17,11,"ng-container",22),c(2,"td",23),p(3),_(),c(4,"td",24)(5,"div",25)(6,"div",26),p(7),_(),c(8,"div",21)(9,"a",27),w(10,"i",28),_()()()(),s(11,$e,2,1,"ng-template",12)(12,Be,3,3,"td",24),M(13,je,3,2,null,null,E),_()),t&2){let n=l.$implicit,i=l.$index,e=a(2);r(),m("ngIf",i==0),r(2),k(n==null?null:n.Model),r(2),m("matTooltip",n.Discontinued?e.discontinuedVariantMsg:""),r(),m("ngClass",T(8,Ce,n.Discontinued)),r(),v(" ",n.Code," "),r(2),m("href",e.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(n==null?null:n.ID),S),r(2),m("ngxPermissionsOnly",T(10,j,e.rolePriceEdit)),r(),P(e.filter!=null&&e.filter.HiddenIPOSInventory?-1:12),r(),V(e.channel)}}function Le(t,l){if(t&1&&(c(0,"tbody"),M(1,We,15,12,"tr",null,E),_()),t&2){let n=l.$implicit;r(),V(n.Variants)}}var xt=(()=>{let l=class l{constructor(i,e,o){this.dialog=i,this.biggerPictureService=e,this.authService=o,this.showProductToggle=!1,this.toggleStatus=!1,this.checkboxState=!1,this.rolePriceEdit=ie.price,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 W,this.toggle=new B,this.hostName=this.authService.getDomain()}ngOnInit(){this.table=="inventory"?this.stockHeader="Stock":this.table=="price"&&(this.stockHeader="Price")}onCheckboxStateProduct(i){let e=this.data.filter(o=>o.ID==i);e.length>0&&(e=e.map(o=>(o.Variants=o.Variants.map(u=>(u.selected=o.selected,u)),o)))}onCheckboxStateChange(){this.data=this.data.map(i=>(i.Variants=i.Variants.map(e=>(e.selected=this.checkboxState,e)),i))}getItemFromChannel(i,e){return i.Channel.find(o=>o.ChannelID==e)}printItem(i){if(this.table=="inventory")return i.Inventory;if(this.table=="price")return i.Price}openTableDialog(i,e,o,u){this.dialog.open(fe,{data:{Name:i,Variant:e,ChannelID:o,Table:this.table,ChannelItemID:u}}).afterClosed().pipe(L(this.destroy$)).subscribe(F=>{F!=null&&this.onSubmit.emit(F)})}printPOS(i){return this.table=="inventory"?i.Inventory?i.Inventory:0:this.table=="price"?i.UnitPrice:null}onToggle(){this.toggle.emit(this.toggleStatus)}onZoomImage(i,e){this.biggerPictureService.openBiggerPicture(i,e)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};l.\u0275fac=function(e){return new(e||l)(I(_e),I(se),I(le))},l.\u0275cmp=z({type:l,selectors:[["app-table"]],inputs:{filter:"filter",data:"data",table:"table",channel:"channel",showProductToggle:"showProductToggle",productToggleTitle:"productToggleTitle"},outputs:{onSubmit:"onSubmit",toggle:"onToggle"},standalone:!0,features:[H],decls:18,vars:6,consts:[["PRICE",""],["checkbox_update",""],["elsePic",""],["elseCol",""],[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"],[3,"ngxPermissionsOnly"],[4,"ngFor","ngForOf"],[2,"width","200px",3,"toggleChange"],[1,"fw-bold"],["type","checkbox",3,"ngModelChange","ngModel"],["scope","col"],[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"],[4,"ngIf"],[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,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"text-center",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-center"],[4,"ngIf","ngIfElse"],[1,"text-start",2,"padding-left","0px",3,"rowSpan"],[1,"mt-1"],[4,"ngTemplateOutlet"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel"],[1,"border","rounded","w-img","cursor-pointer",3,"click","src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[1,"align-middle"],["type","checkbox",3,"ngModel","ngModelChange",4,"ngIf"],[1,"p-0","pointer","cell-hover",3,"click","ngClass"],[1,"me-2","mt-1"],["target","_blank",3,"click","href"],[1,"table-white","text-center",2,"color","red"]],template:function(e,o){e&1&&(c(0,"div",4)(1,"table",5)(2,"thead",6)(3,"tr")(4,"th",7)(5,"div",8)(6,"div"),p(7,"Product"),_(),s(8,be,3,1,"mat-slide-toggle",9),_()(),c(9,"th",10),p(10,"Variant"),_(),c(11,"th",11),p(12,"SKU"),_(),s(13,ve,2,1,"ng-template",12)(14,Se,2,0,"th",11)(15,we,8,6,"ng-container",13),_()(),M(16,Le,3,0,"tbody",null,E),_()()),e&2&&(r(8),P(o.showProductToggle?8:-1),r(5),m("ngxPermissionsOnly",T(4,j,o.rolePriceEdit)),r(),P(o.filter!=null&&o.filter.HiddenIPOSInventory?-1:14),r(),m("ngForOf",o.channel),r(),V(o.data))},dependencies:[J,q,K,X,Y,G,ne,Q,ee,te,ue,de,me,pe,ge,re,oe,ce,ae,xe],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=l;return t})();export{xt as a};