PageSourceSearch

https://www.charlottetilbury.com/_next/static/chunks/2203-8302d1ff9dd3095f.js

js charlottetilbury.com collected 2026-09-24 08:40:30 UTC 49,525 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2203],{2274:e=>{e.exports={ColourProfile:"ColourProfile_ColourProfile__5FfvD","ColourProfile--empty":"ColourProfile_ColourProfile--empty__0867s",ColourProfile__title:"ColourProfile_ColourProfile__title__yaeTE","ColourProfile__intro-copy":"ColourProfile_ColourProfile__intro-copy__SajWO",ColourProfile__loader:"ColourProfile_ColourProfile__loader__7K16T",ColourProfile__preferences:"ColourProfile_ColourProfile__preferences__OhFME",ColourProfile__carouselControls:"ColourProfile_ColourProfile__carouselControls__fEJMD",ColourProfile__resultSectionIntroduction:"ColourProfile_ColourProfile__resultSectionIntroduction__JR56Y",ColourProfile__results:"ColourProfile_ColourProfile__results__6jhdf",TabGroup:"TabGroup",TabGroup__header:"TabGroup__header",TabList:"TabList",CompactCarousel:"CompactCarousel",Rails__item:"Rails__item","ColourProfile--completeLoading":"ColourProfile_ColourProfile--completeLoading__cAcyd",ColourProfile__iconicLookProduct:"ColourProfile_ColourProfile__iconicLookProduct__CWT1f"}},15363:e=>{e.exports={SkincareProfile:"SkincareProfile_SkincareProfile__NYush",SkincareProfile__empty:"SkincareProfile_SkincareProfile__empty__1KNSq",SkincareProfile__title:"SkincareProfile_SkincareProfile__title__MPN30","SkincareProfile__intro-copy":"SkincareProfile_SkincareProfile__intro-copy__f_bTp",SkincareProfile__preferences:"SkincareProfile_SkincareProfile__preferences__GfI3G",outline:"outline",PreferenceList__list:"PreferenceList__list","SkincareProfile__text--bold":"SkincareProfile_SkincareProfile__text--bold__CUrYV",SkincareProfile__results:"SkincareProfile_SkincareProfile__results__R2A_w",SkincareProfile__column:"SkincareProfile_SkincareProfile__column__Thv_M","SkincareProfile__analysis-title":"SkincareProfile_SkincareProfile__analysis-title__OItve","SkincareProfile__hero-product-title":"SkincareProfile_SkincareProfile__hero-product-title__fkT0r","SkincareProfile__recommendations-title":"SkincareProfile_SkincareProfile__recommendations-title__TlSqA",SkincareProfile__recommendations:"SkincareProfile_SkincareProfile__recommendations__DZJK6",ContentSection__content:"ContentSection__content","ContentSection__content--hasCarousel":"ContentSection__content--hasCarousel",SkincareProfile__analysis:"SkincareProfile_SkincareProfile__analysis___20wO","SkincareProfile__hero-product":"SkincareProfile_SkincareProfile__hero-product__aS12J","SkincareProfile__analysis-image-wrapper":"SkincareProfile_SkincareProfile__analysis-image-wrapper__4dkko","SkincareProfile__analysis-text":"SkincareProfile_SkincareProfile__analysis-text__AGZeP",SkincareProfile__row:"SkincareProfile_SkincareProfile__row___45Iy",SkincareProfile__charlotteSays:"SkincareProfile_SkincareProfile__charlotteSays__PVHOw",Snapshot:"Snapshot",Accordion:"Accordion","AccordionItem__header-title":"AccordionItem__header-title","AccordionItem__header-chevron":"AccordionItem__header-chevron",Icon:"Icon",AccordionItem__content:"AccordionItem__content","AnchorButton--primary-light":"AnchorButton--primary-light",RailsPortalControls:"RailsPortalControls"}},17038:e=>{e.exports={EmptyProfile__title:"EmptyProfile_EmptyProfile__title__RQg_b",EmptyProfile__copy:"EmptyProfile_EmptyProfile__copy__QQc50",EmptyProfile__cta:"EmptyProfile_EmptyProfile__cta__eRBk8"}},23370:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var a=r(21745),n=r(73808),o=r.n(n);r(42413);var i=r(33840),c=r(76282),s=r(92648),l=r(17038),u=r.n(l),_="EmptyProfile";let A=function(e){var t=e.className,r=e.title,n=e.copy,l=e.ctaCopy,A=e.onCtaClick,d=e.href;return(0,a.jsxs)("div",{className:o()(u()[_],t),children:[(0,a.jsx)(c.Ay,{className:u()["".concat(_,"__title")],level:c._4.H1,children:r}),(0,a.jsx)("p",{className:u()["".concat(_,"__copy")],children:n}),(0,a.jsx)(s.A,{className:u()["".concat(_,"__cta")],href:d,onClick:A,buttonType:i.G.PrimaryLight,role:d?void 0:"button",children:l})]})}},43548:e=>{e.exports={ComplexionProfile:"ComplexionProfile_ComplexionProfile__vLjGj",ComplexionProfile__empty:"ComplexionProfile_ComplexionProfile__empty__YsjsY",ComplexionProfile__title:"ComplexionProfile_ComplexionProfile__title__a0Eid","ComplexionProfile__intro-copy":"ComplexionProfile_ComplexionProfile__intro-copy__IVO68","ComplexionProfile__recommendations-title":"ComplexionProfile_ComplexionProfile__recommendations-title__0HNaK",ComplexionProfile__buttonWrapper:"C
1omplexionProfile_ComplexionProfile__buttonWrapper__w2jAe",ComplexionProfile__charlotteSays:"ComplexionProfile_ComplexionProfile__charlotteSays__EszlL",ComplexionWizard:"ComplexionWizard","ComplexionWizard__content-wrapper":"ComplexionWizard__content-wrapper",ComplexionWizard__title:"ComplexionWizard__title",ComplexionWizard__question:"ComplexionWizard__question","ComplexionWizard__option-button":"ComplexionWizard__option-button","ComplexionWizard__dont-worry":"ComplexionWizard__dont-worry","ComplexionWizard__no-foundation-wrapper":"ComplexionWizard__no-foundation-wrapper","ComplexionWizard__find-my-shade":"ComplexionWizard__find-my-shade","ComplexionWizard__owns-foundation-wrapper":"ComplexionWizard__owns-foundation-wrapper",Select:"Select",Select__input:"Select__input","ComplexionLoader__golden-loader":"ComplexionLoader__golden-loader",ProductListing:"ProductListing",RailsPortalControls:"RailsPortalControls","ContentSection__content--hasCarousel":"ContentSection__content--hasCarousel"}},44131:()=>{},46145:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});var a,n=((a={}).BeautyProfileNew="Beauty_profile_new",a.FragranceProfileTabNew="FragranceProfileTabNew",a.MatchesToggle="MatchesToggle",a)},52412:(e,t,r)=>{"use strict";r.d(t,{w:()=>f});var a=r(79e3),n=r(29794),o=r(99123),i=r(21745),c=r(73808),s=r.n(c);r(42413);var l=r(33840),u=r(47453),_=r(92648),A=r(98412),d=r.n(A),p="PreferenceList",f=function(e){var t=e.preferences,r=e.ctaCopy,c=e.onCtaClick,A=e.href,f=e.className,m=e.buttonType,h=e.ctaPreCopy,y=e.isSkinPreferences,P=s()(d()["".concat(p,"__cta-copy")],(0,a._)({},d()["".concat(p,"__cta-copy--skin")],y)),g=s()(d()["".concat(p,"__list")],(0,a._)({},d()["".concat(p,"__list--grid-row")],t.length>2),"".concat(p,"__list"));return(0,i.jsxs)("div",{className:s()(d()[p],f),"data-testid":"preference-list",children:[(0,i.jsx)("ul",{className:g,children:t.map(function(e){var t=e.image,r=e.Icon,a=e.title,c=e.preference;return(0,i.jsxs)("li",{className:d()["".concat(p,"__list-item")],children:[t&&(0,i.jsx)(u.Ay,(0,o._)((0,n._)({className:d()["".concat(p,"__image")]},t),{options:{w:80,h:80}})),r&&(0,i.jsx)(r,{className:s()(d()["".concat(p,"__image")],d()["".concat(p,"__image--icon")]),"aria-hidden":!0,alt:""}),(0,i.jsx)("span",{className:d()["".concat(p,"__title")],children:a}),(0,i.jsx)("span",{className:d()["".concat(p,"__preference")],children:c})]},a)})}),!!r&&(!!A||!!c)&&(0,i.jsxs)(_.A,{className:d()["".concat(p,"__cta")],buttonType:null!=m?m:l.G.Tertiary,href:A,onClick:c,role:A?void 0:"button",children:[h&&(0,i.jsx)("span",{className:d()["".concat(p,"__cta-pre-copy")],children:h}),(0,i.jsx)("span",{className:P,children:r})]})]})}},57401:()=>{},61227:(e,t,r)=>{"use strict";r.d(t,{A:()=>tP});var a,n,o,i,c=r(22599),s=r(42230),l=r(92166),u=r(51026),_=r(99626),A=r(79e3),d=r(21745),p=r(73808),f=r.n(p),m=r(42413),h=r(65338),y=r(62110),P=r(68578),g=r(99964),C=r(5031),x=r(46145),b=r(56486),k=r(7534),v=r(65381),S=r(29706),j=r(57705),N=r(29794),F=r(77192),w=r(77780),B=r.n(w),I=r(81524),M=r(79670),T=r(15286),E=r(58282),L=r(75919),R=r(20208),Q=r(16360),D=r(23513),U=r(99123),W=r(72263),G=r(86716),O=r(49847),K=r(80203),Y=r(19431),z=r(33840),H=r(76282),V=r(30736),X=r(77205),Z=r(47453),q=r(77968),J=r(24290),$=r(53728),ee=r(90175),et=r(22294),er=r(27206),ea=r(49791),en=r(40544),eo=r(9253);let ei={src:"/_next/static/media/fairy.683bc9be.png",height:390,width:391,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAeFBMVEVMaXHEh3SRNi9UChLmrJmOMBOAKircZCZaGy1YFySzfHx7ISbqsKSnTjK2SjOiOxG0dGZuHjFxIzP/sHyxZkv3uaDfrqZwITN2JzGfQyPxx76RU2O7WTuGKhKYKRaaTj6tQCPcoYp9Iw7tcj3HWi65a07/4dR0NyuB+ZwXAAAAH3RSTlMA/vw19vz7/SentjX++OT56vG5J/6k8+Su/ubl8/C4iC5nugAAAAlwSFlzAAALEgAACxIB0t1+/AAAAEhJREFUCJkVy8URgDAABMCLC+5OhAD9d8iw/wX0LGmbAXpKi/INg6HqUpW02HwfbhFHrIk8/I07hqvInfAnutIF4o6/mZpbhg+azARmOuiqAgAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8};var ec=r(83499),es=r.n(ec),el="ProductMatchCard";let eu=function(e){var t=e.product,r=e.productMatcherPicture,a=e.onDismiss,n=e.featureContextName,o=t.href,i=t.title,c=t.subtitle,s=(0,k.Bd)().t,l=(0,J.A)("product",{slug:o}),u=(0,E.A)(),_=(0,et.sK)(i),A=(0,et.sK)(c),p=r?(0,X.Uv)(r):t.image,h=(0,m.useMemo)(function(){return(0,I.Xs)({name:n,type:Q.yJ.ProductMatch,position:Q.ho.Main})},[n]),y=(0,m.useMemo)(function(){return(0,I.Ai)({name:"product match_".concat(t.title),type:Q.R6.ProductMatch,isPromotion:!1})},[t.title]),P=(0,I.Gs)({product:t}),g=u.concat([h,y,P]),C=function(){(0,$.UD)(g),(0,ee._D)(g)};return(0,d.jsx)(M.U,{value:[h,y,P],children:(0,d.jsx)(q.A,{onIntersection:function(){return C()},shouldOnlyTriggerOnce:!0,children:(0,d.jsxs)("article",{className:es()[el],children:[(0,d.jsxs)("div",{className:es()["".concat(el,"__header")],children:[(0,d.jsxs)("div",{className:es()["".concat(el,"__title-wrapper")],children:[(0,d.jsx)(H.Ay,{level:H._4.H2,className:es()["".concat(el,"__title")],children:s("components:product-match-card.title")}),(0,d.jsx)("span",{className:es()["".concat(el,"__bubble")],children:s("account:dashboard.tablist.new")})]}),(0,d.jsx)(er.A,{className:es()["".concat(el,"__close")],Icon:V.xW,onClick:function(){(0,$.kj)(g),a()},label:s("common:page.cta.close"),component:"button"})]}),(0,d.jsx)("p",{className:es()["".concat(el,"__intro-copy")],children:(0,d.jsxs)(k.x6,{i18nKey:"components:product-match-card.intro-copy",children:["Darling, it’s a match! Using my shade matching expertise, I have found your perfect shade of my",(0,d.jsx)("span",{className:f()(es()["".concat(el,"__intro-copy--caps")],es()["".concat(el,"__intro-copy--bold")]),children:"new!"}),(0,d.jsx)("span",{className:es()["".concat(el,"__intro-copy--bold")],children:"innovation"})," ",{productName:_},"! You are shade ",{shade:A},"!"]})}),(0,d.jsxs)("div",{className:es()["".concat(el,"__images-wrapper")],children:[(0,d.jsx)(Z.Ay,{className:es()["".concat(el,"__image")],imageSrc:ei,alt:""}),(0,d.jsx)(Y.A,{href:l,"aria-label":"".concat(i," ").concat(c),children:(0,d.jsx)(Z.Ay,(0,U._)((0,N._)({className:f()(es()["".concat(el,"__image")],es()["".concat(el,"__image--product")])},p),{options:{w:260,h:260}}))})]}),(0,d.jsx)(ea.A,{className:es()["".concat(el,"__try-on")],product:t,onClick:function(){return(0,$.cx)("Virtual try on",g)},children:s("try-on:cta.open-assertive")}),(0,d.jsx)(en.Ay,{className:es()["".concat(el,"__cta")],product:t,buttonType:z.G.PrimaryLight,renderedBy:eo.t.Unknown})]})})})};var e_=r(74804),eA=r.n(e_),ed=r(38517),ep=r(52412),ef=r(46586),em=r(44780),eh=r(99276),ey=r(93546),eP=r(17137),eg=r(64129),eC=r(23370),ex=r(23107),eb=r(5132),ek=r(2274),ev=r.n(ek),eS="
1ColourProfile",ej=((a={}).shouldSaveMakeupProfile="shouldSaveMakeupProfile",a),eN=((n=eN||{}).browShades="brow-shades",n.eyeMakeupShades="eye-makeup-shades",n.lipShades="lip-shades",n.cheekShades="cheek-shades",n),eF=(i={},(0,A._)(i,"brow-shades",eg.Gs.browLowLevelColourGrouping),(0,A._)(i,"eye-makeup-shades",eg.Gs.eyeShadowHighLevelColourCategory),(0,A._)(i,"lip-shades",eg.Gs.lipColourGroup),(0,A._)(i,"cheek-shades",eg.Gs.cheekColourHighLevelGrouping),i),ew={root:ev()["".concat(eS,"__results")],carouselControls:ev()["".concat(eS,"__carouselControls")],resultSectionIntroduction:ev()["".concat(eS,"__resultSectionIntroduction")],iconicLookProduct:ev()["".concat(eS,"__iconicLookProduct")],iconicLookBreakdownHeader:ev()["".concat(eS,"__iconicLookBreakdownHeader")]},eB=function(e){var t,r=e.surveyQuestions,a=(0,k.Bd)().t,n=(0,E.A)(),o=(0,F._)((0,m.useState)(),2),i=o[0],s=o[1],l=(0,c.d4)(u.GE),_=(0,F._)((0,m.useState)("loading"),2),p=_[0],h=_[1],y=(0,J.A)("finder",{finder:"makeup-match-tool"}),P=(t=(0,eP.QG)(l,i),function(e){return t?Object.entries(eF).reduce(function(r,a){var n,o,i,c=(0,F._)(a,2),s=c[0],l=c[1],u=eF["eye-makeup-shades"],_=t.find(function(e){return e.questionCode===l});return l!==u||_||(_=t.find(function(e){return e.questionCode===ef.r.eyelinerColourCategory})),_&&r.push({title:e("account:beauty-profile.colour.preferences.".concat(s)),preference:null!=(n=null==(o=_.details)?void 0:o.title)?n:_.answer,image:null==(i=_.details)?void 0:i.image}),r},[]):[]})(a),g=(0,m.useMemo)(function(){return eA()(l,function(e){return e.answer})},[l]);(0,m.useEffect)(function(){(0,eh.$x)(eb.$.ColourProfileAll).then(s)},[]),(0,em.A)(function(){h((0,eP._s)(l,r)?"loading-filled-out":"empty")},[r,l],[h]),(0,T.A)(function(){(0,ey.NE)(n,"makeup","Your makeup profile")},[n]);var C=(0,m.useCallback)(function(){h("filled-out")},[]),x=(0,d.jsx)("div",{className:ev()[eS],"data-testid":"colour-profile-loader",children:(0,d.jsx)(ed.A,{className:ev()["".concat(eS,"__loader")],display:!0})});if("loading"===p)return x;if("empty"===p)return(0,d.jsx)("div",{className:f()(ev()[eS],ev()["".concat(eS,"--empty")]),children:(0,d.jsx)(eC.A,{title:a("account:beauty-profile.colour.title"),copy:(0,d.jsxs)(k.x6,{i18nKey:"account:beauty-profile.colour.empty.intro-copy",children:["Darling, your Makeup Profile is ",(0,d.jsx)("b",{children:"incomplete"}),"! Simply answer a few quick questions and I’ll help you find your ",(0,d.jsx)("b",{children:"perfect Makeup matches"})," in ",(0,d.jsx)("b",{children:"under 2 minutes"}),"!"]}),onCtaClick:function(){(0,ey.WS)(n,"makeup","Your makeup profile",{target:y})},ctaCopy:a("account:beauty-profile.colour.empty.cta"),href:y})});var b=f()(ev()[eS],(0,A._)({},ev()["".concat(eS,"--completeLoading")],"loading-filled-out"===p));return(0,d.jsxs)(d.Fragment,{children:["loading-filled-out"===p&&x,(0,d.jsxs)("div",{className:b,children:[(0,d.jsx)(H.Ay,{className:ev()["".concat(eS,"__title")],level:H._4.H1,children:a("account:beauty-profile.colour.title")}),(0,d.jsx)("p",{className:ev()["".concat(eS,"__intro-copy")],children:(0,d.jsxs)(k.x6,{i18nKey:"account:beauty-profile.colour.intro-copy",children:["I’ve decoded my ",(0,d.jsx)("b",{children:"beauty expertise "}),"to find your perfect makeup matches – they will make you",(0,d.jsx)("b",{children:"feel + look"})," like the",(0,d.jsx)("b",{children:"most beautiful version of you!"})]})}),!!(null==P?void 0:P.length)&&(0,d.jsx)(ep.w,{preferences:P,className:ev()["".concat(eS,"__preferences")],href:y,ctaPreCopy:a("account:beauty-profile.colour.preferences.reselect-pre-copy"),ctaCopy:a("account:beauty-profile.colour.preferences.reselect-copy")}),(0,d.jsx)(ex.A,{userAnswers:g,classes:ew,onLoad:C})]})]})},eI=r(6714),eM=r(66095),eT=r(20322),eE=r(21915),eL=r(50121),eR=r(52275),eQ=r(52041),eD=r(13209),eU=r(72523),eW=r(69267),eG=r(75071),eO=r(43548),eK=r.n(eO),eY="ComplexionProfile",ez="".concat(eY,"__compactCarouselControl"),eH={hidePersonalisedMatchBadge:!0},eV=function(){var e=(0,k.Bd)().t,t=(0,F._)((0,m.useState)(!1),2),r=t[0],a=t[1],n=(0,E.A)(),o=(0,m.useContext)(j.M0).recommendationResults;if((0,eL.A)(),(0,T.A)(function(){(0,ey.NE)(n,"complexion","Your complexion profile")},[n]),r){var i,c=(null==o?void 0:o.complexionProfile)&&eT.ko[null==o||null==(i=o.complexionProfile)?void 0:i.productName]?null==o?void 0:o.complexionProfile:void 0;return(0,d.jsx)("div",{className:eK()[eY],children:(0,d.jsx)(eM.A,{onSuccessfulFormSubmission:function(){(0,eD.u)("common","onComplexionFinderComplete",null),a(!1)},initialValues:c})})}return(null==o?void 0:o.complexionProfile)?(0,d.jsx)(eR.U,{all:eH,children:(0,d.jsxs)("div",{className:eK()[eY],children:[(0,d.jsx)(H.Ay,{className:eK()["".concat(eY,"__title")],level:H._4.H1,children:e("account:beauty-profile.complexion.title")}),(0,d.jsx)("p",{className:eK()["".concat(eY,"__intro-copy")],children:(0,d.jsxs)(k.x6,{i18nKey:"account:beauty-profile.complexion.intro-copy",children:["Combining my ",(0,d.jsx)("strong",{children:"beauty expertise"}),"and your current favourite complexion shades, these are the beauty icons I recommend in the",(0,d.jsx)("strong",{children:"perfect shades, formulas"}),"and ",(0,d.jsx)("strong",{children:"finishes"})," for you!"]})}),(0,d.jsx)("p",{className:eK()["".concat(eY,"__recommendations-title")],children:e("account:beauty-profile.complexion.recommendations-title")}),(0,d.jsx)(eU.N,{className:eK()["".concat(eY,"__charlotteSays")],children:(0,d.jsx)(k.x6,{i18nKey:"account:beauty-profile.complexion.charlotte-says",components:[{b:(0,d.jsx)("b",{})}]})}),(0,d.jsx)("div",{className:ez}),(0,d.jsx)(eW.default,{type:eQ.xO.ProductListing,displayType:eG.UI.COMPACT_CAROUSEL,products:o.products,portalControlsSelector:".".concat(ez),trackingFeatureType:Q.yJ.BeautyProfileComplexionProducts,contentSectionColour:eE.n.ComplexionTint}),(0,d.jsx)(eI.A,{onReSelect:function(){return a(!0)}})]})}):(0,d.jsx)("div",{className:eK()[eY],children:(0,d.jsx)(eC.A,{className:eK()["".concat(eY,"__empty")],title:e("account:beauty-profile.complexion.title"),copy:(0,d.jsx)(k.x6,{i18nKey:"account:beauty-profile.complexion.empty.intro-copy",components:[{b:(0,d.jsx)("b",{})}]}),ctaCopy:e("account:beauty-profile.complexion.empty.cta"),onCtaClick:function(){a(!0),(0,ey.WS)(n,"complexion","Your complexion profile",{target:"complexion wizard"})}})})},eX=r(59019),eZ=r(32337),eq=r(91465),eJ=r.n(eq),e$="FragranceProfile",e0=((o={}).shouldSaveFragranceProfile="shouldSaveFragranceProfile",o),e2=function(e){var t,r,a=e.surveyQuestions,n=e.isFragrancePromptDismissed,o=(0,k.Bd)().t,i=(0,J.A)("fragranceFinder"),s=(0,c.d4)(u.GE),l=(0,E.A)(),_=(0,F._)((0,m.useState)("empty"),2),A=_[0],p=_[1],h=(0,F._)((0,m.useState)(),2),y=h[0],P=h[1];if((0,m.useEffect)(function(){(0,eh.$x)(eb.$.Fragrance).then(P)},[]),(0,T.A)(function(){(0,ey.NE)(l,"fragrance","Your fragrance profile")},[l]),(0,em.A)(function(){p((0,eP._s)(s,a)?"filled-out":"empty")}
1,[a,s],[p]),(0,T.A)(function(){if(!n){var e=x.c.FragranceProfileTabNew;(0,L.B)(e)}},[n]),"empty"===A)return(0,d.jsx)("div",{className:f()(eJ()[e$],eJ()["".concat(e$,"--empty")]),children:(0,d.jsx)(eC.A,{title:o("account:beauty-profile.fragrance.title"),copy:(0,d.jsxs)(k.x6,{i18nKey:"account:beauty-profile.fragrance.empty.intro-copy",children:["Darling, your Fragrance Profile is ",(0,d.jsx)("b",{children:"incomplete"}),"! Simply answer a few quick questions and I’ll help you find your ",(0,d.jsx)("b",{children:"perfect fragrance matches"}),"!"]}),ctaCopy:o("account:beauty-profile.fragrance.empty.cta"),href:i})});var g=Object.keys(eZ.Q$),C=(0,eP.QG)(s,y),b=null==C?void 0:C.filter(function(e){return e.questionCode===eZ.Q$.scent})[0],v={title:"".concat(o("account:beauty-profile.fragrance.preferences.description")),preference:(null==b?void 0:b.answer)?(0,et.sK)(null==b?void 0:b.answer):"",image:null==b||null==(r=b.details)?void 0:r.answerTheme.backgroundImage};return(0,d.jsxs)("div",{className:f()(eJ()[e$],eJ()["".concat(e$,"--complete")]),children:[(0,d.jsxs)("div",{className:eJ()["".concat(e$,"__header-wrapper")],children:[(0,d.jsx)(H.Ay,{className:eJ()["".concat(e$,"__title")],level:H._4.H1,children:o("account:beauty-profile.fragrance.title")}),(0,d.jsx)("p",{className:eJ()["".concat(e$,"__intro-copy")],children:(0,d.jsx)(k.x6,{i18nKey:"account:beauty-profile.fragrance.intro-copy",components:[{b:(0,d.jsx)("b",{})}]})}),(0,d.jsx)(ep.w,{preferences:[v],className:eJ()["".concat(e$,"__preferences")],href:i,ctaPreCopy:o("account:beauty-profile.fragrance.preferences.reselect-pre-copy"),ctaCopy:o("account:beauty-profile.fragrance.preferences.reselect-copy")})]}),(0,d.jsx)(eX.Ay,{surveyAnswers:(t=Object.fromEntries(Object.entries(s).filter(function(e){var t=(0,F._)(e,1)[0];return g.includes(t)})),eA()(t,function(e){return e.answer})),isBeautyProfile:!0})]})},e1=r(63996),e4=r(11584),e3=r(56415),e7=r(22707),e9=r(98204),e8=r(16397),e6=r(10453),e5=r(416),te=r(98355),tt=r(69799),tr=r(39226),ta=r(56750),tn=r(78331),to=r(31243),ti=r(27438),tc=r(61596),ts=r.n(tc),tl=r(87938),tu="BeautyProfileTabWrapper",t_=function(e){var t=e.isSkinProfileEnabled,r=e.isColourProfileEnabled,a=e.isFragranceProfileEnabled,n=e.shouldSaveMakeupProfile,o=e.shouldSaveFragranceProfile;return(0,D._)(function(){var e,i,c,s,l;return(0,G._)(this,function(u){switch(u.label){case 0:return[4,Promise.allSettled([t&&(0,te.ww)(),t&&(0,eP.q2)(tt.Zx.SkinAnalysisQuestions,!0),r&&(0,eh.$x)(eb.$.ColourProfile),r&&n&&(0,eP.q2)(tt.Zx.MakeupMatchToolQuestions,!1),a&&(0,eh.$x)(eb.$.Fragrance),a&&o&&(0,eP.q2)(tt.Zx.FragranceFinderQuestions,!1)])];case 1:return i=(e=F._.apply(void 0,[u.sent().map(function(e){return"fulfilled"===e.status?e.value:void 0}),6]))[0],c=e[1],s=e[2],l=e[3],[2,{skinResults:i,isSkinSaved:c,makeupQuestions:s,isMakeupSaved:l,fragranceQuestions:e[4],isFragranceSaved:e[5]}]}})})()};let tA=(0,s.A)(function(e){var t=e.className,r=e.getFeatureStatus,a=e.defaultSelectedTab,n=void 0===a?tl.S.Skin:a,o=e.isFragrancePromptDismissed,i=(0,c.wA)(),s=(0,P.U0)().isWebView,l=(0,m.useContext)(j.M0),_=l.recommendationResults,A=l.hasComplexionProfile,p=l.hasRecommendationResultsError,h=(0,K.useRouter)(),g=(0,c.d4)(u.GE),x=!!(0,C.A)(ej.shouldSaveMakeupProfile),b=!!(0,C.A)(e0.shouldSaveFragranceProfile),v=(0,F._)((0,m.useState)(),2),S=v[0],w=v[1],B=(0,F._)((0,m.useState)(),2),T=B[0],E=B[1],L=(0,F._)((0,m.useState)(),2),R=L[0],Y=L[1],z=(0,F._)((0,m.useState)(),2),H=z[0],V=z[1],X=(0,F._)((0,m.useState)(),2),Z=X[0],q=X[1],J=(0,F._)((0,m.useState)({profiles:[]}),2),$=J[0],ee=J[1],et=r(to.O5.SKIN_PROFILE),er=r(to.O5.COLOUR_PROFILE),ea=r(to.O5.COMPLEXION_PROFILE),en=r(to.O5.FRAGRANCE_PROFILE),eo=(0,C.A)(y.HC.Profile),ei=f()(ts()[tu],t),ec=(0,k.Bd)().t,es=(0,m.useCallback)(function(){var e=[];return et&&e.push({name:tl.S.Skin,children:(0,d.jsx)("div",{className:ts()["".concat(tu,"__content")],"data-testid":"skin-profile-panel",children:(0,d.jsx)(tn.A,{})})}),ea&&e.push({name:tl.S.Complexion,children:(0,d.jsx)("div",{className:ts()["".concat(tu,"__content")],"data-testid":"complexion-profile-panel",children:(0,d.jsx)(eV,{})})}),er&&e.push({name:tl.S.Makeup,children:(0,d.jsx)("div",{className:ts()["".concat(tu,"__content")],"data-testid":"colour-profile-panel",children:(0,d.jsx)(eB,{surveyQuestions:S})})}),en&&e.push({name:tl.S.Fragrance,tabButtonOverlay:o?void 0:ec("account:dashboard.tablist.new"),tabButtonOverlayStyle:ts()["".concat(tu,"__tab-overlay")],children:(0,d.jsx)("div",{className:ts()["".concat(tu,"__content")],"data-testid":"fragrance-profile-panel",children:(0,d.jsx)(e2,{surveyQuestions:T,isFragrancePromptDismissed:o})})}),e},[et,ea,er,en,S,o,ec,T]),el=(0,m.useMemo)(function(){return es()},[es]),e_=R&&!H;
1(0,m.useEffect)(function(){var e,t,r=$,a=[et,ea,er,en].filter(Boolean).length;if(ea&&(p||A)){var n=null===_||!(null==_?void 0:_.complexionProfile);r=(0,U._)((0,N._)({},$),{profiles:(0,W._)($.profiles).concat([{name:"complexion",status:n?Q.tV.Empty:Q.tV.Completed}])})}a===(null==(e=r.profiles)?void 0:e.length)&&q((null==(t=r.profiles)?void 0:t.length)?[(0,I.EA)(r)]:void 0)},[et,er,en,$,ea,p,A,_]),(0,e4.A)(function(){return(0,D._)(function(){var e,t,r,a,n,o;return(0,G._)(this,function(c){switch(c.label){case 0:return e={profiles:[]},[4,t_({isSkinProfileEnabled:et,isColourProfileEnabled:er,isFragranceProfileEnabled:en,shouldSaveMakeupProfile:x,shouldSaveFragranceProfile:b})];case 1:return(t=c.sent()).isFragranceSaved&&(r=(0,tt.dJ)(tt.Zx.FragranceFinderQuestions)).hasData&&i((0,e3.Ri)(r.data)),a=function(e){var t=O.stringify(h.query),r=(0,ta.IM)(e,t,h.pathname);h.replace(r,void 0,{shallow:!0})},et&&e.profiles.push({name:"skin",status:t.isSkinSaved||(null==t?void 0:t.skinResults).length?Q.tV.Completed:Q.tV.Empty}),er&&(w(t.makeupQuestions),n=(0,eP._s)(g,t.makeupQuestions),t.isMakeupSaved&&a(ej.shouldSaveMakeupProfile),e.profiles.push({name:"mmt",status:t.isMakeupSaved||n?Q.tV.Completed:Q.tV.Empty})),en&&(E(t.fragranceQuestions),o=(0,eP._s)(g,t.fragranceQuestions),t.isFragranceSaved&&a(e0.shouldSaveFragranceProfile),e.profiles.push({name:"fragrance",status:t.isFragranceSaved||o?Q.tV.Completed:Q.tV.Empty})),ee(e),[2]}})})()},[et,er,en,g,x,b]);var eA=(0,m.useCallback)(function(){return(0,D._)(function(){var e,t;return(0,G._)(this,function(r){switch(r.label){case 0:return[4,(0,D._)(function(){var e;return(0,G._)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e7.Ay.send({type:"[survey]: FETCH_PRODUCT_MATCH",method:e6.f.Get,authenticationMode:e8.tl.Required,url:function(e){return"".concat(e9.A.getValue("SURVEY_SERVICE"),"/").concat(e,"/product-matcher")}})];case 1:return[2,t.sent()];case 2:return e=t.sent(),e5.Ay.error("Could not get product match results",{error:e}),[2];case 3:return[2]}})})()];case 1:if(!(e=r.sent()))return[2];return Y((t=e.productMatchers)[0]),(0,tt.$t)(tt.Zx.ProductMatcherResults,t.map(function(e){return{matchingAttributes:e.matchingAttributes,sku:e.product.sku}}),new Date(Date.now()+(0,ti.Tr)(30)),!0),[2]}})})()},[]);(0,m.useEffect)(function(){eA()},[eA]),(0,m.useEffect)(function(){V(!!(0,tr.Gq)("hideAccountProductMatchCard"))},[]);var ed=(0,d.jsxs)(d.Fragment,{children:[e_&&(0,d.jsx)(eu,{product:R.product,productMatcherPicture:R.productMatcherPicture,onDismiss:function(){(0,tr.SO)("hideAccountProductMatchCard","true"),V(!0)},featureContextName:"Beauty Profile_".concat(null!=eo?eo:n)}),(0,d.jsx)("p",{className:ts()["".concat(tu,"__header-copy")],children:(0,d.jsx)(k.x6,{i18nKey:"account:beauty-profile.tabs.header-content-intro",components:[{b:(0,d.jsx)("b",{})}]})})]});return Z?(0,d.jsx)(M.U,{value:Z,children:(0,d.jsx)("div",{className:ei,children:(0,d.jsx)(e1.A,(0,U._)((0,N._)({className:ts()["".concat(tu,"__tab-group")],panelClassName:ts()["".concat(tu,"__tab-group-panel")],headerClassName:ts()["".concat(tu,"__tab-group-header")],btnClassName:ts()["".concat(tu,"__tab-group-btn")],btnActiveClassName:ts()["".concat(tu,"__tab-group-btn--active")],btnTextClassName:ts()["".concat(tu,"__tab-group-btn-text")],navClassName:ts()["".concat(tu,"__tab-group-nav")],enableTransition:!0,hasRouteUpdate:!0,asQuery:y.HC.Profile,groupId:"BeautyProfile",panels:el,selectedTabPanel:null!=eo?eo:n,tabNavTitleKey:"account:beauty-profile.tabs",trackingFeatureName:"BeautyProfile",trackingContextFunction:function(e){return(0,ey.lb)([],e,"Your ".concat(e," profile"))},showTabs:!s,maintainQueryParams:!0},!s&&{headerContent:ed}),{parameterToRemove:y.Z5.ResultsTab}))})}):null});var td=B()(function(e){return[(0,I.Xs)({name:e,type:Q.yJ.UserProfileBeautyProfile,position:Q.ho.Main})]}),tp=(0,I.Xs)({position:Q.ho.Main,name:"Beauty Profile Tab",type:Q.yJ.Tab}),tf=function(e,t){var r=(0,F._)((0,m.useState)({}),2),a=r[0],n=r[1],o=(0,m.useCallback)(function(e){n((0,N._)({},a,e))},[a]),i=(0,m.useContext)(j.M0),c=i.recommendationResults,s=i.hasRecommendationResultsError,l=(0,E.A)(),u=(0,m.useRef)(l),_=(0,m.useRef)(!1);u.current=l;var A=td(e);return(0,m.useEffect)(function(){var e;
1(s||c)&&((0,R.VX)({values:(0,N._)({complexion:null==c||null==(e=c.complexionProfile)?void 0:e.sku},a),isUpdate:_.current},u.current.concat(A)),_.current=!0)},[t,s,c,a,A]),{beautyProfileFeatureContextList:A,handleChangedSectionValues:o}};let tm=(0,j.sW)((0,s.A)(function(e){var t=e.tabName,r=e.isFragrancePromptDismissed,a=e.isBeautyProfilePromptDismissed,n=e.className,o=tf(t).beautyProfileFeatureContextList.concat(tp);return(0,T.A)(function(){if(!a){var e=x.c.BeautyProfileNew;(0,L.B)(e)}},[a]),(0,d.jsx)(M.U,{value:o,children:(0,d.jsx)(tA,{className:n,isFragrancePromptDismissed:r})})}),{canRenderImmediately:!0});var th=r(47374);r(99021);var ty="AccountPagesWrapper";let tP=(0,c.Ng)(function(e){return{account:(0,u.sU)(e),dismissPromptCookie:(0,_.Kq)(e)}})((0,s.A)((0,l.A)(function(e){var t=e.account,r=e.children,a=e.className,n=e.canRenderNavLinks,o=e.getFeatureStatus,i=e.canShowLoggedInState,c=e.defaultSelectedTab,s=void 0===c?th.F.PageContent:c,l=e.dismissPromptCookie,u=e.storeCode,_=e.showBackButton,p=void 0===_||_,j=Object.keys(t).length>0&&(void 0===i||i),N=(0,k.Bd)().t,F=(0,P.U0)().isWebView,w=(0,g.A)(),B=o(b.md),I=(0,C.A)(y.Qs.Tab),M=!!(null==l?void 0:l[x.c.FragranceProfileTabNew]),T=!!(null==l?void 0:l[x.c.BeautyProfileNew]),E=f()(ty,(0,A._)({},"".concat(ty,"--logged-in"),j),(0,A._)({}
1,"".concat(ty,"--logged-out"),!j),a),L="account:dashboard.tablist.titles",R=(0,m.useMemo)(function(){var e=w?(0,d.jsx)(h.A,{}):null;return j?[{name:th.F.PageContent,children:(0,d.jsxs)("div",{className:"".concat(ty,"__content"),children:[p&&!w&&(0,d.jsxs)("div",{className:"".concat(ty,"__items__item"),role:"navigation",children:[(0,d.jsx)("a",{className:"".concat(ty,"__items__link"),href:(0,v.F5)(u,"account"),children:(0,d.jsx)("span",{className:"".concat(ty,"__items__link-text"),children:N("common:page.cta.back-to-account")})}),(0,d.jsx)("span",{"aria-hidden":!0,children:(0,d.jsx)("span",{className:"".concat(ty,"__items__separator")})})]}),(0,d.jsx)("div",{className:"".concat(ty,"__content-inner"),children:r}),!F&&e]})},{name:th.F.Loyalty,children:B&&(0,d.jsx)(S.A,{})},{name:th.F.BeautyProfile,tabButtonOverlay:T?void 0:" ",children:(0,d.jsx)(tm,{accountId:t.id,tabName:N("".concat(L,".").concat(th.F.BeautyProfile)),isFragrancePromptDismissed:M,className:"".concat(ty,"__beauty-profile-tab"),isBeautyProfilePromptDismissed:T})}]:[]},[w,j,p,u,N,r,F,B,M,T,t.id]);return(0,d.jsxs)("div",{className:E,children:[j&&(0,d.jsx)(e1.A,{className:"".concat(ty,"__tab-group"),btnClassName:"".concat(ty,"__new-tab-group-btn"),btnActiveClassName:"".concat(ty,"__new-tab-group-btn--active"),btnTextClassName:"".concat(ty,"__tab-group-btn-text"),navClassName:"".concat(ty,"__new-tab-group-nav"),enableTransition:!0,hasRouteUpdate:!0,asQuery:y.Qs.Tab,groupId:"AccountSettingsAndLoyaltyInfo",panels:R,selectedTabPanel:null!=I?I:s,tabNavTitleKey:L,trackingFeatureName:"Account",showTabs:!F,withTablistWrapper:!F}),!j&&(0,d.jsxs)("div",{className:"".concat(ty,"__content"),"data-testid":"contentWrapper",children:[(0,d.jsx)("div",{className:"".concat(ty,"__content-inner"),children:r}),j&&(void 0===n||n)&&!F&&(0,d.jsx)(h.A,{})]})]})})))},61596:e=>{e.exports={BeautyProfileTabWrapper:"BeautyProfileTabWrapper_BeautyProfileTabWrapper__kCooe",BeautyProfileTabWrapper__content:"BeautyProfileTabWrapper_BeautyProfileTabWrapper__content__Nr6eC","BeautyProfileTabWrapper__content-inner":"BeautyProfileTabWrapper_BeautyProfileTabWrapper__content-inner__7KoGY","BeautyProfileTabWrapper__tab-group-nav":"BeautyProfileTabWrapper_BeautyProfileTabWrapper__tab-group-nav__jV9hV","BeautyProfileTabWrapper__tab-group-btn":"BeautyProfileTabWrapper_BeautyProfileTabWrapper__tab-group-btn__Gpmbz","BeautyProfileTabWrapper__tab-group-btn--active":"BeautyProfileTabWrapper_BeautyProfileTabWrapper__tab-group-btn--active__xtOkY","BeautyProfileTabWrapper__tab-group-header":"BeautyProfileTabWrapper_BeautyProfileTabWrapper__tab-group-header__i6y3I","BeautyProfileTabWrapper___tab-group-panel--is-selected":"BeautyProfileTabWrapper_BeautyProfileTabWrapper___tab-group-panel--is-selected__FpUtN","BeautyProfileTabWrapper__header-copy":"BeautyProfileTabWrapper_BeautyProfileTabWrapper__header-copy__xyeS_","BeautyProfileTabWrapper__loyalty-banner":"BeautyProfileTabWrapper_BeautyProfileTabWrapper__loyalty-banner__9D2TC"}},65338:(e,t,r)=>{"use strict";r.d(t,{A:()=>T});var a=r(85576),n=r(7534),o=r(77192),i=r(21745),c=r(42413),s=r(90601),l=r(99964),u=r(34168),_=r(24290),A=r(49471),d=r(61333),p=r(25318),f=r(36791),m=r(31243),h=r(416),y=r(22599),P=r(51026),g=r(29794),C=r(99123),x=r(59593),b=r(73808),k=r.n(b),v=r(72314),S=r(16468),j=r(25584),N=r(81524),F=r(58282),w=r(36719),B=r(16360);r(88219);var I="AccountNavigationLoyalty";let M=(0,y.Ng)(function(e){return{account:(0,P.sU)(e)}})(function(e){var t=e.accountLinks,r=e.router,a=e.accountOrdersPath,n=e.upcomingOrders,o=e.t,c=e.account,s=!!(0,y.d4)(w.mj),u=(0,l.A)(),_=(0,F.A)(),A=!u&&s,d=(0,N.Xs)({name:"MyAccountMenu",type:B.yJ.Menu,position:u?B.ho.Left:B.ho.Main}),p=_.concat(d);return(0,i.jsx)("ul",{className:"".concat(I,"__items"),"data-testid":"".concat(I,"__items"),children:t.map(function(e){return(0,i.jsxs)("li",{className:"".concat(I,"__").concat(e.title),children:[(0,i.jsx)("p",{className:"".concat(I,"__menu-header"),children:e.title}),(0,i.jsx)("ul",{className:"".concat(I,"__items_container"),children:e.links.filter(function(e){return e.linkData&&!e.linkData.dontShowInAccount}).map(function(e){var t,s=e.linkData,l=(s.dontShowInAccount,s.Icon),u=s.hasEmailVerificationLink,_=(0,x._)(s,["dontShowInAccount","Icon","hasEmailVerificationLink"]),d=_.href===(null==r?void 0:r.asPath),f=k()("".concat(I,"__item"));return(0,i.jsxs)("li",{"data-test":"authenticated-navigation-link-desktop",className:f,children:[(0,i.jsxs)(v.A,(0,C._)((0,g._)({href:_.href,target:_.target,className:"".concat(I,"__item-link"),eventAction:"my account",eventLabel:"my account - ".concat(_.eventLabel)},d?{"aria-current":"page"}:{}),{trackingContext:p.concat((t=_.label,(0,N.Ai)({name:t,type:B.R6.Link,isPromotion:!1}))),children:[(0,i.jsx)(l,{className:"".concat(I,"__item-icon"),alt:""}),_.labeloverride?_.labeloverride:_.label,_.href===a&&n>0&&(0,i.jsxs)("p",{className:"".concat(I,"__item-notification"),children:[n,(0,i.jsx)("span",{className:"".concat(I,"__item-notification--sr-only"),children:o("common:notification.new-update",{count:n})})]})]})),u&&A&&!c.emailVerified&&(0,i.jsx)(j.A,{}),u&&A&&(0,i.jsx)(S.N,{})]},_.label)})})]},e.title)})})});r(57401);let T=(0,n.CI)()((0,a.A)(function(e){var t=e.t,r=e.router,a=(0,u.A)(),n=(0,l.A)(),y=(0,o._)((0,s.i)(m.O5.ACCOUNT_MANAGE_DATA),1)[0],P=(0,o._)((0,s.i)(m.O5.SUBSCRIPTIONS_ACCOUNT_PAGES),1)[0].enabled,g=y.enabled,C=(0,p.j)({t:t,storeCode:a,hasSubscriptions:P,isManageDataVisible:g,hasBeautyProfile:!1,isMobile:!n}),x=(0,o._)((0,c.useState)(-1),2),b=x[0],k=x[1],v=(0,_.A)("accountOrders");return(0,c.useEffect)(function(){-1!==b||(0,A.GN)((0,f.Zn)())||(0,d.Kc)().then(function(e){k(e.length)}).catch(function(e){h.Vy.error("Unable to fetch upcoming orders",{error:e})})},[b]),(0,i.jsx)("nav",{className:"AccountNavigation",children:(0,i.jsx)(M,{accountLinks:C,router:r,accountOrdersPath:v,upcomingOrders:b,t:t})})}))},75919:(e,t,r)=>{"use strict";r.d(t,{B:()=>s});var a=r(23513),n=r(86716),o=r(22707),i=r(78707),c=r(416),s=function(e){return(0,a._)(function(){var t;return(0,n._)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,o.Ay.send((0,i.F_)(e))];case 1:return[2,r.sent()||null];case 2:return t=r.sent(),c.Ay.error("Unable to set dismiss prompt cookie",{error:t}),[2,null];case 3:return[2]}})})()}},78331:(e,t,r)=>{"use strict";r.d(t,{A:()=>ei});var a,n,o,i,c=r(42230),s=r(23513),l=r(79e3),u=r(29794),_=r(99123),A=r(77192),d=r(86716),p=r(21745),f=r(7160),m=r(42413),h=r(33840),y=r(76282),P=r(95747),g=r(65481),C=r(52412),x=r(74917),b=r(29483),k=r(9253),v=r(23370),S=((a={}).Dry="Dry",a.Oily="Oily",a.Combination="Combination",a.Balanced="Normal",a),j=r(72523),N=r(52275),F=r(15286),w=r(34168),B=r(24290),I=r(58282),M=r(34365),T=r(98355),E=r(46858),L=r(21230),R=r(99276),Q=r(57088),D=r(93546),U=r(54849),W=r(7534),G=r(416),O=r(30736),K=r(57470);r(44131);var Y="ResultListButton",z=function(e,t){var r,a=e.results,n=a.darkCircles,o=a.visiblePores,i=a.hydration,c=a.wrinkles,s=a.darkSpots;return r={analysisId:t},(0,l._)(r,Q.I4.DarkCircles,n),(0,l._)(r,Q.I4.Pore,o),(0,l._)(r,Q.I4.Moisture,i),(0,l._)(r,Q.I4.Wrinkles,c),(0,l._)(r,Q.I4.AgeSpots,s),r};let H=function(e){var t=e.analyses,r=e.onAnalysisSelect,a=e.reloadAnalyses,n=(0,K.V)(),o=(0,W.Bd)().t,i=function(e){(0,U.rl)("openAnalysis - ".concat(e.id)),r({analysis:z(e,e.id),resultType:Q.Dw})};return(0,p.jsx)("div",{"data-testid":"analyses-buttons",children:t.map(function(e){return(0,p.jsxs)("div",{className:Y,children:[(0,p.jsx)(h.A,{type:"button",className:"".concat(Y,"__analysis-button"),buttonType:h.G.Tertiary,hasTertiaryArrows:!1,"data-testid":"analyses-button",onClick:function(){return i(e)},children:n(new Date(e.scanDate),"d MMMM yyyy")}),(0,p.jsx)(h.A,{type:"button",className:"".concat(Y,"__delete-button"),buttonType:h.G.Tertiary,hasTertiaryArrows:!1,"data-testid":"delete-button",onClick:function(){return(0,s._)(function(){var t;return(0,d._)(this,function(r){switch(r.label){case 0:if(!window.confirm(o("skin-analysis:skincare-profile.delete")))return[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,T.Tv)(e.id)];case 2:return r.sent(),a(),[3,4];case 3:return t=r.sent(),G.Ay.error("Unable to delete skin analysis result",{err:t}),[3,4];case 4:return[2]}})})()},children:(0,p.jsx)(O.d7,{})})]},e.id)})})};var V=r(82207),X=r(99902),Z=r(58435),q=r(9981),J=r(15363),$=r.n(J),ee="SkincareProfile",et=((n=et||{}).FocusArea="focusArea",n.KeyStrength="keyStrength",n.SkinType="skinType",n),er=(o={},(0,l._)(o,S.Balanced,{src:"/_next/static/media/balanced-skin.9931f393.jpg",height:400,width:400,blurDataURL:"data:image/jpeg;
1base64,/9j/2wBDAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/2wBDAQoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/wgARCAAIAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAACwg//EABsQAAIBBQAAAAAAAAAAAAAAAAERAAIEEjGh/9oACAEBAAE/AMaxctjulP/EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Af//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Af//Z",blurWidth:8,blurHeight:8}),(0,l._)(o,S.Combination,{src:"/_next/static/media/combination-skin.82778d10.jpg",height:400,width:400,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/2wBDAQoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/wgARCAAIAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAACwg//EABsQAAEEAwAAAAAAAAAAAAAAABEAAQIDBBLB/9oACAEBAAE/ANbI5ZLDgX//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/AH//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/AH//2Q==",blurWidth:8,blurHeight:8}),(0,l._)(o,S.Dry,{src:"/_next/static/media/dry-skin.14fd5e2b.jpg",height:400,width:400,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/2wBDAQoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/wgARCAAIAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAACvg//EABkQAAEFAAAAAAAAAAAAAAAAAAEAAwQSQv/aAAgBAQABPwCrwmg5X//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Af//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Af//Z",blurWidth:8,blurHeight:8}),(0,l._)(o,S.Oily,{src:"/_next/static/media/oily-skin.fb01f147.jpg",height:400,width:400,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/2wBDAQoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/wgARCAAIAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAACwA//EABwQAAEDBQAAAAAAAAAAAAAAAAEAAgMEETFCwf/aAAgBAQABPwANlFWDry2F/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAgEBPwB//8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAwEBPwB//9k=",blurWidth:8,blurHeight:8}),(0,l._)(o,Q.I4.DarkCircles,P._f),(0,l._)(o,Q.I4.Moisture,P.ko),(0,l._)(o,Q.I4.Pore,P.pR),(0,l._)(o,Q.I4.Wrinkles,P.$z),(0,l._)(o,Q.I4.AgeSpots,P.f4),o),ea=(i={},(0,l._)(i,"focusArea","skin-analysis:results.focus-area"),(0,l._)(i,"keyStrength","skin-analysis:results.key-strength"),(0,l._)(i,"skinType","account:beauty-profile.skin.attributes.skin-type"),i),en="skinType",eo={hidePersonalisedMatchBadge:!0};let ei=(0,c.A)(function(e){var t,r,a,n,o=e.surveyAnswers,i=(0,A._)((0,m.useState)([]),2),c=i[0],l=i[1],P=(0,A._)((0,m.useState)({resultType:Q.Dw,analysis:null}),2),S=P[0],O=P[1],K=(0,A._)((0,m.useState)(),2),Y=K[0],z=K[1],J=(0,A._)((0,m.useState)(),2),et=J[0],ei=J[1],ec=(0,A._)((0,m.useState)(null==o||null==(r=o.survey)||null==(t=r[en])?void 0:t.answer),2),es=ec[0],el=ec[1],eu=(0,W.Bd)().t,e_=(0,B.A)("skinAnalysis"),eA=(0,w.A)(),ed=S.analysis,ep=S.resultType,ef=c[0]&&(0,Z.IL)(c[0]),em=(0,A._)((0,m.useState)(),2),eh=em[0],ey=em[1],eP=(0,I.A)(),eg=c.length?(0,L._3)(ef.result,!0):[],eC=null==(a=eg.find(function(e){return e.label===E.W.FocusArea}))?void 0:a.key,ex=null==(n=eg.find(function(e){return e.label===E.W.KeyStrength}))?void 0:n.key,eb=["skinType","focusArea","keyStrength"].reduce(function(e,t){var r={focusArea:eC,keyStrength:ex,skinType:es}[t];if(!r)return e;var a="skinType"===t;return e.push({title:eu(ea[t]),preference:eu(a?"account:beauty-profile.skin.skin-types.".concat(r.toLowerCase()):Z.Ak[r]),image:a?{imageSrc:er[r],alt:"",title:"",width:80,height:80}:void 0,Icon:!a&&er[r]}),e},[]),ek=!!c.length,ev=(0,m.useCallback)(function(e){return(0,s._)(function(){var t,r,a,n,o;return(0,d._)(this,function(i){switch(i.label){case 0:return[4,(0,R.hU)({selectedSkinType:e})];case 1:if(!(null==(r=i.sent())||null==(t=r.results)?void 0:t.length)||(n=eC===Q.I4.Moisture?"hydration":eC,ey(o=null==(a=r.results.find(function(e){return e.concern===n}))?void 0:a.product),ei(r),!o))return[3,3];return[4,(0,M.W)({recommendationType:"SKIN_ANALYSIS",skus:[o.sku]})];case 2:i.sent(),i.label=3;case 3:return[2]}})})()},[eC]),eS=(0,m.useCallback)(function(){return(0,s._)(function(){var e,t;return(0,d._)(this,function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,(0,T.jU)(eA)];case 1:return r.sent(),[4,(0,T.ww)()];case 2:return(e=r.sent()).sort(function(e,t){return(0,f.T)(new Date(e.scanDate),new Date(t.scanDate))}),l(e),[3,4];case 3:return t=r.sent(),G.Ay.error("Unable to fetch customer skin analysis results",{err:t}),[3,4];case 4:return[2]}})})()},[eA]);(0,m.useEffect)(function(){eS()},[eS]),(0,m.useEffect)(function(){(0,T.FD)().then(function(e){return z(e)})},[]),(0,m.useEffect)(function(){es&&(0,R.hU)({selectedSkinType:es}).then(function(e){return e&&ei(e)}).catch(function(e){return G.Ay.error("Unable to fetch hero products",{error:e})})},[es]),(0,m.useEffect)(function(){ek&&!es&&(0,s._)(function(){var e,t,r;return(0,d._)(this,function(a){switch(a.label){case 0:return[4,(0,R.Gq)()];case 1:return el(null==(r=a.sent())||null==(t=r.survey)||null==(e=t[en])?void 0:e.answer),[2]}})})()},[es,ek]),(0,m.useEffect)(function(){ek&&es&&ev(es)},[es,ev,ek]),(0,F.A)(function(){(0,D.NE)(eP,"skin","Your skin profile")},[eP]);var ej=$()["".concat(ee,"__title")],eN=$()["".concat(ee,"__intro-copy")],eF=eu("account:beauty-profile.skin.title"),ew=function(e){(0,U.rl)("".concat(e?"open":"close","History"))},eB=[{id:1,title:eu("skin-analysis:results-header.title-all-results"),content:(0,p.jsx)(H,{analyses:c,onAnalysisSelect:O,reloadAnalyses:eS})}];return ek&&es?(0,p.jsx)(N.U,{all:eo,children:(0,p.jsxs)("div",{className:$()[ee],children:[(0,p.jsx)(y.Ay,{className:ej,level:y._4.H1,children:eF}),(0,p.jsx)("p",{className:eN,children:(0,p.jsx)(W.x6,{i18nKey:"account:beauty-profile.skin.intro-copy",components:[{b:(0,p.jsx)("b",{})}]})}),(0,p.jsxs)("div",{className:$()["".concat(ee,"__row")],children:[(0,p.jsxs)("div",{className:$()["".concat(ee,"__column")],children:[!!eb.length&&(0,p.jsx)(C.w,{preferences:eb,className:$()["".concat(ee,"__preferences")],href:e_,ctaCopy:eu("account:beauty-profile.skin.add-skin-reading"),onCtaClick:function(){return(0,U.rl)("addSkinAnalysisBtn")},buttonType:h.G.PrimaryLight,isSkinPreferences:!0}),ef&&(0,p.jsxs)("div",{className:$()["".concat(ee,"__analysis")],children:[(0,p.jsx)(y.Ay,{level:2,className:$()["".concat(ee,"__analysis-title")],children:eu("account:beauty-profile.skin.results-title")}),(0,p.jsxs)("div",{className:$()["".concat(ee,"__analysis-image-wrapper")],children:[(0,p.jsx)(X.A,{className:"".concat(ee,"__analysis-image"),image:ef.image,alt:""}),(0,p.jsx)("p",{className:$()["".concat(ee,"__analysis-text")],children:(0,p.jsx)(W.x6,{i18nKey:"account:beauty-profile.skin.results-text",components:[{b:(0,p.jsx)("b",{})}]})})]}),(0,p.jsx)(g.A,{items:eB,shouldRenderAllClosed:!0,onItemClick:function(e,t){return ew(t)}}),ed&&ep&&(0,p.jsx)(V.A,{isVisible:!!ed,onModalClose:function(){var e=c.find(function(e){return e.id===ed.analysisId}).id;O({resultType:Q.Dw,analysis:null}),(0,U.rl)("closeAnalysis - ".concat(e))},results:ed,onSelectResult:function(e,t,r){var a=c.find(function(e){return e.id===r.analysisId}).id;O({resultType:t,analysis:r}),(0,U.Sb)(e,!0,"account",a)},showSavedScore:!0,skincareConcernsContent:Y,keyProducts:et,selectedResult:eC})]})]}),(0,p.jsx)("div",{className:$()["".concat(ee,"__column")],children:eh&&(0,p.jsxs)("div",{className:$()["".concat(ee,"__hero-product")],children:[(0,p.jsx)(y.Ay,{level:2,className:$()["".concat(ee,"__hero-product-title")],children:eu("account:beauty-profile.skin.hero-product-title")}),(0,p.jsx)(x.A,{className:$()["".concat(ee,"__hero-product-card")],overrideType:b.t.MultiImageFinderResult,product:(0,_._)((0,u._)({},eh),{image:eh.images[0],rollOverImage:eh.images[1]}),headingLevel:y._4.H3,renderedBy:k.t.PDPHero,hideSwatch:!0,ctaButtonType:h.G.Secondary})]})})]}),(0,p.jsx)("p",{className:$()["".concat(ee,"__recommendations-title")],children:eu("account:beauty-profile.skin.recommendations-title")}
1),eC&&(0,p.jsx)(j.N,{className:$()["".concat(ee,"__charlotteSays")],children:(0,p.jsx)(W.x6,{i18nKey:"account:beauty-profile.skin.charlotte-says",components:[{b:(0,p.jsx)("b",{})}],values:{focusArea:eu(Z.Ak[eC])}})}),(0,p.jsx)(q.A,{skinType:es,title:"",className:$()["".concat(ee,"__recommendations")],focusArea:eC,keyProducts:et})]})}):(0,p.jsx)("div",{className:$()[ee],children:(0,p.jsx)(v.A,{className:$()["".concat(ee,"__empty")],title:eu("account:beauty-profile.skin.title"),copy:(0,p.jsx)(W.x6,{i18nKey:"account:beauty-profile.skin.empty.intro-copy",components:[{b:(0,p.jsx)("b",{})}]}),ctaCopy:eu("account:beauty-profile.skin.empty.cta"),onCtaClick:function(){(0,D.WS)(eP,"skin","Your skin profile",{target:e_})},href:e_})})})},83499:e=>{e.exports={ProductMatchCard:"ProductMatchCard_ProductMatchCard__v4s8T",ProductMatchCard__header:"ProductMatchCard_ProductMatchCard__header__puNUY",ProductMatchCard__title:"ProductMatchCard_ProductMatchCard__title__7DVJg","ProductMatchCard__title-wrapper":"ProductMatchCard_ProductMatchCard__title-wrapper__L_Ia_",ProductMatchCard__bubble:"ProductMatchCard_ProductMatchCard__bubble__1V654",ProductMatchCard__close:"ProductMatchCard_ProductMatchCard__close__lmRmn","Icon--closewhite":"Icon--closewhite","ProductMatchCard__intro-copy":"ProductMatchCard_ProductMatchCard__intro-copy__h48t0","ProductMatchCard__intro-copy--caps":"ProductMatchCard_ProductMatchCard__intro-copy--caps__PzAPe","ProductMatchCard__intro-copy--bold":"ProductMatchCard_ProductMatchCard__intro-copy--bold__9t_RB","ProductMatchCard__images-wrapper":"ProductMatchCard_ProductMatchCard__images-wrapper__fwpXJ",ProductMatchCard__image:"ProductMatchCard_ProductMatchCard__image__M2e6Y","ProductMatchCard__image--product":"ProductMatchCard_ProductMatchCard__image--product__jybnC","ProductMatchCard__try-on":"ProductMatchCard_ProductMatchCard__try-on__ix3qS"}},88219:()=>{},91465:e=>{e.exports={FragranceProfile:"FragranceProfile_FragranceProfile__sSxUy","FragranceProfile--empty":"FragranceProfile_FragranceProfile--empty___yXqL","FragranceProfile--complete":"FragranceProfile_FragranceProfile--complete__dOdE8",FragranceProfile__title:"FragranceProfile_FragranceProfile__title__Sbnmo","FragranceProfile__intro-copy":"FragranceProfile_FragranceProfile__intro-copy__O0flk",FragranceProfile__preferences:"FragranceProfile_FragranceProfile__preferences__qcofs","FragranceProfile__header-wrapper":"FragranceProfile_FragranceProfile__header-wrapper__nVBT7",Heading:"Heading",Anchor:"Anchor",FragranceFinderResults:"FragranceFinderResults",TextWidget:"TextWidget",Rails__items:"Rails__items",ProductListing:"ProductListing","FragranceFinderResults__charlotte-says":"FragranceFinderResults__charlotte-says",FragranceFinderResults__subtitle:"FragranceFinderResults__subtitle",widget:"widget",TabList:"TabList","FragranceFinderResults__product-info":"FragranceFinderResults__product-info",FragranceFinderResults__product:"FragranceFinderResults__product",FragranceFinderResults__science:"FragranceFinderResults__science",ProductImage:"ProductImage","FragranceFinderResults__product-info-details":"FragranceFinderResults__product-info-details",ProductCta:"ProductCta",ScentEvolution:"ScentEvolution","FragranceFinderResults__product-info-header":"FragranceFinderResults__product-info-header","FragranceFinderResults__product-info-additional":"FragranceFinderResults__product-info-additional",CompactCarousel:"CompactCarousel",Rails__item:"Rails__item",ProductCardList__item:"ProductCardList__item",ProductCard:"ProductCard"}},98412:e=>{e.exports={PreferenceList:"PreferenceList_PreferenceList__JbHXb",PreferenceList__list:"PreferenceList_PreferenceList__list__rfo_A","PreferenceList__list--grid-row":"PreferenceList_PreferenceList__list--grid-row__ghrAg","PreferenceList__list-item":"PreferenceList_PreferenceList__list-item__T6HsR",PreferenceList__image:"PreferenceList_PreferenceList__image__xMkLv","PreferenceList__image--icon":"PreferenceList_PreferenceList__image--icon__fBJ2Y",PreferenceList__title:"PreferenceList_PreferenceList__title__iZX1V",PreferenceList__preference:"PreferenceList_PreferenceList__preference__j0Xsz",PreferenceList__cta:"PreferenceList_PreferenceList__cta__QW2Z9",Anchor:"Anchor",AnchorButton__content:"AnchorButton__content","PreferenceList__cta-pre-copy":"PreferenceList_PreferenceList__cta-pre-copy__vdBqB","PreferenceList__cta-copy":"PreferenceList_PreferenceList__cta-copy__eAdlK","PreferenceList__cta-copy--skin":"PreferenceList_PreferenceList__cta-copy--skin__T_jJb"}},99021:()=>{}}]);

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.