{"version":3,"file":"ContactCaregiverButton.Cl-Q5srr.mjs","names":["React.useRef","React.useState","createClient","_Fragment","__esmMin","init_ssg_sandbox_shims","window","l","_e","p","ce","init_npm_react_18_3_1","de","addPropertyControls","init_framer_B1b760uK","ControlType","init_supabase_js_2","Oe","Icon","common","size","color","type","showRoleBanner","host","BANNER_HOST_ID","message","prev","BANNER_AUTO_DISMISS_MS","ContactCaregiverButton","props","anchorRef","autoSlug","setAutoSlug","trimmedId","userId","trimmedSlug","slug","roleRef","walkOnce","node","anchors","a","href","m","cancelled","start","retry","supabaseUrl","supabaseAnonKey","supabase","sess","user","profile","partner","path","messagesPath","q","disabled","effectiveLabel","label","effectiveBanner","bannerMessage","baseStyle","textColor","radius","fontFamily","paddingY","paddingX","borderStyle","borderWidth","borderColor","style","content","iconType","iconGap","iconColor","iconSize","loginRedirect","role","init_ContactCaregiverButton","init_jsx_runtime"],"sources":["https:/framerusercontent.com/modules/o5mTFugVJQxO0QpK8YG6/sZ6l8bNp4jeeZ5IwsRPh/ContactCaregiverButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{createClient}from\"https://esm.sh/@supabase/supabase-js@2\";function Icon({type,color,size}){const common={width:size,height:size,viewBox:\"0 0 24 24\",fill:\"none\",stroke:color,strokeWidth:2,strokeLinecap:\"round\",strokeLinejoin:\"round\"};if(type===\"chat\"){return /*#__PURE__*/_jsxs(\"svg\",{width:size,height:size,viewBox:\"0 0 256 256\",fill:\"none\",stroke:color,strokeWidth:16,strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Z\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"88\",y1:\"100\",x2:\"168\",y2:\"100\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"88\",y1:\"128\",x2:\"168\",y2:\"128\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"88\",y1:\"156\",x2:\"168\",y2:\"156\"})]});}if(type===\"mail\"){return /*#__PURE__*/_jsxs(\"svg\",{...common,children:[/*#__PURE__*/_jsx(\"rect\",{x:\"3\",y:\"5\",width:\"18\",height:\"14\",rx:\"2\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"3 7 12 13 21 7\"})]});}if(type===\"paperplane\"){return /*#__PURE__*/_jsxs(\"svg\",{...common,children:[/*#__PURE__*/_jsx(\"line\",{x1:\"22\",y1:\"2\",x2:\"11\",y2:\"13\"}),/*#__PURE__*/_jsx(\"polygon\",{points:\"22 2 15 22 11 13 2 9 22 2\"})]});}return null;}const BANNER_HOST_ID=\"c4c-contact-role-banner\";const BANNER_AUTO_DISMISS_MS=6e3;// Render a single global banner at the top of the viewport. We mount\n// it outside the Framer component tree so stacking contexts / overflow\n// from the profile layout can't clip it. Idempotent — multiple rapid\n// clicks replace the existing banner's content rather than stacking.\nfunction showRoleBanner(message){if(typeof document===\"undefined\")return;let host=document.getElementById(BANNER_HOST_ID);if(!host){host=document.createElement(\"div\");host.id=BANNER_HOST_ID;host.setAttribute(\"role\",\"status\");host.setAttribute(\"aria-live\",\"polite\");host.style.cssText=[\"position:fixed\",\"top:24px\",\"left:50%\",\"transform:translateX(-50%)\",\"z-index:2147483647\",\"max-width:min(560px, calc(100vw - 32px))\",\"box-sizing:border-box\",\"padding:14px 20px\",\"border-radius:12px\",\"background:#FFF4E0\",\"color:#3D1B0A\",\"border:1px solid #E8B65A\",\"box-shadow:0 10px 32px rgba(61,27,10,0.18)\",\"font-family:Manrope, Inter, system-ui, sans-serif\",\"font-size:15px\",\"font-weight:600\",\"line-height:1.4\",\"text-align:center\",\"cursor:pointer\",\"opacity:1\",\"transition:opacity 180ms ease-out\"].join(\";\");host.addEventListener(\"click\",()=>{if(host&&host.parentElement)host.parentElement.removeChild(host);});document.body.appendChild(host);}host.textContent=message;// Force opacity back to 1 in case a previous auto-dismiss had\n// started fading the host out but hadn't removed it yet.\nhost.style.opacity=\"1\";// Reset auto-dismiss timer each time the banner is (re)shown.\nconst prev=host.__dismissTimer;if(prev)window.clearTimeout(prev);host.__dismissTimer=window.setTimeout(()=>{if(!host)return;host.style.opacity=\"0\";window.setTimeout(()=>{if(host&&host.parentElement)host.parentElement.removeChild(host);},220);},BANNER_AUTO_DISMISS_MS);}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 180\n * @framerIntrinsicHeight 52\n */export default function ContactCaregiverButton(props){const{userId,slug,label,messagesPath,supabaseUrl,supabaseAnonKey,bannerMessage,background,textColor,radius,fontFamily,fontSize,fontWeight,paddingX,paddingY,borderStyle,borderColor,borderWidth,iconType,iconColor,iconSize,iconGap,style}=props;// Prefer userId if bound; fall back to slug. Messages.tsx accepts\n// either — a UUID is used directly; anything else is treated as a\n// caregivers_public_v.slug and resolved to a user_id client-side.\nconst anchorRef=React.useRef(null);const[autoSlug,setAutoSlug]=React.useState(\"\");const trimmedId=(userId||\"\").trim();const trimmedSlug=(slug||\"\").trim();// Cached role of the viewer so the click path never does its own\n// network round trip (banner must feel instant). null = unknown\n// (prefetch not done yet); \"__anon\" = prefetch resolved, no\n// session; otherwise the role string from profiles.role.\nconst roleRef=React.useRef(null);React.useEffect(()=>{if(trimmedId||trimmedSlug)return;if(typeof window===\"undefined\")return;const walkOnce=()=>{let node=anchorRef.current;while(node&&node!==document.body){const anchors=node.querySelectorAll('a[href*=\"/caregivers/\"]');for(const a of Array.from(anchors)){const href=a.getAttribute(\"href\")||\"\";const m=/\\/caregivers\\/([^\\/?#]+)/.exec(href);if(m&&m[1]&&!m[1].startsWith(\":\")){setAutoSlug(m[1]);return true;}}node=node.parentElement;}const m=/\\/caregivers\\/([^\\/?#]+)/.exec(window.location.pathname);if(m&&m[1]&&!m[1].startsWith(\":\")){setAutoSlug(m[1]);return true;}return false;};if(walkOnce())return;let cancelled=false;const start=Date.now();const retry=()=>{if(cancelled)return;if(walkOnce())return;if(Date.now()-start<2e3){window.setTimeout(retry,150);}};window.setTimeout(retry,100);return()=>{cancelled=true;};},[trimmedId,trimmedSlug]);// Role prefetch — fire once per mount. Cheap enough: single\n// getSession() + maybeSingle() on profiles. If it hasn't resolved\n// by click time, the click handler falls back to a synchronous\n// await; the typical flow is a user who's been on the profile page\n// for >200ms before clicking, so the cache will almost always be\n// warm.\nReact.useEffect(()=>{if(typeof window===\"undefined\")return;if(!supabaseUrl||!supabaseAnonKey)return;let cancelled=false;(async()=>{try{const supabase=createClient(supabaseUrl,supabaseAnonKey);const{data:sess}=await supabase.auth.getSession();const user=sess?.session?.user;if(cancelled)return;if(!user){roleRef.current=\"__anon\";return;}const{data:profile}=await supabase.from(\"profiles\").select(\"role\").eq(\"id\",user.id).maybeSingle();if(cancelled)return;roleRef.current=(profile?.role)||null;}catch{// Leave roleRef.current null; click will fall through\n// to normal navigation. RoleGuard on the target page\n// still protects data, just without the nice banner.\n}})();return()=>{cancelled=true;};},[supabaseUrl,supabaseAnonKey]);const partner=trimmedId||trimmedSlug||autoSlug;const path=messagesPath&&messagesPath.trim()?messagesPath.trim():\"/careseeker-messages\";let href=path;if(partner){const q=new URLSearchParams;q.set(\"partner\",partner);href=`${path}?${q.toString()}`;}const disabled=!partner;const effectiveLabel=disabled?\"Unavailable\":label||\"Contact Now\";const effectiveBanner=bannerMessage&&bannerMessage.trim()||\"Please create a Family profile to contact a caregiver\";const baseStyle={display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxSizing:\"border-box\",width:\"100%\",height:\"100%\",background,color:textColor,borderRadius:radius,fontFamily:fontFamily||\"Manrope, Inter, sans-serif\",fontSize,fontWeight,padding:`${paddingY}px ${paddingX}px`,textDecoration:\"none\",cursor:disabled?\"not-allowed\":\"pointer\",opacity:disabled?.55:1,whiteSpace:\"nowrap\",border:borderStyle===\"solid\"?`${borderWidth}px solid ${borderColor}`:\"none\",...style};const content=/*#__PURE__*/_jsxs(_Fragment,{children:[iconType!==\"none\"&&/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",marginRight:effectiveLabel?iconGap:0},children:/*#__PURE__*/_jsx(Icon,{type:iconType,color:iconColor||textColor,size:iconSize})}),effectiveLabel]});if(disabled){return /*#__PURE__*/_jsx(\"div\",{ref:anchorRef,style:baseStyle,children:content});}const loginRedirect=()=>`/login?returnTo=${encodeURIComponent(href)}`;const onClick=async e=>{// Fast path: role already resolved.\nif(roleRef.current===\"caregiver\"){e.preventDefault();showRoleBanner(effectiveBanner);return;}if(roleRef.current===\"family\"||roleRef.current===\"admin\"){return;// normal navigation\n}if(roleRef.current===\"__anon\"){// Signed-out → go straight to /login so Back from the\n// login page lands on this profile (not an intermediate\n// messages page that would stall on its own RoleGuard\n// bfcache restore).\ne.preventDefault();window.location.assign(loginRedirect());return;}// Unknown — prefetch hasn't finished, or no Supabase creds.\nif(!supabaseUrl||!supabaseAnonKey)return;e.preventDefault();try{const supabase=createClient(supabaseUrl,supabaseAnonKey);const{data:sess}=await supabase.auth.getSession();const user=sess?.session?.user;if(!user){// Signed-out → straight to /login.\nwindow.location.assign(loginRedirect());return;}const{data:profile}=await supabase.from(\"profiles\").select(\"role\").eq(\"id\",user.id).maybeSingle();const role=(profile?.role)||null;roleRef.current=role;if(role===\"caregiver\"){showRoleBanner(effectiveBanner);return;}window.location.assign(href);}catch{// Fail open — better to send them through than lock them\n// out of a public link.\nwindow.location.assign(href);}};return /*#__PURE__*/_jsx(\"a\",{ref:anchorRef,href:href,style:baseStyle,onClick:onClick,children:content});}ContactCaregiverButton.defaultProps={userId:\"\",slug:\"\",label:\"Contact Now\",messagesPath:\"/careseeker-messages\",supabaseUrl:\"https://xkatbssxeyumhfieshcu.supabase.co\",supabaseAnonKey:\"\",bannerMessage:\"Please create a Family profile to contact a caregiver\",background:\"#FFFFFF\",textColor:\"#17786B\",radius:100,fontFamily:\"Manrope, Inter, sans-serif\",fontSize:16,fontWeight:700,paddingX:32,paddingY:14,borderStyle:\"solid\",borderColor:\"#17786B\",borderWidth:1.5,iconType:\"none\",iconColor:\"\",iconSize:18,iconGap:8};addPropertyControls(ContactCaregiverButton,{userId:{type:ControlType.String,title:\"User ID\",placeholder:\"Bind to CMS user_id\",description:\"Caregiver auth user id (UUID). Optional if Slug is bound instead.\"},slug:{type:ControlType.String,title:\"Slug\",placeholder:\"Bind to CMS slug\",description:\"Caregiver slug — used as fallback when User ID isn't bound. One of User ID or Slug is required.\"},label:{type:ControlType.String,title:\"Label\",placeholder:\"Contact Now\"},messagesPath:{type:ControlType.String,title:\"Messages Path\",placeholder:\"/careseeker-messages\",description:\"Override only if the messages page URL changes.\"},supabaseUrl:{type:ControlType.String,title:\"Supabase URL\",defaultValue:\"https://xkatbssxeyumhfieshcu.supabase.co\"},supabaseAnonKey:{type:ControlType.String,title:\"Supabase Anon Key\",defaultValue:\"\",description:\"Public anon key. Safe in the browser. Used to look up the viewer's role so a caregiver clicking Contact Now gets a banner instead of a silent RoleGuard bounce.\"},bannerMessage:{type:ControlType.String,title:\"Caregiver Banner\",defaultValue:\"Please create a Family profile to contact a caregiver\",description:\"Message shown to a signed-in caregiver who clicks Contact Now on another caregiver's profile.\"},background:{type:ControlType.Color,title:\"Background\"},textColor:{type:ControlType.Color,title:\"Text\"},radius:{type:ControlType.Number,title:\"Radius\",min:0,max:200,step:1,unit:\"px\"},fontFamily:{type:ControlType.String,title:\"Font Family\"},fontSize:{type:ControlType.Number,title:\"Font Size\",min:10,max:40,step:1,unit:\"px\"},fontWeight:{type:ControlType.Number,title:\"Font Weight\",min:100,max:900,step:100},paddingX:{type:ControlType.Number,title:\"Padding X\",min:0,max:100,step:1,unit:\"px\"},paddingY:{type:ControlType.Number,title:\"Padding Y\",min:0,max:60,step:1,unit:\"px\"},borderStyle:{type:ControlType.Enum,title:\"Border\",options:[\"solid\",\"none\"],optionTitles:[\"Solid\",\"None\"]},borderColor:{type:ControlType.Color,title:\"Border Color\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",min:0,max:10,step:.5,unit:\"px\"},iconType:{type:ControlType.Enum,title:\"Icon\",options:[\"none\",\"chat\",\"mail\",\"paperplane\"],optionTitles:[\"None\",\"Chat\",\"Mail\",\"Send\"]},iconColor:{type:ControlType.Color,title:\"Icon Color\",description:\"Leave empty to use the button text color.\"},iconSize:{type:ControlType.Number,title:\"Icon Size\",min:10,max:40,step:1,unit:\"px\"},iconGap:{type:ControlType.Number,title:\"Icon Gap\",min:0,max:30,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ContactCaregiverButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"52\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"180\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ContactCaregiverButton.map"],"mappings":"A,kQAAgO,SAASkB,EAAK,CAAC,OAAK,QAAM,QAAM,CAAC,IAAMC,EAAO,CAAC,MAAMC,EAAK,OAAOA,EAAK,QAAQ,YAAY,KAAK,OAAO,OAAOC,EAAM,YAAY,EAAE,cAAc,QAAQ,eAAe,OAAO,EAAq6B,OAAh6BC,IAAO,OAA4B,gBAAM,MAAM,CAAC,MAAMF,EAAK,OAAOA,EAAK,QAAQ,cAAc,KAAK,OAAO,OAAOC,EAAM,YAAY,GAAG,cAAc,QAAQ,eAAe,QAAQ,SAAS,CAAc,gBAAK,OAAO,CAAC,EAAE,6GAA6G,CAAC,EAAe,gBAAK,OAAO,CAAC,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,EAAe,gBAAK,OAAO,CAAC,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG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