PageSourceSearch

https://www.cosmolex.com/_next/static/chunks/app/%5Blocale%5D/(web…?dpl=dpl_JAcQGpLanorwKpYNRtW5MgkpG2sm

js cosmolex.com collected 2026-09-28 10:36:52 UTC 11,577 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[120],{4481:(e,t,n)=>{"use strict";n.d(t,{GTMPageView:()=>o});var l=n(95155),r=n(12115),s=n(73321);let a=()=>{let e=(0,s.usePathname)(),t=(0,s.useSearchParams)(),n=(0,r.useRef)(!0);return(0,r.useEffect)(()=>{let l=t.toString(),r=l?`${e}?${l}`:e,s=setTimeout(()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"pageview",page:r}),window._hsq=window._hsq||[],window._hsq.push(["setPath",r]),n.current?n.current=!1:window._hsq.push(["trackPageView"])},150);return()=>clearTimeout(s)},[e,t]),null},o=()=>(0,l.jsx)(r.Suspense,{fallback:null,children:(0,l.jsx)(a,{})})},6017:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_6ff62e",variable:"__variable_6ff62e"}},12279:(e,t,n)=>{"use strict";n.d(t,{CanadaVisitorPopupGate:()=>v});var l,r,s,a,o,i=n(95155),c=n(12115),u=n(66503);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}let m=function(e){return c.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 38 38"},e),l||(l=c.createElement("circle",{cx:19,cy:19,r:19,fill:"#EEE"})),c.createElement("mask",{id:"closeIcon_svg__a",width:28,height:28,x:5,y:5,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},r||(r=c.createElement("path",{fill:"#D9D9D9",d:"M5.182 5.182h27.636v27.636H5.182z"}))),s||(s=c.createElement("g",{mask:"url(#closeIcon_svg__a)"},c.createElement("path",{fill:"#5A5A5A",d:"m19 21.133-5.383 5.382q-.43.43-1.066.43t-1.067-.43a1.45 1.45 0 0 1-.43-1.066q0-.636.43-1.067L16.866 19l-5.382-5.382a1.45 1.45 0 0 1-.43-1.066q0-.636.43-1.067t1.067-.43 1.066.43l5.382 5.382 5.382-5.382q.43-.43 1.067-.43.636 0 1.066.43t.43 1.067-.43 1.066L21.132 19l5.382 5.382q.43.43.43 1.067 0 .636-.43 1.066t-1.066.43-1.067-.43z"}))))};function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}let h=function(e){return c.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32"},e),a||(a=c.createElement("g",{clipPath:"url(#flag_svg__a)"},c.createElement("path",{fill:"#F0F0F0",d:"M16 32c8.836 0 16-7.164 16-16S24.837 0 16 0 0 7.164 0 16s7.164 16 16 16"}),c.createElement("path",{fill:"#D80027",fillRule:"evenodd",d:"M0 16a15.99 15.99 0 0 0 9.043 14.41V1.591C3.692 4.179 0 9.654 0 16m32 0a15.99 15.99 0 0 0-9.044-14.408v28.817A15.99 15.99 0 0 0 32 16m-10.437.694-2.783 1.395.695 1.387h-2.78v2.086h-1.391v-2.086h-2.782l.696-1.387-2.78-1.395L11.827 16v-1.395L14.609 16l-1.39-2.781h1.39L16 11.129l1.391 2.09h1.392l-1.391 2.78 2.783-1.395V16z",clipRule:"evenodd"}))),o||(o=c.createElement("defs",null,c.createElement("clipPath",{id:"flag_svg__a"},c.createElement("path",{fill:"#fff",d:"M0 0h32v32H0z"})))))},p="cosmolex-location-popup-shown",x=({showPopup:e})=>{let[t,n]=(0,c.useState)(!1);(0,c.useEffect)(()=>{if(!e||"true"===window.localStorage.getItem(p))return;let t=null,l=null,r=null,s=!1,a=(e=2e3)=>{null!==t||s||(t=window.setTimeout(()=>{s||(window.localStorage.setItem(p,"true"),n(!0))},e))};if(document.querySelector("#osano-cm-window, .osano-cm-window, #osano-cm-dom-info-dialog-open"))a(1e3);else{let e,t;(e=!!document.querySelector('script[src*="cmp.osano.com"]'),t=!!window.Osano?.cm,e||t)?((r=new MutationObserver(()=>{document.querySelector("#osano-cm-window, .osano-cm-window, #osano-cm-dom-info-dialog-open")&&(r?.disconnect(),a())})).observe(document.body,{childList:!0,subtree:!0}),l=window.setTimeout(()=>{r?.disconnect(),a()},8e3)):a()}return()=>{s=!0,null!==t&&window.clearTimeout(t),null!==l&&window.clearTimeout(l),r?.disconnect()}},[e]);let l=()=>{n(!1)};return t&&e?(0,i.jsx)("div",{className:"fixed w-full h-full z-100 bg-black/60 top-0 left-0 flex items-center justify-center",onClick:l,children:(0,i.jsxs)("div",{className:"bg-white px-5 py-9 pt-12 w-full max-w-[355px] rounded-[20px] relative md:max-w-[539px]",onClick:e=>e.stopPropagation(),children:[(0,i.jsx)(m,{className:"w-[24px] h-[24px] absolute top-[17px] right-[17px] cursor-pointer",onClick:l}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("h3",{className:"self-stretch text-center justify-start max-w-[280px] mx-auto tracking-[-1px] mb-4 leading-10 md:leading-12 md:max-w-[350px]",children:[(0,i.jsx)("span",{className:"text-quantum-darkest text-[32px] font-bold font-['Inter'] md:text-[40px]",children:"Hey there!"}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{className:"text-quantum-darkest text-[32px] font-normal font-['Inter'] md:text-[40px]",children:"It looks like you're in Canada."})]}),(0,i.jsx)("p",{className:"self-stretch text-center justify-start text-quantum-darkest text-[16px] font-medium font-['Inter'] max-w-[248px] mx-auto leading-[18px] mb-[25px] md:max-w-full md:text-[20px] md:mb-[45px]",children:"Switch to our Canada site for the best experience."}),(0,i.jsx)("div",{className:"flex justify-center mb-[22px]",children:(0,i.jsxs)(u.CustomLink,{href:"https://www.cosmolex.ca",className:"px-[15px] md:px-[30px] h-[55px] bg-quantum-darkest rounded-[200px] outline-offset-[-1px] inline-flex justify-center items-center mx-auto gap-[15px] cursor-pointer duration-300 transition-all hover:bg-[#070e21]",children:[(0,i.jsx)("div",{className:"text-right justify-start text-white text-[16px] font-normal font-['Inter']",children:"Take me to the Canada site"}),(0,i.jsx)(h,{className:"w-[32px] h-[32px]"})]})}),(0,i.jsx)("button",{type:"button",onClick:l,className:"self-stretch text-center justify-start text-quantum-darkest text-[16px] font-normal font-['Inter'] underline cursor-pointer block w-full",children:"Stay on the U.S. site"})]})]})}):null};var w=n(73321);let v=({enabled:e})=>{let t=(0,w.usePathname)(),[n,l]=(0,c.useState)(!1);return((0,c.useEffect)(()=>
1{if(!e||t.includes("/lp/"))return;let n=!1;return fetch("/api/geo").then(e=>e.json()).then(e=>{n||"CA"!==e.country||l(!0)}).catch(()=>{}),()=>{n=!0}},[e]),t.includes("/lp/"))?null:(0,i.jsx)(x,{showPopup:e&&n})}},21172:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return r}});let l=n(12115);function r(e,t){let n=(0,l.useRef)(null),r=(0,l.useRef)(null);return(0,l.useCallback)(l=>{if(null===l){let e=n.current;e&&(n.current=null,e());let t=r.current;t&&(r.current=null,t())}else e&&(n.current=s(e,l)),t&&(r.current=s(t,l))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51743:()=>{},59061:(e,t,n)=>{"use strict";n.d(t,{QualifiedSPAHandler:()=>s});var l=n(12115),r=n(73321);let s=()=>{let e=(0,r.usePathname)(),t=(0,l.useRef)(null);return(0,l.useEffect)(()=>{t.current!==e&&(t.current=e,window.Qualified&&window.Qualified("spa",!0))},[e]),null}},66503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CustomLink:()=>u});var l=n(95155),r=n(12115),s=n(98500),a=n.n(s),o=n(73321);let i=null,c=()=>(i||(i=n.e(916).then(n.t.bind(n,60916,23)).then(e=>e.default??e)),i);{let e=()=>{c().catch(()=>{})};"requestIdleCallback"in window?window.requestIdleCallback(e,{timeout:3e3}):setTimeout(e,2e3)}let u=({href:e,children:t,className:n,onClick:s,target:i,dangerouslySetInnerHTML:u,rel:d,useDefault:m,preventAction:f,role:h,id:p})=>{let x=(0,o.useRouter)(),w=(0,r.useRef)(!1),v=(0,r.useCallback)(()=>{if(w.current)return;let t="string"==typeof e?e:"";t.startsWith("/")&&"_blank"!==i&&(w.current=!0,x.prefetch(t))},[e,i,x]),b=t=>{if(s&&s(t),f)return void t.preventDefault();let n="string"==typeof e?e:"";if(n.startsWith("#")){t.preventDefault();let e=n.slice(1),l=document.getElementById(e);l&&l.scrollIntoView({behavior:"smooth"});return}let l=window.location.pathname.replace(/\/$/,""),r=n.replace(/\/$/,""),a=window.location.search.length>0;l!==r||a?c().then(e=>{e.start(),setTimeout(()=>{e.done()},3e3)}).catch(()=>{}):t.preventDefault()};return u?.__html?(0,l.jsx)(a(),{href:e,className:n,onClick:b,onMouseEnter:v,onTouchStart:v,onFocus:v,prefetch:!1,target:i,dangerouslySetInnerHTML:{__html:u?.__html||""},rel:d,role:h,id:p}):(0,l.jsx)(a(),{href:e,className:n,onClick:b,onMouseEnter:v,onTouchStart:v,onFocus:v,prefetch:!1,target:i,rel:d,role:h,id:p,children:t})}},83239:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"italic"},className:"__className_80bc87",variable:"__variable_80bc87"}},86906:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var l=n(95155),r=n(12115),s=n(69730),a=n.n(s);let o=({isOpen:e,onClose:t,videoId:n,className:s})=>((0,r.useEffect)(()=>{if(!e)return;let t=document.createElement("script");t.src=`https://fast.wistia.com/embed/medias/${n}.jsonp`,t.async=!0;let l=document.createElement("script");return l.src="https://fast.wistia.com/assets/external/E-v1.js",l.async=!0,document.body.appendChild(t),document.body.appendChild(l),()=>{document.body.removeChild(t),document.body.removeChild(l)}},[e,n]),e)?(0,l.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:t,children:(0,l.jsxs)("div",{className:a()("relative bg-white rounded-lg shadow-lg w-full max-w-4xl p-4",s),onClick:e=>e.stopPropagation(),children:[(0,l.jsx)("div",{className:"relative pt-[56.25%]",children:(0,l.jsx)("div",{className:`wistia_embed wistia_async_${n} seo=true videoFoam=true absolute inset-0 w-full h-full playerColor=0c193a`,children:(0,l.jsx)("div",{className:"wistia_swatch absolute inset-0 w-full h-full opacity-0 overflow-hidden transition-opacity duration-200",children:(0,l.jsx)("img",{src:`https://fast.wistia.com/embed/medias/${n}/swatch`,style:{filter:"blur(0.3125rem)",objectFit:"contain"},alt:"","aria-hidden":"true",onLoad:e=>{let t=e.target.parentNode;t&&(t.style.opacity="1")}})})})}),(0,l.jsx)("button",{className:"absolute text-gray-600 rounded-4xl bg-white w-10 h-10 cursor-pointer flex items-center justify-center top-[-2.8125rem] right-[-2.8125rem] transition-all duration-200 hover:bg-quantum-darkest hover:text-white",onClick:t,children:"✕"})]})}):null},87951:(e,t,n)=>{"use strict";n.d(t,{RouteProgress:()=>s});var l=n(12115),r=n(73321);let s=()=>{let e=(0,r.usePathname)();return(0,l.useEffect)(()=>{let e=!1,t=()=>{n.e(916).then(n.t.bind(n,60916,23)).then(e=>{(e.default??e).done()}).catch(()=>{})},l=setTimeout(()=>{e||t()},300);return()=>{e=!0,clearTimeout(l),t()}},[e]),null}},88751:(e,t,n)=>{Promise.resolve().then(n.bind(n,30282)),Promise.resolve().then(n.t.bind(n,42593,23)),Promise.resolve().then(n.t.bind(n,6017,23)),Promise.resolve().then(n.t.bind(n,83239,23)),Promise.resolve().then(n.t.bind(n,51743,23)),Promise.resolve().then(n.bind(n,12279)),Promise.resolve().then(n.bind(n,98556)),Promise.resolve().then(n.bind(n,4481)),Promise.resolve().then(n.bind(n,59061)),Promise.resolve().then(n.bind(n,87951))},98556:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var l=n(95155),r=n(12115),s=n(73321),a=n(86906);let o=({videoId:e})=>
1{let[t,n]=(0,r.useState)(!1),o=(0,s.useSearchParams)();return(0,r.useEffect)(()=>{"overview-cosmolex"===o.get("video")?n(!0):n(!1)},[o]),(0,l.jsx)(a.A,{isOpen:t,onClose:()=>{n(!1)},videoId:e,className:"!max-w-[1020px]"})}}},e=>{e.O(0,[6643,3334,741,9338,8441,3794,7358],()=>e(e.s=88751)),_N_E=e.O()}]);

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.