1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3652,7532],{4083:(e,t,n)=>{n.d(t,{G:()=>l});var i=n(14232),s=n(38248),a=n(50992);function l(e,t){let n,[l,r]=(0,i.useState)((n=(0,s.getCookie)(e),n?.toString()||t));return(0,i.useEffect)(()=>{let n=()=>{let n=(0,s.getCookie)(e),i=n?.toString()||t;i!==l&&r(i)};n();let i=setInterval(n,1e3);return()=>clearInterval(i)},[e,l,t]),[l,(t,n={})=>{let i=n?.domain||(0,a.R2)();(0,s.setCookie)(e,t,{...n,domain:i}),r(t)}]}},8941:(e,t,n)=>{n.r(t),n.d(t,{WebBanner:()=>w});var i=n(37876),s=n(14232),a=n(68827),l=n.n(a),r=n(28748),o=n(31618),d=n.n(o),c=n(28610),u=n(58103),p=n.n(u),m=n(67740),x=n(68483),h=n(33928),f=n(51975),b=n(72207);let g={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/web-banner-close-icon.b46b72a4.svg",height:24,width:24,blurWidth:0,blurHeight:0};var y=n(48339),v=n(36362);function w({title:e,titleColor:t,bannerBackgroundColor:n,message:a,messageColor:o,linkColor:u,mobileScroll:k,rightButtonText:j,ctaButtonColor:N,ctaUrl:C,previewCtaUrl:A,stagingCtaUrl:E,openInNewTab:L,toggleBanner:_,roundedCornersVariation:S}){let{nodeEnv:T}
1=(0,c.f)(),[D,I]=(0,s.useState)(!0),[O,M]=(0,s.useState)(!1),[B,R]=(0,s.useState)(!1);(0,y.M)(({currPos:e})=>{e.y>400?I(!1):e.y<=352&&I(!0)},[D],void 0,!0,100);let z={development:A,preview:A,staging:E,production:C}[x.Be[T||""]],P=(0,v.zh)({opacity:+!B,transform:B?"translateY(-100px)":"translateY(0px)",config:{tension:300,friction:26,mass:1,duration:462},onRest:()=>{B&&_("hide")}});return d()(a)?null:(0,i.jsx)(v.CS.div,{"data-testid":"webBanner",style:P,className:p()("web-banner m-auto w-full overflow-hidden bg-white-1000 transition-all duration-300 ease-in-out desktop:visible desktop:relative desktop:max-h-full desktop:translate-y-0 desktop:opacity-100",{"max-w-[1500px]":S,"max-w-auto":!S,"tiny:visible tiny:max-h-[64px] tiny:translate-y-0 tiny:opacity-100":k&&D,"tiny:invisible tiny:max-h-0 tiny:translate-y-full tiny:opacity-0":k&&!D}),children:(0,i.jsxs)("div",{className:"m-auto flex h-[64px] w-screen min-[651px]:h-[56px]",style:{backgroundColor:n??"#1D252C"},children:[(0,i.jsx)("div",{className:"ml-2 mr-2"}),(0,i.jsxs)("div",{className:"flex flex-1 items-center tiny:my-2 tiny:justify-start desktop:my-3 desktop:justify-center",children:[(0,i.jsx)(h.A,{data:a,overrideOptions:{[r.nA.PARAGRAPH]:(n,s)=>(0,i.jsxs)("p",{className:"web-banner-text text-left text-sm tablet:text-sm desktop:text-base leading-[18px] desktop:leading-[22px] font-normal font-glRepro",style:{color:o??"#1D252C"},children:[(0,i.jsx)("span",{className:"text-left text-sm tablet:text-sm desktop:text-base font-medium font-glRepro",style:{color:t??"#1D252C"},children:e}),s]}),[r.XD.HYPERLINK]:(e,t)=>(0,i.jsx)(b.Ay,{href:e.data.uri,className:"ml-4 whitespace-nowrap font-normal underline transition-colors duration-200 ease-in-out hover:text-navy",style:{color:u||"#00d9b4"},children:t}),[r.XD.EMBEDDED_ENTRY]:(e,t)=>(0,i.jsx)(f.oi,{node:e,colour:"#F3F6F5",fontWeight:"p",children:t})}}),z&&(0,i.jsx)("div",{className:"ml-6",children:(0,i.jsx)(b.Ay,{href:z,target:L?"_blank":"_self",rel:"noreferrer","aria-label":j??"","data-testid":"webBannerCtaLink",attachParams:!0,onClick:()=>{(0,m.e)("CTA Clicked",{page_url:window.location.href,module:"web banner"})},style:{backgroundColor:O?"#0a7266":N??"#003835"},className:"my-auto flex h-10 items-center justify-center gap-2 rounded-[8px] px-3 py-4 text-white-1000 tiny:min-w-[110px] desktop:w-[148px]",onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),children:(0,i.jsx)("p",{className:"text-center text-sm desktop:text-sm font-normal text-inherit",children:j})})})]}),(0,i.jsx)("div",{onClick:()=>R(!0),"data-testid":"webBannerCloseButton",className:"mx-4 flex h-6 w-6 cursor-pointer items-center justify-center self-center rounded-[8px] leading-none",role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&R(!0)},children:(0,i.jsx)(l(),{src:g,alt:"close banner"})})]})})}},17545:(e,t,n)=>{n.d(t,{n:()=>a});var i=n(14232),s=n(48339);function a(e){let[t,n]=(0,i.useState)(!1),[a,l]=(0,i.useState)(!1),r=(0,i.useRef)(null),o=(0,i.useCallback)(t=>{if(!e)return;let i=document.querySelector('[data-blockid="pinned-hero-sequence"]'),s=document.querySelector('[data-e2e="hero"]');if(i instanceof HTMLElement)n(i.getBoundingClientRect().bottom<=window.innerHeight);else if(s instanceof HTMLElement)n(s.getBoundingClientRect().bottom<=0);else{t?.currPos&&(r.current=t.currPos.y);let e=window.scrollY||document.documentElement.scrollTop||document.body.scrollTop||0;n(Math.max(r.current??0,e)>412)}let a=document.getElementById("footer");a&&l(a.getBoundingClientRect().top<window.innerHeight)},[e]);return(0,s.M)(o,[t,e],void 0,!0,100),(0,i.useEffect)(()=>{if(!e)return;let t=document.body,n=!1,i=()=>{n||(n=!0,requestAnimationFrame(()=>{n=!1,o()}))};return t.addEventListener("scroll",i,{passive:!0}),o(),()=>t.removeEventListener("scroll",i)},[e,o]),{scrolledPast:t,footerVisible:a}}},20243:(e,t,n)=>{n.d(t,{A:()=>a});var i=n(37876),s=n(47926);function a({size:e,type:t,icon:n,color:l,shape:r,inverse:o}){return(0,i.jsx)(s.PictogramLite,{size:e,type:t,inverse:o,fileName:n,color:l,shape:r})}n(14232)},27338:(e,t,n)=>{n.d(t,{A:()=>i});let i={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/gl-logo-full-large.25316bd5.svg",height:24,width:155,blurWidth:0,blurHeight:0}},28740:(e,t,n)=>{n.d(t,{e:()=>i});function i(e){if(!e)return!1;let t=e=>!!e&&("text"===e.nodeType?"string"==typeof e.value&&e.value.trim().length>0:Array.isArray(e.content)&&e.content.some(t));return t(e)}}
1,28748:(e,t,n)=>{n.d(t,{XD:()=>i.XD,nA:()=>i.nA});var i=n(47744)},36362:(e,t,n)=>{n.d(t,{CS:()=>i.CS,zh:()=>i.zh});var i=n(54541)},43863:(e,t,n)=>{n.d(t,{R:()=>i});let i={GLCE_PRESENTATION_DOWNLOADED:"GLCE Presentation Downloaded",GLCE_WORKSHOP_DETAILS_SUBMITTED:"GLCE Workshop Details Submitted",LESSON_PLAN_DOWNLOADED:"Lesson Plan Downloaded"}},45342:(e,t,n)=>{n.d(t,{p:()=>s});var i=n(14232);let s=()=>{let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t(window.location.pathname.split("/").filter(e=>e.length>0).includes("classrooms"))},[]),e}},47926:(e,t,n)=>{var i=n(96072);n.o(i,"PictogramLite")&&n.d(t,{PictogramLite:function(){return i.PictogramLite}})},48339:(e,t,n)=>{n.d(t,{M:()=>s});var i=n(39608);let s=(e,...t)=>(0,i.M)(t=>(t.currPos.x&&t.currPos.y||(t.currPos.x=window.pageXOffset,t.currPos.y=window.pageYOffset),e(t)),...t);s.defaultProps={deps:[],element:!1,useWindow:!1,wait:null,boundingElement:!1}},49913:(e,t,n)=>{n.d(t,{A:()=>i});let i={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/close-icon.b6d56d21.svg",height:15,width:15,blurWidth:0,blurHeight:0}},51331:(e,t,n)=>{n.d(t,{A:()=>i});let i={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/arrow-down.1cab016f.svg",height:7,width:13,blurWidth:0,blurHeight:0}},69070:(e,t,n)=>{n.d(t,{F:()=>i});let i=[{key:"ALABAMA",value:"AL"},{key:"ALASKA",value:"AK"},{key:"ARIZONA",value:"AZ"},{key:"ARKANSAS",value:"AR"},{key:"CALIFORNIA",value:"CA"},{key:"COLORADO",value:"CO"},{key:"CONNECTICUT",value:"CT"},{key:"DELAWARE",value:"DE"},{key:"DISTRICT OF COLUMBIA",value:"DC"},{key:"FLORIDA",value:"FL"},{key:"GEORGIA",value:"GA"},{key:"HAWAII",value:"HI"},{key:"IDAHO",value:"ID"},{key:"ILLINOIS",value:"IL"},{key:"INDIANA",value:"IN"},{key:"IOWA",value:"IA"},{key:"KANSAS",value:"KS"},{key:"KENTUCKY",value:"KY"},{key:"LOUISIANA",value:"LA"},{key:"MAINE",value:"ME"},{key:"MARYLAND",value:"MD"},{key:"MASSACHUSETTS",value:"MA"},{key:"MICHIGAN",value:"MI"},{key:"MINNESOTA",value:"MN"},{key:"MISSISSIPPI",value:"MS"},{key:"MISSOURI",value:"MO"},{key:"MONTANA",value:"MT"}
1,{key:"NEBRASKA",value:"NE"},{key:"NEVADA",value:"NV"},{key:"NEW HAMPSHIRE",value:"NH"},{key:"NEW JERSEY",value:"NJ"},{key:"NEW MEXICO",value:"NM"},{key:"NEW YORK",value:"NY"},{key:"NORTH CAROLINA",value:"NC"},{key:"NORTH DAKOTA",value:"ND"},{key:"OHIO",value:"OH"},{key:"OKLAHOMA",value:"OK"},{key:"OREGON",value:"OR"},{key:"PENNSYLVANIA",value:"PA"},{key:"PUERTO RICO",value:"PR"},{key:"RHODE ISLAND",value:"RI"},{key:"SOUTH CAROLINA",value:"SC"},{key:"SOUTH DAKOTA",value:"SD"},{key:"TENNESSEE",value:"TN"},{key:"TEXAS",value:"TX"},{key:"UTAH",value:"UT"},{key:"VERMONT",value:"VT"},{key:"VIRGINIA",value:"VA"},{key:"WASHINGTON",value:"WA"},{key:"WEST VIRGINIA",value:"WV"},{key:"WISCONSIN",value:"WI"},{key:"WYOMING",value:"WY"}]},73192:(e,t,n)=>{n.d(t,{Z:()=>s,h:()=>i});let i="ml-px align-super text-[0.72em] font-semibold tracking-[0.02em]",s="align-super text-[0.34em] font-semibold tracking-normal"},73652:(e,t,n)=>{n.r(t),n.d(t,{Navbar:()=>eT});var i=n(37876),s=n(14232),a=n(58103),l=n.n(a),r=n(68483),o=n(4083),d=n(48339),c=n(54343),u=n(8941),p=n(89099);function m({toggleBanner:e,roundedCornersVariation:t,pageWebBanner:n}){let s=(0,p.useRouter)(),{config:{webBanner:a}={},articleConfig:l}=(0,r.Yu)(),o=(e=>{if(!e.includes("learning-center"))return;let t=e.split("/"),n=t.indexOf("learning-center");if(-1!==n&&t[n+1])return t[n+1]})(s.asPath),d=s.asPath.includes("learning-center"),{sys:x,fields:h}=n??(d&&l?.categorySpecificWebBanner&&l.categorySpecificWebBanner.length>0?function(e,t,n){let i=e?.categorySpecificWebBanner;if(!i||0===i.length)return n;for(let e of i){let i=e.sys.contentType.sys.id;if("variationContainer"===i){let i=function e(t,n,i){let{fields:s}=t;if(!s.variations||0===s.variations.length)return i;for(let t of s.variations)if(t.fields?.pageBlock){let s=t.fields.pageBlock;if("webBanner"===s.sys.contentType.sys.id){let e=s.fields.learningCenterCategory;if(e&&e.fields.slug===n)return s}else if("variationContainer"===s.sys.contentType.sys.id){let t=e(s,n,i);if(t!==i)return t}}return i}(e,t,n);if(i!==n&&i.sys?.contentType?.sys?.id==="webBanner")return i}else if("webBanner"===i){let n=e.fields.learningCenterCategory;if(n&&n.fields.slug===t)return e}}return n}(l,o,l?.globalWebBanner??a):l?.globalWebBanner??a)??{};switch(x?.contentType?.sys?.id){case"variationContainer":return h.variations.forEach(n=>{n.fields?.pageBlock&&(n.fields.pageBlock.fields={...n.fields.pageBlock.fields,toggleBanner:e,roundedCornersVariation:t})}),(0,i.jsx)(c.VariationContainer,{...h,sysId:x?.id});case"webBanner":return(0,i.jsx)("div",{"data-elid":x?.id,children:(0,i.jsx)(u.WebBanner,{...h,toggleBanner:e,roundedCornersVariation:t})});default:return null}}var x=n(68827),h=n.n(x),f=n(75106),b=n(72389),g=n(45342),y=n(72207);function v({isNew:e=!1,isNewLabel:t="New",className:n}){return e?(0,i.jsx)("span",{className:l()("typography-button-sm rounded-full px-2 py-[2px]",n??"bg-brand-weakest text-brand-strongest"),children:t}):null}function w({displayDropdown:e,links:t,desktopLinks:n,onLinkClick:s}){return e?(0,i.jsxs)(i.Fragment,{children:[n&&(0,i.jsx)("div",{className:l()("z-[-10] w-11/12 rounded-2xl bg-white px-6 pb-5 pt-6 drop-shadow-[0_4px_24px_rgba(0,0,0,0.08)]",{"desktop:columns-3":n.length>7,"desktop:columns-1":n.length<=7}),"data-testid":"desktop-mega-nav-dropdown",children:(0,i.jsx)("ul",{className:"m-0 mr-5 w-full list-none p-0",children:n.map(({fields:{title:e,url:t,openInNewTab:a,subcategoryLabel:r,isNew:o,isNewLabel:d}},c)=>{let u=n[c-1]?.fields?.subcategoryLabel!==r?r:null;return(0,i.jsxs)("li",{className:l()("pb-2",{"pt-3":u&&0!=c&&n.length<=7}),children:[u&&(0,i.jsx)("p",{className:"typography-title-4 leading-[22px] desktop:pb-2","data-testid":"subcategorylabel",children:u}),"#"!==t?(0,i.jsxs)("div",{className:l()({"!mb-0 flex items-baseline gap-1 ":o}),children:[(0,i.jsx)(y.Ay,{"data-testid":"nav-dropdown-sublink",href:t,target:a?"_blank":"_self",onClick:s,className:"desktop:border-transparent !mb-0 !mr-0 mt-0 w-fit !cursor-pointer whitespace-nowrap text-[14px] font-normal text-[#1d252c] no-underline hover:border-b-[1px] hover:border-[#80D6B0] hover:text-[#035C67] focus:border-b-[1px] focus:border-b-[#80D6B0] desktop:m-0 desktop:mb-4 desktop:mr-[50px] desktop:text-[14px] desktop:font-normal desktop:leading-6 focus:desktop:text-primary",style:{cursor:"pointer"},children:e}),(0,i.jsx)(v,{isNew:o,isNewLabel:d})]}):(0,i.jsx)("div",{className:"desktop:border-transparent !mb-0 !mr-0 mt-0 w-fit whitespace-nowrap text-[14px] font-normal text-[#1d252c] no-u
1nderline desktop:m-0 desktop:mb-4 desktop:mr-[50px] desktop:text-[14px] desktop:font-normal desktop:leading-6",children:(0,i.jsx)("span",{className:"invisible",children:e})})]},e)})})}),t&&(0,i.jsx)("div",{className:"relative z-[9999] mt-5 rounded-[18px] bg-white p-8 pb-4 shadow-[0_4px_24px_rgba(0,0,0,0.08)]","data-testid":"nav-dropdown",children:(0,i.jsx)("ul",{className:"m-0 w-full list-none columns-2 p-0",children:t.map(({fields:{title:e,url:t,openInNewTab:n}})=>(0,i.jsx)("li",{className:"mb-6",children:(0,i.jsx)(y.Ay,{"data-testid":"nav-dropdown-sublink",href:t,target:n?"_blank":"_self",onClick:s,className:"desktop:border-transparent mt-0 w-fit !cursor-pointer whitespace-nowrap text-[14px] font-normal text-[#1d252c] no-underline desktop:m-0 desktop:mb-4 desktop:mr-[50px] desktop:border-b desktop:text-[14px] desktop:font-normal desktop:leading-6 hover:desktop:border-b hover:desktop:border-[#1d252c] hover:desktop:text-[#1d252c] focus:desktop:border-b focus:desktop:border-[#1d252c] focus:desktop:text-[#1d252c]",style:{cursor:"pointer"},children:e})},e))})})]}):null}var k=n(20243);let j={teal:{capsule:"bg-brand-weakest text-brand-strongest",pictogramType:"brand"},grape:{capsule:"bg-accent1-weakest text-accent1-strongest",pictogramType:"accent-1"},lagoon:{capsule:"bg-accent2-weakest text-accent2-strongest",pictogramType:"accent-2"},lime:{capsule:"bg-accent3-weakest text-accent3-strongest",pictogramType:"accent-3"},tangerine:{capsule:"bg-accent4-weakest text-accent4-strongest",pictogramType:"accent-4"},piggybank:{capsule:"bg-accent5-weakest text-accent5-strongest",pictogramType:"accent-5"}},N={brand:"teal",purple:"grape",blue:"lagoon",green:"lime",orange:"tangerine",red:"piggybank"},C=e=>{let t=e&&N[e]?N[e]:e,n=t&&Object.prototype.hasOwnProperty.call(j,t)?t:"teal";return j[n]};var A=n(79632);function E(e){return e?.trim()||null}function L({src:e,alt:t,width:n,height:s,roundedClass:a,href:r,onLinkClick:o}){let d=(0,i.jsx)("div",{className:l()("overflow-hidden",a),children:(0,i.jsx)(A.be,{src:e,alt:r?"":t,width:n,height:s,layout:"responsive",loading:"lazy"})});return r?(0,i.jsx)(y.Ay,{href:r,onClick:o,"data-testid":"mega-nav-promo-link","aria-label":t,className:"block no-underline transition-opacity hover:opacity-90 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#035C67]",children:d}):d}function _({headline:e,className:t,href:n,onLinkClick:s}){return n?(0,i.jsx)(y.Ay,{href:n,onClick:s,"data-testid":"mega-nav-headline-link",className:"group/headline block w-fit no-underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#035C67]",children:(0,i.jsx)("p",{className:l()(t,"group-hover/headline:text-[#035C67] group-focus-visible/headline:text-[#035C67]"),children:e})}):(0,i.jsx)("p",{className:t,children:e})}function S({displayDropdown:e,megaColumns:t,onLinkClick:n}){return e&&t?.length?(0,i.jsx)("div",{className:"relative z-10 flex gap-6 rounded-2xl bg-white p-4 drop-shadow-[0_4px_24px_rgba(0,0,0,0.08)]","data-testid":"desktop-mega-dropdown",children:t.map(e=>{let t=e?.fields??e,s=t?.promoImage?(0,b.M5)(t.promoImage):null,a=E(t?.promoImageLink),l=C(t?.colorTheme);return(0,i.jsxs)("div",{className:"flex w-[264px] flex-col gap-4",children:[s?.src&&(0,i.jsx)(L,{src:s.src,alt:s.alt||t?.eyebrow||"",width:264,height:140,roundedClass:"rounded-[8px]",href:a??void 0,onLinkClick:n}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[t?.eyebrow&&(0,i.jsx)("span",{className:`w-fit rounded-full px-2 py-[2px] text-[14px] font-medium ${l.capsule}`,children:t.eyebrow}),t?.headline&&(0,i.jsx)(_,{headline:t.headline,className:"m-0 text-[22px] font-medium leading-[26.4px] text-[#111212]",href:a??void 0,onLinkClick:n})]}),(0,i.jsx)("div",{className:"h-px w-full bg-[#F1F1F1]"}),(0,i.jsx)("ul",{className:"m-0 flex list-none flex-col gap-3 p-0",children:(t?.links??[]).map(e=>{let t=e?.fields??e,s=(t?.subLinks??[]).map(e=>e?.fields??e).filter(e=>e&&(e.title||e.url));return(0,i.jsxs)("li",{className:"flex flex-col gap-1",children:[(0,i.jsxs)(y.Ay,{href:t?.url||"#",target:t?.openInNewTab?"_blank":"_self","data-testid":"mega-nav-link",onClick:n,className:"group/link flex items-center gap-2 no-underline",children:[t?.iconName&&(0,i.jsx)("span",{className:"shrink-0",children:(0,i.jsx)(k.A,{icon:t.iconName,type:l.pictogramType,shape:"circle",size:"xs",inverse:!0})}),(0,i.jsx)("span",{className:"!mb-0 min-w-0 flex-1 text-[14px] font-medium leading-[16.8px] text-[#111212] group-hover/link:text-[#035C67] group-focus-visible/link:text-[#035C67]",children:t?.title}),(0,i.jsx)(v,{isNew:t?.isNew,isNewLabel:t?.isNewLabel,className:`shrink-0 ${l.capsule}`})]}),s.length>0&&(0,i.jsx)("div",{className:"flex gap-3 pl-8",children:s.map(e=>(0,i.jsx)(y.Ay,{href:e.url||"#",target:e.openInNewTab?"_blank":"_self","data-testid":"mega-nav-sublink",onClick:n,className:"text-[12px] leading-[16
1px] text-[#5e6161] no-underline hover:text-[#035C67] focus-visible:text-[#035C67]",children:e.title},e.title||e.url))})]},t?.title)})})]},t?.eyebrow)})}):null}function T(){return(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"relative text-[#1D252C]",children:(0,i.jsx)("path",{d:"M17.6381 5.83417L17.6381 9.33646L10.9716 15.8335L4.30473 9.33613L4.30473 5.83539L4.30657 5.83348L10.9716 12.3303L17.6374 5.83348L17.6381 5.83417Z",fill:"currentColor"})})}function D({name:e,title:t,url:n,links:a,desktopLinks:r,megaColumns:o,selected:d,setSelected:c}){let u=(0,s.useRef)(null),p=(0,s.useRef)(null);(0,s.useEffect)(()=>()=>h(0),[]);let m=()=>{d?c(void 0):c(e||t)},x=e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),m())},h=(0,s.useCallback)((n=150)=>{if(p.current&&clearTimeout(p.current),!n){p.current=null;return}p.current=setTimeout(()=>{c(n=>n===(e||t)?void 0:n),p.current=null},n)},[c,e,t]),f=()=>{h(0),d||c(e||t)},b=()=>{h()};return(0,i.jsx)("ul",{className:"m-0 flex p-0",children:(0,i.jsx)("li",{className:"relative mr-4 mt-0 flex list-none items-center justify-between text-[14px] font-medium",children:o?.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("button",{type:"button","aria-controls":`nav-expanded-content-${e}`,"aria-expanded":d,onClick:m,onKeyDown:x,onMouseEnter:f,onMouseLeave:b,className:"relative flex w-full items-center justify-between rounded-md px-2 py-1",children:[(0,i.jsx)("span",{className:"!typography-title-4 mr-1 leading-[22px] text-[#1d252c]",children:e||t}),(0,i.jsxs)("div",{className:"relative -m-2 flex justify-center p-2","data-testid":"desktop-mega-navbar-rich",children:[(0,i.jsx)("div",{className:l()("transition-transform duration-300","ease-[cubic-bezier(0,0.7,0.3,1)]",d?"rotate-180":"rotate-0"),children:(0,i.jsx)(T,{})}),(0,i.jsx)("div",{id:"dropdown-caret",className:l()("absolute top-7 block h-0 w-0 rotate-45 border-[10px] border-r-[5px] border-solid border-white",{hidden:!d}),style:{zIndex:1,boxShadow:"0 0 0 rgba(0, 0, 0, 1)"}})]})]}),(0,i.jsx)("div",{className:"absolute -left-6 top-4 pt-5",id:`nav-expanded-content-${e}`,onMouseEnter:()=>h(0),onMouseLeave:()=>h(),children:(0,i.jsx)(S,{displayDropdown:d,megaColumns:o,onLinkClick:()=>c(void 0)})})]}):r?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("button",{type:"button","aria-controls":`nav-expanded-content-${e}`,"aria-expanded":d,onClick:m,onKeyDown:x,onMouseEnter:f,onMouseLeave:b,className:"relative flex w-full items-center justify-between rounded-md px-2 py-1",children:[(0,i.jsx)("span",{className:"!typography-title-4 mr-1 leading-[22px] text-[#1d252c]",children:e||t}),(0,i.jsxs)("div",{className:"relative -m-2 flex justify-center p-2","data-testid":"desktop-mega-navbar",children:[(0,i.jsx)("div",{className:l()("transition-transform duration-300","ease-[cubic-bezier(0,0.7,0.3,1)]",d?"rotate-180":"rotate-0"),children:(0,i.jsx)(T,{})}),(0,i.jsx)("div",{id:"dropdown-caret",className:l()("absolute top-7 block h-0 w-0 rotate-45 border-[10px] border-r-[5px] border-solid border-white",{hidden:!d}),style:{zIndex:1,boxShadow:"0 0 0 rgba(0, 0, 0, 1)"}})]})]}),(0,i.jsx)("div",{className:"absolute -left-6 top-4 pt-5",id:`nav-expanded-content-${e}`,onMouseEnter:()=>h(0),onMouseLeave:()=>h(),children:(0,i.jsx)(w,{displayDropdown:d,desktopLinks:r,onLinkClick:()=>c(void 0)})})]}):a?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("button",{type:"button","aria-controls":`nav-expanded-content-${e}`,"aria-expanded":d,onClick:m,onKeyDown:x,onMouseEnter:f,onMouseLeave:b,className:"relative flex w-full items-center justify-between rounded-md px-2 py-1",children:[(0,i.jsx)("span",{className:"!typography-title-4 mr-1 leading-[22px] text-[#1d252c]",children:e||t}),(0,i.jsxs)("div",{className:"relative -m-2 flex justify-center p-2","data-testid":"desktop-mega-navbar-links",children:[(0,i.jsx)("div",{className:l()("transition-transform duration-300","ease-[cubic-bezier(0,0.7,0.3,1)]",d?"rotate-180":"rotate-0"),children:(0,i.jsx)(T,{})}),(0,i.jsx)("div",{id:"dropdown-caret",className:l()("absolute top-7 block h-0 w-0 rotate-45 border-[10px] border-r-[5px] border-solid border-white",{hidden:!d}),style:{zIndex:1,boxShadow:"0 0 0 rgba(0, 0, 0, 1)"}})]})]}),(0,i.jsx)("div",{className:"absolute -left-1 top-4 pt-5",id:`nav-expanded-content-${e}`,onMouseEnter:()=>h(0),onMouseLeave:()=>h(),children:(0,i.jsx)(w,{displayDropdown:d,desktopLinks:a,onLinkClick:()=>c(void 0)})})]}):(0,i.jsx)("div",{className:"relative flex items-center justify-between rounded-md px-2 py-1",children:(0,i.jsx)(y.Ay,{href:n,ref:u,className:"!typography-title-4 mr-1 leading-[22px] text-[#1d252c] no-u
1nderline",children:e||t})})})})}var I=n(30098),O=n(67843),M=n(76219),B=n.n(M),R=n(91040);function z({title:e,url:t,description:n,icon:s,borderTop:a=!1,onClick:l}){return(0,i.jsx)("li",{className:`-mx-4 mb-3 border-[#1A353826] px-4 first:border-b first:pb-[18.5px] last:mb-0 ${a&&"border-t pt-[18.5px]"}`,children:(0,i.jsx)(y.Ay,{className:`block w-full ${l&&"cursor-pointer"}`,href:t??"",onClick:()=>l?.(),children:(0,i.jsxs)("span",{className:"flex w-full flex-row",children:[s&&(0,i.jsx)("span",{style:{width:"20px",height:"20px",marginRight:"18px"},children:(0,i.jsx)(h(),{alt:"profile icon",src:s})}),(0,i.jsxs)("span",{className:"flex flex-1 flex-col text-base",children:[(0,i.jsx)("span",{className:"mb-1 break-all font-medium",children:e}),n&&(0,i.jsx)("span",{className:"text-sm font-normal",children:n})]})]})})})}let P={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/cog-icon.a1e3bdd7.svg",height:22,width:22,blurWidth:0,blurHeight:0},F={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/location-icon.c13e4ea0.svg",height:22,width:22,blurWidth:0,blurHeight:0},H={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/pin-icon.c6114843.svg",height:24,width:18,blurWidth:0,blurHeight:0},W={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/profile-icon.49c960af.svg",height:22,width:18,blurWidth:0,blurHeight:0},$={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/logout-icon.63e7560d.svg",height:20,width:22,blurWidth:0,blurHeight:0};function q({givenName:e,state:t,school:n,role:s,hidden:a,isPartner:l}){let r=(0,p.useRouter)(),o=async()=>{try{let e=await R.A.post("/api/auth/logout");e.data?.logoutUrl?window.location.href=e.data.logoutUrl:r.push("/classrooms")}catch(e){r.push("/classrooms")}};return(0,i.jsx)("div",{className:`absolute right-0 top-12 z-40 w-64 rounded-2xl bg-white p-4 text-[#1D252C] shadow-dropdown transition duration-500 ${a?"pointer-events-none -translate-y-1 opacity-0":"translate-y-0 opacity-100"}`,"data-testid":"profile-dropdown",children:(0,i.jsxs)("ul",{children:[(0,i.jsx)(z,{title:e,description:"Profile"}),t&&(0,i.jsx)(z,{title:B()(t.toLowerCase()),description:"State",icon:F}),s&&(0,i.jsx)(z,{title:s,description:"Role",icon:W}),n&&!l&&(0,i.jsx)(z,{title:n,description:"School",icon:H}),(0,i.jsx)(z,{url:"/classrooms/lesson-library/u/settings",title:"Settings",icon:P,borderTop:!0}),(0,i.jsx)(z,{title:"Log out",icon:$,onClick:o})]})})}let G={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/location-icon-green.8c38f16d.svg",height:16,width:16,blurWidth:0,blurHeight:0};function K({firstName:e,thumbnail:t,state:n,dropdownHidden:a,onClickHandler:l}){let r=(0,s.useRef)(null);return(0,s.useEffect)(()=>{a&&r.current?.blur()},[a]),(0,i.jsxs)("div",{className:"flex items-center","data-testid":"profile-widget",children:[n&&(0,i.jsxs)("span",{className:"mr-3 hidden items-center rounded-[40px] bg-[#7AE8B626] px-2 py-1 font-medium leading-6 tablet:flex",children:[(0,i.jsx)(h(),{alt:"location",src:G}),(0,i.jsx)("span",{className:"ml-2",children:B()(n.toLowerCase())})]}),(0,i.jsxs)("button",{className:"flex items-center",onClick:l,ref:r,children:[(0,i.jsx)("span",{className:"mr-3 inline-block font-medium leading-4",children:e.length>20?`${e.substring(0,20)}...`:e}),t?(0,i.jsx)(h(),{alt:"user thumbnail",src:t,width:32,height:32,className:"bg-zinc-100 rounded-full","data-testid":"user-thumbnail-image"}):(0,i.jsx)("span",{className:"bg-zinc-100 inline-block h-8 w-8 rounded-full font-semibold leading-8","data-testid":"user-thumbnail-initial",children:e&&e[0]})]})]})}function Y({isPartner:e}){let{educator:t}=(0,O.ur)(),[n,a]=(0,s.useState)(!0),[l,r]=(0,s.useState)("none");return(0,f.d)(()=>a(!0),!n),(0,s.useEffect)(()=>r("block"),[]),(0,s.useEffect)(()=>{if(n)return;let e=e=>{let t=e.target,n=t?.parentElement;for(;n?.getAttribute;){if("profile-dropdown-menu"===n.getAttribute("data-blockid"))return;n=n.parentElement}a(!0)};return window.addEventListener("click",e),()=>window.removeEventListener("click",e)},[n]),(0,i.jsxs)("div",{className:"relative","data-testid":"profile-dropdown-menu","data-blockid":"profile-dropdown-menu",style:{display:l},children:[(0,i.jsx)(K,{firstName:t?.givenName||"",thumbnail:t?.image,state:t?.state,dropdownHidden:n,onClickHandler:()=>a(!n)}),(0,i.jsx)(q,{...t,hidden:n,isPartner:e})]})}var U=n(51331);let V={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/ic_external_link_filled.1bf27394.svg",height:13,width:13,blurWidth:0,blurHeight:0};var X=n(60513),Z=n(67740),J=n(43863),Q=n(82647),ee=n(93247),et=n(87280),en=n(3997),ei=n(69070),es=n(49913),ea=n(21943);let el=X.z.object({eventDate:X.z.string().min(1,"Valid event date is required").trim(),eventDescription:X.z.string().min(1,"Event/Group description is required").trim(),lessonTopic:X.z.string().min(1,"Lesson topic is required").trim(),lessonDuration:X.z.string().min(1,"Lesson duration is required").trim(),numberOfParticipants:X.z.string().min(1,"Number of participants is required").trim(),locationName:X.z.string().min(1,"Location name is required").trim(),streetAddress:X.z.string().optional(),city:X.z.string().optional(),state:X.z.string().optional(),zipCode:X.z.string().min(1,"ZIP code is required").trim()}),er={eventDate:"",eventDescription:"",lessonTopic:"",lessonDuration:"",numberOfParticipants:"",locationName:"",streetAddress:"",city:"",state:"",zipCode:""};function eo({isOpen:e,onClose:t,partnerLogo:n,customLinks:a,partnerDisplayName:l}
1){let[r,o]=(0,s.useState)(er),[d,c]=(0,s.useState)({}),{educator:u}=(0,O.ur)();(0,s.useEffect)(()=>(e?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden"),()=>{document.body.classList.remove("overflow-hidden")}),[e]);let p=(e,t)=>{let n=Array.isArray(t)?t.length>0?t[0]:"":t;o(t=>({...t,[e]:n})),d[e]&&c(t=>({...t,[e]:void 0}))},m=e=>(t,n)=>p(e,n),x=async()=>{(()=>{try{return el.parse(r),c({}),!0}catch(e){if(e instanceof X.z.ZodError){let t={};e.errors.forEach(e=>{e.path.length>0&&(t[e.path[0]]=e.message)}),c(t)}return!1}})()&&(await (0,Z.e)(J.R.GLCE_WORKSHOP_DETAILS_SUBMITTED,{...u,event_date:r.eventDate,event_description:r.eventDescription,lesson_topic:r.lessonTopic,lesson_duration:r.lessonDuration,participant_count:r.numberOfParticipants,location_name:r.locationName,street_address:r.streetAddress,city:r.city,state:r.state,postal_code:r.zipCode,email_opted_in:u?.reminder==="1",custom_links:a?.map(e=>({partner_custom_link_url:e.href,partner_custom_link_text:e.title})),...(0,ea.z)()}),f())},f=()=>{o(er),c({}),t()};return e?(0,i.jsx)("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[999] flex items-start justify-center overflow-y-auto overflow-x-hidden bg-black/50 px-4 py-[2vh]",children:(0,i.jsxs)("div",{className:"m-auto flex h-fit w-[90%] max-w-[736px] flex-col items-center rounded-card-shape bg-white p-6 shadow-[0_2px_6px_0_rgba(0,0,0,0.1),0_0px_2px_0_rgba(0,0,0,0.08),0_0px_0px_1px_rgba(0,0,0,0.2)] mobile:w-[95%] mobile:p-8 tablet:w-[85%] tablet:p-10 desktop:w-full",children:[(0,i.jsxs)("div",{className:"mb-8 flex w-full flex-col items-center ",children:[(0,i.jsxs)("div",{className:"relative mb-9 flex w-full gap-40",children:[(0,i.jsx)("button",{className:"absolute left-0 top-0 cursor-pointer",onClick:f,children:(0,i.jsx)(h(),{src:es.A,alt:"Close",height:18,width:18,className:"cursor-pointer"})}),n&&(0,i.jsx)("div",{className:"mx-auto mb-6 h-6 max-h-6",children:(0,i.jsx)(h(),{src:n.src,alt:n.alt,height:48,width:320,unoptimized:!0,style:{objectFit:"contain"}})})]}),(0,i.jsxs)("p",{className:"typography-title-3 max-w-[37.5rem]","data-testid":"description",children:["When you conduct a financial literacy session, please fill out the form below. We'll share these details with ",l," ","and email you a copy if you've enabled email confirmations in your settings."]})]}),(0,i.jsxs)("div",{className:"w-full max-w-[75%]",children:[(0,i.jsx)("h3",{className:"typography-title-3 mb-2",children:"Basic Details"}),(0,i.jsx)(ee.J,{required:!0,type:en.G.DATE,label:"Event Date",value:r.eventDate??"",error:d.eventDate,handleOnChange:m("eventDate")}),(0,i.jsx)(Q.k,{required:!0,type:en.G.TEXT,label:"Event / Group Description",value:r.eventDescription??"",error:d.eventDescription,handleOnChange:m("eventDescription")}),(0,i.jsx)(Q.k,{required:!0,type:en.G.TEXT,label:"Lesson Topic",value:r.lessonTopic??"",error:d.lessonTopic,handleOnChange:m("lessonTopic")}),(0,i.jsx)(Q.k,{required:!0,type:en.G.NUMBER,label:"Lesson Duration (minutes, estimated)",value:r.lessonDuration??"",error:d.lessonDuration,handleOnChange:m("lessonDuration")}),(0,i.jsx)(Q.k,{required:!0,type:en.G.NUMBER,label:"Number of Participants (estimated)",value:r.numberOfParticipants??"",error:d.numberOfParticipants,handleOnChange:m("numberOfParticipants")}),(0,i.jsx)("h3",{className:"typography-title-3 mb-2 mt-8",children:"Session Venue"}),(0,i.jsx)(Q.k,{required:!0,type:en.G.TEXT,label:"Location Name",value:r.locationName??"",error:d.locationName,handleOnChange:m("locationName")}),(0,i.jsx)(Q.k,{type:en.G.TEXT,label:"Street Address",value:r.streetAddress??"",error:d.streetAddress,handleOnChange:m("streetAddress")}),(0,i.jsx)(Q.k,{type:en.G.TEXT,label:"City",value:r.city??"",error:d.city,handleOnChange:m("city")}),(0,i.jsx)(et.K,{type:en.G.TEXT,label:"State",handleChange:e=>p("state",e),options:ei.F,value:r.state&&""!==r.state?[r.state]:[],error:d.state,maxSelection:1,variant:"preferences"}),(0,i.jsx)(Q.k,{required:!0,type:en.G.TEXT,label:"ZIP Code",value:r.zipCode??"",error:d.zipCode,handleOnChange:m("zipCode")})]}),(0,i.jsx)("div",{className:"mt-8 flex w-full max-w-[75%] flex-col items-center",children:(0,i.jsx)("button",{className:"mb-6 h-16 w-full rounded-2xl bg-ginger font-medium text-black transition-colors hover:bg-green disabled:cursor-not-allowed disabled:opacity-50",onClick:x,"data-testid":"submit-session-form",children:"Submit"})}),(0,i.jsxs)("p",{className:"typography-body-2 desktop:typography-body-3 text-center text-dark-gray",children:["By submitting this information, you consent to our\xa0",(0,i.jsx)("a",{href:"https://www.glce.org/privacy",target:"_blank",rel:"noopener noreferrer",className:"text-navy underline transition-colors duration-200 ease-in-out desktop:hover:text-green",children:"Privacy Statement"})," ","and"," ",(0,i.jsx)("a",{href:"https://greenlight.com/classrooms/terms",target:"_blank",rel:"noopener noreferrer",className:"text-navy underline transition-colors duration-200 ease-in-out desktop:hover:text-green",children:"Terms of Use."})]})]})}):null}let ed=[{title:"Submit Session Details",href:"/submit-session",external:!1,action:"modal"}];function ec({partnerLogo:e,customLinks:t,partnerDisplayName:n}
1){let[a,r]=(0,s.useState)(!1),[o,d]=(0,s.useState)(!1),c=(0,s.useMemo)(()=>[...ed,...t?.map(e=>({title:e.fields.linkText,href:e.fields.linkUrl,external:e.fields.openInNewTab,action:"navigate"}))||[]],[t]);(0,s.useEffect)(()=>{if(!a)return;let e=e=>{e.target.closest('[data-dropdown="resources"]')||r(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[a]),(0,s.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]);let u=()=>{r(!a)},p=e=>{r(!1),"modal"===e.action&&d(!0)};return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"relative","data-dropdown":"resources",children:[(0,i.jsxs)("div",{className:"flex cursor-pointer items-center gap-1 font-medium",onClick:u,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),u())},role:"button",tabIndex:0,"aria-expanded":a,"aria-haspopup":"true","data-testid":"resources-dropdown-trigger",children:[(0,i.jsx)("span",{className:"mr-2 font-semibold",children:"Resources"}),(0,i.jsx)("div",{className:l()("flex items-center justify-center min-w-[13px] min-h-[7px] transition-transform duration-300 ease-[cubic-bezier(0,0.7,0.3,1)]",a?"rotate-180":"rotate-0"),children:(0,i.jsx)(h(),{src:U.A,alt:"Dropdown arrow",width:13,height:7,className:"block w-[13px] h-[7px]"})})]}),a&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"absolute left-1/2 top-full mt-3 w-64 -translate-x-1/2 rounded-2xl bg-white px-6 py-4 shadow-[0_4px_24px_rgba(0,0,0,0.08)]","data-testid":"resources-dropdown-content",children:(0,i.jsx)("ul",{className:"m-0 list-none p-0 text-base",children:c.map(e=>(0,i.jsx)("li",{className:"mb-3 last:mb-0",children:"modal"===e.action?(0,i.jsx)("button",{type:"button",className:"bg-transparent flex w-full cursor-pointer items-center gap-2 border-none p-0 text-left text-[14px] font-normal text-[#1d252c] no-underline hover:text-[#035C67]",onClick:()=>p(e),"data-testid":`resources-item-${e.title.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}`,children:(0,i.jsx)("span",{children:e.title})}):(0,i.jsxs)(y.Ay,{href:e.href,target:e.external?"_blank":"_self",rel:e.external?"noopener noreferrer":void 0,className:"flex items-center gap-2 text-[14px] font-normal text-[#1d252c] no-underline hover:text-[#035C67]",onClick:()=>p(e),"data-testid":`resources-item-${e.title.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}`,children:[(0,i.jsx)("span",{children:e.title}),e.external&&(0,i.jsx)(h(),{src:V,alt:"External link",width:13,height:13,className:"flex-shrink-0"})]})},e.title))})})}),(0,i.jsx)(eo,{isOpen:o,onClose:()=>{d(!1)},partnerLogo:e,partnerDisplayName:n,customLinks:t?.map(e=>({title:e?.fields?.linkText,href:e?.fields?.linkUrl}))})]})})}var eu=n(27338);let ep={...eu.A,alt:"Greenlight logo"};function em({isScrolled:e,isSimplified:t,navItems:n,desktopCta:a,fullLogoDesktop:r,abbreviatedLogoDesktop:o,linkToHome:d,showAuthenticatedUser:c,roundedCornersVariation:u,isSubNavigationPresent:p,partner:m,glcePartnerConfig:x}){let[v,w]=(0,s.useState)(void 0),k=(0,g.p)(),j=o?(0,b.hq)(o):void 0,N=r?(0,b.hq)(r):ep;return(0,f.d)(()=>w(void 0)),(0,i.jsx)("div",{className:l()("relative z-[9999] mx-auto hidden h-[72px] w-full items-center justify-center bg-white",{"rounded-b-[40px]":u,"shadow-[0px_4px_4px_rgba(0,0,0,0.08)]":e&&!p},"desktop:flex"),"data-testid":"desktop-nav",children:(0,i.jsxs)("div",{className:"flex w-[90vw] max-w-[1440px] items-center justify-between",children:[(0,i.jsx)(y.Ay,{"data-testid":"desktop-logo-link",href:d||"/",children:e&&!c&&j?(0,i.jsx)("div",{className:l()(k?"h-9":"h-6"),children:(0,i.jsx)(h(),{src:j.src,alt:j.alt,height:m?36:j.height,width:m?240:j.width,unoptimized:!0})}):(0,i.jsx)("div",{className:l()(k?"h-9 w-60":"h-6 w-40"),children:(0,i.jsx)(h(),{src:N.src,alt:N.alt,height:36,width:240,unoptimized:!0,priority:!0,style:{objectFit:"contain"}})})}),(0,i.jsx)("div",{className:l()("ml-8 mr-auto flex w-full flex-row",{hidden:t},"desktop:max-w-[640px]"),"data-testid":"desktop-navlinks",children:n&&n.map(({fields:e},t)=>(0,s.createElement)(D,{...e,key:t,selected:v===(e?.name||e?.title),setSelected:w}))}),a&&!c&&(0,i.jsx)("div",{className:"[&_button[data-testid=get-started-button]]:!h-10 [&_button[data-testid=get-started-button]]:!w-auto [&_button[data-testid=get-started-button]]:!min-w-[140px] [&_button[data-testid=get-started-button]]:!px-8 [&_button[data-testid=get-started-button]]:!text-sm [&_button[data-testid=get-started-button]]:desktop:!h-10 [&_button[data-testid=get-started-button]]:desktop:!text-sm",children:(0,i.jsx)(I.default,{...a?.fields,id:"desktop-nav-cta",sysId:a?.sys?.contentType?.sys?.id,module:"Navigation"})}),c&&(0,i.jsxs)("div",{className:"flex items-center gap-12",children:[m&&(0,i.jsx)(ec,{partnerLogo:j,customLinks:x?.fields?.customLinks,partnerDisplayName:x?.fields?.partnerDisplayName}),(0,i.jsx)(Y,{isPartner:!!m})]})]})})}var ex=n(86509),eh=n(28740),ef=n(95534);let eb={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/ic_chevron_down.cf4bf592.svg",height:24,width:24,blurWidth:0,blurHeight:0};function eg({name:e,title:t,url:n,links:s,tabletLinks:a,mobileLinks:r,megaColumns:o,titleExpanded:d,setTitleExpanded:c,toggleModal:u}){let m,x,f,g,w,j,N=(0,p.useRouter)(),A=e||t||"",S=A===d,T=a&&r,D=!!o&&o.length>0,I=s||a||r||D,O=e=>{if(!u)return;let t=e=>{let t=e.split("?")[0].split("#")[0];return t.endsWith("/")&&"/"!==t?t.slice(0,-1):t};t(N.asPath)===t(e)&&u()},M=(e,t)=>"Spacer Column"===e||"#"===t,B=!!(d&&!S);return(0,i.jsxs)("div",{className:l()("group mx-4 border-b-[2px] border-b-[#F1F1F1] first-of-type:mt-0 last-of-type:border-b-0",B?"my-4":"my-6"),children:[(0,i.jsx)("div",{className:l()("flex min-h-[44px] items-center justify-between",{"mb-6":I&&S}),children:(0,i.jsxs)(y.Ay,{...I&&{"aria-controls":`nav-expanded-content-${A}`,"aria-expanded":S,onClick:e=>{if(e.preventDefault(),d===A)return c(void 0);c(A)}},...!I&&{onClick:()=>O(n)},href:I?"#0":n,className:l()("-ml-1 flex w-full items-center justify-between rounded-button-shape pl-1 text-[20px] font-medium leading-[24px] text-[#1d252c] transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-accent4-base focus-visible:ring-offset-1",{"n
1o-underline":I,"active:underline":!I}),children:[e||t,I?(0,i.jsx)("div",{className:"shrink-0 p-0",children:(0,i.jsx)(h(),{alt:"Expand navigation list",src:eb,className:l()("transition-transform duration-300 ease-[cubic-bezier(0,0.7,0.3,1)]",{"rotate-180":S,"rotate-0":!S})})}):(0,i.jsx)("span",{className:"inline-block h-6 w-6 shrink-0","aria-hidden":"true"})]})}),I&&(0,i.jsx)("div",{className:l()(S?"flex flex-col flex-wrap pb-4":"hidden"),id:`nav-expanded-content-${A}`,children:o?.length?(0,i.jsx)("div",{className:"flex w-full flex-col gap-8","data-testid":"mobile-mega",children:o.map(e=>{let t=e?.fields??e,n=t?.mobilePromoImage||t?.promoImage,s=n?(0,b.M5)(n):null,a=E(t?.promoImageLink),l=C(t?.colorTheme);return(0,i.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)("span",{className:`w-fit rounded-full px-2 py-[2px] text-[12px] font-medium ${l.capsule}`,children:t?.eyebrow}),t?.headline&&(0,i.jsx)(_,{headline:t.headline,className:"m-0 text-[20px] font-medium leading-[24px] text-[#111212]",href:a??void 0,onLinkClick:a?()=>O(a):void 0})]}),s?.src&&(0,i.jsx)("div",{className:"w-full",children:(0,i.jsx)(L,{src:s.src,alt:s.alt||t?.eyebrow||"",width:382,height:137,roundedClass:"rounded-[12px]",href:a??void 0,onLinkClick:a?()=>O(a):void 0})}),(0,i.jsx)("ul",{className:"m-0 flex list-none flex-col gap-3 p-0",children:(t?.links??[]).map(e=>{let t=e?.fields??e,n=(t?.subLinks??[]).map(e=>e?.fields??e).filter(e=>e&&(e.title||e.url));return(0,i.jsxs)("li",{className:"flex flex-col gap-1",children:[(0,i.jsxs)(y.Ay,{href:t?.url||"#",onClick:()=>O(t?.url||"#"),className:"group/link flex items-center gap-3 no-underline",children:[t?.iconName&&(0,i.jsx)(k.A,{icon:t.iconName,type:l.pictogramType,shape:"circle",size:"sm",inverse:!0}),(0,i.jsxs)("span",{className:"flex flex-1 items-center gap-2",children:[(0,i.jsx)("span",{className:"text-[14px] font-medium text-[#111212] group-hover/link:text-[#035C67] group-focus-visible/link:text-[#035C67]",children:t?.title}),(0,i.jsx)(v,{isNew:t?.isNew,isNewLabel:t?.isNewLabel,className:l.capsule})]}),(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:"shrink-0 text-[#5e6161]","aria-hidden":"true",children:(0,i.jsx)("path",{d:"M7.5 5l5 5-5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),n.length>0&&(0,i.jsx)("div",{className:"flex gap-3 pl-11",children:n.map(e=>(0,i.jsx)(y.Ay,{href:e.url||"#",target:e.openInNewTab?"_blank":"_self",onClick:()=>O(e.url),className:"text-[12px] leading-[16px] text-[#5e6161] no-underline",children:e.title},e.title||e.url))})]},t?.title)})})]},t?.eyebrow)})}):T?(0,i.jsxs)(i.Fragment,{children:[a&&(m=a.filter(e=>!M(e.fields?.title,e.fields?.url)),x=[],f=null,m.forEach(e=>{let t=e.fields?.subcategoryLabel;f&&f.subcategoryLabel===t?f.links.push(e):(f&&x.push(f),f={subcategoryLabel:t,links:[e]})}),f&&x.push(f),(0,i.jsx)("div",{"data-testid":"meganav-links",className:l()("m-0 w-full py-4 tiny:hidden tablet:flex tablet:flex-row tablet:flex-wrap tablet:gap-x-12",{"tablet:justify-center":x.length>1,"tablet:justify-start":1===x.length}),children:x.map((e,t)=>(0,i.jsxs)("div",{className:"break-inside-avoid",children:[e.subcategoryLabel&&(0,i.jsx)("p",{className:"!typography-title-4 mb-3 leading-6",children:e.subcategoryLabel}),(0,i.jsx)("ul",{className:"m-0 list-none",children:e.links.map(({fields:{title:e,url:t,isNew:n,isNewLabel:s},sys:a},r)=>(0,i.jsx)("li",{className:"mb-3",children:(0,i.jsxs)(y.Ay,{href:t,onClick:()=>O(t),className:l()("mt-0 text-[14px] font-normal text-[#1d252c] no-underline",{"!mb-0 flex items-center gap-1":n}),children:[e,(0,i.jsx)(v,{isNew:n,isNewLabel:s})]})},`tablet-${a?.id||e}-${r}`))})]},`tablet-group-${e.subcategoryLabel||"no-label"}-${t}`))})),(0,i.jsx)("div",{className:l()("m-0 mb-[13px] w-full group-first-of-type:-mb-[7px] tiny:grid tiny:gap-y-6 tablet:hidden",{"tiny:grid-cols-1":!!r&&r.filter(e=>!M(e.fields?.title,e.fields?.url)).length<5,"tiny:grid-cols-2":!!r&&r.filter(e=>!M(e.fields?.title,e.fields?.url)).length>=5}),children:r&&(g=r.filter(e=>
1!M(e.fields?.title,e.fields?.url)),w=[],j=null,g.forEach(e=>{let t=e.fields?.subcategoryLabel;j&&j.subcategoryLabel===t?j.links.push(e):(j&&w.push(j),j={subcategoryLabel:t,links:[e]})}),j&&w.push(j),w.map((e,t)=>(0,i.jsxs)("div",{className:"break-inside-avoid",children:[e.subcategoryLabel&&(0,i.jsx)("p",{className:"!typography-title-4 mb-2 leading-6",children:e.subcategoryLabel}),(0,i.jsx)("ul",{className:"m-0 list-none",children:e.links.map(({fields:{title:e,url:t,isNew:n,isNewLabel:s},sys:a},r)=>(0,i.jsx)("li",{className:"mb-2","data-testid":`mobile-link-${e??r}`,children:(0,i.jsxs)(y.Ay,{href:t,onClick:()=>O(t),className:l()("mt-0 text-[14px] font-normal text-[#1d252c] no-underline",{"!mb-0 !mt-0 flex items-center gap-1":n}),children:[e,(0,i.jsx)(v,{isNew:n,isNewLabel:s})]})},`mobile-${a?.id||e}-${r}`))})]},`mobile-group-${e.subcategoryLabel||"no-label"}-${t}`)))})]}):(0,i.jsx)("ul",{className:l()("m-0 mb-[13px] inline-block w-full list-none group-first-of-type:-mb-[7px] tiny:inline-block tiny:columns-2",{"tiny:columns-1":!!s&&s.filter(e=>!M(e.fields?.title,e.fields?.url)).length<5}),children:s&&s.filter(e=>!M(e.fields?.title,e.fields?.url)).map(({fields:e,sys:t},n)=>(0,i.jsx)("li",{"data-testid":"nav-link",className:"mb-2",children:(0,i.jsx)(y.Ay,{href:e?.url,onClick:()=>O(e?.url),className:"mt-0 text-[14px] font-normal text-[#1d252c] no-underline",children:e?.title})},`link-${t?.id||e?.title}-${n}`))})})]})}function ey({navItems:e,modalMobileCta:t,isMenuOpen:n,isBannerVisible:a=!1,toggleModal:l}){let r=e?.find(e=>!0===e.fields.isExpanded),[o,d]=s.useState(r?.fields?.name),[c,u]=(0,s.useState)(56),[p,m]=(0,s.useState)(0),{fullWidth:x,width:h}=(0,ef.Mg)(t?.fields),f=(0,s.useRef)(null),b=(0,s.useRef)(null),g=s.useCallback(()=>{b.current&&(document.body.style.overflow=b.current.overflow,document.body.style.position=b.current.position,document.body.style.width=b.current.width,b.current=null)},[]);return(0,s.useEffect)(()=>{if(n){let e=window.getComputedStyle(document.body);b.current={overflow:e.overflow,position:e.position,width:e.width},document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%";let t=()=>{if("u"<typeof document)return;let e=document.querySelector('[data-testid="mobile-nav-cta"]'),t=56;if(e&&(t=e.offsetHeight),a){let e=document.querySelector('[data-testid="webBanner"]');e&&e.offsetHeight>0&&(t+=e.offsetHeight)}u(t)};t();let n=new ResizeObserver(()=>{t()}),i=document.querySelector('[data-testid="mobile-nav-cta"]');if(i&&n.observe(i),a){let e=document.querySelector('[data-testid="webBanner"]');e&&n.observe(e)}return window.addEventListener("resize",t),()=>{g(),window.removeEventListener("resize",t),n.disconnect()}}g()},[n,a,g]),(0,s.useEffect)(()=>()=>{g()},[g]),(0,s.useEffect)(()=>{if(!n||!t)return void m(0);let e=()=>{f.current&&m(f.current.offsetHeight)},i=new ResizeObserver(()=>{e()}),s=setTimeout(()=>{e(),f.current&&i.observe(f.current)},100);return()=>{clearTimeout(s),i.disconnect()}},[n,t]),(0,i.jsx)("div",{className:"fixed bottom-0 left-0 right-0 z-[1000] flex w-screen items-center justify-center bg-white p-0",style:{to
1p:`${c}px`,height:`calc(100vh - ${c}px)`},"aria-label":"Navigation menu","data-testid":"mobile-modal-navigation","aria-modal":"true",children:(0,i.jsxs)("div",{className:"flex h-full w-full flex-col outline-0",children:[(0,i.jsxs)("div",{className:"flex-1 overflow-y-auto py-5",style:{minHeight:0,WebkitOverflowScrolling:"touch"},"data-testid":"mobile-modal",children:[e&&e.map(({fields:e},t)=>(0,s.createElement)(eg,{...e,setTitleExpanded:d,titleExpanded:o,toggleModal:l,key:t})),t&&p>0&&(0,i.jsx)("div",{style:{height:`${(p+(a?60:40))*1.5}px`,flexShrink:0},"aria-hidden":"true"})]}),t&&(0,i.jsx)("div",{ref:e=>{f.current=e,e&&requestAnimationFrame(()=>{let t=e.offsetHeight;t>0&&m(t)})},className:"fixed bottom-0 left-0 right-0 flex w-full flex-col items-center justify-center bg-[#F2F5F5] px-6 py-8",children:(0,i.jsx)(I.default,{...t?.fields,id:"mobile-modal-nav-cta",sysId:t?.sys?.contentType?.sys?.id,module:"Hamburger Menu",errorPosition:"top",fullWidth:x,width:h})})]})})}var ev=n(36362);function ew(e){let t=e.active;return(0,i.jsxs)("button",{className:"bg-transparent relative z-40 m-0 flex h-8 w-8 flex-col items-center justify-center border-0 p-0",onClick:e.onClick,"data-testid":"hamburger-menu","data-blockid":"open-hamburger",children:[(0,i.jsx)("div",{className:l()("absolute h-[3px] w-5 bg-[#1D252C] transition-all duration-300 ease-in-out",t?"rotate-45":"-translate-y-[5px]")}),(0,i.jsx)("div",{className:l()("absolute h-[3px] w-5 bg-[#1D252C] transition-all duration-300 ease-in-out",t?"-rotate-45":"translate-y-[5px]")})]})}let ek={...eu.A,alt:"Greenlight logo"};function ej({isSimplified:e,isScrolled:t,isMenuOpen:n,mobileCta:a,scrolledMobileCta:r,bottomMobileCta:o,abbreviatedLogoMobile:c,fullLogoMobile:u,linkToHome:p,toggleModal:m,showAuthenticatedUser:x,partner:f,glcePartnerConfig:v,suppressBottomCta:w=!1}){let[k,j]=(0,s.useState)(!1),[N,C]=(0,s.useState)(!1),A=(0,g.p)(),E=(0,s.useRef)(null),L=(0,s.useCallback)(e=>{if(!o)return;let t=document.querySelector('[data-blockid="pinned-hero-sequence"]'),n=document.querySelector('[data-e2e="hero"]');if(t instanceof HTMLElement)j(t.getBoundingClientRect().bottom<=window.innerHeight);else if(n instanceof HTMLElement)j(n.getBoundingClientRect().bottom<=0);else{e?.currPos&&(E.current=e.currPos.y);let t=window.scrollY||document.documentElement.scrollTop||document.body.scrollTop||0;j(Math.max(E.current??0,t)>412)}let i=document.getElementById("footer");i&&C(i.getBoundingClientRect().top<window.innerHeight)},[o]);(0,d.M)(L,[k,o],void 0,!0,100),(0,s.useEffect)(()=>{if(!o)return;let e=document.body,t=!1,n=()=>{t||(t=!0,requestAnimationFrame(()=>{t=!1,L()}))};return e.addEventListener("scroll",n,{passive:!0}),L(),()=>e.removeEventListener("scroll",n)},[o,L]);let _=c?(0,b.hq)(c):void 0,S=u?(0,b.hq)(u):ek,{fullWidth:T,fullWidthStandard:D,width:O}=(0,ef.Mg)(o?.fields),M=(0,ev.zh)("Updated Sticky Button"===String(o?.fields?.designType)?{to:{transform:o&&k&&!n&&!N?"translateY(0%)":"translateY(300%)",opacity:1},config:{tension:300,friction:26,mass:1,duration:200}}:{});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"relative flex h-14 items-center justify-between bg-white px-4 py-3 desktop:hidden","data-testid":"mobile-nav-cta",children:[(0,i.jsx)(y.Ay,{"data-testid":"mobile-logo-link",href:p||"/",className:"flex",children:t&&!x&&_?(0,i.jsx)("div",{className:l()(A?"h-9":"h-6"),children:(0,i.jsx)(h(),{src:_.src,alt:_.alt,height:f?36:_.height,width:f?240:_.width,unoptimized:!0})}):(0,i.jsx)("div",{className:l()(A?"h-9 w-60":"h-6 w-40"),children:(0,i.jsx)(h(),{src:S.src,alt:S.alt,height:36,width:240,unoptimized:!0,priority:!0,style:{objectFit:"contain"}})})}),t&&!n&&!a&&!x&&!o&&r&&(0,i.jsx)(I.default,{...r?.fields,id:"mobile-nav-cta",sysId:r?.sys?.contentType?.sys?.id,module:"Navigation",isScrolled:t}),!e&&(0,i.jsx)(ew,{active:n,onClick:m}),a&&!r&&!x&&(0,i.jsx)(I.default,{...a?.fields,id:"mobile-nav-cta",sysId:a?.sys?.contentType?.sys?.id,module:"Navigation",isScrolled:t}),x&&(0,i.jsxs)("div",{className:"flex items-center gap-12",children:[f&&(0,i.jsx)(ec,{partnerLogo:_,customLinks:v?.fields?.customLinks,partnerDisplayName:v?.fields?.partnerDisplayName}),(0,i.jsx)(Y,{isPartner:!!f})]})]}),o&&!w&&(o?.fields?.designType==="Updated Sticky Button"?(0,i.jsx)(ev.CS.div,{"data-testid":"bottom-cta",style:{backgroundColor:o?.fields?.designType==="Updated Sticky Button"?"#F2F5F5":"none",...M},className:l()("z-3 fixed -bottom-[2px] flex w-full items-center justify-center bg-white py-[16px] desktop:hidden"),children:(0,i.jsx)(I.default,{...o?.fields,id:"bottom-cta",errorPosition:"top",module:"Bottom CTA"})}):(0,i.jsx)("div",{"data-testid":"bottom-cta",className:l()("z-3 fixed -bottom-[2px] flex w-full items-center justify-center bg-white transition-all duration-300 ease-in-out desktop:hidden",D?"px-4 pb-8 pt-4":"py-[16px]",{"translate-y-0 opacity-100":o&&k&&!n&&!N,"translate-y-full opacity-0":!o||!k||n||N}),children:(0,i.jsx)(I.default,{...o?.fields,id:"bottom-cta",errorPosition:"top",module:"Bottom CTA",fullWidth:T,width:O})}))]})}
1function eN(e){let[t,n]=(0,s.useState)(!1),a=(0,p.useRouter)();(0,s.useEffect)(()=>{t&&n(!1)},[a.asPath]);let l=(0,s.useCallback)(()=>n(e=>!e),[]),r=!!e.bottomMobileCta&&(0,eh.e)(e.bottomMobileCtaNote);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ej,{...e,isMenuOpen:t,toggleModal:l,suppressBottomCta:r}),r&&(0,i.jsx)(ex.k,{ctaFields:e.bottomMobileCta?.fields,note:e.bottomMobileCtaNote,alwaysVisible:!!e.bottomMobileCtaAlwaysVisible,suppressed:t,isUpdatedStickyButton:"Updated Sticky Button"===String(e.bottomMobileCta?.fields?.designType),module:"Bottom CTA",id:"bottom-cta"}),t&&(0,i.jsx)(ey,{...e,isMenuOpen:t,toggleModal:l,isBannerVisible:e.isBannerVisible})]})}var eC=n(54587),eA=n.n(eC);let eE={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/ic_down_icon.09e95bfe.svg",height:24,width:24,blurWidth:0,blurHeight:0};function eL(e){let[t,n]=(0,s.useState)(null),[a,o]=(0,s.useState)(!1),[d,c]=(0,s.useState)(null),[u,p]=(0,s.useState)(null),m=(0,s.useRef)(null),{query:{gl_content:x,g_adgroupid:h,utm_source:f}={}}=(0,r.Yu)(),g=(e,t,i)=>{(e=>{n(e);let t=document.getElementById(e);if(!t)return;let i=()=>{let e,{headerHeight:n,clickOffset:i}={headerHeight:(e=document.querySelector("header"))?e.offsetHeight:0,clickOffset:40};return t.offsetTop-n-i};window.scrollTo({top:i(),behavior:"smooth"}),setTimeout(()=>{let e=i();Math.abs(window.scrollY-e)>4&&window.scrollTo({top:e,behavior:"smooth"})},600)})(e),c(t),p(i||null),o(!1)};return((0,s.useEffect)(()=>{if(!e.navLinks)return;let t=()=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{let t=-1,i=window.scrollY+window.innerHeight/2;for(let n=0;n<e.navLinks.length;n++){let s=e.navLinks[n],a=document.getElementById(s.fields.anchorLink);a&&a.offsetTop<=i&&(t=n)}if(-1!==t){let i=e.navLinks[t];n(i.fields.anchorLink),c(i.fields.title),p(i.fields.pictogram||null)}else n(null)},50)};return window.addEventListener("scroll",t,{passive:!0}),()=>{window.removeEventListener("scroll",t),m.current&&clearTimeout(m.current)}},[e.navLinks]),!e.keyword&&!e.adgroupId&&!e.channels||e.keyword===x&&(!h||e.adgroupId&&e.adgroupId.includes(h))&&e.channels?.includes(f))?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"relative z-30 w-full desktop:hidden",children:(0,i.jsxs)("div",{className:"w-full",children:[(0,i.jsxs)("button",{className:l()("flex w-full items-center justify-between border-y border-line bg-primary-surface px-5 py-4"),onClick:()=>o(e=>!e),children:[(0,i.jsxs)("span",{className:"flex items-center gap-2 text-base font-medium",children:[u&&(0,i.jsx)(eA(),{...(0,b.hq)(u),width:20,height:20}),d||e?.header]}),(0,i.jsx)("div",{className:"flex items-center justify-center px-3",children:(0,i.jsx)(eA(),{src:eE,alt:"Toggle menu",width:20,height:20,className:l()("transition-transform duration-300",{"rotate-180":a})})})]}),(0,i.jsx)("div",{className:l()("flex flex-col divide-y divide-line overflow-hidden bg-primary-surface transition-all duration-300 ease-in-out",a?"max-h-[500px] border-b border-line opacity-100":"max-h-0 opacity-0"),children:e.navLinks?.map(e=>{let n=t===e.fields.anchorLink;return(0,i.jsxs)("button",{onClick:()=>{g(e.fields.anchorLink,e.fields.title,e.fields.pictogram),(0,Z.e)("CTA Clicked",{module:"subnavigation",value:e.fields.title,page_url:window.location.href,device_type:"mobile"})},className:l()("flex w-full items-center gap-3 px-5 py-4 text-left text-base font-medium transition-all hover:bg-secondary",{"bg-secondary text-on-primary-surface":n,"bg-white text-on-primary-surface":!n}),children:[e.fields.pictogram&&(0,i.jsx)(eA(),{...(0,b.hq)(e.fields.pictogram),width:20,height:20}),e.fields.title]},e.sys.id)})})]})}),(0,i.jsx)("div",{"data-testid":"desktop-nav",className:"z-50 mt-0 hidden w-full justify-center border-y border-line bg-cool-neutral-100 px-4 py-6 shadow-md desktop:flex",style:{backgroundColor:e?.desktopBackgroundColor?e?.desktopBackgroundColor:""},children:(0,i.jsx)("div",{className:"flex space-x-3",children:e.navLinks.map(e=>(0,i.jsx)("button",{onClick:()=>{g(e.fields.anchorLink,e.fields.title,e.fields.pictogram),(0,Z.e)("CTA Clicked",{module:"subnavigation",value:e.fields.title,page_url:window.location.href,device_type:"desktop"})},className:l()("h-10 whitespace-nowrap rounded-full border-2 px-4 text-base font-medium transition-all",t===e.fields.anchorLink?"border-tertiary bg-tertiary text-black shadow-sm":"bg-transparent border-[#
1E3E3E3] text-on-primary-surface hover:border-tertiary"),children:e.fields.title},e.sys.id))})})]}):null}var e_=n(63126);let eS=function({toggleBanner:e,roundedCornersVariation:t}){let n={nodeType:e_.nA.DOCUMENT,data:{},content:[{nodeType:e_.nA.PARAGRAPH,data:{},content:[{nodeType:"text",value:" ",marks:[],data:{}}]}]};return(0,i.jsx)(u.WebBanner,{title:"Our app is experiencing some issues. Weâre working to resolve them as soon as possible.",titleColor:"#111212",message:n,messageColor:"#111212",bannerBackgroundColor:"#ffe8bd",toggleBanner:e,roundedCornersVariation:t})};function eT(e){let{appIncident:t=!1,page:{hideHeader:n,hideBanner:a,isSimplified:c,pageWebBanner:u}={},cookies:{gl_web_banner:p,gl_is_registered_user:x,partner:h}={}}=(0,r.Yu)(),f=e.isSimplified??!!c,[b,g]=(0,s.useState)(!1),[y,v]=(0,s.useState)(t),[w,k]=(0,s.useState)("show"===p&&"true"!==x&&!0!==a),[j,N]=(0,o.G)("gl_web_banner"),[C]=(0,o.G)("gl_is_registered_user");return(0,s.useEffect)(()=>{v(t)},[t]),(0,s.useEffect)(()=>{k("show"===j&&"true"!==C&&!0!==a)},[j,C,a]),(0,d.M)(({currPos:e})=>{e.y>0?g(!0):e.y<=0&&g(!1)},[b],void 0,!0,100),(0,i.jsxs)(i.Fragment,{children:[y&&(0,i.jsx)(eS,{toggleBanner:()=>v(!1),roundedCornersVariation:e.roundedCornersVariation}),!y&&w&&(0,i.jsx)(m,{toggleBanner:N,roundedCornersVariation:e.roundedCornersVariation,pageWebBanner:u}),!n&&(0,i.jsxs)("div",{className:l()("z-[9999] w-full",{"max-w-screen-2xl mx-auto my-0":e.roundedCornersVariation}),children:[(0,i.jsx)(eN,{...e,isSimplified:f,isScrolled:b,partner:h,isBannerVisible:y||w}),(0,i.jsx)(em,{...e,isSimplified:f,isScrolled:b,isSubNavigationPresent:!!e.subNavigation?.fields,partner:h}),e.subNavigation?.fields&&(0,i.jsx)(eL,{...e.subNavigation.fields})]})]})}},75106:(e,t,n)=>{n.d(t,{d:()=>s});var i=n(14232);function s(e,t){let n=(0,i.useCallback)(t=>{"Escape"===t.key&&e()},[e]);(0,i.useEffect)(()=>{if(!1!==t)return document.addEventListener("keydown",n,!1),()=>{document.removeEventListener("keydown",n,!1)}},[e,t])}},82647:(e,t,n)=>{n.d(t,{k:()=>u});var i=n(37876),s=n(14232),a=n(58103),l=n.n(a),r=n(68827),o=n.n(r),d=n(3997),c=n(93809);function u({value:e,type:t,label:n,placeholder:a,error:r,required:p,handleOnChange:m,disabled:x=!1,width:h=d.s.FULL,borderColor:f="#00D9B4",inputMode:b,pattern:g,minLength:y,maxLength:v,autoComplete:w}){let[k,j]=(0,s.useState)(!1),N=(0,s.useId)(),[C,A]=(0,s.useState)(!1),E=!!e||k;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:l()("text-input-wrapper","relative h-16 rounded-input-box-shape p-0 transition duration-300","border",r?"border-hibiscus":null),style:{width:`${h}%`,borderColor:r?void 0:f,marginBottom:r?"8px":"16px"},children:[(0,i.jsxs)("label",{className:l()("absolute rounded-input-box-shape font-medium transition-all duration-300",E?"top-0 -mt-2 ml-4 translate-y-0 bg-white px-1 text-[0.8em]":"top-1/2 -translate-y-1/2 pl-4 text-[1em]"),htmlFor:N,children:[n,p?"*":""]}),(0,i.jsx)("input",{id:N,type:C?d.G.TEXT:t,value:e,placeholder:a,disabled:x,required:p,inputMode:b,pattern:g,autoComplete:w??"off",min:"0",minLength:y||1,maxLength:v||320,onChange:e=>{m?.(e,e.target.value)},onFocus:()=>{j(!0)},onBlur:()=>{j(!1)},"aria-required":p,"aria-invalid":!!r,"data-testid":`input-${t}-${n}`,className:l()("bg-transparent h-full w-full rounded-input-box-shape border-0 outline-none transition","px-4 text-[1em] leading-[1.5]","disabled:text-dark-gray",E?"placeholder:opacity-100":"placeholder:opacity-0")}),t===d.G.PASSWORD&&(0,i.jsx)("button",{type:"button",onClick:()=>A(!C),"data-testid":`input-${t}-${n}-btn-${C}`,className:"absolute right-4 top-1/2 h-6 w-6 -translate-y-1/2 cursor-pointer border-none bg-[length:100%_100%]",style:{backgroundImage:`url(${C?"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/ic_eye_show_filled.187cc946.svg":"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/ic_eye_hide_filled.02d99616.svg"})`}})]}),(0,i.jsxs)("div",{className:l()("error-message flex items-center overflow-hidden text-hibiscus",r?"mb-4 max-h-[24px] opacity-100":"mb-0 max-h-0 opacity-0"),"data-testid":`input-${t}-${n}-error`,children:[(0,i.jsx)("div",{className:"ml-4 mr-2 flex h-full",children:(0,i.jsx)(o(),{src:c.A,alt:"Form input error"})}),r||""]})]})}},86509:(e,t,n)=>{n.d(t,{k:()=>x});var i=n(37876);n(14232);var s=n(17545),a=n(58103),l=n.n(a),r=n(36362),o=n(33770),d=n(30098),c=n(33928),u=n(28740),p=n(73192);function m({ctaFields:e,note:t,revealed:n,alwaysVisibleOnMobile:s=!1,isUpdatedStickyButton:a=!1,module:x="Sticky CTA",id:h}){let f=(0,u.e)(t),b=n||s,g=l()("z-3 fixed -bottom-[2px] flex w-full bg-white",f?l()("flex-col items-stretch border-t border-warm-neutral-400 px-5 pb-[calc(10px_+_env(safe-area-inset-bottom))] pt-2.5 shadow-[0_-6px_18px_rgba(0,56,53,0.07)] desktop:hidden","tablet:flex-row tablet:items-center tablet:justify-center tablet:gap-5 tablet:px-6 tablet:py-4"):"items-center justify-center py-[16px] desktop:hidden"),y=l()("transition-all duration-300 ease-in-out",b?"translate-y-0 opacity-100":"translate-y-full opacity-0",s&&!n&&"tablet:translate-y-full tablet:opacity-0"),v=(0,i.jsx)(d.default,{...e,id:h,module:x,...f?{width:"100%",className:"!items-stretch tablet:!items-center [&_a]:!h-14 [&_a]:!w-full [&_a]:!text-[18px] tablet:[&_a]:!h-12 tablet:[&_a]:!w-auto [&_button]:!h-14 [&_button]:!w-full [&_button]:!text-[18px] tablet:[&_button]:!h-12 tablet:[&_button]:!w-auto"}:{}}),w=(0,i.jsxs)(i.Fragment,{children:[f?(0,i.jsx)("div",{className:"w-full tablet:w-auto tablet:flex-none",children:v}):v,f&&(0,i.jsx)(c.A,{data:t,overrideOptions:{[o.nA.PARAGRAPH]:(e,t)=>(0,i.jsx)("p",{className:"mt-1.5 text-center text-[11.5px] font-medium leading-[1.5] text-warm-neutral-800 tablet:mt-0 tablet:max-w-[42ch] tablet:text-left desktop:max-w-none desktop:whitespace-nowrap","data-testid":"sticky-cta-note",children:t}),[o.XD.HYPERLINK]:(e,t)=>(0,i.jsx)("a",{href:e.data.uri,className:"text-brand-strong underline hover:text-brand-strongest",children:t})}
1,overrideMarkOptions:{[o.j7.CODE]:e=>(0,i.jsx)("sup",{className:p.h,children:e})}})]}),k=(0,r.zh)(a?{to:{transform:b?"translateY(0%)":"translateY(300%)",opacity:1},config:{tension:300,friction:26,mass:1,duration:200}}:{});return a?(0,i.jsx)(r.CS.div,{style:{backgroundColor:"#F2F5F5",...k},className:g,"data-testid":"sticky-cta-bar",children:w}):(0,i.jsx)("div",{className:l()(g,y),"data-testid":"sticky-cta-bar",children:w})}function x({alwaysVisible:e=!1,suppressed:t=!1,...n}){let{scrolledPast:a,footerVisible:l}=(0,s.n)(!0),r=l||t;return(0,i.jsx)(m,{...n,revealed:a&&!r,alwaysVisibleOnMobile:e&&!r})}},87280:(e,t,n)=>{n.d(t,{K:()=>p});var i=n(37876),s=n(14232),a=n(54587),l=n.n(a),r=n(3997),o=n(93809),d=n(51331),c=n(58103),u=n.n(c);let p=(0,s.forwardRef)(({options:e,value:t,type:n,label:a,error:c,handleChange:p,maxSelection:m,onFocus:x,width:h=r.s.FULL,className:f="",single:b=!1,variant:g="default",required:y},v)=>{let w,k,[j,N]=(0,s.useState)(!0),[C,A]=(0,s.useState)(!1),[E,L]=(0,s.useState)(t),_=(0,s.useRef)(null),S=(0,s.useId)();(0,s.useImperativeHandle)(v,()=>({clearValue(){L([])},updateValues(e){L(e)}})),(0,s.useEffect)(()=>{j?N(!1):p(E)},[E]),(0,s.useEffect)(()=>{function e(e){_.current&&!_.current.parentElement?.contains(e.target)&&D(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[_]);let T=e=>{let t=[...E],n=E.findIndex(t=>t===e);-1===n?t.push(e):t.splice(n,1),m&&t.length>m?L(t.slice(t.length-m)):L(t),1===m&&D(!1)},D=e=>{x?.(e),A(e)},I=e=>{e.preventDefault(),e.stopPropagation()},O=`multiselect-list-${S}`;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:u()("relative",{"w-full":!h,"mb-2":"default"!==g&&c,"mb-4":"default"!==g&&!c}),style:h?{width:`${h}%`}:void 0,"data-testid":`multiselect-${n}-${a}`,role:"combobox","aria-label":a,"aria-expanded":C,"aria-haspopup":"listbox","aria-controls":O,title:a,tabIndex:0,onKeyDown:e=>{var t;return t=!C,void("Escape"===e.key?(I(e),D(!1)):"Enter"===e.key&&(I(e),D(t)))},children:["preferences"===g&&(0,i.jsxs)("label",{className:u()("absolute rounded-input-box-shape font-medium transition-all duration-300",C||t.length?"text-[0.8em]":"text-[1em]",C||t.length?"top-0 -mt-2 ml-4 translate-y-0 bg-white px-1":"top-1/2 -translate-y-1/2 pl-4"),htmlFor:S,children:[a,y?"*":""]}),(0,i.jsx)("div",{className:u()(f,"flex-start flex cursor-pointer appearance-none items-center rounded-input-box-shape bg-white px-[15px] py-[3px] leading-[1.5] text-text transition-all duration-300 focus:outline-none","border border-solid",{"border-hibiscus":!!c,"border-teal":!c,"h-16":"preferences"===g,"h-8":"preferences"!==g,"border-light-navy bg-[#E6F9F5]":!!t.length&&"default"===g,"font-medium text-black":!!t.length&&"preferences"===g}),style:{width:h?`${h}%`:void 0,backgroundImage:`url(${d.A.src})`,backgroundPosition:"calc(100% - 22px) center",backgroundSize:"12px",backgroundRepeat:"no-repeat"},id:`dropdown-${a}`,role:"button",tabIndex:-1,"aria-expanded":C,onClick:()=>D(!C),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),D(!C))},"data-testid":"multiselect-dropdown",children:(w="preferences"===g?"":a,t.length>0?(k="",b?k=t[0].length>=10?t[0].slice(0,10)+"...":t[0]:(k=t.slice(0,-1).join(", ")+(t.length>1?" and ":"")+t.slice(-1)[0]).length>=10&&(k=`${t.length} Selected`),k):w)}),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:u()("absolute z-[1] grid overflow-x-auto rounded-[25px] bg-white","h-[20vh] min-w-[10rem] p-[1.65rem]","transition-all duration-300","gap-[10px] gap-x-[3rem]","shadow-[0px_4px_16px_rgba(0,0,0,0.16)]","grid-flow-col grid-rows-[none]","tablet:h-auto tablet:min-w-max tablet:max-w-[23rem]",{"visible top-[50px] opacity-100":C,"invisible top-0 opacity-0":!C,"tablet:grid-flow-row":e?.length<=8,"tablet:grid-flow-col tablet:grid-rows-[repeat(8,1fr)]":e&&e.length>8,"tablet:h-[25vh] tablet:w-full tablet:min-w-[100px] tablet:grid-flow-row tablet:overflow-x-auto":"stateModal"===g}),id:O,role:"listbox",ref:_,"data-testid":"multiselect-checkboxes-wrapper",children:!!e.length&&e.map(({key:t,value:n},s)=>(0,i.jsxs)("div",{className:"flex h-[22px] items-center gap-4",children:[(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("input",{className:u()("relative m-0 flex h-3 w-3 cursor-pointer appearance-none items-center justify-center rounded-[4px] border-2 border-solid !p-2 transition-all duration-300","disabled:!bg-[rgba(0,0,0,0.05)]",E.find(e=>e===n)?"border-[#00d9b4] bg-[#00d9b4]":"border-[#c6c8ca] bg-white"),type:"checkbox",name:a,id:t,value:n,onClick:()=>T(n),checked:!!E.find(e=>e===n),onChange:e=>e.preventDefault(),onKeyDown:t=>((e,t,n,i)=>{if("Escape"===e.key){I(e),D(!1),_.current?.parentElement?.focus();return}
1if(["Enter","Space"].includes(e.key)){I(e),T(n);return}if("Tab"===e.key){let n=0===t&&i>1&&e.shiftKey,s=t===i-1&&(!e.shiftKey||1===i);(n||s)&&(I(e),D(!1),_.current?.parentElement?.focus())}})(t,s,n,e.length),"data-testid":`checkbox-${t}`}),!!E.find(e=>e===n)&&(0,i.jsx)(l(),{src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/multi-check.2db29b50.svg",alt:"",className:"pointer-events-none absolute",style:{width:"12px",height:"12px",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},width:12,height:12})]}),(0,i.jsx)("label",{className:"typography-body-1 font-medium leading-[22px] text-black",htmlFor:t,children:n})]},t))})})]}),(0,i.jsxs)("div",{"data-testid":`multiselect-${n}-${a}-error`,className:u()("flex items-center overflow-hidden text-hibiscus transition-all duration-300",c?"mb-4 max-h-[24px] opacity-100":"mb-0 max-h-0 opacity-0"),children:[(0,i.jsx)("div",{className:"ml-4 mr-2 flex h-full",children:(0,i.jsx)(l(),{src:o.A,alt:"Multiselect input error"})}),c||""]})]})})},93247:(e,t,n)=>{n.d(t,{J:()=>u});var i=n(37876),s=n(14232),a=n(58103),l=n.n(a),r=n(68827),o=n.n(r),d=n(3997),c=n(93809);function u({value:e,label:t,placeholder:n="MM / DD / YYYY",error:a,required:r,autoComplete:p,handleOnChange:m,disabled:x=!1,width:h=d.s.FULL,borderColor:f="#00D9B4"}){let[b,g]=(0,s.useState)(!1),[y,v]=(0,s.useState)(e?.toString()??""),w=(0,s.useId)(),k=!!y||b;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:l()("text-input-wrapper","relative h-16 rounded-input-box-shape p-0 transition duration-300","border",a?"border-hibiscus":null),style:{width:`${h}%`,borderColor:a?void 0:f,marginBottom:a?"8px":"16px"},children:[(0,i.jsxs)("label",{className:l()("absolute rounded-input-box-shape font-medium transition-all duration-300",k?"top-0 -mt-2 ml-4 translate-y-0 bg-white px-1 text-[0.8em]":"top-1/2 -translate-y-1/2 pl-4 text-[1em]"),htmlFor:w,children:[t," ",r?"*":""]}),(0,i.jsx)("input",{id:w,type:"text",value:y,placeholder:n,disabled:x,required:r,autoComplete:p??"off",onChange:e=>{let t=(e=>{let t=e.replace(/\D/g,"").slice(0,8).match(/(\d{0,2})(\d{0,2})(\d{0,4})/);if(!t)return"";let n="";return t[1]&&(n+=t[1]),t[2]&&(n+=" / "+t[2]),t[3]&&(n+=" / "+t[3]),n})(e.currentTarget.value);v(t),m&&m(e,t)},onFocus:()=>g(!0),onBlur:()=>g(!1),"aria-required":r,"aria-invalid":!!a,"data-testid":`input-date-${t}`,inputMode:"numeric",className:l()("bg-transparent h-full w-full rounded-input-box-shape border-0 outline-none transition","px-4 text-[1em] leading-[1.5]","disabled:text-dark-gray",k?"placeholder:opacity-100":"placeholder:opacity-0")})]}),(0,i.jsxs)("div",{className:l()("error-message flex items-center overflow-hidden text-hibiscus",a?"mb-4 max-h-[24px] opacity-100":"mb-0 max-h-0 opacity-0"),"data-testid":`input-date-${t}-error`,children:[(0,i.jsx)("div",{className:"ml-4 mr-2 flex h-full",children:(0,i.jsx)(o(),{src:c.A,alt:"Form input error"})}),a||""]})]})}},93809:(e,t,n)=>{n.d(t,{A:()=>i});let i={src:"https://web.cdn.greenlight.com/2.1765.0/_next/static/media/error_icon.bf9d3d38.svg",height:24,width:24,blurWidth:0,blurHeight:0}}}]);
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.