{"version":3,"file":"CallNowButton.Br0BCISR.mjs","names":["useRef","useState","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","_e","c","init_jsx_runtime","ce","de","init_framer_DKtAEkcX","ControlType","addPropertyControls","CalInlineEmbed","props","ref","calNamespace","p","a","ar","d","C","cal","A","L","api","namespace","Cal","calLink","init_CalInlineEmbed","CallNowButton","hover","setHover","tel","phone","label","init_CallNowButton"],"sources":["https:/framerusercontent.com/modules/0kTP5Jx6nP14NKewq3J7/R5swxIZqnkaGMy0BQU9Z/CalInlineEmbed.js","https:/framerusercontent.com/modules/S84Ox79SIsYZAx7sCP9F/Y680twNBtMdxXDsh3I6B/CallNowButton.js"],"sourcesContent":["// @ts-nocheck\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Inline Cal.com booking calendar (month view).\n * Renders the live scheduler in place of a form.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function CalInlineEmbed(props){const{calLink,minHeight}=props;const ref=useRef(null);// Unique namespace per instance so multiple inline calendars on the\n// same page each render independently.\nconst nsRef=useRef(\"cal\"+Math.random().toString(36).slice(2,9));const calNamespace=nsRef.current;useEffect(()=>{if(typeof window===\"undefined\"||!ref.current)return;(function(C,A,L){let p=function(a,ar){a.q.push(ar);};let d=C.document;C.Cal=C.Cal||function(){let cal=C.Cal;let 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);};})(window,\"https://app.cal.com/embed/embed.js\",\"init\");const Cal=window.Cal;Cal(\"init\",calNamespace,{origin:\"https://app.cal.com\"});Cal.ns[calNamespace](\"inline\",{elementOrSelector:ref.current,config:{layout:\"month_view\",useSlotsViewOnSmallScreen:\"true\"},calLink:calLink});Cal.ns[calNamespace](\"ui\",{hideEventTypeDetails:false,layout:\"month_view\"});},[calLink]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{width:\"100%\",height:\"100%\",minHeight:minHeight,overflow:\"auto\"}});}CalInlineEmbed.defaultProps={calLink:\"kasita-crafters-hkswnu/15min\",minHeight:620};addPropertyControls(CalInlineEmbed,{calLink:{type:ControlType.String,title:\"Cal Link\",defaultValue:\"kasita-crafters-hkswnu/15min\"},minHeight:{type:ControlType.Number,title:\"Min Height\",defaultValue:620,min:300,max:1200,step:10}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CalInlineEmbed\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CalInlineEmbed.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";/**\n * Kasita Crafters — Call Now button (tel: link).\n * Matches the site's primary CTA style (dark #1A1513, white, Montserrat, radius 6),\n * compact / auto-width, with a subtle lift-on-hover.\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function CallNowButton(props){const{label,phone}=props;const[hover,setHover]=useState(false);const tel=\"tel:\"+String(phone||\"\").replace(/[^0-9+]/g,\"\");return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",display:\"flex\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"a\",{href:tel,onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",width:\"auto\",maxWidth:\"100%\",padding:\"13px 28px\",border:\"none\",borderRadius:6,background:hover?\"#2A2320\":\"#1A1513\",color:\"#FFFFFF\",fontFamily:\"Montserrat, sans-serif\",fontSize:16,fontWeight:600,lineHeight:1.1,letterSpacing:\"0\",textDecoration:\"none\",cursor:\"pointer\",boxSizing:\"border-box\",whiteSpace:\"nowrap\",transform:hover?\"translateY(-1px)\":\"translateY(0)\",boxShadow:hover?\"0 6px 16px rgba(26,21,19,0.22)\":\"0 1px 2px rgba(26,21,19,0.08)\",transition:\"background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease\"},children:label})});}CallNowButton.defaultProps={label:\"Call now\",phone:\"+16265456070\"};addPropertyControls(CallNowButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Call now\"},phone:{type:ControlType.String,title:\"Phone\",defaultValue:\"+16265456070\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CallNowButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CallNowButton.map"],"mappings":"A,sMAOG,SAAwBc,EAAe,EAAM,CAAC,GAAK,CAAC,UAAQ,aAAWC,EAAYC,EAAIhB,EAAO,IAAI,EAE/BiB,EAA1DjB,EAAO,MAAM,KAAK,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAA0B,CAAC,CAAC,QAAq6B,OAA75BS,MAAc,CAAC,GAAUJ,IAAS,QAAa,CAACW,EAAI,QAAQ,QAAQ,SAAS,EAAE,EAAE,EAAE,CAAC,IAAIE,EAAE,SAAS,EAAE,EAAG,CAACC,EAAE,EAAE,KAAKC,CAAE,CAAE,EAAMC,EAAEC,EAAE,SAAS,EAAE,IAAIA,EAAE,KAAK,UAAU,CAAC,IAAIC,EAAID,EAAE,IAAQF,E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