{"version":3,"file":"Primary.CcaPW0QA.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/qRg48KiZ7NopcFQrvzHl/VuR5VPifedCBNMfDohh2/Primary.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const DefaultIcon=({size,color})=>/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:size,height:size,fill:color,viewBox:\"0 0 256 256\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z\"})});// Using a pure function component without multiple exports\nfunction Primary(props){const{text,textColor,fontFamily,fontWeight,textHoverShift,fontSize,lineHeight,letterSpacing,circleSize,iconSize,iconName,iconColor,iconType,circleStrokeWidth,underlineThickness,underlineOffset,backgroundElementColor,animationDuration,circleAnimationDuration,textAnimationEasing,underlineAnimationEasing,circleAnimationEasing,circleAnimationColor,underlineAnimationColor,href,openInNewTab,onClick}=props;const[isHovered,setIsHovered]=useState(false);const[phosphorLoaded,setPhosphorLoaded]=useState(false);useEffect(()=>{if(!document.getElementById(\"phosphor-icons\")){const mainCss=document.createElement(\"link\");mainCss.id=\"phosphor-icons-css\";mainCss.rel=\"stylesheet\";mainCss.href=\"https://unpkg.com/@phosphor-icons/web@2.0.3/src/style.css\";document.head.appendChild(mainCss);const variants=[\"regular\",\"bold\",\"duotone\",\"fill\",\"light\",\"thin\"];variants.forEach(variant=>{const link=document.createElement(\"link\");link.rel=\"stylesheet\";link.href=`https://unpkg.com/@phosphor-icons/web@2.0.3/src/${variant}/style.css`;document.head.appendChild(link);});const script=document.createElement(\"script\");script.id=\"phosphor-icons\";script.src=\"https://unpkg.com/@phosphor-icons/web@2.0.3/src/index.js\";script.async=true;script.onload=()=>setPhosphorLoaded(true);document.body.appendChild(script);}else{setPhosphorLoaded(true);}},[]);const handleMouseEnter=()=>setIsHovered(true);const handleMouseLeave=()=>setIsHovered(false);const circleDiameter=circleSize||24;const getIcon=()=>{const calculatedIconSize=iconSize||16;const iconNameToUse=iconName||\"arrow-right\";const iconColorToUse=iconColor||textColor;if(phosphorLoaded){let weightClass=\"\";switch(iconType){case\"bold\":weightClass=\"ph-bold\";break;case\"fill\":weightClass=\"ph-fill\";break;case\"duotone\":weightClass=\"ph-duotone\";break;case\"light\":weightClass=\"ph-light\";break;case\"thin\":weightClass=\"ph-thin\";break;default:weightClass=\"\";}return /*#__PURE__*/_jsx(\"i\",{className:`ph ph-${iconNameToUse} ${weightClass}`,style:{color:iconColorToUse,fontSize:calculatedIconSize}});}return /*#__PURE__*/_jsx(DefaultIcon,{size:calculatedIconSize,color:iconColorToUse});};const commonStyle={display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",cursor:\"pointer\",position:\"relative\",textDecoration:\"none\"};const eventHandlers={onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave,onClick};const buttonContent=/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:\"column\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",width:\"100%\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{color:textColor,fontFamily,fontWeight,fontSize,lineHeight:`${lineHeight}px`,letterSpacing,transform:isHovered?`translateX(${textHoverShift}px)`:\"translateX(0px)\",transition:`transform ${animationDuration}s ${textAnimationEasing}`},children:text}),/*#__PURE__*/_jsxs(\"div\",{style:{width:circleDiameter,height:circleDiameter,position:\"relative\",flexShrink:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:[/*#__PURE__*/_jsx(\"svg\",{width:circleDiameter,height:circleDiameter,viewBox:`0 0 ${circleDiameter} ${circleDiameter}`,style:{position:\"absolute\"},children:/*#__PURE__*/_jsx(\"circle\",{cx:circleDiameter/2,cy:circleDiameter/2,r:(circleDiameter-circleStrokeWidth)/2,fill:\"none\",stroke:backgroundElementColor,strokeWidth:circleStrokeWidth})}),/*#__PURE__*/_jsx(\"svg\",{width:circleDiameter,height:circleDiameter,viewBox:`0 0 ${circleDiameter} ${circleDiameter}`,style:{position:\"absolute\"},children:/*#__PURE__*/_jsx(\"circle\",{cx:circleDiameter/2,cy:circleDiameter/2,r:(circleDiameter-circleStrokeWidth)/2,fill:\"none\",stroke:circleAnimationColor,strokeWidth:circleStrokeWidth,strokeDasharray:circleDiameter*3.14,strokeDashoffset:isHovered?0:circleDiameter*3.14,style:{transition:`stroke-dashoffset ${circleAnimationDuration}s ${circleAnimationEasing}`}})}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",opacity:1},children:getIcon()})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",marginTop:underlineOffset,height:underlineThickness},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:0,top:0,width:\"100%\",height:\"100%\",backgroundColor:backgroundElementColor}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:0,top:0,width:\"100%\",height:\"100%\",backgroundColor:underlineAnimationColor,transformOrigin:isHovered?\"left\":\"right\",transform:isHovered?\"scaleX(1)\":\"scaleX(0)\",transition:`transform ${animationDuration}s ${underlineAnimationEasing}, transform-origin 0s`}})]})]})});return href?/*#__PURE__*/_jsx(\"a\",{href:href,target:openInNewTab?\"_blank\":undefined,rel:openInNewTab?\"noopener noreferrer\":undefined,style:commonStyle,...eventHandlers,children:buttonContent}):/*#__PURE__*/_jsx(\"div\",{style:commonStyle,...eventHandlers,children:buttonContent});}Primary.defaultProps={text:\"Click Me\",textColor:\"#000\",fontFamily:\"Arial\",fontWeight:500,textHoverShift:5,fontSize:16,lineHeight:24,letterSpacing:0,circleSize:32,iconSize:16,iconName:\"arrow-right\",iconColor:\"#000\",iconType:\"regular\",circleStrokeWidth:2,underlineThickness:2,underlineOffset:8,backgroundElementColor:\"#ddd\",animationDuration:.3,circleAnimationDuration:.4,textAnimationEasing:\"ease\",underlineAnimationEasing:\"ease\",circleAnimationEasing:\"ease\",circleAnimationColor:\"#000\",underlineAnimationColor:\"#000\",href:\"\",openInNewTab:false,onClick:()=>{}};// Add property controls for Framer\naddPropertyControls(Primary,{text:{type:ControlType.String},textColor:{type:ControlType.Color},fontFamily:{type:ControlType.String},fontWeight:{type:ControlType.Number},textHoverShift:{type:ControlType.Number},fontSize:{type:ControlType.Number},lineHeight:{type:ControlType.Number},letterSpacing:{type:ControlType.Number},circleSize:{type:ControlType.Number},iconSize:{type:ControlType.Number},iconName:{type:ControlType.String},iconColor:{type:ControlType.Color},iconType:{type:ControlType.Enum,options:[\"regular\",\"bold\",\"duotone\",\"fill\",\"light\",\"thin\"],defaultValue:\"regular\"},circleStrokeWidth:{type:ControlType.Number},underlineThickness:{type:ControlType.Number},underlineOffset:{type:ControlType.Number},backgroundElementColor:{type:ControlType.Color},animationDuration:{type:ControlType.Number},circleAnimationDuration:{type:ControlType.Number},textAnimationEasing:{type:ControlType.String},underlineAnimationEasing:{type:ControlType.String},circleAnimationEasing:{type:ControlType.String},circleAnimationColor:{type:ControlType.Color},underlineAnimationColor:{type:ControlType.Color},href:{type:ControlType.String},openInNewTab:{type:ControlType.Boolean}});export default Primary;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Primary\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Primary.map"],"mappings":"yLACA,SAAS,EAAQ,EAAM,CAAC,GAAK,CAAC,OAAK,YAAU,aAAW,aAAW,iBAAe,WAAS,aAAW,gBAAc,aAA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