{"version":3,"file":"ScrollActiveTabIntoView.MHUIARsm.mjs","names":[],"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":"oGAA2C,SAAgB,EAA0B,EAAU,CAAC,OAAO,SAAS,EAAM,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,GAAO,CAAI,OAAO,EAAM,SAAU,YAAY,EAAM,QAAQ,CAAK,EAAG,IAAM,EAAO,EAAM,cAAiB,GAAQ,OAAO,EAAO,gBAAiB,YAAY,EAAO,eAAe,CAAC,SAAS,SAAS,OAAO,SAAS,MAAM,SAAS,CAAC,CAAG,CAAC,CAAC,CAAE,CAAE,iBAA/W"}