1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ed1a2051-989b-588c-b00c-83437970c896")}catch(e){}}(); 3import{R as C,r as s,j as e}from"./index-CaZDtOo5.js";import{L,g as w,p as S,a as D}from"./utils-BGn0tD6_.js";import{I as R}from"./variantUtils-B69B0os3.js";const c={desktop:"https://res.cloudinary.com/drinklmnt/image/upload/v1776813568/lemonade-iced-tea-homepage-banner-desktop_vqywyd.webp",mobile:"https://res.cloudinary.com/drinklmnt/image/upload/v1776813568/lemonade-iced-tea-homepage-banner-mobile_ez4qq7.webp",heading:"https://res.cloudinary.com/drinklmnt/image/upload/v1776815220/iced-tea-banner-heading_wglasn.webp",collapsedDesktop:"https://res.cloudinary.com/drinklmnt/image/upload/v1777084769/LIT_TEA_SPLASH_banner_desktop_vydb12.webp",collapsedMobile:"https://res.cloudinary.com/drinklmnt/image/upload/v1777084769/LIT_TEA_SPLASH_collapse_banner_mobile_yhb3o1.webp"},j=L,h="Introducing Lemonade + Iced Tea â Caffeinated",g="Lightly caffeinated, still salty.",_="Get Yours",M=900,O=1700,y=800,H=24,T=300;function f(t){return{opacity:t?1:0,transform:`translate3d(0, ${t?0:H}px, 0)`,transition:`opacity ${y}ms ease-out, transform ${y}ms ease-out`,willChange:t?void 0:"opacity, transform"}}function k(){const[t,o]=s.useState(!1);return s.useEffect(()=>{const a=window.matchMedia("(prefers-reduced-motion: reduce)");o(a.matches);const l=n=>o(n.matches);return a.addEventListener("change",l),()=>a.removeEventListener("change",l)},[]),t}function P(t,o){const[a,l]=s.useState(!1);return s.useEffect(()=>{if(!o)return;const n=t.current;if(!n||typeof IntersectionObserver>"u")return;const r=new IntersectionObserver(([d])=>{const u=!d.isIntersecting&&d.boundingClientRect.top<0;l(u)},{threshold:0});return r.observe(n),()=>r.disconnect()},[t,o]),a}function $({trackingIds:t,ctaUrl:o=j,enableStickyCollapsed:a=!1}){const l=s.useMemo(()=>w(t==null?void 0:t.heroCta),[t==null?void 0:t.heroCta]),n=s.useMemo(()=>w(t==null?void 0:t.stickyCta),[t==null?void 0:t.stickyCta]),r=k(),[d,u]=s.useState(!1),[i,x]=s.useState(!1),b=s.useRef(null),N=P(b,a),m=a&&N,p=s.useMemo(()=>/^https?:\/\//.test(o)?o:`${S}://${D()}${o}`,[o]),E=`${p}#${R}`;return s.useEffect(()=>{if(r){u(!0),x(!0);return}const v=setTimeout(()=>u(!0),M),A=setTimeout(()=>x(!0),O);return()=>{clearTimeout(v),clearTimeout(A)}},[r]),e.jsxs(e.Fragment,{children:[e.jsx("section",{ref:b,className:"relative w-full overflow-hidden",children:e.jsxs("div",{className:"mx-auto w-full max-w-[2000px]",children:[e.jsxs("div",{className:"relative flex h-[550px] w-full flex-col justify-between pb-8 pl-6 pt-3 md:h-[640px] md:items-center md:px-6 md:pl-6 lg:hidden",children:[e.jsx("img",{src:c.mobile,alt:"","aria-hidden":"true",loading:"eager",className:"absolute inset-0 h-full w-full object-cover object-[center_13%] md:object-top"}),e.jsx("div",{className:"md:w-full md:max-w-[500px]",style:f(d),children:e.jsx("img",{src:c.heading,alt:h,loading:"eager",className:"block h-auto w-full max-w-full"})}),e.jsxs("div",{className:"flex flex-col items-center px-6 text-center",style:f(i),children:[e.jsx("p",{className:"mb-5 font-gothamssm-bold text-base text-white",children:g}),e.jsx("a",{href:p,...l,tabIndex:i?void 0:-1,"aria-hidden":!i||void 0,className:"inline-block rounded-full bg-lemonade-500 px-16 py-3 text-center font-gothamssm-bold text-black",children:_})]})]}),e.jsxs("div",{className:"relative hidden h-[640px] w-full lg:block",children:[e.jsx("img",{src:c.desktop,alt:"","aria-hidden":"true",loading:"eager",className:"absolute inset-0 h-full w-full object-cover object-[65%_65%]"}),e.jsx("div",{className:"relative mx-auto flex h-full max-w-screen-xl items-center justify-end px-4 lg:px-10",children:e.jsxs("div",{className:"w-full max-w-[560px]",children:[e.jsx("div",{style:f(d),children:e.jsx("img",{src:c.heading,alt:h,loading:"eager",className:"w-full"})}),e.jsxs("div",{className:"ml-auto mt-6 w-fit",style:f(i),children:[e.jsx("p",{className:"font-gothamssm-bold text-2xl text-black",children:g}),e.jsx("a",{href:p,...l,tabIndex:i?void 0:-1,"aria-hidden":!i||void 0,className:"mt-5 inline-block rounded-full bg-lemonade-500 px-12 py-3 text-center font-gothamssm-bold text-black",children:_})]})]})})]})]})}),a&&e.jsx("div",{"data-testid":"lemonade-iced-tea-sticky-banner","aria-hidden":!m,className:"fixed inset-x-0 top-0 z-50",style:{transform:m?"translateY(0)":"translateY(-100%)",opacity:m?1:0,pointerEvents:m?"auto":"none",transition:r?"none":`transform ${T}ms ease-out, opacity ${T}ms ease-out`},children:e.jsxs("a",{href:E,...n,tabIndex:m?void 0:-1,className:"block w-full",children:[e.jsx("img",{src:c.collapsedMobile,alt:h,loading:"eager",className:"block h-auto w-full lg:hidden"}),e.jsx("img",{src:c.collapsedDesktop,alt:h,loading:"eager",className:"hidden h-auto w-full lg:block"})]})})]})}const G=C.memo($),q=[{name:"ctaUrl",type:"string",defaultValue:j,helperText:"Path for the Get Yours button. The sticky collapsed banner reuses this path on the root domain and deep-links to the PDP science section."},{name:"enableStickyCollapsed",type:"boolean",defaultValue:!0,helperText:"When enabled, a collapsed banner fixes to the top of the page once the hero scrolls out of view"}];export{G as L,q as b}; 4 5//# debugId=ed1a2051-989b-588c-b00c-83437970c896
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.