marketplacepos 2.4.4 → 2.4.6

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 (40) hide show
  1. package/Marketplace/162.4f60927eda97cc16.js +1 -0
  2. package/Marketplace/171.9284c660e58d6f8c.js +1 -0
  3. package/Marketplace/174.981a3e729681507b.js +1 -0
  4. package/Marketplace/25.ba3606ad0ea92b4a.js +1 -0
  5. package/Marketplace/360.4fa1f449dc516500.js +1 -0
  6. package/Marketplace/369.d711344db7113e55.js +1 -0
  7. package/Marketplace/387.6e9471375d261f28.js +1 -0
  8. package/Marketplace/3rdpartylicenses.txt +28 -2
  9. package/Marketplace/463.e1b8208c6f571003.js +1 -0
  10. package/Marketplace/512.96a1a3c8c51a8727.js +1 -0
  11. package/Marketplace/516.57bcab321d07d544.js +1 -0
  12. package/Marketplace/716.8918af413ba6d384.js +1 -0
  13. package/Marketplace/717.03a2e00d3bca2d89.js +1 -0
  14. package/Marketplace/874.63ae9bf5eecf410e.js +1 -0
  15. package/Marketplace/983.e83c887fe86ec996.js +1 -0
  16. package/Marketplace/assets/stepper-custom.scss +33 -0
  17. package/Marketplace/assets/version-adjustment-v5.scss +1 -1
  18. package/Marketplace/common.3f5874655db24424.js +1 -0
  19. package/Marketplace/index.html +2 -2
  20. package/Marketplace/main.f2cf6124e7df7f02.js +1 -0
  21. package/Marketplace/runtime.ba9ecd190eb3a539.js +1 -0
  22. package/Marketplace/{styles.ab4c60b3cc2298c3.css → styles.dc183203b654c19c.css} +2 -2
  23. package/package.json +1 -1
  24. package/Marketplace/162.4ce4550bb805d5d4.js +0 -1
  25. package/Marketplace/171.9cd91ffa365b9491.js +0 -1
  26. package/Marketplace/174.e214431f31fd131d.js +0 -1
  27. package/Marketplace/25.ad4f583264f99556.js +0 -1
  28. package/Marketplace/334.fca544ca6d7e11d3.js +0 -1
  29. package/Marketplace/360.479b6dc19c3aedfd.js +0 -1
  30. package/Marketplace/387.ef404fc903278a1c.js +0 -1
  31. package/Marketplace/402.f385d64daee6049e.js +0 -1
  32. package/Marketplace/458.393a149a626f18ad.js +0 -1
  33. package/Marketplace/466.2e9f76621dd59e88.js +0 -1
  34. package/Marketplace/512.84e77b4b4a7a1db7.js +0 -1
  35. package/Marketplace/516.71620076f01c2cd7.js +0 -1
  36. package/Marketplace/717.5259a4803cce95ab.js +0 -1
  37. package/Marketplace/874.d45d1026769d75d1.js +0 -1
  38. package/Marketplace/common.1acc3df88ef73d5d.js +0 -1
  39. package/Marketplace/main.2fa426747cc66a26.js +0 -1
  40. package/Marketplace/runtime.016444f60baacdd3.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[983],{7398:(Qe,Zt,u)=>{u.d(Zt,{Z:()=>ut,e:()=>qt});var P=u(6895),xt=u(266),L=u(8252),Z=u(4650);function t(w,D){if(1&w&&(Z.TgZ(0,"li",2)(1,"a",3),Z._uU(2),Z.qZA()()),2&w){const _=D.$implicit;Z.xp6(1),Z.s9C("routerLink",_.Url),Z.Q6J("title",_.Description?_.Description:""),Z.xp6(1),Z.hij(" ",_.Title," ")}}let qt=(()=>{class w{}return w.\u0275fac=function(_){return new(_||w)},w.\u0275cmp=Z.Xpm({type:w,selectors:[["nav-tab"]],inputs:{Tabs:"Tabs"},decls:2,vars:1,consts:[[1,"nav","navbar-nav","navbar-left","nav-tab-arrow"],["routerLinkActive","active","class","nav-item me-6",4,"ngFor","ngForOf"],["routerLinkActive","active",1,"nav-item","me-6"],[1,"nav-link","nav-link-arrow","mb-0",3,"routerLink","title"]],template:function(_,rt){1&_&&(Z.TgZ(0,"ul",0),Z.YNc(1,t,3,3,"li",1),Z.qZA()),2&_&&(Z.xp6(1),Z.Q6J("ngForOf",rt.Tabs))},dependencies:[P.sg,L.yS,L.Od]}),w})(),ut=(()=>{class w{}return w.\u0275fac=function(_){return new(_||w)},w.\u0275mod=Z.oAB({type:w}),w.\u0275inj=Z.cJS({imports:[P.ez,L.Bz,xt.AV]}),w})()},1983:(Qe,Zt,u)=>{u.r(Zt),u.d(Zt,{ProductModule:()=>bi});var P=u(6895),xt=u(7398),L=u(4006),Z=u(8252),t=u(4650);let qt=(()=>{class o{constructor(){this.productTabs=[{Title:"Sold in Channel",Url:"/menu/products/sold-in-channel",Description:"SKU has been mapped between dealpos and marketplace"},{Title:"Not in POS",Url:"/menu/products/not-in-pos",Description:"SKU sold in Marketplace but not exist in DEALPOS"},{Title:"Not in Channel",Url:"/menu/products/not-in-channel",Description:"SKU has not been sold on one of channels"},{Title:"In POS",Url:"/menu/products/in-pos",Description:"All products which is already available in POS"},{Title:"Multiple Listed SKU",Url:"/menu/products/duplicate-sku",Description:"SKU(s) which is listed more than one time (one to many)"}]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-products"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(e,n){1&e&&(t.TgZ(0,"nav",0)(1,"div",1)(2,"div"),t._UZ(3,"nav-tab",2),t.qZA()()(),t._UZ(4,"router-outlet")),2&e&&(t.xp6(3),t.Q6J("Tabs",n.productTabs))},dependencies:[xt.e,Z.lC],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}"]}),o})();var ut=u(1290),w=u(8231),D=u(5412),_=u(3154),rt=u(6779),oe=u(3900),xe=u(9646),Pe=u(9568),lt=u(1318);let Ht=(()=>{class o{constructor(e,n){this.LocalData=e,this.httpService=n}getCategoriesByTypeId(e){return this.LocalData.getCategoriesByChannelType(e).pipe((0,oe.w)(n=>null!=n?(0,xe.of)(n):this._getCategoriesByTypeID(e)))}_getCategoriesByTypeID(e){return this.httpService.post("/api/Channel/getCategoriesByTypeID",{TypeID:e}).pipe((0,oe.w)(a=>this.LocalData.saveCategoriesByChannelType(a,e)))}}return o.\u0275fac=function(e){return new(e||o)(t.LFG(Pe.T),t.LFG(lt.O))},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var ie=u(5960),Nt=u(6401);function ae(o,i){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"h5",5),t._uU(2,"Category"),t.qZA(),t.TgZ(3,"app-select-search",9),t.NdJ("onSelect",function(a){t.CHM(e);const r=t.oxw();return t.KtG(r.onSelectCategory(a))}),t.qZA(),t.BQk()}if(2&o){const e=t.oxw();t.xp6(3),t.Q6J("appearance","outline")("batchSize",30)("data",e.options)("bindLabel","Value")("bindValue","Key")("placeholder","Select Category")}}let re=(()=>{class o{constructor(e,n,a,r){this.data=e,this.channelCategoriesService=n,this.http=a,this.dialogRef=r,this.item=e.item,this.selectItemMissingChannel=e.selectedItemMissingChannel,this.options=[],this.optionVisible=!1}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new rt.O,this.modalConfig.title="Upload"}onSelectItem(e){this.selectedChannelID=e;let n=this.selectItemMissingChannel.find(a=>a.ID==e);!n||1!==n.TypeID&&7!==n.TypeID?this.optionVisible=!1:this.channelCategoriesService.getCategoriesByTypeId(n.TypeID).subscribe({next:a=>{this.options=a,this.optionVisible=!0},error:a=>{console.error(a)}})}isNotEmpty(e){return _.g.IsNotEmpty(e)}onSelectCategory(e){this.selectedCategoryID=e}onClose(){this.dialogRef.close()}onSave(){this.selectedChannelID&&(this.selectedCategoryID||!this.optionVisible)&&this.dialogRef.close({channelID:this.selectedChannelID,categoryID:this.selectedCategoryID})}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(D.WI),t.Y36(Ht),t.Y36(lt.O),t.Y36(D.so))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-uploadProductDialog"]],decls:11,vars:8,consts:[[3,"dynamicValidated","config","onOk","onClose","onCancel"],["content",""],[1,"mx-4"],[1,"row"],[1,"col-12"],[1,"mb-3","fw-normal"],[3,"appearance","data","bindLabel","bindValue","placeholder","onSelect"],[1,"row","mt-3"],[4,"ngIf"],[3,"appearance","batchSize","data","bindLabel","bindValue","placeholder","onSelect"]],template:function(e,n){1&e&&(t.TgZ(0,"modal-material",0),t.NdJ("onOk",function(){return n.onSave()})("onClose",function(){return n.onClose()})("onCancel",function(){return n.onClose()}),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h5",5),t._uU(6,"Channel :"),t.qZA(),t.TgZ(7,"app-select-search",6),t.NdJ("onSelect",function(r){return n.onSelectItem(r)}),t.qZA()()(),t.TgZ(8,"div",7)(9,"div",4),t.YNc(10,ae,4,6,"ng-container",8),t.qZA()()()()()),2&e&&(t.Q6J("dynamicValidated",n.isNotEmpty(n.selectedChannelID))("config",n.modalConfig),t.xp6(7),t.Q6J("appearance","outline")("data",n.selectItemMissingChannel)("bindLabel","Name")("bindValue","ID")("placeholder","Choose "),t.xp6(3),t.Q6J("ngIf",n.optionVisible))},dependencies:[P.O5,ie.h,Nt.M],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}"]}),o})();var tt=u(266);function U(o,i){if(1&o&&(t.ynx(0),t.TgZ(1,"tr")(2,"td",11),t._uU(3),t.qZA(),t.TgZ(4,"td",11),t._uU(5),t.qZA(),t.TgZ(6,"td",12)(7,"p",13),t._uU(8,"Product Not in Channel!"),t.qZA()()(),t.BQk()),2&o){const e=t.oxw().$implicit;t.xp6(3),t.hij(" ",null==e?null:e.Model,""),t.xp6(2),t.hij(" ",null==e?null:e.Code,"")}}function ct(o,i){if(1&o&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&o){const e=t.oxw(3).$implicit;t.uIk("rowspan",e.Channel.length),t.xp6(1),t.hij(" ",null==e?null:e.Model,"")}}function v(o,i){if(1&o&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&o){const e=t.oxw(3).$implicit;t.uIk("rowspan",e.Channel.length),t.xp6(1),t.hij(" ",null==e?null:e.Code,"")}}function A(o,i){if(1&o&&(t.TgZ(0,"tr"),t.YNc(1,ct,2,2,"td",14),t.YNc(2,v,2,2,"td",14),t.TgZ(3,"td",11)(4,"div",15)(5,"a",16),t._UZ(6,"img",17),t.qZA(),t.TgZ(7,"div",18),t._uU(8),t.qZA()()(),t.TgZ(9,"td",11),t._uU(10),t.ALo(11,"number"),t.qZA(),t.TgZ(12,"td",19),t._uU(13),t.ALo(14,"number"),t.qZA()()),2&o){const e=i.$implicit,n=i.index,a=t.oxw(3);t.xp6(1),t.Q6J("ngIf",0==n),t.xp6(1),t.Q6J("ngIf",0==n),t.xp6(3),t.Q6J("href",e.Url,t.LSH)("title",e.Title),t.xp6(1),t.Q6J("src",a.getChannelLogo(e.TypeID),t.LSH),t.xp6(1),t.Q6J("matTooltip",(null==e||null==e.Name?null:e.Name.length)>55?null==e?null:e.Name:""),t.xp6(1),t.hij(" ",e.Name," "),t.xp6(2),t.Oqu(t.lcZ(11,9,e.Price)),t.xp6(3),t.Oqu(t.lcZ(14,11,e.Inventory))}}function st(o,i){if(1&o&&t.YNc(0,A,15,13,"tr",8),2&o){const e=t.oxw().$implicit;t.Q6J("ngForOf",null==e?null:e.Channel)}}function ht(o,i){if(1&o&&(t.ynx(0),t.YNc(1,U,9,2,"ng-container",9),t.YNc(2,st,1,1,"ng-template",null,10,t.W1O),t.BQk()),2&o){const e=i.$implicit,n=t.MAs(3);t.xp6(1),t.Q6J("ngIf",!e.Channel||e.Channel.length<1)("ngIfElse",n)}}let et=(()=>{class o{constructor(e,n){this.data=e,this.dialogRef=n,this.variants=e.variants,this.title=e.title}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new rt.O,this.modalConfig.title=this.data.title,this.modalConfig.bodyScrollable=!0,this.modalConfig.hideCancel=!0,this.modalConfig.hideOk=!0}getChannelLogo(e){return _.g.getChannelLogoByTypeId(e)}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(D.WI),t.Y36(D.so))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-modal-variant"]],decls:21,vars:2,consts:[[3,"config","onCancel"],["content",""],[1,"table"],[1,"sticky-top-thead","variant-modal"],[1,"text-start","sticky-top"],["matTooltip","Variant from POS",1,"fas","fa-info-circle","ms-1"],["matTooltip","Product and Variant from each Channel",1,"fas","fa-info-circle","ms-1"],[1,"text-start","sticky-top",2,"width","0%"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],["printChannelModal",""],[1,"text-start"],["colspan","3",1,"text-center"],[1,"my-auto"],["class","text-start",4,"ngIf"],[1,"d-flex"],["target","_blank",1,"me-1",3,"href","title"],[2,"width","20px","height","20px",3,"src"],[1,"text-ellipsis","ps-2",2,"max-width","18vw",3,"matTooltip"],[1,"text-center"]],template:function(e,n){1&e&&(t.TgZ(0,"modal-material",0),t.NdJ("onCancel",function(){return n.dialogRef.close()}),t.TgZ(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),t._uU(6," VARIANT "),t.TgZ(7,"sup"),t._UZ(8,"i",5),t.qZA()(),t.TgZ(9,"th",4),t._uU(10,"SKU"),t.qZA(),t.TgZ(11,"th",4),t._uU(12," PRODUCT "),t.TgZ(13,"sup"),t._UZ(14,"i",6),t.qZA()(),t.TgZ(15,"th",4),t._uU(16,"PRICE"),t.qZA(),t.TgZ(17,"th",7),t._uU(18,"INVENTORY"),t.qZA()()(),t.TgZ(19,"tbody"),t.YNc(20,ht,4,2,"ng-container",8),t.qZA()()()()),2&e&&(t.Q6J("config",n.modalConfig),t.xp6(20),t.Q6J("ngForOf",n.variants))},dependencies:[P.sg,P.O5,tt.gM,Nt.M,P.JJ],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.sticky-top-thead[_ngcontent-%COMP%] th.sticky-top[_ngcontent-%COMP%]{top:0px}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr.sticky-top[_ngcontent-%COMP%]{border:none!important;border-bottom:1px solid!important}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{border-top:none!important;border-left:none!important;border-right:none!important}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fff!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child:after{border-right:0px!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child:before{border-left:0px!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:before{border-top:0px}"]}),o})();var q=u(9300),nt=u(7579),Ft=u(2722),G=u(9694),kt=u(6082),Kt=u(7185);function mn(o,i){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-select-search",15),t.NdJ("onSelect",function(a){t.CHM(e);const r=t.oxw().index,l=t.oxw();return t.KtG(l.onSelectCategory(a,r))}),t.qZA(),t.BQk()}if(2&o){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("data",e.Categories)("batchSize",30)}}function _n(o,i){if(1&o&&(t.TgZ(0,"div",16),t._UZ(1,"input",17),t.qZA()),2&o){const e=t.oxw().$implicit,n=t.oxw();t.xp6(1),t.Q6J("placeholder",n.getChannelCategory(e.TypeID))}}function fn(o,i){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"tr")(2,"td",8)(3,"input",9),t.NdJ("ngModelChange",function(a){const l=t.CHM(e).$implicit;return t.KtG(l.Selected=a)})("ngModelChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSelectChannel())}),t.qZA()(),t.TgZ(4,"td")(5,"div",10),t._UZ(6,"img",11),t.TgZ(7,"span",12),t._uU(8),t.qZA()()(),t.TgZ(9,"td"),t.YNc(10,mn,2,2,"ng-container",13),t.YNc(11,_n,2,1,"ng-template",null,14,t.W1O),t.qZA()(),t.BQk()}if(2&o){const e=i.$implicit,n=t.MAs(12);t.xp6(3),t.Q6J("ngModel",e.Selected),t.xp6(3),t.Q6J("src",e.Img,t.LSH),t.xp6(2),t.Oqu(e.Name),t.xp6(2),t.Q6J("ngIf",e.Categories.length>0)("ngIfElse",n)}}let Re=(()=>{class o{constructor(e,n,a,r,l){this.data=e,this.channelService=n,this.productService=a,this.dialogRef=r,this.toastrService=l,this.channelOptions=[],this.uploadResponse=[],this.channelType=G.x,this.enableBtnOk=!1,this.destroy$=new nt.x,this.uploadResponse=[],this.channels=this.data.channels,this.products=this.data.products}ngOnInit(){this.initModalConfig(),this.initChannelOptions(),this.initCategories()}initModalConfig(){this.modalConfig=new rt.O,this.modalConfig.title=this.data.title,this.modalConfig.bodyScrollable=!0}initCategories(){this.filterChannelTypeId().forEach(n=>{this.channelService.getCategoriesByTypeId(n).pipe((0,Ft.R)(this.destroy$)).subscribe(a=>{this.setCategoriesChannelOption(n,a)})})}setCategoriesChannelOption(e,n){this.channelOptions=this.channelOptions.map(a=>(a.TypeID==e&&(a.Categories=n),a))}initChannelOptions(){this.channelOptions=this.channels.map(e=>({Name:e.Name,Img:e.Img,ID:e.ID,Selected:!1,CategoryID:0,TypeID:e.TypeID,Categories:[]}))}filterChannelTypeId(){return this.data.channels.map(n=>n.TypeID).filter((n,a,r)=>r.indexOf(n)==a).filter(n=>n==G.x.Lazada||n==G.x.Tokopedia)}onSelectCategory(e,n){this.channelOptions[n].CategoryID=e}onSelectAllChannel(e){this.channelOptions=this.channelOptions.map(n=>(n.Selected=e,n)),this.enableBtnOk=e}onSelectChannel(){this.enableBtnOk=this.hasSelectedChannel()}hasSelectedChannel(){return-1!==this.channelOptions.findIndex(e=>e.Selected)}onClose(){this.dialogRef.close("CANCEL")}onSave(){if(!this.validateSelectedCategory())return void this.toastrService.warning("Category is required","Warning!");const e=this.channelOptions.filter(n=>n.Selected).map(n=>({CategoryID:n.CategoryID,ChannelID:n.ID}));this.submitToServer(e)}validateSelectedCategory(){return-1==this.channelOptions.filter(n=>n.Selected).filter(n=>n.TypeID==G.x.Lazada||n.TypeID==G.x.Tokopedia).findIndex(n=>0==n.CategoryID)}submitToServer(e){this.productService.uploadToMultipleChannel(this.products,e).subscribe({next:n=>{this.dialogRef.close(n),this.productService.showToastrSuccessUploadMultiple(n,this.data.products[0])},error:n=>{this.dialogRef.close("ERROR"),this.productService.showToastErrorUploadMultiple(n,this.data.products[0])}})}getChannelCategory(e){let n;switch(e){case G.x.ShopeeV2:n="Perlengkapan Rumah Lainnya";break;case G.x.Tiktok:n="Perlengkapan Rumah - Dekorasi Rumah - Poster & Produck Cetak";break;case G.x.WooCommerce:n="New Product";break;default:n="Unavailable Category"}return n}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(D.WI),t.Y36(Ht),t.Y36(kt.M),t.Y36(D.so),t.Y36(Kt._W))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-modal-uploadMultiple-product"]],decls:13,vars:3,consts:[[3,"dynamicValidated","config","onOk","onClose","onCancel"],["content",""],[1,"table"],[1,"text-center",2,"width","6%"],["type","checkbox",3,"change"],[2,"width","30%"],[2,"width","60%"],[4,"ngFor","ngForOf"],[1,"text-center"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"d-flex","align-items-center"],["alt","",1,"channel-logo",3,"src"],[1,"ms-3"],[4,"ngIf","ngIfElse"],["EMPTY",""],["appearance","outline","bindLabel","Value","bindValue","Key","placeholder","Select Category",3,"data","batchSize","onSelect"],["matTooltip","Product Category is Harcoded, Please Change Product Category in Seller Center","matTooltipPosition","above"],["type","text","disabled","",1,"form-control","rounded",2,"height","40px",3,"placeholder"]],template:function(e,n){1&e&&(t.TgZ(0,"modal-material",0),t.NdJ("onOk",function(){return n.onSave()})("onClose",function(){return n.onClose()})("onCancel",function(){return n.onClose()}),t.TgZ(1,"div",1)(2,"table",2)(3,"thead")(4,"tr")(5,"th",3)(6,"input",4),t.NdJ("change",function(r){return n.onSelectAllChannel(r.target.checked)}),t.qZA()(),t.TgZ(7,"th",5),t._uU(8," CHANNEL "),t.qZA(),t.TgZ(9,"th",6),t._uU(10,"CATEGORY"),t.qZA()()(),t.TgZ(11,"tbody"),t.YNc(12,fn,13,5,"ng-container",7),t.qZA()()()()),2&e&&(t.Q6J("dynamicValidated",n.enableBtnOk)("config",n.modalConfig),t.xp6(12),t.Q6J("ngForOf",n.channelOptions))},dependencies:[P.sg,P.O5,L.Wl,L.JJ,L.On,tt.gM,ie.h,Nt.M],styles:["input[type=checkbox][_ngcontent-%COMP%]{width:15px;height:15px}img.channel-logo[_ngcontent-%COMP%]{width:24px;height:24px}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{border-top:none!important;border-left:none!important;border-right:none!important}"]}),o})();var Dt=u(7481),Cn=u(5861);function H(){}const ve=o=>o;function Ye(o,i){for(const e in i)o[e]=i[e];return o}function Ve(o){return o()}function W(o){o.forEach(Ve)}function le(o){return"function"==typeof o}function Pt(o,i){return o!=o?i==i:o!==i}function At(o,i,e){o.$$.on_destroy.push(function xn(o,...i){if(null==o)return H;const e=o.subscribe(...i);return e.unsubscribe?()=>e.unsubscribe():e}(i,e))}function ce(o){return o&&le(o.destroy)?o.destroy:H}let Se=()=>globalThis.performance.now(),ye=o=>requestAnimationFrame(o);const Ut=new Set;function qe(o){Ut.forEach(i=>{i.c(o)||(Ut.delete(i),i.f())}),0!==Ut.size&&ye(qe)}function Te(o){let i;return 0===Ut.size&&ye(qe),{promise:new Promise(e=>{Ut.add(i={c:o,f:e})}),abort(){Ut.delete(i)}}}function gt(o,i){o.appendChild(i)}function Y(o,i,e){o.insertBefore(i,e||null)}function V(o){o.parentNode.removeChild(o)}function F(o){return document.createElement(o)}function se(){return function Pn(o){return document.createTextNode(o)}("")}function $(o,i,e,n){return o.addEventListener(i,e,n),()=>o.removeEventListener(i,e,n)}function T(o,i,e){null==e?o.removeAttribute(i):o.getAttribute(i)!==e&&o.setAttribute(i,e)}function B(o,i,e,n){null===e?o.style.removeProperty(i):o.style.setProperty(i,e)}function z(o,i,e){o.classList[e?"add":"remove"](i)}let Jt,Oe,Ie=0,Me={};function He(o,i,e,n,a,r,l,c=0){const s=16.666/n;let d="{\n";for(let g=0;g<=1;g+=s){const p=i+(e-i)*r(g);d+=100*g+`%{${l(p,1-p)}}\n`}const f=d+`100% {${l(e,1-e)}}\n}`,m=`_bp_${Math.round(1e9*Math.random())}_${c}`;if(!Me[m]){if(!Jt){const g=F("style");document.head.appendChild(g),Jt=g.sheet}Me[m]=!0,Jt.insertRule(`@keyframes ${m} ${f}`,Jt.cssRules.length)}const b=o.style.animation||"";return o.style.animation=`${b?`${b}, `:""}${m} ${n}ms linear ${a}ms 1 both`,Ie+=1,m}function we(o,i){o.style.animation=(o.style.animation||"").split(", ").filter(i?e=>e.indexOf(i)<0:e=>-1===e.indexOf("_bp")).join(", "),i&&!--Ie&&function Sn(){ye(()=>{if(Ie)return;let o=Jt.cssRules.length;for(;o--;)Jt.deleteRule(o);Me={}})}()}function $t(o){Oe=o}const Gt=[],Ke=[],de=[],$e=[],yn=Promise.resolve();let Ze=!1;function vt(o){de.push(o)}const Ne=new Set;let zt,pe=0;function Ge(){const o=Oe;do{for(;pe<Gt.length;){const i=Gt[pe];pe++,$t(i),In(i.$$)}for($t(null),Gt.length=0,pe=0;Ke.length;)Ke.pop()();for(let i=0;i<de.length;i+=1){const e=de[i];Ne.has(e)||(Ne.add(e),e())}de.length=0}while(Gt.length);for(;$e.length;)$e.pop()();Ze=!1,Ne.clear(),$t(o)}function In(o){if(null!==o.fragment){o.update(),W(o.before_update);const i=o.dirty;o.dirty=[-1],o.fragment&&o.fragment.p(o.ctx,i),o.after_update.forEach(vt)}}function ze(){return zt||(zt=Promise.resolve(),zt.then(()=>{zt=null})),zt}function ue(o,i,e){o.dispatchEvent(function vn(o,i,e=!1){const n=document.createEvent("CustomEvent");return n.initCustomEvent(o,e,!1,i),n}(`${i?"intro":"outro"}${e}`))}const he=new Set;let mt;function St(){mt={r:0,c:[],p:mt}}function yt(){mt.r||W(mt.c),mt=mt.p}function O(o,i){o&&o.i&&(he.delete(o),o.i(i))}function J(o,i,e,n){if(o&&o.o){if(he.has(o))return;he.add(o),mt.c.push(()=>{he.delete(o),n&&(e&&o.d(1),n())}),o.o(i)}}const je={duration:0};function We(o,i,e){let r,l,n=i(o,e),a=!1,c=0;function s(){r&&we(o,r)}function d(){const{delay:m=0,duration:b=300,easing:g=ve,tick:p=H,css:C}=n||je;C&&(r=He(o,0,1,b,m,g,C,c++)),p(0,1);const y=Se()+m,X=y+b;l&&l.abort(),a=!0,vt(()=>ue(o,!0,"start")),l=Te(ot=>{if(a){if(ot>=X)return p(1,0),ue(o,!0,"end"),s(),a=!1;if(ot>=y){const I=g((ot-y)/b);p(I,1-I)}}return a})}let f=!1;return{start(){f||(f=!0,we(o),le(n)?(n=n(),ze().then(d)):d())},invalidate(){f=!1},end(){a&&(s(),a=!1)}}}function Et(o,i,e){let r,n=i(o,e),a=!0;const l=mt;function c(){const{delay:s=0,duration:d=300,easing:f=ve,tick:m=H,css:b}=n||je;b&&(r=He(o,1,0,d,s,f,b));const g=Se()+s,p=g+d;vt(()=>ue(o,!1,"start")),Te(C=>{if(a){if(C>=p)return m(0,1),ue(o,!1,"end"),--l.r||W(l.c),!1;if(C>=g){const y=f((C-g)/d);m(1-y,y)}}return a})}return l.r+=1,le(n)?ze().then(()=>{n=n(),c()}):c(),{end(s){s&&n.tick&&n.tick(1,0),a&&(r&&we(o,r),a=!1)}}}function Lt(o){o&&o.c()}function Tt(o,i,e,n){const{fragment:a,on_mount:r,on_destroy:l,after_update:c}=o.$$;a&&a.m(i,e),n||vt(()=>{const s=r.map(Ve).filter(le);l?l.push(...s):W(s),o.$$.on_mount=[]}),c.forEach(vt)}function It(o,i){const e=o.$$;null!==e.fragment&&(W(e.on_destroy),e.fragment&&e.fragment.d(i),e.on_destroy=e.fragment=null,e.ctx=[])}function jt(o,i,e,n,a,r,l,c=[-1]){const s=Oe;$t(o);const d=o.$$={fragment:null,ctx:null,props:r,update:H,not_equal:a,bound:{},on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(s?s.$$.context:[])),callbacks:{},dirty:c,skip_bound:!1,root:i.target||s.$$.root};l&&l(d.root);let f=!1;d.ctx=e?e(o,i.props||{},(m,b,...g)=>{const p=g.length?g[0]:b;return d.ctx&&a(d.ctx[m],d.ctx[m]=p)&&(!d.skip_bound&&d.bound[m]&&d.bound[m](p),f&&function Mn(o,i){-1===o.$$.dirty[0]&&(Gt.push(o),function Tn(){Ze||(Ze=!0,yn.then(Ge))}(),o.$$.dirty.fill(0)),o.$$.dirty[i/31|0]|=1<<i%31}(o,m)),b}):[],d.update(),f=!0,W(d.before_update),d.fragment=!!n&&n(d.ctx),i.target&&(d.fragment&&d.fragment.c(),Tt(o,i.target,i.anchor,i.customElement),Ge()),$t(s)}class Wt{$destroy(){It(this,1),this.$destroy=H}$on(i,e){const n=this.$$.callbacks[i]||(this.$$.callbacks[i]=[]);return n.push(e),()=>{const a=n.indexOf(e);-1!==a&&n.splice(a,1)}}$set(i){this.$$set&&!function bn(o){return 0===Object.keys(o).length}(i)&&(this.$$.skip_bound=!0,this.$$set(i),this.$$.skip_bound=!1)}}function Fe(o){const i=o-1;return i*i*i+1}function _t(o,{delay:i=0,duration:e=400,easing:n=Fe,x:a=0,y:r=0,opacity:l=0}={}){const c=getComputedStyle(o),s=+c.opacity,d="none"===c.transform?"":c.transform,f=s*(1-l);return{delay:i,duration:e,easing:n,css:(m,b)=>`\n\t\t\ttransform: ${d} translate(${(1-m)*a}px, ${(1-m)*r}px);\n\t\t\topacity: ${s-f*b}`}}const Bt=[];function ke(o,i=H){let e;const n=new Set;function a(c){if(Pt(o,c)&&(o=c,e)){const s=!Bt.length;for(const d of n)d[1](),Bt.push(d,o);if(s){for(let d=0;d<Bt.length;d+=2)Bt[d][0](Bt[d+1]);Bt.length=0}}}return{set:a,update:function r(c){a(c(o))},subscribe:function l(c,s=H){const d=[c,s];return n.add(d),1===n.size&&(e=i(a)||H),c(o),()=>{n.delete(d),0===n.size&&(e(),e=null)}}}}function Xe(o,i){if(o===i||o!=o)return()=>o;const e=typeof o;if(Array.isArray(o)){const n=i.map((a,r)=>Xe(o[r],a));return a=>n.map(r=>r(a))}if("number"===e){const n=i-o;return a=>o+a*n}}function tn(o,i={}){const e=ke(o);let n,a=o;function r(l,c){if(null==o)return e.set(o=l),Promise.resolve();a=l;let s=n,d=!1,{delay:f=0,duration:m=400,easing:b=ve,interpolate:g=Xe}=Ye(Ye({},i),c);if(0===m)return s&&(s.abort(),s=null),e.set(o=a),Promise.resolve();const p=Se()+f;let C;return n=Te(y=>{if(y<p)return!0;d||(C=g(o,l),"function"==typeof m&&(m=m(o,l)),d=!0),s&&(s.abort(),s=null);const X=y-p;return X>m?(e.set(o=l),!1):(e.set(o=C(b(X/m))),!0)}),n.promise}return{set:r,update:(l,c)=>r(l(a,o),c),subscribe:e.subscribe}}const ge=ke(0),wn=globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches,De=o=>({easing:Fe,duration:wn?0:o});function en(o){let i,e,n,a,r=!o[2]&&nn();return{c(){i=F("div"),r&&r.c(),T(i,"class","bp-load"),B(i,"background-image","url("+o[0]+")")},m(l,c){Y(l,i,c),r&&r.m(i,null),a=!0},p(l,c){(o=l)[2]?r&&(r.d(1),r=null):r||(r=nn(),r.c(),r.m(i,null)),(!a||1&c)&&B(i,"background-image","url("+o[0]+")")},i(l){a||(vt(()=>{n&&n.end(1),e=We(i,_t,{duration:o[1]?400:0}),e.start()}),a=!0)},o(l){e&&e.invalidate(),l&&(n=Et(i,_t,{duration:480})),a=!1},d(l){l&&V(i),r&&r.d(),l&&n&&n.end()}}}function nn(o){let i,e;return{c(){i=F("span"),e=F("span"),T(i,"class","bp-bar"),T(e,"class","bp-o")},m(n,a){Y(n,i,a),Y(n,e,a)},d(n){n&&V(i),n&&V(e)}}}function On(o){let i,e=(!o[1]||o[2])&&en(o);return{c(){e&&e.c(),i=se()},m(n,a){e&&e.m(n,a),Y(n,i,a)},p(n,[a]){!n[1]||n[2]?e?(e.p(n,a),6&a&&O(e,1)):(e=en(n),e.c(),O(e,1),e.m(i.parentNode,i)):e&&(St(),J(e,1,1,()=>{e=null}),yt())},i(n){O(e)},o(n){J(e)},d(n){e&&e.d(n),n&&V(i)}}}function Zn(o,i,e){let n;At(o,ge,l=>e(2,n=l));let{thumb:a}=i,{loaded:r}=i;return o.$$set=l=>{"thumb"in l&&e(0,a=l.thumb),"loaded"in l&&e(1,r=l.loaded)},[a,r,n]}class Ae extends Wt{constructor(i){super(),jt(this,i,Zn,On,Pt,{thumb:0,loaded:1})}}function on(o){let i,e,n,a,r,l;return{c(){i=F("img"),T(i,"srcset",e=o[7].img),T(i,"sizes",n=o[8].sizes||`${o[1]}px`),T(i,"alt",a=o[7].alt)},m(c,s){Y(c,i,s),l=!0},p(c,s){(!l||2&s[0]&&n!==(n=c[8].sizes||`${c[1]}px`))&&T(i,"sizes",n)},i(c){l||(r&&r.end(1),l=!0)},o(c){r=Et(i,_t,{}),l=!1},d(c){c&&V(i),c&&r&&r.end()}}}function an(o){let i,e;return i=new Ae({props:{thumb:o[7].thumb,loaded:o[2]}}),{c(){Lt(i.$$.fragment)},m(n,a){Tt(i,n,a),e=!0},p(n,a){const r={};4&a[0]&&(r.loaded=n[2]),i.$set(r)},i(n){e||(O(i.$$.fragment,n),e=!0)},o(n){J(i.$$.fragment,n),e=!1},d(n){It(i,n)}}}function Nn(o){let i,e,n,a,r,l,c=o[2]&&on(o),s=o[3]&&an(o);return{c(){i=F("div"),e=F("div"),c&&c.c(),n=se(),s&&s.c(),T(e,"class","bp-img"),B(e,"background-image","url("+o[7].thumb+")"),B(e,"width",o[0][0]+"px"),B(e,"height",o[0][1]+"px"),B(e,"transform","translate3d("+(o[0][0]/-2+o[6][0])+"px, "+(o[0][1]/-2+o[6][1])+"px, 0)"),T(i,"class","bp-img-wrap"),z(i,"bp-drag",o[4]),z(i,"bp-close",o[5])},m(d,f){Y(d,i,f),gt(i,e),c&&c.m(e,null),gt(e,n),s&&s.m(e,null),a=!0,r||(l=[ce(o[17].call(null,e)),$(i,"wheel",o[12]),$(i,"pointerdown",o[13]),$(i,"pointermove",o[14]),$(i,"pointerup",o[16]),$(i,"pointercancel",o[15])],r=!0)},p(d,f){d[2]?c?(c.p(d,f),4&f[0]&&O(c,1)):(c=on(d),c.c(),O(c,1),c.m(e,n)):c&&(St(),J(c,1,1,()=>{c=null}),yt()),d[3]?s?(s.p(d,f),8&f[0]&&O(s,1)):(s=an(d),s.c(),O(s,1),s.m(e,null)):s&&(St(),J(s,1,1,()=>{s=null}),yt()),(!a||1&f[0])&&B(e,"width",d[0][0]+"px"),(!a||1&f[0])&&B(e,"height",d[0][1]+"px"),(!a||65&f[0])&&B(e,"transform","translate3d("+(d[0][0]/-2+d[6][0])+"px, "+(d[0][1]/-2+d[6][1])+"px, 0)"),16&f[0]&&z(i,"bp-drag",d[4]),32&f[0]&&z(i,"bp-close",d[5])},i(d){a||(O(c),O(s),a=!0)},o(d){J(c),J(s),a=!1},d(d){d&&V(i),c&&c.d(),s&&s.d(),r=!1,W(l)}}}function Fn(o,i,e){let n,a,r,l;At(o,ge,h=>e(22,r=h));let{props:c}=i,{smallScreen:s}=i,{activeItem:d,opts:f,prev:m,next:b,zoomed:g,container:p}=c;At(o,g,h=>e(21,n=h));let ot,I,it,_e,Q,Ct,Qt,Rt,fe,Yt,Ce,C=d.maxZoom||f.maxZoom||10,y=c.calculateDimensions(d),X=y[0],ft=0;const Vt=+d.width,te=[],wt=new Map,bt=tn(y,De(400));At(o,bt,h=>e(0,l=h));const at=tn([0,0],De(400));At(o,at,h=>e(6,a=h));const ee=([h,M],E=l)=>{const k=(E[0]-p.w)/2,j=(E[1]-p.h)/2;return k<0?h=0:h>k?s?(h=Q?k+(h-k)/10:k)>k+20&&e(4,Q=m()):h=k:h<-k&&(s?(h=Q?-k-(-k-h)/10:-k)<-k-20&&e(4,Q=b()):h=-k),j<0?M=0:M>j?M=j:M<-j&&(M=-j),[h,M]},ne=(h,M=C)=>{if(r)return;const E=y[0]*C,[k,j]=l;let K=k+k*M,be=j+j*M;if(M>0)K>E&&(K=E,be=y[1]*C),K>Vt&&(K=Vt,be=+d.height);else if(K<y[0])return bt.set(y),at.set([0,0]);let{x:Le,y:Be,width:dn,height:pn}=_e.getBoundingClientRect();const un=h.clientX-Le-dn/2,hn=h.clientY-Be-pn/2;Le=K/dn*-un+un,Be=be/pn*-hn+hn;const gn=[K,be];bt.set(gn).then(()=>{e(1,X=Math.round(Math.max(X,K)))}),at.set(ee([a[0]+Le,a[1]+Be],gn))},dt=h=>wt.delete(h.pointerId);return o.$$set=h=>{"smallScreen"in h&&e(19,s=h.smallScreen)},o.$$.update=()=>{if(1048577&o.$$.dirty[0]&&g.set(l[0]-10>y[0]),7340032&o.$$.dirty[0]&&r&&n&&!f.intro){const h=De(480);at.set([0,0],h),bt.set(y,h),e(5,Ce=!0)}},[l,X,ot,I,Q,Ce,a,d,f,g,bt,at,h=>{f.inline&&!n||(h.preventDefault(),ne(h,h.deltaY/-300))},h=>{2!==h.button&&(h.preventDefault(),e(4,Q=!0),wt.set(h.pointerId,h),Qt=h.clientX,Rt=h.clientY,fe=a[0],Yt=a[1])},h=>{if(wt.size>1)return e(4,Q=!1),f.noPinch?.(p.el)||(h=>{const[M,E]=wt.set(h.pointerId,h).values(),K=Math.hypot(M.clientX-E.clientX,M.clientY-E.clientY);it=it||{clientX:(M.clientX+E.clientX)/2,clientY:(M.clientY+E.clientY)/2},ne(it,((ft||K)-K)/-35),ft=K})(h);if(!Q)return;let M=h.clientX,E=h.clientY;Ct=te.push({x:M,y:E})>2,M-=Qt,E-=Rt,n||(E<-90&&e(4,Q=!f.noClose&&c.close()),Math.abs(E)<30&&(M>40&&e(4,Q=m()),M<-40&&e(4,Q=b()))),n&&Ct&&!r&&at.set(ee([fe+M,Yt+E]),{duration:0})},dt,function pt(h){if(dt(h),it&&(e(4,Q=ft=0),it=wt.size?it:null),Q){if(e(4,Q=!1),h.target===this&&!f.noClose)return c.close();if(Ct){const[M,E,k]=te.slice(-3);Math.hypot(E.x-k.x,E.y-k.y)>5&&at.set(ee([a[0]-5*(M.x-k.x),a[1]-5*(M.y-k.y)]))}else f.onImageClick?.(p.el,d)||ne(h,n?-C:C);Ct=!1,te.length=0}},h=>{_e=h,c.setResizeFunc(()=>{e(20,y=c.calculateDimensions(d)),(f.inline||!s)&&(bt.set(y),at.set([0,0]))}),c.loadImage(d).then(()=>{e(2,ot=!0),c.preloadNext()}),setTimeout(()=>{e(3,I=!ot)},250)},c,s,y,n,r]}class kn extends Wt{constructor(i){super(),jt(this,i,Fn,Nn,Pt,{props:18,smallScreen:19},null,[-1,-1])}}function Dn(o){let i,e,n,a,r,l;return n=new Ae({props:{thumb:o[2].thumb,loaded:o[0]}}),{c(){i=F("div"),e=F("iframe"),Lt(n.$$.fragment),T(e,"allow","autoplay; fullscreen"),T(e,"title",o[2].title),T(i,"class","bp-if"),B(i,"width",o[1][0]+"px"),B(i,"height",o[1][1]+"px")},m(c,s){Y(c,i,s),gt(i,e),Tt(n,i,null),a=!0,r||(l=[ce(o[3].call(null,e)),$(e,"load",o[5])],r=!0)},p(c,[s]){const d={};1&s&&(d.loaded=c[0]),n.$set(d),(!a||2&s)&&B(i,"width",c[1][0]+"px"),(!a||2&s)&&B(i,"height",c[1][1]+"px")},i(c){a||(O(n.$$.fragment,c),a=!0)},o(c){J(n.$$.fragment,c),a=!1},d(c){c&&V(i),It(n),r=!1,W(l)}}}function An(o,i,e){let a,r,{props:n}=i;const{activeItem:l}=n,c=()=>e(1,r=n.calculateDimensions(l));return c(),n.setResizeFunc(c),[a,r,l,f=>f.src=l.iframe,n,()=>e(0,a=!0)]}class Un extends Wt{constructor(i){super(),jt(this,i,An,Dn,Pt,{props:4})}}function Jn(o){let i,e,n,a,r;return e=new Ae({props:{thumb:o[2].thumb,loaded:o[0]}}),{c(){i=F("div"),Lt(e.$$.fragment),T(i,"class","bp-vid"),B(i,"width",o[1][0]+"px"),B(i,"height",o[1][1]+"px"),B(i,"background-image","url("+o[2].thumb+")")},m(l,c){Y(l,i,c),Tt(e,i,null),n=!0,a||(r=ce(o[3].call(null,i)),a=!0)},p(l,[c]){const s={};1&c&&(s.loaded=l[0]),e.$set(s),(!n||2&c)&&B(i,"width",l[1][0]+"px"),(!n||2&c)&&B(i,"height",l[1][1]+"px")},i(l){n||(O(e.$$.fragment,l),n=!0)},o(l){J(e.$$.fragment,l),n=!1},d(l){l&&V(i),It(e),a=!1,r()}}}function En(o,i,e){let a,r,{props:n}=i;const{activeItem:l}=n,c=()=>e(1,r=n.calculateDimensions(l));c(),n.setResizeFunc(c);const s=(f,m)=>{for(const b in m)T(f,b,m[b])};return[a,r,l,f=>{let m;const b=(g,p)=>{Array.isArray(p)||(p=JSON.parse(p));for(const C of p){m||(m=F(C.type?.includes("audio")?"audio":"video"),s(m,{controls:!0,autoplay:!0,playsinline:!0,tabindex:"0"}));const y=F(g);s(y,C),gt(m,y)}};b("source",l.sources),b("track",l.tracks||[]),$(m,"canplay",()=>e(0,a=!0)),gt(f,m)},n]}class Ln extends Wt{constructor(i){super(),jt(this,i,En,Jn,Pt,{props:4})}}function rn(o){let i,e,n,r,l,c,s,d,f,m,a=o[6].i,b=cn(o),g=o[0].length>1&&sn(o);return{c(){i=F("div"),e=F("div"),b.c(),r=F("div"),l=F("button"),g&&g.c(),T(l,"class","bp-x"),T(l,"title","Close"),T(l,"aria-label","Close"),T(r,"class","bp-controls"),T(i,"class","bp-wrap"),z(i,"bp-zoomed",o[10]),z(i,"bp-inline",o[8]),z(i,"bp-small",o[7]),z(i,"bp-noclose",o[5].noClose)},m(p,C){Y(p,i,C),gt(i,e),b.m(i,null),gt(i,r),gt(r,l),g&&g.m(r,null),d=!0,f||(m=[$(l,"click",o[1]),ce(s=o[14].call(null,i))],f=!0)},p(p,C){64&C[0]&&Pt(a,a=p[6].i)?(St(),J(b,1,1,H),yt(),b=cn(p),b.c(),O(b),b.m(i,r)):b.p(p,C),p[0].length>1?g?g.p(p,C):(g=sn(p),g.c(),g.m(r,null)):g&&(g.d(1),g=null),1024&C[0]&&z(i,"bp-zoomed",p[10]),256&C[0]&&z(i,"bp-inline",p[8]),128&C[0]&&z(i,"bp-small",p[7]),32&C[0]&&z(i,"bp-noclose",p[5].noClose)},i(p){d||(n&&n.end(1),O(b),c&&c.end(1),d=!0)},o(p){n=Et(e,_t,{duration:480}),J(b),c=Et(r,_t,{}),d=!1},d(p){p&&V(i),p&&n&&n.end(),b.d(p),g&&g.d(),p&&c&&c.end(),f=!1,W(m)}}}function Bn(o){let i,e=o[6].html+"";return{c(){i=F("div"),T(i,"class","bp-html")},m(n,a){Y(n,i,a),i.innerHTML=e},p(n,a){64&a[0]&&e!==(e=n[6].html+"")&&(i.innerHTML=e)},i:H,o:H,d(n){n&&V(i)}}}function Qn(o){let i,e;return i=new Un({props:{props:o[13]()}}),{c(){Lt(i.$$.fragment)},m(n,a){Tt(i,n,a),e=!0},p:H,i(n){e||(O(i.$$.fragment,n),e=!0)},o(n){J(i.$$.fragment,n),e=!1},d(n){It(i,n)}}}function Rn(o){let i,e;return i=new Ln({props:{props:o[13]()}}),{c(){Lt(i.$$.fragment)},m(n,a){Tt(i,n,a),e=!0},p:H,i(n){e||(O(i.$$.fragment,n),e=!0)},o(n){J(i.$$.fragment,n),e=!1},d(n){It(i,n)}}}function Yn(o){let i,e;return i=new kn({props:{props:o[13](),smallScreen:o[7]}}),{c(){Lt(i.$$.fragment)},m(n,a){Tt(i,n,a),e=!0},p(n,a){const r={};128&a[0]&&(r.smallScreen=n[7]),i.$set(r)},i(n){e||(O(i.$$.fragment,n),e=!0)},o(n){J(i.$$.fragment,n),e=!1},d(n){It(i,n)}}}function ln(o){let i,n,a,e=o[6].caption+"";return{c(){i=F("div"),T(i,"class","bp-cap"),T(i,"tabindex","0")},m(r,l){Y(r,i,l),i.innerHTML=e,a=!0},p(r,l){(!a||64&l[0])&&e!==(e=r[6].caption+"")&&(i.innerHTML=e)},i(r){a||(n&&n.end(1),a=!0)},o(r){n=Et(i,_t,{duration:200}),a=!1},d(r){r&&V(i),r&&n&&n.end()}}}function cn(o){let i,e,n,a,r,l,c,s,d;const f=[Yn,Rn,Qn,Bn],m=[];function b(p,C){return p[6].img?0:p[6].sources?1:p[6].iframe?2:3}e=b(o),n=m[e]=f[e](o);let g=o[6].caption&&ln(o);return{c(){i=F("div"),n.c(),g&&g.c(),l=se(),T(i,"class","bp-inner")},m(p,C){Y(p,i,C),m[e].m(i,null),g&&g.m(p,C),Y(p,l,C),c=!0,s||(d=[$(i,"pointerdown",o[21]),$(i,"pointerup",o[22])],s=!0)},p(p,C){let y=e;e=b(p),e===y?m[e].p(p,C):(St(),J(m[y],1,1,()=>{m[y]=null}),yt(),n=m[e],n?n.p(p,C):(n=m[e]=f[e](p),n.c()),O(n,1),n.m(i,null)),p[6].caption?g?(g.p(p,C),64&C[0]&&O(g,1)):(g=ln(p),g.c(),O(g,1),g.m(l.parentNode,l)):g&&(St(),J(g,1,1,()=>{g=null}),yt())},i(p){c||(O(n),vt(()=>{r&&r.end(1),a=We(i,o[12],!0),a.start()}),O(g),c=!0)},o(p){J(n),a&&a.invalidate(),r=Et(i,o[12],!1),J(g),c=!1},d(p){p&&V(i),m[e].d(),p&&r&&r.end(),g&&g.d(p),p&&V(l),s=!1,W(d)}}}function sn(o){let i,n,a,r,l,e=`${o[4]+1} / ${o[0].length}`;return{c(){i=F("div"),n=F("button"),a=F("button"),T(i,"class","bp-count"),T(n,"class","bp-prev"),T(n,"title","Previous"),T(n,"aria-label","Previous"),T(a,"class","bp-next"),T(a,"title","Next"),T(a,"aria-label","Next")},m(c,s){Y(c,i,s),i.innerHTML=e,Y(c,n,s),Y(c,a,s),r||(l=[$(n,"click",o[2]),$(a,"click",o[3])],r=!0)},p(c,s){17&s[0]&&e!==(e=`${c[4]+1} / ${c[0].length}`)&&(i.innerHTML=e)},d(c){c&&V(i),c&&V(n),c&&V(a),r=!1,W(l)}}}function Vn(o){let i,e,n=o[0]&&rn(o);return{c(){n&&n.c(),i=se()},m(a,r){n&&n.m(a,r),Y(a,i,r),e=!0},p(a,r){a[0]?n?(n.p(a,r),1&r[0]&&O(n,1)):(n=rn(a),n.c(),O(n,1),n.m(i.parentNode,i)):n&&(St(),J(n,1,1,()=>{n=null}),yt())},i(a){e||(O(n),e=!0)},o(a){J(n),e=!1},d(a){n&&n.d(a),a&&V(i)}}}function qn(o,i,e){let n,{items:a}=i,{target:r}=i;const l=document.documentElement;let c,s,d,f,m,b,g,p,C,y,X;const ot=x=>X=x,I={},it=ke(0);At(o,it,x=>e(10,n=x));const ft=()=>{s.onClose?.(I.el,C),ge.set(!0),e(0,a=null),f?.focus({preventScroll:!0})},Q=()=>Qt(c-1),Ct=()=>Qt(c+1),Qt=x=>{g=x-c,e(4,c=Rt(x))},Rt=x=>(x+a.length)%a.length,fe=x=>{const{key:S,shiftKey:N}=x;if("Escape"===S)!s.noClose&&ft();else if("ArrowRight"===S)Ct();else if("ArrowLeft"===S)Q();else if("Tab"===S){const{activeElement:R}=document;if(N||!R.controls){x.preventDefault();const{focusWrap:dt=I.el}=s,pt=[...dt.querySelectorAll("*")].filter(h=>h.tabIndex>=0);let Ot=pt.indexOf(R);Ot+=pt.length+(N?-1:1),pt[Ot%pt.length].focus()}}},Yt=({width:x=1920,height:S=1080})=>{const{scale:N=.99}=s,R=Math.min(1,I.w/x*N,I.h/S*N);return[Math.round(x*R),Math.round(S*R)]},Ce=()=>{if(a){const x=a[Rt(c+1)],S=a[Rt(c-1)];!x.preload&&Vt(x),!S.preload&&Vt(S)}},Vt=x=>{if(x.img){const S=F("img");return S.sizes=s.sizes||`${Yt(x)[0]}px`,S.srcset=x.img,x.preload=!0,S.decode()}};return o.$$set=x=>{"items"in x&&e(0,a=x.items),"target"in x&&e(15,r=x.target)},o.$$.update=()=>{1835121&o.$$.dirty[0]&&a&&(e(6,C=a[c]),e(19,y=C.hasOwnProperty("html")),d&&(y&&ot(null),s.onUpdate?.(I.el,C)))},[a,ft,Q,Ct,c,s,C,m,b,p,n,it,(x,S)=>d&&a?_t(x,{x:(g>0?20:-20)*(S?1:-1),duration:250}):(e(18,d=S),s.intro?_t(x,{y:S?10:-10}):(x=>{let S;if(y){const h=x.firstChild.firstChild;S=[h.clientWidth,h.clientHeight]}else S=Yt(C);const N=(C.element||f).getBoundingClientRect(),R=N.left-(I.w-N.width)/2,dt=N.top-(I.h-N.height)/2,pt=N.width/S[0],Ot=N.height/S[1];return{duration:480,easing:Fe,css:(h,M)=>`transform:translate3d(${R*M}px, ${dt*M}px, 0) scale3d(${pt+h*(1-pt)}, ${Ot+h*(1-Ot)}, 1)`}})(x)),()=>({activeItem:C,calculateDimensions:Yt,loadImage:Vt,preloadNext:Ce,opts:s,prev:Q,next:Ct,close:ft,setResizeFunc:ot,zoomed:it,container:I}),x=>{let S,N;e(20,I.el=x,I),s.onOpen?.(I.el,C),b||(S=$(globalThis,"keydown",fe));const R=new ResizeObserver(dt=>{N&&(e(20,I.w=dt[0].contentRect.width,I),e(20,I.h=dt[0].contentRect.height,I),e(7,m=I.w<769),X?.(),s.onResize?.(I.el,C)),N=!0});return R.observe(x),{destroy(){R.disconnect(),S?.(),ge.set(!1),l.classList.remove("bp-lock"),s.onClosed?.()}}},r,x=>{e(5,s=x),e(8,b=s.inline);const S=s.items;!b&&l.scrollHeight>l.clientHeight&&l.classList.add("bp-lock"),f=document.activeElement,e(20,I.w=r.offsetWidth,I),e(20,I.h=r===document.body?globalThis.innerHeight:r.clientHeight,I),e(7,m=I.w<769),e(4,c=s.position||0),Array.isArray(S)?e(0,a=S.map((N,R)=>(s.el&&s.el===N.element&&e(4,c=R),{i:R,...N}))):e(0,a=(S.length?[...S]:[S]).map((N,R)=>(s.el===N&&e(4,c=R),{element:N,i:R,...N.dataset})))},Qt,d,y,I,x=>e(9,p=x.target),function(x){2!==x.button&&x.target===this&&p===this&&!s.noClose&&ft()}]}class Hn extends Wt{constructor(i){super(),jt(this,i,qn,Vn,Pt,{items:0,target:15,open:16,close:1,prev:2,next:3,setPosition:17},null,[-1,-1])}get items(){return this.$$.ctx[0]}get target(){return this.$$.ctx[15]}get open(){return this.$$.ctx[16]}get close(){return this.$$.ctx[1]}get prev(){return this.$$.ctx[2]}get next(){return this.$$.ctx[3]}get setPosition(){return this.$$.ctx[17]}}const $n=function Kn(o){return new Hn({...o,props:o})}({target:document.body});let Ue=(()=>{class o{constructor(){}openBiggerPicture(e,n){return(0,Cn.Z)(function*(){e.preventDefault();try{const a=yield _.g.getImageInfo(n);$n.open({items:[a],intro:"fadeup"})}catch(a){alert(a)}})()}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Gn(o,i){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"img",19),t.NdJ("click",function(a){t.CHM(e);const r=t.oxw();return t.KtG(r.openBiggerPicture(a))}),t.qZA(),t.BQk()}if(2&o){const e=t.oxw();t.xp6(1),t.Q6J("src",e.image,t.LSH)}}function zn(o,i){1&o&&t._UZ(0,"img",20)}function jn(o,i){if(1&o&&(t.ynx(0),t.TgZ(1,"span",24)(2,"a",25),t._UZ(3,"i",26),t.qZA()(),t.BQk()),2&o){const e=t.oxw(2);t.xp6(2),t.Q6J("href",e.redirectUrl,t.LSH)}}function Wn(o,i){if(1&o&&(t.TgZ(0,"div",21),t._UZ(1,"i",22),t.TgZ(2,"span"),t._uU(3),t.qZA(),t.YNc(4,jn,4,1,"ng-container",23),t.qZA()),2&o){const e=t.oxw();t.xp6(3),t.Oqu(e.code),t.xp6(1),t.Q6J("ngIf","SKU not assigned"!==e.code&&e.showRedirectIcon)}}function Xn(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",27),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onEventDesc())}),t._UZ(1,"i",28),t.TgZ(2,"span"),t._uU(3),t.qZA()()}if(2&o){const e=t.oxw();t.xp6(3),t.Oqu(e.description)}}function to(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",29)(1,"input",30),t.NdJ("change",function(a){t.CHM(e);const r=t.oxw();return t.KtG(r.onCheck(a.target.checked))}),t.qZA()()}}function eo(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDownload())}),t._UZ(1,"i",32),t._uU(2," Download "),t.qZA()}}function no(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onUpload())}),t._UZ(1,"i",33),t._uU(2," Upload "),t.qZA()}}function oo(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",34),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onScan())}),t._UZ(1,"i",35),t._uU(2," Scan "),t.qZA()}}const io=function(o){return{"me-3":o}};function ao(o,i){if(1&o&&(t.ynx(0),t.TgZ(1,"a",37),t._UZ(2,"img",38),t.qZA(),t.BQk()),2&o){const e=i.$implicit,n=i.index,a=t.oxw(2);t.xp6(1),t.s9C("href",e.Url,t.LSH),t.xp6(1),t.Q6J("ngClass",t.VKq(4,io,n!=a.channels.length-1))("src",a.getChannelLogo(e),t.LSH)("matTooltip",e.Title?e.Title:e.Name)}}function ro(o,i){if(1&o&&(t.ynx(0),t.YNc(1,ao,3,6,"ng-container",36),t.BQk()),2&o){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.channels)}}const lo=function(o){return{"border-bottom pb-2":o}};function co(o,i){if(1&o&&(t.TgZ(0,"li")(1,"div",42)(2,"div",43)(3,"a",37),t._UZ(4,"img",44),t.TgZ(5,"span",45),t._uU(6),t.qZA()()()()()),2&o){const e=i.$implicit,n=i.index,a=t.oxw(2);t.xp6(2),t.Q6J("ngClass",t.VKq(4,lo,n!=a.channels.length-1)),t.xp6(1),t.Q6J("href",e.Url,t.LSH),t.xp6(1),t.Q6J("src",a.getChannelLogo(e),t.LSH),t.xp6(2),t.Oqu(e.Title)}}function so(o,i){if(1&o&&(t.TgZ(0,"div",39)(1,"button",40),t._uU(2),t.qZA(),t.TgZ(3,"ul",41),t.YNc(4,co,7,6,"li",36),t.qZA()()),2&o){const e=t.oxw();t.xp6(2),t.hij(" ",e.channels.length," CHANNELS "),t.xp6(2),t.Q6J("ngForOf",e.channels)}}let Je=(()=>{class o{constructor(e){this.biggerPictureService=e,this.uploadButton=!1,this.scanButton=!1,this.showCheckBox=!1,this.downloadButton=!1,this.hasZoom=!0,this.showRedirectIcon=!0,this.onUploadEvent=new t.vpe,this.onScanEvent=new t.vpe,this.checkBoxChange=new t.vpe,this.onDescEvent=new t.vpe,this.onDownloadEvent=new t.vpe}ngAfterContentInit(){this.initRedirectUrl()}initRedirectUrl(){let e=localStorage.getItem("Authorization"),n=JSON.parse(e)?.Host;this.redirectUrl=`https://${n}/menu/Products/Catalog/Products/Info?ID=${this.productId}`}onUpload(){this.onUploadEvent.emit()}onScan(){this.onScanEvent.emit()}onCheck(e){this.checkBoxChange.emit(e)}onEventDesc(){this.onDescEvent.emit()}onDownload(){this.onDownloadEvent.emit()}getChannelLogo(e){return _.g.getChannelLogoByTypeId(e.TypeID)}openBiggerPicture(e){this.biggerPictureService.openBiggerPicture(e,this.imageForZoom)}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(Ue))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-product-card"]],inputs:{productId:"productId",uploadButton:"uploadButton",scanButton:"scanButton",showCheckBox:"showCheckBox",downloadButton:"downloadButton",image:"image",title:"title",code:"code",description:"description",channels:"channels",check:"check",imageForZoom:"imageForZoom",hasZoom:"hasZoom",showRedirectIcon:"showRedirectIcon"},outputs:{onUploadEvent:"onUpload",onScanEvent:"onScan",checkBoxChange:"onCheckBoxChange",onDescEvent:"onDescEvent",onDownloadEvent:"onDownload"},decls:26,vars:11,consts:[[1,"card",2,"margin-bottom","0px"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],["elsePic",""],[1,"col-7","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle","cursor-pointer",3,"click"],["class","description cursor-pointer",4,"ngIf"],["class","description cursor-pointer",3,"click",4,"ngIf"],[1,"col-1","gx-0","d-flex","justify-content-center"],[1,"text-end"],["class","text-end gx-0",4,"ngIf"],[1,"card-footer","d-flex","justify-content-between","py-5","bg-footer","align-items-center",2,"border-top","0.1px solid rgb(220 220 220)"],["class","fs-6 btn btn-light btn-sm me-3",3,"click",4,"ngIf"],["class","fs-6 btn btn-light btn-sm",3,"click",4,"ngIf"],["DROPDOWN",""],["alt","",1,"rounded","imgUpload","float-left",3,"src","click"],["src","//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"description","cursor-pointer"],[1,"fa","fa-barcode","me-2"],[4,"ngIf"],[1,"ms-2"],["target","_blank",2,"color","#0976b4",3,"href"],[1,"fas","fa-external-link-alt"],[1,"description","cursor-pointer",3,"click"],[1,"fa","fa-tag","me-2"],[1,"text-end","gx-0"],["type","checkbox",3,"change"],[1,"fs-6","btn","btn-light","btn-sm","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-download"],["aria-hidden","true",1,"fa","fa-upload"],[1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"fa","fa-spinner"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],["alt","",1,"img-logo",3,"ngClass","src","matTooltip"],[1,"dropdown"],["type","button","id","dropdownMenuButton1","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","fs-6","btn-sm","btn-light","dropdown-toggle"],[1,"dropdown-menu"],[1,"dropdown-item","py-2",2,"cursor","pointer"],[3,"ngClass"],[1,"img-logo",3,"src"],[1,"ms-4"]],template:function(e,n){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),t.YNc(6,Gn,2,1,"ng-container",6),t.YNc(7,zn,1,0,"ng-template",null,7,t.W1O),t.qZA()()(),t.TgZ(9,"div",8)(10,"h4",9),t.NdJ("click",function(){return n.onEventDesc()}),t._uU(11),t.qZA(),t.YNc(12,Wn,5,2,"div",10),t.YNc(13,Xn,4,1,"div",11),t.qZA(),t.TgZ(14,"div",12)(15,"div",13),t.YNc(16,to,2,0,"div",14),t.qZA()()()(),t.TgZ(17,"div",15)(18,"div"),t.YNc(19,eo,3,0,"button",16),t.YNc(20,no,3,0,"button",16),t.YNc(21,oo,3,0,"button",17),t.qZA(),t.TgZ(22,"div"),t.YNc(23,ro,2,1,"ng-container",6),t.YNc(24,so,5,2,"ng-template",null,18,t.W1O),t.qZA()()()),2&e){const a=t.MAs(8),r=t.MAs(25);t.xp6(6),t.Q6J("ngIf",n.image)("ngIfElse",a),t.xp6(5),t.hij(" ",n.title," "),t.xp6(1),t.Q6J("ngIf",n.code),t.xp6(1),t.Q6J("ngIf",n.description),t.xp6(3),t.Q6J("ngIf",n.showCheckBox),t.xp6(3),t.Q6J("ngIf",n.downloadButton),t.xp6(1),t.Q6J("ngIf",n.uploadButton),t.xp6(1),t.Q6J("ngIf",n.scanButton),t.xp6(2),t.Q6J("ngIf",n.channels.length<4)("ngIfElse",r)}},dependencies:[P.mk,P.sg,P.O5,tt.gM],styles:[".img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.bg-footer[_ngcontent-%COMP%]{background-color:#ededed69}.description[_ngcontent-%COMP%]{font-weight:300;margin-left:2px}.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down;cursor:pointer}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}"]}),o})();var me=u(6732);function po(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onOpenScanDialog())}),t._UZ(1,"i",11),t._uU(2," Scan Channel "),t.qZA()}}function uo(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onScanMultipleProduct())}),t._UZ(1,"i",11),t._uU(2),t.qZA()}if(2&o){const e=t.oxw();let n;t.xp6(2),t.hij(" Scan Selected Product (",null==(n=e.productService.selectedProduct(e.products))?null:n.length,") ")}}function ho(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onUploadMultipleProductSingleChannel())}),t._UZ(1,"i",14),t._uU(2," Upload Bulk "),t.qZA()}}function go(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",15)(1,"app-product-card",16),t.NdJ("onUpload",function(){const r=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.onUploadToMultipleChannel(r))})("onScan",function(){const r=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.onScanSingleProduct(r))})("onDescEvent",function(){const r=t.CHM(e).index,l=t.oxw();return t.KtG(l.onOpenDialogVariant(r))})("onCheckBoxChange",function(a){const l=t.CHM(e).$implicit;return t.KtG(l.selected=a)}),t.qZA()()}if(2&o){const e=i.$implicit,n=t.oxw();t.xp6(1),t.Q6J("productId",e.ID)("title",null==e?null:e.Name)("image",null==e?null:e.ThumbnailUrl)("description",(null==e?null:e.Variants.length)>1?(null==e?null:e.Variants.length)+" Variants":null)("channels",n.productService.getChannelProduct(e))("code",n.getVariantCode(null==e?null:e.Variants))("showCheckBox",(null==e?null:e.Channel.length)<n.channelOptions.length)("scanButton",!0)("uploadButton",null==e?null:e.hasUpload)("imageForZoom",null==e?null:e.ImageUrl)}}let mo=(()=>{class o{constructor(e,n,a,r){this.http=e,this.toastr=n,this.dialog=a,this.productService=r,this.searchFilter=new ut.k,this.rowCount=0,this.getLoaderPage()}getLoaderPage(){this.productService.loader().subscribe(e=>{this.channelOptions=e.Options.Channel,this.searchFilter.PageNumber=e.Filter.PageNumber,this.searchFilter.RowCount=e.Filter.RowCount,this.searchFilter.ChannelID=null,this.searchFilter.PageSize=100,this.getProducts()})}getProducts(){this.http.post("/api/product/GetInPOS",{PageNumber:this.searchFilter.PageNumber,RowCount:this.searchFilter.RowCount,text:this.searchFilter.text}).subscribe(n=>{this.products=n.Data,this.rowCount=null==n.Total?this.searchFilter.RowCount:n.Total.toString(),this.products=this.productService.checkProductHasUploadBtn(this.products,this.channelOptions)})}onOpenScanDialog(){let e=JSON.parse(JSON.stringify(this.searchFilter));e.ChannelID=_.g.GuidEMpty,this.dialog.open(w.j,{data:{filter:e,channelOptions:this.channelOptions},width:"40%"}).afterClosed().pipe((0,q.h)(a=>_.g.IsNotEmpty(a))).subscribe(a=>{this.searchFilter.ChannelID=a.ChannelID,this.searchFilter.ScanFull=a.ScanFull,this.searchFilter.UpdatedProduct=a.UpdatedProduct,this.searchFilter.Async=a.Async,this.scanAllProduct()})}scanAllProduct(){null!=this.searchFilter.ChannelID?this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct,this.searchFilter.Async).subscribe(e=>{if(this.searchFilter.Async)this.toastr.success(e.Message,"Scan Asynchronous");else{this.getLoaderPage();let n=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.productService.successToastrScanAllProduct(e,n,!this.searchFilter.UpdatedProduct)}}):this.toastr.error("Please Select Channel","Error")}onOpenDialogVariant(e){this.dialog.open(et,{data:{title:this.products[e].Name,variants:this.products[e].Variants},width:"45%"})}onUploadMultipleProductSingleChannel(){this.dialog.open(re,{width:"350px",data:{item:null,selectedItemMissingChannel:this.channelOptions}}).afterClosed().subscribe(e=>{e&&this.uploadMultipleProduct(e.channelID,e.categoryID)})}uploadMultipleProduct(e,n){const a=this.productService.selectedProduct(this.products);this.productService.uploadMultipleProduct(a,e,n).subscribe(r=>{this.getProducts();const l=this.productService.findChannelById(e,this.channelOptions);this.toastr.success(a.length>1?"Successfully uploaded "+a.length+" Product to channel "+l?.Name:l?.Name+" Successfully Created","Success")})}onUploadToMultipleChannel(e){let n=this.productService.getChannelProduct(e);e.Channel=n;let a=this.productService.filterUnselectedChannel(e,this.channelOptions);this.dialog.open(Re,{width:"700px",data:{title:`Upload - ${e.Name}`,channels:a,products:[e]}}).afterClosed().pipe((0,q.h)(r=>"CANCEL"!==r)).subscribe(r=>{this.getProducts()})}searchProduct(e){this.searchFilter.text=e,this.getProducts()}onNextPage(){this.searchFilter.PageNumber=this.searchFilter.PageNumber+1,this.getProducts()}onPrevPage(){this.searchFilter.PageNumber=this.searchFilter.PageNumber-1,this.getProducts()}onScanMultipleProduct(){let e=JSON.parse(JSON.stringify(this.searchFilter));e.ChannelID=_.g.GuidEMpty;let n=this.productService.filterChannelByTypeId(this.channelOptions,[G.x.Tokopedia,G.x.Tiktok]);this.dialog.open(w.j,{data:{filter:e,Channel:n,isSingleChannel:!0},width:"30%"}).afterClosed().pipe((0,q.h)(r=>_.g.IsNotEmpty(r))).subscribe(r=>{this.searchFilter.ChannelID=r.ChannelID,this.searchFilter.ScanFull=r.ScanFull,this.searchFilter.UpdatedProduct=r.UpdatedProduct;let l=this.productService.selectedProduct(this.products),c=this.productService.getVariantCodesProducts(l);this.scanSingleProduct(c)})}onScanSingleProduct(e){let n=JSON.parse(JSON.stringify(this.searchFilter));n.ChannelID=_.g.GuidEMpty,this.dialog.open(w.j,{data:{filter:n,channelOptions:this.channelOptions,isSingleChannel:!0},width:"40%"}).afterClosed().pipe((0,q.h)(a=>_.g.IsNotEmpty(a))).subscribe(a=>{this.searchFilter.ChannelID=a.ChannelID;const r=this.productService.getVariantCodesProduct(e);this.scanSingleProduct(r)})}scanSingleProduct(e){this.productService.scanSingle(this.searchFilter.ChannelID,e).subscribe({next:n=>{if(n)this.toastr.success("Successfully Scan ","Success");else{let a=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.toastr.error(`This product is not existed in ${a?.Name} `,"Error")}this.searchFilter.ChannelID=_.g.GuidEMpty,n&&this.getProducts()},error:n=>{this.searchFilter.ChannelID=_.g.GuidEMpty}})}getVariantCode(e){let n;return e.length>1&&(n=(e[0].model?e[0].model:"")+e[0].Code),1==e.length&&(n=e[0].Code),n}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(lt.O),t.Y36(Kt._W),t.Y36(D.uw),t.Y36(kt.M))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-in-pos"]],decls:12,vars:9,consts:[["hideSearchDropdown","true","hideSearchDropdown","false","description","All products which is already available in POS",3,"headerTitle","onSubmit"],["type","button","data-cy","scanSoldinChannel","class","btn btn-outline-secondary shadow rounded",3,"click",4,"ngIf"],["type","button","data-cy","scanInPos","class","btn btn-outline-secondary shadow rounded me-2",3,"click",4,"ngIf"],["class","btn btn-light shadow rounded ms-2",3,"click",4,"ngIf"],[1,"container-fluid"],[1,"row","mt-8"],["class","col-12 col-md-6 col-xl-4 px-3 my-3",4,"ngFor","ngForOf"],[1,"row","mt-2","justify-content-end"],[1,"col-md-12"],[3,"filter","totaldata","paginationTotal","hasClicked","next","previous"],["type","button","data-cy","scanSoldinChannel",1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],["type","button","data-cy","scanInPos",1,"btn","btn-outline-secondary","shadow","rounded","me-2",3,"click"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click"],["aria-hidden","true",1,"fa","fa-upload"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[3,"productId","title","image","description","channels","code","showCheckBox","scanButton","uploadButton","imageForZoom","onUpload","onScan","onDescEvent","onCheckBoxChange"]],template:function(e,n){1&e&&(t.TgZ(0,"mainpanel",0),t.NdJ("onSubmit",function(r){return n.searchProduct(r)}),t.TgZ(1,"actions"),t.YNc(2,po,3,0,"button",1),t.YNc(3,uo,3,1,"button",2),t.YNc(4,ho,3,0,"button",3),t.qZA(),t.TgZ(5,"content")(6,"div",4)(7,"div",5),t.YNc(8,go,2,10,"div",6),t.qZA(),t.TgZ(9,"div",7)(10,"div",8)(11,"app-custom-paginator",9),t.NdJ("next",function(){return n.onNextPage()})("previous",function(){return n.onPrevPage()}),t.qZA()()()()()()),2&e&&(t.Q6J("headerTitle","In POS ("+n.rowCount+")"),t.xp6(2),t.Q6J("ngIf",!n.productService.hasSelection(n.products)),t.xp6(1),t.Q6J("ngIf",n.productService.hasSelection(n.products)),t.xp6(1),t.Q6J("ngIf",n.productService.hasSelection(n.products)),t.xp6(4),t.Q6J("ngForOf",n.products),t.xp6(3),t.Q6J("filter",n.searchFilter)("totaldata",null==n.products?null:n.products.length)("paginationTotal",n.rowCount)("hasClicked",!0))},dependencies:[P.sg,P.O5,Dt.p,Je,me.y],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.img-logo[_ngcontent-%COMP%]{height:24px;width:24px}"]}),o})();var Mt=u(8796);function _o(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onOpenScanDialog())}),t._UZ(1,"i",14),t._uU(2," Scan Channel "),t.qZA()}}function fo(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onScanSelectedProduct())}),t._UZ(1,"i",14),t._uU(2),t.qZA()}if(2&o){const e=t.oxw();t.xp6(2),t.hij(" Scan Selected Product (",e.productService.selectedProduct(e.products).length,") ")}}function Co(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onUploadMultipleProductSingleChannel())}),t._UZ(1,"i",17),t._uU(2," Upload Bulk "),t.qZA()}}function bo(o,i){if(1&o&&(t.TgZ(0,"span",18),t._UZ(1,"img",19),t.qZA(),t._uU(2)),2&o){const e=i.item,n=t.oxw();t.xp6(1),t.Q6J("src",n.getChannelLogo(e.TypeID),t.LSH),t.xp6(1),t.hij(" ",e.Name," ")}}function xo(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"h6"),t._uU(2,"Item ID"),t.qZA(),t.TgZ(3,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);const r=t.oxw();return t.KtG(r.searchFilter.Item_id=a)}),t.qZA()()}if(2&o){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.searchFilter.Item_id)}}function Po(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",21)(1,"app-product-card",22),t.NdJ("onUpload",function(){const r=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.onUploadToMultipleChannel(r))})("onDescEvent",function(){const r=t.CHM(e).index,l=t.oxw();return t.KtG(l.onOpenVariantDetail(r))})("onScan",function(){const r=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.onScanSingleProduct(r))})("onCheckBoxChange",function(a){const l=t.CHM(e).$implicit;return t.KtG(l.selected=a)}),t.qZA()()}if(2&o){const e=i.$implicit,n=t.oxw();t.xp6(1),t.Q6J("productId",null==e?null:e.ID)("title",null==e?null:e.Name)("image",null==e?null:e.ThumbnailUrl)("description",(null==e||null==e.Variants?null:e.Variants.length)>1?(null==e||null==e.Variants?null:e.Variants.length)+" Variants":null)("channels",n.productService.getChannelProduct(e))("code",n.getVariantCode(null==e?null:e.Variants))("showCheckBox",null==e?null:e.hasScan)("scanButton",!0)("uploadButton",null==e?null:e.hasUpload)("imageForZoom",null==e?null:e.ImageUrl)}}function vo(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",23)(1,"div",24)(2,"app-custom-paginator",25),t.NdJ("total",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getRowCount())})("next",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onNextPage())})("previous",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onPreviousPage())}),t.qZA()()()}if(2&o){const e=t.oxw();t.xp6(2),t.Q6J("filter",e.searchFilter)("totaldata",null==e.products?null:e.products.length)("paginationTotal",e.rowCount)("hasClicked",e.hasClickRowCount)}}let So=(()=>{class o{constructor(e,n,a,r,l){this.http=e,this.dialog=n,this.toastr=a,this.productService=r,this.activateRouter=l,this.searchFilter=new ut.k,this.rowCount=0,this.hasClickRowCount=!1,this.guidEmpty=_.g.GuidEMpty}ngOnInit(){this.activateRouter.queryParams.subscribe(e=>{this.initPageLoader(e.ID?e.ID:_.g.GuidEMpty)})}initPageLoader(e){this.productService.loader(e).subscribe(n=>{this.channelOptions=n.Options.Channel,this.searchFilter=n.Filter,this.searchFilter.ChannelID=n.Filter.ChannelID,this.searchFilter.PageSize=n.Filter.RowCount,this.searchFilter.Item_id="",this.getProducts()})}getProducts(){this.productService.findAllSoldInChannel({ChannelID:this.searchFilter.ChannelID,PageNumber:this.searchFilter.PageNumber,RowCount:this.searchFilter.RowCount,text:this.searchFilter.text,Item_id:this.searchFilter.Item_id}).subscribe(n=>{this.products=n.Data,this.products=this.productService.checkProductHasUploadBtn(this.products,this.channelOptions),this.products=this.productService.checkProductHasScanButton(this.products,this.channelOptions)})}searchProduct(e){this.searchFilter.text=e,this.hasClickRowCount=!1,this.getProducts()}onOpenVariantDetail(e){this.dialog.open(et,{data:{variants:this.products[e].Variants,title:this.products[e].Name},width:"45%"})}onOpenScanDialog(){let e=JSON.parse(JSON.stringify(this.searchFilter));e.ChannelID=_.g.GuidEMpty,this.dialog.open(w.j,{data:{filter:e,channelOptions:this.channelOptions},width:"40%"}).afterClosed().pipe((0,q.h)(a=>_.g.IsNotEmpty(a))).subscribe(a=>{this.searchFilter.ChannelID=a.ChannelID,this.searchFilter.ScanFull=a.ScanFull,this.searchFilter.UpdatedProduct=a.UpdatedProduct,this.searchFilter.Async=a.Async,this.scanAllProduct()})}scanAllProduct(){let e=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct,this.searchFilter.Async).pipe((0,q.h)(n=>n)).subscribe(n=>{this.searchFilter.Async?this.toastr.success(n.Message,"Scan Asynchronous"):(this.productService.successToastrScanAllProduct(n,e,!this.searchFilter.UpdatedProduct),this.initPageLoader(_.g.GuidEMpty))})}onScanSingleProduct(e){e.Channel=this.productService.getChannelProduct(e);let n=JSON.parse(JSON.stringify(this.searchFilter));this.dialog.open(w.j,{data:{filter:n,channelOptions:this.channelOptions,isSingleChannel:!0},width:"40%"}).afterClosed().pipe((0,q.h)(a=>_.g.IsNotEmpty(a))).subscribe(a=>{this.searchFilter.ChannelID=a.ChannelID;const r=this.productService.getVariantCodesProduct(e);this.scanSingleProduct(r)})}onUploadToMultipleChannel(e){let n=this.productService.getChannelProduct(e);e.Channel=n;let a=this.productService.filterUnselectedChannel(e,this.channelOptions);this.dialog.open(Re,{width:"700px",data:{title:`Upload - ${e.Name}`,channels:a,products:[e]}}).afterClosed().pipe((0,q.h)(r=>"CANCEL"!==r)).subscribe({next:r=>{this.getProducts()}})}onScanSelectedProduct(){let e=this.productService.filterChannelByTypeId(this.channelOptions,[G.x.Tokopedia,G.x.Tiktok]);this.searchFilter.ChannelID=_.g.GuidEMpty;let n=JSON.parse(JSON.stringify(this.searchFilter));this.dialog.open(w.j,{data:{filter:n,channelOptions:e,isSingleChannel:!0},width:"40%"}).afterClosed().pipe((0,q.h)(r=>_.g.IsNotEmpty(r))).subscribe(r=>{this.searchFilter.ChannelID=r.ChannelID,this.searchFilter.ScanFull=r.ScanFull,this.searchFilter.UpdatedProduct=r.UpdatedProduct;let l=this.productService.selectedProduct(this.products),c=this.productService.getVariantCodesProducts(l);this.scanSingleProduct(c)})}scanSingleProduct(e){this.productService.scanSingle(this.searchFilter.ChannelID,e).subscribe({next:n=>{if(n)this.toastr.success("Successfully Scan ","Success");else{let a=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.toastr.error(`This product is not existed in ${a?.Name} `,"Error")}this.searchFilter.ChannelID=_.g.GuidEMpty,n&&this.getProducts()},error:n=>{this.searchFilter.ChannelID=_.g.GuidEMpty}})}getVariantCode(e){let n;return e.length>1&&(n=(e[0].model?e[0].model:"")+e[0].Code),1==e.length&&(n=e[0].Code),n}onClearFilterChannel(){this.searchFilter.ChannelID=_.g.GuidEMpty,this.searchFilter.Item_id=""}onUploadMultipleProductSingleChannel(){this.dialog.open(re,{width:"40%",data:{item:null,selectedItemMissingChannel:this.channelOptions}}).afterClosed().subscribe(e=>{e&&this.uploadMultipleProduct(e.channelID,e.categoryID)})}uploadMultipleProduct(e,n){const a=this.productService.selectedProduct(this.products);this.productService.uploadMultipleProduct(a,e,n).subscribe(r=>{this.getProducts();const l=this.productService.findChannelById(e,this.channelOptions);this.toastr.success(a.length>1?"Successfully uploaded "+a.length+" Product to channel "+l?.Name:l?.Name+" Successfully Created","Success")})}getRowCount(){this.http.post("/api/product/GetSoldInChannelRowCount",{ChannelID:this.searchFilter.ChannelID,text:this.searchFilter.text}).subscribe(n=>{this.hasClickRowCount=!0,this.rowCount=n.Total})}onNextPage(){this.searchFilter.PageNumber=this.searchFilter.PageNumber+1,this.getProducts()}onPreviousPage(){this.searchFilter.PageNumber=this.searchFilter.PageNumber-1,this.getProducts()}getChannelLogo(e){return _.g.getChannelLogoByTypeId(e)}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(lt.O),t.Y36(D.uw),t.Y36(Kt._W),t.Y36(kt.M),t.Y36(Z.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-sold-in-channel"]],decls:19,vars:9,consts:[["headerTitle","Sold in Channel","description","SKU has been mapped between dealpos and marketplace",3,"onSubmit"],["type","button","data-cy","scanSoldinChannel","class","btn btn-outline-secondary shadow rounded",3,"click",4,"ngIf"],["type","button","data-cy","scanInPos","class","btn btn-outline-secondary shadow rounded me-2",3,"click",4,"ngIf"],["class","btn btn-light shadow rounded ms-2",3,"click",4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"clearable","items","ngModel","ngModelChange","clear"],["ng-option-tmp",""],[4,"ngIf"],[1,"container-fluid"],[1,"row","mt-8"],["class","col-12 col-md-6 col-xl-4 px-3 my-3",4,"ngFor","ngForOf"],["class","row",4,"ngIf"],["type","button","data-cy","scanSoldinChannel",1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],["type","button","data-cy","scanInPos",1,"btn","btn-outline-secondary","shadow","rounded","me-2",3,"click"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click"],["aria-hidden","true",1,"fa","fa-upload"],[1,"me-2"],["alt","",2,"width","18px",3,"src"],["type","text","name","Item_id","id","Item_id",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[3,"productId","title","image","description","channels","code","showCheckBox","scanButton","uploadButton","imageForZoom","onUpload","onDescEvent","onScan","onCheckBoxChange"],[1,"row"],[1,"col-12"],[3,"filter","totaldata","paginationTotal","hasClicked","total","next","previous"]],template:function(e,n){1&e&&(t.TgZ(0,"mainpanel",0),t.NdJ("onSubmit",function(r){return n.searchProduct(r)}),t.TgZ(1,"actions"),t.YNc(2,_o,3,0,"button",1),t.YNc(3,fo,3,1,"button",2),t.YNc(4,Co,3,0,"button",3),t.qZA(),t.TgZ(5,"filters")(6,"div",4)(7,"div",5)(8,"div")(9,"h6"),t._uU(10,"Channel"),t.qZA(),t.TgZ(11,"ng-select",6),t.NdJ("ngModelChange",function(r){return n.searchFilter.ChannelID=r})("clear",function(){return n.onClearFilterChannel()}),t.YNc(12,bo,3,2,"ng-template",7),t.qZA()(),t.YNc(13,xo,4,1,"div",8),t.qZA()()(),t.TgZ(14,"content")(15,"div",9)(16,"div",10),t.YNc(17,Po,2,10,"div",11),t.qZA(),t.YNc(18,vo,3,4,"div",12),t.qZA()()()),2&e&&(t.xp6(2),t.Q6J("ngIf",!n.productService.hasSelection(n.products)),t.xp6(1),t.Q6J("ngIf",n.productService.hasSelection(n.products)),t.xp6(1),t.Q6J("ngIf",n.productService.hasSelection(n.products)),t.xp6(7),t.Q6J("clearable",!0)("items",n.channelOptions)("ngModel",n.searchFilter.ChannelID==n.guidEmpty?null:n.searchFilter.ChannelID),t.xp6(2),t.Q6J("ngIf",n.searchFilter.ChannelID!=n.guidEmpty),t.xp6(4),t.Q6J("ngForOf",n.products),t.xp6(1),t.Q6J("ngIf",null==n.products?null:n.products.length))},dependencies:[P.sg,P.O5,L.Fj,L.JJ,L.On,Dt.p,Mt.w9,Mt.ir,Je,me.y],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}"]}),o})();var yo=u(8505),To=u(4004),Io=u(7287);function Mo(o,i){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"img",28),t.NdJ("click",function(a){t.CHM(e);const r=t.oxw(3).$implicit,l=t.oxw(3);return t.KtG(l.onZoomImage(a,null==r?null:r.ImageUrl))}),t.qZA(),t.BQk()}if(2&o){const e=t.oxw(3).$implicit;t.xp6(1),t.Q6J("src",null==e?null:e.ImageUrl,t.LSH)}}function wo(o,i){1&o&&t._UZ(0,"img",29)}function Oo(o,i){if(1&o&&(t.ynx(0),t.TgZ(1,"td",21)(2,"div",22),t.YNc(3,Mo,2,1,"ng-container",23),t.YNc(4,wo,1,0,"ng-template",null,24,t.W1O),t.qZA()(),t.TgZ(6,"td",25)(7,"h4",26)(8,"span",27),t._uU(9),t.qZA()()(),t.BQk()),2&o){const e=t.MAs(5),n=t.oxw(2).$implicit;t.xp6(1),t.Q6J("rowSpan",null==n?null:n.Variants.length),t.xp6(2),t.Q6J("ngIf",null==n?null:n.ImageUrl)("ngIfElse",e),t.xp6(3),t.Q6J("rowSpan",null==n?null:n.Variants.length),t.xp6(2),t.Q6J("matTooltip",(null==n||null==n.Name?null:n.Name.length)>50?null==n?null:n.Name:""),t.xp6(1),t.hij(" ",null==n?null:n.Name," ")}}function Zo(o,i){if(1&o&&(t.TgZ(0,"div")(1,"a",17),t._UZ(2,"img",30),t.qZA()()),2&o){const e=i.$implicit;t.xp6(1),t.Q6J("href",e.URL,t.LSH),t.xp6(1),t.Q6J("src",e.Img,t.LSH)("matTooltip",e.Name)}}function No(o,i){if(1&o&&(t.TgZ(0,"div"),t._UZ(1,"img",30),t.qZA()),2&o){const e=i.$implicit;t.xp6(1),t.Q6J("src",e.Img,t.LSH)("matTooltip",e.Name)}}function Fo(o,i){if(1&o&&(t.TgZ(0,"tr"),t.YNc(1,Oo,10,6,"ng-container",13),t.TgZ(2,"td"),t._uU(3),t.qZA(),t.TgZ(4,"td")(5,"span"),t._uU(6),t.qZA(),t.TgZ(7,"span",16)(8,"a",17),t._UZ(9,"i",18),t.qZA()()(),t.TgZ(10,"td",19)(11,"div",20),t.YNc(12,Zo,3,3,"div",15),t.qZA()(),t.TgZ(13,"td",19)(14,"div",20),t.YNc(15,No,2,2,"div",15),t.qZA()()()),2&o){const e=i.$implicit,n=i.index,a=t.oxw(4);t.xp6(1),t.Q6J("ngIf",0==n),t.xp6(2),t.hij(" ",e.Name," "),t.xp6(3),t.hij(" ",e.Code," "),t.xp6(2),t.Q6J("href","https://"+a.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(null==e?null:e.ID),t.LSH),t.xp6(4),t.Q6J("ngForOf",null==e?null:e.Available),t.xp6(3),t.Q6J("ngForOf",null==e?null:e.NotAvailable)}}function ko(o,i){if(1&o&&(t.ynx(0),t.YNc(1,Fo,16,6,"tr",15),t.BQk()),2&o){const e=i.$implicit;t.xp6(1),t.Q6J("ngForOf",e.Variants)}}function Do(o,i){if(1&o&&(t.TgZ(0,"tbody"),t.YNc(1,ko,2,1,"ng-container",15),t.qZA()),2&o){const e=i.ngIf;t.xp6(1),t.Q6J("ngForOf",e)}}function Ao(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"span",38),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.getRowCount())}),t.TgZ(1,"i",39),t._uU(2,"?"),t.qZA()()}}function Uo(o,i){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&o){const e=i.ngIf;t.xp6(1),t.Oqu(t.lcZ(2,1,null==e?null:e.Count))}}function Jo(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"a",40),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.onNextPage())}),t._UZ(1,"i",41),t._uU(2," Next"),t.qZA()}}function Eo(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"a",42),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.onLastPage())}),t._UZ(1,"i",43),t._uU(2," Last"),t.qZA()}}function Lo(o,i){if(1&o&&(t.TgZ(0,"div",31)(1,"div",32)(2,"div",33),t._uU(3),t.ALo(4,"number"),t.YNc(5,Ao,3,0,"span",34),t.YNc(6,Uo,3,3,"span",13),t.ALo(7,"async"),t._uU(8),t.qZA()(),t.TgZ(9,"div",35),t.YNc(10,Jo,3,0,"a",36),t.YNc(11,Eo,3,0,"a",37),t.qZA()()),2&o){const e=i.ngIf,n=t.oxw(2);t.xp6(3),t.hij(" Showing 1 - ",t.lcZ(4,6,null==e?null:e.length)," of "),t.xp6(2),t.Q6J("ngIf",n.paginationService.hideCount),t.xp6(1),t.Q6J("ngIf",!n.paginationService.hideCount&&t.lcZ(7,8,n.rowCount$)),t.xp6(2),t.hij(" records ~ ",n.paginationService.footerPageNumber," Page "),t.xp6(2),t.Q6J("ngIf",n.paginationService.disableNextButton&&!n.paginationService.goToLastPage),t.xp6(1),t.Q6J("ngIf",n.paginationService.disableNextButton&&!n.paginationService.goToLastPage)}}function Bo(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"mainpanel",1),t.NdJ("onSubmit",function(a){t.CHM(e);const r=t.oxw();return t.KtG(r.searchProduct(a))}),t.TgZ(1,"actions")(2,"button",2),t.NdJ("click",function(){const r=t.CHM(e).ngIf,l=t.oxw();return t.KtG(l.openScanDialog(r))}),t._UZ(3,"i",3),t._uU(4," Scan Channel "),t.qZA()(),t.TgZ(5,"content")(6,"div",4)(7,"div",5)(8,"div",6)(9,"table",7)(10,"thead",8)(11,"tr")(12,"th",9),t._uU(13,"Product"),t.qZA(),t.TgZ(14,"th",10),t._uU(15,"Variant"),t.qZA(),t.TgZ(16,"th",10),t._uU(17,"SKU"),t.qZA(),t.TgZ(18,"th",11),t._uU(19,"Available In"),t.qZA(),t.TgZ(20,"th",12),t._uU(21,"Not Available In"),t.qZA()()(),t.YNc(22,Do,2,1,"tbody",13),t.ALo(23,"async"),t.qZA()()(),t.YNc(24,Lo,12,10,"div",14),t.ALo(25,"async"),t.qZA()()()}if(2&o){const e=t.oxw();t.Q6J("hideSearchDropdown",!0),t.xp6(22),t.Q6J("ngIf",t.lcZ(23,3,e.data$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(25,5,e.data$))}}let Qo=(()=>{class o{constructor(e,n,a,r,l,c){this.http=e,this.dialog=n,this.toastr=a,this.productService=r,this.paginationService=l,this.biggerPictureService=c,this.loaderAPI="product/Load",this.rowCountAPI="product/GetNotInChannelRowCount",this.notChannelAPI="product/GetNotInChannelV2"}ngOnInit(){this.initPageLoader(),this.iniData(),this.initHostName()}initHostName(){const e=localStorage.getItem("Authorization");this.hostName=JSON.parse(e)?.Host}initPageLoader(){this.paginationService.fetchDataEndpoint=this.notChannelAPI,this.loader$=this.http.post(`api/${this.loaderAPI}`,{}).pipe((0,yo.b)(e=>{this.filterSearch=e.Filter,this.paginationService.resetToFirstPage(e.Filter)}))}iniData(){this.data$=this.paginationService.data$.pipe((0,To.U)(e=>e.map(n=>(n.Variants=n.Variants.map(a=>(a.Available=this.productService.sortChannel(a.Available),a.NotAvailable=this.productService.sortChannel(a.NotAvailable),a.Available=this.assignLogoChannel(a.Available),a.NotAvailable=this.assignLogoChannel(a.NotAvailable),a)),n))))}assignLogoChannel(e){return e.map(n=>(n.Img=_.g.getChannelLogoByTypeId(n.TypeID),n))}searchProduct(e){this.filterSearch.text=e,this.paginationService.resetToFirstPage(this.filterSearch)}scanAllProduct(e){let n=this.productService.findChannelById(this.filterSearch.ChannelID,e.Options.Channel);this.productService.scanAll(this.filterSearch.ChannelID,this.filterSearch.ScanFull,this.filterSearch.UpdatedProduct,this.filterSearch.Async).subscribe(a=>{this.filterSearch.Async?this.toastr.success(a.Message,"Scan Asynchronous"):(this.productService.successToastrScanAllProduct(a,n,!this.filterSearch.UpdatedProduct),this.initPageLoader())})}openScanDialog(e){let n=JSON.parse(JSON.stringify(this.filterSearch));n.ChannelID=_.g.GuidEMpty,this.dialog.open(w.j,{data:{filter:n,channelOptions:e.Options.Channel},width:"40%"}).afterClosed().pipe((0,q.h)(r=>_.g.IsNotEmpty(r))).subscribe(r=>{this.filterSearch.ChannelID=r.ChannelID,this.filterSearch.ScanFull=r.ScanFull,this.filterSearch.UpdatedProduct=r.UpdatedProduct,this.filterSearch.Async=r.Async,this.scanAllProduct(e)})}getChannelLogoById(e){return _.g.getChannelLogoByTypeId(e)}uploadProductToSingleChannel(e,n,a,r){let l=this.productService.findChannelById(n,r.Options.Channel);this.productService.uploadMultipleProduct([e],n,a).subscribe(c=>{this.paginationService.resetToFirstPage(r.Filter),this.toastr.success("Successfully uploaded "+e.Name+" to "+l.Name,"Success")})}getRowCount(){this.paginationService.hideCount=!1,this.rowCount$=this.http.post(`/api/${this.rowCountAPI}`,this.filterSearch)}onNextPage(){this.paginationService.onNextPage(this.filterSearch)}onLastPage(){this.http.post(`/api/${this.rowCountAPI}`,{}).subscribe({next:e=>{this.filterSearch.PageNumber=1,this.paginationService.getAllData(this.filterSearch,e.Count)}})}onZoomImage(e,n){this.biggerPictureService.openBiggerPicture(e,n)}ngOnDestroy(){this.paginationService.destroy()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(lt.O),t.Y36(D.uw),t.Y36(Kt._W),t.Y36(kt.M),t.Y36(Io.b),t.Y36(Ue))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-not-in-channel"]],decls:2,vars:3,consts:[["headerTitle","Not in Channel","description","SKU has not been sold on one of channels",3,"hideSearchDropdown","onSubmit",4,"ngIf"],["headerTitle","Not in Channel","description","SKU has not been sold on one of channels",3,"hideSearchDropdown","onSubmit"],["data-cy","scanNotinChannel","type","button",1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],["colspan","2",1,"ms-5","text-center",2,"width","450px"],[2,"width","150px"],[2,"width","20%"],[2,"width","16%"],[4,"ngIf"],["class","d-flex justify-content-between mt-5",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"ms-1"],["target","_blank",3,"href"],[1,"fas","fa-lg","fa-external-link-alt","external-link-custom"],[2,"padding-left","0px"],[1,"d-flex","flex-wrap","mb-1"],[1,"text-center",3,"rowSpan"],[2,"padding-right","0px"],[4,"ngIf","ngIfElse"],["elsePic",""],[1,"text-start",3,"rowSpan"],[1,"ms-5","fw-normal","text-ellipsis",2,"max-width","26vw !important"],[3,"matTooltip"],[1,"border","rounded","cursor-pointer",2,"max-width","40px",3,"src","click"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded",2,"max-width","40px"],["alt","",1,"channel-logo","cursor-pointer","ms-4","mt-3",3,"src","matTooltip"],[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"],[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(e,n){1&e&&(t.YNc(0,Bo,26,7,"mainpanel",0),t.ALo(1,"async")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,n.loader$))},dependencies:[P.sg,P.O5,tt.gM,Dt.p,P.Ov,P.JJ],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}thead[_ngcontent-%COMP%]{position:sticky;top:0}.channel-logo[_ngcontent-%COMP%]{width:20px}.w-img[_ngcontent-%COMP%]{width:100%}"]}),o})();function Ro(o,i){if(1&o&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA()()),2&o){const e=i.$implicit;t.xp6(2),t.Oqu(null==e?null:e.Name),t.xp6(2),t.Oqu(null==e?null:e.ChannelVariationSKU)}}let Yo=(()=>{class o{constructor(e,n){this.data=e,this.dialogRef=n}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new rt.O,this.modalConfig.title=this.data?.title,this.modalConfig.hideOk=!0,this.modalConfig.hideCancel=!0}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(D.WI),t.Y36(D.so))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-modal-variants"]],decls:11,vars:2,consts:[[3,"config","onCancel"],["content",""],[1,"table"],[1,"thead-light"],[4,"ngFor","ngForOf"]],template:function(e,n){1&e&&(t.TgZ(0,"modal-material",0),t.NdJ("onCancel",function(){return n.dialogRef.close()}),t.TgZ(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th"),t._uU(6,"Variant"),t.qZA(),t.TgZ(7,"th"),t._uU(8,"SKU"),t.qZA()()(),t.TgZ(9,"tbody"),t.YNc(10,Ro,5,2,"tr",4),t.qZA()()()()),2&e&&(t.Q6J("config",n.modalConfig),t.xp6(10),t.Q6J("ngForOf",n.data.variants))},dependencies:[P.sg,Nt.M],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}"]}),o})();var Ee=u(1948);function Vo(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.openScanDialog())}),t._UZ(1,"i",14),t._uU(2," Scan Channel "),t.qZA()}}function qo(o,i){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",15),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDownloadAllProduct("SELECTED"))}),t._UZ(2,"i",16),t._uU(3),t.qZA(),t.BQk()}if(2&o){const e=t.oxw();let n;t.xp6(3),t.hij(" Download Product (",null==(n=e.productService.selectedProduct(e.products))?null:n.length,") ")}}function Ho(o,i){if(1&o&&(t.TgZ(0,"span",17),t._UZ(1,"img",18),t.qZA(),t._uU(2)),2&o){const e=i.item,n=t.oxw();t.xp6(1),t.Q6J("src",n.getChannelLogo(e.TypeID),t.LSH),t.xp6(1),t.hij(" ",e.Name," ")}}const Ko=function(o){return[o]},$o=function(){return[]};function Go(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",19)(1,"app-product-card",20),t.NdJ("onCheckBoxChange",function(a){const l=t.CHM(e).index,c=t.oxw();return t.KtG(c.onSelectProduct(a,l))})("onDescEvent",function(){const r=t.CHM(e).index,l=t.oxw();return t.KtG(l.onShowVariantDetail(r))})("onDownload",function(){const r=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.onDownloadProduct(r))})("onScan",function(){const r=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.onScanChannel(r))}),t.qZA()()}if(2&o){const e=i.$implicit;t.xp6(1),t.Q6J("showRedirectIcon",!1)("title",null==e?null:e.Name)("image",null==e?null:e.Image)("imageForZoom",null==e?null:e.Image)("code",null==e?null:e.SKU)("description",(null==e||null==e.Variant?null:e.Variant.length)>0?(null==e||null==e.Variant?null:e.Variant.length)+" Variants":null)("downloadButton",!0)("channels",null!=e&&e.Channel?t.VKq(10,Ko,null==e?null:e.Channel):t.DdM(12,$o))("showCheckBox",!0)("scanButton",!0)}}function zo(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",21)(1,"div",22)(2,"app-custom-paginator",23),t.NdJ("total",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getRowCount())})("next",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onNextPage())})("previous",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onPreviousPage())}),t.qZA()()()}if(2&o){const e=t.oxw();t.xp6(2),t.Q6J("filter",e.searchFilter)("totaldata",null==e.products?null:e.products.length)("paginationTotal",e.rowCount)("hasClicked",e.hasClickRowCount)}}let jo=(()=>{class o{constructor(e,n,a,r,l){this.http=e,this.dialog=n,this.productService=a,this.toastrService=r,this.activateRouter=l,this.searchFilter=new ut.k,this.hasClickRowCount=!1}ngOnInit(){this.activateRouter.queryParams.subscribe(e=>{this.initPageLoader(e.ID?e.ID:_.g.GuidEMpty)})}initPageLoader(e){this.productService.loader(e).subscribe(n=>{this.channelOptions=n.Options.Channel,this.searchFilter=n.Filter,this.searchFilter.PageSize=n.Filter.RowCount,this.getProducts()})}getProducts(){this.http.post("/api/product/GetProductChannelNotPOS",{ChannelID:this.searchFilter.ChannelID,PageNumber:this.searchFilter.PageNumber,RowCount:this.searchFilter.RowCount,text:this.searchFilter.text,HaveSku:this.searchFilter.HaveSku}).subscribe(n=>{this.products=n.Data,this.mapChannelToProduct(),this.setSkuProduct()})}mapChannelToProduct(){this.products=this.products.map(e=>(e.Channel=JSON.parse(JSON.stringify(this.channelOptions.find(n=>n.ID==e.ChannelID))),e)).map(e=>(e.Channel.Url=e.Url,e))}setSkuProduct(){this.products=this.products.map(e=>(e.SKU=0==e?.Variant?.length?_.g.IsNotEmpty(e?.ChannelItemSKU)?e?.ChannelItemSKU:"SKU not assigned":e?.Variant[0]?.ChannelVariationSKU?e?.Variant[0]?.ChannelVariationSKU:"SKU not assigned",e))}onSearch(e){this.searchFilter.text=e,this.hasClickRowCount=!1,this.getProducts()}onClearChannelFilter(){this.searchFilter.ChannelID=_.g.GuidEMpty}onScanAll(){let e=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct,this.searchFilter.Async).subscribe(n=>{this.searchFilter.Async?this.toastrService.success(n.Message,"Scan Asynchronous"):(this.initPageLoader(_.g.GuidEMpty),this.productService.successToastrScanAllProduct(n,e,!this.searchFilter.UpdatedProduct)),this.searchFilter.ChannelID=_.g.GuidEMpty})}openScanDialog(){let e=JSON.parse(JSON.stringify(this.searchFilter));e.ChannelID=_.g.GuidEMpty,this.dialog.open(w.j,{data:{filter:e,channelOptions:this.channelOptions},width:"40%"}).afterClosed().pipe((0,q.h)(a=>_.g.IsNotEmpty(a))).subscribe(a=>{this.searchFilter.ChannelID=a.ChannelID,this.searchFilter.UpdatedProduct=a.UpdatedProduct,this.searchFilter.ScanFull=a.ScanFull,this.searchFilter.Async=a.Async,this.onScanAll()})}onDownloadAllProduct(e){let n;n="ALL"==e?this.products:this.productService.selectedProduct(this.products),n.length>0&&this.productService.downloadMultipleProduct(n).subscribe({next:()=>{this.getProducts()}})}onSelectProduct(e,n){this.products[n].selected=e}onDownloadProduct(e){!confirm(`Are you sure you want to Retrieve product ${e?.Name} from ${e?.Channel.Name} to POS?`)||this.productService.downloadProduct(e).subscribe({next:()=>{this.getProducts()}})}onScanChannel(e){let n=JSON.parse(JSON.stringify(e));delete n.Channel,this.productService.scanCompareToPos([n]).subscribe(a=>{a.Status?(this.initPageLoader(_.g.GuidEMpty),this.toastrService.success(`product ${e.Name} have been successfully scanned and synchronized with POS`,"Success")):this.toastrService.error(`Product ${e.Name} is not existed in POS`,"Error")})}onShowVariantDetail(e){let n=this.products[e].Variant;n.length>0&&this.dialog.open(Yo,{data:{title:this.products[e].Name,variants:n},width:"30%"})}getRowCount(){let e={ChannelID:this.searchFilter.ChannelID,text:this.searchFilter.text,HaveSku:parseInt(this.searchFilter.HaveSku)};this.http.post("/api/product/GetProductChannelNotPOSRowCount",e).subscribe(n=>{this.hasClickRowCount=!0,this.rowCount=n.Count})}onNextPage(){this.searchFilter.PageNumber=this.searchFilter.PageNumber+1,this.getProducts()}onPreviousPage(){this.searchFilter.PageNumber=this.searchFilter.PageNumber-1,this.getProducts()}getChannelLogo(e){return _.g.getChannelLogoByTypeId(e)}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(lt.O),t.Y36(D.uw),t.Y36(kt.M),t.Y36(Kt._W),t.Y36(Z.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-not-in-pos"]],decls:27,vars:11,consts:[["headerTitle","Not in POS","textButton","Search","description","SKU sold in Marketplace but not exist in DEALPOS",3,"onSubmit"],["type","button","data-cy","scanNotInPos","class","btn btn-outline-secondary shadow rounded",3,"click",4,"ngIf"],[4,"ngIf"],[1,"d-flex"],["container",""],["bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"clearable","items","ngModel","ngModelChange","clear"],["ng-option-tmp",""],["name","haveSKU",1,"form-control","h-100","pt-3","rounded",3,"ngModel","ngModelChange"],[1,"me-5",3,"value"],[1,"container-fluid","mt-3"],[1,"row","mt-8"],["class","col-12 col-md-6 col-xl-4 px-3 my-3",4,"ngFor","ngForOf"],["class","row",4,"ngIf"],["type","button","data-cy","scanNotInPos",1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],["type","button",1,"btn","btn-success","shadow-sm","rounded","ms-3",3,"click"],[1,"fa","fa-download"],[1,"me-2"],["alt","",2,"width","18px",3,"src"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[3,"showRedirectIcon","title","image","imageForZoom","code","description","downloadButton","channels","showCheckBox","scanButton","onCheckBoxChange","onDescEvent","onDownload","onScan"],[1,"row"],[1,"col-12"],[3,"filter","totaldata","paginationTotal","hasClicked","total","next","previous"]],template:function(e,n){1&e&&(t.TgZ(0,"mainpanel",0),t.NdJ("onSubmit",function(r){return n.onSearch(r)}),t.TgZ(1,"actions"),t.YNc(2,Vo,3,0,"button",1),t.YNc(3,qo,4,1,"ng-container",2),t.qZA(),t.TgZ(4,"filters")(5,"div",3)(6,"div",4)(7,"div")(8,"h6"),t._uU(9,"Channel"),t.qZA(),t.TgZ(10,"ng-select",5),t.NdJ("ngModelChange",function(r){return n.searchFilter.ChannelID=r})("clear",function(){return n.onClearChannelFilter()}),t.YNc(11,Ho,3,2,"ng-template",6),t.qZA()(),t.TgZ(12,"div")(13,"h6"),t._uU(14,"SKU Assigned"),t.qZA(),t.TgZ(15,"mat-radio-group",7),t.NdJ("ngModelChange",function(r){return n.searchFilter.HaveSku=r}),t.TgZ(16,"mat-radio-button",8),t._uU(17," All "),t.qZA(),t.TgZ(18,"mat-radio-button",8),t._uU(19," Yes "),t.qZA(),t.TgZ(20,"mat-radio-button",8),t._uU(21," No "),t.qZA()()()()()(),t.TgZ(22,"content")(23,"div",9)(24,"div",10),t.YNc(25,Go,2,13,"div",11),t.qZA(),t.YNc(26,zo,3,4,"div",12),t.qZA()()()),2&e&&(t.xp6(2),t.Q6J("ngIf",!n.productService.hasSelection(n.products)),t.xp6(1),t.Q6J("ngIf",n.productService.hasSelection(n.products)),t.xp6(7),t.Q6J("clearable",!0)("items",n.channelOptions)("ngModel",n.searchFilter.ChannelID),t.xp6(5),t.Q6J("ngModel",n.searchFilter.HaveSku),t.xp6(1),t.Q6J("value",0),t.xp6(2),t.Q6J("value",1),t.xp6(2),t.Q6J("value",2),t.xp6(5),t.Q6J("ngForOf",n.products),t.xp6(1),t.Q6J("ngIf",(null==n.products?null:n.products.length)>0))},dependencies:[P.sg,P.O5,L.JJ,L.On,Dt.p,Mt.w9,Mt.ir,Je,me.y,Ee.VQ,Ee.U0],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.itemTitle[_ngcontent-%COMP%]{cursor:pointer}"]}),o})();function Wo(o,i){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"img",14),t.NdJ("click",function(a){t.CHM(e);const r=t.oxw();return t.KtG(r.onZoomImage(a))}),t.qZA(),t.BQk()}if(2&o){const e=t.oxw();t.xp6(1),t.Q6J("src",e.image,t.LSH)}}function Xo(o,i){1&o&&t._UZ(0,"img",15)}function ti(o,i){if(1&o&&(t.TgZ(0,"div",16),t._UZ(1,"i",17),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&o){const e=t.oxw();t.xp6(3),t.Oqu(e.code)}}const ei=function(o){return{"border-bottom":o}};function ni(o,i){if(1&o&&(t.ynx(0),t.TgZ(1,"div",28)(2,"div",29),t._uU(3),t.qZA(),t.TgZ(4,"div")(5,"a",30),t._UZ(6,"i",31),t.qZA()()(),t.BQk()),2&o){const e=i.$implicit,n=i.index,a=t.oxw().$implicit;t.xp6(1),t.Q6J("ngClass",t.VKq(3,ei,n!==(null==a?null:a.Map.length)-1)),t.xp6(2),t.hij(" ",e.Name," "),t.xp6(2),t.Q6J("href",e.URL,t.LSH)}}const oi=function(o){return{"border-bottom-0":o}};function ii(o,i){if(1&o&&(t.TgZ(0,"div",18)(1,"h2",19)(2,"button",20)(3,"div",21),t._UZ(4,"img",22),t.TgZ(5,"span",23),t._uU(6),t.qZA(),t.TgZ(7,"span",24)(8,"h4"),t._uU(9),t.qZA()()()()(),t.TgZ(10,"div",25)(11,"div",26),t.YNc(12,ni,7,5,"ng-container",27),t.qZA()()()),2&o){const e=i.$implicit,n=i.index,a=t.oxw();t.Q6J("ngClass",t.VKq(11,oi,a.channels.length-1==n)),t.xp6(1),t.Q6J("id","heading"+n+a.code),t.xp6(1),t.uIk("data-bs-target","#collapse"+n+a.code)("aria-controls","#collapse"+n+a.code),t.xp6(2),t.Q6J("src",a.getChannelLogo(e.TypeID),t.LSH),t.xp6(1),t.Q6J("matTooltip",(null==e||null==e.Name?null:e.Name.length)>30?e.Name:""),t.xp6(1),t.Oqu(e.Name),t.xp6(3),t.hij("- ",e.Map.length," Listing"),t.xp6(1),t.Q6J("id","collapse"+n+a.code),t.uIk("aria-labelledby","heading"+n+a.code),t.xp6(2),t.Q6J("ngForOf",e.Map)}}let ai=(()=>{class o{constructor(e){this.biggerPictureService=e}getChannelLogo(e){return _.g.getChannelLogoByTypeId(e)}onZoomImage(e){this.biggerPictureService.openBiggerPicture(e,this.imageForZoom)}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(Ue))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-duplicate-product-card"]],inputs:{image:"image",imageForZoom:"imageForZoom",title:"title",code:"code",channels:"channels"},decls:16,vars:5,consts:[[1,"card"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],["elsePic",""],[1,"col-8","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle"],["class","description",4,"ngIf"],[1,"card-footer",2,"padding-left","0px","padding-right","0px"],["id","accordionParent",1,"accordion","accordion-flush"],["class","accordion-item border-start-0 border-end-0",3,"ngClass",4,"ngFor","ngForOf"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"src","click"],["src","//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"description"],[1,"fa","fa-barcode","me-2"],[1,"accordion-item","border-start-0","border-end-0",3,"ngClass"],[1,"accordion-header",3,"id"],["type","button","data-bs-toggle","collapse","aria-expanded","true",1,"accordion-button","collapsed",2,"height","40px"],[1,"d-flex","align-items-center","justify-content-start","w-100"],["alt","",1,"channel-logo",3,"src"],[1,"fs-4","ps-4","text-ellipsis",2,"max-width","13vw",3,"matTooltip"],[1,"ps-2"],["data-bs-parent","#accordionParent",1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body",2,"padding-top","0px","padding-bottom","0px"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","align-items-center","py-4",3,"ngClass"],[1,"text-ellipsis"],["target","_blank",1,"text-secondary",3,"href"],[1,"fa","fa-external-link-alt"]],template:function(e,n){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),t.YNc(6,Wo,2,1,"ng-container",6),t.YNc(7,Xo,1,0,"ng-template",null,7,t.W1O),t.qZA()()(),t.TgZ(9,"div",8)(10,"h4",9),t._uU(11),t.qZA(),t.YNc(12,ti,4,1,"div",10),t.qZA()()(),t.TgZ(13,"div",11)(14,"div",12),t.YNc(15,ii,13,13,"div",13),t.qZA()()()),2&e){const a=t.MAs(8);t.xp6(6),t.Q6J("ngIf",n.image)("ngIfElse",a),t.xp6(5),t.hij(" ",n.title," "),t.xp6(1),t.Q6J("ngIf",n.code),t.xp6(3),t.Q6J("ngForOf",n.channels)}},dependencies:[P.mk,P.sg,P.O5,tt.gM],styles:[".productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.channel-logo[_ngcontent-%COMP%]{width:18px;height:18px}.accordion-button[_ngcontent-%COMP%]{background-color:#ededed69!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#ededed69!important;color:#333}.accordion-button[_ngcontent-%COMP%]:after{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e\")}.accordion-button[_ngcontent-%COMP%]:focus{box-shadow:none!important}.card[_ngcontent-%COMP%]{margin-bottom:0!important}"]}),o})();function ri(o,i){if(1&o&&(t.TgZ(0,"span",9),t._UZ(1,"img",10),t.qZA(),t._uU(2)),2&o){const e=i.item,n=t.oxw();t.xp6(1),t.Q6J("src",n.getChannelLogo(e.TypeID),t.LSH),t.xp6(1),t.hij(" ",e.Name," ")}}function li(o,i){if(1&o&&(t.TgZ(0,"div",12),t._UZ(1,"app-duplicate-product-card",13),t.qZA()),2&o){const e=i.$implicit;t.xp6(1),t.Q6J("imageForZoom",e.ImageUrl)("title",e.Name)("code",e.Code)("image",e.ThumbnailURL)("channels",e.Channel)}}function ci(o,i){if(1&o&&(t.ynx(0),t.YNc(1,li,2,5,"div",11),t.BQk()),2&o){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.products)}}function si(o,i){1&o&&(t.TgZ(0,"div",14)(1,"div"),t._UZ(2,"i",15),t.qZA(),t.TgZ(3,"h4",16),t._uU(4,"No product found"),t.qZA(),t.TgZ(5,"h6",17),t._uU(6,"Once you have a duplicate product"),t.qZA(),t.TgZ(7,"h6",18),t._uU(8,"you`ll see them here"),t.qZA()())}function di(o,i){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",19)(2,"div",20)(3,"app-custom-paginator",21),t.NdJ("next",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onNextPage())})("previous",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onPrevPage())})("total",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getRowCount())}),t.qZA()()(),t.BQk()}if(2&o){const e=t.oxw();t.xp6(3),t.Q6J("filter",e.searchFilter)("totaldata",null==e.products?null:e.products.length)("paginationTotal",e.rowCount)("hasClicked",e.hasClickedRowCount)}}let pi=(()=>{class o{constructor(e,n){this.httpService=e,this.productService=n,this.searchFilter=new ut.k,this.products=[],this.hasClickedRowCount=!1,this.getPageLoader()}getPageLoader(){this.productService.loader().subscribe(e=>{this.searchFilter=e.Filter,this.searchFilter.PageSize=e.Filter.RowCount,this.channelOptions=e.Options.Channel,this.getProducts()})}getProducts(){this.httpService.post("/api/product/GetDuplicateInChannel",{ChannelID:this.searchFilter.ChannelID,RowCount:this.searchFilter.RowCount,PageNumber:this.searchFilter.PageNumber,text:this.searchFilter.text}).subscribe(n=>{this.products=n.Data})}onSearch(e){this.searchFilter.text=e,this.hasClickedRowCount=!1,this.getProducts()}onClearFilter(){this.searchFilter.ChannelID=_.g.GuidEMpty}getChannelLogo(e){return _.g.getChannelLogoByTypeId(e)}onNextPage(){this.searchFilter.PageNumber=this.searchFilter.PageNumber+1,this.getProducts()}onPrevPage(){this.searchFilter.PageNumber=this.searchFilter.PageNumber-1,this.getProducts()}getRowCount(){this.httpService.post("/api/product/GetDuplicateInChannelRowCount",{text:this.searchFilter.text,ChannelID:this.searchFilter.ChannelID}).subscribe(n=>{this.hasClickedRowCount=!0,this.rowCount=n.Total})}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(lt.O),t.Y36(kt.M))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-duplicate-sku"]],decls:15,vars:6,consts:[["headerTitle","Multiple Listed SKU","textButton"," Search","description","SKU(s) which is listed more than one time (one to many)",3,"onSubmit"],["container",""],["bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"clearable","items","ngModel","ngModelChange","clear"],["ng-option-tmp",""],[1,"container-fluid"],[1,"row","mt-8","mx-1"],[4,"ngIf","ngIfElse"],["EMPTY",""],[4,"ngIf"],[1,"me-2"],["alt","",2,"width","18px",3,"src"],["class","col-12 col-md-6 col-xl-4 px-3 my-3",4,"ngFor","ngForOf"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[3,"imageForZoom","title","code","image","channels"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"],[1,"text-secondary","fw-normal","m-2"],[1,"text-secondary","fw-normal"],[1,"row","mt-2","justify-content-end"],[1,"col-md-12"],[3,"filter","totaldata","paginationTotal","hasClicked","next","previous","total"]],template:function(e,n){if(1&e&&(t.TgZ(0,"mainpanel",0),t.NdJ("onSubmit",function(r){return n.onSearch(r)}),t.TgZ(1,"filters")(2,"div",1)(3,"div")(4,"h6"),t._uU(5,"Channel"),t.qZA(),t.TgZ(6,"ng-select",2),t.NdJ("ngModelChange",function(r){return n.searchFilter.ChannelID=r})("clear",function(){return n.onClearFilter()}),t.YNc(7,ri,3,2,"ng-template",3),t.qZA()()()(),t.TgZ(8,"content")(9,"div",4)(10,"div",5),t.YNc(11,ci,2,1,"ng-container",6),t.YNc(12,si,9,0,"ng-template",null,7,t.W1O),t.qZA(),t.YNc(14,di,4,4,"ng-container",8),t.qZA()()()),2&e){const a=t.MAs(13);t.xp6(6),t.Q6J("clearable",!0)("items",n.channelOptions)("ngModel",n.searchFilter.ChannelID),t.xp6(5),t.Q6J("ngIf",(null==n.products?null:n.products.length)>0)("ngIfElse",a),t.xp6(3),t.Q6J("ngIf",(null==n.products?null:n.products.length)>0)}},dependencies:[P.sg,P.O5,L.JJ,L.On,Dt.p,Mt.w9,Mt.ir,me.y,ai]}),o})();var Xt=u(8063);const ui=[{path:"",component:qt,children:[{path:"",redirectTo:"sold-in-channel",pathMatch:"full"},{path:"in-pos",component:mo,canActivate:[Xt.a],data:{title:"Products in POS"}},{path:"sold-in-channel",component:So,canActivate:[Xt.a],data:{title:"Products Sold in Channel"}},{path:"not-in-channel",component:Qo,canActivate:[Xt.a],data:{title:"Products not in Channel"}},{path:"not-in-pos",component:jo,canActivate:[Xt.a],data:{title:"Products not in POS"}},{path:"duplicate-sku",component:pi,canActivate:[Xt.a],data:{title:"Duplicate Sku in Channel"}}]}];let hi=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[P.ez,Z.Bz.forChild(ui)]}),o})();var gi=u(8739),mi=u(2594);let _i=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[P.ez,L.u5,tt.AV]}),o})();var fi=u(7459);let Ci=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[P.ez,L.u5,tt.AV]}),o})(),bi=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[P.ez,xt.Z,L.u5,Z.Bz,hi,tt.AV,Dt.R,Mt.A0,gi.TU,mi.K,_i,fi.W,Ci,Ee.Fk]}),o})()},7287:(Qe,Zt,u)=>{u.d(Zt,{b:()=>tt});var P=u(4482),xt=u(5403),L=u(8421),Z=u(4671),t=u(5032),qt=u(3269),w=u(4707),D=u(3099),rt=u(1135),oe=u(7579),xe=u(2722),Pe=u(9300),lt=u(4351),Ht=u(4004),ie=u(5026),Nt=u(8505),ae=u(4650),re=u(1318);let tt=(()=>{class U{constructor(v){this.http=v,this.pagination$=new rt.X(null),this.destroy$=new oe.x,this.data$=this.paginationFunction()}onNextPage(v){v.PageNumber+=1,this.pagination$.next(v)}setPageNumberFooter(v){this.footerPageNumber=v.PageNumber}setPaginationButtonState(v,A){this.disableNextButton=0==A||!(A<v.RowCount*v.PageNumber)}resetToFirstPage(v){v.PageNumber=1,this.pagination$.next(v),this.hideCount=!0,this.goToLastPage=!1}getAllData(v,A){v.RowCount=A,this.pagination$.next(v),this.goToLastPage=!0}destroy(){this.destroy$.next(!0),this.destroy$.complete(),this.pagination$=null,this.pagination$=new rt.X(null),this.data$=this.paginationFunction()}paginationFunction(){return this.pagination$.pipe((0,xe.R)(this.destroy$),(0,Pe.h)(v=>null!=v),(0,lt.b)(v=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(v)).pipe((0,Ht.U)(A=>A.Data))),function ut(...U){const ct=(0,qt.jO)(U);return(0,P.e)((v,A)=>{const st=U.length,ht=new Array(st);let et=U.map(()=>!1),q=!1;for(let nt=0;nt<st;nt++)(0,L.Xf)(U[nt]).subscribe((0,xt.x)(A,Ft=>{ht[nt]=Ft,!q&&!et[nt]&&(et[nt]=!0,(q=et.every(Z.y))&&(et=null))},t.Z));v.subscribe((0,xt.x)(A,nt=>{if(q){const Ft=[nt,...ht];A.next(ct?ct(...Ft):Ft)}}))})}(this.pagination$),(0,ie.R)((v,A)=>{const[st,ht]=v,[et]=A;return 1==ht.PageNumber?[et,ht]:[st.concat(et),ht]}),(0,Nt.b)(([v,A])=>{this.setPageNumberFooter(A),this.setPaginationButtonState(A,v.length)}),(0,Ht.U)(([v])=>v),function _(U,ct,v){let A,st=!1;return U&&"object"==typeof U?({bufferSize:A=1/0,windowTime:ct=1/0,refCount:st=!1,scheduler:v}=U):A=U??1/0,(0,D.B)({connector:()=>new w.t(A,ct,v),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:st})}())}}return U.\u0275fac=function(v){return new(v||U)(ae.LFG(re.O))},U.\u0275prov=ae.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})()}}]);
@@ -0,0 +1,33 @@
1
+ @mixin styleStepLine($index) {
2
+ .mat-horizontal-stepper-header {
3
+ &+.mat-stepper-horizontal-line:nth-child(#{$index}) {
4
+ height: 2px;
5
+ background-image: linear-gradient(to right, #3f51b5, #3f51b5);
6
+ }
7
+ }
8
+ }
9
+
10
+ .last-edited-step-1 {
11
+ @include styleStepLine(2);
12
+ }
13
+
14
+ .last-edited-step-2 {
15
+ @include styleStepLine(2);
16
+ @include styleStepLine(4);
17
+ }
18
+
19
+
20
+ .mat-step-header .mat-step-header-ripple {display: none;}
21
+ .mat-step-header.cdk-keyboard-focused, .mat-step-header.cdk-program-focused, .mat-step-header:hover {
22
+ background-color: #fff;
23
+ }
24
+
25
+ .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before, .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after, [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after, [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before
26
+ {width: 0px!important;}
27
+
28
+ .mat-stepper-label-position-bottom .mat-horizontal-stepper-header {
29
+ padding: 8px 0 8px 0 !important;
30
+ }
31
+ .mat-stepper-label-position-bottom .mat-stepper-horizontal-line {
32
+ top: 20px !important;
33
+ }
@@ -64,7 +64,7 @@
64
64
  // @include border-radius($alert-border-radius);
65
65
  position: relative;
66
66
  overflow: hidden;
67
- margin: 0 0 6px;
67
+ margin: 6px 0 6px;
68
68
  padding: 0.2rem 1.25rem 0.75rem 50px;
69
69
  width: 300px;
70
70
  background-position: 15px center;
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[592],{1290:(_,u,l)=>{l.d(u,{k:()=>t});class t{}},6732:(_,u,l)=>{l.d(u,{y:()=>p});var t=l(4650),e=l(6895);function c(r,o){if(1&r){const i=t.EpF();t.TgZ(0,"span",10),t.NdJ("click",function(){t.CHM(i);const a=t.oxw();return t.KtG(a.getTotal())}),t.TgZ(1,"i",11),t._uU(2,"?"),t.qZA()()}}function s(r,o){if(1&r&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&r){const i=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,1,i.paginationTotal))}}let p=(()=>{class r{constructor(){this.get=new t.vpe,this.change=new t.vpe,this.next=new t.vpe,this.previous=new t.vpe,this.total=new t.vpe,this.hasClicked=!1}changePage(i){this.filter.PageNumber=i.pageIndex+1,this.change.emit(this.filter)}getTotal(){this.total.emit()}PreviousPage(){this.previous.emit()}NextPage(){this.next.emit()}}return r.\u0275fac=function(i){return new(i||r)},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-custom-paginator"]],inputs:{filter:"filter",paginationTotal:"paginationTotal",totaldata:"totaldata",hasClicked:"hasClicked"},outputs:{get:"get",change:"change",next:"next",previous:"previous",total:"total"},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(i,n){1&i&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._uU(3),t.ALo(4,"number"),t.ALo(5,"number"),t.YNc(6,c,3,0,"span",3),t.YNc(7,s,3,3,"span",4),t._uU(8),t.qZA()(),t.TgZ(9,"div",5)(10,"a",6),t.NdJ("click",function(){return n.PreviousPage()}),t._UZ(11,"i",7),t._uU(12," Prev"),t.qZA(),t.TgZ(13,"a",8),t.NdJ("click",function(){return n.NextPage()}),t._UZ(14,"i",9),t._uU(15," Next"),t.qZA()()()),2&i&&(t.xp6(3),t.AsE(" Showing ",t.lcZ(4,7,n.filter.PageSize*(n.filter.PageNumber-1)+1)," - ",t.lcZ(5,9,n.filter.PageSize*(n.filter.PageNumber-1)+n.totaldata)," of "),t.xp6(3),t.Q6J("ngIf",!n.hasClicked),t.xp6(1),t.Q6J("ngIf",n.hasClicked),t.xp6(1),t.hij(" records ~ ",n.filter.PageNumber," Page "),t.xp6(2),t.Q6J("hidden",1==n.filter.PageNumber),t.xp6(3),t.Q6J("hidden",n.filter.PageSize*(n.filter.PageNumber-1)+n.totaldata==n.paginationTotal||n.totaldata<n.filter.PageSize))},dependencies:[e.O5,e.JJ]}),r})()},7459:(_,u,l)=>{l.d(u,{W:()=>c});var t=l(6895),e=l(4650);let c=(()=>{class s{}return s.\u0275fac=function(r){return new(r||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[t.ez]}),s})()},2594:(_,u,l)=>{l.d(u,{K:()=>r,n:()=>p});var t=l(6895),e=l(4650);function c(o,i){if(1&o){const n=e.EpF();e.TgZ(0,"span",10),e.NdJ("click",function(){e.CHM(n);const g=e.oxw();return g.getTotal(),e.KtG(g.hasClicked=!0)}),e.TgZ(1,"i",11),e._uU(2,"?"),e.qZA()()}}function s(o,i){if(1&o&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&o){const n=e.oxw();e.xp6(1),e.Oqu(e.lcZ(2,1,n.paginationTotal))}}let p=(()=>{class o{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(n){this.filter.PageNumber=n.pageIndex+1,this.change.emit(this.filter)}getTotal(){this.total.emit()}PreviousPage(){this.previous.emit()}NextPage(){this.next.emit()}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=e.Xpm({type:o,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(n,a){1&n&&(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,c,3,0,"span",3),e.YNc(7,s,3,3,"span",4),e.qZA()(),e.TgZ(8,"div",5)(9,"button",6),e.NdJ("click",function(){return a.PreviousPage()}),e._UZ(10,"i",7),e.qZA(),e.TgZ(11,"button",8),e.NdJ("click",function(){return a.NextPage()}),e._UZ(12,"i",9),e.qZA()()()),2&n&&(e.xp6(3),e.AsE(" Showing ",e.lcZ(4,6,a.filter.PageSize*(a.filter.PageNumber-1)+1)," - ",e.lcZ(5,8,a.filter.PageSize*(a.filter.PageNumber-1)+a.totaldata)," of "),e.xp6(3),e.Q6J("ngIf",!a.hasClicked),e.xp6(1),e.Q6J("ngIf",a.hasClicked),e.xp6(2),e.Q6J("disabled",1==a.filter.PageNumber),e.xp6(2),e.Q6J("disabled",a.filter.PageSize*(a.filter.PageNumber-1)+a.totaldata==a.paginationTotal||a.totaldata<a.filter.PageSize))},dependencies:[t.O5,t.JJ]}),o})(),r=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[t.ez]}),o})()}}]);
@@ -14,9 +14,9 @@
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.4/Marketplace/styles.ab4c60b3cc2298c3.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.4/Marketplace/styles.ab4c60b3cc2298c3.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.6/Marketplace/styles.dc183203b654c19c.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.6/Marketplace/styles.dc183203b654c19c.css"></noscript></head>
18
18
  <body>
19
19
  <app-root></app-root>
20
- <script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.4/Marketplace/runtime.016444f60baacdd3.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.4/Marketplace/polyfills.8d85b0533e3f867a.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.4/Marketplace/scripts.09af772bfa77d50d.js" defer></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.4/Marketplace/main.2fa426747cc66a26.js" type="module"></script>
20
+ <script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.6/Marketplace/runtime.ba9ecd190eb3a539.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.6/Marketplace/polyfills.8d85b0533e3f867a.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.6/Marketplace/scripts.09af772bfa77d50d.js" defer></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.6/Marketplace/main.f2cf6124e7df7f02.js" type="module"></script>
21
21
 
22
22
  </body></html>