1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[52,1322,8412,9384],{64719(t,e,n){var o=n(8477),r=n(5440),i=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n},a=function(){function t(t){this.element=t,this.hotspotArea=t,this.image=this.element.querySelector("img"),this.layer=new o.default(document.body),this.imageWidth=this.hotspotArea.dataset.imageWidth,this.imageHeight=this.hotspotArea.dataset.imageHeight,this.closeText=this.hotspotArea.dataset.closeTitle,this.hotspotData=this.hotspotArea.querySelector(".cw-hotspot-data").innerHTML,this.hotspotData&&(this.contentArray=JSON.parse(this.hotspotData)),this.init()}return t.setup=function(e){void 0===e&&(e='[data-module="HotSpot"]'),Array.from(document.querySelectorAll(e)).filter(function(t){return!t.dataset.moduleInitialized}).forEach(function(e){new t(e),e.dataset.moduleInitialized="true"})},t.prototype.init=function(){return(0,r.LE)(this.image)?this.createHotspots():this.setImageEventHandler(),this},t.prototype.setImageEventHandler=function(){var t=this;return this.image.addEventListener("load",function(){return t.createHotspots()}),this},t.prototype.createHotspots=function(){var t=this;return this.contentArray&&this.contentArray.forEach(function(e){var n=e.X,o=e.Y,a=i(e,["X","Y"]),s=t.responsiveHotspot(n,o,t.imageWidth,t.imageHeight,a.Color);a.HotspotDetail.forEach(function(e){var n=t.getLayerContent(e,t.closeText);s.addEventListener("click",function(){return t.layer.adjustTransformOrigin(s).insertContent((0,r.Uo)(n)).open(function(){t.onLayerOpen(s,e)})})})}),this},t.prototype.onLayerOpen=function(t,e){t.classList.add("active")},t.prototype.placeHotspot=function(t,e,n){void 0===n&&(n="default-color");var o=this.hotspotArea,r=document.createElement("div"),i=document.createElement("span");return r.appendChild(i),r.setAttribute("class","cw-hotspot "+n),r.style.left=t+"%",r.style.top=e+"%",i.className="cw-hotspot-btn cw-u-plus-minus-btn",o.appendChild(r),r},t.prototype.responsiveHotspot=function(t,e,n,o,r){var i=t/n*100,a=e/o*100;return this.placeHotspot(i,a,r)},t.prototype.getLayerContent=function(t,e){var n=t.Title,o=t.Copy,r=t.Link,i=r.Title,a=r.Url;return'<div class="cw-layer__content--cicle__wrapper">\n <div class="cw-layer__close-btn cw-layer__close-btn--circle cw-circle-layer-close">\n <div class="cw-close-icon cw-close-icon--blue"></div>\n <span class="cw-close-text">'.concat(e,'</span>\n </div>\n <div class="cw-u-container">\n <div class="cw-layer__expander cw-expander" data-module="Expander">\n <div class="cw-expander__content" data-options=\'{"collapsedHeight":225}\'>\n <h2 class="headline cw-h2-headline cw-h2-headline--blue">').concat(n,'</h2>\n <div class="cw-text">\n <div>').concat(o,'</div>\n <a class="cw-link" href="').concat(a,'">').concat(i,'</a>\n </div>\n </div>\n <button class="cw-u-plus-minus-btn cw-expander__button" hidden></button>\n </div>\n </div></div>')},t}();const s=a;new a.setup,n.d(e,["default",0,s])},79827(t,e,n){var o,r=n(17287),i=n(20017),a=n(5440),s=(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(){return c=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},c.apply(this,arguments)}
1,l=function(t,e,n,o){return new(n||(n=Promise))(function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}c((o=o.apply(t,e||[])).next())})},u=function(t,e){var n,o,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&s[0]?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,o=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(r=i.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(6===s[0]&&i.label<r[1]){i.label=r[1],r=s;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(s);break}r[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t],o=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},p=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a},f=function(t,e,n){if(n||2===arguments.length)for(var o,r=0,i=e.length;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},h=["cw-u-spinner","cw-u-spinner--medium"],d=["cw-u-spinner","cw-u-spinner--medium","cw-u-spinner--opaque"],y=function(t){function e(e,n){void 0===n&&(n={});var o=t.call(this,e,n)||this;return o.options=(0,i.$E)(o.element,o.options),o.init(),o}return s(e,t),e.prototype.getDefaultOptions=function(){var e=this,n=t.prototype.getDefaultOptions.call(this);return c(c({},n),{layerModifierClasses:"".concat(n.layerMainClass,"--page"),layerCloseBtnModifierClass:"".concat(n.layerMainClass,"__close-btn--page"),layerCloseIconClass:"".concat(n.layerCloseIconClass," cw-close-icon--thin"),beforeOpen:function(){return l(e,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,window.Beiersdorf.initModules()];case 1:return t.sent(),[2]}})})},afterOpen:function(){return l(e,void 0,void 0,function(){return u(this,function(t){return[2]})})},beforeClose:function(){return l(e,void 0,void 0,function(){return u(this,function(t){return[2]})})},afterClose:function(){return l(e,void 0,void 0,function(){return u(this,function(t){return[2]})})}})},Object.defineProperty(e.prototype,"isOpen",{get:function(){return document.body.contains(this.layer)},enumerable:!1,configurable:!0}),e.prototype.showSpinner=function(){return a.gR.apply(void 0,f([this.layer.querySelector(".cw-layer__wrapper")],p(h),!1)),this.isOpen||i.LW.prevent(!0),t.prototype.open.call(this),this},e.prototype.showSpinnerOpaque=function(){return a.gR.apply(void 0,f([this.layer.querySelector(".cw-layer__wrapper")],p(d),!1)),this.isOpen||i.LW.prevent(!0),t.prototype.open.call(this),this},e.prototype.open=function(){return l(this,arguments,Promise,function(e){var n,o,r,s,c=this;return void 0===e&&(e=function(){}),u(this,function(l){switch(l.label){case 0:return n=this.options,o=n.layerMainClass,r=n.beforeOpen,s=n.afterOpen,[4,r()];case 1:return l.sent(),this.isOpen||i.LW.prevent(!0),this.layer.querySelector(".cw-u-spinner--opaque")||a.jo.apply(void 0,f([this.layer.querySelector(".cw-layer__wrapper")],p(h),!1)),t.prototype.open.call(this),(0,i.mS)(function(){return c.layer.classList.add("".concat(o,"--open"))}),[4,s()];case 2:return l.sent(),e(),[2]}})})},e.prototype.close=function(){return l(this,arguments,Promise,function(e){var n,o,r,s,c=this;return void 0===e&&(e=function(){}),u(this,function(l){switch(l.label){case 0:return n=this.options,o=n.layerMainClass,r=n.beforeClose,s=n.afterClose,[4,r()];case 1:return l.sent(),(0,a.iQ)(this.layer,"".concat(o,"--closing")),(0,i.Ys)(function(){(0,a.jo)(c.layer,"".concat(o,"--open"),"".concat(o,"--closing")),t.prototype.close.call(c)},400),(document.body.classList.contains("cw-u-lock-screen")||document.body.classList.contains("cw-u-prevent-scroll"))&&i.LW.allow(),[4,s()];case 2:return l.sent(),e(),[2]}})})},e}(r.default);const v=y;n.d(e,["default",0,v])},17287(t,e,n){var o=n(5440),r=function(){return r=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r.apply(this,arguments)}
1,i=function(t,e,n,o){return new(n||(n=Promise))(function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}c((o=o.apply(t,e||[])).next())})},a=function(t,e){var n,o,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&s[0]?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,o=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(r=i.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(6===s[0]&&i.label<r[1]){i.label=r[1],r=s;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(s);break}r[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t],o=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},s=function(){function t(t,e){void 0===e&&(e={}),this.element=t,this.options=r(r({},this.getDefaultOptions()),e)}return t.prototype.init=function(t){var e=this;void 0===t&&(t="");var n=this.options.layerMainClass;return this.layer=this.createLayer(t),this.wrapper=this.layer.querySelector(".".concat(n,"__wrapper")),this.layerContent=this.layer.querySelector(".".concat(n,"__content")),this.closeBtn=this.layer.querySelector(".".concat(n,"__close-btn")),this.closeBtn.addEventListener("click",function(){return e.close()}),this},t.prototype.createLayer=function(t){void 0===t&&(t="");var e=this.options,n=e.layerMainClass,r=e.layerModifierClasses,i=e.layerCloseIconClass,a=e.layerCloseBtnModifierClass;return(0,o.Uo)('\n <div class="'.concat(n," ").concat(r,'">\n <div class="').concat(n,'__wrapper">\n <div class="').concat(n,"__close-btn ").concat(a,'">\n <div class="').concat(i,'"></div>\n </div>\n <div class="').concat(n,'__content">').concat(t,"</div>\n </div>\n </div>\n "))},t.prototype.getDefaultOptions=function(){return{layerMainClass:"cw-layer",layerCloseIconClass:"cw-close-icon cw-close-icon--blue",closeBtnWithBackground:"cw-layer__close-btn--bg",layerModifierClasses:"",layerCloseBtnModifierClass:"",animationDuration:400,parent:this.element}},t.prototype.open=function(){return i(this,arguments,Promise,function(t){return void 0===t&&(t=function(){}),a(this,function(e){return this.options.parent.appendChild(this.layer),t(),[2]})})},t.prototype.close=function(){return i(this,arguments,Promise,function(t){return void 0===t&&(t=function(){}),a(this,function(e){return document.dispatchEvent(new CustomEvent("CwCloseLayer",{detail:{layerNode:this.layer}})),this.layer.remove(),this.removeCloseBtnModifierClass(),t(),[2]})})},t.prototype.insertContent=function(t,e){void 0===e&&(e=function(){});var n=this.layerContent.firstElementChild;return n&&n!==t&&(this.layerContent.innerHTML=""),this.layerContent.appendChild(t),this.closeBtnModifierClass(),e(),this},t.prototype.closeBtnModifierClass=function(){var t=this.options,e=t.layerModifierClasses,n=t.closeBtnWithBackground;"cw-layer--page"!=e||this.layer.querySelector(".cw-overlay__title")||this.closeBtn.classList.add(n)},t.prototype.removeCloseBtnModifierClass=function(){var t=this.options.closeBtnWithBackground;this.closeBtn.classList.contains(t)&&this.closeBtn.classList.remove(t)},t.prototype.getElement=function(){return this.element},t}();const c=s;n.d(e,["default",0,c])},8477(t,e,n){var o,r=n(79827),i=n(5440),a=n(20017),s=(o=function(t,e){return o=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(){return c=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},c.apply(this,arguments)},l=function(t,e,n,o){return new(n||(n=Promise))(function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}c((o=o.apply(t,e||[])).next())})},u=function(t,e){var n,o,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&s[0]?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,o=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(r=i.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(6===s[0]&&i.label<r[1]){i.label=r[1],r=s;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(s);break}r[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t],o=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},p='[data-module="LayerCircle"]',f=function(t){function e(e,n){void 0===n&&(n={});var o=t.call(this,e,n)||this;
1return o.addFlyoutClick().addExpandBtnClick().adjustLandscapeMode(),o}return s(e,t),e.setup=function(t){void 0===t&&(t=p),Array.from(document.querySelectorAll(t)).filter(function(t){return!t.dataset.moduleInitialized}).forEach(function(t){new e(t),t.dataset.moduleInitialized="true"})},e.prototype.getDefaultOptions=function(){var e=this,n=t.prototype.getDefaultOptions.call(this);return c(c({},n),{layerModifierClasses:"".concat(n.layerMainClass,"--circle"),layerCloseBtnModifierClass:"cw-layer__close-btn--hide",layerCloseIconClass:"",layerLandscapeModifierClass:"".concat(n.layerMainClass,"--landscape"),expandBtnClass:"cw-expander__button",expandLayerModifierClass:"".concat(n.layerMainClass,"--expand"),beforeOpen:function(){return l(e,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,window.Beiersdorf.initModules()];case 1:return t.sent(),document.querySelector("body").classList.add("cw-u-lock-screen"),[2]}})})},afterOpen:function(){return l(e,void 0,void 0,function(){return u(this,function(t){return this.addCloseClick(),[2]})})},beforeClose:function(){return l(e,void 0,void 0,function(){return u(this,function(t){return Array.from(this.element.querySelectorAll(".cw-hotspot")).forEac
1h(function(t){t.classList.remove("active")}),document.querySelector("body").classList.remove("cw-u-lock-screen"),[2]})})},afterClose:function(){return l(e,void 0,void 0,function(){return u(this,function(t){return[2]})})}})},e.prototype.addCloseClick=function(){var t=this;return this.closeBtn=this.layer.querySelector(".cw-circle-layer-close"),this.closeBtn.addEventListener("click",function(){return t.close()}),this},e.prototype.addFlyoutClick=function(){var t=this;return this.layer.addEventListener("click",function(e){return e.target===t.layer&&t.close()}),this},e.prototype.addExpandBtnClick=function(){var t=this,e=this.options,n=e.expandBtnClass,o=e.expandLayerModifierClass;return this.layer.addEventListener("click",function(e){var r=e.target;return(0,i.nB)(r,n)&&t.layer.classList.toggle(o)}),this},e.prototype.adjustLandscapeMode=function(){var t=this.options.layerLandscapeModifierClass;return(0,i.p1)(this.layer,t,window.innerHeight<528),this},e.prototype.adjustOptions=function(t){return void 0===t&&(t={}),this.options=c(c({},this.options),t),this},e.prototype.adjustTransformOrigin=function(t){var e=t.getBoundingClientRect(),n=e.top,o=e.left,r=t.offsetHeight,a=t.offsetWidth,s={"transform-origin":"".concat(o+a/2,"px ").concat(n+r/2,"px")};return this.layer.setAttribute("style",(0,i.FQ)(s)),this},e.prototype.close=function(){return l(this,arguments,Promise,function(e){var n,o=this;return void 0===e&&(e=function(){}),u(this,function(r){switch(r.label){case 0:return n=this.options.expandLayerModifierClass,[4,t.prototype.close.call(this)];case 1:return r.sent(),(0,a.Ys)(function(){o.layer.classList.remove(n),e()},400),[2]}})})},e}(r.default);const h=f;new f.setup(p),n.d(e,["default",0,h])}}]); 2//# sourceMappingURL=/dist/bdfcw/./modules/HotSpot.b29344e7.js.ba3a09d4.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.