{"version":3,"file":"ShareButton_2.DY08W55o.mjs","names":["_jsxs","_jsx","_jsx","_jsxs","IconContext","__esmMin","window","init_ssg_sandbox_shims","c","init_jsx_runtime","p","init_framer_B3LLf74D","addPropertyControls","ControlType","motion","init_framer_motion_1EwlFBEG","init_esm","init_index_esm","FaLinkedinIn","e","FaTwitter","FaFacebook","handleClick","BackButton","init_Backbutton2","ShareButton","props","socialMedia","shareText","iconProperties","backgroundType","title","tint","style","font","borderWidth","borderColor","shareCurrentUrl","urlToShare","backgroundImage","linear","radius","topLeftRadius","topRightRadius","bottomRightRadius","bottomLeftRadius","isMixedRadius","stylePadding","topPadding","rightPadding","bottomPadding","leftPadding","isMixedPadding","borderRadius","padding","background","degree","toColor","fromColor","opacityTo","opacityFrom","shareOnTwitter","shareUrl","shareLink","shareOnFacebook","shareOnLinkedIn","Icon","containerStyle","onHoverStyle","init_ShareButton_2"],"sources":["https:/framerusercontent.com/modules/bOvU5Rc8sR6KyWslJh9g/W7mpvQHvyQh0nhFTj7sy/Backbutton2.js","https:/framerusercontent.com/modules/fSegDHBzrzTeogy95lL5/5MoS0GQNoAwrijN0n3VU/ShareButton_2.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";function handleClick(){window.history.back();}export function BackButton(){return /*#__PURE__*/ _jsxs(motion.div,{id:\"back\",onClick:handleClick,whileHover:{gap:\"14px\"},style:{cursor:\"pointer\",display:\"flex\",gap:\"10px\",height:\"24px\"},children:[/*#__PURE__*/ _jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"19\",height:\"17\",children:/*#__PURE__*/ _jsx(\"path\",{d:\"M 0 7.006 L 14.824 7.006 M 9.313 0 L 16.154 7 L 9.313 14\",transform:\"translate(1 1.5) rotate(180 8.077 7)\",fill:\"transparent\",\"stroke-width\":\"2\",stroke:\"rgb(5,87,250)\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\",\"stroke-dasharray\":\"\"})}),/*#__PURE__*/ _jsx(\"p\",{style:{marginTop:\"-2px\",height:\"24px\",fontFamily:\"Poppins\",fontSize:\"16px\",fontWeight:\"600\",color:\"#0557FA\"},children:\"Vorige\"})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"BackButton\":{\"type\":\"reactComponent\",\"name\":\"BackButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Backbutton2.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";import{FaTwitter,FaLinkedinIn,FaFacebook}from\"react-icons/fa\";import{IconContext}from\"react-icons\";const onHoverStyle={scale:1,backgroundColor:\"rgba(48,48,48,1)\",cursor:\"pointer\"};const spring={type:\"spring\",stiffness:500,damping:30};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */ export default function ShareButton(props){// Config Properties\nconst{socialMedia,shareText,iconProperties,backgroundType}=props;// Single Properpties\nconst{title,tint,style,font,borderWidth,borderColor,shareCurrentUrl,urlToShare,backgroundImage,linear}=props;// Multi properties\nconst{radius,topLeftRadius,topRightRadius,bottomRightRadius,bottomLeftRadius,isMixedRadius=false}=props;const{stylePadding,topPadding,rightPadding,bottomPadding,leftPadding,isMixedPadding=false}=props;const borderRadius=isMixedRadius?`${topLeftRadius}px ${topRightRadius}px ${bottomRightRadius}px ${bottomLeftRadius}px`:`${radius}px`;const padding=isMixedPadding?`${topPadding}px ${rightPadding}px ${bottomPadding}px ${leftPadding}px`:`${stylePadding}px`;let background;if(backgroundType==\"Solid\"){background=tint;}else if(backgroundType==\"Image\"){background=`url(${backgroundImage})`;}else if(backgroundType==\"Linear\"){const{degree,toColor,fromColor,opacityTo,opacityFrom}=linear;const gradient=`${degree}deg, ${toColor} ${opacityTo}%, ${fromColor} ${opacityFrom}%`;background=`linear-gradient(${gradient})`;}const shareOnTwitter=urlToShare=>{const shareUrl=urlToShare?urlToShare:window.location.href;const shareLink=encodeURI(shareText+shareUrl);const shareWindow=window.open(`https://twitter.com/intent/tweet?text=${shareLink}`,\"_blank\",\"height=700,width=700,left=0,top=0,resizable=yes,scrollbars=yes,status=yes\");shareWindow.blur();window.focus();};const shareOnFacebook=urlToShare=>{const shareUrl=urlToShare?urlToShare:window.location.href;window.open(`https://www.facebook.com/sharer/sharer.php?u=${shareUrl}`,\"_blank\",\"height=800,width=800,left=100,top=100,resizable=yes,scrollbars=yes,status=yes\");};const shareOnLinkedIn=urlToShare=>{const shareUrl=urlToShare?urlToShare:window.location.href;window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${shareUrl}`,\"_blank\",\"height=400,width=400,left=100,top=100,resizable=yes,scrollbars=yes,status=yes\");};let Icon;if(socialMedia==\"Twitter\"){Icon=/*#__PURE__*/ _jsx(FaTwitter,{sx:{color:iconProperties.color,fontSize:iconProperties.size}});}else if(socialMedia==\"LinkedIn\"){Icon=/*#__PURE__*/ _jsx(FaLinkedinIn,{sx:{color:iconProperties.color,fontSize:iconProperties.size}});}else if(socialMedia==\"Facebook\"){Icon=/*#__PURE__*/ _jsx(FaFacebook,{sx:{color:iconProperties.color,fontSize:iconProperties.size}});}return /*#__PURE__*/ _jsx(motion.div,{style:{...style,...containerStyle},onClick:()=>{if(!shareCurrentUrl){if(socialMedia==\"Twitter\"){shareOnTwitter(urlToShare);}else if(socialMedia==\"LinkedIn\"){shareOnLinkedIn(urlToShare);}else if(socialMedia==\"Facebook\"){shareOnFacebook(urlToShare);}}else{if(socialMedia==\"Twitter\"){shareOnTwitter(null);}else if(socialMedia==\"LinkedIn\"){shareOnLinkedIn(null);}else if(socialMedia==\"Facebook\"){shareOnFacebook(null);}}},children:/*#__PURE__*/ _jsxs(motion.div,{style:{borderRadius,padding,background,fontSize:font.size,fontWeight:font.weight,color:font.color,fontFamily:`'${font.fontFace}'`,overflow:\"visible\",borderWidth:borderWidth,borderStyle:\"solid\",borderColor:borderColor,display:\"flex\",alignItems:\"center\",gap:iconProperties.gap},whileHover:onHoverStyle,transition:{type:\"spring\",stiffness:500,damping:30},children:[/*#__PURE__*/ _jsx(IconContext.Provider,{value:{color:iconProperties.color,size:iconProperties.size},children:Icon}),title]})});};addPropertyControls(ShareButton,{shareCurrentUrl:{type:ControlType.Boolean,defaultValue:true},urlToShare:{type:ControlType.String,defaultValue:\"https://framer.com\",hidden(props){return props.shareCurrentUrl!=false;}},socialMedia:{type:ControlType.Enum,options:[\"Twitter\",\"Facebook\",\"LinkedIn\"]},shareText:{type:ControlType.String,defaultValue:\"Share on Twitter: \",description:\"Additional text is only available for Twitter sharing.\",hidden(props){return props.socialMedia!=\"Twitter\";}},iconProperties:{type:ControlType.Object,controls:{color:{type:ControlType.Color,defaultValue:\"#fff\"},size:{type:ControlType.Number,defaultValue:20},gap:{type:ControlType.Number,defaultValue:10}}},title:{title:\"Label\",type:ControlType.String,defaultValue:\"Share on Twitter\"},backgroundType:{type:ControlType.Enum,options:[\"Solid\",\"Linear\",\"Image\"],defaultValue:\"Solid\"},backgroundImage:{type:ControlType.Image,hidden(props){return props.backgroundType!=\"Image\";}},linear:{type:ControlType.Object,controls:{toColor:{type:ControlType.Color,defaultValue:\"#242424\"},opacityTo:{type:ControlType.Number,defaultValue:0},fromColor:{type:ControlType.Color,defaultValue:\"#323232\"},opacityFrom:{type:ControlType.Number,defaultValue:100},degree:{type:ControlType.Number,defaultValue:90,max:360}},hidden(props){return props.backgroundType!=\"Linear\";}},tint:{title:\"Background Color\",type:ControlType.Color,defaultValue:\"#242424\",hidden(props){return props.backgroundType!=\"Solid\";}},font:{type:ControlType.Object,controls:{fontFace:{type:ControlType.String,defaultValue:\"Inter\"},size:{type:ControlType.Number,defaultValue:18},color:{type:ControlType.Color,defaultValue:\"#fff\"},weight:{type:ControlType.Enum,defaultValue:\"bold\",options:[\"normal\",\"bold\",\"bolder\",\"lighter\"]}}},radius:{type:ControlType.FusedNumber,title:\"Radius\",defaultValue:20,toggleKey:\"isMixedRadius\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"topLeftRadius\",\"topRightRadius\",\"bottomRightRadius\",\"bottomLeftRadius\",],valueLabels:[\"TL\",\"TR\",\"BR\",\"BL\"],min:0},borderWidth:{type:ControlType.Number,defaultValue:0},borderColor:{type:ControlType.Color,defaultValue:\"#fff\"},stylePadding:{type:ControlType.FusedNumber,title:\"Padding\",defaultValue:20,toggleKey:\"isMixedPadding\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"topPadding\",\"rightPadding\",\"bottomPadding\",\"leftPadding\",],valueLabels:[\"T\",\"R\",\"B\",\"L\"],min:0}});const containerStyle={display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"visible\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ShareButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ShareButton_2.map"],"mappings":"A,kTAA2F,SAASsB,GAAa,CAAChB,EAAO,QAAQ,KAAK,CAAE,CAAC,SAAgBiB,GAAY,CAAC,MAAqBvB,gBAAMc,EAAO,IAAI,CAAC,GAAG,OAAO,QAAQQ,EAAY,WAAW,CAAC,IAAI,MAAM,EAAE,MAAM,CAAC,OAAO,UAAU,QAAQ,OAAO,IAAI,OAAO,OAAO,MAAM,EAAE,SAAS,CAAerB,gBAAK,MAAM,CAAC,MAAM,6BAA6B,MAAM,KAAK,OAAO,KAAK,SAAuBA,gBAAK,OAAO,CAAC,EAAE,2DAA2D,UAAU,uCAAuC,KAAK,cAAc,eAAe,IAAI,OAAO,gBAAgB,iBAAiB,QAAQ,kBAAkB,QAAQ,mBAAmB,EAAE,CAAC,CAAC,CAAC,EAAgBA,gBAAK,IAAI,CAAC,MAAM,CAAC,UAAU,OA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