marketplacepos 2.9.3 → 2.9.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 (29) hide show
  1. package/Marketplace/174.491c4991a4f8e404.js +1 -0
  2. package/Marketplace/19.124a066645320965.js +1 -0
  3. package/Marketplace/213.0e33a2cc7393deb2.js +1 -0
  4. package/Marketplace/360.5c7b51c35e7142e7.js +1 -0
  5. package/Marketplace/{369.a12060880985ee8f.js → 369.a1e3b731aeb5243f.js} +1 -1
  6. package/Marketplace/379.25d1b1c637903c75.js +1 -0
  7. package/Marketplace/397.c1a8fad6c2ca3235.js +1 -0
  8. package/Marketplace/72.23b7f31fc45323cb.js +1 -0
  9. package/Marketplace/754.086e7f7a5377c7d9.js +1 -0
  10. package/Marketplace/767.64dd12e70c78eb25.js +1 -0
  11. package/Marketplace/835.ea5f86512592f641.js +1 -0
  12. package/Marketplace/874.1fbcd1001b41f18e.js +1 -0
  13. package/Marketplace/common.1b119d9b7a972f87.js +1 -0
  14. package/Marketplace/index.html +3 -2
  15. package/Marketplace/{main.6966bb7fcafbe0e4.js → main.cbb985d0c847641f.js} +1 -1
  16. package/Marketplace/runtime.8ddf6965934d46b2.js +1 -0
  17. package/package.json +1 -1
  18. package/Marketplace/213.d00d0a3f05c831f7.js +0 -1
  19. package/Marketplace/360.8279e3b4ceab63e1.js +0 -1
  20. package/Marketplace/378.7f743ac9660ec6e6.js +0 -1
  21. package/Marketplace/379.aad8784dbdb3dd33.js +0 -1
  22. package/Marketplace/395.2943aa5a44308399.js +0 -1
  23. package/Marketplace/397.8ba047b91801962d.js +0 -1
  24. package/Marketplace/533.cc5ab7f3ce13770c.js +0 -1
  25. package/Marketplace/655.ae475c8285604367.js +0 -1
  26. package/Marketplace/767.d939ac65d1cb16fb.js +0 -1
  27. package/Marketplace/874.5b06431d2b5a1e8f.js +0 -1
  28. package/Marketplace/common.af67cc08f47a8d44.js +0 -1
  29. package/Marketplace/runtime.5db60124bb5bf7cb.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[874],{1874:(Ke,N,l)=>{l.r(N),l.d(N,{PriceModule:()=>m});var s=l(6895),J=l(2937),b=l(7481),I=l(284),p=l(4006),K=l(8796),e=l(4650);class C{constructor(){this.priceTabs=[{Title:"Single Channel Comparison",Url:"/menu/price/SingleChannel"},{Title:"Multi Channel Comparison",Url:"/menu/price/pos"},{Title:"Custom Channel Price",Url:"/menu/price/OutletPrice"}]}}C.\u0275fac=function(n){return new(n||C)},C.\u0275cmp=e.Xpm({type:C,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,t){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",t.priceTabs))},dependencies:[J.e,I.lC]});var U=l(8231),M=l(6304),O=l(8505),h=l(9300),_=l(1889),T=l(1318),S=l(7185),v=l(5412),k=l(9425),Z=l(6082),L=l(6114);function G(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(3);return e.KtG(a.openScanDialog())}),e._UZ(1,"i",17),e._uU(2," Scan Channel "),e.qZA()}}function H(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"button",18),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().ngIf,c=e.oxw(2);return e.KtG(c.onUpdateItems(a))}),e._UZ(1,"i",19),e._uU(2," Update "),e.qZA()}}function R(i,n){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,G,3,0,"button",14),e.YNc(2,H,3,0,"button",15),e.qZA()),2&i){const t=n.ngIf,o=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!o.productService.hasSelectionVariant(t)),e.xp6(1),e.Q6J("ngIf",o.productService.hasSelectionVariant(t))}}function B(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"div",20)(1,"app-table",21),e.NdJ("onToggle",function(a){e.CHM(t);const c=e.oxw(2);return e.KtG(c.onShowDifferencePrice(a))})("onSubmit",function(a){e.CHM(t);const c=e.oxw(2);return e.KtG(c.updatePriceByVariant(a))}),e.ALo(2,"async"),e.qZA()()}if(2&i){const t=e.oxw().ngIf,o=e.oxw();e.xp6(1),e.Q6J("showProductToggle",!0)("data",e.lcZ(2,4,o.paginationService.data$))("channel",t.Options.Channel)("filter",t.Filter)}}function j(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"span",22),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.getRowCount())}),e.TgZ(1,"i",23),e._uU(2,"?"),e.qZA()()}}function z(i,n){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&i){const t=n.ngIf;e.xp6(1),e.Oqu(e.lcZ(2,1,t))}}function W(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"a",24),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onNextPage())}),e._UZ(1,"i",25),e._uU(2," Next"),e.qZA()}}function X(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"a",26),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onLastPage())}),e._UZ(1,"i",27),e._uU(2," Last"),e.qZA()}}function ee(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"mainpanel",1),e.NdJ("onSubmit",function(a){e.CHM(t);const c=e.oxw();return e.KtG(c.onSearch(a))}),e.TgZ(1,"actions")(2,"div",2),e.YNc(3,R,3,2,"div",3),e.ALo(4,"async"),e.qZA()(),e.TgZ(5,"content")(6,"div",4)(7,"div",5),e.YNc(8,B,3,6,"div",6),e.ALo(9,"async"),e.qZA(),e.TgZ(10,"div",7)(11,"div",8)(12,"div",9),e._uU(13),e.ALo(14,"number"),e.ALo(15,"async"),e.YNc(16,j,3,0,"span",10),e.YNc(17,z,3,3,"span",3),e.ALo(18,"async"),e._uU(19),e.qZA()(),e.TgZ(20,"div",11),e.YNc(21,W,3,0,"a",12),e.YNc(22,X,3,0,"a",13),e.qZA()()()()()}if(2&i){const t=e.oxw();let o;e.Q6J("pageData",t.pageData)("hideSearchDropdown",!0)("textButton","Search"),e.xp6(3),e.Q6J("ngIf",e.lcZ(4,11,t.paginationService.data$)),e.xp6(5),e.Q6J("ngIf",e.lcZ(9,13,t.paginationService.data$)),e.xp6(5),e.hij(" Showing 1 - ",e.lcZ(14,15,null==(o=e.lcZ(15,17,t.paginationService.data$))?null:o.length)," of "),e.xp6(3),e.Q6J("ngIf",t.paginationService.hideCount),e.xp6(1),e.Q6J("ngIf",!t.paginationService.hideCount&&e.lcZ(18,19,t.allDataCount$)),e.xp6(2),e.hij(" records ~ ",t.paginationService.footerPageNumber," Page "),e.xp6(2),e.Q6J("ngIf",t.paginationService.disableNextButton&&!t.paginationService.goToLastPage),e.xp6(1),e.Q6J("ngIf",t.paginationService.disableNextButton&&!t.paginationService.goToLastPage)}}class f{constructor(n,t,o,a,c){this.http=n,this.toastr=t,this.dialog=o,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,O.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)}))}onShowDifferencePrice(n){this.searchFilter.filterModel=1,n&&(this.searchFilter.filterModel=3),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(U.j,{data:{filter:n,channelOptions:this.channelOptions},width:"600px"}).afterClosed().pipe((0,h.h)(o=>_.g.IsNotEmpty(o))).subscribe(o=>{this.searchFilter.ChannelID=o.ChannelID,this.searchFilter.ScanFull=o.ScanFull,this.searchFilter.UpdatedProduct=o.UpdatedProduct,this.searchFilter.Async=o.Async,this.scanAll()})}scanAll(){this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct,this.searchFilter.Async).subscribe(n=>{if(this.searchFilter.Async)this.toastr.warning("You will be notified when the scan is completed.","Scan In Progress",{toastClass:"ngx-toastr toast-waiting"});else{let t=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.initPageLoader(),this.productService.successToastrScanAllProduct(n,t,!this.searchFilter.UpdatedProduct)}})}updatePrice(n){let t=this.productService.selectedVariantProduct(n);if(t.length>0){let a=t.map(r=>({ID:r.ID,Code:r.Code,Price:r.UnitPrice})),c={ListChannelID:this.channelOptions.filter(r=>r.selected).map(r=>r.ID),ListPrice:a};this.http.post("/api/Price/UpdateChannel",c).subscribe(r=>{this.paginationService.resetToFirstPage(this.searchFilter),this.toastr.success("Successfully updated "+c.ListPrice.length+" items in "+c.ListChannelID.length+" channels","Success")})}}updatePriceByVariant(n){let t={ID:n.ChannelID,ChannelItemID:n.ChannelItemID,ChannelVariantID:n.ChannelVariationID,Price:n.Price-0,VariantID:n.ID};this.http.post("/api/Price/UpdatePriceByID",t).subscribe(o=>{let a=this.productService.findChannelById(t.ID,this.channelOptions);this.toastr.success("Successfully updated "+n.ItemName+"("+n.VarName+") price in "+a.Name+" to "+t.Price,"Success"),this.paginationService.resetToFirstPage(this.searchFilter)})}onUpdateItems(n){const t=this.productService.selectedVariantProduct(n);this.dialog.open(M.j,{data:{selectedItems:t,channels:this.channelOptions},width:"600px"}).afterClosed().pipe((0,h.h)(o=>void 0!==o)).subscribe(o=>{this.channelOptions=o,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()}}f.\u0275fac=function(n){return new(n||f)(e.Y36(T.O),e.Y36(S._W),e.Y36(v.uw),e.Y36(k.b),e.Y36(Z.M))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-price-pos-channel"]],decls:2,vars:3,consts:[["headerTitle","Price Comparison",3,"pageData","hideSearchDropdown","textButton","onSubmit",4,"ngIf"],["headerTitle","Price Comparison",3,"pageData","hideSearchDropdown","textButton","onSubmit"],[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"],["productToggleTitle","FILTER DIFFERENT PRICE","table","price",3,"showProductToggle","data","channel","filter","onToggle","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,t){1&n&&(e.YNc(0,ee,23,21,"mainpanel",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,t.loader$))},dependencies:[s.O5,b.p,L.a,s.Ov,s.JJ],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}"]});var g=l(8705),Q=l(7945),te=l(1290),E=l(8703),q=l(1739),y=l(1948);function ne(i,n){if(1&i&&(e.TgZ(0,"mat-radio-button",3),e._uU(1),e.qZA()),2&i){const t=n.$implicit,o=n.index,a=e.oxw();e.Q6J("value",t.Key)("name",a.name)("title",a.tooltipsText[o]?a.tooltipsText[o]:""),e.xp6(1),e.hij(" ",t.Value,"")}}const ie=function(i){return{"border-0 rounded":i}};class d{constructor(){this.modelChange=new e.vpe,this.border=!1,this.tooltipsText=[]}change(n){this.modelChange.emit(n)}}d.\u0275fac=function(n){return new(n||d)},d.\u0275cmp=e.Xpm({type:d,selectors:[["radio-options"]],inputs:{model:"model",options:"options",border:"border",name:"name",tooltipsText:"tooltipsText"},outputs:{modelChange:"modelChange"},standalone:!0,features:[e.jDz],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,t){1&n&&(e.TgZ(0,"div",0)(1,"mat-radio-group",1),e.NdJ("ngModelChange",function(a){return t.change(a)}),e.YNc(2,ne,2,4,"mat-radio-button",2),e.qZA()()),2&n&&(e.Q6J("ngClass",e.VKq(3,ie,0==t.border)),e.xp6(1),e.Q6J("ngModel",t.model),e.xp6(1),e.Q6J("ngForOf",t.options))},dependencies:[s.ez,s.mk,s.sg,y.Fk,y.VQ,y.U0,p.u5,p.JJ,p.On],styles:[".mat-radio-label{margin-top:auto;margin-bottom:auto}"]});var w=l(4954);function oe(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"button",18),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.onUpdateItems())}),e._UZ(1,"i",19),e._uU(2," Update "),e.qZA()}}function ae(i,n){if(1&i&&(e.TgZ(0,"th",20),e._uU(1),e.qZA()),2&i){const t=n.$implicit;e.xp6(1),e.Oqu(t.Name)}}function ce(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"th")(1,"input",21),e.NdJ("ngModelChange",function(a){e.CHM(t);const c=e.oxw();return e.KtG(c.checkboxState=a)})("ngModelChange",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.onSelectAllData())}),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngModel",t.checkboxState)}}function le(i,n){1&i&&(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 re(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"img",33),e.NdJ("click",function(a){e.CHM(t);const c=e.oxw(3).$implicit,r=e.oxw();return e.KtG(r.onZoomImage(a,null==c?null:c.ImageUrl))}),e.qZA()}if(2&i){const t=e.oxw(3).$implicit;e.s9C("src",null==t?null:t.ImageUrl,e.LSH)}}function se(i,n){1&i&&e._UZ(0,"img",34)}const pe=function(i){return{"border-bottom":i}};function _e(i,n){if(1&i&&(e.ynx(0),e.TgZ(1,"td",28),e.YNc(2,re,1,1,"img",29),e.YNc(3,se,1,0,"ng-template",null,30,e.W1O),e.qZA(),e.TgZ(5,"td",31)(6,"h5",32),e._uU(7),e.qZA(),e._UZ(8,"br"),e.TgZ(9,"small"),e._uU(10),e.qZA()(),e.BQk()),2&i){const t=e.MAs(4),o=e.oxw().index,a=e.oxw().$implicit,c=e.oxw();e.xp6(1),e.Q6J("rowSpan",null==a?null:a.Variants.length)("ngClass",e.VKq(7,pe,o+1==c.products.length)),e.xp6(1),e.Q6J("ngIf",null==a?null:a.ImageUrl)("ngIfElse",t),e.xp6(3),e.Q6J("rowSpan",null==a?null:a.Variants.length),e.xp6(2),e.Oqu(null==a?null:a.Name),e.xp6(3),e.hij("(",null==a?null:a.Category,")")}}function he(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"td",35)(1,"input",21),e.NdJ("ngModelChange",function(a){e.CHM(t);const c=e.oxw().$implicit;return e.KtG(c.selected=a)}),e.qZA()()}if(2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngModel",t.selected)}}const ge=function(i){return{"bg-gradient-warning":i}};function de(i,n){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"td",38),e._uU(2),e.ALo(3,"number"),e.qZA(),e.TgZ(4,"td",39),e.NdJ("click",function(){const c=e.CHM(t).$implicit,r=e.oxw(2).$implicit,D=e.oxw().$implicit,$e=e.oxw();return e.KtG($e.openTableDialog(r,D,c))}),e.TgZ(5,"span",40),e._uU(6),e.ALo(7,"number"),e.qZA(),e.TgZ(8,"a",41),e.NdJ("click",function(a){return null==a?null:a.stopPropagation()}),e._UZ(9,"i",27),e.qZA()(),e.BQk()}if(2&i){const t=n.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,4,t.PriceExpected)," "),e.xp6(2),e.Q6J("ngClass",e.VKq(8,ge,t.Price!=t.PriceExpected)),e.xp6(2),e.hij(" ",e.lcZ(7,6,t.Price)," "),e.xp6(2),e.Q6J("href",t.Url,e.LSH)}}function ue(i,n){1&i&&(e.TgZ(0,"td",42),e._uU(1,"X"),e.qZA(),e.TgZ(2,"td",42),e._uU(3,"X"),e.qZA())}function me(i,n){if(1&i&&(e.ynx(0),e.YNc(1,de,10,10,"ng-container",36),e.YNc(2,ue,4,0,"ng-template",null,37,e.W1O),e.BQk()),2&i){const t=n.$implicit,o=e.MAs(3),a=e.oxw().$implicit,c=e.oxw(2);e.xp6(1),e.Q6J("ngIf",c.getItemFromChannel(a,t.ID))("ngIfElse",o)}}const V=function(i){return[i]};function Ce(i,n){if(1&i&&(e.TgZ(0,"tr"),e.YNc(1,_e,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.YNc(10,he,2,1,"ng-template",16),e.YNc(11,me,4,2,"ng-container",17),e.qZA()),2&i){const t=n.$implicit,o=n.index,a=e.oxw(2);e.xp6(1),e.Q6J("ngIf",0==o),e.xp6(2),e.Oqu(null==t?null:t.Model),e.xp6(3),e.Oqu(null==t?null:t.Code),e.xp6(2),e.Q6J("href","https://"+a.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(null==t?null:t.ID),e.LSH),e.xp6(2),e.Q6J("ngxPermissionsOnly",e.VKq(6,V,a.rolePriceEdit)),e.xp6(1),e.Q6J("ngForOf",a.channelOptions)}}function fe(i,n){if(1&i&&(e.TgZ(0,"tbody"),e.YNc(1,Ce,12,8,"tr",17),e.qZA()),2&i){const t=n.$implicit;e.xp6(1),e.Q6J("ngForOf",t.Variants)}}class x{constructor(n,t,o,a,c){this.http=n,this.toastr=t,this.dialog=o,this.productService=a,this.biggerPictureService=c,this.searchFilter=new te.k,this.products=[],this.checkboxState=!1,this.rolePriceEdit=E.G.price,this.initPageLoader(),this.filterTypeOptions=[{Key:g.v.ALL,Value:"All"},{Key:g.v.DIFFERENCE,Value:"Difference"}],this.filterType=g.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.onFilter()})}onSelectAllData(){this.products=this.products.map(n=>(n.Variants&&(n.Variants=n.Variants.map(t=>(t.selected=this.checkboxState,t))),n))}onFilter(n){this.http.post("/api/Price/GetOutletPrice",{text:n,filterModel:this.filterType,PageNumber:this.searchFilter.PageNumber,RowCount:this.searchFilter.RowCount}).subscribe(o=>{this.products=o.Data})}updatePrice(){let n=this.productService.selectedVariantProduct(this.products);if(n.length>0){let t=n.map(c=>c.ID),a={ListChannelID:this.channelOptions.filter(c=>c.selected).map(c=>c.ID),ListID:t};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,t){return n.Channel.find(o=>o.ChannelID==t)}onUpdateItems(){const n=this.productService.selectedVariantProduct(this.products);this.dialog.open(M.j,{data:{selectedItems:n,channels:this.channelOptions},width:"600px"}).afterClosed().pipe((0,h.h)(t=>_.g.IsNotEmpty(t))).subscribe(t=>{this.channelOptions=t,this.updatePrice()})}openTableDialog(n,t,o){let a=JSON.parse(JSON.stringify(n));this.dialog.open(Q.k,{data:{Name:t.Name,Variant:a,ChannelID:o?.ChannelID,Table:"price",ChannelItemID:o?.ChannelItemID}}).afterClosed().pipe((0,h.h)(r=>_.g.IsNotEmpty(r))).subscribe(r=>{this.updateProductPrice(r,o)})}updateProductPrice(n,t){let o={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",o).subscribe(a=>{t.Price=o.Price;const c=this.productService.findChannelById(o.ID,this.channelOptions);this.toastr.success(`Successfully updated ${n.ItemName} (${n.VarName}) inventory in ${c.Name} to ${o.Price}`,"Success")})}onZoomImage(n,t){this.biggerPictureService.openBiggerPicture(n,t)}}x.\u0275fac=function(n){return new(n||x)(e.Y36(T.O),e.Y36(S._W),e.Y36(v.uw),e.Y36(Z.M),e.Y36(q.k))},x.\u0275cmp=e.Xpm({type:x,selectors:[["app-custom-channel-price"]],decls:30,vars:14,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,"ngxPermissionsOnly"],[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"],["type","checkbox",3,"ngModel","ngModelChange"],[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,"text-center",3,"rowSpan","ngClass"],["class","border rounded w-img cursor-pointer",3,"src","click",4,"ngIf","ngIfElse"],["elsePic",""],[1,"text-center","border-bottom",3,"rowSpan"],[1,"mb-0","item-name"],[1,"border","rounded","w-img","cursor-pointer",3,"src","click"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[1,"align-middle"],[4,"ngIf","ngIfElse"],["elseCol",""],[1,"text-end","border"],[1,"text-center","border","pointer","cell-hover",3,"ngClass","click"],[1,"me-2"],["target","_blank",3,"href","click"],[1,"table-white","border","text-end",2,"color","red"]],template:function(n,t){1&n&&(e.TgZ(0,"mainpanel",0),e.NdJ("onSubmit",function(a){return t.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 t.filterType=a}),e.qZA()()()(),e.TgZ(7,"actions")(8,"div",3),e.YNc(9,oe,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,ae,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.YNc(27,ce,2,1,"ng-template",16),e.YNc(28,le,5,0,"ng-container",17),e.qZA()(),e.YNc(29,fe,2,1,"tbody",17),e.qZA()()()()()()()),2&n&&(e.Q6J("pageData",t.pageData)("hideSearchBox",!1)("hideSearchDropdown",!1)("textButton","Search"),e.xp6(6),e.Q6J("model",t.filterType)("options",t.filterTypeOptions)("border",!0),e.xp6(3),e.Q6J("ngIf",t.productService.hasSelectionVariant(t.products)),e.xp6(10),e.Q6J("ngForOf",t.channelOptions),e.xp6(8),e.Q6J("ngxPermissionsOnly",e.VKq(12,V,t.rolePriceEdit)),e.xp6(1),e.Q6J("ngForOf",t.channelOptions),e.xp6(1),e.Q6J("ngForOf",t.products))},dependencies:[s.mk,s.sg,s.O5,p.Wl,p.JJ,p.On,b.p,d,w.gE,s.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}"]});var xe=l(8512),Y=l(455),$=l(266);function Pe(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2).ngIf,c=e.oxw();return e.KtG(c.openScanDialog(a))}),e._UZ(1,"i",9),e._uU(2," Scan Channel "),e.qZA()}}function be(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"button",10),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().ngIf,c=e.oxw(2);return e.KtG(c.updateStock(a))}),e._UZ(1,"i",11),e._uU(2," Update "),e.qZA()}}function Ie(i,n){if(1&i&&(e.TgZ(0,"actions")(1,"div",5)(2,"div"),e.YNc(3,Pe,3,0,"button",6),e.YNc(4,be,3,0,"button",7),e.qZA()()()),2&i){const t=n.ngIf,o=e.oxw(2);e.xp6(3),e.Q6J("ngIf",!o.productService.hasSelectionVariant(t)),e.xp6(1),e.Q6J("ngIf",o.productService.hasSelectionVariant(t))}}function Te(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"th")(1,"input",32),e.NdJ("change",function(a){e.CHM(t);const c=e.oxw().ngIf,r=e.oxw(2);return e.KtG(r.onSelectAllSKU(a.target.checked,c))}),e.qZA()()}}function Se(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"input",50),e.NdJ("ngModelChange",function(a){e.CHM(t);const c=e.oxw(4).$implicit;return e.KtG(c.selected=a)})("ngModelChange",function(){e.CHM(t);const a=e.oxw(4).$implicit,c=e.oxw(3);return e.KtG(c.onCheckboxStateProduct(a))}),e.qZA()}if(2&i){const t=e.oxw(4).$implicit;e.Q6J("ngModel",t.selected)}}function ve(i,n){if(1&i&&e.YNc(0,Se,1,1,"input",49),2&i){const t=e.oxw(2).$implicit,o=e.oxw().$implicit;e.Q6J("ngIf",t.Inventory>=0||o.Variants.length>1)}}function Ze(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"img",51),e.NdJ("click",function(a){e.CHM(t);const c=e.oxw(3).$implicit,r=e.oxw(3);return e.KtG(r.onZoomImage(a,null==c?null:c.ImageUrl))}),e.qZA()}if(2&i){const t=e.oxw(3).$implicit;e.s9C("src",t.ThumbnailUrl,e.LSH)}}function ye(i,n){1&i&&e._UZ(0,"img",52)}const A=function(i){return[i]};function we(i,n){if(1&i&&(e.ynx(0),e.TgZ(1,"td",43)(2,"div",44),e.YNc(3,ve,1,1,"ng-template",21),e.YNc(4,Ze,1,1,"img",45),e.YNc(5,ye,1,0,"ng-template",null,46,e.W1O),e.qZA()(),e.TgZ(7,"td",47)(8,"span",48),e._uU(9),e.qZA(),e._UZ(10,"br"),e.TgZ(11,"small"),e._uU(12),e.qZA()(),e.BQk()),2&i){const t=e.MAs(6),o=e.oxw(2).$implicit,a=e.oxw(3);e.xp6(1),e.Q6J("rowSpan",o.Variants.length),e.xp6(2),e.Q6J("ngxPermissionsOnly",e.VKq(7,A,a.rolePriceEdit)),e.xp6(1),e.Q6J("ngIf",o.ThumbnailUrl)("ngIfElse",t),e.xp6(3),e.Q6J("rowSpan",o.Variants.length),e.xp6(2),e.Oqu(o.Name),e.xp6(3),e.hij("(",o.Category,")")}}function Ae(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"input",55),e.NdJ("ngModelChange",function(a){e.CHM(t);const c=e.oxw(2).$implicit;return e.KtG(c.selected=a)}),e.qZA()}if(2&i){const t=e.oxw(2).$implicit;e.Q6J("ngModel",t.selected)}}function Fe(i,n){if(1&i&&(e.TgZ(0,"td",53),e.YNc(1,Ae,1,1,"input",54),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",t.Inventory>=0)}}function De(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"div",56),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().$implicit,c=e.oxw().$implicit,r=e.oxw(2).ngIf,D=e.oxw();return e.KtG(D.openTableDialog(a,c,r))}),e._uU(1),e.ALo(2,"number"),e.qZA()}if(2&i){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,null==t.Channel[0]?null:t.Channel[0].Price)," ")}}const Ne=function(i){return{"bg-gradient-warning":i}};function Je(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"tr"),e.YNc(1,we,13,9,"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",33)(8,"a",34),e._UZ(9,"i",35),e.qZA()()(),e.YNc(10,Fe,2,1,"ng-template",21),e.TgZ(11,"td",22),e._uU(12),e.ALo(13,"number"),e.qZA(),e.TgZ(14,"td",36),e.YNc(15,De,3,3,"div",37),e.qZA(),e.TgZ(16,"td")(17,"div",38)(18,"div",39)(19,"a",34),e._UZ(20,"i",40),e.qZA(),e._uU(21," \xa0\xa0 "),e.TgZ(22,"span",41),e.NdJ("click",function(){const c=e.CHM(t).$implicit,r=e.oxw(4);return e.KtG(r.refreshPrice(c))}),e._UZ(23,"i",42),e.qZA()()()()()}if(2&i){const t=n.$implicit,o=n.index,a=e.oxw(4);e.xp6(1),e.Q6J("ngIf",0==o),e.xp6(2),e.Oqu(t.Model),e.xp6(3),e.hij(" ",t.Code," "),e.xp6(2),e.Q6J("href","https://"+a.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(null==t?null:t.ID),e.LSH),e.xp6(2),e.Q6J("ngxPermissionsOnly",e.VKq(11,A,a.rolePriceEdit)),e.xp6(2),e.hij(" ",e.lcZ(13,9,t.UnitPrice)," "),e.xp6(2),e.Q6J("ngClass",e.VKq(13,Ne,t.UnitPrice!=(null==t.Channel[0]?null:t.Channel[0].Price))),e.xp6(1),e.Q6J("ngIf",t.Channel.length>0),e.xp6(4),e.Q6J("href",null==t.Channel[0]?null:t.Channel[0].Url,e.LSH)}}function Ue(i,n){if(1&i&&(e.ynx(0),e.YNc(1,Je,24,15,"tr",26),e.BQk()),2&i){const t=n.$implicit;e.xp6(1),e.Q6J("ngForOf",t.Variants)}}function Me(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"span",56),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(3);return e.KtG(a.getRowCount())}),e.TgZ(1,"i",57),e._uU(2,"?"),e.qZA()()}}function Oe(i,n){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&i){const t=n.ngIf;e.xp6(1),e.Oqu(e.lcZ(2,1,t.Total))}}function ke(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"a",61),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(4);return e.KtG(a.onNextPage())}),e._UZ(1,"i",62),e._uU(2," Next"),e.qZA()}}function Le(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"a",63),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(4);return e.KtG(a.onLastPage())}),e._UZ(1,"i",64),e._uU(2," Last"),e.qZA()}}function Qe(i,n){if(1&i&&(e.TgZ(0,"div",58),e.YNc(1,ke,3,0,"a",59),e.YNc(2,Le,3,0,"a",60),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.paginationService.disableNextButton&&!t.paginationService.goToLastPage),e.xp6(1),e.Q6J("ngIf",t.paginationService.disableNextButton&&!t.paginationService.goToLastPage)}}function Ee(i,n){if(1&i){const t=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(a){e.CHM(t);const c=e.oxw(2);return e.KtG(c.toggleDifferentInventory=a)})("toggleChange",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.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.YNc(16,Te,2,0,"ng-template",21),e.TgZ(17,"th",22),e._uU(18,"POS"),e.qZA(),e.TgZ(19,"th",22)(20,"div",23),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onChangeChannel())}),e._UZ(21,"img",24),e._uU(22),e.qZA()(),e._UZ(23,"th",25),e.qZA()(),e.TgZ(24,"tbody"),e.YNc(25,Ue,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,Me,3,0,"span",30),e.YNc(32,Oe,3,3,"span",4),e.ALo(33,"async"),e._uU(34),e.qZA()(),e.YNc(35,Qe,3,2,"div",31),e.qZA()()()()}if(2&i){const t=n.ngIf,o=e.oxw(2);e.xp6(9),e.Q6J("ngModel",o.toggleDifferentInventory),e.xp6(7),e.Q6J("ngxPermissionsOnly",e.VKq(15,A,o.rolePriceEdit)),e.xp6(4),e.Q6J("matTooltip","Change "+(null==o.selectedChannel?null:o.selectedChannel.Name)),e.xp6(1),e.Q6J("src",o.selectedChannel.logo,e.LSH),e.xp6(1),e.hij(" ",null!=o.selectedChannel&&o.selectedChannel.Name?null==o.selectedChannel?null:o.selectedChannel.Name:"Choose Channel ..."," "),e.xp6(3),e.Q6J("ngForOf",t),e.xp6(4),e.hij(" Showing 1 - ",e.lcZ(30,11,null==t?null:t.length)," of "),e.xp6(2),e.Q6J("ngIf",o.paginationService.hideCount),e.xp6(1),e.Q6J("ngIf",e.lcZ(33,13,!o.paginationService.hideCount&&o.allDataCount$)),e.xp6(2),e.hij(" records ~ ",o.paginationService.footerPageNumber," Page "),e.xp6(1),e.Q6J("ngIf",t.length>0)}}function qe(i,n){if(1&i){const t=e.EpF();e.TgZ(0,"mainpanel",1),e.NdJ("textChange",function(a){e.CHM(t);const c=e.oxw();return e.KtG(c.searchFilter.text=a)})("onSubmit",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.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(a){e.CHM(t);const c=e.oxw();return e.KtG(c.searchFilter.RowCount=a)}),e.qZA()()()(),e.YNc(7,Ie,5,2,"actions",4),e.ALo(8,"async"),e.YNc(9,Ee,36,17,"content",4),e.ALo(10,"async"),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("headerTitle",t.pageTitle)("text",t.searchFilter.text),e.xp6(6),e.Q6J("ngModel",t.searchFilter.RowCount),e.xp6(1),e.Q6J("ngIf",e.lcZ(8,5,t.paginationService.data$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(10,7,t.paginationService.data$))}}class P{constructor(n,t,o,a,c,r){this.http=n,this.paginationService=t,this.toastr=o,this.dialog=a,this.productService=c,this.biggerPictureService=r,this.pageTitle="Price Single Channel Comparison",this.toggleDifferentInventory=!1,this.loaderEndpoint="PriceLoader/Load",this.dataEndpoint="Price/GetSingleChannelComparison",this.allDataCountEndpoint="Inventory/GetInventoryByChannelRowCount",this.rolePriceEdit=E.G.price,this.hostName=this.productService.getHostName()}ngOnInit(){this.initPageLoader()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.dataEndpoint,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`).pipe((0,O.b)(n=>{this.searchFilter=n.Filter,this.searchFilter.filterModel=g.v.ALL,this.paginationService.resetToFirstPage(this.searchFilter),this.channelOptions=n.Options.Channel,this.initSelectedChannel()}))}onToggleDifferentInventory(){this.searchFilter.filterModel=this.toggleDifferentInventory?g.v.ALL:g.v.DIFFERENCE,this.search()}onCheckboxStateProduct(n){n.Variants=n.Variants.map(t=>(t.selected=n.selected,t))}openScanDialog(n){let t=JSON.parse(JSON.stringify(this.searchFilter));t.ChannelID=_.g.GuidEMpty,this.dialog.open(U.j,{data:{filter:t,channelOptions:n.Options.Channel},width:"600px"}).afterClosed().pipe((0,h.h)(o=>_.g.IsNotEmpty(o))).subscribe(o=>{this.searchFilter.ChannelID=o.ChannelID,this.searchFilter.ScanFull=o.ScanFull,this.searchFilter.UpdatedProduct=o.UpdatedProduct,this.searchFilter.Async=o.Async,this.scanAll(n)})}scanAll(n){const t=this.productService.findChannelById(this.searchFilter.ChannelID,n.Options.Channel);this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct,this.searchFilter.Async).subscribe(o=>{this.searchFilter.Async?this.toastr.warning("You will be notified when the scan is completed.","Scan In Progress",{toastClass:"ngx-toastr toast-waiting"}):(this.initPageLoader(),this.toastr.success(`Successfully scanned from ${t?.Name}`,"Success"))})}updateStock(n){let o=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:o};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(o=>{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,t,o){let a=JSON.parse(JSON.stringify(n));this.dialog.open(Q.k,{data:{Name:t.Name,Variant:a,ChannelID:a?.Channel[0]?.ChannelID,Table:"price",ChannelItemID:a?.Channel[0]?.ChannelItemID}}).afterClosed().pipe((0,h.h)(r=>_.g.IsNotEmpty(r))).subscribe(r=>{this.updateItemAfterDialog(r,o,n)})}updateItemAfterDialog(n,t,o){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 r=this.productService.findChannelById(a.ID,t.Options.Channel);this.toastr.success(`Successfully updated ${n.ItemName} (${n.VarName}) inventory in ${r.Name} to ${a.Price}`,"Success"),o.Channel[0]&&(o.Channel[0].Price=a.Price)})}initSelectedChannel(){this.selectedChannel=this.channelOptions.find(n=>n.ID==this.searchFilter.ChannelID),this.selectedChannel&&(this.selectedChannel.logo=_.g.getChannelLogoByTypeId(this.selectedChannel.TypeID))}onChangeChannel(){this.dialog.open(xe.b,{data:{channelOptions:this.channelOptions,selectedChannel:this.selectedChannel}}).afterClosed().pipe((0,h.h)(n=>_.g.IsNotEmpty(n))).subscribe(n=>{this.selectedChannel=n,this.searchFilter.ChannelID=n.ID,this.search()})}onSelectAllSKU(n,t){t=t.map(o=>(o.Variants=o.Variants.map(a=>(a.selected=n,a)),o))}onZoomImage(n,t){this.biggerPictureService.openBiggerPicture(n,t)}ngOnDestroy(){this.paginationService.destroy()}}P.\u0275fac=function(n){return new(n||P)(e.Y36(T.O),e.Y36(k.b),e.Y36(S._W),e.Y36(v.uw),e.Y36(Z.M),e.Y36(q.k))},P.\u0275cmp=e.Xpm({type:P,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%"],[3,"ngxPermissionsOnly"],[1,"text-end"],["matTooltipPosition","above",1,"d-inline-block","text-truncate","mt-3","cursor-pointer",2,"max-width","114px",3,"matTooltip","click"],[2,"width","16px",3,"src"],[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"],["type","checkbox",1,"me-3",3,"change"],[1,"ms-2"],["target","_blank",3,"href"],[1,"fas","external-link-custom","fa-external-link-alt"],[1,"text-end",3,"ngClass"],["style","cursor: pointer;",3,"click",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",2,"color","var(--bs-link-color)",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"],["class","border rounded w-img cursor-pointer","style","margin-left: 20px",3,"src","click",4,"ngIf","ngIfElse"],["elsePic",""],[1,"text-start",3,"rowSpan"],[1,"item-name","mb-0"],["type","checkbox","class","me-3",3,"ngModel","ngModelChange",4,"ngIf"],["type","checkbox",1,"me-3",3,"ngModel","ngModelChange"],[1,"border","rounded","w-img","cursor-pointer",2,"margin-left","20px",3,"src","click"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img",2,"margin-left","20px"],[1,"align-middle"],["type","checkbox",3,"ngModel","ngModelChange",4,"ngIf"],["type","checkbox",3,"ngModel","ngModelChange"],[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,t){1&n&&(e.YNc(0,qe,11,9,"mainpanel",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,t.loader$))},dependencies:[s.mk,s.sg,s.O5,p.Fj,p.wV,p.Wl,p.JJ,p.On,b.p,Y.Rr,$.gM,w.gE,s.Ov,s.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}"]});var F=l(8063);const Ve=[{path:"",component:C,children:[{path:"",redirectTo:"SingleChannel",pathMatch:"full"},{path:"pos",component:f,canActivate:[F.a],data:{title:"Global Price Comparison"}},{path:"OutletPrice",component:x,canActivate:[F.a],data:{title:"Outlet Price Comparison"}},{path:"SingleChannel",component:P,canActivate:[F.a],data:{title:"Price Single Channel Comparison"}}]}];class u{}u.\u0275fac=function(n){return new(n||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[s.ez,I.Bz.forChild(Ve)]});var Ye=l(6709);class m{}m.\u0275fac=function(n){return new(n||m)},m.\u0275mod=e.oAB({type:m}),m.\u0275inj=e.cJS({imports:[s.ez,p.u5,J.Z,b.R,I.Bz,K.A0,u,p.UX,Y.rP,Ye.p9,$.AV,d,L.a,w.VI.forChild()]})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[592],{2428:(P,m,n)=>{n.d(m,{T:()=>i});var a=n(8505),e=n(1889),_=n(4650),d=n(1318),s=n(7185);class i{constructor(t,p){this.httpService=t,this.toastr=p}getChannel(t){return this.httpService.post("/api/Channel/GetChannel",t)}getChannelLoader(){return this.httpService.get("/api/ChannelLoader/GetChannelLoader")}testShopID(t){return this.httpService.post("/api/Channel/TestShopID",t).pipe((0,a.b)(p=>{this.showTostrSuccessTestShopID(p)}))}updateChannelIndex(t){return this.httpService.post("/api/Channel/UpdateChannelIndex",t)}deleteChannel(t){return this.httpService.post("/api/Channel/DeleteChannel",t)}mapChannelImage(t){return t.map(p=>(p.img=e.g.getChannelLogoByTypeId(p.TypeID),p))}showTostrSuccessTestShopID(t){let p="";for(var u in t)p+=u+" : "+t[u]+"<br/>";this.toastr.success(p,"Success",{enableHtml:!0,closeButton:!0,positionClass:"toast-bottom-right"})}}i.\u0275fac=function(t){return new(t||i)(_.LFG(d.O),_.LFG(s._W))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})},1290:(P,m,n)=>{n.d(m,{k:()=>a});class a{}},6732:(P,m,n)=>{n.d(m,{y:()=>s});var a=n(6895),e=n(4650);function _(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"span",10),e.NdJ("click",function(){e.CHM(t);const u=e.oxw();return e.KtG(u.getTotal())}),e.TgZ(1,"i",11),e._uU(2,"?"),e.qZA()()}}function d(i,o){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Oqu(e.lcZ(2,1,t.paginationTotal))}}class s{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()}}s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-custom-paginator"]],inputs:{filter:"filter",paginationTotal:"paginationTotal",totaldata:"totaldata",hasClicked:"hasClicked"},outputs:{get:"get",change:"change",next:"next",previous:"previous",total:"total"},standalone:!0,features:[e.jDz],decls:16,vars:11,consts:[[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"],[4,"ngIf"],[1,"btn-group"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"hidden","click"],[1,"fas","fa-arrow-left"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"hidden","click"],[1,"fas","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"]],template:function(o,t){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,_,3,0,"span",3),e.YNc(7,d,3,3,"span",4),e._uU(8),e.qZA()(),e.TgZ(9,"div",5)(10,"a",6),e.NdJ("click",function(){return t.PreviousPage()}),e._UZ(11,"i",7),e._uU(12," Prev"),e.qZA(),e.TgZ(13,"a",8),e.NdJ("click",function(){return t.NextPage()}),e._UZ(14,"i",9),e._uU(15," Next"),e.qZA()()()),2&o&&(e.xp6(3),e.AsE(" Showing ",e.lcZ(4,7,t.filter.PageSize*(t.filter.PageNumber-1)+1)," - ",e.lcZ(5,9,t.filter.PageSize*(t.filter.PageNumber-1)+t.totaldata)," of "),e.xp6(3),e.Q6J("ngIf",!t.hasClicked),e.xp6(1),e.Q6J("ngIf",t.hasClicked),e.xp6(1),e.hij(" records ~ ",t.filter.PageNumber," Page "),e.xp6(2),e.Q6J("hidden",1==t.filter.PageNumber),e.xp6(3),e.Q6J("hidden",t.filter.PageSize*(t.filter.PageNumber-1)+t.totaldata==t.paginationTotal||t.totaldata<t.filter.PageSize))},dependencies:[a.ez,a.O5,a.JJ]})},5171:(P,m,n)=>{n.d(m,{P:()=>h});var a=n(6895),e=n(4650),_=n(4006),d=n(8277),s=n(9101),i=n(3238),o=n(9602),t=n(9549),p=n(4144);function u(c,r){if(1&c){const l=e.EpF();e.ynx(0),e.TgZ(1,"mat-date-range-picker-actions")(2,"button",8),e._uU(3,"Cancel"),e.qZA(),e.TgZ(4,"button",9),e.NdJ("click",function(){e.CHM(l);const g=e.oxw();return e.KtG(g.onSelectDate())}),e._uU(5,"Search"),e.qZA()(),e.BQk()}}class h{constructor(){this.disabled=!1,this.widthClass="w-100",this.showButtonConfirm=!1,this.dateChange=new e.vpe}fromDateChange(r){let l=r?.toDate();this.from=l}toDateChange(r){if(r){let l=r.toDate();this.to=l,this.showButtonConfirm||this.emitDateChange()}}onOpenDatepicker(){console.log("open");const r=document.getElementById("dropdown-filter");if(r){var l=new bootstrap.Dropdown(r);l&&(l._config.autoClose="inside")}}onCloseDatepicker(){console.log("close");const r=document.getElementById("dropdown-filter");if(r){var l=new bootstrap.Dropdown(r);l&&(l._config.autoClose="outside")}}emitDateChange(){this.dateChange.emit({from:this.from,to:this.to})}onSelectDate(){this.emitDateChange()}}h.\u0275fac=function(r){return new(r||h)},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-datepicker-range"]],inputs:{placeholder:"placeholder",displayToggle:"displayToggle",date:"date",disabled:"disabled",minDate:"minDate",widthClass:"widthClass",showButtonConfirm:"showButtonConfirm",from:"from",to:"to"},outputs:{dateChange:"dateChange"},standalone:!0,features:[e._Bn([{provide:i._A,useClass:d.t7,deps:[i.Ad]},{provide:i.sG,useValue:{parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"DD MMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}}}]),e.jDz],decls:8,vars:8,consts:[["appearance","outline",1,"date-range"],["id","dates",3,"min","rangePicker"],["matStartDate","","placeholder","Start date",3,"value","dateChange","click"],["matEndDate","","placeholder","End date",3,"value","dateChange","click"],["matPrefix","",3,"for"],[3,"opened","closed"],["picker",""],[4,"ngIf"],["mat-button","","matDateRangePickerCancel",""],["mat-raised-button","","color","primary","matDateRangePickerApply","",3,"click"]],template:function(r,l){if(1&r){const f=e.EpF();e.TgZ(0,"mat-form-field",0)(1,"mat-date-range-input",1)(2,"input",2),e.NdJ("dateChange",function(D){return l.fromDateChange(D.value)})("click",function(){e.CHM(f);const D=e.MAs(6);return e.KtG(D.open())}),e.qZA(),e.TgZ(3,"input",3),e.NdJ("dateChange",function(D){return l.toDateChange(D.value)})("click",function(){e.CHM(f);const D=e.MAs(6);return e.KtG(D.open())}),e.qZA()(),e._UZ(4,"mat-datepicker-toggle",4),e.TgZ(5,"mat-date-range-picker",5,6),e.NdJ("opened",function(){return l.onOpenDatepicker()})("closed",function(){return l.onCloseDatepicker()}),e.YNc(7,u,6,0,"ng-container",7),e.qZA()()}if(2&r){const f=e.MAs(6);e.Tol(l.widthClass),e.xp6(1),e.Q6J("min",l.minDate)("rangePicker",f),e.xp6(1),e.Q6J("value",l.from),e.xp6(1),e.Q6J("value",l.to),e.xp6(1),e.Q6J("for",f),e.xp6(3),e.Q6J("ngIf",l.showButtonConfirm)}},dependencies:[a.ez,a.O5,i.XK,o.FA,o.nW,o.wx,o.zY,o.By,o._g,o.M5,o.dp,o.DK,t.lN,t.KE,t.qo,p.c,_.u5,s.ot,s.lW],styles:["mat-form-field.date-range.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{padding-top:12px!important;padding-bottom:12px!important;min-height:45px!important;font-size:14px!important}"]})},5585:(P,m,n)=>{n.d(m,{Q:()=>C});var a=n(4650),e=n(3238),_=n(9602),d=n(9549),s=n(4144),i=n(8277);n(5439);class C{constructor(){this.disabled=!1,this.dateChange=new a.vpe,this.width="100%",this.displayToggle=!0}ngAfterViewInit(){}change(c){console.log(c);let r=c.toDate();console.log(r),this.dateChange.emit(r)}onOpenDatepicker(){var c=new bootstrap.Dropdown(document.getElementById("dropdown-filter"));c&&(c._config.autoClose="inside")}onCloseDatepicker(){var c=new bootstrap.Dropdown(document.getElementById("dropdown-filter"));c&&(c._config.autoClose="outside")}}C.\u0275fac=function(c){return new(c||C)},C.\u0275cmp=a.Xpm({type:C,selectors:[["datepicker"]],inputs:{placeholder:"placeholder",displayToggle:"displayToggle",date:"date",disabled:"disabled",width:"width"},outputs:{dateChange:"dateChange"},standalone:!0,features:[a._Bn([_.FA,{provide:e._A,useClass:i.t7,deps:[e.Ad]},{provide:e.sG,useValue:{parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"DD MMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}}}]),a.jDz],decls:5,vars:6,consts:[[1,"date-picker"],["matInput","",3,"matDatepicker","placeholder","value","dateChange","click"],["matSuffix","",3,"for"],[3,"opened","closed"],["picker1",""]],template:function(c,r){if(1&c){const l=a.EpF();a.TgZ(0,"mat-form-field",0)(1,"input",1),a.NdJ("dateChange",function(g){return r.change(g.value)})("click",function(){a.CHM(l);const g=a.MAs(4);return a.KtG(g.open())}),a.qZA(),a._UZ(2,"mat-datepicker-toggle",2),a.TgZ(3,"mat-datepicker",3,4),a.NdJ("opened",function(){return r.onOpenDatepicker()})("closed",function(){return r.onCloseDatepicker()}),a.qZA()()}if(2&c){const l=a.MAs(4);a.Udp("width",r.width),a.xp6(1),a.s9C("placeholder",r.placeholder||""),a.Q6J("matDatepicker",l)("value",r.date),a.xp6(1),a.Q6J("for",l)}},dependencies:[e.XK,_.FA,_.Mq,_.hl,_.nW,d.lN,d.KE,d.R9,s.c,s.Nt],styles:["mat-form-field.date-picker.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{background-color:#fff!important;height:45px!important;font-size:14px;padding-left:4px}\n"],encapsulation:2})},9640:(P,m,n)=>{n.d(m,{s:()=>e});var a=n(4650);class e{constructor(){this.emptyStateImg="https://res.cloudinary.com/pos/image/upload/v1683772105/icons/marketplace_icons/emptyrecord.svg"}ngOnInit(){}}e.\u0275fac=function(d){return new(d||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-empty-state"]],standalone:!0,features:[a.jDz],decls:4,vars:1,consts:[["alt","",2,"width","225px",3,"src"],[1,"text-center","fs-2","text-secondary","mt-4"]],template:function(d,s){1&d&&(a.TgZ(0,"div"),a._UZ(1,"img",0),a.TgZ(2,"div",1),a._uU(3," No records found "),a.qZA()()),2&d&&(a.xp6(1),a.Q6J("src",s.emptyStateImg,a.LSH))}})},2594:(P,m,n)=>{n.d(m,{n:()=>s});var a=n(6895),e=n(4650);function _(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"span",10),e.NdJ("click",function(){e.CHM(t);const u=e.oxw();return u.getTotal(),e.KtG(u.hasClicked=!0)}),e.TgZ(1,"i",11),e._uU(2,"?"),e.qZA()()}}function d(i,o){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Oqu(e.lcZ(2,1,t.paginationTotal))}}class s{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()}}s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,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"},standalone:!0,features:[e.jDz],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,t){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,_,3,0,"span",3),e.YNc(7,d,3,3,"span",4),e.qZA()(),e.TgZ(8,"div",5)(9,"button",6),e.NdJ("click",function(){return t.PreviousPage()}),e._UZ(10,"i",7),e.qZA(),e.TgZ(11,"button",8),e.NdJ("click",function(){return t.NextPage()}),e._UZ(12,"i",9),e.qZA()()()),2&o&&(e.xp6(3),e.AsE(" Showing ",e.lcZ(4,6,t.filter.PageSize*(t.filter.PageNumber-1)+1)," - ",e.lcZ(5,8,t.filter.PageSize*(t.filter.PageNumber-1)+t.totaldata)," of "),e.xp6(3),e.Q6J("ngIf",!t.hasClicked),e.xp6(1),e.Q6J("ngIf",t.hasClicked),e.xp6(2),e.Q6J("disabled",1==t.filter.PageNumber),e.xp6(2),e.Q6J("disabled",t.filter.PageSize*(t.filter.PageNumber-1)+t.totaldata==t.paginationTotal||t.totaldata<t.filter.PageSize))},dependencies:[a.ez,a.O5,a.JJ]})}}]);
@@ -11,12 +11,13 @@
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
13
  <link href="https://use.fontawesome.com/releases/v6.2.0/css/all.css" rel="stylesheet">
14
+ <link rel="preconnect" href="https://res.cloudinary.com">
14
15
  <script>
15
16
  (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
17
  </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}}body{overflow:visible!important}</style><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@2.9.3/Marketplace/styles.97105d62c44869cb.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@2.9.3/Marketplace/styles.97105d62c44869cb.css"></noscript></head>
18
+ <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}}body{overflow:visible!important}</style><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@2.9.5/Marketplace/styles.97105d62c44869cb.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@2.9.5/Marketplace/styles.97105d62c44869cb.css"></noscript></head>
18
19
  <body>
19
20
  <app-root></app-root>
20
- <script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.9.3/Marketplace/runtime.5db60124bb5bf7cb.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.9.3/Marketplace/polyfills.bee3c4d96e890990.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.9.3/Marketplace/scripts.b7cebc1258dbcca8.js" defer></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.9.3/Marketplace/main.6966bb7fcafbe0e4.js" type="module"></script>
21
+ <script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.9.5/Marketplace/runtime.8ddf6965934d46b2.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.9.5/Marketplace/polyfills.bee3c4d96e890990.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.9.5/Marketplace/scripts.b7cebc1258dbcca8.js" defer></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.9.5/Marketplace/main.cbb985d0c847641f.js" type="module"></script>
21
22
 
22
23
  </body></html>