!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=4)}([function(t,e,n){var o=n(1),r=n(2);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var i={insert:"head",singleton:!1},a=(o(r,i),r.locals?r.locals:{});t.exports=a},function(t,e,n){"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function d(t){for(var e=-1,n=0;ni.length){for(var a=0;a1?t.substring(0,2):t||""};function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var A={mode:"tooltip",getEnabled:!0,regex:"(?:,|:|•|●)+",lang:["cn","de","en","es","fr"].indexOf(S())>=0?S():"en",style:{},noLink:!1,linkText:null,queries:null},E=function(t,e,n,o,r){t[e]=j(n[e])===r?n[e]:o[e]},C=function(t,e){var n={};return E(n,"mode",t,e,"string"),E(n,"gtmEnabled",t,e,"boolean"),E(n,"regex",t,e,"string"),E(n,"lang",t,e,"string"),E(n,"style",t,e,"object"),E(n,"noLink",t,e,"boolean"),E(n,"linkText",t,e,"string"),E(n,"queries",t,e,"object"),n},T=function(t,e,n,o,r){for(var a=0;a270?270:Math.ceil(window.outerWidth/2);n&&(e.getBoundingClientRect().left-r<0?n.setAttribute(o,""):n.removeAttribute(o))}},X=function(t,e,n,o){!function(t,e,n,o){z(t,"touchstart",(function(t){U(t,e,n,o)}),!!P&&{passive:!0})}(t,e,V,o),function(t,e,n,o){z(t,"mouseenter",(function(t){B(t,e,n,o)}),!1),z(t,"mouseleave",(function(){F(e,o)}),!1)}(t,e,V,o)},G=function(t,e,n){T(t,e,n,Z,X)},Z=function(t,e,n){var o=e.description,i=e.title,a=e.link_text,d=e.url,l=s("element",n),c=s("wrapper",n),p=s("widget",n),u=s("arrow",n),f=s("header",n),w=s("content",n),h=s("body",n),x=s("footer",n),k=m("div","data-iopheader","",v(i));f&&g(k,"style",f);var _=m("div","data-iopbody","",r(o));h&&g(_,"style",h);var S=m("div","data-iopcontent","",_);if(w&&g(S,"style",w),a&&d&&!n.noLink){a=n.linkText?n.linkText:a;var j=m("a","data-iopfooter","",v(r(a)));x&&g(j,"style",x),j.href=d,j.target="_blank",b(S,j)}var A=y("div");g(A,"data-ioparrow",""),u&&g(A,"style",u);var E=m("div","data-iopwidget","",A);p&&g(E,"style",p),b(E,k),b(E,S);var C=m("div","data-iopwrapper","",E);c&&g(C,"style",c);var T=m("span","data-iopelement",t,C);l&&g(T,"style",l),T.insertBefore(v(t),C);var L=y("div");return b(L,T),L.innerHTML};function $(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0){for(var a=[],d=0;d1&&(a=a.concat(l))}(a=$(new Set(a)))&&a.constructor===Array&&a.length>1&&(a.sort(),function(t,e,n,o){var r=new XMLHttpRequest;r.onreadystatechange=function(){if(4==this.readyState&&200==this.status){var e=JSON.parse(this.responseText).data;e=e.filter((function(t){return t.data})),o(t,e,n)}},r.open("POST","https://inside-our-products.wsf-e-loreal.com/api/Ingredients",!0);var a=JSON.stringify({lang:n.lang,ingredients:e.map((function(t){return i(t)}))});(a.includes("AQUA")||a.includes("PARFUM")||a.includes("CI "))&&(r.setRequestHeader("Ocp-Apim-Subscription-Key","19c8481ad3b944109f64e0b10a6d8437"),r.setRequestHeader("Wsf-Domain",window.location.hostname),r.setRequestHeader("Wsf-Path",window.location.pathname),r.send(a))}(o,a,e,n))}};function nt(t){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ot=function(){return document},rt=function(t,e){var n=lt(t,e);return""!=n&&"string"==typeof n?st(n):{}},it=function(t,e){return t.classList.add(e)},at=function(t,e){return t.classList.remove(e)},dt=function(t,e){return t.querySelector(e)},lt=function(t,e){return t.getAttribute(e)},st=function(t){try{var e=JSON.parse(t);return"object"===nt(e)?e:{}}catch(t){return{}}},ct=function(){return document.querySelector("modiface-youtube")},pt=null,ut=function(t,e){pt&&(pt.disconnect(),pt=null),pt=function(t,e){return new MutationObserver((function(n){n.forEach((function(n){"attributes"==n.type&&"video_id"===n.attributeName&&("0"===n.target.video_id?(ht(t),kt(t)):(n.target.title&>(t,n.target.title),xt(t),e&&vt(t)))}))}))}(t,e.fullSize);var n=ct();!function(t,e){t.observe(e,{attributes:!0})}(pt,n)};function ft(t){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var mt=function(t){return dt(ot(),t)},yt={style:{},gtmPageCategory:"unknown",gtmCategory:"unknown",fullSize:!1},bt=function(t,e,n,o,r){t[e]=ft(n[e])===r?n[e]:o[e]},wt=function(t,e){var n={};return bt(n,"style",t,e,"object"),bt(n,"gtmCategory",t,e,"string"),bt(n,"gtmPageCategory",t,e,"string"),bt(n,"fullSize",t,e,"boolean"),n},gt=function(t,e){var n=dt(t,"._rfp_lsw-dropdown-open");dt(n,"._rfp_lsw-title").textContent=e},vt=function(t,e){!function(t){try{ct().render()}catch(t){}}(),it(t,"rfp_lsw-dropdown-show"),setTimeout((function(){requestAnimationFrame((function(){t&&it(t,"rfp_lsw-dropdown-open")}))}),50)},ht=function(t,e){at(t,"rfp_lsw-dropdown-open"),setTimeout((function(){requestAnimationFrame((function(){t&&at(t,"rfp_lsw-dropdown-show")}))}),300)},xt=function(t){t.style.display=""},kt=function(t){t.style.display="none"},_t=function(t){var e=function(t){var e={ecommerce:"undefined",event:"uaevent"};return e.eventCategory="youtubelivestreaming::modiface::"+t.gtmCategory,e.eventAction=t.gtmPageCategory+"::select::youtubelivestreaming",e.eventLabel="go to livestream",e}(t);!function(t){var e=window.dataLayer;e&&e.length&&e.push(t)}(e),St(e)},St=function(t){var e=new CustomEvent("lswTracking",{detail:t});document.dispatchEvent(e)},jt=!1,At=[];try{var Et=Object.defineProperty({},"passive",{get:function(){jt=!0}});window.addEventListener("testPassive",null,Et),window.removeEventListener("testPassive",null,Et)}catch(t){}var Ct=function(t,e,n){var o=function(t){Tt(t,e,n)},r=!!jt&&{passive:!0};!function(t,e,n,o){t.addEventListener(e,n,o)}(t,"click",o,r),At.push({element:t,type:"click",eventCallback:o,capture:r})},Tt=function(t,e,n){e(t,n),n&&_t(n)},Lt=function(t,e,n,o){var r=dt(t,e);Ct(r,(function(){o(t)}),n)},Ot=function(t,e){t=mt("._rfp_lsw-widget");At.forEach((function(t,e){t.element&&t.element.removeEventListener(t.type,t.eventCallback,t.capture)})),function(t,e,n){Lt(t,e,n,vt)}(t,"._rfp_lsw-link",e),function(t,e,n){Lt(t,e,n,ht)}(t,"._rfp_lsw-dropdown-close-button",e),ut(t,e)},Mt=function t(e,n,o,r){r<121&&(e(n,o),r++,setTimeout(t.bind(this,e,n,o,r),500))};var qt,It;n(0);window.wsfVersionWidget="v0.1.25",function(){try{var t=mt("._rfp_lsw-widget");if(t){new URLSearchParams(window.location.search).get("streamwdgopened");var e=wt((o=ot().getElementById("data-iopscript"))?rt(o,"data-lswscript"):{},yt),n=rt(t,"data-rfplsw");(function(t,e){if(e.style&&e){if(e.style.dropshadow){var n=dt(t,"._rfp_lsw-dropdown-dropshadow"),o=e.style.dropshadow;n.style=o,n.style.display="block"}if(e.style.widget&&(t.style=e.style.widget,t.style.display="none"),e.style.content)dt(t,"._rfp_lsw-content").style=e.style.content;if(e.style.dropdown){var r=(d="._rfp_lsw-dropdown",t.querySelectorAll(d)),i="",a=e.style.dropdown;if(r.forEach((function(t,e){t.style=a,i=t.style.color})),""!=i)dt(t,"._rfp_lsw-dropdown-close-button").style.stroke=i}}var d})(t,n=wt(n,e)),Mt(Ot,t,n,0)}}catch(t){}var o}(),qt=function(){var t,e=d().querySelectorAll("[data-ioplist]"),n=C((t=d().getElementById("data-iopscript"))?c(t,"data-iopscript"):{},A);e.forEach((function(t){_(tt,t,n)}))},"complete"===(It=d().readyState)||"interactive"===It?setTimeout(qt,1):d().addEventListener("DOMContentLoaded",qt)}]);