{"version":3,"file":"BookingPage.DdtLLVki.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/WDU9qcSCctW0OGPhvZOi/SY5BHELxpGJ39MWv6IWV/BookingPage.js"],"sourcesContent":["// Booking page (/book): one page, text and calendar chosen by the address.\n// /book?for=<key> picks the version below. Unknown or missing key = \"book\".\n// Text layers on the page use the with* overrides; the calendar is BookingCalendar.\n// Edit the words here (Garry owns this file: ~/agent/website/code/BookingPage.tsx).\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Words: the copywriter's book-page.md (v1, 12 Oct 2026). Change them there first, then here.\nconst INTRO=\"Let's talk about it. A 20-minute Clarity Call, free and confidential. No preparation needed.\";const TALK2=\"You talk most. I ask questions, and tell you what I see.\";const PERSONAL_NEXT=\"If it's a fit, the next step is a 90-minute Strategy Session. You only pay for it if it was valuable.\";const LONGER=\"If it's a fit, the next step is usually a free Strategy Session with the right people, and you leave with a plan.\";const NO_NEED_TO_KNOW=\"You don't need to know what kind of help you need: it might be the strategy, the team or how you lead. Working that out is what the call is for.\";const home=interest=>({title:\"Your company is outgrowing how you run it.\",intro:INTRO+\"\\n\\n\"+NO_NEED_TO_KNOW,talk:\"Where the company is, what keeps getting stuck, and what's in the way, whether you're the founder or one of the leaders around them.\",talk2:TALK2+\" If it would help, we'll look at what could change it, for you, your leadership team or someone on it.\",next:LONGER,interest});export const VERSIONS={book:home(),home:home(\"Startups\"),results:home(),founders:{title:\"Running the company is a different job from starting it.\",intro:INTRO,talk:\"Where the company is, the decisions waiting on you, and what's in the way.\",talk2:TALK2+\" If it would help, we'll look at whether coaching is the right next step.\",next:\"If it's a fit, the next step is usually a free Strategy Session about what you want from the coaching.\",interest:\"Founder coaching\"},coaching:{title:\"The job just got bigger.\",intro:INTRO,talk:\"What's changed in the job, for you or for someone on your team, and what's in the way.\",talk2:TALK2+\" If it would help, we'll look at whether coaching is the right next step, and for whom.\",next:\"If it's a fit, the next step is usually a free Strategy Session. If the coaching is for someone on your team, I meet them too, and they decide.\",interest:\"Coaching\"},workshops:{title:\"Get your leadership team pulling in one direction.\",intro:INTRO,talk:\"What your leadership team needs to decide, by when, and what's in the way.\",talk2:TALK2+\" If it would help, we'll look at which workshop fits, or whether a workshop is the answer at all.\",next:\"If it's a fit, the next step is a free Strategy Session with the right people, then a suggested format and a price.\",interest:\"Startup workshops\"},resources:{title:\"The template is a start.\",intro:\"Let's talk about the rest. A 20-minute Clarity Call, free and confidential. No preparation needed.\",talk:\"What you were trying to do with the tool, where it got stuck, and what's in the way.\",talk2:TALK2+\" If it would help, we'll look at what could move it, for you or your leadership team.\",next:LONGER},personal:{title:\"Want coaching for yourself?\",intro:\"Let's see what fits. A 20-minute Clarity Call, free and confidential. No preparation needed.\",talk:\"Where you are, what you want to change, and what's in the way.\",talk2:TALK2,next:\"If it's a fit, we agree the next step together: for ADHD coaching and What's next?, that's a 90-minute Strategy Session, where you leave with something useful whether or not we work together.\",interest:\"Personal coaching\"},neurodiversity:{title:\"Every brain works differently.\",intro:\"Let's talk about what helps you think best. A 20-minute Clarity Call, free and confidential. No preparation needed, and no diagnosis.\",talk:\"How you work best, where the work gets stuck, and what would help.\",talk2:TALK2+\" If it would help, we'll look at coaching or a workshop shaped around the way you work.\",next:\"If it's a fit, the next step is usually a free Strategy Session.\",interest:\"Neurodiversity\"},transformation:{title:\"You're responsible for change, and you don't have all the answers.\",intro:\"Nobody does yet. Let's talk about it. A 20-minute Clarity Call, free and confidential. No preparation needed.\",talk:\"The change you're responsible for, where it's stuck, and what's in the way.\",talk2:TALK2+\" If it would help, we'll look at what could move it, for you, your leaders or your teams.\",next:LONGER,interest:\"Transformation\"},\"whats-next\":{title:\"It's working on paper. So why does it feel like this?\",intro:INTRO,talk:\"Whatever's on your mind. Often it's one of these:\",talk2:\"What you want more of, less of, or something different altogether\\nThe question you keep putting off\\nWhether it's the role, or the way you're doing it\",next:PERSONAL_NEXT,interest:\"What's next\"},adhd:{title:\"You know you can do it. So why is the easy stuff so hard?\",intro:\"Let's talk about it. A 20-minute Clarity Call, free and confidential. No preparation and no diagnosis needed.\",talk:\"Whatever's on your mind. Often it's one of these:\",talk2:\"Where your day gets stuck, and what it's costing you\\nThe things you know how to do and still don't start\\nWhat works for the way your brain works\",next:PERSONAL_NEXT,interest:\"ADHD\"}};// Which version a page's visitors get. Longest matching path wins.\nconst WORKSHOP_PAGES=[\"first-look\",\"go-to-market-review\",\"strategy-offsite\",\"product-vision-workshop\",\"okr-workshop\",\"running-the-quarter\",\"weekly-business-review-workshop\",\"who-owns-what\"];function keyForPath(path){const p=path.replace(/\\/+$/,\"\")||\"/\";if(p===\"/\")return\"home\";if(p.startsWith(\"/coaching/founders\"))return\"founders\";if(p.startsWith(\"/coaching/personal\"))return\"personal\";if(p.startsWith(\"/coaching/adhd\"))return\"adhd\";if(p.startsWith(\"/coaching/whats-next\"))return\"whats-next\";if(p.startsWith(\"/coaching\"))return\"coaching\";if(p.startsWith(\"/workshops\"))return\"workshops\";if(WORKSHOP_PAGES.some(w=>p===\"/resources/\"+w))return\"workshops\";if(p.startsWith(\"/resources\"))return\"resources\";if(p.startsWith(\"/results\"))return\"results\";if(p.startsWith(\"/transformation\"))return\"transformation\";if(p.startsWith(\"/personal-coaching\"))return\"personal\";if(p.startsWith(\"/neurodiversity\"))return\"neurodiversity\";if(p.startsWith(\"/adhd\"))return\"adhd\";if(p.startsWith(\"/unleashed\"))return\"whats-next\";return\"book\";}const FROM=\"rr-book-from\";// 1. /book?for=<key> (links in emails and posts). 2. The last page visited on this site\n// (noted by withBookingSource on the navigation). 3. The page the visitor came from. 4. \"book\".\nfunction readKey(){if(typeof window===\"undefined\")return\"book\";const k=new URLSearchParams(window.location.search).get(\"for\");if(k&&VERSIONS[k])return k;try{const from=window.sessionStorage.getItem(FROM);if(from)return keyForPath(from);}catch(e){}try{const r=new URL(document.referrer);if(r.host===window.location.host)return keyForPath(r.pathname);}catch(e){}return\"book\";}// On the navigation's Book a call button: notes the page the visitor is on (never /book itself).\nexport function withBookingSource(Component){return props=>{useEffect(()=>{const p=window.location.pathname;if(!p.startsWith(\"/book\")){try{window.sessionStorage.setItem(FROM,p);}catch(e){}}});return /*#__PURE__*/_jsx(Component,{...props});};}// Text is swapped after the page loads (the default \"book\" text is what search engines would see).\nfunction useVersion(){const[key,setKey]=useState(\"book\");useEffect(()=>setKey(readKey()),[]);return VERSIONS[key];}function swap(Component,field){return props=>{const v=useVersion();return /*#__PURE__*/_jsx(Component,{...props,text:v[field],style:{...props.style,whiteSpace:\"pre-line\"}});};}export function withBookingTitle(Component){return swap(Component,\"title\");}export function withBookingIntro(Component){return swap(Component,\"intro\");}export function withBookingTalk(Component){return swap(Component,\"talk\");}export function withBookingTalk2(Component){return swap(Component,\"talk2\");}export function withBookingNext(Component){return swap(Component,\"next\");}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function BookingCalendar(props){const box=useRef(null);useEffect(()=>{const el=box.current;if(!el)return;const w=window;const ns=\"clarity\";(function(C,A,L){const p=function(a,ar){a.q.push(ar);};const d=C.document;C.Cal=C.Cal||function(){const cal=C.Cal;const ar=arguments;if(!cal.loaded){cal.ns={};cal.q=cal.q||[];d.head.appendChild(d.createElement(\"script\")).src=A;cal.loaded=true;}if(ar[0]===L){const api=function(){p(api,arguments);};const namespace=ar[1];api.q=api.q||[];if(typeof namespace===\"string\"){cal.ns[namespace]=cal.ns[namespace]||api;p(cal.ns[namespace],ar);p(cal,[\"initNamespace\",namespace]);}else p(cal,ar);return;}p(cal,ar);};})(w,\"https://app.cal.com/embed/embed.js\",\"init\");w.Cal(\"init\",ns,{origin:\"https://app.cal.com\"});const key=readKey();const v=VERSIONS[key];const config={theme:\"light\",layout:\"month_view\",useSlotsViewOnSmallScreen:\"true\",utm_source:\"website\",utm_medium:\"booking-page\",utm_campaign:key};if(v.interest)config.interest=v.interest;// The visitor's own tags (utm_* from an ad or a post) win over ours.\nnew URLSearchParams(window.location.search).forEach((val,k)=>{if(k.startsWith(\"utm_\"))config[k]=val;});el.innerHTML=\"\";const target=document.createElement(\"div\");target.style.width=\"100%\";el.appendChild(target);w.Cal.ns[ns](\"inline\",{elementOrSelector:target,config,calLink:props.calLink});w.Cal.ns[ns](\"ui\",{theme:\"light\",cssVarsPerTheme:{light:{\"cal-brand\":props.brand}},hideEventTypeDetails:true,layout:\"month_view\"});},[props.calLink,props.brand]);return /*#__PURE__*/_jsx(\"div\",{ref:box,style:{width:\"100%\",minHeight:480}});}BookingCalendar.defaultProps={brand:\"#0A1045\",calLink:\"richardrussell/clarity\"};addPropertyControls(BookingCalendar,{brand:{type:ControlType.Color,title:\"Brand\"},calLink:{type:ControlType.String,title:\"Cal link\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BookingCalendar\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"withBookingNext\":{\"type\":\"reactHoc\",\"name\":\"withBookingNext\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBookingIntro\":{\"type\":\"reactHoc\",\"name\":\"withBookingIntro\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"VERSIONS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBookingSource\":{\"type\":\"reactHoc\",\"name\":\"withBookingSource\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBookingTalk\":{\"type\":\"reactHoc\",\"name\":\"withBookingTalk\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBookingTitle\":{\"type\":\"reactHoc\",\"name\":\"withBookingTitle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBookingTalk2\":{\"type\":\"reactHoc\",\"name\":\"withBookingTalk2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMapping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