{"version":3,"file":"ClickDemoButton.CZrloPD_.mjs","names":[],"sources":["https:/framerusercontent.com/modules/QqW1EcLHtFYregM66XMl/NXrme9eQjNkJYTKyXdBK/ClickDemoButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";/**\n * Code override: clicks another button/element marked as calendar trigger.\n * Useful for proxy buttons that should open the same popup as another node.\n */export function withClickOtherButton(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const handleClick=event=>{if(typeof props.onClick===\"function\")props.onClick(event);if(typeof props.onTap===\"function\")props.onTap(event);if(typeof document!==\"undefined\"){const target=document.querySelector('[data-open-cal-popup=\"true\"]');if(target)target.click();}};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:handleClick,onTap:handleClick});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withClickOtherButton\":{\"type\":\"reactHoc\",\"name\":\"withClickOtherButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ClickDemoButton.map"],"mappings":"kHAGG,SAAgB,EAAqB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,IAAM,EAAY,GAAO,CAAiH,GAA7G,OAAO,EAAM,SAAU,YAAW,EAAM,QAAQ,CAAK,EAAK,OAAO,EAAM,OAAQ,YAAW,EAAM,MAAM,CAAK,EAAK,OAAO,SAAW,IAAY,CAAC,IAAM,EAAO,SAAS,cAAc,8BAA8B,EAAK,GAAO,EAAO,MAAM,CAAE,CAAC,EAAE,OAAoB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,QAAQ,EAAY,MAAM,CAAW,CAAC,CAAE,CAAC,CAAE,iBAHla,IAA8B"}