!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common/http"),require("@sass-library/common-lib"),require("rxjs")):"function"==typeof define&&define.amd?define("@sass-library/product-lib",["exports","@angular/core","@angular/common/http","@sass-library/common-lib","rxjs"],e):e(((t=t||self)["sass-library"]=t["sass-library"]||{},t["sass-library"]["product-lib"]={}),t.ng.core,t.ng.common.http,t.commonLib,t.rxjs)}(this,(function(t,e,r,i,o){"use strict";
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation.

    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
    ***************************************************************************** */function n(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var c=function(){function t(t,r,i){this.httpClient=t,this.env=r,this.commonService=i,this.dataAndAttribute=new e.EventEmitter,this.searchProductAttribute=new e.EventEmitter,this.trigger_filter=new o.Subject,this.trigger_grid=new o.Subject,this.trigger_category=new o.Subject,this.trigger_search=new o.Subject,this.trigger_tagProductCount=new o.BehaviorSubject({}),this.recentProductTransmitter=new o.Subject,this.recentProduct=this.recentProductTransmitter.asObservable(),this.alsoLikeProductTransmitter=new o.Subject,this.dynamicTransmitter=new o.Subject}return t.prototype.getRecent=function(t){this.recentProductTransmitter.next(t)},t.prototype.setRecent=function(t){this.recentProductTransmitter.next(t)},t.prototype.getSub=function(){return this.recentProductTransmitter.asObservable()},t.prototype.getCategoryDataHold=function(){return{filterCommonMenu:this.catData,enableSelectedCategory:this.selectedCategoryEnable}},t.prototype.getSearchProductDataHold=function(){return{searchData:this.searchData}},t.prototype.setCategoryDataHold=function(t,e){this.catData=t,this.selectedCategoryEnable=e,this.dynamicTransmitter.next(this.catData),this.dataAndAttribute.emit({filterCommonMenu:this.catData,enableSelectedCategory:this.selectedCategoryEnable})},t.prototype.setSearchProductHold=function(t){this.searchData=t,this.trigger_search.next(t)},t.prototype.retrieveSingleCategory=function(t){var e=this.env.productServiceUrl+"getcategoryforlandingpage/"+t;return this.httpClient.get(e)},t.prototype.getCartBanner=function(){var t=this.env.contentServiceUrl+"getcartbannerforui";return this.httpClient.get(t)},t.prototype.createRazorPayInstance=function(t){var e=this.env.commerceOrderServiceUrl+"createrazorpayinstance";return this.httpClient.put(e,t)},t.prototype.retrieveSuperCategoryWithFilter=function(t){var e=this.env.productServiceUrl+"getsupercategoryandfilter/"+t;return this.httpClient.get(e)},t.prototype.retrieveMainCategoryWithFilter=function(t){var e=this.env.productServiceUrl+"getMaincategoryAndFilter/"+t;return this.httpClient.get(e)},t.prototype.retrieveSubCategoryWithFilter=function(t){var e=this.env.productServiceUrl+"getsubcategoryandfilter/"+t;return this.httpClient.get(e)},t.prototype.getNavbarCategory=function(){var t=this.env.productServiceUrl+"viewcategorywithattribute";return this.httpClient.get(t)},t.prototype.getAllSuperCategoryAttributeFilter=function(t){var e=this.env.productServiceUrl+"supattributeproduct";return this.httpClient.post(e,t)},t.prototype.getAllSuperCategoryFilter=function(t){var e=this.env.productServiceUrl+"supercatfilter";return this.httpClient.post(e,t)},t.prototype.getAllSubCategoryFilter=function(t){var e=this.env.productServiceUrl+"subcatfilter";return this.httpClient.post(e,t)},t.prototype.getAllMainCategoryFilter=function(t){var e=this.env.productServiceUrl+"maincatfilter";return this.httpClient.post(e,t)},t.prototype.getWishList=function(t){var e=this.env.productServiceUrl+"getwishlistmvp/"+t.userId;return this.httpClient.get(e)},t.prototype.addToWishList=function(t){var e=this.env.productServiceUrl+"wishlistmvp/"+t.userId;return this.httpClient.put(e,t)},t.prototype.getIncrementRate=function(){var t=this.env.productServiceUrl+"getincrementrate";return this.httpClient.get(t)},t.prototype.getAllSuperCategoryProduct=function(t,e){var r=this.env.productServiceUrl+"allsupercategory/"+t;return this.httpClient.put(r,e)},t.prototype.getAllMainCategoryProducts=function(t,e){var r=this.env.productServiceUrl+"allmaincategory/"+t;return this.httpClient.put(r,e)},t.prototype.getAllSubCategoryProducts=function(t,e){var r=this.env.productServiceUrl+"allsubcategory/"+t;return this.httpClient.put(r,e)},t.prototype.getAllProductByUrl=function(t,e){var i=(new r.HttpParams).set("catid",t.catid);null!=t.mainid&&(i=i.set("mainid",t.mainid)),null!=t.subid&&(i=i.set("subid",t.subid));var o=this.env.productServiceUrl+"retrieveallproductbyurl";return this.httpClient.post(o,e,{params:i})},t.prototype.getSearchProductSuperCategoryAttribute=function(t,e){var r=this.env.productServiceUrl+"filterforsearchproductsupercategoryattribute/"+e;return this.httpClient.put(r,t)},t.prototype.getSearchProductMainCategoryAttribute=function(t,e){var r=this.env.productServiceUrl+"filterforsearchproductmaincategoryattribute/"+e;return this.httpClient.put(r,t)},t.prototype.getSearchProductSubCategoryAttribute=function(t,e){var r=this.env.productServiceUrl+"filterforsearchproductsubcategoryattirbute/"+e;return this.httpClient.put(r,t)},t.prototype.getCategoryForProductSearch=function(t){var e=this.env.productServiceUrl+"getcategoryforproductsearch";return this.httpClient.post(e,t)},t.prototype.getSubCategorySearchProduct=function(t){var e=this.env.productServiceUrl+"gtesearchproductbysubcategoryattribute";return this.httpClient.post(e,t)},t.prototype.getMainCategorySearchProduct=function(t){var e=this.env.productServiceUrl+"gtesearchproductbymaincategoryattribute";return this.httpClient.post(e,t)},t.prototype.getSuperCategorySearchProduct=function(t){var e=this.env.productServiceUrl+"getsearchproductbysupercategoryattribute";return this.httpClient.post(e,t)},t.prototype.getAllCategoryForLandingPage=function(){var t=this.env.productServiceUrl+"getallcategoryforlandingpage";return this.httpClient.get(t)},t.prototype.searchProduct=function(t){var e=this.env.productServiceUrl+"searchproduct";return this.httpClient.post(e,t)},t.prototype.getNewArrivalCategory=function(){var t=this.env.productServiceUrl+"getcategoryfornewarrival";return this.httpClient.get(t)},t.prototype.getNewArrivalProductBySubCategory=function(t,e){var r=this.env.productServiceUrl+"getnewarrivalproductforsubcategroy/"+e;return this.httpClient.post(r,t)},t.prototype.getNewArrivalProductBySuperCategory=function(t,e){var r=this.env.productServiceUrl+"getnewarrivalproductforsupercategroy/"+e;return this.httpClient.post(r,t)},t.prototype.getNewArrivalProductByMainCategory=function(t,e){var r=this.env.productServiceUrl+"getnewarrivalproductformaincategroy/"+e;return this.httpClient.post(r,t)},t.prototype.getNewArrival=function(){var t=this.env.productServiceUrl+"getnewarrival";return this.httpClient.get(t)},t.prototype.getSelectedCategory=function(t){var e=this.env.productServiceUrl+"getsinglecategory/"+t;return this.httpClient.get(e)},t.prototype.getAllBodyHeight=function(){var t=this.env.productServiceUrl+"getallbodyheight";return this.httpClient.get(t)},t.prototype.getHowToMeasure=function(){var t=this.env.productServiceUrl+"gethowtomeasure";return this.httpClient.get(t)},t.prototype.getSizeGuideBySubCategoryWithVendor=function(t,e){var r=this.env.productServiceUrl+"getsizeguidebysubcategoryandvendor/"+t+"/"+e;return this.httpClient.get(r)},t.prototype.getSizeGuideByMainCategoryWithVendor=function(t,e){var r=this.env.productServiceUrl+"getsizeguidebymaincategoryandvendor/"+t+"/"+e;return this.httpClient.get(r)},t.prototype.getSizeGuideBySuperCategoryWithVendor=function(t,e){var r=this.env.productServiceUrl+"getsizeguidebysupercategoryandvendor/"+t+"/"+e;return this.httpClient.get(r)},t.prototype.getSizeGuideBySuperCategory=function(t){var e=this.env.productServiceUrl+"getsizeguidebysupercategory/"+t;return this.httpClient.get(e)},t.prototype.getSizeGuideByMainCategory=function(t){var e=this.env.productServiceUrl+"getsizeguidebymaincategory/"+t;return this.httpClient.get(e)},t.prototype.getSizeGuideBySubCategory=function(t){var e=this.env.productServiceUrl+"getsizeguidebysubcategory/"+t;return this.httpClient.get(e)},t.prototype.getBlouseMeasurementBySuperCategory=function(t){var e=this.env.productServiceUrl+"getselectedsupercategorymeasurement/"+t;return this.httpClient.get(e)},t.prototype.getKameezMeasurementBySuperCategory=function(t){var e=this.env.productServiceUrl+"getselectedsupercategorykameezmeasurement/"+t;return this.httpClient.get(e)},t.prototype.getLehengaMeasurementBySuperCategory=function(t){var e=this.env.productServiceUrl+"getlehengabycategory/"+t;return this.httpClient.get(e)},t.prototype.addToCart=function(t){var e=this.env.productServiceUrl+"addproducttocart";return this.httpClient.post(e,t)},t.prototype.shoppingUser=function(t){var e=this.env.productServiceUrl+"findcart/"+t;return this.httpClient.get(e)},t.prototype.getSingleProductReview=function(t){var e=this.env.productServiceUrl+"getselectedproductreview/"+t;return this.httpClient.get(e)},t.prototype.addRecentProductID=function(t){var e=this.env.productServiceUrl+"addrecentproduct";return this.httpClient.post(e,t)},t.prototype.getRecentProductID=function(t){var e=this.env.productServiceUrl+"getrecentproduct/"+t;return this.httpClient.get(e)},t.prototype.getRecentProductByLocalStorage=function(t){var e=this.env.productServiceUrl+"getproductforlocalrecent";return this.httpClient.post(e,t)},t.prototype.viewRecentProduct=function(t){var e=this.env.productServiceUrl+"getrecentproductbyuser/"+t;return this.httpClient.get(e)},t.prototype.getAlsoLike=function(t){var e=this.env.productServiceUrl+"getyoumayalsolike";return this.httpClient.post(e,t)},t.prototype.getCatNote=function(){var t=this.env.productServiceUrl+"getnote";return this.httpClient.get(t)},t.prototype.getSingleProductsWithBrand=function(t){var e=this.env.productServiceUrl+"singleproductwithbrand/"+t;return this.httpClient.get(e)},t.prototype.getSinglePublishedProducts=function(t){var e=this.env.productServiceUrl+"singlepublishedproduct/"+t;return this.httpClient.get(e)},t.prototype.addToCartDecrement=function(t){var e=this.env.productServiceUrl+"findcartproduct";return this.httpClient.post(e,t)},t.prototype.deleteToCart=function(t,e){var r=this.env.productServiceUrl+"deletecart/"+t+"/itemId/"+e;return this.httpClient.delete(r)},t.prototype.cartCount=function(t){var e=this.env.productServiceUrl+"findcartcount/"+t;return this.httpClient.get(e)},t.prototype.moveWishlist=function(t){var e=this.env.productServiceUrl+"movetowishlistmvp/"+t.userId;return this.httpClient.put(e,t)},t.prototype.getAllSizeWiseIncrement=function(){var t=this.env.productServiceUrl+"getallsizewiseincrement";return this.httpClient.get(t)},t.prototype.deleteAllCart=function(t){var e=this.env.productServiceUrl+"deletecart/"+t;return this.httpClient.delete(e)},t.prototype.updateQtyByShipping=function(t){var e=this.env.productServiceUrl+"updateinventorybyshipping";return this.httpClient.post(e,t)},t.prototype.unpublishWithoutQty=function(t){var e=this.env.productServiceUrl+"unpublishquantity";return this.httpClient.post(e,t)},t.prototype.retrieveProductWithChild=function(t,e){var r=this.env.productServiceUrl+"retrieveproductwithchil/"+t+"/"+e;return this.httpClient.get(r)},t.prototype.getGeneralSettings=function(){var t=this.env.commerceOrderServiceUrl+"findgeneralsetting";return this.httpClient.get(t)},t.prototype.retrivePinCodeApi=function(t){var e="https://api.postalpincode.in/pincode/"+t;return this.httpClient.get(e)},t.prototype.findSelecredCategoryGst=function(t){var e=this.env.productServiceUrl+"findselectedcategorygst";return this.httpClient.post(e,t)},t.prototype.cartIncrement=function(t,e){var r=this.env.productServiceUrl+"cartincrement/"+t+"/"+e;return this.httpClient.get(r)},t.prototype.cartDecrement=function(t,e){var r=this.env.productServiceUrl+"cartdecrement/"+t+"/"+e;return this.httpClient.get(r)},t.prototype.updateCartQuantity=function(t,e,r){var i=this.env.productServiceUrl+"updatecartquantity/"+t+"/"+e;return this.httpClient.put(i,r)},t.prototype.getStringingByCategoryId=function(t){var e=this.env.productServiceUrl+"getaddstringingbycategoryid/"+t;return this.httpClient.get(e)},t.prototype.getCategoryProducts=function(t,e,i){for(var n=[],c=e/i<1?1:e/i,p=0;p<=c-1;p++){var u=(new r.HttpParams).set("id",t).set("pageNo",p.toString()).set("perPage",i),a=this.env.productServiceUrl+"getstringingproduct";n.push(this.httpClient.get(a,{params:u}))}return o.forkJoin(n)},t.prototype.getProductWithBrand=function(t){var e=this.env.productServiceUrl+"retrieveproductwithbrand/"+t;return this.httpClient.get(e)},t.prototype.getGiftWrapSetting=function(){var t=this.env.productServiceUrl+"getgiftwrappingsettingforui";return this.httpClient.get(t)},t.prototype.getCartWithTool=function(t){var e=this.env.productServiceUrl+"getcartwithtool/"+t;return this.httpClient.get(e)},t.prototype.getCategoryForBrand=function(t){var e=this.env.productServiceUrl+"getcategoryforbrand/"+t;return this.httpClient.get(e)},t.prototype.getBrandImage=function(){var t=this.env.productServiceUrl+"getcategoryforbrandwithbrandimage";return this.httpClient.get(t)},t.prototype.addwishlistforproductlist=function(t){var e=this.env.productServiceUrl+"addwishlistforproductlist";return this.httpClient.post(e,t)},t.prototype.getwishlistproductid=function(t){var e=this.env.productServiceUrl+"getwishlistproductid";return this.httpClient.post(e,t)},t.prototype.addwishlistforcart=function(t){var e=this.env.productServiceUrl+"addwishlistforcart";return this.httpClient.post(e,t)},t.prototype.removewishlistproductid=function(t){var e=this.env.productServiceUrl+"removewishlistproductid";return this.httpClient.post(e,t)},t.prototype.getwishlistwithproduct=function(t){var e=this.env.productServiceUrl+"getwishlistwithproduct";return this.httpClient.post(e,t)},t.prototype.getSeoAttribute=function(t){var e=this.env.productServiceUrl+"retrieveproductwithseoattribute/"+t;return this.httpClient.get(e)},t.prototype.getSeoCategory=function(t){var e=this.env.productServiceUrl+"findseocategory/"+t;return this.httpClient.get(e)},t.prototype.getSubCategoryProductAttribute=function(t,e){var r=this.env.productServiceUrl+"getsubcategoryfilterattribute/"+t;return this.httpClient.post(r,e).toPromise()},t.prototype.getMainCategoryProductAttribute=function(t,e){var r=this.env.productServiceUrl+"getmaincategoryfilterattribute/"+t;return this.httpClient.post(r,e).toPromise()},t.prototype.getSuperCategoryProductAttribute=function(t,e){var r=this.env.productServiceUrl+"getsupercategoryfilterattribute/"+t;return this.httpClient.post(r,e).toPromise()},t.prototype.getAllProductAttributeByUrl=function(t,e){var i=(new r.HttpParams).set("catid",t.catid);null!=t.mainid&&(i=i.set("mainid",t.mainid)),null!=t.subid&&(i=i.set("subid",t.subid));var o=this.env.productServiceUrl+"urlproductattributebyfilter";return this.httpClient.post(o,e,{params:i}).toPromise()},t.prototype.getSearchProductAttribute=function(t){var e=this.env.productServiceUrl+"searchproductattribute";return this.httpClient.post(e,t).toPromise()},t.prototype.getSearchProductByFilterAttribute=function(t){var e=this.env.productServiceUrl+"searchproductbyfilterattribute";return this.httpClient.post(e,t)},t.prototype.getCategoryByUrl=function(t){var e=(new r.HttpParams).set("catid",t.catid);null!=t.mainid&&(e=e.set("mainid",t.mainid)),null!=t.subid&&(e=e.set("subid",t.subid));var i=this.env.productServiceUrl+"retrievecategorybyurl";return this.httpClient.get(i,{params:e})},t.prototype.getCategoryForLandingByUrl=function(t){var e=new r.HttpParams;e=e.set("url",t);var i=this.env.productServiceUrl+"getcategoryforlandingpagebyurl";return this.httpClient.get(i,{params:e})},t.prototype.getSubCategoryForHeader=function(t){var e=this.env.productServiceUrl+"getsubcategoryforheader/"+t;return this.httpClient.get(e)},t.prototype.getMainCategoryForHeader=function(t){var e=this.env.productServiceUrl+"getmaincategoryforheader/"+t;return this.httpClient.get(e)},t.prototype.getSuperCategoryForHeader=function(t){var e=this.env.productServiceUrl+"getsupercategoryforheader/"+t;return this.httpClient.get(e)},t.prototype.getAllFilterOption=function(){var t=this.env.productServiceUrl+"findfilteroptions";return this.httpClient.get(t)},t.prototype.retrieveAllFilterOption=function(){var t=this.env.productServiceUrl+"findfilteroptions";return this.httpClient.get(t).toPromise()},t.prototype.getSubProductCount=function(t,e){var r=this.env.productServiceUrl+"getsubcategoryproductcount/"+t;return this.httpClient.post(r,e)},t.prototype.getMainProductCount=function(t,e){var r=this.env.productServiceUrl+"getmaincategoryproductcount/"+t;return this.httpClient.post(r,e)},t.prototype.getSuperProductCount=function(t,e){var r=this.env.productServiceUrl+"getsupercategoryproductcount/"+t;return this.httpClient.post(r,e)},t.prototype.getUrlProductCount=function(t,e){var i=(new r.HttpParams).set("catid",t.catid);null!=t.mainid&&(i=i.set("mainid",t.mainid)),null!=t.subid&&(i=i.set("subid",t.subid));var o=this.env.productServiceUrl+"urlproductcountwithprice";return this.httpClient.post(o,e,{params:i})},t.prototype.getSearchProductCount=function(t){var e=this.env.productServiceUrl+"searchproductcount";return this.httpClient.post(e,t)},t.prototype.checkGiftCardAvailabilityForBrand=function(t){var e=this.env.productServiceUrl+"checkgiftwrappingavailablebasedonbrand/"+t;return this.httpClient.get(e)},t.prototype.getSingleBrand=function(t){var e=this.env.productServiceUrl+"getsinglebranddetails/"+t;return this.httpClient.get(e)},t.prototype.checkComboOfferAvailability=function(t){var e=this.env.marketingServiceUrl+"checkcomboofferavailability/"+t;return this.httpClient.get(e)},t.prototype.getProductByBrandWithCategory=function(t){var e=this.env.productServiceUrl+"retrieveproudctbybrandwithcategory";return this.httpClient.post(e,t)},t.prototype.getProductbyBrandPage=function(t){var e=this.env.productServiceUrl+"retrieveproductbybrandpage";return this.httpClient.post(e,t)},t.prototype.connectFilter=function(t){var e,r,i,o,c=new Array;try{for(var p=n(t),u=p.next();!u.done;u=p.next()){var a=u.value,s=function(t){if(0!==c.length&&c.some((function(e){return e._id===t._id}))){var e=c.find((function(e){return e._id===t._id}));t.fieldValue.forEach((function(t){e.fieldValue.some((function(e){return e._id===t._id}))||e.fieldValue.merge(t)}))}else c.push(t)};try{for(var l=n(a),h=l.next();!h.done;h=l.next()){s(h.value)}}catch(t){i={error:t}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=p.return)&&r.call(p)}finally{if(e)throw e.error}}return c},t.prototype.connectFilterByName=function(t){var e,r,i,o,c=new Array;try{for(var p=n(t),u=p.next();!u.done;u=p.next()){var a=u.value,s=function(t){if(0!==c.length&&c.some((function(e){return e.fieldName.toLowerCase()===t.fieldName.toLowerCase()}))){var e=c.find((function(e){return e.fieldName.toLowerCase()===t.fieldName.toLowerCase()}));t.fieldValue.forEach((function(t){e.fieldValue.some((function(e){return e.fieldAttributeValue.trim().toLowerCase()===t.fieldAttributeValue.trim().toLowerCase()}))||e.fieldValue.push(t)}))}else c.push(t)};try{for(var l=n(a),h=l.next();!h.done;h=l.next()){s(h.value)}}catch(t){i={error:t}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=p.return)&&r.call(p)}finally{if(e)throw e.error}}return c},t.prototype.getSelectedGst=function(t){var e=this.env.productServiceUrl+"getselectedgstconfiguration";return this.httpClient.post(e,t)},t.prototype.getEnhancementPageForUI=function(t,e){var r=this.env.productServiceUrl+"getenhancementpageforui/"+t+"/"+e;return this.httpClient.get(r)},t.prototype.getCustomOfferForDetailPage=function(t){var e=this.env.productServiceUrl+"getcustomofferfordetailpage/"+t;return this.httpClient.get(e)},t.prototype.getCustomOfferOrderIDForOrder=function(t){var e=this.env.productServiceUrl+"getcustomofferorderidfororder";return this.httpClient.post(e,t)},t.prototype.getProductWithChild=function(t,e){var r="retrieveproductwithchild/"+t+"/"+e,i=""+this.env.productServiceUrl+r;return this.httpClient.get(i)},t.prototype.getTagProductCount=function(t,e){var i=(new r.HttpParams).set("tagId",t),o=this.env.productServiceUrl+"getproductcountbytag";return this.httpClient.post(o,e,{params:i})},t.prototype.getTagProductFilter=function(t,e){var i=(new r.HttpParams).set("tagId",t),o=this.env.productServiceUrl+"getfilerattributebytag";return this.httpClient.post(o,e,{params:i}).toPromise()},t.prototype.getTagProductList=function(t,e){var i=(new r.HttpParams).set("tagId",t),o=this.env.productServiceUrl+"getproductlistbytag";return this.httpClient.post(o,e,{params:i})},t.prototype.getRazorpayPaymentSetting=function(){var t=this.env.commerceOrderServiceUrl+"getallrazorpaymentsettingforui";return this.httpClient.get(t)},t.prototype.getStringingProductCount=function(t){var e=(new r.HttpParams).set("id",t),i=this.env.productServiceUrl+"getstringproductcount";return this.httpClient.get(i,{params:e})},t.prototype.getBrandForUI=function(t){var e=(new r.HttpParams).set("id",t),i=this.env.productServiceUrl+"getbrandforui";return this.httpClient.get(i,{params:e})},t.prototype.getSelctedMeasurementByUser=function(t){var e=this.env.customerServiceUrl+"getselectedmeasurement/"+t;return this.httpClient.get(e)},t.prototype.createInvoice=function(t){var e=this.env.commerceOrderServiceUrl+"createinvoice";return this.httpClient.post(e,t)},t.prototype.saveInquiry=function(t){var e=this.env.customerServiceUrl+"inquiry";return this.httpClient.post(e,t)},t.prototype.getComboOffer=function(){var t=this.env.marketingServiceUrl+"retrievediscountforui";return this.httpClient.get(t)},t.prototype.getWalletConditionforCart=function(){var t=this.env.marketingServiceUrl+"getwalletconditionforcart";return this.httpClient.get(t)},t.prototype.getCustomerWallet=function(t){var e=this.env.customerServiceUrl+"getcustomerwallet/"+t;return this.httpClient.get(e)},t.prototype.getShippingFees=function(){var t=this.env.commerceOrderServiceUrl+"getshippingfees";return this.httpClient.get(t)},t.prototype.getFlexibleCouponForCart=function(){var t=this.env.marketingServiceUrl+"flexiblecouponforcart";return this.httpClient.get(t)},t.prototype.getFirstTimeSignUpCouponForCart=function(){var t=this.env.marketingServiceUrl+"firsttimecouponforcart";return this.httpClient.get(t)},t.prototype.checkCouponForFirstCustomer=function(t){var e=this.env.commerceOrderServiceUrl+"checkcouponforfirstcustomer/"+t;return this.httpClient.get(e)},t.prototype.checkCouponForPlaceOrder=function(t){var e=this.env.marketingServiceUrl+"checkcouponforplaceorder/"+t;return this.httpClient.get(e)},t.prototype.checkCouponOnCustomer=function(t){var e=this.env.commerceOrderServiceUrl+"checkcouponcodebycustomer";return this.httpClient.post(e,t)},t.prototype.getCustomerDetails=function(t){var e=this.env.customerServiceUrl+"getcustomerprofile/"+t;return this.httpClient.get(e)},t.prototype.getCustomerDetailsForPlaceorder=function(){var t=this.env.customerServiceUrl+"getcustomerdetailsforplaceorder";return this.httpClient.get(t,{headers:{Authorization:this.commonService.getToken()}})},t.prototype.confirmCashOnDelivery=function(t){var e=this.env.commerceOrderServiceUrl+"cashondeliverycreation";return this.httpClient.post(e,t)},t.prototype.confirmRazorPayOrder=function(t){var e=this.env.commerceOrderServiceUrl+"razorpayorder";return this.httpClient.put(e,t)},t.prototype.addRazorpayResponse=function(t,e,r){var i=this.env.commerceOrderServiceUrl+"addrazorpay/"+e+"/total/"+r;return this.httpClient.put(i,t)},t.prototype.reduseCustomerWallet=function(t,e){var r=this.env.customerServiceUrl+"reducecoininwallet/"+e;return this.httpClient.put(r,t)},t.prototype.addCoinToWallet=function(t,e){var r=this.env.customerServiceUrl+"addcoininwallet/"+e;return this.httpClient.put(r,t)},t.prototype.getMeasurementbyUser=function(){var t=this.env.customerServiceUrl+"getallmeasurementbyuser";return this.httpClient.get(t)},t.prototype.customerAddressDelete=function(t,e){var r=this.env.customerServiceUrl+"deletecustomeraddress/"+t+"/delete/"+e;return this.httpClient.delete(r)},t.prototype.paypalOrderCreation=function(t){var e=this.env.commerceOrderServiceUrl+"paypalordercreation";return this.httpClient.post(e,t)},t.prototype.getaddressDetails=function(t,e){var r=this.env.customerServiceUrl+"updateaddressdetails/"+e;return this.httpClient.put(r,t)},t.prototype.customerAddressUpdate=function(t,e,r){var i=this.env.customerServiceUrl+"editcustomeraddress/"+t+"/update/"+e;return this.httpClient.put(i,r)},t.prototype.checkPincodeForOrder=function(t){var e=this.env.commerceOrderServiceUrl+"checkpincodefororder/"+t;return this.httpClient.get(e)},t.prototype.checkPincodeForCOD=function(t){var e=this.env.commerceOrderServiceUrl+"checkpincodeforcod/"+t;return this.httpClient.get(e)},t.prototype.checkShiprocketPincodeForOrder=function(t){var e=this.env.commonCallServiceUrl+"checkshiprokcetpincodefororder/"+t;return this.httpClient.get(e)},t.prototype.checkShiprocketPincodeForCOD=function(t){var e=this.env.commonCallServiceUrl+"checkshiprocketpincodeforcod/"+t;return this.httpClient.get(e)},t.prototype.retrieveAllCODCondition=function(){var t=this.env.commerceOrderServiceUrl+"retrieveallcodconditionforui";return this.httpClient.get(t)},t.prototype.checkEmailForCustomer=function(t){var e=this.env.customerServiceUrl+"checkemailforbuynow";return this.httpClient.post(e,t)},t.prototype.getSearchSubProductCount=function(t,e){var r=this.env.productServiceUrl+"getsearchsubcategoryproductcount/"+t;return this.httpClient.post(r,e)},t.prototype.getSearchMainProductCount=function(t,e){var r=this.env.productServiceUrl+"getsearchmaincategoryproductcount/"+t;return this.httpClient.post(r,e)},t.prototype.getSearchSuperProductCount=function(t,e){var r=this.env.productServiceUrl+"getsearchsupercategoryproductcount/"+t;return this.httpClient.post(r,e)},t.prototype.searchSuperCategoryProductWishFilter=function(t,e){var r=this.env.productServiceUrl+"searchsupercategoryproductwishfilter/"+t;return this.httpClient.post(r,e).toPromise()},t.prototype.searchMainCategoryProductWishFilter=function(t,e){var r=this.env.productServiceUrl+"searchmaincategoryproductwishfilter/"+t;return this.httpClient.post(r,e).toPromise()},t.prototype.searchSubCategoryProductWishFilter=function(t,e){var r=this.env.productServiceUrl+"searchsubcategoryproductwishfilter/"+t;return this.httpClient.post(r,e).toPromise()},t.prototype.sendInquiryMail=function(t){var e=this.env.communicationServiceUrl+"inquiryconfirmationmail";return this.httpClient.post(e,t)},t.prototype.getSizeGuideCategoryWithBrand=function(t){var e=this.env.productServiceUrl+"retrievesizeguidebycategorywithbrand";return this.httpClient.post(e,t)},t.prototype.retrieveBrandProductFilter=function(t){var e=this.env.productServiceUrl+"retrievebrandproductfilter";return this.httpClient.post(e,t).toPromise()},t.prototype.retrieveBrandProductFilterCount=function(t){var e=this.env.productServiceUrl+"retrievebrandproductcount";return this.httpClient.post(e,t)},t.prototype.getPager=function(t,e,r){void 0===e&&(e=1),void 0===r&&(r=30);var i,o,n=Math.ceil(t/r);e<1?e=1:e>n&&(e=n),n<=5?(i=1,o=n):e<=3?(i=1,o=5):e+2>=n?(i=n-4,o=n):(i=e-3,o=e+2);var c=(e-1)*r,p=Math.min(c+r-1,t-1),u=Array.from(Array(o+1-i).keys()).map((function(t){return i+t}));return{totalItems:t,currentPage:e,pageSize:r,totalPages:n,startPage:i,endPage:o,startIndex:c,endIndex:p,pages:u}},t.prototype.setCartWithTool=function(t,e,r,i,o,n,c,p){return r?{productId:t,INTsku:e,qty:i,bodyHeight:n,tailoringService:r,isMeasurement:p,isUnstitched:!p,serviceId:c,product:o}:{productId:t,INTsku:e,qty:i,bodyHeight:n,tailoringService:r,product:o,serviceId:c}},t.prototype.setCartWithOutTool=function(t,e,r,i){return{productId:t,INTsku:e,qty:i,product:r}},t.prototype.setCartWithStringTool=function(t,e,r,i,o,n,c){return{productId:t,INTsku:e,qty:i,product:r,toolEnable:o,toolType:n,tension:c}},t.prototype.calculateSizeWiseIncrement=function(t,e){var r,i,o,c;try{for(var p=n(t),u=p.next();!u.done;u=p.next()){var a=u.value;if(!0!==a.product.isPluzSize&&"Size"===a.product.variationType)try{for(var s=n(e),l=s.next();!l.done;l=s.next()){var h=l.value;(h.subCategoryId&&h.subCategoryId===a.product.subCategoryId&&Number(h.size)<=Number(a.product.sizeVariant)||h.superCategoryId&&h.superCategoryId===a.product.superCategoryId&&Number(h.size)<=Number(a.product.sizeVariant))&&(a.product.sizeIncApply=!0,a.product.sizeIncType="Additional charges for plus size",a.product.sizeWisePrice=a.product.subPrice*h.incPercentage/100,a.product.price=a.product.price+a.product.sizeWisePrice,a.product.serviceDiscount=a.product.discount,a.product.serviceAmount=(void 0===a.product.serviceAmount?0:a.product.serviceAmount)+a.product.sizeWisePrice,a.product.isPluzSize=!0)}}catch(t){o={error:t}}finally{try{l&&!l.done&&(c=s.return)&&c.call(s)}finally{if(o)throw o.error}}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}return t},t.prototype.createCCAvenueOrder=function(t){var e=(new r.HttpParams).set("callbackUrl",this.env.commerceOrderServiceUrl),i=this.env.commerceOrderServiceUrl+"orderccavenue";return this.httpClient.post(i,t,{params:e})},t.prototype.orderCheckAfterPay=function(t){var e=(new r.HttpParams).set("childId",t.toString()),i=this.env.productServiceUrl+"productchildfind";return this.httpClient.get(i,{params:e})},t.prototype.orderthroughccavenue=function(t){var e=this.env.commerceOrderServiceUrl+"orderthroughccavenue";return this.httpClient.post(e,t)},t.prototype.getFilterOption=function(){var t=this.env.productServiceUrl+"getfilteroptionsforui";return this.httpClient.get(t)},t.prototype.getCODSetting=function(){var t=this.env.commerceOrderServiceUrl+"getallcodsetting";return this.httpClient.get(t)},t.prototype.getPaymentSetting=function(){var t=this.env.commerceOrderServiceUrl+"getpaymentsettingforwebsite";return this.httpClient.get(t)},t.prototype.getDiscountFitler=function(){var t=this.env.productServiceUrl+"getdiscountfilter";return this.httpClient.get(t)},t.prototype.checkCODPincodeValidation=function(t){var e=this.env.commerceOrderServiceUrl+"checkpincodevalidationforcod";return this.httpClient.post(e,t).toPromise()},t.prototype.checkFlexibleCouponForCouponApply=function(t){var e=this.env.marketingServiceUrl+"checkflexiblecouponforapply";return this.httpClient.post(e,t)},t.prototype.checkProductForCoupon=function(t){var e=this.env.productServiceUrl+"checkproductforcoupon";return this.httpClient.post(e,t)},t.prototype.getLocalCart=function(t){var e=this.env.productServiceUrl+"findlocalcart";return this.httpClient.post(e,t)},t.prototype.checkCouponInExistingCustomer=function(t){var e=this.env.commerceOrderServiceUrl+"checkcouponinexistingcustomer";return this.httpClient.post(e,t)},t.prototype.razorpayWithCODShipmentfess=function(t){var e=this.env.commerceOrderServiceUrl+"razorpaywithcodandshipmentfees";return this.httpClient.post(e,t)},t.prototype.checkShippingFees=function(t){var e=this.env.commerceOrderServiceUrl+"checkshippingfees";return this.httpClient.post(e,t)},t.prototype.checkWishlistForProduct=function(t,e){var i=(new r.HttpParams).set("userId",t).set("productId",e),o=this.env.productServiceUrl+"checkproductforwishlist";return this.httpClient.get(o,{params:i})},t.prototype.getProductForWishlist=function(t){var e=this.env.productServiceUrl+"getproductforwishlist/"+t;return this.httpClient.get(e)},t.prototype.getAttributeLabel=function(t){var e=this.env.productServiceUrl+"getattributelabel/"+t;return this.httpClient.get(e)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:r.HttpClient},{type:i.EnvironmentModel,decorators:[{type:e.Inject,args:["environment"]}]},{type:i.CommonLibService}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(r.HttpClient),e.ɵɵinject("environment"),e.ɵɵinject(i.CommonLibService))},token:t,providedIn:"root"}),t}();var p=function(){function t(){}return t.prototype.ngOnInit=function(){},t.decorators=[{type:e.Component,args:[{selector:"lib-product-lib",template:"\n    <p>\n      product-lib works!\n    </p>\n  "}]}],t.ctorParameters=function(){return[]},t}(),u=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[c,{provide:"environment",useValue:e}]}},t.decorators=[{type:e.NgModule,args:[{declarations:[p],imports:[r.HttpClientModule],exports:[p]}]}],t}();t.ProductLibComponent=p,t.ProductLibModule=u,t.ProductLibService=c,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=sass-library-product-lib.umd.min.js.map