{"version":3,"file":"withButtonMask.Dn2tVZc8.mjs","names":[],"sources":["https:/framerusercontent.com/modules/21Byhex3Con6qjqgbLzH/oX9QRzTD9L3rSRYYKqB7/withButtonMask.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";const mask=`\n    linear-gradient(to right, \n        rgb(0, 0, 0) var(--button-mask-width),\n        transparent var(--button-mask-width)\n    ) left center / 51% 100% no-repeat,\n    linear-gradient(to left,\n        rgb(0, 0, 0) var(--button-mask-width),\n        transparent var(--button-mask-width)\n    ) right center / 51% 100% no-repeat\n`;const generateButtonProps=(start,end)=>{return{whileHover:{\"--button-mask-width\":end},transition:{duration:1,ease:[.19,1,.22,1]}};};export function withButtonMaskFill(Component){return props=>{const start=\"8px\";return /*#__PURE__*/_jsx(Component,{...props,...generateButtonProps(start,\"100%\"),style:{...props.style,WebkitMask:mask,mask,\"--button-mask-width\":start}});};}export function withButtonMaskUnfill(Component){return props=>{const start=\"100%\";return /*#__PURE__*/_jsx(Component,{...props,...generateButtonProps(start,\"8px\"),style:{...props.style,WebkitMask:mask,mask,\"--button-mask-width\":start}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withButtonMaskUnfill\":{\"type\":\"reactHoc\",\"name\":\"withButtonMaskUnfill\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withButtonMaskFill\":{\"type\":\"reactHoc\",\"name\":\"withButtonMaskFill\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./withButtonMask.map"],"mappings":"0HASsI,SAAgB,EAAmB,EAAU,CAAC,MAAO,CAAA,GAAO,CAAC,IAAM,EAAM,MAAM,MAAoB,GAAK,EAAU,CAAC,GAAG,EAAM,GAAG,EAAoB,EAAM,OAAO,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,WAAW,EAAK,OAAK,sBAAsB,CAAM,CAAC,EAAC,AAAE,CAAE,UAAgB,EAAqB,EAAU,CAAC,MAAO,CAAA,GAAO,CAAC,IAAM,EAAM,OAAO,MAAoB,GAAK,EAAU,CAAC,GAAG,EAAM,GAAG,EAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,WAAW,EAAK,OAAK,sBAAsB,CAAM,CAAC,EAAC,AAAE,CAAE,kBAA5lB,AATR,GAA2C,CAAM,EAAA;;;;;;;;;EASzC,EAAoB,CAAC,EAAM,KAAa,CAAC,WAAW,CAAC,sBAAsB,CAAI,EAAC,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE,IAAI,CAAE,CAAC,CAAC"}