marketplacepos 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/102.635de205af00df15.js +1 -0
- package/Marketplace/387.04d02414af56d750.js +1 -0
- package/Marketplace/3rdpartylicenses.txt +25 -0
- package/Marketplace/402.2999196dce334514.js +1 -0
- package/Marketplace/455.fc7663306b753727.js +1 -0
- package/Marketplace/458.c769122ade2c10ed.js +1 -0
- package/Marketplace/472.54413a4f69aa673d.js +1 -0
- package/Marketplace/585.9e916b668a91cc94.js +1 -0
- package/Marketplace/667.81e6162196d486da.js +1 -0
- package/Marketplace/{767.297995f3aba0da57.js → 767.79e23997e93fb6c3.js} +1 -1
- package/Marketplace/801.8eb1454f763d4534.js +1 -0
- package/Marketplace/882.b34c3cc6e65d7a17.js +1 -0
- package/Marketplace/970.d0e3ee1e2aec0db5.js +1 -0
- package/Marketplace/assets/lbd/_sidebar-and-main-panel.scss +0 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/main.f30bf3b0f501021c.js +1 -0
- package/Marketplace/runtime.d01f3ddbb2b8f1f2.js +1 -0
- package/Marketplace/scripts.6c7ffbfab0ec93ff.js +1 -0
- package/Marketplace/styles.296cdf56f9059ddb.css +39 -0
- package/package.json +1 -1
- package/Marketplace/146.bc63745556a7579e.js +0 -1
- package/Marketplace/288.9b236c96f7411cc2.js +0 -1
- package/Marketplace/327.72c9ed40548e876f.js +0 -1
- package/Marketplace/402.76aaae9b8dfdc4fd.js +0 -1
- package/Marketplace/458.175fffe756700561.js +0 -1
- package/Marketplace/466.02b13502d80588a2.js +0 -1
- package/Marketplace/472.2a25cc631023dd9d.js +0 -1
- package/Marketplace/585.c93552ac67f4550c.js +0 -1
- package/Marketplace/61.6bf2570c9c03e65d.js +0 -1
- package/Marketplace/970.3f4eb2182e0ed6ff.js +0 -1
- package/Marketplace/main.7b5711d2efb046b5.js +0 -1
- package/Marketplace/runtime.ec27a3ee2f27cef3.js +0 -1
- package/Marketplace/scripts.512baec01df5d79f.js +0 -1
- package/Marketplace/styles.84477c613818f650.css +0 -39
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[882],{8231:(A,I,a)=>{a.d(I,{j:()=>x});var u=a(5412),h=a(3154),d=a(9694),t=a(4650),y=a(6895),p=a(4006),s=a(1948),v=a(9549),e=a(4385),n=a(3238),l=a(266);function r(f,S){if(1&f&&(t.TgZ(0,"mat-option",11)(1,"div",12),t._UZ(2,"img",13),t.TgZ(3,"span"),t._uU(4),t.qZA()()()),2&f){const i=S.$implicit;t.Q6J("value",i.ID)("disabled",i.disabled),t.xp6(1),t.Q6J("matTooltip",i.disabled?"Single Product Scan disabled for this type of Channel":null),t.xp6(1),t.Q6J("src",i.Img,t.LSH),t.xp6(2),t.Oqu(i.Name)}}function C(f,S){if(1&f){const i=t.EpF();t.TgZ(0,"div")(1,"h5",2),t._uU(2,"Scan Type"),t.qZA(),t.TgZ(3,"mat-radio-group",14),t.NdJ("ngModelChange",function(T){t.CHM(i);const P=t.oxw();return t.KtG(P.filter.ScanFull=T)}),t.TgZ(4,"mat-radio-button",15),t._uU(5," Full (Include Inactive Products) "),t.qZA(),t.TgZ(6,"mat-radio-button",16),t._uU(7," Active "),t.qZA()()()}if(2&f){const i=t.oxw();t.xp6(3),t.Q6J("ngModel",i.filter.ScanFull),t.xp6(1),t.Q6J("value",!0),t.xp6(2),t.Q6J("value",!1)}}function U(f,S){if(1&f){const i=t.EpF();t.TgZ(0,"div",17)(1,"h5",2),t._uU(2),t.ALo(3,"date"),t.qZA(),t.TgZ(4,"mat-radio-group",18),t.NdJ("ngModelChange",function(T){t.CHM(i);const P=t.oxw();return t.KtG(P.filter.UpdatedProduct=T)}),t.TgZ(5,"mat-radio-button",19),t._uU(6," Scan All Products "),t.qZA(),t.TgZ(7,"mat-radio-button",20),t._uU(8," Scan Updated Products "),t.qZA()()()}if(2&f){const i=t.oxw();t.xp6(2),t.hij(" Last Scan: ",t.xi3(3,5,i.selectedChannel.LastSync,"dd MMMM yyyy HH:mm")," "),t.xp6(2),t.Q6J("ngModel",i.filter.UpdatedProduct)("disabled",i.isTokopedia),t.xp6(1),t.Q6J("value",!1),t.xp6(2),t.Q6J("value",!0)}}let x=(()=>{class f{constructor(i,o){this.dialogRef=i,this.data=o,this.channelType=d.x,this.filter={ChannelID:h.g.GuidEMpty,ScanFull:!0,UpdatedProduct:!1},this.showScanType=void 0===o.showScanType||o.showScanType,this.showScanUpdateType=void 0===o.showScanUpdateType||o.showScanUpdateType,this.isSingleChannel=void 0!==this.data.isSingleChannel&&this.data.isSingleChannel}ngOnInit(){this.initChannelOptions(),this.initFilter(),this.selectedChannel=this.filterChannelById(this.data?.filter?.ChannelID)}initFilter(){this.filter.ScanFull=!0,this.filter.ChannelID=h.g.GuidEMpty,this.filter=JSON.parse(JSON.stringify(this.data.filter)),1==this.channelOptions.length&&(this.filter.ChannelID=this.data.Channel[0].ID,this.selectedChannel=this.data.Channel[0])}initChannelOptions(){this.channelOptions=JSON.parse(JSON.stringify(this.data.Channel)),this.isSingleChannel&&(this.channelOptions=this.channelOptions.map(i=>(i.disabled=!0,(i.TypeID==d.x.Tiktok||i.TypeID==d.x.Tokopedia)&&(i.disabled=!1),i)).sort(i=>i.disabled?1:-1))}onSelectChannel(i){let o=this.filterChannelById(i);this.selectedChannel=o,o&&o.TypeID==d.x.Tokopedia?(this.filter.ScanFull=!0,this.isTokopedia=!0):(this.filter.ScanFull=!1,this.isTokopedia=!1),this.setDefaultConfigUpdate()}setDefaultConfigUpdate(){this.filter.UpdatedProduct=!1,this.selectedChannel&&h.g.IsNotEmpty(this.selectedChannel.LastSync)&&(this.selectedChannel.TypeID==d.x.ShopeeV2||this.selectedChannel.TypeID==d.x.Tiktok)&&(this.filter.UpdatedProduct=!0)}filterChannelById(i){let o;return this.channelOptions&&(o=this.channelOptions.find(T=>T.ID==i)),o}submit(){this.dialogRef.close(this.filter)}isNotEmpty(i){return h.g.IsNotEmpty(i)}onClose(){this.dialogRef.close()}}return f.\u0275fac=function(i){return new(i||f)(t.Y36(u.so),t.Y36(u.WI))},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-scan-dialog"]],decls:16,vars:5,consts:[["mat-dialog-title","",1,"pt-2","pb-3"],[1,"py-5","mt-4","mx-0","border-top","border-bottom"],[1,"mb-3","fw-normal"],["appearance","outline"],["name","channelid","placeholder","Channel",3,"ngModel","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[4,"ngIf"],["class","mt-8",4,"ngIf"],[1,"justify-content-end","mx-4"],["mat-button","",1,"btn","btn-light","mx-3",3,"click"],["mat-button","","data-cy","scan",1,"btn","btn-success","mx-3",3,"disabled","click"],[3,"value","disabled"],["matTooltipClass","my-custom-tooltip",3,"matTooltip"],[2,"width","18px","margin-right","10px",3,"src"],["name","scanType",1,"form-control","h-100","pt-5","round",3,"ngModel","ngModelChange"],["data-toggle","tooltip","title","Full Scan Product",1,"me-5",3,"value"],["data-toggle","tooltip","title","Only Active Product",1,"me-5",3,"value"],[1,"mt-8"],["name","ScanFull",1,"form-control","h-100","pt-5","round",3,"ngModel","disabled","ngModelChange"],["data-toggle","tooltip","title","Scan product from beginning ( use this if you haven't scanned at all)",1,"me-5",3,"value"],["data-toggle","tooltip","title","Scan only products that have been updated since the last channel scan",1,"me-5",3,"value"]],template:function(i,o){1&i&&(t.TgZ(0,"h1",0),t._uU(1,"Scan Marketplace"),t.qZA(),t.TgZ(2,"mat-dialog-content",1)(3,"div")(4,"h5",2),t._uU(5,"Select a Channel"),t.qZA(),t.TgZ(6,"mat-form-field",3)(7,"mat-select",4),t.NdJ("ngModelChange",function(P){return o.filter.ChannelID=P})("ngModelChange",function(P){return o.onSelectChannel(P)}),t.YNc(8,r,5,5,"mat-option",5),t.qZA()()(),t.YNc(9,C,8,3,"div",6),t.YNc(10,U,9,8,"div",7),t.qZA(),t.TgZ(11,"mat-dialog-actions",8)(12,"button",9),t.NdJ("click",function(){return o.onClose()}),t._uU(13," Cancel "),t.qZA(),t.TgZ(14,"button",10),t.NdJ("click",function(){return o.submit()}),t._uU(15," Scan "),t.qZA()()),2&i&&(t.xp6(7),t.Q6J("ngModel",o.filter.ChannelID),t.xp6(1),t.Q6J("ngForOf",o.channelOptions),t.xp6(1),t.Q6J("ngIf",(o.showScanType||!o.isSingleChannel)&&!o.isTokopedia&&o.isNotEmpty(o.filter.ChannelID)),t.xp6(1),t.Q6J("ngIf",((null==o.selectedChannel?null:o.selectedChannel.TypeID)==o.channelType.ShopeeV2||(null==o.selectedChannel?null:o.selectedChannel.TypeID)==o.channelType.Tiktok)&&(null==o.selectedChannel?null:o.selectedChannel.LastSync)&&o.showScanUpdateType),t.xp6(4),t.Q6J("disabled",!o.isNotEmpty(o.filter.ChannelID)))},dependencies:[y.sg,y.O5,p.JJ,p.On,u.uh,u.xY,u.H8,s.VQ,s.U0,v.KE,e.gD,n.ey,l.gM,y.uU],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:60px}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]}),f})()},7398:(A,I,a)=>{a.d(I,{Z:()=>p,e:()=>y});var u=a(6895),h=a(8252),d=a(4650);function t(s,v){if(1&s&&(d.TgZ(0,"li",2)(1,"a",3),d._uU(2),d.qZA()()),2&s){const e=v.$implicit;d.xp6(1),d.s9C("routerLink",e.Url),d.xp6(1),d.hij(" ",e.Title," ")}}let y=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=d.Xpm({type:s,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"]],template:function(e,n){1&e&&(d.TgZ(0,"ul",0),d.YNc(1,t,3,2,"li",1),d.qZA()),2&e&&(d.xp6(1),d.Q6J("ngForOf",n.Tabs))},dependencies:[u.sg,h.yS,h.Od]}),s})(),p=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=d.oAB({type:s}),s.\u0275inj=d.cJS({imports:[u.ez,h.Bz]}),s})()},3154:(A,I,a)=>{a.d(I,{g:()=>d});var u=(()=>{return(t=u||(u={})).SHOOPE="//res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png",t.WOOCOMMERCE="//res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp",t.TOKOPEDIA="//res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png",t.TIKTOK="//res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png",t.LAZADA="//res.cloudinary.com/pos/image/upload/w_30/v1641528003/icons/marketplace_icons/lazada.png",u;var t})(),h=a(9694);let d=(()=>{class t{static IsNotEmpty(p){return""!=p&&p!=t.GuidEMpty&&null!=p&&null!=p}static IsEmpty(p){return""==p||null==p||null==p||p==t.GuidEMpty}static getChannelLogoByTypeId(p){let s;switch(p){case h.x.Tokopedia:s=u.TOKOPEDIA;break;case h.x.ShopeeV2:s=u.SHOOPE;break;case h.x.WooCommerce:s=u.WOOCOMMERCE;break;case h.x.Lazada:s=u.LAZADA;break;case h.x.Tiktok:s=u.TIKTOK}return s}}return t.GuidEMpty="00000000-0000-0000-0000-000000000000",t})()},7287:(A,I,a)=>{a.d(I,{b:()=>P});var u=a(4482),h=a(5403),d=a(8421),t=a(4671),y=a(5032),p=a(3269),v=a(4707),e=a(3099),l=a(1135),r=a(7579),C=a(2722),U=a(9300),x=a(4351),f=a(4004),S=a(5026),i=a(8505),o=a(4650),T=a(1318);let P=(()=>{class g{constructor(c){this.http=c,this.pagination$=new l.X(null),this.destroy$=new r.x,this.data$=this.paginationFunction()}onNextPage(c){c.PageNumber+=1,this.pagination$.next(c)}setPageNumberFooter(c){this.footerPageNumber=c.PageNumber}setPaginationButtonState(c,m){this.disableNextButton=0==m||!(m<c.RowCount*c.PageNumber)}resetToFirstPage(c){c.PageNumber=1,this.pagination$.next(c),this.hideCount=!0,this.goToLastPage=!1}getAllData(c,m){c.RowCount=m,this.pagination$.next(c),this.goToLastPage=!0}destroy(){this.destroy$.next(!0),this.destroy$.complete(),this.pagination$=null,this.pagination$=new l.X(null),this.data$=this.paginationFunction()}paginationFunction(){return this.pagination$.pipe((0,C.R)(this.destroy$),(0,U.h)(c=>null!=c),(0,x.b)(c=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(c)).pipe((0,f.U)(m=>m.Data))),function s(...g){const _=(0,p.jO)(g);return(0,u.e)((c,m)=>{const M=g.length,E=new Array(M);let O=g.map(()=>!1),N=!1;for(let D=0;D<M;D++)(0,d.Xf)(g[D]).subscribe((0,h.x)(m,b=>{E[D]=b,!N&&!O[D]&&(O[D]=!0,(N=O.every(t.y))&&(O=null))},y.Z));c.subscribe((0,h.x)(m,D=>{if(N){const b=[D,...E];m.next(_?_(...b):b)}}))})}(this.pagination$),(0,S.R)((c,m)=>{const[M,E]=c,[O]=m;return 1==E.PageNumber?[O,E]:[M.concat(O),E]}),(0,i.b)(([c,m])=>{this.setPageNumberFooter(m),this.setPaginationButtonState(m,c.length)}),(0,f.U)(([c])=>c),function n(g,_,c){let m,M=!1;return g&&"object"==typeof g?({bufferSize:m=1/0,windowTime:_=1/0,refCount:M=!1,scheduler:c}=g):m=g??1/0,(0,e.B)({connector:()=>new v.t(m,_,c),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:M})}())}}return g.\u0275fac=function(c){return new(c||g)(o.LFG(T.O))},g.\u0275prov=o.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},6082:(A,I,a)=>{a.d(I,{M:()=>p});var u=a(8505),h=a(9694),d=a(4650),t=a(1318),y=a(7185);let p=(()=>{class s{constructor(e,n){this.httpService=e,this.toastrService=n}loader(){return this.httpService.post("/api/product/Load",{})}filterChannelByTypeId(e,n){return e.filter(l=>-1!==n.findIndex(r=>l.TypeID==r))}uploadToMultipleChannel(e,n){return this.httpService.post("api/product/UploadMultipleChannelToMarketplace",{Channel:n,Products:e})}uploadMultipleProduct(e,n,l){return this.httpService.post("/api/product/UploadToMarketplace",{ChannelID:n,Products:e,CategoryID:l||0})}scanSingle(e,n){return this.httpService.post("/api/product/ScanSingle",{ID:e,SKU:n})}scanNotInChannel(e){return this.httpService.post("/api/product/ScanNotinChannel",{ID:e})}findAllSoldInChannel(e){return this.httpService.post("/api/product/GetSoldInChannel",e)}scanAll(e,n,l){return this.httpService.post("/api/product/ScanOptimized",{ID:e,ScanFull:n,UpdatedProduct:l})}getVariantCodesProduct(e){return e.Variants.map(l=>l.Code)}downloadMultipleProduct(e){let n=e.map(l=>({ChannelItemID:l.ChannelItemID,ChannelID:l.ChannelID}));return this.httpService.post("/api/product/DownloadMultipleProductFromChannel",n).pipe((0,u.b)(()=>{this.toastrService.success("Retrieved Product successfully!","Success")}))}downloadProduct(e){return this.httpService.post("/api/product/DownloadProductFromChannel",{ChannelItemID:e.ChannelItemID,ChannelID:e.ChannelID}).pipe((0,u.b)(()=>{this.toastrService.success("Retrieved Product successfully!","Success")}))}getVariantCodesProducts(e=[]){let n=[];return e.forEach(l=>{l.Variants.forEach(r=>{n=[...n,r.Code]})}),n}filterUnselectedChannel(e,n){let l;return l=e.Channel&&0!=e.Channel.length?n.filter(r=>-1===e.Channel.findIndex(C=>C.ChannelID==r.ID)):n,l}findChannelById(e,n){return n.find(l=>l.ID==e)}sortChannel(e=[]){return e.sort((n,l)=>n.TypeID<l.TypeID?1:n.TypeID===l.TypeID?0:-1)}hasSelection(e=[]){return this.selectedProduct(e).length>0}selectedProduct(e=[]){return e.filter(n=>n.selected)}hasSelectionVariant(e){return this.selectedVariantProduct(e).length>0}selectedVariantProduct(e){let n=[];return e.forEach(l=>{n=[...n,...l.Variants.filter(r=>r.selected)]}),n}getChannelProduct(e){const n=e.Variants;let l=[];for(let r of n)if(null!=r.Channel)for(let C of r.Channel)0==l.filter(U=>U.ChannelID==C.ChannelID).length&&l.push(C);return this.sortChannel(l)}successToastrScanAllProduct(e,n,l){if(l){const r=e?.NotInPOS?.Product?e?.NotInPOS?.Product:0,C=e?.InChannel?.Product?e?.InChannel?.Product:0;this.toastrService.success(`\n ${r+C} found in ${n.Name} </br>\n (${C} In POS + ${r} Not In Pos)\n `,"Scan Complete!",{enableHtml:!0})}else this.toastrService.success(`${e.InChannel?e.InChannel.Product:0} product updates in ${n.Name} </br> \n since ${e.LastUpdate}`,"Scan Complete!",{enableHtml:!0})}checkProductHasScanButton(e,n){let l,r;return e.map(C=>(C.Channel=this.getChannelProduct(C),l=this.filterUnselectedChannel(C,n),r=this.filterChannelByTypeId(l,[h.x.Tiktok,h.x.Tokopedia]),C.hasScan=r.length>0,C))}checkProductHasUploadBtn(e,n){let l;return e.map(r=>(r.Channel=this.getChannelProduct(r),l=this.filterUnselectedChannel(r,n),r.hasUpload=l.length>0,r))}}return s.\u0275fac=function(e){return new(e||s)(d.LFG(t.O),d.LFG(y._W))},s.\u0275prov=d.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[970],{7970:(Ne,P,c)=>{c.r(P),c.d(P,{PriceModule:()=>Je});var s=c(6895),Z=c(7398),h=c(7481),g=c(8252),p=c(4006),u=c(8796),e=c(4650);let J=(()=>{class n{constructor(){this.priceTabs=[{Title:"Price Single Channel",Url:"/menu/price/SingleChannel"},{Title:"POS vs Channel Price",Url:"/menu/price/pos"},{Title:"Custom Channel Price",Url:"/menu/price/OutletPrice"}]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-price"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(t,i){1&t&&(e.TgZ(0,"nav",0)(1,"div",1)(2,"div"),e._UZ(3,"nav-tab",2),e.qZA()()(),e._UZ(4,"router-outlet")),2&t&&(e.xp6(3),e.Q6J("Tabs",i.priceTabs))},dependencies:[Z.e,g.lC]}),n})();var T=c(8231),S=c(6304),I=c(8505),d=c(9300),N=c(3154),m=c(1318),f=c(7185),C=c(5412),v=c(7287),x=c(1948);function O(n,a){if(1&n&&(e.TgZ(0,"mat-radio-button",3),e._uU(1),e.qZA()),2&n){const t=a.$implicit,i=a.index,o=e.oxw();e.Q6J("value",t.Key)("name",o.name)("title",o.tooltipsText[i]?o.tooltipsText[i]:""),e.xp6(1),e.hij(" ",t.Value,"")}}const q=function(n){return{"border-0":n}};let y=(()=>{class n{constructor(){this.modelChange=new e.vpe,this.border=!1,this.tooltipsText=[]}change(t){this.modelChange.emit(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["radio-options"]],inputs:{model:"model",options:"options",border:"border",name:"name",tooltipsText:"tooltipsText"},outputs:{modelChange:"modelChange"},decls:3,vars:5,consts:[[1,"form-control","h-100",3,"ngClass"],[3,"ngModel","ngModelChange"],["class","me-5","data-toggle","tooltip","data-placement","right",3,"value","name","title",4,"ngFor","ngForOf"],["data-toggle","tooltip","data-placement","right",1,"me-5",3,"value","name","title"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"mat-radio-group",1),e.NdJ("ngModelChange",function(l){return i.change(l)}),e.YNc(2,O,2,4,"mat-radio-button",2),e.qZA()()),2&t&&(e.Q6J("ngClass",e.VKq(3,q,0==i.border)),e.xp6(1),e.Q6J("ngModel",i.model),e.xp6(1),e.Q6J("ngForOf",i.options))},dependencies:[s.mk,s.sg,x.VQ,x.U0,p.JJ,p.On],styles:[".mat-radio-label{margin-top:auto;margin-bottom:auto}"]}),n})(),k=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[s.ez,x.Fk,p.u5]}),n})();var w=c(488);function Q(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"button",18),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.openScanDialog())}),e._UZ(1,"i",19),e._uU(2," Scan Channel "),e.qZA()}}function L(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().ngIf,l=e.oxw(2);return e.KtG(l.onUpdateItems(o))}),e._UZ(1,"i",21),e._uU(2," Update "),e.qZA()}}function R(n,a){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Q,3,0,"button",16),e.YNc(2,L,3,0,"button",17),e.qZA()),2&n){const t=a.ngIf,i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!i.hasSelection(t)),e.xp6(1),e.Q6J("ngIf",i.hasSelection(t))}}function $(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"div",22)(1,"app-table",23),e.NdJ("onSubmit",function(o){e.CHM(t);const l=e.oxw(2);return e.KtG(l.UpdatePriceByVariant(o))}),e.ALo(2,"async"),e.qZA()()}if(2&n){const t=e.oxw().ngIf,i=e.oxw();e.xp6(1),e.Q6J("data",e.lcZ(2,3,i.paginationService.data$))("channel",t.Options.Channel)("filter",t.Filter)}}function Y(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",24),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.getRowCount())}),e.TgZ(1,"i",25),e._uU(2,"?"),e.qZA()()}}function V(n,a){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=a.ngIf;e.xp6(1),e.Oqu(e.lcZ(2,1,t))}}function E(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"a",26),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onNextPage())}),e._UZ(1,"i",27),e._uU(2," Next"),e.qZA()}}function K(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"a",28),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onLastPage())}),e._UZ(1,"i",29),e._uU(2," Last"),e.qZA()}}function H(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"mainpanel",1),e.NdJ("onSubmit",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onSearch(o))}),e.TgZ(1,"filters")(2,"div",2)(3,"div")(4,"h6"),e._uU(5,"Filter by"),e.qZA(),e.TgZ(6,"radio-options",3),e.NdJ("modelChange",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.searchFilter.filterModel=o)}),e.qZA()()()(),e.TgZ(7,"actions")(8,"div",4),e.YNc(9,R,3,2,"div",5),e.ALo(10,"async"),e.qZA()(),e.TgZ(11,"content")(12,"div",6)(13,"div",7),e.YNc(14,$,3,5,"div",8),e.ALo(15,"async"),e.qZA(),e.TgZ(16,"div",9)(17,"div",10)(18,"div",11),e._uU(19),e.ALo(20,"number"),e.ALo(21,"async"),e.YNc(22,Y,3,0,"span",12),e.YNc(23,V,3,3,"span",5),e.ALo(24,"async"),e._uU(25),e.qZA()(),e.TgZ(26,"div",13),e.YNc(27,E,3,0,"a",14),e.YNc(28,K,3,0,"a",15),e.qZA()()()()()}if(2&n){const t=e.oxw();let i;e.Q6J("pageData",t.pageData)("hideSearchBox",!1)("hideSearchDropdown",!1)("textButton","Search"),e.xp6(6),e.Q6J("model",t.searchFilter.filterModel)("options",t.filterOptions)("border",!1),e.xp6(3),e.Q6J("ngIf",e.lcZ(10,15,t.paginationService.data$)),e.xp6(5),e.Q6J("ngIf",e.lcZ(15,17,t.paginationService.data$)),e.xp6(5),e.hij(" Showing 1 - ",e.lcZ(20,19,null==(i=e.lcZ(21,21,t.paginationService.data$))?null:i.length)," of "),e.xp6(3),e.Q6J("ngIf",t.paginationService.hideCount),e.xp6(1),e.Q6J("ngIf",!t.paginationService.hideCount&&e.lcZ(24,23,t.allDataCount$)),e.xp6(2),e.hij(" records ~ ",t.paginationService.footerPageNumber," Page "),e.xp6(2),e.Q6J("ngIf",t.paginationService.disableNextButton&&!t.paginationService.goToLastPage),e.xp6(1),e.Q6J("ngIf",t.paginationService.disableNextButton&&!t.paginationService.goToLastPage)}}let B=(()=>{class n{constructor(t,i,o,l){this.http=t,this.toastr=i,this.dialog=o,this.paginationService=l,this.loaderAPI="PriceLoader/LoadMultiple",this.getDataAPI="Price/GetMultipleChannelComparison",this.rowCountAPI="Inventory/GetMultipleChannelComparisonRowCount",this.initLoaderPage(),this.filterOptions=[{Key:1,Value:"All"},{Key:3,Value:"Difference"}],this.pageData={Title:"Price",Nav:[{Title:"Price Cache",Url:"/menu/price",Active:!0},{Title:"Price Realtime",Url:"/menu/price/realtime",Active:!1}]}}initLoaderPage(){this.paginationService.fetchDataEndpoint=this.getDataAPI,this.loader$=this.http.post(`/api/${this.loaderAPI}`).pipe((0,I.b)(t=>{this.channelOptions=t.Options.Channel,t.Filter={PageNumber:t.Filter.PageNumber,RowCount:t.Filter.RowCount,filterModel:1},this.searchFilter=t.Filter,this.paginationService.resetToFirstPage(this.searchFilter)}))}onSearch(t){this.searchFilter.text=t,this.paginationService.resetToFirstPage(this.searchFilter)}openScanDialog(){this.dialog.open(T.j,{data:{filter:this.searchFilter,Channel:this.channelOptions},width:"30%"}).afterClosed().pipe((0,d.h)(i=>N.g.IsNotEmpty(i))).subscribe(i=>{this.searchFilter=i,this.refreshChannel()})}refreshChannel(){this.http.post("/api/product/ScanOptimized",{ID:this.searchFilter.ChannelID,ScanFull:this.searchFilter.ScanFull}).subscribe(i=>{this.paginationService.resetToFirstPage(this.searchFilter),this.toastr.success("Successfully scanned from "+this.getChannelName(this.searchFilter.ChannelID),"Success")})}UpdatePrice(t){let i=this.getSelected(t);if(i.length>0){let l=[];i.forEach(_=>l.push({ID:_.ID,Code:_.Code,Price:_.UnitPrice}));var o=[];for(let _ of this.channelOptions)_.selected&&o.push(_.ID);let r={ListChannelID:o,ListPrice:l};this.http.post("/api/Price/UpdateChannel",r).subscribe(_=>{this.paginationService.resetToFirstPage(this.searchFilter),this.toastr.success("Successfully updated "+r.ListPrice.length+" items in "+r.ListChannelID.length+" channels","Success")})}}getSelected(t){let i=Array();if(t){for(let o of t)for(let l of o.Variants)l.selected&&i.push(l);return i}return[]}hasSelection(t){return!!t&&this.getSelected(t).length>0}UpdatePriceByVariant(t){let i={ID:t.ChannelID,ChannelItemID:t.ChannelItemID,ChannelVariantID:t.ChannelVariationID,Price:t.Price-0,VariantID:t.ID};this.http.post("/api/Price/UpdatePriceByID",i).subscribe(o=>{this.toastr.success("Successfully updated "+t.ItemName+"("+t.VarName+") price in "+this.getChannelName(i.ID)+" to "+i.Price,"Success"),this.paginationService.resetToFirstPage(this.searchFilter)})}getChannelName(t){return this.channelOptions.find(o=>o.ID==t).Name}onUpdateItems(t){const i=this.getSelected(t);this.dialog.open(S.j,{data:{selectedItems:i,channels:this.channelOptions},width:"40%"}).afterClosed().pipe((0,d.h)(o=>void 0!==o)).subscribe(o=>{this.channelOptions=o,this.UpdatePrice(t)})}getRowCount(){this.paginationService.hideCount=!1,this.allDataCount$=this.http.post(`/api/${this.rowCountAPI}`,{})}onNextPage(){this.paginationService.onNextPage(this.searchFilter)}onLastPage(){this.http.post(`/api/${this.rowCountAPI}`,{}).subscribe({next:t=>{this.searchFilter.PageNumber=1,this.paginationService.getAllData(this.searchFilter,t)}})}ngOnDestroy(){this.paginationService.destroy()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(m.O),e.Y36(f._W),e.Y36(C.uw),e.Y36(v.b))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-price-pos"]],decls:2,vars:3,consts:[["headerTitle","Price Comparison",3,"pageData","hideSearchBox","hideSearchDropdown","textButton","onSubmit",4,"ngIf"],["headerTitle","Price Comparison",3,"pageData","hideSearchBox","hideSearchDropdown","textButton","onSubmit"],["container",""],["name","filterModel",3,"model","options","border","modelChange"],[1,"d-flex"],[4,"ngIf"],[1,"container-fluid","mt-3"],[1,"row"],["class","col-md-12",4,"ngIf"],[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],["style","cursor: pointer",3,"click",4,"ngIf"],[1,"btn-group"],["role","button","class","btn btn-outline-secondary btn-sm text-primary","title","Load more for 20 products",3,"click",4,"ngIf"],["role","button","class","btn btn-outline-secondary btn-sm text-primary","title","Load all products",3,"click",4,"ngIf"],["type","button","data-cy","scanInPos","class","btn btn-outline-secondary shadow rounded me-3",3,"click",4,"ngIf"],["type","button","class","btn btn-success shadow rounded","data-toggle","modal",3,"click",4,"ngIf"],["type","button","data-cy","scanInPos",1,"btn","btn-outline-secondary","shadow","rounded","me-3",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],["type","button","data-toggle","modal",1,"btn","btn-success","shadow","rounded",3,"click"],[1,"fas","fa-chevron-circle-up"],[1,"col-md-12"],["table","price",3,"data","channel","filter","onSubmit"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-share"]],template:function(t,i){1&t&&(e.YNc(0,H,29,25,"mainpanel",0),e.ALo(1,"async")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,i.loader$))},dependencies:[s.O5,h.p,y,w.a,s.Ov,s.JJ],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}"]}),n})();var A=c(6709);function G(n,a){if(1&n&&(e.TgZ(0,"th",33),e._uU(1),e.qZA()),2&n){const t=a.$implicit;e.xp6(1),e.Oqu(t.Name)}}function j(n,a){1&n&&(e.ynx(0),e.TgZ(1,"th",34),e._uU(2," Expected (POS) "),e.qZA(),e.TgZ(3,"th",34),e._uU(4," Channel "),e.qZA(),e.BQk())}function z(n,a){if(1&n&&e._UZ(0,"img",43),2&n){const t=e.oxw(3).$implicit;e.s9C("src",null==t?null:t.ImageUrl,e.LSH)}}function W(n,a){1&n&&e._UZ(0,"img",44)}const X=function(n){return{"border-bottom":n}};function ee(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"td",38),e.YNc(2,z,1,1,"img",39),e.YNc(3,W,1,0,"ng-template",null,40,e.W1O),e.qZA(),e.TgZ(5,"td",41)(6,"h5",42),e._uU(7),e.qZA(),e._UZ(8,"br"),e.TgZ(9,"small"),e._uU(10),e.qZA()(),e.BQk()),2&n){const t=e.MAs(4),i=e.oxw().index,o=e.oxw().$implicit,l=e.oxw();e.xp6(1),e.Q6J("rowSpan",null==o?null:o.Variants.length)("ngClass",e.VKq(7,X,i+1==l.data.length)),e.xp6(1),e.Q6J("ngIf",null==o?null:o.ImageUrl)("ngIfElse",t),e.xp6(3),e.Q6J("rowSpan",null==o?null:o.Variants.length),e.xp6(2),e.Oqu(null==o?null:o.Name),e.xp6(3),e.hij("(",null==o?null:o.Category,")")}}const te=function(n){return{"bg-err":n}};function ne(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"td",47),e._uU(2),e.ALo(3,"number"),e.qZA(),e.TgZ(4,"td",48)(5,"div",49)(6,"div",50),e._uU(7),e.ALo(8,"number"),e._UZ(9,"br"),e.qZA(),e.TgZ(10,"div",51)(11,"a",52),e._UZ(12,"i",53),e.qZA()()()(),e.BQk()),2&n){const t=a.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,4,t.PriceExpected)," "),e.xp6(2),e.Q6J("ngClass",e.VKq(8,te,t.Price!=t.PriceExpected)),e.xp6(3),e.hij(" ",e.lcZ(8,6,t.Price)," "),e.xp6(4),e.Q6J("href",t.Url,e.LSH)}}function ie(n,a){1&n&&(e.TgZ(0,"td",54),e._uU(1,"X"),e.qZA(),e.TgZ(2,"td",54),e._uU(3,"X"),e.qZA())}function oe(n,a){if(1&n&&(e.ynx(0),e.YNc(1,ne,13,10,"ng-container",45),e.YNc(2,ie,4,0,"ng-template",null,46,e.W1O),e.BQk()),2&n){const t=a.$implicit,i=e.MAs(3),o=e.oxw().$implicit,l=e.oxw(2);e.xp6(1),e.Q6J("ngIf",l.getItemFromChannel(o,t.ID))("ngIfElse",i)}}function ae(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"tr"),e.YNc(1,ee,11,9,"ng-container",35),e.TgZ(2,"td",36),e._uU(3),e.qZA(),e.TgZ(4,"td",36),e._uU(5),e.qZA(),e.TgZ(6,"td",37)(7,"input",18),e.NdJ("ngModelChange",function(o){const r=e.CHM(t).$implicit;return e.KtG(r.selected=o)}),e.qZA()(),e.YNc(8,oe,4,2,"ng-container",19),e.qZA()}if(2&n){const t=a.$implicit,i=a.index,o=e.oxw(2);e.xp6(1),e.Q6J("ngIf",0==i),e.xp6(2),e.Oqu(null==t?null:t.Model),e.xp6(2),e.Oqu(null==t?null:t.Code),e.xp6(1),e.Q6J("hidden",null==o.filter?null:o.filter.HiddenIPOSInventory),e.xp6(1),e.Q6J("ngModel",t.selected),e.xp6(1),e.Q6J("ngForOf",o.Channel)}}function le(n,a){if(1&n&&(e.TgZ(0,"tbody"),e.YNc(1,ae,9,6,"tr",19),e.qZA()),2&n){const t=a.$implicit;e.xp6(1),e.Q6J("ngForOf",t.Variants)}}function re(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"li")(1,"mat-checkbox",55),e.NdJ("ngModelChange",function(o){const r=e.CHM(t).$implicit;return e.KtG(r.selected=o)}),e.TgZ(2,"div",3)(3,"h6",56),e._uU(4),e.qZA()()()()}if(2&n){const t=a.$implicit;e.xp6(1),e.Q6J("ngModel",t.selected),e.xp6(3),e.Oqu(t.Name)}}let ce=(()=>{class n{constructor(t,i,o){this.http=t,this.toastr=i,this.dialog=o,this.filter={ChannelID:""},this.loading=!1,this.checkboxState=!1,this.LoaderChannel(),this.Options=[{Key:1,Value:"All"},{Key:3,Value:"Difference"}],this.filterModel=1,this.pageData={Title:"Price Realtime",Nav:[{Title:"Price Cache",Url:"/menu/price",Active:!1}]}}ngOnInit(){}LoaderChannel(){this.http.post("/api/PriceLoader/LoadMultiple",{}).subscribe(t=>{this.Channel=t.Options.Channel,this.filter=t.Filter,this.filter.HiddenIPOSInventory=!1,this.Filter()})}onCheckboxStateChange(){for(let t of this.data)for(let i of t.Variants)i.selected=this.checkboxState}getSelected(){let t=Array();if(this.data){for(let i of this.data)for(let o of i.Variants)o.selected&&t.push(o);return t}return[]}hasSelection(){return!!this.data&&this.getSelected().length>0}Filter(t){this.http.post("/api/Price/GetOutletPrice",{text:t,filterModel:this.filterModel,PageNumber:this.filter.PageNumber,RowCount:this.filter.RowCount}).subscribe(o=>{this.data=o.Data})}UpdatePrice(){let t=this.getSelected();if(t.length>0){let o=[];t.forEach(r=>o.push(r.ID));var i=[];for(let r of this.Channel)r.selected&&i.push(r.ID);let l={ListChannelID:i,ListID:o};this.http.post("/api/Price/UpdateChannelOutletPrice",l).subscribe(r=>{this.info=r.Data,this.Filter(),this.toastr.success("Successfully updated "+l.ListID.length+" items in "+l.ListChannelID.length+" channels","Success")})}}getItemFromChannel(t,i){return t.Channel.find(o=>o.ChannelID==i)}Actual(t){return t.Price}Expected(t){return t.PriceExpected}UpdatePriceByVariant(t,i,o,l){this.http.post("/api/Price/UpdatePriceByID",{ID:this.filter.ChannelID,ChannelItemID:t,ChannelVariantID:i,Price:o,VariantID:l}).subscribe(_=>{this.toastr.success(_.Data,"Success",{closeButton:!0,positionClass:"toast-bottom-right"});for(let D of this.data)if(D.ChannelItemID===t)for(let F of D.Variants)F.ChannelVariationID==i&&(F.Price=parseFloat(o))})}onUpdateItems(){const t=this.getSelected();this.dialog.open(S.j,{data:{selectedItems:t,channels:this.Channel},width:"40%"}).afterClosed().pipe((0,d.h)(i=>void 0!==i)).subscribe(i=>{this.Channel=i,this.UpdatePrice()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(m.O),e.Y36(f._W),e.Y36(C.uw))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-price-realtime"]],decls:58,vars:16,consts:[[3,"headerTitle","pageData","hideSearchBox","hideSearchDropdown","textButton","onSubmit"],["container",""],["name","filterModel",3,"model","options","border","modelChange"],[1,"d-flex"],["type","button","data-toggle","modal",1,"btn","btn-success","shadow","rounded",3,"hidden","click"],[1,"fas","fa-chevron-circle-up"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["colspan","5"],["scope","col","colspan","2","class","text-center border-bottom-0 border w-10 text-uppercase",4,"ngFor","ngForOf"],["scope","col","colspan","2",1,"text-center","w-20"],["scope","col",1,"text-start"],["scope","col",1,"text-start","w-10"],[3,"hidden"],["type","checkbox",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["id","ModalScan","tabindex","-1","role","dialog","aria-labelledby","ModalScan","aria-hidden","true",1,"modal","pe-0","ps-5","ms-5"],[1,"modal-dialog","modal-dialog-centered","w-75"],[1,"modal-content","w-50"],[1,"modal-header"],["id","exampleModalLabel",1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[1,"fw-light"],[1,"no-bullet"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],["type","button",1,"btn","btn-success",3,"click"],["scope","col","colspan","2",1,"text-center","border-bottom-0","border","w-10","text-uppercase"],[1,"text-end","border-top-0","border","w-10"],[4,"ngIf"],[1,"text-start","border-bottom"],[1,"align-middle",3,"hidden"],[1,"text-center",3,"rowSpan","ngClass"],["class","border rounded w-img",3,"src",4,"ngIf","ngIfElse"],["elsePic",""],[1,"text-center","border-bottom",3,"rowSpan"],[1,"mb-0","item-name"],[1,"border","rounded","w-img",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[4,"ngIf","ngIfElse"],["elseCol",""],[1,"text-end","border","pointer","cell-hover"],[1,"text-end","border","pointer","cell-hover",3,"ngClass"],[1,"row","justify-content-end","me-0"],[1,"col-8","px-0","text-center"],[1,"col-2","ps-0","text-start","align-self-center"],["target","_blank",3,"href"],[1,"fas","fa-lg","fa-external-link-alt"],[1,"table-white","border","text-end",2,"color","red"],[3,"ngModel","ngModelChange"],[1,"fw-light","me-2","my-auto"]],template:function(t,i){1&t&&(e.TgZ(0,"mainpanel",0),e.NdJ("onSubmit",function(l){return i.Filter(l)}),e.TgZ(1,"filters")(2,"div",1)(3,"div")(4,"h6"),e._uU(5,"Filter by"),e.qZA(),e.TgZ(6,"radio-options",2),e.NdJ("modelChange",function(l){return i.filterModel=l}),e.qZA()()()(),e.TgZ(7,"actions")(8,"div",3)(9,"button",4),e.NdJ("click",function(){return i.onUpdateItems()}),e._UZ(10,"i",5),e._uU(11," Update "),e.qZA()()(),e.TgZ(12,"content")(13,"div",6)(14,"div",7)(15,"div",8)(16,"div",9)(17,"table",10)(18,"thead",11)(19,"tr"),e._UZ(20,"th",12),e.YNc(21,G,2,1,"th",13),e.qZA(),e.TgZ(22,"tr")(23,"th",14),e._uU(24,"Product"),e.qZA(),e.TgZ(25,"th",15),e._uU(26,"Variant"),e.qZA(),e.TgZ(27,"th",16),e._uU(28,"SKU"),e.qZA(),e.TgZ(29,"th",17)(30,"input",18),e.NdJ("ngModelChange",function(l){return i.checkboxState=l})("ngModelChange",function(){return i.onCheckboxStateChange()}),e.qZA()(),e.YNc(31,j,5,0,"ng-container",19),e.qZA()(),e.YNc(32,le,2,1,"tbody",19),e.qZA()()()()(),e.TgZ(33,"div",20)(34,"div",21)(35,"div",22)(36,"div",23)(37,"h5",24),e._uU(38,"Update Price from POS to Channel"),e.qZA(),e.TgZ(39,"button",25)(40,"span",26),e._uU(41,"\xd7"),e.qZA()()(),e.TgZ(42,"div",27)(43,"div")(44,"h6",28),e._uU(45),e._UZ(46,"br")(47,"br"),e._uU(48," Choose channels to update : "),e._UZ(49,"br")(50,"br"),e.qZA(),e.TgZ(51,"ul",29),e.YNc(52,re,5,2,"li",19),e.qZA()()(),e.TgZ(53,"div",30)(54,"button",31),e._uU(55,"Close"),e.qZA(),e.TgZ(56,"button",32),e.NdJ("click",function(){return i.UpdatePrice()}),e._uU(57,"Update"),e.qZA()()()()()()()),2&t&&(e.Q6J("headerTitle","Price Comparison")("pageData",i.pageData)("hideSearchBox",!1)("hideSearchDropdown",!1)("textButton","Search"),e.xp6(6),e.Q6J("model",i.filterModel)("options",i.Options)("border",!1),e.xp6(3),e.Q6J("hidden",!i.hasSelection()),e.xp6(12),e.Q6J("ngForOf",i.Channel),e.xp6(8),e.Q6J("hidden",null==i.filter?null:i.filter.HiddenIPOSInventory),e.xp6(1),e.Q6J("ngModel",i.checkboxState),e.xp6(1),e.Q6J("ngForOf",i.Channel),e.xp6(1),e.Q6J("ngForOf",i.data),e.xp6(13),e.hij("Updating ",i.getSelected().length," items "),e.xp6(7),e.Q6J("ngForOf",i.Channel))},dependencies:[s.mk,s.sg,s.O5,p.Wl,p.JJ,p.On,h.p,y,A.oG,s.JJ],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-20[_ngcontent-%COMP%]{width:20%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{font-weight:400;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}"]}),n})();var se=c(7945),pe=c(6082),U=c(455),M=c(266);function _e(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2).ngIf,l=e.oxw();return e.KtG(l.openScanDialog(o))}),e._UZ(1,"i",9),e._uU(2," Scan Channel "),e.qZA()}}function de(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"button",10),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().ngIf,l=e.oxw(2);return e.KtG(l.updateStock(o))}),e._UZ(1,"i",11),e._uU(2," Update "),e.qZA()}}function he(n,a){if(1&n&&(e.TgZ(0,"actions")(1,"div",5)(2,"div"),e.YNc(3,_e,3,0,"button",6),e.YNc(4,de,3,0,"button",7),e.qZA()(),e._UZ(5,"div")(6,"div"),e.qZA()),2&n){const t=a.ngIf,i=e.oxw(2);e.xp6(3),e.Q6J("ngIf",!i.productService.hasSelectionVariant(t)),e.xp6(1),e.Q6J("ngIf",i.productService.hasSelectionVariant(t))}}function ge(n,a){if(1&n&&(e.TgZ(0,"ng-option",32),e._UZ(1,"img",33),e._uU(2),e.qZA()),2&n){const t=a.$implicit;e.Q6J("value",t.ID),e.xp6(1),e.s9C("src",t.Img,e.LSH),e.xp6(1),e.hij("",t.Name," ")}}function ue(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"input",51),e.NdJ("ngModelChange",function(o){e.CHM(t);const l=e.oxw(3).$implicit;return e.KtG(l.selected=o)})("ngModelChange",function(){e.CHM(t);const o=e.oxw(3).$implicit,l=e.oxw(3);return e.KtG(l.onCheckboxStateProduct(o))}),e.qZA()}if(2&n){const t=e.oxw(3).$implicit;e.Q6J("ngModel",t.selected)}}function me(n,a){if(1&n&&e._UZ(0,"img",52),2&n){const t=e.oxw(3).$implicit;e.s9C("src",t.ThumbnailUrl,e.LSH)}}function fe(n,a){1&n&&e._UZ(0,"img",53)}function Ce(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"td",44)(2,"div",45),e.YNc(3,ue,1,1,"input",46),e.YNc(4,me,1,1,"img",47),e.YNc(5,fe,1,0,"ng-template",null,48,e.W1O),e.qZA()(),e.TgZ(7,"td",49)(8,"span",50),e._uU(9),e.qZA(),e._UZ(10,"br"),e.TgZ(11,"small"),e._uU(12),e.qZA()(),e.BQk()),2&n){const t=e.MAs(6),i=e.oxw().$implicit,o=e.oxw().$implicit;e.xp6(1),e.Q6J("rowSpan",o.Variants.length),e.xp6(2),e.Q6J("ngIf",i.Inventory>=0||o.Variants.length>1),e.xp6(1),e.Q6J("ngIf",o.ThumbnailUrl)("ngIfElse",t),e.xp6(3),e.Q6J("rowSpan",o.Variants.length),e.xp6(2),e.Oqu(o.Name),e.xp6(3),e.hij("(",o.Category,")")}}function xe(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"input",54),e.NdJ("ngModelChange",function(o){e.CHM(t);const l=e.oxw().$implicit;return e.KtG(l.selected=o)}),e.qZA()}if(2&n){const t=e.oxw().$implicit;e.Q6J("ngModel",t.selected)}}function be(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"div",55)(1,"div",56),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit,l=e.oxw().$implicit,r=e.oxw(2).ngIf,_=e.oxw();return e.KtG(_.openTableDialog(o,l,r))}),e._uU(2),e.ALo(3,"number"),e.qZA()()}if(2&n){const t=e.oxw().$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t.Channel[0]?null:t.Channel[0].Price)," ")}}const Pe=function(n){return{"bg-err":n}};function Ze(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"tr"),e.YNc(1,Ce,13,7,"ng-container",4),e.TgZ(2,"td",19),e._uU(3),e.qZA(),e.TgZ(4,"td",22),e._uU(5),e.qZA(),e.TgZ(6,"td",34),e.YNc(7,xe,1,1,"input",35),e.qZA(),e.TgZ(8,"td",22),e._uU(9),e.ALo(10,"number"),e.qZA(),e.TgZ(11,"td",36),e.YNc(12,be,4,3,"div",37),e.qZA(),e.TgZ(13,"td")(14,"div",38)(15,"div",39)(16,"a",40),e._UZ(17,"i",41),e.qZA(),e._uU(18," \xa0\xa0 "),e.TgZ(19,"span",42),e.NdJ("click",function(){const l=e.CHM(t).$implicit,r=e.oxw(4);return e.KtG(r.refreshPrice(l))}),e._UZ(20,"i",43),e.qZA()()()()()}if(2&n){const t=a.$implicit,i=a.index;e.xp6(1),e.Q6J("ngIf",0==i),e.xp6(2),e.Oqu(t.Model),e.xp6(2),e.hij(" ",t.Code," "),e.xp6(2),e.Q6J("ngIf",t.Inventory>=0),e.xp6(2),e.hij(" ",e.lcZ(10,8,t.UnitPrice)," "),e.xp6(2),e.Q6J("ngClass",e.VKq(10,Pe,t.UnitPrice!=(null==t.Channel[0]?null:t.Channel[0].Price))),e.xp6(1),e.Q6J("ngIf",t.Channel.length>0),e.xp6(4),e.Q6J("href",null==t.Channel[0]?null:t.Channel[0].Url,e.LSH)}}function Te(n,a){if(1&n&&(e.ynx(0),e.YNc(1,Ze,21,12,"tr",26),e.BQk()),2&n){const t=a.$implicit;e.xp6(1),e.Q6J("ngForOf",t.Variants)}}function Se(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",57),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.getRowCount())}),e.TgZ(1,"i",58),e._uU(2,"?"),e.qZA()()}}function Ie(n,a){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=a.ngIf;e.xp6(1),e.Oqu(e.lcZ(2,1,t.Total))}}function ve(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"a",62),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.onNextPage())}),e._UZ(1,"i",63),e._uU(2," Next"),e.qZA()}}function ye(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"a",64),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.onLastPage())}),e._UZ(1,"i",65),e._uU(2," Last"),e.qZA()}}function we(n,a){if(1&n&&(e.TgZ(0,"div",59),e.YNc(1,ve,3,0,"a",60),e.YNc(2,ye,3,0,"a",61),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.paginationService.disableNextButton&&!t.paginationService.goToLastPage),e.xp6(1),e.Q6J("ngIf",t.paginationService.disableNextButton&&!t.paginationService.goToLastPage)}}function Ae(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"content")(1,"div",12)(2,"div",13)(3,"table",14)(4,"thead",15)(5,"tr")(6,"th",16),e._uU(7," Product "),e.TgZ(8,"div")(9,"mat-slide-toggle",17),e.NdJ("ngModelChange",function(o){e.CHM(t);const l=e.oxw(2);return e.KtG(l.toggleDifferentInventory=o)})("toggleChange",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onToggleDifferentInventory())}),e.TgZ(10,"small",18),e._uU(11,"Filter Different Price"),e.qZA()()()(),e.TgZ(12,"th",19),e._uU(13,"Variant"),e.qZA(),e.TgZ(14,"th",20),e._uU(15,"SKU"),e.qZA(),e.TgZ(16,"th")(17,"input",21),e.NdJ("change",function(o){const r=e.CHM(t).ngIf,_=e.oxw(2);return e.KtG(_.onSelectAllSKU(o.target.checked,r))}),e.qZA()(),e.TgZ(18,"th",22),e._uU(19,"POS"),e.qZA(),e.TgZ(20,"th")(21,"ng-select",23),e.NdJ("ngModelChange",function(o){e.CHM(t);const l=e.oxw().ngIf;return e.KtG(l.Filter.ChannelID=o)})("change",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.search())}),e.YNc(22,ge,3,3,"ng-option",24),e.qZA()(),e._UZ(23,"th",25),e.qZA()(),e.TgZ(24,"tbody"),e.YNc(25,Te,2,1,"ng-container",26),e.qZA()(),e.TgZ(26,"div",27)(27,"div",28)(28,"div",29),e._uU(29),e.ALo(30,"number"),e.YNc(31,Se,3,0,"span",30),e.YNc(32,Ie,3,3,"span",4),e.ALo(33,"async"),e._uU(34),e.qZA()(),e.YNc(35,we,3,2,"div",31),e.qZA()()()()}if(2&n){const t=a.ngIf,i=e.oxw().ngIf,o=e.oxw();e.xp6(9),e.Q6J("ngModel",o.toggleDifferentInventory),e.xp6(12),e.Q6J("clearable",!1)("ngModel",i.Filter.ChannelID),e.xp6(1),e.Q6J("ngForOf",i.Options.Channel),e.xp6(3),e.Q6J("ngForOf",t),e.xp6(4),e.hij(" Showing 1 - ",e.lcZ(30,10,null==t?null:t.length)," of "),e.xp6(2),e.Q6J("ngIf",o.paginationService.hideCount),e.xp6(1),e.Q6J("ngIf",e.lcZ(33,12,!o.paginationService.hideCount&&o.allDataCount$)),e.xp6(2),e.hij(" records ~ ",o.paginationService.footerPageNumber," Page "),e.xp6(1),e.Q6J("ngIf",t.length>0)}}function Ue(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"mainpanel",1),e.NdJ("textChange",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.searchFilter.text=o)})("onSubmit",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.search())}),e.TgZ(1,"filters")(2,"div",2)(3,"div")(4,"label"),e._uU(5,"Page Size"),e.qZA(),e.TgZ(6,"input",3),e.NdJ("ngModelChange",function(o){const r=e.CHM(t).ngIf;return e.KtG(r.Filter.RowCount=o)}),e.qZA()()()(),e.YNc(7,he,7,2,"actions",4),e.ALo(8,"async"),e.YNc(9,Ae,36,14,"content",4),e.ALo(10,"async"),e.qZA()}if(2&n){const t=a.ngIf,i=e.oxw();e.Q6J("headerTitle",i.pageTitle)("text",i.searchFilter.text),e.xp6(6),e.Q6J("ngModel",t.Filter.RowCount),e.xp6(1),e.Q6J("ngIf",e.lcZ(8,5,i.paginationService.data$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(10,7,i.paginationService.data$))}}let Me=(()=>{class n{constructor(t,i,o,l,r){this.http=t,this.paginationService=i,this.toastr=o,this.dialog=l,this.productService=r,this.pageTitle="Price Single Channel Comparison",this.toggleDifferentInventory=!1,this.loaderEndpoint="PriceLoader/Load",this.dataEndpoint="Price/GetSingleChannelComparison",this.allDataCountEndpoint="Inventory/GetInventoryByChannelRowCount"}ngOnInit(){this.paginationService.fetchDataEndpoint=this.dataEndpoint,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`).pipe((0,I.b)(t=>{this.searchFilter=t.Filter,this.searchFilter.filterModel=1,this.paginationService.resetToFirstPage(this.searchFilter)}))}onToggleDifferentInventory(){this.searchFilter.filterModel=this.toggleDifferentInventory?1:3,this.search()}onCheckboxStateProduct(t){t.Variants=t.Variants.map(i=>(i.selected=t.selected,i))}openScanDialog(t){this.dialog.open(T.j,{data:{filter:this.searchFilter,Channel:t.Options.Channel},width:"30%"}).afterClosed().pipe((0,d.h)(i=>i)).subscribe(i=>{this.refreshChannel(t)})}refreshChannel(t){const i=this.productService.findChannelById(this.searchFilter.ChannelID,t.Options.Channel);this.http.post("/api/product/ScanOptimized",{ID:this.searchFilter.ChannelID,ScanFull:this.searchFilter.ScanFull}).subscribe(()=>{this.search(),this.toastr.success(`Successfully scanned from ${i?.Name}`,"Success")})}updateStock(t){let o=this.productService.selectedVariantProduct(t).map(r=>({ID:r.ID,ChannelID:r.Channel[0].ChannelID,Code:r.Code,Price:r.UnitPrice})),l={ListChannelID:[this.searchFilter.ChannelID],ListPrice:o};this.http.post("/api/Price/UpdateChannel",l).subscribe(()=>{this.search(),this.toastr.success(`Successfully updated ${l.ListPrice.length} variants in ${l.ListChannelID.length} channels`,"Success")})}refreshPrice(t){this.http.post("/api/Price/RefreshPriceChannel",{ChannelItemID:t?.Channel[0].ChannelItemID,ChannelVariationID:t?.Channel[0]?.ChannelVariationID,ChannelID:t?.Channel[0]?.ChannelID,VariantID:t.ID}).subscribe(o=>{this.toastr.success("Successfully updated","Success"),this.search()})}search(){this.paginationService.resetToFirstPage(this.searchFilter)}getRowCount(){this.paginationService.hideCount=!1,this.allDataCount$=this.http.post(`/API/${this.allDataCountEndpoint}`,this.searchFilter)}onNextPage(){this.paginationService.onNextPage(this.searchFilter)}onLastPage(){this.http.post(`/API/${this.allDataCountEndpoint}`,this.searchFilter).subscribe({next:t=>{this.paginationService.getAllData(this.searchFilter,t.Total)}})}openTableDialog(t,i,o){this.dialog.open(se.k,{data:{Name:i.Name,Variant:t,ChannelID:t?.Channel[0]?.ChannelID,Table:"price",ChannelItemID:t?.Channel[0]?.ChannelItemID}}).afterClosed().pipe((0,d.h)(r=>r)).subscribe(r=>{this.updateItemAfterDialog(r,o)})}updateItemAfterDialog(t,i){const o=this.productService.findChannelById(this.searchFilter.ChannelID,i.Options.Channel);let l={ID:t.ChannelID,ChannelItemID:t.ChannelItemID,ChannelVariantID:t.ChannelVariationID,Price:parseFloat(t.Price),VariantID:t.ID,SKU:t.Sku};this.http.post("/api/Price/UpdatePriceByID",l).subscribe(r=>{this.toastr.success(`Successfully updated ${t.ItemName} (${t.VarName}) inventory in ${o.Name} to ${l.Price}`,"Success")})}onSelectAllSKU(t,i){i=i.map(o=>(o.Variants=o.Variants.map(l=>(l.selected=t,l)),o))}ngOnDestroy(){this.paginationService.destroy()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(m.O),e.Y36(v.b),e.Y36(f._W),e.Y36(C.uw),e.Y36(pe.M))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-price-single-channel"]],decls:2,vars:3,consts:[[3,"headerTitle","text","textChange","onSubmit",4,"ngIf"],[3,"headerTitle","text","textChange","onSubmit"],["container",""],["type","number",3,"ngModel","ngModelChange"],[4,"ngIf"],[1,"d-flex"],["type","button","data-cy","scanInPos","class","btn btn-outline-secondary shadow rounded me-3",3,"click",4,"ngIf"],["class","btn btn-success",3,"click",4,"ngIf"],["type","button","data-cy","scanInPos",1,"btn","btn-outline-secondary","shadow","rounded","me-3",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],[1,"btn","btn-success",3,"click"],[1,"fas","fa-chevron-circle-up"],[1,"container-fluid","mt-5"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["colspan","2",1,"text-center","ps-12",2,"width","36%"],["name","differentInventory",3,"ngModel","ngModelChange","toggleChange"],[1,"fw-bold"],[1,"text-start"],[1,"text-end",2,"width","20%"],["type","checkbox",1,"me-3",3,"change"],[1,"text-end"],["name","channelOption",3,"clearable","ngModel","ngModelChange","change"],[3,"value",4,"ngFor","ngForOf"],[2,"width","4%"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],["style","cursor:pointer",3,"click",4,"ngIf"],["class","btn-group",4,"ngIf"],[3,"value"],[2,"width","18px","margin-right","10px",3,"src"],[1,"align-middle"],["type","checkbox",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-end",3,"ngClass"],["class","row justify-content-end me-0",4,"ngIf"],[1,"row"],[1,"col-12","ps-0","d-flex","justify-content-between"],["target","_blank",2,"color","#333333",3,"href"],[1,"fas","custom-size","fa-lg","fa-external-link-alt"],["matTooltip","Refresh Unit Price according to seller center",1,"pl-5","cursor-pointer",3,"click"],[1,"fas","custom-size","fa-sync","fa-lg"],[1,"text-start",2,"width","0%",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-start"],["type","checkbox","class","me-3",3,"ngModel","ngModelChange",4,"ngIf"],["class","border rounded w-img","style","margin-left: 20px",3,"src",4,"ngIf","ngIfElse"],["elsePic",""],[1,"text-start",3,"rowSpan"],[1,"item-name","mb-0"],["type","checkbox",1,"me-3",3,"ngModel","ngModelChange"],[1,"border","rounded","w-img",2,"margin-left","20px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img",2,"margin-left","20px"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"row","justify-content-end","me-0"],[1,"col-8","ps-0","pe-12","text-end",2,"cursor","pointer",3,"click"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],[1,"btn-group"],["role","button","class","btn btn-outline-secondary btn-sm text-primary","title","Load more for 20 products",3,"click",4,"ngIf"],["role","button","class","btn btn-outline-secondary btn-sm text-primary","title","Load all products",3,"click",4,"ngIf"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-share"]],template:function(t,i){1&t&&(e.YNc(0,Ue,11,9,"mainpanel",0),e.ALo(1,"async")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,i.loader$))},dependencies:[s.mk,s.sg,s.O5,p.Fj,p.wV,p.Wl,p.JJ,p.On,h.p,u.w9,u.jq,U.Rr,M.gM,s.Ov,s.JJ],styles:[".w-img[_ngcontent-%COMP%]{width:40px;height:40px}input[type=checkbox][_ngcontent-%COMP%]{width:15px;height:15px}i.fas.custom-size[_ngcontent-%COMP%]{font-size:13px}.item-name[_ngcontent-%COMP%]{font-size:larger}"]}),n})();var b=c(8063);const De=[{path:"",component:J,children:[{path:"",redirectTo:"SingleChannel",pathMatch:"full"},{path:"pos",component:B,canActivate:[b.a],data:{title:"Global Price Comparison"}},{path:"OutletPrice",component:ce,canActivate:[b.a],data:{title:"Outlet Price Comparison"}},{path:"SingleChannel",component:Me,canActivate:[b.a],data:{title:"Price Single Channel Comparison"}}]}];let Fe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[s.ez,g.Bz.forChild(De)]}),n})(),Je=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[s.ez,p.u5,Z.Z,h.R,g.Bz,u.A0,Fe,p.UX,U.rP,k,A.p9,w.U,M.AV]}),n})()}}]);
|
package/Marketplace/index.html
CHANGED
|
@@ -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-white:#ffffff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--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",
|
|
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:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--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}}@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.1/Marketplace/styles.296cdf56f9059ddb.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.1/Marketplace/styles.296cdf56f9059ddb.css"></noscript></head>
|
|
18
18
|
<body>
|
|
19
19
|
<app-root></app-root>
|
|
20
|
-
<script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.
|
|
20
|
+
<script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.1/Marketplace/runtime.d01f3ddbb2b8f1f2.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.1/Marketplace/polyfills.8d85b0533e3f867a.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.1/Marketplace/scripts.6c7ffbfab0ec93ff.js" defer></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.4.1/Marketplace/main.f30bf3b0f501021c.js" type="module"></script>
|
|
21
21
|
|
|
22
22
|
</body></html>
|