PageSourceSearch

https://cdn2.prose.com/build/client/assets/layout-COQRcQH5.js

js prose.com collected 2026-10-02 02:41:00 UTC 29,427 bytes, 58 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8b7f98a4-036c-5fe3-9b3a-cbb489a3de2b")}catch(e){}}();
3const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/thunks-DAMuq2-P.js","assets/react-redux-Ci9Owx2v.js","assets/chunk-KS7C4IRE-CAm7c3ci.js","assets/dayjs.min-BDxaoNrJ.js","assets/products-DbOTs43K.js","assets/subscription-home-url-D8IkKWIJ.js","assets/jsx-runtime-Bd7SJnjc.js","assets/selectors-DumH_hek.js","assets/index-DskVeTVC.js","assets/consultation-urls-C-d1F0vA.js","assets/getEnv-DW8_anR-.js","assets/selectors-C_vIEvqm.js","assets/grid-B1N5MGlC.js","assets/initialState-CenHDvkC.js","assets/AuthClient-CDCjWXKF.js","assets/HTTPError-DME6x2vd.js","assets/subscriptions-CGv3v8r6.js","assets/apiSlice-DFnYpZjO.js","assets/heap-user-properties-C18M1aES.js","assets/constants-jNM5xx-R.js","assets/store-9Jkuagqg.js","assets/index-Bu6xlYDO.js","assets/set-CncXDz3C.js","assets/_baseSlice-B1RXUmki.js","assets/slice-D38UGJ-r.js","assets/actions-CELw-Em7.js","assets/OrderService-C-_I6e32.js","assets/slice-BYscG93q.js","assets/thunks-B6m-w0Xy.js","assets/signin-BCYhMDrR.js","assets/query-A9ScS5Xb.js","assets/queries-BBRnGyXS.js","assets/narrow-BIfoT1rt.js","assets/queries-ITcqQGm7.js","assets/types-DLDaAYzB.js","assets/subscriptionCategories-H-azqi9U.js","assets/haircareProducts-BU2ZODso.js","assets/prose-eye-patches-D3R1zEwg.js","assets/prose-metal-tipped-brush-AYGL3SxZ.js","assets/actions-CusQOKsI.js","assets/BreadcrumbsService-yKsbFj8_.js","assets/slice-BuZjGwkJ.js","assets/route-ids-Bx_oZDqr.js","assets/home-hero-video-poster-tablet-B2G3dQ0F.js","assets/thunks-Dngrhydg.js","assets/actions-Byz1hZ9I.js","assets/slice-Bx7jUGR-.js","assets/thunks-xPFz3eUB.js","assets/isEmpty-CplCqdW-.js","assets/transforms-BD5TovCe.js","assets/isIncludedIn-DcWks3vd.js","assets/thunks-DePYrYv2.js","assets/selectors-BhTWCCUH.js","assets/slice-nVJHKEuB.js","assets/thunks-C2dhm5bV.js","assets/consent-D0Iqf2rJ.js","assets/preload-helper-BdBXg1aK.js","assets/slice-MKF_hy5g.js","assets/slice-BYLQaemm.js","assets/actionTypes-bM5tke6o.js","assets/slice-Cs3S-vTp.js","assets/slice-Cq7XDZTL.js","assets/main-BfJs3gBn.js","assets/apiSlice-KSKA7L53.js","assets/apiSlice-DpAqzdoI.js","assets/breadcrumbs-D6q_jwQS.js","assets/exposure-guard-Dl5drO5N.js","assets/unified-skip-snooze-juwNtDfM.js","assets/queries-CgivEZpm.js","assets/show-toast-DJnRpGB9.js","assets/text-bS-fhLah.js","assets/index-DmZSdQRr.js","assets/index-93wCXolS.js","assets/Image-CekQjgOr.js","assets/index-D5w148lj.js","assets/styled-components.browser.esm-BK8Eny2Y.js","assets/products-D29-wWdo.js","assets/ensure-flags-resolved-CXEceaLI.js","assets/DataDrivenModalLayout-DWhVO9tL.js","assets/PmsModalContainer-CICG0X7d.js","assets/hooks-CLWqEvEe.js","assets/pmsTrackingProperties-CVQ-z-ia.js","assets/button-B-gSxbz1.js","assets/image-BKxSAgqn.js","assets/BasicModal-DWsr_-TQ.js","assets/legacy-theme-BK6G0glo.js","assets/validators-DTKPY8dQ.js","assets/promo-badge-ceS0yspB.js","assets/usePagePromotions-Dtq8__ck.js","assets/routes-CJJ3-OXs.js","assets/LegacyBaseScene-C01iMmOa.js","assets/Footer-CONZ5c8S.js","assets/box-DxUR7k16.js","assets/text-link-B038l8Ui.js","assets/hooks-Qks92fDN.js","assets/event-tracker-ClWElmcj.js","assets/TextField-Bxc-WxYl.js","assets/BaseField-BmjAhR-r.js","assets/header-shell-ije764D0.js","assets/media-CbUTjzOT.js","assets/consultationProductsCategories-B_n48HWi.js","assets/useResponsiveVariant-Ds_D2bkn.js","assets/useMedia-BFWs2eMm.js","assets/a11y-DGhVx0h9.js","assets/legacy-main-nav-bar-DDNORnFN.js","assets/hooks-Dng6ADL0.js","assets/sumBy-BzIIz4qN.js","assets/testids-DR5fBX-d.js","assets/utils-uUHHJ3RG.js"])))=>i.map(i=>d[i]);
4import{_ as f}from"./preload-helper-BdBXg1aK.js";import{b as u,e as N,x as de,L as G,m as oe,F as ue,w as pe,O as me}from"./chunk-KS7C4IRE-CAm7c3ci.js";import{j as t}from"./jsx-runtime-Bd7SJnjc.js";import{a as C,u as g}from"./hooks-CLWqEvEe.js";import{m as ne,I as he,aa as fe,ab as ge,ac as _e,s as ye,a1 as k,c as xe,e as ve,ad as be}from"./react-redux-Ci9Owx2v.js";import{Q as Se}from"./QueryClientProvider-6-ZJzEaV.js";import{h as we,t as I}from"./index-D5w148lj.js";import{d as Ee,b as $,c as M,T as _}from"./text-bS-fhLah.js";import{g as j}from"./styled-components.browser.esm-BK8Eny2Y.js";import{C as Ae}from"./client-only-DwRsz-VT.js";import{P as se}from"./thunks-B6m-w0Xy.js";import{N as Ce}from"./NpsModalContext-D4Hz4C3e.js";import{s as Te,q as Pe,a as Oe}
4from"./router-context-CtxJbIH_.js";import{T as Re}from"./index-DmZSdQRr.js";import{a7 as ke,p as Ie,a8 as Ne,a9 as ie,h as S,aa as je}from"./apiSlice-DFnYpZjO.js";import{A as Le}from"./AuthClient-CDCjWXKF.js";import"./actions-CELw-Em7.js";import{u as De}from"./OrderService-C-_I6e32.js";import{h as Ue}from"./utm-DmL_cPtu.js";import{a as ae}from"./hooks-Qks92fDN.js";import{b as re}from"./dayjs.min-BDxaoNrJ.js";import{B as K}from"./button-B-gSxbz1.js";import{T as Ve}from"./text-link-B038l8Ui.js";import{a as Fe}from"./validators-DTKPY8dQ.js";import{B as ze,S as y}from"./BasicModal-DWsr_-TQ.js";import{T as D}from"./TextOptinComponents-BdV59I8a.js";import{a as B,c as U,b as V,d as Be,e as O,C as He,f as Me,g as We}from"./consent-D0Iqf2rJ.js";import{S as Ge}from"./pmsTrackingProperties-CVQ-z-ia.js";import{u as $e}from"./useResponsiveVariant-Ds_D2bkn.js";import{c as F}from"./Footer-CONZ5c8S.js";import{f as Ke,b as w}from"./getEnv-DW8_anR-.js";import{closeRootToast as Ye}from"./actions-Byz1hZ9I.js";import{T as qe}from"./ToastPortal-CumxWzm5.js";import{S as Qe}from"./subscription-home-url-D8IkKWIJ.js";import{E as Je}from"./ErrorBoundary-9lKhRhy8.js";import"./initStripe-CK_bTARP.js";import{s as Xe}from"./initialState-CenHDvkC.js";import{u as Ze}from"./hooks-CX6E6fRi.js";import{p as et}from"./products-DbOTs43K.js";import{k as tt}from"./selectors-C_vIEvqm.js";import"./grid-B1N5MGlC.js";import"./selectors-DumH_hek.js";import"./index-DskVeTVC.js";import"./consultation-urls-C-d1F0vA.js";import"./HTTPError-DME6x2vd.js";import"./signin-BCYhMDrR.js";import"./query-A9ScS5Xb.js";import"./queries-BBRnGyXS.js";import"./narrow-BIfoT1rt.js";import"./thunks-DAMuq2-P.js";import"./subscriptions-CGv3v8r6.js";import"./queries-ITcqQGm7.js";import"./types-DLDaAYzB.js";import"./subscriptionCategories-H-azqi9U.js";import"./haircareProducts-BU2ZODso.js";import"./prose-eye-patches-D3R1zEwg.js";import"./prose-metal-tipped-brush-AYGL3SxZ.js";import"./TextField-Bxc-WxYl.js";import"./BaseField-BmjAhR-r.js";import"./Image-CekQjgOr.js";import"./legacy-theme-BK6G0glo.js";import"./index-93wCXolS.js";import"./heap-user-properties-C18M1aES.js";import"./constants-jNM5xx-R.js";import"./main-BfJs3gBn.js";import"./event-tracker-ClWElmcj.js";import"./Checkbox-BlEwlhSS.js";import"./useMedia-BFWs2eMm.js";import"./box-DxUR7k16.js";import"./route-ids-Bx_oZDqr.js";import"./slice-BYscG93q.js";import"./ErrorScene-BvlnlzRR.js";import"./Title-CgHQxaiu.js";import"./LegacyBaseScene-C01iMmOa.js";import"./header-shell-ije764D0.js";import"./media-CbUTjzOT.js";import"./consultationProductsCategories-B_n48HWi.js";import"./routes-CJJ3-OXs.js";import"./a11y-DGhVx0h9.js";import"./usePagePromotions-Dtq8__ck.js";import"./legacy-main-nav-bar-DDNORnFN.js";import"./hooks-Dng6ADL0.js";import"./sumBy-BzIIz4qN.js";import"./apiSlice-DpAqzdoI.js";import"./apiSlice-KSKA7L53.js";import"./testids-DR5fBX-d.js";import"./home-hero-video-poster-tablet-B2G3dQ0F.js";import"./thunks-Dngrhydg.js";import"./utils-uUHHJ3RG.js";import"./image-BKxSAgqn.js";import"./chunkLoadError-OJvKoVr0.js";import"./logDatadogError-D_T19Y4a.js";import"./doNothing-DkvRhqzx.js";import"./useScript-TSJMrowd.js";import"./actions-qC1IDz23.js";import"./slice-Cq7XDZTL.js";import"./set-CncXDz3C.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"[email protected]"}}catch{}})();const Y="prose-raw-text",ot=j.div`
5  position: fixed;
6  z-index: 99999;
7  top: 105px;
8  right: 0;
9
10  padding: 0.5em;
11
12  font-size: 11px;
13  line-height: 1.2;
14  color: white;
15
16  opacity: 0.9;
17  background: rgb(255 0 255 / 90%);
18`,nt=j.div`
19  margin-top: 0.25em;
20  font-size: 10px;
21  opacity: 0.85;
22`,st=()=>{const e=Object.keys($),o=[],n=document.createElement("div");n.setAttribute("aria-hidden","true"),n.style.cssText="position:absolute;left:-9999px;top:0;visibility:hidden;pointer-events:none;",document.body.appendChild(n);for(const s of e){const a=document.createElement("span");a.className=`${Ee()} ${$[s]}`,a.textContent=" ",n.appendChild(a);const i=getComputedStyle(a),r=Number(i.fontSize.replace(/px$/,"")),l=i.lineHeight,h=l==="normal"?r*1.2:Number(l.replace(/px$/,"")),m=i.letterSpacing,c=m==="normal"?0:Number(m.replace(/px$/,"")),p={fontFamily:i.fontFamily.split(",")[0].replaceAll('"',""),fontWeight:i.fontWeight,fontSize:Number(r.toFixed(2)),letterSpacing:Number(c.toFixed(2)),lineHeight:Number(h.toFixed(2))};o.push([s,p]),n.removeChild(a)}document.body.removeChild(n),window.StyleAudit={options:{withInfoOverlay:!0},referenceStyles:o}},it=(e,o,n)=>{const s=e.filter(([i,r])=>o.fontFamily===r.fontFamily&&o.fontSize===r.fontSize&&o.fontWeight===r.fontWeight),a=s.find(([i,r])=>o.lineHeight===r.lineHeight&&o.letterSpacing===r.letterSpacing);return n?["raw_text",a?`🔵 RawText → ${a[0]}`:"🔵 RawText"]:a?["exact_match",`🟢 ${a[0]}`]:s.length>0?["inexact_match",`🟡 ${s.map(i=>i[0]).join(", ")}`]:["no_match","❌"]};function at(){if(!window?.StyleAudit)return;const e=[];[...document.querySelectorAll(":is(*:not(:has(> *)):not(:empty), :has(> :is(br, span, strong, b, a, sup, button, .__style-audit-info__))):not(.__style-audit-info__)")].filter(i=>[...i.childNodes].some(r=>r.nodeType===3)&&getComputedStyle(i).display!=="none").forEach(i=>
22{if(!(i instanceof HTMLElement)){console.warn("elementsWithText contains an element which is not expected, please fix the selection/filtering logic: ",i);return}const r=getComputedStyle(i),l={fontFamily:r.fontFamily.split(",")[0].replaceAll('"',""),fontWeight:r.fontWeight,fontSize:Number(r.fontSize.slice(0,-2)),letterSpacing:Number(r.letterSpacing.slice(0,-2)),lineHeight:Number(r.lineHeight.slice(0,-2))},h=i.classList.contains(Y)||!i.classList.contains("prose-text")&&i.closest(`.${Y}`)!==null,m=it(window.StyleAudit.referenceStyles,l,h);let c="255 0 255";switch(m[0]){case"exact_match":c="0 255 0";break;case"inexact_match":c="240 170 0";break;case"no_match":c="255 0 0";break;case"raw_text":c="0 140 255";break}i.style.setProperty("text-shadow",`0 0 0.2ch rgba(${c}/ 100%), 0 0 0.2ch rgba(${c}/ 100%)`),i.style.setProperty("box-shadow",`inset 0 0 0 100vmax rgba(${c}/ 18%)`),[...document.querySelectorAll(".__style-audit-info__")].forEach(p=>p.remove()),setTimeout(()=>{if(window.StyleAudit?.options.withInfoOverlay){const p=document.createElement("div");p.setAttribute("class","__style-audit-info__"),p.setAttribute("style",`padding: 2px; position: absolute; transform: translateY(-33%); white-space: nowrap; color: white; text-shadow: 0 0 3px black; font-size: 9px; font-family: sans-serif; line-height: 1; background: rgb(${c} / 33%); text-transform: none;`),p.appendChild(document.createTextNode(m[1])),i.appendChild(p)}},150),e.push({instance:i,...l,"matchedVariant(s)":m[1]})});let n=0;const s=new Map([]),a=e.reduce((i,r)=>{const{instance:l,...h}=r,m=JSON.stringify(h);let c=s.get(m);return c||(n+=1,c=n,s.set(m,n)),{...i,[c]:{...h,count:(i[c]?.count||0)+1,instances:i[c]?.instances?[...i[c].instances,l]:[l]}}},{});console.log(`----------///---------- Style audit on page ${window.location.href} ----------///---------- `),console.log("Elements containing text:",e.length),console.log("Unique text stylings:",Object.values(a).length),console.table(a),console.log("----------------------------------------------------------------------------------------- ")}const rt=()=>{const[e,o]=u.useState(!1);return u.useEffect(()=>{typeof window<"u"&&st();const n=s=>{s.code==="KeyA"&&s.altKey&&(at(),o(!0))};return document.body.addEventListener("keydown",n),console.log("The style-audit-tool is active. Press 'option+A' (or 'alt+A') while focusing the website to activate it."),()=>{document.body.removeEventListener("keydown",n)}},[]),e&&t.jsxs(ot,{children:["⚙️ YOU ARE DEBUGGING STYLES",t.jsx(nt,{children:"🟢 on scale · 🟡 size only · ❌ off scale · 🔵 RawText"})]})},q=`${String(parseInt(we,10)+24)}px`,ct=()=>t.jsx(Re,{gap:14,mobileOffset:{top:q},offset:{top:q},position:"top-center",toastOptions:{unstyled:!0},visibleToasts:3,style:{"--width":"600px"}}),lt=()=>{const{search:e}=N();u.useEffect(()=>{ke(e)},[e])},dt=()=>{const e=C(),o=g(ne);u.useEffect(()=>{const n=({key:s,oldValue:a,newValue:i})=>{s===Le&&a&&!i&&o&&(e(De()),e(Ie()))};return window.addEventListener("storage",n),()=>window.removeEventListener("storage",n)},[e,o])},ut=()=>{const e=g(ne),o=g(he),n=g(fe),s=g(ge),a=g(_e),i=g(ye),r=!!i&&Object.prototype.hasOwnProperty.call(i,"paid_orders_categories");u.useEffect(()=>{if(o){window.PROSE_USER_INFO_IS_AUTHENTICATED=void 0;return}window.PROSE_USER_INFO_IS_AUTHENTICATED=String(e)},[e,o]),u.useEffect(()=>{if(!e||!n){window.PROSE_USER_INFO_HAIRCARE_CONSULTATION_STATUS=void 0;return}window.PROSE_USER_INFO_HAIRCARE_CONSULTATION_STATUS=String(n)},[n,e]),u.useEffect(()=>{if(!e||!s){window.PROSE_USER_INFO_SKINCARE_CONSULTATION_STATUS=void 0;return}window.PROSE_USER_INFO_SKINCARE_CONSULTATION_STATUS=String(s)},[e,s]),u.useEffect(()=>{if(!e||!r){window.PROSE_USER_INFO_HAS_HAIRCARE_ORDERS=void 0,window.PROSE_USER_INFO_HAS_SKINCARE_ORDERS=void 0;return}window.PROSE_USER_INFO_HAS_HAIRCARE_ORDERS=String(a.includes("haircare")),window.PROSE_USER_INFO_HAS_SKINCARE_ORDERS=String(a.includes("skincare"))},[r,e,a])},pt=()=>{const[e]=de(),{pathname:o,search:n}=N(),s=C(),{shouldShow:a}=ae("breadcrumbs-pageview-utms");u.useEffect(()=>{a&&Ue(e)&&s(Ne(`${o}${n}`))},[a])},ce=1,mt=3,le=()=>{const e=g(k),o=n=>{window.VWO?.init?.(n)};return u.useEffect(()=>{e===re.US&&o(ce)},[e]),{updateConsent:o}},ht=({country:e,region:o=""})=>U[o]??U[e]??U.Default,Q=({country:e,region:o=""})=>{const n=ie(B);return n?JSON.parse(n):ht({country:e,region:o})}
22,ft=e=>e.consentManagement,gt=xe([ft],Ke("showConsentBanner")),_t=M("min-[768px]:rounded-t-10 relative mt-auto w-full p-24 text-center min-[768px]:w-auto min-[768px]:max-w-[375px] min-[768px]:min-w-[400px] min-[768px]:pt-32"),yt=M("absolute top-24 right-24 -mt-4 flex h-24 w-24 cursor-pointer appearance-none items-center justify-center border-none bg-transparent"),xt=()=>{const e=g(k),o=g(k),n=g(gt),s=C(),{isMobile:a}=$e(),[i,r]=u.useState(!1),[l,h]=u.useState(null),{updateConsent:m}=le(),c=d=>d?V:Be,p=d=>d===V,v=()=>{s(F(!1))},b=d=>{const W=new CustomEvent(He,{detail:{newConsentParams:d,oldConsentParams:Q({country:e,region:o})}});je(B,JSON.stringify(d),Me);const x=d.analytics_storage===V?ce:mt;m(x),window.dispatchEvent(W),v()},T=()=>{b(O),s(S("Consent Banner Dismissed",{consentParams:O})),v()},P=d=>{b(d),s(S("Consent Banner All Granted",{consentParams:O}))},L=d=>{b(d),s(S("Consent Banner Preferences Updated",{consentParams:d}))};return u.useEffect(()=>{ie(B)?h(Q({country:e,region:o})):(s(F(!0)),s(S("Consent Banner Viewed - Pop-up")))},[]),u.useEffect(()=>{n&&(s(F(!0)),s(S("Consent Banner Viewed - Footer")))},[n]),t.jsxs(ze,{backgroundColor:i?I.colors.neutral[100]:I.colors.primary[100],className:_t,dataFrom:"consent-banner",dataTestId:"consent-banner",hideClose:!0,horizontalPosition:a?"center":"end",isBackdropVisible:!1,isFullWidth:a,isOpen:n,onClose:T,zIndexValue:1501,children:[t.jsx("button",{className:yt,"data-click":"consent-banner-dismiss","data-from":"consent-banner","data-testid":"consent-banner-close",onClick:T,type:"button",children:t.jsx(Ge,{height:"13",width:"13"})}),!i&&t.jsxs("div",{children:[t.jsx(_,{"aria-label":"Your Privacy",as:"h2",color:"primary.400","data-testid":"consent-banner-title",id:n?"modal-title":"",textAlign:"left",variant:"body5medium",children:"Your Privacy"}),t.jsx(y,{axis:"vertical",size:16}),t.jsxs(_,{as:"p","data-testid":"consent-banner-description",id:n?"modal-description":"",textAlign:"left",variant:"body5regular",children:["We use cookies and similar tracking technologies, including those provided by third parties, to view and retain your interactions on the site, help us improve our site, services, and marketing campaigns, and to serve you ads. For more information, view our"," ",t.jsx(G,{to:"/privacy",children:"Privacy Policy"}),"."]}),t.jsxs("div",{className:"flex flex-col items-center gap-20",children:[t.jsx(y,{axis:"vertical",size:16}),t.jsx(K,{appearance:"primaryLight","data-click":"consent-banner-accept-all","data-from":"consent-banner","data-testid":"consent-banner-submit",onClick:()=>P(O),size:"fill-parent-full",children:"Accept"}),t.jsx(Ve,{appearance:"secondaryLight","data-click":"consent-banner-open-my-preferences","data-from":"consent-banner",onClick:()=>r(!0),children:"Manage Preferences"})]})]}),i&&t.jsxs("div",{children:[t.jsx(_,{"aria-label":"We care about your privacy",as:"h2",color:"primary.400","data-testid":"consent-banner-title",id:n?"modal-title":"",textAlign:"left",variant:"h5",children:"We care about your privacy"}),t.jsx(y,{axis:"vertical",size:16}),t.jsxs(_,{as:"p","data-testid":"consent-banner-description",id:n?"modal-description":"",textAlign:"left",variant:"body5regular",children:["Below you’ll find detailed information about each cookie category and the possibility to customize your settings. You can choose which cookie categories to accept or not. Please keep in mind that blocking some types of cookies may impact how we can deliver or improve our services to you. When you’re ready, click on Confirm My Choices and remember, you can always change your mind later. If you want to learn more about cookies and why we use them, you can visit our ",t.jsx(G,{to:"/privacy",children:"Privacy Policy"})," at any time."]}),t.jsx(Fe,{initialValues:{advertisingTracking:l?.ad_storage?p(l.ad_storage):!0,analyticsTracking:l?.analytics_storage?p(l.analytics_storage):!0,essentialTracking:l?.functionality_storage?p(l.functionality_storage):!0},onSubmit:()=>{},children:({handleSubmit:d,setFieldValue:W,values:x})=>t.jsxs("form",{onSubmit:d,children:[t.jsxs("div",{className:"relative max-h-[200px] overflow-y-scroll",children:[t.jsx(y,{axis:"vertical",size:16}),t.jsx(D,{content:"Essential cookies",dataPrefix:"consent-essential-cookie
22s",fieldName:"essentialTracking"}),t.jsx(y,{axis:"vertical",size:16}),t.jsx(_,{textAlign:"left",variant:"body6regular",children:"This website uses essential cookies and services to enable core website features and provide a seamless user experience. These cookies and services are used to facilitate features such as navigation, remember user preferences, and ensure the security of the website."}),t.jsx(y,{axis:"vertical",size:16}),t.jsx(D,{content:"Analytics cookies",dataPrefix:"consent-analytics-cookies",fieldName:"analyticsTracking",isEditable:!0}),t.jsx(y,{axis:"vertical",size:16}),t.jsx(_,{textAlign:"left",variant:"body6regular",children:"This website uses analytics cookies and services for collecting aggregated data and statistical information. This data helps us analyze and optimize site performance, identify popular content, detect navigation issues, and make informed decisions to enhance the user experience."}),t.jsx(y,{axis:"vertical",size:16}),t.jsx(D,{content:"Advertising cookies",dataPrefix:"consent-advertising-cookies",fieldName:"advertisingTracking",isEditable:!0}),t.jsx(y,{axis:"vertical",size:16}),t.jsx(_,{textAlign:"left",variant:"body6regular",children:"This website uses advertising cookies and services to deliver personalized advertisements, promotions, and offers that are relevant to you. They help optimize ad delivery, measure campaign effectiveness, and enable advertisers to reach specific audiences."})]}),t.jsx(y,{axis:"vertical",size:16}),t.jsx(K,{appearance:"primaryLight","data-click":"consent-banner-confirm-my-preferences","data-from":"consent-banner","data-testid":"consent-banner-submit",onClick:()=>L({ad_personalization:c(x.advertisingTracking),ad_storage:c(x.advertisingTracking),ad_user_data:c(x.advertisingTracking),analytics_storage:c(x.analyticsTracking),functionality_storage:c(x.essentialTracking),personalization_storage:c(x.essentialTracking),security_storage:c(x.essentialTracking)}),size:"fill-parent-full",children:"Confirm my choices"})]})})]})]})},J=5e3,vt=250,bt=j.div`
23  pointer-events: none;
24
25  position: fixed;
26  /* Originally at 1100 but for the first-trial-offer-promo-ab-test we need to put it to this value */
27  z-index: 1099;
28  top: 95px;
29  right: 0;
30
31  overflow: hidden;
32
33  width: 100%;
34
35  &.account-toast-container-stacked {
36    top: 141px;
37  }
38
39  @media (min-width: 768px) {
40    width: ${({isFullWidth:e})=>e?"100%":"calc(100vw - 225px)"};
41  }
42
43  @media (min-width: 1024px) {
44    width: ${({isFullWidth:e})=>e?"100vw":"80vw"};
45  }
46`,St=j.div`
47  pointer-events: auto; /* to help cypress 'see' this element */
48
49  transform: ${({isOpen:e})=>e?"translateY(0)":"translateY(calc(-100% - 1px))"};
50
51  padding: 14px 24px;
52
53  background-color: var(--bgcolor);
54
55  transition: ${({isOpen:e})=>e?"transform 500ms":`transform ${vt}ms`};
56`,wt=({children:e,bgcolor:o=I.colors.primary[300],textColor:n="neutral.100",dataTestId:s="toast-banner",isFullWidth:a=!1,shouldDisplayToast:i=!1,isPermanent:r=!1})=>{const l=C();return u.useEffect(()=>{if(!i||r)return;const h=Date.now()+J,m=()=>l(Ye()),c=setTimeout(m,J),p=()=>{document.visibilityState==="visible"&&Date.now()>=h&&m()};return document.addEventListener("visibilitychange",p),()=>{clearTimeout(c),document.removeEventListener("visibilitychange",p)}},[i,r]),t.jsx(bt,{isFullWidth:a,children:t.jsx(St,{"data-testid":s,isOpen:i,style:{"--bgcolor":o},children:t.jsx(_,{color:n,textAlign:"center",variant:"body5regular",children:e})})})},Et=()=>{const e=g(ve),{shouldDisplayToast:o=!1,content:n=null,style:s=null,isPermanent:a=!1}=e||{},{pathname:i}=N(),r=i.includes("/redeem/invalid-code"),l={color:"neutral.900",backgroundColor:I.colors.tertiary[200]},h=s||l;return!r&&t.jsx(qe,{children:t.jsx(wt,{bgcolor:h.backgroundColor,dataTestId:"root-toast-banner",isFullWidth:!0,isPermanent:a,shouldDisplayToast:o,textColor:h.color,children:n})})},At=({initiallyVisible:e,versionAlgo:o,versionApi:n,versionSite:s})=>{const[a,i]=u.useState(e),r=s?.startsWith("review");return a?t.jsxs("div",{className:M("fixed top-0 z-10000 flex h-(--env-banner-height) w-full items-center justify-between px-8",r?"bg-success-200":"bg-error-200"),children:[t.jsxs(_,{color:"neutral.100",variant:"body5regular",children:["www=",s]}),t.jsxs(_,{color:"neutral.100",variant:"body5regular",children:["api=",n]}),t.jsxs(_,{color:"neutral.100",variant:"body5regular",children:["algo=",o]}),t.jsx("button",{onClick:()=>i(!1),className:"h-(--env-banner-height) w-(--env-banner-height) cursor-pointer border-none bg-transparent text-neutral-100",children:"x"})]}):null},Ct=()=>{const e=C(),o=g(tt);u.useEffect(()=>{o&&e(We({consultationCategory:et.HAIRCARE}))}
56,[o])},X={"/pages/brushes":"Brush Landing Page","/pages/skincare":"Skincare Landing Page","/products/custom-dry-shampoo":"Dry Shampoo Product Page","/products/custom-shampoo":"Shampoo Product Page","/products/custom-conditioner":"Conditioner Product Page","/products/custom-hair-mask":"Hair Mask Product Page","/products/custom-scalp-mask":"Scalp Mask Product Page","/products/custom-hair-oil":"Oil Product Page","/ingredients":"Ingredients Page","/reviews":"Reviews Page","/about":"About Us Page","/checkout/haircare":"Visited Cart","/products/custom-curl-cream":"Curl Cream Product Page","/products/custom-leave-in-conditioner":"Leave-in Conditioner Product Page","/products/custom-hair-supplements":"Supplements Product Page"},Tt=e=>{const o=Object.keys(X).find(n=>oe(n,e)!==null);return o?X[o]:void 0},Pt=async e=>{try{await(await f(()=>import("./thunks-DAMuq2-P.js").then(n=>n.A),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))).post("/v1/trigger/page_visited",{page:e})}catch{}};let A,E,R,z=!1;const Z=()=>{if(!A)return;if(!A.getIsAuthenticated(A.store.getState())){z=!1,R=void 0;return}z||(z=!0,R=void 0),E!==R&&(R=E,E&&Pt(E))},Ot=async({request:e},o)=>{if(!A){const[{store:n},{getIsAuthenticated:s}]=await Promise.all([f(()=>import("./store-9Jkuagqg.js"),__vite__mapDeps([20,7,1,2,3,4,8,9,10,11,12,13,14,15,21,22,17,18,5,6,19,23,24,0,16,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76])),f(()=>import("./react-redux-Ci9Owx2v.js").then(a=>a.bB),__vite__mapDeps([1,2,3,4]))]);A={store:n,getIsAuthenticated:s},n.subscribe(Z)}return E=Tt(new URL(e.url).pathname),Z(),o()},Rt=[["/account/overview","Overview"],["/account/settings","Settings"],[Qe,"Subscription Home"],["/account/subscription/:category","Subscription Edit"],["/account/subscription/:category/snooze","Subscription Snooze"],["/account/history","Order History"],["/faq","FAQ"],["/faq/contact-us","Contact Us"],["/contact","Contact"],["/the-salon","The Salon"],["/ingredients","Ingredients"]],kt=({children:e})=>{const{shouldShow:o}=ae("kustomer-livechat"),n=N(),s=Rt.find(([a])=>oe(a,n.pathname)!==null);return Ze({origin:s?.[1],showLivechat:o&&!!s}),e};let ee=!0;function It(e,{getIsAuthenticated:o,getIsAuthenticating:n,getGuestTokens:s,guestUserSignup:a,guestAuthActions:i}){const r=e.getState();!o(r)&&!n(r)&&(s()?e.dispatch(i.setGuestAuthenticated()):e.dispatch(a()))}const Nt=async({request:e,context:o},n)=>{const[{store:s},{locationChanged:a},{fetchAuthIfNeeded:i},{getIsAuthenticated:r,getIsAuthenticating:l},{getGuestTokens:h},{guestUserSignup:m},{actions:c},{ensureFlagsResolved:p}]=await Promise.all([f(()=>import("./store-9Jkuagqg.js"),__vite__mapDeps([20,7,1,2,3,4,8,9,10,11,12,13,14,15,21,22,17,18,5,6,19,23,24,0,16,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76])),f(()=>import("./slice-MKF_hy5g.js"),__vite__mapDeps([57,7,1,2,3,4,8,9,10,11,12,13,14,15])),f(()=>import("./actions-CELw-Em7.js").then(d=>d.e),__vite__mapDeps([25,7,1,2,3,4,8,9,10,11,12,13,14,15,26,17,18,5,6,19,0,16])),f(()=>import("./react-redux-Ci9Owx2v.js").then(d=>d.bB),__vite__mapDeps([1,2,3,4])),f(()=>import("./AuthClient-CDCjWXKF.js").then(d=>d.y),__vite__mapDeps([14,15,10])),f(()=>import("./thunks-C2dhm5bV.js"),__vite__mapDeps([54,7,1,2,3,4,8,9,10,11,12,13,14,15])),f(()=>import("./slice-nVJHKEuB.js"),__vite__mapDeps([53,7,1,2,3,4,8,9,10,11,12,13,14,15,54])),f(()=>import("./ensure-flags-resolved-CXEceaLI.js"),__vite__mapDeps([77,10,11,12,1,2,3,4,13,46,7,8,9,14,15,25,26,17,18,5,6,19,0,16,44]))]),v=new URL(e.url);s.dispatch(a({location:{pathname:v.pathname,search:v.search}})),o.set(Te,s),o.set(Pe,se);const b=ee;ee=!1,s.dispatch(i());const T={getIsAuthenticated:r,getIsAuthenticating:l,getGuestTokens:h,guestUserSignup:m,guestAuthActions:c},P=()=>{l(s.getState())||(L(),It(s,T))},L=s.subscribe(P);return P(),o.set(Oe,{isAuthenticated:r(s.getState())}),b||await p(s),n()},On=[Nt,Ot];let H,te;async function jt({serverLoader:e}){if(!te){const[{store:o},{persistStore:n},{setUserCountry:s,setUserRegion:a}]=await Promise.all([f(()=>import("./store-9Jkuagqg.js"),__vite__mapDeps([20,7,1,2,3,4,8,9,10,11,12,13,14,15,21,22,17,18,5,6,19,23,24,0,16,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76])),f(()=>import("./index-Bu6xlYDO.js").then(r=>r.e),__vite__mapDeps([21,7,1,2,3,4,8,9,10,11,12,13,14,15])),f(()=>import("./actions-Byz1hZ9I.js"),__vite__mapDeps([45,1,2,3,4,27,7,8,9,10,11,12,13,14,15,17,18,5,6,19,26,0,16,28,29,30,31,32,33,34,35,36,37,38]))]);H=o,te=n(o);const{geolocData:i}=await e();o.dispatch(s(i.userGeolocationGuessedCountry)),o.dispatch(a(i.userGeolocationGuessedRegion))}return null}jt.hydrate=!0;const Lt=u.lazy(()=>f(()=>import("./DataDrivenModalLayout-DWhVO9tL.js"),__vite__mapDeps([78,6,2,79,80,1,3,4,81,82,74,12,70,83,84,73,75,72,85,86,87,17,7,8,9,10,11,13,14,15,18,5,19,88,89,90,91,92,93,42,94,62,56,95,96,97,98,99,100,101,102,103,104,105,106,37,38,64,63,107,43,26,0,16,28,29,30,31,32,33,34,35,36,25,44,45,27,108,58])).then(e=>({default:e.DataDrivenModalLayout}))),Dt=()=>{const e=g(k);return lt(),dt(),Ct(),pt(),le(),ut(),t.jsxs(kt,{children:[w("REACT_APP_ENV")!=="production"&&t.jsx(rt,{}),t.jsx(Ce,{children:t.jsxs(Je,{children:[t.jsx(At,{initiallyVisible:Xe(w("REACT_APP_SHOW_VERSION")??"false"),versionAlgo:w("REACT_APP_VERSION_ALGO"),versionApi:w("REACT_APP_VERSION_API"),versionSite:w("REACT_APP_VERSION_WWW")}),e===re.CA&&t.jsx(xt,{}),t.jsx(Et,{}),t.jsx(ct,{}),t.jsx(Ae,{children:()=>t.jsx(u.Suspense,{fallback:null,children:t.jsx(Lt,{})})}),t.jsx(me,{})]})})]})},Rn=ue(function(){return null}),Ut=()=>null,kn=pe(function(){if(!H)throw new Error("_app/layout rendered before its hydration clientLoader bootstrapped the store");return t.jsxs(Se,{client:se,children:[t.jsx(be,{store:H,children:t.jsx(Dt,{})}),t.jsx(u.Suspense,{fallback:null,children:t.jsx(Ut,{})})]})});export{Rn as HydrateFallback,jt as clientLoader,On as clientMiddleware,kn as default};
57
58//# debugId=8b7f98a4-036c-5fe3-9b3a-cbb489a3de2b

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.