1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79427,e=>{"use strict";var t=e.i(43476),i=e.i(57688);e.i(22016);var s=e.i(71645);e.s(["default",0,function({title:e,subtitle:r="AUTHENTIC THAI FOOD SINCE 2003",isHome:n=!1,imageSrc:o="/images/hero.jpg",imageAlt:a="Thai food flatlay at On Rice Thai Cuisine, Bellingham WA",images:l,videoSrc:c,videoPoster:d,videoStopAt:h,mobileImageSrc:u,overlayOpacity:m,imagePosition:p="center",height:v,children:f}){let[x,g]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if("function"!=typeof window.matchMedia)return;let e=window.matchMedia("(max-width: 768px)"),t=()=>g(e.matches);return(t(),"function"==typeof e.addEventListener)?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t))},[]);let b=!!c&&!x,y=!b,[j,w]=(0,s.useState)(0),N=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(!l||l.length<=1)return;let e=setInterval(()=>{w(e=>(e+1)%l.length)},4e3);return()=>clearInterval(e)},[l]),(0,s.useEffect)(()=>{let e=N.current;if(!b||!e)return;let t=!1,i=1/30,s=null,r=!1,n=()=>null!=h?h:Number.isFinite(e.duration)?e.duration-3*i:1/0,o=()=>{if(r)return;r=!0;let t=Number.isFinite(e.duration)?e.duration:1/0,i=Math.max(0,Math.min(n(),t));e.pause();try{e.currentTime=i}catch{}};if("function"==typeof e.requestVideoFrameCallback){let r=(a,l)=>{if(t)return;let c=l.mediaTime;if(null!=s){let e=c-s;e>0&&e<i&&(i=e)}(s=c,c>=n())?o():e.requestVideoFrameCallback(r)};e.requestVideoFrameCallback(r)}else{let i=()=>{e.currentTime>=n()&&o()};return e.addEventListener("timeupdate",i),e.addEventListener("ended",o),()=>{t=!0,e.removeEventListener("timeupdate",i),e.removeEventListener("ended",o)}}return()=>{t=!0}},[b,h]),(0,t.jsxs)("section",{style:{position:"relative",width:"100%",minHeight:v??(n?"100vh":"clamp(280px, 38vw, 380px)"),display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:[(0,t.jsx)("style",{children:` 2 @media (max-width: 480px) { 3 .hero-home-logo { width: min(85vw, 320px) !important; } 4 } 5 `}),(0,t.jsx)("div",{style:{position:"absolute",inset:0,backgroundColor:"var(--color-surface)"},children:b?(0,t.jsx)("video",{ref:N,autoPlay:!0,muted:!0,playsInline:!0,preload:"auto",poster:d,"aria-label":a,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",objectPosition:"center"},children:(0,t.jsx)("source",{src:c,type:"video/mp4"})}):c&&x?(0,t.jsx)("div",{className:n?"hero-bg-zoom":void 0,style:{position:"absolute",inset:0},children:(0,t.jsx)(i.default,{src:u||o,alt:a,fill:!0,priority:!0,style:{objectFit:"cover",objectPosition:p},sizes:"100vw"})}):l?l.map((e,s)=>(0,t.jsx)("div",{className:n?"hero-bg-zoom":void 0,style:{position:"absolute",inset:0,opacity:+(s===j),transition:"opacity 1.2s ease-in-out"},children:(0,t.jsx)(i.default,{src:e,alt:a,fill:!0,priority:0===s,style:{objectFit:"cover",objectPosition:"center"},sizes:"100vw"})},e)):(0,t.jsx)("div",{className:n?"hero-bg-zoom":void 0,style:{position:"absolute",inset:0},children:(0,t.jsx)(i.default,{src:o,alt:a,fill:!0,priority:!0,style:{objectFit:"cover",objectPosition:p},sizes:"100vw"})})}),!b&&(0,t.jsx)("div",{style:{position:"absolute",inset:0,background:n?"rgba(0,0,0,0.60)":void 0!==m?`rgba(0,0,0,${m})`:"linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.60) 100%)",zIndex:1}}),y&&(0,t.jsxs)("div",{style:{position:"relative",zIndex:2,textAlign:"center",padding:"0 24px",maxWidth:"900px",width:"100%"},children:[r&&(0,t.jsxs)("div",{className:"hero-sub",style:{marginBottom:"16px"},children:[(0,t.jsx)("span",{className:"line"}),(0,t.jsx)("span",{className:"label",children:r}),(0,t.jsx)("span",{className:"line"})]}),n?(0,t.jsx)("div",{className:"hero-title",style:{margin:"0 0 24px",display:"flex",justifyContent:"center"},children:(0,t.jsxs)("div",{className:"hero-home-logo",style:{position:"relative",width:"clamp(350px, 69vw, 750px)"},children:[(0,t.jsx)(i.default,{src:"/images/logo-hero2.webp",alt:"On Rice Thai Cuisine",width:600,height:280,style:{width:"100%",height:"auto",mixBlendMode:"screen",display:"block"},priority:!0}),(0,t.jsx)("div",{className:"logo-shine-mask","aria-hidden":"true",children:(0,t.jsx)("div",{className:"logo-shine-sweep"})})]})}):(0,t.jsx)("h1",{className:"hero-title",style:{fontFamily:'var(--font-cormorant), "Cormorant Garamond", serif',fontSize:"clamp(52px, 8vw, 96px)",fontWeight:300,color:"var(--color-text-heading)",letterSpacing:"-0.03em",lineHeight:.95,margin:"0 0 24px"},children:e}),n&&(0,t.jsx)("p",{className:"hero-sub",style:{fontFamily:'var(--font-cormorant), "Cormorant Garamond", serif',fontSize:"clamp(18px, 2.2vw, 28px)",fontWeight:500,fontStyle:"italic",color:"rgba(255,255,255,0.95)",letterSpacing:"0.01em",margin:"0 0 32px",display:"block"},children:"An Explosion of Flavors"}),f&&(0,t.jsx)("div",{className:"hero-ctas",children:f})]}),!y&&f&&(0,t.jsx)("div",{style:{position:"absolute",left:0,right:0,bottom:"64px",zIndex:2,display:"flex",justifyContent:"center",padding:"0 24px"},children:(0,t.jsx)("div",{className:"hero-ctas",children:f})})]})}])},42606,e=>{"use strict";var t=e.i(43476),i=e.i(71645);e.s(["default",0,function({children:e}){let s=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=s.current;if(!e||!window.matchMedia("(prefers-reduced-motion: no-preference)").matches)return;let t=new IntersectionObserver(e=>
5{e.forEach(e=>{e.isIntersecting&&(e.target.classList.add("visible"),t.unobserve(e.target))})},{threshold:.1});return e.classList.add("reveal"),t.observe(e),()=>t.disconnect()},[]),(0,t.jsx)("div",{ref:s,children:e})}])}]);
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.