{"version":3,"file":"CTABox.CXONYfGo.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/dxDr8eRP71DqCrJmkeOx/gZqRPUJDm615AqSgKoyo/AssessmentEmbed.js","https:/framerusercontent.com/modules/uuNdl8lZn3NKATNMb9ps/kstFSJ3EdWD6z5F3M5xG/CTABox.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function AssessmentEmbed({url}){if(!url)return null;return /*#__PURE__*/_jsx(\"iframe\",{src:url,width:\"100%\",height:\"700px\",frameBorder:\"0\",style:{border:\"none\",borderRadius:\"8px\"},allowFullScreen:true});}AssessmentEmbed.defaultProps={url:\"\"};addPropertyControls(AssessmentEmbed,{url:{type:ControlType.String,title:\"Assessment URL\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AssessmentEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AssessmentEmbed.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// ============================================================\n// CTABox\n// A standardized call-to-action card used in the blog Slot\n// system (Slot A/B/C). Binds to CMS fields per post:\n//   heading     -> Slot X CTA Heading   (CMS: Plain Text)\n//   link        -> Slot X CTA Link      (CMS: Link)\n//   style       -> Slot X CTA Style     (CMS: Option, via Convert)\n// buttonLabel is NOT bound to CMS - fixed per slot instance in\n// the template, same for all posts using that slot.\n//\n// Returns null if heading is empty - safety net alongside the\n// Visible condition set in Framer.\n//\n// Variants:\n//   free        - Navy/gold. Lead magnets, no-cost asks.\n//   tripwire    - Teal. Low-cost $7 entry point, \"easy yes.\"\n//   premium     - Royal green/gold. Full paid guides ($49-$97).\n//   limitedtime - Crimson. Genuine deadline/scarcity offers.\n//   didyouknow  - Cream. Curiosity/engagement hook, not a sales push.\n// ============================================================\n// Loads Oswald (condensed/bold - varsity letter feel) once per\n// page. Skipped for \"didyouknow\" which uses a serif instead.\nfunction useOswaldFont(){useEffect(()=>{const ID=\"ctabox-oswald-font\";if(document.getElementById(ID))return;const link=document.createElement(\"link\");link.id=ID;link.rel=\"stylesheet\";link.href=\"https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Lora:wght@600&display=swap\";document.head.appendChild(link);},[]);}// ----- Style map -----\n// Each key is one variant. To add a new variant: add a key here\n// and add it to the Enum control options below. Nothing else changes.\nconst STYLES={// -----------------------------------------------------------\n// FREE\n// Navy gradient + gold. \"Earned achievement\" register.\n// Use for: lead magnets, free downloads, no-cost asks.\n// -----------------------------------------------------------\nfree:{background:\"linear-gradient(155deg, #1B2A4A 0%, #0E1626 100%)\",cardBorder:\"1px solid rgba(201, 162, 39, 0.35)\",cardShadow:\"0 8px 24px rgba(0,0,0,0.45)\",accentBar:\"#C9A227\",eyebrow:\"Free Resource\",eyebrowColor:\"#C9A227\",headingColor:\"#F5F1E8\",buttonBg:\"#C9A227\",buttonBgHover:\"#E0BC4A\",buttonText:\"#10182B\",showArrow:true,useDisplayFont:true,displayFont:\"'Oswald', sans-serif\"},// -----------------------------------------------------------\n// TRIPWIRE\n// Deep teal gradient + cyan. \"Easy yes\" register.\n// Use for: $7 entry-point offers, low-commitment asks.\n// -----------------------------------------------------------\ntripwire:{background:\"linear-gradient(155deg, #0D4A4A 0%, #071E1E 100%)\",cardBorder:\"1px solid rgba(0, 180, 180, 0.35)\",cardShadow:\"0 8px 24px rgba(0,0,0,0.45)\",accentBar:\"#00B4B4\",eyebrow:\"Start Here\",eyebrowColor:\"#00B4B4\",headingColor:\"#E8F8F8\",buttonBg:\"#00B4B4\",buttonBgHover:\"#00D4D4\",buttonText:\"#071E1E\",showArrow:true,useDisplayFont:true,displayFont:\"'Oswald', sans-serif\"},// -----------------------------------------------------------\n// PREMIUM\n// Deep royal green gradient + gold. Prestige register.\n// Use for: full paid playbooks ($49-$97), bundle pushes.\n// Gold on green = classic prestige/authority combo.\n// -----------------------------------------------------------\npremium:{background:\"linear-gradient(155deg, #0A3322 0%, #051A10 100%)\",cardBorder:\"1px solid rgba(201, 162, 39, 0.35)\",cardShadow:\"0 8px 28px rgba(0,0,0,0.5)\",accentBar:\"#C9A227\",eyebrow:\"Full Guide\",eyebrowColor:\"#C9A227\",headingColor:\"#F0F7F0\",buttonBg:\"#C9A227\",buttonBgHover:\"#E0BC4A\",buttonText:\"#051A10\",showArrow:true,useDisplayFont:true,displayFont:\"'Oswald', sans-serif\"},// -----------------------------------------------------------\n// BUNDLE\n// Same royal green/gold as Premium — identical prestige\n// register, but eyebrow distinguishes it as the full stack\n// rather than a single guide.\n// Use for: bundle-specific CTAs (multi-product pushes).\n// -----------------------------------------------------------\nbundle:{background:\"linear-gradient(155deg, #0A3322 0%, #051A10 100%)\",cardBorder:\"1px solid rgba(201, 162, 39, 0.35)\",cardShadow:\"0 8px 28px rgba(0,0,0,0.5)\",accentBar:\"#C9A227\",//eyebrow: \"Full System\",\neyebrowColor:\"#C9A227\",headingColor:\"#F0F7F0\",buttonBg:\"#C9A227\",buttonBgHover:\"#E0BC4A\",buttonText:\"#051A10\",showArrow:true,useDisplayFont:true,displayFont:\"'Oswald', sans-serif\",headingAlign:\"center\",headingSize:\"38px\",buttonAlign:\"center\",buttonSize:\"20px\"},// -----------------------------------------------------------\n// LIMITED TIME\n// Dark crimson gradient + red. Urgency register.\n// Use for: genuine deadlines, expiring offers only.\n// Don't use for general \"buy now\" pressure - reserve it\n// strictly for time-bound offers so it stays credible.\n// -----------------------------------------------------------\nlimitedtime:{background:\"linear-gradient(155deg, #3A0A0A 0%, #1A0505 100%)\",cardBorder:\"1px solid rgba(255, 68, 68, 0.35)\",cardShadow:\"0 8px 24px rgba(0,0,0,0.45)\",accentBar:\"#FF4444\",eyebrow:\"Limited Time\",eyebrowColor:\"#FF4444\",headingColor:\"#FFF0F0\",buttonBg:\"#FF4444\",buttonBgHover:\"#FF6666\",buttonText:\"#FFFFFF\",showArrow:true,useDisplayFont:true,displayFont:\"'Oswald', sans-serif\"},// -----------------------------------------------------------\n// DID YOU KNOW\n// Warm cream/parchment. Editorial/curiosity register.\n// Use for: engagement hooks, interesting stats, soft nudges.\n// Deliberately breaks the dark-card pattern so it reads as\n// content, not a sales push. No eyebrow - the heading text\n// itself starts with \"Did you know...\" No Oswald - uses Lora\n// (serif) for an editorial/textbook callout feel.\n// -----------------------------------------------------------\ndidyouknow:{background:\"#F8F4E8\",cardBorder:\"2px solid #E8D5A3\",cardShadow:\"0 4px 16px rgba(0,0,0,0.2)\",accentBar:null,eyebrow:null,eyebrowColor:null,headingColor:\"#2C1810\",buttonBg:\"#2C1810\",buttonBgHover:\"#4A2C1A\",buttonText:\"#F8F4E8\",showArrow:true,useDisplayFont:true,displayFont:\"'Lora', serif\"}};export default function CTABox({heading,link,buttonLabel,style}){useOswaldFont();// Single hover state covers the whole card - button and arrow\n// react together as one unit, not independently.\nconst[hovered,setHovered]=useState(false);// Safety net: no heading = nothing renders.\n// Works alongside the Visible condition in Framer - if the\n// condition is somehow bypassed, this is the backstop.\nif(!heading)return null;// Falls back to \"free\" if an unrecognized value comes through\n// (e.g. CMS option renamed or typo'd) instead of crashing.\nconst palette=STYLES[style]||STYLES.free;return /*#__PURE__*/_jsxs(\"a\",{href:link,target:\"_blank\",rel:\"noopener noreferrer\",onMouseEnter:()=>setHovered(true),onMouseLeave:()=>setHovered(false),onClick:()=>{if(typeof window!==\"undefined\"&&window.gtag){window.gtag(\"event\",\"cta_click\",{destination_url:link,page_path:window.location.pathname,transport_type:\"beacon\"});}},style:{display:\"block\",position:\"relative\",textDecoration:\"none\",background:palette.background,border:palette.cardBorder,borderRadius:\"10px\",// Extra left padding clears the accent bar on\n// variants that have one. Consistent on all\n// variants so layout doesn't shift between them.\npadding:\"24px 24px 24px 28px\",width:\"100%\",boxSizing:\"border-box\",boxShadow:palette.cardShadow,// Subtle lift on hover - whole card rises, not\n// just the button, so the interaction feels unified.\ntransform:hovered?\"translateY(-2px)\":\"translateY(0)\",transition:\"transform 0.18s ease, box-shadow 0.18s ease\",// Keeps accent bar corners clipped to card radius.\noverflow:\"hidden\"},children:[palette.accentBar&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,bottom:0,width:\"5px\",background:palette.accentBar}}),palette.eyebrow&&/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:palette.displayFont,color:palette.eyebrowColor,fontSize:\"12px\",fontWeight:700,letterSpacing:\"0.12em\",textTransform:\"uppercase\",marginBottom:\"10px\"},children:palette.eyebrow}),/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:palette.displayFont,color:palette.headingColor,fontSize:palette.headingSize||\"22px\",fontWeight:700,marginBottom:\"16px\",lineHeight:1.3,textAlign:palette.headingAlign||\"left\"},children:heading}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",justifyContent:palette.buttonAlign===\"center\"?\"center\":\"flex-start\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"inline-flex\",alignItems:\"center\",background:hovered?palette.buttonBgHover:palette.buttonBg,color:palette.buttonText,fontSize:palette.buttonSize||\"15px\",fontWeight:600,padding:\"10px 20px\",borderRadius:\"6px\",transition:\"background 0.15s ease\"},children:[buttonLabel,palette.showArrow&&/*#__PURE__*/_jsx(\"span\",{style:{marginLeft:hovered?\"10px\":\"6px\",transition:\"margin-left 0.18s ease\"},children:\"→\"})]})})]});}// ----- Defaults -----\nCTABox.defaultProps={heading:\"\",link:\"\",buttonLabel:\"Learn More\",style:\"free\"};// ----- Property controls -----\naddPropertyControls(CTABox,{heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"\"},link:{type:ControlType.Link,title:\"Link\"},buttonLabel:{type:ControlType.String,title:\"Button Label\",defaultValue:\"Learn More\"},style:{type:ControlType.Enum,title:\"Style\",options:[\"free\",\"tripwire\",\"premium\",\"bundle\",\"limitedtime\",\"didyouknow\"],optionTitles:[\"Free\",\"Tripwire\",\"Premium\",\"Bundle\",\"Limited Time\",\"Did You Know\"],defaultValue:\"free\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CTABox\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CTABox.map"],"mappings":"sMAA+F,SAAwB,EAAgB,CAAC,OAAK,CAAqB,OAAhB,EAAoC,EAAK,SAAS,CAAC,IAAI,EAAI,MAAM,OAAO,OAAO,QAAQ,YAAY,IAAI,MAAM,CAAC,OAAO,OAAO,aAAa,KAAK,EAAE,gBAAgB,EAAI,CAAC,EAA1J,IAA4J,iBAA/Q,IAAoD,EAA4N,EAAgB,aAAa,CAAC,IAAI,EAAE,EAAE,EAAoB,EAAgB,CAAC,IAAI,CAAC,KAAK,EAAY,OAAO,MAAM,iBAAiB,aAAa,EAAE,CAAC,CAAC,KCsB1c,SAAS,GAAe,CAAC,MAAc,CAAC,IAAM,EAAG,qBAAqB,GAAG,SAAS,eAAe,CAAE,EAAE,OAAO,IAAM,EAAK,SAAS,cAAc,MAAM,EAAE,EAAK,GAAG,EAAG,EAAK,IAAI,aAAa,EAAK,KAAK,iGAAiG,SAAS,KAAK,YAAY,CAAI,CAAE,EAAE,CAAC,CAAC,CAAE,CA2C1B,SAAwB,EAAO,CAAC,UAAQ,OAAK,cAAY,SAAO,CAAC,EAAc,EAE7X,GAAK,CAAC,EAAQ,GAAYA,EAAS,EAAK,EAGxC,GAAG,CAAC,EAAQ,OAAO,KAEnB,IAAM,EAAQ,EAAO,IAAQ,EAAO,KAAK,OAAoB,EAAM,IAAI,CAAC,KAAK,EAAK,OAAO,SAAS,IAAI,sBAAsB,iBAAiB,EAAW,EAAI,EAAE,iBAAiB,EAAW,EAAK,EAAE,YAAY,CAAW,IAAS,QAAa,EAAO,MAAM,EAAO,KAAK,QAAQ,YAAY,CAAC,gBAA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