PageSourceSearch

https://www.covergirl.com/_next/static/chunks/571e3e4f8514d27a.js

js covergirl.com collected 2026-10-01 10:18:51 UTC 33,526 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38131,e=>{"use strict";var t=e.i(91398),a=e.i(29460),n=e.i(95485),o=e.i(24608),i=e.i(91788),r=e.i(30647),s=e.i(15213),c=e.i(70604),l=e.i(30737);e.s(["Vto",0,({closeCallback:e,vtoType:v,selectedProductSlug:d,mikMakConfig:m,...u})=>{let[p,h]=(0,i.useState)(!0),[g,y]=(0,i.useState)("text-black"),{v:_}=(0,s.useResourcesContext)();return(0,t.jsx)(n.Transition,{show:p,as:i.Fragment,afterLeave:()=>e(!1),children:(0,t.jsxs)(a.Dialog,{as:"div",className:"relative z-20",onClose:()=>h(!1),children:[(0,t.jsx)(n.TransitionChild,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 transition-opacity"})}),(0,t.jsx)("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:(0,t.jsx)("div",{className:"flex min-h-full items-center justify-center p-0 text-center",children:(0,t.jsx)(n.TransitionChild,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,t.jsx)(a.DialogPanel,{className:"relative overflow-hidden bg-white text-left shadow-xl transition-all sm:w-full sm:max-w-150",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"absolute right-0 top-0 block pr-4 pt-4",children:(0,t.jsxs)("button",{type:"button",className:`${g} hover:text-gray-500`,onClick:()=>{h(!1)},"aria-label":_("navigation.closeButton"),children:[(0,t.jsx)("span",{className:"sr-only",children:_("navigation.closeButton")}),(0,t.jsx)(o.XMarkIcon,{className:"h-6 w-6","aria-hidden":"true"})]})}),v===r.VtoType.shadeFinder&&(0,t.jsx)(l.ShadeFinder,{...u,setIsOpened:h,setCloseButtonColor:y,vtoType:v,mikMakConfig:m}),v===r.VtoType.makeupFinder&&(0,t.jsx)(c.MakeupFinder,{...u,setIsOpened:h,vtoType:v,selectedProductSlug:d,mikMakConfig:m})]})})})})})]})})}])},30737,e=>{"use strict";var t=e.i(91398),a=e.i(91788),n=e.i(81827),o=e.i(811),i=e.i(20016),r=e.i(13200),s=e.i(19403);e.s(["ShadeFinder",0,({modal_backgroundConnection:e,perfect_module_language:c,shade_finder_vto_source_url:l,shade_productsConnection:v,excluded_shade_products_shadesConnection:d,privacy_policy:m,tips:u,shade_finder_quizConnection:p,tabs:h,product_select:g,filter:y,cart:_,email_sharing:f,vtoType:E,setIsOpened:b,setCloseButtonColor:V,mikMakConfig:x})=>{let[w,S]=(0,a.useState)(n.VtoStep.Policy),[N,C]=(0,a.useState)(""),[P,G]=(0,a.useState)(""),k=(0,a.useRef)(n.VtoStep.Policy);return(0,a.useEffect)(()=>{k.current!==w&&(w===n.VtoStep.Policy?G("Privacy policy step opened."):w===n.VtoStep.Quiz?G("Shade finder quiz step opened."):w===n.VtoStep.Guide?G("Virtual Try-On tips step opened."):w===n.VtoStep.Vto&&G("Virtual Try-On step opened."),k.current=w)},[w]),(0,t.jsxs)(t.Fragment,{children:[w===n.VtoStep.Policy&&(0,t.jsx)(o.PrivacyPolicy,{privacy_policy:m,onReject:b,setCurrentVtoStep:S,vtoType:E}),w===n.VtoStep.Quiz&&(0,t.jsx)(i.ShadeFinderQuiz,{shade_finder_quizConnection:p,setCurrentVtoStep:S,setCloseButtonColor:V,setProductRecommendation:C,vtoType:E}),w===n.VtoStep.Guide&&(0,t.jsx)(r.Tips,{tips:u,setCurrentVtoStep:S,vtoType:E}),w===n.VtoStep.Vto&&(0,t.jsx)(s.VtoWidget,{modal_backgroundConnection:e,perfect_module_language:c,shade_finder_vto_source_url:l,shade_productsConnection:v,excluded_shade_products_shadesConnection:d,productRecommendation:N,tabs:h,product_select:g,filter:y,cart:_,email_sharing:f,onClose:b,vtoType:E,shop_now_new_style:!1,compare_view:!1,mikMakConfig:x}),(0,t.jsx)("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:P})]})}])},13200,e=>{"use strict";var t=e.i(91398),a=e.i(91788),n=e.i(71195),o=e.i(15213),i=e.i(38768),r=e.i(59954);e.i(85);var s=e.i(61345),c=e.i(61246),l=e.i(81827),v=e.i(36936);e.s(["Tips",0,({tips:e,setCurrentVtoStep:d,vtoType:m})=>{let{v:u}=(0,o.useResourcesContext)(),p=(0,a.useRef)(null),h="vto-tips-title";return((0,a.useEffect)(()=>{(0,i.pageView)({pageName:r.AdobePageName.ForBestResult,vtoType:m}),(0,c.pageViewGtm)({pageName:s.GtmPageName.ForBestResults,vtoType:m})},[]),(0,a.useEffect)(()=>{let e=p.current?.querySelector("button");e?.focus()},[]),(0,a.useEffect)(()=>{let e=p.current;if(!e)return;let t=t=>{if("Tab"!==t.key)return;let a=Array.from(e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not
1([tabindex="-1"])')).filter(e=>!e.hasAttribute("disabled"));if(!a.length)return;let n=a[0],o=a[a.length-1],i=document.activeElement;if(!(i&&e.contains(i))){t.preventDefault(),(t.shiftKey?o:n).focus();return}t.shiftKey&&i===n?(t.preventDefault(),o.focus()):t.shiftKey||i!==o||(t.preventDefault(),n.focus())};return document.addEventListener("keydown",t,!0),()=>{document.removeEventListener("keydown",t,!0)}},[]),e)?(0,t.jsx)("div",{className:"flex justify-center ",children:(0,t.jsxs)("div",{ref:p,role:"dialog","aria-modal":"true","aria-labelledby":h,className:"m-3 px-5 py-10 sm:mx-16 sm:my-10 md:max-w-[285px] md:text-center",children:[e.title&&(0,t.jsx)("h1",{id:h,className:"mb-10 text-center text-2xl uppercase md:text-3xl",children:e.title}),e.instructions&&e.instructions.length>0&&(0,t.jsx)("ul",{className:"m-0 list-none p-0",role:"list",children:e.instructions.map((e,a)=>(0,t.jsxs)("li",{className:"mt-6 flex list-none items-center md:block",children:[e?.imageConnection?.edges?.[0]?.node?.src&&(0,t.jsx)("div",{className:"min-w-[70px]",children:(0,t.jsx)(n.CsImage,{...e?.imageConnection?.edges?.[0]?.node,width:50,height:50,className:"md:mx-auto md:mb-3"})}),e?.text&&(0,t.jsx)("p",{children:e.text})]},a))}),(0,t.jsx)("div",{className:"mt-8 md:mt-16",children:(0,t.jsx)(v.VtoButton,{onClick:()=>{d(l.VtoStep.Vto)},children:u("navigation.continueButton")})})]})}):null}])},16929,e=>{"use strict";e.s(["findProductRecommendation",0,({userAnswers:e,quizResultsMapping:t})=>{let a=t.edges.find(t=>e.every(e=>t.node.paths.includes(e)));return a?.node?.productConnection?.edges?.[0]?.node?.system?.uid||""}])},84373,e=>{"use strict";function t(e){return{edges:e?.edges?.map(e=>{let t=e?.node;return{node:{title:t?.title||null,paths:t?.paths?.flatMap(e=>e?.questions?.[0]?.answersConnection?.edges?.map(e=>e?.node?.system?.uid))||[],productConnection:t?.productConnection||null}}})||[]}}e.s(["simplifyResultPath",()=>t])},20016,e=>{"use strict";var t=e.i(91398),a=e.i(91788),n=e.i(6780),o=e.i(69116),i=e.i(81827),r=e.i(16929),s=e.i(84373);e.s(["ShadeFinderQuiz",0,({shade_finder_quizConnection:e,setCurrentVtoStep:c,setCloseButtonColor:l,setProductRecommendation:v,vtoType:d})=>{let[m,u]=(0,a.useState)(0),p=e?.edges?.[0]?.node,h=p?.questions?.length,[g,y]=(0,a.useState)([]),_={backgroundImage:`url(${p?.background_imageConnection?.edges?.[0]?.node?.src})`};return((0,a.useEffect)(()=>{if(m===h&&p?.resultsConnection){let e=(0,s.simplifyResultPath)(p.resultsConnection);v((0,r.findProductRecommendation)({userAnswers:g,quizResultsMapping:e})),c(i.VtoStep.Guide),l("text-black")}else l("text-white")},[m]),p)?(0,t.jsxs)("div",{className:"min-h-[100vh] bg-cover p-5 text-center text-white sm:min-h-[750px] sm:px-16",style:_,children:[(0,t.jsx)(n.Logotype,{className:"mx-auto mb-12 h-8 w-auto sm:mb-24",isInverse:!0}),h&&m<h&&(0,t.jsx)(o.ShadeFinderQuizQuestion,{answers:p?.questions&&p?.questions?.[m]?.answers,prompt:p?.questions&&p?.questions?.[m]?.prompt,quizStep:m,setQuizStep:u,userAnswers:g,setUserAnswers:y,vtoType:d}),(0,t.jsxs)("span",{className:"center absolute inset-x-2 bottom-4",children:[m+1,"/",h]})]}):null}])},6780,e=>{"use strict";var t=e.i(91398);e.s(["Logotype",0,({isInverse:e,className:a=""})=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 521.89 109.2",xmlSpace:"preserve",className:`block ${a}`,"data-testid":"logotype",children:(0,t.jsx)("path",{className:e?"fill-white":"fill-black",d:"M372.89 36.87c-3.21 1.94-6.43 3.89-9.73 5.88-4.04-5.27-9.31-8.32-15.95-8.73-4.82-.3-9.27.98-13.23 3.75-7.96 5.57-11.09 15.64-7.71 24.63 3.46 9.22 12.48 14.64 22.52 13.54 7.96-.87 16.31-8.09 17.38-15.15h-22.46V49.37h34.23c2.87 12.63-3.69 30.06-20.83 36.28-16.64 6.04-34.92-2.28-41.39-18.65-6.45-16.33 1.19-34.84 17.41-41.82 15.69-6.77 32.46.03 39.76 11.69zM130.55 55.02c.02 17.85-14.58 32.55-32.31 32.56-18.17.02-32.86-14.43-32.87-32.33-.01-18 14.43-32.52 32.13-32.75 17.22-.22 32.89 13.46 33.05 32.52zm-53.69.07c.03 11.55 9.52 21.04 21.06 21.05 11.6.01 21.12-9.49 21.14-21.09.02-11.73-9.52-21.09-21.46-21.07-11.32.04-20.77 9.64-20.74 21.11zM421.33 23.44c.41-.02.78-.05 1.15-.05 8.17 0 16.35-.03 24.52 0 10.56.04 19.29 9.69 18.34 20.19-.72 7.99-5.82 14.27-13.48 16.62-.21.06-.42.15-.75.27 5.97 8.74 11.89 17.41 17.98 26.32h-1.28c-3.65 0-7.3-.02-10.95.02-.76.01-1.23-.23-1.67-.87-5.46-8-10.96-15.97-16.41-23.97-.6-.88-1.22-1.3-2.31-1.2-1.16.11-2.34.03-3.65.03v25.9h-11.49V23.44zm11.5 25.81c5 0 9.9.18 14.78-.06 3.55-.17 6.06-3.43 5.99-7.11-.07-3.76-2.78-7.04-6.29-7.17-4.74-.17-9.48-.06-14.23-.07-.06 0-.12.07-.25.15v14.26zM306.05 86.79h-3.9c-2.78 0-
15.55-.02-8.33.02-.76.01-1.23-.22-1.67-.87-5.41-7.94-10.88-15.84-16.27-23.8-.71-1.05-1.44-1.49-2.68-1.37-1.09.1-2.2.02-3.4.02V86.7h-11.4V23.45c.41-.02.85-.06 1.28-.06 7.95 0 15.89-.01 23.84 0 9.17 0 17.08 6.68 18.59 15.68 1.53 9.17-3.8 17.98-12.67 20.93-.39.13-.78.26-1.37.46 5.97 8.74 11.88 17.4 17.98 26.33zM269.8 49.3c4.75 0 9.38.07 14.01-.02 3.83-.07 6.62-2.99 6.71-6.79.09-4.09-2.58-7.43-6.42-7.58-4.66-.19-9.33-.07-14-.08-.1 0-.19.09-.3.14V49.3zM213.27 49.3h27.38v11.42h-27.38v14.65h28.15v11.34h-39.63V23.45h39.49v11.27h-28.01V49.3zM49.75 42.74c-8.47-11.17-23.43-11.17-31.94-2.71-8.53 8.47-8.4 22.19.24 30.3 8.87 8.33 23.48 7.93 31.73-3.05 3.23 1.95 6.47 3.91 9.7 5.86-5.54 9.12-18.79 17-33.99 13.69C10.88 83.64.23 70.37 0 55.67-.24 40.5 10.16 26.68 25.39 23.31c15.35-3.4 28.44 4.48 34.04 13.57-3.2 1.94-6.41 3.89-9.68 5.86zM162.48 88.42c-10.16-21.76-20.22-43.29-30.35-64.98.51-.02.91-.06 1.31-.06 3.38 0 6.77.03 10.15-.02.89-.01 1.32.25 1.7 1.09 5.56 12.39 11.16 24.76 16.75 37.13.12.26.25.52.46.97.74-1.6 1.4-3.04 2.05-4.48 5.07-11.24 10.14-22.47 15.19-33.71.33-.73.72-1 1.53-.98 3.46.05 6.92.02 10.38.02.33 0 .67.03 1.2.06-10.14 21.66-20.2 43.21-30.37 64.96zM481.97 23.44h11.39v51.85h28.53v11.42h-39.92V23.44zM404.28 86.72h-11.29V23.49h11.29v63.23zM343.92 109.2V98.58h6v1.37h-4.53v3.39h4.43v1.37h-4.43v3.13h4.81v1.37h-6.28zM359.66 109.2l-1.29-3.43h-3.43l-1.29 3.43h-1.56l4.12-10.62h.94l4.15 10.62h-1.64zm-2.93-7.77c-.04-.12-.09-.29-.09-.29s-.03.17-.07.28l-1.12 2.98h2.4l-1.12-2.97zM366.09 109.37c-1.09 0-2.16-.28-3.15-1.08l.84-1.12c.57.51 1.5.79 2.24.79 1.09 0 1.84-.48 1.84-1.48 0-.9-.84-1.4-1.79-1.88-1.53-.77-3.09-1.44-3.09-3.46 0-1.57 1.18-2.73 3.1-2.73 1.07 0 2.06.32 2.9.9l-.79 1.19c-.66-.48-1.22-.67-2.12-.67-.84 0-1.54.42-1.54 1.22 0 1.15 1.03 1.54 2.35 2.2 1.22.6 2.51 1.37 2.51 3.14-.01 1.91-1.51 2.98-3.3 2.98zM375.85 104.27v4.93h-1.47v-4.93l-3.69-5.69h1.71l2.59 3.97c.06.09.16.31.16.31s.1-.2.18-.32l2.59-3.96h1.68l-3.75 5.69zM387.94 109.2h-3.22V98.58h2.84c1.82 0 3.12 1.11 3.12 2.76 0 1.22-.54 2.01-1.24 2.44.84.25 1.81 1.22 1.81 2.53 0 1.33-.94 2.89-3.31 2.89zm-.63-9.25h-1.12v3.36h.99c1.6 0 1.97-.96 1.97-1.85 0-.94-.63-1.51-1.84-1.51zm.62 4.72h-1.74v3.16h1.59c1.32 0 1.94-.64 1.94-1.63 0-.92-.7-1.53-1.79-1.53zM399.54 109.2l-4.34-4.96v4.96h-1.47V98.58h3.47c2 0 3.33 1.41 3.33 3.13 0 1.7-1.46 3.04-3.06 3.04l3.96 4.45h-1.89zm-2.61-9.25h-1.74v3.65h1.71c1.32 0 2.09-.81 2.09-1.95 0-.73-.66-1.7-2.06-1.7zM403.46 109.2V98.58h6v1.37h-4.53v3.39h4.43v1.37h-4.43v3.13h4.81v1.37h-6.28zM412.36 109.2V98.58h6v1.37h-4.53v3.39h4.43v1.37h-4.43v3.13h4.81v1.37h-6.28zM423.09 107.57c-.07.12-.18.22-.18.22s.18-.01.31-.01h5.38v1.42h-8.24l5.62-8.93c.09-.13.21-.28.21-.28s-.16.01-.31.01h-4.59v-1.42h7.49l-5.69 8.99zM435.47 104.27v4.93H434v-4.93l-3.69-5.69h1.71l2.59 3.97c.06.09.16.31.16.31s.1-.2.18-.32l2.59-3.96h1.68l-3.75 5.69zM447.56 109.2h-3.22V98.58h2.84c1.82 0 3.12 1.11 3.12 2.76 0 1.22-.54 2.01-1.24 2.44.84.25 1.81 1.22 1.81 2.53 0 1.33-.94 2.89-3.31 2.89zm-.63-9.25h-1.12v3.36h.99c1.6 0 1.97-.96 1.97-1.85 0-.94-.63-1.51-1.84-1.51zm.62 4.72h-1.74v3.16h1.59c1.32 0 1.94-.64 1.94-1.63 0-.92-.7-1.53-1.79-1.53zM453.35 109.2V98.58h6v1.37h-4.53v3.39h4.43v1.37h-4.43v3.13h4.81v1.37h-6.28zM469.09 109.2l-1.29-3.43h-3.43l-1.29 3.43h-1.56l4.12-10.62h.94l4.15 10.62h-1.64zm-2.93-7.77c-.04-.12-.09-.29-.09-.29s-.03.17-.07.28l-1.12 2.98h2.4l-1.12-2.97zM476.71 109.37c-2.47 0-4.19-1.57-4.19-4.19v-6.6H474v6.6c0 2.05 1.29 2.82 2.71 2.82 1.4 0 2.75-.79 2.75-2.82v-6.6h1.46v6.6c-.01 2.53-1.82 4.19-4.21 4.19zM486.93 99.95v9.25h-1.47v-9.25h-2.19v-1.37h5.94v1.37h-2.28zM491.64 109.2V98.58h1.47v10.62h-1.47zM497.55 99.95v3.39h3.6v1.37h-3.6v4.49h-1.47V98.58h5.29v1.37h-3.82zM508.08 109.37c-2.47 0-4.19-1.57-4.19-4.19v-6.6h1.49v6.6c0 2.05 1.29 2.82 2.71 2.82 1.4 0 2.75-.79 2.75-2.82v-6.6h1.46v6.6c-.01 2.53-1.82 4.19-4.22 4.19zM515.19 109.2V98.58h1.47v9.25h4.07v1.37h-5.54z"})})])},563,e=>{"use strict";var t=e.i(59954),a=e.i(18090);e.s(["quizQuestionClick",0,({questionIndex:e,answer:n,vtoType:o})=>{let i=[{event:t.AdobeEventName.BasicEvent,event_category:"foundation coverage",event_action:"select foundation coverage",event_label:n,page_name:"foundation coverage"},{event:t.AdobeEventName.BasicEvent,event_category:"preferred finish",event_action:"select preferred finish",event_label:n,page_name:"preferred finish"},{event:t.AdobeEventName.BasicEvent,event_category:"additional benefit",event_action:"select additional benefit",event_label:n,page_name:"additional benefit"}][e];void 0!==i&&(0,a.pushEvent)({event:i,vtoType:o})}])},43686,e=>{"use strict";var t=e.i(91398),a=e.i(15213),n=e.i(38768),o=e.i(563),i=e.i(59954);e.i(85);var r=e.i(61345),s=e.i(61246),c=e.i(99260);e.s(["ShadeFinderQuizAnswer",0,({answers:e,quizStep:l,setQuizStep:v,userAnswers:d,setUserAnswers:m,vtoType:u})=>{let{v:p}=(0,a.useResourcesContext)(),h=e?.answerConnection?.edges?.map(e=>
1e?.node).filter(Boolean)||[];return(0,t.jsxs)(t.Fragment,{children:[h.map(e=>(0,t.jsx)("div",{className:"mb-7",children:(0,t.jsx)("button",{type:"button",className:"w-[250px] border border-white px-2 py-3 text-xl uppercase tracking-wider text-white sm:w-[300px] sm:text-2xl lg:hover:bg-white lg:hover:text-black",onClick:()=>{v(l+1),m([...d,e?.system?.uid||""]);let t=[i.AdobePageName.FoundationCoverage,i.AdobePageName.PrefferedFinish,i.AdobePageName.AdditionalBenefit],a=[r.GtmPageName.FoundationCoverage,r.GtmPageName.PreferredFinish,r.GtmPageName.AdditionalBenefit],p=t[l],h=a[l];void 0!==p&&(0,n.pageView)({pageName:p,vtoType:u}),void 0!==h&&(0,s.pageViewGtm)({pageName:h,vtoType:u}),"string"==typeof e.value&&((0,o.quizQuestionClick)({questionIndex:l,answer:e.value,vtoType:u}),(0,c.quizQuestionClickGtm)({questionIndex:l,answer:e.value,vtoType:u}))},children:e?.title||""})},e?.system?.uid)),l>0&&(0,t.jsx)("div",{className:"mb-6 mt-24",children:(0,t.jsx)("button",{type:"button",className:"absolute inset-x-0 bottom-16 m-auto w-[250px] border border-white bg-white px-2 py-3 text-sm uppercase tracking-wider text-[#1F466D] sm:w-[300px] sm:text-base",onClick:()=>{m([...d.slice(0,-1)]),v(l-1)},children:p("navigation.backButton")})})]})}])},69116,e=>{"use strict";var t=e.i(91398),a=e.i(43686);e.s(["ShadeFinderQuizQuestion",0,({prompt:e,answers:n,quizStep:o,setQuizStep:i,userAnswers:r,setUserAnswers:s,vtoType:c})=>n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{className:"mb-14 text-3xl font-bold uppercase",children:e}),(0,t.jsx)(a.ShadeFinderQuizAnswer,{answers:n,quizStep:o,setQuizStep:i,userAnswers:r,setUserAnswers:s,vtoType:c})]}):null])},372,e=>{"use strict";var t=e.i(59954),a=e.i(18090);e.s(["privacyPolicyClick",0,({vtoType:e})=>{let n={event:t.AdobeEventName.BasicEvent,event_category:"privacy policy",event_action:"privacy policy agree",event_label:"privacy policy agree",page_name:"privacy policy"};(0,a.pushEvent)({event:n,vtoType:e})}])},91415,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.isBrowser=void 0,a.isBrowser=function(){return"u">typeof window&&void 0!==window.document}},22209,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.storage=a.MemoryStorageProxy=a.LocalStorageProxy=a.localStorageAvailable=void 0;var n=e.r(91415);function o(){try{var e="@rehooks/local-storage:"+new Date().toISOString();return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return n.isBrowser()&&e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&localStorage&&0!==localStorage.length}}a.localStorageAvailable=o;var i=function(){function e(){}return e.prototype.getItem=function(e){return localStorage.getItem(e)},e.prototype.setItem=function(e,t){localStorage.setItem(e,t)},e.prototype.removeItem=function(e){localStorage.removeItem(e)},e}();a.LocalStorageProxy=i;var r=function(){function e(){this._memoryStorage=new Map}return e.prototype.getItem=function(e){var t;return null!=(t=this._memoryStorage.get(e))?t:null},e.prototype.setItem=function(e,t){this._memoryStorage.set(e,t)},e.prototype.removeItem=function(e){this._memoryStorage.delete(e)},e}();a.MemoryStorageProxy=r,a.storage=o()?new i:new r},5772,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.deleteFromStorage=a.writeStorage=a.isTypeOfLocalStorageChanged=a.LOCAL_STORAGE_CHANGE_EVENT_NAME=void 0;var n=e.r(22209),o=e.r(91415);a.LOCAL_STORAGE_CHANGE_EVENT_NAME="onLocalStorageChange",o.isBrowser()&&"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e,t){void 0===t&&(t={bubbles:!1,cancelable:!1});var a,n,o=document.createEvent("CustomEvent");return o.initCustomEvent(e,null!=(a=null==t?void 0:t.bubbles)&&a,null!=(n=null==t?void 0:t.cancelable)&&n,null==t?void 0:t.detail),o}),a.isTypeOfLocalStorageChanged=function(e){return!!e&&e.type===a.LOCAL_STORAGE_CHANGE_EVENT_NAME},a.writeStorage=function(e,t){if(o.isBrowser())try{n.storage.setItem(e,"object"==typeof t?JSON.stringify(t):""+t),window.dispatchEvent(new CustomEvent(a.LOCAL_STORAGE_CHANGE_EVENT_NAME,{detail:{key:e,value:t}}))}catch(e){if(e instanceof TypeError&&e.message.includes("circular structure"))throw TypeError("The object that was given to the writeStorage function has circular references.\nFor more information, check here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Cyclic_object_value");throw e}},a.deleteFromStorage=function(e){o.isBrowser()&&(n.storage.removeItem(e),window.dispatchEvent(new CustomEvent(a.LOCAL_STORAGE_CHANGE_EVENT_NAME,{detail:{key:e,value:null}})))}},9843,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.useLocalStorage=void 0;var n=e.r(5772),o=e.r(91415),i=e.r(22209),r=e.r(91788);function s(e){try{return JSON.parse(e)}catch(t){return e}}a.useLocalStorage=function(e,t){void 0===t&&(t=null);var a=r.useState(null===i.storage.getItem(e)?t:s(i.storage.getItem(e))),c=a[0],l=a[1],v=r.useCallback(function(t){n.isTypeOfLocalStorageChanged(t)?t.detail.ke
1y===e&&l(t.detail.value):t.key===e&&l(null===t.newValue?null:s(t.newValue))},[l,e]);r.useEffect(function(){if(o.isBrowser()){var a=function(e){v(e)};return window.addEventListener(n.LOCAL_STORAGE_CHANGE_EVENT_NAME,a),window.addEventListener("storage",a),null===i.storage.getItem(e)&&null!==t&&n.writeStorage(e,t),function(){window.removeEventListener(n.LOCAL_STORAGE_CHANGE_EVENT_NAME,a),window.removeEventListener("storage",a)}}},[e,t,v]);var d=r.useCallback(function(t){return t instanceof Function?n.writeStorage(e,t(c)):n.writeStorage(e,t)},[e]),m=r.useCallback(function(){return n.deleteFromStorage(e)},[e]);return[null!=c?c:t,d,m]}},53161,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.useLocalStorage=void 0;var n=e.r(9843);Object.defineProperty(a,"useLocalStorage",{enumerable:!0,get:function(){return n.useLocalStorage}});var o=e.r(5772);Object.defineProperty(a,"writeStorage",{enumerable:!0,get:function(){return o.writeStorage}}),Object.defineProperty(a,"deleteFromStorage",{enumerable:!0,get:function(){return o.deleteFromStorage}}),a.default=n.useLocalStorage},36936,e=>{"use strict";var t=e.i(91398),a=e.i(78392);e.s(["VtoButton",0,({underline:e=!1,children:n,customClassName:o,"data-index":i,...r})=>(0,t.jsx)("button",{...r,className:(0,a.twJoin)("font-bold uppercase",o,e?"text-blue underline underline-offset-2":"w-full border-0 bg-blue p-4 text-xs tracking-wider text-white disabled:bg-slate-300 md:text-sm"),children:n})])},30647,e=>{"use strict";var t,a=((t={}).shadeFinder="shade-finder",t.makeupFinder="makeup-finder",t);e.s(["VtoType",()=>a])},18090,e=>{"use strict";var t=e.i(30647);let a={[t.VtoType.makeupFinder]:"makeup",[t.VtoType.shadeFinder]:"shade finder"};e.s(["VTO_VERSION",0,"1.0","pushEvent",0,({event:e,vtoType:t})=>{window&&Array.isArray(window.dataLayer)&&window.dataLayer.push({...e,app_version:`${a[t]} - 1.0`})}])},59954,e=>{"use strict";var t,a,n=((t={}).PageView="page_view",t.BasicEvent="basic_event",t.ErrorEvent="error",t.SelectItem="select_item",t.ViewItemList="view_item_list",t.VtoEventClosed="vto-event-closed",t.VtoGenericEventCameraOpen="vto-generic-event-camera-open",t.VtoGenericEventCameraClosed="vto-generic-event-camera-closed",t.VtoErrorCameraFailed="vto-error-camera-failed",t.VtoProductEventSliderCompare="vto-product-event-slider-compare",t.VtoProductEventSliderCompareClosed="vto-product-event-slider-compare-closed",t.VtoLoading="loading",t.VtoProductEventReset="reset",t.VtoProductEventSplit="compare",t.VtoShare="vto-share",t.VtoShareEmail="vto-share-email",t.VtoShareEmailSend="vto-share-email-send",t.VtoShareEmailSent="vto-share-email-sent",t),o=((a={}).TryOn="try on",a.ForBestResult="for best results",a.PrivacyPolicy="privacy policy",a.CamerAccess="camera access",a.PerfectFoundation="perfect foundation",a.PrefferedFinish="preferred finish",a.FoundationCoverage="foundation coverage",a.AdditionalBenefit="additional benefit",a.Tooltips="tooltips",a);e.s(["AdobeEventName",()=>n,"AdobePageName",()=>o])},99260,e=>{"use strict";var t=e.i(61345),a=e.i(24508);e.s(["quizQuestionClickGtm",0,({questionIndex:e,answer:n,vtoType:o})=>{let i=[{event:t.GtmEventName.WidgetBasicEvent,event_type:t.GtmEventType.VtoAction,event_category:"foundation coverage",event_action:"select foundation coverage",event_label:n,event_detail:"select foundation coverage",page_name:t.GtmPageName.FoundationCoverage},{event:t.GtmEventName.WidgetBasicEvent,event_type:t.GtmEventType.VtoAction,event_category:"preferred finish",event_action:"select preferred finish",event_label:n,event_detail:"select preferred finish",page_name:t.GtmPageName.PreferredFinish},{event:t.GtmEventName.WidgetBasicEvent,event_type:t.GtmEventType.VtoAction,event_category:"additional benefit",event_action:"select additional benefit",event_label:n,event_detail:"select additional benefit",page_name:t.GtmPageName.AdditionalBenefit}][e];void 0!==i&&(0,a.pushGtmEvent)({event:i,vtoType:o})}])},95284,e=>{"use strict";var t=e.i(61345),a=e.i(24508);e.s(["dispatchGtmEvent",0,({vtoType:e})=>({eventName:n})=>{let o=(({eventName:e})=>{let a={event:t.GtmEventName.WidgetBasicEvent,event_type:t.GtmEventType.VtoAction,page_name:t.GtmPageName.TryOn};switch(e){case t.GtmVtoEventName.VtoEventClosed:return{...a,event_category:"try on",event_action:"exit confirmed",event_label:"exit confirmed",event_detail:"exit confirmed"};case t.GtmVtoEventName.VtoGenericEventCameraOpen:return{...a,event_category:"camera access",event_action:"camera access allow",event_label:"camera access allow",event_detail:"camera access allow",page_name:t.GtmPageName.CameraAccess};case t.GtmVtoEventName.VtoGenericEventCameraClosed:return{...a,event_category:"camera access",event_action:"camera access closed",event_label:"camera access closed",event_detail:"camera access closed",page_name:t.GtmPageName.CameraAccess};case t.GtmVtoEventName.VtoErrorCameraFailed:return{...a,event:t.GtmEventName.Error,event_category:"camera access",event_action:"camera access blocked",event_label:"camera access blocked",event_detail:"camera access blocked",page_name:t.GtmPageName.CameraAccess};case t.GtmVtoEventName.VtoLoading:return{...a,event:t.GtmEventName.PageView,event_type:t.GtmEventType.PageImpression,event_category:"try on",event_action:"loading",event_label:"loading",event_detail:"loading",page_name:t.GtmPageName.Loading};case t.GtmVtoEventName.VtoProductEventSliderCompare:return{...a,event_category:"try on",event_action:"tooltip clicked",event_label:"compare",event_detail:"compare"};case t.GtmVtoEventName.VtoProductEventSliderCompareClosed:return{...a,event_category:"try on",event_action:"tooltip clicked",event_label:"compare disabled",event_detail:"compare disabled"};case t.GtmVtoEventName.VtoProductEventReset:return{...a,event_category:"try on",event_action:"tooltip clicked",event_label:"reset",event_detail:"reset"};case t.GtmVtoEventName.VtoProductEventSplit:return{...a,event_category:"try on",event_action:"tooltip applied",event_label:"split screen",event_detail:"split screen"};case t.GtmVtoEventName.VtoShare:return{...a,event_category:"try on",event_action:"vto share open",event_label:"vto share open",event_detail:"vto share open"};case t.GtmVtoEventName.VtoShareEmail:return{...a,event_category:"try on",event_action:"vto share email button",event_label:"vto share email button",event_detail:"vto share email button"};case t.GtmVtoEventName.VtoShareEmailSend:return{...a,event_category:"try on",event_action:"vto share email send button",event_label:"vto share email send button",event_detail:"vto share email send button"};case t.GtmVtoEventName.VtoShareEmailSent:return{...a,event_category:"try on",event_action:"vto share email sent",event_label:"vto share email sent",event_detail:"vto share email sent"};default:return null}})({eventName:n,vtoType:e});o&&(0,a.pushGtmEvent)({event:o,vtoType:e})}])},16947,e=>{"use strict";var t=e.i(61345),a=e.i(24508);e.s(["productInfoClickGtm",0,({lookName:e,vtoType:n})=>{let o={event:t.GtmEventName.WidgetBasicEvent,event_type:t.GtmEventType.VtoAction,event_category:"try on",event_action:"product info clicked",event_label:e.toLowerCase(),event_detail:"product info clicked",page_name:t.GtmPageName.TryOn};(0,a.pushGtmEvent)({event:o,vtoType:n})}])},61246,e=>{"use strict";var t=e.i(61345),a=e.i(24508);e.s(["pageViewGtm",0,({pageName:e,vtoType:n})=>{(0,a.pushGtmEvent)({event:{event:t.GtmEventName.PageView,event_action:"page_view",event_detail:"camera access",event_type:t.GtmEventType.PageImpression,page_name:e},vtoType:n})}])},89239,e=>{"use strict";var t=e.i(61345),a=e.i(24508);e.s(["shadeSelectedGtm",0,({shadeName:e,vtoType:n})=>{let o={event:t.GtmEventName.WidgetBasicEvent,event_type:t.GtmEventType.VtoAction,event_category:"try on",event_action:"shade selected",event_label:e.toLowerCase(),event_detail:"shade selected",page_name:t.GtmPageName.TryOn};(0,a.pushGtmEvent)({event:o,vtoType:n})}])},3907,e=>{"use strict";var t=e.i(61345),a=e.i(24508);e.s(["privacyPolicyClickGtm",0,({vtoType:e})=>{let n={event:t.GtmEventName.WidgetBasicEvent,event_type:t.GtmEventType.VtoAction,event_category:"privacy policy",event_action:"privacy policy agree",event_label:"privacy policy agree",event_detail:"privacy policy agree",page_name:t.GtmPageName.PrivacyPolicy};(0,a.pushGtmEvent)({event:n,vtoType:e})}])},24508,e=>{"use strict";var t=e.i(30647),a=e.i(47840);let n={[t.VtoType.makeupFinder]:"makeup",[t.VtoType.shadeFinder]:"shade finder"},o={"en-us":"covergirl US website","en-ca":"covergirl CA website","fr-ca":"covergirl CA website","en-au":"covergirl AU website"};e.s(["VTO_VERSION",0,"1.0","pushGtmEvent",0,({event:e,vtoType:t,locale:i})=>{(0,a.pushToDataLayer)({...e,app_version:`${n[t]} - 1.0`,coty_platform:(e=>{try{if(e&&o[e])return o[e];let t=window.location.hostname;if(t.includes("covergirl.ca"))return"covergirl CA website";if(t.includes("covergirl.com.au"))return"covergirl AU website";return"covergirl US website"}catch(e){return"covergirl US website"}})(i)})}])},61345,e=>{"use strict";var t,a,n,o,i=((t={}).WidgetBasicEvent="widget_basic_event",t.PageView="widget_page_view",t.Error="error",t),r=((a={}).VtoAction="vtoAction",a.PageImpression="pageImpression",a),s=((n={}).VtoEventClosed="vto-event-closed",n.VtoGenericEventCameraOpen="vto-generic-event-camera-open",n.VtoGenericEventCameraClosed="vto-generic-event-camera-closed",n.VtoErrorCameraFailed="vto-error-camera-failed",n.VtoProductEventSliderCompare="vto-product-event-slider-compare",n.VtoProductEventSliderCompareClosed="vto-product-event-slider-compare-closed",n.VtoLoading="loading",n.VtoProductEventReset="reset",n.VtoProductEventSplit="compare",n.VtoShare="vto-share",n.VtoShareEmail="vto-share-email",n.VtoShareEmailSend="vto-share-email-send",n.VtoShareEmailSent="vto-share-email-sent",n),c=((o={}).TryOn="try on",o.Loading="loading",o.CameraAccess="camera access",o.PrivacyPolicy="privacy policy",o.ForBestResults="for best results",o.PerfectFoundation="perfect foundation",o.PreferredFinish="preferred finish",o.FoundationCoverage="foundation coverage",o.AdditionalBenefit="additional benefit",o.Tooltips="tooltips",o);e.s(["GtmEventName",()=>i,"GtmEventType",()=>r,"GtmPageName",()=>c,"GtmVtoEventName",()=>s])},13012,e=>{"use strict";var t=e.i(61345),a=e.i(24508);
1e.s(["shopNowClickGtm",0,({shadeName:e,vtoType:n})=>{let o={event:t.GtmEventName.WidgetBasicEvent,event_type:t.GtmEventType.VtoAction,event_category:"try on",event_action:"select item",event_label:e.toLowerCase(),event_detail:"select item",page_name:t.GtmPageName.TryOn};(0,a.pushGtmEvent)({event:o,vtoType:n})}])},85,e=>{"use strict";e.i(61345),e.i(95284),e.i(61246),e.i(13012),e.i(89239),e.i(3907),e.i(16947),e.i(99260),e.i(24508),e.s([])},38768,e=>{"use strict";var t=e.i(59954),a=e.i(18090);e.s(["pageView",0,({pageName:e,vtoType:n})=>{(0,a.pushEvent)({event:{event:t.AdobeEventName.PageView,page_name:e},vtoType:n})}])},81827,e=>{"use strict";var t,a=((t={}).Policy="policy",t.Quiz="quiz",t.Guide="guide",t.Vto="vto",t);e.s(["VTO_VERSION",0,"1.0","VtoStep",()=>a])},811,e=>{"use strict";var t=e.i(91398),a=e.i(3910),n=e.i(53161),o=e.i(3828),i=e.i(91788),r=e.i(48274),s=e.i(15213),c=e.i(38768),l=e.i(372),v=e.i(59954);e.i(85);var d=e.i(61345),m=e.i(61246),u=e.i(3907),p=e.i(81827),h=e.i(30647),g=e.i(36936);e.s(["PrivacyPolicy",0,({privacy_policy:e,vtoType:y,onReject:_,setCurrentVtoStep:f})=>{let[E,b]=(0,i.useState)(!1),{v:V}=(0,s.useResourcesContext)();(0,i.useEffect)(()=>{(0,c.pageView)({pageName:v.AdobePageName.PrivacyPolicy,vtoType:y}),(0,m.pageViewGtm)({pageName:d.GtmPageName.PrivacyPolicy,vtoType:y})},[]);let{locale:x=a.i18n.defaultLocale}=(0,o.useRouter)();return e?(0,t.jsx)("div",{children:e&&(0,t.jsxs)("div",{className:"mx-3 my-12 text-center sm:mx-16",children:[(0,t.jsx)("div",{children:(0,t.jsxs)("label",{htmlFor:"vto-privacy-policy-checkbox",className:"inline-block",children:[(0,t.jsxs)("p",{className:"mb-5",children:[(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:e.description||""}}),(0,t.jsx)(r.NavLink,{...e.link,className:"underline"})]}),(0,t.jsx)("div",{className:"mb-5",children:(0,t.jsx)("input",{id:"vto-privacy-policy-checkbox",type:"checkbox",className:"h-4 w-4 border-cg-mediumDark text-black",onChange:e=>{b(e.target.checked)},required:!0,"aria-label":V("navigation.agreeButton")})})]})}),(0,t.jsx)("div",{className:"flex w-full flex-col items-center",children:(0,t.jsxs)("div",{className:"w-72",children:[(0,t.jsx)(g.VtoButton,{onClick:()=>{y===h.VtoType.shadeFinder?f(p.VtoStep.Quiz):(f(p.VtoStep.Vto),(0,n.writeStorage)(`vto_privacy_policy_${x}`,!0)),(0,l.privacyPolicyClick)({vtoType:y}),(0,u.privacyPolicyClickGtm)({vtoType:y})},disabled:!E,children:V("navigation.agreeButton")}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(g.VtoButton,{onClick:()=>_(!1),underline:!0,children:V("navigation.declineButton")})})]})})]})}):null}])},70604,e=>{"use strict";var t=e.i(91398),a=e.i(3910),n=e.i(53161),o=e.i(3828),i=e.i(91788),r=e.i(81827),s=e.i(811),c=e.i(19403);e.s(["MakeupFinder",0,({perfect_module_language:e,makeup_finder_vto_source_url:l,makeup_productsConnection:v,excluded_makeup_products_shadesConnection:d,modal_backgroundConnection:m,privacy_policy:u,filter:p,cart:h,email_sharing:g,is_privacy_policy_only_first_time:y,shop_now_new_style:_,compare_view:f,makeup_categories:E,vtoType:b,selectedProductSlug:V,setIsOpened:x,mikMakConfig:w})=>{let[S,N]=(0,i.useState)(r.VtoStep.Policy),[C,P]=(0,i.useState)(""),{locale:G=a.i18n.defaultLocale}=(0,o.useRouter)(),[k]=(0,n.default)(`vto_privacy_policy_${G}`,!1),A=(0,i.useRef)(r.VtoStep.Policy);return(0,i.useEffect)(()=>{k&&y&&N(r.VtoStep.Vto)},[k]),(0,i.useEffect)(()=>{A.current!==S&&(S===r.VtoStep.Policy?P("Privacy policy step opened."):S===r.VtoStep.Vto&&P("Virtual Try-On step opened."),A.current=S)},[S]),(0,t.jsxs)(t.Fragment,{children:[S===r.VtoStep.Policy&&(0,t.jsx)(s.PrivacyPolicy,{privacy_policy:u,onReject:x,setCurrentVtoStep:N,vtoType:b}),S===r.VtoStep.Vto&&(0,t.jsx)(c.VtoWidget,{perfect_module_language:e,makeup_finder_vto_source_url:l,makeup_productsConnection:v,excluded_makeup_products_shadesConnection:d,makeup_categories:E,modal_backgroundConnection:m,filter:p,cart:h,email_sharing:g,onClose:x,vtoType:b,selectedProductSlug:V,shop_now_new_style:_,compare_view:f,mikMakConfig:w}),(0,t.jsx)("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:C})]})}])}]);

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.