{"version":3,"file":"Simply_Book_Button.B7ybSp4u.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/xEWEm3jHxtEWGyZaKJ9y/sXjGFuS2yawrELfTJMNq/Simply_Book_Button.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function BookingButton(){const inited=useRef(false);useEffect(()=>{if(inited.current)return;inited.current=true;const initWidget=()=>{const W=window;if(!W.SimplybookWidget)return;new W.SimplybookWidget({widget_type:\"button\",url:\"https://dmdivorcecoach.simplybook.me\",theme:\"space\",theme_settings:{timeline_hide_unavailable:\"1\",sb_base_color:\"#8e8c73\",hide_past_days:\"0\",timeline_show_end_time:\"0\",timeline_modern_display:\"as_slots\",display_item_mode:\"block\",body_bg_color:\"#ffffff\",sb_review_image:\"\",dark_font_color:\"#4b5f6a\",light_font_color:\"#ffffff\",btn_color_1:\"#ff4b00\",sb_company_label_color:\"#ffffff\",hide_img_mode:\"0\",show_sidebar:\"1\",sb_busy:\"#c7b3b3\",sb_available:\"#a2b1b9\"},timeline:\"modern\",datepicker:\"top_calendar\",is_rtl:false,app_config:{clear_session:0,allow_switch_to_ada:0,predefined:[]},button_title:\"Book now\",button_background_color:\"#ff4b00\",button_text_color:\"#ffffff\",button_position:\"right\",button_position_offset:\"20%\"});};// Reuse script if it already exists\nconst existing=document.getElementById(\"simplybook-widget-js\");if(existing){if(window.SimplybookWidget)initWidget();else existing.addEventListener(\"load\",initWidget,{once:true});return;}const script=document.createElement(\"script\");script.id=\"simplybook-widget-js\";script.src=\"https://widget.simplybook.me/v2/widget/widget.js\"// explicit https\n;script.async=true;script.addEventListener(\"load\",initWidget,{once:true});document.body.appendChild(script);},[]);// Tiny invisible div so Framer has something to place\nreturn /*#__PURE__*/_jsx(\"div\",{style:{width:1,height:1,opacity:0}});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BookingButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Simply_Book_Button.map"],"mappings":"2MAGG,SAAwB,GAAe,CAAC,IAAM,EAAOA,EAAO,GAAM,CAGrE,OAHsE,MAAc,CAAC,GAAG,EAAO,QAAQ,OAAO,EAAO,QAAQ,GAAK,IAAM,MAAe,CAAC,IAAM,EAAE,EAAW,EAAE,kBAAwB,IAAI,EAAE,iBAAiB,CAAC,YAAY,SAAS,IAAI,uCAAuC,MAAM,QAAQ,eAAe,CAAC,0BAA0B,IAAI,cAAc,UAAU,eAAe,IAAI,uBAAuB,IAAI,wBAAwB,WAAW,kBAAkB,QAAQ,cAAc,UAAU,gBAAgB,GAAG,gBAAgB,UAAU,iBAAiB,UAAU,YAAY,UAAU,uBAAuB,UAAU,cAAc,IAAI,aAAa,IAAI,QAAQ,UAAU,aAAa,UAAU,CAAC,SAAS,SAAS,WAAW,eAAe,OAAO,GAAM,WAAW,CAAC,cAAc,EAAE,oBAAoB,EAAE,WAAW,EAAE,CAAC,CAAC,aAAa,WAAW,wBAAwB,UAAU,kBAAkB,UAAU,gBAAgB,QAAQ,uBAAuB,MAAM,CAAC,EACh8B,EAAS,SAAS,eAAe,uBAAuB,CAAC,GAAG,EAAS,CAAI,EAAO,iBAAiB,GAAY,CAAM,EAAS,iBAAiB,OAAO,EAAW,CAAC,KAAK,GAAK,CAAC,CAAC,OAAQ,IAAM,EAAO,SAAS,cAAc,SAAS,CAAC,EAAO,GAAG,uBAAuB,EAAO,IAAI,mDACnR,EAAO,MAAM,GAAK,EAAO,iBAAiB,OAAO,EAAW,CAAC,KAAK,GAAK,CAAC,CAAC,SAAS,KAAK,YAAY,EAAO,EAAG,EAAE,CAAC,CAC7F,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,sBANzB,IAAoC"}