{"version":3,"file":"SmashhouseMenuGrid.DRF27vAL.mjs","names":["useMemo","useState","useRef","c","p"],"sources":["https:/framerusercontent.com/modules/OKMppUfJ1GSpiHN2W3NY/KV4SmGvemVV9bEUbzzto/SmashhouseMenuGrid.js"],"sourcesContent":["/*\n * Smashhouse — Menu Grid\n *\n * What it does\n *   The whole menu as a grid of cards. Every card holds the real 3D burger, built from its layers:\n *   it turns slowly, follows the pointer, and on hover spins faster and pulls its layers apart.\n *   Category tabs on top filter the cards. Each card links to the burger's own page.\n *   One shared WebGL renderer draws every card, so eight burgers cost about as much as one.\n *\n * How to use it\n *   1. Put it on the Menu page under the Page Header. Width Fill, height Auto.\n *   2. Somewhere ABOVE it on the same page, add a Collection List for the \"Menu\" collection with a\n *      \"Smashhouse Menu Item\" inside it, fields connected (see that component). The grid shows those\n *      burgers in the list's order. Without the list it shows the demo menu.\n *   3. \"Only category\" shows one category (e.g. \"Specials\" on the home page). \"Limit\" caps the count.\n *\n * Setup notes\n *   three.js (r170) is loaded at runtime from a public CDN. If it cannot load, the cards still work\n *   and show the burger's Photo field instead.\n *   Burgers with their own 3D model (.glb) are shown from their Layers here; the home scene shows the model.\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useMemo,useRef,useState}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useMenu,formatPrice,Css}from\"https://framerusercontent.com/modules/U54Gmat5vNkYg74N9iuh/iWs7pfJwqfsmKFLaJWHu/SmashhouseCore.js\";import{loadThree,createBurgerKit,addStudio,DEMO_MENU,entryLayers,seedOf}from\"https://framerusercontent.com/modules/hCQt6MC6YgWhN6uNq6KB/DWXQX7uNUezOrcj1uwZJ/SmashhouseBurger.js\";/** Font controls also send a size, weight and line height; only the family is used so the design's\n *  sizes stay intact. \"Inter\" is Framer's default pick, so it keeps the template font. */const face=f=>{const fam=f&&typeof f.fontFamily===\"string\"?f.fontFamily:\"\";return fam&&!/^\\s*\"?Inter\"?\\s*(,|$)/.test(fam)?{fontFamily:fam}:{};};const CSS=`\n.smg{--smg-bg:#140C08;--smg-card:#22140D;--smg-ink:#FFF1DC;--smg-muted:rgba(255,241,220,.62);--smg-sticker:#F2B233;--smg-sticker-ink:#140C08;--smg-line:rgba(255,241,220,.12);--smg-radius:28px;--smg-gap:20px;--smg-cols:3;position:relative;width:100%;background:var(--smg-bg);color:var(--smg-ink);container-type:inline-size;container-name:smg;font-family:\"Bricolage Grotesque\",\"Inter\",system-ui,-apple-system,sans-serif}\n.smg *{box-sizing:border-box}\n.smg-inner{max-width:1320px;margin:0 auto;padding:var(--smg-top,24px) clamp(16px,3.4cqw,48px) var(--smg-bottom,140px)}\n.smg-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 28px;flex-wrap:wrap}\n.smg-tabs{position:relative;display:flex;gap:4px;padding:5px;border-radius:999px;border:1px solid var(--smg-line);background:color-mix(in srgb,var(--smg-card) 70%,transparent);max-width:100%;overflow-x:auto;scrollbar-width:none}\n.smg-tabs::-webkit-scrollbar{display:none}\n.smg-pill{position:absolute;top:5px;bottom:5px;left:0;width:0;border-radius:999px;background:var(--smg-ink);transform:translateX(var(--x,0px));width:var(--w,0px);transition:transform .55s cubic-bezier(.3,1.3,.5,1),width .55s cubic-bezier(.3,1.3,.5,1);pointer-events:none}\n.smg-tab{position:relative;z-index:1;appearance:none;border:0;background:none;cursor:pointer;padding:10px 18px;border-radius:999px;font:inherit;font-size:14px;font-weight:600;letter-spacing:-.01em;color:var(--smg-muted);white-space:nowrap;transition:color .3s ease}\n.smg-tab:hover{color:var(--smg-ink)}\n.smg-tab[aria-selected=\"true\"]{color:var(--smg-bg)}\n.smg-tab:focus-visible{outline:2px solid var(--smg-sticker);outline-offset:2px}\n.smg-count{margin:0;font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--smg-muted)}\n.smg-count b{color:var(--smg-ink);font-weight:800}\n.smg-grid{display:grid;grid-template-columns:repeat(var(--smg-cols),minmax(0,1fr));gap:var(--smg-gap)}\n.smg-card{--stage:#5A1A10;--accent:#E8432E;position:relative;display:flex;flex-direction:column;min-width:0;border-radius:var(--smg-radius);background:var(--smg-card);color:inherit;text-decoration:none;outline:none;opacity:0;transform:translateY(40px) scale(.97);transition:opacity .8s ease,transform 1s cubic-bezier(.2,.75,.2,1)}\n.smg-card[data-in=\"1\"]{opacity:1;transform:none}\n.smg-card[data-wide=\"1\"]{grid-column:span 2}\n.smg-art{position:relative;container-type:inline-size;aspect-ratio:1/1;border-radius:var(--smg-radius);overflow:hidden;isolation:isolate;transform:perspective(1100px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .5s cubic-bezier(.2,.75,.2,1);background:radial-gradient(120% 90% at 50% 38%,color-mix(in srgb,var(--stage) 100%,#fff 10%) 0%,var(--stage) 46%,color-mix(in srgb,var(--stage) 55%,#000) 100%)}\n.smg-card[data-wide=\"1\"] .smg-art{aspect-ratio:auto;min-height:0;flex:1}\n.smg-glow{position:absolute;left:50%;top:44%;width:70%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%) scale(.9);background:radial-gradient(circle,color-mix(in srgb,var(--accent) 55%,transparent) 0%,transparent 66%);opacity:.5;transition:opacity .6s ease,transform .8s cubic-bezier(.2,.75,.2,1);z-index:-1}\n.smg-card:hover .smg-glow,.smg-card:focus-visible .smg-glow{opacity:.95;transform:translate(-50%,-50%) scale(1.12)}\n.smg-ghost{position:absolute;left:0;right:0;bottom:-.13em;margin:0;font-size:calc(150cqw / var(--chars,8));line-height:.8;font-weight:800;letter-spacing:-.06em;white-space:nowrap;color:color-mix(in srgb,var(--smg-ink) 7%,transparent);text-align:center;z-index:-1;pointer-events:none;transition:transform 1.2s cubic-bezier(.2,.75,.2,1)}\n.smg-card:hover .smg-ghost{transform:translateX(-4%)}\n.smg-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .8s ease}\n.smg-canvas[data-ready=\"1\"]{opacity:1}\n.smg-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}\n.smg-badge{position:absolute;top:16px;left:16px;padding:7px 12px;border-radius:999px;background:color-mix(in srgb,#000 32%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--smg-ink)}\n.smg-badge::before{content:\"\";display:inline-block;width:6px;height:6px;margin:0 8px 1px 0;border-radius:50%;background:var(--accent);vertical-align:middle}\n.smg-price{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:clamp(58px,6cqw,72px);aspect-ratio:1;border-radius:50%;background:var(--smg-sticker);color:var(--smg-sticker-ink);font-size:clamp(17px,1.7cqw,21px);font-weight:800;letter-spacing:-.03em;transform:rotate(-12deg);transition:transform .6s cubic-bezier(.3,1.5,.5,1);box-shadow:0 10px 24px -10px rgba(0,0,0,.6)}\n.smg-card:hover .smg-price,.smg-card:focus-visible .smg-price{transform:rotate(8deg) scale(1.08)}\n.smg-meta{position:relative;display:grid;grid-template-columns:1fr auto;align-items:end;gap:6px 16px;padding:20px 22px 22px}\n.smg-cat{grid-column:1/-1;font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--smg-muted)}\n.smg-name{margin:0;font-size:clamp(26px,2.5cqw,34px);line-height:.95;letter-spacing:-.04em;font-weight:800}\n.smg-tag{grid-column:1;margin:4px 0 0;font-size:15px;line-height:1.4;color:var(--smg-muted)}\n.smg-cta{grid-column:2;grid-row:2/4;align-self:end;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:1px solid var(--smg-line);color:var(--smg-ink);overflow:hidden;transition:background .35s ease,color .35s ease,border-color .35s ease}\n.smg-cta svg{width:18px;height:18px;transition:transform .45s cubic-bezier(.2,.75,.2,1)}\n.smg-card:hover .smg-cta,.smg-card:focus-visible .smg-cta{background:var(--smg-ink);color:var(--smg-bg);border-color:var(--smg-ink)}\n.smg-card:hover .smg-cta svg{transform:rotate(-45deg)}\n.smg-facts{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:12px;padding-top:14px;border-top:1px solid var(--smg-line);font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--smg-muted)}\n.smg-facts span{white-space:nowrap}\n.smg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n.smg-card:focus-visible{box-shadow:0 0 0 2px var(--smg-bg),0 0 0 4px var(--smg-sticker)}\n.smg-empty{padding:80px 0;text-align:center;color:var(--smg-muted)}\n@container smg (max-width:980px){.smg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.smg-card[data-wide=\"1\"] .smg-art{aspect-ratio:16/10;flex:none}}\n@container smg (max-width:620px){.smg-grid{grid-template-columns:minmax(0,1fr)}.smg-card[data-wide=\"1\"]{grid-column:auto}.smg-card[data-wide=\"1\"] .smg-art{aspect-ratio:1/1;flex:none;height:auto}.smg-bar{flex-direction:column;align-items:stretch}.smg-count{order:-1}}\n@media (max-width:980px){.smg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.smg-card[data-wide=\"1\"] .smg-art{aspect-ratio:16/10;flex:none}}\n@media (max-width:620px){.smg-grid{grid-template-columns:minmax(0,1fr)}.smg-card[data-wide=\"1\"]{grid-column:auto}.smg-card[data-wide=\"1\"] .smg-art{aspect-ratio:1/1;flex:none;height:auto}.smg-bar{flex-direction:column;align-items:stretch}.smg-count{order:-1}}\n@media (prefers-reduced-motion:reduce){.smg-card{opacity:1;transform:none;transition:none}.smg-art{transform:none}}\n`;const ARROW=/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12h14M13 6l6 6-6 6\"})});/**\n * Smashhouse — Menu Grid\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1200\n */export default function SmashhouseMenuGrid(props){const{filter=true,allLabel=\"All\",category=\"\",limit=0,featureFirst=true,columns=3,cta=\"See the stack\",countLabel=\"burgers\",pricePrefix=\"$\",priceSuffix=\"\",motion={},colors={},layout={},quality=1.5,titleFont,font}=props;const isStatic=useIsStaticRenderer();const menu=useMenu();const source=menu.length?menu:DEMO_MENU;/* \"Only category\" first, then the limit */const pool=useMemo(()=>{const only=String(category||\"\").trim().toLowerCase();let list=only?source.filter(e=>e.category.trim().toLowerCase()===only):source.slice();if(limit>0)list=list.slice(0,Math.round(limit));return list;},[source,category,limit]);const categories=useMemo(()=>{const seen=[];pool.forEach(e=>{const c=e.category.trim();if(c&&seen.indexOf(c)<0)seen.push(c);});return seen;},[pool]);const[active,setActive]=useState(\"\");const current=active&&categories.indexOf(active)>=0?active:\"\";const items=current?pool.filter(e=>e.category.trim()===current):pool;const wideFirst=featureFirst&&!current&&items.length>2&&columns>=3;const spin=typeof motion.spin===\"number\"?motion.spin:1;const explode=motion.explode!==false;const tilt=motion.tilt!==false;/* ---- the shared renderer ---- */const hubRef=useRef(null);if(!hubRef.current)hubRef.current={cards:new Map,built:new Map,wake:()=>{}};const hub=hubRef.current;const[failed,setFailed]=useState(false);const settings=useRef({spin,explode,quality,isStatic});settings.current={spin,explode,quality,isStatic};useEffect(()=>{let alive=true;let cleanup=null;loadThree().then(T=>{if(!alive)return;cleanup=startEngine(T,hub,settings);}).catch(()=>alive&&setFailed(true));return()=>{alive=false;if(cleanup)cleanup();};},[hub]);/* ---- tabs: the pill slides under the active tab ---- */const tabsRef=useRef(null);useEffect(()=>{const tabs=tabsRef.current;if(!tabs)return;const place=()=>{const on=tabs.querySelector('[aria-selected=\"true\"]');if(!on)return;tabs.style.setProperty(\"--x\",`${on.offsetLeft}px`);tabs.style.setProperty(\"--w\",`${on.offsetWidth}px`);};place();const ro=typeof ResizeObserver!==\"undefined\"?new ResizeObserver(place):null;if(ro)ro.observe(tabs);if(typeof document!==\"undefined\"&&document.fonts)document.fonts.ready.then(place).catch(()=>{});return()=>{if(ro)ro.disconnect();};},[current,categories.length,filter]);const vars={\"--smg-bg\":colors.bg||\"#140C08\",\"--smg-card\":colors.card||\"#22140D\",\"--smg-ink\":colors.ink||\"#FFF1DC\",\"--smg-muted\":colors.muted||\"rgba(255,241,220,0.62)\",\"--smg-sticker\":colors.sticker||\"#F2B233\",\"--smg-sticker-ink\":colors.stickerInk||\"#140C08\",\"--smg-line\":colors.line||\"rgba(255,241,220,0.12)\",\"--smg-radius\":`${typeof layout.radius===\"number\"?layout.radius:28}px`,\"--smg-gap\":`${typeof layout.gap===\"number\"?layout.gap:20}px`,\"--smg-top\":`${typeof layout.top===\"number\"?layout.top:24}px`,\"--smg-bottom\":`${typeof layout.bottom===\"number\"?layout.bottom:140}px`,\"--smg-cols\":String(Math.max(1,Math.min(4,Math.round(columns)))),...face(font),...props.style};const showTabs=filter&&categories.length>1;return /*#__PURE__*/_jsxs(\"section\",{className:\"smg\",style:vars,children:[/*#__PURE__*/_jsx(Css,{css:CSS}),/*#__PURE__*/_jsxs(\"div\",{className:\"smg-inner\",children:[showTabs||countLabel?/*#__PURE__*/_jsxs(\"div\",{className:\"smg-bar\",children:[showTabs?/*#__PURE__*/_jsxs(\"div\",{className:\"smg-tabs\",role:\"tablist\",\"aria-label\":\"Menu categories\",ref:tabsRef,children:[/*#__PURE__*/_jsx(\"span\",{className:\"smg-pill\",\"aria-hidden\":\"true\"}),[\"\",...categories].map(c=>/*#__PURE__*/_jsx(\"button\",{type:\"button\",role:\"tab\",className:\"smg-tab\",\"aria-selected\":c===current,onClick:()=>setActive(c),children:c||allLabel},c||\"__all\"))]}):/*#__PURE__*/_jsx(\"span\",{}),countLabel?/*#__PURE__*/_jsxs(\"p\",{className:\"smg-count\",\"aria-live\":\"polite\",children:[/*#__PURE__*/_jsx(\"b\",{children:items.length}),\" \",countLabel]}):null]}):null,items.length?/*#__PURE__*/_jsx(\"div\",{className:\"smg-grid\",children:items.map((entry,i)=>/*#__PURE__*/_jsx(Card,{entry:entry,index:i,wide:wideFirst&&i===0,hub:hub,isStatic:isStatic,failed:failed,tilt:tilt,cta:cta,price:formatPrice(entry.price,pricePrefix,priceSuffix),titleFont:face(titleFont),cols:Math.max(1,Math.round(columns))},entry.key))}):/*#__PURE__*/_jsx(\"p\",{className:\"smg-empty\",children:\"Nothing in this category yet.\"})]})]});}SmashhouseMenuGrid.displayName=\"Smashhouse Menu Grid\";/* ------------------------------------------------------------------ *//* Card                                                               *//* ------------------------------------------------------------------ */function Card(p){const{entry,hub,isStatic}=p;const cardRef=useRef(null);const artRef=useRef(null);const canvasRef=useRef(null);const layerCount=entryLayers(entry).length;/* register with the shared renderer while mounted */useEffect(()=>{const canvas=canvasRef.current;const art=artRef.current;const card=cardRef.current;if(!canvas||!art||!card)return;const slot={key:entry.key,entry,index:p.index,canvas,art,visible:isStatic,hover:0,hoverTarget:0,angle:-.5+seedOf(entry.key)%100/100,px:0,py:0,pxT:0,pyT:0,built:null,dirty:true};hub.cards.set(entry.key,slot);hub.wake();if(isStatic){card.setAttribute(\"data-in\",\"1\");return()=>{hub.cards.delete(entry.key);};}let io=null;if(typeof IntersectionObserver!==\"undefined\"){io=new IntersectionObserver(records=>{records.forEach(r=>{slot.visible=r.isIntersecting;if(r.isIntersecting){card.setAttribute(\"data-in\",\"1\");hub.wake();}});},{rootMargin:\"120px 0px\"});io.observe(card);}else{slot.visible=true;card.setAttribute(\"data-in\",\"1\");}return()=>{if(io)io.disconnect();hub.cards.delete(entry.key);};// eslint-disable-next-line react-hooks/exhaustive-deps\n},[entry.key,hub,isStatic]);/* keep the slot's data fresh when the CMS changes */useEffect(()=>{const slot=hub.cards.get(entry.key);if(!slot)return;if(slot.entry.layers!==entry.layers||slot.entry.accent!==entry.accent)slot.dirty=true;slot.entry=entry;hub.wake();},[entry,hub]);const onMove=e=>{const art=artRef.current;const slot=hub.cards.get(entry.key);if(!art||!slot)return;const r=art.getBoundingClientRect();const x=(e.clientX-r.left)/Math.max(1,r.width)-.5;const y=(e.clientY-r.top)/Math.max(1,r.height)-.5;slot.pxT=x;slot.pyT=y;if(p.tilt){art.style.setProperty(\"--ry\",`${(x*7).toFixed(2)}deg`);art.style.setProperty(\"--rx\",`${(-y*7).toFixed(2)}deg`);}hub.wake();};const setHover=on=>{const slot=hub.cards.get(entry.key);if(slot){slot.hoverTarget=on?1:0;if(!on){slot.pxT=0;slot.pyT=0;}}if(!on&&artRef.current){artRef.current.style.setProperty(\"--rx\",\"0deg\");artRef.current.style.setProperty(\"--ry\",\"0deg\");}hub.wake();};const facts=[entry.weight,layerCount?`${layerCount} layers`:\"\",entry.pairs?`With ${entry.pairs.charAt(0).toLowerCase()}${entry.pairs.slice(1)}`:\"\"].filter(Boolean);return /*#__PURE__*/_jsxs(\"a\",{ref:cardRef,className:\"smg-card\",href:entry.link||undefined,\"data-wide\":p.wide?\"1\":\"0\",\"data-in\":isStatic?\"1\":\"0\",style:{[\"--stage\"]:entry.stage||\"#5A1A10\",[\"--accent\"]:entry.accent||\"#E8432E\",transitionDelay:`${p.index%Math.max(1,p.cols)*90}ms`},onPointerEnter:()=>setHover(true),onPointerLeave:()=>setHover(false),onPointerMove:onMove,onFocus:()=>setHover(true),onBlur:()=>setHover(false),children:[/*#__PURE__*/_jsxs(\"div\",{className:\"smg-art\",ref:artRef,children:[/*#__PURE__*/_jsx(\"span\",{className:\"smg-glow\",\"aria-hidden\":\"true\"}),/*#__PURE__*/_jsx(\"p\",{className:\"smg-ghost\",\"aria-hidden\":\"true\",style:{[\"--chars\"]:String(Math.max(6,entry.name.length))},children:entry.name}),p.failed&&entry.photo?/*#__PURE__*/_jsx(\"img\",{className:\"smg-photo\",src:entry.photo,alt:\"\",loading:\"lazy\"}):null,/*#__PURE__*/_jsx(\"canvas\",{className:\"smg-canvas\",ref:canvasRef,\"aria-hidden\":\"true\"}),entry.badge?/*#__PURE__*/_jsx(\"span\",{className:\"smg-badge\",children:entry.badge}):null,p.price?/*#__PURE__*/_jsx(\"span\",{className:\"smg-price\",children:p.price}):null]}),/*#__PURE__*/_jsxs(\"div\",{className:\"smg-meta\",children:[entry.category?/*#__PURE__*/_jsx(\"span\",{className:\"smg-cat\",children:entry.category}):null,/*#__PURE__*/_jsx(\"h3\",{className:\"smg-name\",style:p.titleFont,children:entry.name}),entry.tagline?/*#__PURE__*/_jsx(\"p\",{className:\"smg-tag\",children:entry.tagline}):null,/*#__PURE__*/_jsx(\"span\",{className:\"smg-cta\",\"aria-hidden\":\"true\",children:ARROW}),/*#__PURE__*/_jsx(\"span\",{className:\"smg-sr\",children:p.cta}),facts.length?/*#__PURE__*/_jsx(\"div\",{className:\"smg-facts\",children:facts.map((f,i)=>/*#__PURE__*/_jsx(\"span\",{children:f},i))}):null]})]});}/* ------------------------------------------------------------------ *//* Engine: one WebGL renderer draws every visible card                *//* ------------------------------------------------------------------ */function startEngine(T,hub,settings){const gl=document.createElement(\"canvas\");const renderer=new T.WebGLRenderer({canvas:gl,antialias:true,alpha:true,powerPreference:\"high-performance\",preserveDrawingBuffer:true});renderer.outputColorSpace=T.SRGBColorSpace;renderer.toneMapping=T.ACESFilmicToneMapping;renderer.toneMappingExposure=1.05;renderer.setClearColor(0,0);renderer.setPixelRatio(1);renderer.autoClear=false;let bufW=0;let bufH=0;const extra=[];const keep=t=>(extra.push(t),t);const scene=new T.Scene;const camera=new T.PerspectiveCamera(26,1,.1,80);const rim=addStudio(T,renderer,scene,keep);const kit=createBurgerKit(T,renderer);/* soft contact shadow under every burger */const shadowCanvas=document.createElement(\"canvas\");shadowCanvas.width=shadowCanvas.height=128;const sctx=shadowCanvas.getContext(\"2d\");if(sctx){const g=sctx.createRadialGradient(64,64,0,64,64,64);g.addColorStop(0,\"rgba(0,0,0,0.85)\");g.addColorStop(.45,\"rgba(0,0,0,0.4)\");g.addColorStop(1,\"rgba(0,0,0,0)\");sctx.fillStyle=g;sctx.fillRect(0,0,128,128);}const shadowTex=keep(new T.CanvasTexture(shadowCanvas));const shadowGeo=new T.PlaneGeometry(1,1);const shadowMat=new T.MeshBasicMaterial({map:shadowTex,transparent:true,depthWrite:false,opacity:.7});const accent=new T.Color;const reduced=typeof window!==\"undefined\"&&window.matchMedia&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;function build(slot){const cached=hub.built.get(slot.key);if(cached&&!slot.dirty&&cached.layers===slot.entry.layers){slot.built=cached;return;}const burger=kit.build(entryLayers(slot.entry),seedOf(slot.entry.key));const pivot=new T.Group;const inner=new T.Group;inner.add(burger.group);const shadow=new T.Mesh(shadowGeo,shadowMat);shadow.rotation.x=-Math.PI/2;shadow.position.y=-.03;shadow.scale.setScalar(burger.width*1.45);inner.add(shadow);pivot.add(inner);const n=burger.parts.length;slot.built={pivot,inner,burger,gap:n>1?Math.min(.16,1.1/(n-1)):0,layers:slot.entry.layers};hub.built.set(slot.key,slot.built);slot.dirty=false;}function draw(slot,dpr){const rect=slot.canvas.getBoundingClientRect();const cw=Math.max(1,Math.round(rect.width*dpr));const ch=Math.max(1,Math.round(rect.height*dpr));if(rect.width<2||rect.height<2)return;if(slot.canvas.width!==cw||slot.canvas.height!==ch){slot.canvas.width=cw;slot.canvas.height=ch;}if(cw>bufW||ch>bufH){bufW=Math.max(bufW,cw);bufH=Math.max(bufH,ch);renderer.setSize(bufW,bufH,false);}if(!slot.built||slot.dirty)build(slot);const b=slot.built;const burger=b.burger;const n=burger.parts.length;const e=settings.current.explode?easeInOut(slot.hover):0;/* layers pull apart from the bottom up */burger.parts.forEach((part,i)=>{part.obj.position.y=part.y+(n-1-i)*b.gap*e;});const total=burger.height+(n-1)*b.gap*e;b.inner.position.y=-total/2;b.pivot.rotation.y=slot.angle+slot.px*.6;b.pivot.rotation.x=slot.py*.12;/* fit the resting burger; the explosion is allowed to grow into the margin */const aspect=cw/ch;const fov=camera.fov*Math.PI/180;const tan=Math.tan(fov/2);const fitH=(burger.height+(n-1)*b.gap*.5)/2/(tan*.66);const fitW=burger.width/2/(tan*aspect*.66);const dist=Math.max(fitH,fitW)+burger.width*.5;const lift=.3;camera.aspect=aspect;camera.position.set(0,Math.sin(lift)*dist,Math.cos(lift)*dist);camera.lookAt(0,-burger.height*.04,0);camera.updateProjectionMatrix();accent.set(slot.entry.accent||\"#E8432E\");rim.color.copy(accent).lerp(new T.Color(1,1,1),.45);scene.add(b.pivot);renderer.setScissorTest(true);renderer.setViewport(0,0,cw,ch);renderer.setScissor(0,0,cw,ch);renderer.clear(true,true,true);renderer.render(scene,camera);scene.remove(b.pivot);const ctx=slot.canvas.getContext(\"2d\");if(ctx){ctx.clearRect(0,0,cw,ch);ctx.drawImage(gl,0,bufH-ch,cw,ch,0,0,cw,ch);}if(slot.canvas.getAttribute(\"data-ready\")!==\"1\")slot.canvas.setAttribute(\"data-ready\",\"1\");}let raf=0;let last=0;let frame=0;let disposed=false;const tick=now=>{raf=0;if(disposed)return;const s=settings.current;const dt=last?Math.min(.05,(now-last)/1e3):.016;last=now;frame++;const dpr=Math.min(typeof window!==\"undefined\"?window.devicePixelRatio||1:1,Math.max(.75,s.quality));let moving=false;hub.cards.forEach(slot=>{if(!slot.visible)return;const prevHover=slot.hover;slot.hover+=(slot.hoverTarget-slot.hover)*Math.min(1,dt*6);if(Math.abs(slot.hover-slot.hoverTarget)<.002)slot.hover=slot.hoverTarget;slot.px+=(slot.pxT-slot.px)*Math.min(1,dt*5);slot.py+=(slot.pyT-slot.py)*Math.min(1,dt*5);const speed=reduced?0:s.spin*(.28+slot.hover*1.1);slot.angle+=speed*dt;const busy=speed>0||prevHover!==slot.hover||Math.abs(slot.px-slot.pxT)>.001||Math.abs(slot.py-slot.pyT)>.001;if(busy)moving=true;const fresh=!slot.built||slot.dirty||slot.canvas.getAttribute(\"data-ready\")!==\"1\";/* hovered cards every frame, the rest at half rate */if(fresh||busy&&(slot.hover>.01||frame%2===0))draw(slot,dpr);});if(moving&&!s.isStatic)raf=requestAnimationFrame(tick);};const wake=()=>{if(!raf&&!disposed)raf=requestAnimationFrame(tick);};hub.wake=wake;const onVisibility=()=>{if(document.hidden){if(raf)cancelAnimationFrame(raf);raf=0;}else wake();};const onResize=()=>wake();document.addEventListener(\"visibilitychange\",onVisibility);window.addEventListener(\"resize\",onResize);wake();return()=>{disposed=true;if(raf)cancelAnimationFrame(raf);hub.wake=()=>{};document.removeEventListener(\"visibilitychange\",onVisibility);window.removeEventListener(\"resize\",onResize);hub.cards.forEach(slot=>slot.built=null);hub.built.clear();kit.dispose();extra.forEach(t=>t.dispose&&t.dispose());shadowGeo.dispose();shadowMat.dispose();renderer.dispose();};}const easeInOut=t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2;addPropertyControls(SmashhouseMenuGrid,{filter:{type:ControlType.Boolean,title:\"Category tabs\",defaultValue:true},allLabel:{type:ControlType.String,title:\"All label\",defaultValue:\"All\",hidden:p=>!p.filter},category:{type:ControlType.String,title:\"Only category\",defaultValue:\"\",placeholder:\"All categories\",description:\"Type a category to show only that one, e.g. Specials.\"},limit:{type:ControlType.Number,title:\"Limit\",defaultValue:0,min:0,max:48,step:1,displayStepper:true,description:\"0 shows every burger.\"},featureFirst:{type:ControlType.Boolean,title:\"Wide first card\",defaultValue:true},columns:{type:ControlType.Number,title:\"Columns\",defaultValue:3,min:2,max:4,step:1,displayStepper:true},cta:{type:ControlType.String,title:\"Card link text\",defaultValue:\"See the stack\"},countLabel:{type:ControlType.String,title:\"Count label\",defaultValue:\"burgers\",placeholder:\"Hidden\"},pricePrefix:{type:ControlType.String,title:\"Price prefix\",defaultValue:\"$\"},priceSuffix:{type:ControlType.String,title:\"Price suffix\",defaultValue:\"\"},motion:{type:ControlType.Object,title:\"Motion\",controls:{spin:{type:ControlType.Number,title:\"Spin\",defaultValue:1,min:0,max:3,step:.1},explode:{type:ControlType.Boolean,title:\"Layers on hover\",defaultValue:true,enabledTitle:\"Pull apart\",disabledTitle:\"Stay\"},tilt:{type:ControlType.Boolean,title:\"Card tilt\",defaultValue:true}}},colors:{type:ControlType.Object,title:\"Colours\",controls:{bg:{type:ControlType.Color,title:\"Background\",defaultValue:\"#140C08\"},card:{type:ControlType.Color,title:\"Card\",defaultValue:\"#22140D\"},ink:{type:ControlType.Color,title:\"Text\",defaultValue:\"#FFF1DC\"},muted:{type:ControlType.Color,title:\"Muted\",defaultValue:\"rgba(255,241,220,0.62)\"},sticker:{type:ControlType.Color,title:\"Price sticker\",defaultValue:\"#F2B233\"},stickerInk:{type:ControlType.Color,title:\"Sticker text\",defaultValue:\"#140C08\"},line:{type:ControlType.Color,title:\"Lines\",defaultValue:\"rgba(255,241,220,0.12)\"}}},layout:{type:ControlType.Object,title:\"Layout\",controls:{radius:{type:ControlType.Number,title:\"Radius\",defaultValue:28,min:0,max:48,unit:\"px\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:20,min:0,max:64,unit:\"px\"},top:{type:ControlType.Number,title:\"Top\",defaultValue:24,min:0,max:240,unit:\"px\"},bottom:{type:ControlType.Number,title:\"Bottom\",defaultValue:140,min:0,max:320,unit:\"px\"}}},quality:{type:ControlType.Number,title:\"Quality\",defaultValue:1.5,min:.75,max:2,step:.25,description:\"Pixel density of the 3D burgers.\"},titleFont:{type:ControlType.Font,title:\"Name font\",controls:\"extended\",defaultFontType:\"sans-serif\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SmashhouseMenuGrid\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SmashhouseMenuGrid.map"],"mappings":"6XA4EG,SAAwB,EAAmB,EAAM,CAAC,GAAK,CAAC,SAAO,GAAK,WAAS,MAAM,WAAS,GAAG,QAAM,EAAE,eAAa,GAAK,UA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