marketplacepos 3.22.0 → 3.22.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/3rdpartylicenses.txt +224 -13
- package/Marketplace/chunk-2UKRBTWA.js +1 -0
- package/Marketplace/chunk-33CGFKGR.js +1494 -0
- package/Marketplace/{chunk-UX3GY5M2.js → chunk-3QG5QJ5P.js} +1 -1
- package/Marketplace/{chunk-LIPM3QTO.js → chunk-44YUSAMN.js} +1 -1
- package/Marketplace/chunk-46AOM3SM.js +149 -0
- package/Marketplace/chunk-4E6A74GC.js +1 -0
- package/Marketplace/chunk-4H2AACHZ.js +5 -0
- package/Marketplace/chunk-4LFFAE2I.js +1 -0
- package/Marketplace/chunk-4SAJUEHO.js +1 -0
- package/Marketplace/chunk-4W3VEO3E.js +1 -0
- package/Marketplace/chunk-5BHAOLXD.js +2 -0
- package/Marketplace/chunk-5EC2PEVE.js +1 -0
- package/Marketplace/{chunk-GCHJ4FTF.js → chunk-5JOW2QWK.js} +1 -1
- package/Marketplace/chunk-5TYZYJGF.js +8 -0
- package/Marketplace/chunk-5W6WPVQG.js +1 -0
- package/Marketplace/chunk-6L2IXOY3.js +1 -0
- package/Marketplace/chunk-6MEL53S4.js +1 -0
- package/Marketplace/chunk-6SF7AUOH.js +1 -0
- package/Marketplace/{chunk-45PCYYJD.js → chunk-6YZFSP2B.js} +1 -1
- package/Marketplace/chunk-A35Y7HOJ.js +1 -0
- package/Marketplace/chunk-ADRVUMMW.js +1 -0
- package/Marketplace/chunk-B2TH5YJH.js +1142 -0
- package/Marketplace/chunk-BO4PPSB5.js +2 -0
- package/Marketplace/chunk-BQ7NR3ET.js +1 -0
- package/Marketplace/chunk-BSN7ZAXG.js +1 -0
- package/Marketplace/chunk-CCXKODFV.js +2 -0
- package/Marketplace/{chunk-AGKVS3IQ.js → chunk-CODNZKCM.js} +1 -1
- package/Marketplace/chunk-DR4IU4JY.js +1 -0
- package/Marketplace/chunk-E5GGIVK7.js +1 -0
- package/Marketplace/chunk-EBYNFVMV.js +5 -0
- package/Marketplace/{chunk-QFU3JTYR.js → chunk-EW5A6GIY.js} +1 -1
- package/Marketplace/{chunk-PCKZD4LZ.js → chunk-FGPSBTFS.js} +1 -1
- package/Marketplace/{chunk-UOT5GPQI.js → chunk-FMV4LYKN.js} +1 -1
- package/Marketplace/chunk-FYZFHN47.js +1 -0
- package/Marketplace/{chunk-OUJF6YWV.js → chunk-GCKSYCMI.js} +5 -11
- package/Marketplace/{chunk-C2SGQUOH.js → chunk-HCDKYABV.js} +1 -1
- package/Marketplace/chunk-HHK72C4S.js +1 -0
- package/Marketplace/{chunk-7NE7ZI6R.js → chunk-HK66WK22.js} +3 -3
- package/Marketplace/chunk-HUUFOAKH.js +1 -0
- package/Marketplace/chunk-HX2SDZHX.js +1 -0
- package/Marketplace/chunk-HXJF7C6Q.js +1 -0
- package/Marketplace/chunk-IH22G3XP.js +1 -0
- package/Marketplace/chunk-IJYSJN63.js +443 -0
- package/Marketplace/chunk-ILVEM7H5.js +1 -0
- package/Marketplace/chunk-J5D7PMX5.js +2 -0
- package/Marketplace/chunk-JP44SOP7.js +13 -0
- package/Marketplace/chunk-JQ2K6T44.js +1 -0
- package/Marketplace/chunk-JXTGH22T.js +1 -0
- package/Marketplace/chunk-LRU7GIXZ.js +1 -0
- package/Marketplace/chunk-MXMA4SED.js +1 -0
- package/Marketplace/{chunk-ZRW4OZGG.js → chunk-MY4B7K3R.js} +1 -1
- package/Marketplace/{chunk-GDA72XOJ.js → chunk-N6IHFFFZ.js} +1 -1
- package/Marketplace/chunk-NONK6EKG.js +1 -0
- package/Marketplace/{chunk-4NXO2JYR.js → chunk-NYDPS33K.js} +1 -1
- package/Marketplace/chunk-O7DZGYE7.js +1 -0
- package/Marketplace/chunk-OHADF44Q.js +1 -0
- package/Marketplace/chunk-OKR5PVTL.js +1 -0
- package/Marketplace/chunk-OOK5GT4H.js +1 -0
- package/Marketplace/chunk-OSSJKXND.js +1 -0
- package/Marketplace/chunk-OULUJ2IO.js +189 -0
- package/Marketplace/chunk-OVEJFFL6.js +2 -0
- package/Marketplace/chunk-PD4CUVAW.js +1 -0
- package/Marketplace/chunk-PQDPS2ID.js +7 -0
- package/Marketplace/chunk-QP6O4KGV.js +1 -0
- package/Marketplace/chunk-QRYPBXV2.js +1 -0
- package/Marketplace/chunk-RDHVV7FZ.js +1 -0
- package/Marketplace/{chunk-EYZIWEGE.js → chunk-RENQ3YZH.js} +1 -1
- package/Marketplace/chunk-RI7RZYID.js +1 -0
- package/Marketplace/chunk-RO4DEKKD.js +1 -0
- package/Marketplace/chunk-RVV4RI3V.js +1 -0
- package/Marketplace/chunk-SDII7XXL.js +1 -0
- package/Marketplace/chunk-SE55BPZD.js +1 -0
- package/Marketplace/chunk-SQDFIZMW.js +1 -0
- package/Marketplace/chunk-T32TE7CZ.js +1 -0
- package/Marketplace/chunk-TKQTS6W7.js +1 -0
- package/Marketplace/chunk-TPGBOTD4.js +1 -0
- package/Marketplace/chunk-UMNGKENU.js +1 -0
- package/Marketplace/chunk-UN2U4YFQ.js +1 -0
- package/Marketplace/chunk-WT6W7RAQ.js +1 -0
- package/Marketplace/chunk-WTR5UFZI.js +5 -0
- package/Marketplace/chunk-X5Q6FPWS.js +315 -0
- package/Marketplace/chunk-XB345KSK.js +2 -0
- package/Marketplace/{chunk-J7V5HHYR.js → chunk-Y2T3CEPZ.js} +1 -1
- package/Marketplace/chunk-YC44HHHF.js +2 -0
- package/Marketplace/chunk-YGCOL7HH.js +1 -0
- package/Marketplace/chunk-YIB7FZAQ.js +7 -0
- package/Marketplace/chunk-YOCYRT76.js +8 -0
- package/Marketplace/chunk-YTF4RN6U.js +1 -0
- package/Marketplace/chunk-Z6PE5TYH.js +1 -0
- package/Marketplace/chunk-Z7GKHFMV.js +1 -0
- package/Marketplace/{chunk-XSYSCEVJ.js → chunk-ZRPSM5PK.js} +1 -1
- package/Marketplace/index.html +4 -4
- package/Marketplace/main-VBS2IBYS.js +1 -0
- package/Marketplace/styles-BTL6DIRV.css +1 -0
- package/package.json +1 -1
- package/Marketplace/chunk-2KEQ33LI.js +0 -1
- package/Marketplace/chunk-2LJXM62F.js +0 -1
- package/Marketplace/chunk-47XYXHGL.js +0 -1
- package/Marketplace/chunk-4AUJZEST.js +0 -1
- package/Marketplace/chunk-5SIWWKAE.js +0 -1
- package/Marketplace/chunk-5SOVI5O5.js +0 -1
- package/Marketplace/chunk-633RG6PO.js +0 -15
- package/Marketplace/chunk-732MTT44.js +0 -1
- package/Marketplace/chunk-76JMXELT.js +0 -1
- package/Marketplace/chunk-7FSQ3UC2.js +0 -1
- package/Marketplace/chunk-7IIB5DLC.js +0 -2
- package/Marketplace/chunk-7N5WLZWW.js +0 -1
- package/Marketplace/chunk-AUBPDK26.js +0 -1
- package/Marketplace/chunk-BR6MS275.js +0 -1
- package/Marketplace/chunk-DAYV52M7.js +0 -9
- package/Marketplace/chunk-DSKMV7XY.js +0 -3
- package/Marketplace/chunk-EE7O2AZI.js +0 -1
- package/Marketplace/chunk-EJSGWKV7.js +0 -1
- package/Marketplace/chunk-ENIJ4MFV.js +0 -1
- package/Marketplace/chunk-EQIBEDOW.js +0 -1
- package/Marketplace/chunk-EXBAGUW2.js +0 -1
- package/Marketplace/chunk-F57GDDSE.js +0 -14
- package/Marketplace/chunk-FSOI4J4S.js +0 -1
- package/Marketplace/chunk-HDDGFXNT.js +0 -1
- package/Marketplace/chunk-HPD77AAI.js +0 -1
- package/Marketplace/chunk-IPSL7J32.js +0 -1
- package/Marketplace/chunk-IX4CXSQC.js +0 -1
- package/Marketplace/chunk-J5DBLKIA.js +0 -1
- package/Marketplace/chunk-JCKUKK6T.js +0 -1
- package/Marketplace/chunk-JXNW3RX5.js +0 -1
- package/Marketplace/chunk-KJ4SL5OX.js +0 -1
- package/Marketplace/chunk-KTXT25SP.js +0 -1
- package/Marketplace/chunk-KZ2VDCDO.js +0 -1
- package/Marketplace/chunk-L3JD55OC.js +0 -1
- package/Marketplace/chunk-LLLHVCIO.js +0 -1
- package/Marketplace/chunk-LQWFYVLD.js +0 -2
- package/Marketplace/chunk-LZVUS3GC.js +0 -3
- package/Marketplace/chunk-M4XSRDMC.js +0 -9
- package/Marketplace/chunk-MJH2IWI2.js +0 -1
- package/Marketplace/chunk-MTS7QNYE.js +0 -2
- package/Marketplace/chunk-NBSXPQ4I.js +0 -1
- package/Marketplace/chunk-NFEAHFS5.js +0 -1
- package/Marketplace/chunk-NLZCSTVO.js +0 -5
- package/Marketplace/chunk-NSXCPHWT.js +0 -52
- package/Marketplace/chunk-O4N2CCVN.js +0 -1
- package/Marketplace/chunk-OE7XFNYO.js +0 -1
- package/Marketplace/chunk-OI3SQ5ZO.js +0 -2
- package/Marketplace/chunk-OSRAARQQ.js +0 -1
- package/Marketplace/chunk-OZ7VTHZ5.js +0 -1
- package/Marketplace/chunk-P5VJV3CP.js +0 -2
- package/Marketplace/chunk-QBQUD3A5.js +0 -1
- package/Marketplace/chunk-QNL3BTRG.js +0 -8
- package/Marketplace/chunk-QNQ5QCZX.js +0 -1
- package/Marketplace/chunk-RQCGB4NH.js +0 -9
- package/Marketplace/chunk-RVEC755T.js +0 -1
- package/Marketplace/chunk-S66L7N22.js +0 -1
- package/Marketplace/chunk-SCVHFMF7.js +0 -1
- package/Marketplace/chunk-SF4KIL5M.js +0 -5
- package/Marketplace/chunk-TU4R4DL3.js +0 -1
- package/Marketplace/chunk-UAXJ7MHW.js +0 -1
- package/Marketplace/chunk-UEB6GFG5.js +0 -1
- package/Marketplace/chunk-UNLG5KU7.js +0 -1
- package/Marketplace/chunk-WYZ5MSYA.js +0 -1
- package/Marketplace/chunk-XNRK463Z.js +0 -1
- package/Marketplace/chunk-YUBBVFFI.js +0 -1
- package/Marketplace/chunk-ZGYDC5UC.js +0 -1
- package/Marketplace/chunk-ZSZQPMV2.js +0 -1
- package/Marketplace/main-HPUDU23P.js +0 -1
- package/Marketplace/media/color-3LUHUBGQ.png +0 -0
- package/Marketplace/media/hue-RMMBQOAC.png +0 -0
- package/Marketplace/styles-RZHRYK3K.css +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{b as S,e as g}from"./chunk-4SAJUEHO.js";import{c as o}from"./chunk-6SF7AUOH.js";import{J as h,ea as i,ja as f,oa as d,r as c}from"./chunk-PQDPS2ID.js";var y=(()=>{let l=class l{constructor(e,t){this.httpService=e,this.toastrService=t}loader(e=o.GuidEMpty){return this.httpService.post("/api/product/Load",{ID:e})}LoadInPOS(e=o.GuidEMpty){return this.httpService.post("/api/product/LoadInPOS",{ID:e})}filterChannelByTypeId(e,t){return e.filter(a=>t.findIndex(s=>a.TypeID==s)!==-1)}getProductStatistic(){return this.httpService.post("/api/product/ProductStatistic",{})}getTotalProductLive(e){let t={ID:e};return this.httpService.post("/api/product/TotalProductLive",t)}clearCacheChannel(e){let t={ID:e};return this.httpService.post("/api/Channel/ClearCacheChannel",t)}detachProduct(e){return this.httpService.post("/api/product/Detach",e)}uploadSingleProduct(e,t){let a={Channel:t,Products:e};return this.httpService.post("api/product/UploadMultipleChannel",a).pipe(i(s=>{this.showToastrSuccessUploadSingle(s,e[0])}),h(s=>(this.showToastErrorUploadSingle(s,e[0]),c(()=>new Error(s)))))}uploadMultipleProduct(e,t){let a={Channel:t,Products:e};return this.httpService.post("api/product/UploadMultipleProductAndMultipleChannel",a).pipe(i(s=>{this.showToastrUploadMultiple(s.Message)}),h(s=>(this.showToastrUploadMultiple(s.error?.Message),c(()=>new Error(s)))))}uploadNotInChannel(e,t){let a={Products:e,Channel:t};return this.httpService.post("/api/product/UploadProductNotInChannelToChannel",a).pipe(i(s=>{this.showToastrUploadMultiple(s)}),h(s=>(this.showToastrUploadMultiple(s.error?.Message),c(()=>new Error(s)))))}scanSingle(e,t){let a={ID:e,SKU:t};return this.httpService.post("/api/product/ScanSingle",a)}scanNotInChannel(e){let t={ID:e};return this.httpService.post("/api/product/ScanNotinChannel",t)}findAllSoldInChannel(e){return this.httpService.post("/api/product/GetSoldInChannel",e)}scanAll(e,t,a,s=!1){let n={ID:e,ScanFull:t,UpdatedProduct:a,Async:s};return this.httpService.post("/api/product/ScanOptimized",n)}scanCompareToPos(e){return this.httpService.post("/api/product/CompareMarketplaceToPOS",e)}getVariantCodesProduct(e){return e.Variants.map(a=>a.Code)}downloadMultipleProduct(e){let t=e.map(a=>({ChannelItemID:a.ChannelItemID,ChannelID:a.ChannelID}));return this.httpService.post("/api/product/DownloadMultipleProductFromChannel",t).pipe(i(a=>{this.toastrService.success(`${a.Count} products downloaded to POS`,"Download Complete")}))}downloadProduct(e){let t={ChannelItemID:e.ChannelItemID,ChannelID:e.ChannelID};return this.httpService.post("/api/product/DownloadProductFromChannel",t).pipe(i(()=>{this.toastrService.success("Product successfully downloaded to POS","Download Complete")}))}getVariantCodesProducts(e=[]){let t=[];return e.forEach(a=>{a.Variants.forEach(s=>{t=[...t,s.Code]})}),t}filterUnselectedChannel(e,t){let a=[];e.forEach(n=>{a=[...a,...n.Channel]});let s;if(!a||a.length==0)s=t;else{let n=[];s=t.filter(r=>(n=a.filter(p=>p.ChannelID==r.ID),n.length!==e.length))}return s}findChannelById(e,t){return t.find(a=>a.ID==e)}sortChannel(e=[]){return e.sort((t,a)=>t.TypeID<a.TypeID?1:t.TypeID===a.TypeID?0:-1)}hasSelection(e=[]){return this.selectedProduct(e).length>0}selectedProduct(e=[]){return e.filter(t=>t.selected)}hasSelectionVariant(e){return this.selectedVariantProduct(e).length>0}selectedVariantProduct(e){let t=[];return e.forEach(a=>{t=[...t,...a.Variants!=null?a.Variants.filter(s=>s.selected):""]}),t}getChannelProduct(e){let t=e.Variants,a=[];for(let s of t)if(s.Channel!=null)for(let n of s.Channel)a.filter(r=>r.ChannelID==n.ChannelID).length==0&&a.push(n);return this.sortChannel(a)}successToastrScanAllProduct(e,t,a){let s=e.InChannel?e?.InChannel?.Product:0,n=e?.NotInPOS?.Product?e?.NotInPOS?.Product:0,r=o.IsNotEmpty(e.LastUpdate)?o.convertToReadableDate(e.LastUpdate):null;a?this.toastrService.success(`
|
|
2
|
+
${n+s} product updates in ${t.Name} </br>
|
|
3
|
+
(${s} In Channel + ${n} Not In Pos)
|
|
4
|
+
${o.IsNotEmpty(r)?"since "+r:""}
|
|
5
|
+
`,"Scan Complete!",{enableHtml:!0,timeOut:1e4}):this.toastrService.success(`${s} product updates in ${t.Name} </br>
|
|
6
|
+
(${s} In Channel + ${n} Not In Pos)
|
|
7
|
+
${o.IsNotEmpty(r)?"since "+r:""}`,"Scan Complete!",{enableHtml:!0,timeOut:1e4})}checkProductHasScanButton(e,t){let a;return e.map(s=>(s.Channel=this.getChannelProduct(s),a=this.filterUnselectedChannel([s],t),s.hasScan=a.length>0,s))}checkProductHasUploadBtn(e,t){let a;return e.map(s=>(s.Channel=this.getChannelProduct(s),a=this.filterUnselectedChannel([s],t),s.hasUpload=a.length>0,s))}showToastrUploadMultiple(e=[]){let t=[],a=[],s=this.getResponseList(e);if(e.forEach(n=>{typeof n?.Response=="string"?a=[...a,s.length>1?this.setHtmlli(n.Response):this.setHtmlli(n.Response,!1)]:(n?.Response?.Success.forEach(r=>{t=[...t,s.length>1?this.setHtmlli(`Product ${r} was <b>successfully</b> uploaded to ${n.Name}`):this.setHtmlli(`Product ${r} was <b>successfully</b> uploaded to ${n.Name}`,!1)]}),n?.Response.Fail.forEach(r=>{a=[...a,s.length>1?this.setHtmlli(r):this.setHtmlli(r,!1)]}))}),a.length>0&&t.length>0){let n=[...t,...a];this.toastrService.warning(this.concatMessage(n),"Warning!",{enableHtml:!0})}else t.length>0&&a.length==0?this.toastrService.success(this.concatMessage(t),"Success",{enableHtml:!0}):this.toastrService.error(this.concatMessage(a),"Error",{enableHtml:!0})}setHtmlli(e,t=!0){return t?`<li>${e}</li>`:e}getResponseList(e){let t=[];return e.forEach(a=>{typeof a?.Response=="string"?t=[...t,a.Response]:(a?.Response?.Success.forEach(s=>{t=[...t,a.Name]}),a?.Response.Fail.forEach(s=>{t=[...t,s]}))}),t}concatMessage(e=[]){let t="";return e.forEach(a=>{t+=a}),e.length>1?`<ol>${t}</ol>`:t}showToastrSuccessUploadSingle(e,t){let a=e.filter(r=>r.Status==!1),s=e.filter(r=>r.Status==!0),n=this.generateToastrMessage(a,s,t);this.toastrService.success(n.message,"Success",{enableHtml:!0})}showToastErrorUploadSingle(e,t){let a=e?.error?.Message.filter(r=>r.Status==!1),s=e?.error?.Message.filter(r=>r.Status==!0),n=this.generateToastrMessage(a,s,t);n.status=="WARNING"?this.toastrService.warning(n.message,"Warning!",{enableHtml:!0}):this.toastrService.error(n.message,`Error - ${e.status}`,{enableHtml:!0})}generateToastrMessage(e,t,a){let s="",n,r=[...e,...t];if(e.length==0&&t.length>0)n="SUCCESS",s=this.createSuccessResponse(t,a);else if(e.length>0&&t.length==0)n="ERROR",s=this.createErrResponse(e,a);else{n="WARNING";let p=this.createSuccessResponse(t,a),C=this.createErrResponse(e,a);s=`${p} ${C}`}return r.length>1&&(s=`<ol>${s}</ol>`),{status:n,message:s}}createErrResponse(e,t){let a="";return e.length>1?e.forEach((s,n)=>{a+=`<li>${s.Response}</li>`}):e.length==1&&(a+=`${e[0].Response}`),a}createSuccessResponse(e,t){let a="";return e.length>1?e.forEach((s,n)=>{a+=`<li>Product ${t.Name} was <b>successfully</b> uploaded to ${s.Name}</li>`}):e.length==1&&(a+=`Product ${t.Name} was <b>successfully</b> uploaded to ${e[0].Name}`),a}};l.\u0275fac=function(t){return new(t||l)(d(g),d(S))},l.\u0275prov=f({token:l,factory:l.\u0275fac,providedIn:"root"});let u=l;return u})();export{y as a};
|