{"version":3,"file":"FormCTA_Button.B0LPEtpD.mjs","names":[],"sources":["https:/framerusercontent.com/modules/y2pTW7eG494ieBP1fz7X/YN5QL31hwXp5MMmZ33Fs/FormCTA_Button.js"],"sourcesContent":["// Mobile Primary CTA with controllable width and text inside\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ChamferedButton(props){const{text,width,height,chamferSize,backgroundColor,textColor,font,link,onClick,style}=props;const isFixedWidth=style?.width===\"100%\";const isFixedHeight=style?.height===\"100%\";const actualWidth=isFixedWidth?\"100%\":`${width}px`;const actualHeight=isFixedHeight?\"100%\":`${height}px`;const clipPath=`polygon(${chamferSize}px 0%, calc(100% - ${chamferSize}px) 0%, 100% ${chamferSize}px, 100% calc(100% - ${chamferSize}px), calc(100% - ${chamferSize}px) 100%, ${chamferSize}px 100%, 0% calc(100% - ${chamferSize}px), 0% ${chamferSize}px)`;const handleClick=()=>{if(link){if(typeof window!==\"undefined\"){window.open(link,\"_blank\");}}if(onClick){onClick();}};return /*#__PURE__*/_jsx(\"div\",{role:\"button\",tabIndex:0,style:{...props.style,position:\"relative\",background:backgroundColor,color:textColor,border:\"none\",cursor:\"pointer\",padding:\"12px 24px\",clipPath:`polygon(${chamferSize}px 0%, calc(100% - ${chamferSize}px) 0%, 100% ${chamferSize}px, 100% calc(100% - ${chamferSize}px), calc(100% - ${chamferSize}px) 100%, ${chamferSize}px 100%, 0% calc(100% - ${chamferSize}px), 0% ${chamferSize}px)`,transition:\"all 0.2s ease\",display:\"inline-block\",textAlign:\"center\",...isFixedWidth?{}:{minWidth:\"max-content\"},...font},onMouseEnter:e=>{e.currentTarget.style.transform=\"scale(1)\";e.currentTarget.style.filter=\"brightness(1)\";},onMouseLeave:e=>{e.currentTarget.style.transform=\"scale(1)\";e.currentTarget.style.filter=\"brightness(1)\";},onMouseDown:e=>{e.currentTarget.style.transform=\"scale(0.98)\";},onMouseUp:e=>{e.currentTarget.style.transform=\"scale(1)\";},children:text});}addPropertyControls(ChamferedButton,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Click Me\"},width:{type:ControlType.Number,title:\"Width\",defaultValue:200,min:50,max:500,step:1,unit:\"px\"},height:{type:ControlType.Number,title:\"Height\",defaultValue:50,min:30,max:100,step:1,unit:\"px\"},chamferSize:{type:ControlType.Number,title:\"Chamfer Size\",defaultValue:12,min:0,max:30,step:1,unit:\"px\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"14px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},link:{type:ControlType.String,title:\"Link\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ChamferedButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormCTA_Button.map"],"mappings":"oKAIG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,OAAK,QAAM,SAAO,cAAY,kBAAgB,YAAU,OAAK,OAAK,UAAQ,SAAO,EAAY,EAAa,GAAO,QAAQ,OAAa,EAAc,GAAO,SAAS,OAAme,OAA1c,GAAoB,GAAG,IAA6B,GAAqB,GAAG,IAA0B,GAAW,IAAiC,IAA2B,IAAmC,IAA+B,IAAwB,IAAsC,IAAsB,IAA2J,EAAK,MAAM,CAAC,KAAK,SAAS,SAAS,EAAE,MAAM,CAAC,GAAG,EAAM,MAAM,SAAS,WAAW,WAAW,EAAgB,MAAM,EAA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