{"version":3,"file":"ShareWrapper.RHIn_ifd.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId"],"sources":["https:/framerusercontent.com/modules/1QZ59H8RuJbdGRZ6F2tW/LL3PhsJIIpRSybfGqONz/Uuaki9Be9.js","https:/framerusercontent.com/modules/eEppafK5bo67WMEwEBRi/eeKuVIObzcTlSB3VZRWg/ShareWrapper.js"],"sourcesContent":["// Generated by Framer (7b363e7)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,SVG,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const cycleOrder=[\"Oh0xYFPWu\",\"qKCTgbWOR\"];const serializationHash=\"framer-27clV\";const variantClassNames={Oh0xYFPWu:\"framer-v-1gi3e1j\",qKCTgbWOR:\"framer-v-1vpxruz\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={Dark:\"qKCTgbWOR\",Light:\"Oh0xYFPWu\"};const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"Oh0xYFPWu\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"Oh0xYFPWu\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1gi3e1j\",className,classNames),\"data-framer-name\":\"Light\",layoutDependency:layoutDependency,layoutId:\"Oh0xYFPWu\",ref:refBinding,style:{...style},...addPropertyOverrides({qKCTgbWOR:{\"data-framer-name\":\"Dark\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsxs(SVG,{className:\"framer-1gvojb3\",layoutDependency:layoutDependency,layoutId:\"bqRleTXXM\",opacity:1,requiresOverflowVisible:true,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 35.083 35.083\" overflow=\"visible\"><g><path d=\"M 0 17.541 C 0 7.853 7.853 0 17.541 0 C 27.229 0 35.083 7.853 35.083 17.541 C 35.083 27.229 27.229 35.083 17.541 35.083 C 7.853 35.083 0 27.229 0 17.541 Z\" fill=\"transparent\" stroke-width=\"0.909\" stroke=\"rgb(255,255,255)\" stroke-miterlimit=\"10\" stroke-dasharray=\"\"></path><path d=\"M 25.389 17.967 C 25.608 17.779 25.718 17.685 25.758 17.574 C 25.793 17.476 25.793 17.368 25.758 17.27 C 25.718 17.158 25.608 17.064 25.39 16.876 L 17.788 10.361 C 17.411 10.038 17.223 9.876 17.062 9.872 C 16.923 9.868 16.791 9.929 16.703 10.037 C 16.603 10.161 16.603 10.409 16.603 10.906 L 16.603 14.76 C 12.453 15.486 9.425 19.089 9.423 23.301 L 9.423 23.85 C 11.212 21.695 13.807 20.367 16.603 20.177 L 16.603 23.937 C 16.603 24.435 16.603 24.682 16.703 24.807 C 16.791 24.915 16.923 24.976 17.062 24.972 C 17.222 24.968 17.41 24.806 17.788 24.483 L 25.389 17.968 Z\" fill=\"transparent\" stroke-width=\"2\" stroke=\"rgb(255,255,255)\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"\"></path></g></svg>',withExternalLayout:true,...addPropertyOverrides({qKCTgbWOR:{svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 35.083 35.083\" overflow=\"visible\"><g><path d=\"M 0 17.541 C 0 7.853 7.853 0 17.541 0 C 27.229 0 35.083 7.853 35.083 17.541 C 35.083 27.229 27.229 35.083 17.541 35.083 C 7.853 35.083 0 27.229 0 17.541 Z\" fill=\"transparent\" stroke-width=\"0.909\" stroke=\"var(--token-c2019add-bb47-4fa7-8d5b-893dc61e6e4b, rgb(66, 81, 153)) /* {&quot;name&quot;:&quot;subtitle&quot;} */\" stroke-miterlimit=\"10\" stroke-dasharray=\"\"></path><path d=\"M 25.389 17.967 C 25.608 17.779 25.718 17.685 25.758 17.574 C 25.793 17.476 25.793 17.368 25.758 17.27 C 25.718 17.158 25.608 17.064 25.39 16.876 L 17.788 10.361 C 17.411 10.038 17.223 9.876 17.062 9.872 C 16.923 9.868 16.791 9.929 16.703 10.037 C 16.603 10.161 16.603 10.409 16.603 10.906 L 16.603 14.76 C 12.453 15.486 9.425 19.089 9.423 23.301 L 9.423 23.85 C 11.212 21.695 13.807 20.367 16.603 20.177 L 16.603 23.937 C 16.603 24.435 16.603 24.682 16.703 24.807 C 16.791 24.915 16.923 24.976 17.062 24.972 C 17.222 24.968 17.41 24.806 17.788 24.483 L 25.389 17.968 Z\" fill=\"transparent\" stroke-width=\"2\" stroke=\"var(--token-c2019add-bb47-4fa7-8d5b-893dc61e6e4b, rgb(66, 81, 153)) /* {&quot;name&quot;:&quot;subtitle&quot;} */\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"\"></path></g></svg>'}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(SVG,{className:\"framer-1732axe\",layoutDependency:layoutDependency,layoutId:\"VZySge8OW\",opacity:1,requiresOverflowVisible:true,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 35.083 35.083\" overflow=\"visible\"><path d=\"M 0 17.541 C 0 7.853 7.853 0 17.541 0 C 27.229 0 35.083 7.853 35.083 17.541 C 35.083 27.229 27.229 35.083 17.541 35.083 C 7.853 35.083 0 27.229 0 17.541 Z\" fill=\"transparent\" stroke-width=\"0.909\" stroke=\"rgb(255,255,255)\" stroke-miterlimit=\"10\" stroke-dasharray=\"\"></path></svg>',withExternalLayout:true,...addPropertyOverrides({qKCTgbWOR:{svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 35.083 35.083\" overflow=\"visible\"><path d=\"M 0 17.541 C 0 7.853 7.853 0 17.541 0 C 27.229 0 35.083 7.853 35.083 17.541 C 35.083 27.229 27.229 35.083 17.541 35.083 C 7.853 35.083 0 27.229 0 17.541 Z\" fill=\"transparent\" stroke-width=\"0.909\" stroke=\"var(--token-c2019add-bb47-4fa7-8d5b-893dc61e6e4b, rgb(66, 81, 153)) /* {&quot;name&quot;:&quot;subtitle&quot;} */\" stroke-miterlimit=\"10\" stroke-dasharray=\"\"></path></svg>'}},baseVariant,gestureVariant)}),/*#__PURE__*/_jsx(SVG,{className:\"framer-1resdd4\",layoutDependency:layoutDependency,layoutId:\"fkmATdXcr\",opacity:1,requiresOverflowVisible:true,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 16.362 15.101\" overflow=\"visible\"><path d=\"M 15.966 8.095 C 16.185 7.907 16.295 7.813 16.335 7.702 C 16.37 7.604 16.37 7.497 16.335 7.399 C 16.295 7.286 16.185 7.192 15.967 7.005 L 8.365 0.489 C 7.988 0.166 7.8 0.005 7.639 0 C 7.5 -0.003 7.368 0.058 7.28 0.165 C 7.179 0.289 7.179 0.538 7.179 1.034 L 7.179 4.888 C 3.03 5.615 0.002 9.217 0 13.429 L 0 13.979 C 1.789 11.823 4.384 10.495 7.179 10.305 L 7.179 14.066 C 7.179 14.563 7.179 14.811 7.28 14.935 C 7.368 15.043 7.5 15.104 7.639 15.1 C 7.799 15.096 7.987 14.934 8.365 14.611 L 15.966 8.096 Z\" fill=\"transparent\" stroke-width=\"2\" stroke=\"rgb(255,255,255)\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"\"></path></svg>',withExternalLayout:true,...addPropertyOverrides({qKCTgbWOR:{svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 16.362 15.101\" overflow=\"visible\"><path d=\"M 15.966 8.095 C 16.185 7.907 16.295 7.813 16.335 7.702 C 16.37 7.604 16.37 7.497 16.335 7.399 C 16.295 7.286 16.185 7.192 15.967 7.005 L 8.365 0.489 C 7.988 0.166 7.8 0.005 7.639 0 C 7.5 -0.003 7.368 0.058 7.28 0.165 C 7.179 0.289 7.179 0.538 7.179 1.034 L 7.179 4.888 C 3.03 5.615 0.002 9.217 0 13.429 L 0 13.979 C 1.789 11.823 4.384 10.495 7.179 10.305 L 7.179 14.066 C 7.179 14.563 7.179 14.811 7.28 14.935 C 7.368 15.043 7.5 15.104 7.639 15.1 C 7.799 15.096 7.987 14.934 8.365 14.611 L 15.966 8.096 Z\" fill=\"transparent\" stroke-width=\"2\" stroke=\"var(--token-c2019add-bb47-4fa7-8d5b-893dc61e6e4b, rgb(66, 81, 153)) /* {&quot;name&quot;:&quot;subtitle&quot;} */\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"\"></path></svg>'}},baseVariant,gestureVariant)})]})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-27clV.framer-1axad6n, .framer-27clV .framer-1axad6n { display: block; }\",\".framer-27clV.framer-1gi3e1j { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 96px; height: min-content; justify-content: center; overflow: visible; padding: 0px; position: relative; width: min-content; }\",\".framer-27clV .framer-1gvojb3 { height: 35px; position: relative; width: 35px; }\",\".framer-27clV .framer-1732axe { height: 35px; left: 0px; position: absolute; top: 0px; width: 35px; }\",\".framer-27clV .framer-1resdd4 { height: 15px; left: 10px; position: absolute; top: 10px; width: 17px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 35\n * @framerIntrinsicWidth 35\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"qKCTgbWOR\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerUuaki9Be9=withCSS(Component,css,\"framer-27clV\");export default FramerUuaki9Be9;FramerUuaki9Be9.displayName=\"Share Button\";FramerUuaki9Be9.defaultProps={height:35,width:35};addPropertyControls(FramerUuaki9Be9,{variant:{options:[\"Oh0xYFPWu\",\"qKCTgbWOR\"],optionTitles:[\"Light\",\"Dark\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramerUuaki9Be9,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerUuaki9Be9\",\"slots\":[],\"annotations\":{\"framerImmutableVariables\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"qKCTgbWOR\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerAutoSizeImages\":\"true\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"35\",\"framerColorSyntax\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicWidth\":\"35\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Uuaki9Be9.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";import{cloneElement}from\"react\";export default function ShareWrapper(props){const{title,description,button,fromMeta}=props;const handleShare=()=>{if(!window)return;const shareTitle=fromMeta?document.title:title;const shareText=fromMeta?document.querySelector(`meta[name=\"description\"]`)?.content||\"\":description;console.log(shareText,shareTitle);window.navigator.share({title:shareTitle,text:shareText,url:window.location.href});};return /*#__PURE__*/_jsx(motion.div,{onClick:handleShare,children:button&&button[0]?/*#__PURE__*/cloneElement(button[0]):\"Connect button\"});}addPropertyControls(ShareWrapper,{fromMeta:{type:ControlType.Boolean,defaultValue:true},title:{type:ControlType.String,defaultValue:\"\",hidden:({fromMeta})=>fromMeta},description:{type:ControlType.String,defaultValue:\"\",hidden:({fromMeta})=>fromMeta},button:{type:ControlType.Slot,maxCount:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ShareWrapper\",\"slots\":[\"button\"],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ShareWrapper.map"],"mappings":"skBACsd,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAA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