{"version":3,"file":"ShareButton_2.dzfltzEc.mjs","names":["IconContext","__esmMin","window","init_ssg_sandbox_shims","c","init_jsx_runtime","p","motion","init_framer_DJ_0WPVq","addPropertyControls","ControlType","init_esm","init_index_esm","FaLinkedinIn","e","FaTwitter","FaFacebook","handleClick","BackButton","init_Backbutton2","init_framer_motion_DhsWWWsN","ShareButton","props","borderRadius","isMixedRadius","topLeftRadius","topRightRadius","bottomRightRadius","bottomLeftRadius","radius","padding","isMixedPadding","topPadding","rightPadding","bottomPadding","leftPadding","stylePadding","background","backgroundType","tint","backgroundImage","linear","degree","toColor","opacityTo","fromColor","opacityFrom","shareOnTwitter","shareUrl","urlToShare","shareLink","shareText","shareOnFacebook","shareOnLinkedIn","Icon","socialMedia","iconProperties","style","containerStyle","shareCurrentUrl","font","onHoverStyle","title","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,6SAA2F,SAASiB,GAAa,CAACf,EAAO,QAAQ,KAAK,CAAE,CAAC,SAAgBgB,GAAY,CAAC,MAAqB,gBAAMX,EAAO,IAAI,CAAC,GAAG,OAAO,QAAQU,EAAY,WAAW,CAAC,IAAI,MAAM,EAAE,MAAM,CAAC,OAAO,UAAU,QAAQ,OAAO,IAAI,OAAO,OAAO,MAAM,EAAE,SAAS,CAAe,gBAAK,MAAM,CAAC,MAAM,6BAA6B,MAAM,KAAK,OAAO,KAAK,SAAuB,gBAAK,OAAO,CAAC,EAAE,2DAA2D,UAAU,uCAAuC,KAAK,cAAc,eAAe,IAAI,OAAO,gBAAgB,iBAAiB,QAAQ,kBAAkB,QAAQ,mBAAmB,EAAE,CAAC,CAAC,CAAC,EAAgB,gBAAK,IAAI,CAAC,MAAM,CAAC,UAAU,OAAO,OAAO,OAAO,WAAW,UAAU,SAAS,OAAO,WAAW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