{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/JzeXCKUHfJrd5nKdBXGo/tAMfJ0ueC7g3KWKK1BZS/EnhancedFramerBadge.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";const FramerIcon=({scale=1,customColor,isPreview=false,...props})=>{const baseWidth=13;const baseHeight=19;const scaledWidth=baseWidth*scale;const scaledHeight=baseHeight*scale;const animationProps=isPreview?{}:{initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,ease:\"easeOut\"}};return /*#__PURE__*/_jsxs(motion.svg,{xmlns:\"http://www.w3.org/2000/svg\",width:scaledWidth,height:scaledHeight,viewBox:`0 0 ${baseWidth} ${baseHeight}`,fill:\"none\",...props,...animationProps,children:[/*#__PURE__*/_jsx(motion.g,{fill:customColor!==null&&customColor!==void 0?customColor:\"#000\",clipPath:\"url(#a)\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M12.77.737h-12l6 6h6v-6ZM6.77 6.737h-6v6h12l-6-6ZM6.77 12.737h-6l6 6v-6Z\"})}),/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsx(\"clipPath\",{id:\"a\",children:/*#__PURE__*/_jsx(\"path\",{fill:\"#fff\",d:\"M0 0h13v19H0z\"})})})]});};const CustomBadge=props=>{const{width,height,bgColor,showCustomBadge,borderStyles,fontStyles,advancedStyle,isPreview,customLink}=props;if(!showCustomBadge){return null;}const containerAnimationProps=isPreview?{}:{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.5,ease:\"easeOut\"}};const customImageAnimationProps=isPreview?{}:{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},transition:{duration:.5,delay:.2}};const textAnimationProps=isPreview?{}:{initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.3}};const handleClick=()=>{window.open(customLink,\"_blank\");};return /*#__PURE__*/_jsxs(motion.div,{style:{...containerStyle,...borderStyles.borderStyle,borderRadius:borderStyles.borderRadius,width:width!==null&&width!==void 0?width:\"fit-content\",height:height!==null&&height!==void 0?height:\"fit-content\",backgroundColor:bgColor},...containerAnimationProps,onClick:handleClick,children:[advancedStyle.showDefaultLogo&&/*#__PURE__*/_jsx(FramerIcon,{customColor:advancedStyle.defaultLogoColor,scale:Math.max(advancedStyle.logoScale,1),isPreview:isPreview}),advancedStyle.showCustomImage&&/*#__PURE__*/_jsx(motion.img,{src:\"https://framerusercontent.com/images/3YKaDGa4rkmdFHgqoj5Q9NRLF0.gif\",alt:\"Custom Logo\",style:{width:`${Math.max(advancedStyle.logoScale,1)*12}px`},...customImageAnimationProps}),/*#__PURE__*/_jsx(motion.p,{style:{...framerTextStyle,...fontStyles.fontStyle,color:fontStyles.fontColor},...textAnimationProps,children:fontStyles.customText})]});};/**\n * @framerDisableUnlink\n * @framerDisableEdit\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function EnhancedFramerBadge(props){React.useLayoutEffect(()=>{if(!props.isActive)return;const element=document.getElementById(\"__framer-badge-container\");if(element){element.remove();}},[props.isActive]);return /*#__PURE__*/_jsx(AnimatePresence,{children:props.showCustomBadge&&/*#__PURE__*/_jsx(CustomBadge,{...props})});}addPropertyControls(EnhancedFramerBadge,{isActive:{type:ControlType.Boolean,title:\"Native Badge\",defaultValue:true,enabledTitle:\"Hide\",disabledTitle:\"Show\",description:\"Toggle to show or hide the original Framer badge.\"},showCustomBadge:{type:ControlType.Boolean,title:\"Custom Badge\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\",description:\"Toggle to show or hide the custom Framer badge.\"},bgColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#fff\",hidden:props=>!props.showCustomBadge},fontStyles:{type:ControlType.Object,title:\"Font Styles\",controls:{fontStyle:{type:ControlType.Font,controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultFontType:\"sans-serif\",defaultValue:{fontSize:12,lineHeight:\"16px\"}},fontColor:{type:ControlType.Color,title:\"Font Color\",defaultValue:\"#323232\"},customText:{type:ControlType.String,title:\"Custom text\",defaultValue:\"Made in Framer\"}},hidden:props=>!props.showCustomBadge},borderStyles:{type:ControlType.Object,title:\"Border Styles\",controls:{borderStyle:{type:ControlType.Border,defaultValue:{borderWidth:1,borderStyle:\"solid\",borderColor:\"#E7E8EB\"}},borderRadius:{type:ControlType.BorderRadius,defaultValue:\"12px\"}},hidden:props=>!props.showCustomBadge},advancedStyle:{type:ControlType.Object,title:\"Advanced Options\",controls:{showDefaultLogo:{type:ControlType.Boolean,title:\"Show Framer Logo\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\",description:\"Toggle to show or hide the Framer logo in the badge.\"},defaultLogoColor:{type:ControlType.Color,title:\"Logo Color\",defaultValue:\"#000\",hidden:props=>!props.advancedStyle.showDefaultLogo},showCustomImage:{type:ControlType.Boolean,title:\"Show Custom Image\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\",description:\"Toggle to show or hide a custom image in the badge.\"},logoScale:{type:ControlType.Number,title:\"Logo Scale\",defaultValue:1,min:.5,max:2,step:.1}},hidden:props=>!props.showCustomBadge},isPreview:{type:ControlType.Boolean,title:\"Preview Mode\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Toggle to enable or disable animations for preview. (Turn this off before publishing to enable Animations)\",hidden:props=>!props.showCustomBadge},customLink:{type:ControlType.Link,title:\"Custom Link\",defaultValue:\"https://framer.com\",description:\"Enter the URL to open when the badge is clicked.\"}});const containerStyle={display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:\"8px\",padding:\"8px 12px\",cursor:\"pointer\"};const framerTextStyle={fontFamily:'\"Inter\", sans-serif',fontSize:\"12px\",fontWeight:700,lineHeight:\"16px\",margin:0,padding:0};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EnhancedFramerBadge\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"* @framerDisableEdit\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EnhancedFramerBadge.map"],
  "mappings": "6HAA2L,IAAMA,EAAW,CAAC,CAAC,MAAAC,EAAM,EAAE,YAAAC,EAAY,UAAAC,EAAU,GAAM,GAAGC,CAAK,IAAI,CAAwC,IAAMC,EAAY,GAAUJ,EAAYK,EAAa,GAAWL,EAAYM,EAAeJ,EAAU,CAAC,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC,SAAS,GAAG,KAAK,SAAS,CAAC,EAAE,OAAoBK,EAAMC,EAAO,IAAI,CAAC,MAAM,6BAA6B,MAAMJ,EAAY,OAAOC,EAAa,QAAQ,YAAiC,KAAK,OAAO,GAAGF,EAAM,GAAGG,EAAe,SAAS,CAAcG,EAAKD,EAAO,EAAE,CAAC,KAAKP,GAAqD,OAAO,SAAS,UAAU,SAAsBQ,EAAK,OAAO,CAAC,EAAE,0EAA0E,CAAC,CAAC,CAAC,EAAeA,EAAK,OAAO,CAAC,SAAsBA,EAAK,WAAW,CAAC,GAAG,IAAI,SAAsBA,EAAK,OAAO,CAAC,KAAK,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,EAAQC,EAAYP,GAAO,CAAC,GAAK,CAAC,MAAAQ,EAAM,OAAAC,EAAO,QAAAC,EAAQ,gBAAAC,EAAgB,aAAAC,EAAa,WAAAC,EAAW,cAAAC,EAAc,UAAAf,EAAU,WAAAgB,CAAU,EAAEf,EAAM,GAAG,CAACW,EAAiB,OAAO,KAAM,IAAMK,EAAwBjB,EAAU,CAAC,EAAE,CAAC,QAAQ,CAAC,QAAQ,EA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AK4B,EAAY,OAAO,MAAM,mBAAmB,SAAS,CAAC,gBAAgB,CAAC,KAAKA,EAAY,QAAQ,MAAM,mBAAmB,aAAa,GAAK,aAAa,OAAO,cAAc,OAAO,YAAY,sDAAsD,EAAE,iBAAiB,CAAC,KAAKA,EAAY,MAAM,MAAM,aAAa,aAAa,OAAO,OAAO5B,GAAO,CAACA,EAAM,cAAc,eAAe,EAAE,gBAAgB,CAAC,KAAK4B,EAAY,QAAQ,MAAM,oBAAoB,aAAa,GAAM,aAAa,OAAO,cAAc,OAAO,YAAY,qDAAqD,EAAE,UAAU,CAAC,KAAKA,EAAY,OAAO,MAAM,aAAa,aAAa,EAAE,IAAI,GAAG,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO5B,GAAO,CAACA,EAAM,eAAe,EAAE,UAAU,CAAC,KAAK4B,EAAY,QAAQ,MAAM,eAAe,aAAa,GAAK,aAAa,KAAK,cAAc,MAAM,YAAY,6GAA6G,OAAO5B,GAAO,CAACA,EAAM,eAAe,EAAE,WAAW,CAAC,KAAK4B,EAAY,KAAK,MAAM,cAAc,aAAa,qBAAqB,YAAY,kDAAkD,CAAC,CAAC,EAAE,IAAMP,EAAe,CAAC,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,IAAI,MAAM,QAAQ,WAAW,OAAO,SAAS,EAAQC,EAAgB,CAAC,WAAW,sBAAsB,SAAS,OAAO,WAAW,IAAI,WAAW,OAAO,OAAO,EAAE,QAAQ,CAAC",
  "names": ["FramerIcon", "scale", "customColor", "isPreview", "props", "scaledWidth", "scaledHeight", "animationProps", "u", "motion", "p", "CustomBadge", "width", "height", "bgColor", "showCustomBadge", "borderStyles", "fontStyles", "advancedStyle", "customLink", "containerAnimationProps", "customImageAnimationProps", "textAnimationProps", "handleClick", "window", "containerStyle", "framerTextStyle", "EnhancedFramerBadge", "fe", "element", "AnimatePresence", "addPropertyControls", "ControlType"]
}
