{"version":3,"file":"Query.BCuq7s1a.mjs","names":["__esmMin","init_ssg_sandbox_shims","init_jsx_runtime","c","window","createStore","init_store_js__1_0","init_utils_js__0_9","withQueryParams","newUrl","props","Component","init_Query"],"sources":["https:/framerusercontent.com/modules/l2U1NRHsxZeZVe0rzSUh/bcpmpp5DkxbyRE80lSUn/Query.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\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});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()});}});};}export function withQueryParams(Component){return props=>{return /*#__PURE__*/_jsx(\"div\",{onClick:e=>{e.preventDefault();e.stopPropagation();const newUrl=`${props.href}${window.location.search}`;window.location.replace(newUrl);},children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withQueryParams\":{\"type\":\"reactHoc\",\"name\":\"withQueryParams\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Query.map"],"mappings":"A,iLAC2iB,SAAgBQ,EAAgB,EAAU,CAAC,MAAO,IAA4B,gBAAK,MAAM,CAAC,QAAQ,GAAG,CAAC,EAAE,eAAe,EAAE,EAAE,gBAAgB,EAAE,IAAMC,EAAO,GAAGC,EAAM,OAAON,EAAO,SAAS,SAASA,EAAO,SAAS,QAAQK,CAAM,CAAE,EAAE,SAAsB,gBAAKE,EAAU,CAAC,GAAGD,CAAK,CAAC,CAAC,CAAC,CAAI,C,8CAAtzBL,EAAY,CAAC,WAAW,SAAS,CAAC,C"}