1"use strict";(self.webpackChunkdigitas_design=self.webpackChunkdigitas_design||[]).push([[9775],{8917:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(62893),i=a(7669);class o{constructor(e){this.defaultOptions={noPadding:!1,htmlContent:"",cusClass:""},this.createModal();const t={...this.defaultOptions,...e};this.appendContent(t.htmlContent),this.modal.noPadding=t.noPadding,this.modal.cusClass=`${t.cusClass}`,this.attachEvents()}attachEvents(){this.modal.$on("close",(()=>this.close()))}appendContent(e){this.modal&&(this.modal.htmlContent=e)}createModal(){const e=document.createElement("div");document.body.appendChild(e),this.modal=new r.Ay({el:e,...i.A})}close(){this.modal.value=!1}open(){this.modal.value=!0}}},90866:(e,t,a)=>{a.r(t),a.d(t,{default:()=>g});var r=a(8917),i=a(20853),o=a(6958),s=a(49401),n=a(73994),l=a(59952),d=a.n(l),c=a(96544),h=a(29408),u=a.n(h),p=a(74692);class g{constructor(){if(this.brand="ELECTROLUX",this.country="SG",this.language="en",this.culture=ELECTROLUX.language,this.cidCookie=(0,o.Ri)(i.AZ.WTB_CID)?"&"+(0,o.Ri)(i.AZ.WTB_CID):"",this.utmCookie=(0,o.Ri)(i.AZ.WTB_UTM)?"&"+(0,o.Ri)(i.AZ.WTB_UTM):"",this.gusid=""!==document.body.dataset.sessionid?"&gusid="+document.body.dataset.sessionid:"",this._APIURL="/BuyNowApi/GetProductRetailList?id=",this.modal=new r.A({noPadding:!0,cusClass:"compare-channel-adviser__modal",htmlContent:""}),this.whereToBuyURL=p("[data-wheretobuypage]").length?""!==p("[data-wheretobuypage]").attr("data-wheretobuypage")?p("[data-wheretobuypage]").attr("data-wheretobuypage"):"/where-to-buy/":"",this.itemDetails="",this.hideStoreLocator=p(".buy-now-btn").length>0&&!!p(".buy-now-btn").attr("data-hide-wheretobuy-storelocator")&&"true"===p(".buy-now-btn").attr("data-hide-wheretobuy-storelocator").toLowerCase(),this.hideOnlineRetailer=p(".buy-now-btn").length>0&&!!p(".buy-now-btn").attr("data-hide-wheretobuy-onlineretailer")&&"true"===p(".buy-now-btn").attr("data-hide-wheretobuy-onlineretailer").toLowerCase(),this.messages={whereToBuy:p("[data-wheretobuypage]").length||p("[data-wheretobuypage]").length?p("[data-wheretobuypage]").html():"Where To Buy",purchaseOnline:p("[data-wheretobuypage]").length?p("[data-wheretobuypage]").attr("data-purchase-online"):"Purchase Online",purchaseOnlineByLocation:"",disclaimerNotification:p("[data-wheretobuypage]").length?p("[data-wheretobuypage]").attr("data-disclaimer-notification"):"",inStock:p("[data-wheretobuypage]").length?p("[data-wheretobuypage]").attr("data-in-stock"):"In Stock",outStock:p("[data-wheretobuypage]").length?p("[data-wheretobuypage]").attr("data-out-of-stock"):"Out of Stock",buyNow:p("[data-wheretobuypage]").length?p("[data-wheretobuypage]").attr("data-buy-now"):"Buy Now",noRetailers:p("[data-wheretobuypage]").length?p("[data-wheretobuypage]").attr("data-no-retailers-found"):p(".data-layer-buynow").length?p(".data-layer-buynow").attr("data-no-retailers-found"):"No retailers found",loadingText:""},this.availableCoutriesUrl="/api/eluxproduct/getproductavailablecountrieslist/?id=",this.availableCoutries=[],this.$doc=p(document),this.$compareBuyNowSection=p(".js_product-details__compare-buynow-data"),this.http=new s.A,this.attachEvents=()=>{const e=p(document);e.on("click","[data-product-model]",(t=>{this.$productModelEl=p(t.currentTarget);var a=p(t.currentTarget);const r=a.find(".js_where-to-buy__text").length>0?a.find(".js_where-to-buy__text"):a;this.btnTxt=r.text();var i=p(t.currentTarget).attr("data-wheretobuypage");if(ELECTROLUX.SiteSetting.hideWhereToBuyRetailer&&!ELECTROLUX.SiteSetting.hideWhereToBuyStoreLocator&&i)return(0,n.sendStoreLocatorEventManually)(t.currentTarget),void(window.location.href=i);this.messages={whereToBuy:p("[data-wheretobuypage]").length||p("[data-wheretobuypage]").length?p("[data-wheretobuypage]").html():"Where To Buy",purchaseOnline:p("[data-wheretobuypage]").length?p("[data-wheretobuypage]").attr("data-purchase-online"):"Purchase Online",purchaseOnlineByLocation:"",disclaimerNotification:p("[data-wheretobuypage]").length?p("[data-wheretobuypage]").attr("data-disclaimer-notification"):"",inStock:p("[data-wheretobuypage]").length?p("[data-wheretobuypage]").attr("data-in-stock"):"In Stock",outStock:p("[data-wheretobuypage]").length?p("[data-wheretobuypage]").attr("data-out-of-stock"):"Out of Stock",buyNow:p("[data-wheretobuypage]").length?p("[data-wheretobuypage]").attr("data-buy-now"):"Buy Now",no
1Retailers:p("[data-wheretobuypage]").length?p("[data-wheretobuypage]").attr("data-no-retailers-found"):p(".data-layer-buynow").length?p(".data-layer-buynow").attr("data-no-retailers-found"):"No retailers found",loadingText:p("[data-wheretobuypage]").length?p("[data-wheretobuypage]").attr("data-loadingtext"):"loading..."};const o=void 0!==a.data("loadingtext")&&a.data("loadingtext").length>0?a.data("loadingtext"):"loading...";r.text(o);let s=a.closest("[datalayer-product]");if(s.length||(s=e.find(".hero-product[datalayer-product]")),s.length){const e=p(".compare-channel-adviser div[datalayer-metadata]"),t=e[0];for(;t.attributes.length>0;)t.removeAttribute(t.attributes[0].name);p(t).attr("datalayer-metadata",""),p.each(s[0].attributes,(function(){this.specified&&this.name.match("^datalayer-product-")&&e.attr(this.name,this.value)}))}(0,c.cloneProductAttributes)(a[0],`[data-wtb-popup][${c.GA_CHANNEL_ADVISER_ATTR}]`),p("[data-product-model]").prop("disabled",!0),this.model=a.data("product-model");const l=a.attr("data-product-image"),d=a.attr("data-product-name")?a.attr("data-product-name")+" ":"";if(p(".compare-channel-adviser").length){let e=p("[data-wheretobuypage]").length?""!==p("[data-wheretobuypage]").attr("data-wheretobuypage")?p("[data-wheretobuypage]").attr("data-wheretobuypage"):"/where-to-buy/":"";p(".find-a-retail-store-button").attr("href",e),p(".js_compare-channel-adviser_img").attr("src",l),p(".compare-channel-adviser .product-model").html(d+this.model)}const h=a.attr("data-brand-name");this.onlineProductsURL=this._APIURL+this.model+"&culture="+this.culture+"&language="+ELECTROLUX.language,h&&(this.onlineProductsURL+="&brandName="+h),this.fetchProductRetailers(t,!1);let u=null;u=setInterval((()=>{ELECTROLUX.SiteSetting.hideThePrice&&p("#compareChannelAdivserPopup .item-details p:nth-of-type(1)").hide(),ELECTROLUX.SiteSetting.hideTheStockLevel&&p("#compareChannelAdivserPopup .item-details p:nth-of-type(2)").hide(),p("#compareChannelAdivserPopup .item-details p").length>0&&clearInterval(u)}),100)}))},this.fetchProductRetailers=async(e,t)=>{const a=p(e.currentTarget),r=e.currentTarget,i=a.data("hideWheretobuyOnlineretailer").toString(),o=a.data("hideWheretobuyStorelocator").toString(),s=p("#compareChannelAdivserPopup");let n=ELECTROLUX.SiteSetting.multiWhereToBuyRetailers;if("true"!==i.toLowerCase()||"true"!==o.toLowerCase()){if("true"===i.toLowerCase())return t||p("[data-product-model]").text(this.messages.whereToBuy).prop("disabled",!1),p("[data-product-model]").text(this.messages.whereToBuy).prop("disabled",!1),this.modal.appendContent(s.html()),this.modal.open(),void d()(r);if(n)return await this.generateSelectCountryContent(i,o),void(t||setTimeout((()=>{this.modal.appendContent(s.html()),this.modal.open(),d()(r)}),0));if("true"===o.toLowerCase()){var l=p("#compareChannelAdivserPopup").find('div[class="grey-container"]');l.length&&l.remove()}await this.setRetailers(this.onlineProductsURL),t||((this.$productModelEl.find(".js_where-to-buy__text").length>0?this.$productModelEl.find(".js_where-to-buy__text"):this.$productModelEl).text(this.btnTxt),p("[data-product-model]").prop("disabled",!1)),this.clearRetailers(),this.populateRetailers();var c=p("#compareChannelAdivserPopup");this.modal.appendContent(c.html()),this.modal.open(),d()(r)}else p("[data-product-model]").text(this.messages.whereToBuy).prop("disabled",!1)},this.clearRetailers=()=>{p(".available-list").empty()},this.populateRetailers=()=>{const e=p(".available-list"),t=this.retailers.length;let a="";if(0===t)e.append(p("<li>").html(this.messages.noRetailers));else{e.append(p(`<li class="available-list__title ${this.messages.purchaseOnlineByLocation?"text-transform-none":""}">`).html(`${this.messages.purchaseOnlineByLocation||this.messages.purchaseOnline}<span class="compare-channel-adviser__note">${this.messages.disclaimerNotification}</span>`));for(var r="",i=0;i<t;i++){this.inStock=this.retailers[i].InStock,this.promotionalMsg=this.retailers[i].PromotionalMessage,this.price=this.retailers[i].Price;let e=ELECTROLUX.SiteSetting.hideTheStockLevel;if(""!==this.inStock)if(!0===this.inStock)e&&(this.itemDetails="<p>"+this.messages.inStock+"</p>");else{if(ELECTROLUX.SiteSetting.hideOutOfStockRetailer)continue;e&&(this.itemDetails='<p class="out-of-stock">'+this.messages.outStock+"</p>")}""!==this.promotionalMsg&&(a="<p>"+this.promotionalMsg+"</p>");var o=p(`<a ${c.GA_BUY_NOW_ATTR}="" ${c.GA_RETAILER_ATTR}="${this.retailers[i].Name}"class="buy-now-button cta" href="`+this.retailers[i].DeeplinkUrl+this.cidCookie+this.utmCookie+this.gusid+'" target="_blank" datalayer-retailer="" datalayer-retailer-id="" datalayer-retailer-affiliation="" datalayer-retailer-revenue="" datalayer-retailer-currency="">'+this.messages.buyNow+"</a>");ELECTROLUX.datalayer.mapper.setRetailer(o,this.retailers[i]);const t=ELECTROLUX.SiteSetting.hideThePrice?'style="display: none;"':"";r+='<li><div class="img"><img src="'+this.retailers[i].LogoUrl+'" alt="'+this.retailers[i].DisplayName+'"></div><div class="right"><div class="item-details"><p '+t+">"+this.price+"</p>"+this.itemDetails+a+'</div><div class="cta-container">'+o.get(0).outerHTML+"</div></div></li>"}e.append(r)}},this.preloadStoreLocator=()=>{if(this.$compareBuyNowSection.length>0){this.model=this.$compareBuyNowSection.data("product-model");const e=this.whereToBuyURL;p(".find-a-retail-store-button").attr("href",e);const t=this.$compareBuyNowSection.data("hide-wheretobuy-onlineretailer").toString(),a=this.$compareBuyNowSection.data("hide-wheretobuy-storelocator").toString();this.generateSelectCountryContent(t,a,!0)}},this.generateSelectCountryContent=async(e,t,a=!1)=>{p(".compare-channel-adviser .available-list").hide();let r=p(a?".js_compare-channel-adviser__selector-wrapper":".compare-channel-adviser .container");p(".compare-channel-adviser .container .select-country-wrapper").remove();let i=a?"<div class='select-country-wrapper js_select-country-wrapper'></div>":"<div class='select-country-wrapper'><div class='select-country__purchase-online'>"+this.messages.purchaseOnline+"</div><div class='row'></div></div>";if(r.append(i),"false"===t.toLowerCase()?p(".compare-channel-adviser .grey-container").show():p(".compare-channel-adviser .grey-container").hide(),"true"===e.toLowerCase())return;let o="<div class='pick-store-wrapper'><div class='pick-store__selected-country js_pick-store__selected-country' data-hide-wheretobuy-onlineretailer='"+e+"' data-hide-wheretobuy-storelocator='"+t+"'></div><div class='select-country__dropdown row'></div></div>";a||(p(".compare-channel-adviser .container .pick-store-wrapper").remove(),r.append(o));let s=p(a?".js_select-country-wrapper":".select-country-wrapper .row"),n=this.messages.whereToBuy,l=this.messages.noRetailers;const d=await this.http.get(this.availableCoutriesUrl+this.model+"&culture="+this.culture);if(this.availableCoutries=d,a||p("[data-product-model]").text(n).prop("disabled",!1),d.PurchaseFromMessage&&(this.messages.purchaseOnlineByLocation=d.PurchaseFromMessage),this.availableCoutries.forEac
1h((e=>{let t;t=`\n <div class="col-md-4 col-xs-6">\n <div class="select-country__item js_select-country__item" data-country-name="${e.LanguageCode}">\n <img src="${e.Image}" alt="${e.LanguageName}">\n <span>${e.LanguageName}</span>\n </div>\n </div>`;const r=`\n <div class="select-country__item js_select-country__item" data-country-name="${e.LanguageCode}">\n <div class="select-country__item-wrapper">\n <img class="select-country__item-img" src="${e.Image}" alt="${e.LanguageName}">\n <span class="select-country__item-text">${e.LanguageName}</span>\n </div>\n </div>`;a?s.append(r):s.append(t)})),a&&p(".js_select-country__item")[0].click(),0===this.availableCoutries.length){let e="<div class='col-md-4 col-xs-6'>"+l+"</div>";s.append(e)}this.handleClickCountryItem(e,t),this.handleClickSelectedCountry()},this.handleClickCountryItem=(e,t)=>{let a=this;this.$doc.on("click",".js_select-country__item",(async function(r){r.preventDefault(),r.stopImmediatePropagation(),p(".compare-channel-adviser .grey-container").hide();let i="";const o=p(this).parents(".js_select-country-wrapper").length>0;o?(p(".compare-channel-adviser .pick-store-wrapper").remove(),p(".js_compare-channel-adviser__country-selector").empty(),p(this).children().clone().appendTo(".js_compare-channel-adviser__country-selector")):(p(".compare-channel-adviser .container .select-country-wrapper").hide(),i="<div class='pick-store__selected-country js_pick-store__selected-country' data-hide-wheretobuy-onlineretailer='"+e+"' data-hide-wheretobuy-storelocator='"+t+"'></div>",p(".compare-channel-adviser .container .pick-store-wrapper").remove());let s="<div class='pick-store-wrapper'>"+i+"<div class='row'></div></div>";p(o?".js_compare-channel-adviser":".compare-channel-adviser .container").append(s),p(".compare-channel-adviser .pick-store-wrapper").show();const n=p(this).data("country-name"),l=a.availableCoutries.find((e=>e.LanguageCode===n));u()([l?.LanguageName||""]);let d=p(".js_pick-store__selected-country");d.empty();let h="<span class='pick-store__chevron-left'></span><img src='"+l.Image+"' alt='"+l.LanguageName+"'><span>"+l.LanguageName+"</span>";d.append(h);let g=p(o?".js_compare-channel-adviser .pick-store-wrapper .row":".compare-channel-adviser .container .pick-store-wrapper .row");if(a.onlineProductsURL=a._APIURL+a.model+"&culture="+n+"&language="+ELECTROLUX.language,await a.setRetailers(a.onlineProductsURL),g.empty(),0===a.retailers.length){var m="<div class='col-12 mgt-sm-20'>"+a.messages.noRetailers+"</div>";g.append(m)}a.retailers.forEach((e=>{const t=o?"":`<div class="pick-store-item__status">\n ${e.InStock?a.messages.inStock:a.messages.outStock}\n </div>`;let r=`\n <div class="col-5 col-md-4">\n <a href="${e.DeeplinkUrl+a.cidCookie+a.utmCookie+a.gusid}" rel="noreferrer nofollow" target="_blank" datalayer-retailer="" datalayer-retailer-id="${e.Id}" datalayer-retailer-affiliation="${e.Name}" datalayer-retailer-revenue="${e.Price}" datalayer-retailer-currency="${e.CurrencyCode}" gtm-initialized-click-for="true" ${c.GA_BUY_NOW_ATTR}="" ${c.GA_RETAILER_ATTR}="${e.Name}" ${c.GA_COUNTRY_ATTR}="${l.LanguageName}">\n <div class="pick-store-item">\n <div class="pick-store-item__logo">\n <img src="${e.LogoUrl}" alt="${e.DisplayName}">\n <span class="pick-store-item__space"></span>\n <span class="pick-store-item__chevron-right"></span>\n </div> \n ${t}\n </div>\n </a>\n </div>`;g.append(r)}))}))},this.handleClickSelectedCountry=()=>{this.$doc.on("click"," .js_pick-store__selected-country",(function(e){const t=p(e.currentTarget),a=t.data("hide-wheretobuy-onlineretailer").toString(),r=t.data("hide-wheretobuy-storelocator").toString();p(".compare-channel-adviser .container .pick-store-wrapper").hide(),"false"===a.toLowerCase()&&p(".compare-channel-adviser .select-country-wrapper").show(),"false"===r.toLowerCase()&&p(".compare-channel-adviser .grey-container").show()}))},this.setRetailers=async e=>{const t=await this.http.get(e);t&&null!==t.Products?this.retailers=t.Products&&t.Products[0].Retailers||[]:this.retailers=[],t.PurchaseFromMessage&&(this.messages.purchaseOnlineByLocation=t.PurchaseFromMessage)},p(".compare-channel-adviser").length){let e="#";this.whereToBuyURL&&(e=this.whereToBuyURL),p(".find-a-retail-store-button").attr("href",e)}this.attachEvents()}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.