{"version":3,"file":"ShareWrapper.DXlWSs8P.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","SVG"],"sources":["https:/framerusercontent.com/modules/1QZ59H8RuJbdGRZ6F2tW/eaJF2h3PCfnOjisBUtfA/Uuaki9Be9.js","https:/framerusercontent.com/modules/eEppafK5bo67WMEwEBRi/eeKuVIObzcTlSB3VZRWg/ShareWrapper.js"],"sourcesContent":["// Generated by Framer (4da6613)\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-cC1Xb\";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 humanReadableVariantMap={Dark:\"qKCTgbWOR\",Light:\"Oh0xYFPWu\"};const Variants=motion.create(React.Fragment);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\",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))\" 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))\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"\"></path></g></svg>'}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(SVG,{className:\"framer-1732axe\",layoutDependency:layoutDependency,layoutId:\"VZySge8OW\",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))\" stroke-miterlimit=\"10\" stroke-dasharray=\"\"></path></svg>'}},baseVariant,gestureVariant)}),/*#__PURE__*/_jsx(SVG,{className:\"framer-1resdd4\",layoutDependency:layoutDependency,layoutId:\"fkmATdXcr\",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))\" 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-cC1Xb.framer-1axad6n, .framer-cC1Xb .framer-1axad6n { display: block; }\",\".framer-cC1Xb.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-cC1Xb .framer-1gvojb3 { height: 35px; position: relative; width: 35px; }\",\".framer-cC1Xb .framer-1732axe { height: 35px; left: 0px; position: absolute; top: 0px; width: 35px; }\",\".framer-cC1Xb .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-cC1Xb\");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\":{\"framerIntrinsicHeight\":\"35\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicWidth\":\"35\",\"framerAutoSizeImages\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"qKCTgbWOR\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerColorSyntax\":\"true\",\"framerContractVersion\":\"1\",\"framerComponentViewportWidth\":\"true\"}},\"__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":"8VACsd,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,CAAC,EAAuF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,EAAQ,CAAC,EAAS,CAAc,qCAAplB,IAA+H,IAAkE,IAA4B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