{"version":3,"file":"SiteFooter.C34gyO2B.mjs","names":["useState","_Fragment","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","l","_e","p","ce","window","init_framer_D6uXRwWs","addPropertyControls","ControlType","SiteFooter","AOC_MARK","year","hasConsent","setHasConsent","css","theme","logoUrl","brandName","WHATSAPP","THEMES","init_SiteFooter","init_jsx_runtime","c","t"],"sources":["https:/framerusercontent.com/modules/8T8Z2hJl7r9eE7e3pjHr/ZUxZxzP2skrOZOmBjetN/SiteFooter.js"],"sourcesContent":["// AOC site-wide footer -- single source of truth for every page on theartofcrypto.co.\n//\n// Requested by Ridge (2026-08-25): one consistent footer replacing the ~13 different footer\n// implementations that had accumulated (Footer.tsx / Blueprint/Footer.tsx / Blueprint/Footer_1.tsx /\n// Blueprint/FooterAbrar.tsx / BootcampAccelerator/Footer.tsx / GiveawayFooter.tsx, plus inline footers\n// baked into QuizPage.tsx, ResultsPage.tsx, ThankYouPage.tsx, Recording/Page.tsx and the Legal/* pages).\n//\n// THEME PROP: the site mixes dark pages (/bootcamp, /wins, /bootcamp-accelerator, legal) with light\n// ones (/bc, /bc-thank-you, /diagnostic, /diagnostic-results, /diagnostic-thank-you, /recording). A\n// single hard-coded dark footer would drop a black slab onto the light pages, so `theme` is selectable\n// per instance. Only presentation varies -- links, legal line and structure are identical in both,\n// which is the point of consolidating them.\n//\n// LOGO -- history worth knowing before changing it:\n//   * The hosted lockup at framerusercontent.com/images/6tgxXoNxl1P8llnNFQNUsphYFbU.svg is NOT this\n//     mark. It is a four-quadrant pinwheel plus the \"The Art of Crypto\" wordmark baked in as white\n//     paths. Using it here would print the brand name twice (the footer renders the name as live text)\n//     and its white wordmark is invisible on the light theme.\n//   * The correct mark -- the \"ac\" infinity lockup Ridge supplied -- already existed in the project, but\n//     only as a white-on-BLACK JPEG embedded in the old legal-page embeds. That version needs\n//     mix-blend-mode: screen to knock out its black box, which works on dark backgrounds and fails on\n//     light ones (screen against #F9F9F9 erases the logo).\n//   * So that JPEG was converted: luminance -> alpha channel, filled with the brand blue, cropped to the\n//     mark's bounding box. Result is a transparent PNG that sits correctly on BOTH themes with no blend\n//     mode, no white box, and no duplicate wordmark.\n// If the blue ever needs adjusting, regenerate from that source rather than recolouring a JPEG in situ.\n//\n// \"Contact\" points at the AOC WhatsApp click-to-chat link rather than a mailto or /contact page -- that\n// is the channel AOC actually staffs. New tab, with rel=\"noopener noreferrer\" to close the\n// window.opener / tab-napping hole that target=\"_blank\" opens on its own.\n//\n// \"Manage tracking\" (2026-10-22) reopens the cookie banner, which lives in Site Settings > Custom Code\n// (window.aocConsent, see cookie-consent/ in the AOC workspace). Privacy Policy section 6 promises this\n// control by name. The link only renders once that script is present, so it never shows as a dead link.\n//\n// Company registration number renders as 202201031727. The previous live legal pages carried a literal\n// \"[NUMBER]\" placeholder here; that is fixed everywhere this footer is used.\n//\n// Links are deliberately NOT prop-driven. Per-page href overrides are exactly how six footers drifted\n// apart, and a legal footer should not vary by page.\n// SSR style fix (2026-11-02): CSS via dangerouslySetInnerHTML; as a text child the server render escaped the\n// quotes, which broke the @import of Inter (\"Refused to apply style\") until hydration on every page with this footer.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const WHATSAPP=\"https://wa.me/message/6EWS6RKIVJPIF1\";const AOC_MARK=\"https://framerusercontent.com/images/I5U3DeBzO043sldrOu2bTPR2q4.png\";const THEMES={dark:{bg:\"#0A0B0F\",border:\"rgba(255,255,255,0.06)\",name:\"#FFFFFF\",legal:\"#8A909C\",link:\"#E6E8EC\",linkHover:\"#FFFFFF\"},// Matches the light-footer convention already established on the diagnostic pages: a hair off pure\n// white for separation, neutral muted text rather than the page's own accent colour.\nlight:{bg:\"#F9F9F9\",border:\"rgba(11,12,14,0.08)\",name:\"#0B0C0E\",legal:\"rgba(11,12,14,0.55)\",link:\"rgba(11,12,14,0.72)\",linkHover:\"#0B0C0E\"}};const css=t=>{const c=THEMES[t];return`\n@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');\n.aoc-sf-${t} *, .aoc-sf-${t} *::before, .aoc-sf-${t} *::after { box-sizing: border-box; margin: 0; padding: 0; }\n.aoc-sf-${t} {\n  width: 100%; background-color: ${c.bg};\n  font-family: 'Inter', -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Helvetica Neue\", Arial, sans-serif;\n  -webkit-text-size-adjust: 100%;\n  border-top: 1px solid ${c.border};\n}\n.aoc-sf-${t} .sf-inner {\n  max-width: 1600px; margin: 0 auto; padding: 34px 56px;\n  display: flex; align-items: center; justify-content: space-between; gap: 32px;\n}\n.aoc-sf-${t} .sf-brand { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }\n.aoc-sf-${t} .sf-logo { height: 34px; width: auto; display: block; flex-shrink: 0; }\n.aoc-sf-${t} .sf-name { font-size: 25px; font-weight: 700; color: ${c.name}; letter-spacing: -0.02em; white-space: nowrap; }\n.aoc-sf-${t} .sf-legal { font-size: 16px; color: ${c.legal}; font-weight: 400; line-height: 1.6; text-align: center; flex: 1 1 auto; }\n.aoc-sf-${t} .sf-links { display: flex; align-items: center; gap: 34px; flex-shrink: 0; }\n.aoc-sf-${t} .sf-links a { font-size: 16px; color: ${c.link}; text-decoration: none; white-space: nowrap; transition: color 0.15s ease; }\n.aoc-sf-${t} .sf-links a:hover { color: ${c.linkHover}; }\n\n/* Tablet -- legal line drops beneath the brand/links row before it gets crushed between them. */\n@media (max-width: 1100px) {\n  .aoc-sf-${t} .sf-inner { flex-wrap: wrap; justify-content: center; gap: 20px; padding: 30px 40px; }\n  .aoc-sf-${t} .sf-brand { order: 1; }\n  .aoc-sf-${t} .sf-links { order: 2; }\n  .aoc-sf-${t} .sf-legal { order: 3; flex-basis: 100%; }\n}\n\n/* Mobile */\n@media (max-width: 640px) {\n  .aoc-sf-${t} .sf-inner { flex-direction: column; gap: 18px; padding: 28px 20px; text-align: center; }\n  .aoc-sf-${t} .sf-logo { height: 28px; }\n  .aoc-sf-${t} .sf-name { font-size: 20px; }\n  .aoc-sf-${t} .sf-links { gap: 22px; flex-wrap: wrap; justify-content: center; }\n  .aoc-sf-${t} .sf-links a { font-size: 14.5px; }\n  .aoc-sf-${t} .sf-legal { font-size: 13.5px; }\n}\n`;};/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function SiteFooter({theme=\"dark\",brandName=\"The Art of Crypto\",logoUrl=AOC_MARK,style}){const year=new Date().getFullYear();const[hasConsent,setHasConsent]=useState(false);useEffect(()=>{setHasConsent(typeof window.aocConsent?.open===\"function\");},[]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:css(theme)}}),/*#__PURE__*/_jsx(\"footer\",{className:`aoc-sf-${theme}`,style:style,children:/*#__PURE__*/_jsxs(\"div\",{className:\"sf-inner\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"sf-brand\",children:[/*#__PURE__*/_jsx(\"img\",{className:\"sf-logo\",src:logoUrl,alt:\"The Art of Crypto\",draggable:false}),/*#__PURE__*/_jsx(\"span\",{className:\"sf-name\",children:brandName})]}),/*#__PURE__*/_jsxs(\"p\",{className:\"sf-legal\",children:[\"\\xa9 \",year,\" The Art of Crypto. Operated by AOC SDN. BHD. (202201031727).\"]}),/*#__PURE__*/_jsxs(\"nav\",{className:\"sf-links\",children:[/*#__PURE__*/_jsx(\"a\",{href:WHATSAPP,target:\"_blank\",rel:\"noopener noreferrer\",children:\"Contact\"}),/*#__PURE__*/_jsx(\"a\",{href:\"/privacy-policy\",children:\"Privacy\"}),/*#__PURE__*/_jsx(\"a\",{href:\"/terms-of-service\",children:\"Terms\"}),/*#__PURE__*/_jsx(\"a\",{href:\"/refund-policy\",children:\"Refunds\"}),hasConsent&&/*#__PURE__*/_jsx(\"a\",{href:\"#\",onClick:e=>{e.preventDefault();window.aocConsent.open();},children:\"Manage tracking\"})]})]})})]});}addPropertyControls(SiteFooter,{theme:{type:ControlType.Enum,title:\"Theme\",options:[\"dark\",\"light\"],optionTitles:[\"Dark\",\"Light\"],defaultValue:\"dark\",description:\"Use Light on /bc, /bc-thank-you, /diagnostic, /diagnostic-results, /diagnostic-thank-you and /recording. Dark everywhere else.\"},brandName:{type:ControlType.String,title:\"Brand Name\",defaultValue:\"The Art of Crypto\"},logoUrl:{type:ControlType.String,title:\"Logo URL\",defaultValue:AOC_MARK,description:\"Icon only, transparent background, readable on both dark and light. Do NOT use the full lockup SVG -- it contains the wordmark, which the footer already renders as text.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SiteFooter\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SiteFooter.map"],"mappings":"A,mMAqFG,SAAwBa,EAAW,CAAC,QAAM,OAAO,YAAU,oBAAoB,UAAQC,EAAS,SAAO,CAAC,IAAMC,mBAAK,IAAI,KAAK,EAAA,CAAE,YAAY,EAAO,CAACC,EAAWC,GAAejB,EAAS,EAAK,EAAkF,OAAhFQ,MAAc,CAACS,EAAc,OAAOR,EAAO,YAAY,MAAO,UAAU,CAAE,EAAE,CAAC,CAAC,EAAsB,gBAAMR,EAAU,CAAC,SAAS,CAAc,gBAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAOiB,EAAIC,CAAK,CAAC,CAAC,CAAC,EAAe,gBAAK,SAAS,CAAC,UAAU,UAAUA,IAAc,QAAM,SAAsB,gBAAM,MAAM,CAAC,UAAU,WAAW,SAAS,CAAc,gBAAM,MAAM,CAAC,UAAU,WAAW,SAAS,CAAc,gBAAK,MAAM,CAAC,UAAU,UAAU,IAAIC,EAAQ,IAAI,oBAAoB,UAAU,EAAK,CAAC,EAAe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