{"version":3,"file":"DashedBorder.0GSGoJ_y.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/lcVeM6WGKbvP9toPDftV/DDB3Lm5qkp49hSiLO7c4/tBaDsRQkt.js","https:/framerusercontent.com/modules/m4KY17jEy65JmyJTJgL2/gG9xuKDD60eZcDvKk7Kq/DashedBorder.js"],"sourcesContent":["// Generated by Framer (6ca5d98)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask='url(\\'data:image/svg+xml,<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 20 9.086 L 20 10.006 C 19.998 14.435 17.082 18.334 12.835 19.59 C 8.588 20.846 4.021 19.159 1.611 15.443 C -0.799 11.728 -0.479 6.87 2.398 3.503 C 5.276 0.137 10.025 -0.936 14.07 0.866\" fill=\"transparent\" height=\"20.001321309991276px\" id=\"WEVXotHgn\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" stroke=\"var(--43q7um, rgb(0,0,0))\" transform=\"translate(2 1.994)\" width=\"20.000056460076703px\"/><path d=\"M 13 0 L 3 10.01 L 0 7.01\" fill=\"transparent\" height=\"10.01px\" id=\"mQGX_gCfz\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" stroke=\"var(--43q7um, rgb(0,0,0))\" transform=\"translate(9 4)\" width=\"13px\"/></svg>\\') alpha no-repeat center / auto var(--framer-icon-mask-mode, add), var(--framer-icon-mask, none)';const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(motion.div,{...rest,layoutId:layoutId,ref:ref}):/*#__PURE__*/_jsx(\"div\",{...rest,ref:ref});});const getProps=({height,id,stroke,width,...props})=>{return{...props,UO5clYVeQ:stroke??props.UO5clYVeQ??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,UO5clYVeQ,...restProps}=getProps(props);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-R49vH\",className),layoutId:layoutId,ref:ref,style:{\"--43q7um\":UO5clYVeQ,...style}});});const css=[`.framer-R49vH { -webkit-mask: ${mask}; aspect-ratio: 1; background-color: var(--43q7um); mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"UO5clYVeQ\":\"stroke\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Check Circle\",\"color\":{\"type\":\"variable\",\"value\":\"43q7um\"},\"set\":{\"localId\":\"vectorSet/T8qKXkLfy\",\"id\":\"T8qKXkLfy\",\"moduleId\":\"fiHEoJwBMFnT6QLOcpPz\"}}\n * @framerDisableUnlink true\n */const Icon=withCSS(Component,css,\"framer-R49vH\");Icon.displayName=\"Check Circle\";export default Icon;addPropertyControls(Icon,{UO5clYVeQ:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Stroke\",type:ControlType.Color}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"true\",\"framerVariables\":\"{\\\"UO5clYVeQ\\\":\\\"stroke\\\"}\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"24\",\"framerImmutableVariables\":\"true\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerVector\":\"{\\\"name\\\":\\\"Check Circle\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"43q7um\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/T8qKXkLfy\\\",\\\"id\\\":\\\"T8qKXkLfy\\\",\\\"moduleId\\\":\\\"fiHEoJwBMFnT6QLOcpPz\\\"}}\",\"framerIntrinsicHeight\":\"24\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Animated dashed border moving clockwise\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";/**\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 200\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function DashedCard(props){const{text,font,textColor,borderColor,hoverBorderColor,solidOnHover,borderWidth,dashLength,gapLength,speed,borderRadius,backgroundColor,children,hoverBackgroundColor,paddingTop,paddingRight,paddingBottom,paddingLeft,onClick,style,showIcon,icon,iconGap,iconPosition,transition}=props;const[isHovered,setIsHovered]=useState(false);const dashArray=`${dashLength} ${gapLength}`;const totalLength=dashLength+gapLength;const duration=speed;return /*#__PURE__*/_jsxs(motion.div,{onClick:onClick,onMouseEnter:()=>setIsHovered(true),onMouseLeave:()=>setIsHovered(false),transition:transition,style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",backgroundColor:isHovered?hoverBackgroundColor:backgroundColor,borderRadius,overflow:\"hidden\",border:\"none\",cursor:\"pointer\",padding:`${paddingTop}px ${paddingRight}px ${paddingBottom}px ${paddingLeft}px`,transition:\"background-color 0.2s ease\"},children:[/*#__PURE__*/_jsx(\"svg\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",pointerEvents:\"none\"},xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(motion.rect,{x:borderWidth/2,y:borderWidth/2,width:`calc(100% - ${borderWidth}px)`,height:`calc(100% - ${borderWidth}px)`,rx:borderRadius,ry:borderRadius,fill:\"none\",strokeLinecap:\"round\",stroke:isHovered?hoverBorderColor:borderColor,strokeWidth:borderWidth,strokeDasharray:isHovered&&solidOnHover?\"0\":dashArray,strokeDashoffset:-totalLength,animate:{strokeDashoffset:[0,-totalLength],stroke:isHovered?hoverBorderColor:borderColor,strokeDasharray:isHovered&&solidOnHover?\"0\":dashArray},transition:{strokeDashoffset:{duration:duration,repeat:Infinity,ease:\"linear\"},stroke:transition,strokeDasharray:transition}})}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:textColor,gap:showIcon?`${iconGap}px`:0,...font},children:showIcon&&iconPosition===\"trailing\"&&/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0,width:\"fit-content\",height:\"fit-content\",minWidth:16,minHeight:16},children:icon})})]});}addPropertyControls(DashedCard,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Free forever\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}},showIcon:{type:ControlType.Boolean,title:\"Show Icon\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"},icon:{type:ControlType.ComponentInstance,title:\"Icon\",hidden:({showIcon})=>!showIcon},iconGap:{type:ControlType.Number,title:\"Icon Gap\",defaultValue:8,min:0,max:32,step:1,unit:\"px\",hidden:({showIcon})=>!showIcon},iconPosition:{type:ControlType.Enum,title:\"Icon Position\",options:[\"leading\",\"trailing\"],optionTitles:[\"Leading\",\"Trailing\"],defaultValue:\"trailing\",displaySegmentedControl:true,hidden:({showIcon})=>!showIcon},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#0A0A0A\"},hoverBackgroundColor:{type:ControlType.Color,title:\"Hover Background\",defaultValue:\"#0A0A0A\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#999999\"},hoverBorderColor:{type:ControlType.Color,title:\"Hover Border\",defaultValue:\"#FFFFFF\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:2,min:1,max:20,step:1,unit:\"px\"},borderRadius:{type:ControlType.BorderRadius,title:\"Border Radius\",defaultValue:\"16px\"},dashLength:{type:ControlType.Number,title:\"Dash Length\",defaultValue:10,min:1,max:50,step:1,unit:\"px\"},gapLength:{type:ControlType.Number,title:\"Gap Length\",defaultValue:11,min:1,max:50,step:1,unit:\"px\"},speed:{type:ControlType.Number,title:\"Animation Speed\",defaultValue:1,min:.5,max:10,step:.5,unit:\"s\"},solidOnHover:{type:ControlType.Boolean,title:\"Solid on Hover\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},paddingTop:{type:ControlType.Number,title:\"Padding Top\",defaultValue:30,min:0,max:100,step:1,unit:\"px\"},paddingRight:{type:ControlType.Number,title:\"Padding Right\",defaultValue:60,min:0,max:100,step:1,unit:\"px\"},paddingBottom:{type:ControlType.Number,title:\"Padding Bottom\",defaultValue:30,min:0,max:100,step:1,unit:\"px\"},paddingLeft:{type:ControlType.Number,title:\"Padding Left\",defaultValue:60,min:0,max:100,step:1,unit:\"px\"},transition:{type:ControlType.Transition,title:\"Transition\"},children:{type:ControlType.ComponentInstance,title:\"Content\",hidden:()=>true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DashedCard\",\"slots\":[\"children\",\"icon\"],\"annotations\":{\"framerIntrinsicWidth\":\"200\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"200\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DashedBorder.map"],"mappings":"mRAC2C,IAAsE,IAA4B,CAAoC,EAAK,k5BAA05B,EAAiB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,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