1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"RLS-1009"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:glassesusa-app":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a1bb3a7b-de3d-4ac3-9b04-dfa620b153ed",e._sentryDebugIdIdentifier="sentry-dbid-a1bb3a7b-de3d-4ac3-9b04-dfa620b153ed")}catch(e){}}(),(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[8204],{3911(e,t,n){n.d(t,{K:()=>c});var r=n(61018),s=n(7867),a=n(9834),o=n(87474),i=n(29464),l=n(36706);const c=e=>{let{page_type_param2:t,event:n}=o.a[e];(0,r.U)({page_type_param2:t}),(0,i.ok)(),document?.location&&(0,r.U)({originalLocation:`${document.location.protocol}//${document.location.hostname}${document.location.pathname}${document.location.search}`,page:document.location.pathname.replace(/^(.+?)\/*?$/,"$1")+document.location.search}),(0,r.U)({event:n,...(0,i.al)()});let c=l.xM.get(a.F);c&&(0,s.a)(c,{isAlreadyHashed:!0})}},21148(e,t,n){n.d(t,{K:()=>s});var r=n(97312),s=function(e){var t=(0,r.useRef)(e);(0,r.useEffect)(function(){t.current=e},[e]),(0,r.useEffect)(function(){var e=function(e){"hidden"===document.visibilityState&&t.current(e)};return document.addEventListener("visibilitychange",e),function(){return document.removeEventListener("visibilitychange",e)}},[])}},29464(e,t,n){n.d(t,{al:()=>l,ok:()=>o,qe:()=>i});var r=n(61018),s=n(83717),a=n(68994);const o=()=>{(0,r.U)({Backend_visitor_id:(0,a.Y)()}),(0,s.m)()&&(0,r.U)({InNetwork:"UHC"})},i=()=>{(0,r.U)({event:"CDCollector"})},l=()=>{let{pathname:e,search:t}=window.location,n=(e=>e.replace(/^(.+?)\/*?$/,"$1"))(e);return{page:`${n}${t}`}}},62466(e,t,n){n.d(t,{t:()=>i});var r=n(97358),s=n(21664),a=n(87803);const o={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function i(e){const t={...o,...e};return e=>(n,o)=>{function i(e){return(n,o)=>{const i=e(n,o),l=(0,r.o5)(),c=t.actionTransformer(o);null!=c&&(0,s.Z)({category:"redux.action",data:c,type:"info"});const u=t.stateTransformer(i);if(null!=u){const e=(0,r.KU)(),t=e?.getOptions(),n=t?.normalizeDepth||3,s={state:{type:"redux",value:u}};(0,a.uy)(s,3+n),l.setContext("state",s)}else l.setContext("state",null);const{configureScopeWithState:d}=t;return"function"==typeof d&&d(l,i),i}}t.attachReduxState&&(0,r.m6)().addEventProcessor((e,t)=>{try{void 0===e.type&&"redux"===e.contexts.state.state.type&&(t.attachments=[...t.attachments||[],{filename:"redux_state.json",data:JSON.stringify(e.contexts.state.state.value)}])}catch{}return e});const l=e(i(n),o);return l.replaceReducer=new Proxy(l.replaceReducer,{apply:function(e,t,n){e.apply(t,[i(n[0])])}}),l}}},74498(e,t,n){n.d(t,{J:()=>i});var r=n(97312),s=n.n(r);class a extends s().Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){this.props.errorHandler(e,t)}render(){return this.state.hasError?this.props.fallback:this.props.children}}a.defaultProps={fallback:null};const o=(0,r.createContext)({collectChunk:()=>{},finish:async()=>[""]}),i=({component:e,componentProps:t,mf:n,name:i,fallback:l,fallbackForError:c,errorHandler:u})=>{let d={collectChunk:()=>{},finish:async()=>[""]};return"undefined"==typeof window&&(d=(0,r.useContext)(o),d.collectChunk({type:"federation",name:i,mf:n})),s().createElement(a,{fallback:c,errorHandler:u},s().createElement(s().Suspense,{fallback:l},s().createElement(e,{...t,contextValue:d})))}},75155(e,t,n){n.d(t,{e:()=>h});var r=n(65813),s=n(97312),a=n.n(s),o=n(87091),i=n(51821),l=n(78142);var c=n(96782);const u=(e,t)=>"function"==typeof e?t?e(t):"":e;let d=(e,t)=>{if(e?.robots?.length){if(Array.isArray(e.robots))return e.robots.map(e=>(0,r.jsx)("meta",{name:e.name,content:e.value},e.name));if("string"==typeof e.robots&&"newBlogPlost"!==t){let t=JSON.parse(e.robots);return Object.keys(t).map(e=>(0,r.jsx)("meta",{name:e,content:t[e]},e))}return(0,r.jsx)("meta",{name:"robots",content:e.robots},"robots")}return null};const h=a().memo(({page:e="default",replacedValue:t,children:n})=>{let{pathname:s}=(0,o.z)(),{title:a,meta:h,links:p}=(({title:e=l.p3,description:t=l.h1,keywords:n=l.zA,meta:r=[],links:s=[]},a,o="")=>{let i=a.replace(/\/+(?=$|\?)/,"")||"/",c=[{rel:"alternate",media:"only screen and (max-width: 640px)",href:`https://m.glassesusa.com${i}`},{rel:"canonical",href:o||`https://www.glassesusa.com${i}`}];return{title:e,meta:((e,t)=>{let n=[...e,...t].reduce((e,{content:t,...n})=>(e["property"in n?n.property:n.name]={content:t,isProperty:"property"in n},e),{});return Object.keys(n).map(e=>n[e].isProperty?{property:e,content:n[e].content}:{name:e,content:n[e].content})})([{property:"og:url",content:`https://www.glassesusa.com${i}`},{property:"og:title",content:e},{property:"og:description",content:t},{property:"og:type",content:"website"},{property:"og:image",content:l.FH},{property:"og:site_name",content:"GlassesUSA.com"},{name:"description",content:t},{name:"keywords",content:n}],r),links:[...c,...s]}})(l.bL[e],s,t?.canonical);return c.J.getInstance().updateTitle(u(a,t)),(0,r.jsxs)(i.Helmet,{children:[(0,r.jsx)("title",{children:u(a,t)}),h.map(({name:e,property:n,content:s=""})=>e?(0,r.jsx)("meta",{name:e,content:u(s,t)},e):(0,r.jsx)("meta",{property:n,content:u(s,t)},n)),"blog"!==e&&t&&d(t,e)||(0,r.jsx)("meta",{name:"robots",content:"index,follow"},"robots"),p.map(({rel:e,media:t,href:n})=>t?(0,r.jsx)("link",{rel:e,media:t,href:n},n):(0,r.jsx)("link",{rel:e,href:n},n)),n]})});h.displayName="MetaData"},76202(e,t,n){n.d(t,{I:()=>l,x:()=>c});var r=n(62466),s=n(44573),a=n(97358),o=n(79117),i=n(74363);const l={logWithSentry:i.Qg},c={...l,captureException:s.Cp,createReduxEnhancer:r.t,ErrorBoundary:o.t,getCurrentScope:a.o5,logWithSentryEEC:i.Tj,setContext:s.o}},85779(e,t,n){n.r(t),n.d(t,{Quiz:()=>j,QuizConnected:()=>L});var r=n(65813),s=n(97312),a=n.n(s),o=n(95744),i=n(74498),l=n(62527),c=n(72223),u=n(34577),d=n(87091),h=n(42337),p=n(65724),m=n(74026),y=n(17906),f=n(42464),b=n(7921),w=n(46731),g=n(74902),v=n(61022),x=n(76202),E=n(74363),S=n(36706),T=n(89917),A=n(66762),k=n(92750),_=n(66246);const F="loader_as8AK-";let C=a().lazy(()=>n.e(9336).then(n.t.bind(n,19336,23)));const j=({email:e,searchParams:t,setQuizEmail:n})=>{let s=(0,c.Z)(),a=(0,l.useQueryClient)(),h=(0,u.r)(),A=(0,g.iX)(),{pathname:k,searchStr:_}=(0,d.z)(),{data:j}=(0,l.useQuery)({queryKey:[b.p,e],queryFn:async()=>{try{let{data:t}=await(0,v.eL)({baseURL:m.H$,data:{destination:e},method:"post",url:f.H.SUBSCRIPTION_STATUS});return t}catch{return null}},enabled:!!e});return(0,r.jsx)(T.f,{pageType:"quiz",withoutHeader:!0,withoutFooter:!0,children:(0,r.jsx)(i.J,{component:C,componentProps:{onFinishQuiz:async(e,t)=>{t?.userEmail&&n(t.userEmail),((e,t)=>
1{S.xM.set("hasQuizCordialBeenSent",!1),S.xM.set("quizSubscriptionSkipped",t?.isSubscriptionSkipped),S.xM.set("quizSubscriptionShown",t?.isSubscriptionShown),S.xM.set(y.ov,k+_),S.xM.set(y.j0,e),S.CA.set(y.j0,e),S.CA.set(p.u2,0)})(e,t),await a.resetQueries({queryKey:["quizResult"]}),s({href:`/quiz-results?${e}`})},axiosInstance:v.eL,apiUrl:m.H$,user:{email:e||"",isSubscribed:j?.isEmailSubscribed??!1,isPhoneSubscribed:j?.isSmsSubscribed??!1},storeId:w.a,platform:"desktop",searchParams:t,hostRouter:h,sentry:x.x,eventBus:A},errorHandler:(e,t)=>(0,E.Qg)(e,t),fallback:(0,r.jsx)(o.a,{className:F}),mf:"quiz",name:"quiz"})})},L=(0,h.connect)(e=>({email:(0,A.xt)(e).email,searchParams:(0,k.eY)(e)}),{setQuizEmail:_.H})(j)},89917(e,t,n){n.d(t,{f:()=>y});var r=n(65813),s=n(97312),a=n(21148),o=n(42337),i=n(21846),l=n(75155),c=n(87409),u=n(3911),d=n(29464),h=n(27003);let p=(0,n(45778).O)({resolved:{},chunkName:()=>"Footer",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&void 0!==n.m&&!!n.m[t]},importAsync:()=>Promise.all([n.e(8935),n.e(9830),n.e(6388),n.e(5798)]).then(n.bind(n,86388)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){let t=this.resolve(e);return n(t)},resolve:()=>86388},"FooterConnected"),m={addReview:{robots:[{value:"noindex,follow",name:"robots"}]}};const y=(0,s.memo)(({children:e,headerComponent:t,footerComponent:n,pageType:y,withoutFooter:f=!1,withoutHeader:b=!1,sendAnalytics:w,meta:g,footerClassName:v,productSku:x})=>{let E=(0,o.useSelector)(i.p);return(0,s.useLayoutEffect)(()=>{(0,u.K)(y)},[y,x]),(0,s.useEffect)(()=>{w&&w()},[w]),(0,a.K)(()=>{(0,d.qe)()}),(0,s.useEffect)(()=>()=>{(0,d.qe)()},[]),(0,s.useEffect)(()=>{let e=new AbortController;return window.addEventListener(c.qY.ADA_OPENED,()=>{let e="typ"===y?"successPage":y;window.adaEmbed?.setMetaFields({page_type:e,cartId:E??"Null"})},{signal:e.signal}),()=>{e.abort()}},[y,E]),(0,r.jsxs)(r.Fragment,{children:[g||(0,r.jsx)(l.e,{page:y,replacedValue:m[y]}),!b&&(0,r.jsx)(h.Z,{headerComponent:t}),(0,r.jsx)("main",{children:e}),!f&&(n?(0,r.jsx)("footer",{className:v,children:n}):(0,r.jsx)("footer",{children:(0,r.jsx)(p,{})}))]})});y.displayName="PageWrapper"},96782(e,t,n){n.d(t,{J:()=>l});var r=n(84507),s=n(20442),a=n(83717),o=n(36706);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l{static getInstance(){return l.instance||(l.instance=new l),l.instance}constructor(){i(this,"tr",0),i(this,"tc",0),i(this,"unFocused",0),i(this,"title",""),i(this,"load",!1),i(this,"animationStatusStart",!1),i(this,"unFocusedTitle","Eyeglasses â Sale"),i(this,"start",(e,t)=>{!a.A.dFlashBrowser.isEnabled()&&e&&0!==t&&(this.load?this.startAnimateTitle():(window.addEventListener("load",()=>{this.startAnimateTitle()}),window.removeEventListener("load",()=>{this.load=!0})))}),i(this,"startAnimateTitle",()=>{this.returnAndNewTabAnalytics(),this.unFocused=0,this.title=this.title||document.title,window.setInterval(this.checkWindowFocus,1e3),this.returnAndNewTabAnalytics()}),i(this,"checkLoad",()=>{window.addEventListener("load",()=>{this.load=!0})}),i(this,"updateTitle",e=>{this.title=e}),i(this,"resetTitle",()=>{clearTimeout(this.tr),clearTimeout(this.tc),document.title=this.title}),i(this,"updateUnFocusedTitle",e=>{this.unFocusedTitle=e}),i(this,"resetUnFocusedTitle",()=>{this.unFocusedTitle="Eyeglasses â Sale"}),i(this,"changeTitle",()=>{document.title=this.unFocusedTitle,this.tr=window.setTimeout(this.resetTitleAnimate,1e3)}),i(this,"resetTitleAnimate",()=>{document.title=this.title,this.tc=window.setTimeout(this.changeTitle,1e3)}),i(this,"checkWindowFocus",()=>{document.hasFocus()?(this.unFocused=0,this.resetTitle()):1!==this.unFocused&&(this.tc=window.setTimeout(this.changeTitle,500),this.unFocused=1)}),i(this,"returnAndNewTabAnalytics",()=>{let e=window.setInterval(()=>{let t=o.eA.get("GeneralGeneralBrowserTabNewTab-Opened",!1);document.hasFocus()&&0===this.unFocused&&t&&((0,r.iJ)({event:s.Kr}),window.clearInterval(e)),document.hasFocus()||1!==this.unFocused||(0,r.iJ)({event:s.sG})},1e3)})}}i(l,"instance",void 0)}}]); 2//# sourceMappingURL=Quiz.f62c03a4aab51695aee6.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.