PageSourceSearch

https://www.essilor.com/_next/static/chunks/6723.7256e63c1da3c0e4.js

js essilor.com collected 2026-10-09 21:32:48 UTC 14,356 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6723],{6095:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var i=l(12115);let a=["mobile-sm","mobile","tablet","tablet-l","desktop","desktop-m","desktop-l"],n={"mobile-sm":359,mobile:425,tablet:766,"tablet-l":834,desktop:835,"desktop-m":1253,"desktop-l":1920},r=()=>{let[e,t]=(0,i.useState)(),[l,r]=(0,i.useState)(window.innerWidth);return(0,i.useEffect)(()=>{let e=()=>{r(window.innerWidth),t((()=>{let e=window.innerWidth;return e<=n["mobile-sm"]?"mobile-sm":e<=n.mobile?"mobile":e<=n.tablet?"tablet":e<=n["tablet-l"]?"tablet-l":e<=n["desktop-m"]?"desktop-m":e<=n.desktop?"desktop":(n["desktop-l"],"desktop-l")})())};return window.addEventListener("resize",e,{passive:!0}),e(),()=>window.removeEventListener("resize",e)},[]),{size:e,is:(t,i)=>{if(">"===i){let e=a[a.indexOf(t)-1];return!e||l>n[e]}return"<"===i?l<=n[t]:e===t}}}},6555:e=>{e.exports={main:"VideoIFramePlayer_main__4eshV"}},8096:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var i=l(12115);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[l,a]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!e)return;let l=()=>{a((null==e?void 0:e.getBoundingClientRect().y)<0+t)};return window.addEventListener("scroll",l),()=>removeEventListener("scroll",l)},[e]),{onTop:l}}},15279:e=>{e.exports={main:"VideoPlayer_main__K35vd",video:"VideoPlayer_video__2ULr_",play:"VideoPlayer_play__ARq_t",videoWrapper:"VideoPlayer_videoWrapper__dpSOL"}},26723:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>k});var i=l(95155),a=l(12115),n=l(15239),r=l(65361),o=l.n(r),s=l(97748),d=l(67909),c=l(37670),u=l(6095),m=l(8096),p=l(37931),v=l(59844),h=l(29557),x=l(47424),g=l(85246),_=l(78695),b=l(95059),y=l(96364),A=l(43785);let j=["blue-uv-filter-system","blue-uv-capture","blue-uv-essential","eye-protect-system","crizal-sapphire-hr","crizal-easy-pro","crizal-prevencia","crizal-rock","crizal-natural-look","eyezen-plus","eyezen-start","eyezen-boost","eyezen-kids","stellest-gen-1","stellest-gen-2","transitions-gen-s","transitions-xtractive","transitions-xtractive-polarized","transitions-xtractive-new-generation","transitions-color-touch","varilux-x-series","varilux-xr-series","varilux-comfort-max","varilux-physio","varilux-physio-extensee","varilux-physio-w3-plus","varilux-liberty-3-0","varilux-shift","xperio-polarized","xperio-tinted","xperio-tinted-sun","xperio-mirror","xperio-mirrors","xperio-mirror-sun","xperio-polarised","xperio-polarizadas","xperio-z-polaryzacja","xperio-przeciwsloneczne-barwione","xperio-tintadas","xperio-espejadas","xperio-coloridas","xperio-espelhadas","essilor-exceptio"],f=(0,d.default)(()=>l.e(1158).then(l.bind(l,78777)),{loadableGenerated:{webpack:()=>[78777]}}),k=e=>{var t,l,r,d,k,w,T,N;let{data:S,direction:I,mainHeader:B,isDynamic:z}=e,H=(0,a.useRef)(null),{is:L}=(0,u.A)(),{onTop:V}=(0,m.A)(null==H?void 0:H.current,L("desktop-m","<")?56:64),[E]=(0,p.A)((null==S?void 0:S.backgroundImage)||[],!0,!0),[P,C]=(0,a.useState)(null==S||null==(t=S.backgroundImage)||!t.length),[W,R]=(0,a.useState)(null==S||null==(l=S.logo)||!l.length);(0,s.A)(H,{minimalIntersect:!0});let F=!!(null==S?void 0:S.animate)&&P&&W,O=(null==S?void 0:S.enableButtonAsTypeText)||!1;null==S||S.sliderindex;let U=(0,a.useContext)(h.LayoutContext),Y=null==U?void 0:U.storeLocatorURLSegment,D=null==U?void 0:U.storeLocatorURL,G=null==U?void 0:U.storeLocatorCTALabel,[q]=(0,p.A)((null==S?void 0:S.backgroundVideo)||[],!1),Q=(0,v.YI)(q),J=Array.isArray(null==S?void 0:S.images)&&(null==S||null==(r=S.images)?void 0:r.length)>0,K=!J&&E,M=(null==S?void 0:S.retainImageAspect)?"contain":"cover";B=!0;let X=window.location.pathname.toLowerCase(),Z=j.some(e=>X.includes(e)),$=Z?[{label:G||"Find an optician",url:null!=(N=null!=D?D:Y)?N:"/store-locator",target:"_self"}]:[],ee=Z?$:(null==S?void 0:S.callToAction)||[],et={"--cta-alignment":((null==ee?void 0:ee.length)||0)>2?"column":"row"};return(0,a.useEffect)(()=>{let e=document.querySelector(".global-footer");if(e)return e.style.zIndex="8",()=>{e.style.zIndex="1"}},[]),S&&(0,i.jsx)("div",{className:"".concat(o().main," ").concat(o()[(null==S?void 0:S.theme)||"light"]," "),dir:I,ref:H,style:{"--full-height":(null==S?void 0:S.fullHeight)?"100vh":(null==S?void 0:S.height)?null==S?void 0:S.height:(null==S?void 0:S.dynamic)?"700px":"550px","--position":"absolute","--line-clamp":(null==S?void 0:S.dynamic)?8:9,"--line-clamp-mobile":(null==S?void 0:S.dynamic)?12:9,"--title-clamp":3,"--title-clamp-mobile":4,minHeight:(null==S?void 0:S.dynamic)?"700px":"550px"},children:(0,i.jsxs)("div",{className:o().wrapper,style:{minHeight:(null==S?void 0:S.dynamic)?"700px":"500px"}
1,children:[q&&(0,i.jsx)("div",{className:o().videoBackground,children:"Video"===Q?(0,i.jsx)(y.A,{url:q,className:o().video,autoplay:!0,muted:!0,controls:!1}):(0,i.jsx)(A.A,{type:Q,src:q,autoPlay:!0,muted:!0,controls:!1})}),!q&&(E||S.images)&&(0,i.jsxs)("div",{className:o().background,children:[(0,i.jsx)("div",{className:o().imageWrapper,style:{opacity:+!!P},children:J?(0,i.jsx)(f,{images:(null==S?void 0:S.images)||void 0,objectFit:M,alt:"essilor-background",onLoad:()=>C(!0)}):K?(0,i.jsx)(n.default,{fill:!0,src:E||"",alt:"essilor-background",style:{objectFit:M,objectPosition:"fixed"},onLoad:()=>C(!0),unoptimized:!0,priority:!0}):null}),P&&(0,i.jsx)("div",{className:"".concat((null==S?void 0:S.disableGradient)?"":o().gradientOverlay)})]}),(0,i.jsxs)("div",{className:"".concat(o().contentWrapper," ").concat((null==S?void 0:S.backgroundFixed)?o().fixed:""," ").concat(z?o().addPadding:""),children:[(0,i.jsxs)("div",{className:"".concat(o().content),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(_.A,{styleVariants:c.A.setAnimationVariant("OPACITY_SLIDE_UP_VARIANT"),start:F,isFirstTime:!0,duration:.5,easing:"ease-out",elemTarget:H,children:(0,i.jsxs)("div",{className:o().subTitle,children:[(null==S||null==(d=S.subTitle)?void 0:d.icon)&&(0,i.jsx)("span",{className:o().icon,children:(0,i.jsx)(x.A,{type:null==S?void 0:S.subTitle.icon,size:"24"})}),(null==S||null==(k=S.subTitle)?void 0:k.text)&&(0,i.jsx)("div",{className:o().text,children:null==S||null==(w=S.subTitle)?void 0:w.text}),(null==S?void 0:S.subTitle2)&&(0,i.jsx)("div",{className:"tag",children:null==S?void 0:S.subTitle2})]})}),(0,i.jsx)(_.A,{styleVariants:c.A.setAnimationVariant("OPACITY_SLIDE_UP_VARIANT"),start:F,isFirstTime:!0,duration:.5,delay:.25,easing:"ease-out",elemTarget:H,children:(null==S?void 0:S.logo)&&(null==S||null==(T=S.logo)?void 0:T.length)>0&&(0,i.jsx)("div",{className:o().logo,children:(0,i.jsx)(n.default,{src:(0,v.Ad)(Array.isArray(S.logo)?S.logo[0]:S.logo),width:L("mobile","<")?76:133,height:L("mobile","<")?32:56,alt:"essilor-logo",style:{objectFit:"contain"},onLoad:()=>R(!0),unoptimized:!0})})})]}),(0,i.jsxs)(_.A,{styleVariants:c.A.setAnimationVariant("OPACITY_SLIDE_UP_VARIANT"),start:F,isFirstTime:!0,duration:.5,delay:.25,easing:"ease-out",elemTarget:H,children:[(null==S?void 0:S.title)&&(0,i.jsx)("div",{className:o().title,children:(0,i.jsx)(b.A,{className:"h1",type:B?"h1":"h2",children:c.A.html(null==S?void 0:S.title)})}),(null==S?void 0:S.title2)&&(0,i.jsx)("div",{className:o().title2,children:(0,i.jsx)(b.A,{className:"h1",type:B?"h1":"h2",children:c.A.html(null==S?void 0:S.title2)})})]}),(0,i.jsx)(_.A,{styleVariants:c.A.setAnimationVariant("OPACITY_SLIDE_UP_VARIANT"),start:F,isFirstTime:!0,duration:.5,delay:.5,easing:"ease-out",elemTarget:H,children:(null==S?void 0:S.longText)&&(0,i.jsx)("div",{className:o().longText,children:c.A.html(null==S?void 0:S.longText)})})]}),(0,i.jsx)("div",{className:o().ctaWrapper,children:(0,i.jsx)(_.A,{styleVariants:c.A.setAnimationVariant("OPACITY_SLIDE_UP_VARIANT"),start:F,isFirstTime:!0,duration:.5,delay:.75,easing:"ease-out",elemTarget:H,children:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?(0,i.jsx)("div",{className:null===o()||void 0===o()?void 0:o().locator,children:null==ee?void 0:ee.map((e,t)=>(0,i.jsx)(g.A,{type:"primary",url:null==e?void 0:e.url,external:(null==e?void 0:e.type)==="CMExternalLink",children:null==e?void 0:e.label},t))}):(0,i.jsx)("div",{className:o().cta,style:et,children:null==ee?void 0:ee.map((e,t)=>(0,i.jsx)(g.A,{type:(t+1)%2!=0||(null==e?void 0:e.attachment)?"primary":"secondary",theme:"dark",className:o().button,url:(null==e?void 0:e.attachment)?(0,v.OW)(null==e?void 0:e.url,!0):null==e?void 0:e.url,external:null==e?void 0:e.external,onClick:()=>{(null==e?void 0:e.onClick)&&e.onClick()},fullWidth:!0,tabIndex:-1,children:(0,i.jsxs)("span",{tabIndex:-1,children:[(null==e?void 0:e.attachment)&&(0,i.jsx)(x.A,{type:"icon-download",size:"24"}),null==e?void 0:e.label]})},t))})}(O)})}),(null==S?void 0:S.smallText)&&(0,i.jsx)("div",{className:o().smallText,children:(0,i.jsx)("small",{className:"mention",children:c.A.html(null==S?void 0:S.smallText)})})]})]})})}},34827:e=>{e.exports={main:"InstagramEmbed_main__HT5O2"}}
1,37931:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var i=l(12115),a=l(59844),n=l(6095);let r=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{is:r}=(0,n.A)(),[o,s]=(0,i.useState)(void 0);return(0,i.useEffect)(()=>{if((null==e?void 0:e.length)===3){let i=0;r("desktop",">")&&(i=1),r(l?"tablet":"mobile","<")&&(i=2),s(t?(0,a.Ad)(e[i]):e[i])}if(1===e.length)return void s(t?(0,a.Ad)(e[0]):e[0]);s(t?(0,a.Ad)(e[+!!r(l?"tablet":"mobile","<")]):e[+!!r(l?"tablet":"mobile","<")])},[e,a.Ad,r]),[o,function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],l=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if((null==e?void 0:e.length)===3){let i=0;return r("desktop",">")&&(i=1),r(l?"tablet":"mobile","<")&&(i=2),t?(0,a.Ad)(e[i]):e[i]}return 1===e.length?t?(0,a.Ad)(e[0]):e[0]:t?(0,a.Ad)(e[+!!r(l?"tablet":"mobile","<")]):e[+!!r(l?"tablet":"mobile","<")]}]}},43785:(e,t,l)=>{"use strict";l.d(t,{A:()=>x});var i=l(95155),a=l(6555),n=l.n(a),r=l(32580),o=l.n(r),s=l(12115),d=l(59844);let c=new Map([["small",{width:560,height:315}],["medium",{width:640,height:360}],["large",{width:853,height:480}],["largest",{width:1280,height:720}]]),u=e=>{let{src:t,width:l=560,height:a=315,size:n="",autoplay:r=!1,enhancedPrivacy:o=!1,suggestions:s=!0,controls:u=!0,showInfo:m=!0}=e,p=(()=>{let e=[];return e.push("https://player.youku.com/embed/"),e.push((0,d.jI)(t)),e.push(r?"?autoplay=1":"?autoplay=0"),s||e.push("&rel=0"),u||e.push("&controls=0"),m||e.push("&showinfo=0"),e.join("")})(),v=n&&c.has(n.toLowerCase())?c.get(n.toLowerCase()):{width:l,height:a};return(0,i.jsx)("iframe",{height:v.width,width:v.height,src:p,frameBorder:"0"})},m=e=>{let{src:t,width:l=560,height:a=315,autoplay:n=!1,controls:r=!1,muted:o=!0,loop:s=!0}=e,c=(()=>{let e=[];return e.push("https://v.qq.com/txp/iframe/player.html?vid="),e.push((0,d.jI)(t)),e.join("")})();return(0,i.jsx)("iframe",{height:l,width:a,src:c,frameBorder:"0"})};var p=l(34827),v=l.n(p);let h=e=>{let{embedId:t,className:l}=e;return(0,s.useEffect)(()=>{if(window.instgrm)window.instgrm.Embeds.process();else{let e=document.createElement("script");e.src="https://www.instagram.com/embed.js",e.async=!0,e.onload=()=>{var e;return null==(e=window.instgrm)?void 0:e.Embeds.process()},document.body.appendChild(e)}},[]),!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{let{pathname:t}=new URL(e.trim()),l=t.split("/").filter(Boolean);l.length>=2&&l[1]}catch(l){let t=e.match(/(?:\/p\/|\/reel\/|\/tv\/)([A-Za-z0-9_-]+)/);return t?t[1]:null}}(t),(0,i.jsx)("div",{className:"".concat(v().main," instagramblock  ").concat(null!=l?l:""),children:t&&(0,i.jsx)("blockquote",{className:"instagram-media","data-instgrm-permalink":t})})},x=e=>{let{type:t,src:l,className:a,autoPlay:r,controls:s,muted:d,loop:c=!0}=e;return(0,i.jsx)("div",{className:"".concat(n().main," ").concat(a||""),children:"Instagram"===t?(0,i.jsx)(h,{embedId:l}):"Youku"===t?(0,i.jsx)(u,{src:l,autoplay:r,suggestions:!1,controls:s}):"QQ"===t?(0,i.jsx)(m,{src:l,autoplay:r,controls:s,muted:d,loop:c}):(0,i.jsx)(o(),{url:l,width:"100%",height:"100%",playing:r,muted:d,loop:c,controls:s})})}},65361:e=>{e.exports={main:"HeroBannerStatic_main__8bbiQ",wrapper:"HeroBannerStatic_wrapper__Wsmj3",contentWrapper:"HeroBannerStatic_contentWrapper__ws3uR",content:"HeroBannerStatic_content__4Y7lp",subTitle:"HeroBannerStatic_subTitle__IQ4BG",icon:"HeroBannerStatic_icon__I1mX_",ctaWrapper:"HeroBannerStatic_ctaWrapper__4YFk8",cta:"HeroBannerStatic_cta__GaWsd",button:"HeroBannerStatic_button__dWlj4",dark:"HeroBannerStatic_dark__0Uv0H",fixed:"HeroBannerStatic_fixed__CVDxr",videoBackground:"HeroBannerStatic_videoBackground__jzFon",video:"HeroBannerStatic_video__FJrad",background:"HeroBannerStatic_background__RRD4D",imageWrapper:"HeroBannerStatic_imageWrapper__vKcEd",gradientOverlay:"HeroBannerStatic_gradientOverlay__PJ0uW",addPadding:"HeroBannerStatic_addPadding__JUcQC",longText:"HeroBannerStatic_longText__SdA6x",logo:"HeroBannerStatic_logo__kkj6k",title:"HeroBannerStatic_title__tehJa",title2:"HeroBannerStatic_title2__YlPfx",locator:"HeroBannerStatic_locator__Gpthu",smallText:"HeroBannerStatic_smallText__g_GGG"}},95059:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var i=l(95155);l(12115);let a=e=>{let{type:t,className:l,dir:a,children:n}=e;return(0,i.jsx)(t,{dir:a,className:l,children:n})}},96364:(e,t,l)=>{"use strict";l.d(t,{A:()=>c});var i=l(95155),a=l(15279),n=l.n(a),r=l(12115),o=l(59844),s=l(97748),d=l(47424);let c=e=>{let{url:t,className:l,autoplay:a=!1,muted:c=!1,controls:u=!0}=e,m=(0,r.useRef)(null),p=(0,r.useRef)(null),[v,h]=(0,r.useState)(a),x=(0,s.A)(p,{once:!0});(0,r.useEffect)(()=>
1{if(x&&m.current){let e=m.current;return v?e.play():e.pause(),()=>e.pause()}},[v,m,x]);let g=(0,o.Ad)(null==t?void 0:t.replace("/cmsuat","/").replace("/cms","/"));return(0,i.jsx)("div",{className:"".concat(n().main," ").concat(l),ref:p,children:(0,i.jsx)("div",{className:n().video,children:t&&(null==t?void 0:t.length)>0&&x&&(0,i.jsxs)("div",{className:n().videoWrapper,children:[(0,i.jsxs)("video",{loop:!0,preload:"metadata",ref:m,onClick:()=>{h(e=>!e)},playsInline:!0,muted:c,controls:u,children:[(0,i.jsx)("source",{src:g,type:"video/mp4"}),"Your browser does not support the video tag."]}),!v&&(0,i.jsx)("div",{className:n().play,children:(0,i.jsx)(d.A,{type:"icon-Play",color:"#fff",size:"64"})})]})})})}}}]);

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.