PageSourceSearch

https://phia.com/_next/static/chunks/89a671b55c25a592.js?dpl=dpl_43R678eHkav2obq2hwqvLD5sY37H

js phia.com collected 2026-10-01 12:32:13 UTC 32,718 bytes, 13 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="08c1ef44-593f-8210-210e-fcc06152cf1b")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,604085,e=>{"use strict";var t=e.i(532957);e.s(["default",0,function(){let[e,r]=(0,t.useState)("sm");return(0,t.useEffect)(()=>{var e;let t,n=()=>{var e;r((e=window.innerWidth)<640?"sm":e<768?"md":e<1024?"lg":e<1280?"xl":"2xl")},a=(e=n,function(...r){clearTimeout(t),t=setTimeout(()=>e(...r),100)});return n(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[]),{screenSize:e,isMobile:"sm"===e,isTablet:"md"===e,isDesktop:"lg"===e,isLargeDesktop:"xl"===e,isExtraLargeDesktop:"2xl"===e}}])},330484,e=>{"use strict";var t=e.i(674979),r=e.i(251767);e.i(96520);var n=e.i(134249),a=e.i(171209),i=e.i(888793),o=e.i(376868),l=e.i(920729),s=e.i(795138),u=e.i(532957);e.s(["NotFound",0,({fullScreen:e=!0,title:c="Not found",subtitle:d,pageType:f=i.PageType.Unspecified})=>{let p=(0,s.useRouter)(),{logClientSideEvent:h}=(0,a.default)();return(0,u.useEffect)(()=>{h({name:o.MixpanelEventName.ERROR_PAGE_VIEW,properties:{[i.EventParameter.pageType]:f}})},[h,f]),(0,t.jsxs)("div",{className:(0,l.cn)("flex w-full flex-col items-center justify-center gap-6 bg-white",e?"fixed inset-0 z-[9999] h-screen":"min-h-[480px] px-5 py-20"),children:[(0,t.jsx)(n.PhiaNameLogo,{className:"opacity-45",fill:"#666666",height:32,width:120}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,t.jsx)("h1",{className:"display-md text-black",children:c}),d&&(0,t.jsx)("p",{className:"para-lg text-cn-secondary",children:d})]}),(0,t.jsx)(r.default,{className:"w-auto",onClick:()=>{h({name:o.MixpanelEventName.ERROR_PAGE_BACK_TO_DASHBOARD,properties:{[i.EventParameter.pageType]:f}}),p.push("/")},variant:"primary",children:"Back to home"})]})}])},964304,e=>{"use strict";e.s(["openInNewTab",0,e=>{window.open(e,"_blank","noopener,noreferrer")}])},833510,e=>{"use strict";var t=e.i(491359),r=e.i(311996),n=e.i(803374);function a(e){return(0,n.useSyncExternalStore)(r.useCallback(function(t){return e.onNextChange(function r(){t(),e.onNextChange(r)})},[e]),e,e)}(0,t.makeVar)(void 0),(0,t.makeVar)(void 0);let i=(0,t.makeVar)(!1);(0,t.makeVar)(!0);let o=(0,t.makeVar)({show:!1,source:""});(0,t.makeVar)(null),e.s(["useShowSearchFeedbackState",0,()=>a(i),"useShowSignInModalState",0,()=>a(o)],833510)},43506,e=>{"use strict";e.i(40564);var t=e.i(674979),r=e.i(532957),n=e.i(329474),a=e.i(813910),i=e.i(772811),o=e.i(478848),l=e.i(282489),s=r,u=e.i(627277);function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class d extends s.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,r=(0,l.isHTMLElement)(e)&&e.offsetWidth||0,n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft,n.right=r-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:e,isPresent:n,anchorX:a,root:i}){let o=(0,s.useId)(),l=(0,s.useRef)(null),f=(0,s.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:p}=(0,s.useContext)(u.MotionConfigContext),h=function(...e){return r.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=c(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():c(e[t],null)}}}}(...e),e)}(l,e?.ref);return(0,s.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:s,right:u}=f.current;if(n||!l.current||!e||!t)return;let c="left"===a?`left: ${s}`:`right: ${u}`;l.current.dataset.motionPopId=o;let d=document.createElement("style");p&&(d.nonce=p);let h=i??document.head;return h.appendChild(d),d.sheet&&d.sheet.insertRule(`
3          [data-motion-pop-id="${o}"] {
4            position: absolute !important;
5            width: ${e}px !important;
6            height: ${t}px !important;
7            ${c}px !important;
8            top: ${r}px !important;
9          }
10        `),()=>{h.contains(d)&&h.removeChild(d)}},[n]),(0,t.jsx)(d,{isPresent:n,childRef:l,sizeRef:f,children:s.cloneElement(e,{ref:h})})}let p=({children:e,initial:n,isPresent:i,onExitComplete:l,custom:s,presenceAffectsLayout:u,mode:c,anch
10orX:d,root:p})=>{let m=(0,a.useConstant)(h),g=(0,r.useId)(),v=!0,x=(0,r.useMemo)(()=>(v=!1,{id:g,initial:n,isPresent:i,custom:s,onExitComplete:e=>{for(let t of(m.set(e,!0),m.values()))if(!t)return;l&&l()},register:e=>(m.set(e,!1),()=>m.delete(e))}),[i,m,l]);return u&&v&&(x={...x}),(0,r.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[i]),r.useEffect(()=>{i||m.size||!l||l()},[i]),"popLayout"===c&&(e=(0,t.jsx)(f,{isPresent:i,anchorX:d,root:p,children:e})),(0,t.jsx)(o.PresenceContext.Provider,{value:x,children:e})};function h(){return new Map}var m=e.i(718614);let g=e=>e.key||"";function v(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let x=({children:e,custom:o,initial:l=!0,onExitComplete:s,presenceAffectsLayout:u=!0,mode:c="sync",propagate:d=!1,anchorX:f="left",root:h})=>{let[x,P]=(0,m.usePresence)(d),w=(0,r.useMemo)(()=>v(e),[e]),y=d&&!x?[]:w.map(g),b=(0,r.useRef)(!0),_=(0,r.useRef)(w),E=(0,a.useConstant)(()=>new Map),[S,C]=(0,r.useState)(w),[T,j]=(0,r.useState)(w);(0,i.useIsomorphicLayoutEffect)(()=>{b.current=!1,_.current=w;for(let e=0;e<T.length;e++){let t=g(T[e]);y.includes(t)?E.delete(t):!0!==E.get(t)&&E.set(t,!1)}},[T,y.length,y.join("-")]);let k=[];if(w!==S){let e=[...w];for(let t=0;t<T.length;t++){let r=T[t],n=g(r);y.includes(n)||(e.splice(t,0,r),k.push(r))}return"wait"===c&&k.length&&(e=k),j(v(e)),C(w),null}let{forceRender:A}=(0,r.useContext)(n.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:T.map(e=>{let r=g(e),n=(!d||!!x)&&(w===T||y.includes(r));return(0,t.jsx)(p,{isPresent:n,initial:(!b.current||!!l)&&void 0,custom:o,presenceAffectsLayout:u,mode:c,root:h,onExitComplete:n?void 0:()=>{if(!E.has(r))return;E.set(r,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(A?.(),j(_.current),d&&P?.(),s&&s())},anchorX:f,children:e},r)})})};e.s(["AnimatePresence",()=>x],43506)},134249,e=>{"use strict";var t=e.i(89751);e.s(["PhiaNameLogo",()=>t.default])},541788,e=>{"use strict";var t=e.i(674979),r=e.i(369426),n=e.i(376868),a=e.i(464143),i=e.i(532957),o=e.i(171209),l=e.i(888793),s=e.i(795138);let u=(0,i.createContext)(!1);function c(){return(0,i.useContext)(u)}function d({children:e}){let c=function(){let e,t,r=(e=(0,s.usePathname)(),t=(0,s.useSearchParams)(),(0,i.useMemo)(()=>`${e}?${t.toString()}`,[e,t])),{logClientSideEvent:a}=(0,o.default)(),[u,c]=(0,i.useState)(!1),d=(0,i.useRef)(null),f=(0,i.useRef)(null),p=(0,i.useCallback)(()=>{f.current&&(clearTimeout(f.current),f.current=null)},[]),h=(0,i.useCallback)(()=>{d.current=r;let e=function(e){let t=e.replace(/^\//,"").split("/").filter(Boolean);if(0===t.length)return l.PageType.HomePage;switch(t[0]){case"search":return l.PageType.SearchResultPage;case"brands":return t.length>1?l.PageType.BrandPage:l.PageType.BrandsPage;case"editorials":return t.length>1?l.PageType.EditorialPage:l.PageType.Webpage;case"products":return t.length>1?null:l.PageType.Webpage;case"explore":return l.PageType.ExploreForYou;case"profile":if(t.includes("saved"))return null;if(t.includes("collections"))return l.PageType.SavedCollectionsPage;return l.PageType.ProfilePage;case"collection":return l.PageType.CollectionPage;case"collections":return l.PageType.SavedCollectionsPage;case"settings":return l.PageType.SettingsPage;case"onboarding":return l.PageType.OnboardingPage;case"terms":return l.PageType.TermsPage;case"privacy-policy":return l.PageType.PrivacyPage;case"trending":return l.PageType.TrendingPage;case"shop":return l.PageType.ShopPage;case"login":return l.PageType.SigninPage;case"sales":return l.PageType.SalesPage;case"offers":return l.PageType.OffersPage;case"chat":return l.PageType.AiChatPage;default:return l.PageType.Webpage}}(r?new URL(r,window.location.origin).pathname:"/");null!==e&&(a({name:n.MixpanelEventName.PAGE_VIEW,properties:{[l.EventParameter.screenName]:e}}),c(!0))},[r,a]),m=(0,i.useCallback)(()=>{d.current&&r===d.current||(c(!1),p(),f.current=setTimeout(h,500))},[r,p,h]);return(0,i.useEffect)(()=>(m(),p),[m,p]),u}();return!function(){let{logClientSideEvent:e}=(0,o.default)(),t=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(t.current)return;let i=localStorage.getItem(r.PHIA_LAST_HEARTBEAT_KEY)||a.default.get(r.PHIA_LAST_HEARTBEAT_KEY)||null,o=function(e=new Date){return e.toISOString().split("T")[0]}();if(i!==o){t.current=!0;let i=a.default.get(r.PHIA_COOKIE_ID)||null;e({name:n.MixpanelEventName.HEARTBEAT,properties:{today:o,phia_id:i}}),localStorage.setItem(r.PHIA_LAST_HEARTBEAT_KEY,o),a.default.set(r.PHIA_LAST_HEARTBEAT_KEY,o,r.DEFAULT_COOKIE_OPTIONS)}},[e])}(),(0,t.jsx)(u.Provider,{value:c,children:e})}e.s(["default",()=>d,"useHasTrackedPageView",()=>c],541788)},658298,972416,771041,e=>{"use strict";var t=e.i(426165),r=e.i(674979),n=e.i(532957);let a=(0,n.createContext)(void 0);function i({children:e}
10){let[t,i]=(0,n.useState)(null),o=(0,n.useMemo)(()=>({editorialId:t,setEditorialId:i}),[t]);return(0,r.jsx)(a.Provider,{value:o,children:e})}function o(){let e=(0,n.useContext)(a);if(!e)throw Error("useEditorialTracking must be used within EditorialTrackingProvider");return e}e.s(["EditorialTrackingProvider",()=>i,"useEditorialTracking",()=>o],972416),e.i(541788),e.i(40564);var l=e.i(740072);let s=(0,n.createContext)(!1);function u(e,t){return e.userID===t.userID&&e.email===t.email}function c({children:e,user:t}){let{client:n}=(0,l.useStatsigClient)(),a=u(n.getContext().user,t);return(0,r.jsx)(s.Provider,{value:a,children:e})}function d({children:e,phiaId:a}){let{user:i}=(0,t.useAuthContext)(),o=(0,n.useMemo)(()=>({userID:i?.phiaId||a,email:i?.email??""}),[a,i?.email,i?.phiaId]),s=(0,n.useRef)(o).current,{client:d}=(0,l.useClientAsyncInit)("client-NUNJcbKxZDhL54fzl9cBirYjbScVbtz9IjD8HrQsuBR",s),f=u(d.getContext().user,o);return(0,n.useEffect)(()=>{f||d.updateUserAsync(o)},[d,f,o]),(0,r.jsx)(l.StatsigProvider,{client:d,children:(0,r.jsx)(c,{user:o,children:e})})}e.s(["default",()=>d],771041),e.s([],658298)},584235,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return a}});let n=e.r(437695);function a({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},133690,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return s}});let n=e.r(674979),a=e.r(818643),i=e.r(41106),o=e.r(197302),l=e.r(707716);function s({moduleIds:e}){if("u">typeof window)return null;let t=i.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let s=(0,l.getDeploymentIdQueryOrEmptyString)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,o.encodeURIPath)(e)}${s}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,a.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},24124,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u}});let n=e.r(674979),a=e.r(532957),i=e.r(584235),o=e.r(133690);function l(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},u=function(e){let t={...s,...e},r=(0,a.lazy)(()=>t.loader().then(l)),u=t.loading;function c(e){let l=u?(0,n.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,s=!t.ssr||!!t.loading,c=s?a.Suspense:a.Fragment,d=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(o.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(c,{...s?{fallback:l}:{},children:d})}return c.displayName="LoadableComponent",c}},40862,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}});let n=e.r(481258)._(e.r(24124));function a(e,t){let r={};"function"==typeof e&&(r.loader=e);let a={...r,...t};return(0,n.default)({...a,modules:a.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},388071,e=>{"use strict";var t=e.i(674979),r=e.i(40862),n=e.i(532957);let a=e=>(0,t.jsx)(n.Fragment,{children:e.children}),i=(0,r.default)(()=>Promise.resolve(a),{ssr:!1});e.s(["default",0,i])},313769,e=>{"use strict";var t=e.i(674979);e.i(282367);var r=e.i(517994),n=e.i(833510),a=e.i(376868);e.i(185189);var i=e.i(524801),o=e.i(714999),l=e.i(795138),s=e.i(532957),u=e.i(388071);
10function c(){let[e,c]=(0,s.useState)(!1),d=(0,n.useShowSearchFeedbackState)(),f=(0,l.usePathname)();return((0,s.useEffect)(()=>{let e=()=>{window.scrollY>250?c(!0):c(!1)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),"/editorials"===f||"/editorials/view-all"===f||f.startsWith("/editorials/category/"))?null:(0,t.jsx)(u.default,{children:e&&(0,t.jsx)(r.ButtonLarge,{className:(0,i.customCN)("back-to-top-button fixed z-50 !w-fit !min-w-0 rounded-full bg-white shadow-shallowBelow transition-all duration-200 hover:opacity-80","bottom-8","left-1/2 -translate-x-1/2 md:left-1/2 md:-translate-x-1/2",{"!left-8 !translate-x-0 md:!left-12":d}),eventName:a.MixpanelEventName.BACK_TO_TOP_CLICKED,icon:(0,t.jsx)(o.ArrowUpIcon,{className:"text-cn-primary",size:16}),iconPosition:"left",innerClassName:"!h-auto gap-xs px-md py-[10px] max-md:!px-[12px] max-md:!py-[10px]",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},textClassName:"!grow-0",variant:"secondary",children:"Back to top"})})}e.s(["default",()=>c])},845485,e=>{"use strict";var t=e.i(795138);e.s(["default",0,()=>{let e=(0,t.useSearchParams)();return null===e?new URLSearchParams:new Proxy(e,{get:(e,t)=>{let r=e[t];return"function"==typeof r?r.bind(e):r}})}])},809747,e=>{"use strict";var t=e.i(532957);let r=(0,t.createContext)(null);function n({clientId:e,nonce:n,onScriptLoadSuccess:a,onScriptLoadError:i,children:o}){let l=function(e={}){let{nonce:r,onScriptLoadSuccess:n,onScriptLoadError:a}=e,[i,o]=(0,t.useState)(!1),l=(0,t.useRef)(n);l.current=n;let s=(0,t.useRef)(a);return s.current=a,(0,t.useEffect)(()=>{let e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,e.nonce=r,e.onload=()=>{var e;o(!0),null==(e=l.current)||e.call(l)},e.onerror=()=>{var e;o(!1),null==(e=s.current)||e.call(s)},document.body.appendChild(e),()=>{document.body.removeChild(e)}},[r]),i}({nonce:n,onScriptLoadSuccess:a,onScriptLoadError:i}),s=(0,t.useMemo)(()=>({clientId:e,scriptLoadedSuccessfully:l}),[e,l]);return t.default.createElement(r.Provider,{value:s},o)}function a({flow:e="implicit",scope:n="",onSuccess:a,onError:i,onNonOAuthError:o,overrideScope:l,state:s,...u}){let{clientId:c,scriptLoadedSuccessfully:d}=function(){let e=(0,t.useContext)(r);if(!e)throw Error("Google OAuth components must be used within GoogleOAuthProvider");return e}(),f=(0,t.useRef)(),p=(0,t.useRef)(a);p.current=a;let h=(0,t.useRef)(i);h.current=i;let m=(0,t.useRef)(o);m.current=o,(0,t.useEffect)(()=>{var t,r;if(!d)return;let a="implicit"===e?"initTokenClient":"initCodeClient";f.current=null==(r=null==(t=null==window?void 0:window.google)?void 0:t.accounts)?void 0:r.oauth2[a]({client_id:c,scope:l?n:`openid profile email ${n}`,callback:e=>{var t,r;if(e.error)return null==(t=h.current)?void 0:t.call(h,e);null==(r=p.current)||r.call(p,e)},error_callback:e=>{var t;null==(t=m.current)||t.call(m,e)},state:s,...u})},[c,d,e,n,s]);let g=(0,t.useCallback)(e=>{var t;return null==(t=f.current)?void 0:t.requestAccessToken(e)},[]),v=(0,t.useCallback)(()=>{var e;return null==(e=f.current)?void 0:e.requestCode()},[]);return"implicit"===e?g:v}e.s(["GoogleOAuthProvider",()=>n,"useGoogleLogin",()=>a])},757617,795128,570961,460748,e=>{"use strict";var t=e.i(674979);e.i(466206);var r=e.i(539966),n=e.i(369426),a=e.i(171209),i=e.i(604085),o=e.i(888793),l=e.i(376868);e.i(185189);var s=e.i(524801),u=e.i(595541),c=e.i(629790),d=e.i(532957);let f=({forceChrome:e,customHeading:r,onAppStoreClick:a,opensAppStore:i})=>(0,t.jsxs)("div",{className:(0,s.customCN)("relative flex w-full flex-col items-center"),children:[(0,t.jsxs)("div",{className:(0,s.customCN)("flex flex-col items-center"),children:[(0,t.jsx)("h2",{className:(0,s.customCN)("display-md text-center text-cn-onColor"),id:"download-app-heading",children:r||"Available on mobile & desktop."}),!r&&(0,t.jsx)("p",{className:(0,s.customCN)("heading-sans-xs mt-[6px] text-center text-cn-onColor"),children:"Find deals wherever you shop with Phia."})]}),(0,t.jsxs)("div",{className:"mt-[32px] flex gap-[16px]",children:[(0,t.jsx)("a",{"data-install-cta":"download_final","data-install-dialog-only":i?void 0:"true",href:n.APP_STORE_URL,onClick:a,rel:"noopener noreferrer",target:"_blank",children:(0,t.jsx)(c.default,{alt:"Download on App Store",className:"rounded-[12px] border-[2px] border-white/30",height:60,src:"/images/downloadAppStore.svg",style:{filter:"drop-shadow(0px 4px 11px rgba(0, 0, 0, 0.3))"},width:200})}),(0,t.jsx)("a",{"data-install-cta":"download_final",href:n.EXTENSION_URL,rel:"noopener noreferrer",target:"_blank",children:(0,t.jsx)(c.default,{alt:"Download Chrome Extension",className:"rounded-[12px] border-[2px] border-white/30",height:60,src:"/images/downloadChromeStore.svg",style:{filter:"drop-shadow(0px 4px 11px rgba(0, 0, 0, 0.3))"},width:200})})]})]});e.s(["GetThePhia",0,({forceChrome:e=!1,className:n,customHeading:c,pageType:p})=>{let{isMobile:h,isTablet:m}=(0,i.default)(),[g,v]=(0,d.useState)(!1),{logClientSideEvent:x}=(0,a.default)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("section",{"aria-label":e?"Download Phia extension":"Download Phia app",className:(0,s.customCN)("mx-auto hidden max-w-[1400px] px-[40px] md:px-8 lg:block lg:px-16 xl:px-24"),children:(0,t.jsxs)("div",{className:(0,s.customCN)("relative mb-5 mt-14 flex w-full flex-col items-center justify-center gap-6 rounded-[16px] bg-cover bg-center bg-no-repeat px-10 py-[80px] drop-shadow-xl lg:mb-[20px] lg:mt-[120px] lg:min-h-[400px] lg:flex-row lg:items-center lg:justify-center lg:gap-[40px] lg:px-[60px] lg:py-[120px]",n),style:{backgroundImage:"url(/images/hero_image_new.avif)"},children:[(0,t.jsx)("div",{className:"absolute inset-0 rounded-[16px] bg-black/20"}),(0,t.jsx)(u.motion.div,{className:"relative z-10",initial:{filter:"blur(10px)",opacity:0}
10,transition:{duration:.8,ease:"easeOut"},viewport:{once:!0,margin:"-100px"},whileInView:{filter:"blur(0px)",opacity:1},children:(0,t.jsx)(f,{customHeading:c,forceChrome:e,onAppStoreClick:e=>{h||m?x({name:l.MixpanelEventName.APP_CTA_CLICKED,properties:{[o.EventParameter.pageType]:p,[o.EventParameter.module]:o.Module.GetThePhia}}):(e.preventDefault(),v(!0))},opensAppStore:h||m})})]})}),(0,t.jsx)(r.IOSAppDialog,{isOpen:g,module:o.Module.GetThePhia,onClose:()=>v(!1),pageType:p})]})}],795128),e.i(40564);var p=e.i(845485),h=e.i(795138),m=e.i(965003),g=(0,d.createContext)({client:m.default,bootstrap:void 0});function v(e){var t,r,n=e.children,a=e.client,i=e.apiKey,o=e.options,l=(0,d.useRef)(null),s=(0,d.useMemo)(function(){return a?(i&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),o&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),a):(i||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),m.default)},[a,i,JSON.stringify(o)]);return(0,d.useEffect)(function(){if(!a){var e=l.current;e?(i!==e.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),o&&!function e(t,r,n){if(void 0===n&&(n=new WeakMap),t===r)return!0;if("object"!=typeof t||null===t||"object"!=typeof r||null===r)return!1;if(n.has(t)&&n.get(t)===r)return!0;n.set(t,r);var a=Object.keys(t),i=Object.keys(r);if(a.length!==i.length)return!1;for(var o=0;o<a.length;o++){var l=a[o];if(!i.includes(l)||!e(t[l],r[l],n))return!1}return!0}(o,e.options)&&m.default.set_config(o)):(m.default.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),m.default.init(i,o)),l.current={apiKey:i,options:null!=o?o:{}}}},[a,i,JSON.stringify(o)]),d.default.createElement(g.Provider,{value:{client:s,bootstrap:null!=(t=null==o?void 0:o.bootstrap)?t:null==(r=null==a?void 0:a.config)?void 0:r.bootstrap}},n)}var x=function(e){return"function"==typeof e},P=function(e,t){return(P=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};"function"==typeof SuppressedError&&SuppressedError;var w={componentStack:null,exceptionEvent:null,error:null},y=d.default.Component;if("function"!=typeof y&&null!==y)throw TypeError("Class extends value "+String(y)+" is not a constructor or null");function b(){this.constructor=_}function _(e){var t=y.call(this,e)||this;return t.state=w,t}function E(){let e=(0,h.usePathname)(),t=(0,h.useSearchParams)(),r=(0,d.useContext)(g).client;return(0,d.useEffect)(()=>{if(e&&r){let n=window.origin+e;t&&t.toString()&&(n+=`?${t.toString()}`),r.capture("$pageview",{$current_url:n})}},[e,t,r]),null}function S(){return(0,t.jsx)(d.Suspense,{fallback:null,children:(0,t.jsx)(E,{})})}P(_,y),_.prototype=null===y?Object.create(y):(b.prototype=y.prototype,new b),_.prototype.componentDidCatch=function(e,t){var r,n=this.props.additionalProperties;x(n)?r=n(e):"object"==typeof n&&(r=n);var a=this.context.client.captureException(e,r),i=t.componentStack;this.setState({error:e,componentStack:i,exceptionEvent:a})},_.prototype.render=function(){var e=this.props,t=e.children,r=e.fallback,n=this.state;if(null==n.componentStack)return x(t)?t():t;var a=x(r)?d.default.createElement(r,{error:n.error,componentStack:n.componentStack,exceptionEvent:n.exceptionEvent}):r;return d.default.isValidElement(a)?a:(console.warn("[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."),d.default.createElement(d.default.Fragment,null))},_.contextType=g;let C={name:"WEBSITE",api_host:"https://us.i.posthog.com",capture_pageview:!1,capture_pageleave:!0,
10capture_heatmaps:!0,capture_performance:!0,capture_exceptions:!0};function T({children:e}){let r=(0,h.usePathname)(),n=(0,p.default)(),a=n.get("distinct_id")??void 0,i=n.get("session_id")??void 0;return((0,d.useEffect)(()=>{if("/"!==r)return m.default.init("phc_CYGtrJdNpUemHAgV1RZbTUNiWASTdyYRe9C5frAbsTa",{...C,bootstrap:{distinctID:a,sessionID:i}}),()=>{m.default.__loaded&&m.default.opt_out_capturing()}},[a,r,i]),"/"===r)?(0,t.jsx)(t.Fragment,{children:e}):(0,t.jsxs)(v,{client:m.default,children:[(0,t.jsx)(S,{}),e]})}e.s(["PostHogProvider",()=>T],570961);var j=e.i(464143);function k({defaultCookieOptions:e}){let t=(0,p.default)();return(0,d.useEffect)(()=>{let r={utm_id:t.get("utm_id"),utm_source:t.get("utm_source"),utm_medium:t.get("utm_medium"),utm_campaign:t.get("utm_campaign"),utm_term:t.get("utm_term"),utm_content:t.get("utm_content")};j.default.set("phia_utm_params",JSON.stringify(r),e)},[]),null}e.s(["default",()=>k],460748),e.s([],757617)},370531,(e,t,r)=>{t.exports=e.r(183632)},127163,e=>{"use strict";var t=e.i(674979);let r="G-6MHWB3C76K",n=!1;function a(){if(n)return;let e=window,t=e.dataLayer??=[];e.gtag??=function(){t.push(arguments)},e.gtag("js",new Date),e.gtag("config",r),n=!0}var i=e.i(370531),o=e.i(532957);e.s(["default",0,()=>((0,o.useEffect)(()=>{let e;return a(),e=e=>{if(e.defaultPrevented||!(e.target instanceof Element)||("click"===e.type?0!==e.button:1!==e.button))return;let t=e.target.closest("[data-install-cta]"),n=t?.dataset.installCta;if(!t||!n||t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")||"click"===e.type&&"true"===t.getAttribute("data-install-dialog-only")||"auxclick"===e.type&&"A"!==t.tagName)return;let i=t.getAttribute("href")??t.dataset.installUrl;if(i)try{let e=new URL(i,window.location.href).href,t=function(e,t){let r;try{r=new URL(e)}catch{return}return"https:"!==r.protocol?void 0:"apps.apple.com"===r.hostname?"ios":"chromewebstore.google.com"===r.hostname||"chrome.google.com"===r.hostname&&r.pathname.startsWith("/webstore/")?"chrome":"https://phiaco.onelink.me"!==r.origin||"/wrQZ/7idf434r"!==r.pathname||["af_ios_url","af_android_url","af_web_dp","af_r"].some(e=>r.searchParams.has(e))?void 0:/iPhone|iPad|iPod/i.test(t.userAgent)||(/Macintosh|Mac OS X/i.test(t.userAgent)||"MacIntel"===t.platform)&&(t.maxTouchPoints??0)>1?"ios":"chrome"}(e,window.navigator);if(!t)return;a(),window.gtag?.("event","add_extension_click",{send_to:r,cta_position:n,page_type:function(e){if("/"===e)return"homepage";switch(e.split("/")[1]){case"products":return"product";case"brands":return"brand";case"editorials":return"editorial";case"wishlists":return"wishlist";case"chat":return"ai_chat";case"download":return"download";default:return"other"}}(window.location.pathname),link_url:e,destination:t})}catch{}},document.addEventListener("click",e,!0),document.addEventListener("auxclick",e,!0),()=>{document.removeEventListener("click",e,!0),document.removeEventListener("auxclick",e,!0)}},[]),(0,t.jsx)(i.default,{async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${r}`,strategy:"afterInteractive"}))],127163)},737241,e=>{"use strict";let t="$web_only";var r=e.i(795138),n=e.i(532957);function a(){let e=(0,r.usePathname)();return(0,n.useLayoutEffect)(()=>{let e=new URL(window.location.href);("true"===e.searchParams.get(t)||"true"===e.searchParams.get("%24web_only"))&&(e.searchParams.delete(t),e.searchParams.delete("%24web_only"),window.history.replaceState(window.history.state,"",`${e.pathname}${e.search}${e.hash}`))},[e]),null}e.s(["default",()=>a],737241)},780145,e=>{"use strict";e.i(658298);var t=e.i(426165),r=e.i(972416),n=e.i(541788),a=e.i(771041);e.s(["AuthProvider",()=>t.default,"EditorialTrackingProvider",()=>r.EditorialTrackingProvider,"RouteListener",()=>n.default,"StatsigProvider",()=>a.default,"useAuthContext",()=>t.useAuthContext,"useEditorialTracking",()=>r.useEditorialTracking])},919474,e=>{"use strict";var t=e.i(674979),r=e.i(45986),n=e.i(465781);function a({children:e}){return(0,t.jsx)(n.ApolloNextAppProvider,{makeClient:r.getApolloClientSSR,children:e})}e.s(["ApolloWrapper",()=>a])},774850,e=>{"use strict";var t=e.i(40564),r=e.i(532957),n=e.i(795138);function a(){return false}function i(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function o(e){(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let n=(0,r.useRef)(null);return(0,r.useEffect)(()=>
10{if(n.current)e.route&&n.current(e.route);else{let r=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let r=e.scriptSrc?e.scriptSrc:a()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let n=document.createElement("script");return n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.3.1",e.sampleRate&&(n.dataset.sampleRate=e.sampleRate.toString()),e.route&&(n.dataset.route=e.route),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(n.dataset.dsn=e.dsn),a()&&!1===e.debug&&(n.dataset.debug="false"),n.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(n),{setRoute:e=>{n.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});r&&(n.current=r.setRoute)}},[e.route]),null}function l(e){let a=(()=>{let e=(0,n.useParams)(),t=(0,n.useSearchParams)()||new URLSearchParams,r=(0,n.usePathname)();if(!e)return null;let a=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!a)return r;let o=r;try{let e=Object.entries(a);for(let[t,r]of e)if(!Array.isArray(r)){let e=i(r);e.test(o)&&(o=o.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=i(r.join("/"));e.test(o)&&(o=o.replace(e,`/[...${t}]`))}return o}catch(e){return r}})();return r.default.createElement(o,{route:a,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}function s(e){return r.default.createElement(r.Suspense,{fallback:null},r.default.createElement(l,{...e}))}e.s(["SpeedInsights",()=>s])},811889,e=>{e.v({className:"inter_464fbd37-module__l-Mm8q__className"})},17350,e=>{"use strict";e.i(40564);var t=e.i(674979);e.i(466206);var r=e.i(388071),r=r;e.i(282367);var n=e.i(967528),a=e.i(369426);e.i(658298);var i=e.i(426165),i=i,o=e.i(541788),o=o,l=e.i(771041),l=l,s=e.i(550400),u=e.i(740509),c=e.i(671204),d=e.i(920729),f=e.i(809747),p=e.i(464143),h=e.i(103180),m=e.i(811889);let g={className:m.default.className,style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"}};null!=m.default.variable&&(g.variable=m.default.variable);var v=e.i(795138),x=e.i(532957);e.i(757617);var P=e.i(570961),w=e.i(460748),w=w;let y=["/tracking-test"],b=["/brands","/editorials","/products","/shop"];function _({children:e}){let m=(0,v.usePathname)()??"",[_,E]=(0,x.useState)(null),S=y.includes(m),C=b.some(e=>m===e||m.startsWith(`${e}/`));if((0,x.useEffect)(()=>{if(S)return;let e=!1;if((0,s.initMixpanel)()){let e=h.default.get_property("$device_id"),t=h.default.get_property("distinct_id");"string"==typeof e&&p.default.set(a.PHIA_COOKIE_MIXPANEL_DEVICE_ID,e,a.DEFAULT_COOKIE_OPTIONS),"string"==typeof t&&p.default.set(a.PHIA_COOKIE_MIXPANEL_DISTINCT_ID,t,a.DEFAULT_COOKIE_OPTIONS)}return(0,c.getOrCreateWebsitePhiaId)().then(t=>{e||(t&&(p.default.set(a.PHIA_COOKIE_ID,t,a.DEFAULT_COOKIE_OPTIONS),(0,u.writePhiaIdToLocalStorage)(t)),E(t??""))}),()=>{e=!0}},[S]),S)return(0,t.jsx)("main",{className:(0,d.cn)(g.className,"antialiased"),children:e});let T=(0,t.jsx)(x.Suspense,{fallback:e,children:(0,t.jsx)(P.PostHogProvider,{children:(0,t.jsxs)(o.default,{children:[e,(0,t.jsx)(n.Toaster,{})]})})}),j=C?T:_?(0,t.jsx)(l.default,{phiaId:_,children:T}):""===_?T:null,k=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("main",{className:(0,d.cn)(g.className,"antialiased"),children:(0,t.jsx)(f.GoogleOAuthProvider,{clientId:"609155540540-o2jd9akminqk8i00grlttuuabkgvn81h.apps.googleusercontent.com",children:(0,t.jsx)(i.default,{children:j})})}),(0,t.jsx)(x.Suspense,{fallback:null,children:(0,t.jsx)(w.default,{defaultCookieOptions:a.DEFAULT_COOKIE_OPTIONS})})]});return C?k:(0,t.jsx)(r.default,{children:k})}e.s(["default",()=>_],17350)},803806,e=>{e.v(t=>Promise.all(["static/chunks/518a6868afcbf721.js"].map(t=>e.l(t))).then(()=>t(508403)))}]);
11
12//# debugId=08c1ef44-593f-8210-210e-fcc06152cf1b
13//# sourceMappingURL=7d5766ea1138bc61.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.