{"version":3,"file":"shared-lib.DLu7EdPJ.mjs","names":["useStore","useState","metadata","siteMetadata","metadataVersion","__FramerMetadata__","metadata","siteMetadata"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js","https:/framer.com/m/framer/utils.js@^0.9.0","https:/framerusercontent.com/modules/b9KKUUlJYipcCuY3I7N1/4oHUcVusMnlWq1O95mXj/Animations.js","https:/framerusercontent.com/modules/EZdLSd3ol4r6txz7T6nT/UTJoVXb2SEjMKrPgcKmX/NoHighlight.js","https:/framerusercontent.com/modules/z8dGJnemHJ0eZWu0BAFD/conaekXoBGnxEmunDrgU/DK56aOyrv.js","https:/framerusercontent.com/modules/rPYWw0E0zTKYrWrtaEhs/ZM6adBa1hPeBFV7PZCYp/siteMetadata.js","https:/framerusercontent.com/modules/8Ua7uh5p1S24lGCQBH7h/Z13CXbJiddU3HKZP2Swe/augiA20Il.js","https:/framerusercontent.com/modules/QaIqXQbgyGWbOdyXFGSo/6RXHdSsCREx8Q8Kgfl1C/yaLT_F03B.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","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","export const centerContent = {\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nexport const autoSizingText = {\n    width: \"max-content\",\n    wordBreak: \"break-word\",\n    overflowWrap: \"break-word\",\n    overflow: \"hidden\",\n    whiteSpace: \"pre-wrap\",\n    flexShrink: 0\n};\nexport const defaultContainerStyles = {\n    ...centerContent,\n    overflow: \"hidden\"\n};\nexport const containerStyles = defaultContainerStyles;\nexport const randomColor = ()=>\"#\" + Math.floor(Math.random() * 16777215).toString(16)\n;\n\nexport const __FramerMetadata__ = {\"exports\":{\"centerContent\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"autoSizingText\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultContainerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomColor\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./Utils.map","/*\n * Utils (framer/utils@0.9.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect}from\"react\";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{useScroll,useTransform}from\"framer-motion\";const useStore=createStore({background:\"#0099FF\"});export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{rotate:90},transition:{duration:2}});});}export function withHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:{scale:1.05}});});}export function withRandomColor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});});}export function LogoScroll(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const{scrollY}=useScroll();const scale=useTransform(scrollY,[0,100],[1,.4]);const x=useTransform(scrollY,value=>{const vw=window.innerWidth;const logoHalfWidth=24;const startX=vw/2;const targetX=25+logoHalfWidth-startX;const progress=Math.min(value/200,1);return progress*targetX;});const y=useTransform(scrollY,value=>{const startY=100;const targetY=-15-startY;const progress=Math.min(value/200,1);return progress*targetY;});return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style,scale,x,y}});});}export function LogoScrollInstant(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const vw=typeof window!==\"undefined\"?window.innerWidth:1200;const targetX=25+24-vw/2;const targetY=-16-80;return /*#__PURE__*/_jsx(Component,{ref:ref,...props,initial:{scale:1,x:0,y:0},animate:{scale:.4,x:targetX,y:targetY},transition:{duration:0}});});}export function HideQueryParams(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{const clean=()=>{const url=new URL(window.location.href);url.search=\"\";window.history.replaceState({},\"\",url.toString());};clean();window.addEventListener(\"click\",clean);return()=>window.removeEventListener(\"click\",clean);},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"LogoScroll\":{\"type\":\"reactHoc\",\"name\":\"LogoScroll\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HideQueryParams\":{\"type\":\"reactHoc\",\"name\":\"HideQueryParams\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LogoScrollInstant\":{\"type\":\"reactHoc\",\"name\":\"LogoScrollInstant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Animations.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";export function NoHighlight(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style,WebkitTapHighlightColor:\"transparent\",userSelect:\"none\"}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"NoHighlight\":{\"type\":\"reactHoc\",\"name\":\"NoHighlight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NoHighlight.map","// Generated by Framer (4a2adb5)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-fcnTT .framer-styles-preset-uhbxbp:not(.rich-text-wrapper), .framer-fcnTT .framer-styles-preset-uhbxbp.rich-text-wrapper a {  }\"];export const className=\"framer-fcnTT\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (4a2adb5)\nexport default function metadata(params,activeLocale){return{robots:\"max-image-preview:large\",title:\"RiRi\"};}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 (4a2adb5)\nimport siteMetadata from\"https://framerusercontent.com/modules/rPYWw0E0zTKYrWrtaEhs/ZM6adBa1hPeBFV7PZCYp/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"72rtr7\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"17ud5wj\",mediaQuery:\"(min-width: 810px) and (max-width: 1199.98px)\"},{hash:\"pxyb6d\",mediaQuery:\"(max-width: 809.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{I2Y1kGYmo:\"meny\",jnQf8B5Gw:\"omoss\",PtLTPUxcq:\"top\"},robots:\"max-image-preview:large\",serializationId:\"framer-fVGro\",title:siteMetadata(params,activeLocale).title||\"Home\",viewport:\"width=device-width\"};}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 (4a2adb5)\nimport siteMetadata from\"https://framerusercontent.com/modules/rPYWw0E0zTKYrWrtaEhs/ZM6adBa1hPeBFV7PZCYp/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"1rk34ja\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"13ifeez\",mediaQuery:\"(min-width: 810px) and (max-width: 1199.98px)\"},{hash:\"1r6d2tg\",mediaQuery:\"(max-width: 809.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{uGCqNqyTR:\"vinlista\",YiHVCXbAA:\"home\"},robots:\"max-image-preview:large\",serializationId:\"framer-ULTqf\",title:siteMetadata(params,activeLocale).title||\"Vinlista\",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\"}}}"],"mappings":"sQAA8E,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,EAAa,IAAI,IACjB,EAAc,GAAU,CAC3B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAW,EAAE,EAAW,OAAO,GAAW,SAAS,OAAO,OAAO,CAAC,GAAG,EAAW,GAAG,EAAS,CAAC,CAAC,EACjJ,EAAa,QAAQ,GAAQ,EAAO,EAAW,CAAC,EAChD,SAASA,GAAU,CACnB,GA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