{"version":3,"file":"ShareButton_2.ByDYo8eA.mjs","names":["IconContext"],"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":"8SAA2F,SAAS,GAAa,CAAC,EAAO,QAAQ,KAAK,CAAE,CAAC,SAAgB,GAAY,CAAC,OAAqB,EAAM,EAAO,IAAI,CAAC,GAAG,OAAO,QAAQ,EAAY,WAAW,CAAC,IAAI,MAAM,EAAE,MAAM,CAAC,OAAO,UAAU,QAAQ,OAAO,IAAI,OAAO,OAAO,MAAM,EAAE,SAAS,CAAe,EAAK,MAAM,CAAC,MAAM,6BAA6B,MAAM,KAAK,OAAO,KAAK,SAAuB,EAAK,OAAO,CAAC,EAAE,2DAA2D,UAAU,uCAAuC,KAAK,cAAc,eAAe,IAAI,OAAO,gBAAgB,iBAAiB,QAAQ,kBAAkB,QAAQ,mBAAmB,EAAE,CAAC,CAAC,CAAC,EAAgB,EAAK,IAAI,CAAC,MAAM,CAAC,UAAU,OAAO,OAAO,OAAO,WAAW,UAAU,SAAS,OAAO,WAAW,MAAM,MAAM,SAAS,EAAE,SAAS,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAE,qBAAlyB,IAAkC,KCGtF,SAAwB,EAAY,EAAM,CAC9C,GAAK,CAAC,cAAY,YAAU,iBAAe,kBAAgB,EACtD,CAAC,QAAM,OAAK,QAAM,OAAK,cAAY,cAAY,kBAAgB,aAAW,kBAAgB,UAAQ,EAClG,CAAC,SAAO,gBAAc,iBAAe,oBAAkB,mBAAiB,gBAAc,IAAO,EAAW,CAAC,eAAa,aAAW,eAAa,gBAAc,cAAY,iBAAe,IAAO,EAAY,EAAa,EAAc,GAAG,EAAc,KAAK,EAAe,KAAK,EAAkB,KAAK,EAAiB,IAAI,GAAG,EAAO,IAAU,EAAQ,EAAe,GAAG,EAAW,KAAK,EAA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