{"version":3,"file":"INeedHave.ZqMsolvk.mjs","names":["useState","startTransition"],"sources":["https:/framerusercontent.com/modules/sCxYqcLL8dEqZ9K9Qphh/zbXwf3kWYzEc8Zc4a4GP/INeedHave.js"],"sourcesContent":["// Button component that triggers external email capture modal before file download\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,startTransition}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function GatedDownloadButton(props){const{fileUrl=\"https://framerusercontent.com/assets/8w3IUatLX9a5JVJ6XPCVuHi94.mp3\",fileName=\"document.pdf\",customFileName,label=\"Download Asset\",backgroundColor=\"#000000\",textColor=\"#FFFFFF\",hoverBackgroundColor=\"#333333\",hoverTextColor=\"#FFFFFF\",cornerRadius=8,font,padding=\"12px 24px\",showIcon=true,iconPosition=\"left\",disabled=false,width=\"auto\",style}=props;const[isHovered,setIsHovered]=useState(false);const currentBackgroundColor=isHovered&&!disabled?hoverBackgroundColor:backgroundColor;const currentTextColor=isHovered&&!disabled?hoverTextColor:textColor;const downloadIcon=/*#__PURE__*/_jsxs(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"7,10 12,15 17,10\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"12\",y1:\"15\",x2:\"12\",y2:\"3\"})]});const isFixedWidth=style&&style.width===\"100%\";return /*#__PURE__*/_jsxs(\"button\",{className:\"gw-gated-btn\",\"data-file-url\":fileUrl,\"data-asset-name\":customFileName||fileName,title:customFileName||fileName,disabled:disabled,onMouseEnter:()=>startTransition(()=>setIsHovered(true)),onMouseLeave:()=>startTransition(()=>setIsHovered(false)),style:{...style,position:\"relative\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",gap:showIcon?\"8px\":\"0\",backgroundColor:currentBackgroundColor,color:currentTextColor,borderRadius:cornerRadius,padding,border:\"none\",cursor:disabled?\"not-allowed\":\"pointer\",opacity:disabled?.6:1,transition:\"all 0.2s ease\",outline:\"none\",textDecoration:\"none\",...width===\"full\"||isFixedWidth?{width:\"100%\"}:{width:\"auto\",minWidth:\"max-content\"},...font},\"aria-label\":`Download ${customFileName||fileName}`,role:\"button\",children:[showIcon&&iconPosition===\"left\"&&downloadIcon,/*#__PURE__*/_jsx(\"span\",{children:label}),showIcon&&iconPosition===\"right\"&&downloadIcon]});}addPropertyControls(GatedDownloadButton,{fileUrl:{type:ControlType.File,title:\"File\",allowedFileTypes:[\"pdf\",\"doc\",\"docx\",\"zip\",\"jpg\",\"png\",\"mp4\",\"mp3\"]},fileName:{type:ControlType.String,title:\"File Name\",defaultValue:\"document.pdf\",placeholder:\"document.pdf\"},customFileName:{type:ControlType.String,title:\"Custom File Name\",placeholder:\"Optional custom name\",description:\"Override the file name for special assets\"},label:{type:ControlType.String,title:\"Button Label\",defaultValue:\"Download Asset\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},cornerRadius:{type:ControlType.Number,title:\"Corner Radius\",defaultValue:8,min:0,max:50,step:1,unit:\"px\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Semibold\",letterSpacing:\"-0.01em\"}},padding:{type:ControlType.String,title:\"Padding\",defaultValue:\"12px 24px\"},hoverBackgroundColor:{type:ControlType.Color,title:\"Hover Background\",defaultValue:\"#333333\"},hoverTextColor:{type:ControlType.Color,title:\"Hover Text\",defaultValue:\"#FFFFFF\"},showIcon:{type:ControlType.Boolean,title:\"Show Icon\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},iconPosition:{type:ControlType.Enum,title:\"Icon Position\",options:[\"left\",\"right\"],optionTitles:[\"Left\",\"Right\"],defaultValue:\"left\",displaySegmentedControl:true,hidden:({showIcon})=>!showIcon},disabled:{type:ControlType.Boolean,title:\"Disabled\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GatedDownloadButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./INeedHave.map"],"mappings":"mLAIG,SAAwB,EAAoB,EAAM,CAAC,GAAK,CAAC,UAAQ,qEAAqE,WAAS,eAAe,iBAAe,QAAM,iBAAiB,kBAAgB,UAAU,YAAU,UAAU,uBAAqB,UAAU,iBAAe,UAAU,eAAa,EAAE,OAAK,UAAQ,YAAY,WAAS,GAAK,eAAa,OAAO,WAAS,GAAM,QAAM,OAAO,SAAO,EAAW,CAAC,EAAU,GAAcA,EAAS,GAAM,CAAO,EAAuB,GAAW,CAAC,EAAS,EAAqB,EAAsB,EAAiB,GAAW,CAAC,EAAS,EAAe,EAAgB,EAA0B,EAAM,MAAM,CAAC,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,OAAO,eAAe,YAAY,IAAI,cAAc,QAAQ,eAAe,QAAQ,SAAS,CAAc,EAAK,OAAO,CAAC,EAAE,4CAA4C,CAAC,CAAc,EAAK,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAc,EAAK,OAAO,CAAC,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAO,EAAa,GAAO,EAAM,QAAQ,OAAO,OAAoB,EAAM,SAAS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