{"version":3,"file":"ScrollActiveTabIntoView.otsfWlBA.mjs","names":["_jsx","__esmMin","c","init_jsx_runtime","withScrollIntoViewOnClick","Component","props","event","target","init_ScrollActiveTabIntoView"],"sources":["https:/framerusercontent.com/modules/ls3JdhgjEJxuqp1iaZr2/gVuLE0zBNoAYZpvdiCD5/ScrollActiveTabIntoView.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function withScrollIntoViewOnClick(Component){return function(props){return /*#__PURE__*/_jsx(Component,{...props,onClick:event=>{if(typeof props.onClick===\"function\"){props.onClick(event);}const target=event.currentTarget;if(target&&typeof target.scrollIntoView===\"function\"){target.scrollIntoView({behavior:\"smooth\",inline:\"center\",block:\"nearest\"});}}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withScrollIntoViewOnClick\":{\"type\":\"reactHoc\",\"name\":\"withScrollIntoViewOnClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollActiveTabIntoView.map"],"mappings":"A,oGAA2C,SAAgBI,EAA0BC,EAAU,CAAC,OAAO,SAASC,EAAM,CAAC,MAAoBN,gBAAKK,EAAU,CAAC,GAAGC,EAAM,QAAQC,GAAO,CAAI,OAAOD,EAAM,SAAU,YAAYA,EAAM,QAAQC,CAAK,EAAG,IAAMC,EAAOD,EAAM,cAAiBC,GAAQ,OAAOA,EAAO,gBAAiB,YAAYA,EAAO,eAAe,CAAC,SAAS,SAAS,OAAO,SAAS,MAAM,SAAS,CAAC,CAAG,CAAC,CAAC,CAAE,CAAE,C"}