{"version":3,"file":"shared-lib.3X3goIQD.mjs","names":[],"sources":["https:/framerusercontent.com/modules/JzeXCKUHfJrd5nKdBXGo/tAMfJ0ueC7g3KWKK1BZS/EnhancedFramerBadge.js","https:/framerusercontent.com/modules/qIkWfAAkemKwH67reHNA/AliRvrBOJsvP6Q5dpbkc/GyvzA9MNd.js","https:/framerusercontent.com/modules/qmIHkKmqPR5gf3D1Cmcq/XN86Y8vlb4zjousTvHxV/siteMetadata.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","// Generated by Framer (808fccf)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-Z2k8R .framer-styles-preset-12oif0v:not(.rich-text-wrapper), .framer-Z2k8R .framer-styles-preset-12oif0v.rich-text-wrapper a { --framer-link-text-color: #c2a3a3; }\"];export const className=\"framer-Z2k8R\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (108c8c6)\nexport default function metadata(params,activeLocale){return{description:\"Jewelry Design Studio\",favicon:\"https://framerusercontent.com/assets/Mow0WU3QTc87PrEppYzZogP88.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/F9BowarWIF2OGREmMmcYZMT2jdE.png\",title:\"Meadoux\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],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