{"version":3,"file":"FteCtaModule.xPQaDgOS.mjs","names":["useState","_Fragment","__esmMin","init_ssg_sandbox_shims","init_npm_react_18_3_1","window","init_jsx_runtime","c","p","_e","addPropertyControls","init_framer_BpuvUAiZ","ControlType","openBookCall","FteCtaModule","email","setEmail","done","setDone","busy","setBusy","err","setErr","submit","loopsFormAction","d","bookButton","useDirectLink","calLink","buttonLabel","emailForm","confirmation","l","cls","submitLabel","fine","paddingTop","paddingX","paddingBottom","CSS","layout","eyebrow","headline","sub","mode","SURFACE","FG","FG_MUTED","FG_DIM","BORDER","ACCENT","init_FteCtaModule"],"sources":["https:/framerusercontent.com/modules/ypp8AKuyuZbfuYC4SBB2/3F0qwACbQzlbSBwOUPwG/FteCtaModule.js"],"sourcesContent":["/**\n * FteCtaModule — one CTA block with two panel toggles:\n *   • Layout: Card (bordered surface, left-aligned) | Centered (big\n *     centered headline + button, no card — matches the closing CTA look)\n *   • Module: Book a call (fires shared \"book-call:open\" event, or a\n *     direct calendar link) | Collect email (inline Loops capture)\n *\n * Self-contained spacing + max width so it drops straight into a page\n * stack as a top-level block — no wrapper frame needed.\n *\n * @framerIntrinsicWidth 574\n * @framerIntrinsicHeight 260\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";const SURFACE=\"#FAFAFA\";const FG=\"#0A0A0A\";const FG_MUTED=\"rgba(10,10,10,0.6)\";const FG_DIM=\"rgba(10,10,10,0.4)\";const BORDER=\"rgba(10,10,10,0.08)\";const ACCENT=\"#0A0A0A\";const CSS=`\n@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');\n.ftecta-outer { width: 100%; box-sizing: border-box; font-family: \"Inter\", -apple-system, sans-serif; }\n.ftecta { width: 100%; margin: 0 auto; letter-spacing: -0.02em; }\n\n/* shared button + form bits */\n.ftecta-btn { display: inline-flex; align-items: center; gap: 8px; background: ${ACCENT}; border: none; color: #fff; font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: -0.02em; padding: 11px 20px; border-radius: 100px; cursor: pointer; text-decoration: none; transition: opacity 0.15s; }\n.ftecta-btn:hover { opacity: 0.85; }\n.ftecta-input { flex: 1 1 220px; min-width: 0; background: #fff; border: 1px solid ${BORDER}; border-radius: 100px; color: ${FG}; font-family: inherit; font-size: 14px; letter-spacing: -0.02em; padding: 12px 18px; outline: none; transition: border-color 0.18s; }\n.ftecta-input::placeholder { color: ${FG_DIM}; }\n.ftecta-input:focus { border-color: ${FG}; }\n.ftecta-submit { flex-shrink: 0; background: ${ACCENT}; border: none; color: #fff; font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: -0.02em; padding: 12px 22px; border-radius: 100px; cursor: pointer; transition: opacity 0.15s; white-space: nowrap; }\n.ftecta-submit:hover { opacity: 0.85; }\n.ftecta-submit:disabled { opacity: 0.5; cursor: default; }\n.ftecta-done { font-size: 14px; font-weight: 500; color: ${FG}; padding: 4px 0; letter-spacing: -0.02em; }\n.ftecta-err { font-size: 12px; color: #c0392b; margin-top: 2px; letter-spacing: -0.02em; }\n.ftecta-fine { font-size: 12px; color: ${FG_DIM}; margin-top: 2px; letter-spacing: -0.02em; }\n\n/* CARD layout */\n.ftecta-card { background: ${SURFACE}; border: 1px solid ${BORDER}; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }\n.ftecta-eyebrow { font-size: 11px; letter-spacing: 0.12em; color: ${FG_DIM}; text-transform: uppercase; font-weight: 500; }\n.ftecta-headline { font-size: clamp(18px, 2vw, 22px); font-weight: 600; color: ${FG}; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }\n.ftecta-sub { font-size: 13px; color: ${FG_MUTED}; line-height: 1.55; letter-spacing: -0.02em; }\n.ftecta-card .ftecta-btn { align-self: flex-start; margin-top: 4px; }\n.ftecta-card .ftecta-form { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }\n\n/* CENTERED layout */\n.ftecta-centered { text-align: center; padding: 40px 0; }\n.ftecta-c-eyebrow { font-size: 11px; letter-spacing: 0.12em; color: ${FG_DIM}; text-transform: uppercase; margin-bottom: 14px; font-weight: 500; }\n.ftecta-c-headline { font-size: clamp(28px, 4vw, 40px); font-weight: 600; color: ${FG}; line-height: 1.1; letter-spacing: -0.02em; margin: 0 auto 22px; max-width: 440px; text-wrap: balance; }\n.ftecta-c-sub { font-size: 14px; color: ${FG_MUTED}; line-height: 1.55; margin: -8px auto 24px; max-width: 420px; }\n.ftecta-c-actions { display: flex; justify-content: center; }\n.ftecta-c-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 440px; margin: 0 auto; }\n.ftecta-centered .ftecta-done, .ftecta-centered .ftecta-fine, .ftecta-centered .ftecta-err { text-align: center; }\n.ftecta-centered .ftecta-c-actions .ftecta-btn { padding: 12px 24px; font-size: 13px; }\n`;function openBookCall(){if(typeof window!==\"undefined\")window.dispatchEvent(new CustomEvent(\"book-call:open\"));}export default function FteCtaModule({layout=\"card\",mode=\"bookCall\",eyebrow=\"Hiring for a staff-level designer?\",headline=\"Let's talk about what this approach does for your team.\",sub=\"If you want someone who treats design as a business instrument — measurable, systematic, and shipped — grab 15 minutes on my calendar.\",maxWidth=574,paddingX=16,paddingTop=8,paddingBottom=8,buttonLabel=\"Book a call\",useDirectLink=false,calLink=\"https://cal.com/ejordanill/15min\",placeholder=\"your@email.com\",submitLabel=\"Notify me\",confirmation=\"You're in. Talk soon.\",fine=\"No spam. Unsubscribe anytime.\",loopsFormAction=\"https://app.loops.so/api/newsletter-form/cllb2kvy300g5mf0osfs94tbp\"}){const[email,setEmail]=useState(\"\");const[done,setDone]=useState(false);const[busy,setBusy]=useState(false);const[err,setErr]=useState(\"\");const submit=async()=>{if(!email.trim())return;setErr(\"\");if(!loopsFormAction.trim()){setDone(true);setEmail(\"\");return;}setBusy(true);try{const res=await fetch(loopsFormAction.trim(),{method:\"POST\",headers:{\"Content-Type\":\"application/x-www-form-urlencoded\"},body:new URLSearchParams({email:email.trim()}).toString()});const d=await res.json();if(d.success){setDone(true);setEmail(\"\");}else setErr(d.message??\"Something went wrong — please try again.\");}catch{setErr(\"Network error — please try again.\");}finally{setBusy(false);}};const bookButton=useDirectLink?/*#__PURE__*/_jsxs(\"a\",{className:\"ftecta-btn\",href:calLink,target:\"_blank\",rel:\"noopener noreferrer\",children:[/*#__PURE__*/_jsx(\"span\",{children:buttonLabel}),/*#__PURE__*/_jsx(\"span\",{children:\"→\"})]}):/*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"ftecta-btn\",onClick:openBookCall,children:[/*#__PURE__*/_jsx(\"span\",{children:buttonLabel}),/*#__PURE__*/_jsx(\"span\",{children:\"→\"})]});const emailForm=cls=>done?/*#__PURE__*/_jsx(\"div\",{className:\"ftecta-done\",children:confirmation}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{className:cls,children:[/*#__PURE__*/_jsx(\"input\",{className:\"ftecta-input\",type:\"email\",placeholder:placeholder,value:email,onChange:e=>{setEmail(e.target.value);setErr(\"\");},onKeyDown:e=>e.key===\"Enter\"&&!busy&&submit(),disabled:busy}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ftecta-submit\",onClick:submit,disabled:busy,children:busy?\"...\":submitLabel})]}),err&&/*#__PURE__*/_jsx(\"div\",{className:\"ftecta-err\",children:err}),fine&&/*#__PURE__*/_jsx(\"div\",{className:\"ftecta-fine\",children:fine})]});return /*#__PURE__*/_jsxs(\"div\",{className:\"ftecta-outer\",style:{padding:`${paddingTop}px ${paddingX}px ${paddingBottom}px`},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsx(\"div\",{className:\"ftecta\",style:{maxWidth},children:layout===\"centered\"?/*#__PURE__*/_jsxs(\"div\",{className:\"ftecta-centered\",children:[eyebrow&&/*#__PURE__*/_jsx(\"div\",{className:\"ftecta-c-eyebrow\",children:eyebrow}),headline&&/*#__PURE__*/_jsx(\"div\",{className:\"ftecta-c-headline\",children:headline}),sub&&/*#__PURE__*/_jsx(\"div\",{className:\"ftecta-c-sub\",children:sub}),mode===\"bookCall\"?/*#__PURE__*/_jsx(\"div\",{className:\"ftecta-c-actions\",children:bookButton}):emailForm(\"ftecta-c-form\")]}):/*#__PURE__*/_jsxs(\"div\",{className:\"ftecta-card\",children:[eyebrow&&/*#__PURE__*/_jsx(\"div\",{className:\"ftecta-eyebrow\",children:eyebrow}),headline&&/*#__PURE__*/_jsx(\"div\",{className:\"ftecta-headline\",children:headline}),sub&&/*#__PURE__*/_jsx(\"div\",{className:\"ftecta-sub\",children:sub}),mode===\"bookCall\"?bookButton:emailForm(\"ftecta-form\")]})})]});}addPropertyControls(FteCtaModule,{layout:{type:ControlType.Enum,title:\"Layout\",options:[\"card\",\"centered\"],optionTitles:[\"Card\",\"Centered\"],defaultValue:\"card\",displaySegmentedControl:true},mode:{type:ControlType.Enum,title:\"Module\",options:[\"bookCall\",\"email\"],optionTitles:[\"Book a call\",\"Collect email\"],defaultValue:\"bookCall\",displaySegmentedControl:true},eyebrow:{type:ControlType.String,title:\"Eyebrow\",defaultValue:\"Hiring for a staff-level designer?\"},headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"Let's talk about what this approach does for your team.\",displayTextArea:true},sub:{type:ControlType.String,title:\"Subtext\",defaultValue:\"If you want someone who treats design as a business instrument — measurable, systematic, and shipped — grab 15 minutes on my calendar.\",displayTextArea:true,placeholder:\"Leave blank to hide\"},maxWidth:{type:ControlType.Number,title:\"Max Width\",defaultValue:574,min:320,max:1e3,step:1,unit:\"px\"},paddingX:{type:ControlType.Number,title:\"Side Padding\",defaultValue:16,min:0,max:80,step:1,unit:\"px\"},paddingTop:{type:ControlType.Number,title:\"Space Above\",defaultValue:8,min:0,max:160,step:1,unit:\"px\"},paddingBottom:{type:ControlType.Number,title:\"Space Below\",defaultValue:8,min:0,max:160,step:1,unit:\"px\"},buttonLabel:{type:ControlType.String,title:\"Button Label\",defaultValue:\"Book a call\",hidden:p=>p.mode!==\"bookCall\"},useDirectLink:{type:ControlType.Boolean,title:\"Open Style\",defaultValue:false,enabledTitle:\"Cal link\",disabledTitle:\"Modal\",hidden:p=>p.mode!==\"bookCall\"},calLink:{type:ControlType.Link,title:\"Calendar Link\",defaultValue:\"https://cal.com/ejordanill/15min\",hidden:p=>p.mode!==\"bookCall\"||!p.useDirectLink},placeholder:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"your@email.com\",hidden:p=>p.mode!==\"email\"},submitLabel:{type:ControlType.String,title:\"Submit Label\",defaultValue:\"Notify me\",hidden:p=>p.mode!==\"email\"},confirmation:{type:ControlType.String,title:\"Confirmation\",defaultValue:\"You're in. Talk soon.\",hidden:p=>p.mode!==\"email\"},fine:{type:ControlType.String,title:\"Fine Print\",defaultValue:\"No spam. Unsubscribe anytime.\",hidden:p=>p.mode!==\"email\"},loopsFormAction:{type:ControlType.String,title:\"Loops Form URL\",defaultValue:\"https://app.loops.so/api/newsletter-form/cllb2kvy300g5mf0osfs94tbp\",hidden:p=>p.mode!==\"email\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FteCtaModule\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FteCtaModule.map"],"mappings":"A,sMAiDE,SAASa,GAAc,CAAWR,IAAS,QAAYA,EAAO,cAAc,IAAI,YAAY,gBAAgB,CAAC,CAAE,CAAC,SAAwBS,EAAa,CAAC,SAAO,OAAO,OAAK,WAAW,UAAQ,qCAAqC,WAAS,0DAA0D,MAAI,yIAAyI,WAAS,IAAI,WAAS,GAAG,aAAW,EAAE,gBAAc,EAAE,cAAY,cAAc,gBAAc,GAAM,UAAQ,mCAAmC,cAAY,iBAAiB,cAAY,YAAY,eAAa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