{"version":3,"file":"shared-lib.DMenqe50.mjs","names":["ThemeSwitcher"],"sources":["https:/framerusercontent.com/modules/im31s7apPU6VuPl0o9xd/2Trv0Xc8Ew6RMR7aO6Xi/ThemeSwitcher.js","https:/framerusercontent.com/modules/so8Bj7W9IaoZzLJiM0qv/HOjHOhIFAWMrta5yPb9B/e0pYjz1Vy.js","https:/framerusercontent.com/modules/7LdQpjiIAALxDd6upKGH/hrsa3lwZL0H7eoZPMIVH/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{ControlType,addPropertyControls}from\"framer\";export const ThemeSwitcher=function ThemeSwitcher(props){const{iconColor}=props;const applyAppearance=function(){const systemPref=localStorage.getItem(\"systemPref\");const userPref=localStorage.getItem(\"userPref\");const cssStyles=document.getElementsByTagName(\"style\")[0];let updated;if(systemPref===\"dark\"&&userPref===\"dark\"||systemPref===\"light\"&&userPref===\"light\"){updated=cssStyles.innerHTML.replace(/prefers-color-scheme: \\w+/,\"prefers-color-scheme: dark\");}else if(systemPref===\"dark\"&&userPref===\"light\"||systemPref===\"light\"&&userPref===\"dark\"){updated=cssStyles.innerHTML.replace(/prefers-color-scheme: \\w+/,\"prefers-color-scheme: light\");}if(updated){cssStyles.innerHTML=updated;}};const toggleAppearance=function(){localStorage.setItem(\"userPref\",localStorage.getItem(\"userPref\")===\"dark\"?\"light\":\"dark\");applyAppearance();};const ThemeSwitcherContent=()=>{React.useEffect(()=>{if(localStorage.getItem(\"userPref\")===null){localStorage.setItem(\"userPref\",window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\");}if(localStorage.getItem(\"systemPref\")===null){localStorage.setItem(\"systemPref\",window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\");}const updateSystemPref=event=>{localStorage.setItem(\"systemPref\",event.matches?\"dark\":\"light\");applyAppearance();};const mediaQuery=window.matchMedia(\"(prefers-color-scheme: dark)\");mediaQuery.addEventListener(\"change\",updateSystemPref);updateSystemPref(mediaQuery);return()=>{mediaQuery.removeEventListener(\"change\",updateSystemPref);};},[]);applyAppearance();return /*#__PURE__*/ _jsx(\"button\",{onClick:toggleAppearance,style:{textDecoration:\"none\",border:\"none\",background:\"transparent\",cursor:\"pointer\",padding:0,margin:0,width:24,height:24,display:\"inline-block\",opacity:1},onMouseEnter:e=>e.currentTarget.style.opacity=\"0.4\",onMouseLeave:e=>e.currentTarget.style.opacity=\"1\",children:/*#__PURE__*/ _jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 13 13\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/ _jsx(\"path\",{d:\"M6.03977 8.41943C5.64295 8.41943 5.28104 8.3226 4.95406 8.12895C4.63025 7.9353 4.37152 7.67498 4.17787 7.348C3.98739 7.02101 3.89057 6.66069 3.88739 6.26704C3.88422 5.87022 3.97945 5.5099 4.17311 5.18609C4.36676 4.85911 4.62707 4.59879 4.95406 4.40514C5.28104 4.21149 5.64295 4.11466 6.03977 4.11466C6.43342 4.11466 6.79374 4.21149 7.12072 4.40514C7.44771 4.59879 7.70803 4.85911 7.90168 5.18609C8.0985 5.5099 8.19533 5.87022 8.19215 6.26704C8.18898 6.66069 8.08898 7.02101 7.89215 7.348C7.6985 7.67498 7.43977 7.9353 7.11596 8.12895C6.79215 8.3226 6.43342 8.41943 6.03977 8.41943ZM6.03977 7.14323C6.1985 7.14323 6.34453 7.10355 6.47787 7.02419C6.61438 6.94482 6.72231 6.84006 6.80168 6.7099C6.88104 6.57657 6.91914 6.42895 6.91596 6.26704C6.91279 6.10514 6.87152 5.95752 6.79215 5.82419C6.71279 5.69085 6.60644 5.58609 6.4731 5.5099C6.34295 5.43054 6.1985 5.39085 6.03977 5.39085C5.87469 5.39085 5.72707 5.43054 5.59692 5.5099C5.46676 5.58609 5.36199 5.69085 5.28263 5.82419C5.20644 5.95752 5.16676 6.10514 5.16358 6.26704C5.16041 6.42895 5.19692 6.57657 5.27311 6.7099C5.35247 6.84006 5.45882 6.94482 5.59215 7.02419C5.72549 7.10355 5.87469 7.14323 6.03977 7.14323ZM5.4493 3.16228V0.267044H6.63025V3.16228H5.4493ZM8.64929 4.49562L7.8112 3.65752L9.86834 1.60038L10.7064 2.43847L8.64929 4.49562ZM9.14453 6.85752V5.67657H12.0398V6.85752H9.14453ZM9.86834 10.9337L7.8112 8.87657L8.64929 8.03847L10.7064 10.0956L9.86834 10.9337ZM5.4493 12.267V9.37181H6.63025V12.267H5.4493ZM2.2112 10.9337L1.37311 10.0956L3.43025 8.03847L4.26834 8.87657L2.2112 10.9337ZM0.039772 6.85752V5.67657H2.93501V6.85752H0.039772ZM3.43025 4.49562L1.37311 2.43847L2.2112 1.60038L4.26834 3.65752L3.43025 4.49562Z\",fill:iconColor})})});};const OptimizationFriendly=({loading,loaded})=>{const[isLoading,setLoading]=React.useState(true);React.useEffect(()=>setLoading(false),[]);return isLoading?loading:loaded;};return /*#__PURE__*/ _jsx(OptimizationFriendly,{loading:null,loaded:/*#__PURE__*/ _jsx(ThemeSwitcherContent,{})});};ThemeSwitcher.defaultProps={iconColor:\"gold\"};addPropertyControls(ThemeSwitcher,{iconColor:{type:ControlType.Color,title:\"Icon color\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ThemeSwitcher\":{\"type\":\"reactComponent\",\"name\":\"ThemeSwitcher\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ThemeSwitcher.map","import{fontStore as e}from\"framer\";e.loadWebFontsFromSelectors([\"Inter-Medium\"]);export const fonts=[];export const css=['.framer-Plfes .framer-styles-preset-1em24nn:not(.rich-text-wrapper), .framer-Plfes .framer-styles-preset-1em24nn.rich-text-wrapper p { --framer-font-family: \"Inter-Medium\", \"Inter\", sans-serif; --framer-font-size: 18px; --framer-font-style: normal; --framer-font-weight: 500; --framer-letter-spacing: -0.02em; --framer-line-height: 1.3em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-485fa98d-eb94-46eb-a183-3a1ab798c476, #090909); --framer-text-decoration: none; --framer-text-transform: none; }','@media (max-width: 1199px) and (min-width: 810px) { .framer-Plfes .framer-styles-preset-1em24nn:not(.rich-text-wrapper), .framer-Plfes .framer-styles-preset-1em24nn.rich-text-wrapper p { --framer-font-family: \"Inter-Medium\", \"Inter\", sans-serif; --framer-font-size: 18px; --framer-font-style: normal; --framer-font-weight: 500; --framer-letter-spacing: -0.02em; --framer-line-height: 1.3em; --framer-paragraph-spacing: 18px; --framer-text-alignment: start; --framer-text-color: var(--token-485fa98d-eb94-46eb-a183-3a1ab798c476, #090909); --framer-text-decoration: none; --framer-text-transform: none; } }','@media (max-width: 809px) and (min-width: 0px) { .framer-Plfes .framer-styles-preset-1em24nn:not(.rich-text-wrapper), .framer-Plfes .framer-styles-preset-1em24nn.rich-text-wrapper p { --framer-font-family: \"Inter-Medium\", \"Inter\", sans-serif; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-weight: 500; --framer-letter-spacing: -0.02em; --framer-line-height: 1.3em; --framer-paragraph-spacing: 16px; --framer-text-alignment: start; --framer-text-color: var(--token-485fa98d-eb94-46eb-a183-3a1ab798c476, #090909); --framer-text-decoration: none; --framer-text-transform: none; } }'];export const className=\"framer-Plfes\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (0847096)\nexport default function metadata(params,activeLocale){return{description:\"Bryan Vald\\xe9s is a multi-media artist, curator, and editor from Richmond, Virginia. \",favicon:\"https://framerusercontent.com/assets/fdw3s3dPYPsVBfCZ2GbtAtWia9I.jpg\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/VzWGJlpiIwxPALkvzJHcUtvUgw.jpg\",title:\"Bryan Vald\\xe9s\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"iWAAwI,EAAc,SAAuB,EAAM,CAAC,GAAK,CAAC,YAAU,CAAC,EAAY,EAAgB,UAAU,CAAC,IAAM,EAAW,aAAa,QAAQ,cAAoB,EAAS,aAAa,QAAQ,YAAkB,EAAU,SAAS,qBAAqB,SAAS,GAAO,EAAW,IAAa,QAAQ,IAAW,QAAQ,IAAa,SAAS,IAAW,QAAS,EAAQ,EAAU,UAAU,QAAQ,4BAA4B,+BAAuC,IAAa,QAAQ,IAAW,SAAS,IAAa,SAAS,IAAW,UAAQ,EAAQ,EAAU,UAAU,QAAQ,4BAA4B,gCAAmC,IAAS,EAAU,UAAU,EAAU,EAAO,EAAiB,UAAU,CAAC,aAAa,QAAQ,WAAW,aAAa,QAAQ,cAAc,OAAO,QAAQ,QAAQ,GAAmB,EAAO,OAA0B,MAAoB,CAAI,aAAa,QAAQ,cAAc,MAAM,aAAa,QAAQ,WAAW,EAAO,WAAW,gCAAgC,QAAQ,OAAO,SAAa,aAAa,QAAQ,gBAAgB,MAAM,aAAa,QAAQ,aAAa,EAAO,WAAW,gCAAgC,QAAQ,OAAO,SAAU,IAAM,EAAiB,GAAO,CAAC,aAAa,QAAQ,aAAa,EAAM,QAAQ,OAAO,SAAS,GAAmB,EAAO,EAAW,EAAO,WAAW,gCAAoH,OAApF,EAAW,iBAAiB,SAAS,GAAkB,EAAiB,OAAsB,CAAC,EAAW,oBAAoB,SAAS,EAAmB,CAAE,EAAC,EAAE,EAAE,IAAu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