{"version":3,"file":"Overrides.CcnsQRYb.mjs","names":["__legacyOverrideHOC_DataObserverContext"],"sources":["https:/framerusercontent.com/modules/hCS0XEt2FDLUsg9yoPLh/QWcYWsbm1QcpFjxZeWhs/Overrides.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";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\";import{useState,useEffect}from\"react\";export function hideWhenTransparent(){const[visibility,setVisibility]=useState(\"visible\");useEffect(()=>{const observer=new MutationObserver(mutations=>{mutations.forEach(mutation=>{console.log(mutation);if(mutation.target.style.opacity===\"0\"){setVisibility(\"hidden\");}else{setVisibility(\"visible\");}});});return()=>observer.disconnect();},[]);return{style:{visibility}};}const useStore=createStore({background:\"#0099FF\"});export function withSquareAspectRatio(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props?.style,aspectRatio:\"1\",height:\"auto\"}});};}export function withPortraitAspectRatio(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props?.style,aspectRatio:\"3 / 4\",height:\"auto\"}});};}export function withRotate(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,animate:{rotate:90},transition:{duration:2}});};}export function withHover(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,whileHover:{scale:1.05}});};}export function withRandomColor(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withhideWhenTransparent(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...hideWhenTransparent(props)});};}withhideWhenTransparent.displayName=\"hideWhenTransparent\";\nexport const __FramerMetadata__ = {\"exports\":{\"withSquareAspectRatio\":{\"type\":\"reactHoc\",\"name\":\"withSquareAspectRatio\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hideWhenTransparent\":{\"type\":\"override\",\"name\":\"hideWhenTransparent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withhideWhenTransparent\":{\"type\":\"reactHoc\",\"name\":\"withhideWhenTransparent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPortraitAspectRatio\":{\"type\":\"reactHoc\",\"name\":\"withPortraitAspectRatio\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Overrides.map"],"mappings":"4WAA2N,SAAgB,GAAqB,CAAC,GAAK,CAAC,EAAW,EAAc,CAAC,EAAS,UAAU,CAA+P,MAA9P,GAAU,IAAI,CAAC,IAAM,EAAS,IAAI,iBAAiB,GAAW,CAAC,EAAU,QAAQ,GAAU,CAAuB,AAAtB,QAAQ,IAAI,EAAS,CAAI,EAAS,OAAO,MAAM,UAAU,IAAK,EAAc,SAAS,CAAO,EAAc,UAAU,AAAG,EAAC,AAAE,GAAE,MAAM,IAAI,EAAS,YAAY,AAAE,EAAC,CAAE,EAAC,CAAO,CAAC,MAAM,CAAC,YAAW,CAAC,CAAE,CAAmD,SAAgB,EAAsB,EAAU,CAAC,MAAO,CAAA,GAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,GAAO,MAAM,YAAY,IAAI,OAAO,MAAO,CAAC,EAAC,AAAI,CAAyzB,SAAgB,EAAwB,EAAE,CAAC,MAAO,CAAA,IAAQ,EAA+BA,EAAwC,CAAQ,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAoB,EAAM,AAAC,EAAC,CAAI,gBAAA,AAAhyD,GAA2C,IAAqE,IAAqE,IAAsC,CAAqzC,GAAmF,CAA9gC,EAAS,EAAY,CAAC,WAAW,SAAU,EAAC,CAA+pC,EAAwB,YAAY"}