1"use strict";(self["FC.EcomwebpackJsonp"]=self["FC.EcomwebpackJsonp"]||[]).push([[6067,8158],{52495:(t,e,n)=>{function r(){try{if("function"!=typeof window.__cmp)return!0;var t=window.__cmp("consentStatus");return!(!(null==t?void 0:t.consentExists)||!(null==t?void 0:t.userChoiceExists))}catch(t){return!0}}function o(){var t;return"function"==typeof(null===(t=window.Brevo)||void 0===t?void 0:t.push)}function i(){return"true"===document.documentElement.dataset.userAuthenticated}function a(t){if(r())t();else try{window.__cmp("addEventListener",["consent",function(){r()&&t()},!1],null)}catch(t){console.debug("BrevoTracker consent listener registration failed:",t)}}function u(){document.cookie.split(";").forEach((function(t){var e=t.trim().split("=")[0];e.startsWith("sib_")&&(document.cookie="".concat(e,"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"))}))}function c(t){return t?t.startsWith("http")?t:"".concat(window.location.origin).concat(t):""}function l(t){var e;return(null===(e=null==t?void 0:t.items)||void 0===e?void 0:e.length)?t.items.map((function(t){var e,n,r,o,i,a,u,l,d,s=t.sitecoreProductInfo,v=null!==(n=null===(e=t.productInformation)||void 0===e?void 0:e.price)&&void 0!==n?n:t.price;return{id:null!==(i=null!==(o=null===(r=t.productInformation)||void 0===r?void 0:r.productSku)&&void 0!==o?o:t.itemId)&&void 0!==i?i:"",name:null!==(u=null!==(a=null==s?void 0:s.Title)&&void 0!==a?a:null==s?void 0:s.Name)&&void 0!==u?u:"",price:null!==(l=null==v?void 0:v.value)&&void 0!==l?l:0,quantity:null!==(d=t.quantity)&&void 0!==d?d:1,url:(null==s?void 0:s.Url)?c(s.Url):window.location.href,image:(null==s?void 0:s.ImageUrl)?c(s.ImageUrl):""}})):[]}function d(t){var e,n,r,o;if(!(null==t?void 0:t.cartSummary))return null;var i=null!==(e=t.cartSummary.totalPriceWithTax)&&void 0!==e?e:t.cartSummary.grandTotal;return{id:"cart:".concat(null!==(n=t.id)&&void 0!==n?n:"unknown"),data:{total:null!==(r=null==i?void 0:i.value)&&void 0!==r?r:0,currency:null!==(o=null==i?void 0:i.currencyIsoCode)&&void 0!==o?o:"EUR",url:window.location.href,items:l(t)}}}function s(t,e,n){o()&&n&&e&&a((function(){try{window.Brevo.push(["identify",{identifiers:{email_id:e}}]),window.Brevo.push(["track",t,{email:e},n])}catch(e){console.debug("BrevoTracker.".concat(t," failed:"),e)}}))}n.r(e),n.d(e,{BrevoTracker:()=>v});var v={identify:function(t){o()&&t&&a((function(){try{window.Brevo.push(["identify",{identifiers:{email_id:t}}])}catch(t){console.debug("BrevoTracker.identify failed:",t)}}))},reset:function(){u()},trackCartUpdated:function(t){i()&&s("cart_updated",null==t?void 0:t.email,d(t))},trackCartDeleted:function(t){i()&&s("cart_deleted",null==t?void 0:t.email,d(t))},trackOrderCompleted:function(t,e){var n=d(e);n&&(n.id="order:".concat(t)),s("order_completed",null==e?void 0:e.email,n)}};document.addEventListener("DOMContentLoaded",(function(){i()||u()}))},20348:(t,e,n)=>{n.r(e),n.d(e,{default:()=>d});var r=n(42120),o=n(40939),i=n(98530),a=n(52495),u=n(47012),c=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},l=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};const d=new(function(){function t(t){var e=this;this.selector=t,this.getProductItemArray=function(t){return t},this.getProductItemArrayData=function(t){var n,r,o,i,a,u,c=t.sitecoreProductInfo,l={item_id:null!==(n=c.ProductNumber)&&void 0!==n?n:null,item_pid:null!==(r=c.Ean)&&void 0!==r?r:null,item_name:null!==(o=c.Title)&&void 0!==o?o:null,item_variant:null!==(i=c.Subtitle)&&void 0!==i?i:null,item_brand:null!==(a=c.Brand)&&void 0!==a?a:null,item_category:null!==(u=c.Category)&&void 0!==u?u:null,price:t.productInformation.price.value?t.productInformation.price.value.toFixed(2):null,quantity:t.quantity||NaN};return e.getProductItemArray(l)},this.container=document.getElementById(t);var n=new URLSearchParams(window.location.search).get("guid");this.cart=JSON.parse(sessionStorage.getItem("cart")),n&&this.getOrderInformation(n).then((function(t){var n,i;e.setOrderInformation(t);(null===(n=window.__cmp("consentStatus"))||void 0===n?void 0:n.consentExists)&&(null===(i=window.__cmp("consentStatus"))||void 0===i||i.userChoiceExists);(0,r.rK)(),e.trackingThankYouPage(t.incrementId,t.email),(0,o.kT)(u.cartCookieName),e.removeCartFromLocalStorage()})).catch((function(t){return console.log(t.stack)}))}return t.prototype.setOrderInformation=function(t){var e=t.incrementId,n=t.email;this.updateOrderNumber(e),this.setEmail(n)},t.prototype.updateOrderNumber=function(t){var e="".concat(this.container.dataset.ordernumberlabel,": "),n=document.createElement("span");n.textContent=t;var r=this.container.querySelector("#ordernumber");r.innerHTML=e,r.appendChild(n)},t.prototype.setEmail=function(t){var e=this.container.querySelector(".confirmation-message__email-info");if(e){var n=document.createElement("span");n.textContent=t,e.innerHTML=e.innerHTML.replace(/\[\[email\]\]/g,n.outerHTML)}},t.prototype.getOrderInformation=function(t){return c(this,void 0,void 0,(function(){var e;return l(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i.default.client.get(i.default.getOrdersEndpoint(t))];case 1:return[2,n.sent().data];case 2:return e=n.sent(),console.error("Error retrieving order information:",e),[3,3];case 3:return[2]}}
1))}))},t.prototype.trackingThankYouPage=function(t,e){var n,r,o,i,u,c,l,d,s,v,m,f,p=this,h=null===(r=null===(n=this.cart)||void 0===n?void 0:n.items)||void 0===r?void 0:r.map((function(t){return p.getProductItemArrayData(t)}));this.cart&&(window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"eec.purchase",event_name:"purchase",event_source:"source_code",loginIdent:e,ecommerce:{transaction_id:t,currency:null===(i=null===(o=this.cart.cartSummary)||void 0===o?void 0:o.totalPriceWithTax)||void 0===i?void 0:i.currencyIsoCode,value:(null===(c=null===(u=this.cart.cartSummary)||void 0===u?void 0:u.totalPriceWithTax)||void 0===c?void 0:c.value).toFixed(2),tax:(null===(d=null===(l=this.cart.cartSummary)||void 0===l?void 0:l.totalTax)||void 0===d?void 0:d.value).toFixed(2),shipping:(null===(v=null===(s=this.cart.cartSummary)||void 0===s?void 0:s.deliveryCost)||void 0===v?void 0:v.value).toFixed(2),coupon:(null===(f=null===(m=this.cart.cartSummary)||void 0===m?void 0:m.discountsList[0])||void 0===f?void 0:f.code)||null,items:h}}),e&&(a.BrevoTracker.identify(e),this.cart.email=e),a.BrevoTracker.trackOrderCompleted(t,this.cart))},t.prototype.removeCartFromLocalStorage=function(){this.cart&&sessionStorage.removeItem("cart")},t}())("confirmation-message")}}]);
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.