{"version":3,"file":"YC_FAQ.BImKBDuf.mjs","names":["useState","useRef","p","useLayoutEffect","useEffect"],"sources":["https:/framerusercontent.com/modules/Rf3h9ByDUBxQ8eOxUxN6/pBP5AfFolowsxuZnsRY2/YC_FAQ.js"],"sourcesContent":["// ============================================================\n// Yellow Cookie · Good to know (FAQ) · reusable component\n// name: YC_FAQ  |  Width = Fill, Height = Hug\n// Placed at the bottom of any page, like the footer. The six Q&A pairs\n// are editable per instance in the right panel, so every page carries its\n// own questions and answers while the look stays identical. Prefilled with\n// the home-page set.\n//\n// Design is deliberately NOT the accordion: always open, no plus/minus, a\n// two-column grid on desktop and one column on mobile, each question in\n// bold over its answer. Answers stay visible, which is also what AI and\n// search crawlers read.\n//\n// It also injects FAQPage JSON-LD generated from the same Q&A, so the\n// structured data always matches the visible text. Note: Google retired\n// the FAQ rich result in May 2026, so this produces no Search feature by\n// design; it is kept because it is valid, matches-visible, and is parsed\n// by Bing and the AI retrieval crawlers.\n// ============================================================\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useRef,useEffect,useLayoutEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const C={ink:\"#2C2C2D\",yellow:\"#F0B429\",muted:\"rgba(44,44,45,0.72)\",hair:\"rgba(44,44,45,0.16)\",fc:\"'Barlow Condensed', sans-serif\"};const useIsoLayoutEffect=typeof document!==\"undefined\"?useLayoutEffect:useEffect;function useContainerWidth(ref){const[w,setW]=useState(390);useIsoLayoutEffect(()=>{const el=ref.current;if(!el)return;const ro=new ResizeObserver(entries=>{for(const e of entries)setW(e.contentRect.width);});ro.observe(el);setW(el.getBoundingClientRect().width);return()=>ro.disconnect();},[ref]);return w;}export default function YC_FAQ(props){const rootRef=useRef(null);const cw=useContainerWidth(rootRef);const isMobile=cw<760;const heading=props.heading||\"Good to know\";// Collect the pairs, keeping only those with both a question and answer.\nconst pairs=[{q:props.q1??\"\",a:props.a1??\"\"},{q:props.q2??\"\",a:props.a2??\"\"},{q:props.q3??\"\",a:props.a3??\"\"},{q:props.q4??\"\",a:props.a4??\"\"},{q:props.q5??\"\",a:props.a5??\"\"},{q:props.q6??\"\",a:props.a6??\"\"}].map(p=>({q:p.q.trim(),a:p.a.trim()})).filter(p=>p.q&&p.a);useEffect(()=>{[[\"yc-bc4\",\"400\"],[\"yc-bc5\",\"500\"],[\"yc-bc7\",\"700\"],[\"yc-bc8\",\"800\"]].forEach(([id,w])=>{if(document.getElementById(id))return;const el=document.createElement(\"link\");el.id=id;el.rel=\"stylesheet\";el.href=`https://cdn.jsdelivr.net/npm/@fontsource/barlow-condensed@5/${w}.css`;document.head.appendChild(el);});},[]);// FAQPage JSON-LD, generated from the same visible pairs so the schema\n// always matches the text. Re-created whenever the Q&A change. Guarded\n// by a stable id so a second instance replaces rather than duplicates.\nuseEffect(()=>{if(typeof document===\"undefined\")return;const id=\"yc-faq-jsonld\";const prev=document.getElementById(id);if(prev)prev.remove();if(pairs.length===0)return;const data={\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity:pairs.map(p=>({\"@type\":\"Question\",name:p.q,acceptedAnswer:{\"@type\":\"Answer\",text:p.a}}))};const el=document.createElement(\"script\");el.id=id;el.type=\"application/ld+json\";el.text=JSON.stringify(data);document.head.appendChild(el);return()=>{const node=document.getElementById(id);if(node)node.remove();};},[JSON.stringify(pairs)]);return /*#__PURE__*/_jsx(\"div\",{ref:rootRef,style:{width:\"100%\",background:\"transparent\",fontFamily:C.fc,overflowX:\"hidden\"},children:/*#__PURE__*/_jsx(\"section\",{style:{width:\"100%\",boxSizing:\"border-box\",padding:isMobile?\"3rem 1.25rem 3.5rem\":\"4.5rem 6vw 5rem\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth:1120,margin:\"0 auto\"},children:[/*#__PURE__*/_jsx(\"h2\",{style:{fontFamily:C.fc,fontWeight:800,fontSize:isMobile?\"30px\":\"42px\",lineHeight:1.05,letterSpacing:\"0.01em\",color:C.ink,margin:0,textAlign:\"center\"},children:heading}),/*#__PURE__*/_jsx(\"div\",{style:{width:48,height:4,background:C.yellow,borderRadius:3,margin:isMobile?\"1rem auto 2rem\":\"1.1rem auto 2.75rem\"}}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:isMobile?\"1fr\":\"1fr 1fr\",columnGap:\"3.5rem\",rowGap:isMobile?\"1.75rem\":\"2.25rem\"},children:pairs.map((p,i)=>/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:\"0.6rem\",alignItems:\"baseline\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{flexShrink:0,width:14,height:3,borderRadius:2,background:C.yellow,marginTop:isMobile?10:12}}),/*#__PURE__*/_jsx(\"h3\",{style:{fontFamily:C.fc,fontWeight:700,fontSize:isMobile?\"1.15rem\":\"1.3rem\",lineHeight:1.25,color:C.ink,margin:0},children:p.q})]}),/*#__PURE__*/_jsx(\"p\",{style:{fontFamily:C.fc,fontWeight:400,fontSize:isMobile?\"16px\":\"17px\",lineHeight:1.55,color:C.muted,margin:\"0.5rem 0 0\",paddingLeft:\"1.6rem\"},children:p.a})]},i))})]})})});}addPropertyControls(YC_FAQ,{heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"Good to know\"},q1:{type:ControlType.String,title:\"Q1\",defaultValue:\"Does Yellow Cookie deliver same-day in Amsterdam?\"},a1:{type:ControlType.String,title:\"A1\",displayTextArea:true,defaultValue:\"Yes. Yellow Cookie delivers same-day across Amsterdam City, in a 3-hour window between 09:00 and 21:00.\"},q2:{type:ControlType.String,title:\"Q2\",defaultValue:\"Where can I pick up an order?\"},a2:{type:ControlType.String,title:\"A2\",displayTextArea:true,defaultValue:\"Free pickup at Makassarplein 1 in Amsterdam, weekdays from 10:00.\"},q3:{type:ControlType.String,title:\"Q3\",defaultValue:\"Is delivery free?\"},a3:{type:ControlType.String,title:\"A3\",displayTextArea:true,defaultValue:\"Pickup is always free, and delivery is free on any Twelve Pack across Amsterdam.\"},q4:{type:ControlType.String,title:\"Q4\",defaultValue:\"What packs are there?\"},a4:{type:ControlType.String,title:\"A4\",displayTextArea:true,defaultValue:\"Yellow Cookie offers a Three Pack, Six Pack, or Twelve Pack, or a build-your-own box of seven flavors.\"},q5:{type:ControlType.String,title:\"Q5\",defaultValue:\"Are there vegan cookies?\"},a5:{type:ControlType.String,title:\"A5\",displayTextArea:true,defaultValue:\"Yes. Yellow Cookie bakes two vegan cookies, Vegan Coco and Vegan Hazelnut, plus five classic flavors.\"},q6:{type:ControlType.String,title:\"Q6\",defaultValue:\"Are the cookies freshly baked?\"},a6:{type:ControlType.String,title:\"A6\",displayTextArea:true,defaultValue:\"Every Yellow Cookie is baked by hand the same day in Amsterdam. Natural ingredients only.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"YC_FAQ\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./YC_FAQ.map"],"mappings":"sMAmB+X,SAAS,EAAkB,EAAI,CAAC,GAAK,CAAC,EAAE,GAAMA,EAAS,GAAG,EAAgP,OAA9O,MAAuB,CAAC,IAAM,EAAG,EAAI,QAAQ,GAAG,CAAC,EAAG,OAAO,IAAM,EAAG,IAAI,eAAe,GAAS,CAAC,IAAI,IAAM,KAAK,EAAQ,EAAK,EAAE,YAAY,KAAK,CAAE,CAAC,EAAwD,OAAtD,EAAG,QAAQ,CAAE,EAAE,EAAK,EAAG,sBAAsB,CAAC,CAAC,KAAK,MAAY,EAAG,WAAW,CAAE,EAAE,CAAC,CAAG,CAAC,EAAS,CAAE,CAAC,SAAwB,EAAO,EAAM,CAAC,IAAM,EAAQC,EAAO,IAAI,EAA4C,EAAjC,EAAkB,CAAyB,EAAE,IAAU,EAAQ,EAAM,SAAS,eACr0B,EAAM,CAAC,CAAC,EAAE,EAAM,IAAI,GAAG,EAAE,EAA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