{"version":3,"file":"IvoryButton.DIVNp9Cm.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/5qUISBEF7RUliNaYoWqM/loYhX4beuBq8p04pclVB/IvoryButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerIntrinsicWidth 160\n * @framerIntrinsicHeight 48\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function IvoryButton({label=\"Start free\",link=\"https://app.videntic.com/signup\",openInNewTab=false,size=\"md\",fontFamily=\"Satoshi, system-ui, sans-serif\",fontWeight=500}){const[hovered,setHovered]=useState(false);const sizing=size===\"sm\"?{height:36,padX:14,fontSize:13,radius:8}:size===\"lg\"?{height:48,padX:24,fontSize:16,radius:12}:{height:44,padX:20,fontSize:15,radius:12};const button=/*#__PURE__*/_jsxs(\"span\",{onMouseEnter:()=>setHovered(true),onMouseLeave:()=>setHovered(false),style:{position:\"relative\",display:\"inline-block\",height:sizing.height},children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",top:-18,left:-22,width:Math.round(sizing.height*3.2),height:Math.round(sizing.height*1.8),pointerEvents:\"none\",background:\"radial-gradient(ellipse 55% 60% at 30% 45%, rgba(255,250,235,0.55) 0%, rgba(201,181,156,0.2) 45%, transparent 75%)\",filter:\"blur(14px)\",opacity:hovered?1:0,transition:\"opacity 0.5s ease\",zIndex:0}}),/*#__PURE__*/_jsxs(\"span\",{style:{position:\"relative\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",height:sizing.height,padding:`0 ${sizing.padX}px`,borderRadius:sizing.radius,cursor:link?\"pointer\":\"default\",color:\"#0a0a0a\",fontFamily,fontSize:sizing.fontSize,fontWeight,letterSpacing:\"-0.01em\",background:\"linear-gradient(180deg, #fffaeb 0%, #f1e2b8 50%, #cdba8a 100%)\",boxShadow:[\"inset 0 1px 0 rgba(255,255,255,0.65)\",\"inset 0 -1.5px 0 rgba(0,0,0,0.18)\",\"0 1px 2px rgba(0,0,0,0.35)\",\"0 4px 10px rgba(0,0,0,0.45)\",\"0 22px 44px -18px rgba(0,0,0,0.5)\"].join(\", \"),overflow:\"hidden\",transition:\"filter 0.45s cubic-bezier(0.2,0.8,0.2,1.15)\",filter:hovered?\"brightness(1.05)\":\"brightness(1)\",textDecoration:\"none\",whiteSpace:\"nowrap\",zIndex:1},children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,pointerEvents:\"none\",background:\"radial-gradient(ellipse 55% 80% at 18% -20%, rgba(255,255,255,0.4) 0%, transparent 60%)\",opacity:hovered?1:0,transition:\"opacity 0.4s ease\"}}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",top:0,bottom:0,width:\"70%\",transform:hovered?\"translateX(200%) skewX(-20deg)\":\"translateX(-150%) skewX(-20deg)\",background:\"linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.65) 50%, transparent 100%)\",transition:\"transform 1100ms ease-out\",pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"relative\",zIndex:1},children:label})]})]});if(link){return /*#__PURE__*/_jsx(\"a\",{href:link,target:openInNewTab?\"_blank\":undefined,rel:openInNewTab?\"noopener noreferrer\":undefined,style:{textDecoration:\"none\",display:\"inline-block\"},children:button});}return button;}addPropertyControls(IvoryButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Start free\"},link:{type:ControlType.Link,title:\"Link\"},openInNewTab:{type:ControlType.Boolean,title:\"Open in new tab\",defaultValue:false},size:{type:ControlType.Enum,title:\"Size\",defaultValue:\"md\",options:[\"sm\",\"md\",\"lg\"],optionTitles:[\"Small\",\"Medium\",\"Large\"],displaySegmentedControl:true},fontFamily:{type:ControlType.String,title:\"Font family\",defaultValue:\"Satoshi, system-ui, sans-serif\"},fontWeight:{type:ControlType.Number,title:\"Font weight\",defaultValue:500,min:100,max:900,step:100}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"IvoryButton\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"48\",\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicWidth\":\"160\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./IvoryButton.map"],"mappings":"iLAKG,SAAwB,EAAY,CAAC,QAAM,aAAa,OAAK,kCAAkC,eAAa,GAAM,OAAK,KAAK,aAAW,iCAAiC,aAAW,KAAK,CAAC,GAAK,CAAC,EAAQ,GAAYA,EAAS,GAAM,CAAO,EAAO,IAAO,KAAK,CAAC,OAAO,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,EAAE,CAAC,IAAO,KAAK,CAAC,OAAO,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,CAAC,CAAC,OAAO,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,CAAO,EAAoB,EAAM,OAAO,CAAC,iBAAiB,EAAW,GAAK,CAAC,iBAAiB,EAAW,GAAM,CAAC,MAAM,CAAC,SAAS,WAAW,QAAQ,eAAe,OAAO,EAAO,OAAO,CAAC,SAAS,CAAc,EAAK,OAAO,CAAC,cAAc,OAAO,MAAM,CAAC,SAAS,WAAW,IAAI,IAAI,KAAK,IAAI,MAAM,KAAK,MAAM,EAAO,OAAO,IAAI,CAAC,OAAO,KAAK,MAAM,EAAO,OAAO,IAAI,CAAC,cAAc,OAAO,WAAW,qHAAqH,OAAO,aAAa,QAAQ,EAAQ,EAAE,EAAE,WAAW,oBAAoB,OAAO,EAAE,CAAC,CAAC,CAAc,EAAM,OAAO,CAAC,MAAM,CAAC,SAAS,WAAW,QAAQ,cAAc,WAAW,SAAS,eAAe,SAAS,OAAO,EAAO,OAAO,QAAQ,KAAK,EAAO,KAAK,IAA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