marketplacepos 2.4.3 → 2.4.5

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 (33) hide show
  1. package/Marketplace/162.4ce4550bb805d5d4.js +1 -0
  2. package/Marketplace/171.9cd91ffa365b9491.js +1 -0
  3. package/Marketplace/174.e214431f31fd131d.js +1 -0
  4. package/Marketplace/25.ad4f583264f99556.js +1 -0
  5. package/Marketplace/334.fca544ca6d7e11d3.js +1 -0
  6. package/Marketplace/360.479b6dc19c3aedfd.js +1 -0
  7. package/Marketplace/387.ef404fc903278a1c.js +1 -0
  8. package/Marketplace/402.f385d64daee6049e.js +1 -0
  9. package/Marketplace/{458.556f206f7d19bc29.js → 458.a9aae1853888dd58.js} +1 -1
  10. package/Marketplace/466.2e9f76621dd59e88.js +1 -0
  11. package/Marketplace/516.71620076f01c2cd7.js +1 -0
  12. package/Marketplace/61.481724edf2d23475.js +1 -0
  13. package/Marketplace/874.d45d1026769d75d1.js +1 -0
  14. package/Marketplace/assets/version-adjustment-v5.scss +2 -2
  15. package/Marketplace/common.1acc3df88ef73d5d.js +1 -0
  16. package/Marketplace/index.html +3 -3
  17. package/Marketplace/main.2fa426747cc66a26.js +1 -0
  18. package/Marketplace/runtime.22e3909f138762cb.js +1 -0
  19. package/Marketplace/{styles.f8366e17917068bd.css → styles.ab4c60b3cc2298c3.css} +2 -2
  20. package/package.json +1 -1
  21. package/Marketplace/102.00a16fb36f5a57f2.js +0 -1
  22. package/Marketplace/162.9784f9e579112c86.js +0 -1
  23. package/Marketplace/285.7583f3169c88c210.js +0 -1
  24. package/Marketplace/387.10f091023152d154.js +0 -1
  25. package/Marketplace/402.60951eab064c9706.js +0 -1
  26. package/Marketplace/455.fc7663306b753727.js +0 -1
  27. package/Marketplace/667.b7320f874219caa9.js +0 -1
  28. package/Marketplace/785.a0973529f8e8819e.js +0 -1
  29. package/Marketplace/874.9879a8b9489c9845.js +0 -1
  30. package/Marketplace/882.5d3edc53a8e4c38e.js +0 -1
  31. package/Marketplace/common.f2cd628914f2fae7.js +0 -1
  32. package/Marketplace/main.f30bf3b0f501021c.js +0 -1
  33. package/Marketplace/runtime.9cbc4802b0456746.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[874],{1874:(Oe,T,r)=>{r.r(T),r.d(T,{PriceModule:()=>Ue});var p=r(6895),v=r(7398),g=r(7481),m=r(8252),h=r(4006),C=r(8796),e=r(4650);let J=(()=>{class t{constructor(){this.priceTabs=[{Title:"Price Single Channel",Url:"/menu/price/SingleChannel"},{Title:"POS vs Channel Price",Url:"/menu/price/pos"},{Title:"Custom Channel Price",Url:"/menu/price/OutletPrice"}]}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-price"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(n,o){1&n&&(e.TgZ(0,"nav",0)(1,"div",1)(2,"div"),e._UZ(3,"nav-tab",2),e.qZA()()(),e._UZ(4,"router-outlet")),2&n&&(e.xp6(3),e.Q6J("Tabs",o.priceTabs))},dependencies:[v.e,m.lC]}),t})();var Z=r(8231),y=r(6304),A=r(8505),d=r(9300),_=r(3154),f=r(1318),x=r(7185),P=r(5412),F=r(7287),b=r(6082),I=r(1948);function O(t,l){if(1&t&&(e.TgZ(0,"mat-radio-button",3),e._uU(1),e.qZA()),2&t){const n=l.$implicit,o=l.index,i=e.oxw();e.Q6J("value",n.Key)("name",i.name)("title",i.tooltipsText[o]?i.tooltipsText[o]:""),e.xp6(1),e.hij(" ",n.Value,"")}}const k=function(t){return{"border-0":t}};let w=(()=>{class t{constructor(){this.modelChange=new e.vpe,this.border=!1,this.tooltipsText=[]}change(n){this.modelChange.emit(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["radio-options"]],inputs:{model:"model",options:"options",border:"border",name:"name",tooltipsText:"tooltipsText"},outputs:{modelChange:"modelChange"},decls:3,vars:5,consts:[[1,"form-control","h-100",3,"ngClass"],[3,"ngModel","ngModelChange"],["class","me-5","data-toggle","tooltip","data-placement","right",3,"value","name","title",4,"ngFor","ngForOf"],["data-toggle","tooltip","data-placement","right",1,"me-5",3,"value","name","title"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"mat-radio-group",1),e.NdJ("ngModelChange",function(a){return o.change(a)}),e.YNc(2,O,2,4,"mat-radio-button",2),e.qZA()()),2&n&&(e.Q6J("ngClass",e.VKq(3,k,0==o.border)),e.xp6(1),e.Q6J("ngModel",o.model),e.xp6(1),e.Q6J("ngForOf",o.options))},dependencies:[p.mk,p.sg,I.VQ,I.U0,h.JJ,h.On],styles:[".mat-radio-label{margin-top:auto;margin-bottom:auto}"]}),t})(),L=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[p.ez,I.Fk,h.u5]}),t})();var D=r(488);function Q(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"button",18),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.openScanDialog())}),e._UZ(1,"i",19),e._uU(2," Scan Channel "),e.qZA()}}function q(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){e.CHM(n);const i=e.oxw().ngIf,a=e.oxw(2);return e.KtG(a.onUpdateItems(i))}),e._UZ(1,"i",21),e._uU(2," Update "),e.qZA()}}function V(t,l){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,Q,3,0,"button",16),e.YNc(2,q,3,0,"button",17),e.qZA()),2&t){const n=l.ngIf,o=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!o.productService.hasSelectionVariant(n)),e.xp6(1),e.Q6J("ngIf",o.productService.hasSelectionVariant(n))}}function $(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"div",22)(1,"app-table",23),e.NdJ("onSubmit",function(i){e.CHM(n);const a=e.oxw(2);return e.KtG(a.updatePriceByVariant(i))}),e.ALo(2,"async"),e.qZA()()}if(2&t){const n=e.oxw().ngIf,o=e.oxw();e.xp6(1),e.Q6J("data",e.lcZ(2,3,o.paginationService.data$))("channel",n.Options.Channel)("filter",n.Filter)}}function Y(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"span",24),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.getRowCount())}),e.TgZ(1,"i",25),e._uU(2,"?"),e.qZA()()}}function E(t,l){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&t){const n=l.ngIf;e.xp6(1),e.Oqu(e.lcZ(2,1,n))}}function K(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"a",26),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.onNextPage())}),e._UZ(1,"i",27),e._uU(2," Next"),e.qZA()}}function H(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"a",28),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.onLastPage())}),e._UZ(1,"i",29),e._uU(2," Last"),e.qZA()}}function R(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"mainpanel",1),e.NdJ("onSubmit",function(i){e.CHM(n);const a=e.oxw();return e.KtG(a.onSearch(i))}),e.TgZ(1,"filters")(2,"div",2)(3,"div")(4,"h6"),e._uU(5,"Filter by"),e.qZA(),e.TgZ(6,"radio-options",3),e.NdJ("modelChange",function(i){e.CHM(n);const a=e.oxw();return e.KtG(a.searchFilter.filterModel=i)}),e.qZA()()()(),e.TgZ(7,"actions")(8,"div",4),e.YNc(9,V,3,2,"div",5),e.ALo(10,"async"),e.qZA()(),e.TgZ(11,"content")(12,"div",6)(13,"div",7),e.YNc(14,$,3,5,"div",8),e.ALo(15,"async"),e.qZA(),e.TgZ(16,"div",9)(17,"div",10)(18,"div",11),e._uU(19),e.ALo(20,"number"),e.ALo(21,"async"),e.YNc(22,Y,3,0,"span",12),e.YNc(23,E,3,3,"span",5),e.ALo(24,"async"),e._uU(25),e.qZA()(),e.TgZ(26,"div",13),e.YNc(27,K,3,0,"a",14),e.YNc(28,H,3,0,"a",15),e.qZA()()()()()}if(2&t){const n=e.oxw();let o;e.Q6J("pageData",n.pageData)("hideSearchBox",!1)("hideSearchDropdown",!1)("textButton","Search"),e.xp6(6),e.Q6J("model",n.searchFilter.filterModel)("options",n.filterOptions)("border",!1),e.xp6(3),e.Q6J("ngIf",e.lcZ(10,15,n.paginationService.data$)),e.xp6(5),e.Q6J("ngIf",e.lcZ(15,17,n.paginationService.data$)),e.xp6(5),e.hij(" Showing 1 - ",e.lcZ(20,19,null==(o=e.lcZ(21,21,n.paginationService.data$))?null:o.length)," of "),e.xp6(3),e.Q6J("ngIf",n.paginationService.hideCount),e.xp6(1),e.Q6J("ngIf",!n.paginationService.hideCount&&e.lcZ(24,23,n.allDataCount$)),e.xp6(2),e.hij(" records ~ ",n.paginationService.footerPageNumber," Page "),e.xp6(2),e.Q6J("ngIf",n.paginationService.disableNextButton&&!n.paginationService.goToLastPage),e.xp6(1),e.Q6J("ngIf",n.paginationService.disableNextButton&&!n.paginationService.goToLastPage)}}let G=(()=>{class t{constructor(n,o,i,a,c){this.http=n,this.toastr=o,this.dialog=i,this.paginationService=a,this.productService=c,this.loaderAPI="PriceLoader/LoadMultiple",this.getDataAPI="Price/GetMultipleChannelComparison",this.rowCountAPI="Inventory/GetMultipleChannelComparisonRowCount",this.filterOptions=[{Key:1,Value:"All"},{Key:3,Value:"Difference"}],this.pageData={Title:"Price",Nav:[{Title:"Price Cache",Url:"/menu/price",Active:!0},{Title:"Price Realtime",Url:"/menu/price/realtime",Active:!1}]}}ngOnInit(){this.initPageLoader()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.getDataAPI,this.loader$=this.http.post(`/api/${this.loaderAPI}`).pipe((0,A.b)(n=>{this.channelOptions=n.Options.Channel,n.Filter={PageNumber:n.Filter.PageNumber,RowCount:n.Filter.RowCount,filterModel:1},this.searchFilter=n.Filter,this.paginationService.resetToFirstPage(this.searchFilter)}))}onSearch(n){this.searchFilter.text=n,this.paginationService.resetToFirstPage(this.searchFilter)}openScanDialog(){this.searchFilter.ChannelID=_.g.GuidEMpty;let n=JSON.parse(JSON.stringify(this.searchFilter));this.dialog.open(Z.j,{data:{filter:n,channelOptions:this.channelOptions},width:"40%"}).afterClosed().pipe((0,d.h)(i=>_.g.IsNotEmpty(i))).subscribe(i=>{this.searchFilter.ChannelID=i.ChannelID,this.searchFilter.ScanFull=i.ScanFull,this.searchFilter.UpdatedProduct=i.UpdatedProduct,this.scanAll()})}scanAll(){this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct).subscribe(n=>{let o=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.initPageLoader(),this.productService.successToastrScanAllProduct(n,o,!this.searchFilter.UpdatedProduct)})}updatePrice(n){let o=this.productService.selectedVariantProduct(n);if(o.length>0){let a=o.map(s=>({ID:s.ID,Code:s.Code,Price:s.UnitPrice})),c={ListChannelID:this.channelOptions.filter(s=>s.selected).map(s=>s.ID),ListPrice:a};this.http.post("/api/Price/UpdateChannel",c).subscribe(s=>{this.paginationService.resetToFirstPage(this.searchFilter),this.toastr.success("Successfully updated "+c.ListPrice.length+" items in "+c.ListChannelID.length+" channels","Success")})}}updatePriceByVariant(n){let o={ID:n.ChannelID,ChannelItemID:n.ChannelItemID,ChannelVariantID:n.ChannelVariationID,Price:n.Price-0,VariantID:n.ID};this.http.post("/api/Price/UpdatePriceByID",o).subscribe(i=>{let a=this.productService.findChannelById(o.ID,this.channelOptions);this.toastr.success("Successfully updated "+n.ItemName+"("+n.VarName+") price in "+a.Name+" to "+o.Price,"Success"),this.paginationService.resetToFirstPage(this.searchFilter)})}onUpdateItems(n){const o=this.productService.selectedVariantProduct(n);this.dialog.open(y.j,{data:{selectedItems:o,channels:this.channelOptions},width:"40%"}).afterClosed().pipe((0,d.h)(i=>void 0!==i)).subscribe(i=>{this.channelOptions=i,this.updatePrice(n)})}getRowCount(){this.paginationService.hideCount=!1,this.allDataCount$=this.http.post(`/api/${this.rowCountAPI}`,{})}onNextPage(){this.paginationService.onNextPage(this.searchFilter)}onLastPage(){this.http.post(`/api/${this.rowCountAPI}`,{}).subscribe({next:n=>{this.searchFilter.PageNumber=1,this.paginationService.getAllData(this.searchFilter,n)}})}ngOnDestroy(){this.paginationService.destroy()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.O),e.Y36(x._W),e.Y36(P.uw),e.Y36(F.b),e.Y36(b.M))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-price-pos-channel"]],decls:2,vars:3,consts:[["headerTitle","Price Comparison",3,"pageData","hideSearchBox","hideSearchDropdown","textButton","onSubmit",4,"ngIf"],["headerTitle","Price Comparison",3,"pageData","hideSearchBox","hideSearchDropdown","textButton","onSubmit"],["container",""],["name","filterModel",3,"model","options","border","modelChange"],[1,"d-flex"],[4,"ngIf"],[1,"container-fluid","mt-3"],[1,"row"],["class","col-md-12",4,"ngIf"],[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],["style","cursor: pointer",3,"click",4,"ngIf"],[1,"btn-group"],["role","button","class","btn btn-outline-secondary btn-sm text-primary","title","Load more for 20 products",3,"click",4,"ngIf"],["role","button","class","btn btn-outline-secondary btn-sm text-primary","title","Load all products",3,"click",4,"ngIf"],["type","button","data-cy","scanInPos","class","btn btn-outline-secondary shadow rounded me-3",3,"click",4,"ngIf"],["type","button","class","btn btn-success shadow rounded","data-toggle","modal",3,"click",4,"ngIf"],["type","button","data-cy","scanInPos",1,"btn","btn-outline-secondary","shadow","rounded","me-3",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],["type","button","data-toggle","modal",1,"btn","btn-success","shadow","rounded",3,"click"],[1,"fas","fa-chevron-circle-up"],[1,"col-md-12"],["table","price",3,"data","channel","filter","onSubmit"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-share"]],template:function(n,o){1&n&&(e.YNc(0,R,29,25,"mainpanel",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,o.loader$))},dependencies:[p.O5,g.p,w,D.a,p.Ov,p.JJ],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}"]}),t})();var u=r(8705),N=r(7945),B=r(1290);function j(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"button",19),e.NdJ("click",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.onUpdateItems())}),e._UZ(1,"i",20),e._uU(2," Update "),e.qZA()}}function z(t,l){if(1&t&&(e.TgZ(0,"th",21),e._uU(1),e.qZA()),2&t){const n=l.$implicit;e.xp6(1),e.Oqu(n.Name)}}function W(t,l){1&t&&(e.ynx(0),e.TgZ(1,"th",22),e._uU(2," Expected (POS) "),e.qZA(),e.TgZ(3,"th",22),e._uU(4," Channel "),e.qZA(),e.BQk())}function X(t,l){if(1&t&&e._UZ(0,"img",34),2&t){const n=e.oxw(3).$implicit;e.s9C("src",null==n?null:n.ImageUrl,e.LSH)}}function ee(t,l){1&t&&e._UZ(0,"img",35)}const ne=function(t){return{"border-bottom":t}};function te(t,l){if(1&t&&(e.ynx(0),e.TgZ(1,"td",29),e.YNc(2,X,1,1,"img",30),e.YNc(3,ee,1,0,"ng-template",null,31,e.W1O),e.qZA(),e.TgZ(5,"td",32)(6,"h5",33),e._uU(7),e.qZA(),e._UZ(8,"br"),e.TgZ(9,"small"),e._uU(10),e.qZA()(),e.BQk()),2&t){const n=e.MAs(4),o=e.oxw().index,i=e.oxw().$implicit,a=e.oxw();e.xp6(1),e.Q6J("rowSpan",null==i?null:i.Variants.length)("ngClass",e.VKq(7,ne,o+1==a.products.length)),e.xp6(1),e.Q6J("ngIf",null==i?null:i.ImageUrl)("ngIfElse",n),e.xp6(3),e.Q6J("rowSpan",null==i?null:i.Variants.length),e.xp6(2),e.Oqu(null==i?null:i.Name),e.xp6(3),e.hij("(",null==i?null:i.Category,")")}}const ie=function(t){return{"bg-gradient-warning":t}};function oe(t,l){if(1&t){const n=e.EpF();e.ynx(0),e.TgZ(1,"td",38),e._uU(2),e.ALo(3,"number"),e.qZA(),e.TgZ(4,"td",39)(5,"div",40)(6,"div",41),e.NdJ("click",function(){const a=e.CHM(n).$implicit,c=e.oxw(2).$implicit,s=e.oxw().$implicit,Je=e.oxw();return e.KtG(Je.openTableDialog(c,s,a))}),e._uU(7),e.ALo(8,"number"),e._UZ(9,"br"),e.qZA(),e.TgZ(10,"div",42)(11,"a",26),e._UZ(12,"i",27),e.qZA()()()(),e.BQk()}if(2&t){const n=l.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,4,n.PriceExpected)," "),e.xp6(2),e.Q6J("ngClass",e.VKq(8,ie,n.Price!=n.PriceExpected)),e.xp6(3),e.hij(" ",e.lcZ(8,6,n.Price)," "),e.xp6(4),e.Q6J("href",n.Url,e.LSH)}}function ae(t,l){1&t&&(e.TgZ(0,"td",43),e._uU(1,"X"),e.qZA(),e.TgZ(2,"td",43),e._uU(3,"X"),e.qZA())}function le(t,l){if(1&t&&(e.ynx(0),e.YNc(1,oe,13,10,"ng-container",36),e.YNc(2,ae,4,0,"ng-template",null,37,e.W1O),e.BQk()),2&t){const n=l.$implicit,o=e.MAs(3),i=e.oxw().$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("ngIf",a.getItemFromChannel(i,n.ID))("ngIfElse",o)}}function ce(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"tr"),e.YNc(1,te,11,9,"ng-container",23),e.TgZ(2,"td",24),e._uU(3),e.qZA(),e.TgZ(4,"td",24)(5,"span"),e._uU(6),e.qZA(),e.TgZ(7,"span",25)(8,"a",26),e._UZ(9,"i",27),e.qZA()()(),e.TgZ(10,"td",28)(11,"input",17),e.NdJ("ngModelChange",function(i){const c=e.CHM(n).$implicit;return e.KtG(c.selected=i)}),e.qZA()(),e.YNc(12,le,4,2,"ng-container",18),e.qZA()}if(2&t){const n=l.$implicit,o=l.index,i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",0==o),e.xp6(2),e.Oqu(null==n?null:n.Model),e.xp6(3),e.Oqu(null==n?null:n.Code),e.xp6(2),e.Q6J("href","https://"+i.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(null==n?null:n.ID),e.LSH),e.xp6(2),e.Q6J("hidden",null==i.searchFilter?null:i.searchFilter.HiddenIPOSInventory),e.xp6(1),e.Q6J("ngModel",n.selected),e.xp6(1),e.Q6J("ngForOf",i.channelOptions)}}function re(t,l){if(1&t&&(e.TgZ(0,"tbody"),e.YNc(1,ce,13,7,"tr",18),e.qZA()),2&t){const n=l.$implicit;e.xp6(1),e.Q6J("ngForOf",n.Variants)}}let se=(()=>{class t{constructor(n,o,i,a){this.http=n,this.toastr=o,this.dialog=i,this.productService=a,this.searchFilter=new B.k,this.products=[],this.checkboxState=!1,this.initPageLoader(),this.filterTypeOptions=[{Key:u.v.ALL,Value:"All"},{Key:u.v.DIFFERENCE,Value:"Difference"}],this.filterType=u.v.ALL,this.pageData={Title:"Price Realtime",Nav:[{Title:"Price Cache",Url:"/menu/price",Active:!1}]},this.hostName=a.getHostName()}initPageLoader(){this.http.post("/api/PriceLoader/LoadMultiple",{}).subscribe(n=>{this.channelOptions=n.Options.Channel,this.searchFilter=n.Filter,this.searchFilter.HiddenIPOSInventory=!1,this.onFilter()})}onSelectAllData(){this.products=this.products.map(n=>(n.Variants&&(n.Variants=n.Variants.map(o=>(o.selected=this.checkboxState,o))),n))}onFilter(n){this.http.post("/api/Price/GetOutletPrice",{text:n,filterModel:this.filterType,PageNumber:this.searchFilter.PageNumber,RowCount:this.searchFilter.RowCount}).subscribe(i=>{this.products=i.Data})}updatePrice(){let n=this.productService.selectedVariantProduct(this.products);if(n.length>0){let o=n.map(c=>c.ID),a={ListChannelID:this.channelOptions.filter(c=>c.selected).map(c=>c.ID),ListID:o};this.http.post("/api/Price/UpdateChannelOutletPrice",a).subscribe({next:c=>{this.resetSelectedChannel(),this.onFilter(),this.toastr.success("Successfully updated "+a.ListID.length+" items in "+a.ListChannelID.length+" channels","Success")},error:c=>{this.resetSelectedChannel()}})}}resetSelectedChannel(){this.channelOptions=this.channelOptions.map(n=>(n.selected=!1,n))}getItemFromChannel(n,o){return n.Channel.find(i=>i.ChannelID==o)}onUpdateItems(){const n=this.productService.selectedVariantProduct(this.products);this.dialog.open(y.j,{data:{selectedItems:n,channels:this.channelOptions},width:"40%"}).afterClosed().pipe((0,d.h)(o=>_.g.IsNotEmpty(o))).subscribe(o=>{this.channelOptions=o,this.updatePrice()})}openTableDialog(n,o,i){let a=JSON.parse(JSON.stringify(n));this.dialog.open(N.k,{data:{Name:o.Name,Variant:a,ChannelID:i?.ChannelID,Table:"price",ChannelItemID:i?.ChannelItemID}}).afterClosed().pipe((0,d.h)(s=>_.g.IsNotEmpty(s))).subscribe(s=>{this.updateProductPrice(s,i)})}updateProductPrice(n,o){let i={ID:n.ChannelID,ChannelItemID:n.ChannelItemID,ChannelVariantID:n.ChannelVariationID,Price:parseFloat(n.Price),VariantID:n.ID,SKU:n.Sku};this.http.post("/api/Price/UpdatePriceByID",i).subscribe(a=>{o.Price=i.Price;const c=this.productService.findChannelById(i.ID,this.channelOptions);this.toastr.success(`Successfully updated ${n.ItemName} (${n.VarName}) inventory in ${c.Name} to ${i.Price}`,"Success")})}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.O),e.Y36(x._W),e.Y36(P.uw),e.Y36(b.M))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-custom-channel-price"]],decls:31,vars:13,consts:[["headerTitle","Price Comparison",3,"pageData","hideSearchBox","hideSearchDropdown","textButton","onSubmit"],["container",""],["name","filterModel",3,"model","options","border","modelChange"],[1,"d-flex"],["type","button","class","btn btn-success shadow rounded","data-toggle","modal",3,"click",4,"ngIf"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["colspan","5"],["scope","col","colspan","2","class","text-center border-bottom-0 border w-10 text-uppercase",4,"ngFor","ngForOf"],["scope","col","colspan","2",1,"text-center","w-20"],["scope","col",1,"text-start"],["scope","col",1,"text-start","w-10"],[3,"hidden"],["type","checkbox",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["type","button","data-toggle","modal",1,"btn","btn-success","shadow","rounded",3,"click"],[1,"fas","fa-chevron-circle-up"],["scope","col","colspan","2",1,"text-center","border-bottom-0","border","w-10","text-uppercase"],[1,"text-end","border-top-0","border","w-10"],[4,"ngIf"],[1,"text-start","border-bottom"],[1,"ms-2"],["target","_blank",3,"href"],[1,"fas","fa-lg","fa-external-link-alt","external-link-custom"],[1,"align-middle",3,"hidden"],[1,"text-center",3,"rowSpan","ngClass"],["class","border rounded w-img",3,"src",4,"ngIf","ngIfElse"],["elsePic",""],[1,"text-center","border-bottom",3,"rowSpan"],[1,"mb-0","item-name"],[1,"border","rounded","w-img",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[4,"ngIf","ngIfElse"],["elseCol",""],[1,"text-end","border"],[1,"text-end","border","pointer","cell-hover",3,"ngClass"],[1,"row","justify-content-end","me-0"],[1,"col-8","px-0","text-center",3,"click"],[1,"col-2","ps-0","text-start","align-self-center"],[1,"table-white","border","text-end",2,"color","red"]],template:function(n,o){1&n&&(e.TgZ(0,"mainpanel",0),e.NdJ("onSubmit",function(a){return o.onFilter(a)}),e.TgZ(1,"filters")(2,"div",1)(3,"div")(4,"h6"),e._uU(5,"Filter by"),e.qZA(),e.TgZ(6,"radio-options",2),e.NdJ("modelChange",function(a){return o.filterType=a}),e.qZA()()()(),e.TgZ(7,"actions")(8,"div",3),e.YNc(9,j,3,0,"button",4),e.qZA()(),e.TgZ(10,"content")(11,"div",5)(12,"div",6)(13,"div",7)(14,"div",8)(15,"table",9)(16,"thead",10)(17,"tr"),e._UZ(18,"th",11),e.YNc(19,z,2,1,"th",12),e.qZA(),e.TgZ(20,"tr")(21,"th",13),e._uU(22,"Product"),e.qZA(),e.TgZ(23,"th",14),e._uU(24,"Variant"),e.qZA(),e.TgZ(25,"th",15),e._uU(26,"SKU"),e.qZA(),e.TgZ(27,"th",16)(28,"input",17),e.NdJ("ngModelChange",function(a){return o.checkboxState=a})("ngModelChange",function(){return o.onSelectAllData()}),e.qZA()(),e.YNc(29,W,5,0,"ng-container",18),e.qZA()(),e.YNc(30,re,2,1,"tbody",18),e.qZA()()()()()()()),2&n&&(e.Q6J("pageData",o.pageData)("hideSearchBox",!1)("hideSearchDropdown",!1)("textButton","Search"),e.xp6(6),e.Q6J("model",o.filterType)("options",o.filterTypeOptions)("border",!1),e.xp6(3),e.Q6J("ngIf",o.productService.hasSelectionVariant(o.products)),e.xp6(10),e.Q6J("ngForOf",o.channelOptions),e.xp6(8),e.Q6J("hidden",null==o.searchFilter?null:o.searchFilter.HiddenIPOSInventory),e.xp6(1),e.Q6J("ngModel",o.checkboxState),e.xp6(1),e.Q6J("ngForOf",o.channelOptions),e.xp6(1),e.Q6J("ngForOf",o.products))},dependencies:[p.mk,p.sg,p.O5,h.Wl,h.JJ,h.On,g.p,w,p.JJ],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%]{font-weight:400;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}"]}),t})();var M=r(455),U=r(266);function pe(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2).ngIf,a=e.oxw();return e.KtG(a.openScanDialog(i))}),e._UZ(1,"i",9),e._uU(2," Scan Channel "),e.qZA()}}function he(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"button",10),e.NdJ("click",function(){e.CHM(n);const i=e.oxw().ngIf,a=e.oxw(2);return e.KtG(a.updateStock(i))}),e._UZ(1,"i",11),e._uU(2," Update "),e.qZA()}}function _e(t,l){if(1&t&&(e.TgZ(0,"actions")(1,"div",5)(2,"div"),e.YNc(3,pe,3,0,"button",6),e.YNc(4,he,3,0,"button",7),e.qZA()()()),2&t){const n=l.ngIf,o=e.oxw(2);e.xp6(3),e.Q6J("ngIf",!o.productService.hasSelectionVariant(n)),e.xp6(1),e.Q6J("ngIf",o.productService.hasSelectionVariant(n))}}function de(t,l){if(1&t&&(e.TgZ(0,"ng-option",32),e._UZ(1,"img",33),e._uU(2),e.qZA()),2&t){const n=l.$implicit;e.Q6J("value",n.ID),e.xp6(1),e.s9C("src",n.Img,e.LSH),e.xp6(1),e.hij("",n.Name," ")}}function ue(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"input",53),e.NdJ("ngModelChange",function(i){e.CHM(n);const a=e.oxw(3).$implicit;return e.KtG(a.selected=i)})("ngModelChange",function(){e.CHM(n);const i=e.oxw(3).$implicit,a=e.oxw(3);return e.KtG(a.onCheckboxStateProduct(i))}),e.qZA()}if(2&t){const n=e.oxw(3).$implicit;e.Q6J("ngModel",n.selected)}}function ge(t,l){if(1&t&&e._UZ(0,"img",54),2&t){const n=e.oxw(3).$implicit;e.s9C("src",n.ThumbnailUrl,e.LSH)}}function me(t,l){1&t&&e._UZ(0,"img",55)}function Ce(t,l){if(1&t&&(e.ynx(0),e.TgZ(1,"td",46)(2,"div",47),e.YNc(3,ue,1,1,"input",48),e.YNc(4,ge,1,1,"img",49),e.YNc(5,me,1,0,"ng-template",null,50,e.W1O),e.qZA()(),e.TgZ(7,"td",51)(8,"span",52),e._uU(9),e.qZA(),e._UZ(10,"br"),e.TgZ(11,"small"),e._uU(12),e.qZA()(),e.BQk()),2&t){const n=e.MAs(6),o=e.oxw().$implicit,i=e.oxw().$implicit;e.xp6(1),e.Q6J("rowSpan",i.Variants.length),e.xp6(2),e.Q6J("ngIf",o.Inventory>=0||i.Variants.length>1),e.xp6(1),e.Q6J("ngIf",i.ThumbnailUrl)("ngIfElse",n),e.xp6(3),e.Q6J("rowSpan",i.Variants.length),e.xp6(2),e.Oqu(i.Name),e.xp6(3),e.hij("(",i.Category,")")}}function fe(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"input",56),e.NdJ("ngModelChange",function(i){e.CHM(n);const a=e.oxw().$implicit;return e.KtG(a.selected=i)}),e.qZA()}if(2&t){const n=e.oxw().$implicit;e.Q6J("ngModel",n.selected)}}function xe(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"div",57)(1,"div",58),e.NdJ("click",function(){e.CHM(n);const i=e.oxw().$implicit,a=e.oxw().$implicit,c=e.oxw(2).ngIf,s=e.oxw();return e.KtG(s.openTableDialog(i,a,c))}),e._uU(2),e.ALo(3,"number"),e.qZA()()}if(2&t){const n=e.oxw().$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==n.Channel[0]?null:n.Channel[0].Price)," ")}}const Pe=function(t){return{"bg-gradient-warning":t}};function be(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"tr"),e.YNc(1,Ce,13,7,"ng-container",4),e.TgZ(2,"td",19),e._uU(3),e.qZA(),e.TgZ(4,"td",22)(5,"span"),e._uU(6),e.qZA(),e.TgZ(7,"span",34)(8,"a",35),e._UZ(9,"i",36),e.qZA()()(),e.TgZ(10,"td",37),e.YNc(11,fe,1,1,"input",38),e.qZA(),e.TgZ(12,"td",22),e._uU(13),e.ALo(14,"number"),e.qZA(),e.TgZ(15,"td",39),e.YNc(16,xe,4,3,"div",40),e.qZA(),e.TgZ(17,"td")(18,"div",41)(19,"div",42)(20,"a",35),e._UZ(21,"i",43),e.qZA(),e._uU(22," \xa0\xa0 "),e.TgZ(23,"span",44),e.NdJ("click",function(){const a=e.CHM(n).$implicit,c=e.oxw(4);return e.KtG(c.refreshPrice(a))}),e._UZ(24,"i",45),e.qZA()()()()()}if(2&t){const n=l.$implicit,o=l.index,i=e.oxw(4);e.xp6(1),e.Q6J("ngIf",0==o),e.xp6(2),e.Oqu(n.Model),e.xp6(3),e.hij(" ",n.Code," "),e.xp6(2),e.Q6J("href","https://"+i.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(null==n?null:n.ID),e.LSH),e.xp6(3),e.Q6J("ngIf",n.Inventory>=0),e.xp6(2),e.hij(" ",e.lcZ(14,9,n.UnitPrice)," "),e.xp6(2),e.Q6J("ngClass",e.VKq(11,Pe,n.UnitPrice!=(null==n.Channel[0]?null:n.Channel[0].Price))),e.xp6(1),e.Q6J("ngIf",n.Channel.length>0),e.xp6(4),e.Q6J("href",null==n.Channel[0]?null:n.Channel[0].Url,e.LSH)}}function Ie(t,l){if(1&t&&(e.ynx(0),e.YNc(1,be,25,13,"tr",26),e.BQk()),2&t){const n=l.$implicit;e.xp6(1),e.Q6J("ngForOf",n.Variants)}}function Se(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"span",59),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.getRowCount())}),e.TgZ(1,"i",60),e._uU(2,"?"),e.qZA()()}}function Te(t,l){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&t){const n=l.ngIf;e.xp6(1),e.Oqu(e.lcZ(2,1,n.Total))}}function ve(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"a",64),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(4);return e.KtG(i.onNextPage())}),e._UZ(1,"i",65),e._uU(2," Next"),e.qZA()}}function Ze(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"a",66),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(4);return e.KtG(i.onLastPage())}),e._UZ(1,"i",67),e._uU(2," Last"),e.qZA()}}function ye(t,l){if(1&t&&(e.TgZ(0,"div",61),e.YNc(1,ve,3,0,"a",62),e.YNc(2,Ze,3,0,"a",63),e.qZA()),2&t){const n=e.oxw(3);e.xp6(1),e.Q6J("ngIf",n.paginationService.disableNextButton&&!n.paginationService.goToLastPage),e.xp6(1),e.Q6J("ngIf",n.paginationService.disableNextButton&&!n.paginationService.goToLastPage)}}function Ae(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"content")(1,"div",12)(2,"div",13)(3,"table",14)(4,"thead",15)(5,"tr")(6,"th",16),e._uU(7," Product "),e.TgZ(8,"div")(9,"mat-slide-toggle",17),e.NdJ("ngModelChange",function(i){e.CHM(n);const a=e.oxw(2);return e.KtG(a.toggleDifferentInventory=i)})("toggleChange",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.onToggleDifferentInventory())}),e.TgZ(10,"small",18),e._uU(11,"Filter Different Price"),e.qZA()()()(),e.TgZ(12,"th",19),e._uU(13,"Variant"),e.qZA(),e.TgZ(14,"th",20),e._uU(15,"SKU"),e.qZA(),e.TgZ(16,"th")(17,"input",21),e.NdJ("change",function(i){const c=e.CHM(n).ngIf,s=e.oxw(2);return e.KtG(s.onSelectAllSKU(i.target.checked,c))}),e.qZA()(),e.TgZ(18,"th",22),e._uU(19,"POS"),e.qZA(),e.TgZ(20,"th")(21,"ng-select",23),e.NdJ("ngModelChange",function(i){e.CHM(n);const a=e.oxw(2);return e.KtG(a.searchFilter.ChannelID=i)})("change",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.search())}),e.YNc(22,de,3,3,"ng-option",24),e.qZA()(),e._UZ(23,"th",25),e.qZA()(),e.TgZ(24,"tbody"),e.YNc(25,Ie,2,1,"ng-container",26),e.qZA()(),e.TgZ(26,"div",27)(27,"div",28)(28,"div",29),e._uU(29),e.ALo(30,"number"),e.YNc(31,Se,3,0,"span",30),e.YNc(32,Te,3,3,"span",4),e.ALo(33,"async"),e._uU(34),e.qZA()(),e.YNc(35,ye,3,2,"div",31),e.qZA()()()()}if(2&t){const n=l.ngIf,o=e.oxw().ngIf,i=e.oxw();e.xp6(9),e.Q6J("ngModel",i.toggleDifferentInventory),e.xp6(12),e.Q6J("clearable",!1)("ngModel",i.searchFilter.ChannelID),e.xp6(1),e.Q6J("ngForOf",o.Options.Channel),e.xp6(3),e.Q6J("ngForOf",n),e.xp6(4),e.hij(" Showing 1 - ",e.lcZ(30,10,null==n?null:n.length)," of "),e.xp6(2),e.Q6J("ngIf",i.paginationService.hideCount),e.xp6(1),e.Q6J("ngIf",e.lcZ(33,12,!i.paginationService.hideCount&&i.allDataCount$)),e.xp6(2),e.hij(" records ~ ",i.paginationService.footerPageNumber," Page "),e.xp6(1),e.Q6J("ngIf",n.length>0)}}function Fe(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"mainpanel",1),e.NdJ("textChange",function(i){e.CHM(n);const a=e.oxw();return e.KtG(a.searchFilter.text=i)})("onSubmit",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.search())}),e.TgZ(1,"filters")(2,"div",2)(3,"div")(4,"label"),e._uU(5,"Page Size"),e.qZA(),e.TgZ(6,"input",3),e.NdJ("ngModelChange",function(i){e.CHM(n);const a=e.oxw();return e.KtG(a.searchFilter.RowCount=i)}),e.qZA()()()(),e.YNc(7,_e,5,2,"actions",4),e.ALo(8,"async"),e.YNc(9,Ae,36,14,"content",4),e.ALo(10,"async"),e.qZA()}if(2&t){const n=e.oxw();e.Q6J("headerTitle",n.pageTitle)("text",n.searchFilter.text),e.xp6(6),e.Q6J("ngModel",n.searchFilter.RowCount),e.xp6(1),e.Q6J("ngIf",e.lcZ(8,5,n.paginationService.data$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(10,7,n.paginationService.data$))}}let we=(()=>{class t{constructor(n,o,i,a,c){this.http=n,this.paginationService=o,this.toastr=i,this.dialog=a,this.productService=c,this.pageTitle="Price Single Channel Comparison",this.toggleDifferentInventory=!1,this.loaderEndpoint="PriceLoader/Load",this.dataEndpoint="Price/GetSingleChannelComparison",this.allDataCountEndpoint="Inventory/GetInventoryByChannelRowCount",this.hostName=this.productService.getHostName()}ngOnInit(){this.initPageLoader()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.dataEndpoint,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`).pipe((0,A.b)(n=>{this.searchFilter=n.Filter,this.searchFilter.filterModel=u.v.ALL,this.paginationService.resetToFirstPage(this.searchFilter)}))}onToggleDifferentInventory(){this.searchFilter.filterModel=this.toggleDifferentInventory?u.v.ALL:u.v.DIFFERENCE,this.search()}onCheckboxStateProduct(n){n.Variants=n.Variants.map(o=>(o.selected=n.selected,o))}openScanDialog(n){let o=JSON.parse(JSON.stringify(this.searchFilter));o.ChannelID=_.g.GuidEMpty,this.dialog.open(Z.j,{data:{filter:o,channelOptions:n.Options.Channel},width:"40%"}).afterClosed().pipe((0,d.h)(i=>_.g.IsNotEmpty(i))).subscribe(i=>{this.searchFilter.ChannelID=i.ChannelID,this.searchFilter.ScanFull=i.ScanFull,this.searchFilter.UpdatedProduct=i.UpdatedProduct,this.refreshChannel(n)})}refreshChannel(n){const o=this.productService.findChannelById(this.searchFilter.ChannelID,n.Options.Channel);this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct).subscribe(()=>{this.initPageLoader(),this.toastr.success(`Successfully scanned from ${o?.Name}`,"Success")})}updateStock(n){let i=this.productService.selectedVariantProduct(n).map(c=>({ID:c.ID,ChannelID:c.Channel[0].ChannelID,Code:c.Code,Price:c.UnitPrice})),a={ListChannelID:[this.searchFilter.ChannelID],ListPrice:i};this.http.post("/api/Price/UpdateChannel",a).subscribe(()=>{this.search(),this.toastr.success(`Successfully updated ${a.ListPrice.length} variants in ${a.ListChannelID.length} channels`,"Success")})}refreshPrice(n){this.http.post("/api/Price/RefreshPriceChannel",{ChannelItemID:n?.Channel[0].ChannelItemID,ChannelVariationID:n?.Channel[0]?.ChannelVariationID,ChannelID:n?.Channel[0]?.ChannelID,VariantID:n.ID}).subscribe(i=>{this.toastr.success("Successfully updated","Success"),this.search()})}search(){this.paginationService.resetToFirstPage(this.searchFilter)}getRowCount(){this.paginationService.hideCount=!1,this.allDataCount$=this.http.post(`/API/${this.allDataCountEndpoint}`,this.searchFilter)}onNextPage(){this.paginationService.onNextPage(this.searchFilter)}onLastPage(){this.http.post(`/API/${this.allDataCountEndpoint}`,this.searchFilter).subscribe({next:n=>{this.paginationService.getAllData(this.searchFilter,n.Total)}})}openTableDialog(n,o,i){let a=JSON.parse(JSON.stringify(n));this.dialog.open(N.k,{data:{Name:o.Name,Variant:a,ChannelID:a?.Channel[0]?.ChannelID,Table:"price",ChannelItemID:a?.Channel[0]?.ChannelItemID}}).afterClosed().pipe((0,d.h)(s=>_.g.IsNotEmpty(s))).subscribe(s=>{this.updateItemAfterDialog(s,i,n)})}updateItemAfterDialog(n,o,i){let a={ID:n.ChannelID,ChannelItemID:n.ChannelItemID,ChannelVariantID:n.ChannelVariationID,Price:parseFloat(n.Price),VariantID:n.ID,SKU:n.Sku};this.http.post("/api/Price/UpdatePriceByID",a).subscribe(c=>{const s=this.productService.findChannelById(a.ID,o.Options.Channel);this.toastr.success(`Successfully updated ${n.ItemName} (${n.VarName}) inventory in ${s.Name} to ${a.Price}`,"Success"),i.Channel[0]&&(i.Channel[0].Price=a.Price)})}onSelectAllSKU(n,o){o=o.map(i=>(i.Variants=i.Variants.map(a=>(a.selected=n,a)),i))}ngOnDestroy(){this.paginationService.destroy()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.O),e.Y36(F.b),e.Y36(x._W),e.Y36(P.uw),e.Y36(b.M))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-price-single-channel"]],decls:2,vars:3,consts:[[3,"headerTitle","text","textChange","onSubmit",4,"ngIf"],[3,"headerTitle","text","textChange","onSubmit"],["container",""],["type","number",3,"ngModel","ngModelChange"],[4,"ngIf"],[1,"d-flex"],["type","button","data-cy","scanInPos","class","btn btn-outline-secondary shadow rounded me-3",3,"click",4,"ngIf"],["class","btn btn-success",3,"click",4,"ngIf"],["type","button","data-cy","scanInPos",1,"btn","btn-outline-secondary","shadow","rounded","me-3",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],[1,"btn","btn-success",3,"click"],[1,"fas","fa-chevron-circle-up"],[1,"container-fluid","mt-5"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["colspan","2",1,"text-center","ps-12",2,"width","36%"],["name","differentInventory",3,"ngModel","ngModelChange","toggleChange"],[1,"fw-bold"],[1,"text-start"],[1,"text-end",2,"width","20%"],["type","checkbox",1,"me-3",3,"change"],[1,"text-end"],["name","channelOption",3,"clearable","ngModel","ngModelChange","change"],[3,"value",4,"ngFor","ngForOf"],[2,"width","4%"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],["style","cursor:pointer",3,"click",4,"ngIf"],["class","btn-group",4,"ngIf"],[3,"value"],[2,"width","18px","margin-right","10px",3,"src"],[1,"ms-2"],["target","_blank",3,"href"],[1,"fas","external-link-custom","fa-external-link-alt"],[1,"align-middle"],["type","checkbox",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-end",3,"ngClass"],["class","row justify-content-end me-0",4,"ngIf"],[1,"row"],[1,"col-12","ps-0","d-flex","justify-content-between"],[1,"fas","external-link-custom","fa-lg","fa-external-link-alt"],["matTooltip","Refresh Unit Price according to seller center",1,"pl-5","cursor-pointer",3,"click"],[1,"fas","external-link-custom","fa-sync","fa-lg"],[1,"text-start",2,"width","0%",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-start"],["type","checkbox","class","me-3",3,"ngModel","ngModelChange",4,"ngIf"],["class","border rounded w-img","style","margin-left: 20px",3,"src",4,"ngIf","ngIfElse"],["elsePic",""],[1,"text-start",3,"rowSpan"],[1,"item-name","mb-0"],["type","checkbox",1,"me-3",3,"ngModel","ngModelChange"],[1,"border","rounded","w-img",2,"margin-left","20px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img",2,"margin-left","20px"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"row","justify-content-end","me-0"],[1,"col-8","ps-0","pe-12","text-end",2,"cursor","pointer",3,"click"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],[1,"btn-group"],["role","button","class","btn btn-outline-secondary btn-sm text-primary","title","Load more for 20 products",3,"click",4,"ngIf"],["role","button","class","btn btn-outline-secondary btn-sm text-primary","title","Load all products",3,"click",4,"ngIf"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-share"]],template:function(n,o){1&n&&(e.YNc(0,Fe,11,9,"mainpanel",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,o.loader$))},dependencies:[p.mk,p.sg,p.O5,h.Fj,h.wV,h.Wl,h.JJ,h.On,g.p,C.w9,C.jq,M.Rr,U.gM,p.Ov,p.JJ],styles:[".w-img[_ngcontent-%COMP%]{width:40px;height:40px}input[type=checkbox][_ngcontent-%COMP%]{width:15px;height:15px}i.fas.custom-size[_ngcontent-%COMP%]{font-size:13px}.item-name[_ngcontent-%COMP%]{font-size:larger}"]}),t})();var S=r(8063);const De=[{path:"",component:J,children:[{path:"",redirectTo:"SingleChannel",pathMatch:"full"},{path:"pos",component:G,canActivate:[S.a],data:{title:"Global Price Comparison"}},{path:"OutletPrice",component:se,canActivate:[S.a],data:{title:"Outlet Price Comparison"}},{path:"SingleChannel",component:we,canActivate:[S.a],data:{title:"Price Single Channel Comparison"}}]}];let Ne=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[p.ez,m.Bz.forChild(De)]}),t})();var Me=r(6709);let Ue=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[p.ez,h.u5,v.Z,g.R,m.Bz,C.A0,Ne,h.UX,M.rP,L,Me.p9,D.U,U.AV]}),t})()}}]);
@@ -65,7 +65,7 @@
65
65
  position: relative;
66
66
  overflow: hidden;
67
67
  margin: 0 0 6px;
68
- padding: 0.75rem 1.25rem 0.75rem 50px;
68
+ padding: 0.2rem 1.25rem 0.75rem 50px;
69
69
  width: 300px;
70
70
  background-position: 15px center;
71
71
  background-repeat: no-repeat;
@@ -84,7 +84,7 @@
84
84
  }
85
85
  .toast-close-button {
86
86
  position: relative;
87
- right: -0.3em;
87
+ right: -1.3em;
88
88
  top: -0.3em;
89
89
  float: right;
90
90
  font-size: 20px;
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[592],{1290:(d,c,r)=>{r.d(c,{k:()=>s});class s{}},4810:(d,c,r)=>{r.d(c,{T:()=>e});var s=r(4650);let e=(()=>{class i{constructor(){}getBrowserName(){const a=window.navigator.userAgent.toLowerCase();switch(!0){case a.indexOf("edge")>-1||a.indexOf("edg")>-1:return"edge";case a.indexOf("opr")>-1:return"opera";case a.indexOf("chrome")>-1:return"chrome";case a.indexOf("trident")>-1:return"ie";case a.indexOf("firefox")>-1:return"firefox";case a.indexOf("safari")>-1:return"safari";default:return"other"}}}return i.\u0275fac=function(a){return new(a||i)},i.\u0275prov=s.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})()},2594:(d,c,r)=>{r.d(c,{K:()=>g,n:()=>a});var s=r(6895),e=r(4650);function i(t,l){if(1&t){const o=e.EpF();e.TgZ(0,"span",10),e.NdJ("click",function(){e.CHM(o);const u=e.oxw();return u.getTotal(),e.KtG(u.hasClicked=!0)}),e.TgZ(1,"i",11),e._uU(2,"?"),e.qZA()()}}function p(t,l){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&t){const o=e.oxw();e.xp6(1),e.Oqu(e.lcZ(2,1,o.paginationTotal))}}let a=(()=>{class t{constructor(){this.get=new e.vpe,this.change=new e.vpe,this.next=new e.vpe,this.previous=new e.vpe,this.total=new e.vpe,this.hasClicked=!1}changePage(o){this.filter.PageNumber=o.pageIndex+1,this.change.emit(this.filter)}getTotal(){this.total.emit()}PreviousPage(){this.previous.emit()}NextPage(){this.next.emit()}}return t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-mat-paginator-no-count"]],inputs:{filter:"filter",paginationTotal:"paginationTotal",totaldata:"totaldata",hasClicked:"hasClicked"},outputs:{get:"get",change:"change",next:"next",previous:"previous",total:"total"},decls:13,vars:10,consts:[[1,"d-flex","justify-content-end","mt-5"],[1,"d-sm-block","collapse","mt-3","me-5"],[1,"text-dark","hidden-xxs"],["style","cursor:pointer",3,"click",4,"ngIf"],[4,"ngIf"],[1,"btn-group"],["role","button",1,"btn","btn-outline-secondary","btn-sm","me-3","border-0",3,"disabled","click"],[1,"fas","fa-chevron-left"],["role","button",1,"btn","btn-outline-secondary","btn-sm","border-0",3,"disabled","click"],[1,"fas","fa-chevron-right"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"]],template:function(o,n){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._uU(3),e.ALo(4,"number"),e.ALo(5,"number"),e.YNc(6,i,3,0,"span",3),e.YNc(7,p,3,3,"span",4),e.qZA()(),e.TgZ(8,"div",5)(9,"button",6),e.NdJ("click",function(){return n.PreviousPage()}),e._UZ(10,"i",7),e.qZA(),e.TgZ(11,"button",8),e.NdJ("click",function(){return n.NextPage()}),e._UZ(12,"i",9),e.qZA()()()),2&o&&(e.xp6(3),e.AsE(" Showing ",e.lcZ(4,6,n.filter.PageSize*(n.filter.PageNumber-1)+1)," - ",e.lcZ(5,8,n.filter.PageSize*(n.filter.PageNumber-1)+n.totaldata)," of "),e.xp6(3),e.Q6J("ngIf",!n.hasClicked),e.xp6(1),e.Q6J("ngIf",n.hasClicked),e.xp6(2),e.Q6J("disabled",1==n.filter.PageNumber),e.xp6(2),e.Q6J("disabled",n.filter.PageSize*(n.filter.PageNumber-1)+n.totaldata==n.paginationTotal||n.totaldata<n.filter.PageSize))},dependencies:[s.O5,s.JJ]}),t})(),g=(()=>{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[s.ez]}),t})()}}]);
@@ -10,13 +10,13 @@
10
10
  <link rel="icon" type="image/x-icon" href="favicon.ico">
11
11
  <link href="//fonts.googleapis.com/css?family=Roboto:300,400,700|Roboto+Slab:400,700" rel="stylesheet" type="text/css">
12
12
  <link href="//fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
13
- <link href="https://use.fontawesome.com/releases/v5.0.8/css/all.css" rel="stylesheet">
13
+ <link href="https://use.fontawesome.com/releases/v6.2.0/css/all.css" rel="stylesheet">
14
14
  <script>
15
15
  (function () { var w = window; var ic = w.Intercom; if (typeof ic === "function") { ic('reattach_activator'); ic('update', w.intercomSettings); } else { var d = document; var i = function () { i.c(arguments); }; i.q = []; i.c = function (args) { i.q.push(args); }; w.Intercom = i; var l = function () { var s = d.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://widget.intercom.io/widget/xv1oomgl'; var x = d.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); }; if (w.attachEvent) { w.attachEvent('onload', l); } else { w.addEventListener('load', l, false); } } })();
16
16
  </script>
17
- <style>@charset "UTF-8";:root{--bs-blue:#337ab7;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#c9302c;--bs-orange:#f6a828;--bs-yellow:#ffc107;--bs-green:#89b03e;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#ffffff;--bs-gray:#cccccc;--bs-gray-dark:#343a40;--bs-gray-100:#dddddd;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#cccccc;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#4d4d4d;--bs-primary:#337ab7;--bs-success:#89b03e;--bs-secondary:#cccccc;--bs-dark:#4d4d4d;--bs-light:#dddddd;--bs-light-gray:rgba(203, 203, 210, .15);--bs-light-blue:#dfeffc;--bs-danger:#c9302c;--bs-warning:#f6a828;--bs-primary-rgb:51, 122, 183;--bs-success-rgb:137, 176, 62;--bs-secondary-rgb:204, 204, 204;--bs-dark-rgb:77, 77, 77;--bs-light-rgb:221, 221, 221;--bs-light-gray-rgb:203, 203, 210;--bs-light-blue-rgb:223, 239, 252;--bs-danger-rgb:201, 48, 44;--bs-warning-rgb:246, 168, 40;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:51, 51, 51;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family:Roboto, sans-serif;--bs-body-font-size:.75rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#333333;--bs-body-bg:#ffffff;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, .175);--bs-border-radius:.375rem;--bs-border-radius-sm:.25rem;--bs-border-radius-lg:.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-2xl:2rem;--bs-border-radius-pill:50rem;--bs-link-color:#0976b4;--bs-link-hover-color:#075e90;--bs-code-color:#d63384;--bs-highlight-bg:#fff3cd}*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}@media (max-width: 991px){body{position:relative}}html,body{height:100%}@media print{html,body{height:auto}body{color:#000!important}}</style><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.3/Marketplace/styles.f8366e17917068bd.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.3/Marketplace/styles.f8366e17917068bd.css"></noscript></head>
17
+ <style>@charset "UTF-8";:root{--bs-blue:#337ab7;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#c9302c;--bs-orange:#f6a828;--bs-yellow:#ffc107;--bs-green:#89b03e;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#ffffff;--bs-gray:#cccccc;--bs-gray-dark:#343a40;--bs-gray-100:#dddddd;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#cccccc;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#4d4d4d;--bs-primary:#337ab7;--bs-success:#89b03e;--bs-secondary:#cccccc;--bs-dark:#4d4d4d;--bs-light:#dddddd;--bs-light-gray:rgba(203, 203, 210, .15);--bs-light-blue:#dfeffc;--bs-danger:#c9302c;--bs-warning:#f6a828;--bs-primary-rgb:51, 122, 183;--bs-success-rgb:137, 176, 62;--bs-secondary-rgb:204, 204, 204;--bs-dark-rgb:77, 77, 77;--bs-light-rgb:221, 221, 221;--bs-light-gray-rgb:203, 203, 210;--bs-light-blue-rgb:223, 239, 252;--bs-danger-rgb:201, 48, 44;--bs-warning-rgb:246, 168, 40;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:51, 51, 51;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family:Roboto, sans-serif;--bs-body-font-size:.75rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#333333;--bs-body-bg:#ffffff;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, .175);--bs-border-radius:.375rem;--bs-border-radius-sm:.25rem;--bs-border-radius-lg:.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-2xl:2rem;--bs-border-radius-pill:50rem;--bs-link-color:#0976b4;--bs-link-hover-color:#075e90;--bs-code-color:#d63384;--bs-highlight-bg:#fff3cd}*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}@media (max-width: 991px){body{position:relative}}html,body{height:100%}@media print{html,body{height:auto}body{color:#000!important}}</style><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.5/Marketplace/styles.ab4c60b3cc2298c3.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.5/Marketplace/styles.ab4c60b3cc2298c3.css"></noscript></head>
18
18
  <body>
19
19
  <app-root></app-root>
20
- <script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.3/Marketplace/runtime.9cbc4802b0456746.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.3/Marketplace/polyfills.8d85b0533e3f867a.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.3/Marketplace/scripts.09af772bfa77d50d.js" defer></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.3/Marketplace/main.f30bf3b0f501021c.js" type="module"></script>
20
+ <script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.5/Marketplace/runtime.22e3909f138762cb.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.5/Marketplace/polyfills.8d85b0533e3f867a.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.5/Marketplace/scripts.09af772bfa77d50d.js" defer></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.5/Marketplace/main.2fa426747cc66a26.js" type="module"></script>
21
21
 
22
22
  </body></html>