{"version":3,"file":"YC_Footer.BVCsrvrG.mjs","names":["useState","useRef","useLayoutEffect","useEffect"],"sources":["https:/framerusercontent.com/modules/NFpcjozINHsPugK48VUl/r82e8v4dfotq4H4xooR8/YC_Footer.js"],"sourcesContent":["// ============================================================\n// Yellow Cookie · Footer  |  name: YC_Footer  |  no slug\n// A global widget. Place it once on every page (drag it onto the page,\n// below the page content). One source of truth: edit it here, it updates\n// everywhere it is placed. Dark band, cream text, matches the brand.\n// ============================================================\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useRef,useEffect,useLayoutEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// ═══════════════════════════════════════════════════════════════\n// FOOTER BRAND LINE · THE ONLY PLACE TO EDIT THIS.\n// Paste your brand line between the quotes when you have it written.\n// Leave it as \"\" to show nothing until then.\n// The line \"Natural ingredients only.\" below is locked; keep it as is.\n// ═══════════════════════════════════════════════════════════════\nconst FOOTER_TAGLINE=\"\"// <<< paste your brand line here\n;const LOCKED_BRAND_LINE=\"Natural and High Quality ingredients only.\";// ═══════════════════════════════════════════════════════════════\n// LEGAL PAGE SLUGS · set these to match your live pages.\n// privacy: create the Privacy Statement page, then set its slug here.\n// terms:   your Terms page. Currently live at /yc_terms; when you\n//          change the page path to /terms, this already points there.\n// cookies: optional Cookie Policy. Leave \"\" to hide that link.\n// ═══════════════════════════════════════════════════════════════\nconst LEGAL={privacy:\"/privacy\",terms:\"/terms\",cookies:\"\"};// ── Cookie Settings link · turn on once the consent banner is live ──\n// The consent banner will expose a function on window to reopen its\n// settings panel. Set SHOW_COOKIE_SETTINGS to true and put that\n// function's name in COOKIE_SETTINGS_FN, then the link appears and works.\nconst SHOW_COOKIE_SETTINGS=true;const COOKIE_SETTINGS_FN=\"openCookieSettings\";// ── Contact and social (no phone, per brand rule) ─────────────\nconst CONTACT={email:\"hello@yellowcookie.nl\",instagramHandle:\"@yellowcookie.ams\",instagramUrl:\"https://instagram.com/yellowcookie.ams\"};const PICKUP={line1:\"Makassarplein 1\",line2:\"1095 RP Amsterdam\"};const KVK=\"KvK 99089238\";// ── Central slug registry · same paths as the rest of the site ──\nconst SLUGS={buildBox:\"/build-your-own-box\",giftBox:\"/gift-box\",order:\"/delivery-pickup\",ourStory:\"/our-story\",findUs:\"/find-us\",corporate:\"/corporate-gifts\",events:\"/events-party\"};// ── Link columns · edit labels, order, and slugs here only ─────\nconst COLUMNS=[{heading:\"Cookies\",items:[{label:\"Build Your Own Box\",slug:SLUGS.buildBox},{label:\"Gift Box\",slug:SLUGS.giftBox},{label:\"Delivery or Pickup\",slug:SLUGS.order},{label:\"Our Story\",slug:SLUGS.ourStory},{label:\"Find Us\",slug:SLUGS.findUs}]},{heading:\"Order\",items:[{label:\"Corporate Gifts\",slug:SLUGS.corporate},{label:\"Events and Party\",slug:SLUGS.events}]}];// ── Colours · brand dark band, cream text ─────────────────────\nconst C={bg:\"#2A2824\",text:\"#FFF8EC\",muted:\"rgba(255,248,236,0.72)\",hair:\"rgba(255,248,236,0.18)\",yellow:\"#F0B429\",fc:\"'Barlow Condensed', sans-serif\"};const useIsoLayoutEffect=typeof document!==\"undefined\"?useLayoutEffect:useEffect;function useContainerWidth(ref){const[w,setW]=useState(1e3);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;}function LogoPlaceholder(){return /*#__PURE__*/_jsx(\"span\",{style:{fontFamily:C.fc,fontSize:\"1.5rem\",fontWeight:800,color:C.text,letterSpacing:\"0.02em\",userSelect:\"none\"},children:\"YELLOW COOKIE\"});}// ════════════════════════════════════════════════════════════\n// MAIN\n// ════════════════════════════════════════════════════════════\nexport default function YC_Footer(props){const rootRef=useRef(null);const cw=useContainerWidth(rootRef);const isMobile=cw<700;const isPhone=cw<520;// Fonts (idempotent, so it is safe alongside the page's own loader)\nuseEffect(()=>{[[\"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);});},[]);const linkStyle={display:\"block\",fontFamily:C.fc,fontWeight:500,fontSize:\"1rem\",color:C.muted,textDecoration:\"none\",padding:\"0.4rem 0\"};const headingStyle={fontFamily:C.fc,fontWeight:800,fontSize:\"0.82rem\",letterSpacing:\"0.14em\",textTransform:\"uppercase\",color:C.text,margin:\"0 0 0.5rem\"};const bottomLinkStyle={fontFamily:C.fc,fontWeight:500,fontSize:\"0.92rem\",color:C.muted,textDecoration:\"none\"};function openCookieSettings(){if(typeof window===\"undefined\")return;const fn=window[COOKIE_SETTINGS_FN];if(typeof fn===\"function\")fn();}return /*#__PURE__*/_jsx(\"div\",{ref:rootRef,style:{width:\"100%\",background:C.bg,fontFamily:C.fc,overflowX:\"hidden\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth:1120,margin:\"0 auto\",boxSizing:\"border-box\",padding:isPhone?\"2.5rem 1.25rem 1.5rem\":\"3.5rem 6vw 2rem\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"grid\",gridTemplateColumns:isMobile?\"1fr\":\"1.4fr 1fr 1fr\",gap:isMobile?\"2rem\":\"2.5rem\",alignItems:\"start\"},children:[/*#__PURE__*/_jsxs(\"div\",{children:[props.logoLight?/*#__PURE__*/_jsx(\"img\",{src:props.logoLight,alt:\"Yellow Cookie\",style:{height:56,width:\"auto\",objectFit:\"contain\",display:\"block\"}}):/*#__PURE__*/_jsx(LogoPlaceholder,{}),FOOTER_TAGLINE.trim()&&/*#__PURE__*/_jsx(\"p\",{style:{fontFamily:C.fc,fontWeight:400,fontSize:\"1.05rem\",lineHeight:1.55,color:C.muted,maxWidth:360,margin:\"1rem 0 0\"},children:FOOTER_TAGLINE.trim()}),/*#__PURE__*/_jsx(\"p\",{style:{fontFamily:C.fc,fontWeight:700,fontSize:\"1rem\",color:C.text,margin:\"0.85rem 0 0\"},children:LOCKED_BRAND_LINE})]}),COLUMNS.map(col=>/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"div\",{style:headingStyle,children:col.heading}),col.items.map(it=>/*#__PURE__*/_jsx(\"a\",{href:it.slug,style:linkStyle,children:it.label},it.label))]},col.heading))]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"grid\",gridTemplateColumns:isMobile?\"1fr\":\"1fr 1fr\",gap:isMobile?\"1.5rem\":\"2.5rem\",marginTop:isPhone?\"2rem\":\"2.5rem\",paddingTop:isPhone?\"2rem\":\"2.5rem\",borderTop:\"1px solid \"+C.hair},children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"div\",{style:headingStyle,children:\"Say hello\"}),/*#__PURE__*/_jsx(\"a\",{href:\"mailto:\"+CONTACT.email,style:{...linkStyle,color:C.yellow},children:CONTACT.email}),/*#__PURE__*/_jsx(\"a\",{href:CONTACT.instagramUrl,target:\"_blank\",rel:\"noopener noreferrer\",style:linkStyle,children:CONTACT.instagramHandle})]}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"div\",{style:headingStyle,children:\"Pickup\"}),/*#__PURE__*/_jsxs(\"div\",{style:{fontFamily:C.fc,fontWeight:500,fontSize:\"1rem\",color:C.muted,lineHeight:1.6},children:[PICKUP.line1,/*#__PURE__*/_jsx(\"br\",{}),PICKUP.line2]})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:isMobile?\"column\":\"row\",justifyContent:\"space-between\",alignItems:isMobile?\"flex-start\":\"center\",gap:isMobile?\"0.75rem\":\"1rem\",marginTop:isPhone?\"2rem\":\"2.5rem\",paddingTop:\"1.25rem\",borderTop:\"1px solid \"+C.hair},children:[/*#__PURE__*/_jsxs(\"div\",{style:{fontFamily:C.fc,fontWeight:400,fontSize:\"0.92rem\",color:C.muted},children:[KVK,\"  \\xb7  \",\"\\xa9 \",new Date().getFullYear(),\" Yellow Cookie\"]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexWrap:\"wrap\",gap:\"0.35rem 1.1rem\",alignItems:\"center\"},children:[LEGAL.privacy&&/*#__PURE__*/_jsx(\"a\",{href:LEGAL.privacy,style:bottomLinkStyle,children:\"Privacy Statement\"}),LEGAL.terms&&/*#__PURE__*/_jsx(\"a\",{href:LEGAL.terms,style:bottomLinkStyle,children:\"Terms\"}),LEGAL.cookies&&/*#__PURE__*/_jsx(\"a\",{href:LEGAL.cookies,style:bottomLinkStyle,children:\"Cookie Policy\"}),SHOW_COOKIE_SETTINGS&&/*#__PURE__*/_jsx(\"button\",{onClick:openCookieSettings,style:{...bottomLinkStyle,background:\"transparent\",border:\"none\",padding:0,cursor:\"pointer\"},children:\"Cookie Settings\"})]})]})]})});}addPropertyControls(YC_Footer,{logoLight:{type:ControlType.Image,title:\"Logo (light)\",description:\"A cream or white logo for the dark footer. Leave empty to show the YELLOW COOKIE wordmark.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"YC_Footer\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./YC_Footer.map"],"mappings":"+MA4ByO,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,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