1(function(e){function t(t){for(var i,s,o=t[0],l=t[1],c=t[2],u=0,d=[];u<o.length;u++)s=o[u],n[s]&&d.push(n[s][0]),n[s]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);h&&h(t);while(d.length)d.shift()();return r.push.apply(r,c||[]),a()}function a(){for(var e,t=0;t<r.length;t++){for(var a=r[t],i=!0,s=1;s<a.length;s++){var o=a[s];0!==n[o]&&(i=!1)}i&&(r.splice(t--,1),e=l(l.s=a[0]))}return e}var i={},s={bundle:0},n={bundle:0},r=[];function o(e){return l.p+""+({"brand-slider":"brand-slider","country-selector":"country-selector","expandable-content-card":"expandable-content-card","expandable-key-figure-card":"expandable-key-figure-card",gouvernance:"gouvernance",modal:"modal","single-card":"single-card","story-slider":"story-slider"}[e]||e)+".js"}function l(t){if(i[t])return i[t].exports;var a=i[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,l),a.l=!0,a.exports}l.e=function(e){var t=[],a={"chunk-c09568a2":1,gouvernance:1,"story-slider":1};s[e]?t.push(s[e]):0!==s[e]&&a[e]&&t.push(s[e]=new Promise((function(t,a){for(var i="css/"+({"brand-slider":"brand-slider","country-selector":"country-selector","expandable-content-card":"expandable-content-card","expandable-key-figure-card":"expandable-key-figure-card",gouvernance:"gouvernance",modal:"modal","single-card":"single-card","story-slider":"story-slider"}[e]||e)+".css",n=l.p+i,r=document.getElementsByTagName("link"),o=0;o<r.length;o++){var c=r[o],u=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(u===i||u===n))return t()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){c=d[o],u=c.getAttribute("data-href");if(u===i||u===n)return t()}var h=document.createElement("link");h.rel="stylesheet",h.type="text/css",h.onload=t,h.onerror=function(t){var i=t&&t.target&&t.target.src||n,r=new Error("Loading CSS chunk "+e+" failed.\n("+i+")");r.code="CSS_CHUNK_LOAD_FAILED",r.request=i,delete s[e],h.parentNode.removeChild(h),a(r)},h.href=n;var p=document.getElementsByTagName("head")[0];p.appendChild(h)})).then((function(){s[e]=0})));var i=n[e];if(0!==i)if(i)t.push(i[2]);else{var r=new Promise((function(t,a){i=n[e]=[t,a]}));t.push(i[2]=r);var c,u=document.createElement("script");u.charset="utf-8",u.timeout=120,l.nc&&u.setAttribute("nonce",l.nc),u.src=o(e),c=function(t){u.onerror=u.onload=null,clearTimeout(d);var a=n[e];if(0!==a){if(a){var i=t&&("load"===t.type?"missing":t.type),s=t&&t.target&&t.target.src,r=new Error("Loading chunk "+e+" failed.\n("+i+": "+s+")");r.type=i,r.request=s,a[1](r)}n[e]=void 0}};var d=setTimeout((function(){c({type:"timeout",target:u})}),12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(t)},l.m=e,l.c=i,l.d=function(e,t,a){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(l.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)l.d(a,i,function(t){return e[t]}.bind(null,i));return a},l.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="/themes/LorealCorp/",l.oe=function(e){throw console.error(e),e};var c=window["webpackJsonp"]=window["webpackJsonp"]||[],u=c.push.bind(c);c.push=t,c=c.slice();for(var d=0;d<c.length;d++)t(c[d]);var h=u;r.push([0,"vendors.bundle"]),a()})({0:function(e,t,a){a("55e5"),e.exports=a("113a")},"04d3":function(e,t,a){"use strict";a("7514");var i=a("5901"),s="padding: 2px 6px; background: #111; color: #eee";t["a"]={log:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"log",n=arguments.length>3?arguments[3]:void 0;if(i["a"]){var r,o=[{type:"log",color:"#68b6f1",state:"LOG"},{type:"warn",color:"#ff8800",state:"WARNING"},{type:"error",color:"#FF0000",state:"ERROR"}],l=["%c".concat(o.find((function(e){return e.type===a})).state," %c").concat(e),"padding: 2px 6px; background: #111; color:".concat(o.find((function(e){return e.type===a})).color),s];
1console.group("AnalyticsHandler"),(r=console).log.apply(r,l),t&&n&&("uaevent"===t.event?(console.table&&console.table(t),console.log("%cAssociated raw data:",s),console.log(JSON.stringify(t,null,2))):(console.log("%cAssociated raw data:",s),console.log(JSON.stringify(t,null,2)))),console.groupEnd()}},info:function(e,t){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.log(e,t,"log",a)},warn:function(e,t){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.log(e,t,"warn",a)},error:function(e,t){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.log(e,t,"error",a)}}},"0d50":function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));a("ac6a");var i={methods:{setActiveClass:function(e){var t=e.currentTarget;this.removeActiveClass(),setTimeout((function(){t.classList.add("active")}),1),t.classList.add("show"),t.setAttribute("aria-expanded",!0)},removeActiveClass:function(){this.$el.querySelectorAll(".mega-menu__brand-trigger.active").forEach((function(e){e.classList.remove("active"),setTimeout((function(){e.classList.remove("show")}),500),e.setAttribute("aria-expanded",!1)}))}}}},"113a":function(e,t,a){"use strict";a.r(t);a("8e6e"),a("ac6a"),a("456d");var i=a("ade3"),s=(a("cadf"),a("551c"),a("f751"),a("097d"),a("a026")),n=a("62f9"),r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ally-switcher"},[a("div",{ref:"slide",staticClass:"ally-switcher__slide",style:e.slideStyles}),e._t("default",null,{toggleBodyClass:e.toggleBodyClass})],2)},o=[],l=(a("a481"),{name:"ally-switcher",props:{classToAdd:{type:String,required:!1,default:void 0},isVisible:{type:Boolean,required:!1,default:!1}},data:function(){return{isSwitcherEnabled:!1,slideStyles:{width:"50%",right:"3px"}}},computed:{switcherName:function(){return this.classToAdd.replace("-","")}},watch:{isVisible:function(e){e&&this.moveSwitcher()}},mounted:function(){var e=this,t=localStorage.getItem(this.switcherName);this.isSwitcherEnabled=!!t&&JSON.parse(t),this.setToLocalStorage(),this.$nextTick((function(){e.setRadioOnMount(),e.toggleBodyClass(e.isSwitcherEnabled)}))},methods:{toggleBodyClass:function(e){this.isSwitcherEnabled=e,e?document.body.classList.add(this.classToAdd):document.body.classList.remove(this.classToAdd),this.moveSwitcher(),this.setToLocalStorage()},moveSwitcher:function(){var e=this.$el.querySelector("input:checked").getAttribute("id"),t=this.$el.querySelector('label[for="'.concat(e,'"]')).getBoundingClientRect(),a=this.$el.getBoundingClientRect();this.slideStyles={width:"".concat(t.width,"px"),left:"".concat(t.left-a.left,"px")}},setToLocalStorage:function(){localStorage.setItem(this.switcherName,this.isSwitcherEnabled)},setRadioOnMount:function(){var e=this.$el.querySelectorAll("input");e[this.isSwitcherEnabled?1:0].checked=!0}}}),c=l,u=(a("500c"),a("2877")),d=Object(u["a"])(c,r,o,!1,null,null,null),h=d.exports,p=Object(n["a"])({components:{AllySwitcher:h}}),f=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container--large focus-video"},[e._t("default",null,{openVideo:e.openVideo})],2)},g=[],m=a("2909"),v={name:"focus-slider",methods:{getChildSlider:function(){var e;return Object(m["a"])(this.$children).forEach((function(t){"scroll-slider"===t.$options._componentTag&&(e=t)})),e},openVideo:function(e,t){this.getChildSlider().openVideo(e,t)}}},y=v,b=Object(u["a"])(y,f,g,!1,null,null,null),w=b.exports,_=Object(n["a"])({components:{FocusSlider:w}}),C=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"scroll-slider",class:{"scroll-slider--loading ":e.isLoading}},[e.isLoading?a("loader"):e._e(),a("video-layer",{ref:"videoLayer",attrs:{url:e.videoUrl,flowid:e.flowid},scopedSlots:e._u([{key:"closebtn",fn:function(){return[e._v("\n "+e._s(e.closeText)+"\n ")]},proxy:!0}])}),e.isSimpleSlider?e._e():a("div",{directives:[{name:"show",rawName:"v-show",value:e.showSideContent,expression:"showSideContent"}],staticClass:"scroll-slider__side-content"},[e._t("sidecontent",null,{getSildes:e.getSildes})],2),a("a",{staticClass:"scroll-slider__skip-content",attrs:{id:e.filteredContentId,tabindex:"-1"}}),a("scroller",{directives:[{name:"animate",rawName:"v-animate",value:{cssClass:"animate-in",delay:100,reset:!0},expression:"{ cssClass: 'animate-in', delay: 100, reset: true }"}],ref:"slider",attrs:{"data-simplebar-auto-hide":"false",recalculate:e.updateScroll,"toggle-side-content":!e.isSimpleSlider}},[e.cards?e._l(e.cards,(function(t){return a("div",{key:t.id,staticClass:"scroll-slider__slide",attrs:{"focusable-slide":""}},[t.cardType<3?a("slider-card",{attrs:{data:t}}
1):3===t.cardType?a("video-card",{attrs:{data:t,id:t.id},on:{wasClicked:function(a){return e.openVideo({url:t.apiLink,flowid:t.flowid},{cardId:t.id})}}}):5===t.cardType?a("simple-card",{attrs:{data:t,id:t.id}}):a("quote-card",{attrs:{data:t}})],1)})):e._t("default",null,{openVideo:e.openVideo}),e.hasError?a("div",{staticClass:"error"},[e._v("Something went wrong :(")]):e._e()],2)],1)},S=[],P=a("3835"),k=(a("ffc1"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"scroller"},[a("div",{ref:"scrollerContent",staticClass:"simplebar-scroll-content"},[a("div",{staticClass:"scroller-content"},[e._t("default")],2),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowMobileArrowSlider,expression:"isShowMobileArrowSlider"}],staticClass:"mobile-arrow-slider-wrapper"},[a("button",{ref:"leftArrow",staticClass:"left-arrow",attrs:{"aria-label":e.previousAriaLabel},on:{click:function(t){return e.onClickLeftSliderArrowButton()}}},[a("svg",{attrs:{width:"26",height:"15",viewBox:"0 0 26 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M25 8.36426C25.5523 8.36426 26 7.91654 26 7.36426C26 6.81197 25.5523 6.36426 25 6.36426L25 7.36426L25 8.36426ZM0.292893 6.65715C-0.0976314 7.04767 -0.0976315 7.68084 0.292892 8.07136L6.65685 14.4353C7.04738 14.8258 7.68054 14.8258 8.07107 14.4353C8.46159 14.0448 8.46159 13.4116 8.07107 13.0211L2.41421 7.36426L8.07107 1.7074C8.46159 1.31688 8.46159 0.683713 8.07107 0.293189C7.68054 -0.0973359 7.04738 -0.097336 6.65686 0.293188L0.292893 6.65715ZM25 7.36426L25 6.36426L1 6.36426L1 7.36426L1 8.36426L25 8.36426L25 7.36426Z",fill:"black"}})])]),a("button",{ref:"rightArrow",staticClass:"right-arrow",attrs:{"aria-label":e.nextAriaLabel},on:{click:function(t){return e.onClickRightSliderArrowButton()}}},[a("svg",{attrs:{width:"26",height:"15",viewBox:"0 0 26 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M1 6.36426C0.447715 6.36426 4.82823e-08 6.81197 0 7.36426C-4.82823e-08 7.91654 0.447715 8.36426 1 8.36426L1 7.36426L1 6.36426ZM25.7071 8.07137C26.0976 7.68084 26.0976 7.04768 25.7071 6.65715L19.3431 0.293192C18.9526 -0.0973328 18.3195 -0.0973329 17.9289 0.293191C17.5384 0.683716 17.5384 1.31688 17.9289 1.70741L23.5858 7.36426L17.9289 13.0211C17.5384 13.4116 17.5384 14.0448 17.9289 14.4353C18.3195 14.8259 18.9526 14.8259 19.3431 14.4353L25.7071 8.07137ZM1 7.36426L1 8.36426L25 8.36426L25 7.36426L25 6.36426L1 6.36426L1 7.36426Z",fill:"#3D3D3D"}})])])])])])}
1),I=[],A=(a("28a5"),a("c5f6"),a("b817")),E=a("7cae"),L={name:"scroller",mixins:[E["a"]],props:{setLeft:{type:[String,Number,Boolean],default:0},recalculate:{type:[String,Number,Boolean],default:0},toggleSideContent:{type:Boolean,default:!0},previousAriaLabel:{type:String,default:"previous"},nextAriaLabel:{type:String,default:"next"}},data:function(){return{scrollbar:!1,scrollElement:null,slidesArray:null,debounceResize:null,clickX:0,valTransform:0,totalScrollRange:0,isShowMobileArrowSlider:!1}},watch:{recalculate:function(){this.doRecalculate(),this.slidesArray=this.$el.querySelectorAll(".scroll-slider__slide")},setLeft:function(e){void 0!==e&&this.scrollToLeft(e)},screenSize:function(){this.animatedSlides()}},mounted:function(){this.init(),this.slidesArray=this.$el.querySelectorAll(".scroll-slider__slide"),this.animatedSlides()},methods:{hideSideContent:function(){this.hideSlide()},hideSlide:function(){var e=this.$parent.$el.querySelector(".scroll-slider__side-content").getBoundingClientRect();Object(m["a"])(this.slidesArray).forEac
1h((function(t){var a=t.getBoundingClientRect();a.left<e.left+e.width?t.classList.add("slide-hidden"):t.classList.remove("slide-hidden")}))},showSlides:function(){Object(m["a"])(this.slidesArray).forEach((function(e){e.setAttribute("style","")}))},scrollHandler:function(){document.dispatchEvent(new CustomEvent("carouselLazyImg")),this.toggleSideContent&&"small"!==this.screenSize&&this.hideSideContent()},animatedSlides:function(){var e=this;this.scrollElement.addEventListener("scroll",Object(n["e"])((function(){e.scrollHandler()}),160)),this.toggleSideContent&&"small"!==this.screenSize?this.scrollToLeft(0):setTimeout((function(){window.innerWidth<1024&&e.showSlides(),e.scrollToLeft(0)}),100)},scrollToLeft:function(e){e="boolean"===typeof e?0:parseInt(e,10),!1!==this.scrollbar&&(this.scrollbar.getScrollElement().scrollLeft=e)},doRecalculate:function(){!1!==this.scrollbar&&(this.scrollbar.recalculate(),this.scrollToLeft(0)),this.recalculate&&this.isShouldManipulateScroll()&&this.manipulateScroll()},init:function(){var e=this;if(!1===this.scrollbar){this.scrollbar=new A["a"](this.$refs.scrollerContent,{autoHide:!0}),this.scrollElement=this.scrollbar.getScrollElement();var t=this.$refs.scrollerContent.querySelector(".simplebar-content-wrapper");this.isShouldManipulateScroll()&&this.manipulateScroll(),window.addEventListener("visibilitychange",(function(t){e.isShouldManipulateScroll()&&!document.hidden&&e.manipulateScroll()})),this.resizeManipulateScroll(t),t&&(this.navigationScrollerFn(t),this.navigationScrollerHelperFn(t))}this.checkingMobileSizeAndSliderItem()},resizeManipulateScroll:function(e){var t=this;window.addEventListener("resize",(function(){clearTimeout(t.debounceResize),t.debounceResize=setTimeout((function(){t.isShouldManipulateScroll()&&t.manipulateScroll()}),100),setTimeout((function(){t.checkingMobileSizeAndSliderItem(),e&&t.navigationScrollerHelperFn(e)}),350)}))},isShouldManipulateScroll:function(){var e=window.innerWidth;if(e<769)return!1;var t=this.$refs.scrollerContent,a=!1,i=t.querySelectorAll(".scroll-slider__slide");return!!i.length&&(i.forEach((function(e){e.getBoundingClientRect().right>window.innerWidth&&(a=!0)})),a)},manipulateScroll:function(){var e=this;setTimeout((function(){var t=e.scrollbar.getScrollElement();if(t&&"scroll hidden"!==t.style.overflow){t.style.overflow="scroll hidden";var a=e.$refs.scrollerContent,i=a.querySelector(".simplebar-horizontal");if(i){i.style.visibility="visible";var s="width: 310px; transform: translate3d(0px, 0px, 0px); display: block;",n=a.querySelector(".simplebar-scrollbar");n&&(n.style=s,e.totalScrollRange=i.clientWidth-n.clientWidth,t.addEventListener("scroll",(function(t){e.onScrollManipulateScroll(t,n,i)})),i.addEventListener("click",e.onClickManipulatedScrollbar),n.addEventListener("mousedown",(function(t){e.onMouseDownManipulateScroll(t,n)})))}}}),520)},onScrollManipulateScroll:function(e,t,a){var i=e.target,s=i.scrollLeft,n=i.scrollWidth,r=i.clientWidth,o=n-r,l=s/o*100,c=t.clientWidth,u=a.clientWidth,d=l/100*(u-c),h="translate3d(".concat(d,"px, 0px, 0px)");t.style.transform=h},onMouseDownManipulateScroll:function(e,t){t.style.opacity=".3",this.clickX=e.clientX;var a=t.style.transform||"translate3d(0px, 0px, 0px)";this.valTransform=Number(a.split("(")[1].split("px")[0]),document.addEventListener("mousemove",this.detectMouseMove),document.addEventListener("mouseup",this.mouseUp)},detectMouseMove:function(e){var t=this.$refs.scrollerContent,a=t.querySelector(".simplebar-scrollbar"),i=this.scrollbar.getScrollElement();if(a&&i){var s=e.clientX,n=s<this.clickX,r=s>this.clickX,o=s-this.clickX,l=this.valTransform+o;n&&l<=0&&(l=0),r&&l>=this.totalScrollRange&&(l=this.totalScrollRange),a.style.transform="translate3d(".concat(l,"px, 0px, 0px)");var c=l/this.totalScrollRange*100,u=i.scrollWidth,d=i.clientWidth,h=u-d;i.scrollLeft=h*(c/100)}},mouseUp:function(e){var t=this.$refs.scrollerContent,a=t.querySelector(".simplebar-scrollbar");a&&(a.style.opacity="1"),document.removeEventListener("mousemove",this.detectMouseMove),document.removeEventListener("mouseup",this.mouseUp)},onClickManipulatedScrollbar:function(e){var t=e.clientX,a=this.$refs.scrollerContent,i=a.querySelector(".simplebar-scrollbar"),s=this.scrollbar.getScrollElement();if(i&&s){var n=i.getBoundingClientRect(),r=n.right,o=n.left,l=s.scrollWidth,c=s.clientWidth,u=l-c;t<o?s.scrollLeft=0:t>r&&(s.scrollLeft=u)}},checkingMobileSizeAndSliderItem:function(){var e=window.innerWidth<769;if(this.isShowMobileArrowSlider=e,e){var t=this.scrollbar.getScrollElement(),a=t.querySelectorAll(".card");if(a.length){var i=0;a.forEach((function(e){var t=e.getBoundingClientRect().right+5;t<=window.innerWidth&&(i+=1)})),i===a.length&&(this.isShowMobileArrowSlider=!1)}}},onClickRightSliderArrowButton:function(){var e=this.scrollbar.getScrollElement();if(e.scrollLeft!==e.scrollLeftMax){var t=e.querySelectorAll(".scroll-slider__slide");if(t.length){var a=!1;t.forEach((function(t){var i,s=t.getBoundingClientRect().right,n=getComputedStyle(t).marginRight,r=Number(n.split("px")[0]),o=Math.ceil(s+r);o>window.innerWidth&&!a&&(i=o-window.innerWidth,e.scrollLeft+=i,a=!0)}))}}},onClickLeftSliderArrowButton:function(){var e=this.scrollbar.getScrollElement(),t=e.querySelectorAll(".scroll-slider__slide");if(t.length){var a=Object(m["a"])(t);a.reverse();var i=!1;a.forEach((function(t){var a=t.getBoundingClientRect().left,s=getComputedStyle(t).marginLeft,n=Number(s.split("px")[0]),r=Math.ceil(a-n);r<0&&!i&&(e.scrollLeft+=r,i=!0)}))}},navigationScrollerFn:function(e){var t=this;e.addEventListener("scroll",(function(){t.navigationScrollerHelperFn(e)}))},navigationScrollerHelperFn:function(e){var t=window.innerWidth<769;if(t){var a=e.scrollLeft,i=e.scrollWidth-e.clientWidth,s=i-a,n=Math.max(0,Math.floor(s));this.navigationHiddenFn(a,n)}},navigationHiddenFn:function(e,t){0===e?this.$refs.leftArrow.setAttribute("disabled","true"):this.$refs.leftArrow.removeAttribute("disabled"),0===t?this.$refs.rightArrow.setAttribute("disabled","true"):this.$refs.rightArrow.removeAttribute("disabled")}}},x=L,T=Object(u["a"])(x,k,I,!1,null,null,null),O=T.exports,D=a("d5de"),F=a("6b0c"),R={name:"animate",inserted:function(e,t){var a=t.value,i=a.cssClass,s=void 0===i?"animate":i,n=a.delay,r=void 0===n?700:n,o=a.reset,l=void 0!==o&&o,c=a.threshold,u=void 0===c?[.4]:c;setTimeout((function(){Object(F["a"])(e,{delay:r,checkIsVisible:!0,threshold:u}).then((function(){!document.getElementsByTagName("body")[0].classList.contains("no-animation")&&e.classList.add(s),l&&setTimeout((function(){e.classList.add("animated"),e.classList.remove(s)}),1500)}))}),500)}},N={name:"scroll-slider",components:{scroller:O,loader:function(){return a.e("chunk-c09568a2").then(a.bind(null,"29cb"))},"video-layer":function(){return a.e("chunk-2d0b59e4").then(a.bind(null,"1a53"))},"slider-card":function(){return a.e("chunk-2d0d642f").then(a.bind(null,"7297"))},"video-card":function(){return a.e("chunk-2d20734c").then(a.bind(null,"a018"))},"quote-card":function(){return a.e("chunk-2d21f326").then(a.bind(null,"d994"))},"simple-card":function(){return a.e("chunk-2d21e08e").then(a.bind(null,"d49a"))}},directives:{animate:R},props:{slidesApiUrl:{type:String,default:""},sliderApiParams:{type:Object,default:function(){return{}}},isSimpleSlider:{type:Boolean,default:!1},srFilteredText:{type:String,default:""},closeText:{type:String,default:"close"}},data:function(){return{counter:0,cards:null,updateScroll:!1,showSideContent:!0,videoUrl:null,flowid:null,filteredContentId:null,srFilterId:null,isLoading:!1,hasError:!1}},computed:{isFilteredSlider:function(){return!!this.slidesApiUrl}},mounted:function(){this.makeFocusable(),this.isFilteredSlider&&this.setActiveFilterOnLoad()},methods:{openVideo:function(e,t){var a,i=this;a=t.target?t.target:document.getElementById(t.cardId).querySelector(".card__play"),this.videoUrl=e.url,this.flowid=e.flowid,setTimeout((function(){i.$refs.videoLayer.videoCall(a)}),100)},makeFocusable:function(){this.$el.classList.contains("scroll-slider--image")&&this.$el.querySelector(".simplebar-content-wrapper").setAttribute("tabindex",0)},setSrText:function(e){document.querySelector(".filtered-results-sr").innerText=e},srFilteredResults:function(e){var t=this;this.srFilterId=this.filteredContentId,this.setSrText("".concat(e," ").concat(this.srFilteredText)),setTimeout((function(){t.setSrText("")}),7e3)},addSliderAnimation:function(e){var t=this;Object(m["a"])(this.$refs.slider.$el.querySelectorAll(".scroll-slider__slide")).forEac
1h((function(a,i){a.setAttribute("style",t.setAnimation(e,i))}))},setAnimation:function(e,t){var a="transition: opacity .4s cubic-bezier(.075, .82, .165, 1) ".concat(.05*t,"s, transform .25s cubic-bezier(.075, .82, .165, 1) ").concat(.05*t,"s; opacity: 1; transform: none;"),i="transition: opacity .4s cubic-bezier(.075, .82, .165, 1) ".concat(.05*t,"s, transform .25s cubic-bezier(.075, .82, .165, 1) ").concat(.05*t,"s; opacity: 0 transform: translateY(40px);");return"in"===e?a:i},buildApiParams:function(){for(var e=[],t=0,a=Object.entries(this.sliderApiParams);t<a.length;t++){var i=Object(P["a"])(a[t],2),s=i[0],n=i[1];e.push("".concat(s,"=").concat(n))}return e.join("&")},setActiveFilterOnLoad:function(){var e=this.$el.querySelector(".scroll-slider__filters .skipto").getAttribute("href").slice(1);this.setAriaSelected(this.$el.querySelector(".scroll-slider__filters button"),!0),this.filteredContentId=e},setAriaSelected:function(e,t){e.setAttribute("aria-selected",t)},applyFilter:function(e){var t=this;this.cards=e,setTimeout((function(){t.isLoading=!1,t.updateScroll=!0,t.addSliderAnimation("in")}),10),this.srFilteredResults(this.cards.length),this.$nextTick((function(){t.updateScroll=!1}))},getSildes:function(e,t){var a=this;this.isLoading=!0;var i=t.target;if(this.hasError=!1,this.filteredContentId===e)return this.isLoading=!1,!1;this.filteredContentId=e,this.counter+=1;var s=this.counter;this.$el.querySelectorAll(".scroll-slider__side-content button").forEach((function(e){a.setAriaSelected(e,!1)})),this.setAriaSelected(i,!0),this.addSliderAnimation("out"),this.$refs.slider.$el.classList.remove("animated"),setTimeout((function(){a.counter===s&&Object(D["a"])("".concat(a.slidesApiUrl).concat(a.filteredContentId,"&").concat(a.buildApiParams())).then((function(e){a.applyFilter(e),a.isLoading=!1})).catch((function(){a.hasError=!0,a.isLoading=!1}))}),1e3)}}},j=N,M=(a("5af9"),Object(u["a"])(j,C,S,!1,null,null,null)),V=M.exports,B=Object(n["a"])({components:{ScrollSlider:V}}),$=a("77f3"),U=Object(n["a"])({components:{slideItem:$["a"]}}),q=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("header",{directives:[{name:"sticky",rawName:"v-sticky",value:e.sticky,expression:"sticky"}],staticClass:"header",class:{open:e.openMenu,navExpanded:e.openNav,menuActivated:!!e.menu,"header--news":e.isNewsPage,"header--blog":e.isBlogPage},attrs:{role:"banner"}},[a("div",{staticClass:"header__content"},[e._t("banner",null,{isBannerDisable:e.isBannerDisable,closeBanner:e.closeBanner}),a("div",{staticClass:"header__top"},[a("button",{staticClass:"header__burger",class:{open:e.openMenu},attrs:{type:"button","aria-label":e.openMenu?"Close menu":"Open menu","aria-expanded":e.openMenu.toString(),"aria-controls":"main-navigation"},on:{click:function(t){e.openMenu=!e.openMenu,e.openNav=!e.openNav,e.setFocus("button.header__close")}}},[e.openMenu?a("span",{staticClass:"sr-only"},[e._v("Close Menu")]):a("span",{staticClass:"sr-only"},[e._v("Main Navigation Menu")]),a("span",{staticClass:"header__burger--line header__burger--top"}),a("span",{staticClass:"header__burger--line header__burger--center"}),a("span",{staticClass:"header__burger--line header__burger--bottom"})]),"large"===e.screenSize?e._t("header-target"):e._e(),a("div",{staticClass:"header__logo",class:{open:e.openMenu}},[e._t("header-logo")],2),a("nav",{staticClass:"header__info",attrs:{role:"navigation","aria-label":e.allyUtilityLabel}},["large"===e.screenSize?e._t("header-stock"):e._e(),"large"===e.screenSize?a("div",{staticClass:"header__accessibility"},[e._t("header-accessibility")],2):e._e(),"large"===e.screenSize?a("div",{staticClass:"header__country"},[e._t("header-country")],2):e._e(),"large"===e.screenSize?a("div",{staticClass:"header__language"},[e._t("header-language",null,{changelang:e.changelang})],2):e._e(),e.iconDisable?a("a",{staticClass:"header__search",class:{open:e.openMenu},attrs:{href:e.searchUrl,role:"search"}},[a("div",{staticClass:"icon icon-search",attrs:{"aria-hidden":"true"}}),a("span",{staticClass:"off-screen"},[e._t("header-search")],2)]):e._e()],2)],2),e.openMenu?a("div",{staticClass:"header__overlay",on:{click:function(t){e.openMenu=!1,e.openNav=!1}}}
1):e._e(),a("div",{staticClass:"header__submenu mobileMenu",class:{open:e.openMenu}},["small"===e.screenSize||"medium"===e.screenSize?a("button",{staticClass:"header__close",on:{click:function(t){e.openMenu=!e.openMenu,e.openNav=!1,e.setFocus(".header__burger")}}},[a("div",{staticClass:"header__burger",class:{open:e.openMenu}},[a("span",{staticClass:"header__burger--line header__burger--top"}),a("span",{staticClass:"header__burger--line header__burger--center"}),a("span",{staticClass:"header__burger--line header__burger--bottom"})])]):e._e(),e._t("navigation",null,{isNavigationOpened:e.isNavigationOpened,openNav:e.openNav}),"large"!==e.screenSize?a("div",{staticClass:"mobileMenu__bottom"},[a("div",{staticClass:"mobileMenu__stock"},[e._t("header-stock")],2),e._t("header-target"),a("div",{staticClass:"mobileMenu__info"},[a("div",{staticClass:"mobileMenu__accessibility"},[e._t("header-accessibility")],2),a("div",{staticClass:"mobileMenu__country"},[e._t("header-country")],2),a("div",{staticClass:"mobileMenu__language"},[e._t("header-language",null,{changelang:e.changelang})],2)])],2):e._e()],2)],2)])},z=[],H=a("8655"),J={name:"sticky",inserted:function(e,t){var a,i,s=e.querySelector(t.value),r=function(){a=e.getBoundingClientRect(),i=a.top,i<0?(s.classList.add("is-sticky"),e.style.height="".concat(a.height,"px")):(s.classList.remove("is-sticky"),e.style.height="auto")};e.handler=Object(n["e"])(r,160),window.addEventListener("scroll",e.handler),H["a"].$on("mediaquery::changed",e.handler)},unbind:function(e){window.removeEventListener("scroll",e.handler),H["a"].$off("mediaquery::changed",e.handler)}},W=a("ad30"),K={name:"header-site",directives:{sticky:J},mixins:[E["a"]],props:{allyUtilityLabel:{type:String,default:"utils"},searchUrl:{type:String,default:"#"}},data:function(){return{openMenu:!1,openNav:!1,menu:null,sticky:".header__content",isBannerDisable:!0,isNewsPage:!1,isBlogPage:!1,isPageScrolled:!1,timeInterval:null,timing:0,isTimeLimitCrossed:!1,isDataLayerPushed:!1,articleTitle:"",escapeClassName:"escape--pressed",iconDisable:!1}},watch:{openMenu:function(e){var t=document.querySelector("body");e?t.classList.add("body-hide-overflow"):t.classList.remove("body-hide-overflow")}},mounted:function(){Object(n["b"])(),this.isBannerDisable=!!sessionStorage.getItem("bannerDiasble"),this.newsPageinitialAction(),this.breadcumInitialAction(),this.isBlogPage=document.getElementsByClassName("Blog-Page").length>0,this.screenSizeLargeInitialAction()},methods:{newsPageinitialAction:function(){var e=document.getElementsByClassName("hero--news"),t=document.getElementsByClassName("breadcrumbs");e.length?(this.isNewsPage=!0,t&&t.length&&(t[0].classList.add("breadcrumbs--news"),t[0].parentElement.classList.add("breadcrumbs__container"))):(this.isNewsPage=!1,t&&t.length&&(t[0].classList.remove("breadcrumbs--news"),t[0].parentElement.classList.remove("breadcrumbs__container")))},screenSizeLargeInitialAction:function(){if("large"===this.screenSize){var e=document.querySelectorAll(".mega-menu__level-1-item");if(!e.length)return;this.iconDisable=e.length>0,this.screenSizeLargeKeydown(e),this.screenSizeLargeMouseEnter(e)}},screenSizeLargeKeydown:function(e){var t=this;window.addEventListener("keydown",(function(a){var i=a.key;switch(i){case"Escape":t.openMenu=!1,e.forEach((function(a,i){t.checkClassAdded(a)||i===e.length-1||a.classList.add(t.escapeClassName)}));break;case"Enter":e.forEach((function(e){t.removeClass(e.classList)}));break;default:break}}))},screenSizeLargeMouseEnter:function(e){var t=this;e.forEach((function(e){e.addEventListener("mouseenter",(function(e){t.removeClass(e.target.classList),document.querySelector("body").classList.add("body-hide-overflow")}))}))},breadcumInitialAction:function(){var e=document.querySelector(".breadcrumbs");null!==e&&(this.articleTitle=document.querySelector(".breadcrumbs > ul > li:last-child > span > span > strong").innerText,this.articleTitle.length>70&&(document.querySelector(".breadcrumbs > ul > li:last-child > span > span > strong").innerText=this.articleTitle.substr(0,70)+"..."))},checkClassAdded:function(e){return e.classList.contains(this.escapeClassName)},removeClass:function(e){return e.remove(this.escapeClassName)},isNavigationOpened:function(e){this.openNav=e.open,this.menu=e.menu},changelang:function(e){var t=e.target.options[e.target.options.selectedIndex].value,a=t.slice(1);a=a.substring(0,a.indexOf("/")),W["a"].pushDataLayer({event:"uaevent",eventCategory:"main menu",eventAction:"select::language",eventLabel:a}),window.location.href=t},setFocus:function(e){var t=this;setTimeout((function(){t.$el.querySelector(e)&&t.$el.querySelector(e).focus()}),300)},closeBanner:function(){this.isBannerDisable=!0,sessionStorage.setItem("bannerDiasble",!0)}}},Q=K,X=Object(u["a"])(Q,q,z,!1,null,null,null),G=X.exports,Z=Object(n["a"])({components:{HeaderSite:G}}),Y=a("f95c"),ee=Object(n["a"])({components:{ResponsiveImage:Y["a"]}}),te={name:"no-js-handler",bind:function(e){for(var t=e.querySelectorAll("noscript img"),a=0;a<t.length;a++)t[a].setAttribute("src","data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=")}},ae=Object(n["a"])({directives:{noJsHandler:te}}),ie=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e._t("default",null,{openNav:e.openNav,closeNav:e.closeNav,activeMenu:e.activeMenu,setActiveClass:e.setActiveClass,removeActiveClass:e.removeActiveClass})],2)},se=[],ne=a("0d50"),re=a("47f7"),oe={name:"mega-menu",mixins:[ne["a"],re["a"],E["a"]],props:{hideMenu:{type:Boolean,default:!0}},data:function(){return{activeMenu:null}},watch:{hideMenu:function(e){e&&this.closeNav(),e&&this.removeActiveClass()}},mounted:function(){var e=this;if(window.addEventListener("resize",this.handleResize),this.handleResize(),"large"===this.screenSize){this.activeBrand();var t=document.querySelectorAll(".mega-menu__level-1");t.forEach((function(t){t.addEventListener("mouseleave",(function(){e.removePageScroll(!1)}))}))}},destroyed:function(){window.removeEventListener("resize",this.handleResize)},methods:{handleResize:function(){var e=window.innerWidth<=1024,t=e?"burger menu":"header";this.setAttributes(t)},setAttributes:function(e){var t=["ul.mega-menu__level-1 li.mega-menu__level-1-item ul.mega-menu__level-2-list li.li_DE1 a.a_DE1","ul.mega-menu__level-1 li.mega-menu__level-1-item ul.mega-menu__level-2-list li.li_DE2 button.b_DE2","ul.mega-menu__level-1 li.mega-menu__level-1-item ul.mega-menu__level-2-list li.li_DE2 div.d_DE1 ul.ul_DE1 li.li_DE3 a.a_DE5","ul.mega-menu__level-1 li.mega-menu__level-1-item ul.mega-menu__level-2-list li.li_DE2 div.d_DE1 ul.ul_DE1 li.li_DE4 a.a_DE6","ul.mega-menu__level-1 li.mega-menu__level-1-item ul.mega-menu__level-2-list li.li_DE2 button.b_DE1","ul.mega-menu__level-1 li.mega-menu__level-1-item ul.mega-menu__level-2-list li.li_DE2 a.a_DE2"],a=function(t){t.setAttribute("data-tag-click_area",e),t.setAttribute("data-tag-action","select::".concat(e))};t.forEach((function(e){var t=document.querySelectorAll(e);t.forEach((function(e){a(e)}))}))},openNav:function(e,t){var a=e.target.parentNode.classList.contains("clickable"),i=e.target.parentNode.querySelector(".mega-menu__level-2");"large"!==this.screenSize||0===e.clientX?i?this.activeMenu===t?this.closeNav():(this.activeMenu=t,this.$emit("menuopen",{open:!0,menu:this.activeMenu}),this.removePageScroll(!0)):window.location=e.target.getAttribute("href"):!0===a&&(window.location=e.target.getAttribute("href"))},activeBrand:function(){this.$el.querySelector(".mega-menu__brand .mega-menu__brand-trigger")&&this.$el.querySelector(".mega-menu__brand .mega-menu__brand-trigger").classList.add("active","show")},closeNav:function(e){if(this.activeMenu=null,this.$emit("menuopen",{open:!1,menu:null}),!e&&window.matchMedia("(max-width: 1439px)").matches)return!1;this.removePageScroll(!1)}}},le=oe,ce=(a("44bb"),Object(u["a"])(le,ie,se,!1,null,null,null)),ue=ce.exports,de=Object(n["a"])({components:{MegaMenu:ue}}),he=a("f605"),pe=a("5901"),fe={bind:function(e){var t=e;t.addEventListener("change",(function(e){window.location.assign(e.target.value)}))}},ge={name:"fadein",bind:function(e,t){var a=function(){Object(n["d"])(e)&&e.classList.add("fadein--".concat(t.value))};e.classList.add("fadein"),setTimeout((function(){a()}),300),window.addEventListener("scroll",Object(n["e"])(a,160))}},me=a("75a3"),ve={name:"back-to-top",bind:function(e){var t=e,a=2*window.innerHeight;window.addEventListener("scroll",(function(){window.scrollY>a?t.style.opacity=1:t.style.opacity=0}))}},ye={name:"career-search",bind:function(e){var t=e;t.addEventListener("submit",(function(e){e.preventDefault();var t=e.target.querySelector(".search-keyword").value,a=e.target.getAttribute("action");W["a"].pushDataLayer({event:"uaevent",eventCategory:"internal search",eventAction:"search::career",eventLabel:t}),window.open("".concat(a).concat(t),"_blank")}))}},be={name:"cat-reload",bind:function(e){e.addEventListener("change",(function(e){var t=e.target.options[e.target.options.selectedIndex].value,a=location.protocol+"//"+location.host+location.pathname,i=e.target.getAttribute("name"),s="".concat(a,"?").concat(i,"=").concat(t);window.location.href=s}))}},we={name:"hero-anim",bind:function(e){document.addEventListener("scroll",(function(){Object(F["a"])(e,{checkIsVisible:!0}).then((function(){var t=window.pageYOffset,a=e.querySelector(".hero__content"),i=e.querySelector(".responsive-image__media"),s=t/5e3,n=1+s,r=t/5;i&&(i.style.transform="scale(".concat(n,") translate3D(0, ").concat(r,"px, 0)"),a.style.opacity=1-r/100,a.style.top=r+"px")}))}
1))}},_e=a("d4ec"),Ce=a("bee2"),Se=function(){function e(){Object(_e["a"])(this,e),this.keyboardUsageClassName="is-using-keyboard",this.wasUsingTab=!1,this.wasBound=!1,this.isTab=!1,this.bind()}return Object(Ce["a"])(e,[{key:"bind",value:function(){document.addEventListener("keydown",this.handleKeyboardInput.bind(this),!0),document.addEventListener("mousedown",this.handleMouseInput.bind(this),!0),this.wasBound=!0}},{key:"unbind",value:function(){document.removeEventListener("keydown",this.handleKeyboardInput.bind(this),!0),document.removeEventListener("mousedown",this.handleMouseInput.bind(this),!0),this.wasBound=!1}},{key:"handleKeyboardInput",value:function(e){this.isTab="Tab"===e.key||"Tab"===e.code||9===e.keyCode,this.isTab&&!this.wasUsingTab&&document.body.classList.add(this.keyboardUsageClassName),this.wasUsingTab=this.isTab}},{key:"handleMouseInput",value:function(){this.wasUsingTab&&document.body.classList.remove(this.keyboardUsageClassName),this.wasUsingTab=!1}}],[{key:"getInputHandler",value:function(){return this.$inputHandler=this.$inputHandler||new e,this.$inputHandler}}])}(),Pe=a("5009"),ke={components:{LoadScript:Pe["a"]}},Ie=(a("f386"),a("7514"),function(){function e(t){Object(_e["a"])(this,e),t?(this.mqs=t,this.matchMediaItems=this.createWorkingData(),this.bind()):console.error("No media queries object given")}return Object(Ce["a"])(e,[{key:"createWorkingData",value:function(){return this.mqs.map((function(t){return e.createMatchMediaItem(t)}))}},{key:"bind",value:function(){var e=this;this.matchMediaItems.forEach((function(t){t.matchMedia.addListener((function(){t.matchMedia.matches&&e.select(t.query)}))}))}},{key:"select",value:function(e){this.unselectAll();var t=this.matchMediaItems.find((function(t){return t.query===e}));return t.selected=!0,H["a"].$emit("mediaquery::changed",t),t}},{key:"unselectAll",value:function(){return this.matchMediaItems.forEach((function(e){e.selected=!1})),this.matchMediaItems}},{key:"getCurrentMq",value:function(){return this.matchMediaItems.find((function(e){return!0===e.selected}))}},{key:"getMqForSize",value:function(e){return this.matchMediaItems.find((function(t){return t.size===e}))}}],[{key:"createMatchMediaItem",value:function(e){return{query:e.mq,selected:e.selected,size:e.size,matchMedia:window.matchMedia(e.mq)}}},{key:"for",value:function(e){return this.getMqHandler().getMqForSize(e).selected}},{key:"getMqHandler",value:function(t){return this.$mqHandler||(this.$mqHandler=new e(this.readCSS(t))),this.$mqHandler}},{key:"readCSS",value:function(e){var t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css";var i=this.createCSSRules(e);a.appendChild(document.createTextNode(i)),t.appendChild(a);var s=JSON.parse(window.getComputedStyle(document.querySelector("body"),":before").getPropertyValue("content").replace(/\\/g,"").slice(1,-1));return document.querySelector("head").removeChild(a),s}},{key:"createCSSRules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.small,a=void 0===t?768:t,i=e.medium,s=void 0===i?1024:i;return'\n body::before {\n content: \'[{"mq":"(max-width: '.concat(a-1,'px)","selected":true,"size":"small"},{"mq":"(min-width: ').concat(a,"px) and (max-width: ").concat(s-1,'px)","selected":false,"size":"medium"},{"mq":"(min-width: ').concat(s,'px)","selected":false,"size":"large"}]\';\n }\n @media (min-width: ').concat(a,'px) {\n body::before {\n content: \'[{"mq":"(max-width: ').concat(a-1,'px)","selected":false,"size":"small"},{"mq":"(min-width: ').concat(a,"px) and (max-width: ").concat(s-1,'px)","selected":true,"size":"medium"},{"mq":"(min-width: ').concat(s,'px)","selected":false,"size":"large"}]\';\n }\n }\n @media (min-width: ').concat(s,'px) {\n body::before {\n content: \'[{"mq":"(max-width: ').concat(a-1,'px)","selected":false,"size":"small"},{"mq":"(min-width: ').concat(a,"px) and (max-width: ").concat(s-1,'px)","selected":false,"size":"medium"},{"mq":"(min-width: ').concat(s,'px)","selected":true,"size":"large"}]\';\n }\n }\n ').split("\n").map((function(e){return e.trim()})).join("")}}])}()),Ae=function(){function e(){Object(_e["a"])(this,e)}return Object(Ce["a"])(e,[{key:"beforeMount",value:function(){if(void 0!==this.$el){this.domObj={};var e=this.$el.getElementsByTagName("*"),t=this.$el.getAttribute("key");""!==this.$el.id&&null!=t&&(this.domObj[this.$el.id]=t);for(var a=e.length,i=0;i<a;i+=1){var s=e[i];if(t=s.getAttribute("key"),""!==s.id&&null!=t){if(void 0!==this.domObj[s.id])throw new RangeError("The id ".concat(s.id," is already set"));this.domObj[s.id]=t}}}}},{key:"mounted",value:function(){if(this.domObj){var e=this.domObj[this.$el.id];e&&this.$el.setAttribute("key",e);for(var t=this.$el.getElementsByTagName("*"),a=t.length,i=0;i<a;i+=1){var s=t[i];e=this.domObj[s.id],e&&s.setAttribute("key",e)}this.domObj={}}}}],[{key:"install",value:function(t){var a=new e(t),i=a.beforeMount,s=a.mounted;t.mixin({beforeMount:i,mounted:s})}}])}();try{window.wsf=Object.assign(window.wsf||{},{debug:pe["a"],eventBus:H["a"]})}catch(si){console.warn("unable to load wsf variable")}a("ed2b");var Ee=a("6aff"),Le=Object(n["a"])({components:{VideoMain:Ee["a"]}}),xe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e._t("default")],2)},Te=[],Oe={name:"video-lazy",mounted:function(){var e=document.querySelectorAll(".video-lazy-bg-load");e.length>0&&Object(F["b"])(e,"video-lazy")}}
1,De=Oe,Fe=Object(u["a"])(De,xe,Te,!1,null,null,null),Re=Fe.exports,Ne=Object(n["a"])({components:{VideoLazy:Re}}),je=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"login-container"},[a("div",{staticClass:"form-main-container"},[a("div",{staticClass:"left-logo"},[a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 351.43 63.58",role:"img",focusable:"false","aria-labelledby":"header-logo-title"}},[a("title",{attrs:{id:"header-logo-title"}},[e._v("Loreal")]),a("polygon",{attrs:{points:"191.19 59.31 236.54 59.31 236.54 53.77 198.97 53.77 198.97 36.04 227.19 36.04 227.19 30.44 198.97 30.44 198.97 14.11 236.54 14.11 236.54 8.59 191.19 8.59 191.19 59.31"}}),a("polygon",{attrs:{points:"214.76 0.39 208.62 7.29 227.89 0.39 214.76 0.39"}}),a("polygon",{attrs:{points:"305.59 8.59 305.59 59.3 351.43 59.3 351.43 53.77 312.68 53.77 312.68 8.59 305.59 8.59"}}),a("path",{attrs:{d:"M264.81,40.17,277,16l12.29,24.22ZM272,8.94,246.24,59.66H255l6.6-13.13h30.93l6.65,13.13h8.63L282,8.94Z",transform:"translate(-6.1 -0.35)"}}),a("path",{attrs:{d:"M166.61,32.39H142.92V14.94h24.51c5.64,0,8.82,2.63,10,6a9.45,9.45,0,0,1-1,7.36c-2,3.39-5.94,4.11-9.8,4.11m6.07,6.06c11.62-3.1,12.75-11.75,12.69-14.84-.69-9.06-6.8-14.67-17.77-14.67h-32V59.66h7.29V38.38h20.81L179,59.66h9.19s-11-14.32-15.55-21.21",transform:"translate(-6.1 -0.35)"}}),a("path",{attrs:{d:"M91.84.35c-20.57,0-34.59,14.5-34.59,32.06,0,18.48,15.49,31.53,34.59,31.53s34.57-12.86,34.57-31.53C126.41,14.85,112.22.35,91.84.35Zm-.25,57.29c-14.23,0-25.95-11.44-25.95-25.21S76.81,6.68,92.14,6.68a25.74,25.74,0,0,1,26,25.75C118.1,46.2,105.82,57.64,91.59,57.64Z",transform:"translate(-6.1 -0.35)"}}),a("polygon",{attrs:{points:"32.8 26.53 38.05 26.53 47.6 8.59 39.92 8.59 32.8 26.53"}}),a("polygon",{attrs:{points:"0 8.59 0 59.3 45.84 59.3 45.84 53.77 7.09 53.77 7.09 8.59 0 8.59"}})])]),a("div",{staticClass:"login-form"},[a("form",[a("div",{directives:[{name:"show",rawName:"v-show",value:e.showErrorMsg,expression:"showErrorMsg"}],staticClass:"error-msg"},[a("p",[e._v(e._s(e.errorMsg))])]),a("div",{staticClass:"form-field"},[a("span",{staticClass:"form-label",class:{active:e.usernameLabel||""!==e.userName}},[e._v(e._s(e.usernameLabel?"Username":"Enter your Username"))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.userName,expression:"userName"}],staticClass:"input-field",attrs:{type:"text",autocomplete:"off"},domProps:{value:e.userName},on:{focus:function(t){e.usernameLabel=!0},blur:function(t){""!==e.userName||(e.usernameLabel=!1)},keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.validateForm(t)},input:function(t){t.target.composing||(e.userName=t.target.value)}}}),a("label",[e._v("Please use your Sitecore Account")])]),a("div",{staticClass:"form-field"},[a("span",{staticClass:"form-label",class:{active:e.passwordLabel||""!==e.password}},[e._v(e._s(e.passwordLabel?"Password":"Enter your Password"))]),"checkbox"===(e.showPassword?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],staticClass:"input-field",attrs:{autocomplete:"off",type:"checkbox"},domProps:{checked:Array.isArray(e.password)?e._i(e.password,null)>-1:e.password},on:{focus:function(t){e.passwordLabel=!0},blur:function(t){""!==e.password||(e.passwordLabel=!1)},keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.validateForm(t)},change:function(t){var a=e.password,i=t.target,s=!!i.checked;if(Array.isArray(a)){var n=null,r=e._i(a,n);i.checked?r<0&&(e.password=a.concat([n])):r>-1&&(e.password=a.slice(0,r).concat(a.slice(r+1)))}else e.password=s}}}):"radio"===(e.showPassword?"text":"password")?a("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],staticClass:"input-field",attrs:{autocomplete:"off",type:"radio"},domProps:{checked:e._q(e.password,null)},on:{focus:function(t){e.passwordLabel=!0},blur:function(t){""!==e.password||(e.passwordLabel=!1)},keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.validateForm(t)},change:function(t){e.password=null}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],staticClass:"input-field",attrs:{autocomplete:"off",type:e.showPassword?"text":"password"},domProps:{value:e.password},on:{focus:function(t){e.passwordLabel=!0},blur:function(t){""!==e.password||(e.passwordLabel=!1)},keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.validateForm(t)}
1,input:function(t){t.target.composing||(e.password=t.target.value)}}}),a("span",{staticClass:"show-password",class:{"password-hide":e.showPassword},on:{click:function(t){e.showPassword=!e.showPassword}}},[a("img",{attrs:{src:"/-/media/Feature/NewBOPRNews/eye-open.png",alt:"eye"}})]),a("label",[e._v("Please use your Sitecore Password")])]),a("div",{staticClass:"form-submit"},[a("a",{staticClass:"contact-support-btn",attrs:{href:"mailto:[email protected]"}},[e._v("Contact support")]),a("button",{staticClass:"login-btn",attrs:{type:"button",disabled:""===this.userName||""===this.password},on:{click:e.validateForm}},[e._v("Login")])])])])])])},Me=[],Ve={name:"bo-login",data:function(){return{userName:"",password:"",showErrorMsg:!1,errorMsg:"Please enter your login credentials.",usernameLabel:!1,passwordLabel:!1,showPassword:!1,locationReload:!1}},methods:{validateForm:function(){var e=this;""===this.userName||""===this.password?this.showErrorMsg=!0:(this.showErrorMsg=!1,Object(D["a"])("/NewBoPrNews/UserLogin?UserName=".concat(this.userName,"&Password=").concat(this.password)).then((function(t){!0===t.isvalidcreds?window.location.href=t.responseurl:(e.showErrorMsg=!0,e.errorMsg=t.errormessage)})))}}},Be=Ve,$e=(a("e885"),Object(u["a"])(Be,je,Me,!1,null,null,null)),Ue=$e.exports,qe=Object(n["a"])({components:{BoLogin:Ue}}),ze=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"header-container"},[a("div",{staticClass:"header-shadow"},[e._t("default")],2)])},He=[],Je={name:"bo-header"},We=Je,Ke=(a("4cb3"),Object(u["a"])(We,ze,He,!1,null,null,null)),Qe=Ke.exports,Xe=Object(n["a"])({components:{BoHeader:Qe}}),Ge=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"filters-container"},[a("div",{staticClass:"content-filter"},[a("div",{staticClass:"filter-search"},[a("label",[e._v("Title:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.searchText,expression:"searchText"}],staticClass:"search-text-box",attrs:{type:"text",autocomplete:"off",placeholder:"Enter Search"},domProps:{value:e.searchText},on:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchData(t)},blur:function(t){e.searchTextError=!1},input:function(t){t.target.composing||(e.searchText=t.target.value)}}}),a("button",{staticClass:"search-btn",on:{click:e.searchData,blur:function(t){e.searchTextError=!1}}},[e._v("Search")]),e.showClearOption&&!e.searchTextError&&""!=this.searchText?a("button",{staticClass:"clear-btn",on:{click:e.clearSearch}},[e._v("Clear Search")]):e._e(),e.searchTextError?a("p",[e._v(e._s(e.searchErrorMsg))]):e._e()]),a("div",{staticClass:"filter-type"},[a("form",{attrs:{autocomplete:"off"}},[a("label",[e._v("Content Type")]),a("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedContentType,expression:"selectedContentType"}],attrs:{autocomplete:"off"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedContentType=t.target.multiple?a:a[0]}}},e._l(e.contentType,(function(t,i,s){return a("option",{key:s,domProps:{value:t}},[e._v(e._s(i))])})),0),e.showClearFilter?a("button",{staticClass:"clear-btn",on:{click:e.clearFilter}},[e._v("Clear Filter")]):e._e()])]),a("div",{staticClass:"filter-lang"},[a("form",{attrs:{autocomplete:"off"}},[a("label",[e._v("Language")]),a("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedLanguage,expression:"selectedLanguage"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedLanguage=t.target.multiple?a:a[0]}}},e._l(e.language,(function(t,i){return a("option",{key:i,domProps:{value:t}},[e._v(e._s(t))])})),0)])]),a("div",{staticClass:"filter-btn"},[a("button",{on:{click:function(t){return e.getTableData("filter")}}},[e._v("Filter")])])]),a("div",{staticClass:"content-action"},[a("div",{staticClass:"filter-lang"},[a("form",{attrs:{autocomplete:"off"}},[a("label",[e._v("Actions")]),a("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedAction,expression:"selectedAction"}],attrs:{autocomplete:"off"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,
1(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedAction=t.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"publish"}},[e._v("Publish")]),a("option",{attrs:{value:"makeitpublishable"}},[e._v("Make it publishable for all languages")]),a("option",{attrs:{value:"unpublish"}},[e._v("Make it unpublishable for all languages")])])])]),a("div",{staticClass:"filter-btn"},[a("button",{attrs:{disabled:0===e.selectedItem.length},on:{click:e.actionItems}},[e._v("Apply to selected item")])])])]),a("div",{staticClass:"content-table-container"},[a("table",{attrs:{"aria-describedby":"Press release and Article list"}},[a("thead",[a("th",{attrs:{id:"selection-box"}}),a("th",{attrs:{id:"Date"}},[e._v("\n Date\n "),e.sortDate?a("label",{staticClass:"arrow-up",on:{click:function(t){return e.sortData("datedes")}}}):a("label",{staticClass:"arrow-down",on:{click:function(t){return e.sortData("dateasc")}}})]),a("th",{attrs:{id:"Title"}},[e._v("\n Title\n "),e.sortTitle?a("label",{staticClass:"arrow-up",on:{click:function(t){return e.sortData("titledes")}}}):a("label",{staticClass:"arrow-down",on:{click:function(t){return e.sortData("titleasc")}}})]),a("th",{attrs:{id:"Lang"}},[e._v("\n Lang\n ")]),a("th",{attrs:{id:"Type"}},[e._v("\n Type\n ")]),a("th",{attrs:{id:"Author"}},[e._v("\n Author\n ")]),a("th",{attrs:{id:"Actions"}})]),null!==e.tableData&&e.tableData.length>0?a("tbody",e._l(e.tableData,(function(t,i){return a("tr",{key:i},[a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedItem,expression:"selectedItem"}],staticClass:"styled-checkbox",attrs:{id:i,type:"checkbox"},domProps:{value:t.ItemID,checked:Array.isArray(e.selectedItem)?e._i(e.selectedItem,t.ItemID)>-1:e.selectedItem},on:{change:function(a){var i=e.selectedItem,s=a.target,n=!!s.checked;if(Array.isArray(i)){var r=t.ItemID,o=e._i(i,r);s.checked?o<0&&(e.selectedItem=i.concat([r])):o>-1&&(e.selectedItem=i.slice(0,o).concat(i.slice(o+1)))}else e.selectedItem=n}}}),a("label",{attrs:{for:i}})]),a("td",[e._v(e._s(t.PublicationDate))]),a("td",[e._v(e._s(""===t.Title?t.ItemName:t.Title))]),a("td",[e._v(e._s(t.Language))]),a("td",[e._v(e._s(t.ItemType))]),a("td",[e._v(e._s(t.CreatedBy))]),a("td",[a("button",{staticClass:"action--btn edit-btn",on:{click:function(a){return e.editItem(t)}}},[e._v("Edit")]),a("a",{staticClass:"action--btn edit-btn",attrs:{href:t.PreviewUrl,target:"_blank"}},[e._v("Preview")])])])})),0):a("tbody",[e._m(0)])])]),e.pageCount>1?a("div",{staticClass:"content-pagination"},[a("button",{staticClass:"pagination-label",attrs:{disabled:1===e.paginationValue},on:{click:e.previousPage}},[e._v("Previous Page")]),a("form",{staticClass:"pagination--form",attrs:{autocomplete:"off"}},[a("select",{directives:[{name:"model",rawName:"v-model",value:e.paginationValue,expression:"paginationValue"}],attrs:{autocomplete:"off"},on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.paginationValue=t.target.multiple?a:a[0]},function(t){return e.getTableData("pageSelect")}]}},e._l(e.pageCount,(function(t){return a("option",{key:t,domProps:{value:t}},[e._v(e._s(t))])})),0)]),a("button",{staticClass:"pagination-label",attrs:{disabled:e.paginationValue===e.pageCount},on:{click:e.nextPage}},[e._v("Next Page")])]):e._e(),a("api-loader",{attrs:{"is-loading":e.isLoading}}),a("bo-Notification",{ref:"notification"})],1)},Ze=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticStyle:{"text-align":"center"},attrs:{colspan:"8"}},[e._v("No Result found")])])}],Ye=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vld-parent"},[a("loading",{attrs:{active:e.isLoading,"can-cancel":!0,"is-full-page":e.fullPage,color:e.color,opacity:e.opacity},on:{"update:active":function(t){e.isLoading=t}}})],1)},et=[],tt=a("9062"),at=a.n(tt),it={components:{Loading:at.a},props:{isLoading:{type:Boolean,default:!1},fullPage:{type:Boolean,default:!0},color:{type:String,default:"#6202ee"},opacity:{type:Number,default:.8}}},st=it,nt=(a("16af"),Object(u["a"])(st,Ye,et,!1,null,null,null)),rt=nt.exports,ot=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"notification-container",class:{active:e.showResponseMsg}},[a("div",{staticClass:"notification-msg"},[a("p",{class:{success:e.isSuccess,failed:!e.isSuccess}},[e._v(e._s(e.notificationMsg))])])])},lt=[],ct={data:function(){return{showResponseMsg:!1,notificationMsg:"",isSuccess:!1}},methods:{showNotification:function(e,t,a){var i=this;this.showResponseMsg=e,this.notificationMsg=t,this.isSuccess=a,setTimeout((function(){i.showResponseMsg=!1}),3e3)}}},ut=ct,dt=(a("5764"),Object(u["a"])(ut,ot,lt,!1,null,null,null)),ht=dt.exports,pt={name:"bo-content",components:{ApiLoader:rt,BoNotification:ht},props:{dataJson:{type:Object,required:!1,default:null}},data:function(){return{isLoading:!1,showAlertModal:!1,tableData:[],contentType:null,language:null,pageCount:0,paginationValue:1,selectedItem:[],selectedContentType:"",selectedLanguage:"",searchText:"",selectedAction:"publish",itemToDelete:[],searchTextError:!1,searchErrorMsg:"Please enter atleast 3 character",showClearOption:!1,sortDate:!1,sortTitle:!1,showClearFilter:!1,latestSortValue:"datedes"}}
1,mounted:function(){this.tableData=this.dataJson.ResultData,this.contentType=this.dataJson.contentFilter,this.language=this.dataJson.Languages,this.pageCount=this.dataJson.PageCount,this.selectedLanguage="en",this.selectedContentType="{56860ED0-5421-4C80-AED8-5359BA4DADBD}|{5FF5E747-246B-471C-B201-E032F6F5C316}"},methods:{actionItems:function(){var e=this;this.isLoading=!0;var t={ItemIds:this.selectedItem,RequestAction:this.selectedAction};Object(D["a"])("/Content-News-PR/ProcessActionItem",{data:t}).then((function(t){e.isLoading=!1;var a=t.IsActionSuccess,i=t.ResponseMessage,s="Failed";if(a)switch(e.selectedItem=[],e.selectedAction){case"publish":s="Item Published Successfully";break;case"makeitpublishable":s="Item Make Publishable Successfully";break;default:s="Item Make UnPublishable Successfully";break}var n=null===i?s:i;e.$refs.notification.showNotification(!0,n,!0)})).catch((function(t){e.$refs.notification.showNotification(!0,null===t.ResponseMessage?"Failed":t.ResponseMessage,!1)}))},nextPage:function(){this.paginationValue=this.paginationValue+1,this.getTableData("nextPage")},previousPage:function(){this.paginationValue=this.paginationValue-1,this.getTableData("previousPage")},getTableData:function(e){var t,a=this;this.isLoading=!0,this.selectedItem=[],t=!this.showClearOption||this.searchText.length<3?"/Content-News-PR/GetfilteredNewsPr?page=".concat(this.paginationValue,"&language=").concat(this.selectedLanguage,"&contentFilter=").concat(this.selectedContentType,"&country=global&sortby=").concat(this.latestSortValue):"/Content-News-PR/GetfilteredNewsPr?page=".concat(this.paginationValue,"&language=").concat(this.selectedLanguage,"&contentFilter=").concat(this.selectedContentType,"&country=global&q=").concat(this.searchText,"&sortby=").concat(this.latestSortValue),"filter"===e&&(this.showClearFilter=!0),Object(D["a"])(t).then((function(t){a.isLoading=!1,t.IsNoResult?(a.tableData=[],a.pageCount=t.PageCount):(a.tableData=t.ResultData,a.pageCount=t.PageCount,"clear"!==e&&"filter"!==e||(a.paginationValue=1))}))},searchData:function(){var e=this;""===this.searchText?this.searchTextError=!0:this.searchText.length<3?(this.searchTextError=!0,this.searchErrorMsg="Enter 3 or more characters"):this.searchText.indexOf(">")>-1||this.searchText.indexOf("<")>-1||this.searchText.indexOf("%")>-1?(this.searchTextError=!0,this.searchErrorMsg="invalid text"):(this.searchTextError=!1,this.showClearOption=!0,this.isLoading=!0,Object(D["a"])("/Content-News-PR/GetfilteredNewsPr?language=".concat(this.selectedLanguage,"&contentFilter=").concat(this.selectedContentType,"&country=global&q=").concat(this.searchText)).then((function(t){e.isLoading=!1,t.IsNoResult?(e.tableData=[],e.pageCount=t.PageCount):(e.tableData=t.ResultData,e.pageCount=t.PageCount,e.paginationValue=1)})))},sortData:function(e){var t=this;this.latestSortValue=e,e.indexOf("date")>-1&&(this.sortDate=!this.sortDate),e.indexOf("title")>-1&&(this.sortTitle=!this.sortTitle),this.isLoading=!0,Object(D["a"])("/Content-News-PR/GetfilteredNewsPr?language=".concat(this.selectedLanguage,"&contentFilter=").concat(this.selectedContentType,"&country=global&sortby=").concat(e)).then((function(e){t.isLoading=!1,e.IsNoResult?(t.tableData=[],t.paginationValue=1):(t.tableData=e.ResultData,t.pageCount=e.PageCount,t.paginationValue=1)}))},editItem:function(e){"News"===e.ItemType?window.location.href="/Content-News-PR/Create-News/?ItemId=".concat(e.ItemID,"&Language=").concat(e.Language):window.location.href="/Content-News-PR/Create-Press-Release/?ItemId=".concat(e.ItemID,"&Language=").concat(e.Language)},clearSearch:function(){this.showClearOption=!1,this.searchText="",this.getTableData("clear")},clearFilter:function(){this.selectedContentType="{56860ED0-5421-4C80-AED8-5359BA4DADBD}|{5FF5E747-246B-471C-B201-E032F6F5C316}",this.selectedLanguage="en",this.showClearFilter=!1,this.getTableData("clear")}}},ft=pt,gt=(a("f79e"),Object(u["a"])(ft,Ge,Ze,!1,null,null,null)),mt=gt.exports,vt=Object(n["a"])({components:{BoContent:mt}}),yt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"pr-heading"},[e.editPage?a("h2",[e._v(e._s(e.selectLanguage?"Translation":"Edit Press Release"))]):a("h2",[e._v("Create Press Release")]),e.editPage&&!e.selectLanguage?a("button",{on:{click:e.translateLanguage}}
1,[e._v("Translation")]):e._e(),e.editPage&&e.selectLanguage?a("button",{on:{click:function(t){e.selectLanguage=!1}}},[e._v("Back")]):e._e()]),e.selectLanguage?a("div",{staticClass:"pr-form-container translation-page"},[a("div",{staticClass:"content-table-container"},[a("table",{attrs:{"aria-describedby":"language list"}},[e._m(3),null!==e.translationResult.ResultData?a("tbody",[e._l(e.translationResult.ResultData,(function(t,i){return a("tr",{key:i},[a("td",[e._v("\n "+e._s(t.Language)+"\n ")]),a("td",[e._v(e._s(t.ItemName))]),a("td",[a("button",{staticClass:"action--btn edit-btn",on:{click:function(a){return e.editLanguage(t)}}},[e._v("Edit")])])])})),""!==e.translationResult&&null!==e.translationResult.ResultData?a("tr",[a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedTranslationLang,expression:"selectedTranslationLang"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedTranslationLang=t.target.multiple?a:a[0]}}},[a("option",{attrs:{value:""}},[e._v("Please select Language")]),e._l(e.translationResult.Languages,(function(t,i){return a("option",{key:i,domProps:{value:t}},[e._v(e._s(t))])}))],2)]),a("td",[e._v(e._s(e.translationResult.ResultData[0].ItemName))]),a("td",[a("button",{staticClass:"action--btn delete-btn",attrs:{disabled:""===e.selectedTranslationLang},on:{click:e.createLanguage}},[e._v("Create")])])]):e._e()],2):a("tbody",[e._m(4)])])])]):a("div",{staticClass:"pr-form-container"},[a("form",[a("div",{staticClass:"form-input-div"},[e._m(0),a("input",{directives:[{name:"model",rawName:"v-model",value:e.pressRelease.title,expression:"pressRelease.title"}],staticClass:"form-input",attrs:{type:"text",placeholder:"Title"},domProps:{value:e.pressRelease.title},on:{input:function(t){t.target.composing||e.$set(e.pressRelease,"title",t.target.value)}}}),e.showInputError&&""===e.pressRelease.title?a("span",{staticClass:"error-msg"},[e._v("Fill the title field")]):e._e(),e.isValidTitle&&!e.titleLengthError?a("span",{staticClass:"error-msg"},[e._v("Invalid text")]):e._e(),e.titleLengthError&&""!==e.pressRelease.title?a("span",{staticClass:"error-msg"},[e._v("Please enter below 72 characters")]):e._e()]),a("div",{staticClass:"form-input-div"},[a("p",{staticClass:"form-label"},[e._v("Short Description*")]),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.pressRelease.shortDesc,expression:"pressRelease.shortDesc"}],staticClass:"form-input-textarea",attrs:{placeholder:"Short description"},domProps:{value:e.pressRelease.shortDesc},on:{input:function(t){t.target.composing||e.$set(e.pressRelease,"shortDesc",t.target.value)}}}),e.showInputError&&""===e.pressRelease.shortDesc?a("span",{staticClass:"error-msg"},[e._v("Fill the Short description field")]):e._e(),e.descriptionLengthError&&""!==e.pressRelease.shortDesc?a("span",{staticClass:"error-msg"},[e._v("Please enter below 195 characters")]):e._e()]),a("div",{staticClass:"form-input-div"},[a("p",{staticClass:"form-label"},[e._v("Lang")]),a("select",{directives:[{name:"model",rawName:"v-model",value:e.pressRelease.language,expression:"pressRelease.language"}],attrs:{disabled:e.editPage},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.pressRelease,"language",t.target.multiple?a:a[0])}}},e._l(e.language,(function(t,i){return a("option",{key:i,domProps:{value:t}},[e._v(e._s(t))])})),0)]),a("div",{staticClass:"form-input-div"},[a("p",{staticClass:"form-label"},[e._v("Topics*")]),a("select",{directives:[{name:"model",rawName:"v-model",value:e.pressRelease.topics,expression:"pressRelease.topics"}],attrs:{disabled:e.editPage},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.pressRelease,"topics",t.target.multiple?a:a[0])}}},e._l(e.newsTopics,(function(t,i,s){return a("option",{key:s,domProps:{value:t}},[e._v(e._s(i))])})),0),e.showInputError&&""===e.pressRelease.topics?a("p",{staticClass:"error-msg"}
1,[e._v("Please select Topics")]):e._e()]),a("div",{staticClass:"form-input-div"},[a("p",{staticClass:"form-label"},[e._v("Tags")]),e._l(e.dataJson.FacetsTags,(function(t,i,s){return a("div",{key:s,staticClass:"checkbox-div"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.pressRelease.selectedTags,expression:"pressRelease.selectedTags"}],staticClass:"styled-checkbox",attrs:{id:s,type:"checkbox"},domProps:{value:t,checked:Array.isArray(e.pressRelease.selectedTags)?e._i(e.pressRelease.selectedTags,t)>-1:e.pressRelease.selectedTags},on:{change:function(a){var i=e.pressRelease.selectedTags,s=a.target,n=!!s.checked;if(Array.isArray(i)){var r=t,o=e._i(i,r);s.checked?o<0&&e.$set(e.pressRelease,"selectedTags",i.concat([r])):o>-1&&e.$set(e.pressRelease,"selectedTags",i.slice(0,o).concat(i.slice(o+1)))}else e.$set(e.pressRelease,"selectedTags",n)}}}),a("label",{attrs:{for:s}},[e._v(e._s(i))])])})),e.showInputError&&0===e.pressRelease.selectedTags.length?a("p",{staticClass:"error-msg"},[e._v("Please select minimum one Tag")]):e._e()],2),a("div",{staticClass:"form-input-div"},[a("p",{staticClass:"form-label"},[e._v("PDF Press Release")]),""!=e.pressRelease.pdfPrbase?a("div",{staticClass:"uploaded-file"},[e._m(1),a("div",{staticClass:"image-alt"},[a("label",[e._v(e._s(e.pressRelease.pdfPrFileName))])]),a("div",{staticClass:"file-action-delete"},[a("button",{staticClass:"remove-file",attrs:{type:"button"},on:{click:function(t){return e.removeImage("pdf")}}},[e._v("Delete")])]),a("div",{staticClass:"file-action-change"},[e.editPage?a("button",{staticClass:"select-file",attrs:{type:"button"},on:{click:function(t){return e.uploadImage("pdf","update")}}},[e._v("Change")]):e._e()]),a("input",{ref:"pdfPrUpdate",staticClass:"file-input",attrs:{type:"file",accept:".pdf"},on:{change:function(t){return e.heroFileUpload(t,"update")}}})]):a("div",[a("label",[e._v("Add File")]),a("button",{staticClass:"select-file",attrs:{type:"button"},on:{click:function(t){return e.uploadImage("pdf","create")}}},[e._v("Select a file")]),a("input",{ref:"pdfPr",staticClass:"file-input",attrs:{type:"file",accept:".pdf"},on:{change:function(t){return e.heroFileUpload(t,"create")}}}),a("p",{staticClass:"file-text"},[e._v("One file only, Allowed type:pdf")])]),a("div",[e.pdfFileSizeError?a("p",{staticClass:"error-msg"},[e._v("Please select the file below 500 KB")]):e._e(),e.pdfFileTypeError&&!e.pdfFileSizeError?a("p",{staticClass:"error-msg"},[e._v("Invalid File")]):e._e()])]),a("div",{staticClass:"form-input-div"},[a("p",{staticClass:"form-label"},[e._v("Image")]),""!=e.pressRelease.prImagebase?a("div",{staticClass:"uploaded-file"},[a("div",{staticClass:"card-image"},[a("img",{attrs:{src:e.prImageSrc,alt:"image"}})]),a("div",{staticClass:"image-alt"},[a("label",[e._v(e._s(e.pressRelease.prImageFileName))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.pressRelease.prImageAlt,expression:"pressRelease.prImageAlt"}],attrs:{placeholder:"Alt"},domProps:{value:e.pressRelease.prImageAlt},on:{input:function(t){t.target.composing||e.$set(e.pressRelease,"prImageAlt",t.target.value)}}}),a("small",[e._v("Please set an Alt for your image")])]),a("div",{staticClass:"file-action-delete"},[a("button",{staticClass:"remove-file",attrs:{type:"button"},on:{click:function(t){return e.removeImage("pr")}}},[e._v("Delete")])]),a("div",{staticClass:"file-action-change"},[e.editPage?a("button",{staticClass:"select-file",attrs:{type:"button"},on:{click:function(t){return e.uploadImage("pr","update")}}},[e._v("Change")]):e._e()]),a("input",{ref:"prImageUpdate",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:function(t){return e.prFileUpload(t,"update")}}})]):a("div",[a("label",[e._v("Add File")]),a("button",{staticClass:"select-file",attrs:{type:"button"},on:{click:function(t){return e.uploadImage("pr","create")}}},[e._v("Select a file")]),a("input",{ref:"prImage",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:function(t){return e.prFileUpload(t,"create")}}}),a("p",{staticClass:"file-text"},[e._v("One file only, Allowed type:jpg, png")])]),a("div",[e.prFileSizeError?a("p",{staticClass:"error-msg"}
1,[e._v("Please select the file below 500 KB")]):e._e(),e.prImageFileTypeError&&!e.prFileSizeError?a("p",{staticClass:"error-msg"},[e._v("Invalid File")]):e._e()])]),a("div",{staticClass:"form-input-div"},[e._m(2),""!=e.pressRelease.cardImagebase?a("div",{staticClass:"uploaded-file"},[a("div",{staticClass:"card-image"},[a("img",{attrs:{src:e.cardImageSrc,alt:"Card Image"}})]),a("div",{staticClass:"image-alt"},[a("label",[e._v(e._s(e.pressRelease.cardImageFileName))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.pressRelease.cardImageAlt,expression:"pressRelease.cardImageAlt"}],attrs:{placeholder:"Alt"},domProps:{value:e.pressRelease.cardImageAlt},on:{input:function(t){t.target.composing||e.$set(e.pressRelease,"cardImageAlt",t.target.value)}}}),a("small",[e._v("Please set an Alt for your image")])]),a("div",{staticClass:"file-action-delete"},[a("button",{staticClass:"remove-file",attrs:{type:"button"},on:{click:function(t){return e.removeImage("card")}}},[e._v("Delete")])]),e.editPage?a("div",{staticClass:"file-action-change"},[a("button",{staticClass:"select-file",attrs:{type:"button"},on:{click:function(t){return e.uploadImage("card","update")}}},[e._v("Change")]),a("p",[e._v("( If you change this field it will impact other version of item )")])]):e._e(),a("input",{ref:"cardImageUpdate",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:function(t){return e.cardFileUpload(t,"update")}}})]):a("div",[a("label",[e._v("Add File")]),a("button",{staticClass:"select-file",attrs:{type:"button"},on:{click:function(t){return e.uploadImage("card","create")}}},[e._v("Select a file")]),a("input",{ref:"cardImage",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:function(t){return e.cardFileUpload(t,"create")}}}),a("p",{staticClass:"file-text"},[e._v("One file only, Allowed type:jpg, png")])]),a("div",[e.showInputError&&""===e.pressRelease.cardImageFileName&&!e.cardFileSizeError?a("p",{staticClass:"error-msg"},[e._v("Please add card image")]):e._e(),e.cardFileSizeError?a("p",{staticClass:"error-msg"},[e._v("Please select the file below 500 KB")]):e._e(),e.cardFileTypeError&&!e.cardFileSizeError?a("p",{staticClass:"error-msg"},[e._v("Invalid File")]):e._e()])]),a("div",{staticClass:"form-input-div"},[a("p",{staticClass:"form-label"},[e._v("Body*")]),"design"===e.bodyFormat?a("vue-editor",{model:{value:e.pressRelease.content,callback:function(t){e.$set(e.pressRelease,"content",t)},expression:"pressRelease.content"}}):a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.pressRelease.content,expression:"pressRelease.content"}],staticClass:"body-text",domProps:{value:e.pressRelease.content},on:{input:function(t){t.target.composing||e.$set(e.pressRelease,"content",t.target.value)}}}),a("div",{staticClass:"body-selection"},[a("label",[e._v("Text format")]),a("select",{directives:[{name:"model",rawName:"v-model",value:e.bodyFormat,expression:"bodyFormat"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.bodyFormat=t.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"design"}},[e._v("Design")]),a("option",{attrs:{value:"basichtml"}},[e._v("Basic HTML")])])]),e.showInputError&&""===e.pressRelease.content?a("span",{staticClass:"error-msg"},[e._v("Please enter body")]):e._e()],1),e.editPage?a("div",{staticClass:"form-input-div"},[a("p",{staticClass:"form-label"},[e._v("Assets")]),e.pressRelease.pressAssets.length>0?a("div",e._l(e.pressRelease.pressAssets,(function(t,i){return a("div",{key:i},[t.isDeleted?e._e():a("div",{staticClass:"uploaded-file"},["jpg"===t.fileType||"jpeg"===t.fileType||"png"===t.fileType||"svg"===t.fileType?a("div",{staticClass:"card-image"},[a("img",{attrs:{src:t.fileUrl,alt:"assest image"}})]):"pdf"===t.fileType?a("div",{staticClass:"card-image"},[a("img",{attrs:{src:"/-/media/Feature/NewBOPRNews/pdf-image.png",alt:"pdf file"}})]):"xlsx"===t.fileType||"csv"===t.fileType||"xls"===t.fileType?a("div",{staticClass:"card-image"},[a("img",{attrs:{src:"/-/media/Feature/NewBOPRNews/xls.png",alt:"Excel file"}})]):"doc"===t.fileType||"docx"===t.fileType?a("div",{staticClass:"card-image"},[a("img",{attrs:{src:"/-/media/Feature/NewBOPRNews/doc-image.png",alt:"doc file"}})]):a("div",{staticClass:"card-image"},[a("img",{attrs:{src:"/-/media/Feature/NewBOPRNews/pdf.png",alt:"other file"}})]),"jpg"===t.fileType||"jpeg"===t.fileType||"png"===t.fileType||"svg"===t.fileType?a("div",{staticClass:"image-alt"},[a("label",[e._v(e._s(t.fileName))]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.fileAltName,expression:"data.fileAltName"}],attrs:{placeholder:"Alt"},domProps:{value:t.fileAltName},on:{input:function(a){a.target.composing||e.$set(t,"fileAltName",a.target.value)}}}),a("small",[e._v("Please set an Alt for your image")])]):a("div",{staticClass:"image-alt"},[a("label",[e._v(e._s(t.fileName))])]),a("button",{staticClass:"remove-file",attrs:{type:"button"},on:{click:function(t){return e.removeAssets(i)}}},[e._v("Delete")])])])}
1)),0):e._e(),e.totalPressAssets<=4?a("div",[a("label",[e._v("Add File")]),a("button",{staticClass:"select-file",attrs:{type:"button"},on:{click:function(t){return e.uploadImage("asset","create")}}},[e._v("Select a file")]),a("input",{ref:"assets",staticClass:"file-input",attrs:{type:"file",accept:".xlsx,.xls,image/*,.doc, .docx,.ppt, .pptx,.pdf"},on:{change:function(t){return e.uploadAsset(t,"create")}}}),a("p",{staticClass:"file-text"},[e._v("Multiple file, Allowed type:jpg,png,xlsx,txt,doc,pdf,ppt")])]):e._e()]):e._e(),a("div",{staticClass:"form-input-div"},[a("p",{staticClass:"form-label"},[e._v("SEO*")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.pressRelease.seoTitle,expression:"pressRelease.seoTitle"}],staticClass:"form-input",attrs:{type:"text",placeholder:"Title"},domProps:{value:e.pressRelease.seoTitle},on:{input:function(t){t.target.composing||e.$set(e.pressRelease,"seoTitle",t.target.value)}}}),e.showInputError&&""===e.pressRelease.seoTitle?a("span",{staticClass:"error-msg"},[e._v("Fill the SEO Title field")]):e._e(),e.isValidSeoTitle&&""!==e.pressRelease.seoTitle?a("span",{staticClass:"error-msg"},[e._v("Invalid text")]):e._e(),a("input",{directives:[{name:"model",rawName:"v-model",value:e.pressRelease.seoDesc,expression:"pressRelease.seoDesc"}],staticClass:"form-input seo-desc",attrs:{type:"text",placeholder:"Description"},domProps:{value:e.pressRelease.seoDesc},on:{input:function(t){t.target.composing||e.$set(e.pressRelease,"seoDesc",t.target.value)}}})]),a("div",{staticClass:"submit-btn-div"},[a("button",{staticClass:"btn-save",attrs:{type:"button"},on:{click:function(t){return e.savePressRelease("save")}}},[e._v("Save ")]),a("a",{staticClass:"btn-save",class:{disabled:!e.editPage},attrs:{href:e.previewUrl,target:"_blank"}},[e._v("Preview")]),a("button",{staticClass:"btn-save",attrs:{type:"button"},on:{click:function(t){return e.savePressRelease("publish")}}},[e._v("Save & Publish")])])])]),e.showSuccessModal?a("div",{staticClass:"alert-modal-container"},[a("div",{staticClass:"main-content"},[a("div",{staticClass:"alert-message"},[a("p",[e._v(e._s(e.successMessage))])]),a("div",{staticClass:"alert-modal-btn"},[a("button",{staticClass:"btn-ok",on:{click:e.openContentPage}},[e._v("Ok")]),null!==e.previewUrl?a("a",{staticClass:"btn-ok",attrs:{href:e.previewUrl,target:"_blank"}},[e._v("Preview")]):e._e()])])]):e._e(),a("api-loader",{attrs:{"is-loading":e.isLoading}}),e.showAlertModal?a("alert-modal",{attrs:{"delete-message":e.deleteMessage},on:{closeModal:e.closeModal}}):e._e(),a("bo-Notification",{ref:"notification"})],1)},bt=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",{staticClass:"form-label"},[e._v("Title*"),a("span",[e._v("(maximum 72 characters)")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"card-image"},[a("img",{attrs:{src:"/-/media/Feature/NewBOPRNews/pdf.png",alt:"PDF file"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",{staticClass:"form-label"},[e._v("Card Image* "),a("small",[e._v("(216 Ã 400)")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",[a("th",{attrs:{id:"press-language"}},[e._v("\n Language\n ")]),a("th",{attrs:{id:"press-title"}},[e._v("\n Title\n ")]),a("th",{attrs:{id:"press-action-column"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticStyle:{"text-align":"center"},attrs:{colspan:"8"}},[e._v("No Result found")])])}],wt=(a("7f7f"),a("386d"),a("5873")),_t=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"alert-modal-container"},[a("div",{staticClass:"main-content"},[a("div",{staticClass:"alert-message"},[a("p",[e._v(e._s(e.deleteMessage))])]),a("div",{staticClass:"alert-modal-btn"},[a("button",{staticClass:"btn-ok",on:{click:function(t){return e.closeModal("ok")}}},[e._v("Ok")]),a("button",{staticClass:"btn-cancel",on:{click:function(t){return e.closeModal("cancel")}}},[e._v("Cancel")])])])])},Ct=[],St={props:{deleteMessage:{type:String,default:""}},data:function(){return{}},methods:{closeModal:function(e){this.$emit("closeModal",e)}}},Pt=St,kt=Object(u["a"])(Pt,_t,Ct,!1,null,null,null),It=kt.exports,At={components:{VueEditor:wt["a"],ApiLoader:rt,AlertModal:It,BoNotification:ht},props:{dataJson:{type:Object,default:null}},data:function(){return{isLoading:!1,customToolbar:[[{header:["","1","2","3","4","5","6"]}],["bold","italic","underline","strike"],[{align:""},{align:"center"},{align:"right"},{align:"justify"}],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{list:"check"}],[{color:[]},{background:[]}],["link"]],language:[],newsTopics:null,pressRelease:{title:"",shortDe
1sc:"",language:"en",topics:"",pdfPr:"",prImage:"",content:"",pressAssets:[],seoTitle:"",seoDesc:"",prImagebase:"",pdfPrbase:"",cardImage:"",cardImageAlt:"",cardImagebase:"",cardImageFileName:"",selectedTags:[]},bodyFormat:"design",pdfPrSrc:"",cardImageSrc:"",prImageSrc:"",showInputError:!1,isValidTitle:!1,isValidSeoTitle:!1,titleLengthError:!1,descriptionLengthError:!1,editPage:!1,previewUrl:"",prFileSizeError:!1,cardFileSizeError:!1,pdfFileSizeError:!1,editItemId:"",selectLanguage:!1,translationResult:"",selectedTranslationLang:"",showSuccessModal:!1,showAlertModal:!1,isPdfDeleted:!1,isPrImageDeleted:!1,isCardImageDeleted:!1,prImageUrl:"",pdfUrl:"",cardImageUrl:"",editItemLanguage:"",pdfFileTypeError:!1,cardFileTypeError:!1,prImageFileTypeError:!1,deleteMessage:"",deleteImageType:"",deleteAssetIndex:""}},computed:{totalPressAssets:function(){var e=this.pressRelease.pressAssets.filter((function(e){return!e.isDeleted}));return e.length}},mounted:function(){this.newsTopics=this.dataJson.Topics,this.language=this.dataJson.Languages;var e=new URLSearchParams(window.location.search),t=e.get("ItemId");null!==t&&(this.editPage=!0,this.updateValues())},methods:{uploadImage:function(e,t){"create"===t?"pdf"===e?this.$refs.pdfPr.click():"card"===e?this.$refs.cardImage.click():"pr"===e?this.$refs.prImage.click():this.$refs.assets.click():"pdf"===e?this.$refs.pdfPrUpdate.click():"pr"===e?this.$refs.prImageUpdate.click():this.$refs.cardImageUpdate.click()},heroFileUpload:function(e,t){"application/pdf"===this.uploadFileType(e)?e.target.files[0].size<=12e6?(this.createImage(e.target.files[0],"pdf"),this.pressRelease.pdfPr=e.target.files[0],this.pressRelease.pdfPrFileName=this.sanitizeFileName(e.target.files[0].name),this.pressRelease.pdfPrFileFormat=this.getFileType(e.target.files[0].name),this.pdfFileSizeError=!1,this.pdfFileTypeError=!1,"update"===t&&(this.isPdfDeleted=!0,this.pdfUrl="")):(this.pdfFileTypeError=!1,this.pdfFileSizeError=!0):(this.pdfFileSizeError=!1,this.pdfFileTypeError=!0)},cardFileUpload:function(e,t){"image/jpg"===this.uploadFileType(e)||"image/jpeg"===this.uploadFileType(e)||"image/png"===this.uploadFileType(e)||"image/svg+xml"===this.uploadFileType(e)?e.target.files[0].size<=5e5?(this.createImage(e.target.files[0],"card"),this.pressRelease.cardImage=e.target.files[0],this.pressRelease.cardImageAlt=this.sanitizeFileName(e.target.files[0].name),this.pressRelease.cardImageFileName=this.sanitizeFileName(e.target.files[0].name),this.pressRelease.cardImageFileFormat=this.getFileType(e.target.files[0].name),this.cardFileSizeError=!1,this.cardFileTypeError=!1,"update"===t&&(this.isCardImageDeleted=!0,this.cardImageUrl="")):this.cardFileSizeError=!0:this.cardFileTypeError=!0},prFileUpload:function(e,t){"image/jpg"===this.uploadFileType(e)||"image/jpeg"===this.uploadFileType(e)||"image/png"===this.uploadFileType(e)||"image/svg+xml"===this.uploadFileType(e)?e.target.files[0].size<=5e5?(this.createImage(e.target.files[0],"pr"),this.pressRelease.prImage=e.target.files[0],this.pressRelease.prImageAlt=this.sanitizeFileName(e.target.files[0].name),this.pressRelease.prImageFileName=this.sanitizeFileName(e.target.files[0].name),this.pressRelease.prImageFileFormat=this.getFileType(e.target.files[0].name),this.prFileSizeError=!1,this.prImageFileTypeError=!1,"update"===t&&(this.isPrImageDeleted=!0,this.prImageUrl="")):(this.prImageFileTypeError=!1,this.prFileSizeError=!0):(this.prFileSizeError=!1,this.prImageFileTypeError=!0)},uploadFileType:function(e){return e.target.files[0].type},sanitizeFileName:function(e){var t=e.split("."),a="";return t.forEach((function(e,i){t.length-1!==i&&(a+=e)})),a},getFileType:function(e){var t=e.split(".");return t[t.length-1]},uploadAsset:function(e){var t=this,a=e.target.files[0],i=new FileReader,s={fileBase:"",fileType:this.getFileType(a.name),fileName:this.sanitizeFileName(a.name),fileAltName:this.sanitizeFileName(a.name)};i.onload=function(e){s.fileBase=e.target.result,t.addAssets(s)},i.readAsDataURL(a)},addAssets:function(e){var t=this,a=new FormData;a.append("AssetStream",e.fileBase.split("base64,")[1]),a.append("AssetType",e.fileType),a.append("AssetName",e.fileName),a.append("AssetAltText",e.fileAltName),a.append("ItemId",this.editItemId),a.append("Topic",this.pressRelease.topics),a.append("ItemName",this.dataJson.ItemName),a.append("Language",this.editItemLanguage),a.append("ArticleType","press"),this.isLoading=!0,fetch("/Content-News-PR/UploadMediaAsset",{method:"POST",body:a}).then((function(e){return e.json()})).then((function(a){t.isLoading=!1;var i={fileUrl:a.AssetUrl,fileType:e.fileType,fileName:a.AssetName,fileAltName:a.AssetAltText,fileId:a.AssetId,isNewFile:!0,isDeleted:!1};t.pressRelease.pressAssets.push(i),t.$refs.notification.showNotification(!0,"Assets added Successfully",!0)})).catch((function(){t.isLoading=!1,t.$refs.notification.showNotification(!0,"Failed",!1)}))},createImage:function(e,t){var a=this,i=new FileReader;i.onload="pdf"===t?function(e){a.pdfPrSrc=e.target.result,a.pressRelease.pdfPrbase=a.pdfPrSrc.split("base64,")[1]}:"pr"===t?function(e){a.prImageSrc=e.target.result,a.pressRelease.prImagebase=a.prImageSrc.split("base64,")[1]}:function(e){a.cardImageSrc=e.target.result,a.pressRelease.cardImagebase=a.cardImageSrc.split("base64,")[1]},i.readAsDataURL(e)},removeImage:function(e){var t="Are you sure you want to delete this media item version from Media library";"pdf"===e?this.editPage&&!this.isPdfDeleted?(this.deleteImageType=e,this.showAlertModal=!0,this.deleteMessage=t):this.deleteImageLocal(e):"pr"===e?this.editPage&&!this.isPrImageDeleted?(this.deleteImageType=e,this.showAlertModal=!0,this.deleteMessage=t):this.deleteImageLocal(e):this.editPage&&!this.isCardImageDeleted?(this.deleteImageType=e,this.showAlertModal=!0,this.deleteMessage="If you delete this from media library it will impact other version of item"):this.deleteImageLocal(e)},deleteImageLocal:function(e){"pdf"===e?(this.pdfPrSrc="",this.pressRelease.pdfPr="",this.pressRelease.pdfPrbase="",this.pressRelease.pdfPrFileName="",this.pressRelease.pdfPrFileFormat=""):"pr"===e?(this.prImageSrc="",this.pressRelease.prImagebase="",this.pressRelease.prImage="",this.pressRelease.prImageAlt="",this.pressRelease.prImageFileName="",this.pressRelease.prImageFileFormat=""):(this.cardImageSrc="",this.pressRelease.cardImagebase="",this.pressRelease.cardImage="",this.pressRelease.cardImageAlt="",this.pressRelease.cardImageFileName="",this.pressRelease.cardImageFileFormat="")},deleteImage:function(e){var t=this;this.isLoading=!0;var a={pdf:this.pdfPrSrc,pr:this.prImageSrc,card:this.cardImageSrc},i=a[e]||this.pressRelease.pressAssets[this.deleteAssetIndex].fileUrl;Object(D["a"])("/Content-News-PR/DeleteMediaItem?mediaUrl=".concat(i,"&language=").concat(this.dataJson.ItemLanguage)).then((function(a){!0===a?(t.isLoading=!1,"pr"===e?(t.deleteImageLocal(e),t.isPrImageDeleted=!0,t.prImageUrl=""):"pdf"===e?(t.deleteImageLocal(e),t.isPdfDeleted=!0,t.pdfUrl=""):"card"===e?(t.deleteImageLocal(e),t.isCardImageDeleted=!0,t.cardImageUrl=""):t.pressRelease.pressAssets[t.deleteAssetIndex].isDeleted=!0,t.$refs.notification.showNotification(!0,"File Deleted Successfully",!0)):(t.isLoading=!1,t.$refs.notification.showNotification(!0,"Failed",!1))}))},removeAssets:function(e){this.deleteImageType="assets",this.deleteAssetIndex=e,this.showAlertModal=!0,this.deleteMessage="Are you sure you want to delete this media item version from Media library"},savePressRelease:function(e){if(""===this.pressRelease.title||""===this.pressRelease.content||""===this.pressRelease.topics||""===this.pressRelease.seoTitle||""===this.pressRelease.shortDe
1sc||""===this.pressRelease.cardImageFileName||0===this.pressRelease.selectedTags.length)this.showInputError=!0;else if(this.pressRelease.title.length>72)this.titleLengthError=!0;else if(this.pressRelease.shortDesc.length>195)this.descriptionLengthError=!0;else if(this.pressRelease.title.indexOf(">")>-1||this.pressRelease.title.indexOf("<")>-1||this.pressRelease.title.indexOf("%")>-1)this.isValidTitle=!0;else if(this.pressRelease.seoTitle.indexOf(">")>-1||this.pressRelease.seoTitle.indexOf("<")>-1||this.pressRelease.seoTitle.indexOf("%")>-1)this.isValidSeoTitle=!0;else{this.showInputError=!1,this.isValidTitle=!1,this.isValidSeoTitle=!1,this.titleLengthError=!1,this.descriptionLengthError=!1,this.isLoading=!0;var t=String(this.pressRelease.content).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),a=String(this.pressRelease.shortDesc).replace(/(?:\r\n|\r|\n)/g,"<br />").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),i="";this.selectedTagsFn(i);var s=new FormData;this.formDataAppendFn(s,a,t,i),this.formDataAssetsAppendFn(s),this.formDataEditPagefn(s,e),this.formDataFetchFn(s)}},selectedTagsFn:function(e){var t=this;this.pressRelease.selectedTags.forEach((function(a,i){e=t.pressRelease.selectedTags.length<=1?a:t.pressRelease.selectedTags.length-1===i?"".concat(e).concat(a):"".concat(e).concat(a,"|")}))},formDataAppendFn:function(e,t,a,i){e.append("Language",this.pressRelease.language),e.append("Topic",this.pressRelease.topics),e.append("Title",this.pressRelease.title),e.append("ShortDesc",t),e.append("SeoTitle",this.pressRelease.seoTitle),e.append("SeoDesc",this.pressRelease.seoDesc),e.append("BodyContent",a),e.append("SelectedFacetValue",i),this.editPage&&!this.isPdfDeleted?(e.append("PressMainPdf",""),e.append("PressMainPdfName",""),e.append("PdfUrl",this.pdfUrl)):(e.append("PressMainPdf",this.pressRelease.pdfPrbase),e.append("PressMainPdfName",this.pressRelease.pdfPrFileName),e.append("PdfUrl",this.pdfUrl)),this.editPage&&!this.isCardImageDeleted?(e.append("CardImage",""),e.append("CardImageAlt",""),e.append("CardImageFileName",""),e.append("CardImageFileFormat",""),e.append("CardImageUrl",this.cardImageUrl)):(e.append("CardImage",this.pressRelease.cardImagebase),e.append("CardImageAlt",this.pressRelease.cardImageAlt),e.append("CardImageFileName",this.pressRelease.cardImageFileName),e.append("CardImageFileFormat",this.pressRelease.cardImageFileFormat),e.append("CardImageUrl",this.cardImageUrl)),this.editPage&&!this.isPrImageDeleted?(e.append("PressImage",""),e.append("PressImageAlt",""),e.append("PressImageFileFormat",""),e.append("prImageUrl",this.prImageUrl)):(e.append("PressImage",this.pressRelease.prImagebase),e.append("PressImageAlt",this.pressRelease.prImageAlt),e.append("PressImageFileFormat",this.pressRelease.prImageFileFormat),e.append("PressImageFileName",this.pressRelease.prImageFileName),e.append("prImageUrl",this.prImageUrl)),e.append("ArticleType","press")},formDataAssetsAppendFn:function(e){if(this.editPage){var t="";this.pressRelease.pressAssets.forEach((function(e){e.isDeleted?t+=e.fileId+"|":e.isNewFile?t+=e.fileUrl+"|":t+=e.fileUrl+";"+e.fileId+"|"})),e.append("prAssets",t)}},formDataEditPagefn:function(e,t){!0===this.editPage?(e.append("ItemId",this.editItemId),this.formDataEditPageTruefn(e,t)):"publish"===t?e.append("action","createitempublish"):e.append("action","createitem")},formDataEditPageTruefn:function(e,t){!0===this.languageCreated?"publish"===t?e.append("action","addlangpublish"):e.append("action","addlangversion"):"publish"===t?e.append("action","updateitempublish"):e.append("action","updateitem")},formDataFetchFn:function(e){var t=this;fetch("/Content-News-PR/ProcessCreateUpdateArticle",{method:"POST",body:e}).then((function(e){return e.json()})).then((function(e){e.IsAuthenticated?(t.isLoading=!1,t.showSuccessModal=!0,t.previewUrl=e.CreateUpdateResponse.PreviewUrl,t.editItemId=e.CreateUpdateResponse.ItemId,t.successMessage=null===e.ResponseMessage?"Press Release Created Successfully":e.ResponseMessage):window.location.href="/content-news-pr/newbologin/"})).catch((function(e){t.isLoading=!1,t.$refs.notification.showNotification(!0,null===e.ResponseMessage?"Failed":e.ResponseMessage,!1)}))},translateLanguage:function(){var e=this;this.isLoading=!0,Object(D["a"])("/Content-News-PR/LoadTransaltionOptions?itemId=".concat(this.editItemId,"&Language=").concat(this.editItemLanguage)).then((function(t){t.IsAuthenticated?(e.translationResult=t,e.selectLanguage=!0,e.isLoading=!1,e.selectedTranslationLang=""):(e.isLoading=!1,window.location.href="/content-news-pr/newbologin/")}))},createLanguage:function(){this.selectLanguage=!1,this.pressRelease.language=this.selectedTranslationLang,this.languageCreated=!0},editLanguage:function(e){this.selectLanguage=!this.selectLanguage,this.languageCreated=!1,this.pressRelease.language=e.Language;var t=new URLSearchParams(window.location.search),a=t.get("Language");e.Language!==a&&(window.location.href="/Content-News-PR/Create-Press-Release/?ItemId=".concat(this.editItemId,"&Language=").concat(e.Language))}
1,updateValues:function(){var e=this;if(this.editItemId=this.dataJson.ItemId,this.editItemLanguage=this.dataJson.ItemLanguage,this.pressRelease.title=this.dataJson.Title,this.pressRelease.language=this.dataJson.ItemLanguage,this.pressRelease.topics=this.dataJson.ItemTopic,this.pressRelease.seoTitle=this.dataJson.SeoTitle,this.pressRelease.seoDesc=this.dataJson.SeoDesc,this.pressRelease.content=this.dataJson.Body,this.previewUrl=this.dataJson.CreateUpdateResponse.PreviewUrl,this.prImageSrc=this.dataJson.PressImageUrl,this.pdfPrSrc=this.dataJson.PdfUrl,this.cardImageSrc=this.dataJson.CardImgUrl,this.prImageUrl=this.dataJson.PressImageUrl,this.pdfUrl=this.dataJson.PdfUrl,this.cardImageUrl=this.dataJson.CardImgUrl,null!==this.dataJson.ShortDesc&&""!==this.dataJson.ShortDesc&&(this.pressRelease.shortDesc=this.dataJson.ShortDesc.replace(/<br\s*\/?>/g,"\n")),null!==this.dataJson.PdfUrl&&""!==this.dataJson.PdfUrl){var t=this.dataJson.PdfUrl.split("/");t=t[t.length-1],this.pressRelease.pdfPrbase=this.dataJson.PdfUrl,this.pressRelease.pdfPrFileName=t,this.pressRelease.pdfPrFileFormat=t.split(".")[1]}else this.isPdfDeleted=!0;if(null!==this.dataJson.PressImageUrl&&""!==this.dataJson.PressImageUrl){var a=this.dataJson.PressImageUrl.split("/");a=a[a.length-1],this.pressRelease.prImagebase=this.dataJson.PressImageUrl,this.pressRelease.prImageFileName=a,this.pressRelease.prImageFileFormat=a.split(".")[1],this.pressRelease.prImageAlt=this.dataJson.PressImgAlt}else this.isPrImageDeleted=!0;if(null!==this.dataJson.CardImgUrl&&""!==this.dataJson.CardImgUrl){var i=this.dataJson.CardImgUrl.split("/");i=i[i.length-1],this.pressRelease.cardImagebase=this.dataJson.CardImgUrl,this.pressRelease.cardImageFileName=i,this.pressRelease.cardImageFileFormat=i.split(".")[1],this.pressRelease.cardImageAlt=this.dataJson.CardImgAlt}else this.isCardImageDeleted=!0;this.dataJson.PressMediaAssets.length>0&&this.dataJson.PressMediaAssets.forEach((function(t){var a=t.AssetUrl.split("/");a=a[a.length-1];var i={fileUrl:t.AssetUrl,fileType:t.AssetType,fileName:a,fileAltName:a,fileId:t.AssetItemId,isNewFile:!1,isDeleted:!1};e.pressRelease.pressAssets.push(i)})),this.dataJson.SelectedFacets.split("|").forEach((function(t){""!==t&&e.pressRelease.selectedTags.push(t)}))},closeModal:function(e){"ok"===e?(this.deleteImage(this.deleteImageType),this.showAlertModal=!1):this.showAlertModal=!1},openContentPage:function(){window.location.href="/content-news-pr/create-press-release/?ItemId=".concat(this.editItemId,"&Language=").concat(this.pressRelease.language)}}},Et=At,Lt=(a("7bf2"),Object(u["a"])(Et,yt,bt,!1,null,null,null)),xt=Lt.exports,Tt=Object(n["a"])({components:{BoPressRelease:xt}}),Ot=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"pr-heading"},[e.editPage?a("h2",[e._v(e._s(e.selectLanguage?"Translation":"Edit News"))]):a("h2",[e._v("Create News")]),e.editPage&&!e.selectLanguage?a("button",{on:{click:e.translateLanguage}},[e._v("Translation")]):e._e(),e.editPage&&e.selectLanguage?a("button",{on:{click:function(t){e.selectLanguage=!1}}},[e._v("Back")]):e._e()]),e.selectLanguage?a("div",{staticClass:"pr-form-container translation-page"},[a("div",{staticClass:"content-table-container"},[a("table",{attrs:{"aria-describedby":"language list"}},[e._m(1),null!==e.translationResult.ResultData?a("tbody",[e._l(e.translationResult.ResultData,(function(t,i){return a("tr",{key:i},[a("td",[e._v("\n "+e._s(t.Language)+"\n ")]),a("td",[e._v(e._s(t.ItemName))]),a("td",[a("button",{staticClass:"action--btn edit-btn",on:{click:function(a){return e.editLanguage(t)}}},[e._v("Edit")])])])})),""!==e.translationResult&&null!==e.translationResult.ResultData?a("tr",[a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedTranslationLang,expression:"selectedTranslationLang"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedTranslationLang=t.target.multiple?a:a[0]}}},[a("option",{attrs:{value:""}},[e._v("Please select Language")]),e._l(e.translationResult.Languages,(function(t,i){return a("option",{key:i,domProps:{value:t}},[e._v(e._s(t))])}))],2)]),a("td",[e._v(e._s(e.translationResult.ResultData[0].ItemName))]),a("td",[a("button",{staticClass:"action--btn delete-btn",attrs:{disabled:""===e.selectedTranslationLang},on:{click:e.createLanguage}}
1,[e._v("Create")])])]):e._e()],2):a("tbody",[e._m(2)])])])]):a("div",{staticClass:"pr-form-container"},[a("form",[a("div",{staticClass:"form-input-div"},[a("p",{staticClass:"form-label"},[e._v("Title*")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newsValue.title,expression:"newsValue.title"}],staticClass:"form-input",attrs:{type:"text",placeholder:"Title"},domProps:{value:e.newsValue.title},on:{input:function(t){t.target.composing||e.$set(e.newsValue,"title",t.target.value)}}}),e.showInputError&&""===e.newsValue.title?a("span",{staticClass:"error-msg"},[e._v("Fill the title field")]):e._e(),e.isValidTitle?a("span",{staticClass:"error-msg"},[e._v("Invalid text")]):e._e(),e.titleLengthError&&""!==e.newsValue.title?a("span",{staticClass:"error-msg"},[e._v("Please enter below 255 characters")]):e._e()]),a("div",{staticClass:"form-input-div"},[a("p",{staticClass:"form-label"},[e._v("Short Description")]),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.newsValue.shortDesc,expression:"newsValue.shortDesc"}],staticClass:"form-input-textarea",attrs:{type:"text",placeholder:"Short description"},domProps:{value:e.newsValue.shortDesc},on:{input:function(t){t.target.composing||e.$set(e.newsValue,"shortDesc",t.target.value)}}}),e.descriptionLengthError&&""!==e.newsValue.shortDesc?a("span",{staticClass:"error-msg"},[e._v("Please enter below 195 characters")]):e._e()]),a("div",{staticClass:"form-input-div"},[a("p",{staticClass:"form-label"},[e._v("Lang")]),a("select",{directives:[{name:"model",rawName:"v-model",value:e.newsValue.language,expression:"newsValue.language"}],attrs:{disabled:e.editPage},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.newsValue,"language",t.target.multiple?a:a[0])}}},e._l(e.language,(function(t,i){return a("option",{key:i,domProps:{value:t}},[e._v(e._s(t))])})),0)]),a("div",{staticClass:"form-input-div"},[a("p",{staticClass:"form-label"},[e._v("Topics*")]),a("select",{directives:[{name:"model",rawName:"v-model",value:e.newsValue.topics,expression:"newsValue.topics"}],attrs:{disabled:e.editPage},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.newsValue,"topics",t.target.multiple?a:a[0])}}},e._l(e.newsTopics,(function(t,i,s){return a("option",{key:s,domProps:{value:t}},[e._v(e._s(i))])})),0),e.showInputError&&""===e.newsValue.topics?a("p",{staticClass:"error-msg"},[e._v("Please select Topics")]):e._e()]),a("div",{staticClass:"form-input-div"},[a("p",{staticClass:"form-label"},[e._v("Tags")]),e._l(e.dataJson.FacetsTags,(function(t,i,s){return a("div",{key:s,staticClass:"checkbox-div"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.newsValue.selectedTags,expression:"newsValue.selectedTags"}],staticClass:"styled-checkbox",attrs:{id:s,type:"checkbox"},domProps:{value:t,checked:Array.isArray(e.newsValue.selectedTags)?e._i(e.newsValue.selectedTags,t)>-1:e.newsValue.selectedTags},on:{change:function(a){var i=e.newsValue.selectedTags,s=a.target,n=!!s.checked;if(Array.isArray(i)){var r=t,o=e._i(i,r);s.checked?o<0&&e.$set(e.newsValue,"selectedTags",i.concat([r])):o>-1&&e.$set(e.newsValue,"selectedTags",i.slice(0,o).concat(i.slice(o+1)))}else e.$set(e.newsValue,"selectedTags",n)}}}),a("label",{attrs:{for:s}},[e._v(e._s(i))])])})),e.showInputError&&0===e.newsValue.selectedTags.length?a("p",{staticClass:"error-msg"},[e._v("Please select minimum one Tag")]):e._e()],2),a("div",{staticClass:"form-input-div"},[a("p",{staticClass:"form-label"},[e._v("Hero Image")]),""!=e.newsValue.heroImagebase?a("div",{staticClass:"uploaded-file"},[a("div",{staticClass:"card-image"},[a("img",{attrs:{src:e.heroImageSrc,alt:"Hero Image"}})]),a("div",{staticClass:"image-alt"},[a("label",[e._v(e._s(e.newsValue.heroImage.name||e.newsValue.heroImageFileName))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newsValue.heroImageAlt,expression:"newsValue.heroImageAlt"}],attrs:{placeholder:"Alt"},domProps:{value:e.newsValue.heroImageAlt},on:{input:function(t){t.target.composing||e.$set(e.newsValue,"heroImageAlt",t.target.value)}}}),a("small",[e._v("Please set an Alt for your image")])]),a("div",{staticClass:"file-action-delete"},[a("button",{staticClass:"remove-file",attrs:{type:"button"},on:{click:function(t){return e.removeImage("hero")}}},[e._v("Delete")])]),a("div",{staticClass:"file-action-change"},[e.editPage?a("button",{staticClass:"select-file",attrs:{type:"button"},on:{click:function(t){return e.uploadImage("hero","update")}}}
1,[e._v("Change")]):e._e()]),a("input",{ref:"heroImageUpdate",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:function(t){return e.heroFileUpload(t,"update")}}})]):a("div",[a("label",[e._v("Add File")]),a("button",{staticClass:"select-file",attrs:{type:"button"},on:{click:function(t){return e.uploadImage("hero","create")}}},[e._v("Select a file")]),a("input",{ref:"heroImage",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:function(t){return e.heroFileUpload(t,"create")}}}),a("p",{staticClass:"file-text"},[e._v("One file only, 500 KB limit. Allowed type:jpg, png")])]),a("div",[e.heroFileSizeError?a("p",{staticClass:"error-msg"},[e._v("Please select the file below 500 KB")]):e._e(),e.heroFileTypeError&&!e.heroFileSizeError?a("p",{staticClass:"error-msg"},[e._v("Invalid File")]):e._e()])]),a("div",{staticClass:"form-input-div"},[e._m(0),""!=e.newsValue.cardImagebase?a("div",{staticClass:"uploaded-file"},[a("div",{staticClass:"card-image"},[a("img",{attrs:{src:e.cardImageSrc,alt:"Card Image"}})]),a("div",{staticClass:"image-alt"},[a("label",[e._v(e._s(e.newsValue.cardImage.name||e.newsValue.cardImageFileName))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newsValue.cardImageAlt,expression:"newsValue.cardImageAlt"}],attrs:{placeholder:"Alt"},domProps:{value:e.newsValue.cardImageAlt},on:{input:function(t){t.target.composing||e.$set(e.newsValue,"cardImageAlt",t.target.value)}}}),a("small",[e._v("Please set an Alt for your image")])]),a("div",{staticClass:"file-action-delete"},[a("button",{staticClass:"remove-file",attrs:{type:"button"},on:{click:function(t){return e.removeImage("card")}}},[e._v("Delete")])]),e.editPage?a("div",{staticClass:"file-action-change"},[a("button",{staticClass:"select-file",attrs:{type:"button"},on:{click:function(t){return e.uploadImage("card","update")}}},[e._v("Change")]),a("p",[e._v("( If you change this field it will impact other version of item )")])]):e._e(),a("input",{ref:"cardImageUpdate",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:function(t){return e.cardFileUpload(t,"update")}}})]):a("div",[a("label",[e._v("Add File")]),a("button",{staticClass:"select-file",attrs:{type:"button"},on:{click:function(t){return e.uploadImage("card","create")}}},[e._v("Select a file")]),a("input",{ref:"cardImage",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:function(t){return e.cardFileUpload(t,"create")}}}),a("p",{staticClass:"file-text"},[e._v("One file only, 500 KB limit. Allowed type:jpg, png")])]),a("div",[e.showInputError&&""===e.newsValue.cardImageFileName&&!e.cardFileSizeError?a("p",{staticClass:"error-msg"},[e._v("Please add card image")]):e._e(),e.cardFileSizeError?a("p",{staticClass:"error-msg"},[e._v("Please select the file below 500 KB")]):e._e(),e.cardFileTypeError&&!e.cardFileSizeError?a("p",{staticClass:"error-msg"},[e._v("Invalid File")]):e._e()])]),a("div",{staticClass:"form-input-div"},[a("p",{staticClass:"form-label"},[e._v("Body*")]),e._l(e.newsValue.content,(function(t,i){return a("div",{key:i},["design"===t.bodyFormat?a("vue-editor",{attrs:{"editor-toolbar":e.customToolbar},model:{value:t.text,callback:function(a){e.$set(t,"text",a)},expression:"data.text"}}):a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.text,expression:"data.text"}],staticClass:"body-text",domProps:{value:t.text},on:{input:function(a){a.target.composing||e.$set(t,"text",a.target.value)}}}),a("div",{staticClass:"body-selection"},[a("label",[e._v("Text format")]),a("select",{directives:[{name:"model",rawName:"v-model",value:t.bodyFormat,expression:"data.bodyFormat"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(t,"bodyFormat",a.target.multiple?i:i[0])}}},[a("option",{attrs:{value:"design"}},[e._v("Design")]),a("option",{attrs:{value:"basichtml"}},[e._v("Basic HTML")])]),e.newsValue.content.length===i+1&&4!==i?a("button",{staticClass:"add-btn",attrs:{type:"button"},on:{click:e.addBody}},[e._v("+Add Body")]):a("button",{staticClass:"add-btn",attrs:{type:"button"},on:{click:function(t){return e.removeBody(i)}}},[e._v("-Remove Body")])])],1)})),e.showInputError&&!e.bodyEmptyError?a("span",{staticClass:"error-msg"}
1,[e._v("Please enter minimum 1 body field")]):e._e()],2),a("div",{staticClass:"form-input-div"},[a("p",{staticClass:"form-label"},[e._v("SEO*")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newsValue.seoTitle,expression:"newsValue.seoTitle"}],staticClass:"form-input",attrs:{type:"text",placeholder:"Title"},domProps:{value:e.newsValue.seoTitle},on:{input:function(t){t.target.composing||e.$set(e.newsValue,"seoTitle",t.target.value)}}}),e.showInputError&&""===e.newsValue.seoTitle?a("span",{staticClass:"error-msg"},[e._v("Fill the SEO Title field")]):e._e(),e.isValidSeoTitle&&""!==e.newsValue.seoTitle?a("span",{staticClass:"error-msg"},[e._v("Invalid text")]):e._e(),a("input",{directives:[{name:"model",rawName:"v-model",value:e.newsValue.seoDesc,expression:"newsValue.seoDesc"}],staticClass:"form-input seo-desc",attrs:{type:"text",placeholder:"Description"},domProps:{value:e.newsValue.seoDesc},on:{input:function(t){t.target.composing||e.$set(e.newsValue,"seoDesc",t.target.value)}}})]),a("div",{staticClass:"submit-btn-div"},[a("button",{staticClass:"btn-save",attrs:{type:"button"},on:{click:function(t){return e.createNews("save")}}},[e._v("Save")]),a("a",{staticClass:"btn-save",class:{disabled:!e.editPage},attrs:{href:e.previewUrl,target:"_blank"}},[e._v("Preview")]),a("button",{staticClass:"btn-save",attrs:{type:"button"},on:{click:function(t){return e.createNews("publish")}}},[e._v("Save & Publish")])])])]),e.showSuccessModal?a("div",{staticClass:"alert-modal-container"},[a("div",{staticClass:"main-content"},[a("div",{staticClass:"alert-message"},[a("p",[e._v(e._s(e.successMessage))])]),a("div",{staticClass:"alert-modal-btn"},[a("button",{staticClass:"btn-ok",on:{click:e.openContentPage}},[e._v("Ok")]),null!==e.previewUrl?a("a",{staticClass:"btn-ok",attrs:{href:e.previewUrl,target:"_blank"}},[e._v("Preview")]):e._e()])])]):e._e(),a("api-loader",{attrs:{"is-loading":e.isLoading}}),e.showAlertModal?a("alert-modal",{attrs:{"delete-message":e.deleteMessage},on:{closeModal:e.closeModal}}):e._e(),a("bo-Notification",{ref:"notification"})],1)},Dt=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",{staticClass:"form-label"},[e._v("Card Image* "),a("small",[e._v("(216 Ã 400)")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",[a("th",{attrs:{id:"language"}},[e._v("\n Language\n ")]),a("th",{attrs:{id:"title"}},[e._v("\n Title\n ")]),a("th",{attrs:{id:"action-column"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticStyle:{"text-align":"center"},attrs:{colspan:"8"}},[e._v("No Result found")])])}],Ft={name:"bo-news",components:{VueEditor:wt["a"],ApiLoader:rt,AlertModal:It,BoNotification:ht},props:{dataJson:{type:Object,default:null}},data:function(){return{isLoading:!1,customToolbar:[[{header:["","1","2","3","4","5","6"]}],["bold","italic","underline","strike"],[{align:""},{align:"center"},{align:"right"},{align:"justify"}],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{list:"check"}],[{color:[]},{background:[]}],["link"]],language:[],newsTopics:null,newsValue:{title:"",language:"en",topics:"",heroImage:"",heroImageAlt:"",heroImagebase:"",heroImageFileName:"",heroImageFileFormat:"",cardImage:"",cardImageAlt:"",cardImagebase:"",cardImageFileName:"",cardImageFileFormat:"",content:[{text:"",bodyFormat:"design",isEmpty:!1}],seoTitle:"",seoDesc:"",shortDesc:"",selectedTags:[]},heroImageSrc:"",cardImageSrc:"",showInputError:!1,selectLanguage:!1,isValidTitle:!1,isValidSeoTitle:!1,previewUrl:"",editItemId:"",translationResult:"",selectedTranslationLang:"",languageCreated:!1,showSuccessModal:!1,editPage:!1,isHeroImageDeleted:!1,isCardImageDeleted:!1,successMessage:"",showAlertModal:!1,heroImageUrl:"",cardImageUrl:"",heroFileSizeError:!1,cardFileSizeError:!1,titleLengthError:!1,descriptionLengthError:!1,bodyEmptyError:!1,heroFileTypeError:!1,cardFileTypeError:!1,deleteMessage:"",deleteImageType:""}},mounted:function(){this.newsTopics=this.dataJson.Topics,this.language=this.dataJson.Languages;var e=new URLSearchParams(window.location.search),t=e.get("ItemId");
1null!==t&&(this.editPage=!0,this.updateValues())},methods:{createNews:function(e){if(this.bodyEmptyError=this.newsValue.content.some((function(e){return""!==e.text})),""!==this.newsValue.title&&""!==this.newsValue.seoTitle&&""!==this.newsValue.topics&&""!==this.newsValue.cardImageFileName&&0!==this.newsValue.selectedTags.length&&this.bodyEmptyError)if(this.newsValue.title.length>255)this.titleLengthError=!0;else if(this.newsValue.shortDesc.length>195)this.descriptionLengthError=!0;else if(this.newsValue.title.indexOf(">")>-1||this.newsValue.title.indexOf("<")>-1||this.newsValue.title.indexOf("%")>-1)this.isValidTitle=!0;else if(this.newsValue.seoTitle.indexOf(">")>-1||this.newsValue.seoTitle.indexOf("<")>-1||this.newsValue.seoTitle.indexOf("%")>-1)this.isValidSeoTitle=!0;else{this.showInputError=!1,this.isValidTitle=!1,this.isValidSeoTitle=!1,this.titleLengthError=!1,this.descriptionLengthError=!1,this.isLoading=!0;var t=this.newsValue.content.map((function(e){if(""!==e.text)return String(e.text).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")+"endofbody"})),a="";this.selectedTagsFn(a);var i=new FormData;this.formDataAppendFn(i,t,a),this.formDataEditPagefn(i,e),this.formDataFetchFn(i)}else this.showInputError=!0},selectedTagsFn:function(e){var t=this;this.newsValue.selectedTags.forEach((function(a,i){e=t.newsValue.selectedTags.length<=1?a:t.newsValue.selectedTags.length-1===i?"".concat(e).concat(a):"".concat(e).concat(a,"|")}))},formDataAppendFn:function(e,t,a){e.append("Language",this.newsValue.language),e.append("Topic",this.newsValue.topics),e.append("Title",this.newsValue.title),e.append("SeoTitle",this.newsValue.seoTitle),e.append("SeoDesc",this.newsValue.seoDesc),e.append("BodyContent",t),e.append("ShortDesc",this.newsValue.shortDesc),e.append("SelectedFacetValue",a),e.append("ArticleType","news"),this.editPage&&!this.isHeroImageDeleted?(e.append("HeroImage",""),e.append("HeroImageAlt",""),e.append("HeroImageFileName",""),e.append("HeroImageFileFormat",""),e.append("HeroImageUrl",this.heroImageUrl)):(e.append("HeroImage",this.newsValue.heroImagebase),e.append("HeroImageAlt",this.newsValue.heroImageAlt),e.append("HeroImageFileName",this.newsValue.heroImageFileName),e.append("HeroImageFileFormat",this.newsValue.heroImageFileFormat),e.append("HeroImageUrl",this.heroImageUrl)),this.editPage&&!this.isCardImageDeleted?(e.append("CardImage",""),e.append("CardImageAlt",""),e.append("CardImageFileName",""),e.append("CardImageFileFormat",""),e.append("CardImageUrl",this.cardImageUrl)):(e.append("CardImage",this.newsValue.cardImagebase),e.append("CardImageAlt",this.newsValue.cardImageAlt),e.append("CardImageFileName",this.newsValue.cardImageFileName),e.append("CardImageFileFormat",this.newsValue.cardImageFileFormat),e.append("CardImageUrl",this.cardImageUrl))},formDataEditPagefn:function(e,t){!0===this.editPage?(e.append("ItemId",this.editItemId),this.formDataEditPageTruefn(e,t)):"publish"===t?e.append("action","createitempublish"):e.append("action","createitem")},formDataEditPageTruefn:function(e,t){!0===this.languageCreated?"publish"===t?e.append("action","addlangpublish"):e.append("action","addlangversion"):"publish"===t?e.append("action","updateitempublish"):e.append("action","updateitem")},formDataFetchFn:function(e){var t=this;fetch("/Content-News-PR/ProcessCreateUpdateArticle",{method:"POST",body:e}).then((function(e){return e.json()})).then((function(e){e.IsAuthenticated?(t.showSuccessModal=!0,t.isLoading=!1,t.previewUrl=e.CreateUpdateResponse.PreviewUrl,t.editItemId=e.CreateUpdateResponse.ItemId,t.successMessage=null===e.ResponseMessage?"Item Created Successfully":e.ResponseMessage):window.location.href="/content-news-pr/newbologin/"})).catch((function(){t.isLoading=!1,t.$refs.notification.showNotification(!0,"Failed",!1)}))},uploadImage:function(e,t){"create"===t?"hero"===e?this.$refs.heroImage.click():this.$refs.cardImage.click():"hero"===e?this.$refs.heroImageUpdate.click():this.$refs.cardImageUpdate.click()},heroFileUpload:function(e,t){this.uploadFileValidation(e)?e.target.files[0].size<=5e5?(this.createImage(e.target.files[0],"hero"),this.newsValue.heroImage=e.target.files[0],this.newsValue.heroImageAlt=this.sanitizeFileName(e.target.files[0].name),this.newsValue.heroImageFileName=this.sanitizeFileName(e.target.files[0].name),this.newsValue.heroImageFileFormat=this.getFileType(e.target.files[0].name),this.heroFileSizeError=!1,this.heroFileTypeError=!1,"update"===t&&(this.isHeroImageDeleted=!0,this.heroImageUrl="")):(this.heroFileTypeError=!1,this.heroFileSizeError=!0):(this.heroFileSizeError=!1,this.heroFileTypeError=!0)},uploadFileType:function(e){return e.target.files[0].type},sanitizeFileName:function(e){var t=e.split("."),a="";return t.forEach((function(e,i){t.length-1!==i&&(a+=e)})),a},getFileType:function(e){var t=e.split(".");return t[t.length-1]},uploadFileValidation:function(e){var t=["image/jpg","image/jpeg","image/png","image/svg+xml"],a=t.indexOf(this.uploadFileType(e));return-1!==a},cardFileUpload:function(e,t){this.uploadFileValidation(e)?e.target.files[0].size<=5e5?(this.createImage(e.target.files[0],"card"),this.newsValue.cardImage=e.target.files[0],this.newsValue.cardImageAlt=this.sanitizeFileName(e.target.files[0].name),this.newsValue.cardImageFileName=this.sanitizeFileName(e.target.files[0].name),this.newsValue.cardImageFileFormat=this.getFileType(e.target.files[0].name),this.cardFileSizeError=!1,this.cardFileTypeError=!1,"update"===t&&(this.isCardImageDeleted=!0,this.cardImageUrl="")):(this.cardFileTypeError=!1,this.cardFileSizeError=!0):(this.cardFileSizeError=!1,this.cardFileTypeError=!0)},createImage:function(e,t){var a=this,i=new FileReader;i.onload="hero"===t?function(e){a.heroImageSrc=e.target.result,a.newsValue.heroImagebase=a.heroImageSrc.split("base64,")[1]}:function(e){a.cardImageSrc=e.target.result,a.newsValue.cardImagebase=a.cardImageSrc.split("base64,")[1]},i.readAsDataURL(e)},removeImage:function(e){"hero"===e?this.editPage&&!this.isHeroImageDeleted?(this.deleteImageType=e,this.showAlertModal=!0,this.deleteMessage="Are you sure you want to delete this media item version from Media library"):this.deleteImageLocal(e):this.editPage&&!this.isCardImageDeleted?(this.deleteImageType=e,this.showAlertModal=!0,this.deleteMessage="If you delete this from media library it will impact other version of item"):this.deleteImageLocal(e)},deleteImageLocal:function(e){"hero"===e?(this.newsValue.heroImage="",this.newsValue.heroImagebase="",this.heroImageSrc="",this.newsValue.heroImageAlt="",this.newsValue.heroImageFileName="",this.newsValue.heroImageFileFormat=""):(this.newsValue.cardImage="",this.newsValue.cardImagebase="",this.cardImageSrc="",this.newsValue.cardImageAlt="",this.newsValue.cardImageFileName="",this.newsValue.cardImageFileFormat="")},deleteImage:function(e){var t=this;this.isLoading=!0;var a="hero"===e?this.heroImageSrc:this.cardImageSrc;Object(D["a"])("/Content-News-PR/DeleteMediaItem?mediaUrl=".concat(a,"&language=").concat(this.dataJson.ItemLanguage)).then((function(a){!0===a?(t.isLoading=!1,"hero"===e?(t.deleteImageLocal(e),t.isHeroImageDeleted=!0,t.heroImageUrl=""):(t.deleteImageLocal(e),t.isCardImageDeleted=!0,t.cardImageUrl=""),t.$refs.notification.showNotification(!0,"Image Deleted Successfully",!0)):(t.isLoading=!1,t.$refs.notification.showNotification(!0,"Failed To Delete",!1))}))},addBody:function(){this.newsValue.content.push({text:"",bodyFormat:"design",isEmpty:!1})},removeBody:function(e){this.newsValue.content.splice(e,1)},translateLanguage:function(){var e=this;this.isLoading=!0;var t=new URLSearchParams(window.location.search),a=t.get("Language");Object(D["a"])("/Content-News-PR/LoadTransaltionOptions?itemId=".concat(this.editItemId,"&Language=").concat(a)).then((function(t){t.IsAuthenticated?(e.translationResult=t,e.selectLanguage=!0,e.isLoading=!1,e.selectedTranslationLang=""):(e.isLoading=!1,window.location.href="/content-news-pr/newbologin/")}))}
1,updateValues:function(){var e=this;if(this.editItemId=this.dataJson.ItemId,this.newsValue.title=this.dataJson.Title,this.newsValue.language=this.dataJson.ItemLanguage,this.newsValue.topics=this.dataJson.ItemTopic,this.newsValue.heroImagebase=this.dataJson.HeroImageUrl,this.heroImageSrc=this.dataJson.HeroImageUrl,this.heroImageUrl=this.dataJson.HeroImageUrl,this.cardImageUrl=this.dataJson.CardImgUrl,this.cardImageSrc=this.dataJson.CardImgUrl,this.newsValue.heroImageAlt=this.dataJson.HeroImgAlt,this.newsValue.cardImagebase=this.dataJson.CardImgUrl,this.newsValue.cardImageAlt=this.dataJson.CardImgAlt,null!==this.dataJson.HeroImageUrl&&""!==this.dataJson.HeroImageUrl){var t=this.dataJson.HeroImageUrl.split("/");t=t[t.length-1],this.newsValue.heroImageFileName=t,this.newsValue.heroImageFileFormat=t.split(".")[1]}else this.isHeroImageDeleted=!0;if(null!==this.dataJson.CardImgUrl&&""!==this.dataJson.CardImgUrl){var a=this.dataJson.CardImgUrl.split("/");a=a[a.length-1],this.newsValue.cardImageFileName=a,this.newsValue.cardImageFileFormat=a.split(".")[1]}else this.isCardImageDeleted=!0;this.dataJson.Body.length>0?this.newsValue.content=this.dataJson.Body.map((function(e){return{text:e,bodyFormat:"design",isEmpty:!1}})):this.newsValue.content=[{text:"",bodyFormat:"design",isEmpty:!1}],this.newsValue.seoTitle=this.dataJson.SeoTitle,this.newsValue.seoDesc=this.dataJson.SeoDesc,this.newsValue.shortDesc=this.dataJson.ShortDesc,this.previewUrl=this.dataJson.CreateUpdateResponse.PreviewUrl,this.dataJson.SelectedFacets.split("|").forEach((function(t){""!==t&&e.newsValue.selectedTags.push(t)}))},createLanguage:function(){this.selectLanguage=!1,this.newsValue.language=this.selectedTranslationLang,this.languageCreated=!0},openContentPage:function(){window.location.href="/Content-News-PR/Create-News/?ItemId=".concat(this.editItemId,"&Language=").concat(this.newsValue.language)},editLanguage:function(e){this.selectLanguage=!this.selectLanguage,this.languageCreated=!1,this.newsValue.language=e.Language;var t=new URLSearchParams(window.location.search),a=t.get("Language");e.Language!==a&&(window.location.href="/Content-News-PR/Create-News/?ItemId=".concat(this.editItemId,"&Language=").concat(e.Language))},closeModal:function(e){"ok"===e?(this.deleteImage(this.deleteImageType),this.showAlertModal=!1):this.showAlertModal=!1}}},Rt=Ft,Nt=Object(u["a"])(Rt,Ot,Dt,!1,null,null,null),jt=Nt.exports,Mt=Object(n["a"])({components:{BoNews:jt}}),Vt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("form",{staticClass:"search",on:{submit:function(e){e.preventDefault()}}},[e.isLoading?a("loader"):e._e(),a("search-suggestion",{attrs:{"api-url":e.suggestionApiUrl,"is-search-page":!0,data:JSON.parse(e.data).boxData,value:e.searchValue,error:e.displayError,lang:JSON.parse(e.data).lang,"country-value":JSON.parse(e.data).country},on:{updateError:function(t){e.displayError=!e.displayError},suggestion:e.updateSearch,updateQuery:e.updateSearch}}),a("div",{staticClass:"container--large",class:{"search--loading ":e.isLoading}},[e.hasResult?a("search-top",{attrs:{data:JSON.parse(e.data).topData,filter:JSON.parse(e.data).filtertxt},on:{catUpdate:e.updateSearch}}):e._e(),e.hasResult?a("div",{staticClass:"search__content container--medium"},[a("search-filter",{attrs:{data:e.FilterData,title:JSON.parse(e.data).filtertxt,clear:JSON.parse(e.data).clearTxt,show:JSON.parse(e.data).show,ariaLabel:e.searchFilterAriaLabel,ariaDescriptionBy:e.searchFilterAriaDescriptionBy},on:{updateSearch:e.updateSearch,clearfilter:e.clearFilter}}),a("search-result",{attrs:{data:e.ResultData,sort:JSON.parse(e.data).sortData,"is-new-content":e.resultsToBeUpdated,"no-result":e.showNoResult,query:e.searchValue,"is-result-updated":e.isResultUpdated},on:{updateSort:e.updateSearch}})],1):e._e(),e.hasResult&&e.PageCount>1?a("search-pagination",{attrs:{result:e.PageCount,text:JSON.parse(e.data).pagination,"on-load-page":parseInt(e.activePage)},on:{searchpagination:e.updateSearch}}):e._e()],1)],1)},Bt=[],$t=(a("ac4d"),a("8a81"),a("53ca")),Ut=(a("20d6"),a("4917"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"search-box container--large"},[e.isJsDisabled?e._t("default"):e._e(),e.suggestions.length>0?a("div",{staticClass:"is-sr-only",attrs:{id:"announce","aria-live":"assertive"}},[a("span",{ref:"announce"}
1),e._v(" suggestions found, to navigate use up and down arrows\n ")]):a("div",{staticClass:"is-sr-only",attrs:{id:"announce","aria-live":"assertive"}},[a("span",{ref:"announce"})]),a("div",{staticClass:"container--small search-box__content"},[a("label",{staticClass:"search-box__top",attrs:{for:"site-search"}},[e._v(e._s(e.data.txt))]),a("div",{staticClass:"search-box__bottom"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.searchQuery,expression:"searchQuery"}],ref:"searchField",staticClass:"search-box__input",attrs:{placeholder:e.data.placeholder,type:"search",name:"q","aria-autocomplete":"both","aria-owns":"suggested-list",id:"site-search",autocomplete:"off",disabled:e.error||e.selfValidationError},domProps:{value:e.searchQuery},on:{input:[function(t){t.target.composing||(e.searchQuery=t.target.value)},e.updateSuggestions],keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.focusSuggestion("up")},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.focusSuggestion("down")}],blur:e.inputBlur,focus:e.inputFocus,keypress:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.isInputFocused=!1}}}),e.countryName&&e.countryValue?a("input",{attrs:{type:"hidden",name:e.countryName.toLowerCase()},domProps:{value:e.countryValue.toLowerCase()}}):e._e(),e.data.lang?a("input",{attrs:{type:"hidden",name:"language"},domProps:{value:e.data.lang}}):e._e(),e.isSearchPage?e._e():a("input",{attrs:{type:"hidden",name:"autocomplete"},domProps:{value:e.searchAutoComplete}}),a("button",{staticClass:"btn search-box__submit",attrs:{type:"submit"},on:{click:e.pushTagging}},["small"!==e.screenSize?a("span",[e._v(e._s(e.data.search))]):a("span",{staticClass:"icon icon-search"},[a("span",{staticClass:"off-screen"},[e._v(e._s(e.data.search))])])]),a("div",{staticClass:"search-box__error",class:{"search-box__error--visible":e.error||e.selfValidationError},attrs:{id:"search-field-error"},on:{click:function(t){return t.preventDefault(),e.updateError(t)}}},[a("div",{staticClass:"search-box__error--content"},[e._v("\n "+e._s(e.data.error)+"\n ")])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isInputFocused&&e.searchQuery.length>=3,expression:"isInputFocused && searchQuery.length >= 3"}],staticClass:"search-box__dropdown"},[e.isLoading?a("div",{staticClass:"search-box__loader"},[a("loader")],1):e.suggestions.length>0?a("ul",{ref:"listOfsuggestions",attrs:{id:"suggested-list",role:"listbox"}},e._l(e.suggestions,(function(t,i){return a("li",{key:i,attrs:{role:"option",id:t.azureuniqueid},on:{click:function(t){return t.stopPropagation(),e.selectSuggestion(t)},keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.selectSuggestion(t)},mouseover:e.clearSuggestionsState}},[a("span",{domProps:{innerHTML:e._s(t.text)}})])})),0):e._e()])])],2)}),qt=[],zt={components:{loader:function(){return a.e("chunk-c09568a2").then(a.bind(null,"29cb"))}},mixins:[E["a"]],props:{apiUrl:{type:String,required:!0},data:{type:Object,default:null},value:{type:String,default:null},error:{type:Boolean,default:null},isSearchPage:{type:Boolean,default:!1},countryName:{type:String,required:!1,default:null},countryValue:{type:String,required:!1,default:null}},data:function(){return{isLoading:!1,searchQuery:"",suggestions:[],suggestionElems:null,isInputFocused:!1,showOverlay:!1,isJsDisabled:!1,selfValidationError:!1,searchAutoComplete:!1}},watch:{suggestions:function(e){var t=this;e.length>0&&this.$nextTick((function(){t.suggestionElems=t.$refs.listOfsuggestions.querySelectorAll("li"),t.clearSuggestionsState()}))}},created:function(){this.updateSuggestions=Object(n["c"])(this.updateSuggestions,500)},mounted:function(){var e=this;!this.isSearchPage&&this.handleFormSubmit(),this.isSearchPage&&(this.getSeachParams(),this.$nextTick((function(){e.updateValue(),e.searchResultTagging()})))},computed:{searchType:function(){return this.searchAutoComplete?"autocompletion":"manual"}},methods:{getFormElement:function(){return document.getElementById("search-box-form")},handleFormSubmit:function(){var e=this;this.getFormElement().addEventListener("submit",(function(t){t.preventDefault(),document.querySelector(".search-box__submit").focus(),e.selfSubmition()}))},inputBlur:function(){var e=this;setTimeout((function(){e.isInputFocused=!1,e.$refs.searchField.removeAttribute("aria-activedescendant")}),500)},inputFocus:function(){this.isInputFocused=!0,(this.error||this.selfValidationError)&&this.updateError()},setResultAmount:function(e){this.$refs.announce.innerText=e>0?e:""},composedPath:function(e){var t=[];while(e){if(t.push(e),"HTML"===e.tagName)return t.push(document),t.push(window),t;e=e.parentElement}},selectSuggestion:function(e){var t=this,a=this.composedPath(e.target).find((function(e){return"SPAN"===e.tagName})),i=a?a.innerText:e.target.innerText,s=/(?:^\s*\.\.\.\s*|\s*\.\.\.\s*$)/g;i=i.replace(s,""),this.searchQuery=i;var n=!0;this.$emit("updateQuery",{q:this.searchQuery},n),setTimeout((function(){t.$emit("suggestion"),t.isInputFocused=!1,t.searchAutoComplete=!0,!t.isSearchPage&&t.selfSubmition(),t.isSearchPage&&t.searchResultTagging()}),10)},selfSubmition:function(){var e=this;this.searchQuery.length>=3?this.$nextTick((function(){e.getFormElement().submit()})):this.selfValidationError=!0},focusSuggestion:function(e){var t=this.suggestionElems.length-1,a="down"===e?0:t;
1Object(m["a"])(this.suggestionElems).forEach((function(t,i){t.classList.contains("active")&&(t.classList.remove("active"),a="down"===e?i+1:i-1)})),a>t?a=0:a<0&&(a=t);var i=this.suggestionElems[a].getAttribute("id");this.suggestionElems[a].classList.add("active"),this.searchQuery=this.suggestionElems[a].innerText,this.$refs.searchField.setAttribute("aria-activedescendant",i)},clearSuggestionsState:function(){this.$refs.listOfsuggestions.querySelector("li.active")&&this.$refs.listOfsuggestions.querySelector("li.active").classList.remove("active")},updateSuggestions:function(){var e=this;this.suggestions=[],this.setResultAmount(0),this.searchQuery.length>2&&Object(D["a"])(this.apiUrl,{data:{prefix:this.searchQuery,language:this.data.lang,country:this.countryValue}}).then((function(t){void 0!==t&&(e.suggestions=t,e.setResultAmount(t.length))}))},updateError:function(){this.selfValidationError=!1,this.$emit("updateError",!1)},updateValue:function(){null!==this.value&&(this.searchQuery=decodeURI(this.value))},pushTagging:function(){this.searchAutoComplete=!1;var e=!0;this.$emit("updateQuery",{q:this.searchQuery},e),this.isSearchPage&&this.searchResultTagging()},getSeachParams:function(){var e=new URLSearchParams(window.location.search);"true"===e.get("autocomplete")&&(this.searchAutoComplete=!0)},searchResultTagging:function(){W["a"].pushDataLayer({event:"uaevent",event_name:"internal_search",ecommerce:"undefined",eventCategory:"internal search",eventAction:"search::"+this.searchType,eventLabel:this.searchQuery,search_keyword:this.searchQuery.toLowerCase(),method:this.searchType})}}},Ht=zt,Jt=Object(u["a"])(Ht,Ut,qt,!1,null,null,null),Wt=Jt.exports,Kt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container--small search-cat"},[a("ul",{staticClass:"search-cat__content",attrs:{"aria-label":e.filtertxt}},e._l(e.data.type,(function(t,i){return a("li",{key:i,staticClass:"search-cat__item"},[!0===t.active?[a("button",{directives:[{name:"tag",rawName:"v-tag:useractionevent",value:{category:"internal search",action:"select::result category",label:t.label},expression:"{ category: 'internal search', action: 'select::result category', label: item.label }",arg:"useractionevent"}],staticClass:"search-cat__btn",class:{"search-cat__actual":t.type===e.active},attrs:{name:"filters","aria-label":t.label,"aria-current":t.type===e.active},on:{click:function(a){return a.preventDefault(),e.updateCat(t.type)}}},[e._v(e._s(t.label))])]:[a("span",{staticClass:"search-cat__btn--inactive"},[e._v(e._s(t.label))])],i!=e.data.type.length-1?[a("span",{staticClass:"search-cat__space"},[e._v("|")])]:e._e()],2)})),0)])}
1,Qt=[],Xt=a("bb73"),Gt={name:"search-top",directives:{tag:Xt["a"]},props:{data:{type:Object,default:null},filtertxt:{type:String,default:null}},data:function(){return{active:"all"}},mounted:function(){var e=this;this.clearCategory(),H["a"].$on("clear-filter",(function(){e.active="all"}))},methods:{updateCat:function(e){this.active=e,this.$emit("catUpdate",{filters:e})},clearCategory:function(){var e=this;this.$root.$on("categoryClear",(function(){e.active=e.data.type[0].type}))}}},Zt=Gt,Yt=Object(u["a"])(Zt,Kt,Qt,!1,null,null,null),ea=Yt.exports,ta=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"search-filter"},["small"===e.screenSize?[a("modal",{staticClass:"search-modal",attrs:{"aria-label":e.ariaLabel,"aria-describedby":e.ariaDescriptionBy,tabindex:"0"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"search-modal__title",attrs:{role:"heading","aria-level":"1",id:"modal-title1"}},[e._v("\n "+e._s(e.newTitle?e.newTitle:e.title)+"\n "),void 0!==e.selected?[a("button",{staticClass:"search-filter__back",attrs:{id:"searchfilterid"},on:{click:function(t){return e.closeSubmenu()}}},[a("span",{staticClass:"off-screen"},[e._v("Back")])])]:e._e()],2),e._l(e.data,(function(t,i){return a("div",{key:i,staticClass:"search-modal__form"},[a("fieldset",[a("legend",{staticClass:"search-modal__label",attrs:{id:t.Label+i,tabindex:"0"},on:{click:function(a){return e.openSubmenu(a,t.Name)},keypress:function(a){return e.openSubmenu(a,t.Name)}}},[e._v(e._s(t.Label))]),e.newTitle==t.Name?a("div",{staticClass:"search-modal__filter search-filter__filter"},["DateRange"===t.Name||"Language"===t.Name?e._l(t.Values,(function(i){return a("radio",{key:i.Value,staticClass:"search-filter__button",attrs:{name:t.Name?t.Name.toLowerCase():"",value:i.Value?i.Value.toLowerCase():"",label:i.Key},on:{updateCheckbox:e.updateFilter}})})):e._l(t.Values,(function(i){return a("checkbox",{key:i.Value,staticClass:"search-filter__button",attrs:{name:t.Name?t.Name.toLowerCase():"",value:i.Value?i.Value.toLowerCase():"",label:i.Key},on:{updateCheckbox:e.updateFilter}})}))],2):e._e()])])})),a("button",{staticClass:"search-filter__clear",attrs:{type:"reset",id:"clearbtnId"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:(t.preventDefault(),e.moveToTop(t))},click:function(t){return t.preventDefault(),e.resetFilter(t)}}},[e._v("\n "+e._s(e.clear)+"\n ")])]}},{key:"button",fn:function(){return[a("button",{staticClass:"search-filter__modal-opener",attrs:{type:"button"},on:{click:function(e){e.preventDefault()}}},[e._v(e._s(e.title))])]},proxy:!0}],null,!1,3215811446)})]:[a("div",{staticClass:"search-filter__top"},[a("h2",{staticClass:"search-filter__title"},[e._v(e._s(e.title))]),a("button",{staticClass:"search-filter__clear",attrs:{type:"reset"},on:{click:function(t){return t.preventDefault(),e.resetFilter(t)}}},[e._v("\n "+e._s(e.clear)+"\n "),a("span")])]),a("ul",e._l(e.data,(function(t,i){return a("li",{key:i},[a("div",{staticClass:"search-filter__accordionFS",attrs:{test:t.Name}},[a("accordion",{staticClass:"search-filter__accordion",attrs:{title:t.Label,id:i}},[a("div",{staticClass:"filterdiv",class:{" with-more-active":t.Values.length>5},attrs:{id:"filter"+i,role:"region","aria-labelledby":"accordion_name"+i}},["DateRange"===t.Name||"Language"===t.Name?e._l(t.Values,(function(i,s){return a("radio",{key:i.Value,attrs:{name:t.Name?t.Name.toLowerCase():"",value:i.Value?i.Value.toLowerCase():"",label:i.Key,isHidden:!(s<5)},on:{updateCheckbox:e.updateFilter}})})):e._l(t.Values,(function(i,s){return a("checkbox",{key:i.Value,attrs:{name:t.Name?t.Name.toLowerCase():"",value:i.Value?i.Value.toLowerCase():"",label:i.Key,isHidden:!(s<5)},on:{updateCheckbox:e.updateFilter}})}))],2),t.Values.length>5&&null!=e.show?a("button",{staticClass:"search-filter__more",on:{click:function(t){return t.preventDefault(),e.openFilter(t)}}},[e._v(e._s(e.show.more))]):e._e()])],1)])})),0)]],2)},aa=[],ia=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"input__checkbox"},[a("input",{directives:[{name:"tag",rawName:"v-tag:useractionevent",value:{category:"internal search",action:"search::result filter",label:e.value},expression:"{ category: 'internal search', action: 'search::result filter', label: value }",arg:"useractionevent"}],attrs:{type:"checkbox",name:e.name,id:e.id,tabindex:!!e.isHidden&&"-1"},domProps:{value:e.value},on:{click:function(t){return e.updateCheckbox(e.name,e.value)},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.updateCheckbox(e.name,e.value)}}}),a("label",{attrs:{for:e.id}},[e._v("\n "+e._s(e.label)+"\n "),a("span")])])},sa=[],na={name:"checkbox",directives:{tag:Xt["a"]},props:{name:{type:String,default:null},value:{type:String,default:null},label:{type:String,default:null},isHidden:{type:Boolean,default:null}},computed:{id:function(){return this.name+"-"+this.value}},methods:{updateCheckbox:function(e,t){var a={};
1a["".concat(e)]=t,this.$emit("updateCheckbox",a)}}},ra=na,oa=Object(u["a"])(ra,ia,sa,!1,null,null,null),la=oa.exports,ca=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"input__radio"},[a("input",{directives:[{name:"tag",rawName:"v-tag:useractionevent",value:{category:"internal search",action:"search::result filter",label:e.value},expression:"{ category: 'internal search', action: 'search::result filter', label: value }",arg:"useractionevent"}],attrs:{type:"radio",name:e.name,id:e.id,tabindex:!!e.isHidden&&"-1"},domProps:{value:e.value},on:{click:function(t){return e.updateCheckbox(e.name,e.value)}}}),e.getRtlLanguages.includes(e.value)?a("label",{attrs:{for:e.id,dir:"rtl",lang:e.value}},[e._v(e._s(e.label))]):a("label",{attrs:{for:e.id,lang:e.value}},[e._v(e._s(e.label))])])},ua=[],da={name:"radio",directives:{tag:Xt["a"]},inject:["reverselangs"],props:{name:{type:String,default:null},value:{type:String,default:null},label:{type:String,default:null},isHidden:{type:Boolean,default:null}},computed:{id:function(){return this.name+"-"+this.value},getRtlLanguages:function(){return this.reverselangs?this.reverselangs.slice(1,-1).split(","):[]}},methods:{updateCheckbox:function(e,t){var a={};a["".concat(e)]=t,this.$emit("updateCheckbox",a)}}},ha=da,pa=Object(u["a"])(ha,ca,ua,!1,null,null,null),fa=pa.exports,ga=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"accordion",class:{open:e.openAccordion}},[a("h3",[a("button",{staticClass:"accordion__trigger",attrs:{"aria-expanded":"false","aria-controls":"filter"+e.id,id:"accordion_"+e.id,"aria-expanded":e.openAccordion},on:{click:function(t){t.preventDefault(),e.openAccordion=!e.openAccordion}}},[e._v(e._s(e.title))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.openAccordion,expression:"openAccordion"}],staticClass:"accordion__content",class:{"accordion__content--open":e.openAccordion},attrs:{role:"region","aria-labelledby":"accordion_"+e.id}},[e._t("default")],2)])},ma=[],va={name:"accordion",props:{title:{type:String,default:null},open:{type:Boolean,default:!1},id:{type:String,default:"0"}},data:function(){return{name:"accordion",openAccordion:this.open}}},ya=va,ba=Object(u["a"])(ya,ga,ma,!1,null,null,null),wa=ba.exports,_a=a("f5f2"),Ca=(window.matchMedia("(max-width:767px)").matches,{name:"search-filter",components:{checkbox:la,radio:fa,accordion:wa,Modal:_a["a"]},mixins:[E["a"]],props:{data:{type:Array,default:null},title:{type:String,default:null},clear:{type:String,default:null},show:{type:Object,default:null},ariaLabel:{type:String,default:""},ariaDescriptionBy:{type:String,default:""}},data:function(){return{selected:void 0,filters:null,newTitle:null}},created:function(){this.smallScreenLimit=769},mounted:function(){var e=document.querySelectorAll(".search-filter__button");e.forEach((function(e){var t=e.firstElementChild||e.firstChild;t.setAttribute("tabindex",-1)})),document.addEventListener("keydown",(function(e){if(e.shiftKey&&"Tab"===e.key||"Tab"===e.key){var t=document.querySelector(".filterdiv");if(t){var a=t.scrollTop,i=t.scrollHeight,s=.01*i,n="filterdiv--big";t.classList.contains(n)&&t.scrollTo({top:a+s,behavior:"smooth"})}else if(this.selected){var r=document.getElementById("searchfilterid");r.focus()}}}))},updated:function(){this.selected=void 0,this.newTitle=!1;var e=document.querySelector(".modal__content"),t=document.querySelector(".modal__wrapper");this.matchMedia767<=769&&t.classList.contains("modal__wrapper --opened")&&(e.classList.contains("search-modal__form--opened")?e.setAttribute("tabindex",0):(e.setAttribute("tabindex",-1),document.getElementById("modal-title1").focus()))},methods:{moveToTop:function(){var e=document.getElementById("Country0");e.focus()},getFocusElement:function(){setTimeout((function(){document.getElementById("searchfilterid").focus()}),200)},openSubmenu:function(e,t){var a=this;e.target.parentElement.parentElement.classList.add("search-modal__form--opened"),this.selected=!0,this.newTitle=t;var i=document.querySelectorAll(".search-filter__button"),s=document.querySelectorAll(".search-modal__label");!0===this.selected&&(this.getFocusElement(),setTimeout((function(){document.getElementsByClassName("search-filter__filter")[0].lastChild.addEventListener("keydown",(function(e){"Tab"==e.code&&a.getFocusElement()}))}
1),200),s.forEach((function(e){e.setAttribute("tabindex",-1)})),i.forEach((function(e){e.setAttribute("tabindex",-1);var t=e.firstElementChild||e.firstChild;null!=t&&t.removeAttribute("tabindex")})))},closeSubmenu:function(){var e=this.$el.querySelectorAll(".search-modal__form--opened"),t=document.getElementById("clearbtnId"),a=!0,i=!1,s=void 0;try{for(var n,r=e[Symbol.iterator]();!(a=(n=r.next()).done);a=!0){var o=n.value;o.classList.remove("search-modal__form--opened"),null!=o&&o.removeAttribute("tabindex")}}catch(u){i=!0,s=u}finally{try{a||null==r.return||r.return()}finally{if(i)throw s}}if(this.selected=void 0,this.newTitle=!1,void 0==this.selected){null!=t&&t.removeAttribute("tabindex");var l=document.querySelectorAll(".search-filter__button"),c=document.querySelectorAll(".search-modal__label");l.forEach((function(e){var t=e.firstElementChild||e.firstChild;t.setAttribute("tabindex",-1)})),c.forEach((function(e){e.setAttribute("tabindex",0)}))}},resetFilter:function(){this.$emit("clearfilter");var e=this.$el.querySelectorAll('input[type="radio"]'),t=!0,a=!1,i=void 0;try{for(var s,n=e[Symbol.iterator]();!(t=(s=n.next()).done);t=!0){var r=s.value;r.checked=!1}}catch(o){a=!0,i=o}finally{try{t||null==n.return||n.return()}finally{if(a)throw i}}H["a"].$emit("clear-filter","")},updateFilter:function(e){this.closeSubmenu(),this.$emit("updateSearch",e)},openFilter:function(e){var t=e.target.parentElement.querySelector(".filterdiv"),a="filterdiv--big";if(e.target.classList.toggle("--less"),t.classList.contains(a)){t.classList.remove(a);for(var i=t.querySelectorAll("input"),s=4;s<i.length;s++){var n=i[s];n.setAttribute("tabindex",-1)}null!=this.show&&(e.target.innerHTML=this.show.more)}else{t.classList.add(a);for(var r=t.querySelectorAll("input"),o=4;o<r.length;o++){var l=r[o];null!=l&&l.removeAttribute("tabindex")}r[5].focus(),null!=this.show&&(e.target.innerHTML=this.show.less)}}}}),Sa=Ca,Pa=Object(u["a"])(Sa,ta,aa,!1,null,null,null),ka=Pa.exports,Ia=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"search-result-container"},[a("div",{staticClass:"search-result"},[e.data?[a("div",{staticClass:"search-result__sort"},[a("label",{attrs:{for:"sortBy"}},[e._v(e._s(e.sort.label))]),a("div",{staticClass:"search-result__select"},[a("select",{attrs:{name:e.sort.name,id:"sortBy"},on:{change:function(t){return e.updateSearch(t)}}},e._l(e.sort.values,(function(t,i){return a("option",{key:i,domProps:{value:t.value}},[e._v(e._s(t.label))])})),0)])]),e._l(e.data,(function(t,i){return a("article",{key:e.resultIndex+i,staticClass:"search-result__item"},[t.Img?a("figure",{staticClass:"search-result__img"},[a("img",{directives:[{name:"srcset",rawName:"v-srcset",value:t.Img,expression:"item.Img"}],attrs:{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",alt:""}})]):e._e(),a("div",{staticClass:"search-result__content"},[t.Cat||t.Highlight?a("div",{staticClass:"search-result__cat"},[e._l(t.Cat,(function(i,s){return a("span",{key:s},[e._v("\n "+e._s(i.Key)+"\n "),s!=t.Cat.length-1?[e._v("|")]:e._e()],2)})),t.Highlight?a("span",{staticClass:"search-result__cat search-result__cat--highlight"},[t.Cat?[e._v("|")]:e._e(),e._v("\n "+e._s(t.Highlight)+"\n ")],2):e._e()],2):e._e(),t.CatPage?a("div",{staticClass:"search-result__suptitle"},[e._v(e._s(t.CatPage))]):e._e(),a("h2",{staticClass:"search-result__title"},[e._v(e._s(t.Title))]),a("div",{staticClass:"search-result__desc"},[e._v(e._s(t.Desc))])]),t.ContainsExternalLink?a("a",{directives:[{name:"tag",rawName:"v-tag:useractionevent",value:{category:"internal search",action:"search::result filter",label:t.Title,module_name:"search result",link_url:t.tagLink,cta_name:t.Title,event_name:"body_button_click",article_name:t.Title,ecommerce:void 0},expression:"{ category: 'internal search', action: `search::result filter`, label: item.Title, module_name:'search result', link_url:item.tagLink, cta_name:item.Title, event_name:'body_button_click', article_name:item.Title, ecommerce: undefined }",arg:"useractionevent"}],staticClass:"ghost-link",attrs:{href:t.ExternalLink,target:"_blank",title:t.Title}}):a("a",{directives:[{name:"tag",rawName:"v-tag:useractionevent",value:{category:"internal search",action:"search::result filter",label:t.Title,module_name:"search result",link_url:t.tagLink,cta_name:t.Title,event_name:"body_button_click",article_name:t.Title,ecommerce:void 0},expression:"{ category: 'internal search', action: `search::result filter`, label: item.Title, module_name:'search result', link_url:item.tagLink, cta_name:item.Title, event_name:'body_button_click', article_name:item.Title, ecommerce: undefined}",arg:"useractionevent"}],staticClass:"ghost-link",attrs:{href:t.Link,target:"_self",title:t.Title}})])}))]:[a("div",{staticClass:"search-no-result"},[a("div",{staticClass:"search-no-result has-text-centered"},[a("div",{staticClass:"search-no-result__relevant-msg",domProps:{innerHTML:e._s(e.noResult.NoRelevantMessage)}}),a("div",{staticClass:"search-no-result__query"},[e._v(e._s(decodeURI(e.query)))])]),a("div",{staticClass:"search-no-result__rte",domProps:{innerHTML:e._s(e.noResult.AlternateText)}})])],a("div",{staticClass:"is-sr-only",attrs:{"aria-live":"polite","aria-atomic":"true"}},[e._v(e._s(e.listUpdatedMessage))])],2)])},Aa=[],Ea={name:"search-result",directives:{tag:Xt["a"],srcset:me["b"]},props:{data:{type:Array,default:null},sort:{type:Object,default:null},isNewContent:{type:Boolean,default:!1},noResult:{type:[Object,Boolean],default:null},query:{type:String,default:null}
1,isResultUpdated:{type:Boolean,default:!1}},data:function(){return{resultIndex:Date.now(),listUpdatedMessage:""}},watch:{isNewContent:function(e){var t=this;e&&setTimeout((function(){t.resultIndex=Date.now()}),1)},isResultUpdated:function(e){this.listUpdatedMessage=!0===e?"Result list updated":""},data:function(){this.data&&this.data.length&&this.data.forEach((function(e){e.tagLink=window.location.origin+e.Link}))}},methods:{updateSearch:function(e){this.$emit("updateSort",{sortby:e.target.value})}}},La=Ea,xa=Object(u["a"])(La,Ia,Aa,!1,null,null,null),Ta=xa.exports,Oa=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"search-pagination container--medium"},[a("div",{staticClass:"search-pagination__content"},[0!=e.result?[e.activePage>1?[a("button",{staticClass:"search-pagination__nav search-pagination__nav--prev",attrs:{"aria-label":e.text.previous},on:{click:function(t){return t.preventDefault(),e.triggerChange(e.activePage-1)}}},[a("span",{staticClass:"off-screen"},[e._v(e._s(e.text.previous))])])]:[a("div",{staticClass:"search-pagination__nav search-pagination__nav--inactive search-pagination__nav--prev"},[a("span",{staticClass:"off-screen"},[e._v(e._s(e.text.previous))])])]]:e._e(),e.result<=6?[a("ul",e._l(e.result,(function(t){return a("li",{key:t},[a("button",{staticClass:"search-pagination__item",class:{"search-pagination__item--active":t==e.activePage},attrs:{disabled:t==e.activePage,"aria-current":t==e.activePage,"aria-label":t,value:t},on:{click:function(a){a.preventDefault(),e.triggerChange(t),e.activePage=t}}},[e._v(e._s(t))])])})),0)]:a("div",{staticClass:"search-result__select"},[a("label",{staticClass:"is-sr-only",attrs:{for:"pagination_select"}},[e._v(e._s(e.text.selectPage))]),a("select",{attrs:{id:"pagination_select",name:"page"},on:{change:function(t){return e.triggerChange(null,t)}}},e._l(e.result,(function(t){return a("option",{key:t,domProps:{value:t,selected:t==e.activePage}},[e._v(e._s(t))])})),0)]),0!=e.result?[e.activePage<e.result?[a("button",{staticClass:"search-pagination__nav search-pagination__nav--next",attrs:{"aria-label":e.text.next},on:{click:function(t){return t.preventDefault(),e.triggerChange(e.activePage+1)}}},[a("span",{staticClass:"off-screen"},[e._v(e._s(e.text.next))])])]:[a("div",{staticClass:"search-pagination__nav search-pagination__nav--inactive search-pagination__nav--next"},[a("span",{staticClass:"off-screen"},[e._v(e._s(e.text.next))])])]]:e._e()],2)])},Da=[],Fa={name:"search-pagination",props:{result:{type:Number,default:null},text:{type:Object,default:null},onLoadPage:{type:Number,default:1}},data:function(){return{activePage:1}},watch:{onLoadPage:function(e){this.activePage=e}},mounted:function(){this.activePage=this.onLoadPage},methods:{triggerChange:function(e,t){var a=e||t.target.value;this.activePage=a,this.$emit("searchpagination",{page:a})}}},Ra=Fa,Na=Object(u["a"])(Ra,Oa,Da,!1,null,null,null),ja=Na.exports;function Ma(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function Va(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Ma(a,!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ma(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Ba={name:"search",components:{searchSuggestion:Wt,searchTop:ea,searchFilter:ka,searchResult:Ta,searchPagination:ja,loader:function(){return a.e("chunk-c09568a2").then(a.bind(null,"29cb"))}},props:{data:{type:String,default:null},url:{type:String,default:null},result:{type:String,default:null},suggestionApiUrl:{type:String,default:null},reverselangs:{type:String,default:""},searchFilterAriaLabel:{type:String,default:""},searchFilterAriaDescriptionBy:{type:String,default:""}},provide:function(){return{reverselangs:this.reverselangs}},data:function(){return{ScreenSize:"",FilterData:[],ResultData:[],PageCount:null,searchValue:null,displayError:!1,resultsToBeUpdated:!1,hasResult:!1,activePage:1,isLoading:!1,showNoResult:!1,previousSearch:null,search:[],isResultUpd
1ated:!1,queryObject:{}}},mounted:function(){this.getParams(),this.updateDataLayer(this.searchValue,JSON.parse(this.result).ItemCount)},methods:{getParams:function(){if("null"!==this.result&&(this.FilterData=JSON.parse(this.result).FilterData,this.ResultData=JSON.parse(this.result).ResultData,this.PageCount=JSON.parse(this.result).PageCount,this.hasResult=!0,null===JSON.parse(this.result).ResultData?this.showNoResult={NoRelevantMessage:JSON.parse(this.result).NoRelevantMessage,AlternateText:JSON.parse(this.result).AlternateText}:(this.showNoResult=!1,this.FilterData=JSON.parse(this.result).FilterData),this.ResultData&&this.ResultData.length&&this.ResultData.forEach((function(e){e.tagLink=window.location.origin+e.Link}))),void 0!==this.getParameterByName()){var e=this.getParameterByName();for(var t in e)if(e.hasOwnProperty(t)){var a={};a["".concat(t)]=e[t],this.search.push(a)}}this.getParameterByName().q&&this.setSearchValue(),this.setActivePage(),this.checkData()},setSearchValue:function(){this.searchValue=this.getParameterByName().q.replace(/\+/g," ")},getParameterByName:function(e){var t=e?e.split("?")[1]:window.location.search.slice(1);if(this.queryObject={},t){t=t.split("#")[0];for(var a=t.split("&"),i=0;i<a.length;i++){var s=a[i].split("="),n=s[0],r="undefined"===typeof s[1]||s[1];n.match(/\[(\d+)?\]$/)?this.proceedMatchParamName(n,r):this.proceedUnMatchParamName(n,r)}}return this.queryObject},proceedMatchParamName:function(e,t){var a=e.replace(/\[(\d+)?\]/,"");if(this.queryObject[a]||(this.queryObject[a]=[]),e.match(/\[\d+\]$/)){var i=/\[(\d+)\]/.exec(e)[1];this.queryObject[a][i]=t}else this.queryObject[a].push(t)},proceedUnMatchParamName:function(e,t){this.queryObject[e]?this.queryObject[e]&&"string"===typeof this.queryObject[e]?(this.queryObject[e]=[this.queryObject[e]],this.queryObject[e].push(t)):this.queryObject[e].push(t):this.queryObject[e]=t},getSearchInputElement:function(){return document.getElementById("site-search")},clearFilter:function(){this.search=[],this.updateSearch({q:this.searchValue})},updateSearch:function(e,t){var a,i=this,s=this.search,n=Object.keys(e);if("q"===n[0])this.search=[e],this.activePage=1;else{"page"!==n[0]&&(a=s.findIndex((function(e){return"page"===Object.keys(e)[0]})),-1!==a&&this.search.splice(a,1),this.search.push({page:1}),this.activePage=1),a=void 0,["filters","daterange","page","sortby"].forEach((function(t){i.keyFilterSearchHelperFn(n,a,t,e)})),a=void 0;for(var r=0;r<s.length;r++)if(a=s.findIndex((function(t){return JSON.stringify(t)===JSON.stringify(e)})),void 0!==a)break;this.searchIsHereFn(e,a)}var o=this.search,l=window.location.pathname,c="";c=this.urlParamsFn(o,c);var u=this.$el.offsetTop;if(window.scroll(0,u),this.getSearchInputElement().value.length>2){var d="".concat(l,"?").concat(c);this.finalURLHelperFn(d,c,t,e)}else this.displayError=!0,this.isLoading=!1},keyFilterSearchHelperFn:function(e,t,a,i){e[0]===a&&("page"===a&&(this.activePage=i.page),this.keyFilterSearch(t,a))},searchIsHereFn:function(e,t){void 0===t||-1===t?this.search.push(e):this.search.splice(t,1)},urlParamsFn:function(e,t){for(var a=0;a<e.length;a++)for(var i=e[a],s=0,n=Object.entries(i);s<n.length;s++){var r=Object(P["a"])(n[s],2),o=r[0],l=r[1];void 0!==l&&""!==l&&(t="".concat(o,"=").concat(l,"&").concat(t))}return t},finalURLHelperFn:function(e,t,a,i){var s=this;"&"===e[e.length-1]&&(e=e.substring(0,e.length-1)),this.isResultUpdated=!1,Object(D["a"])(this.url+t).then((function(t){s.updateResult(t),s.addToHistory({ResultData:s.ResultData,FilterData:s.FilterData,PageCount:s.PageCount,activePage:s.activePage},e),!0===a&&s.updateDataLayer(i.q,t.ItemCount),s.toggleResultsUpdate(),s.setSearchValue()}))},updateDataLayer:function(e,t){window.dataLayer[0]=Va(Va({},window.dataLayer[0]),{},{searchKeyword:e,numberResult:t,searchCategory:"internal search"})},keyFilterSearch:function(e,t){var a=this.search.findIndex((function(e){return Object.keys(e)[0]===t}));-1!==a&&this.search.splice(a,1)},toggleResultsUpdate:function(){var e=this;this.resultsToBeUpdated=!0,setTimeout((function(){e.resultsToBeUpdated=!1,e.checkData()}),10)},updateResult:function(e){this.ResultData=e.ResultData,this.PageCount=e.PageCount,this.hasResult=!0,this.isLoading=!1,this.isResultUpd
1ated=!0,e.activePage&&this.setActivePage(e.activePage),null===e.ResultData?this.showNoResult={NoRelevantMessage:e.NoRelevantMessage,AlternateText:e.AlternateText}:(this.showNoResult=!1,this.FilterData=e.FilterData)},checkData:function(){var e=this,t=document.querySelectorAll('.search-filter input[type="checkbox"]'),a=!0,i=!1,s=void 0;try{for(var n,r=t[Symbol.iterator]();!(a=(n=r.next()).done);a=!0){var o=n.value;o.checked=!1}}catch(c){i=!0,s=c}finally{try{a||null==r.return||r.return()}finally{if(i)throw s}}var l=this.getParameterByName();setTimeout((function(){for(var t in l){var a=l[t];"object"===Object($t["a"])(a)?e.checkDataProceedObject(a):e.checkDataProceedNonObject(a)}}),10)},checkDataProceedObject:function(e){for(var t in e){var a=e[t],i=document.querySelector('input[value="'+a+'"]');void 0!==i&&null!==i&&(i.checked=!0)}},checkDataProceedNonObject:function(e){var t=document.querySelector('input[value="'+e+'"]');void 0!==t&&null!==t&&(t.checked=!0)},addToHistory:function(e,t){var a=this;window.history.pushState(e,null,decodeURIComponent(t)),window.onpopstate=function(e){e.state?a.updateResult(Va({},e.state)):a.getParams()}},setActivePage:function(e){this.activePage=e||(this.getParameterByName().page?this.getParameterByName().page:1)}}},$a=Ba,Ua=Object(u["a"])($a,Vt,Bt,!1,null,null,null),qa=Ua.exports,za=Object(n["a"])({components:{Search:qa,SearchSuggestion:Wt}}),Ha=a("9483"),Ja="LorealCorp";Object(Ha["a"])("/service-worker.".concat(Ja,".js"),{ready:function(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},cached:function(){console.log("Content has been cached for offline use.")},updated:function(){console.log("New content is available; please refresh.")},offline:function(){console.log("No internet connection found. App is running in offline mode.")},error:function(e){console.error("Error during service worker registration:",e)}});var Wa=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hero-carousel"},[1===e.initialData.length?a("div",{staticClass:"container brand-slider__slide hero--stage",class:[e.initialData[0].horizontalAllignment,e.initialData[0].verticalAllignment]},[a("a",{attrs:{href:e.initialData[0].ctaLink.Url,target:e.initialData[0].ctaLink.Target?e.initialData[0].ctaLink.Target:"_self"},on:{click:function(t){return e.triggerDataLayerEvents(e.initialData[0].taggingData)}}},[a("div",{staticClass:"image image--hero hero__image",class:e.roundCoin?"hero__image-round":"hero__image-normal"},[a("div",{staticClass:"responsive-image__media"},[a("img",{attrs:{src:"large"===e.deviceSize?e.initialData[0].desktopImageURL:e.initialData[0].mobileImageURL,alt:"large"===e.deviceSize?e.initialData[0].desktopImageAlt:e.initialData[0].mobileImageAlt}})])]),a("div",{staticClass:"hero-carousel__container container--medium"},[a("div",{staticClass:"hero-carousel__content"},[a("h1",{staticClass:"hero-carousel__title halesworth"},[e._v(e._s(e.initialData[0].title)+" ")]),e.initialData[0].ctaText?a("a",{staticClass:"hero__btn btn btn--white",attrs:{href:e.initialData[0].ctaLink.Url,target:e.initialData[0].ctaLink.Target?e.initialData[0].ctaLink.Target:"_self"}},[a("span",{staticClass:"btn__wrapper"},[e._v(e._s(e.initialData[0].ctaText))])]):e._e()])])])]):e._e(),e.isMultiSlide?a("div",{staticClass:"brand-slider__copy"},[a("slider",{key:e.sliderKey,ref:"slider",attrs:{id:"brand-slider-filtered","per-page-custom":e.slidePerPage,"per-page-with-active":5,"navigation-enabled":!0,"pagination-enabled":!1,loop:e.isSliderLoop,"loop-start-at":1,"is-hero-banner":!0,autoplay:e.isAutoplaying,"autoplay-delay":e.autoplayDelay,role:"group"},on:{"autoplay-state-change":e.onAutoplayStateChange,pageChange:e.onPageChange}},e._l(e.initialData,(function(t,i){return a("slide-item",{key:i,staticClass:"brand-slider__slide",class:[t.horizontalAllignment,t.verticalAllignment],attrs:{"data-GUID":i}},[a("a",{attrs:{href:t.ctaLink.Url,tabindex:i===e.currentSlide?0:-1,target:t.ctaLink.Target?t.ctaLink.Target:"_self"},on:{click:function(a){return e.triggerDataLayerEvents(t.taggingData)}}},[a("div",{staticClass:"image image--hero hero__image",class:e.roundCoin?"hero__image-round":"hero__image-normal"},[e.shouldShowPreview&&0!==i&&(t.prevSliderImage||t.prevSliderMobileImage)?a("div",{staticClass:"responsive-image__media responsive-image__media-thumbn
1ail prev"},[a("img",{attrs:{src:"large"===e.deviceSize?t.prevSliderImage:t.prevSliderMobileImage,alt:"large"===e.deviceSize?t.desktopImageAlt:t.mobileImageAlt}})]):e._e(),a("div",{staticClass:"responsive-image__media"},[a("img",{attrs:{src:"large"===e.deviceSize?t.desktopImageURL:t.mobileImageURL,alt:"large"===e.deviceSize?t.desktopImageAlt:t.mobileImageAlt}})]),e.shouldShowPreview&&i!==e.initialData.length-1&&(t.nextSliderImage||t.nextSliderMobileImage)?a("div",{staticClass:"responsive-image__media responsive-image__media-thumbnail next"},[a("img",{attrs:{src:"large"===e.deviceSize?t.nextSliderImage:t.nextSliderMobileImage,alt:"large"===e.deviceSize?t.desktopImageAlt:t.mobileImageAlt}})]):e._e()]),a("div",{staticClass:"hero-carousel__container container--medium"},[a("div",{staticClass:"hero-carousel__content"},[a("h1",{staticClass:"hero-carousel__title halesworth"},[e._v(e._s(t.title)+" ")]),t.ctaText?a("a",{staticClass:"hero__btn btn btn--white",attrs:{href:t.ctaLink.Url,tabindex:i===e.currentSlide?0:-1,target:t.ctaLink.Target?t.ctaLink.Target:"_self"}},[a("span",{staticClass:"btn__wrapper"},[e._v(e._s(t.ctaText))])]):e._e()])])])])})),1),e.isMultiSlide?a("div",{staticClass:"hero-carousel__controls",attrs:{role:"group","aria-label":"Hero carousel controls"}},[a("ul",{staticClass:"hero-carousel__dots",attrs:{"aria-label":"Hero carousel pagination"}},e._l(e.initialData,(function(t,i){return a("li",{key:"dot-"+i},[a("button",{staticClass:"hero-carousel__dot",class:{"is-active":i===e.currentSlide},attrs:{type:"button","aria-label":"Go to slide "+(i+1),"aria-current":i===e.currentSlide},on:{click:function(t){return e.goToSlide(i)},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.goToSlide(i))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])?null:(t.preventDefault(),e.goToSlide(i))}]}})])})),0),a("button",{staticClass:"hero-carousel__autoplay-toggle",attrs:{type:"button","aria-pressed":!e.isAutoplaying},on:{click:e.toggleAutoplay,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.toggleAutoplay(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])?null:(t.preventDefault(),e.toggleAutoplay(t))}]}},[a("span",{staticClass:"hero-carousel__autoplay-icon",attrs:{"aria-hidden":"true"}},[e.isAutoplaying?a("span",{staticClass:"hero-carousel__pause-icon"},[a("svg",{attrs:{width:"3",height:"13",viewBox:"0 0 3 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("rect",{attrs:{width:"3",height:"13",rx:"1",fill:"white"}})]),a("svg",{attrs:{width:"3",height:"13",viewBox:"0 0 3 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("rect",{attrs:{width:"3",height:"13",rx:"1",fill:"white"}})])]):a("svg",{attrs:{width:"10",height:"13",viewBox:"0 0 10 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M8.69293 5.5569C9.22287 5.957 9.22287 6.75296 8.69293 7.15306L1.60255 12.5063C0.943719 13.0037 3.12047e-07 12.5337 3.48131e-07 11.7082L8.16124e-07 1.00176C8.52208e-07 0.176247 0.943721
1-0.293731 1.60255 0.203683L8.69293 5.5569Z",fill:"white"}})])]),a("span",{staticClass:"hero-carousel__sr-only"},[e._v("\n "+e._s(e.isAutoplaying?"Pause carousel autoplay":"Play carousel autoplay")+"\n ")])])]):e._e()],1):e._e()])},Ka=[],Qa=a("bed5"),Xa={name:"hero-banner",directives:{tag:Xt["a"]},components:{Slider:Qa["default"],SlideItem:$["a"]},props:{initialData:{type:Array,default:[]},roundCoin:{type:Boolean,default:!1},autoplayDelay:{type:Number,default:4e3},enableAutoplay:{type:Boolean,default:!1},enableBannerPreviewImage:{type:Boolean,default:!0}},data:function(){return{currentIndex:0,slidePerPage:[[320,1],[768,1]],isSliderLoop:!1,sliderKey:Date.now(),deviceSize:window.matchMedia("(min-width: 1025px)").matches?"large":"small",isAutoplaying:!1,currentSlide:0}},computed:{isMultiSlide:function(){return this.initialData.length>1},shouldShowPreview:function(){return this.enableBannerPreviewImage&&this.isMultiSlide},shouldAutoplay:function(){return this.isMultiSlide&&this.enableAutoplay}},watch:{shouldAutoplay:function(e){this.isAutoplaying=e}},mounted:function(){var e=this;if(1===this.initialData.length){var t=this.$el.querySelector(".hero-carousel__title");t.innerHTML=this.truncate(t.textContent,50)}else{var a=this.$el.querySelectorAll(".hero-carousel__title");a.forEach((function(t){t.innerHTML=e.truncate(t.textContent,50)}))}this.$nextTick((function(){e.isAutoplaying=e.shouldAutoplay}))},methods:{truncate:function(e,t){return e.length>t?e.trim().slice(0,t)+"...":e},triggerDataLayerEvents:function(e){window.dataLayer.push(e)},getSliderInstance:function(){return this.$refs.slider},toggleAutoplay:function(){this.isAutoplaying=!this.isAutoplaying},onAutoplayStateChange:function(e){this.isAutoplaying=e},onPageChange:function(e){var t=this;this.currentSlide=e,this.$nextTick((function(){t.setSlideAccessibility()}))},goToSlide:function(e){if(e!==this.currentSlide){var t=this.getSliderInstance();t&&t.goToPage&&t.goToPage(e,"pagination")}},setSlideAccessibility:function(){var e=this,t=this.$el.querySelectorAll(".brand-slider__slide");t.forEach((function(t,a){a===e.currentSlide?(t.removeAttribute("aria-hidden"),t.removeAttribute("inert")):(t.setAttribute("aria-hidden","true"),t.setAttribute("inert",""))}))}}},Ga=Xa,Za=Object(u["a"])(Ga,Wa,Ka,!1,null,null,null),Ya=Za.exports,ei=Object(n["a"])({components:{HeroBanner:Ya}});s["a"].use(Ae),Ie.getMqHandler({small:768,medium:1440}),W["a"].getAnalyticsHandler(pe["a"]),Se.getInputHandler(),s["a"].config.ignoredElements=["amp-story","amp-story-page","amp-img","amp-story-grid-layer","amp-video","amp-story-bookend"],s["a"].config.keyCodes={home:36,end:35},window.RefAppGeoipRedirect&&s["a"].use(window.RefAppGeoipRedirect),window.RefAppUserRedirect&&s["a"].use(window.RefAppUserRedirect);var ti=Object(n["a"])({asyncImports:[{module:function(){return a.e("single-card").then(a.bind(null,"2ce1"))},components:["SingleCard"]},{module:function(){return a.e("brand-slider").then(a.bind(null,"9be0"))},components:["BrandSlider"]},{module:function(){return a.e("story-slider").then(a.bind(null,"04db"))},components:["Story"]},{module:function(){return a.e("country-selector").then(a.bind(null,"75e6"))},components:["CountrySelector"]},{module:function(){return a.e("modal").then(a.bind(null,"bee0"))},components:["Modal"]},{module:function(){return a.e("gouvernance").then(a.bind(null,"ed70"))},components:["Gouvernance"]},{module:function(){return a.e("expandable-content-card").then(a.bind(null,"d408"))},components:["ExpandableContentCard"]},{module:function(){return a.e("expandable-key-figure-card").then(a.bind(null,"b316"))},components:["ExpandableKeyFigureCard"]}],imports:[p,W["b"],ke,_,B,ee,ae,U,Z,de,Le,Ne,qe,Xe,vt,Tt,Mt,ei,za,za],directives:{animate:R,clickextension:he["a"],fadein:ge,srcset:me["b"],sticky:J,catreload:be,careersearch:ye,backtotop:ve,onselectChangeurl:fe,heroanim:we},filters:{}});function ai(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function ii(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?ai(a,!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ai(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}new s["a"](ii(ii({},ti),{},{data:function(){return{rootState:{}}},methods:{setRootData:function(e,t){this.$set(this.rootState,e,t)}}})).$mount("#main-container")},"16af":function(e,t,a){"use strict";a("fe16")},"178b":function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"k",(function(){return s})),a.d(t,"b",(function(){return n})),a.d(t,"e",(function(){return r})),a.d(t,"d",(function(){return o})),a.d(t,"c",(function(){return l})),a.d(t,"g",(function(){return c})),a.d(t,"f",(function(){return u})),a.d(t,"i",(function(){return d})),a.d(t,"j",(function(){return h})),a.d(t,"h",(function(){return p}));a("7f7f");function i(e){var t=this;this.message=e,this.name="AnalyticsException",this.toString=function(){return"".concat(t.name,": ").concat(t.message)}}function s(e){var t=this;this.message=e,this.name="AnalyticsUserActionEventObjectException",this.toString=function(){return"".concat(t.name,": ").concat(t.message)}}function n(e){var t=this;this.message=e,this.name="AnalyticsNonInteractiveEventObjectException",this.toString=function(){return"".concat(t.name,": ").concat(t.message)}}function r(e){var t=this;this.message=e,this.name="AnalyticsProductImpressionObjectException",this.toString=function(){return"".concat(t.name,": ").concat(t.message)}}function o(e){var t=this;this.message=e,this.name="AnalyticsProductDetailObjectException",this.toString=function(){return"".concat(t.name,": ").concat(t.message)}}function l(e){var t=this;this.message=e,this.name="AnalyticsProductClickObjectException",this.toString=function(){return"".concat(t.name,": ").concat(t.message)}}function c(e){var t=this;this.message=e,this.name="AnalyticsPromotionClickObjectException",this.toString=function(){return"".concat(t.name,": ").concat(t.message)}}function u(e){var t=this;this.message=e,this.name="AnalyticsProductObjectException",this.toString=function(){return"".concat(t.name,": ").concat(t.message)}}function d(e){var t=this;this.message=e,this.name="AnalyticsPromotionObjectException",this.toString=function(){return"".concat(t.name,": ").concat(t.message)}}function h(e){var t=this;this.message=e,this.name="AnalyticsTagDirectiveException",this.toString=function(){return"".concat(t.name,": ").concat(t.message)}}function p(e){var t=this;this.message=e,this.name="AnalyticsPromotionImpressionObjectException",this.toString=function(){return"".concat(t.name,": ").concat(t.message)}}},1968:function(e,t,a){},2873:function(e,t,a){},"287e":function(e,t,a){},"2af8":function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));a("2397"),a("c5f6"),a("ac6a"),a("456d"),a("7f7f");var i=a("d4ec"),s=a("bee2"),n=a("99de"),r=a("7e84"),o=a("262e"),l=a("178b"),c=a("04d3"),u=a("e45c");function d(e,t,a){function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}return t=Object(r["a"])(t),Object(n["a"])(e,i()?Reflect.construct(t,a||[],Object(r["a"])(e).constructor):t.apply(e,a))}var h=function(e){function t(e){var a;if(Object(i["a"])(this,t),a=d(this,t,[void 0,e]),!a.name&&!a.id)throw c["a"].error("[AnalyticsProductObjectException] A Product Name or a Product ID is required for an Analytics Product Object",e),new l["f"]("A Product Name or a Product ID is required for an Analytics Product Object");return a.dimensionKeys=Object.keys(e).filter((function(e){return/dimension/.test(e)})),a.dimensionKeys&&a.dimensionKeys.forEach((function(t){a.result[t]=a.setProperty(e[t])})),a}return Object(o["a"])(t,e),Object(s["a"])(t,[{key:"name",get:function(){return this.result.name},set:function(e){this.result.name=this.setProperty(e)}},{key:"id",get:function(){return this.result.id},set:function(e){this.result.id=this.setProperty(e)}},{key:"price",set:function(e){this.result.price=this.setProperty(e)}},{key:"brand",set:function(e){this.result.brand=this.setProperty(e).toUpperCase()}},{key:"category",set:function(e){this.result.category=this.setProperty(e)}},{key:"variant",set:function(e){this.result.variant=this.setProperty(e)}},{key:"position",set:function(e){this.result.position=Number(this.setProperty(String(e)))}},{key:"list",set:function(e){this.result.list=this.setProperty(e)}},{key:"setDynamicProp",value:function(e,t){this.result[e]=this.setProperty(t)}},{key:"getDynamicProp",value:function(e){return this.result[e]}}])}(u["a"])},3771:function(e,t,a){"use strict";a.d(t,"a",(function(){return p}));a("2397");var i=a("d4ec"),s=a("bee2"),n=a("99de"),r=a("7e84"),o=a("262e"),l=a("178b"),c=a("04d3"),u=a("e45c"),d=a("2af8");function h(e,t,a){function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}return t=Object(r["a"])(t),Object(n["a"])(e,i()?Reflect.construct(t,a||[],Object(r["a"])(e).constructor):t.apply(e,a))}var p=function(e){function t(e){var a;if(Object(i["a"])(this,t),a=h(this,t,["uaevent",e]),a.category="Ecommerce",e.category&&c["a"].warn('[AnalyticsProductImpressionObjectException] Category always defaults to "Ecommerce" (L\'Oréal guideline), currently ['.concat(e.category,"] was provided"),e,!1),a.action="Product Impressions",e.action&&c["a"].warn('[AnalyticsProductImpressionObjectException] Action always defaults to "Product Impressions" (L\'Oréal guideline), currently ['.concat(e.action,"] was provided"),e,!1),a.action="Product Impressions",e.label&&(a.label=e.label),!e.products||0===e.products.length)throw c["a"].error("[AnalyticsProductImpressionObjectException] Product(s) are required for a productImpression",e),new l["e"]("Product(s) are required for a productImpression");return a}return Object(o["a"])(t,e),Object(s["a"])(t,[{key:"initEcommerce",value:function(){this.result.ecommerce=this.result.ecommerce||{}}},{key:"category",set:function(e){this.result.eventCategory=this.setProperty(e,!1)}},{key:"action",set:function(e){this.result.eventAction=this.setProperty(e,!1)}},{key:"label",set:function(e){this.result.eventLabel=this.setProperty(e,!1)}},{key:"value",set:function(e){this.result.eventValue=this.setProperty(e)}},{key:"currency",set:function(e){this.initEcommerce(),this.result.ecommerce.currencyCode=this.setProperty(e).toUpperCase()}},{key:"products",get:function(){return this.result.ecommerce&&this.result.ecommerce.impressions||[]},set:function(e){this.initEcommerce(),this.result.ecommerce.impressions=e.map((function(e){return new d["a"](e).toObject()}))}}])}(u["a"])},"399d":function(e,t,a){"use strict";a.d(t,"a",(function(){return p}));a("2397");var i=a("d4ec"),s=a("bee2"),n=a("99de"),r=a("7e84"),o=a("262e"),l=a("178b"),c=a("04d3"),u=a("e45c"),d=a("2af8");function h(e,t,a){function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}return t=Object(r["a"])(t),Object(n["a"])(e,i()?Reflect.construct(t,a||[],Object(r["a"])(e).constructor):t.apply(e,a))}var p=function(e){function t(e){var a;if(Object(i["a"])(this,t),a=h(this,t,["productClick",e]),a.category="Ecommerce",e.category&&c["a"].warn('[AnalyticsProductClickObjectException] Category always defaults to "Ecommerce" (L\'Oréal guideline), currently ['.concat(e.category,"] was provided"),e,!1),a.action="Product Click",e.action&&c["a"].warn('[AnalyticsProductClickObjectException] Action always defaults to "Product Click" (L\'Oréal guideline), currently ['.concat(e.action,"] was provided"),e,!1),a.label="Product Click",e.label&&(a.label=e.label),!e.products||0===e.products.length)throw c["a"].error("[AnalyticsProductClickObjectException] Product is required for productClick",e),new l["c"]("Product is required for productClick");return a}return Object(o["a"])(t,e),Object(s["a"])(t,[{key:"initEcommerce",value:function(){this.result.ecommerce=this.result.ecommerce||{},this.result.ecommerce.click=this.result.ecommerce.click||{}}},{key:"category",set:function(e){this.result.eventCategory=this.setProperty(e,!1)}},{key:"action",set:function(e){this.result.eventAction=this.setProperty(e,!1)}},{key:"label",set:function(e){this.result.eventLabel=this.setProperty(e,!1)}},{key:"value",set:function(e){this.result.eventValue=this.setProperty(e)}},{key:"products",get:function(){return this.result.ecommerce&&this.result.ecommerce.click.products||[]},set:function(e){e=e.map((function(e){return new d["a"](e).toObject()})),this.initEcommerce(),this.result.ecommerce.click.products=e}},{key:"list",set:function(e){this.initEcommerce(),this.result.ecommerce.click.actionField={list:this.setProperty(e)}}}])}(u["a"])},"44bb":function(e,t,a){"use strict";a("b7ce")},"47f7":function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var i={data:function(){return{bodyTag:document.querySelector("body")}},methods:{preventDefault:function(e){e.preventDefault()},disableScroll:function(){this.bodyTag.classList.add("body-hide-overflow")},enableScroll:function(){this.bodyTag.classList.remove("body-hide-overflow")},removePageScroll:function(e){e?this.disableScroll():this.enableScroll()}}}},"4aec":function(e,t,a){},"4cb3":function(e,t,a){"use strict";a("e47c")},5009:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.loaded?a("div",[e._t("default")],2):e._e()},s=[],n=(a("8e6e"),a("ac6a"),a("456d"),a("7f7f"),a("ade3")),r=a("8655");window.$INJECTED_URLS={};var o={hasScript:function(e){return window.$INJECTED_URLS[e]},injectScript:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.hasScript(e)){var a=document.createElement("script"),i=document.getElementsByTagName("head")[0];return a.src=e,a.async=void 0===t.async||t.async,a.type="application/javascript",Object.keys(t).filter((function(e){return"async"!==e}
1)).forEach((function(e){t[e]&&a.setAttribute(e,t[e])})),window.$INJECTED_URLS[e]=new Promise((function(e){a.addEventListener("load",e),i.appendChild(a)})),window.$INJECTED_URLS[e]}return Promise.resolve().then((function(){return window.$INJECTED_URLS[e]}))}};function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(a,!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var u={name:"load-script",props:{name:{type:String,default:void 0},src:{type:String,required:!0},integrity:{type:String,default:void 0},crossorigin:{type:String,default:void 0},async:{type:Boolean,default:!0},attributes:{type:Object,default:void 0}},data:function(){return{loaded:!1}},created:function(){var e=this;this.src&&!o.hasScript(this.src)?o.injectScript(this.src,c({async:this.async,integrity:this.integrity,crossorigin:this.crossorigin},this.attributes||{})).then((function(){e.loaded=!0,e.$emit("loaded"),e.name&&r["a"].$emit("script.loaded.".concat(e.name),{name:e.name,url:e.src})})):o.hasScript(this.src)&&(this.loaded=!0,this.$emit("loaded"))}},d=u,h=a("2877"),p=Object(h["a"])(d,i,s,!1,null,null,null);t["a"]=p.exports},"500c":function(e,t,a){"use strict";a("ca64")},"55e5":function(e,t,a){"use strict";a.r(t);a("ac6a"),a("cadf"),a("551c"),a("f751"),a("097d");Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(document&&!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),function(){if("function"===typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),a}e.prototype=window.Event.prototype,window.CustomEvent=e}(),function(e){e.forEach((function(e){e.hasOwnProperty("append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach((function(e){var a=e instanceof Node;t.appendChild(a?e:document.createTextNode(String(e)))})),this.appendChild(t)}})}))}([Element.prototype,Document.prototype,DocumentFragment.prototype]),function(e){e.forEach((function(e){e.hasOwnProperty("prepend")||Object.defineProperty(e,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach((function(e){var a=e instanceof Node;t.appendChild(a?e:document.createTextNode(String(e)))})),this.insertBefore(t,this.firstChild)}})}))}([Element.prototype,Document.prototype,DocumentFragment.prototype]);a("6d93"),a("7507");NodeList.prototype.forEach||(NodeList.prototype.forEach=function(e){Array.prototype.forEach.call(this,e)})},5764:function(e,t,a){"use strict";a("c8d3")},5901:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var i=!1},"5af9":function(e,t,a){"use strict";a("1968")},"5be9":function(e,t,a){"use strict";function i(e){var t=e.getBoundingClientRect();return t.left>=0&&t.top<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}a.d(t,"a",(function(){return i}))},"5f45":function(e,t,a){"use strict";function i(e,t){var a;return function(){for(var i=arguments.length,s=new Array(i),n=0;n<i;n++)s[n]=arguments[n];var r=this;clearTimeout(a),a=setTimeout((function(){return e.apply(r,s)}),t)}}function s(e,t){var a,i;return function(){for(var s=arguments.length,n=new Array(s),r=0;r<s;r++)n[r]=arguments[r];var o=this;i?(clearTimeout(a),a=setTimeout((function(){Date.now()-i>=t&&(e.apply(o,n),i=Date.now())}),t-(Date.now()-i))):(e.apply(o,n),i=Date.now())}}a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return s}))},"62d9":function(e,t,a){},"62f9":function(e,t,a){"use strict";function i(){s(),window.addEventListener("resize",Object(r["b"])((function(){s()}),100))}function s(){var e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh","".concat(e,"px"))}a("5be9");var n=a("9f55");a("ade3"),a("ac6a"),a("456d");a("6b54");
1var r=a("5f45"),o=(a("7f7f"),a("96cf"),a("1da1")),l=function(e,t){return Object.keys(t).reduce((function(a,i){return a[i]=a[i]||{},Object.assign(a[i],e[i]||{},t[i]||{}),a}),e)},c=["components","directives","filters"];function u(e){return Object.keys(e).reduce((function(t,a){switch(a){case"asyncImports":[].concat(e[a]).forEach((function(e){c.forEach((function(a){e[a]&&[].concat(e[a]).forEach((function(i){var s=function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(){var s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=1,e.module();case 1:return s=t.sent,t.abrupt("return",s.default[a][i]);case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();t[a][i]=s}))}))}));break;case"imports":e[a].forEach((function(e){t=l(t,e)}));break;case"directives":case"components":case"filters":Object.assign(t[a],e[a]);break;default:t[a]=e[a];break}return t}),{components:{},directives:{},filters:{}})}a.d(t,"b",(function(){return i})),a.d(t,"d",(function(){return n["a"]})),a.d(t,"c",(function(){return r["a"]})),a.d(t,"e",(function(){return r["b"]})),a.d(t,"a",(function(){return u}))},"6aff":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:e.playerDomId}})},s=[],n=(a("8e6e"),a("ac6a"),a("456d"),a("ade3")),r=(a("96cf"),a("1da1"));function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function l(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?o(a,!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):o(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var c={name:"video-main",props:{video:{type:String,default:null},flowid:{type:String,default:null},videoTag:{type:Object,default:{}}},data:function(){return{flowPlayer:null,isFlowApiLoaded:!1,moduleUrl:"",playerDomId:""}},mounted:function(){this.checkFlowApi(),this.playerDomId="player-"+this.video,this.moduleUrl="https://embed.flowplayer.com/"+this.flowid+"/"+this.video+".js",this.initFlowplayer(),window.addEventListener("popstate",this.forcePageReload,!1)},destroyed:function(){window.removeEventListener("popstate",this.forcePageReload,!1)},methods:{forcePageReload:function(){location.reload()},checkFlowApi:function(){this.isFlowApiLoaded=this.$root.rootState.flowApiExist},initFlowplayer:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,import(this.moduleUrl);case 1:t=e.sent.default,this.flowPlayer=t("#".concat(this.playerDomId),{}),this.flowPlayer&&(this.flowPlayer.on("pause",(function(){i.triggerDataLayerEvents("pause")})),this.flowPlayer.on("playing",(function(){i.triggerDataLayerEvents("play")}))),e.next=3;break;case 2:e.prev=2,a=e["catch"](0),console.error("Failed to load Flowplayer module:",a);case 3:case"end":return e.stop()}}),e,this,[[0,2]])})));function t(){return e.apply(this,arguments)}return t}(),triggerDataLayerEvents:function(e){var t=decodeURI(this.videoTag.video_title);this.videoTag.video_title=t,this.videoTag.eventLabel="".concat(t,"::").concat(e);var a=l(l({},this.videoTag),{},{video_action:e});a.video_action=e,window.dataLayer.push(a)}}},u=c,d=a("2877"),h=Object(d["a"])(u,i,s,!1,null,null,null);t["a"]=h.exports},"6b0c":function(e,t,a){"use strict";a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return u}));a("ac6a");var i=a("5be9"),s=a("9f55"),n=a("5f45");function r(e,t,a){return Object(n["b"])((function(){(t.checkIsVisible&&Object(i["a"])(e)&&Object(s["a"])(e)||!t.checkIsVisible&&Object(i["a"])(e))&&a()}),t.delay)}function o(e,t){return new Promise((function(a){var i=r(e,t,(function(){document.removeEventListener("carouselLazyImg",i),window.removeEventListener("scroll",i),window.removeEventListener("resize",i),a()}));document.addEventListener("carouselLazyImg",i,!1),window.addEventListener("scroll",i,!1),window.addEventListener("resize",i,!1),i()}))}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.checkIsVisible,i=void 0===a||a,s=t.delay,n=void 0===s?500:s,r=t.threshold,l=void 0===r?[.006]:r;return"IntersectionObserver"in window?new Promise((function(t){var a=new IntersectionObserver((function(i){i.forEac
1h((function(i){i.intersectionRatio>0&&(t(),a.unobserve(e))}))}),{threshold:l});a.observe(e)})):o(e,{delay:n,checkIsVisible:i})}function c(e,t){e.forEach((function(e){if(e.isIntersecting){for(var a in e.target.children){var i=e.target.children[a];"string"===typeof i.tagName&&"SOURCE"===i.tagName&&(i.src=i.dataset.src)}e.target.load(),e.target.classList.remove("video-lazy-bg-load"),t.unobserve(e.target)}}))}function u(e){if("IntersectionObserver"in window){var t=new IntersectionObserver((function(e){c(e,t)}));e.forEach((function(e){t.observe(e)}))}}},"75a3":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return r}));a("ac6a"),a("456d");var i=a("6b0c"),s=a("5f45"),n=function(e,t){if("string"===typeof e)return e;var a=t||document.documentElement.clientWidth,i=Object.keys(e).reverse(),s=i.filter((function(e){return a>=e})).shift();return e[s]},r={name:"srcset",inserted:function(e,t){var a=function(){var a=n(t.value);if("img"!==e.tagName.toLowerCase()){e.style.backgroundImage="url('".concat(a,"')");var i=e.querySelector("img");i&&(i.src=a)}else e.src=a};Object(i["a"])(e,{checkIsVisible:!1}).then((function(){a(),e.listener=Object(s["a"])(a,200),window.addEventListener("resize",e.listener),setTimeout((function(){e.classList.add("-loaded")}),100)}))},unbind:function(e){e.listener&&window.removeEventListener("resize",e.listener)}}},"77f3":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",{staticClass:"slider__slide",style:{padding:"0 "+this.padding+"px"},attrs:{"aria-current":e.current}},[e._t("default")],2)},s=[],n={name:"slide-item",props:{current:{type:Boolean,required:!1}},data:function(){return{width:null,padding:this.$parent.slidePadding}}},r=n,o=a("2877"),l=Object(o["a"])(r,i,s,!1,null,null,null);t["a"]=l.exports},"7bf2":function(e,t,a){"use strict";a("2873")},"7cae":function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var i=a("8655"),s=a("62f9"),n={data:function(){return{screenSize:"small",smallScreenLimit:768}},mounted:function(){this.getScreenSize()},methods:{widerThan768:function(){return window.matchMedia("(min-width: ".concat(this.smallScreenLimit,"px)")).matches},proceedScreenSize:function(){this.screenSize=window.matchMedia("(min-width: 1440px)").matches?"large":this.widerThan768()&&window.matchMedia("(max-width: 1024px)").matches?"tablet":this.widerThan768()?"medium":"small"},getScreenSize:function(){var e=this;this.proceedScreenSize(),i["a"].$on("mediaquery::changed",(function(t){var a=Object(s["e"])((function(){e.proceedScreenSize()}),160);"medium"===t.size?window.addEventListener("resize",a,!1):(window.removeEventListener("resize",a,!1),e.screenSize=t.size)}))}}}},8655:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var i=a("a026"),s=new i["a"];window.eventBus=s},9630:function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));var i=a("d4ec"),s=a("bee2"),n=a("178b"),r=a("c00b"),o=a("04d3"),l=function(e,t){e()?t():window.setTimeout(l.bind(null,e,t),10)},c=function(e){l((function(){return"complete"===document.readyState}),(function(){return window.dataLayer.push(e)}))},u=function(){function e(){Object(i["a"])(this,e),o["a"].info("debug enabled"),"undefined"===typeof window.dataLayer&&(o["a"].warn("dataLayer is not defined. Creating local dataLayer for debugging purposes."),window.dataLayer=[])}return Object(s["a"])(e,[{key:"taggingObjectByType",value:function(e){if(-1===r["b"].indexOf(e.type)){var t=r["b"].join(", ");throw o["a"].error("[AnalyticsException] Wrong type given: [".concat(e.type,"]. Type options: ").concat(t)),new n["a"]("Wrong type given: [".concat(e.type,"]. Type options: ").concat(t))}var a=r["a"][e.type];return new a(e).toObject()}},{key:"push",value:function(t){if(!t)throw new n["a"]("No data given to AnalyticsHandler.push function");var a=this.taggingObjectByType(t);o["a"].info("Pushing [".concat(t.type,"] to dataLayer"),a);try{e.pushDataLayer(a)}catch(i){throw o["a"].error("Error while pushing to dataLayer",i),new n["a"](i.message)}return this}}],[{key:"getAnalyticsHandler",value:function(){return this.$analyticsHandler=this.$analyticsHandler||new e,this.$analyticsHandler}},{key:"pushDataLayer",value:function(e){return c(e)}}])}()},"9f55":function(e,t,a){"use strict";function i(e){var t=e.getBoundingClientRect(),a={x:t.left+e.offsetWidth/2,y:t.top+e.offsetHeight/2},i=document.elementFromPoint(a.x,a.y);if(a.x<0||a.y<0||a.x>(document.documentElement.clientWidth||window.innerWidth)||a.y>(document.documentElement.clientHeight||window.innerHeight))return!1;
1do{if(i===e)return!0}while(i=i.parentNode);return!1}a.d(t,"a",(function(){return i}))},ad30:function(e,t,a){"use strict";var i=a("9630"),s=(a("e45c"),a("f387"),a("f635"),a("399d"),a("3771"),a("2af8"),a("f658"),a("fee4"),a("c00b"),a("bb73"));a.d(t,"a",(function(){return i["a"]}));t["b"]={directives:{tag:s["a"]}}},b7ce:function(e,t,a){},bb73:function(e,t,a){"use strict";var i=a("178b"),s=a("c00b"),n=(a("8e6e"),a("ade3")),r=(a("ac4d"),a("8a81"),a("ac6a"),a("456d"),a("5901")),o=a("6b0c"),l=a("9630");function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function u(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(a,!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var d=function(e){return Object.keys(e).reduce((function(t,a){return e[a]&&(t[a]=e[a]),t}),{})},h={handleEvent:function(e,t,a,i){var s=this,n=function(){var e=i?s.createDataObjectBasedOnDom(t.closest("[data-tag-wrapper]"),a):a;try{l["a"].getAnalyticsHandler().push(e)}catch(n){throw r["a"]&&(t.setAttribute("data-error",n.message),t.classList.add("accessibilityError")),n}};"click"===e?t.addEventListener("click",n):Object(o["a"])(t).then(n)},getValue:function(e,t,a){var i=e.getAttribute("data-tag-".concat(a));return i&&""!==i?i:this.getValueFromSelector(e.querySelector(t),a)},getTagValues:function(e,t){var a=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e};return t.filter((function(e){return!!e})).map((function(t){return{key:t,value:a.getValue(e,"[data-tag-".concat(t,"]"),t)}})).reduce((function(e,t){return void 0!==t.value&&t.value&&(e[i(t.key)]=t.value),e}),{})},getValueFromSelector:function(e,t){if(!e)return!1;var a=e.getAttribute("data-tag-".concat(t));return""===a?e.textContent:a},createDataObjectBasedOnDom:function(e,t){var a=this.getTagValues(e,["category","action","label","event_name","click_area","breadcrumb","prop_event_name","prop_module_name","prop_cta_name","prop_link_url","social_network","social_action"]);if("productClick"===t.type||"productImpression"===t.type||"productDetail"===t.type){var i=e.querySelectorAll("[data-tag-product-identifier]");a.products=[];var s=!0,n=!1,r=void 0;try{for(var o,l=i[Symbol.iterator]();!(s=(o=l.next()).done);s=!0){var c=o.value;a.products.push(this.createDataForProduct(c,e,t,a))}}catch(y){n=!0,r=y}finally{try{s||null==l.return||l.return()}finally{if(n)throw r}}}if("promotionClick"===t.type||"promotionImpression"===t.type||"productDetail"===t.type){var d=e.querySelectorAll("[data-tag-promotion-identifier]");a.promotions=[];var h=!0,p=!1,f=void 0;try{for(var g,m=d[Symbol.iterator]();!(h=(g=m.next()).done);h=!0){var v=g.value;a.promotions.push(this.createDataForPromotion(v))}}catch(y){p=!0,f=y}finally{try{h||null==m.return||m.return()}finally{if(p)throw f}}}return u(u({},t),a)},createDataForProduct:function(e,t,a,i){var s=this.getValue(t,"[data-tag-product-currency]","product-currency"),n=this.getValue(e,"[data-tag-product-name]","product-name"),r=this.getValue(e,"[data-tag-product-id]","product-id"),o=this.getValue(e,"[data-tag-product-category]","product-category"),l=this.getValue(e,"[data-tag-product-brand]","product-brand"),c=this.getValue(e,"[data-tag-product-price]","product-price"),u=this.getValue(e,"[data-tag-product-variant]","product-variant"),h=this.getValue(e,"[data-tag-product-position]","product-position"),p=this.getValue(e,"[data-tag-product-list]","product-list"),f=this.getValue(e,"[data-tag-product-dimension35]","product-dimension35"),g=this.getValue(e,"[data-tag-product-dimension36]","product-dimension36"),m=this.getValue(e,"[data-tag-product-dimension37]","product-dimension37"),v=this.getValue(e,"[data-tag-product-dimension38]","product-dimension38"),y=this.getValue(e,"[data-tag-product-dimension39]","product-dimension39"),b=this.getValue(e,"[data-tag-product-dimension40]","product-dimension40"),w=this.getValue(e,"[data-tag-product-dimension48]","product-dimension48"),_=this.getValue(e,"[data-tag-product-dimension152]","product-dimension152"),C=this.getValue(e,"[data-tag-product-dimension153]","product-dimension153"),S=this.getValue(e,"[data-tag-product-dimension154]","product-dimension154");return s&&(i.currency=s),"productClick"===a.type&&p&&(i.list=p),d({name:n,id:r,category:o,brand:l,price:c,variant:u,position:"productClick"!==a.type&&h,list:("productImpression"===a.type||"productDetail"===a.type)&&p,dimension35:f,dimension36:g,dimension37:m,dimension38:v,dimension39:y,dimension40:b,dimension48:w,dimension152:_,dimension153:C,dimension154:S})},createDataForPromotion:function(e){var t=this.getValue(e,"[data-tag-promotion-name]","promotion-name"),a=this.getValue(e,"[data-tag-promotion-id]","promotion-id"),i=this.getValue(e,"[data-tag-promotion-creative]","promotion-creative"),s=this.getValue(e,"[data-tag-promotion-position]","promotion-position");
1return d({name:t,id:a,creative:i,position:s})}};a.d(t,"a",(function(){return p}));var p={name:"tag",inserted:function(e,t){var a=t.arg,n=t.value,r=void 0===n?{}:n,o=t.modifiers,l="click";if(!a)throw new i["j"]("No argument given to v-tag. Example usage: v-tag:event=\"{category: 'video', action: 'play', label: 'video.mp4'}}\". Argument options: ".concat(s["b"].join(", ").toLowerCase()));if(!Object(s["c"])(a))throw new i["j"]("v-tag argument [".concat(a,"] to v-tag is wrong. Argument options: ").concat(s["b"].join(", ").toLowerCase()));switch(a){case"productimpression":r.type="productImpression",l="impression";break;case"productdetail":r.type="productDetail",l="detail";break;case"productclick":r.type="productClick";break;case"promotionclick":r.type="promotionClick";break;case"promotionimpression":r.type="promotionImpression",l="impression";break;default:r.type="userActionEvent",l=o.onload?"impression":l;break}function c(){if("useractionevent"===a&&"main menu"===r.category){var e=window.matchMedia("only screen and (max-width: 1024px)").matches,t=e?"burger menu":"header";r.action="select::".concat(t),r.click_area=t}}c(),window.addEventListener("resize",c),h.handleEvent(l,e,r,"dom"in t.modifiers)}}},bed5:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=this,a=t.$createElement,i=t._self._c||a;return i("section",{staticClass:"slider",class:{"slider-vertical":t.vertical,"slider-text-selectable":!t.swipeOnDesktop,"partialy-visible":t.partialVisibleSlide},attrs:{id:t.carouselIdentifier}},[t.isSlideLoader?i("div",{staticClass:"progress-wrapper"},[t._l(t.progressCollection,(function(e,t){return i("div",{key:t,staticClass:"progress-loader"},[i("div",{staticClass:"progress-loader__indicator",class:""+e.class})])})),i("div",{staticClass:"is-sr-only",attrs:{"aria-live":"polite","aria-atomic":"true"}},[t._v("Slide "+t._s(t.currentPage+1)+" out of "+t._s(t.slideCount))])],2):t._e(),t.navigationEnabled?i("button",t._g({staticClass:"slider__navigation-button slider-navigation-prev",class:{"slider-navigation--disabled":!t.canAdvanceBackward},attrs:{"aria-disabled":!t.canAdvanceBackward,disabled:!t.canAdvanceBackward},on:{click:function(e){return e.preventDefault(),t.advancePage("backward","navigation")}}},t.canAdvanceForward?{}:{blur:t.blurEvent,"keyup.shift.tab":t.shiftTabKeyupEvent}),[t.isHeroBanner?i("svg",{attrs:{width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[i("path",{attrs:{d:"M13.3602 6.36177C13.3602 6.83757 12.9745 7.22328 12.4987 7.22328L3.05008 7.22328L6.55212 10.4884C6.78995 10.6952 6.89584 11.0154 6.82823 11.3233C6.76062 11.6311 6.5303 11.8775 6.22769 11.9656C5.92509 12.0537 5.5985 11.9696 5.37616 11.7462L0.273866 6.99282C0.0991847 6.82988 0 6.60172 0 6.36284C0 6.12396 0.0991847 5.89581 0.273866 5.73286L5.37616 0.977324C5.72409 0.652591 6.26939 0.671394 6.59412 1.01932C6.91885 1.36725 6.90005 1.91255 6.55212 2.23728L3.05008 5.50026L12.4987 5.50026C12.9745 5.50026 13.3602 5.88597 13.3602 6.36177Z",fill:"#3D3D3D"}})]):t._e(),i("span",{staticClass:"is-sr-only"},[t._v(t._s(t.previousPanelText))])]):t._e(),i("div",{staticClass:"slider__wrapper"},[i("ol",{staticClass:"slider__inner",style:{transform:"translate"+(this.vertical?"Y":"X")+"("+this.currentOffset+"px)",transition:this.transitionStyle,flexBasis:this.slideWidth+"px",msFlexPreferredSize:this.slideWidth+"px",visibility:this.slideWidth?"visible":"hidden"}},[t._t("default")],2)]),t.navigationEnabled?i("button",{staticClass:"slider__navigation-button slider-navigation-next",class:{"slider-navigation--disabled":!t.canAdvanceForward},attrs:{"aria-disabled":!t.canAdvanceForward,disabled:!t.canAdvanceForward},on:{click:function(e){return e.preventDefault(),t.advancePage("forward","navigation")},blur:function(e){return t.blurEvent()},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:e.shiftKey?t.shiftTabKeyupEvent(e):null}}},[t.isHeroBanner?i("svg",{attrs:{width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[i("path",{attrs:{d:"M0.639791 5.63823C0.639791 5.16243 1.0255 4.77672 1.5013 4.77672L10.9499 4.77672L7.44788 1.5116C7.21005 1.30477 7.10416 0.984573 7.17177 0.676728C7.23938 0.368883 7.4697 0.122531 7.77231 0.0343919C8.07491 -0.0537467 8.4015 0.0303985 8.62384 0.253792L13.7261 5.00718C13.9008 5.17012 14 5.39828 14 5.63716C14 5.87604 13.9008 6.10419 13.7261 6.26714L8.62384 11.0227C8.27591 11.3474 7.73061 11.3286 7.40588 10.9807C7.08114 10.6327 7.09995 10.0874 7.44788 9.76272L10.9499 6.49974L1.5013 6.49974C1.0255 6.49974 0.639791 6.11403 0.639791 5.63823Z",fill:"#3D3D3D"}}
1)]):t._e(),i("span",{staticClass:"is-sr-only"},[t._v(t._s(t.nextPanelText))])]):t._e(),t.paginationEnabled&&t.pageCount>0?i("pagination",{attrs:{"current-page":t.currentPage,"page-count":t.pageCount,labels:t.labels,"tagging-labels":t.taggingLabels,"is-clickable":t.isPaginationClickable},on:{paginationClick:function(t){return e.goToPage(t,"pagination")}}}):t._e()],1)},s=[],n=a("2909"),r=(a("ac6a"),a("55dd"),a("c5f6"),a("5f45")),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.pageCount>1,expression:"pageCount > 1"}],staticClass:"slider__pagination"},[a("ul",{ref:"pagList",staticClass:"slider__dot-container"},e._l(e.pageCount,(function(t,i){return a("li",{key:i,staticClass:"slider__dot",class:{"slider__dot--active":i===e.currentPage,clickable:e.isClickable}},[e.isClickable?a("button",{staticClass:"slider__dot-inner",attrs:{"aria-label":e.labels.pagination.ariaLabel.replace("{0}",i),"aria-current":i===e.currentPage||""},on:{click:function(t){return e.whenClickItem(i)}}}):a("span",{staticClass:"slider__dot-inner"})])})),0)])},l=[],c={name:"pagination",props:{labels:{type:Object,required:!0,default:void 0},taggingLabels:{type:Object,required:!0},currentPage:{type:Number,required:!0},pageCount:{type:Number,required:!0},isClickable:{type:Boolean,required:!1,default:!0}},data:function(){return{shiftAndTabHappened:!1}},mounted:function(){this.setRole()},methods:{whenClickItem:function(e){this.$emit("paginationClick",e)},setRole:function(){this.isClickable||this.$refs.pagList.setAttribute("role","none")}}},u=c,d=a("2877"),h=Object(d["a"])(u,o,l,!1,null,null,null),p=h.exports,f={name:"slider",components:{Pagination:p},props:{withFocusableItems:{type:Boolean,required:!1,default:!1},nextPanelText:{type:String,required:!1,default:"next panel"},previousPanelText:{type:String,required:!1,default:"previous panel"},isHeroBanner:{type:Boolean,required:!1,default:!1},labels:{type:Object,required:!1,default:function(){return{pagination:{ariaLabel:"Slide {0}"},navigation:{ariaLabelPrevious:"Go to the previous slide",ariaLabelNext:"Go to the next slide"}}}},taggingLabels:{type:Object,required:!1,default:function(){return{pagination:{category:"product pictures"},navigation:{category:"product pictures"}}}},isPaginationClickable:{type:Boolean,required:!1,default:!0},easing:{type:String,default:"ease"},minSwipeDistance:{type:Number,default:20},navigationEnabled:{type:Boolean,default:!0},paginationEnabled:{type:Boolean,default:!0},perPage:{type:Number,default:2},vertical:{type:Boolean,default:!1},slideSpacing:{type:Object|Array,default:function(){return{}}},slidePadding:{type:Number,default:0},perPageCustom:{type:Array,default:void 0},perPageWithActive:{type:Number,default:0},loop:{type:Boolean,default:!1},partialVisibleSlide:{type:Boolean,default:!1},hiddenSlidesVisibilityNum:{type:Number,default:0},scrollPerPage:{type:Boolean,default:!1},speed:{type:Number,default:400},autoplay:{type:[Boolean,Number],default:!1},autoplayDelay:{type:Number,default:2e3},isSlideLoader:{type:Boolean,default:!1},ScreenSize:{type:String,default:""},startAt:{type:Number,default:0},loopStartAt:{type:Number,default:null},carouselIdentifier:{type:String,default:"carousel-".concat(Date.now())},swipeOnDesktop:{type:Boolean,default:!1}},data:function(){return{browserWidth:null,carouselSize:null,currentPage:this.startAt,prevPage:this.startAt,dragOffset:0,dragStartX:0,mousedown:!1,slideCount:0,maxSwipeAngle:60,angle:0,slidesElms:null,shiftAndTabHappened:!1,showSlideLoader:!1,autoplayTimer:null,progressCollection:null,slideTransition:"".concat(this.speed/1e3,"s ").concat(this.easing," transform"),navigationhappen:!1}},computed:{breakpointSlidesPerPage:function(){if(!this.perPageCustom)return this.perPage;var e=this.perPageCustom,t=this.browserWidth,a=e.sort((function(e,t){return e[0]>t[0]?-1:1})),i=a.filter((function(e){return t>=e[0]})),s=i[0]&&i[0][1];return s||this.perPage},canAdvanceForward:function(){var e;return e=!!this.loop||this.currentPage<this.pageCount-1,e},canAdvanceBackward:function(){var e;return e=!!this.loop||this.currentPage>0,e},currentPerPage:function(){return!this.perPageCustom||this.$isServer?this.perPage:this.breakpointSlidesPerPage},currentOffset:function(){var e=this.currentPage,t=this.slideWidth,a=this.dragOffset,i=this.scrollPerPage?e*t*this.currentPerPage:e*t,s=-1*(i+a),n=this.getSlideSpacing();return s+n},isHidden:function(){return this.carouselSize<=0},pageCount:function(){var e=this.slideCount,t=this.currentPerPage;if(this.scrollPerPage){var a=Math.ceil(e/t);return a<1?1:a}return e-(this.currentPerPage-1)},slideWidth:function(){var e,t=this.carouselSize,a=this.currentPerPage;if(this.partialVisibleSlide&&this.hiddenSlidesVisibilityNum>0)e=t/a;else if(this.partialVisibleSlide&&this.perPageWithActive)e=2*t/this.perPageWithActive;else if(this.partialVisibleSlide)switch(this.ScreenSize){case"small":e=t/a;break;case"tablet":e=2*t/2;break;case"medium":e=2*t/3;break;case"large":e=2*t/5;break;default:e=t/a;break}else e=t/a;return e-2*this.getSlideSpacing()},transitionStyle:function(){return this.slideTransition},realSlidesAmount:function(){return this.$slots&&this.$slots.default&&this.$slots.default.filter((function(e){return e.tag&&e.tag.indexOf("slide")>-1})).length||0}},watch:{ScreenSize:function(e){e&&this.computeCarouselSize()},autoplay:function(e){if(e){var t="number"===typeof e?e:void 0;this.autoplayEnadbled(t)}else this.stopAutoplay()}},beforeUpdate:function(){this.computeCarouselSize()},updated:function(){this.$nextTick(this.slidesVisibility)},mounted:function(){var e=this;if(this.loop&&this.clone(),window.addEventListener("resize",Object(r["a"])(this.computeCarouselSize,16)),"ontouchstart"in window&&(this.$el.addEventListener("touchstart",this.handleMousedown),this.$el.addEventListener("touchend",this.handleMouseup),this.$el.addEventListener("touchmove",this.handleMousemove)),this.swipeOnDesktop&&(this.$el.addEventListener("mousedown",this.handleMousedown),this.$el.addEventListener("mouseup",this.handleMouseup),this.$el.addEventListener("mousemove",this.handleMousemove)),this.attachMutationObserver(),this.computeCarouselSize(),this.$nextTick(this.slidesVisibility),this.autoplay){var t="number"===typeof this.autoplay?this.autoplay:void 0;this.autoplayEnadbled(t)}else this.stopAutoplay();if(this.isSlideLoader&&this.initProgressBar(),this.loop){this.slideTransition="none";var a=null!==this.loopStartAt?this.loopStartAt:this.currentPerPage;this.goToPage(a),setTimeout((function(){e.slideTransition="".concat(e.speed/1e3,"s ").concat(e.easing," transform")}),10)}},beforeDestroy:function(){this.detachMutationObserver(),this.stopAutoplay(),window.removeEventListener("resize",this.getBrowserWidth),"ontouchstart"in window?this.$el.removeEventListener("touchmove",this.handleMousemove):this.$el.removeEventListener("mousemove",this.handleMousemove)},methods:{initProgressBar:function(){this.progressCollection=[];for(var e=0;e<this.pageCount;e++)this.progressCollection.push({class:""});this.setProgress()},setProgress:function(){var e=this;this.progressCollection.forEach((function(t,a){a<e.currentPage?e.progressCollection[a].class="simple":a===e.currentPage?e.progressCollection[a].class="active":e.progressCollection[a].class=""}))},autoplayEnadbled:function(e){var t=this;this.clearAutoplayTimer();var a="number"===typeof e?e:this.autoplayDelay;this.autoplayTimer=setInterval((function(){t.currentPage===t.pageCount-1?t.goToPage(0):t.advancePage("forward")}),a),this.$emit("autoplay-state-change",!0)},stopAutoplay:function(){this.autoplayTimer?(clearInterval(this.autoplayTimer),this.autoplayTimer=null,this.$emit("autoplay-state-change",!1)):this.$emit("autoplay-state-change",!1)},clearAutoplayTimer:function(){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null)},isUsingKeyboard:function(){return document.body.classList.contains("is-using-keyboard")},a11yFocus:function(){var e=this,t=this.currentPerPage,a=this.currentPage;if(this.isUsingKeyboard()){var i=a*t;window.matchMedia("(min-width: 1024px)").matches?this.$nextTick((function(){e.$children[i].$el.querySelector("[panel-focusable]").focus()})):this.$children[i].$el.querySelector("[panel-focusable]").focus()}},slidesVisibility:function(){this.slidesElms=this.getSlideNodes(),this.removeActiveSlide(),this.scrollPerPage?this.slideVisibilityProceedScrollPerPage():this.slideVisibilityProceedNonScrollPerPage()},removeActiveSlide:function(){var e=this;
1this.slidesElms.forEach((function(t){e.isHeroBanner||t.querySelectorAll("button, a").forEach((function(e){e.setAttribute("tabindex",-1)})),t.classList.remove("active"),e.hiddenSlidesVisibilityNum>0&&e.partialVisibleSlide?t.style.transform="translateX(".concat(e.hiddenSlidesVisibilityNum,"px)"):e.partialVisibleSlide&&(t.style.transform="translateX(".concat(e.$el.clientWidth/2-e.slideWidth/2,"px)"))}))},slideVisibilityProceedNonScrollPerPage:function(){var e=this;this.slidesElms.slice(this.currentPage,this.currentPage+this.currentPerPage).forEach((function(t){e.partialVisibleSlide?1===e.perPage&&t.classList.add("active"):e.perPageWithActive>0&&e.slidesElms[Math.round(e.currentPerPage/2)+e.currentPage-1].classList.add("active"),e.isHeroBanner||t.querySelectorAll("button, a").forEach((function(e){e.setAttribute("tabindex",0)}))}))},slideVisibilityProceedScrollPerPage:function(){var e=this;this.slidesElms.slice(this.currentPage*this.currentPerPage,(this.currentPage+1)*this.currentPerPage).forEach((function(t){e.isHeroBanner||t.querySelectorAll("button, a").forEach((function(e){e.setAttribute("tabindex",0)}))}))},advancePage:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.navigationhappen||(this.navigationhappen=!0,setTimeout((function(){t.navigationhappen=!1}),750),this.isHeroBanner||this.advancePageProceedSlideVisibility(e),setTimeout((function(){e&&"backward"===e&&t.canAdvanceBackward?t.advancePageProceedBackwardDirection(a):(!e||e&&"backward"!==e)&&t.canAdvanceForward&&t.advancePageProceedNonBackwardDirection(a),t.isSlideLoader&&t.setProgress()}),390),this.slidesVisibility())},advancePageProceedSlideVisibility:function(e){var t,a,i=this;document.getElementsByClassName("brand-slider__copy")[0].setAttribute("aria-hidden",!0),setTimeout((function(){e&&"forward"==e?(t=i.slidesElms.filter((function(e){if(e.querySelector('[tabindex="0"]'))return e.querySelector('[tabindex="0"]')})).slice(-1)[0],t&&t.childNodes[0].focus({preventScroll:!0})):(a=i.slidesElms.filter((function(e){if(e.querySelector('[tabindex="0"]'))return e.querySelector('[tabindex="0"]')}))[0],a&&a.childNodes[0].focus({preventScroll:!0})),document.getElementsByClassName("brand-slider__copy")[0].setAttribute("aria-hidden",!1)}),500)},advancePageProceedBackwardDirection:function(e){var t=this;if(!this.scrollPerPage&&this.loop&&0===this.currentPage)this.slideTransition="none",this.goToPage(this.realSlidesAmount,e),setTimeout((function(){t.slideTransition="".concat(t.speed/1e3,"s ").concat(t.easing," transform"),t.goToPage(t.realSlidesAmount-1,e)}),10);else if(0===this.currentPage){var a=0===this.currentPage?this.pageCount-1:this.currentPage-1;this.goToPage(a,e)}else this.goToPage(this.currentPage-1,e)},advancePageProceedNonBackwardDirection:function(e){var t=this;(this.currentPage+1)%this.pageCount===0&&this.perPageWithActive||!this.scrollPerPage&&this.loop&&this.realSlidesAmount===this.currentPage?(this.slideTransition="none",this.goToPage(0,e),setTimeout((function(){t.slideTransition="".concat(t.speed/1e3,"s ").concat(t.easing," transform"),t.goToPage(1,e)}),10)):(this.currentPage+1)%this.pageCount===0?this.goToPage((this.currentPage+1)%this.pageCount,e):this.goToPage(this.currentPage+1,e)},attachMutationObserver:function(){var e=this,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(t){var a={attributes:!0,data:!0};this.mutationObserver=new t((function(){e.$nextTick((function(){e.computeCarouselSize()}))})),this.$parent.$el&&this.mutationObserver.observe(this.$parent.$el,a)}},getSlideSpacing:function(){var e=0;for(var t in this.slideSpacing)Object.prototype.hasOwnProperty.call(this.slideSpacing,t)&&t<=this.getBrowserWidth()&&(e=this.slideSpacing[t]);return e},detachMutationObserver:function(){this.mutationObserver&&this.mutationObserver.disconnect()},getBrowserWidth:function(){return this.browserWidth=window.innerWidth,this.browserWidth},getCarouselSize:function(){return this.vertical?this.carouselSize=this.$el&&this.$el.clientHeight||0:this.getCarouselSizeProceedNonVertical(),"small"===this.ScreenSize&&(this.carouselSize=this.$el&&this.$el.clientWidth||0),this.carouselSize},getCarouselSizeProceedNonVertical:function(){var e=1===this.perPage,t=function(e,t){return parseInt(window.getComputedStyle(e)[t],10)||0},a=this.$el&&this.$el.clientWidth||0;if(this.partialVisibleSlide&&e){if(this.hiddenSlidesVisibilityNum>0){var i=this.$el.querySelector(".slider__inner"),s=t(i,"padding-left"),n=t(i,"padding-right");return void(this.carouselSize=a-s-n-2*this.hiddenSlidesVisibilityNum||0)}this.carouselSize=a-this.$el.clientWidth/2||0}else{var r=t(this.$el,"padding-left"),o=t(this.$el,"padding-right");this.carouselSize=a-r-o||0}},getSlideNodes:function(){return Object(n["a"])(this.$el.querySelectorAll(".slider__slide"))},getSlideCount:function(){this.slideCount=this.getSlideNodes().length},goToPage:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e>=0&&e<=this.pageCount&&(this.currentPage=e,this.$emit("pageChange",this.currentPage,this.prevPage,t),this.prevPage=this.currentPage,this.withFocusableItems&&this.a11yFocus())},handleMousedown:function(e){e.touches||e.preventDefault(),this.mousedown=!0,this.dragStart=e.touches?e.touches[0]:e},handleMouseup:function(){this.mousedown=!1,this.dragOffset=0},swipeAngle:function(e,t){return Math.atan(Math.abs(t)/Math.abs(e))*(180/Math.PI)},handleMousemove:function(e){if(this.mousedown){var t=e.touches?e.touches[0]:e,a=0,i=0;this.vertical?(a=this.dragStart.clientY-t.clientY,i=this.dragStart.clientX-t.clientX):(a=this.dragStart.clientX-t.clientX,i=this.dragStart.clientY-t.clientY),this.angle=this.swipeAngle(a,i),this.angle<this.maxSwipeAngle&&e.preventDefault(),this.dragOffset=a,this.dragOffset>this.minSwipeDistance?(this.handleMouseup(),this.advancePage()):this.dragOffset<-this.minSwipeDistance&&(this.handleMouseup(),this.advancePage("backward"))}}
1,computeCarouselSize:function(){this.getSlideCount(),this.getBrowserWidth(),this.getCarouselSize(),this.setCurrentPageInBounds()},setCurrentPageInBounds:function(){if(!this.canAdvanceForward){var e=this.pageCount-1;this.currentPage=e>=0?e:0}},blurEvent:function(){this.shiftAndTabHappened&&(this.shiftAndTabHappened=!1)},shiftTabKeyupEvent:function(){this.shiftAndTabHappened=!0},clone:function(){this.slidesElms=this.getSlideNodes();for(var e=this.slidesElms.length,t=0;t<=this.currentPerPage;t++){var a=this.slidesElms[t];if(a){var i=a.cloneNode(!0);i.classList.add("slide__cloned"),this.$el.querySelector(".slider__inner").append(i)}}for(var s=e;s>e-this.currentPerPage;s--){var n=this.slidesElms[s-1];if(n){var r=n.cloneNode(!0);r.classList.add("slide__cloned"),this.$el.querySelector(".slider__inner").prepend(r)}}}}},g=f,m=(a("c205"),Object(d["a"])(g,i,s,!1,null,null,null));t["default"]=m.exports},c00b:function(e,t,a){"use strict";a("ac6a"),a("456d");var i=a("f387"),s=a("f635"),n=a("399d"),r=a("3771"),o=(a("2397"),a("d4ec")),l=a("bee2"),c=a("99de"),u=a("7e84"),d=a("262e"),h=a("178b"),p=a("04d3"),f=a("e45c"),g=a("2af8");function m(e,t,a){function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}return t=Object(u["a"])(t),Object(c["a"])(e,i()?Reflect.construct(t,a||[],Object(u["a"])(e).constructor):t.apply(e,a))}var v=function(e){function t(e){var a;if(Object(o["a"])(this,t),a=m(this,t,["uaevent",e]),a.category="Ecommerce",e.category&&p["a"].warn('[AnalyticsProductDetailObjectException] Category always defaults to "Ecommerce" (L\'Oréal guideline), currently ['.concat(e.category,"] was provided"),e,!1),a.action="Product Detail",e.action&&p["a"].warn('[AnalyticsProductDetailObjectException] Action always defaults to "Product Detail" (L\'Oréal guideline), currently ['.concat(e.action,"] was provided"),e,!1),a.action="Product Detail",e.label&&(a.label=e.label),!e.products||0===e.products.length)throw p["a"].error("[AnalyticsProductDetailObjectException] Product(s) are required for a productDetail",e),new h["d"]("Product(s) are required for a productDetail");return a}return Object(d["a"])(t,e),Object(l["a"])(t,[{key:"initEcommerce",value:function(){this.result.ecommerce=this.result.ecommerce||{}}},{key:"category",set:function(e){this.result.eventCategory=this.setProperty(e,!1)}},{key:"action",set:function(e){this.result.eventAction=this.setProperty(e,!1)}},{key:"label",set:function(e){this.result.eventLabel=this.setProperty(e,!1)}},{key:"value",set:function(e){this.result.eventValue=this.setProperty(e)}},{key:"currency",set:function(e){this.initEcommerce(),this.result.ecommerce.currencyCode=this.setProperty(e).toUpperCase()}},{key:"products",get:function(){return this.result.ecommerce&&this.result.ecommerce.detail||[]},set:function(e){this.initEcommerce(),this.result.ecommerce.detail=e.map((function(e){return new g["a"](e).toObject()}))}}])}(f["a"]),y=a("f658"),b=a("fee4");function w(e,t,a){function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}return t=Object(u["a"])(t),Object(c["a"])(e,i()?Reflect.construct(t,a||[],Object(u["a"])(e).constructor):t.apply(e,a))}var _=function(e){function t(e){var a;if(Object(o["a"])(this,t),a=w(this,t,["nievent",e]),a.category="Ecommerce",e.category&&p["a"].warn('[AnalyticsPromotionImpressionObjectException] Category always defaults to "Ecommerce" (L\'Oréal guideline), currently ['.concat(e.category,"] was provided"),e,!1),a.action="Promotion Impressions",e.action&&p["a"].warn('[AnalyticsPromotionImpressionObjectException] Action always defaults to "Promotion Impressions" (L\'Oréal guideline), currently ['.concat(e.action,"] was provided"),e,!1),a.label="Promotion Impressions",e.label&&(a.label=e.label),!e.promotions||0===e.promotions.length)throw p["a"].error("[AnalyticsPromotionImpressionObjectException] Promotion(s) are required for a promotionImpression",e),new h["h"]("Promotion(s) are required for a promotionImpression");return a}return Object(d["a"])(t,e),Object(l["a"])(t,[{key:"initEcommerce",value:function(){this.result.ecommerce=this.result.ecommerce||{},this.result.ecommerce.promoView=this.result.ecommerce.promoView||{}}},{key:"category",set:function(e){this.result.eventCategory=this.setProperty(e,!1)}},{key:"action",set:function(e){this.result.eventAction=this.setProperty(e,!1)}},{key:"label",set:function(e){this.result.eventLabel=this.setProperty(e,!1)}},{key:"value",set:function(e){this.result.eventValue=this.setProperty(e)}},{key:"promotions",set:function(e){this.initEcommerce(),this.result.ecommerce.promoView.promotions=e.map((function(e){return new b["a"](e).toObject()}))}}])}(f["a"]);a.d(t,"a",(function(){return C})),a.d(t,"b",(function(){return S})),a.d(t,"c",(function(){return P}));var C={productClick:n["a"],productImpression:r["a"],productDetail:v,userActionEvent:i["a"],nonInteractiveEvent:s["a"],promotionClick:y["a"],promotionImpression:_},S=Object.keys(C),P=function(e){return S.map((function(e){return e.toLowerCase()})).indexOf(e.toLowerCase())>-1}},c205:function(e,t,a){"use strict";a("4aec")},c8d3:function(e,t,a){},ca64:function(e,t,a){},d5de:function(e,t,a){"use strict";a("8e6e"),a("ac6a"),a("456d");var i=a("ade3"),s=(a("96cf"),a("1da1"));function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function r(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?n(a,!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function o(e){return l.apply(this,arguments)}function l(){return l=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,i,s,n,o,l,c,u,d,h=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=h.length>1&&void 0!==h[1]?h[1]:{},i=a.data,s=void 0===i?null:i,n=a.headers,o=void 0===n?{}:n,l=a.method,c=void 0===l?"GET":l,u={method:c,headers:r({"Content-Type":"application/json"},o),credentials:"include",cache:"no-store"},s&&(u.method="POST",u.body=JSON.stringify(s)),e.next=1,fetch(t,u);case 1:if(d=e.sent,200!==d.status){e.next=3;break}return e.next=2,d.json();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}a.d(t,"a",(function(){return o}))},e45c:function(e,t,a){"use strict";a("456d"),a("ac6a");var i=a("d4ec"),s=a("bee2");a("a481");function n(e,t){if(e&&t){var a=e.toLowerCase().replace(/__/g,"");if(a in t)return t[a]}return e}function r(e){return"string"===typeof e&&e.indexOf("__")>-1}a.d(t,"a",(function(){return o}));var o=function(){function e(t,a){Object(i["a"])(this,e),this.variables=window.wsf&&window.wsf.AnalyticsVariables&&(window.wsf.AnalyticsVariables.dynamic||window.wsf.AnalyticsVariables)||{},this.result={},t&&(this.result.event=t),this.from(a)}return Object(s["a"])(e,[{key:"setProperty",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=r(e)?n(e,this.variables):e.trim();return t&&(a=a.toLowerCase()),a}},{key:"from",value:function(e){var t=this;Object.keys(e).forEach((function(a){e[a]&&(t[a]=e[a])}))}},{key:"toObject",value:function(){return this.result}}])}()},e47c:function(e,t,a){},e885:function(e,t,a){"use strict";a("f624")},ed2b:function(e,t,a){},f387:function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));a("2397");var i=a("d4ec"),s=a("bee2"),n=a("99de"),r=a("7e84"),o=a("262e"),l=a("178b"),c=a("04d3"),u=a("e45c");function d(e,t,a){function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}return t=Object(r["a"])(t),Object(n["a"])(e,i()?Reflect.construct(t,a||[],Object(r["a"])(e).constructor):t.apply(e,a))}var h=function(e){function t(e){var a;if(Object(i["a"])(this,t),a=d(this,t,["uaevent",e]),!e.category)throw c["a"].error("[AnalyticsUserActionEventObjectException] Category is required for uaevent (L'Oréal guideline)",e),new l["k"]("Category is required for uaevent (L'Oréal guideline)");if(!e.action)throw c["a"].error("[AnalyticsUserActionEventObjectException] Action is required for uaevent (L'Oréal guideline)",e),new l["k"]("Action is required for uaevent (L'Oréal guideline)");if(!e.label)throw c["a"].error("[AnalyticsUserActionEventObjectException] Label is required for uaevent (L'Oréal guideline)",e),new l["k"]("Label is required for uaevent (L'Oréal guideline)");return a.result.ecommerce="undefined",a}return Object(o["a"])(t,e),Object(s["a"])(t,[{key:"category",get:function(){return this.result.eventCategory},set:function(e){this.result.eventCategory=this.setProperty(e)}},{key:"action",get:function(){return this.result.eventAction},set:function(e){this.result.eventAction=this.setProperty(e)}},{key:"label",get:function(){return this.result.eventLabel},set:function(e){this.result.eventLabel=this.setProperty(e)}},{key:"event_name",get:function(){return this.result.event_name},set:function(e){this.result.event_name=this.setProperty(e)}},{key:"prop_event_name",get:function(){return this.result.event_name},set:function(e){this.result.event_name=this.setProperty(e)}},{key:"prop_module_name",get:function(){return this.result.module_name},set:function(e){this.result.module_name=this.setProperty(e)}},{key:"prop_cta_name",get:function(){return this.result.cta_name},set:function(e){this.result.cta_name=this.setProperty(e)}},{key:"prop_link_url",get:function(){return this.result.link_url},set:function(e){this.result.link_url=this.setProperty(e)}},{key:"social_network",get:function(){return this.result.social_network},set:function(e){this.result.social_network=this.setProperty(e)}},{key:"social_action",get:function(){return this.result.social_action},set:function(e){this.result.social_action=this.setProperty(e)}},{key:"search_keyword",get:function(){return this.result.search_keyword},set:function(e){this.result.search_keyword=this.setProperty(e)}},{key:"method",get:function(){return this.result.method},set:function(e){this.result.method=this.setProperty(e)}},{key:"cta_name",get:function(){return this.result.cta_name},set:function(e){this.result.cta_name=this.setProperty(e)}},{key:"link_url",get:function(){return this.result.link_url},set:function(e){this.result.link_url=this.setProperty(e)}},{key:"click_area",get:function(){return this.result.click_area},set:function(e){this.result.click_area=this.setProperty(e)}},{key:"breadcrumb",get:function(){return this.result.breadcrumb},set:function(e){this.result.breadcrumb=this.setProperty(e)}},{key:"article_name",get:function(){return this.result.article_name},set:function(e){this.result.article_name=this.setProperty(e)}},{key:"file_type",get:function(){return this.result.file_type},set:function(e){this.result.file_type=this.setProperty(e)}},{key:"file_name",get:function(){return this.result.file_name},set:function(e){this.result.file_name=this.setProperty(e)}},{key:"module_name",get:function(){return this.result.module_name},set:function(e){this.result.module_name=this.setProperty(e)}},{key:"video_title",get:function(){return this.result.video_title},set:function(e){this.result.video_title=this.setProperty(e)}},{key:"video_action",get:function(){return this.result.video_action},set:function(e){this.result.video_action=this.setProperty(e)}},{key:"filter_type",get:function(){return this.result.filter_type},set:function(e){this.result.filter_type=this.setProperty(e)}},{key:"filter_value",get:function(){return this.result.filter_value},set:function(e){this.result.filter_value=this.setProperty(e)}},{key:"value",set:function(e){this.result.eventValue=this.setProperty(e)}}])}(u["a"])},f5f2:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;
1return a("div",{staticClass:"modal",on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeModal(t)}}},[a("div",{ref:"openModal",staticClass:"modal__open-btn",on:{click:function(t){return t.preventDefault(),e.openModal(t)}}},[e._t("button",null,{ally:e.showModal})],2),a("div",{directives:[{name:"show",rawName:"v-show",value:e.showModal,expression:"showModal"}],staticClass:"modal__backface",on:{click:e.closeModal}}),a("dialog",{ref:"wrapper",staticClass:"modal__wrapper",class:e.animateModal?"--opened":"",attrs:{role:"dialog","aria-modal":"true",open:e.showModal,"aria-labelledby":e.ariaLabelledby}},["accessbility"===e.modelType?a("button",{ref:"closeButton",staticClass:"modal__close-btn btn-close",attrs:{type:"button","v-tag:useractionevent":{category:"content",action:"select::accessibility layer",label:"close"}},on:{click:e.closeModal}},[a("span",[e._v(e._s(e.closeAriaLabel))]),a("span",{staticClass:"btn--close"})]):a("button",{staticClass:"modal__close-btn btn-close",attrs:{type:"button",id:"countryCloseBtn","v-tag:useractionevent":{category:"content",action:"select::accessibility layer",label:"close"}},on:{click:e.closeModal}},[a("span",[e._v(e._s(e.closeAriaLabel))]),a("span",{staticClass:"btn--close"})]),a("div",{staticClass:"modal__content"},[e._t("default",null,{showModal:e.showModal})],2)])])},s=[],n=(a("ac6a"),a("2909")),r=(a("a481"),a("bb73")),o=a("47f7"),l=a("ad30"),c={name:"modal",directives:{tag:r["a"]},mixins:[o["a"]],props:{closeAriaLabel:{type:String,required:!1,default:void 0},ariaLabelledby:{type:String,required:!1,default:void 0},ariaDescribedby:{type:String,required:!1,default:void 0},analytics:{type:String,required:!1,default:void 0}},data:function(){return{showModal:!1,animateModal:!1,focusableElms:null,modelType:"accessbility"}},mounted:function(){this.$el.style.display=""},methods:{isUsingKeyboard:function(){return document.body.classList.contains("is-using-keyboard")},closeEvent:function(){this.$root.$emit("modal::close"),l["a"].pushDataLayer({event:"uaevent",eventCategory:"content",eventAction:this.analytics,eventLabel:"close"})},openModal:function(){var e=this;this.showModal=!0,this.removePageScroll(!0);var t=this.$refs.openModal.getElementsByClassName("icon-world").length;0===t?(this.modelType="accessbility",window._uxa=window._uxa||[],window._uxa.push(["trackPageview",window.location.pathname+window.location.hash.replace("#","?__")+"?cs-popin-accessbility"])):(this.modelType="country",window._uxa=window._uxa||[],window._uxa.push(["trackPageview",window.location.pathname+window.location.hash.replace("#","?__")+"?cs-popin-country-selector"])),setTimeout((function(){e.animateModal=!0,e.setFocus()}),500)},closeModal:function(){this.showModal=!1,this.animateModal=!1,this.removePageScroll(!1),window._uxa=window._uxa||[],window._uxa.push(["trackPageview",window.location.pathname+window.location.hash.replace("#","?__")]),this.closeEvent()},setFocus:function(){"accessbility"===this.modelType?this.proceedAccessibilitySetFocus():this.proceedNonAccessibilitySetFocus()},proceedAccessibilitySetFocus:function(){var e=document.querySelector(".modal__wrapper"),t=["button, input"],a=e.querySelectorAll(t)[0];document.querySelector(".modal__wrapper .btn-close").focus(),document.addEventListener("keydown",(function(e){var t=document.getElementsByName("contrast")[0].checked?document.getElementsByName("contrast")[0]:document.getElementsByName("contrast")[1],i="Tab"===e.key;i&&(e.shiftKey?document.activeElement===a&&(t.focus(),e.preventDefault()):document.activeElement===t&&(a.focus(),e.preventDefault()))}))},proceedNonAccessibilitySetFocus:function(){var e=document.getElementById("countryCloseBtn"),t=document.getElementsByClassName("selectCountry").length-1,a=document.getElementsByClassName("country-name"),i=a[a.length-1];document.getElementById("countryCloseBtn").focus(),document.addEventListener("click",(function(){document.activeElement.classList.contains("selectCountry")&&(i=document.activeElement===i?a[a.length-1]:document.getElementsByClassName("selectCountry")[t],document.activeElement===document.getElementsByClassName("selectCountry")[t]&&(i=a[a.length-1]))})),document.addEventListener("keydown",(function(t){var a="Tab"===t.key;a&&(t.shiftKey?document.activeElement===e&&(i.focus(),t.preventDefault(),t.stopPropagation()):document.activeElement===i&&(e.focus(),t.preventDefault(),t.stopPropagation()))}))},focusLoop:function(){var e=this;this.focusableElms=Object(n["a"])(this.$el.querySelectorAll("a, button, input")).slice(1),this.focusableElms.forEac
1h((function(t){t.setAttribute("focusable","isFocusable"),t.addEventListener("blur",(function(){setTimeout((function(){var t=document.activeElement.getAttribute("focusable");!window.matchMedia("(min-width: 1024px)").matches&&"isFocusable"!==t&&e.isUsingKeyboard()?e.focusableElms[1].focus():"isFocusable"!==t&&e.focusableElms[0].focus()}),30)}))}))}}},u=c,d=a("2877"),h=Object(d["a"])(u,i,s,!1,null,null,null);t["a"]=h.exports},f605:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));a("ac6a"),a("28a5");var i={name:"click-extension",bind:function(e,t){var a,i=e,s=t.value.split(",");a=void 0!==t.arg?i.querySelector("a.".concat(t.arg)):i.querySelector("a"),s.forEach((function(e){var t=i.querySelectorAll(e);t.length?[].forEach.call(t,(function(e){e.onclick=function(){return a.click()},e.style.cursor="pointer"})):console.warn("Element <".concat(e,"> was provided in clickextention but not present within this component."))}))}}},f624:function(e,t,a){},f635:function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));a("2397");var i=a("d4ec"),s=a("bee2"),n=a("99de"),r=a("7e84"),o=a("262e"),l=a("178b"),c=a("04d3"),u=a("e45c");function d(e,t,a){function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}return t=Object(r["a"])(t),Object(n["a"])(e,i()?Reflect.construct(t,a||[],Object(r["a"])(e).constructor):t.apply(e,a))}var h=function(e){function t(e){var a;if(Object(i["a"])(this,t),a=d(this,t,["nievent",e]),!e.category)throw c["a"].error("[AnalyticsNonInteractiveEventObjectException] Category is required for nievent (L'Oréal guideline)",e),new l["b"]("Category is required for nievent (L'Oréal guideline)");if(!e.action)throw c["a"].error("[AnalyticsNonInteractiveEventObjectException] Action is required for nievent (L'Oréal guideline)",e),new l["b"]("Action is required for nievent (L'Oréal guideline)");if(!e.label)throw c["a"].error("[AnalyticsNonInteractiveEventObjectException] Label is required for nievent (L'Oréal guideline)",e),new l["b"]("Label is required for nievent (L'Oréal guideline)");return a}return Object(o["a"])(t,e),Object(s["a"])(t,[{key:"category",get:function(){return this.result.eventCategory},set:function(e){this.result.eventCategory=this.setProperty(e)}},{key:"action",get:function(){return this.result.eventAction},set:function(e){this.result.eventAction=this.setProperty(e)}},{key:"label",get:function(){return this.result.eventLabel},set:function(e){this.result.eventLabel=this.setProperty(e)}},{key:"value",set:function(e){this.result.eventValue=this.setProperty(e)}}])}(u["a"])},f658:function(e,t,a){"use strict";a.d(t,"a",(function(){return p}));a("2397");var i=a("d4ec"),s=a("bee2"),n=a("99de"),r=a("7e84"),o=a("262e"),l=a("178b"),c=a("04d3"),u=a("e45c"),d=a("fee4");function h(e,t,a){function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}return t=Object(r["a"])(t),Object(n["a"])(e,i()?Reflect.construct(t,a||[],Object(r["a"])(e).constructor):t.apply(e,a))}var p=function(e){function t(e){var a;if(Object(i["a"])(this,t),a=h(this,t,["promotionClick",e]),a.category="Ecommerce",e.category&&c["a"].warn('[AnalyticsPromotionClickObjectException] Category always defaults to "Ecommerce" (L\'Oréal guideline), currently ['.concat(e.category,"] was provided"),e,!1),a.action="Promotion Click",e.action&&c["a"].warn('[AnalyticsPromotionClickObjectException] Action always defaults to "Promotion Click" (L\'Oréal guideline), currently ['.concat(e.action,"] was provided"),e,!1),a.action="Promotion Click",e.label&&(a.label=e.label),!e.promotions||0===e.promotions.length)throw c["a"].error("[AnalyticsPromotionClickObjectException] promotion is required for promotionClick",e),new l["g"]("promotion is required for promotionClick");return a}return Object(o["a"])(t,e),Object(s["a"])(t,[{key:"initEcommerce",value:function(){this.result.ecommerce=this.result.ecommerce||{},this.result.ecommerce.promoClick=this.result.ecommerce.promoClick||{}}},{key:"category",set:function(e){this.result.eventCategory=this.setProperty(e,!1)}},{key:"action",set:function(e){this.result.eventAction=this.setProperty(e,!1)}},{key:"label",set:function(e){this.result.eventLabel=this.setProperty(e,!1)}},{key:"value",set:function(e){this.result.eventValue=this.setProperty(e)}},{key:"promotions",set:function(e){e=e.map((function(e){return new d["a"](e).toObject()})),this.initEcommerce(),this.result.ecommerce.promoClick.promotions=e}}])}(u["a"])},f674:function(e,t,a){"use strict";a("287e")},f79e:function(e,t,a){"use strict";a("62d9")},f95c:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{ref:"backgroundWrapper",staticClass:"responsive-image__media"},[e._t("default")],2),e._t("content")],2)},s=[],n=a("75a3"),r=a("62f9"),o=a("6b0c"),l={name:"responsive-image",props:{srcset:{type:[Object,String],required:!1,default:void 0},aspectRatio:{type:String,required:!1,default:void 0}},data:function(){return{loaded:!0,isAnimationActive:!1,backgroundImage:void 0,counter:0}},mounted:function(){var e=this;this.img=this.$refs.backgroundWrapper.querySelector("img"),Object(o["a"])(this.$el,{checkIsVisible:!1}
1).then((function(){e.loaded=!0,e.updateBackground(),e.srcset&&(e.responsiveListener=Object(r["c"])((function(){return e.updateBackground()}),200),window.addEventListener("resize",e.responsiveListener))}))},destroyed:function(){this.responsiveListener&&(window.removeEventListener("resize",this.responsiveListener),this.responsiveListener=null),this.scrollListener&&(window.addEventListener("scroll",this.scrollListener),this.scrollListener=null)},updated:function(){document.getElementsByTagName("body")[0].classList.contains("pagemode-edit")&&this.updateBackground()},methods:{updateBackground:function(){var e=this.getBackgroundImage();this.backgroundImage="url('".concat(e,"')");var t=this.$refs.backgroundWrapper.querySelector("img");t.setAttribute("alt",""),t&&(t.src=e)},getBackgroundImage:function(){if(this.srcset)return Object(n["a"])(this.srcset);var e=this.$el.querySelector("img");return e&&e.src?e.src:void 0}}},c=l,u=(a("f674"),a("2877")),d=Object(u["a"])(c,i,s,!1,null,null,null);t["a"]=d.exports},fe16:function(e,t,a){},fee4:function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));a("2397"),a("7f7f");var i=a("d4ec"),s=a("bee2"),n=a("99de"),r=a("7e84"),o=a("262e"),l=a("178b"),c=a("04d3"),u=a("e45c");function d(e,t,a){function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}return t=Object(r["a"])(t),Object(n["a"])(e,i()?Reflect.construct(t,a||[],Object(r["a"])(e).constructor):t.apply(e,a))}var h=function(e){function t(e){var a;if(Object(i["a"])(this,t),a=d(this,t,[void 0,e]),!a.name&&!a.id)throw c["a"].error("[AnalyticsPromotionObjectException] A Promotion Name or a Promotion ID is required for an Analytics Promotion Object",e),new l["i"]("A Promotion Name or a Promotion ID is required for an Analytics Promotion Object");return a}return Object(o["a"])(t,e),Object(s["a"])(t,[{key:"name",get:function(){return this.result.name},set:function(e){this.result.name=this.setProperty(e)}},{key:"id",get:function(){return this.result.id},set:function(e){this.result.id=this.setProperty(e)}},{key:"creative",get:function(){return this.result.creative},set:function(e){this.result.creative=this.setProperty(e)}},{key:"position",get:function(){return this.result.position},set:function(e){this.result.position=this.setProperty(e)}}])}(u["a"])}}); 2//# sourceMappingURL=bundle.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.