{"version":3,"file":"ServiceTitan2.jsP_87TC.mjs","names":[],"sources":["https:/framerusercontent.com/modules/BkitVqi6yDjy9UsevsDQ/AEWcJyAU4y1gefyuQ21Z/ServiceTitan2.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{rotate:90},transition:{duration:2}});});}export function withHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:{scale:1.05}});});}export function withRandomColor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});});}export function SchedulerButton(Component){return props=>{const handleClick=()=>{console.log(\"=== BUTTON CLICKED ===\");console.log(\"Checking for _scheduler...\");console.log(\"_scheduler exists?\",typeof _scheduler!==\"undefined\");console.log(\"_scheduler object:\",_scheduler);if(typeof _scheduler!==\"undefined\"&&_scheduler){console.log(\"Calling _scheduler.show()...\");_scheduler.show({schedulerId:\"sched_rapxkuybmzwk3mo5rmkw2y3m\"});console.log(\"Called!\");}else{console.error(\"_scheduler is not available\");}};return /*#__PURE__*/_jsx(Component,{...props,onTap:handleClick,onClick:handleClick,onPointerDown:handleClick});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SchedulerButton\":{\"type\":\"reactHoc\",\"name\":\"SchedulerButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ServiceTitan2.map"],"mappings":"oNACgqB,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,MAAgB,CAAC,QAAQ,IAAI,yBAAyB,CAAC,QAAQ,IAAI,6BAA6B,CAAC,QAAQ,IAAI,qBAAqB,OAAO,WAAa,IAAY,CAAC,QAAQ,IAAI,qBAAqB,WAAW,CAAI,OAAO,WAAa,KAAa,YAAY,QAAQ,IAAI,+BAA+B,CAAC,WAAW,KAAK,CAAC,YAAY,iCAAiC,CAAC,CAAC,QAAQ,IAAI,UAAU,EAAO,QAAQ,MAAM,8BAA8B,EAAI,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,EAAY,QAAQ,EAAY,cAAc,EAAY,CAAC,mBAD5tC,IAA8B,IAAqE,IAAqE,CACpM,EAAY,CAAC,WAAW,UAAU,CAAC"}