{"version":3,"file":"shared-lib.Dkd4bfxO.mjs","names":["useStore","useState","metadata","metadata","siteMetadata","metadataVersion","__FramerMetadata__","metadata","siteMetadata"],"sources":["https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/gdFlmwJ1nQqH7Yygu1XT/24qB9VxrkeFOnBMe6a8l/Examples.js","https:/framerusercontent.com/modules/Z3f8SJQSE1IrdIRbuPIY/IfPylJJV3aHlJdwXK0js/siteMetadata.js","https:/framerusercontent.com/modules/Z9zp5lDRefUuvuLISHvu/6aSD7ws9Eq3ZuArYdjGg/augiA20Il.js","https:/framerusercontent.com/modules/Z3f8SJQSE1IrdIRbuPIY/zXnuSipiJYA75W3m1WJO/siteMetadata.js","https:/framerusercontent.com/modules/rnV7ULGYhcL2wN7mD1RM/hh9BiFANjk4wSXXGbiUK/AwBWQrdwN.js"],"sourcesContent":["import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// Learn more: https://www.framer.com/docs/guides/overrides/\nconst useStore=createStore({activeLicenseOption:\"1 user\"});export function withHover(Component){return props=>{return(/*#__PURE__*/ _jsx(Component,{...props,whileHover:{scale:1.1,zIndex:9999,cursor:\"default\"},style:{...props.style,userSelect:\"none\",\"-webkit-user-select\":\"none\"}}));};}export function checkoutLink(Component){return props=>{const[store,setStore]=useStore();let link=\"https://warptools.gumroad.com/l/warptools?wanted=true&variant=\";switch(store.activeLicenseOption){case\"2 users\":link+=encodeURIComponent(\"2 Figma users [-8%]\");break;case\"4 users\":link+=encodeURIComponent(\"4 Figma users [-16%]\");break;case\"8 users\":link+=encodeURIComponent(\"8 Figma users [-24%]\");break;default:link+=encodeURIComponent(\"1 Figma user\");}return(/*#__PURE__*/ _jsx(Component,{...props,href:link}));};}export function licenseOption(Component){return props=>{const[store,setStore]=useStore();const onClick=()=>{setStore({activeLicenseOption:props.amount});};return(/*#__PURE__*/ _jsx(Component,{...props,onClick:onClick,variant:store.activeLicenseOption===props.amount?\"selected\":\"default\"}));};}\nexport const __FramerMetadata__ = {\"exports\":{\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"licenseOption\":{\"type\":\"reactHoc\",\"name\":\"licenseOption\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"checkoutLink\":{\"type\":\"reactHoc\",\"name\":\"checkoutLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map","// Generated by Framer (3ad0d99)\nexport default function metadata(params,activeLocale){return{description:\"Bring Illustrator’s warping features to Figma. Smudge, Bulge, Free transform and 9 more tools for distorting your designs.\",favicon:\"https://framerusercontent.com/assets/v77IJbvN6k0UsSnqo345PXtXqB8.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/3lVN5lOr0FTy9ss4ERPavB1fEc.jpg\",title:\"Figma Warp Tools\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (3ad0d99)\nimport siteMetadata from\"https://framerusercontent.com/modules/Z3f8SJQSE1IrdIRbuPIY/IfPylJJV3aHlJdwXK0js/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"72rtr7\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"ydngvz\",mediaQuery:\"(min-width: 810px) and (max-width: 1199.98px)\"},{hash:\"iezstm\",mediaQuery:\"(max-width: 809.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-gfzya\",title:siteMetadata(params,activeLocale).title||\"Home\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","const metadata=params=>({description:\"Bring Illustrator\\u2019s warping features to Figma. Smudge, Bulge, Free transform and 9 more tools for distorting your designs.\",favicon:new URL(\"assets/v77IJbvN6k0UsSnqo345PXtXqB8.png\",\"https://framerusercontent.com/modules/Z3f8SJQSE1IrdIRbuPIY/zXnuSipiJYA75W3m1WJO/siteMetadata.js\").href,socialImage:new URL(\"assets/3lVN5lOr0FTy9ss4ERPavB1fEc.jpg\",\"https://framerusercontent.com/modules/Z3f8SJQSE1IrdIRbuPIY/zXnuSipiJYA75W3m1WJO/siteMetadata.js\").href,title:\"Figma Warp Tools\"});export default metadata;export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import siteMetadata from\"https://framerusercontent.com/modules/Z3f8SJQSE1IrdIRbuPIY/zXnuSipiJYA75W3m1WJO/siteMetadata.js\";const metadata=params=>({title:siteMetadata(params).title||\"Activate\",viewport:\"width=device-width\",breakpoints:[{hash:\"179qmse\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"xums0u\",mediaQuery:\"(min-width: 810px) and (max-width: 1199px)\"},{hash:\"1g64yv9\",mediaQuery:\"(max-width: 809px)\"}],elements:{}});export default metadata;export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"8PAA8E,SAAgB,EAAY,EAAO,CACjH,IAAM,EAAU,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,CAAC,CAClD,EAAa,GAAU,CAC1B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAU,MAAM,EAAE,EAAU,MAAM,OAAO,OAAO,CAAC,GAAG,EAAU,MAAM,GAAG,EAAS,CAAC,EAChI,EAAW,OAAO,GAAS,SAAS,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,EAC7D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