1(globalThis.webpackChunkconforama=globalThis.webpackChunkconforama||[]).push([[177],{8397:t=>{t.exports={device:{mobile:{maxWidth:"1024px"}},media:{touch:"(-moz-touch-enabled: 1), (pointer:coarse)",notTouch:"(-moz-touch-enabled: 0), not all and (any-pointer:coarse)",screenXS:"375px",screenSM:"767px",screenMD:"1025px",screenLG:"1200px",screenXL:"1700px",trustedShopsBadge:"649px"},transition:{easeOut:"cubic-bezier(0, 0, 0.31, 1)"}}},8218:(t,e,i)=>{"use strict";var a,n,o,r,s,l,c,d;i.d(e,{AS:()=>a,aU:()=>o,hj:()=>c,kL:()=>d,lL:()=>n,u_:()=>l}),function(t){t[t.Mobile=1]="Mobile",t[t.Desktop=2]="Desktop"}(a||(a={})),function(t){t[t.xxs=0]="xxs",t[t.xs=1]="xs",t[t.sm=2]="sm",t[t.md=3]="md",t[t.lg=4]="lg",t[t.xl=5]="xl"}(n||(n={})),function(t){t[t.upper=0]="upper",t[t.lower=1]="lower"}(o||(o={})),function(t){t.Home="HOME",t.Pickup="PICKUP"}(r||(r={})),function(t){t.Default="Default",t.Drive="Drive"}(s||(s={})),function(t){t.ClickAndDrive="modal-clickanddrive",t.AvailabilityWarning="modal-availabilitywarning"}(l||(l={})),function(t){t[t.Webp=0]="Webp",t[t.Jpeg=1]="Jpeg",t[t.Png=2]="Png"}(c||(c={})),function(t){t[t.Billing=0]="Billing",t[t.Delivery=1]="Delivery"}(d||(d={}))},92:(t,e,i)=>{"use strict";i.d(e,{f:()=>o});var a=i(3062);class n{constructor(){this._AjaxTimeout=500,this._RedirectTimeout=3e3,this._showClass="show",this._pageBusy=!1,this._Window_KeyUp=this.Window_KeyUp.bind(this),this.Initialise()}Initialise(){jQuery(document).ajaxStart((()=>this.PageBusy_AjaxStart())).ajaxStop((()=>this.PageBusy_AjaxStop())),n._context.querySelector(".close").addEventListener("click",(()=>this.Close_Click())),window.addEventListener("pagehide",(()=>this.Window_BeforeUnload())),window.addEventListener("pageshow",(()=>this.Hide()))}Close_Click(){n._context.classList.remove(this._showClass)}Window_BeforeUnload(){let t=this._RedirectTimeout;const e=document.activeElement;if(e){const i=e.href;if(i)if(i.indexOf("/checkout/cart")>-1)t=this._AjaxTimeout;else if(0==i.indexOf("tel:"))return}this.Show(void 0,t)}Window_KeyUp(t){"Escape"==t.key&&this.Hide()}PageBusy_AjaxStart(){this._pageBusy&&this.Show()}PageBusy_AjaxStop(){this._pageBusy=!1,this.Hide()}Show(t,e){this._timeoutHandle&&clearTimeout(this._timeoutHandle),this._timeoutHandle=setTimeout((()=>{if(clearTimeout(this._timeoutHandle),t){const e=document.createElement("div");e.classList.add("loader"),t.appendChild(e),t.classList.add("loading")}else n._context.classList.add(this._showClass);a.h&&a.h.ToggleBusy(!0)}),e||this._AjaxTimeout),window.addEventListener("keyup",this._Window_KeyUp)}Hide(t){if(this._timeoutHandle&&clearTimeout(this._timeoutHandle),t){const e=t.querySelector(":scope > .loader");e&&t.removeChild(e),t.classList.remove("loading")}else n._context.classList.remove(this._showClass);a.h&&a.h.ToggleBusy(!1),window.removeEventListener("keyup",this._Window_KeyUp)}get PageBusy(){return this._pageBusy}set PageBusy(t){this._pageBusy=t}static get Instance(){return this._context&&(this._instance||(this._instance=new this))}}n._context=document.getElementById("ajaxBusyV2");const o=window.ajaxBusy||n.Instance;o&&(window.ajaxBusy=o)},3062:(t,e,i)=>{"use strict";i.d(e,{h:()=>n});class a{constructor(){let t=0;setInterval((function(){const e=parseInt(sessionStorage.getItem("BasketCount"));t!=e&&(top.postMessage("cart-"+e,"*"),t=e)}),1e3);const e=document.querySelector(".page-login .remember-me");e&&(e.querySelector("input[type=checkbox]").checked=!0,e.style.display="none")}ToggleBusy(t){t?top.postMessage("loader-show","*"):top.postMessage("loader-hide","*")}ScrollToTop(){top.postMessage("top","*")}static get Instance(){return this._context&&(this._instance||(this._instance=new this))}}a._context=document.querySelector("html.app4less");const n=a.Instance},9214:(t,e,i)=>{"use strict";var a=i(3143);class n{constructor(){const t={container:"#js-flowbox-flow",key:a.gG.FlowboxKey,locale:a.gG.LangCode};window.flowbox("init",t)}static get Instance(){if(window.flowbox&&document.querySelector("#js-flowbox-flow"))return this._instance||(this._instance=new this)}}let o=window.clsFlowbox;window.addEventListener("load",(t=>{o||(o=n.Instance,o&&(window.clsFlowbox=o))}))},6958:(t,e,i)=>{"use strict";i.d(e,{o:()=>a});const a=window.modal||class{constructor(){this._defaultOptions={awaitCloseAnimation:!0,onShow:this.Modal_Show,onClose:this.Modal_Close}}
1Show(t,e,i){if("undefined"==typeof MicroModal)return;const a=document.getElementById(t);if(!a)return;if(i=Object.assign({},this._defaultOptions,i),a.classList.contains("modal"))return void MicroModal.show(t,i);let n="";e&&(n=`\n<header class="modal__header">\n <h2 class="modal__title" id="${t}-title">${e}</h2>\n</header>`);const o=document.createElement("template");o.innerHTML=`\n <article class="modal micromodal-slide" id="${t}" aria-hidden="true">\n <div class="modal__overlay" tabindex="-1" data-micromodal-close>\n <div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="${t}-title">\n <button class="modal__close" aria-label="Close modal" data-micromodal-close></button>\n <div class="modal__content" id="${t}-content">\n ${n}\n </div>\n </div>\n </div>\n </article>`;const r=document.importNode(o.content,!0),s="TEMPLATE"===a.tagName?document.importNode(a.content,!0):document.createDocumentFragment().appendChild(a.cloneNode(!0));a.parentNode.removeChild(a),r.getElementById(`${t}-content`).appendChild(s),document.body.appendChild(r),MicroModal.show(t,i)}Close(t){MicroModal.close(t)}Modal_Show(){document.documentElement.classList.add("noscroll"),document.dispatchEvent(new Event("modalShow"))}Modal_Close(){document.documentElement.classList.remove("noscroll"),document.dispatchEvent(new Event("modalClose"))}static get Instance(){return this._instance||(this._instance=new this)}}.Instance;a&&(window.modal=a)},3143:(t,e,i)=>{"use strict";i.d(e,{$2:()=>g,BT:()=>d,E5:()=>L,Ew:()=>_,F1:()=>b,GW:()=>H,JW:()=>P,M1:()=>q,Ow:()=>v,Qf:()=>B,Ql:()=>f,R1:()=>E,S$:()=>j,SR:()=>w,U8:()=>o,Uo:()=>m,WS:()=>R,Xo:()=>y,Yd:()=>M,Z6:()=>a,ZH:()=>u,br:()=>N,c$:()=>D,ex:()=>I,gG:()=>c,hv:()=>T,lF:()=>n,pC:()=>V,q8:()=>C,r2:()=>O,s7:()=>p,vG:()=>F,vL:()=>S,vQ:()=>G,xI:()=>r,yD:()=>k});var a,n,o,r,s=i(92),l=i(8218);class c{static get LangCode(){return DataList.LangCode}static get CurrencyCode(){return DataList.CurrencyCode}static get PageType(){return DataList.PageType}static get MaxLineQuantity(){return DataList.MaxLineQuantity||50}static get ValidationMessage(){return DataList.ValidationMessage}static get NostoPostRender(){return DataList.NostoPostRender}static get AdyenScriptUrl(){return DataList.AdyenScriptUrl}static get AdyenScriptIntegrity(){return DataList.AdyenScriptIntegrity}static get GoogleSigninScript(){return DataList.GoogleSigninScript}static get FacebookSigninScript(){return DataList.FacebookSigninScript}static get GoogleSigninClientId(){return DataList.GoogleSigninClientId}static get FacebookSigninAppId(){return DataList.FacebookSigninAppId}static get Debug(){return DataList.Debug}static get Empathy_Instance(){return DataList.Empathy_Instance}static get Empathy_LiveMode(){var t;return"true"===(null!==(t=DataList.Empathy_LiveMode)&&void 0!==t?t:"").toLowerCase()}static get Empathy_Store(){return DataList.Empathy_Store}static get FlowboxKey(){return DataList.FlowboxKey}static get IsJavaScriptLoggingEnabled(){return DataList.IsJavaScriptLoggingEnabled}static get IsGA4Enabled(){return DataList.IsGA4Enabled}static get IsGTMV2Enabled(){return DataList.IsGTMV2Enabled}static get ReCAPTCHAV3_SiteKey(){return DataList.ReCAPTCHAV3_SiteKey}static get RM71259_Enabled(){return DataList.RM71259_Enabled}static get JIRA_CNF20_Enabled(){return DataList.JIRA_CNF20_Enabled}static get JIRA241_Enabled(){return DataList.JIRA241_Enabled}static get CetelemPT_PartnerCheckoutScriptUrl_1(){return DataList.CetelemPT_PartnerCheckoutScriptUrl_1}static get CetelemPT_PartnerCheckoutScriptUrl_2(){return DataList.CetelemPT_PartnerCheckoutScriptUrl_2}static get IncidentMaxFileSizeKB(){return DataList.IncidentMaxFileSizeKB}static get IncidentAllowedFileTypes(){var t;return(null!==(t=DataList.IncidentAllowedFileTypes)&&void 0!==t?t:"").toLowerCase().split("|")}}class d{}function u(t){let e=[].concat(t||[]);for(let t=0;t<e.length;t++){let i=e[t];for(;i.firstChild;)i.removeChild(i.firstChild)}}function m(t){h(t)}function h(t,e=1){if(!t)return;"boolean"!=typeof t.showBusy&&(t.showBusy=!0),"boolean"!=typeof t.followRedirects&&(t.followRedirects=!0),t.method||(t.method=r.GET);const i=new XMLHttpRequest;if(i.onreadystatechange=i=>
1function(t,e,i){const a=t.target;if(1!==a.readyState){if(4===a.readyState){if(200!==a.status&&e.retry>1&&i<e.retry)return void h(e,i+1);if(e.showBusy&&s.f&&s.f.Hide(e.busyContainer),e.always&&e.always(t),200===a.status&&e.success){if(e.followRedirects){const t=a.getResponseHeader("location");if(t)return void(window.location.href=t)}e.success(t)}200!==a.status&&e.error&&e.error(t),205===a.status&&e.allowRefresh&&location.reload()}}else e.showBusy&&s.f&&s.f.Show(e.busyContainer,e.busyTimeout)}(i,t,e),i.open(r[t.method],t.url),i.setRequestHeader("x-requested-with","XMLHttpRequest"),t.headers)for(const e in t.headers)i.setRequestHeader(e,t.headers[e]);i.send(t.body)}!function(t){t[t.Invalid=0]="Invalid",t[t.Badinput=1]="Badinput",t[t.Customerror=2]="Customerror",t[t.Patternmismatch=3]="Patternmismatch",t[t.Rangeoverflow=4]="Rangeoverflow",t[t.Rangeunderflow=5]="Rangeunderflow",t[t.Stepmismatch=6]="Stepmismatch",t[t.Toolong=7]="Toolong",t[t.Tooshort=8]="Tooshort",t[t.Typemismatch=9]="Typemismatch",t[t.Valid=10]="Valid",t[t.Valuemissing=11]="Valuemissing"}(a||(a={})),function(t){t[t.PostCode=0]="PostCode",t[t.ShopList=1]="ShopList"}(n||(n={})),function(t){t[t.Colours=0]="Colours",t[t.Measures=1]="Measures"}(o||(o={})),function(t){t[t.GET=0]="GET",t[t.POST=1]="POST"}(r||(r={})),window.Fetch=m;const g=(()=>{if(!c.LangCode||!c.CurrencyCode)return t=>t.toString();let t;return Intl&&(t=new Intl.NumberFormat(c.LangCode,{style:"currency",currency:c.CurrencyCode})),e=>t?t.format(e):e.toLocaleString(c.LangCode,{style:"currency",currency:c.CurrencyCode})})();function p(t,e,i=!1){const a=t.cloneNode(!1);return a.innerHTML=e,t.parentNode.replaceChild(a,t),i&&a.querySelectorAll("script").forEach((t=>{if(t.type&&"text/javascript"!==t.type)return;const e=document.createElement("script");Array.from(t.attributes).forEach((t=>e.setAttribute(t.name,t.value))),e.appendChild(document.createTextNode(t.innerHTML)),t.parentNode.replaceChild(e,t)})),a}function f(t,e,i=!1){const a=(new DOMParser).parseFromString(e,"text/html").body.firstElementChild;return t.parentNode.replaceChild(a,t),i&&a.querySelectorAll("script").forEach((t=>{if(t.type&&"text/javascript"!==t.type)return;const e=document.createElement("script");Array.from(t.attributes).forEach((t=>e.setAttribute(t.name,t.value))),e.appendChild(document.createTextNode(t.innerHTML)),t.parentNode.replaceChild(e,t)})),a}function v(t,e,i="post"){const a=document.createElement("form");a.setAttribute("method",i),a.setAttribute("action",t);for(let t in e)if(e.hasOwnProperty(t)){const i=document.createElement("input");i.setAttribute("type","hidden"),i.setAttribute("name",t),i.setAttribute("value",e[t]),a.appendChild(i)}document.body.appendChild(a),a.submit()}function y(t,e,...i){let a=Date.now();return function(){a+e-Date.now()<0&&(t.apply(void 0,i),a=Date.now())}}function w(t,e){let i=t.nextElementSibling;if(!e)return i;for(;i;){if(i.matches(e))return i;i=i.nextElementSibling}}function b(t,e){let i=t.previousElementSibling;if(!e)return i;for(;i;){if(i.matches(e))return i;i=i.previousElementSibling}}function L(){return Math.max(document.documentElement.clientWidth,window.innerWidth||0)}function C(){return Math.max(document.documentElement.clientHeight,window.innerHeight||0)}function S(t){let e=t.getBoundingClientRect(),i=e.top,a=e.bottom;return i>=0&&a<=window.innerHeight}function x(t){return!t||null===t.offsetParent}function k(){return!!s.f&&(s.f.Show(void 0,0),!0)}function _(){return!!s.f&&(s.f.Hide(),!0)}function E(t,e){const i=t.lastIndexOf(".");return t.substr(0,i<0?t.length:i)+"."+l.hj[e].toLowerCase()}function T(t,e=!1){if(!t)return 1;const i=t.closest("label");if(null==i?void 0:i.hasAttribute("data-error-dismissed"))return 1;const n=t.checkValidity();if(n||t.validity.valueMissing&&e||x(t))return A(i),+n;let o,r;return t.validity.tooShort?o=a.Tooshort:t.validity.patternMismatch?o=a.Patternmismatch:t.validity.valueMissing?o=a.Valuemissing:t.validity.customError&&(o=a.Customerror,r=t.validationMessage),function(t,e=a.Invalid,i){if(t&&!t.hasAttribute("data-error-dismissed")&&(t.classList.add("error"),i||e!=a.Valuemissing||(i=c.ValidationMessage.Valuemissing),i||(i=t.dataset[`validity${a[e]}`]),i||(i=t.dataset[`validity${a[a.Invalid]}`]),i)){const e=t.querySelector(".validation");if(e){(e.querySelector(".text")||e).innerHTML=i;const a=e.querySelector(".dismiss");a&&!a.onclick&&(a.onclick=e=>{e.preventDefault(),t.setAttribute("data-error-dismissed",""),t.classList.remove("error")})}}}(i,o,r),0}function M(t,e=!1){if(!t)return 1;const i=t.nextElementSibling;if(i.hasAttribute("data-error-dismissed"))return 1;const n=t.checkValidity();if(n||t.validity.valueMissing&&e||x(t))return A(i.parentElement),+n;let o,r;return t.validity.tooShort?o=a.Tooshort:t.validity.patternMismatch?o=a.Patternmismatch:t.validity.valueMissing?o=a.Valuemissing:t.validity.customError&&(o=a.Customerror,r=t.validationMessage),function(t,e=a.Invalid,i){if(!t.hasAttribute("data-error-dismissed")&&(t.classList.add("error"),i||e!=a.Valuemissing||(i=c.ValidationMessage.Valuemissing),i||(i=t.dataset[`validity${a[e]}`]),i||(i=t.dataset[`validity${a[a.Invalid]}`]),i)){const e=t.querySelector(".validation");if(e){(e.querySelector(".text")||e).innerHTML=i;const a=e.querySelector(".dismiss");a&&!a.onclick&&(a.onclick=e=>{e.preventDefault(),t.setAttribute("data-error-dismissed",""),t.classList.remove("error")})}}}(i.parentElement,o,r),0}function A(t){null==t||t.classList.remove("error")}function I(t){const e=document.createElement("a");return e.href=t,{href:e.href,host:e.host,hostname:e.hostname,port:e.port,pathname:e.pathname,protocol:e.protocol,hash:e.hash,search:e.search}}function D(t,e=!1,i=!1){return t>47&&t<58||32==t||13==t&&e||t>64&&t<91||t>95&&t<112||t>185&&t<193||t>218&&t<223||(8==t||46==t)&&i}function P(t,e=window.location.href){t=t.replace(/[[]]/g,"\\$&");const i=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);
1if(i)return i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):""}function R(t,e=t,i=document){let a,n,o,r,s=!1,l=0,c=0;const d=new AbortController;return i.addEventListener("pointerdown",(function(t){t.target===e&&(o=t.clientX-l,r=t.clientY-c,s=!0,e.classList.add("drag"))}),{capture:!1,signal:d.signal}),i.addEventListener("pointerup",(function(t){o=a,r=n,s=!1,e.classList.remove("drag")}),{capture:!1,signal:d.signal}),i.addEventListener("pointermove",(function(e){var i,d;s&&(e.preventDefault(),a=e.clientX-o,n=e.clientY-r,l=a,c=n,i=a,d=n,t.style.transform="translate3d("+i+"px, "+d+"px, 0)")}),{capture:!1,signal:d.signal}),d}function B(t){const e=new Date;return e.setTime(24*(t-25569)*3600*1e3),e}function O(t){return t.toLocaleDateString(c.LangCode)}function q(t,e,i,a){a?t.addEventListener(e,i):t.removeEventListener(e,i)}function H(t,e,i){if(!i)return F(t,e);let a="",n="";-1!=t.indexOf("?")?(n=t.substring(0,t.indexOf("?")),a=t.substring(t.indexOf("?")+1,t.length)):(n=t,a="");let o=!1,r=a.split(/[?#&]+/),s="?";return $(r).each((function(t,a){{let t=a.split("=");if(t.length>1){let a=t[0],r=t[1];a.toLowerCase()==e.toLowerCase()&&(r=i,o=!0),n+=s+a+"="+r,s="&"}}})),o||(n+=s+e+"="+i),n}function F(t,e){let i="";if(void 0!==t){let a="";-1!=t.indexOf("?")?(i=t.substring(0,t.indexOf("?")),a=t.substring(t.indexOf("?")+1,t.length)):(i=t,a="");let n=!1,o=a.split(/[?#&]+/),r="?";$(o).each((function(t,a){{let t=a.split("=");if(t.length>1){let a=t[0],o=t[1];a.toLowerCase()==e.toLowerCase()?n=!0:(i+=r+a+"="+o,r="&")}}}))}return i}function G(t){let e=encodeURIComponent(t)+"=",i=document.cookie.split(";");for(let t=0;t<i.length;t++){let a=i[t];for(;" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(e))return decodeURIComponent(a.substring(e.length,a.length))}return null}function V(t,e,i){let a;if(i){let t=new Date;t.setTime(t.getTime()+24*i*60*60*1e3),a="; expires="+t.toGMTString()}else a="";document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+a+"; path=/"}function j(t,e){let i={ErrorMessage:t,StackTrace:e,ErrorDate:(new Date).toJSON()};return new Promise(((t,e)=>{m({url:"/slapi/admin/logJavaScriptException",method:r.POST,success:e=>t(e.target),error:t=>e(t),headers:{"Content-Type":"application/json;charset=UTF-8"},body:JSON.stringify(i),showBusy:!1})}))}let U=document.querySelector("body");function N(t,e,i){return new Promise((a=>{if(e)new MutationObserver((e=>{U=document.querySelector(t);for(const t of e)"childList"===t.type?console.log("Child nodes changed"):"attributes"===t.type?console.log("Attribute changed"):"characterData"===t.type?console.log("Text content changed"):"subtree"===t.type&&console.log("Subtree changed");null!==i&&i(U)})).observe(U,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),U&&a(U);else{let e=document.querySelector(t);e&&a(e)}}))}},4433:(t,e,i)=>{"use strict";i.d(e,{Fq:()=>l,L6:()=>u,ai:()=>r,eR:()=>d,gS:()=>c,sp:()=>s});var a=i(8397),n=i(8218);const o={},r=window.matchMedia("(max-width:"+a.device.mobile.maxWidth+")"),s=(t,e)=>{let i,r;switch(t){case n.lL.xxs:i=a.media.screenXS;break;case n.lL.xs:r=a.media.screenXS,i=a.media.screenSM;break;case n.lL.sm:r=a.media.screenSM,i=a.media.screenMD;break;case n.lL.md:r=a.media.screenMD,i=a.media.screenLG;break;case n.lL.lg:r=a.media.screenLG,i=a.media.screenXL;break;case n.lL.xl:r=a.media.screenXL}let s="",l="";i&&(s=`and (max-width: ${i})`),r&&(l=`and (min-width: ${r})`);let c="only screen ";switch(e){case n.aU.upper:c+=s;break;case n.aU.lower:c+=l;break;default:c+=`${l} ${s}`}return o[c]=o[c]||window.matchMedia(c)},l=window.matchMedia(a.media.touch).matches,c=window.matchMedia(a.media.notTouch).matches,d=a.transition,u=(parseInt(a.media.screenXS),window.matchMedia(`only screen and (min-width: ${a.media.trustedShopsBadge}) and (max-width: ${a.media.screenMD})`));window.variables={mobile:r}},3538:(t,e,i)=>{"use strict";var a=i(3926);function n(t){let e="left"===t?"+=3px":"-=3px";$("#flexContentToScroll").animate({scrollLeft:e},1,(function(){$("#flexContentToScroll").scrollLeft()==$(".flex-control-nav").width()-$("#flexContentToScroll").width()&&($("#scrollFlex").removeClass("next").addClass("previous"),$("#scrollFlex").find("span.glyphicon").removeClass("glyphicon-menu-right").addClass("glyphicon-menu-left"),rightReached=!0),0==$("#flexContentToScroll").scrollLeft()&&($("#scrollFlex").removeClass("previous").addClass("next"),$("#scrollFlex").find("span.glyphicon").removeClass("glyphicon-menu-left").addClass("glyphicon-menu-right"),r
1ightReached=!1),scrolling&&n(t)}))}$(document).ready((function(){$(".flexslider").flexslider({animation:"slide",manualControls:".flex-control-nav li",useCSS:!1,pausePlay:!0,pauseText:"",playText:"",directionNav:!0,customDirectionNav:$(".custom-navigation a"),before:function(t){t.isInViewport()&&(0,a.Wi)($(t.slides[t.currentSlide]).find("a")[0])},start:function(t){t.find(".flexslider-controls").toggle(t.find(".slides > li:not('.clone')").length>1)}});let t=$("#mobile-products1");t.owlCarousel&&(t.owlCarousel({itemsCustom:[[0,1.5],[450,2.5]],navigation:!1}),$("#mobile-products2").owlCarousel({itemsCustom:[[0,1.5],[450,2.5]],navigation:!1}),$("#mobile-products3").owlCarousel({itemsCustom:[[0,1.5],[450,2.5]],navigation:!1}),$("#mobile-products4").owlCarousel({itemsCustom:[[0,1.5],[450,2.5]],navigation:!1}),$("#mobile-products5").owlCarousel({itemsCustom:[[0,1.5],[450,2.5]],navigation:!1})),$("#scrollFlex").bind("mousedown",(function(t){scrolling=!0,$("#scrollFlex").hasClass("next")?n("left"):n("right")})).bind("mouseup",(function(t){scrolling=!1})),$(".flex-control-nav").width()>$(".flex-control-nav-wrapper").width()?$(".flexslider-controls .flex-direction-nav").show():$(".flexslider-controls .flex-direction-nav").hide()}));var o=i(4433),r=i(8218),s=i(6958);class l{constructor(){this._swipers=[],this._mobileSwipers=[],l._context.querySelectorAll(".swiper-container.swiper-all").forEach((t=>{this._swipers.push(new Swiper(t,this.GetSwiperConfiguration(t)))})),l._context.querySelector(".link-checkdeliverydate")&&s.o.Show("modal-checkdeliverydate");const t=o.sp(r.lL.sm,r.aU.lower);t.addListener((t=>this.Screen_Sm_Lower_Change(t.matches))),this.Screen_Sm_Lower_Change(t.matches);const e=l._context.querySelector(".home-groupprod");e&&(e.querySelectorAll(".swiper-slide").forEach((t=>{t.addEventListener("click",(()=>window.swogoGA.AddToCart({productReference:t.dataset.productReference,itemReference:t.dataset.itemReference,quantity:1})))})),e.querySelector(".group .btn").addEventListener("click",(()=>{e.querySelectorAll(".swiper-slide").forEach((t=>{window.swogoGA.AddToCart({productReference:t.dataset.productReference,itemReference:t.dataset.itemReference,quantity:1})}))}))),window.addEventListener("load",(()=>{const t=l._context.querySelector("#home-slider");if(t){const e=t.querySelectorAll(".swiper-navigation-button");e&&(t.addEventListener("mouseover",(()=>{e.forEach((t=>{t.classList.remove("hidden")}))})),t.addEventListener("mouseout",(()=>{e.forEach((t=>{t.classList.add("hidden")}))}))),setInterval((()=>{const e=t.querySelector(".swiper-slide-active"),i=e.querySelector("img");if(e){let a=t.querySelectorAll(".swiper-pagination-bullet"),n=t.querySelector(".swiper-pagination-bullet-active");const o=e.getAttribute("data-active-dot-color");if(a&&n)if(a.forEach((t=>{t.style.backgroundColor="#C4C4C4"})),""!==o)n.style.backgroundColor=o;else if(""===o&&i){let t=this.getAverageRGB(i),e=this.RGBToHSL(t.r,t.g,t.b);n.style.backgroundColor=e>60?"#E10600":"white"}}}),50)}const e=l._context.querySelector(".services-container");if(e&&window.innerWidth<767){const t=e.innerHTML;let i=e.querySelectorAll(".service-item-container"),a=i[0];e.insertAdjacentHTML("afterbegin",t),a.scrollIntoView({behavior:"auto",block:"nearest",inline:"start"}),e.addEventListener("scroll",(()=>{i=e.querySelectorAll(".service-item-container"),a=i[0];const n=i[i.length-1],o=a.getBoundingClientRect();n.getBoundingClientRect().left<e.offsetWidth&&e.insertAdjacentHTML("beforeend",t),o.right>0&&(e.insertAdjacentHTML("afterbegin",t),a.scrollIntoView({behavior:"auto",block:"nearest",inline:"start"}))}))}}))}Screen_Sm_Lower_Change(t){if(t)for(;this._mobileSwipers.length>0;)this._mobileSwipers.shift().destroy();else"function"==typeof Swiper&&l._context.querySelectorAll(".swiper-container.swiper-mobile").forEach((t=>{this._mobileSwipers.push(new Swiper(t,this.GetSwiperConfiguration(t)))}))}GetSwiperConfiguration(t){return{spaceBetween:15,preloadImages:!1,watchOverflow:!0,lazy:!0,navigation:{nextEl:t.querySelector(".swiper-button-next"),prevEl:t.querySelector(".swiper-button-prev")},pagination:{el:t.querySelector(".swiper-pagination"),clickable:!0},autoplay:{delay:7e3}}}getAverageRGB(t){let e,i,a,n,o={r:0,g:0,b:0},r=document.createElement("canvas"),s=r.getContext&&r.getContext("2d"),l=-4,c={r:0,g:0,b:0},d=0;if(!s)return o;a=r.height=t.naturalHeight||t.offsetHeight||t.height,i=r.width=t.naturalWi
1dth||t.offsetWidth||t.width;try{s.drawImage(t,0,0),e=s.getImageData(0,0,i,a)}catch(t){return console.log("Security error, image cannot be read as it is on a different domain."),o}for(n=e.data.length;(l+=20)<n;)++d,c.r+=e.data[l],c.g+=e.data[l+1],c.b+=e.data[l+2];return c.r=~~(c.r/d),c.g=~~(c.g/d),c.b=~~(c.b/d),c}RGBToHSL(t,e,i){t/=255,e/=255,i/=255;let a=Math.min(t,e,i),n=Math.max(t,e,i),o=n-a,r=0,s=0,l=0;return r=0===o?0:n===t?(e-i)/o%6:n===e?(i-t)/o+2:(t-e)/o+4,r=Math.round(60*r),r<0&&(r+=360),l=(n+a)/2,s=0===o?0:o/(1-Math.abs(2*l-1)),s=+(100*s).toFixed(1),l=+(100*l).toFixed(1),l}static get Instance(){return this._context&&(this._instance||(this._instance=new this))}}l._context=document.getElementById("home"),l.Instance,i(9214)},3926:(t,e,i)=>{"use strict";i.d(e,{H$:()=>h,KV:()=>c,UI:()=>f,Vl:()=>C,Wi:()=>b,Y5:()=>o,jl:()=>s,oj:()=>v,uT:()=>l});var a=i(3143);function n(t){$(".swiper-wrapper a").each((function(){$(this).isInViewport()&&b(this)}))}function o(){$("[data-gtm-click-shopavailability=true]").off("click",_),$("[data-gtm-click-shopavailability=true]").firstOn("click",_),$("[data-gtm-click-start-shop-availability=true]").off("click",g),$("[data-gtm-click-start-shop-availability=true]").firstOn("click",g),$("[data-gtm-click-selectfilter]").off("click",u),$("[data-gtm-click-selectfilter]").firstOn("click",u),$(".orderBy .dropdown-menu .inner li").off("click",u),$(".orderBy .dropdown-menu .inner li").firstOn("click",u),$(".pageSize .dropdown-menu .inner li").off("click",p),$(".pageSize .dropdown-menu .inner li").firstOn("click",p),$('#bannerMap form [data-id="community-list"] +').find("li").off("click",x),$('#bannerMap form [data-id="community-list"] +').find("li").firstOn("click",x),$('#bannerMap form [data-id="Shop"] +').find("li").off("click",S),$('#bannerMap form [data-id="Shop"] +').find("li").firstOn("click",S),$("[data-gtm-click-eventtracking]").off("click",y),$("[data-gtm-click-eventtracking]").firstOn("click",y),$("[data-gtm-click-servicetracking]").off("click",w),$("[data-gtm-click-servicetracking]").firstOn("click",w),$("[data-gtm-contact-track]").off("click",r),$("[data-gtm-contact-track]").firstOn("click",r),$("[data-gtm-click-virtualpv]").off("click",m),$("[data-gtm-click-virtualpv]").firstOn("click",m),$("a[data-gtm-click-createaccount=true]").off("click",k),$("a[data-gtm-click-createaccount=true]").firstOn("click",k),$('a[href^="mailto:"]').off("click",E),$('a[href^="mailto:"]').firstOn("click",E),$('a[href^="tel:"]').off("click",T),$('a[href^="tel:"]').firstOn("click",T),$("a[target=_blank][href$='.pdf']").off("click",A),$("a[target=_blank][href$='.pdf']").firstOn("click",A);let t=new RegExp(location.host);$("a").each((function(){let e=$(this).prop("href");!(e.length>0)||t.test(e)||/mailto/i.test(e)||/javascript:/i.test(e)||/tel/i.test(e)||($(this).off("click",M),$(this).firstOn("click",M))})),$("[data-gtm-event-click=true]").off("click",I),$("[data-gtm-event-click=true]").firstOn("click",I),$("[data-toggle=tab][data-product-tab]").off("click",L),$("[data-toggle=tab][data-product-tab]").firstOn("click",L),$("#bannerMap form").off("change",o),$("#bannerMap form").on("change",o)}function r(){if(!$("#contacto").valid())return!0;let t=$('#contacto [data-id="InquiryType"]').attr("title"),e="";e="1"!=$("#shop-list-section").css("opacity")?"Online shop":$("#shop-list-section [data-id=Shop]").attr("title"),dataLayer.push({event:"gaEvent",eventCategory:"Contact submitted",eventAction:t,eventLabel:e})}function s(t){let e=$(t).attr("data-gtm-detail-price");e&&(e=parseFloat(e.replace(",",".")).toFixed(2));let i={name:$(t).attr("data-gtm-detail-name"),id:$(t).attr("data-gtm-detail-id"),price:e,brand:$(t).attr("data-gtm-detail-brand"),category:$(t).attr("data-gtm-detail-category"),variant:$(t).attr("data-gtm-detail-variant")},a=$(t).attr("data-gtm-detail-dimension8");a&&(i.dimension8=a);let n=$(t).attr("data-gtm-detail-dimension14");n&&(i.dimension14=n);let o=$(t).attr("data-gtm-detail-dimension126");o&&(i.dimension126=o);let r=$(t).attr("data-gtm-detail-dimension1");r&&(i.dimension1=r);let s=$(t).attr("data-gtm-detail-dimension2");s&&(i.dimension2=s);let l=$(t).attr("data-gtm-detail-dimension18");l&&(i.dimension18=l);let c=$(t).attr("data-gtm-detail-dimension19");c&&(i.dimension19=c);let d=$(t).attr("data-gtm-detail-dimension20");d&&(i.dimension20=d);let u=$(t).attr("data-gtm-detail-dimension21");u&&(i.dimension21=u);
1let m=$(t).attr("data-gtm-detail-dimension24");m&&(i.dimension24=m);let h=$(t).attr("data-gtm-detail-dimension25");h&&(i.dimension25=h);let g=$(t).attr("data-gtm-detail-dimension127");g&&(i.dimension127=g);let p=$(t).attr("data-gtm-detail-dimension128");p&&(i.dimension128=p);let f=$(t).attr("data-gtm-detail-dimension129");f&&(i.dimension129=f);let v=$(t).attr("data-gtm-detail-dimension130");v&&(i.dimension130=v);let y=$(t).attr("data-gtm-detail-dimension135");y&&(i.dimension135=y);let w=$(t).attr("data-gtm-detail-dimension137");w&&(i.dimension137=w);let b=$(t).attr("data-gtm-detail-dimension139");b&&(i.dimension139=b);let L=$(t).attr("data-gtm-detail-dimension140");L&&(i.dimension140=L);let C=$(t).attr("data-gtm-detail-dimension142");C&&(i.dimension142=C);let S=$(t).attr("data-gtm-detail-dimension143");S&&(i.dimension143=S);let x=$(t).attr("data-gtm-detail-dimension153");x&&(i.dimension153=x);let k=$(t).attr("data-gtm-detail-dimension154");k&&(i.dimension154=k);let _=$(t).attr("data-gtm-detail-dimension158");_&&(i.dimension158=_);let E=$(t).attr("data-gtm-detail-dimension159");E&&(i.dimension159=E);let T=$(t).attr("data-gtm-detail-dimension160");T&&(i.dimension160=T);let M=$(t).attr("data-gtm-detail-dimension164");M&&(i.dimension164=M);let A=$(t).attr("data-gtm-detail-dimension166");M&&(i.dimension166=A);let I=$(t).attr("data-gtm-detail-metric103");I&&(i.metric103=I);let D=$(t).attr("data-gtm-detail-metric104");return D&&(i.metric104=D),i}function l(t){return $(t).attr("data-gtm-detail-productlisting")}function c(t){let e=$(t).attr("data-gtm-detail-position");return e?parseFloat(e.replace(",",".")):1}function d(t){let e={category:$(t).attr("data-gtm-event-category"),action:$(t).attr("data-gtm-event-action"),label:$(t).attr("data-gtm-event-label"),event:"eventga"};return e.category||(e.category="Interaccion"),e}function u(){let t="";t=void 0!==$(this).attr("data-gtm-filter-value")?$(this).attr("data-gtm-filter-value"):$(this).find(".text").html();let e=(i=$(".selectpicker.orderBy").find(":contains("+t+")")[0],newcustomEvent={event:"gaEvent",eventCategory:$(i).attr("data-gtm-event-category"),eventAction:$(i).attr("data-gtm-event-action"),eventLabel:$(i).attr("data-gtm-event-label")});var i;void 0!==e.eventAction?dataLayer.push(e):dataLayer.push({event:"gaEvent",eventCategory:"Product Filter",eventAction:"Product Sorting",eventLabel:"Select "+t})}function m(){dataLayer.push({event:"virtPath",virtPath:"/virtPath"+$(this).attr("data-gtm-overlayname")+"/"})}function h(){dataLayer.push({event:"virtPath",virtPath:"/virtPath"+window.location.pathname+"/add-to-cart-overlay/"})}function g(){dataLayer.push({event:"virtPath",virtPath:"/virtPath"+window.location.pathname+"/availability-checker-overlay/"})}function p(){dataLayer.push({event:"gaEvent",eventCategory:"Product List",eventAction:"Number products per page",eventLabel:$(this).find(".text").html()})}function f(t){dataLayer.push({newsletterSubscriber:"true",userEmailId:t,event:"gaEvent",eventCategory:"Newsletter",eventAction:"Register",eventLabel:"Success"})}function v(t){dataLayer.push({event:"gaEvent",eventCategory:"Newsletter",eventAction:"Register",eventLabel:"Failure: Error Message: "+t})}function y(){let t=$(this).attr("data-gtm-event-value");if(void 0!==$(this).attr("data-gtm-event-category")&&"Product Filter"==$(this).attr("data-gtm-event-category")&&("Brand"==$(this).attr("data-gtm-event-type")||"Size"==$(this).attr("data-gtm-event-type"))||"Energy Rating"==$(this).attr("data-gtm-event-type")){if($(this).parent().find("[checked]").length>0)return!0;Array.prototype.forEach.call($(this).parent().parent().parent().find("[checked] +"),(function(e){t+=" | "+$(e).html().trim()}))}!$(this).slider||void 0!==this.dataset.gtmEventType&&"Price"!=this.dataset.gtmEventType||(t="Select "+$(this).slider("values").join("-")),dataLayer.push({event:"gaEvent",eventCategory:$(this).attr("data-gtm-event-category"),eventAction:$(this).attr("data-gtm-event-type"),eventLabel:t})}function w(){this.checked&&dataLayer.push({event:"gaEvent",eventCategory:$(this).attr("data-gtm-event-category"),eventAction:$(this).attr("data-gtm-event-type"),eventLabel:$
1(this).attr("data-gtm-event-value")})}function b(t){if(void 0!==t&&void 0!==t.type&&"click"==t.type.toLowerCase()&&(t=t.currentTarget),a.gG.IsGTMV2Enabled&&void 0===$(t).data("isGTMImpressionListed")&&void 0!==$(t).attr("data-gtm-detail-name"))dataLayer.push({ecommerce:null}),dataLayer.push({event:"view_promotion",ecommerce:{creative_name:$(t).attr("data-gtm-detail-creative"),creative_slot:$(t).attr("data-gtm-detail-position"),promotion_id:$(t).attr("data-gtm-detail-id"),promotion_name:$(t).attr("data-gtm-detail-name")}}),$(t).data("isGTMImpressionListed","true");else if(void 0===$(t).data("isGTMImpressionListed")&&void 0!==$(t).attr("data-gtm-detail-name")){let e=[],i={id:$(t).attr("data-gtm-detail-id"),name:$(t).attr("data-gtm-detail-creative"),creative:$(t).attr("data-gtm-detail-name"),position:$(t).attr("data-gtm-detail-position")},a=$(t).attr("data-gtm-detail-dimension14");a&&(i.dimension14=a),e.push(i),dataLayer.push({event:"EECpromotionImpression",ecommerce:{promoView:{promotions:e}}}),$(t).data("isGTMImpressionListed","true")}}function L(){let t=[];if("false"==$(this).attr("data-tab-clicked").toLowerCase()){let e=$($(this).attr("href"));$(e).find("[data-gtm-impression=true]").each((function(){let e=s($(this));e.list=$(this).attr("data-gtm-detail-productlisting"),e.position=parseInt($(this).attr("data-gtm-detail-position")),delete e.variant,t.push(e)})),dataLayer.push({event:"EECproductClick",ecommerce:{impressions:t}}),$(this).attr("data-tab-clicked","true")}}function C(t){let e="";void 0!==t&&void 0!==t.dataset&&void 0!==t.dataset.gtmEventTitle&&(e=t.dataset.gtmEventTitle),dataLayer.push({event:"gaEvent",eventCategory:"Engagement",eventAction:"Add to wishlist",eventLabel:e})}function S(){let t=$(this).find(".text").html();dataLayer.push({event:"gaEvent",eventCategory:"Catalogs",eventAction:"Store selected",eventLabel:t})}function x(){let t=$(this).find(".text").html();dataLayer.push({event:"gaEvent",eventCategory:"Catalogs",eventAction:"Select region",eventLabel:t})}function k(){}function _(){let t="",e="";if($('input[type=radio][data-gtm-click-shopavailability-detail="ident"]:checked')){let i=$('input[type=radio][data-gtm-click-shopavailability-detail="ident"]:checked + label [data-gtm-click-shopavailability-detail="value"]');$(i).is("select")?(t="Tienda Favorita",e=$(i).children(":selected").text()):(t="CP",e=$(i).val());let a=d($(this));a.category="Consulta Disponibilidad",a.action=t,a.label=e,dataLayer.push(a)}}function E(){let t=d($(this)),e=function(t){let e={},i=t.match(/mailto:([^\?]*)/);i=!!i[1]&&i[1];let a=t.match(/subject=([^&]+)/);a=!!a&&a[1].replace(/\+/g," ");let n=t.match(/body=([^&]+)/);return n=!!n&&n[1].replace(/\+/g," "),i&&(e.email=i),a&&(e.subject=a),n&&(e.body=n),e}(this.href);t.action="MailTo",t.label=e.email?e.email:"",dataLayer.push(t)}function T(){let t=d($(this)),e=this.href.match(/tel:(.*)$/);e=e[1]?e[1]:"",t.action="ClickToCall",t.label=e,dataLayer.push(t)}function M(){let t=d($(this));t.action="OutboundLink",t.label=this.href,dataLayer.push(t)}function A(){let t=d($(this));t.action="FileDownload",t.label=this.href.split("/").reverse()[0],dataLayer.push(t)}function I(){let t=d($(this));dataLayer.push(t)}$(document).ready((function(){o(),$("form").addTriggersToJqueryValidate().triggerElementValidationsOnFormValidation(),$("form").bind("formValidation",(function(t,e,i){i||($(e).prop("name"),$(e).find("select.input-validation-error,input.input-validation-error").each((function(){!function(t,e){let i=e.data("gtm-fail-name");void 0!==i&&""!=i&&"Datos Personales - "!=i||(i=$(e).prop("name"));let a={event:"gaEvent",eventCategory:"Checkout",eventAction:"Form Error",eventLabel:i};dataLayer.push(a)}(0,$(this))})))})),"Home"==DataList.PageType&&window.addEventListener("scroll",n),window.addEventListener("message",(function(t){let e;try{if(e=JSON.parse(t.data),t.origin.indexOf("tiendeo")<0||"trakkFrame"!=e.type)return}catch(t){return}void 0!==e.eventLabel&&""==e.eventLabel||dataLayer.push(e)}))})),$(window).on("load",(function(){o(),a.pC("AdGTMValue",window._adblocker?"false":"true",1)})),$.fn.isInViewport=function(){let t=this[0].getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}}},t=>{t(t.s=3538)}]); 2//# sourceMappingURL=home.1e654b7fe6fcd581bcd2.min.js.map
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.