{"version":3,"file":"SMSConsentCheckboxes.4IrpsnpR.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/HrKqWd39KOnP8zDWBeql/6CYpOIMVCux6TsiDcXsp/SMSConsentCheckboxes.js"],"sourcesContent":["// SMS Consent Checkboxes for Book Form & Footer Form\n// Description text is fully hidden, expands only on hover\n// Stores consent values globally for BookFormOverride to read\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Global consent data store — read by BookFormOverride on submission\nif(typeof window!==\"undefined\"){window.__smsConsentData={transactionalSMS:false,marketingSMS:false,termsAccepted:false};}const SMS_CHECKBOXES=[{key:\"transactionalSMS\",label:\"Transactional SMS Consent (optional)\",body:\"By checking this box, I consent to receive SMS text messages from Good Odds Inc. (doing business as Parlay) related to my account, services I request, onboarding updates, support communications, and account notifications. Message frequency may vary. Message and data rates may apply. Reply STOP to opt out. Reply HELP for help. Carriers are not liable for delayed or undelivered messages.\"},{key:\"marketingSMS\",label:\"Marketing SMS Consent (optional)\",body:\"By checking this box, I consent to receive marketing and promotional SMS messages from Good Odds Inc. (doing business as Parlay), including product updates, feature announcements, and special offers. Message frequency may vary. Message and data rates may apply. Reply STOP to opt out. Reply HELP for help. Consent is not a condition of purchase. Carriers are not liable for delayed or undelivered messages.\"}];const TERMS_CHECKBOX={key:\"termsAccepted\",label:null,body:null};export default function SMSConsentCheckboxes(props){const{showSMSConsent=true,termsUrl=\"/legal/terms-of-service\",privacyUrl=\"/legal/privacy-policy\",textColor=\"rgb(244, 244, 232)\",mutedColor=\"rgb(188, 188, 188)\",accentColor=\"rgb(209, 255, 0)\",borderColor=\"rgba(156, 156, 156, 0.4)\",style}=props;const[checked,setChecked]=useState({transactionalSMS:false,marketingSMS:false,termsAccepted:false});const[hovered,setHovered]=useState(null);// Sync to global store so BookFormOverride can read it\nuseEffect(()=>{if(typeof window!==\"undefined\"){window.__smsConsentData={...checked};}},[checked]);const toggle=key=>{setChecked(prev=>({...prev,[key]:!prev[key]}));};const renderCheckmark=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"10\",height:\"8\",viewBox:\"0 0 10 8\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M1 4L3.5 6.5L9 1\",stroke:\"rgb(5, 5, 5)\",strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});const boxStyle=isChecked=>({width:16,height:16,minWidth:16,minHeight:16,border:isChecked?`1px solid ${accentColor}`:`1px solid ${borderColor}`,borderRadius:2,backgroundColor:isChecked?accentColor:\"transparent\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",marginTop:1,transition:\"all 0.15s ease\",flexShrink:0});const labelStyle={fontFamily:\"Roboto Mono, monospace\",fontWeight:700,fontSize:11,lineHeight:\"120%\",letterSpacing:\"-0.03em\",textTransform:\"uppercase\",color:textColor};const bodyStyle=isExpanded=>({fontFamily:\"TASA Orbiter Display, sans-serif\",fontWeight:600,fontSize:11,lineHeight:\"145%\",letterSpacing:\"-0.02em\",color:mutedColor,overflow:\"hidden\",maxHeight:isExpanded?\"250px\":\"0px\",opacity:isExpanded?1:0,marginTop:isExpanded?4:0,transition:\"max-height 0.3s ease, opacity 0.2s ease, margin-top 0.2s ease\"});const termsTextStyle={fontFamily:\"TASA Orbiter Display, sans-serif\",fontWeight:600,fontSize:11,lineHeight:\"145%\",letterSpacing:\"-0.02em\",color:textColor};const linkStyle={color:accentColor,textDecoration:\"underline\",cursor:\"pointer\"};// Build checkbox list based on showSMSConsent prop\nconst checkboxes=showSMSConsent?[...SMS_CHECKBOXES,TERMS_CHECKBOX]:[TERMS_CHECKBOX];return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"14px\",width:\"100%\",...style},children:checkboxes.map((cb,i)=>{const isChecked=checked[cb.key];const isHovered=hovered===i;return /*#__PURE__*/_jsxs(\"div\",{onMouseEnter:()=>setHovered(i),onMouseLeave:()=>setHovered(null),style:{display:\"flex\",alignItems:\"flex-start\",gap:\"10px\",cursor:\"pointer\"},onClick:e=>{// Don't toggle if clicking a link\nif(e.target.tagName===\"A\")return;toggle(cb.key);},children:[/*#__PURE__*/_jsx(\"div\",{style:boxStyle(isChecked),children:isChecked&&renderCheckmark()}),/*#__PURE__*/_jsx(\"div\",{style:{flex:1,minWidth:0},children:cb.body!==null?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:labelStyle,children:cb.label}),/*#__PURE__*/_jsx(\"div\",{style:bodyStyle(isHovered),children:cb.body})]}):/*#__PURE__*/_jsxs(\"div\",{style:termsTextStyle,children:[\"I agree to the\",\" \",/*#__PURE__*/_jsx(\"a\",{href:termsUrl,target:\"_blank\",rel:\"noopener noreferrer\",onClick:e=>e.stopPropagation(),style:linkStyle,children:\"Terms of Service\"}),\" \",\"and\",\" \",/*#__PURE__*/_jsx(\"a\",{href:privacyUrl,target:\"_blank\",rel:\"noopener noreferrer\",onClick:e=>e.stopPropagation(),style:linkStyle,children:\"Privacy Policy\"}),\".\"]})})]},cb.key);})});}addPropertyControls(SMSConsentCheckboxes,{showSMSConsent:{type:ControlType.Boolean,title:\"Show SMS Consent\",defaultValue:true,description:\"Show transactional & marketing SMS consent checkboxes\"},termsUrl:{type:ControlType.String,title:\"Terms URL\",defaultValue:\"/legal/terms-of-service\"},privacyUrl:{type:ControlType.String,title:\"Privacy URL\",defaultValue:\"/legal/privacy-policy\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"rgb(244, 244, 232)\"},mutedColor:{type:ControlType.Color,title:\"Muted Color\",defaultValue:\"rgb(188, 188, 188)\"},accentColor:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"rgb(209, 255, 0)\"},borderColor:{type:ControlType.Color,title:\"Checkbox Border\",defaultValue:\"rgba(156, 156, 156, 0.4)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\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